var mnr=Object.defineProperty;var gnr=(t,e,n)=>e in t?mnr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ut=(t,e,n)=>(gnr(t,typeof e!="symbol"?e+"":e,n),n),r3e=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var Le=(t,e,n)=>(r3e(t,e,"read from private field"),n?n.call(t):e.get(t)),Wt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},tt=(t,e,n,r)=>(r3e(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);var Z9=(t,e,n,r)=>({set _(a){tt(t,e,a,n)},get _(){return Le(t,e,r)}}),qn=(t,e,n)=>(r3e(t,e,"access private method"),n);function vnr(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in t)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Uu(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var KUt={exports:{}},yie={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Hht=Object.getOwnPropertySymbols,Anr=Object.prototype.hasOwnProperty,ynr=Object.prototype.propertyIsEnumerable;function bnr(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function xnr(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(o){return e[o]});if(r.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var jYe=xnr()?Object.assign:function(t,e){for(var n,r=bnr(t),a,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)Anr.call(n,s)&&(r[s]=n[s]);if(Hht){a=Hht(n);for(var l=0;l<a.length;l++)ynr.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},WUt={exports:{}},kl={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var HYe=jYe,Gz=60103,QUt=60106;kl.Fragment=60107;kl.StrictMode=60108;kl.Profiler=60114;var qUt=60109,YUt=60110,JUt=60112;kl.Suspense=60113;var ZUt=60115,XUt=60116;if(typeof Symbol=="function"&&Symbol.for){var nS=Symbol.for;Gz=nS("react.element"),QUt=nS("react.portal"),kl.Fragment=nS("react.fragment"),kl.StrictMode=nS("react.strict_mode"),kl.Profiler=nS("react.profiler"),qUt=nS("react.provider"),YUt=nS("react.context"),JUt=nS("react.forward_ref"),kl.Suspense=nS("react.suspense"),ZUt=nS("react.memo"),XUt=nS("react.lazy")}var Uht=typeof Symbol=="function"&&Symbol.iterator;function Enr(t){return t===null||typeof t!="object"?null:(t=Uht&&t[Uht]||t["@@iterator"],typeof t=="function"?t:null)}function bie(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ezt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tzt={};function Vz(t,e,n){this.props=t,this.context=e,this.refs=tzt,this.updater=n||ezt}Vz.prototype.isReactComponent={};Vz.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(bie(85));this.updater.enqueueSetState(this,t,e,"setState")};Vz.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function nzt(){}nzt.prototype=Vz.prototype;function UYe(t,e,n){this.props=t,this.context=e,this.refs=tzt,this.updater=n||ezt}var zYe=UYe.prototype=new nzt;zYe.constructor=UYe;HYe(zYe,Vz.prototype);zYe.isPureReactComponent=!0;var GYe={current:null},rzt=Object.prototype.hasOwnProperty,izt={key:!0,ref:!0,__self:!0,__source:!0};function azt(t,e,n){var r,a={},o=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)rzt.call(e,r)&&!izt.hasOwnProperty(r)&&(a[r]=e[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return{$$typeof:Gz,type:t,key:o,ref:s,props:a,_owner:GYe.current}}function Snr(t,e){return{$$typeof:Gz,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function VYe(t){return typeof t=="object"&&t!==null&&t.$$typeof===Gz}function wnr(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var zht=/\/+/g;function i3e(t,e){return typeof t=="object"&&t!==null&&t.key!=null?wnr(""+t.key):e.toString(36)}function kpe(t,e,n,r,a){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Gz:case QUt:s=!0}}if(s)return s=t,a=a(s),t=r===""?"."+i3e(s,0):r,Array.isArray(a)?(n="",t!=null&&(n=t.replace(zht,"$&/")+"/"),kpe(a,e,n,"",function(u){return u})):a!=null&&(VYe(a)&&(a=Snr(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(zht,"$&/")+"/")+t)),e.push(a)),1;if(s=0,r=r===""?".":r+":",Array.isArray(t))for(var l=0;l<t.length;l++){o=t[l];var c=r+i3e(o,l);s+=kpe(o,e,n,c,a)}else if(c=Enr(t),typeof c=="function")for(t=c.call(t),l=0;!(o=t.next()).done;)o=o.value,c=r+i3e(o,l++),s+=kpe(o,e,n,c,a);else if(o==="object")throw e=""+t,Error(bie(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function Ale(t,e,n){if(t==null)return t;var r=[],a=0;return kpe(t,r,"","",function(o){return e.call(n,o,a++)}),r}function _nr(t){if(t._status===-1){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(n){t._status===0&&(n=n.default,t._status=1,t._result=n)},function(n){t._status===0&&(t._status=2,t._result=n)})}if(t._status===1)return t._result;throw t._result}var ozt={current:null};function WM(){var t=ozt.current;if(t===null)throw Error(bie(321));return t}var Tnr={ReactCurrentDispatcher:ozt,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:GYe,IsSomeRendererActing:{current:!1},assign:HYe};kl.Children={map:Ale,forEach:function(t,e,n){Ale(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Ale(t,function(){e++}),e},toArray:function(t){return Ale(t,function(e){return e})||[]},only:function(t){if(!VYe(t))throw Error(bie(143));return t}};kl.Component=Vz;kl.PureComponent=UYe;kl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tnr;kl.cloneElement=function(t,e,n){if(t==null)throw Error(bie(267,t));var r=HYe({},t.props),a=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=GYe.current),e.key!==void 0&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)rzt.call(e,c)&&!izt.hasOwnProperty(c)&&(r[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Gz,type:t.type,key:a,ref:o,props:r,_owner:s}};kl.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:YUt,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:qUt,_context:t},t.Consumer=t};kl.createElement=azt;kl.createFactory=function(t){var e=azt.bind(null,t);return e.type=t,e};kl.createRef=function(){return{current:null}};kl.forwardRef=function(t){return{$$typeof:JUt,render:t}};kl.isValidElement=VYe;kl.lazy=function(t){return{$$typeof:XUt,_payload:{_status:-1,_result:t},_init:_nr}};kl.memo=function(t,e){return{$$typeof:ZUt,type:t,compare:e===void 0?null:e}};kl.useCallback=function(t,e){return WM().useCallback(t,e)};kl.useContext=function(t,e){return WM().useContext(t,e)};kl.useDebugValue=function(){};kl.useEffect=function(t,e){return WM().useEffect(t,e)};kl.useImperativeHandle=function(t,e,n){return WM().useImperativeHandle(t,e,n)};kl.useLayoutEffect=function(t,e){return WM().useLayoutEffect(t,e)};kl.useMemo=function(t,e){return WM().useMemo(t,e)};kl.useReducer=function(t,e,n){return WM().useReducer(t,e,n)};kl.useRef=function(t){return WM().useRef(t)};kl.useState=function(t){return WM().useState(t)};kl.version="17.0.2";WUt.exports=kl;var Y=WUt.exports;const ke=Li(Y),lFe=vnr({__proto__:null,default:ke},[Y]);/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Cnr=Y,szt=60103;yie.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Ght=Symbol.for;szt=Ght("react.element"),yie.Fragment=Ght("react.fragment")}var knr=Cnr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rnr=Object.prototype.hasOwnProperty,Mnr={key:!0,ref:!0,__self:!0,__source:!0};function lzt(t,e,n){var r,a={},o=null,s=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)Rnr.call(e,r)&&!Mnr.hasOwnProperty(r)&&(a[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)a[r]===void 0&&(a[r]=e[r]);return{$$typeof:szt,type:t,key:o,ref:s,props:a,_owner:knr.current}}yie.jsx=lzt;yie.jsxs=lzt;KUt.exports=yie;var E=KUt.exports;function qJ(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var czt={exports:{}};/*!
    localForage -- Offline Storage, Improved
    Version 1.10.0
    https://localforage.github.io/localForage
    (c) 2013-2017 Mozilla, Apache License 2.0
*/(function(t,e){(function(n){t.exports=n()})(function(){return function n(r,a,o){function s(u,d){if(!a[u]){if(!r[u]){var h=typeof qJ=="function"&&qJ;if(!d&&h)return h(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=a[u]={exports:{}};r[u][0].call(p.exports,function(m){var g=r[u][1][m];return s(g||m)},p,p.exports,n,r,a,o)}return a[u].exports}for(var l=typeof qJ=="function"&&qJ,c=0;c<o.length;c++)s(o[c]);return s}({1:[function(n,r,a){(function(o){var s=o.MutationObserver||o.WebKitMutationObserver,l;if(s){var c=0,u=new s(m),d=o.document.createTextNode("");u.observe(d,{characterData:!0}),l=function(){d.data=c=++c%2}}else if(!o.setImmediate&&typeof o.MessageChannel<"u"){var h=new o.MessageChannel;h.port1.onmessage=m,l=function(){h.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?l=function(){var v=o.document.createElement("script");v.onreadystatechange=function(){m(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},o.document.documentElement.appendChild(v)}:l=function(){setTimeout(m,0)};var f,p=[];function m(){f=!0;for(var v,A,y=p.length;y;){for(A=p,p=[],v=-1;++v<y;)A[v]();y=p.length}f=!1}r.exports=g;function g(v){p.push(v)===1&&!f&&l()}}).call(this,typeof en<"u"?en:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,a){var o=n(1);function s(){}var l={},c=["REJECTED"],u=["FULFILLED"],d=["PENDING"];r.exports=h;function h(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,w!==s&&g(this,w)}h.prototype.catch=function(w){return this.then(null,w)},h.prototype.then=function(w,_){if(typeof w!="function"&&this.state===u||typeof _!="function"&&this.state===c)return this;var C=new this.constructor(s);if(this.state!==d){var R=this.state===u?w:_;p(C,R,this.outcome)}else this.queue.push(new f(C,w,_));return C};function f(w,_,C){this.promise=w,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof C=="function"&&(this.onRejected=C,this.callRejected=this.otherCallRejected)}f.prototype.callFulfilled=function(w){l.resolve(this.promise,w)},f.prototype.otherCallFulfilled=function(w){p(this.promise,this.onFulfilled,w)},f.prototype.callRejected=function(w){l.reject(this.promise,w)},f.prototype.otherCallRejected=function(w){p(this.promise,this.onRejected,w)};function p(w,_,C){o(function(){var R;try{R=_(C)}catch(k){return l.reject(w,k)}R===w?l.reject(w,new TypeError("Cannot resolve promise with itself")):l.resolve(w,R)})}l.resolve=function(w,_){var C=v(m,_);if(C.status==="error")return l.reject(w,C.value);var R=C.value;if(R)g(w,R);else{w.state=u,w.outcome=_;for(var k=-1,P=w.queue.length;++k<P;)w.queue[k].callFulfilled(_)}return w},l.reject=function(w,_){w.state=c,w.outcome=_;for(var C=-1,R=w.queue.length;++C<R;)w.queue[C].callRejected(_);return w};function m(w){var _=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof _=="function")return function(){_.apply(w,arguments)}}function g(w,_){var C=!1;function R(L){C||(C=!0,l.reject(w,L))}function k(L){C||(C=!0,l.resolve(w,L))}function P(){_(k,R)}var N=v(P);N.status==="error"&&R(N.value)}function v(w,_){var C={};try{C.value=w(_),C.status="success"}catch(R){C.status="error",C.value=R}return C}h.resolve=A;function A(w){return w instanceof this?w:l.resolve(new this(s),w)}h.reject=y;function y(w){var _=new this(s);return l.reject(_,w)}h.all=S;function S(w){var _=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=w.length,R=!1;if(!C)return this.resolve([]);for(var k=new Array(C),P=0,N=-1,L=new this(s);++N<C;)I(w[N],N);return L;function I(b,T){_.resolve(b).then(M,function(D){R||(R=!0,l.reject(L,D))});function M(D){k[T]=D,++P===C&&!R&&(R=!0,l.resolve(L,k))}}}h.race=x;function x(w){var _=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=w.length,R=!1;if(!C)return this.resolve([]);for(var k=-1,P=new this(s);++k<C;)N(w[k]);return P;function N(L){_.resolve(L).then(function(I){R||(R=!0,l.resolve(P,I))},function(I){R||(R=!0,l.reject(P,I))})}}},{1:1}],3:[function(n,r,a){(function(o){typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof en<"u"?en:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,a){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge};function s(Ge,ht){if(!(Ge instanceof ht))throw new TypeError("Cannot call a class as a function")}function l(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var c=l();function u(){try{if(!c||!c.open)return!1;var Ge=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),ht=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!Ge||ht)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function d(Ge,ht){Ge=Ge||[],ht=ht||{};try{return new Blob(Ge,ht)}catch(It){if(It.name!=="TypeError")throw It;for(var Je=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,Rt=new Je,Dt=0;Dt<Ge.length;Dt+=1)Rt.append(Ge[Dt]);return Rt.getBlob(ht.type)}}typeof Promise>"u"&&n(3);var h=Promise;function f(Ge,ht){ht&&Ge.then(function(Je){ht(null,Je)},function(Je){ht(Je)})}function p(Ge,ht,Je){typeof ht=="function"&&Ge.then(ht),typeof Je=="function"&&Ge.catch(Je)}function m(Ge){return typeof Ge!="string"&&(console.warn(Ge+" used as a key, but it is not a string."),Ge=String(Ge)),Ge}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var v="local-forage-detect-blob-support",A=void 0,y={},S=Object.prototype.toString,x="readonly",w="readwrite";function _(Ge){for(var ht=Ge.length,Je=new ArrayBuffer(ht),Rt=new Uint8Array(Je),Dt=0;Dt<ht;Dt++)Rt[Dt]=Ge.charCodeAt(Dt);return Je}function C(Ge){return new h(function(ht){var Je=Ge.transaction(v,w),Rt=d([""]);Je.objectStore(v).put(Rt,"key"),Je.onabort=function(Dt){Dt.preventDefault(),Dt.stopPropagation(),ht(!1)},Je.oncomplete=function(){var Dt=navigator.userAgent.match(/Chrome\/(\d+)/),It=navigator.userAgent.match(/Edge\//);ht(It||!Dt||parseInt(Dt[1],10)>=43)}}).catch(function(){return!1})}function R(Ge){return typeof A=="boolean"?h.resolve(A):C(Ge).then(function(ht){return A=ht,A})}function k(Ge){var ht=y[Ge.name],Je={};Je.promise=new h(function(Rt,Dt){Je.resolve=Rt,Je.reject=Dt}),ht.deferredOperations.push(Je),ht.dbReady?ht.dbReady=ht.dbReady.then(function(){return Je.promise}):ht.dbReady=Je.promise}function P(Ge){var ht=y[Ge.name],Je=ht.deferredOperations.pop();if(Je)return Je.resolve(),Je.promise}function N(Ge,ht){var Je=y[Ge.name],Rt=Je.deferredOperations.pop();if(Rt)return Rt.reject(ht),Rt.promise}function L(Ge,ht){return new h(function(Je,Rt){if(y[Ge.name]=y[Ge.name]||$(),Ge.db)if(ht)k(Ge),Ge.db.close();else return Je(Ge.db);var Dt=[Ge.name];ht&&Dt.push(Ge.version);var It=c.open.apply(c,Dt);ht&&(It.onupgradeneeded=function(ln){var Hn=It.result;try{Hn.createObjectStore(Ge.storeName),ln.oldVersion<=1&&Hn.createObjectStore(v)}catch(Zn){if(Zn.name==="ConstraintError")console.warn('The database "'+Ge.name+'" has been upgraded from version '+ln.oldVersion+" to version "+ln.newVersion+', but the storage "'+Ge.storeName+'" already exists.');else throw Zn}}),It.onerror=function(ln){ln.preventDefault(),Rt(It.error)},It.onsuccess=function(){var ln=It.result;ln.onversionchange=function(Hn){Hn.target.close()},Je(ln),P(Ge)}})}function I(Ge){return L(Ge,!1)}function b(Ge){return L(Ge,!0)}function T(Ge,ht){if(!Ge.db)return!0;var Je=!Ge.db.objectStoreNames.contains(Ge.storeName),Rt=Ge.version<Ge.db.version,Dt=Ge.version>Ge.db.version;if(Rt&&(Ge.version!==ht&&console.warn('The database "'+Ge.name+`" can't be downgraded from version `+Ge.db.version+" to version "+Ge.version+"."),Ge.version=Ge.db.version),Dt||Je){if(Je){var It=Ge.db.version+1;It>Ge.version&&(Ge.version=It)}return!0}return!1}function M(Ge){return new h(function(ht,Je){var Rt=new FileReader;Rt.onerror=Je,Rt.onloadend=function(Dt){var It=btoa(Dt.target.result||"");ht({__local_forage_encoded_blob:!0,data:It,type:Ge.type})},Rt.readAsBinaryString(Ge)})}function D(Ge){var ht=_(atob(Ge.data));return d([ht],{type:Ge.type})}function B(Ge){return Ge&&Ge.__local_forage_encoded_blob}function j(Ge){var ht=this,Je=ht._initReady().then(function(){var Rt=y[ht._dbInfo.name];if(Rt&&Rt.dbReady)return Rt.dbReady});return p(Je,Ge,Ge),Je}function H(Ge){k(Ge);for(var ht=y[Ge.name],Je=ht.forages,Rt=0;Rt<Je.length;Rt++){var Dt=Je[Rt];Dt._dbInfo.db&&(Dt._dbInfo.db.close(),Dt._dbInfo.db=null)}return Ge.db=null,I(Ge).then(function(It){return Ge.db=It,T(Ge)?b(Ge):It}).then(function(It){Ge.db=ht.db=It;for(var ln=0;ln<Je.length;ln++)Je[ln]._dbInfo.db=It}).catch(function(It){throw N(Ge,It),It})}function U(Ge,ht,Je,Rt){Rt===void 0&&(Rt=1);try{var Dt=Ge.db.transaction(Ge.storeName,ht);Je(null,Dt)}catch(It){if(Rt>0&&(!Ge.db||It.name==="InvalidStateError"||It.name==="NotFoundError"))return h.resolve().then(function(){if(!Ge.db||It.name==="NotFoundError"&&!Ge.db.objectStoreNames.contains(Ge.storeName)&&Ge.version<=Ge.db.version)return Ge.db&&(Ge.version=Ge.db.version+1),b(Ge)}).then(function(){return H(Ge).then(function(){U(Ge,ht,Je,Rt-1)})}).catch(Je);Je(It)}}function $(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function z(Ge){var ht=this,Je={db:null};if(Ge)for(var Rt in Ge)Je[Rt]=Ge[Rt];var Dt=y[Je.name];Dt||(Dt=$(),y[Je.name]=Dt),Dt.forages.push(ht),ht._initReady||(ht._initReady=ht.ready,ht.ready=j);var It=[];function ln(){return h.resolve()}for(var Hn=0;Hn<Dt.forages.length;Hn++){var Zn=Dt.forages[Hn];Zn!==ht&&It.push(Zn._initReady().catch(ln))}var Jn=Dt.forages.slice(0);return h.all(It).then(function(){return Je.db=Dt.db,I(Je)}).then(function(Xn){return Je.db=Xn,T(Je,ht._defaultConfig.version)?b(Je):Xn}).then(function(Xn){Je.db=Dt.db=Xn,ht._dbInfo=Je;for(var zr=0;zr<Jn.length;zr++){var ua=Jn[zr];ua!==ht&&(ua._dbInfo.db=Je.db,ua._dbInfo.version=Je.version)}})}function Z(Ge,ht){var Je=this;Ge=m(Ge);var Rt=new h(function(Dt,It){Je.ready().then(function(){U(Je._dbInfo,x,function(ln,Hn){if(ln)return It(ln);try{var Zn=Hn.objectStore(Je._dbInfo.storeName),Jn=Zn.get(Ge);Jn.onsuccess=function(){var Xn=Jn.result;Xn===void 0&&(Xn=null),B(Xn)&&(Xn=D(Xn)),Dt(Xn)},Jn.onerror=function(){It(Jn.error)}}catch(Xn){It(Xn)}})}).catch(It)});return f(Rt,ht),Rt}function K(Ge,ht){var Je=this,Rt=new h(function(Dt,It){Je.ready().then(function(){U(Je._dbInfo,x,function(ln,Hn){if(ln)return It(ln);try{var Zn=Hn.objectStore(Je._dbInfo.storeName),Jn=Zn.openCursor(),Xn=1;Jn.onsuccess=function(){var zr=Jn.result;if(zr){var ua=zr.value;B(ua)&&(ua=D(ua));var Ta=Ge(ua,zr.key,Xn++);Ta!==void 0?Dt(Ta):zr.continue()}else Dt()},Jn.onerror=function(){It(Jn.error)}}catch(zr){It(zr)}})}).catch(It)});return f(Rt,ht),Rt}function Q(Ge,ht,Je){var Rt=this;Ge=m(Ge);var Dt=new h(function(It,ln){var Hn;Rt.ready().then(function(){return Hn=Rt._dbInfo,S.call(ht)==="[object Blob]"?R(Hn.db).then(function(Zn){return Zn?ht:M(ht)}):ht}).then(function(Zn){U(Rt._dbInfo,w,function(Jn,Xn){if(Jn)return ln(Jn);try{var zr=Xn.objectStore(Rt._dbInfo.storeName);Zn===null&&(Zn=void 0);var ua=zr.put(Zn,Ge);Xn.oncomplete=function(){Zn===void 0&&(Zn=null),It(Zn)},Xn.onabort=Xn.onerror=function(){var Ta=ua.error?ua.error:ua.transaction.error;ln(Ta)}}catch(Ta){ln(Ta)}})}).catch(ln)});return f(Dt,Je),Dt}function ee(Ge,ht){var Je=this;Ge=m(Ge);var Rt=new h(function(Dt,It){Je.ready().then(function(){U(Je._dbInfo,w,function(ln,Hn){if(ln)return It(ln);try{var Zn=Hn.objectStore(Je._dbInfo.storeName),Jn=Zn.delete(Ge);Hn.oncomplete=function(){Dt()},Hn.onerror=function(){It(Jn.error)},Hn.onabort=function(){var Xn=Jn.error?Jn.error:Jn.transaction.error;It(Xn)}}catch(Xn){It(Xn)}})}).catch(It)});return f(Rt,ht),Rt}function X(Ge){var ht=this,Je=new h(function(Rt,Dt){ht.ready().then(function(){U(ht._dbInfo,w,function(It,ln){if(It)return Dt(It);try{var Hn=ln.objectStore(ht._dbInfo.storeName),Zn=Hn.clear();ln.oncomplete=function(){Rt()},ln.onabort=ln.onerror=function(){var Jn=Zn.error?Zn.error:Zn.transaction.error;Dt(Jn)}}catch(Jn){Dt(Jn)}})}).catch(Dt)});return f(Je,Ge),Je}function te(Ge){var ht=this,Je=new h(function(Rt,Dt){ht.ready().then(function(){U(ht._dbInfo,x,function(It,ln){if(It)return Dt(It);try{var Hn=ln.objectStore(ht._dbInfo.storeName),Zn=Hn.count();Zn.onsuccess=function(){Rt(Zn.result)},Zn.onerror=function(){Dt(Zn.error)}}catch(Jn){Dt(Jn)}})}).catch(Dt)});return f(Je,Ge),Je}function J(Ge,ht){var Je=this,Rt=new h(function(Dt,It){if(Ge<0){Dt(null);return}Je.ready().then(function(){U(Je._dbInfo,x,function(ln,Hn){if(ln)return It(ln);try{var Zn=Hn.objectStore(Je._dbInfo.storeName),Jn=!1,Xn=Zn.openKeyCursor();Xn.onsuccess=function(){var zr=Xn.result;if(!zr){Dt(null);return}Ge===0||Jn?Dt(zr.key):(Jn=!0,zr.advance(Ge))},Xn.onerror=function(){It(Xn.error)}}catch(zr){It(zr)}})}).catch(It)});return f(Rt,ht),Rt}function ne(Ge){var ht=this,Je=new h(function(Rt,Dt){ht.ready().then(function(){U(ht._dbInfo,x,function(It,ln){if(It)return Dt(It);try{var Hn=ln.objectStore(ht._dbInfo.storeName),Zn=Hn.openKeyCursor(),Jn=[];Zn.onsuccess=function(){var Xn=Zn.result;if(!Xn){Rt(Jn);return}Jn.push(Xn.key),Xn.continue()},Zn.onerror=function(){Dt(Zn.error)}}catch(Xn){Dt(Xn)}})}).catch(Dt)});return f(Je,Ge),Je}function ie(Ge,ht){ht=g.apply(this,arguments);var Je=this.config();Ge=typeof Ge!="function"&&Ge||{},Ge.name||(Ge.name=Ge.name||Je.name,Ge.storeName=Ge.storeName||Je.storeName);var Rt=this,Dt;if(!Ge.name)Dt=h.reject("Invalid arguments");else{var It=Ge.name===Je.name&&Rt._dbInfo.db,ln=It?h.resolve(Rt._dbInfo.db):I(Ge).then(function(Hn){var Zn=y[Ge.name],Jn=Zn.forages;Zn.db=Hn;for(var Xn=0;Xn<Jn.length;Xn++)Jn[Xn]._dbInfo.db=Hn;return Hn});Ge.storeName?Dt=ln.then(function(Hn){if(Hn.objectStoreNames.contains(Ge.storeName)){var Zn=Hn.version+1;k(Ge);var Jn=y[Ge.name],Xn=Jn.forages;Hn.close();for(var zr=0;zr<Xn.length;zr++){var ua=Xn[zr];ua._dbInfo.db=null,ua._dbInfo.version=Zn}var Ta=new h(function(Qa,hs){var $a=c.open(Ge.name,Zn);$a.onerror=function(nd){var wm=$a.result;wm.close(),hs(nd)},$a.onupgradeneeded=function(){var nd=$a.result;nd.deleteObjectStore(Ge.storeName)},$a.onsuccess=function(){var nd=$a.result;nd.close(),Qa(nd)}});return Ta.then(function(Qa){Jn.db=Qa;for(var hs=0;hs<Xn.length;hs++){var $a=Xn[hs];$a._dbInfo.db=Qa,P($a._dbInfo)}}).catch(function(Qa){throw(N(Ge,Qa)||h.resolve()).catch(function(){}),Qa})}}):Dt=ln.then(function(Hn){k(Ge);var Zn=y[Ge.name],Jn=Zn.forages;Hn.close();for(var Xn=0;Xn<Jn.length;Xn++){var zr=Jn[Xn];zr._dbInfo.db=null}var ua=new h(function(Ta,Qa){var hs=c.deleteDatabase(Ge.name);hs.onerror=function(){var $a=hs.result;$a&&$a.close(),Qa(hs.error)},hs.onblocked=function(){console.warn('dropInstance blocked for database "'+Ge.name+'" until all open connections are closed')},hs.onsuccess=function(){var $a=hs.result;$a&&$a.close(),Ta($a)}});return ua.then(function(Ta){Zn.db=Ta;for(var Qa=0;Qa<Jn.length;Qa++){var hs=Jn[Qa];P(hs._dbInfo)}}).catch(function(Ta){throw(N(Ge,Ta)||h.resolve()).catch(function(){}),Ta})})}return f(Dt,ht),Dt}var he={_driver:"asyncStorage",_initStorage:z,_support:u(),iterate:K,getItem:Z,setItem:Q,removeItem:ee,clear:X,length:te,key:J,keys:ne,dropInstance:ie};function de(){return typeof openDatabase=="function"}var ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee="~~local_forage_type~",Me=/^~~local_forage_type~([^~]+)~/,Be="__lfsc__:",ze=Be.length,je="arbf",ye="blob",me="si08",le="ui08",pe="uic8",Ne="si16",_e="si32",ue="ur16",se="ui32",oe="fl32",ge="fl64",De=ze+je.length,Fe=Object.prototype.toString;function Se(Ge){var ht=Ge.length*.75,Je=Ge.length,Rt,Dt=0,It,ln,Hn,Zn;Ge[Ge.length-1]==="="&&(ht--,Ge[Ge.length-2]==="="&&ht--);var Jn=new ArrayBuffer(ht),Xn=new Uint8Array(Jn);for(Rt=0;Rt<Je;Rt+=4)It=ce.indexOf(Ge[Rt]),ln=ce.indexOf(Ge[Rt+1]),Hn=ce.indexOf(Ge[Rt+2]),Zn=ce.indexOf(Ge[Rt+3]),Xn[Dt++]=It<<2|ln>>4,Xn[Dt++]=(ln&15)<<4|Hn>>2,Xn[Dt++]=(Hn&3)<<6|Zn&63;return Jn}function Xe(Ge){var ht=new Uint8Array(Ge),Je="",Rt;for(Rt=0;Rt<ht.length;Rt+=3)Je+=ce[ht[Rt]>>2],Je+=ce[(ht[Rt]&3)<<4|ht[Rt+1]>>4],Je+=ce[(ht[Rt+1]&15)<<2|ht[Rt+2]>>6],Je+=ce[ht[Rt+2]&63];return ht.length%3===2?Je=Je.substring(0,Je.length-1)+"=":ht.length%3===1&&(Je=Je.substring(0,Je.length-2)+"=="),Je}function Oe(Ge,ht){var Je="";if(Ge&&(Je=Fe.call(Ge)),Ge&&(Je==="[object ArrayBuffer]"||Ge.buffer&&Fe.call(Ge.buffer)==="[object ArrayBuffer]")){var Rt,Dt=Be;Ge instanceof ArrayBuffer?(Rt=Ge,Dt+=je):(Rt=Ge.buffer,Je==="[object Int8Array]"?Dt+=me:Je==="[object Uint8Array]"?Dt+=le:Je==="[object Uint8ClampedArray]"?Dt+=pe:Je==="[object Int16Array]"?Dt+=Ne:Je==="[object Uint16Array]"?Dt+=ue:Je==="[object Int32Array]"?Dt+=_e:Je==="[object Uint32Array]"?Dt+=se:Je==="[object Float32Array]"?Dt+=oe:Je==="[object Float64Array]"?Dt+=ge:ht(new Error("Failed to get type for BinaryArray"))),ht(Dt+Xe(Rt))}else if(Je==="[object Blob]"){var It=new FileReader;It.onload=function(){var ln=Ee+Ge.type+"~"+Xe(this.result);ht(Be+ye+ln)},It.readAsArrayBuffer(Ge)}else try{ht(JSON.stringify(Ge))}catch(ln){console.error("Couldn't convert value into a JSON string: ",Ge),ht(null,ln)}}function Ye(Ge){if(Ge.substring(0,ze)!==Be)return JSON.parse(Ge);var ht=Ge.substring(De),Je=Ge.substring(ze,De),Rt;if(Je===ye&&Me.test(ht)){var Dt=ht.match(Me);Rt=Dt[1],ht=ht.substring(Dt[0].length)}var It=Se(ht);switch(Je){case je:return It;case ye:return d([It],{type:Rt});case me:return new Int8Array(It);case le:return new Uint8Array(It);case pe:return new Uint8ClampedArray(It);case Ne:return new Int16Array(It);case ue:return new Uint16Array(It);case _e:return new Int32Array(It);case se:return new Uint32Array(It);case oe:return new Float32Array(It);case ge:return new Float64Array(It);default:throw new Error("Unkown type: "+Je)}}var mt={serialize:Oe,deserialize:Ye,stringToBuffer:Se,bufferToString:Xe};function ut(Ge,ht,Je,Rt){Ge.executeSql("CREATE TABLE IF NOT EXISTS "+ht.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Je,Rt)}function lt(Ge){var ht=this,Je={db:null};if(Ge)for(var Rt in Ge)Je[Rt]=typeof Ge[Rt]!="string"?Ge[Rt].toString():Ge[Rt];var Dt=new h(function(It,ln){try{Je.db=openDatabase(Je.name,String(Je.version),Je.description,Je.size)}catch(Hn){return ln(Hn)}Je.db.transaction(function(Hn){ut(Hn,Je,function(){ht._dbInfo=Je,It()},function(Zn,Jn){ln(Jn)})},ln)});return Je.serializer=mt,Dt}function pn(Ge,ht,Je,Rt,Dt,It){Ge.executeSql(Je,Rt,Dt,function(ln,Hn){Hn.code===Hn.SYNTAX_ERR?ln.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[ht.storeName],function(Zn,Jn){Jn.rows.length?It(Zn,Hn):ut(Zn,ht,function(){Zn.executeSql(Je,Rt,Dt,It)},It)},It):It(ln,Hn)},It)}function sn(Ge,ht){var Je=this;Ge=m(Ge);var Rt=new h(function(Dt,It){Je.ready().then(function(){var ln=Je._dbInfo;ln.db.transaction(function(Hn){pn(Hn,ln,"SELECT * FROM "+ln.storeName+" WHERE key = ? LIMIT 1",[Ge],function(Zn,Jn){var Xn=Jn.rows.length?Jn.rows.item(0).value:null;Xn&&(Xn=ln.serializer.deserialize(Xn)),Dt(Xn)},function(Zn,Jn){It(Jn)})})}).catch(It)});return f(Rt,ht),Rt}function un(Ge,ht){var Je=this,Rt=new h(function(Dt,It){Je.ready().then(function(){var ln=Je._dbInfo;ln.db.transaction(function(Hn){pn(Hn,ln,"SELECT * FROM "+ln.storeName,[],function(Zn,Jn){for(var Xn=Jn.rows,zr=Xn.length,ua=0;ua<zr;ua++){var Ta=Xn.item(ua),Qa=Ta.value;if(Qa&&(Qa=ln.serializer.deserialize(Qa)),Qa=Ge(Qa,Ta.key,ua+1),Qa!==void 0){Dt(Qa);return}}Dt()},function(Zn,Jn){It(Jn)})})}).catch(It)});return f(Rt,ht),Rt}function ur(Ge,ht,Je,Rt){var Dt=this;Ge=m(Ge);var It=new h(function(ln,Hn){Dt.ready().then(function(){ht===void 0&&(ht=null);var Zn=ht,Jn=Dt._dbInfo;Jn.serializer.serialize(ht,function(Xn,zr){zr?Hn(zr):Jn.db.transaction(function(ua){pn(ua,Jn,"INSERT OR REPLACE INTO "+Jn.storeName+" (key, value) VALUES (?, ?)",[Ge,Xn],function(){ln(Zn)},function(Ta,Qa){Hn(Qa)})},function(ua){if(ua.code===ua.QUOTA_ERR){if(Rt>0){ln(ur.apply(Dt,[Ge,Zn,Je,Rt-1]));return}Hn(ua)}})})}).catch(Hn)});return f(It,Je),It}function dt(Ge,ht,Je){return ur.apply(this,[Ge,ht,Je,1])}function xt(Ge,ht){var Je=this;Ge=m(Ge);var Rt=new h(function(Dt,It){Je.ready().then(function(){var ln=Je._dbInfo;ln.db.transaction(function(Hn){pn(Hn,ln,"DELETE FROM "+ln.storeName+" WHERE key = ?",[Ge],function(){Dt()},function(Zn,Jn){It(Jn)})})}).catch(It)});return f(Rt,ht),Rt}function Cn(Ge){var ht=this,Je=new h(function(Rt,Dt){ht.ready().then(function(){var It=ht._dbInfo;It.db.transaction(function(ln){pn(ln,It,"DELETE FROM "+It.storeName,[],function(){Rt()},function(Hn,Zn){Dt(Zn)})})}).catch(Dt)});return f(Je,Ge),Je}function Kt(Ge){var ht=this,Je=new h(function(Rt,Dt){ht.ready().then(function(){var It=ht._dbInfo;It.db.transaction(function(ln){pn(ln,It,"SELECT COUNT(key) as c FROM "+It.storeName,[],function(Hn,Zn){var Jn=Zn.rows.item(0).c;Rt(Jn)},function(Hn,Zn){Dt(Zn)})})}).catch(Dt)});return f(Je,Ge),Je}function rn(Ge,ht){var Je=this,Rt=new h(function(Dt,It){Je.ready().then(function(){var ln=Je._dbInfo;ln.db.transaction(function(Hn){pn(Hn,ln,"SELECT key FROM "+ln.storeName+" WHERE id = ? LIMIT 1",[Ge+1],function(Zn,Jn){var Xn=Jn.rows.length?Jn.rows.item(0).key:null;Dt(Xn)},function(Zn,Jn){It(Jn)})})}).catch(It)});return f(Rt,ht),Rt}function On(Ge){var ht=this,Je=new h(function(Rt,Dt){ht.ready().then(function(){var It=ht._dbInfo;It.db.transaction(function(ln){pn(ln,It,"SELECT key FROM "+It.storeName,[],function(Hn,Zn){for(var Jn=[],Xn=0;Xn<Zn.rows.length;Xn++)Jn.push(Zn.rows.item(Xn).key);Rt(Jn)},function(Hn,Zn){Dt(Zn)})})}).catch(Dt)});return f(Je,Ge),Je}function an(Ge){return new h(function(ht,Je){Ge.transaction(function(Rt){Rt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Dt,It){for(var ln=[],Hn=0;Hn<It.rows.length;Hn++)ln.push(It.rows.item(Hn).name);ht({db:Ge,storeNames:ln})},function(Dt,It){Je(It)})},function(Rt){Je(Rt)})})}function on(Ge,ht){ht=g.apply(this,arguments);var Je=this.config();Ge=typeof Ge!="function"&&Ge||{},Ge.name||(Ge.name=Ge.name||Je.name,Ge.storeName=Ge.storeName||Je.storeName);var Rt=this,Dt;return Ge.name?Dt=new h(function(It){var ln;Ge.name===Je.name?ln=Rt._dbInfo.db:ln=openDatabase(Ge.name,"","",0),Ge.storeName?It({db:ln,storeNames:[Ge.storeName]}):It(an(ln))}).then(function(It){return new h(function(ln,Hn){It.db.transaction(function(Zn){function Jn(Ta){return new h(function(Qa,hs){Zn.executeSql("DROP TABLE IF EXISTS "+Ta,[],function(){Qa()},function($a,nd){hs(nd)})})}for(var Xn=[],zr=0,ua=It.storeNames.length;zr<ua;zr++)Xn.push(Jn(It.storeNames[zr]));h.all(Xn).then(function(){ln()}).catch(function(Ta){Hn(Ta)})},function(Zn){Hn(Zn)})})}):Dt=h.reject("Invalid arguments"),f(Dt,ht),Dt}var dr={_driver:"webSQLStorage",_initStorage:lt,_support:de(),iterate:un,getItem:sn,setItem:dt,removeItem:xt,clear:Cn,length:Kt,key:rn,keys:On,dropInstance:on};function $e(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(Ge,ht){var Je=Ge.name+"/";return Ge.storeName!==ht.storeName&&(Je+=Ge.storeName+"/"),Je}function yt(){var Ge="_localforage_support_test";try{return localStorage.setItem(Ge,!0),localStorage.removeItem(Ge),!1}catch{return!0}}function Ze(){return!yt()||localStorage.length>0}function ot(Ge){var ht=this,Je={};if(Ge)for(var Rt in Ge)Je[Rt]=Ge[Rt];return Je.keyPrefix=qe(Ge,ht._defaultConfig),Ze()?(ht._dbInfo=Je,Je.serializer=mt,h.resolve()):h.reject()}function yn(Ge){var ht=this,Je=ht.ready().then(function(){for(var Rt=ht._dbInfo.keyPrefix,Dt=localStorage.length-1;Dt>=0;Dt--){var It=localStorage.key(Dt);It.indexOf(Rt)===0&&localStorage.removeItem(It)}});return f(Je,Ge),Je}function vt(Ge,ht){var Je=this;Ge=m(Ge);var Rt=Je.ready().then(function(){var Dt=Je._dbInfo,It=localStorage.getItem(Dt.keyPrefix+Ge);return It&&(It=Dt.serializer.deserialize(It)),It});return f(Rt,ht),Rt}function Gt(Ge,ht){var Je=this,Rt=Je.ready().then(function(){for(var Dt=Je._dbInfo,It=Dt.keyPrefix,ln=It.length,Hn=localStorage.length,Zn=1,Jn=0;Jn<Hn;Jn++){var Xn=localStorage.key(Jn);if(Xn.indexOf(It)===0){var zr=localStorage.getItem(Xn);if(zr&&(zr=Dt.serializer.deserialize(zr)),zr=Ge(zr,Xn.substring(ln),Zn++),zr!==void 0)return zr}}});return f(Rt,ht),Rt}function ft(Ge,ht){var Je=this,Rt=Je.ready().then(function(){var Dt=Je._dbInfo,It;try{It=localStorage.key(Ge)}catch{It=null}return It&&(It=It.substring(Dt.keyPrefix.length)),It});return f(Rt,ht),Rt}function rt(Ge){var ht=this,Je=ht.ready().then(function(){for(var Rt=ht._dbInfo,Dt=localStorage.length,It=[],ln=0;ln<Dt;ln++){var Hn=localStorage.key(ln);Hn.indexOf(Rt.keyPrefix)===0&&It.push(Hn.substring(Rt.keyPrefix.length))}return It});return f(Je,Ge),Je}function Pt(Ge){var ht=this,Je=ht.keys().then(function(Rt){return Rt.length});return f(Je,Ge),Je}function Yt(Ge,ht){var Je=this;Ge=m(Ge);var Rt=Je.ready().then(function(){var Dt=Je._dbInfo;localStorage.removeItem(Dt.keyPrefix+Ge)});return f(Rt,ht),Rt}function Un(Ge,ht,Je){var Rt=this;Ge=m(Ge);var Dt=Rt.ready().then(function(){ht===void 0&&(ht=null);var It=ht;return new h(function(ln,Hn){var Zn=Rt._dbInfo;Zn.serializer.serialize(ht,function(Jn,Xn){if(Xn)Hn(Xn);else try{localStorage.setItem(Zn.keyPrefix+Ge,Jn),ln(It)}catch(zr){(zr.name==="QuotaExceededError"||zr.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Hn(zr),Hn(zr)}})})});return f(Dt,Je),Dt}function jn(Ge,ht){if(ht=g.apply(this,arguments),Ge=typeof Ge!="function"&&Ge||{},!Ge.name){var Je=this.config();Ge.name=Ge.name||Je.name,Ge.storeName=Ge.storeName||Je.storeName}var Rt=this,Dt;return Ge.name?Dt=new h(function(It){Ge.storeName?It(qe(Ge,Rt._defaultConfig)):It(Ge.name+"/")}).then(function(It){for(var ln=localStorage.length-1;ln>=0;ln--){var Hn=localStorage.key(ln);Hn.indexOf(It)===0&&localStorage.removeItem(Hn)}}):Dt=h.reject("Invalid arguments"),f(Dt,ht),Dt}var br={_driver:"localStorageWrapper",_initStorage:ot,_support:$e(),iterate:Gt,getItem:vt,setItem:Un,removeItem:Yt,clear:yn,length:Pt,key:ft,keys:rt,dropInstance:jn},si=function(ht,Je){return ht===Je||typeof ht=="number"&&typeof Je=="number"&&isNaN(ht)&&isNaN(Je)},Qi=function(ht,Je){for(var Rt=ht.length,Dt=0;Dt<Rt;){if(si(ht[Dt],Je))return!0;Dt++}return!1},st=Array.isArray||function(Ge){return Object.prototype.toString.call(Ge)==="[object Array]"},wt={},Bt={},dn={INDEXEDDB:he,WEBSQL:dr,LOCALSTORAGE:br},tn=[dn.INDEXEDDB._driver,dn.WEBSQL._driver,dn.LOCALSTORAGE._driver],vn=["dropInstance"],kn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(vn),Mn={description:"",driver:tn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Nr(Ge,ht){Ge[ht]=function(){var Je=arguments;return Ge.ready().then(function(){return Ge[ht].apply(Ge,Je)})}}function na(){for(var Ge=1;Ge<arguments.length;Ge++){var ht=arguments[Ge];if(ht)for(var Je in ht)ht.hasOwnProperty(Je)&&(st(ht[Je])?arguments[0][Je]=ht[Je].slice():arguments[0][Je]=ht[Je])}return arguments[0]}var Ar=function(){function Ge(ht){s(this,Ge);for(var Je in dn)if(dn.hasOwnProperty(Je)){var Rt=dn[Je],Dt=Rt._driver;this[Je]=Dt,wt[Dt]||this.defineDriver(Rt)}this._defaultConfig=na({},Mn),this._config=na({},this._defaultConfig,ht),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return Ge.prototype.config=function(Je){if((typeof Je>"u"?"undefined":o(Je))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var Rt in Je){if(Rt==="storeName"&&(Je[Rt]=Je[Rt].replace(/\W/g,"_")),Rt==="version"&&typeof Je[Rt]!="number")return new Error("Database version must be a number.");this._config[Rt]=Je[Rt]}return"driver"in Je&&Je.driver?this.setDriver(this._config.driver):!0}else return typeof Je=="string"?this._config[Je]:this._config},Ge.prototype.defineDriver=function(Je,Rt,Dt){var It=new h(function(ln,Hn){try{var Zn=Je._driver,Jn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Je._driver){Hn(Jn);return}for(var Xn=kn.concat("_initStorage"),zr=0,ua=Xn.length;zr<ua;zr++){var Ta=Xn[zr],Qa=!Qi(vn,Ta);if((Qa||Je[Ta])&&typeof Je[Ta]!="function"){Hn(Jn);return}}var hs=function(){for(var wm=function(x1){return function(){var hb=new Error("Method "+x1+" is not implemented by the current driver"),Sh=h.reject(hb);return f(Sh,arguments[arguments.length-1]),Sh}},uf=0,b1=vn.length;uf<b1;uf++){var _m=vn[uf];Je[_m]||(Je[_m]=wm(_m))}};hs();var $a=function(wm){wt[Zn]&&console.info("Redefining LocalForage driver: "+Zn),wt[Zn]=Je,Bt[Zn]=wm,ln()};"_support"in Je?Je._support&&typeof Je._support=="function"?Je._support().then($a,Hn):$a(!!Je._support):$a(!0)}catch(nd){Hn(nd)}});return p(It,Rt,Dt),It},Ge.prototype.driver=function(){return this._driver||null},Ge.prototype.getDriver=function(Je,Rt,Dt){var It=wt[Je]?h.resolve(wt[Je]):h.reject(new Error("Driver not found."));return p(It,Rt,Dt),It},Ge.prototype.getSerializer=function(Je){var Rt=h.resolve(mt);return p(Rt,Je),Rt},Ge.prototype.ready=function(Je){var Rt=this,Dt=Rt._driverSet.then(function(){return Rt._ready===null&&(Rt._ready=Rt._initDriver()),Rt._ready});return p(Dt,Je,Je),Dt},Ge.prototype.setDriver=function(Je,Rt,Dt){var It=this;st(Je)||(Je=[Je]);var ln=this._getSupportedDrivers(Je);function Hn(){It._config.driver=It.driver()}function Zn(zr){return It._extend(zr),Hn(),It._ready=It._initStorage(It._config),It._ready}function Jn(zr){return function(){var ua=0;function Ta(){for(;ua<zr.length;){var Qa=zr[ua];return ua++,It._dbInfo=null,It._ready=null,It.getDriver(Qa).then(Zn).catch(Ta)}Hn();var hs=new Error("No available storage method found.");return It._driverSet=h.reject(hs),It._driverSet}return Ta()}}var Xn=this._driverSet!==null?this._driverSet.catch(function(){return h.resolve()}):h.resolve();return this._driverSet=Xn.then(function(){var zr=ln[0];return It._dbInfo=null,It._ready=null,It.getDriver(zr).then(function(ua){It._driver=ua._driver,Hn(),It._wrapLibraryMethodsWithReady(),It._initDriver=Jn(ln)})}).catch(function(){Hn();var zr=new Error("No available storage method found.");return It._driverSet=h.reject(zr),It._driverSet}),p(this._driverSet,Rt,Dt),this._driverSet},Ge.prototype.supports=function(Je){return!!Bt[Je]},Ge.prototype._extend=function(Je){na(this,Je)},Ge.prototype._getSupportedDrivers=function(Je){for(var Rt=[],Dt=0,It=Je.length;Dt<It;Dt++){var ln=Je[Dt];this.supports(ln)&&Rt.push(ln)}return Rt},Ge.prototype._wrapLibraryMethodsWithReady=function(){for(var Je=0,Rt=kn.length;Je<Rt;Je++)Nr(this,kn[Je])},Ge.prototype.createInstance=function(Je){return new Ge(Je)},Ge}(),qi=new Ar;r.exports=qi},{3:3}]},{},[4])(4)})})(czt);var Nnr=czt.exports;const Tbe=Li(Nnr);var uzt={exports:{}},iE={},dzt={exports:{}},hzt={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(t){var e,n,r,a;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var c=null,u=null,d=function(){if(c!==null)try{var U=t.unstable_now();c(!0,U),c=null}catch($){throw setTimeout(d,0),$}};e=function(U){c!==null?setTimeout(e,0,U):(c=U,setTimeout(d,0))},n=function(U,$){u=setTimeout(U,$)},r=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof p!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,A=5,y=0;t.unstable_shouldYield=function(){return t.unstable_now()>=y},a=function(){},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<U?Math.floor(1e3/U):5};var S=new MessageChannel,x=S.port2;S.port1.onmessage=function(){if(g!==null){var U=t.unstable_now();y=U+A;try{g(!0,U)?x.postMessage(null):(m=!1,g=null)}catch($){throw x.postMessage(null),$}}else m=!1},e=function(U){g=U,m||(m=!0,x.postMessage(null))},n=function(U,$){v=h(function(){U(t.unstable_now())},$)},r=function(){f(v),v=-1}}function w(U,$){var z=U.length;U.push($);e:for(;;){var Z=z-1>>>1,K=U[Z];if(K!==void 0&&0<R(K,$))U[Z]=$,U[z]=K,z=Z;else break e}}function _(U){return U=U[0],U===void 0?null:U}function C(U){var $=U[0];if($!==void 0){var z=U.pop();if(z!==$){U[0]=z;e:for(var Z=0,K=U.length;Z<K;){var Q=2*(Z+1)-1,ee=U[Q],X=Q+1,te=U[X];if(ee!==void 0&&0>R(ee,z))te!==void 0&&0>R(te,ee)?(U[Z]=te,U[X]=z,Z=X):(U[Z]=ee,U[Q]=z,Z=Q);else if(te!==void 0&&0>R(te,z))U[Z]=te,U[X]=z,Z=X;else break e}}return $}return null}function R(U,$){var z=U.sortIndex-$.sortIndex;return z!==0?z:U.id-$.id}var k=[],P=[],N=1,L=null,I=3,b=!1,T=!1,M=!1;function D(U){for(var $=_(P);$!==null;){if($.callback===null)C(P);else if($.startTime<=U)C(P),$.sortIndex=$.expirationTime,w(k,$);else break;$=_(P)}}function B(U){if(M=!1,D(U),!T)if(_(k)!==null)T=!0,e(j);else{var $=_(P);$!==null&&n(B,$.startTime-U)}}function j(U,$){T=!1,M&&(M=!1,r()),b=!0;var z=I;try{for(D($),L=_(k);L!==null&&(!(L.expirationTime>$)||U&&!t.unstable_shouldYield());){var Z=L.callback;if(typeof Z=="function"){L.callback=null,I=L.priorityLevel;var K=Z(L.expirationTime<=$);$=t.unstable_now(),typeof K=="function"?L.callback=K:L===_(k)&&C(k),D($)}else C(k);L=_(k)}if(L!==null)var Q=!0;else{var ee=_(P);ee!==null&&n(B,ee.startTime-$),Q=!1}return Q}finally{L=null,I=z,b=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_continueExecution=function(){T||b||(T=!0,e(j))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return _(k)},t.unstable_next=function(U){switch(I){case 1:case 2:case 3:var $=3;break;default:$=I}var z=I;I=$;try{return U()}finally{I=z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(U,$){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var z=I;I=U;try{return $()}finally{I=z}},t.unstable_scheduleCallback=function(U,$,z){var Z=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Z+z:Z):z=Z,U){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=z+K,U={id:N++,callback:$,priorityLevel:U,startTime:z,expirationTime:K,sortIndex:-1},z>Z?(U.sortIndex=z,w(P,U),_(k)===null&&U===_(P)&&(M?r():M=!0,n(B,z-Z))):(U.sortIndex=K,w(k,U),T||b||(T=!0,e(j))),U},t.unstable_wrapCallback=function(U){var $=I;return function(){var z=I;I=$;try{return U.apply(this,arguments)}finally{I=z}}}})(hzt);dzt.exports=hzt;var tX=dzt.exports;/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Cbe=Y,Ad=jYe,sm=tX;function Lr(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Cbe)throw Error(Lr(227));var fzt=new Set,Yee={};function T8(t,e){RH(t,e),RH(t+"Capture",e)}function RH(t,e){for(Yee[t]=e,t=0;t<e.length;t++)fzt.add(e[t])}var cM=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Inr=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vht=Object.prototype.hasOwnProperty,Kht={},Wht={};function Pnr(t){return Vht.call(Wht,t)?!0:Vht.call(Kht,t)?!1:Inr.test(t)?Wht[t]=!0:(Kht[t]=!0,!1)}function Onr(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Lnr(t,e,n,r){if(e===null||typeof e>"u"||Onr(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Z0(t,e,n,r,a,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var lg={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){lg[t]=new Z0(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];lg[e]=new Z0(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){lg[t]=new Z0(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){lg[t]=new Z0(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){lg[t]=new Z0(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){lg[t]=new Z0(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){lg[t]=new Z0(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){lg[t]=new Z0(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){lg[t]=new Z0(t,5,!1,t.toLowerCase(),null,!1,!1)});var KYe=/[\-:]([a-z])/g;function WYe(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(KYe,WYe);lg[e]=new Z0(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(KYe,WYe);lg[e]=new Z0(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(KYe,WYe);lg[e]=new Z0(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){lg[t]=new Z0(t,1,!1,t.toLowerCase(),null,!1,!1)});lg.xlinkHref=new Z0("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){lg[t]=new Z0(t,1,!1,t.toLowerCase(),null,!0,!0)});function QYe(t,e,n,r){var a=lg.hasOwnProperty(e)?lg[e]:null,o=a!==null?a.type===0:r?!1:!(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N");o||(Lnr(e,n,a,r)&&(n=null),r||a===null?Pnr(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):a.mustUseProperty?t[a.propertyName]=n===null?a.type===3?!1:"":n:(e=a.attributeName,r=a.attributeNamespace,n===null?t.removeAttribute(e):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var C8=Cbe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,YJ=60103,kB=60106,y3=60107,qYe=60108,nX=60114,YYe=60109,JYe=60110,kbe=60112,rX=60113,Jge=60120,Rbe=60115,ZYe=60116,XYe=60121,eJe=60128,pzt=60129,tJe=60130,cFe=60131;if(typeof Symbol=="function"&&Symbol.for){var Hp=Symbol.for;YJ=Hp("react.element"),kB=Hp("react.portal"),y3=Hp("react.fragment"),qYe=Hp("react.strict_mode"),nX=Hp("react.profiler"),YYe=Hp("react.provider"),JYe=Hp("react.context"),kbe=Hp("react.forward_ref"),rX=Hp("react.suspense"),Jge=Hp("react.suspense_list"),Rbe=Hp("react.memo"),ZYe=Hp("react.lazy"),XYe=Hp("react.block"),Hp("react.scope"),eJe=Hp("react.opaque.id"),pzt=Hp("react.debug_trace_mode"),tJe=Hp("react.offscreen"),cFe=Hp("react.legacy_hidden")}var Qht=typeof Symbol=="function"&&Symbol.iterator;function qW(t){return t===null||typeof t!="object"?null:(t=Qht&&t[Qht]||t["@@iterator"],typeof t=="function"?t:null)}var a3e;function JJ(t){if(a3e===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);a3e=e&&e[1]||""}return`
`+a3e+t}var o3e=!1;function yle(t,e){if(!t||o3e)return"";o3e=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var a=c.stack.split(`
`),o=r.stack.split(`
`),s=a.length-1,l=o.length-1;1<=s&&0<=l&&a[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(a[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||a[s]!==o[l])return`
`+a[s].replace(" at new "," at ");while(1<=s&&0<=l);break}}}finally{o3e=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?JJ(t):""}function Bnr(t){switch(t.tag){case 5:return JJ(t.type);case 16:return JJ("Lazy");case 13:return JJ("Suspense");case 19:return JJ("SuspenseList");case 0:case 2:case 15:return t=yle(t.type,!1),t;case 11:return t=yle(t.type.render,!1),t;case 22:return t=yle(t.type._render,!1),t;case 1:return t=yle(t.type,!0),t;default:return""}}function yj(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case y3:return"Fragment";case kB:return"Portal";case nX:return"Profiler";case qYe:return"StrictMode";case rX:return"Suspense";case Jge:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case JYe:return(t.displayName||"Context")+".Consumer";case YYe:return(t._context.displayName||"Context")+".Provider";case kbe:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case Rbe:return yj(t.type);case XYe:return yj(t._render);case ZYe:e=t._payload,t=t._init;try{return yj(t(e))}catch{}}return null}function V5(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function mzt(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Dnr(t){var e=mzt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ble(t){t._valueTracker||(t._valueTracker=Dnr(t))}function gzt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=mzt(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Zge(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function uFe(t,e){var n=e.checked;return Ad({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function qht(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=V5(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function vzt(t,e){e=e.checked,e!=null&&QYe(t,"checked",e,!1)}function dFe(t,e){vzt(t,e);var n=V5(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?hFe(t,e.type,n):e.hasOwnProperty("defaultValue")&&hFe(t,e.type,V5(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Yht(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function hFe(t,e,n){(e!=="number"||Zge(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function $nr(t){var e="";return Cbe.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function fFe(t,e){return t=Ad({children:void 0},e),(e=$nr(e.children))&&(t.children=e),t}function bj(t,e,n,r){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&r&&(t[n].defaultSelected=!0)}else{for(n=""+V5(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,r&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function pFe(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Lr(91));return Ad({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Jht(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Lr(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Lr(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:V5(n)}}function Azt(t,e){var n=V5(e.value),r=V5(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Zht(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var mFe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function yzt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gFe(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?yzt(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var xle,bzt=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,a){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,a)})}:t}(function(t,e){if(t.namespaceURI!==mFe.svg||"innerHTML"in t)t.innerHTML=e;else{for(xle=xle||document.createElement("div"),xle.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=xle.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Jee(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var iX={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fnr=["Webkit","ms","Moz","O"];Object.keys(iX).forEach(function(t){Fnr.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),iX[e]=iX[t]})});function xzt(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||iX.hasOwnProperty(t)&&iX[t]?(""+e).trim():e+"px"}function Ezt(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=xzt(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,a):t[n]=a}}var jnr=Ad({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vFe(t,e){if(e){if(jnr[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Lr(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Lr(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(Lr(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Lr(62))}}function AFe(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function nJe(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var yFe=null,xj=null,Ej=null;function Xht(t){if(t=Eie(t)){if(typeof yFe!="function")throw Error(Lr(280));var e=t.stateNode;e&&(e=Lbe(e),yFe(t.stateNode,t.type,e))}}function Szt(t){xj?Ej?Ej.push(t):Ej=[t]:xj=t}function wzt(){if(xj){var t=xj,e=Ej;if(Ej=xj=null,Xht(t),e)for(t=0;t<e.length;t++)Xht(e[t])}}function rJe(t,e){return t(e)}function _zt(t,e,n,r,a){return t(e,n,r,a)}function iJe(){}var Tzt=rJe,RB=!1,s3e=!1;function aJe(){(xj!==null||Ej!==null)&&(iJe(),wzt())}function Hnr(t,e,n){if(s3e)return t(e,n);s3e=!0;try{return Tzt(t,e,n)}finally{s3e=!1,aJe()}}function Zee(t,e){var n=t.stateNode;if(n===null)return null;var r=Lbe(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Lr(231,e,typeof n));return n}var bFe=!1;if(cM)try{var YW={};Object.defineProperty(YW,"passive",{get:function(){bFe=!0}}),window.addEventListener("test",YW,YW),window.removeEventListener("test",YW,YW)}catch{bFe=!1}function Unr(t,e,n,r,a,o,s,l,c){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(d){this.onError(d)}}var aX=!1,Xge=null,eve=!1,xFe=null,znr={onError:function(t){aX=!0,Xge=t}};function Gnr(t,e,n,r,a,o,s,l,c){aX=!1,Xge=null,Unr.apply(znr,arguments)}function Vnr(t,e,n,r,a,o,s,l,c){if(Gnr.apply(this,arguments),aX){if(aX){var u=Xge;aX=!1,Xge=null}else throw Error(Lr(198));eve||(eve=!0,xFe=u)}}function k8(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&1026&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Czt(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function eft(t){if(k8(t)!==t)throw Error(Lr(188))}function Knr(t){var e=t.alternate;if(!e){if(e=k8(t),e===null)throw Error(Lr(188));return e!==t?null:t}for(var n=t,r=e;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return eft(a),t;if(o===r)return eft(a),e;o=o.sibling}throw Error(Lr(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(Lr(189))}}if(n.alternate!==r)throw Error(Lr(190))}if(n.tag!==3)throw Error(Lr(188));return n.stateNode.current===n?t:e}function kzt(t){if(t=Knr(t),!t)return null;for(var e=t;;){if(e.tag===5||e.tag===6)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function tft(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Rzt,oJe,Mzt,Nzt,EFe=!1,QT=[],o5=null,s5=null,l5=null,Xee=new Map,ete=new Map,JW=[],nft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function SFe(t,e,n,r,a){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:a,targetContainers:[r]}}function rft(t,e){switch(t){case"focusin":case"focusout":o5=null;break;case"dragenter":case"dragleave":s5=null;break;case"mouseover":case"mouseout":l5=null;break;case"pointerover":case"pointerout":Xee.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ete.delete(e.pointerId)}}function ZW(t,e,n,r,a,o){return t===null||t.nativeEvent!==o?(t=SFe(e,n,r,a,o),e!==null&&(e=Eie(e),e!==null&&oJe(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Wnr(t,e,n,r,a){switch(e){case"focusin":return o5=ZW(o5,t,e,n,r,a),!0;case"dragenter":return s5=ZW(s5,t,e,n,r,a),!0;case"mouseover":return l5=ZW(l5,t,e,n,r,a),!0;case"pointerover":var o=a.pointerId;return Xee.set(o,ZW(Xee.get(o)||null,t,e,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,ete.set(o,ZW(ete.get(o)||null,t,e,n,r,a)),!0}return!1}function Qnr(t){var e=MB(t.target);if(e!==null){var n=k8(e);if(n!==null){if(e=n.tag,e===13){if(e=Czt(n),e!==null){t.blockedOn=e,Nzt(t.lanePriority,function(){sm.unstable_runWithPriority(t.priority,function(){Mzt(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Rpe(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=uJe(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=Eie(n),e!==null&&oJe(e),t.blockedOn=n,!1;e.shift()}return!0}function ift(t,e,n){Rpe(t)&&n.delete(e)}function qnr(){for(EFe=!1;0<QT.length;){var t=QT[0];if(t.blockedOn!==null){t=Eie(t.blockedOn),t!==null&&Rzt(t);break}for(var e=t.targetContainers;0<e.length;){var n=uJe(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&QT.shift()}o5!==null&&Rpe(o5)&&(o5=null),s5!==null&&Rpe(s5)&&(s5=null),l5!==null&&Rpe(l5)&&(l5=null),Xee.forEach(ift),ete.forEach(ift)}function XW(t,e){t.blockedOn===e&&(t.blockedOn=null,EFe||(EFe=!0,sm.unstable_scheduleCallback(sm.unstable_NormalPriority,qnr)))}function Izt(t){function e(a){return XW(a,t)}if(0<QT.length){XW(QT[0],t);for(var n=1;n<QT.length;n++){var r=QT[n];r.blockedOn===t&&(r.blockedOn=null)}}for(o5!==null&&XW(o5,t),s5!==null&&XW(s5,t),l5!==null&&XW(l5,t),Xee.forEach(e),ete.forEach(e),n=0;n<JW.length;n++)r=JW[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<JW.length&&(n=JW[0],n.blockedOn===null);)Qnr(n),n.blockedOn===null&&JW.shift()}function Ele(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var CF={animationend:Ele("Animation","AnimationEnd"),animationiteration:Ele("Animation","AnimationIteration"),animationstart:Ele("Animation","AnimationStart"),transitionend:Ele("Transition","TransitionEnd")},l3e={},Pzt={};cM&&(Pzt=document.createElement("div").style,"AnimationEvent"in window||(delete CF.animationend.animation,delete CF.animationiteration.animation,delete CF.animationstart.animation),"TransitionEvent"in window||delete CF.transitionend.transition);function Mbe(t){if(l3e[t])return l3e[t];if(!CF[t])return t;var e=CF[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Pzt)return l3e[t]=e[n];return t}var Ozt=Mbe("animationend"),Lzt=Mbe("animationiteration"),Bzt=Mbe("animationstart"),Dzt=Mbe("transitionend"),$zt=new Map,sJe=new Map,Ynr=["abort","abort",Ozt,"animationEnd",Lzt,"animationIteration",Bzt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dzt,"transitionEnd","waiting","waiting"];function lJe(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],a=t[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),sJe.set(r,e),$zt.set(r,a),T8(a,[r])}}var Jnr=sm.unstable_now;Jnr();var Tu=8;function q7(t){if(1&t)return Tu=15,1;if(2&t)return Tu=14,2;if(4&t)return Tu=13,4;var e=24&t;return e!==0?(Tu=12,e):t&32?(Tu=11,32):(e=192&t,e!==0?(Tu=10,e):t&256?(Tu=9,256):(e=3584&t,e!==0?(Tu=8,e):t&4096?(Tu=7,4096):(e=4186112&t,e!==0?(Tu=6,e):(e=62914560&t,e!==0?(Tu=5,e):t&67108864?(Tu=4,67108864):t&134217728?(Tu=3,134217728):(e=805306368&t,e!==0?(Tu=2,e):1073741824&t?(Tu=1,1073741824):(Tu=8,t))))))}function Znr(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Xnr(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(Lr(358,t))}}function tte(t,e){var n=t.pendingLanes;if(n===0)return Tu=0;var r=0,a=0,o=t.expiredLanes,s=t.suspendedLanes,l=t.pingedLanes;if(o!==0)r=o,a=Tu=15;else if(o=n&134217727,o!==0){var c=o&~s;c!==0?(r=q7(c),a=Tu):(l&=o,l!==0&&(r=q7(l),a=Tu))}else o=n&~s,o!==0?(r=q7(o),a=Tu):l!==0&&(r=q7(l),a=Tu);if(r===0)return 0;if(r=31-K5(r),r=n&((0>r?0:1<<r)<<1)-1,e!==0&&e!==r&&!(e&s)){if(q7(e),a<=Tu)return e;Tu=a}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-K5(e),a=1<<n,r|=t[n],e&=~a;return r}function Fzt(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function tve(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Y7(24&~e),t===0?tve(10,e):t;case 10:return t=Y7(192&~e),t===0?tve(8,e):t;case 8:return t=Y7(3584&~e),t===0&&(t=Y7(4186112&~e),t===0&&(t=512)),t;case 2:return e=Y7(805306368&~e),e===0&&(e=268435456),e}throw Error(Lr(358,t))}function Y7(t){return t&-t}function c3e(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Nbe(t,e,n){t.pendingLanes|=e;var r=e-1;t.suspendedLanes&=r,t.pingedLanes&=r,t=t.eventTimes,e=31-K5(e),t[e]=n}var K5=Math.clz32?Math.clz32:nrr,err=Math.log,trr=Math.LN2;function nrr(t){return t===0?32:31-(err(t)/trr|0)|0}var rrr=sm.unstable_UserBlockingPriority,irr=sm.unstable_runWithPriority,Mpe=!0;function arr(t,e,n,r){RB||iJe();var a=cJe,o=RB;RB=!0;try{_zt(a,t,e,n,r)}finally{(RB=o)||aJe()}}function orr(t,e,n,r){irr(rrr,cJe.bind(null,t,e,n,r))}function cJe(t,e,n,r){if(Mpe){var a;if((a=(e&4)===0)&&0<QT.length&&-1<nft.indexOf(t))t=SFe(null,t,e,n,r),QT.push(t);else{var o=uJe(t,e,n,r);if(o===null)a&&rft(t,r);else{if(a){if(-1<nft.indexOf(t)){t=SFe(o,t,e,n,r),QT.push(t);return}if(Wnr(o,t,e,n,r))return;rft(t,r)}Zzt(t,e,r,null,n)}}}}function uJe(t,e,n,r){var a=nJe(r);if(a=MB(a),a!==null){var o=k8(a);if(o===null)a=null;else{var s=o.tag;if(s===13){if(a=Czt(o),a!==null)return a;a=null}else if(s===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Zzt(t,e,r,a,n),null}var N3=null,dJe=null,Npe=null;function jzt(){if(Npe)return Npe;var t,e=dJe,n=e.length,r,a="value"in N3?N3.value:N3.textContent,o=a.length;for(t=0;t<n&&e[t]===a[t];t++);var s=n-t;for(r=1;r<=s&&e[n-r]===a[o-r];r++);return Npe=a.slice(t,1<r?1-r:void 0)}function Ipe(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Sle(){return!0}function aft(){return!1}function Zy(t){function e(n,r,a,o,s){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Sle:aft,this.isPropagationStopped=aft,this}return Ad(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Sle)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sle)},persist:function(){},isPersistent:Sle}),e}var Kz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hJe=Zy(Kz),xie=Ad({},Kz,{view:0,detail:0}),srr=Zy(xie),u3e,d3e,eQ,Ibe=Ad({},xie,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fJe,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==eQ&&(eQ&&t.type==="mousemove"?(u3e=t.screenX-eQ.screenX,d3e=t.screenY-eQ.screenY):d3e=u3e=0,eQ=t),u3e)},movementY:function(t){return"movementY"in t?t.movementY:d3e}}),oft=Zy(Ibe),lrr=Ad({},Ibe,{dataTransfer:0}),crr=Zy(lrr),urr=Ad({},xie,{relatedTarget:0}),h3e=Zy(urr),drr=Ad({},Kz,{animationName:0,elapsedTime:0,pseudoElement:0}),hrr=Zy(drr),frr=Ad({},Kz,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),prr=Zy(frr),mrr=Ad({},Kz,{data:0}),sft=Zy(mrr),grr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vrr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Arr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yrr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Arr[t])?!!e[t]:!1}function fJe(){return yrr}var brr=Ad({},xie,{key:function(t){if(t.key){var e=grr[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ipe(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?vrr[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fJe,charCode:function(t){return t.type==="keypress"?Ipe(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ipe(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),xrr=Zy(brr),Err=Ad({},Ibe,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lft=Zy(Err),Srr=Ad({},xie,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fJe}),wrr=Zy(Srr),_rr=Ad({},Kz,{propertyName:0,elapsedTime:0,pseudoElement:0}),Trr=Zy(_rr),Crr=Ad({},Ibe,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),krr=Zy(Crr),Rrr=[9,13,27,32],pJe=cM&&"CompositionEvent"in window,oX=null;cM&&"documentMode"in document&&(oX=document.documentMode);var Mrr=cM&&"TextEvent"in window&&!oX,Hzt=cM&&(!pJe||oX&&8<oX&&11>=oX),cft=String.fromCharCode(32),uft=!1;function Uzt(t,e){switch(t){case"keyup":return Rrr.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zzt(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var kF=!1;function Nrr(t,e){switch(t){case"compositionend":return zzt(e);case"keypress":return e.which!==32?null:(uft=!0,cft);case"textInput":return t=e.data,t===cft&&uft?null:t;default:return null}}function Irr(t,e){if(kF)return t==="compositionend"||!pJe&&Uzt(t,e)?(t=jzt(),Npe=dJe=N3=null,kF=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Hzt&&e.locale!=="ko"?null:e.data;default:return null}}var Prr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dft(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Prr[t.type]:e==="textarea"}function Gzt(t,e,n,r){Szt(r),e=nve(e,"onChange"),0<e.length&&(n=new hJe("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var sX=null,nte=null;function Orr(t){qzt(t,0)}function Pbe(t){var e=MF(t);if(gzt(e))return t}function Lrr(t,e){if(t==="change")return e}var Vzt=!1;if(cM){var f3e;if(cM){var p3e="oninput"in document;if(!p3e){var hft=document.createElement("div");hft.setAttribute("oninput","return;"),p3e=typeof hft.oninput=="function"}f3e=p3e}else f3e=!1;Vzt=f3e&&(!document.documentMode||9<document.documentMode)}function fft(){sX&&(sX.detachEvent("onpropertychange",Kzt),nte=sX=null)}function Kzt(t){if(t.propertyName==="value"&&Pbe(nte)){var e=[];if(Gzt(e,nte,t,nJe(t)),t=Orr,RB)t(e);else{RB=!0;try{rJe(t,e)}finally{RB=!1,aJe()}}}}function Brr(t,e,n){t==="focusin"?(fft(),sX=e,nte=n,sX.attachEvent("onpropertychange",Kzt)):t==="focusout"&&fft()}function Drr(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Pbe(nte)}function $rr(t,e){if(t==="click")return Pbe(e)}function Frr(t,e){if(t==="input"||t==="change")return Pbe(e)}function jrr(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var px=typeof Object.is=="function"?Object.is:jrr,Hrr=Object.prototype.hasOwnProperty;function rte(t,e){if(px(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Hrr.call(e,n[r])||!px(t[n[r]],e[n[r]]))return!1;return!0}function pft(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function mft(t,e){var n=pft(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pft(n)}}function Wzt(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Wzt(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function gft(){for(var t=window,e=Zge();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Zge(t.document)}return e}function wFe(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Urr=cM&&"documentMode"in document&&11>=document.documentMode,RF=null,_Fe=null,lX=null,TFe=!1;function vft(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;TFe||RF==null||RF!==Zge(r)||(r=RF,"selectionStart"in r&&wFe(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lX&&rte(lX,r)||(lX=r,r=nve(_Fe,"onSelect"),0<r.length&&(e=new hJe("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=RF)))}lJe("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);lJe("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);lJe(Ynr,2);for(var Aft="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),m3e=0;m3e<Aft.length;m3e++)sJe.set(Aft[m3e],0);RH("onMouseEnter",["mouseout","mouseover"]);RH("onMouseLeave",["mouseout","mouseover"]);RH("onPointerEnter",["pointerout","pointerover"]);RH("onPointerLeave",["pointerout","pointerover"]);T8("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));T8("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));T8("onBeforeInput",["compositionend","keypress","textInput","paste"]);T8("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));T8("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));T8("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ZJ="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qzt=new Set("cancel close invalid load scroll toggle".split(" ").concat(ZJ));function yft(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Vnr(r,e,void 0,t),t.currentTarget=null}function qzt(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],a=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var s=r.length-1;0<=s;s--){var l=r[s],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&a.isPropagationStopped())break e;yft(a,l,u),o=c}else for(s=0;s<r.length;s++){if(l=r[s],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&a.isPropagationStopped())break e;yft(a,l,u),o=c}}}if(eve)throw t=xFe,eve=!1,xFe=null,t}function Yu(t,e){var n=eGt(e),r=t+"__bubble";n.has(r)||(Jzt(e,t,2,!1),n.add(r))}var bft="_reactListening"+Math.random().toString(36).slice(2);function Yzt(t){t[bft]||(t[bft]=!0,fzt.forEach(function(e){Qzt.has(e)||xft(e,!1,t,null),xft(e,!0,t,null)}))}function xft(t,e,n,r){var a=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;if(t==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument),r!==null&&!e&&Qzt.has(t)){if(t!=="scroll")return;a|=2,o=r}var s=eGt(o),l=t+"__"+(e?"capture":"bubble");s.has(l)||(e&&(a|=4),Jzt(o,t,a,e),s.add(l))}function Jzt(t,e,n,r){var a=sJe.get(e);switch(a===void 0?2:a){case 0:a=arr;break;case 1:a=orr;break;default:a=cJe}n=a.bind(null,e,n,t),a=void 0,!bFe||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),r?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function Zzt(t,e,n,r,a){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;s=s.return}for(;l!==null;){if(s=MB(l),s===null)return;if(c=s.tag,c===5||c===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Hnr(function(){var u=o,d=nJe(n),h=[];e:{var f=$zt.get(t);if(f!==void 0){var p=hJe,m=t;switch(t){case"keypress":if(Ipe(n)===0)break e;case"keydown":case"keyup":p=xrr;break;case"focusin":m="focus",p=h3e;break;case"focusout":m="blur",p=h3e;break;case"beforeblur":case"afterblur":p=h3e;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=oft;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=crr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=wrr;break;case Ozt:case Lzt:case Bzt:p=hrr;break;case Dzt:p=Trr;break;case"scroll":p=srr;break;case"wheel":p=krr;break;case"copy":case"cut":case"paste":p=prr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=lft}var g=(e&4)!==0,v=!g&&t==="scroll",A=g?f!==null?f+"Capture":null:f;g=[];for(var y=u,S;y!==null;){S=y;var x=S.stateNode;if(S.tag===5&&x!==null&&(S=x,A!==null&&(x=Zee(y,A),x!=null&&g.push(ite(y,x,S)))),v)break;y=y.return}0<g.length&&(f=new p(f,m,null,n,d),h.push({event:f,listeners:g}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",f&&!(e&16)&&(m=n.relatedTarget||n.fromElement)&&(MB(m)||m[Wz]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?MB(m):null,m!==null&&(v=k8(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(g=oft,x="onMouseLeave",A="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(g=lft,x="onPointerLeave",A="onPointerEnter",y="pointer"),v=p==null?f:MF(p),S=m==null?f:MF(m),f=new g(x,y+"leave",p,n,d),f.target=v,f.relatedTarget=S,x=null,MB(d)===u&&(g=new g(A,y+"enter",m,n,d),g.target=S,g.relatedTarget=v,x=g),v=x,p&&m)t:{for(g=p,A=m,y=0,S=g;S;S=X9(S))y++;for(S=0,x=A;x;x=X9(x))S++;for(;0<y-S;)g=X9(g),y--;for(;0<S-y;)A=X9(A),S--;for(;y--;){if(g===A||A!==null&&g===A.alternate)break t;g=X9(g),A=X9(A)}g=null}else g=null;p!==null&&Eft(h,f,p,g,!1),m!==null&&v!==null&&Eft(h,v,m,g,!0)}}e:{if(f=u?MF(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var w=Lrr;else if(dft(f))if(Vzt)w=Frr;else{w=Drr;var _=Brr}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=$rr);if(w&&(w=w(t,u))){Gzt(h,w,n,d);break e}_&&_(t,f,u),t==="focusout"&&(_=f._wrapperState)&&_.controlled&&f.type==="number"&&hFe(f,"number",f.value)}switch(_=u?MF(u):window,t){case"focusin":(dft(_)||_.contentEditable==="true")&&(RF=_,_Fe=u,lX=null);break;case"focusout":lX=_Fe=RF=null;break;case"mousedown":TFe=!0;break;case"contextmenu":case"mouseup":case"dragend":TFe=!1,vft(h,n,d);break;case"selectionchange":if(Urr)break;case"keydown":case"keyup":vft(h,n,d)}var C;if(pJe)e:{switch(t){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else kF?Uzt(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Hzt&&n.locale!=="ko"&&(kF||R!=="onCompositionStart"?R==="onCompositionEnd"&&kF&&(C=jzt()):(N3=d,dJe="value"in N3?N3.value:N3.textContent,kF=!0)),_=nve(u,R),0<_.length&&(R=new sft(R,t,null,n,d),h.push({event:R,listeners:_}),C?R.data=C:(C=zzt(n),C!==null&&(R.data=C)))),(C=Mrr?Nrr(t,n):Irr(t,n))&&(u=nve(u,"onBeforeInput"),0<u.length&&(d=new sft("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=C))}qzt(h,e)})}function ite(t,e,n){return{instance:t,listener:e,currentTarget:n}}function nve(t,e){for(var n=e+"Capture",r=[];t!==null;){var a=t,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Zee(t,n),o!=null&&r.unshift(ite(t,o,a)),o=Zee(t,e),o!=null&&r.push(ite(t,o,a))),t=t.return}return r}function X9(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Eft(t,e,n,r,a){for(var o=e._reactName,s=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,a?(c=Zee(n,o),c!=null&&s.unshift(ite(n,c,l))):a||(c=Zee(n,o),c!=null&&s.push(ite(n,c,l)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function rve(){}var g3e=null,v3e=null;function Xzt(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function CFe(t,e){return t==="textarea"||t==="option"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Sft=typeof setTimeout=="function"?setTimeout:void 0,zrr=typeof clearTimeout=="function"?clearTimeout:void 0;function mJe(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Sj(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function wft(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var A3e=0;function Grr(t){return{$$typeof:eJe,toString:t,valueOf:t}}var Obe=Math.random().toString(36).slice(2),I3="__reactFiber$"+Obe,ive="__reactProps$"+Obe,Wz="__reactContainer$"+Obe,_ft="__reactEvents$"+Obe;function MB(t){var e=t[I3];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Wz]||n[I3]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=wft(t);t!==null;){if(n=t[I3])return n;t=wft(t)}return e}t=n,n=t.parentNode}return null}function Eie(t){return t=t[I3]||t[Wz],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function MF(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Lr(33))}function Lbe(t){return t[ive]||null}function eGt(t){var e=t[_ft];return e===void 0&&(e=t[_ft]=new Set),e}var kFe=[],NF=-1;function KP(t){return{current:t}}function ed(t){0>NF||(t.current=kFe[NF],kFe[NF]=null,NF--)}function hh(t,e){NF++,kFe[NF]=t.current,t.current=e}var W5={},xv=KP(W5),XA=KP(!1),e6=W5;function MH(t,e){var n=t.type.contextTypes;if(!n)return W5;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function e1(t){return t=t.childContextTypes,t!=null}function ave(){ed(XA),ed(xv)}function Tft(t,e,n){if(xv.current!==W5)throw Error(Lr(168));hh(xv,e),hh(XA,n)}function tGt(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(Lr(108,yj(e)||"Unknown",a));return Ad({},n,r)}function Ppe(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||W5,e6=xv.current,hh(xv,t),hh(XA,XA.current),!0}function Cft(t,e,n){var r=t.stateNode;if(!r)throw Error(Lr(169));n?(t=tGt(t,e,e6),r.__reactInternalMemoizedMergedChildContext=t,ed(XA),ed(xv),hh(xv,t)):ed(XA),hh(XA,n)}var gJe=null,fD=null,Vrr=sm.unstable_runWithPriority,vJe=sm.unstable_scheduleCallback,RFe=sm.unstable_cancelCallback,Krr=sm.unstable_shouldYield,kft=sm.unstable_requestPaint,MFe=sm.unstable_now,Wrr=sm.unstable_getCurrentPriorityLevel,Bbe=sm.unstable_ImmediatePriority,nGt=sm.unstable_UserBlockingPriority,rGt=sm.unstable_NormalPriority,iGt=sm.unstable_LowPriority,aGt=sm.unstable_IdlePriority,y3e={},Qrr=kft!==void 0?kft:function(){},AR=null,Ope=null,b3e=!1,Rft=MFe(),fv=1e4>Rft?MFe:function(){return MFe()-Rft};function NH(){switch(Wrr()){case Bbe:return 99;case nGt:return 98;case rGt:return 97;case iGt:return 96;case aGt:return 95;default:throw Error(Lr(332))}}function oGt(t){switch(t){case 99:return Bbe;case 98:return nGt;case 97:return rGt;case 96:return iGt;case 95:return aGt;default:throw Error(Lr(332))}}function t6(t,e){return t=oGt(t),Vrr(t,e)}function ate(t,e,n){return t=oGt(t),vJe(t,e,n)}function uC(){if(Ope!==null){var t=Ope;Ope=null,RFe(t)}sGt()}function sGt(){if(!b3e&&AR!==null){b3e=!0;var t=0;try{var e=AR;t6(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),AR=null}catch(n){throw AR!==null&&(AR=AR.slice(t+1)),vJe(Bbe,uC),n}finally{b3e=!1}}}var qrr=C8.ReactCurrentBatchConfig;function BS(t,e){if(t&&t.defaultProps){e=Ad({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var ove=KP(null),sve=null,IF=null,lve=null;function AJe(){lve=IF=sve=null}function yJe(t){var e=ove.current;ed(ove),t.type._context._currentValue=e}function lGt(t,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)===e){if(n===null||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,n!==null&&(n.childLanes|=e);t=t.return}}function wj(t,e){sve=t,lve=IF=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(JS=!0),t.firstContext=null)}function Fx(t,e){if(lve!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(lve=t,e=1073741823),e={context:t,observedBits:e,next:null},IF===null){if(sve===null)throw Error(Lr(308));IF=e,sve.dependencies={lanes:0,firstContext:e,responders:null}}else IF=IF.next=e;return t._currentValue}var XI=!1;function bJe(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function cGt(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function c5(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function u5(t,e){if(t=t.updateQueue,t!==null){t=t.shared;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function Mft(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?a=o=e:o=o.next=e}else a=o=e;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function ote(t,e,n,r){var a=t.updateQueue;XI=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,s===null?o=u:s.next=u,s=c;var d=t.alternate;if(d!==null){d=d.updateQueue;var h=d.lastBaseUpdate;h!==s&&(h===null?d.firstBaseUpdate=u:h.next=u,d.lastBaseUpdate=c)}}if(o!==null){h=a.baseState,s=0,d=u=c=null;do{l=o.lane;var f=o.eventTime;if((r&l)===l){d!==null&&(d=d.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=t,m=o;switch(l=e,f=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){h=p.call(f,h,l);break e}h=p;break e;case 3:p.flags=p.flags&-4097|64;case 0:if(p=m.payload,l=typeof p=="function"?p.call(f,h,l):p,l==null)break e;h=Ad({},h,l);break e;case 2:XI=!0}}o.callback!==null&&(t.flags|=32,l=a.effects,l===null?a.effects=[o]:l.push(o))}else f={eventTime:f,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=f,c=h):d=d.next=f,s|=l;if(o=o.next,o===null){if(l=a.shared.pending,l===null)break;o=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}while(1);d===null&&(c=h),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,wie|=s,t.lanes=s,t.memoizedState=h}}function Nft(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!="function")throw Error(Lr(191,a));a.call(r)}}}var uGt=new Cbe.Component().refs;function cve(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Ad({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Dbe={isMounted:function(t){return(t=t._reactInternals)?k8(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=By(),a=d5(t),o=c5(r,a);o.payload=e,n!=null&&(o.callback=n),u5(t,o),h5(t,a,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=By(),a=d5(t),o=c5(r,a);o.tag=1,o.payload=e,n!=null&&(o.callback=n),u5(t,o),h5(t,a,r)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=By(),r=d5(t),a=c5(n,r);a.tag=2,e!=null&&(a.callback=e),u5(t,a),h5(t,r,n)}};function Ift(t,e,n,r,a,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,s):e.prototype&&e.prototype.isPureReactComponent?!rte(n,r)||!rte(a,o):!0}function dGt(t,e,n){var r=!1,a=W5,o=e.contextType;return typeof o=="object"&&o!==null?o=Fx(o):(a=e1(e)?e6:xv.current,r=e.contextTypes,o=(r=r!=null)?MH(t,a):W5),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Dbe,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=a,t.__reactInternalMemoizedMaskedChildContext=o),e}function Pft(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Dbe.enqueueReplaceState(e,e.state,null)}function NFe(t,e,n,r){var a=t.stateNode;a.props=n,a.state=t.memoizedState,a.refs=uGt,bJe(t);var o=e.contextType;typeof o=="object"&&o!==null?a.context=Fx(o):(o=e1(e)?e6:xv.current,a.context=MH(t,o)),ote(t,n,a,r),a.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(cve(t,e,o,n),a.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(e=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),e!==a.state&&Dbe.enqueueReplaceState(a,a.state,null),ote(t,n,a,r),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4)}var wle=Array.isArray;function tQ(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Lr(309));var r=n.stateNode}if(!r)throw Error(Lr(147,t));var a=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===a?e.ref:(e=function(o){var s=r.refs;s===uGt&&(s=r.refs={}),o===null?delete s[a]:s[a]=o},e._stringRef=a,e)}if(typeof t!="string")throw Error(Lr(284));if(!n._owner)throw Error(Lr(290,t))}return t}function _le(t,e){if(t.type!=="textarea")throw Error(Lr(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function hGt(t){function e(v,A){if(t){var y=v.lastEffect;y!==null?(y.nextEffect=A,v.lastEffect=A):v.firstEffect=v.lastEffect=A,A.nextEffect=null,A.flags=8}}function n(v,A){if(!t)return null;for(;A!==null;)e(v,A),A=A.sibling;return null}function r(v,A){for(v=new Map;A!==null;)A.key!==null?v.set(A.key,A):v.set(A.index,A),A=A.sibling;return v}function a(v,A){return v=q5(v,A),v.index=0,v.sibling=null,v}function o(v,A,y){return v.index=y,t?(y=v.alternate,y!==null?(y=y.index,y<A?(v.flags=2,A):y):(v.flags=2,A)):A}function s(v){return t&&v.alternate===null&&(v.flags=2),v}function l(v,A,y,S){return A===null||A.tag!==6?(A=_3e(y,v.mode,S),A.return=v,A):(A=a(A,y),A.return=v,A)}function c(v,A,y,S){return A!==null&&A.elementType===y.type?(S=a(A,y.props),S.ref=tQ(v,A,y),S.return=v,S):(S=$pe(y.type,y.key,y.props,null,v.mode,S),S.ref=tQ(v,A,y),S.return=v,S)}function u(v,A,y,S){return A===null||A.tag!==4||A.stateNode.containerInfo!==y.containerInfo||A.stateNode.implementation!==y.implementation?(A=T3e(y,v.mode,S),A.return=v,A):(A=a(A,y.children||[]),A.return=v,A)}function d(v,A,y,S,x){return A===null||A.tag!==7?(A=kj(y,v.mode,S,x),A.return=v,A):(A=a(A,y),A.return=v,A)}function h(v,A,y){if(typeof A=="string"||typeof A=="number")return A=_3e(""+A,v.mode,y),A.return=v,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case YJ:return y=$pe(A.type,A.key,A.props,null,v.mode,y),y.ref=tQ(v,null,A),y.return=v,y;case kB:return A=T3e(A,v.mode,y),A.return=v,A}if(wle(A)||qW(A))return A=kj(A,v.mode,y,null),A.return=v,A;_le(v,A)}return null}function f(v,A,y,S){var x=A!==null?A.key:null;if(typeof y=="string"||typeof y=="number")return x!==null?null:l(v,A,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case YJ:return y.key===x?y.type===y3?d(v,A,y.props.children,S,x):c(v,A,y,S):null;case kB:return y.key===x?u(v,A,y,S):null}if(wle(y)||qW(y))return x!==null?null:d(v,A,y,S,null);_le(v,y)}return null}function p(v,A,y,S,x){if(typeof S=="string"||typeof S=="number")return v=v.get(y)||null,l(A,v,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case YJ:return v=v.get(S.key===null?y:S.key)||null,S.type===y3?d(A,v,S.props.children,x,S.key):c(A,v,S,x);case kB:return v=v.get(S.key===null?y:S.key)||null,u(A,v,S,x)}if(wle(S)||qW(S))return v=v.get(y)||null,d(A,v,S,x,null);_le(A,S)}return null}function m(v,A,y,S){for(var x=null,w=null,_=A,C=A=0,R=null;_!==null&&C<y.length;C++){_.index>C?(R=_,_=null):R=_.sibling;var k=f(v,_,y[C],S);if(k===null){_===null&&(_=R);break}t&&_&&k.alternate===null&&e(v,_),A=o(k,A,C),w===null?x=k:w.sibling=k,w=k,_=R}if(C===y.length)return n(v,_),x;if(_===null){for(;C<y.length;C++)_=h(v,y[C],S),_!==null&&(A=o(_,A,C),w===null?x=_:w.sibling=_,w=_);return x}for(_=r(v,_);C<y.length;C++)R=p(_,v,C,y[C],S),R!==null&&(t&&R.alternate!==null&&_.delete(R.key===null?C:R.key),A=o(R,A,C),w===null?x=R:w.sibling=R,w=R);return t&&_.forEach(function(P){return e(v,P)}),x}function g(v,A,y,S){var x=qW(y);if(typeof x!="function")throw Error(Lr(150));if(y=x.call(y),y==null)throw Error(Lr(151));for(var w=x=null,_=A,C=A=0,R=null,k=y.next();_!==null&&!k.done;C++,k=y.next()){_.index>C?(R=_,_=null):R=_.sibling;var P=f(v,_,k.value,S);if(P===null){_===null&&(_=R);break}t&&_&&P.alternate===null&&e(v,_),A=o(P,A,C),w===null?x=P:w.sibling=P,w=P,_=R}if(k.done)return n(v,_),x;if(_===null){for(;!k.done;C++,k=y.next())k=h(v,k.value,S),k!==null&&(A=o(k,A,C),w===null?x=k:w.sibling=k,w=k);return x}for(_=r(v,_);!k.done;C++,k=y.next())k=p(_,v,C,k.value,S),k!==null&&(t&&k.alternate!==null&&_.delete(k.key===null?C:k.key),A=o(k,A,C),w===null?x=k:w.sibling=k,w=k);return t&&_.forEach(function(N){return e(v,N)}),x}return function(v,A,y,S){var x=typeof y=="object"&&y!==null&&y.type===y3&&y.key===null;x&&(y=y.props.children);var w=typeof y=="object"&&y!==null;if(w)switch(y.$$typeof){case YJ:e:{for(w=y.key,x=A;x!==null;){if(x.key===w){switch(x.tag){case 7:if(y.type===y3){n(v,x.sibling),A=a(x,y.props.children),A.return=v,v=A;break e}break;default:if(x.elementType===y.type){n(v,x.sibling),A=a(x,y.props),A.ref=tQ(v,x,y),A.return=v,v=A;break e}}n(v,x);break}else e(v,x);x=x.sibling}y.type===y3?(A=kj(y.props.children,v.mode,S,y.key),A.return=v,v=A):(S=$pe(y.type,y.key,y.props,null,v.mode,S),S.ref=tQ(v,A,y),S.return=v,v=S)}return s(v);case kB:e:{for(x=y.key;A!==null;){if(A.key===x)if(A.tag===4&&A.stateNode.containerInfo===y.containerInfo&&A.stateNode.implementation===y.implementation){n(v,A.sibling),A=a(A,y.children||[]),A.return=v,v=A;break e}else{n(v,A);break}else e(v,A);A=A.sibling}A=T3e(y,v.mode,S),A.return=v,v=A}return s(v)}if(typeof y=="string"||typeof y=="number")return y=""+y,A!==null&&A.tag===6?(n(v,A.sibling),A=a(A,y),A.return=v,v=A):(n(v,A),A=_3e(y,v.mode,S),A.return=v,v=A),s(v);if(wle(y))return m(v,A,y,S);if(qW(y))return g(v,A,y,S);if(w&&_le(v,y),typeof y>"u"&&!x)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Lr(152,yj(v.type)||"Component"))}return n(v,A)}}var uve=hGt(!0),fGt=hGt(!1),Sie={},f2=KP(Sie),ste=KP(Sie),lte=KP(Sie);function NB(t){if(t===Sie)throw Error(Lr(174));return t}function IFe(t,e){switch(hh(lte,e),hh(ste,t),hh(f2,Sie),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:gFe(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=gFe(e,t)}ed(f2),hh(f2,e)}function IH(){ed(f2),ed(ste),ed(lte)}function Oft(t){NB(lte.current);var e=NB(f2.current),n=gFe(e,t.type);e!==n&&(hh(ste,t),hh(f2,n))}function xJe(t){ste.current===t&&(ed(f2),ed(ste))}var uh=KP(0);function dve(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&64)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var PR=null,P3=null,p2=!1;function pGt(t,e){var n=mx(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Lft(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function PFe(t){if(p2){var e=P3;if(e){var n=e;if(!Lft(t,e)){if(e=Sj(n.nextSibling),!e||!Lft(t,e)){t.flags=t.flags&-1025|2,p2=!1,PR=t;return}pGt(PR,n)}PR=t,P3=Sj(e.firstChild)}else t.flags=t.flags&-1025|2,p2=!1,PR=t}}function Bft(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;PR=t}function Tle(t){if(t!==PR)return!1;if(!p2)return Bft(t),p2=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!CFe(e,t.memoizedProps))for(e=P3;e;)pGt(t,e),e=Sj(e.nextSibling);if(Bft(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Lr(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){P3=Sj(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}P3=null}}else P3=PR?Sj(t.stateNode.nextSibling):null;return!0}function x3e(){P3=PR=null,p2=!1}var _j=[];function EJe(){for(var t=0;t<_j.length;t++)_j[t]._workInProgressVersionPrimary=null;_j.length=0}var cX=C8.ReactCurrentDispatcher,kx=C8.ReactCurrentBatchConfig,cte=0,Yh=null,Xg=null,Vm=null,hve=!1,uX=!1;function bA(){throw Error(Lr(321))}function SJe(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!px(t[n],e[n]))return!1;return!0}function wJe(t,e,n,r,a,o){if(cte=o,Yh=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,cX.current=t===null||t.memoizedState===null?Jrr:Zrr,t=n(r,a),uX){o=0;do{if(uX=!1,!(25>o))throw Error(Lr(301));o+=1,Vm=Xg=null,e.updateQueue=null,cX.current=Xrr,t=n(r,a)}while(uX)}if(cX.current=gve,e=Xg!==null&&Xg.next!==null,cte=0,Vm=Xg=Yh=null,hve=!1,e)throw Error(Lr(300));return t}function IB(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vm===null?Yh.memoizedState=Vm=t:Vm=Vm.next=t,Vm}function R8(){if(Xg===null){var t=Yh.alternate;t=t!==null?t.memoizedState:null}else t=Xg.next;var e=Vm===null?Yh.memoizedState:Vm.next;if(e!==null)Vm=e,Xg=t;else{if(t===null)throw Error(Lr(310));Xg=t,t={memoizedState:Xg.memoizedState,baseState:Xg.baseState,baseQueue:Xg.baseQueue,queue:Xg.queue,next:null},Vm===null?Yh.memoizedState=Vm=t:Vm=Vm.next=t}return Vm}function qT(t,e){return typeof e=="function"?e(t):e}function nQ(t){var e=R8(),n=e.queue;if(n===null)throw Error(Lr(311));n.lastRenderedReducer=t;var r=Xg,a=r.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(a!==null){a=a.next,r=r.baseState;var l=s=o=null,c=a;do{var u=c.lane;if((cte&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===t?c.eagerState:t(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};l===null?(s=l=d,o=r):l=l.next=d,Yh.lanes|=u,wie|=u}c=c.next}while(c!==null&&c!==a);l===null?o=r:l.next=s,px(r,e.memoizedState)||(JS=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function rQ(t){var e=R8(),n=e.queue;if(n===null)throw Error(Lr(311));n.lastRenderedReducer=t;var r=n.dispatch,a=n.pending,o=e.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=t(o,s.action),s=s.next;while(s!==a);px(o,e.memoizedState)||(JS=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function Dft(t,e,n){var r=e._getVersion;r=r(e._source);var a=e._workInProgressVersionPrimary;if(a!==null?t=a===r:(t=t.mutableReadLanes,(t=(cte&t)===t)&&(e._workInProgressVersionPrimary=r,_j.push(e))),t)return n(e._source);throw _j.push(e),Error(Lr(350))}function mGt(t,e,n,r){var a=D0;if(a===null)throw Error(Lr(349));var o=e._getVersion,s=o(e._source),l=cX.current,c=l.useState(function(){return Dft(a,e,n)}),u=c[1],d=c[0];c=Vm;var h=t.memoizedState,f=h.refs,p=f.getSnapshot,m=h.source;h=h.subscribe;var g=Yh;return t.memoizedState={refs:f,source:e,subscribe:r},l.useEffect(function(){f.getSnapshot=n,f.setSnapshot=u;var v=o(e._source);if(!px(s,v)){v=n(e._source),px(d,v)||(u(v),v=d5(g),a.mutableReadLanes|=v&a.pendingLanes),v=a.mutableReadLanes,a.entangledLanes|=v;for(var A=a.entanglements,y=v;0<y;){var S=31-K5(y),x=1<<S;A[S]|=v,y&=~x}}},[n,e,r]),l.useEffect(function(){return r(e._source,function(){var v=f.getSnapshot,A=f.setSnapshot;try{A(v(e._source));var y=d5(g);a.mutableReadLanes|=y&a.pendingLanes}catch(S){A(function(){throw S})}})},[e,r]),px(p,n)&&px(m,e)&&px(h,r)||(t={pending:null,dispatch:null,lastRenderedReducer:qT,lastRenderedState:d},t.dispatch=u=CJe.bind(null,Yh,t),c.queue=t,c.baseQueue=null,d=Dft(a,e,n),c.memoizedState=c.baseState=d),d}function gGt(t,e,n){var r=R8();return mGt(r,t,e,n)}function iQ(t){var e=IB();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:qT,lastRenderedState:t},t=t.dispatch=CJe.bind(null,Yh,t),[e.memoizedState,t]}function fve(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Yh.updateQueue,e===null?(e={lastEffect:null},Yh.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function $ft(t){var e=IB();return t={current:t},e.memoizedState=t}function pve(){return R8().memoizedState}function OFe(t,e,n,r){var a=IB();Yh.flags|=t,a.memoizedState=fve(1|e,n,void 0,r===void 0?null:r)}function _Je(t,e,n,r){var a=R8();r=r===void 0?null:r;var o=void 0;if(Xg!==null){var s=Xg.memoizedState;if(o=s.destroy,r!==null&&SJe(r,s.deps)){fve(e,n,o,r);return}}Yh.flags|=t,a.memoizedState=fve(1|e,n,o,r)}function Fft(t,e){return OFe(516,4,t,e)}function mve(t,e){return _Je(516,4,t,e)}function vGt(t,e){return _Je(4,2,t,e)}function AGt(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function yGt(t,e,n){return n=n!=null?n.concat([t]):null,_Je(4,2,AGt.bind(null,e,t),n)}function TJe(){}function bGt(t,e){var n=R8();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&SJe(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function xGt(t,e){var n=R8();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&SJe(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Yrr(t,e){var n=NH();t6(98>n?98:n,function(){t(!0)}),t6(97<n?97:n,function(){var r=kx.transition;kx.transition=1;try{t(!1),e()}finally{kx.transition=r}})}function CJe(t,e,n){var r=By(),a=d5(t),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},s=e.pending;if(s===null?o.next=o:(o.next=s.next,s.next=o),e.pending=o,s=t.alternate,t===Yh||s!==null&&s===Yh)uX=hve=!0;else{if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var l=e.lastRenderedState,c=s(l,n);if(o.eagerReducer=s,o.eagerState=c,px(c,l))return}catch{}finally{}h5(t,a,r)}}var gve={readContext:Fx,useCallback:bA,useContext:bA,useEffect:bA,useImperativeHandle:bA,useLayoutEffect:bA,useMemo:bA,useReducer:bA,useRef:bA,useState:bA,useDebugValue:bA,useDeferredValue:bA,useTransition:bA,useMutableSource:bA,useOpaqueIdentifier:bA,unstable_isNewReconciler:!1},Jrr={readContext:Fx,useCallback:function(t,e){return IB().memoizedState=[t,e===void 0?null:e],t},useContext:Fx,useEffect:Fft,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,OFe(4,2,AGt.bind(null,e,t),n)},useLayoutEffect:function(t,e){return OFe(4,2,t,e)},useMemo:function(t,e){var n=IB();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=IB();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},t=t.dispatch=CJe.bind(null,Yh,t),[r.memoizedState,t]},useRef:$ft,useState:iQ,useDebugValue:TJe,useDeferredValue:function(t){var e=iQ(t),n=e[0],r=e[1];return Fft(function(){var a=kx.transition;kx.transition=1;try{r(t)}finally{kx.transition=a}},[t]),n},useTransition:function(){var t=iQ(!1),e=t[0];return t=Yrr.bind(null,t[1]),$ft(t),[t,e]},useMutableSource:function(t,e,n){var r=IB();return r.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},mGt(r,t,e,n)},useOpaqueIdentifier:function(){if(p2){var t=!1,e=Grr(function(){throw t||(t=!0,n("r:"+(A3e++).toString(36))),Error(Lr(355))}),n=iQ(e)[1];return!(Yh.mode&2)&&(Yh.flags|=516,fve(5,function(){n("r:"+(A3e++).toString(36))},void 0,null)),e}return e="r:"+(A3e++).toString(36),iQ(e),e},unstable_isNewReconciler:!1},Zrr={readContext:Fx,useCallback:bGt,useContext:Fx,useEffect:mve,useImperativeHandle:yGt,useLayoutEffect:vGt,useMemo:xGt,useReducer:nQ,useRef:pve,useState:function(){return nQ(qT)},useDebugValue:TJe,useDeferredValue:function(t){var e=nQ(qT),n=e[0],r=e[1];return mve(function(){var a=kx.transition;kx.transition=1;try{r(t)}finally{kx.transition=a}},[t]),n},useTransition:function(){var t=nQ(qT)[0];return[pve().current,t]},useMutableSource:gGt,useOpaqueIdentifier:function(){return nQ(qT)[0]},unstable_isNewReconciler:!1},Xrr={readContext:Fx,useCallback:bGt,useContext:Fx,useEffect:mve,useImperativeHandle:yGt,useLayoutEffect:vGt,useMemo:xGt,useReducer:rQ,useRef:pve,useState:function(){return rQ(qT)},useDebugValue:TJe,useDeferredValue:function(t){var e=rQ(qT),n=e[0],r=e[1];return mve(function(){var a=kx.transition;kx.transition=1;try{r(t)}finally{kx.transition=a}},[t]),n},useTransition:function(){var t=rQ(qT)[0];return[pve().current,t]},useMutableSource:gGt,useOpaqueIdentifier:function(){return rQ(qT)[0]},unstable_isNewReconciler:!1},eir=C8.ReactCurrentOwner,JS=!1;function FA(t,e,n,r){e.child=t===null?fGt(e,null,n,r):uve(e,t.child,n,r)}function jft(t,e,n,r,a){n=n.render;var o=e.ref;return wj(e,a),r=wJe(t,e,n,r,o,a),t!==null&&!JS?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~a,LR(t,e,a)):(e.flags|=1,FA(t,e,r,a),e.child)}function Hft(t,e,n,r,a,o){if(t===null){var s=n.type;return typeof s=="function"&&!PJe(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,EGt(t,e,s,r,a,o)):(t=$pe(n.type,null,r,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}return s=t.child,!(a&o)&&(a=s.memoizedProps,n=n.compare,n=n!==null?n:rte,n(a,r)&&t.ref===e.ref)?LR(t,e,o):(e.flags|=1,t=q5(s,r),t.ref=e.ref,t.return=e,e.child=t)}function EGt(t,e,n,r,a,o){if(t!==null&&rte(t.memoizedProps,r)&&t.ref===e.ref)if(JS=!1,(o&a)!==0)t.flags&16384&&(JS=!0);else return e.lanes=t.lanes,LR(t,e,o);return LFe(t,e,n,r,o)}function E3e(t,e,n){var r=e.pendingProps,a=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(e.mode&4))e.memoizedState={baseLanes:0},kle(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},kle(e,o!==null?o.baseLanes:n);else return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},kle(e,t),null;else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,kle(e,r);return FA(t,e,a,n),e.child}function SGt(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function LFe(t,e,n,r,a){var o=e1(n)?e6:xv.current;return o=MH(e,o),wj(e,a),n=wJe(t,e,n,r,o,a),t!==null&&!JS?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~a,LR(t,e,a)):(e.flags|=1,FA(t,e,n,a),e.child)}function Uft(t,e,n,r,a){if(e1(n)){var o=!0;Ppe(e)}else o=!1;if(wj(e,a),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),dGt(e,n,r),NFe(e,n,r,a),r=!0;else if(t===null){var s=e.stateNode,l=e.memoizedProps;s.props=l;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Fx(u):(u=e1(n)?e6:xv.current,u=MH(e,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||c!==u)&&Pft(e,s,r,u),XI=!1;var f=e.memoizedState;s.state=f,ote(e,r,s,a),c=e.memoizedState,l!==r||f!==c||XA.current||XI?(typeof d=="function"&&(cve(e,n,d,r),c=e.memoizedState),(l=XI||Ift(e,n,l,r,f,c,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4)):(typeof s.componentDidMount=="function"&&(e.flags|=4),e.memoizedProps=r,e.memoizedState=c),s.props=r,s.state=c,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(e.flags|=4),r=!1)}else{s=e.stateNode,cGt(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:BS(e.type,l),s.props=u,h=e.pendingProps,f=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Fx(c):(c=e1(n)?e6:xv.current,c=MH(e,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||f!==c)&&Pft(e,s,r,c),XI=!1,f=e.memoizedState,s.state=f,ote(e,r,s,a);var m=e.memoizedState;l!==h||f!==m||XA.current||XI?(typeof p=="function"&&(cve(e,n,p,r),m=e.memoizedState),(u=XI||Ift(e,n,u,r,f,m,c))?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,c)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=256),e.memoizedProps=r,e.memoizedState=m),s.props=r,s.state=m,s.context=c,r=u):(typeof s.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=256),r=!1)}return BFe(t,e,n,r,o,a)}function BFe(t,e,n,r,a,o){SGt(t,e);var s=(e.flags&64)!==0;if(!r&&!s)return a&&Cft(e,n,!1),LR(t,e,o);r=e.stateNode,eir.current=e;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&s?(e.child=uve(e,t.child,null,o),e.child=uve(e,null,l,o)):FA(t,e,l,o),e.memoizedState=r.state,a&&Cft(e,n,!0),e.child}function zft(t){var e=t.stateNode;e.pendingContext?Tft(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Tft(t,e.context,!1),IFe(t,e.containerInfo)}var Cle={dehydrated:null,retryLane:0};function Gft(t,e,n){var r=e.pendingProps,a=uh.current,o=!1,s;return(s=(e.flags&64)!==0)||(s=t!==null&&t.memoizedState===null?!1:(a&2)!==0),s?(o=!0,e.flags&=-65):t!==null&&t.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(a|=1),hh(uh,a&1),t===null?(r.fallback!==void 0&&PFe(e),t=r.children,a=r.fallback,o?(t=Vft(e,t,a,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Cle,t):typeof r.unstable_expectedLoadTime=="number"?(t=Vft(e,t,a,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Cle,e.lanes=33554432,t):(n=OJe({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?o?(r=Wft(t,e,r.children,r.fallback,n),o=e.child,a=t.child.memoizedState,o.memoizedState=a===null?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=t.childLanes&~n,e.memoizedState=Cle,r):(n=Kft(t,e,r.children,n),e.memoizedState=null,n):o?(r=Wft(t,e,r.children,r.fallback,n),o=e.child,a=t.child.memoizedState,o.memoizedState=a===null?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=t.childLanes&~n,e.memoizedState=Cle,r):(n=Kft(t,e,r.children,n),e.memoizedState=null,n)}function Vft(t,e,n,r){var a=t.mode,o=t.child;return e={mode:"hidden",children:e},!(a&2)&&o!==null?(o.childLanes=0,o.pendingProps=e):o=OJe(e,a,0,null),n=kj(n,a,r,null),o.return=t,n.return=t,o.sibling=n,t.child=o,n}function Kft(t,e,n,r){var a=t.child;return t=a.sibling,n=q5(a,{mode:"visible",children:n}),!(e.mode&2)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function Wft(t,e,n,r,a){var o=e.mode,s=t.child;t=s.sibling;var l={mode:"hidden",children:n};return!(o&2)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=l,s=n.lastEffect,s!==null?(e.firstEffect=n.firstEffect,e.lastEffect=s,s.nextEffect=null):e.firstEffect=e.lastEffect=null):n=q5(s,l),t!==null?r=q5(t,r):(r=kj(r,o,a,null),r.flags|=2),r.return=e,n.return=e,n.sibling=r,e.child=n,r}function Qft(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),lGt(t.return,e)}function S3e(t,e,n,r,a,o){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a,s.lastEffect=o)}function qft(t,e,n){var r=e.pendingProps,a=r.revealOrder,o=r.tail;if(FA(t,e,r.children,n),r=uh.current,r&2)r=r&1|2,e.flags|=64;else{if(t!==null&&t.flags&64)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qft(t,n);else if(t.tag===19)Qft(t,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(hh(uh,r),!(e.mode&2))e.memoizedState=null;else switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&dve(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),S3e(e,!1,a,n,o,e.lastEffect);break;case"backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&dve(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}S3e(e,!0,n,null,o,e.lastEffect);break;case"together":S3e(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function LR(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),wie|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(Lr(153));if(e.child!==null){for(t=e.child,n=q5(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=q5(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var wGt,DFe,_Gt,TGt;wGt=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};DFe=function(){};_Gt=function(t,e,n,r){var a=t.memoizedProps;if(a!==r){t=e.stateNode,NB(f2.current);var o=null;switch(n){case"input":a=uFe(t,a),r=uFe(t,r),o=[];break;case"option":a=fFe(t,a),r=fFe(t,r),o=[];break;case"select":a=Ad({},a,{value:void 0}),r=Ad({},r,{value:void 0}),o=[];break;case"textarea":a=pFe(t,a),r=pFe(t,r),o=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=rve)}vFe(n,r);var s;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Yee.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Yee.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Yu("scroll",t),o||l===c||(o=[])):typeof c=="object"&&c!==null&&c.$$typeof===eJe?c.toString():(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(e.updateQueue=u)&&(e.flags|=4)}};TGt=function(t,e,n,r){n!==r&&(e.flags|=4)};function aQ(t,e){if(!p2)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function tir(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return e1(e.type)&&ave(),null;case 3:return IH(),ed(XA),ed(xv),EJe(),r=e.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Tle(e)?e.flags|=4:r.hydrate||(e.flags|=256)),DFe(e),null;case 5:xJe(e);var a=NB(lte.current);if(n=e.type,t!==null&&e.stateNode!=null)_Gt(t,e,n,r,a),t.ref!==e.ref&&(e.flags|=128);else{if(!r){if(e.stateNode===null)throw Error(Lr(166));return null}if(t=NB(f2.current),Tle(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[I3]=e,r[ive]=o,n){case"dialog":Yu("cancel",r),Yu("close",r);break;case"iframe":case"object":case"embed":Yu("load",r);break;case"video":case"audio":for(t=0;t<ZJ.length;t++)Yu(ZJ[t],r);break;case"source":Yu("error",r);break;case"img":case"image":case"link":Yu("error",r),Yu("load",r);break;case"details":Yu("toggle",r);break;case"input":qht(r,o),Yu("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Yu("invalid",r);break;case"textarea":Jht(r,o),Yu("invalid",r)}vFe(n,o),t=null;for(var s in o)o.hasOwnProperty(s)&&(a=o[s],s==="children"?typeof a=="string"?r.textContent!==a&&(t=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(t=["children",""+a]):Yee.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Yu("scroll",r));switch(n){case"input":ble(r),Yht(r,o,!0);break;case"textarea":ble(r),Zht(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=rve)}r=t,e.updateQueue=r,r!==null&&(e.flags|=4)}else{switch(s=a.nodeType===9?a:a.ownerDocument,t===mFe.html&&(t=yzt(n)),t===mFe.html?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[I3]=e,t[ive]=r,wGt(t,e,!1,!1),e.stateNode=t,s=AFe(n,r),n){case"dialog":Yu("cancel",t),Yu("close",t),a=r;break;case"iframe":case"object":case"embed":Yu("load",t),a=r;break;case"video":case"audio":for(a=0;a<ZJ.length;a++)Yu(ZJ[a],t);a=r;break;case"source":Yu("error",t),a=r;break;case"img":case"image":case"link":Yu("error",t),Yu("load",t),a=r;break;case"details":Yu("toggle",t),a=r;break;case"input":qht(t,r),a=uFe(t,r),Yu("invalid",t);break;case"option":a=fFe(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},a=Ad({},r,{value:void 0}),Yu("invalid",t);break;case"textarea":Jht(t,r),a=pFe(t,r),Yu("invalid",t);break;default:a=r}vFe(n,a);var l=a;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?Ezt(t,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&bzt(t,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Jee(t,c):typeof c=="number"&&Jee(t,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Yee.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Yu("scroll",t):c!=null&&QYe(t,o,c,s))}switch(n){case"input":ble(t),Yht(t,r,!1);break;case"textarea":ble(t),Zht(t);break;case"option":r.value!=null&&t.setAttribute("value",""+V5(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?bj(t,!!r.multiple,o,!1):r.defaultValue!=null&&bj(t,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(t.onclick=rve)}Xzt(n,r)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)TGt(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Lr(166));n=NB(lte.current),NB(f2.current),Tle(e)?(r=e.stateNode,n=e.memoizedProps,r[I3]=e,r.nodeValue!==n&&(e.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[I3]=e,e.stateNode=r)}return null;case 13:return ed(uh),r=e.memoizedState,e.flags&64?(e.lanes=n,e):(r=r!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&Tle(e):n=t.memoizedState!==null,r&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||uh.current&1?qm===0&&(qm=3):((qm===0||qm===3)&&(qm=4),D0===null||!(wie&134217727)&&!(qz&134217727)||Tj(D0,vv))),(r||n)&&(e.flags|=4),null);case 4:return IH(),DFe(e),t===null&&Yzt(e.stateNode.containerInfo),null;case 10:return yJe(e),null;case 17:return e1(e.type)&&ave(),null;case 19:if(ed(uh),r=e.memoizedState,r===null)return null;if(o=(e.flags&64)!==0,s=r.rendering,s===null)if(o)aQ(r,!1);else{if(qm!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=dve(t),s!==null){for(e.flags|=64,aQ(r,!1),o=s.updateQueue,o!==null&&(e.updateQueue=o,e.flags|=4),r.lastEffect===null&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return hh(uh,uh.current&1|2),e.child}t=t.sibling}r.tail!==null&&fv()>zFe&&(e.flags|=64,o=!0,aQ(r,!1),e.lanes=33554432)}else{if(!o)if(t=dve(s),t!==null){if(e.flags|=64,o=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),aQ(r,!0),r.tail===null&&r.tailMode==="hidden"&&!s.alternate&&!p2)return e=e.lastEffect=r.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*fv()-r.renderingStartTime>zFe&&n!==1073741824&&(e.flags|=64,o=!0,aQ(r,!1),e.lanes=33554432);r.isBackwards?(s.sibling=e.child,e.child=s):(n=r.last,n!==null?n.sibling=s:e.child=s,r.last=s)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=fv(),n.sibling=null,e=uh.current,hh(uh,o?e&1|2:e&1),n):null;case 23:case 24:return IJe(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(Lr(156,e.tag))}function nir(t){switch(t.tag){case 1:e1(t.type)&&ave();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(IH(),ed(XA),ed(xv),EJe(),e=t.flags,e&64)throw Error(Lr(285));return t.flags=e&-4097|64,t;case 5:return xJe(t),null;case 13:return ed(uh),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return ed(uh),null;case 4:return IH(),null;case 10:return yJe(t),null;case 23:case 24:return IJe(),null;default:return null}}function kJe(t,e){try{var n="",r=e;do n+=Bnr(r),r=r.return;while(r);var a=n}catch(o){a=`
Error generating stack: `+o.message+`
`+o.stack}return{value:t,source:e,stack:a}}function $Fe(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var rir=typeof WeakMap=="function"?WeakMap:Map;function CGt(t,e,n){n=c5(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ave||(Ave=!0,GFe=r),$Fe(t,e)},n}function kGt(t,e,n){n=c5(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var a=e.value;n.payload=function(){return $Fe(t,e),r(a)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(YT===null?YT=new Set([this]):YT.add(this),$Fe(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var iir=typeof WeakSet=="function"?WeakSet:Set;function Yft(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){f5(t,n)}else e.current=null}function air(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?n:BS(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&mJe(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Lr(163))}function oir(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)===3){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var a=t;r=a.next,a=a.tag,a&4&&a&1&&(DGt(n,t),pir(n,t)),t=r}while(t!==e)}return;case 1:t=n.stateNode,n.flags&4&&(e===null?t.componentDidMount():(r=n.elementType===n.type?e.memoizedProps:BS(n.type,e.memoizedProps),t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&Nft(n,e,t);return;case 3:if(e=n.updateQueue,e!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}Nft(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Xzt(n.type,n.memoizedProps)&&t.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Izt(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Lr(163))}function Jft(t,e){for(var n=t;;){if(n.tag===5){var r=n.stateNode;if(e)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=a!=null&&a.hasOwnProperty("display")?a.display:null,r.style.display=xzt("display",a)}}else if(n.tag===6)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Zft(t,e){if(fD&&typeof fD.onCommitFiberUnmount=="function")try{fD.onCommitFiberUnmount(gJe,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var n=t=t.next;do{var r=n,a=r.destroy;if(r=r.tag,a!==void 0)if(r&4)DGt(e,n);else{r=e;try{a()}catch(o){f5(r,o)}}n=n.next}while(n!==t)}break;case 1:if(Yft(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(o){f5(e,o)}break;case 5:Yft(e);break;case 4:RGt(t,e)}}function Xft(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function ept(t){return t.tag===5||t.tag===3||t.tag===4}function tpt(t){e:{for(var e=t.return;e!==null;){if(ept(e))break e;e=e.return}throw Error(Lr(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:e=e.containerInfo,r=!0;break;case 4:e=e.containerInfo,r=!0;break;default:throw Error(Lr(161))}n.flags&16&&(Jee(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||ept(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?FFe(t,n,e):jFe(t,n,e)}function FFe(t,e,n){var r=t.tag,a=r===5||r===6;if(a)t=a?t.stateNode:t.stateNode.instance,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=rve));else if(r!==4&&(t=t.child,t!==null))for(FFe(t,e,n),t=t.sibling;t!==null;)FFe(t,e,n),t=t.sibling}function jFe(t,e,n){var r=t.tag,a=r===5||r===6;if(a)t=a?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(jFe(t,e,n),t=t.sibling;t!==null;)jFe(t,e,n),t=t.sibling}function RGt(t,e){for(var n=e,r=!1,a,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(Lr(160));switch(a=r.stateNode,r.tag){case 5:o=!1;break e;case 3:a=a.containerInfo,o=!0;break e;case 4:a=a.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var s=t,l=n,c=l;;)if(Zft(s,c),c.child!==null&&c.tag!==4)c.child.return=c,c=c.child;else{if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}o?(s=a,l=n.stateNode,s.nodeType===8?s.parentNode.removeChild(l):s.removeChild(l)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Zft(t,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function w3e(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(t=r.destroy,r.destroy=void 0,t!==void 0&&t()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=e.stateNode,n!=null){r=e.memoizedProps;var a=t!==null?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,o!==null){for(n[ive]=r,t==="input"&&r.type==="radio"&&r.name!=null&&vzt(n,r),AFe(t,a),e=AFe(t,r),a=0;a<o.length;a+=2){var s=o[a],l=o[a+1];s==="style"?Ezt(n,l):s==="dangerouslySetInnerHTML"?bzt(n,l):s==="children"?Jee(n,l):QYe(n,s,l,e)}switch(t){case"input":dFe(n,r);break;case"textarea":Azt(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?bj(n,!!r.multiple,o,!1):t!==!!r.multiple&&(r.defaultValue!=null?bj(n,!!r.multiple,r.defaultValue,!0):bj(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(Lr(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,Izt(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(NJe=fv(),Jft(e.child,!0)),npt(e);return;case 19:npt(e);return;case 17:return;case 23:case 24:Jft(e,e.memoizedState!==null);return}throw Error(Lr(163))}function npt(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new iir),e.forEach(function(r){var a=vir.bind(null,t,r);n.has(r)||(n.add(r),r.then(a,a))})}}function sir(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var lir=Math.ceil,vve=C8.ReactCurrentDispatcher,RJe=C8.ReactCurrentOwner,yo=0,D0=null,pp=null,vv=0,n6=0,HFe=KP(0),qm=0,$be=null,Qz=0,wie=0,qz=0,MJe=0,UFe=null,NJe=0,zFe=1/0;function Yz(){zFe=fv()+500}var Zi=null,Ave=!1,GFe=null,YT=null,Q5=!1,dX=null,XJ=90,VFe=[],KFe=[],YR=null,hX=0,WFe=null,Lpe=-1,kR=0,Bpe=0,fX=null,Dpe=!1;function By(){return yo&48?fv():Lpe!==-1?Lpe:Lpe=fv()}function d5(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return NH()===99?1:2;if(kR===0&&(kR=Qz),qrr.transition!==0){Bpe!==0&&(Bpe=UFe!==null?UFe.pendingLanes:0),t=kR;var e=4186112&~Bpe;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=NH(),yo&4&&t===98?t=tve(12,kR):(t=Znr(t),t=tve(t,kR)),t}function h5(t,e,n){if(50<hX)throw hX=0,WFe=null,Error(Lr(185));if(t=Fbe(t,e),t===null)return null;Nbe(t,e,n),t===D0&&(qz|=e,qm===4&&Tj(t,vv));var r=NH();e===1?yo&8&&!(yo&48)?QFe(t):(jx(t,n),yo===0&&(Yz(),uC())):(!(yo&4)||r!==98&&r!==99||(YR===null?YR=new Set([t]):YR.add(t)),jx(t,n)),UFe=t}function Fbe(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}function jx(t,e){for(var n=t.callbackNode,r=t.suspendedLanes,a=t.pingedLanes,o=t.expirationTimes,s=t.pendingLanes;0<s;){var l=31-K5(s),c=1<<l,u=o[l];if(u===-1){if(!(c&r)||c&a){u=e,q7(c);var d=Tu;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=e&&(t.expiredLanes|=c);s&=~c}if(r=tte(t,t===D0?vv:0),e=Tu,r===0)n!==null&&(n!==y3e&&RFe(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==y3e&&RFe(n)}e===15?(n=QFe.bind(null,t),AR===null?(AR=[n],Ope=vJe(Bbe,sGt)):AR.push(n),n=y3e):e===14?n=ate(99,QFe.bind(null,t)):(n=Xnr(e),n=ate(n,MGt.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function MGt(t){if(Lpe=-1,Bpe=kR=0,yo&48)throw Error(Lr(327));var e=t.callbackNode;if(WP()&&t.callbackNode!==e)return null;var n=tte(t,t===D0?vv:0);if(n===0)return null;var r=n,a=yo;yo|=16;var o=OGt();(D0!==t||vv!==r)&&(Yz(),Cj(t,r));do try{dir();break}catch(l){PGt(t,l)}while(1);if(AJe(),vve.current=o,yo=a,pp!==null?r=0:(D0=null,vv=0,r=qm),Qz&qz)Cj(t,0);else if(r!==0){if(r===2&&(yo|=64,t.hydrate&&(t.hydrate=!1,mJe(t.containerInfo)),n=Fzt(t),n!==0&&(r=eZ(t,n))),r===1)throw e=$be,Cj(t,0),Tj(t,n),jx(t,fv()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,r){case 0:case 1:throw Error(Lr(345));case 2:HL(t);break;case 3:if(Tj(t,n),(n&62914560)===n&&(r=NJe+500-fv(),10<r)){if(tte(t,0)!==0)break;if(a=t.suspendedLanes,(a&n)!==n){By(),t.pingedLanes|=t.suspendedLanes&a;break}t.timeoutHandle=Sft(HL.bind(null,t),r);break}HL(t);break;case 4:if(Tj(t,n),(n&4186112)===n)break;for(r=t.eventTimes,a=-1;0<n;){var s=31-K5(n);o=1<<s,s=r[s],s>a&&(a=s),n&=~o}if(n=a,n=fv()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*lir(n/1960))-n,10<n){t.timeoutHandle=Sft(HL.bind(null,t),n);break}HL(t);break;case 5:HL(t);break;default:throw Error(Lr(329))}}return jx(t,fv()),t.callbackNode===e?MGt.bind(null,t):null}function Tj(t,e){for(e&=~MJe,e&=~qz,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-K5(e),r=1<<n;t[n]=-1,e&=~r}}function QFe(t){if(yo&48)throw Error(Lr(327));if(WP(),t===D0&&t.expiredLanes&vv){var e=vv,n=eZ(t,e);Qz&qz&&(e=tte(t,e),n=eZ(t,e))}else e=tte(t,0),n=eZ(t,e);if(t.tag!==0&&n===2&&(yo|=64,t.hydrate&&(t.hydrate=!1,mJe(t.containerInfo)),e=Fzt(t),e!==0&&(n=eZ(t,e))),n===1)throw n=$be,Cj(t,0),Tj(t,e),jx(t,fv()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,HL(t),jx(t,fv()),null}function cir(){if(YR!==null){var t=YR;YR=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,jx(e,fv())})}uC()}function NGt(t,e){var n=yo;yo|=1;try{return t(e)}finally{yo=n,yo===0&&(Yz(),uC())}}function IGt(t,e){var n=yo;yo&=-2,yo|=8;try{return t(e)}finally{yo=n,yo===0&&(Yz(),uC())}}function kle(t,e){hh(HFe,n6),n6|=e,Qz|=e}function IJe(){n6=HFe.current,ed(HFe)}function Cj(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,zrr(n)),pp!==null)for(n=pp.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&ave();break;case 3:IH(),ed(XA),ed(xv),EJe();break;case 5:xJe(r);break;case 4:IH();break;case 13:ed(uh);break;case 19:ed(uh);break;case 10:yJe(r);break;case 23:case 24:IJe()}n=n.return}D0=t,pp=q5(t.current,null),vv=n6=Qz=e,qm=0,$be=null,MJe=qz=wie=0}function PGt(t,e){do{var n=pp;try{if(AJe(),cX.current=gve,hve){for(var r=Yh.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}hve=!1}if(cte=0,Vm=Xg=Yh=null,uX=!1,RJe.current=null,n===null||n.return===null){qm=1,$be=e,pp=null;break}e:{var o=t,s=n.return,l=n,c=e;if(e=vv,l.flags|=2048,l.firstEffect=l.lastEffect=null,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c;if(!(l.mode&2)){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var h=(uh.current&1)!==0,f=s;do{var p;if(p=f.tag===13){var m=f.memoizedState;if(m!==null)p=m.dehydrated!==null;else{var g=f.memoizedProps;p=g.fallback===void 0?!1:g.unstable_avoidThisFallback!==!0?!0:!h}}if(p){var v=f.updateQueue;if(v===null){var A=new Set;A.add(u),f.updateQueue=A}else v.add(u);if(!(f.mode&2)){if(f.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var y=c5(-1,1);y.tag=2,u5(l,y)}l.lanes|=1;break e}c=void 0,l=e;var S=o.pingCache;if(S===null?(S=o.pingCache=new rir,c=new Set,S.set(u,c)):(c=S.get(u),c===void 0&&(c=new Set,S.set(u,c))),!c.has(l)){c.add(l);var x=gir.bind(null,o,u,l);u.then(x,x)}f.flags|=4096,f.lanes=e;break e}f=f.return}while(f!==null);c=Error((yj(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}qm!==5&&(qm=2),c=kJe(c,l),f=s;do{switch(f.tag){case 3:o=c,f.flags|=4096,e&=-e,f.lanes|=e;var w=CGt(f,o,e);Mft(f,w);break e;case 1:o=c;var _=f.type,C=f.stateNode;if(!(f.flags&64)&&(typeof _.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(YT===null||!YT.has(C)))){f.flags|=4096,e&=-e,f.lanes|=e;var R=kGt(f,o,e);Mft(f,R);break e}}f=f.return}while(f!==null)}BGt(n)}catch(k){e=k,pp===n&&n!==null&&(pp=n=n.return);continue}break}while(1)}function OGt(){var t=vve.current;return vve.current=gve,t===null?gve:t}function eZ(t,e){var n=yo;yo|=16;var r=OGt();D0===t&&vv===e||Cj(t,e);do try{uir();break}catch(a){PGt(t,a)}while(1);if(AJe(),yo=n,vve.current=r,pp!==null)throw Error(Lr(261));return D0=null,vv=0,qm}function uir(){for(;pp!==null;)LGt(pp)}function dir(){for(;pp!==null&&!Krr();)LGt(pp)}function LGt(t){var e=$Gt(t.alternate,t,n6);t.memoizedProps=t.pendingProps,e===null?BGt(t):pp=e,RJe.current=null}function BGt(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=nir(e),n!==null){n.flags&=2047,pp=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=tir(n,e,n6),n!==null){pp=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||n6&1073741824||!(n.mode&4)){for(var r=0,a=n.child;a!==null;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(t.lastEffect!==null?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}if(e=e.sibling,e!==null){pp=e;return}pp=e=t}while(e!==null);qm===0&&(qm=5)}function HL(t){var e=NH();return t6(99,hir.bind(null,t,e)),null}function hir(t,e){do WP();while(dX!==null);if(yo&48)throw Error(Lr(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Lr(177));t.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=t.pendingLanes&~a;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=a,t.mutableReadLanes&=a,t.entangledLanes&=a,a=t.entanglements;for(var s=t.eventTimes,l=t.expirationTimes;0<o;){var c=31-K5(o),u=1<<c;a[c]=0,s[c]=-1,l[c]=-1,o&=~u}if(YR!==null&&!(r&24)&&YR.has(t)&&YR.delete(t),t===D0&&(pp=D0=null,vv=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(a=yo,yo|=32,RJe.current=null,g3e=Mpe,s=gft(),wFe(s)){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var d=0,h=-1,f=-1,p=0,m=0,g=s,v=null;t:for(;;){for(var A;g!==l||o!==0&&g.nodeType!==3||(h=d+o),g!==c||u!==0&&g.nodeType!==3||(f=d+u),g.nodeType===3&&(d+=g.nodeValue.length),(A=g.firstChild)!==null;)v=g,g=A;for(;;){if(g===s)break t;if(v===l&&++p===o&&(h=d),v===c&&++m===u&&(f=d),(A=g.nextSibling)!==null)break;g=v,v=g.parentNode}g=A}l=h===-1||f===-1?null:{start:h,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;v3e={focusedElem:s,selectionRange:l},Mpe=!1,fX=null,Dpe=!1,Zi=r;do try{fir()}catch(k){if(Zi===null)throw Error(Lr(330));f5(Zi,k),Zi=Zi.nextEffect}while(Zi!==null);fX=null,Zi=r;do try{for(s=t;Zi!==null;){var y=Zi.flags;if(y&16&&Jee(Zi.stateNode,""),y&128){var S=Zi.alternate;if(S!==null){var x=S.ref;x!==null&&(typeof x=="function"?x(null):x.current=null)}}switch(y&1038){case 2:tpt(Zi),Zi.flags&=-3;break;case 6:tpt(Zi),Zi.flags&=-3,w3e(Zi.alternate,Zi);break;case 1024:Zi.flags&=-1025;break;case 1028:Zi.flags&=-1025,w3e(Zi.alternate,Zi);break;case 4:w3e(Zi.alternate,Zi);break;case 8:l=Zi,RGt(s,l);var w=l.alternate;Xft(l),w!==null&&Xft(w)}Zi=Zi.nextEffect}}catch(k){if(Zi===null)throw Error(Lr(330));f5(Zi,k),Zi=Zi.nextEffect}while(Zi!==null);if(x=v3e,S=gft(),y=x.focusedElem,s=x.selectionRange,S!==y&&y&&y.ownerDocument&&Wzt(y.ownerDocument.documentElement,y)){for(s!==null&&wFe(y)&&(S=s.start,x=s.end,x===void 0&&(x=S),"selectionStart"in y?(y.selectionStart=S,y.selectionEnd=Math.min(x,y.value.length)):(x=(S=y.ownerDocument||document)&&S.defaultView||window,x.getSelection&&(x=x.getSelection(),l=y.textContent.length,w=Math.min(s.start,l),s=s.end===void 0?w:Math.min(s.end,l),!x.extend&&w>s&&(l=s,s=w,w=l),l=mft(y,w),o=mft(y,s),l&&o&&(x.rangeCount!==1||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(S=S.createRange(),S.setStart(l.node,l.offset),x.removeAllRanges(),w>s?(x.addRange(S),x.extend(o.node,o.offset)):(S.setEnd(o.node,o.offset),x.addRange(S)))))),S=[],x=y;x=x.parentNode;)x.nodeType===1&&S.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<S.length;y++)x=S[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}Mpe=!!g3e,v3e=g3e=null,t.current=n,Zi=r;do try{for(y=t;Zi!==null;){var _=Zi.flags;if(_&36&&oir(y,Zi.alternate,Zi),_&128){S=void 0;var C=Zi.ref;if(C!==null){var R=Zi.stateNode;switch(Zi.tag){case 5:S=R;break;default:S=R}typeof C=="function"?C(S):C.current=S}}Zi=Zi.nextEffect}}catch(k){if(Zi===null)throw Error(Lr(330));f5(Zi,k),Zi=Zi.nextEffect}while(Zi!==null);Zi=null,Qrr(),yo=a}else t.current=n;if(Q5)Q5=!1,dX=t,XJ=e;else for(Zi=r;Zi!==null;)e=Zi.nextEffect,Zi.nextEffect=null,Zi.flags&8&&(_=Zi,_.sibling=null,_.stateNode=null),Zi=e;if(r=t.pendingLanes,r===0&&(YT=null),r===1?t===WFe?hX++:(hX=0,WFe=t):hX=0,n=n.stateNode,fD&&typeof fD.onCommitFiberRoot=="function")try{fD.onCommitFiberRoot(gJe,n,void 0,(n.current.flags&64)===64)}catch{}if(jx(t,fv()),Ave)throw Ave=!1,t=GFe,GFe=null,t;return yo&8||uC(),null}function fir(){for(;Zi!==null;){var t=Zi.alternate;Dpe||fX===null||(Zi.flags&8?tft(Zi,fX)&&(Dpe=!0):Zi.tag===13&&sir(t,Zi)&&tft(Zi,fX)&&(Dpe=!0));var e=Zi.flags;e&256&&air(t,Zi),!(e&512)||Q5||(Q5=!0,ate(97,function(){return WP(),null})),Zi=Zi.nextEffect}}function WP(){if(XJ!==90){var t=97<XJ?97:XJ;return XJ=90,t6(t,mir)}return!1}function pir(t,e){VFe.push(e,t),Q5||(Q5=!0,ate(97,function(){return WP(),null}))}function DGt(t,e){KFe.push(e,t),Q5||(Q5=!0,ate(97,function(){return WP(),null}))}function mir(){if(dX===null)return!1;var t=dX;if(dX=null,yo&48)throw Error(Lr(331));var e=yo;yo|=32;var n=KFe;KFe=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,typeof s=="function")try{s()}catch(c){if(o===null)throw Error(Lr(330));f5(o,c)}}for(n=VFe,VFe=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var l=a.create;a.destroy=l()}catch(c){if(o===null)throw Error(Lr(330));f5(o,c)}}for(l=t.current.firstEffect;l!==null;)t=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=t;return yo=e,uC(),!0}function rpt(t,e,n){e=kJe(n,e),e=CGt(t,e,1),u5(t,e),e=By(),t=Fbe(t,1),t!==null&&(Nbe(t,1,e),jx(t,e))}function f5(t,e){if(t.tag===3)rpt(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){rpt(n,t,e);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(YT===null||!YT.has(r))){t=kJe(e,t);var a=kGt(n,t,1);if(u5(n,a),a=By(),n=Fbe(n,1),n!==null)Nbe(n,1,a),jx(n,a);else if(typeof r.componentDidCatch=="function"&&(YT===null||!YT.has(r)))try{r.componentDidCatch(e,t)}catch{}break}}n=n.return}}function gir(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=By(),t.pingedLanes|=t.suspendedLanes&n,D0===t&&(vv&n)===n&&(qm===4||qm===3&&(vv&62914560)===vv&&500>fv()-NJe?Cj(t,0):MJe|=n),jx(t,e)}function vir(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(kR===0&&(kR=Qz),e=Y7(62914560&~kR),e===0&&(e=4194304)):e=NH()===99?1:2:e=1),n=By(),t=Fbe(t,e),t!==null&&(Nbe(t,e,n),jx(t,n))}var $Gt;$Gt=function(t,e,n){var r=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||XA.current)JS=!0;else if(n&r)JS=!!(t.flags&16384);else{switch(JS=!1,e.tag){case 3:zft(e),x3e();break;case 5:Oft(e);break;case 1:e1(e.type)&&Ppe(e);break;case 4:IFe(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value;var a=e.type._context;hh(ove,a._currentValue),a._currentValue=r;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?Gft(t,e,n):(hh(uh,uh.current&1),e=LR(t,e,n),e!==null?e.sibling:null);hh(uh,uh.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&64){if(r)return qft(t,e,n);e.flags|=64}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),hh(uh,uh.current),r)break;return null;case 23:case 24:return e.lanes=0,E3e(t,e,n)}return LR(t,e,n)}else JS=!1;switch(e.lanes=0,e.tag){case 2:if(r=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,a=MH(e,xv.current),wj(e,n),a=wJe(null,e,r,t,a,n),e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,e1(r)){var o=!0;Ppe(e)}else o=!1;e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,bJe(e);var s=r.getDerivedStateFromProps;typeof s=="function"&&cve(e,r,s,t),a.updater=Dbe,e.stateNode=a,a._reactInternals=e,NFe(e,r,t,n),e=BFe(null,e,r,!0,o,n)}else e.tag=0,FA(null,e,a,n),e=e.child;return e;case 16:a=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,o=a._init,a=o(a._payload),e.type=a,o=e.tag=yir(a),t=BS(a,t),o){case 0:e=LFe(null,e,a,t,n);break e;case 1:e=Uft(null,e,a,t,n);break e;case 11:e=jft(null,e,a,t,n);break e;case 14:e=Hft(null,e,a,BS(a.type,t),r,n);break e}throw Error(Lr(306,a,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:BS(r,a),LFe(t,e,r,a,n);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:BS(r,a),Uft(t,e,r,a,n);case 3:if(zft(e),r=e.updateQueue,t===null||r===null)throw Error(Lr(282));if(r=e.pendingProps,a=e.memoizedState,a=a!==null?a.element:null,cGt(t,e),ote(e,r,null,n),r=e.memoizedState.element,r===a)x3e(),e=LR(t,e,n);else{if(a=e.stateNode,(o=a.hydrate)&&(P3=Sj(e.stateNode.containerInfo.firstChild),PR=e,o=p2=!0),o){if(t=a.mutableSourceEagerHydrationData,t!=null)for(a=0;a<t.length;a+=2)o=t[a],o._workInProgressVersionPrimary=t[a+1],_j.push(o);for(n=fGt(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else FA(t,e,r,n),x3e();e=e.child}return e;case 5:return Oft(e),t===null&&PFe(e),r=e.type,a=e.pendingProps,o=t!==null?t.memoizedProps:null,s=a.children,CFe(r,a)?s=null:o!==null&&CFe(r,o)&&(e.flags|=16),SGt(t,e),FA(t,e,s,n),e.child;case 6:return t===null&&PFe(e),null;case 13:return Gft(t,e,n);case 4:return IFe(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=uve(e,null,r,n):FA(t,e,r,n),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:BS(r,a),jft(t,e,r,a,n);case 7:return FA(t,e,e.pendingProps,n),e.child;case 8:return FA(t,e,e.pendingProps.children,n),e.child;case 12:return FA(t,e,e.pendingProps.children,n),e.child;case 10:e:{r=e.type._context,a=e.pendingProps,s=e.memoizedProps,o=a.value;var l=e.type._context;if(hh(ove,l._currentValue),l._currentValue=o,s!==null)if(l=s.value,o=px(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(s.children===a.children&&!XA.current){e=LR(t,e,n);break e}}else for(l=e.child,l!==null&&(l.return=e);l!==null;){var c=l.dependencies;if(c!==null){s=l.child;for(var u=c.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=c5(-1,n&-n),u.tag=2,u5(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),lGt(l.return,n),c.lanes|=n;break}u=u.next}}else s=l.tag===10&&l.type===e.type?null:l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===e){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}FA(t,e,a.children,n),e=e.child}return e;case 9:return a=e.type,o=e.pendingProps,r=o.children,wj(e,n),a=Fx(a,o.unstable_observedBits),r=r(a),e.flags|=1,FA(t,e,r,n),e.child;case 14:return a=e.type,o=BS(a,e.pendingProps),o=BS(a.type,o),Hft(t,e,a,o,r,n);case 15:return EGt(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:BS(r,a),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,e1(r)?(t=!0,Ppe(e)):t=!1,wj(e,n),dGt(e,r,a),NFe(e,r,a,n),BFe(null,e,r,!0,t,n);case 19:return qft(t,e,n);case 23:return E3e(t,e,n);case 24:return E3e(t,e,n)}throw Error(Lr(156,e.tag))};function Air(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function mx(t,e,n,r){return new Air(t,e,n,r)}function PJe(t){return t=t.prototype,!(!t||!t.isReactComponent)}function yir(t){if(typeof t=="function")return PJe(t)?1:0;if(t!=null){if(t=t.$$typeof,t===kbe)return 11;if(t===Rbe)return 14}return 2}function q5(t,e){var n=t.alternate;return n===null?(n=mx(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function $pe(t,e,n,r,a,o){var s=2;if(r=t,typeof t=="function")PJe(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case y3:return kj(n.children,a,o,e);case pzt:s=8,a|=16;break;case qYe:s=8,a|=1;break;case nX:return t=mx(12,n,e,a|8),t.elementType=nX,t.type=nX,t.lanes=o,t;case rX:return t=mx(13,n,e,a),t.type=rX,t.elementType=rX,t.lanes=o,t;case Jge:return t=mx(19,n,e,a),t.elementType=Jge,t.lanes=o,t;case tJe:return OJe(n,a,o,e);case cFe:return t=mx(24,n,e,a),t.elementType=cFe,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case YYe:s=10;break e;case JYe:s=9;break e;case kbe:s=11;break e;case Rbe:s=14;break e;case ZYe:s=16,r=null;break e;case XYe:s=22;break e}throw Error(Lr(130,t==null?t:typeof t,""))}return e=mx(s,n,e,a),e.elementType=t,e.type=r,e.lanes=o,e}function kj(t,e,n,r){return t=mx(7,t,r,e),t.lanes=n,t}function OJe(t,e,n,r){return t=mx(23,t,r,e),t.elementType=tJe,t.lanes=n,t}function _3e(t,e,n){return t=mx(6,t,null,e),t.lanes=n,t}function T3e(t,e,n){return e=mx(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function bir(t,e,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=c3e(0),this.expirationTimes=c3e(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=c3e(0),this.mutableSourceEagerHydrationData=null}function xir(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kB,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function yve(t,e,n,r){var a=e.current,o=By(),s=d5(a);e:if(n){n=n._reactInternals;t:{if(k8(n)!==n||n.tag!==1)throw Error(Lr(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(e1(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(Lr(171))}if(n.tag===1){var c=n.type;if(e1(c)){n=tGt(n,c,l);break e}}n=l}else n=W5;return e.context===null?e.context=n:e.pendingContext=n,e=c5(o,s),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),u5(a,e),h5(a,s,o),s}function C3e(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function ipt(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function LJe(t,e){ipt(t,e),(t=t.alternate)&&ipt(t,e)}function Eir(){return null}function BJe(t,e,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new bir(t,e,n!=null&&n.hydrate===!0),e=mx(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,bJe(e),t[Wz]=n.current,Yzt(t.nodeType===8?t.parentNode:t),r)for(t=0;t<r.length;t++){e=r[t];var a=e._getVersion;a=a(e._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[e,a]:n.mutableSourceEagerHydrationData.push(e,a)}this._internalRoot=n}BJe.prototype.render=function(t){yve(t,this._internalRoot,null,null)};BJe.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;yve(null,t,null,function(){e[Wz]=null})};function _ie(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Sir(t,e){if(e||(e=t?t.nodeType===9?t.documentElement:t.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new BJe(t,0,e?{hydrate:!0}:void 0)}function jbe(t,e,n,r,a){var o=n._reactRootContainer;if(o){var s=o._internalRoot;if(typeof a=="function"){var l=a;a=function(){var u=C3e(s);l.call(u)}}yve(e,s,t,a)}else{if(o=n._reactRootContainer=Sir(n,r),s=o._internalRoot,typeof a=="function"){var c=a;a=function(){var u=C3e(s);c.call(u)}}IGt(function(){yve(e,s,t,a)})}return C3e(s)}Rzt=function(t){if(t.tag===13){var e=By();h5(t,4,e),LJe(t,4)}};oJe=function(t){if(t.tag===13){var e=By();h5(t,67108864,e),LJe(t,67108864)}};Mzt=function(t){if(t.tag===13){var e=By(),n=d5(t);h5(t,n,e),LJe(t,n)}};Nzt=function(t,e){return e()};yFe=function(t,e,n){switch(e){case"input":if(dFe(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var a=Lbe(r);if(!a)throw Error(Lr(90));gzt(r),dFe(r,a)}}}break;case"textarea":Azt(t,n);break;case"select":e=n.value,e!=null&&bj(t,!!n.multiple,e,!1)}};rJe=NGt;_zt=function(t,e,n,r,a){var o=yo;yo|=4;try{return t6(98,t.bind(null,e,n,r,a))}finally{yo=o,yo===0&&(Yz(),uC())}};iJe=function(){!(yo&49)&&(cir(),WP())};Tzt=function(t,e){var n=yo;yo|=2;try{return t(e)}finally{yo=n,yo===0&&(Yz(),uC())}};function FGt(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_ie(e))throw Error(Lr(200));return xir(t,e,null,n)}var wir={Events:[Eie,MF,Lbe,Szt,wzt,WP,{current:!1}]},oQ={findFiberByHostInstance:MB,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},_ir={bundleType:oQ.bundleType,version:oQ.version,rendererPackageName:oQ.rendererPackageName,rendererConfig:oQ.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C8.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=kzt(t),t===null?null:t.stateNode},findFiberByHostInstance:oQ.findFiberByHostInstance||Eir,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rle=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rle.isDisabled&&Rle.supportsFiber)try{gJe=Rle.inject(_ir),fD=Rle}catch{}}iE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wir;iE.createPortal=FGt;iE.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Lr(188)):Error(Lr(268,Object.keys(t)));return t=kzt(e),t=t===null?null:t.stateNode,t};iE.flushSync=function(t,e){var n=yo;if(n&48)return t(e);yo|=1;try{if(t)return t6(99,t.bind(null,e))}finally{yo=n,uC()}};iE.hydrate=function(t,e,n){if(!_ie(e))throw Error(Lr(200));return jbe(null,t,e,!0,n)};iE.render=function(t,e,n){if(!_ie(e))throw Error(Lr(200));return jbe(null,t,e,!1,n)};iE.unmountComponentAtNode=function(t){if(!_ie(t))throw Error(Lr(40));return t._reactRootContainer?(IGt(function(){jbe(null,null,t,!1,function(){t._reactRootContainer=null,t[Wz]=null})}),!0):!1};iE.unstable_batchedUpdates=NGt;iE.unstable_createPortal=function(t,e){return FGt(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};iE.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!_ie(n))throw Error(Lr(200));if(t==null||t._reactInternals===void 0)throw Error(Lr(38));return jbe(t,e,n,!1,r)};iE.version="17.0.2";function jGt(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jGt)}catch(t){console.error(t)}}jGt(),uzt.exports=iE;var Dy=uzt.exports;const JT=Li(Dy);var HGt={exports:{}},Tir="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Cir=Tir,kir=Cir;function UGt(){}function zGt(){}zGt.resetWarningCache=UGt;var Rir=function(){function t(r,a,o,s,l,c){if(c!==kir){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:zGt,resetWarningCache:UGt};return n.PropTypes=n,n};HGt.exports=Rir();var Xy=HGt.exports;const kt=Li(Xy);function apt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function opt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?apt(Object(n),!0).forEach(function(r){GGt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):apt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fpe(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fpe=function(e){return typeof e}:Fpe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fpe(t)}function GGt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VGt(t,e){return Mir(t)||Nir(t,e)||Iir(t,e)||Pir()}function Mir(t){if(Array.isArray(t))return t}function Nir(t,e){var n=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(n!=null){var r=[],a=!0,o=!1,s,l;try{for(n=n.call(t);!(a=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function Iir(t,e){if(t){if(typeof t=="string")return spt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return spt(t,e)}}function spt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pir(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var W1=function(e,n,r){var a=!!r,o=ke.useRef(r);ke.useEffect(function(){o.current=r},[r]),ke.useEffect(function(){if(!a||!e)return function(){};var s=function(){o.current&&o.current.apply(o,arguments)};return e.on(n,s),function(){e.off(n,s)}},[a,n,e,o])},qFe=function(e){var n=ke.useRef(e);return ke.useEffect(function(){n.current=e},[e]),n.current},PH=function(e){return e!==null&&Fpe(e)==="object"},Oir=function(e){return PH(e)&&typeof e.then=="function"},Lir=function(e){return PH(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},lpt="[object Object]",Bir=function t(e,n){if(!PH(e)||!PH(n))return e===n;var r=Array.isArray(e),a=Array.isArray(n);if(r!==a)return!1;var o=Object.prototype.toString.call(e)===lpt,s=Object.prototype.toString.call(n)===lpt;if(o!==s)return!1;if(!o&&!r)return e===n;var l=Object.keys(e),c=Object.keys(n);if(l.length!==c.length)return!1;for(var u={},d=0;d<l.length;d+=1)u[l[d]]=!0;for(var h=0;h<c.length;h+=1)u[c[h]]=!0;var f=Object.keys(u);if(f.length!==l.length)return!1;var p=e,m=n,g=function(A){return t(p[A],m[A])};return f.every(g)},KGt=function(e,n,r){return PH(e)?Object.keys(e).reduce(function(a,o){var s=!PH(n)||!Bir(e[o],n[o]);return r.includes(o)?(s&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),a):s?opt(opt({},a||{}),{},GGt({},o,e[o])):a},null):null},WGt="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",cpt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:WGt;if(e===null||Lir(e))return e;throw new Error(n)},Dir=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:WGt;if(Oir(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(a){return cpt(a,n)})};var r=cpt(e,n);return r===null?{tag:"empty"}:{tag:"sync",stripe:r}},$ir=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},Hbe=ke.createContext(null);Hbe.displayName="ElementsContext";var QGt=function(e,n){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return e},qGt=function(e){var n=e.stripe,r=e.options,a=e.children,o=ke.useMemo(function(){return Dir(n)},[n]),s=ke.useState(function(){return{stripe:o.tag==="sync"?o.stripe:null,elements:o.tag==="sync"?o.stripe.elements(r):null}}),l=VGt(s,2),c=l[0],u=l[1];ke.useEffect(function(){var f=!0,p=function(g){u(function(v){return v.stripe?v:{stripe:g,elements:g.elements(r)}})};return o.tag==="async"&&!c.stripe?o.stripePromise.then(function(m){m&&f&&p(m)}):o.tag==="sync"&&!c.stripe&&p(o.stripe),function(){f=!1}},[o,c,r]);var d=qFe(n);ke.useEffect(function(){d!==null&&d!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[d,n]);var h=qFe(r);return ke.useEffect(function(){if(c.elements){var f=KGt(r,h,["clientSecret","fonts"]);f&&c.elements.update(f)}},[r,h,c.elements]),ke.useEffect(function(){$ir(c.stripe)},[c.stripe]),ke.createElement(Hbe.Provider,{value:c},a)};qGt.propTypes={stripe:kt.any,options:kt.object};var Fir=function(e){var n=ke.useContext(Hbe);return QGt(n,e)},jir=function(){var e=Fir("calls useElements()"),n=e.elements;return n};kt.func.isRequired;var YGt=ke.createContext(null);YGt.displayName="CustomCheckoutSdkContext";var Hir=function(e,n){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(n," in an <CustomCheckoutProvider> provider."));return e},Uir=ke.createContext(null);Uir.displayName="CustomCheckoutContext";kt.any,kt.shape({clientSecret:kt.string.isRequired,elementsOptions:kt.object}).isRequired;var YFe=function(e){var n=ke.useContext(YGt),r=ke.useContext(Hbe);if(n&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return n?Hir(n,e):QGt(r,e)},zir=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Rp=function(e,n){var r="".concat(zir(e),"Element"),a=function(c){var u=c.id,d=c.className,h=c.options,f=h===void 0?{}:h,p=c.onBlur,m=c.onFocus,g=c.onReady,v=c.onChange,A=c.onEscape,y=c.onClick,S=c.onLoadError,x=c.onLoaderStart,w=c.onNetworksChange,_=c.onConfirm,C=c.onCancel,R=c.onShippingAddressChange,k=c.onShippingRateChange,P=YFe("mounts <".concat(r,">")),N="elements"in P?P.elements:null,L="customCheckoutSdk"in P?P.customCheckoutSdk:null,I=ke.useState(null),b=VGt(I,2),T=b[0],M=b[1],D=ke.useRef(null),B=ke.useRef(null);W1(T,"blur",p),W1(T,"focus",m),W1(T,"escape",A),W1(T,"click",y),W1(T,"loaderror",S),W1(T,"loaderstart",x),W1(T,"networkschange",w),W1(T,"confirm",_),W1(T,"cancel",C),W1(T,"shippingaddresschange",R),W1(T,"shippingratechange",k),W1(T,"change",v);var j;g&&(e==="expressCheckout"?j=g:j=function(){g(T)}),W1(T,"ready",j),ke.useLayoutEffect(function(){if(D.current===null&&B.current!==null&&(N||L)){var U=null;L?U=L.createElement(e,f):N&&(U=N.create(e,f)),D.current=U,M(U),U&&U.mount(B.current)}},[N,L,f]);var H=qFe(f);return ke.useEffect(function(){if(D.current){var U=KGt(f,H,["paymentRequest"]);U&&D.current.update(U)}},[f,H]),ke.useLayoutEffect(function(){return function(){if(D.current&&typeof D.current.destroy=="function")try{D.current.destroy(),D.current=null}catch{}}},[]),ke.createElement("div",{id:u,className:d,ref:B})},o=function(c){YFe("mounts <".concat(r,">"));var u=c.id,d=c.className;return ke.createElement("div",{id:u,className:d})},s=n?o:a;return s.propTypes={id:kt.string,className:kt.string,onChange:kt.func,onBlur:kt.func,onFocus:kt.func,onReady:kt.func,onEscape:kt.func,onClick:kt.func,onLoadError:kt.func,onLoaderStart:kt.func,onNetworksChange:kt.func,onConfirm:kt.func,onCancel:kt.func,onShippingAddressChange:kt.func,onShippingRateChange:kt.func,options:kt.object},s.displayName=r,s.__elementType=e,s},Mp=typeof window>"u",Gir=ke.createContext(null);Gir.displayName="EmbeddedCheckoutProviderContext";var Vir=function(){var e=YFe("calls useStripe()"),n=e.stripe;return n};Rp("auBankAccount",Mp);Rp("card",Mp);var upt=Rp("cardNumber",Mp),Kir=Rp("cardExpiry",Mp),Wir=Rp("cardCvc",Mp);Rp("fpxBank",Mp);Rp("iban",Mp);Rp("idealBank",Mp);Rp("p24Bank",Mp);Rp("epsBank",Mp);Rp("payment",Mp);Rp("expressCheckout",Mp);Rp("paymentRequestButton",Mp);Rp("linkAuthentication",Mp);Rp("address",Mp);Rp("shippingAddress",Mp);Rp("paymentMethodMessaging",Mp);Rp("affirmMessage",Mp);Rp("afterpayClearpayMessage",Mp);var JGt="https://js.stripe.com/v3",Qir=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,dpt="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",qir=function(){for(var e=document.querySelectorAll('script[src^="'.concat(JGt,'"]')),n=0;n<e.length;n++){var r=e[n];if(Qir.test(r.src))return r}return null},Yir=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(JGt).concat(n);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(r),r},Jir=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:n})},Mle=null,Zir=function(e){return Mle!==null||(Mle=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&e&&console.warn(dpt),window.Stripe){n(window.Stripe);return}try{var a=qir();a&&e?console.warn(dpt):a||(a=Yir(e)),a.addEventListener("load",function(){window.Stripe?n(window.Stripe):r(new Error("Stripe.js not available"))}),a.addEventListener("error",function(){r(new Error("Failed to load Stripe.js"))})}catch(o){r(o);return}})),Mle},Xir=function(e,n,r){if(e===null)return null;var a=e.apply(void 0,n);return Jir(a,r),a},ZGt=Promise.resolve().then(function(){return Zir(null)}),XGt=!1;ZGt.catch(function(t){XGt||console.warn(t)});var ear=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];XGt=!0;var a=Date.now();return ZGt.then(function(o){return Xir(o,n,a)})};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function eVt(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function tVt(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var ZT=function(){},cv=ZT(),pX=Object,g0=function(t){return t===cv},O3=function(t){return typeof t=="function"},uM=function(t,e){return pX.assign({},t,e)},DJe="undefined",$Je=function(){return typeof window!=DJe},tar=function(){return typeof document!=DJe},nar=function(){return $Je()&&typeof window.requestAnimationFrame!=DJe},Nle=new WeakMap,rar=0,ute=function(t){var e=typeof t,n=t&&t.constructor,r=n==Date,a,o;if(pX(t)===t&&!r&&n!=RegExp){if(a=Nle.get(t),a)return a;if(a=++rar+"~",Nle.set(t,a),n==Array){for(a="@",o=0;o<t.length;o++)a+=ute(t[o])+",";Nle.set(t,a)}if(n==pX){a="#";for(var s=pX.keys(t).sort();!g0(o=s.pop());)g0(t[o])||(a+=o+":"+ute(t[o])+",");Nle.set(t,a)}}else a=r?t.toJSON():e=="symbol"?t.toString():e=="string"?JSON.stringify(t):""+t;return a},JFe=!0,iar=function(){return JFe},nVt=$Je(),FJe=tar(),ZFe=nVt&&window.addEventListener?window.addEventListener.bind(window):ZT,aar=FJe?document.addEventListener.bind(document):ZT,XFe=nVt&&window.removeEventListener?window.removeEventListener.bind(window):ZT,oar=FJe?document.removeEventListener.bind(document):ZT,sar=function(){var t=FJe&&document.visibilityState;return g0(t)||t!=="hidden"},lar=function(t){return aar("visibilitychange",t),ZFe("focus",t),function(){oar("visibilitychange",t),XFe("focus",t)}},car=function(t){var e=function(){JFe=!0,t()},n=function(){JFe=!1};return ZFe("online",e),ZFe("offline",n),function(){XFe("online",e),XFe("offline",n)}},uar={isOnline:iar,isVisible:sar},dar={initFocus:lar,initReconnect:car},Ube=!$Je()||"Deno"in window,har=function(t){return nar()?window.requestAnimationFrame(t):setTimeout(t,1)},mX=Ube?Y.useEffect:Y.useLayoutEffect,k3e=typeof navigator<"u"&&navigator.connection,hpt=!Ube&&k3e&&(["slow-2g","2g"].includes(k3e.effectiveType)||k3e.saveData),rVt=function(t){if(O3(t))try{t=t()}catch{t=""}var e=[].concat(t);t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?ute(t):"";var n=t?"$swr$"+t:"";return[t,e,n]},PB=new WeakMap,iVt=0,aVt=1,oVt=2,gX=function(t,e,n,r,a,o,s){s===void 0&&(s=!0);var l=PB.get(t),c=l[0],u=l[1],d=l[3],h=c[e],f=u[e];if(s&&f)for(var p=0;p<f.length;++p)f[p](n,r,a);return o&&(delete d[e],h&&h[0])?h[0](oVt).then(function(){return t.get(e)}):t.get(e)},far=0,eje=function(){return++far},sVt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return eVt(void 0,void 0,void 0,function(){var n,r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_;return tVt(this,function(C){switch(C.label){case 0:if(n=t[0],r=t[1],a=t[2],o=t[3],s=typeof o=="boolean"?{revalidate:o}:o||{},l=g0(s.populateCache)?!0:s.populateCache,c=s.revalidate!==!1,u=s.rollbackOnError!==!1,d=s.optimisticData,h=rVt(r),f=h[0],p=h[2],!f)return[2];if(m=PB.get(n),g=m[2],t.length<3)return[2,gX(n,f,n.get(f),cv,cv,c,!0)];if(v=a,y=eje(),g[f]=[y,0],S=!g0(d),x=n.get(f),S&&(w=O3(d)?d(x):d,n.set(f,w),gX(n,f,w)),O3(v))try{v=v(n.get(f))}catch(R){A=R}return v&&O3(v.then)?[4,v.catch(function(R){A=R})]:[3,2];case 1:if(v=C.sent(),y!==g[f][0]){if(A)throw A;return[2,v]}else A&&S&&u&&(l=!0,v=x,n.set(f,x));C.label=2;case 2:return l&&(A||(O3(l)&&(v=l(v,x)),n.set(f,v)),n.set(p,uM(n.get(p),{error:A}))),g[f][1]=eje(),[4,gX(n,f,v,A,cv,c,!!l)];case 3:if(_=C.sent(),A)throw A;return[2,l?_:v]}})})},fpt=function(t,e){for(var n in t)t[n][0]&&t[n][0](e)},lVt=function(t,e){if(!PB.has(t)){var n=uM(dar,e),r={},a=sVt.bind(cv,t),o=ZT;if(PB.set(t,[r,{},{},{},a]),!Ube){var s=n.initFocus(setTimeout.bind(cv,fpt.bind(cv,r,iVt))),l=n.initReconnect(setTimeout.bind(cv,fpt.bind(cv,r,aVt)));o=function(){s&&s(),l&&l(),PB.delete(t)}}return[t,a,o]}return[t,PB.get(t)[4]]},par=function(t,e,n,r,a){var o=n.errorRetryCount,s=a.retryCount,l=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!g0(o)&&s>o||setTimeout(r,l,a)},cVt=lVt(new Map),uVt=cVt[0],dVt=cVt[1],hVt=uM({onLoadingSlow:ZT,onSuccess:ZT,onError:ZT,onErrorRetry:par,onDiscarded:ZT,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:hpt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:hpt?5e3:3e3,compare:function(t,e){return ute(t)==ute(e)},isPaused:function(){return!1},cache:uVt,mutate:dVt,fallback:{}},uar),fVt=function(t,e){var n=uM(t,e);if(e){var r=t.use,a=t.fallback,o=e.use,s=e.fallback;r&&o&&(n.use=r.concat(o)),a&&s&&(n.fallback=uM(a,s))}return n},tje=Y.createContext({}),mar=function(t){var e=t.value,n=fVt(Y.useContext(tje),e),r=e&&e.provider,a=Y.useState(function(){return r?lVt(r(n.cache||uVt),e):cv})[0];return a&&(n.cache=a[0],n.mutate=a[1]),mX(function(){return a?a[2]:cv},[]),Y.createElement(tje.Provider,uM(t,{value:n}))},gar=function(t,e){var n=Y.useState({})[1],r=Y.useRef(t),a=Y.useRef({data:!1,error:!1,isValidating:!1}),o=Y.useCallback(function(s){var l=!1,c=r.current;for(var u in s){var d=u;c[d]!==s[d]&&(c[d]=s[d],a.current[d]&&(l=!0))}l&&!e.current&&n({})},[]);return mX(function(){r.current=t}),[r,a.current,o]},Aar=function(t){return O3(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}]},yar=function(){return uM(hVt,Y.useContext(tje))},bar=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=yar(),o=Aar(n),s=o[0],l=o[1],c=o[2],u=fVt(a,c),d=t,h=u.use;if(h)for(var f=h.length;f-- >0;)d=h[f](d);return d(s,l||u.fetcher,u)}},ppt=function(t,e,n){var r=e[t]||(e[t]=[]);return r.push(n),function(){var a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}},R3e={dedupe:!0},xar=function(t,e,n){var r=n.cache,a=n.compare,o=n.fallbackData,s=n.suspense,l=n.revalidateOnMount,c=n.refreshInterval,u=n.refreshWhenHidden,d=n.refreshWhenOffline,h=PB.get(r),f=h[0],p=h[1],m=h[2],g=h[3],v=rVt(t),A=v[0],y=v[1],S=v[2],x=Y.useRef(!1),w=Y.useRef(!1),_=Y.useRef(A),C=Y.useRef(e),R=Y.useRef(n),k=function(){return R.current},P=function(){return k().isVisible()&&k().isOnline()},N=function(ee){return r.set(S,uM(r.get(S),ee))},L=r.get(A),I=g0(o)?n.fallback[A]:o,b=g0(L)?I:L,T=r.get(S)||{},M=T.error,D=!x.current,B=function(){return D&&!g0(l)?l:k().isPaused()?!1:s?g0(b)?!1:n.revalidateIfStale:g0(b)||n.revalidateIfStale},j=function(){return!A||!e?!1:T.isValidating?!0:D&&B()},H=j(),U=gar({data:b,error:M,isValidating:H},w),$=U[0],z=U[1],Z=U[2],K=Y.useCallback(function(ee){return eVt(void 0,void 0,void 0,function(){var X,te,J,ne,ie,he,de,ce,Ee,Me,Be,ze,je;return tVt(this,function(ye){switch(ye.label){case 0:if(X=C.current,!A||!X||w.current||k().isPaused())return[2,!1];ne=!0,ie=ee||{},he=!g[A]||!ie.dedupe,de=function(){return!w.current&&A===_.current&&x.current},ce=function(){var me=g[A];me&&me[1]===J&&delete g[A]},Ee={isValidating:!1},Me=function(){N({isValidating:!1}),de()&&Z(Ee)},N({isValidating:!0}),Z({isValidating:!0}),ye.label=1;case 1:return ye.trys.push([1,3,,4]),he&&(gX(r,A,$.current.data,$.current.error,!0),n.loadingTimeout&&!r.get(A)&&setTimeout(function(){ne&&de()&&k().onLoadingSlow(A,n)},n.loadingTimeout),g[A]=[X.apply(void 0,y),eje()]),je=g[A],te=je[0],J=je[1],[4,te];case 2:return te=ye.sent(),he&&setTimeout(ce,n.dedupingInterval),!g[A]||g[A][1]!==J?(he&&de()&&k().onDiscarded(A),[2,!1]):(N({error:cv}),Ee.error=cv,Be=m[A],!g0(Be)&&(J<=Be[0]||J<=Be[1]||Be[1]===0)?(Me(),he&&de()&&k().onDiscarded(A),[2,!1]):(a($.current.data,te)?Ee.data=$.current.data:Ee.data=te,a(r.get(A),te)||r.set(A,te),he&&de()&&k().onSuccess(te,A,n),[3,4]));case 3:return ze=ye.sent(),ce(),k().isPaused()||(N({error:ze}),Ee.error=ze,he&&de()&&(k().onError(ze,A,n),(typeof n.shouldRetryOnError=="boolean"&&n.shouldRetryOnError||O3(n.shouldRetryOnError)&&n.shouldRetryOnError(ze))&&P()&&k().onErrorRetry(ze,A,n,K,{retryCount:(ie.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return ne=!1,Me(),de()&&he&&gX(r,A,Ee.data,Ee.error,!1),[2,!0]}})})},[A]),Q=Y.useCallback(sVt.bind(cv,r,function(){return _.current}),[]);if(mX(function(){C.current=e,R.current=n}),mX(function(){if(A){var ee=A!==_.current,X=K.bind(cv,R3e),te=function(de,ce,Ee){Z(uM({error:ce,isValidating:Ee},a($.current.data,de)?cv:{data:de}))},J=0,ne=function(de){if(de==iVt){var ce=Date.now();k().revalidateOnFocus&&ce>J&&P()&&(J=ce+k().focusThrottleInterval,X())}else if(de==aVt)k().revalidateOnReconnect&&P()&&X();else if(de==oVt)return K()},ie=ppt(A,p,te),he=ppt(A,f,ne);return w.current=!1,_.current=A,x.current=!0,ee&&Z({data:b,error:M,isValidating:H}),B()&&(g0(b)||Ube?X():har(X)),function(){w.current=!0,ie(),he()}}},[A,K]),mX(function(){var ee;function X(){var J=O3(c)?c(b):c;J&&ee!==-1&&(ee=setTimeout(te,J))}function te(){!$.current.error&&(u||k().isVisible())&&(d||k().isOnline())?K(R3e).then(X):X()}return X(),function(){ee&&(clearTimeout(ee),ee=-1)}},[c,u,d,K]),Y.useDebugValue(b),s&&g0(b)&&A)throw C.current=e,R.current=n,w.current=!1,g0(M)?K(R3e):M;return{mutate:Q,get data(){return z.data=!0,b},get error(){return z.error=!0,M},get isValidating(){return z.isValidating=!0,H}}},Ear=pX.defineProperty(mar,"default",{value:hVt}),rR=bar(xar);const pVt=Object.prototype.toString;function mVt(t){switch(pVt.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return r6(t,Error)}}function Jz(t,e){return pVt.call(t)===`[object ${e}]`}function jJe(t){return Jz(t,"ErrorEvent")}function mpt(t){return Jz(t,"DOMError")}function Sar(t){return Jz(t,"DOMException")}function JR(t){return Jz(t,"String")}function HJe(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function UJe(t){return t===null||HJe(t)||typeof t!="object"&&typeof t!="function"}function OH(t){return Jz(t,"Object")}function zbe(t){return typeof Event<"u"&&r6(t,Event)}function war(t){return typeof Element<"u"&&r6(t,Element)}function _ar(t){return Jz(t,"RegExp")}function Gbe(t){return!!(t&&t.then&&typeof t.then=="function")}function Tar(t){return OH(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Car(t){return typeof t=="number"&&t!==t}function r6(t,e){try{return t instanceof e}catch{return!1}}function gVt(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Rj(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function gpt(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const a=t[r];try{gVt(a)?n.push("[VueViewModel]"):n.push(String(a))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function kar(t,e,n=!1){return JR(t)?_ar(e)?e.test(t):JR(e)?n?t===e:t.includes(e):!1:!1}function Tie(t,e=[],n=!1){return e.some(r=>kar(t,r,n))}function Rar(t,e,n=250,r,a,o,s){if(!o.exception||!o.exception.values||!s||!r6(s.originalException,Error))return;const l=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;l&&(o.exception.values=Mar(nje(t,e,a,s.originalException,r,o.exception.values,l,0),n))}function nje(t,e,n,r,a,o,s,l){if(o.length>=n+1)return o;let c=[...o];if(r6(r[a],Error)){vpt(s,l);const u=t(e,r[a]),d=c.length;Apt(u,a,d,l),c=nje(t,e,n,r[a],a,[u,...c],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(r6(u,Error)){vpt(s,l);const h=t(e,u),f=c.length;Apt(h,`errors[${d}]`,f,l),c=nje(t,e,n,u,a,[h,...c],h,f)}}),c}function vpt(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function Apt(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Mar(t,e){return t.map(n=>(n.value&&(n.value=Rj(n.value,e)),n))}const Wa=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function Ile(t){return t&&t.Math==Math?t:void 0}const yl=typeof globalThis=="object"&&Ile(globalThis)||typeof window=="object"&&Ile(window)||typeof self=="object"&&Ile(self)||typeof Wa=="object"&&Ile(Wa)||function(){return this}()||{};function zJe(){return yl}function vVt(t,e,n){const r=n||yl,a=r.__SENTRY__=r.__SENTRY__||{};return a[t]||(a[t]=e())}const GJe=zJe(),Nar=80;function Vbe(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,a=[];let o=0,s=0;const l=" > ",c=l.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||Nar;for(;n&&o++<r&&(u=Iar(n,d),!(u==="html"||o>1&&s+a.length*c+u.length>=h));)a.push(u),s+=u.length,n=n.parentNode;return a.reverse().join(l)}catch{return"<unknown>"}}function Iar(t,e){const n=t,r=[];let a,o,s,l,c;if(!n||!n.tagName)return"";if(GJe.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter(h=>n.getAttribute(h)).map(h=>[h,n.getAttribute(h)]):null;if(u&&u.length)u.forEach(h=>{r.push(`[${h[0]}="${h[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),a=n.className,a&&JR(a))for(o=a.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],l=n.getAttribute(s),l&&r.push(`[${s}="${l}"]`);return r.join("")}function Par(){try{return GJe.document.location.href}catch{return""}}function Oar(t){if(!GJe.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}const Cie=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lar="Sentry Logger ",rje=["debug","info","warn","error","log","assert","trace"],bve={};function i6(t){if(!("console"in yl))return t();const e=yl.console,n={},r=Object.keys(bve);r.forEach(a=>{const o=bve[a];n[a]=e[a],e[a]=o});try{return t()}finally{r.forEach(a=>{e[a]=n[a]})}}function Bar(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Cie?rje.forEach(n=>{e[n]=(...r)=>{t&&i6(()=>{yl.console[n](`${Lar}[${n}]:`,...r)})}}):rje.forEach(n=>{e[n]=()=>{}}),e}const fi=Bar(),Dar=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $ar(t){return t==="http"||t==="https"}function kie(t,e=!1){const{host:n,path:r,pass:a,port:o,projectId:s,protocol:l,publicKey:c}=t;return`${l}://${c}${e&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function Far(t){const e=Dar.exec(t);if(!e){i6(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,a="",o,s="",l]=e.slice(1);let c="",u=l;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const h=u.match(/^\d+/);h&&(u=h[0])}return AVt({host:o,pass:a,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function AVt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function jar(t){if(!Cie)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(fi.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?$ar(r)?e&&isNaN(parseInt(e,10))?(fi.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(fi.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(fi.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Har(t){const e=typeof t=="string"?Far(t):AVt(t);if(!(!e||!jar(e)))return e}class IT extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function rm(t,e,n){if(!(e in t))return;const r=t[e],a=n(r);typeof a=="function"&&yVt(a,r),t[e]=a}function dte(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Cie&&fi.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function yVt(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,dte(t,"__sentry_original__",e)}catch{}}function VJe(t){return t.__sentry_original__}function Uar(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function bVt(t){if(mVt(t))return{message:t.message,name:t.name,stack:t.stack,...bpt(t)};if(zbe(t)){const e={type:t.type,target:ypt(t.target),currentTarget:ypt(t.currentTarget),...bpt(t)};return typeof CustomEvent<"u"&&r6(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function ypt(t){try{return war(t)?Vbe(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function bpt(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function zar(t,e=40){const n=Object.keys(bVt(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Rj(n[0],e);for(let r=n.length;r>0;r--){const a=n.slice(0,r).join(", ");if(!(a.length>e))return r===n.length?a:Rj(a,e)}return""}function ZS(t){return ije(t,new Map)}function ije(t,e){if(Gar(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const a of Object.keys(t))typeof t[a]<"u"&&(r[a]=ije(t[a],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(a=>{r.push(ije(a,e))}),r}return t}function Gar(t){if(!OH(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const xVt=50,xpt=/\(error: (.*)\)/,Ept=/captureMessage|captureException/;function EVt(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const a=[],o=n.split(`
`);for(let s=r;s<o.length;s++){const l=o[s];if(l.length>1024)continue;const c=xpt.test(l)?l.replace(xpt,"$1"):l;if(!c.match(/\S*Error: /)){for(const u of e){const d=u(c);if(d){a.push(d);break}}if(a.length>=xVt)break}}return Kar(a)}}function Var(t){return Array.isArray(t)?EVt(...t):t}function Kar(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),Ept.test(e[e.length-1].function||"")&&(e.pop(),Ept.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,xVt).map(n=>({...n,filename:n.filename||e[e.length-1].filename,function:n.function||"?"}))}const M3e="<anonymous>";function dM(t){try{return!t||typeof t!="function"?M3e:t.name||M3e}catch{return M3e}}const jpe={},Spt={};function M8(t,e){jpe[t]=jpe[t]||[],jpe[t].push(e)}function N8(t,e){Spt[t]||(e(),Spt[t]=!0)}function hw(t,e){const n=t&&jpe[t];if(n)for(const r of n)try{r(e)}catch(a){Cie&&fi.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${dM(r)}
Error:`,a)}}function War(t){const e="console";M8(e,t),N8(e,Qar)}function Qar(){"console"in yl&&rje.forEach(function(t){t in yl.console&&rm(yl.console,t,function(e){return bve[t]=e,function(...n){hw("console",{args:n,level:t});const a=bve[t];a&&a.apply(yl.console,n)}})})}function $y(){const t=yl,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function SVt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function b3(t){const{message:e,event_id:n}=t;if(e)return e;const r=SVt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function aje(t,e,n){const r=t.exception=t.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function hte(t,e){const n=SVt(t);if(!n)return;const r={type:"generic",handled:!0},a=n.mechanism;if(n.mechanism={...r,...a,...e},e&&"data"in e){const o={...a&&a.data,...e.data};n.mechanism.data=o}}function wpt(t){if(t&&t.__sentry_captured__)return!0;try{dte(t,"__sentry_captured__",!0)}catch{}return!1}function wVt(t){return Array.isArray(t)?t:[t]}const J7=yl,qar=1e3;let _pt,oje,sje;function _Vt(t){const e="dom";M8(e,t),N8(e,Yar)}function Yar(){if(!J7.document)return;const t=hw.bind(null,"dom"),e=Tpt(t,!0);J7.document.addEventListener("click",e,!1),J7.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=J7[n]&&J7[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(rm(r,"addEventListener",function(a){return function(o,s,l){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},d=u[o]=u[o]||{refCount:0};if(!d.handler){const h=Tpt(t);d.handler=h,a.call(this,o,h,l)}d.refCount++}catch{}return a.call(this,o,s,l)}}),rm(r,"removeEventListener",function(a){return function(o,s,l){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},d=u[o];d&&(d.refCount--,d.refCount<=0&&(a.call(this,o,d.handler,l),d.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return a.call(this,o,s,l)}}))})}function Jar(t){if(t.type!==oje)return!1;try{if(!t.target||t.target._sentryId!==sje)return!1}catch{}return!0}function Zar(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function Tpt(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Xar(n);if(Zar(n.type,r))return;dte(n,"_sentryCaptured",!0),r&&!r._sentryId&&dte(r,"_sentryId",$y());const a=n.type==="keypress"?"input":n.type;Jar(n)||(t({event:n,name:a,global:e}),oje=n.type,sje=r?r._sentryId:void 0),clearTimeout(_pt),_pt=J7.setTimeout(()=>{sje=void 0,oje=void 0},qar)}}function Xar(t){try{return t.target}catch{return null}}const lje=zJe();function TVt(){if(!("fetch"in lje))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function cje(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function eor(){if(typeof EdgeRuntime=="string")return!0;if(!TVt())return!1;if(cje(lje.fetch))return!0;let t=!1;const e=lje.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=cje(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Cie&&fi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function CVt(t){const e="fetch";M8(e,t),N8(e,tor)}function tor(){eor()&&rm(yl,"fetch",function(t){return function(...e){const{method:n,url:r}=nor(e),a={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return hw("fetch",{...a}),t.apply(yl,e).then(o=>{const s={...a,endTimestamp:Date.now(),response:o};return hw("fetch",s),o},o=>{const s={...a,endTimestamp:Date.now(),error:o};throw hw("fetch",s),o})}})}function uje(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Cpt(t){return typeof t=="string"?t:t?uje(t,"url")?t.url:t.toString?t.toString():"":""}function nor(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Cpt(n),method:uje(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:Cpt(e),method:uje(e,"method")?String(e.method).toUpperCase():"GET"}}let Ple=null;function ror(t){const e="error";M8(e,t),N8(e,ior)}function ior(){Ple=yl.onerror,yl.onerror=function(t,e,n,r,a){return hw("error",{column:r,error:a,line:n,msg:t,url:e}),Ple&&!Ple.__SENTRY_LOADER__?Ple.apply(this,arguments):!1},yl.onerror.__SENTRY_INSTRUMENTED__=!0}let Ole=null;function aor(t){const e="unhandledrejection";M8(e,t),N8(e,oor)}function oor(){Ole=yl.onunhandledrejection,yl.onunhandledrejection=function(t){return hw("unhandledrejection",t),Ole&&!Ole.__SENTRY_LOADER__?Ole.apply(this,arguments):!0},yl.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Lle=zJe();function sor(){const t=Lle.chrome,e=t&&t.app&&t.app.runtime,n="history"in Lle&&!!Lle.history.pushState&&!!Lle.history.replaceState;return!e&&n}const sQ=yl;let Ble;function KJe(t){const e="history";M8(e,t),N8(e,lor)}function lor(){if(!sor())return;const t=sQ.onpopstate;sQ.onpopstate=function(...n){const r=sQ.location.href,a=Ble;if(Ble=r,hw("history",{from:a,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const a=r.length>2?r[2]:void 0;if(a){const o=Ble,s=String(a);Ble=s,hw("history",{from:o,to:s})}return n.apply(this,r)}}rm(sQ.history,"pushState",e),rm(sQ.history,"replaceState",e)}const cor=yl,OB="__sentry_xhr_v3__";function kVt(t){const e="xhr";M8(e,t),N8(e,uor)}function uor(){if(!cor.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;rm(t,"open",function(e){return function(...n){const r=Date.now(),a=JR(n[0])?n[0].toUpperCase():void 0,o=dor(n[1]);if(!a||!o)return e.apply(this,n);this[OB]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[OB];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const c={args:[a,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};hw("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?rm(this,"onreadystatechange",function(l){return function(...c){return s(),l.apply(this,c)}}):this.addEventListener("readystatechange",s),rm(this,"setRequestHeader",function(l){return function(...c){const[u,d]=c,h=this[OB];return h&&JR(u)&&JR(d)&&(h.request_headers[u.toLowerCase()]=d),l.apply(this,c)}}),e.apply(this,n)}}),rm(t,"send",function(e){return function(...n){const r=this[OB];if(!r)return e.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const a={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return hw("xhr",a),e.apply(this,n)}})}function dor(t){if(JR(t))return t;try{return t.toString()}catch{}}function RVt(){throw new Error("setTimeout has not been defined")}function MVt(){throw new Error("clearTimeout has not been defined")}var jI=RVt,HI=MVt;typeof Wa.setTimeout=="function"&&(jI=setTimeout);typeof Wa.clearTimeout=="function"&&(HI=clearTimeout);function NVt(t){if(jI===setTimeout)return setTimeout(t,0);if((jI===RVt||!jI)&&setTimeout)return jI=setTimeout,setTimeout(t,0);try{return jI(t,0)}catch{try{return jI.call(null,t,0)}catch{return jI.call(this,t,0)}}}function hor(t){if(HI===clearTimeout)return clearTimeout(t);if((HI===MVt||!HI)&&clearTimeout)return HI=clearTimeout,clearTimeout(t);try{return HI(t)}catch{try{return HI.call(null,t)}catch{return HI.call(this,t)}}}var BR=[],Mj=!1,LB,Hpe=-1;function por(){!Mj||!LB||(Mj=!1,LB.length?BR=LB.concat(BR):Hpe=-1,BR.length&&IVt())}function IVt(){if(!Mj){var t=NVt(por);Mj=!0;for(var e=BR.length;e;){for(LB=BR,BR=[];++Hpe<e;)LB&&LB[Hpe].run();Hpe=-1,e=BR.length}LB=null,Mj=!1,hor(t)}}function mor(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];BR.push(new PVt(t,e)),BR.length===1&&!Mj&&NVt(IVt)}function PVt(t,e){this.fun=t,this.array=e}PVt.prototype.run=function(){this.fun.apply(null,this.array)};var gor="browser",vor="browser",Aor=!0,yor={},bor=[],xor="",Eor={},Sor={},wor={};function I8(){}var _or=I8,Tor=I8,Cor=I8,kor=I8,Ror=I8,Mor=I8,Nor=I8;function Ior(t){throw new Error("process.binding is not supported")}function Por(){return"/"}function Oor(t){throw new Error("process.chdir is not supported")}function Lor(){return 0}var Z7=Wa.performance||{},Bor=Z7.now||Z7.mozNow||Z7.msNow||Z7.oNow||Z7.webkitNow||function(){return new Date().getTime()};function Dor(t){var e=Bor.call(Z7)*.001,n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n=n-t[0],r=r-t[1],r<0&&(n--,r+=1e9)),[n,r]}var $or=new Date;function For(){var t=new Date,e=t-$or;return e/1e3}var wa={nextTick:mor,title:gor,browser:Aor,env:yor,argv:bor,version:xor,versions:Eor,on:_or,addListener:Tor,once:Cor,off:kor,removeListener:Ror,removeAllListeners:Mor,emit:Nor,binding:Ior,cwd:Por,chdir:Oor,umask:Lor,hrtime:Dor,platform:vor,release:Sor,config:wor,uptime:For};function jor(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Hor(){return"npm"}function Uor(){return!jor()&&Object.prototype.toString.call(typeof wa<"u"?wa:0)==="[object process]"}function kpt(){return typeof window<"u"&&(!Uor()||zor())}function zor(){return yl.process!==void 0&&yl.process.type==="renderer"}function Gor(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(a){if(t)return e.has(a)?!0:(e.add(a),!1);for(let o=0;o<e.length;o++)if(e[o]===a)return!0;return e.push(a),!1}function r(a){if(t)e.delete(a);else for(let o=0;o<e.length;o++)if(e[o]===a){e.splice(o,1);break}}return[n,r]}function ST(t,e=100,n=1/0){try{return dje("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function OVt(t,e=3,n=100*1024){const r=ST(t,e);return Qor(r)>n?OVt(t,e-1,n):r}function dje(t,e,n=1/0,r=1/0,a=Gor()){const[o,s]=a;if(e==null||["number","boolean","string"].includes(typeof e)&&!Car(e))return e;const l=Vor(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return l.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return dje("",p,c-1,r,a)}catch{}const d=Array.isArray(e)?[]:{};let h=0;const f=bVt(e);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(h>=r){d[p]="[MaxProperties ~]";break}const m=f[p];d[p]=dje(p,m,c-1,r,a),h++}return s(e),d}function Vor(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof Wa<"u"&&e===Wa)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(gVt(e))return"[VueViewModel]";if(Tar(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${dM(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=Kor(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Kor(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Wor(t){return~-encodeURI(t).split(/%..|./).length}function Qor(t){return Wor(JSON.stringify(t))}var cR;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(cR||(cR={}));function LH(t){return new Zz(e=>{e(t)})}function WJe(t){return new Zz((e,n)=>{n(t)})}let Zz=class UL{constructor(e){UL.prototype.__init.call(this),UL.prototype.__init2.call(this),UL.prototype.__init3.call(this),UL.prototype.__init4.call(this),this._state=cR.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new UL((r,a)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){a(s)}},o=>{if(!n)a(o);else try{r(n(o))}catch(s){a(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new UL((n,r)=>{let a,o;return this.then(s=>{o=!1,a=s,e&&e()},s=>{o=!0,a=s,e&&e()}).then(()=>{if(o){r(a);return}n(a)})})}__init(){this._resolve=e=>{this._setResult(cR.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(cR.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===cR.PENDING){if(Gbe(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===cR.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===cR.RESOLVED&&n[1](this._value),this._state===cR.REJECTED&&n[2](this._value),n[0]=!0)})}}};function qor(t){const e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]}function a(s){if(!n())return WJe(new IT("Not adding Promise because buffer limit was reached."));const l=s();return e.indexOf(l)===-1&&e.push(l),l.then(()=>r(l)).then(null,()=>r(l).then(null,()=>{})),l}function o(s){return new Zz((l,c)=>{let u=e.length;if(!u)return l(!0);const d=setTimeout(()=>{s&&s>0&&l(!1)},s);e.forEach(h=>{LH(h).then(()=>{--u||(clearTimeout(d),l(!0))},c)})})}return{$:e,add:a,drain:o}}function N3e(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const Yor=["fatal","error","warning","log","info","debug"];function Jor(t){return t==="warn"?"warning":Yor.includes(t)?t:"log"}const LVt=1e3;function Rie(){return Date.now()/LVt}function Zor(){const{performance:t}=yl;if(!t||!t.now)return Rie;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/LVt}const BVt=Zor(),Xor=(()=>{const{performance:t}=yl;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=a<e,s=t.timing&&t.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):e,u=c<e;return o||u?a<=c?t.timeOrigin:s:r})();function P8(t,e=[]){return[t,e]}function esr(t,e){const[n,r]=t;return[n,[...r,e]]}function Rpt(t,e){const n=t[1];for(const r of n){const a=r[0].type;if(e(r,a))return!0}return!1}function hje(t,e){return(e||new TextEncoder).encode(t)}function tsr(t,e){const[n,r]=t;let a=JSON.stringify(n);function o(s){typeof a=="string"?a=typeof s=="string"?a+s:[hje(a,e),s]:a.push(typeof s=="string"?hje(s,e):s)}for(const s of r){const[l,c]=s;if(o(`
${JSON.stringify(l)}
`),typeof c=="string"||c instanceof Uint8Array)o(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(ST(c))}o(u)}}return typeof a=="string"?a:nsr(a)}function nsr(t){const e=t.reduce((a,o)=>a+o.length,0),n=new Uint8Array(e);let r=0;for(const a of t)n.set(a,r),r+=a.length;return n}function rsr(t,e){const n=typeof t.data=="string"?hje(t.data,e):t.data;return[ZS({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const isr={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Mpt(t){return isr[t]}function QJe(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function DVt(t,e,n,r){const a=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:kie(r)},...a&&{trace:ZS({...a})}}}function asr(t,e,n){const r=[{type:"client_report"},{timestamp:n||Rie(),discarded_events:t}];return P8(e?{dsn:e}:{},[r])}const osr=60*1e3;function ssr(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?osr:r-e}function lsr(t,e){return t[e]||t.all||0}function $Vt(t,e,n=Date.now()){return lsr(t,e)>n}function FVt(t,{statusCode:e,headers:n},r=Date.now()){const a={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const l of o.trim().split(",")){const[c,u,,,d]=l.split(":",5),h=parseInt(c,10),f=(isNaN(h)?60:h)*1e3;if(!u)a.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(a[p]=r+f):a[p]=r+f}else s?a.all=r+ssr(s,r):e===429&&(a.all=r+60*1e3);return a}function csr(t,e){return t??e()}function I3e(t){let e,n=t[0],r=1;for(;r<t.length;){const a=t[r],o=t[r+1];if(r+=2,(a==="optionalAccess"||a==="optionalCall")&&n==null)return;a==="access"||a==="optionalAccess"?(e=n,n=o(n)):(a==="call"||a==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}const Ou=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Kbe="production";function qJe(){return vVt("globalEventProcessors",()=>[])}function usr(t){qJe().push(t)}function xve(t,e,n,r=0){return new Zz((a,o)=>{const s=t[r];if(e===null||typeof s!="function")a(e);else{const l=s({...e},n);Ou&&s.id&&l===null&&fi.log(`Event processor "${s.id}" dropped event`),Gbe(l)?l.then(c=>xve(t,c,n,r+1).then(a)).then(null,o):xve(t,l,n,r+1).then(a).then(null,o)}})}function jVt(t){const e=BVt(),n={sid:$y(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>dsr(n)};return t&&a6(n,t),n}function a6(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||BVt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:$y()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function HVt(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),a6(t,n)}function dsr(t){return ZS({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const hsr=1;function fsr(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:a,parent_span_id:o,status:s,tags:l,origin:c}=o6(t);return ZS({data:r,op:a,parent_span_id:o,span_id:e,status:s,tags:l,trace_id:n,origin:c})}function o6(t){return psr(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function psr(t){return typeof t.getSpanJSON=="function"}function msr(t){const{traceFlags:e}=t.spanContext();return!!(e&hsr)}function UVt(t,e,n,r,a,o){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=t,c={...e,event_id:e.event_id||n.event_id||$y(),timestamp:e.timestamp||Rie()},u=n.integrations||t.integrations.map(v=>v.name);gsr(c,t),ysr(c,u),e.type===void 0&&vsr(c,t.stackParser);const d=xsr(r,n.captureContext);n.mechanism&&hte(c,n.mechanism);const h=a&&a.getEventProcessors?a.getEventProcessors():[],f=Lsr().getScopeData();if(o){const v=o.getScopeData();Opt(f,v)}if(d){const v=d.getScopeData();Opt(f,v)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),QVt(c,f);const m=[...h,...qJe(),...f.eventProcessors];return xve(m,c,n).then(v=>(v&&Asr(v),typeof s=="number"&&s>0?bsr(v,s,l):v))}function gsr(t,e){const{environment:n,release:r,dist:a,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:Kbe),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&a!==void 0&&(t.dist=a),t.message&&(t.message=Rj(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Rj(s.value,o));const l=t.request;l&&l.url&&(l.url=Rj(l.url,o))}const Npt=new WeakMap;function vsr(t,e){const n=yl._sentryDebugIds;if(!n)return;let r;const a=Npt.get(e);a?r=a:(r=new Map,Npt.set(e,r));const o=Object.keys(n).reduce((s,l)=>{let c;const u=r.get(l);u?c=u:(c=e(l),r.set(l,c));for(let d=c.length-1;d>=0;d--){const h=c[d];if(h.filename){s[h.filename]=n[l];break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=o[l.filename])})})}catch{}}function Asr(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(a=>{a.debug_id&&(a.abs_path?e[a.abs_path]=a.debug_id:a.filename&&(e[a.filename]=a.debug_id),delete a.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function ysr(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function bsr(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(a=>({...a,...a.data&&{data:ST(a.data,e,n)}}))},...t.user&&{user:ST(t.user,e,n)},...t.contexts&&{contexts:ST(t.contexts,e,n)},...t.extra&&{extra:ST(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ST(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(a=>{const o=o6(a).data;return o&&(a.data=ST(o,e,n)),a})),r}function xsr(t,e){if(!e)return t;const n=t?t.clone():new fte;return n.update(e),n}function Esr(t){if(t)return Ssr(t)?{captureContext:t}:_sr(t)?{captureContext:t}:t}function Ssr(t){return t instanceof fte||typeof t=="function"}const wsr=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function _sr(t){return Object.keys(t).some(e=>wsr.includes(e))}function Wbe(t,e){return dC().captureException(t,Esr(e))}function zVt(t,e){return dC().captureEvent(t,e)}function Y5(t,e){dC().addBreadcrumb(t,e)}function Tsr(t,e){dC().setContext(t,e)}function Csr(...t){const e=dC();if(t.length===2){const[n,r]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,r(n))):e.withScope(r)}return e.withScope(t[0])}function xd(){return dC().getClient()}function QP(){return dC().getScope()}function Ipt(t){const e=xd(),n=Mie(),r=QP(),{release:a,environment:o=Kbe}=e&&e.getOptions()||{},{userAgent:s}=yl.navigator||{},l=jVt({release:a,environment:o,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession();return c&&c.status==="ok"&&a6(c,{status:"exited"}),GVt(),n.setSession(l),r.setSession(l),l}function GVt(){const t=Mie(),e=QP(),n=e.getSession()||t.getSession();n&&HVt(n),VVt(),t.setSession(),e.setSession()}function VVt(){const t=Mie(),e=QP(),n=xd(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Ppt(t=!1){if(t){GVt();return}VVt()}function KVt(t){return t.transaction}function WVt(t,e,n){const r=e.getOptions(),{publicKey:a}=e.getDsn()||{},{segment:o}=n&&n.getUser()||{},s=ZS({environment:r.environment||Kbe,release:r.release,user_segment:o,public_key:a,trace_id:t});return e.emit&&e.emit("createDsc",s),s}function ksr(t){const e=xd();if(!e)return{};const n=WVt(o6(t).trace_id||"",e,QP()),r=KVt(t);if(!r)return n;const a=r&&r._frozenDynamicSamplingContext;if(a)return a;const{sampleRate:o,source:s}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const l=o6(r);return s&&s!=="url"&&(n.transaction=l.description),n.sampled=String(msr(r)),e.emit&&e.emit("createDsc",n),n}function QVt(t,e){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=e;Rsr(t,e),r&&Isr(t,r),Psr(t,n),Msr(t,a),Nsr(t,o)}function Opt(t,e){const{extra:n,tags:r,user:a,contexts:o,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:h,propagationContext:f,transactionName:p,span:m}=e;lQ(t,"extra",n),lQ(t,"tags",r),lQ(t,"user",a),lQ(t,"contexts",o),lQ(t,"sdkProcessingMetadata",l),s&&(t.level=s),p&&(t.transactionName=p),m&&(t.span=m),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),h.length&&(t.attachments=[...t.attachments,...h]),t.propagationContext={...t.propagationContext,...f}}function lQ(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function Rsr(t,e){const{extra:n,tags:r,user:a,contexts:o,level:s,transactionName:l}=e,c=ZS(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=ZS(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const d=ZS(a);d&&Object.keys(d).length&&(t.user={...d,...t.user});const h=ZS(o);h&&Object.keys(h).length&&(t.contexts={...h,...t.contexts}),s&&(t.level=s),l&&(t.transaction=l)}function Msr(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Nsr(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Isr(t,e){t.contexts={trace:fsr(e),...t.contexts};const n=KVt(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:ksr(e),...t.sdkProcessingMetadata};const r=o6(n).description;r&&(t.tags={transaction:r,...t.tags})}}function Psr(t,e){t.fingerprint=t.fingerprint?wVt(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}const Osr=100;let P3e,fte=class Upe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Lpt()}static clone(e){return e?e.clone():new Upe}clone(){const e=new Upe;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&a6(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e;if(n instanceof Upe){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(OH(n)){const r=e;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Lpt(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Osr;if(r<=0)return this;const a={timestamp:Rie(),...e},o=this._breadcrumbs;return o.push(a),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:n,_contexts:r,_tags:a,_extra:o,_user:s,_level:l,_fingerprint:c,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:h,_transactionName:f,_span:p}=this;return{breadcrumbs:e,attachments:n,contexts:r,tags:a,extra:o,user:s,level:l,fingerprint:c||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:h,transactionName:f,span:p}}applyToEvent(e,n={},r=[]){QVt(e,this.getScopeData());const a=[...r,...qJe(),...this._eventProcessors];return xve(a,e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:$y();if(!this._client)return fi.warn("No client configured on scope - will not capture exception!"),r;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureMessage(e,n,r){const a=r&&r.event_id?r.event_id:$y();if(!this._client)return fi.warn("No client configured on scope - will not capture message!"),a;const o=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:a},this),a}captureEvent(e,n){const r=n&&n.event_id?n.event_id:$y();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(fi.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function Lsr(){return P3e||(P3e=new fte),P3e}function Lpt(){return{traceId:$y(),spanId:$y().substring(16)}}const fje="7.117.0",qVt=parseFloat(fje),Bsr=100;let YVt=class{constructor(e,n,r,a=qVt){this._version=a;let o;n?o=n:(o=new fte,o.setClient(e));let s;r?s=r:(s=new fte,s.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,n.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();let r;try{r=e(n)}catch(a){throw this.popScope(),a}return Gbe(r)?r.then(a=>(this.popScope(),a),a=>{throw this.popScope(),a}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:$y(),a=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:a,...n,event_id:r}),r}captureMessage(e,n,r){const a=this._lastEventId=r&&r.event_id?r.event_id:$y(),o=new Error(e);return this.getScope().captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:a}),a}captureEvent(e,n){const r=n&&n.event_id?n.event_id:$y();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:a}=this.getStackTop();if(!a)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Bsr}=a.getOptions&&a.getOptions()||{};if(s<=0)return;const c={timestamp:Rie(),...e},u=o?i6(()=>o(c,n)):c;u!==null&&(a.emit&&a.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n),this.getIsolationScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n),this.getIsolationScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n),this.getIsolationScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=Bpt(this);try{e(this)}finally{Bpt(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return Ou&&fi.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);return Ou&&!r&&(this.getClient()?fi.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):fi.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&HVt(r),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:a,environment:o=Kbe}=r&&r.getOptions()||{},{userAgent:s}=yl.navigator||{},l=jVt({release:a,environment:o,user:n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&a6(c,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(e,...n){const a=Qbe().__SENTRY__;if(a&&a.extensions&&typeof a.extensions[e]=="function")return a.extensions[e].apply(this,n);Ou&&fi.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function Qbe(){return yl.__SENTRY__=yl.__SENTRY__||{extensions:{},hub:void 0},yl}function Bpt(t){const e=Qbe(),n=pje(e);return JVt(e,t),n}function dC(){const t=Qbe();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Dsr(t)}function Mie(){return dC().getIsolationScope()}function Dsr(t=Qbe()){return(!$sr(t)||pje(t).isOlderThan(qVt))&&JVt(t,new YVt),pje(t)}function $sr(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function pje(t){return vVt("hub",()=>new YVt,t)}function JVt(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}const Fsr="sentry.source";function jsr(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Hsr(t,e,n,r){const a=QJe(n),o={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!r&&e&&{dsn:kie(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return P8(o,[s])}function Usr(t,e,n,r){const a=QJe(n),o=t.type&&t.type!=="replay_event"?t.type:"event";jsr(t,n&&n.sdk);const s=DVt(t,a,r,e);return delete t.sdkProcessingMetadata,P8(s,[[{type:o},t]])}const zsr="7";function Gsr(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Vsr(t){return`${Gsr(t)}${t.projectId}/envelope/`}function Ksr(t,e){return Uar({sentry_key:t.publicKey,sentry_version:zsr,...e&&{sentry_client:`${e.name}/${e.version}`}})}function Wsr(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${Vsr(t)}?${Ksr(t,r)}`}const Dpt=[];function Qsr(t){const e={};return t.forEach(n=>{const{name:r}=n,a=e[r];a&&!a.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function qsr(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=wVt(n(e)):r=e;const a=Qsr(r),o=Jsr(a,s=>s.name==="Debug");if(o!==-1){const[s]=a.splice(o,1);a.push(s)}return a}function Ysr(t,e){const n={};return e.forEach(r=>{r&&ZVt(t,r,n)}),n}function $pt(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function ZVt(t,e,n){if(n[e.name]){Ou&&fi.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,Dpt.indexOf(e.name)===-1&&(e.setupOnce(usr,dC),Dpt.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),t.on&&typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(a,o)=>r(a,o,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){const r=e.processEvent.bind(e),a=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(a)}Ou&&fi.log(`Integration installed: ${e.name}`)}function Jsr(t,e){for(let n=0;n<t.length;n++)if(e(t[n])===!0)return n;return-1}function qP(t,e){return Object.assign(function(...r){return e(...r)},{id:t})}function Zsr(t){let e="";for(const n of t){const r=Object.entries(n.tags),a=r.length>0?`|#${r.map(([o,s])=>`${o}:${s}`).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${a}|T${n.timestamp}
`}return e}function Xsr(t,e,n,r){const a={sent_at:new Date().toISOString()};n&&n.sdk&&(a.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(a.dsn=kie(e));const o=elr(t);return P8(a,[o])}function elr(t){const e=Zsr(t);return[{type:"statsd",length:e.length},e]}const Fpt="Not capturing exception because it's already been captured.";class tlr{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Har(e.dsn):Ou&&fi.warn("No DSN provided, client will not send events."),this._dsn){const n=Wsr(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(wpt(e)){Ou&&fi.log(Fpt);return}let a=n&&n.event_id;return this._process(this.eventFromException(e,n).then(o=>this._captureEvent(o,n,r)).then(o=>{a=o})),a}captureMessage(e,n,r,a){let o=r&&r.event_id;const s=HJe(e)?e:String(e),l=UJe(e)?this.eventFromMessage(s,n,r):this.eventFromException(e,r);return this._process(l.then(c=>this._captureEvent(c,r,a)).then(c=>{o=c})),o}captureEvent(e,n,r){if(n&&n.originalException&&wpt(n.originalException)){Ou&&fi.log(Fpt);return}let a=n&&n.event_id;const s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,n,s||r).then(l=>{a=l})),a}captureSession(e){typeof e.release!="string"?Ou&&fi.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),a6(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(a=>r&&a))):LH(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return Ou&&fi.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const n=this._integrations[e.name];ZVt(this,e,this._integrations),n||$pt(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=Usr(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=esr(r,rsr(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const a=this._sendEnvelope(r);a&&a.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){const n=Hsr(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const a=`${e}:${n}`;Ou&&fi.log(`Adding outcome: "${a}"`),this._outcomes[a]=this._outcomes[a]+1||1}}captureAggregateMetrics(e){Ou&&fi.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const n=Xsr(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Ysr(this,e),$pt(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,n){let r=!1,a=!1;const o=n.exception&&n.exception.values;if(o){a=!0;for(const c of o){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=e.status==="ok";(s&&e.errors===0||s&&r)&&(a6(e,{...r&&{status:"crashed"},errors:e.errors||Number(a||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Zz(n=>{let r=0;const a=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=a,e&&r>=e&&(clearInterval(o),n(!1)))},a)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,a=Mie()){const o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",e,n),UVt(o,e,n,r,this,a).then(l=>{if(l===null)return l;const c={...a.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(l.contexts&&l.contexts.trace)&&c){const{traceId:d,spanId:h,parentSpanId:f,dsc:p}=c;l.contexts={trace:{trace_id:d,span_id:h,parent_span_id:f},...l.contexts};const m=p||WVt(d,this,r);l.sdkProcessingMetadata={dynamicSamplingContext:m,...l.sdkProcessingMetadata}}return l})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(a=>a.event_id,a=>{if(Ou){const o=a;o.logLevel==="log"?fi.log(o.message):fi.warn(o)}})}_processEvent(e,n,r){const a=this.getOptions(),{sampleRate:o}=a,s=eKt(e),l=XVt(e),c=e.type||"error",u=`before send for type \`${c}\``;if(l&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),WJe(new IT(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d=c==="replay_event"?"replay":c,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,f).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",d,e),new IT("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const g=rlr(a,p,n);return nlr(g,u)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",d,e),new IT(`${u} returned \`null\`, will not send event.`,"log");const m=r&&r.getSession();!s&&m&&this._updateSessionFromEvent(m,p);const g=p.transaction_info;if(s&&g&&p.transaction!==e.transaction){const v="custom";p.transaction_info={...g,source:v}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof IT?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new IT(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${p}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,n=>{Ou&&fi.error("Error while sending event:",n)});Ou&&fi.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,a]=n.split(":");return{reason:r,category:a,quantity:e[n]}})}}function nlr(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Gbe(t))return t.then(r=>{if(!OH(r)&&r!==null)throw new IT(n);return r},r=>{throw new IT(`${e} rejected with ${r}`)});if(!OH(t)&&t!==null)throw new IT(n);return t}function rlr(t,e,n){const{beforeSend:r,beforeSendTransaction:a}=t;return XVt(e)&&r?r(e,n):eKt(e)&&a?a(e,n):e}function XVt(t){return t.type===void 0}function eKt(t){return t.type==="transaction"}function ilr(t){const e=xd();!e||!e.addEventProcessor||e.addEventProcessor(t)}function alr(t,e){e.debug===!0&&(Ou?fi.enable():i6(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),QP().update(e.initialScope);const r=new t(e);olr(r),slr(r)}function olr(t){const n=dC().getStackTop();n.client=t,n.scope.setClient(t)}function slr(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}const llr=30;function tKt(t,e,n=qor(t.bufferSize||llr)){let r={};const a=s=>n.drain(s);function o(s){const l=[];if(Rpt(s,(h,f)=>{const p=Mpt(f);if($Vt(r,p)){const m=jpt(h,f);t.recordDroppedEvent("ratelimit_backoff",p,m)}else l.push(h)}),l.length===0)return LH();const c=P8(s[0],l),u=h=>{Rpt(c,(f,p)=>{const m=jpt(f,p);t.recordDroppedEvent(h,Mpt(p),m)})},d=()=>e({body:tsr(c,t.textEncoder)}).then(h=>(h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&Ou&&fi.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=FVt(r,h),h),h=>{throw u("network_error"),h});return n.add(d).then(h=>h,h=>{if(h instanceof IT)return Ou&&fi.error("Skipped sending event because buffer is full."),u("queue_overflow"),LH();throw h})}return o.__sentry__baseTransport__=!0,{send:o,flush:a}}function jpt(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function clr(t,e){const n=e&&hlr(e)?e.getClient():e,r=n&&n.getDsn(),a=n&&n.getOptions().tunnel;return dlr(t,r)||ulr(t,a)}function ulr(t,e){return e?Hpt(t)===Hpt(e):!1}function dlr(t,e){return e?t.includes(e.host):!1}function Hpt(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function hlr(t){return t.getClient!==void 0}function nKt(t,e,n=[e],r="npm"){const a=t._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:fje})),version:fje}),t._metadata=a}const flr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],plr=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],rKt="InboundFilters",mlr=(t={})=>({name:rKt,setupOnce(){},processEvent(e,n,r){const a=r.getOptions(),o=glr(t,a);return vlr(e,o)?null:e}}),iKt=mlr;qP(rKt,iKt);function glr(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:flr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:plr],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function vlr(t,e){return e.ignoreInternal&&Slr(t)?(Ou&&fi.warn(`Event dropped due to being internal Sentry Error.
Event: ${b3(t)}`),!0):Alr(t,e.ignoreErrors)?(Ou&&fi.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${b3(t)}`),!0):ylr(t,e.ignoreTransactions)?(Ou&&fi.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${b3(t)}`),!0):blr(t,e.denyUrls)?(Ou&&fi.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${b3(t)}.
Url: ${Eve(t)}`),!0):xlr(t,e.allowUrls)?!1:(Ou&&fi.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${b3(t)}.
Url: ${Eve(t)}`),!0)}function Alr(t,e){return t.type||!e||!e.length?!1:Elr(t).some(n=>Tie(n,e))}function ylr(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?Tie(n,e):!1}function blr(t,e){if(!e||!e.length)return!1;const n=Eve(t);return n?Tie(n,e):!1}function xlr(t,e){if(!e||!e.length)return!0;const n=Eve(t);return n?Tie(n,e):!0}function Elr(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),Ou&&e.length===0&&fi.error(`Could not extract message for event ${b3(t)}`),e}function Slr(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function wlr(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Eve(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?wlr(e):null}catch{return Ou&&fi.error(`Cannot extract url for event ${b3(t)}`),null}}let Upt;const aKt="FunctionToString",zpt=new WeakMap,_lr=()=>({name:aKt,setupOnce(){Upt=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=VJe(this),n=zpt.has(xd())&&e!==void 0?e:this;return Upt.apply(n,t)}}catch{}},setup(t){zpt.set(t,!0)}}),oKt=_lr;qP(aKt,oKt);const Tlr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qA=yl,Clr=(t,e,n)=>{let r,a;return o=>{e.value>=0&&(o||n)&&(a=e.value-(r||0),(a||r===void 0)&&(r=e.value,e.delta=a,t(e)))}},klr=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Rlr=()=>{const t=qA.performance.timing,e=qA.performance.navigation.type,n={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const r in t)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n},sKt=()=>qA.__WEB_VITALS_POLYFILL__?qA.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Rlr()):qA.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],lKt=()=>{const t=sKt();return t&&t.activationStart||0},Mlr=(t,e)=>{const n=sKt();let r="navigate";return n&&(qA.document&&qA.document.prerendering||lKt()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:klr(),navigationType:r}},cKt=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(a=>{e(a.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},uKt=(t,e)=>{const n=r=>{(r.type==="pagehide"||qA.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};qA.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))};let Sve=-1;const Nlr=()=>{qA.document&&qA.document.visibilityState&&(Sve=qA.document.visibilityState==="hidden"&&!qA.document.prerendering?0:1/0)},Ilr=()=>{uKt(({timeStamp:t})=>{Sve=t},!0)},Plr=()=>(Sve<0&&(Nlr(),Ilr()),{get firstHiddenTime(){return Sve}}),Gpt={},Olr=t=>{const e=Plr(),n=Mlr("LCP");let r;const a=s=>{const l=s[s.length-1];if(l){const c=Math.max(l.startTime-lKt(),0);c<e.firstHiddenTime&&(n.value=c,n.entries=[l],r())}},o=cKt("largest-contentful-paint",a);if(o){r=Clr(t,n);const s=()=>{Gpt[n.id]||(a(o.takeRecords()),o.disconnect(),Gpt[n.id]=!0,r(!0))};return["keydown","click"].forEach(l=>{qA.document&&addEventListener(l,s,{once:!0,capture:!0})}),uKt(s,!0),s}},vX={},wve={};let dKt;function Llr(t,e=!1){return $lr("lcp",t,Dlr,dKt,e)}function Blr(t,e){return fKt(t,e),wve[t]||(Flr(t),wve[t]=!0),pKt(t,e)}function hKt(t,e){const n=vX[t];if(!(!n||!n.length))for(const r of n)try{r(e)}catch(a){Tlr&&fi.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${dM(r)}
Error:`,a)}}function Dlr(){return Olr(t=>{hKt("lcp",{metric:t}),dKt=t})}function $lr(t,e,n,r,a=!1){fKt(t,e);let o;return wve[t]||(o=n(),wve[t]=!0),r&&e({metric:r}),pKt(t,e,a?o:void 0)}function Flr(t){const e={};t==="event"&&(e.durationThreshold=0),cKt(t,n=>{hKt(t,{entries:n})},e)}function fKt(t,e){vX[t]=vX[t]||[],vX[t].push(e)}function pKt(t,e,n){return()=>{n&&n();const r=vX[t];if(!r)return;const a=r.indexOf(e);a!==-1&&r.splice(a,1)}}const cu=yl;let mje=0;function mKt(){return mje>0}function jlr(){mje++,setTimeout(()=>{mje--})}function BH(t,e={},n){if(typeof t!="function")return t;try{const a=t.__sentry_wrapped__;if(a)return a;if(VJe(t))return t}catch{return t}const r=function(){const a=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=a.map(s=>BH(s,e));return t.apply(this,o)}catch(o){throw jlr(),Csr(s=>{s.addEventProcessor(l=>(e.mechanism&&(aje(l,void 0,void 0),hte(l,e.mechanism)),l.extra={...l.extra,arguments:a},l)),Wbe(o)}),o}};try{for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}catch{}yVt(r,t),dte(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}const DR=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function gKt(t,e){const n=YJe(t,e),r={type:e&&e.name,value:Glr(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Hlr(t,e,n,r){const a=xd(),o=a&&a.getOptions().normalizeDepth,s={exception:{values:[{type:zbe(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Wlr(e,{isUnhandledRejection:r})}]},extra:{__serialized__:OVt(e,o)}};if(n){const l=YJe(t,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function O3e(t,e){return{exception:{values:[gKt(t,e)]}}}function YJe(t,e){const n=e.stacktrace||e.stack||"",r=zlr(e);try{return t(n,r)}catch{}return[]}const Ulr=/Minified React error #\d+;/i;function zlr(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Ulr.test(t.message))return 1}return 0}function Glr(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Vlr(t,e,n,r){const a=n&&n.syntheticException||void 0,o=JJe(t,e,a,r);return hte(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),LH(o)}function Klr(t,e,n="info",r,a){const o=r&&r.syntheticException||void 0,s=gje(t,e,o,a);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),LH(s)}function JJe(t,e,n,r,a){let o;if(jJe(e)&&e.error)return O3e(t,e.error);if(mpt(e)||Sar(e)){const s=e;if("stack"in e)o=O3e(t,e);else{const l=s.name||(mpt(s)?"DOMError":"DOMException"),c=s.message?`${l}: ${s.message}`:l;o=gje(t,c,n,r),aje(o,c)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return mVt(e)?O3e(t,e):OH(e)||zbe(e)?(o=Hlr(t,e,n,a),hte(o,{synthetic:!0}),o):(o=gje(t,e,n,r),aje(o,`${e}`,void 0),hte(o,{synthetic:!0}),o)}function gje(t,e,n,r){const a={};if(r&&n){const o=YJe(t,n);o.length&&(a.exception={values:[{value:e,stacktrace:{frames:o}}]})}if(HJe(e)){const{__sentry_template_string__:o,__sentry_template_values__:s}=e;return a.logentry={message:o,params:s},a}return a.message=e,a}function Wlr(t,{isUnhandledRejection:e}){const n=zar(t),r=e?"promise rejection":"exception";return jJe(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:zbe(t)?`Event \`${Qlr(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Qlr(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function qlr(t,{metadata:e,tunnel:n,dsn:r}){const a={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:kie(r)}},o=Ylr(t);return P8(a,[o])}function Ylr(t){return[{type:"user_report"},t]}class Jlr extends tlr{constructor(e){const n=cu.SENTRY_SDK_SOURCE||Hor();nKt(e,"browser",["browser"],n),super(e),e.sendClientReports&&cu.document&&cu.document.addEventListener("visibilitychange",()=>{cu.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Vlr(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Klr(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){DR&&fi.warn("SDK not enabled, will not capture user feedback.");return}const n=qlr(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){DR&&fi.log("No outcomes to send");return}if(!this._dsn){DR&&fi.log("No dsn provided, will not send outcomes");return}DR&&fi.log("Sending outcomes:",e);const n=asr(e,this._options.tunnel&&kie(this._dsn));this._sendEnvelope(n)}}let tZ;function Zlr(){if(tZ)return tZ;if(cje(cu.fetch))return tZ=cu.fetch.bind(cu);const t=cu.document;let e=cu.fetch;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){DR&&fi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return tZ=e.bind(cu)}function Xlr(){tZ=void 0}function ecr(t,e=Zlr()){let n=0,r=0;function a(o){const s=o.body.length;n+=s,r++;const l={body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,l).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Xlr(),n-=s,r--,WJe(c)}}return tKt(t,a)}const tcr=4;function ncr(t){function e(n){return new Zz((r,a)=>{const o=new XMLHttpRequest;o.onerror=a,o.onreadystatechange=()=>{o.readyState===tcr&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",t.url);for(const s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&o.setRequestHeader(s,t.headers[s]);o.send(n.body)})}return tKt(t,e)}const qbe="?",rcr=30,icr=40,acr=50;function ZJe(t,e,n,r){const a={filename:t,function:e,in_app:!0};return n!==void 0&&(a.lineno=n),r!==void 0&&(a.colno=r),a}const ocr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,scr=/\((\S*)(?::(\d+))(?::(\d+))\)/,lcr=t=>{const e=ocr.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const o=scr.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}const[r,a]=vKt(e[1]||qbe,e[2]);return ZJe(a,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},ccr=[rcr,lcr],ucr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,dcr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,hcr=t=>{const e=ucr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=dcr.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],a=e[1]||qbe;return[a,r]=vKt(a,r),ZJe(r,a,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},fcr=[acr,hcr],pcr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,mcr=t=>{const e=pcr.exec(t);return e?ZJe(e[2],e[1]||qbe,+e[3],e[4]?+e[4]:void 0):void 0},gcr=[icr,mcr],vcr=[ccr,fcr,gcr],Acr=EVt(...vcr),vKt=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:qbe,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Dle=1024,AKt="Breadcrumbs",ycr=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:AKt,setupOnce(){},setup(n){e.console&&War(Ecr(n)),e.dom&&_Vt(xcr(n,e.dom)),e.xhr&&kVt(Scr(n)),e.fetch&&CVt(wcr(n)),e.history&&KJe(_cr(n)),e.sentry&&n.on&&n.on("beforeSendEvent",bcr(n))}}},yKt=ycr;qP(AKt,yKt);function bcr(t){return function(n){xd()===t&&Y5({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:b3(n)},{event:n})}}function xcr(t,e){return function(r){if(xd()!==t)return;let a,o,s=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>Dle&&(DR&&fi.warn(`\`dom.maxStringLength\` cannot exceed ${Dle}, but a value of ${l} was configured. Sentry will use ${Dle} instead.`),l=Dle),typeof s=="string"&&(s=[s]);try{const u=r.event,d=Tcr(u)?u.target:u;a=Vbe(d,{keyAttrs:s,maxStringLength:l}),o=Oar(d)}catch{a="<unknown>"}if(a.length===0)return;const c={category:`ui.${r.name}`,message:a};o&&(c.data={"ui.component_name":o}),Y5(c,{event:r.event,name:r.name,global:r.global})}}function Ecr(t){return function(n){if(xd()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Jor(n.level),message:gpt(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${gpt(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Y5(r,{input:n.args,level:n.level})}}function Scr(t){return function(n){if(xd()!==t)return;const{startTimestamp:r,endTimestamp:a}=n,o=n.xhr[OB];if(!r||!a||!o)return;const{method:s,url:l,status_code:c,body:u}=o,d={method:s,url:l,status_code:c},h={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:a};Y5({category:"xhr",data:d,type:"http"},h)}}function wcr(t){return function(n){if(xd()!==t)return;const{startTimestamp:r,endTimestamp:a}=n;if(a&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:a};Y5({category:"fetch",data:o,level:"error",type:"http"},s)}else{const o=n.response,s={...n.fetchData,status_code:o&&o.status},l={input:n.args,response:o,startTimestamp:r,endTimestamp:a};Y5({category:"fetch",data:s,type:"http"},l)}}}function _cr(t){return function(n){if(xd()!==t)return;let r=n.from,a=n.to;const o=N3e(cu.location.href);let s=r?N3e(r):void 0;const l=N3e(a);(!s||!s.path)&&(s=o),o.protocol===l.protocol&&o.host===l.host&&(a=l.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),Y5({category:"navigation",data:{from:r,to:a}})}}function Tcr(t){return!!t&&!!t.target}const bKt="Dedupe",Ccr=()=>{let t;return{name:bKt,setupOnce(){},processEvent(e){if(e.type)return e;try{if(kcr(e,t))return DR&&fi.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},xKt=Ccr;qP(bKt,xKt);function kcr(t,e){return e?!!(Rcr(t,e)||Mcr(t,e)):!1}function Rcr(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!SKt(t,e)||!EKt(t,e))}function Mcr(t,e){const n=Vpt(e),r=Vpt(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!SKt(t,e)||!EKt(t,e))}function EKt(t,e){let n=Kpt(t),r=Kpt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let a=0;a<r.length;a++){const o=r[a],s=n[a];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function SKt(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Vpt(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Kpt(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}const wKt="GlobalHandlers",Ncr=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:wKt,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Icr(n),Wpt("onerror")),e.onunhandledrejection&&(Pcr(n),Wpt("onunhandledrejection"))}}},_Kt=Ncr;qP(wKt,_Kt);function Icr(t){ror(e=>{const{stackParser:n,attachStacktrace:r}=CKt();if(xd()!==t||mKt())return;const{msg:a,url:o,line:s,column:l,error:c}=e,u=c===void 0&&JR(a)?Bcr(a,o,s,l):TKt(JJe(n,c||a,void 0,r,!1),o,s,l);u.level="error",zVt(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Pcr(t){aor(e=>{const{stackParser:n,attachStacktrace:r}=CKt();if(xd()!==t||mKt())return;const a=Ocr(e),o=UJe(a)?Lcr(a):JJe(n,a,void 0,r,!0);o.level="error",zVt(o,{originalException:a,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Ocr(t){if(UJe(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return t}function Lcr(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Bcr(t,e,n,r){const a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=jJe(t)?t.message:t,s="Error";const l=o.match(a);return l&&(s=l[1],o=l[2]),TKt({exception:{values:[{type:s,value:o}]}},e,n,r)}function TKt(t,e,n,r){const a=t.exception=t.exception||{},o=a.values=a.values||[],s=o[0]=o[0]||{},l=s.stacktrace=s.stacktrace||{},c=l.frames=l.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=JR(e)&&e.length>0?e:Par();return c.length===0&&c.push({colno:u,filename:h,function:"?",in_app:!0,lineno:d}),t}function Wpt(t){DR&&fi.log(`Global Handler attached: ${t}`)}function CKt(){const t=xd();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const kKt="HttpContext",Dcr=()=>({name:kKt,setupOnce(){},preprocessEvent(t){if(!cu.navigator&&!cu.location&&!cu.document)return;const e=t.request&&t.request.url||cu.location&&cu.location.href,{referrer:n}=cu.document||{},{userAgent:r}=cu.navigator||{},a={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:a};t.request=o}}),RKt=Dcr;qP(kKt,RKt);const $cr="cause",Fcr=5,MKt="LinkedErrors",jcr=(t={})=>{const e=t.limit||Fcr,n=t.key||$cr;return{name:MKt,setupOnce(){},preprocessEvent(r,a,o){const s=o.getOptions();Rar(gKt,s.stackParser,s.maxValueLength,n,e,r,a)}}},NKt=jcr;qP(MKt,NKt);const Hcr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],IKt="TryCatch",Ucr=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:IKt,setupOnce(){e.setTimeout&&rm(cu,"setTimeout",Qpt),e.setInterval&&rm(cu,"setInterval",Qpt),e.requestAnimationFrame&&rm(cu,"requestAnimationFrame",zcr),e.XMLHttpRequest&&"XMLHttpRequest"in cu&&rm(XMLHttpRequest.prototype,"send",Gcr);const n=e.eventTarget;n&&(Array.isArray(n)?n:Hcr).forEach(Vcr)}}},PKt=Ucr;qP(IKt,PKt);function Qpt(t){return function(...e){const n=e[0];return e[0]=BH(n,{mechanism:{data:{function:dM(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function zcr(t){return function(e){return t.apply(this,[BH(e,{mechanism:{data:{function:"requestAnimationFrame",handler:dM(t)},handled:!1,type:"instrument"}})])}}function Gcr(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(a=>{a in n&&typeof n[a]=="function"&&rm(n,a,function(o){const s={mechanism:{data:{function:a,handler:dM(o)},handled:!1,type:"instrument"}},l=VJe(o);return l&&(s.mechanism.data.handler=dM(l)),BH(o,s)})}),t.apply(this,e)}}function Vcr(t){const e=cu,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(rm(n,"addEventListener",function(r){return function(a,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=BH(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:dM(o),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[a,BH(o,{mechanism:{data:{function:"addEventListener",handler:dM(o),target:t},handled:!1,type:"instrument"}}),s])}}),rm(n,"removeEventListener",function(r){return function(a,o,s){const l=o;try{const c=l&&l.__sentry_wrapped__;c&&r.call(this,a,c,s)}catch{}return r.call(this,a,l,s)}}))}const Kcr=[iKt(),oKt(),PKt(),yKt(),_Kt(),NKt(),xKt(),RKt()];function Wcr(t){return[...Kcr]}function Qcr(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=Wcr()),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),cu.SENTRY_RELEASE&&cu.SENTRY_RELEASE.id&&(t.release=cu.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e={...t,stackParser:Var(t.stackParser||Acr),integrations:qsr(t),transport:t.transport||(TVt()?ecr:ncr)};alr(Jlr,e),t.autoSessionTracking&&qcr()}function qcr(){if(typeof cu.document>"u"){DR&&fi.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Ipt({ignoreDuration:!0}),Ppt(),KJe(({from:t,to:e})=>{t!==void 0&&t!==e&&(Ipt({ignoreDuration:!0}),Ppt())})}const Nu=yl,XJe="sentryReplaySession",Ycr="replay_event",eZe="Unable to send Replay",Jcr=3e5,Zcr=9e5,Xcr=5e3,eur=5500,tur=6e4,nur=5e3,rur=3,qpt=15e4,$le=5e3,iur=3e3,aur=300,tZe=2e7,our=4999,sur=15e3,Ypt=36e5;function lur(t,e){return t??e()}function _ve(t){let e,n=t[0],r=1;for(;r<t.length;){const a=t[r],o=t[r+1];if(r+=2,(a==="optionalAccess"||a==="optionalCall")&&n==null)return;a==="access"||a==="optionalAccess"?(e=n,n=o(n)):(a==="call"||a==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}var op;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(op||(op={}));function cur(t){return t.nodeType===t.ELEMENT_NODE}function AX(t){const e=_ve([t,"optionalAccess",n=>n.host]);return _ve([e,"optionalAccess",n=>n.shadowRoot])===t}function yX(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function uur(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t}function dur(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function Tve(t){try{const e=t.rules||t.cssRules;return e?uur(Array.from(e,OKt).join("")):null}catch{return null}}function OKt(t){let e;if(fur(t))try{e=Tve(t.styleSheet)||dur(t)}catch{}else if(pur(t)&&t.selectorText.includes(":"))return hur(t.cssText);return e||t.cssText}function hur(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function fur(t){return"styleSheet"in t}function pur(t){return"selectorText"in t}class LKt{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const n=_ve([this,"access",r=>r.getMeta,"call",r=>r(e),"optionalAccess",r=>r.id]);return lur(n,()=>-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,n){const r=n.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,n)}replace(e,n){const r=this.getNode(e);if(r){const a=this.nodeMetaMap.get(r);a&&this.nodeMetaMap.set(n,a)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function mur(){return new LKt}function Ybe({maskInputOptions:t,tagName:e,type:n}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||n==="password"||e==="INPUT"&&!n&&t.text)}function pte({isMasked:t,element:e,value:n,maskInputFn:r}){let a=n||"";return t?(r&&(a=r(a,e)),"*".repeat(a.length)):a}function DH(t){return t.toLowerCase()}function vje(t){return t.toUpperCase()}const Jpt="__rrweb_original__";function gur(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let a=0;a<t.height;a+=n){const o=e.getImageData,s=Jpt in o?o[Jpt]:o;if(new Uint32Array(s.call(e,r,a,Math.min(n,t.width-r),Math.min(n,t.height-a)).data.buffer).some(c=>c!==0))return!1}return!0}function nZe(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?DH(e):null}function Cve(t,e,n){return e==="INPUT"&&(n==="radio"||n==="checkbox")?t.getAttribute("value")||"":t.value}let vur=1;const Aur=new RegExp("[^a-z0-9-_:]"),mte=-2;function rZe(){return vur++}function yur(t){if(t instanceof HTMLFormElement)return"form";const e=DH(t.tagName);return Aur.test(e)?"div":e}function bur(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let e$,Zpt;const xur=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Eur=/^(?:[a-z+]+:)?\/\//i,Sur=/^www\..*/i,wur=/^(data:)([^,]*),(.*)/i;function kve(t,e){return(t||"").replace(xur,(n,r,a,o,s,l)=>{const c=a||s||l,u=r||o||"";if(!c)return n;if(Eur.test(c)||Sur.test(c))return`url(${u}${c}${u})`;if(wur.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${bur(e)+c}${u})`;const d=e.split("/"),h=c.split("/");d.pop();for(const f of h)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${u}${d.join("/")}${u})`})}const _ur=/^[^ \t\n\r\u000c]+/,Tur=/^[, \t\n\r\u000c]+/;function Cur(t,e){if(e.trim()==="")return e;let n=0;function r(o){let s;const l=o.exec(e.substring(n));return l?(s=l[0],n+=s.length,s):""}const a=[];for(;r(Tur),!(n>=e.length);){let o=r(_ur);if(o.slice(-1)===",")o=PF(t,o.substring(0,o.length-1)),a.push(o);else{let s="";o=PF(t,o);let l=!1;for(;;){const c=e.charAt(n);if(c===""){a.push((o+s).trim());break}else if(l)c===")"&&(l=!1);else if(c===","){n+=1,a.push((o+s).trim());break}else c==="("&&(l=!0);s+=c,n+=1}}}return a.join(", ")}function PF(t,e){if(!e||e.trim()==="")return e;const n=t.createElement("a");return n.href=e,n.href}function kur(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function iZe(){const t=document.createElement("a");return t.href="",t.href}function BKt(t,e,n,r,a,o){return r&&(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(e==="table"||e==="td"||e==="th")?PF(t,r):n==="srcset"?Cur(t,r):n==="style"?kve(r,iZe()):e==="object"&&n==="data"?PF(t,r):typeof o=="function"?o(n,r,a):r)}function DKt(t,e,n){return(t==="video"||t==="audio")&&e==="autoplay"}function Rur(t,e,n,r){try{if(r&&t.matches(r))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let a=t.classList.length;a--;){const o=t.classList[a];if(e.test(o))return!0}if(n)return t.matches(n)}catch{}return!1}function Mur(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function BB(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:BB(t.parentNode,e,n,r+1)}function OF(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(`.${t}`))return!0}else if(Mur(r,t))return!0}return!!(e&&r.matches(e))}catch{return!1}}}function $H(t,e,n,r,a,o){try{const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let l=-1,c=-1;if(o){if(c=BB(s,OF(r,a)),c<0)return!0;l=BB(s,OF(e,n),c>=0?c:1/0)}else{if(l=BB(s,OF(e,n)),l<0)return!1;c=BB(s,OF(r,a),l>=0?l:1/0)}return l>=0?c>=0?l<=c:!0:c>=0?!1:!!o}catch{}return!!o}function Nur(t,e,n){const r=t.contentWindow;if(!r)return;let a=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const l=setTimeout(()=>{a||(e(),a=!0)},n);t.addEventListener("load",()=>{clearTimeout(l),a=!0,e()});return}const s="about:blank";if(r.location.href!==s||t.src===s||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Iur(t,e,n){let r=!1,a;try{a=t.sheet}catch{return}if(a)return;const o=setTimeout(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function Pur(t,e){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:g,maskInputFn:v,dataURLOptions:A={},inlineImages:y,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:w=!1}=e,_=Our(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:op.Document,childNodes:[],compatMode:t.compatMode}:{type:op.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:op.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:_};case t.ELEMENT_NODE:return Bur(t,{doc:n,blockClass:a,blockSelector:o,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:v,dataURLOptions:A,inlineImages:y,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:w,rootId:_,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:f});case t.TEXT_NODE:return Lur(t,{maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:f,maskTextFn:g,maskInputOptions:m,maskInputFn:v,rootId:_});case t.CDATA_SECTION_NODE:return{type:op.CDATA,textContent:"",rootId:_};case t.COMMENT_NODE:return{type:op.Comment,textContent:t.textContent||"",rootId:_};default:return!1}}function Our(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function Lur(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:c,maskInputFn:u,rootId:d}=e,h=t.parentNode&&t.parentNode.tagName;let f=t.textContent;const p=h==="STYLE"?!0:void 0,m=h==="SCRIPT"?!0:void 0,g=h==="TEXTAREA"?!0:void 0;if(p&&f){try{t.nextSibling||t.previousSibling||_ve([t,"access",A=>A.parentNode,"access",A=>A.sheet,"optionalAccess",A=>A.cssRules])&&(f=Tve(t.parentNode.sheet))}catch(A){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${A}`,t)}f=kve(f,iZe())}m&&(f="SCRIPT_PLACEHOLDER");const v=$H(t,r,o,a,s,n);if(!p&&!m&&!g&&f&&v&&(f=l?l(f,t.parentElement):f.replace(/[\S]/g,"*")),g&&f&&(c.textarea||v)&&(f=u?u(f,t.parentNode):f.replace(/[\S]/g,"*")),h==="OPTION"&&f){const A=Ybe({type:null,tagName:h,maskInputOptions:c});f=pte({isMasked:$H(t,r,o,a,s,A),element:t,value:f,maskInputFn:u})}return{type:op.Text,textContent:f||"",isStyle:p,rootId:d}}function Bur(t,e){const{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:g,maskAllText:v,maskTextClass:A,unmaskTextClass:y,maskTextSelector:S,unmaskTextSelector:x}=e,w=Rur(t,r,a,o),_=yur(t);let C={};const R=t.attributes.length;for(let P=0;P<R;P++){const N=t.attributes[P];N.name&&!DKt(_,N.name,N.value)&&(C[N.name]=BKt(n,_,DH(N.name),N.value,t,c))}if(_==="link"&&s){const P=Array.from(n.styleSheets).find(L=>L.href===t.href);let N=null;P&&(N=Tve(P)),N&&(delete C.rel,delete C.href,C._cssText=kve(N,P.href))}if(_==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const P=Tve(t.sheet);P&&(C._cssText=kve(P,iZe()))}if(_==="input"||_==="textarea"||_==="select"||_==="option"){const P=t,N=nZe(P),L=Cve(P,vje(_),N),I=P.checked;if(N!=="submit"&&N!=="button"&&L){const b=$H(P,A,S,y,x,Ybe({type:N,tagName:vje(_),maskInputOptions:l}));C.value=pte({isMasked:b,element:P,value:L,maskInputFn:u})}I&&(C.checked=I)}if(_==="option"&&(t.selected&&!l.select?C.selected=!0:delete C.selected),_==="canvas"&&f){if(t.__context==="2d")gur(t)||(C.rr_dataURL=t.toDataURL(d.type,d.quality));else if(!("__context"in t)){const P=t.toDataURL(d.type,d.quality),N=document.createElement("canvas");N.width=t.width,N.height=t.height;const L=N.toDataURL(d.type,d.quality);P!==L&&(C.rr_dataURL=P)}}if(_==="img"&&h){e$||(e$=n.createElement("canvas"),Zpt=e$.getContext("2d"));const P=t,N=P.crossOrigin;P.crossOrigin="anonymous";const L=()=>{P.removeEventListener("load",L);try{e$.width=P.naturalWidth,e$.height=P.naturalHeight,Zpt.drawImage(P,0,0),C.rr_dataURL=e$.toDataURL(d.type,d.quality)}catch(I){console.warn(`Cannot inline img src=${P.currentSrc}! Error: ${I}`)}N?C.crossOrigin=N:P.removeAttribute("crossorigin")};P.complete&&P.naturalWidth!==0?L():P.addEventListener("load",L)}if((_==="audio"||_==="video")&&(C.rr_mediaState=t.paused?"paused":"played",C.rr_mediaCurrentTime=t.currentTime),m||(t.scrollLeft&&(C.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(C.rr_scrollTop=t.scrollTop)),w){const{width:P,height:N}=t.getBoundingClientRect();C={class:C.class,rr_width:`${P}px`,rr_height:`${N}px`}}_==="iframe"&&!p(C.src)&&(t.contentDocument||(C.rr_src=C.src),delete C.src);let k;try{customElements.get(_)&&(k=!0)}catch{}return{type:op.Element,tagName:_,attributes:C,childNodes:[],isSVG:kur(t)||void 0,needBlock:w,rootId:g,isCustom:k}}function _u(t){return t==null?"":t.toLowerCase()}function Dur(t,e){if(e.comment&&t.type===op.Comment)return!0;if(t.type===op.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(_u(t.attributes.name).match(/^msapplication-tile(image|color)$/)||_u(t.attributes.name)==="application-name"||_u(t.attributes.rel)==="icon"||_u(t.attributes.rel)==="apple-touch-icon"||_u(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&_u(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(_u(t.attributes.property).match(/^(og|twitter|fb):/)||_u(t.attributes.name).match(/^(og|twitter):/)||_u(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(_u(t.attributes.name)==="robots"||_u(t.attributes.name)==="googlebot"||_u(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(_u(t.attributes.name)==="author"||_u(t.attributes.name)==="generator"||_u(t.attributes.name)==="framework"||_u(t.attributes.name)==="publisher"||_u(t.attributes.name)==="progid"||_u(t.attributes.property).match(/^article:/)||_u(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(_u(t.attributes.name)==="google-site-verification"||_u(t.attributes.name)==="yandex-verification"||_u(t.attributes.name)==="csrf-token"||_u(t.attributes.name)==="p:domain_verify"||_u(t.attributes.name)==="verify-v1"||_u(t.attributes.name)==="verification"||_u(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function LF(t,e){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:v,maskInputFn:A,slimDOMOptions:y,dataURLOptions:S={},inlineImages:x=!1,recordCanvas:w=!1,onSerialize:_,onIframeLoad:C,iframeLoadTimeout:R=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:P=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:L=!1}=e;let{preserveWhiteSpace:I=!0}=e;const b=Pur(t,{doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:A,dataURLOptions:S,inlineImages:x,recordCanvas:w,keepIframeSrcFn:N,newlyAddedElement:L});if(!b)return console.warn(t,"not serialized"),null;let T;r.hasNode(t)?T=r.getId(t):Dur(b,y)||!I&&b.type===op.Text&&!b.isStyle&&!b.textContent.replace(/^\s+|\s+$/gm,"").length?T=mte:T=rZe();const M=Object.assign(b,{id:T});if(r.add(t,M),T===mte)return null;_&&_(t);let D=!f;if(M.type===op.Element){D=D&&!M.needBlock,delete M.needBlock;const B=t.shadowRoot;B&&yX(B)&&(M.isShadowHost=!0)}if((M.type===op.Document||M.type===op.Element)&&D){y.headWhitespace&&M.type===op.Element&&M.tagName==="head"&&(I=!1);const B={doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:A,slimDOMOptions:y,dataURLOptions:S,inlineImages:x,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:N};for(const j of Array.from(t.childNodes)){const H=LF(j,B);H&&M.childNodes.push(H)}if(cur(t)&&t.shadowRoot)for(const j of Array.from(t.shadowRoot.childNodes)){const H=LF(j,B);H&&(yX(t.shadowRoot)&&(H.isShadow=!0),M.childNodes.push(H))}}return t.parentNode&&AX(t.parentNode)&&yX(t.parentNode)&&(M.isShadow=!0),M.type===op.Element&&M.tagName==="iframe"&&Nur(t,()=>{const B=t.contentDocument;if(B&&C){const j=LF(B,{doc:B,mirror:r,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:A,slimDOMOptions:y,dataURLOptions:S,inlineImages:x,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:N});j&&C(t,j)}},R),M.type===op.Element&&M.tagName==="link"&&M.attributes.rel==="stylesheet"&&Iur(t,()=>{if(k){const B=LF(t,{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:A,slimDOMOptions:y,dataURLOptions:S,inlineImages:x,recordCanvas:w,preserveWhiteSpace:I,onSerialize:_,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:N});B&&k(t,B)}},P),M}function $ur(t,e){const{mirror:n=new LKt,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:h=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:g,maskTextFn:v,maskInputFn:A,slimDOM:y=!1,dataURLOptions:S,preserveWhiteSpace:x,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:C,onStylesheetLoad:R,stylesheetLoadTimeout:k,keepIframeSrcFn:P=()=>!1}=e||{};return LF(t,{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:A,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:S,inlineImages:f,recordCanvas:p,preserveWhiteSpace:x,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:C,onStylesheetLoad:R,stylesheetLoadTimeout:k,keepIframeSrcFn:P,newlyAddedElement:!1})}function e3(t){let e,n=t[0],r=1;for(;r<t.length;){const a=t[r],o=t[r+1];if(r+=2,(a==="optionalAccess"||a==="optionalCall")&&n==null)return;a==="access"||a==="optionalAccess"?(e=n,n=o(n)):(a==="call"||a==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}function T0(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const X7=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let Xpt={map:{},getId(){return console.error(X7),-1},getNode(){return console.error(X7),null},removeNodeFromMap(){console.error(X7)},has(){return console.error(X7),!1},reset(){console.error(X7)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Xpt=new Proxy(Xpt,{get(t,e,n){return e==="map"&&console.error(X7),Reflect.get(t,e,n)}}));function gte(t,e,n={}){let r=null,a=0;return function(...o){const s=Date.now();!a&&n.leading===!1&&(a=s);const l=e-(s-a),c=this;l<=0||l>e?(r&&(Vur(r),r=null),a=s,t.apply(c,o)):!r&&n.trailing!==!1&&(r=Jbe(()=>{a=n.leading===!1?0:Date.now(),r=null,t.apply(c,o)},l))}}function $Kt(t,e,n,r,a=window){const o=a.Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,r?n:{set(s){Jbe(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>$Kt(t,e,o||{},!0)}function aZe(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=a,()=>{t[e]=r}}catch{return()=>{}}}let Rve=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Rve=()=>new Date().getTime());function FKt(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:e3([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||e3([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||e3([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:e3([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||e3([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||e3([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function jKt(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function HKt(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function UKt(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function QS(t,e,n,r,a){if(!t)return!1;const o=UKt(t);if(!o)return!1;const s=OF(e,n);if(!a){const u=r&&o.matches(r);return s(o)&&!u}const l=BB(o,s);let c=-1;return l<0?!1:(r&&(c=BB(o,OF(null,r))),l>-1&&c<0?!0:l<c)}function Fur(t,e){return e.getId(t)!==-1}function L3e(t,e){return e.getId(t)===mte}function zKt(t,e){if(AX(t))return!1;const n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?zKt(t.parentNode,e):!0:!0}function Aje(t){return!!t.changedTouches}function jur(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let n=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function GKt(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function VKt(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function yje(t){return!!e3([t,"optionalAccess",e=>e.shadowRoot])}class Hur{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return csr(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function KKt(t){let e=null;return e3([t,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Uur(t){let e=t,n;for(;n=KKt(e);)e=n;return e}function zur(t){const e=t.ownerDocument;if(!e)return!1;const n=Uur(t);return e.contains(n)}function WKt(t){const e=t.ownerDocument;return e?e.contains(t)||zur(t):!1}const emt={};function oZe(t){const e=emt[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a);const o=a.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(a)}catch{}return emt[t]=r.bind(window)}function Gur(...t){return oZe("requestAnimationFrame")(...t)}function Jbe(...t){return oZe("setTimeout")(...t)}function Vur(...t){return oZe("clearTimeout")(...t)}var xs=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(xs||{}),Es=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Es||{}),u0=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(u0||{}),iR=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(iR||{});function Kur(t){let e,n=t[0],r=1;for(;r<t.length;){const a=t[r],o=t[r+1];if(r+=2,(a==="optionalAccess"||a==="optionalCall")&&n==null)return;a==="access"||a==="optionalAccess"?(e=n,n=o(n)):(a==="call"||a==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}function tmt(t){return"__ln"in t}class Wur{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=Kur([n,"optionalAccess",a=>a.next])||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&tmt(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&tmt(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const nmt=(t,e)=>`${t}@${e}`;class Qur{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new Wur,a=c=>{let u=c,d=mte;for(;d===mte;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},o=c=>{if(!c.parentNode||!WKt(c))return;const u=AX(c.parentNode)?this.mirror.getId(KKt(c)):this.mirror.getId(c.parentNode),d=a(c);if(u===-1||d===-1)return r.addNode(c);const h=LF(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{GKt(f,this.mirror)&&this.iframeManager.addIframe(f),VKt(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),yje(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{this.iframeManager.attachIframe(f,p),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});h&&(e.push({parentId:u,nextId:d,node:h}),n.add(h.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)rmt(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!imt(this.droppedSet,c)&&!rmt(this.removes,c,this.mirror)||imt(this.movedSet,c)?o(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){const u=this.mirror.getId(s.value.parentNode),d=a(s.value);u!==-1&&d!==-1&&(c=s)}if(!c){let u=r.tail;for(;u;){const d=u;if(u=u.previous,d){const h=this.mirror.getId(d.value.parentNode);if(a(d.value)===-1)continue;if(h!==-1){c=d;break}else{const p=d.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=p.parentNode.host;if(this.mirror.getId(m)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),o(c.value)}const l={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),h=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+h).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=e=>{if(!L3e(e.target,this.mirror))switch(e.type){case"characterData":{const n=e.target.textContent;!QS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:$H(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,UKt(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,a=e.target.getAttribute(r);if(r==="value"){const s=nZe(n),l=n.tagName;a=Cve(n,l,s);const c=Ybe({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),u=$H(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);a=pte({isMasked:u,element:n,value:a,maskInputFn:this.maskInputFn})}if(QS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||a===e.oldValue)return;let o=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!DKt(n.tagName,r)&&(o.attributes[r]=BKt(this.doc,DH(n.tagName),DH(r),a,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue);for(const l of Array.from(n.style)){const c=n.style.getPropertyValue(l),u=n.style.getPropertyPriority(l);c!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?u===""?o.styleDiff[l]=c:o.styleDiff[l]=[c,u]:o._unchangedStyles[l]=[c,u]}for(const l of Array.from(s.style))n.style.getPropertyValue(l)===""&&(o.styleDiff[l]=!1)}break}case"childList":{if(QS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=AX(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);QS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||L3e(n,this.mirror)||!Fur(n,this.mirror)||(this.addedSet.has(n)?(bje(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||zKt(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[nmt(r,a)]?bje(this.movedSet,n):this.removes.push({parentId:a,id:r,isShadow:AX(e.target)&&yX(e.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(L3e(e,this.mirror))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[nmt(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);QS(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(r=>this.genAdds(r)),yje(e)&&e.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function bje(t,e){t.delete(e),e.childNodes.forEach(n=>bje(t,n))}function rmt(t,e,n){return t.length===0?!1:QKt(t,e,n)}function QKt(t,e,n){const{parentNode:r}=e;if(!r)return!1;const a=n.getId(r);return t.some(o=>o.id===a)?!0:QKt(t,r,n)}function imt(t,e){return t.size===0?!1:qKt(t,e)}function qKt(t,e){const{parentNode:n}=e;return n?t.has(n)?!0:qKt(t,n):!1}let bX;function qur(t){bX=t}function Yur(){bX=void 0}const vl=t=>bX?(...n)=>{try{return t(...n)}catch(r){if(bX&&bX(r)===!0)return()=>{};throw r}}:t;function wT(t){let e,n=t[0],r=1;for(;r<t.length;){const a=t[r],o=t[r+1];if(r+=2,(a==="optionalAccess"||a==="optionalCall")&&n==null)return;a==="access"||a==="optionalAccess"?(e=n,n=o(n)):(a==="call"||a==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}const BF=[];function Nie(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function YKt(t,e){const n=new Qur;BF.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const a=wT([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);a&&window[a]&&(r=window[a]);const o=new r(vl(s=>{t.onMutation&&t.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Jur({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const a=typeof e.mousemove=="number"?e.mousemove:50,o=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let s=[],l;const c=gte(vl(h=>{const f=Date.now()-l;t(s.map(p=>(p.timeOffset-=f,p)),h),s=[],l=null}),o),u=vl(gte(vl(h=>{const f=Nie(h),{clientX:p,clientY:m}=Aje(h)?h.changedTouches[0]:h;l||(l=Rve()),s.push({x:p,y:m,id:r.getId(f),timeOffset:Rve()-l}),c(typeof DragEvent<"u"&&h instanceof DragEvent?Es.Drag:h instanceof MouseEvent?Es.MouseMove:Es.TouchMove)}),a,{trailing:!1})),d=[T0("mousemove",u,n),T0("touchmove",u,n),T0("drag",u,n)];return vl(()=>{d.forEach(h=>h())})}function Zur({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let u=null;const d=h=>f=>{const p=Nie(f);if(QS(p,r,a,o,!0))return;let m=null,g=h;if("pointerType"in f){switch(f.pointerType){case"mouse":m=iR.Mouse;break;case"touch":m=iR.Touch;break;case"pen":m=iR.Pen;break}m===iR.Touch?u0[h]===u0.MouseDown?g="TouchStart":u0[h]===u0.MouseUp&&(g="TouchEnd"):iR.Pen}else Aje(f)&&(m=iR.Touch);m!==null?(u=m,(g.startsWith("Touch")&&m===iR.Touch||g.startsWith("Mouse")&&m===iR.Mouse)&&(m=null)):u0[h]===u0.Click&&(m=u,u=null);const v=Aje(f)?f.changedTouches[0]:f;if(!v)return;const A=n.getId(p),{clientX:y,clientY:S}=v;vl(t)({type:u0[g],id:A,x:y,y:S,...m!==null&&{pointerType:m}})};return Object.keys(u0).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&l[h]!==!1).forEach(h=>{let f=DH(h);const p=d(h);if(window.PointerEvent)switch(u0[h]){case u0.MouseDown:case u0.MouseUp:f=f.replace("mouse","pointer");break;case u0.TouchStart:case u0.TouchEnd:return}c.push(T0(f,p,e))}),vl(()=>{c.forEach(h=>h())})}function JKt({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:s}){const l=vl(gte(vl(c=>{const u=Nie(c);if(!u||QS(u,r,a,o,!0))return;const d=n.getId(u);if(u===e&&e.defaultView){const h=FKt(e.defaultView);t({id:d,x:h.left,y:h.top})}else t({id:d,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return T0("scroll",l,e)}function Xur({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const a=vl(gte(vl(()=>{const o=jKt(),s=HKt();(n!==o||r!==s)&&(t({width:Number(s),height:Number(o)}),n=o,r=s)}),200));return T0("resize",a,e)}const edr=["INPUT","TEXTAREA","SELECT"],amt=new WeakMap;function tdr({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:h,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:g}){function v(C){let R=Nie(C);const k=C.isTrusted,P=R&&vje(R.tagName);if(P==="OPTION"&&(R=R.parentElement),!R||!P||edr.indexOf(P)<0||QS(R,r,a,o,!0))return;const N=R;if(N.classList.contains(s)||l&&N.matches(l))return;const L=nZe(R);let I=Cve(N,P,L),b=!1;const T=Ybe({maskInputOptions:c,tagName:P,type:L}),M=$H(R,f,m,p,g,T);(L==="radio"||L==="checkbox")&&(b=R.checked),I=pte({isMasked:M,element:R,value:I,maskInputFn:u}),A(R,h?{text:I,isChecked:b,userTriggered:k}:{text:I,isChecked:b});const D=R.name;L==="radio"&&D&&b&&e.querySelectorAll(`input[type="radio"][name="${D}"]`).forEach(B=>{if(B!==R){const j=pte({isMasked:M,element:B,value:Cve(B,P,L),maskInputFn:u});A(B,h?{text:j,isChecked:!b,userTriggered:!1}:{text:j,isChecked:!b})}})}function A(C,R){const k=amt.get(C);if(!k||k.text!==R.text||k.isChecked!==R.isChecked){amt.set(C,R);const P=n.getId(C);vl(t)({...R,id:P})}}const S=(d.input==="last"?["change"]:["input","change"]).map(C=>T0(C,vl(v),e)),x=e.defaultView;if(!x)return()=>{S.forEach(C=>C())};const w=x.Object.getOwnPropertyDescriptor(x.HTMLInputElement.prototype,"value"),_=[[x.HTMLInputElement.prototype,"value"],[x.HTMLInputElement.prototype,"checked"],[x.HTMLSelectElement.prototype,"value"],[x.HTMLTextAreaElement.prototype,"value"],[x.HTMLSelectElement.prototype,"selectedIndex"],[x.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&S.push(..._.map(C=>$Kt(C[0],C[1],{set(){vl(v)({target:this,isTrusted:!1})}},!1,x))),vl(()=>{S.forEach(C=>C())})}function Mve(t){const e=[];function n(r,a){if(Fle("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Fle("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Fle("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Fle("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);a.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);a.unshift(s)}return a}return n(t,e)}function t3(t,e,n){let r,a;return t?(t.ownerNode?r=e.getId(t.ownerNode):a=n.getId(t),{styleId:a,id:r}):{}}function ndr({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:vl((d,h,f)=>{const[p,m]=f,{id:g,styleId:v}=t3(h,e,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&t({id:g,styleId:v,adds:[{rule:p,index:m}]}),d.apply(h,f)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:vl((d,h,f)=>{const[p]=f,{id:m,styleId:g}=t3(h,e,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,removes:[{index:p}]}),d.apply(h,f)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:vl((d,h,f)=>{const[p]=f,{id:m,styleId:g}=t3(h,e,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,replace:p}),d.apply(h,f)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:vl((d,h,f)=>{const[p]=f,{id:m,styleId:g}=t3(h,e,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,replaceSync:p}),d.apply(h,f)})}));const c={};jle("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(jle("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),jle("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),jle("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,h])=>{u[d]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(u[d].insertRule,{apply:vl((f,p,m)=>{const[g,v]=m,{id:A,styleId:y}=t3(p.parentStyleSheet,e,n.styleMirror);return(A&&A!==-1||y&&y!==-1)&&t({id:A,styleId:y,adds:[{rule:g,index:[...Mve(p),v||0]}]}),f.apply(p,m)})}),h.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:vl((f,p,m)=>{const[g]=m,{id:v,styleId:A}=t3(p.parentStyleSheet,e,n.styleMirror);return(v&&v!==-1||A&&A!==-1)&&t({id:v,styleId:A,removes:[{index:[...Mve(p),g]}]}),f.apply(p,m)})})}),vl(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(([d,h])=>{h.prototype.insertRule=u[d].insertRule,h.prototype.deleteRule=u[d].deleteRule})})}function ZKt({mirror:t,stylesheetManager:e},n){let r=null;n.nodeName==="#document"?r=t.getId(n):r=t.getId(n.host);const a=n.nodeName==="#document"?wT([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):wT([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),o=wT([a,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(wT([a,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!a||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return wT([o,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const l=wT([o,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,s)]);if(r!==null&&r!==-1)try{e.adoptStyleSheets(s,r)}catch{}return l}}),vl(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function rdr({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:vl((l,c,u)=>{const[d,h,f]=u;if(n.has(d))return o.apply(c,[d,h,f]);const{id:p,styleId:m}=t3(wT([c,"access",g=>g.parentRule,"optionalAccess",g=>g.parentStyleSheet]),e,r.styleMirror);return(p&&p!==-1||m&&m!==-1)&&t({id:p,styleId:m,set:{property:d,value:h,priority:f},index:Mve(c.parentRule)}),l.apply(c,u)})});const s=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:vl((l,c,u)=>{const[d]=u;if(n.has(d))return s.apply(c,[d]);const{id:h,styleId:f}=t3(wT([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),e,r.styleMirror);return(h&&h!==-1||f&&f!==-1)&&t({id:h,styleId:f,remove:{property:d},index:Mve(c.parentRule)}),l.apply(c,u)})}),vl(()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=s})}function idr({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:a,sampling:o,doc:s}){const l=vl(u=>gte(vl(d=>{const h=Nie(d);if(!h||QS(h,e,n,r,!0))return;const{currentTime:f,volume:p,muted:m,playbackRate:g}=h;t({type:u,id:a.getId(h),currentTime:f,volume:p,muted:m,playbackRate:g})}),o.media||500)),c=[T0("play",l(0),s),T0("pause",l(1),s),T0("seeked",l(2),s),T0("volumechange",l(3),s),T0("ratechange",l(4),s)];return vl(()=>{c.forEach(u=>u())})}function adr({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,o=n.FontFace;n.FontFace=function(c,u,d){const h=new o(c,u,d);return a.set(h,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};const s=aZe(e.fonts,"add",function(l){return function(c){return Jbe(vl(()=>{const u=a.get(c);u&&(t(u),a.delete(c))}),0),l.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(s),vl(()=>{r.forEach(l=>l())})}function odr(t){const{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,selectionCb:s}=t;let l=!0;const c=vl(()=>{const u=e.getSelection();if(!u||l&&wT([u,"optionalAccess",f=>f.isCollapsed]))return;l=u.isCollapsed||!1;const d=[],h=u.rangeCount||0;for(let f=0;f<h;f++){const p=u.getRangeAt(f),{startContainer:m,startOffset:g,endContainer:v,endOffset:A}=p;QS(m,r,a,o,!0)||QS(v,r,a,o,!0)||d.push({start:n.getId(m),startOffset:g,end:n.getId(v),endOffset:A})}s({ranges:d})});return c(),T0("selectionchange",c)}function sdr({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:aZe(n.customElements,"define",function(a){return function(o,s,l){try{e({define:{name:o}})}catch{}return a.apply(this,[o,s,l])}})}function ldr(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};const r=YKt(t,t.doc),a=Jur(t),o=Zur(t),s=JKt(t),l=Xur(t,{win:n}),c=tdr(t),u=idr(t),d=ndr(t,{win:n}),h=ZKt(t,t.doc),f=rdr(t,{win:n}),p=t.collectFonts?adr(t):()=>{},m=odr(t),g=sdr(t),v=[];for(const A of t.plugins)v.push(A.observer(A.callback,n,A.options));return vl(()=>{BF.forEach(A=>A.reset()),r.disconnect(),a(),o(),s(),l(),c(),u(),d(),h(),f(),p(),m(),g(),v.forEach(A=>A())})}function Fle(t){return typeof window[t]<"u"}function jle(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class xje{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,n,r,a){const o=r||this.getIdToRemoteIdMap(e),s=a||this.getRemoteIdToIdMap(e);let l=o.get(n);return l||(l=this.generateIdFn(),o.set(n,l),s.set(l,n)),l}getIds(e,n){const r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return n.map(o=>this.getId(e,o,r,a))}getRemoteId(e,n,r){const a=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const o=a.get(n);return o||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(a=>this.getRemoteId(e,a,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}function omt(t){let e,n=t[0],r=1;for(;r<t.length;){const a=t[r],o=t[r+1];if(r+=2,(a==="optionalAccess"||a==="optionalCall")&&n==null)return;a==="access"||a==="optionalAccess"?(e=n,n=o(n)):(a==="call"||a==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}class cdr{constructor(){this.crossOriginIframeMirror=new xje(rZe),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class udr{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new xje(rZe),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new xje(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),omt([this,"access",r=>r.loadListener,"optionalCall",r=>r(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const a=this.crossOriginIframeMap.get(e.source);if(!a)return;const o=this.transformCrossOriginEvent(a,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(e,n){switch(n.type){case xs.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:xs.IncrementalSnapshot,data:{source:Es.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case xs.Meta:case xs.Load:case xs.DomContentLoaded:return!1;case xs.Plugin:return n;case xs.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case xs.IncrementalSnapshot:switch(n.data.source){case Es.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,e);const a=this.crossOriginIframeRootIdMap.get(e);a&&this.patchRootIdOnNode(r.node,a)}),n.data.removes.forEach(r=>{this.replaceIds(r,e,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,e,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case Es.Drag:case Es.TouchMove:case Es.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case Es.ViewportResize:return!1;case Es.MediaInteraction:case Es.MouseInteraction:case Es.Scroll:case Es.CanvasMutation:case Es.Input:return this.replaceIds(n.data,e,["id"]),n;case Es.StyleSheetRule:case Es.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case Es.Font:return n;case Es.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,e,["start","end"])}),n;case Es.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),omt([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(a=>{this.replaceStyleIds(a,e,["styleId"])})]),n}}return!1}replace(e,n,r,a){for(const o of a)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=e.getIds(r,n[o]):n[o]=e.getId(r,n[o]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==op.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class ddr{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class hdr{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!yX(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=YKt({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(JKt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Jbe(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ZKt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(aZe(e.prototype,"attachShadow",function(a){return function(o){const s=a.call(this,o);return this.shadowRoot&&WKt(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class smt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class fdr{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Hur,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},a=[];for(const o of e){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),a.push({styleId:s,rules:Array.from(o.rules||CSSRule,(l,c)=>({rule:OKt(l),index:c}))})),r.styleIds.push(s)}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class pdr{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){Gur(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(a=>a!==n)}add(e,n){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Xd,Nve;const SS=mur();function p5(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:v,slimDOMOptions:A,maskAttributeFn:y,maskInputFn:S,maskTextFn:x,maxCanvasSize:w=null,packFn:_,sampling:C={},dataURLOptions:R={},mousemoveWait:k,recordCanvas:P=!1,recordCrossOriginIframes:N=!1,recordAfter:L=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:b=!1,inlineImages:T=!1,plugins:M,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:B=new Set([]),errorHandler:j,onMutation:H,getCanvasManager:U}=t;qur(j);const $=N?window.parent===window:!0;let z=!1;if(!$)try{window.parent.document&&(z=!1)}catch{z=!0}if($&&!e)throw new Error("emit function is required");k!==void 0&&C.mousemove===void 0&&(C.mousemove=k),SS.reset();const Z=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:v!==void 0?v:{},K=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:A==="all",headMetaDescKeywords:A==="all"}:A||{};jur();let Q,ee=0;const X=ze=>{for(const je of M||[])je.eventProcessor&&(ze=je.eventProcessor(ze));return _&&!z&&(ze=_(ze)),ze};Xd=(ze,je)=>{const ye=ze;if(ye.timestamp=Rve(),I3e([BF,"access",me=>me[0],"optionalAccess",me=>me.isFrozen,"call",me=>me()])&&ye.type!==xs.FullSnapshot&&!(ye.type===xs.IncrementalSnapshot&&ye.data.source===Es.Mutation)&&BF.forEach(me=>me.unfreeze()),$)I3e([e,"optionalCall",me=>me(X(ye),je)]);else if(z){const me={type:"rrweb",event:X(ye),origin:window.location.origin,isCheckout:je};window.parent.postMessage(me,"*")}if(ye.type===xs.FullSnapshot)Q=ye,ee=0;else if(ye.type===xs.IncrementalSnapshot){if(ye.data.source===Es.Mutation&&ye.data.isAttachIframe)return;ee++;const me=r&&ee>=r,le=n&&Q&&ye.timestamp-Q.timestamp>n;(me||le)&&Be(!0)}};const te=ze=>{Xd({type:xs.IncrementalSnapshot,data:{source:Es.Mutation,...ze}})},J=ze=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.Scroll,...ze}}),ne=ze=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.CanvasMutation,...ze}}),ie=ze=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.AdoptedStyleSheet,...ze}}),he=new fdr({mutationCb:te,adoptedStyleSheetCb:ie}),de=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new cdr:new udr({mirror:SS,mutationCb:te,stylesheetManager:he,recordCrossOriginIframes:N,wrappedEmit:Xd});for(const ze of M||[])ze.getMirror&&ze.getMirror({nodeMirror:SS,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror});const ce=new pdr,Ee=gdr(U,{mirror:SS,win:window,mutationCb:ze=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.CanvasMutation,...ze}}),recordCanvas:P,blockClass:a,blockSelector:o,unblockSelector:s,maxCanvasSize:w,sampling:C.canvas,dataURLOptions:R,errorHandler:j}),Me=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ddr:new hdr({mutationCb:te,scrollCb:J,bypassOptions:{onMutation:H,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:Z,dataURLOptions:R,maskAttributeFn:y,maskTextFn:x,maskInputFn:S,recordCanvas:P,inlineImages:T,sampling:C,slimDOMOptions:K,iframeManager:de,stylesheetManager:he,canvasManager:Ee,keepIframeSrcFn:D,processedNodeManager:ce},mirror:SS}),Be=(ze=!1)=>{Xd({type:xs.Meta,data:{href:window.location.href,width:HKt(),height:jKt()}},ze),he.reset(),Me.init(),BF.forEach(ye=>ye.lock());const je=$ur(document,{mirror:SS,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:Z,maskAttributeFn:y,maskInputFn:S,maskTextFn:x,slimDOM:K,dataURLOptions:R,recordCanvas:P,inlineImages:T,onSerialize:ye=>{GKt(ye,SS)&&de.addIframe(ye),VKt(ye,SS)&&he.trackLinkElement(ye),yje(ye)&&Me.addShadowRoot(ye.shadowRoot,document)},onIframeLoad:(ye,me)=>{de.attachIframe(ye,me),Me.observeAttachShadow(ye)},onStylesheetLoad:(ye,me)=>{he.attachLinkElement(ye,me)},keepIframeSrcFn:D});if(!je)return console.warn("Failed to snapshot the document");Xd({type:xs.FullSnapshot,data:{node:je,initialOffset:FKt(window)}}),BF.forEach(ye=>ye.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&he.adoptStyleSheets(document.adoptedStyleSheets,SS.getId(document))};Nve=Be;try{const ze=[],je=me=>vl(ldr)({onMutation:H,mutationCb:te,mousemoveCb:(le,pe)=>Xd({type:xs.IncrementalSnapshot,data:{source:pe,positions:le}}),mouseInteractionCb:le=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.MouseInteraction,...le}}),scrollCb:J,viewportResizeCb:le=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.ViewportResize,...le}}),inputCb:le=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.Input,...le}}),mediaInteractionCb:le=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.MediaInteraction,...le}}),styleSheetRuleCb:le=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.StyleSheetRule,...le}}),styleDeclarationCb:le=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.StyleDeclaration,...le}}),canvasMutationCb:ne,fontCb:le=>Xd({type:xs.IncrementalSnapshot,data:{source:Es.Font,...le}}),selectionCb:le=>{Xd({type:xs.IncrementalSnapshot,data:{source:Es.Selection,...le}})},customElementCb:le=>{Xd({type:xs.IncrementalSnapshot,data:{source:Es.CustomElement,...le}})},blockClass:a,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:Z,inlineStylesheet:m,sampling:C,recordCanvas:P,inlineImages:T,userTriggeredOnInput:I,collectFonts:b,doc:me,maskAttributeFn:y,maskInputFn:S,maskTextFn:x,keepIframeSrcFn:D,blockSelector:o,unblockSelector:s,slimDOMOptions:K,dataURLOptions:R,mirror:SS,iframeManager:de,stylesheetManager:he,shadowDomManager:Me,processedNodeManager:ce,canvasManager:Ee,ignoreCSSAttributes:B,plugins:I3e([M,"optionalAccess",le=>le.filter,"call",le=>le(pe=>pe.observer),"optionalAccess",le=>le.map,"call",le=>le(pe=>({observer:pe.observer,options:pe.options,callback:Ne=>Xd({type:xs.Plugin,data:{plugin:pe.name,payload:Ne}})}))])||[]},{});de.addLoadListener(me=>{try{ze.push(je(me.contentDocument))}catch(le){console.warn(le)}});const ye=()=>{Be(),ze.push(je(document))};return document.readyState==="interactive"||document.readyState==="complete"?ye():(ze.push(T0("DOMContentLoaded",()=>{Xd({type:xs.DomContentLoaded,data:{}}),L==="DOMContentLoaded"&&ye()})),ze.push(T0("load",()=>{Xd({type:xs.Load,data:{}}),L==="load"&&ye()},window))),()=>{ze.forEach(me=>me()),ce.destroy(),Nve=void 0,Yur()}}catch(ze){console.warn(ze)}}function mdr(t){if(!Nve)throw new Error("please take full snapshot after start recording");Nve(t)}p5.mirror=SS;p5.takeFullSnapshot=mdr;function gdr(t,e){try{return t?t(e):new smt}catch{return console.warn("Unable to initialize CanvasManager"),new smt}}const vdr=3,Adr=5;function sZe(t){return t>9999999999?t:t*1e3}function B3e(t){return t>9999999999?t/1e3:t}function Iie(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:xs.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:ST(e,10,1e3)}}),e.category==="console")))}const ydr="button,a";function XKt(t){return t.closest(ydr)||t}function eWt(t){const e=tWt(t);return!e||!(e instanceof Element)?e:XKt(e)}function tWt(t){return bdr(t)?t.target:t}function bdr(t){return typeof t=="object"&&!!t&&"target"in t}let n3;function xdr(t){return n3||(n3=[],Edr()),n3.push(t),()=>{const e=n3?n3.indexOf(t):-1;e>-1&&n3.splice(e,1)}}function Edr(){rm(Nu,"open",function(t){return function(...e){if(n3)try{n3.forEach(n=>n())}catch{}return t.apply(Nu,e)}})}function Sdr(t,e,n){t.handleClick(e,n)}class wdr{constructor(e,n,r=Iie){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=xdr(()=>{this._lastMutation=lmt()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,n){if(Tdr(n,this._ignoreSelector)||!Cdr(e))return;const r={timestamp:B3e(e.timestamp),clickBreadcrumb:e,clickCount:0,node:n};this._clicks.some(a=>a.node===r.node&&Math.abs(a.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=B3e(e)}registerScroll(e=Date.now()){this._lastScroll=B3e(e)}registerClick(e){const n=XKt(e);this._handleMultiClick(n)}_handleMultiClick(e){this._getClicks(e).forEach(n=>{n.clickCount++})}_getClicks(e){return this._clicks.filter(n=>n.node===e)}_checkClicks(){const e=[],n=lmt();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&e.push(r)});for(const r of e){const a=this._clicks.indexOf(r);a>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(a,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const n=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,a=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!a,{clickCount:s,clickBreadcrumb:l}=e;if(o){const c=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:Nu.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,d);return}if(s>1){const c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:Nu.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const _dr=["A","BUTTON","INPUT"];function Tdr(t,e){return!!(!_dr.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function Cdr(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function lmt(){return Date.now()/1e3}function kdr(t,e){try{if(!Rdr(e))return;const{source:n}=e.data;if(n===Es.Mutation&&t.registerMutation(e.timestamp),n===Es.Scroll&&t.registerScroll(e.timestamp),Mdr(e)){const{type:r,id:a}=e.data,o=p5.mirror.getNode(a);o instanceof HTMLElement&&r===u0.Click&&t.registerClick(o)}}catch{}}function Rdr(t){return t.type===vdr}function Mdr(t){return t.data.source===Es.MouseInteraction}function XT(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Ive;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Ive||(Ive={}));const Ndr=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Idr(t){const e={};for(const n in t)if(Ndr.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),e[r]=t[n]}return e}const Pdr=t=>e=>{if(!t.isEnabled())return;const n=Odr(e);if(!n)return;const r=e.name==="click",a=r?e.event:void 0;r&&t.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&Sdr(t.clickDetector,n,eWt(e.event)),Iie(t,n)};function nWt(t,e){const n=p5.mirror.getId(t),r=n&&p5.mirror.getNode(n),a=r&&p5.mirror.getMeta(r),o=a&&Bdr(a)?a:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(s=>s.type===Ive.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:Idr(o.attributes)}}:{}}}function Odr(t){const{target:e,message:n}=Ldr(t);return XT({category:`ui.${t.name}`,...nWt(e,n)})}function Ldr(t){const e=t.name==="click";let n,r=null;try{r=e?eWt(t.event):tWt(t.event),n=Vbe(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Bdr(t){return t.type===Ive.Element}function Ddr(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=$dr(e);n&&Iie(t,n)}function $dr(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:a,key:o,target:s}=t;if(!s||Fdr(s)||!o)return null;const l=e||r||a,c=o.length===1;if(!l&&c)return null;const u=Vbe(s,{maxStringLength:200})||"<unknown>",d=nWt(s,u);return XT({category:"ui.keyDown",message:u,data:{...d.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:a,key:o}})}function Fdr(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const cmt={resource:Gdr,paint:Udr,navigation:zdr};function jdr(t){return t.map(Hdr).filter(Boolean)}function Hdr(t){return cmt[t.entryType]?cmt[t.entryType](t):null}function FH(t){return((Xor||Nu.performance.timeOrigin)+t)/1e3}function Udr(t){const{duration:e,entryType:n,name:r,startTime:a}=t,o=FH(a);return{type:n,name:r,start:o,end:o+e,data:void 0}}function zdr(t){const{entryType:e,name:n,decodedBodySize:r,duration:a,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:h,redirectCount:f,startTime:p,transferSize:m,type:g}=t;return a===0?null:{type:`${e}.${g}`,start:FH(p),end:FH(o),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:s,duration:a,domInteractive:u,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:h,domComplete:o,redirectCount:f}}}function Gdr(t){const{entryType:e,initiatorType:n,name:r,responseEnd:a,startTime:o,decodedBodySize:s,encodedBodySize:l,responseStatus:c,transferSize:u}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:FH(o),end:FH(a),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:l}}}function Vdr(t){const e=t.entries,n=e[e.length-1],r=n?n.element:void 0,a=t.value,o=FH(a);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:a,size:a,nodeId:r?p5.mirror.getId(r):void 0}}}function Kdr(t){function e(a){t.performanceEntries.includes(a)||t.performanceEntries.push(a)}function n({entries:a}){a.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(a=>{r.push(Blr(a,n))}),r.push(Llr(({metric:a})=>{t.replayPerformanceEntries.push(Vdr(a))})),()=>{r.forEach(a=>a())}}const du=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Wdr='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Qdr(){const t=new Blob([Wdr]);return URL.createObjectURL(t)}function S0(t,e){du&&(fi.info(t),e&&rWt(t))}function Nj(t,e){du&&(fi.info(t),e&&setTimeout(()=>{rWt(t)},0))}function rWt(t){Y5({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}class lZe extends Error{constructor(){super(`Event buffer exceeded maximum size of ${tZe}.`)}}class iWt{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const n=JSON.stringify(e).length;if(this._totalSize+=n,this._totalSize>tZe)throw new lZe;this.events.push(e)}finish(){return new Promise(e=>{const n=this.events;this.clear(),e(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(n=>n.timestamp).sort()[0];return e?sZe(e):null}}class qdr{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){S0("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,n){const r=this._getAndIncrementId();return new Promise((a,o)=>{const s=({data:l})=>{const c=l;if(c.method===e&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){du&&fi.error("[Replay]",c.response),o(new Error("Error in compression worker"));return}a(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:e,arg:n})})}_getAndIncrementId(){return this._id++}}class Ydr{constructor(e){this._worker=new qdr(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const n=sZe(e.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>tZe?Promise.reject(new lZe):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{du&&fi.warn('[Replay] Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Jdr{constructor(e){this._fallback=new iWt,this._compression=new Ydr(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{S0("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:n}=this._fallback,r=[];for(const a of e)r.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(a){du&&fi.warn("[Replay] Failed to add events when switching buffers.",a)}}}function Zdr({useCompression:t,workerUrl:e}){if(t&&window.Worker){const n=Xdr(e);if(n)return n}return S0("[Replay] Using simple buffer"),new iWt}function Xdr(t){try{const e=t||ehr();if(!e)return;S0(`[Replay] Using compression worker${t?` from ${t}`:""}`);const n=new Worker(e);return new Jdr(n)}catch{S0("[Replay] Failed to create compression worker")}}function ehr(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Qdr():""}function cZe(){try{return"sessionStorage"in Nu&&!!Nu.sessionStorage}catch{return!1}}function thr(t){nhr(),t.session=void 0}function nhr(){if(cZe())try{Nu.sessionStorage.removeItem(XJe)}catch{}}function aWt(t){return t===void 0?!1:Math.random()<t}function oWt(t){const e=Date.now(),n=t.id||$y(),r=t.started||e,a=t.lastActivity||e,o=t.segmentId||0,s=t.sampled,l=t.previousSessionId;return{id:n,started:r,lastActivity:a,segmentId:o,sampled:s,previousSessionId:l}}function uZe(t){if(cZe())try{Nu.sessionStorage.setItem(XJe,JSON.stringify(t))}catch{}}function rhr(t,e){return aWt(t)?"session":e?"buffer":!1}function umt({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const a=rhr(t,e),o=oWt({sampled:a,previousSessionId:r});return n&&uZe(o),o}function ihr(t){if(!cZe())return null;try{const e=Nu.sessionStorage.getItem(XJe);if(!e)return null;const n=JSON.parse(e);return Nj("[Replay] Loading existing session",t),oWt(n)}catch{return null}}function Eje(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function sWt(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Eje(t.started,e,r)||Eje(t.lastActivity,n,r)}function lWt(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!sWt(t,{sessionIdleExpire:e,maxReplayDuration:n})||t.sampled==="buffer"&&t.segmentId===0)}function D3e({traceInternals:t,sessionIdleExpire:e,maxReplayDuration:n,previousSessionId:r},a){const o=a.stickySession&&ihr(t);return o?lWt(o,{sessionIdleExpire:e,maxReplayDuration:n})?(Nj("[Replay] Session in sessionStorage is expired, creating new one..."),umt(a,{previousSessionId:o.id})):o:(Nj("[Replay] Creating new session",t),umt(a,{previousSessionId:r}))}function ahr(t){return t.type===xs.Custom}function dZe(t,e,n){return uWt(t,e)?(cWt(t,e,n),!0):!1}function ohr(t,e,n){return uWt(t,e)?cWt(t,e,n):Promise.resolve(null)}async function cWt(t,e,n){if(!t.eventBuffer)return null;try{n&&t.recordingMode==="buffer"&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0);const r=t.getOptions(),a=shr(e,r.beforeAddRecordingEvent);return a?await t.eventBuffer.addEvent(a):void 0}catch(r){const a=r&&r instanceof lZe?"addEventSizeExceeded":"addEvent";du&&fi.error(r),await t.stop({reason:a});const o=xd();o&&o.recordDroppedEvent("internal_sdk_error","replay")}}function uWt(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=sZe(e.timestamp);return n+t.timeouts.sessionIdlePause<Date.now()?!1:n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(S0(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1):!0}function shr(t,e){try{if(typeof e=="function"&&ahr(t))return e(t)}catch(n){return du&&fi.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return t}function hZe(t){return!t.type}function Sje(t){return t.type==="transaction"}function lhr(t){return t.type==="replay_event"}function dmt(t){return t.type==="feedback"}function dWt(t){const e=dhr();return(n,r)=>{if(!t.isEnabled()||!hZe(n)&&!Sje(n))return;const a=r&&r.statusCode;if(!(e&&(!a||a<200||a>=300))){if(Sje(n)){chr(t,n);return}uhr(t,n)}}}function chr(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function uhr(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();typeof r=="function"&&!r(e)||setTimeout(()=>{t.sendBufferedReplayOrFlush()})}function dhr(){const t=xd();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function hhr(t){return e=>{!t.isEnabled()||!hZe(e)||fhr(t,e)}}function fhr(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=XT({category:"replay.hydrate-error"});Iie(t,r)}}function phr(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function mhr(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:xs.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function ghr(t,e){return t.recordingMode!=="buffer"||e.message===eZe||!e.exception||e.type?!1:aWt(t.getOptions().errorSampleRate)}function vhr(t,e=!1){const n=e?dWt(t):void 0;return Object.assign((r,a)=>t.isEnabled()?lhr(r)?(delete r.breadcrumbs,r):!hZe(r)&&!Sje(r)&&!dmt(r)||!t.checkAndHandleExpiredSession()?r:dmt(r)?(t.flush(),r.contexts.feedback.replay_id=t.getSessionId(),mhr(t,r),r):phr(r,a)&&!t.getOptions()._experiments.captureExceptions?(du&&fi.log("[Replay] Ignoring error from rrweb internals",r),null):((ghr(t,r)||t.recordingMode==="session")&&(r.tags={...r.tags,replayId:t.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function Zbe(t,e){return e.map(({type:n,start:r,end:a,name:o,data:s})=>{const l=t.throttledAddEvent({type:xs.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:a,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function Ahr(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function yhr(t){return e=>{if(!t.isEnabled())return;const n=Ahr(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(Zbe(t,[n]),!1)))}}function bhr(t,e){return du&&t.getOptions()._experiments.traceInternals?!1:clr(e,xd())}function Xbe(t,e){t.isEnabled()&&e!==null&&(bhr(t,e.name)||t.addUpdate(()=>(Zbe(t,[e]),!0)))}function xhr(t){const{startTimestamp:e,endTimestamp:n,fetchData:r,response:a}=t;if(!n)return null;const{method:o,url:s}=r;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:s,data:{method:o,statusCode:a?a.status:void 0}}}function Ehr(t){return e=>{if(!t.isEnabled())return;const n=xhr(e);Xbe(t,n)}}function Shr(t){const{startTimestamp:e,endTimestamp:n,xhr:r}=t,a=r[OB];if(!e||!n||!a)return null;const{method:o,url:s,status_code:l}=a;return s===void 0?null:{type:"resource.xhr",name:s,start:e/1e3,end:n/1e3,data:{method:o,statusCode:l}}}function whr(t){return e=>{if(!t.isEnabled())return;const n=Shr(e);Xbe(t,n)}}function exe(t,e){if(t)try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=mWt(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function hWt(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function fWt(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[mWt(t)];if(!t)return[void 0]}catch{return du&&fi.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return du&&fi.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Pve(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function pWt(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:a,method:o,statusCode:s,request:l,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:a,data:ZS({method:o,statusCode:s,request:l,response:c})}}function vte(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function m5(t,e,n){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:a,warnings:o}=_hr(n);return r.body=a,o&&o.length>0&&(r._meta={warnings:o}),r}function wje(t,e){return Object.keys(t).reduce((n,r)=>{const a=r.toLowerCase();return e.includes(a)&&t[r]&&(n[a]=t[r]),n},{})}function mWt(t){return new URLSearchParams(t).toString()}function _hr(t){if(!t||typeof t!="string")return{body:t};const e=t.length>qpt,n=Thr(t);if(e){const r=t.slice(0,qpt);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function Thr(t){const e=t[0],n=t[t.length-1];return e==="["&&n==="]"||e==="{"&&n==="}"}function Ove(t,e){const n=Chr(t);return Tie(n,e)}function Chr(t,e=Nu.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Nu.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function khr(t,e,n){try{const r=await Mhr(t,e,n),a=pWt("resource.fetch",r);Xbe(n.replay,a)}catch(r){du&&fi.error("[Replay] Failed to capture fetch breadcrumb",r)}}function Rhr(t,e,n){const{input:r,response:a}=e,o=r?gWt(r):void 0,s=exe(o,n.textEncoder),l=a?hWt(a.headers.get("content-length")):void 0;s!==void 0&&(t.data.request_body_size=s),l!==void 0&&(t.data.response_body_size=l)}async function Mhr(t,e,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r}=e,{url:s,method:l,status_code:c=0,request_body_size:u,response_body_size:d}=t.data,h=Ove(s,n.networkDetailAllowUrls)&&!Ove(s,n.networkDetailDenyUrls),f=h?Nhr(n,e.input,u):vte(u),p=await Ihr(h,n,e.response,d);return{startTimestamp:a,endTimestamp:o,url:s,method:l,statusCode:c,request:f,response:p}}function Nhr({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const a=n?Lhr(n,e):{};if(!t)return m5(a,r,void 0);const o=gWt(n),[s,l]=fWt(o),c=m5(a,r,s);return l?Pve(c,l):c}async function Ihr(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:r},a,o){if(!t&&o!==void 0)return vte(o);const s=a?vWt(a.headers,r):{};if(!a||!e&&o!==void 0)return m5(s,o,void 0);const[l,c]=await Ohr(a),u=Phr(l,{networkCaptureBodies:e,textEncoder:n,responseBodySize:o,captureDetails:t,headers:s});return c?Pve(u,c):u}function Phr(t,{networkCaptureBodies:e,textEncoder:n,responseBodySize:r,captureDetails:a,headers:o}){try{const s=t&&t.length&&r===void 0?exe(t,n):r;return a?e?m5(o,s,t):m5(o,s,void 0):vte(s)}catch(s){return du&&fi.warn("[Replay] Failed to serialize response body",s),m5(o,r,void 0)}}async function Ohr(t){const e=Bhr(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await Dhr(e)]}catch(n){return du&&fi.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function gWt(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function vWt(t,e){const n={};return e.forEach(r=>{t.get(r)&&(n[r]=t.get(r))}),n}function Lhr(t,e){return t.length===1&&typeof t[0]!="string"?hmt(t[0],e):t.length===2?hmt(t[1],e):{}}function hmt(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?vWt(n,e):Array.isArray(n)?{}:wje(n,e):{}}function Bhr(t){try{return t.clone()}catch(e){du&&fi.warn("[Replay] Failed to clone response body",e)}}function Dhr(t){return new Promise((e,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);$hr(t).then(a=>e(a),a=>n(a)).finally(()=>clearTimeout(r))})}async function $hr(t){return await t.text()}async function Fhr(t,e,n){try{const r=Hhr(t,e,n),a=pWt("resource.xhr",r);Xbe(n.replay,a)}catch(r){du&&fi.error("[Replay] Failed to capture xhr breadcrumb",r)}}function jhr(t,e,n){const{xhr:r,input:a}=e;if(!r)return;const o=exe(a,n.textEncoder),s=r.getResponseHeader("content-length")?hWt(r.getResponseHeader("content-length")):Vhr(r.response,r.responseType,n.textEncoder);o!==void 0&&(t.data.request_body_size=o),s!==void 0&&(t.data.response_body_size=s)}function Hhr(t,e,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r,input:s,xhr:l}=e,{url:c,method:u,status_code:d=0,request_body_size:h,response_body_size:f}=t.data;if(!c)return null;if(!l||!Ove(c,n.networkDetailAllowUrls)||Ove(c,n.networkDetailDenyUrls)){const _=vte(h),C=vte(f);return{startTimestamp:a,endTimestamp:o,url:c,method:u,statusCode:d,request:_,response:C}}const p=l[OB],m=p?wje(p.request_headers,n.networkRequestHeaders):{},g=wje(Uhr(l),n.networkResponseHeaders),[v,A]=n.networkCaptureBodies?fWt(s):[void 0],[y,S]=n.networkCaptureBodies?zhr(l):[void 0],x=m5(m,h,v),w=m5(g,f,y);return{startTimestamp:a,endTimestamp:o,url:c,method:u,statusCode:d,request:A?Pve(x,A):x,response:S?Pve(w,S):w}}function Uhr(t){const e=t.getAllResponseHeaders();return e?e.split(`\r
`).reduce((n,r)=>{const[a,o]=r.split(": ");return n[a.toLowerCase()]=o,n},{}):{}}function zhr(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return Ghr(t.response,t.responseType)}catch(n){e.push(n)}return du&&fi.warn("[Replay] Failed to get xhr response body",...e),[void 0]}function Ghr(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch{return du&&fi.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return du&&fi.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Vhr(t,e,n){try{const r=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return exe(r,n)}catch{return}}function Khr(t){const e=xd();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:a,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:l}=t.getOptions(),c={replay:t,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:a,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:l};e&&e.on?e.on("beforeAddBreadcrumb",(u,d)=>Whr(c,u,d)):(CVt(Ehr(t)),kVt(whr(t)))}catch{}}function Whr(t,e,n){if(e.data)try{Qhr(e)&&Yhr(n)&&(jhr(e,n,t),Fhr(e,n,t)),qhr(e)&&Jhr(n)&&(Rhr(e,n,t),khr(e,n,t))}catch{du&&fi.warn("Error when enriching network breadcrumb")}}function Qhr(t){return t.category==="xhr"}function qhr(t){return t.category==="fetch"}function Yhr(t){return t&&t.xhr}function Jhr(t){return t&&t.response}let fmt=null;function Zhr(t){return!!t.category}const Xhr=t=>e=>{if(!t.isEnabled())return;const n=efr(e);n&&Iie(t,n)};function efr(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return fmt===e||!e||(fmt=e,!Zhr(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:e.category==="console"?tfr(e):XT(e)}function tfr(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return XT(t);let n=!1;const r=e.map(a=>{if(!a)return a;if(typeof a=="string")return a.length>$le?(n=!0,`${a.slice(0,$le)}…`):a;if(typeof a=="object")try{const o=ST(a,7);return JSON.stringify(o).length>$le?(n=!0,`${JSON.stringify(o,null,2).slice(0,$le)}…`):o}catch{}return a});return XT({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function nfr(t){const e=QP(),n=xd();e.addScopeListener(Xhr(t)),_Vt(Pdr(t)),KJe(yhr(t)),Khr(t);const r=vhr(t,!pmt(n));n&&n.addEventProcessor?n.addEventProcessor(r):ilr(r),pmt(n)&&(n.on("beforeSendEvent",hhr(t)),n.on("afterSendEvent",dWt(t)),n.on("createDsc",a=>{const o=t.getSessionId();o&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(a.replay_id=o)}),n.on("startTransaction",a=>{t.lastTransaction=a}),n.on("finishTransaction",a=>{t.lastTransaction=a}),n.on("beforeSendFeedback",(a,o)=>{const s=t.getSessionId();o&&o.includeReplay&&t.isEnabled()&&s&&a.contexts&&a.contexts.feedback&&(a.contexts.feedback.replay_id=s)}))}function pmt(t){return!!(t&&t.on)}async function rfr(t){try{return Promise.all(Zbe(t,[ifr(Nu.performance.memory)]))}catch{return[]}}function ifr(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function afr(t,e,n){let r,a,o;const s=n&&n.maxWait?Math.max(n.maxWait,e):0;function l(){return c(),r=t(),r}function c(){a!==void 0&&clearTimeout(a),o!==void 0&&clearTimeout(o),a=o=void 0}function u(){return a!==void 0||o!==void 0?l():r}function d(){return a&&clearTimeout(a),a=setTimeout(l,e),s&&o===void 0&&(o=setTimeout(l,s)),r}return d.cancel=c,d.flush=u,d}function ofr(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession()){du&&fi.warn("[Replay] Received replay event after session expired.");return}const a=r||!e;e=!0,t.clickDetector&&kdr(t.clickDetector,n),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&a&&t.setInitialState(),!dZe(t,n,a))return!0;if(!a)return!1;if(lfr(t,a),t.session&&t.session.previousSessionId)return!0;if(t.recordingMode==="buffer"&&t.session&&t.eventBuffer){const o=t.eventBuffer.getEarliestTimestamp();o&&(S0(`[Replay] Updating session start time to earliest event in buffer to ${new Date(o)}`,t.getOptions()._experiments.traceInternals),t.session.started=o,t.getOptions().stickySession&&uZe(t.session))}return t.recordingMode==="session"&&t.flush(),!0})}}function sfr(t){const e=t.getOptions();return{type:xs.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function lfr(t,e){!e||!t.session||t.session.segmentId!==0||dZe(t,sfr(t),!1)}function cfr(t,e,n,r){return P8(DVt(t,QJe(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function ufr({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}
`;if(typeof t=="string")n=`${r}${t}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+t.length),n.set(o),n.set(t,o.length)}return n}async function dfr({client:t,scope:e,replayId:n,event:r}){const a=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,o={event_id:n,integrations:a};t.emit&&t.emit("preprocessEvent",r,o);const s=await UVt(t.getOptions(),r,o,e,t,Mie());if(!s)return null;s.platform=s.platform||"javascript";const l=t.getSdkMetadata&&t.getSdkMetadata(),{name:c,version:u}=l&&l.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function hfr({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:a,session:o}){const s=ufr({recordingData:t,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:u,initialTimestamp:d}=r,h=xd(),f=QP(),p=h&&h.getTransport(),m=h&&h.getDsn();if(!h||!p||!m||!o.sampled)return;const g={type:Ycr,replay_start_timestamp:d/1e3,timestamp:a/1e3,error_ids:c,trace_ids:u,urls:l,replay_id:e,segment_id:n,replay_type:o.sampled},v=await dfr({scope:f,client:h,replayId:e,event:g});if(!v){h.recordDroppedEvent("event_processor","replay",g),S0("An event processor returned `null`, will not send event.");return}delete v.sdkProcessingMetadata;const A=cfr(v,s,m,h.getOptions().tunnel);let y;try{y=await p.send(A)}catch(x){const w=new Error(eZe);try{w.cause=x}catch{}throw w}if(!y)return y;if(typeof y.statusCode=="number"&&(y.statusCode<200||y.statusCode>=300))throw new AWt(y.statusCode);const S=FVt({},y);if($Vt(S,"replay"))throw new yWt(S);return y}class AWt extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class yWt extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function bWt(t,e={count:0,interval:nur}){const{recordingData:n,options:r}=t;if(n.length)try{return await hfr(t),!0}catch(a){if(a instanceof AWt||a instanceof yWt)throw a;if(Tsr("Replays",{_retryCount:e.count}),du&&r._experiments&&r._experiments.captureExceptions&&Wbe(a),e.count>=rur){const o=new Error(`${eZe} - max retries exceeded`);try{o.cause=a}catch{}throw o}return e.interval*=++e.count,new Promise((o,s)=>{setTimeout(async()=>{try{await bWt(t,e),o(!0)}catch(l){s(l)}},e.interval)})}}const xWt="__THROTTLED",ffr="__SKIPPED";function pfr(t,e,n){const r=new Map,a=l=>{const c=l-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},o=()=>[...r.values()].reduce((l,c)=>l+c,0);let s=!1;return(...l)=>{const c=Math.floor(Date.now()/1e3);if(a(c),o()>=e){const d=s;return s=!0,d?ffr:xWt}s=!1;const u=r.get(c)||0;return r.set(c,u+1),t(...l)}}class r3{constructor({options:e,recordingOptions:n}){r3.prototype.__init.call(this),r3.prototype.__init2.call(this),r3.prototype.__init3.call(this),r3.prototype.__init4.call(this),r3.prototype.__init5.call(this),r3.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Jcr,sessionIdleExpire:Zcr},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=e,this._debouncedFlush=afr(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=pfr((s,l)=>ohr(this,s,l),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:a}=this.getOptions(),o=r?{threshold:Math.min(iur,r),timeout:r,scrollTimeout:aur,ignoreSelector:a?a.join(","):""}:void 0;o&&(this.clickDetector=new wdr(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Nj(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Nj("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=D3e({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Nj("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=D3e({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=p5({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:tur},emit:ofr(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{S0(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,thr(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),S0("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),S0("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();S0("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!e||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const n=e();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Eje(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${Nu.location.pathname}${Nu.location.hash}${Nu.location.search}`,n=`${Nu.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(e,n){const r=this._throttledAddEvent(e,n);if(r===xWt){const a=XT({category:"replay.throttled"});this.addUpdate(()=>!dZe(this,{type:Adr,timestamp:a.timestamp||0,data:{tag:"breadcrumb",payload:a,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastTransaction||QP().getTransaction(),r=(e&&o6(e).data||{})[Fsr];if(!(!e||!r||!["route","custom"].includes(r)))return o6(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Zdr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){du&&fi.error("[Replay]",e),du&&this._options._experiments&&this._options._experiments.captureExceptions&&Wbe(e)}_initializeSessionForSampling(e){const n=this._options.errorSampleRate>0,r=D3e({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return lWt(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Nu.document.addEventListener("visibilitychange",this._handleVisibilityChange),Nu.addEventListener("blur",this._handleWindowBlur),Nu.addEventListener("focus",this._handleWindowFocus),Nu.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(nfr(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Kdr(this)}_removeListeners(){try{Nu.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Nu.removeEventListener("blur",this._handleWindowBlur),Nu.removeEventListener("focus",this._handleWindowFocus),Nu.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{Nu.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=XT({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=XT({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Ddr(this,e)}}_doChangeToBackgroundTasks(e){!this.session||sWt(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){S0("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:xs.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){const e=jdr(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Zbe(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:n}=this;if(!e||!n||e.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){du&&fi.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await rfr(this),!!this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),a=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await bWt({replayId:e,recordingData:o,segmentId:a,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=xd();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){du&&fi.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,a=Date.now()-n;this._debouncedFlush.cancel();const o=a<this._options.minReplayDuration,s=a>this._options.maxReplayDuration+5e3;if(o||s){S0(`[Replay] Session duration (${Math.floor(a/1e3)}s) is too ${o?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),o&&this._debouncedFlush();return}const l=this.eventBuffer;if(l&&this.session.segmentId===0&&!l.hasCheckout&&S0("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){du&&fi.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&uZe(this.session)}__init6(){this._onMutationHandler=e=>{const n=e.length,r=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>a||o){const s=XT({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(s)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function cQ(t,e,n,r){const a=typeof r=="string"?r.split(","):[],o=[...t,...a,...e];return typeof n<"u"&&(typeof n=="string"&&o.push(`.${n}`),i6(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),o.join(",")}function mfr({mask:t,unmask:e,block:n,unblock:r,ignore:a,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,ignoreClass:u}){const d=['base[href="/"]'],h=cQ(t,[".sentry-mask","[data-sentry-mask]"],l,c),f=cQ(e,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:h,unmaskTextSelector:f,blockSelector:cQ(n,[".sentry-block","[data-sentry-block]",...d],o,s),unblockSelector:cQ(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:cQ(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return o instanceof RegExp&&(p.blockClass=o),l instanceof RegExp&&(p.maskTextClass=l),p}function gfr({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:a,value:o}){return!r||a.unmaskTextSelector&&t.matches(a.unmaskTextSelector)?o:n.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const mmt='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',vfr=["content-length","content-type","accept"];let gmt=!1;class txe{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=Xcr,flushMaxDelay:n=eur,minReplayDuration:r=our,maxReplayDuration:a=Ypt,stickySession:o=!0,useCompression:s=!0,workerUrl:l,_experiments:c={},sessionSampleRate:u,errorSampleRate:d,maskAllText:h=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:A=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:S=[],networkCaptureBodies:x=!0,networkRequestHeaders:w=[],networkResponseHeaders:_=[],mask:C=[],maskAttributes:R=["title","placeholder"],unmask:k=[],block:P=[],unblock:N=[],ignore:L=[],maskFn:I,beforeAddRecordingEvent:b,beforeErrorSampling:T,blockClass:M,blockSelector:D,maskInputOptions:B,maskTextClass:j,maskTextSelector:H,ignoreClass:U}={}){this.name=txe.id;const $=mfr({mask:C,unmask:k,block:P,unblock:N,ignore:L,blockClass:M,blockSelector:D,maskTextClass:j,maskTextSelector:H,ignoreClass:U});if(this._recordingOptions={maskAllInputs:f,maskAllText:h,maskInputOptions:{...B||{},password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(z,Z,K)=>gfr({maskAttributes:R,maskAllText:h,privacyOptions:$,key:z,value:Z,el:K}),...$,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:z=>{try{z.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:n,minReplayDuration:Math.min(r,sur),maxReplayDuration:Math.min(a,Ypt),stickySession:o,sessionSampleRate:u,errorSampleRate:d,useCompression:s,workerUrl:l,blockAllMedia:p,maskAllInputs:f,maskAllText:h,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:v,slowClickIgnoreSelectors:A,networkDetailAllowUrls:y,networkDetailDenyUrls:S,networkCaptureBodies:x,networkRequestHeaders:vmt(w),networkResponseHeaders:vmt(_),beforeAddRecordingEvent:b,beforeErrorSampling:T,_experiments:c},typeof u=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysSessionSampleRate: ${u} })`),this._initialOptions.sessionSampleRate=u),typeof d=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysOnErrorSampleRate: ${d} })`),this._initialOptions.errorSampleRate=d),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${mmt}`:mmt),this._isInitialized&&kpt())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return gmt}set _isInitialized(e){gmt=e}setupOnce(){kpt()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(e)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=Afr(this._initialOptions);this._replay=new r3({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=xd().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}txe.__initStatic();function Afr(t){const e=xd(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...ZS(t)};return n?(t.sessionSampleRate==null&&t.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&i6(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(i6(()=>{console.warn("SDK client is not available.")}),r)}function vmt(t){return[...vfr,...t.map(e=>e.toLowerCase())]}function yfr(t){const e={...t};nKt(e,"react"),Qcr(e)}var EWt={exports:{}},Lc={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var um=typeof Symbol=="function"&&Symbol.for,fZe=um?Symbol.for("react.element"):60103,pZe=um?Symbol.for("react.portal"):60106,nxe=um?Symbol.for("react.fragment"):60107,rxe=um?Symbol.for("react.strict_mode"):60108,ixe=um?Symbol.for("react.profiler"):60114,axe=um?Symbol.for("react.provider"):60109,oxe=um?Symbol.for("react.context"):60110,mZe=um?Symbol.for("react.async_mode"):60111,sxe=um?Symbol.for("react.concurrent_mode"):60111,lxe=um?Symbol.for("react.forward_ref"):60112,cxe=um?Symbol.for("react.suspense"):60113,bfr=um?Symbol.for("react.suspense_list"):60120,uxe=um?Symbol.for("react.memo"):60115,dxe=um?Symbol.for("react.lazy"):60116,xfr=um?Symbol.for("react.block"):60121,Efr=um?Symbol.for("react.fundamental"):60117,Sfr=um?Symbol.for("react.responder"):60118,wfr=um?Symbol.for("react.scope"):60119;function eb(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case fZe:switch(t=t.type,t){case mZe:case sxe:case nxe:case ixe:case rxe:case cxe:return t;default:switch(t=t&&t.$$typeof,t){case oxe:case lxe:case dxe:case uxe:case axe:return t;default:return e}}case pZe:return e}}}function SWt(t){return eb(t)===sxe}Lc.AsyncMode=mZe;Lc.ConcurrentMode=sxe;Lc.ContextConsumer=oxe;Lc.ContextProvider=axe;Lc.Element=fZe;Lc.ForwardRef=lxe;Lc.Fragment=nxe;Lc.Lazy=dxe;Lc.Memo=uxe;Lc.Portal=pZe;Lc.Profiler=ixe;Lc.StrictMode=rxe;Lc.Suspense=cxe;Lc.isAsyncMode=function(t){return SWt(t)||eb(t)===mZe};Lc.isConcurrentMode=SWt;Lc.isContextConsumer=function(t){return eb(t)===oxe};Lc.isContextProvider=function(t){return eb(t)===axe};Lc.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===fZe};Lc.isForwardRef=function(t){return eb(t)===lxe};Lc.isFragment=function(t){return eb(t)===nxe};Lc.isLazy=function(t){return eb(t)===dxe};Lc.isMemo=function(t){return eb(t)===uxe};Lc.isPortal=function(t){return eb(t)===pZe};Lc.isProfiler=function(t){return eb(t)===ixe};Lc.isStrictMode=function(t){return eb(t)===rxe};Lc.isSuspense=function(t){return eb(t)===cxe};Lc.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===nxe||t===sxe||t===ixe||t===rxe||t===cxe||t===bfr||typeof t=="object"&&t!==null&&(t.$$typeof===dxe||t.$$typeof===uxe||t.$$typeof===axe||t.$$typeof===oxe||t.$$typeof===lxe||t.$$typeof===Efr||t.$$typeof===Sfr||t.$$typeof===wfr||t.$$typeof===xfr)};Lc.typeOf=eb;EWt.exports=Lc;var gZe=EWt.exports,vZe=gZe,_fr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tfr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Cfr={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wWt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},AZe={};AZe[vZe.ForwardRef]=Cfr;AZe[vZe.Memo]=wWt;function Amt(t){return vZe.isMemo(t)?wWt:AZe[t.$$typeof]||_fr}var kfr=Object.defineProperty,Rfr=Object.getOwnPropertyNames,ymt=Object.getOwnPropertySymbols,Mfr=Object.getOwnPropertyDescriptor,Nfr=Object.getPrototypeOf,bmt=Object.prototype;function _Wt(t,e,n){if(typeof e!="string"){if(bmt){var r=Nfr(e);r&&r!==bmt&&_Wt(t,r,n)}var a=Rfr(e);ymt&&(a=a.concat(ymt(e)));for(var o=Amt(t),s=Amt(e),l=0;l<a.length;++l){var c=a[l];if(!Tfr[c]&&!(n&&n[c])&&!(s&&s[c])&&!(o&&o[c])){var u=Mfr(e,c);try{kfr(t,c,u)}catch{}}}}return t}var Ifr=_Wt;const Pfr=Li(Ifr),Ofr=Object.prototype.toString;function yZe(t,e){return Ofr.call(t)===`[object ${e}]`}function g5(t){return yZe(t,"String")}function TWt(t){return yZe(t,"Object")}function Lfr(t){return yZe(t,"RegExp")}function bZe(t){return!!(t&&t.then&&typeof t.then=="function")}function Bfr(t){return typeof t=="number"&&t!==t}function xmt(t,e){try{return t instanceof e}catch{return!1}}function Dfr(t,e,n=!1){return g5(t)?Lfr(e)?e.test(t):g5(e)?n?t===e:t.includes(e):!1:!1}function $fr(t,e=[],n=!1){return e.some(r=>Dfr(t,r,n))}function Hle(t){return t&&t.Math==Math?t:void 0}const $d=typeof globalThis=="object"&&Hle(globalThis)||typeof window=="object"&&Hle(window)||typeof self=="object"&&Hle(self)||typeof Wa=="object"&&Hle(Wa)||function(){return this}()||{};function xZe(){return $d}function CWt(t,e,n){const r=n||$d,a=r.__SENTRY__=r.__SENTRY__||{};return a[t]||(a[t]=e())}const xX=xZe(),Ffr=80;function Lve(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,a=[];let o=0,s=0;const l=" > ",c=l.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||Ffr;for(;n&&o++<r&&(u=jfr(n,d),!(u==="html"||o>1&&s+a.length*c+u.length>=h));)a.push(u),s+=u.length,n=n.parentNode;return a.reverse().join(l)}catch{return"<unknown>"}}function jfr(t,e){const n=t,r=[];let a,o,s,l,c;if(!n||!n.tagName)return"";if(xX.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter(h=>n.getAttribute(h)).map(h=>[h,n.getAttribute(h)]):null;if(u&&u.length)u.forEach(h=>{r.push(`[${h[0]}="${h[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),a=n.className,a&&g5(a))for(o=a.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],l=n.getAttribute(s),l&&r.push(`[${s}="${l}"]`);return r.join("")}function Hfr(t){return xX.document&&xX.document.querySelector?xX.document.querySelector(t):null}function Ufr(t){if(!xX.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}const Pie=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zfr="Sentry Logger ",Emt=["debug","info","warn","error","log","assert","trace"],Smt={};function kWt(t){if(!("console"in $d))return t();const e=$d.console,n={},r=Object.keys(Smt);r.forEach(a=>{const o=Smt[a];n[a]=e[a],e[a]=o});try{return t()}finally{r.forEach(a=>{e[a]=n[a]})}}function Gfr(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Pie?Emt.forEach(n=>{e[n]=(...r)=>{t&&kWt(()=>{$d.console[n](`${zfr}[${n}]:`,...r)})}}):Emt.forEach(n=>{e[n]=()=>{}}),e}const Ui=Gfr();function Vfr(t,e=!1){const{host:n,path:r,pass:a,port:o,projectId:s,protocol:l,publicKey:c}=t;return`${l}://${c}${e&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function DB(t,e,n){if(!(e in t))return;const r=t[e],a=n(r);typeof a=="function"&&Kfr(a,r),t[e]=a}function _je(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Pie&&Ui.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Kfr(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,_je(t,"__sentry_original__",e)}catch{}}function XS(t){return Tje(t,new Map)}function Tje(t,e){if(Wfr(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const a of Object.keys(t))typeof t[a]<"u"&&(r[a]=Tje(t[a],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(a=>{r.push(Tje(a,e))}),r}return t}function Wfr(t){if(!TWt(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const $3e="<anonymous>";function RWt(t){try{return!t||typeof t!="function"?$3e:t.name||$3e}catch{return $3e}}const zpe={},wmt={};function Oie(t,e){zpe[t]=zpe[t]||[],zpe[t].push(e)}function Lie(t,e){wmt[t]||(e(),wmt[t]=!0)}function ZR(t,e){const n=t&&zpe[t];if(n)for(const r of n)try{r(e)}catch(a){Pie&&Ui.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${RWt(r)}
Error:`,a)}}function cp(){const t=$d,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Qfr(t){return Array.isArray(t)?t:[t]}const Cje=xZe();function qfr(){if(!("fetch"in Cje))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function _mt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Yfr(){if(typeof EdgeRuntime=="string")return!0;if(!qfr())return!1;if(_mt(Cje.fetch))return!0;let t=!1;const e=Cje.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=_mt(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Pie&&Ui.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Jfr(t){const e="fetch";Oie(e,t),Lie(e,Zfr)}function Zfr(){Yfr()&&DB($d,"fetch",function(t){return function(...e){const{method:n,url:r}=Xfr(e),a={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ZR("fetch",{...a}),t.apply($d,e).then(o=>{const s={...a,endTimestamp:Date.now(),response:o};return ZR("fetch",s),o},o=>{const s={...a,endTimestamp:Date.now(),error:o};throw ZR("fetch",s),o})}})}function kje(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Tmt(t){return typeof t=="string"?t:t?kje(t,"url")?t.url:t.toString?t.toString():"":""}function Xfr(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Tmt(n),method:kje(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:Tmt(e),method:kje(e,"method")?String(e.method).toUpperCase():"GET"}}let Ule=null;function epr(t){const e="error";Oie(e,t),Lie(e,tpr)}function tpr(){Ule=$d.onerror,$d.onerror=function(t,e,n,r,a){return ZR("error",{column:r,error:a,line:n,msg:t,url:e}),Ule&&!Ule.__SENTRY_LOADER__?Ule.apply(this,arguments):!1},$d.onerror.__SENTRY_INSTRUMENTED__=!0}let zle=null;function npr(t){const e="unhandledrejection";Oie(e,t),Lie(e,rpr)}function rpr(){zle=$d.onunhandledrejection,$d.onunhandledrejection=function(t){return ZR("unhandledrejection",t),zle&&!zle.__SENTRY_LOADER__?zle.apply(this,arguments):!0},$d.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Gle=xZe();function ipr(){const t=Gle.chrome,e=t&&t.app&&t.app.runtime,n="history"in Gle&&!!Gle.history.pushState&&!!Gle.history.replaceState;return!e&&n}const uQ=$d;let Vle;function apr(t){const e="history";Oie(e,t),Lie(e,opr)}function opr(){if(!ipr())return;const t=uQ.onpopstate;uQ.onpopstate=function(...n){const r=uQ.location.href,a=Vle;if(Vle=r,ZR("history",{from:a,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const a=r.length>2?r[2]:void 0;if(a){const o=Vle,s=String(a);Vle=s,ZR("history",{from:o,to:s})}return n.apply(this,r)}}DB(uQ.history,"pushState",e),DB(uQ.history,"replaceState",e)}const spr=$d,nZ="__sentry_xhr_v3__";function lpr(t){const e="xhr";Oie(e,t),Lie(e,cpr)}function cpr(){if(!spr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;DB(t,"open",function(e){return function(...n){const r=Date.now(),a=g5(n[0])?n[0].toUpperCase():void 0,o=upr(n[1]);if(!a||!o)return e.apply(this,n);this[nZ]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[nZ];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const c={args:[a,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};ZR("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?DB(this,"onreadystatechange",function(l){return function(...c){return s(),l.apply(this,c)}}):this.addEventListener("readystatechange",s),DB(this,"setRequestHeader",function(l){return function(...c){const[u,d]=c,h=this[nZ];return h&&g5(u)&&g5(d)&&(h.request_headers[u.toLowerCase()]=d),l.apply(this,c)}}),e.apply(this,n)}}),DB(t,"send",function(e){return function(...n){const r=this[nZ];if(!r)return e.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const a={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return ZR("xhr",a),e.apply(this,n)}})}function upr(t){if(g5(t))return t;try{return t.toString()}catch{}}function dpr(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function hpr(){return!dpr()&&Object.prototype.toString.call(typeof wa<"u"?wa:0)==="[object process]"}function $B(t,e){return t.require(e)}function fpr(t){let e;try{e=$B(module,t)}catch{}try{const{cwd:n}=$B(module,"process");e=$B(module,`${n()}/node_modules/${t}`)}catch{}return e}var uR;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(uR||(uR={}));class i3{constructor(e){i3.prototype.__init.call(this),i3.prototype.__init2.call(this),i3.prototype.__init3.call(this),i3.prototype.__init4.call(this),this._state=uR.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new i3((r,a)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){a(s)}},o=>{if(!n)a(o);else try{r(n(o))}catch(s){a(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new i3((n,r)=>{let a,o;return this.then(s=>{o=!1,a=s,e&&e()},s=>{o=!0,a=s,e&&e()}).then(()=>{if(o){r(a);return}n(a)})})}__init(){this._resolve=e=>{this._setResult(uR.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(uR.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===uR.PENDING){if(bZe(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===uR.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===uR.RESOLVED&&n[1](this._value),this._state===uR.REJECTED&&n[2](this._value),n[0]=!0)})}}}function hxe(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const MWt=1e3;function EZe(){return Date.now()/MWt}function ppr(){const{performance:t}=$d;if(!t||!t.now)return EZe;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/MWt}const Bie=ppr(),Hx=(()=>{const{performance:t}=$d;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=a<e,s=t.timing&&t.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):e,u=c<e;return o||u?a<=c?t.timeOrigin:s:r})(),Rje="baggage",NWt="sentry-",mpr=/^sentry-/,gpr=8192;function vpr(t){if(!g5(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((r,a)=>{const o=Cmt(a);for(const s of Object.keys(o))r[s]=o[s];return r},{});else{if(!t)return;e=Cmt(t)}const n=Object.entries(e).reduce((r,[a,o])=>{if(a.match(mpr)){const s=a.slice(NWt.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function IWt(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,a])=>(a&&(n[`${NWt}${r}`]=a),n),{});return Apr(e)}function Cmt(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}function Apr(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],a)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=a===0?o:`${e},${o}`;return s.length>gpr?(Pie&&Ui.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}const ypr=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function bpr(t){if(!t)return;const e=t.match(ypr);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function xpr(t,e){const n=bpr(t),r=vpr(e),{traceId:a,parentSpanId:o,parentSampled:s}=n||{};return n?{traceId:a||cp(),parentSpanId:o||cp().substring(16),spanId:cp().substring(16),sampled:s,dsc:r||{}}:{traceId:a||cp(),spanId:cp().substring(16)}}function SZe(t=cp(),e=cp().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function Epr(t,e=[]){return[t,e]}const $l=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,PWt="production";function Spr(){return CWt("globalEventProcessors",()=>[])}function Mje(t,e,n,r=0){return new i3((a,o)=>{const s=t[r];if(e===null||typeof s!="function")a(e);else{const l=s({...e},n);$l&&s.id&&l===null&&Ui.log(`Event processor "${s.id}" dropped event`),bZe(l)?l.then(c=>Mje(t,c,n,r+1).then(a)).then(null,o):Mje(t,l,n,r+1).then(a).then(null,o)}})}function wpr(t){const e=Bie(),n={sid:cp(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Tpr(n)};return t&&fxe(n,t),n}function fxe(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Bie(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:cp()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function _pr(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),fxe(t,n)}function Tpr(t){return XS({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const Cpr=0,OWt=1;function wZe(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:a,parent_span_id:o,status:s,tags:l,origin:c}=i1(t);return XS({data:r,op:a,parent_span_id:o,span_id:e,status:s,tags:l,trace_id:n,origin:c})}function pxe(t){const{traceId:e,spanId:n}=t.spanContext(),r=_Ze(t);return SZe(e,n,r)}function mxe(t){return typeof t=="number"?kmt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?kmt(t.getTime()):Bie()}function kmt(t){return t>9999999999?t/1e3:t}function i1(t){return kpr(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function kpr(t){return typeof t.getSpanJSON=="function"}function _Ze(t){const{traceFlags:e}=t.spanContext();return!!(e&OWt)}function Xz(){return nG().getClient()}function eG(){return nG().getScope()}function Bve(t){return t.transaction}function TZe(t,e,n){const r=e.getOptions(),{publicKey:a}=e.getDsn()||{},{segment:o}=n&&n.getUser()||{},s=XS({environment:r.environment||PWt,release:r.release,user_segment:o,public_key:a,trace_id:t});return e.emit&&e.emit("createDsc",s),s}function jH(t){const e=Xz();if(!e)return{};const n=TZe(i1(t).trace_id||"",e,eG()),r=Bve(t);if(!r)return n;const a=r&&r._frozenDynamicSamplingContext;if(a)return a;const{sampleRate:o,source:s}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const l=i1(r);return s&&s!=="url"&&(n.transaction=l.description),n.sampled=String(_Ze(r)),e.emit&&e.emit("createDsc",n),n}function Rpr(t,e){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=e;Mpr(t,e),r&&Ppr(t,r),Opr(t,n),Npr(t,a),Ipr(t,o)}function Mpr(t,e){const{extra:n,tags:r,user:a,contexts:o,level:s,transactionName:l}=e,c=XS(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=XS(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const d=XS(a);d&&Object.keys(d).length&&(t.user={...d,...t.user});const h=XS(o);h&&Object.keys(h).length&&(t.contexts={...h,...t.contexts}),s&&(t.level=s),l&&(t.transaction=l)}function Npr(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Ipr(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Ppr(t,e){t.contexts={trace:wZe(e),...t.contexts};const n=Bve(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:jH(e),...t.sdkProcessingMetadata};const r=i1(n).description;r&&(t.tags={transaction:r,...t.tags})}}function Opr(t,e){t.fingerprint=t.fingerprint?Qfr(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}const Lpr=100;let Rmt=class Gpe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Mmt()}static clone(e){return e?e.clone():new Gpe}clone(){const e=new Gpe;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&fxe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e;if(n instanceof Gpe){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(TWt(n)){const r=e;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Mmt(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Lpr;if(r<=0)return this;const a={timestamp:EZe(),...e},o=this._breadcrumbs;return o.push(a),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:n,_contexts:r,_tags:a,_extra:o,_user:s,_level:l,_fingerprint:c,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:h,_transactionName:f,_span:p}=this;return{breadcrumbs:e,attachments:n,contexts:r,tags:a,extra:o,user:s,level:l,fingerprint:c||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:h,transactionName:f,span:p}}applyToEvent(e,n={},r=[]){Rpr(e,this.getScopeData());const a=[...r,...Spr(),...this._eventProcessors];return Mje(a,e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:cp();if(!this._client)return Ui.warn("No client configured on scope - will not capture exception!"),r;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureMessage(e,n,r){const a=r&&r.event_id?r.event_id:cp();if(!this._client)return Ui.warn("No client configured on scope - will not capture message!"),a;const o=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:a},this),a}captureEvent(e,n){const r=n&&n.event_id?n.event_id:cp();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Ui.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function Mmt(){return{traceId:cp(),spanId:cp().substring(16)}}const Bpr="7.114.0",LWt=parseFloat(Bpr),Dpr=100;class BWt{constructor(e,n,r,a=LWt){this._version=a;let o;n?o=n:(o=new Rmt,o.setClient(e));let s;r?s=r:(s=new Rmt,s.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,n.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();let r;try{r=e(n)}catch(a){throw this.popScope(),a}return bZe(r)?r.then(a=>(this.popScope(),a),a=>{throw this.popScope(),a}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:cp(),a=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:a,...n,event_id:r}),r}captureMessage(e,n,r){const a=this._lastEventId=r&&r.event_id?r.event_id:cp(),o=new Error(e);return this.getScope().captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:a}),a}captureEvent(e,n){const r=n&&n.event_id?n.event_id:cp();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:a}=this.getStackTop();if(!a)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Dpr}=a.getOptions&&a.getOptions()||{};if(s<=0)return;const c={timestamp:EZe(),...e},u=o?kWt(()=>o(c,n)):c;u!==null&&(a.emit&&a.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n),this.getIsolationScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n),this.getIsolationScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n),this.getIsolationScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=Nmt(this);try{e(this)}finally{Nmt(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return $l&&Ui.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);return $l&&!r&&(this.getClient()?Ui.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):Ui.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&_pr(r),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:a,environment:o=PWt}=r&&r.getOptions()||{},{userAgent:s}=$d.navigator||{},l=wpr({release:a,environment:o,user:n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&fxe(c,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(e,...n){const a=tG().__SENTRY__;if(a&&a.extensions&&typeof a.extensions[e]=="function")return a.extensions[e].apply(this,n);$l&&Ui.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function tG(){return $d.__SENTRY__=$d.__SENTRY__||{extensions:{},hub:void 0},$d}function Nmt(t){const e=tG(),n=Nje(e);return DWt(e,t),n}function nG(){const t=tG();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return $pr(t)}function CZe(){return nG().getIsolationScope()}function $pr(t=tG()){return(!Fpr(t)||Nje(t).isOlderThan(LWt))&&DWt(t,new BWt),Nje(t)}function Fpr(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Nje(t){return CWt("hub",()=>new BWt,t)}function DWt(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function s6(t){return(t||nG()).getScope().getTransaction()}let Imt=!1;function jpr(){Imt||(Imt=!0,epr(Ije),npr(Ije))}function Ije(){const t=s6();if(t){const e="internal_error";$l&&Ui.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}Ije.tag="sentry_tracingErrorCallback";var Pmt;(function(t){const e="ok";t.Ok=e;const n="deadline_exceeded";t.DeadlineExceeded=n;const r="unauthenticated";t.Unauthenticated=r;const a="permission_denied";t.PermissionDenied=a;const o="not_found";t.NotFound=o;const s="resource_exhausted";t.ResourceExhausted=s;const l="invalid_argument";t.InvalidArgument=l;const c="unimplemented";t.Unimplemented=c;const u="unavailable";t.Unavailable=u;const d="internal_error";t.InternalError=d;const h="unknown_error";t.UnknownError=h;const f="cancelled";t.Cancelled=f;const p="already_exists";t.AlreadyExists=p;const m="failed_precondition";t.FailedPrecondition=m;const g="aborted";t.Aborted=g;const v="out_of_range";t.OutOfRange=v;const A="data_loss";t.DataLoss=A})(Pmt||(Pmt={}));function Hpr(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function kZe(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=Hpr(e);n!=="unknown_error"&&t.setStatus(n)}function rG(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Xz(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function $Wt(t){if(!rG())return;const e=Gpr(t),n=nG(),r=t.scope?t.scope.getSpan():Upr();if(t.onlyIfParent&&!r)return;const s=(t.scope||eG()).clone();return zpr(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:s})}function Upr(){return eG().getSpan()}function zpr(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:a}){if(!rG())return;const o=CZe();let s;if(e&&!r)s=e.startChild(n);else if(e){const l=jH(e),{traceId:c,spanId:u}=e.spanContext(),d=_Ze(e);s=t.startTransaction({traceId:c,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}else{const{traceId:l,dsc:c,parentSpanId:u,sampled:d}={...o.getPropagationContext(),...a.getPropagationContext()};s=t.startTransaction({traceId:l,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return a.setSpan(s),Vpr(s,a,o),s}function Gpr(t){if(t.startTime){const e={...t};return e.startTimestamp=mxe(t.startTime),delete e.startTime,e}return t}const FWt="_sentryScope",jWt="_sentryIsolationScope";function Vpr(t,e,n){t&&(_je(t,jWt,n),_je(t,FWt,e))}function Kpr(t){return{scope:t[FWt],isolationScope:t[jWt]}}const Ij="sentry.source",DF="sentry.sample_rate",Kle="sentry.op",$F="sentry.origin",Wpr="profile_id";class HWt{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class gxe{constructor(e={}){this._traceId=e.traceId||cp(),this._spanId=e.spanId||cp().substring(16),this._startTime=e.startTimestamp||Bie(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[$F]:e.origin||"manual",[Kle]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime!==void 0&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[Kle]}set op(e){this.setAttribute(Kle,e)}get origin(){return this._attributes[$F]}set origin(e){this.setAttribute($F,e)}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?OWt:Cpr}}startChild(e){const n=new gxe({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=Bve(this);if(n.transaction=r,$l&&r){const a=e&&e.op||"< unknown op >",o=i1(n).description||"< unknown name >",s=r.spanContext().spanId,l=`[Tracing] Starting '${a}' span on transaction '${o}' (${s}).`;Ui.log(l),this._logMessage=l}return n}setTag(e,n){return this.tags={...this.tags,[e]:n},this}setData(e,n){return this.data={...this.data,[e]:n},this}setAttribute(e,n){n===void 0?delete this._attributes[e]:this._attributes[e]=n}setAttributes(e){Object.keys(e).forEach(n=>this.setAttribute(n,e[n]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return kZe(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;const n=Bve(this);if($l&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Ui.log(r.replace("Starting","Finishing"))}this._endTime=mxe(e)}toTraceparent(){return pxe(this)}toContext(){return XS({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return wZe(this)}getSpanJSON(){return XS({data:this._getData(),description:this._name,op:this._attributes[Kle],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[$F],_metrics_summary:void 0,profile_id:this._attributes[Wpr],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:n}=this,r=Object.keys(e).length>0,a=Object.keys(n).length>0;if(!(!r&&!a))return r&&a?{...e,...n}:r?e:n}}class UWt extends gxe{constructor(e,n){super(e),this._contexts={},this._hub=n||nG(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Ij]&&{source:this._attributes[Ij]},...this._attributes[DF]&&{sampleRate:this._attributes[DF]}}}set metadata(e){this._metadata=e}setName(e,n="custom"){this._name=e,this.setAttribute(Ij,n)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new HWt(e)),this.spanRecorder.add(this)}setContext(e,n){n===null?delete this._contexts[e]:this._contexts[e]=n}setMeasurement(e,n,r=""){this._measurements[e]={value:n,unit:r}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const n=mxe(e),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const e=super.toContext();return XS({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return jH(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||($l&&Ui.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){$l&&Ui.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&i1(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(h=>i1(h).timestamp).filter(Boolean);this._endTime=d.reduce((h,f)=>h>f?h:f)}const{scope:a,isolationScope:o}=Kpr(this),{metadata:s}=this,{source:l}=s,c={contexts:{...this._contexts,trace:wZe(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:a,capturedSpanIsolationScope:o,...XS({dynamicSamplingContext:jH(this)})},_metrics_summary:void 0,...l&&{transaction_info:{source:l}}};return Object.keys(this._measurements).length>0&&($l&&Ui.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),$l&&Ui.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Vpe={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Qpr="finishReason",t$=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class qpr extends HWt{constructor(e,n,r,a){super(a),this._pushActivity=e,this._popActivity=n,this.transactionSpanId=r}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const n=e.end;e.end=(...r)=>(this._popActivity(e.spanContext().spanId),n.apply(e,r)),i1(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Ypr extends UWt{constructor(e,n,r=Vpe.idleTimeout,a=Vpe.finalTimeout,o=Vpe.heartbeatInterval,s=!1,l=!1){super(e,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=a,this._heartbeatInterval=o,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=t$[4],this._autoFinishAllowed=!l,s&&($l&&Ui.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),l||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=t$[3],this.end())},this._finalTimeout)}end(e){const n=mxe(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Qpr,this._finishReason),this.spanRecorder){$l&&Ui.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;i1(r).timestamp||(r.setStatus("cancelled"),r.end(n),$l&&Ui.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:a,timestamp:o}=i1(r),s=a&&a<n,l=(this._finalTimeout+this._idleTimeout)/1e3,c=o&&a&&o-a<l;if($l){const u=JSON.stringify(r,void 0,2);s?c||Ui.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):Ui.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return s&&c}),$l&&Ui.log("[Tracing] flushing IdleTransaction")}else $l&&Ui.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const n=a=>{this._finished||this._pushActivity(a)},r=a=>{this._finished||this._popActivity(a)};this.spanRecorder=new qpr(n,r,this.spanContext().spanId,e),$l&&Ui.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=t$[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||($l&&Ui.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=t$[1],this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),$l&&Ui.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,$l&&Ui.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&($l&&Ui.log(`[Tracing] popActivity ${e}`),delete this.activities[e],$l&&Ui.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Bie();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=t$[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&($l&&Ui.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=t$[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){$l&&Ui.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function zWt(t,e,n){if(!rG(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(DF,Number(t.sampled)),t;let r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setAttribute(DF,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof e.tracesSampleRate<"u"?(r=e.tracesSampleRate,t.setAttribute(DF,Number(r))):(r=1,t.setAttribute(DF,r)),GWt(r)?r?(t.sampled=Math.random()<r,t.sampled?($l&&Ui.log(`[Tracing] starting ${t.op} transaction - ${i1(t).description}`),t):($l&&Ui.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):($l&&Ui.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):($l&&Ui.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function GWt(t){return Bfr(t)||!(typeof t=="number"||typeof t=="boolean")?($l&&Ui.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?($l&&Ui.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function Jpr(){const e=this.getScope().getSpan();return e?{"sentry-trace":pxe(e)}:{}}function Zpr(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},a=r.instrumenter||"sentry",o=t.instrumenter||"sentry";a!==o&&($l&&Ui.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${a}\` instrumenter.
The transaction will not be sampled. Please use the ${a} instrumentation to start transactions.`),t.sampled=!1);let s=new UWt(t,this);return s=zWt(s,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Omt(t,e,n,r,a,o,s,l=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let d=new Ypr(e,t,n,r,s,a,l);return d=zWt(d,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...o}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}function VWt(){const t=tG();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Zpr),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Jpr),jpr())}function Xpr(t,e,n){const r=s6();r&&r.setMeasurement(t,e,n)}function emr(t,e){const n={sent_at:new Date().toISOString()};e&&(n.dsn=Vfr(e));const r=t.map(tmr);return Epr(n,r)}function tmr(t){return[{type:"span"},t]}const Lu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Wo=$d;function nmr(){Wo.document?Wo.document.addEventListener("visibilitychange",()=>{const t=s6();if(Wo.document.hidden&&t){const e="cancelled",{op:n,status:r}=i1(t);Lu&&Ui.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):Lu&&Ui.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Die=(t,e,n)=>{let r,a;return o=>{e.value>=0&&(o||n)&&(a=e.value-(r||0),(a||r===void 0)&&(r=e.value,e.delta=a,t(e)))}},rmr=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,imr=()=>{const t=Wo.performance.timing,e=Wo.performance.navigation.type,n={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const r in t)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n},vxe=()=>Wo.__WEB_VITALS_POLYFILL__?Wo.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||imr()):Wo.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],RZe=()=>{const t=vxe();return t&&t.activationStart||0},$ie=(t,e)=>{const n=vxe();let r="navigate";return n&&(Wo.document&&Wo.document.prerendering||RZe()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:rmr(),navigationType:r}},iG=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(a=>{e(a.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Fie=(t,e)=>{const n=r=>{(r.type==="pagehide"||Wo.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Wo.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},amr=(t,e={})=>{const n=$ie("CLS",0);let r,a=0,o=[];const s=c=>{c.forEach(u=>{if(!u.hadRecentInput){const d=o[0],h=o[o.length-1];a&&o.length!==0&&u.startTime-h.startTime<1e3&&u.startTime-d.startTime<5e3?(a+=u.value,o.push(u)):(a=u.value,o=[u]),a>n.value&&(n.value=a,n.entries=o,r&&r())}})},l=iG("layout-shift",s);if(l){r=Die(t,n,e.reportAllChanges);const c=()=>{s(l.takeRecords()),r(!0)};return Fie(c),c}};let Dve=-1;const omr=()=>{Wo.document&&Wo.document.visibilityState&&(Dve=Wo.document.visibilityState==="hidden"&&!Wo.document.prerendering?0:1/0)},smr=()=>{Fie(({timeStamp:t})=>{Dve=t},!0)},MZe=()=>(Dve<0&&(omr(),smr()),{get firstHiddenTime(){return Dve}}),lmr=t=>{const e=MZe(),n=$ie("FID");let r;const a=l=>{l.startTime<e.firstHiddenTime&&(n.value=l.processingStart-l.startTime,n.entries.push(l),r(!0))},o=l=>{l.forEach(a)},s=iG("first-input",o);r=Die(t,n),s&&Fie(()=>{o(s.takeRecords()),s.disconnect()},!0)};let KWt=0,F3e=1/0,Wle=0;const cmr=t=>{t.forEach(e=>{e.interactionId&&(F3e=Math.min(F3e,e.interactionId),Wle=Math.max(Wle,e.interactionId),KWt=Wle?(Wle-F3e)/7+1:0)})};let Pje;const umr=()=>Pje?KWt:performance.interactionCount||0,dmr=()=>{"interactionCount"in performance||Pje||(Pje=iG("event",cmr,{type:"event",buffered:!0,durationThreshold:0}))},WWt=()=>umr(),Lmt=10,yR=[],j3e={},Bmt=t=>{const e=yR[yR.length-1],n=j3e[t.interactionId];if(n||yR.length<Lmt||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const r={id:t.interactionId,latency:t.duration,entries:[t]};j3e[r.id]=r,yR.push(r)}yR.sort((r,a)=>a.latency-r.latency),yR.splice(Lmt).forEach(r=>{delete j3e[r.id]})}},hmr=()=>{const t=Math.min(yR.length-1,Math.floor(WWt()/50));return yR[t]},fmr=(t,e)=>{e=e||{},dmr();const n=$ie("INP");let r;const a=s=>{s.forEach(c=>{c.interactionId&&Bmt(c),c.entryType==="first-input"&&!yR.some(d=>d.entries.some(h=>c.duration===h.duration&&c.startTime===h.startTime))&&Bmt(c)});const l=hmr();l&&l.latency!==n.value&&(n.value=l.latency,n.entries=l.entries,r())},o=iG("event",a,{durationThreshold:e.durationThreshold||40});r=Die(t,n,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Fie(()=>{a(o.takeRecords()),n.value<0&&WWt()>0&&(n.value=0,n.entries=[]),r(!0)}))},Dmt={},pmr=t=>{const e=MZe(),n=$ie("LCP");let r;const a=s=>{const l=s[s.length-1];if(l){const c=Math.max(l.startTime-RZe(),0);c<e.firstHiddenTime&&(n.value=c,n.entries=[l],r())}},o=iG("largest-contentful-paint",a);if(o){r=Die(t,n);const s=()=>{Dmt[n.id]||(a(o.takeRecords()),o.disconnect(),Dmt[n.id]=!0,r(!0))};return["keydown","click"].forEach(l=>{Wo.document&&addEventListener(l,s,{once:!0,capture:!0})}),Fie(s,!0),s}},Oje=t=>{Wo.document&&(Wo.document.prerendering?addEventListener("prerenderingchange",()=>Oje(t),!0):Wo.document.readyState!=="complete"?addEventListener("load",()=>Oje(t),!0):setTimeout(t,0))},mmr=(t,e)=>{e=e||{};const n=$ie("TTFB"),r=Die(t,n,e.reportAllChanges);Oje(()=>{const a=vxe();if(a){if(n.value=Math.max(a.responseStart-RZe(),0),n.value<0||n.value>performance.now())return;n.entries=[a],r(!0)}})},EX={},$ve={};let QWt,qWt,YWt,JWt,ZWt;function gmr(t,e=!1){return jie("cls",t,xmr,QWt,e)}function vmr(t,e=!1){return jie("lcp",t,Smr,YWt,e)}function Amr(t){return jie("ttfb",t,wmr,JWt)}function ymr(t){return jie("fid",t,Emr,qWt)}function bmr(t){return jie("inp",t,_mr,ZWt)}function Ate(t,e){return XWt(t,e),$ve[t]||(Tmr(t),$ve[t]=!0),eQt(t,e)}function aG(t,e){const n=EX[t];if(!(!n||!n.length))for(const r of n)try{r(e)}catch(a){Lu&&Ui.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${RWt(r)}
Error:`,a)}}function xmr(){return amr(t=>{aG("cls",{metric:t}),QWt=t},{reportAllChanges:!0})}function Emr(){return lmr(t=>{aG("fid",{metric:t}),qWt=t})}function Smr(){return pmr(t=>{aG("lcp",{metric:t}),YWt=t})}function wmr(){return mmr(t=>{aG("ttfb",{metric:t}),JWt=t})}function _mr(){return fmr(t=>{aG("inp",{metric:t}),ZWt=t})}function jie(t,e,n,r,a=!1){XWt(t,e);let o;return $ve[t]||(o=n(),$ve[t]=!0),r&&e({metric:r}),eQt(t,e,a?o:void 0)}function Tmr(t){const e={};t==="event"&&(e.durationThreshold=0),iG(t,n=>{aG(t,{entries:n})},e)}function XWt(t,e){EX[t]=EX[t]||[],EX[t].push(e)}function eQt(t,e,n){return()=>{n&&n();const r=EX[t];if(!r)return;const a=r.indexOf(e);a!==-1&&r.splice(a,1)}}function H3e(t){return typeof t=="number"&&isFinite(t)}function HH(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}const Cmr=2147483647;function up(t){return t/1e3}function NZe(){return Wo&&Wo.addEventListener&&Wo.performance}let $mt=0,ih={},uT,SX;function kmr(){const t=NZe();if(t&&Hx){t.mark&&Wo.performance.mark("sentry-tracing-init");const e=Omr(),n=Imr(),r=Pmr(),a=Lmr();return()=>{e(),n(),r(),a()}}return()=>{}}function Rmr(){Ate("longtask",({entries:t})=>{for(const e of t){const n=s6();if(!n)return;const r=up(Hx+e.startTime),a=up(e.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+a})}})}function Mmr(){Ate("event",({entries:t})=>{for(const e of t){const n=s6();if(!n)return;if(e.name==="click"){const r=up(Hx+e.startTime),a=up(e.duration),o={description:Lve(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+a},s=Ufr(e.target);s&&(o.attributes={"ui.component_name":s}),n.startChild(o)}}})}function Nmr(t,e){if(NZe()&&Hx){const r=Bmr(t,e);return()=>{r()}}return()=>{}}function Imr(){return gmr(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Lu&&Ui.log("[Measurements] Adding CLS"),ih.cls={value:t.value,unit:""},SX=e)},!0)}function Pmr(){return vmr(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Lu&&Ui.log("[Measurements] Adding LCP"),ih.lcp={value:t.value,unit:"millisecond"},uT=e)},!0)}function Omr(){return ymr(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=up(Hx),r=up(e.startTime);Lu&&Ui.log("[Measurements] Adding FID"),ih.fid={value:t.value,unit:"millisecond"},ih["mark.fid"]={value:n+r,unit:"second"}})}function Lmr(){return Amr(({metric:t})=>{t.entries[t.entries.length-1]&&(Lu&&Ui.log("[Measurements] Adding TTFB"),ih.ttfb={value:t.value,unit:"millisecond"})})}const Fmt={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Bmr(t,e){return bmr(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(S=>S.duration===n.value&&Fmt[S.name]!==void 0),a=Xz();if(!r||!a)return;const o=Fmt[r.name],s=a.getOptions(),l=up(Hx+r.startTime),c=up(n.value),u=r.interactionId!==void 0?t[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:h,activeTransaction:f,user:p,replayId:m}=u,g=p!==void 0?p.email||p.id||p.ip_address:void 0,v=f!==void 0?f.getProfileId():void 0,A=new gxe({startTimestamp:l,endTimestamp:l+c,op:`ui.interaction.${o}`,name:Lve(r.target),attributes:{release:s.release,environment:s.environment,transaction:d,...g!==void 0&&g!==""?{user:g}:{},...v!==void 0?{profile_id:v}:{},...m!==void 0?{replay_id:m}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=Vmr(h,s,e);if(y&&Math.random()<y){const S=A?emr([A],a.getDsn()):void 0,x=a&&a.getTransport();x&&S&&x.send(S).then(null,w=>{Lu&&Ui.error("Error while sending interaction:",w)});return}})}function Dmr(t){const e=NZe();if(!e||!Wo.performance.getEntries||!Hx)return;Lu&&Ui.log("[Tracing] Adding & adjusting spans using Performance API");const n=up(Hx),r=e.getEntries(),{op:a,start_timestamp:o}=i1(t);if(r.slice($mt).forEach(s=>{const l=up(s.startTime),c=up(s.duration);if(!(t.op==="navigation"&&o&&n+l<o))switch(s.entryType){case"navigation":{Fmr(t,s,n);break}case"mark":case"paint":case"measure":{$mr(t,s,l,c,n);const u=MZe(),d=s.startTime<u.firstHiddenTime;s.name==="first-paint"&&d&&(Lu&&Ui.log("[Measurements] Adding FP"),ih.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&d&&(Lu&&Ui.log("[Measurements] Adding FCP"),ih.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{Hmr(t,s,s.name,l,c,n);break}}}),$mt=Math.max(r.length-1,0),Umr(t),a==="pageload"){Gmr(ih),["fcp","fp","lcp"].forEach(l=>{if(!ih[l]||!o||n>=o)return;const c=ih[l].value,u=n+up(c),d=Math.abs((u-o)*1e3),h=d-c;Lu&&Ui.log(`[Measurements] Normalized ${l} from ${c} to ${d} (${h})`),ih[l].value=d});const s=ih["mark.fid"];s&&ih.fid&&(HH(t,{description:"first input delay",endTimestamp:s.value+up(ih.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete ih["mark.fid"]),"fcp"in ih||delete ih.cls,Object.keys(ih).forEach(l=>{Xpr(l,ih[l].value,ih[l].unit)}),zmr(t)}uT=void 0,SX=void 0,ih={}}function $mr(t,e,n,r,a){const o=a+n,s=o+r;return HH(t,{description:e.name,endTimestamp:s,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o}),o}function Fmr(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Qle(t,e,r,n)}),Qle(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Qle(t,e,"fetch",n,"cache","domainLookupStart"),Qle(t,e,"domainLookup",n,"DNS"),jmr(t,e,n)}function Qle(t,e,n,r,a,o){const s=o?e[o]:e[`${n}End`],l=e[`${n}Start`];!l||!s||HH(t,{op:"browser",origin:"auto.browser.browser.metrics",description:a||n,startTimestamp:r+up(l),endTimestamp:r+up(s)})}function jmr(t,e,n){e.responseEnd&&(HH(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+up(e.requestStart),endTimestamp:n+up(e.responseEnd)}),HH(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+up(e.responseStart),endTimestamp:n+up(e.responseEnd)}))}function Hmr(t,e,n,r,a,o){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const s=hxe(n),l={};U3e(l,e,"transferSize","http.response_transfer_size"),U3e(l,e,"encodedBodySize","http.response_content_length"),U3e(l,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(l["resource.render_blocking_status"]=e.renderBlockingStatus),s.protocol&&(l["url.scheme"]=s.protocol.split(":").pop()),s.host&&(l["server.address"]=s.host),l["url.same_origin"]=n.includes(Wo.location.origin);const c=o+r,u=c+a;HH(t,{description:n.replace(Wo.location.origin,""),endTimestamp:u,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:l})}function Umr(t){const e=Wo.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),H3e(n.rtt)&&(ih["connection.rtt"]={value:n.rtt,unit:"millisecond"})),H3e(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),H3e(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function zmr(t){uT&&(Lu&&Ui.log("[Measurements] Adding LCP Data"),uT.element&&t.setTag("lcp.element",Lve(uT.element)),uT.id&&t.setTag("lcp.id",uT.id),uT.url&&t.setTag("lcp.url",uT.url.trim().slice(0,200)),t.setTag("lcp.size",uT.size)),SX&&SX.sources&&(Lu&&Ui.log("[Measurements] Adding CLS Data"),SX.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,Lve(e.node))))}function U3e(t,e,n,r){const a=e[n];a!=null&&a<Cmr&&(t[r]=a)}function Gmr(t){const e=vxe();if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(Lu&&Ui.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Vmr(t,e,n){if(!rG(e))return!1;let r;return t!==void 0&&typeof e.tracesSampler=="function"?r=e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:Wo.location}):t!==void 0&&t.sampled!==void 0?r=t.sampled:typeof e.tracesSampleRate<"u"?r=e.tracesSampleRate:r=1,GWt(r)?r===!0?n:r===!1?0:r*n:(Lu&&Ui.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function Kmr(t,e,n,r,a="auto.http.browser"){if(!rG()||!t.fetchData)return;const o=e(t.fetchData.url);if(t.endTimestamp&&o){const p=t.fetchData.__span;if(!p)return;const m=r[p];m&&(qmr(m,t),delete r[p]);return}const s=eG(),l=Xz(),{method:c,url:u}=t.fetchData,d=Qmr(u),h=d?hxe(d).host:void 0,f=o?$Wt({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":d,"server.address":h,[$F]:a},op:"http.client"}):void 0;if(f&&(t.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(t.fetchData.url)&&l){const p=t.args[0];t.args[1]=t.args[1]||{};const m=t.args[1];m.headers=Wmr(p,l,s,m,f)}return f}function Wmr(t,e,n,r,a){const o=a||n.getSpan(),s=CZe(),{traceId:l,spanId:c,sampled:u,dsc:d}={...s.getPropagationContext(),...n.getPropagationContext()},h=o?pxe(o):SZe(l,c,u),f=IWt(d||(o?jH(o):TZe(l,e,n))),p=r.headers||(typeof Request<"u"&&xmt(t,Request)?t.headers:void 0);if(p)if(typeof Headers<"u"&&xmt(p,Headers)){const m=new Headers(p);return m.append("sentry-trace",h),f&&m.append(Rje,f),m}else if(Array.isArray(p)){const m=[...p,["sentry-trace",h]];return f&&m.push([Rje,f]),m}else{const m="baggage"in p?p.baggage:void 0,g=[];return Array.isArray(m)?g.push(...m):m&&g.push(m),f&&g.push(f),{...p,"sentry-trace":h,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":h,baggage:f}}function Qmr(t){try{return new URL(t).href}catch{return}}function qmr(t,e){if(e.response){kZe(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus("internal_error");t.end()}const Lje=["localhost",/^\/(?!\/)/],Bje={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Lje,tracePropagationTargets:Lje};function Ymr(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:a,shouldCreateSpanForRequest:o,enableHTTPTimings:s}={traceFetch:Bje.traceFetch,traceXHR:Bje.traceXHR,...t},l=typeof o=="function"?o:d=>!0,c=d=>egr(d,r||a),u={};e&&Jfr(d=>{const h=Kmr(d,l,c,u);if(h){const f=tQt(d.fetchData.url),p=f?hxe(f).host:void 0;h.setAttributes({"http.url":f,"server.address":p})}s&&h&&jmt(h)}),n&&lpr(d=>{const h=tgr(d,l,c,u);s&&h&&jmt(h)})}function Jmr(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function jmt(t){const{url:e}=i1(t).data||{};if(!e||typeof e!="string")return;const n=Ate("resource",({entries:r})=>{r.forEach(a=>{Jmr(a)&&a.name.endsWith(e)&&(Xmr(a).forEach(s=>t.setAttribute(...s)),setTimeout(n))})})}function Zmr(t){let e="unknown",n="unknown",r="";for(const a of t){if(a==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(a))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=a}return r===t&&(e=r),{name:e,version:n}}function P_(t=0){return((Hx||performance.timeOrigin)+t)/1e3}function Xmr(t){const{name:e,version:n}=Zmr(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),Hx?[...r,["http.request.redirect_start",P_(t.redirectStart)],["http.request.fetch_start",P_(t.fetchStart)],["http.request.domain_lookup_start",P_(t.domainLookupStart)],["http.request.domain_lookup_end",P_(t.domainLookupEnd)],["http.request.connect_start",P_(t.connectStart)],["http.request.secure_connection_start",P_(t.secureConnectionStart)],["http.request.connection_end",P_(t.connectEnd)],["http.request.request_start",P_(t.requestStart)],["http.request.response_start",P_(t.responseStart)],["http.request.response_end",P_(t.responseEnd)]]:r}function egr(t,e){return $fr(t,e||Lje)}function tgr(t,e,n,r){const a=t.xhr,o=a&&a[nZ];if(!rG()||!a||a.__sentry_own_request__||!o)return;const s=e(o.url);if(t.endTimestamp&&s){const p=a.__sentry_xhr_span_id__;if(!p)return;const m=r[p];m&&o.status_code!==void 0&&(kZe(m,o.status_code),m.end(),delete r[p]);return}const l=eG(),c=CZe(),u=tQt(o.url),d=u?hxe(u).host:void 0,h=s?$Wt({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":u,url:o.url,"server.address":d,[$F]:"auto.http.browser"},op:"http.client"}):void 0;h&&(a.__sentry_xhr_span_id__=h.spanContext().spanId,r[a.__sentry_xhr_span_id__]=h);const f=Xz();if(a.setRequestHeader&&n(o.url)&&f){const{traceId:p,spanId:m,sampled:g,dsc:v}={...c.getPropagationContext(),...l.getPropagationContext()},A=h?pxe(h):SZe(p,m,g),y=IWt(v||(h?jH(h):TZe(p,f,l)));ngr(a,A,y)}return h}function ngr(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(Rje,n)}catch{}}function tQt(t){try{return new URL(t,Wo.location.origin).href}catch{return}}function rgr(t,e=!0,n=!0){if(!Wo||!Wo.location){Lu&&Ui.warn("Could not initialize routing instrumentation due to invalid location");return}let r=Wo.location.href,a;e&&(a=t({name:Wo.location.pathname,startTimestamp:Hx?Hx/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&apr(({to:o,from:s})=>{if(s===void 0&&r&&r.indexOf(o)!==-1){r=void 0;return}s!==o&&(r=void 0,a&&(Lu&&Ui.log(`[Tracing] Finishing current transaction with op: ${a.op}`),a.end()),a=t({name:Wo.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const igr="BrowserTracing",agr={...Vpe,markBackgroundTransactions:!0,routingInstrumentation:rgr,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Bje},Hmt=10;let ogr=class{constructor(e){this.name=igr,this._hasSetTracePropagationTargets=!1,VWt(),Lu&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...agr,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=kmr(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Nmr(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Rmr(),this.options._experiments.enableInteractions&&Mmr(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,n){this._getCurrentHub=n;const a=n().getClient(),o=a&&a.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:l,startTransactionOnPageLoad:c,markBackgroundTransactions:u,traceFetch:d,traceXHR:h,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:m}=this.options,g=o&&o.tracePropagationTargets,v=g||this.options.tracePropagationTargets;Lu&&this._hasSetTracePropagationTargets&&g&&Ui.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(A=>{const y=this._createRouteTransaction(A);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(y,A,n),y},c,l),u&&nmr(),m.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Ymr({traceFetch:d,traceXHR:h,tracePropagationTargets:v,shouldCreateSpanForRequest:f,enableHTTPTimings:p})}_createRouteTransaction(e){if(!this._getCurrentHub){Lu&&Ui.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:a,finalTimeout:o,heartbeatInterval:s}=this.options,l=e.op==="pageload";let c;if(l){const p=l?Umt("sentry-trace"):"",m=l?Umt("baggage"):void 0,{traceId:g,dsc:v,parentSpanId:A,sampled:y}=xpr(p,m);c={traceId:g,parentSpanId:A,parentSampled:y,...e,metadata:{...e.metadata,dynamicSamplingContext:v},trimEnd:!0}}else c={trimEnd:!0,...e};const u=typeof r=="function"?r(c):c,d=u===void 0?{...c,sampled:!1}:u;d.metadata=d.name!==c.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,d.sampled===!1&&Lu&&Ui.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),Lu&&Ui.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:h}=Wo,f=Omt(n,d,a,o,!0,{location:h},s,l);return l&&Wo.document&&(Wo.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Wo.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(Wo.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(p=>{this._collectWebVitals(),Dmr(p)}),f}_registerInteractionListener(){let e;const n=()=>{const{idleTimeout:r,finalTimeout:a,heartbeatInterval:o}=this.options,s="ui.action.click",l=s6();if(l&&l.op&&["navigation","pageload"].includes(l.op)){Lu&&Ui.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub){Lu&&Ui.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Lu&&Ui.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const c=this._getCurrentHub(),{location:u}=Wo,d={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[Ij]:this._latestRoute.context?sgr(this._latestRoute.context):"url"}};e=Omt(c,d,r,a,!0,{location:u},o)};["click"].forEach(r=>{Wo.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const e=({entries:n})=>{const r=Xz(),a=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,o=a!==void 0?a.getReplayId():void 0,s=s6(),l=eG(),c=l!==void 0?l.getUser():void 0;n.forEach(u=>{if(lgr(u)){const d=u.interactionId;if(d===void 0)return;const h=this._interactionIdToRouteNameMapping[d],f=u.duration,p=u.startTime,m=Object.keys(this._interactionIdToRouteNameMapping),g=m.length>0?m.reduce((v,A)=>this._interactionIdToRouteNameMapping[v].duration<this._interactionIdToRouteNameMapping[A].duration?v:A):void 0;if(u.entryType==="first-input"&&m.map(A=>this._interactionIdToRouteNameMapping[A]).some(A=>A.duration===f&&A.startTime===p)||!d)return;if(h)h.duration=Math.max(h.duration,f);else if(m.length<Hmt||g===void 0||f>this._interactionIdToRouteNameMapping[g].duration){const v=this._latestRoute.name,A=this._latestRoute.context;v&&A&&(g&&Object.keys(this._interactionIdToRouteNameMapping).length>=Hmt&&delete this._interactionIdToRouteNameMapping[g],this._interactionIdToRouteNameMapping[d]={routeName:v,duration:f,parentContext:A,user:c,activeTransaction:s,replayId:o,startTime:p})}}})};Ate("event",e),Ate("first-input",e)}};function Umt(t){const e=Hfr(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function sgr(t){const e=t.attributes&&t.attributes[Ij],n=t.data&&t.data[Ij],r=t.metadata&&t.metadata.source;return e||n||r}function lgr(t){return"duration"in t}function cgr(){const t=tG();if(!t.__SENTRY__)return;const e={mongodb(){const r=$B(module,"./node/integrations/mongo");return new r.Mongo},mongoose(){const r=$B(module,"./node/integrations/mongo");return new r.Mongo},mysql(){const r=$B(module,"./node/integrations/mysql");return new r.Mysql},pg(){const r=$B(module,"./node/integrations/postgres");return new r.Postgres}},n=Object.keys(e).filter(r=>!!fpr(r)).map(r=>{try{return e[r]()}catch{return}}).filter(r=>r);n.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...n])}function ugr(){VWt(),hpr()&&cgr()}const dgr=ogr;(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&ugr();const hgr="modulepreload",fgr=function(t){return"/"+t},zmt={},hM=function(e,n,r){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=fgr(o),o in zmt)return;zmt[o]=!0;const s=o.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let d=a.length-1;d>=0;d--){const h=a[d];if(h.href===o&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":hgr,s||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),s)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};var nQt={},rQt={},iQt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(typeof window<"u"){var l;typeof window.gtag>"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(l=window).gtag.apply(l,o)}},n=e;t.default=n})(iQt);var aQt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var e=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(l){return l.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(c,u,d){return u>0&&u+c.length!==d.length&&c.search(e)>-1&&d.charAt(u-2)!==":"&&(d.charAt(u+c.length)!=="-"||d.charAt(u-1)==="-")&&d.charAt(u-1).search(/[^\s-]/)<0?c.toLowerCase():c.substr(1).search(/[A-Z]|\../)>-1?c:c.charAt(0).toUpperCase()+c.substr(1)})}function r(l){return typeof l=="string"&&l.indexOf("@")!==-1}var a="REDACTED (Potential Email Address)";function o(l){return r(l)?(console.warn("This arg looks like an email address, redacting."),a):l}function s(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=l||"";return c&&(d=n(l)),u&&(d=o(d)),d}})(aQt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var e=s(iQt),n=s(aQt),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],a=["title","location"],o=["page","hitType"];function s(b){return b&&b.__esModule?b:{default:b}}function l(b,T){if(b==null)return{};var M=c(b,T),D,B;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(b);for(B=0;B<j.length;B++)D=j[B],!(T.indexOf(D)>=0)&&Object.prototype.propertyIsEnumerable.call(b,D)&&(M[D]=b[D])}return M}function c(b,T){if(b==null)return{};var M={},D=Object.keys(b),B,j;for(j=0;j<D.length;j++)B=D[j],!(T.indexOf(B)>=0)&&(M[B]=b[B]);return M}function u(b){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},u(b)}function d(b){return p(b)||f(b)||y(b)||h()}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}function p(b){if(Array.isArray(b))return S(b)}function m(b,T){var M=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);T&&(D=D.filter(function(B){return Object.getOwnPropertyDescriptor(b,B).enumerable})),M.push.apply(M,D)}return M}function g(b){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?m(Object(M),!0).forEach(function(D){k(b,D,M[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(M)):m(Object(M)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(M,D))})}return b}function v(b,T){return w(b)||x(b,T)||y(b,T)||A()}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(b,T){if(b){if(typeof b=="string")return S(b,T);var M=Object.prototype.toString.call(b).slice(8,-1);if(M==="Object"&&b.constructor&&(M=b.constructor.name),M==="Map"||M==="Set")return Array.from(b);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return S(b,T)}}function S(b,T){(T==null||T>b.length)&&(T=b.length);for(var M=0,D=new Array(T);M<T;M++)D[M]=b[M];return D}function x(b,T){var M=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(M!=null){var D,B,j,H,U=[],$=!0,z=!1;try{if(j=(M=M.call(b)).next,T===0){if(Object(M)!==M)return;$=!1}else for(;!($=(D=j.call(M)).done)&&(U.push(D.value),U.length!==T);$=!0);}catch(Z){z=!0,B=Z}finally{try{if(!$&&M.return!=null&&(H=M.return(),Object(H)!==H))return}finally{if(z)throw B}}return U}}function w(b){if(Array.isArray(b))return b}function _(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}function C(b,T){for(var M=0;M<T.length;M++){var D=T[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,P(D.key),D)}}function R(b,T,M){return T&&C(b.prototype,T),M&&C(b,M),Object.defineProperty(b,"prototype",{writable:!1}),b}function k(b,T,M){return T=P(T),T in b?Object.defineProperty(b,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):b[T]=M,b}function P(b){var T=N(b,"string");return u(T)==="symbol"?T:String(T)}function N(b,T){if(u(b)!=="object"||b===null)return b;var M=b[Symbol.toPrimitive];if(M!==void 0){var D=M.call(b,T||"default");if(u(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(b)}var L=function(){function b(){var T=this;_(this,b),k(this,"reset",function(){T.isInitialized=!1,T._testMode=!1,T._currentMeasurementId,T._hasLoadedGA=!1,T._isQueuing=!1,T._queueGtag=[]}),k(this,"_gtag",function(){for(var M=arguments.length,D=new Array(M),B=0;B<M;B++)D[B]=arguments[B];T._testMode||T._isQueuing?T._queueGtag.push(D):e.default.apply(void 0,D)}),k(this,"_loadGA",function(M,D){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!T._hasLoadedGA){var j=document.createElement("script");j.async=!0,j.src="".concat(B,"?id=").concat(M),D&&j.setAttribute("nonce",D),document.body.appendChild(j),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},T._hasLoadedGA=!0}}),k(this,"_toGtagOptions",function(M){if(M){var D={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},B=Object.entries(M).reduce(function(j,H){var U=v(H,2),$=U[0],z=U[1];return D[$]?j[D[$]]=z:j[$]=z,j},{});return B}}),k(this,"initialize",function(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!M)throw new Error("Require GA_MEASUREMENT_ID");var B=typeof M=="string"?[{trackingId:M}]:M;T._currentMeasurementId=B[0].trackingId;var j=D.gaOptions,H=D.gtagOptions,U=D.nonce,$=D.testMode,z=$===void 0?!1:$,Z=D.gtagUrl;if(T._testMode=z,z||T._loadGA(T._currentMeasurementId,U,Z),T.isInitialized||(T._gtag("js",new Date),B.forEach(function(ee){var X=g(g(g({},T._toGtagOptions(g(g({},j),ee.gaOptions))),H),ee.gtagOptions);Object.keys(X).length?T._gtag("config",ee.trackingId,X):T._gtag("config",ee.trackingId)})),T.isInitialized=!0,!z){var K=d(T._queueGtag);for(T._queueGtag=[],T._isQueuing=!1;K.length;){var Q=K.shift();T._gtag.apply(T,d(Q)),Q[0]==="get"&&(T._isQueuing=!0)}}}),k(this,"set",function(M){if(!M){console.warn("`fieldsObject` is required in .set()");return}if(u(M)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(M).length===0&&console.warn("empty `fieldsObject` given to .set()"),T._gaCommand("set",M)}),k(this,"_gaCommandSendEvent",function(M,D,B,j,H){T._gtag("event",D,g(g({event_category:M,event_label:B,value:j},H&&{non_interaction:H.nonInteraction}),T._toGtagOptions(H)))}),k(this,"_gaCommandSendEventParameters",function(){for(var M=arguments.length,D=new Array(M),B=0;B<M;B++)D[B]=arguments[B];if(typeof D[0]=="string")T._gaCommandSendEvent.apply(T,d(D.slice(1)));else{var j=D[0],H=j.eventCategory,U=j.eventAction,$=j.eventLabel,z=j.eventValue;j.hitType;var Z=l(j,r);T._gaCommandSendEvent(H,U,$,z,Z)}}),k(this,"_gaCommandSendTiming",function(M,D,B,j){T._gtag("event","timing_complete",{name:D,value:B,event_category:M,event_label:j})}),k(this,"_gaCommandSendPageview",function(M,D){if(D&&Object.keys(D).length){var B=T._toGtagOptions(D),j=B.title,H=B.location,U=l(B,a);T._gtag("event","page_view",g(g(g(g({},M&&{page_path:M}),j&&{page_title:j}),H&&{page_location:H}),U))}else M?T._gtag("event","page_view",{page_path:M}):T._gtag("event","page_view")}),k(this,"_gaCommandSendPageviewParameters",function(){for(var M=arguments.length,D=new Array(M),B=0;B<M;B++)D[B]=arguments[B];if(typeof D[0]=="string")T._gaCommandSendPageview.apply(T,d(D.slice(1)));else{var j=D[0],H=j.page;j.hitType;var U=l(j,o);T._gaCommandSendPageview(H,U)}}),k(this,"_gaCommandSend",function(){for(var M=arguments.length,D=new Array(M),B=0;B<M;B++)D[B]=arguments[B];var j=typeof D[0]=="string"?D[0]:D[0].hitType;switch(j){case"event":T._gaCommandSendEventParameters.apply(T,D);break;case"pageview":T._gaCommandSendPageviewParameters.apply(T,D);break;case"timing":T._gaCommandSendTiming.apply(T,d(D.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(j));break;default:console.warn("Send command doesn't exist: ".concat(j))}}),k(this,"_gaCommandSet",function(){for(var M=arguments.length,D=new Array(M),B=0;B<M;B++)D[B]=arguments[B];typeof D[0]=="string"&&(D[0]=k({},D[0],D[1])),T._gtag("set",T._toGtagOptions(D[0]))}),k(this,"_gaCommand",function(M){for(var D=arguments.length,B=new Array(D>1?D-1:0),j=1;j<D;j++)B[j-1]=arguments[j];switch(M){case"send":T._gaCommandSend.apply(T,B);break;case"set":T._gaCommandSet.apply(T,B);break;default:console.warn("Command doesn't exist: ".concat(M))}}),k(this,"ga",function(){for(var M=arguments.length,D=new Array(M),B=0;B<M;B++)D[B]=arguments[B];if(typeof D[0]=="string")T._gaCommand.apply(T,D);else{var j=D[0];T._gtag("get",T._currentMeasurementId,"client_id",function(H){T._isQueuing=!1;var U=T._queueGtag;for(j({get:function(Z){return Z==="clientId"?H:Z==="trackingId"?T._currentMeasurementId:Z==="apiVersion"?"1":void 0}});U.length;){var $=U.shift();T._gtag.apply(T,d($))}}),T._isQueuing=!0}return T.ga}),k(this,"event",function(M,D){if(typeof M=="string")T._gtag("event",M,T._toGtagOptions(D));else{var B=M.action,j=M.category,H=M.label,U=M.value,$=M.nonInteraction,z=M.transport;if(!j||!B){console.warn("args.category AND args.action are required in event()");return}var Z={hitType:"event",eventCategory:(0,n.default)(j),eventAction:(0,n.default)(B)};H&&(Z.eventLabel=(0,n.default)(H)),typeof U<"u"&&(typeof U!="number"?console.warn("Expected `args.value` arg to be a Number."):Z.eventValue=U),typeof $<"u"&&(typeof $!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):Z.nonInteraction=$),typeof z<"u"&&(typeof z!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(z)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),Z.transport=z)),T._gaCommand("send",Z)}}),k(this,"send",function(M){T._gaCommand("send",M)}),this.reset()}return R(b,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),b}();t.GA4=L;var I=new L;t.default=I})(rQt);(function(t){function e(l){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(l)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactGAImplementation=void 0;var n=a(rQt);function r(l){if(typeof WeakMap!="function")return null;var c=new WeakMap,u=new WeakMap;return(r=function(h){return h?u:c})(l)}function a(l,c){if(!c&&l&&l.__esModule)return l;if(l===null||e(l)!=="object"&&typeof l!="function")return{default:l};var u=r(c);if(u&&u.has(l))return u.get(l);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in l)if(f!=="default"&&Object.prototype.hasOwnProperty.call(l,f)){var p=h?Object.getOwnPropertyDescriptor(l,f):null;p&&(p.get||p.set)?Object.defineProperty(d,f,p):d[f]=l[f]}return d.default=l,u&&u.set(l,d),d}var o=n.GA4;t.ReactGAImplementation=o;var s=n.default;t.default=s})(nQt);const IZe=Li(nQt);function Fve(t,e){return Fve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fve(t,e)}function Ev(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Fve(t,e)}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ce.apply(null,arguments)}function qle(t){return t.charAt(0)==="/"}function z3e(t,e){for(var n=e,r=n+1,a=t.length;r<a;n+=1,r+=1)t[n]=t[r];t.pop()}function pgr(t,e){e===void 0&&(e="");var n=t&&t.split("/")||[],r=e&&e.split("/")||[],a=t&&qle(t),o=e&&qle(e),s=a||o;if(t&&qle(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var l;if(r.length){var c=r[r.length-1];l=c==="."||c===".."||c===""}else l=!1;for(var u=0,d=r.length;d>=0;d--){var h=r[d];h==="."?z3e(r,d):h===".."?(z3e(r,d),u++):u&&(z3e(r,d),u--)}if(!s)for(;u--;u)r.unshift("..");s&&r[0]!==""&&(!r[0]||!qle(r[0]))&&r.unshift("");var f=r.join("/");return l&&f.substr(-1)!=="/"&&(f+="/"),f}function Gmt(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}function Kpe(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(a,o){return Kpe(a,e[o])});if(typeof t=="object"||typeof e=="object"){var n=Gmt(t),r=Gmt(e);return n!==t||r!==e?Kpe(n,r):Object.keys(Object.assign({},t,e)).every(function(a){return Kpe(t[a],e[a])})}return!1}var mgr=!0,G3e="Invariant failed";function YP(t,e){if(!t){if(mgr)throw new Error(G3e);var n=typeof e=="function"?e():e,r=n?"".concat(G3e,": ").concat(n):G3e;throw new Error(r)}}function wX(t){return t.charAt(0)==="/"?t:"/"+t}function Vmt(t){return t.charAt(0)==="/"?t.substr(1):t}function ggr(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function oQt(t,e){return ggr(t,e)?t.substr(e.length):t}function sQt(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function vgr(t){var e=t||"/",n="",r="",a=e.indexOf("#");a!==-1&&(r=e.substr(a),e=e.substr(0,a));var o=e.indexOf("?");return o!==-1&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:n==="?"?"":n,hash:r==="#"?"":r}}function jA(t){var e=t.pathname,n=t.search,r=t.hash,a=e||"/";return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function P0(t,e,n,r){var a;typeof t=="string"?(a=vgr(t),a.state=e):(a=Ce({},t),a.pathname===void 0&&(a.pathname=""),a.search?a.search.charAt(0)!=="?"&&(a.search="?"+a.search):a.search="",a.hash?a.hash.charAt(0)!=="#"&&(a.hash="#"+a.hash):a.hash="",e!==void 0&&a.state===void 0&&(a.state=e));try{a.pathname=decodeURI(a.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(a.key=n),r?a.pathname?a.pathname.charAt(0)!=="/"&&(a.pathname=pgr(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a}function Agr(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Kpe(t.state,e.state)}function PZe(){var t=null;function e(s){return t=s,function(){t===s&&(t=null)}}function n(s,l,c,u){if(t!=null){var d=typeof t=="function"?t(s,l):t;typeof d=="string"?typeof c=="function"?c(d,u):u(!0):u(d!==!1)}else u(!0)}var r=[];function a(s){var l=!0;function c(){l&&s.apply(void 0,arguments)}return r.push(c),function(){l=!1,r=r.filter(function(u){return u!==c})}}function o(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];r.forEach(function(u){return u.apply(void 0,l)})}return{setPrompt:e,confirmTransitionTo:n,appendListener:a,notifyListeners:o}}var lQt=!!(typeof window<"u"&&window.document&&window.document.createElement);function cQt(t,e){e(window.confirm(t))}function ygr(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function bgr(){return window.navigator.userAgent.indexOf("Trident")===-1}function xgr(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Egr(t){return t.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var Kmt="popstate",Wmt="hashchange";function Qmt(){try{return window.history.state||{}}catch{return{}}}function Sgr(t){t===void 0&&(t={}),lQt||YP(!1);var e=window.history,n=ygr(),r=!bgr(),a=t,o=a.forceRefresh,s=o===void 0?!1:o,l=a.getUserConfirmation,c=l===void 0?cQt:l,u=a.keyLength,d=u===void 0?6:u,h=t.basename?sQt(wX(t.basename)):"";function f(j){var H=j||{},U=H.key,$=H.state,z=window.location,Z=z.pathname,K=z.search,Q=z.hash,ee=Z+K+Q;return h&&(ee=oQt(ee,h)),P0(ee,$,U)}function p(){return Math.random().toString(36).substr(2,d)}var m=PZe();function g(j){Ce(B,j),B.length=e.length,m.notifyListeners(B.location,B.action)}function v(j){Egr(j)||S(f(j.state))}function A(){S(f(Qmt()))}var y=!1;function S(j){if(y)y=!1,g();else{var H="POP";m.confirmTransitionTo(j,H,c,function(U){U?g({action:H,location:j}):x(j)})}}function x(j){var H=B.location,U=_.indexOf(H.key);U===-1&&(U=0);var $=_.indexOf(j.key);$===-1&&($=0);var z=U-$;z&&(y=!0,P(z))}var w=f(Qmt()),_=[w.key];function C(j){return h+jA(j)}function R(j,H){var U="PUSH",$=P0(j,H,p(),B.location);m.confirmTransitionTo($,U,c,function(z){if(z){var Z=C($),K=$.key,Q=$.state;if(n)if(e.pushState({key:K,state:Q},null,Z),s)window.location.href=Z;else{var ee=_.indexOf(B.location.key),X=_.slice(0,ee+1);X.push($.key),_=X,g({action:U,location:$})}else window.location.href=Z}})}function k(j,H){var U="REPLACE",$=P0(j,H,p(),B.location);m.confirmTransitionTo($,U,c,function(z){if(z){var Z=C($),K=$.key,Q=$.state;if(n)if(e.replaceState({key:K,state:Q},null,Z),s)window.location.replace(Z);else{var ee=_.indexOf(B.location.key);ee!==-1&&(_[ee]=$.key),g({action:U,location:$})}else window.location.replace(Z)}})}function P(j){e.go(j)}function N(){P(-1)}function L(){P(1)}var I=0;function b(j){I+=j,I===1&&j===1?(window.addEventListener(Kmt,v),r&&window.addEventListener(Wmt,A)):I===0&&(window.removeEventListener(Kmt,v),r&&window.removeEventListener(Wmt,A))}var T=!1;function M(j){j===void 0&&(j=!1);var H=m.setPrompt(j);return T||(b(1),T=!0),function(){return T&&(T=!1,b(-1)),H()}}function D(j){var H=m.appendListener(j);return b(1),function(){b(-1),H()}}var B={length:e.length,action:"POP",location:w,createHref:C,push:R,replace:k,go:P,goBack:N,goForward:L,block:M,listen:D};return B}var qmt="hashchange",wgr={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+Vmt(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:Vmt,decodePath:wX},slash:{encodePath:wX,decodePath:wX}};function uQt(t){var e=t.indexOf("#");return e===-1?t:t.slice(0,e)}function dQ(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)}function _gr(t){window.location.hash=t}function V3e(t){window.location.replace(uQt(window.location.href)+"#"+t)}function Tgr(t){t===void 0&&(t={}),lQt||YP(!1);var e=window.history;xgr();var n=t,r=n.getUserConfirmation,a=r===void 0?cQt:r,o=n.hashType,s=o===void 0?"slash":o,l=t.basename?sQt(wX(t.basename)):"",c=wgr[s],u=c.encodePath,d=c.decodePath;function h(){var H=d(dQ());return l&&(H=oQt(H,l)),P0(H)}var f=PZe();function p(H){Ce(j,H),j.length=e.length,f.notifyListeners(j.location,j.action)}var m=!1,g=null;function v(H,U){return H.pathname===U.pathname&&H.search===U.search&&H.hash===U.hash}function A(){var H=dQ(),U=u(H);if(H!==U)V3e(U);else{var $=h(),z=j.location;if(!m&&v(z,$)||g===jA($))return;g=null,y($)}}function y(H){if(m)m=!1,p();else{var U="POP";f.confirmTransitionTo(H,U,a,function($){$?p({action:U,location:H}):S(H)})}}function S(H){var U=j.location,$=C.lastIndexOf(jA(U));$===-1&&($=0);var z=C.lastIndexOf(jA(H));z===-1&&(z=0);var Z=$-z;Z&&(m=!0,N(Z))}var x=dQ(),w=u(x);x!==w&&V3e(w);var _=h(),C=[jA(_)];function R(H){var U=document.querySelector("base"),$="";return U&&U.getAttribute("href")&&($=uQt(window.location.href)),$+"#"+u(l+jA(H))}function k(H,U){var $="PUSH",z=P0(H,void 0,void 0,j.location);f.confirmTransitionTo(z,$,a,function(Z){if(Z){var K=jA(z),Q=u(l+K),ee=dQ()!==Q;if(ee){g=K,_gr(Q);var X=C.lastIndexOf(jA(j.location)),te=C.slice(0,X+1);te.push(K),C=te,p({action:$,location:z})}else p()}})}function P(H,U){var $="REPLACE",z=P0(H,void 0,void 0,j.location);f.confirmTransitionTo(z,$,a,function(Z){if(Z){var K=jA(z),Q=u(l+K),ee=dQ()!==Q;ee&&(g=K,V3e(Q));var X=C.indexOf(jA(j.location));X!==-1&&(C[X]=K),p({action:$,location:z})}})}function N(H){e.go(H)}function L(){N(-1)}function I(){N(1)}var b=0;function T(H){b+=H,b===1&&H===1?window.addEventListener(qmt,A):b===0&&window.removeEventListener(qmt,A)}var M=!1;function D(H){H===void 0&&(H=!1);var U=f.setPrompt(H);return M||(T(1),M=!0),function(){return M&&(M=!1,T(-1)),U()}}function B(H){var U=f.appendListener(H);return T(1),function(){T(-1),U()}}var j={length:e.length,action:"POP",location:_,createHref:R,push:k,replace:P,go:N,goBack:L,goForward:I,block:D,listen:B};return j}function Ymt(t,e,n){return Math.min(Math.max(t,e),n)}function Cgr(t){t===void 0&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,a=r===void 0?["/"]:r,o=e.initialIndex,s=o===void 0?0:o,l=e.keyLength,c=l===void 0?6:l,u=PZe();function d(R){Ce(C,R),C.length=C.entries.length,u.notifyListeners(C.location,C.action)}function h(){return Math.random().toString(36).substr(2,c)}var f=Ymt(s,0,a.length-1),p=a.map(function(R){return typeof R=="string"?P0(R,void 0,h()):P0(R,void 0,R.key||h())}),m=jA;function g(R,k){var P="PUSH",N=P0(R,k,h(),C.location);u.confirmTransitionTo(N,P,n,function(L){if(L){var I=C.index,b=I+1,T=C.entries.slice(0);T.length>b?T.splice(b,T.length-b,N):T.push(N),d({action:P,location:N,index:b,entries:T})}})}function v(R,k){var P="REPLACE",N=P0(R,k,h(),C.location);u.confirmTransitionTo(N,P,n,function(L){L&&(C.entries[C.index]=N,d({action:P,location:N}))})}function A(R){var k=Ymt(C.index+R,0,C.entries.length-1),P="POP",N=C.entries[k];u.confirmTransitionTo(N,P,n,function(L){L?d({action:P,location:N,index:k}):d()})}function y(){A(-1)}function S(){A(1)}function x(R){var k=C.index+R;return k>=0&&k<C.entries.length}function w(R){return R===void 0&&(R=!1),u.setPrompt(R)}function _(R){return u.appendListener(R)}var C={length:p.length,action:"POP",location:p[f],index:f,entries:p,createHref:m,push:g,replace:v,go:A,goBack:y,goForward:S,canGo:x,block:w,listen:_};return C}var oG={exports:{}},kgr=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},jve=kgr;oG.exports=fQt;oG.exports.parse=OZe;oG.exports.compile=Mgr;oG.exports.tokensToFunction=dQt;oG.exports.tokensToRegExp=hQt;var Rgr=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function OZe(t,e){for(var n=[],r=0,a=0,o="",s=e&&e.delimiter||"/",l;(l=Rgr.exec(t))!=null;){var c=l[0],u=l[1],d=l.index;if(o+=t.slice(a,d),a=d+c.length,u){o+=u[1];continue}var h=t[a],f=l[2],p=l[3],m=l[4],g=l[5],v=l[6],A=l[7];o&&(n.push(o),o="");var y=f!=null&&h!=null&&h!==f,S=v==="+"||v==="*",x=v==="?"||v==="*",w=l[2]||s,_=m||g;n.push({name:p||r++,prefix:f||"",delimiter:w,optional:x,repeat:S,partial:y,asterisk:!!A,pattern:_?Pgr(_):A?".*":"[^"+Wpe(w)+"]+?"})}return a<t.length&&(o+=t.substr(a)),o&&n.push(o),n}function Mgr(t,e){return dQt(OZe(t,e),e)}function Ngr(t){return encodeURI(t).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Igr(t){return encodeURI(t).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function dQt(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)typeof t[r]=="object"&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",BZe(e)));return function(a,o){for(var s="",l=a||{},c=o||{},u=c.pretty?Ngr:encodeURIComponent,d=0;d<t.length;d++){var h=t[d];if(typeof h=="string"){s+=h;continue}var f=l[h.name],p;if(f==null)if(h.optional){h.partial&&(s+=h.prefix);continue}else throw new TypeError('Expected "'+h.name+'" to be defined');if(jve(f)){if(!h.repeat)throw new TypeError('Expected "'+h.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(h.optional)continue;throw new TypeError('Expected "'+h.name+'" to not be empty')}for(var m=0;m<f.length;m++){if(p=u(f[m]),!n[d].test(p))throw new TypeError('Expected all "'+h.name+'" to match "'+h.pattern+'", but received `'+JSON.stringify(p)+"`");s+=(m===0?h.prefix:h.delimiter)+p}continue}if(p=h.asterisk?Igr(f):u(f),!n[d].test(p))throw new TypeError('Expected "'+h.name+'" to match "'+h.pattern+'", but received "'+p+'"');s+=h.prefix+p}return s}}function Wpe(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Pgr(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function LZe(t,e){return t.keys=e,t}function BZe(t){return t&&t.sensitive?"":"i"}function Ogr(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return LZe(t,e)}function Lgr(t,e,n){for(var r=[],a=0;a<t.length;a++)r.push(fQt(t[a],e,n).source);var o=new RegExp("(?:"+r.join("|")+")",BZe(n));return LZe(o,e)}function Bgr(t,e,n){return hQt(OZe(t,n),e,n)}function hQt(t,e,n){jve(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,a=n.end!==!1,o="",s=0;s<t.length;s++){var l=t[s];if(typeof l=="string")o+=Wpe(l);else{var c=Wpe(l.prefix),u="(?:"+l.pattern+")";e.push(l),l.repeat&&(u+="(?:"+c+u+")*"),l.optional?l.partial?u=c+"("+u+")?":u="(?:"+c+"("+u+"))?":u=c+"("+u+")",o+=u}}var d=Wpe(n.delimiter||"/"),h=o.slice(-d.length)===d;return r||(o=(h?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),a?o+="$":o+=r&&h?"":"(?="+d+"|$)",LZe(new RegExp("^"+o,BZe(n)),e)}function fQt(t,e,n){return jve(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?Ogr(t,e):jve(t)?Lgr(t,e,n):Bgr(t,e,n)}var Dgr=oG.exports;const pQt=Li(Dgr);function Wn(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var K3e=1073741823,Jmt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Wa<"u"?Wa:{};function $gr(){var t="__global_unique_id__";return Jmt[t]=(Jmt[t]||0)+1}function Fgr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function jgr(t){var e=[];return{on:function(r){e.push(r)},off:function(r){e=e.filter(function(a){return a!==r})},get:function(){return t},set:function(r,a){t=r,e.forEach(function(o){return o(t,a)})}}}function Hgr(t){return Array.isArray(t)?t[0]:t}function Ugr(t,e){var n,r,a="__create-react-context-"+$gr()+"__",o=function(l){Ev(c,l);function c(){for(var d,h=arguments.length,f=new Array(h),p=0;p<h;p++)f[p]=arguments[p];return d=l.call.apply(l,[this].concat(f))||this,d.emitter=jgr(d.props.value),d}var u=c.prototype;return u.getChildContext=function(){var h;return h={},h[a]=this.emitter,h},u.componentWillReceiveProps=function(h){if(this.props.value!==h.value){var f=this.props.value,p=h.value,m;Fgr(f,p)?m=0:(m=typeof e=="function"?e(f,p):K3e,m|=0,m!==0&&this.emitter.set(h.value,m))}},u.render=function(){return this.props.children},c}(ke.Component);o.childContextTypes=(n={},n[a]=kt.object.isRequired,n);var s=function(l){Ev(c,l);function c(){for(var d,h=arguments.length,f=new Array(h),p=0;p<h;p++)f[p]=arguments[p];return d=l.call.apply(l,[this].concat(f))||this,d.observedBits=void 0,d.state={value:d.getValue()},d.onUpdate=function(m,g){var v=d.observedBits|0;v&g&&d.setState({value:d.getValue()})},d}var u=c.prototype;return u.componentWillReceiveProps=function(h){var f=h.observedBits;this.observedBits=f??K3e},u.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var h=this.props.observedBits;this.observedBits=h??K3e},u.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},u.getValue=function(){return this.context[a]?this.context[a].get():t},u.render=function(){return Hgr(this.props.children)(this.state.value)},c}(ke.Component);return s.contextTypes=(r={},r[a]=kt.object,r),{Provider:o,Consumer:s}}var zgr=ke.createContext||Ugr,mQt=function(e){var n=zgr();return n.displayName=e,n},gQt=mQt("Router-History"),fM=mQt("Router"),Axe=function(t){Ev(e,t),e.computeRootMatch=function(a){return{path:"/",url:"/",params:{},isExact:a==="/"}};function e(r){var a;return a=t.call(this,r)||this,a.state={location:r.history.location},a._isMounted=!1,a._pendingLocation=null,r.staticContext||(a.unlisten=r.history.listen(function(o){a._pendingLocation=o})),a}var n=e.prototype;return n.componentDidMount=function(){var a=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(o){a._isMounted&&a.setState({location:o})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return ke.createElement(fM.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},ke.createElement(gQt.Provider,{children:this.props.children||null,value:this.props.history}))},e}(ke.Component);ke.Component;var Ggr=function(t){Ev(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(a){this.props.onUpdate&&this.props.onUpdate.call(this,this,a)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(ke.Component),W3e={},Vgr=1e4,Zmt=0;function Kgr(t){if(W3e[t])return W3e[t];var e=pQt.compile(t);return Zmt<Vgr&&(W3e[t]=e,Zmt++),e}function Xmt(t,e){return t===void 0&&(t="/"),e===void 0&&(e={}),t==="/"?t:Kgr(t)(e,{pretty:!0})}function vQt(t){var e=t.computedMatch,n=t.to,r=t.push,a=r===void 0?!1:r;return ke.createElement(fM.Consumer,null,function(o){o||YP(!1);var s=o.history,l=o.staticContext,c=a?s.push:s.replace,u=P0(e?typeof n=="string"?Xmt(n,e.params):Ce({},n,{pathname:Xmt(n.pathname,e.params)}):n);return l?(c(u),null):ke.createElement(Ggr,{onMount:function(){c(u)},onUpdate:function(h,f){var p=P0(f.to);Agr(p,Ce({},u,{key:p.key}))||c(u)},to:n})})}var egt={},Wgr=1e4,tgt=0;function Qgr(t,e){var n=""+e.end+e.strict+e.sensitive,r=egt[n]||(egt[n]={});if(r[t])return r[t];var a=[],o=pQt(t,a,e),s={regexp:o,keys:a};return tgt<Wgr&&(r[t]=s,tgt++),s}function JP(t,e){e===void 0&&(e={}),(typeof e=="string"||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,a=n.exact,o=a===void 0?!1:a,s=n.strict,l=s===void 0?!1:s,c=n.sensitive,u=c===void 0?!1:c,d=[].concat(r);return d.reduce(function(h,f){if(!f&&f!=="")return null;if(h)return h;var p=Qgr(f,{end:o,strict:l,sensitive:u}),m=p.regexp,g=p.keys,v=m.exec(t);if(!v)return null;var A=v[0],y=v.slice(1),S=t===A;return o&&!S?null:{path:f,url:f==="/"&&A===""?"/":A,isExact:S,params:g.reduce(function(x,w,_){return x[w.name]=y[_],x},{})}},null)}function qgr(t){return ke.Children.count(t)===0}var NA=function(t){Ev(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var a=this;return ke.createElement(fM.Consumer,null,function(o){o||YP(!1);var s=a.props.location||o.location,l=a.props.computedMatch?a.props.computedMatch:a.props.path?JP(s.pathname,a.props):o.match,c=Ce({},o,{location:s,match:l}),u=a.props,d=u.children,h=u.component,f=u.render;return Array.isArray(d)&&qgr(d)&&(d=null),ke.createElement(fM.Provider,{value:c},c.match?d?typeof d=="function"?d(c):d:h?ke.createElement(h,c):f?f(c):null:typeof d=="function"?d(c):null)})},e}(ke.Component);function DZe(t){return t.charAt(0)==="/"?t:"/"+t}function Ygr(t,e){return t?Ce({},e,{pathname:DZe(t)+e.pathname}):e}function Jgr(t,e){if(!t)return e;var n=DZe(t);return e.pathname.indexOf(n)!==0?e:Ce({},e,{pathname:e.pathname.substr(n.length)})}function ngt(t){return typeof t=="string"?t:jA(t)}function Q3e(t){return function(){YP(!1)}}function rgt(){}ke.Component;var Zgr=function(t){Ev(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var a=this;return ke.createElement(fM.Consumer,null,function(o){o||YP(!1);var s=a.props.location||o.location,l,c;return ke.Children.forEach(a.props.children,function(u){if(c==null&&ke.isValidElement(u)){l=u;var d=u.props.path||u.props.from;c=d?JP(s.pathname,Ce({},u.props,{path:d})):o.match}}),c?ke.cloneElement(l,{location:s,computedMatch:c}):null})},e}(ke.Component),$Ze=ke.useContext;function xo(){return $Ze(gQt)}function Zh(){return $Ze(fM).location}function QM(){var t=$Ze(fM).match;return t?t.params:{}}var Xgr=function(t){Ev(e,t);function e(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.history=Sgr(r.props),r}var n=e.prototype;return n.render=function(){return ke.createElement(Axe,{history:this.history,children:this.props.children})},e}(ke.Component);ke.Component;var Dje=function(e,n){return typeof e=="function"?e(n):e},$je=function(e,n){return typeof e=="string"?P0(e,null,null,n):e},FZe=function(e){return e},UH=ke.forwardRef;typeof UH>"u"&&(UH=FZe);function evr(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var tvr=UH(function(t,e){var n=t.innerRef,r=t.navigate,a=t.onClick,o=Wn(t,["innerRef","navigate","onClick"]),s=o.target,l=Ce({},o,{onClick:function(u){try{a&&a(u)}catch(d){throw u.preventDefault(),d}!u.defaultPrevented&&u.button===0&&(!s||s==="_self")&&!evr(u)&&(u.preventDefault(),r())}});return FZe!==UH?l.ref=e||n:l.ref=n,ke.createElement("a",l)}),d1=UH(function(t,e){var n=t.component,r=n===void 0?tvr:n,a=t.replace,o=t.to,s=t.innerRef,l=Wn(t,["component","replace","to","innerRef"]);return ke.createElement(fM.Consumer,null,function(c){c||YP(!1);var u=c.history,d=$je(Dje(o,c.location),c.location),h=d?u.createHref(d):"",f=Ce({},l,{href:h,navigate:function(){var m=Dje(o,c.location),g=jA(c.location)===jA($je(m)),v=a||g?u.replace:u.push;v(m)}});return FZe!==UH?f.ref=e||s:f.innerRef=s,ke.createElement(r,f)})}),AQt=function(e){return e},Hve=ke.forwardRef;typeof Hve>"u"&&(Hve=AQt);function nvr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(r){return r}).join(" ")}Hve(function(t,e){var n=t["aria-current"],r=n===void 0?"page":n,a=t.activeClassName,o=a===void 0?"active":a,s=t.activeStyle,l=t.className,c=t.exact,u=t.isActive,d=t.location,h=t.sensitive,f=t.strict,p=t.style,m=t.to,g=t.innerRef,v=Wn(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return ke.createElement(fM.Consumer,null,function(A){A||YP(!1);var y=d||A.location,S=$je(Dje(m,y),y),x=S.pathname,w=x&&x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=w?JP(y.pathname,{path:w,exact:c,sensitive:h,strict:f}):null,C=!!(u?u(_,y):_),R=typeof l=="function"?l(C):l,k=typeof p=="function"?p(C):p;C&&(R=nvr(R,o),k=Ce({},k,s));var P=Ce({"aria-current":C&&r||null,className:R,style:k,to:S},v);return AQt!==Hve?P.ref=e||g:P.innerRef=g,ke.createElement(d1,P)})});var Ym=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Wa<"u"&&Wa||{},p0={searchParams:"URLSearchParams"in Ym,iterable:"Symbol"in Ym&&"iterator"in Symbol,blob:"FileReader"in Ym&&"Blob"in Ym&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in Ym,arrayBuffer:"ArrayBuffer"in Ym};function rvr(t){return t&&DataView.prototype.isPrototypeOf(t)}if(p0.arrayBuffer)var ivr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],avr=ArrayBuffer.isView||function(t){return t&&ivr.indexOf(Object.prototype.toString.call(t))>-1};function sG(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function jZe(t){return typeof t!="string"&&(t=String(t)),t}function HZe(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return p0.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Df(t){this.map={},t instanceof Df?t.forEach(function(e,n){this.append(n,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}Df.prototype.append=function(t,e){t=sG(t),e=jZe(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};Df.prototype.delete=function(t){delete this.map[sG(t)]};Df.prototype.get=function(t){return t=sG(t),this.has(t)?this.map[t]:null};Df.prototype.has=function(t){return this.map.hasOwnProperty(sG(t))};Df.prototype.set=function(t,e){this.map[sG(t)]=jZe(e)};Df.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)};Df.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),HZe(t)};Df.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),HZe(t)};Df.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),HZe(t)};p0.iterable&&(Df.prototype[Symbol.iterator]=Df.prototype.entries);function q3e(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function yQt(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function ovr(t){var e=new FileReader,n=yQt(e);return e.readAsArrayBuffer(t),n}function svr(t){var e=new FileReader,n=yQt(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),a=r?r[1]:"utf-8";return e.readAsText(t,a),n}function lvr(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function igt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function bQt(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:p0.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:p0.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:p0.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():p0.arrayBuffer&&p0.blob&&rvr(t)?(this._bodyArrayBuffer=igt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p0.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||avr(t))?this._bodyArrayBuffer=igt(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p0.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p0.blob&&(this.blob=function(){var t=q3e(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=q3e(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(p0.blob)return this.blob().then(ovr);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=q3e(this);if(t)return t;if(this._bodyBlob)return svr(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(lvr(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p0.formData&&(this.formData=function(){return this.text().then(dvr)}),this.json=function(){return this.text().then(JSON.parse)},this}var cvr=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function uvr(t){var e=t.toUpperCase();return cvr.indexOf(e)>-1?e:t}function J5(t,e){if(!(this instanceof J5))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof J5){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Df(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Df(e.headers)),this.method=uvr(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in Ym){var o=new AbortController;return o.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var a=/\?/;this.url+=(a.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}J5.prototype.clone=function(){return new J5(this,{body:this._bodyInit})};function dvr(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var r=n.split("="),a=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(a),decodeURIComponent(o))}}),e}function hvr(t){var e=new Df,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
`)===0?r.substr(1,r.length):r}).forEach(function(r){var a=r.split(":"),o=a.shift().trim();if(o){var s=a.join(":").trim();try{e.append(o,s)}catch(l){console.warn("Response "+l.message)}}}),e}bQt.call(J5.prototype);function Tw(t,e){if(!(this instanceof Tw))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new Df(e.headers),this.url=e.url||"",this._initBody(t)}bQt.call(Tw.prototype);Tw.prototype.clone=function(){return new Tw(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Df(this.headers),url:this.url})};Tw.error=function(){var t=new Tw(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var fvr=[301,302,303,307,308];Tw.redirect=function(t,e){if(fvr.indexOf(e)===-1)throw new RangeError("Invalid status code");return new Tw(null,{status:e,headers:{location:t}})};var x3=Ym.DOMException;try{new x3}catch{x3=function(e,n){this.message=e,this.name=n;var r=Error(e);this.stack=r.stack},x3.prototype=Object.create(Error.prototype),x3.prototype.constructor=x3}function UZe(t,e){return new Promise(function(n,r){var a=new J5(t,e);if(a.signal&&a.signal.aborted)return r(new x3("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var u={statusText:o.statusText,headers:hvr(o.getAllResponseHeaders()||"")};a.url.indexOf("file://")===0&&(o.status<200||o.status>599)?u.status=200:u.status=o.status,u.url="responseURL"in o?o.responseURL:u.headers.get("X-Request-URL");var d="response"in o?o.response:o.responseText;setTimeout(function(){n(new Tw(d,u))},0)},o.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){r(new x3("Aborted","AbortError"))},0)};function l(u){try{return u===""&&Ym.location.href?Ym.location.href:u}catch{return u}}if(o.open(a.method,l(a.url),!0),a.credentials==="include"?o.withCredentials=!0:a.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(p0.blob?o.responseType="blob":p0.arrayBuffer&&(o.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof Df||Ym.Headers&&e.headers instanceof Ym.Headers)){var c=[];Object.getOwnPropertyNames(e.headers).forEach(function(u){c.push(sG(u)),o.setRequestHeader(u,jZe(e.headers[u]))}),a.headers.forEach(function(u,d){c.indexOf(d)===-1&&o.setRequestHeader(d,u)})}else a.headers.forEach(function(u,d){o.setRequestHeader(d,u)});a.signal&&(a.signal.addEventListener("abort",s),o.onreadystatechange=function(){o.readyState===4&&a.signal.removeEventListener("abort",s)}),o.send(typeof a._bodyInit>"u"?null:a._bodyInit)})}UZe.polyfill=!0;Ym.fetch||(Ym.fetch=UZe,Ym.Headers=Df,Ym.Request=J5,Ym.Response=Tw);const pvr=Object.freeze(Object.defineProperty({__proto__:null,get DOMException(){return x3},Headers:Df,Request:J5,Response:Tw,fetch:UZe},Symbol.toStringTag,{value:"Module"})),mvr=Uu(pvr);var gvr=function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={exports:{},id:r,loaded:!1};return t[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){var r=n(1),a=typeof importScripts=="function";t.exports=r(a?self:window)},function(t,e,n){function r(s){if(Array.isArray(s)){for(var l=0,c=Array(s.length);l<s.length;l++)c[l]=s[l];return c}else return Array.from(s)}var a=[];function o(s){for(var l=arguments.length,c=Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];var d=a.reduce(function(f,p){return[p].concat(f)},[]),h=Promise.resolve(c);return d.forEach(function(f){var p=f.request,m=f.requestError;(p||m)&&(h=h.then(function(g){return p.apply(void 0,r(g))},m))}),h=h.then(function(f){var p=new(Function.prototype.bind.apply(Request,[null].concat(r(f))));return s(p).then(function(m){return m.request=p,m}).catch(function(m){return m.request=p,Promise.reject(m)})}),d.forEach(function(f){var p=f.response,m=f.responseError;(p||m)&&(h=h.then(p,m))}),h}t.exports=function(l){if(!l.fetch)try{n(2)}catch{throw Error("No fetch available. Unable to register fetch-intercept")}return l.fetch=function(c){return function(){for(var u=arguments.length,d=Array(u),h=0;h<u;h++)d[h]=arguments[h];return o.apply(void 0,[c].concat(d))}}(l.fetch),{register:function(u){return a.push(u),function(){var d=a.indexOf(u);d>=0&&a.splice(d,1)}},clear:function(){a=[]}}}},function(t,e){t.exports=mvr}]);const vvr=Li(gvr);function pM(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n<arguments.length;n+=1)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}const Avr=Object.freeze(Object.defineProperty({__proto__:null,default:pM},Symbol.toStringTag,{value:"Module"})),l6="$$material";function xQt(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var yvr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fje=xQt(function(t){return yvr.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function bvr(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function xvr(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Evr=function(){function t(n){var r=this;this._insertTag=function(a){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,o),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(xvr(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=bvr(a);try{o.insertRule(r,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},t}(),Vg="-ms-",Uve="-moz-",ac="-webkit-",EQt="comm",zZe="rule",GZe="decl",Svr="@import",SQt="@keyframes",wvr="@layer",_vr=Math.abs,yxe=String.fromCharCode,Tvr=Object.assign;function Cvr(t,e){return Km(t,0)^45?(((e<<2^Km(t,0))<<2^Km(t,1))<<2^Km(t,2))<<2^Km(t,3):0}function wQt(t){return t.trim()}function kvr(t,e){return(t=e.exec(t))?t[0]:t}function oc(t,e,n){return t.replace(e,n)}function jje(t,e){return t.indexOf(e)}function Km(t,e){return t.charCodeAt(e)|0}function yte(t,e,n){return t.slice(e,n)}function _T(t){return t.length}function VZe(t){return t.length}function Yle(t,e){return e.push(t),t}function Rvr(t,e){return t.map(e).join("")}var bxe=1,zH=1,_Qt=0,a1=0,Nf=0,lG="";function xxe(t,e,n,r,a,o,s){return{value:t,root:e,parent:n,type:r,props:a,children:o,line:bxe,column:zH,length:s,return:""}}function hQ(t,e){return Tvr(xxe("",null,null,"",null,null,0),t,{length:-t.length},e)}function Mvr(){return Nf}function Nvr(){return Nf=a1>0?Km(lG,--a1):0,zH--,Nf===10&&(zH=1,bxe--),Nf}function Fy(){return Nf=a1<_Qt?Km(lG,a1++):0,zH++,Nf===10&&(zH=1,bxe++),Nf}function m2(){return Km(lG,a1)}function Qpe(){return a1}function Hie(t,e){return yte(lG,t,e)}function bte(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function TQt(t){return bxe=zH=1,_Qt=_T(lG=t),a1=0,[]}function CQt(t){return lG="",t}function qpe(t){return wQt(Hie(a1-1,Hje(t===91?t+2:t===40?t+1:t)))}function Ivr(t){for(;(Nf=m2())&&Nf<33;)Fy();return bte(t)>2||bte(Nf)>3?"":" "}function Pvr(t,e){for(;--e&&Fy()&&!(Nf<48||Nf>102||Nf>57&&Nf<65||Nf>70&&Nf<97););return Hie(t,Qpe()+(e<6&&m2()==32&&Fy()==32))}function Hje(t){for(;Fy();)switch(Nf){case t:return a1;case 34:case 39:t!==34&&t!==39&&Hje(Nf);break;case 40:t===41&&Hje(t);break;case 92:Fy();break}return a1}function Ovr(t,e){for(;Fy()&&t+Nf!==47+10;)if(t+Nf===42+42&&m2()===47)break;return"/*"+Hie(e,a1-1)+"*"+yxe(t===47?t:Fy())}function Lvr(t){for(;!bte(m2());)Fy();return Hie(t,a1)}function Bvr(t){return CQt(Ype("",null,null,null,[""],t=TQt(t),0,[0],t))}function Ype(t,e,n,r,a,o,s,l,c){for(var u=0,d=0,h=s,f=0,p=0,m=0,g=1,v=1,A=1,y=0,S="",x=a,w=o,_=r,C=S;v;)switch(m=y,y=Fy()){case 40:if(m!=108&&Km(C,h-1)==58){jje(C+=oc(qpe(y),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:C+=qpe(y);break;case 9:case 10:case 13:case 32:C+=Ivr(m);break;case 92:C+=Pvr(Qpe()-1,7);continue;case 47:switch(m2()){case 42:case 47:Yle(Dvr(Ovr(Fy(),Qpe()),e,n),c);break;default:C+="/"}break;case 123*g:l[u++]=_T(C)*A;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+d:A==-1&&(C=oc(C,/\f/g,"")),p>0&&_T(C)-h&&Yle(p>32?ogt(C+";",r,n,h-1):ogt(oc(C," ","")+";",r,n,h-2),c);break;case 59:C+=";";default:if(Yle(_=agt(C,e,n,u,d,a,l,S,x=[],w=[],h),o),y===123)if(d===0)Ype(C,e,_,_,x,o,h,l,w);else switch(f===99&&Km(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ype(t,_,_,r&&Yle(agt(t,_,_,0,0,a,l,S,a,x=[],h),w),a,w,h,l,r?x:w);break;default:Ype(C,_,_,_,[""],w,0,l,w)}}u=d=p=0,g=A=1,S=C="",h=s;break;case 58:h=1+_T(C),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&Nvr()==125)continue}switch(C+=yxe(y),y*g){case 38:A=d>0?1:(C+="\f",-1);break;case 44:l[u++]=(_T(C)-1)*A,A=1;break;case 64:m2()===45&&(C+=qpe(Fy())),f=m2(),d=h=_T(S=C+=Lvr(Qpe())),y++;break;case 45:m===45&&_T(C)==2&&(g=0)}}return o}function agt(t,e,n,r,a,o,s,l,c,u,d){for(var h=a-1,f=a===0?o:[""],p=VZe(f),m=0,g=0,v=0;m<r;++m)for(var A=0,y=yte(t,h+1,h=_vr(g=s[m])),S=t;A<p;++A)(S=wQt(g>0?f[A]+" "+y:oc(y,/&\f/g,f[A])))&&(c[v++]=S);return xxe(t,e,n,a===0?zZe:l,c,u,d)}function Dvr(t,e,n){return xxe(t,e,n,EQt,yxe(Mvr()),yte(t,2,-2),0)}function ogt(t,e,n,r){return xxe(t,e,n,GZe,yte(t,0,r),yte(t,r+1,-1),r)}function Pj(t,e){for(var n="",r=VZe(t),a=0;a<r;a++)n+=e(t[a],a,t,e)||"";return n}function $vr(t,e,n,r){switch(t.type){case wvr:if(t.children.length)break;case Svr:case GZe:return t.return=t.return||t.value;case EQt:return"";case SQt:return t.return=t.value+"{"+Pj(t.children,r)+"}";case zZe:t.value=t.props.join(",")}return _T(n=Pj(t.children,r))?t.return=t.value+"{"+n+"}":""}function Fvr(t){var e=VZe(t);return function(n,r,a,o){for(var s="",l=0;l<e;l++)s+=t[l](n,r,a,o)||"";return s}}function jvr(t){return function(e){e.root||(e=e.return)&&t(e)}}var Hvr=function(e,n,r){for(var a=0,o=0;a=o,o=m2(),a===38&&o===12&&(n[r]=1),!bte(o);)Fy();return Hie(e,a1)},Uvr=function(e,n){var r=-1,a=44;do switch(bte(a)){case 0:a===38&&m2()===12&&(n[r]=1),e[r]+=Hvr(a1-1,n,r);break;case 2:e[r]+=qpe(a);break;case 4:if(a===44){e[++r]=m2()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=yxe(a)}while(a=Fy());return e},zvr=function(e,n){return CQt(Uvr(TQt(e),n))},sgt=new WeakMap,Gvr=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,a=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!sgt.get(r))&&!a){sgt.set(e,!0);for(var o=[],s=zvr(n,o),l=r.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)e.props[u]=o[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},Vvr=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function kQt(t,e){switch(Cvr(t,e)){case 5103:return ac+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ac+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ac+t+Uve+t+Vg+t+t;case 6828:case 4268:return ac+t+Vg+t+t;case 6165:return ac+t+Vg+"flex-"+t+t;case 5187:return ac+t+oc(t,/(\w+).+(:[^]+)/,ac+"box-$1$2"+Vg+"flex-$1$2")+t;case 5443:return ac+t+Vg+"flex-item-"+oc(t,/flex-|-self/,"")+t;case 4675:return ac+t+Vg+"flex-line-pack"+oc(t,/align-content|flex-|-self/,"")+t;case 5548:return ac+t+Vg+oc(t,"shrink","negative")+t;case 5292:return ac+t+Vg+oc(t,"basis","preferred-size")+t;case 6060:return ac+"box-"+oc(t,"-grow","")+ac+t+Vg+oc(t,"grow","positive")+t;case 4554:return ac+oc(t,/([^-])(transform)/g,"$1"+ac+"$2")+t;case 6187:return oc(oc(oc(t,/(zoom-|grab)/,ac+"$1"),/(image-set)/,ac+"$1"),t,"")+t;case 5495:case 3959:return oc(t,/(image-set\([^]*)/,ac+"$1$`$1");case 4968:return oc(oc(t,/(.+:)(flex-)?(.*)/,ac+"box-pack:$3"+Vg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ac+t+t;case 4095:case 3583:case 4068:case 2532:return oc(t,/(.+)-inline(.+)/,ac+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_T(t)-1-e>6)switch(Km(t,e+1)){case 109:if(Km(t,e+4)!==45)break;case 102:return oc(t,/(.+:)(.+)-([^]+)/,"$1"+ac+"$2-$3$1"+Uve+(Km(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~jje(t,"stretch")?kQt(oc(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Km(t,e+1)!==115)break;case 6444:switch(Km(t,_T(t)-3-(~jje(t,"!important")&&10))){case 107:return oc(t,":",":"+ac)+t;case 101:return oc(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ac+(Km(t,14)===45?"inline-":"")+"box$3$1"+ac+"$2$3$1"+Vg+"$2box$3")+t}break;case 5936:switch(Km(t,e+11)){case 114:return ac+t+Vg+oc(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ac+t+Vg+oc(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ac+t+Vg+oc(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ac+t+Vg+t+t}return t}var Kvr=function(e,n,r,a){if(e.length>-1&&!e.return)switch(e.type){case GZe:e.return=kQt(e.value,e.length);break;case SQt:return Pj([hQ(e,{value:oc(e.value,"@","@"+ac)})],a);case zZe:if(e.length)return Rvr(e.props,function(o){switch(kvr(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pj([hQ(e,{props:[oc(o,/:(read-\w+)/,":"+Uve+"$1")]})],a);case"::placeholder":return Pj([hQ(e,{props:[oc(o,/:(plac\w+)/,":"+ac+"input-$1")]}),hQ(e,{props:[oc(o,/:(plac\w+)/,":"+Uve+"$1")]}),hQ(e,{props:[oc(o,/:(plac\w+)/,Vg+"input-$1")]})],a)}return""})}},Wvr=[Kvr],RQt=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=e.stylisPlugins||Wvr,o={},s,l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),A=1;A<v.length;A++)o[v[A]]=!0;l.push(g)});var c,u=[Gvr,Vvr];{var d,h=[$vr,jvr(function(g){d.insert(g)})],f=Fvr(u.concat(a,h)),p=function(v){return Pj(Bvr(v),f)};c=function(v,A,y,S){d=y,p(v?v+"{"+A.styles+"}":A.styles),S&&(m.inserted[A.name]=!0)}}var m={key:n,sheet:new Evr({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(l),m},Qvr=!0;function qvr(t,e,n){var r="";return n.split(" ").forEach(function(a){t[a]!==void 0?e.push(t[a]+";"):r+=a+" "}),r}var MQt=function(e,n,r){var a=e.key+"-"+n.name;(r===!1||Qvr===!1)&&e.registered[a]===void 0&&(e.registered[a]=n.styles)},NQt=function(e,n,r){MQt(e,n,r);var a=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+a:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Yvr(t){for(var e=0,n,r=0,a=t.length;a>=4;++r,a-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Jvr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zvr=/[A-Z]|^ms/g,Xvr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IQt=function(e){return e.charCodeAt(1)===45},lgt=function(e){return e!=null&&typeof e!="boolean"},Y3e=xQt(function(t){return IQt(t)?t:t.replace(Zvr,"-$&").toLowerCase()}),cgt=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Xvr,function(r,a,o){return TT={name:a,styles:o,next:TT},a})}return Jvr[e]!==1&&!IQt(e)&&typeof n=="number"&&n!==0?n+"px":n};function xte(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return TT={name:n.name,styles:n.styles,next:TT},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)TT={name:r.name,styles:r.styles,next:TT},r=r.next;var a=n.styles+";";return a}return e0r(t,e,n)}case"function":{if(t!==void 0){var o=TT,s=n(t);return TT=o,xte(t,e,s)}break}}if(e==null)return n;var l=e[n];return l!==void 0?l:n}function e0r(t,e,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=xte(t,e,n[a])+";";else for(var o in n){var s=n[o];if(typeof s!="object")e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":lgt(s)&&(r+=Y3e(o)+":"+cgt(o,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)lgt(s[l])&&(r+=Y3e(o)+":"+cgt(o,s[l])+";");else{var c=xte(t,e,s);switch(o){case"animation":case"animationName":{r+=Y3e(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var ugt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,TT,KZe=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,o="";TT=void 0;var s=e[0];s==null||s.raw===void 0?(a=!1,o+=xte(r,n,s)):o+=s[0];for(var l=1;l<e.length;l++)o+=xte(r,n,e[l]),a&&(o+=s[l]);ugt.lastIndex=0;for(var c="",u;(u=ugt.exec(o))!==null;)c+="-"+u[1];var d=Yvr(o)+c;return{name:d,styles:o,next:TT}},t0r=function(e){return e()},PQt=lFe["useInsertionEffect"]?lFe["useInsertionEffect"]:!1,n0r=PQt||t0r,dgt=PQt||Y.useLayoutEffect,OQt=Y.createContext(typeof HTMLElement<"u"?RQt({key:"css"}):null),r0r=OQt.Provider,LQt=function(e){return Y.forwardRef(function(n,r){var a=Y.useContext(OQt);return e(n,a,r)})},Uie=Y.createContext({}),J3e={exports:{}},hgt;function BQt(){return hgt||(hgt=1,function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var o in a)({}).hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(J3e)),J3e.exports}BQt();var i0r=LQt(function(t,e){var n=t.styles,r=KZe([n],void 0,Y.useContext(Uie)),a=Y.useRef();return dgt(function(){var o=e.key+"-global",s=new e.sheet.constructor({key:o,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return e.sheet.tags.length&&(s.before=e.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",o),s.hydrate([c])),a.current=[s,l],function(){s.flush()}},[e]),dgt(function(){var o=a.current,s=o[0],l=o[1];if(l){o[1]=!1;return}if(r.next!==void 0&&NQt(e,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}e.insert("",r,s,!1)},[e,r.name]),null});function c6(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return KZe(e)}var qM=function(){var e=c6.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},a0r=Fje,o0r=function(e){return e!=="theme"},fgt=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?a0r:o0r},pgt=function(e,n,r){var a;if(n){var o=n.shouldForwardProp;a=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&r&&(a=e.__emotion_forwardProp),a},s0r=function(e){var n=e.cache,r=e.serialized,a=e.isStringTag;return MQt(n,r,a),n0r(function(){return NQt(n,r,a)}),null},l0r=function t(e,n){var r=e.__emotion_real===e,a=r&&e.__emotion_base||e,o,s;n!==void 0&&(o=n.label,s=n.target);var l=pgt(e,n,r),c=l||fgt(a),u=!c("as");return function(){var d=arguments,h=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var f=d.length,p=1;p<f;p++)h.push(d[p],d[0][p])}var m=LQt(function(g,v,A){var y=u&&g.as||a,S="",x=[],w=g;if(g.theme==null){w={};for(var _ in g)w[_]=g[_];w.theme=Y.useContext(Uie)}typeof g.className=="string"?S=qvr(v.registered,x,g.className):g.className!=null&&(S=g.className+" ");var C=KZe(h.concat(x),v.registered,w);S+=v.key+"-"+C.name,s!==void 0&&(S+=" "+s);var R=u&&l===void 0?fgt(y):c,k={};for(var P in g)u&&P==="as"||R(P)&&(k[P]=g[P]);return k.className=S,k.ref=A,Y.createElement(Y.Fragment,null,Y.createElement(s0r,{cache:v,serialized:C,isStringTag:typeof y=="string"}),Y.createElement(y,k))});return m.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=h,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+s}}),m.withComponent=function(g,v){return t(g,Ce({},n,v,{shouldForwardProp:pgt(m,v,!0)})).apply(void 0,h)},m}},c0r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Uje=l0r.bind();c0r.forEach(function(t){Uje[t]=Uje(t)});let zje;typeof document=="object"&&(zje=RQt({key:"css",prepend:!0}));function u0r(t){const{injectFirst:e,children:n}=t;return e&&zje?E.jsx(r0r,{value:zje,children:n}):n}function d0r(t){return t==null||Object.keys(t).length===0}function DQt(t){const{styles:e,defaultTheme:n={}}=t,r=typeof e=="function"?a=>e(d0r(a)?n:a):e;return E.jsx(i0r,{styles:r})}/**
 * @mui/styled-engine v5.15.14
 *
 * @license MIT
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function WZe(t,e){return Uje(t,e)}const $Qt=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},h0r=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:DQt,StyledEngineProvider:u0r,ThemeContext:Uie,css:c6,default:WZe,internal_processStyles:$Qt,keyframes:qM},Symbol.toStringTag,{value:"Module"}));function RR(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function FQt(t){if(!RR(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=FQt(t[n])}),e}function rg(t,e,n={clone:!0}){const r=n.clone?Ce({},t):t;return RR(t)&&RR(e)&&Object.keys(e).forEach(a=>{RR(e[a])&&Object.prototype.hasOwnProperty.call(t,a)&&RR(t[a])?r[a]=rg(t[a],e[a],n):n.clone?r[a]=RR(e[a])?FQt(e[a]):e[a]:r[a]=e[a]}),r}const f0r=Object.freeze(Object.defineProperty({__proto__:null,default:rg,isPlainObject:RR},Symbol.toStringTag,{value:"Module"})),p0r=["values","unit","step"],m0r=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>Ce({},n,{[r.key]:r.val}),{})};function jQt(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,a=Wn(t,p0r),o=m0r(e),s=Object.keys(o);function l(f){return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${n})`}function c(f){return`@media (max-width:${(typeof e[f]=="number"?e[f]:f)-r/100}${n})`}function u(f,p){const m=s.indexOf(p);return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${n}) and (max-width:${(m!==-1&&typeof e[s[m]]=="number"?e[s[m]]:p)-r/100}${n})`}function d(f){return s.indexOf(f)+1<s.length?u(f,s[s.indexOf(f)+1]):l(f)}function h(f){const p=s.indexOf(f);return p===0?l(s[1]):p===s.length-1?c(s[p]):u(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return Ce({keys:s,values:o,up:l,down:c,between:u,only:d,not:h,unit:n},a)}const g0r={borderRadius:4},v0r=g0r;function _X(t,e){return e?rg(t,e,{clone:!1}):t}const QZe={xs:0,sm:600,md:900,lg:1200,xl:1536},mgt={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${QZe[t]}px)`};function o1(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const o=r.breakpoints||mgt;return e.reduce((s,l,c)=>(s[o.up(o.keys[c])]=n(e[c]),s),{})}if(typeof e=="object"){const o=r.breakpoints||mgt;return Object.keys(e).reduce((s,l)=>{if(Object.keys(o.values||QZe).indexOf(l)!==-1){const c=o.up(l);s[c]=n(e[l],l)}else{const c=l;s[c]=e[c]}return s},{})}return n(e)}function HQt(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,a)=>{const o=t.up(a);return r[o]={},r},{}))||{}}function UQt(t,e){return t.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},e)}function A0r(t,...e){const n=HQt(t),r=[n,...e].reduce((a,o)=>rg(a,o),{});return UQt(Object.keys(n),r)}function y0r(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((a,o)=>{o<t.length&&(n[a]=!0)}):r.forEach(a=>{t[a]!=null&&(n[a]=!0)}),n}function pD({values:t,breakpoints:e,base:n}){const r=n||y0r(t,e),a=Object.keys(r);if(a.length===0)return t;let o;return a.reduce((s,l,c)=>(Array.isArray(t)?(s[l]=t[c]!=null?t[c]:t[o],o=c):typeof t=="object"?(s[l]=t[l]!=null?t[l]:t[o],o=l):s[l]=t,s),{})}function fn(t){if(typeof t!="string")throw new Error(pM(7));return t.charAt(0).toUpperCase()+t.slice(1)}const b0r=Object.freeze(Object.defineProperty({__proto__:null,default:fn},Symbol.toStringTag,{value:"Module"}));function Exe(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,t);if(r!=null)return r}return e.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,t)}function zve(t,e,n,r=n){let a;return typeof t=="function"?a=t(n):Array.isArray(t)?a=t[n]||r:a=Exe(t,n)||r,e&&(a=e(a,r,t)),a}function rf(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:a}=t,o=s=>{if(s[e]==null)return null;const l=s[e],c=s.theme,u=Exe(c,r)||{};return o1(s,l,h=>{let f=zve(u,a,h);return h===f&&typeof h=="string"&&(f=zve(u,a,`${e}${h==="default"?"":fn(h)}`,h)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[e],o}function x0r(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const E0r={m:"margin",p:"padding"},S0r={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ggt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},w0r=x0r(t=>{if(t.length>2)if(ggt[t])t=ggt[t];else return[t];const[e,n]=t.split(""),r=E0r[e],a=S0r[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),qZe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],YZe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qZe,...YZe];function zie(t,e,n,r){var a;const o=(a=Exe(t,e,!1))!=null?a:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function JZe(t){return zie(t,"spacing",8)}function u6(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function _0r(t,e){return n=>t.reduce((r,a)=>(r[a]=u6(e,n),r),{})}function T0r(t,e,n,r){if(e.indexOf(n)===-1)return null;const a=w0r(n),o=_0r(a,r),s=t[n];return o1(t,s,o)}function zQt(t,e){const n=JZe(t.theme);return Object.keys(t).map(r=>T0r(t,e,r,n)).reduce(_X,{})}function nh(t){return zQt(t,qZe)}nh.propTypes={};nh.filterProps=qZe;function rh(t){return zQt(t,YZe)}rh.propTypes={};rh.filterProps=YZe;function C0r(t=8){if(t.mui)return t;const e=JZe({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=e(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Sxe(...t){const e=t.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>e[o]?_X(a,e[o](r)):a,{});return n.propTypes={},n.filterProps=t.reduce((r,a)=>r.concat(a.filterProps),[]),n}function ax(t){return typeof t!="number"?t:`${t}px solid`}function aE(t,e){return rf({prop:t,themeKey:"borders",transform:e})}const k0r=aE("border",ax),R0r=aE("borderTop",ax),M0r=aE("borderRight",ax),N0r=aE("borderBottom",ax),I0r=aE("borderLeft",ax),P0r=aE("borderColor"),O0r=aE("borderTopColor"),L0r=aE("borderRightColor"),B0r=aE("borderBottomColor"),D0r=aE("borderLeftColor"),$0r=aE("outline",ax),F0r=aE("outlineColor"),wxe=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=zie(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:u6(e,r)});return o1(t,t.borderRadius,n)}return null};wxe.propTypes={};wxe.filterProps=["borderRadius"];Sxe(k0r,R0r,M0r,N0r,I0r,P0r,O0r,L0r,B0r,D0r,wxe,$0r,F0r);const _xe=t=>{if(t.gap!==void 0&&t.gap!==null){const e=zie(t.theme,"spacing",8),n=r=>({gap:u6(e,r)});return o1(t,t.gap,n)}return null};_xe.propTypes={};_xe.filterProps=["gap"];const Txe=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=zie(t.theme,"spacing",8),n=r=>({columnGap:u6(e,r)});return o1(t,t.columnGap,n)}return null};Txe.propTypes={};Txe.filterProps=["columnGap"];const Cxe=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=zie(t.theme,"spacing",8),n=r=>({rowGap:u6(e,r)});return o1(t,t.rowGap,n)}return null};Cxe.propTypes={};Cxe.filterProps=["rowGap"];const j0r=rf({prop:"gridColumn"}),H0r=rf({prop:"gridRow"}),U0r=rf({prop:"gridAutoFlow"}),z0r=rf({prop:"gridAutoColumns"}),G0r=rf({prop:"gridAutoRows"}),V0r=rf({prop:"gridTemplateColumns"}),K0r=rf({prop:"gridTemplateRows"}),W0r=rf({prop:"gridTemplateAreas"}),Q0r=rf({prop:"gridArea"});Sxe(_xe,Txe,Cxe,j0r,H0r,U0r,z0r,G0r,V0r,K0r,W0r,Q0r);function Oj(t,e){return e==="grey"?e:t}const q0r=rf({prop:"color",themeKey:"palette",transform:Oj}),Y0r=rf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oj}),J0r=rf({prop:"backgroundColor",themeKey:"palette",transform:Oj});Sxe(q0r,Y0r,J0r);function wy(t){return t<=1&&t!==0?`${t*100}%`:t}const Z0r=rf({prop:"width",transform:wy}),ZZe=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,a;const o=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||QZe[n];return o?((a=t.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:wy(n)}};return o1(t,t.maxWidth,e)}return null};ZZe.filterProps=["maxWidth"];const X0r=rf({prop:"minWidth",transform:wy}),eAr=rf({prop:"height",transform:wy}),tAr=rf({prop:"maxHeight",transform:wy}),nAr=rf({prop:"minHeight",transform:wy});rf({prop:"size",cssProperty:"width",transform:wy});rf({prop:"size",cssProperty:"height",transform:wy});const rAr=rf({prop:"boxSizing"});Sxe(Z0r,ZZe,X0r,eAr,tAr,nAr,rAr);const iAr={border:{themeKey:"borders",transform:ax},borderTop:{themeKey:"borders",transform:ax},borderRight:{themeKey:"borders",transform:ax},borderBottom:{themeKey:"borders",transform:ax},borderLeft:{themeKey:"borders",transform:ax},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ax},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wxe},color:{themeKey:"palette",transform:Oj},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oj},backgroundColor:{themeKey:"palette",transform:Oj},p:{style:rh},pt:{style:rh},pr:{style:rh},pb:{style:rh},pl:{style:rh},px:{style:rh},py:{style:rh},padding:{style:rh},paddingTop:{style:rh},paddingRight:{style:rh},paddingBottom:{style:rh},paddingLeft:{style:rh},paddingX:{style:rh},paddingY:{style:rh},paddingInline:{style:rh},paddingInlineStart:{style:rh},paddingInlineEnd:{style:rh},paddingBlock:{style:rh},paddingBlockStart:{style:rh},paddingBlockEnd:{style:rh},m:{style:nh},mt:{style:nh},mr:{style:nh},mb:{style:nh},ml:{style:nh},mx:{style:nh},my:{style:nh},margin:{style:nh},marginTop:{style:nh},marginRight:{style:nh},marginBottom:{style:nh},marginLeft:{style:nh},marginX:{style:nh},marginY:{style:nh},marginInline:{style:nh},marginInlineStart:{style:nh},marginInlineEnd:{style:nh},marginBlock:{style:nh},marginBlockStart:{style:nh},marginBlockEnd:{style:nh},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_xe},rowGap:{style:Cxe},columnGap:{style:Txe},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wy},maxWidth:{style:ZZe},minWidth:{transform:wy},height:{transform:wy},maxHeight:{transform:wy},minHeight:{transform:wy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Gie=iAr;function aAr(...t){const e=t.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function oAr(t,e){return typeof t=="function"?t(e):t}function GQt(){function t(n,r,a,o){const s={[n]:r,theme:a},l=o[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:h}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Exe(a,u)||{};return h?h(s):o1(s,r,m=>{let g=zve(f,d,m);return m===g&&typeof m=="string"&&(g=zve(f,d,`${n}${m==="default"?"":fn(m)}`,m)),c===!1?g:{[c]:g}})}function e(n){var r;const{sx:a,theme:o={}}=n||{};if(!a)return null;const s=(r=o.unstable_sxConfig)!=null?r:Gie;function l(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=HQt(o.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(p=>{const m=oAr(u[p],o);if(m!=null)if(typeof m=="object")if(s[p])f=_X(f,t(p,m,o,s));else{const g=o1({theme:o},m,v=>({[p]:v}));aAr(g,m)?f[p]=e({sx:m,theme:o}):f=_X(f,g)}else f=_X(f,t(p,m,o,s))}),UQt(h,f)}return Array.isArray(a)?a.map(l):l(a)}return e}const VQt=GQt();VQt.filterProps=["sx"];const Vie=VQt;function KQt(t,e){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)")]:e}:n.palette.mode===t?e:{}}const sAr=["breakpoints","palette","spacing","shape"];function Kie(t={},...e){const{breakpoints:n={},palette:r={},spacing:a,shape:o={}}=t,s=Wn(t,sAr),l=jQt(n),c=C0r(a);let u=rg({breakpoints:l,direction:"ltr",components:{},palette:Ce({mode:"light"},r),spacing:c,shape:Ce({},v0r,o)},s);return u.applyStyles=KQt,u=e.reduce((d,h)=>rg(d,h),u),u.unstable_sxConfig=Ce({},Gie,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return Vie({sx:h,theme:this})},u}const lAr=Object.freeze(Object.defineProperty({__proto__:null,default:Kie,private_createBreakpoints:jQt,unstable_applyStyles:KQt},Symbol.toStringTag,{value:"Module"}));function cAr(t){return Object.keys(t).length===0}function WQt(t=null){const e=Y.useContext(Uie);return!e||cAr(e)?t:e}const uAr=Kie();function kxe(t=uAr){return WQt(t)}function dAr({styles:t,themeId:e,defaultTheme:n={}}){const r=kxe(n),a=typeof t=="function"?t(e&&r[e]||r):t;return E.jsx(DQt,{styles:a})}const hAr=["sx"],fAr=t=>{var e,n;const r={systemProps:{},otherProps:{}},a=(e=t==null||(n=t.theme)==null?void 0:n.unstable_sxConfig)!=null?e:Gie;return Object.keys(t).forEach(o=>{a[o]?r.systemProps[o]=t[o]:r.otherProps[o]=t[o]}),r};function Wie(t){const{sx:e}=t,n=Wn(t,hAr),{systemProps:r,otherProps:a}=fAr(n);let o;return Array.isArray(e)?o=[r,...e]:typeof e=="function"?o=(...s)=>{const l=e(...s);return RR(l)?Ce({},r,l):r}:o=Ce({},r,e),Ce({},a,{sx:o})}const pAr=Object.freeze(Object.defineProperty({__proto__:null,default:Vie,extendSxProp:Wie,unstable_createStyleFunctionSx:GQt,unstable_defaultSxConfig:Gie},Symbol.toStringTag,{value:"Module"})),vgt=t=>t,mAr=()=>{let t=vgt;return{configure(e){t=e},generate(e){return t(e)},reset(){t=vgt}}},gAr=mAr(),XZe=gAr;function QQt(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=QQt(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function qQt(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=QQt(t))&&(r&&(r+=" "),r+=e);return r}const vAr=["className","component"];function AAr(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=t,o=WZe("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Vie);return Y.forwardRef(function(c,u){const d=kxe(n),h=Wie(c),{className:f,component:p="div"}=h,m=Wn(h,vAr);return E.jsx(o,Ce({as:p,ref:u,className:qQt(f,a?a(r):r),theme:e&&d[e]||d},m))})}const YQt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function mi(t,e,n="Mui"){const r=YQt[e];return r?`${n}-${r}`:`${XZe.generate(t)}-${e}`}function ei(t,e,n="Mui"){const r={};return e.forEach(a=>{r[a]=mi(t,a,n)}),r}var JQt={exports:{}},Bc={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var eXe=Symbol.for("react.element"),tXe=Symbol.for("react.portal"),Rxe=Symbol.for("react.fragment"),Mxe=Symbol.for("react.strict_mode"),Nxe=Symbol.for("react.profiler"),Ixe=Symbol.for("react.provider"),Pxe=Symbol.for("react.context"),yAr=Symbol.for("react.server_context"),Oxe=Symbol.for("react.forward_ref"),Lxe=Symbol.for("react.suspense"),Bxe=Symbol.for("react.suspense_list"),Dxe=Symbol.for("react.memo"),$xe=Symbol.for("react.lazy"),bAr=Symbol.for("react.offscreen"),ZQt;ZQt=Symbol.for("react.module.reference");function oE(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case eXe:switch(t=t.type,t){case Rxe:case Nxe:case Mxe:case Lxe:case Bxe:return t;default:switch(t=t&&t.$$typeof,t){case yAr:case Pxe:case Oxe:case $xe:case Dxe:case Ixe:return t;default:return e}}case tXe:return e}}}Bc.ContextConsumer=Pxe;Bc.ContextProvider=Ixe;Bc.Element=eXe;Bc.ForwardRef=Oxe;Bc.Fragment=Rxe;Bc.Lazy=$xe;Bc.Memo=Dxe;Bc.Portal=tXe;Bc.Profiler=Nxe;Bc.StrictMode=Mxe;Bc.Suspense=Lxe;Bc.SuspenseList=Bxe;Bc.isAsyncMode=function(){return!1};Bc.isConcurrentMode=function(){return!1};Bc.isContextConsumer=function(t){return oE(t)===Pxe};Bc.isContextProvider=function(t){return oE(t)===Ixe};Bc.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===eXe};Bc.isForwardRef=function(t){return oE(t)===Oxe};Bc.isFragment=function(t){return oE(t)===Rxe};Bc.isLazy=function(t){return oE(t)===$xe};Bc.isMemo=function(t){return oE(t)===Dxe};Bc.isPortal=function(t){return oE(t)===tXe};Bc.isProfiler=function(t){return oE(t)===Nxe};Bc.isStrictMode=function(t){return oE(t)===Mxe};Bc.isSuspense=function(t){return oE(t)===Lxe};Bc.isSuspenseList=function(t){return oE(t)===Bxe};Bc.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Rxe||t===Nxe||t===Mxe||t===Lxe||t===Bxe||t===bAr||typeof t=="object"&&t!==null&&(t.$$typeof===$xe||t.$$typeof===Dxe||t.$$typeof===Ixe||t.$$typeof===Pxe||t.$$typeof===Oxe||t.$$typeof===ZQt||t.getModuleId!==void 0)};Bc.typeOf=oE;JQt.exports=Bc;var Agt=JQt.exports;const xAr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function XQt(t){const e=`${t}`.match(xAr);return e&&e[1]||""}function eqt(t,e=""){return t.displayName||t.name||XQt(t)||e}function ygt(t,e,n){const r=eqt(e);return t.displayName||(r!==""?`${n}(${r})`:n)}function EAr(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return eqt(t,"Component");if(typeof t=="object")switch(t.$$typeof){case Agt.ForwardRef:return ygt(t,t.render,"ForwardRef");case Agt.Memo:return ygt(t,t.type,"memo");default:return}}}const SAr=Object.freeze(Object.defineProperty({__proto__:null,default:EAr,getFunctionName:XQt},Symbol.toStringTag,{value:"Module"})),wAr=["ownerState"],_Ar=["variants"],TAr=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function CAr(t){return Object.keys(t).length===0}function kAr(t){return typeof t=="string"&&t.charCodeAt(0)>96}function Z3e(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const RAr=Kie(),MAr=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Jle({defaultTheme:t,theme:e,themeId:n}){return CAr(e)?t:e[n]||e}function NAr(t){return t?(e,n)=>n[t]:null}function Jpe(t,e){let{ownerState:n}=e,r=Wn(e,wAr);const a=typeof t=="function"?t(Ce({ownerState:n},r)):t;if(Array.isArray(a))return a.flatMap(o=>Jpe(o,Ce({ownerState:n},r)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=Wn(a,_Ar);return o.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(Ce({ownerState:n},r,n)):Object.keys(c.props).forEach(d=>{(n==null?void 0:n[d])!==c.props[d]&&r[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(Ce({ownerState:n},r,n)):c.style))}),l}return a}function IAr(t={}){const{themeId:e,defaultTheme:n=RAr,rootShouldForwardProp:r=Z3e,slotShouldForwardProp:a=Z3e}=t,o=s=>Vie(Ce({},s,{theme:Jle(Ce({},s,{defaultTheme:n,themeId:e}))}));return o.__mui_systemSx=!0,(s,l={})=>{$Qt(s,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=NAr(MAr(u))}=l,p=Wn(l,TAr),m=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,g=h||!1;let v,A=Z3e;u==="Root"||u==="root"?A=r:u?A=a:kAr(s)&&(A=void 0);const y=WZe(s,Ce({shouldForwardProp:A,label:v},p)),S=w=>typeof w=="function"&&w.__emotion_real!==w||RR(w)?_=>Jpe(w,Ce({},_,{theme:Jle({theme:_.theme,defaultTheme:n,themeId:e})})):w,x=(w,..._)=>{let C=S(w);const R=_?_.map(S):[];c&&f&&R.push(N=>{const L=Jle(Ce({},N,{defaultTheme:n,themeId:e}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const I=L.components[c].styleOverrides,b={};return Object.entries(I).forEach(([T,M])=>{b[T]=Jpe(M,Ce({},N,{theme:L}))}),f(N,b)}),c&&!m&&R.push(N=>{var L;const I=Jle(Ce({},N,{defaultTheme:n,themeId:e})),b=I==null||(L=I.components)==null||(L=L[c])==null?void 0:L.variants;return Jpe({variants:b},Ce({},N,{theme:I}))}),g||R.push(o);const k=R.length-_.length;if(Array.isArray(w)&&k>0){const N=new Array(k).fill("");C=[...w,...N],C.raw=[...w.raw,...N]}const P=y(C,...R);return s.muiName&&(P.muiName=s.muiName),P};return y.withConfig&&(x.withConfig=y.withConfig),x}}const PAr=IAr(),OAr=PAr;function Fxe(t,e){const n=Ce({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ce({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const a=t[r]||{},o=e[r];n[r]={},!o||!Object.keys(o)?n[r]=a:!a||!Object.keys(a)?n[r]=o:(n[r]=Ce({},o),Object.keys(a).forEach(s=>{n[r][s]=Fxe(a[s],o[s])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function LAr(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Fxe(e.components[n].defaultProps,r)}function tqt({props:t,name:e,defaultTheme:n,themeId:r}){let a=kxe(n);return r&&(a=a[r]||a),LAr({theme:a,name:e,props:t})}const BAr=typeof window<"u"?Y.useLayoutEffect:Y.useEffect,Cw=BAr;function nqt(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}const DAr=Object.freeze(Object.defineProperty({__proto__:null,default:nqt},Symbol.toStringTag,{value:"Module"}));function $Ar(t,e=0,n=1){return nqt(t,e,n)}function FAr(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function rqt(t){if(t.type)return t;if(t.charAt(0)==="#")return rqt(FAr(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(pM(9,t));let r=t.substring(e+1,t.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(pM(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}function jAr(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((a,o)=>o<3?parseInt(a,10):a):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function rZ(t,e){return t=rqt(t),e=$Ar(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,jAr(t)}function Gve(...t){return t.reduce((e,n)=>n==null?e:function(...a){e.apply(this,a),n.apply(this,a)},()=>{})}function jxe(t,e=166){let n;function r(...a){const o=()=>{t.apply(this,a)};clearTimeout(n),n=setTimeout(o,e)}return r.clear=()=>{clearTimeout(n)},r}function HAr(t,e){return()=>null}function Zpe(t,e){var n,r;return Y.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function xp(t){return t&&t.ownerDocument||document}function $2(t){return xp(t).defaultView||window}function UAr(t,e){return()=>null}function Ete(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let bgt=0;function zAr(t){const[e,n]=Y.useState(t),r=t||e;return Y.useEffect(()=>{e==null&&(bgt+=1,n(`mui-${bgt}`))},[e]),r}const xgt=lFe["useId".toString()];function O8(t){if(xgt!==void 0){const e=xgt();return t??e}return zAr(t)}function GAr(t,e,n,r,a){return null}function fw({controlled:t,default:e,name:n,state:r="value"}){const{current:a}=Y.useRef(t!==void 0),[o,s]=Y.useState(e),l=a?t:o,c=Y.useCallback(u=>{a||s(u)},[]);return[l,c]}function pv(t){const e=Y.useRef(t);return Cw(()=>{e.current=t}),Y.useRef((...n)=>(0,e.current)(...n)).current}function ju(...t){return Y.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Ete(n,e)})},t)}const Egt={};function VAr(t,e){const n=Y.useRef(Egt);return n.current===Egt&&(n.current=t(e)),n}const KAr=[];function WAr(t){Y.useEffect(t,KAr)}class Qie{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qie}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function L3(){const t=VAr(Qie.create).current;return WAr(t.disposeEffect),t}let Hxe=!0,Gje=!1;const QAr=new Qie,qAr={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function YAr(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&qAr[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function JAr(t){t.metaKey||t.altKey||t.ctrlKey||(Hxe=!0)}function X3e(){Hxe=!1}function ZAr(){this.visibilityState==="hidden"&&Gje&&(Hxe=!0)}function XAr(t){t.addEventListener("keydown",JAr,!0),t.addEventListener("mousedown",X3e,!0),t.addEventListener("pointerdown",X3e,!0),t.addEventListener("touchstart",X3e,!0),t.addEventListener("visibilitychange",ZAr,!0)}function e1r(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return Hxe||YAr(e)}function nXe(){const t=Y.useCallback(a=>{a!=null&&XAr(a.ownerDocument)},[]),e=Y.useRef(!1);function n(){return e.current?(Gje=!0,QAr.start(100,()=>{Gje=!1}),e.current=!1,!0):!1}function r(a){return e1r(a)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function iqt(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const t1r=t=>{const e=Y.useRef({});return Y.useEffect(()=>{e.current=t}),e.current},n1r=t1r;function aqt(t){return Y.Children.toArray(t).filter(e=>Y.isValidElement(e))}const r1r={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},i1r=r1r;function gi(t,e,n=void 0){const r={};return Object.keys(t).forEach(a=>{r[a]=t[a].reduce((o,s)=>{if(s){const l=e(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const a1r=Y.createContext(null),oqt=a1r;function rXe(){return Y.useContext(oqt)}const o1r=typeof Symbol=="function"&&Symbol.for,sqt=o1r?Symbol.for("mui.nested"):"__THEME_NESTED__";function s1r(t,e){return typeof e=="function"?e(t):Ce({},t,e)}function l1r(t){const{children:e,theme:n}=t,r=rXe(),a=Y.useMemo(()=>{const o=r===null?n:s1r(r,n);return o!=null&&(o[sqt]=r!==null),o},[n,r]);return E.jsx(oqt.Provider,{value:a,children:e})}const c1r=["value"],lqt=Y.createContext();function u1r(t){let{value:e}=t,n=Wn(t,c1r);return E.jsx(lqt.Provider,Ce({value:e??!0},n))}const qie=()=>{const t=Y.useContext(lqt);return t??!1},Sgt={};function wgt(t,e,n,r=!1){return Y.useMemo(()=>{const a=t&&e[t]||e;if(typeof n=="function"){const o=n(a),s=t?Ce({},e,{[t]:o}):o;return r?()=>s:s}return t?Ce({},e,{[t]:n}):Ce({},e,n)},[t,e,n,r])}function d1r(t){const{children:e,theme:n,themeId:r}=t,a=WQt(Sgt),o=rXe()||Sgt,s=wgt(r,a,n),l=wgt(r,o,n,!0),c=s.direction==="rtl";return E.jsx(l1r,{theme:l,children:E.jsx(Uie.Provider,{value:s,children:E.jsx(u1r,{value:c,children:e})})})}function Ux(t){"@babel/helpers - typeof";return Ux=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ux(t)}function h1r(t,e){if(Ux(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ux(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cqt(t){var e=h1r(t,"string");return Ux(e)=="symbol"?e:e+""}const f1r=["component","direction","spacing","divider","children","className","useFlexGap"],p1r=Kie(),m1r=OAr("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function g1r(t){return tqt({props:t,name:"MuiStack",defaultTheme:p1r})}function v1r(t,e){const n=Y.Children.toArray(t).filter(Boolean);return n.reduce((r,a,o)=>(r.push(a),o<n.length-1&&r.push(Y.cloneElement(e,{key:`separator-${o}`})),r),[])}const A1r=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],y1r=({ownerState:t,theme:e})=>{let n=Ce({display:"flex",flexDirection:"column"},o1({theme:e},pD({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r})));if(t.spacing){const r=JZe(e),a=Object.keys(e.breakpoints.values).reduce((c,u)=>((typeof t.spacing=="object"&&t.spacing[u]!=null||typeof t.direction=="object"&&t.direction[u]!=null)&&(c[u]=!0),c),{}),o=pD({values:t.direction,base:a}),s=pD({values:t.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((c,u,d)=>{if(!o[c]){const f=u>0?o[d[u-1]]:"column";o[c]=f}}),n=rg(n,o1({theme:e},s,(c,u)=>t.useFlexGap?{gap:u6(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${A1r(u?o[u]:t.direction)}`]:u6(r,c)}}))}return n=A0r(e.breakpoints,n),n};function b1r(t={}){const{createStyledComponent:e=m1r,useThemeProps:n=g1r,componentName:r="MuiStack"}=t,a=()=>gi({root:["root"]},c=>mi(r,c),{}),o=e(y1r);return Y.forwardRef(function(c,u){const d=n(c),h=Wie(d),{component:f="div",direction:p="column",spacing:m=0,divider:g,children:v,className:A,useFlexGap:y=!1}=h,S=Wn(h,f1r),x={direction:p,spacing:m,useFlexGap:y},w=a();return E.jsx(o,Ce({as:f,ownerState:x,ref:u,className:qQt(w.root,A)},S,{children:g?v1r(v,g):v}))})}function x1r(t,e){return Ce({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}var af={},uqt={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(uqt);var As=uqt.exports;const E1r=Uu(Avr),S1r=Uu(DAr);var dqt=As;Object.defineProperty(af,"__esModule",{value:!0});var ss=af.alpha=mqt;af.blend=L1r;af.colorChannel=void 0;var Ste=af.darken=aXe;af.decomposeColor=zx;var w1r=af.emphasize=gqt,_1r=af.getContrastRatio=M1r;af.getLuminance=Vve;af.hexToRgb=hqt;af.hslToRgb=pqt;var wte=af.lighten=oXe;af.private_safeAlpha=N1r;af.private_safeColorChannel=void 0;af.private_safeDarken=I1r;af.private_safeEmphasize=O1r;af.private_safeLighten=P1r;af.recomposeColor=cG;af.rgbToHex=R1r;var _gt=dqt(E1r),T1r=dqt(S1r);function iXe(t,e=0,n=1){return(0,T1r.default)(t,e,n)}function hqt(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function C1r(t){const e=t.toString(16);return e.length===1?`0${e}`:e}function zx(t){if(t.type)return t;if(t.charAt(0)==="#")return zx(hqt(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,_gt.default)(9,t));let r=t.substring(e+1,t.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,_gt.default)(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const fqt=t=>{const e=zx(t);return e.values.slice(0,3).map((n,r)=>e.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};af.colorChannel=fqt;const k1r=(t,e)=>{try{return fqt(t)}catch{return t}};af.private_safeColorChannel=k1r;function cG(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((a,o)=>o<3?parseInt(a,10):a):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function R1r(t){if(t.indexOf("#")===0)return t;const{values:e}=zx(t);return`#${e.map((n,r)=>C1r(r===3?Math.round(255*n):n)).join("")}`}function pqt(t){t=zx(t);const{values:e}=t,n=e[0],r=e[1]/100,a=e[2]/100,o=r*Math.min(a,1-a),s=(u,d=(u+n/30)%12)=>a-o*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(l+="a",c.push(e[3])),cG({type:l,values:c})}function Vve(t){t=zx(t);let e=t.type==="hsl"||t.type==="hsla"?zx(pqt(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function M1r(t,e){const n=Vve(t),r=Vve(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function mqt(t,e){return t=zx(t),e=iXe(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,cG(t)}function N1r(t,e,n){try{return mqt(t,e)}catch{return t}}function aXe(t,e){if(t=zx(t),e=iXe(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return cG(t)}function I1r(t,e,n){try{return aXe(t,e)}catch{return t}}function oXe(t,e){if(t=zx(t),e=iXe(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return cG(t)}function P1r(t,e,n){try{return oXe(t,e)}catch{return t}}function gqt(t,e=.15){return Vve(t)>.5?aXe(t,e):oXe(t,e)}function O1r(t,e,n){try{return gqt(t,e)}catch{return t}}function L1r(t,e,n,r=1){const a=(c,u)=>Math.round((c**(1/r)*(1-n)+u**(1/r)*n)**r),o=zx(t),s=zx(e),l=[a(o.values[0],s.values[0]),a(o.values[1],s.values[1]),a(o.values[2],s.values[2])];return cG({type:"rgb",values:l})}const B1r={black:"#000",white:"#fff"},_te=B1r,D1r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$1r=D1r,F1r={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},n$=F1r,j1r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},r$=j1r,H1r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},fQ=H1r,U1r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},i$=U1r,z1r={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},a$=z1r,G1r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},o$=G1r,V1r=["mode","contrastThreshold","tonalOffset"],Tgt={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_te.white,default:_te.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},e5e={text:{primary:_te.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_te.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Cgt(t,e,n,r){const a=r.light||r,o=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=wte(t.main,a):e==="dark"&&(t.dark=Ste(t.main,o)))}function K1r(t="light"){return t==="dark"?{main:i$[200],light:i$[50],dark:i$[400]}:{main:i$[700],light:i$[400],dark:i$[800]}}function W1r(t="light"){return t==="dark"?{main:n$[200],light:n$[50],dark:n$[400]}:{main:n$[500],light:n$[300],dark:n$[700]}}function Q1r(t="light"){return t==="dark"?{main:r$[500],light:r$[300],dark:r$[700]}:{main:r$[700],light:r$[400],dark:r$[800]}}function q1r(t="light"){return t==="dark"?{main:a$[400],light:a$[300],dark:a$[700]}:{main:a$[700],light:a$[500],dark:a$[900]}}function Y1r(t="light"){return t==="dark"?{main:o$[400],light:o$[300],dark:o$[700]}:{main:o$[800],light:o$[500],dark:o$[900]}}function J1r(t="light"){return t==="dark"?{main:fQ[400],light:fQ[300],dark:fQ[700]}:{main:"#ed6c02",light:fQ[500],dark:fQ[900]}}function Z1r(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,a=Wn(t,V1r),o=t.primary||K1r(e),s=t.secondary||W1r(e),l=t.error||Q1r(e),c=t.info||q1r(e),u=t.success||Y1r(e),d=t.warning||J1r(e);function h(g){return _1r(g,e5e.text.primary)>=n?e5e.text.primary:Tgt.text.primary}const f=({color:g,name:v,mainShade:A=500,lightShade:y=300,darkShade:S=700})=>{if(g=Ce({},g),!g.main&&g[A]&&(g.main=g[A]),!g.hasOwnProperty("main"))throw new Error(pM(11,v?` (${v})`:"",A));if(typeof g.main!="string")throw new Error(pM(12,v?` (${v})`:"",JSON.stringify(g.main)));return Cgt(g,"light",y,r),Cgt(g,"dark",S,r),g.contrastText||(g.contrastText=h(g.main)),g},p={dark:e5e,light:Tgt};return rg(Ce({common:Ce({},_te),mode:e,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:$1r,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:r},p[e]),a)}const X1r=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function eyr(t){return Math.round(t*1e5)/1e5}const kgt={textTransform:"uppercase"},Rgt='"Roboto", "Helvetica", "Arial", sans-serif';function tyr(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=Rgt,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=n,f=Wn(n,X1r),p=a/14,m=h||(A=>`${A/u*p}rem`),g=(A,y,S,x,w)=>Ce({fontFamily:r,fontWeight:A,fontSize:m(y),lineHeight:S},r===Rgt?{letterSpacing:`${eyr(x/y)}em`}:{},w,d),v={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,kgt),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,kgt),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rg(Ce({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c},v),f,{clone:!1})}const nyr=.2,ryr=.14,iyr=.12;function id(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${nyr})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${ryr})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${iyr})`].join(",")}const ayr=["none",id(0,2,1,-1,0,1,1,0,0,1,3,0),id(0,3,1,-2,0,2,2,0,0,1,5,0),id(0,3,3,-2,0,3,4,0,0,1,8,0),id(0,2,4,-1,0,4,5,0,0,1,10,0),id(0,3,5,-1,0,5,8,0,0,1,14,0),id(0,3,5,-1,0,6,10,0,0,1,18,0),id(0,4,5,-2,0,7,10,1,0,2,16,1),id(0,5,5,-3,0,8,10,1,0,3,14,2),id(0,5,6,-3,0,9,12,1,0,3,16,2),id(0,6,6,-3,0,10,14,1,0,4,18,3),id(0,6,7,-4,0,11,15,1,0,4,20,3),id(0,7,8,-4,0,12,17,2,0,5,22,4),id(0,7,8,-4,0,13,19,2,0,5,24,4),id(0,7,9,-4,0,14,21,2,0,5,26,4),id(0,8,9,-5,0,15,22,2,0,6,28,5),id(0,8,10,-5,0,16,24,2,0,6,30,5),id(0,8,11,-5,0,17,26,2,0,6,32,5),id(0,9,11,-5,0,18,28,2,0,7,34,6),id(0,9,12,-6,0,19,29,2,0,7,36,6),id(0,10,13,-6,0,20,31,3,0,8,38,7),id(0,10,13,-6,0,21,33,3,0,8,40,7),id(0,10,14,-6,0,22,35,3,0,8,42,7),id(0,11,14,-7,0,23,36,3,0,9,44,8),id(0,11,15,-7,0,24,38,3,0,9,46,8)],oyr=ayr,syr=["duration","easing","delay"],lyr={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vqt={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mgt(t){return`${Math.round(t)}ms`}function cyr(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function uyr(t){const e=Ce({},lyr,t.easing),n=Ce({},vqt,t.duration);return Ce({getAutoHeightDuration:cyr,create:(a=["all"],o={})=>{const{duration:s=n.standard,easing:l=e.easeInOut,delay:c=0}=o;return Wn(o,syr),(Array.isArray(a)?a:[a]).map(u=>`${u} ${typeof s=="string"?s:Mgt(s)} ${l} ${typeof c=="string"?c:Mgt(c)}`).join(",")}},t,{easing:e,duration:n})}const dyr={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hyr=dyr,fyr=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function sXe(t={},...e){const{mixins:n={},palette:r={},transitions:a={},typography:o={}}=t,s=Wn(t,fyr);if(t.vars)throw new Error(pM(18));const l=Z1r(r),c=Kie(t);let u=rg(c,{mixins:x1r(c.breakpoints,n),palette:l,shadows:oyr.slice(),typography:tyr(l,o),transitions:uyr(a),zIndex:Ce({},hyr)});return u=rg(u,s),u=e.reduce((d,h)=>rg(d,h),u),u.unstable_sxConfig=Ce({},Gie,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return Vie({sx:h,theme:this})},u}function pyr(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function myr(t){return parseFloat(t)}const gyr=sXe(),Uxe=gyr;function YM(){const t=kxe(Uxe);return t[l6]||t}function Vi({props:t,name:e}){return tqt({props:t,name:e,defaultTheme:Uxe,themeId:l6})}var Yie={},t5e={exports:{}},Ngt;function vyr(){return Ngt||(Ngt=1,function(t){function e(n,r){if(n==null)return{};var a={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.indexOf(o)>=0)continue;a[o]=n[o]}return a}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(t5e)),t5e.exports}const Aqt=Uu(h0r),Ayr=Uu(f0r),yyr=Uu(b0r),byr=Uu(SAr),xyr=Uu(lAr),Eyr=Uu(pAr);var uG=As;Object.defineProperty(Yie,"__esModule",{value:!0});var Syr=Yie.default=Byr;Yie.shouldForwardProp=Xpe;Yie.systemDefaultTheme=void 0;var Xb=uG(BQt()),Vje=uG(vyr()),Igt=Myr(Aqt),wyr=Ayr;uG(yyr);uG(byr);var _yr=uG(xyr),Tyr=uG(Eyr);const Cyr=["ownerState"],kyr=["variants"],Ryr=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yqt(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(yqt=function(r){return r?n:e})(t)}function Myr(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=yqt(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function Nyr(t){return Object.keys(t).length===0}function Iyr(t){return typeof t=="string"&&t.charCodeAt(0)>96}function Xpe(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Pyr=Yie.systemDefaultTheme=(0,_yr.default)(),Oyr=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Zle({defaultTheme:t,theme:e,themeId:n}){return Nyr(e)?t:e[n]||e}function Lyr(t){return t?(e,n)=>n[t]:null}function eme(t,e){let{ownerState:n}=e,r=(0,Vje.default)(e,Cyr);const a=typeof t=="function"?t((0,Xb.default)({ownerState:n},r)):t;if(Array.isArray(a))return a.flatMap(o=>eme(o,(0,Xb.default)({ownerState:n},r)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=(0,Vje.default)(a,kyr);return o.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Xb.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(d=>{(n==null?void 0:n[d])!==c.props[d]&&r[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Xb.default)({ownerState:n},r,n)):c.style))}),l}return a}function Byr(t={}){const{themeId:e,defaultTheme:n=Pyr,rootShouldForwardProp:r=Xpe,slotShouldForwardProp:a=Xpe}=t,o=s=>(0,Tyr.default)((0,Xb.default)({},s,{theme:Zle((0,Xb.default)({},s,{defaultTheme:n,themeId:e}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,Igt.internal_processStyles)(s,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=Lyr(Oyr(u))}=l,p=(0,Vje.default)(l,Ryr),m=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,g=h||!1;let v,A=Xpe;u==="Root"||u==="root"?A=r:u?A=a:Iyr(s)&&(A=void 0);const y=(0,Igt.default)(s,(0,Xb.default)({shouldForwardProp:A,label:v},p)),S=w=>typeof w=="function"&&w.__emotion_real!==w||(0,wyr.isPlainObject)(w)?_=>eme(w,(0,Xb.default)({},_,{theme:Zle({theme:_.theme,defaultTheme:n,themeId:e})})):w,x=(w,..._)=>{let C=S(w);const R=_?_.map(S):[];c&&f&&R.push(N=>{const L=Zle((0,Xb.default)({},N,{defaultTheme:n,themeId:e}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const I=L.components[c].styleOverrides,b={};return Object.entries(I).forEach(([T,M])=>{b[T]=eme(M,(0,Xb.default)({},N,{theme:L}))}),f(N,b)}),c&&!m&&R.push(N=>{var L;const I=Zle((0,Xb.default)({},N,{defaultTheme:n,themeId:e})),b=I==null||(L=I.components)==null||(L=L[c])==null?void 0:L.variants;return eme({variants:b},(0,Xb.default)({},N,{theme:I}))}),g||R.push(o);const k=R.length-_.length;if(Array.isArray(w)&&k>0){const N=new Array(k).fill("");C=[...w,...N],C.raw=[...w.raw,...N]}const P=y(C,...R);return s.muiName&&(P.muiName=s.muiName),P};return y.withConfig&&(x.withConfig=y.withConfig),x}}function lXe(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Dyr=t=>lXe(t)&&t!=="classes",pg=Dyr,$yr=Syr({themeId:l6,defaultTheme:Uxe,rootShouldForwardProp:pg}),En=$yr,Fyr=["theme"];function jyr(t){let{theme:e}=t,n=Wn(t,Fyr);const r=e[l6];return E.jsx(d1r,Ce({},n,{themeId:r?l6:void 0,theme:r||e}))}const Hyr=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)},Pgt=Hyr;function Uyr(t){function e($,z,Z,K,Q){for(var ee=0,X=0,te=0,J=0,ne,ie,he=0,de=0,ce,Ee=ce=ne=0,Me=0,Be=0,ze=0,je=0,ye=Z.length,me=ye-1,le,pe="",Ne="",_e="",ue="",se;Me<ye;){if(ie=Z.charCodeAt(Me),Me===me&&X+J+te+ee!==0&&(X!==0&&(ie=X===47?10:47),J=te=ee=0,ye++,me++),X+J+te+ee===0){if(Me===me&&(0<Be&&(pe=pe.replace(f,"")),0<pe.trim().length)){switch(ie){case 32:case 9:case 59:case 13:case 10:break;default:pe+=Z.charAt(Me)}ie=59}switch(ie){case 123:for(pe=pe.trim(),ne=pe.charCodeAt(0),ce=1,je=++Me;Me<ye;){switch(ie=Z.charCodeAt(Me)){case 123:ce++;break;case 125:ce--;break;case 47:switch(ie=Z.charCodeAt(Me+1)){case 42:case 47:e:{for(Ee=Me+1;Ee<me;++Ee)switch(Z.charCodeAt(Ee)){case 47:if(ie===42&&Z.charCodeAt(Ee-1)===42&&Me+2!==Ee){Me=Ee+1;break e}break;case 10:if(ie===47){Me=Ee+1;break e}}Me=Ee}}break;case 91:ie++;case 40:ie++;case 34:case 39:for(;Me++<me&&Z.charCodeAt(Me)!==ie;);}if(ce===0)break;Me++}switch(ce=Z.substring(je,Me),ne===0&&(ne=(pe=pe.replace(h,"").trim()).charCodeAt(0)),ne){case 64:switch(0<Be&&(pe=pe.replace(f,"")),ie=pe.charCodeAt(1),ie){case 100:case 109:case 115:case 45:Be=z;break;default:Be=M}if(ce=e(z,Be,ce,ie,Q+1),je=ce.length,0<B&&(Be=n(M,pe,ze),se=l(3,ce,Be,z,I,L,je,ie,Q,K),pe=Be.join(""),se!==void 0&&(je=(ce=se.trim()).length)===0&&(ie=0,ce="")),0<je)switch(ie){case 115:pe=pe.replace(_,s);case 100:case 109:case 45:ce=pe+"{"+ce+"}";break;case 107:pe=pe.replace(y,"$1 $2"),ce=pe+"{"+ce+"}",ce=T===1||T===2&&o("@"+ce,3)?"@-webkit-"+ce+"@"+ce:"@"+ce;break;default:ce=pe+ce,K===112&&(ce=(Ne+=ce,""))}else ce="";break;default:ce=e(z,n(z,pe,ze),ce,K,Q+1)}_e+=ce,ce=ze=Be=Ee=ne=0,pe="",ie=Z.charCodeAt(++Me);break;case 125:case 59:if(pe=(0<Be?pe.replace(f,""):pe).trim(),1<(je=pe.length))switch(Ee===0&&(ne=pe.charCodeAt(0),ne===45||96<ne&&123>ne)&&(je=(pe=pe.replace(" ",":")).length),0<B&&(se=l(1,pe,z,$,I,L,Ne.length,K,Q,K))!==void 0&&(je=(pe=se.trim()).length)===0&&(pe="\0\0"),ne=pe.charCodeAt(0),ie=pe.charCodeAt(1),ne){case 0:break;case 64:if(ie===105||ie===99){ue+=pe+Z.charAt(Me);break}default:pe.charCodeAt(je-1)!==58&&(Ne+=a(pe,ne,ie,pe.charCodeAt(2)))}ze=Be=Ee=ne=0,pe="",ie=Z.charCodeAt(++Me)}}switch(ie){case 13:case 10:X===47?X=0:1+ne===0&&K!==107&&0<pe.length&&(Be=1,pe+="\0"),0<B*H&&l(0,pe,z,$,I,L,Ne.length,K,Q,K),L=1,I++;break;case 59:case 125:if(X+J+te+ee===0){L++;break}default:switch(L++,le=Z.charAt(Me),ie){case 9:case 32:if(J+ee+X===0)switch(he){case 44:case 58:case 9:case 32:le="";break;default:ie!==32&&(le=" ")}break;case 0:le="\\0";break;case 12:le="\\f";break;case 11:le="\\v";break;case 38:J+X+ee===0&&(Be=ze=1,le="\f"+le);break;case 108:if(J+X+ee+b===0&&0<Ee)switch(Me-Ee){case 2:he===112&&Z.charCodeAt(Me-3)===58&&(b=he);case 8:de===111&&(b=de)}break;case 58:J+X+ee===0&&(Ee=Me);break;case 44:X+te+J+ee===0&&(Be=1,le+="\r");break;case 34:case 39:X===0&&(J=J===ie?0:J===0?ie:J);break;case 91:J+X+te===0&&ee++;break;case 93:J+X+te===0&&ee--;break;case 41:J+X+ee===0&&te--;break;case 40:if(J+X+ee===0){if(ne===0)switch(2*he+3*de){case 533:break;default:ne=1}te++}break;case 64:X+te+J+ee+Ee+ce===0&&(ce=1);break;case 42:case 47:if(!(0<J+ee+te))switch(X){case 0:switch(2*ie+3*Z.charCodeAt(Me+1)){case 235:X=47;break;case 220:je=Me,X=42}break;case 42:ie===47&&he===42&&je+2!==Me&&(Z.charCodeAt(je+2)===33&&(Ne+=Z.substring(je,Me+1)),le="",X=0)}}X===0&&(pe+=le)}de=he,he=ie,Me++}if(je=Ne.length,0<je){if(Be=z,0<B&&(se=l(2,Ne,Be,$,I,L,je,K,Q,K),se!==void 0&&(Ne=se).length===0))return ue+Ne+_e;if(Ne=Be.join(",")+"{"+Ne+"}",T*b!==0){switch(T!==2||o(Ne,2)||(b=0),b){case 111:Ne=Ne.replace(x,":-moz-$1")+Ne;break;case 112:Ne=Ne.replace(S,"::-webkit-input-$1")+Ne.replace(S,"::-moz-$1")+Ne.replace(S,":-ms-input-$1")+Ne}b=0}}return ue+Ne+_e}function n($,z,Z){var K=z.trim().split(v);z=K;var Q=K.length,ee=$.length;switch(ee){case 0:case 1:var X=0;for($=ee===0?"":$[0]+" ";X<Q;++X)z[X]=r($,z[X],Z).trim();break;default:var te=X=0;for(z=[];X<Q;++X)for(var J=0;J<ee;++J)z[te++]=r($[J]+" ",K[X],Z).trim()}return z}function r($,z,Z){var K=z.charCodeAt(0);switch(33>K&&(K=(z=z.trim()).charCodeAt(0)),K){case 38:return z.replace(A,"$1"+$.trim());case 58:return $.trim()+z.replace(A,"$1"+$.trim());default:if(0<1*Z&&0<z.indexOf("\f"))return z.replace(A,($.charCodeAt(0)===58?"":"$1")+$.trim())}return $+z}function a($,z,Z,K){var Q=$+";",ee=2*z+3*Z+4*K;if(ee===944){$=Q.indexOf(":",9)+1;var X=Q.substring($,Q.length-1).trim();return X=Q.substring(0,$).trim()+X+";",T===1||T===2&&o(X,1)?"-webkit-"+X+X:X}if(T===0||T===2&&!o(Q,1))return Q;switch(ee){case 1015:return Q.charCodeAt(10)===97?"-webkit-"+Q+Q:Q;case 951:return Q.charCodeAt(3)===116?"-webkit-"+Q+Q:Q;case 963:return Q.charCodeAt(5)===110?"-webkit-"+Q+Q:Q;case 1009:if(Q.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+Q+Q;case 978:return"-webkit-"+Q+"-moz-"+Q+Q;case 1019:case 983:return"-webkit-"+Q+"-moz-"+Q+"-ms-"+Q+Q;case 883:if(Q.charCodeAt(8)===45)return"-webkit-"+Q+Q;if(0<Q.indexOf("image-set(",11))return Q.replace(N,"$1-webkit-$2")+Q;break;case 932:if(Q.charCodeAt(4)===45)switch(Q.charCodeAt(5)){case 103:return"-webkit-box-"+Q.replace("-grow","")+"-webkit-"+Q+"-ms-"+Q.replace("grow","positive")+Q;case 115:return"-webkit-"+Q+"-ms-"+Q.replace("shrink","negative")+Q;case 98:return"-webkit-"+Q+"-ms-"+Q.replace("basis","preferred-size")+Q}return"-webkit-"+Q+"-ms-"+Q+Q;case 964:return"-webkit-"+Q+"-ms-flex-"+Q+Q;case 1023:if(Q.charCodeAt(8)!==99)break;return X=Q.substring(Q.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+X+"-webkit-"+Q+"-ms-flex-pack"+X+Q;case 1005:return m.test(Q)?Q.replace(p,":-webkit-")+Q.replace(p,":-moz-")+Q:Q;case 1e3:switch(X=Q.substring(13).trim(),z=X.indexOf("-")+1,X.charCodeAt(0)+X.charCodeAt(z)){case 226:X=Q.replace(w,"tb");break;case 232:X=Q.replace(w,"tb-rl");break;case 220:X=Q.replace(w,"lr");break;default:return Q}return"-webkit-"+Q+"-ms-"+X+Q;case 1017:if(Q.indexOf("sticky",9)===-1)break;case 975:switch(z=(Q=$).length-10,X=(Q.charCodeAt(z)===33?Q.substring(0,z):Q).substring($.indexOf(":",7)+1).trim(),ee=X.charCodeAt(0)+(X.charCodeAt(7)|0)){case 203:if(111>X.charCodeAt(8))break;case 115:Q=Q.replace(X,"-webkit-"+X)+";"+Q;break;case 207:case 102:Q=Q.replace(X,"-webkit-"+(102<ee?"inline-":"")+"box")+";"+Q.replace(X,"-webkit-"+X)+";"+Q.replace(X,"-ms-"+X+"box")+";"+Q}return Q+";";case 938:if(Q.charCodeAt(5)===45)switch(Q.charCodeAt(6)){case 105:return X=Q.replace("-items",""),"-webkit-"+Q+"-webkit-box-"+X+"-ms-flex-"+X+Q;case 115:return"-webkit-"+Q+"-ms-flex-item-"+Q.replace(R,"")+Q;default:return"-webkit-"+Q+"-ms-flex-line-pack"+Q.replace("align-content","").replace(R,"")+Q}break;case 973:case 989:if(Q.charCodeAt(3)!==45||Q.charCodeAt(4)===122)break;case 931:case 953:if(P.test($)===!0)return(X=$.substring($.indexOf(":")+1)).charCodeAt(0)===115?a($.replace("stretch","fill-available"),z,Z,K).replace(":fill-available",":stretch"):Q.replace(X,"-webkit-"+X)+Q.replace(X,"-moz-"+X.replace("fill-",""))+Q;break;case 962:if(Q="-webkit-"+Q+(Q.charCodeAt(5)===102?"-ms-"+Q:"")+Q,Z+K===211&&Q.charCodeAt(13)===105&&0<Q.indexOf("transform",10))return Q.substring(0,Q.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+Q}return Q}function o($,z){var Z=$.indexOf(z===1?":":"{"),K=$.substring(0,z!==3?Z:10);return Z=$.substring(Z+1,$.length-1),j(z!==2?K:K.replace(k,"$1"),Z,z)}function s($,z){var Z=a(z,z.charCodeAt(0),z.charCodeAt(1),z.charCodeAt(2));return Z!==z+";"?Z.replace(C," or ($1)").substring(4):"("+z+")"}function l($,z,Z,K,Q,ee,X,te,J,ne){for(var ie=0,he=z,de;ie<B;++ie)switch(de=D[ie].call(d,$,he,Z,K,Q,ee,X,te,J,ne)){case void 0:case!1:case!0:case null:break;default:he=de}if(he!==z)return he}function c($){switch($){case void 0:case null:B=D.length=0;break;default:if(typeof $=="function")D[B++]=$;else if(typeof $=="object")for(var z=0,Z=$.length;z<Z;++z)c($[z]);else H=!!$|0}return c}function u($){return $=$.prefix,$!==void 0&&(j=null,$?typeof $!="function"?T=1:(T=2,j=$):T=0),u}function d($,z){var Z=$;if(33>Z.charCodeAt(0)&&(Z=Z.trim()),U=Z,Z=[U],0<B){var K=l(-1,z,Z,Z,I,L,0,0,0,0);K!==void 0&&typeof K=="string"&&(z=K)}var Q=e(M,Z,z,0,0);return 0<B&&(K=l(-2,Q,Z,Z,I,L,Q.length,0,0,0),K!==void 0&&(Q=K)),U="",b=0,L=I=1,Q}var h=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,g=/([,: ])(transform)/g,v=/,\r+?/g,A=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,x=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,R=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,N=/([^-])(image-set\()/,L=1,I=1,b=0,T=1,M=[],D=[],B=0,j=null,H=0,U="";return d.use=c,d.set=u,t!==void 0&&u(t),d}var zyr={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ew(){return(ew=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var Ogt=function(t,e){for(var n=[t[0]],r=0,a=e.length;r<a;r+=1)n.push(e[r],t[r+1]);return n},Kje=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!gZe.typeOf(t)},Kve=Object.freeze([]),v5=Object.freeze({});function GH(t){return typeof t=="function"}function Lgt(t){return t.displayName||t.name||"Component"}function cXe(t){return t&&typeof t.styledComponentId=="string"}var VH=typeof wa<"u"&&wa.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",uXe=typeof window<"u"&&"HTMLElement"in window,Gyr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof wa<"u"&&wa.env!==void 0&&({}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY)),Vyr={};function d6(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Kyr=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var r=0,a=0;a<n;a++)r+=this.groupSizes[a];return r},e.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var a=this.groupSizes,o=a.length,s=o;n>=s;)(s<<=1)<0&&d6(16,""+n);this.groupSizes=new Uint32Array(s),this.groupSizes.set(a),this.length=s;for(var l=o;l<s;l++)this.groupSizes[l]=0}for(var c=this.indexOfGroup(n+1),u=0,d=r.length;u<d;u++)this.tag.insertRule(c,r[u])&&(this.groupSizes[n]++,c++)},e.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],a=this.indexOfGroup(n),o=a+r;this.groupSizes[n]=0;for(var s=a;s<o;s++)this.tag.deleteRule(a)}},e.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var a=this.groupSizes[n],o=this.indexOfGroup(n),s=o+a,l=o;l<s;l++)r+=this.tag.getRule(l)+`/*!sc*/
`;return r},t}(),tme=new Map,Wve=new Map,TX=1,Xle=function(t){if(tme.has(t))return tme.get(t);for(;Wve.has(TX);)TX++;var e=TX++;return tme.set(t,e),Wve.set(e,t),e},Wyr=function(t){return Wve.get(t)},Qyr=function(t,e){e>=TX&&(TX=e+1),tme.set(t,e),Wve.set(e,t)},qyr="style["+VH+'][data-styled-version="5.3.11"]',Yyr=new RegExp("^"+VH+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Jyr=function(t,e,n){for(var r,a=n.split(","),o=0,s=a.length;o<s;o++)(r=a[o])&&t.registerName(e,r)},Zyr=function(t,e){for(var n=(e.textContent||"").split(`/*!sc*/
`),r=[],a=0,o=n.length;a<o;a++){var s=n[a].trim();if(s){var l=s.match(Yyr);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(Qyr(u,c),Jyr(t,u,l[3]),t.getTag().insertRules(c,r)),r.length=0}else r.push(s)}}},Xyr=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},bqt=function(t){var e=document.head,n=t||e,r=document.createElement("style"),a=function(l){for(var c=l.childNodes,u=c.length;u>=0;u--){var d=c[u];if(d&&d.nodeType===1&&d.hasAttribute(VH))return d}}(n),o=a!==void 0?a.nextSibling:null;r.setAttribute(VH,"active"),r.setAttribute("data-styled-version","5.3.11");var s=Xyr();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},ebr=function(){function t(n){var r=this.element=bqt(n);r.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var o=document.styleSheets,s=0,l=o.length;s<l;s++){var c=o[s];if(c.ownerNode===a)return c}d6(17)}(r),this.length=0}var e=t.prototype;return e.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},t}(),tbr=function(){function t(n){var r=this.element=bqt(n);this.nodes=r.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(n,r){if(n<=this.length&&n>=0){var a=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(a,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},t}(),nbr=function(){function t(n){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.getRule=function(n){return n<this.length?this.rules[n]:""},t}(),Bgt=uXe,rbr={isServer:!uXe,useCSSOMInjection:!Gyr},Qve=function(){function t(n,r,a){n===void 0&&(n=v5),r===void 0&&(r={}),this.options=ew({},rbr,{},n),this.gs=r,this.names=new Map(a),this.server=!!n.isServer,!this.server&&uXe&&Bgt&&(Bgt=!1,function(o){for(var s=document.querySelectorAll(qyr),l=0,c=s.length;l<c;l++){var u=s[l];u&&u.getAttribute(VH)!=="active"&&(Zyr(o,u),u.parentNode&&u.parentNode.removeChild(u))}}(this))}t.registerId=function(n){return Xle(n)};var e=t.prototype;return e.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new t(ew({},this.options,{},n),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.getTag=function(){return this.tag||(this.tag=(a=(r=this.options).isServer,o=r.useCSSOMInjection,s=r.target,n=a?new nbr(s):o?new ebr(s):new tbr(s),new Kyr(n)));var n,r,a,o,s},e.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.registerName=function(n,r){if(Xle(n),this.names.has(n))this.names.get(n).add(r);else{var a=new Set;a.add(r),this.names.set(n,a)}},e.insertRules=function(n,r,a){this.registerName(n,r),this.getTag().insertRules(Xle(n),a)},e.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.clearRules=function(n){this.getTag().clearGroup(Xle(n)),this.clearNames(n)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(n){for(var r=n.getTag(),a=r.length,o="",s=0;s<a;s++){var l=Wyr(s);if(l!==void 0){var c=n.names.get(l),u=r.getGroup(s);if(c&&u&&c.size){var d=VH+".g"+s+'[id="'+l+'"]',h="";c!==void 0&&c.forEach(function(f){f.length>0&&(h+=f+",")}),o+=""+u+d+'{content:"'+h+`"}/*!sc*/
`}}}return o}(this)},t}(),ibr=/(a)(d)/gi,Dgt=function(t){return String.fromCharCode(t+(t>25?39:97))};function Wje(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Dgt(e%52)+n;return(Dgt(e%52)+n).replace(ibr,"$1-$2")}var FF=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},xqt=function(t){return FF(5381,t)};function Eqt(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(GH(n)&&!cXe(n))return!1}return!0}var abr=xqt("5.3.11"),obr=function(){function t(e,n,r){this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&Eqt(e),this.componentId=n,this.baseHash=FF(abr,n),this.baseStyle=r,Qve.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var a=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(a,this.staticRulesId))o.push(this.staticRulesId);else{var s=h6(this.rules,e,n,r).join(""),l=Wje(FF(this.baseHash,s)>>>0);if(!n.hasNameForId(a,l)){var c=r(s,"."+l,void 0,a);n.insertRules(a,l,c)}o.push(l),this.staticRulesId=l}else{for(var u=this.rules.length,d=FF(this.baseHash,r.hash),h="",f=0;f<u;f++){var p=this.rules[f];if(typeof p=="string")h+=p;else if(p){var m=h6(p,e,n,r),g=Array.isArray(m)?m.join(""):m;d=FF(d,g+f),h+=g}}if(h){var v=Wje(d>>>0);if(!n.hasNameForId(a,v)){var A=r(h,"."+v,void 0,a);n.insertRules(a,v,A)}o.push(v)}}return o.join(" ")},t}(),sbr=/^\s*\/\/.*$/gm,lbr=[":","[",".","#"];function cbr(t){var e,n,r,a,o=t===void 0?v5:t,s=o.options,l=s===void 0?v5:s,c=o.plugins,u=c===void 0?Kve:c,d=new Uyr(l),h=[],f=function(g){function v(A){if(A)try{g(A+"}")}catch{}}return function(A,y,S,x,w,_,C,R,k,P){switch(A){case 1:if(k===0&&y.charCodeAt(0)===64)return g(y+";"),"";break;case 2:if(R===0)return y+"/*|*/";break;case 3:switch(R){case 102:case 112:return g(S[0]+y),"";default:return y+(P===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(v)}}}(function(g){h.push(g)}),p=function(g,v,A){return v===0&&lbr.indexOf(A[n.length])!==-1||A.match(a)?g:"."+e};function m(g,v,A,y){y===void 0&&(y="&");var S=g.replace(sbr,""),x=v&&A?A+" "+v+" { "+S+" }":S;return e=y,n=v,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),d(A||!v?"":v,x)}return d.use([].concat(u,[function(g,v,A){g===2&&A.length&&A[0].lastIndexOf(n)>0&&(A[0]=A[0].replace(r,p))},f,function(g){if(g===-2){var v=h;return h=[],v}}])),m.hash=u.length?u.reduce(function(g,v){return v.name||d6(15),FF(g,v.name)},5381).toString():"",m}var Sqt=ke.createContext();Sqt.Consumer;var wqt=ke.createContext(),ubr=(wqt.Consumer,new Qve),Qje=cbr();function _qt(){return Y.useContext(Sqt)||ubr}function Tqt(){return Y.useContext(wqt)||Qje}var dbr=function(){function t(e,n){var r=this;this.inject=function(a,o){o===void 0&&(o=Qje);var s=r.name+o.hash;a.hasNameForId(r.id,s)||a.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.toString=function(){return d6(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=Qje),this.name+e.hash},t}(),hbr=/([A-Z])/,fbr=/([A-Z])/g,pbr=/^ms-/,mbr=function(t){return"-"+t.toLowerCase()};function $gt(t){return hbr.test(t)?t.replace(fbr,mbr).replace(pbr,"-ms-"):t}var Fgt=function(t){return t==null||t===!1||t===""};function h6(t,e,n,r){if(Array.isArray(t)){for(var a,o=[],s=0,l=t.length;s<l;s+=1)(a=h6(t[s],e,n,r))!==""&&(Array.isArray(a)?o.push.apply(o,a):o.push(a));return o}if(Fgt(t))return"";if(cXe(t))return"."+t.styledComponentId;if(GH(t)){if(typeof(u=t)!="function"||u.prototype&&u.prototype.isReactComponent||!e)return t;var c=t(e);return h6(c,e,n,r)}var u;return t instanceof dbr?n?(t.inject(n,r),t.getName(r)):t:Kje(t)?function d(h,f){var p,m,g=[];for(var v in h)h.hasOwnProperty(v)&&!Fgt(h[v])&&(Array.isArray(h[v])&&h[v].isCss||GH(h[v])?g.push($gt(v)+":",h[v],";"):Kje(h[v])?g.push.apply(g,d(h[v],v)):g.push($gt(v)+": "+(p=v,(m=h[v])==null||typeof m=="boolean"||m===""?"":typeof m!="number"||m===0||p in zyr||p.startsWith("--")?String(m).trim():m+"px")+";"));return f?[f+" {"].concat(g,["}"]):g}(t):t.toString()}var jgt=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function Cqt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return GH(t)||Kje(t)?jgt(h6(Ogt(Kve,[t].concat(n)))):n.length===0&&t.length===1&&typeof t[0]=="string"?t:jgt(h6(Ogt(t,n)))}var kqt=function(t,e,n){return n===void 0&&(n=v5),t.theme!==n.theme&&t.theme||e||n.theme},gbr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vbr=/(^-|-$)/g;function n5e(t){return t.replace(gbr,"-").replace(vbr,"")}var Rqt=function(t){return Wje(xqt(t)>>>0)};function ece(t){return typeof t=="string"&&!0}var qje=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},Abr=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function ybr(t,e,n){var r=t[n];qje(e)&&qje(r)?Mqt(r,e):t[n]=e}function Mqt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var a=0,o=n;a<o.length;a++){var s=o[a];if(qje(s))for(var l in s)Abr(l)&&ybr(t,s[l],l)}return t}var Tte=ke.createContext();Tte.Consumer;function bbr(t){var e=Y.useContext(Tte),n=Y.useMemo(function(){return function(r,a){if(!r)return d6(14);if(GH(r)){var o=r(a);return o}return Array.isArray(r)||typeof r!="object"?d6(8):a?ew({},a,{},r):r}(t.theme,e)},[t.theme,e]);return t.children?ke.createElement(Tte.Provider,{value:n},t.children):null}var r5e={};function Nqt(t,e,n){var r=cXe(t),a=!ece(t),o=e.attrs,s=o===void 0?Kve:o,l=e.componentId,c=l===void 0?function(y,S){var x=typeof y!="string"?"sc":n5e(y);r5e[x]=(r5e[x]||0)+1;var w=x+"-"+Rqt("5.3.11"+x+r5e[x]);return S?S+"-"+w:w}(e.displayName,e.parentComponentId):l,u=e.displayName,d=u===void 0?function(y){return ece(y)?"styled."+y:"Styled("+Lgt(y)+")"}(t):u,h=e.displayName&&e.componentId?n5e(e.displayName)+"-"+e.componentId:e.componentId||c,f=r&&t.attrs?Array.prototype.concat(t.attrs,s).filter(Boolean):s,p=e.shouldForwardProp;r&&t.shouldForwardProp&&(p=e.shouldForwardProp?function(y,S,x){return t.shouldForwardProp(y,S,x)&&e.shouldForwardProp(y,S,x)}:t.shouldForwardProp);var m,g=new obr(n,h,r?t.componentStyle:void 0),v=g.isStatic&&s.length===0,A=function(y,S){return function(x,w,_,C){var R=x.attrs,k=x.componentStyle,P=x.defaultProps,N=x.foldedComponentIds,L=x.shouldForwardProp,I=x.styledComponentId,b=x.target,T=function(K,Q,ee){K===void 0&&(K=v5);var X=ew({},Q,{theme:K}),te={};return ee.forEach(function(J){var ne,ie,he,de=J;for(ne in GH(de)&&(de=de(X)),de)X[ne]=te[ne]=ne==="className"?(ie=te[ne],he=de[ne],ie&&he?ie+" "+he:ie||he):de[ne]}),[X,te]}(kqt(w,Y.useContext(Tte),P)||v5,w,R),M=T[0],D=T[1],B=function(K,Q,ee,X){var te=_qt(),J=Tqt(),ne=Q?K.generateAndInjectStyles(v5,te,J):K.generateAndInjectStyles(ee,te,J);return ne}(k,C,M),j=_,H=D.$as||w.$as||D.as||w.as||b,U=ece(H),$=D!==w?ew({},w,{},D):w,z={};for(var Z in $)Z[0]!=="$"&&Z!=="as"&&(Z==="forwardedAs"?z.as=$[Z]:(L?L(Z,Fje,H):!U||Fje(Z))&&(z[Z]=$[Z]));return w.style&&D.style!==w.style&&(z.style=ew({},w.style,{},D.style)),z.className=Array.prototype.concat(N,I,B!==I?B:null,w.className,D.className).filter(Boolean).join(" "),z.ref=j,Y.createElement(H,z)}(m,y,S,v)};return A.displayName=d,(m=ke.forwardRef(A)).attrs=f,m.componentStyle=g,m.displayName=d,m.shouldForwardProp=p,m.foldedComponentIds=r?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Kve,m.styledComponentId=h,m.target=r?t.target:t,m.withComponent=function(y){var S=e.componentId,x=function(_,C){if(_==null)return{};var R,k,P={},N=Object.keys(_);for(k=0;k<N.length;k++)R=N[k],C.indexOf(R)>=0||(P[R]=_[R]);return P}(e,["componentId"]),w=S&&S+"-"+(ece(y)?y:n5e(Lgt(y)));return Nqt(y,ew({},x,{attrs:f,componentId:w}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=r?Mqt({},t.defaultProps,y):y}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),a&&Pfr(m,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Yje=function(t){return function e(n,r,a){if(a===void 0&&(a=v5),!gZe.isValidElementType(r))return d6(1,String(r));var o=function(){return n(r,a,Cqt.apply(void 0,arguments))};return o.withConfig=function(s){return e(n,r,ew({},a,{},s))},o.attrs=function(s){return e(n,r,ew({},a,{attrs:Array.prototype.concat(a.attrs,s).filter(Boolean)}))},o}(Nqt,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){Yje[t]=Yje(t)});var xbr=function(){function t(n,r){this.rules=n,this.componentId=r,this.isStatic=Eqt(n),Qve.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,r,a,o){var s=o(h6(this.rules,r,a,o).join(""),""),l=this.componentId+n;a.insertRules(l,l,s)},e.removeStyles=function(n,r){r.clearRules(this.componentId+n)},e.renderStyles=function(n,r,a,o){n>2&&Qve.registerId(this.componentId+n),this.removeStyles(n,a),this.createStyles(n,r,a,o)},t}();function Ebr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var a=Cqt.apply(void 0,[t].concat(n)),o="sc-global-"+Rqt(JSON.stringify(a)),s=new xbr(a,o);function l(u){var d=_qt(),h=Tqt(),f=Y.useContext(Tte),p=Y.useRef(d.allocateGSInstance(o)).current;return d.server&&c(p,u,d,f,h),Y.useLayoutEffect(function(){if(!d.server)return c(p,u,d,f,h),function(){return s.removeStyles(p,d)}},[p,u,d,f,h]),null}function c(u,d,h,f,p){if(s.isStatic)s.renderStyles(u,Vyr,h,p);else{var m=ew({},d,{theme:kqt(d,f,l.defaultProps)});s.renderStyles(u,m,h,p)}}return ke.memo(l)}const gt=Yje;function Iqt(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=Iqt(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function nr(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=Iqt(t))&&(r&&(r+=" "),r+=e);return r}function Sbr(t){return mi("MuiSvgIcon",t)}ei("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wbr=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_br=t=>{const{color:e,fontSize:n,classes:r}=t,a={root:["root",e!=="inherit"&&`color${fn(e)}`,`fontSize${fn(n)}`]};return gi(a,Sbr,r)},Tbr=En("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${fn(n.color)}`],e[`fontSize${fn(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,r,a,o,s,l,c,u,d,h,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(a=t.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=t.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=t.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=t.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[e.fontSize],color:(h=(f=(t.vars||t).palette)==null||(f=f[e.color])==null?void 0:f.main)!=null?h:{action:(p=(t.vars||t).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(m=(t.vars||t).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[e.color]}}),Pqt=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=r,p=Wn(r,wbr),m=Y.isValidElement(a)&&a.type==="svg",g=Ce({},r,{color:s,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:m}),v={};d||(v.viewBox=f);const A=_br(g);return E.jsxs(Tbr,Ce({as:l,className:nr(A.root,o),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},v,p,m&&a.props,{ownerState:g,children:[m?a.props.children:a,h?E.jsx("title",{children:h}):null]}))});Pqt.muiName="SvgIcon";const Jje=Pqt;function xl(t,e){function n(r,a){return E.jsx(Jje,Ce({"data-testid":`${e}Icon`,ref:a},r,{children:t}))}return n.muiName=Jje.muiName,Y.memo(Y.forwardRef(n))}const Cbr={configure:t=>{XZe.configure(t)}},kbr=Object.freeze(Object.defineProperty({__proto__:null,capitalize:fn,createChainedFunction:Gve,createSvgIcon:xl,debounce:jxe,deprecatedPropType:HAr,isMuiElement:Zpe,ownerDocument:xp,ownerWindow:$2,requirePropFactory:UAr,setRef:Ete,unstable_ClassNameGenerator:Cbr,unstable_useEnhancedEffect:Cw,unstable_useId:O8,unsupportedProp:GAr,useControlled:fw,useEventCallback:pv,useForkRef:ju,useIsFocusVisible:nXe},Symbol.toStringTag,{value:"Module"}));var qc={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dXe=Symbol.for("react.element"),hXe=Symbol.for("react.portal"),zxe=Symbol.for("react.fragment"),Gxe=Symbol.for("react.strict_mode"),Vxe=Symbol.for("react.profiler"),Kxe=Symbol.for("react.provider"),Wxe=Symbol.for("react.context"),Rbr=Symbol.for("react.server_context"),Qxe=Symbol.for("react.forward_ref"),qxe=Symbol.for("react.suspense"),Yxe=Symbol.for("react.suspense_list"),Jxe=Symbol.for("react.memo"),Zxe=Symbol.for("react.lazy"),Mbr=Symbol.for("react.offscreen"),Oqt;Oqt=Symbol.for("react.module.reference");function sE(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case dXe:switch(t=t.type,t){case zxe:case Vxe:case Gxe:case qxe:case Yxe:return t;default:switch(t=t&&t.$$typeof,t){case Rbr:case Wxe:case Qxe:case Zxe:case Jxe:case Kxe:return t;default:return e}}case hXe:return e}}}qc.ContextConsumer=Wxe;qc.ContextProvider=Kxe;qc.Element=dXe;qc.ForwardRef=Qxe;qc.Fragment=zxe;qc.Lazy=Zxe;qc.Memo=Jxe;qc.Portal=hXe;qc.Profiler=Vxe;qc.StrictMode=Gxe;qc.Suspense=qxe;qc.SuspenseList=Yxe;qc.isAsyncMode=function(){return!1};qc.isConcurrentMode=function(){return!1};qc.isContextConsumer=function(t){return sE(t)===Wxe};qc.isContextProvider=function(t){return sE(t)===Kxe};qc.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===dXe};qc.isForwardRef=function(t){return sE(t)===Qxe};qc.isFragment=function(t){return sE(t)===zxe};qc.isLazy=function(t){return sE(t)===Zxe};qc.isMemo=function(t){return sE(t)===Jxe};qc.isPortal=function(t){return sE(t)===hXe};qc.isProfiler=function(t){return sE(t)===Vxe};qc.isStrictMode=function(t){return sE(t)===Gxe};qc.isSuspense=function(t){return sE(t)===qxe};qc.isSuspenseList=function(t){return sE(t)===Yxe};qc.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===zxe||t===Vxe||t===Gxe||t===qxe||t===Yxe||t===Mbr||typeof t=="object"&&t!==null&&(t.$$typeof===Zxe||t.$$typeof===Jxe||t.$$typeof===Kxe||t.$$typeof===Wxe||t.$$typeof===Qxe||t.$$typeof===Oqt||t.getModuleId!==void 0)};qc.typeOf=sE;function Jie(t){return Vi}const Hgt={disabled:!1},qve=ke.createContext(null);var Nbr=function(e){return e.scrollTop},iZ="unmounted",zL="exited",GL="entering",eF="entered",Zje="exiting",JM=function(t){Ev(e,t);function e(r,a){var o;o=t.call(this,r,a)||this;var s=a,l=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?l?(c=zL,o.appearStatus=GL):c=eF:r.unmountOnExit||r.mountOnEnter?c=iZ:c=zL,o.state={status:c},o.nextCallback=null,o}e.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===iZ?{status:zL}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==GL&&s!==eF&&(o=GL):(s===GL||s===eF)&&(o=Zje)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,o,s,l;return o=s=l=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,l=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===GL){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:JT.findDOMNode(this);s&&Nbr(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zL&&this.setState({status:iZ})},n.performEnter=function(a){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[JT.findDOMNode(this),l],u=c[0],d=c[1],h=this.getTimeouts(),f=l?h.appear:h.enter;if(!a&&!s||Hgt.disabled){this.safeSetState({status:eF},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:GL},function(){o.props.onEntering(u,d),o.onTransitionEnd(f,function(){o.safeSetState({status:eF},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:JT.findDOMNode(this);if(!o||Hgt.disabled){this.safeSetState({status:zL},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Zje},function(){a.props.onExiting(l),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:zL},function(){a.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},n.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,a(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:JT.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===iZ)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Wn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(qve.Provider,{value:null},typeof s=="function"?s(a,l):ke.cloneElement(ke.Children.only(s),l))},e}(ke.Component);JM.contextType=qve;JM.propTypes={};function s$(){}JM.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s$,onEntering:s$,onEntered:s$,onExit:s$,onExiting:s$,onExited:s$};JM.UNMOUNTED=iZ;JM.EXITED=zL;JM.ENTERING=GL;JM.ENTERED=eF;JM.EXITING=Zje;const Xxe=JM;function pi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fXe(t,e){var n=function(o){return e&&Y.isValidElement(o)?e(o):o},r=Object.create(null);return t&&Y.Children.map(t,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function Ibr(t,e){t=t||{},e=e||{};function n(d){return d in e?e[d]:t[d]}var r=Object.create(null),a=[];for(var o in t)o in e?a.length&&(r[o]=a,a=[]):a.push(o);var s,l={};for(var c in e){if(r[c])for(s=0;s<r[c].length;s++){var u=r[c][s];l[r[c][s]]=n(u)}l[c]=n(c)}for(s=0;s<a.length;s++)l[a[s]]=n(a[s]);return l}function FB(t,e,n){return n[e]!=null?n[e]:t.props[e]}function Pbr(t,e){return fXe(t.children,function(n){return Y.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:FB(n,"appear",t),enter:FB(n,"enter",t),exit:FB(n,"exit",t)})})}function Obr(t,e,n){var r=fXe(t.children),a=Ibr(e,r);return Object.keys(a).forEach(function(o){var s=a[o];if(Y.isValidElement(s)){var l=o in e,c=o in r,u=e[o],d=Y.isValidElement(u)&&!u.props.in;c&&(!l||d)?a[o]=Y.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:FB(s,"exit",t),enter:FB(s,"enter",t)}):!c&&l&&!d?a[o]=Y.cloneElement(s,{in:!1}):c&&l&&Y.isValidElement(u)&&(a[o]=Y.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:FB(s,"exit",t),enter:FB(s,"enter",t)}))}}),a}var Lbr=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},Bbr={component:"div",childFactory:function(e){return e}},pXe=function(t){Ev(e,t);function e(r,a){var o;o=t.call(this,r,a)||this;var s=o.handleExited.bind(pi(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(a,o){var s=o.children,l=o.handleExited,c=o.firstRender;return{children:c?Pbr(a,l):Obr(a,s,l),firstRender:!1}},n.handleExited=function(a,o){var s=fXe(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(o),this.mounted&&this.setState(function(l){var c=Ce({},l.children);return delete c[a.key],{children:c}}))},n.render=function(){var a=this.props,o=a.component,s=a.childFactory,l=Wn(a,["component","childFactory"]),c=this.state.contextValue,u=Lbr(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,o===null?ke.createElement(qve.Provider,{value:c},u):ke.createElement(qve.Provider,{value:c},ke.createElement(o,l,u))},e}(ke.Component);pXe.propTypes={};pXe.defaultProps=Bbr;const Dbr=pXe,mXe=t=>t.scrollTop;function Z5(t,e){var n,r;const{timeout:a,easing:o,style:s={}}=t;return{duration:(n=s.transitionDuration)!=null?n:typeof a=="number"?a:a[e.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[e.mode]:o,delay:s.transitionDelay}}function $br(t){return mi("MuiCollapse",t)}ei("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Fbr=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],jbr=t=>{const{orientation:e,classes:n}=t,r={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return gi(r,$br,n)},Hbr=En("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.state==="entered"&&e.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&e.hidden]}})(({theme:t,ownerState:e})=>Ce({height:0,overflow:"hidden",transition:t.transitions.create("height")},e.orientation==="horizontal"&&{height:"auto",width:0,transition:t.transitions.create("width")},e.state==="entered"&&Ce({height:"auto",overflow:"visible"},e.orientation==="horizontal"&&{width:"auto"}),e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&{visibility:"hidden"})),Ubr=En("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(({ownerState:t})=>Ce({display:"flex",width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),zbr=En("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(({ownerState:t})=>Ce({width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),Lqt=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiCollapse"}),{addEndListener:a,children:o,className:s,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:h,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:v,orientation:A="vertical",style:y,timeout:S=vqt.standard,TransitionComponent:x=Xxe}=r,w=Wn(r,Fbr),_=Ce({},r,{orientation:A,collapsedSize:l}),C=jbr(_),R=YM(),k=L3(),P=Y.useRef(null),N=Y.useRef(),L=typeof l=="number"?`${l}px`:l,I=A==="horizontal",b=I?"width":"height",T=Y.useRef(null),M=ju(n,T),D=Q=>ee=>{if(Q){const X=T.current;ee===void 0?Q(X):Q(X,ee)}},B=()=>P.current?P.current[I?"clientWidth":"clientHeight"]:0,j=D((Q,ee)=>{P.current&&I&&(P.current.style.position="absolute"),Q.style[b]=L,h&&h(Q,ee)}),H=D((Q,ee)=>{const X=B();P.current&&I&&(P.current.style.position="");const{duration:te,easing:J}=Z5({style:y,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const ne=R.transitions.getAutoHeightDuration(X);Q.style.transitionDuration=`${ne}ms`,N.current=ne}else Q.style.transitionDuration=typeof te=="string"?te:`${te}ms`;Q.style[b]=`${X}px`,Q.style.transitionTimingFunction=J,p&&p(Q,ee)}),U=D((Q,ee)=>{Q.style[b]="auto",f&&f(Q,ee)}),$=D(Q=>{Q.style[b]=`${B()}px`,m&&m(Q)}),z=D(g),Z=D(Q=>{const ee=B(),{duration:X,easing:te}=Z5({style:y,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const J=R.transitions.getAutoHeightDuration(ee);Q.style.transitionDuration=`${J}ms`,N.current=J}else Q.style.transitionDuration=typeof X=="string"?X:`${X}ms`;Q.style[b]=L,Q.style.transitionTimingFunction=te,v&&v(Q)}),K=Q=>{S==="auto"&&k.start(N.current||0,Q),a&&a(T.current,Q)};return E.jsx(x,Ce({in:d,onEnter:j,onEntered:U,onEntering:H,onExit:$,onExited:z,onExiting:Z,addEndListener:K,nodeRef:T,timeout:S==="auto"?null:S},w,{children:(Q,ee)=>E.jsx(Hbr,Ce({as:c,className:nr(C.root,s,{entered:C.entered,exited:!d&&L==="0px"&&C.hidden}[Q]),style:Ce({[I?"minWidth":"minHeight"]:L},y),ref:M},ee,{ownerState:Ce({},_,{state:Q}),children:E.jsx(Ubr,{ownerState:Ce({},_,{state:Q}),className:C.wrapper,ref:P,children:E.jsx(zbr,{ownerState:Ce({},_,{state:Q}),className:C.wrapperInner,children:o})})}))}))});Lqt.muiSupportAuto=!0;const jo=Lqt;function Gbr(t){return mi("MuiPaper",t)}ei("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Vbr=["className","component","elevation","square","variant"],Kbr=t=>{const{square:e,elevation:n,variant:r,classes:a}=t,o={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return gi(o,Gbr,a)},Wbr=En("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return Ce({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&Ce({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ss("#fff",Pgt(e.elevation))}, ${ss("#fff",Pgt(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),Qbr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiPaper"}),{className:a,component:o="div",elevation:s=1,square:l=!1,variant:c="elevation"}=r,u=Wn(r,Vbr),d=Ce({},r,{component:o,elevation:s,square:l,variant:c}),h=Kbr(d);return E.jsx(Wbr,Ce({as:o,ownerState:d,className:nr(h.root,a),ref:n},u))}),X0=Qbr,qbr=Y.createContext({}),Bqt=qbr;function Yve(t){return typeof t=="string"}function jF(t,e,n){return t===void 0||Yve(t)?e:Ce({},e,{ownerState:Ce({},e.ownerState,n)})}const Ybr={disableDefaultClasses:!1},Jbr=Y.createContext(Ybr);function Zbr(t){const{disableDefaultClasses:e}=Y.useContext(Jbr);return n=>e?"":t(n)}function Jve(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function Dqt(t,e,n){return typeof t=="function"?t(e,n):t}function $qt(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=$qt(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ugt(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=$qt(t))&&(r&&(r+=" "),r+=e);return r}function zgt(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function Fqt(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=t;if(!e){const p=Ugt(n==null?void 0:n.className,o,a==null?void 0:a.className,r==null?void 0:r.className),m=Ce({},n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),g=Ce({},n,a,r);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=Jve(Ce({},a,r)),l=zgt(r),c=zgt(a),u=e(s),d=Ugt(u==null?void 0:u.className,n==null?void 0:n.className,o,a==null?void 0:a.className,r==null?void 0:r.className),h=Ce({},u==null?void 0:u.style,n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),f=Ce({},u,n,c,l);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}const Xbr=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function X5(t){var e;const{elementType:n,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:o=!1}=t,s=Wn(t,Xbr),l=o?{}:Dqt(r,a),{props:c,internalRef:u}=Fqt(Ce({},s,{externalSlotProps:l})),d=ju(u,l==null?void 0:l.ref,(e=t.additionalProps)==null?void 0:e.ref);return jF(n,Ce({},c,{ref:d}),a)}const exr=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],txr=["component","slots","slotProps"],nxr=["component"];function Xje(t,e){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:l}=e,c=Wn(e,exr),{component:u,slots:d={[t]:void 0},slotProps:h={[t]:void 0}}=o,f=Wn(o,txr),p=d[t]||r,m=Dqt(h[t],a),g=Fqt(Ce({className:n},c,{externalForwardedProps:t==="root"?f:void 0,externalSlotProps:m})),{props:{component:v},internalRef:A}=g,y=Wn(g.props,nxr),S=ju(A,m==null?void 0:m.ref,e.ref),x=s?s(y):{},w=Ce({},a,x),_=t==="root"?v||u:v,C=jF(p,Ce({},t==="root"&&!u&&!d[t]&&l,t!=="root"&&!d[t]&&l,y,_&&{as:_},{ref:S}),w);return Object.keys(x).forEach(R=>{delete C[R]}),[p,C]}function rxr(t){return mi("MuiAccordion",t)}const ixr=ei("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),tce=ixr,axr=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],oxr=Jie(),sxr=t=>{const{classes:e,square:n,expanded:r,disabled:a,disableGutters:o}=t;return gi({root:["root",!n&&"rounded",r&&"expanded",a&&"disabled",!o&&"gutters"],region:["region"]},rxr,e)},lxr=En(X0,{name:"MuiAccordion",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${tce.region}`]:e.region},e.root,!n.square&&e.rounded,!n.disableGutters&&e.gutters]}})(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],e),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],e)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${tce.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${tce.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}},({theme:t})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${tce.expanded}`]:{margin:"16px 0"}}}]})),cxr=Y.forwardRef(function(e,n){const r=oxr({props:e,name:"MuiAccordion"}),{children:a,className:o,defaultExpanded:s=!1,disabled:l=!1,disableGutters:c=!1,expanded:u,onChange:d,square:h=!1,slots:f={},slotProps:p={},TransitionComponent:m,TransitionProps:g}=r,v=Wn(r,axr),[A,y]=fw({controlled:u,default:s,name:"Accordion",state:"expanded"}),S=Y.useCallback(I=>{y(!A),d&&d(I,!A)},[A,d,y]),[x,...w]=Y.Children.toArray(a),_=Y.useMemo(()=>({expanded:A,disabled:l,disableGutters:c,toggle:S}),[A,l,c,S]),C=Ce({},r,{square:h,disabled:l,disableGutters:c,expanded:A}),R=sxr(C),k=Ce({transition:m},f),P=Ce({transition:g},p),[N,L]=Xje("transition",{elementType:jo,externalForwardedProps:{slots:k,slotProps:P},ownerState:C});return E.jsxs(lxr,Ce({className:nr(R.root,o),ref:n,ownerState:C,square:h},v,{children:[E.jsx(Bqt.Provider,{value:_,children:x}),E.jsx(N,Ce({in:A,timeout:"auto"},L,{children:E.jsx("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:R.region,children:w})}))]}))}),mD=cxr;function uxr(t){return mi("MuiAccordionDetails",t)}ei("MuiAccordionDetails",["root"]);const dxr=["className"],hxr=Jie(),fxr=t=>{const{classes:e}=t;return gi({root:["root"]},uxr,e)},pxr=En("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({padding:t.spacing(1,2,2)})),mxr=Y.forwardRef(function(e,n){const r=hxr({props:e,name:"MuiAccordionDetails"}),{className:a}=r,o=Wn(r,dxr),s=r,l=fxr(s);return E.jsx(pxr,Ce({className:nr(l.root,a),ref:n,ownerState:s},o))}),gD=mxr;function gxr(t){const{className:e,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:s,in:l,onExited:c,timeout:u}=t,[d,h]=Y.useState(!1),f=nr(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},m=nr(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&h(!0),Y.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,l,u]),E.jsx("span",{className:f,style:p,children:E.jsx("span",{className:m})})}const vxr=ei("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rx=vxr,Axr=["center","classes","className"];let eEe=t=>t,Ggt,Vgt,Kgt,Wgt;const eHe=550,yxr=80,bxr=qM(Ggt||(Ggt=eEe`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),xxr=qM(Vgt||(Vgt=eEe`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),Exr=qM(Kgt||(Kgt=eEe`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),Sxr=En("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),wxr=En(gxr,{name:"MuiTouchRipple",slot:"Ripple"})(Wgt||(Wgt=eEe`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),rx.rippleVisible,bxr,eHe,({theme:t})=>t.transitions.easing.easeInOut,rx.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,rx.child,rx.childLeaving,xxr,eHe,({theme:t})=>t.transitions.easing.easeInOut,rx.childPulsate,Exr,({theme:t})=>t.transitions.easing.easeInOut),_xr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s}=r,l=Wn(r,Axr),[c,u]=Y.useState([]),d=Y.useRef(0),h=Y.useRef(null);Y.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const f=Y.useRef(!1),p=L3(),m=Y.useRef(null),g=Y.useRef(null),v=Y.useCallback(x=>{const{pulsate:w,rippleX:_,rippleY:C,rippleSize:R,cb:k}=x;u(P=>[...P,E.jsx(wxr,{classes:{ripple:nr(o.ripple,rx.ripple),rippleVisible:nr(o.rippleVisible,rx.rippleVisible),ripplePulsate:nr(o.ripplePulsate,rx.ripplePulsate),child:nr(o.child,rx.child),childLeaving:nr(o.childLeaving,rx.childLeaving),childPulsate:nr(o.childPulsate,rx.childPulsate)},timeout:eHe,pulsate:w,rippleX:_,rippleY:C,rippleSize:R},d.current)]),d.current+=1,h.current=k},[o]),A=Y.useCallback((x={},w={},_=()=>{})=>{const{pulsate:C=!1,center:R=a||w.pulsate,fakeElement:k=!1}=w;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const P=k?null:g.current,N=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,I,b;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)L=Math.round(N.width/2),I=Math.round(N.height/2);else{const{clientX:T,clientY:M}=x.touches&&x.touches.length>0?x.touches[0]:x;L=Math.round(T-N.left),I=Math.round(M-N.top)}if(R)b=Math.sqrt((2*N.width**2+N.height**2)/3),b%2===0&&(b+=1);else{const T=Math.max(Math.abs((P?P.clientWidth:0)-L),L)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-I),I)*2+2;b=Math.sqrt(T**2+M**2)}x!=null&&x.touches?m.current===null&&(m.current=()=>{v({pulsate:C,rippleX:L,rippleY:I,rippleSize:b,cb:_})},p.start(yxr,()=>{m.current&&(m.current(),m.current=null)})):v({pulsate:C,rippleX:L,rippleY:I,rippleSize:b,cb:_})},[a,v,p]),y=Y.useCallback(()=>{A({},{pulsate:!0})},[A]),S=Y.useCallback((x,w)=>{if(p.clear(),(x==null?void 0:x.type)==="touchend"&&m.current){m.current(),m.current=null,p.start(0,()=>{S(x,w)});return}m.current=null,u(_=>_.length>0?_.slice(1):_),h.current=w},[p]);return Y.useImperativeHandle(n,()=>({pulsate:y,start:A,stop:S}),[y,A,S]),E.jsx(Sxr,Ce({className:nr(rx.root,o.root,s),ref:g},l,{children:E.jsx(Dbr,{component:null,exit:!0,children:c})}))}),Txr=_xr;function Cxr(t){return mi("MuiButtonBase",t)}const kxr=ei("MuiButtonBase",["root","disabled","focusVisible"]),Rxr=kxr,Mxr=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Nxr=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:a}=t,s=gi({root:["root",e&&"disabled",n&&"focusVisible"]},Cxr,a);return n&&r&&(s.root+=` ${r}`),s},Ixr=En("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Rxr.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pxr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:v,onDragLeave:A,onFocus:y,onFocusVisible:S,onKeyDown:x,onKeyUp:w,onMouseDown:_,onMouseLeave:C,onMouseUp:R,onTouchEnd:k,onTouchMove:P,onTouchStart:N,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:b,type:T}=r,M=Wn(r,Mxr),D=Y.useRef(null),B=Y.useRef(null),j=ju(B,b),{isFocusVisibleRef:H,onFocus:U,onBlur:$,ref:z}=nXe(),[Z,K]=Y.useState(!1);u&&Z&&K(!1),Y.useImperativeHandle(a,()=>({focusVisible:()=>{K(!0),D.current.focus()}}),[]);const[Q,ee]=Y.useState(!1);Y.useEffect(()=>{ee(!0)},[]);const X=Q&&!d&&!u;Y.useEffect(()=>{Z&&f&&!d&&Q&&B.current.pulsate()},[d,f,Z,Q]);function te(oe,ge,De=h){return pv(Fe=>(ge&&ge(Fe),!De&&B.current&&B.current[oe](Fe),!0))}const J=te("start",_),ne=te("stop",v),ie=te("stop",A),he=te("stop",R),de=te("stop",oe=>{Z&&oe.preventDefault(),C&&C(oe)}),ce=te("start",N),Ee=te("stop",k),Me=te("stop",P),Be=te("stop",oe=>{$(oe),H.current===!1&&K(!1),m&&m(oe)},!1),ze=pv(oe=>{D.current||(D.current=oe.currentTarget),U(oe),H.current===!0&&(K(!0),S&&S(oe)),y&&y(oe)}),je=()=>{const oe=D.current;return c&&c!=="button"&&!(oe.tagName==="A"&&oe.href)},ye=Y.useRef(!1),me=pv(oe=>{f&&!ye.current&&Z&&B.current&&oe.key===" "&&(ye.current=!0,B.current.stop(oe,()=>{B.current.start(oe)})),oe.target===oe.currentTarget&&je()&&oe.key===" "&&oe.preventDefault(),x&&x(oe),oe.target===oe.currentTarget&&je()&&oe.key==="Enter"&&!u&&(oe.preventDefault(),g&&g(oe))}),le=pv(oe=>{f&&oe.key===" "&&B.current&&Z&&!oe.defaultPrevented&&(ye.current=!1,B.current.stop(oe,()=>{B.current.pulsate(oe)})),w&&w(oe),g&&oe.target===oe.currentTarget&&je()&&oe.key===" "&&!oe.defaultPrevented&&g(oe)});let pe=c;pe==="button"&&(M.href||M.to)&&(pe=p);const Ne={};pe==="button"?(Ne.type=T===void 0?"button":T,Ne.disabled=u):(!M.href&&!M.to&&(Ne.role="button"),u&&(Ne["aria-disabled"]=u));const _e=ju(n,z,D),ue=Ce({},r,{centerRipple:o,component:c,disabled:u,disableRipple:d,disableTouchRipple:h,focusRipple:f,tabIndex:L,focusVisible:Z}),se=Nxr(ue);return E.jsxs(Ixr,Ce({as:pe,className:nr(se.root,l),ownerState:ue,onBlur:Be,onClick:g,onContextMenu:ne,onFocus:ze,onKeyDown:me,onKeyUp:le,onMouseDown:J,onMouseLeave:de,onMouseUp:he,onDragLeave:ie,onTouchEnd:Ee,onTouchMove:Me,onTouchStart:ce,ref:_e,tabIndex:u?-1:L,type:T},Ne,M,{children:[s,X?E.jsx(Txr,Ce({ref:j,center:o},I)):null]}))}),kw=Pxr;function Oxr(t){return mi("MuiAccordionSummary",t)}const Lxr=ei("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),HF=Lxr,Bxr=["children","className","expandIcon","focusVisibleClassName","onClick"],Dxr=Jie(),$xr=t=>{const{classes:e,expanded:n,disabled:r,disableGutters:a}=t;return gi({root:["root",n&&"expanded",r&&"disabled",!a&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!a&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},Oxr,e)},Fxr=En(kw,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],e),[`&.${HF.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${HF.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${HF.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${HF.expanded}`]:{minHeight:64}}}]}}),jxr=En("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(t,e)=>e.content})(({theme:t})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${HF.expanded}`]:{margin:"20px 0"}}}]})),Hxr=En("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(t,e)=>e.expandIconWrapper})(({theme:t})=>({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${HF.expanded}`]:{transform:"rotate(180deg)"}})),Uxr=Y.forwardRef(function(e,n){const r=Dxr({props:e,name:"MuiAccordionSummary"}),{children:a,className:o,expandIcon:s,focusVisibleClassName:l,onClick:c}=r,u=Wn(r,Bxr),{disabled:d=!1,disableGutters:h,expanded:f,toggle:p}=Y.useContext(Bqt),m=A=>{p&&p(A),c&&c(A)},g=Ce({},r,{expanded:f,disabled:d,disableGutters:h}),v=$xr(g);return E.jsxs(Fxr,Ce({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":f,className:nr(v.root,o),focusVisibleClassName:nr(v.focusVisible,l),onClick:m,ref:n,ownerState:g},u,{children:[E.jsx(jxr,{className:v.content,ownerState:g,children:a}),s&&E.jsx(Hxr,{className:v.expandIconWrapper,ownerState:g,children:s})]}))}),vD=Uxr;function zxr(t){return mi("MuiAlert",t)}const Gxr=ei("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Qgt=Gxr;function Vxr(t){return mi("MuiIconButton",t)}const Kxr=ei("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Wxr=Kxr,Qxr=["edge","children","className","color","disabled","disableFocusRipple","size"],qxr=t=>{const{classes:e,disabled:n,color:r,edge:a,size:o}=t,s={root:["root",n&&"disabled",r!=="default"&&`color${fn(r)}`,a&&`edge${fn(a)}`,`size${fn(o)}`]};return gi(s,Vxr,e)},Yxr=En(kw,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${fn(n.color)}`],n.edge&&e[`edge${fn(n.edge)}`],e[`size${fn(n.size)}`]]}})(({theme:t,ownerState:e})=>Ce({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var n;const r=(n=(t.vars||t).palette)==null?void 0:n[e.color];return Ce({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&Ce({color:r==null?void 0:r.main},!e.disableRipple&&{"&:hover":Ce({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${Wxr.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),Jxr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiIconButton"}),{edge:a=!1,children:o,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=r,h=Wn(r,Qxr),f=Ce({},r,{edge:a,color:l,disabled:c,disableFocusRipple:u,size:d}),p=qxr(f);return E.jsx(Yxr,Ce({className:nr(p.root,s),centerRipple:!0,focusRipple:!u,disabled:c,ref:n},h,{ownerState:f,children:o}))}),dG=Jxr,Zxr=xl(E.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Xxr=xl(E.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),eEr=xl(E.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),tEr=xl(E.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),jqt=xl(E.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),nEr=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],rEr=Jie(),iEr=t=>{const{variant:e,color:n,severity:r,classes:a}=t,o={root:["root",`color${fn(n||r)}`,`${e}${fn(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return gi(o,zxr,a)},aEr=En(X0,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${fn(n.color||n.severity)}`]]}})(({theme:t})=>{const e=t.palette.mode==="light"?Ste:wte,n=t.palette.mode==="light"?wte:Ste;return Ce({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${Qgt.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${Qgt.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:Ce({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)})}))]})}),oEr=En("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sEr=En("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),qgt=En("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Ygt={success:E.jsx(Zxr,{fontSize:"inherit"}),warning:E.jsx(Xxr,{fontSize:"inherit"}),error:E.jsx(eEr,{fontSize:"inherit"}),info:E.jsx(tEr,{fontSize:"inherit"})},lEr=Y.forwardRef(function(e,n){const r=rEr({props:e,name:"MuiAlert"}),{action:a,children:o,className:s,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:h,iconMapping:f=Ygt,onClose:p,role:m="alert",severity:g="success",slotProps:v={},slots:A={},variant:y="standard"}=r,S=Wn(r,nEr),x=Ce({},r,{color:c,severity:g,variant:y,colorSeverity:c||g}),w=iEr(x),_={slots:Ce({closeButton:u.CloseButton,closeIcon:u.CloseIcon},A),slotProps:Ce({},d,v)},[C,R]=Xje("closeButton",{elementType:dG,externalForwardedProps:_,ownerState:x}),[k,P]=Xje("closeIcon",{elementType:jqt,externalForwardedProps:_,ownerState:x});return E.jsxs(aEr,Ce({role:m,elevation:0,ownerState:x,className:nr(w.root,s),ref:n},S,{children:[h!==!1?E.jsx(oEr,{ownerState:x,className:w.icon,children:h||f[g]||Ygt[g]}):null,E.jsx(sEr,{ownerState:x,className:w.message,children:o}),a!=null?E.jsx(qgt,{ownerState:x,className:w.action,children:a}):null,a==null&&p?E.jsx(qgt,{ownerState:x,className:w.action,children:E.jsx(C,Ce({size:"small","aria-label":l,title:l,color:"inherit",onClick:p},R,{children:E.jsx(k,Ce({fontSize:"small"},P))}))}):null]}))}),Hqt=lEr;function cEr(t){return mi("MuiTypography",t)}ei("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const uEr=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dEr=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:a,variant:o,classes:s}=t,l={root:["root",o,t.align!=="inherit"&&`align${fn(e)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return gi(l,cEr,s)},hEr=En("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${fn(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>Ce({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Jgt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fEr={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pEr=t=>fEr[t]||t,mEr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTypography"}),a=pEr(r.color),o=Wie(Ce({},r,{color:a})),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:h=!1,variant:f="body1",variantMapping:p=Jgt}=o,m=Wn(o,uEr),g=Ce({},o,{align:s,color:a,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:h,variant:f,variantMapping:p}),v=c||(h?"p":p[f]||Jgt[f])||"span",A=dEr(g);return E.jsx(hEr,Ce({as:v,ref:n,ownerState:g,className:nr(A.root,l)},m))}),Zve=mEr;function gEr(t){return mi("MuiAppBar",t)}ei("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const vEr=["className","color","enableColorOnDark","position"],AEr=t=>{const{color:e,position:n,classes:r}=t,a={root:["root",`color${fn(e)}`,`position${fn(n)}`]};return gi(a,gEr,r)},nce=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,yEr=En(X0,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${fn(n.position)}`],e[`color${fn(n.color)}`]]}})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return Ce({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!t.vars&&Ce({},e.color==="default"&&{backgroundColor:n,color:t.palette.getContrastText(n)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&Ce({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&Ce({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:nce(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:nce(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:nce(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:nce(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),bEr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:s=!1,position:l="fixed"}=r,c=Wn(r,vEr),u=Ce({},r,{color:o,position:l,enableColorOnDark:s}),d=AEr(u);return E.jsx(yEr,Ce({square:!0,component:"header",ownerState:u,elevation:4,className:nr(d.root,a,l==="fixed"&&"mui-fixed"),ref:n},c))}),xEr=bEr,Uqt="base";function EEr(t){return`${Uqt}--${t}`}function SEr(t,e){return`${Uqt}-${t}-${e}`}function zqt(t,e){const n=YQt[e];return n?EEr(n):SEr(t,e)}function wEr(t,e){const n={};return e.forEach(r=>{n[r]=zqt(t,r)}),n}function Zgt(t){return t.substring(2).toLowerCase()}function _Er(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function TEr(t){const{children:e,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:o="onTouchEnd"}=t,s=Y.useRef(!1),l=Y.useRef(null),c=Y.useRef(!1),u=Y.useRef(!1);Y.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=ju(e.ref,l),h=pv(m=>{const g=u.current;u.current=!1;const v=xp(l.current);if(!c.current||!l.current||"clientX"in m&&_Er(m,v))return;if(s.current){s.current=!1;return}let A;m.composedPath?A=m.composedPath().indexOf(l.current)>-1:A=!v.documentElement.contains(m.target)||l.current.contains(m.target),!A&&(n||!g)&&a(m)}),f=m=>g=>{u.current=!0;const v=e.props[m];v&&v(g)},p={ref:d};return o!==!1&&(p[o]=f(o)),Y.useEffect(()=>{if(o!==!1){const m=Zgt(o),g=xp(l.current),v=()=>{s.current=!0};return g.addEventListener(m,h),g.addEventListener("touchmove",v),()=>{g.removeEventListener(m,h),g.removeEventListener("touchmove",v)}}},[h,o]),r!==!1&&(p[r]=f(r)),Y.useEffect(()=>{if(r!==!1){const m=Zgt(r),g=xp(l.current);return g.addEventListener(m,h),()=>{g.removeEventListener(m,h)}}},[h,r]),E.jsx(Y.Fragment,{children:Y.cloneElement(e,p)})}const CEr=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kEr(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function REr(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function MEr(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||REr(t))}function NEr(t){const e=[],n=[];return Array.from(t.querySelectorAll(CEr)).forEach((r,a)=>{const o=kEr(r);o===-1||!MEr(r)||(o===0?e.push(r):n.push({documentOrder:a,tabIndex:o,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(e)}function IEr(){return!0}function PEr(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:o=NEr,isEnabled:s=IEr,open:l}=t,c=Y.useRef(!1),u=Y.useRef(null),d=Y.useRef(null),h=Y.useRef(null),f=Y.useRef(null),p=Y.useRef(!1),m=Y.useRef(null),g=ju(e.ref,m),v=Y.useRef(null);Y.useEffect(()=>{!l||!m.current||(p.current=!n)},[n,l]),Y.useEffect(()=>{if(!l||!m.current)return;const S=xp(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{a||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),Y.useEffect(()=>{if(!l||!m.current)return;const S=xp(m.current),x=C=>{v.current=C,!(r||!s()||C.key!=="Tab")&&S.activeElement===m.current&&C.shiftKey&&(c.current=!0,d.current&&d.current.focus())},w=()=>{const C=m.current;if(C===null)return;if(!S.hasFocus()||!s()||c.current){c.current=!1;return}if(C.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==d.current)return;if(S.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let R=[];if((S.activeElement===u.current||S.activeElement===d.current)&&(R=o(m.current)),R.length>0){var k,P;const N=!!((k=v.current)!=null&&k.shiftKey&&((P=v.current)==null?void 0:P.key)==="Tab"),L=R[0],I=R[R.length-1];typeof L!="string"&&typeof I!="string"&&(N?I.focus():L.focus())}else C.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",x,!0);const _=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(_),S.removeEventListener("focusin",w),S.removeEventListener("keydown",x,!0)}},[n,r,a,s,l,o]);const A=S=>{h.current===null&&(h.current=S.relatedTarget),p.current=!0,f.current=S.target;const x=e.props.onFocus;x&&x(S)},y=S=>{h.current===null&&(h.current=S.relatedTarget),p.current=!0};return E.jsxs(Y.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),Y.cloneElement(e,{ref:g,onFocus:A}),E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}function OEr(t){return typeof t=="function"?t():t}const Gqt=Y.forwardRef(function(e,n){const{children:r,container:a,disablePortal:o=!1}=e,[s,l]=Y.useState(null),c=ju(Y.isValidElement(r)?r.ref:null,n);if(Cw(()=>{o||l(OEr(a)||document.body)},[a,o]),Cw(()=>{if(s&&!o)return Ete(n,s),()=>{Ete(n,null)}},[n,s,o]),o){if(Y.isValidElement(r)){const u={ref:c};return Y.cloneElement(r,u)}return E.jsx(Y.Fragment,{children:r})}return E.jsx(Y.Fragment,{children:s&&Dy.createPortal(r,s)})});function LEr(t){const e=xp(t);return e.body===t?$2(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function CX(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Xgt(t){return parseInt($2(t).getComputedStyle(t).paddingRight,10)||0}function BEr(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function evt(t,e,n,r,a){const o=[e,n,...r];[].forEach.call(t.children,s=>{const l=o.indexOf(s)===-1,c=!BEr(s);l&&c&&CX(s,a)})}function i5e(t,e){let n=-1;return t.some((r,a)=>e(r)?(n=a,!0):!1),n}function DEr(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(LEr(r)){const s=iqt(xp(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Xgt(r)+s}px`;const l=xp(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Xgt(c)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=xp(r).body;else{const s=r.parentElement,l=$2(r);o=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:l})=>{o?s.style.setProperty(l,o):s.style.removeProperty(l)})}}function $Er(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class FEr{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&CX(e.modalRef,!1);const a=$Er(n);evt(n,e.mount,e.modalRef,a,!0);const o=i5e(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:a}),r)}mount(e,n){const r=i5e(this.containers,o=>o.modals.indexOf(e)!==-1),a=this.containers[r];a.restore||(a.restore=DEr(a,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const a=i5e(this.containers,s=>s.modals.indexOf(e)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),e.modalRef&&CX(e.modalRef,n),evt(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&CX(s.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function jEr(t){return typeof t=="function"?t():t}function HEr(t){return t?t.props.hasOwnProperty("in"):!1}const UEr=new FEr;function zEr(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=UEr,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:h}=t,f=Y.useRef({}),p=Y.useRef(null),m=Y.useRef(null),g=ju(m,h),[v,A]=Y.useState(!d),y=HEr(c);let S=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(S=!1);const x=()=>xp(p.current),w=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),_=()=>{a.mount(w(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=pv(()=>{const M=jEr(e)||x().body;a.add(w(),M),m.current&&_()}),R=Y.useCallback(()=>a.isTopModal(w()),[a]),k=pv(M=>{p.current=M,M&&(d&&R()?_():m.current&&CX(m.current,S))}),P=Y.useCallback(()=>{a.remove(w(),S)},[S,a]);Y.useEffect(()=>()=>{P()},[P]),Y.useEffect(()=>{d?C():(!y||!o)&&P()},[d,P,y,o,C]);const N=M=>D=>{var B;(B=M.onKeyDown)==null||B.call(M,D),!(D.key!=="Escape"||D.which===229||!R())&&(n||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},L=M=>D=>{var B;(B=M.onClick)==null||B.call(M,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(M={})=>{const D=Jve(t);delete D.onTransitionEnter,delete D.onTransitionExited;const B=Ce({},D,M);return Ce({role:"presentation"},B,{onKeyDown:N(B),ref:g})},getBackdropProps:(M={})=>{const D=M;return Ce({"aria-hidden":!0},D,{onClick:L(D),open:d})},getTransitionProps:()=>{const M=()=>{A(!1),s&&s()},D=()=>{A(!0),l&&l(),o&&P()};return{onEnter:Gve(M,c==null?void 0:c.props.onEnter),onExited:Gve(D,c==null?void 0:c.props.onExited)}},rootRef:g,portalRef:k,isTopModal:R,exited:v,hasTransition:y}}var t1="top",Gx="bottom",Vx="right",n1="left",gXe="auto",Zie=[t1,Gx,Vx,n1],KH="start",Cte="end",GEr="clippingParents",Vqt="viewport",pQ="popper",VEr="reference",tvt=Zie.reduce(function(t,e){return t.concat([e+"-"+KH,e+"-"+Cte])},[]),Kqt=[].concat(Zie,[gXe]).reduce(function(t,e){return t.concat([e,e+"-"+KH,e+"-"+Cte])},[]),KEr="beforeRead",WEr="read",QEr="afterRead",qEr="beforeMain",YEr="main",JEr="afterMain",ZEr="beforeWrite",XEr="write",eSr="afterWrite",tSr=[KEr,WEr,QEr,qEr,YEr,JEr,ZEr,XEr,eSr];function F2(t){return t?(t.nodeName||"").toLowerCase():null}function Ky(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function f6(t){var e=Ky(t).Element;return t instanceof e||t instanceof Element}function Rx(t){var e=Ky(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function vXe(t){if(typeof ShadowRoot>"u")return!1;var e=Ky(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function nSr(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},o=e.elements[n];!Rx(o)||!F2(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function rSr(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var a=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Rx(a)||!F2(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}const iSr={name:"applyStyles",enabled:!0,phase:"write",fn:nSr,effect:rSr,requires:["computeStyles"]};function g2(t){return t.split("-")[0]}var AD=Math.max,Xve=Math.min,WH=Math.round;function tHe(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wqt(){return!/^((?!chrome|android).)*safari/i.test(tHe())}function QH(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),a=1,o=1;e&&Rx(t)&&(a=t.offsetWidth>0&&WH(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&WH(r.height)/t.offsetHeight||1);var s=f6(t)?Ky(t):window,l=s.visualViewport,c=!Wqt()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/a,d=(r.top+(c&&l?l.offsetTop:0))/o,h=r.width/a,f=r.height/o;return{width:h,height:f,top:d,right:u+h,bottom:d+f,left:u,x:u,y:d}}function AXe(t){var e=QH(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Qqt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&vXe(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mM(t){return Ky(t).getComputedStyle(t)}function aSr(t){return["table","td","th"].indexOf(F2(t))>=0}function ZP(t){return((f6(t)?t.ownerDocument:t.document)||window.document).documentElement}function tEe(t){return F2(t)==="html"?t:t.assignedSlot||t.parentNode||(vXe(t)?t.host:null)||ZP(t)}function nvt(t){return!Rx(t)||mM(t).position==="fixed"?null:t.offsetParent}function oSr(t){var e=/firefox/i.test(tHe()),n=/Trident/i.test(tHe());if(n&&Rx(t)){var r=mM(t);if(r.position==="fixed")return null}var a=tEe(t);for(vXe(a)&&(a=a.host);Rx(a)&&["html","body"].indexOf(F2(a))<0;){var o=mM(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Xie(t){for(var e=Ky(t),n=nvt(t);n&&aSr(n)&&mM(n).position==="static";)n=nvt(n);return n&&(F2(n)==="html"||F2(n)==="body"&&mM(n).position==="static")?e:n||oSr(t)||e}function yXe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kX(t,e,n){return AD(t,Xve(e,n))}function sSr(t,e,n){var r=kX(t,e,n);return r>n?n:r}function qqt(){return{top:0,right:0,bottom:0,left:0}}function Yqt(t){return Object.assign({},qqt(),t)}function Jqt(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var lSr=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Yqt(typeof e!="number"?e:Jqt(e,Zie))};function cSr(t){var e,n=t.state,r=t.name,a=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=g2(n.placement),c=yXe(l),u=[n1,Vx].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!s)){var h=lSr(a.padding,n),f=AXe(o),p=c==="y"?t1:n1,m=c==="y"?Gx:Vx,g=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],v=s[c]-n.rects.reference[c],A=Xie(o),y=A?c==="y"?A.clientHeight||0:A.clientWidth||0:0,S=g/2-v/2,x=h[p],w=y-f[d]-h[m],_=y/2-f[d]/2+S,C=kX(x,_,w),R=c;n.modifiersData[r]=(e={},e[R]=C,e.centerOffset=C-_,e)}}function uSr(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||Qqt(e.elements.popper,a)&&(e.elements.arrow=a))}const dSr={name:"arrow",enabled:!0,phase:"main",fn:cSr,effect:uSr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qH(t){return t.split("-")[1]}var hSr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fSr(t,e){var n=t.x,r=t.y,a=e.devicePixelRatio||1;return{x:WH(n*a)/a||0,y:WH(r*a)/a||0}}function rvt(t){var e,n=t.popper,r=t.popperRect,a=t.placement,o=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,h=t.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,g=m===void 0?0:m,v=typeof d=="function"?d({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var A=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),S=n1,x=t1,w=window;if(u){var _=Xie(n),C="clientHeight",R="clientWidth";if(_===Ky(n)&&(_=ZP(n),mM(_).position!=="static"&&l==="absolute"&&(C="scrollHeight",R="scrollWidth")),_=_,a===t1||(a===n1||a===Vx)&&o===Cte){x=Gx;var k=h&&_===w&&w.visualViewport?w.visualViewport.height:_[C];g-=k-r.height,g*=c?1:-1}if(a===n1||(a===t1||a===Gx)&&o===Cte){S=Vx;var P=h&&_===w&&w.visualViewport?w.visualViewport.width:_[R];p-=P-r.width,p*=c?1:-1}}var N=Object.assign({position:l},u&&hSr),L=d===!0?fSr({x:p,y:g},Ky(n)):{x:p,y:g};if(p=L.x,g=L.y,c){var I;return Object.assign({},N,(I={},I[x]=y?"0":"",I[S]=A?"0":"",I.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",I))}return Object.assign({},N,(e={},e[x]=y?g+"px":"",e[S]=A?p+"px":"",e.transform="",e))}function pSr(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:g2(e.placement),variation:qH(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,rvt(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,rvt(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const mSr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pSr,data:{}};var rce={passive:!0};function gSr(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=Ky(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,rce)}),l&&c.addEventListener("resize",n.update,rce),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,rce)}),l&&c.removeEventListener("resize",n.update,rce)}}const vSr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gSr,data:{}};var ASr={left:"right",right:"left",bottom:"top",top:"bottom"};function nme(t){return t.replace(/left|right|bottom|top/g,function(e){return ASr[e]})}var ySr={start:"end",end:"start"};function ivt(t){return t.replace(/start|end/g,function(e){return ySr[e]})}function bXe(t){var e=Ky(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xXe(t){return QH(ZP(t)).left+bXe(t).scrollLeft}function bSr(t,e){var n=Ky(t),r=ZP(t),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){o=a.width,s=a.height;var u=Wqt();(u||!u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:o,height:s,x:l+xXe(t),y:c}}function xSr(t){var e,n=ZP(t),r=bXe(t),a=(e=t.ownerDocument)==null?void 0:e.body,o=AD(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=AD(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+xXe(t),c=-r.scrollTop;return mM(a||n).direction==="rtl"&&(l+=AD(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function EXe(t){var e=mM(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Zqt(t){return["html","body","#document"].indexOf(F2(t))>=0?t.ownerDocument.body:Rx(t)&&EXe(t)?t:Zqt(tEe(t))}function RX(t,e){var n;e===void 0&&(e=[]);var r=Zqt(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),o=Ky(r),s=a?[o].concat(o.visualViewport||[],EXe(r)?r:[]):r,l=e.concat(s);return a?l:l.concat(RX(tEe(s)))}function nHe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ESr(t,e){var n=QH(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function avt(t,e,n){return e===Vqt?nHe(bSr(t,n)):f6(e)?ESr(e,n):nHe(xSr(ZP(t)))}function SSr(t){var e=RX(tEe(t)),n=["absolute","fixed"].indexOf(mM(t).position)>=0,r=n&&Rx(t)?Xie(t):t;return f6(r)?e.filter(function(a){return f6(a)&&Qqt(a,r)&&F2(a)!=="body"}):[]}function wSr(t,e,n,r){var a=e==="clippingParents"?SSr(t):[].concat(e),o=[].concat(a,[n]),s=o[0],l=o.reduce(function(c,u){var d=avt(t,u,r);return c.top=AD(d.top,c.top),c.right=Xve(d.right,c.right),c.bottom=Xve(d.bottom,c.bottom),c.left=AD(d.left,c.left),c},avt(t,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Xqt(t){var e=t.reference,n=t.element,r=t.placement,a=r?g2(r):null,o=r?qH(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(a){case t1:c={x:s,y:e.y-n.height};break;case Gx:c={x:s,y:e.y+e.height};break;case Vx:c={x:e.x+e.width,y:l};break;case n1:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=a?yXe(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case KH:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Cte:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function kte(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,o=n.strategy,s=o===void 0?t.strategy:o,l=n.boundary,c=l===void 0?GEr:l,u=n.rootBoundary,d=u===void 0?Vqt:u,h=n.elementContext,f=h===void 0?pQ:h,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,A=Yqt(typeof v!="number"?v:Jqt(v,Zie)),y=f===pQ?VEr:pQ,S=t.rects.popper,x=t.elements[m?y:f],w=wSr(f6(x)?x:x.contextElement||ZP(t.elements.popper),c,d,s),_=QH(t.elements.reference),C=Xqt({reference:_,element:S,strategy:"absolute",placement:a}),R=nHe(Object.assign({},S,C)),k=f===pQ?R:_,P={top:w.top-k.top+A.top,bottom:k.bottom-w.bottom+A.bottom,left:w.left-k.left+A.left,right:k.right-w.right+A.right},N=t.modifiersData.offset;if(f===pQ&&N){var L=N[a];Object.keys(P).forEach(function(I){var b=[Vx,Gx].indexOf(I)>=0?1:-1,T=[t1,Gx].indexOf(I)>=0?"y":"x";P[I]+=L[T]*b})}return P}function _Sr(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Kqt:c,d=qH(r),h=d?l?tvt:tvt.filter(function(m){return qH(m)===d}):Zie,f=h.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=h);var p=f.reduce(function(m,g){return m[g]=kte(t,{placement:g,boundary:a,rootBoundary:o,padding:s})[g2(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function TSr(t){if(g2(t)===gXe)return[];var e=nme(t);return[ivt(t),e,ivt(e)]}function CSr(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,h=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=e.options.placement,A=g2(v),y=A===v,S=c||(y||!m?[nme(v)]:TSr(v)),x=[v].concat(S).reduce(function(Z,K){return Z.concat(g2(K)===gXe?_Sr(e,{placement:K,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:g}):K)},[]),w=e.rects.reference,_=e.rects.popper,C=new Map,R=!0,k=x[0],P=0;P<x.length;P++){var N=x[P],L=g2(N),I=qH(N)===KH,b=[t1,Gx].indexOf(L)>=0,T=b?"width":"height",M=kte(e,{placement:N,boundary:d,rootBoundary:h,altBoundary:f,padding:u}),D=b?I?Vx:n1:I?Gx:t1;w[T]>_[T]&&(D=nme(D));var B=nme(D),j=[];if(o&&j.push(M[L]<=0),l&&j.push(M[D]<=0,M[B]<=0),j.every(function(Z){return Z})){k=N,R=!1;break}C.set(N,j)}if(R)for(var H=m?3:1,U=function(K){var Q=x.find(function(ee){var X=C.get(ee);if(X)return X.slice(0,K).every(function(te){return te})});if(Q)return k=Q,"break"},$=H;$>0;$--){var z=U($);if(z==="break")break}e.placement!==k&&(e.modifiersData[r]._skip=!0,e.placement=k,e.reset=!0)}}const kSr={name:"flip",enabled:!0,phase:"main",fn:CSr,requiresIfExists:["offset"],data:{_skip:!1}};function ovt(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function svt(t){return[t1,Vx,Gx,n1].some(function(e){return t[e]>=0})}function RSr(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,o=e.modifiersData.preventOverflow,s=kte(e,{elementContext:"reference"}),l=kte(e,{altBoundary:!0}),c=ovt(s,r),u=ovt(l,a,o),d=svt(c),h=svt(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const MSr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RSr};function NSr(t,e,n){var r=g2(t),a=[n1,t1].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*a,[n1,Vx].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function ISr(t){var e=t.state,n=t.options,r=t.name,a=n.offset,o=a===void 0?[0,0]:a,s=Kqt.reduce(function(d,h){return d[h]=NSr(h,e.rects,o),d},{}),l=s[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const PSr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ISr};function OSr(t){var e=t.state,n=t.name;e.modifiersData[n]=Xqt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const LSr={name:"popperOffsets",enabled:!0,phase:"read",fn:OSr,data:{}};function BSr(t){return t==="x"?"y":"x"}function DSr(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,v=kte(e,{boundary:c,rootBoundary:u,padding:h,altBoundary:d}),A=g2(e.placement),y=qH(e.placement),S=!y,x=yXe(A),w=BSr(x),_=e.modifiersData.popperOffsets,C=e.rects.reference,R=e.rects.popper,k=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,P=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(_){if(o){var I,b=x==="y"?t1:n1,T=x==="y"?Gx:Vx,M=x==="y"?"height":"width",D=_[x],B=D+v[b],j=D-v[T],H=p?-R[M]/2:0,U=y===KH?C[M]:R[M],$=y===KH?-R[M]:-C[M],z=e.elements.arrow,Z=p&&z?AXe(z):{width:0,height:0},K=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:qqt(),Q=K[b],ee=K[T],X=kX(0,C[M],Z[M]),te=S?C[M]/2-H-X-Q-P.mainAxis:U-X-Q-P.mainAxis,J=S?-C[M]/2+H+X+ee+P.mainAxis:$+X+ee+P.mainAxis,ne=e.elements.arrow&&Xie(e.elements.arrow),ie=ne?x==="y"?ne.clientTop||0:ne.clientLeft||0:0,he=(I=N==null?void 0:N[x])!=null?I:0,de=D+te-he-ie,ce=D+J-he,Ee=kX(p?Xve(B,de):B,D,p?AD(j,ce):j);_[x]=Ee,L[x]=Ee-D}if(l){var Me,Be=x==="x"?t1:n1,ze=x==="x"?Gx:Vx,je=_[w],ye=w==="y"?"height":"width",me=je+v[Be],le=je-v[ze],pe=[t1,n1].indexOf(A)!==-1,Ne=(Me=N==null?void 0:N[w])!=null?Me:0,_e=pe?me:je-C[ye]-R[ye]-Ne+P.altAxis,ue=pe?je+C[ye]+R[ye]-Ne-P.altAxis:le,se=p&&pe?sSr(_e,je,ue):kX(p?_e:me,je,p?ue:le);_[w]=se,L[w]=se-je}e.modifiersData[r]=L}}const $Sr={name:"preventOverflow",enabled:!0,phase:"main",fn:DSr,requiresIfExists:["offset"]};function FSr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function jSr(t){return t===Ky(t)||!Rx(t)?bXe(t):FSr(t)}function HSr(t){var e=t.getBoundingClientRect(),n=WH(e.width)/t.offsetWidth||1,r=WH(e.height)/t.offsetHeight||1;return n!==1||r!==1}function USr(t,e,n){n===void 0&&(n=!1);var r=Rx(e),a=Rx(e)&&HSr(e),o=ZP(e),s=QH(t,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((F2(e)!=="body"||EXe(o))&&(l=jSr(e)),Rx(e)?(c=QH(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=xXe(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function zSr(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&a(c)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||a(o)}),r}function GSr(t){var e=zSr(t);return tSr.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function VSr(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function KSr(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var lvt={placement:"bottom",modifiers:[],strategy:"absolute"};function cvt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function WSr(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,o=a===void 0?lvt:a;return function(l,c,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},lvt,o),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],f=!1,p={state:d,setOptions:function(A){var y=typeof A=="function"?A(d.options):A;g(),d.options=Object.assign({},o,d.options,y),d.scrollParents={reference:f6(l)?RX(l):l.contextElement?RX(l.contextElement):[],popper:RX(c)};var S=GSr(KSr([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(x){return x.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var A=d.elements,y=A.reference,S=A.popper;if(cvt(y,S)){d.rects={reference:USr(y,Xie(S),d.options.strategy==="fixed"),popper:AXe(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var x=0;x<d.orderedModifiers.length;x++){if(d.reset===!0){d.reset=!1,x=-1;continue}var w=d.orderedModifiers[x],_=w.fn,C=w.options,R=C===void 0?{}:C,k=w.name;typeof _=="function"&&(d=_({state:d,options:R,name:k,instance:p})||d)}}}},update:VSr(function(){return new Promise(function(v){p.forceUpdate(),v(d)})}),destroy:function(){g(),f=!0}};if(!cvt(l,c))return p;p.setOptions(u).then(function(v){!f&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var A=v.name,y=v.options,S=y===void 0?{}:y,x=v.effect;if(typeof x=="function"){var w=x({state:d,name:A,instance:p,options:S}),_=function(){};h.push(w||_)}})}function g(){h.forEach(function(v){return v()}),h=[]}return p}}var QSr=[vSr,LSr,mSr,iSr,PSr,kSr,$Sr,dSr,MSr],eYt=WSr({defaultModifiers:QSr});const tYt="Popper";function qSr(t){return zqt(tYt,t)}wEr(tYt,["root"]);const YSr=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JSr=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ZSr(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function rHe(t){return typeof t=="function"?t():t}function XSr(t){return t.nodeType!==void 0}const ewr=()=>gi({root:["root"]},Zbr(qSr)),twr={},nwr=Y.forwardRef(function(e,n){var r;const{anchorEl:a,children:o,direction:s,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:h,popperRef:f,slotProps:p={},slots:m={},TransitionProps:g}=e,v=Wn(e,YSr),A=Y.useRef(null),y=ju(A,n),S=Y.useRef(null),x=ju(S,f),w=Y.useRef(x);Cw(()=>{w.current=x},[x]),Y.useImperativeHandle(f,()=>S.current,[]);const _=ZSr(d,s),[C,R]=Y.useState(_),[k,P]=Y.useState(rHe(a));Y.useEffect(()=>{S.current&&S.current.forceUpdate()}),Y.useEffect(()=>{a&&P(rHe(a))},[a]),Cw(()=>{if(!k||!u)return;const T=B=>{R(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{T(B)}}];c!=null&&(M=M.concat(c)),h&&h.modifiers!=null&&(M=M.concat(h.modifiers));const D=eYt(k,A.current,Ce({placement:_},h,{modifiers:M}));return w.current(D),()=>{D.destroy(),w.current(null)}},[k,l,c,u,h,_]);const N={placement:C};g!==null&&(N.TransitionProps=g);const L=ewr(),I=(r=m.root)!=null?r:"div",b=X5({elementType:I,externalSlotProps:p.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:L.root});return E.jsx(I,Ce({},b,{children:typeof o=="function"?o(N):o}))}),rwr=Y.forwardRef(function(e,n){const{anchorEl:r,children:a,container:o,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:h="bottom",popperOptions:f=twr,popperRef:p,style:m,transition:g=!1,slotProps:v={},slots:A={}}=e,y=Wn(e,JSr),[S,x]=Y.useState(!0),w=()=>{x(!1)},_=()=>{x(!0)};if(!c&&!d&&(!g||S))return null;let C;if(o)C=o;else if(r){const P=rHe(r);C=P&&XSr(P)?xp(P).body:xp(null).body}const R=!d&&c&&(!g||S)?"none":void 0,k=g?{in:d,onEnter:w,onExited:_}:void 0;return E.jsx(Gqt,{disablePortal:l,container:C,children:E.jsx(nwr,Ce({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:g?!S:d,placement:h,popperOptions:f,popperRef:p,slotProps:v,slots:A},y,{style:Ce({position:"fixed",top:0,left:0,display:R},m),TransitionProps:k,children:a}))})});function iwr(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:o}=t,s=L3();Y.useEffect(()=>{if(!a)return;function A(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(r==null||r(y,"escapeKeyDown"))}return document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}},[a,r]);const l=pv((A,y)=>{r==null||r(A,y)}),c=pv(A=>{!r||A==null||s.start(A,()=>{l(null,"timeout")})});Y.useEffect(()=>(a&&c(e),s.clear),[a,e,c,s]);const u=A=>{r==null||r(A,"clickaway")},d=s.clear,h=Y.useCallback(()=>{e!=null&&c(o??e*.5)},[e,o,c]),f=A=>y=>{const S=A.onBlur;S==null||S(y),h()},p=A=>y=>{const S=A.onFocus;S==null||S(y),d()},m=A=>y=>{const S=A.onMouseEnter;S==null||S(y),d()},g=A=>y=>{const S=A.onMouseLeave;S==null||S(y),h()};return Y.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",d)}},[n,a,h,d]),{getRootProps:(A={})=>{const y=Ce({},Jve(t),Jve(A));return Ce({role:"presentation"},A,y,{onBlur:f(y),onFocus:p(y),onMouseEnter:m(y),onMouseLeave:g(y)})},onClickAway:u}}const awr=["onChange","maxRows","minRows","style","value"];function ice(t){return parseInt(t,10)||0}const owr={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function swr(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const lwr=Y.forwardRef(function(e,n){const{onChange:r,maxRows:a,minRows:o=1,style:s,value:l}=e,c=Wn(e,awr),{current:u}=Y.useRef(l!=null),d=Y.useRef(null),h=ju(n,d),f=Y.useRef(null),p=Y.useCallback(()=>{const v=d.current,y=$2(v).getComputedStyle(v);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=f.current;S.style.width=y.width,S.value=v.value||e.placeholder||"x",S.value.slice(-1)===`
`&&(S.value+=" ");const x=y.boxSizing,w=ice(y.paddingBottom)+ice(y.paddingTop),_=ice(y.borderBottomWidth)+ice(y.borderTopWidth),C=S.scrollHeight;S.value="x";const R=S.scrollHeight;let k=C;o&&(k=Math.max(Number(o)*R,k)),a&&(k=Math.min(Number(a)*R,k)),k=Math.max(k,R);const P=k+(x==="border-box"?w+_:0),N=Math.abs(k-C)<=1;return{outerHeightStyle:P,overflowing:N}},[a,o,e.placeholder]),m=Y.useCallback(()=>{const v=p();if(swr(v))return;const A=d.current;A.style.height=`${v.outerHeightStyle}px`,A.style.overflow=v.overflowing?"hidden":""},[p]);Cw(()=>{const v=()=>{m()};let A;const y=jxe(v),S=d.current,x=$2(S);x.addEventListener("resize",y);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(v),w.observe(S)),()=>{y.clear(),cancelAnimationFrame(A),x.removeEventListener("resize",y),w&&w.disconnect()}},[p,m]),Cw(()=>{m()});const g=v=>{u||m(),r&&r(v)};return E.jsxs(Y.Fragment,{children:[E.jsx("textarea",Ce({value:l,onChange:g,ref:h,rows:o,style:s},c)),E.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:Ce({},owr.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function uvt(t){return typeof t.normalize<"u"?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):t}function cwr(t={}){const{ignoreAccents:e=!0,ignoreCase:n=!0,limit:r,matchFrom:a="any",stringify:o,trim:s=!1}=t;return(l,{inputValue:c,getOptionLabel:u})=>{let d=s?c.trim():c;n&&(d=d.toLowerCase()),e&&(d=uvt(d));const h=d?l.filter(f=>{let p=(o||u)(f);return n&&(p=p.toLowerCase()),e&&(p=uvt(p)),a==="start"?p.indexOf(d)===0:p.indexOf(d)>-1}):l;return typeof r=="number"?h.slice(0,r):h}}function oce(t,e){for(let n=0;n<t.length;n+=1)if(e(t[n]))return n;return-1}const uwr=cwr(),dvt=5,dwr=t=>{var e;return t.current!==null&&((e=t.current.parentElement)==null?void 0:e.contains(document.activeElement))};function hwr(t){const{unstable_isActiveElementInListbox:e=dwr,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:o=!1,blurOnSelect:s=!1,clearOnBlur:l=!t.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=t.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:f=!1,disabled:p,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=uwr,filterSelectedOptions:A=!1,freeSolo:y=!1,getOptionDisabled:S,getOptionKey:x,getOptionLabel:w=ft=>{var rt;return(rt=ft.label)!=null?rt:ft},groupBy:_,handleHomeEndKeys:C=!t.freeSolo,id:R,includeInputInList:k=!1,inputValue:P,isOptionEqualToValue:N=(ft,rt)=>ft===rt,multiple:L=!1,onChange:I,onClose:b,onHighlightChange:T,onInputChange:M,onOpen:D,open:B,openOnFocus:j=!1,options:H,readOnly:U=!1,selectOnFocus:$=!t.freeSolo,value:z}=t,Z=O8(R);let K=w;K=ft=>{const rt=w(ft);return typeof rt!="string"?String(rt):rt};const Q=Y.useRef(!1),ee=Y.useRef(!0),X=Y.useRef(null),te=Y.useRef(null),[J,ne]=Y.useState(null),[ie,he]=Y.useState(-1),de=a?0:-1,ce=Y.useRef(de),[Ee,Me]=fw({controlled:z,default:d,name:u}),[Be,ze]=fw({controlled:P,default:"",name:u,state:"inputValue"}),[je,ye]=Y.useState(!1),me=Y.useCallback((ft,rt)=>{if(!(L?Ee.length<rt.length:rt!==null)&&!l)return;let Yt;if(L)Yt="";else if(rt==null)Yt="";else{const Un=K(rt);Yt=typeof Un=="string"?Un:""}Be!==Yt&&(ze(Yt),M&&M(ft,Yt,"reset"))},[K,Be,L,M,ze,l,Ee]),[le,pe]=fw({controlled:B,default:!1,name:u,state:"open"}),[Ne,_e]=Y.useState(!0),ue=!L&&Ee!=null&&Be===K(Ee),se=le&&!U,oe=se?v(H.filter(ft=>!(A&&(L?Ee:[Ee]).some(rt=>rt!==null&&N(ft,rt)))),{inputValue:ue&&Ne?"":Be,getOptionLabel:K}):[],ge=n1r({filteredOptions:oe,value:Ee,inputValue:Be});Y.useEffect(()=>{const ft=Ee!==ge.value;je&&!ft||y&&!ft||me(null,Ee)},[Ee,me,je,ge.value,y]);const De=le&&oe.length>0&&!U,Fe=pv(ft=>{ft===-1?X.current.focus():J.querySelector(`[data-tag-index="${ft}"]`).focus()});Y.useEffect(()=>{L&&ie>Ee.length-1&&(he(-1),Fe(-1))},[Ee,L,ie,Fe]);function Se(ft,rt){if(!te.current||ft<0||ft>=oe.length)return-1;let Pt=ft;for(;;){const Yt=te.current.querySelector(`[data-option-index="${Pt}"]`),Un=m?!1:!Yt||Yt.disabled||Yt.getAttribute("aria-disabled")==="true";if(Yt&&Yt.hasAttribute("tabindex")&&!Un)return Pt;if(rt==="next"?Pt=(Pt+1)%oe.length:Pt=(Pt-1+oe.length)%oe.length,Pt===ft)return-1}}const Xe=pv(({event:ft,index:rt,reason:Pt="auto"})=>{if(ce.current=rt,rt===-1?X.current.removeAttribute("aria-activedescendant"):X.current.setAttribute("aria-activedescendant",`${Z}-option-${rt}`),T&&T(ft,rt===-1?null:oe[rt],Pt),!te.current)return;const Yt=te.current.querySelector(`[role="option"].${n}-focused`);Yt&&(Yt.classList.remove(`${n}-focused`),Yt.classList.remove(`${n}-focusVisible`));let Un=te.current;if(te.current.getAttribute("role")!=="listbox"&&(Un=te.current.parentElement.querySelector('[role="listbox"]')),!Un)return;if(rt===-1){Un.scrollTop=0;return}const jn=te.current.querySelector(`[data-option-index="${rt}"]`);if(jn&&(jn.classList.add(`${n}-focused`),Pt==="keyboard"&&jn.classList.add(`${n}-focusVisible`),Un.scrollHeight>Un.clientHeight&&Pt!=="mouse"&&Pt!=="touch")){const br=jn,si=Un.clientHeight+Un.scrollTop,Qi=br.offsetTop+br.offsetHeight;Qi>si?Un.scrollTop=Qi-Un.clientHeight:br.offsetTop-br.offsetHeight*(_?1.3:0)<Un.scrollTop&&(Un.scrollTop=br.offsetTop-br.offsetHeight*(_?1.3:0))}}),Oe=pv(({event:ft,diff:rt,direction:Pt="next",reason:Yt="auto"})=>{if(!se)return;const jn=Se((()=>{const br=oe.length-1;if(rt==="reset")return de;if(rt==="start")return 0;if(rt==="end")return br;const si=ce.current+rt;return si<0?si===-1&&k?-1:g&&ce.current!==-1||Math.abs(rt)>1?0:br:si>br?si===br+1&&k?-1:g||Math.abs(rt)>1?br:0:si})(),Pt);if(Xe({index:jn,reason:Yt,event:ft}),r&&rt!=="reset")if(jn===-1)X.current.value=Be;else{const br=K(oe[jn]);X.current.value=br,br.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&X.current.setSelectionRange(Be.length,br.length)}}),Ye=()=>{const ft=(rt,Pt)=>{const Yt=rt?K(rt):"",Un=Pt?K(Pt):"";return Yt===Un};if(ce.current!==-1&&ge.filteredOptions&&ge.filteredOptions.length!==oe.length&&ge.inputValue===Be&&(L?Ee.length===ge.value.length&&ge.value.every((rt,Pt)=>K(Ee[Pt])===K(rt)):ft(ge.value,Ee))){const rt=ge.filteredOptions[ce.current];if(rt)return oce(oe,Pt=>K(Pt)===K(rt))}return-1},mt=Y.useCallback(()=>{if(!se)return;const ft=Ye();if(ft!==-1){ce.current=ft;return}const rt=L?Ee[0]:Ee;if(oe.length===0||rt==null){Oe({diff:"reset"});return}if(te.current){if(rt!=null){const Pt=oe[ce.current];if(L&&Pt&&oce(Ee,Un=>N(Pt,Un))!==-1)return;const Yt=oce(oe,Un=>N(Un,rt));Yt===-1?Oe({diff:"reset"}):Xe({index:Yt});return}if(ce.current>=oe.length-1){Xe({index:oe.length-1});return}Xe({index:ce.current})}},[oe.length,L?!1:Ee,A,Oe,Xe,se,Be,L]),ut=pv(ft=>{Ete(te,ft),ft&&mt()});Y.useEffect(()=>{mt()},[mt]);const lt=ft=>{le||(pe(!0),_e(!0),D&&D(ft))},pn=(ft,rt)=>{le&&(pe(!1),b&&b(ft,rt))},sn=(ft,rt,Pt,Yt)=>{if(L){if(Ee.length===rt.length&&Ee.every((Un,jn)=>Un===rt[jn]))return}else if(Ee===rt)return;I&&I(ft,rt,Pt,Yt),Me(rt)},un=Y.useRef(!1),ur=(ft,rt,Pt="selectOption",Yt="options")=>{let Un=Pt,jn=rt;if(L){jn=Array.isArray(Ee)?Ee.slice():[];const br=oce(jn,si=>N(rt,si));br===-1?jn.push(rt):Yt!=="freeSolo"&&(jn.splice(br,1),Un="removeOption")}me(ft,jn),sn(ft,jn,Un,{option:rt}),!f&&(!ft||!ft.ctrlKey&&!ft.metaKey)&&pn(ft,Un),(s===!0||s==="touch"&&un.current||s==="mouse"&&!un.current)&&X.current.blur()};function dt(ft,rt){if(ft===-1)return-1;let Pt=ft;for(;;){if(rt==="next"&&Pt===Ee.length||rt==="previous"&&Pt===-1)return-1;const Yt=J.querySelector(`[data-tag-index="${Pt}"]`);if(!Yt||!Yt.hasAttribute("tabindex")||Yt.disabled||Yt.getAttribute("aria-disabled")==="true")Pt+=rt==="next"?1:-1;else return Pt}}const xt=(ft,rt)=>{if(!L)return;Be===""&&pn(ft,"toggleInput");let Pt=ie;ie===-1?Be===""&&rt==="previous"&&(Pt=Ee.length-1):(Pt+=rt==="next"?1:-1,Pt<0&&(Pt=0),Pt===Ee.length&&(Pt=-1)),Pt=dt(Pt,rt),he(Pt),Fe(Pt)},Cn=ft=>{Q.current=!0,ze(""),M&&M(ft,"","clear"),sn(ft,L?[]:null,"clear")},Kt=ft=>rt=>{if(ft.onKeyDown&&ft.onKeyDown(rt),!rt.defaultMuiPrevented&&(ie!==-1&&["ArrowLeft","ArrowRight"].indexOf(rt.key)===-1&&(he(-1),Fe(-1)),rt.which!==229))switch(rt.key){case"Home":se&&C&&(rt.preventDefault(),Oe({diff:"start",direction:"next",reason:"keyboard",event:rt}));break;case"End":se&&C&&(rt.preventDefault(),Oe({diff:"end",direction:"previous",reason:"keyboard",event:rt}));break;case"PageUp":rt.preventDefault(),Oe({diff:-dvt,direction:"previous",reason:"keyboard",event:rt}),lt(rt);break;case"PageDown":rt.preventDefault(),Oe({diff:dvt,direction:"next",reason:"keyboard",event:rt}),lt(rt);break;case"ArrowDown":rt.preventDefault(),Oe({diff:1,direction:"next",reason:"keyboard",event:rt}),lt(rt);break;case"ArrowUp":rt.preventDefault(),Oe({diff:-1,direction:"previous",reason:"keyboard",event:rt}),lt(rt);break;case"ArrowLeft":xt(rt,"previous");break;case"ArrowRight":xt(rt,"next");break;case"Enter":if(ce.current!==-1&&se){const Pt=oe[ce.current],Yt=S?S(Pt):!1;if(rt.preventDefault(),Yt)return;ur(rt,Pt,"selectOption"),r&&X.current.setSelectionRange(X.current.value.length,X.current.value.length)}else y&&Be!==""&&ue===!1&&(L&&rt.preventDefault(),ur(rt,Be,"createOption","freeSolo"));break;case"Escape":se?(rt.preventDefault(),rt.stopPropagation(),pn(rt,"escape")):c&&(Be!==""||L&&Ee.length>0)&&(rt.preventDefault(),rt.stopPropagation(),Cn(rt));break;case"Backspace":if(L&&!U&&Be===""&&Ee.length>0){const Pt=ie===-1?Ee.length-1:ie,Yt=Ee.slice();Yt.splice(Pt,1),sn(rt,Yt,"removeOption",{option:Ee[Pt]})}break;case"Delete":if(L&&!U&&Be===""&&Ee.length>0&&ie!==-1){const Pt=ie,Yt=Ee.slice();Yt.splice(Pt,1),sn(rt,Yt,"removeOption",{option:Ee[Pt]})}break}},rn=ft=>{ye(!0),j&&!Q.current&&lt(ft)},On=ft=>{if(e(te)){X.current.focus();return}ye(!1),ee.current=!0,Q.current=!1,o&&ce.current!==-1&&se?ur(ft,oe[ce.current],"blur"):o&&y&&Be!==""?ur(ft,Be,"blur","freeSolo"):l&&me(ft,Ee),pn(ft,"blur")},an=ft=>{const rt=ft.target.value;Be!==rt&&(ze(rt),_e(!1),M&&M(ft,rt,"input")),rt===""?!h&&!L&&sn(ft,null,"clear"):lt(ft)},on=ft=>{const rt=Number(ft.currentTarget.getAttribute("data-option-index"));ce.current!==rt&&Xe({event:ft,index:rt,reason:"mouse"})},dr=ft=>{Xe({event:ft,index:Number(ft.currentTarget.getAttribute("data-option-index")),reason:"touch"}),un.current=!0},$e=ft=>{const rt=Number(ft.currentTarget.getAttribute("data-option-index"));ur(ft,oe[rt],"selectOption"),un.current=!1},qe=ft=>rt=>{const Pt=Ee.slice();Pt.splice(ft,1),sn(rt,Pt,"removeOption",{option:Ee[ft]})},yt=ft=>{le?pn(ft,"toggleInput"):lt(ft)},Ze=ft=>{ft.currentTarget.contains(ft.target)&&ft.target.getAttribute("id")!==Z&&ft.preventDefault()},ot=ft=>{ft.currentTarget.contains(ft.target)&&(X.current.focus(),$&&ee.current&&X.current.selectionEnd-X.current.selectionStart===0&&X.current.select(),ee.current=!1)},yn=ft=>{!p&&(Be===""||!le)&&yt(ft)};let vt=y&&Be.length>0;vt=vt||(L?Ee.length>0:Ee!==null);let Gt=oe;return _&&(Gt=oe.reduce((ft,rt,Pt)=>{const Yt=_(rt);return ft.length>0&&ft[ft.length-1].group===Yt?ft[ft.length-1].options.push(rt):ft.push({key:Pt,index:Pt,group:Yt,options:[rt]}),ft},[])),p&&je&&On(),{getRootProps:(ft={})=>Ce({"aria-owns":De?`${Z}-listbox`:null},ft,{onKeyDown:Kt(ft),onMouseDown:Ze,onClick:ot}),getInputLabelProps:()=>({id:`${Z}-label`,htmlFor:Z}),getInputProps:()=>({id:Z,value:Be,onBlur:On,onFocus:rn,onChange:an,onMouseDown:yn,"aria-activedescendant":se?"":null,"aria-autocomplete":r?"both":"list","aria-controls":De?`${Z}-listbox`:void 0,"aria-expanded":De,autoComplete:"off",ref:X,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Cn}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:yt}),getTagProps:({index:ft})=>Ce({key:ft,"data-tag-index":ft,tabIndex:-1},!U&&{onDelete:qe(ft)}),getListboxProps:()=>({role:"listbox",id:`${Z}-listbox`,"aria-labelledby":`${Z}-label`,ref:ut,onMouseDown:ft=>{ft.preventDefault()}}),getOptionProps:({index:ft,option:rt})=>{var Pt;const Yt=(L?Ee:[Ee]).some(jn=>jn!=null&&N(rt,jn)),Un=S?S(rt):!1;return{key:(Pt=x==null?void 0:x(rt))!=null?Pt:K(rt),tabIndex:-1,role:"option",id:`${Z}-option-${ft}`,onMouseMove:on,onClick:$e,onTouchStart:dr,"data-option-index":ft,"aria-disabled":Un,"aria-selected":Yt}},id:Z,inputValue:Be,value:Ee,dirty:vt,expanded:se&&J,popupOpen:se,focused:je||ie!==-1,anchorEl:J,setAnchorEl:ne,focusedTag:ie,groupedOptions:Gt}}var SXe={};Object.defineProperty(SXe,"__esModule",{value:!0});var nYt=SXe.default=void 0,fwr=mwr(Y),pwr=Aqt;function rYt(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(rYt=function(r){return r?n:e})(t)}function mwr(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=rYt(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function gwr(t){return Object.keys(t).length===0}function vwr(t=null){const e=fwr.useContext(pwr.ThemeContext);return!e||gwr(e)?t:e}nYt=SXe.default=vwr;const Awr=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ywr=En(rwr,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),bwr=Y.forwardRef(function(e,n){var r;const a=nYt(),o=Vi({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:d,disablePortal:h,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:v,popperRef:A,transition:y,slots:S,slotProps:x}=o,w=Wn(o,Awr),_=(r=S==null?void 0:S.root)!=null?r:c==null?void 0:c.Root,C=Ce({anchorEl:s,container:d,disablePortal:h,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:v,popperRef:A,transition:y},w);return E.jsx(ywr,Ce({as:l,direction:a==null?void 0:a.direction,slots:{root:_},slotProps:x??u},C,{ref:n}))}),nEe=bwr;function xwr(t){return mi("MuiListSubheader",t)}ei("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ewr=["className","color","component","disableGutters","disableSticky","inset"],Swr=t=>{const{classes:e,color:n,disableGutters:r,inset:a,disableSticky:o}=t,s={root:["root",n!=="default"&&`color${fn(n)}`,!r&&"gutters",a&&"inset",!o&&"sticky"]};return gi(s,xwr,e)},wwr=En("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${fn(n.color)}`],!n.disableGutters&&e.gutters,n.inset&&e.inset,!n.disableSticky&&e.sticky]}})(({theme:t,ownerState:e})=>Ce({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},e.color==="primary"&&{color:(t.vars||t).palette.primary.main},e.color==="inherit"&&{color:"inherit"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.inset&&{paddingLeft:72},!e.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})),iYt=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiListSubheader"}),{className:a,color:o="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1}=r,d=Wn(r,Ewr),h=Ce({},r,{color:o,component:s,disableGutters:l,disableSticky:c,inset:u}),f=Swr(h);return E.jsx(wwr,Ce({as:s,className:nr(f.root,a),ref:n,ownerState:h},d))});iYt.muiSkipListHighlight=!0;const _wr=iYt,Twr=xl(E.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Cwr(t){return mi("MuiChip",t)}const kwr=ei("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Bl=kwr,Rwr=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Mwr=t=>{const{classes:e,disabled:n,size:r,color:a,iconColor:o,onDelete:s,clickable:l,variant:c}=t,u={root:["root",c,n&&"disabled",`size${fn(r)}`,`color${fn(a)}`,l&&"clickable",l&&`clickableColor${fn(a)}`,s&&"deletable",s&&`deletableColor${fn(a)}`,`${c}${fn(a)}`],label:["label",`label${fn(r)}`],avatar:["avatar",`avatar${fn(r)}`,`avatarColor${fn(a)}`],icon:["icon",`icon${fn(r)}`,`iconColor${fn(o)}`],deleteIcon:["deleteIcon",`deleteIcon${fn(r)}`,`deleteIconColor${fn(a)}`,`deleteIcon${fn(c)}Color${fn(a)}`]};return gi(u,Cwr,e)},Nwr=En("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:a,clickable:o,onDelete:s,size:l,variant:c}=n;return[{[`& .${Bl.avatar}`]:e.avatar},{[`& .${Bl.avatar}`]:e[`avatar${fn(l)}`]},{[`& .${Bl.avatar}`]:e[`avatarColor${fn(r)}`]},{[`& .${Bl.icon}`]:e.icon},{[`& .${Bl.icon}`]:e[`icon${fn(l)}`]},{[`& .${Bl.icon}`]:e[`iconColor${fn(a)}`]},{[`& .${Bl.deleteIcon}`]:e.deleteIcon},{[`& .${Bl.deleteIcon}`]:e[`deleteIcon${fn(l)}`]},{[`& .${Bl.deleteIcon}`]:e[`deleteIconColor${fn(r)}`]},{[`& .${Bl.deleteIcon}`]:e[`deleteIcon${fn(c)}Color${fn(r)}`]},e.root,e[`size${fn(l)}`],e[`color${fn(r)}`],o&&e.clickable,o&&r!=="default"&&e[`clickableColor${fn(r)})`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${fn(r)}`],e[c],e[`${c}${fn(r)}`]]}})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return Ce({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Bl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Bl.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},[`& .${Bl.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${Bl.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${Bl.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${Bl.icon}`]:Ce({marginLeft:5,marginRight:-6},e.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},e.iconColor===e.color&&Ce({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},e.color!=="default"&&{color:"inherit"})),[`& .${Bl.deleteIcon}`]:Ce({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:ss(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:ss(t.palette.text.primary,.4)}},e.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},e.color!=="default"&&{color:t.vars?`rgba(${t.vars.palette[e.color].contrastTextChannel} / 0.7)`:ss(t.palette[e.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].contrastText}})},e.size==="small"&&{height:24},e.color!=="default"&&{backgroundColor:(t.vars||t).palette[e.color].main,color:(t.vars||t).palette[e.color].contrastText},e.onDelete&&{[`&.${Bl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:ss(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},e.onDelete&&e.color!=="default"&&{[`&.${Bl.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}})},({theme:t,ownerState:e})=>Ce({},e.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ss(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${Bl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:ss(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},e.clickable&&e.color!=="default"&&{[`&:hover, &.${Bl.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}}),({theme:t,ownerState:e})=>Ce({},e.variant==="outlined"&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${Bl.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Bl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${Bl.avatar}`]:{marginLeft:4},[`& .${Bl.avatarSmall}`]:{marginLeft:2},[`& .${Bl.icon}`]:{marginLeft:4},[`& .${Bl.iconSmall}`]:{marginLeft:2},[`& .${Bl.deleteIcon}`]:{marginRight:5},[`& .${Bl.deleteIconSmall}`]:{marginRight:3}},e.variant==="outlined"&&e.color!=="default"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:ss(t.palette[e.color].main,.7)}`,[`&.${Bl.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(t.palette[e.color].main,t.palette.action.hoverOpacity)},[`&.${Bl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:ss(t.palette[e.color].main,t.palette.action.focusOpacity)},[`& .${Bl.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:ss(t.palette[e.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].main}}})),Iwr=En("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${fn(r)}`]]}})(({ownerState:t})=>Ce({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},t.variant==="outlined"&&{paddingLeft:11,paddingRight:11},t.size==="small"&&{paddingLeft:8,paddingRight:8},t.size==="small"&&t.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function hvt(t){return t.key==="Backspace"||t.key==="Delete"}const Pwr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiChip"}),{avatar:a,className:o,clickable:s,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:h,label:f,onClick:p,onDelete:m,onKeyDown:g,onKeyUp:v,size:A="medium",variant:y="filled",tabIndex:S,skipFocusWhenDisabled:x=!1}=r,w=Wn(r,Rwr),_=Y.useRef(null),C=ju(_,n),R=j=>{j.stopPropagation(),m&&m(j)},k=j=>{j.currentTarget===j.target&&hvt(j)&&j.preventDefault(),g&&g(j)},P=j=>{j.currentTarget===j.target&&(m&&hvt(j)?m(j):j.key==="Escape"&&_.current&&_.current.blur()),v&&v(j)},N=s!==!1&&p?!0:s,L=N||m?kw:c||"div",I=Ce({},r,{component:L,disabled:d,size:A,color:l,iconColor:Y.isValidElement(h)&&h.props.color||l,onDelete:!!m,clickable:N,variant:y}),b=Mwr(I),T=L===kw?Ce({component:c||"div",focusVisibleClassName:b.focusVisible},m&&{disableRipple:!0}):{};let M=null;m&&(M=u&&Y.isValidElement(u)?Y.cloneElement(u,{className:nr(u.props.className,b.deleteIcon),onClick:R}):E.jsx(Twr,{className:nr(b.deleteIcon),onClick:R}));let D=null;a&&Y.isValidElement(a)&&(D=Y.cloneElement(a,{className:nr(b.avatar,a.props.className)}));let B=null;return h&&Y.isValidElement(h)&&(B=Y.cloneElement(h,{className:nr(b.icon,h.props.className)})),E.jsxs(Nwr,Ce({as:L,className:nr(b.root,o),disabled:N&&d?!0:void 0,onClick:p,onKeyDown:k,onKeyUp:P,ref:C,tabIndex:x&&d?-1:S,ownerState:I},T,w,{children:[D||B,E.jsx(Iwr,{className:nr(b.label),ownerState:I,children:f}),M]}))}),Owr=Pwr;function XP({props:t,states:e,muiFormControl:n}){return e.reduce((r,a)=>(r[a]=t[a],n&&typeof t[a]>"u"&&(r[a]=n[a]),r),{})}const Lwr=Y.createContext(void 0),rEe=Lwr;function tb(){return Y.useContext(rEe)}function Bwr(t){return E.jsx(dAr,Ce({},t,{defaultTheme:Uxe,themeId:l6}))}function fvt(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function e0e(t,e=!1){return t&&(fvt(t.value)&&t.value!==""||e&&fvt(t.defaultValue)&&t.defaultValue!=="")}function Dwr(t){return t.startAdornment}function $wr(t){return mi("MuiInputBase",t)}const Fwr=ei("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),yy=Fwr,jwr=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],iEe=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${fn(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},aEe=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Hwr=t=>{const{classes:e,color:n,disabled:r,error:a,endAdornment:o,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:h,size:f,startAdornment:p,type:m}=t,g={root:["root",`color${fn(n)}`,r&&"disabled",a&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",f&&f!=="medium"&&`size${fn(f)}`,d&&"multiline",p&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return gi(g,$wr,e)},oEe=En("div",{name:"MuiInputBase",slot:"Root",overridesResolver:iEe})(({theme:t,ownerState:e})=>Ce({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${yy.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&Ce({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),sEe=En("input",{name:"MuiInputBase",slot:"Input",overridesResolver:aEe})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light",r=Ce({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ce({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yy.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${yy.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),Uwr=E.jsx(Bwr,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zwr=Y.forwardRef(function(e,n){var r;const a=Vi({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:l,className:c,components:u={},componentsProps:d={},defaultValue:h,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,fullWidth:g=!1,id:v,inputComponent:A="input",inputProps:y={},inputRef:S,maxRows:x,minRows:w,multiline:_=!1,name:C,onBlur:R,onChange:k,onClick:P,onFocus:N,onKeyDown:L,onKeyUp:I,placeholder:b,readOnly:T,renderSuffix:M,rows:D,slotProps:B={},slots:j={},startAdornment:H,type:U="text",value:$}=a,z=Wn(a,jwr),Z=y.value!=null?y.value:$,{current:K}=Y.useRef(Z!=null),Q=Y.useRef(),ee=Y.useCallback(se=>{},[]),X=ju(Q,S,y.ref,ee),[te,J]=Y.useState(!1),ne=tb(),ie=XP({props:a,muiFormControl:ne,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=ne?ne.focused:te,Y.useEffect(()=>{!ne&&f&&te&&(J(!1),R&&R())},[ne,f,te,R]);const he=ne&&ne.onFilled,de=ne&&ne.onEmpty,ce=Y.useCallback(se=>{e0e(se)?he&&he():de&&de()},[he,de]);Cw(()=>{K&&ce({value:Z})},[Z,ce,K]);const Ee=se=>{if(ie.disabled){se.stopPropagation();return}N&&N(se),y.onFocus&&y.onFocus(se),ne&&ne.onFocus?ne.onFocus(se):J(!0)},Me=se=>{R&&R(se),y.onBlur&&y.onBlur(se),ne&&ne.onBlur?ne.onBlur(se):J(!1)},Be=(se,...oe)=>{if(!K){const ge=se.target||Q.current;if(ge==null)throw new Error(pM(1));ce({value:ge.value})}y.onChange&&y.onChange(se,...oe),k&&k(se,...oe)};Y.useEffect(()=>{ce(Q.current)},[]);const ze=se=>{Q.current&&se.currentTarget===se.target&&Q.current.focus(),P&&P(se)};let je=A,ye=y;_&&je==="input"&&(D?ye=Ce({type:void 0,minRows:D,maxRows:D},ye):ye=Ce({type:void 0,maxRows:x,minRows:w},ye),je=lwr);const me=se=>{ce(se.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};Y.useEffect(()=>{ne&&ne.setAdornedStart(!!H)},[ne,H]);const le=Ce({},a,{color:ie.color||"primary",disabled:ie.disabled,endAdornment:m,error:ie.error,focused:ie.focused,formControl:ne,fullWidth:g,hiddenLabel:ie.hiddenLabel,multiline:_,size:ie.size,startAdornment:H,type:U}),pe=Hwr(le),Ne=j.root||u.Root||oEe,_e=B.root||d.root||{},ue=j.input||u.Input||sEe;return ye=Ce({},ye,(r=B.input)!=null?r:d.input),E.jsxs(Y.Fragment,{children:[!p&&Uwr,E.jsxs(Ne,Ce({},_e,!Yve(Ne)&&{ownerState:Ce({},le,_e.ownerState)},{ref:n,onClick:ze},z,{className:nr(pe.root,_e.className,c,T&&"MuiInputBase-readOnly"),children:[H,E.jsx(rEe.Provider,{value:null,children:E.jsx(ue,Ce({ownerState:le,"aria-invalid":ie.error,"aria-describedby":o,autoComplete:s,autoFocus:l,defaultValue:h,disabled:ie.disabled,id:v,onAnimationStart:me,name:C,placeholder:b,readOnly:T,required:ie.required,rows:D,value:Z,onKeyDown:L,onKeyUp:I,type:U},ye,!Yve(ue)&&{as:je,ownerState:Ce({},le,ye.ownerState)},{ref:X,className:nr(pe.input,ye.className,T&&"MuiInputBase-readOnly"),onBlur:Me,onChange:Be,onFocus:Ee}))}),m,M?M(Ce({},ie,{startAdornment:H})):null]}))]})}),wXe=zwr;function Gwr(t){return mi("MuiInput",t)}const Vwr=Ce({},yy,ei("MuiInput",["root","underline","input"])),E3=Vwr;function Kwr(t){return mi("MuiOutlinedInput",t)}const Wwr=Ce({},yy,ei("MuiOutlinedInput",["root","notchedOutline","input"])),dT=Wwr;function Qwr(t){return mi("MuiFilledInput",t)}const qwr=Ce({},yy,ei("MuiFilledInput",["root","underline","input"])),by=qwr,aYt=xl(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Ywr(t){return mi("MuiAutocomplete",t)}const Jwr=ei("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),ms=Jwr;var pvt,mvt;const Zwr=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Xwr=["ref"],e_r=["key"],t_r=["key"],n_r=Jie(),r_r=t=>{const{classes:e,disablePortal:n,expanded:r,focused:a,fullWidth:o,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:u,size:d}=t,h={root:["root",r&&"expanded",a&&"focused",o&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${fn(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return gi(h,Ywr,e)},i_r=En("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{fullWidth:r,hasClearIcon:a,hasPopupIcon:o,inputFocused:s,size:l}=n;return[{[`& .${ms.tag}`]:e.tag},{[`& .${ms.tag}`]:e[`tagSize${fn(l)}`]},{[`& .${ms.inputRoot}`]:e.inputRoot},{[`& .${ms.input}`]:e.input},{[`& .${ms.input}`]:s&&e.inputFocused},e.root,r&&e.fullWidth,o&&e.hasPopupIcon,a&&e.hasClearIcon]}})({[`&.${ms.focused} .${ms.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ms.clearIndicator}`]:{visibility:"visible"}},[`& .${ms.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ms.inputRoot}`]:{[`.${ms.hasPopupIcon}&, .${ms.hasClearIcon}&`]:{paddingRight:26+4},[`.${ms.hasPopupIcon}.${ms.hasClearIcon}&`]:{paddingRight:52+4},[`& .${ms.input}`]:{width:0,minWidth:30}},[`& .${E3.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${E3.root}.${yy.sizeSmall}`]:{[`& .${E3.input}`]:{padding:"2px 4px 3px 0"}},[`& .${dT.root}`]:{padding:9,[`.${ms.hasPopupIcon}&, .${ms.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${ms.hasPopupIcon}.${ms.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${ms.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ms.endAdornment}`]:{right:9}},[`& .${dT.root}.${yy.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ms.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${by.root}`]:{paddingTop:19,paddingLeft:8,[`.${ms.hasPopupIcon}&, .${ms.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${ms.hasPopupIcon}.${ms.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${by.input}`]:{padding:"7px 4px"},[`& .${ms.endAdornment}`]:{right:9}},[`& .${by.root}.${yy.sizeSmall}`]:{paddingBottom:1,[`& .${by.input}`]:{padding:"2.5px 4px"}},[`& .${yy.hiddenLabel}`]:{paddingTop:8},[`& .${by.root}.${yy.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ms.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${by.root}.${yy.hiddenLabel}.${yy.sizeSmall}`]:{[`& .${ms.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ms.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ms.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ms.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ms.inputRoot}`]:{flexWrap:"wrap"}}}]}),a_r=En("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(t,e)=>e.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),o_r=En(dG,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(t,e)=>e.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),s_r=En(dG,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:t},e)=>Ce({},e.popupIndicator,t.popupOpen&&e.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),l_r=En(nEe,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${ms.option}`]:e.option},e.popper,n.disablePortal&&e.popperDisablePortal]}})(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),c_r=En(X0,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(t,e)=>e.paper})(({theme:t})=>Ce({},t.typography.body1,{overflow:"auto"})),u_r=En("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(t,e)=>e.loading})(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"})),d_r=En("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(t,e)=>e.noOptions})(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"})),h_r=En("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(t,e)=>e.listbox})(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ms.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${ms.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ms.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ss(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${ms.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ss(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${ms.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:ss(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}})),f_r=En(_wr,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(t,e)=>e.groupLabel})(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8})),p_r=En("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(t,e)=>e.groupUl})({padding:0,[`& .${ms.option}`]:{paddingLeft:24}}),m_r=Y.forwardRef(function(e,n){var r,a,o,s;const l=n_r({props:e,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:h=!1,ChipProps:f,className:p,clearIcon:m=pvt||(pvt=E.jsx(jqt,{fontSize:"small"})),clearOnBlur:g=!l.freeSolo,clearOnEscape:v=!1,clearText:A="Clear",closeText:y="Close",componentsProps:S={},defaultValue:x=l.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:_=!1,disabled:C=!1,disabledItemsFocusable:R=!1,disableListWrap:k=!1,disablePortal:P=!1,filterSelectedOptions:N=!1,forcePopupIcon:L="auto",freeSolo:I=!1,fullWidth:b=!1,getLimitTagsText:T=Yt=>`+${Yt}`,getOptionLabel:M,groupBy:D,handleHomeEndKeys:B=!l.freeSolo,includeInputInList:j=!1,limitTags:H=-1,ListboxComponent:U="ul",ListboxProps:$,loading:z=!1,loadingText:Z="Loading…",multiple:K=!1,noOptionsText:Q="No options",openOnFocus:ee=!1,openText:X="Open",PaperComponent:te=X0,PopperComponent:J=nEe,popupIcon:ne=mvt||(mvt=E.jsx(aYt,{})),readOnly:ie=!1,renderGroup:he,renderInput:de,renderOption:ce,renderTags:Ee,selectOnFocus:Me=!l.freeSolo,size:Be="medium",slotProps:ze={}}=l,je=Wn(l,Zwr),{getRootProps:ye,getInputProps:me,getInputLabelProps:le,getPopupIndicatorProps:pe,getClearProps:Ne,getTagProps:_e,getListboxProps:ue,getOptionProps:se,value:oe,dirty:ge,expanded:De,id:Fe,popupOpen:Se,focused:Xe,focusedTag:Oe,anchorEl:Ye,setAnchorEl:mt,inputValue:ut,groupedOptions:lt}=hwr(Ce({},l,{componentName:"Autocomplete"})),pn=!w&&!C&&ge&&!ie,sn=(!I||L===!0)&&L!==!1,{onMouseDown:un}=me(),{ref:ur}=$??{},dt=ue(),{ref:xt}=dt,Cn=Wn(dt,Xwr),Kt=ju(xt,ur),On=M||(Yt=>{var Un;return(Un=Yt.label)!=null?Un:Yt}),an=Ce({},l,{disablePortal:P,expanded:De,focused:Xe,fullWidth:b,getOptionLabel:On,hasClearIcon:pn,hasPopupIcon:sn,inputFocused:Oe===-1,popupOpen:Se,size:Be}),on=r_r(an);let dr;if(K&&oe.length>0){const Yt=Un=>Ce({className:on.tag,disabled:C},_e(Un));Ee?dr=Ee(oe,Yt,an):dr=oe.map((Un,jn)=>{const br=Yt({index:jn}),{key:si}=br,Qi=Wn(br,e_r);return E.jsx(Owr,Ce({label:On(Un),size:Be},Qi,f),si)})}if(H>-1&&Array.isArray(dr)){const Yt=dr.length-H;!Xe&&Yt>0&&(dr=dr.splice(0,H),dr.push(E.jsx("span",{className:on.tag,children:T(Yt)},dr.length)))}const qe=he||(Yt=>E.jsxs("li",{children:[E.jsx(f_r,{className:on.groupLabel,ownerState:an,component:"div",children:Yt.group}),E.jsx(p_r,{className:on.groupUl,ownerState:an,children:Yt.children})]},Yt.key)),Ze=ce||((Yt,Un)=>{const{key:jn}=Yt,br=Wn(Yt,t_r);return E.jsx("li",Ce({},br,{children:On(Un)}),jn)}),ot=(Yt,Un)=>{const jn=se({option:Yt,index:Un});return Ze(Ce({},jn,{className:on.option}),Yt,{selected:jn["aria-selected"],index:Un,inputValue:ut},an)},yn=(r=ze.clearIndicator)!=null?r:S.clearIndicator,vt=(a=ze.paper)!=null?a:S.paper,Gt=(o=ze.popper)!=null?o:S.popper,ft=(s=ze.popupIndicator)!=null?s:S.popupIndicator,rt=Yt=>E.jsx(l_r,Ce({as:J,disablePortal:P,style:{width:Ye?Ye.clientWidth:null},ownerState:an,role:"presentation",anchorEl:Ye,open:Se},Gt,{className:nr(on.popper,Gt==null?void 0:Gt.className),children:E.jsx(c_r,Ce({ownerState:an,as:te},vt,{className:nr(on.paper,vt==null?void 0:vt.className),children:Yt}))}));let Pt=null;return lt.length>0?Pt=rt(E.jsx(h_r,Ce({as:U,className:on.listbox,ownerState:an},Cn,$,{ref:Kt,children:lt.map((Yt,Un)=>D?qe({key:Yt.key,group:Yt.group,children:Yt.options.map((jn,br)=>ot(jn,Yt.index+br))}):ot(Yt,Un))}))):z&&lt.length===0?Pt=rt(E.jsx(u_r,{className:on.loading,ownerState:an,children:Z})):lt.length===0&&!I&&!z&&(Pt=rt(E.jsx(d_r,{className:on.noOptions,ownerState:an,role:"presentation",onMouseDown:Yt=>{Yt.preventDefault()},children:Q}))),E.jsxs(Y.Fragment,{children:[E.jsx(i_r,Ce({ref:n,className:nr(on.root,p),ownerState:an},ye(je),{children:de({id:Fe,disabled:C,fullWidth:!0,size:Be==="small"?"small":void 0,InputLabelProps:le(),InputProps:Ce({ref:mt,className:on.inputRoot,startAdornment:dr,onClick:Yt=>{Yt.target===Yt.currentTarget&&un(Yt)}},(pn||sn)&&{endAdornment:E.jsxs(a_r,{className:on.endAdornment,ownerState:an,children:[pn?E.jsx(o_r,Ce({},Ne(),{"aria-label":A,title:A,ownerState:an},yn,{className:nr(on.clearIndicator,yn==null?void 0:yn.className),children:m})):null,sn?E.jsx(s_r,Ce({},pe(),{disabled:C,"aria-label":Se?y:X,title:Se?y:X,ownerState:an},ft,{className:nr(on.popupIndicator,ft==null?void 0:ft.className),children:ne})):null]})}),inputProps:Ce({className:on.input,disabled:C,readOnly:ie},me())})})),Ye?Pt:null]})}),iHe=m_r,g_r=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],v_r={entering:{opacity:1},entered:{opacity:1}},A_r=Y.forwardRef(function(e,n){const r=YM(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:h,onEntering:f,onExit:p,onExited:m,onExiting:g,style:v,timeout:A=a,TransitionComponent:y=Xxe}=e,S=Wn(e,g_r),x=Y.useRef(null),w=ju(x,l.ref,n),_=b=>T=>{if(b){const M=x.current;T===void 0?b(M):b(M,T)}},C=_(f),R=_((b,T)=>{mXe(b);const M=Z5({style:v,timeout:A,easing:c},{mode:"enter"});b.style.webkitTransition=r.transitions.create("opacity",M),b.style.transition=r.transitions.create("opacity",M),d&&d(b,T)}),k=_(h),P=_(g),N=_(b=>{const T=Z5({style:v,timeout:A,easing:c},{mode:"exit"});b.style.webkitTransition=r.transitions.create("opacity",T),b.style.transition=r.transitions.create("opacity",T),p&&p(b)}),L=_(m),I=b=>{o&&o(x.current,b)};return E.jsx(y,Ce({appear:s,in:u,nodeRef:x,onEnter:R,onEntered:k,onEntering:C,onExit:N,onExited:L,onExiting:P,addEndListener:I,timeout:A},S,{children:(b,T)=>Y.cloneElement(l,Ce({style:Ce({opacity:0,visibility:b==="exited"&&!u?"hidden":void 0},v_r[b],v,l.props.style),ref:w},T))}))}),oYt=A_r;function y_r(t){return mi("MuiBackdrop",t)}ei("MuiBackdrop",["root","invisible"]);const b_r=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],x_r=t=>{const{classes:e,invisible:n}=t;return gi({root:["root",n&&"invisible"]},y_r,e)},E_r=En("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>Ce({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),S_r=Y.forwardRef(function(e,n){var r,a,o;const s=Vi({props:e,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:h={},invisible:f=!1,open:p,slotProps:m={},slots:g={},TransitionComponent:v=oYt,transitionDuration:A}=s,y=Wn(s,b_r),S=Ce({},s,{component:u,invisible:f}),x=x_r(S),w=(r=m.root)!=null?r:h.root;return E.jsx(v,Ce({in:p,timeout:A},y,{children:E.jsx(E_r,Ce({"aria-hidden":!0},w,{as:(a=(o=g.root)!=null?o:d.Root)!=null?a:u,className:nr(x.root,c,w==null?void 0:w.className),ownerState:Ce({},S,w==null?void 0:w.ownerState),classes:x,ref:n,children:l}))}))}),sYt=S_r,w_r=ei("MuiBox",["root"]),__r=w_r,T_r=sXe(),C_r=AAr({themeId:l6,defaultTheme:T_r,defaultClassName:__r.root,generateClassName:XZe.generate}),k_r=C_r;function R_r(t){return mi("MuiButton",t)}const M_r=ei("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),sce=M_r,N_r=Y.createContext({}),lYt=N_r,I_r=Y.createContext(void 0),cYt=I_r,P_r=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],O_r=t=>{const{color:e,disableElevation:n,fullWidth:r,size:a,variant:o,classes:s}=t,l={root:["root",o,`${o}${fn(e)}`,`size${fn(a)}`,`${o}Size${fn(a)}`,`color${fn(e)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fn(a)}`],endIcon:["icon","endIcon",`iconSize${fn(a)}`]},c=gi(l,R_r,s);return Ce({},s,c)},uYt=t=>Ce({},t.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},t.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},t.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),L_r=En(kw,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${fn(n.color)}`],e[`size${fn(n.size)}`],e[`${n.variant}Size${fn(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(({theme:t,ownerState:e})=>{var n,r;const a=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],o=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return Ce({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":Ce({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":Ce({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${sce.focusVisible}`]:Ce({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${sce.disabled}`]:Ce({color:(t.vars||t).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${ss(t.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:t.vars?t.vars.palette.text.primary:(n=(r=t.palette).getContrastText)==null?void 0:n.call(r,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${sce.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sce.disabled}`]:{boxShadow:"none"}}),B_r=En("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${fn(n.size)}`]]}})(({ownerState:t})=>Ce({display:"inherit",marginRight:8,marginLeft:-4},t.size==="small"&&{marginLeft:-2},uYt(t))),D_r=En("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${fn(n.size)}`]]}})(({ownerState:t})=>Ce({display:"inherit",marginRight:-4,marginLeft:8},t.size==="small"&&{marginRight:-2},uYt(t))),$_r=Y.forwardRef(function(e,n){const r=Y.useContext(lYt),a=Y.useContext(cYt),o=Fxe(r,e),s=Vi({props:o,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:h=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:g,fullWidth:v=!1,size:A="medium",startIcon:y,type:S,variant:x="text"}=s,w=Wn(s,P_r),_=Ce({},s,{color:c,component:u,disabled:h,disableElevation:f,disableFocusRipple:p,fullWidth:v,size:A,type:S,variant:x}),C=O_r(_),R=y&&E.jsx(B_r,{className:C.startIcon,ownerState:_,children:y}),k=m&&E.jsx(D_r,{className:C.endIcon,ownerState:_,children:m}),P=a||"";return E.jsxs(L_r,Ce({ownerState:_,className:nr(r.className,C.root,d,P),component:u,disabled:h,focusRipple:!p,focusVisibleClassName:nr(C.focusVisible,g),ref:n,type:S},w,{classes:C,children:[R,l,k]}))}),dYt=$_r;function F_r(t){return mi("MuiButtonGroup",t)}const j_r=ei("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),Um=j_r,H_r=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],U_r=(t,e)=>{const{ownerState:n}=t;return[{[`& .${Um.grouped}`]:e.grouped},{[`& .${Um.grouped}`]:e[`grouped${fn(n.orientation)}`]},{[`& .${Um.grouped}`]:e[`grouped${fn(n.variant)}`]},{[`& .${Um.grouped}`]:e[`grouped${fn(n.variant)}${fn(n.orientation)}`]},{[`& .${Um.grouped}`]:e[`grouped${fn(n.variant)}${fn(n.color)}`]},{[`& .${Um.firstButton}`]:e.firstButton},{[`& .${Um.lastButton}`]:e.lastButton},{[`& .${Um.middleButton}`]:e.middleButton},e.root,e[n.variant],n.disableElevation===!0&&e.disableElevation,n.fullWidth&&e.fullWidth,n.orientation==="vertical"&&e.vertical]},z_r=t=>{const{classes:e,color:n,disabled:r,disableElevation:a,fullWidth:o,orientation:s,variant:l}=t,c={root:["root",l,s==="vertical"&&"vertical",o&&"fullWidth",a&&"disableElevation"],grouped:["grouped",`grouped${fn(s)}`,`grouped${fn(l)}`,`grouped${fn(l)}${fn(s)}`,`grouped${fn(l)}${fn(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return gi(c,F_r,e)},G_r=En("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:U_r})(({theme:t,ownerState:e})=>Ce({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[2]},e.disableElevation&&{boxShadow:"none"},e.fullWidth&&{width:"100%"},e.orientation==="vertical"&&{flexDirection:"column"},{[`& .${Um.grouped}`]:Ce({minWidth:40,"&:hover":Ce({},e.variant==="contained"&&{boxShadow:"none"})},e.variant==="contained"&&{boxShadow:"none"}),[`& .${Um.firstButton},& .${Um.middleButton}`]:Ce({},e.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},e.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},e.variant==="text"&&e.orientation==="horizontal"&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Um.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},e.variant==="text"&&e.orientation==="vertical"&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Um.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},e.variant==="text"&&e.color!=="inherit"&&{borderColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:ss(t.palette[e.color].main,.5)},e.variant==="outlined"&&e.orientation==="horizontal"&&{borderRightColor:"transparent"},e.variant==="outlined"&&e.orientation==="vertical"&&{borderBottomColor:"transparent"},e.variant==="contained"&&e.orientation==="horizontal"&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Um.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},e.variant==="contained"&&e.orientation==="vertical"&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Um.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},e.variant==="contained"&&e.color!=="inherit"&&{borderColor:(t.vars||t).palette[e.color].dark},{"&:hover":Ce({},e.variant==="outlined"&&e.orientation==="horizontal"&&{borderRightColor:"currentColor"},e.variant==="outlined"&&e.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${Um.lastButton},& .${Um.middleButton}`]:Ce({},e.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},e.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},e.variant==="outlined"&&e.orientation==="horizontal"&&{marginLeft:-1},e.variant==="outlined"&&e.orientation==="vertical"&&{marginTop:-1})})),V_r=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiButtonGroup"}),{children:a,className:o,color:s="primary",component:l="div",disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,disableRipple:h=!1,fullWidth:f=!1,orientation:p="horizontal",size:m="medium",variant:g="outlined"}=r,v=Wn(r,H_r),A=Ce({},r,{color:s,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:h,fullWidth:f,orientation:p,size:m,variant:g}),y=z_r(A),S=Y.useMemo(()=>({className:y.grouped,color:s,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:h,fullWidth:f,size:m,variant:g}),[s,c,u,d,h,f,m,g,y.grouped]),x=aqt(a),w=x.length,_=C=>{const R=C===0,k=C===w-1;return R&&k?"":R?y.firstButton:k?y.lastButton:y.middleButton};return E.jsx(G_r,Ce({as:l,role:"group",className:nr(y.root,o),ref:n,ownerState:A},v,{children:E.jsx(lYt.Provider,{value:S,children:x.map((C,R)=>E.jsx(cYt.Provider,{value:_(R),children:C},R))})}))}),YH=V_r;function K_r(t){return mi("PrivateSwitchBase",t)}ei("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const W_r=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Q_r=t=>{const{classes:e,checked:n,disabled:r,edge:a}=t,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${fn(a)}`],input:["input"]};return gi(o,K_r,e)},q_r=En(kw)(({ownerState:t})=>Ce({padding:9,borderRadius:"50%"},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12})),Y_r=En("input",{shouldForwardProp:pg})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),J_r=Y.forwardRef(function(e,n){const{autoFocus:r,checked:a,checkedIcon:o,className:s,defaultChecked:l,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:h,id:f,inputProps:p,inputRef:m,name:g,onBlur:v,onChange:A,onFocus:y,readOnly:S,required:x=!1,tabIndex:w,type:_,value:C}=e,R=Wn(e,W_r),[k,P]=fw({controlled:a,default:!!l,name:"SwitchBase",state:"checked"}),N=tb(),L=j=>{y&&y(j),N&&N.onFocus&&N.onFocus(j)},I=j=>{v&&v(j),N&&N.onBlur&&N.onBlur(j)},b=j=>{if(j.nativeEvent.defaultPrevented)return;const H=j.target.checked;P(H),A&&A(j,H)};let T=c;N&&typeof T>"u"&&(T=N.disabled);const M=_==="checkbox"||_==="radio",D=Ce({},e,{checked:k,disabled:T,disableFocusRipple:u,edge:d}),B=Q_r(D);return E.jsxs(q_r,Ce({component:"span",className:nr(B.root,s),centerRipple:!0,focusRipple:!u,disabled:T,tabIndex:null,role:void 0,onFocus:L,onBlur:I,ownerState:D,ref:n},R,{children:[E.jsx(Y_r,Ce({autoFocus:r,checked:a,defaultChecked:l,className:B.input,disabled:T,id:M?f:void 0,name:g,onChange:b,readOnly:S,ref:m,required:x,ownerState:D,tabIndex:w,type:_},_==="checkbox"&&C===void 0?{}:{value:C},p)),k?o:h]}))}),hYt=J_r,Z_r=xl(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),X_r=xl(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),eTr=xl(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function tTr(t){return mi("MuiCheckbox",t)}const nTr=ei("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),a5e=nTr,rTr=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],iTr=t=>{const{classes:e,indeterminate:n,color:r,size:a}=t,o={root:["root",n&&"indeterminate",`color${fn(r)}`,`size${fn(a)}`]},s=gi(o,tTr,e);return Ce({},e,s)},aTr=En(hYt,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${fn(n.size)}`],n.color!=="default"&&e[`color${fn(n.color)}`]]}})(({theme:t,ownerState:e})=>Ce({color:(t.vars||t).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${e.color==="default"?t.vars.palette.action.activeChannel:t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(e.color==="default"?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${a5e.checked}, &.${a5e.indeterminate}`]:{color:(t.vars||t).palette[e.color].main},[`&.${a5e.disabled}`]:{color:(t.vars||t).palette.action.disabled}})),oTr=E.jsx(X_r,{}),sTr=E.jsx(Z_r,{}),lTr=E.jsx(eTr,{}),cTr=Y.forwardRef(function(e,n){var r,a;const o=Vi({props:e,name:"MuiCheckbox"}),{checkedIcon:s=oTr,color:l="primary",icon:c=sTr,indeterminate:u=!1,indeterminateIcon:d=lTr,inputProps:h,size:f="medium",className:p}=o,m=Wn(o,rTr),g=u?d:c,v=u?d:s,A=Ce({},o,{color:l,indeterminate:u,size:f}),y=iTr(A);return E.jsx(aTr,Ce({type:"checkbox",inputProps:Ce({"data-indeterminate":u},h),icon:Y.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:f}),checkedIcon:Y.cloneElement(v,{fontSize:(a=v.props.fontSize)!=null?a:f}),ownerState:A,ref:n,className:nr(y.root,p)},m,{classes:y}))}),uTr=cTr;function dTr(t){return mi("MuiModal",t)}ei("MuiModal",["root","hidden","backdrop"]);const hTr=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],fTr=t=>{const{open:e,exited:n,classes:r}=t;return gi({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},dTr,r)},pTr=En("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>Ce({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),mTr=En(sYt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),gTr=Y.forwardRef(function(e,n){var r,a,o,s,l,c;const u=Vi({name:"MuiModal",props:e}),{BackdropComponent:d=mTr,BackdropProps:h,className:f,closeAfterTransition:p=!1,children:m,container:g,component:v,components:A={},componentsProps:y={},disableAutoFocus:S=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:_=!1,disableRestoreFocus:C=!1,disableScrollLock:R=!1,hideBackdrop:k=!1,keepMounted:P=!1,onBackdropClick:N,open:L,slotProps:I,slots:b}=u,T=Wn(u,hTr),M=Ce({},u,{closeAfterTransition:p,disableAutoFocus:S,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:_,disableRestoreFocus:C,disableScrollLock:R,hideBackdrop:k,keepMounted:P}),{getRootProps:D,getBackdropProps:B,getTransitionProps:j,portalRef:H,isTopModal:U,exited:$,hasTransition:z}=zEr(Ce({},M,{rootRef:n})),Z=Ce({},M,{exited:$}),K=fTr(Z),Q={};if(m.props.tabIndex===void 0&&(Q.tabIndex="-1"),z){const{onEnter:he,onExited:de}=j();Q.onEnter=he,Q.onExited=de}const ee=(r=(a=b==null?void 0:b.root)!=null?a:A.Root)!=null?r:pTr,X=(o=(s=b==null?void 0:b.backdrop)!=null?s:A.Backdrop)!=null?o:d,te=(l=I==null?void 0:I.root)!=null?l:y.root,J=(c=I==null?void 0:I.backdrop)!=null?c:y.backdrop,ne=X5({elementType:ee,externalSlotProps:te,externalForwardedProps:T,getSlotProps:D,additionalProps:{ref:n,as:v},ownerState:Z,className:nr(f,te==null?void 0:te.className,K==null?void 0:K.root,!Z.open&&Z.exited&&(K==null?void 0:K.hidden))}),ie=X5({elementType:X,externalSlotProps:J,additionalProps:h,getSlotProps:he=>B(Ce({},he,{onClick:de=>{N&&N(de),he!=null&&he.onClick&&he.onClick(de)}})),className:nr(J==null?void 0:J.className,h==null?void 0:h.className,K==null?void 0:K.backdrop),ownerState:Z});return!P&&!L&&(!z||$)?null:E.jsx(Gqt,{ref:H,container:g,disablePortal:_,children:E.jsxs(ee,Ce({},ne,{children:[!k&&d?E.jsx(X,Ce({},ie)):null,E.jsx(PEr,{disableEnforceFocus:x,disableAutoFocus:S,disableRestoreFocus:C,isEnabled:U,open:L,children:Y.cloneElement(m,Q)})]}))})}),_Xe=gTr;function vTr(t){return mi("MuiDialog",t)}const ATr=ei("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),o5e=ATr,yTr=Y.createContext({}),bTr=yTr,xTr=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ETr=En(sYt,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),STr=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:a,fullScreen:o}=t,s={root:["root"],container:["container",`scroll${fn(n)}`],paper:["paper",`paperScroll${fn(n)}`,`paperWidth${fn(String(r))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return gi(s,vTr,e)},wTr=En(_Xe,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),_Tr=En("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${fn(n.scroll)}`]]}})(({ownerState:t})=>Ce({height:"100%","@media print":{height:"auto"},outline:0},t.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},t.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),TTr=En(X0,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${fn(n.scroll)}`],e[`paperWidth${fn(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(({theme:t,ownerState:e})=>Ce({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},e.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},e.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},e.maxWidth==="xs"&&{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${o5e.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&e.maxWidth!=="xs"&&{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`,[`&.${o5e.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${o5e.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),CTr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiDialog"}),a=YM(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:h,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:v,onClick:A,onClose:y,open:S,PaperComponent:x=X0,PaperProps:w={},scroll:_="paper",TransitionComponent:C=oYt,transitionDuration:R=o,TransitionProps:k}=r,P=Wn(r,xTr),N=Ce({},r,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:g,scroll:_}),L=STr(N),I=Y.useRef(),b=B=>{I.current=B.target===B.currentTarget},T=B=>{A&&A(B),I.current&&(I.current=null,v&&v(B),y&&y(B,"backdropClick"))},M=O8(l),D=Y.useMemo(()=>({titleId:M}),[M]);return E.jsx(wTr,Ce({className:nr(L.root,h),closeAfterTransition:!0,components:{Backdrop:ETr},componentsProps:{backdrop:Ce({transitionDuration:R,as:c},u)},disableEscapeKeyDown:f,onClose:y,open:S,ref:n,onClick:T,ownerState:N},P,{children:E.jsx(C,Ce({appear:!0,in:S,timeout:R,role:"presentation"},k,{children:E.jsx(_Tr,{className:nr(L.container),onMouseDown:b,ownerState:N,children:E.jsx(TTr,Ce({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":M},w,{className:nr(L.paper,w.className),ownerState:N,children:E.jsx(bTr.Provider,{value:D,children:d})}))})}))}))}),fYt=CTr;function kTr(t){return mi("MuiDialogContent",t)}ei("MuiDialogContent",["root","dividers"]);const RTr=ei("MuiDialogTitle",["root"]),MTr=RTr,NTr=["className","dividers"],ITr=t=>{const{classes:e,dividers:n}=t;return gi({root:["root",n&&"dividers"]},kTr,e)},PTr=En("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(({theme:t,ownerState:e})=>Ce({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${MTr.root} + &`]:{paddingTop:0}})),OTr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=r,s=Wn(r,NTr),l=Ce({},r,{dividers:o}),c=ITr(l);return E.jsx(PTr,Ce({className:nr(c.root,a),ownerState:l,ref:n},s))}),LTr=OTr;function BTr(t){return mi("MuiDivider",t)}const DTr=ei("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),gvt=DTr,$Tr=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],FTr=t=>{const{absolute:e,children:n,classes:r,flexItem:a,light:o,orientation:s,textAlign:l,variant:c}=t;return gi({root:["root",e&&"absolute",c,o&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},BTr,r)},jTr=En("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,n.orientation==="vertical"&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&n.orientation==="vertical"&&e.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&e.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&e.textAlignLeft]}})(({theme:t,ownerState:e})=>Ce({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:ss(t.palette.divider,.08)},e.variant==="inset"&&{marginLeft:72},e.variant==="middle"&&e.orientation==="horizontal"&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},e.variant==="middle"&&e.orientation==="vertical"&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},e.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:t})=>Ce({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:t,ownerState:e})=>Ce({},e.children&&e.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`}}),({theme:t,ownerState:e})=>Ce({},e.children&&e.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`}}),({ownerState:t})=>Ce({},t.textAlign==="right"&&t.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},t.textAlign==="left"&&t.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),HTr=En("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,n.orientation==="vertical"&&e.wrapperVertical]}})(({theme:t,ownerState:e})=>Ce({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},e.orientation==="vertical"&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),pYt=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiDivider"}),{absolute:a=!1,children:o,className:s,component:l=o?"div":"hr",flexItem:c=!1,light:u=!1,orientation:d="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth"}=r,m=Wn(r,$Tr),g=Ce({},r,{absolute:a,component:l,flexItem:c,light:u,orientation:d,role:h,textAlign:f,variant:p}),v=FTr(g);return E.jsx(jTr,Ce({as:l,className:nr(v.root,s),role:h,ref:n,ownerState:g},m,{children:o?E.jsx(HTr,{className:v.wrapper,ownerState:g,children:o}):null}))});pYt.muiSkipListHighlight=!0;const vvt=pYt,UTr=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zTr(t,e,n){const r=e.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),o=$2(e);let s;if(e.fakeTransform)s=e.fakeTransform;else{const u=o.getComputedStyle(e);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return t==="left"?a?`translateX(${a.right+l-r.left}px)`:`translateX(${o.innerWidth+l-r.left}px)`:t==="right"?a?`translateX(-${r.right-a.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:t==="up"?a?`translateY(${a.bottom+c-r.top}px)`:`translateY(${o.innerHeight+c-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function GTr(t){return typeof t=="function"?t():t}function lce(t,e,n){const r=GTr(n),a=zTr(t,e,r);a&&(e.style.webkitTransform=a,e.style.transform=a)}const VTr=Y.forwardRef(function(e,n){const r=YM(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,container:u,direction:d="down",easing:h=a,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:v,onExited:A,onExiting:y,style:S,timeout:x=o,TransitionComponent:w=Xxe}=e,_=Wn(e,UTr),C=Y.useRef(null),R=ju(c.ref,C,n),k=B=>j=>{B&&(j===void 0?B(C.current):B(C.current,j))},P=k((B,j)=>{lce(d,B,u),mXe(B),p&&p(B,j)}),N=k((B,j)=>{const H=Z5({timeout:x,style:S,easing:h},{mode:"enter"});B.style.webkitTransition=r.transitions.create("-webkit-transform",Ce({},H)),B.style.transition=r.transitions.create("transform",Ce({},H)),B.style.webkitTransform="none",B.style.transform="none",g&&g(B,j)}),L=k(m),I=k(y),b=k(B=>{const j=Z5({timeout:x,style:S,easing:h},{mode:"exit"});B.style.webkitTransition=r.transitions.create("-webkit-transform",j),B.style.transition=r.transitions.create("transform",j),lce(d,B,u),v&&v(B)}),T=k(B=>{B.style.webkitTransition="",B.style.transition="",A&&A(B)}),M=B=>{s&&s(C.current,B)},D=Y.useCallback(()=>{C.current&&lce(d,C.current,u)},[d,u]);return Y.useEffect(()=>{if(f||d==="down"||d==="right")return;const B=jxe(()=>{C.current&&lce(d,C.current,u)}),j=$2(C.current);return j.addEventListener("resize",B),()=>{B.clear(),j.removeEventListener("resize",B)}},[d,f,u]),Y.useEffect(()=>{f||D()},[f,D]),E.jsx(w,Ce({nodeRef:C,onEnter:P,onEntered:L,onEntering:N,onExit:b,onExited:T,onExiting:I,addEndListener:M,appear:l,in:f,timeout:x},_,{children:(B,j)=>Y.cloneElement(c,Ce({ref:R,style:Ce({visibility:B==="exited"&&!f?"hidden":void 0},S,c.props.style)},j))}))}),KTr=VTr;function WTr(t){return mi("MuiDrawer",t)}ei("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const QTr=["BackdropProps"],qTr=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],mYt=(t,e)=>{const{ownerState:n}=t;return[e.root,(n.variant==="permanent"||n.variant==="persistent")&&e.docked,e.modal]},YTr=t=>{const{classes:e,anchor:n,variant:r}=t,a={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${fn(n)}`,r!=="temporary"&&`paperAnchorDocked${fn(n)}`]};return gi(a,WTr,e)},JTr=En(_Xe,{name:"MuiDrawer",slot:"Root",overridesResolver:mYt})(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer})),Avt=En("div",{shouldForwardProp:pg,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:mYt})({flex:"0 0 auto"}),ZTr=En(X0,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`paperAnchor${fn(n.anchor)}`],n.variant!=="temporary"&&e[`paperAnchorDocked${fn(n.anchor)}`]]}})(({theme:t,ownerState:e})=>Ce({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},e.anchor==="left"&&{left:0},e.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},e.anchor==="right"&&{right:0},e.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},e.anchor==="left"&&e.variant!=="temporary"&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="top"&&e.variant!=="temporary"&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="right"&&e.variant!=="temporary"&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="bottom"&&e.variant!=="temporary"&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`})),gYt={left:"right",right:"left",top:"down",bottom:"up"};function XTr(t){return["left","right"].indexOf(t)!==-1}function e2r({direction:t},e){return t==="rtl"&&XTr(e)?gYt[e]:e}const t2r=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiDrawer"}),a=YM(),o=qie(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:c,children:u,className:d,elevation:h=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:m,open:g=!1,PaperProps:v={},SlideProps:A,TransitionComponent:y=KTr,transitionDuration:S=s,variant:x="temporary"}=r,w=Wn(r.ModalProps,QTr),_=Wn(r,qTr),C=Y.useRef(!1);Y.useEffect(()=>{C.current=!0},[]);const R=e2r({direction:o?"rtl":"ltr"},l),P=Ce({},r,{anchor:l,elevation:h,open:g,variant:x},_),N=YTr(P),L=E.jsx(ZTr,Ce({elevation:x==="temporary"?h:0,square:!0},v,{className:nr(N.paper,v.className),ownerState:P,children:u}));if(x==="permanent")return E.jsx(Avt,Ce({className:nr(N.root,N.docked,d),ownerState:P,ref:n},_,{children:L}));const I=E.jsx(y,Ce({in:g,direction:gYt[R],timeout:S,appear:C.current},A,{children:L}));return x==="persistent"?E.jsx(Avt,Ce({className:nr(N.root,N.docked,d),ownerState:P,ref:n},_,{children:I})):E.jsx(JTr,Ce({BackdropProps:Ce({},c,p,{transitionDuration:S}),className:nr(N.root,N.modal,d),open:g,ownerState:P,onClose:m,hideBackdrop:f,ref:n},_,w,{children:I}))}),n2r=t2r,r2r=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],i2r=t=>{const{classes:e,disableUnderline:n}=t,a=gi({root:["root",!n&&"underline"],input:["input"]},Qwr,e);return Ce({},e,a)},a2r=En(oEe,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...iEe(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{var n;const r=t.palette.mode==="light",a=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ce({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o}},[`&.${by.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o},[`&.${by.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(t.vars||t).palette[e.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${by.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${by.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${by.disabled}, .${by.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${by.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&Ce({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),o2r=En(sEe,{name:"MuiFilledInput",slot:"Input",overridesResolver:aEe})(({theme:t,ownerState:e})=>Ce({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),vYt=Y.forwardRef(function(e,n){var r,a,o,s;const l=Vi({props:e,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:h="input",multiline:f=!1,slotProps:p,slots:m={},type:g="text"}=l,v=Wn(l,r2r),A=Ce({},l,{fullWidth:d,inputComponent:h,multiline:f,type:g}),y=i2r(l),S={root:{ownerState:A},input:{ownerState:A}},x=p??u?rg(S,p??u):S,w=(r=(a=m.root)!=null?a:c.Root)!=null?r:a2r,_=(o=(s=m.input)!=null?s:c.Input)!=null?o:o2r;return E.jsx(wXe,Ce({slots:{root:w,input:_},componentsProps:x,fullWidth:d,inputComponent:h,multiline:f,ref:n,type:g},v,{classes:y}))});vYt.muiName="Input";const AYt=vYt;function s2r(t){return mi("MuiFormControl",t)}ei("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const l2r=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],c2r=t=>{const{classes:e,margin:n,fullWidth:r}=t,a={root:["root",n!=="none"&&`margin${fn(n)}`,r&&"fullWidth"]};return gi(a,s2r,e)},u2r=En("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>Ce({},e.root,e[`margin${fn(t.margin)}`],t.fullWidth&&e.fullWidth)})(({ownerState:t})=>Ce({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},t.margin==="normal"&&{marginTop:16,marginBottom:8},t.margin==="dense"&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})),d2r=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiFormControl"}),{children:a,className:o,color:s="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:h=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:g="medium",variant:v="outlined"}=r,A=Wn(r,l2r),y=Ce({},r,{color:s,component:l,disabled:c,error:u,fullWidth:h,hiddenLabel:f,margin:p,required:m,size:g,variant:v}),S=c2r(y),[x,w]=Y.useState(()=>{let I=!1;return a&&Y.Children.forEach(a,b=>{if(!Zpe(b,["Input","Select"]))return;const T=Zpe(b,["Select"])?b.props.input:b;T&&Dwr(T.props)&&(I=!0)}),I}),[_,C]=Y.useState(()=>{let I=!1;return a&&Y.Children.forEach(a,b=>{Zpe(b,["Input","Select"])&&(e0e(b.props,!0)||e0e(b.props.inputProps,!0))&&(I=!0)}),I}),[R,k]=Y.useState(!1);c&&R&&k(!1);const P=d!==void 0&&!c?d:R;let N;const L=Y.useMemo(()=>({adornedStart:x,setAdornedStart:w,color:s,disabled:c,error:u,filled:_,focused:P,fullWidth:h,hiddenLabel:f,size:g,onBlur:()=>{k(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{k(!0)},registerEffect:N,required:m,variant:v}),[x,s,c,u,_,P,h,f,N,m,g,v]);return E.jsx(rEe.Provider,{value:L,children:E.jsx(u2r,Ce({as:l,ownerState:y,className:nr(S.root,o),ref:n},A,{children:a}))})}),eae=d2r,h2r=b1r({createStyledComponent:En("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>Vi({props:t,name:"MuiStack"})}),f2r=h2r;function p2r(t){return mi("MuiFormControlLabel",t)}const m2r=ei("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),aZ=m2r,g2r=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],v2r=t=>{const{classes:e,disabled:n,labelPlacement:r,error:a,required:o}=t,s={root:["root",n&&"disabled",`labelPlacement${fn(r)}`,a&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return gi(s,p2r,e)},A2r=En("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${aZ.label}`]:e.label},e.root,e[`labelPlacement${fn(n.labelPlacement)}`]]}})(({theme:t,ownerState:e})=>Ce({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${aZ.disabled}`]:{cursor:"default"}},e.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},e.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},e.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${aZ.label}`]:{[`&.${aZ.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})),y2r=En("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${aZ.error}`]:{color:(t.vars||t).palette.error.main}})),b2r=Y.forwardRef(function(e,n){var r,a;const o=Vi({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:l={},control:c,disabled:u,disableTypography:d,label:h,labelPlacement:f="end",required:p,slotProps:m={}}=o,g=Wn(o,g2r),v=tb(),A=(r=u??c.props.disabled)!=null?r:v==null?void 0:v.disabled,y=p??c.props.required,S={disabled:A,required:y};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof c.props[k]>"u"&&typeof o[k]<"u"&&(S[k]=o[k])});const x=XP({props:o,muiFormControl:v,states:["error"]}),w=Ce({},o,{disabled:A,labelPlacement:f,required:y,error:x.error}),_=v2r(w),C=(a=m.typography)!=null?a:l.typography;let R=h;return R!=null&&R.type!==Zve&&!d&&(R=E.jsx(Zve,Ce({component:"span"},C,{className:nr(_.label,C==null?void 0:C.className),children:R}))),E.jsxs(A2r,Ce({className:nr(_.root,s),ownerState:w,ref:n},g,{children:[Y.cloneElement(c,S),y?E.jsxs(f2r,{display:"block",children:[R,E.jsxs(y2r,{ownerState:w,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):R]}))}),yYt=b2r;function x2r(t){return mi("MuiFormGroup",t)}ei("MuiFormGroup",["root","row","error"]);const E2r=["className","row"],S2r=t=>{const{classes:e,row:n,error:r}=t;return gi({root:["root",n&&"row",r&&"error"]},x2r,e)},w2r=En("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.row&&e.row]}})(({ownerState:t})=>Ce({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})),_2r=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiFormGroup"}),{className:a,row:o=!1}=r,s=Wn(r,E2r),l=tb(),c=XP({props:r,muiFormControl:l,states:["error"]}),u=Ce({},r,{row:o,error:c.error}),d=S2r(u);return E.jsx(w2r,Ce({className:nr(d.root,a),ownerState:u,ref:n},s))}),T2r=_2r;function C2r(t){return mi("MuiFormHelperText",t)}const k2r=ei("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),yvt=k2r;var bvt;const R2r=["children","className","component","disabled","error","filled","focused","margin","required","variant"],M2r=t=>{const{classes:e,contained:n,size:r,disabled:a,error:o,filled:s,focused:l,required:c}=t,u={root:["root",a&&"disabled",o&&"error",r&&`size${fn(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return gi(u,C2r,e)},N2r=En("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${fn(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(({theme:t,ownerState:e})=>Ce({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yvt.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${yvt.error}`]:{color:(t.vars||t).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),I2r=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiFormHelperText"}),{children:a,className:o,component:s="p"}=r,l=Wn(r,R2r),c=tb(),u=XP({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=Ce({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=M2r(d);return E.jsx(N2r,Ce({as:s,ownerState:d,className:nr(h.root,o),ref:n},l,{children:a===" "?bvt||(bvt=E.jsx("span",{className:"notranslate",children:"​"})):a}))}),P2r=I2r;function O2r(t){return mi("MuiFormLabel",t)}const L2r=ei("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),MX=L2r,B2r=["children","className","color","component","disabled","error","filled","focused","required"],D2r=t=>{const{classes:e,color:n,focused:r,disabled:a,error:o,filled:s,required:l}=t,c={root:["root",`color${fn(n)}`,a&&"disabled",o&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return gi(c,O2r,e)},$2r=En("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>Ce({},e.root,t.color==="secondary"&&e.colorSecondary,t.filled&&e.filled)})(({theme:t,ownerState:e})=>Ce({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${MX.focused}`]:{color:(t.vars||t).palette[e.color].main},[`&.${MX.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${MX.error}`]:{color:(t.vars||t).palette.error.main}})),F2r=En("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${MX.error}`]:{color:(t.vars||t).palette.error.main}})),j2r=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiFormLabel"}),{children:a,className:o,component:s="label"}=r,l=Wn(r,B2r),c=tb(),u=XP({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=Ce({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=D2r(d);return E.jsxs($2r,Ce({as:s,ownerState:d,className:nr(h.root,o),ref:n},l,{children:[a,u.required&&E.jsxs(F2r,{ownerState:d,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),H2r=j2r,U2r=Y.createContext(),xvt=U2r;function z2r(t){return mi("MuiGrid",t)}const G2r=[0,1,2,3,4,5,6,7,8,9,10],V2r=["column-reverse","column","row-reverse","row"],K2r=["nowrap","wrap-reverse","wrap"],mQ=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Rte=ei("MuiGrid",["root","container","item","zeroMinWidth",...G2r.map(t=>`spacing-xs-${t}`),...V2r.map(t=>`direction-xs-${t}`),...K2r.map(t=>`wrap-xs-${t}`),...mQ.map(t=>`grid-xs-${t}`),...mQ.map(t=>`grid-sm-${t}`),...mQ.map(t=>`grid-md-${t}`),...mQ.map(t=>`grid-lg-${t}`),...mQ.map(t=>`grid-xl-${t}`)]),W2r=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Lj(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function Q2r({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=pD({values:e.columns,breakpoints:t.breakpoints.values}),l=typeof s=="object"?s[a]:s;if(l==null)return r;const c=`${Math.round(n/l*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const h=`calc(${c} + ${Lj(d)})`;u={flexBasis:h,maxWidth:h}}}o=Ce({flexBasis:c,flexGrow:0,maxWidth:c},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function q2r({theme:t,ownerState:e}){const n=pD({values:e.direction,breakpoints:t.breakpoints.values});return o1({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${Rte.item}`]={maxWidth:"none"}),a})}function bYt({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function Y2r({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=pD({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=bYt({breakpoints:t.breakpoints.values,values:o})),a=o1({theme:t},o,(l,c)=>{var u;const d=t.spacing(l);return d!=="0px"?{marginTop:`-${Lj(d)}`,[`& > .${Rte.item}`]:{paddingTop:Lj(d)}}:(u=s)!=null&&u.includes(c)?{}:{marginTop:0,[`& > .${Rte.item}`]:{paddingTop:0}}})}return a}function J2r({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=pD({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=bYt({breakpoints:t.breakpoints.values,values:o})),a=o1({theme:t},o,(l,c)=>{var u;const d=t.spacing(l);return d!=="0px"?{width:`calc(100% + ${Lj(d)})`,marginLeft:`-${Lj(d)}`,[`& > .${Rte.item}`]:{paddingLeft:Lj(d)}}:(u=s)!=null&&u.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Rte.item}`]:{paddingLeft:0}}})}return a}function Z2r(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const X2r=En("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:l,zeroMinWidth:c,breakpoints:u}=n;let d=[];r&&(d=Z2r(s,u,e));const h=[];return u.forEach(f=>{const p=n[f];p&&h.push(e[`grid-${f}-${String(p)}`])}),[e.root,r&&e.container,o&&e.item,c&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],l!=="wrap"&&e[`wrap-xs-${String(l)}`],...h]}})(({ownerState:t})=>Ce({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),q2r,Y2r,J2r,Q2r);function eCr(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const tCr=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:l,breakpoints:c}=t;let u=[];n&&(u=eCr(o,c));const d=[];c.forEach(f=>{const p=t[f];p&&d.push(`grid-${f}-${String(p)}`)});const h={root:["root",n&&"container",a&&"item",l&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return gi(h,z2r,e)},nCr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiGrid"}),{breakpoints:a}=YM(),o=Wie(r),{className:s,columns:l,columnSpacing:c,component:u="div",container:d=!1,direction:h="row",item:f=!1,rowSpacing:p,spacing:m=0,wrap:g="wrap",zeroMinWidth:v=!1}=o,A=Wn(o,W2r),y=p||m,S=c||m,x=Y.useContext(xvt),w=d?l||12:x,_={},C=Ce({},A);a.keys.forEach(P=>{A[P]!=null&&(_[P]=A[P],delete C[P])});const R=Ce({},o,{columns:w,container:d,direction:h,item:f,rowSpacing:y,columnSpacing:S,wrap:g,zeroMinWidth:v,spacing:m},_,{breakpoints:a.keys}),k=tCr(R);return E.jsx(xvt.Provider,{value:w,children:E.jsx(X2r,Ce({ownerState:R,className:nr(k.root,s),as:u,ref:n},C))})}),Er=nCr,rCr=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function aHe(t){return`scale(${t}, ${t**2})`}const iCr={entering:{opacity:1,transform:aHe(1)},entered:{opacity:1,transform:"none"}},s5e=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xYt=Y.forwardRef(function(e,n){const{addEndListener:r,appear:a=!0,children:o,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:h,onExited:f,onExiting:p,style:m,timeout:g="auto",TransitionComponent:v=Xxe}=e,A=Wn(e,rCr),y=L3(),S=Y.useRef(),x=YM(),w=Y.useRef(null),_=ju(w,o.ref,n),C=T=>M=>{if(T){const D=w.current;M===void 0?T(D):T(D,M)}},R=C(d),k=C((T,M)=>{mXe(T);const{duration:D,delay:B,easing:j}=Z5({style:m,timeout:g,easing:s},{mode:"enter"});let H;g==="auto"?(H=x.transitions.getAutoHeightDuration(T.clientHeight),S.current=H):H=D,T.style.transition=[x.transitions.create("opacity",{duration:H,delay:B}),x.transitions.create("transform",{duration:s5e?H:H*.666,delay:B,easing:j})].join(","),c&&c(T,M)}),P=C(u),N=C(p),L=C(T=>{const{duration:M,delay:D,easing:B}=Z5({style:m,timeout:g,easing:s},{mode:"exit"});let j;g==="auto"?(j=x.transitions.getAutoHeightDuration(T.clientHeight),S.current=j):j=M,T.style.transition=[x.transitions.create("opacity",{duration:j,delay:D}),x.transitions.create("transform",{duration:s5e?j:j*.666,delay:s5e?D:D||j*.333,easing:B})].join(","),T.style.opacity=0,T.style.transform=aHe(.75),h&&h(T)}),I=C(f),b=T=>{g==="auto"&&y.start(S.current||0,T),r&&r(w.current,T)};return E.jsx(v,Ce({appear:a,in:l,nodeRef:w,onEnter:k,onEntered:P,onEntering:R,onExit:L,onExited:I,onExiting:N,addEndListener:b,timeout:g==="auto"?null:g},A,{children:(T,M)=>Y.cloneElement(o,Ce({style:Ce({opacity:0,transform:aHe(.75),visibility:T==="exited"&&!l?"hidden":void 0},iCr[T],m,o.props.style),ref:_},M))}))});xYt.muiSupportAuto=!0;const t0e=xYt,aCr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],oCr=t=>{const{classes:e,disableUnderline:n}=t,a=gi({root:["root",!n&&"underline"],input:["input"]},Gwr,e);return Ce({},e,a)},sCr=En(oEe,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...iEe(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),Ce({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${E3.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${E3.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${E3.disabled}, .${E3.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${E3.disabled}:before`]:{borderBottomStyle:"dotted"}})}),lCr=En(sEe,{name:"MuiInput",slot:"Input",overridesResolver:aEe})({}),EYt=Y.forwardRef(function(e,n){var r,a,o,s;const l=Vi({props:e,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:h=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text"}=l,A=Wn(l,aCr),y=oCr(l),x={root:{ownerState:{disableUnderline:c}}},w=m??d?rg(m??d,x):x,_=(r=(a=g.root)!=null?a:u.Root)!=null?r:sCr,C=(o=(s=g.input)!=null?s:u.Input)!=null?o:lCr;return E.jsx(wXe,Ce({slots:{root:_,input:C},slotProps:w,fullWidth:h,inputComponent:f,multiline:p,ref:n,type:v},A,{classes:y}))});EYt.muiName="Input";const SYt=EYt;function cCr(t){return mi("MuiInputAdornment",t)}const uCr=ei("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Evt=uCr;var Svt;const dCr=["children","className","component","disablePointerEvents","disableTypography","position","variant"],hCr=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${fn(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},fCr=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:r,position:a,size:o,variant:s}=t,l={root:["root",n&&"disablePointerEvents",a&&`position${fn(a)}`,s,r&&"hiddenLabel",o&&`size${fn(o)}`]};return gi(l,cCr,e)},pCr=En("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:hCr})(({theme:t,ownerState:e})=>Ce({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},e.variant==="filled"&&{[`&.${Evt.positionStart}&:not(.${Evt.hiddenLabel})`]:{marginTop:16}},e.position==="start"&&{marginRight:8},e.position==="end"&&{marginLeft:8},e.disablePointerEvents===!0&&{pointerEvents:"none"})),mCr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiInputAdornment"}),{children:a,className:o,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d}=r,h=Wn(r,dCr),f=tb()||{};let p=d;d&&f.variant,f&&!p&&(p=f.variant);const m=Ce({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:l,position:u,variant:p}),g=fCr(m);return E.jsx(rEe.Provider,{value:null,children:E.jsx(pCr,Ce({as:s,ownerState:m,className:nr(g.root,o),ref:n},h,{children:typeof a=="string"&&!c?E.jsx(Zve,{color:"text.secondary",children:a}):E.jsxs(Y.Fragment,{children:[u==="start"?Svt||(Svt=E.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Kx=mCr;function gCr(t){return mi("MuiInputLabel",t)}ei("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const vCr=["disableAnimation","margin","shrink","variant","className"],ACr=t=>{const{classes:e,formControl:n,size:r,shrink:a,disableAnimation:o,variant:s,required:l}=t,c={root:["root",n&&"formControl",!o&&"animated",a&&"shrink",r&&r!=="normal"&&`size${fn(r)}`,s],asterisk:[l&&"asterisk"]},u=gi(c,gCr,e);return Ce({},e,u)},yCr=En(H2r,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${MX.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(({theme:t,ownerState:e})=>Ce({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},e.variant==="filled"&&Ce({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&Ce({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&Ce({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),bCr=Y.forwardRef(function(e,n){const r=Vi({name:"MuiInputLabel",props:e}),{disableAnimation:a=!1,shrink:o,className:s}=r,l=Wn(r,vCr),c=tb();let u=o;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=XP({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),h=Ce({},r,{disableAnimation:a,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),f=ACr(h);return E.jsx(yCr,Ce({"data-shrink":u,ownerState:h,ref:n,className:nr(f.root,s)},l,{classes:f}))}),xCr=bCr;function ECr(t){return mi("MuiLinearProgress",t)}ei("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const SCr=["className","color","value","valueBuffer","variant"];let hG=t=>t,wvt,_vt,Tvt,Cvt,kvt,Rvt;const oHe=4,wCr=qM(wvt||(wvt=hG`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`)),_Cr=qM(_vt||(_vt=hG`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`)),TCr=qM(Tvt||(Tvt=hG`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`)),CCr=t=>{const{classes:e,variant:n,color:r}=t,a={root:["root",`color${fn(r)}`,n],dashed:["dashed",`dashedColor${fn(r)}`],bar1:["bar",`barColor${fn(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${fn(r)}`,n==="buffer"&&`color${fn(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return gi(a,ECr,e)},TXe=(t,e)=>e==="inherit"?"currentColor":t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?wte(t.palette[e].main,.62):Ste(t.palette[e].main,.5),kCr=En("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`color${fn(n.color)}`],e[n.variant]]}})(({ownerState:t,theme:e})=>Ce({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:TXe(e,t.color)},t.color==="inherit"&&t.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},t.variant==="buffer"&&{backgroundColor:"transparent"},t.variant==="query"&&{transform:"rotate(180deg)"})),RCr=En("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.dashed,e[`dashedColor${fn(n.color)}`]]}})(({ownerState:t,theme:e})=>{const n=TXe(e,t.color);return Ce({position:"absolute",marginTop:0,height:"100%",width:"100%"},t.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},c6(Cvt||(Cvt=hG`
    animation: ${0} 3s infinite linear;
  `),TCr)),MCr=En("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e[`barColor${fn(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&e.bar1Indeterminate,n.variant==="determinate"&&e.bar1Determinate,n.variant==="buffer"&&e.bar1Buffer]}})(({ownerState:t,theme:e})=>Ce({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:t.color==="inherit"?"currentColor":(e.vars||e).palette[t.color].main},t.variant==="determinate"&&{transition:`transform .${oHe}s linear`},t.variant==="buffer"&&{zIndex:1,transition:`transform .${oHe}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&c6(kvt||(kvt=hG`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    `),wCr)),NCr=En("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e[`barColor${fn(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&e.bar2Indeterminate,n.variant==="buffer"&&e.bar2Buffer]}})(({ownerState:t,theme:e})=>Ce({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},t.variant!=="buffer"&&{backgroundColor:t.color==="inherit"?"currentColor":(e.vars||e).palette[t.color].main},t.color==="inherit"&&{opacity:.3},t.variant==="buffer"&&{backgroundColor:TXe(e,t.color),transition:`transform .${oHe}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&c6(Rvt||(Rvt=hG`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
    `),_Cr)),ICr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:s,valueBuffer:l,variant:c="indeterminate"}=r,u=Wn(r,SCr),d=Ce({},r,{color:o,variant:c}),h=CCr(d),f=qie(),p={},m={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){p["aria-valuenow"]=Math.round(s),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=s-100;f&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&l!==void 0){let g=(l||0)-100;f&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return E.jsxs(kCr,Ce({className:nr(h.root,a),ownerState:d,role:"progressbar"},p,{ref:n},u,{children:[c==="buffer"?E.jsx(RCr,{className:h.dashed,ownerState:d}):null,E.jsx(MCr,{className:h.bar1,ownerState:d,style:m.bar1}),c==="determinate"?null:E.jsx(NCr,{className:h.bar2,ownerState:d,style:m.bar2})]}))}),wYt=ICr,PCr=Y.createContext({}),sHe=PCr;function OCr(t){return mi("MuiList",t)}ei("MuiList",["root","padding","dense","subheader"]);const LCr=["children","className","component","dense","disablePadding","subheader"],BCr=t=>{const{classes:e,disablePadding:n,dense:r,subheader:a}=t;return gi({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},OCr,e)},DCr=En("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>Ce({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),$Cr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,d=Wn(r,LCr),h=Y.useMemo(()=>({dense:l}),[l]),f=Ce({},r,{component:s,dense:l,disablePadding:c}),p=BCr(f);return E.jsx(sHe.Provider,{value:h,children:E.jsxs(DCr,Ce({as:s,className:nr(p.root,o),ref:n,ownerState:f},d,{children:[u,a]}))})}),FCr=$Cr,jCr=ei("MuiListItemIcon",["root","alignItemsFlexStart"]),Mvt=jCr,HCr=ei("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Nvt=HCr,UCr=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l5e(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function Ivt(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function _Yt(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.indexOf(e.keys.join(""))===0}function gQ(t,e,n,r,a,o){let s=!1,l=a(t,e,e?n:!1);for(;l;){if(l===t.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!_Yt(l,o)||c)l=a(t,l,n);else return l.focus(),!0}return!1}const zCr=Y.forwardRef(function(e,n){const{actions:r,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:h="selectedMenu"}=e,f=Wn(e,UCr),p=Y.useRef(null),m=Y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cw(()=>{a&&p.current.focus()},[a]),Y.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const w=!p.current.style.width;if(S.clientHeight<p.current.clientHeight&&w){const _=`${iqt(xp(S))}px`;p.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=_,p.current.style.width=`calc(100% + ${_})`}return p.current}}),[]);const g=S=>{const x=p.current,w=S.key,_=xp(x).activeElement;if(w==="ArrowDown")S.preventDefault(),gQ(x,_,u,c,l5e);else if(w==="ArrowUp")S.preventDefault(),gQ(x,_,u,c,Ivt);else if(w==="Home")S.preventDefault(),gQ(x,null,u,c,l5e);else if(w==="End")S.preventDefault(),gQ(x,null,u,c,Ivt);else if(w.length===1){const C=m.current,R=w.toLowerCase(),k=performance.now();C.keys.length>0&&(k-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&R!==C.keys[0]&&(C.repeating=!1)),C.lastTime=k,C.keys.push(R);const P=_&&!C.repeating&&_Yt(_,C);C.previousKeyMatched&&(P||gQ(x,_,!1,c,l5e,C))?S.preventDefault():C.previousKeyMatched=!1}d&&d(S)},v=ju(p,n);let A=-1;Y.Children.forEach(s,(S,x)=>{if(!Y.isValidElement(S)){A===x&&(A+=1,A>=s.length&&(A=-1));return}S.props.disabled||(h==="selectedMenu"&&S.props.selected||A===-1)&&(A=x),A===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(A+=1,A>=s.length&&(A=-1))});const y=Y.Children.map(s,(S,x)=>{if(x===A){const w={};return o&&(w.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(w.tabIndex=0),Y.cloneElement(S,w)}return S});return E.jsx(FCr,Ce({role:"menu",ref:v,className:l,onKeyDown:g,tabIndex:a?0:-1},f,{children:y}))}),rme=zCr;function GCr(t){return mi("MuiPopover",t)}ei("MuiPopover",["root","paper"]);const VCr=["onEntering"],KCr=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],WCr=["slotProps"];function Pvt(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function Ovt(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function Lvt(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function c5e(t){return typeof t=="function"?t():t}const QCr=t=>{const{classes:e}=t;return gi({root:["root"],paper:["paper"]},GCr,e)},qCr=En(_Xe,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),TYt=En(X0,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),YCr=Y.forwardRef(function(e,n){var r,a,o;const s=Vi({props:e,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:f,className:p,container:m,elevation:g=8,marginThreshold:v=16,open:A,PaperProps:y={},slots:S,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:_=t0e,transitionDuration:C="auto",TransitionProps:{onEntering:R}={},disableScrollLock:k=!1}=s,P=Wn(s.TransitionProps,VCr),N=Wn(s,KCr),L=(r=x==null?void 0:x.paper)!=null?r:y,I=Y.useRef(),b=ju(I,L.ref),T=Ce({},s,{anchorOrigin:u,anchorReference:h,elevation:g,marginThreshold:v,externalPaperSlotProps:L,transformOrigin:w,TransitionComponent:_,transitionDuration:C,TransitionProps:P}),M=QCr(T),D=Y.useCallback(()=>{if(h==="anchorPosition")return d;const he=c5e(c),ce=(he&&he.nodeType===1?he:xp(I.current).body).getBoundingClientRect();return{top:ce.top+Pvt(ce,u.vertical),left:ce.left+Ovt(ce,u.horizontal)}},[c,u.horizontal,u.vertical,d,h]),B=Y.useCallback(he=>({vertical:Pvt(he,w.vertical),horizontal:Ovt(he,w.horizontal)}),[w.horizontal,w.vertical]),j=Y.useCallback(he=>{const de={width:he.offsetWidth,height:he.offsetHeight},ce=B(de);if(h==="none")return{top:null,left:null,transformOrigin:Lvt(ce)};const Ee=D();let Me=Ee.top-ce.vertical,Be=Ee.left-ce.horizontal;const ze=Me+de.height,je=Be+de.width,ye=$2(c5e(c)),me=ye.innerHeight-v,le=ye.innerWidth-v;if(v!==null&&Me<v){const pe=Me-v;Me-=pe,ce.vertical+=pe}else if(v!==null&&ze>me){const pe=ze-me;Me-=pe,ce.vertical+=pe}if(v!==null&&Be<v){const pe=Be-v;Be-=pe,ce.horizontal+=pe}else if(je>le){const pe=je-le;Be-=pe,ce.horizontal+=pe}return{top:`${Math.round(Me)}px`,left:`${Math.round(Be)}px`,transformOrigin:Lvt(ce)}},[c,h,D,B,v]),[H,U]=Y.useState(A),$=Y.useCallback(()=>{const he=I.current;if(!he)return;const de=j(he);de.top!==null&&(he.style.top=de.top),de.left!==null&&(he.style.left=de.left),he.style.transformOrigin=de.transformOrigin,U(!0)},[j]);Y.useEffect(()=>(k&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[c,k,$]);const z=(he,de)=>{R&&R(he,de),$()},Z=()=>{U(!1)};Y.useEffect(()=>{A&&$()}),Y.useImperativeHandle(l,()=>A?{updatePosition:()=>{$()}}:null,[A,$]),Y.useEffect(()=>{if(!A)return;const he=jxe(()=>{$()}),de=$2(c);return de.addEventListener("resize",he),()=>{he.clear(),de.removeEventListener("resize",he)}},[c,A,$]);let K=C;C==="auto"&&!_.muiSupportAuto&&(K=void 0);const Q=m||(c?xp(c5e(c)).body:void 0),ee=(a=S==null?void 0:S.root)!=null?a:qCr,X=(o=S==null?void 0:S.paper)!=null?o:TYt,te=X5({elementType:X,externalSlotProps:Ce({},L,{style:H?L.style:Ce({},L.style,{opacity:0})}),additionalProps:{elevation:g,ref:b},ownerState:T,className:nr(M.paper,L==null?void 0:L.className)}),J=X5({elementType:ee,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:N,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Q,open:A},ownerState:T,className:nr(M.root,p)}),{slotProps:ne}=J,ie=Wn(J,WCr);return E.jsx(ee,Ce({},ie,!Yve(ee)&&{slotProps:ne,disableScrollLock:k},{children:E.jsx(_,Ce({appear:!0,in:A,onEntering:z,onExited:Z,timeout:K},P,{children:E.jsx(X,Ce({},te,{children:f}))}))}))}),JCr=YCr;function ZCr(t){return mi("MuiMenu",t)}ei("MuiMenu",["root","paper","list"]);const XCr=["onEntering"],ekr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],tkr={vertical:"top",horizontal:"right"},nkr={vertical:"top",horizontal:"left"},rkr=t=>{const{classes:e}=t;return gi({root:["root"],paper:["paper"],list:["list"]},ZCr,e)},ikr=En(JCr,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),akr=En(TYt,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),okr=En(rme,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),skr=Y.forwardRef(function(e,n){var r,a;const o=Vi({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:h,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:v}={},variant:A="selectedMenu",slots:y={},slotProps:S={}}=o,x=Wn(o.TransitionProps,XCr),w=Wn(o,ekr),_=qie(),C=Ce({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:v,PaperProps:p,transitionDuration:g,TransitionProps:x,variant:A}),R=rkr(C),k=s&&!u&&f,P=Y.useRef(null),N=(B,j)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:_?"rtl":"ltr"}),v&&v(B,j)},L=B=>{B.key==="Tab"&&(B.preventDefault(),h&&h(B,"tabKeyDown"))};let I=-1;Y.Children.map(l,(B,j)=>{Y.isValidElement(B)&&(B.props.disabled||(A==="selectedMenu"&&B.props.selected||I===-1)&&(I=j))});const b=(r=y.paper)!=null?r:akr,T=(a=S.paper)!=null?a:p,M=X5({elementType:y.root,externalSlotProps:S.root,ownerState:C,className:[R.root,c]}),D=X5({elementType:b,externalSlotProps:T,ownerState:C,className:R.paper});return E.jsx(ikr,Ce({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?tkr:nkr,slots:{paper:b,root:y.root},slotProps:{root:M,paper:D},open:f,ref:n,transitionDuration:g,TransitionProps:Ce({onEntering:N},x),ownerState:C},w,{classes:m,children:E.jsx(okr,Ce({onKeyDown:L,actions:P,autoFocus:s&&(I===-1||u),autoFocusItem:k,variant:A},d,{className:nr(R.list,d.className),children:l}))}))}),lE=skr;function lkr(t){return mi("MuiMenuItem",t)}const ckr=ei("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),vQ=ckr,ukr=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dkr=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},hkr=t=>{const{disabled:e,dense:n,divider:r,disableGutters:a,selected:o,classes:s}=t,c=gi({root:["root",n&&"dense",e&&"disabled",!a&&"gutters",r&&"divider",o&&"selected"]},lkr,s);return Ce({},s,c)},fkr=En(kw,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dkr})(({theme:t,ownerState:e})=>Ce({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vQ.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ss(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${vQ.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:ss(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${vQ.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ss(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ss(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${vQ.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${vQ.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${gvt.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${gvt.inset}`]:{marginLeft:52},[`& .${Nvt.root}`]:{marginTop:0,marginBottom:0},[`& .${Nvt.inset}`]:{paddingLeft:36},[`& .${Mvt.root}`]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&Ce({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${Mvt.root} svg`]:{fontSize:"1.25rem"}}))),pkr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:h,className:f}=r,p=Wn(r,ukr),m=Y.useContext(sHe),g=Y.useMemo(()=>({dense:s||m.dense||!1,disableGutters:c}),[m.dense,s,c]),v=Y.useRef(null);Cw(()=>{a&&v.current&&v.current.focus()},[a]);const A=Ce({},r,{dense:g.dense,divider:l,disableGutters:c}),y=hkr(r),S=ju(v,n);let x;return r.disabled||(x=h!==void 0?h:-1),E.jsx(sHe.Provider,{value:g,children:E.jsx(fkr,Ce({ref:S,role:d,tabIndex:x,component:o,focusVisibleClassName:nr(y.focusVisible,u),className:nr(y.root,f)},p,{ownerState:A,classes:y}))})}),Dn=pkr;function mkr(t){return mi("MuiMobileStepper",t)}ei("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const gkr=["activeStep","backButton","className","LinearProgressProps","nextButton","position","steps","variant"],vkr=t=>{const{classes:e,position:n}=t,r={root:["root",`position${fn(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return gi(r,mkr,e)},Akr=En(X0,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${fn(n.position)}`]]}})(({theme:t,ownerState:e})=>Ce({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(t.vars||t).palette.background.default,padding:8},e.position==="bottom"&&{position:"fixed",bottom:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper},e.position==="top"&&{position:"fixed",top:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper})),ykr=En("div",{name:"MuiMobileStepper",slot:"Dots",overridesResolver:(t,e)=>e.dots})(({ownerState:t})=>Ce({},t.variant==="dots"&&{display:"flex",flexDirection:"row"})),bkr=En("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:t=>lXe(t)&&t!=="dotActive",overridesResolver:(t,e)=>{const{dotActive:n}=t;return[e.dot,n&&e.dotActive]}})(({theme:t,ownerState:e,dotActive:n})=>Ce({},e.variant==="dots"&&Ce({transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),backgroundColor:(t.vars||t).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},n&&{backgroundColor:(t.vars||t).palette.primary.main}))),xkr=En(wYt,{name:"MuiMobileStepper",slot:"Progress",overridesResolver:(t,e)=>e.progress})(({ownerState:t})=>Ce({},t.variant==="progress"&&{width:"50%"})),Ekr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiMobileStepper"}),{activeStep:a=0,backButton:o,className:s,LinearProgressProps:l,nextButton:c,position:u="bottom",steps:d,variant:h="dots"}=r,f=Wn(r,gkr),p=Ce({},r,{activeStep:a,position:u,variant:h});let m;h==="progress"&&(d===1?m=100:m=Math.ceil(a/(d-1)*100));const g=vkr(p);return E.jsxs(Akr,Ce({square:!0,elevation:0,className:nr(g.root,s),ref:n,ownerState:p},f,{children:[o,h==="text"&&E.jsxs(Y.Fragment,{children:[a+1," / ",d]}),h==="dots"&&E.jsx(ykr,{ownerState:p,className:g.dots,children:[...new Array(d)].map((v,A)=>E.jsx(bkr,{className:nr(g.dot,A===a&&g.dotActive),ownerState:p,dotActive:A===a},A))}),h==="progress"&&E.jsx(xkr,Ce({ownerState:p,className:g.progress,variant:"determinate",value:m},l)),c]}))}),Skr=Ekr;function wkr(t){return mi("MuiNativeSelect",t)}const _kr=ei("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),CXe=_kr,Tkr=["className","disabled","error","IconComponent","inputRef","variant"],Ckr=t=>{const{classes:e,variant:n,disabled:r,multiple:a,open:o,error:s}=t,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fn(n)}`,o&&"iconOpen",r&&"disabled"]};return gi(l,wkr,e)},CYt=({ownerState:t,theme:e})=>Ce({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ce({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${CXe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},t.variant==="filled"&&{"&&&":{paddingRight:32}},t.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),kkr=En("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pg,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${CXe.multiple}`]:e.multiple}]}})(CYt),kYt=({ownerState:t,theme:e})=>Ce({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${CXe.disabled}`]:{color:(e.vars||e).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},t.variant==="filled"&&{right:7},t.variant==="outlined"&&{right:7}),Rkr=En("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${fn(n.variant)}`],n.open&&e.iconOpen]}})(kYt),Mkr=Y.forwardRef(function(e,n){const{className:r,disabled:a,error:o,IconComponent:s,inputRef:l,variant:c="standard"}=e,u=Wn(e,Tkr),d=Ce({},e,{disabled:a,variant:c,error:o}),h=Ckr(d);return E.jsxs(Y.Fragment,{children:[E.jsx(kkr,Ce({ownerState:d,className:nr(h.select,r),disabled:a,ref:l||n},u)),e.multiple?null:E.jsx(Rkr,{as:s,ownerState:d,className:h.icon})]})}),Nkr=Mkr;var Bvt;const Ikr=["children","classes","className","label","notched"],Pkr=En("fieldset",{shouldForwardProp:pg})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Okr=En("legend",{shouldForwardProp:pg})(({ownerState:t,theme:e})=>Ce({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},t.withLabel&&Ce({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function Lkr(t){const{className:e,label:n,notched:r}=t,a=Wn(t,Ikr),o=n!=null&&n!=="",s=Ce({},t,{notched:r,withLabel:o});return E.jsx(Pkr,Ce({"aria-hidden":!0,className:e,ownerState:s},a,{children:E.jsx(Okr,{ownerState:s,children:o?E.jsx("span",{children:n}):Bvt||(Bvt=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const Bkr=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Dkr=t=>{const{classes:e}=t,r=gi({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Kwr,e);return Ce({},e,r)},$kr=En(oEe,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:iEe})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ce({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${dT.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${dT.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${dT.focused} .${dT.notchedOutline}`]:{borderColor:(t.vars||t).palette[e.color].main,borderWidth:2},[`&.${dT.error} .${dT.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${dT.disabled} .${dT.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&Ce({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),Fkr=En(Lkr,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),jkr=En(sEe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:aEe})(({theme:t,ownerState:e})=>Ce({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),RYt=Y.forwardRef(function(e,n){var r,a,o,s,l;const c=Vi({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:h="input",label:f,multiline:p=!1,notched:m,slots:g={},type:v="text"}=c,A=Wn(c,Bkr),y=Dkr(c),S=tb(),x=XP({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=Ce({},c,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:S,fullWidth:d,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:v}),_=(r=(a=g.root)!=null?a:u.Root)!=null?r:$kr,C=(o=(s=g.input)!=null?s:u.Input)!=null?o:jkr;return E.jsx(wXe,Ce({slots:{root:_,input:C},renderSuffix:R=>E.jsx(Fkr,{ownerState:w,className:y.notchedOutline,label:f!=null&&f!==""&&x.required?l||(l=E.jsxs(Y.Fragment,{children:[f," ","*"]})):f,notched:typeof m<"u"?m:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:d,inputComponent:h,multiline:p,ref:n,type:v},A,{classes:Ce({},y,{notchedOutline:null})}))});RYt.muiName="Input";const lEe=RYt;function Hkr(t){return mi("MuiPagination",t)}ei("MuiPagination",["root","ul","outlined","text"]);const Ukr=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function zkr(t={}){const{boundaryCount:e=1,componentName:n="usePagination",count:r=1,defaultPage:a=1,disabled:o=!1,hideNextButton:s=!1,hidePrevButton:l=!1,onChange:c,page:u,showFirstButton:d=!1,showLastButton:h=!1,siblingCount:f=1}=t,p=Wn(t,Ukr),[m,g]=fw({controlled:u,default:a,name:n,state:"page"}),v=(k,P)=>{u||g(P),c&&c(k,P)},A=(k,P)=>{const N=P-k+1;return Array.from({length:N},(L,I)=>k+I)},y=A(1,Math.min(e,r)),S=A(Math.max(r-e+1,e+1),r),x=Math.max(Math.min(m-f,r-e-f*2-1),e+2),w=Math.min(Math.max(m+f,e+f*2+2),S.length>0?S[0]-2:r-1),_=[...d?["first"]:[],...l?[]:["previous"],...y,...x>e+2?["start-ellipsis"]:e+1<r-e?[e+1]:[],...A(x,w),...w<r-e-1?["end-ellipsis"]:r-e>e?[r-e]:[],...S,...s?[]:["next"],...h?["last"]:[]],C=k=>{switch(k){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return r;default:return null}},R=_.map(k=>typeof k=="number"?{onClick:P=>{v(P,k)},type:"page",page:k,selected:k===m,disabled:o,"aria-current":k===m?"true":void 0}:{onClick:P=>{v(P,C(k))},type:k,page:C(k),selected:!1,disabled:o||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?m>=r:m<=1)});return Ce({items:R},p)}function Gkr(t){return mi("MuiPaginationItem",t)}const Vkr=ei("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Ub=Vkr,Dvt=xl(E.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),$vt=xl(E.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Fvt=xl(E.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),jvt=xl(E.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Kkr=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],MYt=(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${fn(n.size)}`],n.variant==="text"&&e[`text${fn(n.color)}`],n.variant==="outlined"&&e[`outlined${fn(n.color)}`],n.shape==="rounded"&&e.rounded,n.type==="page"&&e.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&e.ellipsis,(n.type==="previous"||n.type==="next")&&e.previousNext,(n.type==="first"||n.type==="last")&&e.firstLast]},Wkr=t=>{const{classes:e,color:n,disabled:r,selected:a,size:o,shape:s,type:l,variant:c}=t,u={root:["root",`size${fn(o)}`,c,s,n!=="standard"&&`color${fn(n)}`,n!=="standard"&&`${c}${fn(n)}`,r&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return gi(u,Gkr,e)},Qkr=En("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:MYt})(({theme:t,ownerState:e})=>Ce({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${Ub.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),qkr=En(kw,{name:"MuiPaginationItem",slot:"Root",overridesResolver:MYt})(({theme:t,ownerState:e})=>Ce({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${Ub.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Ub.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ub.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ss(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Ub.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:ss(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${Ub.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},e.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)},e.shape==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:e})=>Ce({},e.variant==="text"&&{[`&.${Ub.selected}`]:Ce({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}},[`&.${Ub.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}},{[`&.${Ub.disabled}`]:{color:(t.vars||t).palette.action.disabled}})},e.variant==="outlined"&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ub.selected}`]:Ce({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:ss(t.palette[e.color].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:ss(t.palette[e.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:ss(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ub.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:ss(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{[`&.${Ub.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),Ykr=En("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})(({theme:t,ownerState:e})=>Ce({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},e.size==="small"&&{fontSize:t.typography.pxToRem(18)},e.size==="large"&&{fontSize:t.typography.pxToRem(22)})),Jkr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:s,components:l={},disabled:c=!1,page:u,selected:d=!1,shape:h="circular",size:f="medium",slots:p={},type:m="page",variant:g="text"}=r,v=Wn(r,Kkr),A=Ce({},r,{color:o,disabled:c,selected:d,shape:h,size:f,type:m,variant:g}),y=qie(),S=Wkr(A),w=(y?{previous:p.next||l.next||jvt,next:p.previous||l.previous||Fvt,last:p.first||l.first||Dvt,first:p.last||l.last||$vt}:{previous:p.previous||l.previous||Fvt,next:p.next||l.next||jvt,first:p.first||l.first||Dvt,last:p.last||l.last||$vt})[m];return m==="start-ellipsis"||m==="end-ellipsis"?E.jsx(Qkr,{ref:n,ownerState:A,className:nr(S.root,a),children:"…"}):E.jsxs(qkr,Ce({ref:n,ownerState:A,component:s,disabled:c,className:nr(S.root,a)},v,{children:[m==="page"&&u,w?E.jsx(Ykr,{as:w,ownerState:A,className:S.icon}):null]}))}),Zkr=Jkr,Xkr=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],eRr=t=>{const{classes:e,variant:n}=t;return gi({root:["root",n],ul:["ul"]},Hkr,e)},tRr=En("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant]]}})({}),nRr=En("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function rRr(t,e,n){return t==="page"?`${n?"":"Go to "}page ${e}`:`Go to ${t} page`}const iRr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:s="standard",count:l=1,defaultPage:c=1,disabled:u=!1,getItemAriaLabel:d=rRr,hideNextButton:h=!1,hidePrevButton:f=!1,renderItem:p=R=>E.jsx(Zkr,Ce({},R)),shape:m="circular",showFirstButton:g=!1,showLastButton:v=!1,siblingCount:A=1,size:y="medium",variant:S="text"}=r,x=Wn(r,Xkr),{items:w}=zkr(Ce({},r,{componentName:"Pagination"})),_=Ce({},r,{boundaryCount:a,color:s,count:l,defaultPage:c,disabled:u,getItemAriaLabel:d,hideNextButton:h,hidePrevButton:f,renderItem:p,shape:m,showFirstButton:g,showLastButton:v,siblingCount:A,size:y,variant:S}),C=eRr(_);return E.jsx(tRr,Ce({"aria-label":"pagination navigation",className:nr(C.root,o),ownerState:_,ref:n},x,{children:E.jsx(nRr,{className:C.ul,ownerState:_,children:w.map((R,k)=>E.jsx("li",{children:p(Ce({},R,{color:s,"aria-label":d(R.type,R.page,R.selected),shape:m,size:y,variant:S}))},k))})}))}),aRr=iRr,oRr=xl(E.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),sRr=xl(E.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),lRr=En("span",{shouldForwardProp:pg})({position:"relative",display:"flex"}),cRr=En(oRr)({transform:"scale(1)"}),uRr=En(sRr)(({theme:t,ownerState:e})=>Ce({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},e.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}));function NYt(t){const{checked:e=!1,classes:n={},fontSize:r}=t,a=Ce({},t,{checked:e});return E.jsxs(lRr,{className:n.root,ownerState:a,children:[E.jsx(cRr,{fontSize:r,className:n.background,ownerState:a}),E.jsx(uRr,{fontSize:r,className:n.dot,ownerState:a})]})}const dRr=Y.createContext(void 0),IYt=dRr;function hRr(){return Y.useContext(IYt)}function fRr(t){return mi("MuiRadio",t)}const pRr=ei("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Hvt=pRr,mRr=["checked","checkedIcon","color","icon","name","onChange","size","className"],gRr=t=>{const{classes:e,color:n,size:r}=t,a={root:["root",`color${fn(n)}`,r!=="medium"&&`size${fn(r)}`]};return Ce({},e,gi(a,fRr,e))},vRr=En(hYt,{shouldForwardProp:t=>pg(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size!=="medium"&&e[`size${fn(n.size)}`],e[`color${fn(n.color)}`]]}})(({theme:t,ownerState:e})=>Ce({color:(t.vars||t).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${e.color==="default"?t.vars.palette.action.activeChannel:t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ss(e.color==="default"?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Hvt.checked}`]:{color:(t.vars||t).palette[e.color].main}},{[`&.${Hvt.disabled}`]:{color:(t.vars||t).palette.action.disabled}}));function ARr(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const Uvt=E.jsx(NYt,{checked:!0}),zvt=E.jsx(NYt,{}),yRr=Y.forwardRef(function(e,n){var r,a;const o=Vi({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:l=Uvt,color:c="primary",icon:u=zvt,name:d,onChange:h,size:f="medium",className:p}=o,m=Wn(o,mRr),g=Ce({},o,{color:c,size:f}),v=gRr(g),A=hRr();let y=s;const S=Gve(h,A&&A.onChange);let x=d;return A&&(typeof y>"u"&&(y=ARr(A.value,o.value)),typeof x>"u"&&(x=A.name)),E.jsx(vRr,Ce({type:"radio",icon:Y.cloneElement(u,{fontSize:(r=zvt.props.fontSize)!=null?r:f}),checkedIcon:Y.cloneElement(l,{fontSize:(a=Uvt.props.fontSize)!=null?a:f}),ownerState:g,classes:v,name:x,checked:y,onChange:S,ref:n,className:nr(v.root,p)},m))}),bRr=yRr;function xRr(t){return mi("MuiRadioGroup",t)}ei("MuiRadioGroup",["root","row","error"]);const ERr=["actions","children","className","defaultValue","name","onChange","value"],SRr=t=>{const{classes:e,row:n,error:r}=t;return gi({root:["root",n&&"row",r&&"error"]},xRr,e)},wRr=Y.forwardRef(function(e,n){const{actions:r,children:a,className:o,defaultValue:s,name:l,onChange:c,value:u}=e,d=Wn(e,ERr),h=Y.useRef(null),f=SRr(e),[p,m]=fw({controlled:u,default:s,name:"RadioGroup"});Y.useImperativeHandle(r,()=>({focus:()=>{let y=h.current.querySelector("input:not(:disabled):checked");y||(y=h.current.querySelector("input:not(:disabled)")),y&&y.focus()}}),[]);const g=ju(n,h),v=O8(l),A=Y.useMemo(()=>({name:v,onChange(y){m(y.target.value),c&&c(y,y.target.value)},value:p}),[v,c,m,p]);return E.jsx(IYt.Provider,{value:A,children:E.jsx(T2r,Ce({role:"radiogroup",ref:g,className:nr(f.root,o)},d,{children:a}))})}),_Rr=wRr;function TRr(t){return mi("MuiSelect",t)}const CRr=ei("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AQ=CRr;var Gvt;const kRr=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],RRr=En("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${AQ.select}`]:e.select},{[`&.${AQ.select}`]:e[n.variant]},{[`&.${AQ.error}`]:e.error},{[`&.${AQ.multiple}`]:e.multiple}]}})(CYt,{[`&.${AQ.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),MRr=En("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${fn(n.variant)}`],n.open&&e.iconOpen]}})(kYt),NRr=En("input",{shouldForwardProp:t=>lXe(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vvt(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function IRr(t){return t==null||typeof t=="string"&&!t.trim()}const PRr=t=>{const{classes:e,variant:n,disabled:r,multiple:a,open:o,error:s}=t,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fn(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return gi(l,TRr,e)},ORr=Y.forwardRef(function(e,n){var r;const{"aria-describedby":a,"aria-label":o,autoFocus:s,autoWidth:l,children:c,className:u,defaultOpen:d,defaultValue:h,disabled:f,displayEmpty:p,error:m=!1,IconComponent:g,inputRef:v,labelId:A,MenuProps:y={},multiple:S,name:x,onBlur:w,onChange:_,onClose:C,onFocus:R,onOpen:k,open:P,readOnly:N,renderValue:L,SelectDisplayProps:I={},tabIndex:b,value:T,variant:M="standard"}=e,D=Wn(e,kRr),[B,j]=fw({controlled:T,default:h,name:"Select"}),[H,U]=fw({controlled:P,default:d,name:"Select"}),$=Y.useRef(null),z=Y.useRef(null),[Z,K]=Y.useState(null),{current:Q}=Y.useRef(P!=null),[ee,X]=Y.useState(),te=ju(n,v),J=Y.useCallback(Se=>{z.current=Se,Se&&K(Se)},[]),ne=Z==null?void 0:Z.parentNode;Y.useImperativeHandle(te,()=>({focus:()=>{z.current.focus()},node:$.current,value:B}),[B]),Y.useEffect(()=>{d&&H&&Z&&!Q&&(X(l?null:ne.clientWidth),z.current.focus())},[Z,l]),Y.useEffect(()=>{s&&z.current.focus()},[s]),Y.useEffect(()=>{if(!A)return;const Se=xp(z.current).getElementById(A);if(Se){const Xe=()=>{getSelection().isCollapsed&&z.current.focus()};return Se.addEventListener("click",Xe),()=>{Se.removeEventListener("click",Xe)}}},[A]);const ie=(Se,Xe)=>{Se?k&&k(Xe):C&&C(Xe),Q||(X(l?null:ne.clientWidth),U(Se))},he=Se=>{Se.button===0&&(Se.preventDefault(),z.current.focus(),ie(!0,Se))},de=Se=>{ie(!1,Se)},ce=Y.Children.toArray(c),Ee=Se=>{const Xe=ce.find(Oe=>Oe.props.value===Se.target.value);Xe!==void 0&&(j(Xe.props.value),_&&_(Se,Xe))},Me=Se=>Xe=>{let Oe;if(Xe.currentTarget.hasAttribute("tabindex")){if(S){Oe=Array.isArray(B)?B.slice():[];const Ye=B.indexOf(Se.props.value);Ye===-1?Oe.push(Se.props.value):Oe.splice(Ye,1)}else Oe=Se.props.value;if(Se.props.onClick&&Se.props.onClick(Xe),B!==Oe&&(j(Oe),_)){const Ye=Xe.nativeEvent||Xe,mt=new Ye.constructor(Ye.type,Ye);Object.defineProperty(mt,"target",{writable:!0,value:{value:Oe,name:x}}),_(mt,Se)}S||ie(!1,Xe)}},Be=Se=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Se.key)!==-1&&(Se.preventDefault(),ie(!0,Se))},ze=Z!==null&&H,je=Se=>{!ze&&w&&(Object.defineProperty(Se,"target",{writable:!0,value:{value:B,name:x}}),w(Se))};delete D["aria-invalid"];let ye,me;const le=[];let pe=!1;(e0e({value:B})||p)&&(L?ye=L(B):pe=!0);const Ne=ce.map(Se=>{if(!Y.isValidElement(Se))return null;let Xe;if(S){if(!Array.isArray(B))throw new Error(pM(2));Xe=B.some(Oe=>Vvt(Oe,Se.props.value)),Xe&&pe&&le.push(Se.props.children)}else Xe=Vvt(B,Se.props.value),Xe&&pe&&(me=Se.props.children);return Y.cloneElement(Se,{"aria-selected":Xe?"true":"false",onClick:Me(Se),onKeyUp:Oe=>{Oe.key===" "&&Oe.preventDefault(),Se.props.onKeyUp&&Se.props.onKeyUp(Oe)},role:"option",selected:Xe,value:void 0,"data-value":Se.props.value})});pe&&(S?le.length===0?ye=null:ye=le.reduce((Se,Xe,Oe)=>(Se.push(Xe),Oe<le.length-1&&Se.push(", "),Se),[]):ye=me);let _e=ee;!l&&Q&&Z&&(_e=ne.clientWidth);let ue;typeof b<"u"?ue=b:ue=f?null:0;const se=I.id||(x?`mui-component-select-${x}`:void 0),oe=Ce({},e,{variant:M,value:B,open:ze,error:m}),ge=PRr(oe),De=Ce({},y.PaperProps,(r=y.slotProps)==null?void 0:r.paper),Fe=O8();return E.jsxs(Y.Fragment,{children:[E.jsx(RRr,Ce({ref:J,tabIndex:ue,role:"combobox","aria-controls":Fe,"aria-disabled":f?"true":void 0,"aria-expanded":ze?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[A,se].filter(Boolean).join(" ")||void 0,"aria-describedby":a,onKeyDown:Be,onMouseDown:f||N?null:he,onBlur:je,onFocus:R},I,{ownerState:oe,className:nr(I.className,ge.select,u),id:se,children:IRr(ye)?Gvt||(Gvt=E.jsx("span",{className:"notranslate",children:"​"})):ye})),E.jsx(NRr,Ce({"aria-invalid":m,value:Array.isArray(B)?B.join(","):B,name:x,ref:$,"aria-hidden":!0,onChange:Ee,tabIndex:-1,disabled:f,className:ge.nativeInput,autoFocus:s,ownerState:oe},D)),E.jsx(MRr,{as:g,className:ge.icon,ownerState:oe}),E.jsx(lE,Ce({id:`menu-${x||""}`,anchorEl:ne,open:ze,onClose:de,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:Ce({"aria-labelledby":A,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Fe},y.MenuListProps),slotProps:Ce({},y.slotProps,{paper:Ce({},De,{style:Ce({minWidth:_e},De!=null?De.style:null)})}),children:Ne}))]})}),LRr=ORr,BRr=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],DRr=["root"],$Rr=t=>{const{classes:e}=t;return e},kXe={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>pg(t)&&t!=="variant",slot:"Root"},FRr=En(SYt,kXe)(""),jRr=En(lEe,kXe)(""),HRr=En(AYt,kXe)(""),PYt=Y.forwardRef(function(e,n){const r=Vi({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:o,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=aYt,id:h,input:f,inputProps:p,label:m,labelId:g,MenuProps:v,multiple:A=!1,native:y=!1,onClose:S,onOpen:x,open:w,renderValue:_,SelectDisplayProps:C,variant:R="outlined"}=r,k=Wn(r,BRr),P=y?Nkr:LRr,N=tb(),L=XP({props:r,muiFormControl:N,states:["variant","error"]}),I=L.variant||R,b=Ce({},r,{variant:I,classes:s}),T=$Rr(b),M=Wn(T,DRr),D=f||{standard:E.jsx(FRr,{ownerState:b}),outlined:E.jsx(jRr,{label:m,ownerState:b}),filled:E.jsx(HRr,{ownerState:b})}[I],B=ju(n,D.ref);return E.jsx(Y.Fragment,{children:Y.cloneElement(D,Ce({inputComponent:P,inputProps:Ce({children:o,error:L.error,IconComponent:d,variant:I,type:void 0,multiple:A},y?{id:h}:{autoWidth:a,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:v,onClose:S,onOpen:x,open:w,renderValue:_,SelectDisplayProps:Ce({id:h},C)},p,{classes:p?rg(M,p.classes):M},f?f.props.inputProps:{})},(A&&y||u)&&I==="outlined"?{notched:!0}:{},{ref:B,className:nr(D.props.className,l,T.root)},!f&&{variant:I},k))})});PYt.muiName="Select";const OYt=PYt;function URr(t){return mi("MuiSkeleton",t)}ei("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const zRr=["animation","className","component","height","style","variant","width"];let n0e=t=>t,Kvt,Wvt,Qvt,qvt;const GRr=t=>{const{classes:e,variant:n,animation:r,hasChildren:a,width:o,height:s}=t;return gi({root:["root",n,r,a&&"withChildren",a&&!o&&"fitContent",a&&!s&&"heightAuto"]},URr,e)},VRr=qM(Kvt||(Kvt=n0e`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),KRr=qM(Wvt||(Wvt=n0e`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),WRr=En("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],n.animation!==!1&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})(({theme:t,ownerState:e})=>{const n=pyr(t.shape.borderRadius)||"px",r=myr(t.shape.borderRadius);return Ce({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:rZ(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},e.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},e.variant==="circular"&&{borderRadius:"50%"},e.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},e.hasChildren&&{"& > *":{visibility:"hidden"}},e.hasChildren&&!e.width&&{maxWidth:"fit-content"},e.hasChildren&&!e.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&c6(Qvt||(Qvt=n0e`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),VRr),({ownerState:t,theme:e})=>t.animation==="wave"&&c6(qvt||(qvt=n0e`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),KRr,(e.vars||e).palette.action.hover)),QRr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiSkeleton"}),{animation:a="pulse",className:o,component:s="span",height:l,style:c,variant:u="text",width:d}=r,h=Wn(r,zRr),f=Ce({},r,{animation:a,component:s,variant:u,hasChildren:!!h.children}),p=GRr(f);return E.jsx(WRr,Ce({as:s,ref:n,className:nr(p.root,o),ownerState:f},h,{style:Ce({width:d,height:l},c)}))}),Ca=QRr;function qRr(t){return mi("MuiSnackbarContent",t)}ei("MuiSnackbarContent",["root","message","action"]);const YRr=["action","className","message","role"],JRr=t=>{const{classes:e}=t;return gi({root:["root"],action:["action"],message:["message"]},qRr,e)},ZRr=En(X0,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98,n=w1r(t.palette.background.default,e);return Ce({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),XRr=En("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),eMr=En("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),tMr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiSnackbarContent"}),{action:a,className:o,message:s,role:l="alert"}=r,c=Wn(r,YRr),u=r,d=JRr(u);return E.jsxs(ZRr,Ce({role:l,square:!0,elevation:6,className:nr(d.root,o),ownerState:u,ref:n},c,{children:[E.jsx(XRr,{className:d.message,ownerState:u,children:s}),a?E.jsx(eMr,{className:d.action,ownerState:u,children:a}):null]}))}),nMr=tMr;function rMr(t){return mi("MuiSnackbar",t)}ei("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const iMr=["onEnter","onExited"],aMr=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],oMr=t=>{const{classes:e,anchorOrigin:n}=t,r={root:["root",`anchorOrigin${fn(n.vertical)}${fn(n.horizontal)}`]};return gi(r,rMr,e)},Yvt=En("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`anchorOrigin${fn(n.anchorOrigin.vertical)}${fn(n.anchorOrigin.horizontal)}`]]}})(({theme:t,ownerState:e})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return Ce({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},e.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},e.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},e.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:Ce({},e.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},e.anchorOrigin.horizontal==="center"&&n,e.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},e.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),sMr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiSnackbar"}),a=YM(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:h,ClickAwayListenerProps:f,ContentProps:p,disableWindowBlurListener:m=!1,message:g,open:v,TransitionComponent:A=t0e,transitionDuration:y=o,TransitionProps:{onEnter:S,onExited:x}={}}=r,w=Wn(r.TransitionProps,iMr),_=Wn(r,aMr),C=Ce({},r,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:u,disableWindowBlurListener:m,TransitionComponent:A,transitionDuration:y}),R=oMr(C),{getRootProps:k,onClickAway:P}=iwr(Ce({},C)),[N,L]=Y.useState(!0),I=X5({elementType:Yvt,getSlotProps:k,externalForwardedProps:_,ownerState:C,additionalProps:{ref:n},className:[R.root,h]}),b=M=>{L(!0),x&&x(M)},T=(M,D)=>{L(!1),S&&S(M,D)};return!v&&N?null:E.jsx(TEr,Ce({onClickAway:P},f,{children:E.jsx(Yvt,Ce({},I,{children:E.jsx(A,Ce({appear:!0,in:v,timeout:y,direction:l==="top"?"down":"up",onEnter:T,onExited:b},w,{children:d||E.jsx(nMr,Ce({message:g,action:s},p))}))}))}))}),LYt=sMr;function lMr(t){return mi("MuiTooltip",t)}const cMr=ei("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),B3=cMr,uMr=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function dMr(t){return Math.round(t*1e5)/1e5}const hMr=t=>{const{classes:e,disableInteractive:n,arrow:r,touch:a,placement:o}=t,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${fn(o.split("-")[0])}`],arrow:["arrow"]};return gi(s,lMr,e)},fMr=En(nEe,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(({theme:t,ownerState:e,open:n})=>Ce({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!e.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},e.arrow&&{[`&[data-popper-placement*="bottom"] .${B3.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${B3.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${B3.arrow}`]:Ce({},e.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${B3.arrow}`]:Ce({},e.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),pMr=En("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${fn(n.placement.split("-")[0])}`]]}})(({theme:t,ownerState:e})=>Ce({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:ss(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},e.arrow&&{position:"relative",margin:0},e.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${dMr(16/14)}em`,fontWeight:t.typography.fontWeightRegular},{[`.${B3.popper}[data-popper-placement*="left"] &`]:Ce({transformOrigin:"right center"},e.isRtl?Ce({marginLeft:"14px"},e.touch&&{marginLeft:"24px"}):Ce({marginRight:"14px"},e.touch&&{marginRight:"24px"})),[`.${B3.popper}[data-popper-placement*="right"] &`]:Ce({transformOrigin:"left center"},e.isRtl?Ce({marginRight:"14px"},e.touch&&{marginRight:"24px"}):Ce({marginLeft:"14px"},e.touch&&{marginLeft:"24px"})),[`.${B3.popper}[data-popper-placement*="top"] &`]:Ce({transformOrigin:"center bottom",marginBottom:"14px"},e.touch&&{marginBottom:"24px"}),[`.${B3.popper}[data-popper-placement*="bottom"] &`]:Ce({transformOrigin:"center top",marginTop:"14px"},e.touch&&{marginTop:"24px"})})),mMr=En("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:ss(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let cce=!1;const Jvt=new Qie;let yQ={x:0,y:0};function uce(t,e){return(n,...r)=>{e&&e(n,...r),t(n,...r)}}const gMr=Y.forwardRef(function(e,n){var r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w;const _=Vi({props:e,name:"MuiTooltip"}),{arrow:C=!1,children:R,components:k={},componentsProps:P={},describeChild:N=!1,disableFocusListener:L=!1,disableHoverListener:I=!1,disableInteractive:b=!1,disableTouchListener:T=!1,enterDelay:M=100,enterNextDelay:D=0,enterTouchDelay:B=700,followCursor:j=!1,id:H,leaveDelay:U=0,leaveTouchDelay:$=1500,onClose:z,onOpen:Z,open:K,placement:Q="bottom",PopperComponent:ee,PopperProps:X={},slotProps:te={},slots:J={},title:ne,TransitionComponent:ie=t0e,TransitionProps:he}=_,de=Wn(_,uMr),ce=Y.isValidElement(R)?R:E.jsx("span",{children:R}),Ee=YM(),Me=qie(),[Be,ze]=Y.useState(),[je,ye]=Y.useState(null),me=Y.useRef(!1),le=b||j,pe=L3(),Ne=L3(),_e=L3(),ue=L3(),[se,oe]=fw({controlled:K,default:!1,name:"Tooltip",state:"open"});let ge=se;const De=O8(H),Fe=Y.useRef(),Se=pv(()=>{Fe.current!==void 0&&(document.body.style.WebkitUserSelect=Fe.current,Fe.current=void 0),ue.clear()});Y.useEffect(()=>Se,[Se]);const Xe=jn=>{Jvt.clear(),cce=!0,oe(!0),Z&&!ge&&Z(jn)},Oe=pv(jn=>{Jvt.start(800+U,()=>{cce=!1}),oe(!1),z&&ge&&z(jn),pe.start(Ee.transitions.duration.shortest,()=>{me.current=!1})}),Ye=jn=>{me.current&&jn.type!=="touchstart"||(Be&&Be.removeAttribute("title"),Ne.clear(),_e.clear(),M||cce&&D?Ne.start(cce?D:M,()=>{Xe(jn)}):Xe(jn))},mt=jn=>{Ne.clear(),_e.start(U,()=>{Oe(jn)})},{isFocusVisibleRef:ut,onBlur:lt,onFocus:pn,ref:sn}=nXe(),[,un]=Y.useState(!1),ur=jn=>{lt(jn),ut.current===!1&&(un(!1),mt(jn))},dt=jn=>{Be||ze(jn.currentTarget),pn(jn),ut.current===!0&&(un(!0),Ye(jn))},xt=jn=>{me.current=!0;const br=ce.props;br.onTouchStart&&br.onTouchStart(jn)},Cn=jn=>{xt(jn),_e.clear(),pe.clear(),Se(),Fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(B,()=>{document.body.style.WebkitUserSelect=Fe.current,Ye(jn)})},Kt=jn=>{ce.props.onTouchEnd&&ce.props.onTouchEnd(jn),Se(),_e.start($,()=>{Oe(jn)})};Y.useEffect(()=>{if(!ge)return;function jn(br){(br.key==="Escape"||br.key==="Esc")&&Oe(br)}return document.addEventListener("keydown",jn),()=>{document.removeEventListener("keydown",jn)}},[Oe,ge]);const rn=ju(ce.ref,sn,ze,n);!ne&&ne!==0&&(ge=!1);const On=Y.useRef(),an=jn=>{const br=ce.props;br.onMouseMove&&br.onMouseMove(jn),yQ={x:jn.clientX,y:jn.clientY},On.current&&On.current.update()},on={},dr=typeof ne=="string";N?(on.title=!ge&&dr&&!I?ne:null,on["aria-describedby"]=ge?De:null):(on["aria-label"]=dr?ne:null,on["aria-labelledby"]=ge&&!dr?De:null);const $e=Ce({},on,de,ce.props,{className:nr(de.className,ce.props.className),onTouchStart:xt,ref:rn},j?{onMouseMove:an}:{}),qe={};T||($e.onTouchStart=Cn,$e.onTouchEnd=Kt),I||($e.onMouseOver=uce(Ye,$e.onMouseOver),$e.onMouseLeave=uce(mt,$e.onMouseLeave),le||(qe.onMouseOver=Ye,qe.onMouseLeave=mt)),L||($e.onFocus=uce(dt,$e.onFocus),$e.onBlur=uce(ur,$e.onBlur),le||(qe.onFocus=dt,qe.onBlur=ur));const yt=Y.useMemo(()=>{var jn;let br=[{name:"arrow",enabled:!!je,options:{element:je,padding:4}}];return(jn=X.popperOptions)!=null&&jn.modifiers&&(br=br.concat(X.popperOptions.modifiers)),Ce({},X.popperOptions,{modifiers:br})},[je,X]),Ze=Ce({},_,{isRtl:Me,arrow:C,disableInteractive:le,placement:Q,PopperComponentProp:ee,touch:me.current}),ot=hMr(Ze),yn=(r=(a=J.popper)!=null?a:k.Popper)!=null?r:fMr,vt=(o=(s=(l=J.transition)!=null?l:k.Transition)!=null?s:ie)!=null?o:t0e,Gt=(c=(u=J.tooltip)!=null?u:k.Tooltip)!=null?c:pMr,ft=(d=(h=J.arrow)!=null?h:k.Arrow)!=null?d:mMr,rt=jF(yn,Ce({},X,(f=te.popper)!=null?f:P.popper,{className:nr(ot.popper,X==null?void 0:X.className,(p=(m=te.popper)!=null?m:P.popper)==null?void 0:p.className)}),Ze),Pt=jF(vt,Ce({},he,(g=te.transition)!=null?g:P.transition),Ze),Yt=jF(Gt,Ce({},(v=te.tooltip)!=null?v:P.tooltip,{className:nr(ot.tooltip,(A=(y=te.tooltip)!=null?y:P.tooltip)==null?void 0:A.className)}),Ze),Un=jF(ft,Ce({},(S=te.arrow)!=null?S:P.arrow,{className:nr(ot.arrow,(x=(w=te.arrow)!=null?w:P.arrow)==null?void 0:x.className)}),Ze);return E.jsxs(Y.Fragment,{children:[Y.cloneElement(ce,$e),E.jsx(yn,Ce({as:ee??nEe,placement:Q,anchorEl:j?{getBoundingClientRect:()=>({top:yQ.y,left:yQ.x,right:yQ.x,bottom:yQ.y,width:0,height:0})}:Be,popperRef:On,open:Be?ge:!1,id:De,transition:!0},qe,rt,{popperOptions:yt,children:({TransitionProps:jn})=>E.jsx(vt,Ce({timeout:Ee.transitions.duration.shorter},jn,Pt,{children:E.jsxs(Gt,Ce({},Yt,{children:[ne,C?E.jsx(ft,Ce({},Un,{ref:ye})):null]}))}))}))]})}),BYt=gMr,vMr=Y.createContext({}),cEe=vMr,AMr=Y.createContext({}),RXe=AMr;function yMr(t){return mi("MuiStep",t)}ei("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const bMr=["active","children","className","component","completed","disabled","expanded","index","last"],xMr=t=>{const{classes:e,orientation:n,alternativeLabel:r,completed:a}=t;return gi({root:["root",n,r&&"alternativeLabel",a&&"completed"]},yMr,e)},EMr=En("div",{name:"MuiStep",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel,n.completed&&e.completed]}})(({ownerState:t})=>Ce({},t.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})),SMr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiStep"}),{active:a,children:o,className:s,component:l="div",completed:c,disabled:u,expanded:d=!1,index:h,last:f}=r,p=Wn(r,bMr),{activeStep:m,connector:g,alternativeLabel:v,orientation:A,nonLinear:y}=Y.useContext(cEe);let[S=!1,x=!1,w=!1]=[a,c,u];m===h?S=a!==void 0?a:!0:!y&&m>h?x=c!==void 0?c:!0:!y&&m<h&&(w=u!==void 0?u:!0);const _=Y.useMemo(()=>({index:h,last:f,expanded:d,icon:h+1,active:S,completed:x,disabled:w}),[h,f,d,S,x,w]),C=Ce({},r,{active:S,orientation:A,alternativeLabel:v,completed:x,disabled:w,expanded:d,component:l}),R=xMr(C),k=E.jsxs(EMr,Ce({as:l,className:nr(R.root,s),ref:n,ownerState:C},p,{children:[g&&v&&h!==0?g:null,o]}));return E.jsx(RXe.Provider,{value:_,children:g&&!v&&h!==0?E.jsxs(Y.Fragment,{children:[g,k]}):k})}),wMr=SMr,_Mr=xl(E.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),TMr=xl(E.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function CMr(t){return mi("MuiStepIcon",t)}const kMr=ei("MuiStepIcon",["root","active","completed","error","text"]),u5e=kMr;var Zvt;const RMr=["active","className","completed","error","icon"],MMr=t=>{const{classes:e,active:n,completed:r,error:a}=t;return gi({root:["root",n&&"active",r&&"completed",a&&"error"],text:["text"]},CMr,e)},d5e=En(Jje,{name:"MuiStepIcon",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,[`&.${u5e.completed}`]:{color:(t.vars||t).palette.primary.main},[`&.${u5e.active}`]:{color:(t.vars||t).palette.primary.main},[`&.${u5e.error}`]:{color:(t.vars||t).palette.error.main}})),NMr=En("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(t,e)=>e.text})(({theme:t})=>({fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily})),IMr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiStepIcon"}),{active:a=!1,className:o,completed:s=!1,error:l=!1,icon:c}=r,u=Wn(r,RMr),d=Ce({},r,{active:a,completed:s,error:l}),h=MMr(d);if(typeof c=="number"||typeof c=="string"){const f=nr(o,h.root);return l?E.jsx(d5e,Ce({as:TMr,className:f,ref:n,ownerState:d},u)):s?E.jsx(d5e,Ce({as:_Mr,className:f,ref:n,ownerState:d},u)):E.jsxs(d5e,Ce({className:f,ref:n,ownerState:d},u,{children:[Zvt||(Zvt=E.jsx("circle",{cx:"12",cy:"12",r:"12"})),E.jsx(NMr,{className:h.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:c})]}))}return c}),DYt=IMr;function PMr(t){return mi("MuiStepLabel",t)}const OMr=ei("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),D3=OMr,LMr=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],BMr=t=>{const{classes:e,orientation:n,active:r,completed:a,error:o,disabled:s,alternativeLabel:l}=t;return gi({root:["root",n,o&&"error",s&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",a&&"completed",o&&"error",s&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",a&&"completed",o&&"error",s&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},PMr,e)},DMr=En("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation]]}})(({ownerState:t})=>Ce({display:"flex",alignItems:"center",[`&.${D3.alternativeLabel}`]:{flexDirection:"column"},[`&.${D3.disabled}`]:{cursor:"default"}},t.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),$Mr=En("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(t,e)=>e.label})(({theme:t})=>Ce({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),[`&.${D3.active}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${D3.completed}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${D3.alternativeLabel}`]:{marginTop:16},[`&.${D3.error}`]:{color:(t.vars||t).palette.error.main}})),FMr=En("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(t,e)=>e.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${D3.alternativeLabel}`]:{paddingRight:0}})),jMr=En("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>({width:"100%",color:(t.vars||t).palette.text.secondary,[`&.${D3.alternativeLabel}`]:{textAlign:"center"}})),$Yt=Y.forwardRef(function(e,n){var r;const a=Vi({props:e,name:"MuiStepLabel"}),{children:o,className:s,componentsProps:l={},error:c=!1,icon:u,optional:d,slotProps:h={},StepIconComponent:f,StepIconProps:p}=a,m=Wn(a,LMr),{alternativeLabel:g,orientation:v}=Y.useContext(cEe),{active:A,disabled:y,completed:S,icon:x}=Y.useContext(RXe),w=u||x;let _=f;w&&!_&&(_=DYt);const C=Ce({},a,{active:A,alternativeLabel:g,completed:S,disabled:y,error:c,orientation:v}),R=BMr(C),k=(r=h.label)!=null?r:l.label;return E.jsxs(DMr,Ce({className:nr(R.root,s),ref:n,ownerState:C},m,{children:[w||_?E.jsx(FMr,{className:R.iconContainer,ownerState:C,children:E.jsx(_,Ce({completed:S,active:A,error:c,icon:w},p))}):null,E.jsxs(jMr,{className:R.labelContainer,ownerState:C,children:[o?E.jsx($Mr,Ce({ownerState:C},k,{className:nr(R.label,k==null?void 0:k.className),children:o})):null,d]})]}))});$Yt.muiName="StepLabel";const HMr=$Yt;function UMr(t){return mi("MuiStepConnector",t)}ei("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const zMr=["className"],GMr=t=>{const{classes:e,orientation:n,alternativeLabel:r,active:a,completed:o,disabled:s}=t,l={root:["root",n,r&&"alternativeLabel",a&&"active",o&&"completed",s&&"disabled"],line:["line",`line${fn(n)}`]};return gi(l,UMr,e)},VMr=En("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel,n.completed&&e.completed]}})(({ownerState:t})=>Ce({flex:"1 1 auto"},t.orientation==="vertical"&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),KMr=En("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.line,e[`line${fn(n.orientation)}`]]}})(({ownerState:t,theme:e})=>{const n=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return Ce({display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:n},t.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},t.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),WMr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiStepConnector"}),{className:a}=r,o=Wn(r,zMr),{alternativeLabel:s,orientation:l="horizontal"}=Y.useContext(cEe),{active:c,disabled:u,completed:d}=Y.useContext(RXe),h=Ce({},r,{alternativeLabel:s,orientation:l,active:c,completed:d,disabled:u}),f=GMr(h);return E.jsx(VMr,Ce({className:nr(f.root,a),ref:n,ownerState:h},o,{children:E.jsx(KMr,{className:f.line,ownerState:h})}))}),QMr=WMr;function qMr(t){return mi("MuiStepper",t)}ei("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const YMr=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],JMr=t=>{const{orientation:e,alternativeLabel:n,classes:r}=t;return gi({root:["root",e,n&&"alternativeLabel"]},qMr,r)},ZMr=En("div",{name:"MuiStepper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel]}})(({ownerState:t})=>Ce({display:"flex"},t.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},t.orientation==="vertical"&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})),XMr=E.jsx(QMr,{}),eNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:o=!1,children:s,className:l,component:c="div",connector:u=XMr,nonLinear:d=!1,orientation:h="horizontal"}=r,f=Wn(r,YMr),p=Ce({},r,{alternativeLabel:o,orientation:h,component:c}),m=JMr(p),g=Y.Children.toArray(s).filter(Boolean),v=g.map((y,S)=>Y.cloneElement(y,Ce({index:S,last:S+1===g.length},y.props))),A=Y.useMemo(()=>({activeStep:a,alternativeLabel:o,connector:u,nonLinear:d,orientation:h}),[a,o,u,d,h]);return E.jsx(cEe.Provider,{value:A,children:E.jsx(ZMr,Ce({as:c,ownerState:p,className:nr(m.root,l),ref:n},f,{children:v}))})}),tNr=eNr;function nNr(t){return mi("MuiTab",t)}const rNr=ei("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),KN=rNr,iNr=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],aNr=t=>{const{classes:e,textColor:n,fullWidth:r,wrapped:a,icon:o,label:s,selected:l,disabled:c}=t,u={root:["root",o&&s&&"labelIcon",`textColor${fn(n)}`,r&&"fullWidth",a&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return gi(u,nNr,e)},oNr=En(kw,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.label&&n.icon&&e.labelIcon,e[`textColor${fn(n.textColor)}`],n.fullWidth&&e.fullWidth,n.wrapped&&e.wrapped,{[`& .${KN.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>Ce({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${KN.iconWrapper}`]:Ce({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${KN.selected}`]:{opacity:1},[`&.${KN.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${KN.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${KN.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${KN.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${KN.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),sNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:h,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:v,textColor:A="inherit",value:y,wrapped:S=!1}=r,x=Wn(r,iNr),w=Ce({},r,{disabled:o,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:u,label:!!h,fullWidth:l,textColor:A,wrapped:S}),_=aNr(w),C=c&&h&&Y.isValidElement(c)?Y.cloneElement(c,{className:nr(_.iconWrapper,c.props.className)}):c,R=P=>{!g&&f&&f(P,y),p&&p(P)},k=P=>{v&&!g&&f&&f(P,y),m&&m(P)};return E.jsxs(oNr,Ce({focusRipple:!s,className:nr(_.root,a),ref:n,role:"tab","aria-selected":g,disabled:o,onClick:R,onFocus:k,ownerState:w,tabIndex:g?0:-1},x,{children:[u==="top"||u==="start"?E.jsxs(Y.Fragment,{children:[C,h]}):E.jsxs(Y.Fragment,{children:[h,C]}),d]}))}),lNr=sNr,cNr=Y.createContext(),FYt=cNr;function uNr(t){return mi("MuiTable",t)}ei("MuiTable",["root","stickyHeader"]);const dNr=["className","component","padding","size","stickyHeader"],hNr=t=>{const{classes:e,stickyHeader:n}=t;return gi({root:["root",n&&"stickyHeader"]},uNr,e)},fNr=En("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.stickyHeader&&e.stickyHeader]}})(({theme:t,ownerState:e})=>Ce({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ce({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},e.stickyHeader&&{borderCollapse:"separate"})),Xvt="table",pNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTable"}),{className:a,component:o=Xvt,padding:s="normal",size:l="medium",stickyHeader:c=!1}=r,u=Wn(r,dNr),d=Ce({},r,{component:o,padding:s,size:l,stickyHeader:c}),h=hNr(d),f=Y.useMemo(()=>({padding:s,size:l,stickyHeader:c}),[s,l,c]);return E.jsx(FYt.Provider,{value:f,children:E.jsx(fNr,Ce({as:o,role:o===Xvt?null:"table",ref:n,className:nr(h.root,a),ownerState:d},u))})}),Mte=pNr,mNr=Y.createContext(),tae=mNr;function gNr(t){return mi("MuiTableBody",t)}ei("MuiTableBody",["root"]);const vNr=["className","component"],ANr=t=>{const{classes:e}=t;return gi({root:["root"]},gNr,e)},yNr=En("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),bNr={variant:"body"},e0t="tbody",xNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTableBody"}),{className:a,component:o=e0t}=r,s=Wn(r,vNr),l=Ce({},r,{component:o}),c=ANr(l);return E.jsx(tae.Provider,{value:bNr,children:E.jsx(yNr,Ce({className:nr(c.root,a),as:o,ref:n,role:o===e0t?null:"rowgroup",ownerState:l},s))})}),uEe=xNr;function ENr(t){return mi("MuiTableCell",t)}const SNr=ei("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),wNr=SNr,_Nr=["align","className","component","padding","scope","size","sortDirection","variant"],TNr=t=>{const{classes:e,variant:n,align:r,padding:a,size:o,stickyHeader:s}=t,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${fn(r)}`,a!=="normal"&&`padding${fn(a)}`,`size${fn(o)}`]};return gi(l,ENr,e)},CNr=En("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${fn(n.size)}`],n.padding!=="normal"&&e[`padding${fn(n.padding)}`],n.align!=="inherit"&&e[`align${fn(n.align)}`],n.stickyHeader&&e.stickyHeader]}})(({theme:t,ownerState:e})=>Ce({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid
    ${t.palette.mode==="light"?wte(ss(t.palette.divider,1),.88):Ste(ss(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},e.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},e.variant==="body"&&{color:(t.vars||t).palette.text.primary},e.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},e.size==="small"&&{padding:"6px 16px",[`&.${wNr.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},e.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},e.padding==="none"&&{padding:0},e.align==="left"&&{textAlign:"left"},e.align==="center"&&{textAlign:"center"},e.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},e.align==="justify"&&{textAlign:"justify"},e.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),kNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTableCell"}),{align:a="inherit",className:o,component:s,padding:l,scope:c,size:u,sortDirection:d,variant:h}=r,f=Wn(r,_Nr),p=Y.useContext(FYt),m=Y.useContext(tae),g=m&&m.variant==="head";let v;s?v=s:v=g?"th":"td";let A=c;v==="td"?A=void 0:!A&&g&&(A="col");const y=h||m&&m.variant,S=Ce({},r,{align:a,component:v,padding:l||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:d,stickyHeader:y==="head"&&p&&p.stickyHeader,variant:y}),x=TNr(S);let w=null;return d&&(w=d==="asc"?"ascending":"descending"),E.jsx(CNr,Ce({as:v,ref:n,className:nr(x.root,o),"aria-sort":w,scope:A,ownerState:S},f))}),mv=kNr;function RNr(t){return mi("MuiTableContainer",t)}ei("MuiTableContainer",["root"]);const MNr=["className","component"],NNr=t=>{const{classes:e}=t;return gi({root:["root"]},RNr,e)},INr=En("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),PNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTableContainer"}),{className:a,component:o="div"}=r,s=Wn(r,MNr),l=Ce({},r,{component:o}),c=NNr(l);return E.jsx(INr,Ce({ref:n,as:o,className:nr(c.root,a),ownerState:l},s))}),jYt=PNr;function ONr(t){return mi("MuiTableFooter",t)}ei("MuiTableFooter",["root"]);const LNr=["className","component"],BNr=t=>{const{classes:e}=t;return gi({root:["root"]},ONr,e)},DNr=En("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-footer-group"}),$Nr={variant:"footer"},t0t="tfoot",FNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTableFooter"}),{className:a,component:o=t0t}=r,s=Wn(r,LNr),l=Ce({},r,{component:o}),c=BNr(l);return E.jsx(tae.Provider,{value:$Nr,children:E.jsx(DNr,Ce({as:o,className:nr(c.root,a),ref:n,role:o===t0t?null:"rowgroup",ownerState:l},s))})}),jNr=FNr;function HNr(t){return mi("MuiTableHead",t)}ei("MuiTableHead",["root"]);const UNr=["className","component"],zNr=t=>{const{classes:e}=t;return gi({root:["root"]},HNr,e)},GNr=En("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),VNr={variant:"head"},n0t="thead",KNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTableHead"}),{className:a,component:o=n0t}=r,s=Wn(r,UNr),l=Ce({},r,{component:o}),c=zNr(l);return E.jsx(tae.Provider,{value:VNr,children:E.jsx(GNr,Ce({as:o,className:nr(c.root,a),ref:n,role:o===n0t?null:"rowgroup",ownerState:l},s))})}),dEe=KNr;function WNr(t){return mi("MuiToolbar",t)}ei("MuiToolbar",["root","gutters","regular","dense"]);const QNr=["className","component","disableGutters","variant"],qNr=t=>{const{classes:e,disableGutters:n,variant:r}=t;return gi({root:["root",!n&&"gutters",r]},WNr,e)},YNr=En("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})(({theme:t,ownerState:e})=>Ce({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:t,ownerState:e})=>e.variant==="regular"&&t.mixins.toolbar),JNr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:s=!1,variant:l="regular"}=r,c=Wn(r,QNr),u=Ce({},r,{component:o,disableGutters:s,variant:l}),d=qNr(u);return E.jsx(YNr,Ce({as:o,className:nr(d.root,a),ref:n,ownerState:u},c))}),ZNr=JNr;function XNr(t){return mi("MuiTableRow",t)}const eIr=ei("MuiTableRow",["root","selected","hover","head","footer"]),r0t=eIr,tIr=["className","component","hover","selected"],nIr=t=>{const{classes:e,selected:n,hover:r,head:a,footer:o}=t;return gi({root:["root",n&&"selected",r&&"hover",a&&"head",o&&"footer"]},XNr,e)},rIr=En("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.head&&e.head,n.footer&&e.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${r0t.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${r0t.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ss(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ss(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),i0t="tr",iIr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTableRow"}),{className:a,component:o=i0t,hover:s=!1,selected:l=!1}=r,c=Wn(r,tIr),u=Y.useContext(tae),d=Ce({},r,{component:o,hover:s,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),h=nIr(d);return E.jsx(rIr,Ce({as:o,ref:n,className:nr(h.root,a),role:o===i0t?null:"row",ownerState:d},c))}),Mx=iIr,aIr=xl(E.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function oIr(t){return mi("MuiTableSortLabel",t)}const sIr=ei("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),h5e=sIr,lIr=["active","children","className","direction","hideSortIcon","IconComponent"],cIr=t=>{const{classes:e,direction:n,active:r}=t,a={root:["root",r&&"active"],icon:["icon",`iconDirection${fn(n)}`]};return gi(a,oIr,e)},uIr=En(kw,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.active&&e.active]}})(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${h5e.icon}`]:{opacity:.5}},[`&.${h5e.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${h5e.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}})),dIr=En("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,e[`iconDirection${fn(n.direction)}`]]}})(({theme:t,ownerState:e})=>Ce({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},e.direction==="desc"&&{transform:"rotate(0deg)"},e.direction==="asc"&&{transform:"rotate(180deg)"})),hIr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:s,direction:l="asc",hideSortIcon:c=!1,IconComponent:u=aIr}=r,d=Wn(r,lIr),h=Ce({},r,{active:a,direction:l,hideSortIcon:c,IconComponent:u}),f=cIr(h);return E.jsxs(uIr,Ce({className:nr(f.root,s),component:"span",disableRipple:!0,ownerState:h,ref:n},d,{children:[o,c&&!a?null:E.jsx(dIr,{as:u,className:nr(f.icon),ownerState:h})]}))}),fIr=hIr;function pIr(t){return mi("MuiTextField",t)}ei("MuiTextField",["root"]);const mIr=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],gIr={standard:SYt,filled:AYt,outlined:lEe},vIr=t=>{const{classes:e}=t;return gi({root:["root"]},pIr,e)},AIr=En(eae,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),yIr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:s,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:h=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:v,inputProps:A,InputProps:y,inputRef:S,label:x,maxRows:w,minRows:_,multiline:C=!1,name:R,onBlur:k,onChange:P,onFocus:N,placeholder:L,required:I=!1,rows:b,select:T=!1,SelectProps:M,type:D,value:B,variant:j="outlined"}=r,H=Wn(r,mIr),U=Ce({},r,{autoFocus:o,color:c,disabled:d,error:h,fullWidth:p,multiline:C,required:I,select:T,variant:j}),$=vIr(U),z={};j==="outlined"&&(v&&typeof v.shrink<"u"&&(z.notched=v.shrink),z.label=x),T&&((!M||!M.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const Z=O8(g),K=m&&Z?`${Z}-helper-text`:void 0,Q=x&&Z?`${Z}-label`:void 0,ee=gIr[j],X=E.jsx(ee,Ce({"aria-describedby":K,autoComplete:a,autoFocus:o,defaultValue:u,fullWidth:p,multiline:C,name:R,rows:b,maxRows:w,minRows:_,type:D,value:B,id:Z,inputRef:S,onBlur:k,onChange:P,onFocus:N,placeholder:L,inputProps:A},z,y));return E.jsxs(AIr,Ce({className:nr($.root,l),disabled:d,error:h,fullWidth:p,ref:n,required:I,color:c,variant:j,ownerState:U},H,{children:[x!=null&&x!==""&&E.jsx(xCr,Ce({htmlFor:Z,id:Q},v,{children:x})),T?E.jsx(OYt,Ce({"aria-describedby":K,id:Z,labelId:Q,value:B,input:X},M,{children:s})):X,m&&E.jsx(P2r,Ce({id:K},f,{children:m}))]}))}),lHe=yIr;function bIr(t){return mi("MuiToggleButton",t)}const xIr=ei("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),UF=xIr,EIr=Y.createContext({}),HYt=EIr,SIr=Y.createContext(void 0),UYt=SIr;function wIr(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.indexOf(t)>=0:t===e}const _Ir=["value"],TIr=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],CIr=t=>{const{classes:e,fullWidth:n,selected:r,disabled:a,size:o,color:s}=t,l={root:["root",r&&"selected",a&&"disabled",n&&"fullWidth",`size${fn(o)}`,s]};return gi(l,bIr,e)},kIr=En(kw,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`size${fn(n.size)}`]]}})(({theme:t,ownerState:e})=>{let n=e.color==="standard"?t.palette.text.primary:t.palette[e.color].main,r;return t.vars&&(n=e.color==="standard"?t.vars.palette.text.primary:t.vars.palette[e.color].main,r=e.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[e.color].mainChannel),Ce({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},e.fullWidth&&{width:"100%"},{[`&.${UF.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:rZ(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${UF.selected}`]:{color:n,backgroundColor:t.vars?`rgba(${r} / ${t.vars.palette.action.selectedOpacity})`:rZ(n,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${r} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:rZ(n,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${r} / ${t.vars.palette.action.selectedOpacity})`:rZ(n,t.palette.action.selectedOpacity)}}}},e.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},e.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),RIr=Y.forwardRef(function(e,n){const r=Y.useContext(HYt),{value:a}=r,o=Wn(r,_Ir),s=Y.useContext(UYt),l=Fxe(Ce({},o,{selected:wIr(e.value,a)}),e),c=Vi({props:l,name:"MuiToggleButton"}),{children:u,className:d,color:h="standard",disabled:f=!1,disableFocusRipple:p=!1,fullWidth:m=!1,onChange:g,onClick:v,selected:A,size:y="medium",value:S}=c,x=Wn(c,TIr),w=Ce({},c,{color:h,disabled:f,disableFocusRipple:p,fullWidth:m,size:y}),_=CIr(w),C=k=>{v&&(v(k,S),k.defaultPrevented)||g&&g(k,S)},R=s||"";return E.jsx(kIr,Ce({className:nr(o.className,_.root,d,R),disabled:f,focusRipple:!p,ref:n,onClick:C,onChange:g,value:S,ownerState:w,"aria-pressed":A},x,{children:u}))}),Xs=RIr;function MIr(t){return mi("MuiToggleButtonGroup",t)}const NIr=ei("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),ad=NIr,IIr=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],PIr=t=>{const{classes:e,orientation:n,fullWidth:r,disabled:a}=t,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${fn(n)}`,a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return gi(o,MIr,e)},OIr=En("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${ad.grouped}`]:e.grouped},{[`& .${ad.grouped}`]:e[`grouped${fn(n.orientation)}`]},{[`& .${ad.firstButton}`]:e.firstButton},{[`& .${ad.lastButton}`]:e.lastButton},{[`& .${ad.middleButton}`]:e.middleButton},e.root,n.orientation==="vertical"&&e.vertical,n.fullWidth&&e.fullWidth]}})(({ownerState:t,theme:e})=>Ce({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${ad.grouped}`]:Ce({},t.orientation==="horizontal"?{[`&.${ad.selected} + .${ad.grouped}.${ad.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${ad.selected} + .${ad.grouped}.${ad.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${ad.firstButton},& .${ad.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ad.lastButton},& .${ad.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${ad.firstButton},& .${ad.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${ad.lastButton},& .${ad.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${ad.lastButton}.${UF.disabled},& .${ad.middleButton}.${UF.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${ad.lastButton}.${UF.disabled},& .${ad.middleButton}.${UF.disabled}`]:{borderTop:"1px solid transparent"}})),LIr=Y.forwardRef(function(e,n){const r=Vi({props:e,name:"MuiToggleButtonGroup"}),{children:a,className:o,color:s="standard",disabled:l=!1,exclusive:c=!1,fullWidth:u=!1,onChange:d,orientation:h="horizontal",size:f="medium",value:p}=r,m=Wn(r,IIr),g=Ce({},r,{disabled:l,fullWidth:u,orientation:h,size:f}),v=PIr(g),A=Y.useCallback((C,R)=>{if(!d)return;const k=p&&p.indexOf(R);let P;p&&k>=0?(P=p.slice(),P.splice(k,1)):P=p?p.concat(R):[R],d(C,P)},[d,p]),y=Y.useCallback((C,R)=>{d&&d(C,p===R?null:R)},[d,p]),S=Y.useMemo(()=>({className:v.grouped,onChange:c?y:A,value:p,size:f,fullWidth:u,color:s,disabled:l}),[v.grouped,c,y,A,p,f,u,s,l]),x=aqt(a),w=x.length,_=C=>{const R=C===0,k=C===w-1;return R&&k?"":R?v.firstButton:k?v.lastButton:v.middleButton};return E.jsx(OIr,Ce({role:"group",className:nr(v.root,o),ref:n,ownerState:g},m,{children:E.jsx(HYt.Provider,{value:S,children:x.map((C,R)=>E.jsx(UYt.Provider,{value:_(R),children:C},R))})}))}),eA=LIr;var Co={},BIr=t=>encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),zYt="%[a-f0-9]{2}",a0t=new RegExp("("+zYt+")|([^%]+?)","gi"),o0t=new RegExp("("+zYt+")+","gi");function cHe(t,e){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],cHe(n),cHe(r))}function DIr(t){try{return decodeURIComponent(t)}catch{for(var e=t.match(a0t)||[],n=1;n<e.length;n++)t=cHe(e,n).join(""),e=t.match(a0t)||[];return t}}function $Ir(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=o0t.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch{var r=DIr(n[0]);r!==n[0]&&(e[n[0]]=r)}n=o0t.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),o=0;o<a.length;o++){var s=a[o];t=t.replace(new RegExp(s,"g"),e[s])}return t}var FIr=function(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch{return $Ir(t)}},jIr=(t,e)=>{if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[t];const n=t.indexOf(e);return n===-1?[t]:[t.slice(0,n),t.slice(n+e.length)]},HIr=function(t,e){for(var n={},r=Object.keys(t),a=Array.isArray(e),o=0;o<r.length;o++){var s=r[o],l=t[s];(a?e.indexOf(s)!==-1:e(s,l,t))&&(n[s]=l)}return n};(function(t){const e=BIr,n=FIr,r=jIr,a=HIr,o=y=>y==null,s=Symbol("encodeFragmentIdentifier");function l(y){switch(y.arrayFormat){case"index":return S=>(x,w)=>{const _=x.length;return w===void 0||y.skipNull&&w===null||y.skipEmptyString&&w===""?x:w===null?[...x,[d(S,y),"[",_,"]"].join("")]:[...x,[d(S,y),"[",d(_,y),"]=",d(w,y)].join("")]};case"bracket":return S=>(x,w)=>w===void 0||y.skipNull&&w===null||y.skipEmptyString&&w===""?x:w===null?[...x,[d(S,y),"[]"].join("")]:[...x,[d(S,y),"[]=",d(w,y)].join("")];case"colon-list-separator":return S=>(x,w)=>w===void 0||y.skipNull&&w===null||y.skipEmptyString&&w===""?x:w===null?[...x,[d(S,y),":list="].join("")]:[...x,[d(S,y),":list=",d(w,y)].join("")];case"comma":case"separator":case"bracket-separator":{const S=y.arrayFormat==="bracket-separator"?"[]=":"=";return x=>(w,_)=>_===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?w:(_=_===null?"":_,w.length===0?[[d(x,y),S,d(_,y)].join("")]:[[w,d(_,y)].join(y.arrayFormatSeparator)])}default:return S=>(x,w)=>w===void 0||y.skipNull&&w===null||y.skipEmptyString&&w===""?x:w===null?[...x,d(S,y)]:[...x,[d(S,y),"=",d(w,y)].join("")]}}function c(y){let S;switch(y.arrayFormat){case"index":return(x,w,_)=>{if(S=/\[(\d*)\]$/.exec(x),x=x.replace(/\[\d*\]$/,""),!S){_[x]=w;return}_[x]===void 0&&(_[x]={}),_[x][S[1]]=w};case"bracket":return(x,w,_)=>{if(S=/(\[\])$/.exec(x),x=x.replace(/\[\]$/,""),!S){_[x]=w;return}if(_[x]===void 0){_[x]=[w];return}_[x]=[].concat(_[x],w)};case"colon-list-separator":return(x,w,_)=>{if(S=/(:list)$/.exec(x),x=x.replace(/:list$/,""),!S){_[x]=w;return}if(_[x]===void 0){_[x]=[w];return}_[x]=[].concat(_[x],w)};case"comma":case"separator":return(x,w,_)=>{const C=typeof w=="string"&&w.includes(y.arrayFormatSeparator),R=typeof w=="string"&&!C&&h(w,y).includes(y.arrayFormatSeparator);w=R?h(w,y):w;const k=C||R?w.split(y.arrayFormatSeparator).map(P=>h(P,y)):w===null?w:h(w,y);_[x]=k};case"bracket-separator":return(x,w,_)=>{const C=/(\[\])$/.test(x);if(x=x.replace(/\[\]$/,""),!C){_[x]=w&&h(w,y);return}const R=w===null?[]:w.split(y.arrayFormatSeparator).map(k=>h(k,y));if(_[x]===void 0){_[x]=R;return}_[x]=[].concat(_[x],R)};default:return(x,w,_)=>{if(_[x]===void 0){_[x]=w;return}_[x]=[].concat(_[x],w)}}}function u(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function d(y,S){return S.encode?S.strict?e(y):encodeURIComponent(y):y}function h(y,S){return S.decode?n(y):y}function f(y){return Array.isArray(y)?y.sort():typeof y=="object"?f(Object.keys(y)).sort((S,x)=>Number(S)-Number(x)).map(S=>y[S]):y}function p(y){const S=y.indexOf("#");return S!==-1&&(y=y.slice(0,S)),y}function m(y){let S="";const x=y.indexOf("#");return x!==-1&&(S=y.slice(x)),S}function g(y){y=p(y);const S=y.indexOf("?");return S===-1?"":y.slice(S+1)}function v(y,S){return S.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):S.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function A(y,S){S=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},S),u(S.arrayFormatSeparator);const x=c(S),w=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return w;for(const _ of y.split("&")){if(_==="")continue;let[C,R]=r(S.decode?_.replace(/\+/g," "):_,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(S.arrayFormat)?R:h(R,S),x(h(C,S),R,w)}for(const _ of Object.keys(w)){const C=w[_];if(typeof C=="object"&&C!==null)for(const R of Object.keys(C))C[R]=v(C[R],S);else w[_]=v(C,S)}return S.sort===!1?w:(S.sort===!0?Object.keys(w).sort():Object.keys(w).sort(S.sort)).reduce((_,C)=>{const R=w[C];return R&&typeof R=="object"&&!Array.isArray(R)?_[C]=f(R):_[C]=R,_},Object.create(null))}t.extract=g,t.parse=A,t.stringify=(y,S)=>{if(!y)return"";S=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},S),u(S.arrayFormatSeparator);const x=R=>S.skipNull&&o(y[R])||S.skipEmptyString&&y[R]==="",w=l(S),_={};for(const R of Object.keys(y))x(R)||(_[R]=y[R]);const C=Object.keys(_);return S.sort!==!1&&C.sort(S.sort),C.map(R=>{const k=y[R];return k===void 0?"":k===null?d(R,S):Array.isArray(k)?k.length===0&&S.arrayFormat==="bracket-separator"?d(R,S)+"[]":k.reduce(w(R),[]).join("&"):d(R,S)+"="+d(k,S)}).filter(R=>R.length>0).join("&")},t.parseUrl=(y,S)=>{S=Object.assign({decode:!0},S);const[x,w]=r(y,"#");return Object.assign({url:x.split("?")[0]||"",query:A(g(y),S)},S&&S.parseFragmentIdentifier&&w?{fragmentIdentifier:h(w,S)}:{})},t.stringifyUrl=(y,S)=>{S=Object.assign({encode:!0,strict:!0,[s]:!0},S);const x=p(y.url).split("?")[0]||"",w=t.extract(y.url),_=t.parse(w,{sort:!1}),C=Object.assign(_,y.query);let R=t.stringify(C,S);R&&(R=`?${R}`);let k=m(y.url);return y.fragmentIdentifier&&(k=`#${S[s]?d(y.fragmentIdentifier,S):y.fragmentIdentifier}`),`${x}${R}${k}`},t.pick=(y,S,x)=>{x=Object.assign({parseFragmentIdentifier:!0,[s]:!1},x);const{url:w,query:_,fragmentIdentifier:C}=t.parseUrl(y,x);return t.stringifyUrl({url:w,query:a(_,S),fragmentIdentifier:C},x)},t.exclude=(y,S,x)=>{const w=Array.isArray(S)?_=>!S.includes(_):(_,C)=>!S(_,C);return t.pick(y,w,x)}})(Co);const UIr=Li(Co);var r0e={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */r0e.exports;(function(t,e){(function(){var n,r="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,f=2,p=4,m=1,g=2,v=1,A=2,y=4,S=8,x=16,w=32,_=64,C=128,R=256,k=512,P=30,N="...",L=800,I=16,b=1,T=2,M=3,D=1/0,B=9007199254740991,j=17976931348623157e292,H=0/0,U=4294967295,$=U-1,z=U>>>1,Z=[["ary",C],["bind",v],["bindKey",A],["curry",S],["curryRight",x],["flip",k],["partial",w],["partialRight",_],["rearg",R]],K="[object Arguments]",Q="[object Array]",ee="[object AsyncFunction]",X="[object Boolean]",te="[object Date]",J="[object DOMException]",ne="[object Error]",ie="[object Function]",he="[object GeneratorFunction]",de="[object Map]",ce="[object Number]",Ee="[object Null]",Me="[object Object]",Be="[object Promise]",ze="[object Proxy]",je="[object RegExp]",ye="[object Set]",me="[object String]",le="[object Symbol]",pe="[object Undefined]",Ne="[object WeakMap]",_e="[object WeakSet]",ue="[object ArrayBuffer]",se="[object DataView]",oe="[object Float32Array]",ge="[object Float64Array]",De="[object Int8Array]",Fe="[object Int16Array]",Se="[object Int32Array]",Xe="[object Uint8Array]",Oe="[object Uint8ClampedArray]",Ye="[object Uint16Array]",mt="[object Uint32Array]",ut=/\b__p \+= '';/g,lt=/\b(__p \+=) '' \+/g,pn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,sn=/&(?:amp|lt|gt|quot|#39);/g,un=/[&<>"']/g,ur=RegExp(sn.source),dt=RegExp(un.source),xt=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,Kt=/<%=([\s\S]+?)%>/g,rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/,an=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,on=/[\\^$.*+?()[\]{}|]/g,dr=RegExp(on.source),$e=/^\s+/,qe=/\s/,yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,yn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vt=/[()=,{}\[\]\/\s]/,Gt=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,Yt=/^0b[01]+$/i,Un=/^\[object .+?Constructor\]$/,jn=/^0o[0-7]+$/i,br=/^(?:0|[1-9]\d*)$/,si=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qi=/($^)/,st=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Bt="\\u0300-\\u036f",dn="\\ufe20-\\ufe2f",tn="\\u20d0-\\u20ff",vn=Bt+dn+tn,kn="\\u2700-\\u27bf",Mn="a-z\\xdf-\\xf6\\xf8-\\xff",Nr="\\xac\\xb1\\xd7\\xf7",na="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ar="\\u2000-\\u206f",qi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ge="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",Je=Nr+na+Ar+qi,Rt="['’]",Dt="["+wt+"]",It="["+Je+"]",ln="["+vn+"]",Hn="\\d+",Zn="["+kn+"]",Jn="["+Mn+"]",Xn="[^"+wt+Je+Hn+kn+Mn+Ge+"]",zr="\\ud83c[\\udffb-\\udfff]",ua="(?:"+ln+"|"+zr+")",Ta="[^"+wt+"]",Qa="(?:\\ud83c[\\udde6-\\uddff]){2}",hs="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+Ge+"]",nd="\\u200d",wm="(?:"+Jn+"|"+Xn+")",uf="(?:"+$a+"|"+Xn+")",b1="(?:"+Rt+"(?:d|ll|m|re|s|t|ve))?",_m="(?:"+Rt+"(?:D|LL|M|RE|S|T|VE))?",sA=ua+"?",x1="["+ht+"]?",hb="(?:"+nd+"(?:"+[Ta,Qa,hs].join("|")+")"+x1+sA+")*",Sh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lA=x1+sA+hb,xg="(?:"+[Zn,Qa,hs].join("|")+")"+lA,Fv="(?:"+[Ta+ln+"?",ln,Qa,hs,Dt].join("|")+")",fb=RegExp(Rt,"g"),BE=RegExp(ln,"g"),Eg=RegExp(zr+"(?="+zr+")|"+Fv+lA,"g"),pb=RegExp([$a+"?"+Jn+"+"+b1+"(?="+[It,$a,"$"].join("|")+")",uf+"+"+_m+"(?="+[It,$a+wm,"$"].join("|")+")",$a+"?"+wm+"+"+b1,$a+"+"+_m,LE,Sh,Hn,xg].join("|"),"g"),df=RegExp("["+nd+wt+vn+ht+"]"),Sg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,E1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jv=-1,li={};li[oe]=li[ge]=li[De]=li[Fe]=li[Se]=li[Xe]=li[Oe]=li[Ye]=li[mt]=!0,li[K]=li[Q]=li[ue]=li[X]=li[se]=li[te]=li[ne]=li[ie]=li[de]=li[ce]=li[Me]=li[je]=li[ye]=li[me]=li[Ne]=!1;var ea={};ea[K]=ea[Q]=ea[ue]=ea[se]=ea[X]=ea[te]=ea[oe]=ea[ge]=ea[De]=ea[Fe]=ea[Se]=ea[de]=ea[ce]=ea[Me]=ea[je]=ea[ye]=ea[me]=ea[le]=ea[Xe]=ea[Oe]=ea[Ye]=ea[mt]=!0,ea[ne]=ea[ie]=ea[Ne]=!1;var it={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},zt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Br={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dl=parseFloat,Ja=parseInt,Pl=typeof en=="object"&&en&&en.Object===Object&&en,Ts=typeof self=="object"&&self&&self.Object===Object&&self,ma=Pl||Ts||Function("return this")(),Cs=e&&!e.nodeType&&e,Sl=Cs&&!0&&t&&!t.nodeType&&t,Yl=Sl&&Sl.exports===Cs,Jl=Yl&&Pl.process,Eo=function(){try{var Ke=Sl&&Sl.require&&Sl.require("util").types;return Ke||Jl&&Jl.binding&&Jl.binding("util")}catch{}}(),Jc=Eo&&Eo.isArrayBuffer,wh=Eo&&Eo.isDate,Kd=Eo&&Eo.isMap,Pp=Eo&&Eo.isRegExp,cA=Eo&&Eo.isSet,Hv=Eo&&Eo.isTypedArray;function es(Ke,pt,nt){switch(nt.length){case 0:return Ke.call(pt);case 1:return Ke.call(pt,nt[0]);case 2:return Ke.call(pt,nt[0],nt[1]);case 3:return Ke.call(pt,nt[0],nt[1],nt[2])}return Ke.apply(pt,nt)}function Op(Ke,pt,nt,Sn){for(var yr=-1,vi=Ke==null?0:Ke.length;++yr<vi;){var ao=Ke[yr];pt(Sn,ao,nt(ao),Ke)}return Sn}function Vs(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length;++nt<Sn&&pt(Ke[nt],nt,Ke)!==!1;);return Ke}function OC(Ke,pt){for(var nt=Ke==null?0:Ke.length;nt--&&pt(Ke[nt],nt,Ke)!==!1;);return Ke}function u_(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length;++nt<Sn;)if(!pt(Ke[nt],nt,Ke))return!1;return!0}function $c(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length,yr=0,vi=[];++nt<Sn;){var ao=Ke[nt];pt(ao,nt,Ke)&&(vi[yr++]=ao)}return vi}function hf(Ke,pt){var nt=Ke==null?0:Ke.length;return!!nt&&_h(Ke,pt,0)>-1}function S1(Ke,pt,nt){for(var Sn=-1,yr=Ke==null?0:Ke.length;++Sn<yr;)if(nt(pt,Ke[Sn]))return!0;return!1}function va(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length,yr=Array(Sn);++nt<Sn;)yr[nt]=pt(Ke[nt],nt,Ke);return yr}function Wd(Ke,pt){for(var nt=-1,Sn=pt.length,yr=Ke.length;++nt<Sn;)Ke[yr+nt]=pt[nt];return Ke}function mb(Ke,pt,nt,Sn){var yr=-1,vi=Ke==null?0:Ke.length;for(Sn&&vi&&(nt=Ke[++yr]);++yr<vi;)nt=pt(nt,Ke[yr],yr,Ke);return nt}function d_(Ke,pt,nt,Sn){var yr=Ke==null?0:Ke.length;for(Sn&&yr&&(nt=Ke[--yr]);yr--;)nt=pt(nt,Ke[yr],yr,Ke);return nt}function Uv(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length;++nt<Sn;)if(pt(Ke[nt],nt,Ke))return!0;return!1}var IN=_1("length");function PN(Ke){return Ke.split("")}function ON(Ke){return Ke.match(yn)||[]}function DE(Ke,pt,nt){var Sn;return nt(Ke,function(yr,vi,ao){if(pt(yr,vi,ao))return Sn=vi,!1}),Sn}function wg(Ke,pt,nt,Sn){for(var yr=Ke.length,vi=nt+(Sn?1:-1);Sn?vi--:++vi<yr;)if(pt(Ke[vi],vi,Ke))return vi;return-1}function _h(Ke,pt,nt){return pt===pt?uc(Ke,pt,nt):wg(Ke,w1,nt)}function $E(Ke,pt,nt,Sn){for(var yr=nt-1,vi=Ke.length;++yr<vi;)if(Sn(Ke[yr],pt))return yr;return-1}function w1(Ke){return Ke!==Ke}function uA(Ke,pt){var nt=Ke==null?0:Ke.length;return nt?Tm(Ke,pt)/nt:H}function _1(Ke){return function(pt){return pt==null?n:pt[Ke]}}function zv(Ke){return function(pt){return Ke==null?n:Ke[pt]}}function Th(Ke,pt,nt,Sn,yr){return yr(Ke,function(vi,ao,aa){nt=Sn?(Sn=!1,vi):pt(nt,vi,ao,aa)}),nt}function FE(Ke,pt){var nt=Ke.length;for(Ke.sort(pt);nt--;)Ke[nt]=Ke[nt].value;return Ke}function Tm(Ke,pt){for(var nt,Sn=-1,yr=Ke.length;++Sn<yr;){var vi=pt(Ke[Sn]);vi!==n&&(nt=nt===n?vi:nt+vi)}return nt}function ff(Ke,pt){for(var nt=-1,Sn=Array(Ke);++nt<Ke;)Sn[nt]=pt(nt);return Sn}function T1(Ke,pt){return va(pt,function(nt){return[nt,Ke[nt]]})}function dA(Ke){return Ke&&Ke.slice(0,R1(Ke)+1).replace($e,"")}function Ol(Ke){return function(pt){return Ke(pt)}}function C1(Ke,pt){return va(pt,function(nt){return Ke[nt]})}function Ks(Ke,pt){return Ke.has(pt)}function gb(Ke,pt){for(var nt=-1,Sn=Ke.length;++nt<Sn&&_h(pt,Ke[nt],0)>-1;);return nt}function Cm(Ke,pt){for(var nt=Ke.length;nt--&&_h(pt,Ke[nt],0)>-1;);return nt}function k1(Ke,pt){for(var nt=Ke.length,Sn=0;nt--;)Ke[nt]===pt&&++Sn;return Sn}var _g=zv(it),LN=zv(zt);function LC(Ke){return"\\"+Br[Ke]}function h_(Ke,pt){return Ke==null?n:Ke[pt]}function Lp(Ke){return df.test(Ke)}function f_(Ke){return Sg.test(Ke)}function BC(Ke){for(var pt,nt=[];!(pt=Ke.next()).done;)nt.push(pt.value);return nt}function Bp(Ke){var pt=-1,nt=Array(Ke.size);return Ke.forEach(function(Sn,yr){nt[++pt]=[yr,Sn]}),nt}function vb(Ke,pt){return function(nt){return Ke(pt(nt))}}function bu(Ke,pt){for(var nt=-1,Sn=Ke.length,yr=0,vi=[];++nt<Sn;){var ao=Ke[nt];(ao===pt||ao===d)&&(Ke[nt]=d,vi[yr++]=nt)}return vi}function zu(Ke){var pt=-1,nt=Array(Ke.size);return Ke.forEach(function(Sn){nt[++pt]=Sn}),nt}function Ab(Ke){var pt=-1,nt=Array(Ke.size);return Ke.forEach(function(Sn){nt[++pt]=[Sn,Sn]}),nt}function uc(Ke,pt,nt){for(var Sn=nt-1,yr=Ke.length;++Sn<yr;)if(Ke[Sn]===pt)return Sn;return-1}function Qd(Ke,pt,nt){for(var Sn=nt+1;Sn--;)if(Ke[Sn]===pt)return Sn;return Sn}function hl(Ke){return Lp(Ke)?DC(Ke):IN(Ke)}function dc(Ke){return Lp(Ke)?$C(Ke):PN(Ke)}function R1(Ke){for(var pt=Ke.length;pt--&&qe.test(Ke.charAt(pt)););return pt}var pf=zv(Gn);function DC(Ke){for(var pt=Eg.lastIndex=0;Eg.test(Ke);)++pt;return pt}function $C(Ke){return Ke.match(Eg)||[]}function Gv(Ke){return Ke.match(pb)||[]}var Tg=function Ke(pt){pt=pt==null?ma:Fc.defaults(ma.Object(),pt,Fc.pick(ma,E1));var nt=pt.Array,Sn=pt.Date,yr=pt.Error,vi=pt.Function,ao=pt.Math,aa=pt.Object,hA=pt.RegExp,yb=pt.String,Zl=pt.TypeError,fA=nt.prototype,jE=vi.prototype,mf=aa.prototype,pA=pt["__core-js_shared__"],mA=jE.toString,Yi=mf.hasOwnProperty,FC=0,HE=function(){var O=/[^.]+$/.exec(pA&&pA.keys&&pA.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),M1=mf.toString,jC=mA.call(aa),p_=ma._,LO=hA("^"+mA.call(Yi).replace(on,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N1=Yl?pt.Buffer:n,Ch=pt.Symbol,I1=pt.Uint8Array,jf=N1?N1.allocUnsafe:n,xu=vb(aa.getPrototypeOf,aa),m_=aa.create,g_=mf.propertyIsEnumerable,gA=fA.splice,UE=Ch?Ch.isConcatSpreadable:n,Cg=Ch?Ch.iterator:n,qd=Ch?Ch.toStringTag:n,Vv=function(){try{var O=t0(aa,"defineProperty");return O({},"",{}),O}catch{}}(),HC=pt.clearTimeout!==ma.clearTimeout&&pt.clearTimeout,UC=Sn&&Sn.now!==ma.Date.now&&Sn.now,v_=pt.setTimeout!==ma.setTimeout&&pt.setTimeout,vA=ao.ceil,gf=ao.floor,bb=aa.getOwnPropertySymbols,BN=N1?N1.isBuffer:n,Kv=pt.isFinite,zC=fA.join,DN=vb(aa.keys,aa),Ga=ao.max,fo=ao.min,zE=Sn.now,P1=pt.parseInt,rd=ao.random,GE=fA.reverse,O1=t0(pt,"DataView"),Yd=t0(pt,"Map"),xb=t0(pt,"Promise"),Dp=t0(pt,"Set"),km=t0(pt,"WeakMap"),$p=t0(aa,"create"),Wv=km&&new km,Fp={},GC=n0(O1),$N=n0(Yd),FN=n0(xb),BO=n0(Dp),jN=n0(km),Qv=Ch?Ch.prototype:n,kh=Qv?Qv.valueOf:n,A_=Qv?Qv.toString:n;function ve(O){if(So(O)&&!Ir(O)&&!(O instanceof Wr)){if(O instanceof nl)return O;if(Yi.call(O,"__wrapped__"))return pW(O)}return new nl(O)}var jp=function(){function O(){}return function(F){if(!oo(F))return{};if(m_)return m_(F);O.prototype=F;var G=new O;return O.prototype=n,G}}();function qv(){}function nl(O,F){this.__wrapped__=O,this.__actions__=[],this.__chain__=!!F,this.__index__=0,this.__values__=n}ve.templateSettings={escape:xt,evaluate:Cn,interpolate:Kt,variable:"",imports:{_:ve}},ve.prototype=qv.prototype,ve.prototype.constructor=ve,nl.prototype=jp(qv.prototype),nl.prototype.constructor=nl;function Wr(O){this.__wrapped__=O,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function y_(){var O=new Wr(this.__wrapped__);return O.__actions__=Ei(this.__actions__),O.__dir__=this.__dir__,O.__filtered__=this.__filtered__,O.__iteratees__=Ei(this.__iteratees__),O.__takeCount__=this.__takeCount__,O.__views__=Ei(this.__views__),O}function HN(){if(this.__filtered__){var O=new Wr(this);O.__dir__=-1,O.__filtered__=!0}else O=this.clone(),O.__dir__*=-1;return O}function VC(){var O=this.__wrapped__.value(),F=this.__dir__,G=Ir(O),re=F<0,fe=G?O.length:0,be=Mke(0,fe,this.__views__),Pe=be.start,Ue=be.end,Qe=Ue-Pe,_t=re?Ue:Pe-1,Ct=this.__iteratees__,$t=Ct.length,mn=0,zn=fo(Qe,this.__takeCount__);if(!G||!re&&fe==Qe&&zn==Qe)return at(O,this.__actions__);var fr=[];e:for(;Qe--&&mn<zn;){_t+=F;for(var Gr=-1,pr=O[_t];++Gr<$t;){var Zr=Ct[Gr],yi=Zr.iteratee,eu=Zr.type,nc=yi(pr);if(eu==T)pr=nc;else if(!nc){if(eu==b)continue e;break e}}fr[mn++]=pr}return fr}Wr.prototype=jp(qv.prototype),Wr.prototype.constructor=Wr;function vf(O){var F=-1,G=O==null?0:O.length;for(this.clear();++F<G;){var re=O[F];this.set(re[0],re[1])}}function b_(){this.__data__=$p?$p(null):{},this.size=0}function DO(O){var F=this.has(O)&&delete this.__data__[O];return this.size-=F?1:0,F}function x_(O){var F=this.__data__;if($p){var G=F[O];return G===c?n:G}return Yi.call(F,O)?F[O]:n}function E_(O){var F=this.__data__;return $p?F[O]!==n:Yi.call(F,O)}function S_(O,F){var G=this.__data__;return this.size+=this.has(O)?0:1,G[O]=$p&&F===n?c:F,this}vf.prototype.clear=b_,vf.prototype.delete=DO,vf.prototype.get=x_,vf.prototype.has=E_,vf.prototype.set=S_;function Eu(O){var F=-1,G=O==null?0:O.length;for(this.clear();++F<G;){var re=O[F];this.set(re[0],re[1])}}function w_(){this.__data__=[],this.size=0}function VE(O){var F=this.__data__,G=Gu(F,O);if(G<0)return!1;var re=F.length-1;return G==re?F.pop():gA.call(F,G,1),--this.size,!0}function KC(O){var F=this.__data__,G=Gu(F,O);return G<0?n:F[G][1]}function WC(O){return Gu(this.__data__,O)>-1}function QC(O,F){var G=this.__data__,re=Gu(G,O);return re<0?(++this.size,G.push([O,F])):G[re][1]=F,this}Eu.prototype.clear=w_,Eu.prototype.delete=VE,Eu.prototype.get=KC,Eu.prototype.has=WC,Eu.prototype.set=QC;function Su(O){var F=-1,G=O==null?0:O.length;for(this.clear();++F<G;){var re=O[F];this.set(re[0],re[1])}}function qC(){this.size=0,this.__data__={hash:new vf,map:new(Yd||Eu),string:new vf}}function Eb(O){var F=dk(this,O).delete(O);return this.size-=F?1:0,F}function YC(O){return dk(this,O).get(O)}function JC(O){return dk(this,O).has(O)}function KE(O,F){var G=dk(this,O),re=G.size;return G.set(O,F),this.size+=G.size==re?0:1,this}Su.prototype.clear=qC,Su.prototype.delete=Eb,Su.prototype.get=YC,Su.prototype.has=JC,Su.prototype.set=KE;function Jd(O){var F=-1,G=O==null?0:O.length;for(this.__data__=new Su;++F<G;)this.add(O[F])}function ZC(O){return this.__data__.set(O,c),this}function Aa(O){return this.__data__.has(O)}Jd.prototype.add=Jd.prototype.push=ZC,Jd.prototype.has=Aa;function ts(O){var F=this.__data__=new Eu(O);this.size=F.size}function rl(){this.__data__=new Eu,this.size=0}function Zc(O){var F=this.__data__,G=F.delete(O);return this.size=F.size,G}function L1(O){return this.__data__.get(O)}function WE(O){return this.__data__.has(O)}function Sd(O,F){var G=this.__data__;if(G instanceof Eu){var re=G.__data__;if(!Yd||re.length<a-1)return re.push([O,F]),this.size=++G.size,this;G=this.__data__=new Su(re)}return G.set(O,F),this.size=G.size,this}ts.prototype.clear=rl,ts.prototype.delete=Zc,ts.prototype.get=L1,ts.prototype.has=WE,ts.prototype.set=Sd;function kg(O,F){var G=Ir(O),re=!G&&r0(O),fe=!G&&!re&&Mm(O),be=!G&&!re&&!fe&&V1(O),Pe=G||re||fe||be,Ue=Pe?ff(O.length,yb):[],Qe=Ue.length;for(var _t in O)(F||Yi.call(O,_t))&&!(Pe&&(_t=="length"||fe&&(_t=="offset"||_t=="parent")||be&&(_t=="buffer"||_t=="byteLength"||_t=="byteOffset")||Kf(_t,Qe)))&&Ue.push(_t);return Ue}function AA(O){var F=O.length;return F?O[xe(0,F-1)]:n}function QE(O,F){return hk(Ei(O),jc(F,0,O.length))}function Sb(O){return hk(Ei(O))}function B1(O,F,G){(G!==n&&!_d(O[F],G)||G===n&&!(F in O))&&wu(O,F,G)}function Hf(O,F,G){var re=O[F];(!(Yi.call(O,F)&&_d(re,G))||G===n&&!(F in O))&&wu(O,F,G)}function Gu(O,F){for(var G=O.length;G--;)if(_d(O[G][0],F))return G;return-1}function Rg(O,F,G,re){return Xl(O,function(fe,be,Pe){F(re,fe,G(fe),Pe)}),re}function wd(O,F){return O&&ks(F,$s(F),O)}function Ai(O,F){return O&&ks(F,Cc(F),O)}function wu(O,F,G){F=="__proto__"&&Vv?Vv(O,F,{configurable:!0,enumerable:!0,value:G,writable:!0}):O[F]=G}function D1(O,F){for(var G=-1,re=F.length,fe=nt(re),be=O==null;++G<re;)fe[G]=be?n:i4(O,F[G]);return fe}function jc(O,F,G){return O===O&&(G!==n&&(O=O<=G?O:G),F!==n&&(O=O>=F?O:F)),O}function Ws(O,F,G,re,fe,be){var Pe,Ue=F&h,Qe=F&f,_t=F&p;if(G&&(Pe=fe?G(O,re,fe,be):G(O)),Pe!==n)return Pe;if(!oo(O))return O;var Ct=Ir(O);if(Ct){if(Pe=Ike(O),!Ue)return Ei(O,Pe)}else{var $t=wl(O),mn=$t==ie||$t==he;if(Mm(O))return Za(O,Ue);if($t==Me||$t==K||mn&&!fe){if(Pe=Qe||mn?{}:aW(O),!Ue)return Qe?jO(O,Ai(Pe,O)):ik(O,wd(Pe,O))}else{if(!ea[$t])return fe?O:{};Pe=Pke(O,$t,Ue)}}be||(be=new ts);var zn=be.get(O);if(zn)return zn;be.set(O,Pe),OW(O)?O.forEach(function(pr){Pe.add(Ws(pr,F,G,pr,O,be))}):IW(O)&&O.forEach(function(pr,Zr){Pe.set(Zr,Ws(pr,F,G,Zr,O,be))});var fr=_t?Qe?GO:zO:Qe?Cc:$s,Gr=Ct?n:fr(O);return Vs(Gr||O,function(pr,Zr){Gr&&(Zr=pr,pr=O[Zr]),Hf(Pe,Zr,Ws(pr,F,G,Zr,O,be))}),Pe}function qE(O){var F=$s(O);return function(G){return $1(G,O,F)}}function $1(O,F,G){var re=G.length;if(O==null)return!re;for(O=aa(O);re--;){var fe=G[re],be=F[fe],Pe=O[fe];if(Pe===n&&!(fe in O)||!be(Pe))return!1}return!0}function YE(O,F,G){if(typeof O!="function")throw new Zl(s);return eS(function(){O.apply(n,G)},F)}function Rm(O,F,G,re){var fe=-1,be=hf,Pe=!0,Ue=O.length,Qe=[],_t=F.length;if(!Ue)return Qe;G&&(F=va(F,Ol(G))),re?(be=S1,Pe=!1):F.length>=a&&(be=Ks,Pe=!1,F=new Jd(F));e:for(;++fe<Ue;){var Ct=O[fe],$t=G==null?Ct:G(Ct);if(Ct=re||Ct!==0?Ct:0,Pe&&$t===$t){for(var mn=_t;mn--;)if(F[mn]===$t)continue e;Qe.push(Ct)}else be(F,$t,re)||Qe.push(Ct)}return Qe}var Xl=VK(Ll),F1=VK(Uf,!0);function XC(O,F){var G=!0;return Xl(O,function(re,fe,be){return G=!!F(re,fe,be),G}),G}function Mg(O,F,G){for(var re=-1,fe=O.length;++re<fe;){var be=O[re],Pe=F(be);if(Pe!=null&&(Ue===n?Pe===Pe&&!Xc(Pe):G(Pe,Ue)))var Ue=Pe,Qe=be}return Qe}function Yv(O,F,G,re){var fe=O.length;for(G=jr(G),G<0&&(G=-G>fe?0:fe+G),re=re===n||re>fe?fe:jr(re),re<0&&(re+=fe),re=G>re?0:BW(re);G<re;)O[G++]=F;return O}function wb(O,F){var G=[];return Xl(O,function(re,fe,be){F(re,fe,be)&&G.push(re)}),G}function Ro(O,F,G,re,fe){var be=-1,Pe=O.length;for(G||(G=Lke),fe||(fe=[]);++be<Pe;){var Ue=O[be];F>0&&G(Ue)?F>1?Ro(Ue,F-1,G,re,fe):Wd(fe,Ue):re||(fe[fe.length]=Ue)}return fe}var Jv=KK(),Zd=KK(!0);function Ll(O,F){return O&&Jv(O,F,$s)}function Uf(O,F){return O&&Zd(O,F,$s)}function Ng(O,F){return $c(F,function(G){return Wf(O[G])})}function ec(O,F){F=rr(F,O);for(var G=0,re=F.length;O!=null&&G<re;)O=O[Mh(F[G++])];return G&&G==re?O:n}function _b(O,F,G){var re=F(O);return Ir(O)?re:Wd(re,G(O))}function ns(O){return O==null?O===n?pe:Ee:qd&&qd in aa(O)?Rke(O):Uke(O)}function j1(O,F){return O>F}function $O(O,F){return O!=null&&Yi.call(O,F)}function UN(O,F){return O!=null&&F in aa(O)}function ek(O,F,G){return O>=fo(F,G)&&O<Ga(F,G)}function Zv(O,F,G){for(var re=G?S1:hf,fe=O[0].length,be=O.length,Pe=be,Ue=nt(be),Qe=1/0,_t=[];Pe--;){var Ct=O[Pe];Pe&&F&&(Ct=va(Ct,Ol(F))),Qe=fo(Ct.length,Qe),Ue[Pe]=!G&&(F||fe>=120&&Ct.length>=120)?new Jd(Pe&&Ct):n}Ct=O[0];var $t=-1,mn=Ue[0];e:for(;++$t<fe&&_t.length<Qe;){var zn=Ct[$t],fr=F?F(zn):zn;if(zn=G||zn!==0?zn:0,!(mn?Ks(mn,fr):re(_t,fr,G))){for(Pe=be;--Pe;){var Gr=Ue[Pe];if(!(Gr?Ks(Gr,fr):re(O[Pe],fr,G)))continue e}mn&&mn.push(fr),_t.push(zn)}}return _t}function __(O,F,G,re){return Ll(O,function(fe,be,Pe){F(re,G(fe),be,Pe)}),re}function Rh(O,F,G){F=rr(F,O),O=cW(O,F);var re=O==null?O:O[Mh(Vu(F))];return re==null?n:es(re,O,G)}function T_(O){return So(O)&&ns(O)==K}function tk(O){return So(O)&&ns(O)==ue}function zf(O){return So(O)&&ns(O)==te}function fl(O,F,G,re,fe){return O===F?!0:O==null||F==null||!So(O)&&!So(F)?O!==O&&F!==F:FO(O,F,G,re,fl,fe)}function FO(O,F,G,re,fe,be){var Pe=Ir(O),Ue=Ir(F),Qe=Pe?Q:wl(O),_t=Ue?Q:wl(F);Qe=Qe==K?Me:Qe,_t=_t==K?Me:_t;var Ct=Qe==Me,$t=_t==Me,mn=Qe==_t;if(mn&&Mm(O)){if(!Mm(F))return!1;Pe=!0,Ct=!1}if(mn&&!Ct)return be||(be=new ts),Pe||V1(O)?nW(O,F,G,re,fe,be):Cke(O,F,Qe,G,re,fe,be);if(!(G&m)){var zn=Ct&&Yi.call(O,"__wrapped__"),fr=$t&&Yi.call(F,"__wrapped__");if(zn||fr){var Gr=zn?O.value():O,pr=fr?F.value():F;return be||(be=new ts),fe(Gr,pr,G,re,be)}}return mn?(be||(be=new ts),kke(O,F,G,re,fe,be)):!1}function zN(O){return So(O)&&wl(O)==de}function H1(O,F,G,re){var fe=G.length,be=fe,Pe=!re;if(O==null)return!be;for(O=aa(O);fe--;){var Ue=G[fe];if(Pe&&Ue[2]?Ue[1]!==O[Ue[0]]:!(Ue[0]in O))return!1}for(;++fe<be;){Ue=G[fe];var Qe=Ue[0],_t=O[Qe],Ct=Ue[1];if(Pe&&Ue[2]){if(_t===n&&!(Qe in O))return!1}else{var $t=new ts;if(re)var mn=re(_t,Ct,Qe,O,F,$t);if(!(mn===n?fl(Ct,_t,m|g,re,$t):mn))return!1}}return!0}function Ig(O){if(!oo(O)||Dke(O))return!1;var F=Wf(O)?LO:Un;return F.test(n0(O))}function C_(O){return So(O)&&ns(O)==je}function GN(O){return So(O)&&wl(O)==ye}function Xv(O){return So(O)&&Ak(O.length)&&!!li[ns(O)]}function k_(O){return typeof O=="function"?O:O==null?kc:typeof O=="object"?Ir(O)?R_(O[0],O[1]):nk(O):WW(O)}function Tb(O){if(!XE(O))return DN(O);var F=[];for(var G in aa(O))Yi.call(O,G)&&G!="constructor"&&F.push(G);return F}function VN(O){if(!oo(O))return Hke(O);var F=XE(O),G=[];for(var re in O)re=="constructor"&&(F||!Yi.call(O,re))||G.push(re);return G}function Cb(O,F){return O<F}function Pg(O,F){var G=-1,re=Tc(O)?nt(O.length):[];return Xl(O,function(fe,be,Pe){re[++G]=F(fe,be,Pe)}),re}function nk(O){var F=KO(O);return F.length==1&&F[0][2]?sW(F[0][0],F[0][1]):function(G){return G===O||H1(G,O,F)}}function R_(O,F){return QO(O)&&oW(F)?sW(Mh(O),F):function(G){var re=i4(G,O);return re===n&&re===F?a4(G,O):fl(F,re,m|g)}}function e0(O,F,G,re,fe){O!==F&&Jv(F,function(be,Pe){if(fe||(fe=new ts),oo(be))M_(O,F,Pe,G,e0,re,fe);else{var Ue=re?re(YO(O,Pe),be,Pe+"",O,F,fe):n;Ue===n&&(Ue=be),B1(O,Pe,Ue)}},Cc)}function M_(O,F,G,re,fe,be,Pe){var Ue=YO(O,G),Qe=YO(F,G),_t=Pe.get(Qe);if(_t){B1(O,G,_t);return}var Ct=be?be(Ue,Qe,G+"",O,F,Pe):n,$t=Ct===n;if($t){var mn=Ir(Qe),zn=!mn&&Mm(Qe),fr=!mn&&!zn&&V1(Qe);Ct=Qe,mn||zn||fr?Ir(Ue)?Ct=Ue:Lo(Ue)?Ct=Ei(Ue):zn?($t=!1,Ct=Za(Qe,!0)):fr?($t=!1,Ct=wi(Qe,!0)):Ct=[]:tS(Qe)||r0(Qe)?(Ct=Ue,r0(Ue)?Ct=DW(Ue):(!oo(Ue)||Wf(Ue))&&(Ct=aW(Qe))):$t=!1}$t&&(Pe.set(Qe,Ct),fe(Ct,Qe,re,be,Pe),Pe.delete(Qe)),B1(O,G,Ct)}function yA(O,F){var G=O.length;if(G)return F+=F<0?G:0,Kf(F,G)?O[F]:n}function kb(O,F,G){F.length?F=va(F,function(be){return Ir(be)?function(Pe){return ec(Pe,be.length===1?be[0]:be)}:be}):F=[kc];var re=-1;F=va(F,Ol(ar()));var fe=Pg(O,function(be,Pe,Ue){var Qe=va(F,function(_t){return _t(be)});return{criteria:Qe,index:++re,value:be}});return FE(fe,function(be,Pe){return Sa(be,Pe,G)})}function N_(O,F){return JE(O,F,function(G,re){return a4(O,re)})}function JE(O,F,G){for(var re=-1,fe=F.length,be={};++re<fe;){var Pe=F[re],Ue=ec(O,Pe);G(Ue,Pe)&&bt(be,rr(Pe,O),Ue)}return be}function I_(O){return function(F){return ec(F,O)}}function _c(O,F,G,re){var fe=re?$E:_h,be=-1,Pe=F.length,Ue=O;for(O===F&&(F=Ei(F)),G&&(Ue=va(O,Ol(G)));++be<Pe;)for(var Qe=0,_t=F[be],Ct=G?G(_t):_t;(Qe=fe(Ue,Ct,Qe,re))>-1;)Ue!==O&&gA.call(Ue,Qe,1),gA.call(O,Qe,1);return O}function rk(O,F){for(var G=O?F.length:0,re=G-1;G--;){var fe=F[G];if(G==re||fe!==be){var be=fe;Kf(fe)?gA.call(O,fe,1):Ae(O,fe)}}return O}function xe(O,F){return O+gf(rd()*(F-O+1))}function Re(O,F,G,re){for(var fe=-1,be=Ga(vA((F-O)/(G||1)),0),Pe=nt(be);be--;)Pe[re?be:++fe]=O,O+=G;return Pe}function Ve(O,F){var G="";if(!O||F<1||F>B)return G;do F%2&&(G+=O),F=gf(F/2),F&&(O+=O);while(F);return G}function We(O,F){return JO(lW(O,F,kc),O+"")}function Nt(O){return AA(K1(O))}function jt(O,F){var G=K1(O);return hk(G,jc(F,0,G.length))}function bt(O,F,G,re){if(!oo(O))return O;F=rr(F,O);for(var fe=-1,be=F.length,Pe=be-1,Ue=O;Ue!=null&&++fe<be;){var Qe=Mh(F[fe]),_t=G;if(Qe==="__proto__"||Qe==="constructor"||Qe==="prototype")return O;if(fe!=Pe){var Ct=Ue[Qe];_t=re?re(Ct,Qe,Ue):n,_t===n&&(_t=oo(Ct)?Ct:Kf(F[fe+1])?[]:{})}Hf(Ue,Qe,_t),Ue=Ue[Qe]}return O}var Xt=Wv?function(O,F){return Wv.set(O,F),O}:kc,cn=Vv?function(O,F){return Vv(O,"toString",{configurable:!0,enumerable:!1,value:s4(F),writable:!0})}:kc;function Fn(O){return hk(K1(O))}function Nn(O,F,G){var re=-1,fe=O.length;F<0&&(F=-F>fe?0:fe+F),G=G>fe?fe:G,G<0&&(G+=fe),fe=F>G?0:G-F>>>0,F>>>=0;for(var be=nt(fe);++re<fe;)be[re]=O[re+F];return be}function Vr(O,F){var G;return Xl(O,function(re,fe,be){return G=F(re,fe,be),!G}),!!G}function er(O,F,G){var re=0,fe=O==null?re:O.length;if(typeof F=="number"&&F===F&&fe<=z){for(;re<fe;){var be=re+fe>>>1,Pe=O[be];Pe!==null&&!Xc(Pe)&&(G?Pe<=F:Pe<F)?re=be+1:fe=be}return fe}return Jr(O,F,kc,G)}function Jr(O,F,G,re){var fe=0,be=O==null?0:O.length;if(be===0)return 0;F=G(F);for(var Pe=F!==F,Ue=F===null,Qe=Xc(F),_t=F===n;fe<be;){var Ct=gf((fe+be)/2),$t=G(O[Ct]),mn=$t!==n,zn=$t===null,fr=$t===$t,Gr=Xc($t);if(Pe)var pr=re||fr;else _t?pr=fr&&(re||mn):Ue?pr=fr&&mn&&(re||!zn):Qe?pr=fr&&mn&&!zn&&(re||!Gr):zn||Gr?pr=!1:pr=re?$t<=F:$t<F;pr?fe=Ct+1:be=Ct}return fo(be,$)}function ni(O,F){for(var G=-1,re=O.length,fe=0,be=[];++G<re;){var Pe=O[G],Ue=F?F(Pe):Pe;if(!G||!_d(Ue,Qe)){var Qe=Ue;be[fe++]=Pe===0?0:Pe}}return be}function V(O){return typeof O=="number"?O:Xc(O)?H:+O}function W(O){if(typeof O=="string")return O;if(Ir(O))return va(O,W)+"";if(Xc(O))return A_?A_.call(O):"";var F=O+"";return F=="0"&&1/O==-D?"-0":F}function ae(O,F,G){var re=-1,fe=hf,be=O.length,Pe=!0,Ue=[],Qe=Ue;if(G)Pe=!1,fe=S1;else if(be>=a){var _t=F?null:_ke(O);if(_t)return zu(_t);Pe=!1,fe=Ks,Qe=new Jd}else Qe=F?[]:Ue;e:for(;++re<be;){var Ct=O[re],$t=F?F(Ct):Ct;if(Ct=G||Ct!==0?Ct:0,Pe&&$t===$t){for(var mn=Qe.length;mn--;)if(Qe[mn]===$t)continue e;F&&Qe.push($t),Ue.push(Ct)}else fe(Qe,$t,G)||(Qe!==Ue&&Qe.push($t),Ue.push(Ct))}return Ue}function Ae(O,F){return F=rr(F,O),O=cW(O,F),O==null||delete O[Mh(Vu(F))]}function we(O,F,G,re){return bt(O,F,G(ec(O,F)),re)}function He(O,F,G,re){for(var fe=O.length,be=re?fe:-1;(re?be--:++be<fe)&&F(O[be],be,O););return G?Nn(O,re?0:be,re?be+1:fe):Nn(O,re?be+1:0,re?fe:be)}function at(O,F){var G=O;return G instanceof Wr&&(G=G.value()),mb(F,function(re,fe){return fe.func.apply(fe.thisArg,Wd([re],fe.args))},G)}function Et(O,F,G){var re=O.length;if(re<2)return re?ae(O[0]):[];for(var fe=-1,be=nt(re);++fe<re;)for(var Pe=O[fe],Ue=-1;++Ue<re;)Ue!=fe&&(be[fe]=Rm(be[fe]||Pe,O[Ue],F,G));return ae(Ro(be,1),F,G)}function Tt(O,F,G){for(var re=-1,fe=O.length,be=F.length,Pe={};++re<fe;){var Ue=re<be?F[re]:n;G(Pe,O[re],Ue)}return Pe}function wn(O){return Lo(O)?O:[]}function hr(O){return typeof O=="function"?O:kc}function rr(O,F){return Ir(O)?O:QO(O,F)?[O]:fW(sa(O))}var xr=We;function ui(O,F,G){var re=O.length;return G=G===n?re:G,!F&&G>=re?O:Nn(O,F,G)}var Ji=HC||function(O){return ma.clearTimeout(O)};function Za(O,F){if(F)return O.slice();var G=O.length,re=jf?jf(G):new O.constructor(G);return O.copy(re),re}function Vt(O){var F=new O.constructor(O.byteLength);return new I1(F).set(new I1(O)),F}function Lt(O,F){var G=F?Vt(O.buffer):O.buffer;return new O.constructor(G,O.byteOffset,O.byteLength)}function bn(O){var F=new O.constructor(O.source,rt.exec(O));return F.lastIndex=O.lastIndex,F}function Fr(O){return kh?aa(kh.call(O)):{}}function wi(O,F){var G=F?Vt(O.buffer):O.buffer;return new O.constructor(G,O.byteOffset,O.length)}function ys(O,F){if(O!==F){var G=O!==n,re=O===null,fe=O===O,be=Xc(O),Pe=F!==n,Ue=F===null,Qe=F===F,_t=Xc(F);if(!Ue&&!_t&&!be&&O>F||be&&Pe&&Qe&&!Ue&&!_t||re&&Pe&&Qe||!G&&Qe||!fe)return 1;if(!re&&!be&&!_t&&O<F||_t&&G&&fe&&!re&&!be||Ue&&G&&fe||!Pe&&fe||!Qe)return-1}return 0}function Sa(O,F,G){for(var re=-1,fe=O.criteria,be=F.criteria,Pe=fe.length,Ue=G.length;++re<Pe;){var Qe=ys(fe[re],be[re]);if(Qe){if(re>=Ue)return Qe;var _t=G[re];return Qe*(_t=="desc"?-1:1)}}return O.index-F.index}function po(O,F,G,re){for(var fe=-1,be=O.length,Pe=G.length,Ue=-1,Qe=F.length,_t=Ga(be-Pe,0),Ct=nt(Qe+_t),$t=!re;++Ue<Qe;)Ct[Ue]=F[Ue];for(;++fe<Pe;)($t||fe<be)&&(Ct[G[fe]]=O[fe]);for(;_t--;)Ct[Ue++]=O[fe++];return Ct}function pl(O,F,G,re){for(var fe=-1,be=O.length,Pe=-1,Ue=G.length,Qe=-1,_t=F.length,Ct=Ga(be-Ue,0),$t=nt(Ct+_t),mn=!re;++fe<Ct;)$t[fe]=O[fe];for(var zn=fe;++Qe<_t;)$t[zn+Qe]=F[Qe];for(;++Pe<Ue;)(mn||fe<be)&&($t[zn+G[Pe]]=O[fe++]);return $t}function Ei(O,F){var G=-1,re=O.length;for(F||(F=nt(re));++G<re;)F[G]=O[G];return F}function ks(O,F,G,re){var fe=!G;G||(G={});for(var be=-1,Pe=F.length;++be<Pe;){var Ue=F[be],Qe=re?re(G[Ue],O[Ue],Ue,G,O):n;Qe===n&&(Qe=O[Ue]),fe?wu(G,Ue,Qe):Hf(G,Ue,Qe)}return G}function ik(O,F){return ks(O,WO(O),F)}function jO(O,F){return ks(O,rW(O),F)}function ak(O,F){return function(G,re){var fe=Ir(G)?Op:Rg,be=F?F():{};return fe(G,O,ar(re,2),be)}}function U1(O){return We(function(F,G){var re=-1,fe=G.length,be=fe>1?G[fe-1]:n,Pe=fe>2?G[2]:n;for(be=O.length>3&&typeof be=="function"?(fe--,be):n,Pe&&tc(G[0],G[1],Pe)&&(be=fe<3?n:be,fe=1),F=aa(F);++re<fe;){var Ue=G[re];Ue&&O(F,Ue,re,be)}return F})}function VK(O,F){return function(G,re){if(G==null)return G;if(!Tc(G))return O(G,re);for(var fe=G.length,be=F?fe:-1,Pe=aa(G);(F?be--:++be<fe)&&re(Pe[be],be,Pe)!==!1;);return G}}function KK(O){return function(F,G,re){for(var fe=-1,be=aa(F),Pe=re(F),Ue=Pe.length;Ue--;){var Qe=Pe[O?Ue:++fe];if(G(be[Qe],Qe,be)===!1)break}return F}}function Eke(O,F,G){var re=F&v,fe=ZE(O);function be(){var Pe=this&&this!==ma&&this instanceof be?fe:O;return Pe.apply(re?G:this,arguments)}return be}function WK(O){return function(F){F=sa(F);var G=Lp(F)?dc(F):n,re=G?G[0]:F.charAt(0),fe=G?ui(G,1).join(""):F.slice(1);return re[O]()+fe}}function z1(O){return function(F){return mb(VW(GW(F).replace(fb,"")),O,"")}}function ZE(O){return function(){var F=arguments;switch(F.length){case 0:return new O;case 1:return new O(F[0]);case 2:return new O(F[0],F[1]);case 3:return new O(F[0],F[1],F[2]);case 4:return new O(F[0],F[1],F[2],F[3]);case 5:return new O(F[0],F[1],F[2],F[3],F[4]);case 6:return new O(F[0],F[1],F[2],F[3],F[4],F[5]);case 7:return new O(F[0],F[1],F[2],F[3],F[4],F[5],F[6])}var G=jp(O.prototype),re=O.apply(G,F);return oo(re)?re:G}}function Ske(O,F,G){var re=ZE(O);function fe(){for(var be=arguments.length,Pe=nt(be),Ue=be,Qe=G1(fe);Ue--;)Pe[Ue]=arguments[Ue];var _t=be<3&&Pe[0]!==Qe&&Pe[be-1]!==Qe?[]:bu(Pe,Qe);if(be-=_t.length,be<G)return ZK(O,F,ok,fe.placeholder,n,Pe,_t,n,n,G-be);var Ct=this&&this!==ma&&this instanceof fe?re:O;return es(Ct,this,Pe)}return fe}function QK(O){return function(F,G,re){var fe=aa(F);if(!Tc(F)){var be=ar(G,3);F=$s(F),G=function(Ue){return be(fe[Ue],Ue,fe)}}var Pe=O(F,G,re);return Pe>-1?fe[be?F[Pe]:Pe]:n}}function qK(O){return Vf(function(F){var G=F.length,re=G,fe=nl.prototype.thru;for(O&&F.reverse();re--;){var be=F[re];if(typeof be!="function")throw new Zl(s);if(fe&&!Pe&&uk(be)=="wrapper")var Pe=new nl([],!0)}for(re=Pe?re:G;++re<G;){be=F[re];var Ue=uk(be),Qe=Ue=="wrapper"?VO(be):n;Qe&&qO(Qe[0])&&Qe[1]==(C|S|w|R)&&!Qe[4].length&&Qe[9]==1?Pe=Pe[uk(Qe[0])].apply(Pe,Qe[3]):Pe=be.length==1&&qO(be)?Pe[Ue]():Pe.thru(be)}return function(){var _t=arguments,Ct=_t[0];if(Pe&&_t.length==1&&Ir(Ct))return Pe.plant(Ct).value();for(var $t=0,mn=G?F[$t].apply(this,_t):Ct;++$t<G;)mn=F[$t].call(this,mn);return mn}})}function ok(O,F,G,re,fe,be,Pe,Ue,Qe,_t){var Ct=F&C,$t=F&v,mn=F&A,zn=F&(S|x),fr=F&k,Gr=mn?n:ZE(O);function pr(){for(var Zr=arguments.length,yi=nt(Zr),eu=Zr;eu--;)yi[eu]=arguments[eu];if(zn)var nc=G1(pr),tu=k1(yi,nc);if(re&&(yi=po(yi,re,fe,zn)),be&&(yi=pl(yi,be,Pe,zn)),Zr-=tu,zn&&Zr<_t){var Bo=bu(yi,nc);return ZK(O,F,ok,pr.placeholder,G,yi,Bo,Ue,Qe,_t-Zr)}var Td=$t?G:this,qf=mn?Td[O]:O;return Zr=yi.length,Ue?yi=zke(yi,Ue):fr&&Zr>1&&yi.reverse(),Ct&&Qe<Zr&&(yi.length=Qe),this&&this!==ma&&this instanceof pr&&(qf=Gr||ZE(qf)),qf.apply(Td,yi)}return pr}function YK(O,F){return function(G,re){return __(G,O,F(re),{})}}function sk(O,F){return function(G,re){var fe;if(G===n&&re===n)return F;if(G!==n&&(fe=G),re!==n){if(fe===n)return re;typeof G=="string"||typeof re=="string"?(G=W(G),re=W(re)):(G=V(G),re=V(re)),fe=O(G,re)}return fe}}function HO(O){return Vf(function(F){return F=va(F,Ol(ar())),We(function(G){var re=this;return O(F,function(fe){return es(fe,re,G)})})})}function lk(O,F){F=F===n?" ":W(F);var G=F.length;if(G<2)return G?Ve(F,O):F;var re=Ve(F,vA(O/hl(F)));return Lp(F)?ui(dc(re),0,O).join(""):re.slice(0,O)}function wke(O,F,G,re){var fe=F&v,be=ZE(O);function Pe(){for(var Ue=-1,Qe=arguments.length,_t=-1,Ct=re.length,$t=nt(Ct+Qe),mn=this&&this!==ma&&this instanceof Pe?be:O;++_t<Ct;)$t[_t]=re[_t];for(;Qe--;)$t[_t++]=arguments[++Ue];return es(mn,fe?G:this,$t)}return Pe}function JK(O){return function(F,G,re){return re&&typeof re!="number"&&tc(F,G,re)&&(G=re=n),F=Qf(F),G===n?(G=F,F=0):G=Qf(G),re=re===n?F<G?1:-1:Qf(re),Re(F,G,re,O)}}function ck(O){return function(F,G){return typeof F=="string"&&typeof G=="string"||(F=Ku(F),G=Ku(G)),O(F,G)}}function ZK(O,F,G,re,fe,be,Pe,Ue,Qe,_t){var Ct=F&S,$t=Ct?Pe:n,mn=Ct?n:Pe,zn=Ct?be:n,fr=Ct?n:be;F|=Ct?w:_,F&=~(Ct?_:w),F&y||(F&=~(v|A));var Gr=[O,F,fe,zn,$t,fr,mn,Ue,Qe,_t],pr=G.apply(n,Gr);return qO(O)&&uW(pr,Gr),pr.placeholder=re,dW(pr,O,F)}function UO(O){var F=ao[O];return function(G,re){if(G=Ku(G),re=re==null?0:fo(jr(re),292),re&&Kv(G)){var fe=(sa(G)+"e").split("e"),be=F(fe[0]+"e"+(+fe[1]+re));return fe=(sa(be)+"e").split("e"),+(fe[0]+"e"+(+fe[1]-re))}return F(G)}}var _ke=Dp&&1/zu(new Dp([,-0]))[1]==D?function(O){return new Dp(O)}:u4;function XK(O){return function(F){var G=wl(F);return G==de?Bp(F):G==ye?Ab(F):T1(F,O(F))}}function Gf(O,F,G,re,fe,be,Pe,Ue){var Qe=F&A;if(!Qe&&typeof O!="function")throw new Zl(s);var _t=re?re.length:0;if(_t||(F&=~(w|_),re=fe=n),Pe=Pe===n?Pe:Ga(jr(Pe),0),Ue=Ue===n?Ue:jr(Ue),_t-=fe?fe.length:0,F&_){var Ct=re,$t=fe;re=fe=n}var mn=Qe?n:VO(O),zn=[O,F,G,re,fe,Ct,$t,be,Pe,Ue];if(mn&&jke(zn,mn),O=zn[0],F=zn[1],G=zn[2],re=zn[3],fe=zn[4],Ue=zn[9]=zn[9]===n?Qe?0:O.length:Ga(zn[9]-_t,0),!Ue&&F&(S|x)&&(F&=~(S|x)),!F||F==v)var fr=Eke(O,F,G);else F==S||F==x?fr=Ske(O,F,Ue):(F==w||F==(v|w))&&!fe.length?fr=wke(O,F,G,re):fr=ok.apply(n,zn);var Gr=mn?Xt:uW;return dW(Gr(fr,zn),O,F)}function eW(O,F,G,re){return O===n||_d(O,mf[G])&&!Yi.call(re,G)?F:O}function tW(O,F,G,re,fe,be){return oo(O)&&oo(F)&&(be.set(F,O),e0(O,F,n,tW,be),be.delete(F)),O}function Tke(O){return tS(O)?n:O}function nW(O,F,G,re,fe,be){var Pe=G&m,Ue=O.length,Qe=F.length;if(Ue!=Qe&&!(Pe&&Qe>Ue))return!1;var _t=be.get(O),Ct=be.get(F);if(_t&&Ct)return _t==F&&Ct==O;var $t=-1,mn=!0,zn=G&g?new Jd:n;for(be.set(O,F),be.set(F,O);++$t<Ue;){var fr=O[$t],Gr=F[$t];if(re)var pr=Pe?re(Gr,fr,$t,F,O,be):re(fr,Gr,$t,O,F,be);if(pr!==n){if(pr)continue;mn=!1;break}if(zn){if(!Uv(F,function(Zr,yi){if(!Ks(zn,yi)&&(fr===Zr||fe(fr,Zr,G,re,be)))return zn.push(yi)})){mn=!1;break}}else if(!(fr===Gr||fe(fr,Gr,G,re,be))){mn=!1;break}}return be.delete(O),be.delete(F),mn}function Cke(O,F,G,re,fe,be,Pe){switch(G){case se:if(O.byteLength!=F.byteLength||O.byteOffset!=F.byteOffset)return!1;O=O.buffer,F=F.buffer;case ue:return!(O.byteLength!=F.byteLength||!be(new I1(O),new I1(F)));case X:case te:case ce:return _d(+O,+F);case ne:return O.name==F.name&&O.message==F.message;case je:case me:return O==F+"";case de:var Ue=Bp;case ye:var Qe=re&m;if(Ue||(Ue=zu),O.size!=F.size&&!Qe)return!1;var _t=Pe.get(O);if(_t)return _t==F;re|=g,Pe.set(O,F);var Ct=nW(Ue(O),Ue(F),re,fe,be,Pe);return Pe.delete(O),Ct;case le:if(kh)return kh.call(O)==kh.call(F)}return!1}function kke(O,F,G,re,fe,be){var Pe=G&m,Ue=zO(O),Qe=Ue.length,_t=zO(F),Ct=_t.length;if(Qe!=Ct&&!Pe)return!1;for(var $t=Qe;$t--;){var mn=Ue[$t];if(!(Pe?mn in F:Yi.call(F,mn)))return!1}var zn=be.get(O),fr=be.get(F);if(zn&&fr)return zn==F&&fr==O;var Gr=!0;be.set(O,F),be.set(F,O);for(var pr=Pe;++$t<Qe;){mn=Ue[$t];var Zr=O[mn],yi=F[mn];if(re)var eu=Pe?re(yi,Zr,mn,F,O,be):re(Zr,yi,mn,O,F,be);if(!(eu===n?Zr===yi||fe(Zr,yi,G,re,be):eu)){Gr=!1;break}pr||(pr=mn=="constructor")}if(Gr&&!pr){var nc=O.constructor,tu=F.constructor;nc!=tu&&"constructor"in O&&"constructor"in F&&!(typeof nc=="function"&&nc instanceof nc&&typeof tu=="function"&&tu instanceof tu)&&(Gr=!1)}return be.delete(O),be.delete(F),Gr}function Vf(O){return JO(lW(O,n,vW),O+"")}function zO(O){return _b(O,$s,WO)}function GO(O){return _b(O,Cc,rW)}var VO=Wv?function(O){return Wv.get(O)}:u4;function uk(O){for(var F=O.name+"",G=Fp[F],re=Yi.call(Fp,F)?G.length:0;re--;){var fe=G[re],be=fe.func;if(be==null||be==O)return fe.name}return F}function G1(O){var F=Yi.call(ve,"placeholder")?ve:O;return F.placeholder}function ar(){var O=ve.iteratee||l4;return O=O===l4?k_:O,arguments.length?O(arguments[0],arguments[1]):O}function dk(O,F){var G=O.__data__;return Bke(F)?G[typeof F=="string"?"string":"hash"]:G.map}function KO(O){for(var F=$s(O),G=F.length;G--;){var re=F[G],fe=O[re];F[G]=[re,fe,oW(fe)]}return F}function t0(O,F){var G=h_(O,F);return Ig(G)?G:n}function Rke(O){var F=Yi.call(O,qd),G=O[qd];try{O[qd]=n;var re=!0}catch{}var fe=M1.call(O);return re&&(F?O[qd]=G:delete O[qd]),fe}var WO=bb?function(O){return O==null?[]:(O=aa(O),$c(bb(O),function(F){return g_.call(O,F)}))}:d4,rW=bb?function(O){for(var F=[];O;)Wd(F,WO(O)),O=xu(O);return F}:d4,wl=ns;(O1&&wl(new O1(new ArrayBuffer(1)))!=se||Yd&&wl(new Yd)!=de||xb&&wl(xb.resolve())!=Be||Dp&&wl(new Dp)!=ye||km&&wl(new km)!=Ne)&&(wl=function(O){var F=ns(O),G=F==Me?O.constructor:n,re=G?n0(G):"";if(re)switch(re){case GC:return se;case $N:return de;case FN:return Be;case BO:return ye;case jN:return Ne}return F});function Mke(O,F,G){for(var re=-1,fe=G.length;++re<fe;){var be=G[re],Pe=be.size;switch(be.type){case"drop":O+=Pe;break;case"dropRight":F-=Pe;break;case"take":F=fo(F,O+Pe);break;case"takeRight":O=Ga(O,F-Pe);break}}return{start:O,end:F}}function Nke(O){var F=O.match(Ze);return F?F[1].split(ot):[]}function iW(O,F,G){F=rr(F,O);for(var re=-1,fe=F.length,be=!1;++re<fe;){var Pe=Mh(F[re]);if(!(be=O!=null&&G(O,Pe)))break;O=O[Pe]}return be||++re!=fe?be:(fe=O==null?0:O.length,!!fe&&Ak(fe)&&Kf(Pe,fe)&&(Ir(O)||r0(O)))}function Ike(O){var F=O.length,G=new O.constructor(F);return F&&typeof O[0]=="string"&&Yi.call(O,"index")&&(G.index=O.index,G.input=O.input),G}function aW(O){return typeof O.constructor=="function"&&!XE(O)?jp(xu(O)):{}}function Pke(O,F,G){var re=O.constructor;switch(F){case ue:return Vt(O);case X:case te:return new re(+O);case se:return Lt(O,G);case oe:case ge:case De:case Fe:case Se:case Xe:case Oe:case Ye:case mt:return wi(O,G);case de:return new re;case ce:case me:return new re(O);case je:return bn(O);case ye:return new re;case le:return Fr(O)}}function Oke(O,F){var G=F.length;if(!G)return O;var re=G-1;return F[re]=(G>1?"& ":"")+F[re],F=F.join(G>2?", ":" "),O.replace(yt,`{
/* [wrapped with `+F+`] */
`)}function Lke(O){return Ir(O)||r0(O)||!!(UE&&O&&O[UE])}function Kf(O,F){var G=typeof O;return F=F??B,!!F&&(G=="number"||G!="symbol"&&br.test(O))&&O>-1&&O%1==0&&O<F}function tc(O,F,G){if(!oo(G))return!1;var re=typeof F;return(re=="number"?Tc(G)&&Kf(F,G.length):re=="string"&&F in G)?_d(G[F],O):!1}function QO(O,F){if(Ir(O))return!1;var G=typeof O;return G=="number"||G=="symbol"||G=="boolean"||O==null||Xc(O)?!0:On.test(O)||!rn.test(O)||F!=null&&O in aa(F)}function Bke(O){var F=typeof O;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?O!=="__proto__":O===null}function qO(O){var F=uk(O),G=ve[F];if(typeof G!="function"||!(F in Wr.prototype))return!1;if(O===G)return!0;var re=VO(G);return!!re&&O===re[0]}function Dke(O){return!!HE&&HE in O}var $ke=pA?Wf:h4;function XE(O){var F=O&&O.constructor,G=typeof F=="function"&&F.prototype||mf;return O===G}function oW(O){return O===O&&!oo(O)}function sW(O,F){return function(G){return G==null?!1:G[O]===F&&(F!==n||O in aa(G))}}function Fke(O){var F=gk(O,function(re){return G.size===u&&G.clear(),re}),G=F.cache;return F}function jke(O,F){var G=O[1],re=F[1],fe=G|re,be=fe<(v|A|C),Pe=re==C&&G==S||re==C&&G==R&&O[7].length<=F[8]||re==(C|R)&&F[7].length<=F[8]&&G==S;if(!(be||Pe))return O;re&v&&(O[2]=F[2],fe|=G&v?0:y);var Ue=F[3];if(Ue){var Qe=O[3];O[3]=Qe?po(Qe,Ue,F[4]):Ue,O[4]=Qe?bu(O[3],d):F[4]}return Ue=F[5],Ue&&(Qe=O[5],O[5]=Qe?pl(Qe,Ue,F[6]):Ue,O[6]=Qe?bu(O[5],d):F[6]),Ue=F[7],Ue&&(O[7]=Ue),re&C&&(O[8]=O[8]==null?F[8]:fo(O[8],F[8])),O[9]==null&&(O[9]=F[9]),O[0]=F[0],O[1]=fe,O}function Hke(O){var F=[];if(O!=null)for(var G in aa(O))F.push(G);return F}function Uke(O){return M1.call(O)}function lW(O,F,G){return F=Ga(F===n?O.length-1:F,0),function(){for(var re=arguments,fe=-1,be=Ga(re.length-F,0),Pe=nt(be);++fe<be;)Pe[fe]=re[F+fe];fe=-1;for(var Ue=nt(F+1);++fe<F;)Ue[fe]=re[fe];return Ue[F]=G(Pe),es(O,this,Ue)}}function cW(O,F){return F.length<2?O:ec(O,Nn(F,0,-1))}function zke(O,F){for(var G=O.length,re=fo(F.length,G),fe=Ei(O);re--;){var be=F[re];O[re]=Kf(be,G)?fe[be]:n}return O}function YO(O,F){if(!(F==="constructor"&&typeof O[F]=="function")&&F!="__proto__")return O[F]}var uW=hW(Xt),eS=v_||function(O,F){return ma.setTimeout(O,F)},JO=hW(cn);function dW(O,F,G){var re=F+"";return JO(O,Oke(re,Gke(Nke(re),G)))}function hW(O){var F=0,G=0;return function(){var re=zE(),fe=I-(re-G);if(G=re,fe>0){if(++F>=L)return arguments[0]}else F=0;return O.apply(n,arguments)}}function hk(O,F){var G=-1,re=O.length,fe=re-1;for(F=F===n?re:F;++G<F;){var be=xe(G,fe),Pe=O[be];O[be]=O[G],O[G]=Pe}return O.length=F,O}var fW=Fke(function(O){var F=[];return O.charCodeAt(0)===46&&F.push(""),O.replace(an,function(G,re,fe,be){F.push(fe?be.replace(Gt,"$1"):re||G)}),F});function Mh(O){if(typeof O=="string"||Xc(O))return O;var F=O+"";return F=="0"&&1/O==-D?"-0":F}function n0(O){if(O!=null){try{return mA.call(O)}catch{}try{return O+""}catch{}}return""}function Gke(O,F){return Vs(Z,function(G){var re="_."+G[0];F&G[1]&&!hf(O,re)&&O.push(re)}),O.sort()}function pW(O){if(O instanceof Wr)return O.clone();var F=new nl(O.__wrapped__,O.__chain__);return F.__actions__=Ei(O.__actions__),F.__index__=O.__index__,F.__values__=O.__values__,F}function Vke(O,F,G){(G?tc(O,F,G):F===n)?F=1:F=Ga(jr(F),0);var re=O==null?0:O.length;if(!re||F<1)return[];for(var fe=0,be=0,Pe=nt(vA(re/F));fe<re;)Pe[be++]=Nn(O,fe,fe+=F);return Pe}function Kke(O){for(var F=-1,G=O==null?0:O.length,re=0,fe=[];++F<G;){var be=O[F];be&&(fe[re++]=be)}return fe}function Wke(){var O=arguments.length;if(!O)return[];for(var F=nt(O-1),G=arguments[0],re=O;re--;)F[re-1]=arguments[re];return Wd(Ir(G)?Ei(G):[G],Ro(F,1))}var Qke=We(function(O,F){return Lo(O)?Rm(O,Ro(F,1,Lo,!0)):[]}),qke=We(function(O,F){var G=Vu(F);return Lo(G)&&(G=n),Lo(O)?Rm(O,Ro(F,1,Lo,!0),ar(G,2)):[]}),Yke=We(function(O,F){var G=Vu(F);return Lo(G)&&(G=n),Lo(O)?Rm(O,Ro(F,1,Lo,!0),n,G):[]});function Jke(O,F,G){var re=O==null?0:O.length;return re?(F=G||F===n?1:jr(F),Nn(O,F<0?0:F,re)):[]}function Zke(O,F,G){var re=O==null?0:O.length;return re?(F=G||F===n?1:jr(F),F=re-F,Nn(O,0,F<0?0:F)):[]}function Xke(O,F){return O&&O.length?He(O,ar(F,3),!0,!0):[]}function eRe(O,F){return O&&O.length?He(O,ar(F,3),!0):[]}function tRe(O,F,G,re){var fe=O==null?0:O.length;return fe?(G&&typeof G!="number"&&tc(O,F,G)&&(G=0,re=fe),Yv(O,F,G,re)):[]}function mW(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=G==null?0:jr(G);return fe<0&&(fe=Ga(re+fe,0)),wg(O,ar(F,3),fe)}function gW(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=re-1;return G!==n&&(fe=jr(G),fe=G<0?Ga(re+fe,0):fo(fe,re-1)),wg(O,ar(F,3),fe,!0)}function vW(O){var F=O==null?0:O.length;return F?Ro(O,1):[]}function nRe(O){var F=O==null?0:O.length;return F?Ro(O,D):[]}function rRe(O,F){var G=O==null?0:O.length;return G?(F=F===n?1:jr(F),Ro(O,F)):[]}function iRe(O){for(var F=-1,G=O==null?0:O.length,re={};++F<G;){var fe=O[F];re[fe[0]]=fe[1]}return re}function AW(O){return O&&O.length?O[0]:n}function aRe(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=G==null?0:jr(G);return fe<0&&(fe=Ga(re+fe,0)),_h(O,F,fe)}function oRe(O){var F=O==null?0:O.length;return F?Nn(O,0,-1):[]}var sRe=We(function(O){var F=va(O,wn);return F.length&&F[0]===O[0]?Zv(F):[]}),lRe=We(function(O){var F=Vu(O),G=va(O,wn);return F===Vu(G)?F=n:G.pop(),G.length&&G[0]===O[0]?Zv(G,ar(F,2)):[]}),cRe=We(function(O){var F=Vu(O),G=va(O,wn);return F=typeof F=="function"?F:n,F&&G.pop(),G.length&&G[0]===O[0]?Zv(G,n,F):[]});function uRe(O,F){return O==null?"":zC.call(O,F)}function Vu(O){var F=O==null?0:O.length;return F?O[F-1]:n}function dRe(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=re;return G!==n&&(fe=jr(G),fe=fe<0?Ga(re+fe,0):fo(fe,re-1)),F===F?Qd(O,F,fe):wg(O,w1,fe,!0)}function hRe(O,F){return O&&O.length?yA(O,jr(F)):n}var fRe=We(yW);function yW(O,F){return O&&O.length&&F&&F.length?_c(O,F):O}function pRe(O,F,G){return O&&O.length&&F&&F.length?_c(O,F,ar(G,2)):O}function mRe(O,F,G){return O&&O.length&&F&&F.length?_c(O,F,n,G):O}var gRe=Vf(function(O,F){var G=O==null?0:O.length,re=D1(O,F);return rk(O,va(F,function(fe){return Kf(fe,G)?+fe:fe}).sort(ys)),re});function vRe(O,F){var G=[];if(!(O&&O.length))return G;var re=-1,fe=[],be=O.length;for(F=ar(F,3);++re<be;){var Pe=O[re];F(Pe,re,O)&&(G.push(Pe),fe.push(re))}return rk(O,fe),G}function ZO(O){return O==null?O:GE.call(O)}function ARe(O,F,G){var re=O==null?0:O.length;return re?(G&&typeof G!="number"&&tc(O,F,G)?(F=0,G=re):(F=F==null?0:jr(F),G=G===n?re:jr(G)),Nn(O,F,G)):[]}function yRe(O,F){return er(O,F)}function bRe(O,F,G){return Jr(O,F,ar(G,2))}function xRe(O,F){var G=O==null?0:O.length;if(G){var re=er(O,F);if(re<G&&_d(O[re],F))return re}return-1}function ERe(O,F){return er(O,F,!0)}function SRe(O,F,G){return Jr(O,F,ar(G,2),!0)}function wRe(O,F){var G=O==null?0:O.length;if(G){var re=er(O,F,!0)-1;if(_d(O[re],F))return re}return-1}function _Re(O){return O&&O.length?ni(O):[]}function TRe(O,F){return O&&O.length?ni(O,ar(F,2)):[]}function CRe(O){var F=O==null?0:O.length;return F?Nn(O,1,F):[]}function kRe(O,F,G){return O&&O.length?(F=G||F===n?1:jr(F),Nn(O,0,F<0?0:F)):[]}function RRe(O,F,G){var re=O==null?0:O.length;return re?(F=G||F===n?1:jr(F),F=re-F,Nn(O,F<0?0:F,re)):[]}function MRe(O,F){return O&&O.length?He(O,ar(F,3),!1,!0):[]}function NRe(O,F){return O&&O.length?He(O,ar(F,3)):[]}var IRe=We(function(O){return ae(Ro(O,1,Lo,!0))}),PRe=We(function(O){var F=Vu(O);return Lo(F)&&(F=n),ae(Ro(O,1,Lo,!0),ar(F,2))}),ORe=We(function(O){var F=Vu(O);return F=typeof F=="function"?F:n,ae(Ro(O,1,Lo,!0),n,F)});function LRe(O){return O&&O.length?ae(O):[]}function BRe(O,F){return O&&O.length?ae(O,ar(F,2)):[]}function DRe(O,F){return F=typeof F=="function"?F:n,O&&O.length?ae(O,n,F):[]}function XO(O){if(!(O&&O.length))return[];var F=0;return O=$c(O,function(G){if(Lo(G))return F=Ga(G.length,F),!0}),ff(F,function(G){return va(O,_1(G))})}function bW(O,F){if(!(O&&O.length))return[];var G=XO(O);return F==null?G:va(G,function(re){return es(F,n,re)})}var $Re=We(function(O,F){return Lo(O)?Rm(O,F):[]}),FRe=We(function(O){return Et($c(O,Lo))}),jRe=We(function(O){var F=Vu(O);return Lo(F)&&(F=n),Et($c(O,Lo),ar(F,2))}),HRe=We(function(O){var F=Vu(O);return F=typeof F=="function"?F:n,Et($c(O,Lo),n,F)}),URe=We(XO);function zRe(O,F){return Tt(O||[],F||[],Hf)}function GRe(O,F){return Tt(O||[],F||[],bt)}var VRe=We(function(O){var F=O.length,G=F>1?O[F-1]:n;return G=typeof G=="function"?(O.pop(),G):n,bW(O,G)});function xW(O){var F=ve(O);return F.__chain__=!0,F}function KRe(O,F){return F(O),O}function fk(O,F){return F(O)}var WRe=Vf(function(O){var F=O.length,G=F?O[0]:0,re=this.__wrapped__,fe=function(be){return D1(be,O)};return F>1||this.__actions__.length||!(re instanceof Wr)||!Kf(G)?this.thru(fe):(re=re.slice(G,+G+(F?1:0)),re.__actions__.push({func:fk,args:[fe],thisArg:n}),new nl(re,this.__chain__).thru(function(be){return F&&!be.length&&be.push(n),be}))});function QRe(){return xW(this)}function qRe(){return new nl(this.value(),this.__chain__)}function YRe(){this.__values__===n&&(this.__values__=LW(this.value()));var O=this.__index__>=this.__values__.length,F=O?n:this.__values__[this.__index__++];return{done:O,value:F}}function JRe(){return this}function ZRe(O){for(var F,G=this;G instanceof qv;){var re=pW(G);re.__index__=0,re.__values__=n,F?fe.__wrapped__=re:F=re;var fe=re;G=G.__wrapped__}return fe.__wrapped__=O,F}function XRe(){var O=this.__wrapped__;if(O instanceof Wr){var F=O;return this.__actions__.length&&(F=new Wr(this)),F=F.reverse(),F.__actions__.push({func:fk,args:[ZO],thisArg:n}),new nl(F,this.__chain__)}return this.thru(ZO)}function eMe(){return at(this.__wrapped__,this.__actions__)}var tMe=ak(function(O,F,G){Yi.call(O,G)?++O[G]:wu(O,G,1)});function nMe(O,F,G){var re=Ir(O)?u_:XC;return G&&tc(O,F,G)&&(F=n),re(O,ar(F,3))}function rMe(O,F){var G=Ir(O)?$c:wb;return G(O,ar(F,3))}var iMe=QK(mW),aMe=QK(gW);function oMe(O,F){return Ro(pk(O,F),1)}function sMe(O,F){return Ro(pk(O,F),D)}function lMe(O,F,G){return G=G===n?1:jr(G),Ro(pk(O,F),G)}function EW(O,F){var G=Ir(O)?Vs:Xl;return G(O,ar(F,3))}function SW(O,F){var G=Ir(O)?OC:F1;return G(O,ar(F,3))}var cMe=ak(function(O,F,G){Yi.call(O,G)?O[G].push(F):wu(O,G,[F])});function uMe(O,F,G,re){O=Tc(O)?O:K1(O),G=G&&!re?jr(G):0;var fe=O.length;return G<0&&(G=Ga(fe+G,0)),yk(O)?G<=fe&&O.indexOf(F,G)>-1:!!fe&&_h(O,F,G)>-1}var dMe=We(function(O,F,G){var re=-1,fe=typeof F=="function",be=Tc(O)?nt(O.length):[];return Xl(O,function(Pe){be[++re]=fe?es(F,Pe,G):Rh(Pe,F,G)}),be}),hMe=ak(function(O,F,G){wu(O,G,F)});function pk(O,F){var G=Ir(O)?va:Pg;return G(O,ar(F,3))}function fMe(O,F,G,re){return O==null?[]:(Ir(F)||(F=F==null?[]:[F]),G=re?n:G,Ir(G)||(G=G==null?[]:[G]),kb(O,F,G))}var pMe=ak(function(O,F,G){O[G?0:1].push(F)},function(){return[[],[]]});function mMe(O,F,G){var re=Ir(O)?mb:Th,fe=arguments.length<3;return re(O,ar(F,4),G,fe,Xl)}function gMe(O,F,G){var re=Ir(O)?d_:Th,fe=arguments.length<3;return re(O,ar(F,4),G,fe,F1)}function vMe(O,F){var G=Ir(O)?$c:wb;return G(O,vk(ar(F,3)))}function AMe(O){var F=Ir(O)?AA:Nt;return F(O)}function yMe(O,F,G){(G?tc(O,F,G):F===n)?F=1:F=jr(F);var re=Ir(O)?QE:jt;return re(O,F)}function bMe(O){var F=Ir(O)?Sb:Fn;return F(O)}function xMe(O){if(O==null)return 0;if(Tc(O))return yk(O)?hl(O):O.length;var F=wl(O);return F==de||F==ye?O.size:Tb(O).length}function EMe(O,F,G){var re=Ir(O)?Uv:Vr;return G&&tc(O,F,G)&&(F=n),re(O,ar(F,3))}var SMe=We(function(O,F){if(O==null)return[];var G=F.length;return G>1&&tc(O,F[0],F[1])?F=[]:G>2&&tc(F[0],F[1],F[2])&&(F=[F[0]]),kb(O,Ro(F,1),[])}),mk=UC||function(){return ma.Date.now()};function wMe(O,F){if(typeof F!="function")throw new Zl(s);return O=jr(O),function(){if(--O<1)return F.apply(this,arguments)}}function wW(O,F,G){return F=G?n:F,F=O&&F==null?O.length:F,Gf(O,C,n,n,n,n,F)}function _W(O,F){var G;if(typeof F!="function")throw new Zl(s);return O=jr(O),function(){return--O>0&&(G=F.apply(this,arguments)),O<=1&&(F=n),G}}var e4=We(function(O,F,G){var re=v;if(G.length){var fe=bu(G,G1(e4));re|=w}return Gf(O,re,F,G,fe)}),TW=We(function(O,F,G){var re=v|A;if(G.length){var fe=bu(G,G1(TW));re|=w}return Gf(F,re,O,G,fe)});function CW(O,F,G){F=G?n:F;var re=Gf(O,S,n,n,n,n,n,F);return re.placeholder=CW.placeholder,re}function kW(O,F,G){F=G?n:F;var re=Gf(O,x,n,n,n,n,n,F);return re.placeholder=kW.placeholder,re}function RW(O,F,G){var re,fe,be,Pe,Ue,Qe,_t=0,Ct=!1,$t=!1,mn=!0;if(typeof O!="function")throw new Zl(s);F=Ku(F)||0,oo(G)&&(Ct=!!G.leading,$t="maxWait"in G,be=$t?Ga(Ku(G.maxWait)||0,F):be,mn="trailing"in G?!!G.trailing:mn);function zn(Bo){var Td=re,qf=fe;return re=fe=n,_t=Bo,Pe=O.apply(qf,Td),Pe}function fr(Bo){return _t=Bo,Ue=eS(Zr,F),Ct?zn(Bo):Pe}function Gr(Bo){var Td=Bo-Qe,qf=Bo-_t,QW=F-Td;return $t?fo(QW,be-qf):QW}function pr(Bo){var Td=Bo-Qe,qf=Bo-_t;return Qe===n||Td>=F||Td<0||$t&&qf>=be}function Zr(){var Bo=mk();if(pr(Bo))return yi(Bo);Ue=eS(Zr,Gr(Bo))}function yi(Bo){return Ue=n,mn&&re?zn(Bo):(re=fe=n,Pe)}function eu(){Ue!==n&&Ji(Ue),_t=0,re=Qe=fe=Ue=n}function nc(){return Ue===n?Pe:yi(mk())}function tu(){var Bo=mk(),Td=pr(Bo);if(re=arguments,fe=this,Qe=Bo,Td){if(Ue===n)return fr(Qe);if($t)return Ji(Ue),Ue=eS(Zr,F),zn(Qe)}return Ue===n&&(Ue=eS(Zr,F)),Pe}return tu.cancel=eu,tu.flush=nc,tu}var _Me=We(function(O,F){return YE(O,1,F)}),TMe=We(function(O,F,G){return YE(O,Ku(F)||0,G)});function CMe(O){return Gf(O,k)}function gk(O,F){if(typeof O!="function"||F!=null&&typeof F!="function")throw new Zl(s);var G=function(){var re=arguments,fe=F?F.apply(this,re):re[0],be=G.cache;if(be.has(fe))return be.get(fe);var Pe=O.apply(this,re);return G.cache=be.set(fe,Pe)||be,Pe};return G.cache=new(gk.Cache||Su),G}gk.Cache=Su;function vk(O){if(typeof O!="function")throw new Zl(s);return function(){var F=arguments;switch(F.length){case 0:return!O.call(this);case 1:return!O.call(this,F[0]);case 2:return!O.call(this,F[0],F[1]);case 3:return!O.call(this,F[0],F[1],F[2])}return!O.apply(this,F)}}function kMe(O){return _W(2,O)}var RMe=xr(function(O,F){F=F.length==1&&Ir(F[0])?va(F[0],Ol(ar())):va(Ro(F,1),Ol(ar()));var G=F.length;return We(function(re){for(var fe=-1,be=fo(re.length,G);++fe<be;)re[fe]=F[fe].call(this,re[fe]);return es(O,this,re)})}),t4=We(function(O,F){var G=bu(F,G1(t4));return Gf(O,w,n,F,G)}),MW=We(function(O,F){var G=bu(F,G1(MW));return Gf(O,_,n,F,G)}),MMe=Vf(function(O,F){return Gf(O,R,n,n,n,F)});function NMe(O,F){if(typeof O!="function")throw new Zl(s);return F=F===n?F:jr(F),We(O,F)}function IMe(O,F){if(typeof O!="function")throw new Zl(s);return F=F==null?0:Ga(jr(F),0),We(function(G){var re=G[F],fe=ui(G,0,F);return re&&Wd(fe,re),es(O,this,fe)})}function PMe(O,F,G){var re=!0,fe=!0;if(typeof O!="function")throw new Zl(s);return oo(G)&&(re="leading"in G?!!G.leading:re,fe="trailing"in G?!!G.trailing:fe),RW(O,F,{leading:re,maxWait:F,trailing:fe})}function OMe(O){return wW(O,1)}function LMe(O,F){return t4(hr(F),O)}function BMe(){if(!arguments.length)return[];var O=arguments[0];return Ir(O)?O:[O]}function DMe(O){return Ws(O,p)}function $Me(O,F){return F=typeof F=="function"?F:n,Ws(O,p,F)}function FMe(O){return Ws(O,h|p)}function jMe(O,F){return F=typeof F=="function"?F:n,Ws(O,h|p,F)}function HMe(O,F){return F==null||$1(O,F,$s(F))}function _d(O,F){return O===F||O!==O&&F!==F}var UMe=ck(j1),zMe=ck(function(O,F){return O>=F}),r0=T_(function(){return arguments}())?T_:function(O){return So(O)&&Yi.call(O,"callee")&&!g_.call(O,"callee")},Ir=nt.isArray,GMe=Jc?Ol(Jc):tk;function Tc(O){return O!=null&&Ak(O.length)&&!Wf(O)}function Lo(O){return So(O)&&Tc(O)}function VMe(O){return O===!0||O===!1||So(O)&&ns(O)==X}var Mm=BN||h4,KMe=wh?Ol(wh):zf;function WMe(O){return So(O)&&O.nodeType===1&&!tS(O)}function QMe(O){if(O==null)return!0;if(Tc(O)&&(Ir(O)||typeof O=="string"||typeof O.splice=="function"||Mm(O)||V1(O)||r0(O)))return!O.length;var F=wl(O);if(F==de||F==ye)return!O.size;if(XE(O))return!Tb(O).length;for(var G in O)if(Yi.call(O,G))return!1;return!0}function qMe(O,F){return fl(O,F)}function YMe(O,F,G){G=typeof G=="function"?G:n;var re=G?G(O,F):n;return re===n?fl(O,F,n,G):!!re}function n4(O){if(!So(O))return!1;var F=ns(O);return F==ne||F==J||typeof O.message=="string"&&typeof O.name=="string"&&!tS(O)}function JMe(O){return typeof O=="number"&&Kv(O)}function Wf(O){if(!oo(O))return!1;var F=ns(O);return F==ie||F==he||F==ee||F==ze}function NW(O){return typeof O=="number"&&O==jr(O)}function Ak(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=B}function oo(O){var F=typeof O;return O!=null&&(F=="object"||F=="function")}function So(O){return O!=null&&typeof O=="object"}var IW=Kd?Ol(Kd):zN;function ZMe(O,F){return O===F||H1(O,F,KO(F))}function XMe(O,F,G){return G=typeof G=="function"?G:n,H1(O,F,KO(F),G)}function eNe(O){return PW(O)&&O!=+O}function tNe(O){if($ke(O))throw new yr(o);return Ig(O)}function nNe(O){return O===null}function rNe(O){return O==null}function PW(O){return typeof O=="number"||So(O)&&ns(O)==ce}function tS(O){if(!So(O)||ns(O)!=Me)return!1;var F=xu(O);if(F===null)return!0;var G=Yi.call(F,"constructor")&&F.constructor;return typeof G=="function"&&G instanceof G&&mA.call(G)==jC}var r4=Pp?Ol(Pp):C_;function iNe(O){return NW(O)&&O>=-B&&O<=B}var OW=cA?Ol(cA):GN;function yk(O){return typeof O=="string"||!Ir(O)&&So(O)&&ns(O)==me}function Xc(O){return typeof O=="symbol"||So(O)&&ns(O)==le}var V1=Hv?Ol(Hv):Xv;function aNe(O){return O===n}function oNe(O){return So(O)&&wl(O)==Ne}function sNe(O){return So(O)&&ns(O)==_e}var lNe=ck(Cb),cNe=ck(function(O,F){return O<=F});function LW(O){if(!O)return[];if(Tc(O))return yk(O)?dc(O):Ei(O);if(Cg&&O[Cg])return BC(O[Cg]());var F=wl(O),G=F==de?Bp:F==ye?zu:K1;return G(O)}function Qf(O){if(!O)return O===0?O:0;if(O=Ku(O),O===D||O===-D){var F=O<0?-1:1;return F*j}return O===O?O:0}function jr(O){var F=Qf(O),G=F%1;return F===F?G?F-G:F:0}function BW(O){return O?jc(jr(O),0,U):0}function Ku(O){if(typeof O=="number")return O;if(Xc(O))return H;if(oo(O)){var F=typeof O.valueOf=="function"?O.valueOf():O;O=oo(F)?F+"":F}if(typeof O!="string")return O===0?O:+O;O=dA(O);var G=Yt.test(O);return G||jn.test(O)?Ja(O.slice(2),G?2:8):Pt.test(O)?H:+O}function DW(O){return ks(O,Cc(O))}function uNe(O){return O?jc(jr(O),-B,B):O===0?O:0}function sa(O){return O==null?"":W(O)}var dNe=U1(function(O,F){if(XE(F)||Tc(F)){ks(F,$s(F),O);return}for(var G in F)Yi.call(F,G)&&Hf(O,G,F[G])}),$W=U1(function(O,F){ks(F,Cc(F),O)}),bk=U1(function(O,F,G,re){ks(F,Cc(F),O,re)}),hNe=U1(function(O,F,G,re){ks(F,$s(F),O,re)}),fNe=Vf(D1);function pNe(O,F){var G=jp(O);return F==null?G:wd(G,F)}var mNe=We(function(O,F){O=aa(O);var G=-1,re=F.length,fe=re>2?F[2]:n;for(fe&&tc(F[0],F[1],fe)&&(re=1);++G<re;)for(var be=F[G],Pe=Cc(be),Ue=-1,Qe=Pe.length;++Ue<Qe;){var _t=Pe[Ue],Ct=O[_t];(Ct===n||_d(Ct,mf[_t])&&!Yi.call(O,_t))&&(O[_t]=be[_t])}return O}),gNe=We(function(O){return O.push(n,tW),es(FW,n,O)});function vNe(O,F){return DE(O,ar(F,3),Ll)}function ANe(O,F){return DE(O,ar(F,3),Uf)}function yNe(O,F){return O==null?O:Jv(O,ar(F,3),Cc)}function bNe(O,F){return O==null?O:Zd(O,ar(F,3),Cc)}function xNe(O,F){return O&&Ll(O,ar(F,3))}function ENe(O,F){return O&&Uf(O,ar(F,3))}function SNe(O){return O==null?[]:Ng(O,$s(O))}function wNe(O){return O==null?[]:Ng(O,Cc(O))}function i4(O,F,G){var re=O==null?n:ec(O,F);return re===n?G:re}function _Ne(O,F){return O!=null&&iW(O,F,$O)}function a4(O,F){return O!=null&&iW(O,F,UN)}var TNe=YK(function(O,F,G){F!=null&&typeof F.toString!="function"&&(F=M1.call(F)),O[F]=G},s4(kc)),CNe=YK(function(O,F,G){F!=null&&typeof F.toString!="function"&&(F=M1.call(F)),Yi.call(O,F)?O[F].push(G):O[F]=[G]},ar),kNe=We(Rh);function $s(O){return Tc(O)?kg(O):Tb(O)}function Cc(O){return Tc(O)?kg(O,!0):VN(O)}function RNe(O,F){var G={};return F=ar(F,3),Ll(O,function(re,fe,be){wu(G,F(re,fe,be),re)}),G}function MNe(O,F){var G={};return F=ar(F,3),Ll(O,function(re,fe,be){wu(G,fe,F(re,fe,be))}),G}var NNe=U1(function(O,F,G){e0(O,F,G)}),FW=U1(function(O,F,G,re){e0(O,F,G,re)}),INe=Vf(function(O,F){var G={};if(O==null)return G;var re=!1;F=va(F,function(be){return be=rr(be,O),re||(re=be.length>1),be}),ks(O,GO(O),G),re&&(G=Ws(G,h|f|p,Tke));for(var fe=F.length;fe--;)Ae(G,F[fe]);return G});function PNe(O,F){return jW(O,vk(ar(F)))}var ONe=Vf(function(O,F){return O==null?{}:N_(O,F)});function jW(O,F){if(O==null)return{};var G=va(GO(O),function(re){return[re]});return F=ar(F),JE(O,G,function(re,fe){return F(re,fe[0])})}function LNe(O,F,G){F=rr(F,O);var re=-1,fe=F.length;for(fe||(fe=1,O=n);++re<fe;){var be=O==null?n:O[Mh(F[re])];be===n&&(re=fe,be=G),O=Wf(be)?be.call(O):be}return O}function BNe(O,F,G){return O==null?O:bt(O,F,G)}function DNe(O,F,G,re){return re=typeof re=="function"?re:n,O==null?O:bt(O,F,G,re)}var HW=XK($s),UW=XK(Cc);function $Ne(O,F,G){var re=Ir(O),fe=re||Mm(O)||V1(O);if(F=ar(F,4),G==null){var be=O&&O.constructor;fe?G=re?new be:[]:oo(O)?G=Wf(be)?jp(xu(O)):{}:G={}}return(fe?Vs:Ll)(O,function(Pe,Ue,Qe){return F(G,Pe,Ue,Qe)}),G}function FNe(O,F){return O==null?!0:Ae(O,F)}function jNe(O,F,G){return O==null?O:we(O,F,hr(G))}function HNe(O,F,G,re){return re=typeof re=="function"?re:n,O==null?O:we(O,F,hr(G),re)}function K1(O){return O==null?[]:C1(O,$s(O))}function UNe(O){return O==null?[]:C1(O,Cc(O))}function zNe(O,F,G){return G===n&&(G=F,F=n),G!==n&&(G=Ku(G),G=G===G?G:0),F!==n&&(F=Ku(F),F=F===F?F:0),jc(Ku(O),F,G)}function GNe(O,F,G){return F=Qf(F),G===n?(G=F,F=0):G=Qf(G),O=Ku(O),ek(O,F,G)}function VNe(O,F,G){if(G&&typeof G!="boolean"&&tc(O,F,G)&&(F=G=n),G===n&&(typeof F=="boolean"?(G=F,F=n):typeof O=="boolean"&&(G=O,O=n)),O===n&&F===n?(O=0,F=1):(O=Qf(O),F===n?(F=O,O=0):F=Qf(F)),O>F){var re=O;O=F,F=re}if(G||O%1||F%1){var fe=rd();return fo(O+fe*(F-O+dl("1e-"+((fe+"").length-1))),F)}return xe(O,F)}var KNe=z1(function(O,F,G){return F=F.toLowerCase(),O+(G?zW(F):F)});function zW(O){return o4(sa(O).toLowerCase())}function GW(O){return O=sa(O),O&&O.replace(si,_g).replace(BE,"")}function WNe(O,F,G){O=sa(O),F=W(F);var re=O.length;G=G===n?re:jc(jr(G),0,re);var fe=G;return G-=F.length,G>=0&&O.slice(G,fe)==F}function QNe(O){return O=sa(O),O&&dt.test(O)?O.replace(un,LN):O}function qNe(O){return O=sa(O),O&&dr.test(O)?O.replace(on,"\\$&"):O}var YNe=z1(function(O,F,G){return O+(G?"-":"")+F.toLowerCase()}),JNe=z1(function(O,F,G){return O+(G?" ":"")+F.toLowerCase()}),ZNe=WK("toLowerCase");function XNe(O,F,G){O=sa(O),F=jr(F);var re=F?hl(O):0;if(!F||re>=F)return O;var fe=(F-re)/2;return lk(gf(fe),G)+O+lk(vA(fe),G)}function eIe(O,F,G){O=sa(O),F=jr(F);var re=F?hl(O):0;return F&&re<F?O+lk(F-re,G):O}function tIe(O,F,G){O=sa(O),F=jr(F);var re=F?hl(O):0;return F&&re<F?lk(F-re,G)+O:O}function nIe(O,F,G){return G||F==null?F=0:F&&(F=+F),P1(sa(O).replace($e,""),F||0)}function rIe(O,F,G){return(G?tc(O,F,G):F===n)?F=1:F=jr(F),Ve(sa(O),F)}function iIe(){var O=arguments,F=sa(O[0]);return O.length<3?F:F.replace(O[1],O[2])}var aIe=z1(function(O,F,G){return O+(G?"_":"")+F.toLowerCase()});function oIe(O,F,G){return G&&typeof G!="number"&&tc(O,F,G)&&(F=G=n),G=G===n?U:G>>>0,G?(O=sa(O),O&&(typeof F=="string"||F!=null&&!r4(F))&&(F=W(F),!F&&Lp(O))?ui(dc(O),0,G):O.split(F,G)):[]}var sIe=z1(function(O,F,G){return O+(G?" ":"")+o4(F)});function lIe(O,F,G){return O=sa(O),G=G==null?0:jc(jr(G),0,O.length),F=W(F),O.slice(G,G+F.length)==F}function cIe(O,F,G){var re=ve.templateSettings;G&&tc(O,F,G)&&(F=n),O=sa(O),F=bk({},F,re,eW);var fe=bk({},F.imports,re.imports,eW),be=$s(fe),Pe=C1(fe,be),Ue,Qe,_t=0,Ct=F.interpolate||Qi,$t="__p += '",mn=hA((F.escape||Qi).source+"|"+Ct.source+"|"+(Ct===Kt?ft:Qi).source+"|"+(F.evaluate||Qi).source+"|$","g"),zn="//# sourceURL="+(Yi.call(F,"sourceURL")?(F.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jv+"]")+`
`;O.replace(mn,function(pr,Zr,yi,eu,nc,tu){return yi||(yi=eu),$t+=O.slice(_t,tu).replace(st,LC),Zr&&(Ue=!0,$t+=`' +
__e(`+Zr+`) +
'`),nc&&(Qe=!0,$t+=`';
`+nc+`;
__p += '`),yi&&($t+=`' +
((__t = (`+yi+`)) == null ? '' : __t) +
'`),_t=tu+pr.length,pr}),$t+=`';
`;var fr=Yi.call(F,"variable")&&F.variable;if(!fr)$t=`with (obj) {
`+$t+`
}
`;else if(vt.test(fr))throw new yr(l);$t=(Qe?$t.replace(ut,""):$t).replace(lt,"$1").replace(pn,"$1;"),$t="function("+(fr||"obj")+`) {
`+(fr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Ue?", __e = _.escape":"")+(Qe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+$t+`return __p
}`;var Gr=KW(function(){return vi(be,zn+"return "+$t).apply(n,Pe)});if(Gr.source=$t,n4(Gr))throw Gr;return Gr}function uIe(O){return sa(O).toLowerCase()}function dIe(O){return sa(O).toUpperCase()}function hIe(O,F,G){if(O=sa(O),O&&(G||F===n))return dA(O);if(!O||!(F=W(F)))return O;var re=dc(O),fe=dc(F),be=gb(re,fe),Pe=Cm(re,fe)+1;return ui(re,be,Pe).join("")}function fIe(O,F,G){if(O=sa(O),O&&(G||F===n))return O.slice(0,R1(O)+1);if(!O||!(F=W(F)))return O;var re=dc(O),fe=Cm(re,dc(F))+1;return ui(re,0,fe).join("")}function pIe(O,F,G){if(O=sa(O),O&&(G||F===n))return O.replace($e,"");if(!O||!(F=W(F)))return O;var re=dc(O),fe=gb(re,dc(F));return ui(re,fe).join("")}function mIe(O,F){var G=P,re=N;if(oo(F)){var fe="separator"in F?F.separator:fe;G="length"in F?jr(F.length):G,re="omission"in F?W(F.omission):re}O=sa(O);var be=O.length;if(Lp(O)){var Pe=dc(O);be=Pe.length}if(G>=be)return O;var Ue=G-hl(re);if(Ue<1)return re;var Qe=Pe?ui(Pe,0,Ue).join(""):O.slice(0,Ue);if(fe===n)return Qe+re;if(Pe&&(Ue+=Qe.length-Ue),r4(fe)){if(O.slice(Ue).search(fe)){var _t,Ct=Qe;for(fe.global||(fe=hA(fe.source,sa(rt.exec(fe))+"g")),fe.lastIndex=0;_t=fe.exec(Ct);)var $t=_t.index;Qe=Qe.slice(0,$t===n?Ue:$t)}}else if(O.indexOf(W(fe),Ue)!=Ue){var mn=Qe.lastIndexOf(fe);mn>-1&&(Qe=Qe.slice(0,mn))}return Qe+re}function gIe(O){return O=sa(O),O&&ur.test(O)?O.replace(sn,pf):O}var vIe=z1(function(O,F,G){return O+(G?" ":"")+F.toUpperCase()}),o4=WK("toUpperCase");function VW(O,F,G){return O=sa(O),F=G?n:F,F===n?f_(O)?Gv(O):ON(O):O.match(F)||[]}var KW=We(function(O,F){try{return es(O,n,F)}catch(G){return n4(G)?G:new yr(G)}}),AIe=Vf(function(O,F){return Vs(F,function(G){G=Mh(G),wu(O,G,e4(O[G],O))}),O});function yIe(O){var F=O==null?0:O.length,G=ar();return O=F?va(O,function(re){if(typeof re[1]!="function")throw new Zl(s);return[G(re[0]),re[1]]}):[],We(function(re){for(var fe=-1;++fe<F;){var be=O[fe];if(es(be[0],this,re))return es(be[1],this,re)}})}function bIe(O){return qE(Ws(O,h))}function s4(O){return function(){return O}}function xIe(O,F){return O==null||O!==O?F:O}var EIe=qK(),SIe=qK(!0);function kc(O){return O}function l4(O){return k_(typeof O=="function"?O:Ws(O,h))}function wIe(O){return nk(Ws(O,h))}function _Ie(O,F){return R_(O,Ws(F,h))}var TIe=We(function(O,F){return function(G){return Rh(G,O,F)}}),CIe=We(function(O,F){return function(G){return Rh(O,G,F)}});function c4(O,F,G){var re=$s(F),fe=Ng(F,re);G==null&&!(oo(F)&&(fe.length||!re.length))&&(G=F,F=O,O=this,fe=Ng(F,$s(F)));var be=!(oo(G)&&"chain"in G)||!!G.chain,Pe=Wf(O);return Vs(fe,function(Ue){var Qe=F[Ue];O[Ue]=Qe,Pe&&(O.prototype[Ue]=function(){var _t=this.__chain__;if(be||_t){var Ct=O(this.__wrapped__),$t=Ct.__actions__=Ei(this.__actions__);return $t.push({func:Qe,args:arguments,thisArg:O}),Ct.__chain__=_t,Ct}return Qe.apply(O,Wd([this.value()],arguments))})}),O}function kIe(){return ma._===this&&(ma._=p_),this}function u4(){}function RIe(O){return O=jr(O),We(function(F){return yA(F,O)})}var MIe=HO(va),NIe=HO(u_),IIe=HO(Uv);function WW(O){return QO(O)?_1(Mh(O)):I_(O)}function PIe(O){return function(F){return O==null?n:ec(O,F)}}var OIe=JK(),LIe=JK(!0);function d4(){return[]}function h4(){return!1}function BIe(){return{}}function DIe(){return""}function $Ie(){return!0}function FIe(O,F){if(O=jr(O),O<1||O>B)return[];var G=U,re=fo(O,U);F=ar(F),O-=U;for(var fe=ff(re,F);++G<O;)F(G);return fe}function jIe(O){return Ir(O)?va(O,Mh):Xc(O)?[O]:Ei(fW(sa(O)))}function HIe(O){var F=++FC;return sa(O)+F}var UIe=sk(function(O,F){return O+F},0),zIe=UO("ceil"),GIe=sk(function(O,F){return O/F},1),VIe=UO("floor");function KIe(O){return O&&O.length?Mg(O,kc,j1):n}function WIe(O,F){return O&&O.length?Mg(O,ar(F,2),j1):n}function QIe(O){return uA(O,kc)}function qIe(O,F){return uA(O,ar(F,2))}function YIe(O){return O&&O.length?Mg(O,kc,Cb):n}function JIe(O,F){return O&&O.length?Mg(O,ar(F,2),Cb):n}var ZIe=sk(function(O,F){return O*F},1),XIe=UO("round"),e3e=sk(function(O,F){return O-F},0);function t3e(O){return O&&O.length?Tm(O,kc):0}function n3e(O,F){return O&&O.length?Tm(O,ar(F,2)):0}return ve.after=wMe,ve.ary=wW,ve.assign=dNe,ve.assignIn=$W,ve.assignInWith=bk,ve.assignWith=hNe,ve.at=fNe,ve.before=_W,ve.bind=e4,ve.bindAll=AIe,ve.bindKey=TW,ve.castArray=BMe,ve.chain=xW,ve.chunk=Vke,ve.compact=Kke,ve.concat=Wke,ve.cond=yIe,ve.conforms=bIe,ve.constant=s4,ve.countBy=tMe,ve.create=pNe,ve.curry=CW,ve.curryRight=kW,ve.debounce=RW,ve.defaults=mNe,ve.defaultsDeep=gNe,ve.defer=_Me,ve.delay=TMe,ve.difference=Qke,ve.differenceBy=qke,ve.differenceWith=Yke,ve.drop=Jke,ve.dropRight=Zke,ve.dropRightWhile=Xke,ve.dropWhile=eRe,ve.fill=tRe,ve.filter=rMe,ve.flatMap=oMe,ve.flatMapDeep=sMe,ve.flatMapDepth=lMe,ve.flatten=vW,ve.flattenDeep=nRe,ve.flattenDepth=rRe,ve.flip=CMe,ve.flow=EIe,ve.flowRight=SIe,ve.fromPairs=iRe,ve.functions=SNe,ve.functionsIn=wNe,ve.groupBy=cMe,ve.initial=oRe,ve.intersection=sRe,ve.intersectionBy=lRe,ve.intersectionWith=cRe,ve.invert=TNe,ve.invertBy=CNe,ve.invokeMap=dMe,ve.iteratee=l4,ve.keyBy=hMe,ve.keys=$s,ve.keysIn=Cc,ve.map=pk,ve.mapKeys=RNe,ve.mapValues=MNe,ve.matches=wIe,ve.matchesProperty=_Ie,ve.memoize=gk,ve.merge=NNe,ve.mergeWith=FW,ve.method=TIe,ve.methodOf=CIe,ve.mixin=c4,ve.negate=vk,ve.nthArg=RIe,ve.omit=INe,ve.omitBy=PNe,ve.once=kMe,ve.orderBy=fMe,ve.over=MIe,ve.overArgs=RMe,ve.overEvery=NIe,ve.overSome=IIe,ve.partial=t4,ve.partialRight=MW,ve.partition=pMe,ve.pick=ONe,ve.pickBy=jW,ve.property=WW,ve.propertyOf=PIe,ve.pull=fRe,ve.pullAll=yW,ve.pullAllBy=pRe,ve.pullAllWith=mRe,ve.pullAt=gRe,ve.range=OIe,ve.rangeRight=LIe,ve.rearg=MMe,ve.reject=vMe,ve.remove=vRe,ve.rest=NMe,ve.reverse=ZO,ve.sampleSize=yMe,ve.set=BNe,ve.setWith=DNe,ve.shuffle=bMe,ve.slice=ARe,ve.sortBy=SMe,ve.sortedUniq=_Re,ve.sortedUniqBy=TRe,ve.split=oIe,ve.spread=IMe,ve.tail=CRe,ve.take=kRe,ve.takeRight=RRe,ve.takeRightWhile=MRe,ve.takeWhile=NRe,ve.tap=KRe,ve.throttle=PMe,ve.thru=fk,ve.toArray=LW,ve.toPairs=HW,ve.toPairsIn=UW,ve.toPath=jIe,ve.toPlainObject=DW,ve.transform=$Ne,ve.unary=OMe,ve.union=IRe,ve.unionBy=PRe,ve.unionWith=ORe,ve.uniq=LRe,ve.uniqBy=BRe,ve.uniqWith=DRe,ve.unset=FNe,ve.unzip=XO,ve.unzipWith=bW,ve.update=jNe,ve.updateWith=HNe,ve.values=K1,ve.valuesIn=UNe,ve.without=$Re,ve.words=VW,ve.wrap=LMe,ve.xor=FRe,ve.xorBy=jRe,ve.xorWith=HRe,ve.zip=URe,ve.zipObject=zRe,ve.zipObjectDeep=GRe,ve.zipWith=VRe,ve.entries=HW,ve.entriesIn=UW,ve.extend=$W,ve.extendWith=bk,c4(ve,ve),ve.add=UIe,ve.attempt=KW,ve.camelCase=KNe,ve.capitalize=zW,ve.ceil=zIe,ve.clamp=zNe,ve.clone=DMe,ve.cloneDeep=FMe,ve.cloneDeepWith=jMe,ve.cloneWith=$Me,ve.conformsTo=HMe,ve.deburr=GW,ve.defaultTo=xIe,ve.divide=GIe,ve.endsWith=WNe,ve.eq=_d,ve.escape=QNe,ve.escapeRegExp=qNe,ve.every=nMe,ve.find=iMe,ve.findIndex=mW,ve.findKey=vNe,ve.findLast=aMe,ve.findLastIndex=gW,ve.findLastKey=ANe,ve.floor=VIe,ve.forEach=EW,ve.forEachRight=SW,ve.forIn=yNe,ve.forInRight=bNe,ve.forOwn=xNe,ve.forOwnRight=ENe,ve.get=i4,ve.gt=UMe,ve.gte=zMe,ve.has=_Ne,ve.hasIn=a4,ve.head=AW,ve.identity=kc,ve.includes=uMe,ve.indexOf=aRe,ve.inRange=GNe,ve.invoke=kNe,ve.isArguments=r0,ve.isArray=Ir,ve.isArrayBuffer=GMe,ve.isArrayLike=Tc,ve.isArrayLikeObject=Lo,ve.isBoolean=VMe,ve.isBuffer=Mm,ve.isDate=KMe,ve.isElement=WMe,ve.isEmpty=QMe,ve.isEqual=qMe,ve.isEqualWith=YMe,ve.isError=n4,ve.isFinite=JMe,ve.isFunction=Wf,ve.isInteger=NW,ve.isLength=Ak,ve.isMap=IW,ve.isMatch=ZMe,ve.isMatchWith=XMe,ve.isNaN=eNe,ve.isNative=tNe,ve.isNil=rNe,ve.isNull=nNe,ve.isNumber=PW,ve.isObject=oo,ve.isObjectLike=So,ve.isPlainObject=tS,ve.isRegExp=r4,ve.isSafeInteger=iNe,ve.isSet=OW,ve.isString=yk,ve.isSymbol=Xc,ve.isTypedArray=V1,ve.isUndefined=aNe,ve.isWeakMap=oNe,ve.isWeakSet=sNe,ve.join=uRe,ve.kebabCase=YNe,ve.last=Vu,ve.lastIndexOf=dRe,ve.lowerCase=JNe,ve.lowerFirst=ZNe,ve.lt=lNe,ve.lte=cNe,ve.max=KIe,ve.maxBy=WIe,ve.mean=QIe,ve.meanBy=qIe,ve.min=YIe,ve.minBy=JIe,ve.stubArray=d4,ve.stubFalse=h4,ve.stubObject=BIe,ve.stubString=DIe,ve.stubTrue=$Ie,ve.multiply=ZIe,ve.nth=hRe,ve.noConflict=kIe,ve.noop=u4,ve.now=mk,ve.pad=XNe,ve.padEnd=eIe,ve.padStart=tIe,ve.parseInt=nIe,ve.random=VNe,ve.reduce=mMe,ve.reduceRight=gMe,ve.repeat=rIe,ve.replace=iIe,ve.result=LNe,ve.round=XIe,ve.runInContext=Ke,ve.sample=AMe,ve.size=xMe,ve.snakeCase=aIe,ve.some=EMe,ve.sortedIndex=yRe,ve.sortedIndexBy=bRe,ve.sortedIndexOf=xRe,ve.sortedLastIndex=ERe,ve.sortedLastIndexBy=SRe,ve.sortedLastIndexOf=wRe,ve.startCase=sIe,ve.startsWith=lIe,ve.subtract=e3e,ve.sum=t3e,ve.sumBy=n3e,ve.template=cIe,ve.times=FIe,ve.toFinite=Qf,ve.toInteger=jr,ve.toLength=BW,ve.toLower=uIe,ve.toNumber=Ku,ve.toSafeInteger=uNe,ve.toString=sa,ve.toUpper=dIe,ve.trim=hIe,ve.trimEnd=fIe,ve.trimStart=pIe,ve.truncate=mIe,ve.unescape=gIe,ve.uniqueId=HIe,ve.upperCase=vIe,ve.upperFirst=o4,ve.each=EW,ve.eachRight=SW,ve.first=AW,c4(ve,function(){var O={};return Ll(ve,function(F,G){Yi.call(ve.prototype,G)||(O[G]=F)}),O}(),{chain:!1}),ve.VERSION=r,Vs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(O){ve[O].placeholder=ve}),Vs(["drop","take"],function(O,F){Wr.prototype[O]=function(G){G=G===n?1:Ga(jr(G),0);var re=this.__filtered__&&!F?new Wr(this):this.clone();return re.__filtered__?re.__takeCount__=fo(G,re.__takeCount__):re.__views__.push({size:fo(G,U),type:O+(re.__dir__<0?"Right":"")}),re},Wr.prototype[O+"Right"]=function(G){return this.reverse()[O](G).reverse()}}),Vs(["filter","map","takeWhile"],function(O,F){var G=F+1,re=G==b||G==M;Wr.prototype[O]=function(fe){var be=this.clone();return be.__iteratees__.push({iteratee:ar(fe,3),type:G}),be.__filtered__=be.__filtered__||re,be}}),Vs(["head","last"],function(O,F){var G="take"+(F?"Right":"");Wr.prototype[O]=function(){return this[G](1).value()[0]}}),Vs(["initial","tail"],function(O,F){var G="drop"+(F?"":"Right");Wr.prototype[O]=function(){return this.__filtered__?new Wr(this):this[G](1)}}),Wr.prototype.compact=function(){return this.filter(kc)},Wr.prototype.find=function(O){return this.filter(O).head()},Wr.prototype.findLast=function(O){return this.reverse().find(O)},Wr.prototype.invokeMap=We(function(O,F){return typeof O=="function"?new Wr(this):this.map(function(G){return Rh(G,O,F)})}),Wr.prototype.reject=function(O){return this.filter(vk(ar(O)))},Wr.prototype.slice=function(O,F){O=jr(O);var G=this;return G.__filtered__&&(O>0||F<0)?new Wr(G):(O<0?G=G.takeRight(-O):O&&(G=G.drop(O)),F!==n&&(F=jr(F),G=F<0?G.dropRight(-F):G.take(F-O)),G)},Wr.prototype.takeRightWhile=function(O){return this.reverse().takeWhile(O).reverse()},Wr.prototype.toArray=function(){return this.take(U)},Ll(Wr.prototype,function(O,F){var G=/^(?:filter|find|map|reject)|While$/.test(F),re=/^(?:head|last)$/.test(F),fe=ve[re?"take"+(F=="last"?"Right":""):F],be=re||/^find/.test(F);fe&&(ve.prototype[F]=function(){var Pe=this.__wrapped__,Ue=re?[1]:arguments,Qe=Pe instanceof Wr,_t=Ue[0],Ct=Qe||Ir(Pe),$t=function(Zr){var yi=fe.apply(ve,Wd([Zr],Ue));return re&&mn?yi[0]:yi};Ct&&G&&typeof _t=="function"&&_t.length!=1&&(Qe=Ct=!1);var mn=this.__chain__,zn=!!this.__actions__.length,fr=be&&!mn,Gr=Qe&&!zn;if(!be&&Ct){Pe=Gr?Pe:new Wr(this);var pr=O.apply(Pe,Ue);return pr.__actions__.push({func:fk,args:[$t],thisArg:n}),new nl(pr,mn)}return fr&&Gr?O.apply(this,Ue):(pr=this.thru($t),fr?re?pr.value()[0]:pr.value():pr)})}),Vs(["pop","push","shift","sort","splice","unshift"],function(O){var F=fA[O],G=/^(?:push|sort|unshift)$/.test(O)?"tap":"thru",re=/^(?:pop|shift)$/.test(O);ve.prototype[O]=function(){var fe=arguments;if(re&&!this.__chain__){var be=this.value();return F.apply(Ir(be)?be:[],fe)}return this[G](function(Pe){return F.apply(Ir(Pe)?Pe:[],fe)})}}),Ll(Wr.prototype,function(O,F){var G=ve[F];if(G){var re=G.name+"";Yi.call(Fp,re)||(Fp[re]=[]),Fp[re].push({name:F,func:G})}}),Fp[ok(n,A).name]=[{name:"wrapper",func:n}],Wr.prototype.clone=y_,Wr.prototype.reverse=HN,Wr.prototype.value=VC,ve.prototype.at=WRe,ve.prototype.chain=QRe,ve.prototype.commit=qRe,ve.prototype.next=YRe,ve.prototype.plant=ZRe,ve.prototype.reverse=XRe,ve.prototype.toJSON=ve.prototype.valueOf=ve.prototype.value=eMe,ve.prototype.first=ve.prototype.head,Cg&&(ve.prototype[Cg]=JRe),ve},Fc=Tg();Sl?((Sl.exports=Fc)._=Fc,Cs._=Fc):ma._=Fc}).call(en)})(r0e,r0e.exports);var Ft=r0e.exports;const nae=Li(Ft);function zIr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var fG=zIr,GIr=typeof en=="object"&&en&&en.Object===Object&&en,GYt=GIr,VIr=GYt,KIr=typeof self=="object"&&self&&self.Object===Object&&self,WIr=VIr||KIr||Function("return this")(),hC=WIr,QIr=hC,qIr=function(){return QIr.Date.now()},YIr=qIr,JIr=/\s/;function ZIr(t){for(var e=t.length;e--&&JIr.test(t.charAt(e)););return e}var XIr=ZIr,e3r=XIr,t3r=/^\s+/;function n3r(t){return t&&t.slice(0,e3r(t)+1).replace(t3r,"")}var r3r=n3r,i3r=hC,a3r=i3r.Symbol,rae=a3r,s0t=rae,VYt=Object.prototype,o3r=VYt.hasOwnProperty,s3r=VYt.toString,bQ=s0t?s0t.toStringTag:void 0;function l3r(t){var e=o3r.call(t,bQ),n=t[bQ];try{t[bQ]=void 0;var r=!0}catch{}var a=s3r.call(t);return r&&(e?t[bQ]=n:delete t[bQ]),a}var c3r=l3r,u3r=Object.prototype,d3r=u3r.toString;function h3r(t){return d3r.call(t)}var f3r=h3r,l0t=rae,p3r=c3r,m3r=f3r,g3r="[object Null]",v3r="[object Undefined]",c0t=l0t?l0t.toStringTag:void 0;function A3r(t){return t==null?t===void 0?v3r:g3r:c0t&&c0t in Object(t)?p3r(t):m3r(t)}var iae=A3r;function y3r(t){return t!=null&&typeof t=="object"}var pG=y3r,b3r=iae,x3r=pG,E3r="[object Symbol]";function S3r(t){return typeof t=="symbol"||x3r(t)&&b3r(t)==E3r}var aae=S3r,w3r=r3r,u0t=fG,_3r=aae,d0t=0/0,T3r=/^[-+]0x[0-9a-f]+$/i,C3r=/^0b[01]+$/i,k3r=/^0o[0-7]+$/i,R3r=parseInt;function M3r(t){if(typeof t=="number")return t;if(_3r(t))return d0t;if(u0t(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=u0t(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=w3r(t);var n=C3r.test(t);return n||k3r.test(t)?R3r(t.slice(2),n?2:8):T3r.test(t)?d0t:+t}var KYt=M3r,N3r=fG,f5e=YIr,h0t=KYt,I3r="Expected a function",P3r=Math.max,O3r=Math.min;function L3r(t,e,n){var r,a,o,s,l,c,u=0,d=!1,h=!1,f=!0;if(typeof t!="function")throw new TypeError(I3r);e=h0t(e)||0,N3r(n)&&(d=!!n.leading,h="maxWait"in n,o=h?P3r(h0t(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f);function p(_){var C=r,R=a;return r=a=void 0,u=_,s=t.apply(R,C),s}function m(_){return u=_,l=setTimeout(A,e),d?p(_):s}function g(_){var C=_-c,R=_-u,k=e-C;return h?O3r(k,o-R):k}function v(_){var C=_-c,R=_-u;return c===void 0||C>=e||C<0||h&&R>=o}function A(){var _=f5e();if(v(_))return y(_);l=setTimeout(A,g(_))}function y(_){return l=void 0,f&&r?p(_):(r=a=void 0,s)}function S(){l!==void 0&&clearTimeout(l),u=0,r=c=a=l=void 0}function x(){return l===void 0?s:y(f5e())}function w(){var _=f5e(),C=v(_);if(r=arguments,a=this,c=_,C){if(l===void 0)return m(c);if(h)return clearTimeout(l),l=setTimeout(A,e),p(c)}return l===void 0&&(l=setTimeout(A,e)),s}return w.cancel=S,w.flush=x,w}var B3r=L3r;const WYt=Li(B3r);var MXe={},p5e={};const D3r=Uu(kbr);var f0t;function Ps(){return f0t||(f0t=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=D3r}(p5e)),p5e}var $3r=As;Object.defineProperty(MXe,"__esModule",{value:!0});var Wl=MXe.default=void 0,F3r=$3r(Ps()),j3r=E;Wl=MXe.default=(0,F3r.default)((0,j3r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var NXe={},H3r=As;Object.defineProperty(NXe,"__esModule",{value:!0});var hEe=NXe.default=void 0,U3r=H3r(Ps()),z3r=E;hEe=NXe.default=(0,U3r.default)((0,z3r.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");const G3r=gt(lEe)`
  && {
    background: ${t=>t.theme.custom.inputBg};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    overflow: hidden;
    &.sizeLarge {
      .MuiOutlinedInput-input {
        padding: 14px 16px;
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
      }
    }
    &.passwordInput {
      .MuiInputAdornment-root {
        background: transparent;
        button {
          height: 24px;
          width: 24px;
          border: 0;
        }
      }
    }
    &.MuiInputBase-adornedEnd ~ .inputHelpText {
      right: 50px;
    }
  }
  && fieldset {
    top: 0;
    border: 0;
  }
  .MuiOutlinedInput-input {
    padding: ${t=>t.ishelpertext?"6px 50px 6px 16px":"6px 16px"};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    color: ${t=>t.theme.custom.white.A1};
  }
  .MuiOutlinedInput-input::placeholder {
    color: ${t=>t.theme.custom.greyText.A5};
    opacity: 0.8;
  }
  .MuiOutlinedInput-input:-internal-autofill-selected {
    background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A4}} !important;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A5}} !important;
  }
  .MuiOutlinedInput-input.Mui-disabled {
    -webkit-text-fill-color: inherit;
    cursor: not-allowed;
    opacity: 0.6;
  }
  .MuiInputAdornment-root {
    margin-right: 0;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(
      133.11deg,
      rgba(255, 255, 255, 0.056) 6.98%,
      rgba(255, 255, 255, 0.036) 100%
    );
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    color: ${t=>t.theme.custom.white.A1};
    &.inputAdornment {
      background: transparent;
      .MuiIconButton-root {
        border: 0;
        background: transparent;
        box-shadow: unset;
      }
    }
  }
`,V3r=gt.span`
  font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
  color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
  position: absolute;
  right: 4px;
  top: 40px;
`,K3r=gt.span`
  font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
  color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
  margin-top: 3px;
`,W3r=gt.div`
  font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
  color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.yellow}};
  margin-top: 4px;
  display: inline-flex;
  align-content: center;
`;var QYt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(en,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",l="minute",c="hour",u="day",d="week",h="month",f="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var T=["th","st","nd","rd"],M=b%100;return"["+b+(T[(M-20)%10]||T[M]||T[0])+"]"}},S=function(b,T,M){var D=String(b);return!D||D.length>=T?b:""+Array(T+1-D.length).join(M)+b},x={s:S,z:function(b){var T=-b.utcOffset(),M=Math.abs(T),D=Math.floor(M/60),B=M%60;return(T<=0?"+":"-")+S(D,2,"0")+":"+S(B,2,"0")},m:function b(T,M){if(T.date()<M.date())return-b(M,T);var D=12*(M.year()-T.year())+(M.month()-T.month()),B=T.clone().add(D,h),j=M-B<0,H=T.clone().add(D+(j?-1:1),h);return+(-(D+(M-B)/(j?B-H:H-B))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:h,y:p,w:d,d:u,D:m,h:c,m:l,s,ms:o,Q:f}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},w="en",_={};_[w]=y;var C="$isDayjsObject",R=function(b){return b instanceof L||!(!b||!b[C])},k=function b(T,M,D){var B;if(!T)return w;if(typeof T=="string"){var j=T.toLowerCase();_[j]&&(B=j),M&&(_[j]=M,B=j);var H=T.split("-");if(!B&&H.length>1)return b(H[0])}else{var U=T.name;_[U]=T,B=U}return!D&&B&&(w=B),B||!D&&w},P=function(b,T){if(R(b))return b.clone();var M=typeof T=="object"?T:{};return M.date=b,M.args=arguments,new L(M)},N=x;N.l=k,N.i=R,N.w=function(b,T){return P(b,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var L=function(){function b(M){this.$L=k(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[C]=!0}var T=b.prototype;return T.parse=function(M){this.$d=function(D){var B=D.date,j=D.utc;if(B===null)return new Date(NaN);if(N.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var H=B.match(v);if(H){var U=H[2]-1||0,$=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],U,H[3]||1,H[4]||0,H[5]||0,H[6]||0,$)):new Date(H[1],U,H[3]||1,H[4]||0,H[5]||0,H[6]||0,$)}}return new Date(B)}(M),this.init()},T.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},T.$utils=function(){return N},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(M,D){var B=P(M);return this.startOf(D)<=B&&B<=this.endOf(D)},T.isAfter=function(M,D){return P(M)<this.startOf(D)},T.isBefore=function(M,D){return this.endOf(D)<P(M)},T.$g=function(M,D,B){return N.u(M)?this[D]:this.set(B,M)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(M,D){var B=this,j=!!N.u(D)||D,H=N.p(M),U=function(te,J){var ne=N.w(B.$u?Date.UTC(B.$y,J,te):new Date(B.$y,J,te),B);return j?ne:ne.endOf(u)},$=function(te,J){return N.w(B.toDate()[te].apply(B.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(J)),B)},z=this.$W,Z=this.$M,K=this.$D,Q="set"+(this.$u?"UTC":"");switch(H){case p:return j?U(1,0):U(31,11);case h:return j?U(1,Z):U(0,Z+1);case d:var ee=this.$locale().weekStart||0,X=(z<ee?z+7:z)-ee;return U(j?K-X:K+(6-X),Z);case u:case m:return $(Q+"Hours",0);case c:return $(Q+"Minutes",1);case l:return $(Q+"Seconds",2);case s:return $(Q+"Milliseconds",3);default:return this.clone()}},T.endOf=function(M){return this.startOf(M,!1)},T.$set=function(M,D){var B,j=N.p(M),H="set"+(this.$u?"UTC":""),U=(B={},B[u]=H+"Date",B[m]=H+"Date",B[h]=H+"Month",B[p]=H+"FullYear",B[c]=H+"Hours",B[l]=H+"Minutes",B[s]=H+"Seconds",B[o]=H+"Milliseconds",B)[j],$=j===u?this.$D+(D-this.$W):D;if(j===h||j===p){var z=this.clone().set(m,1);z.$d[U]($),z.init(),this.$d=z.set(m,Math.min(this.$D,z.daysInMonth())).$d}else U&&this.$d[U]($);return this.init(),this},T.set=function(M,D){return this.clone().$set(M,D)},T.get=function(M){return this[N.p(M)]()},T.add=function(M,D){var B,j=this;M=Number(M);var H=N.p(D),U=function(Z){var K=P(j);return N.w(K.date(K.date()+Math.round(Z*M)),j)};if(H===h)return this.set(h,this.$M+M);if(H===p)return this.set(p,this.$y+M);if(H===u)return U(1);if(H===d)return U(7);var $=(B={},B[l]=r,B[c]=a,B[s]=n,B)[H]||1,z=this.$d.getTime()+M*$;return N.w(z,this)},T.subtract=function(M,D){return this.add(-1*M,D)},T.format=function(M){var D=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var j=M||"YYYY-MM-DDTHH:mm:ssZ",H=N.z(this),U=this.$H,$=this.$m,z=this.$M,Z=B.weekdays,K=B.months,Q=B.meridiem,ee=function(J,ne,ie,he){return J&&(J[ne]||J(D,j))||ie[ne].slice(0,he)},X=function(J){return N.s(U%12||12,J,"0")},te=Q||function(J,ne,ie){var he=J<12?"AM":"PM";return ie?he.toLowerCase():he};return j.replace(A,function(J,ne){return ne||function(ie){switch(ie){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return z+1;case"MM":return N.s(z+1,2,"0");case"MMM":return ee(B.monthsShort,z,K,3);case"MMMM":return ee(K,z);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ee(B.weekdaysMin,D.$W,Z,2);case"ddd":return ee(B.weekdaysShort,D.$W,Z,3);case"dddd":return Z[D.$W];case"H":return String(U);case"HH":return N.s(U,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return te(U,$,!0);case"A":return te(U,$,!1);case"m":return String($);case"mm":return N.s($,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return H}return null}(J)||H.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(M,D,B){var j,H=this,U=N.p(D),$=P(M),z=($.utcOffset()-this.utcOffset())*r,Z=this-$,K=function(){return N.m(H,$)};switch(U){case p:j=K()/12;break;case h:j=K();break;case f:j=K()/3;break;case d:j=(Z-z)/6048e5;break;case u:j=(Z-z)/864e5;break;case c:j=Z/a;break;case l:j=Z/r;break;case s:j=Z/n;break;default:j=Z}return B?j:N.a(j)},T.daysInMonth=function(){return this.endOf(h).$D},T.$locale=function(){return _[this.$L]},T.locale=function(M,D){if(!M)return this.$L;var B=this.clone(),j=k(M,D,!0);return j&&(B.$L=j),B},T.clone=function(){return N.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},b}(),I=L.prototype;return P.prototype=I,[["$ms",o],["$s",s],["$m",l],["$H",c],["$W",u],["$M",h],["$y",p],["$D",m]].forEach(function(b){I[b[1]]=function(T){return this.$g(T,b[0],b[1])}}),P.extend=function(b,T){return b.$i||(b(T,L,P),b.$i=!0),P},P.locale=k,P.isDayjs=R,P.unix=function(b){return P(1e3*b)},P.en=_[w],P.Ls=_,P.p={},P})})(QYt);var Q3r=QYt.exports;const Fd=Li(Q3r);var qYt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(en,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(o,s,l){var c=s.prototype;l.utc=function(g){var v={date:g,utc:!0,args:arguments};return new s(v)},c.utc=function(g){var v=l(this.toDate(),{locale:this.$L,utc:!0});return g?v.add(this.utcOffset(),n):v},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var d=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var h=c.utcOffset;c.utcOffset=function(g,v){var A=this.$utils().u;if(A(g))return this.$u?0:A(this.$offset)?h.call(this):this.$offset;if(typeof g=="string"&&(g=function(w){w===void 0&&(w="");var _=w.match(r);if(!_)return null;var C=(""+_[0]).match(a)||["-",0,0],R=C[0],k=60*+C[1]+ +C[2];return k===0?0:R==="+"?k:-k}(g),g===null))return this;var y=Math.abs(g)<=16?60*g:g,S=this;if(v)return S.$offset=y,S.$u=g===0,S;if(g!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(S=this.local().add(y+x,n)).$offset=y,S.$x.$localOffset=x}else S=this.utc();return S};var f=c.format;c.format=function(g){var v=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,v)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var p=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=c.diff;c.diff=function(g,v,A){if(g&&this.$u===g.$u)return m.call(this,g,v,A);var y=this.local(),S=l(g).local();return m.call(y,S,v,A)}}})})(qYt);var q3r=qYt.exports;const Y3r=Li(q3r);var YYt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(en,function(){return function(n,r,a){n=n||{};var o=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,h,f){return o.fromToBase(u,d,h,f)}a.en.relativeTime=s,o.fromToBase=function(u,d,h,f,p){for(var m,g,v,A=h.$locale().relativeTime||s,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=y.length,x=0;x<S;x+=1){var w=y[x];w.d&&(m=f?a(u).diff(h,w.d,!0):h.diff(u,w.d,!0));var _=(n.rounding||Math.round)(Math.abs(m));if(v=m>0,_<=w.r||!w.r){_<=1&&x>0&&(w=y[x-1]);var C=A[w.l];p&&(_=p(""+_)),g=typeof C=="string"?C.replace("%d",_):C(_,d,w.l,v);break}}if(d)return g;var R=v?A.future:A.past;return typeof R=="function"?R(g):R.replace("%s",g)},o.to=function(u,d){return l(u,d,this,!0)},o.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};o.toNow=function(u){return this.to(c(this),u)},o.fromNow=function(u){return this.from(c(this),u)}}})})(YYt);var J3r=YYt.exports;const Z3r=Li(J3r);function WN(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}const O0={uuid(){return`${WN()+WN()}-${WN()}-${WN()}-${WN()}-${WN()}${WN()}${WN()}`},isUUID(t){return typeof t=="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t)}},q={ZK_ETH_INSUFFICIENT_FUNDS_DEPOSIT_ERROR:t=>`Unfortunately, your deposit failed - either you have insufficient ${t} funds or your wallet is improperly connected. Please check your balance and try again, and if the issue persists, you might need to disconnect then reconnect your wallet provider.`,ZK_ETH_DEPOSIT_JSON_RPC_ERROR:"There was an unexpected RPC error",ZK_ETH_DEPOSIT_JSON_RPC_ERROR_RECONNECT_WALLET:"If the issue persists, you might need to disconnect then reconnect your wallet provider.",TOKEN_DEPOSIT_PREVENTION_MODAL_NETWORK_NOT_FOUND:"Please switch your wallets network to one of the following chains below:",ADD_MATERIALIZED_VIEW_PROMPT_PROCEED_FORWARD:"Save Chart As Is",ADD_MATERIALIZED_VIEW_PROMPT_ADD_MATERIALIZED_VIEW:"Go back",ADD_MATERIALIZED_VIEW_PERFORMANCE_TIP_HEADER:"Performance Tip",CHANGE_ZK_TOKEN_PAYMENT:"Change ZK Token payment method",EDIT_PAYMENT_CONFIGURATION:"Edit payment configuration",SAVE_PAYMENT_CONFIGURATION:"Save payment configuration",INSTALL_CRYPTO_WALLET_ALERT_MESSAGE:"To continue with this feature, you'll need to install a Web 3 wallet as your browser extension",ZK_ETH_DEPOSIT_SUCCESSFUL:"Deposit was processed successfully, please note it may take a few minutes before your ZKpay balance is updated to reflect this deposit",INSUFFICIENT_BALANCE_ERROR:"Insufficient balance! Deposit more tokens by selecting the button below!",ZK_ETH_DASHBOARD_DESCRIPTION_HEADER:"The dashboard below shows aggregated metrics from the Space and Time community around ZKpay activity.",ZK_ETH_INFO_CONTENT_BOX_PART1:`This "ZK-bridge" is secured by Space and Time's "Proof of SQL"`,ZK_ETH_INFO_CONTENT_BOX_PART1_LINK:"protocol",PAYMENT_CONFIG_HEADER_FOR_ZK_TOKEN:"Your ZKpay Token Configuration",ZK_ETH_INFO_CONTENT_BOX_PART2:"which generates a ZK proof of your deposit, and ensures that the network cannot tamper with your deposit. This is fully decentralized, so that no third party is allowed to withdraw your balance. Your tokens remain secured on the source chain where your deposit occurred (such as Ethereum) but your balance is made available in the Space and Time network a few minutes later (sometimes only a few seconds, depending on the source chain where you deposited), ready to be spent by your account to run SxT queries or to be used as payment for any of the 3rd-party partner applications that also support ZKpay payments. In summary, this framework allows for gasless micro-transactions on any ZKpay-supported dapps, including Space and Time Studio (this application).",MATERIALIZED_VIEWS_POPUP_ALERT:"We noticed you’re not using materialized views (cached query result) for this chart. Materialized views is a great way to increase load performance but will only refresh once a day. Would you like to make this change?",CURRENTLY_SELECTED_TEXT:"Currenctly Selected",SELECT_YOUR_WALLET:"Select Your Wallet",PAY_BALANCE_BUTTON_LABEL:"Pay balance",DEPOSIT_ZK_TOKENS:"Deposit ZK Tokens",PAY_WITH_ZK_TOKEN:"Pay with ZKpay Token",CREDIT_CARD_PAYMENT_METHOD_HEADER:"Your payment configuration is set to the following card below",ZK_TOKEN_PAYMENT_METHOD_HEADER:"Your payment configuration is set to ZKpay",CHOOSE_FROM_FOLLOWING_PAYMENT_HEADER:"You have not configured a payment method. Please select one of the following payment methods below",SHARE_DASHBOARD:"Share Dashboard",SAVE_QUERY:"Save query",SAVE_CHART:"Save chart",COPY_QUERY_ID:"Click here to copy the query ID (identifier) to your clipboard. When running queries from a smart contract, you can use this ID as an alternative to hard coding the full query text, reducing gas and making query updates much easier.",COPY_QUERY_ID_LABEL:"Copy the Query ID",FIND_BY_NAME:"Find By Name",SAVE_AS_NEW_WIDGET:t=>`Save as new ${t}`,SAVE_WIDGET_DISABLED_GUIDE_TOOLTIP:'You need to input all fields including Chart Name inside the "Visualization Details" section on the left-hand side, in order to save a new chart!',SAVE_AS_NEW_QUERY:"Save as new query",SAVE_CHANGES:"Save changes",QUERY_NAME:"Query Name",ENTER_QUERY_NAME:"Enter query name",PUBLIC_SLUG_URL:"Public Url",PLEASE_WAIT_SETUP_TABLES:"Please wait while we set up your tables. This process may take a moment...",PLEASE_WAIT_CREATING_TABLES:"We're working on your request; there are no additional actions you need to perform. We will start indexing your contract’s full event history soon, starting with the oldest events first. While the amount of time it will take to index historical events can vary depending on the number of events in your contract and the blockchain where it’s deployed, you can expect this to take somewhere between 2-24 hours when the system is under low load. Check back later to see when we’ve started processing historical events.",ENTER_SLUG_NAME:"Enter unique dashboard name",DETAILS:"Details",TYPE_YOUR_MESSAGE:"Type your message...",QUERY_DESCRIPTION:"Query Description",ENTER_QUERY_DESCRIPTION:"Enter query description",ENTER_WIDGET_DESCRIPTION:t=>`${t} Description`,ENTER_WIDGET_NAME:t=>`${t} Name`,CHART_SAVE_QUERY:"You need to save this query before you save chart.",CHART_NAME_REQUIRE:"Please enter chart name",ENTER_DASHBOARD_TITLE:"Enter dashboard title",DASHBOARD_INFO:"Dashboard info",CONTRACT_UNVERIFIED:"Contract is unverified",TITLE:"Title",TYPE:"Type",API_HISTORY_TIMESTAMP:"Timestamp",WIDGET_ADDED:"Visual added to dashboard successfully",ENTER_DASHBOARD_DESCRIPTION:"Enter dashboard description",UPDATE:"Update",BACK:"Back",OK:"Ok",INFO:"Info",SAVE:"Save",COPY_LINK:"Copy link",CANCEL:"Cancel",CLOSE:"Close",FAILED_INDEXING:"The historical indexing hasn't started yet but it's going to start soon",COMPLETED_SUCCESSFULLY:"Full event history indexing has successfully finished, and realtime indexing is either about to start shortly or is already running! You can now use your smart contract tables with all available data.",IN_PROGRESS:"Full event history indexing has begun. It might take some time to complete, but you should be able to see your tables populated as it’s running.",ADD_SERIES:"Add another series...",ADD_WIDGET:"Add visual to dashbaord",FIELD_MISSING:t=>`Chart ${t} Axis is missing`,CONFIRM:"Confirm",VISUALIZATION:"Visualization",CONFIGURE_VISUALIZATION:"Configure Visualization",TIMESTAMP:"TIMESTAMP",DATA:"Data",CUSTOMISE:"Customize",CHART_TITLE:"Chart Title",NUMBER_FORMAT:"Number Format",DATE_FORMAT:"X Date Format",X_TICK_LAYOUT:"X tick layout",CHART_OPTIONS:"Chart Options",Y_AXIS_POSITION:"Y Axis Position",Y_AXIS_LEFT_MARGIN:"Y Axis Left Margin",Y1_AXIS_TITLE:"Y1 Axis Title",Y_AXIS_TITLE:"Y Axis Title",Y_AXIS:"Y Axis",X_AXIS_BOTTOM_MARGIN:"X Axis Bottom Margin",X_AXIS_TITLE:"X Axis Title",X_AXIS:"X Axis",CHART_TYPE:"Chart type",X_FIELD:"X Field",Y_FIELD:"Y Field",SERIES_FIELD:"Series Field",EXPLORE_MORE_VISUALIZATIONS:"Explore more visualizations",QUERY_PREVIEW:"Query Preview",QUERY_PUBLISH:"Publish Query",QUERY_PUBLISHED:"Published",TOTAL_QUERIES:"Total Queries",CURRENT_PERFORMANCE:"Current Performance",QUERY_HISTORY_ERROR_MESSAGE:"Error getting execution history",CUSTOMIZE_CHART:"Customize chart",ADAPTIVE_FORMATTING:"Adaptive Formatting",X_AXIS_DATA:"xAxisData",Y_AXIS_DATA:"yAxisData",USER_TITLE:"User Title",VIEW_CHART:"View chart",VIEW_QUERY:"View Query",FORK_QUERY:"Fork Query",NO_RESULT_FOUND_ON_FILTER:"We couldn't find anything! Try adjusting the filter or search keyword.",EMPTY_WIDGET_TITLE:t=>`You don't have any ${t} yet`,EMPTY_WIDGET_TITLE_GENERAL:t=>`Couldn’t find any ${t} visuals at the moment`,EMPTY_WIDGET_TITLE_FOR_EXPLORER:"You don't have any favorites yet - whenever you find a public visual, you can favorite it and it will show up on this page",EMPTY_ORG_WIDGET_TITLE:t=>`You don't have any shared ${t} from your organization.`,EMPTY_DASHBOARD_TITLE:"It's time to create your first dashboard!",EMPTY_MY_ORG_DASHBOARD_TITLE:"No dashboards found at the moment",EMPTY_EXPLORE_DASHBOARD_TITLE:"You don't have any favorites yet - whenever you find a public dashboard, you can favorite it and it will show up on this page",EMPTY_EXPLORE_DASHBOARD_TITLE_GENERAL:t=>`Couldn’t find any ${t} dashboards at the moment`,PIN_TO_DASHBOARD:t=>`Pin ${t} to dashboard`,UPDATED_SUCCESS:"Updated successfully",WIDGET_UPDATED_SUCCESS:t=>`${t} updated successfully`,WIDGET_DELETED_SUCCESS:t=>`${t} deleted successfully.`,WIDGET_PUBLISH_SUCCESS:t=>`${t} published successfully.`,QUERY_UPDATED_SUCCESS:"Query updated successfully",SAVED_SUCCESS:"Saved successfully",WIDGET_SAVED_SUCCESS:t=>`${t} saved successfully`,QUERY_SAVED_SUCCESS:"Query saved successfully",DASHBOARD_SAVED_SUCCESS:"Dashboard saved successfully",DASHBOARD_SET_AS_HOME_SUCCESS:"Dashboard saved as home page successfully",DASHBOARD_UNSET_AS_HOME_SUCCESS:"Dashboard removed from home page successfully",DASHBOARD_CLONE_SUCCESS:"Dashboard forked sucessfully",FORK_DASHBOARD:"Fork Dashboard",TABLE_SAVED_SUCCESS:"Table visual saved successfully",TABLE_DELETED_SUCCESS:"Table visual deleted successfully",QUERY_DELETED_SUCCESS:"Query deleted successfully",QUERY_PUBLISH_SUCCESS:"Query published successfully",CHART_DELETED_SUCCESS:"Chart deleted successfully",DASHBOARD_DELETED_SUCCESS:"Dashboard deleted successfully",DASHBOARD_PUBLISH_SUCCESS:"Dashboard published successfully",DELETED_SUCCESS:"Deleted successfully",DELETE_CONFIRM_MESSAGE:t=>`Are you sure you want to delete the ${t}?`,REMOVE_CONFIRM_MESSAGE:t=>`Are you sure you want to remove the ${t}?`,SAVE_CONFIRM_MESSAGE:t=>`Are you sure you want to save this ${t} visual?`,DELETE:t=>`Delete ${t}`,PUBLISH_CONFIRM_MESSAGE:t=>`Publishing this ${t} will make it accessible to the public. Once published, this action cannot be undone, and your ${t} will be visible to anyone accessing the platform.`,PUBLISH_SUBTEXT_CONFIRMATION:"Do you wish to continue and make this content public?",YES:"YES",NO:"NO",NO_RESULT_FOUND:"No results found",NO_QUERY_FOUND:"You haven't got any query at the moment",NO_QUERY_FOUND_EXPLORER_GENERAL:t=>`Couldn’t find any ${t} queries at the moment`,NO_QUERY_FOUND_EXPLORER:"You don't have any favorites yet - whenever you find a public query, you can favorite it and it will show up on this page",NO_ORG_QUERY_FOUND:"You haven't got any shared queries from your organization.",CREATE_NEW_QUERY:"Create new query",CREATE_NEW_CHART:"Create new chart",EMPTY_QUERY_HISTORY:"You haven't got any query history at the moment",VIEW:"View",COPIED:"Copied",SEARCH_BY_QUERY:"Search by queries",MY_QUERIES:"My Queries",MY_SAVED_QUERIES:"My Saved Queries",MY_ORG_QUERIES:"My Org Queries",EXPLORE:"Explore",MY_VISUALS:"My Visuals",MY_ORG_VISUALS:"My Org Visuals",QUERY_HISTORY:"Query history",NLP_MESSAGE:"Please update your prompt to be more descriptive",RUN:"Run Query",QUERY_RUNNING:"Please wait.. Query is running",ABORT_QUERY:"Abort Query",FORMAT:"Format",QUERIES:"Queries",MY_CHART:"My Charts",MY_DATASETS:"My Datasets",QUERY_MONITOR:"Query Monitor",QUERY_EDITOR:"Query Editor",NO_ROW_MSG:"Query finished, No rows returned",ERD:"ERD",GRAPHQL:"GraphQL",EXPLORE_CHARTS:"Explore Charts",SAVED_QUERIES:"Saved Queries",EXPORT_TO_CSV:" Export to CSV",QUERY_RESULTS:"Query Results",QUERY_VISUALIZATION:"Query Visualization",posWarningMessage:"WARNING: You have enabled Proof of SQL, but queried a non-tamperproof table. Therefore, the query results shown below were retrieved via the normal (optimistic) query path and were not verified.",QUERY_GRAPHS:"Query Graphs",ROWS:"rows",SECONDS:"seconds",PLEASE_CONFIGURE_VISUALIZATION:"Configure Your Visualization",YOUR_CHARTS:"Your Charts",YOUR_DATASETS:"Your Datasets",UNABLE_TO_FIND_CHART_DETAILS:"Unable to find chart details",TAG_INPUT_PLACEHOLDER:"Press enter or add comma to add tags...",SELECTED_DATABASE:"Selected Database",METRICS:"Metrics",COLUMNS:"Columns",COLUMN:"Column",HIDE_COLUMN_WARNING:"You cannot hide all the columns",ROW_COUNTS:(t,e)=>`Showing ${t||0} of ${e}`,MY_DASHBOARDS:"My Dashboards",MY_SAVED_DASHBOARDS:"My Saved Dashboards",MY_DASHBOARD:"My Dashboard",MY_PRIVATE_DASHBOARD:"My Dashboard (Private)",MY_ORG_DASHBOARD:"Dashboards From My Org",MY_DASHBOARD_PRIVATE_TO_MY_ORG:"My Dashboard (Private to My Org)",VISUALIZATION_RECOMMENDATIONS:"Visualization Recommendations",HIDE_FIND_DATA:"Hide All Tables",FIND_DATA:"View All Tables",SEARCH_BY_DB_OBJECTS:"Search by DB objects",NO_DB_OBJECTS_FOUND:"No DB Objects Found",RECORD_NOT_FOUND:"RECORD NOT FOUND",GO_TO_PAGE:"Go to Page",PAGE_SIZE:"Page size",NO_DATA_FOUND:"No Data Found",NOTHING_HERE_YET:"Nothing here yet!",ZK_ETH_TOKEN_TABLE_COLUMN_1:"Name",ZK_ETH_TOKEN_TABLE_COLUMN_2:"Holdings",ZK_ETH_TOKEN_TABLE_COLUMN_3:"Balance (USD)",ZK_ETH_TOKEN_DEPOSIT_TABLE_COLUMN_1:"Date",ZK_ETH_TOKEN_DEPOSIT_TABLE_COLUMN_2:"Name",ZK_ETH_TOKEN_DEPOSIT_TABLE_COLUMN_3:"Balance (USD)",SANKEY_EMPTY_DATA:"No Data for Selected Community",VIEW_EXPANDED_VALUE:"View expanded value",SELECT_CONNECTION:"Select Connection",SELECT:"Select",CLICK_CONFIGURE:"Click to Configure",NAME:"Name",TABLES:"tables",TABLE:"table",SEND_REQUEST_DISABLED_TOOLTIP:"Please enter a valid namespace to enable this button.",SHOW_MORE:"Show more",SHOW_LESS:"Show less",SAMPLE_LOREM_TEXT:"Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor",MAX_LENGTH_ERROR:(t,e)=>`The ${t} cannot be greater than ${e} characters !`,TIME:"Time",TIME_COLOUMN:"Time column",TIME_GRAIN:"Time grain",TIME_RANGE:"Time range",SEARCH_ELIPSIS:"Search...",SEARCH_ELIPSIS_CONTEXT:(t="")=>`Search ${t||""}`,SEARCH_PIPELINEVIEW:"What do you want to do ?",RESET_FILTER:"Reset Filter",DATASET:"Dataset",DISCARD_CHANGES:"Discard changes",COMPONENTS:"Components",LAYOUT_DESIGN:"Layout Design",DELETE_QUERY_DESCRIPTION:"It will affect the data related to charts and dashboards",DELETE_CHART_DESCRIPTION:"It will affect the data related to dashboards",BEGIN_WRITING_QUERY:"Type in your SQL prompt for blockchain data queries...",NEW_VIZ_EDITOR_PLACEHOLDER:"To create your first visual, you first need to run a query and the you can configure the query result as a chart...",WRITE_YOUR_SQL_QUERY:"Type a SQL or AI prompt in the editor above to query blockchain data.",THE_RESULT_OF_QUERY:"Your query result will show up here.",SHARE_CHART:"Share Chart",POPULAR_TAGS:"Popular Tags",DOWNLOAD_AS_IMAGE:"Download as image",OPTIONS:"Options",SPACE_AND_TIME:"Indexed Chains",DATA_SETS:"Datasets",TOUCH_TO_INTERACT:"Touch to interact",CHOOSE_DASHBOARD_TO_PIN:t=>`Choose the dashboard to pin your ${t}`,CREATE_NEW_DASHBOARD:"Create new dashboard",CREATE_NEW_TABLE:"CREATE TABLE table_name (id INT,column VARCHAR)",SEARCH_FOR_DASHBOARD:"Search for the right dashboard",WIDGET_PINNED_TO_DASHBOARD:"Visual pinned to dashboard successfully!",SAVE_QUERY_SHORTCUT_KEY:"Save query (Ctrl + S)",FORMAT_QUERY_SHORTCUT_KEY:"Format query (Shift + Enter)",FIND_DATA_OBJECTS_SHORTCUT_KEY:t=>`${t?q.HIDE_FIND_DATA:q.FIND_DATA} (Ctrl+shift+f)`,DASHBOARDS:"Dashboards",VIEW_DASHBOARD:"View Dashboard",SAVE_DASHBOARD:"Save Dashboard",UPDATE_DASHBOARD:"Update Dashboard",RUN_QUERY_SHORTCUT_KEY:"Run query (Ctrl + Enter)",RUN_QUERY_WITHOUTLOGIN:"Please login first",EDIT_DASHBOARD:"Edit Dashboard",PLEASE_CONFIGURE_CHART:"Please configure your chart",COLOR_FIELD:"Color Field",ANGLE_FIELD:"Angle Field",CHART_SUGGESTIONS_HELPTEXT:"We have generated recommended visualizations based on the data from your query result.",RECOMMONDED_CHART_MODAL_HELPTEXT:"Explore additional data visualization suggestions based on your query result.",TABLE_TITLE:"Table Title",ENTER_TITLE_HERE:"Enter title here...",SAVE_TABLE:"Save Table",EDIT_WIDGET:t=>`Edit ${t}`,PUBLISH_WIDGET:t=>`Publish ${t}`,VISUALIZATION_TYPE:"Visualization Type",CONFIGURE_CHART_MESSAGE:"Start by selecting visualization type.",UNTITLED_CHART:"Untitled Chart",UNTITLED_DATASET:"Untitled Dataset",UNTITLED_COUNTER:"Untitled Counter",OTHER_VISUALIZATIONS:"Other Visualizations",CHART_VISUALIZATIONS:"Chart Visualizations",ENTER_TABLE_NAME:"Enter table name",ENTER_TABLE_DESCRIPTION:"Enter table description",MAIN_TAB_TITLE:"Main Tab Title",COUNTER_TITLE:"Counter Title",DATASET_TITLE:"Dataset Title",PREFIX:"Prefix",ALIGN:"Align",HIDE_COLUMN:"Hide Column",POSITIVE_COLUMN:"Colored positive values",NEGATIVE_COLUMN:"Colored negative values",SHOW_PROGRESS_BAR:"Show Progress bar",SUFFIX:"Suffix",LABEL:"Label",DECIMAL:"Decimal",COUNTER_OPTIONS:"Counter Options",COUNTER:"Counter",ENTER_COUNTER_NAME:"Enter counter name",ENTER_COUNTER_DESCRIPTION:"Enter counter description",SAVE_COUNTER:"Save counter",SAVE_AS_NEW_COUNTER:"Save as new counter",MY_COUNTERS:"My Counters",YOUR_COUNTERS:"Your Counters",COUNTER_SAVED_SUCCESS:"Counter visual saved successfully.",SAVE_AS_NEW_TABLE:"Save as new table",SAVE_WIDGET:t=>`Save ${t}`,INPUT_PLACEHOLDER:t=>`Enter ${t} here...`,PLEASE_MODIFY_QUERY:"Please modify your query to view appropriate counter card",PLEASE_ENTER_CONTENT:"Please enter content",WIDGET_ALREADY_PRESENT:"Visual is already present",START:"Start",EDIT_TABLE:"Edit Table",LIST_VIEW:"List View",GRID_VIEW:"Grid View",ALL:"All",FILTER:"Filter",UNSAVED_CHANGES_LEAVE:"You have unsaved changes, are you sure you want to leave?",VISUALIZATIONS:"Visualizations",FILTER_BY:"Filter By",SHOW_UNFORMATTED_DATA:"Show unformatted data",EDIT_HEADER:"Edit Header",EDIT_MARKDOWN:"Edit Markdown",EDIT_DESCRIPTION:"Edit Description",SHOW_LEGENDS:"Show Legends",SHOW_SLIDER:"Show Slider",SHARE:"Publish Dashboard",PUBLISHED:"Published",CREATED_BY:"Created by:",SHOW_PAGE_SIZE:t=>`Show ${t}`,NEW_QUERY:"New query",CLICK_TO_EDIT:t=>`Click to edit ${t}`,CREATE_NEW_VISUALIZATION:"Create New Visualization",INSIGHTS:"Insights",COMMUNITY_NAME:"Community Name",ANALYTICS_OF_LAST:"Analytics of Last",SELECT_DATE:"Select Date",INSIGHT_BAR_CHART1_TITLE:"Top 10 traded Tokens by Count",INSIGHT_BAR_CHART2_TITLE:"Top 10 traded NFTs by Count",INSIGHT_PIE_CHART1_TITLE:"Token Type Bifurcation of Interacted Contracts",INSIGHT_PIE_CHART2_TITLE:"Wallets Bifurcation in Sub Communities",INSIGHT_SANKEY_CHART_TITLE:"Percentage Transaction in Community",INSIGHT_GRAPH_FORCE_TITLE:"Executive Summary",CONTRACTS:"Contracts",CHAIN:"Chain",SELECT_CHAIN:"Select Chain",SUBMIT:"Submit",CONTRACT_ADDRESS:"Contract Address",ENTER_CONTRACT_ADDRESS:"Enter Contract Address",CONTRACT_CREATOR:"Contract Creator",TRANSACTION_HASH:"Transaction Hash",RECENT_ONCHANGE_DATA:"Recent Onchain Data",RECENT_DATA:t=>`Recent ${t} Data`,VIEW_SMART_CONTRACT_ABI:"View Smart Contract ABI",VIEW_SMART_CONTRACT_TABLES:"View Smart Contract Tables",SMART_CONTRACT_ABI:"Smart Contract ABI",SMART_CONTRACT_FAMILY:"Smart Contract Family",TRACK_MORE_CONTRACTS:"Track More Contracts",SEND_REQUEST_TABLE_CREATION:"Send Request for Indexing",SUBSCRIPTION_CONTRACTS:"Indexed Contracts for your Subscription",UPLOAD_NOW:"Upload Now",YOUR:"Your",CONTRACT_UTILITY:"Contract Utility",PIPELINE_VIEW:"Pipelines",NO_ABI_TEXT:"Sorry, no ABI found!",INVALID_NAMESPACE:"Invalid namespace. Please enter a namespace, ensure it is alphanumeric, starts with a letter, and is less than 30 characters.",NO_ABI_SUB_TEXT:"Do you have one to upload?",EVENT_CHECKBOX_TOOLTIP_TEXT:"Checking this will select the event for indexing",NAMESAPCE_WARNING_TEXT:" All the events of this Smart Contract will be grouped under given namespace",SEND_REQUEST_SUB_TEXT:"It will send the request to the administrator of Space & Time, As soon as it is approved the indexing will start.",PENDING_REQUEST:"Pending Request",APPROVED_REQUEST:"Approved Request",REJECTED:"Rejected",APPROVE:"Approve",REJECT:"Reject",EDIT:"Edit",COPY:"Copy",CONTRACT_UTILITY_INFO:`Please select the events and smart contract family on the screen.
    It will send your request to admin, and post-approval indexing for the selected events will start.`,UPLOAD_ABI_FILE:"Click to upload ABI File",ALL_REQUEST:"All Request",OVERVIEW:"Overview",INTERACTIONS:"Interactions",VIEW_ON_SCAN:"View on Block Explorer Site",CONTRACT:"Contract",EVENTS:"Events",TABLE_INDEXING_APPROVAL:"Your Request for Table Indexing has been sent to SxT Admin for Approval",NO_INFORMATION_FOUND:"No information found at the moment",NO_INTERACTIONS_AVAILABLE:"No Interactions available",NO_SEARCH_RESULT_FOUND:"No search Result found",INVALID_FILE_TYPE:"Unsupported image format. Please choose a different image file.",INVALID_FILE_SIZE:"Unsupported image size. Please choose a image file having size less than 10 MB.",EMPTY_EVENTS:"You haven't got any requests at the moment",COPY_ABI:"Copy ABI",CONNECTED:"Connected",DISCONNECTED:"Disconnected",COONECT_YOUR_WALLET:"Connect your Wallet",SIGN_MESSAGE:`Hi there from Space and Time Studio dApp! Sign this message to prove you have access to this wallet and we'll log you in. This is free- it won't cost you any Ether.
  To stop hackers using your wallet, here's a unique auth code they can't guess: `,LOGIN:"Log In",CHALLANGE_EXIST_ERROR:"Challenge already exist please try again after some time",METAMASK_SIGNATURE_ERROR:"Unable to get signature , please try again later",ALPHANUMERIC_NAMESPACE:"Please enter alphanumeric characters only.",NAMESPACE_LIMIT:"Please enter namespace with maximum 30 characters only.",WE_COULD_NOT_FIND_ANYTHING:"We couldn't find anything!",EMPTY_INSIGHTS:"There's no insights data at the moment for this community.",ALL_EVENTS_CHECKBOX:"Click here to select all events for indexing",TYPE_IN_YOUR_SMART_CONTRACT_FAMILY:"Type in project name for this smart contract",NO_EVENTS_FOUND:"No events found for this contract address. Please try giving another contract address",COMING_SOON:"Coming Soon",OVERVIEW_MESSAGE:t=>t==="WALLET"?"This section gives the information about the balance and interactions done by the wallet within the community.":"This section gives the information about all the interactions done by the community with the contract.",PEER_MESSAGE:t=>t==="WALLET"?"This section gives the information about wallet transactions with contracts and other wallets.":"This section gives the information about the transactions done with the contract by this community.",TOP_NFTS:"Top NFTs",TOP_TRADED_TOKENS:"Top Traded Tokens",CUSTOMIZE_COUNTER:"Customize Counter",SHOW_INFO_BOX:"Show Info Labels/Nodes",ON:"On",OFF:"Off",SWITCH_TO_DEFAULT_TEXT:"Switch to default text",SWITCH_TO_PLAIN_TEXT:"Switch to plain text",NETWORK_ERROR:"Network error",SHOW_DATA_SETS:"Show Datasets",HIDE_DATA_SETS:"Hide Datasets",CHAT_GPT_TEXT:"Please wait.. We are fetching a SQL query from OpenAI.",CHAT_GPT_TEXT_NEXT_MSG:"Please wait.. The query we got from your prompt threw an error, and we are trying again with OpenAI to correct the query automatically.",TWO_DIMENSION:"2D",THREE_DIMENSION:"3D",SHOW_BLOCKCHAINS:"Show Blockchain Datasets",SHOW_YOUR_DATASETS:"Show Offchain Datasets",SHOW_SPACE_AND_TIME_DATASETS:"Show Indexed Datasets",MY:"My",OTHER:"OTHER",ENTER_THE_CODE:"Enter the join code",ENTER_USER_NAME_AND_JOIN_CODE:"Enter username & join code (optional)",ENTER_USER_NAME:"Enter username",SIGN_IN_WITH_METAMASK:"Sign in with Metamask",CREATE_BISCUIT:"Create Biscuit",SAVE_BISCUIT:"Save Biscuit",SIGN_IN_WITH_COINBASE:"Sign in with Coinbase",YOURS:"Your",FETCH_QUERY:"Fetching Query",SCRIPT:"Script",PROJECT:"Project",USE_IMAGE_COLORS:"Use Header Image Colors",UPLOAD_IMAGE:"Click to upload Header Image",SEARCH_DASHBOARD:"Ask Any Query",SET_AS_HOME_DASHBOARD:"Set As Home Page",UNSET_AS_HOME_DASHBOARD:"Remove from Home Page",LOGIN_EMAIL_LABEL:"Enter Email Address",VALID_EMAIL_ERROR:()=>"Please Enter valid email address",SIGNUP_USER_ID_LABEL:"Username",LOGIN_USER_ID_PLACEHOLDER:"Enter username",LOGIN_PASSWORD_LABEL:"Password",SIGNUP_PASSWORD_LABEL:"Choose a unique password",LOGIN_PASSWORD_PLACEHOLDER:"Enter Password",SIGN_PASSWORD_PLACEHOLDER:"Alphanumeric and minimum of 8 chars",RESET_PASSWORD_TEXT:"Reset Password",LOGIN_BUTTON_TEXT:"Login",SIGNUP_BUTTON_TEXT:"Create Account",UPDATE_BUTTON_TEXT:"Update",CANCEL_BUTTON_TEXT:"Cancel",JOINCODE_LABEL:"Join Code",JOINCODE_PLACEHOLDER:"Enter join code",LOGIN_SUCCESS:"Logged In Successfully",UPDATE_USER_SUCCESS:"User Updated Successfully",RESET_PASSWORD_SUCCESS:"Password Reset Successfully",DELETE_BISCUIT_SUCCESS:"Biscuit deleted Successfully",REGISTER_SUCCESS:"User Registered Successfully",RESPONSE_ERROR_STATUS:"error",RESPONSE_SUCCESS_STATUS:"success",LOGOUT_BUTTON_TEXT:"Logout",WALLET_TEXT:"Wallet",USERNAME_EMAIL_ERROR_TEXT:"Fields can not be empty",USERNAME_LABEL:"Username",EMAIL_LABEL:"Email Address",EMAIL_PLACEHOLDER:"Update Email Address",EMAIL_CHECK_KEY:"emailAddr",USERNAME_PLACEHOLDER:"Update Username",REGISTER_ACCOUNT_TEXT:"Register Account",LOGIN_ACCOUNT_TEXT:"Login or register Account",MY_ACCOUNT_TEXT:"My Account",ACCOUNT_DETAILS_TEXT:"Account Details",PAYMENT_DETAILS_TEXT:"Payment Details",UPDATE_WALLET_BUTTON_TEXT:"Update your wallet",QUERY_ABORT:"Query Aborted",SUBSCRIPTION_DETAILS_TEXT:"Subscription Details",QUERY_PROMPT_ABPRT:"Query Prompt Aborted",CONTINUE_MICROSOFT_TEXT:"Continue with Microsoft",CONNECT_WALLET_TEXT:"Connect a wallet",SELECT_CURRENCY:"Select Currency",NETWORK_SELECT:"Chain",SELECT_YOUR_CURRENCY:"Currency",DEPOSIT_FROM_TEXT:"You Will Deposit From",ZKPAY_WALLET_LABEL:"To ZKpay wallet",RAINBOW_TEXT:"Rainbow",METAMASK_TEXT:"MetaMask",COINBASE_TEXT:" Coinbase Wallet",WALLET_CONNECT_TEXT:"WalletConnect",DASHBOARD_OPTION:"Dashboard options",USERID_PASSWORD_ERROR_TEXT:"Username or Email & Password can not be empty",ERROR_IN_REMAINING_BALANCE_PAYMENT:"Encountered error with payment submission",USERID_PASSWORD_JOINCODE_ERROR_TEXT:"Username or Email & Password & Join code can not be empty",ENTER_TAGS:"Enter Tags",INPUT_TYPE_PASSWORD:"password",WELCOME_MSG:"Welcome to Space and Time.",YOUR_JOIN_CODE:"Your join code is",REGISTER_WITH_EMAIL:"Register with Email Address",REGISTER_WITH_WALLET:" Register with Web3 Wallet",PERMISSION:"Permissions & Secrets",OPEN_SECRETS:"Open Secrets Details & Permissions",AZURE_MARKETPLACE:"AZURE MARKETPLACE PLAN",MULTITENANT_PRICE:"$699.00",MULTITENANT_PLUS_PRICE:"$1999.00",MONTHLY:"Monthly",BILLING:"Billing Cycle",COMPUTER_CREDITS:"Compute Credits:",STORAGE:"Storage",MULTITENANT_LABEL:"Space & Time Standard",MULTITENANT_PLUS_LABEL:"Space & Time Enterprise",CURRENT_USAGE:"Current usage (this month)",TOTAL_STORAGE:"Current total storage in use:",TOTAL_QUERIES_EXECUTED:"Total queries executed:",TOTAL_CREDITS:"Total compute credits used",PACKAGE_DETAILS:"Package Details",JOINCODE_VALUE:"joinCodeValue",SUBSCRIPTION_TYPE:"subscriptionType",MULTITENANT:"space-and-time-standard",MULTITENANT_PLUS:"space-and-time-enterprise",BLOCKCHAIN:"Blockchain",UNLIMITEDD_DATA:"Unlimited Data",ACTIVE:"active",TEN_TB:"10 TB",FIVE_TB:"5 TB",UNLIMITED:"Unlimited",SPACE_AND_TIME_MULTITENANT_STANDARD:"space-and-time-multitenant-standard",SPACE_AND_TIME_MULTITENANT_ENTERPRISE:"space-and-time-multitenant-enterprise",SPACE_AND_TIME_SINGLE_TENANT:"space-and-time-single-tenant",MULTITENANT_STANDARD_PLAN_DESCRIPTION:"Thank you for signing up for Azure Marketplace Space and Time Network - Multi-tenant Standard. Your subscription gives you access to 5TB of storage with enterprise performance. All plans include unlimited realtime blockchain data indexed and decoded from major chains, including Ethereum, Polygon, BNB Chain, Sui and Avalanche.",MULTITENANT_ENTERPRISE_PLAN_DESCRIPTION:"Thank you for signing up for Azure Marketplace Space and Time Network - Multi-tenant Enterprise. Your subscription gives you access to 10TB of storage with enterprise performance. All plans include unlimited realtime blockchain data indexed and decoded from major chains, including Ethereum, Polygon, BNB Chain, Sui and Avalanche.",SINGLE_TENANT_PLAN_DESCRIPTION:"Thank you for signing up for Azure Marketplace Space and Time Network - Dedicated Single Tenant. Your subscription gives you access to Unlimited of storage with enterprise performance. All plans include unlimited realtime blockchain data indexed and decoded from major chains, including Ethereum, Polygon, BNB Chain, Sui and Avalanche.",CARD_DESCRIPTION:"Configure fine-tuned access permissions with bearer tokens (biscuits) associated with your private tables, to control security and determine how your colleagues can access your org’s tables.",YOUR_SUBSCRIPTION_TEXT:"Your subscription is $700/month and that gives you access to XYZ queries and *unlimited free storage. Now register with email/password or by connecting a web3 wallet (public/private Key pair), or consider a developer-focused alternative on the right side of the screen.",HERE_IS_LINK:"You'll need your join code to use our REST APIs. Visit ",OUR_DEVELOPER:"our developer docs, ",REDIRECT_URL:"https://docs.spaceandtime.io/docs/getting-started",LINK_DEVELOPER_TEXT:"for instructions on authenticating with a public/private keypair to get started with our APIs.",ENTER_DASHBOARD_DESCRIPTION_TITLE:"Enter main tab title",BISCUIT_NAME:"Biscuit Name",BISCUIT_VALUE:"Biscuit Value",PUBLIC_KEY:"Public Key",ENTER:"Enter",BISCUIT_ADDED:"Biscuit added successfully",ADD:"Add",LOAD_YOUR_OWN_DATA:"Load your own data",DASHBOARD_VISIBILITY:"Choose the visibility for your dashboard",PUBLISH:t=>`Publish ${t}`,PUBLISHED_TEXT:t=>`Use the following link to share this public ${t}`,SHOW_BISCUIT:"Show Biscuits",HIDE_BISCUIT:"Hide biscuits",BISCUIT_APPLIED:"Biscuit applied successfully",PROFILE_UPDATE_TYPE:"biscuit",COLOR_YOUR_DASHBOARD:"Color your dashboard",DEFAULT:"Default",CHECK_BACK_LATER:"Please check back later.",NO_COMMUNITIES_FOUND:"No communities found.",NO_COMMUNITY_CHECK:"Please check back later or try selecting some other community.",NOTIFICATIONS:"Notifications",PERMISSION_SECRETS:"Permissions & Secrets",AUTH_PERMISSIONS:"Permissions and Keys",DESCRIPTION:"Description",EMPTY_DASHBOARD_NAME:"Dashboard Name cannot be empty",ERROR_UPLOAD_IMAGE:"Error in uploading image to blob. Please try again later.",EMPTY_DATASET_CUBES_TEXT:"You don't have any datasets at the moment.",WEB2LOGIN:"web2",WEB3LOGIN:"web3",MY_ORG:"My Org",MY_TOKEN_HOLDINGS:"Token Holdings",ZK_ETH_TRANSACTION_HISTORY:"Transaction History",GET_STARTED:"Get Started",ERROR_DASHBOARD_TITLE:"Something went wrong, please try with different dashboard",TABLES_CAPITAL:"Tables",MENU_QUERY_EDITOR_TEXT:"Write a new query",MENU_QUERY_TEXT:"View my saved queries",MENU_CHARTS_TEXT:"View my saved visuals",MENU_GRAPHQL_TEXT:"Write a GraphQL query",MENU_EXPLORE_TEXT:"View trending analytics",MENU_NEW_DASHBOARD_TEXT:"Custom dashboard designs",MENU_DATA_VIZ_TEXT:"Edit charts + analytics",MENU_INSIGHTS_TEXT:"Community activity onchain",MENU_GET_DATA_TEXT:"Load smart contract events",MENU_SEND_DATA_TEXT:"Configure oracle jobs",MENU_MY_DASHBOARDS_TEXT:"View my dashboards",ZK_ETH_NAVIGATION_BUTTON_TEXT:"ZKpay",ZK_ETH_SUB_HEADER:"Onchain Payments & Gasless Transactions",ZK_ETH_YIELD_HEADER:"Get started with ZKpay yield",ZK_ETH_DEPOSIT_TEXT:"Deposit",ZK_ETH_DEPOSIT_INFO_BOX:"You can deposit the following cryptocurrencies to earn SxT points, or pay for SxT compute credits in ETH, USDT, USDC, wstETH, etc.",ZK_ETH_INFO_BOX_1_HEADER:"Understanding ZKpay & Community Points",ZK_ETH_INFO_BOX_2_HEADER:"About ZKpay",ZK_PAY_INFO_BOX_MAIN:'ZKpay is simply a framework for gasless microtransactions on major chains like Ethereum. The ZKpay contract allows community members to deposit tokens, which are immediately "ZK-bridged" over to the Space and Time network.',ZK_ETH_INFO_BOX_1_BODY:"In addition to earning SxT Community Points on external platforms like Zealy, you may also earn points for participating in ZKpay.",ZK_ETH_INFO_BOX_2_BODY:"Your AI-powered data studio. Explore indexed blockchain data, run natural-language queries, and build custom-branded dashboards. Need help? Just ask Houston, your AI data engineer.",ZK_ETH_TOTAL_LABEL:"Total balance (USD): ",ZK_ETH_TOTAL_POINTS:"Total points: ",ZK_ETH_DESCRIPTION_LOGGED_OUT:"Connect a wallet and fund your ZKpay account with USDC, USDT... to earn ZKpay yield or pay for SxT compute credits",ZK_ETH_TOP_RIGHT_CHART_LOADER_MESSAGE:"Loading my ZKpay Charts",ZK_ETH_BALANCE:"Balance (USD)",ZK_ETH_POINTS_EARNED_OVER_TIME:"Points",ZK_PAY_ZEALY_POINTS_HEADER:"Zealy",NEW_DASHBOARD:"New Dashboard",MY_DATA_VIZ:"My Charts & Data Viz",MY_ORG_DATA_VIZ:"My Org Charts & Data Viz",MENU_MY_DATA_VIZ:"View my visualizations",SMART_CONTRACTS:"Smart contracts",GET_DATA_FROM_CHAIN:"Get data from chain",AUTOGENERATED_BISCUIT:"Autogenerated biscuit",PROMPT_ERROR_MSG:"That prompt didn’t work, try again!",CONTINUE_WITHOUT_JOIN_CODE:"Continue without join code",SELECT_THEME:"Select Theme",BEGIN_YOUR_PIPELINE:"Build a Data Pipeline",BUILD_PIPELINE:"Build a",PIPELINE_MODEL:"Data Pipeline",SEE_MORE:"See More",SEE_LESS:"See Less",TIPS_AND_TRICKS_FOR:"Tips and tricks for",SXTBOT:"SxTbot",QUERY:"Query",ETHEREUM:"Ethereum",POLYGON:"Polygon",SMART_CONTRACTS_SUBMITTED:"0 smart contracts submitted",GET_DATA_FROM_CHAIN_DESCRIPTION:"Submit a smart contract address and we'll automatically index the events into a new table.",CONFIGURE_ORACLE_JOB_DESCRIPTION:"Configure oracle jobs to publish tables and query results to the chain, or to request query results directly from your smart contract",ORACLE_JOB_HEAD:"Configure oracle job:",VIEW_ACTIVE_ORACLE_JOBS:t=>`View ${t} active oracle jobs`,BOT:"Bot",CREATE_TABLE_QUERY_1:"CREATE TABLE ETH_TEST.TRANSACTION(`TRANSACTION_HASH` VARCHAR NOT NULL,",CREATE_TABLE_QUERY_2:"`BLOCK_NUMBER` BIGINT NOT NULL,`TIMESTAMP` TIMESTAMP,`TRANSACTION_FEE` DECIMAL(90, 0),",CREATE_TABLE_QUERY_3:"`FROM_ADDRESS` VARCHAR,`TO_ADDRESS` VARCHAR,`VALUE` DECIMAL(90, 0),",CREATE_TABLE_QUERY_4:"`GAS` DECIMAL(90, 0),`RECEIPT_CUMULATIVE_GAS_USED` INT,`RECEIPT_STATUS` INT,PRIMARY KEY(TRANSACTION_HASH)",SELECT_TABLE_QUERY:"select * from ETHEREUM.TRANSACTIONS limit 50",DATA_MODELS_PROMPT_IDS:["1","2","3","4","5"],QUERY_EDITOR_PROMPT_IDS:["6","7","8","14"],PIPELINE_ACTION_VIEWS:{QUERY_EDITOR:"query_editor",DATA_MODEL:"data_model"},PIPELINE_SIDE_MODEL_HEAD_TITLE:{QUERY_EDITOR:"Query Editor",ETH_DATA_MODEL:"Ethereum Data Model",BIN_DATA_MODEL:"Binance Data Model",PLY_DATA_MODEL:"Polygon Data Model",AVC_DATA_MODEL:" Avalanche Data Model",DATA_SETS:"Data Sets"},BLOCKCHAIN_DEF:"A blockchain is a type of distributed database or ledger—one of today's top tech trends—which means the power to update a blockchain is distributed between the nodes, or participants, of a public or private computer network.",OPEN_A_PIPELINE:"Open a Pipeline",PIPELINE_NAME:"Pipeline Name",NODES:"Nodes",STATUS_TITLE:"Status",QUERY_BOT_DEFAULT_MESSAGE:"Hi there, How can I help you?",QUERY_BOT_SEARCH_KEYS:["message","hashtags"],CHAT_DEFI:"chat defi",GRAPH_PREVIEW:"Graph Preview",STOP_GENERATING:"Stop Generating",SEND_DATA_TO_CHAIN:"Send data to chain",QUERY_BOT_DESC2:"Let’s get started below!",CODE_LANGUAGES:{SQL:"sql"},OPEN_IN_EDITOR:"Open in Editor",UNABLE_TO_FETCH_QUERY:"Unable to fetch query result, try again!",RUNNING_SQL:"Running SQL..",POWERED_BY:"Powered by",OPEN_FILE_ZIP:"Open File/Zip",Open_Folder:"Open Folder",Download_Zip_File:"Download Zip File",JOB_NAME:"Job Name",NUMBER_OF_CONTAINERS:"Select Number of Containers",TERMINAL:"TERMINAL",CONSOLE:"CONSOLE",PROBLEM:"PROBLEM",WARNING_MESSAGE_JOB_DETAIL:"Please enter Job details first",GENERATING_DEPENDENCY_FILE:"Generating dependency file",WARNING_MESSAGE_UPLOAD_CODE_FIRST:"Upload or Create code first",WARNING_MESSAGE_UNDEFINED_VARIABLE:"Please fill all variables value first",UPLOAD_CODE_TO_SERVER:"Upload Code To Server",PREPARING_ENVIRONMENT:"Preparing environment",ENVIRONMENT_READY:"Environment ready. Please test the code.",TEST:"Test",DEPLOY:"Deploy",VIA_CHAINLINK_FUNCTIONS:"Via Chainlink Functions",VIA_CHAINLINK_DR:"Via Chainlink Direct Request",CHAINLINK_SUBSCRIPTIONS:"Chainlink Subscriptions",INSUFFICIENT_LINK_TOKENS:"Insufficient LINK tokens",FUND_ADDED_SUCCESSFULLY:"Fund Added Successfully",CONNECT_WALLET:"Connect wallet",ERROR_CONNECT_WALLET:"Error connect wallet",SEND_TO_CONTRACT:"Send to your contract",CHAINLINK_FUNC_DESCRIPTION:"Use Chainlink's Functions (Beta) oracle to send the results of your SQL queries (via saved views), to your smart contract with a suitable response data type, including Javascript code passed to Functions to enable this.",CHAINLINK_DR_DESCRIPTION:"Use Chainlink's Direct Request oracle to send the results of your SQL queries (or saved views) to your smart contract with a suitable response data type.",QUERY_PROMPT_ABORT:"Query Prompt Aborted",NO_TABLES_FOUND:"No Tables Found",PUBLISH_TO_API:"Publish to API end point",HOURLY:"Hourly",DAILY:"Daily",WEEKLY:"Weekly",MY_WORKSPACE:"My Organization",CARD_NUMBER:"Card Number",NAME_ON_CARD:"Name on card",EXPIRATION_DATE:"Expiration Date",SECURITY_CODE:"CVC/CVV",PAY_NOW:"Pay Now",COMPELETE_PAYMENT:"Complete Payment",PAYMENT_DESCRIPTION:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.",CONGRATULATIONS:" Congratulations",SUCCESS_MSG:"You have successfully subscribed to the monthly standard plan",STANDARD_PLAN:"Standard Plan",PURCHASE_NOW:"Subscribe Now",PAYMENT_METHOD:"Payment Method",CANCEL_SUBSCRIPTION:"Cancel Subscription",SUBSCRIPTION_CANCELLED:"Subscription Cancelled",ENABLE:"Enable",DISABLE:"Disable",AUTO_RENEW:"auto renew",ADD_ANOTHER_CARD:"Add Another Card",JOIN_SUBSCRIPTION:"Join an Existing Subscription",INVITE_USER:"Invite User",SELECT_ROLE:"Select Role",REGISTER:"Register",ORGANIZATION_MEMBERS:"Organization Members",SECURITY_CONFIGURATION:"Key Sharing",SET_USER_ROLE:(t,e,n)=>`Role updated for organization member ${(t==null?void 0:t.length)>20?`${t==null?void 0:t.slice(0,20)}...`:t} from ${e} to ${n}`,REMOVE_USER_ROLE:(t,e)=>`Organisation Member  ${(t==null?void 0:t.length)>20?`${t==null?void 0:t.slice(0,20)}...`:t} with role ${e} subscription revoked successfully.`,EXTENSION_NOT_FOUND:t=>`install ${t} extension!!`,SET_KEY_SHARING:(t,e)=>`Key Sharing has been updated from ${t} to ${e}.`,RESET_TEMP_PASSWORD_LABEL:"Temporary Password",RESET_TEMP_PASSWORD_PLACEHOLDER:"Enter Temporary Password",RESET_NEW_PASSWORD_LABEL:"New Password",INPUT_TYPE_NEW_PASSWORD:"newPassword",RESET_BUTTON_TEXT:"Reset Password",INVAILD_PASSWORD:"Password should be alphanumeric and minimum of 8 chars",INVAILD_EMAIL:"Please enter valid email address",TEMP_PASSWORD_INFO:"Please click to get temporary password",NEED_HELP:"Need help",QUERY_ABORTED:"Query Aborted",HERE_ARE_SOME_REFERENCES:"Here are some references:",JOIN_CODE_SUCCESS:"Generated join code copied to clipboard",JOIN_CODE_ERROR:"Unable to generate join code",SHOW_TIPS_AND_TRICKS:"Show Tips and Tricks",HIDE_TIPS_AND_TRICKS:"Hide Tips and Tricks",SELECT_NAME:"SELECT NAME, DECIMALS FROM ethereu",ETHEREUM_TOKEN:"ethereum.token",JOB_ID_CODE:"bc97c680d2924f31a0581d947314bc60",TARGET_FUNCTION:"Target Function",PARAMETERS:"Parameters",TIME_SCHEDULE:"Time Schedule",CRON_EXPRESSION:"Cron Expression *",PUBLISH_ON_CHAIN:"Publish on Chain",HIDE:"Hide",SHOW:"Show",HISTORICAL_DATA:"Historical Data",RESOURCES:"Resources",ACCESS_LEVEL:"Access Level",WHAT_ARE_BISCUITS:"What are biscuits?",HOW_TO_CREATE_BISCUIT:"How to create a biscuit?",BISCUITS:"Biscuits",revokePermissionMessage:(t,e)=>`Access of ${t} has been revoked for ${e}`,updatePermissionMessage:(t,e)=>`${t} permission updated successfully for ${e}`,SUBSCRIPTION_DELETED:"Subscription Deleted",SUBSCRIPTION_CREATED:"Subscription Created",FUND_ADDED:"Fund Added",CONSUMER_ADDED:"Consumer Added",CONSUMER_REMOVED:"Consumer Removed",REFRESH:"Refresh",GENERATE_JOIN_CODE:"Generate Join Code",GENERATE_JOIN_CODE_LABEL:t=>t?`Generated join code for ${t}`:"Generated Join Code",PERMISSION_AND_SECURITY:"Permissions & Security",MY_ORGANIZATION:"My Organization",PIPELINE_BACK_BUTTON_TEXT:"Back To Pipeline",GO_BACK_TO_HOME:"Go Back to Home",PRIVATE_TO_MY_ORG:"Private to My Org",SLUG_NAME_ERROR:t=>`${t} name should only contain lowercase characters, numbers, and hyphens`,VIEW_NAME_ERROR:t=>`${t} name should only contain characters, numbers, and underscores`,ERROR_TEXT_500:"We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.",ORACLE_JOBS:"oracle jobs",PRIVATE_VIEW_ROW_TEXT:"This view is private and cannot be used for sending data to chain",EMPTY_SEND_DATA_TABLE_TEXT:"You do not have any saved queries at the moment. Save a query and it will show up here.",ALREADY_SUBSCRIBED:"Already subscribed",JOINCODE_INFO_TEXT:"Looks like you have joined a subscription already. Copy the join code for future reference.",ADD_CARD:"Submit",NO_DATA_AGGREGRATED_ZK_ETH_BALANCE:"Nothing here yet! Please deposit tokens.",NO_DATA_AGGREGRATED_ZK_ETH_POINTS:"Nothing here yet! Please deposit tokens or complete SxT community quests.",ZK_TOKEN_SAVE_TOAST:"Successfully saved your ZK Token configuration",PAY_WITH_CREDIT_CARD:"Pay with Credit Card",SWITCH_TO_CREDIT_CARD:"Switch to Credit Card payments",ADD_CARD_SUCCESS:"Card details added successfully..!",ADD_DEFAULT_CARD_SUCCESS:"Default card updated successfully..!",SUBSCRIPTION_SUCCESS:"User has been subscribe successfully..!",CARDNAME_LABEL:"Card Holder Name",CARDNAME_PLACEHOLDER:"Enter Name",SUBSCRIPTION_PLAN:"Subscription Plan",CONFIGURE_CREDIT_CARD_PAYMENT:"Configure Credit Card Payment",CARD_DELETED_SUCCESS:"Card has been removed successfully..!",SUBSCRIPTION_CANCEL_SUCCESS:"Subscription has been cancelled successfully..!",CHOOSE_SUBSCRIPTION_OPTION:"Choose a Payment Option",SELECT_WALLET:"Wallet:",PAYMENT_USAGE_BASED_CARD_HEADER:"About Pay per Compute",PAYMENT_FIXED_COST_CARD_HEADER:"About Subscription Pricing",PAYMENT_USAGE_BASED_SUB_HEADER:"Only pay for the queries you run.",PAYMENT_FIXED_COST_SUB_HEADER:"Subscribe to compute at a fixed rate.",PAYMENT_FIXED_COST_DESC:"Subscription-based pricing is perfect for larger projects with heavier or fixed compute needs. Starting at $699/month, compute subscriptions offer faster query runtimes on a hosted network at a fixed rate.",PAYMENT_USAGE_BASED_DESC:"Pay per Compute is our most flexible pricing option. Connect your credit card, start running queries immediately, and only pay for the queries you run.",DEFAULT_FREE_QUERIES_TEXT:"All new Pay per Compute subscriptions are not charged for the first 40 queries.",CARD_DETAILS:"Configure Payment",SKIP_ADD_CREDIT_CARD:"Skip Payment Setup",PAYMENT_SETUP_OPTIONS_GUIDE:"You can add your credit card information now or choose “Skip Payment“. You will be required to setup payment method once you have used your 40 free queries.",MY_SUBSCRIPTION:"My Subscription",MORE_SUBSCRIPTION:"More Subscription Options",PAYMENT_HISTORY:"Payment History",API_ERROR_PAYMENT:"Something went wrong, please try after some time",KEY_SHAREING_DETAILS:"Key Sharing defines how the managed secrets service reuses keys for resources created by your organization. There are three configuration options:",KEY_SHAREING_ALL:"- All - every resource created will reuse the same public/private keypair",KEY_SHAREING_SCHEMA:"- Schema - all resources in the same schema will share the same keypair, while resources in different schemas will have unique keypairs",KEY_SHAREING_NONE:"- None - every resource will have it's own keypair.",MY_CARD:"My Cards",REMOVE_CARD_TOOLTIP_TEXT:"Remove Card",DOWNLOAD_INVOICE:"Download",SUBSCRIPTION_UNDERSTANDING:"Understanding Of My Subscription",PLAN_DETAILS:"Plan Details",PLAN_NAME:"Plan Name",PROVIDER_NAME:"Provider Name",SUBSCRIPTION_NAME:"Subscription Name",SUBSCRIPTION_NAME_INFO:"The main of the subscription to which you are apart of",PLAN_NAME_INFO:"This is the current billing plan you are subscribed to.",PROVIDER_NAME_INFO:"This is the means by which you pay for the plan (e.g., a credit card, a cloud marketplace, etc).",SUBSCRIPTION_ID_INFO:"This is your subscription's unique identifier inside the platform.",BILLING_INFO:"This date defines when recurring charges will be debited from your account.",NO_SUBSCRIPTION:"No subscription",NO_SUBSCRIPTION_INFO:"You do not have an active subscription for Space and Time data warehouse. You will only be able to run a few queries as a free trial user. Please choose a subscription below.",OPTIONAL:"(Optional)",SHOW_NAMESPACE:"Show Namespace",HIDE_NAMESPACE:"Hide Namespace",CLICK_HERE:"Click here",NAMESPACE_CHAINAME_VALIDATION:"You cannot enter namespace same as blockchain names.Type in or choose different namespace.",PROOF_OF_SQL:"Proof of SQL",TAMPERPROOF:"Tamperpoof",STANDARD:"Standard",COLS_ENCRYPTED:"Columns Encrypted",ENCRYPT_COLUMN:"Encrypt Column",TABLE_OR_DATASET_ENCRYPTION:"Table or Dataset Description",CONFIGURE_ENCRYPTION:"Configure encryption",TEMERPROOF_TABLE:"Tamperpoof Table",CONFIGURE_SECURITY_AND_ENCRYPTION:"Configure Security and Encryption",CONFIRM_ENCRYPTION_REQUEST:"Are you sure you want to submit this encryption request?",CONFIRM_ENCRYPTION_REQUEST_INFO:"Please note that this is a one-time activity and cannot be undone.",VIEW_CONTRACT_ADDRESS:"View Contract Address",NO_CORE_FOUND:"No core tables found",UPDATE_PUBLISH:"Update & Publish",SAVE_PUBLISH:"Save & Publish",PRIVATE:"Private",PUBLIC:"Public",DASHBOARD_TITLE:"Dashboard Title",ENTER_SLUG:"Unique Dashboard Name (custom url)",SHOW_METRICS:"Show Metrics",CANCEL_SUBSCRIPTION_TOOLTIP:()=>"Are you sure you want to cancel your current subscription?",REMOVE_CONFIRM_CANCEL_MESSAGE:(t,e,n)=>`${n==="fixed_cost"?`After cancelling the ${t} plan, you will be able to access the platform till ${e}, If you have any concerns or questions, feel free to reach out to`:"Your subscription cancellation will take effect immediately, and you will not be billed further. However, you will retain access to the platform and you will be logged out. If you have any concerns or questions, feel free to reach out to"}`,CUSTOMIZE_DATASET:"Customize dataset",SAVE_DATASET:"Save dataset",ACCESS_TOKEN:"Access Token",EXPLORE_SXT_DOCS:"Quickly test out our API from Docs",EXPLORE_SXT_DOCS_INFO:"The fundamental APIs that drive our dapp frontend are now available for public access. Please make use of the provided access token to authenticate yourself and dive into our documentation to make the most of the Space and Time APIs.",CONTRACT_FILE_SUPPORT_TEXT:"Only support .json and .abi files",CONTRACT_FILE_ERROR_TEXT:"This file format is not supported. Please upload .json and .abi file only.",NEW:"New",TRY_IT:"Try it!",GETTING_STARTED_WITH_ZKPAY:"Getting Started with ZKpay",WELCOME_HEADING:"If you need any help getting started, just ask our chatbot, Houston",WELCOME_QUERY_TEXT:"show me all ethereum wallets with a balance > 1000",WELCOME_TEXT_INFO:t=>`Did you know our AI-powered query editor lets you create SQL queries by just typing in a natural language questions like “${t}”`,CURRENT_PASSWORD_LABEL:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Enter Current Password",CHANGE_PASSWORD_TEXT:"Change Password",CHANGE_CONFIRM_PASSWORD_LABEL:"Confirm Password",PASSWORD_NOT_SAME:"Passwords do not match",SAME_PASSWORD_ERROR:"New password and current password cannot be same",QUERY_SUGGESTION_INFO:"Get some help with Space and Time SQL syntax",AI_QUERY_SUGGESTION_INFO:"Get some help with AI SQL prompts",EXAMPLES_LABEL:"Examples",AI_RUN_PROMPT_LABEL:"Run Prompt",INVAILD_URL:"Please enter valid url",CURRENT_HISTORY:"Current",HISTORICAL_HISTORY:"Historical",AI_LABEL:"AI",AI_PROMPT_PLACEHOLDER:"Prompt for blockchain Data queries (e.g. Get number of blocks created on eth over time by week)...",FROM:"From",TO:"To",USAGE_OF_LAST:"Duration",SELECT_DURATION:"Select Duration",MAXIMUM_API_KEYS_ALLOWED:"You can add a maximum of 5 API keys.",DELETE_API_KEY_SUCCESS:"API key deleted Successfully...!",ADD_API_KEY_SUCCESS:"API key added Successfully...!",CREATE_API_KEY:"Create API Key",SHOW_API_KEYS:"Show API keys",API_KEYS:"API keys",ADD_NEW:"Add New",API_PRIVATE_KEY:"Make sure to copy your API key now, as it cannot be retrieved again later",HOW_TO_USE_QUERY_EDITOR:"How to use Query Editor?",COMPUTE_USAGE:"Compute Usage",MY_USAGE:"My Usage",SUBSCRIPTION_USAGE:"Subcription Usage",SQL_OPERATION_SUCCESS:"Operation executed successfully.",NO_RESULT_FOUND_ON_SEARCH:"We couldn't find anything! Try adjusting the search keyword.",GET_STARTED_WITH:t=>`Get Started with ${t||"Multi-Tenant Subscription"}`,MEMBER_USAGE:"Members Usage",VIEW_DOCS_ANCHOR:"View Docs",SET_CREDIT_CARD:"Add Card",SKIP_PAYMENT:"Skip Payment",WITHOUT_USAGE_DATA:"Welcome to Space and Time! Your subscription is all set up. Start exploring by running queries or creating charts to populate your subscription window with usage details.",EMPTY_DATA_USAGE:"Sorry, no usage data found for the selected filter criteria. Please adjust your filters or check back later.",EMPTY_USER_DATA_USAGE:"Sorry, no usage data found for the selected user criteria. Please select other member or check back later.",EMPTY_MEMBER:"Sorry, no member found.",MY_ORGANIZATION_MEMBER:"Organization Members",PROOF_OF_SQL_INFO_1:"Proof of SQL generates a ZK-proof during your query execution, proving that the underlying tables have not been tampered and the SQL execution is accurate.",PROOF_OF_SQL_INFO_2:"In order to use Proof of SQL, you must run it on a table that has been marked as tamperproof. See our documentation here: ",PROOF_OF_SQL_INFO_3:"Be aware that not all SQL functionality is currently supported. We are constantly adding more support for new SQL functions and data types with each new feature release. To find the most up-to-date information about what's supported, please check our documentation here: ",PROOF_OF_SQL_SUPPORTED_DATATYPES:"Data Types currently supported",PROOF_OF_SQL_SUPPORTED_SQL:"SQL Syntax currently supported",RESERVED_WORDS:"Reserved words",UNSUPPORTED_KEYWORDS:"Unsupported keywords",UNSUPPORTED_KEYWORDS_ERROR:t=>`Unsupported Proof of SQL Keyword: ${t}`,USAGE_DETAILS:"Usage Details",TOTAL_USAGE:"Total Usage",TOTAL_COST:"Total Cost",SUM_OF_USAGE:"Compute Units",USAGE_PER_DAY:"Usage Per Day",USAGE_SUMMARY:"Usage Summary",GET_DATA_COMING_SOON_INFO:"We're working hard to enhance our blockchain indexing service and add support for indexing specific smart contract events for specific protocols into new tables (semantic data models). While we capture ALL major contract events today, this feature for grabbing only YOUR contract events is still in development.",THANKYOU_CLOUD_PROVIDER:t=>` Thanks for subscribing on the ${t} Marketplace. We are
  excited to see what you build. To get started, fill out the
  information on the right.`,PUBLISHED_VISUAL_DELETE_TEXT:t=>`Published ${t} cannot be deleted`,UNTITLED_DASHBOARD:"Untitled Dashboard",UNTITLED_QUERY:"Untitled Query",SQL_STATEMENT_TEMPLATES:"SQL Statement Templates",QUERY_PROMPT_SUGGESTIONS:"Query Prompt Suggestions",POPULAR_BUSINESS_TERMS:"Popular Business Terms (Subqueries)",TITLE_TEXT_COLOR:"Title text color",UNSAVED_CHANGES_TEXT:"You have unsaved changes. Are you sure you want to leave?",UNSAVED_CHANGES_TITLE:"Unsaved Changes?",CURRENT_QUERY_TEXT:"Explore your recent activity! Here's your query history from the last 20 minutes.",HISTORICAL_WITHOUT_FILTER_QUERY_TEXT:"Explore your entire query history here!",HISTORICAL_QUERY_TEXT:(t,e)=>`Explore your query history from ${t} to ${e}.`,REMOVE:"Remove",DOWNLOADING_FAILED:"Downloading Failed.",SUBSCRIPTION_ID:"Subscription ID",BILLING_CYCLE_TEXT_INTRO:"You will be charged on the",BILLING_CYCLE_TEXT_END:"of every month",CREDIT_UNIT:"Credits",LEARN_MORE_HERE:"Learn more here",PERMISSIONING_TABLE_ACCESS:"permissioning table access",ACCESS_APIS_THROUGH_GATEWAY:"access APIs through the Gateway",MY_PUBLIC_DASHBOARD:"My Dashboard (Public)",MATERIALIZED_VIEW:"Materialized",SAVE_MATERIALIZED_VIEW:"Save Materialized View",MATERIALIZED_VIEW_SUCCESS:"Materialized View saved successfully",VIEW_NAME:"View Name",ENTER_VIEW_NAME:"Enter View Name",MV_CREATED_SUCCESS:"Materialized view created successfully",CURRENT_BALANCE:"Current Balance",FREE_QUERY_BALANCE:"Free Query Balance",MANAGE_SUBSCRIPTION:"Manage Subscription",AUTOPAY:"Autopay",SUB_TOTAL:"Sub Total",TOTAL:"Total",DISCOUNT:"Discount",AUTO_PURCHASE:"Auto Purchase",SET_THRESHOLD:"Set Threshold",BALANCE:"Balance",PURCHASE:"Purchase",PURCHASING:"Purchasing",COST:"Cost",ENABLED:"Enabled",DISABLED:"Disabled",PURCHASE_STU:"Purchase Credits",PAY_OUTSTANDING_BALANCE:"Pay outstanding balance",AVAILABLE_OFFERINGS:"Select Any Credit Offerings",SETTING_AUTOPAY:"Configuring Autopay",AUTOPAY_ON_THRESHOLD:"Set auto purchase on threshold",USAGE_CONFIG_ERROR:"Unable to update details please try later",USAGE_CONFIG_SUCCESS:"Details updated",PURCHASE_OFFERING_SUCCESS:"Offering purchased successfully. Balance will be updated shortly",PURCHASE_OFFERING_ERROR:"Unable to proccess the request , please try later",AUTO_PAY_INFO:()=>"Enable or disable automatic payments by toggling the switch. If enabled, the system will process payments when the quota is exceeded. You can also set up the system to automatically purchase credits when reaching a specific threshold using the settings above.",AI_DISABLED:"AI Disabled",AI_ENABLED:"AI Enabled",AUTO_PAY_ENABLE_TOGGLE_SUCCESS:"Auto-pay enabled successfully..!",AUTO_PAY_DISABLE_TOGGLE_SUCCESS:"Auto-pay disabled successfully..!",CONFIG_UPDATE_TYPE_TOGGLE:"toggle",CONFIG_UPDATE_TYPE_BUTTON:"button",AUTO_PURCHASE_THRESHOLD_SUCCESS:"Auto-purchase threshold set successfully!",CONFIGURE_AUTO_PURCHASE:"Configure Auto Purchase",CONFIGURE_AUTOPAY:"Configure Autopay",THRESHOLD_INFO_TEXT:t=>`When your balance falls below ${t} credits, the system will automatically initiate the purchase of the specified offering.`,ENTER_USER_ID:"Enter username",USERID_PLACEHOLDER:"Update username",USERID_LABEL:"Username",UPDATE_USERID_MESSAGE:"Ensure a smoother interaction by choosing a username that isn't the same as your public wallet address.",ENTER_VALID_USER_ID:"Please enter valid Username",USER_ALREADY_EXIST_ERROR:"User already exist",CHAINLINK_SUBSCRIPTION_DISABLED_INFO:"You need to connect your wallet to see chainlink subcriptions",EXPLORE_DOC:"Explore API Docs",AUTOMATIC_CHARGE:"Automatic Charge on Negative Balance",AUTOMATIC_CHARGE_TEXT:"Enable or disable automatic payments by toggling the switch. If enabled, payments will be processed whenever the negative balance reaches a certain threshold (around -$100) to return the balance to zero, thus avoiding an interruption in service.  This is in addition to the normal monthly billing, which also returns the balance to zero.",AUTO_LOAD_STU:"Auto-Load Credit Feature",AUTO_LOAD_STU_TEXT:"Enable or disable automatic payments by toggling the switch. If enabled, the system will reload your credits with the selected offeringId and automatically purchase additional credits when your balance reaches a specific credit threshold, as configured in the settings below.",AUTOMATIC_CHARGE_TYPE_TOGGLE:"automatic",AUTO_LOAD_TOGGLE:"auto_load",UPDATE_AUTOPAY_ON_THRESHOLD:"Update auto purchase on threshold",QUERY_SLUG_LABEL:"Enter a unique query identifier name (Slug name)",EXPAND:"Expand",COLLAPSE:"Collapse",EMAIL_DETAILS:"Email Address",SUBSCRIPTION_EMAIL_INFO:"When registering for the Space and Time subscription, we require your email address to send you notifications or provide information related to your subscription.",CREDIT_UNIT_SMALL:"credits",AUTO_PURCHASE_THRESHOLD_UPDATE_SUCCESS:"Auto-purchase threshold updated successfully!",BALANCE_PAID_SUCCESS:"Balance paid successfully. Balance will be updated shortly",WALLET_CONNECTED:"Wallet connected successfully",WALLET_CONNECT_FAIL:"Unable to connect",WALLET_SIGNATURE_REJECTION:"Wallet connection failed because signature was rejected",CONNECT_A_WALLET:`Hi there from Space and Time Studio dApp! Sign this message to prove you have access to this wallet and we'll connect your wallet with Space and Time Studio dApp. This is free- it won't cost you any Ether.
  To stop hackers using your wallet, here's a unique auth code they can't guess: `,CONNECT_A_WALLET_HELP_TEXT:"Choose your preferred wallet to seamlessly log into SxT Studio. We offer support for various wallets, providing you with flexibility and control over your digital assets.",PUBLIC_DASHBOARD:"Public Dashboard",VIEW_HERE_ANCHOR_LINK:"View here",VIEWS:"Views",VIEWS_TEXT:"Explore all views",CREATE_VIEW:"Create new view",NO_VIEW_FOUND:"Couldn't find any views matching your search criteria",FILTER_BY_SCHEMA:"Filter By Dataset",FILTER_BY_SCOPE:"Filter By Scope",SELECT_SCHEMA:"Select Dataset",TABLE_ENCRYPTED_SUCCESS:"Table encrypted successfully",UPGRADE_TEXT:"Change Plan",EMPTY_SCHEMA:"No datasets available. Begin by creating a dataset to organize your data.",EMPTY_TABLES:"No tables found in this dataset. Start by creating a table to store your data.",CREATE_SCHEMA_INFO_TEXT:`It seems you don't have any datasets yet. 
  Begin by creating a dataset to organize your data! Click below to create your first dataset.`,CREATE_TABLE_INFO_TEXT:"Looks like your dataset is empty. Start by creating a table to populate your dataset! Click below to create your first table.",CREATE_SCHEMA:"Create Dataset",CREATE_TABLE:"Create Table",NO_DATASET_FOUND:"No Dataset Found",MY_PRIVATE_AND_MY_ORG:"My Organization",COMMUNITY_DATASETS:"Public (Offchain)",NO_RESULT_FOUND_ON_VIEW_FILTER:"We couldn't find anything! Try adjusting the search or filter.",LEAVE_SUBSCRIPTION_SUCCESS:"You have been successfully removed from this subscription",LEAVE_SUBSCRIPTION:"Leave Subscription",LEAVE_SUBSCRIPTION_MESSAGE:"If you proceed, you won't be able to run private queries and access organization data. If you have any concerns or questions, feel free to reach out to",LEAVE_SUBSCRIPTION_TOOLTIP:"Are you sure you want to leave your current subscription?",SUPPORT_LINK_MESSAGE:"our support team for assistance",IMMUTABLE:"Immutable",SKIP_FOR_NOW:"Or skip paid subscription for now:",REGISTER_AS_TRIAL_USER:"Register as trial user",JOIN_EXISTING_SUBSCRIPTION:"Join your org's existing subscription",CHOOSE_A_SUBSCRIPTION:"Choose a subscription",SKIP_NOW_CHECKBOX_TEXT:"I don't have a joincode - register as trial user",MEMBERS:"Members",BY_TAG:"By Tag",TABLES_TEXT:"Tables and Columns",EXPLORE_PUBLIC_QUERIES:"Explore Public Queries",EXPLORE_PUBLIC_DASHBOARDS:"Explore Public Dashboards",VIEW_IN_EDITOR:"View In Editor",MATERIALIZE_VIEW_CHECKBOX_TEXT:"Cache this query result as a materialized view",MATERIALIZED_VIEW_CONFIGURATION:"Materialized View (Cache) Configuration",MATERIALIZED_VIEW_INFO:"A materialized view is a precomputed result of a SQL query that is stored as a physical table. They are used to improve query performance, and they are refreshed automatically to reflect changes in the underlying data.",INSUFFICIENT_ENCRYPTION_PERMISSIONS:t=>`To configure encryption on this table (${t}), please make sure you have uploaded a biscuit with ddl_alter permissions.`,SELECT_TABLE:"Select Table",USER_USAGE_INFO:"Track your usage of compute units over time with detailed activity logs and a visual representation. Monitor your total usage for the selected duration at a glance.",SUBSCRIPTION_USAGE_INFO:"Access a comprehensive overview of your subscription's overall usage of compute units and charge activity with detailed logs and visual representation.",MEMBER_USAGE_INFO:"Gain a comprehensive overview of usage and charge activity for your subscription members, complete with detailed logs and visual representation. Easily select a member by using the dropdown below to access specific member logs.",UPGRADE_SUBSCRIPTION_TOOLTIP:"Are you sure you want to change your current subscription?",UPGRADE_SUBSCRIPTION_FIXED_MESSAGE:"Are you sure you want to change your plan from Flat Fee to Pay Per Compute? Your remaining Flat Fee monthly balance(if any) will be converted to Compute credits.",UPGRADE_SUBSCRIPTION_COMPUTE_ZERO_BALANCE_MESSAGE:"Confirm your plan change from Pay Per Compute to Flat Fee. If you proceed, remaining Compute credits(if any) will be converted to a prorated Flat Fee for the current billing cycle.",UPGRADE_SUBSCRIPTION_COMPUTE_WITH_LESS_BALANCE_MESSAGE:t=>`By Changing from Pay Per Compute to Flat Fee, (plan amount ${t}- balance) will be incurred as an additional cost as your account’s Compute credits are less than the Flat Fee monthly cost. Do you wish to proceed?`,UPGRADE_SUBSCRIPTION_COMPUTE_WITH_GREATER_BALANCE_MESSAGE:"Changing from Pay Per Compute to Flat Fee will result in a lapse of excess (if balance exceeds the plan amount) Compute credits as your account balance exceeds the Flat Fee monthly cost. Are you sure you want to proceed?",UPGRADE_SUBSCRIPTION_FIXED_SUCCESS_MESSAGE:"Congratulations! Your plan has been changed from Flat Fee to Pay Per Compute. Your remaining Flat Fee monthly cost has been converted into Compute credits for your usage.",UPGRADE_SUBSCRIPTION_COMPUTE_ZERO_BALANCE_SUCCESS_MESSAGE:"Your plan has been successfully changed from Pay Per Compute to Flat Fee. Your remaining Compute credits have been converted into Flat Fee monthly cost",UPGRADE_SUBSCRIPTION_COMPUTE_WITH_LESS_BALANCE_SUCCESS_MESSAGE:"Your plan has been updated from Pay Per Compute to Flat Fee. As your Compute credits were insufficient to cover the Flat Fee cost, an additional amount has been deducted from your saved credit card.",UPGRADE_SUBSCRIPTION_COMPUTE_WITH_GREATER_BALANCE_SUCCESS_MESSAGE:"Your plan has been changed from Pay Per Compute to Flat Fee. Since your Compute credits exceeded the Flat Fee monthly cost, the remaining balance has lapsed.",JOIN_SUBSCRIPTION_REGISTER:"Purchase subscription",OR:"or",INPUT_TYPE_TEMP_PASSWORD:"tempPassword",CHART_NO_DATA_TEXT:" No data available for the specified query!",CHART_NO_DATA_SUBTEXT:"Please click here to adjust your query or try again later.",SELECT_AGGREGATION:"Select Aggregation",AGGREGATED_BY:"Aggregated By",NO_SCHEMA_FOUND:"No Schema Found",SEARCH_VIEWS:"Search views",SCHEMA:"Schema",PUBLISHED_TITLE:"Dashboard Link",ORGANIZATION_DATASETS:"My Organization (Offchain)",SPACE_AND_TIME_DATASETS:"Indexed Chains",REFRESHING:"Refreshing...",REFRESH_RESULTS:"Refresh Results",STAY:"Stay",LEAVE:"Leave",SHARE_DASHBOARD_TOOLTIP:"Share this dashboard",DEFAULT_FREE_QUERY_TEXT:"Just like the credit balance, the free query count is updated roughly every 15 minutes, so the balance you see may or may not be up to date.",TRIAL_EXPIRED:"Trial expired",CHOOSE_QUERY_VISIBILITY:"Choose the visibility for your query:",SMART_CONTRACT_SUCCESS:"Contract Submitted Successfully...",DATASET_INFO_TOOLTIP_MSG_1:"The platform employs near real-time indexing of blockchain data using a cryptographically verifiable method for accuracy.",DATASET_INFO_TOOLTIP_MSG_2:"You need to click on a blockchain cube to view all tables and data sets.",OPEN_DOCS:"Open Docs",ADD_EMAIL_LABEL:"Add Email Address",TRIAL:"Trial",CONTRACT_TRACKED:"Contract Already Tracked",QUERY_CLONE_SUCCESS:"Query forked successfully",NO_WALLET_ADDRESS_FOUND:t=>`No  wallet address found in profile, please update/reinstall ${t}`,FORK_VISUAL:"Fork visual",VISUAL_CLONE_SUCCESS:"Visual forked successfully",SXT_SUBGROUP:"Popular Protocol Contracts",COMMUNITY_SUBGROUP:"Community Requested Contracts",CORE_CHAIN_DATA:"Core Chain Data",COUNTER_HELP_TEXT:"In instances of non-computability or static metric choice, the result will showcase the first column value."},X3r=({selectedOffering:t,usageConfig:e})=>`Auto-pay is set up at $${t==null?void 0:t.cost} for
${t==null?void 0:t.units} ${q.CREDIT_UNIT_SMALL}, triggered when your balance reaches ${e==null?void 0:e.autoPurchaseCreditThreshold} 
${q.CREDIT_UNIT_SMALL}.`,JYt={ENCRYPTION_GUIDE:"https://docs.spaceandtime.io/docs/encryption-guide",BLOCKCHAIN_INDEXING:"https://docs.spaceandtime.io/docs/overview"},e5r=Symbol(),IXe=Symbol(),xQ="a",ime="w";let t5r=(t,e)=>new Proxy(t,e);const uHe=Object.getPrototypeOf,dHe=new WeakMap,ZYt=t=>t&&(dHe.has(t)?dHe.get(t):uHe(t)===Object.prototype||uHe(t)===Array.prototype),p0t=t=>typeof t=="object"&&t!==null,n5r=t=>{if(Array.isArray(t))return Array.from(t);const e=Object.getOwnPropertyDescriptors(t);return Object.values(e).forEach(n=>{n.configurable=!0}),Object.create(uHe(t),e)},XYt=t=>t[IXe]||t,eJt=(t,e,n,r)=>{if(!ZYt(t))return t;let a=r&&r.get(t);if(!a){const c=XYt(t);a=(u=>Object.values(Object.getOwnPropertyDescriptors(u)).some(d=>!d.configurable&&!d.writable))(c)?[c,n5r(c)]:[c],r==null||r.set(t,a)}const[o,s]=a;let l=n&&n.get(o);return l&&l[1].f===!!s||(l=((c,u)=>{const d={f:u};let h=!1;const f=(m,g)=>{if(!h){let v=d[xQ].get(c);if(v||(v={},d[xQ].set(c,v)),m===ime)v[ime]=!0;else{let A=v[m];A||(A=new Set,v[m]=A),A.add(g)}}},p={get:(m,g)=>g===IXe?c:(f("k",g),eJt(Reflect.get(m,g),d[xQ],d.c,d.t)),has:(m,g)=>g===e5r?(h=!0,d[xQ].delete(c),!0):(f("h",g),Reflect.has(m,g)),getOwnPropertyDescriptor:(m,g)=>(f("o",g),Reflect.getOwnPropertyDescriptor(m,g)),ownKeys:m=>(f(ime),Reflect.ownKeys(m))};return u&&(p.set=p.deleteProperty=()=>!1),[p,d]})(o,!!s),l[1].p=t5r(s||o,l[0]),n&&n.set(o,l)),l[1][xQ]=e,l[1].c=n,l[1].t=r,l[1].p},tJt=(t,e,n,r)=>{if(Object.is(t,e))return!1;if(!p0t(t)||!p0t(e))return!0;const a=n.get(XYt(t));if(!a)return!0;if(r){const s=r.get(t);if(s&&s.n===e)return s.g;r.set(t,{n:e,g:!1})}let o=null;try{for(const s of a.h||[])if(o=Reflect.has(t,s)!==Reflect.has(e,s),o)return o;if(a[ime]===!0){if(o=((s,l)=>{const c=Reflect.ownKeys(s),u=Reflect.ownKeys(l);return c.length!==u.length||c.some((d,h)=>d!==u[h])})(t,e),o)return o}else for(const s of a.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(t,s)!=!!Reflect.getOwnPropertyDescriptor(e,s),o)return o;for(const s of a.k||[])if(o=tJt(t[s],e[s],n,r),o)return o;return o===null&&(o=!0),o}finally{r&&r.set(t,{n:e,g:o})}},r5r=t=>ZYt(t)&&t[IXe]||null,m0t=(t,e=!0)=>{dHe.set(t,e)};const m5e=t=>typeof t=="object"&&t!==null,a3=new WeakMap,oZ=new WeakSet,i5r=(t=Object.is,e=(u,d)=>new Proxy(u,d),n=u=>m5e(u)&&!oZ.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),r=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},a=new WeakMap,o=(u,d,h=r)=>{const f=a.get(u);if((f==null?void 0:f[0])===d)return f[1];const p=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return m0t(p,!0),a.set(u,[d,p]),Reflect.ownKeys(u).forEach(m=>{if(Object.getOwnPropertyDescriptor(p,m))return;const g=Reflect.get(u,m),v={value:g,enumerable:!0,configurable:!0};if(oZ.has(g))m0t(g,!1);else if(g instanceof Promise)delete v.value,v.get=()=>h(g);else if(a3.has(g)){const[A,y]=a3.get(g);v.value=o(A,y(),h)}Object.defineProperty(p,m,v)}),Object.preventExtensions(p)},s=new WeakMap,l=[1,1],c=u=>{if(!m5e(u))throw new Error("object required");const d=s.get(u);if(d)return d;let h=l[0];const f=new Set,p=(k,P=++l[0])=>{h!==P&&(h=P,f.forEach(N=>N(k,P)))};let m=l[1];const g=(k=++l[1])=>(m!==k&&!f.size&&(m=k,A.forEach(([P])=>{const N=P[1](k);N>h&&(h=N)})),h),v=k=>(P,N)=>{const L=[...P];L[1]=[k,...L[1]],p(L,N)},A=new Map,y=(k,P)=>{if(f.size){const N=P[3](v(k));A.set(k,[P,N])}else A.set(k,[P])},S=k=>{var P;const N=A.get(k);N&&(A.delete(k),(P=N[1])==null||P.call(N))},x=k=>(f.add(k),f.size===1&&A.forEach(([N,L],I)=>{const b=N[3](v(I));A.set(I,[N,b])}),()=>{f.delete(k),f.size===0&&A.forEach(([N,L],I)=>{L&&(L(),A.set(I,[N]))})}),w=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),C=e(w,{deleteProperty(k,P){const N=Reflect.get(k,P);S(P);const L=Reflect.deleteProperty(k,P);return L&&p(["delete",[P],N]),L},set(k,P,N,L){const I=Reflect.has(k,P),b=Reflect.get(k,P,L);if(I&&(t(b,N)||s.has(N)&&t(b,s.get(N))))return!0;S(P),m5e(N)&&(N=r5r(N)||N);let T=N;if(N instanceof Promise)N.then(M=>{N.status="fulfilled",N.value=M,p(["resolve",[P],M])}).catch(M=>{N.status="rejected",N.reason=M,p(["reject",[P],M])});else{!a3.has(N)&&n(N)&&(T=c(N));const M=!oZ.has(T)&&a3.get(T);M&&y(P,M)}return Reflect.set(k,P,T,L),p(["set",[P],N,b]),!0}});s.set(u,C);const R=[w,g,o,x];return a3.set(C,R),Reflect.ownKeys(u).forEach(k=>{const P=Object.getOwnPropertyDescriptor(u,k);"value"in P&&(C[k]=u[k],delete P.value,delete P.writable),Object.defineProperty(w,k,P)}),C})=>[c,a3,oZ,t,e,n,r,a,o,s,l],[a5r]=i5r();function Rv(t={}){return a5r(t)}function Uw(t,e,n){const r=a3.get(t);let a;const o=[],s=r[3];let l=!1;const u=s(d=>{if(o.push(d),n){e(o.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,l&&e(o.splice(0))}))});return l=!0,()=>{l=!1,u()}}function i0e(t,e){const n=a3.get(t),[r,a,o]=n;return o(r,a(),e)}function JH(t){return oZ.add(t),t}function cE(t,e,n,r){let a=t[e];return Uw(t,()=>{const o=t[e];Object.is(a,o)||n(a=o)},r)}var nJt={exports:{}},rJt={};/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ZH=Y;function o5r(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var s5r=typeof Object.is=="function"?Object.is:o5r,l5r=ZH.useState,c5r=ZH.useEffect,u5r=ZH.useLayoutEffect,d5r=ZH.useDebugValue;function h5r(t,e){var n=e(),r=l5r({inst:{value:n,getSnapshot:e}}),a=r[0].inst,o=r[1];return u5r(function(){a.value=n,a.getSnapshot=e,g5e(a)&&o({inst:a})},[t,n,e]),c5r(function(){return g5e(a)&&o({inst:a}),t(function(){g5e(a)&&o({inst:a})})},[t]),d5r(n),n}function g5e(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!s5r(t,n)}catch{return!0}}function f5r(t,e){return e()}var p5r=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f5r:h5r;rJt.useSyncExternalStore=ZH.useSyncExternalStore!==void 0?ZH.useSyncExternalStore:p5r;nJt.exports=rJt;var m5r=nJt.exports;const g5r=Li(m5r),{use:g0t}=ke,{useSyncExternalStore:v5r}=g5r;const A5r=new WeakMap;function iJt(t,e){const n=e==null?void 0:e.sync,r=Y.useRef(),a=Y.useRef();let o=!0;const s=v5r(Y.useCallback(u=>{const d=Uw(t,u,n);return u(),d},[t,n]),()=>{const u=i0e(t,g0t);try{if(!o&&r.current&&a.current&&!tJt(r.current,u,a.current,new WeakMap))return r.current}catch{}return u},()=>i0e(t,g0t));o=!1;const l=new WeakMap;Y.useEffect(()=>{r.current=s,a.current=l});const c=Y.useMemo(()=>new WeakMap,[]);return eJt(s,l,c,A5r)}const v5e="https://secure.web3modal.com",$R={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,ONE_SEC_MS:1e3,SECURE_SITE:v5e,SECURE_SITE_DASHBOARD:`${v5e}/dashboard`,SECURE_SITE_FAVICON:`${v5e}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet"}},La={isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){const t=window.navigator.userAgent.toLowerCase();return La.isMobile()&&t.includes("android")},isIos(){const t=window.navigator.userAgent.toLowerCase();return La.isMobile()&&(t.includes("iphone")||t.includes("ipad"))},isClient(){return typeof window<"u"},isPairingExpired(t){return t?t-Date.now()<=$R.TEN_SEC_MS:!0},isAllowedRetry(t){return Date.now()-t>=$R.ONE_SEC_MS},copyToClopboard(t){navigator.clipboard.writeText(t)},getPairingExpiry(){return Date.now()+$R.FOUR_MINUTES_MS},getPlainAddress(t){return t.split(":")[2]},async wait(t){return new Promise(e=>{setTimeout(e,t)})},debounce(t,e=500){let n;return(...r)=>{function a(){t(...r)}n&&clearTimeout(n),n=setTimeout(a,e)}},isHttpUrl(t){return t.startsWith("http://")||t.startsWith("https://")},formatNativeUrl(t,e){if(La.isHttpUrl(t))return this.formatUniversalUrl(t,e);let n=t;n.includes("://")||(n=t.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`);const r=encodeURIComponent(e);return{redirect:`${n}wc?uri=${r}`,href:n}},formatUniversalUrl(t,e){if(!La.isHttpUrl(t))return this.formatNativeUrl(t,e);let n=t;n.endsWith("/")||(n=`${n}/`);const r=encodeURIComponent(e);return{redirect:`${n}wc?uri=${r}`,href:n}},openHref(t,e){window.open(t,e,"noreferrer noopener")},async preloadImage(t){const e=new Promise((n,r)=>{const a=new Image;a.onload=n,a.onerror=r,a.crossOrigin="anonymous",a.src=t});return Promise.race([e,La.wait(2e3)])},formatBalance(t,e){var r;let n;if(t==="0")n="0.000";else if(typeof t=="string"){const a=Number(t);a&&(n=(r=a.toString().match(/^-?\d+(?:\.\d{0,3})?/u))==null?void 0:r[0])}return n?`${n} ${e}`:`0.000 ${e}`},isRestrictedRegion(){try{const{timeZone:t}=new Intl.DateTimeFormat().resolvedOptions(),e=t.toUpperCase();return $R.RESTRICTED_TIMEZONES.includes(e)}catch{return!1}},getApiUrl(){return La.isRestrictedRegion()?"https://api.web3modal.org":"https://api.web3modal.com"},getBlockchainApiUrl(){return La.isRestrictedRegion()?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com"},getAnalyticsUrl(){return La.isRestrictedRegion()?"https://pulse.walletconnect.org":"https://pulse.walletconnect.com"},getUUID(){return crypto!=null&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})},parseError(t){var e,n;return typeof t=="string"?t:typeof((n=(e=t==null?void 0:t.issues)==null?void 0:e[0])==null?void 0:n.message)=="string"?t.issues[0].message:t instanceof Error?t.message:"Unknown error"}},Af=Rv({isConnected:!1}),jl={state:Af,subscribe(t){return Uw(Af,()=>t(Af))},subscribeKey(t,e){return cE(Af,t,e)},setIsConnected(t){Af.isConnected=t},setCaipAddress(t){Af.caipAddress=t,Af.address=t?La.getPlainAddress(t):void 0},setBalance(t,e){Af.balance=t,Af.balanceSymbol=e},setProfileName(t){Af.profileName=t},setProfileImage(t){Af.profileImage=t},setAddressExplorerUrl(t){Af.addressExplorerUrl=t},resetAccount(){Af.isConnected=!1,Af.caipAddress=void 0,Af.address=void 0,Af.balance=void 0,Af.balanceSymbol=void 0,Af.profileName=void 0,Af.profileImage=void 0,Af.addressExplorerUrl=void 0}};class PXe{constructor({baseUrl:e}){this.baseUrl=e}async get({headers:e,...n}){const r=this.createUrl(n);return(await fetch(r,{method:"GET",headers:e})).json()}async getBlob({headers:e,...n}){const r=this.createUrl(n);return(await fetch(r,{method:"GET",headers:e})).blob()}async post({body:e,headers:n,...r}){const a=this.createUrl(r);return(await fetch(a,{method:"POST",headers:n,body:e?JSON.stringify(e):void 0})).json()}async put({body:e,headers:n,...r}){const a=this.createUrl(r);return(await fetch(a,{method:"PUT",headers:n,body:e?JSON.stringify(e):void 0})).json()}async delete({body:e,headers:n,...r}){const a=this.createUrl(r);return(await fetch(a,{method:"DELETE",headers:n,body:e?JSON.stringify(e):void 0})).json()}createUrl({path:e,params:n}){const r=new URL(e,this.baseUrl);return n&&Object.entries(n).forEach(([a,o])=>{o&&r.searchParams.append(a,o)}),r}}const A5e="WALLETCONNECT_DEEPLINK_CHOICE",v0t="@w3m/recent",A0t="@w3m/connected_wallet_image_url",y0t="@w3m/connected_connector",L0={setWalletConnectDeepLink({href:t,name:e}){try{localStorage.setItem(A5e,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{const t=localStorage.getItem(A5e);if(t)return JSON.parse(t)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{localStorage.removeItem(A5e)}catch{console.info("Unable to delete WalletConnect deep link")}},setWeb3ModalRecent(t){try{const e=L0.getRecentWallets();e.find(r=>r.id===t.id)||(e.unshift(t),e.length>2&&e.pop(),localStorage.setItem(v0t,JSON.stringify(e)))}catch{console.info("Unable to set Web3Modal recent")}},getRecentWallets(){try{const t=localStorage.getItem(v0t);return t?JSON.parse(t):[]}catch{console.info("Unable to get Web3Modal recent")}return[]},setConnectedWalletImageUrl(t){try{localStorage.setItem(A0t,t)}catch{console.info("Unable to set Connected Wallet Image Url")}},getConnectedWalletImageUrl(){try{return localStorage.getItem(A0t)}catch{console.info("Unable to set Connected Wallet Image Url")}},setConnectedConnector(t){try{localStorage.setItem(y0t,t)}catch{console.info("Unable to set Connected Connector")}},getConnectedConnector(){try{return localStorage.getItem(y0t)}catch{console.info("Unable to get Connected Connector")}}},QN=Rv({walletImages:{},networkImages:{},connectorImages:{},tokenImages:{}}),Bj={state:QN,subscribeNetworkImages(t){return Uw(QN.networkImages,()=>t(QN.networkImages))},subscribeKey(t,e){return cE(QN,t,e)},setWalletImage(t,e){QN.walletImages[t]=e},setNetworkImage(t,e){QN.networkImages[t]=e},setConnectorImage(t,e){QN.connectorImages[t]=e},setTokenImage(t,e){QN.tokenImages[t]=e}},Q1=Rv({projectId:"",sdkType:"w3m",sdkVersion:"html-wagmi-undefined"}),sc={state:Q1,subscribeKey(t,e){return cE(Q1,t,e)},setProjectId(t){Q1.projectId=t},setIncludeWalletIds(t){Q1.includeWalletIds=t},setExcludeWalletIds(t){Q1.excludeWalletIds=t},setFeaturedWalletIds(t){Q1.featuredWalletIds=t},setTokens(t){Q1.tokens=t},setTermsConditionsUrl(t){Q1.termsConditionsUrl=t},setPrivacyPolicyUrl(t){Q1.privacyPolicyUrl=t},setCustomWallets(t){Q1.customWallets=t},setEnableAnalytics(t){Q1.enableAnalytics=t},setSdkVersion(t){Q1.sdkVersion=t},setMetadata(t){Q1.metadata=t}},f4=Rv({connectors:[]}),hu={state:f4,subscribeKey(t,e){return cE(f4,t,e)},setConnectors(t){f4.connectors=t.map(e=>JH(e))},addConnector(t){var e,n;if(f4.connectors.push(JH(t)),t.id==="w3mEmail"){const r=t,a=i0e(sc.state);(n=(e=r==null?void 0:r.provider)==null?void 0:e.syncDappData)==null||n.call(e,{metadata:a.metadata,sdkVersion:a.sdkVersion,projectId:a.projectId})}},getEmailConnector(){return f4.connectors.find(t=>t.type==="EMAIL")},getAnnouncedConnectorRdns(){return f4.connectors.filter(t=>t.type==="ANNOUNCED").map(t=>{var e;return(e=t.info)==null?void 0:e.rdns})},getConnectors(){return f4.connectors}},EQ=Rv({open:!1,selectedNetworkId:void 0}),XH={state:EQ,subscribe(t){return Uw(EQ,()=>t(EQ))},set(t){Object.assign(EQ,{...EQ,...t})}},Og=Rv({supportsAllNetworks:!0,isDefaultCaipNetwork:!1}),dh={state:Og,subscribeKey(t,e){return cE(Og,t,e)},_getClient(){if(!Og._client)throw new Error("NetworkController client not set");return Og._client},setClient(t){Og._client=JH(t)},setCaipNetwork(t){Og.caipNetwork=t,XH.set({selectedNetworkId:t==null?void 0:t.id})},setDefaultCaipNetwork(t){Og.caipNetwork=t,XH.set({selectedNetworkId:t==null?void 0:t.id}),Og.isDefaultCaipNetwork=!0},setRequestedCaipNetworks(t){Og.requestedCaipNetworks=t},async getApprovedCaipNetworksData(){const t=await this._getClient().getApprovedCaipNetworksData();Og.supportsAllNetworks=t.supportsAllNetworks,Og.approvedCaipNetworkIds=t.approvedCaipNetworkIds},async switchActiveNetwork(t){await this._getClient().switchCaipNetwork(t),Og.caipNetwork=t},resetNetwork(){Og.isDefaultCaipNetwork||(Og.caipNetwork=void 0),Og.approvedCaipNetworkIds=void 0,Og.supportsAllNetworks=!0}},y5r=La.getApiUrl(),O_=new PXe({baseUrl:y5r}),b5r="40",b0t="4",i0=Rv({page:1,count:0,featured:[],recommended:[],wallets:[],search:[]}),js={state:i0,subscribeKey(t,e){return cE(i0,t,e)},_getApiHeaders(){const{projectId:t,sdkType:e,sdkVersion:n}=sc.state;return{"x-project-id":t,"x-sdk-type":e,"x-sdk-version":n}},async _fetchWalletImage(t){const e=`${O_.baseUrl}/getWalletImage/${t}`,n=await O_.getBlob({path:e,headers:js._getApiHeaders()});Bj.setWalletImage(t,URL.createObjectURL(n))},async _fetchNetworkImage(t){const e=`${O_.baseUrl}/public/getAssetImage/${t}`,n=await O_.getBlob({path:e,headers:js._getApiHeaders()});Bj.setNetworkImage(t,URL.createObjectURL(n))},async _fetchConnectorImage(t){const e=`${O_.baseUrl}/public/getAssetImage/${t}`,n=await O_.getBlob({path:e,headers:js._getApiHeaders()});Bj.setConnectorImage(t,URL.createObjectURL(n))},async fetchNetworkImages(){const{requestedCaipNetworks:t}=dh.state,e=t==null?void 0:t.map(({imageId:n})=>n).filter(Boolean);e&&await Promise.allSettled(e.map(n=>js._fetchNetworkImage(n)))},async fetchConnectorImages(){const{connectors:t}=hu.state,e=t.map(({imageId:n})=>n).filter(Boolean);await Promise.allSettled(e.map(n=>js._fetchConnectorImage(n)))},async fetchFeaturedWallets(){const{featuredWalletIds:t}=sc.state;if(t!=null&&t.length){const{data:e}=await O_.get({path:"/getWallets",headers:js._getApiHeaders(),params:{page:"1",entries:t!=null&&t.length?String(t.length):b0t,include:t==null?void 0:t.join(",")}});e.sort((r,a)=>t.indexOf(r.id)-t.indexOf(a.id));const n=e.map(r=>r.image_id).filter(Boolean);await Promise.allSettled(n.map(r=>js._fetchWalletImage(r))),i0.featured=e}},async fetchRecommendedWallets(){const{includeWalletIds:t,excludeWalletIds:e,featuredWalletIds:n}=sc.state,r=[...e??[],...n??[]].filter(Boolean),{data:a,count:o}=await O_.get({path:"/getWallets",headers:js._getApiHeaders(),params:{page:"1",entries:b0t,include:t==null?void 0:t.join(","),exclude:r==null?void 0:r.join(",")}}),s=L0.getRecentWallets(),l=a.map(u=>u.image_id).filter(Boolean),c=s.map(u=>u.image_id).filter(Boolean);await Promise.allSettled([...l,...c].map(u=>js._fetchWalletImage(u))),i0.recommended=a,i0.count=o??0},async fetchWallets({page:t}){const{includeWalletIds:e,excludeWalletIds:n,featuredWalletIds:r}=sc.state,a=[...i0.recommended.map(({id:c})=>c),...n??[],...r??[]].filter(Boolean),{data:o,count:s}=await O_.get({path:"/getWallets",headers:js._getApiHeaders(),params:{page:String(t),entries:b5r,include:e==null?void 0:e.join(","),exclude:a.join(",")}}),l=o.map(c=>c.image_id).filter(Boolean);await Promise.allSettled([...l.map(c=>js._fetchWalletImage(c)),La.wait(300)]),i0.wallets=[...i0.wallets,...o],i0.count=s>i0.count?s:i0.count,i0.page=t},async searchWallet({search:t}){const{includeWalletIds:e,excludeWalletIds:n}=sc.state;i0.search=[];const{data:r}=await O_.get({path:"/getWallets",headers:js._getApiHeaders(),params:{page:"1",entries:"100",search:t,include:e==null?void 0:e.join(","),exclude:n==null?void 0:n.join(",")}}),a=r.map(o=>o.image_id).filter(Boolean);await Promise.allSettled([...a.map(o=>js._fetchWalletImage(o)),La.wait(300)]),i0.search=r},prefetch(){i0.prefetchPromise=Promise.race([Promise.allSettled([js.fetchFeaturedWallets(),js.fetchRecommendedWallets(),js.fetchNetworkImages(),js.fetchConnectorImages()]),La.wait(3e3)])}},x5r=La.getAnalyticsUrl(),E5r=new PXe({baseUrl:x5r}),S5r=["MODAL_CREATED"],l$=Rv({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),Po={state:l$,subscribe(t){return Uw(l$,()=>t(l$))},_getApiHeaders(){const{projectId:t,sdkType:e,sdkVersion:n}=sc.state;return{"x-project-id":t,"x-sdk-type":e,"x-sdk-version":n}},async _sendAnalyticsEvent(t){try{if(S5r.includes(t.data.event)||typeof window>"u")return;await E5r.post({path:"/e",headers:Po._getApiHeaders(),body:{eventId:La.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:t.timestamp,props:t.data}})}catch{}},sendEvent(t){l$.timestamp=Date.now(),l$.data=t,sc.state.enableAnalytics&&Po._sendAnalyticsEvent(l$)}},Cd=Rv({view:"Connect",history:["Connect"]}),ca={state:Cd,subscribeKey(t,e){return cE(Cd,t,e)},push(t,e){t!==Cd.view&&(Cd.view=t,Cd.history.push(t),Cd.data=e)},reset(t){Cd.view=t,Cd.history=[t]},replace(t,e){Cd.history.length>1&&Cd.history.at(-1)!==t&&(Cd.view=t,Cd.history[Cd.history.length-1]=t,Cd.data=e)},goBack(){if(Cd.history.length>1){Cd.history.pop();const[t]=Cd.history.slice(-1);t&&(Cd.view=t)}},goBackToIndex(t){if(Cd.history.length>1){Cd.history=Cd.history.slice(0,t+1);const[e]=Cd.history.slice(-1);e&&(Cd.view=e)}}},p4=Rv({loading:!1,open:!1}),fu={state:p4,subscribe(t){return Uw(p4,()=>t(p4))},subscribeKey(t,e){return cE(p4,t,e)},async open(t){await js.state.prefetchPromise,t!=null&&t.view?ca.reset(t.view):jl.state.isConnected?ca.reset("Account"):ca.reset("Connect"),p4.open=!0,XH.set({open:!0}),Po.sendEvent({type:"track",event:"MODAL_OPEN"})},close(){p4.open=!1,XH.set({open:!1}),Po.sendEvent({type:"track",event:"MODAL_CLOSE"})},setLoading(t){p4.loading=t}},w5r=La.getBlockchainApiUrl(),x0t=new PXe({baseUrl:w5r}),aJt={fetchIdentity({caipChainId:t,address:e}){return x0t.get({path:`/v1/identity/${e}`,params:{chainId:t,projectId:sc.state.projectId}})},fetchTransactions({account:t,projectId:e,cursor:n}){const r=n?{cursor:n}:{};return x0t.get({path:`/v1/account/${t}/history?projectId=${e}`,params:r})}},xk=Rv({message:"",variant:"success",open:!1}),fh={state:xk,subscribeKey(t,e){return cE(xk,t,e)},showSuccess(t){xk.message=t,xk.variant="success",xk.open=!0},showError(t){const e=La.parseError(t);xk.message=e,xk.variant="error",xk.open=!0},hide(){xk.open=!1}},yf=Rv({transactions:[],transactionsByYear:{},loading:!1,empty:!1,next:void 0}),wS={state:yf,subscribe(t){return Uw(yf,()=>t(yf))},async fetchTransactions(t){const{projectId:e}=sc.state;if(!e||!t)throw new Error("Transactions can't be fetched without a projectId and an accountAddress");yf.loading=!0;try{const n=await aJt.fetchTransactions({account:t,projectId:e,cursor:yf.next}),r=this.filterSpamTransactions(n.data),a=[...yf.transactions,...r];yf.loading=!1,yf.transactions=a,yf.transactionsByYear=this.groupTransactionsByYear(yf.transactionsByYear,r),yf.empty=a.length===0,yf.next=n.next?n.next:void 0}catch{Po.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:t,projectId:e,cursor:yf.next}}),fh.showError("Failed to fetch transactions"),yf.loading=!1,yf.empty=!0}},groupTransactionsByYear(t={},e=[]){const n=t;return e.forEach(r=>{var o;const a=new Date(r.metadata.minedAt).getFullYear();n[a]||(n[a]=[]),(o=n[a])==null||o.push(r)}),n},filterSpamTransactions(t){return t.filter(e=>!e.transfers.every(r=>{var a;return((a=r.nft_info)==null?void 0:a.flags.is_spam)===!0}))},resetTransactions(){yf.transactions=[],yf.transactionsByYear={},yf.loading=!1,yf.empty=!1,yf.next=void 0}},Up=Rv({wcError:!1,buffering:!1}),sl={state:Up,subscribeKey(t,e){return cE(Up,t,e)},_getClient(){if(!Up._client)throw new Error("ConnectionController client not set");return Up._client},setClient(t){Up._client=JH(t)},connectWalletConnect(){Up.wcPromise=this._getClient().connectWalletConnect(t=>{Up.wcUri=t,Up.wcPairingExpiry=La.getPairingExpiry()})},async connectExternal(t){var e,n;await((n=(e=this._getClient()).connectExternal)==null?void 0:n.call(e,t)),L0.setConnectedConnector(t.type)},async signMessage(t){return this._getClient().signMessage(t)},checkInstalled(t){var e,n;return(n=(e=this._getClient()).checkInstalled)==null?void 0:n.call(e,t)},resetWcConnection(){Up.wcUri=void 0,Up.wcPairingExpiry=void 0,Up.wcPromise=void 0,Up.wcLinking=void 0,Up.recentWallet=void 0,wS.resetTransactions(),L0.deleteWalletConnectDeepLink()},setWcLinking(t){Up.wcLinking=t},setWcError(t){Up.wcError=t,Up.buffering=!1},setRecentWallet(t){Up.recentWallet=t},setBuffering(t){Up.buffering=t},async disconnect(){await this._getClient().disconnect(),this.resetWcConnection()}},q1=Rv({status:"uninitialized",isSiweEnabled:!1}),Fh={state:q1,subscribeKey(t,e){return cE(q1,t,e)},subscribe(t){return Uw(q1,()=>t(q1))},_getClient(){if(!q1._client)throw new Error("SIWEController client not set");return q1._client},async getNonce(){const e=await this._getClient().getNonce();return this.setNonce(e),e},async getSession(){const e=await this._getClient().getSession();return e&&(this.setSession(e),this.setStatus("success")),e},createMessage(t){const n=this._getClient().createMessage(t);return this.setMessage(n),n},async verifyMessage(t){return await this._getClient().verifyMessage(t)},async signIn(){return await this._getClient().signIn()},async signOut(){var e;const t=this._getClient();await t.signOut(),this.setStatus("ready"),(e=t.onSignOut)==null||e.call(t)},onSignIn(t){var n;const e=this._getClient();(n=e.onSignIn)==null||n.call(e,t)},onSignOut(){var e;const t=this._getClient();(e=t.onSignOut)==null||e.call(t)},setSIWEClient(t){q1._client=JH(t),q1.status="ready",q1.isSiweEnabled=t.options.enabled},setNonce(t){q1.nonce=t},setStatus(t){q1.status=t},setMessage(t){q1.message=t},setSession(t){q1.session=t}},m4=Rv({themeMode:"dark",themeVariables:{}}),DA={state:m4,subscribe(t){return Uw(m4,()=>t(m4))},setThemeMode(t){m4.themeMode=t},setThemeVariables(t){m4.themeVariables={...m4.themeVariables,...t}},getSnapshot(){return i0e(m4)}},lh={getWalletImage(t){if(t!=null&&t.image_url)return t==null?void 0:t.image_url;if(t!=null&&t.image_id)return Bj.state.walletImages[t.image_id]},getNetworkImage(t){if(t!=null&&t.imageUrl)return t==null?void 0:t.imageUrl;if(t!=null&&t.imageId)return Bj.state.networkImages[t.imageId]},getConnectorImage(t){if(t!=null&&t.imageUrl)return t.imageUrl;if(t!=null&&t.imageId)return Bj.state.connectorImages[t.imageId]}},oJt={goBackOrCloseModal(){ca.state.history.length>1?ca.goBack():fu.close()},navigateAfterNetworkSwitch(){const{history:t}=ca.state,e=t.findIndex(n=>n==="Networks");e>=1?ca.goBackToIndex(e-1):fu.close()}};/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const ame=globalThis,OXe=ame.ShadowRoot&&(ame.ShadyCSS===void 0||ame.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sJt=Symbol(),E0t=new WeakMap;let _5r=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==sJt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(OXe&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=E0t.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&E0t.set(n,e))}return e}toString(){return this.cssText}};const T5r=t=>new _5r(typeof t=="string"?t:t+"",void 0,sJt),C5r=(t,e)=>{if(OXe)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),a=ame.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=n.cssText,t.appendChild(r)}},S0t=OXe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return T5r(n)})(t):t;/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const{is:k5r,defineProperty:R5r,getOwnPropertyDescriptor:M5r,getOwnPropertyNames:N5r,getOwnPropertySymbols:I5r,getPrototypeOf:P5r}=Object,A5=globalThis,w0t=A5.trustedTypes,O5r=w0t?w0t.emptyScript:"",y5e=A5.reactiveElementPolyfillSupport,NX=(t,e)=>t,a0e={toAttribute(t,e){switch(e){case Boolean:t=t?O5r:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},LXe=(t,e)=>!k5r(t,e),_0t={attribute:!0,type:String,converter:a0e,reflect:!1,hasChanged:LXe};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),A5.litPropertyMetadata??(A5.litPropertyMetadata=new WeakMap);let SQ=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=_0t){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(e,r,n);a!==void 0&&R5r(this.prototype,e,a)}}static getPropertyDescriptor(e,n,r){const{get:a,set:o}=M5r(this.prototype,e)??{get(){return this[n]},set(s){this[n]=s}};return{get(){return a==null?void 0:a.call(this)},set(s){const l=a==null?void 0:a.call(this);o.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_0t}static _$Ei(){if(this.hasOwnProperty(NX("elementProperties")))return;const e=P5r(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(NX("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(NX("properties"))){const n=this.properties,r=[...N5r(n),...I5r(n)];for(const a of r)this.createProperty(a,n[a])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,a]of n)this.elementProperties.set(r,a)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const a=this._$Eu(n,r);a!==void 0&&this._$Eh.set(a,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)n.unshift(S0t(a))}else e!==void 0&&n.push(S0t(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return C5r(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(e,n,r){this._$AK(e,r)}_$EC(e,n){var o;const r=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,r);if(a!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:a0e).toAttribute(n,r.type);this._$Em=e,s==null?this.removeAttribute(a):this.setAttribute(a,s),this._$Em=null}}_$AK(e,n){var o;const r=this.constructor,a=r._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const s=r.getPropertyOptions(a),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:a0e;this._$Em=a,this[a]=l.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(e,n,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??LXe)(this[e],n))return;this.P(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,r){this._$AL.has(e)||this._$AL.set(e,n),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[o,s]of a)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(a=>{var o;return(o=a.hostUpdate)==null?void 0:o.call(a)}),this.update(n)):this._$EU()}catch(a){throw e=!1,this._$EU(),a}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(r=>{var a;return(a=r.hostUpdated)==null?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}};SQ.elementStyles=[],SQ.shadowRootOptions={mode:"open"},SQ[NX("elementProperties")]=new Map,SQ[NX("finalized")]=new Map,y5e==null||y5e({ReactiveElement:SQ}),(A5.reactiveElementVersions??(A5.reactiveElementVersions=[])).push("2.0.4");/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const IX=globalThis,o0e=IX.trustedTypes,T0t=o0e?o0e.createPolicy("lit-html",{createHTML:t=>t}):void 0,lJt="$lit$",S3=`lit$${Math.random().toFixed(9).slice(2)}$`,cJt="?"+S3,L5r=`<${cJt}>`,p6=document,s0e=()=>p6.createComment(""),Nte=t=>t===null||typeof t!="object"&&typeof t!="function",uJt=Array.isArray,B5r=t=>uJt(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",b5e=`[ 	
\f\r]`,wQ=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C0t=/-->/g,k0t=/>/g,g4=RegExp(`>|${b5e}(?:([^\\s"'>=/]+)(${b5e}*=${b5e}*(?:[^ 	
\f\r"'\`<>=]|("|')|))|$)`,"g"),R0t=/'/g,M0t=/"/g,dJt=/^(?:script|style|textarea|title)$/i,eU=Symbol.for("lit-noChange"),jh=Symbol.for("lit-nothing"),N0t=new WeakMap,jB=p6.createTreeWalker(p6,129);function hJt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return T0t!==void 0?T0t.createHTML(e):e}const D5r=(t,e)=>{const n=t.length-1,r=[];let a,o=e===2?"<svg>":"",s=wQ;for(let l=0;l<n;l++){const c=t[l];let u,d,h=-1,f=0;for(;f<c.length&&(s.lastIndex=f,d=s.exec(c),d!==null);)f=s.lastIndex,s===wQ?d[1]==="!--"?s=C0t:d[1]!==void 0?s=k0t:d[2]!==void 0?(dJt.test(d[2])&&(a=RegExp("</"+d[2],"g")),s=g4):d[3]!==void 0&&(s=g4):s===g4?d[0]===">"?(s=a??wQ,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?g4:d[3]==='"'?M0t:R0t):s===M0t||s===R0t?s=g4:s===C0t||s===k0t?s=wQ:(s=g4,a=void 0);const p=s===g4&&t[l+1].startsWith("/>")?" ":"";o+=s===wQ?c+L5r:h>=0?(r.push(u),c.slice(0,h)+lJt+c.slice(h)+S3+p):c+S3+(h===-2?l:p)}return[hJt(t,o+(t[n]||"<?>")+(e===2?"</svg>":"")),r]};let hHe=class fJt{constructor({strings:e,_$litType$:n},r){let a;this.parts=[];let o=0,s=0;const l=e.length-1,c=this.parts,[u,d]=D5r(e,n);if(this.el=fJt.createElement(u,r),jB.currentNode=this.el.content,n===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=jB.nextNode())!==null&&c.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(const h of a.getAttributeNames())if(h.endsWith(lJt)){const f=d[s++],p=a.getAttribute(h).split(S3),m=/([.?@])?(.*)/.exec(f);c.push({type:1,index:o,name:m[2],strings:p,ctor:m[1]==="."?F5r:m[1]==="?"?j5r:m[1]==="@"?H5r:fEe}),a.removeAttribute(h)}else h.startsWith(S3)&&(c.push({type:6,index:o}),a.removeAttribute(h));if(dJt.test(a.tagName)){const h=a.textContent.split(S3),f=h.length-1;if(f>0){a.textContent=o0e?o0e.emptyScript:"";for(let p=0;p<f;p++)a.append(h[p],s0e()),jB.nextNode(),c.push({type:2,index:++o});a.append(h[f],s0e())}}}else if(a.nodeType===8)if(a.data===cJt)c.push({type:2,index:o});else{let h=-1;for(;(h=a.data.indexOf(S3,h+1))!==-1;)c.push({type:7,index:o}),h+=S3.length-1}o++}}static createElement(e,n){const r=p6.createElement("template");return r.innerHTML=e,r}};function tU(t,e,n=t,r){var s,l;if(e===eU)return e;let a=r!==void 0?(s=n._$Co)==null?void 0:s[r]:n._$Cl;const o=Nte(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==o&&((l=a==null?void 0:a._$AO)==null||l.call(a,!1),o===void 0?a=void 0:(a=new o(t),a._$AT(t,n,r)),r!==void 0?(n._$Co??(n._$Co=[]))[r]=a:n._$Cl=a),a!==void 0&&(e=tU(t,a._$AS(t,e.values),a,r)),e}let $5r=class{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:r}=this._$AD,a=((e==null?void 0:e.creationScope)??p6).importNode(n,!0);jB.currentNode=a;let o=jB.nextNode(),s=0,l=0,c=r[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new pJt(o,o.nextSibling,this,e):c.type===1?u=new c.ctor(o,c.name,c.strings,this,e):c.type===6&&(u=new U5r(o,this,e)),this._$AV.push(u),c=r[++l]}s!==(c==null?void 0:c.index)&&(o=jB.nextNode(),s++)}return jB.currentNode=p6,a}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}},pJt=class mJt{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,n,r,a){this.type=2,this._$AH=jh,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=a,this._$Cv=(a==null?void 0:a.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=tU(this,e,n),Nte(e)?e===jh||e==null||e===""?(this._$AH!==jh&&this._$AR(),this._$AH=jh):e!==this._$AH&&e!==eU&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):B5r(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==jh&&Nte(this._$AH)?this._$AA.nextSibling.data=e:this.T(p6.createTextNode(e)),this._$AH=e}$(e){var o;const{values:n,_$litType$:r}=e,a=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=hHe.createElement(hJt(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===a)this._$AH.p(n);else{const s=new $5r(a,this),l=s.u(this.options);s.p(n),this.T(l),this._$AH=s}}_$AC(e){let n=N0t.get(e.strings);return n===void 0&&N0t.set(e.strings,n=new hHe(e)),n}k(e){uJt(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,a=0;for(const o of e)a===n.length?n.push(r=new mJt(this.S(s0e()),this.S(s0e()),this,this.options)):r=n[a],r._$AI(o),a++;a<n.length&&(this._$AR(r&&r._$AB.nextSibling,a),n.length=a)}_$AR(e=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);e&&e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}},fEe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,a,o){this.type=1,this._$AH=jh,this._$AN=void 0,this.element=e,this.name=n,this._$AM=a,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=jh}_$AI(e,n=this,r,a){const o=this.strings;let s=!1;if(o===void 0)e=tU(this,e,n,0),s=!Nte(e)||e!==this._$AH&&e!==eU,s&&(this._$AH=e);else{const l=e;let c,u;for(e=o[0],c=0;c<o.length-1;c++)u=tU(this,l[r+c],n,c),u===eU&&(u=this._$AH[c]),s||(s=!Nte(u)||u!==this._$AH[c]),u===jh?e=jh:e!==jh&&(e+=(u??"")+o[c+1]),this._$AH[c]=u}s&&!a&&this.j(e)}j(e){e===jh?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},F5r=class extends fEe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===jh?void 0:e}},j5r=class extends fEe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==jh)}},H5r=class extends fEe{constructor(e,n,r,a,o){super(e,n,r,a,o),this.type=5}_$AI(e,n=this){if((e=tU(this,e,n,0)??jh)===eU)return;const r=this._$AH,a=e===jh&&r!==jh||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==jh&&(r===jh||a);a&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,e):this._$AH.handleEvent(e)}},U5r=class{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){tU(this,e)}};const x5e=IX.litHtmlPolyfillSupport;x5e==null||x5e(hHe,pJt),(IX.litHtmlVersions??(IX.litHtmlVersions=[])).push("3.1.4");/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const ome=globalThis,BXe=ome.ShadowRoot&&(ome.ShadyCSS===void 0||ome.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,DXe=Symbol(),I0t=new WeakMap;let gJt=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==DXe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(BXe&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=I0t.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&I0t.set(n,e))}return e}toString(){return this.cssText}};const iT=t=>new gJt(typeof t=="string"?t:t+"",void 0,DXe),Kr=(t,...e)=>{const n=t.length===1?t[0]:e.reduce((r,a,o)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+t[o+1],t[0]);return new gJt(n,t,DXe)},z5r=(t,e)=>{if(BXe)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),a=ome.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=n.cssText,t.appendChild(r)}},P0t=BXe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return iT(n)})(t):t;/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const{is:G5r,defineProperty:V5r,getOwnPropertyDescriptor:K5r,getOwnPropertyNames:W5r,getOwnPropertySymbols:Q5r,getPrototypeOf:q5r}=Object,y5=globalThis,O0t=y5.trustedTypes,Y5r=O0t?O0t.emptyScript:"",E5e=y5.reactiveElementPolyfillSupport,PX=(t,e)=>t,fHe={toAttribute(t,e){switch(e){case Boolean:t=t?Y5r:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},vJt=(t,e)=>!G5r(t,e),L0t={attribute:!0,type:String,converter:fHe,reflect:!1,hasChanged:vJt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),y5.litPropertyMetadata??(y5.litPropertyMetadata=new WeakMap);let tF=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=L0t){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(e,r,n);a!==void 0&&V5r(this.prototype,e,a)}}static getPropertyDescriptor(e,n,r){const{get:a,set:o}=K5r(this.prototype,e)??{get(){return this[n]},set(s){this[n]=s}};return{get(){return a==null?void 0:a.call(this)},set(s){const l=a==null?void 0:a.call(this);o.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??L0t}static _$Ei(){if(this.hasOwnProperty(PX("elementProperties")))return;const e=q5r(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(PX("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(PX("properties"))){const n=this.properties,r=[...W5r(n),...Q5r(n)];for(const a of r)this.createProperty(a,n[a])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,a]of n)this.elementProperties.set(r,a)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const a=this._$Eu(n,r);a!==void 0&&this._$Eh.set(a,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)n.unshift(P0t(a))}else e!==void 0&&n.push(P0t(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return z5r(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(e,n,r){this._$AK(e,r)}_$EC(e,n){var o;const r=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,r);if(a!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:fHe).toAttribute(n,r.type);this._$Em=e,s==null?this.removeAttribute(a):this.setAttribute(a,s),this._$Em=null}}_$AK(e,n){var o;const r=this.constructor,a=r._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const s=r.getPropertyOptions(a),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:fHe;this._$Em=a,this[a]=l.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(e,n,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??vJt)(this[e],n))return;this.P(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,r){this._$AL.has(e)||this._$AL.set(e,n),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[o,s]of a)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(a=>{var o;return(o=a.hostUpdate)==null?void 0:o.call(a)}),this.update(n)):this._$EU()}catch(a){throw e=!1,this._$EU(),a}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(r=>{var a;return(a=r.hostUpdated)==null?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}};tF.elementStyles=[],tF.shadowRootOptions={mode:"open"},tF[PX("elementProperties")]=new Map,tF[PX("finalized")]=new Map,E5e==null||E5e({ReactiveElement:tF}),(y5.reactiveElementVersions??(y5.reactiveElementVersions=[])).push("2.0.4");/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const OX=globalThis,l0e=OX.trustedTypes,B0t=l0e?l0e.createPolicy("lit-html",{createHTML:t=>t}):void 0,AJt="$lit$",w3=`lit$${Math.random().toFixed(9).slice(2)}$`,yJt="?"+w3,J5r=`<${yJt}>`,m6=document,Ite=()=>m6.createComment(""),Pte=t=>t===null||typeof t!="object"&&typeof t!="function",bJt=Array.isArray,Z5r=t=>bJt(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",S5e=`[ 	
\f\r]`,_Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D0t=/-->/g,$0t=/>/g,v4=RegExp(`>|${S5e}(?:([^\\s"'>=/]+)(${S5e}*=${S5e}*(?:[^ 	
\f\r"'\`<>=]|("|')|))|$)`,"g"),F0t=/'/g,j0t=/"/g,xJt=/^(?:script|style|textarea|title)$/i,EJt=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Mt=EJt(1),oi=EJt(2),nU=Symbol.for("lit-noChange"),Xp=Symbol.for("lit-nothing"),H0t=new WeakMap,HB=m6.createTreeWalker(m6,129);function SJt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return B0t!==void 0?B0t.createHTML(e):e}const X5r=(t,e)=>{const n=t.length-1,r=[];let a,o=e===2?"<svg>":"",s=_Q;for(let l=0;l<n;l++){const c=t[l];let u,d,h=-1,f=0;for(;f<c.length&&(s.lastIndex=f,d=s.exec(c),d!==null);)f=s.lastIndex,s===_Q?d[1]==="!--"?s=D0t:d[1]!==void 0?s=$0t:d[2]!==void 0?(xJt.test(d[2])&&(a=RegExp("</"+d[2],"g")),s=v4):d[3]!==void 0&&(s=v4):s===v4?d[0]===">"?(s=a??_Q,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?v4:d[3]==='"'?j0t:F0t):s===j0t||s===F0t?s=v4:s===D0t||s===$0t?s=_Q:(s=v4,a=void 0);const p=s===v4&&t[l+1].startsWith("/>")?" ":"";o+=s===_Q?c+J5r:h>=0?(r.push(u),c.slice(0,h)+AJt+c.slice(h)+w3+p):c+w3+(h===-2?l:p)}return[SJt(t,o+(t[n]||"<?>")+(e===2?"</svg>":"")),r]};let pHe=class wJt{constructor({strings:e,_$litType$:n},r){let a;this.parts=[];let o=0,s=0;const l=e.length-1,c=this.parts,[u,d]=X5r(e,n);if(this.el=wJt.createElement(u,r),HB.currentNode=this.el.content,n===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=HB.nextNode())!==null&&c.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(const h of a.getAttributeNames())if(h.endsWith(AJt)){const f=d[s++],p=a.getAttribute(h).split(w3),m=/([.?@])?(.*)/.exec(f);c.push({type:1,index:o,name:m[2],strings:p,ctor:m[1]==="."?tPr:m[1]==="?"?nPr:m[1]==="@"?rPr:pEe}),a.removeAttribute(h)}else h.startsWith(w3)&&(c.push({type:6,index:o}),a.removeAttribute(h));if(xJt.test(a.tagName)){const h=a.textContent.split(w3),f=h.length-1;if(f>0){a.textContent=l0e?l0e.emptyScript:"";for(let p=0;p<f;p++)a.append(h[p],Ite()),HB.nextNode(),c.push({type:2,index:++o});a.append(h[f],Ite())}}}else if(a.nodeType===8)if(a.data===yJt)c.push({type:2,index:o});else{let h=-1;for(;(h=a.data.indexOf(w3,h+1))!==-1;)c.push({type:7,index:o}),h+=w3.length-1}o++}}static createElement(e,n){const r=m6.createElement("template");return r.innerHTML=e,r}};function rU(t,e,n=t,r){var s,l;if(e===nU)return e;let a=r!==void 0?(s=n._$Co)==null?void 0:s[r]:n._$Cl;const o=Pte(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==o&&((l=a==null?void 0:a._$AO)==null||l.call(a,!1),o===void 0?a=void 0:(a=new o(t),a._$AT(t,n,r)),r!==void 0?(n._$Co??(n._$Co=[]))[r]=a:n._$Cl=a),a!==void 0&&(e=rU(t,a._$AS(t,e.values),a,r)),e}let ePr=class{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:r}=this._$AD,a=((e==null?void 0:e.creationScope)??m6).importNode(n,!0);HB.currentNode=a;let o=HB.nextNode(),s=0,l=0,c=r[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new $Xe(o,o.nextSibling,this,e):c.type===1?u=new c.ctor(o,c.name,c.strings,this,e):c.type===6&&(u=new iPr(o,this,e)),this._$AV.push(u),c=r[++l]}s!==(c==null?void 0:c.index)&&(o=HB.nextNode(),s++)}return HB.currentNode=m6,a}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}},$Xe=class _Jt{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,n,r,a){this.type=2,this._$AH=Xp,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=a,this._$Cv=(a==null?void 0:a.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=rU(this,e,n),Pte(e)?e===Xp||e==null||e===""?(this._$AH!==Xp&&this._$AR(),this._$AH=Xp):e!==this._$AH&&e!==nU&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Z5r(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Xp&&Pte(this._$AH)?this._$AA.nextSibling.data=e:this.T(m6.createTextNode(e)),this._$AH=e}$(e){var o;const{values:n,_$litType$:r}=e,a=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=pHe.createElement(SJt(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===a)this._$AH.p(n);else{const s=new ePr(a,this),l=s.u(this.options);s.p(n),this.T(l),this._$AH=s}}_$AC(e){let n=H0t.get(e.strings);return n===void 0&&H0t.set(e.strings,n=new pHe(e)),n}k(e){bJt(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,a=0;for(const o of e)a===n.length?n.push(r=new _Jt(this.S(Ite()),this.S(Ite()),this,this.options)):r=n[a],r._$AI(o),a++;a<n.length&&(this._$AR(r&&r._$AB.nextSibling,a),n.length=a)}_$AR(e=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);e&&e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}},pEe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,a,o){this.type=1,this._$AH=Xp,this._$AN=void 0,this.element=e,this.name=n,this._$AM=a,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Xp}_$AI(e,n=this,r,a){const o=this.strings;let s=!1;if(o===void 0)e=rU(this,e,n,0),s=!Pte(e)||e!==this._$AH&&e!==nU,s&&(this._$AH=e);else{const l=e;let c,u;for(e=o[0],c=0;c<o.length-1;c++)u=rU(this,l[r+c],n,c),u===nU&&(u=this._$AH[c]),s||(s=!Pte(u)||u!==this._$AH[c]),u===Xp?e=Xp:e!==Xp&&(e+=(u??"")+o[c+1]),this._$AH[c]=u}s&&!a&&this.j(e)}j(e){e===Xp?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},tPr=class extends pEe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Xp?void 0:e}},nPr=class extends pEe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Xp)}},rPr=class extends pEe{constructor(e,n,r,a,o){super(e,n,r,a,o),this.type=5}_$AI(e,n=this){if((e=rU(this,e,n,0)??Xp)===nU)return;const r=this._$AH,a=e===Xp&&r!==Xp||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Xp&&(r===Xp||a);a&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,e):this._$AH.handleEvent(e)}},iPr=class{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){rU(this,e)}};const w5e=OX.litHtmlPolyfillSupport;w5e==null||w5e(pHe,$Xe),(OX.litHtmlVersions??(OX.litHtmlVersions=[])).push("3.1.4");const aPr=(t,e,n)=>{const r=(n==null?void 0:n.renderBefore)??e;let a=r._$litPart$;if(a===void 0){const o=(n==null?void 0:n.renderBefore)??null;r._$litPart$=a=new $Xe(e.insertBefore(Ite(),o),o,void 0,n??{})}return a._$AI(t),a};/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */let Mr=class extends tF{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const e=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=aPr(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return nU}};var zUt;Mr._$litElement$=!0,Mr.finalized=!0,(zUt=globalThis.litElementHydrateSupport)==null||zUt.call(globalThis,{LitElement:Mr});const _5e=globalThis.litElementPolyfillSupport;_5e==null||_5e({LitElement:Mr});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");let LX,b5,x5;function oPr(t,e){LX=document.createElement("style"),b5=document.createElement("style"),x5=document.createElement("style"),LX.textContent=Dj(t).core.cssText,b5.textContent=Dj(t).dark.cssText,x5.textContent=Dj(t).light.cssText,document.head.appendChild(LX),document.head.appendChild(b5),document.head.appendChild(x5),TJt(e)}function TJt(t){b5&&x5&&(t==="light"?(b5.removeAttribute("media"),x5.media="enabled"):(x5.removeAttribute("media"),b5.media="enabled"))}function sPr(t){LX&&b5&&x5&&(LX.textContent=Dj(t).core.cssText,b5.textContent=Dj(t).dark.cssText,x5.textContent=Dj(t).light.cssText)}function Dj(t){return{core:Kr`
      @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
      :root {
        --w3m-color-mix-strength: ${iT(t!=null&&t["--w3m-color-mix-strength"]?`${t["--w3m-color-mix-strength"]}%`:"0%")};
        --w3m-font-family: ${iT((t==null?void 0:t["--w3m-font-family"])||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")};
        --w3m-font-size-master: ${iT((t==null?void 0:t["--w3m-font-size-master"])||"10px")};
        --w3m-border-radius-master: ${iT((t==null?void 0:t["--w3m-border-radius-master"])||"4px")};
        --w3m-z-index: ${iT((t==null?void 0:t["--w3m-z-index"])||100)};

        --wui-font-family: var(--w3m-font-family);

        --wui-font-size-micro: var(--w3m-font-size-master);
        --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2);
        --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4);
        --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6);
        --wui-font-size-large: calc(var(--w3m-font-size-master) * 2);

        --wui-border-radius-5xs: var(--w3m-border-radius-master);
        --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5);
        --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2);
        --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3);
        --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4);
        --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5);
        --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7);
        --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9);
        --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20);

        --wui-font-weight-light: 400;
        --wui-font-weight-regular: 500;
        --wui-font-weight-medium: 600;
        --wui-font-weight-bold: 700;

        --wui-letter-spacing-large: -0.8px;
        --wui-letter-spacing-paragraph: -0.64px;
        --wui-letter-spacing-small: -0.56px;
        --wui-letter-spacing-tiny: -0.48px;
        --wui-letter-spacing-micro: -0.2px;

        --wui-spacing-0: 0px;
        --wui-spacing-4xs: 2px;
        --wui-spacing-3xs: 4px;
        --wui-spacing-xxs: 6px;
        --wui-spacing-2xs: 7px;
        --wui-spacing-xs: 8px;
        --wui-spacing-1xs: 10px;
        --wui-spacing-s: 12px;
        --wui-spacing-m: 14px;
        --wui-spacing-l: 16px;
        --wui-spacing-2l: 18px;
        --wui-spacing-xl: 20px;
        --wui-spacing-xxl: 24px;
        --wui-spacing-2xl: 32px;
        --wui-spacing-3xl: 40px;
        --wui-spacing-4xl: 90px;

        --wui-icon-box-size-xxs: 14px;
        --wui-icon-box-size-xs: 20px;
        --wui-icon-box-size-sm: 24px;
        --wui-icon-box-size-md: 32px;
        --wui-icon-box-size-lg: 40px;
        --wui-icon-box-size-xl: 64px;

        --wui-icon-size-inherit: inherit;
        --wui-icon-size-xxs: 10px;
        --wui-icon-size-xs: 12px;
        --wui-icon-size-sm: 14px;
        --wui-icon-size-md: 16px;
        --wui-icon-size-mdl: 18px;
        --wui-icon-size-lg: 20px;
        --wui-icon-size-xl: 24px;

        --wui-wallet-image-size-inherit: inherit;
        --wui-wallet-image-size-sm: 40px;
        --wui-wallet-image-size-md: 56px;
        --wui-wallet-image-size-lg: 80px;

        --wui-box-size-md: 100px;
        --wui-box-size-lg: 120px;

        --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1);
        --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1);

        --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1);
        --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1);
        --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1);

        --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1);

        --wui-duration-lg: 200ms;
        --wui-duration-md: 125ms;
        --wui-duration-sm: 75ms;

        --wui-path-network: path(
          'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z'
        );

        --wui-path-network-lg: path(
          'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z'
        );

        --wui-color-inherit: inherit;

        --wui-color-inverse-100: #fff;
        --wui-color-inverse-000: #000;

        --wui-cover: rgba(20, 20, 20, 0.8);

        --wui-color-modal-bg: var(--wui-color-modal-bg-base);

        --wui-color-blue-100: var(--wui-color-blue-base-100);

        --wui-color-accent-100: var(--wui-color-accent-base-100);
        --wui-color-accent-090: var(--wui-color-accent-base-090);
        --wui-color-accent-080: var(--wui-color-accent-base-080);

        --wui-accent-glass-090: var(--wui-accent-glass-base-090);
        --wui-accent-glass-080: var(--wui-accent-glass-base-080);
        --wui-accent-glass-020: var(--wui-accent-glass-base-020);
        --wui-accent-glass-015: var(--wui-accent-glass-base-015);
        --wui-accent-glass-010: var(--wui-accent-glass-base-010);
        --wui-accent-glass-005: var(--wui-accent-glass-base-005);
        --wui-accent-glass-002: var(--wui-accent-glass-base-002);

        --wui-color-fg-100: var(--wui-color-fg-base-100);
        --wui-color-fg-125: var(--wui-color-fg-base-125);
        --wui-color-fg-150: var(--wui-color-fg-base-150);
        --wui-color-fg-175: var(--wui-color-fg-base-175);
        --wui-color-fg-200: var(--wui-color-fg-base-200);
        --wui-color-fg-225: var(--wui-color-fg-base-225);
        --wui-color-fg-250: var(--wui-color-fg-base-250);
        --wui-color-fg-275: var(--wui-color-fg-base-275);
        --wui-color-fg-300: var(--wui-color-fg-base-300);

        --wui-color-bg-100: var(--wui-color-bg-base-100);
        --wui-color-bg-125: var(--wui-color-bg-base-125);
        --wui-color-bg-150: var(--wui-color-bg-base-150);
        --wui-color-bg-175: var(--wui-color-bg-base-175);
        --wui-color-bg-200: var(--wui-color-bg-base-200);
        --wui-color-bg-225: var(--wui-color-bg-base-225);
        --wui-color-bg-250: var(--wui-color-bg-base-250);
        --wui-color-bg-275: var(--wui-color-bg-base-275);
        --wui-color-bg-300: var(--wui-color-bg-base-300);

        --wui-color-success-100: var(--wui-color-success-base-100);
        --wui-color-error-100: var(--wui-color-error-base-100);

        --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100);
        --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100);
        --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100);
        --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100);

        --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-base-100);

        --wui-avatar-border: var(--wui-avatar-border-base);

        --wui-thumbnail-border: var(--wui-thumbnail-border-base);

        --wui-box-shadow-blue: rgba(71, 161, 255, 0.16);
      }

      @supports (background: color-mix(in srgb, white 50%, black)) {
        :root {
          --wui-color-modal-bg: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-modal-bg-base)
          );

          --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 16%, transparent);

          --wui-color-accent-090: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 90%,
            var(--w3m-default)
          );
          --wui-color-accent-080: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 80%,
            var(--w3m-default)
          );

          --wui-color-accent-090: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 90%,
            transparent
          );
          --wui-color-accent-080: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 80%,
            transparent
          );

          --wui-accent-glass-090: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 90%,
            transparent
          );
          --wui-accent-glass-080: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 80%,
            transparent
          );
          --wui-accent-glass-020: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 20%,
            transparent
          );
          --wui-accent-glass-015: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 15%,
            transparent
          );
          --wui-accent-glass-010: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 10%,
            transparent
          );
          --wui-accent-glass-005: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 5%,
            transparent
          );
          --wui-color-accent-002: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 2%,
            transparent
          );

          --wui-color-fg-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-100)
          );
          --wui-color-fg-125: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-125)
          );
          --wui-color-fg-150: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-150)
          );
          --wui-color-fg-175: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-175)
          );
          --wui-color-fg-200: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-200)
          );
          --wui-color-fg-225: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-225)
          );
          --wui-color-fg-250: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-250)
          );
          --wui-color-fg-275: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-275)
          );
          --wui-color-fg-300: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-base-300)
          );

          --wui-color-bg-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-100)
          );
          --wui-color-bg-125: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-125)
          );
          --wui-color-bg-150: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-150)
          );
          --wui-color-bg-175: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-175)
          );
          --wui-color-bg-200: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-200)
          );
          --wui-color-bg-225: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-225)
          );
          --wui-color-bg-250: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-250)
          );
          --wui-color-bg-275: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-275)
          );
          --wui-color-bg-300: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-base-300)
          );

          --wui-color-success-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-success-base-100)
          );
          --wui-color-error-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-error-base-100)
          );

          --wui-icon-box-bg-error-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-icon-box-bg-error-base-100)
          );
          --wui-icon-box-bg-accent-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-icon-box-bg-blue-base-100)
          );
          --wui-icon-box-bg-success-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-icon-box-bg-success-base-100)
          );
          --wui-icon-box-bg-inverse-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-icon-box-bg-inverse-base-100)
          );

          --wui-all-wallets-bg-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-all-wallets-bg-base-100)
          );

          --wui-avatar-border: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-avatar-border-base)
          );

          --wui-thumbnail-border: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-thumbnail-border-base)
          );
        }
      }
    `,light:Kr`
      :root {
        --w3m-color-mix: ${iT((t==null?void 0:t["--w3m-color-mix"])||"#fff")};
        --w3m-accent: ${iT((t==null?void 0:t["--w3m-accent"])||"#47a1ff")};
        --w3m-default: #fff;

        --wui-color-modal-bg-base: #191a1a;

        --wui-color-blue-base-100: #47a1ff;

        --wui-color-accent-base-100: var(--w3m-accent);
        --wui-color-accent-base-090: #59aaff;
        --wui-color-accent-base-080: #6cb4ff;

        --wui-accent-glass-base-090: rgba(71, 161, 255, 0.9);
        --wui-accent-glass-base-080: rgba(71, 161, 255, 0.8);
        --wui-accent-glass-base-020: rgba(71, 161, 255, 0.2);
        --wui-accent-glass-base-015: rgba(71, 161, 255, 0.15);
        --wui-accent-glass-base-010: rgba(71, 161, 255, 0.1);
        --wui-accent-glass-base-005: rgba(71, 161, 255, 0.05);
        --wui-accent-glass-base-002: rgba(71, 161, 255, 0.02);

        --wui-color-fg-base-100: #e4e7e7;
        --wui-color-fg-base-125: #d0d5d5;
        --wui-color-fg-base-150: #a8b1b1;
        --wui-color-fg-base-175: #a8b0b0;
        --wui-color-fg-base-200: #949e9e;
        --wui-color-fg-base-225: #868f8f;
        --wui-color-fg-base-250: #788080;
        --wui-color-fg-base-275: #788181;
        --wui-color-fg-base-300: #6e7777;

        --wui-color-bg-base-100: #141414;
        --wui-color-bg-base-125: #191a1a;
        --wui-color-bg-base-150: #1e1f1f;
        --wui-color-bg-base-175: #222525;
        --wui-color-bg-base-200: #272a2a;
        --wui-color-bg-base-225: #2c3030;
        --wui-color-bg-base-250: #313535;
        --wui-color-bg-base-275: #363b3b;
        --wui-color-bg-base-300: #3b4040;

        --wui-color-success-base-100: #26d962;
        --wui-color-error-base-100: #f25a67;

        --wui-success-glass-001: rgba(38, 217, 98, 0.01);
        --wui-success-glass-002: rgba(38, 217, 98, 0.02);
        --wui-success-glass-005: rgba(38, 217, 98, 0.05);
        --wui-success-glass-010: rgba(38, 217, 98, 0.1);
        --wui-success-glass-015: rgba(38, 217, 98, 0.15);
        --wui-success-glass-020: rgba(38, 217, 98, 0.2);
        --wui-success-glass-025: rgba(38, 217, 98, 0.25);
        --wui-success-glass-030: rgba(38, 217, 98, 0.3);
        --wui-success-glass-060: rgba(38, 217, 98, 0.6);
        --wui-success-glass-080: rgba(38, 217, 98, 0.8);

        --wui-icon-box-bg-error-base-100: #3c2426;
        --wui-icon-box-bg-blue-base-100: #20303f;
        --wui-icon-box-bg-success-base-100: var(--wui-success-glass-015);
        --wui-icon-box-bg-inverse-base-100: #243240;

        --wui-all-wallets-bg-base-100: #222b35;

        --wui-avatar-border-base: #252525;

        --wui-thumbnail-border-base: #252525;

        --wui-gray-glass-001: rgba(255, 255, 255, 0.01);
        --wui-gray-glass-002: rgba(255, 255, 255, 0.02);
        --wui-gray-glass-005: rgba(255, 255, 255, 0.05);
        --wui-gray-glass-010: rgba(255, 255, 255, 0.1);
        --wui-gray-glass-015: rgba(255, 255, 255, 0.15);
        --wui-gray-glass-020: rgba(255, 255, 255, 0.2);
        --wui-gray-glass-025: rgba(255, 255, 255, 0.25);
        --wui-gray-glass-030: rgba(255, 255, 255, 0.3);
        --wui-gray-glass-060: rgba(255, 255, 255, 0.6);
        --wui-gray-glass-080: rgba(255, 255, 255, 0.8);
      }
    `,dark:Kr`
      :root {
        --w3m-color-mix: ${iT((t==null?void 0:t["--w3m-color-mix"])||"#000")};
        --w3m-accent: ${iT((t==null?void 0:t["--w3m-accent"])||"#3396ff")};
        --w3m-default: #000;

        --wui-color-modal-bg-base: #fff;

        --wui-color-blue-base-100: #3396ff;

        --wui-color-accent-base-100: var(--w3m-accent);
        --wui-color-accent-base-090: #2d7dd2;
        --wui-color-accent-base-080: #2978cc;

        --wui-accent-glass-base-090: rgba(51, 150, 255, 0.9);
        --wui-accent-glass-base-080: rgba(51, 150, 255, 0.8);
        --wui-accent-glass-base-020: rgba(51, 150, 255, 0.2);
        --wui-accent-glass-base-015: rgba(51, 150, 255, 0.15);
        --wui-accent-glass-base-010: rgba(51, 150, 255, 0.1);
        --wui-accent-glass-base-005: rgba(51, 150, 255, 0.05);
        --wui-accent-glass-base-002: rgba(51, 150, 255, 0.02);

        --wui-color-fg-base-100: #141414;
        --wui-color-fg-base-125: #2d3131;
        --wui-color-fg-base-150: #474d4d;
        --wui-color-fg-base-175: #636d6d;
        --wui-color-fg-base-200: #798686;
        --wui-color-fg-base-225: #828f8f;
        --wui-color-fg-base-250: #8b9797;
        --wui-color-fg-base-275: #95a0a0;
        --wui-color-fg-base-300: #9ea9a9;

        --wui-color-bg-base-100: #ffffff;
        --wui-color-bg-base-125: #f5fafa;
        --wui-color-bg-base-150: #f3f8f8;
        --wui-color-bg-base-175: #eef4f4;
        --wui-color-bg-base-200: #eaf1f1;
        --wui-color-bg-base-225: #e5eded;
        --wui-color-bg-base-250: #e1e9e9;
        --wui-color-bg-base-275: #dce7e7;
        --wui-color-bg-base-300: #d8e3e3;

        --wui-color-success-base-100: #26b562;
        --wui-color-error-base-100: #f05142;

        --wui-success-glass-001: rgba(38, 181, 98, 0.01);
        --wui-success-glass-002: rgba(38, 181, 98, 0.02);
        --wui-success-glass-005: rgba(38, 181, 98, 0.05);
        --wui-success-glass-010: rgba(38, 181, 98, 0.1);
        --wui-success-glass-015: rgba(38, 181, 98, 0.15);
        --wui-success-glass-020: rgba(38, 181, 98, 0.2);
        --wui-success-glass-025: rgba(38, 181, 98, 0.25);
        --wui-success-glass-030: rgba(38, 181, 98, 0.3);
        --wui-success-glass-060: rgba(38, 181, 98, 0.6);
        --wui-success-glass-080: rgba(38, 181, 98, 0.8);

        --wui-icon-box-bg-error-base-100: #f4dfdd;
        --wui-icon-box-bg-blue-base-100: #d9ecfb;
        --wui-icon-box-bg-success-base-100: #daf0e4;
        --wui-icon-box-bg-inverse-base-100: #dcecfc;

        --wui-all-wallets-bg-base-100: #e8f1fa;

        --wui-avatar-border-base: #f3f4f4;

        --wui-thumbnail-border-base: #eaefef;

        --wui-gray-glass-001: rgba(0, 0, 0, 0.01);
        --wui-gray-glass-002: rgba(0, 0, 0, 0.02);
        --wui-gray-glass-005: rgba(0, 0, 0, 0.05);
        --wui-gray-glass-010: rgba(0, 0, 0, 0.1);
        --wui-gray-glass-015: rgba(0, 0, 0, 0.15);
        --wui-gray-glass-020: rgba(0, 0, 0, 0.2);
        --wui-gray-glass-025: rgba(0, 0, 0, 0.25);
        --wui-gray-glass-030: rgba(0, 0, 0, 0.3);
        --wui-gray-glass-060: rgba(0, 0, 0, 0.6);
        --wui-gray-glass-080: rgba(0, 0, 0, 0.8);
      }
    `}}const ro=Kr`
  *,
  *::after,
  *::before,
  :host {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-style: normal;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--wui-font-family);
    backface-visibility: hidden;
  }
`,Ud=Kr`
  button,
  a {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
    outline: none;
    border: 1px solid transparent;
    column-gap: var(--wui-spacing-3xs);
    background-color: transparent;
    text-decoration: none;
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-gray-glass-005);
    }

    button:active:enabled {
      transition: all var(--wui-ease-out-power-2) var(--wui-duration-sm);
      background-color: var(--wui-gray-glass-010);
    }

    button[data-variant='fill']:hover:enabled {
      background-color: var(--wui-color-accent-090);
    }

    button[data-variant='accentBg']:hover:enabled {
      background: var(--wui-accent-glass-015);
    }

    button[data-variant='accentBg']:active:enabled {
      background: var(--wui-accent-glass-020);
    }
  }

  button:disabled {
    cursor: not-allowed;
    background-color: var(--wui-gray-glass-005);
  }

  button[data-variant='shade']:disabled,
  button[data-variant='accent']:disabled,
  button[data-variant='accentBg']:disabled {
    background-color: var(--wui-gray-glass-010);
    color: var(--wui-gray-glass-015);
    filter: grayscale(1);
  }

  button:disabled > wui-wallet-image,
  button:disabled > wui-all-wallets-image,
  button:disabled > wui-network-image,
  button:disabled > wui-image,
  button:disabled > wui-icon-box,
  button:disabled > wui-transaction-visual,
  button:disabled > wui-logo {
    filter: grayscale(1);
  }

  button:focus-visible,
  a:focus-visible {
    border: 1px solid var(--wui-color-accent-100);
    background-color: var(--wui-gray-glass-005);
    -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  }

  button[data-variant='fill']:focus-visible {
    background-color: var(--wui-color-accent-090);
  }

  button[data-variant='fill'] {
    color: var(--wui-color-inverse-100);
    background-color: var(--wui-color-accent-100);
  }

  button[data-variant='fill']:disabled {
    color: var(--wui-gray-glass-015);
    background-color: var(--wui-gray-glass-015);
  }

  button[data-variant='fill']:disabled > wui-icon {
    color: var(--wui-gray-glass-015);
  }

  button[data-variant='shade'] {
    color: var(--wui-color-fg-200);
  }

  button[data-variant='accent'],
  button[data-variant='accentBg'] {
    color: var(--wui-color-accent-100);
  }

  button[data-variant='accentBg'] {
    background: var(--wui-accent-glass-010);
    border: 1px solid var(--wui-accent-glass-010);
  }

  button[data-variant='fullWidth'] {
    width: 100%;
    border-radius: var(--wui-border-radius-xs);
    height: 56px;
    border: none;
    background-color: var(--wui-gray-glass-002);
    color: var(--wui-color-fg-200);
    gap: var(--wui-spacing-xs);
  }

  button:active:enabled {
    background-color: var(--wui-gray-glass-010);
  }

  button[data-variant='fill']:active:enabled {
    background-color: var(--wui-color-accent-080);
    border: 1px solid var(--wui-gray-glass-010);
  }

  input {
    border: none;
    outline: none;
    appearance: none;
  }
`,FXe=Kr`
  .wui-color-inherit {
    color: var(--wui-color-inherit);
  }

  .wui-color-accent-100 {
    color: var(--wui-color-accent-100);
  }

  .wui-color-error-100 {
    color: var(--wui-color-error-100);
  }

  .wui-color-success-100 {
    color: var(--wui-color-success-100);
  }

  .wui-color-inverse-100 {
    color: var(--wui-color-inverse-100);
  }

  .wui-color-inverse-000 {
    color: var(--wui-color-inverse-000);
  }

  .wui-color-fg-100 {
    color: var(--wui-color-fg-100);
  }

  .wui-color-fg-200 {
    color: var(--wui-color-fg-200);
  }

  .wui-color-fg-300 {
    color: var(--wui-color-fg-300);
  }

  .wui-bg-color-inherit {
    background-color: var(--wui-color-inherit);
  }

  .wui-bg-color-blue-100 {
    background-color: var(--wui-color-accent-100);
  }

  .wui-bg-color-error-100 {
    background-color: var(--wui-color-error-100);
  }

  .wui-bg-color-success-100 {
    background-color: var(--wui-color-success-100);
  }

  .wui-bg-color-inverse-100 {
    background-color: var(--wui-color-inverse-100);
  }

  .wui-bg-color-inverse-000 {
    background-color: var(--wui-color-inverse-000);
  }

  .wui-bg-color-fg-100 {
    background-color: var(--wui-color-fg-100);
  }

  .wui-bg-color-fg-200 {
    background-color: var(--wui-color-fg-200);
  }

  .wui-bg-color-fg-300 {
    background-color: var(--wui-color-fg-300);
  }
`;function lPr(t,e){const{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(a){customElements.get(t)||customElements.define(t,a)}}}function cPr(t,e){return customElements.get(t)||customElements.define(t,e),e}function kr(t){return function(n){return typeof n=="function"?cPr(t,n):lPr(t,n)}}const uPr=Kr`
  :host {
    display: block;
    border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
    border: 1px solid var(--wui-gray-glass-005);
    background-color: var(--wui-color-modal-bg);
    overflow: hidden;
  }
`;var dPr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let mHe=class extends Mr{render(){return Mt`<slot></slot>`}};mHe.styles=[ro,uPr];mHe=dPr([kr("wui-card")],mHe);/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const hPr={attribute:!0,type:String,converter:a0e,reflect:!1,hasChanged:LXe},fPr=(t=hPr,e,n)=>{const{kind:r,metadata:a}=n;let o=globalThis.litPropertyMetadata.get(a);if(o===void 0&&globalThis.litPropertyMetadata.set(a,o=new Map),o.set(n.name,t),r==="accessor"){const{name:s}=n;return{set(l){const c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,t)},init(l){return l!==void 0&&this.P(s,void 0,t),l}}}if(r==="setter"){const{name:s}=n;return function(l){const c=this[s];e.call(this,l),this.requestUpdate(s,c,t)}}throw Error("Unsupported decorator location: "+r)};function Ht(t){return(e,n)=>typeof n=="object"?fPr(t,e,n):((r,a,o)=>{const s=a.hasOwnProperty(o);return a.constructor.createProperty(o,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(a,o):void 0})(t,e,n)}/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function Bi(t){return Ht({...t,state:!0,attribute:!1})}const pPr=Kr`
  :host {
    display: flex;
    aspect-ratio: 1 / 1;
    color: var(--local-color);
    width: var(--local-width);
  }

  svg {
    width: inherit;
    height: inherit;
    object-fit: contain;
    object-position: center;
  }
`,mPr=oi`<svg fill="none" viewBox="0 0 24 24">
  <path
    style="fill: var(--wui-color-accent-100);"
    d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
  />
</svg>`,gPr=oi`
<svg width="36" height="36">
  <path
    d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
    fill="url(#a)"
  />
  <path
    d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z"
    fill="#fff"
  />
  <defs>
    <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse">
      <stop stop-color="#18BFFB" />
      <stop offset="1" stop-color="#2072F3" />
    </linearGradient>
  </defs>
</svg>`,vPr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#000" />
      <g clip-path="url(#c)">
        <path
          fill="#fff"
          d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z"
        />
      </g>
    </g>
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  </defs>
</svg>`,APr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z"
    clip-rule="evenodd"
  />
</svg>`,yPr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z"
    clip-rule="evenodd"
  />
</svg>`,bPr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z"
    clip-rule="evenodd"
  />
</svg>`,xPr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z"
    clip-rule="evenodd"
  />
</svg>`,EPr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M4 6.4a1 1 0 0 1-.46.89 6.98 6.98 0 0 0 .38 6.18A7 7 0 0 0 16.46 7.3a1 1 0 0 1-.47-.92 7 7 0 0 0-12 .03Zm-2.02-.5a9 9 0 1 1 16.03 8.2A9 9 0 0 1 1.98 5.9Z"
    clip-rule="evenodd"
  />
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M6.03 8.63c-1.46-.3-2.72-.75-3.6-1.35l-.02-.01-.14-.11a1 1 0 0 1 1.2-1.6l.1.08c.6.4 1.52.74 2.69 1 .16-.99.39-1.88.67-2.65.3-.79.68-1.5 1.15-2.02A2.58 2.58 0 0 1 9.99 1c.8 0 1.45.44 1.92.97.47.52.84 1.23 1.14 2.02.29.77.52 1.66.68 2.64a8 8 0 0 0 2.7-1l.26-.18h.48a1 1 0 0 1 .12 2c-.86.51-2.01.91-3.34 1.18a22.24 22.24 0 0 1-.03 3.19c1.45.29 2.7.73 3.58 1.31a1 1 0 0 1-1.1 1.68c-.6-.4-1.56-.76-2.75-1-.15.8-.36 1.55-.6 2.2-.3.79-.67 1.5-1.14 2.02-.47.53-1.12.97-1.92.97-.8 0-1.45-.44-1.91-.97a6.51 6.51 0 0 1-1.15-2.02c-.24-.65-.44-1.4-.6-2.2-1.18.24-2.13.6-2.73.99a1 1 0 1 1-1.1-1.67c.88-.58 2.12-1.03 3.57-1.31a22.03 22.03 0 0 1-.04-3.2Zm2.2-1.7c.15-.86.34-1.61.58-2.24.24-.65.51-1.12.76-1.4.25-.28.4-.29.42-.29.03 0 .17.01.42.3.25.27.52.74.77 1.4.23.62.43 1.37.57 2.22a19.96 19.96 0 0 1-3.52 0Zm-.18 4.6a20.1 20.1 0 0 1-.03-2.62 21.95 21.95 0 0 0 3.94 0 20.4 20.4 0 0 1-.03 2.63 21.97 21.97 0 0 0-3.88 0Zm.27 2c.13.66.3 1.26.49 1.78.24.65.51 1.12.76 1.4.25.28.4.29.42.29.03 0 .17-.01.42-.3.25-.27.52-.74.77-1.4.19-.5.36-1.1.49-1.78a20.03 20.03 0 0 0-3.35 0Z"
    clip-rule="evenodd"
  />
</svg>`,SPr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M12.04 2.65c.47.3.6.91.3 1.38l-5.78 9a1 1 0 0 1-1.61.1L1.73 9.27A1 1 0 1 1 3.27 8L5.6 10.8l5.05-7.85a1 1 0 0 1 1.38-.3Z"
    clip-rule="evenodd"
  />
</svg>`,wPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M1.46 4.96a1 1 0 0 1 1.41 0L8 10.09l5.13-5.13a1 1 0 1 1 1.41 1.41l-5.83 5.84a1 1 0 0 1-1.42 0L1.46 6.37a1 1 0 0 1 0-1.41Z"
    clip-rule="evenodd"
  />
</svg>`,_Pr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M11.04 1.46a1 1 0 0 1 0 1.41L5.91 8l5.13 5.13a1 1 0 1 1-1.41 1.41L3.79 8.71a1 1 0 0 1 0-1.42l5.84-5.83a1 1 0 0 1 1.41 0Z"
    clip-rule="evenodd"
  />
</svg>`,TPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z"
    clip-rule="evenodd"
  />
</svg>`,CPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z"
    clip-rule="evenodd"
  />
</svg>`,kPr=oi`<svg width="36" height="36" fill="none">
  <path
    fill="#fff"
    fill-opacity=".05"
    d="M0 14.94c0-5.55 0-8.326 1.182-10.4a9 9 0 0 1 3.359-3.358C6.614 0 9.389 0 14.94 0h6.12c5.55 0 8.326 0 10.4 1.182a9 9 0 0 1 3.358 3.359C36 6.614 36 9.389 36 14.94v6.12c0 5.55 0 8.326-1.182 10.4a9 9 0 0 1-3.359 3.358C29.386 36 26.611 36 21.06 36h-6.12c-5.55 0-8.326 0-10.4-1.182a9 9 0 0 1-3.358-3.359C0 29.386 0 26.611 0 21.06v-6.12Z"
  />
  <path
    stroke="#fff"
    stroke-opacity=".05"
    d="M14.94.5h6.12c2.785 0 4.84 0 6.46.146 1.612.144 2.743.43 3.691.97a8.5 8.5 0 0 1 3.172 3.173c.541.948.826 2.08.971 3.692.145 1.62.146 3.675.146 6.459v6.12c0 2.785 0 4.84-.146 6.46-.145 1.612-.43 2.743-.97 3.691a8.5 8.5 0 0 1-3.173 3.172c-.948.541-2.08.826-3.692.971-1.62.145-3.674.146-6.459.146h-6.12c-2.784 0-4.84 0-6.46-.146-1.612-.145-2.743-.43-3.691-.97a8.5 8.5 0 0 1-3.172-3.173c-.541-.948-.827-2.08-.971-3.692C.5 25.9.5 23.845.5 21.06v-6.12c0-2.784 0-4.84.146-6.46.144-1.612.43-2.743.97-3.691A8.5 8.5 0 0 1 4.79 1.617C5.737 1.076 6.869.79 8.48.646 10.1.5 12.156.5 14.94.5Z"
  />
  <path
    fill="url(#a)"
    d="M17.998 10.8h12.469a14.397 14.397 0 0 0-24.938.001l6.234 10.798.006-.001a7.19 7.19 0 0 1 6.23-10.799Z"
  />
  <path
    fill="url(#b)"
    d="m24.237 21.598-6.234 10.798A14.397 14.397 0 0 0 30.47 10.798H18.002l-.002.006a7.191 7.191 0 0 1 6.237 10.794Z"
  />
  <path
    fill="url(#c)"
    d="M11.765 21.601 5.531 10.803A14.396 14.396 0 0 0 18.001 32.4l6.235-10.798-.004-.004a7.19 7.19 0 0 1-12.466.004Z"
  />
  <path fill="#fff" d="M18 25.2a7.2 7.2 0 1 0 0-14.4 7.2 7.2 0 0 0 0 14.4Z" />
  <path fill="#1A73E8" d="M18 23.7a5.7 5.7 0 1 0 0-11.4 5.7 5.7 0 0 0 0 11.4Z" />
  <defs>
    <linearGradient
      id="a"
      x1="6.294"
      x2="41.1"
      y1="5.995"
      y2="5.995"
      gradientUnits="userSpaceOnUse"
    >
      <stop stop-color="#D93025" />
      <stop offset="1" stop-color="#EA4335" />
    </linearGradient>
    <linearGradient
      id="b"
      x1="20.953"
      x2="37.194"
      y1="32.143"
      y2="2.701"
      gradientUnits="userSpaceOnUse"
    >
      <stop stop-color="#FCC934" />
      <stop offset="1" stop-color="#FBBC04" />
    </linearGradient>
    <linearGradient
      id="c"
      x1="25.873"
      x2="9.632"
      y1="31.2"
      y2="1.759"
      gradientUnits="userSpaceOnUse"
    >
      <stop stop-color="#1E8E3E" />
      <stop offset="1" stop-color="#34A853" />
    </linearGradient>
  </defs>
</svg>`,RPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M7 2.99a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-7 5a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-4a1 1 0 0 1 1 1v2.58l1.85 1.85a1 1 0 0 1-1.41 1.42L6.29 8.69A1 1 0 0 1 6 8v-3a1 1 0 0 1 1-1Z"
    clip-rule="evenodd"
  />
</svg>`,MPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z"
    clip-rule="evenodd"
  />
</svg>`,NPr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z"
    clip-rule="evenodd"
  />
</svg>`,IPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm10.66-2.65a1 1 0 0 1 .23 1.06L9.83 9.24a1 1 0 0 1-.59.58l-2.83 1.06A1 1 0 0 1 5.13 9.6l1.06-2.82a1 1 0 0 1 .58-.59L9.6 5.12a1 1 0 0 1 1.06.23ZM7.9 7.89l-.13.35.35-.13.12-.35-.34.13Z"
    clip-rule="evenodd"
  />
</svg>`,PPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M9.5 0h1.67c.68 0 1.26 0 1.73.04.5.05.97.14 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73V6.5c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.43.03-.95.03-1.57.03 0 .62 0 1.14-.04 1.57-.04.5-.14.97-.4 1.42-.29.52-.72.95-1.24 1.24-.44.26-.92.35-1.41.4-.48.04-1.05.04-1.74.04H4.83c-.68 0-1.26 0-1.73-.04-.5-.05-.97-.14-1.42-.4-.52-.3-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.42A20.9 20.9 0 0 1 0 11.17V9.5c0-.69 0-1.26.04-1.74.05-.5.14-.97.4-1.41.3-.52.72-.95 1.24-1.25.45-.25.92-.35 1.42-.4.43-.03.95-.03 1.57-.03 0-.62 0-1.14.04-1.57.04-.5.14-.97.4-1.42.29-.52.72-.95 1.24-1.24.44-.26.92-.35 1.41-.4A20.9 20.9 0 0 1 9.5 0ZM4.67 6.67c-.63 0-1.06 0-1.4.03-.35.03-.5.09-.6.14-.2.12-.38.3-.5.5-.05.1-.1.24-.14.6C2 8.32 2 8.8 2 9.54v1.59c0 .73 0 1.22.03 1.6.04.35.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h1.58c.74 0 1.22 0 1.6-.03.36-.04.5-.1.6-.15.2-.11.38-.29.5-.5.05-.09.1-.24.14-.6.03-.33.03-.76.03-1.39-.6 0-1.13 0-1.57-.04-.5-.04-.97-.14-1.41-.4-.52-.29-.95-.72-1.25-1.24a3.39 3.39 0 0 1-.4-1.41c-.03-.44-.03-.96-.03-1.57Zm3.27-4.64c-.36.04-.5.1-.6.15-.2.11-.38.29-.5.5-.05.09-.1.24-.14.6-.03.37-.03.86-.03 1.6v1.58c0 .74 0 1.22.03 1.6.03.36.09.5.14.6.12.2.3.38.5.5.1.05.24.1.6.14.38.03.86.03 1.6.03h1.59c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6V4.87c0-.73 0-1.22-.03-1.6a1.46 1.46 0 0 0-.15-.6c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.14-.37-.03-.86-.03-1.6-.03H9.55c-.74 0-1.22 0-1.6.03Z"
    clip-rule="evenodd"
  />
</svg>`,OPr=oi` <svg fill="none" viewBox="0 0 13 4">
  <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" />
</svg>`,LPr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M13.66 2H6.34c-1.07 0-1.96 0-2.68.08-.74.08-1.42.25-2.01.68a4 4 0 0 0-.89.89c-.43.6-.6 1.27-.68 2.01C0 6.38 0 7.26 0 8.34v.89c0 1.07 0 1.96.08 2.68.08.74.25 1.42.68 2.01a4 4 0 0 0 .89.89c.6.43 1.27.6 2.01.68a27 27 0 0 0 2.68.08h7.32a27 27 0 0 0 2.68-.08 4.03 4.03 0 0 0 2.01-.68 4 4 0 0 0 .89-.89c.43-.6.6-1.27.68-2.01.08-.72.08-1.6.08-2.68v-.89c0-1.07 0-1.96-.08-2.68a4.04 4.04 0 0 0-.68-2.01 4 4 0 0 0-.89-.89c-.6-.43-1.27-.6-2.01-.68C15.62 2 14.74 2 13.66 2ZM2.82 4.38c.2-.14.48-.25 1.06-.31C4.48 4 5.25 4 6.4 4h7.2c1.15 0 1.93 0 2.52.07.58.06.86.17 1.06.31a2 2 0 0 1 .44.44c.14.2.25.48.31 1.06.07.6.07 1.37.07 2.52v.77c0 1.15 0 1.93-.07 2.52-.06.58-.17.86-.31 1.06a2 2 0 0 1-.44.44c-.2.14-.48.25-1.06.32-.6.06-1.37.06-2.52.06H6.4c-1.15 0-1.93 0-2.52-.06-.58-.07-.86-.18-1.06-.32a2 2 0 0 1-.44-.44c-.14-.2-.25-.48-.31-1.06C2 11.1 2 10.32 2 9.17V8.4c0-1.15 0-1.93.07-2.52.06-.58.17-.86.31-1.06a2 2 0 0 1 .44-.44Z"
    clip-rule="evenodd"
  />
  <path fill="currentColor" d="M6.14 17.57a1 1 0 1 0 0 2h7.72a1 1 0 1 0 0-2H6.14Z" />
</svg>`,BPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M6.07 1h.57a1 1 0 0 1 0 2h-.52c-.98 0-1.64 0-2.14.06-.48.05-.7.14-.84.24-.13.1-.25.22-.34.35-.1.14-.2.35-.25.83-.05.5-.05 1.16-.05 2.15v2.74c0 .99 0 1.65.05 2.15.05.48.14.7.25.83.1.14.2.25.34.35.14.1.36.2.84.25.5.05 1.16.05 2.14.05h.52a1 1 0 0 1 0 2h-.57c-.92 0-1.69 0-2.3-.07a3.6 3.6 0 0 1-1.8-.61c-.3-.22-.57-.49-.8-.8a3.6 3.6 0 0 1-.6-1.79C.5 11.11.5 10.35.5 9.43V6.58c0-.92 0-1.7.06-2.31a3.6 3.6 0 0 1 .62-1.8c.22-.3.48-.57.79-.79a3.6 3.6 0 0 1 1.8-.61C4.37 1 5.14 1 6.06 1ZM9.5 3a1 1 0 0 1 1.42 0l4.28 4.3a1 1 0 0 1 0 1.4L10.93 13a1 1 0 0 1-1.42-1.42L12.1 9H6.8a1 1 0 1 1 0-2h5.3L9.51 4.42a1 1 0 0 1 0-1.41Z"
    clip-rule="evenodd"
  />
</svg>`,DPr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#5865F2" />
      <path
        fill="#fff"
        fill-rule="evenodd"
        d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z"
        clip-rule="evenodd"
      />
    </g>
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  </defs>
</svg>`,$Pr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z"
  />
</svg>`,FPr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z"
    clip-rule="evenodd"
  />
</svg>`,jPr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z"
    clip-rule="evenodd"
  />
</svg>`,HPr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#1877F2" />
      <g clip-path="url(#c)">
        <path
          fill="#fff"
          d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H21.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z"
        />
      </g>
    </g>
    <path
      fill="#1877F2"
      d="M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z"
    />
    <path
      fill="#fff"
      d="m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z"
    />
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  </defs>
</svg>`,UPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z"
    clip-rule="evenodd"
  />
</svg>`,zPr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#1B1F23" />
      <g clip-path="url(#c)">
        <path
          fill="#fff"
          d="M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z"
        />
      </g>
    </g>
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  </defs>
</svg>`,GPr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#fff" fill-opacity=".05" />
      <g clip-path="url(#c)">
        <path
          fill="#4285F4"
          d="M20 17.7v4.65h6.46a5.53 5.53 0 0 1-2.41 3.61l3.9 3.02c2.26-2.09 3.57-5.17 3.57-8.82 0-.85-.08-1.67-.22-2.46H20Z"
        />
        <path
          fill="#34A853"
          d="m13.27 22.17-.87.67-3.11 2.42A12 12 0 0 0 20 31.9c3.24 0 5.96-1.07 7.94-2.9l-3.9-3.03A7.15 7.15 0 0 1 20 27.12a7.16 7.16 0 0 1-6.72-4.94v-.01Z"
        />
        <path
          fill="#FBBC05"
          d="M9.29 14.5a11.85 11.85 0 0 0 0 10.76l3.99-3.1a7.19 7.19 0 0 1 0-4.55l-4-3.1Z"
        />
        <path
          fill="#EA4335"
          d="M20 12.66c1.77 0 3.34.61 4.6 1.8l3.43-3.44A11.51 11.51 0 0 0 20 7.89c-4.7 0-8.74 2.69-10.71 6.62l3.99 3.1A7.16 7.16 0 0 1 20 12.66Z"
        />
      </g>
    </g>
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  </defs>
</svg>`,VPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z"
  />
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"
    clip-rule="evenodd"
  />
</svg>`,KPr=oi`<svg fill="none" viewBox="0 0 14 15">
  <path
    fill="currentColor"
    d="M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
  />
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M7 14.99a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5-7a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"
    clip-rule="evenodd"
  />
</svg>`,WPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M4.83 1.34h6.34c.68 0 1.26 0 1.73.04.5.05.97.15 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73v3.71c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.47.03-1.05.03-1.73.03H4.83c-.68 0-1.26 0-1.73-.04-.5-.04-.97-.14-1.42-.4-.52-.29-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.41A20.9 20.9 0 0 1 0 9.88v-3.7c0-.7 0-1.27.04-1.74.05-.5.14-.97.4-1.42.3-.52.72-.95 1.24-1.24.45-.25.92-.35 1.42-.4.47-.04 1.05-.04 1.73-.04ZM3.28 3.38c-.36.03-.51.08-.6.14-.21.11-.39.29-.5.5a.8.8 0 0 0-.08.19l5.16 3.44c.45.3 1.03.3 1.48 0L13.9 4.2a.79.79 0 0 0-.08-.2c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.13-.37-.04-.86-.04-1.6-.04H4.88c-.73 0-1.22 0-1.6.04ZM14 6.54 9.85 9.31a3.33 3.33 0 0 1-3.7 0L2 6.54v3.3c0 .74 0 1.22.03 1.6.04.36.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h6.25c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6v-3.3Z"
    clip-rule="evenodd"
  />
</svg>`,QPr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" />
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M3 4.75A4.75 4.75 0 0 1 7.75 0h4.5A4.75 4.75 0 0 1 17 4.75v10.5A4.75 4.75 0 0 1 12.25 20h-4.5A4.75 4.75 0 0 1 3 15.25V4.75ZM7.75 2A2.75 2.75 0 0 0 5 4.75v10.5A2.75 2.75 0 0 0 7.75 18h4.5A2.75 2.75 0 0 0 15 15.25V4.75A2.75 2.75 0 0 0 12.25 2h-4.5Z"
    clip-rule="evenodd"
  />
</svg>`,qPr=oi`<svg fill="none" viewBox="0 0 22 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M16.32 13.62a3.14 3.14 0 1 1-.99 1.72l-1.6-.93a3.83 3.83 0 0 1-3.71 1 3.66 3.66 0 0 1-1.74-1l-1.6.94a3.14 3.14 0 1 1-1-1.73l1.6-.94a3.7 3.7 0 0 1 0-2 3.81 3.81 0 0 1 1.8-2.33c.29-.17.6-.3.92-.38V6.1a3.14 3.14 0 1 1 2 0l-.01.02v1.85H12a3.82 3.82 0 0 1 2.33 1.8 3.7 3.7 0 0 1 .39 2.91l1.6.93ZM2.6 16.54a1.14 1.14 0 0 0 1.98-1.14 1.14 1.14 0 0 0-1.98 1.14ZM11 2.01a1.14 1.14 0 1 0 0 2.28 1.14 1.14 0 0 0 0-2.28Zm1.68 10.45c.08-.19.14-.38.16-.58v-.05l.02-.13v-.13a1.92 1.92 0 0 0-.24-.8l-.11-.15a1.89 1.89 0 0 0-.74-.6 1.86 1.86 0 0 0-.77-.17h-.19a1.97 1.97 0 0 0-.89.34 1.98 1.98 0 0 0-.61.74 1.99 1.99 0 0 0-.16.9v.05a1.87 1.87 0 0 0 .24.74l.1.15c.12.16.26.3.42.42l.16.1.13.07.04.02a1.84 1.84 0 0 0 .76.17h.17a2 2 0 0 0 .91-.35 1.78 1.78 0 0 0 .52-.58l.03-.05a.84.84 0 0 0 .05-.11Zm5.15 4.5a1.14 1.14 0 0 0 1.14-1.97 1.13 1.13 0 0 0-1.55.41c-.32.55-.13 1.25.41 1.56Z"
    clip-rule="evenodd"
  />
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M4.63 9.43a1.5 1.5 0 1 0 1.5-2.6 1.5 1.5 0 0 0-1.5 2.6Zm.32-1.55a.5.5 0 0 1 .68-.19.5.5 0 0 1 .18.68.5.5 0 0 1-.68.19.5.5 0 0 1-.18-.68ZM17.94 8.88a1.5 1.5 0 1 1-2.6-1.5 1.5 1.5 0 1 1 2.6 1.5ZM16.9 7.69a.5.5 0 0 0-.68.19.5.5 0 0 0 .18.68.5.5 0 0 0 .68-.19.5.5 0 0 0-.18-.68ZM9.75 17.75a1.5 1.5 0 1 1 2.6 1.5 1.5 1.5 0 1 1-2.6-1.5Zm1.05 1.18a.5.5 0 0 0 .68-.18.5.5 0 0 0-.18-.68.5.5 0 0 0-.68.18.5.5 0 0 0 .18.68Z"
    clip-rule="evenodd"
  />
</svg>`,YPr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M9.13 1h1.71c1.46 0 2.63 0 3.56.1.97.1 1.8.33 2.53.85a5 5 0 0 1 1.1 1.11c.53.73.75 1.56.86 2.53.1.93.1 2.1.1 3.55v1.72c0 1.45 0 2.62-.1 3.55-.1.97-.33 1.8-.86 2.53a5 5 0 0 1-1.1 1.1c-.73.53-1.56.75-2.53.86-.93.1-2.1.1-3.55.1H9.13c-1.45 0-2.62 0-3.56-.1-.96-.1-1.8-.33-2.52-.85a5 5 0 0 1-1.1-1.11 5.05 5.05 0 0 1-.86-2.53c-.1-.93-.1-2.1-.1-3.55V9.14c0-1.45 0-2.62.1-3.55.1-.97.33-1.8.85-2.53a5 5 0 0 1 1.1-1.1 5.05 5.05 0 0 1 2.53-.86C6.51 1 7.67 1 9.13 1ZM5.79 3.09a3.1 3.1 0 0 0-1.57.48 3 3 0 0 0-.66.67c-.24.32-.4.77-.48 1.56-.1.82-.1 1.88-.1 3.4v1.6c0 1.15 0 2.04.05 2.76l.41-.42c.5-.5.93-.92 1.32-1.24.41-.33.86-.6 1.43-.7a3 3 0 0 1 .94 0c.35.06.66.2.95.37a17.11 17.11 0 0 0 .8.45c.1-.08.2-.2.41-.4l.04-.03a27 27 0 0 1 1.95-1.84 4.03 4.03 0 0 1 1.91-.94 4 4 0 0 1 1.25 0c.73.11 1.33.46 1.91.94l.64.55V9.2c0-1.52 0-2.58-.1-3.4a3.1 3.1 0 0 0-.48-1.56 3 3 0 0 0-.66-.67 3.1 3.1 0 0 0-1.56-.48C13.37 3 12.3 3 10.79 3h-1.6c-1.52 0-2.59 0-3.4.09Zm11.18 10-.04-.05a26.24 26.24 0 0 0-1.83-1.74c-.45-.36-.73-.48-.97-.52a2 2 0 0 0-.63 0c-.24.04-.51.16-.97.52-.46.38-1.01.93-1.83 1.74l-.02.02c-.17.18-.34.34-.49.47a2.04 2.04 0 0 1-1.08.5 1.97 1.97 0 0 1-1.25-.27l-.79-.46-.02-.02a.65.65 0 0 0-.24-.1 1 1 0 0 0-.31 0c-.08.02-.21.06-.49.28-.3.24-.65.59-1.2 1.14l-.56.56-.65.66a3 3 0 0 0 .62.6c.33.24.77.4 1.57.49.81.09 1.88.09 3.4.09h1.6c1.52 0 2.58 0 3.4-.09a3.1 3.1 0 0 0 1.56-.48 3 3 0 0 0 .66-.67c.24-.32.4-.77.49-1.56l.07-1.12Zm-8.02-1.03ZM4.99 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"
    clip-rule="evenodd"
  />
</svg>`,JPr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M8 0a1 1 0 0 1 1 1v5.38a1 1 0 0 1-2 0V1a1 1 0 0 1 1-1ZM5.26 2.6a1 1 0 0 1-.28 1.39 5.46 5.46 0 1 0 6.04 0 1 1 0 1 1 1.1-1.67 7.46 7.46 0 1 1-8.25 0 1 1 0 0 1 1.4.28Z"
    clip-rule="evenodd"
  />
</svg>`,ZPr=oi` <svg
  width="36"
  height="36"
  fill="none"
>
  <path
    d="M0 8a8 8 0 0 1 8-8h20a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8Z"
    fill="#fff"
    fill-opacity=".05"
  />
  <path
    d="m18.262 17.513-8.944 9.49v.01a2.417 2.417 0 0 0 3.56 1.452l.026-.017 10.061-5.803-4.703-5.132Z"
    fill="#EA4335"
  />
  <path
    d="m27.307 15.9-.008-.008-4.342-2.52-4.896 4.36 4.913 4.912 4.325-2.494a2.42 2.42 0 0 0 .008-4.25Z"
    fill="#FBBC04"
  />
  <path
    d="M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z"
    fill="#4285F4"
  />
  <path
    d="m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z"
    fill="#34A853"
  />
  <path
    d="M8 .5h20A7.5 7.5 0 0 1 35.5 8v20a7.5 7.5 0 0 1-7.5 7.5H8A7.5 7.5 0 0 1 .5 28V8A7.5 7.5 0 0 1 8 .5Z"
    stroke="#fff"
    stroke-opacity=".05"
  />
</svg>`,XPr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    d="M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z"
  />
</svg>`,eOr=oi`<svg fill="none" viewBox="0 0 14 16">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M3.94 1.04a1 1 0 0 1 .7 1.23l-.48 1.68a5.85 5.85 0 0 1 8.53 4.32 5.86 5.86 0 0 1-11.4 2.56 1 1 0 0 1 1.9-.57 3.86 3.86 0 1 0 1.83-4.5l1.87.53a1 1 0 0 1-.55 1.92l-4.1-1.15a1 1 0 0 1-.69-1.23l1.16-4.1a1 1 0 0 1 1.23-.7Z"
    clip-rule="evenodd"
  />
</svg>`,tOr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M9.36 4.21a5.14 5.14 0 1 0 0 10.29 5.14 5.14 0 0 0 0-10.29ZM1.64 9.36a7.71 7.71 0 1 1 14 4.47l2.52 2.5a1.29 1.29 0 1 1-1.82 1.83l-2.51-2.51A7.71 7.71 0 0 1 1.65 9.36Z"
    clip-rule="evenodd"
  />
</svg>`,nOr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M6.76.3a1 1 0 0 1 0 1.4L4.07 4.4h9a1 1 0 1 1 0 2h-9l2.69 2.68a1 1 0 1 1-1.42 1.42L.95 6.09a1 1 0 0 1 0-1.4l4.4-4.4a1 1 0 0 1 1.4 0Zm6.49 9.21a1 1 0 0 1 1.41 0l4.39 4.4a1 1 0 0 1 0 1.4l-4.39 4.4a1 1 0 0 1-1.41-1.42l2.68-2.68h-9a1 1 0 0 1 0-2h9l-2.68-2.68a1 1 0 0 1 0-1.42Z"
    clip-rule="evenodd"
  />
</svg>`,rOr=oi`<svg width="10" height="10" viewBox="0 0 10 10">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M3.77986 0.566631C4.0589 0.845577 4.0589 1.29784 3.77986 1.57678L3.08261 2.2738H6.34184C6.73647 2.2738 7.05637 2.5936 7.05637 2.98808C7.05637 3.38257 6.73647 3.70237 6.34184 3.70237H3.08261L3.77986 4.39938C4.0589 4.67833 4.0589 5.13059 3.77986 5.40954C3.50082 5.68848 3.04841 5.68848 2.76937 5.40954L0.852346 3.49316C0.573306 3.21421 0.573306 2.76195 0.852346 2.48301L2.76937 0.566631C3.04841 0.287685 3.50082 0.287685 3.77986 0.566631ZM6.22 4.59102C6.49904 4.31208 6.95145 4.31208 7.23049 4.59102L9.14751 6.5074C9.42655 6.78634 9.42655 7.23861 9.14751 7.51755L7.23049 9.43393C6.95145 9.71287 6.49904 9.71287 6.22 9.43393C5.94096 9.15498 5.94096 8.70272 6.22 8.42377L6.91725 7.72676L3.65802 7.72676C3.26339 7.72676 2.94349 7.40696 2.94349 7.01247C2.94349 6.61798 3.26339 6.29819 3.65802 6.29819L6.91725 6.29819L6.22 5.60117C5.94096 5.32223 5.94096 4.86997 6.22 4.59102Z"
    clip-rule="evenodd"
  />
</svg>`,iOr=oi`<svg fill="none" viewBox="0 0 14 14">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M3.48 2.18a1 1 0 0 1 1.41 0l2.68 2.68a1 1 0 1 1-1.41 1.42l-.98-.98v4.56a1 1 0 0 1-2 0V5.3l-.97.98A1 1 0 0 1 .79 4.86l2.69-2.68Zm6.34 2.93a1 1 0 0 1 1 1v4.56l.97-.98a1 1 0 1 1 1.42 1.42l-2.69 2.68a1 1 0 0 1-1.41 0l-2.68-2.68a1 1 0 0 1 1.41-1.42l.98.98V6.1a1 1 0 0 1 1-1Z"
    clip-rule="evenodd"
  />
</svg>`,aOr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#5865F2" />
      <path
        fill="#fff"
        fill-rule="evenodd"
        d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z"
        clip-rule="evenodd"
      />
    </g>
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  </defs>
</svg> `,oOr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#5A3E85" />
      <g clip-path="url(#c)">
        <path
          fill="#fff"
          d="M18.22 25.7 20 23.91h3.34l2.1-2.1v-6.68H15.4v8.78h2.82v1.77Zm3.87-8.16h1.25v3.66H22.1v-3.66Zm-3.34 0H20v3.66h-1.25v-3.66ZM20 7.9a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.69 14.56-3.66 3.66h-2.72l-1.77 1.78h-1.88V26.1H13.3v-9.82l.94-2.4H26.7v8.56Z"
        />
      </g>
    </g>
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  </defs>
</svg>`,sOr=oi`<svg fill="none" viewBox="0 0 40 40">
  <g clip-path="url(#a)">
    <g clip-path="url(#b)">
      <circle cx="20" cy="19.89" r="20" fill="#1D9BF0" />
      <path
        fill="#fff"
        d="M30 13.81c-.74.33-1.53.55-2.36.65.85-.51 1.5-1.32 1.8-2.27-.79.47-1.66.8-2.6 1a4.1 4.1 0 0 0-7 3.73c-3.4-.17-6.42-1.8-8.45-4.28a4.1 4.1 0 0 0 1.27 5.47c-.67-.02-1.3-.2-1.86-.5a4.1 4.1 0 0 0 3.3 4.07c-.58.15-1.21.19-1.86.07a4.1 4.1 0 0 0 3.83 2.85A8.25 8.25 0 0 1 10 26.3a11.62 11.62 0 0 0 6.29 1.84c7.62 0 11.92-6.44 11.66-12.2.8-.59 1.5-1.3 2.05-2.13Z"
      />
    </g>
  </g>
  <defs>
    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  </defs>
</svg>`,lOr=oi`<svg fill="none" viewBox="0 0 16 16">
  <path
    fill="currentColor"
    d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z"
  />
</svg>`,cOr=oi`<svg fill="none" viewBox="0 0 28 28">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z"
    clip-rule="evenodd"
  />
</svg>`,uOr=oi`<svg fill="none" viewBox="0 0 14 14">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z"
    clip-rule="evenodd"
  />
</svg>`,dOr=oi`
  <svg fill="none" viewBox="0 0 48 44">
    <path
      style="fill: var(--wui-color-bg-300);"
      d="M4.56 8.64c-1.23 1.68-1.23 4.08-1.23 8.88v8.96c0 4.8 0 7.2 1.23 8.88.39.55.87 1.02 1.41 1.42C7.65 38 10.05 38 14.85 38h14.3c4.8 0 7.2 0 8.88-1.22a6.4 6.4 0 0 0 1.41-1.42c.83-1.14 1.1-2.6 1.19-4.92a6.4 6.4 0 0 0 5.16-4.65c.21-.81.21-1.8.21-3.79 0-1.98 0-2.98-.22-3.79a6.4 6.4 0 0 0-5.15-4.65c-.1-2.32-.36-3.78-1.19-4.92a6.4 6.4 0 0 0-1.41-1.42C36.35 6 33.95 6 29.15 6h-14.3c-4.8 0-7.2 0-8.88 1.22a6.4 6.4 0 0 0-1.41 1.42Z"
    />
    <path
      style="fill: var(--wui-color-fg-200);"
      fill-rule="evenodd"
      d="M2.27 11.33a6.4 6.4 0 0 1 6.4-6.4h26.66a6.4 6.4 0 0 1 6.4 6.4v1.7a6.4 6.4 0 0 1 5.34 6.3v5.34a6.4 6.4 0 0 1-5.34 6.3v1.7a6.4 6.4 0 0 1-6.4 6.4H8.67a6.4 6.4 0 0 1-6.4-6.4V11.33ZM39.6 31.07h-6.93a9.07 9.07 0 1 1 0-18.14h6.93v-1.6a4.27 4.27 0 0 0-4.27-4.26H8.67a4.27 4.27 0 0 0-4.27 4.26v21.34a4.27 4.27 0 0 0 4.27 4.26h26.66a4.27 4.27 0 0 0 4.27-4.26v-1.6Zm-6.93-16a6.93 6.93 0 0 0 0 13.86h8a4.27 4.27 0 0 0 4.26-4.26v-5.34a4.27 4.27 0 0 0-4.26-4.26h-8Z"
      clip-rule="evenodd"
    />
  </svg>
`,hOr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z"
    clip-rule="evenodd"
  />
</svg>`,fOr=oi`<svg fill="none" viewBox="0 0 96 67">
  <path
    fill="currentColor"
    d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z"
  />
  <path
    stroke="#000"
    stroke-opacity=".1"
    d="M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z"
  />
</svg>`,pOr=oi`<svg fill="none" viewBox="0 0 20 20">
  <path
    fill="currentColor"
    d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"
  />
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z"
    clip-rule="evenodd"
  />
</svg>`,mOr=oi`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10.687 0.557043C11.1462 0.671832 11.4254 1.13706 11.3106 1.59615C11.2044 2.02082 11.0975 2.51184 10.9822 3.04102C10.7176 4.25623 10.4091 5.6727 9.96482 6.94907C10.1435 7.58939 10.3065 8.16905 10.4935 8.68429C10.6447 9.10072 10.7858 9.39487 10.9179 9.58289C11.0055 9.70747 11.0597 9.74443 11.0748 9.75277C11.096 9.75724 11.1075 9.75764 11.1531 9.71916C11.2342 9.65067 11.3386 9.50891 11.4426 9.28357C11.5416 9.06892 11.614 8.8366 11.662 8.6497C11.6854 8.55831 11.7019 8.48242 11.7122 8.43111C11.7174 8.40555 11.7209 8.38638 11.723 8.37476L11.725 8.36363C11.8 7.89659 12.2395 7.57864 12.7068 7.65342C13.1742 7.72822 13.4925 8.16766 13.4177 8.63494C13.4153 8.64924 13.42 8.62063 13.4177 8.63494L13.4175 8.63596L13.4173 8.63721L13.4168 8.64037L13.4153 8.64924L13.4105 8.67692C13.4064 8.69961 13.4006 8.73069 13.3929 8.76891C13.3776 8.84516 13.3545 8.95091 13.3224 9.07586C13.2593 9.32166 13.1564 9.66085 12.9992 10.0015C12.8469 10.3315 12.6139 10.7288 12.2595 11.0282C11.8757 11.3523 11.35 11.5553 10.7293 11.4312C10.1645 11.3183 9.77597 10.939 9.51527 10.5681C9.2535 10.1957 9.05129 9.7349 8.88212 9.26898C8.87877 9.25975 8.87542 9.25049 8.87208 9.2412C8.03954 10.4941 6.83375 11.4479 5.03926 11.4479C3.48049 11.4479 2.31021 10.7159 1.56788 9.63945C0.846767 8.5938 0.544023 7.25403 0.573206 5.9702C0.60242 4.68505 0.966023 3.36073 1.69055 2.33272C2.42915 1.28475 3.5614 0.531453 5.03927 0.531453C6.44937 0.531453 7.4408 1.29593 8.1276 2.27567C8.48261 2.7821 8.77248 3.36668 9.0177 3.97383C9.1059 3.59106 9.18901 3.20908 9.27086 2.83294C9.39492 2.26277 9.51606 1.70605 9.64752 1.18046C9.76235 0.721369 10.2277 0.442254 10.687 0.557043ZM8.16354 6.87693C8.08689 6.60534 8.01003 6.33741 7.93241 6.08076C7.59522 4.96581 7.22132 3.969 6.72371 3.25914C6.24674 2.57873 5.72135 2.24516 5.03927 2.24516C4.21565 2.24516 3.56947 2.6422 3.09195 3.31975C2.60035 4.01725 2.31013 4.99361 2.28705 6.00913C2.26393 7.02599 2.51041 7.9869 2.97927 8.66676C3.42691 9.31586 4.08734 9.73417 5.03926 9.73417C6.48097 9.73417 7.4216 8.72164 8.14437 6.9249C8.15079 6.90893 8.15718 6.89294 8.16354 6.87693Z" fill="#47A1FF"/>
</svg>`;var mEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const gOr={allWallets:mPr,alpha:mOr,appStore:gPr,chromeStore:kPr,apple:vPr,arrowBottom:APr,arrowLeft:yPr,arrowRight:bPr,arrowTop:xPr,browser:EPr,checkmark:SPr,chevronBottom:wPr,chevronLeft:_Pr,chevronRight:TPr,chevronTop:CPr,clock:RPr,close:MPr,compass:IPr,coinPlaceholder:NPr,copy:PPr,cursor:OPr,desktop:LPr,disconnect:BPr,discord:DPr,etherscan:$Pr,extension:FPr,externalLink:jPr,facebook:HPr,filters:UPr,github:zPr,google:GPr,helpCircle:VPr,infoCircle:KPr,mail:WPr,mobile:QPr,networkPlaceholder:qPr,nftPlaceholder:YPr,off:JPr,playStore:ZPr,qrCode:XPr,refresh:eOr,search:tOr,swapHorizontal:nOr,swapHorizontalBold:rOr,swapVertical:iOr,telegram:aOr,twitch:oOr,twitter:sOr,twitterIcon:lOr,verify:cOr,verifyFilled:uOr,wallet:hOr,walletConnect:fOr,walletPlaceholder:dOr,warningCircle:pOr};let iU=class extends Mr{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=`
      --local-color: ${`var(--wui-color-${this.color});`}
      --local-width: ${`var(--wui-icon-size-${this.size});`}
    `,Mt`${gOr[this.name]}`}};iU.styles=[ro,FXe,pPr];mEe([Ht()],iU.prototype,"size",void 0);mEe([Ht()],iU.prototype,"name",void 0);mEe([Ht()],iU.prototype,"color",void 0);iU=mEe([kr("wui-icon")],iU);const vOr=Kr`
  :host {
    display: block;
    width: 100%;
    height: 100%;
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
  }
`;var jXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Ote=class extends Mr{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image"}render(){return Mt`<img src=${this.src} alt=${this.alt} />`}};Ote.styles=[ro,FXe,vOr];jXe([Ht()],Ote.prototype,"src",void 0);jXe([Ht()],Ote.prototype,"alt",void 0);Ote=jXe([kr("wui-image")],Ote);const AOr=Kr`
  :host {
    display: block;
    width: var(--wui-box-size-lg);
    height: var(--wui-box-size-lg);
  }

  svg {
    width: var(--wui-box-size-lg);
    height: var(--wui-box-size-lg);
    fill: none;
    stroke: transparent;
    stroke-linecap: round;
    transition: all var(--wui-ease-in-power-3) var(--wui-duration-lg);
  }

  use {
    stroke: var(--wui-color-accent-100);
    stroke-width: 2px;
    stroke-dasharray: 54, 118;
    stroke-dashoffset: 172;
    animation: dash 1s linear infinite;
  }

  @keyframes dash {
    to {
      stroke-dashoffset: 0px;
    }
  }
`;var yOr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let gHe=class extends Mr{render(){return Mt`
      <svg viewBox="0 0 54 59">
        <path
          id="wui-loader-path"
          d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z"
        />
        <use xlink:href="#wui-loader-path"></use>
      </svg>
    `}};gHe.styles=[ro,AOr];gHe=yOr([kr("wui-loading-hexagon")],gHe);const bOr=Kr`
  :host {
    display: flex;
  }

  :host([data-size='sm']) > svg {
    width: 12px;
    height: 12px;
  }

  :host([data-size='md']) > svg {
    width: 16px;
    height: 16px;
  }

  :host([data-size='lg']) > svg {
    width: 24px;
    height: 24px;
  }

  :host([data-size='xl']) > svg {
    width: 32px;
    height: 32px;
  }

  svg {
    animation: rotate 2s linear infinite;
    transition: all var(--wui-ease-in-power-3) var(--wui-duration-lg);
  }

  circle {
    fill: none;
    stroke: var(--local-color);
    stroke-width: 4px;
    stroke-dasharray: 1, 124;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
  }

  :host([data-size='md']) > svg > circle {
    stroke-width: 6px;
  }

  :host([data-size='sm']) > svg > circle {
    stroke-width: 8px;
  }

  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }

  @keyframes dash {
    0% {
      stroke-dasharray: 1, 124;
      stroke-dashoffset: 0;
    }

    50% {
      stroke-dasharray: 90, 124;
      stroke-dashoffset: -35;
    }

    100% {
      stroke-dashoffset: -125;
    }
  }
`;var HXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Lte=class extends Mr{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: var(--wui-color-${this.color});`,this.dataset.size=this.size,Mt`<svg viewBox="25 25 50 50">
      <circle r="20" cy="50" cx="50"></circle>
    </svg>`}};Lte.styles=[ro,bOr];HXe([Ht()],Lte.prototype,"color",void 0);HXe([Ht()],Lte.prototype,"size",void 0);Lte=HXe([kr("wui-loading-spinner")],Lte);const xOr=Kr`
  :host {
    display: block;
    width: var(--wui-box-size-md);
    height: var(--wui-box-size-md);
  }

  svg {
    width: var(--wui-box-size-md);
    height: var(--wui-box-size-md);
    transition: all var(--wui-ease-in-power-3) var(--wui-duration-lg);
  }

  rect {
    fill: none;
    stroke: var(--wui-color-accent-100);
    stroke-width: 4px;
    stroke-linecap: round;
    animation: dash 1s linear infinite;
  }

  @keyframes dash {
    to {
      stroke-dashoffset: 0px;
    }
  }
`;var CJt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let c0e=class extends Mr{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const e=this.radius>50?50:this.radius,r=36-e,a=116+r,o=245+r,s=360+r*1.75;return Mt`
      <svg viewBox="0 0 110 110" width="110" height="110">
        <rect
          x="2"
          y="2"
          width="106"
          height="106"
          rx=${e}
          stroke-dasharray="${a} ${o}"
          stroke-dashoffset=${s}
        />
      </svg>
    `}};c0e.styles=[ro,xOr];CJt([Ht({type:Number})],c0e.prototype,"radius",void 0);c0e=CJt([kr("wui-loading-thumbnail")],c0e);const EOr=Kr`
  :host {
    display: block;
    box-shadow: inset 0 0 0 1px var(--wui-gray-glass-005);
    background: linear-gradient(
      120deg,
      var(--wui-color-bg-200) 5%,
      var(--wui-color-bg-200) 48%,
      var(--wui-color-bg-300) 55%,
      var(--wui-color-bg-300) 60%,
      var(--wui-color-bg-300) calc(60% + 10px),
      var(--wui-color-bg-200) calc(60% + 12px),
      var(--wui-color-bg-200) 100%
    );
    background-size: 250%;
    animation: shimmer 3s linear infinite reverse;
  }

  @keyframes shimmer {
    from {
      background-position: -250% 0;
    }
    to {
      background-position: 250% 0;
    }
  }
`;var gEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let aU=class extends Mr{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m"}render(){return this.style.cssText=`
      width: ${this.width};
      height: ${this.height};
      border-radius: ${`clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px)`};
    `,Mt`<slot></slot>`}};aU.styles=[EOr];gEe([Ht()],aU.prototype,"width",void 0);gEe([Ht()],aU.prototype,"height",void 0);gEe([Ht()],aU.prototype,"borderRadius",void 0);aU=gEe([kr("wui-shimmer")],aU);/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const kJt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},RJt=t=>(...e)=>({_$litDirective$:t,values:e});let MJt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,r){this._$Ct=e,this._$AM=n,this._$Ci=r}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}};/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const SOr=RJt(class extends MJt{constructor(t){var e;if(super(t),t.type!==kJt.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,a;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in e)e[o]&&!((r=this.nt)!=null&&r.has(o))&&this.st.add(o);return this.render(e)}const n=t.element.classList;for(const o of this.st)o in e||(n.remove(o),this.st.delete(o));for(const o in e){const s=!!e[o];s===this.st.has(o)||(a=this.nt)!=null&&a.has(o)||(s?(n.add(o),this.st.add(o)):(n.remove(o),this.st.delete(o)))}return eU}}),wOr=Kr`
  :host {
    display: flex !important;
  }

  slot {
    display: inline-block;
    font-style: normal;
    font-family: var(--wui-font-family);
    font-feature-settings:
      'tnum' on,
      'lnum' on,
      'case' on;
    line-height: 130%;
    font-weight: var(--wui-font-weight-regular);
    overflow: inherit;
    text-overflow: inherit;
    text-align: var(--local-align);
    color: var(--local-color);
  }

  .wui-font-large-500,
  .wui-font-large-600,
  .wui-font-large-700 {
    font-size: var(--wui-font-size-large);
    letter-spacing: var(--wui-letter-spacing-large);
  }

  .wui-font-paragraph-500,
  .wui-font-paragraph-600,
  .wui-font-paragraph-700 {
    font-size: var(--wui-font-size-paragraph);
    letter-spacing: var(--wui-letter-spacing-paragraph);
  }

  .wui-font-small-400,
  .wui-font-small-500,
  .wui-font-small-600 {
    font-size: var(--wui-font-size-small);
    letter-spacing: var(--wui-letter-spacing-small);
  }

  .wui-font-tiny-500,
  .wui-font-tiny-600 {
    font-size: var(--wui-font-size-tiny);
    letter-spacing: var(--wui-letter-spacing-tiny);
  }

  .wui-font-micro-700,
  .wui-font-micro-600 {
    font-size: var(--wui-font-size-micro);
    letter-spacing: var(--wui-letter-spacing-micro);
    text-transform: uppercase;
  }

  .wui-font-small-400,
  .wui-font-paragraph-400 {
    font-weight: var(--wui-font-weight-light);
  }

  .wui-font-large-700,
  .wui-font-paragraph-700,
  .wui-font-micro-700 {
    font-weight: var(--wui-font-weight-bold);
  }

  .wui-font-large-600,
  .wui-font-paragraph-600,
  .wui-font-small-600,
  .wui-font-tiny-600,
  .wui-font-micro-600 {
    font-weight: var(--wui-font-weight-medium);
  }
`;var vEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let oU=class extends Mr{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left"}render(){const e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0};return this.style.cssText=`
      --local-align: ${this.align};
      --local-color: var(--wui-color-${this.color});
    `,Mt`<slot class=${SOr(e)}></slot>`}};oU.styles=[ro,wOr];vEe([Ht()],oU.prototype,"variant",void 0);vEe([Ht()],oU.prototype,"color",void 0);vEe([Ht()],oU.prototype,"align",void 0);oU=vEe([kr("wui-text")],oU);const _Or=oi`<svg fill="none" viewBox="0 0 60 60">
  <rect width="60" height="60" fill="#1DC956" rx="30" />
  <circle cx="30" cy="30" r="3" fill="#fff" />
  <path
    fill="#2BEE6C"
    stroke="#fff"
    stroke-width="2"
    d="m45.32 17.9-.88-.42.88.42.02-.05c.1-.2.21-.44.26-.7l-.82-.15.82.16a2 2 0 0 0-.24-1.4c-.13-.23-.32-.42-.47-.57a8.42 8.42 0 0 1-.04-.04l-.04-.04a2.9 2.9 0 0 0-.56-.47l-.51.86.5-.86a2 2 0 0 0-1.4-.24c-.26.05-.5.16-.69.26l-.05.02-15.05 7.25-.1.05c-1.14.55-1.85.89-2.46 1.37a7 7 0 0 0-1.13 1.14c-.5.6-.83 1.32-1.38 2.45l-.05.11-7.25 15.05-.02.05c-.1.2-.21.43-.26.69a2 2 0 0 0 .24 1.4l.85-.5-.85.5c.13.23.32.42.47.57l.04.04.04.04c.15.15.34.34.56.47a2 2 0 0 0 1.41.24l-.2-.98.2.98c.25-.05.5-.17.69-.26l.05-.02-.42-.87.42.87 15.05-7.25.1-.05c1.14-.55 1.85-.89 2.46-1.38a7 7 0 0 0 1.13-1.13 12.87 12.87 0 0 0 1.43-2.56l7.25-15.05Z"
  />
  <path
    fill="#1DC956"
    d="M33.38 32.72 30.7 29.3 15.86 44.14l.2.2a1 1 0 0 0 1.14.2l15.1-7.27a3 3 0 0 0 1.08-4.55Z"
  />
  <path
    fill="#86F999"
    d="m26.62 27.28 2.67 3.43 14.85-14.85-.2-.2a1 1 0 0 0-1.14-.2l-15.1 7.27a3 3 0 0 0-1.08 4.55Z"
  />
  <circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)" />
  <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" />
</svg> `,TOr=oi`<svg viewBox="0 0 60 60" fill="none">
  <g clip-path="url(#clip0_7734_50402)">
    <path
      d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z"
      fill="#EB8B47"
    />
    <path
      d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z"
      stroke="#062B2B"
      stroke-opacity="0.1"
    />
    <path
      d="M19 52C24.5228 52 29 47.5228 29 42C29 36.4772 24.5228 32 19 32C13.4772 32 9 36.4772 9 42C9 47.5228 13.4772 52 19 52Z"
      fill="#FF974C"
      stroke="white"
      stroke-width="2"
    />
    <path
      fill-rule="evenodd"
      clip-rule="evenodd"
      d="M42.8437 8.3264C42.4507 7.70891 41.5493 7.70891 41.1564 8.32641L28.978 27.4638C28.5544 28.1295 29.0326 29.0007 29.8217 29.0007H54.1783C54.9674 29.0007 55.4456 28.1295 55.022 27.4638L42.8437 8.3264Z"
      fill="white"
    />
    <path
      fill-rule="evenodd"
      clip-rule="evenodd"
      d="M42.3348 11.6456C42.659 11.7608 42.9061 12.1492 43.4005 12.926L50.7332 24.4488C51.2952 25.332 51.5763 25.7737 51.5254 26.1382C51.4915 26.3808 51.3698 26.6026 51.1833 26.7614C50.9031 27 50.3796 27 49.3327 27H34.6673C33.6204 27 33.0969 27 32.8167 26.7614C32.6302 26.6026 32.5085 26.3808 32.4746 26.1382C32.4237 25.7737 32.7048 25.332 33.2669 24.4488L40.5995 12.926C41.0939 12.1492 41.341 11.7608 41.6652 11.6456C41.8818 11.5687 42.1182 11.5687 42.3348 11.6456ZM35.0001 26.999C38.8661 26.999 42.0001 23.865 42.0001 19.999C42.0001 23.865 45.1341 26.999 49.0001 26.999H35.0001Z"
      fill="#FF974C"
    />
    <path
      d="M10.1061 9.35712C9.9973 9.67775 9.99867 10.0388 9.99978 10.3323C9.99989 10.3611 10 10.3893 10 10.4167V25.5833C10 25.6107 9.99989 25.6389 9.99978 25.6677C9.99867 25.9612 9.9973 26.3222 10.1061 26.6429C10.306 27.2317 10.7683 27.694 11.3571 27.8939C11.6777 28.0027 12.0388 28.0013 12.3323 28.0002C12.3611 28.0001 12.3893 28 12.4167 28H19C24.5228 28 29 23.5228 29 18C29 12.4772 24.5228 8 19 8H12.4167C12.3893 8 12.3611 7.99989 12.3323 7.99978C12.0388 7.99867 11.6778 7.9973 11.3571 8.10614C10.7683 8.306 10.306 8.76834 10.1061 9.35712Z"
      fill="#FF974C"
      stroke="white"
      stroke-width="2"
    />
    <circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="white" stroke-width="2" />
    <circle cx="19" cy="42" r="4" fill="#EB8B47" stroke="white" stroke-width="2" />
  </g>
  <defs>
    <clipPath id="clip0_7734_50402">
      <rect width="60" height="60" fill="white" />
    </clipPath>
  </defs>
</svg> `,COr=oi`<svg fill="none" viewBox="0 0 60 60">
  <g clip-path="url(#a)">
    <path
      fill="#1DC956"
      d="M0 25.01c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02.11 15.65.11 24.9.11h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.13 60 15.76 60 25v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-3.45 1.97-8.08 1.97-17.33 1.97H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 49.1 0 44.46 0 35.21v-10.2Z"
    />
    <path
      fill="#2BEE6C"
      d="M16.1 60c-3.82-.18-6.4-.64-8.53-1.86a15 15 0 0 1-5.6-5.6C.55 50.06.16 46.97.04 41.98L4.2 40.6a4 4 0 0 0 2.48-2.39l4.65-12.4a2 2 0 0 1 2.5-1.2l2.53.84a2 2 0 0 0 2.43-1l2.96-5.94a2 2 0 0 1 3.7.32l3.78 12.58a2 2 0 0 0 3.03 1.09l3.34-2.23a2 2 0 0 0 .65-.7l5.3-9.72a2 2 0 0 1 1.42-1.01l4.14-.69a2 2 0 0 1 1.6.44l3.9 3.24a2 2 0 0 0 2.7-.12l4.62-4.63c.08 2.2.08 4.8.08 7.93v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-2.13 1.22-4.7 1.68-8.54 1.86H16.11Z"
    />
    <path
      fill="#fff"
      d="m.07 43.03-.05-2.1 3.85-1.28a3 3 0 0 0 1.86-1.79l4.66-12.4a3 3 0 0 1 3.75-1.8l2.53.84a1 1 0 0 0 1.21-.5l2.97-5.94a3 3 0 0 1 5.56.48l3.77 12.58a1 1 0 0 0 1.51.55l3.34-2.23a1 1 0 0 0 .33-.35l5.3-9.71a3 3 0 0 1 2.14-1.53l4.13-.69a3 3 0 0 1 2.41.66l3.9 3.24a1 1 0 0 0 1.34-.06l5.28-5.28c.05.85.08 1.75.1 2.73L56 22.41a3 3 0 0 1-4.04.19l-3.9-3.25a1 1 0 0 0-.8-.21l-4.13.69a1 1 0 0 0-.72.5l-5.3 9.72a3 3 0 0 1-.97 1.05l-3.34 2.23a3 3 0 0 1-4.53-1.63l-3.78-12.58a1 1 0 0 0-1.85-.16l-2.97 5.94a3 3 0 0 1-3.63 1.5l-2.53-.84a1 1 0 0 0-1.25.6l-4.65 12.4a5 5 0 0 1-3.1 3L.07 43.02Z"
    />
    <path
      fill="#fff"
      fill-rule="evenodd"
      d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z"
      clip-rule="evenodd"
    />
    <path fill="#fff" d="M45 .28v59.66l-2 .1V.19c.7.02 1.37.05 2 .1Z" />
    <path fill="#2BEE6C" d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" />
    <path
      stroke="#fff"
      stroke-opacity=".1"
      d="M.5 25.01c0-4.63 0-8.08.24-10.8.25-2.7.73-4.64 1.66-6.28a14.5 14.5 0 0 1 5.42-5.41C9.46 1.58 11.39 1.1 14.1.85A133 133 0 0 1 24.9.61h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.67a14.5 14.5 0 0 1 5.42 5.4c.93 1.65 1.41 3.58 1.66 6.3.24 2.71.24 6.16.24 10.79v10.2c0 4.64 0 8.08-.24 10.8-.25 2.7-.73 4.65-1.66 6.28a14.5 14.5 0 0 1-5.42 5.42c-1.63.93-3.57 1.41-6.28 1.66-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.66a14.5 14.5 0 0 1-5.42-5.42C1.47 50.66 1 48.72.74 46.01A133 133 0 0 1 .5 35.2v-10.2Z"
    />
  </g>
  <defs>
    <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath>
  </defs>
</svg>`,kOr=oi`<svg fill="none" viewBox="0 0 60 60">
  <g clip-path="url(#a)">
    <rect width="60" height="60" fill="#C653C6" rx="30" />
    <path
      fill="#E87DE8"
      d="M57.98.01v19.5a4.09 4.09 0 0 0-2.63 2.29L50.7 34.2a2 2 0 0 1-2.5 1.2l-2.53-.84a2 2 0 0 0-2.42 1l-2.97 5.94a2 2 0 0 1-3.7-.32L32.8 28.6a2 2 0 0 0-3.02-1.09l-3.35 2.23a2 2 0 0 0-.64.7l-5.3 9.72a2 2 0 0 1-1.43 1.01l-4.13.69a2 2 0 0 1-1.61-.44l-3.9-3.24a2 2 0 0 0-2.69.12L2.1 42.93.02 43V.01h57.96Z"
    />
    <path
      fill="#fff"
      d="m61.95 16.94.05 2.1-3.85 1.28a3 3 0 0 0-1.86 1.79l-4.65 12.4a3 3 0 0 1-3.76 1.8l-2.53-.84a1 1 0 0 0-1.2.5l-2.98 5.94a3 3 0 0 1-5.55-.48l-3.78-12.58a1 1 0 0 0-1.5-.55l-3.35 2.23a1 1 0 0 0-.32.35l-5.3 9.72a3 3 0 0 1-2.14 1.52l-4.14.69a3 3 0 0 1-2.41-.66l-3.9-3.24a1 1 0 0 0-1.34.06l-5.28 5.28c-.05-.84-.08-1.75-.1-2.73l3.97-3.96a3 3 0 0 1 4.04-.19l3.89 3.25a1 1 0 0 0 .8.21l4.14-.68a1 1 0 0 0 .71-.51l5.3-9.71a3 3 0 0 1 .97-1.06l3.34-2.23a3 3 0 0 1 4.54 1.63l3.77 12.58a1 1 0 0 0 1.86.16l2.96-5.93a3 3 0 0 1 3.64-1.5l2.52.83a1 1 0 0 0 1.25-.6l4.66-12.4a5 5 0 0 1 3.1-2.99l4.43-1.48Z"
    />
    <path
      fill="#fff"
      fill-rule="evenodd"
      d="M35.5 27a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z"
      clip-rule="evenodd"
    />
    <path fill="#fff" d="M31 0v60h-2V0h2Z" />
    <path fill="#E87DE8" d="M33.5 27a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" />
  </g>
  <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" />
  <defs>
    <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath>
  </defs>
</svg> `,ROr=oi`<svg fill="none" viewBox="0 0 60 60">
  <g clip-path="url(#a)">
    <rect width="60" height="60" fill="#987DE8" rx="30" />
    <path
      fill="#fff"
      fill-rule="evenodd"
      d="m15.48 28.37 11.97-19.3a3 3 0 0 1 5.1 0l11.97 19.3a6 6 0 0 1 .9 3.14v.03a6 6 0 0 1-1.16 3.56L33.23 50.2a4 4 0 0 1-6.46 0L15.73 35.1a6 6 0 0 1-1.15-3.54v-.03a6 6 0 0 1 .9-3.16Z"
      clip-rule="evenodd"
    />
    <path
      fill="#643CDD"
      d="M30.84 10.11a1 1 0 0 0-.84-.46V24.5l12.6 5.53a2 2 0 0 0-.28-1.4L30.84 10.11Z"
    />
    <path
      fill="#BDADEB"
      d="M30 9.65a1 1 0 0 0-.85.46L17.66 28.64a2 2 0 0 0-.26 1.39L30 24.5V9.65Z"
    />
    <path
      fill="#643CDD"
      d="M30 50.54a1 1 0 0 0 .8-.4l11.24-15.38c.3-.44-.2-1-.66-.73l-9.89 5.68a3 3 0 0 1-1.5.4v10.43Z"
    />
    <path
      fill="#BDADEB"
      d="m17.97 34.76 11.22 15.37c.2.28.5.41.8.41V40.11a3 3 0 0 1-1.49-.4l-9.88-5.68c-.47-.27-.97.3-.65.73Z"
    />
    <path
      fill="#401AB3"
      d="M42.6 30.03 30 24.5v13.14a3 3 0 0 0 1.5-.4l10.14-5.83a2 2 0 0 0 .95-1.38Z"
    />
    <path
      fill="#7C5AE2"
      d="M30 37.64V24.46l-12.6 5.57a2 2 0 0 0 .97 1.39l10.13 5.82a3 3 0 0 0 1.5.4Z"
    />
  </g>
  <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" />
  <defs>
    <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath>
  </defs>
</svg> `,MOr=oi`<svg fill="none" viewBox="0 0 60 60">
  <rect width="60" height="60" fill="#1DC956" rx="3" />
  <path
    fill="#1FAD7E"
    stroke="#fff"
    stroke-width="2"
    d="m30.49 29.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z"
  />
  <path
    fill="#2BEE6C"
    stroke="#fff"
    stroke-width="2"
    d="m30.49 19.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z"
  />
  <path
    fill="#86F999"
    stroke="#fff"
    stroke-width="2"
    d="m46.69 21.06-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-6.32-3.51-.18-.1c-2.33-1.3-3.72-2.06-5.22-2.33a9 9 0 0 0-3.08 0c-1.5.27-2.9 1.04-5.22 2.33l-.17.1-6.33 3.51-.05.03c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45Z"
  />
  <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
</svg>`,NOr=oi`<svg fill="none" viewBox="0 0 60 60">
  <rect width="60" height="60" fill="#C653C6" rx="3" />
  <path
    fill="#fff"
    d="M20.03 15.22C20 15.6 20 16.07 20 17v2.8c0 1.14 0 1.7-.2 2.12-.15.31-.3.5-.58.71-.37.28-1.06.42-2.43.7-.59.12-1.11.29-1.6.51a9 9 0 0 0-4.35 4.36C10 30 10 32.34 10 37c0 4.66 0 7 .84 8.8a9 9 0 0 0 4.36 4.36C17 51 19.34 51 24 51h12c4.66 0 7 0 8.8-.84a9 9 0 0 0 4.36-4.36C50 44 50 41.66 50 37c0-4.66 0-7-.84-8.8a9 9 0 0 0-4.36-4.36c-.48-.22-1-.39-1.6-.5-1.36-.29-2.05-.43-2.42-.7-.27-.22-.43-.4-.58-.72-.2-.42-.2-.98-.2-2.11V17c0-.93 0-1.4-.03-1.78a9 9 0 0 0-8.19-8.19C31.4 7 30.93 7 30 7s-1.4 0-1.78.03a9 9 0 0 0-8.19 8.19Z"
  />
  <path
    fill="#E87DE8"
    d="M22 17c0-.93 0-1.4.04-1.78a7 7 0 0 1 6.18-6.18C28.6 9 29.07 9 30 9s1.4 0 1.78.04a7 7 0 0 1 6.18 6.18c.04.39.04.85.04 1.78v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.4-.08-1.78a4 4 0 0 0-3.14-3.14C31.39 12 30.93 12 30 12s-1.4 0-1.78.08a4 4 0 0 0-3.14 3.14c-.08.39-.08.85-.08 1.78v4.5a1.5 1.5 0 0 1-3 0V17Z"
  />
  <path
    fill="#E87DE8"
    fill-rule="evenodd"
    d="M12 36.62c0-4.32 0-6.48.92-8.09a7 7 0 0 1 2.61-2.61C17.14 25 19.3 25 23.62 25h6.86c.46 0 .7 0 .9.02 2.73.22 4.37 2.43 4.62 4.98.27-2.7 2.11-5 5.02-5A6.98 6.98 0 0 1 48 31.98v5.4c0 4.32 0 6.48-.92 8.09a7 7 0 0 1-2.61 2.61c-1.61.92-3.77.92-8.09.92h-5.86c-.46 0-.7 0-.9-.02-2.73-.22-4.37-2.43-4.62-4.98-.26 2.58-1.94 4.82-4.71 4.99l-.7.01c-.55 0-.82 0-1.05-.02a7 7 0 0 1-6.52-6.52c-.02-.23-.02-.5-.02-1.05v-4.79Zm21.24-.27a4 4 0 1 0-6.48 0 31.28 31.28 0 0 1 1.57 2.23c.17.4.17.81.17 1.24V42.5a1.5 1.5 0 0 0 3 0V39.82c0-.43 0-.85.17-1.24.09-.2.58-.87 1.57-2.23Z"
    clip-rule="evenodd"
  />
  <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
</svg>`,IOr=oi`<svg fill="none" viewBox="0 0 60 60">
  <g clip-path="url(#a)">
    <path
      fill="#EB8B47"
      d="M0 24.9c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02 0 15.65 0 24.9 0h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.02 60 15.65 60 24.9v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6C48.98 60 44.35 60 35.1 60H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 48.98 0 44.35 0 35.1V24.9Z"
    />
    <path
      stroke="#062B2B"
      stroke-opacity=".1"
      d="M.5 24.9c0-4.64 0-8.08.24-10.8.25-2.7.73-4.65 1.66-6.28A14.5 14.5 0 0 1 7.82 2.4C9.46 1.47 11.39 1 14.1.74A133 133 0 0 1 24.9.5h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.66a14.5 14.5 0 0 1 5.42 5.42c.93 1.63 1.41 3.57 1.66 6.28.24 2.72.24 6.16.24 10.8v10.2c0 4.63 0 8.08-.24 10.8-.25 2.7-.73 4.64-1.66 6.28a14.5 14.5 0 0 1-5.42 5.41c-1.63.94-3.57 1.42-6.28 1.67-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.67a14.5 14.5 0 0 1-5.42-5.4C1.47 50.53 1 48.6.74 45.88A133 133 0 0 1 .5 35.1V24.9Z"
    />
    <path
      fill="#FF974C"
      stroke="#fff"
      stroke-width="2"
      d="M39.2 29.2a13 13 0 1 0-18.4 0l1.3 1.28a12.82 12.82 0 0 1 2.1 2.39 6 6 0 0 1 .6 1.47c.2.76.2 1.56.2 3.17v11.24c0 1.08 0 1.61.13 2.12a4 4 0 0 0 .41.98c.26.45.64.83 1.4 1.6l.3.29c.65.65.98.98 1.36 1.09.26.07.54.07.8 0 .38-.11.7-.44 1.36-1.1l3.48-3.47c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.47-.48c-.65-.65-.98-.98-1.09-1.36a1.5 1.5 0 0 1 0-.8c.1-.38.44-.7 1.1-1.36l.47-.48c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.48-.5c-.65-.64-.98-.97-1.08-1.35a1.5 1.5 0 0 1 0-.79c.1-.38.42-.7 1.06-1.36l5.46-5.55Z"
    />
    <circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2" />
  </g>
  <defs>
    <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath>
  </defs>
</svg> `,POr=oi`<svg fill="none" viewBox="0 0 60 60">
  <g clip-path="url(#a)">
    <rect width="60" height="60" fill="#00ACE6" rx="30" />
    <circle cx="64" cy="39" r="50" fill="#1AC6FF" stroke="#fff" stroke-width="2" />
    <circle cx="78" cy="30" r="50" fill="#4DD2FF" stroke="#fff" stroke-width="2" />
    <circle cx="72" cy="15" r="35" fill="#80DFFF" stroke="#fff" stroke-width="2" />
    <circle cx="34" cy="-17" r="45" stroke="#fff" stroke-width="2" />
    <circle cx="34" cy="-5" r="50" stroke="#fff" stroke-width="2" />
    <circle cx="30" cy="45" r="4" fill="#4DD2FF" stroke="#fff" stroke-width="2" />
    <circle cx="39.5" cy="27.5" r="4" fill="#80DFFF" stroke="#fff" stroke-width="2" />
    <circle cx="16" cy="24" r="4" fill="#19C6FF" stroke="#fff" stroke-width="2" />
  </g>
  <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" />
  <defs>
    <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath>
  </defs>
</svg>`,OOr=oi`<svg fill="none" viewBox="0 0 60 60">
  <g clip-path="url(#a)">
    <rect width="60" height="60" fill="#C653C6" rx="3" />
    <path
      fill="#E87DE8"
      stroke="#fff"
      stroke-width="2"
      d="M52.1 47.34c0-4.24-1.44-9.55-5.9-12.4a2.86 2.86 0 0 0-1.6-3.89v-.82c0-1.19-.52-2.26-1.35-3a4.74 4.74 0 0 0-2.4-6.26v-5.5a11.31 11.31 0 1 0-22.63 0v2.15a3.34 3.34 0 0 0-1.18 5.05 4.74 4.74 0 0 0-.68 6.44A5.22 5.22 0 0 0 14 35.92c-3.06 4.13-6.1 8.3-6.1 15.64 0 2.67.37 4.86.74 6.39a20.3 20.3 0 0 0 .73 2.39l.02.04v.01l.92-.39-.92.4.26.6h38.26l.3-.49-.87-.51.86.5.02-.01.03-.07a16.32 16.32 0 0 0 .57-1.05c.36-.72.85-1.74 1.33-2.96a25.51 25.51 0 0 0 1.94-9.07Z"
    />
    <path
      fill="#fff"
      fill-rule="evenodd"
      d="M26.5 29.5c-3-.5-5.5-3-5.5-7v-7c0-.47 0-.7.03-.9a3 3 0 0 1 2.58-2.57c.2-.03.42-.03.89-.03 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.4 0 2.1 0 2.65.23a3 3 0 0 1 1.62 1.62c.23.55.23 1.25.23 2.65v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.5 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z"
      clip-rule="evenodd"
    />
  </g>
  <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
  <defs>
    <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="3" /></clipPath>
  </defs>
</svg> `,LOr=oi`<svg fill="none" viewBox="0 0 60 60">
  <rect width="60" height="60" fill="#794CFF" rx="3" />
  <path
    fill="#987DE8"
    stroke="#fff"
    stroke-width="2"
    d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z"
  />
  <path fill="#fff" d="M37.5 25h10v10h-10z" />
  <path fill="#4019B2" d="M42.5 25h5v10h-5z" />
  <path fill="#fff" d="M19.5 25h10v10h-10z" />
  <path fill="#4019B2" d="M24.5 25h5v10h-5z" />
  <path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z" />
  <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
</svg>`,BOr=oi`<svg
  viewBox="0 0 60 60"
  fill="none"
>
  <g clip-path="url(#1)">
    <rect width="60" height="60" rx="30" fill="#00ACE6" />
    <path
      d="M59 73C59 89.0163 46.0163 102 30 102C13.9837 102 1 89.0163 1 73C1 56.9837 12 44 30 44C48 44 59 56.9837 59 73Z"
      fill="#1AC6FF"
      stroke="white"
      stroke-width="2"
    />
    <path
      d="M18.6904 19.9015C19.6264 15.3286 23.3466 11.8445 27.9708 11.2096C29.3231 11.024 30.6751 11.0238 32.0289 11.2096C36.6532 11.8445 40.3733 15.3286 41.3094 19.9015C41.4868 20.7681 41.6309 21.6509 41.7492 22.5271C41.8811 23.5041 41.8811 24.4944 41.7492 25.4715C41.6309 26.3476 41.4868 27.2304 41.3094 28.097C40.3733 32.6699 36.6532 36.154 32.0289 36.7889C30.6772 36.9744 29.3216 36.9743 27.9708 36.7889C23.3466 36.154 19.6264 32.6699 18.6904 28.097C18.513 27.2304 18.3689 26.3476 18.2506 25.4715C18.1186 24.4944 18.1186 23.5041 18.2506 22.5271C18.3689 21.6509 18.513 20.7681 18.6904 19.9015Z"
      fill="#1AC6FF"
      stroke="white"
      stroke-width="2"
    />
    <circle cx="24.5" cy="23.5" r="1.5" fill="white" />
    <circle cx="35.5" cy="23.5" r="1.5" fill="white" />
    <path
      d="M31 20L28 28H32"
      stroke="white"
      stroke-width="2"
      stroke-linecap="round"
      stroke-linejoin="round"
    />
  </g>
  <rect x="0.5" y="0.5" width="59" height="59" rx="29.5" stroke="white" stroke-opacity="0.1" />
  <defs>
    <clipPath id="1">
      <rect width="60" height="60" rx="30" fill="white" />
    </clipPath>
  </defs>
</svg> `,DOr=oi`<svg viewBox="0 0 60 60" fill="none">
  <g clip-path="url(#1)">
    <path
      d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z"
      fill="#794CFF"
    />
    <path
      d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z"
      stroke="#062B2B"
      stroke-opacity="0.1"
    />
    <path
      d="M35.1403 31.5016C35.1193 30.9637 35.388 30.4558 35.8446 30.1707C36.1207 29.9982 36.4761 29.8473 36.7921 29.7685C37.3143 29.6382 37.8664 29.7977 38.2386 30.1864C38.8507 30.8257 39.3004 31.6836 39.8033 32.408C40.2796 33.0942 41.4695 33.2512 41.9687 32.5047C42.4839 31.7341 42.9405 30.8229 43.572 30.1399C43.9375 29.7447 44.4866 29.5756 45.0111 29.6967C45.3283 29.7701 45.6863 29.9147 45.9655 30.0823C46.4269 30.3595 46.7045 30.8626 46.6928 31.4008C46.6731 32.3083 46.3764 33.2571 46.2158 34.1473C46.061 35.0048 46.9045 35.8337 47.7592 35.664C48.6464 35.4878 49.5899 35.1747 50.497 35.1391C51.0348 35.1181 51.5427 35.3868 51.8279 35.8433C52.0004 36.1195 52.1513 36.4749 52.2301 36.7908C52.3604 37.3131 52.2009 37.8651 51.8121 38.2374C51.1729 38.8495 50.3151 39.2991 49.5908 39.8019C48.9046 40.2782 48.7473 41.4683 49.4939 41.9675C50.2644 42.4827 51.1757 42.9393 51.8587 43.5708C52.2539 43.9362 52.423 44.4854 52.3018 45.0099C52.2285 45.3271 52.0839 45.6851 51.9162 45.9642C51.6391 46.4257 51.1359 46.7032 50.5978 46.6916C49.6903 46.6719 48.7417 46.3753 47.8516 46.2146C46.9939 46.0598 46.1648 46.9035 46.3346 47.7583C46.5108 48.6454 46.8239 49.5888 46.8594 50.4958C46.8805 51.0336 46.6117 51.5415 46.1552 51.8267C45.879 51.9992 45.5236 52.15 45.2077 52.2289C44.6854 52.3592 44.1334 52.1997 43.7611 51.8109C43.1491 51.1718 42.6996 50.314 42.1968 49.5897C41.7203 48.9034 40.5301 48.7463 40.0309 49.493C39.5157 50.2634 39.0592 51.1746 38.4278 51.8574C38.0623 52.2527 37.5132 52.4218 36.9887 52.3006C36.6715 52.2273 36.3135 52.0826 36.0343 51.915C35.5729 51.6379 35.2953 51.1347 35.307 50.5966C35.3267 49.6891 35.6233 48.7405 35.7839 47.8505C35.9388 46.9928 35.0951 46.1636 34.2402 46.3334C33.3531 46.5096 32.4098 46.8227 31.5028 46.8582C30.9649 46.8793 30.457 46.6105 30.1719 46.154C29.9994 45.8778 29.8485 45.5224 29.7697 45.2065C29.6394 44.6842 29.7989 44.1322 30.1877 43.7599C30.8269 43.1479 31.6847 42.6982 32.4091 42.1954C33.0954 41.7189 33.2522 40.5289 32.5056 40.0297C31.7351 39.5145 30.824 39.058 30.1411 38.4265C29.7459 38.0611 29.5768 37.5119 29.698 36.9875C29.7713 36.6702 29.9159 36.3122 30.0836 36.0331C30.3607 35.5717 30.8638 35.2941 31.402 35.3058C32.3095 35.3255 33.2583 35.6221 34.1485 35.7828C35.006 35.9376 35.8349 35.094 35.6652 34.2393C35.489 33.3521 35.1759 32.4087 35.1403 31.5016Z"
      fill="#906EF7"
      stroke="white"
      stroke-width="2"
    />
    <path
      d="M20.7706 8.22357C20.9036 7.51411 21.5231 7 22.2449 7H23.7551C24.4769 7 25.0964 7.51411 25.2294 8.22357C25.5051 9.69403 25.4829 11.6321 27.1202 12.2606C27.3092 12.3331 27.4958 12.4105 27.6798 12.4926C29.2818 13.2072 30.6374 11.8199 31.8721 10.9752C32.4678 10.5676 33.2694 10.6421 33.7798 11.1525L34.8477 12.2204C35.3581 12.7308 35.4326 13.5323 35.025 14.128C34.1802 15.3627 32.7931 16.7183 33.5077 18.3202C33.5898 18.5043 33.6672 18.6909 33.7398 18.88C34.3683 20.5171 36.3061 20.4949 37.7764 20.7706C38.4859 20.9036 39 21.5231 39 22.2449V23.7551C39 24.4769 38.4859 25.0964 37.7764 25.2294C36.3061 25.5051 34.3685 25.483 33.7401 27.1201C33.6675 27.3093 33.59 27.4961 33.5079 27.6803C32.7934 29.282 34.1803 30.6374 35.025 31.8719C35.4326 32.4677 35.3581 33.2692 34.8477 33.7796L33.7798 34.8475C33.2694 35.3579 32.4678 35.4324 31.8721 35.0248C30.6376 34.1801 29.2823 32.7934 27.6806 33.508C27.4962 33.5903 27.3093 33.6678 27.12 33.7405C25.483 34.3688 25.5051 36.3062 25.2294 37.7764C25.0964 38.4859 24.4769 39 23.7551 39H22.2449C21.5231 39 20.9036 38.4859 20.7706 37.7764C20.4949 36.3062 20.517 34.3688 18.88 33.7405C18.6908 33.6678 18.5039 33.5903 18.3196 33.5081C16.7179 32.7936 15.3625 34.1804 14.1279 35.0251C13.5322 35.4327 12.7307 35.3582 12.2203 34.8478L11.1524 33.7799C10.642 33.2695 10.5675 32.4679 10.9751 31.8722C11.8198 30.6376 13.2067 29.2822 12.4922 27.6804C12.41 27.4962 12.3325 27.3093 12.2599 27.1201C11.6315 25.483 9.69392 25.5051 8.22357 25.2294C7.51411 25.0964 7 24.4769 7 23.7551V22.2449C7 21.5231 7.51411 20.9036 8.22357 20.7706C9.69394 20.4949 11.6317 20.5171 12.2602 18.88C12.3328 18.6909 12.4103 18.5042 12.4924 18.3201C13.207 16.7181 11.8198 15.3625 10.975 14.1278C10.5674 13.5321 10.6419 12.7305 11.1523 12.2201L12.2202 11.1522C12.7306 10.6418 13.5322 10.5673 14.1279 10.9749C15.3626 11.8197 16.7184 13.2071 18.3204 12.4925C18.5044 12.4105 18.6909 12.3331 18.8799 12.2606C20.5171 11.6321 20.4949 9.69403 20.7706 8.22357Z"
      fill="#906EF7"
      stroke="white"
      stroke-width="2"
    />
    <circle cx="23" cy="23" r="6" fill="#794CFF" stroke="white" stroke-width="2" />
    <circle cx="41" cy="41" r="4" fill="#794CFF" stroke="white" stroke-width="2" />
  </g>
  <defs>
    <clipPath id="1">
      <rect width="60" height="60" fill="white" />
    </clipPath>
  </defs>
</svg> `,$Or=Kr`
  :host {
    display: block;
    width: 55px;
    height: 55px;
  }
`;var NJt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const FOr={browser:_Or,dao:TOr,defi:COr,defiAlt:kOr,eth:ROr,layers:MOr,lock:NOr,login:IOr,network:POr,nft:OOr,noun:LOr,profile:BOr,system:DOr};let u0e=class extends Mr{constructor(){super(...arguments),this.name="browser"}render(){return Mt`${FOr[this.name]}`}};u0e.styles=[ro,$Or];NJt([Ht()],u0e.prototype,"name",void 0);u0e=NJt([kr("wui-visual")],u0e);/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const Ko=t=>t??jh,lu={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},getHostName(t){return new URL(t).hostname},getTruncateString({string:t,charsStart:e,charsEnd:n,truncate:r}){return t.length<=e+n?t:r==="end"?`${t.substring(0,e)}...`:r==="start"?`...${t.substring(t.length-n)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(n))}`},generateAvatarColors(t){const n=t.toLowerCase().replace(/^0x/iu,"").substring(0,6),r=this.hexToRgb(n),a=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),s=100-3*Number(a==null?void 0:a.replace("px","")),l=`${s}% ${s}% at 65% 40%`,c=[];for(let u=0;u<5;u+=1){const d=this.tintColor(r,.15*u);c.push(`rgb(${d[0]}, ${d[1]}, ${d[2]})`)}return`
    --local-color-1: ${c[0]};
    --local-color-2: ${c[1]};
    --local-color-3: ${c[2]};
    --local-color-4: ${c[3]};
    --local-color-5: ${c[4]};
    --local-radial-circle: ${l}
   `},hexToRgb(t){const e=parseInt(t,16),n=e>>16&255,r=e>>8&255,a=e&255;return[n,r,a]},tintColor(t,e){const[n,r,a]=t,o=Math.round(n+(255-n)*e),s=Math.round(r+(255-r)*e),l=Math.round(a+(255-a)*e);return[o,s,l]},isNumber(t){return{number:/^[0-9]+$/u}.number.test(t)},getColorTheme(t){return t||(typeof window<"u"&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"dark")}},jOr=Kr`
  :host {
    display: flex;
    width: inherit;
    height: inherit;
  }
`;var nb=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let U0=class extends Mr{render(){return this.style.cssText=`
      flex-direction: ${this.flexDirection};
      flex-wrap: ${this.flexWrap};
      flex-basis: ${this.flexBasis};
      flex-grow: ${this.flexGrow};
      flex-shrink: ${this.flexShrink};
      align-items: ${this.alignItems};
      justify-content: ${this.justifyContent};
      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
      padding-top: ${this.padding&&lu.getSpacingStyles(this.padding,0)};
      padding-right: ${this.padding&&lu.getSpacingStyles(this.padding,1)};
      padding-bottom: ${this.padding&&lu.getSpacingStyles(this.padding,2)};
      padding-left: ${this.padding&&lu.getSpacingStyles(this.padding,3)};
      margin-top: ${this.margin&&lu.getSpacingStyles(this.margin,0)};
      margin-right: ${this.margin&&lu.getSpacingStyles(this.margin,1)};
      margin-bottom: ${this.margin&&lu.getSpacingStyles(this.margin,2)};
      margin-left: ${this.margin&&lu.getSpacingStyles(this.margin,3)};
    `,Mt`<slot></slot>`}};U0.styles=[ro,jOr];nb([Ht()],U0.prototype,"flexDirection",void 0);nb([Ht()],U0.prototype,"flexWrap",void 0);nb([Ht()],U0.prototype,"flexBasis",void 0);nb([Ht()],U0.prototype,"flexGrow",void 0);nb([Ht()],U0.prototype,"flexShrink",void 0);nb([Ht()],U0.prototype,"alignItems",void 0);nb([Ht()],U0.prototype,"justifyContent",void 0);nb([Ht()],U0.prototype,"columnGap",void 0);nb([Ht()],U0.prototype,"rowGap",void 0);nb([Ht()],U0.prototype,"gap",void 0);nb([Ht()],U0.prototype,"padding",void 0);nb([Ht()],U0.prototype,"margin",void 0);U0=nb([kr("wui-flex")],U0);const HOr=Kr`
  :host {
    display: block;
    width: var(--wui-icon-box-size-xl);
    height: var(--wui-icon-box-size-xl);
    border-radius: var(--wui-border-radius-3xl);
    box-shadow: 0 0 0 8px var(--wui-gray-glass-005);
    overflow: hidden;
    position: relative;
  }

  :host([data-variant='generated']) {
    --mixed-local-color-1: var(--local-color-1);
    --mixed-local-color-2: var(--local-color-2);
    --mixed-local-color-3: var(--local-color-3);
    --mixed-local-color-4: var(--local-color-4);
    --mixed-local-color-5: var(--local-color-5);
  }

  @supports (background: color-mix(in srgb, white 50%, black)) {
    :host([data-variant='generated']) {
      --mixed-local-color-1: color-mix(
        in srgb,
        var(--w3m-color-mix) var(--w3m-color-mix-strength),
        var(--local-color-1)
      );
      --mixed-local-color-2: color-mix(
        in srgb,
        var(--w3m-color-mix) var(--w3m-color-mix-strength),
        var(--local-color-2)
      );
      --mixed-local-color-3: color-mix(
        in srgb,
        var(--w3m-color-mix) var(--w3m-color-mix-strength),
        var(--local-color-3)
      );
      --mixed-local-color-4: color-mix(
        in srgb,
        var(--w3m-color-mix) var(--w3m-color-mix-strength),
        var(--local-color-4)
      );
      --mixed-local-color-5: color-mix(
        in srgb,
        var(--w3m-color-mix) var(--w3m-color-mix-strength),
        var(--local-color-5)
      );
    }
  }

  :host([data-variant='generated']) {
    box-shadow: 0 0 0 8px var(--wui-gray-glass-005);
    background: radial-gradient(
      var(--local-radial-circle),
      #fff 0.52%,
      var(--mixed-local-color-5) 31.25%,
      var(--mixed-local-color-3) 51.56%,
      var(--mixed-local-color-2) 65.63%,
      var(--mixed-local-color-1) 82.29%,
      var(--mixed-local-color-4) 100%
    );
  }

  :host([data-variant='default']) {
    box-shadow: 0 0 0 8px var(--wui-gray-glass-005);
    background: radial-gradient(
      75.29% 75.29% at 64.96% 24.36%,
      #fff 0.52%,
      #f5ccfc 31.25%,
      #dba4f5 51.56%,
      #9a8ee8 65.63%,
      #6493da 82.29%,
      #6ebdea 100%
    );
  }
`;var AEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let sU=class extends Mr{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0}render(){return Mt`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",Mt`<wui-image src=${this.imageSrc} alt=${this.alt??"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";const e=lu.generateAvatarColors(this.address);return this.style.cssText=e,null}return this.dataset.variant="default",null}};sU.styles=[ro,HOr];AEe([Ht()],sU.prototype,"imageSrc",void 0);AEe([Ht()],sU.prototype,"alt",void 0);AEe([Ht()],sU.prototype,"address",void 0);sU=AEe([kr("wui-avatar")],sU);const UOr=Kr`
  :host {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--wui-gray-glass-020);
    border-radius: var(--local-border-radius);
    box-shadow: 0 0 0 1px var(--local-border);
    width: var(--local-size);
    height: var(--local-size);
    min-height: var(--local-size);
    min-width: var(--local-size);
  }

  @supports (background: color-mix(in srgb, white 50%, black)) {
    :host {
      background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
    }
  }
`;var ZM=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Rw=class extends Mr{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){const e=this.iconSize||this.size,n=this.size==="lg",r=this.size==="xl",a=n?"12%":"16%",o=n?"xxs":r?"s":"3xl",s=this.background==="gray",l=this.background==="opaque",c=this.backgroundColor==="accent-100"&&l||this.backgroundColor==="success-100"&&l||this.backgroundColor==="error-100"&&l||this.backgroundColor==="inverse-100"&&l;let u=`var(--wui-color-${this.backgroundColor})`;return c?u=`var(--wui-icon-box-bg-${this.backgroundColor})`:s&&(u=`var(--wui-gray-${this.backgroundColor})`),this.style.cssText=`
       --local-bg-value: ${u};
       --local-bg-mix: ${c||s?"100%":a};
       --local-border-radius: var(--wui-border-radius-${o});
       --local-size: var(--wui-icon-box-size-${this.size});
       --local-border: ${this.borderColor==="wui-color-bg-125"?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"}
   `,Mt` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};Rw.styles=[ro,Ud,UOr];ZM([Ht()],Rw.prototype,"size",void 0);ZM([Ht()],Rw.prototype,"backgroundColor",void 0);ZM([Ht()],Rw.prototype,"iconColor",void 0);ZM([Ht()],Rw.prototype,"iconSize",void 0);ZM([Ht()],Rw.prototype,"background",void 0);ZM([Ht({type:Boolean})],Rw.prototype,"border",void 0);ZM([Ht()],Rw.prototype,"borderColor",void 0);ZM([Ht()],Rw.prototype,"icon",void 0);Rw=ZM([kr("wui-icon-box")],Rw);const zOr=Kr`
  :host {
    display: block;
  }

  button {
    border-radius: var(--wui-border-radius-3xl);
    background: var(--wui-gray-glass-002);
    display: flex;
    gap: var(--wui-spacing-xs);
    padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) var(--wui-spacing-3xs)
      var(--wui-spacing-xs);
    border: 1px solid var(--wui-gray-glass-005);
  }

  button:disabled {
    background: var(--wui-gray-glass-015);
  }

  button:disabled > wui-text {
    color: var(--wui-gray-glass-015);
  }

  button:disabled > wui-flex > wui-text {
    color: var(--wui-gray-glass-015);
  }

  button:disabled > wui-image,
  button:disabled > wui-icon-box,
  button:disabled > wui-flex > wui-avatar {
    filter: grayscale(1);
  }

  button:has(wui-image) {
    padding: var(--wui-spacing-3xs) var(--wui-spacing-3xs) var(--wui-spacing-3xs)
      var(--wui-spacing-xs);
  }

  wui-text {
    color: var(--wui-color-fg-100);
  }

  wui-flex > wui-text {
    color: var(--wui-color-fg-200);
    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
  }

  wui-image,
  wui-icon-box {
    border-radius: var(--wui-border-radius-3xl);
    width: 24px;
    height: 24px;
    box-shadow: 0 0 0 2px var(--wui-gray-glass-005);
  }

  wui-flex {
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-gray-glass-005);
    background: var(--wui-gray-glass-005);
    padding: 4px var(--wui-spacing-m) 4px var(--wui-spacing-xxs);
  }

  button.local-no-balance {
    border-radius: 0px;
    border: none;
    background: transparent;
  }

  wui-avatar {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 2px var(--wui-accent-glass-010);
  }

  @media (max-width: 500px) {
    button {
      gap: 0px;
      padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) !important;
      height: 32px;
    }
    wui-image,
    wui-icon-box,
    button > wui-text {
      visibility: hidden;
      width: 0px;
      height: 0px;
    }
    button {
      border-radius: 0px;
      border: none;
      background: transparent;
      padding: 0px;
    }
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled > wui-flex > wui-text {
      color: var(--wui-color-fg-175);
    }

    button:active:enabled > wui-flex > wui-text {
      color: var(--wui-color-fg-175);
    }
  }
`;var XM=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Mw=class extends Mr{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.disabled=!1,this.isProfileName=!1,this.address="",this.charsStart=4,this.charsEnd=6}render(){return Mt`
      <button
        ?disabled=${this.disabled}
        class=${Ko(this.balance?void 0:"local-no-balance")}
      >
        ${this.balanceTemplate()}
        <wui-flex gap="xxs" alignItems="center">
          <wui-avatar
            .imageSrc=${this.avatarSrc}
            alt=${this.address}
            address=${this.address}
          ></wui-avatar>
          <wui-text variant="paragraph-600" color="inherit">
            ${lu.getTruncateString({string:this.address,charsStart:this.isProfileName?18:this.charsStart,charsEnd:this.isProfileName?0:this.charsEnd,truncate:this.isProfileName?"end":"middle"})}
          </wui-text>
        </wui-flex>
      </button>
    `}balanceTemplate(){if(this.balance){const e=this.networkSrc?Mt`<wui-image src=${this.networkSrc}></wui-image>`:Mt`
            <wui-icon-box
              size="sm"
              iconColor="fg-200"
              backgroundColor="fg-300"
              icon="networkPlaceholder"
            ></wui-icon-box>
          `;return Mt`
        ${e}
        <wui-text variant="paragraph-600" color="inherit"> ${this.balance} </wui-text>
      `}return null}};Mw.styles=[ro,Ud,zOr];XM([Ht()],Mw.prototype,"networkSrc",void 0);XM([Ht()],Mw.prototype,"avatarSrc",void 0);XM([Ht()],Mw.prototype,"balance",void 0);XM([Ht({type:Boolean})],Mw.prototype,"disabled",void 0);XM([Ht({type:Boolean})],Mw.prototype,"isProfileName",void 0);XM([Ht()],Mw.prototype,"address",void 0);XM([Ht()],Mw.prototype,"charsStart",void 0);XM([Ht()],Mw.prototype,"charsEnd",void 0);Mw=XM([kr("wui-account-button")],Mw);const GOr=Kr`
  :host {
    position: relative;
    background-color: var(--wui-gray-glass-002);
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--local-size);
    height: var(--local-size);
    border-radius: inherit;
    border-radius: var(--local-border-radius);
  }

  :host > wui-flex {
    overflow: hidden;
    border-radius: inherit;
    border-radius: var(--local-border-radius);
  }

  :host::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: inherit;
    border: 1px solid var(--wui-gray-glass-010);
    pointer-events: none;
  }

  :host([name='Extension'])::after {
    border: 1px solid var(--wui-accent-glass-010);
  }

  :host([data-wallet-icon='allWallets']) {
    background-color: var(--wui-all-wallets-bg-100);
  }

  :host([data-wallet-icon='allWallets'])::after {
    border: 1px solid var(--wui-accent-glass-010);
  }

  wui-icon[data-parent-size='inherit'] {
    width: 75%;
    height: 75%;
    align-items: center;
  }

  wui-icon[data-parent-size='sm'] {
    width: 18px;
    height: 18px;
  }

  wui-icon[data-parent-size='md'] {
    width: 24px;
    height: 24px;
  }

  wui-icon[data-parent-size='lg'] {
    width: 42px;
    height: 42px;
  }

  wui-icon[data-parent-size='full'] {
    width: 100%;
    height: 100%;
  }

  :host > wui-icon-box {
    position: absolute;
    overflow: hidden;
    right: -1px;
    bottom: -2px;
    z-index: 1;
    border: 2px solid var(--wui-color-bg-base-150, #1e1f1f);
    padding: 1px;
  }
`;var L8=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let gM=class extends Mr{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="xxs";return this.size==="lg"?e="m":this.size==="md"?e="xs":e="xxs",this.style.cssText=`
       --local-border-radius: var(--wui-border-radius-${e});
       --local-size: var(--wui-wallet-image-size-${this.size});
   `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),Mt`
      <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
    `}templateVisual(){return this.imageSrc?Mt`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?Mt`<wui-icon
        data-parent-size="md"
        size="md"
        color="inherit"
        name=${this.walletIcon}
      ></wui-icon>`:Mt`<wui-icon
      data-parent-size=${this.size}
      size="inherit"
      color="inherit"
      name="walletPlaceholder"
    ></wui-icon>`}};gM.styles=[ro,GOr];L8([Ht()],gM.prototype,"size",void 0);L8([Ht()],gM.prototype,"name",void 0);L8([Ht()],gM.prototype,"imageSrc",void 0);L8([Ht()],gM.prototype,"walletIcon",void 0);L8([Ht({type:Boolean})],gM.prototype,"installed",void 0);L8([Ht()],gM.prototype,"badgeSize",void 0);gM=L8([kr("wui-wallet-image")],gM);const VOr=Kr`
  :host {
    position: relative;
    border-radius: var(--wui-border-radius-xxs);
    width: 40px;
    height: 40px;
    overflow: hidden;
    background: var(--wui-gray-glass-002);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--wui-spacing-4xs);
    padding: 3.75px !important;
  }

  :host::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: inherit;
    border: 1px solid var(--wui-gray-glass-010);
    pointer-events: none;
  }

  :host > wui-wallet-image {
    width: 14px;
    height: 14px;
    border-radius: var(--wui-border-radius-5xs);
  }

  :host > wui-flex {
    padding: 2px;
    position: fixed;
    overflow: hidden;
    left: 34px;
    bottom: 8px;
    background: var(--dark-background-150, #1e1f1f);
    border-radius: 50%;
    z-index: 2;
    display: flex;
  }
`;var IJt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const T5e=4;let d0e=class extends Mr{constructor(){super(...arguments),this.walletImages=[]}render(){const e=this.walletImages.length<T5e;return Mt`${this.walletImages.slice(0,T5e).map(({src:n,walletName:r})=>Mt`
            <wui-wallet-image
              size="inherit"
              imageSrc=${n}
              name=${Ko(r)}
            ></wui-wallet-image>
          `)}
      ${e?[...Array(T5e-this.walletImages.length)].map(()=>Mt` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null}
      <wui-flex>
        <wui-icon-box
          size="xxs"
          iconSize="xxs"
          iconcolor="success-100"
          backgroundcolor="success-100"
          icon="checkmark"
          background="opaque"
        ></wui-icon-box>
      </wui-flex>`}};d0e.styles=[ro,VOr];IJt([Ht({type:Array})],d0e.prototype,"walletImages",void 0);d0e=IJt([kr("wui-all-wallets-image")],d0e);const KOr=Kr`
  :host {
    width: var(--local-width);
    position: relative;
  }

  button {
    border: 1px solid var(--wui-gray-glass-010);
    border-radius: var(--wui-border-radius-m);
    width: var(--local-width);
  }

  button:disabled {
    border: 1px solid var(--wui-gray-glass-010);
  }

  button[data-size='sm'] {
    padding: var(--wui-spacing-xxs) var(--wui-spacing-s);
  }

  button[data-size='sm'][data-icon-left='true'] {
    padding: var(--wui-spacing-xxs) var(--wui-spacing-s) var(--wui-spacing-xxs)
      var(--wui-spacing-xs);
  }

  button[data-size='sm'][data-icon-right='true'] {
    padding: var(--wui-spacing-xxs) var(--wui-spacing-xs) var(--wui-spacing-xxs)
      var(--wui-spacing-s);
  }

  ::slotted(*) {
    transition: opacity 200ms ease-in-out;
    opacity: var(--local-opacity-100);
  }

  button > wui-text {
    transition: opacity 200ms ease-in-out;
    opacity: var(--local-opacity-100);
  }

  button[data-size='md'] {
    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
  }

  button[data-size='md'][data-icon-left='true'] {
    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
  }

  button[data-size='md'][data-icon-right='true'] {
    padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
  }

  wui-loading-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transition: all 200ms ease-in-out;
    transform: translate(-50%, -50%);
    opacity: var(--local-opacity-000);
  }
`;var eO=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let j2=class extends Mr{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="fill",this.hasIconLeft=!1,this.hasIconRight=!1}render(){this.style.cssText=`
    --local-width: ${this.fullWidth?"100%":"auto"};
    --local-opacity-100: ${this.loading?0:1};
    --local-opacity-000: ${this.loading?1:0};`;const e=this.size==="md"?"paragraph-600":"small-600";return Mt`
      <button
        data-variant=${this.variant}
        data-icon-left=${this.hasIconLeft}
        data-icon-right=${this.hasIconRight}
        data-size=${this.size}
        ?disabled=${this.disabled||this.loading}
        ontouchstart
      >
        ${this.loadingTemplate()}
        <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot>
        <wui-text variant=${e} color="inherit">
          <slot></slot>
        </wui-text>
        <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot>
      </button>
    `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){return this.loading?Mt`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:Mt``}};j2.styles=[ro,Ud,KOr];eO([Ht()],j2.prototype,"size",void 0);eO([Ht({type:Boolean})],j2.prototype,"disabled",void 0);eO([Ht({type:Boolean})],j2.prototype,"fullWidth",void 0);eO([Ht({type:Boolean})],j2.prototype,"loading",void 0);eO([Ht()],j2.prototype,"variant",void 0);eO([Ht({type:Boolean})],j2.prototype,"hasIconLeft",void 0);eO([Ht({type:Boolean})],j2.prototype,"hasIconRight",void 0);j2=eO([kr("wui-button")],j2);const PJt=oi`<svg  viewBox="0 0 48 54" fill="none">
  <path
    d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
  />
</svg>`,WOr=Kr`
  :host {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    row-gap: var(--wui-spacing-xs);
    padding: var(--wui-spacing-xs) 10px;
    background-color: var(--wui-gray-glass-002);
    border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
    position: relative;
  }

  wui-shimmer[data-type='network'] {
    border: none;
    -webkit-clip-path: var(--wui-path-network);
    clip-path: var(--wui-path-network);
  }

  svg {
    position: absolute;
    width: 48px;
    height: 54px;
    z-index: 1;
  }

  svg > path {
    stroke: var(--wui-gray-glass-010);
    stroke-width: 1px;
  }
`;var OJt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let h0e=class extends Mr{constructor(){super(...arguments),this.type="wallet"}render(){return Mt`
      ${this.shimmerTemplate()}
      <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
    `}shimmerTemplate(){return this.type==="network"?Mt` <wui-shimmer
          data-type=${this.type}
          width="48px"
          height="54px"
          borderRadius="xs"
        ></wui-shimmer>
        ${PJt}`:Mt`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};h0e.styles=[ro,Ud,WOr];OJt([Ht()],h0e.prototype,"type",void 0);h0e=OJt([kr("wui-card-select-loader")],h0e);const QOr=oi`<svg width="86" height="96" fill="none">
  <path
    d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
  />
</svg>`,qOr=Kr`
  :host {
    position: relative;
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--local-width);
    height: var(--local-height);
  }

  svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    fill: var(--wui-gray-glass-002);
  }

  svg > path {
    stroke: var(--local-stroke);
    transition: stroke var(--wui-ease-out-power-1) var(--wui-duration-lg);
  }

  wui-image {
    width: 100%;
    height: 100%;
    -webkit-clip-path: var(--local-path);
    clip-path: var(--local-path);
    background: var(--wui-gray-glass-002);
  }

  wui-icon {
    transform: translateY(-5%);
    width: var(--local-icon-size);
    height: var(--local-icon-size);
  }
`;var oae=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let g6=class extends Mr{constructor(){super(...arguments),this.size="md",this.name="uknown",this.selected=!1}render(){const e=this.size==="lg";return this.style.cssText=`
      --local-stroke: ${this.selected?"var(--wui-color-accent-100)":"var(--wui-gray-glass-010)"};
      --local-path: ${e?"var(--wui-path-network-lg)":"var(--wui-path-network)"};
      --local-width: ${e?"86px":"48px"};
      --local-height: ${e?"96px":"54px"};
      --local-icon-size: ${e?"42px":"24px"};
    `,Mt`${this.templateVisual()} ${e?QOr:PJt}`}templateVisual(){return this.imageSrc?Mt`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:Mt`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};g6.styles=[ro,qOr];oae([Ht()],g6.prototype,"size",void 0);oae([Ht()],g6.prototype,"name",void 0);oae([Ht()],g6.prototype,"imageSrc",void 0);oae([Ht({type:Boolean})],g6.prototype,"selected",void 0);g6=oae([kr("wui-network-image")],g6);const YOr=Kr`
  button {
    flex-direction: column;
    width: 76px;
    row-gap: var(--wui-spacing-xs);
    padding: var(--wui-spacing-xs) var(--wui-spacing-0);
    background-color: var(--wui-gray-glass-002);
    border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
  }

  button > wui-text {
    color: var(--wui-color-fg-100);
    max-width: var(--wui-icon-box-size-xl);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
  }

  button:disabled > wui-text {
    color: var(--wui-gray-glass-015);
  }

  [data-selected='true'] {
    background-color: var(--wui-accent-glass-020);
  }

  @media (hover: hover) and (pointer: fine) {
    [data-selected='true']:hover:enabled {
      background-color: var(--wui-accent-glass-015);
    }
  }

  [data-selected='true']:active:enabled {
    background-color: var(--wui-accent-glass-010);
  }
`;var B8=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let vM=class extends Mr{constructor(){super(...arguments),this.name="Unknown",this.type="wallet",this.imageSrc=void 0,this.disabled=!1,this.selected=!1,this.installed=!1}render(){return Mt`
      <button data-selected=${Ko(this.selected)} ?disabled=${this.disabled} ontouchstart>
        ${this.imageTemplate()}
        <wui-text variant="tiny-500" color=${this.selected?"accent-100":"inherit"}>
          ${this.name}
        </wui-text>
      </button>
    `}imageTemplate(){return this.type==="network"?Mt`
        <wui-network-image
          .selected=${this.selected}
          imageSrc=${Ko(this.imageSrc)}
          name=${this.name}
        >
        </wui-network-image>
      `:Mt`
      <wui-wallet-image
        size="md"
        imageSrc=${Ko(this.imageSrc)}
        name=${this.name}
        .installed=${this.installed}
        badgeSize="sm"
      >
      </wui-wallet-image>
    `}};vM.styles=[ro,Ud,YOr];B8([Ht()],vM.prototype,"name",void 0);B8([Ht()],vM.prototype,"type",void 0);B8([Ht()],vM.prototype,"imageSrc",void 0);B8([Ht({type:Boolean})],vM.prototype,"disabled",void 0);B8([Ht({type:Boolean})],vM.prototype,"selected",void 0);B8([Ht({type:Boolean})],vM.prototype,"installed",void 0);vM=B8([kr("wui-card-select")],vM);const JOr=Kr`
  a {
    border: 1px solid var(--wui-gray-glass-010);
    border-radius: var(--wui-border-radius-3xl);
  }

  wui-image {
    border-radius: var(--wui-border-radius-3xl);
    overflow: hidden;
  }

  a.disabled > wui-icon,
  a.disabled > wui-image {
    filter: grayscale(1);
  }

  a[data-variant='fill'] {
    color: var(--wui-color-inverse-100);
    background-color: var(--wui-color-accent-100);
  }

  a[data-variant='shade'],
  a[data-variant='shadeSmall'] {
    background-color: transparent;
    background-color: var(--wui-gray-glass-010);
    color: var(--wui-color-fg-200);
  }

  a[data-variant='success'] {
    column-gap: var(--wui-spacing-xxs);
    border: 1px solid var(--wui-success-glass-010);
    background-color: var(--wui-success-glass-010);
    color: var(--wui-color-success-100);
  }

  a[data-variant='transparent'] {
    column-gap: var(--wui-spacing-xxs);
    background-color: transparent;
    color: var(--wui-color-fg-150);
  }

  a[data-variant='transparent'],
  a[data-variant='success'],
  a[data-variant='shadeSmall'] {
    padding: 7px var(--wui-spacing-s) 7px 10px;
  }

  a[data-variant='transparent']:has(wui-text:first-child),
  a[data-variant='success']:has(wui-text:first-child),
  a[data-variant='shadeSmall']:has(wui-text:first-child) {
    padding: 7px var(--wui-spacing-s);
  }

  a[data-variant='fill'],
  a[data-variant='shade'] {
    column-gap: var(--wui-spacing-xs);
    padding: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-xxs)
      var(--wui-spacing-xs);
  }

  a[data-variant='fill']:has(wui-text:first-child),
  a[data-variant='shade']:has(wui-text:first-child) {
    padding: 9px var(--wui-spacing-m) 9px var(--wui-spacing-m);
  }

  a[data-variant='fill'] > wui-image,
  a[data-variant='shade'] > wui-image {
    width: 24px;
    height: 24px;
  }

  a[data-variant='fill'] > wui-image {
    box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
  }

  a[data-variant='shade'] > wui-image,
  a[data-variant='shadeSmall'] > wui-image {
    box-shadow: inset 0 0 0 1px var(--wui-gray-glass-010);
  }

  a[data-variant='fill'] > wui-icon,
  a[data-variant='shade'] > wui-icon {
    width: 14px;
    height: 14px;
  }

  a[data-variant='transparent'] > wui-image,
  a[data-variant='success'] > wui-image,
  a[data-variant='shadeSmall'] > wui-image {
    width: 14px;
    height: 14px;
  }

  a[data-variant='transparent'] > wui-icon,
  a[data-variant='success'] > wui-icon,
  a[data-variant='shadeSmall'] > wui-icon {
    width: 12px;
    height: 12px;
  }

  a[data-variant='fill']:focus-visible {
    background-color: var(--wui-color-accent-090);
  }

  a[data-variant='shade']:focus-visible,
  a[data-variant='shadeSmall']:focus-visible {
    background-color: var(--wui-gray-glass-015);
  }

  a[data-variant='transparent']:focus-visible {
    background-color: var(--wui-gray-glass-005);
  }

  a[data-variant='success']:focus-visible {
    background-color: var(--wui-success-glass-015);
  }

  a.disabled {
    color: var(--wui-gray-glass-015);
    background-color: var(--wui-gray-glass-015);
    pointer-events: none;
  }

  @media (hover: hover) and (pointer: fine) {
    a[data-variant='fill']:hover {
      background-color: var(--wui-color-accent-090);
    }

    a[data-variant='shade']:hover,
    a[data-variant='shadeSmall']:hover {
      background-color: var(--wui-gray-glass-015);
    }

    a[data-variant='transparent']:hover {
      background-color: var(--wui-gray-glass-005);
    }

    a[data-variant='success']:hover {
      background-color: var(--wui-success-glass-015);
    }
  }

  a[data-variant='fill']:active {
    background-color: var(--wui-color-accent-080);
  }

  a[data-variant='shade']:active,
  a[data-variant='shadeSmall']:active {
    background-color: var(--wui-gray-glass-020);
  }

  a[data-variant='transparent']:active {
    background-color: var(--wui-gray-glass-010);
  }

  a[data-variant='success']:active {
    background-color: var(--wui-success-glass-020);
  }
`;var D8=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let AM=class extends Mr{constructor(){super(...arguments),this.variant="fill",this.imageSrc=void 0,this.disabled=!1,this.icon="externalLink",this.href="",this.text=void 0}render(){const n=this.variant==="success"||this.variant==="transparent"||this.variant==="shadeSmall"?"small-600":"paragraph-600";return Mt`
      <a
        rel="noreferrer"
        target="_blank"
        href=${this.href}
        class=${this.disabled?"disabled":""}
        data-variant=${this.variant}
      >
        ${this.imageTemplate()}
        <wui-text variant=${n} color="inherit">
          ${this.title?this.title:lu.getHostName(this.href)}
        </wui-text>
        <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
      </a>
    `}imageTemplate(){return this.imageSrc?Mt`<wui-image src=${this.imageSrc}></wui-image>`:null}};AM.styles=[ro,Ud,JOr];D8([Ht()],AM.prototype,"variant",void 0);D8([Ht()],AM.prototype,"imageSrc",void 0);D8([Ht({type:Boolean})],AM.prototype,"disabled",void 0);D8([Ht()],AM.prototype,"icon",void 0);D8([Ht()],AM.prototype,"href",void 0);D8([Ht()],AM.prototype,"text",void 0);AM=D8([kr("wui-chip")],AM);const ZOr=Kr`
  :host {
    position: relative;
    display: block;
  }

  button {
    background: var(--wui-color-accent-100);
    border: 1px solid var(--wui-gray-glass-010);
    border-radius: var(--wui-border-radius-m);
    gap: var(--wui-spacing-xs);
  }

  button.loading {
    background: var(--wui-gray-glass-010);
    border: 1px solid var(--wui-gray-glass-010);
    pointer-events: none;
  }

  button:disabled {
    background-color: var(--wui-gray-glass-015);
    border: 1px solid var(--wui-gray-glass-010);
  }

  button:disabled > wui-text {
    color: var(--wui-gray-glass-015);
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-color-accent-090);
    }

    button:active:enabled {
      background-color: var(--wui-color-accent-080);
    }
  }

  button:focus-visible {
    border: 1px solid var(--wui-gray-glass-010);
    background-color: var(--wui-color-accent-090);
    -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  }

  button[data-size='sm'] {
    padding: 6.75px 10px 7.25px;
  }

  ::slotted(*) {
    transition: opacity 200ms ease-in-out;
    opacity: var(--local-opacity-100);
  }

  button > wui-text {
    transition: opacity 200ms ease-in-out;
    opacity: var(--local-opacity-100);
    color: var(--wui-color-inverse-100);
  }

  button[data-size='md'] {
    padding: 9px var(--wui-spacing-l) 9px var(--wui-spacing-l);
  }

  button[data-size='md'] + wui-text {
    padding-left: var(--wui-spacing-3xs);
  }

  @media (max-width: 500px) {
    button[data-size='md'] {
      height: 32px;
      padding: 5px 12px;
    }

    button[data-size='md'] > wui-text > slot {
      font-size: 14px !important;
    }
  }

  wui-loading-spinner {
    width: 14px;
    height: 14px;
  }

  wui-loading-spinner::slotted(svg) {
    width: 10px !important;
    height: 10px !important;
  }

  button[data-size='sm'] > wui-loading-spinner {
    width: 12px;
    height: 12px;
  }
`;var UXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Bte=class extends Mr{constructor(){super(...arguments),this.size="md",this.loading=!1}render(){const e=this.size==="md"?"paragraph-600":"small-600";return Mt`
      <button data-size=${this.size} ?disabled=${this.loading} ontouchstart>
        ${this.loadingTemplate()}
        <wui-text variant=${e} color=${this.loading?"accent-100":"inherit"}>
          <slot></slot>
        </wui-text>
      </button>
    `}loadingTemplate(){return this.loading?Mt`<wui-loading-spinner size=${this.size} color="accent-100"></wui-loading-spinner>`:null}};Bte.styles=[ro,Ud,ZOr];UXe([Ht()],Bte.prototype,"size",void 0);UXe([Ht({type:Boolean})],Bte.prototype,"loading",void 0);Bte=UXe([kr("wui-connect-button")],Bte);const XOr=Kr`
  wui-flex {
    width: 100%;
    background-color: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
  }
`;var yEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let lU=class extends Mr{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return Mt`
      <wui-flex
        justifyContent="space-between"
        alignItems="center"
        .padding=${["1xs","2l","1xs","2l"]}
      >
        <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text>
        <wui-button size="sm" variant="accent">
          ${this.buttonLabel}
          <wui-icon size="xs" color="inherit" slot="iconRight" name="chevronRight"></wui-icon>
        </wui-button>
      </wui-flex>
    `}};lU.styles=[ro,Ud,XOr];yEe([Ht({type:Boolean})],lU.prototype,"disabled",void 0);yEe([Ht()],lU.prototype,"label",void 0);yEe([Ht()],lU.prototype,"buttonLabel",void 0);lU=yEe([kr("wui-cta-button")],lU);/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const e4r=t=>t.strings===void 0;/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const BX=(t,e)=>{var r;const n=t._$AN;if(n===void 0)return!1;for(const a of n)(r=a._$AO)==null||r.call(a,e,!1),BX(a,e);return!0},f0e=t=>{let e,n;do{if((e=t._$AM)===void 0)break;n=e._$AN,n.delete(t),t=e}while((n==null?void 0:n.size)===0)},LJt=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(n===void 0)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),r4r(e)}};function t4r(t){this._$AN!==void 0?(f0e(this),this._$AM=t,LJt(this)):this._$AM=t}function n4r(t,e=!1,n=0){const r=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(r))for(let o=n;o<r.length;o++)BX(r[o],!1),f0e(r[o]);else r!=null&&(BX(r,!1),f0e(r));else BX(this,t)}const r4r=t=>{t.type==kJt.CHILD&&(t._$AP??(t._$AP=n4r),t._$AQ??(t._$AQ=t4r))};let i4r=class extends MJt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,n,r){super._$AT(e,n,r),LJt(this),this.isConnected=e._$AU}_$AO(e,n=!0){var r,a;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)==null||r.call(this):(a=this.disconnected)==null||a.call(this)),n&&(BX(this,e),f0e(this))}setValue(e){if(e4r(this._$Ct))this._$Ct._$AI(e,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=e,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}};/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const bEe=()=>new a4r;let a4r=class{};const C5e=new WeakMap,xEe=RJt(class extends i4r{render(t){return jh}update(t,[e]){var r;const n=e!==this.Y;return n&&this.Y!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=(r=t.options)==null?void 0:r.host,this.rt(this.ct=t.element)),jh}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){const e=this.ht??globalThis;let n=C5e.get(e);n===void 0&&(n=new WeakMap,C5e.set(e,n)),n.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),n.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){var t,e;return typeof this.Y=="function"?(t=C5e.get(this.ht??globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),o4r=Kr`
  :host {
    position: relative;
    width: 100%;
    display: inline-block;
    color: var(--wui-color-fg-275);
  }

  input {
    width: 100%;
    border-radius: var(--wui-border-radius-xs);
    border: 1px solid var(--wui-gray-glass-005);
    background: var(--wui-gray-glass-005);
    font-size: var(--wui-font-size-paragraph);
    font-weight: var(--wui-font-weight-light);
    letter-spacing: var(--wui-letter-spacing-paragraph);
    color: var(--wui-color-fg-100);
    transition: all var(--wui-ease-inout-power-1) var(--wui-duration-lg);
    caret-color: var(--wui-color-accent-100);
  }

  input:disabled {
    cursor: not-allowed;
    border: 1px solid var(--wui-gray-glass-010);
  }

  input:disabled::placeholder,
  input:disabled + wui-icon {
    color: var(--wui-color-fg-300);
  }

  input::placeholder {
    color: var(--wui-color-fg-275);
  }

  input:focus:enabled {
    transition: all var(--wui-ease-out-power-2) var(--wui-duration-sm);
    background-color: var(--wui-gray-glass-010);
    border: 1px solid var(--wui-color-accent-100);
    -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  }

  input:hover:enabled {
    background-color: var(--wui-gray-glass-010);
  }

  wui-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .wui-size-sm {
    padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);
  }

  wui-icon + .wui-size-sm {
    padding: 9px var(--wui-spacing-m) 10px 36px;
  }

  wui-icon[data-input='sm'] {
    left: var(--wui-spacing-s);
  }

  .wui-size-md {
    padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);
  }

  wui-icon + .wui-size-md,
  wui-loading-spinner + .wui-size-md {
    padding: 10.5px var(--wui-spacing-3xl) 10.5px 40px;
  }

  wui-icon[data-input='md'] {
    left: var(--wui-spacing-l);
  }

  input:placeholder-shown ~ ::slotted(wui-input-element),
  input:placeholder-shown ~ ::slotted(wui-icon) {
    opacity: 0;
    pointer-events: none;
  }

  ::slotted(wui-input-element),
  ::slotted(wui-icon) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all var(--wui-ease-in-power-2) var(--wui-duration-md);
  }

  ::slotted(wui-input-element) {
    right: var(--wui-spacing-m);
  }

  ::slotted(wui-icon) {
    right: 0px;
  }
`;var tO=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let H2=class extends Mr{constructor(){super(...arguments),this.inputElementRef=bEe(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text"}render(){const e=`wui-size-${this.size}`;return Mt` ${this.templateIcon()}
      <input
        ${xEe(this.inputElementRef)}
        class=${e}
        type=${this.type}
        enterkeyhint=${Ko(this.enterKeyHint)}
        ?disabled=${this.disabled}
        placeholder=${this.placeholder}
        @input=${this.dispatchInputChangeEvent.bind(this)}
        value=${Ko(this.value)}
      />
      <slot></slot>`}templateIcon(){return this.icon?Mt`<wui-icon
        data-input=${this.size}
        size="sm"
        color="inherit"
        name=${this.icon}
      ></wui-icon>`:null}dispatchInputChangeEvent(){var e;this.dispatchEvent(new CustomEvent("inputChange",{detail:(e=this.inputElementRef.value)==null?void 0:e.value,bubbles:!0,composed:!0}))}};H2.styles=[ro,Ud,o4r];tO([Ht()],H2.prototype,"size",void 0);tO([Ht()],H2.prototype,"icon",void 0);tO([Ht({type:Boolean})],H2.prototype,"disabled",void 0);tO([Ht()],H2.prototype,"placeholder",void 0);tO([Ht()],H2.prototype,"type",void 0);tO([Ht()],H2.prototype,"keyHint",void 0);tO([Ht()],H2.prototype,"value",void 0);H2=tO([kr("wui-input-text")],H2);const s4r=Kr`
  :host {
    position: relative;
    display: inline-block;
  }

  wui-text {
    margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
  }
`;var EEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let cU=class extends Mr{constructor(){super(...arguments),this.disabled=!1}render(){return Mt`
      <wui-input-text
        placeholder="Email"
        icon="mail"
        size="md"
        .disabled=${this.disabled}
        .value=${this.value}
        data-testid="wui-email-input"
      ></wui-input-text>
      ${this.templateError()}
    `}templateError(){return this.errorMessage?Mt`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};cU.styles=[ro,s4r];EEe([Ht()],cU.prototype,"errorMessage",void 0);EEe([Ht({type:Boolean})],cU.prototype,"disabled",void 0);EEe([Ht()],cU.prototype,"value",void 0);cU=EEe([kr("wui-email-input")],cU);const l4r=Kr`
  button {
    border-radius: var(--wui-border-radius-xxs);
    color: var(--wui-color-fg-100);
    padding: var(--wui-spacing-2xs);
  }

  @media (max-width: 700px) {
    button {
      padding: var(--wui-spacing-s);
    }
  }

  button > wui-icon {
    pointer-events: none;
  }

  button:disabled > wui-icon {
    color: var(--wui-color-bg-300) !important;
  }

  button:disabled {
    background-color: transparent;
  }
`;var sae=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let v6=class extends Mr{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){return Mt`
      <button ?disabled=${this.disabled} ontouchstart>
        <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
      </button>
    `}};v6.styles=[ro,Ud,FXe,l4r];sae([Ht()],v6.prototype,"size",void 0);sae([Ht({type:Boolean})],v6.prototype,"disabled",void 0);sae([Ht()],v6.prototype,"icon",void 0);sae([Ht()],v6.prototype,"iconColor",void 0);v6=sae([kr("wui-icon-link")],v6);const c4r=Kr`
  button {
    background-color: var(--wui-color-fg-300);
    border-radius: var(--wui-border-radius-4xs);
    width: 16px;
    height: 16px;
  }

  button:disabled {
    background-color: var(--wui-color-bg-300);
  }

  wui-icon {
    color: var(--wui-color-bg-200) !important;
  }

  button:focus-visible {
    background-color: var(--wui-color-fg-250);
    border: 1px solid var(--wui-color-accent-100);
  }

  button:active:enabled {
    background-color: var(--wui-color-fg-225);
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-color-fg-250);
    }
  }
`;var BJt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let p0e=class extends Mr{constructor(){super(...arguments),this.icon="copy"}render(){return Mt`
      <button>
        <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon>
      </button>
    `}};p0e.styles=[ro,Ud,c4r];BJt([Ht()],p0e.prototype,"icon",void 0);p0e=BJt([kr("wui-input-element")],p0e);const u4r=Kr`
  :host {
    position: relative;
    display: inline-block;
  }

  input {
    width: 50px;
    height: 50px;
    background: var(--wui-gray-glass-010);
    border-radius: var(--wui-border-radius-xs);
    border: 1px solid var(--wui-gray-glass-005);
    font-family: var(--wui-font-family);
    font-size: var(--wui-font-size-large);
    font-weight: var(--wui-font-weight-regular);
    letter-spacing: var(--wui-letter-spacing-large);
    text-align: center;
    color: var(--wui-color-fg-100);
    caret-color: var(--wui-color-accent-100);
    transition: all var(--wui-ease-inout-power-1) var(--wui-duration-lg);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    padding: 0px;
  }

  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  input[type='number'] {
    -moz-appearance: textfield;
  }

  input:disabled {
    cursor: not-allowed;
    border: 1px solid var(--wui-gray-glass-010);
    background: var(--wui-gray-glass-005);
  }

  input:focus:enabled {
    transition: all var(--wui-ease-out-power-2) var(--wui-duration-sm);
    background-color: var(--wui-gray-glass-015);
    border: 1px solid var(--wui-color-accent-100);
    -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
    box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  }
  @media (hover: hover) and (pointer: fine) {
    input:hover:enabled {
      background-color: var(--wui-gray-glass-015);
    }
  }
`;var zXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Dte=class extends Mr{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return Mt`<input
      type="number"
      maxlength="1"
      inputmode="numeric"
      autofocus
      ?disabled=${this.disabled}
      value=${this.value}
    /> `}};Dte.styles=[ro,Ud,u4r];zXe([Ht({type:Boolean})],Dte.prototype,"disabled",void 0);zXe([Ht({type:String})],Dte.prototype,"value",void 0);Dte=zXe([kr("wui-input-numeric")],Dte);const d4r=Kr`
  button {
    padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
    border-radius: var(--wui-border-radius-3xs);
    background-color: transparent;
    color: var(--wui-color-accent-100);
  }

  button:disabled {
    background-color: transparent;
    color: var(--wui-gray-glass-015);
  }
`;var GXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let $te=class extends Mr{constructor(){super(...arguments),this.disabled=!1,this.color="inherit"}render(){return Mt`
      <button ?disabled=${this.disabled} ontouchstart>
        <slot name="iconLeft"></slot>
        <wui-text variant="small-600" color=${this.color}>
          <slot></slot>
        </wui-text>
        <slot name="iconRight"></slot>
      </button>
    `}};$te.styles=[ro,Ud,d4r];GXe([Ht({type:Boolean})],$te.prototype,"disabled",void 0);GXe([Ht()],$te.prototype,"color",void 0);$te=GXe([kr("wui-link")],$te);const h4r=Kr`
  button {
    column-gap: var(--wui-spacing-s);
    padding: 11px 18px 11px var(--wui-spacing-s);
    width: 100%;
    background-color: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-250);
  }

  button[data-iconvariant='square'],
  button[data-iconvariant='square-blue'] {
    padding: 6px 18px 6px 9px;
  }

  button > wui-flex {
    flex: 1;
  }

  button > wui-image {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 2px var(--wui-gray-glass-005);
    border-radius: var(--wui-border-radius-3xl);
  }

  button > wui-icon {
    width: 36px;
    height: 36px;
  }

  button > wui-icon-box[data-variant='blue'] {
    box-shadow: 0 0 0 2px var(--wui-accent-glass-005);
  }

  button > wui-icon-box[data-variant='overlay'] {
    box-shadow: 0 0 0 2px var(--wui-gray-glass-005);
  }

  button > wui-icon-box[data-variant='square-blue'] {
    border-radius: var(--wui-border-radius-3xs);
    position: relative;
    border: none;
    width: 36px;
    height: 36px;
  }

  button > wui-icon-box[data-variant='square-blue']::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: inherit;
    border: 1px solid var(--wui-accent-glass-010);
    pointer-events: none;
  }

  button > wui-icon:last-child {
    width: 14px;
    height: 14px;
  }

  button:disabled {
    background-color: var(--wui-gray-glass-015);
    color: var(--wui-gray-glass-015);
  }

  button[data-loading='true'] > wui-icon {
    transition: opacity 200ms ease-in-out;
    opacity: 0;
  }

  wui-loading-spinner {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }
`;var fC=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Wx=class extends Mr{constructor(){super(...arguments),this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return Mt`
      <button
        ?disabled=${this.loading?!0:!!this.disabled}
        data-loading=${this.loading}
        data-iconvariant=${Ko(this.iconVariant)}
        ontouchstart
      >
        ${this.loadingTemplate()} ${this.visualTemplate()}
        <wui-flex gap="3xs">
          <slot></slot>
        </wui-flex>
        ${this.chevronTemplate()}
      </button>
    `}visualTemplate(){if(this.variant==="image"&&this.imageSrc)return Mt`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if(this.iconVariant==="square"&&this.icon&&this.variant==="icon")return Mt`<wui-icon name=${this.icon}></wui-icon>`;if(this.variant==="icon"&&this.icon&&this.iconVariant){const e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",n=this.iconVariant==="square-blue"?"mdl":"md",r=this.iconSize?this.iconSize:n;return Mt`
        <wui-icon-box
          data-variant=${this.iconVariant}
          icon=${this.icon}
          iconSize=${r}
          background="transparent"
          iconColor=${e}
          backgroundColor=${e}
          size=${n}
        ></wui-icon-box>
      `}return null}loadingTemplate(){return this.loading?Mt`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:Mt``}chevronTemplate(){return this.chevron?Mt`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};Wx.styles=[ro,Ud,h4r];fC([Ht()],Wx.prototype,"icon",void 0);fC([Ht()],Wx.prototype,"iconSize",void 0);fC([Ht()],Wx.prototype,"variant",void 0);fC([Ht()],Wx.prototype,"iconVariant",void 0);fC([Ht({type:Boolean})],Wx.prototype,"disabled",void 0);fC([Ht()],Wx.prototype,"imageSrc",void 0);fC([Ht()],Wx.prototype,"alt",void 0);fC([Ht({type:Boolean})],Wx.prototype,"chevron",void 0);fC([Ht({type:Boolean})],Wx.prototype,"loading",void 0);Wx=fC([kr("wui-list-item")],Wx);var vHe;(function(t){t.approve="approved",t.bought="bought",t.borrow="borrowed",t.burn="burnt",t.cancel="canceled",t.claim="claimed",t.deploy="deployed",t.deposit="deposited",t.execute="executed",t.mint="minted",t.receive="received",t.repay="repaid",t.send="sent",t.sell="sold",t.stake="staked",t.trade="swapped",t.unstake="unstaked",t.withdraw="withdrawn"})(vHe||(vHe={}));const f4r=Kr`
  :host > wui-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    box-shadow: inset 0 0 0 1px var(--wui-gray-glass-005);
    background-color: var(--wui-gray-glass-005);
  }

  :host > wui-flex wui-image {
    display: block;
    z-index: -1;
  }

  :host > wui-flex,
  :host > wui-flex wui-image,
  .swap-images-container,
  .swap-images-container.nft,
  wui-image.nft {
    border-top-left-radius: var(--local-left-border-radius);
    border-top-right-radius: var(--local-right-border-radius);
    border-bottom-left-radius: var(--local-left-border-radius);
    border-bottom-right-radius: var(--local-right-border-radius);
  }

  wui-icon {
    width: 20px;
    height: 20px;
  }

  wui-icon-box {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(20%, 20%);
  }

  .swap-images-container {
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
  }

  .swap-images-container wui-image:first-child {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 0;
    left: 0%;
    clip-path: inset(0px calc(50% + 2px) 0px 0%);
  }

  .swap-images-container wui-image:last-child {
    clip-path: inset(0px 0px 0px calc(50% + 2px));
  }
`;var $8=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let yM=class extends Mr{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){const[e,n]=this.images,r=(e==null?void 0:e.type)==="NFT",a=n!=null&&n.url?n.type==="NFT":r,o=r?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)",s=a?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)";return this.style.cssText=`
    --local-left-border-radius: ${o};
    --local-right-border-radius: ${s};
    `,Mt`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){const[e,n]=this.images,r=e==null?void 0:e.type;return this.images.length===2&&(e!=null&&e.url||n!=null&&n.url)?Mt`<div class="swap-images-container">
        ${e!=null&&e.url?Mt`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:null}
        ${n!=null&&n.url?Mt`<wui-image src=${n.url} alt="Transaction image"></wui-image>`:null}
      </div>`:e!=null&&e.url?Mt`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:r==="NFT"?Mt`<wui-icon size="inherit" color="fg-200" name="nftPlaceholder"></wui-icon>`:Mt`<wui-icon size="inherit" color="fg-200" name="coinPlaceholder"></wui-icon>`}templateIcon(){let e="accent-100",n;return n=this.getIcon(),this.status&&(e=this.getStatusColor()),n?Mt`
      <wui-icon-box
        size="xxs"
        iconColor=${e}
        backgroundColor=${e}
        background="opaque"
        icon=${n}
        ?border=${!0}
        borderColor="wui-color-bg-125"
      ></wui-icon-box>
    `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():this.type==="trade"?"swapHorizontalBold":this.type==="approve"?"checkmark":this.type==="cancel"?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};yM.styles=[f4r];$8([Ht()],yM.prototype,"type",void 0);$8([Ht()],yM.prototype,"status",void 0);$8([Ht()],yM.prototype,"direction",void 0);$8([Ht({type:Boolean})],yM.prototype,"onlyDirectionIcon",void 0);$8([Ht({type:Array})],yM.prototype,"images",void 0);$8([Ht({type:Object})],yM.prototype,"secondImage",void 0);yM=$8([kr("wui-transaction-visual")],yM);const p4r=Kr`
  :host > wui-flex:first-child {
    align-items: center;
    column-gap: var(--wui-spacing-s);
    padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs);
    width: 100%;
  }

  :host > wui-flex:first-child wui-text:nth-child(1) {
    text-transform: capitalize;
  }

  wui-transaction-visual {
    width: 40px;
    height: 40px;
  }

  wui-flex {
    flex: 1;
  }

  :host wui-flex wui-flex {
    overflow: hidden;
  }

  :host .description-container wui-text span {
    word-break: break-all;
  }

  :host .description-container wui-text {
    overflow: hidden;
  }

  :host .description-separator-icon {
    margin: 0px 6px;
  }

  :host wui-text > span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
`;var nO=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let U2=class extends Mr{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[]}render(){return Mt`
      <wui-flex>
        <wui-transaction-visual
          .status=${this.status}
          direction=${Ko(this.direction)}
          type=${this.type}
          onlyDirectionIcon=${Ko(this.onlyDirectionIcon)}
          .images=${this.images}
        ></wui-transaction-visual>
        <wui-flex flexDirection="column" gap="3xs">
          <wui-text variant="paragraph-600" color="fg-100">
            ${vHe[this.type]}
          </wui-text>
          <wui-flex class="description-container">
            ${this.templateDescription()} ${this.templateSecondDescription()}
          </wui-flex>
        </wui-flex>
        <wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text>
      </wui-flex>
    `}templateDescription(){var n;const e=(n=this.descriptions)==null?void 0:n[0];return e?Mt`
          <wui-text variant="small-500" color="fg-200">
            <span>${e}</span>
          </wui-text>
        `:null}templateSecondDescription(){var n;const e=(n=this.descriptions)==null?void 0:n[1];return e?Mt`
          <wui-icon class="description-separator-icon" size="xxs" name="arrowRight"></wui-icon>
          <wui-text variant="small-400" color="fg-200">
            <span>${e}</span>
          </wui-text>
        `:null}};U2.styles=[ro,p4r];nO([Ht()],U2.prototype,"type",void 0);nO([Ht({type:Array})],U2.prototype,"descriptions",void 0);nO([Ht()],U2.prototype,"date",void 0);nO([Ht({type:Boolean})],U2.prototype,"onlyDirectionIcon",void 0);nO([Ht()],U2.prototype,"status",void 0);nO([Ht()],U2.prototype,"direction",void 0);nO([Ht({type:Array})],U2.prototype,"images",void 0);U2=nO([kr("wui-transaction-list-item")],U2);const m4r=Kr`
  :host > wui-flex:first-child {
    column-gap: var(--wui-spacing-s);
    padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
    width: 100%;
  }

  wui-flex {
    display: flex;
    flex: 1;
  }
`;var g4r=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let AHe=class extends Mr{render(){return Mt`
      <wui-flex alignItems="center">
        <wui-shimmer width="40px" height="40px"></wui-shimmer>
        <wui-flex flexDirection="column" gap="2xs">
          <wui-shimmer width="72px" height="16px" borderRadius="4xs"></wui-shimmer>
          <wui-shimmer width="148px" height="14px" borderRadius="4xs"></wui-shimmer>
        </wui-flex>
        <wui-shimmer width="24px" height="12px" borderRadius="5xs"></wui-shimmer>
      </wui-flex>
    `}};AHe.styles=[ro,m4r];AHe=g4r([kr("wui-transaction-list-item-loader")],AHe);const v4r=Kr`
  :host {
    display: block;
    padding: 3.5px 5px !important;
    border-radius: var(--wui-border-radius-5xs);
  }

  :host([data-variant='main']) {
    background-color: var(--wui-accent-glass-015);
    color: var(--wui-color-accent-100);
  }

  :host([data-variant='shade']) {
    background-color: var(--wui-gray-glass-010);
    color: var(--wui-color-fg-200);
  }

  :host([data-variant='success']) {
    background-color: var(--wui-icon-box-bg-success-100);
    color: var(--wui-color-success-100);
  }

  :host([data-variant='error']) {
    background-color: var(--wui-icon-box-bg-error-100);
    color: var(--wui-color-error-100);
  }
`;var DJt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let m0e=class extends Mr{constructor(){super(...arguments),this.variant="main"}render(){return this.dataset.variant=this.variant,Mt`
      <wui-text data-variant=${this.variant} variant="micro-700" color="inherit">
        <slot></slot>
      </wui-text>
    `}};m0e.styles=[ro,v4r];DJt([Ht()],m0e.prototype,"variant",void 0);m0e=DJt([kr("wui-tag")],m0e);const A4r=Kr`
  button {
    column-gap: var(--wui-spacing-s);
    padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
    width: 100%;
    background-color: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-100);
  }

  button > wui-text:nth-child(2) {
    display: flex;
    flex: 1;
  }

  wui-icon {
    color: var(--wui-color-fg-200) !important;
  }

  button:disabled {
    background-color: var(--wui-gray-glass-015);
    color: var(--wui-gray-glass-015);
  }

  button:disabled > wui-tag {
    background-color: var(--wui-gray-glass-010);
    color: var(--wui-color-fg-300);
  }
`;var zw=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Wy=class extends Mr{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return Mt`
      <button ?disabled=${this.disabled} ontouchstart>
        ${this.templateAllWallets()} ${this.templateWalletImage()}
        <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text>
        ${this.templateStatus()}
      </button>
    `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?Mt` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?Mt` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?Mt`<wui-wallet-image
        size="sm"
        imageSrc=${this.imageSrc}
        name=${this.name}
        .installed=${this.installed}
      ></wui-wallet-image>`:!this.showAllWallets&&!this.imageSrc?Mt`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`:null}templateStatus(){return this.tagLabel&&this.tagVariant?Mt`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?Mt`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};Wy.styles=[ro,Ud,A4r];zw([Ht({type:Array})],Wy.prototype,"walletImages",void 0);zw([Ht()],Wy.prototype,"imageSrc",void 0);zw([Ht()],Wy.prototype,"name",void 0);zw([Ht()],Wy.prototype,"tagLabel",void 0);zw([Ht()],Wy.prototype,"tagVariant",void 0);zw([Ht()],Wy.prototype,"icon",void 0);zw([Ht()],Wy.prototype,"walletIcon",void 0);zw([Ht({type:Boolean})],Wy.prototype,"installed",void 0);zw([Ht({type:Boolean})],Wy.prototype,"disabled",void 0);zw([Ht({type:Boolean})],Wy.prototype,"showAllWallets",void 0);Wy=zw([kr("wui-list-wallet")],Wy);const y4r=Kr`
  :host {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-gray-glass-010);
    overflow: hidden;
  }

  wui-icon {
    width: 100%;
    height: 100%;
  }
`;var $Jt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let g0e=class extends Mr{constructor(){super(...arguments),this.logo="google"}render(){return Mt`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `}};g0e.styles=[ro,y4r];$Jt([Ht()],g0e.prototype,"logo",void 0);g0e=$Jt([kr("wui-logo")],g0e);const b4r=Kr`
  :host {
    display: block;
  }

  button {
    width: 50px;
    height: 50px;
    background: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
  }
`;var VXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Fte=class extends Mr{constructor(){super(...arguments),this.logo="google",this.disabled=!1}render(){return Mt`
      <button ?disabled=${this.disabled} ontouchstart>
        <wui-logo logo=${this.logo}></wui-logo>
      </button>
    `}};Fte.styles=[ro,Ud,b4r];VXe([Ht()],Fte.prototype,"logo",void 0);VXe([Ht({type:Boolean})],Fte.prototype,"disabled",void 0);Fte=VXe([kr("wui-logo-select")],Fte);const x4r=Kr`
  :host {
    display: block;
  }

  button {
    border-radius: var(--wui-border-radius-3xl);
    display: flex;
    gap: var(--wui-spacing-xs);
    padding: var(--wui-spacing-2xs) var(--wui-spacing-s) var(--wui-spacing-2xs)
      var(--wui-spacing-xs);
    border: 1px solid var(--wui-gray-glass-010);
    background-color: var(--wui-gray-glass-005);
    color: var(--wui-color-fg-100);
  }

  button:disabled {
    border: 1px solid var(--wui-gray-glass-005);
    background-color: var(--wui-gray-glass-015);
    color: var(--wui-gray-glass-015);
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-gray-glass-010);
    }

    button:active:enabled {
      background-color: var(--wui-gray-glass-015);
    }
  }

  wui-image,
  wui-icon-box {
    border-radius: var(--wui-border-radius-3xl);
    width: 24px;
    height: 24px;
    box-shadow: 0 0 0 2px var(--wui-gray-glass-005);
  }
`;var KXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let jte=class extends Mr{constructor(){super(...arguments),this.imageSrc=void 0,this.disabled=!1}render(){return Mt`
      <button ?disabled=${this.disabled}>
        ${this.visualTemplate()}
        <wui-text variant="paragraph-600" color="inherit">
          <slot></slot>
        </wui-text>
      </button>
    `}visualTemplate(){return this.imageSrc?Mt`<wui-image src=${this.imageSrc}></wui-image>`:Mt`
      <wui-icon-box
        size="sm"
        iconColor="inverse-100"
        backgroundColor="fg-100"
        icon="networkPlaceholder"
      ></wui-icon-box>
    `}};jte.styles=[ro,Ud,x4r];KXe([Ht()],jte.prototype,"imageSrc",void 0);KXe([Ht({type:Boolean})],jte.prototype,"disabled",void 0);jte=KXe([kr("wui-network-button")],jte);const E4r=Kr`
  :host {
    position: relative;
    display: block;
  }
`;var SEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let uU=class extends Mr{constructor(){super(...arguments),this.length=6,this.otp="",this.values=Array.from({length:this.length}).map(()=>""),this.numerics=[],this.shouldInputBeEnabled=e=>this.values.slice(0,e).every(r=>r!==""),this.handleKeyDown=(e,n)=>{const r=e.target,a=this.getInputElement(r),o=["ArrowLeft","ArrowRight","Shift","Delete"];if(!a)return;o.includes(e.key)&&e.preventDefault();const s=a.selectionStart;switch(e.key){case"ArrowLeft":s&&a.setSelectionRange(s+1,s+1),this.focusInputField("prev",n);break;case"ArrowRight":this.focusInputField("next",n);break;case"Shift":this.focusInputField("next",n);break;case"Delete":a.value===""?this.focusInputField("prev",n):this.updateInput(a,n,"");break;case"Backspace":a.value===""?this.focusInputField("prev",n):this.updateInput(a,n,"");break}},this.focusInputField=(e,n)=>{if(e==="next"){const r=n+1;if(!this.shouldInputBeEnabled(r))return;const a=this.numerics[r<this.length?r:n],o=a?this.getInputElement(a):void 0;o&&(o.disabled=!1,o.focus())}if(e==="prev"){const r=n-1,a=this.numerics[r>-1?r:n],o=a?this.getInputElement(a):void 0;o&&o.focus()}}}firstUpdated(){var n,r;this.otp&&(this.values=this.otp.split(""));const e=(n=this.shadowRoot)==null?void 0:n.querySelectorAll("wui-input-numeric");e&&(this.numerics=Array.from(e)),(r=this.numerics[0])==null||r.focus()}render(){return Mt`
      <wui-flex gap="xxs" data-testid="wui-otp-input">
        ${Array.from({length:this.length}).map((e,n)=>Mt`
            <wui-input-numeric
              @input=${r=>this.handleInput(r,n)}
              @keydown=${r=>this.handleKeyDown(r,n)}
              .disabled=${!this.shouldInputBeEnabled(n)}
              .value=${this.values[n]||""}
            >
            </wui-input-numeric>
          `)}
      </wui-flex>
    `}updateInput(e,n,r){const a=this.numerics[n],o=e||(a?this.getInputElement(a):void 0);o&&(o.value=r,this.values=this.values.map((s,l)=>l===n?r:s))}handleInput(e,n){const r=e.target,a=this.getInputElement(r);if(a){const o=a.value;e.inputType==="insertFromPaste"?this.handlePaste(a,o,n):lu.isNumber(o)&&e.data?(this.updateInput(a,n,e.data),this.focusInputField("next",n)):this.updateInput(a,n,"")}this.dispatchInputChangeEvent()}handlePaste(e,n,r){const a=n[0];if(a&&lu.isNumber(a)){this.updateInput(e,r,a);const s=n.substring(1);if(r+1<this.length&&s.length){const l=this.numerics[r+1],c=l?this.getInputElement(l):void 0;c&&this.handlePaste(c,s,r+1)}else this.focusInputField("next",r)}else this.updateInput(e,r,"")}getInputElement(e){var n;return(n=e.shadowRoot)!=null&&n.querySelector("input")?e.shadowRoot.querySelector("input"):null}dispatchInputChangeEvent(){const e=this.values.join("");this.dispatchEvent(new CustomEvent("inputChange",{detail:e,bubbles:!0,composed:!0}))}};uU.styles=[ro,E4r];SEe([Ht({type:Number})],uU.prototype,"length",void 0);SEe([Ht({type:String})],uU.prototype,"otp",void 0);SEe([Bi()],uU.prototype,"values",void 0);uU=SEe([kr("wui-otp")],uU);var lae={},S4r=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},FJt={},rb={};let WXe;const w4r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];rb.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};rb.getSymbolTotalCodewords=function(e){return w4r[e]};rb.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};rb.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');WXe=e};rb.isKanjiModeEnabled=function(){return typeof WXe<"u"};rb.toSJIS=function(e){return WXe(e)};var wEe={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,a){if(t.isValid(r))return r;try{return e(r)}catch{return a}}})(wEe);function jJt(){this.buffer=[],this.length=0}jJt.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let n=0;n<e;n++)this.putBit((t>>>e-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var _4r=jJt;function cae(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}cae.prototype.set=function(t,e,n,r){const a=t*this.size+e;this.data[a]=n,r&&(this.reservedBit[a]=!0)};cae.prototype.get=function(t,e){return this.data[t*this.size+e]};cae.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n};cae.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var T4r=cae,HJt={};(function(t){const e=rb.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*a-2))*2,l=[o-7];for(let c=1;c<a-1;c++)l[c]=l[c-1]-s;return l.push(6),l.reverse()},t.getPositions=function(r){const a=[],o=t.getRowColCoords(r),s=o.length;for(let l=0;l<s;l++)for(let c=0;c<s;c++)l===0&&c===0||l===0&&c===s-1||l===s-1&&c===0||a.push([o[l],o[c]]);return a}})(HJt);var UJt={};const C4r=rb.getSymbolSize,U0t=7;UJt.getPositions=function(e){const n=C4r(e);return[[0,0],[n-U0t,0],[0,n-U0t]]};var zJt={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},t.from=function(a){return t.isValid(a)?parseInt(a,10):void 0},t.getPenaltyN1=function(a){const o=a.size;let s=0,l=0,c=0,u=null,d=null;for(let h=0;h<o;h++){l=c=0,u=d=null;for(let f=0;f<o;f++){let p=a.get(h,f);p===u?l++:(l>=5&&(s+=e.N1+(l-5)),u=p,l=1),p=a.get(f,h),p===d?c++:(c>=5&&(s+=e.N1+(c-5)),d=p,c=1)}l>=5&&(s+=e.N1+(l-5)),c>=5&&(s+=e.N1+(c-5))}return s},t.getPenaltyN2=function(a){const o=a.size;let s=0;for(let l=0;l<o-1;l++)for(let c=0;c<o-1;c++){const u=a.get(l,c)+a.get(l,c+1)+a.get(l+1,c)+a.get(l+1,c+1);(u===4||u===0)&&s++}return s*e.N2},t.getPenaltyN3=function(a){const o=a.size;let s=0,l=0,c=0;for(let u=0;u<o;u++){l=c=0;for(let d=0;d<o;d++)l=l<<1&2047|a.get(u,d),d>=10&&(l===1488||l===93)&&s++,c=c<<1&2047|a.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*e.N3},t.getPenaltyN4=function(a){let o=0;const s=a.data.length;for(let c=0;c<s;c++)o+=a.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function n(r,a,o){switch(r){case t.Patterns.PATTERN000:return(a+o)%2===0;case t.Patterns.PATTERN001:return a%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(a+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return a*o%2+a*o%3===0;case t.Patterns.PATTERN110:return(a*o%2+a*o%3)%2===0;case t.Patterns.PATTERN111:return(a*o%3+(a+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(a,o){const s=o.size;for(let l=0;l<s;l++)for(let c=0;c<s;c++)o.isReserved(c,l)||o.xor(c,l,n(a,c,l))},t.getBestMask=function(a,o){const s=Object.keys(t.Patterns).length;let l=0,c=1/0;for(let u=0;u<s;u++){o(u),t.applyMask(u,a);const d=t.getPenaltyN1(a)+t.getPenaltyN2(a)+t.getPenaltyN3(a)+t.getPenaltyN4(a);t.applyMask(u,a),d<c&&(c=d,l=u)}return l}})(zJt);var _Ee={};const $3=wEe,dce=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],hce=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];_Ee.getBlocksCount=function(e,n){switch(n){case $3.L:return dce[(e-1)*4+0];case $3.M:return dce[(e-1)*4+1];case $3.Q:return dce[(e-1)*4+2];case $3.H:return dce[(e-1)*4+3];default:return}};_Ee.getTotalCodewordsCount=function(e,n){switch(n){case $3.L:return hce[(e-1)*4+0];case $3.M:return hce[(e-1)*4+1];case $3.Q:return hce[(e-1)*4+2];case $3.H:return hce[(e-1)*4+3];default:return}};var GJt={},TEe={};const DX=new Uint8Array(512),v0e=new Uint8Array(256);(function(){let e=1;for(let n=0;n<255;n++)DX[n]=e,v0e[e]=n,e<<=1,e&256&&(e^=285);for(let n=255;n<512;n++)DX[n]=DX[n-255]})();TEe.log=function(e){if(e<1)throw new Error("log("+e+")");return v0e[e]};TEe.exp=function(e){return DX[e]};TEe.mul=function(e,n){return e===0||n===0?0:DX[v0e[e]+v0e[n]]};(function(t){const e=TEe;t.mul=function(r,a){const o=new Uint8Array(r.length+a.length-1);for(let s=0;s<r.length;s++)for(let l=0;l<a.length;l++)o[s+l]^=e.mul(r[s],a[l]);return o},t.mod=function(r,a){let o=new Uint8Array(r);for(;o.length-a.length>=0;){const s=o[0];for(let c=0;c<a.length;c++)o[c]^=e.mul(a[c],s);let l=0;for(;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},t.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let o=0;o<r;o++)a=t.mul(a,new Uint8Array([1,e.exp(o)]));return a}})(GJt);const VJt=GJt;function QXe(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}QXe.prototype.initialize=function(e){this.degree=e,this.genPoly=VJt.generateECPolynomial(this.degree)};QXe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const r=VJt.mod(n,this.genPoly),a=this.degree-r.length;if(a>0){const o=new Uint8Array(this.degree);return o.set(r,a),o}return r};var k4r=QXe,KJt={},rO={},qXe={};qXe.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var pC={};const WJt="[0-9]+",R4r="[A-Z $%*+\\-./:]+";let Hte="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Hte=Hte.replace(/u/g,"\\u");const M4r="(?:(?![A-Z0-9 $%*+\\-./:]|"+Hte+`)(?:.|[\r
]))+`;pC.KANJI=new RegExp(Hte,"g");pC.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");pC.BYTE=new RegExp(M4r,"g");pC.NUMERIC=new RegExp(WJt,"g");pC.ALPHANUMERIC=new RegExp(R4r,"g");const N4r=new RegExp("^"+Hte+"$"),I4r=new RegExp("^"+WJt+"$"),P4r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");pC.testKanji=function(e){return N4r.test(e)};pC.testNumeric=function(e){return I4r.test(e)};pC.testAlphanumeric=function(e){return P4r.test(e)};(function(t){const e=qXe,n=pC;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+a)}}t.from=function(o,s){if(t.isValid(o))return o;try{return r(o)}catch{return s}}})(rO);(function(t){const e=rb,n=_Ee,r=wEe,a=rO,o=qXe,s=7973,l=e.getBCHDigit(s);function c(f,p,m){for(let g=1;g<=40;g++)if(p<=t.getCapacity(g,m,f))return g}function u(f,p){return a.getCharCountIndicator(f,p)+4}function d(f,p){let m=0;return f.forEach(function(g){const v=u(g.mode,p);m+=v+g.getBitsLength()}),m}function h(f,p){for(let m=1;m<=40;m++)if(d(f,m)<=t.getCapacity(m,p,a.MIXED))return m}t.from=function(p,m){return o.isValid(p)?parseInt(p,10):m},t.getCapacity=function(p,m,g){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=a.BYTE);const v=e.getSymbolTotalCodewords(p),A=n.getTotalCodewordsCount(p,m),y=(v-A)*8;if(g===a.MIXED)return y;const S=y-u(g,p);switch(g){case a.NUMERIC:return Math.floor(S/10*3);case a.ALPHANUMERIC:return Math.floor(S/11*2);case a.KANJI:return Math.floor(S/13);case a.BYTE:default:return Math.floor(S/8)}},t.getBestVersionForData=function(p,m){let g;const v=r.from(m,r.M);if(Array.isArray(p)){if(p.length>1)return h(p,v);if(p.length===0)return 1;g=p[0]}else g=p;return c(g.mode,g.getLength(),v)},t.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;e.getBCHDigit(m)-l>=0;)m^=s<<e.getBCHDigit(m)-l;return p<<12|m}})(KJt);var QJt={};const yHe=rb,qJt=1335,O4r=21522,z0t=yHe.getBCHDigit(qJt);QJt.getEncodedBits=function(e,n){const r=e.bit<<3|n;let a=r<<10;for(;yHe.getBCHDigit(a)-z0t>=0;)a^=qJt<<yHe.getBCHDigit(a)-z0t;return(r<<10|a)^O4r};var YJt={};const L4r=rO;function dU(t){this.mode=L4r.NUMERIC,this.data=t.toString()}dU.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};dU.prototype.getLength=function(){return this.data.length};dU.prototype.getBitsLength=function(){return dU.getBitsLength(this.data.length)};dU.prototype.write=function(e){let n,r,a;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),a=parseInt(r,10),e.put(a,10);const o=this.data.length-n;o>0&&(r=this.data.substr(n),a=parseInt(r,10),e.put(a,o*3+1))};var B4r=dU;const D4r=rO,k5e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function hU(t){this.mode=D4r.ALPHANUMERIC,this.data=t}hU.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};hU.prototype.getLength=function(){return this.data.length};hU.prototype.getBitsLength=function(){return hU.getBitsLength(this.data.length)};hU.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let r=k5e.indexOf(this.data[n])*45;r+=k5e.indexOf(this.data[n+1]),e.put(r,11)}this.data.length%2&&e.put(k5e.indexOf(this.data[n]),6)};var $4r=hU,F4r=function(e){for(var n=[],r=e.length,a=0;a<r;a++){var o=e.charCodeAt(a);if(o>=55296&&o<=56319&&r>a+1){var s=e.charCodeAt(a+1);s>=56320&&s<=57343&&(o=(o-55296)*1024+s-56320+65536,a+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const j4r=F4r,H4r=rO;function fU(t){this.mode=H4r.BYTE,typeof t=="string"&&(t=j4r(t)),this.data=new Uint8Array(t)}fU.getBitsLength=function(e){return e*8};fU.prototype.getLength=function(){return this.data.length};fU.prototype.getBitsLength=function(){return fU.getBitsLength(this.data.length)};fU.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)};var U4r=fU;const z4r=rO,G4r=rb;function pU(t){this.mode=z4r.KANJI,this.data=t}pU.getBitsLength=function(e){return e*13};pU.prototype.getLength=function(){return this.data.length};pU.prototype.getBitsLength=function(){return pU.getBitsLength(this.data.length)};pU.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=G4r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}};var V4r=pU,JJt={exports:{}};(function(t){var e={single_source_shortest_paths:function(n,r,a){var o={},s={};s[r]=0;var l=e.PriorityQueue.make();l.push(r,0);for(var c,u,d,h,f,p,m,g,v;!l.empty();){c=l.pop(),u=c.value,h=c.cost,f=n[u]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],m=h+p,g=s[d],v=typeof s[d]>"u",(v||g>m)&&(s[d]=m,l.push(d,m),o[d]=u))}if(typeof a<"u"&&typeof s[a]>"u"){var A=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(A)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],o=r;o;)a.push(o),n[o],o=n[o];return a.reverse(),a},find_path:function(n,r,a){var o=e.single_source_shortest_paths(n,r,a);return e.extract_shortest_path_from_predecessor_list(o,a)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,a={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);return a.queue=[],a.sorter=n.sorter||r.default_sorter,a},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var a={value:n,cost:r};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(JJt);var K4r=JJt.exports;(function(t){const e=rO,n=B4r,r=$4r,a=U4r,o=V4r,s=pC,l=rb,c=K4r;function u(A){return unescape(encodeURIComponent(A)).length}function d(A,y,S){const x=[];let w;for(;(w=A.exec(S))!==null;)x.push({data:w[0],index:w.index,mode:y,length:w[0].length});return x}function h(A){const y=d(s.NUMERIC,e.NUMERIC,A),S=d(s.ALPHANUMERIC,e.ALPHANUMERIC,A);let x,w;return l.isKanjiModeEnabled()?(x=d(s.BYTE,e.BYTE,A),w=d(s.KANJI,e.KANJI,A)):(x=d(s.BYTE_KANJI,e.BYTE,A),w=[]),y.concat(S,x,w).sort(function(C,R){return C.index-R.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(A,y){switch(y){case e.NUMERIC:return n.getBitsLength(A);case e.ALPHANUMERIC:return r.getBitsLength(A);case e.KANJI:return o.getBitsLength(A);case e.BYTE:return a.getBitsLength(A)}}function p(A){return A.reduce(function(y,S){const x=y.length-1>=0?y[y.length-1]:null;return x&&x.mode===S.mode?(y[y.length-1].data+=S.data,y):(y.push(S),y)},[])}function m(A){const y=[];for(let S=0;S<A.length;S++){const x=A[S];switch(x.mode){case e.NUMERIC:y.push([x,{data:x.data,mode:e.ALPHANUMERIC,length:x.length},{data:x.data,mode:e.BYTE,length:x.length}]);break;case e.ALPHANUMERIC:y.push([x,{data:x.data,mode:e.BYTE,length:x.length}]);break;case e.KANJI:y.push([x,{data:x.data,mode:e.BYTE,length:u(x.data)}]);break;case e.BYTE:y.push([{data:x.data,mode:e.BYTE,length:u(x.data)}])}}return y}function g(A,y){const S={},x={start:{}};let w=["start"];for(let _=0;_<A.length;_++){const C=A[_],R=[];for(let k=0;k<C.length;k++){const P=C[k],N=""+_+k;R.push(N),S[N]={node:P,lastCount:0},x[N]={};for(let L=0;L<w.length;L++){const I=w[L];S[I]&&S[I].node.mode===P.mode?(x[I][N]=f(S[I].lastCount+P.length,P.mode)-f(S[I].lastCount,P.mode),S[I].lastCount+=P.length):(S[I]&&(S[I].lastCount=P.length),x[I][N]=f(P.length,P.mode)+4+e.getCharCountIndicator(P.mode,y))}}w=R}for(let _=0;_<w.length;_++)x[w[_]].end=0;return{map:x,table:S}}function v(A,y){let S;const x=e.getBestModeForData(A);if(S=e.from(y,x),S!==e.BYTE&&S.bit<x.bit)throw new Error('"'+A+'" cannot be encoded with mode '+e.toString(S)+`.
 Suggested mode is: `+e.toString(x));switch(S===e.KANJI&&!l.isKanjiModeEnabled()&&(S=e.BYTE),S){case e.NUMERIC:return new n(A);case e.ALPHANUMERIC:return new r(A);case e.KANJI:return new o(A);case e.BYTE:return new a(A)}}t.fromArray=function(y){return y.reduce(function(S,x){return typeof x=="string"?S.push(v(x,null)):x.data&&S.push(v(x.data,x.mode)),S},[])},t.fromString=function(y,S){const x=h(y,l.isKanjiModeEnabled()),w=m(x),_=g(w,S),C=c.find_path(_.map,"start","end"),R=[];for(let k=1;k<C.length-1;k++)R.push(_.table[C[k]].node);return t.fromArray(p(R))},t.rawSplit=function(y){return t.fromArray(h(y,l.isKanjiModeEnabled()))}})(YJt);const CEe=rb,R5e=wEe,W4r=_4r,Q4r=T4r,q4r=HJt,Y4r=UJt,bHe=zJt,xHe=_Ee,J4r=k4r,A0e=KJt,Z4r=QJt,X4r=rO,M5e=YJt;function eLr(t,e){const n=t.size,r=Y4r.getPositions(e);for(let a=0;a<r.length;a++){const o=r[a][0],s=r[a][1];for(let l=-1;l<=7;l++)if(!(o+l<=-1||n<=o+l))for(let c=-1;c<=7;c++)s+c<=-1||n<=s+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?t.set(o+l,s+c,!0,!0):t.set(o+l,s+c,!1,!0))}}function tLr(t){const e=t.size;for(let n=8;n<e-8;n++){const r=n%2===0;t.set(n,6,r,!0),t.set(6,n,r,!0)}}function nLr(t,e){const n=q4r.getPositions(e);for(let r=0;r<n.length;r++){const a=n[r][0],o=n[r][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?t.set(a+s,o+l,!0,!0):t.set(a+s,o+l,!1,!0)}}function rLr(t,e){const n=t.size,r=A0e.getEncodedBits(e);let a,o,s;for(let l=0;l<18;l++)a=Math.floor(l/3),o=l%3+n-8-3,s=(r>>l&1)===1,t.set(a,o,s,!0),t.set(o,a,s,!0)}function N5e(t,e,n){const r=t.size,a=Z4r.getEncodedBits(e,n);let o,s;for(o=0;o<15;o++)s=(a>>o&1)===1,o<6?t.set(o,8,s,!0):o<8?t.set(o+1,8,s,!0):t.set(r-15+o,8,s,!0),o<8?t.set(8,r-o-1,s,!0):o<9?t.set(8,15-o-1+1,s,!0):t.set(8,15-o-1,s,!0);t.set(r-8,8,1,!0)}function iLr(t,e){const n=t.size;let r=-1,a=n-1,o=7,s=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!t.isReserved(a,l-c)){let u=!1;s<e.length&&(u=(e[s]>>>o&1)===1),t.set(a,l-c,u),o--,o===-1&&(s++,o=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}function aLr(t,e,n){const r=new W4r;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),X4r.getCharCountIndicator(c.mode,t)),c.write(r)});const a=CEe.getSymbolTotalCodewords(t),o=xHe.getTotalCodewordsCount(t,e),s=(a-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const l=(s-r.getLengthInBits())/8;for(let c=0;c<l;c++)r.put(c%2?17:236,8);return oLr(r,t,e)}function oLr(t,e,n){const r=CEe.getSymbolTotalCodewords(e),a=xHe.getTotalCodewordsCount(e,n),o=r-a,s=xHe.getBlocksCount(e,n),l=r%s,c=s-l,u=Math.floor(r/s),d=Math.floor(o/s),h=d+1,f=u-d,p=new J4r(f);let m=0;const g=new Array(s),v=new Array(s);let A=0;const y=new Uint8Array(t.buffer);for(let C=0;C<s;C++){const R=C<c?d:h;g[C]=y.slice(m,m+R),v[C]=p.encode(g[C]),m+=R,A=Math.max(A,R)}const S=new Uint8Array(r);let x=0,w,_;for(w=0;w<A;w++)for(_=0;_<s;_++)w<g[_].length&&(S[x++]=g[_][w]);for(w=0;w<f;w++)for(_=0;_<s;_++)S[x++]=v[_][w];return S}function sLr(t,e,n,r){let a;if(Array.isArray(t))a=M5e.fromArray(t);else if(typeof t=="string"){let u=e;if(!u){const d=M5e.rawSplit(t);u=A0e.getBestVersionForData(d,n)}a=M5e.fromString(t,u||40)}else throw new Error("Invalid data");const o=A0e.getBestVersionForData(a,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+o+`.
`);const s=aLr(e,n,a),l=CEe.getSymbolSize(e),c=new Q4r(l);return eLr(c,e),tLr(c),nLr(c,e),N5e(c,n,0),e>=7&&rLr(c,e),iLr(c,s),isNaN(r)&&(r=bHe.getBestMask(c,N5e.bind(null,c,n))),bHe.applyMask(r,c),N5e(c,n,r),{modules:c,version:e,errorCorrectionLevel:n,maskPattern:r,segments:a}}FJt.create=function(e,n){if(typeof e>"u"||e==="")throw new Error("No input text");let r=R5e.M,a,o;return typeof n<"u"&&(r=R5e.from(n.errorCorrectionLevel,R5e.M),a=A0e.from(n.version),o=bHe.from(n.maskPattern),n.toSJISFunc&&CEe.setToSJISFunction(n.toSJISFunc)),sLr(e,a,r,o)};var ZJt={},YXe={};(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const a=parseInt(r.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:a,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},t.getImageWidth=function(r,a){const o=t.getScale(r,a);return Math.floor((r+a.margin*2)*o)},t.qrToImageData=function(r,a,o){const s=a.modules.size,l=a.modules.data,c=t.getScale(s,o),u=Math.floor((s+o.margin*2)*c),d=o.margin*c,h=[o.color.light,o.color.dark];for(let f=0;f<u;f++)for(let p=0;p<u;p++){let m=(f*u+p)*4,g=o.color.light;if(f>=d&&p>=d&&f<u-d&&p<u-d){const v=Math.floor((f-d)/c),A=Math.floor((p-d)/c);g=h[l[v*s+A]?1:0]}r[m++]=g.r,r[m++]=g.g,r[m++]=g.b,r[m]=g.a}}})(YXe);(function(t){const e=YXe;function n(a,o,s){a.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(o,s,l){let c=l,u=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=r()),c=e.getOptions(c);const d=e.getImageWidth(o.modules.size,c),h=u.getContext("2d"),f=h.createImageData(d,d);return e.qrToImageData(f.data,o,c),n(h,u,d),h.putImageData(f,0,0),u},t.renderToDataURL=function(o,s,l){let c=l;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=t.render(o,s,c),d=c.type||"image/png",h=c.rendererOpts||{};return u.toDataURL(d,h.quality)}})(ZJt);var XJt={};const lLr=YXe;function G0t(t,e){const n=t.a/255,r=e+'="'+t.hex+'"';return n<1?r+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function I5e(t,e,n){let r=t+e;return typeof n<"u"&&(r+=" "+n),r}function cLr(t,e,n){let r="",a=0,o=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);!c&&!o&&(o=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(r+=o?I5e("M",c+n,.5+u+n):I5e("m",a,0),a=0,o=!1),c+1<e&&t[l+1]||(r+=I5e("h",s),s=0)):a++}return r}XJt.render=function(e,n,r){const a=lLr.getOptions(n),o=e.modules.size,s=e.modules.data,l=o+a.margin*2,c=a.color.light.a?"<path "+G0t(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+G0t(a.color.dark,"stroke")+' d="'+cLr(s,o,a.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+c+u+`</svg>
`;return typeof r=="function"&&r(null,f),f};const uLr=S4r,EHe=FJt,eZt=ZJt,dLr=XJt;function JXe(t,e,n,r,a){const o=[].slice.call(arguments,1),s=o.length,l=typeof o[s-1]=="function";if(!l&&!uLr())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(a=n,n=e,e=r=void 0):s===3&&(e.getContext&&typeof a>"u"?(a=r,r=void 0):(a=r,r=n,n=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=e,e=r=void 0):s===2&&!e.getContext&&(r=n,n=e,e=void 0),new Promise(function(c,u){try{const d=EHe.create(n,r);c(t(d,e,r))}catch(d){u(d)}})}try{const c=EHe.create(n,r);a(null,t(c,e,r))}catch(c){a(c)}}lae.create=EHe.create;lae.toCanvas=JXe.bind(null,eZt.render);lae.toDataURL=JXe.bind(null,eZt.renderToDataURL);lae.toString=JXe.bind(null,function(t,e,n){return dLr.render(t,n)});const hLr=.1,V0t=2.5,Ek=7;function P5e(t,e,n){return t===e?!1:(t-e<0?e-t:t-e)<=n+hLr}function fLr(t,e){const n=Array.prototype.slice.call(lae.create(t,{errorCorrectionLevel:e}).modules.data,0),r=Math.sqrt(n.length);return n.reduce((a,o,s)=>(s%r===0?a.push([o]):a[a.length-1].push(o))&&a,[])}const pLr={generate(t,e,n){const r="#141414",a="transparent",s=[],l=fLr(t,"Q"),c=e/l.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:g,y:v})=>{const A=(l.length-Ek)*c*g,y=(l.length-Ek)*c*v,S=.45;for(let x=0;x<u.length;x+=1){const w=c*(Ek-x*2);s.push(oi`
            <rect
              fill=${x===2?r:a}
              width=${x===0?w-5:w}
              rx= ${x===0?(w-5)*S:w*S}
              ry= ${x===0?(w-5)*S:w*S}
              stroke=${r}
              stroke-width=${x===0?5:0}
              height=${x===0?w-5:w}
              x= ${x===0?y+c*x+5/2:y+c*x}
              y= ${x===0?A+c*x+5/2:A+c*x}
            />
          `)}});const d=Math.floor((n+25)/c),h=l.length/2-d/2,f=l.length/2+d/2-1,p=[];l.forEach((g,v)=>{g.forEach((A,y)=>{if(l[v][y]&&!(v<Ek&&y<Ek||v>l.length-(Ek+1)&&y<Ek||v<Ek&&y>l.length-(Ek+1))&&!(v>h&&v<f&&y>h&&y<f)){const S=v*c+c/2,x=y*c+c/2;p.push([S,x])}})});const m={};return p.forEach(([g,v])=>{var A;m[g]?(A=m[g])==null||A.push(v):m[g]=[v]}),Object.entries(m).map(([g,v])=>{const A=v.filter(y=>v.every(S=>!P5e(y,S,c)));return[Number(g),A]}).forEach(([g,v])=>{v.forEach(A=>{s.push(oi`<circle cx=${g} cy=${A} fill=${r} r=${c/V0t} />`)})}),Object.entries(m).filter(([g,v])=>v.length>1).map(([g,v])=>{const A=v.filter(y=>v.some(S=>P5e(y,S,c)));return[Number(g),A]}).map(([g,v])=>{v.sort((y,S)=>y<S?-1:1);const A=[];for(const y of v){const S=A.find(x=>x.some(w=>P5e(y,w,c)));S?S.push(y):A.push([y])}return[g,A.map(y=>[y[0],y[y.length-1]])]}).forEach(([g,v])=>{v.forEach(([A,y])=>{s.push(oi`
              <line
                x1=${g}
                x2=${g}
                y1=${A}
                y2=${y}
                stroke=${r}
                stroke-width=${c/(V0t/2)}
                stroke-linecap="round"
              />
            `)})}),s}},mLr=Kr`
  :host {
    position: relative;
    user-select: none;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: var(--local-size);
  }

  :host([data-theme='dark']) {
    border-radius: clamp(0px, var(--wui-border-radius-l), 40px);
    background-color: var(--wui-color-inverse-100);
    padding: var(--wui-spacing-l);
  }

  :host([data-theme='light']) {
    box-shadow: 0 0 0 1px var(--wui-color-bg-125);
    background-color: var(--wui-color-bg-125);
  }

  svg:first-child,
  wui-image,
  wui-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
  }

  wui-image {
    width: 25%;
    height: 25%;
    border-radius: var(--wui-border-radius-xs);
  }

  wui-icon {
    width: 100%;
    height: 100%;
    color: #3396ff !important;
    transform: translateY(-50%) translateX(-50%) scale(0.25);
  }
`;var mG=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let eP=class extends Mr{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0}render(){return this.dataset.theme=this.theme,this.style.cssText=`--local-size: ${this.size}px`,Mt`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const e=this.theme==="light"?this.size:this.size-32;return oi`
      <svg height=${e} width=${e}>
        ${pLr.generate(this.uri,e,e/4)}
      </svg>
    `}templateVisual(){return this.imageSrc?Mt`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:Mt`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};eP.styles=[ro,mLr];mG([Ht()],eP.prototype,"uri",void 0);mG([Ht({type:Number})],eP.prototype,"size",void 0);mG([Ht()],eP.prototype,"theme",void 0);mG([Ht()],eP.prototype,"imageSrc",void 0);mG([Ht()],eP.prototype,"alt",void 0);eP=mG([kr("wui-qr-code")],eP);const gLr=Kr`
  :host {
    position: relative;
    display: inline-block;
    width: 100%;
  }
`;var vLr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let SHe=class extends Mr{constructor(){super(...arguments),this.inputComponentRef=bEe()}render(){return Mt`
      <wui-input-text
        ${xEe(this.inputComponentRef)}
        placeholder="Search wallet"
        icon="search"
        type="search"
        enterKeyHint="search"
        size="sm"
      >
        <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element>
      </wui-input-text>
    `}clearValue(){const e=this.inputComponentRef.value,n=e==null?void 0:e.inputElementRef.value;n&&(n.value="",n.focus(),n.dispatchEvent(new Event("input")))}};SHe.styles=[ro,gLr];SHe=vLr([kr("wui-search-bar")],SHe);const ALr=Kr`
  :host {
    display: flex;
    column-gap: var(--wui-spacing-xs);
    align-items: center;
    padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-gray-glass-005);
    background-color: var(--wui-color-bg-175);
    box-shadow:
      0px 14px 64px -4px rgba(0, 0, 0, 0.15),
      0px 8px 22px -6px rgba(0, 0, 0, 0.15);
  }
`;var uae=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let A6=class extends Mr{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message=""}render(){return Mt`
      <wui-icon-box
        size="sm"
        iconSize="xs"
        iconColor=${this.iconColor}
        backgroundColor=${this.backgroundColor}
        icon=${this.icon}
        background="opaque"
      ></wui-icon-box>
      <wui-text variant="paragraph-500" color="fg-100">${this.message}</wui-text>
    `}};A6.styles=[ro,ALr];uae([Ht()],A6.prototype,"backgroundColor",void 0);uae([Ht()],A6.prototype,"iconColor",void 0);uae([Ht()],A6.prototype,"icon",void 0);uae([Ht()],A6.prototype,"message",void 0);A6=uae([kr("wui-snackbar")],A6);const yLr=Kr`
  :host {
    display: inline-flex;
    background-color: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-3xl);
    padding: var(--wui-spacing-3xs);
    position: relative;
    height: 36px;
    overflow: hidden;
  }

  :host::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 4px;
    left: 4px;
    display: block;
    width: var(--local-tab-width);
    height: 28px;
    border-radius: var(--wui-border-radius-3xl);
    background-color: var(--wui-gray-glass-002);
    box-shadow: inset 0 0 0 1px var(--wui-gray-glass-002);
    transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));
    transition: transform var(--wui-ease-out-power-2) var(--wui-duration-lg);
  }

  :host([data-type='flex'])::before {
    left: 3px;
    transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));
  }

  :host([data-type='flex']) {
    display: flex;
    padding: 0px 0px 0px 12px;
    gap: 4px;
  }

  :host([data-type='flex']) > button > wui-text {
    position: absolute;
    left: 18px;
    opacity: 0;
  }

  button[data-active='true'] > wui-icon,
  button[data-active='true'] > wui-text {
    color: var(--wui-color-fg-100);
  }

  button[data-active='false'] > wui-icon,
  button[data-active='false'] > wui-text {
    color: var(--wui-color-fg-200);
  }

  button[data-active='true']:disabled,
  button[data-active='false']:disabled {
    background-color: transparent;
    opacity: 0.5;
    cursor: not-allowed;
  }

  button[data-active='true']:disabled > wui-text {
    color: var(--wui-color-fg-200);
  }

  button[data-active='false']:disabled > wui-text {
    color: var(--wui-color-fg-300);
  }

  button > wui-icon,
  button > wui-text {
    pointer-events: none;
    transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg);
  }

  button {
    width: var(--local-tab-width);
  }

  :host([data-type='flex']) > button {
    width: 34px;
    position: relative;
    display: flex;
    justify-content: flex-start;
  }

  button:hover:enabled,
  button:active:enabled {
    background-color: transparent !important;
  }

  button:hover:enabled > wui-icon,
  button:active:enabled > wui-icon {
    color: var(--wui-color-fg-125);
  }

  button:hover:enabled > wui-text,
  button:active:enabled > wui-text {
    color: var(--wui-color-fg-125);
  }

  button {
    border-radius: var(--wui-border-radius-3xl);
  }
`;var iO=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let z2=class extends Mr{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.activeTab=0,this.localTabWidth="100px",this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`
      --local-tab: ${this.activeTab};
      --local-tab-width: ${this.localTabWidth};
    `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,n)=>{const r=n===this.activeTab;return Mt`
        <button
          ?disabled=${this.disabled}
          @click=${()=>this.onTabClick(n)}
          data-active=${r}
        >
          <wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>
          <wui-text variant="small-600" color="inherit"> ${e.label} </wui-text>
        </button>
      `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,n){const r=this.buttons[this.activeTab],a=this.buttons[e],o=r==null?void 0:r.querySelector("wui-text"),s=a==null?void 0:a.querySelector("wui-text"),l=a==null?void 0:a.getBoundingClientRect(),c=s==null?void 0:s.getBoundingClientRect();r&&o&&!n&&e!==this.activeTab&&(o.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),r.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),a&&l&&c&&s&&(e!==this.activeTab||n)&&(this.localTabWidth=`${Math.round(l.width+c.width)+6}px`,a.animate([{width:`${l.width+c.width}px`}],{duration:n?0:500,fill:"forwards",easing:"ease"}),s.animate([{opacity:1}],{duration:n?0:125,delay:n?0:200,fill:"forwards",easing:"ease"}))}};z2.styles=[ro,Ud,yLr];iO([Ht({type:Array})],z2.prototype,"tabs",void 0);iO([Ht()],z2.prototype,"onTabChange",void 0);iO([Ht({type:Array})],z2.prototype,"buttons",void 0);iO([Ht({type:Boolean})],z2.prototype,"disabled",void 0);iO([Bi()],z2.prototype,"activeTab",void 0);iO([Bi()],z2.prototype,"localTabWidth",void 0);iO([Bi()],z2.prototype,"isDense",void 0);z2=iO([kr("wui-tabs")],z2);const bLr=Kr`
  :host {
    display: block;
    padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xxs);
    background-color: var(--wui-color-fg-100);
    color: var(--wui-color-bg-100);
    position: relative;
  }

  wui-icon {
    position: absolute;
    width: 12px !important;
    height: 4px !important;
  }

  wui-icon[data-placement='top'] {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 95%);
  }

  wui-icon[data-placement='bottom'] {
    top: 0;
    left: 50%;
    transform: translate(-50%, -95%) rotate(180deg);
  }

  wui-icon[data-placement='right'] {
    top: 50%;
    left: 0;
    transform: translate(-65%, -50%) rotate(90deg);
  }

  wui-icon[data-placement='left'] {
    top: 50%;
    right: 0%;
    transform: translate(65%, -50%) rotate(270deg);
  }
`;var ZXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Ute=class extends Mr{constructor(){super(...arguments),this.placement="top",this.message=""}render(){return Mt`<wui-icon
        data-placement=${this.placement}
        color="fg-100"
        size="inherit"
        name="cursor"
      ></wui-icon>
      <wui-text color="inherit" variant="small-500">${this.message}</wui-text>`}};Ute.styles=[ro,Ud,bLr];ZXe([Ht()],Ute.prototype,"placement",void 0);ZXe([Ht()],Ute.prototype,"message",void 0);Ute=ZXe([kr("wui-tooltip")],Ute);const xLr=Kr`
  :host {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--wui-icon-box-size-xl);
    height: var(--wui-icon-box-size-xl);
    box-shadow: 0 0 0 8px var(--wui-thumbnail-border);
    border-radius: var(--local-border-radius);
    overflow: hidden;
  }

  wui-icon {
    width: 32px;
    height: 32px;
  }
`;var kEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let mU=class extends Mr{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"};`,Mt`${this.templateVisual()}`}templateVisual(){return this.imageSrc?Mt`<wui-image src=${this.imageSrc} alt=${this.alt??""}></wui-image>`:Mt`<wui-icon
      data-parent-size="md"
      size="inherit"
      color="inherit"
      name="walletPlaceholder"
    ></wui-icon>`}};mU.styles=[ro,xLr];kEe([Ht()],mU.prototype,"imageSrc",void 0);kEe([Ht()],mU.prototype,"alt",void 0);kEe([Ht({type:Boolean})],mU.prototype,"borderRadiusFull",void 0);mU=kEe([kr("wui-visual-thumbnail")],mU);const ELr=Kr`
  :host {
    display: block;
  }

  button {
    width: 100%;
    display: block;
    padding-top: var(--wui-spacing-l);
    padding-bottom: var(--wui-spacing-l);
    padding-left: var(--wui-spacing-s);
    padding-right: var(--wui-spacing-2l);
    border-radius: var(--wui-border-radius-s);
    background-color: var(--wui-accent-glass-015);
  }

  button:hover {
    background-color: var(--wui-accent-glass-010) !important;
  }

  button:active {
    background-color: var(--wui-accent-glass-020) !important;
  }
`;var REe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let gU=class extends Mr{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return Mt`
      <button>
        <wui-flex gap="m" alignItems="center" justifyContent="space-between">
          <wui-icon-box
            size="lg"
            iconcolor="accent-100"
            backgroundcolor="accent-100"
            icon=${this.icon}
            background="transparent"
          ></wui-icon-box>

          <wui-flex flexDirection="column" gap="3xs">
            <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text>
            <wui-text variant="small-400" color="fg-200">${this.description}</wui-text>
          </wui-flex>

          <wui-icon size="md" color="fg-200" name="chevronRight"></wui-icon>
        </wui-flex>
      </button>
    `}};gU.styles=[ro,Ud,ELr];REe([Ht()],gU.prototype,"label",void 0);REe([Ht()],gU.prototype,"description",void 0);REe([Ht()],gU.prototype,"icon",void 0);gU=REe([kr("wui-notice-card")],gU);const SLr=Kr`
  button {
    height: auto;
    position: relative;
    flex-direction: column;
    gap: var(--wui-spacing-s);
    padding: 17px 18px 17px var(--wui-spacing-m);
    width: 100%;
    background-color: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-250);
  }

  .overflowedContent {
    width: 100%;
    overflow: hidden;
  }

  .overflowedContent[data-active='false']:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--wui-color-bg-200), transparent);
    border-bottom-left-radius: var(--wui-border-radius-xs);
    border-bottom-right-radius: var(--wui-border-radius-xs);
  }

  .heightContent {
    max-height: 100px;
  }

  pre {
    text-align: left;
    white-space: pre-wrap;
    height: auto;
    overflow-x: auto;
    overflow-wrap: anywhere;
  }
`;var XXe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const O5e=100;let zte=class extends Mr{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}firstUpdated(){setTimeout(()=>{var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector(".heightContent");if(e){this.scrollElement=e;const r=e==null?void 0:e.scrollHeight;r&&r>O5e&&(this.enableAccordion=!0,this.scrollHeightElement=r,this.requestUpdate())}},0)}render(){return Mt`
      <button ontouchstart @click=${()=>this.onClick()}>
        <wui-flex justifyContent="space-between" alignItems="center">
          <wui-text variant="paragraph-500" color="fg-100">${this.textTitle}</wui-text>
          ${this.chevronTemplate()}
        </wui-flex>
        <div
          data-active=${this.enableAccordion?!!this.toggled:!0}
          class="overflowedContent"
        >
          <div class="heightContent">
            <wui-text variant="paragraph-400" color="fg-200">
              <pre>${this.overflowedContent}</pre>
            </wui-text>
          </div>
        </div>
      </button>
    `}onClick(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("wui-icon");this.enableAccordion&&(this.toggled=!this.toggled,this.requestUpdate(),this.scrollElement&&this.scrollElement.animate([{maxHeight:this.toggled?`${O5e}px`:`${this.scrollHeightElement}px`},{maxHeight:this.toggled?`${this.scrollHeightElement}px`:`${O5e}px`}],{duration:300,fill:"forwards",easing:"ease"}),e&&e.animate([{transform:this.toggled?"rotate(0deg)":"rotate(180deg)"},{transform:this.toggled?"rotate(180deg)":"rotate(0deg)"}],{duration:300,fill:"forwards",easing:"ease"}))}chevronTemplate(){return this.enableAccordion?Mt` <wui-icon color="fg-100" size="sm" name="chevronBottom"></wui-icon>`:null}};zte.styles=[ro,Ud,SLr];XXe([Ht()],zte.prototype,"textTitle",void 0);XXe([Ht()],zte.prototype,"overflowedContent",void 0);zte=XXe([kr("wui-list-accordion")],zte);const wLr=Kr`
  :host {
    display: flex;
    column-gap: var(--wui-spacing-s);
    padding: 17px 18px 17px var(--wui-spacing-m);
    width: 100%;
    background-color: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-250);
  }

  wui-image {
    width: var(--wui-icon-size-lg);
    height: var(--wui-icon-size-lg);
    border-radius: var(--wui-border-radius-3xl);
  }

  wui-icon {
    width: var(--wui-icon-size-lg);
    height: var(--wui-icon-size-lg);
  }
`;var MEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let vU=class extends Mr{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return Mt`
      <wui-flex justifyContent="space-between" alignItems="center">
        <wui-text variant="paragraph-500" color=${this.textValue?"fg-200":"fg-100"}>
          ${this.textTitle}
        </wui-text>
        ${this.templateContent()}
      </wui-flex>
    `}templateContent(){return this.imageSrc?Mt`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?Mt` <wui-text variant="paragraph-400" color="fg-100"> ${this.textValue} </wui-text>`:Mt`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};vU.styles=[ro,Ud,wLr];MEe([Ht()],vU.prototype,"imageSrc",void 0);MEe([Ht()],vU.prototype,"textTitle",void 0);MEe([Ht()],vU.prototype,"textValue",void 0);vU=MEe([kr("wui-list-content")],vU);const _Lr=Kr`
  :host {
    display: flex;
    flex-direction: column;
    gap: var(--wui-spacing-l);
    padding: 17px 18px 17px var(--wui-spacing-m);
    width: 100%;
    background-color: var(--wui-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-250);
  }

  wui-image {
    width: var(--wui-icon-size-lg);
    height: var(--wui-icon-size-lg);
    border-radius: var(--wui-border-radius-3xl);
  }

  wui-icon {
    width: var(--wui-icon-size-lg);
    height: var(--wui-icon-size-lg);
  }
`;var dae=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let y6=class extends Mr{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress=""}render(){return Mt`
      <wui-flex justifyContent="space-between" alignItems="center">
        <wui-text variant="paragraph-500" color="fg-200">Sending</wui-text>
        <wui-flex gap="xs" alignItems="center">
          <wui-text variant="paragraph-400" color="fg-100">
            ${this.amount} ${this.networkCurreny}
          </wui-text>
          ${this.templateNetworkVisual()}
        </wui-flex>
      </wui-flex>
      <wui-flex justifyContent="space-between" alignItems="center">
        <wui-text variant="paragraph-500" color="fg-200">To</wui-text>
        <wui-chip
          icon="externalLink"
          variant="shadeSmall"
          href=${this.receiverAddress}
          title=${this.receiverAddress}
        ></wui-chip>
      </wui-flex>
    `}templateNetworkVisual(){return this.networkImageUrl?Mt`<wui-image src=${this.networkImageUrl} alt="Network Image"></wui-image>`:Mt`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};y6.styles=[ro,Ud,_Lr];dae([Ht()],y6.prototype,"amount",void 0);dae([Ht()],y6.prototype,"networkCurreny",void 0);dae([Ht()],y6.prototype,"networkImageUrl",void 0);dae([Ht()],y6.prototype,"receiverAddress",void 0);y6=dae([kr("wui-list-wallet-transaction")],y6);const TLr=Kr`
  :host {
    display: grid;
    width: inherit;
    height: inherit;
  }
`;var uE=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let s1=class extends Mr{render(){return this.style.cssText=`
      grid-template-rows: ${this.gridTemplateRows};
      grid-template-columns: ${this.gridTemplateColumns};
      justify-items: ${this.justifyItems};
      align-items: ${this.alignItems};
      justify-content: ${this.justifyContent};
      align-content: ${this.alignContent};
      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
      padding-top: ${this.padding&&lu.getSpacingStyles(this.padding,0)};
      padding-right: ${this.padding&&lu.getSpacingStyles(this.padding,1)};
      padding-bottom: ${this.padding&&lu.getSpacingStyles(this.padding,2)};
      padding-left: ${this.padding&&lu.getSpacingStyles(this.padding,3)};
      margin-top: ${this.margin&&lu.getSpacingStyles(this.margin,0)};
      margin-right: ${this.margin&&lu.getSpacingStyles(this.margin,1)};
      margin-bottom: ${this.margin&&lu.getSpacingStyles(this.margin,2)};
      margin-left: ${this.margin&&lu.getSpacingStyles(this.margin,3)};
    `,Mt`<slot></slot>`}};s1.styles=[ro,TLr];uE([Ht()],s1.prototype,"gridTemplateRows",void 0);uE([Ht()],s1.prototype,"gridTemplateColumns",void 0);uE([Ht()],s1.prototype,"justifyItems",void 0);uE([Ht()],s1.prototype,"alignItems",void 0);uE([Ht()],s1.prototype,"justifyContent",void 0);uE([Ht()],s1.prototype,"alignContent",void 0);uE([Ht()],s1.prototype,"columnGap",void 0);uE([Ht()],s1.prototype,"rowGap",void 0);uE([Ht()],s1.prototype,"gap",void 0);uE([Ht()],s1.prototype,"padding",void 0);uE([Ht()],s1.prototype,"margin",void 0);s1=uE([kr("wui-grid")],s1);const CLr=Kr`
  :host {
    position: relative;
    display: flex;
    width: 100%;
    height: 1px;
    background-color: var(--wui-gray-glass-005);
    justify-content: center;
    align-items: center;
  }

  :host > wui-text {
    position: absolute;
    padding: 0px 10px;
    background-color: var(--wui-color-modal-bg);
  }
`;var tZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let y0e=class extends Mr{constructor(){super(...arguments),this.text=""}render(){return Mt`${this.template()}`}template(){return this.text?Mt`<wui-text variant="small-500" color="fg-200">${this.text}</wui-text>`:null}};y0e.styles=[ro,CLr];tZt([Ht()],y0e.prototype,"text",void 0);y0e=tZt([kr("wui-separator")],y0e);var nZt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(en,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",l="minute",c="hour",u="day",d="week",h="month",f="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var T=["th","st","nd","rd"],M=b%100;return"["+b+(T[(M-20)%10]||T[M]||T[0])+"]"}},S=function(b,T,M){var D=String(b);return!D||D.length>=T?b:""+Array(T+1-D.length).join(M)+b},x={s:S,z:function(b){var T=-b.utcOffset(),M=Math.abs(T),D=Math.floor(M/60),B=M%60;return(T<=0?"+":"-")+S(D,2,"0")+":"+S(B,2,"0")},m:function b(T,M){if(T.date()<M.date())return-b(M,T);var D=12*(M.year()-T.year())+(M.month()-T.month()),B=T.clone().add(D,h),j=M-B<0,H=T.clone().add(D+(j?-1:1),h);return+(-(D+(M-B)/(j?B-H:H-B))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:h,y:p,w:d,d:u,D:m,h:c,m:l,s,ms:o,Q:f}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},w="en",_={};_[w]=y;var C="$isDayjsObject",R=function(b){return b instanceof L||!(!b||!b[C])},k=function b(T,M,D){var B;if(!T)return w;if(typeof T=="string"){var j=T.toLowerCase();_[j]&&(B=j),M&&(_[j]=M,B=j);var H=T.split("-");if(!B&&H.length>1)return b(H[0])}else{var U=T.name;_[U]=T,B=U}return!D&&B&&(w=B),B||!D&&w},P=function(b,T){if(R(b))return b.clone();var M=typeof T=="object"?T:{};return M.date=b,M.args=arguments,new L(M)},N=x;N.l=k,N.i=R,N.w=function(b,T){return P(b,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var L=function(){function b(M){this.$L=k(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[C]=!0}var T=b.prototype;return T.parse=function(M){this.$d=function(D){var B=D.date,j=D.utc;if(B===null)return new Date(NaN);if(N.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var H=B.match(v);if(H){var U=H[2]-1||0,$=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],U,H[3]||1,H[4]||0,H[5]||0,H[6]||0,$)):new Date(H[1],U,H[3]||1,H[4]||0,H[5]||0,H[6]||0,$)}}return new Date(B)}(M),this.init()},T.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},T.$utils=function(){return N},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(M,D){var B=P(M);return this.startOf(D)<=B&&B<=this.endOf(D)},T.isAfter=function(M,D){return P(M)<this.startOf(D)},T.isBefore=function(M,D){return this.endOf(D)<P(M)},T.$g=function(M,D,B){return N.u(M)?this[D]:this.set(B,M)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(M,D){var B=this,j=!!N.u(D)||D,H=N.p(M),U=function(te,J){var ne=N.w(B.$u?Date.UTC(B.$y,J,te):new Date(B.$y,J,te),B);return j?ne:ne.endOf(u)},$=function(te,J){return N.w(B.toDate()[te].apply(B.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(J)),B)},z=this.$W,Z=this.$M,K=this.$D,Q="set"+(this.$u?"UTC":"");switch(H){case p:return j?U(1,0):U(31,11);case h:return j?U(1,Z):U(0,Z+1);case d:var ee=this.$locale().weekStart||0,X=(z<ee?z+7:z)-ee;return U(j?K-X:K+(6-X),Z);case u:case m:return $(Q+"Hours",0);case c:return $(Q+"Minutes",1);case l:return $(Q+"Seconds",2);case s:return $(Q+"Milliseconds",3);default:return this.clone()}},T.endOf=function(M){return this.startOf(M,!1)},T.$set=function(M,D){var B,j=N.p(M),H="set"+(this.$u?"UTC":""),U=(B={},B[u]=H+"Date",B[m]=H+"Date",B[h]=H+"Month",B[p]=H+"FullYear",B[c]=H+"Hours",B[l]=H+"Minutes",B[s]=H+"Seconds",B[o]=H+"Milliseconds",B)[j],$=j===u?this.$D+(D-this.$W):D;if(j===h||j===p){var z=this.clone().set(m,1);z.$d[U]($),z.init(),this.$d=z.set(m,Math.min(this.$D,z.daysInMonth())).$d}else U&&this.$d[U]($);return this.init(),this},T.set=function(M,D){return this.clone().$set(M,D)},T.get=function(M){return this[N.p(M)]()},T.add=function(M,D){var B,j=this;M=Number(M);var H=N.p(D),U=function(Z){var K=P(j);return N.w(K.date(K.date()+Math.round(Z*M)),j)};if(H===h)return this.set(h,this.$M+M);if(H===p)return this.set(p,this.$y+M);if(H===u)return U(1);if(H===d)return U(7);var $=(B={},B[l]=r,B[c]=a,B[s]=n,B)[H]||1,z=this.$d.getTime()+M*$;return N.w(z,this)},T.subtract=function(M,D){return this.add(-1*M,D)},T.format=function(M){var D=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var j=M||"YYYY-MM-DDTHH:mm:ssZ",H=N.z(this),U=this.$H,$=this.$m,z=this.$M,Z=B.weekdays,K=B.months,Q=B.meridiem,ee=function(J,ne,ie,he){return J&&(J[ne]||J(D,j))||ie[ne].slice(0,he)},X=function(J){return N.s(U%12||12,J,"0")},te=Q||function(J,ne,ie){var he=J<12?"AM":"PM";return ie?he.toLowerCase():he};return j.replace(A,function(J,ne){return ne||function(ie){switch(ie){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return z+1;case"MM":return N.s(z+1,2,"0");case"MMM":return ee(B.monthsShort,z,K,3);case"MMMM":return ee(K,z);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ee(B.weekdaysMin,D.$W,Z,2);case"ddd":return ee(B.weekdaysShort,D.$W,Z,3);case"dddd":return Z[D.$W];case"H":return String(U);case"HH":return N.s(U,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return te(U,$,!0);case"A":return te(U,$,!1);case"m":return String($);case"mm":return N.s($,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return H}return null}(J)||H.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(M,D,B){var j,H=this,U=N.p(D),$=P(M),z=($.utcOffset()-this.utcOffset())*r,Z=this-$,K=function(){return N.m(H,$)};switch(U){case p:j=K()/12;break;case h:j=K();break;case f:j=K()/3;break;case d:j=(Z-z)/6048e5;break;case u:j=(Z-z)/864e5;break;case c:j=Z/a;break;case l:j=Z/r;break;case s:j=Z/n;break;default:j=Z}return B?j:N.a(j)},T.daysInMonth=function(){return this.endOf(h).$D},T.$locale=function(){return _[this.$L]},T.locale=function(M,D){if(!M)return this.$L;var B=this.clone(),j=k(M,D,!0);return j&&(B.$L=j),B},T.clone=function(){return N.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},b}(),I=L.prototype;return P.prototype=I,[["$ms",o],["$s",s],["$m",l],["$H",c],["$W",u],["$M",h],["$y",p],["$D",m]].forEach(function(b){I[b[1]]=function(T){return this.$g(T,b[0],b[1])}}),P.extend=function(b,T){return b.$i||(b(T,L,P),b.$i=!0),P},P.locale=k,P.isDayjs=R,P.unix=function(b){return P(1e3*b)},P.en=_[w],P.Ls=_,P.p={},P})})(nZt);var kLr=nZt.exports;const Gte=Li(kLr);var rZt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(en,function(){return function(n,r,a){a.updateLocale=function(o,s){var l=a.Ls[o];if(l)return(s?Object.keys(s):[]).forEach(function(c){l[c]=s[c]}),l}}})})(rZt);var RLr=rZt.exports;const MLr=Li(RLr);var iZt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(en,function(){return function(n,r,a){n=n||{};var o=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,h,f){return o.fromToBase(u,d,h,f)}a.en.relativeTime=s,o.fromToBase=function(u,d,h,f,p){for(var m,g,v,A=h.$locale().relativeTime||s,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=y.length,x=0;x<S;x+=1){var w=y[x];w.d&&(m=f?a(u).diff(h,w.d,!0):h.diff(u,w.d,!0));var _=(n.rounding||Math.round)(Math.abs(m));if(v=m>0,_<=w.r||!w.r){_<=1&&x>0&&(w=y[x-1]);var C=A[w.l];p&&(_=p(""+_)),g=typeof C=="string"?C.replace("%d",_):C(_,d,w.l,v);break}}if(d)return g;var R=v?A.future:A.past;return typeof R=="function"?R(g):R.replace("%s",g)},o.to=function(u,d){return l(u,d,this,!0)},o.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};o.toNow=function(u){return this.to(c(this),u)},o.fromNow=function(u){return this.from(c(this),u)}}})})(iZt);var NLr=iZt.exports;const ILr=Li(NLr);Gte.extend(ILr);Gte.extend(MLr);Gte.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"%s sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}});const aZt={getYear(t=new Date().toISOString()){return Gte(t).year()},getRelativeDateFromNow(t){return Gte(t).fromNow(!0)}},PLr=3,OLr=["receive","deposit","borrow","claim"],LLr=["withdraw","repay","burn"],zF={getTransactionGroupTitle(t){const e=aZt.getYear();return t===e?"This Year":t},getTransactionImages(t){const[e,n]=t,r=!!e&&(t==null?void 0:t.every(s=>!!s.nft_info)),a=(t==null?void 0:t.length)>1;return(t==null?void 0:t.length)===2&&!r?[this.getTransactionImage(e),this.getTransactionImage(n)]:a?t.map(s=>this.getTransactionImage(s)):[this.getTransactionImage(e)]},getTransactionImage(t){return{type:zF.getTransactionTransferTokenType(t),url:zF.getTransactionImageURL(t)}},getTransactionImageURL(t){var a,o,s,l,c;let e=null;const n=!!(t!=null&&t.nft_info),r=!!(t!=null&&t.fungible_info);return t&&n?e=(s=(o=(a=t==null?void 0:t.nft_info)==null?void 0:a.content)==null?void 0:o.preview)==null?void 0:s.url:t&&r&&(e=(c=(l=t==null?void 0:t.fungible_info)==null?void 0:l.icon)==null?void 0:c.url),e},getTransactionTransferTokenType(t){return t!=null&&t.fungible_info?"FUNGIBLE":t!=null&&t.nft_info?"NFT":null},getTransactionDescriptions(t){var h,f,p;const e=(h=t.metadata)==null?void 0:h.operationType,n=t.transfers,r=((f=t.transfers)==null?void 0:f.length)>0,a=((p=t.transfers)==null?void 0:p.length)>1,o=r&&(n==null?void 0:n.every(m=>!!m.fungible_info)),[s,l]=n;let c=this.getTransferDescription(s),u=this.getTransferDescription(l);if(!r)return(e==="send"||e==="receive")&&o?(c=lu.getTruncateString({string:t.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),u=lu.getTruncateString({string:t.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[c,u]):[t.metadata.status];if(a)return n.map(m=>this.getTransferDescription(m));let d="";return OLr.includes(e)?d="+":LLr.includes(e)&&(d="-"),c=d.concat(c),[c]},getTransferDescription(t){var n;let e="";return t&&(t!=null&&t.nft_info?e=((n=t==null?void 0:t.nft_info)==null?void 0:n.name)||"-":t!=null&&t.fungible_info&&(e=this.getFungibleTransferDescription(t)||"-")),e},getFungibleTransferDescription(t){var r;return t?[this.getQuantityFixedValue(t==null?void 0:t.quantity.numeric),(r=t==null?void 0:t.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},getQuantityFixedValue(t){return t?parseFloat(t).toFixed(PLr):null}};var Gw=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Qx=class extends Mr{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.address=jl.state.address,this.balanceVal=jl.state.balance,this.balanceSymbol=jl.state.balanceSymbol,this.profileName=jl.state.profileName,this.profileImage=jl.state.profileImage,this.network=dh.state.caipNetwork,this.unsubscribe.push(jl.subscribe(e=>{e.isConnected?(this.address=e.address,this.balanceVal=e.balance,this.profileName=e.profileName,this.profileImage=e.profileImage,this.balanceSymbol=e.balanceSymbol):(this.address="",this.balanceVal="",this.profileName="",this.profileImage="",this.balanceSymbol="")}),dh.subscribeKey("caipNetwork",e=>this.network=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=lh.getNetworkImage(this.network),n=this.balance==="show";return Mt`
      <wui-account-button
        .disabled=${!!this.disabled}
        address=${Ko(this.profileName??this.address)}
        ?isProfileName=${!!this.profileName}
        networkSrc=${Ko(e)}
        avatarSrc=${Ko(this.profileImage)}
        balance=${n?La.formatBalance(this.balanceVal,this.balanceSymbol):""}
        @click=${this.onClick.bind(this)}
        data-testid="account-button"
        .charsStart=${this.charsStart}
        .charsEnd=${this.charsEnd}
      >
      </wui-account-button>
    `}onClick(){fu.open()}};Gw([Ht({type:Boolean})],Qx.prototype,"disabled",void 0);Gw([Ht()],Qx.prototype,"balance",void 0);Gw([Ht()],Qx.prototype,"charsStart",void 0);Gw([Ht()],Qx.prototype,"charsEnd",void 0);Gw([Bi()],Qx.prototype,"address",void 0);Gw([Bi()],Qx.prototype,"balanceVal",void 0);Gw([Bi()],Qx.prototype,"balanceSymbol",void 0);Gw([Bi()],Qx.prototype,"profileName",void 0);Gw([Bi()],Qx.prototype,"profileImage",void 0);Gw([Bi()],Qx.prototype,"network",void 0);Qx=Gw([kr("w3m-account-button")],Qx);const BLr=Kr`
  :host {
    display: block;
    width: max-content;
  }
`;var eN=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Nw=class extends Mr{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.isAccount=jl.state.isConnected,this.unsubscribe.push(jl.subscribeKey("isConnected",e=>{this.isAccount=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.isAccount?Mt`
          <w3m-account-button
            .disabled=${!!this.disabled}
            balance=${Ko(this.balance)}
            .charsStart=${Ko(this.charsStart)}
            .charsEnd=${Ko(this.charsEnd)}
          >
          </w3m-account-button>
        `:Mt`
          <w3m-connect-button
            size=${Ko(this.size)}
            label=${Ko(this.label)}
            loadingLabel=${Ko(this.loadingLabel)}
          ></w3m-connect-button>
        `}};Nw.styles=BLr;eN([Ht({type:Boolean})],Nw.prototype,"disabled",void 0);eN([Ht()],Nw.prototype,"balance",void 0);eN([Ht()],Nw.prototype,"size",void 0);eN([Ht()],Nw.prototype,"label",void 0);eN([Ht()],Nw.prototype,"loadingLabel",void 0);eN([Ht()],Nw.prototype,"charsStart",void 0);eN([Ht()],Nw.prototype,"charsEnd",void 0);eN([Bi()],Nw.prototype,"isAccount",void 0);Nw=eN([kr("w3m-button")],Nw);var gG=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let b6=class extends Mr{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=fu.state.open,this.loading=fu.state.loading,this.unsubscribe.push(fu.subscribe(e=>{this.open=e.open,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.loading||this.open;return Mt`
      <wui-connect-button
        size=${Ko(this.size)}
        .loading=${e}
        @click=${this.onClick.bind(this)}
        data-testid="connect-button"
      >
        ${e?this.loadingLabel:this.label}
      </wui-connect-button>
    `}onClick(){this.open?fu.close():this.loading||fu.open()}};gG([Ht()],b6.prototype,"size",void 0);gG([Ht()],b6.prototype,"label",void 0);gG([Ht()],b6.prototype,"loadingLabel",void 0);gG([Bi()],b6.prototype,"open",void 0);gG([Bi()],b6.prototype,"loading",void 0);b6=gG([kr("w3m-connect-button")],b6);const DLr=Kr`
  :host {
    z-index: var(--w3m-z-index);
    display: block;
    backface-visibility: hidden;
    will-change: opacity;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    background-color: var(--wui-cover);
  }

  @keyframes zoom-in {
    0% {
      transform: scale(0.95) translateY(0);
    }
    100% {
      transform: scale(1) translateY(0);
    }
  }

  @keyframes slide-in {
    0% {
      transform: scale(1) translateY(50px);
    }
    100% {
      transform: scale(1) translateY(0);
    }
  }

  wui-card {
    max-width: 360px;
    width: 100%;
    position: relative;
    animation-delay: 0.3s;
    animation-duration: 0.2s;
    animation-name: zoom-in;
    animation-fill-mode: backwards;
    animation-timing-function: var(--wui-ease-out-power-2);
    outline: none;
  }

  wui-flex {
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  @media (max-height: 700px) and (min-width: 431px) {
    wui-flex {
      align-items: flex-start;
    }

    wui-card {
      margin: var(--wui-spacing-xxl) 0px;
    }
  }

  @media (max-width: 430px) {
    wui-flex {
      align-items: flex-end;
    }

    wui-card {
      max-width: 100%;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      border-bottom: none;
      animation-name: slide-in;
    }
  }
`;var NEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const K0t="scroll-lock";let x6=class extends Mr{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.open=fu.state.open,this.caipAddress=jl.state.address,this.isSiweEnabled=Fh.state.isSiweEnabled,this.initializeTheming(),js.prefetch(),this.unsubscribe.push(fu.subscribeKey("open",e=>e?this.onOpen():this.onClose()),Fh.subscribeKey("isSiweEnabled",e=>{this.isSiweEnabled=e}),jl.subscribe(e=>this.onNewAccountState(e))),Po.sendEvent({type:"track",event:"MODAL_LOADED"})}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return this.open?Mt`
          <wui-flex @click=${this.onOverlayClick.bind(this)}>
            <wui-card role="alertdialog" aria-modal="true" tabindex="0">
              <w3m-header></w3m-header>
              <w3m-router></w3m-router>
              <w3m-snackbar></w3m-snackbar>
            </wui-card>
          </wui-flex>
        `:null}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){this.isSiweEnabled&&Fh.state.status!=="success"&&await sl.disconnect(),fu.close()}initializeTheming(){const{themeVariables:e,themeMode:n}=DA.state,r=lu.getColorTheme(n);oPr(e,r)}async onClose(){this.onScrollUnlock(),await this.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,fh.hide(),this.open=!1,this.onRemoveKeyboardListener()}async onOpen(){this.onScrollLock(),this.open=!0,await this.animate([{opacity:0},{opacity:1}],{duration:200,easing:"ease",fill:"forwards",delay:300}).finished,this.onAddKeyboardListener()}onScrollLock(){const e=document.createElement("style");e.dataset.w3m=K0t,e.textContent=`
      html, body {
        touch-action: none;
        overflow: hidden;
        overscroll-behavior: contain;
      }
      w3m-modal {
        pointer-events: auto;
      }
    `,document.head.appendChild(e)}onScrollUnlock(){const e=document.head.querySelector(`style[data-w3m="${K0t}"]`);e&&e.remove()}onAddKeyboardListener(){var n;this.abortController=new AbortController;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("wui-card");e==null||e.focus(),window.addEventListener("keydown",r=>{if(r.key==="Escape")this.handleClose();else if(r.key==="Tab"){const{tagName:a}=r.target;a&&!a.includes("W3M-")&&!a.includes("WUI-")&&(e==null||e.focus())}},this.abortController)}onRemoveKeyboardListener(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0}async onNewAccountState(e){const{isConnected:n,caipAddress:r}=e;if(this.isSiweEnabled){n&&!this.caipAddress&&(this.caipAddress=r),n&&r&&this.caipAddress!==r&&(await Fh.signOut(),this.onSiweNavigation(),this.caipAddress=r);try{const a=await Fh.getSession();a&&!n?await Fh.signOut():n&&!a&&this.onSiweNavigation()}catch{n&&this.onSiweNavigation()}}}onSiweNavigation(){this.open?ca.push("ConnectingSiwe"):fu.open({view:"ConnectingSiwe"})}};x6.styles=DLr;NEe([Bi()],x6.prototype,"open",void 0);NEe([Bi()],x6.prototype,"caipAddress",void 0);NEe([Bi()],x6.prototype,"isSiweEnabled",void 0);x6=NEe([kr("w3m-modal")],x6);const $Lr=Object.freeze(Object.defineProperty({__proto__:null,get W3mModal(){return x6}},Symbol.toStringTag,{value:"Module"})),FLr=Kr`
  :host {
    display: block;
    width: max-content;
  }
`;var hae=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let E6=class extends Mr{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.network=dh.state.caipNetwork,this.connected=jl.state.isConnected,this.loading=fu.state.loading,this.unsubscribe.push(dh.subscribeKey("caipNetwork",e=>this.network=e),jl.subscribeKey("isConnected",e=>this.connected=e),fu.subscribeKey("loading",e=>this.loading=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var e;return Mt`
      <wui-network-button
        .disabled=${!!(this.disabled||this.loading)}
        imageSrc=${Ko(lh.getNetworkImage(this.network))}
        @click=${this.onClick.bind(this)}
      >
        ${((e=this.network)==null?void 0:e.name)??(this.connected?"Unknown Network":"Select Network")}
      </wui-network-button>
    `}onClick(){this.loading||fu.open({view:"Networks"})}};E6.styles=FLr;hae([Ht({type:Boolean})],E6.prototype,"disabled",void 0);hae([Bi()],E6.prototype,"network",void 0);hae([Bi()],E6.prototype,"connected",void 0);hae([Bi()],E6.prototype,"loading",void 0);E6=hae([kr("w3m-network-button")],E6);const jLr=Kr`
  :host {
    display: block;
    will-change: transform, opacity;
  }
`;var oZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let b0e=class extends Mr{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=ca.state.view,this.unsubscribe.push(ca.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(async([e])=>{const n=`${e==null?void 0:e.contentRect.height}px`;this.prevHeight!=="0px"&&(await this.animate([{height:this.prevHeight},{height:n}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.style.height="auto"),this.prevHeight=n}),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){var e;(e=this.resizeObserver)==null||e.unobserve(this.getWrapper()),this.unsubscribe.forEach(n=>n())}render(){return Mt`<div>${this.viewTemplate()}</div>`}viewTemplate(){switch(this.view){case"Connect":return Mt`<w3m-connect-view></w3m-connect-view>`;case"ConnectingWalletConnect":return Mt`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingExternal":return Mt`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return Mt`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"AllWallets":return Mt`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"Networks":return Mt`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return Mt`<w3m-network-switch-view></w3m-network-switch-view>`;case"Account":return Mt`<w3m-account-view></w3m-account-view>`;case"WhatIsAWallet":return Mt`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"WhatIsANetwork":return Mt`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"GetWallet":return Mt`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Downloads":return Mt`<w3m-downloads-view></w3m-downloads-view>`;case"EmailVerifyOtp":return Mt`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return Mt`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"ApproveTransaction":return Mt`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"Transactions":return Mt`<w3m-transactions-view></w3m-transactions-view>`;case"UpgradeEmailWallet":return Mt`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpdateEmailWallet":return Mt`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailWalletWaiting":return Mt`<w3m-update-email-wallet-waiting-view></w3m-update-email-wallet-waiting-view>`;default:return Mt`<w3m-connect-view></w3m-connect-view>`}}async onViewChange(e){const{history:n}=ca.state;let r=-10,a=10;n.length<this.prevHistoryLength&&(r=10,a=-10),this.prevHistoryLength=n.length,await this.animate([{opacity:1,transform:"translateX(0px)"},{opacity:0,transform:`translateX(${r}px)`}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.view=e,await this.animate([{opacity:0,transform:`translateX(${a}px)`},{opacity:1,transform:"translateX(0px)"}],{duration:150,easing:"ease",fill:"forwards",delay:50}).finished}getWrapper(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("div")}};b0e.styles=jLr;oZt([Bi()],b0e.prototype,"view",void 0);b0e=oZt([kr("w3m-router")],b0e);const HLr=Kr`
  wui-flex {
    width: 100%;
  }

  :host > wui-flex:first-child {
    transform: translateY(calc(var(--wui-spacing-xxs) * -1));
  }

  wui-icon-link {
    margin-right: calc(var(--wui-icon-box-size-md) * -1);
  }

  wui-notice-card {
    margin-bottom: var(--wui-spacing-3xs);
  }
`;var aO=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let G2=class extends Mr{constructor(){super(),this.usubscribe=[],this.address=jl.state.address,this.profileImage=jl.state.profileImage,this.profileName=jl.state.profileName,this.balance=jl.state.balance,this.balanceSymbol=jl.state.balanceSymbol,this.network=dh.state.caipNetwork,this.disconecting=!1,this.usubscribe.push(jl.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.balance=e.balance,this.balanceSymbol=e.balanceSymbol):fu.close()}),dh.subscribeKey("caipNetwork",e=>{e!=null&&e.id&&(this.network=e)}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){var n;if(!this.address)throw new Error("w3m-account-view: No account provided");const e=lh.getNetworkImage(this.network);return Mt`
      <wui-flex
        flexDirection="column"
        .padding=${["0","s","m","s"]}
        alignItems="center"
        gap="l"
      >
        <wui-avatar
          alt=${this.address}
          address=${this.address}
          imageSrc=${Ko(this.profileImage===null?void 0:this.profileImage)}
        ></wui-avatar>

        <wui-flex flexDirection="column" alignItems="center">
          <wui-flex gap="3xs" alignItems="center" justifyContent="center">
            <wui-text variant="large-600" color="fg-100">
              ${this.profileName?lu.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):lu.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})}
            </wui-text>
            <wui-icon-link
              size="md"
              icon="copy"
              iconColor="fg-200"
              @click=${this.onCopyAddress}
            ></wui-icon-link>
          </wui-flex>
          <wui-flex gap="s" flexDirection="column" alignItems="center">
            <wui-text variant="paragraph-500" color="fg-200">
              ${La.formatBalance(this.balance,this.balanceSymbol)}
            </wui-text>

            ${this.explorerBtnTemplate()}
          </wui-flex>
        </wui-flex>
      </wui-flex>

      <wui-flex flexDirection="column" gap="xs" .padding=${["0","s","s","s"]}>
        ${this.emailCardTemplate()} ${this.emailBtnTemplate()}

        <wui-list-item
          .variant=${e?"image":"icon"}
          iconVariant="overlay"
          icon="networkPlaceholder"
          imageSrc=${Ko(e)}
          ?chevron=${this.isAllowedNetworkSwitch()}
          @click=${this.onNetworks.bind(this)}
          data-testid="w3m-account-select-network"
        >
          <wui-text variant="paragraph-500" color="fg-100">
            ${((n=this.network)==null?void 0:n.name)??"Unknown"}
          </wui-text>
        </wui-list-item>
        <wui-list-item
          iconVariant="blue"
          icon="swapHorizontalBold"
          iconSize="sm"
          ?chevron=${!0}
          @click=${this.onTransactions.bind(this)}
        >
          <wui-text variant="paragraph-500" color="fg-100">Activity</wui-text>
        </wui-list-item>
        <wui-list-item
          variant="icon"
          iconVariant="overlay"
          icon="disconnect"
          ?chevron=${!1}
          .loading=${this.disconecting}
          @click=${this.onDisconnect.bind(this)}
          data-testid="disconnect-button"
        >
          <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text>
        </wui-list-item>
      </wui-flex>
    `}emailCardTemplate(){const e=L0.getConnectedConnector(),n=hu.getEmailConnector(),{origin:r}=location;return!n||e!=="EMAIL"||r.includes($R.SECURE_SITE)?null:Mt`
      <wui-notice-card
        @click=${this.onGoToUpgradeView.bind(this)}
        label="Upgrade your wallet"
        description="Transition to a non-custodial wallet"
        icon="wallet"
      ></wui-notice-card>
    `}emailBtnTemplate(){const e=L0.getConnectedConnector(),n=hu.getEmailConnector();if(!n||e!=="EMAIL")return null;const r=n.provider.getEmail()??"";return Mt`
      <wui-list-item
        variant="icon"
        iconVariant="overlay"
        icon="mail"
        iconSize="sm"
        ?chevron=${!0}
        @click=${()=>this.onGoToUpdateEmail(r)}
      >
        <wui-text variant="paragraph-500" color="fg-100">${r}</wui-text>
      </wui-list-item>
    `}explorerBtnTemplate(){const{addressExplorerUrl:e}=jl.state;return e?Mt`
      <wui-button size="sm" variant="shade" @click=${this.onExplorer.bind(this)}>
        <wui-icon size="sm" color="inherit" slot="iconLeft" name="compass"></wui-icon>
        Block Explorer
        <wui-icon size="sm" color="inherit" slot="iconRight" name="externalLink"></wui-icon>
      </wui-button>
    `:null}isAllowedNetworkSwitch(){const{requestedCaipNetworks:e}=dh.state,n=e?e.length>1:!1,r=e==null?void 0:e.find(({id:a})=>{var o;return a===((o=this.network)==null?void 0:o.id)});return n||!r}onCopyAddress(){try{this.address&&(La.copyToClopboard(this.address),fh.showSuccess("Address copied"))}catch{fh.showError("Failed to copy")}}onNetworks(){this.isAllowedNetworkSwitch()&&ca.push("Networks")}onTransactions(){Po.sendEvent({type:"track",event:"CLICK_TRANSACTIONS"}),ca.push("Transactions")}async onDisconnect(){try{this.disconecting=!0,await sl.disconnect(),Po.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),fu.close()}catch{Po.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),fh.showError("Failed to disconnect")}finally{this.disconecting=!1}}onExplorer(){const{addressExplorerUrl:e}=jl.state;e&&La.openHref(e,"_blank")}onGoToUpgradeView(){Po.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),ca.push("UpgradeEmailWallet")}onGoToUpdateEmail(e){ca.push("UpdateEmailWallet",{email:e})}};G2.styles=HLr;aO([Bi()],G2.prototype,"address",void 0);aO([Bi()],G2.prototype,"profileImage",void 0);aO([Bi()],G2.prototype,"profileName",void 0);aO([Bi()],G2.prototype,"balance",void 0);aO([Bi()],G2.prototype,"balanceSymbol",void 0);aO([Bi()],G2.prototype,"network",void 0);aO([Bi()],G2.prototype,"disconecting",void 0);G2=aO([kr("w3m-account-view")],G2);var sZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let wHe=class extends Mr{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=La.debounce(e=>{this.search=e})}render(){const e=this.search.length>=2;return Mt`
      <wui-flex padding="s" gap="s">
        <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
        ${this.qrButtonTemplate()}
      </wui-flex>
      ${e?Mt`<w3m-all-wallets-search query=${this.search}></w3m-all-wallets-search>`:Mt`<w3m-all-wallets-list></w3m-all-wallets-list>`}
    `}onInputChange(e){this.onDebouncedSearch(e.detail)}qrButtonTemplate(){return La.isMobile()?Mt`
        <wui-icon-box
          size="lg"
          iconSize="xl"
          iconColor="accent-100"
          backgroundColor="accent-100"
          icon="qrCode"
          background="transparent"
          border
          borderColor="wui-accent-glass-010"
          @click=${this.onWalletConnectQr.bind(this)}
        ></wui-icon-box>
      `:null}onWalletConnectQr(){ca.push("ConnectingWalletConnect")}};sZt([Bi()],wHe.prototype,"search",void 0);wHe=sZt([kr("w3m-all-wallets-view")],wHe);const ULr=Kr`
  wui-flex {
    max-height: clamp(360px, 540px, 80vh);
    overflow: scroll;
    scrollbar-width: none;
  }

  wui-flex::-webkit-scrollbar {
    display: none;
  }
`;var lZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let x0e=class extends Mr{constructor(){super(),this.unsubscribe=[],this.connectors=hu.state.connectors,this.unsubscribe.push(hu.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return Mt`
      <wui-flex flexDirection="column" padding="s" gap="xs">
        <w3m-email-login-widget></w3m-email-login-widget>

        ${this.walletConnectConnectorTemplate()} ${this.recentTemplate()}
        ${this.announcedTemplate()} ${this.injectedTemplate()} ${this.featuredTemplate()}
        ${this.customTemplate()} ${this.recommendedTemplate()} ${this.connectorsTemplate()}
        ${this.allWalletsTemplate()}
      </wui-flex>
      <w3m-legal-footer></w3m-legal-footer>
    `}walletConnectConnectorTemplate(){if(La.isMobile())return null;const e=this.connectors.find(n=>n.type==="WALLET_CONNECT");return e?Mt`
      <wui-list-wallet
        imageSrc=${Ko(lh.getConnectorImage(e))}
        name=${e.name??"Unknown"}
        @click=${()=>this.onConnector(e)}
        tagLabel="qr code"
        tagVariant="main"
        data-testid="wallet-selector-walletconnect"
      >
      </wui-list-wallet>
    `:null}customTemplate(){const{customWallets:e}=sc.state;return e!=null&&e.length?this.filterOutDuplicateWallets(e).map(r=>Mt`
        <wui-list-wallet
          imageSrc=${Ko(lh.getWalletImage(r))}
          name=${r.name??"Unknown"}
          @click=${()=>this.onConnectWallet(r)}
        >
        </wui-list-wallet>
      `):null}featuredTemplate(){if(!this.connectors.find(a=>a.type==="WALLET_CONNECT"))return null;const{featured:n}=js.state;return n.length?this.filterOutDuplicateWallets(n).map(a=>Mt`
        <wui-list-wallet
          imageSrc=${Ko(lh.getWalletImage(a))}
          name=${a.name??"Unknown"}
          @click=${()=>this.onConnectWallet(a)}
        >
        </wui-list-wallet>
      `):null}recentTemplate(){return L0.getRecentWallets().map(n=>Mt`
        <wui-list-wallet
          imageSrc=${Ko(lh.getWalletImage(n))}
          name=${n.name??"Unknown"}
          @click=${()=>this.onConnectWallet(n)}
          tagLabel="recent"
          tagVariant="shade"
        >
        </wui-list-wallet>
      `)}announcedTemplate(){return this.connectors.map(e=>e.type!=="ANNOUNCED"?null:Mt`
        <wui-list-wallet
          imageSrc=${Ko(lh.getConnectorImage(e))}
          name=${e.name??"Unknown"}
          @click=${()=>this.onConnector(e)}
          tagVariant="success"
          .installed=${!0}
        >
        </wui-list-wallet>
      `)}injectedTemplate(){const e=this.connectors.find(n=>n.type==="ANNOUNCED");return this.connectors.map(n=>n.type!=="INJECTED"||!sl.checkInstalled()?null:Mt`
        <wui-list-wallet
          imageSrc=${Ko(lh.getConnectorImage(n))}
          .installed=${!!e}
          name=${n.name??"Unknown"}
          @click=${()=>this.onConnector(n)}
        >
        </wui-list-wallet>
      `)}connectorsTemplate(){const e=hu.getAnnouncedConnectorRdns();return this.connectors.map(n=>["WALLET_CONNECT","INJECTED","ANNOUNCED","EMAIL"].includes(n.type)||e.includes($R.CONNECTOR_RDNS_MAP[n.id])?null:Mt`
        <wui-list-wallet
          imageSrc=${Ko(lh.getConnectorImage(n))}
          name=${n.name??"Unknown"}
          @click=${()=>this.onConnector(n)}
        >
        </wui-list-wallet>
      `)}allWalletsTemplate(){if(!this.connectors.find(l=>l.type==="WALLET_CONNECT"))return null;const n=js.state.count,r=js.state.featured.length,a=n+r,o=a<10?a:Math.floor(a/10)*10,s=o<a?`${o}+`:`${o}`;return Mt`
      <wui-list-wallet
        name="All Wallets"
        walletIcon="allWallets"
        showAllWallets
        @click=${this.onAllWallets.bind(this)}
        tagLabel=${s}
        tagVariant="shade"
        data-testid="all-wallets"
      ></wui-list-wallet>
    `}recommendedTemplate(){if(!this.connectors.find(h=>h.type==="WALLET_CONNECT"))return null;const{recommended:n}=js.state,{customWallets:r,featuredWalletIds:a}=sc.state,{connectors:o}=hu.state,s=L0.getRecentWallets(),l=o.filter(h=>h.type==="ANNOUNCED");if(a||r||!n.length)return null;const c=l.length+s.length,u=Math.max(0,2-c);return this.filterOutDuplicateWallets(n).slice(0,u).map(h=>Mt`
        <wui-list-wallet
          imageSrc=${Ko(lh.getWalletImage(h))}
          name=${(h==null?void 0:h.name)??"Unknown"}
          @click=${()=>this.onConnectWallet(h)}
        >
        </wui-list-wallet>
      `)}onConnector(e){e.type==="WALLET_CONNECT"?La.isMobile()?ca.push("AllWallets"):ca.push("ConnectingWalletConnect"):ca.push("ConnectingExternal",{connector:e})}filterOutDuplicateWallets(e){const{connectors:n}=hu.state,a=L0.getRecentWallets().map(l=>l.id),o=n.map(l=>{var c;return(c=l.info)==null?void 0:c.rdns}).filter(Boolean);return e.filter(l=>!a.includes(l.id)&&!o.includes(l.rdns??void 0))}onAllWallets(){Po.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),ca.push("AllWallets")}onConnectWallet(e){ca.push("ConnectingWalletConnect",{wallet:e})}};x0e.styles=ULr;lZt([Bi()],x0e.prototype,"connectors",void 0);x0e=lZt([kr("w3m-connect-view")],x0e);const zLr=Kr`
  @keyframes shake {
    0% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(3px);
    }
    50% {
      transform: translateX(-3px);
    }
    75% {
      transform: translateX(3px);
    }
    100% {
      transform: translateX(0);
    }
  }

  wui-flex:first-child:not(:only-child) {
    position: relative;
  }

  wui-loading-thumbnail {
    position: absolute;
  }

  wui-icon-box {
    position: absolute;
    right: calc(var(--wui-spacing-3xs) * -1);
    bottom: calc(var(--wui-spacing-3xs) * -1);
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg);
  }

  wui-text[align='center'] {
    width: 100%;
    padding: 0px var(--wui-spacing-l);
  }

  [data-error='true'] wui-icon-box {
    opacity: 1;
    transform: scale(1);
  }

  [data-error='true'] > wui-flex:first-child {
    animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  }

  [data-retry='false'] wui-link {
    display: none;
  }

  [data-retry='true'] wui-link {
    display: block;
    opacity: 1;
  }
`;var F8=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};class h1 extends Mr{constructor(){var e,n,r,a;super(),this.wallet=(e=ca.state.data)==null?void 0:e.wallet,this.connector=(n=ca.state.data)==null?void 0:n.connector,this.timeout=void 0,this.secondaryBtnLabel="Try again",this.secondaryBtnIcon="refresh",this.secondaryLabel="Accept connection request in the wallet",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=lh.getWalletImage(this.wallet)??lh.getConnectorImage(this.connector),this.name=((r=this.wallet)==null?void 0:r.name)??((a=this.connector)==null?void 0:a.name)??"Wallet",this.isRetrying=!1,this.uri=sl.state.wcUri,this.error=sl.state.wcError,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(sl.subscribeKey("wcUri",o=>{var s;this.uri=o,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,(s=this.onConnect)==null||s.call(this))}),sl.subscribeKey("wcError",o=>this.error=o),sl.subscribeKey("buffering",o=>this.buffering=o))}firstUpdated(){var e;(e=this.onAutoConnect)==null||e.call(this),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearTimeout(this.timeout)}render(){var r;(r=this.onRender)==null||r.call(this),this.onShowRetry();const e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let n=`Continue in ${this.name}`;return this.buffering&&(n="Connecting..."),this.error&&(n="Connection declined"),Mt`
      <wui-flex
        data-error=${Ko(this.error)}
        data-retry=${this.showRetry}
        flexDirection="column"
        alignItems="center"
        .padding=${["3xl","xl","xl","xl"]}
        gap="xl"
      >
        <wui-flex justifyContent="center" alignItems="center">
          <wui-wallet-image size="lg" imageSrc=${Ko(this.imageSrc)}></wui-wallet-image>

          ${this.error?null:this.loaderTemplate()}

          <wui-icon-box
            backgroundColor="error-100"
            background="opaque"
            iconColor="error-100"
            icon="close"
            size="sm"
            border
            borderColor="wui-color-bg-125"
          ></wui-icon-box>
        </wui-flex>

        <wui-flex flexDirection="column" alignItems="center" gap="xs">
          <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}>
            ${n}
          </wui-text>
          <wui-text align="center" variant="small-500" color="fg-200">${e}</wui-text>
        </wui-flex>

        <wui-button
          variant="accent"
          ?disabled=${!this.error&&this.buffering}
          @click=${this.onTryAgain.bind(this)}
        >
          <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon>
          ${this.secondaryBtnLabel}
        </wui-button>
      </wui-flex>

      ${this.isWalletConnect?Mt`
            <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center">
              <wui-link @click=${this.onCopyUri} color="fg-200">
                <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
                Copy link
              </wui-link>
            </wui-flex>
          `:null}

      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
    `}onShowRetry(){var e;if(this.error&&!this.showRetry){this.showRetry=!0;const n=(e=this.shadowRoot)==null?void 0:e.querySelector("wui-button");n==null||n.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){var e,n;this.buffering||(sl.setWcError(!1),this.onRetry?(this.isRetrying=!0,(e=this.onRetry)==null||e.call(this)):(n=this.onConnect)==null||n.call(this))}loaderTemplate(){const e=DA.state.themeVariables["--w3m-border-radius-master"],n=e?parseInt(e.replace("px",""),10):4;return Mt`<wui-loading-thumbnail radius=${n*9}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(La.copyToClopboard(this.uri),fh.showSuccess("Link copied"))}catch{fh.showError("Failed to copy")}}}h1.styles=zLr;F8([Bi()],h1.prototype,"uri",void 0);F8([Bi()],h1.prototype,"error",void 0);F8([Bi()],h1.prototype,"ready",void 0);F8([Bi()],h1.prototype,"showRetry",void 0);F8([Bi()],h1.prototype,"buffering",void 0);F8([Ht({type:Boolean})],h1.prototype,"isMobile",void 0);F8([Ht()],h1.prototype,"onRetry",void 0);var GLr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const VLr={INJECTED:"browser",ANNOUNCED:"browser"};let W0t=class extends h1{constructor(){if(super(),!this.connector)throw new Error("w3m-connecting-view: No connector provided");Po.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:VLr[this.connector.type]??"external"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.imageUrl&&L0.setConnectedWalletImageUrl(this.connector.imageUrl),await sl.connectExternal(this.connector),Fh.state.isSiweEnabled?ca.push("ConnectingSiwe"):fu.close(),Po.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"external"}}))}catch(e){Po.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(e==null?void 0:e.message)??"Unknown"}}),this.error=!0}}};W0t=GLr([kr("w3m-connecting-external-view")],W0t);var cZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let _He=class extends Mr{constructor(){var e;super(...arguments),this.dappName=(e=sc.state.metadata)==null?void 0:e.name,this.isSigning=!1}render(){return Mt`
      <wui-flex justifyContent="center" .padding=${["2xl","0","xxl","0"]}>
        <w3m-connecting-siwe></w3m-connecting-siwe>
      </wui-flex>
      <wui-flex
        .padding=${["0","4xl","l","4xl"]}
        gap="s"
        justifyContent="space-between"
      >
        <wui-text variant="paragraph-500" align="center" color="fg-100"
          >${this.dappName??"Dapp"} needs to connect to your wallet</wui-text
        >
      </wui-flex>
      <wui-flex
        .padding=${["0","3xl","l","3xl"]}
        gap="s"
        justifyContent="space-between"
      >
        <wui-text variant="small-400" align="center" color="fg-200"
          >Sign this message to prove you own this wallet and proceed. Canceling will disconnect
          you.</wui-text
        >
      </wui-flex>
      <wui-flex .padding=${["l","xl","xl","xl"]} gap="s" justifyContent="space-between">
        <wui-button
          size="md"
          ?fullwidth=${!0}
          variant="shade"
          @click=${this.onCancel.bind(this)}
          data-testid="w3m-connecting-siwe-cancel"
        >
          Cancel
        </wui-button>
        <wui-button
          size="md"
          ?fullwidth=${!0}
          variant="fill"
          @click=${this.onSign.bind(this)}
          ?loading=${this.isSigning}
          data-testid="w3m-connecting-siwe-sign"
        >
          ${this.isSigning?"Signing...":"Sign"}
        </wui-button>
      </wui-flex>
    `}async onSign(){this.isSigning=!0,Po.sendEvent({event:"CLICK_SIGN_SIWE_MESSAGE",type:"track"});try{Fh.setStatus("loading");const e=await Fh.signIn();return Fh.setStatus("success"),Po.sendEvent({event:"SIWE_AUTH_SUCCESS",type:"track"}),e}catch{return fh.showError("Signature declined"),Fh.setStatus("error"),Po.sendEvent({event:"SIWE_AUTH_ERROR",type:"track"})}finally{this.isSigning=!1}}async onCancel(){const{isConnected:e}=jl.state;e?(await sl.disconnect(),fu.close()):ca.push("Connect"),Po.sendEvent({event:"CLICK_CANCEL_SIWE",type:"track"})}};cZt([Bi()],_He.prototype,"isSigning",void 0);_He=cZt([kr("w3m-connecting-siwe-view")],_He);var eet=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let E0e=class extends Mr{constructor(){var e;super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=(e=ca.state.data)==null?void 0:e.wallet,this.platform=void 0,this.platforms=[],this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),$R.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(this.determinePlatforms(),Mt`
      ${this.headerTemplate()}
      <div>${this.platformTemplate()}</div>
    `):Mt`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`}async initializeConnection(e=!1){try{const{wcPairingExpiry:n}=sl.state;if(e||La.isPairingExpired(n)){if(sl.connectWalletConnect(),this.wallet){const r=lh.getWalletImage(this.wallet);r&&L0.setConnectedWalletImageUrl(r)}else{const a=hu.state.connectors.find(s=>s.type==="WALLET_CONNECT"),o=lh.getConnectorImage(a);o&&L0.setConnectedWalletImageUrl(o)}await sl.state.wcPromise,this.finalizeConnection(),Fh.state.isSiweEnabled?ca.push("ConnectingSiwe"):fu.close()}}catch(n){Po.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(n==null?void 0:n.message)??"Unknown"}}),sl.setWcError(!0),La.isAllowedRetry(this.lastRetry)&&(fh.showError("Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0))}}finalizeConnection(){const{wcLinking:e,recentWallet:n}=sl.state;e&&L0.setWalletConnectDeepLink(e),n&&L0.setWeb3ModalRecent(n),Po.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:e?"mobile":"qrcode"}})}determinePlatforms(){if(!this.wallet)throw new Error("w3m-connecting-wc-view:determinePlatforms No wallet");if(this.platform)return;const{mobile_link:e,desktop_link:n,webapp_link:r,injected:a,rdns:o}=this.wallet,s=a==null?void 0:a.map(({injected_id:m})=>m).filter(Boolean),l=o?[o]:s??[],c=l.length,u=e,d=r,h=sl.checkInstalled(l),f=c&&h,p=n&&!La.isMobile();f&&this.platforms.push("browser"),u&&this.platforms.push(La.isMobile()?"mobile":"qrcode"),d&&this.platforms.push("web"),p&&this.platforms.push("desktop"),!f&&c&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return Mt`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"desktop":return Mt`
          <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
          </w3m-connecting-wc-desktop>
        `;case"web":return Mt`
          <w3m-connecting-wc-web .onRetry=${()=>this.initializeConnection(!0)}>
          </w3m-connecting-wc-web>
        `;case"mobile":return Mt`
          <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>
          </w3m-connecting-wc-mobile>
        `;case"qrcode":return Mt`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return Mt`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?Mt`
      <w3m-connecting-header
        .platforms=${this.platforms}
        .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
      >
      </w3m-connecting-header>
    `:null}async onSelectPlatform(e){var r;const n=(r=this.shadowRoot)==null?void 0:r.querySelector("div");n&&(await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};eet([Bi()],E0e.prototype,"platform",void 0);eet([Bi()],E0e.prototype,"platforms",void 0);E0e=eet([kr("w3m-connecting-wc-view")],E0e);var KLr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Q0t=class extends Mr{constructor(){var e;super(...arguments),this.wallet=(e=ca.state.data)==null?void 0:e.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return Mt`
      <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
        ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
        ${this.homepageTemplate()}
      </wui-flex>
    `}chromeTemplate(){var e;return(e=this.wallet)!=null&&e.chrome_store?Mt`<wui-list-item
      variant="icon"
      icon="chromeStore"
      iconVariant="square"
      @click=${this.onChromeStore.bind(this)}
      chevron
    >
      <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>
    </wui-list-item>`:null}iosTemplate(){var e;return(e=this.wallet)!=null&&e.app_store?Mt`<wui-list-item
      variant="icon"
      icon="appStore"
      iconVariant="square"
      @click=${this.onAppStore.bind(this)}
      chevron
    >
      <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>
    </wui-list-item>`:null}androidTemplate(){var e;return(e=this.wallet)!=null&&e.play_store?Mt`<wui-list-item
      variant="icon"
      icon="playStore"
      iconVariant="square"
      @click=${this.onPlayStore.bind(this)}
      chevron
    >
      <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>
    </wui-list-item>`:null}homepageTemplate(){var e;return(e=this.wallet)!=null&&e.homepage?Mt`
      <wui-list-item
        variant="icon"
        icon="browser"
        iconVariant="square-blue"
        @click=${this.onHomePage.bind(this)}
        chevron
      >
        <wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
      </wui-list-item>
    `:null}onChromeStore(){var e;(e=this.wallet)!=null&&e.chrome_store&&La.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){var e;(e=this.wallet)!=null&&e.app_store&&La.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;(e=this.wallet)!=null&&e.play_store&&La.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;(e=this.wallet)!=null&&e.homepage&&La.openHref(this.wallet.homepage,"_blank")}};Q0t=KLr([kr("w3m-downloads-view")],Q0t);var WLr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const QLr="https://walletconnect.com/explorer";let q0t=class extends Mr{render(){return Mt`
      <wui-flex flexDirection="column" padding="s" gap="xs">
        ${this.recommendedWalletsTemplate()}
        <wui-list-wallet
          name="Explore all"
          showAllWallets
          walletIcon="allWallets"
          icon="externalLink"
          @click=${()=>{La.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}}
        ></wui-list-wallet>
      </wui-flex>
    `}recommendedWalletsTemplate(){const{recommended:e,featured:n}=js.state,{customWallets:r}=sc.state;return[...n,...r??[],...e].slice(0,4).map(o=>Mt`
        <wui-list-wallet
          name=${o.name??"Unknown"}
          tagVariant="main"
          imageSrc=${Ko(lh.getWalletImage(o))}
          @click=${()=>{La.openHref(o.homepage??QLr,"_blank")}}
        ></wui-list-wallet>
      `)}};q0t=WLr([kr("w3m-get-wallet-view")],q0t);const qLr=Kr`
  @keyframes shake {
    0% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(3px);
    }
    50% {
      transform: translateX(-3px);
    }
    75% {
      transform: translateX(3px);
    }
    100% {
      transform: translateX(0);
    }
  }

  wui-flex:first-child:not(:only-child) {
    position: relative;
  }

  wui-loading-hexagon {
    position: absolute;
  }

  wui-icon-box {
    position: absolute;
    right: 4px;
    bottom: 0;
    opacity: 0;
    transform: scale(0.5);
    z-index: 1;
    transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg);
  }

  wui-button {
    display: none;
  }

  [data-error='true'] wui-icon-box {
    opacity: 1;
    transform: scale(1);
  }

  [data-error='true'] > wui-flex:first-child {
    animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  }

  wui-button[data-retry='true'] {
    display: block;
    opacity: 1;
  }
`;var tet=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let Vte=class extends Mr{constructor(){var e;super(),this.network=(e=ca.state.data)==null?void 0:e.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw new Error("w3m-network-switch-view: No network provided");this.onShowRetry();const e=this.error?"Switch declined":"Approve in wallet",n=this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet";return Mt`
      <wui-flex
        data-error=${this.error}
        flexDirection="column"
        alignItems="center"
        .padding=${["3xl","xl","3xl","xl"]}
        gap="xl"
      >
        <wui-flex justifyContent="center" alignItems="center">
          <wui-network-image
            size="lg"
            imageSrc=${Ko(lh.getNetworkImage(this.network))}
          ></wui-network-image>

          ${this.error?null:Mt`<wui-loading-hexagon></wui-loading-hexagon>`}

          <wui-icon-box
            backgroundColor="error-100"
            background="opaque"
            iconColor="error-100"
            icon="close"
            size="sm"
            ?border=${!0}
            borderColor="wui-color-bg-125"
          ></wui-icon-box>
        </wui-flex>

        <wui-flex flexDirection="column" alignItems="center" gap="xs">
          <wui-text align="center" variant="paragraph-500" color="fg-100">${e}</wui-text>
          <wui-text align="center" variant="small-500" color="fg-200">${n}</wui-text>
        </wui-flex>

        <wui-button
          data-retry=${this.showRetry}
          variant="fill"
          .disabled=${!this.error}
          @click=${this.onSwitchNetwork.bind(this)}
        >
          <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon>
          Try again
        </wui-button>
      </wui-flex>
    `}onShowRetry(){var e;if(this.error&&!this.showRetry){this.showRetry=!0;const n=(e=this.shadowRoot)==null?void 0:e.querySelector("wui-button");n==null||n.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&(await dh.switchActiveNetwork(this.network),Fh.state.isSiweEnabled||oJt.navigateAfterNetworkSwitch())}catch{this.error=!0}}};Vte.styles=qLr;tet([Bi()],Vte.prototype,"showRetry",void 0);tet([Bi()],Vte.prototype,"error",void 0);Vte=tet([kr("w3m-network-switch-view")],Vte);const YLr=Kr`
  :host > wui-grid {
    max-height: 360px;
    overflow: auto;
  }

  wui-grid::-webkit-scrollbar {
    display: none;
  }
`;var uZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let S0e=class extends Mr{constructor(){super(),this.unsubscribe=[],this.caipNetwork=dh.state.caipNetwork,this.unsubscribe.push(dh.subscribeKey("caipNetwork",e=>this.caipNetwork=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return Mt`
      <wui-grid padding="s" gridTemplateColumns="repeat(4, 1fr)" rowGap="l" columnGap="xs">
        ${this.networksTemplate()}
      </wui-grid>

      <wui-separator></wui-separator>

      <wui-flex padding="s" flexDirection="column" gap="m" alignItems="center">
        <wui-text variant="small-400" color="fg-300" align="center">
          Your connected wallet may not support some of the networks available for this dApp
        </wui-text>
        <wui-link @click=${this.onNetworkHelp.bind(this)}>
          <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon>
          What is a network
        </wui-link>
      </wui-flex>
    `}onNetworkHelp(){Po.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),ca.push("WhatIsANetwork")}networksTemplate(){const{approvedCaipNetworkIds:e,requestedCaipNetworks:n,supportsAllNetworks:r}=dh.state,a=e,o=n,s={};return o&&a&&(a.forEach((l,c)=>{s[l]=c}),o.sort((l,c)=>{const u=s[l.id],d=s[c.id];return u!==void 0&&d!==void 0?u-d:u!==void 0?-1:d!==void 0?1:0})),o==null?void 0:o.map(l=>{var c;return Mt`
        <wui-card-select
          .selected=${((c=this.caipNetwork)==null?void 0:c.id)===l.id}
          imageSrc=${Ko(lh.getNetworkImage(l))}
          type="network"
          name=${l.name??l.id}
          @click=${()=>this.onSwitchNetwork(l)}
          .disabled=${!r&&!(a!=null&&a.includes(l.id))}
          data-testid=${`w3m-network-switch-${l.name??l.id}`}
        ></wui-card-select>
      `})}async onSwitchNetwork(e){const{isConnected:n}=jl.state,{approvedCaipNetworkIds:r,supportsAllNetworks:a,caipNetwork:o}=dh.state,{data:s}=ca.state;n&&(o==null?void 0:o.id)!==e.id?r!=null&&r.includes(e.id)?(await dh.switchActiveNetwork(e),oJt.navigateAfterNetworkSwitch()):a&&ca.push("SwitchNetwork",{...s,network:e}):n||(dh.setCaipNetwork(e),ca.push("Connect"))}};S0e.styles=YLr;uZt([Bi()],S0e.prototype,"caipNetwork",void 0);S0e=uZt([kr("w3m-networks-view")],S0e);const JLr=Kr`
  :host > wui-flex:first-child {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }
`;var j8=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const fce="last-transaction",ZLr=7;let bM=class extends Mr{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.address=jl.state.address,this.transactions=wS.state.transactions,this.transactionsByYear=wS.state.transactionsByYear,this.loading=wS.state.loading,this.empty=wS.state.empty,this.next=wS.state.next,this.unsubscribe.push(jl.subscribe(e=>{e.isConnected&&this.address!==e.address&&(this.address=e.address,wS.resetTransactions(),wS.fetchTransactions(e.address))}),wS.subscribe(e=>{this.transactions=e.transactions,this.transactionsByYear=e.transactionsByYear,this.loading=e.loading,this.empty=e.empty,this.next=e.next}))}firstUpdated(){this.transactions.length===0&&wS.fetchTransactions(this.address),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return Mt`
      <wui-flex flexDirection="column" padding="s" gap="s">
        ${this.empty?null:this.templateTransactionsByYear()}
        ${this.loading?this.templateLoading():null}
        ${!this.loading&&this.empty?this.templateEmpty():null}
      </wui-flex>
    `}templateTransactionsByYear(){const e=Object.keys(this.transactionsByYear).sort().reverse();return e.map((n,r)=>{const a=r===e.length-1,o=parseInt(n,10),s=zF.getTransactionGroupTitle(o),l=this.transactionsByYear[o];return l?Mt`
        <wui-flex flexDirection="column" gap="s">
          <wui-flex
            alignItems="center"
            flexDirection="row"
            .padding=${["xs","s","s","s"]}
          >
            <wui-text variant="paragraph-500" color="fg-200">${s}</wui-text>
          </wui-flex>
          <wui-flex flexDirection="column" gap="xs">
            ${this.templateTransactions(l,a)}
          </wui-flex>
        </wui-flex>
      `:null})}templateRenderTransaction(e,n){const{date:r,descriptions:a,direction:o,isAllNFT:s,images:l,status:c,transfers:u,type:d}=this.getTransactionListItemProps(e),h=(u==null?void 0:u.length)>1;return(u==null?void 0:u.length)===2&&!s?Mt`
        <wui-transaction-list-item
          date=${r}
          .direction=${o}
          id=${n&&this.next?fce:""}
          status=${c}
          type=${d}
          .images=${l}
          .descriptions=${a}
        ></wui-transaction-list-item>
      `:h?u.map((p,m)=>{const g=zF.getTransferDescription(p),v=n&&m===u.length-1;return Mt` <wui-transaction-list-item
          date=${r}
          direction=${p.direction}
          id=${v&&this.next?fce:""}
          status=${c}
          type=${d}
          .onlyDirectionIcon=${!0}
          .images=${[l==null?void 0:l[m]]}
          .descriptions=${[g]}
        ></wui-transaction-list-item>`}):Mt`
      <wui-transaction-list-item
        date=${r}
        .direction=${o}
        id=${n&&this.next?fce:""}
        status=${c}
        type=${d}
        .images=${l}
        .descriptions=${a}
      ></wui-transaction-list-item>
    `}templateTransactions(e,n){return e.map((r,a)=>{const o=n&&a===e.length-1;return Mt`${this.templateRenderTransaction(r,o)}`})}templateEmpty(){return Mt`
      <wui-flex
        flexGrow="1"
        flexDirection="column"
        justifyContent="center"
        alignItems="center"
        .padding=${["3xl","xl","3xl","xl"]}
        gap="xl"
      >
        <wui-icon-box
          backgroundColor="glass-005"
          background="gray"
          iconColor="fg-200"
          icon="wallet"
          size="lg"
          ?border=${!0}
          borderColor="wui-color-bg-125"
        ></wui-icon-box>
        <wui-flex flexDirection="column" alignItems="center" gap="xs">
          <wui-text align="center" variant="paragraph-500" color="fg-100"
            >No Transactions yet</wui-text
          >
          <wui-text align="center" variant="small-500" color="fg-200"
            >Start trading on dApps <br />
            to grow your wallet!</wui-text
          >
        </wui-flex>
      </wui-flex>
    `}templateLoading(){return Array(ZLr).fill(Mt` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e)}createPaginationObserver(){const{projectId:e}=sc.state;this.paginationObserver=new IntersectionObserver(([n])=>{n!=null&&n.isIntersecting&&!this.loading&&(wS.fetchTransactions(this.address),Po.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:this.address,projectId:e,cursor:this.next}}))},{}),this.setPaginationObserver()}setPaginationObserver(){var n,r,a;(n=this.paginationObserver)==null||n.disconnect();const e=(r=this.shadowRoot)==null?void 0:r.querySelector(`#${fce}`);e&&((a=this.paginationObserver)==null||a.observe(e))}getTransactionListItemProps(e){var c,u,d,h,f;const n=aZt.getRelativeDateFromNow((c=e==null?void 0:e.metadata)==null?void 0:c.minedAt),r=zF.getTransactionDescriptions(e),a=e==null?void 0:e.transfers,o=(u=e==null?void 0:e.transfers)==null?void 0:u[0],s=!!o&&((d=e==null?void 0:e.transfers)==null?void 0:d.every(p=>!!p.nft_info)),l=zF.getTransactionImages(a);return{date:n,direction:o==null?void 0:o.direction,descriptions:r,isAllNFT:s,images:l,status:(h=e.metadata)==null?void 0:h.status,transfers:a,type:(f=e.metadata)==null?void 0:f.operationType}}};bM.styles=JLr;j8([Bi()],bM.prototype,"address",void 0);j8([Bi()],bM.prototype,"transactions",void 0);j8([Bi()],bM.prototype,"transactionsByYear",void 0);j8([Bi()],bM.prototype,"loading",void 0);j8([Bi()],bM.prototype,"empty",void 0);j8([Bi()],bM.prototype,"next",void 0);bM=j8([kr("w3m-transactions-view")],bM);var XLr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const eBr=[{images:["network","layers","system"],title:"The system’s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}];let Y0t=class extends Mr{render(){return Mt`
      <wui-flex
        flexDirection="column"
        .padding=${["xxl","xl","xl","xl"]}
        alignItems="center"
        gap="xl"
      >
        <w3m-help-widget .data=${eBr}></w3m-help-widget>
        <wui-button
          variant="fill"
          size="sm"
          @click=${()=>{La.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}}
        >
          Learn more
          <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
        </wui-button>
      </wui-flex>
    `}};Y0t=XLr([kr("w3m-what-is-a-network-view")],Y0t);var tBr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const nBr=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}];let J0t=class extends Mr{render(){return Mt`
      <wui-flex
        flexDirection="column"
        .padding=${["xxl","xl","xl","xl"]}
        alignItems="center"
        gap="xl"
      >
        <w3m-help-widget .data=${nBr}></w3m-help-widget>
        <wui-button variant="fill" size="sm" @click=${this.onGetWallet.bind(this)}>
          <wui-icon color="inherit" slot="iconLeft" name="wallet"></wui-icon>
          Get a wallet
        </wui-button>
      </wui-flex>
    `}onGetWallet(){Po.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),ca.push("GetWallet")}};J0t=tBr([kr("w3m-what-is-a-wallet-view")],J0t);const rBr=Kr`
  wui-loading-spinner {
    margin: 9px auto;
  }
`,$j={SECURE_SITE_SDK:"https://secure.web3modal.com/sdk",APP_EVENT_KEY:"@w3m-app/",FRAME_EVENT_KEY:"@w3m-frame/",RPC_METHOD_KEY:"RPC_",STORAGE_KEY:"@w3m-storage/",SESSION_TOKEN_KEY:"SESSION_TOKEN_KEY",EMAIL_LOGIN_USED_KEY:"EMAIL_LOGIN_USED_KEY",LAST_USED_CHAIN_KEY:"LAST_USED_CHAIN_KEY",LAST_EMAIL_LOGIN_TIME:"LAST_EMAIL_LOGIN_TIME",EMAIL:"EMAIL",APP_SWITCH_NETWORK:"@w3m-app/SWITCH_NETWORK",APP_CONNECT_EMAIL:"@w3m-app/CONNECT_EMAIL",APP_CONNECT_DEVICE:"@w3m-app/CONNECT_DEVICE",APP_CONNECT_OTP:"@w3m-app/CONNECT_OTP",APP_GET_USER:"@w3m-app/GET_USER",APP_SIGN_OUT:"@w3m-app/SIGN_OUT",APP_IS_CONNECTED:"@w3m-app/IS_CONNECTED",APP_GET_CHAIN_ID:"@w3m-app/GET_CHAIN_ID",APP_RPC_REQUEST:"@w3m-app/RPC_REQUEST",APP_UPDATE_EMAIL:"@w3m-app/UPDATE_EMAIL",APP_AWAIT_UPDATE_EMAIL:"@w3m-app/AWAIT_UPDATE_EMAIL",APP_SYNC_THEME:"@w3m-app/SYNC_THEME",APP_SYNC_DAPP_DATA:"@w3m-app/SYNC_DAPP_DATA",FRAME_SWITCH_NETWORK_ERROR:"@w3m-frame/SWITCH_NETWORK_ERROR",FRAME_SWITCH_NETWORK_SUCCESS:"@w3m-frame/SWITCH_NETWORK_SUCCESS",FRAME_CONNECT_EMAIL_ERROR:"@w3m-frame/CONNECT_EMAIL_ERROR",FRAME_CONNECT_EMAIL_SUCCESS:"@w3m-frame/CONNECT_EMAIL_SUCCESS",FRAME_CONNECT_DEVICE_ERROR:"@w3m-frame/CONNECT_DEVICE_ERROR",FRAME_CONNECT_DEVICE_SUCCESS:"@w3m-frame/CONNECT_DEVICE_SUCCESS",FRAME_CONNECT_OTP_SUCCESS:"@w3m-frame/CONNECT_OTP_SUCCESS",FRAME_CONNECT_OTP_ERROR:"@w3m-frame/CONNECT_OTP_ERROR",FRAME_GET_USER_SUCCESS:"@w3m-frame/GET_USER_SUCCESS",FRAME_GET_USER_ERROR:"@w3m-frame/GET_USER_ERROR",FRAME_SIGN_OUT_SUCCESS:"@w3m-frame/SIGN_OUT_SUCCESS",FRAME_SIGN_OUT_ERROR:"@w3m-frame/SIGN_OUT_ERROR",FRAME_IS_CONNECTED_SUCCESS:"@w3m-frame/IS_CONNECTED_SUCCESS",FRAME_IS_CONNECTED_ERROR:"@w3m-frame/IS_CONNECTED_ERROR",FRAME_GET_CHAIN_ID_SUCCESS:"@w3m-frame/GET_CHAIN_ID_SUCCESS",FRAME_GET_CHAIN_ID_ERROR:"@w3m-frame/GET_CHAIN_ID_ERROR",FRAME_RPC_REQUEST_SUCCESS:"@w3m-frame/RPC_REQUEST_SUCCESS",FRAME_RPC_REQUEST_ERROR:"@w3m-frame/RPC_REQUEST_ERROR",FRAME_SESSION_UPDATE:"@w3m-frame/SESSION_UPDATE",FRAME_UPDATE_EMAIL_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SUCCESS",FRAME_UPDATE_EMAIL_ERROR:"@w3m-frame/UPDATE_EMAIL_ERROR",FRAME_AWAIT_UPDATE_EMAIL_SUCCESS:"@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS",FRAME_AWAIT_UPDATE_EMAIL_ERROR:"@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR",FRAME_SYNC_THEME_SUCCESS:"@w3m-frame/SYNC_THEME_SUCCESS",FRAME_SYNC_THEME_ERROR:"@w3m-frame/SYNC_THEME_ERROR",FRAME_SYNC_DAPP_DATA_SUCCESS:"@w3m-frame/SYNC_DAPP_DATA_SUCCESS",FRAME_SYNC_DAPP_DATA_ERROR:"@w3m-frame/SYNC_DAPP_DATA_ERROR"};var zl;(function(t){t.assertEqual=a=>a;function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{const o={};for(const s of a)o[s]=s;return o},t.getValidEnumValues=a=>{const o=t.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),s={};for(const l of o)s[l]=a[l];return t.objectValues(s)},t.objectValues=a=>t.objectKeys(a).map(function(o){return a[o]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&o.push(s);return o},t.find=(a,o)=>{for(const s of a)if(o(s))return s},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,o=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(zl||(zl={}));var THe;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(THe||(THe={}));const Ti=zl.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_3=t=>{switch(typeof t){case"undefined":return Ti.undefined;case"string":return Ti.string;case"number":return isNaN(t)?Ti.nan:Ti.number;case"boolean":return Ti.boolean;case"function":return Ti.function;case"bigint":return Ti.bigint;case"symbol":return Ti.symbol;case"object":return Array.isArray(t)?Ti.array:t===null?Ti.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Ti.promise:typeof Map<"u"&&t instanceof Map?Ti.map:typeof Set<"u"&&t instanceof Set?Ti.set:typeof Date<"u"&&t instanceof Date?Ti.date:Ti.object;default:return Ti.unknown}},Or=zl.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),iBr=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class pw extends Error{constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const n=e||function(o){return o.message},r={_errors:[]},a=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let l=r,c=0;for(;c<s.path.length;){const u=s.path[c];c===s.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(s))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return a(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,zl.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(e(a))):r.push(e(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}pw.create=t=>new pw(t);const Kte=(t,e)=>{let n;switch(t.code){case Or.invalid_type:t.received===Ti.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case Or.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,zl.jsonStringifyReplacer)}`;break;case Or.unrecognized_keys:n=`Unrecognized key(s) in object: ${zl.joinValues(t.keys,", ")}`;break;case Or.invalid_union:n="Invalid input";break;case Or.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${zl.joinValues(t.options)}`;break;case Or.invalid_enum_value:n=`Invalid enum value. Expected ${zl.joinValues(t.options)}, received '${t.received}'`;break;case Or.invalid_arguments:n="Invalid function arguments";break;case Or.invalid_return_type:n="Invalid function return type";break;case Or.invalid_date:n="Invalid date";break;case Or.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:zl.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case Or.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case Or.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case Or.custom:n="Invalid input";break;case Or.invalid_intersection_types:n="Intersection results could not be merged";break;case Or.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Or.not_finite:n="Number must be finite";break;default:n=e.defaultError,zl.assertNever(t)}return{message:n}};let dZt=Kte;function aBr(t){dZt=t}function w0e(){return dZt}const _0e=t=>{const{data:e,path:n,errorMaps:r,issueData:a}=t,o=[...n,...a.path||[]],s={...a,path:o};let l="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)l=u(s,{data:e,defaultError:l}).message;return{...a,path:o,message:a.message||l}},oBr=[];function $i(t,e){const n=_0e({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,w0e(),Kte].filter(r=>!!r)});t.common.issues.push(n)}class Sv{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const a of n){if(a.status==="aborted")return Oo;a.status==="dirty"&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const a of n)r.push({key:await a.key,value:await a.value});return Sv.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const a of n){const{key:o,value:s}=a;if(o.status==="aborted"||s.status==="aborted")return Oo;o.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(r[o.value]=s.value)}return{status:e.value,value:r}}}const Oo=Object.freeze({status:"aborted"}),hZt=t=>({status:"dirty",value:t}),z0=t=>({status:"valid",value:t}),CHe=t=>t.status==="aborted",kHe=t=>t.status==="dirty",Wte=t=>t.status==="valid",T0e=t=>typeof Promise<"u"&&t instanceof Promise;var ja;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ja||(ja={}));class V2{constructor(e,n,r,a){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Z0t=(t,e)=>{if(Wte(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new pw(t.common.issues);return this._error=n,this._error}}};function qo(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:a}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,l)=>s.code!=="invalid_type"?{message:l.defaultError}:typeof l.data>"u"?{message:r??l.defaultError}:{message:n??l.defaultError},description:a}}class gs{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return _3(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:_3(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Sv,ctx:{common:e.parent.common,data:e.data,parsedType:_3(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(T0e(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_3(e)},o=this._parseSync({data:e,path:a.path,parent:a});return Z0t(a,o)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_3(e)},a=this._parse({data:e,path:r.path,parent:r}),o=await(T0e(a)?a:Promise.resolve(a));return Z0t(r,o)}refine(e,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,o)=>{const s=e(a),l=()=>o.addIssue({code:Or.custom,...r(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(l(),!1)):s?!0:(l(),!1)})}refinement(e,n){return this._refinement((r,a)=>e(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(e){return new Iw({schema:this,typeName:eo.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return XR.create(this,this._def)}nullable(){return _6.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mw.create(this,this._def)}promise(){return yU.create(this,this._def)}or(e){return Jte.create([this,e],this._def)}and(e){return Zte.create(this,e,this._def)}transform(e){return new Iw({...qo(this._def),schema:this,typeName:eo.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new rne({...qo(this._def),innerType:this,defaultValue:n,typeName:eo.ZodDefault})}brand(){return new pZt({typeName:eo.ZodBranded,type:this,...qo(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new M0e({...qo(this._def),innerType:this,catchValue:n,typeName:eo.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return fae.create(this,e)}readonly(){return I0e.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sBr=/^c[^\s-]{8,}$/i,lBr=/^[a-z][a-z0-9]*$/,cBr=/^[0-9A-HJKMNP-TV-Z]{26}$/,uBr=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,dBr=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,hBr="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let L5e;const fBr=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,pBr=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,mBr=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function gBr(t,e){return!!((e==="v4"||!e)&&fBr.test(t)||(e==="v6"||!e)&&pBr.test(t))}class tw extends gs{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ti.string){const o=this._getOrReturnCtx(e);return $i(o,{code:Or.invalid_type,expected:Ti.string,received:o.parsedType}),Oo}const r=new Sv;let a;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")e.data.length>o.value&&(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=e.data.length>o.value,l=e.data.length<o.value;(s||l)&&(a=this._getOrReturnCtx(e,a),s?$i(a,{code:Or.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&$i(a,{code:Or.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")dBr.test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"email",code:Or.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")L5e||(L5e=new RegExp(hBr,"u")),L5e.test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"emoji",code:Or.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")uBr.test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"uuid",code:Or.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")sBr.test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"cuid",code:Or.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")lBr.test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"cuid2",code:Or.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")cBr.test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"ulid",code:Or.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),$i(a,{validation:"url",code:Or.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"regex",code:Or.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?mBr(o).test(e.data)||(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="ip"?gBr(e.data,o.version)||(a=this._getOrReturnCtx(e,a),$i(a,{validation:"ip",code:Or.invalid_string,message:o.message}),r.dirty()):zl.assertNever(o);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(a=>e.test(a),{validation:n,code:Or.invalid_string,...ja.errToObj(r)})}_addCheck(e){return new tw({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ja.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ja.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ja.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ja.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ja.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ja.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ja.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ja.errToObj(e)})}datetime(e){var n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,...ja.errToObj(e==null?void 0:e.message)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...ja.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...ja.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...ja.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...ja.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...ja.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...ja.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...ja.errToObj(n)})}nonempty(e){return this.min(1,ja.errToObj(e))}trim(){return new tw({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new tw({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new tw({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}tw.create=t=>{var e;return new tw({checks:[],typeName:eo.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...qo(t)})};function vBr(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=n>r?n:r,o=parseInt(t.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return o%s/Math.pow(10,a)}class tP extends gs{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ti.number){const o=this._getOrReturnCtx(e);return $i(o,{code:Or.invalid_type,expected:Ti.number,received:o.parsedType}),Oo}let r;const a=new Sv;for(const o of this._def.checks)o.kind==="int"?zl.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?vBr(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.not_finite,message:o.message}),a.dirty()):zl.assertNever(o);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ja.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ja.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ja.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ja.toString(n))}setLimit(e,n,r,a){return new tP({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ja.toString(a)}]})}_addCheck(e){return new tP({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ja.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ja.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ja.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ja.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ja.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ja.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:ja.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ja.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ja.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&zl.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}tP.create=t=>new tP({checks:[],typeName:eo.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...qo(t)});class nP extends gs{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ti.bigint){const o=this._getOrReturnCtx(e);return $i(o,{code:Or.invalid_type,expected:Ti.bigint,received:o.parsedType}),Oo}let r;const a=new Sv;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),$i(r,{code:Or.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):zl.assertNever(o);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ja.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ja.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ja.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ja.toString(n))}setLimit(e,n,r,a){return new nP({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ja.toString(a)}]})}_addCheck(e){return new nP({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ja.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ja.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ja.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ja.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ja.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}nP.create=t=>{var e;return new nP({checks:[],typeName:eo.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...qo(t)})};class Qte extends gs{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ti.boolean){const r=this._getOrReturnCtx(e);return $i(r,{code:Or.invalid_type,expected:Ti.boolean,received:r.parsedType}),Oo}return z0(e.data)}}Qte.create=t=>new Qte({typeName:eo.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...qo(t)});class S6 extends gs{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ti.date){const o=this._getOrReturnCtx(e);return $i(o,{code:Or.invalid_type,expected:Ti.date,received:o.parsedType}),Oo}if(isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return $i(o,{code:Or.invalid_date}),Oo}const r=new Sv;let a;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(a=this._getOrReturnCtx(e,a),$i(a,{code:Or.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):zl.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new S6({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:ja.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:ja.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}S6.create=t=>new S6({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:eo.ZodDate,...qo(t)});class C0e extends gs{_parse(e){if(this._getType(e)!==Ti.symbol){const r=this._getOrReturnCtx(e);return $i(r,{code:Or.invalid_type,expected:Ti.symbol,received:r.parsedType}),Oo}return z0(e.data)}}C0e.create=t=>new C0e({typeName:eo.ZodSymbol,...qo(t)});class qte extends gs{_parse(e){if(this._getType(e)!==Ti.undefined){const r=this._getOrReturnCtx(e);return $i(r,{code:Or.invalid_type,expected:Ti.undefined,received:r.parsedType}),Oo}return z0(e.data)}}qte.create=t=>new qte({typeName:eo.ZodUndefined,...qo(t)});class Yte extends gs{_parse(e){if(this._getType(e)!==Ti.null){const r=this._getOrReturnCtx(e);return $i(r,{code:Or.invalid_type,expected:Ti.null,received:r.parsedType}),Oo}return z0(e.data)}}Yte.create=t=>new Yte({typeName:eo.ZodNull,...qo(t)});class AU extends gs{constructor(){super(...arguments),this._any=!0}_parse(e){return z0(e.data)}}AU.create=t=>new AU({typeName:eo.ZodAny,...qo(t)});class yD extends gs{constructor(){super(...arguments),this._unknown=!0}_parse(e){return z0(e.data)}}yD.create=t=>new yD({typeName:eo.ZodUnknown,...qo(t)});class xM extends gs{_parse(e){const n=this._getOrReturnCtx(e);return $i(n,{code:Or.invalid_type,expected:Ti.never,received:n.parsedType}),Oo}}xM.create=t=>new xM({typeName:eo.ZodNever,...qo(t)});class k0e extends gs{_parse(e){if(this._getType(e)!==Ti.undefined){const r=this._getOrReturnCtx(e);return $i(r,{code:Or.invalid_type,expected:Ti.void,received:r.parsedType}),Oo}return z0(e.data)}}k0e.create=t=>new k0e({typeName:eo.ZodVoid,...qo(t)});class mw extends gs{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),a=this._def;if(n.parsedType!==Ti.array)return $i(n,{code:Or.invalid_type,expected:Ti.array,received:n.parsedType}),Oo;if(a.exactLength!==null){const s=n.data.length>a.exactLength.value,l=n.data.length<a.exactLength.value;(s||l)&&($i(n,{code:s?Or.too_big:Or.too_small,minimum:l?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&($i(n,{code:Or.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&($i(n,{code:Or.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,l)=>a.type._parseAsync(new V2(n,s,n.path,l)))).then(s=>Sv.mergeArray(r,s));const o=[...n.data].map((s,l)=>a.type._parseSync(new V2(n,s,n.path,l)));return Sv.mergeArray(r,o)}get element(){return this._def.type}min(e,n){return new mw({...this._def,minLength:{value:e,message:ja.toString(n)}})}max(e,n){return new mw({...this._def,maxLength:{value:e,message:ja.toString(n)}})}length(e,n){return new mw({...this._def,exactLength:{value:e,message:ja.toString(n)}})}nonempty(e){return this.min(1,e)}}mw.create=(t,e)=>new mw({type:t,minLength:null,maxLength:null,exactLength:null,typeName:eo.ZodArray,...qo(e)});function nF(t){if(t instanceof Nd){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=XR.create(nF(r))}return new Nd({...t._def,shape:()=>e})}else return t instanceof mw?new mw({...t._def,type:nF(t.element)}):t instanceof XR?XR.create(nF(t.unwrap())):t instanceof _6?_6.create(nF(t.unwrap())):t instanceof K2?K2.create(t.items.map(e=>nF(e))):t}class Nd extends gs{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=zl.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==Ti.object){const u=this._getOrReturnCtx(e);return $i(u,{code:Or.invalid_type,expected:Ti.object,received:u.parsedType}),Oo}const{status:r,ctx:a}=this._processInputParams(e),{shape:o,keys:s}=this._getCached(),l=[];if(!(this._def.catchall instanceof xM&&this._def.unknownKeys==="strip"))for(const u in a.data)s.includes(u)||l.push(u);const c=[];for(const u of s){const d=o[u],h=a.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new V2(a,h,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof xM){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:a.data[d]}});else if(u==="strict")l.length>0&&($i(a,{code:Or.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const h=a.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new V2(a,h,a.path,d)),alwaysSet:d in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const h=await d.key;u.push({key:h,value:await d.value,alwaysSet:d.alwaysSet})}return u}).then(u=>Sv.mergeObjectSync(r,u)):Sv.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return ja.errToObj,new Nd({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var a,o,s,l;const c=(s=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(l=ja.errToObj(e).message)!==null&&l!==void 0?l:c}:{message:c}}}:{}})}strip(){return new Nd({...this._def,unknownKeys:"strip"})}passthrough(){return new Nd({...this._def,unknownKeys:"passthrough"})}extend(e){return new Nd({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Nd({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:eo.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new Nd({...this._def,catchall:e})}pick(e){const n={};return zl.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Nd({...this._def,shape:()=>n})}omit(e){const n={};return zl.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new Nd({...this._def,shape:()=>n})}deepPartial(){return nF(this)}partial(e){const n={};return zl.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];e&&!e[r]?n[r]=a:n[r]=a.optional()}),new Nd({...this._def,shape:()=>n})}required(e){const n={};return zl.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof XR;)o=o._def.innerType;n[r]=o}}),new Nd({...this._def,shape:()=>n})}keyof(){return fZt(zl.objectKeys(this.shape))}}Nd.create=(t,e)=>new Nd({shape:()=>t,unknownKeys:"strip",catchall:xM.create(),typeName:eo.ZodObject,...qo(e)});Nd.strictCreate=(t,e)=>new Nd({shape:()=>t,unknownKeys:"strict",catchall:xM.create(),typeName:eo.ZodObject,...qo(e)});Nd.lazycreate=(t,e)=>new Nd({shape:t,unknownKeys:"strip",catchall:xM.create(),typeName:eo.ZodObject,...qo(e)});class Jte extends gs{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function a(o){for(const l of o)if(l.result.status==="valid")return l.result;for(const l of o)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const s=o.map(l=>new pw(l.ctx.common.issues));return $i(n,{code:Or.invalid_union,unionErrors:s}),Oo}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(a);{let o;const s=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(c=>new pw(c));return $i(n,{code:Or.invalid_union,unionErrors:l}),Oo}}get options(){return this._def.options}}Jte.create=(t,e)=>new Jte({options:t,typeName:eo.ZodUnion,...qo(e)});const sme=t=>t instanceof ene?sme(t.schema):t instanceof Iw?sme(t.innerType()):t instanceof tne?[t.value]:t instanceof rP?t.options:t instanceof nne?Object.keys(t.enum):t instanceof rne?sme(t._def.innerType):t instanceof qte?[void 0]:t instanceof Yte?[null]:null;class IEe extends gs{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ti.object)return $i(n,{code:Or.invalid_type,expected:Ti.object,received:n.parsedType}),Oo;const r=this.discriminator,a=n.data[r],o=this.optionsMap.get(a);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):($i(n,{code:Or.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Oo)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const a=new Map;for(const o of n){const s=sme(o.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const l of s){if(a.has(l))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);a.set(l,o)}}return new IEe({typeName:eo.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:a,...qo(r)})}}function RHe(t,e){const n=_3(t),r=_3(e);if(t===e)return{valid:!0,data:t};if(n===Ti.object&&r===Ti.object){const a=zl.objectKeys(e),o=zl.objectKeys(t).filter(l=>a.indexOf(l)!==-1),s={...t,...e};for(const l of o){const c=RHe(t[l],e[l]);if(!c.valid)return{valid:!1};s[l]=c.data}return{valid:!0,data:s}}else if(n===Ti.array&&r===Ti.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let o=0;o<t.length;o++){const s=t[o],l=e[o],c=RHe(s,l);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Ti.date&&r===Ti.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Zte extends gs{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=(o,s)=>{if(CHe(o)||CHe(s))return Oo;const l=RHe(o.value,s.value);return l.valid?((kHe(o)||kHe(s))&&n.dirty(),{status:n.value,value:l.data}):($i(r,{code:Or.invalid_intersection_types}),Oo)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>a(o,s)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Zte.create=(t,e,n)=>new Zte({left:t,right:e,typeName:eo.ZodIntersection,...qo(n)});class K2 extends gs{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ti.array)return $i(r,{code:Or.invalid_type,expected:Ti.array,received:r.parsedType}),Oo;if(r.data.length<this._def.items.length)return $i(r,{code:Or.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Oo;!this._def.rest&&r.data.length>this._def.items.length&&($i(r,{code:Or.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new V2(r,s,r.path,l)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>Sv.mergeArray(n,s)):Sv.mergeArray(n,o)}get items(){return this._def.items}rest(e){return new K2({...this._def,rest:e})}}K2.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new K2({items:t,typeName:eo.ZodTuple,rest:null,...qo(e)})};class Xte extends gs{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ti.object)return $i(r,{code:Or.invalid_type,expected:Ti.object,received:r.parsedType}),Oo;const a=[],o=this._def.keyType,s=this._def.valueType;for(const l in r.data)a.push({key:o._parse(new V2(r,l,r.path,l)),value:s._parse(new V2(r,r.data[l],r.path,l))});return r.common.async?Sv.mergeObjectAsync(n,a):Sv.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof gs?new Xte({keyType:e,valueType:n,typeName:eo.ZodRecord,...qo(r)}):new Xte({keyType:tw.create(),valueType:e,typeName:eo.ZodRecord,...qo(n)})}}class R0e extends gs{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ti.map)return $i(r,{code:Or.invalid_type,expected:Ti.map,received:r.parsedType}),Oo;const a=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([l,c],u)=>({key:a._parse(new V2(r,l,r.path,[u,"key"])),value:o._parse(new V2(r,c,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of s){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return Oo;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of s){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return Oo;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}}}}R0e.create=(t,e,n)=>new R0e({valueType:e,keyType:t,typeName:eo.ZodMap,...qo(n)});class w6 extends gs{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ti.set)return $i(r,{code:Or.invalid_type,expected:Ti.set,received:r.parsedType}),Oo;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&($i(r,{code:Or.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&($i(r,{code:Or.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const o=this._def.valueType;function s(c){const u=new Set;for(const d of c){if(d.status==="aborted")return Oo;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const l=[...r.data.values()].map((c,u)=>o._parse(new V2(r,c,r.path,u)));return r.common.async?Promise.all(l).then(c=>s(c)):s(l)}min(e,n){return new w6({...this._def,minSize:{value:e,message:ja.toString(n)}})}max(e,n){return new w6({...this._def,maxSize:{value:e,message:ja.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}w6.create=(t,e)=>new w6({valueType:t,minSize:null,maxSize:null,typeName:eo.ZodSet,...qo(e)});class Fj extends gs{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ti.function)return $i(n,{code:Or.invalid_type,expected:Ti.function,received:n.parsedType}),Oo;function r(l,c){return _0e({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,w0e(),Kte].filter(u=>!!u),issueData:{code:Or.invalid_arguments,argumentsError:c}})}function a(l,c){return _0e({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,w0e(),Kte].filter(u=>!!u),issueData:{code:Or.invalid_return_type,returnTypeError:c}})}const o={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof yU){const l=this;return z0(async function(...c){const u=new pw([]),d=await l._def.args.parseAsync(c,o).catch(p=>{throw u.addIssue(r(c,p)),u}),h=await Reflect.apply(s,this,d);return await l._def.returns._def.type.parseAsync(h,o).catch(p=>{throw u.addIssue(a(h,p)),u})})}else{const l=this;return z0(function(...c){const u=l._def.args.safeParse(c,o);if(!u.success)throw new pw([r(c,u.error)]);const d=Reflect.apply(s,this,u.data),h=l._def.returns.safeParse(d,o);if(!h.success)throw new pw([a(d,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Fj({...this._def,args:K2.create(e).rest(yD.create())})}returns(e){return new Fj({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new Fj({args:e||K2.create([]).rest(yD.create()),returns:n||yD.create(),typeName:eo.ZodFunction,...qo(r)})}}class ene extends gs{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ene.create=(t,e)=>new ene({getter:t,typeName:eo.ZodLazy,...qo(e)});class tne extends gs{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return $i(n,{received:n.data,code:Or.invalid_literal,expected:this._def.value}),Oo}return{status:"valid",value:e.data}}get value(){return this._def.value}}tne.create=(t,e)=>new tne({value:t,typeName:eo.ZodLiteral,...qo(e)});function fZt(t,e){return new rP({values:t,typeName:eo.ZodEnum,...qo(e)})}class rP extends gs{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return $i(n,{expected:zl.joinValues(r),received:n.parsedType,code:Or.invalid_type}),Oo}if(this._def.values.indexOf(e.data)===-1){const n=this._getOrReturnCtx(e),r=this._def.values;return $i(n,{received:n.data,code:Or.invalid_enum_value,options:r}),Oo}return z0(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e){return rP.create(e)}exclude(e){return rP.create(this.options.filter(n=>!e.includes(n)))}}rP.create=fZt;class nne extends gs{_parse(e){const n=zl.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Ti.string&&r.parsedType!==Ti.number){const a=zl.objectValues(n);return $i(r,{expected:zl.joinValues(a),received:r.parsedType,code:Or.invalid_type}),Oo}if(n.indexOf(e.data)===-1){const a=zl.objectValues(n);return $i(r,{received:r.data,code:Or.invalid_enum_value,options:a}),Oo}return z0(e.data)}get enum(){return this._def.values}}nne.create=(t,e)=>new nne({values:t,typeName:eo.ZodNativeEnum,...qo(e)});class yU extends gs{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ti.promise&&n.common.async===!1)return $i(n,{code:Or.invalid_type,expected:Ti.promise,received:n.parsedType}),Oo;const r=n.parsedType===Ti.promise?n.data:Promise.resolve(n.data);return z0(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}yU.create=(t,e)=>new yU({type:t,typeName:eo.ZodPromise,...qo(e)});class Iw extends gs{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eo.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=this._def.effect||null,o={addIssue:s=>{$i(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const s=a.transform(r.data,o);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(s).then(l=>this._def.schema._parseAsync({data:l,path:r.path,parent:r})):this._def.schema._parseSync({data:s,path:r.path,parent:r})}if(a.type==="refinement"){const s=l=>{const c=a.refinement(l,o);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?Oo:(l.status==="dirty"&&n.dirty(),s(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?Oo:(l.status==="dirty"&&n.dirty(),s(l.value).then(()=>({status:n.value,value:l.value}))))}if(a.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Wte(s))return s;const l=a.transform(s.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Wte(s)?Promise.resolve(a.transform(s.value,o)).then(l=>({status:n.value,value:l})):s);zl.assertNever(a)}}Iw.create=(t,e,n)=>new Iw({schema:t,typeName:eo.ZodEffects,effect:e,...qo(n)});Iw.createWithPreprocess=(t,e,n)=>new Iw({schema:e,effect:{type:"preprocess",transform:t},typeName:eo.ZodEffects,...qo(n)});class XR extends gs{_parse(e){return this._getType(e)===Ti.undefined?z0(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}XR.create=(t,e)=>new XR({innerType:t,typeName:eo.ZodOptional,...qo(e)});class _6 extends gs{_parse(e){return this._getType(e)===Ti.null?z0(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}_6.create=(t,e)=>new _6({innerType:t,typeName:eo.ZodNullable,...qo(e)});class rne extends gs{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===Ti.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}rne.create=(t,e)=>new rne({innerType:t,typeName:eo.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...qo(e)});class M0e extends gs{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return T0e(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new pw(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new pw(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}M0e.create=(t,e)=>new M0e({innerType:t,typeName:eo.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...qo(e)});class N0e extends gs{_parse(e){if(this._getType(e)!==Ti.nan){const r=this._getOrReturnCtx(e);return $i(r,{code:Or.invalid_type,expected:Ti.nan,received:r.parsedType}),Oo}return{status:"valid",value:e.data}}}N0e.create=t=>new N0e({typeName:eo.ZodNaN,...qo(t)});const ABr=Symbol("zod_brand");class pZt extends gs{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class fae extends gs{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Oo:o.status==="dirty"?(n.dirty(),hZt(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Oo:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(e,n){return new fae({in:e,out:n,typeName:eo.ZodPipeline})}}class I0e extends gs{_parse(e){const n=this._def.innerType._parse(e);return Wte(n)&&(n.value=Object.freeze(n.value)),n}}I0e.create=(t,e)=>new I0e({innerType:t,typeName:eo.ZodReadonly,...qo(e)});const mZt=(t,e={},n)=>t?AU.create().superRefine((r,a)=>{var o,s;if(!t(r)){const l=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,c=(s=(o=l.fatal)!==null&&o!==void 0?o:n)!==null&&s!==void 0?s:!0,u=typeof l=="string"?{message:l}:l;a.addIssue({code:"custom",...u,fatal:c})}}):AU.create(),yBr={object:Nd.lazycreate};var eo;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(eo||(eo={}));const bBr=(t,e={message:`Input not instance of ${t.name}`})=>mZt(n=>n instanceof t,e),gZt=tw.create,vZt=tP.create,xBr=N0e.create,EBr=nP.create,AZt=Qte.create,SBr=S6.create,wBr=C0e.create,_Br=qte.create,TBr=Yte.create,CBr=AU.create,kBr=yD.create,RBr=xM.create,MBr=k0e.create,NBr=mw.create,IBr=Nd.create,PBr=Nd.strictCreate,OBr=Jte.create,LBr=IEe.create,BBr=Zte.create,DBr=K2.create,$Br=Xte.create,FBr=R0e.create,jBr=w6.create,HBr=Fj.create,UBr=ene.create,zBr=tne.create,GBr=rP.create,VBr=nne.create,KBr=yU.create,X0t=Iw.create,WBr=XR.create,QBr=_6.create,qBr=Iw.createWithPreprocess,YBr=fae.create,JBr=()=>gZt().optional(),ZBr=()=>vZt().optional(),XBr=()=>AZt().optional(),eDr={string:t=>tw.create({...t,coerce:!0}),number:t=>tP.create({...t,coerce:!0}),boolean:t=>Qte.create({...t,coerce:!0}),bigint:t=>nP.create({...t,coerce:!0}),date:t=>S6.create({...t,coerce:!0})},tDr=Oo;var xn=Object.freeze({__proto__:null,defaultErrorMap:Kte,setErrorMap:aBr,getErrorMap:w0e,makeIssue:_0e,EMPTY_PATH:oBr,addIssueToContext:$i,ParseStatus:Sv,INVALID:Oo,DIRTY:hZt,OK:z0,isAborted:CHe,isDirty:kHe,isValid:Wte,isAsync:T0e,get util(){return zl},get objectUtil(){return THe},ZodParsedType:Ti,getParsedType:_3,ZodType:gs,ZodString:tw,ZodNumber:tP,ZodBigInt:nP,ZodBoolean:Qte,ZodDate:S6,ZodSymbol:C0e,ZodUndefined:qte,ZodNull:Yte,ZodAny:AU,ZodUnknown:yD,ZodNever:xM,ZodVoid:k0e,ZodArray:mw,ZodObject:Nd,ZodUnion:Jte,ZodDiscriminatedUnion:IEe,ZodIntersection:Zte,ZodTuple:K2,ZodRecord:Xte,ZodMap:R0e,ZodSet:w6,ZodFunction:Fj,ZodLazy:ene,ZodLiteral:tne,ZodEnum:rP,ZodNativeEnum:nne,ZodPromise:yU,ZodEffects:Iw,ZodTransformer:Iw,ZodOptional:XR,ZodNullable:_6,ZodDefault:rne,ZodCatch:M0e,ZodNaN:N0e,BRAND:ABr,ZodBranded:pZt,ZodPipeline:fae,ZodReadonly:I0e,custom:mZt,Schema:gs,ZodSchema:gs,late:yBr,get ZodFirstPartyTypeKind(){return eo},coerce:eDr,any:CBr,array:NBr,bigint:EBr,boolean:AZt,date:SBr,discriminatedUnion:LBr,effect:X0t,enum:GBr,function:HBr,instanceof:bBr,intersection:BBr,lazy:UBr,literal:zBr,map:FBr,nan:xBr,nativeEnum:VBr,never:RBr,null:TBr,nullable:QBr,number:vZt,object:IBr,oboolean:XBr,onumber:ZBr,optional:WBr,ostring:JBr,pipeline:YBr,preprocess:qBr,promise:KBr,record:$Br,set:jBr,strictObject:PBr,string:gZt,symbol:wBr,transformer:X0t,tuple:DBr,undefined:_Br,union:OBr,unknown:kBr,void:MBr,NEVER:tDr,ZodIssueCode:Or,quotelessJson:iBr,ZodError:pw});const Y1=xn.object({message:xn.string()});function fs(t){return xn.literal($j[t])}xn.object({accessList:xn.array(xn.string()),blockHash:xn.string().nullable(),blockNumber:xn.string().nullable(),chainId:xn.string(),from:xn.string(),gas:xn.string(),hash:xn.string(),input:xn.string().nullable(),maxFeePerGas:xn.string(),maxPriorityFeePerGas:xn.string(),nonce:xn.string(),r:xn.string(),s:xn.string(),to:xn.string(),transactionIndex:xn.string().nullable(),type:xn.string(),v:xn.string(),value:xn.string()});const nDr=xn.object({chainId:xn.number()}),rDr=xn.object({email:xn.string().email()}),iDr=xn.object({otp:xn.string()}),aDr=xn.object({chainId:xn.optional(xn.number())}),oDr=xn.object({email:xn.string().email()}),sDr=xn.object({themeMode:xn.optional(xn.enum(["light","dark"])),themeVariables:xn.optional(xn.record(xn.string(),xn.string().or(xn.number())))}),lDr=xn.object({metadata:xn.object({name:xn.string(),description:xn.string(),url:xn.string(),icons:xn.array(xn.string())}).optional(),sdkVersion:xn.string(),projectId:xn.string()}),cDr=xn.object({action:xn.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),uDr=xn.object({email:xn.string().email(),address:xn.string(),chainId:xn.number()}),dDr=xn.object({isConnected:xn.boolean()}),hDr=xn.object({chainId:xn.number()}),fDr=xn.object({chainId:xn.number()}),pDr=xn.object({email:xn.string().email()}),mDr=xn.any(),gDr=xn.object({method:xn.literal("personal_sign"),params:xn.array(xn.any())}),vDr=xn.object({method:xn.literal("eth_sendTransaction"),params:xn.array(xn.any())}),ADr=xn.object({method:xn.literal("eth_accounts")}),yDr=xn.object({method:xn.literal("eth_getBalance"),params:xn.array(xn.any())}),bDr=xn.object({method:xn.literal("eth_estimateGas"),params:xn.array(xn.any())}),xDr=xn.object({method:xn.literal("eth_gasPrice")}),EDr=xn.object({method:xn.literal("eth_signTypedData_v4"),params:xn.array(xn.any())}),SDr=xn.object({method:xn.literal("eth_getTransactionByHash"),params:xn.array(xn.any())}),wDr=xn.object({method:xn.literal("eth_blockNumber")}),_Dr=xn.object({method:xn.literal("eth_chainId")}),eAt=xn.object({token:xn.string()});xn.object({type:fs("APP_SWITCH_NETWORK"),payload:nDr}).or(xn.object({type:fs("APP_CONNECT_EMAIL"),payload:rDr})).or(xn.object({type:fs("APP_CONNECT_DEVICE")})).or(xn.object({type:fs("APP_CONNECT_OTP"),payload:iDr})).or(xn.object({type:fs("APP_GET_USER"),payload:xn.optional(aDr)})).or(xn.object({type:fs("APP_SIGN_OUT")})).or(xn.object({type:fs("APP_IS_CONNECTED"),payload:xn.optional(eAt)})).or(xn.object({type:fs("APP_GET_CHAIN_ID")})).or(xn.object({type:fs("APP_RPC_REQUEST"),payload:gDr.or(vDr).or(ADr).or(yDr).or(bDr).or(xDr).or(EDr).or(wDr).or(_Dr).or(SDr)})).or(xn.object({type:fs("APP_UPDATE_EMAIL"),payload:oDr})).or(xn.object({type:fs("APP_AWAIT_UPDATE_EMAIL")})).or(xn.object({type:fs("APP_SYNC_THEME"),payload:sDr})).or(xn.object({type:fs("APP_SYNC_DAPP_DATA"),payload:lDr})),xn.object({type:fs("FRAME_SWITCH_NETWORK_ERROR"),payload:Y1}).or(xn.object({type:fs("FRAME_SWITCH_NETWORK_SUCCESS"),payload:fDr})).or(xn.object({type:fs("FRAME_CONNECT_EMAIL_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_CONNECT_EMAIL_SUCCESS"),payload:cDr})).or(xn.object({type:fs("FRAME_CONNECT_OTP_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_CONNECT_OTP_SUCCESS")})).or(xn.object({type:fs("FRAME_CONNECT_DEVICE_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_CONNECT_DEVICE_SUCCESS")})).or(xn.object({type:fs("FRAME_GET_USER_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_GET_USER_SUCCESS"),payload:uDr})).or(xn.object({type:fs("FRAME_SIGN_OUT_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_SIGN_OUT_SUCCESS")})).or(xn.object({type:fs("FRAME_IS_CONNECTED_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_IS_CONNECTED_SUCCESS"),payload:dDr})).or(xn.object({type:fs("FRAME_GET_CHAIN_ID_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_GET_CHAIN_ID_SUCCESS"),payload:hDr})).or(xn.object({type:fs("FRAME_RPC_REQUEST_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_RPC_REQUEST_SUCCESS"),payload:mDr})).or(xn.object({type:fs("FRAME_SESSION_UPDATE"),payload:eAt})).or(xn.object({type:fs("FRAME_UPDATE_EMAIL_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_UPDATE_EMAIL_SUCCESS")})).or(xn.object({type:fs("FRAME_AWAIT_UPDATE_EMAIL_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_AWAIT_UPDATE_EMAIL_SUCCESS"),payload:pDr})).or(xn.object({type:fs("FRAME_SYNC_THEME_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_SYNC_THEME_SUCCESS")})).or(xn.object({type:fs("FRAME_SYNC_DAPP_DATA_ERROR"),payload:Y1})).or(xn.object({type:fs("FRAME_SYNC_DAPP_DATA_SUCCESS")}));const tAt={set(t,e){localStorage.setItem(`${$j.STORAGE_KEY}${t}`,e)},get(t){return localStorage.getItem(`${$j.STORAGE_KEY}${t}`)},delete(t){localStorage.removeItem(`${$j.STORAGE_KEY}${t}`)}},TDr=["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],pce=30*1e3,B5e={getBlockchainApiUrl(){try{const{timeZone:t}=new Intl.DateTimeFormat().resolvedOptions(),e=t.toUpperCase();return TDr.includes(e)?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com"}catch{return!1}},checkIfAllowedToTriggerEmail(){const t=tAt.get($j.LAST_EMAIL_LOGIN_TIME);if(t){const e=Date.now()-Number(t);if(e<pce){const n=Math.ceil((pce-e)/1e3);throw new Error(`Please try again after ${n} seconds`)}}},getTimeToNextEmailLogin(){const t=tAt.get($j.LAST_EMAIL_LOGIN_TIME);if(t){const e=Date.now()-Number(t);if(e<pce)return Math.ceil((pce-e)/1e3)}return 0}};var PEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const CDr=6;let bU=class extends Mr{constructor(){var e;super(...arguments),this.email=(e=ca.state.data)==null?void 0:e.email,this.emailConnector=hu.getEmailConnector(),this.loading=!1,this.timeoutTimeLeft=B5e.getTimeToNextEmailLogin(),this.error="",this.otp=""}firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}render(){if(!this.email)throw new Error("w3m-email-verify-otp-view: No email provided");const e=!!this.timeoutTimeLeft;return Mt`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["l","0","l","0"]}
        gap="l"
      >
        <wui-flex flexDirection="column" alignItems="center">
          <wui-text variant="paragraph-400" color="fg-100"> Enter the code we sent to </wui-text>
          <wui-text variant="paragraph-500" color="fg-100">${this.email}</wui-text>
        </wui-flex>

        <wui-text variant="small-400" color="fg-200">The code expires in 20 minutes</wui-text>

        ${this.loading?Mt`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:Mt` <wui-flex flexDirection="column" alignItems="center" gap="xs">
              <wui-otp
                dissabled
                length="6"
                @inputChange=${this.onOtpInputChange.bind(this)}
                .otp=${this.otp}
              ></wui-otp>
              ${this.error?Mt`<wui-text variant="small-400" color="error-100"
                    >${this.error}. Try Again</wui-text
                  >`:null}
            </wui-flex>`}

        <wui-flex alignItems="center">
          <wui-text variant="small-400" color="fg-200">Didn't receive it?</wui-text>
          <wui-link @click=${this.onResendCode.bind(this)} .disabled=${e}>
            Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"}
          </wui-link>
        </wui-flex>
      </wui-flex>
    `}startOTPTimeout(){this.timeoutTimeLeft=B5e.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=B5e.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(e){try{this.loading||(this.otp=e.detail,this.emailConnector&&this.otp.length===CDr&&(this.loading=!0,await this.emailConnector.provider.connectOtp({otp:this.otp}),Po.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),await sl.connectExternal(this.emailConnector),fu.close(),Po.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email"}})))}catch(n){Po.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),this.error=La.parseError(n),this.loading=!1}}async onResendCode(){try{if(!this.loading&&!this.timeoutTimeLeft){this.error="",this.otp="";const e=hu.getEmailConnector();if(!e||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await e.provider.connectEmail({email:this.email}),Po.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),this.startOTPTimeout(),fh.showSuccess("Code email resent")}}catch(e){fh.showError(e)}finally{this.loading=!1}}};bU.styles=rBr;PEe([Bi()],bU.prototype,"loading",void 0);PEe([Bi()],bU.prototype,"timeoutTimeLeft",void 0);PEe([Bi()],bU.prototype,"error",void 0);bU=PEe([kr("w3m-email-verify-otp-view")],bU);const kDr=Kr`
  wui-icon-box {
    height: var(--wui-icon-box-size-xl);
    width: var(--wui-icon-box-size-xl);
  }
`;var yZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let P0e=class extends Mr{constructor(){var e;super(),this.email=(e=ca.state.data)==null?void 0:e.email,this.emailConnector=hu.getEmailConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw new Error("w3m-email-verify-device-view: No email provided");if(!this.emailConnector)throw new Error("w3m-email-verify-device-view: No email connector provided");return Mt`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["xxl","s","xxl","s"]}
        gap="l"
      >
        <wui-icon-box
          size="xl"
          iconcolor="accent-100"
          backgroundcolor="accent-100"
          icon="verify"
          background="opaque"
        ></wui-icon-box>

        <wui-flex flexDirection="column" alignItems="center" gap="s">
          <wui-flex flexDirection="column" alignItems="center">
            <wui-text variant="paragraph-400" color="fg-100">
              Approve the login link we sent to
            </wui-text>
            <wui-text variant="paragraph-400" color="fg-100"><b>${this.email}</b></wui-text>
          </wui-flex>

          <wui-text variant="small-400" color="fg-200" align="center">
            The code expires in 20 minutes
          </wui-text>

          <wui-flex alignItems="center" id="w3m-resend-section">
            <wui-text variant="small-400" color="fg-100" align="center">
              Didn't receive it?
            </wui-text>
            <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}>
              Resend email
            </wui-link>
          </wui-flex>
        </wui-flex>
      </wui-flex>
    `}async listenForDeviceApproval(){this.emailConnector&&(await this.emailConnector.provider.connectDevice(),Po.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),Po.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),ca.replace("EmailVerifyOtp",{email:this.email}))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.emailConnector.provider.connectEmail({email:this.email}),fh.showSuccess("Code email resent")}}catch(e){fh.showError(e)}finally{this.loading=!1}}};P0e.styles=kDr;yZt([Bi()],P0e.prototype,"loading",void 0);P0e=yZt([kr("w3m-email-verify-device-view")],P0e);const RDr=Kr`
  div {
    width: 100%;
    height: 400px;
  }

  [data-ready='false'] {
    transform: scale(1.05);
  }

  @media (max-width: 430px) {
    [data-ready='false'] {
      transform: translateY(-50px);
    }
  }
`;var bZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let O0e=class extends Mr{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(fu.subscribeKey("open",e=>{e||this.onHideIframe()}))}disconnectedCallback(){var e;this.unsubscribe.forEach(n=>n()),(e=this.bodyObserver)==null||e.unobserve(window.document.body)}firstUpdated(){this.iframe.style.display="block";const n=this.renderRoot.querySelector("div");this.bodyObserver=new ResizeObserver(()=>{const a=(n==null?void 0:n.getBoundingClientRect())??{left:0,top:0,width:0,height:0};this.iframe.style.width=`${a.width}px`,this.iframe.style.height=`${a.height-10}px`,this.iframe.style.left=`${a.left}px`,this.iframe.style.top=`${a.top+10/2}px`,this.ready=!0}),this.bodyObserver.observe(window.document.body)}render(){return this.ready&&this.onShowIframe(),Mt`<div data-ready=${this.ready}></div>`}onShowIframe(){const e=window.innerWidth<=430;this.iframe.animate([{opacity:0,transform:e?"translateY(50px)":"scale(.95)"},{opacity:1,transform:e?"translateY(0)":"scale(1)"}],{duration:200,easing:"ease",fill:"forwards",delay:300})}async onHideIframe(){await this.iframe.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,this.iframe.style.display="none"}};O0e.styles=RDr;bZt([Bi()],O0e.prototype,"ready",void 0);O0e=bZt([kr("w3m-approve-transaction-view")],O0e);var MDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let nAt=class extends Mr{render(){return Mt`
      <wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl">
        <wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text>
        <wui-chip
          icon="externalLink"
          variant="fill"
          href=${$R.SECURE_SITE_DASHBOARD}
          imageSrc=${$R.SECURE_SITE_FAVICON}
        >
        </wui-chip>
        <wui-text variant="small-400" color="fg-200">
          You will have to reconnect for security reasons
        </wui-text>
      </wui-flex>
    `}};nAt=MDr([kr("w3m-upgrade-wallet-view")],nAt);const NDr=Kr`
  wui-email-input {
    width: 100%;
  }

  form {
    width: 100%;
    display: block;
    position: relative;
  }
`;var net=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let ine=class extends Mr{constructor(){var e;super(...arguments),this.formRef=bEe(),this.initialValue=((e=ca.state.data)==null?void 0:e.email)??"",this.email="",this.loading=!1}firstUpdated(){var e;(e=this.formRef.value)==null||e.addEventListener("keydown",n=>{n.key==="Enter"&&this.onSubmitEmail(n)})}render(){const e=!this.loading&&this.email.length>3&&this.email!==this.initialValue;return Mt`
      <wui-flex flexDirection="column" padding="m" gap="m">
        <form ${xEe(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}>
          <wui-email-input
            value=${this.initialValue}
            .disabled=${this.loading}
            @inputChange=${this.onEmailInputChange.bind(this)}
          >
          </wui-email-input>
          <input type="submit" hidden />
        </form>

        <wui-flex gap="s">
          <wui-button size="md" variant="shade" fullWidth @click=${ca.goBack}>
            Cancel
          </wui-button>

          <wui-button
            size="md"
            variant="fill"
            fullWidth
            @click=${this.onSubmitEmail.bind(this)}
            .disabled=${!e}
            .loading=${this.loading}
          >
            Save
          </wui-button>
        </wui-flex>
      </wui-flex>
    `}onEmailInputChange(e){this.email=e.detail}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();const n=hu.getEmailConnector();if(!n)throw new Error("w3m-update-email-wallet: Email connector not found");await n.provider.updateEmail({email:this.email}),Po.sendEvent({type:"track",event:"EMAIL_EDIT"}),ca.replace("UpdateEmailWalletWaiting",{email:this.email})}catch(n){fh.showError(n),this.loading=!1}}};ine.styles=NDr;net([Bi()],ine.prototype,"email",void 0);net([Bi()],ine.prototype,"loading",void 0);ine=net([kr("w3m-update-email-wallet-view")],ine);const IDr=Kr`
  wui-icon-box {
    height: var(--wui-icon-box-size-xl);
    width: var(--wui-icon-box-size-xl);
  }
`;var xZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let L0e=class extends Mr{constructor(){var e;super(),this.email=(e=ca.state.data)==null?void 0:e.email,this.emailConnector=hu.getEmailConnector(),this.loading=!1,this.listenForEmailUpdateApproval()}render(){if(!this.email)throw new Error("w3m-update-email-wallet-waiting-view: No email provided");if(!this.emailConnector)throw new Error("w3m-update-email-wallet-waiting-view: No email connector provided");return Mt`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["xxl","s","xxl","s"]}
        gap="l"
      >
        <wui-icon-box
          size="xl"
          iconcolor="accent-100"
          backgroundcolor="accent-100"
          icon="mail"
          background="opaque"
        ></wui-icon-box>

        <wui-flex flexDirection="column" alignItems="center" gap="s">
          <wui-flex flexDirection="column" alignItems="center">
            <wui-text variant="paragraph-400" color="fg-100">
              Approve verification link we sent to
            </wui-text>
            <wui-text variant="paragraph-400" color="fg-100">${this.email}</wui-text>
          </wui-flex>

          <wui-text variant="small-400" color="fg-200" align="center">
            You will receive an approval request on your former mail to confirm the new one
          </wui-text>

          <wui-flex alignItems="center" id="w3m-resend-section">
            <wui-text variant="small-400" color="fg-100" align="center">
              Didn't receive it?
            </wui-text>
            <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}>
              Resend email
            </wui-link>
          </wui-flex>
        </wui-flex>
      </wui-flex>
    `}async listenForEmailUpdateApproval(){this.emailConnector&&(await this.emailConnector.provider.awaitUpdateEmail(),ca.replace("Account"),fh.showSuccess("Email updated"))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-update-email-wallet-waiting-view: Unable to resend email");this.loading=!0,await this.emailConnector.provider.updateEmail({email:this.email}),this.listenForEmailUpdateApproval(),fh.showSuccess("Code email resent")}}catch(e){fh.showError(e)}finally{this.loading=!1}}};L0e.styles=IDr;xZt([Bi()],L0e.prototype,"loading",void 0);L0e=xZt([kr("w3m-update-email-wallet-waiting-view")],L0e);const PDr=Kr`
  wui-grid {
    max-height: clamp(360px, 400px, 80vh);
    overflow: scroll;
    scrollbar-width: none;
    grid-auto-rows: min-content;
    grid-template-columns: repeat(auto-fill, 76px);
  }

  @media (max-width: 435px) {
    wui-grid {
      grid-template-columns: repeat(auto-fill, 77px);
    }
  }

  wui-grid[data-scroll='false'] {
    overflow: hidden;
  }

  wui-grid::-webkit-scrollbar {
    display: none;
  }

  wui-loading-spinner {
    padding-top: var(--wui-spacing-l);
    padding-bottom: var(--wui-spacing-l);
    justify-content: center;
    grid-column: 1 / span 4;
  }
`;function EZt(t){const{connectors:e}=hu.state,n=e.filter(o=>o.type==="ANNOUNCED").reduce((o,s)=>{var l;return(l=s.info)!=null&&l.rdns&&(o[s.info.rdns]=!0),o},{});return t.map(o=>({...o,installed:!!o.rdns&&!!n[o.rdns??""]})).sort((o,s)=>Number(s.installed)-Number(o.installed))}var pae=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const rAt="local-paginator";let T6=class extends Mr{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.initial=!js.state.wallets.length,this.wallets=js.state.wallets,this.recommended=js.state.recommended,this.featured=js.state.featured,this.unsubscribe.push(js.subscribeKey("wallets",e=>this.wallets=e),js.subscribeKey("recommended",e=>this.recommended=e),js.subscribeKey("featured",e=>this.featured=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){var e;this.unsubscribe.forEach(n=>n()),(e=this.paginationObserver)==null||e.disconnect()}render(){return Mt`
      <wui-grid
        data-scroll=${!this.initial}
        .padding=${["0","s","s","s"]}
        columnGap="xxs"
        rowGap="l"
        justifyContent="space-between"
      >
        ${this.initial?this.shimmerTemplate(16):this.walletsTemplate()}
        ${this.paginationLoaderTemplate()}
      </wui-grid>
    `}async initialFetch(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("wui-grid");this.initial&&e&&(await js.fetchWallets({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.initial=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,n){return[...Array(e)].map(()=>Mt`
        <wui-card-select-loader type="wallet" id=${Ko(n)}></wui-card-select-loader>
      `)}walletsTemplate(){const e=[...this.featured,...this.recommended,...this.wallets];return EZt(e).map(r=>Mt`
        <wui-card-select
          imageSrc=${Ko(lh.getWalletImage(r))}
          type="wallet"
          name=${r.name}
          @click=${()=>this.onConnectWallet(r)}
          .installed=${r.installed}
        ></wui-card-select>
      `)}paginationLoaderTemplate(){const{wallets:e,recommended:n,featured:r,count:a}=js.state,o=window.innerWidth<352?3:4,s=e.length+n.length;let c=Math.ceil(s/o)*o-s+o;return c-=e.length?r.length%o:0,a===0&&r.length>0?null:a===0||[...r,...e,...n].length<a?this.shimmerTemplate(c,rAt):null}createPaginationObserver(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector(`#${rAt}`);e&&(this.paginationObserver=new IntersectionObserver(([r])=>{if(r!=null&&r.isIntersecting&&!this.initial){const{page:a,count:o,wallets:s}=js.state;s.length<o&&js.fetchWallets({page:a+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){const{connectors:n}=hu.state,r=n.find(({explorerId:a})=>a===e.id);r?ca.push("ConnectingExternal",{connector:r}):ca.push("ConnectingWalletConnect",{wallet:e})}};T6.styles=PDr;pae([Bi()],T6.prototype,"initial",void 0);pae([Bi()],T6.prototype,"wallets",void 0);pae([Bi()],T6.prototype,"recommended",void 0);pae([Bi()],T6.prototype,"featured",void 0);T6=pae([kr("w3m-all-wallets-list")],T6);const ODr=Kr`
  wui-grid,
  wui-loading-spinner,
  wui-flex {
    height: 360px;
  }

  wui-grid {
    overflow: scroll;
    scrollbar-width: none;
    grid-auto-rows: min-content;
  }

  wui-grid[data-scroll='false'] {
    overflow: hidden;
  }

  wui-grid::-webkit-scrollbar {
    display: none;
  }

  wui-loading-spinner {
    justify-content: center;
    align-items: center;
  }
`;var ret=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let ane=class extends Mr{constructor(){super(...arguments),this.prevQuery="",this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?Mt`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){this.query!==this.prevQuery&&(this.prevQuery=this.query,this.loading=!0,await js.searchWallet({search:this.query}),this.loading=!1)}walletsTemplate(){const{search:e}=js.state,n=EZt(e);return e.length?Mt`
      <wui-grid
        .padding=${["0","s","s","s"]}
        gridTemplateColumns="repeat(4, 1fr)"
        rowGap="l"
        columnGap="xs"
      >
        ${n.map(r=>Mt`
            <wui-card-select
              imageSrc=${Ko(lh.getWalletImage(r))}
              type="wallet"
              name=${r.name}
              @click=${()=>this.onConnectWallet(r)}
              .installed=${r.installed}
            ></wui-card-select>
          `)}
      </wui-grid>
    `:Mt`
        <wui-flex justifyContent="center" alignItems="center" gap="s" flexDirection="column">
          <wui-icon-box
            size="lg"
            iconColor="fg-200"
            backgroundColor="fg-300"
            icon="wallet"
            background="transparent"
          ></wui-icon-box>
          <wui-text color="fg-200" variant="paragraph-500">No Wallet found</wui-text>
        </wui-flex>
      `}onConnectWallet(e){const{connectors:n}=hu.state,r=n.find(({explorerId:a})=>a===e.id);r?ca.push("ConnectingExternal",{connector:r}):ca.push("ConnectingWalletConnect",{wallet:e})}};ane.styles=ODr;ret([Bi()],ane.prototype,"loading",void 0);ret([Ht()],ane.prototype,"query",void 0);ane=ret([kr("w3m-all-wallets-search")],ane);var OEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let one=class extends Mr{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(sl.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.generateTabs();return Mt`
      <wui-flex justifyContent="center" .padding=${["l","0","0","0"]}>
        <wui-tabs
          ?disabled=${this.buffering}
          .tabs=${e}
          .onTabChange=${this.onTabChange.bind(this)}
        ></wui-tabs>
      </wui-flex>
    `}generateTabs(){const e=this.platforms.map(n=>n==="browser"?{label:"Browser",icon:"extension",platform:"browser"}:n==="mobile"?{label:"Mobile",icon:"mobile",platform:"mobile"}:n==="qrcode"?{label:"Mobile",icon:"mobile",platform:"qrcode"}:n==="web"?{label:"Webapp",icon:"browser",platform:"web"}:n==="desktop"?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:n})=>n),e}onTabChange(e){var r;const n=this.platformTabs[e];n&&((r=this.onSelectPlatfrom)==null||r.call(this,n))}};OEe([Ht({type:Array})],one.prototype,"platforms",void 0);OEe([Ht()],one.prototype,"onSelectPlatfrom",void 0);OEe([Bi()],one.prototype,"buffering",void 0);one=OEe([kr("w3m-connecting-header")],one);var LDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let iAt=class extends h1{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),Po.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;const{connectors:e}=hu.state,n=e.find(a=>{var o,s;return a.type==="ANNOUNCED"&&((o=a.info)==null?void 0:o.rdns)===((s=this.wallet)==null?void 0:s.rdns)}),r=e.find(a=>a.type==="INJECTED");n?await sl.connectExternal(n):r&&await sl.connectExternal(r),fu.close(),Po.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser"}})}catch(e){Po.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(e==null?void 0:e.message)??"Unknown"}}),this.error=!0}}};iAt=LDr([kr("w3m-connecting-wc-browser")],iAt);var BDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let aAt=class extends h1{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),Po.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.timeout=setTimeout(()=>{var e;(e=this.onConnect)==null||e.call(this)},200))}onConnectProxy(){var e;if((e=this.wallet)!=null&&e.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:n,name:r}=this.wallet,{redirect:a,href:o}=La.formatNativeUrl(n,this.uri);sl.setWcLinking({name:r,href:o}),sl.setRecentWallet(this.wallet),La.openHref(a,"_blank")}catch{this.error=!0}}};aAt=BDr([kr("w3m-connecting-wc-desktop")],aAt);var DDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let oAt=class extends h1{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),Po.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this))}onRenderProxy(){var e;!this.ready&&this.uri&&(this.ready=!0,(e=this.onConnect)==null||e.call(this))}onConnectProxy(){var e;if((e=this.wallet)!=null&&e.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:n,name:r}=this.wallet,{redirect:a,href:o}=La.formatNativeUrl(n,this.uri);sl.setWcLinking({name:r,href:o}),sl.setRecentWallet(this.wallet),La.openHref(a,"_self")}catch{this.error=!0}}onBuffering(){const e=La.isIos();(document==null?void 0:document.visibilityState)==="visible"&&!this.error&&e&&(sl.setBuffering(!0),setTimeout(()=>{sl.setBuffering(!1)},5e3))}};oAt=DDr([kr("w3m-connecting-wc-mobile")],oAt);const $Dr=Kr`
  @keyframes fadein {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  wui-shimmer {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
  }

  wui-qr-code {
    opacity: 0;
    animation-duration: 200ms;
    animation-timing-function: ease;
    animation-name: fadein;
    animation-fill-mode: forwards;
  }
`;var FDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let MHe=class extends h1{constructor(){var e;super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),Po.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:((e=this.wallet)==null?void 0:e.name)??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),Mt`
      <wui-flex padding="xl" flexDirection="column" gap="xl" alignItems="center">
        <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>

        <wui-text variant="paragraph-500" color="fg-100">
          Scan this QR Code with your phone
        </wui-text>
        ${this.copyTemplate()}
      </wui-flex>

      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
    `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const e=this.getBoundingClientRect().width-40,n=this.wallet?this.wallet.name:void 0;return sl.setWcLinking(void 0),sl.setRecentWallet(this.wallet),Mt` <wui-qr-code
      size=${e}
      theme=${DA.state.themeMode}
      uri=${this.uri}
      imageSrc=${Ko(lh.getWalletImage(this.wallet))}
      alt=${Ko(n)}
    ></wui-qr-code>`}copyTemplate(){const e=!this.uri||!this.ready;return Mt`<wui-link
      .disabled=${e}
      @click=${this.onCopyUri}
      color="fg-200"
      data-testid="copy-wc2-uri"
    >
      <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
      Copy link
    </wui-link>`}};MHe.styles=$Dr;MHe=FDr([kr("w3m-connecting-wc-qrcode")],MHe);const jDr=Kr`
  :host {
    display: flex;
    justify-content: center;
    gap: var(--wui-spacing-2xl);
  }

  wui-visual-thumbnail:nth-child(1) {
    z-index: 1;
  }
`;var HDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let NHe=class extends Mr{constructor(){var e;super(...arguments),this.dappImageUrl=(e=sc.state.metadata)==null?void 0:e.icons,this.walletImageUrl=L0.getConnectedWalletImageUrl()}firstUpdated(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelectorAll("wui-visual-thumbnail");e!=null&&e[0]&&this.createAnimation(e[0],"translate(18px)"),e!=null&&e[1]&&this.createAnimation(e[1],"translate(-18px)")}render(){var e;return Mt`
      <wui-visual-thumbnail
        ?borderRadiusFull=${!0}
        .imageSrc=${(e=this.dappImageUrl)==null?void 0:e[0]}
      ></wui-visual-thumbnail>
      <wui-visual-thumbnail .imageSrc=${this.walletImageUrl}></wui-visual-thumbnail>
    `}createAnimation(e,n){e.animate([{transform:"translateX(0px)"},{transform:n}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};NHe.styles=jDr;NHe=HDr([kr("w3m-connecting-siwe")],NHe);var UDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let sAt=class extends Mr{constructor(){var e;if(super(),this.wallet=(e=ca.state.data)==null?void 0:e.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");Po.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return Mt`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["3xl","xl","xl","xl"]}
        gap="xl"
      >
        <wui-wallet-image
          size="lg"
          imageSrc=${Ko(lh.getWalletImage(this.wallet))}
        ></wui-wallet-image>

        <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>
      </wui-flex>

      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
    `}};sAt=UDr([kr("w3m-connecting-wc-unsupported")],sAt);var zDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let lAt=class extends h1{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",Po.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){var e;if((e=this.wallet)!=null&&e.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:n,name:r}=this.wallet,{redirect:a,href:o}=La.formatUniversalUrl(n,this.uri);sl.setWcLinking({name:r,href:o}),sl.setRecentWallet(this.wallet),La.openHref(a,"_blank")}catch{this.error=!0}}};lAt=zDr([kr("w3m-connecting-wc-web")],lAt);const GDr=Kr`
  wui-icon-link[data-hidden='true'] {
    opacity: 0 !important;
    pointer-events: none;
  }
`;var LEe=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};function cAt(){var s,l,c,u,d,h,f;const t=(l=(s=ca.state.data)==null?void 0:s.connector)==null?void 0:l.name,e=(u=(c=ca.state.data)==null?void 0:c.wallet)==null?void 0:u.name,n=(h=(d=ca.state.data)==null?void 0:d.network)==null?void 0:h.name,r=e??t,a=hu.getConnectors();return{Connect:`Connect ${a.length===1&&((f=a[0])==null?void 0:f.id)==="w3m-email"?"Email":""} Wallet`,Account:void 0,ConnectingExternal:r??"Connect Wallet",ConnectingWalletConnect:r??"WalletConnect",ConnectingSiwe:"Sign In",Networks:"Choose Network",SwitchNetwork:n??"Switch Network",AllWallets:"All Wallets",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",GetWallet:"Get a wallet",Downloads:r?`Get ${r}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",ApproveTransaction:"Approve Transaction",Transactions:"Activity",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailWalletWaiting:"Approve Email"}}let xU=class extends Mr{constructor(){super(),this.unsubscribe=[],this.heading=cAt()[ca.state.view],this.buffering=!1,this.showBack=!1,this.unsubscribe.push(ca.subscribeKey("view",e=>{this.onViewChange(e),this.onHistoryChange()}),sl.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return Mt`
      <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
        ${this.dynamicButtonTemplate()} ${this.titleTemplate()}
        <wui-icon-link
          ?disabled=${this.buffering}
          icon="close"
          @click=${this.onClose.bind(this)}
          data-testid="w3m-header-close"
        ></wui-icon-link>
      </wui-flex>
      ${this.separatorTemplate()}
    `}onWalletHelp(){Po.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),ca.push("WhatIsAWallet")}async onClose(){Fh.state.isSiweEnabled&&Fh.state.status!=="success"&&await sl.disconnect(),fu.close()}titleTemplate(){return Mt`<wui-text variant="paragraph-700" color="fg-100">${this.heading}</wui-text>`}dynamicButtonTemplate(){const{view:e}=ca.state,n=e==="Connect",r=e==="ApproveTransaction";return this.showBack&&!r?Mt`<wui-icon-link
        id="dynamic"
        icon="chevronLeft"
        ?disabled=${this.buffering}
        @click=${this.onGoBack.bind(this)}
      ></wui-icon-link>`:Mt`<wui-icon-link
      data-hidden=${!n}
      id="dynamic"
      icon="helpCircle"
      @click=${this.onWalletHelp.bind(this)}
    ></wui-icon-link>`}separatorTemplate(){return this.heading?Mt`<wui-separator></wui-separator>`:null}getPadding(){return this.heading?["l","2l","l","2l"]:["l","2l","0","2l"]}async onViewChange(e){var r;const n=(r=this.shadowRoot)==null?void 0:r.querySelector("wui-text");if(n){const a=cAt()[e];await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.heading=a,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})}}async onHistoryChange(){var r;const{history:e}=ca.state,n=(r=this.shadowRoot)==null?void 0:r.querySelector("#dynamic");e.length>1&&!this.showBack&&n?(await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&n&&(await n.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,n.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){ca.state.view==="ConnectingSiwe"?ca.push("Connect"):ca.goBack()}};xU.styles=[GDr];LEe([Bi()],xU.prototype,"heading",void 0);LEe([Bi()],xU.prototype,"buffering",void 0);LEe([Bi()],xU.prototype,"showBack",void 0);xU=LEe([kr("w3m-header")],xU);var SZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let IHe=class extends Mr{constructor(){super(...arguments),this.data=[]}render(){return Mt`
      <wui-flex flexDirection="column" alignItems="center" gap="l">
        ${this.data.map(e=>Mt`
            <wui-flex flexDirection="column" alignItems="center" gap="xl">
              <wui-flex flexDirection="row" justifyContent="center" gap="1xs">
                ${e.images.map(n=>Mt`<wui-visual name=${n}></wui-visual>`)}
              </wui-flex>
            </wui-flex>
            <wui-flex flexDirection="column" alignItems="center" gap="xxs">
              <wui-text variant="paragraph-500" color="fg-100" align="center">
                ${e.title}
              </wui-text>
              <wui-text variant="small-500" color="fg-200" align="center">${e.text}</wui-text>
            </wui-flex>
          `)}
      </wui-flex>
    `}};SZt([Ht({type:Array})],IHe.prototype,"data",void 0);IHe=SZt([kr("w3m-help-widget")],IHe);const VDr=Kr`
  wui-flex {
    background-color: var(--wui-gray-glass-005);
  }

  a {
    text-decoration: none;
    color: var(--wui-color-fg-175);
    font-weight: 500;
  }
`;var KDr=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let PHe=class extends Mr{render(){const{termsConditionsUrl:e,privacyPolicyUrl:n}=sc.state;return!e&&!n?null:Mt`
      <wui-flex .padding=${["m","s","s","s"]} justifyContent="center">
        <wui-text color="fg-250" variant="small-400" align="center">
          By connecting your wallet, you agree to our <br />
          ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
        </wui-text>
      </wui-flex>
    `}andTemplate(){const{termsConditionsUrl:e,privacyPolicyUrl:n}=sc.state;return e&&n?"and":""}termsTemplate(){const{termsConditionsUrl:e}=sc.state;return e?Mt`<a href=${e}>Terms of Service</a>`:null}privacyTemplate(){const{privacyPolicyUrl:e}=sc.state;return e?Mt`<a href=${e}>Privacy Policy</a>`:null}};PHe.styles=[VDr];PHe=KDr([kr("w3m-legal-footer")],PHe);const WDr=Kr`
  :host {
    display: block;
    padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
  }
`;var wZt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let B0e=class extends Mr{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:e,app_store:n,play_store:r,chrome_store:a,homepage:o}=this.wallet,s=La.isMobile(),l=La.isIos(),c=La.isAndroid(),u=[n,r,o,a].filter(Boolean).length>1,d=lu.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return u&&!s?Mt`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${()=>ca.push("Downloads",{wallet:this.wallet})}
        ></wui-cta-button>
      `:!u&&o?Mt`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${this.onHomePage.bind(this)}
        ></wui-cta-button>
      `:n&&l?Mt`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${this.onAppStore.bind(this)}
        ></wui-cta-button>
      `:r&&c?Mt`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${this.onPlayStore.bind(this)}
        ></wui-cta-button>
      `:(this.style.display="none",null)}onAppStore(){var e;(e=this.wallet)!=null&&e.app_store&&La.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;(e=this.wallet)!=null&&e.play_store&&La.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;(e=this.wallet)!=null&&e.homepage&&La.openHref(this.wallet.homepage,"_blank")}};B0e.styles=[WDr];wZt([Ht({type:Object})],B0e.prototype,"wallet",void 0);B0e=wZt([kr("w3m-mobile-download-links")],B0e);const QDr=Kr`
  :host {
    display: block;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    top: 11px;
    left: 50%;
    width: max-content;
  }
`;var _Zt=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};const qDr={success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}};let D0e=class extends Mr{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=fh.state.open,this.unsubscribe.push(fh.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){const{message:e,variant:n}=fh.state,r=qDr[n];return Mt`
      <wui-snackbar
        message=${e}
        backgroundColor=${r.backgroundColor}
        iconColor=${r.iconColor}
        icon=${r.icon}
      ></wui-snackbar>
    `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout=setTimeout(()=>fh.hide(),2500)):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};D0e.styles=QDr;_Zt([Bi()],D0e.prototype,"open",void 0);D0e=_Zt([kr("w3m-snackbar")],D0e);const YDr=Kr`
  wui-separator {
    margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1);
    width: calc(100% + var(--wui-spacing-s) * 2);
  }

  wui-email-input {
    width: 100%;
  }

  form {
    width: 100%;
    display: block;
    position: relative;
  }

  wui-icon-link,
  wui-loading-spinner {
    position: absolute;
    top: 21px;
    transform: translateY(-50%);
  }

  wui-icon-link {
    right: var(--wui-spacing-xs);
  }

  wui-loading-spinner {
    right: var(--wui-spacing-m);
  }

  .alphaBanner {
    padding: 10px 12px 10px 10px;
    border-radius: var(--wui-border-radius-s);
    background: var(--wui-accent-glass-010);
    margin-bottom: var(--wui-spacing-s);
  }
`;var mae=globalThis&&globalThis.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o};let C6=class extends Mr{constructor(){super(),this.unsubscribe=[],this.formRef=bEe(),this.connectors=hu.state.connectors,this.email="",this.loading=!1,this.error="",this.unsubscribe.push(hu.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){var e;(e=this.formRef.value)==null||e.addEventListener("keydown",n=>{n.key==="Enter"&&this.onSubmitEmail(n)})}render(){const e=this.connectors.length>1;return this.connectors.find(r=>r.type==="EMAIL")?Mt`
      ${this.alphaWarningTemplate()}
      <form ${xEe(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}>
        <wui-email-input
          @focus=${this.onFocusEvent.bind(this)}
          .disabled=${this.loading}
          @inputChange=${this.onEmailInputChange.bind(this)}
          .errorMessage=${this.error}
        >
        </wui-email-input>

        ${this.submitButtonTemplate()}${this.loadingTemplate()}
        <input type="submit" hidden />
      </form>

      ${e?Mt`<wui-separator text="or"></wui-separator>`:null}
    `:null}alphaWarningTemplate(){return Mt`
          <wui-flex class="alphaBanner" gap="xs" alignItems="center" justifyContent="center">
            <wui-icon-box
              size="sm"
              icon="alpha"
              iconColor="accent-100"
              background="opaque"
              backgroundColor="accent-100"
            ></wui-icon-box>
            <wui-text variant="small-400" color="accent-100">
              This is an alpha version to test before launch
            </wui-text>
          </wui-flex>
        `}submitButtonTemplate(){return!this.loading&&this.email.length>3?Mt`
          <wui-icon-link
            size="sm"
            icon="chevronRight"
            iconcolor="accent-100"
            @click=${this.onSubmitEmail.bind(this)}
          >
          </wui-icon-link>
        `:null}loadingTemplate(){return this.loading?Mt`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}onEmailInputChange(e){this.email=e.detail,this.error=""}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();const n=hu.getEmailConnector();if(!n)throw new Error("w3m-email-login-widget: Email connector not found");const{action:r}=await n.provider.connectEmail({email:this.email});Po.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),r==="VERIFY_OTP"?(Po.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),ca.push("EmailVerifyOtp",{email:this.email})):r==="VERIFY_DEVICE"&&ca.push("EmailVerifyDevice",{email:this.email})}catch(n){const r=La.parseError(n);r!=null&&r.includes("Invalid email")?this.error="Invalid email. Try again.":fh.showError(n)}finally{this.loading=!1}}onFocusEvent(){Po.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};C6.styles=YDr;mae([Bi()],C6.prototype,"connectors",void 0);mae([Bi()],C6.prototype,"email",void 0);mae([Bi()],C6.prototype,"loading",void 0);mae([Bi()],C6.prototype,"error",void 0);C6=mae([kr("w3m-email-login-widget")],C6);let uAt=!1;class JDr{constructor(e){this.initPromise=void 0,this.setIsConnected=n=>{jl.setIsConnected(n)},this.setCaipAddress=n=>{jl.setCaipAddress(n)},this.setBalance=(n,r)=>{jl.setBalance(n,r)},this.setProfileName=n=>{jl.setProfileName(n)},this.setProfileImage=n=>{jl.setProfileImage(n)},this.resetAccount=()=>{jl.resetAccount()},this.setCaipNetwork=n=>{dh.setCaipNetwork(n)},this.getCaipNetwork=()=>dh.state.caipNetwork,this.setRequestedCaipNetworks=n=>{dh.setRequestedCaipNetworks(n)},this.getApprovedCaipNetworksData=()=>dh.getApprovedCaipNetworksData(),this.resetNetwork=()=>{dh.resetNetwork()},this.setConnectors=n=>{hu.setConnectors(n)},this.addConnector=n=>{hu.addConnector(n)},this.getConnectors=()=>hu.getConnectors(),this.resetWcConnection=()=>{sl.resetWcConnection()},this.fetchIdentity=n=>aJt.fetchIdentity(n),this.setAddressExplorerUrl=n=>{jl.setAddressExplorerUrl(n)},this.setSIWENonce=n=>{Fh.setNonce(n)},this.setSIWESession=n=>{Fh.setSession(n)},this.setSIWEStatus=n=>{Fh.setStatus(n)},this.setSIWEMessage=n=>{Fh.setMessage(n)},this.initControllers(e),this.initOrContinue()}async open(e){await this.initOrContinue(),fu.open(e)}async close(){await this.initOrContinue(),fu.close()}setLoading(e){fu.setLoading(e)}getThemeMode(){return DA.state.themeMode}getThemeVariables(){return DA.state.themeVariables}setThemeMode(e){DA.setThemeMode(e),TJt(DA.state.themeMode);try{const n=hu.getEmailConnector();n&&n.provider.syncTheme({themeMode:DA.getSnapshot().themeMode})}catch{console.info("Unable to sync theme to email connector")}}setThemeVariables(e){DA.setThemeVariables(e),sPr(DA.state.themeVariables);try{const n=hu.getEmailConnector();n&&n.provider.syncTheme({themeVariables:DA.getSnapshot().themeVariables})}catch{console.info("Unable to sync theme to email connector")}}subscribeTheme(e){return DA.subscribe(e)}getState(){return{...XH.state}}subscribeState(e){return XH.subscribe(e)}getEvent(){return{...Po.state}}subscribeEvents(e){return Po.subscribe(e)}subscribeSIWEState(e){return Fh.subscribe(e)}initControllers(e){if(dh.setClient(e.networkControllerClient),dh.setDefaultCaipNetwork(e.defaultChain),sc.setProjectId(e.projectId),sc.setIncludeWalletIds(e.includeWalletIds),sc.setExcludeWalletIds(e.excludeWalletIds),sc.setFeaturedWalletIds(e.featuredWalletIds),sc.setTokens(e.tokens),sc.setTermsConditionsUrl(e.termsConditionsUrl),sc.setPrivacyPolicyUrl(e.privacyPolicyUrl),sc.setCustomWallets(e.customWallets),sc.setEnableAnalytics(e.enableAnalytics),sc.setSdkVersion(e._sdkVersion),sl.setClient(e.connectionControllerClient),e.siweControllerClient){const n=e.siweControllerClient;Fh.setSIWEClient(n)}e.metadata&&sc.setMetadata(e.metadata),e.themeMode&&DA.setThemeMode(e.themeMode),e.themeVariables&&DA.setThemeVariables(e.themeVariables)}async initOrContinue(){return!this.initPromise&&!uAt&&La.isClient()&&(uAt=!0,this.initPromise=new Promise(async e=>{await Promise.all([hM(()=>import("./index-6e9cd061.js"),[]),hM(()=>Promise.resolve().then(()=>$Lr),void 0)]);const n=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",n),e()})),this.initPromise}}const Hi={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",COINBASE_CONNECTOR_ID:"coinbaseWallet",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",EMAIL_CONNECTOR_ID:"w3mEmail",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",VERSION:"3.5.7"},Kg={ConnectorExplorerIds:{[Hi.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[Hi.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[Hi.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},EIP155NetworkImageIds:{1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",1313161554:"3ff73439-a619-4894-9262-4470c773a100"},ConnectorImageIds:{[Hi.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[Hi.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[Hi.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[Hi.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[Hi.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[Hi.INJECTED_CONNECTOR_ID]:"Browser Wallet",[Hi.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[Hi.COINBASE_CONNECTOR_ID]:"Coinbase",[Hi.LEDGER_CONNECTOR_ID]:"Ledger",[Hi.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[Hi.INJECTED_CONNECTOR_ID]:"INJECTED",[Hi.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[Hi.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[Hi.EMAIL_CONNECTOR_ID]:"EMAIL"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},mce={caipNetworkIdToNumber(t){return t?Number(t.split(":")[1]):void 0},getCaipTokens(t){if(!t)return;const e={};return Object.entries(t).forEach(([n,r])=>{e[`${Hi.EIP155}:${n}`]=r}),e}};var iet={exports:{}},jj=typeof Reflect=="object"?Reflect:null,dAt=jj&&typeof jj.apply=="function"?jj.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},lme;jj&&typeof jj.ownKeys=="function"?lme=jj.ownKeys:Object.getOwnPropertySymbols?lme=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:lme=function(e){return Object.getOwnPropertyNames(e)};function ZDr(t){console&&console.warn&&console.warn(t)}var TZt=Number.isNaN||function(e){return e!==e};function Wc(){Wc.init.call(this)}iet.exports=Wc;iet.exports.once=n6r;Wc.EventEmitter=Wc;Wc.prototype._events=void 0;Wc.prototype._eventsCount=0;Wc.prototype._maxListeners=void 0;var hAt=10;function BEe(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Wc,"defaultMaxListeners",{enumerable:!0,get:function(){return hAt},set:function(t){if(typeof t!="number"||t<0||TZt(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");hAt=t}});Wc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Wc.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||TZt(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function CZt(t){return t._maxListeners===void 0?Wc.defaultMaxListeners:t._maxListeners}Wc.prototype.getMaxListeners=function(){return CZt(this)};Wc.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var a=e==="error",o=this._events;if(o!==void 0)a=a&&o.error===void 0;else if(!a)return!1;if(a){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var c=o[e];if(c===void 0)return!1;if(typeof c=="function")dAt(c,this,n);else for(var u=c.length,d=IZt(c,u),r=0;r<u;++r)dAt(d[r],this,n);return!0};function kZt(t,e,n,r){var a,o,s;if(BEe(n),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),s===void 0)s=o[e]=n,++t._eventsCount;else if(typeof s=="function"?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),a=CZt(t),a>0&&s.length>a&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,ZDr(l)}return t}Wc.prototype.addListener=function(e,n){return kZt(this,e,n,!1)};Wc.prototype.on=Wc.prototype.addListener;Wc.prototype.prependListener=function(e,n){return kZt(this,e,n,!0)};function XDr(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function RZt(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},a=XDr.bind(r);return a.listener=n,r.wrapFn=a,a}Wc.prototype.once=function(e,n){return BEe(n),this.on(e,RZt(this,e,n)),this};Wc.prototype.prependOnceListener=function(e,n){return BEe(n),this.prependListener(e,RZt(this,e,n)),this};Wc.prototype.removeListener=function(e,n){var r,a,o,s,l;if(BEe(n),a=this._events,a===void 0)return this;if(r=a[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){l=r[s].listener,o=s;break}if(o<0)return this;o===0?r.shift():e6r(r,o),r.length===1&&(a[e]=r[0]),a.removeListener!==void 0&&this.emit("removeListener",e,l||n)}return this};Wc.prototype.off=Wc.prototype.removeListener;Wc.prototype.removeAllListeners=function(e){var n,r,a;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o=Object.keys(r),s;for(a=0;a<o.length;++a)s=o[a],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(a=n.length-1;a>=0;a--)this.removeListener(e,n[a]);return this};function MZt(t,e,n){var r=t._events;if(r===void 0)return[];var a=r[e];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?t6r(a):IZt(a,a.length)}Wc.prototype.listeners=function(e){return MZt(this,e,!0)};Wc.prototype.rawListeners=function(e){return MZt(this,e,!1)};Wc.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):NZt.call(t,e)};Wc.prototype.listenerCount=NZt;function NZt(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Wc.prototype.eventNames=function(){return this._eventsCount>0?lme(this._events):[]};function IZt(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function e6r(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function t6r(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function n6r(t,e){return new Promise(function(n,r){function a(s){t.removeListener(e,o),r(s)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",a),n([].slice.call(arguments))}PZt(t,e,o,{once:!0}),e!=="error"&&r6r(t,a,{once:!0})})}function r6r(t,e,n){typeof t.on=="function"&&PZt(t,"error",e,n)}function PZt(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function a(o){r.once&&t.removeEventListener(e,a),n(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var mg=iet.exports;const aet=Li(mg);var oet={},DEe={},Xo={},OZt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(l,c){var u=l>>>16&65535,d=l&65535,h=c>>>16&65535,f=c&65535;return d*f+(u*f+d*h<<16>>>0)|0}t.mul=Math.imul||e;function n(l,c){return l+c|0}t.add=n;function r(l,c){return l-c|0}t.sub=r;function a(l,c){return l<<c|l>>>32-c}t.rotl=a;function o(l,c){return l<<32-c|l>>>c}t.rotr=o;function s(l){return typeof l=="number"&&isFinite(l)&&Math.floor(l)===l}t.isInteger=Number.isInteger||s,t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(l){return t.isInteger(l)&&l>=-t.MAX_SAFE_INTEGER&&l<=t.MAX_SAFE_INTEGER}})(OZt);Object.defineProperty(Xo,"__esModule",{value:!0});var LZt=OZt;function i6r(t,e){return e===void 0&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16}Xo.readInt16BE=i6r;function a6r(t,e){return e===void 0&&(e=0),(t[e+0]<<8|t[e+1])>>>0}Xo.readUint16BE=a6r;function o6r(t,e){return e===void 0&&(e=0),(t[e+1]<<8|t[e])<<16>>16}Xo.readInt16LE=o6r;function s6r(t,e){return e===void 0&&(e=0),(t[e+1]<<8|t[e])>>>0}Xo.readUint16LE=s6r;function BZt(t,e,n){return e===void 0&&(e=new Uint8Array(2)),n===void 0&&(n=0),e[n+0]=t>>>8,e[n+1]=t>>>0,e}Xo.writeUint16BE=BZt;Xo.writeInt16BE=BZt;function DZt(t,e,n){return e===void 0&&(e=new Uint8Array(2)),n===void 0&&(n=0),e[n+0]=t>>>0,e[n+1]=t>>>8,e}Xo.writeUint16LE=DZt;Xo.writeInt16LE=DZt;function OHe(t,e){return e===void 0&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}Xo.readInt32BE=OHe;function LHe(t,e){return e===void 0&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}Xo.readUint32BE=LHe;function BHe(t,e){return e===void 0&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}Xo.readInt32LE=BHe;function DHe(t,e){return e===void 0&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}Xo.readUint32LE=DHe;function $0e(t,e,n){return e===void 0&&(e=new Uint8Array(4)),n===void 0&&(n=0),e[n+0]=t>>>24,e[n+1]=t>>>16,e[n+2]=t>>>8,e[n+3]=t>>>0,e}Xo.writeUint32BE=$0e;Xo.writeInt32BE=$0e;function F0e(t,e,n){return e===void 0&&(e=new Uint8Array(4)),n===void 0&&(n=0),e[n+0]=t>>>0,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24,e}Xo.writeUint32LE=F0e;Xo.writeInt32LE=F0e;function l6r(t,e){e===void 0&&(e=0);var n=OHe(t,e),r=OHe(t,e+4);return n*4294967296+r-(r>>31)*4294967296}Xo.readInt64BE=l6r;function c6r(t,e){e===void 0&&(e=0);var n=LHe(t,e),r=LHe(t,e+4);return n*4294967296+r}Xo.readUint64BE=c6r;function u6r(t,e){e===void 0&&(e=0);var n=BHe(t,e),r=BHe(t,e+4);return r*4294967296+n-(n>>31)*4294967296}Xo.readInt64LE=u6r;function d6r(t,e){e===void 0&&(e=0);var n=DHe(t,e),r=DHe(t,e+4);return r*4294967296+n}Xo.readUint64LE=d6r;function $Zt(t,e,n){return e===void 0&&(e=new Uint8Array(8)),n===void 0&&(n=0),$0e(t/4294967296>>>0,e,n),$0e(t>>>0,e,n+4),e}Xo.writeUint64BE=$Zt;Xo.writeInt64BE=$Zt;function FZt(t,e,n){return e===void 0&&(e=new Uint8Array(8)),n===void 0&&(n=0),F0e(t>>>0,e,n),F0e(t/4294967296>>>0,e,n+4),e}Xo.writeUint64LE=FZt;Xo.writeInt64LE=FZt;function h6r(t,e,n){if(n===void 0&&(n=0),t%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,a=1,o=t/8+n-1;o>=n;o--)r+=e[o]*a,a*=256;return r}Xo.readUintBE=h6r;function f6r(t,e,n){if(n===void 0&&(n=0),t%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,a=1,o=n;o<n+t/8;o++)r+=e[o]*a,a*=256;return r}Xo.readUintLE=f6r;function p6r(t,e,n,r){if(n===void 0&&(n=new Uint8Array(t/8)),r===void 0&&(r=0),t%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!LZt.isSafeInteger(e))throw new Error("writeUintBE value must be an integer");for(var a=1,o=t/8+r-1;o>=r;o--)n[o]=e/a&255,a*=256;return n}Xo.writeUintBE=p6r;function m6r(t,e,n,r){if(n===void 0&&(n=new Uint8Array(t/8)),r===void 0&&(r=0),t%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!LZt.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var a=1,o=r;o<r+t/8;o++)n[o]=e/a&255,a*=256;return n}Xo.writeUintLE=m6r;function g6r(t,e){e===void 0&&(e=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getFloat32(e)}Xo.readFloat32BE=g6r;function v6r(t,e){e===void 0&&(e=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getFloat32(e,!0)}Xo.readFloat32LE=v6r;function A6r(t,e){e===void 0&&(e=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getFloat64(e)}Xo.readFloat64BE=A6r;function y6r(t,e){e===void 0&&(e=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getFloat64(e,!0)}Xo.readFloat64LE=y6r;function b6r(t,e,n){e===void 0&&(e=new Uint8Array(4)),n===void 0&&(n=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.setFloat32(n,t),e}Xo.writeFloat32BE=b6r;function x6r(t,e,n){e===void 0&&(e=new Uint8Array(4)),n===void 0&&(n=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.setFloat32(n,t,!0),e}Xo.writeFloat32LE=x6r;function E6r(t,e,n){e===void 0&&(e=new Uint8Array(8)),n===void 0&&(n=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.setFloat64(n,t),e}Xo.writeFloat64BE=E6r;function S6r(t,e,n){e===void 0&&(e=new Uint8Array(8)),n===void 0&&(n=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.setFloat64(n,t,!0),e}Xo.writeFloat64LE=S6r;var ib={};Object.defineProperty(ib,"__esModule",{value:!0});function w6r(t){for(var e=0;e<t.length;e++)t[e]=0;return t}ib.wipe=w6r;Object.defineProperty(DEe,"__esModule",{value:!0});var Lg=Xo,$He=ib,_6r=20;function T6r(t,e,n){for(var r=1634760805,a=857760878,o=2036477234,s=1797285236,l=n[3]<<24|n[2]<<16|n[1]<<8|n[0],c=n[7]<<24|n[6]<<16|n[5]<<8|n[4],u=n[11]<<24|n[10]<<16|n[9]<<8|n[8],d=n[15]<<24|n[14]<<16|n[13]<<8|n[12],h=n[19]<<24|n[18]<<16|n[17]<<8|n[16],f=n[23]<<24|n[22]<<16|n[21]<<8|n[20],p=n[27]<<24|n[26]<<16|n[25]<<8|n[24],m=n[31]<<24|n[30]<<16|n[29]<<8|n[28],g=e[3]<<24|e[2]<<16|e[1]<<8|e[0],v=e[7]<<24|e[6]<<16|e[5]<<8|e[4],A=e[11]<<24|e[10]<<16|e[9]<<8|e[8],y=e[15]<<24|e[14]<<16|e[13]<<8|e[12],S=r,x=a,w=o,_=s,C=l,R=c,k=u,P=d,N=h,L=f,I=p,b=m,T=g,M=v,D=A,B=y,j=0;j<_6r;j+=2)S=S+C|0,T^=S,T=T>>>32-16|T<<16,N=N+T|0,C^=N,C=C>>>32-12|C<<12,x=x+R|0,M^=x,M=M>>>32-16|M<<16,L=L+M|0,R^=L,R=R>>>32-12|R<<12,w=w+k|0,D^=w,D=D>>>32-16|D<<16,I=I+D|0,k^=I,k=k>>>32-12|k<<12,_=_+P|0,B^=_,B=B>>>32-16|B<<16,b=b+B|0,P^=b,P=P>>>32-12|P<<12,w=w+k|0,D^=w,D=D>>>32-8|D<<8,I=I+D|0,k^=I,k=k>>>32-7|k<<7,_=_+P|0,B^=_,B=B>>>32-8|B<<8,b=b+B|0,P^=b,P=P>>>32-7|P<<7,x=x+R|0,M^=x,M=M>>>32-8|M<<8,L=L+M|0,R^=L,R=R>>>32-7|R<<7,S=S+C|0,T^=S,T=T>>>32-8|T<<8,N=N+T|0,C^=N,C=C>>>32-7|C<<7,S=S+R|0,B^=S,B=B>>>32-16|B<<16,I=I+B|0,R^=I,R=R>>>32-12|R<<12,x=x+k|0,T^=x,T=T>>>32-16|T<<16,b=b+T|0,k^=b,k=k>>>32-12|k<<12,w=w+P|0,M^=w,M=M>>>32-16|M<<16,N=N+M|0,P^=N,P=P>>>32-12|P<<12,_=_+C|0,D^=_,D=D>>>32-16|D<<16,L=L+D|0,C^=L,C=C>>>32-12|C<<12,w=w+P|0,M^=w,M=M>>>32-8|M<<8,N=N+M|0,P^=N,P=P>>>32-7|P<<7,_=_+C|0,D^=_,D=D>>>32-8|D<<8,L=L+D|0,C^=L,C=C>>>32-7|C<<7,x=x+k|0,T^=x,T=T>>>32-8|T<<8,b=b+T|0,k^=b,k=k>>>32-7|k<<7,S=S+R|0,B^=S,B=B>>>32-8|B<<8,I=I+B|0,R^=I,R=R>>>32-7|R<<7;Lg.writeUint32LE(S+r|0,t,0),Lg.writeUint32LE(x+a|0,t,4),Lg.writeUint32LE(w+o|0,t,8),Lg.writeUint32LE(_+s|0,t,12),Lg.writeUint32LE(C+l|0,t,16),Lg.writeUint32LE(R+c|0,t,20),Lg.writeUint32LE(k+u|0,t,24),Lg.writeUint32LE(P+d|0,t,28),Lg.writeUint32LE(N+h|0,t,32),Lg.writeUint32LE(L+f|0,t,36),Lg.writeUint32LE(I+p|0,t,40),Lg.writeUint32LE(b+m|0,t,44),Lg.writeUint32LE(T+g|0,t,48),Lg.writeUint32LE(M+v|0,t,52),Lg.writeUint32LE(D+A|0,t,56),Lg.writeUint32LE(B+y|0,t,60)}function jZt(t,e,n,r,a){if(a===void 0&&(a=0),t.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(r.length<n.length)throw new Error("ChaCha: destination is shorter than source");var o,s;if(a===0){if(e.length!==8&&e.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),s=o.length-e.length,o.set(e,s)}else{if(e.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=e,s=a}for(var l=new Uint8Array(64),c=0;c<n.length;c+=64){T6r(l,o,t);for(var u=c;u<c+64&&u<n.length;u++)r[u]=n[u]^l[u-c];k6r(o,0,s)}return $He.wipe(l),a===0&&$He.wipe(o),r}DEe.streamXOR=jZt;function C6r(t,e,n,r){return r===void 0&&(r=0),$He.wipe(n),jZt(t,e,n,n,r)}DEe.stream=C6r;function k6r(t,e,n){for(var r=1;n--;)r=r+(t[e]&255)|0,t[e]=r&255,r>>>=8,e++;if(r>0)throw new Error("ChaCha: counter overflow")}var HZt={},oO={};Object.defineProperty(oO,"__esModule",{value:!0});function R6r(t,e,n){return~(t-1)&e|t-1&n}oO.select=R6r;function M6r(t,e){return(t|0)-(e|0)-1>>>31&1}oO.lessOrEqual=M6r;function UZt(t,e){if(t.length!==e.length)return 0;for(var n=0,r=0;r<t.length;r++)n|=t[r]^e[r];return 1&n-1>>>8}oO.compare=UZt;function N6r(t,e){return t.length===0||e.length===0?!1:UZt(t,e)!==0}oO.equal=N6r;(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=oO,n=ib;t.DIGEST_LENGTH=16;var r=function(){function s(l){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var c=l[0]|l[1]<<8;this._r[0]=c&8191;var u=l[2]|l[3]<<8;this._r[1]=(c>>>13|u<<3)&8191;var d=l[4]|l[5]<<8;this._r[2]=(u>>>10|d<<6)&7939;var h=l[6]|l[7]<<8;this._r[3]=(d>>>7|h<<9)&8191;var f=l[8]|l[9]<<8;this._r[4]=(h>>>4|f<<12)&255,this._r[5]=f>>>1&8190;var p=l[10]|l[11]<<8;this._r[6]=(f>>>14|p<<2)&8191;var m=l[12]|l[13]<<8;this._r[7]=(p>>>11|m<<5)&8065;var g=l[14]|l[15]<<8;this._r[8]=(m>>>8|g<<8)&8191,this._r[9]=g>>>5&127,this._pad[0]=l[16]|l[17]<<8,this._pad[1]=l[18]|l[19]<<8,this._pad[2]=l[20]|l[21]<<8,this._pad[3]=l[22]|l[23]<<8,this._pad[4]=l[24]|l[25]<<8,this._pad[5]=l[26]|l[27]<<8,this._pad[6]=l[28]|l[29]<<8,this._pad[7]=l[30]|l[31]<<8}return s.prototype._blocks=function(l,c,u){for(var d=this._fin?0:2048,h=this._h[0],f=this._h[1],p=this._h[2],m=this._h[3],g=this._h[4],v=this._h[5],A=this._h[6],y=this._h[7],S=this._h[8],x=this._h[9],w=this._r[0],_=this._r[1],C=this._r[2],R=this._r[3],k=this._r[4],P=this._r[5],N=this._r[6],L=this._r[7],I=this._r[8],b=this._r[9];u>=16;){var T=l[c+0]|l[c+1]<<8;h+=T&8191;var M=l[c+2]|l[c+3]<<8;f+=(T>>>13|M<<3)&8191;var D=l[c+4]|l[c+5]<<8;p+=(M>>>10|D<<6)&8191;var B=l[c+6]|l[c+7]<<8;m+=(D>>>7|B<<9)&8191;var j=l[c+8]|l[c+9]<<8;g+=(B>>>4|j<<12)&8191,v+=j>>>1&8191;var H=l[c+10]|l[c+11]<<8;A+=(j>>>14|H<<2)&8191;var U=l[c+12]|l[c+13]<<8;y+=(H>>>11|U<<5)&8191;var $=l[c+14]|l[c+15]<<8;S+=(U>>>8|$<<8)&8191,x+=$>>>5|d;var z=0,Z=z;Z+=h*w,Z+=f*(5*b),Z+=p*(5*I),Z+=m*(5*L),Z+=g*(5*N),z=Z>>>13,Z&=8191,Z+=v*(5*P),Z+=A*(5*k),Z+=y*(5*R),Z+=S*(5*C),Z+=x*(5*_),z+=Z>>>13,Z&=8191;var K=z;K+=h*_,K+=f*w,K+=p*(5*b),K+=m*(5*I),K+=g*(5*L),z=K>>>13,K&=8191,K+=v*(5*N),K+=A*(5*P),K+=y*(5*k),K+=S*(5*R),K+=x*(5*C),z+=K>>>13,K&=8191;var Q=z;Q+=h*C,Q+=f*_,Q+=p*w,Q+=m*(5*b),Q+=g*(5*I),z=Q>>>13,Q&=8191,Q+=v*(5*L),Q+=A*(5*N),Q+=y*(5*P),Q+=S*(5*k),Q+=x*(5*R),z+=Q>>>13,Q&=8191;var ee=z;ee+=h*R,ee+=f*C,ee+=p*_,ee+=m*w,ee+=g*(5*b),z=ee>>>13,ee&=8191,ee+=v*(5*I),ee+=A*(5*L),ee+=y*(5*N),ee+=S*(5*P),ee+=x*(5*k),z+=ee>>>13,ee&=8191;var X=z;X+=h*k,X+=f*R,X+=p*C,X+=m*_,X+=g*w,z=X>>>13,X&=8191,X+=v*(5*b),X+=A*(5*I),X+=y*(5*L),X+=S*(5*N),X+=x*(5*P),z+=X>>>13,X&=8191;var te=z;te+=h*P,te+=f*k,te+=p*R,te+=m*C,te+=g*_,z=te>>>13,te&=8191,te+=v*w,te+=A*(5*b),te+=y*(5*I),te+=S*(5*L),te+=x*(5*N),z+=te>>>13,te&=8191;var J=z;J+=h*N,J+=f*P,J+=p*k,J+=m*R,J+=g*C,z=J>>>13,J&=8191,J+=v*_,J+=A*w,J+=y*(5*b),J+=S*(5*I),J+=x*(5*L),z+=J>>>13,J&=8191;var ne=z;ne+=h*L,ne+=f*N,ne+=p*P,ne+=m*k,ne+=g*R,z=ne>>>13,ne&=8191,ne+=v*C,ne+=A*_,ne+=y*w,ne+=S*(5*b),ne+=x*(5*I),z+=ne>>>13,ne&=8191;var ie=z;ie+=h*I,ie+=f*L,ie+=p*N,ie+=m*P,ie+=g*k,z=ie>>>13,ie&=8191,ie+=v*R,ie+=A*C,ie+=y*_,ie+=S*w,ie+=x*(5*b),z+=ie>>>13,ie&=8191;var he=z;he+=h*b,he+=f*I,he+=p*L,he+=m*N,he+=g*P,z=he>>>13,he&=8191,he+=v*k,he+=A*R,he+=y*C,he+=S*_,he+=x*w,z+=he>>>13,he&=8191,z=(z<<2)+z|0,z=z+Z|0,Z=z&8191,z=z>>>13,K+=z,h=Z,f=K,p=Q,m=ee,g=X,v=te,A=J,y=ne,S=ie,x=he,c+=16,u-=16}this._h[0]=h,this._h[1]=f,this._h[2]=p,this._h[3]=m,this._h[4]=g,this._h[5]=v,this._h[6]=A,this._h[7]=y,this._h[8]=S,this._h[9]=x},s.prototype.finish=function(l,c){c===void 0&&(c=0);var u=new Uint16Array(10),d,h,f,p;if(this._leftover){for(p=this._leftover,this._buffer[p++]=1;p<16;p++)this._buffer[p]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(d=this._h[1]>>>13,this._h[1]&=8191,p=2;p<10;p++)this._h[p]+=d,d=this._h[p]>>>13,this._h[p]&=8191;for(this._h[0]+=d*5,d=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=d,d=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=d,u[0]=this._h[0]+5,d=u[0]>>>13,u[0]&=8191,p=1;p<10;p++)u[p]=this._h[p]+d,d=u[p]>>>13,u[p]&=8191;for(u[9]-=8192,h=(d^1)-1,p=0;p<10;p++)u[p]&=h;for(h=~h,p=0;p<10;p++)this._h[p]=this._h[p]&h|u[p];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,f=this._h[0]+this._pad[0],this._h[0]=f&65535,p=1;p<8;p++)f=(this._h[p]+this._pad[p]|0)+(f>>>16)|0,this._h[p]=f&65535;return l[c+0]=this._h[0]>>>0,l[c+1]=this._h[0]>>>8,l[c+2]=this._h[1]>>>0,l[c+3]=this._h[1]>>>8,l[c+4]=this._h[2]>>>0,l[c+5]=this._h[2]>>>8,l[c+6]=this._h[3]>>>0,l[c+7]=this._h[3]>>>8,l[c+8]=this._h[4]>>>0,l[c+9]=this._h[4]>>>8,l[c+10]=this._h[5]>>>0,l[c+11]=this._h[5]>>>8,l[c+12]=this._h[6]>>>0,l[c+13]=this._h[6]>>>8,l[c+14]=this._h[7]>>>0,l[c+15]=this._h[7]>>>8,this._finished=!0,this},s.prototype.update=function(l){var c=0,u=l.length,d;if(this._leftover){d=16-this._leftover,d>u&&(d=u);for(var h=0;h<d;h++)this._buffer[this._leftover+h]=l[c+h];if(u-=d,c+=d,this._leftover+=d,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(u>=16&&(d=u-u%16,this._blocks(l,c,d),c+=d,u-=d),u){for(var h=0;h<u;h++)this._buffer[this._leftover+h]=l[c+h];this._leftover+=u}return this},s.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var l=new Uint8Array(16);return this.finish(l),l},s.prototype.clean=function(){return n.wipe(this._buffer),n.wipe(this._r),n.wipe(this._h),n.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},s}();t.Poly1305=r;function a(s,l){var c=new r(s);c.update(l);var u=c.digest();return c.clean(),u}t.oneTimeAuth=a;function o(s,l){return s.length!==t.DIGEST_LENGTH||l.length!==t.DIGEST_LENGTH?!1:e.equal(s,l)}t.equal=o})(HZt);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=DEe,n=HZt,r=ib,a=Xo,o=oO;t.KEY_LENGTH=32,t.NONCE_LENGTH=12,t.TAG_LENGTH=16;var s=new Uint8Array(16),l=function(){function c(u){if(this.nonceLength=t.NONCE_LENGTH,this.tagLength=t.TAG_LENGTH,u.length!==t.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(u)}return c.prototype.seal=function(u,d,h,f){if(u.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var p=new Uint8Array(16);p.set(u,p.length-u.length);var m=new Uint8Array(32);e.stream(this._key,p,m,4);var g=d.length+this.tagLength,v;if(f){if(f.length!==g)throw new Error("ChaCha20Poly1305: incorrect destination length");v=f}else v=new Uint8Array(g);return e.streamXOR(this._key,p,d,v,4),this._authenticate(v.subarray(v.length-this.tagLength,v.length),m,v.subarray(0,v.length-this.tagLength),h),r.wipe(p),v},c.prototype.open=function(u,d,h,f){if(u.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(d.length<this.tagLength)return null;var p=new Uint8Array(16);p.set(u,p.length-u.length);var m=new Uint8Array(32);e.stream(this._key,p,m,4);var g=new Uint8Array(this.tagLength);if(this._authenticate(g,m,d.subarray(0,d.length-this.tagLength),h),!o.equal(g,d.subarray(d.length-this.tagLength,d.length)))return null;var v=d.length-this.tagLength,A;if(f){if(f.length!==v)throw new Error("ChaCha20Poly1305: incorrect destination length");A=f}else A=new Uint8Array(v);return e.streamXOR(this._key,p,d.subarray(0,d.length-this.tagLength),A,4),r.wipe(p),A},c.prototype.clean=function(){return r.wipe(this._key),this},c.prototype._authenticate=function(u,d,h,f){var p=new n.Poly1305(d);f&&(p.update(f),f.length%16>0&&p.update(s.subarray(f.length%16))),p.update(h),h.length%16>0&&p.update(s.subarray(h.length%16));var m=new Uint8Array(8);f&&a.writeUint64LE(f.length,m),p.update(m),a.writeUint64LE(h.length,m),p.update(m);for(var g=p.digest(),v=0;v<g.length;v++)u[v]=g[v];p.clean(),r.wipe(g),r.wipe(m)},c}();t.ChaCha20Poly1305=l})(oet);var zZt={},gae={},set={};Object.defineProperty(set,"__esModule",{value:!0});function I6r(t){return typeof t.saveState<"u"&&typeof t.restoreState<"u"&&typeof t.cleanSavedState<"u"}set.isSerializableHash=I6r;Object.defineProperty(gae,"__esModule",{value:!0});var L_=set,P6r=oO,O6r=ib,GZt=function(){function t(e,n){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);n.length>this.blockSize?this._inner.update(n).finish(r).clean():r.set(n);for(var a=0;a<r.length;a++)r[a]^=54;this._inner.update(r);for(var a=0;a<r.length;a++)r[a]^=106;this._outer.update(r),L_.isSerializableHash(this._inner)&&L_.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),O6r.wipe(r)}return t.prototype.reset=function(){if(!L_.isSerializableHash(this._inner)||!L_.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},t.prototype.clean=function(){L_.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),L_.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},t.prototype.update=function(e){return this._inner.update(e),this},t.prototype.finish=function(e){return this._finished?(this._outer.finish(e),this):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0,this)},t.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},t.prototype.saveState=function(){if(!L_.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},t.prototype.restoreState=function(e){if(!L_.isSerializableHash(this._inner)||!L_.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},t.prototype.cleanSavedState=function(e){if(!L_.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},t}();gae.HMAC=GZt;function L6r(t,e,n){var r=new GZt(t,e);r.update(n);var a=r.digest();return r.clean(),a}gae.hmac=L6r;gae.equal=P6r.equal;Object.defineProperty(zZt,"__esModule",{value:!0});var fAt=gae,pAt=ib,B6r=function(){function t(e,n,r,a){r===void 0&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var o=fAt.hmac(this._hash,r,n);this._hmac=new fAt.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(e){for(var n=new Uint8Array(e),r=0;r<n.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),n[r]=this._buffer[this._bufpos++];return n},t.prototype.clean=function(){this._hmac.clean(),pAt.wipe(this._buffer),pAt.wipe(this._counter),this._bufpos=0},t}(),D6r=zZt.HKDF=B6r,vG={},$Ee={},FEe={};Object.defineProperty(FEe,"__esModule",{value:!0});FEe.BrowserRandomSource=void 0;const mAt=65536;class $6r{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==void 0&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const n=new Uint8Array(e);for(let r=0;r<n.length;r+=mAt)this._crypto.getRandomValues(n.subarray(r,r+Math.min(n.length-r,mAt)));return n}}FEe.BrowserRandomSource=$6r;var jEe={};const F6r={},j6r=Object.freeze(Object.defineProperty({__proto__:null,default:F6r},Symbol.toStringTag,{value:"Module"})),H8=Uu(j6r);Object.defineProperty(jEe,"__esModule",{value:!0});jEe.NodeRandomSource=void 0;const H6r=ib;class U6r{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof qJ<"u"){const e=H8;e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let n=this._crypto.randomBytes(e);if(n.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let a=0;a<r.length;a++)r[a]=n[a];return(0,H6r.wipe)(n),r}}jEe.NodeRandomSource=U6r;Object.defineProperty($Ee,"__esModule",{value:!0});$Ee.SystemRandomSource=void 0;const z6r=FEe,G6r=jEe;class V6r{constructor(){if(this.isAvailable=!1,this.name="",this._source=new z6r.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new G6r.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}$Ee.SystemRandomSource=V6r;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const e=$Ee,n=Xo,r=ib;t.defaultRandomSource=new e.SystemRandomSource;function a(u,d=t.defaultRandomSource){return d.randomBytes(u)}t.randomBytes=a;function o(u=t.defaultRandomSource){const d=a(4,u),h=(0,n.readUint32LE)(d);return(0,r.wipe)(d),h}t.randomUint32=o;const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function l(u,d=s,h=t.defaultRandomSource){if(d.length<2)throw new Error("randomString charset is too short");if(d.length>256)throw new Error("randomString charset is too long");let f="";const p=d.length,m=256-256%p;for(;u>0;){const g=a(Math.ceil(u*256/m),h);for(let v=0;v<g.length&&u>0;v++){const A=g[v];A<m&&(f+=d.charAt(A%p),u--)}(0,r.wipe)(g)}return f}t.randomString=l;function c(u,d=s,h=t.defaultRandomSource){const f=Math.ceil(u/(Math.log(d.length)/Math.LN2));return l(f,d,h)}t.randomStringForEntropy=c})(vG);var HEe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Xo,n=ib;t.DIGEST_LENGTH=32,t.BLOCK_SIZE=64;var r=function(){function l(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return l.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},l.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},l.prototype.clean=function(){n.wipe(this._buffer),n.wipe(this._temp),this.reset()},l.prototype.update=function(c,u){if(u===void 0&&(u=c.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var d=0;if(this._bytesHashed+=u,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&u>0;)this._buffer[this._bufferLength++]=c[d++],u--;this._bufferLength===this.blockSize&&(o(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(u>=this.blockSize&&(d=o(this._temp,this._state,c,d,u),u%=this.blockSize);u>0;)this._buffer[this._bufferLength++]=c[d++],u--;return this},l.prototype.finish=function(c){if(!this._finished){var u=this._bytesHashed,d=this._bufferLength,h=u/536870912|0,f=u<<3,p=u%64<56?64:128;this._buffer[d]=128;for(var m=d+1;m<p-8;m++)this._buffer[m]=0;e.writeUint32BE(h,this._buffer,p-8),e.writeUint32BE(f,this._buffer,p-4),o(this._temp,this._state,this._buffer,0,p),this._finished=!0}for(var m=0;m<this.digestLength/4;m++)e.writeUint32BE(this._state[m],c,m*4);return this},l.prototype.digest=function(){var c=new Uint8Array(this.digestLength);return this.finish(c),c},l.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},l.prototype.restoreState=function(c){return this._state.set(c.state),this._bufferLength=c.bufferLength,c.buffer&&this._buffer.set(c.buffer),this._bytesHashed=c.bytesHashed,this._finished=!1,this},l.prototype.cleanSavedState=function(c){n.wipe(c.state),c.buffer&&n.wipe(c.buffer),c.bufferLength=0,c.bytesHashed=0},l}();t.SHA256=r;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function o(l,c,u,d,h){for(;h>=64;){for(var f=c[0],p=c[1],m=c[2],g=c[3],v=c[4],A=c[5],y=c[6],S=c[7],x=0;x<16;x++){var w=d+x*4;l[x]=e.readUint32BE(u,w)}for(var x=16;x<64;x++){var _=l[x-2],C=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=l[x-15];var R=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;l[x]=(C+l[x-7]|0)+(R+l[x-16]|0)}for(var x=0;x<64;x++){var C=(((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&A^~v&y)|0)+(S+(a[x]+l[x]|0)|0)|0,R=((f>>>2|f<<32-2)^(f>>>13|f<<32-13)^(f>>>22|f<<32-22))+(f&p^f&m^p&m)|0;S=y,y=A,A=v,v=g+C|0,g=m,m=p,p=f,f=C+R|0}c[0]+=f,c[1]+=p,c[2]+=m,c[3]+=g,c[4]+=v,c[5]+=A,c[6]+=y,c[7]+=S,d+=64,h-=64}return d}function s(l){var c=new r;c.update(l);var u=c.digest();return c.clean(),u}t.hash=s})(HEe);var cet={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sharedKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.scalarMultBase=t.scalarMult=t.SHARED_KEY_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=void 0;const e=vG,n=ib;t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=32,t.SHARED_KEY_LENGTH=32;function r(x){const w=new Float64Array(16);if(x)for(let _=0;_<x.length;_++)w[_]=x[_];return w}const a=new Uint8Array(32);a[0]=9;const o=r([56129,1]);function s(x){let w=1;for(let _=0;_<16;_++){let C=x[_]+w+65535;w=Math.floor(C/65536),x[_]=C-w*65536}x[0]+=w-1+37*(w-1)}function l(x,w,_){const C=~(_-1);for(let R=0;R<16;R++){const k=C&(x[R]^w[R]);x[R]^=k,w[R]^=k}}function c(x,w){const _=r(),C=r();for(let R=0;R<16;R++)C[R]=w[R];s(C),s(C),s(C);for(let R=0;R<2;R++){_[0]=C[0]-65517;for(let P=1;P<15;P++)_[P]=C[P]-65535-(_[P-1]>>16&1),_[P-1]&=65535;_[15]=C[15]-32767-(_[14]>>16&1);const k=_[15]>>16&1;_[14]&=65535,l(C,_,1-k)}for(let R=0;R<16;R++)x[2*R]=C[R]&255,x[2*R+1]=C[R]>>8}function u(x,w){for(let _=0;_<16;_++)x[_]=w[2*_]+(w[2*_+1]<<8);x[15]&=32767}function d(x,w,_){for(let C=0;C<16;C++)x[C]=w[C]+_[C]}function h(x,w,_){for(let C=0;C<16;C++)x[C]=w[C]-_[C]}function f(x,w,_){let C,R,k=0,P=0,N=0,L=0,I=0,b=0,T=0,M=0,D=0,B=0,j=0,H=0,U=0,$=0,z=0,Z=0,K=0,Q=0,ee=0,X=0,te=0,J=0,ne=0,ie=0,he=0,de=0,ce=0,Ee=0,Me=0,Be=0,ze=0,je=_[0],ye=_[1],me=_[2],le=_[3],pe=_[4],Ne=_[5],_e=_[6],ue=_[7],se=_[8],oe=_[9],ge=_[10],De=_[11],Fe=_[12],Se=_[13],Xe=_[14],Oe=_[15];C=w[0],k+=C*je,P+=C*ye,N+=C*me,L+=C*le,I+=C*pe,b+=C*Ne,T+=C*_e,M+=C*ue,D+=C*se,B+=C*oe,j+=C*ge,H+=C*De,U+=C*Fe,$+=C*Se,z+=C*Xe,Z+=C*Oe,C=w[1],P+=C*je,N+=C*ye,L+=C*me,I+=C*le,b+=C*pe,T+=C*Ne,M+=C*_e,D+=C*ue,B+=C*se,j+=C*oe,H+=C*ge,U+=C*De,$+=C*Fe,z+=C*Se,Z+=C*Xe,K+=C*Oe,C=w[2],N+=C*je,L+=C*ye,I+=C*me,b+=C*le,T+=C*pe,M+=C*Ne,D+=C*_e,B+=C*ue,j+=C*se,H+=C*oe,U+=C*ge,$+=C*De,z+=C*Fe,Z+=C*Se,K+=C*Xe,Q+=C*Oe,C=w[3],L+=C*je,I+=C*ye,b+=C*me,T+=C*le,M+=C*pe,D+=C*Ne,B+=C*_e,j+=C*ue,H+=C*se,U+=C*oe,$+=C*ge,z+=C*De,Z+=C*Fe,K+=C*Se,Q+=C*Xe,ee+=C*Oe,C=w[4],I+=C*je,b+=C*ye,T+=C*me,M+=C*le,D+=C*pe,B+=C*Ne,j+=C*_e,H+=C*ue,U+=C*se,$+=C*oe,z+=C*ge,Z+=C*De,K+=C*Fe,Q+=C*Se,ee+=C*Xe,X+=C*Oe,C=w[5],b+=C*je,T+=C*ye,M+=C*me,D+=C*le,B+=C*pe,j+=C*Ne,H+=C*_e,U+=C*ue,$+=C*se,z+=C*oe,Z+=C*ge,K+=C*De,Q+=C*Fe,ee+=C*Se,X+=C*Xe,te+=C*Oe,C=w[6],T+=C*je,M+=C*ye,D+=C*me,B+=C*le,j+=C*pe,H+=C*Ne,U+=C*_e,$+=C*ue,z+=C*se,Z+=C*oe,K+=C*ge,Q+=C*De,ee+=C*Fe,X+=C*Se,te+=C*Xe,J+=C*Oe,C=w[7],M+=C*je,D+=C*ye,B+=C*me,j+=C*le,H+=C*pe,U+=C*Ne,$+=C*_e,z+=C*ue,Z+=C*se,K+=C*oe,Q+=C*ge,ee+=C*De,X+=C*Fe,te+=C*Se,J+=C*Xe,ne+=C*Oe,C=w[8],D+=C*je,B+=C*ye,j+=C*me,H+=C*le,U+=C*pe,$+=C*Ne,z+=C*_e,Z+=C*ue,K+=C*se,Q+=C*oe,ee+=C*ge,X+=C*De,te+=C*Fe,J+=C*Se,ne+=C*Xe,ie+=C*Oe,C=w[9],B+=C*je,j+=C*ye,H+=C*me,U+=C*le,$+=C*pe,z+=C*Ne,Z+=C*_e,K+=C*ue,Q+=C*se,ee+=C*oe,X+=C*ge,te+=C*De,J+=C*Fe,ne+=C*Se,ie+=C*Xe,he+=C*Oe,C=w[10],j+=C*je,H+=C*ye,U+=C*me,$+=C*le,z+=C*pe,Z+=C*Ne,K+=C*_e,Q+=C*ue,ee+=C*se,X+=C*oe,te+=C*ge,J+=C*De,ne+=C*Fe,ie+=C*Se,he+=C*Xe,de+=C*Oe,C=w[11],H+=C*je,U+=C*ye,$+=C*me,z+=C*le,Z+=C*pe,K+=C*Ne,Q+=C*_e,ee+=C*ue,X+=C*se,te+=C*oe,J+=C*ge,ne+=C*De,ie+=C*Fe,he+=C*Se,de+=C*Xe,ce+=C*Oe,C=w[12],U+=C*je,$+=C*ye,z+=C*me,Z+=C*le,K+=C*pe,Q+=C*Ne,ee+=C*_e,X+=C*ue,te+=C*se,J+=C*oe,ne+=C*ge,ie+=C*De,he+=C*Fe,de+=C*Se,ce+=C*Xe,Ee+=C*Oe,C=w[13],$+=C*je,z+=C*ye,Z+=C*me,K+=C*le,Q+=C*pe,ee+=C*Ne,X+=C*_e,te+=C*ue,J+=C*se,ne+=C*oe,ie+=C*ge,he+=C*De,de+=C*Fe,ce+=C*Se,Ee+=C*Xe,Me+=C*Oe,C=w[14],z+=C*je,Z+=C*ye,K+=C*me,Q+=C*le,ee+=C*pe,X+=C*Ne,te+=C*_e,J+=C*ue,ne+=C*se,ie+=C*oe,he+=C*ge,de+=C*De,ce+=C*Fe,Ee+=C*Se,Me+=C*Xe,Be+=C*Oe,C=w[15],Z+=C*je,K+=C*ye,Q+=C*me,ee+=C*le,X+=C*pe,te+=C*Ne,J+=C*_e,ne+=C*ue,ie+=C*se,he+=C*oe,de+=C*ge,ce+=C*De,Ee+=C*Fe,Me+=C*Se,Be+=C*Xe,ze+=C*Oe,k+=38*K,P+=38*Q,N+=38*ee,L+=38*X,I+=38*te,b+=38*J,T+=38*ne,M+=38*ie,D+=38*he,B+=38*de,j+=38*ce,H+=38*Ee,U+=38*Me,$+=38*Be,z+=38*ze,R=1,C=k+R+65535,R=Math.floor(C/65536),k=C-R*65536,C=P+R+65535,R=Math.floor(C/65536),P=C-R*65536,C=N+R+65535,R=Math.floor(C/65536),N=C-R*65536,C=L+R+65535,R=Math.floor(C/65536),L=C-R*65536,C=I+R+65535,R=Math.floor(C/65536),I=C-R*65536,C=b+R+65535,R=Math.floor(C/65536),b=C-R*65536,C=T+R+65535,R=Math.floor(C/65536),T=C-R*65536,C=M+R+65535,R=Math.floor(C/65536),M=C-R*65536,C=D+R+65535,R=Math.floor(C/65536),D=C-R*65536,C=B+R+65535,R=Math.floor(C/65536),B=C-R*65536,C=j+R+65535,R=Math.floor(C/65536),j=C-R*65536,C=H+R+65535,R=Math.floor(C/65536),H=C-R*65536,C=U+R+65535,R=Math.floor(C/65536),U=C-R*65536,C=$+R+65535,R=Math.floor(C/65536),$=C-R*65536,C=z+R+65535,R=Math.floor(C/65536),z=C-R*65536,C=Z+R+65535,R=Math.floor(C/65536),Z=C-R*65536,k+=R-1+37*(R-1),R=1,C=k+R+65535,R=Math.floor(C/65536),k=C-R*65536,C=P+R+65535,R=Math.floor(C/65536),P=C-R*65536,C=N+R+65535,R=Math.floor(C/65536),N=C-R*65536,C=L+R+65535,R=Math.floor(C/65536),L=C-R*65536,C=I+R+65535,R=Math.floor(C/65536),I=C-R*65536,C=b+R+65535,R=Math.floor(C/65536),b=C-R*65536,C=T+R+65535,R=Math.floor(C/65536),T=C-R*65536,C=M+R+65535,R=Math.floor(C/65536),M=C-R*65536,C=D+R+65535,R=Math.floor(C/65536),D=C-R*65536,C=B+R+65535,R=Math.floor(C/65536),B=C-R*65536,C=j+R+65535,R=Math.floor(C/65536),j=C-R*65536,C=H+R+65535,R=Math.floor(C/65536),H=C-R*65536,C=U+R+65535,R=Math.floor(C/65536),U=C-R*65536,C=$+R+65535,R=Math.floor(C/65536),$=C-R*65536,C=z+R+65535,R=Math.floor(C/65536),z=C-R*65536,C=Z+R+65535,R=Math.floor(C/65536),Z=C-R*65536,k+=R-1+37*(R-1),x[0]=k,x[1]=P,x[2]=N,x[3]=L,x[4]=I,x[5]=b,x[6]=T,x[7]=M,x[8]=D,x[9]=B,x[10]=j,x[11]=H,x[12]=U,x[13]=$,x[14]=z,x[15]=Z}function p(x,w){f(x,w,w)}function m(x,w){const _=r();for(let C=0;C<16;C++)_[C]=w[C];for(let C=253;C>=0;C--)p(_,_),C!==2&&C!==4&&f(_,_,w);for(let C=0;C<16;C++)x[C]=_[C]}function g(x,w){const _=new Uint8Array(32),C=new Float64Array(80),R=r(),k=r(),P=r(),N=r(),L=r(),I=r();for(let D=0;D<31;D++)_[D]=x[D];_[31]=x[31]&127|64,_[0]&=248,u(C,w);for(let D=0;D<16;D++)k[D]=C[D];R[0]=N[0]=1;for(let D=254;D>=0;--D){const B=_[D>>>3]>>>(D&7)&1;l(R,k,B),l(P,N,B),d(L,R,P),h(R,R,P),d(P,k,N),h(k,k,N),p(N,L),p(I,R),f(R,P,R),f(P,k,L),d(L,R,P),h(R,R,P),p(k,R),h(P,N,I),f(R,P,o),d(R,R,N),f(P,P,R),f(R,N,I),f(N,k,C),p(k,L),l(R,k,B),l(P,N,B)}for(let D=0;D<16;D++)C[D+16]=R[D],C[D+32]=P[D],C[D+48]=k[D],C[D+64]=N[D];const b=C.subarray(32),T=C.subarray(16);m(b,b),f(T,T,b);const M=new Uint8Array(32);return c(M,T),M}t.scalarMult=g;function v(x){return g(x,a)}t.scalarMultBase=v;function A(x){if(x.length!==t.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${t.SECRET_KEY_LENGTH} bytes`);const w=new Uint8Array(x);return{publicKey:v(w),secretKey:w}}t.generateKeyPairFromSeed=A;function y(x){const w=(0,e.randomBytes)(32,x),_=A(w);return(0,n.wipe)(w),_}t.generateKeyPair=y;function S(x,w,_=!1){if(x.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(w.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const C=g(x,w);if(_){let R=0;for(let k=0;k<C.length;k++)R|=C[k];if(R===0)throw new Error("X25519: invalid shared key")}return C}t.sharedKey=S})(cet);function uet(t){return globalThis.Buffer!=null?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function VZt(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?uet(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}function FHe(t,e){e||(e=t.reduce((a,o)=>a+o.length,0));const n=VZt(e);let r=0;for(const a of t)n.set(a,r),r+=a.length;return uet(n)}function K6r(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var a=0;a<t.length;a++){var o=t.charAt(a),s=o.charCodeAt(0);if(n[s]!==255)throw new TypeError(o+" is ambiguous");n[s]=a}var l=t.length,c=t.charAt(0),u=Math.log(l)/Math.log(256),d=Math.log(256)/Math.log(l);function h(m){if(m instanceof Uint8Array||(ArrayBuffer.isView(m)?m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength):Array.isArray(m)&&(m=Uint8Array.from(m))),!(m instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(m.length===0)return"";for(var g=0,v=0,A=0,y=m.length;A!==y&&m[A]===0;)A++,g++;for(var S=(y-A)*d+1>>>0,x=new Uint8Array(S);A!==y;){for(var w=m[A],_=0,C=S-1;(w!==0||_<v)&&C!==-1;C--,_++)w+=256*x[C]>>>0,x[C]=w%l>>>0,w=w/l>>>0;if(w!==0)throw new Error("Non-zero carry");v=_,A++}for(var R=S-v;R!==S&&x[R]===0;)R++;for(var k=c.repeat(g);R<S;++R)k+=t.charAt(x[R]);return k}function f(m){if(typeof m!="string")throw new TypeError("Expected String");if(m.length===0)return new Uint8Array;var g=0;if(m[g]!==" "){for(var v=0,A=0;m[g]===c;)v++,g++;for(var y=(m.length-g)*u+1>>>0,S=new Uint8Array(y);m[g];){var x=n[m.charCodeAt(g)];if(x===255)return;for(var w=0,_=y-1;(x!==0||w<A)&&_!==-1;_--,w++)x+=l*S[_]>>>0,S[_]=x%256>>>0,x=x/256>>>0;if(x!==0)throw new Error("Non-zero carry");A=w,g++}if(m[g]!==" "){for(var C=y-A;C!==y&&S[C]===0;)C++;for(var R=new Uint8Array(v+(y-C)),k=v;C!==y;)R[k++]=S[C++];return R}}}function p(m){var g=f(m);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:p}}var W6r=K6r,Q6r=W6r;const q6r=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},Y6r=t=>new TextEncoder().encode(t),J6r=t=>new TextDecoder().decode(t);class Z6r{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class X6r{constructor(e,n,r){if(this.name=e,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return KZt(this,e)}}class e8r{constructor(e){this.decoders=e}or(e){return KZt(this,e)}decode(e){const n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const KZt=(t,e)=>new e8r({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class t8r{constructor(e,n,r,a){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=a,this.encoder=new Z6r(e,n,r),this.decoder=new X6r(e,n,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const UEe=({name:t,prefix:e,encode:n,decode:r})=>new t8r(t,e,n,r),vae=({prefix:t,name:e,alphabet:n})=>{const{encode:r,decode:a}=Q6r(n,e);return UEe({prefix:t,name:e,encode:r,decode:o=>q6r(a(o))})},n8r=(t,e,n,r)=>{const a={};for(let d=0;d<e.length;++d)a[e[d]]=d;let o=t.length;for(;t[o-1]==="=";)--o;const s=new Uint8Array(o*n/8|0);let l=0,c=0,u=0;for(let d=0;d<o;++d){const h=a[t[d]];if(h===void 0)throw new SyntaxError(`Non-${r} character`);c=c<<n|h,l+=n,l>=8&&(l-=8,s[u++]=255&c>>l)}if(l>=n||255&c<<8-l)throw new SyntaxError("Unexpected end of data");return s},r8r=(t,e,n)=>{const r=e[e.length-1]==="=",a=(1<<n)-1;let o="",s=0,l=0;for(let c=0;c<t.length;++c)for(l=l<<8|t[c],s+=8;s>n;)s-=n,o+=e[a&l>>s];if(s&&(o+=e[a&l<<n-s]),r)for(;o.length*n&7;)o+="=";return o},gg=({name:t,prefix:e,bitsPerChar:n,alphabet:r})=>UEe({prefix:e,name:t,encode(a){return r8r(a,r,n)},decode(a){return n8r(a,r,n,t)}}),i8r=UEe({prefix:"\0",name:"identity",encode:t=>J6r(t),decode:t=>Y6r(t)}),a8r=Object.freeze(Object.defineProperty({__proto__:null,identity:i8r},Symbol.toStringTag,{value:"Module"})),o8r=gg({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),s8r=Object.freeze(Object.defineProperty({__proto__:null,base2:o8r},Symbol.toStringTag,{value:"Module"})),l8r=gg({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),c8r=Object.freeze(Object.defineProperty({__proto__:null,base8:l8r},Symbol.toStringTag,{value:"Module"})),u8r=vae({prefix:"9",name:"base10",alphabet:"0123456789"}),d8r=Object.freeze(Object.defineProperty({__proto__:null,base10:u8r},Symbol.toStringTag,{value:"Module"})),h8r=gg({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),f8r=gg({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),p8r=Object.freeze(Object.defineProperty({__proto__:null,base16:h8r,base16upper:f8r},Symbol.toStringTag,{value:"Module"})),m8r=gg({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),g8r=gg({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),v8r=gg({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),A8r=gg({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),y8r=gg({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),b8r=gg({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),x8r=gg({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),E8r=gg({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),S8r=gg({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),w8r=Object.freeze(Object.defineProperty({__proto__:null,base32:m8r,base32hex:y8r,base32hexpad:x8r,base32hexpadupper:E8r,base32hexupper:b8r,base32pad:v8r,base32padupper:A8r,base32upper:g8r,base32z:S8r},Symbol.toStringTag,{value:"Module"})),_8r=vae({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),T8r=vae({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),C8r=Object.freeze(Object.defineProperty({__proto__:null,base36:_8r,base36upper:T8r},Symbol.toStringTag,{value:"Module"})),k8r=vae({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),R8r=vae({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),M8r=Object.freeze(Object.defineProperty({__proto__:null,base58btc:k8r,base58flickr:R8r},Symbol.toStringTag,{value:"Module"})),N8r=gg({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),I8r=gg({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),P8r=gg({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),O8r=gg({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),L8r=Object.freeze(Object.defineProperty({__proto__:null,base64:N8r,base64pad:I8r,base64url:P8r,base64urlpad:O8r},Symbol.toStringTag,{value:"Module"})),WZt=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),B8r=WZt.reduce((t,e,n)=>(t[n]=e,t),[]),D8r=WZt.reduce((t,e,n)=>(t[e.codePointAt(0)]=n,t),[]);function $8r(t){return t.reduce((e,n)=>(e+=B8r[n],e),"")}function F8r(t){const e=[];for(const n of t){const r=D8r[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);e.push(r)}return new Uint8Array(e)}const j8r=UEe({prefix:"🚀",name:"base256emoji",encode:$8r,decode:F8r}),H8r=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:j8r},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const gAt={...a8r,...s8r,...c8r,...d8r,...p8r,...w8r,...C8r,...M8r,...L8r,...H8r};function QZt(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}const vAt=QZt("utf8","u",t=>"u"+new TextDecoder("utf8").decode(t),t=>new TextEncoder().encode(t.substring(1))),D5e=QZt("ascii","a",t=>{let e="a";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},t=>{t=t.substring(1);const e=VZt(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}),qZt={utf8:vAt,"utf-8":vAt,hex:gAt.base16,latin1:D5e,ascii:D5e,binary:D5e,...gAt};function YA(t,e="utf8"){const n=qZt[e];if(!n)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?uet(globalThis.Buffer.from(t,"utf-8")):n.decoder.decode(`${n.prefix}${t}`)}function G0(t,e="utf8"){const n=qZt[e];if(!n)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString("utf8"):n.encoder.encode(t).substring(1)}var AAt=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,o;r<a;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},U8r=function(){function t(e,n,r){this.name=e,this.version=n,this.os=r,this.type="browser"}return t}(),z8r=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=wa.platform}return t}(),G8r=function(){function t(e,n,r,a){this.name=e,this.version=n,this.os=r,this.bot=a,this.type="bot-device"}return t}(),V8r=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),K8r=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),W8r=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Q8r=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,yAt=3,q8r=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",W8r]],bAt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Y8r(t){return t?xAt(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new K8r:typeof navigator<"u"?xAt(navigator.userAgent):X8r()}function J8r(t){return t!==""&&q8r.reduce(function(e,n){var r=n[0],a=n[1];if(e)return e;var o=a.exec(t);return!!o&&[r,o]},!1)}function xAt(t){var e=J8r(t);if(!e)return null;var n=e[0],r=e[1];if(n==="searchbot")return new V8r;var a=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);a?a.length<yAt&&(a=AAt(AAt([],a,!0),e9r(yAt-a.length),!0)):a=[];var o=a.join("."),s=Z8r(t),l=Q8r.exec(t);return l&&l[1]?new G8r(n,o,s,l[1]):new U8r(n,o,s)}function Z8r(t){for(var e=0,n=bAt.length;e<n;e++){var r=bAt[e],a=r[0],o=r[1],s=o.exec(t);if(s)return a}return null}function X8r(){var t=typeof wa<"u"&&wa.version;return t?new z8r(wa.version.slice(1)):null}function e9r(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}var ha={};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var jHe=function(t,e){return jHe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},jHe(t,e)};function t9r(t,e){jHe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var HHe=function(){return HHe=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},HHe.apply(this,arguments)};function n9r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function r9r(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function i9r(t,e){return function(n,r){e(n,r,t)}}function a9r(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function o9r(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function s9r(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function l9r(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}function c9r(t,e){for(var n in t)n!=="default"&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function UHe(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function YZt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function u9r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(YZt(arguments[e]));return t}function d9r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,a++)r[a]=o[s];return r}function sne(t){return this instanceof sne?(this.v=t,this):new sne(t)}function h9r(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,o=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(f){r[f]&&(a[f]=function(p){return new Promise(function(m,g){o.push([f,p,m,g])>1||l(f,p)})})}function l(f,p){try{c(r[f](p))}catch(m){h(o[0][3],m)}}function c(f){f.value instanceof sne?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function f9r(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,o){e[a]=t[a]?function(s){return(n=!n)?{value:sne(t[a](s)),done:a==="return"}:o?o(s):s}:o}}function p9r(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof UHe=="function"?UHe(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(l,c){s=t[o](s),a(l,c,s.done,s.value)})}}function a(o,s,l,c){Promise.resolve(c).then(function(u){o({value:u,done:l})},s)}}function m9r(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function g9r(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function v9r(t){return t&&t.__esModule?t:{default:t}}function A9r(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function y9r(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}const b9r=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return HHe},__asyncDelegator:f9r,__asyncGenerator:h9r,__asyncValues:p9r,__await:sne,__awaiter:o9r,__classPrivateFieldGet:A9r,__classPrivateFieldSet:y9r,__createBinding:l9r,__decorate:r9r,__exportStar:c9r,__extends:t9r,__generator:s9r,__importDefault:v9r,__importStar:g9r,__makeTemplateObject:m9r,__metadata:a9r,__param:i9r,__read:YZt,__rest:n9r,__spread:u9r,__spreadArrays:d9r,__values:UHe},Symbol.toStringTag,{value:"Module"})),zEe=Uu(b9r);var $5e={},TQ={},EAt;function x9r(){if(EAt)return TQ;EAt=1,Object.defineProperty(TQ,"__esModule",{value:!0}),TQ.delay=void 0;function t(e){return new Promise(n=>{setTimeout(()=>{n(!0)},e)})}return TQ.delay=t,TQ}var A4={},F5e={},y4={},SAt;function E9r(){return SAt||(SAt=1,Object.defineProperty(y4,"__esModule",{value:!0}),y4.ONE_THOUSAND=y4.ONE_HUNDRED=void 0,y4.ONE_HUNDRED=100,y4.ONE_THOUSAND=1e3),y4}var j5e={},wAt;function S9r(){return wAt||(wAt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=t.ONE_MINUTE*5,t.TEN_MINUTES=t.ONE_MINUTE*10,t.THIRTY_MINUTES=t.ONE_MINUTE*30,t.SIXTY_MINUTES=t.ONE_MINUTE*60,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=t.ONE_HOUR*3,t.SIX_HOURS=t.ONE_HOUR*6,t.TWELVE_HOURS=t.ONE_HOUR*12,t.TWENTY_FOUR_HOURS=t.ONE_HOUR*24,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=t.ONE_DAY*3,t.FIVE_DAYS=t.ONE_DAY*5,t.SEVEN_DAYS=t.ONE_DAY*7,t.THIRTY_DAYS=t.ONE_DAY*30,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=t.ONE_WEEK*2,t.THREE_WEEKS=t.ONE_WEEK*3,t.FOUR_WEEKS=t.ONE_WEEK*4,t.ONE_YEAR=t.ONE_DAY*365}(j5e)),j5e}var _At;function JZt(){return _At||(_At=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=zEe;e.__exportStar(E9r(),t),e.__exportStar(S9r(),t)}(F5e)),F5e}var TAt;function w9r(){if(TAt)return A4;TAt=1,Object.defineProperty(A4,"__esModule",{value:!0}),A4.fromMiliseconds=A4.toMiliseconds=void 0;const t=JZt();function e(r){return r*t.ONE_THOUSAND}A4.toMiliseconds=e;function n(r){return Math.floor(r/t.ONE_THOUSAND)}return A4.fromMiliseconds=n,A4}var CAt;function _9r(){return CAt||(CAt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=zEe;e.__exportStar(x9r(),t),e.__exportStar(w9r(),t)}($5e)),$5e}var c$={},kAt;function T9r(){if(kAt)return c$;kAt=1,Object.defineProperty(c$,"__esModule",{value:!0}),c$.Watch=void 0;class t{constructor(){this.timestamps=new Map}start(n){if(this.timestamps.has(n))throw new Error(`Watch already started for label: ${n}`);this.timestamps.set(n,{started:Date.now()})}stop(n){const r=this.get(n);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${n}`);const a=Date.now()-r.started;this.timestamps.set(n,{started:r.started,elapsed:a})}get(n){const r=this.timestamps.get(n);if(typeof r>"u")throw new Error(`No timestamp found for label: ${n}`);return r}elapsed(n){const r=this.get(n);return r.elapsed||Date.now()-r.started}}return c$.Watch=t,c$.default=t,c$}var H5e={},CQ={},RAt;function C9r(){if(RAt)return CQ;RAt=1,Object.defineProperty(CQ,"__esModule",{value:!0}),CQ.IWatch=void 0;class t{}return CQ.IWatch=t,CQ}var MAt;function k9r(){return MAt||(MAt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),zEe.__exportStar(C9r(),t)}(H5e)),H5e}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=zEe;e.__exportStar(_9r(),t),e.__exportStar(T9r(),t),e.__exportStar(k9r(),t),e.__exportStar(JZt(),t)})(ha);var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.getLocalStorage=Iu.getLocalStorageOrThrow=Iu.getCrypto=Iu.getCryptoOrThrow=ZZt=Iu.getLocation=Iu.getLocationOrThrow=het=Iu.getNavigator=Iu.getNavigatorOrThrow=det=Iu.getDocument=Iu.getDocumentOrThrow=Iu.getFromWindowOrThrow=Iu.getFromWindow=void 0;function U8(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}Iu.getFromWindow=U8;function AG(t){const e=U8(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}Iu.getFromWindowOrThrow=AG;function R9r(){return AG("document")}Iu.getDocumentOrThrow=R9r;function M9r(){return U8("document")}var det=Iu.getDocument=M9r;function N9r(){return AG("navigator")}Iu.getNavigatorOrThrow=N9r;function I9r(){return U8("navigator")}var het=Iu.getNavigator=I9r;function P9r(){return AG("location")}Iu.getLocationOrThrow=P9r;function O9r(){return U8("location")}var ZZt=Iu.getLocation=O9r;function L9r(){return AG("crypto")}Iu.getCryptoOrThrow=L9r;function B9r(){return U8("crypto")}Iu.getCrypto=B9r;function D9r(){return AG("localStorage")}Iu.getLocalStorageOrThrow=D9r;function $9r(){return U8("localStorage")}Iu.getLocalStorage=$9r;var fet={};Object.defineProperty(fet,"__esModule",{value:!0});var XZt=fet.getWindowMetadata=void 0;const NAt=Iu;function F9r(){let t,e;try{t=NAt.getDocumentOrThrow(),e=NAt.getLocationOrThrow()}catch{return null}function n(){const h=t.getElementsByTagName("link"),f=[];for(let p=0;p<h.length;p++){const m=h[p],g=m.getAttribute("rel");if(g&&g.toLowerCase().indexOf("icon")>-1){const v=m.getAttribute("href");if(v)if(v.toLowerCase().indexOf("https:")===-1&&v.toLowerCase().indexOf("http:")===-1&&v.indexOf("//")!==0){let A=e.protocol+"//"+e.host;if(v.indexOf("/")===0)A+=v;else{const y=e.pathname.split("/");y.pop();const S=y.join("/");A+=S+"/"+v}f.push(A)}else if(v.indexOf("//")===0){const A=e.protocol+v;f.push(A)}else f.push(v)}}return f}function r(...h){const f=t.getElementsByTagName("meta");for(let p=0;p<f.length;p++){const m=f[p],g=["itemprop","property","name"].map(v=>m.getAttribute(v)).filter(v=>v?h.includes(v):!1);if(g.length&&g){const v=m.getAttribute("content");if(v)return v}}return""}function a(){let h=r("name","og:site_name","og:title","twitter:title");return h||(h=t.title),h}function o(){return r("description","og:description","twitter:description","keywords")}const s=a(),l=o(),c=e.origin,u=n();return{description:l,url:c,icons:u,name:s}}XZt=fet.getWindowMetadata=F9r;const j9r={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},H9r=":";function U9r(t){const[e,n]=t.split(H9r);return{namespace:e,reference:n}}function z9r(t,e=[]){const n=[];return Object.keys(t).forEach(r=>{if(e.length&&!e.includes(r))return;const a=t[r];n.push(...a.accounts)}),n}function eXt(t,e){return t.includes(":")?[t]:e.chains||[]}const tXt="base10",$0="base16",zHe="base64pad",pet="utf8",nXt=0,z8=1,G9r=0,IAt=1,GHe=12,met=32;function V9r(){const t=cet.generateKeyPair();return{privateKey:G0(t.secretKey,$0),publicKey:G0(t.publicKey,$0)}}function VHe(){const t=vG.randomBytes(met);return G0(t,$0)}function K9r(t,e){const n=cet.sharedKey(YA(t,$0),YA(e,$0),!0),r=new D6r(HEe.SHA256,n).expand(met);return G0(r,$0)}function W9r(t){const e=HEe.hash(YA(t,$0));return G0(e,$0)}function Hj(t){const e=HEe.hash(YA(t,pet));return G0(e,$0)}function Q9r(t){return YA(`${t}`,tXt)}function Aae(t){return Number(G0(t,tXt))}function q9r(t){const e=Q9r(typeof t.type<"u"?t.type:nXt);if(Aae(e)===z8&&typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof t.senderPublicKey<"u"?YA(t.senderPublicKey,$0):void 0,r=typeof t.iv<"u"?YA(t.iv,$0):vG.randomBytes(GHe),a=new oet.ChaCha20Poly1305(YA(t.symKey,$0)).seal(r,YA(t.message,pet));return J9r({type:e,sealed:a,iv:r,senderPublicKey:n})}function Y9r(t){const e=new oet.ChaCha20Poly1305(YA(t.symKey,$0)),{sealed:n,iv:r}=j0e(t.encoded),a=e.open(r,n);if(a===null)throw new Error("Failed to decrypt");return G0(a,pet)}function J9r(t){if(Aae(t.type)===z8){if(typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return G0(FHe([t.type,t.senderPublicKey,t.iv,t.sealed]),zHe)}return G0(FHe([t.type,t.iv,t.sealed]),zHe)}function j0e(t){const e=YA(t,zHe),n=e.slice(G9r,IAt),r=IAt;if(Aae(n)===z8){const l=r+met,c=l+GHe,u=e.slice(r,l),d=e.slice(l,c),h=e.slice(c);return{type:n,sealed:h,iv:d,senderPublicKey:u}}const a=r+GHe,o=e.slice(r,a),s=e.slice(a);return{type:n,sealed:s,iv:o}}function Z9r(t,e){const n=j0e(t);return rXt({type:Aae(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?G0(n.senderPublicKey,$0):void 0,receiverPublicKey:e==null?void 0:e.receiverPublicKey})}function rXt(t){const e=(t==null?void 0:t.type)||nXt;if(e===z8){if(typeof(t==null?void 0:t.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(t==null?void 0:t.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:t==null?void 0:t.senderPublicKey,receiverPublicKey:t==null?void 0:t.receiverPublicKey}}function PAt(t){return t.type===z8&&typeof t.senderPublicKey=="string"&&typeof t.receiverPublicKey=="string"}var X9r=Object.defineProperty,OAt=Object.getOwnPropertySymbols,e$r=Object.prototype.hasOwnProperty,t$r=Object.prototype.propertyIsEnumerable,LAt=(t,e,n)=>e in t?X9r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,BAt=(t,e)=>{for(var n in e||(e={}))e$r.call(e,n)&&LAt(t,n,e[n]);if(OAt)for(var n of OAt(e))t$r.call(e,n)&&LAt(t,n,e[n]);return t};const n$r="ReactNative",Cy={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},r$r="js";function get(){return typeof wa<"u"&&typeof wa.versions<"u"&&typeof wa.versions.node<"u"}function yG(){return!det()&&!!het()&&navigator.product===n$r}function bG(){return!get()&&!!het()&&!!det()}function yae(){return yG()?Cy.reactNative:get()?Cy.node:bG()?Cy.browser:Cy.unknown}function i$r(){var t;try{return yG()&&typeof Wa<"u"&&typeof(Wa==null?void 0:Wa.Application)<"u"?(t=Wa.Application)==null?void 0:t.applicationId:void 0}catch{return}}function a$r(t,e){let n=Co.parse(t);return n=BAt(BAt({},n),e),t=Co.stringify(n),t}function o$r(){return XZt()||{name:"",description:"",url:"",icons:[""]}}function s$r(){if(yae()===Cy.reactNative&&typeof Wa<"u"&&typeof(Wa==null?void 0:Wa.Platform)<"u"){const{OS:n,Version:r}=Wa.Platform;return[n,r].join("-")}const t=Y8r();if(t===null)return"unknown";const e=t.os?t.os.replace(" ","").toLowerCase():"unknown";return t.type==="browser"?[e,t.name,t.version].join("-"):[e,t.version].join("-")}function l$r(){var t;const e=yae();return e===Cy.browser?[e,((t=ZZt())==null?void 0:t.host)||"unknown"].join(":"):e}function c$r(t,e,n){const r=s$r(),a=l$r();return[[t,e].join("-"),[r$r,n].join("-"),r,a].join("/")}function u$r({protocol:t,version:e,relayUrl:n,sdkVersion:r,auth:a,projectId:o,useOnCloseEvent:s,bundleId:l}){const c=n.split("?"),u=c$r(t,e,r),d={auth:a,ua:u,projectId:o,useOnCloseEvent:s||void 0,origin:l||void 0},h=a$r(c[1]||"",d);return c[0]+"?"+h}function UB(t,e){return t.filter(n=>e.includes(n)).length===t.length}function iXt(t){return Object.fromEntries(t.entries())}function aXt(t){return new Map(Object.entries(t))}function rF(t=ha.FIVE_MINUTES,e){const n=ha.toMiliseconds(t||ha.FIVE_MINUTES);let r,a,o;return{resolve:s=>{o&&r&&(clearTimeout(o),r(s))},reject:s=>{o&&a&&(clearTimeout(o),a(s))},done:()=>new Promise((s,l)=>{o=setTimeout(()=>{l(new Error(e))},n),r=s,a=l})}}function lne(t,e,n){return new Promise(async(r,a)=>{const o=setTimeout(()=>a(new Error(n)),e);try{const s=await t;r(s)}catch(s){a(s)}clearTimeout(o)})}function oXt(t,e){if(typeof e=="string"&&e.startsWith(`${t}:`))return e;if(t.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(t.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function d$r(t){return oXt("topic",t)}function h$r(t){return oXt("id",t)}function sXt(t){const[e,n]=t.split(":"),r={id:void 0,topic:void 0};if(e==="topic"&&typeof n=="string")r.topic=n;else if(e==="id"&&Number.isInteger(Number(n)))r.id=Number(n);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${n}`);return r}function jS(t,e){return ha.fromMiliseconds((e||Date.now())+ha.toMiliseconds(t))}function o3(t){return Date.now()>=ha.toMiliseconds(t)}function Ef(t,e){return`${t}${e?`:${e}`:""}`}function U5e(t=[],e=[]){return[...new Set([...t,...e])]}async function f$r({id:t,topic:e,wcDeepLink:n}){try{if(!n)return;const r=typeof n=="string"?JSON.parse(n):n;let a=r==null?void 0:r.href;if(typeof a!="string")return;a.endsWith("/")&&(a=a.slice(0,-1));const o=`${a}/wc?requestId=${t}&sessionTopic=${e}`,s=yae();s===Cy.browser?o.startsWith("https://")?window.open(o,"_blank","noreferrer noopener"):window.open(o,"_self","noreferrer noopener"):s===Cy.reactNative&&typeof(Wa==null?void 0:Wa.Linking)<"u"&&await Wa.Linking.openURL(o)}catch(r){console.error(r)}}async function p$r(t,e){try{return await t.getItem(e)||(bG()?localStorage.getItem(e):void 0)}catch(n){console.error(n)}}const m$r="irn";function KHe(t){return(t==null?void 0:t.relay)||{protocol:m$r}}function cme(t){const e=j9r[t];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${t}`);return e}var g$r=Object.defineProperty,DAt=Object.getOwnPropertySymbols,v$r=Object.prototype.hasOwnProperty,A$r=Object.prototype.propertyIsEnumerable,$At=(t,e,n)=>e in t?g$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y$r=(t,e)=>{for(var n in e||(e={}))v$r.call(e,n)&&$At(t,n,e[n]);if(DAt)for(var n of DAt(e))A$r.call(e,n)&&$At(t,n,e[n]);return t};function b$r(t,e="-"){const n={},r="relay"+e;return Object.keys(t).forEach(a=>{if(a.startsWith(r)){const o=a.replace(r,""),s=t[a];n[o]=s}}),n}function FAt(t){t=t.includes("wc://")?t.replace("wc://",""):t,t=t.includes("wc:")?t.replace("wc:",""):t;const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),a=t.substring(e+1,n).split("@"),o=typeof n<"u"?t.substring(n):"",s=Co.parse(o);return{protocol:r,topic:x$r(a[0]),version:parseInt(a[1],10),symKey:s.symKey,relay:b$r(s)}}function x$r(t){return t.startsWith("//")?t.substring(2):t}function E$r(t,e="-"){const n="relay",r={};return Object.keys(t).forEach(a=>{const o=n+e+a;t[a]&&(r[o]=t[a])}),r}function S$r(t){return`${t.protocol}:${t.topic}@${t.version}?`+Co.stringify(y$r({symKey:t.symKey},E$r(t.relay)))}function xG(t){const e=[];return t.forEach(n=>{const[r,a]=n.split(":");e.push(`${r}:${a}`)}),e}function w$r(t){const e=[];return Object.values(t).forEach(n=>{e.push(...xG(n.accounts))}),e}function _$r(t,e){const n=[];return Object.values(t).forEach(r=>{xG(r.accounts).includes(e)&&n.push(...r.methods)}),n}function T$r(t,e){const n=[];return Object.values(t).forEach(r=>{xG(r.accounts).includes(e)&&n.push(...r.events)}),n}function C$r(t,e){const n=ume(t,e);if(n)throw new Error(n.message);const r={};for(const[a,o]of Object.entries(t))r[a]={methods:o.methods,events:o.events,chains:o.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return r}function vet(t){return t.includes(":")}function sZ(t){return vet(t)?t.split(":")[0]:t}const k$r={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},R$r={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Yr(t,e){const{message:n,code:r}=R$r[t];return{message:e?`${n} ${e}`:n,code:r}}function ch(t,e){const{message:n,code:r}=k$r[t];return{message:e?`${n} ${e}`:n,code:r}}function W2(t,e){return Array.isArray(t)?typeof e<"u"&&t.length?t.every(e):!0:!1}function Uj(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function C0(t){return typeof t>"u"}function nm(t,e){return e&&C0(t)?!0:typeof t=="string"&&!!t.trim().length}function Aet(t,e){return e&&C0(t)?!0:typeof t=="number"&&!isNaN(t)}function M$r(t,e){const{requiredNamespaces:n}=e,r=Object.keys(t.namespaces),a=Object.keys(n);let o=!0;return UB(a,r)?(r.forEach(s=>{const{accounts:l,methods:c,events:u}=t.namespaces[s],d=xG(l),h=n[s];(!UB(eXt(s,h),d)||!UB(h.methods,c)||!UB(h.events,u))&&(o=!1)}),o):!1}function H0e(t){return nm(t,!1)&&t.includes(":")?t.split(":").length===2:!1}function N$r(t){if(nm(t,!1)&&t.includes(":")){const e=t.split(":");if(e.length===3){const n=e[0]+":"+e[1];return!!e[2]&&H0e(n)}}return!1}function I$r(t){if(nm(t,!1))try{return typeof new URL(t)<"u"}catch{return!1}return!1}function P$r(t){var e;return(e=t==null?void 0:t.proposer)==null?void 0:e.publicKey}function O$r(t){return t==null?void 0:t.topic}function L$r(t,e){let n=null;return nm(t==null?void 0:t.publicKey,!1)||(n=Yr("MISSING_OR_INVALID",`${e} controller public key should be a string`)),n}function jAt(t){let e=!0;return W2(t)?t.length&&(e=t.every(n=>nm(n,!1))):e=!1,e}function B$r(t,e,n){let r=null;return W2(e)&&e.length?e.forEach(a=>{r||H0e(a)||(r=ch("UNSUPPORTED_CHAINS",`${n}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):H0e(t)||(r=ch("UNSUPPORTED_CHAINS",`${n}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}function D$r(t,e,n){let r=null;return Object.entries(t).forEach(([a,o])=>{if(r)return;const s=B$r(a,eXt(a,o),`${e} ${n}`);s&&(r=s)}),r}function $$r(t,e){let n=null;return W2(t)?t.forEach(r=>{n||N$r(r)||(n=ch("UNSUPPORTED_ACCOUNTS",`${e}, account ${r} should be a string and conform to "namespace:chainId:address" format`))}):n=ch("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}function F$r(t,e){let n=null;return Object.values(t).forEach(r=>{if(n)return;const a=$$r(r==null?void 0:r.accounts,`${e} namespace`);a&&(n=a)}),n}function j$r(t,e){let n=null;return jAt(t==null?void 0:t.methods)?jAt(t==null?void 0:t.events)||(n=ch("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):n=ch("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),n}function lXt(t,e){let n=null;return Object.values(t).forEach(r=>{if(n)return;const a=j$r(r,`${e}, namespace`);a&&(n=a)}),n}function H$r(t,e,n){let r=null;if(t&&Uj(t)){const a=lXt(t,e);a&&(r=a);const o=D$r(t,e,n);o&&(r=o)}else r=Yr("MISSING_OR_INVALID",`${e}, ${n} should be an object with data`);return r}function ume(t,e){let n=null;if(t&&Uj(t)){const r=lXt(t,e);r&&(n=r);const a=F$r(t,e);a&&(n=a)}else n=Yr("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return n}function cXt(t){return nm(t.protocol,!0)}function U$r(t,e){let n=!1;return e&&!t?n=!0:t&&W2(t)&&t.length&&t.forEach(r=>{n=cXt(r)}),n}function z$r(t){return typeof t=="number"}function $A(t){return typeof t<"u"&&typeof t!==null}function G$r(t){return!(!t||typeof t!="object"||!t.code||!Aet(t.code,!1)||!t.message||!nm(t.message,!1))}function V$r(t){return!(C0(t)||!nm(t.method,!1))}function K$r(t){return!(C0(t)||C0(t.result)&&C0(t.error)||!Aet(t.id,!1)||!nm(t.jsonrpc,!1))}function W$r(t){return!(C0(t)||!nm(t.name,!1))}function HAt(t,e){return!(!H0e(e)||!w$r(t).includes(e))}function Q$r(t,e,n){return nm(n,!1)?_$r(t,e).includes(n):!1}function q$r(t,e,n){return nm(n,!1)?T$r(t,e).includes(n):!1}function UAt(t,e,n){let r=null;const a=Y$r(t),o=J$r(e),s=Object.keys(a),l=Object.keys(o),c=zAt(Object.keys(t)),u=zAt(Object.keys(e)),d=c.filter(h=>!u.includes(h));return d.length&&(r=Yr("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.
      Required: ${d.toString()}
      Received: ${Object.keys(e).toString()}`)),UB(s,l)||(r=Yr("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces.
      Required: ${s.toString()}
      Approved: ${l.toString()}`)),Object.keys(e).forEach(h=>{if(!h.includes(":")||r)return;const f=xG(e[h].accounts);f.includes(h)||(r=Yr("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${h}
        Required: ${h}
        Approved: ${f.toString()}`))}),s.forEach(h=>{r||(UB(a[h].methods,o[h].methods)?UB(a[h].events,o[h].events)||(r=Yr("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${h}`)):r=Yr("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${h}`))}),r}function Y$r(t){const e={};return Object.keys(t).forEach(n=>{var r;n.includes(":")?e[n]=t[n]:(r=t[n].chains)==null||r.forEach(a=>{e[a]={methods:t[n].methods,events:t[n].events}})}),e}function zAt(t){return[...new Set(t.map(e=>e.includes(":")?e.split(":")[0]:e))]}function J$r(t){const e={};return Object.keys(t).forEach(n=>{if(n.includes(":"))e[n]=t[n];else{const r=xG(t[n].accounts);r==null||r.forEach(a=>{e[a]={accounts:t[n].accounts.filter(o=>o.includes(`${a}:`)),methods:t[n].methods,events:t[n].events}})}}),e}function Z$r(t,e){return Aet(t,!1)&&t<=e.max&&t>=e.min}function GAt(){const t=yae();return new Promise(e=>{switch(t){case Cy.browser:e(X$r());break;case Cy.reactNative:e(e7r());break;case Cy.node:e(t7r());break;default:e(!0)}})}function X$r(){return bG()&&(navigator==null?void 0:navigator.onLine)}async function e7r(){if(yG()&&typeof Wa<"u"&&Wa!=null&&Wa.NetInfo){const t=await(Wa==null?void 0:Wa.NetInfo.fetch());return t==null?void 0:t.isConnected}return!0}function t7r(){return!0}function n7r(t){switch(yae()){case Cy.browser:r7r(t);break;case Cy.reactNative:i7r(t);break}}function r7r(t){!yG()&&bG()&&(window.addEventListener("online",()=>t(!0)),window.addEventListener("offline",()=>t(!1)))}function i7r(t){yG()&&typeof Wa<"u"&&Wa!=null&&Wa.NetInfo&&(Wa==null||Wa.NetInfo.addEventListener(e=>t(e==null?void 0:e.isConnected)))}const z5e={};let gce=class{static get(e){return z5e[e]}static set(e,n){z5e[e]=n}static delete(e){delete z5e[e]}};const a7r=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o7r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,s7r=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l7r(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){c7r(t);return}return e}function c7r(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function vce(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!s7r.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(a7r.test(t)||o7r.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,l7r)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}function u7r(t){return!t||typeof t.then!="function"?Promise.resolve(t):t}function Vp(t,...e){try{return u7r(t(...e))}catch(n){return Promise.reject(n)}}function d7r(t){const e=typeof t;return t===null||e!=="object"&&e!=="function"}function h7r(t){const e=Object.getPrototypeOf(t);return!e||e.isPrototypeOf(Object)}function dme(t){if(d7r(t))return String(t);if(h7r(t)||Array.isArray(t))return JSON.stringify(t);if(typeof t.toJSON=="function")return dme(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function uXt(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const WHe="base64:";function f7r(t){if(typeof t=="string")return t;uXt();const e=Buffer.from(t).toString("base64");return WHe+e}function p7r(t){return typeof t!="string"||!t.startsWith(WHe)?t:(uXt(),Buffer.from(t.slice(WHe.length),"base64"))}function BA(t){return t?t.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function m7r(...t){return BA(t.join(":"))}function Ace(t){return t=BA(t),t?t+":":""}const g7r="memory",v7r=()=>{const t=new Map;return{name:g7r,options:{},hasItem(e){return t.has(e)},getItem(e){return t.get(e)??null},getItemRaw(e){return t.get(e)??null},setItem(e,n){t.set(e,n)},setItemRaw(e,n){t.set(e,n)},removeItem(e){t.delete(e)},getKeys(){return Array.from(t.keys())},clear(){t.clear()},dispose(){t.clear()}}};function A7r(t={}){const e={mounts:{"":t.driver||v7r()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=u=>{for(const d of e.mountpoints)if(u.startsWith(d))return{base:d,relativeKey:u.slice(d.length),driver:e.mounts[d]};return{base:"",relativeKey:u,driver:e.mounts[""]}},r=(u,d)=>e.mountpoints.filter(h=>h.startsWith(u)||d&&u.startsWith(h)).map(h=>({relativeBase:u.length>h.length?u.slice(h.length):void 0,mountpoint:h,driver:e.mounts[h]})),a=(u,d)=>{if(e.watching){d=BA(d);for(const h of e.watchListeners)h(u,d)}},o=async()=>{if(!e.watching){e.watching=!0;for(const u in e.mounts)e.unwatch[u]=await VAt(e.mounts[u],a,u)}},s=async()=>{if(e.watching){for(const u in e.unwatch)await e.unwatch[u]();e.unwatch={},e.watching=!1}},l=(u,d,h)=>{const f=new Map,p=m=>{let g=f.get(m.base);return g||(g={driver:m.driver,base:m.base,items:[]},f.set(m.base,g)),g};for(const m of u){const g=typeof m=="string",v=BA(g?m:m.key),A=g?void 0:m.value,y=g||!m.options?d:{...d,...m.options},S=n(v);p(S).items.push({key:v,value:A,relativeKey:S.relativeKey,options:y})}return Promise.all([...f.values()].map(m=>h(m))).then(m=>m.flat())},c={hasItem(u,d={}){u=BA(u);const{relativeKey:h,driver:f}=n(u);return Vp(f.hasItem,h,d)},getItem(u,d={}){u=BA(u);const{relativeKey:h,driver:f}=n(u);return Vp(f.getItem,h,d).then(p=>vce(p))},getItems(u,d){return l(u,d,h=>h.driver.getItems?Vp(h.driver.getItems,h.items.map(f=>({key:f.relativeKey,options:f.options})),d).then(f=>f.map(p=>({key:m7r(h.base,p.key),value:vce(p.value)}))):Promise.all(h.items.map(f=>Vp(h.driver.getItem,f.relativeKey,f.options).then(p=>({key:f.key,value:vce(p)})))))},getItemRaw(u,d={}){u=BA(u);const{relativeKey:h,driver:f}=n(u);return f.getItemRaw?Vp(f.getItemRaw,h,d):Vp(f.getItem,h,d).then(p=>p7r(p))},async setItem(u,d,h={}){if(d===void 0)return c.removeItem(u);u=BA(u);const{relativeKey:f,driver:p}=n(u);p.setItem&&(await Vp(p.setItem,f,dme(d),h),p.watch||a("update",u))},async setItems(u,d){await l(u,d,async h=>{if(h.driver.setItems)return Vp(h.driver.setItems,h.items.map(f=>({key:f.relativeKey,value:dme(f.value),options:f.options})),d);h.driver.setItem&&await Promise.all(h.items.map(f=>Vp(h.driver.setItem,f.relativeKey,dme(f.value),f.options)))})},async setItemRaw(u,d,h={}){if(d===void 0)return c.removeItem(u,h);u=BA(u);const{relativeKey:f,driver:p}=n(u);if(p.setItemRaw)await Vp(p.setItemRaw,f,d,h);else if(p.setItem)await Vp(p.setItem,f,f7r(d),h);else return;p.watch||a("update",u)},async removeItem(u,d={}){typeof d=="boolean"&&(d={removeMeta:d}),u=BA(u);const{relativeKey:h,driver:f}=n(u);f.removeItem&&(await Vp(f.removeItem,h,d),(d.removeMeta||d.removeMata)&&await Vp(f.removeItem,h+"$",d),f.watch||a("remove",u))},async getMeta(u,d={}){typeof d=="boolean"&&(d={nativeOnly:d}),u=BA(u);const{relativeKey:h,driver:f}=n(u),p=Object.create(null);if(f.getMeta&&Object.assign(p,await Vp(f.getMeta,h,d)),!d.nativeOnly){const m=await Vp(f.getItem,h+"$",d).then(g=>vce(g));m&&typeof m=="object"&&(typeof m.atime=="string"&&(m.atime=new Date(m.atime)),typeof m.mtime=="string"&&(m.mtime=new Date(m.mtime)),Object.assign(p,m))}return p},setMeta(u,d,h={}){return this.setItem(u+"$",d,h)},removeMeta(u,d={}){return this.removeItem(u+"$",d)},async getKeys(u,d={}){u=Ace(u);const h=r(u,!0);let f=[];const p=[];for(const m of h){const v=(await Vp(m.driver.getKeys,m.relativeBase,d)).map(A=>m.mountpoint+BA(A)).filter(A=>!f.some(y=>A.startsWith(y)));p.push(...v),f=[m.mountpoint,...f.filter(A=>!A.startsWith(m.mountpoint))]}return u?p.filter(m=>m.startsWith(u)&&!m.endsWith("$")):p.filter(m=>!m.endsWith("$"))},async clear(u,d={}){u=Ace(u),await Promise.all(r(u,!1).map(async h=>{if(h.driver.clear)return Vp(h.driver.clear,h.relativeBase,d);if(h.driver.removeItem){const f=await h.driver.getKeys(h.relativeBase||"",d);return Promise.all(f.map(p=>h.driver.removeItem(p,d)))}}))},async dispose(){await Promise.all(Object.values(e.mounts).map(u=>KAt(u)))},async watch(u){return await o(),e.watchListeners.push(u),async()=>{e.watchListeners=e.watchListeners.filter(d=>d!==u),e.watchListeners.length===0&&await s()}},async unwatch(){e.watchListeners=[],await s()},mount(u,d){if(u=Ace(u),u&&e.mounts[u])throw new Error(`already mounted at ${u}`);return u&&(e.mountpoints.push(u),e.mountpoints.sort((h,f)=>f.length-h.length)),e.mounts[u]=d,e.watching&&Promise.resolve(VAt(d,a,u)).then(h=>{e.unwatch[u]=h}).catch(console.error),c},async unmount(u,d=!0){u=Ace(u),!(!u||!e.mounts[u])&&(e.watching&&u in e.unwatch&&(e.unwatch[u](),delete e.unwatch[u]),d&&await KAt(e.mounts[u]),e.mountpoints=e.mountpoints.filter(h=>h!==u),delete e.mounts[u])},getMount(u=""){u=BA(u)+":";const d=n(u);return{driver:d.driver,base:d.base}},getMounts(u="",d={}){return u=BA(u),r(u,d.parents).map(f=>({driver:f.driver,base:f.mountpoint}))}};return c}function VAt(t,e,n){return t.watch?t.watch((r,a)=>e(r,n+a)):()=>{}}async function KAt(t){typeof t.dispose=="function"&&await Vp(t.dispose)}function G8(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function dXt(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=G8(n);return(a,o)=>r.then(s=>o(s.transaction(e,a).objectStore(e)))}let G5e;function bae(){return G5e||(G5e=dXt("keyval-store","keyval")),G5e}function WAt(t,e=bae()){return e("readonly",n=>G8(n.get(t)))}function y7r(t,e,n=bae()){return n("readwrite",r=>(r.put(e,t),G8(r.transaction)))}function b7r(t,e=bae()){return e("readwrite",n=>(n.delete(t),G8(n.transaction)))}function x7r(t=bae()){return t("readwrite",e=>(e.clear(),G8(e.transaction)))}function E7r(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},G8(t.transaction)}function S7r(t=bae()){return t("readonly",e=>{if(e.getAllKeys)return G8(e.getAllKeys());const n=[];return E7r(e,r=>n.push(r.key)).then(()=>n)})}const w7r=t=>JSON.stringify(t,(e,n)=>typeof n=="bigint"?n.toString()+"n":n),_7r=t=>{const e=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,n=t.replace(e,'$1"$2n"$3');return JSON.parse(n,(r,a)=>typeof a=="string"&&a.match(/^\d+n$/)?BigInt(a.substring(0,a.length-1)):a)};function xae(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return _7r(t)}catch{return t}}function k6(t){return typeof t=="string"?t:w7r(t)||""}const T7r="idb-keyval";var C7r=(t={})=>{const e=t.base&&t.base.length>0?`${t.base}:`:"",n=a=>e+a;let r;return t.dbName&&t.storeName&&(r=dXt(t.dbName,t.storeName)),{name:T7r,options:t,async hasItem(a){return!(typeof await WAt(n(a),r)>"u")},async getItem(a){return await WAt(n(a),r)??null},setItem(a,o){return y7r(n(a),o,r)},removeItem(a){return b7r(n(a),r)},getKeys(){return S7r(r)},clear(){return x7r(r)}}};const k7r="WALLET_CONNECT_V2_INDEXED_DB",R7r="keyvaluestorage";let M7r=class{constructor(){this.indexedDb=A7r({driver:C7r({dbName:k7r,storeName:R7r})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){const n=await this.indexedDb.getItem(e);if(n!==null)return n}async setItem(e,n){await this.indexedDb.setItem(e,k6(n))}async removeItem(e){await this.indexedDb.removeItem(e)}};var V5e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Wa<"u"?Wa:typeof self<"u"?self:{},hme={exports:{}};(function(){let t;function e(){}t=e,t.prototype.getItem=function(n){return this.hasOwnProperty(n)?String(this[n]):null},t.prototype.setItem=function(n,r){this[n]=String(r)},t.prototype.removeItem=function(n){delete this[n]},t.prototype.clear=function(){const n=this;Object.keys(n).forEach(function(r){n[r]=void 0,delete n[r]})},t.prototype.key=function(n){return n=n||0,Object.keys(this)[n]},t.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof V5e<"u"&&V5e.localStorage?hme.exports=V5e.localStorage:typeof window<"u"&&window.localStorage?hme.exports=window.localStorage:hme.exports=new e})();function N7r(t){var e;return[t[0],xae((e=t[1])!=null?e:"")]}let I7r=class{constructor(){this.localStorage=hme.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(N7r)}async getItem(e){const n=this.localStorage.getItem(e);if(n!==null)return xae(n)}async setItem(e,n){this.localStorage.setItem(e,k6(n))}async removeItem(e){this.localStorage.removeItem(e)}};const P7r="wc_storage_version",QAt=1,O7r=async(t,e,n)=>{const r=P7r,a=await e.getItem(r);if(a&&a>=QAt){n(e);return}const o=await t.getKeys();if(!o.length){n(e);return}const s=[];for(;o.length;){const l=o.shift();if(!l)continue;const c=l.toLowerCase();if(c.includes("wc@")||c.includes("walletconnect")||c.includes("wc_")||c.includes("wallet_connect")){const u=await t.getItem(l);await e.setItem(l,u),s.push(l)}}await e.setItem(r,QAt),n(e),L7r(t,s)},L7r=async(t,e)=>{e.length&&e.forEach(async n=>{await t.removeItem(n)})};let B7r=class{constructor(){this.initialized=!1,this.setInitialized=n=>{this.storage=n,this.initialized=!0};const e=new I7r;this.storage=e;try{const n=new M7r;O7r(e,n,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,n){return await this.initialize(),this.storage.setItem(e,n)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{const n=setInterval(()=>{this.initialized&&(clearInterval(n),e())},20)})}};var EG={};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var QHe=function(t,e){return QHe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},QHe(t,e)};function D7r(t,e){QHe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var qHe=function(){return qHe=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qHe.apply(this,arguments)};function $7r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function F7r(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function j7r(t,e){return function(n,r){e(n,r,t)}}function H7r(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function U7r(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function z7r(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function G7r(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}function V7r(t,e){for(var n in t)n!=="default"&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function YHe(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function hXt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function K7r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(hXt(arguments[e]));return t}function W7r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,a++)r[a]=o[s];return r}function cne(t){return this instanceof cne?(this.v=t,this):new cne(t)}function Q7r(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,o=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(f){r[f]&&(a[f]=function(p){return new Promise(function(m,g){o.push([f,p,m,g])>1||l(f,p)})})}function l(f,p){try{c(r[f](p))}catch(m){h(o[0][3],m)}}function c(f){f.value instanceof cne?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function q7r(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,o){e[a]=t[a]?function(s){return(n=!n)?{value:cne(t[a](s)),done:a==="return"}:o?o(s):s}:o}}function Y7r(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof YHe=="function"?YHe(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(l,c){s=t[o](s),a(l,c,s.done,s.value)})}}function a(o,s,l,c){Promise.resolve(c).then(function(u){o({value:u,done:l})},s)}}function J7r(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function Z7r(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function X7r(t){return t&&t.__esModule?t:{default:t}}function eFr(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function tFr(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}const nFr=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return qHe},__asyncDelegator:q7r,__asyncGenerator:Q7r,__asyncValues:Y7r,__await:cne,__awaiter:U7r,__classPrivateFieldGet:eFr,__classPrivateFieldSet:tFr,__createBinding:G7r,__decorate:F7r,__exportStar:V7r,__extends:D7r,__generator:z7r,__importDefault:X7r,__importStar:Z7r,__makeTemplateObject:J7r,__metadata:H7r,__param:j7r,__read:hXt,__rest:$7r,__spread:K7r,__spreadArrays:W7r,__values:YHe},Symbol.toStringTag,{value:"Module"})),GEe=Uu(nFr);var kQ={},K5e={},RQ={};class V8{}const rFr=Object.freeze(Object.defineProperty({__proto__:null,IEvents:V8},Symbol.toStringTag,{value:"Module"})),iFr=Uu(rFr);var qAt;function aFr(){if(qAt)return RQ;qAt=1,Object.defineProperty(RQ,"__esModule",{value:!0}),RQ.IHeartBeat=void 0;const t=iFr;class e extends t.IEvents{constructor(r){super()}}return RQ.IHeartBeat=e,RQ}var YAt;function fXt(){return YAt||(YAt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),GEe.__exportStar(aFr(),t)}(K5e)),K5e}var W5e={},b4={},JAt;function oFr(){if(JAt)return b4;JAt=1,Object.defineProperty(b4,"__esModule",{value:!0}),b4.HEARTBEAT_EVENTS=b4.HEARTBEAT_INTERVAL=void 0;const t=ha;return b4.HEARTBEAT_INTERVAL=t.FIVE_SECONDS,b4.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},b4}var ZAt;function pXt(){return ZAt||(ZAt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),GEe.__exportStar(oFr(),t)}(W5e)),W5e}var XAt;function sFr(){if(XAt)return kQ;XAt=1,Object.defineProperty(kQ,"__esModule",{value:!0}),kQ.HeartBeat=void 0;const t=GEe,e=mg,n=ha,r=fXt(),a=pXt();class o extends r.IHeartBeat{constructor(l){super(l),this.events=new e.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(l==null?void 0:l.interval)||a.HEARTBEAT_INTERVAL}static init(l){return t.__awaiter(this,void 0,void 0,function*(){const c=new o(l);return yield c.init(),c})}init(){return t.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(l,c){this.events.on(l,c)}once(l,c){this.events.once(l,c)}off(l,c){this.events.off(l,c)}removeListener(l,c){this.events.removeListener(l,c)}initialize(){return t.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),n.toMiliseconds(this.interval))})}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}return kQ.HeartBeat=o,kQ}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=GEe;e.__exportStar(sFr(),t),e.__exportStar(fXt(),t),e.__exportStar(pXt(),t)})(EG);function lFr(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}var cFr=uFr;function uFr(t,e,n){var r=n&&n.stringify||lFr,a=1;if(typeof t=="object"&&t!==null){var o=e.length+a;if(o===1)return t;var s=new Array(o);s[0]=r(t);for(var l=1;l<o;l++)s[l]=r(e[l]);return s.join(" ")}if(typeof t!="string")return t;var c=e.length;if(c===0)return t;for(var u="",d=1-a,h=-1,f=t&&t.length||0,p=0;p<f;){if(t.charCodeAt(p)===37&&p+1<f){switch(h=h>-1?h:0,t.charCodeAt(p+1)){case 100:case 102:if(d>=c||e[d]==null)break;h<p&&(u+=t.slice(h,p)),u+=Number(e[d]),h=p+2,p++;break;case 105:if(d>=c||e[d]==null)break;h<p&&(u+=t.slice(h,p)),u+=Math.floor(Number(e[d])),h=p+2,p++;break;case 79:case 111:case 106:if(d>=c||e[d]===void 0)break;h<p&&(u+=t.slice(h,p));var m=typeof e[d];if(m==="string"){u+="'"+e[d]+"'",h=p+2,p++;break}if(m==="function"){u+=e[d].name||"<anonymous>",h=p+2,p++;break}u+=r(e[d]),h=p+2,p++;break;case 115:if(d>=c)break;h<p&&(u+=t.slice(h,p)),u+=String(e[d]),h=p+2,p++;break;case 37:h<p&&(u+=t.slice(h,p)),u+="%",h=p+2,p++,d--;break}++d}++p}return h===-1?t:(h<f&&(u+=t.slice(h)),u)}const e1t=cFr;var dFr=v2;const une=xFr().console||{},hFr={mapHttpRequest:yce,mapHttpResponse:yce,wrapRequestSerializer:Q5e,wrapResponseSerializer:Q5e,wrapErrorSerializer:Q5e,req:yce,res:yce,err:vFr};function fFr(t,e){return Array.isArray(t)?t.filter(function(r){return r!=="!stdSerializers.err"}):t===!0?Object.keys(e):!1}function v2(t){t=t||{},t.browser=t.browser||{};const e=t.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");const n=t.browser.write||une;t.browser.write&&(t.browser.asObject=!0);const r=t.serializers||{},a=fFr(t.browser.serialize,r);let o=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const s=["error","fatal","warn","info","debug","trace"];typeof n=="function"&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),t.enabled===!1&&(t.level="silent");const l=t.level||"info",c=Object.create(n);c.log||(c.log=dne),Object.defineProperty(c,"levelVal",{get:d}),Object.defineProperty(c,"level",{get:h,set:f});const u={transmit:e,serialize:a,asObject:t.browser.asObject,levels:s,timestamp:AFr(t)};c.levels=v2.levels,c.level=l,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=dne,c.serializers=r,c._serialize=a,c._stdErrSerialize=o,c.child=p,e&&(c._logEvent=JHe());function d(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function f(m){if(m!=="silent"&&!this.levels.values[m])throw Error("unknown level "+m);this._level=m,u$(u,c,"error","log"),u$(u,c,"fatal","error"),u$(u,c,"warn","error"),u$(u,c,"info","log"),u$(u,c,"debug","log"),u$(u,c,"trace","log")}function p(m,g){if(!m)throw new Error("missing bindings for child Pino");g=g||{},a&&m.serializers&&(g.serializers=m.serializers);const v=g.serializers;if(a&&v){var A=Object.assign({},r,v),y=t.browser.serialize===!0?Object.keys(A):a;delete m.serializers,VEe([m],y,A,this._stdErrSerialize)}function S(x){this._childLevel=(x._childLevel|0)+1,this.error=d$(x,m,"error"),this.fatal=d$(x,m,"fatal"),this.warn=d$(x,m,"warn"),this.info=d$(x,m,"info"),this.debug=d$(x,m,"debug"),this.trace=d$(x,m,"trace"),A&&(this.serializers=A,this._serialize=y),e&&(this._logEvent=JHe([].concat(x._logEvent.bindings,m)))}return S.prototype=this,new S(this)}return c}v2.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};v2.stdSerializers=hFr;v2.stdTimeFunctions=Object.assign({},{nullTime:mXt,epochTime:gXt,unixTime:yFr,isoTime:bFr});function u$(t,e,n,r){const a=Object.getPrototypeOf(e);e[n]=e.levelVal>e.levels.values[n]?dne:a[n]?a[n]:une[n]||une[r]||dne,pFr(t,e,n)}function pFr(t,e,n){!t.transmit&&e[n]===dne||(e[n]=function(r){return function(){const o=t.timestamp(),s=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===une?une:this;for(var c=0;c<s.length;c++)s[c]=arguments[c];if(t.serialize&&!t.asObject&&VEe(s,this._serialize,this.serializers,this._stdErrSerialize),t.asObject?r.call(l,mFr(this,n,s,o)):r.apply(l,s),t.transmit){const u=t.transmit.level||e.level,d=v2.levels.values[u],h=v2.levels.values[n];if(h<d)return;gFr(this,{ts:o,methodLevel:n,methodValue:h,transmitLevel:u,transmitValue:v2.levels.values[t.transmit.level||e.level],send:t.transmit.send,val:e.levelVal},s)}}}(e[n]))}function mFr(t,e,n,r){t._serialize&&VEe(n,t._serialize,t.serializers,t._stdErrSerialize);const a=n.slice();let o=a[0];const s={};r&&(s.time=r),s.level=v2.levels.values[e];let l=(t._childLevel|0)+1;if(l<1&&(l=1),o!==null&&typeof o=="object"){for(;l--&&typeof a[0]=="object";)Object.assign(s,a.shift());o=a.length?e1t(a.shift(),a):void 0}else typeof o=="string"&&(o=e1t(a.shift(),a));return o!==void 0&&(s.msg=o),s}function VEe(t,e,n,r){for(const a in t)if(r&&t[a]instanceof Error)t[a]=v2.stdSerializers.err(t[a]);else if(typeof t[a]=="object"&&!Array.isArray(t[a]))for(const o in t[a])e&&e.indexOf(o)>-1&&o in n&&(t[a][o]=n[o](t[a][o]))}function d$(t,e,n){return function(){const r=new Array(1+arguments.length);r[0]=e;for(var a=1;a<r.length;a++)r[a]=arguments[a-1];return t[n].apply(this,r)}}function gFr(t,e,n){const r=e.send,a=e.ts,o=e.methodLevel,s=e.methodValue,l=e.val,c=t._logEvent.bindings;VEe(n,t._serialize||Object.keys(t.serializers),t.serializers,t._stdErrSerialize===void 0?!0:t._stdErrSerialize),t._logEvent.ts=a,t._logEvent.messages=n.filter(function(u){return c.indexOf(u)===-1}),t._logEvent.level.label=o,t._logEvent.level.value=s,r(o,t._logEvent,l),t._logEvent=JHe(c)}function JHe(t){return{ts:0,messages:[],bindings:t||[],level:{label:"",value:0}}}function vFr(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const n in t)e[n]===void 0&&(e[n]=t[n]);return e}function AFr(t){return typeof t.timestamp=="function"?t.timestamp:t.timestamp===!1?mXt:gXt}function yce(){return{}}function Q5e(t){return t}function dne(){}function mXt(){return!1}function gXt(){return Date.now()}function yFr(){return Math.round(Date.now()/1e3)}function bFr(){return new Date(Date.now()).toISOString()}function xFr(){function t(e){return typeof e<"u"&&e}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return t(self)||t(window)||t(this)||{}}}const KEe=Li(dFr),EFr={level:"info"},Eae="custom_context";var SFr=Object.defineProperty,wFr=Object.defineProperties,_Fr=Object.getOwnPropertyDescriptors,t1t=Object.getOwnPropertySymbols,TFr=Object.prototype.hasOwnProperty,CFr=Object.prototype.propertyIsEnumerable,n1t=(t,e,n)=>e in t?SFr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kFr=(t,e)=>{for(var n in e||(e={}))TFr.call(e,n)&&n1t(t,n,e[n]);if(t1t)for(var n of t1t(e))CFr.call(e,n)&&n1t(t,n,e[n]);return t},RFr=(t,e)=>wFr(t,_Fr(e));function WEe(t){return RFr(kFr({},t),{level:(t==null?void 0:t.level)||EFr.level})}function MFr(t,e=Eae){return t[e]||""}function NFr(t,e,n=Eae){return t[n]=e,t}function f1(t,e=Eae){let n="";return typeof t.bindings>"u"?n=MFr(t,e):n=t.bindings().context||"",n}function IFr(t,e,n=Eae){const r=f1(t,n);return r.trim()?`${r}/${e}`:e}function p1(t,e,n=Eae){const r=IFr(t,e,n),a=t.child({context:r});return NFr(a,r,n)}let PFr=class extends V8{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}},OFr=class extends V8{constructor(e,n){super(),this.core=e,this.logger=n,this.records=new Map}},LFr=class{constructor(e,n){this.logger=e,this.core=n}},BFr=class extends V8{constructor(e,n){super(),this.relayer=e,this.logger=n}},DFr=class extends V8{constructor(e){super()}},$Fr=class{constructor(e,n,r,a){this.core=e,this.logger=n,this.name=r}},FFr=class extends V8{constructor(e,n){super(),this.relayer=e,this.logger=n}},jFr=class extends V8{constructor(e,n){super(),this.core=e,this.logger=n}},HFr=class{constructor(e,n){this.projectId=e,this.logger=n}},UFr=class{constructor(e,n){this.projectId=e,this.logger=n}},zFr=class{constructor(e){this.opts=e,this.protocol="wc",this.version=2}},GFr=class{constructor(e){this.client=e}};var yet={},vXt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Xo,n=ib;t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var r=function(){function l(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return l.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},l.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},l.prototype.clean=function(){n.wipe(this._buffer),n.wipe(this._tempHi),n.wipe(this._tempLo),this.reset()},l.prototype.update=function(c,u){if(u===void 0&&(u=c.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var d=0;if(this._bytesHashed+=u,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&u>0;)this._buffer[this._bufferLength++]=c[d++],u--;this._bufferLength===this.blockSize&&(o(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(u>=this.blockSize&&(d=o(this._tempHi,this._tempLo,this._stateHi,this._stateLo,c,d,u),u%=this.blockSize);u>0;)this._buffer[this._bufferLength++]=c[d++],u--;return this},l.prototype.finish=function(c){if(!this._finished){var u=this._bytesHashed,d=this._bufferLength,h=u/536870912|0,f=u<<3,p=u%128<112?128:256;this._buffer[d]=128;for(var m=d+1;m<p-8;m++)this._buffer[m]=0;e.writeUint32BE(h,this._buffer,p-8),e.writeUint32BE(f,this._buffer,p-4),o(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,p),this._finished=!0}for(var m=0;m<this.digestLength/8;m++)e.writeUint32BE(this._stateHi[m],c,m*8),e.writeUint32BE(this._stateLo[m],c,m*8+4);return this},l.prototype.digest=function(){var c=new Uint8Array(this.digestLength);return this.finish(c),c},l.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},l.prototype.restoreState=function(c){return this._stateHi.set(c.stateHi),this._stateLo.set(c.stateLo),this._bufferLength=c.bufferLength,c.buffer&&this._buffer.set(c.buffer),this._bytesHashed=c.bytesHashed,this._finished=!1,this},l.prototype.cleanSavedState=function(c){n.wipe(c.stateHi),n.wipe(c.stateLo),c.buffer&&n.wipe(c.buffer),c.bufferLength=0,c.bytesHashed=0},l}();t.SHA512=r;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function o(l,c,u,d,h,f,p){for(var m=u[0],g=u[1],v=u[2],A=u[3],y=u[4],S=u[5],x=u[6],w=u[7],_=d[0],C=d[1],R=d[2],k=d[3],P=d[4],N=d[5],L=d[6],I=d[7],b,T,M,D,B,j,H,U;p>=128;){for(var $=0;$<16;$++){var z=8*$+f;l[$]=e.readUint32BE(h,z),c[$]=e.readUint32BE(h,z+4)}for(var $=0;$<80;$++){var Z=m,K=g,Q=v,ee=A,X=y,te=S,J=x,ne=w,ie=_,he=C,de=R,ce=k,Ee=P,Me=N,Be=L,ze=I;if(b=w,T=I,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=(y>>>14|P<<32-14)^(y>>>18|P<<32-18)^(P>>>41-32|y<<32-(41-32)),T=(P>>>14|y<<32-14)^(P>>>18|y<<32-18)^(y>>>41-32|P<<32-(41-32)),B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,b=y&S^~y&x,T=P&N^~P&L,B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,b=a[$*2],T=a[$*2+1],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,b=l[$%16],T=c[$%16],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,M=H&65535|U<<16,D=B&65535|j<<16,b=M,T=D,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=(m>>>28|_<<32-28)^(_>>>34-32|m<<32-(34-32))^(_>>>39-32|m<<32-(39-32)),T=(_>>>28|m<<32-28)^(m>>>34-32|_<<32-(34-32))^(m>>>39-32|_<<32-(39-32)),B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,b=m&g^m&v^g&v,T=_&C^_&R^C&R,B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,ne=H&65535|U<<16,ze=B&65535|j<<16,b=ee,T=ce,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=M,T=D,B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,ee=H&65535|U<<16,ce=B&65535|j<<16,g=Z,v=K,A=Q,y=ee,S=X,x=te,w=J,m=ne,C=ie,R=he,k=de,P=ce,N=Ee,L=Me,I=Be,_=ze,$%16===15)for(var z=0;z<16;z++)b=l[z],T=c[z],B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=l[(z+9)%16],T=c[(z+9)%16],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,M=l[(z+1)%16],D=c[(z+1)%16],b=(M>>>1|D<<32-1)^(M>>>8|D<<32-8)^M>>>7,T=(D>>>1|M<<32-1)^(D>>>8|M<<32-8)^(D>>>7|M<<32-7),B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,M=l[(z+14)%16],D=c[(z+14)%16],b=(M>>>19|D<<32-19)^(D>>>61-32|M<<32-(61-32))^M>>>6,T=(D>>>19|M<<32-19)^(M>>>61-32|D<<32-(61-32))^(D>>>6|M<<32-6),B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,l[z]=H&65535|U<<16,c[z]=B&65535|j<<16}b=m,T=_,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[0],T=d[0],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[0]=m=H&65535|U<<16,d[0]=_=B&65535|j<<16,b=g,T=C,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[1],T=d[1],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[1]=g=H&65535|U<<16,d[1]=C=B&65535|j<<16,b=v,T=R,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[2],T=d[2],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[2]=v=H&65535|U<<16,d[2]=R=B&65535|j<<16,b=A,T=k,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[3],T=d[3],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[3]=A=H&65535|U<<16,d[3]=k=B&65535|j<<16,b=y,T=P,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[4],T=d[4],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[4]=y=H&65535|U<<16,d[4]=P=B&65535|j<<16,b=S,T=N,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[5],T=d[5],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[5]=S=H&65535|U<<16,d[5]=N=B&65535|j<<16,b=x,T=L,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[6],T=d[6],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[6]=x=H&65535|U<<16,d[6]=L=B&65535|j<<16,b=w,T=I,B=T&65535,j=T>>>16,H=b&65535,U=b>>>16,b=u[7],T=d[7],B+=T&65535,j+=T>>>16,H+=b&65535,U+=b>>>16,j+=B>>>16,H+=j>>>16,U+=H>>>16,u[7]=w=H&65535|U<<16,d[7]=I=B&65535|j<<16,f+=128,p-=128}return f}function s(l){var c=new r;c.update(l);var u=c.digest();return c.clean(),u}t.hash=s})(vXt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertSecretKeyToX25519=t.convertPublicKeyToX25519=t.verify=t.sign=t.extractPublicKeyFromSecretKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.SEED_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=t.SIGNATURE_LENGTH=void 0;const e=vG,n=vXt,r=ib;t.SIGNATURE_LENGTH=64,t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=64,t.SEED_LENGTH=32;function a(ee){const X=new Float64Array(16);if(ee)for(let te=0;te<ee.length;te++)X[te]=ee[te];return X}const o=new Uint8Array(32);o[0]=9;const s=a(),l=a([1]),c=a([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=a([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=a([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),h=a([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=a([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(ee,X){for(let te=0;te<16;te++)ee[te]=X[te]|0}function m(ee){let X=1;for(let te=0;te<16;te++){let J=ee[te]+X+65535;X=Math.floor(J/65536),ee[te]=J-X*65536}ee[0]+=X-1+37*(X-1)}function g(ee,X,te){const J=~(te-1);for(let ne=0;ne<16;ne++){const ie=J&(ee[ne]^X[ne]);ee[ne]^=ie,X[ne]^=ie}}function v(ee,X){const te=a(),J=a();for(let ne=0;ne<16;ne++)J[ne]=X[ne];m(J),m(J),m(J);for(let ne=0;ne<2;ne++){te[0]=J[0]-65517;for(let he=1;he<15;he++)te[he]=J[he]-65535-(te[he-1]>>16&1),te[he-1]&=65535;te[15]=J[15]-32767-(te[14]>>16&1);const ie=te[15]>>16&1;te[14]&=65535,g(J,te,1-ie)}for(let ne=0;ne<16;ne++)ee[2*ne]=J[ne]&255,ee[2*ne+1]=J[ne]>>8}function A(ee,X){let te=0;for(let J=0;J<32;J++)te|=ee[J]^X[J];return(1&te-1>>>8)-1}function y(ee,X){const te=new Uint8Array(32),J=new Uint8Array(32);return v(te,ee),v(J,X),A(te,J)}function S(ee){const X=new Uint8Array(32);return v(X,ee),X[0]&1}function x(ee,X){for(let te=0;te<16;te++)ee[te]=X[2*te]+(X[2*te+1]<<8);ee[15]&=32767}function w(ee,X,te){for(let J=0;J<16;J++)ee[J]=X[J]+te[J]}function _(ee,X,te){for(let J=0;J<16;J++)ee[J]=X[J]-te[J]}function C(ee,X,te){let J,ne,ie=0,he=0,de=0,ce=0,Ee=0,Me=0,Be=0,ze=0,je=0,ye=0,me=0,le=0,pe=0,Ne=0,_e=0,ue=0,se=0,oe=0,ge=0,De=0,Fe=0,Se=0,Xe=0,Oe=0,Ye=0,mt=0,ut=0,lt=0,pn=0,sn=0,un=0,ur=te[0],dt=te[1],xt=te[2],Cn=te[3],Kt=te[4],rn=te[5],On=te[6],an=te[7],on=te[8],dr=te[9],$e=te[10],qe=te[11],yt=te[12],Ze=te[13],ot=te[14],yn=te[15];J=X[0],ie+=J*ur,he+=J*dt,de+=J*xt,ce+=J*Cn,Ee+=J*Kt,Me+=J*rn,Be+=J*On,ze+=J*an,je+=J*on,ye+=J*dr,me+=J*$e,le+=J*qe,pe+=J*yt,Ne+=J*Ze,_e+=J*ot,ue+=J*yn,J=X[1],he+=J*ur,de+=J*dt,ce+=J*xt,Ee+=J*Cn,Me+=J*Kt,Be+=J*rn,ze+=J*On,je+=J*an,ye+=J*on,me+=J*dr,le+=J*$e,pe+=J*qe,Ne+=J*yt,_e+=J*Ze,ue+=J*ot,se+=J*yn,J=X[2],de+=J*ur,ce+=J*dt,Ee+=J*xt,Me+=J*Cn,Be+=J*Kt,ze+=J*rn,je+=J*On,ye+=J*an,me+=J*on,le+=J*dr,pe+=J*$e,Ne+=J*qe,_e+=J*yt,ue+=J*Ze,se+=J*ot,oe+=J*yn,J=X[3],ce+=J*ur,Ee+=J*dt,Me+=J*xt,Be+=J*Cn,ze+=J*Kt,je+=J*rn,ye+=J*On,me+=J*an,le+=J*on,pe+=J*dr,Ne+=J*$e,_e+=J*qe,ue+=J*yt,se+=J*Ze,oe+=J*ot,ge+=J*yn,J=X[4],Ee+=J*ur,Me+=J*dt,Be+=J*xt,ze+=J*Cn,je+=J*Kt,ye+=J*rn,me+=J*On,le+=J*an,pe+=J*on,Ne+=J*dr,_e+=J*$e,ue+=J*qe,se+=J*yt,oe+=J*Ze,ge+=J*ot,De+=J*yn,J=X[5],Me+=J*ur,Be+=J*dt,ze+=J*xt,je+=J*Cn,ye+=J*Kt,me+=J*rn,le+=J*On,pe+=J*an,Ne+=J*on,_e+=J*dr,ue+=J*$e,se+=J*qe,oe+=J*yt,ge+=J*Ze,De+=J*ot,Fe+=J*yn,J=X[6],Be+=J*ur,ze+=J*dt,je+=J*xt,ye+=J*Cn,me+=J*Kt,le+=J*rn,pe+=J*On,Ne+=J*an,_e+=J*on,ue+=J*dr,se+=J*$e,oe+=J*qe,ge+=J*yt,De+=J*Ze,Fe+=J*ot,Se+=J*yn,J=X[7],ze+=J*ur,je+=J*dt,ye+=J*xt,me+=J*Cn,le+=J*Kt,pe+=J*rn,Ne+=J*On,_e+=J*an,ue+=J*on,se+=J*dr,oe+=J*$e,ge+=J*qe,De+=J*yt,Fe+=J*Ze,Se+=J*ot,Xe+=J*yn,J=X[8],je+=J*ur,ye+=J*dt,me+=J*xt,le+=J*Cn,pe+=J*Kt,Ne+=J*rn,_e+=J*On,ue+=J*an,se+=J*on,oe+=J*dr,ge+=J*$e,De+=J*qe,Fe+=J*yt,Se+=J*Ze,Xe+=J*ot,Oe+=J*yn,J=X[9],ye+=J*ur,me+=J*dt,le+=J*xt,pe+=J*Cn,Ne+=J*Kt,_e+=J*rn,ue+=J*On,se+=J*an,oe+=J*on,ge+=J*dr,De+=J*$e,Fe+=J*qe,Se+=J*yt,Xe+=J*Ze,Oe+=J*ot,Ye+=J*yn,J=X[10],me+=J*ur,le+=J*dt,pe+=J*xt,Ne+=J*Cn,_e+=J*Kt,ue+=J*rn,se+=J*On,oe+=J*an,ge+=J*on,De+=J*dr,Fe+=J*$e,Se+=J*qe,Xe+=J*yt,Oe+=J*Ze,Ye+=J*ot,mt+=J*yn,J=X[11],le+=J*ur,pe+=J*dt,Ne+=J*xt,_e+=J*Cn,ue+=J*Kt,se+=J*rn,oe+=J*On,ge+=J*an,De+=J*on,Fe+=J*dr,Se+=J*$e,Xe+=J*qe,Oe+=J*yt,Ye+=J*Ze,mt+=J*ot,ut+=J*yn,J=X[12],pe+=J*ur,Ne+=J*dt,_e+=J*xt,ue+=J*Cn,se+=J*Kt,oe+=J*rn,ge+=J*On,De+=J*an,Fe+=J*on,Se+=J*dr,Xe+=J*$e,Oe+=J*qe,Ye+=J*yt,mt+=J*Ze,ut+=J*ot,lt+=J*yn,J=X[13],Ne+=J*ur,_e+=J*dt,ue+=J*xt,se+=J*Cn,oe+=J*Kt,ge+=J*rn,De+=J*On,Fe+=J*an,Se+=J*on,Xe+=J*dr,Oe+=J*$e,Ye+=J*qe,mt+=J*yt,ut+=J*Ze,lt+=J*ot,pn+=J*yn,J=X[14],_e+=J*ur,ue+=J*dt,se+=J*xt,oe+=J*Cn,ge+=J*Kt,De+=J*rn,Fe+=J*On,Se+=J*an,Xe+=J*on,Oe+=J*dr,Ye+=J*$e,mt+=J*qe,ut+=J*yt,lt+=J*Ze,pn+=J*ot,sn+=J*yn,J=X[15],ue+=J*ur,se+=J*dt,oe+=J*xt,ge+=J*Cn,De+=J*Kt,Fe+=J*rn,Se+=J*On,Xe+=J*an,Oe+=J*on,Ye+=J*dr,mt+=J*$e,ut+=J*qe,lt+=J*yt,pn+=J*Ze,sn+=J*ot,un+=J*yn,ie+=38*se,he+=38*oe,de+=38*ge,ce+=38*De,Ee+=38*Fe,Me+=38*Se,Be+=38*Xe,ze+=38*Oe,je+=38*Ye,ye+=38*mt,me+=38*ut,le+=38*lt,pe+=38*pn,Ne+=38*sn,_e+=38*un,ne=1,J=ie+ne+65535,ne=Math.floor(J/65536),ie=J-ne*65536,J=he+ne+65535,ne=Math.floor(J/65536),he=J-ne*65536,J=de+ne+65535,ne=Math.floor(J/65536),de=J-ne*65536,J=ce+ne+65535,ne=Math.floor(J/65536),ce=J-ne*65536,J=Ee+ne+65535,ne=Math.floor(J/65536),Ee=J-ne*65536,J=Me+ne+65535,ne=Math.floor(J/65536),Me=J-ne*65536,J=Be+ne+65535,ne=Math.floor(J/65536),Be=J-ne*65536,J=ze+ne+65535,ne=Math.floor(J/65536),ze=J-ne*65536,J=je+ne+65535,ne=Math.floor(J/65536),je=J-ne*65536,J=ye+ne+65535,ne=Math.floor(J/65536),ye=J-ne*65536,J=me+ne+65535,ne=Math.floor(J/65536),me=J-ne*65536,J=le+ne+65535,ne=Math.floor(J/65536),le=J-ne*65536,J=pe+ne+65535,ne=Math.floor(J/65536),pe=J-ne*65536,J=Ne+ne+65535,ne=Math.floor(J/65536),Ne=J-ne*65536,J=_e+ne+65535,ne=Math.floor(J/65536),_e=J-ne*65536,J=ue+ne+65535,ne=Math.floor(J/65536),ue=J-ne*65536,ie+=ne-1+37*(ne-1),ne=1,J=ie+ne+65535,ne=Math.floor(J/65536),ie=J-ne*65536,J=he+ne+65535,ne=Math.floor(J/65536),he=J-ne*65536,J=de+ne+65535,ne=Math.floor(J/65536),de=J-ne*65536,J=ce+ne+65535,ne=Math.floor(J/65536),ce=J-ne*65536,J=Ee+ne+65535,ne=Math.floor(J/65536),Ee=J-ne*65536,J=Me+ne+65535,ne=Math.floor(J/65536),Me=J-ne*65536,J=Be+ne+65535,ne=Math.floor(J/65536),Be=J-ne*65536,J=ze+ne+65535,ne=Math.floor(J/65536),ze=J-ne*65536,J=je+ne+65535,ne=Math.floor(J/65536),je=J-ne*65536,J=ye+ne+65535,ne=Math.floor(J/65536),ye=J-ne*65536,J=me+ne+65535,ne=Math.floor(J/65536),me=J-ne*65536,J=le+ne+65535,ne=Math.floor(J/65536),le=J-ne*65536,J=pe+ne+65535,ne=Math.floor(J/65536),pe=J-ne*65536,J=Ne+ne+65535,ne=Math.floor(J/65536),Ne=J-ne*65536,J=_e+ne+65535,ne=Math.floor(J/65536),_e=J-ne*65536,J=ue+ne+65535,ne=Math.floor(J/65536),ue=J-ne*65536,ie+=ne-1+37*(ne-1),ee[0]=ie,ee[1]=he,ee[2]=de,ee[3]=ce,ee[4]=Ee,ee[5]=Me,ee[6]=Be,ee[7]=ze,ee[8]=je,ee[9]=ye,ee[10]=me,ee[11]=le,ee[12]=pe,ee[13]=Ne,ee[14]=_e,ee[15]=ue}function R(ee,X){C(ee,X,X)}function k(ee,X){const te=a();let J;for(J=0;J<16;J++)te[J]=X[J];for(J=253;J>=0;J--)R(te,te),J!==2&&J!==4&&C(te,te,X);for(J=0;J<16;J++)ee[J]=te[J]}function P(ee,X){const te=a();let J;for(J=0;J<16;J++)te[J]=X[J];for(J=250;J>=0;J--)R(te,te),J!==1&&C(te,te,X);for(J=0;J<16;J++)ee[J]=te[J]}function N(ee,X){const te=a(),J=a(),ne=a(),ie=a(),he=a(),de=a(),ce=a(),Ee=a(),Me=a();_(te,ee[1],ee[0]),_(Me,X[1],X[0]),C(te,te,Me),w(J,ee[0],ee[1]),w(Me,X[0],X[1]),C(J,J,Me),C(ne,ee[3],X[3]),C(ne,ne,u),C(ie,ee[2],X[2]),w(ie,ie,ie),_(he,J,te),_(de,ie,ne),w(ce,ie,ne),w(Ee,J,te),C(ee[0],he,de),C(ee[1],Ee,ce),C(ee[2],ce,de),C(ee[3],he,Ee)}function L(ee,X,te){for(let J=0;J<4;J++)g(ee[J],X[J],te)}function I(ee,X){const te=a(),J=a(),ne=a();k(ne,X[2]),C(te,X[0],ne),C(J,X[1],ne),v(ee,J),ee[31]^=S(te)<<7}function b(ee,X,te){p(ee[0],s),p(ee[1],l),p(ee[2],l),p(ee[3],s);for(let J=255;J>=0;--J){const ne=te[J/8|0]>>(J&7)&1;L(ee,X,ne),N(X,ee),N(ee,ee),L(ee,X,ne)}}function T(ee,X){const te=[a(),a(),a(),a()];p(te[0],d),p(te[1],h),p(te[2],l),C(te[3],d,h),b(ee,te,X)}function M(ee){if(ee.length!==t.SEED_LENGTH)throw new Error(`ed25519: seed must be ${t.SEED_LENGTH} bytes`);const X=(0,n.hash)(ee);X[0]&=248,X[31]&=127,X[31]|=64;const te=new Uint8Array(32),J=[a(),a(),a(),a()];T(J,X),I(te,J);const ne=new Uint8Array(64);return ne.set(ee),ne.set(te,32),{publicKey:te,secretKey:ne}}t.generateKeyPairFromSeed=M;function D(ee){const X=(0,e.randomBytes)(32,ee),te=M(X);return(0,r.wipe)(X),te}t.generateKeyPair=D;function B(ee){if(ee.length!==t.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${t.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(ee.subarray(32))}t.extractPublicKeyFromSecretKey=B;const j=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function H(ee,X){let te,J,ne,ie;for(J=63;J>=32;--J){for(te=0,ne=J-32,ie=J-12;ne<ie;++ne)X[ne]+=te-16*X[J]*j[ne-(J-32)],te=Math.floor((X[ne]+128)/256),X[ne]-=te*256;X[ne]+=te,X[J]=0}for(te=0,ne=0;ne<32;ne++)X[ne]+=te-(X[31]>>4)*j[ne],te=X[ne]>>8,X[ne]&=255;for(ne=0;ne<32;ne++)X[ne]-=te*j[ne];for(J=0;J<32;J++)X[J+1]+=X[J]>>8,ee[J]=X[J]&255}function U(ee){const X=new Float64Array(64);for(let te=0;te<64;te++)X[te]=ee[te];for(let te=0;te<64;te++)ee[te]=0;H(ee,X)}function $(ee,X){const te=new Float64Array(64),J=[a(),a(),a(),a()],ne=(0,n.hash)(ee.subarray(0,32));ne[0]&=248,ne[31]&=127,ne[31]|=64;const ie=new Uint8Array(64);ie.set(ne.subarray(32),32);const he=new n.SHA512;he.update(ie.subarray(32)),he.update(X);const de=he.digest();he.clean(),U(de),T(J,de),I(ie,J),he.reset(),he.update(ie.subarray(0,32)),he.update(ee.subarray(32)),he.update(X);const ce=he.digest();U(ce);for(let Ee=0;Ee<32;Ee++)te[Ee]=de[Ee];for(let Ee=0;Ee<32;Ee++)for(let Me=0;Me<32;Me++)te[Ee+Me]+=ce[Ee]*ne[Me];return H(ie.subarray(32),te),ie}t.sign=$;function z(ee,X){const te=a(),J=a(),ne=a(),ie=a(),he=a(),de=a(),ce=a();return p(ee[2],l),x(ee[1],X),R(ne,ee[1]),C(ie,ne,c),_(ne,ne,ee[2]),w(ie,ee[2],ie),R(he,ie),R(de,he),C(ce,de,he),C(te,ce,ne),C(te,te,ie),P(te,te),C(te,te,ne),C(te,te,ie),C(te,te,ie),C(ee[0],te,ie),R(J,ee[0]),C(J,J,ie),y(J,ne)&&C(ee[0],ee[0],f),R(J,ee[0]),C(J,J,ie),y(J,ne)?-1:(S(ee[0])===X[31]>>7&&_(ee[0],s,ee[0]),C(ee[3],ee[0],ee[1]),0)}function Z(ee,X,te){const J=new Uint8Array(32),ne=[a(),a(),a(),a()],ie=[a(),a(),a(),a()];if(te.length!==t.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${t.SIGNATURE_LENGTH} bytes`);if(z(ie,ee))return!1;const he=new n.SHA512;he.update(te.subarray(0,32)),he.update(ee),he.update(X);const de=he.digest();return U(de),b(ne,ie,de),T(ie,te.subarray(32)),N(ne,ie),I(J,ne),!A(te,J)}t.verify=Z;function K(ee){let X=[a(),a(),a(),a()];if(z(X,ee))throw new Error("Ed25519: invalid public key");let te=a(),J=a(),ne=X[1];w(te,l,ne),_(J,l,ne),k(J,J),C(te,te,J);let ie=new Uint8Array(32);return v(ie,te),ie}t.convertPublicKeyToX25519=K;function Q(ee){const X=(0,n.hash)(ee.subarray(0,32));X[0]&=248,X[31]&=127,X[31]|=64;const te=new Uint8Array(X.subarray(0,32));return(0,r.wipe)(X),te}t.convertSecretKeyToX25519=Q})(yet);const VFr="EdDSA",KFr="JWT",AXt=".",yXt="base64url",WFr="utf8",QFr="utf8",qFr=":",YFr="did",JFr="key",r1t="base58btc",ZFr="z",XFr="K36",ejr=32;function U0e(t){return G0(YA(k6(t),WFr),yXt)}function bXt(t){const e=YA(XFr,r1t),n=ZFr+G0(FHe([e,t]),r1t);return[YFr,JFr,n].join(qFr)}function tjr(t){return G0(t,yXt)}function njr(t){return YA([U0e(t.header),U0e(t.payload)].join(AXt),QFr)}function rjr(t){return[U0e(t.header),U0e(t.payload),tjr(t.signature)].join(AXt)}function i1t(t=vG.randomBytes(ejr)){return yet.generateKeyPairFromSeed(t)}async function ijr(t,e,n,r,a=ha.fromMiliseconds(Date.now())){const o={alg:VFr,typ:KFr},s=bXt(r.publicKey),l=a+n,c={iss:s,sub:t,aud:e,iat:a,exp:l},u=njr({header:o,payload:c}),d=yet.sign(r.secretKey,u);return rjr({header:o,payload:c,signature:d})}const ajr="PARSE_ERROR",ojr="INVALID_REQUEST",sjr="METHOD_NOT_FOUND",ljr="INVALID_PARAMS",xXt="INTERNAL_ERROR",bet="SERVER_ERROR",cjr=[-32700,-32600,-32601,-32602,-32603],$X={[ajr]:{code:-32700,message:"Parse error"},[ojr]:{code:-32600,message:"Invalid Request"},[sjr]:{code:-32601,message:"Method not found"},[ljr]:{code:-32602,message:"Invalid params"},[xXt]:{code:-32603,message:"Internal error"},[bet]:{code:-32e3,message:"Server error"}},EXt=bet;function ujr(t){return cjr.includes(t)}function a1t(t){return Object.keys($X).includes(t)?$X[t]:$X[EXt]}function djr(t){const e=Object.values($X).find(n=>n.code===t);return e||$X[EXt]}function SXt(t,e,n){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${n} RPC url at ${e}`):t}var wXt={};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ZHe=function(t,e){return ZHe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},ZHe(t,e)};function hjr(t,e){ZHe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var XHe=function(){return XHe=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},XHe.apply(this,arguments)};function fjr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function pjr(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function mjr(t,e){return function(n,r){e(n,r,t)}}function gjr(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function vjr(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function Ajr(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function yjr(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}function bjr(t,e){for(var n in t)n!=="default"&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function eUe(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _Xt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function xjr(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_Xt(arguments[e]));return t}function Ejr(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,a++)r[a]=o[s];return r}function hne(t){return this instanceof hne?(this.v=t,this):new hne(t)}function Sjr(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,o=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(f){r[f]&&(a[f]=function(p){return new Promise(function(m,g){o.push([f,p,m,g])>1||l(f,p)})})}function l(f,p){try{c(r[f](p))}catch(m){h(o[0][3],m)}}function c(f){f.value instanceof hne?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function wjr(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,o){e[a]=t[a]?function(s){return(n=!n)?{value:hne(t[a](s)),done:a==="return"}:o?o(s):s}:o}}function _jr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof eUe=="function"?eUe(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(l,c){s=t[o](s),a(l,c,s.done,s.value)})}}function a(o,s,l,c){Promise.resolve(c).then(function(u){o({value:u,done:l})},s)}}function Tjr(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function Cjr(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function kjr(t){return t&&t.__esModule?t:{default:t}}function Rjr(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function Mjr(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}const Njr=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return XHe},__asyncDelegator:wjr,__asyncGenerator:Sjr,__asyncValues:_jr,__await:hne,__awaiter:vjr,__classPrivateFieldGet:Rjr,__classPrivateFieldSet:Mjr,__createBinding:yjr,__decorate:pjr,__exportStar:bjr,__extends:hjr,__generator:Ajr,__importDefault:kjr,__importStar:Cjr,__makeTemplateObject:Tjr,__metadata:gjr,__param:mjr,__read:_Xt,__rest:fjr,__spread:xjr,__spreadArrays:Ejr,__values:eUe},Symbol.toStringTag,{value:"Module"})),Ijr=Uu(Njr);var Sk={},o1t;function Pjr(){if(o1t)return Sk;o1t=1,Object.defineProperty(Sk,"__esModule",{value:!0}),Sk.isBrowserCryptoAvailable=Sk.getSubtleCrypto=Sk.getBrowerCrypto=void 0;function t(){return(en==null?void 0:en.crypto)||(en==null?void 0:en.msCrypto)||{}}Sk.getBrowerCrypto=t;function e(){const r=t();return r.subtle||r.webkitSubtle}Sk.getSubtleCrypto=e;function n(){return!!t()&&!!e()}return Sk.isBrowserCryptoAvailable=n,Sk}var wk={},s1t;function Ojr(){if(s1t)return wk;s1t=1,Object.defineProperty(wk,"__esModule",{value:!0}),wk.isBrowser=wk.isNode=wk.isReactNative=void 0;function t(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}wk.isReactNative=t;function e(){return typeof wa<"u"&&typeof wa.versions<"u"&&typeof wa.versions.node<"u"}wk.isNode=e;function n(){return!t()&&!e()}return wk.isBrowser=n,wk}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Ijr;e.__exportStar(Pjr(),t),e.__exportStar(Ojr(),t)})(wXt);function xet(t=3){const e=Date.now()*Math.pow(10,t),n=Math.floor(Math.random()*Math.pow(10,t));return e+n}function TXt(t=6){return BigInt(xet(t))}function zj(t,e,n){return{id:n||xet(),jsonrpc:"2.0",method:t,params:e}}function QEe(t,e){return{id:t,jsonrpc:"2.0",result:e}}function qEe(t,e,n){return{id:t,jsonrpc:"2.0",error:Ljr(e,n)}}function Ljr(t,e){return typeof t>"u"?a1t(xXt):(typeof t=="string"&&(t=Object.assign(Object.assign({},a1t(bet)),{message:t})),typeof e<"u"&&(t.data=e),ujr(t.code)&&(t=djr(t.code)),t)}let Bjr=class{},Djr=class extends Bjr{constructor(){super()}},$jr=class extends Djr{constructor(e){super()}};const Fjr="^https?:",jjr="^wss?:";function Hjr(t){const e=t.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function CXt(t,e){const n=Hjr(t);return typeof n>"u"?!1:new RegExp(e).test(n)}function l1t(t){return CXt(t,Fjr)}function c1t(t){return CXt(t,jjr)}function Ujr(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}function kXt(t){return typeof t=="object"&&"id"in t&&"jsonrpc"in t&&t.jsonrpc==="2.0"}function Eet(t){return kXt(t)&&"method"in t}function YEe(t){return kXt(t)&&(dR(t)||HS(t))}function dR(t){return"result"in t}function HS(t){return"error"in t}let tN=class extends $jr{constructor(e){super(e),this.events=new mg.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async request(e,n){return this.requestStrict(zj(e.method,e.params||[],e.id||TXt().toString()),n)}async requestStrict(e,n){return new Promise(async(r,a)=>{if(!this.connection.connected)try{await this.open()}catch(o){a(o)}this.events.on(`${e.id}`,o=>{HS(o)?a(o.error):r(o.result)});try{await this.connection.send(e,n)}catch(o){a(o)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),YEe(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};var q5e,u1t;function zjr(){return u1t||(u1t=1,q5e=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}),q5e}const Gjr=()=>typeof WebSocket<"u"?WebSocket:typeof Wa<"u"&&typeof Wa.WebSocket<"u"?Wa.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:zjr(),Vjr=()=>typeof WebSocket<"u"||typeof Wa<"u"&&typeof Wa.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",d1t=t=>t.split("?")[0],h1t=10,Kjr=Gjr();let Wjr=class{constructor(e){if(this.url=e,this.events=new mg.EventEmitter,this.registering=!1,!c1t(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,n)=>{if(typeof this.socket>"u"){n(new Error("Connection already closed"));return}this.socket.onclose=r=>{this.onClose(r),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(k6(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!c1t(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise((r,a)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),a(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));r(this.socket)})})}return this.url=e,this.registering=!0,new Promise((n,r)=>{const a=new URLSearchParams(e).get("origin"),o=wXt.isReactNative()?{headers:{origin:a}}:{rejectUnauthorized:!Ujr(e)},s=new Kjr(e,[],o);Vjr()?s.onerror=l=>{const c=l;r(this.emitError(c.error))}:s.on("error",l=>{r(this.emitError(l))}),s.onopen=()=>{this.onOpen(s),n(s)}})}onOpen(e){e.onmessage=n=>this.onPayload(n),e.onclose=n=>this.onClose(n),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const n=typeof e.data=="string"?xae(e.data):e.data;this.events.emit("payload",n)}onError(e,n){const r=this.parseError(n),a=r.message||r.toString(),o=qEe(e,a);this.events.emit("payload",o)}parseError(e,n=this.url){return SXt(e,d1t(n),"WS")}resetMaxListeners(){this.events.getMaxListeners()>h1t&&this.events.setMaxListeners(h1t)}emitError(e){const n=this.parseError(new Error((e==null?void 0:e.message)||`WebSocket connection failed for host: ${d1t(this.url)}`));return this.events.emit("register_error",n),n}};var z0e={exports:{}};z0e.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",A="[object Null]",y="[object Object]",S="[object Promise]",x="[object Proxy]",w="[object RegExp]",_="[object Set]",C="[object String]",R="[object Symbol]",k="[object Undefined]",P="[object WeakMap]",N="[object ArrayBuffer]",L="[object DataView]",I="[object Float32Array]",b="[object Float64Array]",T="[object Int8Array]",M="[object Int16Array]",D="[object Int32Array]",B="[object Uint8Array]",j="[object Uint8ClampedArray]",H="[object Uint16Array]",U="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,z=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,K={};K[I]=K[b]=K[T]=K[M]=K[D]=K[B]=K[j]=K[H]=K[U]=!0,K[l]=K[c]=K[N]=K[d]=K[L]=K[h]=K[f]=K[p]=K[g]=K[v]=K[y]=K[w]=K[_]=K[C]=K[P]=!1;var Q=typeof en=="object"&&en&&en.Object===Object&&en,ee=typeof self=="object"&&self&&self.Object===Object&&self,X=Q||ee||Function("return this")(),te=e&&!e.nodeType&&e,J=te&&!0&&t&&!t.nodeType&&t,ne=J&&J.exports===te,ie=ne&&Q.process,he=function(){try{return ie&&ie.binding&&ie.binding("util")}catch{}}(),de=he&&he.isTypedArray;function ce(it,zt){for(var Gn=-1,Br=it==null?0:it.length,dl=0,Ja=[];++Gn<Br;){var Pl=it[Gn];zt(Pl,Gn,it)&&(Ja[dl++]=Pl)}return Ja}function Ee(it,zt){for(var Gn=-1,Br=zt.length,dl=it.length;++Gn<Br;)it[dl+Gn]=zt[Gn];return it}function Me(it,zt){for(var Gn=-1,Br=it==null?0:it.length;++Gn<Br;)if(zt(it[Gn],Gn,it))return!0;return!1}function Be(it,zt){for(var Gn=-1,Br=Array(it);++Gn<it;)Br[Gn]=zt(Gn);return Br}function ze(it){return function(zt){return it(zt)}}function je(it,zt){return it.has(zt)}function ye(it,zt){return it==null?void 0:it[zt]}function me(it){var zt=-1,Gn=Array(it.size);return it.forEach(function(Br,dl){Gn[++zt]=[dl,Br]}),Gn}function le(it,zt){return function(Gn){return it(zt(Gn))}}function pe(it){var zt=-1,Gn=Array(it.size);return it.forEach(function(Br){Gn[++zt]=Br}),Gn}var Ne=Array.prototype,_e=Function.prototype,ue=Object.prototype,se=X["__core-js_shared__"],oe=_e.toString,ge=ue.hasOwnProperty,De=function(){var it=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return it?"Symbol(src)_1."+it:""}(),Fe=ue.toString,Se=RegExp("^"+oe.call(ge).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xe=ne?X.Buffer:void 0,Oe=X.Symbol,Ye=X.Uint8Array,mt=ue.propertyIsEnumerable,ut=Ne.splice,lt=Oe?Oe.toStringTag:void 0,pn=Object.getOwnPropertySymbols,sn=Xe?Xe.isBuffer:void 0,un=le(Object.keys,Object),ur=$a(X,"DataView"),dt=$a(X,"Map"),xt=$a(X,"Promise"),Cn=$a(X,"Set"),Kt=$a(X,"WeakMap"),rn=$a(Object,"create"),On=Sh(ur),an=Sh(dt),on=Sh(xt),dr=Sh(Cn),$e=Sh(Kt),qe=Oe?Oe.prototype:void 0,yt=qe?qe.valueOf:void 0;function Ze(it){var zt=-1,Gn=it==null?0:it.length;for(this.clear();++zt<Gn;){var Br=it[zt];this.set(Br[0],Br[1])}}function ot(){this.__data__=rn?rn(null):{},this.size=0}function yn(it){var zt=this.has(it)&&delete this.__data__[it];return this.size-=zt?1:0,zt}function vt(it){var zt=this.__data__;if(rn){var Gn=zt[it];return Gn===r?void 0:Gn}return ge.call(zt,it)?zt[it]:void 0}function Gt(it){var zt=this.__data__;return rn?zt[it]!==void 0:ge.call(zt,it)}function ft(it,zt){var Gn=this.__data__;return this.size+=this.has(it)?0:1,Gn[it]=rn&&zt===void 0?r:zt,this}Ze.prototype.clear=ot,Ze.prototype.delete=yn,Ze.prototype.get=vt,Ze.prototype.has=Gt,Ze.prototype.set=ft;function rt(it){var zt=-1,Gn=it==null?0:it.length;for(this.clear();++zt<Gn;){var Br=it[zt];this.set(Br[0],Br[1])}}function Pt(){this.__data__=[],this.size=0}function Yt(it){var zt=this.__data__,Gn=Je(zt,it);if(Gn<0)return!1;var Br=zt.length-1;return Gn==Br?zt.pop():ut.call(zt,Gn,1),--this.size,!0}function Un(it){var zt=this.__data__,Gn=Je(zt,it);return Gn<0?void 0:zt[Gn][1]}function jn(it){return Je(this.__data__,it)>-1}function br(it,zt){var Gn=this.__data__,Br=Je(Gn,it);return Br<0?(++this.size,Gn.push([it,zt])):Gn[Br][1]=zt,this}rt.prototype.clear=Pt,rt.prototype.delete=Yt,rt.prototype.get=Un,rt.prototype.has=jn,rt.prototype.set=br;function si(it){var zt=-1,Gn=it==null?0:it.length;for(this.clear();++zt<Gn;){var Br=it[zt];this.set(Br[0],Br[1])}}function Qi(){this.size=0,this.__data__={hash:new Ze,map:new(dt||rt),string:new Ze}}function st(it){var zt=hs(this,it).delete(it);return this.size-=zt?1:0,zt}function wt(it){return hs(this,it).get(it)}function Bt(it){return hs(this,it).has(it)}function dn(it,zt){var Gn=hs(this,it),Br=Gn.size;return Gn.set(it,zt),this.size+=Gn.size==Br?0:1,this}si.prototype.clear=Qi,si.prototype.delete=st,si.prototype.get=wt,si.prototype.has=Bt,si.prototype.set=dn;function tn(it){var zt=-1,Gn=it==null?0:it.length;for(this.__data__=new si;++zt<Gn;)this.add(it[zt])}function vn(it){return this.__data__.set(it,r),this}function kn(it){return this.__data__.has(it)}tn.prototype.add=tn.prototype.push=vn,tn.prototype.has=kn;function Mn(it){var zt=this.__data__=new rt(it);this.size=zt.size}function Nr(){this.__data__=new rt,this.size=0}function na(it){var zt=this.__data__,Gn=zt.delete(it);return this.size=zt.size,Gn}function Ar(it){return this.__data__.get(it)}function qi(it){return this.__data__.has(it)}function Ge(it,zt){var Gn=this.__data__;if(Gn instanceof rt){var Br=Gn.__data__;if(!dt||Br.length<n-1)return Br.push([it,zt]),this.size=++Gn.size,this;Gn=this.__data__=new si(Br)}return Gn.set(it,zt),this.size=Gn.size,this}Mn.prototype.clear=Nr,Mn.prototype.delete=na,Mn.prototype.get=Ar,Mn.prototype.has=qi,Mn.prototype.set=Ge;function ht(it,zt){var Gn=xg(it),Br=!Gn&&lA(it),dl=!Gn&&!Br&&fb(it),Ja=!Gn&&!Br&&!dl&&E1(it),Pl=Gn||Br||dl||Ja,Ts=Pl?Be(it.length,String):[],ma=Ts.length;for(var Cs in it)(zt||ge.call(it,Cs))&&!(Pl&&(Cs=="length"||dl&&(Cs=="offset"||Cs=="parent")||Ja&&(Cs=="buffer"||Cs=="byteLength"||Cs=="byteOffset")||b1(Cs,ma)))&&Ts.push(Cs);return Ts}function Je(it,zt){for(var Gn=it.length;Gn--;)if(LE(it[Gn][0],zt))return Gn;return-1}function Rt(it,zt,Gn){var Br=zt(it);return xg(it)?Br:Ee(Br,Gn(it))}function Dt(it){return it==null?it===void 0?k:A:lt&&lt in Object(it)?nd(it):hb(it)}function It(it){return Sg(it)&&Dt(it)==l}function ln(it,zt,Gn,Br,dl){return it===zt?!0:it==null||zt==null||!Sg(it)&&!Sg(zt)?it!==it&&zt!==zt:Hn(it,zt,Gn,Br,ln,dl)}function Hn(it,zt,Gn,Br,dl,Ja){var Pl=xg(it),Ts=xg(zt),ma=Pl?c:uf(it),Cs=Ts?c:uf(zt);ma=ma==l?y:ma,Cs=Cs==l?y:Cs;var Sl=ma==y,Yl=Cs==y,Jl=ma==Cs;if(Jl&&fb(it)){if(!fb(zt))return!1;Pl=!0,Sl=!1}if(Jl&&!Sl)return Ja||(Ja=new Mn),Pl||E1(it)?zr(it,zt,Gn,Br,dl,Ja):ua(it,zt,ma,Gn,Br,dl,Ja);if(!(Gn&a)){var Eo=Sl&&ge.call(it,"__wrapped__"),Jc=Yl&&ge.call(zt,"__wrapped__");if(Eo||Jc){var wh=Eo?it.value():it,Kd=Jc?zt.value():zt;return Ja||(Ja=new Mn),dl(wh,Kd,Gn,Br,Ja)}}return Jl?(Ja||(Ja=new Mn),Ta(it,zt,Gn,Br,dl,Ja)):!1}function Zn(it){if(!df(it)||sA(it))return!1;var zt=Eg(it)?Se:z;return zt.test(Sh(it))}function Jn(it){return Sg(it)&&pb(it.length)&&!!K[Dt(it)]}function Xn(it){if(!x1(it))return un(it);var zt=[];for(var Gn in Object(it))ge.call(it,Gn)&&Gn!="constructor"&&zt.push(Gn);return zt}function zr(it,zt,Gn,Br,dl,Ja){var Pl=Gn&a,Ts=it.length,ma=zt.length;if(Ts!=ma&&!(Pl&&ma>Ts))return!1;var Cs=Ja.get(it);if(Cs&&Ja.get(zt))return Cs==zt;var Sl=-1,Yl=!0,Jl=Gn&o?new tn:void 0;for(Ja.set(it,zt),Ja.set(zt,it);++Sl<Ts;){var Eo=it[Sl],Jc=zt[Sl];if(Br)var wh=Pl?Br(Jc,Eo,Sl,zt,it,Ja):Br(Eo,Jc,Sl,it,zt,Ja);if(wh!==void 0){if(wh)continue;Yl=!1;break}if(Jl){if(!Me(zt,function(Kd,Pp){if(!je(Jl,Pp)&&(Eo===Kd||dl(Eo,Kd,Gn,Br,Ja)))return Jl.push(Pp)})){Yl=!1;break}}else if(!(Eo===Jc||dl(Eo,Jc,Gn,Br,Ja))){Yl=!1;break}}return Ja.delete(it),Ja.delete(zt),Yl}function ua(it,zt,Gn,Br,dl,Ja,Pl){switch(Gn){case L:if(it.byteLength!=zt.byteLength||it.byteOffset!=zt.byteOffset)return!1;it=it.buffer,zt=zt.buffer;case N:return!(it.byteLength!=zt.byteLength||!Ja(new Ye(it),new Ye(zt)));case d:case h:case v:return LE(+it,+zt);case f:return it.name==zt.name&&it.message==zt.message;case w:case C:return it==zt+"";case g:var Ts=me;case _:var ma=Br&a;if(Ts||(Ts=pe),it.size!=zt.size&&!ma)return!1;var Cs=Pl.get(it);if(Cs)return Cs==zt;Br|=o,Pl.set(it,zt);var Sl=zr(Ts(it),Ts(zt),Br,dl,Ja,Pl);return Pl.delete(it),Sl;case R:if(yt)return yt.call(it)==yt.call(zt)}return!1}function Ta(it,zt,Gn,Br,dl,Ja){var Pl=Gn&a,Ts=Qa(it),ma=Ts.length,Cs=Qa(zt),Sl=Cs.length;if(ma!=Sl&&!Pl)return!1;for(var Yl=ma;Yl--;){var Jl=Ts[Yl];if(!(Pl?Jl in zt:ge.call(zt,Jl)))return!1}var Eo=Ja.get(it);if(Eo&&Ja.get(zt))return Eo==zt;var Jc=!0;Ja.set(it,zt),Ja.set(zt,it);for(var wh=Pl;++Yl<ma;){Jl=Ts[Yl];var Kd=it[Jl],Pp=zt[Jl];if(Br)var cA=Pl?Br(Pp,Kd,Jl,zt,it,Ja):Br(Kd,Pp,Jl,it,zt,Ja);if(!(cA===void 0?Kd===Pp||dl(Kd,Pp,Gn,Br,Ja):cA)){Jc=!1;break}wh||(wh=Jl=="constructor")}if(Jc&&!wh){var Hv=it.constructor,es=zt.constructor;Hv!=es&&"constructor"in it&&"constructor"in zt&&!(typeof Hv=="function"&&Hv instanceof Hv&&typeof es=="function"&&es instanceof es)&&(Jc=!1)}return Ja.delete(it),Ja.delete(zt),Jc}function Qa(it){return Rt(it,jv,wm)}function hs(it,zt){var Gn=it.__data__;return _m(zt)?Gn[typeof zt=="string"?"string":"hash"]:Gn.map}function $a(it,zt){var Gn=ye(it,zt);return Zn(Gn)?Gn:void 0}function nd(it){var zt=ge.call(it,lt),Gn=it[lt];try{it[lt]=void 0;var Br=!0}catch{}var dl=Fe.call(it);return Br&&(zt?it[lt]=Gn:delete it[lt]),dl}var wm=pn?function(it){return it==null?[]:(it=Object(it),ce(pn(it),function(zt){return mt.call(it,zt)}))}:li,uf=Dt;(ur&&uf(new ur(new ArrayBuffer(1)))!=L||dt&&uf(new dt)!=g||xt&&uf(xt.resolve())!=S||Cn&&uf(new Cn)!=_||Kt&&uf(new Kt)!=P)&&(uf=function(it){var zt=Dt(it),Gn=zt==y?it.constructor:void 0,Br=Gn?Sh(Gn):"";if(Br)switch(Br){case On:return L;case an:return g;case on:return S;case dr:return _;case $e:return P}return zt});function b1(it,zt){return zt=zt??s,!!zt&&(typeof it=="number"||Z.test(it))&&it>-1&&it%1==0&&it<zt}function _m(it){var zt=typeof it;return zt=="string"||zt=="number"||zt=="symbol"||zt=="boolean"?it!=="__proto__":it===null}function sA(it){return!!De&&De in it}function x1(it){var zt=it&&it.constructor,Gn=typeof zt=="function"&&zt.prototype||ue;return it===Gn}function hb(it){return Fe.call(it)}function Sh(it){if(it!=null){try{return oe.call(it)}catch{}try{return it+""}catch{}}return""}function LE(it,zt){return it===zt||it!==it&&zt!==zt}var lA=It(function(){return arguments}())?It:function(it){return Sg(it)&&ge.call(it,"callee")&&!mt.call(it,"callee")},xg=Array.isArray;function Fv(it){return it!=null&&pb(it.length)&&!Eg(it)}var fb=sn||ea;function BE(it,zt){return ln(it,zt)}function Eg(it){if(!df(it))return!1;var zt=Dt(it);return zt==p||zt==m||zt==u||zt==x}function pb(it){return typeof it=="number"&&it>-1&&it%1==0&&it<=s}function df(it){var zt=typeof it;return it!=null&&(zt=="object"||zt=="function")}function Sg(it){return it!=null&&typeof it=="object"}var E1=de?ze(de):Jn;function jv(it){return Fv(it)?ht(it):Xn(it)}function li(){return[]}function ea(){return!1}t.exports=BE})(z0e,z0e.exports);var wet=z0e.exports;const Qjr=Li(wet);function qjr(t,e){return e=e||{},new Promise(function(n,r){var a=new XMLHttpRequest,o=[],s=[],l={},c=function(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:c,headers:{keys:function(){return o},entries:function(){return s},get:function(d){return l[d.toLowerCase()]},has:function(d){return d.toLowerCase()in l}}}};for(var u in a.open(e.method||"get",t,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(d,h,f){o.push(h=h.toLowerCase()),s.push([h,f]),l[h]=l[h]?l[h]+","+f:f}),n(c())},a.onerror=r,a.withCredentials=e.credentials=="include",e.headers)a.setRequestHeader(u,e.headers[u]);a.send(e.body||null)})}const Yjr=Object.freeze(Object.defineProperty({__proto__:null,default:qjr},Symbol.toStringTag,{value:"Module"})),f1t=Uu(Yjr);var Jjr=self.fetch||(self.fetch=f1t.default||f1t);const Zjr=Li(Jjr);function Xjr(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var a=0;a<t.length;a++){var o=t.charAt(a),s=o.charCodeAt(0);if(n[s]!==255)throw new TypeError(o+" is ambiguous");n[s]=a}var l=t.length,c=t.charAt(0),u=Math.log(l)/Math.log(256),d=Math.log(256)/Math.log(l);function h(m){if(m instanceof Uint8Array||(ArrayBuffer.isView(m)?m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength):Array.isArray(m)&&(m=Uint8Array.from(m))),!(m instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(m.length===0)return"";for(var g=0,v=0,A=0,y=m.length;A!==y&&m[A]===0;)A++,g++;for(var S=(y-A)*d+1>>>0,x=new Uint8Array(S);A!==y;){for(var w=m[A],_=0,C=S-1;(w!==0||_<v)&&C!==-1;C--,_++)w+=256*x[C]>>>0,x[C]=w%l>>>0,w=w/l>>>0;if(w!==0)throw new Error("Non-zero carry");v=_,A++}for(var R=S-v;R!==S&&x[R]===0;)R++;for(var k=c.repeat(g);R<S;++R)k+=t.charAt(x[R]);return k}function f(m){if(typeof m!="string")throw new TypeError("Expected String");if(m.length===0)return new Uint8Array;var g=0;if(m[g]!==" "){for(var v=0,A=0;m[g]===c;)v++,g++;for(var y=(m.length-g)*u+1>>>0,S=new Uint8Array(y);m[g];){var x=n[m.charCodeAt(g)];if(x===255)return;for(var w=0,_=y-1;(x!==0||w<A)&&_!==-1;_--,w++)x+=l*S[_]>>>0,S[_]=x%256>>>0,x=x/256>>>0;if(x!==0)throw new Error("Non-zero carry");A=w,g++}if(m[g]!==" "){for(var C=y-A;C!==y&&S[C]===0;)C++;for(var R=new Uint8Array(v+(y-C)),k=v;C!==y;)R[k++]=S[C++];return R}}}function p(m){var g=f(m);if(g)return g;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:p}}var eHr=Xjr,tHr=eHr;const RXt=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},nHr=t=>new TextEncoder().encode(t),rHr=t=>new TextDecoder().decode(t);class iHr{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}let aHr=class{constructor(e,n,r){if(this.name=e,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return MXt(this,e)}};class oHr{constructor(e){this.decoders=e}or(e){return MXt(this,e)}decode(e){const n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const MXt=(t,e)=>new oHr({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});let sHr=class{constructor(e,n,r,a){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=a,this.encoder=new iHr(e,n,r),this.decoder=new aHr(e,n,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};const JEe=({name:t,prefix:e,encode:n,decode:r})=>new sHr(t,e,n,r),Sae=({prefix:t,name:e,alphabet:n})=>{const{encode:r,decode:a}=tHr(n,e);return JEe({prefix:t,name:e,encode:r,decode:o=>RXt(a(o))})},lHr=(t,e,n,r)=>{const a={};for(let d=0;d<e.length;++d)a[e[d]]=d;let o=t.length;for(;t[o-1]==="=";)--o;const s=new Uint8Array(o*n/8|0);let l=0,c=0,u=0;for(let d=0;d<o;++d){const h=a[t[d]];if(h===void 0)throw new SyntaxError(`Non-${r} character`);c=c<<n|h,l+=n,l>=8&&(l-=8,s[u++]=255&c>>l)}if(l>=n||255&c<<8-l)throw new SyntaxError("Unexpected end of data");return s},cHr=(t,e,n)=>{const r=e[e.length-1]==="=",a=(1<<n)-1;let o="",s=0,l=0;for(let c=0;c<t.length;++c)for(l=l<<8|t[c],s+=8;s>n;)s-=n,o+=e[a&l>>s];if(s&&(o+=e[a&l<<n-s]),r)for(;o.length*n&7;)o+="=";return o},vg=({name:t,prefix:e,bitsPerChar:n,alphabet:r})=>JEe({prefix:e,name:t,encode(a){return cHr(a,r,n)},decode(a){return lHr(a,r,n,t)}}),uHr=JEe({prefix:"\0",name:"identity",encode:t=>rHr(t),decode:t=>nHr(t)});var dHr=Object.freeze({__proto__:null,identity:uHr});const hHr=vg({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var fHr=Object.freeze({__proto__:null,base2:hHr});const pHr=vg({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var mHr=Object.freeze({__proto__:null,base8:pHr});const gHr=Sae({prefix:"9",name:"base10",alphabet:"0123456789"});var vHr=Object.freeze({__proto__:null,base10:gHr});const AHr=vg({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),yHr=vg({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var bHr=Object.freeze({__proto__:null,base16:AHr,base16upper:yHr});const xHr=vg({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),EHr=vg({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),SHr=vg({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),wHr=vg({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),_Hr=vg({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),THr=vg({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),CHr=vg({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),kHr=vg({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),RHr=vg({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var MHr=Object.freeze({__proto__:null,base32:xHr,base32upper:EHr,base32pad:SHr,base32padupper:wHr,base32hex:_Hr,base32hexupper:THr,base32hexpad:CHr,base32hexpadupper:kHr,base32z:RHr});const NHr=Sae({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),IHr=Sae({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var PHr=Object.freeze({__proto__:null,base36:NHr,base36upper:IHr});const OHr=Sae({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),LHr=Sae({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var BHr=Object.freeze({__proto__:null,base58btc:OHr,base58flickr:LHr});const DHr=vg({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),$Hr=vg({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),FHr=vg({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),jHr=vg({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var HHr=Object.freeze({__proto__:null,base64:DHr,base64pad:$Hr,base64url:FHr,base64urlpad:jHr});const NXt=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),UHr=NXt.reduce((t,e,n)=>(t[n]=e,t),[]),zHr=NXt.reduce((t,e,n)=>(t[e.codePointAt(0)]=n,t),[]);function GHr(t){return t.reduce((e,n)=>(e+=UHr[n],e),"")}function VHr(t){const e=[];for(const n of t){const r=zHr[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);e.push(r)}return new Uint8Array(e)}const KHr=JEe({prefix:"🚀",name:"base256emoji",encode:GHr,decode:VHr});var WHr=Object.freeze({__proto__:null,base256emoji:KHr}),QHr=IXt,p1t=128,qHr=127,YHr=~qHr,JHr=Math.pow(2,31);function IXt(t,e,n){e=e||[],n=n||0;for(var r=n;t>=JHr;)e[n++]=t&255|p1t,t/=128;for(;t&YHr;)e[n++]=t&255|p1t,t>>>=7;return e[n]=t|0,IXt.bytes=n-r+1,e}var ZHr=tUe,XHr=128,m1t=127;function tUe(t,r){var n=0,r=r||0,a=0,o=r,s,l=t.length;do{if(o>=l)throw tUe.bytes=0,new RangeError("Could not decode varint");s=t[o++],n+=a<28?(s&m1t)<<a:(s&m1t)*Math.pow(2,a),a+=7}while(s>=XHr);return tUe.bytes=o-r,n}var eUr=Math.pow(2,7),tUr=Math.pow(2,14),nUr=Math.pow(2,21),rUr=Math.pow(2,28),iUr=Math.pow(2,35),aUr=Math.pow(2,42),oUr=Math.pow(2,49),sUr=Math.pow(2,56),lUr=Math.pow(2,63),cUr=function(t){return t<eUr?1:t<tUr?2:t<nUr?3:t<rUr?4:t<iUr?5:t<aUr?6:t<oUr?7:t<sUr?8:t<lUr?9:10},uUr={encode:QHr,decode:ZHr,encodingLength:cUr},PXt=uUr;const g1t=(t,e,n=0)=>(PXt.encode(t,e,n),e),v1t=t=>PXt.encodingLength(t),nUe=(t,e)=>{const n=e.byteLength,r=v1t(t),a=r+v1t(n),o=new Uint8Array(a+n);return g1t(t,o,0),g1t(n,o,r),o.set(e,a),new dUr(t,n,e,o)};class dUr{constructor(e,n,r,a){this.code=e,this.size=n,this.digest=r,this.bytes=a}}const OXt=({name:t,code:e,encode:n})=>new hUr(t,e,n);let hUr=class{constructor(e,n,r){this.name=e,this.code=n,this.encode=r}digest(e){if(e instanceof Uint8Array){const n=this.encode(e);return n instanceof Uint8Array?nUe(this.code,n):n.then(r=>nUe(this.code,r))}else throw Error("Unknown type, must be binary type")}};const LXt=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),fUr=OXt({name:"sha2-256",code:18,encode:LXt("SHA-256")}),pUr=OXt({name:"sha2-512",code:19,encode:LXt("SHA-512")});var mUr=Object.freeze({__proto__:null,sha256:fUr,sha512:pUr});const BXt=0,gUr="identity",DXt=RXt,vUr=t=>nUe(BXt,DXt(t)),AUr={code:BXt,name:gUr,encode:DXt,digest:vUr};var yUr=Object.freeze({__proto__:null,identity:AUr});new TextEncoder,new TextDecoder;const A1t={...dHr,...fHr,...mHr,...vHr,...bHr,...MHr,...PHr,...BHr,...HHr,...WHr};({...mUr,...yUr});function $Xt(t){return globalThis.Buffer!=null?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function bUr(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?$Xt(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}function FXt(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}const y1t=FXt("utf8","u",t=>"u"+new TextDecoder("utf8").decode(t),t=>new TextEncoder().encode(t.substring(1))),Y5e=FXt("ascii","a",t=>{let e="a";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},t=>{t=t.substring(1);const e=bUr(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}),xUr={utf8:y1t,"utf-8":y1t,hex:A1t.base16,latin1:Y5e,ascii:Y5e,binary:Y5e,...A1t};function EUr(t,e="utf8"){const n=xUr[e];if(!n)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?$Xt(globalThis.Buffer.from(t,"utf-8")):n.decoder.decode(`${n.prefix}${t}`)}const jXt="wc",SUr=2,_et="core",iP=`${jXt}@2:${_et}:`,wUr={name:_et,logger:"error"},_Ur={database:":memory:"},TUr="crypto",b1t="client_ed25519_seed",CUr=ha.ONE_DAY,kUr="keychain",RUr="0.3",MUr="messages",NUr="0.3",IUr=ha.SIX_HOURS,PUr="publisher",HXt="irn",OUr="error",UXt="wss://relay.walletconnect.com",x1t="wss://relay.walletconnect.org",LUr="relayer",av={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},BUr="_subscription",_k={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},DUr=ha.ONE_SECOND,$Ur="2.11.0",FUr=1e4,jUr="0.3",HUr="WALLETCONNECT_CLIENT_ID",DS={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},UUr="subscription",zUr="0.3",GUr=ha.FIVE_SECONDS*1e3,VUr="pairing",KUr="0.3",MQ={wc_pairingDelete:{req:{ttl:ha.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:ha.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:ha.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:ha.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:ha.ONE_DAY,prompt:!1,tag:0},res:{ttl:ha.ONE_DAY,prompt:!1,tag:0}}},lZ={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},B_={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},WUr="history",QUr="0.3",qUr="expirer",Wb={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},YUr="0.3",J5e="verify-api",GF="https://verify.walletconnect.com",rUe="https://verify.walletconnect.org",JUr=[GF,rUe],ZUr="echo",XUr="https://echo.walletconnect.com";let ezr=class{constructor(e,n){this.core=e,this.logger=n,this.keychain=new Map,this.name=kUr,this.version=RUr,this.initialized=!1,this.storagePrefix=iP,this.init=async()=>{if(!this.initialized){const r=await this.getKeyChain();typeof r<"u"&&(this.keychain=r),this.initialized=!0}},this.has=r=>(this.isInitialized(),this.keychain.has(r)),this.set=async(r,a)=>{this.isInitialized(),this.keychain.set(r,a),await this.persist()},this.get=r=>{this.isInitialized();const a=this.keychain.get(r);if(typeof a>"u"){const{message:o}=Yr("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(o)}return a},this.del=async r=>{this.isInitialized(),this.keychain.delete(r),await this.persist()},this.core=e,this.logger=p1(n,this.name)}get context(){return f1(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,iXt(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?aXt(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}},tzr=class{constructor(e,n,r){this.core=e,this.logger=n,this.name=TUr,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();const a=await this.getClientSeed(),o=i1t(a);return bXt(o.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const a=V9r();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();const o=await this.getClientSeed(),s=i1t(o),l=VHe();return await ijr(l,a,CUr,s)},this.generateSharedKey=(a,o,s)=>{this.isInitialized();const l=this.getPrivateKey(a),c=K9r(l,o);return this.setSymKey(c,s)},this.setSymKey=async(a,o)=>{this.isInitialized();const s=o||W9r(a);return await this.keychain.set(s,a),s},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,o,s)=>{this.isInitialized();const l=rXt(s),c=k6(o);if(PAt(l)){const f=l.senderPublicKey,p=l.receiverPublicKey;a=await this.generateSharedKey(f,p)}const u=this.getSymKey(a),{type:d,senderPublicKey:h}=l;return q9r({type:d,symKey:u,message:c,senderPublicKey:h})},this.decode=async(a,o,s)=>{this.isInitialized();const l=Z9r(o,s);if(PAt(l)){const c=l.receiverPublicKey,u=l.senderPublicKey;a=await this.generateSharedKey(c,u)}try{const c=this.getSymKey(a),u=Y9r({symKey:c,encoded:o});return xae(u)}catch(c){this.logger.error(`Failed to decode message from topic: '${a}', clientId: '${await this.getClientId()}'`),this.logger.error(c)}},this.getPayloadType=a=>{const o=j0e(a);return Aae(o.type)},this.getPayloadSenderPublicKey=a=>{const o=j0e(a);return o.senderPublicKey?G0(o.senderPublicKey,$0):void 0},this.core=e,this.logger=p1(n,this.name),this.keychain=r||new ezr(this.core,this.logger)}get context(){return f1(this.logger)}async setPrivateKey(e,n){return await this.keychain.set(e,n),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(b1t)}catch{e=VHe(),await this.keychain.set(b1t,e)}return EUr(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}},nzr=class extends LFr{constructor(e,n){super(e,n),this.logger=e,this.core=n,this.messages=new Map,this.name=MUr,this.version=NUr,this.initialized=!1,this.storagePrefix=iP,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const r=await this.getRelayerMessages();typeof r<"u"&&(this.messages=r),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(r){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(r)}finally{this.initialized=!0}}},this.set=async(r,a)=>{this.isInitialized();const o=Hj(a);let s=this.messages.get(r);return typeof s>"u"&&(s={}),typeof s[o]<"u"||(s[o]=a,this.messages.set(r,s),await this.persist()),o},this.get=r=>{this.isInitialized();let a=this.messages.get(r);return typeof a>"u"&&(a={}),a},this.has=(r,a)=>{this.isInitialized();const o=this.get(r),s=Hj(a);return typeof o[s]<"u"},this.del=async r=>{this.isInitialized(),this.messages.delete(r),await this.persist()},this.logger=p1(e,this.name),this.core=n}get context(){return f1(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,iXt(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?aXt(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}};class rzr extends BFr{constructor(e,n){super(e,n),this.relayer=e,this.logger=n,this.events=new mg.EventEmitter,this.name=PUr,this.queue=new Map,this.publishTimeout=ha.toMiliseconds(ha.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(r,a,o)=>{var s;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:r,message:a,opts:o}});try{const l=(o==null?void 0:o.ttl)||IUr,c=KHe(o),u=(o==null?void 0:o.prompt)||!1,d=(o==null?void 0:o.tag)||0,h=(o==null?void 0:o.id)||TXt().toString(),f={topic:r,message:a,opts:{ttl:l,relay:c,prompt:u,tag:d,id:h}},p=setTimeout(()=>this.queue.set(h,f),this.publishTimeout);try{await await lne(this.rpcPublish(r,a,l,c,u,d,h),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(h),this.relayer.events.emit(av.publish,f)}catch(m){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,(s=o==null?void 0:o.internal)!=null&&s.throwOnFailedPublish)throw this.removeRequestFromQueue(h),m;return}finally{clearTimeout(p)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:r,message:a,opts:o}})}catch(l){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(l),l}},this.on=(r,a)=>{this.events.on(r,a)},this.once=(r,a)=>{this.events.once(r,a)},this.off=(r,a)=>{this.events.off(r,a)},this.removeListener=(r,a)=>{this.events.removeListener(r,a)},this.relayer=e,this.logger=p1(n,this.name),this.registerEventListeners()}get context(){return f1(this.logger)}rpcPublish(e,n,r,a,o,s,l){var c,u,d,h;const f={method:cme(a.protocol).publish,params:{topic:e,message:n,ttl:r,prompt:o,tag:s},id:l};return C0((c=f.params)==null?void 0:c.prompt)&&((u=f.params)==null||delete u.prompt),C0((d=f.params)==null?void 0:d.tag)&&((h=f.params)==null||delete h.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:f}),this.relayer.request(f)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{const{topic:n,message:r,opts:a}=e;await this.publish(n,r,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(EG.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(av.connection_stalled);return}this.checkQueue()}),this.relayer.on(av.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class izr{constructor(){this.map=new Map,this.set=(e,n)=>{const r=this.get(e);this.exists(e,n)||this.map.set(e,[...r,n])},this.get=e=>this.map.get(e)||[],this.exists=(e,n)=>this.get(e).includes(n),this.delete=(e,n)=>{if(typeof n>"u"){this.map.delete(e);return}if(!this.map.has(e))return;const r=this.get(e);if(!this.exists(e,n))return;const a=r.filter(o=>o!==n);if(!a.length){this.map.delete(e);return}this.map.set(e,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var azr=Object.defineProperty,ozr=Object.defineProperties,szr=Object.getOwnPropertyDescriptors,E1t=Object.getOwnPropertySymbols,lzr=Object.prototype.hasOwnProperty,czr=Object.prototype.propertyIsEnumerable,S1t=(t,e,n)=>e in t?azr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,NQ=(t,e)=>{for(var n in e||(e={}))lzr.call(e,n)&&S1t(t,n,e[n]);if(E1t)for(var n of E1t(e))czr.call(e,n)&&S1t(t,n,e[n]);return t},Z5e=(t,e)=>ozr(t,szr(e));let uzr=class extends FFr{constructor(e,n){super(e,n),this.relayer=e,this.logger=n,this.subscriptions=new Map,this.topicMap=new izr,this.events=new mg.EventEmitter,this.name=UUr,this.version=zUr,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=iP,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(r,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:r,opts:a}});try{const o=KHe(a),s={topic:r,relay:o};this.pending.set(r,s);const l=await this.rpcSubscribe(r,o);return this.onSubscribe(l,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:r,opts:a}}),l}catch(o){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(o),o}},this.unsubscribe=async(r,a)=>{await this.restartToComplete(),this.isInitialized(),typeof(a==null?void 0:a.id)<"u"?await this.unsubscribeById(r,a.id,a):await this.unsubscribeByTopic(r,a)},this.isSubscribed=async r=>this.topics.includes(r)?!0:await new Promise((a,o)=>{const s=new ha.Watch;s.start(this.pendingSubscriptionWatchLabel);const l=setInterval(()=>{!this.pending.has(r)&&this.topics.includes(r)&&(clearInterval(l),s.stop(this.pendingSubscriptionWatchLabel),a(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=GUr&&(clearInterval(l),s.stop(this.pendingSubscriptionWatchLabel),o(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(r,a)=>{this.events.on(r,a)},this.once=(r,a)=>{this.events.once(r,a)},this.off=(r,a)=>{this.events.off(r,a)},this.removeListener=(r,a)=>{this.events.removeListener(r,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=p1(n,this.name),this.clientId=""}get context(){return f1(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,n){let r=!1;try{r=this.getSubscription(e).topic===n}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,n){const r=this.topicMap.get(e);await Promise.all(r.map(async a=>await this.unsubscribeById(e,a,n)))}async unsubscribeById(e,n,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:n,opts:r}});try{const a=KHe(r);await this.rpcUnsubscribe(e,n,a);const o=ch("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,n,o),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:n,opts:r}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(e,n){const r={method:cme(n.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{await await lne(this.relayer.request(r),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(av.connection_stalled)}return Hj(e+this.clientId)}async rpcBatchSubscribe(e){if(!e.length)return;const n=e[0].relay,r={method:cme(n.protocol).batchSubscribe,params:{topics:e.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await await lne(this.relayer.request(r),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(av.connection_stalled)}}rpcUnsubscribe(e,n,r){const a={method:cme(r.protocol).unsubscribe,params:{topic:e,id:n}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(e,n){this.setSubscription(e,Z5e(NQ({},n),{id:e})),this.pending.delete(n.topic)}onBatchSubscribe(e){e.length&&e.forEach(n=>{this.setSubscription(n.id,NQ({},n)),this.pending.delete(n.topic)})}async onUnsubscribe(e,n,r){this.events.removeAllListeners(n),this.hasSubscription(n,e)&&this.deleteSubscription(n,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,n){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:n}),this.addSubscription(e,n))}addSubscription(e,n){this.subscriptions.set(e,NQ({},n)),this.topicMap.set(n.topic,e),this.events.emit(DS.created,n)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const n=this.subscriptions.get(e);if(!n){const{message:r}=Yr("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(r)}return n}deleteSubscription(e,n){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:n});const r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(DS.deleted,Z5e(NQ({},r),{reason:n}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(DS.sync)}async reset(){if(this.cached.length){const e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let n=0;n<e;n++){const r=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchSubscribe(r)}}this.events.emit(DS.resubscribed)}async restore(){try{const e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size){const{message:n}=Yr("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;const n=await this.rpcBatchSubscribe(e);W2(n)&&this.onBatchSubscribe(n.map((r,a)=>Z5e(NQ({},e[a]),{id:r})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const e=[];this.pending.forEach(n=>{e.push(n)}),await this.batchSubscribe(e)}registerEventListeners(){this.relayer.core.heartbeat.on(EG.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(av.connect,async()=>{await this.onConnect()}),this.relayer.on(av.disconnect,()=>{this.onDisconnect()}),this.events.on(DS.created,async e=>{const n=DS.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),await this.persist()}),this.events.on(DS.deleted,async e=>{const n=DS.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{const n=setInterval(()=>{this.restartInProgress||(clearInterval(n),e())},this.pollingInterval)})}};var dzr=Object.defineProperty,w1t=Object.getOwnPropertySymbols,hzr=Object.prototype.hasOwnProperty,fzr=Object.prototype.propertyIsEnumerable,_1t=(t,e,n)=>e in t?dzr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pzr=(t,e)=>{for(var n in e||(e={}))hzr.call(e,n)&&_1t(t,n,e[n]);if(w1t)for(var n of w1t(e))fzr.call(e,n)&&_1t(t,n,e[n]);return t};let mzr=class extends DFr{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new mg.EventEmitter,this.name=LUr,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async n=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(n)}catch(r){throw this.logger.debug("Failed to Publish Request"),this.logger.error(r),r}},this.onPayloadHandler=n=>{this.onProviderPayload(n)},this.onConnectHandler=()=>{this.events.emit(av.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=n=>{this.logger.error(n),this.events.emit(av.error,n),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(_k.payload,this.onPayloadHandler),this.provider.on(_k.connect,this.onConnectHandler),this.provider.on(_k.disconnect,this.onDisconnectHandler),this.provider.on(_k.error,this.onProviderErrorHandler)},this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?p1(e.logger,this.name):KEe(WEe({level:e.logger||OUr})),this.messages=new nzr(this.logger,e.core),this.subscriber=new uzr(this,this.logger),this.publisher=new rzr(this,this.logger),this.relayUrl=(e==null?void 0:e.relayUrl)||UXt,this.projectId=e.projectId,this.bundleId=i$r(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${x1t}...`),await this.restartTransport(x1t)}this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},FUr)}get context(){return f1(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,n,r){this.isInitialized(),await this.publisher.publish(e,n,r),await this.recordMessageEvent({topic:e,message:n,publishedAt:Date.now()})}async subscribe(e,n){var r;this.isInitialized();let a=((r=this.subscriber.topicMap.get(e))==null?void 0:r[0])||"";if(a)return a;let o;const s=l=>{l.topic===e&&(this.subscriber.off(DS.created,s),o())};return await Promise.all([new Promise(l=>{o=l,this.subscriber.on(DS.created,s)}),new Promise(async l=>{a=await this.subscriber.subscribe(e,n),l()})]),a}async unsubscribe(e,n){this.isInitialized(),await this.subscriber.unsubscribe(e,n)}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await lne(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(e){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(n=>{if(!this.initialized)return n();this.subscriber.once(DS.resubscribed,()=>{n()})}),new Promise(async(n,r)=>{try{await lne(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(a){r(a);return}n()})])}catch(n){this.logger.error(n);const r=n;if(!this.isConnectionStalled(r.message))throw n;this.provider.events.emit(_k.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(e){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await GAt())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(e){return this.staleConnectionErrors.some(n=>e.includes(n))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new tN(new Wjr(u$r({sdkVersion:$Ur,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){const{topic:n,message:r}=e;await this.messages.set(n,r)}async shouldIgnoreMessageEvent(e){const{topic:n,message:r}=e;if(!r||r.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(n))return this.logger.debug(`Ignoring message for non-subscribed topic ${n}`),!0;const a=this.messages.has(n,r);return a&&this.logger.debug(`Ignoring duplicate message: ${r}`),a}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),Eet(e)){if(!e.method.endsWith(BUr))return;const n=e.params,{topic:r,message:a,publishedAt:o}=n.data,s={topic:r,message:a,publishedAt:o};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(pzr({type:"event",event:n.id},s)),this.events.emit(n.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}else YEe(e)&&this.events.emit(av.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(av.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const n=QEe(e.id,!0);await this.provider.connection.send(n)}unregisterProviderListeners(){this.provider.off(_k.payload,this.onPayloadHandler),this.provider.off(_k.connect,this.onConnectHandler),this.provider.off(_k.disconnect,this.onDisconnectHandler),this.provider.off(_k.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(av.connection_stalled,()=>{this.restartTransport().catch(n=>this.logger.error(n))});let e=await GAt();n7r(async n=>{this.initialized&&e!==n&&(e=n,n?await this.restartTransport().catch(r=>this.logger.error(r)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(r=>this.logger.error(r))))})}onProviderDisconnect(){this.events.emit(av.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(e=>this.logger.error(e))},ha.toMiliseconds(DUr)))}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(e=>{const n=setInterval(()=>{this.connected&&(clearInterval(n),e())},this.connectionStatusPollingInterval)});await this.restartTransport()}}};var gzr=Object.defineProperty,T1t=Object.getOwnPropertySymbols,vzr=Object.prototype.hasOwnProperty,Azr=Object.prototype.propertyIsEnumerable,C1t=(t,e,n)=>e in t?gzr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k1t=(t,e)=>{for(var n in e||(e={}))vzr.call(e,n)&&C1t(t,n,e[n]);if(T1t)for(var n of T1t(e))Azr.call(e,n)&&C1t(t,n,e[n]);return t};let ZEe=class extends $Fr{constructor(e,n,r,a=iP,o=void 0){super(e,n,r,a),this.core=e,this.logger=n,this.name=r,this.map=new Map,this.version=jUr,this.cached=[],this.initialized=!1,this.storagePrefix=iP,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{this.getKey&&s!==null&&!C0(s)?this.map.set(this.getKey(s),s):P$r(s)?this.map.set(s.id,s):O$r(s)&&this.map.set(s.topic,s)}),this.cached=[],this.initialized=!0)},this.set=async(s,l)=>{this.isInitialized(),this.map.has(s)?await this.update(s,l):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:l}),this.map.set(s,l),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(l=>Object.keys(s).every(c=>Qjr(l[c],s[c]))):this.values),this.update=async(s,l)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:l});const c=k1t(k1t({},this.getData(s)),l);this.map.set(s,c),await this.persist()},this.delete=async(s,l)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:l}),this.map.delete(s),await this.persist())},this.logger=p1(n,this.name),this.storagePrefix=a,this.getKey=o}get context(){return f1(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const n=this.map.get(e);if(!n){const{message:r}=Yr("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(r),new Error(r)}return n}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:n}=Yr("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}},yzr=class{constructor(e,n){this.core=e,this.logger=n,this.name=VUr,this.version=KUr,this.events=new aet,this.initialized=!1,this.storagePrefix=iP,this.ignoredPayloadTypes=[z8],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:r})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...r])]},this.create=async()=>{this.isInitialized();const r=VHe(),a=await this.core.crypto.setSymKey(r),o=jS(ha.FIVE_MINUTES),s={protocol:HXt},l={topic:a,expiry:o,relay:s,active:!1},c=S$r({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:r,relay:s});return await this.pairings.set(a,l),await this.core.relayer.subscribe(a),this.core.expirer.set(a,o),{topic:a,uri:c}},this.pair=async r=>{this.isInitialized(),this.isValidPair(r);const{topic:a,symKey:o,relay:s}=FAt(r.uri);let l;if(this.pairings.keys.includes(a)&&(l=this.pairings.get(a),l.active))throw new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);const c=jS(ha.FIVE_MINUTES),u={topic:a,relay:s,expiry:c,active:!1};return await this.pairings.set(a,u),this.core.expirer.set(a,c),r.activatePairing&&await this.activate({topic:a}),this.events.emit(lZ.create,u),this.core.crypto.keychain.has(a)||(await this.core.crypto.setSymKey(o,a),await this.core.relayer.subscribe(a,{relay:s})),u},this.activate=async({topic:r})=>{this.isInitialized();const a=jS(ha.THIRTY_DAYS);await this.pairings.update(r,{active:!0,expiry:a}),this.core.expirer.set(r,a)},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);const{topic:a}=r;if(this.pairings.keys.includes(a)){const o=await this.sendRequest(a,"wc_pairingPing",{}),{done:s,resolve:l,reject:c}=rF();this.events.once(Ef("pairing_ping",o),({error:u})=>{u?c(u):l()}),await s()}},this.updateExpiry=async({topic:r,expiry:a})=>{this.isInitialized(),await this.pairings.update(r,{expiry:a})},this.updateMetadata=async({topic:r,metadata:a})=>{this.isInitialized(),await this.pairings.update(r,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);const{topic:a}=r;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",ch("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(r,a,o)=>{const s=zj(a,o),l=await this.core.crypto.encode(r,s),c=MQ[a].req;return this.core.history.set(r,s),this.core.relayer.publish(r,l,c),s.id},this.sendResult=async(r,a,o)=>{const s=QEe(r,o),l=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,r),u=MQ[c.request.method].res;await this.core.relayer.publish(a,l,u),await this.core.history.resolve(s)},this.sendError=async(r,a,o)=>{const s=qEe(r,o),l=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,r),u=MQ[c.request.method]?MQ[c.request.method].res:MQ.unregistered_method.res;await this.core.relayer.publish(a,l,u),await this.core.history.resolve(s)},this.deletePairing=async(r,a)=>{await this.core.relayer.unsubscribe(r),await Promise.all([this.pairings.delete(r,ch("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(r),a?Promise.resolve():this.core.expirer.del(r)])},this.cleanup=async()=>{const r=this.pairings.getAll().filter(a=>o3(a.expiry));await Promise.all(r.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=r=>{const{topic:a,payload:o}=r;switch(o.method){case"wc_pairingPing":return this.onPairingPingRequest(a,o);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,o);default:return this.onUnknownRpcMethodRequest(a,o)}},this.onRelayEventResponse=async r=>{const{topic:a,payload:o}=r,s=(await this.core.history.get(a,o.id)).request.method;switch(s){case"wc_pairingPing":return this.onPairingPingResponse(a,o);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(r,a)=>{const{id:o}=a;try{this.isValidPing({topic:r}),await this.sendResult(o,r,!0),this.events.emit(lZ.ping,{id:o,topic:r})}catch(s){await this.sendError(o,r,s),this.logger.error(s)}},this.onPairingPingResponse=(r,a)=>{const{id:o}=a;setTimeout(()=>{dR(a)?this.events.emit(Ef("pairing_ping",o),{}):HS(a)&&this.events.emit(Ef("pairing_ping",o),{error:a.error})},500)},this.onPairingDeleteRequest=async(r,a)=>{const{id:o}=a;try{this.isValidDisconnect({topic:r}),await this.deletePairing(r),this.events.emit(lZ.delete,{id:o,topic:r})}catch(s){await this.sendError(o,r,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(r,a)=>{const{id:o,method:s}=a;try{if(this.registeredMethods.includes(s))return;const l=ch("WC_METHOD_UNSUPPORTED",s);await this.sendError(o,r,l),this.logger.error(l)}catch(l){await this.sendError(o,r,l),this.logger.error(l)}},this.onUnknownRpcMethodResponse=r=>{this.registeredMethods.includes(r)||this.logger.error(ch("WC_METHOD_UNSUPPORTED",r))},this.isValidPair=r=>{var a;if(!$A(r)){const{message:s}=Yr("MISSING_OR_INVALID",`pair() params: ${r}`);throw new Error(s)}if(!I$r(r.uri)){const{message:s}=Yr("MISSING_OR_INVALID",`pair() uri: ${r.uri}`);throw new Error(s)}const o=FAt(r.uri);if(!((a=o==null?void 0:o.relay)!=null&&a.protocol)){const{message:s}=Yr("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(s)}if(!(o!=null&&o.symKey)){const{message:s}=Yr("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(s)}},this.isValidPing=async r=>{if(!$A(r)){const{message:o}=Yr("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(o)}const{topic:a}=r;await this.isValidPairingTopic(a)},this.isValidDisconnect=async r=>{if(!$A(r)){const{message:o}=Yr("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(o)}const{topic:a}=r;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async r=>{if(!nm(r,!1)){const{message:a}=Yr("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw new Error(a)}if(!this.pairings.keys.includes(r)){const{message:a}=Yr("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw new Error(a)}if(o3(this.pairings.get(r).expiry)){await this.deletePairing(r);const{message:a}=Yr("EXPIRED",`pairing topic: ${r}`);throw new Error(a)}},this.core=e,this.logger=p1(n,this.name),this.pairings=new ZEe(this.core,this.logger,this.name,this.storagePrefix)}get context(){return f1(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(av.message,async e=>{const{topic:n,message:r}=e;if(!this.pairings.keys.includes(n)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;const a=await this.core.crypto.decode(n,r);try{Eet(a)?(this.core.history.set(n,a),this.onRelayEventRequest({topic:n,payload:a})):YEe(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:n,payload:a}),this.core.history.delete(n,a.id))}catch(o){this.logger.error(o)}})}registerExpirerEvents(){this.core.expirer.on(Wb.expired,async e=>{const{topic:n}=sXt(e.target);n&&this.pairings.keys.includes(n)&&(await this.deletePairing(n,!0),this.events.emit(lZ.expire,{topic:n}))})}},bzr=class extends OFr{constructor(e,n){super(e,n),this.core=e,this.logger=n,this.records=new Map,this.events=new mg.EventEmitter,this.name=WUr,this.version=QUr,this.cached=[],this.initialized=!1,this.storagePrefix=iP,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(r=>this.records.set(r.id,r)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(r,a,o)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:r,request:a,chainId:o}),this.records.has(a.id))return;const s={id:a.id,topic:r,request:{method:a.method,params:a.params||null},chainId:o,expiry:jS(ha.THIRTY_DAYS)};this.records.set(s.id,s),this.events.emit(B_.created,s)},this.resolve=async r=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:r}),!this.records.has(r.id))return;const a=await this.getRecord(r.id);typeof a.response>"u"&&(a.response=HS(r)?{error:r.error}:{result:r.result},this.records.set(a.id,a),this.events.emit(B_.updated,a))},this.get=async(r,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:r,id:a}),await this.getRecord(a)),this.delete=(r,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(o=>{if(o.topic===r){if(typeof a<"u"&&o.id!==a)return;this.records.delete(o.id),this.events.emit(B_.deleted,o)}})},this.exists=async(r,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===r:!1),this.on=(r,a)=>{this.events.on(r,a)},this.once=(r,a)=>{this.events.once(r,a)},this.off=(r,a)=>{this.events.off(r,a)},this.removeListener=(r,a)=>{this.events.removeListener(r,a)},this.logger=p1(n,this.name)}get context(){return f1(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach(n=>{if(typeof n.response<"u")return;const r={topic:n.topic,request:zj(n.request.method,n.request.params,n.id),chainId:n.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const n=this.records.get(e);if(!n){const{message:r}=Yr("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(r)}return n}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(B_.sync)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:n}=Yr("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(B_.created,e=>{const n=B_.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e}),this.persist()}),this.events.on(B_.updated,e=>{const n=B_.updated;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e}),this.persist()}),this.events.on(B_.deleted,e=>{const n=B_.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e}),this.persist()}),this.core.heartbeat.on(EG.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(e=>{ha.toMiliseconds(e.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${e.id}`),this.delete(e.topic,e.id))})}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}},xzr=class extends jFr{constructor(e,n){super(e,n),this.core=e,this.logger=n,this.expirations=new Map,this.events=new mg.EventEmitter,this.name=qUr,this.version=YUr,this.cached=[],this.initialized=!1,this.storagePrefix=iP,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(r=>this.expirations.set(r.target,r)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=r=>{try{const a=this.formatTarget(r);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(r,a)=>{this.isInitialized();const o=this.formatTarget(r),s={target:o,expiry:a};this.expirations.set(o,s),this.checkExpiry(o,s),this.events.emit(Wb.created,{target:o,expiration:s})},this.get=r=>{this.isInitialized();const a=this.formatTarget(r);return this.getExpiration(a)},this.del=r=>{if(this.isInitialized(),this.has(r)){const a=this.formatTarget(r),o=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Wb.deleted,{target:a,expiration:o})}},this.on=(r,a)=>{this.events.on(r,a)},this.once=(r,a)=>{this.events.once(r,a)},this.off=(r,a)=>{this.events.off(r,a)},this.removeListener=(r,a)=>{this.events.removeListener(r,a)},this.logger=p1(n,this.name)}get context(){return f1(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return d$r(e);if(typeof e=="number")return h$r(e);const{message:n}=Yr("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(n)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Wb.sync)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:n}=Yr("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const n=this.expirations.get(e);if(!n){const{message:r}=Yr("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(r),new Error(r)}return n}checkExpiry(e,n){const{expiry:r}=n;ha.toMiliseconds(r)-Date.now()<=0&&this.expire(e,n)}expire(e,n){this.expirations.delete(e),this.events.emit(Wb.expired,{target:e,expiration:n})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,n)=>this.checkExpiry(n,e))}registerEventListeners(){this.core.heartbeat.on(EG.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Wb.created,e=>{const n=Wb.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()}),this.events.on(Wb.expired,e=>{const n=Wb.expired;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()}),this.events.on(Wb.deleted,e=>{const n=Wb.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}}},Ezr=class extends HFr{constructor(e,n){super(e,n),this.projectId=e,this.logger=n,this.name=J5e,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async r=>{if(this.verifyDisabled||yG()||!bG())return;const a=this.getVerifyUrl(r==null?void 0:r.verifyUrl);this.verifyUrl!==a&&this.removeIframe(),this.verifyUrl=a;try{await this.createIframe()}catch(o){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(o)}if(!this.initialized){this.removeIframe(),this.verifyUrl=rUe;try{await this.createIframe()}catch(o){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(o),this.verifyDisabled=!0}}},this.register=async r=>{this.initialized?this.sendPost(r.attestationId):(this.addToQueue(r.attestationId),await this.init())},this.resolve=async r=>{if(this.isDevEnv)return"";const a=this.getVerifyUrl(r==null?void 0:r.verifyUrl);let o;try{o=await this.fetchAttestation(r.attestationId,a)}catch(s){this.logger.info(`failed to resolve attestation: ${r.attestationId} from url: ${a}`),this.logger.info(s),o=await this.fetchAttestation(r.attestationId,rUe)}return o},this.fetchAttestation=async(r,a)=>{this.logger.info(`resolving attestation: ${r} from url: ${a}`);const o=this.startAbortTimer(ha.ONE_SECOND*2),s=await fetch(`${a}/attestation/${r}`,{signal:this.abortController.signal});return clearTimeout(o),s.status===200?await s.json():void 0},this.addToQueue=r=>{this.queue.push(r)},this.processQueue=()=>{this.queue.length!==0&&(this.queue.forEach(r=>this.sendPost(r)),this.queue=[])},this.sendPost=r=>{var a;try{if(!this.iframe)return;(a=this.iframe.contentWindow)==null||a.postMessage(r,"*"),this.logger.info(`postMessage sent: ${r} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let r;const a=o=>{o.data==="verify_ready"&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",a),r())};await Promise.race([new Promise(o=>{if(document.getElementById(J5e))return o();window.addEventListener("message",a);const s=document.createElement("iframe");s.id=J5e,s.src=`${this.verifyUrl}/${this.projectId}`,s.style.display="none",document.body.append(s),this.iframe=s,r=o}),new Promise((o,s)=>setTimeout(()=>{window.removeEventListener("message",a),s("verify iframe load timeout")},ha.toMiliseconds(ha.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=r=>{let a=r||GF;return JUr.includes(a)||(this.logger.info(`verify url: ${a}, not included in trusted list, assigning default: ${GF}`),a=GF),a},this.logger=p1(n,this.name),this.verifyUrl=GF,this.abortController=new AbortController,this.isDevEnv=get()&&{}.IS_VITEST}get context(){return f1(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),ha.toMiliseconds(e))}},Szr=class extends UFr{constructor(e,n){super(e,n),this.projectId=e,this.logger=n,this.context=ZUr,this.registerDeviceToken=async r=>{const{clientId:a,token:o,notificationType:s,enableEncrypted:l=!1}=r,c=`${XUr}/${this.projectId}/clients`;await Zjr(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:a,type:s,token:o,always_raw:l})})},this.logger=p1(n,this.context)}};var wzr=Object.defineProperty,R1t=Object.getOwnPropertySymbols,_zr=Object.prototype.hasOwnProperty,Tzr=Object.prototype.propertyIsEnumerable,M1t=(t,e,n)=>e in t?wzr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N1t=(t,e)=>{for(var n in e||(e={}))_zr.call(e,n)&&M1t(t,n,e[n]);if(R1t)for(var n of R1t(e))Tzr.call(e,n)&&M1t(t,n,e[n]);return t};class Tet extends PFr{constructor(e){super(e),this.protocol=jXt,this.version=SUr,this.name=_et,this.events=new mg.EventEmitter,this.initialized=!1,this.on=(r,a)=>this.events.on(r,a),this.once=(r,a)=>this.events.once(r,a),this.off=(r,a)=>this.events.off(r,a),this.removeListener=(r,a)=>this.events.removeListener(r,a),this.projectId=e==null?void 0:e.projectId,this.relayUrl=(e==null?void 0:e.relayUrl)||UXt,this.customStoragePrefix=e!=null&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";const n=typeof(e==null?void 0:e.logger)<"u"&&typeof(e==null?void 0:e.logger)!="string"?e.logger:KEe(WEe({level:(e==null?void 0:e.logger)||wUr.logger}));this.logger=p1(n,this.name),this.heartbeat=new EG.HeartBeat,this.crypto=new tzr(this,this.logger,e==null?void 0:e.keychain),this.history=new bzr(this,this.logger),this.expirer=new xzr(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new B7r(N1t(N1t({},_Ur),e==null?void 0:e.storageOptions)),this.relayer=new mzr({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new yzr(this,this.logger),this.verify=new Ezr(this.projectId||"",this.logger),this.echoClient=new Szr(this.projectId||"",this.logger)}static async init(e){const n=new Tet(e);await n.initialize();const r=await n.crypto.getClientId();return await n.storage.setItem(HUr,r),n}get context(){return f1(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}const Czr=Tet,zXt="wc",GXt=2,VXt="client",Cet=`${zXt}@${GXt}:${VXt}:`,X5e={name:VXt,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},I1t="WALLETCONNECT_DEEPLINK_CHOICE",kzr="proposal",KXt="Proposal expired",Rzr="session",bce=ha.SEVEN_DAYS,Mzr="engine",IQ={wc_sessionPropose:{req:{ttl:ha.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ha.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:ha.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ha.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ha.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ha.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ha.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ha.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ha.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ha.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ha.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ha.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ha.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ha.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ha.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:ha.THIRTY_SECONDS,prompt:!1,tag:1115}}},ePe={min:ha.FIVE_MINUTES,max:ha.SEVEN_DAYS},Tk={idle:"IDLE",active:"ACTIVE"},Nzr="request",Izr=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var Pzr=Object.defineProperty,Ozr=Object.defineProperties,Lzr=Object.getOwnPropertyDescriptors,P1t=Object.getOwnPropertySymbols,Bzr=Object.prototype.hasOwnProperty,Dzr=Object.prototype.propertyIsEnumerable,O1t=(t,e,n)=>e in t?Pzr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xA=(t,e)=>{for(var n in e||(e={}))Bzr.call(e,n)&&O1t(t,n,e[n]);if(P1t)for(var n of P1t(e))Dzr.call(e,n)&&O1t(t,n,e[n]);return t},PQ=(t,e)=>Ozr(t,Lzr(e));class $zr extends GFr{constructor(e){super(e),this.name=Mzr,this.events=new aet,this.initialized=!1,this.ignoredPayloadTypes=[z8],this.requestQueue={state:Tk.idle,queue:[]},this.sessionRequestQueue={state:Tk.idle,queue:[]},this.requestQueueDelay=ha.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(IQ)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},ha.toMiliseconds(this.requestQueueDelay)))},this.connect=async n=>{await this.isInitialized();const r=PQ(xA({},n),{requiredNamespaces:n.requiredNamespaces||{},optionalNamespaces:n.optionalNamespaces||{}});await this.isValidConnect(r);const{pairingTopic:a,requiredNamespaces:o,optionalNamespaces:s,sessionProperties:l,relays:c}=r;let u=a,d,h=!1;if(u&&(h=this.client.core.pairing.pairings.get(u).active),!u||!h){const{topic:S,uri:x}=await this.client.core.pairing.create();u=S,d=x}const f=await this.client.core.crypto.generateKeyPair(),p=xA({requiredNamespaces:o,optionalNamespaces:s,relays:c??[{protocol:HXt}],proposer:{publicKey:f,metadata:this.client.metadata}},l&&{sessionProperties:l}),{reject:m,resolve:g,done:v}=rF(ha.FIVE_MINUTES,KXt);if(this.events.once(Ef("session_connect"),async({error:S,session:x})=>{if(S)m(S);else if(x){x.self.publicKey=f;const w=PQ(xA({},x),{requiredNamespaces:x.requiredNamespaces,optionalNamespaces:x.optionalNamespaces});await this.client.session.set(x.topic,w),await this.setExpiry(x.topic,x.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:x.peer.metadata}),g(w)}}),!u){const{message:S}=Yr("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(S)}const A=await this.sendRequest({topic:u,method:"wc_sessionPropose",params:p}),y=jS(ha.FIVE_MINUTES);return await this.setProposal(A,xA({id:A,expiry:y},p)),{uri:d,approval:v}},this.pair=async n=>(await this.isInitialized(),await this.client.core.pairing.pair(n)),this.approve=async n=>{await this.isInitialized(),await this.isValidApprove(n);const{id:r,relayProtocol:a,namespaces:o,sessionProperties:s}=n,l=this.client.proposal.get(r);let{pairingTopic:c,proposer:u,requiredNamespaces:d,optionalNamespaces:h}=l;c=c||"",Uj(d)||(d=C$r(o,"approve()"));const f=await this.client.core.crypto.generateKeyPair(),p=u.publicKey,m=await this.client.core.crypto.generateSharedKey(f,p);c&&r&&(await this.client.core.pairing.updateMetadata({topic:c,metadata:u.metadata}),await this.sendResult({id:r,topic:c,result:{relay:{protocol:a??"irn"},responderPublicKey:f}}),await this.client.proposal.delete(r,ch("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:c}));const g=xA({relay:{protocol:a??"irn"},namespaces:o,requiredNamespaces:d,optionalNamespaces:h,pairingTopic:c,controller:{publicKey:f,metadata:this.client.metadata},expiry:jS(bce)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(m),await this.sendRequest({topic:m,method:"wc_sessionSettle",params:g,throwOnFailedPublish:!0});const v=PQ(xA({},g),{topic:m,pairingTopic:c,acknowledged:!1,self:g.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:f});return await this.client.session.set(m,v),await this.setExpiry(m,jS(bce)),{topic:m,acknowledged:()=>new Promise(A=>setTimeout(()=>A(this.client.session.get(m)),500))}},this.reject=async n=>{await this.isInitialized(),await this.isValidReject(n);const{id:r,reason:a}=n,{pairingTopic:o}=this.client.proposal.get(r);o&&(await this.sendError(r,o,a),await this.client.proposal.delete(r,ch("USER_DISCONNECTED")))},this.update=async n=>{await this.isInitialized(),await this.isValidUpdate(n);const{topic:r,namespaces:a}=n,o=await this.sendRequest({topic:r,method:"wc_sessionUpdate",params:{namespaces:a}}),{done:s,resolve:l,reject:c}=rF();return this.events.once(Ef("session_update",o),({error:u})=>{u?c(u):l()}),await this.client.session.update(r,{namespaces:a}),{acknowledged:s}},this.extend=async n=>{await this.isInitialized(),await this.isValidExtend(n);const{topic:r}=n,a=await this.sendRequest({topic:r,method:"wc_sessionExtend",params:{}}),{done:o,resolve:s,reject:l}=rF();return this.events.once(Ef("session_extend",a),({error:c})=>{c?l(c):s()}),await this.setExpiry(r,jS(bce)),{acknowledged:o}},this.request=async n=>{await this.isInitialized(),await this.isValidRequest(n);const{chainId:r,request:a,topic:o,expiry:s}=n,l=xet(),{done:c,resolve:u,reject:d}=rF(s,"Request expired. Please try again.");return this.events.once(Ef("session_request",l),({error:h,result:f})=>{h?d(h):u(f)}),await Promise.all([new Promise(async h=>{await this.sendRequest({clientRpcId:l,topic:o,method:"wc_sessionRequest",params:{request:a,chainId:r},expiry:s,throwOnFailedPublish:!0}).catch(f=>d(f)),this.client.events.emit("session_request_sent",{topic:o,request:a,chainId:r,id:l}),h()}),new Promise(async h=>{const f=await p$r(this.client.core.storage,I1t);f$r({id:l,topic:o,wcDeepLink:f}),h()}),c()]).then(h=>h[2])},this.respond=async n=>{await this.isInitialized(),await this.isValidRespond(n);const{topic:r,response:a}=n,{id:o}=a;dR(a)?await this.sendResult({id:o,topic:r,result:a.result,throwOnFailedPublish:!0}):HS(a)&&await this.sendError(o,r,a.error),this.cleanupAfterResponse(n)},this.ping=async n=>{await this.isInitialized(),await this.isValidPing(n);const{topic:r}=n;if(this.client.session.keys.includes(r)){const a=await this.sendRequest({topic:r,method:"wc_sessionPing",params:{}}),{done:o,resolve:s,reject:l}=rF();this.events.once(Ef("session_ping",a),({error:c})=>{c?l(c):s()}),await o()}else this.client.core.pairing.pairings.keys.includes(r)&&await this.client.core.pairing.ping({topic:r})},this.emit=async n=>{await this.isInitialized(),await this.isValidEmit(n);const{topic:r,event:a,chainId:o}=n;await this.sendRequest({topic:r,method:"wc_sessionEvent",params:{event:a,chainId:o}})},this.disconnect=async n=>{await this.isInitialized(),await this.isValidDisconnect(n);const{topic:r}=n;this.client.session.keys.includes(r)?(await this.sendRequest({topic:r,method:"wc_sessionDelete",params:ch("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(r)):await this.client.core.pairing.disconnect({topic:r})},this.find=n=>(this.isInitialized(),this.client.session.getAll().filter(r=>M$r(r,n))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async n=>{if(n.pairingTopic)try{const r=this.client.core.pairing.pairings.get(n.pairingTopic),a=this.client.core.pairing.pairings.getAll().filter(o=>{var s,l;return((s=o.peerMetadata)==null?void 0:s.url)&&((l=o.peerMetadata)==null?void 0:l.url)===n.peer.metadata.url&&o.topic&&o.topic!==r.topic});if(a.length===0)return;this.client.logger.info(`Cleaning up ${a.length} duplicate pairing(s)`),await Promise.all(a.map(o=>this.client.core.pairing.disconnect({topic:o.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(r){this.client.logger.error(r)}},this.deleteSession=async(n,r)=>{const{self:a}=this.client.session.get(n);await this.client.core.relayer.unsubscribe(n),this.client.session.delete(n,ch("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(a.publicKey)&&await this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.keychain.has(n)&&await this.client.core.crypto.deleteSymKey(n),r||this.client.core.expirer.del(n),this.client.core.storage.removeItem(I1t).catch(o=>this.client.logger.warn(o)),this.getPendingSessionRequests().forEach(o=>{o.topic===n&&this.deletePendingSessionRequest(o.id,ch("USER_DISCONNECTED"))})},this.deleteProposal=async(n,r)=>{await Promise.all([this.client.proposal.delete(n,ch("USER_DISCONNECTED")),r?Promise.resolve():this.client.core.expirer.del(n)])},this.deletePendingSessionRequest=async(n,r,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(n,r),a?Promise.resolve():this.client.core.expirer.del(n)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(o=>o.id!==n),a&&(this.sessionRequestQueue.state=Tk.idle)},this.setExpiry=async(n,r)=>{this.client.session.keys.includes(n)&&await this.client.session.update(n,{expiry:r}),this.client.core.expirer.set(n,r)},this.setProposal=async(n,r)=>{await this.client.proposal.set(n,r),this.client.core.expirer.set(n,r.expiry)},this.setPendingSessionRequest=async n=>{const r=IQ.wc_sessionRequest.req.ttl,{id:a,topic:o,params:s,verifyContext:l}=n;await this.client.pendingRequest.set(a,{id:a,topic:o,params:s,verifyContext:l}),r&&this.client.core.expirer.set(a,jS(r))},this.sendRequest=async n=>{const{topic:r,method:a,params:o,expiry:s,relayRpcId:l,clientRpcId:c,throwOnFailedPublish:u}=n,d=zj(a,o,c);if(bG()&&Izr.includes(a)){const p=Hj(JSON.stringify(d));this.client.core.verify.register({attestationId:p})}const h=await this.client.core.crypto.encode(r,d),f=IQ[a].req;return s&&(f.ttl=s),l&&(f.id=l),this.client.core.history.set(r,d),u?(f.internal=PQ(xA({},f.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,h,f)):this.client.core.relayer.publish(r,h,f).catch(p=>this.client.logger.error(p)),d.id},this.sendResult=async n=>{const{id:r,topic:a,result:o,throwOnFailedPublish:s}=n,l=QEe(r,o),c=await this.client.core.crypto.encode(a,l),u=await this.client.core.history.get(a,r),d=IQ[u.request.method].res;s?(d.internal=PQ(xA({},d.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,c,d)):this.client.core.relayer.publish(a,c,d).catch(h=>this.client.logger.error(h)),await this.client.core.history.resolve(l)},this.sendError=async(n,r,a)=>{const o=qEe(n,a),s=await this.client.core.crypto.encode(r,o),l=await this.client.core.history.get(r,n),c=IQ[l.request.method].res;this.client.core.relayer.publish(r,s,c),await this.client.core.history.resolve(o)},this.cleanup=async()=>{const n=[],r=[];this.client.session.getAll().forEach(a=>{o3(a.expiry)&&n.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{o3(a.expiry)&&r.push(a.id)}),await Promise.all([...n.map(a=>this.deleteSession(a)),...r.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=async n=>{this.requestQueue.queue.push(n),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===Tk.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Tk.active;const n=this.requestQueue.queue.shift();if(n)try{this.processRequest(n),await new Promise(r=>setTimeout(r,300))}catch(r){this.client.logger.warn(r)}}this.requestQueue.state=Tk.idle},this.processRequest=n=>{const{topic:r,payload:a}=n,o=a.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeRequest(r,a);case"wc_sessionSettle":return this.onSessionSettleRequest(r,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(r,a);case"wc_sessionExtend":return this.onSessionExtendRequest(r,a);case"wc_sessionPing":return this.onSessionPingRequest(r,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(r,a);case"wc_sessionRequest":return this.onSessionRequest(r,a);case"wc_sessionEvent":return this.onSessionEventRequest(r,a);default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async n=>{const{topic:r,payload:a}=n,o=(await this.client.core.history.get(r,a.id)).request.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeResponse(r,a);case"wc_sessionSettle":return this.onSessionSettleResponse(r,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(r,a);case"wc_sessionExtend":return this.onSessionExtendResponse(r,a);case"wc_sessionPing":return this.onSessionPingResponse(r,a);case"wc_sessionRequest":return this.onSessionRequestResponse(r,a);default:return this.client.logger.info(`Unsupported response method ${o}`)}},this.onRelayEventUnknownPayload=n=>{const{topic:r}=n,{message:a}=Yr("MISSING_OR_INVALID",`Decoded payload on topic ${r} is not identifiable as a JSON-RPC request or a response.`);throw new Error(a)},this.onSessionProposeRequest=async(n,r)=>{const{params:a,id:o}=r;try{this.isValidConnect(xA({},r.params));const s=jS(ha.FIVE_MINUTES),l=xA({id:o,pairingTopic:n,expiry:s},a);await this.setProposal(o,l);const c=Hj(JSON.stringify(r)),u=await this.getVerifyContext(c,l.proposer.metadata);this.client.events.emit("session_proposal",{id:o,params:l,verifyContext:u})}catch(s){await this.sendError(o,n,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(n,r)=>{const{id:a}=r;if(dR(r)){const{result:o}=r;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:o});const s=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});const l=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:l});const c=o.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});const u=await this.client.core.crypto.generateSharedKey(l,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});const d=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:d}),await this.client.core.pairing.activate({topic:n})}else HS(r)&&(await this.client.proposal.delete(a,ch("USER_DISCONNECTED")),this.events.emit(Ef("session_connect"),{error:r.error}))},this.onSessionSettleRequest=async(n,r)=>{const{id:a,params:o}=r;try{this.isValidSessionSettleRequest(o);const{relay:s,controller:l,expiry:c,namespaces:u,requiredNamespaces:d,optionalNamespaces:h,sessionProperties:f,pairingTopic:p}=r.params,m=xA({topic:n,relay:s,expiry:c,namespaces:u,acknowledged:!0,pairingTopic:p,requiredNamespaces:d,optionalNamespaces:h,controller:l.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:l.publicKey,metadata:l.metadata}},f&&{sessionProperties:f});await this.sendResult({id:r.id,topic:n,result:!0}),this.events.emit(Ef("session_connect"),{session:m}),this.cleanupDuplicatePairings(m)}catch(s){await this.sendError(a,n,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(n,r)=>{const{id:a}=r;dR(r)?(await this.client.session.update(n,{acknowledged:!0}),this.events.emit(Ef("session_approve",a),{})):HS(r)&&(await this.client.session.delete(n,ch("USER_DISCONNECTED")),this.events.emit(Ef("session_approve",a),{error:r.error}))},this.onSessionUpdateRequest=async(n,r)=>{const{params:a,id:o}=r;try{const s=`${n}_session_update`,l=gce.get(s);if(l&&this.isRequestOutOfSync(l,o)){this.client.logger.info(`Discarding out of sync request - ${o}`);return}this.isValidUpdate(xA({topic:n},a)),await this.client.session.update(n,{namespaces:a.namespaces}),await this.sendResult({id:o,topic:n,result:!0}),this.client.events.emit("session_update",{id:o,topic:n,params:a}),gce.set(s,o)}catch(s){await this.sendError(o,n,s),this.client.logger.error(s)}},this.isRequestOutOfSync=(n,r)=>parseInt(r.toString().slice(0,-3))<=parseInt(n.toString().slice(0,-3)),this.onSessionUpdateResponse=(n,r)=>{const{id:a}=r;dR(r)?this.events.emit(Ef("session_update",a),{}):HS(r)&&this.events.emit(Ef("session_update",a),{error:r.error})},this.onSessionExtendRequest=async(n,r)=>{const{id:a}=r;try{this.isValidExtend({topic:n}),await this.setExpiry(n,jS(bce)),await this.sendResult({id:a,topic:n,result:!0}),this.client.events.emit("session_extend",{id:a,topic:n})}catch(o){await this.sendError(a,n,o),this.client.logger.error(o)}},this.onSessionExtendResponse=(n,r)=>{const{id:a}=r;dR(r)?this.events.emit(Ef("session_extend",a),{}):HS(r)&&this.events.emit(Ef("session_extend",a),{error:r.error})},this.onSessionPingRequest=async(n,r)=>{const{id:a}=r;try{this.isValidPing({topic:n}),await this.sendResult({id:a,topic:n,result:!0}),this.client.events.emit("session_ping",{id:a,topic:n})}catch(o){await this.sendError(a,n,o),this.client.logger.error(o)}},this.onSessionPingResponse=(n,r)=>{const{id:a}=r;setTimeout(()=>{dR(r)?this.events.emit(Ef("session_ping",a),{}):HS(r)&&this.events.emit(Ef("session_ping",a),{error:r.error})},500)},this.onSessionDeleteRequest=async(n,r)=>{const{id:a}=r;try{this.isValidDisconnect({topic:n,reason:r.params}),await Promise.all([new Promise(o=>{this.client.core.relayer.once(av.publish,async()=>{o(await this.deleteSession(n))})}),this.sendResult({id:a,topic:n,result:!0})]),this.client.events.emit("session_delete",{id:a,topic:n})}catch(o){this.client.logger.error(o)}},this.onSessionRequest=async(n,r)=>{const{id:a,params:o}=r;try{this.isValidRequest(xA({topic:n},o));const s=Hj(JSON.stringify(zj("wc_sessionRequest",o,a))),l=this.client.session.get(n),c=await this.getVerifyContext(s,l.peer.metadata),u={id:a,topic:n,params:o,verifyContext:c};await this.setPendingSessionRequest(u),this.addSessionRequestToSessionRequestQueue(u),this.processSessionRequestQueue()}catch(s){await this.sendError(a,n,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(n,r)=>{const{id:a}=r;dR(r)?this.events.emit(Ef("session_request",a),{result:r.result}):HS(r)&&this.events.emit(Ef("session_request",a),{error:r.error})},this.onSessionEventRequest=async(n,r)=>{const{id:a,params:o}=r;try{const s=`${n}_session_event_${o.event.name}`,l=gce.get(s);if(l&&this.isRequestOutOfSync(l,a)){this.client.logger.info(`Discarding out of sync request - ${a}`);return}this.isValidEmit(xA({topic:n},o)),this.client.events.emit("session_event",{id:a,topic:n,params:o}),gce.set(s,a)}catch(s){await this.sendError(a,n,s),this.client.logger.error(s)}},this.addSessionRequestToSessionRequestQueue=n=>{this.sessionRequestQueue.queue.push(n)},this.cleanupAfterResponse=n=>{this.deletePendingSessionRequest(n.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=Tk.idle,this.processSessionRequestQueue()},ha.toMiliseconds(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===Tk.active){this.client.logger.info("session request queue is already active.");return}const n=this.sessionRequestQueue.queue[0];if(!n){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=Tk.active,this.client.events.emit("session_request",n)}catch(r){this.client.logger.error(r)}},this.onPairingCreated=n=>{if(n.active)return;const r=this.client.proposal.getAll().find(a=>a.pairingTopic===n.topic);r&&this.onSessionProposeRequest(n.topic,zj("wc_sessionPropose",{requiredNamespaces:r.requiredNamespaces,optionalNamespaces:r.optionalNamespaces,relays:r.relays,proposer:r.proposer,sessionProperties:r.sessionProperties},r.id))},this.isValidConnect=async n=>{if(!$A(n)){const{message:c}=Yr("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(n)}`);throw new Error(c)}const{pairingTopic:r,requiredNamespaces:a,optionalNamespaces:o,sessionProperties:s,relays:l}=n;if(C0(r)||await this.isValidPairingTopic(r),!U$r(l,!0)){const{message:c}=Yr("MISSING_OR_INVALID",`connect() relays: ${l}`);throw new Error(c)}!C0(a)&&Uj(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!C0(o)&&Uj(o)!==0&&this.validateNamespaces(o,"optionalNamespaces"),C0(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(n,r)=>{const a=H$r(n,"connect()",r);if(a)throw new Error(a.message)},this.isValidApprove=async n=>{if(!$A(n))throw new Error(Yr("MISSING_OR_INVALID",`approve() params: ${n}`).message);const{id:r,namespaces:a,relayProtocol:o,sessionProperties:s}=n;await this.isValidProposalId(r);const l=this.client.proposal.get(r),c=ume(a,"approve()");if(c)throw new Error(c.message);const u=UAt(l.requiredNamespaces,a,"approve()");if(u)throw new Error(u.message);if(!nm(o,!0)){const{message:d}=Yr("MISSING_OR_INVALID",`approve() relayProtocol: ${o}`);throw new Error(d)}C0(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async n=>{if(!$A(n)){const{message:o}=Yr("MISSING_OR_INVALID",`reject() params: ${n}`);throw new Error(o)}const{id:r,reason:a}=n;if(await this.isValidProposalId(r),!G$r(a)){const{message:o}=Yr("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(o)}},this.isValidSessionSettleRequest=n=>{if(!$A(n)){const{message:u}=Yr("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${n}`);throw new Error(u)}const{relay:r,controller:a,namespaces:o,expiry:s}=n;if(!cXt(r)){const{message:u}=Yr("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}const l=L$r(a,"onSessionSettleRequest()");if(l)throw new Error(l.message);const c=ume(o,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(o3(s)){const{message:u}=Yr("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async n=>{if(!$A(n)){const{message:c}=Yr("MISSING_OR_INVALID",`update() params: ${n}`);throw new Error(c)}const{topic:r,namespaces:a}=n;await this.isValidSessionTopic(r);const o=this.client.session.get(r),s=ume(a,"update()");if(s)throw new Error(s.message);const l=UAt(o.requiredNamespaces,a,"update()");if(l)throw new Error(l.message)},this.isValidExtend=async n=>{if(!$A(n)){const{message:a}=Yr("MISSING_OR_INVALID",`extend() params: ${n}`);throw new Error(a)}const{topic:r}=n;await this.isValidSessionTopic(r)},this.isValidRequest=async n=>{if(!$A(n)){const{message:c}=Yr("MISSING_OR_INVALID",`request() params: ${n}`);throw new Error(c)}const{topic:r,request:a,chainId:o,expiry:s}=n;await this.isValidSessionTopic(r);const{namespaces:l}=this.client.session.get(r);if(!HAt(l,o)){const{message:c}=Yr("MISSING_OR_INVALID",`request() chainId: ${o}`);throw new Error(c)}if(!V$r(a)){const{message:c}=Yr("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(c)}if(!Q$r(l,o,a.method)){const{message:c}=Yr("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(c)}if(s&&!Z$r(s,ePe)){const{message:c}=Yr("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${ePe.min} and ${ePe.max}`);throw new Error(c)}},this.isValidRespond=async n=>{var r;if(!$A(n)){const{message:s}=Yr("MISSING_OR_INVALID",`respond() params: ${n}`);throw new Error(s)}const{topic:a,response:o}=n;try{await this.isValidSessionTopic(a)}catch(s){throw(r=n==null?void 0:n.response)!=null&&r.id&&this.cleanupAfterResponse(n),s}if(!K$r(o)){const{message:s}=Yr("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(o)}`);throw new Error(s)}},this.isValidPing=async n=>{if(!$A(n)){const{message:a}=Yr("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(a)}const{topic:r}=n;await this.isValidSessionOrPairingTopic(r)},this.isValidEmit=async n=>{if(!$A(n)){const{message:l}=Yr("MISSING_OR_INVALID",`emit() params: ${n}`);throw new Error(l)}const{topic:r,event:a,chainId:o}=n;await this.isValidSessionTopic(r);const{namespaces:s}=this.client.session.get(r);if(!HAt(s,o)){const{message:l}=Yr("MISSING_OR_INVALID",`emit() chainId: ${o}`);throw new Error(l)}if(!W$r(a)){const{message:l}=Yr("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(l)}if(!q$r(s,o,a.name)){const{message:l}=Yr("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(l)}},this.isValidDisconnect=async n=>{if(!$A(n)){const{message:a}=Yr("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(a)}const{topic:r}=n;await this.isValidSessionOrPairingTopic(r)},this.getVerifyContext=async(n,r)=>{const a={verified:{verifyUrl:r.verifyUrl||GF,validation:"UNKNOWN",origin:r.url||""}};try{const o=await this.client.core.verify.resolve({attestationId:n,verifyUrl:r.verifyUrl});o&&(a.verified.origin=o.origin,a.verified.isScam=o.isScam,a.verified.validation=o.origin===new URL(r.url).origin?"VALID":"INVALID")}catch(o){this.client.logger.info(o)}return this.client.logger.info(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(n,r)=>{Object.values(n).forEach(a=>{if(!nm(a,!1)){const{message:o}=Yr("MISSING_OR_INVALID",`${r} must be in Record<string, string> format. Received: ${JSON.stringify(a)}`);throw new Error(o)}})}}async isInitialized(){if(!this.initialized){const{message:e}=Yr("NOT_INITIALIZED",this.name);throw new Error(e)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(av.message,async e=>{const{topic:n,message:r}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(r)))return;const a=await this.client.core.crypto.decode(n,r);try{Eet(a)?(this.client.core.history.set(n,a),this.onRelayEventRequest({topic:n,payload:a})):YEe(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:n,payload:a}),this.client.core.history.delete(n,a.id)):this.onRelayEventUnknownPayload({topic:n,payload:a})}catch(o){this.client.logger.error(o)}})}registerExpirerEvents(){this.client.core.expirer.on(Wb.expired,async e=>{const{topic:n,id:r}=sXt(e.target);if(r&&this.client.pendingRequest.keys.includes(r))return await this.deletePendingSessionRequest(r,Yr("EXPIRED"),!0);n?this.client.session.keys.includes(n)&&(await this.deleteSession(n,!0),this.client.events.emit("session_expire",{topic:n})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r}))})}registerPairingEvents(){this.client.core.pairing.events.on(lZ.create,e=>this.onPairingCreated(e))}isValidPairingTopic(e){if(!nm(e,!1)){const{message:n}=Yr("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(n)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:n}=Yr("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(n)}if(o3(this.client.core.pairing.pairings.get(e).expiry)){const{message:n}=Yr("EXPIRED",`pairing topic: ${e}`);throw new Error(n)}}async isValidSessionTopic(e){if(!nm(e,!1)){const{message:n}=Yr("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(n)}if(!this.client.session.keys.includes(e)){const{message:n}=Yr("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(n)}if(o3(this.client.session.get(e).expiry)){await this.deleteSession(e);const{message:n}=Yr("EXPIRED",`session topic: ${e}`);throw new Error(n)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(nm(e,!1)){const{message:n}=Yr("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(n)}else{const{message:n}=Yr("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(n)}}async isValidProposalId(e){if(!z$r(e)){const{message:n}=Yr("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(n)}if(!this.client.proposal.keys.includes(e)){const{message:n}=Yr("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(n)}if(o3(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);const{message:n}=Yr("EXPIRED",`proposal id: ${e}`);throw new Error(n)}}}class Fzr extends ZEe{constructor(e,n){super(e,n,kzr,Cet),this.core=e,this.logger=n}}let jzr=class extends ZEe{constructor(e,n){super(e,n,Rzr,Cet),this.core=e,this.logger=n}};class Hzr extends ZEe{constructor(e,n){super(e,n,Nzr,Cet,r=>r.id),this.core=e,this.logger=n}}let Uzr=class WXt extends zFr{constructor(e){super(e),this.protocol=zXt,this.version=GXt,this.name=X5e.name,this.events=new mg.EventEmitter,this.on=(r,a)=>this.events.on(r,a),this.once=(r,a)=>this.events.once(r,a),this.off=(r,a)=>this.events.off(r,a),this.removeListener=(r,a)=>this.events.removeListener(r,a),this.removeAllListeners=r=>this.events.removeAllListeners(r),this.connect=async r=>{try{return await this.engine.connect(r)}catch(a){throw this.logger.error(a.message),a}},this.pair=async r=>{try{return await this.engine.pair(r)}catch(a){throw this.logger.error(a.message),a}},this.approve=async r=>{try{return await this.engine.approve(r)}catch(a){throw this.logger.error(a.message),a}},this.reject=async r=>{try{return await this.engine.reject(r)}catch(a){throw this.logger.error(a.message),a}},this.update=async r=>{try{return await this.engine.update(r)}catch(a){throw this.logger.error(a.message),a}},this.extend=async r=>{try{return await this.engine.extend(r)}catch(a){throw this.logger.error(a.message),a}},this.request=async r=>{try{return await this.engine.request(r)}catch(a){throw this.logger.error(a.message),a}},this.respond=async r=>{try{return await this.engine.respond(r)}catch(a){throw this.logger.error(a.message),a}},this.ping=async r=>{try{return await this.engine.ping(r)}catch(a){throw this.logger.error(a.message),a}},this.emit=async r=>{try{return await this.engine.emit(r)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async r=>{try{return await this.engine.disconnect(r)}catch(a){throw this.logger.error(a.message),a}},this.find=r=>{try{return this.engine.find(r)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(r){throw this.logger.error(r.message),r}},this.name=(e==null?void 0:e.name)||X5e.name,this.metadata=(e==null?void 0:e.metadata)||o$r();const n=typeof(e==null?void 0:e.logger)<"u"&&typeof(e==null?void 0:e.logger)!="string"?e.logger:KEe(WEe({level:(e==null?void 0:e.logger)||X5e.logger}));this.core=(e==null?void 0:e.core)||new Czr(e),this.logger=p1(n,this.name),this.session=new jzr(this.core,this.logger),this.proposal=new Fzr(this.core,this.logger),this.pendingRequest=new Hzr(this.core,this.logger),this.engine=new $zr(this)}static async init(e){const n=new WXt(e);return await n.initialize(),n}get context(){return f1(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}};var iUe={exports:{}};(function(t,e){var n=typeof self<"u"?self:en,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var l={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function c(b){return b&&DataView.prototype.isPrototypeOf(b)}if(l.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(b){return b&&u.indexOf(Object.prototype.toString.call(b))>-1};function h(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(b))throw new TypeError("Invalid character in header field name");return b.toLowerCase()}function f(b){return typeof b!="string"&&(b=String(b)),b}function p(b){var T={next:function(){var M=b.shift();return{done:M===void 0,value:M}}};return l.iterable&&(T[Symbol.iterator]=function(){return T}),T}function m(b){this.map={},b instanceof m?b.forEach(function(T,M){this.append(M,T)},this):Array.isArray(b)?b.forEach(function(T){this.append(T[0],T[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(T){this.append(T,b[T])},this)}m.prototype.append=function(b,T){b=h(b),T=f(T);var M=this.map[b];this.map[b]=M?M+", "+T:T},m.prototype.delete=function(b){delete this.map[h(b)]},m.prototype.get=function(b){return b=h(b),this.has(b)?this.map[b]:null},m.prototype.has=function(b){return this.map.hasOwnProperty(h(b))},m.prototype.set=function(b,T){this.map[h(b)]=f(T)},m.prototype.forEach=function(b,T){for(var M in this.map)this.map.hasOwnProperty(M)&&b.call(T,this.map[M],M,this)},m.prototype.keys=function(){var b=[];return this.forEach(function(T,M){b.push(M)}),p(b)},m.prototype.values=function(){var b=[];return this.forEach(function(T){b.push(T)}),p(b)},m.prototype.entries=function(){var b=[];return this.forEach(function(T,M){b.push([M,T])}),p(b)},l.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(b){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}function v(b){return new Promise(function(T,M){b.onload=function(){T(b.result)},b.onerror=function(){M(b.error)}})}function A(b){var T=new FileReader,M=v(T);return T.readAsArrayBuffer(b),M}function y(b){var T=new FileReader,M=v(T);return T.readAsText(b),M}function S(b){for(var T=new Uint8Array(b),M=new Array(T.length),D=0;D<T.length;D++)M[D]=String.fromCharCode(T[D]);return M.join("")}function x(b){if(b.slice)return b.slice(0);var T=new Uint8Array(b.byteLength);return T.set(new Uint8Array(b)),T.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(b){this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:l.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:l.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():l.arrayBuffer&&l.blob&&c(b)?(this._bodyArrayBuffer=x(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||d(b))?this._bodyArrayBuffer=x(b):this._bodyText=b=Object.prototype.toString.call(b):this._bodyText="",this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var b=g(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(A)}),this.text=function(){var b=g(this);if(b)return b;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(b){var T=b.toUpperCase();return _.indexOf(T)>-1?T:b}function R(b,T){T=T||{};var M=T.body;if(b instanceof R){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,T.headers||(this.headers=new m(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!M&&b._bodyInit!=null&&(M=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=T.credentials||this.credentials||"same-origin",(T.headers||!this.headers)&&(this.headers=new m(T.headers)),this.method=C(T.method||this.method||"GET"),this.mode=T.mode||this.mode||null,this.signal=T.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(M)}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function k(b){var T=new FormData;return b.trim().split("&").forEach(function(M){if(M){var D=M.split("="),B=D.shift().replace(/\+/g," "),j=D.join("=").replace(/\+/g," ");T.append(decodeURIComponent(B),decodeURIComponent(j))}}),T}function P(b){var T=new m,M=b.replace(/\r?\n[\t ]+/g," ");return M.split(/\r?\n/).forEach(function(D){var B=D.split(":"),j=B.shift().trim();if(j){var H=B.join(":").trim();T.append(j,H)}}),T}w.call(R.prototype);function N(b,T){T||(T={}),this.type="default",this.status=T.status===void 0?200:T.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in T?T.statusText:"OK",this.headers=new m(T.headers),this.url=T.url||"",this._initBody(b)}w.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},N.error=function(){var b=new N(null,{status:0,statusText:""});return b.type="error",b};var L=[301,302,303,307,308];N.redirect=function(b,T){if(L.indexOf(T)===-1)throw new RangeError("Invalid status code");return new N(null,{status:T,headers:{location:b}})},s.DOMException=o.DOMException;try{new s.DOMException}catch{s.DOMException=function(T,M){this.message=T,this.name=M;var D=Error(T);this.stack=D.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function I(b,T){return new Promise(function(M,D){var B=new R(b,T);if(B.signal&&B.signal.aborted)return D(new s.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function H(){j.abort()}j.onload=function(){var U={status:j.status,statusText:j.statusText,headers:P(j.getAllResponseHeaders()||"")};U.url="responseURL"in j?j.responseURL:U.headers.get("X-Request-URL");var $="response"in j?j.response:j.responseText;M(new N($,U))},j.onerror=function(){D(new TypeError("Network request failed"))},j.ontimeout=function(){D(new TypeError("Network request failed"))},j.onabort=function(){D(new s.DOMException("Aborted","AbortError"))},j.open(B.method,B.url,!0),B.credentials==="include"?j.withCredentials=!0:B.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&l.blob&&(j.responseType="blob"),B.headers.forEach(function(U,$){j.setRequestHeader($,U)}),B.signal&&(B.signal.addEventListener("abort",H),j.onreadystatechange=function(){j.readyState===4&&B.signal.removeEventListener("abort",H)}),j.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return I.polyfill=!0,o.fetch||(o.fetch=I,o.Headers=m,o.Request=R,o.Response=N),s.Headers=m,s.Request=R,s.Response=N,s.fetch=I,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;e=a.fetch,e.default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e})(iUe,iUe.exports);var zzr=iUe.exports;const L1t=Li(zzr);var Gzr=Object.defineProperty,Vzr=Object.defineProperties,Kzr=Object.getOwnPropertyDescriptors,B1t=Object.getOwnPropertySymbols,Wzr=Object.prototype.hasOwnProperty,Qzr=Object.prototype.propertyIsEnumerable,D1t=(t,e,n)=>e in t?Gzr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$1t=(t,e)=>{for(var n in e||(e={}))Wzr.call(e,n)&&D1t(t,n,e[n]);if(B1t)for(var n of B1t(e))Qzr.call(e,n)&&D1t(t,n,e[n]);return t},F1t=(t,e)=>Vzr(t,Kzr(e));const qzr={Accept:"application/json","Content-Type":"application/json"},Yzr="POST",j1t={headers:qzr,method:Yzr},H1t=10;let sO=class{constructor(e,n=!1){if(this.url=e,this.disableProviderPing=n,this.events=new mg.EventEmitter,this.isAvailable=!1,this.registering=!1,!l1t(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=n}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{const n=k6(e),r=await(await L1t(this.url,F1t($1t({},j1t),{body:n}))).json();this.onPayload({data:r})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!l1t(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise((r,a)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),a(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return a(new Error("HTTP connection is missing or invalid"));r()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){const n=k6({id:1,jsonrpc:"2.0",method:"test",params:[]});await L1t(e,F1t($1t({},j1t),{body:n}))}this.onOpen()}catch(n){const r=this.parseError(n);throw this.events.emit("register_error",r),this.onClose(),r}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const n=typeof e.data=="string"?xae(e.data):e.data;this.events.emit("payload",n)}onError(e,n){const r=this.parseError(n),a=r.message||r.toString(),o=qEe(e,a);this.events.emit("payload",o)}parseError(e,n=this.url){return SXt(e,n,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>H1t&&this.events.setMaxListeners(H1t)}};const U1t="error",Jzr="wss://relay.walletconnect.com",Zzr="wc",Xzr="universal_provider",z1t=`${Zzr}@2:${Xzr}:`,eGr="https://rpc.walletconnect.com/v1/",nN={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var OQ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Wa<"u"?Wa:typeof self<"u"?self:{},aUe={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(t,e){(function(){var n,r="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,f=2,p=4,m=1,g=2,v=1,A=2,y=4,S=8,x=16,w=32,_=64,C=128,R=256,k=512,P=30,N="...",L=800,I=16,b=1,T=2,M=3,D=1/0,B=9007199254740991,j=17976931348623157e292,H=0/0,U=4294967295,$=U-1,z=U>>>1,Z=[["ary",C],["bind",v],["bindKey",A],["curry",S],["curryRight",x],["flip",k],["partial",w],["partialRight",_],["rearg",R]],K="[object Arguments]",Q="[object Array]",ee="[object AsyncFunction]",X="[object Boolean]",te="[object Date]",J="[object DOMException]",ne="[object Error]",ie="[object Function]",he="[object GeneratorFunction]",de="[object Map]",ce="[object Number]",Ee="[object Null]",Me="[object Object]",Be="[object Promise]",ze="[object Proxy]",je="[object RegExp]",ye="[object Set]",me="[object String]",le="[object Symbol]",pe="[object Undefined]",Ne="[object WeakMap]",_e="[object WeakSet]",ue="[object ArrayBuffer]",se="[object DataView]",oe="[object Float32Array]",ge="[object Float64Array]",De="[object Int8Array]",Fe="[object Int16Array]",Se="[object Int32Array]",Xe="[object Uint8Array]",Oe="[object Uint8ClampedArray]",Ye="[object Uint16Array]",mt="[object Uint32Array]",ut=/\b__p \+= '';/g,lt=/\b(__p \+=) '' \+/g,pn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,sn=/&(?:amp|lt|gt|quot|#39);/g,un=/[&<>"']/g,ur=RegExp(sn.source),dt=RegExp(un.source),xt=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,Kt=/<%=([\s\S]+?)%>/g,rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/,an=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,on=/[\\^$.*+?()[\]{}|]/g,dr=RegExp(on.source),$e=/^\s+/,qe=/\s/,yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,yn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vt=/[()=,{}\[\]\/\s]/,Gt=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,Yt=/^0b[01]+$/i,Un=/^\[object .+?Constructor\]$/,jn=/^0o[0-7]+$/i,br=/^(?:0|[1-9]\d*)$/,si=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qi=/($^)/,st=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Bt="\\u0300-\\u036f",dn="\\ufe20-\\ufe2f",tn="\\u20d0-\\u20ff",vn=Bt+dn+tn,kn="\\u2700-\\u27bf",Mn="a-z\\xdf-\\xf6\\xf8-\\xff",Nr="\\xac\\xb1\\xd7\\xf7",na="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ar="\\u2000-\\u206f",qi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ge="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",Je=Nr+na+Ar+qi,Rt="['’]",Dt="["+wt+"]",It="["+Je+"]",ln="["+vn+"]",Hn="\\d+",Zn="["+kn+"]",Jn="["+Mn+"]",Xn="[^"+wt+Je+Hn+kn+Mn+Ge+"]",zr="\\ud83c[\\udffb-\\udfff]",ua="(?:"+ln+"|"+zr+")",Ta="[^"+wt+"]",Qa="(?:\\ud83c[\\udde6-\\uddff]){2}",hs="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+Ge+"]",nd="\\u200d",wm="(?:"+Jn+"|"+Xn+")",uf="(?:"+$a+"|"+Xn+")",b1="(?:"+Rt+"(?:d|ll|m|re|s|t|ve))?",_m="(?:"+Rt+"(?:D|LL|M|RE|S|T|VE))?",sA=ua+"?",x1="["+ht+"]?",hb="(?:"+nd+"(?:"+[Ta,Qa,hs].join("|")+")"+x1+sA+")*",Sh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lA=x1+sA+hb,xg="(?:"+[Zn,Qa,hs].join("|")+")"+lA,Fv="(?:"+[Ta+ln+"?",ln,Qa,hs,Dt].join("|")+")",fb=RegExp(Rt,"g"),BE=RegExp(ln,"g"),Eg=RegExp(zr+"(?="+zr+")|"+Fv+lA,"g"),pb=RegExp([$a+"?"+Jn+"+"+b1+"(?="+[It,$a,"$"].join("|")+")",uf+"+"+_m+"(?="+[It,$a+wm,"$"].join("|")+")",$a+"?"+wm+"+"+b1,$a+"+"+_m,LE,Sh,Hn,xg].join("|"),"g"),df=RegExp("["+nd+wt+vn+ht+"]"),Sg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,E1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jv=-1,li={};li[oe]=li[ge]=li[De]=li[Fe]=li[Se]=li[Xe]=li[Oe]=li[Ye]=li[mt]=!0,li[K]=li[Q]=li[ue]=li[X]=li[se]=li[te]=li[ne]=li[ie]=li[de]=li[ce]=li[Me]=li[je]=li[ye]=li[me]=li[Ne]=!1;var ea={};ea[K]=ea[Q]=ea[ue]=ea[se]=ea[X]=ea[te]=ea[oe]=ea[ge]=ea[De]=ea[Fe]=ea[Se]=ea[de]=ea[ce]=ea[Me]=ea[je]=ea[ye]=ea[me]=ea[le]=ea[Xe]=ea[Oe]=ea[Ye]=ea[mt]=!0,ea[ne]=ea[ie]=ea[Ne]=!1;var it={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},zt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Br={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dl=parseFloat,Ja=parseInt,Pl=typeof OQ=="object"&&OQ&&OQ.Object===Object&&OQ,Ts=typeof self=="object"&&self&&self.Object===Object&&self,ma=Pl||Ts||Function("return this")(),Cs=e&&!e.nodeType&&e,Sl=Cs&&!0&&t&&!t.nodeType&&t,Yl=Sl&&Sl.exports===Cs,Jl=Yl&&Pl.process,Eo=function(){try{var Ke=Sl&&Sl.require&&Sl.require("util").types;return Ke||Jl&&Jl.binding&&Jl.binding("util")}catch{}}(),Jc=Eo&&Eo.isArrayBuffer,wh=Eo&&Eo.isDate,Kd=Eo&&Eo.isMap,Pp=Eo&&Eo.isRegExp,cA=Eo&&Eo.isSet,Hv=Eo&&Eo.isTypedArray;function es(Ke,pt,nt){switch(nt.length){case 0:return Ke.call(pt);case 1:return Ke.call(pt,nt[0]);case 2:return Ke.call(pt,nt[0],nt[1]);case 3:return Ke.call(pt,nt[0],nt[1],nt[2])}return Ke.apply(pt,nt)}function Op(Ke,pt,nt,Sn){for(var yr=-1,vi=Ke==null?0:Ke.length;++yr<vi;){var ao=Ke[yr];pt(Sn,ao,nt(ao),Ke)}return Sn}function Vs(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length;++nt<Sn&&pt(Ke[nt],nt,Ke)!==!1;);return Ke}function OC(Ke,pt){for(var nt=Ke==null?0:Ke.length;nt--&&pt(Ke[nt],nt,Ke)!==!1;);return Ke}function u_(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length;++nt<Sn;)if(!pt(Ke[nt],nt,Ke))return!1;return!0}function $c(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length,yr=0,vi=[];++nt<Sn;){var ao=Ke[nt];pt(ao,nt,Ke)&&(vi[yr++]=ao)}return vi}function hf(Ke,pt){var nt=Ke==null?0:Ke.length;return!!nt&&_h(Ke,pt,0)>-1}function S1(Ke,pt,nt){for(var Sn=-1,yr=Ke==null?0:Ke.length;++Sn<yr;)if(nt(pt,Ke[Sn]))return!0;return!1}function va(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length,yr=Array(Sn);++nt<Sn;)yr[nt]=pt(Ke[nt],nt,Ke);return yr}function Wd(Ke,pt){for(var nt=-1,Sn=pt.length,yr=Ke.length;++nt<Sn;)Ke[yr+nt]=pt[nt];return Ke}function mb(Ke,pt,nt,Sn){var yr=-1,vi=Ke==null?0:Ke.length;for(Sn&&vi&&(nt=Ke[++yr]);++yr<vi;)nt=pt(nt,Ke[yr],yr,Ke);return nt}function d_(Ke,pt,nt,Sn){var yr=Ke==null?0:Ke.length;for(Sn&&yr&&(nt=Ke[--yr]);yr--;)nt=pt(nt,Ke[yr],yr,Ke);return nt}function Uv(Ke,pt){for(var nt=-1,Sn=Ke==null?0:Ke.length;++nt<Sn;)if(pt(Ke[nt],nt,Ke))return!0;return!1}var IN=_1("length");function PN(Ke){return Ke.split("")}function ON(Ke){return Ke.match(yn)||[]}function DE(Ke,pt,nt){var Sn;return nt(Ke,function(yr,vi,ao){if(pt(yr,vi,ao))return Sn=vi,!1}),Sn}function wg(Ke,pt,nt,Sn){for(var yr=Ke.length,vi=nt+(Sn?1:-1);Sn?vi--:++vi<yr;)if(pt(Ke[vi],vi,Ke))return vi;return-1}function _h(Ke,pt,nt){return pt===pt?uc(Ke,pt,nt):wg(Ke,w1,nt)}function $E(Ke,pt,nt,Sn){for(var yr=nt-1,vi=Ke.length;++yr<vi;)if(Sn(Ke[yr],pt))return yr;return-1}function w1(Ke){return Ke!==Ke}function uA(Ke,pt){var nt=Ke==null?0:Ke.length;return nt?Tm(Ke,pt)/nt:H}function _1(Ke){return function(pt){return pt==null?n:pt[Ke]}}function zv(Ke){return function(pt){return Ke==null?n:Ke[pt]}}function Th(Ke,pt,nt,Sn,yr){return yr(Ke,function(vi,ao,aa){nt=Sn?(Sn=!1,vi):pt(nt,vi,ao,aa)}),nt}function FE(Ke,pt){var nt=Ke.length;for(Ke.sort(pt);nt--;)Ke[nt]=Ke[nt].value;return Ke}function Tm(Ke,pt){for(var nt,Sn=-1,yr=Ke.length;++Sn<yr;){var vi=pt(Ke[Sn]);vi!==n&&(nt=nt===n?vi:nt+vi)}return nt}function ff(Ke,pt){for(var nt=-1,Sn=Array(Ke);++nt<Ke;)Sn[nt]=pt(nt);return Sn}function T1(Ke,pt){return va(pt,function(nt){return[nt,Ke[nt]]})}function dA(Ke){return Ke&&Ke.slice(0,R1(Ke)+1).replace($e,"")}function Ol(Ke){return function(pt){return Ke(pt)}}function C1(Ke,pt){return va(pt,function(nt){return Ke[nt]})}function Ks(Ke,pt){return Ke.has(pt)}function gb(Ke,pt){for(var nt=-1,Sn=Ke.length;++nt<Sn&&_h(pt,Ke[nt],0)>-1;);return nt}function Cm(Ke,pt){for(var nt=Ke.length;nt--&&_h(pt,Ke[nt],0)>-1;);return nt}function k1(Ke,pt){for(var nt=Ke.length,Sn=0;nt--;)Ke[nt]===pt&&++Sn;return Sn}var _g=zv(it),LN=zv(zt);function LC(Ke){return"\\"+Br[Ke]}function h_(Ke,pt){return Ke==null?n:Ke[pt]}function Lp(Ke){return df.test(Ke)}function f_(Ke){return Sg.test(Ke)}function BC(Ke){for(var pt,nt=[];!(pt=Ke.next()).done;)nt.push(pt.value);return nt}function Bp(Ke){var pt=-1,nt=Array(Ke.size);return Ke.forEach(function(Sn,yr){nt[++pt]=[yr,Sn]}),nt}function vb(Ke,pt){return function(nt){return Ke(pt(nt))}}function bu(Ke,pt){for(var nt=-1,Sn=Ke.length,yr=0,vi=[];++nt<Sn;){var ao=Ke[nt];(ao===pt||ao===d)&&(Ke[nt]=d,vi[yr++]=nt)}return vi}function zu(Ke){var pt=-1,nt=Array(Ke.size);return Ke.forEach(function(Sn){nt[++pt]=Sn}),nt}function Ab(Ke){var pt=-1,nt=Array(Ke.size);return Ke.forEach(function(Sn){nt[++pt]=[Sn,Sn]}),nt}function uc(Ke,pt,nt){for(var Sn=nt-1,yr=Ke.length;++Sn<yr;)if(Ke[Sn]===pt)return Sn;return-1}function Qd(Ke,pt,nt){for(var Sn=nt+1;Sn--;)if(Ke[Sn]===pt)return Sn;return Sn}function hl(Ke){return Lp(Ke)?DC(Ke):IN(Ke)}function dc(Ke){return Lp(Ke)?$C(Ke):PN(Ke)}function R1(Ke){for(var pt=Ke.length;pt--&&qe.test(Ke.charAt(pt)););return pt}var pf=zv(Gn);function DC(Ke){for(var pt=Eg.lastIndex=0;Eg.test(Ke);)++pt;return pt}function $C(Ke){return Ke.match(Eg)||[]}function Gv(Ke){return Ke.match(pb)||[]}var Tg=function Ke(pt){pt=pt==null?ma:Fc.defaults(ma.Object(),pt,Fc.pick(ma,E1));var nt=pt.Array,Sn=pt.Date,yr=pt.Error,vi=pt.Function,ao=pt.Math,aa=pt.Object,hA=pt.RegExp,yb=pt.String,Zl=pt.TypeError,fA=nt.prototype,jE=vi.prototype,mf=aa.prototype,pA=pt["__core-js_shared__"],mA=jE.toString,Yi=mf.hasOwnProperty,FC=0,HE=function(){var O=/[^.]+$/.exec(pA&&pA.keys&&pA.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),M1=mf.toString,jC=mA.call(aa),p_=ma._,LO=hA("^"+mA.call(Yi).replace(on,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N1=Yl?pt.Buffer:n,Ch=pt.Symbol,I1=pt.Uint8Array,jf=N1?N1.allocUnsafe:n,xu=vb(aa.getPrototypeOf,aa),m_=aa.create,g_=mf.propertyIsEnumerable,gA=fA.splice,UE=Ch?Ch.isConcatSpreadable:n,Cg=Ch?Ch.iterator:n,qd=Ch?Ch.toStringTag:n,Vv=function(){try{var O=t0(aa,"defineProperty");return O({},"",{}),O}catch{}}(),HC=pt.clearTimeout!==ma.clearTimeout&&pt.clearTimeout,UC=Sn&&Sn.now!==ma.Date.now&&Sn.now,v_=pt.setTimeout!==ma.setTimeout&&pt.setTimeout,vA=ao.ceil,gf=ao.floor,bb=aa.getOwnPropertySymbols,BN=N1?N1.isBuffer:n,Kv=pt.isFinite,zC=fA.join,DN=vb(aa.keys,aa),Ga=ao.max,fo=ao.min,zE=Sn.now,P1=pt.parseInt,rd=ao.random,GE=fA.reverse,O1=t0(pt,"DataView"),Yd=t0(pt,"Map"),xb=t0(pt,"Promise"),Dp=t0(pt,"Set"),km=t0(pt,"WeakMap"),$p=t0(aa,"create"),Wv=km&&new km,Fp={},GC=n0(O1),$N=n0(Yd),FN=n0(xb),BO=n0(Dp),jN=n0(km),Qv=Ch?Ch.prototype:n,kh=Qv?Qv.valueOf:n,A_=Qv?Qv.toString:n;function ve(O){if(So(O)&&!Ir(O)&&!(O instanceof Wr)){if(O instanceof nl)return O;if(Yi.call(O,"__wrapped__"))return pW(O)}return new nl(O)}var jp=function(){function O(){}return function(F){if(!oo(F))return{};if(m_)return m_(F);O.prototype=F;var G=new O;return O.prototype=n,G}}();function qv(){}function nl(O,F){this.__wrapped__=O,this.__actions__=[],this.__chain__=!!F,this.__index__=0,this.__values__=n}ve.templateSettings={escape:xt,evaluate:Cn,interpolate:Kt,variable:"",imports:{_:ve}},ve.prototype=qv.prototype,ve.prototype.constructor=ve,nl.prototype=jp(qv.prototype),nl.prototype.constructor=nl;function Wr(O){this.__wrapped__=O,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function y_(){var O=new Wr(this.__wrapped__);return O.__actions__=Ei(this.__actions__),O.__dir__=this.__dir__,O.__filtered__=this.__filtered__,O.__iteratees__=Ei(this.__iteratees__),O.__takeCount__=this.__takeCount__,O.__views__=Ei(this.__views__),O}function HN(){if(this.__filtered__){var O=new Wr(this);O.__dir__=-1,O.__filtered__=!0}else O=this.clone(),O.__dir__*=-1;return O}function VC(){var O=this.__wrapped__.value(),F=this.__dir__,G=Ir(O),re=F<0,fe=G?O.length:0,be=Mke(0,fe,this.__views__),Pe=be.start,Ue=be.end,Qe=Ue-Pe,_t=re?Ue:Pe-1,Ct=this.__iteratees__,$t=Ct.length,mn=0,zn=fo(Qe,this.__takeCount__);if(!G||!re&&fe==Qe&&zn==Qe)return at(O,this.__actions__);var fr=[];e:for(;Qe--&&mn<zn;){_t+=F;for(var Gr=-1,pr=O[_t];++Gr<$t;){var Zr=Ct[Gr],yi=Zr.iteratee,eu=Zr.type,nc=yi(pr);if(eu==T)pr=nc;else if(!nc){if(eu==b)continue e;break e}}fr[mn++]=pr}return fr}Wr.prototype=jp(qv.prototype),Wr.prototype.constructor=Wr;function vf(O){var F=-1,G=O==null?0:O.length;for(this.clear();++F<G;){var re=O[F];this.set(re[0],re[1])}}function b_(){this.__data__=$p?$p(null):{},this.size=0}function DO(O){var F=this.has(O)&&delete this.__data__[O];return this.size-=F?1:0,F}function x_(O){var F=this.__data__;if($p){var G=F[O];return G===c?n:G}return Yi.call(F,O)?F[O]:n}function E_(O){var F=this.__data__;return $p?F[O]!==n:Yi.call(F,O)}function S_(O,F){var G=this.__data__;return this.size+=this.has(O)?0:1,G[O]=$p&&F===n?c:F,this}vf.prototype.clear=b_,vf.prototype.delete=DO,vf.prototype.get=x_,vf.prototype.has=E_,vf.prototype.set=S_;function Eu(O){var F=-1,G=O==null?0:O.length;for(this.clear();++F<G;){var re=O[F];this.set(re[0],re[1])}}function w_(){this.__data__=[],this.size=0}function VE(O){var F=this.__data__,G=Gu(F,O);if(G<0)return!1;var re=F.length-1;return G==re?F.pop():gA.call(F,G,1),--this.size,!0}function KC(O){var F=this.__data__,G=Gu(F,O);return G<0?n:F[G][1]}function WC(O){return Gu(this.__data__,O)>-1}function QC(O,F){var G=this.__data__,re=Gu(G,O);return re<0?(++this.size,G.push([O,F])):G[re][1]=F,this}Eu.prototype.clear=w_,Eu.prototype.delete=VE,Eu.prototype.get=KC,Eu.prototype.has=WC,Eu.prototype.set=QC;function Su(O){var F=-1,G=O==null?0:O.length;for(this.clear();++F<G;){var re=O[F];this.set(re[0],re[1])}}function qC(){this.size=0,this.__data__={hash:new vf,map:new(Yd||Eu),string:new vf}}function Eb(O){var F=dk(this,O).delete(O);return this.size-=F?1:0,F}function YC(O){return dk(this,O).get(O)}function JC(O){return dk(this,O).has(O)}function KE(O,F){var G=dk(this,O),re=G.size;return G.set(O,F),this.size+=G.size==re?0:1,this}Su.prototype.clear=qC,Su.prototype.delete=Eb,Su.prototype.get=YC,Su.prototype.has=JC,Su.prototype.set=KE;function Jd(O){var F=-1,G=O==null?0:O.length;for(this.__data__=new Su;++F<G;)this.add(O[F])}function ZC(O){return this.__data__.set(O,c),this}function Aa(O){return this.__data__.has(O)}Jd.prototype.add=Jd.prototype.push=ZC,Jd.prototype.has=Aa;function ts(O){var F=this.__data__=new Eu(O);this.size=F.size}function rl(){this.__data__=new Eu,this.size=0}function Zc(O){var F=this.__data__,G=F.delete(O);return this.size=F.size,G}function L1(O){return this.__data__.get(O)}function WE(O){return this.__data__.has(O)}function Sd(O,F){var G=this.__data__;if(G instanceof Eu){var re=G.__data__;if(!Yd||re.length<a-1)return re.push([O,F]),this.size=++G.size,this;G=this.__data__=new Su(re)}return G.set(O,F),this.size=G.size,this}ts.prototype.clear=rl,ts.prototype.delete=Zc,ts.prototype.get=L1,ts.prototype.has=WE,ts.prototype.set=Sd;function kg(O,F){var G=Ir(O),re=!G&&r0(O),fe=!G&&!re&&Mm(O),be=!G&&!re&&!fe&&V1(O),Pe=G||re||fe||be,Ue=Pe?ff(O.length,yb):[],Qe=Ue.length;for(var _t in O)(F||Yi.call(O,_t))&&!(Pe&&(_t=="length"||fe&&(_t=="offset"||_t=="parent")||be&&(_t=="buffer"||_t=="byteLength"||_t=="byteOffset")||Kf(_t,Qe)))&&Ue.push(_t);return Ue}function AA(O){var F=O.length;return F?O[xe(0,F-1)]:n}function QE(O,F){return hk(Ei(O),jc(F,0,O.length))}function Sb(O){return hk(Ei(O))}function B1(O,F,G){(G!==n&&!_d(O[F],G)||G===n&&!(F in O))&&wu(O,F,G)}function Hf(O,F,G){var re=O[F];(!(Yi.call(O,F)&&_d(re,G))||G===n&&!(F in O))&&wu(O,F,G)}function Gu(O,F){for(var G=O.length;G--;)if(_d(O[G][0],F))return G;return-1}function Rg(O,F,G,re){return Xl(O,function(fe,be,Pe){F(re,fe,G(fe),Pe)}),re}function wd(O,F){return O&&ks(F,$s(F),O)}function Ai(O,F){return O&&ks(F,Cc(F),O)}function wu(O,F,G){F=="__proto__"&&Vv?Vv(O,F,{configurable:!0,enumerable:!0,value:G,writable:!0}):O[F]=G}function D1(O,F){for(var G=-1,re=F.length,fe=nt(re),be=O==null;++G<re;)fe[G]=be?n:i4(O,F[G]);return fe}function jc(O,F,G){return O===O&&(G!==n&&(O=O<=G?O:G),F!==n&&(O=O>=F?O:F)),O}function Ws(O,F,G,re,fe,be){var Pe,Ue=F&h,Qe=F&f,_t=F&p;if(G&&(Pe=fe?G(O,re,fe,be):G(O)),Pe!==n)return Pe;if(!oo(O))return O;var Ct=Ir(O);if(Ct){if(Pe=Ike(O),!Ue)return Ei(O,Pe)}else{var $t=wl(O),mn=$t==ie||$t==he;if(Mm(O))return Za(O,Ue);if($t==Me||$t==K||mn&&!fe){if(Pe=Qe||mn?{}:aW(O),!Ue)return Qe?jO(O,Ai(Pe,O)):ik(O,wd(Pe,O))}else{if(!ea[$t])return fe?O:{};Pe=Pke(O,$t,Ue)}}be||(be=new ts);var zn=be.get(O);if(zn)return zn;be.set(O,Pe),OW(O)?O.forEach(function(pr){Pe.add(Ws(pr,F,G,pr,O,be))}):IW(O)&&O.forEach(function(pr,Zr){Pe.set(Zr,Ws(pr,F,G,Zr,O,be))});var fr=_t?Qe?GO:zO:Qe?Cc:$s,Gr=Ct?n:fr(O);return Vs(Gr||O,function(pr,Zr){Gr&&(Zr=pr,pr=O[Zr]),Hf(Pe,Zr,Ws(pr,F,G,Zr,O,be))}),Pe}function qE(O){var F=$s(O);return function(G){return $1(G,O,F)}}function $1(O,F,G){var re=G.length;if(O==null)return!re;for(O=aa(O);re--;){var fe=G[re],be=F[fe],Pe=O[fe];if(Pe===n&&!(fe in O)||!be(Pe))return!1}return!0}function YE(O,F,G){if(typeof O!="function")throw new Zl(s);return eS(function(){O.apply(n,G)},F)}function Rm(O,F,G,re){var fe=-1,be=hf,Pe=!0,Ue=O.length,Qe=[],_t=F.length;if(!Ue)return Qe;G&&(F=va(F,Ol(G))),re?(be=S1,Pe=!1):F.length>=a&&(be=Ks,Pe=!1,F=new Jd(F));e:for(;++fe<Ue;){var Ct=O[fe],$t=G==null?Ct:G(Ct);if(Ct=re||Ct!==0?Ct:0,Pe&&$t===$t){for(var mn=_t;mn--;)if(F[mn]===$t)continue e;Qe.push(Ct)}else be(F,$t,re)||Qe.push(Ct)}return Qe}var Xl=VK(Ll),F1=VK(Uf,!0);function XC(O,F){var G=!0;return Xl(O,function(re,fe,be){return G=!!F(re,fe,be),G}),G}function Mg(O,F,G){for(var re=-1,fe=O.length;++re<fe;){var be=O[re],Pe=F(be);if(Pe!=null&&(Ue===n?Pe===Pe&&!Xc(Pe):G(Pe,Ue)))var Ue=Pe,Qe=be}return Qe}function Yv(O,F,G,re){var fe=O.length;for(G=jr(G),G<0&&(G=-G>fe?0:fe+G),re=re===n||re>fe?fe:jr(re),re<0&&(re+=fe),re=G>re?0:BW(re);G<re;)O[G++]=F;return O}function wb(O,F){var G=[];return Xl(O,function(re,fe,be){F(re,fe,be)&&G.push(re)}),G}function Ro(O,F,G,re,fe){var be=-1,Pe=O.length;for(G||(G=Lke),fe||(fe=[]);++be<Pe;){var Ue=O[be];F>0&&G(Ue)?F>1?Ro(Ue,F-1,G,re,fe):Wd(fe,Ue):re||(fe[fe.length]=Ue)}return fe}var Jv=KK(),Zd=KK(!0);function Ll(O,F){return O&&Jv(O,F,$s)}function Uf(O,F){return O&&Zd(O,F,$s)}function Ng(O,F){return $c(F,function(G){return Wf(O[G])})}function ec(O,F){F=rr(F,O);for(var G=0,re=F.length;O!=null&&G<re;)O=O[Mh(F[G++])];return G&&G==re?O:n}function _b(O,F,G){var re=F(O);return Ir(O)?re:Wd(re,G(O))}function ns(O){return O==null?O===n?pe:Ee:qd&&qd in aa(O)?Rke(O):Uke(O)}function j1(O,F){return O>F}function $O(O,F){return O!=null&&Yi.call(O,F)}function UN(O,F){return O!=null&&F in aa(O)}function ek(O,F,G){return O>=fo(F,G)&&O<Ga(F,G)}function Zv(O,F,G){for(var re=G?S1:hf,fe=O[0].length,be=O.length,Pe=be,Ue=nt(be),Qe=1/0,_t=[];Pe--;){var Ct=O[Pe];Pe&&F&&(Ct=va(Ct,Ol(F))),Qe=fo(Ct.length,Qe),Ue[Pe]=!G&&(F||fe>=120&&Ct.length>=120)?new Jd(Pe&&Ct):n}Ct=O[0];var $t=-1,mn=Ue[0];e:for(;++$t<fe&&_t.length<Qe;){var zn=Ct[$t],fr=F?F(zn):zn;if(zn=G||zn!==0?zn:0,!(mn?Ks(mn,fr):re(_t,fr,G))){for(Pe=be;--Pe;){var Gr=Ue[Pe];if(!(Gr?Ks(Gr,fr):re(O[Pe],fr,G)))continue e}mn&&mn.push(fr),_t.push(zn)}}return _t}function __(O,F,G,re){return Ll(O,function(fe,be,Pe){F(re,G(fe),be,Pe)}),re}function Rh(O,F,G){F=rr(F,O),O=cW(O,F);var re=O==null?O:O[Mh(Vu(F))];return re==null?n:es(re,O,G)}function T_(O){return So(O)&&ns(O)==K}function tk(O){return So(O)&&ns(O)==ue}function zf(O){return So(O)&&ns(O)==te}function fl(O,F,G,re,fe){return O===F?!0:O==null||F==null||!So(O)&&!So(F)?O!==O&&F!==F:FO(O,F,G,re,fl,fe)}function FO(O,F,G,re,fe,be){var Pe=Ir(O),Ue=Ir(F),Qe=Pe?Q:wl(O),_t=Ue?Q:wl(F);Qe=Qe==K?Me:Qe,_t=_t==K?Me:_t;var Ct=Qe==Me,$t=_t==Me,mn=Qe==_t;if(mn&&Mm(O)){if(!Mm(F))return!1;Pe=!0,Ct=!1}if(mn&&!Ct)return be||(be=new ts),Pe||V1(O)?nW(O,F,G,re,fe,be):Cke(O,F,Qe,G,re,fe,be);if(!(G&m)){var zn=Ct&&Yi.call(O,"__wrapped__"),fr=$t&&Yi.call(F,"__wrapped__");if(zn||fr){var Gr=zn?O.value():O,pr=fr?F.value():F;return be||(be=new ts),fe(Gr,pr,G,re,be)}}return mn?(be||(be=new ts),kke(O,F,G,re,fe,be)):!1}function zN(O){return So(O)&&wl(O)==de}function H1(O,F,G,re){var fe=G.length,be=fe,Pe=!re;if(O==null)return!be;for(O=aa(O);fe--;){var Ue=G[fe];if(Pe&&Ue[2]?Ue[1]!==O[Ue[0]]:!(Ue[0]in O))return!1}for(;++fe<be;){Ue=G[fe];var Qe=Ue[0],_t=O[Qe],Ct=Ue[1];if(Pe&&Ue[2]){if(_t===n&&!(Qe in O))return!1}else{var $t=new ts;if(re)var mn=re(_t,Ct,Qe,O,F,$t);if(!(mn===n?fl(Ct,_t,m|g,re,$t):mn))return!1}}return!0}function Ig(O){if(!oo(O)||Dke(O))return!1;var F=Wf(O)?LO:Un;return F.test(n0(O))}function C_(O){return So(O)&&ns(O)==je}function GN(O){return So(O)&&wl(O)==ye}function Xv(O){return So(O)&&Ak(O.length)&&!!li[ns(O)]}function k_(O){return typeof O=="function"?O:O==null?kc:typeof O=="object"?Ir(O)?R_(O[0],O[1]):nk(O):WW(O)}function Tb(O){if(!XE(O))return DN(O);var F=[];for(var G in aa(O))Yi.call(O,G)&&G!="constructor"&&F.push(G);return F}function VN(O){if(!oo(O))return Hke(O);var F=XE(O),G=[];for(var re in O)re=="constructor"&&(F||!Yi.call(O,re))||G.push(re);return G}function Cb(O,F){return O<F}function Pg(O,F){var G=-1,re=Tc(O)?nt(O.length):[];return Xl(O,function(fe,be,Pe){re[++G]=F(fe,be,Pe)}),re}function nk(O){var F=KO(O);return F.length==1&&F[0][2]?sW(F[0][0],F[0][1]):function(G){return G===O||H1(G,O,F)}}function R_(O,F){return QO(O)&&oW(F)?sW(Mh(O),F):function(G){var re=i4(G,O);return re===n&&re===F?a4(G,O):fl(F,re,m|g)}}function e0(O,F,G,re,fe){O!==F&&Jv(F,function(be,Pe){if(fe||(fe=new ts),oo(be))M_(O,F,Pe,G,e0,re,fe);else{var Ue=re?re(YO(O,Pe),be,Pe+"",O,F,fe):n;Ue===n&&(Ue=be),B1(O,Pe,Ue)}},Cc)}function M_(O,F,G,re,fe,be,Pe){var Ue=YO(O,G),Qe=YO(F,G),_t=Pe.get(Qe);if(_t){B1(O,G,_t);return}var Ct=be?be(Ue,Qe,G+"",O,F,Pe):n,$t=Ct===n;if($t){var mn=Ir(Qe),zn=!mn&&Mm(Qe),fr=!mn&&!zn&&V1(Qe);Ct=Qe,mn||zn||fr?Ir(Ue)?Ct=Ue:Lo(Ue)?Ct=Ei(Ue):zn?($t=!1,Ct=Za(Qe,!0)):fr?($t=!1,Ct=wi(Qe,!0)):Ct=[]:tS(Qe)||r0(Qe)?(Ct=Ue,r0(Ue)?Ct=DW(Ue):(!oo(Ue)||Wf(Ue))&&(Ct=aW(Qe))):$t=!1}$t&&(Pe.set(Qe,Ct),fe(Ct,Qe,re,be,Pe),Pe.delete(Qe)),B1(O,G,Ct)}function yA(O,F){var G=O.length;if(G)return F+=F<0?G:0,Kf(F,G)?O[F]:n}function kb(O,F,G){F.length?F=va(F,function(be){return Ir(be)?function(Pe){return ec(Pe,be.length===1?be[0]:be)}:be}):F=[kc];var re=-1;F=va(F,Ol(ar()));var fe=Pg(O,function(be,Pe,Ue){var Qe=va(F,function(_t){return _t(be)});return{criteria:Qe,index:++re,value:be}});return FE(fe,function(be,Pe){return Sa(be,Pe,G)})}function N_(O,F){return JE(O,F,function(G,re){return a4(O,re)})}function JE(O,F,G){for(var re=-1,fe=F.length,be={};++re<fe;){var Pe=F[re],Ue=ec(O,Pe);G(Ue,Pe)&&bt(be,rr(Pe,O),Ue)}return be}function I_(O){return function(F){return ec(F,O)}}function _c(O,F,G,re){var fe=re?$E:_h,be=-1,Pe=F.length,Ue=O;for(O===F&&(F=Ei(F)),G&&(Ue=va(O,Ol(G)));++be<Pe;)for(var Qe=0,_t=F[be],Ct=G?G(_t):_t;(Qe=fe(Ue,Ct,Qe,re))>-1;)Ue!==O&&gA.call(Ue,Qe,1),gA.call(O,Qe,1);return O}function rk(O,F){for(var G=O?F.length:0,re=G-1;G--;){var fe=F[G];if(G==re||fe!==be){var be=fe;Kf(fe)?gA.call(O,fe,1):Ae(O,fe)}}return O}function xe(O,F){return O+gf(rd()*(F-O+1))}function Re(O,F,G,re){for(var fe=-1,be=Ga(vA((F-O)/(G||1)),0),Pe=nt(be);be--;)Pe[re?be:++fe]=O,O+=G;return Pe}function Ve(O,F){var G="";if(!O||F<1||F>B)return G;do F%2&&(G+=O),F=gf(F/2),F&&(O+=O);while(F);return G}function We(O,F){return JO(lW(O,F,kc),O+"")}function Nt(O){return AA(K1(O))}function jt(O,F){var G=K1(O);return hk(G,jc(F,0,G.length))}function bt(O,F,G,re){if(!oo(O))return O;F=rr(F,O);for(var fe=-1,be=F.length,Pe=be-1,Ue=O;Ue!=null&&++fe<be;){var Qe=Mh(F[fe]),_t=G;if(Qe==="__proto__"||Qe==="constructor"||Qe==="prototype")return O;if(fe!=Pe){var Ct=Ue[Qe];_t=re?re(Ct,Qe,Ue):n,_t===n&&(_t=oo(Ct)?Ct:Kf(F[fe+1])?[]:{})}Hf(Ue,Qe,_t),Ue=Ue[Qe]}return O}var Xt=Wv?function(O,F){return Wv.set(O,F),O}:kc,cn=Vv?function(O,F){return Vv(O,"toString",{configurable:!0,enumerable:!1,value:s4(F),writable:!0})}:kc;function Fn(O){return hk(K1(O))}function Nn(O,F,G){var re=-1,fe=O.length;F<0&&(F=-F>fe?0:fe+F),G=G>fe?fe:G,G<0&&(G+=fe),fe=F>G?0:G-F>>>0,F>>>=0;for(var be=nt(fe);++re<fe;)be[re]=O[re+F];return be}function Vr(O,F){var G;return Xl(O,function(re,fe,be){return G=F(re,fe,be),!G}),!!G}function er(O,F,G){var re=0,fe=O==null?re:O.length;if(typeof F=="number"&&F===F&&fe<=z){for(;re<fe;){var be=re+fe>>>1,Pe=O[be];Pe!==null&&!Xc(Pe)&&(G?Pe<=F:Pe<F)?re=be+1:fe=be}return fe}return Jr(O,F,kc,G)}function Jr(O,F,G,re){var fe=0,be=O==null?0:O.length;if(be===0)return 0;F=G(F);for(var Pe=F!==F,Ue=F===null,Qe=Xc(F),_t=F===n;fe<be;){var Ct=gf((fe+be)/2),$t=G(O[Ct]),mn=$t!==n,zn=$t===null,fr=$t===$t,Gr=Xc($t);if(Pe)var pr=re||fr;else _t?pr=fr&&(re||mn):Ue?pr=fr&&mn&&(re||!zn):Qe?pr=fr&&mn&&!zn&&(re||!Gr):zn||Gr?pr=!1:pr=re?$t<=F:$t<F;pr?fe=Ct+1:be=Ct}return fo(be,$)}function ni(O,F){for(var G=-1,re=O.length,fe=0,be=[];++G<re;){var Pe=O[G],Ue=F?F(Pe):Pe;if(!G||!_d(Ue,Qe)){var Qe=Ue;be[fe++]=Pe===0?0:Pe}}return be}function V(O){return typeof O=="number"?O:Xc(O)?H:+O}function W(O){if(typeof O=="string")return O;if(Ir(O))return va(O,W)+"";if(Xc(O))return A_?A_.call(O):"";var F=O+"";return F=="0"&&1/O==-D?"-0":F}function ae(O,F,G){var re=-1,fe=hf,be=O.length,Pe=!0,Ue=[],Qe=Ue;if(G)Pe=!1,fe=S1;else if(be>=a){var _t=F?null:_ke(O);if(_t)return zu(_t);Pe=!1,fe=Ks,Qe=new Jd}else Qe=F?[]:Ue;e:for(;++re<be;){var Ct=O[re],$t=F?F(Ct):Ct;if(Ct=G||Ct!==0?Ct:0,Pe&&$t===$t){for(var mn=Qe.length;mn--;)if(Qe[mn]===$t)continue e;F&&Qe.push($t),Ue.push(Ct)}else fe(Qe,$t,G)||(Qe!==Ue&&Qe.push($t),Ue.push(Ct))}return Ue}function Ae(O,F){return F=rr(F,O),O=cW(O,F),O==null||delete O[Mh(Vu(F))]}function we(O,F,G,re){return bt(O,F,G(ec(O,F)),re)}function He(O,F,G,re){for(var fe=O.length,be=re?fe:-1;(re?be--:++be<fe)&&F(O[be],be,O););return G?Nn(O,re?0:be,re?be+1:fe):Nn(O,re?be+1:0,re?fe:be)}function at(O,F){var G=O;return G instanceof Wr&&(G=G.value()),mb(F,function(re,fe){return fe.func.apply(fe.thisArg,Wd([re],fe.args))},G)}function Et(O,F,G){var re=O.length;if(re<2)return re?ae(O[0]):[];for(var fe=-1,be=nt(re);++fe<re;)for(var Pe=O[fe],Ue=-1;++Ue<re;)Ue!=fe&&(be[fe]=Rm(be[fe]||Pe,O[Ue],F,G));return ae(Ro(be,1),F,G)}function Tt(O,F,G){for(var re=-1,fe=O.length,be=F.length,Pe={};++re<fe;){var Ue=re<be?F[re]:n;G(Pe,O[re],Ue)}return Pe}function wn(O){return Lo(O)?O:[]}function hr(O){return typeof O=="function"?O:kc}function rr(O,F){return Ir(O)?O:QO(O,F)?[O]:fW(sa(O))}var xr=We;function ui(O,F,G){var re=O.length;return G=G===n?re:G,!F&&G>=re?O:Nn(O,F,G)}var Ji=HC||function(O){return ma.clearTimeout(O)};function Za(O,F){if(F)return O.slice();var G=O.length,re=jf?jf(G):new O.constructor(G);return O.copy(re),re}function Vt(O){var F=new O.constructor(O.byteLength);return new I1(F).set(new I1(O)),F}function Lt(O,F){var G=F?Vt(O.buffer):O.buffer;return new O.constructor(G,O.byteOffset,O.byteLength)}function bn(O){var F=new O.constructor(O.source,rt.exec(O));return F.lastIndex=O.lastIndex,F}function Fr(O){return kh?aa(kh.call(O)):{}}function wi(O,F){var G=F?Vt(O.buffer):O.buffer;return new O.constructor(G,O.byteOffset,O.length)}function ys(O,F){if(O!==F){var G=O!==n,re=O===null,fe=O===O,be=Xc(O),Pe=F!==n,Ue=F===null,Qe=F===F,_t=Xc(F);if(!Ue&&!_t&&!be&&O>F||be&&Pe&&Qe&&!Ue&&!_t||re&&Pe&&Qe||!G&&Qe||!fe)return 1;if(!re&&!be&&!_t&&O<F||_t&&G&&fe&&!re&&!be||Ue&&G&&fe||!Pe&&fe||!Qe)return-1}return 0}function Sa(O,F,G){for(var re=-1,fe=O.criteria,be=F.criteria,Pe=fe.length,Ue=G.length;++re<Pe;){var Qe=ys(fe[re],be[re]);if(Qe){if(re>=Ue)return Qe;var _t=G[re];return Qe*(_t=="desc"?-1:1)}}return O.index-F.index}function po(O,F,G,re){for(var fe=-1,be=O.length,Pe=G.length,Ue=-1,Qe=F.length,_t=Ga(be-Pe,0),Ct=nt(Qe+_t),$t=!re;++Ue<Qe;)Ct[Ue]=F[Ue];for(;++fe<Pe;)($t||fe<be)&&(Ct[G[fe]]=O[fe]);for(;_t--;)Ct[Ue++]=O[fe++];return Ct}function pl(O,F,G,re){for(var fe=-1,be=O.length,Pe=-1,Ue=G.length,Qe=-1,_t=F.length,Ct=Ga(be-Ue,0),$t=nt(Ct+_t),mn=!re;++fe<Ct;)$t[fe]=O[fe];for(var zn=fe;++Qe<_t;)$t[zn+Qe]=F[Qe];for(;++Pe<Ue;)(mn||fe<be)&&($t[zn+G[Pe]]=O[fe++]);return $t}function Ei(O,F){var G=-1,re=O.length;for(F||(F=nt(re));++G<re;)F[G]=O[G];return F}function ks(O,F,G,re){var fe=!G;G||(G={});for(var be=-1,Pe=F.length;++be<Pe;){var Ue=F[be],Qe=re?re(G[Ue],O[Ue],Ue,G,O):n;Qe===n&&(Qe=O[Ue]),fe?wu(G,Ue,Qe):Hf(G,Ue,Qe)}return G}function ik(O,F){return ks(O,WO(O),F)}function jO(O,F){return ks(O,rW(O),F)}function ak(O,F){return function(G,re){var fe=Ir(G)?Op:Rg,be=F?F():{};return fe(G,O,ar(re,2),be)}}function U1(O){return We(function(F,G){var re=-1,fe=G.length,be=fe>1?G[fe-1]:n,Pe=fe>2?G[2]:n;for(be=O.length>3&&typeof be=="function"?(fe--,be):n,Pe&&tc(G[0],G[1],Pe)&&(be=fe<3?n:be,fe=1),F=aa(F);++re<fe;){var Ue=G[re];Ue&&O(F,Ue,re,be)}return F})}function VK(O,F){return function(G,re){if(G==null)return G;if(!Tc(G))return O(G,re);for(var fe=G.length,be=F?fe:-1,Pe=aa(G);(F?be--:++be<fe)&&re(Pe[be],be,Pe)!==!1;);return G}}function KK(O){return function(F,G,re){for(var fe=-1,be=aa(F),Pe=re(F),Ue=Pe.length;Ue--;){var Qe=Pe[O?Ue:++fe];if(G(be[Qe],Qe,be)===!1)break}return F}}function Eke(O,F,G){var re=F&v,fe=ZE(O);function be(){var Pe=this&&this!==ma&&this instanceof be?fe:O;return Pe.apply(re?G:this,arguments)}return be}function WK(O){return function(F){F=sa(F);var G=Lp(F)?dc(F):n,re=G?G[0]:F.charAt(0),fe=G?ui(G,1).join(""):F.slice(1);return re[O]()+fe}}function z1(O){return function(F){return mb(VW(GW(F).replace(fb,"")),O,"")}}function ZE(O){return function(){var F=arguments;switch(F.length){case 0:return new O;case 1:return new O(F[0]);case 2:return new O(F[0],F[1]);case 3:return new O(F[0],F[1],F[2]);case 4:return new O(F[0],F[1],F[2],F[3]);case 5:return new O(F[0],F[1],F[2],F[3],F[4]);case 6:return new O(F[0],F[1],F[2],F[3],F[4],F[5]);case 7:return new O(F[0],F[1],F[2],F[3],F[4],F[5],F[6])}var G=jp(O.prototype),re=O.apply(G,F);return oo(re)?re:G}}function Ske(O,F,G){var re=ZE(O);function fe(){for(var be=arguments.length,Pe=nt(be),Ue=be,Qe=G1(fe);Ue--;)Pe[Ue]=arguments[Ue];var _t=be<3&&Pe[0]!==Qe&&Pe[be-1]!==Qe?[]:bu(Pe,Qe);if(be-=_t.length,be<G)return ZK(O,F,ok,fe.placeholder,n,Pe,_t,n,n,G-be);var Ct=this&&this!==ma&&this instanceof fe?re:O;return es(Ct,this,Pe)}return fe}function QK(O){return function(F,G,re){var fe=aa(F);if(!Tc(F)){var be=ar(G,3);F=$s(F),G=function(Ue){return be(fe[Ue],Ue,fe)}}var Pe=O(F,G,re);return Pe>-1?fe[be?F[Pe]:Pe]:n}}function qK(O){return Vf(function(F){var G=F.length,re=G,fe=nl.prototype.thru;for(O&&F.reverse();re--;){var be=F[re];if(typeof be!="function")throw new Zl(s);if(fe&&!Pe&&uk(be)=="wrapper")var Pe=new nl([],!0)}for(re=Pe?re:G;++re<G;){be=F[re];var Ue=uk(be),Qe=Ue=="wrapper"?VO(be):n;Qe&&qO(Qe[0])&&Qe[1]==(C|S|w|R)&&!Qe[4].length&&Qe[9]==1?Pe=Pe[uk(Qe[0])].apply(Pe,Qe[3]):Pe=be.length==1&&qO(be)?Pe[Ue]():Pe.thru(be)}return function(){var _t=arguments,Ct=_t[0];if(Pe&&_t.length==1&&Ir(Ct))return Pe.plant(Ct).value();for(var $t=0,mn=G?F[$t].apply(this,_t):Ct;++$t<G;)mn=F[$t].call(this,mn);return mn}})}function ok(O,F,G,re,fe,be,Pe,Ue,Qe,_t){var Ct=F&C,$t=F&v,mn=F&A,zn=F&(S|x),fr=F&k,Gr=mn?n:ZE(O);function pr(){for(var Zr=arguments.length,yi=nt(Zr),eu=Zr;eu--;)yi[eu]=arguments[eu];if(zn)var nc=G1(pr),tu=k1(yi,nc);if(re&&(yi=po(yi,re,fe,zn)),be&&(yi=pl(yi,be,Pe,zn)),Zr-=tu,zn&&Zr<_t){var Bo=bu(yi,nc);return ZK(O,F,ok,pr.placeholder,G,yi,Bo,Ue,Qe,_t-Zr)}var Td=$t?G:this,qf=mn?Td[O]:O;return Zr=yi.length,Ue?yi=zke(yi,Ue):fr&&Zr>1&&yi.reverse(),Ct&&Qe<Zr&&(yi.length=Qe),this&&this!==ma&&this instanceof pr&&(qf=Gr||ZE(qf)),qf.apply(Td,yi)}return pr}function YK(O,F){return function(G,re){return __(G,O,F(re),{})}}function sk(O,F){return function(G,re){var fe;if(G===n&&re===n)return F;if(G!==n&&(fe=G),re!==n){if(fe===n)return re;typeof G=="string"||typeof re=="string"?(G=W(G),re=W(re)):(G=V(G),re=V(re)),fe=O(G,re)}return fe}}function HO(O){return Vf(function(F){return F=va(F,Ol(ar())),We(function(G){var re=this;return O(F,function(fe){return es(fe,re,G)})})})}function lk(O,F){F=F===n?" ":W(F);var G=F.length;if(G<2)return G?Ve(F,O):F;var re=Ve(F,vA(O/hl(F)));return Lp(F)?ui(dc(re),0,O).join(""):re.slice(0,O)}function wke(O,F,G,re){var fe=F&v,be=ZE(O);function Pe(){for(var Ue=-1,Qe=arguments.length,_t=-1,Ct=re.length,$t=nt(Ct+Qe),mn=this&&this!==ma&&this instanceof Pe?be:O;++_t<Ct;)$t[_t]=re[_t];for(;Qe--;)$t[_t++]=arguments[++Ue];return es(mn,fe?G:this,$t)}return Pe}function JK(O){return function(F,G,re){return re&&typeof re!="number"&&tc(F,G,re)&&(G=re=n),F=Qf(F),G===n?(G=F,F=0):G=Qf(G),re=re===n?F<G?1:-1:Qf(re),Re(F,G,re,O)}}function ck(O){return function(F,G){return typeof F=="string"&&typeof G=="string"||(F=Ku(F),G=Ku(G)),O(F,G)}}function ZK(O,F,G,re,fe,be,Pe,Ue,Qe,_t){var Ct=F&S,$t=Ct?Pe:n,mn=Ct?n:Pe,zn=Ct?be:n,fr=Ct?n:be;F|=Ct?w:_,F&=~(Ct?_:w),F&y||(F&=~(v|A));var Gr=[O,F,fe,zn,$t,fr,mn,Ue,Qe,_t],pr=G.apply(n,Gr);return qO(O)&&uW(pr,Gr),pr.placeholder=re,dW(pr,O,F)}function UO(O){var F=ao[O];return function(G,re){if(G=Ku(G),re=re==null?0:fo(jr(re),292),re&&Kv(G)){var fe=(sa(G)+"e").split("e"),be=F(fe[0]+"e"+(+fe[1]+re));return fe=(sa(be)+"e").split("e"),+(fe[0]+"e"+(+fe[1]-re))}return F(G)}}var _ke=Dp&&1/zu(new Dp([,-0]))[1]==D?function(O){return new Dp(O)}:u4;function XK(O){return function(F){var G=wl(F);return G==de?Bp(F):G==ye?Ab(F):T1(F,O(F))}}function Gf(O,F,G,re,fe,be,Pe,Ue){var Qe=F&A;if(!Qe&&typeof O!="function")throw new Zl(s);var _t=re?re.length:0;if(_t||(F&=~(w|_),re=fe=n),Pe=Pe===n?Pe:Ga(jr(Pe),0),Ue=Ue===n?Ue:jr(Ue),_t-=fe?fe.length:0,F&_){var Ct=re,$t=fe;re=fe=n}var mn=Qe?n:VO(O),zn=[O,F,G,re,fe,Ct,$t,be,Pe,Ue];if(mn&&jke(zn,mn),O=zn[0],F=zn[1],G=zn[2],re=zn[3],fe=zn[4],Ue=zn[9]=zn[9]===n?Qe?0:O.length:Ga(zn[9]-_t,0),!Ue&&F&(S|x)&&(F&=~(S|x)),!F||F==v)var fr=Eke(O,F,G);else F==S||F==x?fr=Ske(O,F,Ue):(F==w||F==(v|w))&&!fe.length?fr=wke(O,F,G,re):fr=ok.apply(n,zn);var Gr=mn?Xt:uW;return dW(Gr(fr,zn),O,F)}function eW(O,F,G,re){return O===n||_d(O,mf[G])&&!Yi.call(re,G)?F:O}function tW(O,F,G,re,fe,be){return oo(O)&&oo(F)&&(be.set(F,O),e0(O,F,n,tW,be),be.delete(F)),O}function Tke(O){return tS(O)?n:O}function nW(O,F,G,re,fe,be){var Pe=G&m,Ue=O.length,Qe=F.length;if(Ue!=Qe&&!(Pe&&Qe>Ue))return!1;var _t=be.get(O),Ct=be.get(F);if(_t&&Ct)return _t==F&&Ct==O;var $t=-1,mn=!0,zn=G&g?new Jd:n;for(be.set(O,F),be.set(F,O);++$t<Ue;){var fr=O[$t],Gr=F[$t];if(re)var pr=Pe?re(Gr,fr,$t,F,O,be):re(fr,Gr,$t,O,F,be);if(pr!==n){if(pr)continue;mn=!1;break}if(zn){if(!Uv(F,function(Zr,yi){if(!Ks(zn,yi)&&(fr===Zr||fe(fr,Zr,G,re,be)))return zn.push(yi)})){mn=!1;break}}else if(!(fr===Gr||fe(fr,Gr,G,re,be))){mn=!1;break}}return be.delete(O),be.delete(F),mn}function Cke(O,F,G,re,fe,be,Pe){switch(G){case se:if(O.byteLength!=F.byteLength||O.byteOffset!=F.byteOffset)return!1;O=O.buffer,F=F.buffer;case ue:return!(O.byteLength!=F.byteLength||!be(new I1(O),new I1(F)));case X:case te:case ce:return _d(+O,+F);case ne:return O.name==F.name&&O.message==F.message;case je:case me:return O==F+"";case de:var Ue=Bp;case ye:var Qe=re&m;if(Ue||(Ue=zu),O.size!=F.size&&!Qe)return!1;var _t=Pe.get(O);if(_t)return _t==F;re|=g,Pe.set(O,F);var Ct=nW(Ue(O),Ue(F),re,fe,be,Pe);return Pe.delete(O),Ct;case le:if(kh)return kh.call(O)==kh.call(F)}return!1}function kke(O,F,G,re,fe,be){var Pe=G&m,Ue=zO(O),Qe=Ue.length,_t=zO(F),Ct=_t.length;if(Qe!=Ct&&!Pe)return!1;for(var $t=Qe;$t--;){var mn=Ue[$t];if(!(Pe?mn in F:Yi.call(F,mn)))return!1}var zn=be.get(O),fr=be.get(F);if(zn&&fr)return zn==F&&fr==O;var Gr=!0;be.set(O,F),be.set(F,O);for(var pr=Pe;++$t<Qe;){mn=Ue[$t];var Zr=O[mn],yi=F[mn];if(re)var eu=Pe?re(yi,Zr,mn,F,O,be):re(Zr,yi,mn,O,F,be);if(!(eu===n?Zr===yi||fe(Zr,yi,G,re,be):eu)){Gr=!1;break}pr||(pr=mn=="constructor")}if(Gr&&!pr){var nc=O.constructor,tu=F.constructor;nc!=tu&&"constructor"in O&&"constructor"in F&&!(typeof nc=="function"&&nc instanceof nc&&typeof tu=="function"&&tu instanceof tu)&&(Gr=!1)}return be.delete(O),be.delete(F),Gr}function Vf(O){return JO(lW(O,n,vW),O+"")}function zO(O){return _b(O,$s,WO)}function GO(O){return _b(O,Cc,rW)}var VO=Wv?function(O){return Wv.get(O)}:u4;function uk(O){for(var F=O.name+"",G=Fp[F],re=Yi.call(Fp,F)?G.length:0;re--;){var fe=G[re],be=fe.func;if(be==null||be==O)return fe.name}return F}function G1(O){var F=Yi.call(ve,"placeholder")?ve:O;return F.placeholder}function ar(){var O=ve.iteratee||l4;return O=O===l4?k_:O,arguments.length?O(arguments[0],arguments[1]):O}function dk(O,F){var G=O.__data__;return Bke(F)?G[typeof F=="string"?"string":"hash"]:G.map}function KO(O){for(var F=$s(O),G=F.length;G--;){var re=F[G],fe=O[re];F[G]=[re,fe,oW(fe)]}return F}function t0(O,F){var G=h_(O,F);return Ig(G)?G:n}function Rke(O){var F=Yi.call(O,qd),G=O[qd];try{O[qd]=n;var re=!0}catch{}var fe=M1.call(O);return re&&(F?O[qd]=G:delete O[qd]),fe}var WO=bb?function(O){return O==null?[]:(O=aa(O),$c(bb(O),function(F){return g_.call(O,F)}))}:d4,rW=bb?function(O){for(var F=[];O;)Wd(F,WO(O)),O=xu(O);return F}:d4,wl=ns;(O1&&wl(new O1(new ArrayBuffer(1)))!=se||Yd&&wl(new Yd)!=de||xb&&wl(xb.resolve())!=Be||Dp&&wl(new Dp)!=ye||km&&wl(new km)!=Ne)&&(wl=function(O){var F=ns(O),G=F==Me?O.constructor:n,re=G?n0(G):"";if(re)switch(re){case GC:return se;case $N:return de;case FN:return Be;case BO:return ye;case jN:return Ne}return F});function Mke(O,F,G){for(var re=-1,fe=G.length;++re<fe;){var be=G[re],Pe=be.size;switch(be.type){case"drop":O+=Pe;break;case"dropRight":F-=Pe;break;case"take":F=fo(F,O+Pe);break;case"takeRight":O=Ga(O,F-Pe);break}}return{start:O,end:F}}function Nke(O){var F=O.match(Ze);return F?F[1].split(ot):[]}function iW(O,F,G){F=rr(F,O);for(var re=-1,fe=F.length,be=!1;++re<fe;){var Pe=Mh(F[re]);if(!(be=O!=null&&G(O,Pe)))break;O=O[Pe]}return be||++re!=fe?be:(fe=O==null?0:O.length,!!fe&&Ak(fe)&&Kf(Pe,fe)&&(Ir(O)||r0(O)))}function Ike(O){var F=O.length,G=new O.constructor(F);return F&&typeof O[0]=="string"&&Yi.call(O,"index")&&(G.index=O.index,G.input=O.input),G}function aW(O){return typeof O.constructor=="function"&&!XE(O)?jp(xu(O)):{}}function Pke(O,F,G){var re=O.constructor;switch(F){case ue:return Vt(O);case X:case te:return new re(+O);case se:return Lt(O,G);case oe:case ge:case De:case Fe:case Se:case Xe:case Oe:case Ye:case mt:return wi(O,G);case de:return new re;case ce:case me:return new re(O);case je:return bn(O);case ye:return new re;case le:return Fr(O)}}function Oke(O,F){var G=F.length;if(!G)return O;var re=G-1;return F[re]=(G>1?"& ":"")+F[re],F=F.join(G>2?", ":" "),O.replace(yt,`{
/* [wrapped with `+F+`] */
`)}function Lke(O){return Ir(O)||r0(O)||!!(UE&&O&&O[UE])}function Kf(O,F){var G=typeof O;return F=F??B,!!F&&(G=="number"||G!="symbol"&&br.test(O))&&O>-1&&O%1==0&&O<F}function tc(O,F,G){if(!oo(G))return!1;var re=typeof F;return(re=="number"?Tc(G)&&Kf(F,G.length):re=="string"&&F in G)?_d(G[F],O):!1}function QO(O,F){if(Ir(O))return!1;var G=typeof O;return G=="number"||G=="symbol"||G=="boolean"||O==null||Xc(O)?!0:On.test(O)||!rn.test(O)||F!=null&&O in aa(F)}function Bke(O){var F=typeof O;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?O!=="__proto__":O===null}function qO(O){var F=uk(O),G=ve[F];if(typeof G!="function"||!(F in Wr.prototype))return!1;if(O===G)return!0;var re=VO(G);return!!re&&O===re[0]}function Dke(O){return!!HE&&HE in O}var $ke=pA?Wf:h4;function XE(O){var F=O&&O.constructor,G=typeof F=="function"&&F.prototype||mf;return O===G}function oW(O){return O===O&&!oo(O)}function sW(O,F){return function(G){return G==null?!1:G[O]===F&&(F!==n||O in aa(G))}}function Fke(O){var F=gk(O,function(re){return G.size===u&&G.clear(),re}),G=F.cache;return F}function jke(O,F){var G=O[1],re=F[1],fe=G|re,be=fe<(v|A|C),Pe=re==C&&G==S||re==C&&G==R&&O[7].length<=F[8]||re==(C|R)&&F[7].length<=F[8]&&G==S;if(!(be||Pe))return O;re&v&&(O[2]=F[2],fe|=G&v?0:y);var Ue=F[3];if(Ue){var Qe=O[3];O[3]=Qe?po(Qe,Ue,F[4]):Ue,O[4]=Qe?bu(O[3],d):F[4]}return Ue=F[5],Ue&&(Qe=O[5],O[5]=Qe?pl(Qe,Ue,F[6]):Ue,O[6]=Qe?bu(O[5],d):F[6]),Ue=F[7],Ue&&(O[7]=Ue),re&C&&(O[8]=O[8]==null?F[8]:fo(O[8],F[8])),O[9]==null&&(O[9]=F[9]),O[0]=F[0],O[1]=fe,O}function Hke(O){var F=[];if(O!=null)for(var G in aa(O))F.push(G);return F}function Uke(O){return M1.call(O)}function lW(O,F,G){return F=Ga(F===n?O.length-1:F,0),function(){for(var re=arguments,fe=-1,be=Ga(re.length-F,0),Pe=nt(be);++fe<be;)Pe[fe]=re[F+fe];fe=-1;for(var Ue=nt(F+1);++fe<F;)Ue[fe]=re[fe];return Ue[F]=G(Pe),es(O,this,Ue)}}function cW(O,F){return F.length<2?O:ec(O,Nn(F,0,-1))}function zke(O,F){for(var G=O.length,re=fo(F.length,G),fe=Ei(O);re--;){var be=F[re];O[re]=Kf(be,G)?fe[be]:n}return O}function YO(O,F){if(!(F==="constructor"&&typeof O[F]=="function")&&F!="__proto__")return O[F]}var uW=hW(Xt),eS=v_||function(O,F){return ma.setTimeout(O,F)},JO=hW(cn);function dW(O,F,G){var re=F+"";return JO(O,Oke(re,Gke(Nke(re),G)))}function hW(O){var F=0,G=0;return function(){var re=zE(),fe=I-(re-G);if(G=re,fe>0){if(++F>=L)return arguments[0]}else F=0;return O.apply(n,arguments)}}function hk(O,F){var G=-1,re=O.length,fe=re-1;for(F=F===n?re:F;++G<F;){var be=xe(G,fe),Pe=O[be];O[be]=O[G],O[G]=Pe}return O.length=F,O}var fW=Fke(function(O){var F=[];return O.charCodeAt(0)===46&&F.push(""),O.replace(an,function(G,re,fe,be){F.push(fe?be.replace(Gt,"$1"):re||G)}),F});function Mh(O){if(typeof O=="string"||Xc(O))return O;var F=O+"";return F=="0"&&1/O==-D?"-0":F}function n0(O){if(O!=null){try{return mA.call(O)}catch{}try{return O+""}catch{}}return""}function Gke(O,F){return Vs(Z,function(G){var re="_."+G[0];F&G[1]&&!hf(O,re)&&O.push(re)}),O.sort()}function pW(O){if(O instanceof Wr)return O.clone();var F=new nl(O.__wrapped__,O.__chain__);return F.__actions__=Ei(O.__actions__),F.__index__=O.__index__,F.__values__=O.__values__,F}function Vke(O,F,G){(G?tc(O,F,G):F===n)?F=1:F=Ga(jr(F),0);var re=O==null?0:O.length;if(!re||F<1)return[];for(var fe=0,be=0,Pe=nt(vA(re/F));fe<re;)Pe[be++]=Nn(O,fe,fe+=F);return Pe}function Kke(O){for(var F=-1,G=O==null?0:O.length,re=0,fe=[];++F<G;){var be=O[F];be&&(fe[re++]=be)}return fe}function Wke(){var O=arguments.length;if(!O)return[];for(var F=nt(O-1),G=arguments[0],re=O;re--;)F[re-1]=arguments[re];return Wd(Ir(G)?Ei(G):[G],Ro(F,1))}var Qke=We(function(O,F){return Lo(O)?Rm(O,Ro(F,1,Lo,!0)):[]}),qke=We(function(O,F){var G=Vu(F);return Lo(G)&&(G=n),Lo(O)?Rm(O,Ro(F,1,Lo,!0),ar(G,2)):[]}),Yke=We(function(O,F){var G=Vu(F);return Lo(G)&&(G=n),Lo(O)?Rm(O,Ro(F,1,Lo,!0),n,G):[]});function Jke(O,F,G){var re=O==null?0:O.length;return re?(F=G||F===n?1:jr(F),Nn(O,F<0?0:F,re)):[]}function Zke(O,F,G){var re=O==null?0:O.length;return re?(F=G||F===n?1:jr(F),F=re-F,Nn(O,0,F<0?0:F)):[]}function Xke(O,F){return O&&O.length?He(O,ar(F,3),!0,!0):[]}function eRe(O,F){return O&&O.length?He(O,ar(F,3),!0):[]}function tRe(O,F,G,re){var fe=O==null?0:O.length;return fe?(G&&typeof G!="number"&&tc(O,F,G)&&(G=0,re=fe),Yv(O,F,G,re)):[]}function mW(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=G==null?0:jr(G);return fe<0&&(fe=Ga(re+fe,0)),wg(O,ar(F,3),fe)}function gW(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=re-1;return G!==n&&(fe=jr(G),fe=G<0?Ga(re+fe,0):fo(fe,re-1)),wg(O,ar(F,3),fe,!0)}function vW(O){var F=O==null?0:O.length;return F?Ro(O,1):[]}function nRe(O){var F=O==null?0:O.length;return F?Ro(O,D):[]}function rRe(O,F){var G=O==null?0:O.length;return G?(F=F===n?1:jr(F),Ro(O,F)):[]}function iRe(O){for(var F=-1,G=O==null?0:O.length,re={};++F<G;){var fe=O[F];re[fe[0]]=fe[1]}return re}function AW(O){return O&&O.length?O[0]:n}function aRe(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=G==null?0:jr(G);return fe<0&&(fe=Ga(re+fe,0)),_h(O,F,fe)}function oRe(O){var F=O==null?0:O.length;return F?Nn(O,0,-1):[]}var sRe=We(function(O){var F=va(O,wn);return F.length&&F[0]===O[0]?Zv(F):[]}),lRe=We(function(O){var F=Vu(O),G=va(O,wn);return F===Vu(G)?F=n:G.pop(),G.length&&G[0]===O[0]?Zv(G,ar(F,2)):[]}),cRe=We(function(O){var F=Vu(O),G=va(O,wn);return F=typeof F=="function"?F:n,F&&G.pop(),G.length&&G[0]===O[0]?Zv(G,n,F):[]});function uRe(O,F){return O==null?"":zC.call(O,F)}function Vu(O){var F=O==null?0:O.length;return F?O[F-1]:n}function dRe(O,F,G){var re=O==null?0:O.length;if(!re)return-1;var fe=re;return G!==n&&(fe=jr(G),fe=fe<0?Ga(re+fe,0):fo(fe,re-1)),F===F?Qd(O,F,fe):wg(O,w1,fe,!0)}function hRe(O,F){return O&&O.length?yA(O,jr(F)):n}var fRe=We(yW);function yW(O,F){return O&&O.length&&F&&F.length?_c(O,F):O}function pRe(O,F,G){return O&&O.length&&F&&F.length?_c(O,F,ar(G,2)):O}function mRe(O,F,G){return O&&O.length&&F&&F.length?_c(O,F,n,G):O}var gRe=Vf(function(O,F){var G=O==null?0:O.length,re=D1(O,F);return rk(O,va(F,function(fe){return Kf(fe,G)?+fe:fe}).sort(ys)),re});function vRe(O,F){var G=[];if(!(O&&O.length))return G;var re=-1,fe=[],be=O.length;for(F=ar(F,3);++re<be;){var Pe=O[re];F(Pe,re,O)&&(G.push(Pe),fe.push(re))}return rk(O,fe),G}function ZO(O){return O==null?O:GE.call(O)}function ARe(O,F,G){var re=O==null?0:O.length;return re?(G&&typeof G!="number"&&tc(O,F,G)?(F=0,G=re):(F=F==null?0:jr(F),G=G===n?re:jr(G)),Nn(O,F,G)):[]}function yRe(O,F){return er(O,F)}function bRe(O,F,G){return Jr(O,F,ar(G,2))}function xRe(O,F){var G=O==null?0:O.length;if(G){var re=er(O,F);if(re<G&&_d(O[re],F))return re}return-1}function ERe(O,F){return er(O,F,!0)}function SRe(O,F,G){return Jr(O,F,ar(G,2),!0)}function wRe(O,F){var G=O==null?0:O.length;if(G){var re=er(O,F,!0)-1;if(_d(O[re],F))return re}return-1}function _Re(O){return O&&O.length?ni(O):[]}function TRe(O,F){return O&&O.length?ni(O,ar(F,2)):[]}function CRe(O){var F=O==null?0:O.length;return F?Nn(O,1,F):[]}function kRe(O,F,G){return O&&O.length?(F=G||F===n?1:jr(F),Nn(O,0,F<0?0:F)):[]}function RRe(O,F,G){var re=O==null?0:O.length;return re?(F=G||F===n?1:jr(F),F=re-F,Nn(O,F<0?0:F,re)):[]}function MRe(O,F){return O&&O.length?He(O,ar(F,3),!1,!0):[]}function NRe(O,F){return O&&O.length?He(O,ar(F,3)):[]}var IRe=We(function(O){return ae(Ro(O,1,Lo,!0))}),PRe=We(function(O){var F=Vu(O);return Lo(F)&&(F=n),ae(Ro(O,1,Lo,!0),ar(F,2))}),ORe=We(function(O){var F=Vu(O);return F=typeof F=="function"?F:n,ae(Ro(O,1,Lo,!0),n,F)});function LRe(O){return O&&O.length?ae(O):[]}function BRe(O,F){return O&&O.length?ae(O,ar(F,2)):[]}function DRe(O,F){return F=typeof F=="function"?F:n,O&&O.length?ae(O,n,F):[]}function XO(O){if(!(O&&O.length))return[];var F=0;return O=$c(O,function(G){if(Lo(G))return F=Ga(G.length,F),!0}),ff(F,function(G){return va(O,_1(G))})}function bW(O,F){if(!(O&&O.length))return[];var G=XO(O);return F==null?G:va(G,function(re){return es(F,n,re)})}var $Re=We(function(O,F){return Lo(O)?Rm(O,F):[]}),FRe=We(function(O){return Et($c(O,Lo))}),jRe=We(function(O){var F=Vu(O);return Lo(F)&&(F=n),Et($c(O,Lo),ar(F,2))}),HRe=We(function(O){var F=Vu(O);return F=typeof F=="function"?F:n,Et($c(O,Lo),n,F)}),URe=We(XO);function zRe(O,F){return Tt(O||[],F||[],Hf)}function GRe(O,F){return Tt(O||[],F||[],bt)}var VRe=We(function(O){var F=O.length,G=F>1?O[F-1]:n;return G=typeof G=="function"?(O.pop(),G):n,bW(O,G)});function xW(O){var F=ve(O);return F.__chain__=!0,F}function KRe(O,F){return F(O),O}function fk(O,F){return F(O)}var WRe=Vf(function(O){var F=O.length,G=F?O[0]:0,re=this.__wrapped__,fe=function(be){return D1(be,O)};return F>1||this.__actions__.length||!(re instanceof Wr)||!Kf(G)?this.thru(fe):(re=re.slice(G,+G+(F?1:0)),re.__actions__.push({func:fk,args:[fe],thisArg:n}),new nl(re,this.__chain__).thru(function(be){return F&&!be.length&&be.push(n),be}))});function QRe(){return xW(this)}function qRe(){return new nl(this.value(),this.__chain__)}function YRe(){this.__values__===n&&(this.__values__=LW(this.value()));var O=this.__index__>=this.__values__.length,F=O?n:this.__values__[this.__index__++];return{done:O,value:F}}function JRe(){return this}function ZRe(O){for(var F,G=this;G instanceof qv;){var re=pW(G);re.__index__=0,re.__values__=n,F?fe.__wrapped__=re:F=re;var fe=re;G=G.__wrapped__}return fe.__wrapped__=O,F}function XRe(){var O=this.__wrapped__;if(O instanceof Wr){var F=O;return this.__actions__.length&&(F=new Wr(this)),F=F.reverse(),F.__actions__.push({func:fk,args:[ZO],thisArg:n}),new nl(F,this.__chain__)}return this.thru(ZO)}function eMe(){return at(this.__wrapped__,this.__actions__)}var tMe=ak(function(O,F,G){Yi.call(O,G)?++O[G]:wu(O,G,1)});function nMe(O,F,G){var re=Ir(O)?u_:XC;return G&&tc(O,F,G)&&(F=n),re(O,ar(F,3))}function rMe(O,F){var G=Ir(O)?$c:wb;return G(O,ar(F,3))}var iMe=QK(mW),aMe=QK(gW);function oMe(O,F){return Ro(pk(O,F),1)}function sMe(O,F){return Ro(pk(O,F),D)}function lMe(O,F,G){return G=G===n?1:jr(G),Ro(pk(O,F),G)}function EW(O,F){var G=Ir(O)?Vs:Xl;return G(O,ar(F,3))}function SW(O,F){var G=Ir(O)?OC:F1;return G(O,ar(F,3))}var cMe=ak(function(O,F,G){Yi.call(O,G)?O[G].push(F):wu(O,G,[F])});function uMe(O,F,G,re){O=Tc(O)?O:K1(O),G=G&&!re?jr(G):0;var fe=O.length;return G<0&&(G=Ga(fe+G,0)),yk(O)?G<=fe&&O.indexOf(F,G)>-1:!!fe&&_h(O,F,G)>-1}var dMe=We(function(O,F,G){var re=-1,fe=typeof F=="function",be=Tc(O)?nt(O.length):[];return Xl(O,function(Pe){be[++re]=fe?es(F,Pe,G):Rh(Pe,F,G)}),be}),hMe=ak(function(O,F,G){wu(O,G,F)});function pk(O,F){var G=Ir(O)?va:Pg;return G(O,ar(F,3))}function fMe(O,F,G,re){return O==null?[]:(Ir(F)||(F=F==null?[]:[F]),G=re?n:G,Ir(G)||(G=G==null?[]:[G]),kb(O,F,G))}var pMe=ak(function(O,F,G){O[G?0:1].push(F)},function(){return[[],[]]});function mMe(O,F,G){var re=Ir(O)?mb:Th,fe=arguments.length<3;return re(O,ar(F,4),G,fe,Xl)}function gMe(O,F,G){var re=Ir(O)?d_:Th,fe=arguments.length<3;return re(O,ar(F,4),G,fe,F1)}function vMe(O,F){var G=Ir(O)?$c:wb;return G(O,vk(ar(F,3)))}function AMe(O){var F=Ir(O)?AA:Nt;return F(O)}function yMe(O,F,G){(G?tc(O,F,G):F===n)?F=1:F=jr(F);var re=Ir(O)?QE:jt;return re(O,F)}function bMe(O){var F=Ir(O)?Sb:Fn;return F(O)}function xMe(O){if(O==null)return 0;if(Tc(O))return yk(O)?hl(O):O.length;var F=wl(O);return F==de||F==ye?O.size:Tb(O).length}function EMe(O,F,G){var re=Ir(O)?Uv:Vr;return G&&tc(O,F,G)&&(F=n),re(O,ar(F,3))}var SMe=We(function(O,F){if(O==null)return[];var G=F.length;return G>1&&tc(O,F[0],F[1])?F=[]:G>2&&tc(F[0],F[1],F[2])&&(F=[F[0]]),kb(O,Ro(F,1),[])}),mk=UC||function(){return ma.Date.now()};function wMe(O,F){if(typeof F!="function")throw new Zl(s);return O=jr(O),function(){if(--O<1)return F.apply(this,arguments)}}function wW(O,F,G){return F=G?n:F,F=O&&F==null?O.length:F,Gf(O,C,n,n,n,n,F)}function _W(O,F){var G;if(typeof F!="function")throw new Zl(s);return O=jr(O),function(){return--O>0&&(G=F.apply(this,arguments)),O<=1&&(F=n),G}}var e4=We(function(O,F,G){var re=v;if(G.length){var fe=bu(G,G1(e4));re|=w}return Gf(O,re,F,G,fe)}),TW=We(function(O,F,G){var re=v|A;if(G.length){var fe=bu(G,G1(TW));re|=w}return Gf(F,re,O,G,fe)});function CW(O,F,G){F=G?n:F;var re=Gf(O,S,n,n,n,n,n,F);return re.placeholder=CW.placeholder,re}function kW(O,F,G){F=G?n:F;var re=Gf(O,x,n,n,n,n,n,F);return re.placeholder=kW.placeholder,re}function RW(O,F,G){var re,fe,be,Pe,Ue,Qe,_t=0,Ct=!1,$t=!1,mn=!0;if(typeof O!="function")throw new Zl(s);F=Ku(F)||0,oo(G)&&(Ct=!!G.leading,$t="maxWait"in G,be=$t?Ga(Ku(G.maxWait)||0,F):be,mn="trailing"in G?!!G.trailing:mn);function zn(Bo){var Td=re,qf=fe;return re=fe=n,_t=Bo,Pe=O.apply(qf,Td),Pe}function fr(Bo){return _t=Bo,Ue=eS(Zr,F),Ct?zn(Bo):Pe}function Gr(Bo){var Td=Bo-Qe,qf=Bo-_t,QW=F-Td;return $t?fo(QW,be-qf):QW}function pr(Bo){var Td=Bo-Qe,qf=Bo-_t;return Qe===n||Td>=F||Td<0||$t&&qf>=be}function Zr(){var Bo=mk();if(pr(Bo))return yi(Bo);Ue=eS(Zr,Gr(Bo))}function yi(Bo){return Ue=n,mn&&re?zn(Bo):(re=fe=n,Pe)}function eu(){Ue!==n&&Ji(Ue),_t=0,re=Qe=fe=Ue=n}function nc(){return Ue===n?Pe:yi(mk())}function tu(){var Bo=mk(),Td=pr(Bo);if(re=arguments,fe=this,Qe=Bo,Td){if(Ue===n)return fr(Qe);if($t)return Ji(Ue),Ue=eS(Zr,F),zn(Qe)}return Ue===n&&(Ue=eS(Zr,F)),Pe}return tu.cancel=eu,tu.flush=nc,tu}var _Me=We(function(O,F){return YE(O,1,F)}),TMe=We(function(O,F,G){return YE(O,Ku(F)||0,G)});function CMe(O){return Gf(O,k)}function gk(O,F){if(typeof O!="function"||F!=null&&typeof F!="function")throw new Zl(s);var G=function(){var re=arguments,fe=F?F.apply(this,re):re[0],be=G.cache;if(be.has(fe))return be.get(fe);var Pe=O.apply(this,re);return G.cache=be.set(fe,Pe)||be,Pe};return G.cache=new(gk.Cache||Su),G}gk.Cache=Su;function vk(O){if(typeof O!="function")throw new Zl(s);return function(){var F=arguments;switch(F.length){case 0:return!O.call(this);case 1:return!O.call(this,F[0]);case 2:return!O.call(this,F[0],F[1]);case 3:return!O.call(this,F[0],F[1],F[2])}return!O.apply(this,F)}}function kMe(O){return _W(2,O)}var RMe=xr(function(O,F){F=F.length==1&&Ir(F[0])?va(F[0],Ol(ar())):va(Ro(F,1),Ol(ar()));var G=F.length;return We(function(re){for(var fe=-1,be=fo(re.length,G);++fe<be;)re[fe]=F[fe].call(this,re[fe]);return es(O,this,re)})}),t4=We(function(O,F){var G=bu(F,G1(t4));return Gf(O,w,n,F,G)}),MW=We(function(O,F){var G=bu(F,G1(MW));return Gf(O,_,n,F,G)}),MMe=Vf(function(O,F){return Gf(O,R,n,n,n,F)});function NMe(O,F){if(typeof O!="function")throw new Zl(s);return F=F===n?F:jr(F),We(O,F)}function IMe(O,F){if(typeof O!="function")throw new Zl(s);return F=F==null?0:Ga(jr(F),0),We(function(G){var re=G[F],fe=ui(G,0,F);return re&&Wd(fe,re),es(O,this,fe)})}function PMe(O,F,G){var re=!0,fe=!0;if(typeof O!="function")throw new Zl(s);return oo(G)&&(re="leading"in G?!!G.leading:re,fe="trailing"in G?!!G.trailing:fe),RW(O,F,{leading:re,maxWait:F,trailing:fe})}function OMe(O){return wW(O,1)}function LMe(O,F){return t4(hr(F),O)}function BMe(){if(!arguments.length)return[];var O=arguments[0];return Ir(O)?O:[O]}function DMe(O){return Ws(O,p)}function $Me(O,F){return F=typeof F=="function"?F:n,Ws(O,p,F)}function FMe(O){return Ws(O,h|p)}function jMe(O,F){return F=typeof F=="function"?F:n,Ws(O,h|p,F)}function HMe(O,F){return F==null||$1(O,F,$s(F))}function _d(O,F){return O===F||O!==O&&F!==F}var UMe=ck(j1),zMe=ck(function(O,F){return O>=F}),r0=T_(function(){return arguments}())?T_:function(O){return So(O)&&Yi.call(O,"callee")&&!g_.call(O,"callee")},Ir=nt.isArray,GMe=Jc?Ol(Jc):tk;function Tc(O){return O!=null&&Ak(O.length)&&!Wf(O)}function Lo(O){return So(O)&&Tc(O)}function VMe(O){return O===!0||O===!1||So(O)&&ns(O)==X}var Mm=BN||h4,KMe=wh?Ol(wh):zf;function WMe(O){return So(O)&&O.nodeType===1&&!tS(O)}function QMe(O){if(O==null)return!0;if(Tc(O)&&(Ir(O)||typeof O=="string"||typeof O.splice=="function"||Mm(O)||V1(O)||r0(O)))return!O.length;var F=wl(O);if(F==de||F==ye)return!O.size;if(XE(O))return!Tb(O).length;for(var G in O)if(Yi.call(O,G))return!1;return!0}function qMe(O,F){return fl(O,F)}function YMe(O,F,G){G=typeof G=="function"?G:n;var re=G?G(O,F):n;return re===n?fl(O,F,n,G):!!re}function n4(O){if(!So(O))return!1;var F=ns(O);return F==ne||F==J||typeof O.message=="string"&&typeof O.name=="string"&&!tS(O)}function JMe(O){return typeof O=="number"&&Kv(O)}function Wf(O){if(!oo(O))return!1;var F=ns(O);return F==ie||F==he||F==ee||F==ze}function NW(O){return typeof O=="number"&&O==jr(O)}function Ak(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=B}function oo(O){var F=typeof O;return O!=null&&(F=="object"||F=="function")}function So(O){return O!=null&&typeof O=="object"}var IW=Kd?Ol(Kd):zN;function ZMe(O,F){return O===F||H1(O,F,KO(F))}function XMe(O,F,G){return G=typeof G=="function"?G:n,H1(O,F,KO(F),G)}function eNe(O){return PW(O)&&O!=+O}function tNe(O){if($ke(O))throw new yr(o);return Ig(O)}function nNe(O){return O===null}function rNe(O){return O==null}function PW(O){return typeof O=="number"||So(O)&&ns(O)==ce}function tS(O){if(!So(O)||ns(O)!=Me)return!1;var F=xu(O);if(F===null)return!0;var G=Yi.call(F,"constructor")&&F.constructor;return typeof G=="function"&&G instanceof G&&mA.call(G)==jC}var r4=Pp?Ol(Pp):C_;function iNe(O){return NW(O)&&O>=-B&&O<=B}var OW=cA?Ol(cA):GN;function yk(O){return typeof O=="string"||!Ir(O)&&So(O)&&ns(O)==me}function Xc(O){return typeof O=="symbol"||So(O)&&ns(O)==le}var V1=Hv?Ol(Hv):Xv;function aNe(O){return O===n}function oNe(O){return So(O)&&wl(O)==Ne}function sNe(O){return So(O)&&ns(O)==_e}var lNe=ck(Cb),cNe=ck(function(O,F){return O<=F});function LW(O){if(!O)return[];if(Tc(O))return yk(O)?dc(O):Ei(O);if(Cg&&O[Cg])return BC(O[Cg]());var F=wl(O),G=F==de?Bp:F==ye?zu:K1;return G(O)}function Qf(O){if(!O)return O===0?O:0;if(O=Ku(O),O===D||O===-D){var F=O<0?-1:1;return F*j}return O===O?O:0}function jr(O){var F=Qf(O),G=F%1;return F===F?G?F-G:F:0}function BW(O){return O?jc(jr(O),0,U):0}function Ku(O){if(typeof O=="number")return O;if(Xc(O))return H;if(oo(O)){var F=typeof O.valueOf=="function"?O.valueOf():O;O=oo(F)?F+"":F}if(typeof O!="string")return O===0?O:+O;O=dA(O);var G=Yt.test(O);return G||jn.test(O)?Ja(O.slice(2),G?2:8):Pt.test(O)?H:+O}function DW(O){return ks(O,Cc(O))}function uNe(O){return O?jc(jr(O),-B,B):O===0?O:0}function sa(O){return O==null?"":W(O)}var dNe=U1(function(O,F){if(XE(F)||Tc(F)){ks(F,$s(F),O);return}for(var G in F)Yi.call(F,G)&&Hf(O,G,F[G])}),$W=U1(function(O,F){ks(F,Cc(F),O)}),bk=U1(function(O,F,G,re){ks(F,Cc(F),O,re)}),hNe=U1(function(O,F,G,re){ks(F,$s(F),O,re)}),fNe=Vf(D1);function pNe(O,F){var G=jp(O);return F==null?G:wd(G,F)}var mNe=We(function(O,F){O=aa(O);var G=-1,re=F.length,fe=re>2?F[2]:n;for(fe&&tc(F[0],F[1],fe)&&(re=1);++G<re;)for(var be=F[G],Pe=Cc(be),Ue=-1,Qe=Pe.length;++Ue<Qe;){var _t=Pe[Ue],Ct=O[_t];(Ct===n||_d(Ct,mf[_t])&&!Yi.call(O,_t))&&(O[_t]=be[_t])}return O}),gNe=We(function(O){return O.push(n,tW),es(FW,n,O)});function vNe(O,F){return DE(O,ar(F,3),Ll)}function ANe(O,F){return DE(O,ar(F,3),Uf)}function yNe(O,F){return O==null?O:Jv(O,ar(F,3),Cc)}function bNe(O,F){return O==null?O:Zd(O,ar(F,3),Cc)}function xNe(O,F){return O&&Ll(O,ar(F,3))}function ENe(O,F){return O&&Uf(O,ar(F,3))}function SNe(O){return O==null?[]:Ng(O,$s(O))}function wNe(O){return O==null?[]:Ng(O,Cc(O))}function i4(O,F,G){var re=O==null?n:ec(O,F);return re===n?G:re}function _Ne(O,F){return O!=null&&iW(O,F,$O)}function a4(O,F){return O!=null&&iW(O,F,UN)}var TNe=YK(function(O,F,G){F!=null&&typeof F.toString!="function"&&(F=M1.call(F)),O[F]=G},s4(kc)),CNe=YK(function(O,F,G){F!=null&&typeof F.toString!="function"&&(F=M1.call(F)),Yi.call(O,F)?O[F].push(G):O[F]=[G]},ar),kNe=We(Rh);function $s(O){return Tc(O)?kg(O):Tb(O)}function Cc(O){return Tc(O)?kg(O,!0):VN(O)}function RNe(O,F){var G={};return F=ar(F,3),Ll(O,function(re,fe,be){wu(G,F(re,fe,be),re)}),G}function MNe(O,F){var G={};return F=ar(F,3),Ll(O,function(re,fe,be){wu(G,fe,F(re,fe,be))}),G}var NNe=U1(function(O,F,G){e0(O,F,G)}),FW=U1(function(O,F,G,re){e0(O,F,G,re)}),INe=Vf(function(O,F){var G={};if(O==null)return G;var re=!1;F=va(F,function(be){return be=rr(be,O),re||(re=be.length>1),be}),ks(O,GO(O),G),re&&(G=Ws(G,h|f|p,Tke));for(var fe=F.length;fe--;)Ae(G,F[fe]);return G});function PNe(O,F){return jW(O,vk(ar(F)))}var ONe=Vf(function(O,F){return O==null?{}:N_(O,F)});function jW(O,F){if(O==null)return{};var G=va(GO(O),function(re){return[re]});return F=ar(F),JE(O,G,function(re,fe){return F(re,fe[0])})}function LNe(O,F,G){F=rr(F,O);var re=-1,fe=F.length;for(fe||(fe=1,O=n);++re<fe;){var be=O==null?n:O[Mh(F[re])];be===n&&(re=fe,be=G),O=Wf(be)?be.call(O):be}return O}function BNe(O,F,G){return O==null?O:bt(O,F,G)}function DNe(O,F,G,re){return re=typeof re=="function"?re:n,O==null?O:bt(O,F,G,re)}var HW=XK($s),UW=XK(Cc);function $Ne(O,F,G){var re=Ir(O),fe=re||Mm(O)||V1(O);if(F=ar(F,4),G==null){var be=O&&O.constructor;fe?G=re?new be:[]:oo(O)?G=Wf(be)?jp(xu(O)):{}:G={}}return(fe?Vs:Ll)(O,function(Pe,Ue,Qe){return F(G,Pe,Ue,Qe)}),G}function FNe(O,F){return O==null?!0:Ae(O,F)}function jNe(O,F,G){return O==null?O:we(O,F,hr(G))}function HNe(O,F,G,re){return re=typeof re=="function"?re:n,O==null?O:we(O,F,hr(G),re)}function K1(O){return O==null?[]:C1(O,$s(O))}function UNe(O){return O==null?[]:C1(O,Cc(O))}function zNe(O,F,G){return G===n&&(G=F,F=n),G!==n&&(G=Ku(G),G=G===G?G:0),F!==n&&(F=Ku(F),F=F===F?F:0),jc(Ku(O),F,G)}function GNe(O,F,G){return F=Qf(F),G===n?(G=F,F=0):G=Qf(G),O=Ku(O),ek(O,F,G)}function VNe(O,F,G){if(G&&typeof G!="boolean"&&tc(O,F,G)&&(F=G=n),G===n&&(typeof F=="boolean"?(G=F,F=n):typeof O=="boolean"&&(G=O,O=n)),O===n&&F===n?(O=0,F=1):(O=Qf(O),F===n?(F=O,O=0):F=Qf(F)),O>F){var re=O;O=F,F=re}if(G||O%1||F%1){var fe=rd();return fo(O+fe*(F-O+dl("1e-"+((fe+"").length-1))),F)}return xe(O,F)}var KNe=z1(function(O,F,G){return F=F.toLowerCase(),O+(G?zW(F):F)});function zW(O){return o4(sa(O).toLowerCase())}function GW(O){return O=sa(O),O&&O.replace(si,_g).replace(BE,"")}function WNe(O,F,G){O=sa(O),F=W(F);var re=O.length;G=G===n?re:jc(jr(G),0,re);var fe=G;return G-=F.length,G>=0&&O.slice(G,fe)==F}function QNe(O){return O=sa(O),O&&dt.test(O)?O.replace(un,LN):O}function qNe(O){return O=sa(O),O&&dr.test(O)?O.replace(on,"\\$&"):O}var YNe=z1(function(O,F,G){return O+(G?"-":"")+F.toLowerCase()}),JNe=z1(function(O,F,G){return O+(G?" ":"")+F.toLowerCase()}),ZNe=WK("toLowerCase");function XNe(O,F,G){O=sa(O),F=jr(F);var re=F?hl(O):0;if(!F||re>=F)return O;var fe=(F-re)/2;return lk(gf(fe),G)+O+lk(vA(fe),G)}function eIe(O,F,G){O=sa(O),F=jr(F);var re=F?hl(O):0;return F&&re<F?O+lk(F-re,G):O}function tIe(O,F,G){O=sa(O),F=jr(F);var re=F?hl(O):0;return F&&re<F?lk(F-re,G)+O:O}function nIe(O,F,G){return G||F==null?F=0:F&&(F=+F),P1(sa(O).replace($e,""),F||0)}function rIe(O,F,G){return(G?tc(O,F,G):F===n)?F=1:F=jr(F),Ve(sa(O),F)}function iIe(){var O=arguments,F=sa(O[0]);return O.length<3?F:F.replace(O[1],O[2])}var aIe=z1(function(O,F,G){return O+(G?"_":"")+F.toLowerCase()});function oIe(O,F,G){return G&&typeof G!="number"&&tc(O,F,G)&&(F=G=n),G=G===n?U:G>>>0,G?(O=sa(O),O&&(typeof F=="string"||F!=null&&!r4(F))&&(F=W(F),!F&&Lp(O))?ui(dc(O),0,G):O.split(F,G)):[]}var sIe=z1(function(O,F,G){return O+(G?" ":"")+o4(F)});function lIe(O,F,G){return O=sa(O),G=G==null?0:jc(jr(G),0,O.length),F=W(F),O.slice(G,G+F.length)==F}function cIe(O,F,G){var re=ve.templateSettings;G&&tc(O,F,G)&&(F=n),O=sa(O),F=bk({},F,re,eW);var fe=bk({},F.imports,re.imports,eW),be=$s(fe),Pe=C1(fe,be),Ue,Qe,_t=0,Ct=F.interpolate||Qi,$t="__p += '",mn=hA((F.escape||Qi).source+"|"+Ct.source+"|"+(Ct===Kt?ft:Qi).source+"|"+(F.evaluate||Qi).source+"|$","g"),zn="//# sourceURL="+(Yi.call(F,"sourceURL")?(F.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jv+"]")+`
`;O.replace(mn,function(pr,Zr,yi,eu,nc,tu){return yi||(yi=eu),$t+=O.slice(_t,tu).replace(st,LC),Zr&&(Ue=!0,$t+=`' +
__e(`+Zr+`) +
'`),nc&&(Qe=!0,$t+=`';
`+nc+`;
__p += '`),yi&&($t+=`' +
((__t = (`+yi+`)) == null ? '' : __t) +
'`),_t=tu+pr.length,pr}),$t+=`';
`;var fr=Yi.call(F,"variable")&&F.variable;if(!fr)$t=`with (obj) {
`+$t+`
}
`;else if(vt.test(fr))throw new yr(l);$t=(Qe?$t.replace(ut,""):$t).replace(lt,"$1").replace(pn,"$1;"),$t="function("+(fr||"obj")+`) {
`+(fr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Ue?", __e = _.escape":"")+(Qe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+$t+`return __p
}`;var Gr=KW(function(){return vi(be,zn+"return "+$t).apply(n,Pe)});if(Gr.source=$t,n4(Gr))throw Gr;return Gr}function uIe(O){return sa(O).toLowerCase()}function dIe(O){return sa(O).toUpperCase()}function hIe(O,F,G){if(O=sa(O),O&&(G||F===n))return dA(O);if(!O||!(F=W(F)))return O;var re=dc(O),fe=dc(F),be=gb(re,fe),Pe=Cm(re,fe)+1;return ui(re,be,Pe).join("")}function fIe(O,F,G){if(O=sa(O),O&&(G||F===n))return O.slice(0,R1(O)+1);if(!O||!(F=W(F)))return O;var re=dc(O),fe=Cm(re,dc(F))+1;return ui(re,0,fe).join("")}function pIe(O,F,G){if(O=sa(O),O&&(G||F===n))return O.replace($e,"");if(!O||!(F=W(F)))return O;var re=dc(O),fe=gb(re,dc(F));return ui(re,fe).join("")}function mIe(O,F){var G=P,re=N;if(oo(F)){var fe="separator"in F?F.separator:fe;G="length"in F?jr(F.length):G,re="omission"in F?W(F.omission):re}O=sa(O);var be=O.length;if(Lp(O)){var Pe=dc(O);be=Pe.length}if(G>=be)return O;var Ue=G-hl(re);if(Ue<1)return re;var Qe=Pe?ui(Pe,0,Ue).join(""):O.slice(0,Ue);if(fe===n)return Qe+re;if(Pe&&(Ue+=Qe.length-Ue),r4(fe)){if(O.slice(Ue).search(fe)){var _t,Ct=Qe;for(fe.global||(fe=hA(fe.source,sa(rt.exec(fe))+"g")),fe.lastIndex=0;_t=fe.exec(Ct);)var $t=_t.index;Qe=Qe.slice(0,$t===n?Ue:$t)}}else if(O.indexOf(W(fe),Ue)!=Ue){var mn=Qe.lastIndexOf(fe);mn>-1&&(Qe=Qe.slice(0,mn))}return Qe+re}function gIe(O){return O=sa(O),O&&ur.test(O)?O.replace(sn,pf):O}var vIe=z1(function(O,F,G){return O+(G?" ":"")+F.toUpperCase()}),o4=WK("toUpperCase");function VW(O,F,G){return O=sa(O),F=G?n:F,F===n?f_(O)?Gv(O):ON(O):O.match(F)||[]}var KW=We(function(O,F){try{return es(O,n,F)}catch(G){return n4(G)?G:new yr(G)}}),AIe=Vf(function(O,F){return Vs(F,function(G){G=Mh(G),wu(O,G,e4(O[G],O))}),O});function yIe(O){var F=O==null?0:O.length,G=ar();return O=F?va(O,function(re){if(typeof re[1]!="function")throw new Zl(s);return[G(re[0]),re[1]]}):[],We(function(re){for(var fe=-1;++fe<F;){var be=O[fe];if(es(be[0],this,re))return es(be[1],this,re)}})}function bIe(O){return qE(Ws(O,h))}function s4(O){return function(){return O}}function xIe(O,F){return O==null||O!==O?F:O}var EIe=qK(),SIe=qK(!0);function kc(O){return O}function l4(O){return k_(typeof O=="function"?O:Ws(O,h))}function wIe(O){return nk(Ws(O,h))}function _Ie(O,F){return R_(O,Ws(F,h))}var TIe=We(function(O,F){return function(G){return Rh(G,O,F)}}),CIe=We(function(O,F){return function(G){return Rh(O,G,F)}});function c4(O,F,G){var re=$s(F),fe=Ng(F,re);G==null&&!(oo(F)&&(fe.length||!re.length))&&(G=F,F=O,O=this,fe=Ng(F,$s(F)));var be=!(oo(G)&&"chain"in G)||!!G.chain,Pe=Wf(O);return Vs(fe,function(Ue){var Qe=F[Ue];O[Ue]=Qe,Pe&&(O.prototype[Ue]=function(){var _t=this.__chain__;if(be||_t){var Ct=O(this.__wrapped__),$t=Ct.__actions__=Ei(this.__actions__);return $t.push({func:Qe,args:arguments,thisArg:O}),Ct.__chain__=_t,Ct}return Qe.apply(O,Wd([this.value()],arguments))})}),O}function kIe(){return ma._===this&&(ma._=p_),this}function u4(){}function RIe(O){return O=jr(O),We(function(F){return yA(F,O)})}var MIe=HO(va),NIe=HO(u_),IIe=HO(Uv);function WW(O){return QO(O)?_1(Mh(O)):I_(O)}function PIe(O){return function(F){return O==null?n:ec(O,F)}}var OIe=JK(),LIe=JK(!0);function d4(){return[]}function h4(){return!1}function BIe(){return{}}function DIe(){return""}function $Ie(){return!0}function FIe(O,F){if(O=jr(O),O<1||O>B)return[];var G=U,re=fo(O,U);F=ar(F),O-=U;for(var fe=ff(re,F);++G<O;)F(G);return fe}function jIe(O){return Ir(O)?va(O,Mh):Xc(O)?[O]:Ei(fW(sa(O)))}function HIe(O){var F=++FC;return sa(O)+F}var UIe=sk(function(O,F){return O+F},0),zIe=UO("ceil"),GIe=sk(function(O,F){return O/F},1),VIe=UO("floor");function KIe(O){return O&&O.length?Mg(O,kc,j1):n}function WIe(O,F){return O&&O.length?Mg(O,ar(F,2),j1):n}function QIe(O){return uA(O,kc)}function qIe(O,F){return uA(O,ar(F,2))}function YIe(O){return O&&O.length?Mg(O,kc,Cb):n}function JIe(O,F){return O&&O.length?Mg(O,ar(F,2),Cb):n}var ZIe=sk(function(O,F){return O*F},1),XIe=UO("round"),e3e=sk(function(O,F){return O-F},0);function t3e(O){return O&&O.length?Tm(O,kc):0}function n3e(O,F){return O&&O.length?Tm(O,ar(F,2)):0}return ve.after=wMe,ve.ary=wW,ve.assign=dNe,ve.assignIn=$W,ve.assignInWith=bk,ve.assignWith=hNe,ve.at=fNe,ve.before=_W,ve.bind=e4,ve.bindAll=AIe,ve.bindKey=TW,ve.castArray=BMe,ve.chain=xW,ve.chunk=Vke,ve.compact=Kke,ve.concat=Wke,ve.cond=yIe,ve.conforms=bIe,ve.constant=s4,ve.countBy=tMe,ve.create=pNe,ve.curry=CW,ve.curryRight=kW,ve.debounce=RW,ve.defaults=mNe,ve.defaultsDeep=gNe,ve.defer=_Me,ve.delay=TMe,ve.difference=Qke,ve.differenceBy=qke,ve.differenceWith=Yke,ve.drop=Jke,ve.dropRight=Zke,ve.dropRightWhile=Xke,ve.dropWhile=eRe,ve.fill=tRe,ve.filter=rMe,ve.flatMap=oMe,ve.flatMapDeep=sMe,ve.flatMapDepth=lMe,ve.flatten=vW,ve.flattenDeep=nRe,ve.flattenDepth=rRe,ve.flip=CMe,ve.flow=EIe,ve.flowRight=SIe,ve.fromPairs=iRe,ve.functions=SNe,ve.functionsIn=wNe,ve.groupBy=cMe,ve.initial=oRe,ve.intersection=sRe,ve.intersectionBy=lRe,ve.intersectionWith=cRe,ve.invert=TNe,ve.invertBy=CNe,ve.invokeMap=dMe,ve.iteratee=l4,ve.keyBy=hMe,ve.keys=$s,ve.keysIn=Cc,ve.map=pk,ve.mapKeys=RNe,ve.mapValues=MNe,ve.matches=wIe,ve.matchesProperty=_Ie,ve.memoize=gk,ve.merge=NNe,ve.mergeWith=FW,ve.method=TIe,ve.methodOf=CIe,ve.mixin=c4,ve.negate=vk,ve.nthArg=RIe,ve.omit=INe,ve.omitBy=PNe,ve.once=kMe,ve.orderBy=fMe,ve.over=MIe,ve.overArgs=RMe,ve.overEvery=NIe,ve.overSome=IIe,ve.partial=t4,ve.partialRight=MW,ve.partition=pMe,ve.pick=ONe,ve.pickBy=jW,ve.property=WW,ve.propertyOf=PIe,ve.pull=fRe,ve.pullAll=yW,ve.pullAllBy=pRe,ve.pullAllWith=mRe,ve.pullAt=gRe,ve.range=OIe,ve.rangeRight=LIe,ve.rearg=MMe,ve.reject=vMe,ve.remove=vRe,ve.rest=NMe,ve.reverse=ZO,ve.sampleSize=yMe,ve.set=BNe,ve.setWith=DNe,ve.shuffle=bMe,ve.slice=ARe,ve.sortBy=SMe,ve.sortedUniq=_Re,ve.sortedUniqBy=TRe,ve.split=oIe,ve.spread=IMe,ve.tail=CRe,ve.take=kRe,ve.takeRight=RRe,ve.takeRightWhile=MRe,ve.takeWhile=NRe,ve.tap=KRe,ve.throttle=PMe,ve.thru=fk,ve.toArray=LW,ve.toPairs=HW,ve.toPairsIn=UW,ve.toPath=jIe,ve.toPlainObject=DW,ve.transform=$Ne,ve.unary=OMe,ve.union=IRe,ve.unionBy=PRe,ve.unionWith=ORe,ve.uniq=LRe,ve.uniqBy=BRe,ve.uniqWith=DRe,ve.unset=FNe,ve.unzip=XO,ve.unzipWith=bW,ve.update=jNe,ve.updateWith=HNe,ve.values=K1,ve.valuesIn=UNe,ve.without=$Re,ve.words=VW,ve.wrap=LMe,ve.xor=FRe,ve.xorBy=jRe,ve.xorWith=HRe,ve.zip=URe,ve.zipObject=zRe,ve.zipObjectDeep=GRe,ve.zipWith=VRe,ve.entries=HW,ve.entriesIn=UW,ve.extend=$W,ve.extendWith=bk,c4(ve,ve),ve.add=UIe,ve.attempt=KW,ve.camelCase=KNe,ve.capitalize=zW,ve.ceil=zIe,ve.clamp=zNe,ve.clone=DMe,ve.cloneDeep=FMe,ve.cloneDeepWith=jMe,ve.cloneWith=$Me,ve.conformsTo=HMe,ve.deburr=GW,ve.defaultTo=xIe,ve.divide=GIe,ve.endsWith=WNe,ve.eq=_d,ve.escape=QNe,ve.escapeRegExp=qNe,ve.every=nMe,ve.find=iMe,ve.findIndex=mW,ve.findKey=vNe,ve.findLast=aMe,ve.findLastIndex=gW,ve.findLastKey=ANe,ve.floor=VIe,ve.forEach=EW,ve.forEachRight=SW,ve.forIn=yNe,ve.forInRight=bNe,ve.forOwn=xNe,ve.forOwnRight=ENe,ve.get=i4,ve.gt=UMe,ve.gte=zMe,ve.has=_Ne,ve.hasIn=a4,ve.head=AW,ve.identity=kc,ve.includes=uMe,ve.indexOf=aRe,ve.inRange=GNe,ve.invoke=kNe,ve.isArguments=r0,ve.isArray=Ir,ve.isArrayBuffer=GMe,ve.isArrayLike=Tc,ve.isArrayLikeObject=Lo,ve.isBoolean=VMe,ve.isBuffer=Mm,ve.isDate=KMe,ve.isElement=WMe,ve.isEmpty=QMe,ve.isEqual=qMe,ve.isEqualWith=YMe,ve.isError=n4,ve.isFinite=JMe,ve.isFunction=Wf,ve.isInteger=NW,ve.isLength=Ak,ve.isMap=IW,ve.isMatch=ZMe,ve.isMatchWith=XMe,ve.isNaN=eNe,ve.isNative=tNe,ve.isNil=rNe,ve.isNull=nNe,ve.isNumber=PW,ve.isObject=oo,ve.isObjectLike=So,ve.isPlainObject=tS,ve.isRegExp=r4,ve.isSafeInteger=iNe,ve.isSet=OW,ve.isString=yk,ve.isSymbol=Xc,ve.isTypedArray=V1,ve.isUndefined=aNe,ve.isWeakMap=oNe,ve.isWeakSet=sNe,ve.join=uRe,ve.kebabCase=YNe,ve.last=Vu,ve.lastIndexOf=dRe,ve.lowerCase=JNe,ve.lowerFirst=ZNe,ve.lt=lNe,ve.lte=cNe,ve.max=KIe,ve.maxBy=WIe,ve.mean=QIe,ve.meanBy=qIe,ve.min=YIe,ve.minBy=JIe,ve.stubArray=d4,ve.stubFalse=h4,ve.stubObject=BIe,ve.stubString=DIe,ve.stubTrue=$Ie,ve.multiply=ZIe,ve.nth=hRe,ve.noConflict=kIe,ve.noop=u4,ve.now=mk,ve.pad=XNe,ve.padEnd=eIe,ve.padStart=tIe,ve.parseInt=nIe,ve.random=VNe,ve.reduce=mMe,ve.reduceRight=gMe,ve.repeat=rIe,ve.replace=iIe,ve.result=LNe,ve.round=XIe,ve.runInContext=Ke,ve.sample=AMe,ve.size=xMe,ve.snakeCase=aIe,ve.some=EMe,ve.sortedIndex=yRe,ve.sortedIndexBy=bRe,ve.sortedIndexOf=xRe,ve.sortedLastIndex=ERe,ve.sortedLastIndexBy=SRe,ve.sortedLastIndexOf=wRe,ve.startCase=sIe,ve.startsWith=lIe,ve.subtract=e3e,ve.sum=t3e,ve.sumBy=n3e,ve.template=cIe,ve.times=FIe,ve.toFinite=Qf,ve.toInteger=jr,ve.toLength=BW,ve.toLower=uIe,ve.toNumber=Ku,ve.toSafeInteger=uNe,ve.toString=sa,ve.toUpper=dIe,ve.trim=hIe,ve.trimEnd=fIe,ve.trimStart=pIe,ve.truncate=mIe,ve.unescape=gIe,ve.uniqueId=HIe,ve.upperCase=vIe,ve.upperFirst=o4,ve.each=EW,ve.eachRight=SW,ve.first=AW,c4(ve,function(){var O={};return Ll(ve,function(F,G){Yi.call(ve.prototype,G)||(O[G]=F)}),O}(),{chain:!1}),ve.VERSION=r,Vs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(O){ve[O].placeholder=ve}),Vs(["drop","take"],function(O,F){Wr.prototype[O]=function(G){G=G===n?1:Ga(jr(G),0);var re=this.__filtered__&&!F?new Wr(this):this.clone();return re.__filtered__?re.__takeCount__=fo(G,re.__takeCount__):re.__views__.push({size:fo(G,U),type:O+(re.__dir__<0?"Right":"")}),re},Wr.prototype[O+"Right"]=function(G){return this.reverse()[O](G).reverse()}}),Vs(["filter","map","takeWhile"],function(O,F){var G=F+1,re=G==b||G==M;Wr.prototype[O]=function(fe){var be=this.clone();return be.__iteratees__.push({iteratee:ar(fe,3),type:G}),be.__filtered__=be.__filtered__||re,be}}),Vs(["head","last"],function(O,F){var G="take"+(F?"Right":"");Wr.prototype[O]=function(){return this[G](1).value()[0]}}),Vs(["initial","tail"],function(O,F){var G="drop"+(F?"":"Right");Wr.prototype[O]=function(){return this.__filtered__?new Wr(this):this[G](1)}}),Wr.prototype.compact=function(){return this.filter(kc)},Wr.prototype.find=function(O){return this.filter(O).head()},Wr.prototype.findLast=function(O){return this.reverse().find(O)},Wr.prototype.invokeMap=We(function(O,F){return typeof O=="function"?new Wr(this):this.map(function(G){return Rh(G,O,F)})}),Wr.prototype.reject=function(O){return this.filter(vk(ar(O)))},Wr.prototype.slice=function(O,F){O=jr(O);var G=this;return G.__filtered__&&(O>0||F<0)?new Wr(G):(O<0?G=G.takeRight(-O):O&&(G=G.drop(O)),F!==n&&(F=jr(F),G=F<0?G.dropRight(-F):G.take(F-O)),G)},Wr.prototype.takeRightWhile=function(O){return this.reverse().takeWhile(O).reverse()},Wr.prototype.toArray=function(){return this.take(U)},Ll(Wr.prototype,function(O,F){var G=/^(?:filter|find|map|reject)|While$/.test(F),re=/^(?:head|last)$/.test(F),fe=ve[re?"take"+(F=="last"?"Right":""):F],be=re||/^find/.test(F);fe&&(ve.prototype[F]=function(){var Pe=this.__wrapped__,Ue=re?[1]:arguments,Qe=Pe instanceof Wr,_t=Ue[0],Ct=Qe||Ir(Pe),$t=function(Zr){var yi=fe.apply(ve,Wd([Zr],Ue));return re&&mn?yi[0]:yi};Ct&&G&&typeof _t=="function"&&_t.length!=1&&(Qe=Ct=!1);var mn=this.__chain__,zn=!!this.__actions__.length,fr=be&&!mn,Gr=Qe&&!zn;if(!be&&Ct){Pe=Gr?Pe:new Wr(this);var pr=O.apply(Pe,Ue);return pr.__actions__.push({func:fk,args:[$t],thisArg:n}),new nl(pr,mn)}return fr&&Gr?O.apply(this,Ue):(pr=this.thru($t),fr?re?pr.value()[0]:pr.value():pr)})}),Vs(["pop","push","shift","sort","splice","unshift"],function(O){var F=fA[O],G=/^(?:push|sort|unshift)$/.test(O)?"tap":"thru",re=/^(?:pop|shift)$/.test(O);ve.prototype[O]=function(){var fe=arguments;if(re&&!this.__chain__){var be=this.value();return F.apply(Ir(be)?be:[],fe)}return this[G](function(Pe){return F.apply(Ir(Pe)?Pe:[],fe)})}}),Ll(Wr.prototype,function(O,F){var G=ve[F];if(G){var re=G.name+"";Yi.call(Fp,re)||(Fp[re]=[]),Fp[re].push({name:F,func:G})}}),Fp[ok(n,A).name]=[{name:"wrapper",func:n}],Wr.prototype.clone=y_,Wr.prototype.reverse=HN,Wr.prototype.value=VC,ve.prototype.at=WRe,ve.prototype.chain=QRe,ve.prototype.commit=qRe,ve.prototype.next=YRe,ve.prototype.plant=ZRe,ve.prototype.reverse=XRe,ve.prototype.toJSON=ve.prototype.valueOf=ve.prototype.value=eMe,ve.prototype.first=ve.prototype.head,Cg&&(ve.prototype[Cg]=JRe),ve},Fc=Tg();Sl?((Sl.exports=Fc)._=Fc,Cs._=Fc):ma._=Fc}).call(OQ)})(aUe,aUe.exports);var tGr=Object.defineProperty,nGr=Object.defineProperties,rGr=Object.getOwnPropertyDescriptors,G1t=Object.getOwnPropertySymbols,iGr=Object.prototype.hasOwnProperty,aGr=Object.prototype.propertyIsEnumerable,V1t=(t,e,n)=>e in t?tGr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xce=(t,e)=>{for(var n in e||(e={}))iGr.call(e,n)&&V1t(t,n,e[n]);if(G1t)for(var n of G1t(e))aGr.call(e,n)&&V1t(t,n,e[n]);return t},oGr=(t,e)=>nGr(t,rGr(e));function aP(t,e,n){var r;const a=U9r(t);return((r=e.rpcMap)==null?void 0:r[a.reference])||`${eGr}?chainId=${a.namespace}:${a.reference}&projectId=${n}`}function K8(t){return t.includes(":")?t.split(":")[1]:t}function QXt(t){return t.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}function sGr(t,e){const n=Object.keys(e.namespaces).filter(a=>a.includes(t));if(!n.length)return[];const r=[];return n.forEach(a=>{const o=e.namespaces[a].accounts;r.push(...o)}),r}function lGr(t={},e={}){const n=K1t(t),r=K1t(e);return aUe.exports.merge(n,r)}function K1t(t){var e,n,r,a;const o={};if(!Uj(t))return o;for(const[s,l]of Object.entries(t)){const c=vet(s)?[s]:l.chains,u=l.methods||[],d=l.events||[],h=l.rpcMap||{},f=sZ(s);o[f]=oGr(xce(xce({},o[f]),l),{chains:U5e(c,(e=o[f])==null?void 0:e.chains),methods:U5e(u,(n=o[f])==null?void 0:n.methods),events:U5e(d,(r=o[f])==null?void 0:r.events),rpcMap:xce(xce({},h),(a=o[f])==null?void 0:a.rpcMap)})}return o}function cGr(t){return t.includes(":")?t.split(":")[2]:t}function uGr(t){const e={};for(const[n,r]of Object.entries(t)){const a=r.methods||[],o=r.events||[],s=r.accounts||[],l=vet(n)?[n]:r.chains?r.chains:QXt(r.accounts);e[n]={chains:l,methods:a,events:o,accounts:s}}return e}function tPe(t){return typeof t=="number"?t:t.includes("0x")?parseInt(t,16):t.includes(":")?Number(t.split(":")[1]):Number(t)}const qXt={},pd=t=>qXt[t],nPe=(t,e)=>{qXt[t]=e};class dGr{constructor(e){this.name="polkadot",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getAccounts(){const e=this.namespace.accounts;return e?e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2])||[]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const a=K8(n);e[a]=this.createHttpProvider(a,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||aP(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new tN(new sO(r,pd("disableProviderPing")))}}class hGr{constructor(e){this.name="eip155",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(parseInt(e),n),this.chainId=parseInt(e),this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,n){const r=n||aP(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new tN(new sO(r,pd("disableProviderPing")))}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const a=parseInt(K8(n));e[a]=this.createHttpProvider(a,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}getHttpProvider(){const e=this.chainId,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}async handleSwitchChain(e){var n,r;let a=e.request.params?(n=e.request.params[0])==null?void 0:n.chainId:"0x0";a=a.startsWith("0x")?a:`0x${a}`;const o=parseInt(a,16);if(this.isChainApproved(o))this.setDefaultChain(`${o}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:a}]},chainId:(r=this.namespace.chains)==null?void 0:r[0]}),this.setDefaultChain(`${o}`);else throw new Error(`Failed to switch to chain 'eip155:${o}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}}class fGr{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const a=K8(n);e[a]=this.createHttpProvider(a,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||aP(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new tN(new sO(r,pd("disableProviderPing")))}}class pGr{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const a=K8(n);e[a]=this.createHttpProvider(a,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||aP(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new tN(new sO(r,pd("disableProviderPing")))}}class mGr{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{const r=this.getCardanoRPCUrl(n),a=K8(n);e[a]=this.createHttpProvider(a,r)}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}getCardanoRPCUrl(e){const n=this.namespace.rpcMap;if(n)return n[e]}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||this.getCardanoRPCUrl(e);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new tN(new sO(r,pd("disableProviderPing")))}}class gGr{constructor(e){this.name="elrond",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const a=K8(n);e[a]=this.createHttpProvider(a,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||aP(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new tN(new sO(r,pd("disableProviderPing")))}}class vGr{constructor(e){this.name="multiversx",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const a=K8(n);e[a]=this.createHttpProvider(a,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||aP(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new tN(new sO(r,pd("disableProviderPing")))}}let AGr=class{constructor(e){this.name="near",this.namespace=e.namespace,this.events=pd("events"),this.client=pd("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){if(this.chainId=e,!this.httpProviders[e]){const r=n||aP(`${this.name}:${e}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(nN.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2])||[]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;e[n]=this.createHttpProvider(n,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||aP(e,this.namespace);return typeof r>"u"?void 0:new tN(new sO(r,pd("disableProviderPing")))}};var yGr=Object.defineProperty,bGr=Object.defineProperties,xGr=Object.getOwnPropertyDescriptors,W1t=Object.getOwnPropertySymbols,EGr=Object.prototype.hasOwnProperty,SGr=Object.prototype.propertyIsEnumerable,Q1t=(t,e,n)=>e in t?yGr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ece=(t,e)=>{for(var n in e||(e={}))EGr.call(e,n)&&Q1t(t,n,e[n]);if(W1t)for(var n of W1t(e))SGr.call(e,n)&&Q1t(t,n,e[n]);return t},rPe=(t,e)=>bGr(t,xGr(e));class ket{constructor(e){this.events=new aet,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger=typeof(e==null?void 0:e.logger)<"u"&&typeof(e==null?void 0:e.logger)!="string"?e.logger:KEe(WEe({level:(e==null?void 0:e.logger)||U1t})),this.disableProviderPing=(e==null?void 0:e.disableProviderPing)||!1}static async init(e){const n=new ket(e);return await n.initialize(),n}async request(e,n){const[r,a]=this.validateChain(n);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(r).request({request:Ece({},e),chainId:`${r}:${a}`,topic:this.session.topic})}sendAsync(e,n,r){const a=new Date().getTime();this.request(e,r).then(o=>n(null,QEe(a,o))).catch(o=>n(o,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:ch("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}removeListener(e,n){this.events.removeListener(e,n)}off(e,n){this.events.off(e,n)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let n=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(n>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:r,approval:a}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await a().then(o=>{this.session=o,this.namespaces||(this.namespaces=uGr(o.namespaces),this.persist("namespaces",this.namespaces))}).catch(o=>{if(o.message!==KXt)throw o;n++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,n){try{if(!this.session)return;const[r,a]=this.validateChain(e);this.getProvider(r).setDefaultChain(a,n)}catch(r){if(!/Please call connect/.test(r.message))throw r}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");const n=this.client.pairing.getAll();if(W2(n)){for(const r of n)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${n.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await Uzr.init({logger:this.providerOpts.logger||U1t,relayUrl:this.providerOpts.relayUrl||Jzr,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const e=[...new Set(Object.keys(this.session.namespaces).map(n=>sZ(n)))];nPe("client",this.client),nPe("events",this.events),nPe("disableProviderPing",this.disableProviderPing),e.forEach(n=>{if(!this.session)return;const r=sGr(n,this.session),a=QXt(r),o=lGr(this.namespaces,this.optionalNamespaces),s=rPe(Ece({},o[n]),{accounts:r,chains:a});switch(n){case"eip155":this.rpcProviders[n]=new hGr({namespace:s});break;case"solana":this.rpcProviders[n]=new fGr({namespace:s});break;case"cosmos":this.rpcProviders[n]=new pGr({namespace:s});break;case"polkadot":this.rpcProviders[n]=new dGr({namespace:s});break;case"cip34":this.rpcProviders[n]=new mGr({namespace:s});break;case"elrond":this.rpcProviders[n]=new gGr({namespace:s});break;case"multiversx":this.rpcProviders[n]=new vGr({namespace:s});break;case"near":this.rpcProviders[n]=new AGr({namespace:s});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{const{params:n}=e,{event:r}=n;if(r.name==="accountsChanged"){const a=r.data;a&&W2(a)&&this.events.emit("accountsChanged",a.map(cGr))}else if(r.name==="chainChanged"){const a=n.chainId,o=n.event.data,s=sZ(a),l=tPe(a)!==tPe(o)?`${s}:${tPe(o)}`:a;this.onChainChanged(l)}else this.events.emit(r.name,r.data);this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:n})=>{var r;const{namespaces:a}=n,o=(r=this.client)==null?void 0:r.session.get(e);this.session=rPe(Ece({},o),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:n})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",rPe(Ece({},ch("USER_DISCONNECTED")),{data:e.topic}))}),this.on(nN.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw new Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var n;this.getProvider(e).updateNamespace((n=this.session)==null?void 0:n.namespaces[e])})}setNamespaces(e){const{namespaces:n,optionalNamespaces:r,sessionProperties:a}=e;n&&Object.keys(n).length&&(this.namespaces=n),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=a,this.persist("namespaces",n),this.persist("optionalNamespaces",r)}validateChain(e){const[n,r]=(e==null?void 0:e.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[n,r];if(n&&!Object.keys(this.namespaces||{}).map(s=>sZ(s)).includes(n))throw new Error(`Namespace '${n}' is not configured. Please call connect() first with namespace config.`);if(n&&r)return[n,r];const a=sZ(Object.keys(this.namespaces)[0]),o=this.rpcProviders[a].getDefaultChain();return[a,o]}async requestAccounts(){const[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,n=!1){var r;if(!this.namespaces)return;const[a,o]=this.validateChain(e);n||this.getProvider(a).setDefaultChain(o),((r=this.namespaces[a])!=null?r:this.namespaces[`${a}:${o}`]).defaultChain=o,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",o)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,n){this.client.core.storage.setItem(`${z1t}/${e}`,n)}async getFromStore(e){return await this.client.core.storage.getItem(`${z1t}/${e}`)}}const wGr=ket,_Gr="wc",TGr="ethereum_provider",CGr=`${_Gr}@2:${TGr}:`,kGr="https://rpc.walletconnect.com/v1/",oUe=["eth_sendTransaction","personal_sign"],RGr=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],sUe=["chainChanged","accountsChanged"],MGr=["chainChanged","accountsChanged","message","disconnect","connect"];var NGr=Object.defineProperty,IGr=Object.defineProperties,PGr=Object.getOwnPropertyDescriptors,q1t=Object.getOwnPropertySymbols,OGr=Object.prototype.hasOwnProperty,LGr=Object.prototype.propertyIsEnumerable,Y1t=(t,e,n)=>e in t?NGr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cZ=(t,e)=>{for(var n in e||(e={}))OGr.call(e,n)&&Y1t(t,n,e[n]);if(q1t)for(var n of q1t(e))LGr.call(e,n)&&Y1t(t,n,e[n]);return t},J1t=(t,e)=>IGr(t,PGr(e));function G0e(t){return Number(t[0].split(":")[1])}function iPe(t){return`0x${t.toString(16)}`}function BGr(t){const{chains:e,optionalChains:n,methods:r,optionalMethods:a,events:o,optionalEvents:s,rpcMap:l}=t;if(!W2(e))throw new Error("Invalid chains");const c={chains:e,methods:r||oUe,events:o||sUe,rpcMap:cZ({},e.length?{[G0e(e)]:l[G0e(e)]}:{})},u=o==null?void 0:o.filter(p=>!sUe.includes(p)),d=r==null?void 0:r.filter(p=>!oUe.includes(p));if(!n&&!s&&!a&&!(u!=null&&u.length)&&!(d!=null&&d.length))return{required:e.length?c:void 0};const h=(u==null?void 0:u.length)&&(d==null?void 0:d.length)||!n,f={chains:[...new Set(h?c.chains.concat(n||[]):n)],methods:[...new Set(c.methods.concat(a!=null&&a.length?a:RGr))],events:[...new Set(c.events.concat(s!=null&&s.length?s:MGr))],rpcMap:l};return{required:e.length?c:void 0,optional:n.length?f:void 0}}let DGr=class YXt{constructor(){this.events=new mg.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=CGr,this.on=(e,n)=>(this.events.on(e,n),this),this.once=(e,n)=>(this.events.once(e,n),this),this.removeListener=(e,n)=>(this.events.removeListener(e,n),this),this.off=(e,n)=>(this.events.off(e,n),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){const n=new YXt;return await n.initialize(e),n}async request(e){return await this.signer.request(e,this.formatChainId(this.chainId))}sendAsync(e,n){this.signer.sendAsync(e,n,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);const{required:n,optional:r}=BGr(this.rpc);try{const a=await new Promise(async(s,l)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(u=>{!u.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),l(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(J1t(cZ({namespaces:cZ({},n&&{[this.namespace]:n})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:e==null?void 0:e.pairingTopic})).then(u=>{s(u)}).catch(u=>{l(new Error(u.message))})});if(!a)return;const o=z9r(a.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:o),this.setAccounts(o),this.events.emit("connect",{chainId:iPe(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",e=>{const{params:n}=e,{event:r}=n;r.name==="accountsChanged"?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):r.name==="chainChanged"?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",e)}),this.signer.on("chainChanged",e=>{const n=parseInt(e);this.chainId=n,this.events.emit("chainChanged",iPe(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",J1t(cZ({},ch("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var n,r;this.rpc.showQrModal&&((n=this.modal)==null||n.closeModal(),(r=this.modal)==null||r.openModal({uri:e})),this.events.emit("display_uri",e)})}switchEthereumChain(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){const n=e.filter(r=>this.isCompatibleChainId(r)).map(r=>this.parseChainId(r));n.length&&(this.chainId=n[0],this.events.emit("chainChanged",iPe(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){const n=this.parseChainId(e);this.chainId=n,this.switchEthereumChain(n)}}parseAccountId(e){const[n,r,a]=e.split(":");return{chainId:`${n}:${r}`,address:a}}setAccounts(e){this.accounts=e.filter(n=>this.parseChainId(this.parseAccountId(n).chainId)===this.chainId).map(n=>this.parseAccountId(n).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var n,r;const a=(n=e==null?void 0:e.chains)!=null?n:[],o=(r=e==null?void 0:e.optionalChains)!=null?r:[],s=a.concat(o);if(!s.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const l=a.length?(e==null?void 0:e.methods)||oUe:[],c=a.length?(e==null?void 0:e.events)||sUe:[],u=(e==null?void 0:e.optionalMethods)||[],d=(e==null?void 0:e.optionalEvents)||[],h=(e==null?void 0:e.rpcMap)||this.buildRpcMap(s,e.projectId),f=(e==null?void 0:e.qrModalOptions)||void 0;return{chains:a==null?void 0:a.map(p=>this.formatChainId(p)),optionalChains:o.map(p=>this.formatChainId(p)),methods:l,events:c,optionalMethods:u,optionalEvents:d,rpcMap:h,showQrModal:!!(e!=null&&e.showQrModal),qrModalOptions:f,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,n){const r={};return e.forEach(a=>{r[a]=this.getRpcUrl(a,n)}),r}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?G0e(this.rpc.chains):G0e(this.rpc.optionalChains),this.signer=await wGr.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storageOptions:e.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let n;try{const{WalletConnectModal:r}=await hM(()=>import("./index-4cf0f6c0.js").then(a=>a.i),[]);n=r}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(n)try{this.modal=new n(cZ({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(r){throw this.signer.logger.error(r),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(e){if(!e)return;const{chains:n,optionalChains:r,rpcMap:a}=e;n&&W2(n)&&(this.rpc.chains=n.map(o=>this.formatChainId(o)),n.forEach(o=>{this.rpc.rpcMap[o]=(a==null?void 0:a[o])||this.getRpcUrl(o)})),r&&W2(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r==null?void 0:r.map(o=>this.formatChainId(o)),r.forEach(o=>{this.rpc.rpcMap[o]=(a==null?void 0:a[o])||this.getRpcUrl(o)}))}getRpcUrl(e,n){var r;return((r=this.rpc.rpcMap)==null?void 0:r[e])||`${kGr}?chainId=eip155:${e}&projectId=${n||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),n=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:n==null?void 0:n.accounts),this.setAccounts(n==null?void 0:n.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e=="string"||e instanceof String?[this.parseAccount(e)]:e.map(n=>this.parseAccount(n))}};var Ret={exports:{}};Ret.exports;(function(t){(function(e,n){function r(I,b){if(!I)throw new Error(b||"Assertion failed")}function a(I,b){I.super_=b;var T=function(){};T.prototype=b.prototype,I.prototype=new T,I.prototype.constructor=I}function o(I,b,T){if(o.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((b==="le"||b==="be")&&(T=b,b=10),this._init(I||0,b||10,T||"be"))}typeof e=="object"?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=H8.Buffer}catch{}o.isBN=function(b){return b instanceof o?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===o.wordSize&&Array.isArray(b.words)},o.max=function(b,T){return b.cmp(T)>0?b:T},o.min=function(b,T){return b.cmp(T)<0?b:T},o.prototype._init=function(b,T,M){if(typeof b=="number")return this._initNumber(b,T,M);if(typeof b=="object")return this._initArray(b,T,M);T==="hex"&&(T=16),r(T===(T|0)&&T>=2&&T<=36),b=b.toString().replace(/\s+/g,"");var D=0;b[0]==="-"&&(D++,this.negative=1),D<b.length&&(T===16?this._parseHex(b,D,M):(this._parseBase(b,T,D),M==="le"&&this._initArray(this.toArray(),T,M)))},o.prototype._initNumber=function(b,T,M){b<0&&(this.negative=1,b=-b),b<67108864?(this.words=[b&67108863],this.length=1):b<4503599627370496?(this.words=[b&67108863,b/67108864&67108863],this.length=2):(r(b<9007199254740992),this.words=[b&67108863,b/67108864&67108863,1],this.length=3),M==="le"&&this._initArray(this.toArray(),T,M)},o.prototype._initArray=function(b,T,M){if(r(typeof b.length=="number"),b.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(b.length/3),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B,j,H=0;if(M==="be")for(D=b.length-1,B=0;D>=0;D-=3)j=b[D]|b[D-1]<<8|b[D-2]<<16,this.words[B]|=j<<H&67108863,this.words[B+1]=j>>>26-H&67108863,H+=24,H>=26&&(H-=26,B++);else if(M==="le")for(D=0,B=0;D<b.length;D+=3)j=b[D]|b[D+1]<<8|b[D+2]<<16,this.words[B]|=j<<H&67108863,this.words[B+1]=j>>>26-H&67108863,H+=24,H>=26&&(H-=26,B++);return this._strip()};function l(I,b){var T=I.charCodeAt(b);if(T>=48&&T<=57)return T-48;if(T>=65&&T<=70)return T-55;if(T>=97&&T<=102)return T-87;r(!1,"Invalid character in "+I)}function c(I,b,T){var M=l(I,T);return T-1>=b&&(M|=l(I,T-1)<<4),M}o.prototype._parseHex=function(b,T,M){this.length=Math.ceil((b.length-T)/6),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B=0,j=0,H;if(M==="be")for(D=b.length-1;D>=T;D-=2)H=c(b,T,D)<<B,this.words[j]|=H&67108863,B>=18?(B-=18,j+=1,this.words[j]|=H>>>26):B+=8;else{var U=b.length-T;for(D=U%2===0?T+1:T;D<b.length;D+=2)H=c(b,T,D)<<B,this.words[j]|=H&67108863,B>=18?(B-=18,j+=1,this.words[j]|=H>>>26):B+=8}this._strip()};function u(I,b,T,M){for(var D=0,B=0,j=Math.min(I.length,T),H=b;H<j;H++){var U=I.charCodeAt(H)-48;D*=M,U>=49?B=U-49+10:U>=17?B=U-17+10:B=U,r(U>=0&&B<M,"Invalid character"),D+=B}return D}o.prototype._parseBase=function(b,T,M){this.words=[0],this.length=1;for(var D=0,B=1;B<=67108863;B*=T)D++;D--,B=B/T|0;for(var j=b.length-M,H=j%D,U=Math.min(j,j-H)+M,$=0,z=M;z<U;z+=D)$=u(b,z,z+D,T),this.imuln(B),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($);if(H!==0){var Z=1;for($=u(b,z,b.length,T),z=0;z<H;z++)Z*=T;this.imuln(Z),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($)}this._strip()},o.prototype.copy=function(b){b.words=new Array(this.length);for(var T=0;T<this.length;T++)b.words[T]=this.words[T];b.length=this.length,b.negative=this.negative,b.red=this.red};function d(I,b){I.words=b.words,I.length=b.length,I.negative=b.negative,I.red=b.red}if(o.prototype._move=function(b){d(b,this)},o.prototype.clone=function(){var b=new o(null);return this.copy(b),b},o.prototype._expand=function(b){for(;this.length<b;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(b,T){b=b||10,T=T|0||1;var M;if(b===16||b==="hex"){M="";for(var D=0,B=0,j=0;j<this.length;j++){var H=this.words[j],U=((H<<D|B)&16777215).toString(16);B=H>>>24-D&16777215,D+=2,D>=26&&(D-=26,j--),B!==0||j!==this.length-1?M=f[6-U.length]+U+M:M=U+M}for(B!==0&&(M=B.toString(16)+M);M.length%T!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(b===(b|0)&&b>=2&&b<=36){var $=p[b],z=m[b];M="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var K=Z.modrn(z).toString(b);Z=Z.idivn(z),Z.isZero()?M=K+M:M=f[$-K.length]+K+M}for(this.isZero()&&(M="0"+M);M.length%T!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(b,T){return this.toArrayLike(s,b,T)}),o.prototype.toArray=function(b,T){return this.toArrayLike(Array,b,T)};var g=function(b,T){return b.allocUnsafe?b.allocUnsafe(T):new b(T)};o.prototype.toArrayLike=function(b,T,M){this._strip();var D=this.byteLength(),B=M||Math.max(1,D);r(D<=B,"byte array longer than desired length"),r(B>0,"Requested array length <= 0");var j=g(b,B),H=T==="le"?"LE":"BE";return this["_toArrayLike"+H](j,D),j},o.prototype._toArrayLikeLE=function(b,T){for(var M=0,D=0,B=0,j=0;B<this.length;B++){var H=this.words[B]<<j|D;b[M++]=H&255,M<b.length&&(b[M++]=H>>8&255),M<b.length&&(b[M++]=H>>16&255),j===6?(M<b.length&&(b[M++]=H>>24&255),D=0,j=0):(D=H>>>24,j+=2)}if(M<b.length)for(b[M++]=D;M<b.length;)b[M++]=0},o.prototype._toArrayLikeBE=function(b,T){for(var M=b.length-1,D=0,B=0,j=0;B<this.length;B++){var H=this.words[B]<<j|D;b[M--]=H&255,M>=0&&(b[M--]=H>>8&255),M>=0&&(b[M--]=H>>16&255),j===6?(M>=0&&(b[M--]=H>>24&255),D=0,j=0):(D=H>>>24,j+=2)}if(M>=0)for(b[M--]=D;M>=0;)b[M--]=0},Math.clz32?o.prototype._countBits=function(b){return 32-Math.clz32(b)}:o.prototype._countBits=function(b){var T=b,M=0;return T>=4096&&(M+=13,T>>>=13),T>=64&&(M+=7,T>>>=7),T>=8&&(M+=4,T>>>=4),T>=2&&(M+=2,T>>>=2),M+T},o.prototype._zeroBits=function(b){if(b===0)return 26;var T=b,M=0;return T&8191||(M+=13,T>>>=13),T&127||(M+=7,T>>>=7),T&15||(M+=4,T>>>=4),T&3||(M+=2,T>>>=2),T&1||M++,M},o.prototype.bitLength=function(){var b=this.words[this.length-1],T=this._countBits(b);return(this.length-1)*26+T};function v(I){for(var b=new Array(I.bitLength()),T=0;T<b.length;T++){var M=T/26|0,D=T%26;b[T]=I.words[M]>>>D&1}return b}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,T=0;T<this.length;T++){var M=this._zeroBits(this.words[T]);if(b+=M,M!==26)break}return b},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(b){return this.negative!==0?this.abs().inotn(b).iaddn(1):this.clone()},o.prototype.fromTwos=function(b){return this.testn(b-1)?this.notn(b).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(b){for(;this.length<b.length;)this.words[this.length++]=0;for(var T=0;T<b.length;T++)this.words[T]=this.words[T]|b.words[T];return this._strip()},o.prototype.ior=function(b){return r((this.negative|b.negative)===0),this.iuor(b)},o.prototype.or=function(b){return this.length>b.length?this.clone().ior(b):b.clone().ior(this)},o.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},o.prototype.iuand=function(b){var T;this.length>b.length?T=b:T=this;for(var M=0;M<T.length;M++)this.words[M]=this.words[M]&b.words[M];return this.length=T.length,this._strip()},o.prototype.iand=function(b){return r((this.negative|b.negative)===0),this.iuand(b)},o.prototype.and=function(b){return this.length>b.length?this.clone().iand(b):b.clone().iand(this)},o.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},o.prototype.iuxor=function(b){var T,M;this.length>b.length?(T=this,M=b):(T=b,M=this);for(var D=0;D<M.length;D++)this.words[D]=T.words[D]^M.words[D];if(this!==T)for(;D<T.length;D++)this.words[D]=T.words[D];return this.length=T.length,this._strip()},o.prototype.ixor=function(b){return r((this.negative|b.negative)===0),this.iuxor(b)},o.prototype.xor=function(b){return this.length>b.length?this.clone().ixor(b):b.clone().ixor(this)},o.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},o.prototype.inotn=function(b){r(typeof b=="number"&&b>=0);var T=Math.ceil(b/26)|0,M=b%26;this._expand(T),M>0&&T--;for(var D=0;D<T;D++)this.words[D]=~this.words[D]&67108863;return M>0&&(this.words[D]=~this.words[D]&67108863>>26-M),this._strip()},o.prototype.notn=function(b){return this.clone().inotn(b)},o.prototype.setn=function(b,T){r(typeof b=="number"&&b>=0);var M=b/26|0,D=b%26;return this._expand(M+1),T?this.words[M]=this.words[M]|1<<D:this.words[M]=this.words[M]&~(1<<D),this._strip()},o.prototype.iadd=function(b){var T;if(this.negative!==0&&b.negative===0)return this.negative=0,T=this.isub(b),this.negative^=1,this._normSign();if(this.negative===0&&b.negative!==0)return b.negative=0,T=this.isub(b),b.negative=1,T._normSign();var M,D;this.length>b.length?(M=this,D=b):(M=b,D=this);for(var B=0,j=0;j<D.length;j++)T=(M.words[j]|0)+(D.words[j]|0)+B,this.words[j]=T&67108863,B=T>>>26;for(;B!==0&&j<M.length;j++)T=(M.words[j]|0)+B,this.words[j]=T&67108863,B=T>>>26;if(this.length=M.length,B!==0)this.words[this.length]=B,this.length++;else if(M!==this)for(;j<M.length;j++)this.words[j]=M.words[j];return this},o.prototype.add=function(b){var T;return b.negative!==0&&this.negative===0?(b.negative=0,T=this.sub(b),b.negative^=1,T):b.negative===0&&this.negative!==0?(this.negative=0,T=b.sub(this),this.negative=1,T):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},o.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var T=this.iadd(b);return b.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var M=this.cmp(b);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;M>0?(D=this,B=b):(D=b,B=this);for(var j=0,H=0;H<B.length;H++)T=(D.words[H]|0)-(B.words[H]|0)+j,j=T>>26,this.words[H]=T&67108863;for(;j!==0&&H<D.length;H++)T=(D.words[H]|0)+j,j=T>>26,this.words[H]=T&67108863;if(j===0&&H<D.length&&D!==this)for(;H<D.length;H++)this.words[H]=D.words[H];return this.length=Math.max(this.length,H),D!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(b){return this.clone().isub(b)};function A(I,b,T){T.negative=b.negative^I.negative;var M=I.length+b.length|0;T.length=M,M=M-1|0;var D=I.words[0]|0,B=b.words[0]|0,j=D*B,H=j&67108863,U=j/67108864|0;T.words[0]=H;for(var $=1;$<M;$++){for(var z=U>>>26,Z=U&67108863,K=Math.min($,b.length-1),Q=Math.max(0,$-I.length+1);Q<=K;Q++){var ee=$-Q|0;D=I.words[ee]|0,B=b.words[Q]|0,j=D*B+Z,z+=j/67108864|0,Z=j&67108863}T.words[$]=Z|0,U=z|0}return U!==0?T.words[$]=U|0:T.length--,T._strip()}var y=function(b,T,M){var D=b.words,B=T.words,j=M.words,H=0,U,$,z,Z=D[0]|0,K=Z&8191,Q=Z>>>13,ee=D[1]|0,X=ee&8191,te=ee>>>13,J=D[2]|0,ne=J&8191,ie=J>>>13,he=D[3]|0,de=he&8191,ce=he>>>13,Ee=D[4]|0,Me=Ee&8191,Be=Ee>>>13,ze=D[5]|0,je=ze&8191,ye=ze>>>13,me=D[6]|0,le=me&8191,pe=me>>>13,Ne=D[7]|0,_e=Ne&8191,ue=Ne>>>13,se=D[8]|0,oe=se&8191,ge=se>>>13,De=D[9]|0,Fe=De&8191,Se=De>>>13,Xe=B[0]|0,Oe=Xe&8191,Ye=Xe>>>13,mt=B[1]|0,ut=mt&8191,lt=mt>>>13,pn=B[2]|0,sn=pn&8191,un=pn>>>13,ur=B[3]|0,dt=ur&8191,xt=ur>>>13,Cn=B[4]|0,Kt=Cn&8191,rn=Cn>>>13,On=B[5]|0,an=On&8191,on=On>>>13,dr=B[6]|0,$e=dr&8191,qe=dr>>>13,yt=B[7]|0,Ze=yt&8191,ot=yt>>>13,yn=B[8]|0,vt=yn&8191,Gt=yn>>>13,ft=B[9]|0,rt=ft&8191,Pt=ft>>>13;M.negative=b.negative^T.negative,M.length=19,U=Math.imul(K,Oe),$=Math.imul(K,Ye),$=$+Math.imul(Q,Oe)|0,z=Math.imul(Q,Ye);var Yt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,U=Math.imul(X,Oe),$=Math.imul(X,Ye),$=$+Math.imul(te,Oe)|0,z=Math.imul(te,Ye),U=U+Math.imul(K,ut)|0,$=$+Math.imul(K,lt)|0,$=$+Math.imul(Q,ut)|0,z=z+Math.imul(Q,lt)|0;var Un=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Un>>>26)|0,Un&=67108863,U=Math.imul(ne,Oe),$=Math.imul(ne,Ye),$=$+Math.imul(ie,Oe)|0,z=Math.imul(ie,Ye),U=U+Math.imul(X,ut)|0,$=$+Math.imul(X,lt)|0,$=$+Math.imul(te,ut)|0,z=z+Math.imul(te,lt)|0,U=U+Math.imul(K,sn)|0,$=$+Math.imul(K,un)|0,$=$+Math.imul(Q,sn)|0,z=z+Math.imul(Q,un)|0;var jn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(jn>>>26)|0,jn&=67108863,U=Math.imul(de,Oe),$=Math.imul(de,Ye),$=$+Math.imul(ce,Oe)|0,z=Math.imul(ce,Ye),U=U+Math.imul(ne,ut)|0,$=$+Math.imul(ne,lt)|0,$=$+Math.imul(ie,ut)|0,z=z+Math.imul(ie,lt)|0,U=U+Math.imul(X,sn)|0,$=$+Math.imul(X,un)|0,$=$+Math.imul(te,sn)|0,z=z+Math.imul(te,un)|0,U=U+Math.imul(K,dt)|0,$=$+Math.imul(K,xt)|0,$=$+Math.imul(Q,dt)|0,z=z+Math.imul(Q,xt)|0;var br=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(br>>>26)|0,br&=67108863,U=Math.imul(Me,Oe),$=Math.imul(Me,Ye),$=$+Math.imul(Be,Oe)|0,z=Math.imul(Be,Ye),U=U+Math.imul(de,ut)|0,$=$+Math.imul(de,lt)|0,$=$+Math.imul(ce,ut)|0,z=z+Math.imul(ce,lt)|0,U=U+Math.imul(ne,sn)|0,$=$+Math.imul(ne,un)|0,$=$+Math.imul(ie,sn)|0,z=z+Math.imul(ie,un)|0,U=U+Math.imul(X,dt)|0,$=$+Math.imul(X,xt)|0,$=$+Math.imul(te,dt)|0,z=z+Math.imul(te,xt)|0,U=U+Math.imul(K,Kt)|0,$=$+Math.imul(K,rn)|0,$=$+Math.imul(Q,Kt)|0,z=z+Math.imul(Q,rn)|0;var si=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(si>>>26)|0,si&=67108863,U=Math.imul(je,Oe),$=Math.imul(je,Ye),$=$+Math.imul(ye,Oe)|0,z=Math.imul(ye,Ye),U=U+Math.imul(Me,ut)|0,$=$+Math.imul(Me,lt)|0,$=$+Math.imul(Be,ut)|0,z=z+Math.imul(Be,lt)|0,U=U+Math.imul(de,sn)|0,$=$+Math.imul(de,un)|0,$=$+Math.imul(ce,sn)|0,z=z+Math.imul(ce,un)|0,U=U+Math.imul(ne,dt)|0,$=$+Math.imul(ne,xt)|0,$=$+Math.imul(ie,dt)|0,z=z+Math.imul(ie,xt)|0,U=U+Math.imul(X,Kt)|0,$=$+Math.imul(X,rn)|0,$=$+Math.imul(te,Kt)|0,z=z+Math.imul(te,rn)|0,U=U+Math.imul(K,an)|0,$=$+Math.imul(K,on)|0,$=$+Math.imul(Q,an)|0,z=z+Math.imul(Q,on)|0;var Qi=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,U=Math.imul(le,Oe),$=Math.imul(le,Ye),$=$+Math.imul(pe,Oe)|0,z=Math.imul(pe,Ye),U=U+Math.imul(je,ut)|0,$=$+Math.imul(je,lt)|0,$=$+Math.imul(ye,ut)|0,z=z+Math.imul(ye,lt)|0,U=U+Math.imul(Me,sn)|0,$=$+Math.imul(Me,un)|0,$=$+Math.imul(Be,sn)|0,z=z+Math.imul(Be,un)|0,U=U+Math.imul(de,dt)|0,$=$+Math.imul(de,xt)|0,$=$+Math.imul(ce,dt)|0,z=z+Math.imul(ce,xt)|0,U=U+Math.imul(ne,Kt)|0,$=$+Math.imul(ne,rn)|0,$=$+Math.imul(ie,Kt)|0,z=z+Math.imul(ie,rn)|0,U=U+Math.imul(X,an)|0,$=$+Math.imul(X,on)|0,$=$+Math.imul(te,an)|0,z=z+Math.imul(te,on)|0,U=U+Math.imul(K,$e)|0,$=$+Math.imul(K,qe)|0,$=$+Math.imul(Q,$e)|0,z=z+Math.imul(Q,qe)|0;var st=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(st>>>26)|0,st&=67108863,U=Math.imul(_e,Oe),$=Math.imul(_e,Ye),$=$+Math.imul(ue,Oe)|0,z=Math.imul(ue,Ye),U=U+Math.imul(le,ut)|0,$=$+Math.imul(le,lt)|0,$=$+Math.imul(pe,ut)|0,z=z+Math.imul(pe,lt)|0,U=U+Math.imul(je,sn)|0,$=$+Math.imul(je,un)|0,$=$+Math.imul(ye,sn)|0,z=z+Math.imul(ye,un)|0,U=U+Math.imul(Me,dt)|0,$=$+Math.imul(Me,xt)|0,$=$+Math.imul(Be,dt)|0,z=z+Math.imul(Be,xt)|0,U=U+Math.imul(de,Kt)|0,$=$+Math.imul(de,rn)|0,$=$+Math.imul(ce,Kt)|0,z=z+Math.imul(ce,rn)|0,U=U+Math.imul(ne,an)|0,$=$+Math.imul(ne,on)|0,$=$+Math.imul(ie,an)|0,z=z+Math.imul(ie,on)|0,U=U+Math.imul(X,$e)|0,$=$+Math.imul(X,qe)|0,$=$+Math.imul(te,$e)|0,z=z+Math.imul(te,qe)|0,U=U+Math.imul(K,Ze)|0,$=$+Math.imul(K,ot)|0,$=$+Math.imul(Q,Ze)|0,z=z+Math.imul(Q,ot)|0;var wt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(wt>>>26)|0,wt&=67108863,U=Math.imul(oe,Oe),$=Math.imul(oe,Ye),$=$+Math.imul(ge,Oe)|0,z=Math.imul(ge,Ye),U=U+Math.imul(_e,ut)|0,$=$+Math.imul(_e,lt)|0,$=$+Math.imul(ue,ut)|0,z=z+Math.imul(ue,lt)|0,U=U+Math.imul(le,sn)|0,$=$+Math.imul(le,un)|0,$=$+Math.imul(pe,sn)|0,z=z+Math.imul(pe,un)|0,U=U+Math.imul(je,dt)|0,$=$+Math.imul(je,xt)|0,$=$+Math.imul(ye,dt)|0,z=z+Math.imul(ye,xt)|0,U=U+Math.imul(Me,Kt)|0,$=$+Math.imul(Me,rn)|0,$=$+Math.imul(Be,Kt)|0,z=z+Math.imul(Be,rn)|0,U=U+Math.imul(de,an)|0,$=$+Math.imul(de,on)|0,$=$+Math.imul(ce,an)|0,z=z+Math.imul(ce,on)|0,U=U+Math.imul(ne,$e)|0,$=$+Math.imul(ne,qe)|0,$=$+Math.imul(ie,$e)|0,z=z+Math.imul(ie,qe)|0,U=U+Math.imul(X,Ze)|0,$=$+Math.imul(X,ot)|0,$=$+Math.imul(te,Ze)|0,z=z+Math.imul(te,ot)|0,U=U+Math.imul(K,vt)|0,$=$+Math.imul(K,Gt)|0,$=$+Math.imul(Q,vt)|0,z=z+Math.imul(Q,Gt)|0;var Bt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,U=Math.imul(Fe,Oe),$=Math.imul(Fe,Ye),$=$+Math.imul(Se,Oe)|0,z=Math.imul(Se,Ye),U=U+Math.imul(oe,ut)|0,$=$+Math.imul(oe,lt)|0,$=$+Math.imul(ge,ut)|0,z=z+Math.imul(ge,lt)|0,U=U+Math.imul(_e,sn)|0,$=$+Math.imul(_e,un)|0,$=$+Math.imul(ue,sn)|0,z=z+Math.imul(ue,un)|0,U=U+Math.imul(le,dt)|0,$=$+Math.imul(le,xt)|0,$=$+Math.imul(pe,dt)|0,z=z+Math.imul(pe,xt)|0,U=U+Math.imul(je,Kt)|0,$=$+Math.imul(je,rn)|0,$=$+Math.imul(ye,Kt)|0,z=z+Math.imul(ye,rn)|0,U=U+Math.imul(Me,an)|0,$=$+Math.imul(Me,on)|0,$=$+Math.imul(Be,an)|0,z=z+Math.imul(Be,on)|0,U=U+Math.imul(de,$e)|0,$=$+Math.imul(de,qe)|0,$=$+Math.imul(ce,$e)|0,z=z+Math.imul(ce,qe)|0,U=U+Math.imul(ne,Ze)|0,$=$+Math.imul(ne,ot)|0,$=$+Math.imul(ie,Ze)|0,z=z+Math.imul(ie,ot)|0,U=U+Math.imul(X,vt)|0,$=$+Math.imul(X,Gt)|0,$=$+Math.imul(te,vt)|0,z=z+Math.imul(te,Gt)|0,U=U+Math.imul(K,rt)|0,$=$+Math.imul(K,Pt)|0,$=$+Math.imul(Q,rt)|0,z=z+Math.imul(Q,Pt)|0;var dn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(dn>>>26)|0,dn&=67108863,U=Math.imul(Fe,ut),$=Math.imul(Fe,lt),$=$+Math.imul(Se,ut)|0,z=Math.imul(Se,lt),U=U+Math.imul(oe,sn)|0,$=$+Math.imul(oe,un)|0,$=$+Math.imul(ge,sn)|0,z=z+Math.imul(ge,un)|0,U=U+Math.imul(_e,dt)|0,$=$+Math.imul(_e,xt)|0,$=$+Math.imul(ue,dt)|0,z=z+Math.imul(ue,xt)|0,U=U+Math.imul(le,Kt)|0,$=$+Math.imul(le,rn)|0,$=$+Math.imul(pe,Kt)|0,z=z+Math.imul(pe,rn)|0,U=U+Math.imul(je,an)|0,$=$+Math.imul(je,on)|0,$=$+Math.imul(ye,an)|0,z=z+Math.imul(ye,on)|0,U=U+Math.imul(Me,$e)|0,$=$+Math.imul(Me,qe)|0,$=$+Math.imul(Be,$e)|0,z=z+Math.imul(Be,qe)|0,U=U+Math.imul(de,Ze)|0,$=$+Math.imul(de,ot)|0,$=$+Math.imul(ce,Ze)|0,z=z+Math.imul(ce,ot)|0,U=U+Math.imul(ne,vt)|0,$=$+Math.imul(ne,Gt)|0,$=$+Math.imul(ie,vt)|0,z=z+Math.imul(ie,Gt)|0,U=U+Math.imul(X,rt)|0,$=$+Math.imul(X,Pt)|0,$=$+Math.imul(te,rt)|0,z=z+Math.imul(te,Pt)|0;var tn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(tn>>>26)|0,tn&=67108863,U=Math.imul(Fe,sn),$=Math.imul(Fe,un),$=$+Math.imul(Se,sn)|0,z=Math.imul(Se,un),U=U+Math.imul(oe,dt)|0,$=$+Math.imul(oe,xt)|0,$=$+Math.imul(ge,dt)|0,z=z+Math.imul(ge,xt)|0,U=U+Math.imul(_e,Kt)|0,$=$+Math.imul(_e,rn)|0,$=$+Math.imul(ue,Kt)|0,z=z+Math.imul(ue,rn)|0,U=U+Math.imul(le,an)|0,$=$+Math.imul(le,on)|0,$=$+Math.imul(pe,an)|0,z=z+Math.imul(pe,on)|0,U=U+Math.imul(je,$e)|0,$=$+Math.imul(je,qe)|0,$=$+Math.imul(ye,$e)|0,z=z+Math.imul(ye,qe)|0,U=U+Math.imul(Me,Ze)|0,$=$+Math.imul(Me,ot)|0,$=$+Math.imul(Be,Ze)|0,z=z+Math.imul(Be,ot)|0,U=U+Math.imul(de,vt)|0,$=$+Math.imul(de,Gt)|0,$=$+Math.imul(ce,vt)|0,z=z+Math.imul(ce,Gt)|0,U=U+Math.imul(ne,rt)|0,$=$+Math.imul(ne,Pt)|0,$=$+Math.imul(ie,rt)|0,z=z+Math.imul(ie,Pt)|0;var vn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(vn>>>26)|0,vn&=67108863,U=Math.imul(Fe,dt),$=Math.imul(Fe,xt),$=$+Math.imul(Se,dt)|0,z=Math.imul(Se,xt),U=U+Math.imul(oe,Kt)|0,$=$+Math.imul(oe,rn)|0,$=$+Math.imul(ge,Kt)|0,z=z+Math.imul(ge,rn)|0,U=U+Math.imul(_e,an)|0,$=$+Math.imul(_e,on)|0,$=$+Math.imul(ue,an)|0,z=z+Math.imul(ue,on)|0,U=U+Math.imul(le,$e)|0,$=$+Math.imul(le,qe)|0,$=$+Math.imul(pe,$e)|0,z=z+Math.imul(pe,qe)|0,U=U+Math.imul(je,Ze)|0,$=$+Math.imul(je,ot)|0,$=$+Math.imul(ye,Ze)|0,z=z+Math.imul(ye,ot)|0,U=U+Math.imul(Me,vt)|0,$=$+Math.imul(Me,Gt)|0,$=$+Math.imul(Be,vt)|0,z=z+Math.imul(Be,Gt)|0,U=U+Math.imul(de,rt)|0,$=$+Math.imul(de,Pt)|0,$=$+Math.imul(ce,rt)|0,z=z+Math.imul(ce,Pt)|0;var kn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(kn>>>26)|0,kn&=67108863,U=Math.imul(Fe,Kt),$=Math.imul(Fe,rn),$=$+Math.imul(Se,Kt)|0,z=Math.imul(Se,rn),U=U+Math.imul(oe,an)|0,$=$+Math.imul(oe,on)|0,$=$+Math.imul(ge,an)|0,z=z+Math.imul(ge,on)|0,U=U+Math.imul(_e,$e)|0,$=$+Math.imul(_e,qe)|0,$=$+Math.imul(ue,$e)|0,z=z+Math.imul(ue,qe)|0,U=U+Math.imul(le,Ze)|0,$=$+Math.imul(le,ot)|0,$=$+Math.imul(pe,Ze)|0,z=z+Math.imul(pe,ot)|0,U=U+Math.imul(je,vt)|0,$=$+Math.imul(je,Gt)|0,$=$+Math.imul(ye,vt)|0,z=z+Math.imul(ye,Gt)|0,U=U+Math.imul(Me,rt)|0,$=$+Math.imul(Me,Pt)|0,$=$+Math.imul(Be,rt)|0,z=z+Math.imul(Be,Pt)|0;var Mn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,U=Math.imul(Fe,an),$=Math.imul(Fe,on),$=$+Math.imul(Se,an)|0,z=Math.imul(Se,on),U=U+Math.imul(oe,$e)|0,$=$+Math.imul(oe,qe)|0,$=$+Math.imul(ge,$e)|0,z=z+Math.imul(ge,qe)|0,U=U+Math.imul(_e,Ze)|0,$=$+Math.imul(_e,ot)|0,$=$+Math.imul(ue,Ze)|0,z=z+Math.imul(ue,ot)|0,U=U+Math.imul(le,vt)|0,$=$+Math.imul(le,Gt)|0,$=$+Math.imul(pe,vt)|0,z=z+Math.imul(pe,Gt)|0,U=U+Math.imul(je,rt)|0,$=$+Math.imul(je,Pt)|0,$=$+Math.imul(ye,rt)|0,z=z+Math.imul(ye,Pt)|0;var Nr=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,U=Math.imul(Fe,$e),$=Math.imul(Fe,qe),$=$+Math.imul(Se,$e)|0,z=Math.imul(Se,qe),U=U+Math.imul(oe,Ze)|0,$=$+Math.imul(oe,ot)|0,$=$+Math.imul(ge,Ze)|0,z=z+Math.imul(ge,ot)|0,U=U+Math.imul(_e,vt)|0,$=$+Math.imul(_e,Gt)|0,$=$+Math.imul(ue,vt)|0,z=z+Math.imul(ue,Gt)|0,U=U+Math.imul(le,rt)|0,$=$+Math.imul(le,Pt)|0,$=$+Math.imul(pe,rt)|0,z=z+Math.imul(pe,Pt)|0;var na=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(na>>>26)|0,na&=67108863,U=Math.imul(Fe,Ze),$=Math.imul(Fe,ot),$=$+Math.imul(Se,Ze)|0,z=Math.imul(Se,ot),U=U+Math.imul(oe,vt)|0,$=$+Math.imul(oe,Gt)|0,$=$+Math.imul(ge,vt)|0,z=z+Math.imul(ge,Gt)|0,U=U+Math.imul(_e,rt)|0,$=$+Math.imul(_e,Pt)|0,$=$+Math.imul(ue,rt)|0,z=z+Math.imul(ue,Pt)|0;var Ar=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,U=Math.imul(Fe,vt),$=Math.imul(Fe,Gt),$=$+Math.imul(Se,vt)|0,z=Math.imul(Se,Gt),U=U+Math.imul(oe,rt)|0,$=$+Math.imul(oe,Pt)|0,$=$+Math.imul(ge,rt)|0,z=z+Math.imul(ge,Pt)|0;var qi=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(qi>>>26)|0,qi&=67108863,U=Math.imul(Fe,rt),$=Math.imul(Fe,Pt),$=$+Math.imul(Se,rt)|0,z=Math.imul(Se,Pt);var Ge=(H+U|0)+(($&8191)<<13)|0;return H=(z+($>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,j[0]=Yt,j[1]=Un,j[2]=jn,j[3]=br,j[4]=si,j[5]=Qi,j[6]=st,j[7]=wt,j[8]=Bt,j[9]=dn,j[10]=tn,j[11]=vn,j[12]=kn,j[13]=Mn,j[14]=Nr,j[15]=na,j[16]=Ar,j[17]=qi,j[18]=Ge,H!==0&&(j[19]=H,M.length++),M};Math.imul||(y=A);function S(I,b,T){T.negative=b.negative^I.negative,T.length=I.length+b.length;for(var M=0,D=0,B=0;B<T.length-1;B++){var j=D;D=0;for(var H=M&67108863,U=Math.min(B,b.length-1),$=Math.max(0,B-I.length+1);$<=U;$++){var z=B-$,Z=I.words[z]|0,K=b.words[$]|0,Q=Z*K,ee=Q&67108863;j=j+(Q/67108864|0)|0,ee=ee+H|0,H=ee&67108863,j=j+(ee>>>26)|0,D+=j>>>26,j&=67108863}T.words[B]=H,M=j,j=D}return M!==0?T.words[B]=M:T.length--,T._strip()}function x(I,b,T){return S(I,b,T)}o.prototype.mulTo=function(b,T){var M,D=this.length+b.length;return this.length===10&&b.length===10?M=y(this,b,T):D<63?M=A(this,b,T):D<1024?M=S(this,b,T):M=x(this,b,T),M},o.prototype.mul=function(b){var T=new o(null);return T.words=new Array(this.length+b.length),this.mulTo(b,T)},o.prototype.mulf=function(b){var T=new o(null);return T.words=new Array(this.length+b.length),x(this,b,T)},o.prototype.imul=function(b){return this.clone().mulTo(b,this)},o.prototype.imuln=function(b){var T=b<0;T&&(b=-b),r(typeof b=="number"),r(b<67108864);for(var M=0,D=0;D<this.length;D++){var B=(this.words[D]|0)*b,j=(B&67108863)+(M&67108863);M>>=26,M+=B/67108864|0,M+=j>>>26,this.words[D]=j&67108863}return M!==0&&(this.words[D]=M,this.length++),T?this.ineg():this},o.prototype.muln=function(b){return this.clone().imuln(b)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(b){var T=v(b);if(T.length===0)return new o(1);for(var M=this,D=0;D<T.length&&T[D]===0;D++,M=M.sqr());if(++D<T.length)for(var B=M.sqr();D<T.length;D++,B=B.sqr())T[D]!==0&&(M=M.mul(B));return M},o.prototype.iushln=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26,D=67108863>>>26-T<<26-T,B;if(T!==0){var j=0;for(B=0;B<this.length;B++){var H=this.words[B]&D,U=(this.words[B]|0)-H<<T;this.words[B]=U|j,j=H>>>26-T}j&&(this.words[B]=j,this.length++)}if(M!==0){for(B=this.length-1;B>=0;B--)this.words[B+M]=this.words[B];for(B=0;B<M;B++)this.words[B]=0;this.length+=M}return this._strip()},o.prototype.ishln=function(b){return r(this.negative===0),this.iushln(b)},o.prototype.iushrn=function(b,T,M){r(typeof b=="number"&&b>=0);var D;T?D=(T-T%26)/26:D=0;var B=b%26,j=Math.min((b-B)/26,this.length),H=67108863^67108863>>>B<<B,U=M;if(D-=j,D=Math.max(0,D),U){for(var $=0;$<j;$++)U.words[$]=this.words[$];U.length=j}if(j!==0)if(this.length>j)for(this.length-=j,$=0;$<this.length;$++)this.words[$]=this.words[$+j];else this.words[0]=0,this.length=1;var z=0;for($=this.length-1;$>=0&&(z!==0||$>=D);$--){var Z=this.words[$]|0;this.words[$]=z<<26-B|Z>>>B,z=Z&H}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(b,T,M){return r(this.negative===0),this.iushrn(b,T,M)},o.prototype.shln=function(b){return this.clone().ishln(b)},o.prototype.ushln=function(b){return this.clone().iushln(b)},o.prototype.shrn=function(b){return this.clone().ishrn(b)},o.prototype.ushrn=function(b){return this.clone().iushrn(b)},o.prototype.testn=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26,D=1<<T;if(this.length<=M)return!1;var B=this.words[M];return!!(B&D)},o.prototype.imaskn=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(T!==0&&M++,this.length=Math.min(M,this.length),T!==0){var D=67108863^67108863>>>T<<T;this.words[this.length-1]&=D}return this._strip()},o.prototype.maskn=function(b){return this.clone().imaskn(b)},o.prototype.iaddn=function(b){return r(typeof b=="number"),r(b<67108864),b<0?this.isubn(-b):this.negative!==0?this.length===1&&(this.words[0]|0)<=b?(this.words[0]=b-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(b),this.negative=1,this):this._iaddn(b)},o.prototype._iaddn=function(b){this.words[0]+=b;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},o.prototype.isubn=function(b){if(r(typeof b=="number"),r(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this._strip()},o.prototype.addn=function(b){return this.clone().iaddn(b)},o.prototype.subn=function(b){return this.clone().isubn(b)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(b,T,M){var D=b.length+M,B;this._expand(D);var j,H=0;for(B=0;B<b.length;B++){j=(this.words[B+M]|0)+H;var U=(b.words[B]|0)*T;j-=U&67108863,H=(j>>26)-(U/67108864|0),this.words[B+M]=j&67108863}for(;B<this.length-M;B++)j=(this.words[B+M]|0)+H,H=j>>26,this.words[B+M]=j&67108863;if(H===0)return this._strip();for(r(H===-1),H=0,B=0;B<this.length;B++)j=-(this.words[B]|0)+H,H=j>>26,this.words[B]=j&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(b,T){var M=this.length-b.length,D=this.clone(),B=b,j=B.words[B.length-1]|0,H=this._countBits(j);M=26-H,M!==0&&(B=B.ushln(M),D.iushln(M),j=B.words[B.length-1]|0);var U=D.length-B.length,$;if(T!=="mod"){$=new o(null),$.length=U+1,$.words=new Array($.length);for(var z=0;z<$.length;z++)$.words[z]=0}var Z=D.clone()._ishlnsubmul(B,1,U);Z.negative===0&&(D=Z,$&&($.words[U]=1));for(var K=U-1;K>=0;K--){var Q=(D.words[B.length+K]|0)*67108864+(D.words[B.length+K-1]|0);for(Q=Math.min(Q/j|0,67108863),D._ishlnsubmul(B,Q,K);D.negative!==0;)Q--,D.negative=0,D._ishlnsubmul(B,1,K),D.isZero()||(D.negative^=1);$&&($.words[K]=Q)}return $&&$._strip(),D._strip(),T!=="div"&&M!==0&&D.iushrn(M),{div:$||null,mod:D}},o.prototype.divmod=function(b,T,M){if(r(!b.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var D,B,j;return this.negative!==0&&b.negative===0?(j=this.neg().divmod(b,T),T!=="mod"&&(D=j.div.neg()),T!=="div"&&(B=j.mod.neg(),M&&B.negative!==0&&B.iadd(b)),{div:D,mod:B}):this.negative===0&&b.negative!==0?(j=this.divmod(b.neg(),T),T!=="mod"&&(D=j.div.neg()),{div:D,mod:j.mod}):this.negative&b.negative?(j=this.neg().divmod(b.neg(),T),T!=="div"&&(B=j.mod.neg(),M&&B.negative!==0&&B.isub(b)),{div:j.div,mod:B}):b.length>this.length||this.cmp(b)<0?{div:new o(0),mod:this}:b.length===1?T==="div"?{div:this.divn(b.words[0]),mod:null}:T==="mod"?{div:null,mod:new o(this.modrn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new o(this.modrn(b.words[0]))}:this._wordDiv(b,T)},o.prototype.div=function(b){return this.divmod(b,"div",!1).div},o.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},o.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},o.prototype.divRound=function(b){var T=this.divmod(b);if(T.mod.isZero())return T.div;var M=T.div.negative!==0?T.mod.isub(b):T.mod,D=b.ushrn(1),B=b.andln(1),j=M.cmp(D);return j<0||B===1&&j===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},o.prototype.modrn=function(b){var T=b<0;T&&(b=-b),r(b<=67108863);for(var M=(1<<26)%b,D=0,B=this.length-1;B>=0;B--)D=(M*D+(this.words[B]|0))%b;return T?-D:D},o.prototype.modn=function(b){return this.modrn(b)},o.prototype.idivn=function(b){var T=b<0;T&&(b=-b),r(b<=67108863);for(var M=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+M*67108864;this.words[D]=B/b|0,M=B%b}return this._strip(),T?this.ineg():this},o.prototype.divn=function(b){return this.clone().idivn(b)},o.prototype.egcd=function(b){r(b.negative===0),r(!b.isZero());var T=this,M=b.clone();T.negative!==0?T=T.umod(b):T=T.clone();for(var D=new o(1),B=new o(0),j=new o(0),H=new o(1),U=0;T.isEven()&&M.isEven();)T.iushrn(1),M.iushrn(1),++U;for(var $=M.clone(),z=T.clone();!T.isZero();){for(var Z=0,K=1;!(T.words[0]&K)&&Z<26;++Z,K<<=1);if(Z>0)for(T.iushrn(Z);Z-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd($),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var Q=0,ee=1;!(M.words[0]&ee)&&Q<26;++Q,ee<<=1);if(Q>0)for(M.iushrn(Q);Q-- >0;)(j.isOdd()||H.isOdd())&&(j.iadd($),H.isub(z)),j.iushrn(1),H.iushrn(1);T.cmp(M)>=0?(T.isub(M),D.isub(j),B.isub(H)):(M.isub(T),j.isub(D),H.isub(B))}return{a:j,b:H,gcd:M.iushln(U)}},o.prototype._invmp=function(b){r(b.negative===0),r(!b.isZero());var T=this,M=b.clone();T.negative!==0?T=T.umod(b):T=T.clone();for(var D=new o(1),B=new o(0),j=M.clone();T.cmpn(1)>0&&M.cmpn(1)>0;){for(var H=0,U=1;!(T.words[0]&U)&&H<26;++H,U<<=1);if(H>0)for(T.iushrn(H);H-- >0;)D.isOdd()&&D.iadd(j),D.iushrn(1);for(var $=0,z=1;!(M.words[0]&z)&&$<26;++$,z<<=1);if($>0)for(M.iushrn($);$-- >0;)B.isOdd()&&B.iadd(j),B.iushrn(1);T.cmp(M)>=0?(T.isub(M),D.isub(B)):(M.isub(T),B.isub(D))}var Z;return T.cmpn(1)===0?Z=D:Z=B,Z.cmpn(0)<0&&Z.iadd(b),Z},o.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var T=this.clone(),M=b.clone();T.negative=0,M.negative=0;for(var D=0;T.isEven()&&M.isEven();D++)T.iushrn(1),M.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;M.isEven();)M.iushrn(1);var B=T.cmp(M);if(B<0){var j=T;T=M,M=j}else if(B===0||M.cmpn(1)===0)break;T.isub(M)}while(!0);return M.iushln(D)},o.prototype.invm=function(b){return this.egcd(b).a.umod(b)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(b){return this.words[0]&b},o.prototype.bincn=function(b){r(typeof b=="number");var T=b%26,M=(b-T)/26,D=1<<T;if(this.length<=M)return this._expand(M+1),this.words[M]|=D,this;for(var B=D,j=M;B!==0&&j<this.length;j++){var H=this.words[j]|0;H+=B,B=H>>>26,H&=67108863,this.words[j]=H}return B!==0&&(this.words[j]=B,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(b){var T=b<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this._strip();var M;if(this.length>1)M=1;else{T&&(b=-b),r(b<=67108863,"Number is too big");var D=this.words[0]|0;M=D===b?0:D<b?-1:1}return this.negative!==0?-M|0:M},o.prototype.cmp=function(b){if(this.negative!==0&&b.negative===0)return-1;if(this.negative===0&&b.negative!==0)return 1;var T=this.ucmp(b);return this.negative!==0?-T|0:T},o.prototype.ucmp=function(b){if(this.length>b.length)return 1;if(this.length<b.length)return-1;for(var T=0,M=this.length-1;M>=0;M--){var D=this.words[M]|0,B=b.words[M]|0;if(D!==B){D<B?T=-1:D>B&&(T=1);break}}return T},o.prototype.gtn=function(b){return this.cmpn(b)===1},o.prototype.gt=function(b){return this.cmp(b)===1},o.prototype.gten=function(b){return this.cmpn(b)>=0},o.prototype.gte=function(b){return this.cmp(b)>=0},o.prototype.ltn=function(b){return this.cmpn(b)===-1},o.prototype.lt=function(b){return this.cmp(b)===-1},o.prototype.lten=function(b){return this.cmpn(b)<=0},o.prototype.lte=function(b){return this.cmp(b)<=0},o.prototype.eqn=function(b){return this.cmpn(b)===0},o.prototype.eq=function(b){return this.cmp(b)===0},o.red=function(b){return new N(b)},o.prototype.toRed=function(b){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(b){return this.red=b,this},o.prototype.forceRed=function(b){return r(!this.red,"Already a number in reduction context"),this._forceRed(b)},o.prototype.redAdd=function(b){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},o.prototype.redIAdd=function(b){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},o.prototype.redSub=function(b){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},o.prototype.redISub=function(b){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},o.prototype.redShl=function(b){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},o.prototype.redMul=function(b){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},o.prototype.redIMul=function(b){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(b){return r(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var w={k256:null,p224:null,p192:null,p25519:null};function _(I,b){this.name=I,this.p=new o(b,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}_.prototype._tmp=function(){var b=new o(null);return b.words=new Array(Math.ceil(this.n/13)),b},_.prototype.ireduce=function(b){var T=b,M;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),M=T.bitLength();while(M>this.n);var D=M<this.n?-1:T.ucmp(this.p);return D===0?(T.words[0]=0,T.length=1):D>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},_.prototype.split=function(b,T){b.iushrn(this.n,0,T)},_.prototype.imulK=function(b){return b.imul(this.k)};function C(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(C,_),C.prototype.split=function(b,T){for(var M=4194303,D=Math.min(b.length,9),B=0;B<D;B++)T.words[B]=b.words[B];if(T.length=D,b.length<=9){b.words[0]=0,b.length=1;return}var j=b.words[9];for(T.words[T.length++]=j&M,B=10;B<b.length;B++){var H=b.words[B]|0;b.words[B-10]=(H&M)<<4|j>>>22,j=H}j>>>=22,b.words[B-10]=j,j===0&&b.length>10?b.length-=10:b.length-=9},C.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var T=0,M=0;M<b.length;M++){var D=b.words[M]|0;T+=D*977,b.words[M]=T&67108863,T=D*64+(T/67108864|0)}return b.words[b.length-1]===0&&(b.length--,b.words[b.length-1]===0&&b.length--),b};function R(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(R,_);function k(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(k,_);function P(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(P,_),P.prototype.imulK=function(b){for(var T=0,M=0;M<b.length;M++){var D=(b.words[M]|0)*19+T,B=D&67108863;D>>>=26,b.words[M]=B,T=D}return T!==0&&(b.words[b.length++]=T),b},o._prime=function(b){if(w[b])return w[b];var T;if(b==="k256")T=new C;else if(b==="p224")T=new R;else if(b==="p192")T=new k;else if(b==="p25519")T=new P;else throw new Error("Unknown prime "+b);return w[b]=T,T};function N(I){if(typeof I=="string"){var b=o._prime(I);this.m=b.p,this.prime=b}else r(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}N.prototype._verify1=function(b){r(b.negative===0,"red works only with positives"),r(b.red,"red works only with red numbers")},N.prototype._verify2=function(b,T){r((b.negative|T.negative)===0,"red works only with positives"),r(b.red&&b.red===T.red,"red works only with red numbers")},N.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):(d(b,b.umod(this.m)._forceRed(this)),b)},N.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},N.prototype.add=function(b,T){this._verify2(b,T);var M=b.add(T);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},N.prototype.iadd=function(b,T){this._verify2(b,T);var M=b.iadd(T);return M.cmp(this.m)>=0&&M.isub(this.m),M},N.prototype.sub=function(b,T){this._verify2(b,T);var M=b.sub(T);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},N.prototype.isub=function(b,T){this._verify2(b,T);var M=b.isub(T);return M.cmpn(0)<0&&M.iadd(this.m),M},N.prototype.shl=function(b,T){return this._verify1(b),this.imod(b.ushln(T))},N.prototype.imul=function(b,T){return this._verify2(b,T),this.imod(b.imul(T))},N.prototype.mul=function(b,T){return this._verify2(b,T),this.imod(b.mul(T))},N.prototype.isqr=function(b){return this.imul(b,b.clone())},N.prototype.sqr=function(b){return this.mul(b,b)},N.prototype.sqrt=function(b){if(b.isZero())return b.clone();var T=this.m.andln(3);if(r(T%2===1),T===3){var M=this.m.add(new o(1)).iushrn(2);return this.pow(b,M)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);r(!D.isZero());var j=new o(1).toRed(this),H=j.redNeg(),U=this.m.subn(1).iushrn(1),$=this.m.bitLength();for($=new o(2*$*$).toRed(this);this.pow($,U).cmp(H)!==0;)$.redIAdd(H);for(var z=this.pow($,D),Z=this.pow(b,D.addn(1).iushrn(1)),K=this.pow(b,D),Q=B;K.cmp(j)!==0;){for(var ee=K,X=0;ee.cmp(j)!==0;X++)ee=ee.redSqr();r(X<Q);var te=this.pow(z,new o(1).iushln(Q-X-1));Z=Z.redMul(te),z=te.redSqr(),K=K.redMul(z),Q=X}return Z},N.prototype.invm=function(b){var T=b._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},N.prototype.pow=function(b,T){if(T.isZero())return new o(1).toRed(this);if(T.cmpn(1)===0)return b.clone();var M=4,D=new Array(1<<M);D[0]=new o(1).toRed(this),D[1]=b;for(var B=2;B<D.length;B++)D[B]=this.mul(D[B-1],b);var j=D[0],H=0,U=0,$=T.bitLength()%26;for($===0&&($=26),B=T.length-1;B>=0;B--){for(var z=T.words[B],Z=$-1;Z>=0;Z--){var K=z>>Z&1;if(j!==D[0]&&(j=this.sqr(j)),K===0&&H===0){U=0;continue}H<<=1,H|=K,U++,!(U!==M&&(B!==0||Z!==0))&&(j=this.mul(j,D[H]),U=0,H=0)}$=26}return j},N.prototype.convertTo=function(b){var T=b.umod(this.m);return T===b?T.clone():T},N.prototype.convertFrom=function(b){var T=b.clone();return T.red=null,T},o.mont=function(b){return new L(b)};function L(I){N.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(L,N),L.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},L.prototype.convertFrom=function(b){var T=this.imod(b.mul(this.rinv));return T.red=null,T},L.prototype.imul=function(b,T){if(b.isZero()||T.isZero())return b.words[0]=0,b.length=1,b;var M=b.imul(T),D=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=M.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},L.prototype.mul=function(b,T){if(b.isZero()||T.isZero())return new o(0)._forceRed(this);var M=b.mul(T),D=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=M.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},L.prototype.invm=function(b){var T=this.imod(b._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(t,en)})(Ret);var $Gr=Ret.exports;const FGr=Li($Gr),jGr="logger/5.7.0";let Z1t=!1,X1t=!1;const fme={debug:1,default:2,info:2,warning:3,error:4,off:5};let eyt=fme.default,aPe=null;function HGr(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const tyt=HGr();var lUe;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(lUe||(lUe={}));var $S;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})($S||($S={}));const nyt="0123456789abcdef";let hn=class Xf{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,n){const r=e.toLowerCase();fme[r]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(eyt>fme[r])&&console.log.apply(console,n)}debug(...e){this._log(Xf.levels.DEBUG,e)}info(...e){this._log(Xf.levels.INFO,e)}warn(...e){this._log(Xf.levels.WARNING,e)}makeError(e,n,r){if(X1t)return this.makeError("censored error",n,{});n||(n=Xf.errors.UNKNOWN_ERROR),r||(r={});const a=[];Object.keys(r).forEach(c=>{const u=r[c];try{if(u instanceof Uint8Array){let d="";for(let h=0;h<u.length;h++)d+=nyt[u[h]>>4],d+=nyt[u[h]&15];a.push(c+"=Uint8Array(0x"+d+")")}else a.push(c+"="+JSON.stringify(u))}catch{a.push(c+"="+JSON.stringify(r[c].toString()))}}),a.push(`code=${n}`),a.push(`version=${this.version}`);const o=e;let s="";switch(n){case $S.NUMERIC_FAULT:{s="NUMERIC_FAULT";const c=e;switch(c){case"overflow":case"underflow":case"division-by-zero":s+="-"+c;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case $S.CALL_EXCEPTION:case $S.INSUFFICIENT_FUNDS:case $S.MISSING_NEW:case $S.NONCE_EXPIRED:case $S.REPLACEMENT_UNDERPRICED:case $S.TRANSACTION_REPLACED:case $S.UNPREDICTABLE_GAS_LIMIT:s=n;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");const l=new Error(e);return l.reason=o,l.code=n,Object.keys(r).forEach(function(c){l[c]=r[c]}),l}throwError(e,n,r){throw this.makeError(e,n,r)}throwArgumentError(e,n,r){return this.throwError(e,Xf.errors.INVALID_ARGUMENT,{argument:n,value:r})}assert(e,n,r,a){e||this.throwError(n,r,a)}assertArgument(e,n,r,a){e||this.throwArgumentError(n,r,a)}checkNormalize(e){tyt&&this.throwError("platform missing String.prototype.normalize",Xf.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:tyt})}checkSafeUint53(e,n){typeof e=="number"&&(n==null&&(n="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(n,Xf.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(n,Xf.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,n,r){r?r=": "+r:r="",e<n&&this.throwError("missing argument"+r,Xf.errors.MISSING_ARGUMENT,{count:e,expectedCount:n}),e>n&&this.throwError("too many arguments"+r,Xf.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:n})}checkNew(e,n){(e===Object||e==null)&&this.throwError("missing new",Xf.errors.MISSING_NEW,{name:n.name})}checkAbstract(e,n){e===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",Xf.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",Xf.errors.MISSING_NEW,{name:n.name})}static globalLogger(){return aPe||(aPe=new Xf(jGr)),aPe}static setCensorship(e,n){if(!e&&n&&this.globalLogger().throwError("cannot permanently disable censorship",Xf.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Z1t){if(!e)return;this.globalLogger().throwError("error censorship permanent",Xf.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}X1t=!!e,Z1t=!!n}static setLogLevel(e){const n=fme[e.toLowerCase()];if(n==null){Xf.globalLogger().warn("invalid log level - "+e);return}eyt=n}static from(e){return new Xf(e)}};hn.errors=$S;hn.levels=lUe;const UGr="bytes/5.7.0",ah=new hn(UGr);function JXt(t){return!!t.toHexString}function Gj(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Gj(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Met(t){return Gl(t)&&!(t.length%2)||SG(t)}function ryt(t){return typeof t=="number"&&t==t&&t%1===0}function SG(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!ryt(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const n=t[e];if(!ryt(n)||n<0||n>=256)return!1}return!0}function Ka(t,e){if(e||(e={}),typeof t=="number"){ah.checkSafeUint53(t,"invalid arrayify value");const n=[];for(;t;)n.unshift(t&255),t=parseInt(String(t/256));return n.length===0&&n.push(0),Gj(new Uint8Array(n))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),JXt(t)&&(t=t.toHexString()),Gl(t)){let n=t.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":ah.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let a=0;a<n.length;a+=2)r.push(parseInt(n.substring(a,a+2),16));return Gj(new Uint8Array(r))}return SG(t)?Gj(new Uint8Array(t)):ah.throwArgumentError("invalid arrayify value","value",t)}function ky(t){const e=t.map(a=>Ka(a)),n=e.reduce((a,o)=>a+o.length,0),r=new Uint8Array(n);return e.reduce((a,o)=>(r.set(o,a),a+o.length),0),Gj(r)}function EU(t){let e=Ka(t);if(e.length===0)return e;let n=0;for(;n<e.length&&e[n]===0;)n++;return n&&(e=e.slice(n)),e}function zGr(t,e){t=Ka(t),t.length>e&&ah.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(e);return n.set(t,e-t.length),Gj(n)}function Gl(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const oPe="0123456789abcdef";function ba(t,e){if(e||(e={}),typeof t=="number"){ah.checkSafeUint53(t,"invalid hexlify value");let n="";for(;t;)n=oPe[t&15]+n,t=Math.floor(t/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),JXt(t))return t.toHexString();if(Gl(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":ah.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(SG(t)){let n="0x";for(let r=0;r<t.length;r++){let a=t[r];n+=oPe[(a&240)>>4]+oPe[a&15]}return n}return ah.throwArgumentError("invalid hexlify value","value",t)}function R6(t){if(typeof t!="string")t=ba(t);else if(!Gl(t)||t.length%2)return null;return(t.length-2)/2}function rv(t,e,n){return typeof t!="string"?t=ba(t):(!Gl(t)||t.length%2)&&ah.throwArgumentError("invalid hexData","value",t),e=2+2*e,n!=null?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function KA(t){let e="0x";return t.forEach(n=>{e+=ba(n).substring(2)}),e}function F3(t){const e=GGr(ba(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function GGr(t){typeof t!="string"&&(t=ba(t)),Gl(t)||ah.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e<t.length&&t[e]==="0";)e++;return"0x"+t.substring(e)}function md(t,e){for(typeof t!="string"?t=ba(t):Gl(t)||ah.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&ah.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function XEe(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Met(t)){let n=Ka(t);n.length===64?(e.v=27+(n[32]>>7),n[32]&=127,e.r=ba(n.slice(0,32)),e.s=ba(n.slice(32,64))):n.length===65?(e.r=ba(n.slice(0,32)),e.s=ba(n.slice(32,64)),e.v=n[64]):ah.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:ah.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=ba(n.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const a=zGr(Ka(e._vs),32);e._vs=ba(a);const o=a[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=o:e.recoveryParam!==o&&ah.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),a[0]&=127;const s=ba(a);e.s==null?e.s=s:e.s!==s&&ah.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?ah.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const a=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==a&&ah.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!Gl(e.r)?ah.throwArgumentError("signature missing or invalid r","signature",t):e.r=md(e.r,32),e.s==null||!Gl(e.s)?ah.throwArgumentError("signature missing or invalid s","signature",t):e.s=md(e.s,32);const n=Ka(e.s);n[0]>=128&&ah.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(n[0]|=128);const r=ba(n);e._vs&&(Gl(e._vs)||ah.throwArgumentError("signature invalid _vs","signature",t),e._vs=md(e._vs,32)),e._vs==null?e._vs=r:e._vs!==r&&ah.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}const ZXt="bignumber/5.7.0";var V0e=FGr.BN;const hR=new hn(ZXt),sPe={},iyt=9007199254740991;function VGr(t){return t!=null&&($r.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||Gl(t)||typeof t=="bigint"||SG(t))}let ayt=!1;class $r{constructor(e,n){e!==sPe&&hR.throwError("cannot call constructor directly; use BigNumber.from",hn.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return EA(Qs(this).fromTwos(e))}toTwos(e){return EA(Qs(this).toTwos(e))}abs(){return this._hex[0]==="-"?$r.from(this._hex.substring(1)):this}add(e){return EA(Qs(this).add(Qs(e)))}sub(e){return EA(Qs(this).sub(Qs(e)))}div(e){return $r.from(e).isZero()&&Rb("division-by-zero","div"),EA(Qs(this).div(Qs(e)))}mul(e){return EA(Qs(this).mul(Qs(e)))}mod(e){const n=Qs(e);return n.isNeg()&&Rb("division-by-zero","mod"),EA(Qs(this).umod(n))}pow(e){const n=Qs(e);return n.isNeg()&&Rb("negative-power","pow"),EA(Qs(this).pow(n))}and(e){const n=Qs(e);return(this.isNegative()||n.isNeg())&&Rb("unbound-bitwise-result","and"),EA(Qs(this).and(n))}or(e){const n=Qs(e);return(this.isNegative()||n.isNeg())&&Rb("unbound-bitwise-result","or"),EA(Qs(this).or(n))}xor(e){const n=Qs(e);return(this.isNegative()||n.isNeg())&&Rb("unbound-bitwise-result","xor"),EA(Qs(this).xor(n))}mask(e){return(this.isNegative()||e<0)&&Rb("negative-width","mask"),EA(Qs(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Rb("negative-width","shl"),EA(Qs(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Rb("negative-width","shr"),EA(Qs(this).shrn(e))}eq(e){return Qs(this).eq(Qs(e))}lt(e){return Qs(this).lt(Qs(e))}lte(e){return Qs(this).lte(Qs(e))}gt(e){return Qs(this).gt(Qs(e))}gte(e){return Qs(this).gte(Qs(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Qs(this).isZero()}toNumber(){try{return Qs(this).toNumber()}catch{Rb("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return hR.throwError("this platform does not support BigInt",hn.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?ayt||(ayt=!0,hR.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?hR.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",hn.errors.UNEXPECTED_ARGUMENT,{}):hR.throwError("BigNumber.toString does not accept parameters",hn.errors.UNEXPECTED_ARGUMENT,{})),Qs(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof $r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new $r(sPe,fne(e)):e.match(/^-?[0-9]+$/)?new $r(sPe,fne(new V0e(e))):hR.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Rb("underflow","BigNumber.from",e),(e>=iyt||e<=-iyt)&&Rb("overflow","BigNumber.from",e),$r.from(String(e));const n=e;if(typeof n=="bigint")return $r.from(n.toString());if(SG(n))return $r.from(ba(n));if(n)if(n.toHexString){const r=n.toHexString();if(typeof r=="string")return $r.from(r)}else{let r=n._hex;if(r==null&&n.type==="BigNumber"&&(r=n.hex),typeof r=="string"&&(Gl(r)||r[0]==="-"&&Gl(r.substring(1))))return $r.from(r)}return hR.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function fne(t){if(typeof t!="string")return fne(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&hR.throwArgumentError("invalid hex","value",t),t=fne(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function EA(t){return $r.from(fne(t))}function Qs(t){const e=$r.from(t).toHexString();return e[0]==="-"?new V0e("-"+e.substring(3),16):new V0e(e.substring(2),16)}function Rb(t,e,n){const r={fault:t,operation:e};return n!=null&&(r.value=n),hR.throwError(t,hn.errors.NUMERIC_FAULT,r)}function KGr(t){return new V0e(t,36).toString(16)}const k0=new hn(ZXt),FX={},XXt=$r.from(0),een=$r.from(-1);function ten(t,e,n,r){const a={fault:e,operation:n};return r!==void 0&&(a.value=r),k0.throwError(t,hn.errors.NUMERIC_FAULT,a)}let jX="0";for(;jX.length<256;)jX+=jX;function Net(t){if(typeof t!="number")try{t=$r.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+jX.substring(0,t):k0.throwArgumentError("invalid decimal size","decimals",t)}function pme(t,e){e==null&&(e=0);const n=Net(e);t=$r.from(t);const r=t.lt(XXt);r&&(t=t.mul(een));let a=t.mod(n).toString();for(;a.length<n.length-1;)a="0"+a;a=a.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=t.div(n).toString();return n.length===1?t=o:t=o+"."+a,r&&(t="-"+t),t}function aT(t,e){e==null&&(e=0);const n=Net(e);(typeof t!="string"||!t.match(/^-?[0-9.]+$/))&&k0.throwArgumentError("invalid decimal value","value",t);const r=t.substring(0,1)==="-";r&&(t=t.substring(1)),t==="."&&k0.throwArgumentError("missing value","value",t);const a=t.split(".");a.length>2&&k0.throwArgumentError("too many decimal points","value",t);let o=a[0],s=a[1];for(o||(o="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>n.length-1&&ten("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length<n.length-1;)s+="0";const l=$r.from(o),c=$r.from(s);let u=l.mul(n).add(c);return r&&(u=u.mul(een)),u}class Vj{constructor(e,n,r,a){e!==FX&&k0.throwError("cannot use FixedFormat constructor; use FixedFormat.from",hn.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=n,this.width=r,this.decimals=a,this.name=(n?"":"u")+"fixed"+String(r)+"x"+String(a),this._multiplier=Net(a),Object.freeze(this)}static from(e){if(e instanceof Vj)return e;typeof e=="number"&&(e=`fixed128x${e}`);let n=!0,r=128,a=18;if(typeof e=="string"){if(e!=="fixed")if(e==="ufixed")n=!1;else{const o=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||k0.throwArgumentError("invalid fixed format","format",e),n=o[1]!=="u",r=parseInt(o[2]),a=parseInt(o[3])}}else if(e){const o=(s,l,c)=>e[s]==null?c:(typeof e[s]!==l&&k0.throwArgumentError("invalid fixed format ("+s+" not "+l+")","format."+s,e[s]),e[s]);n=o("signed","boolean",n),r=o("width","number",r),a=o("decimals","number",a)}return r%8&&k0.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),a>80&&k0.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new Vj(FX,n,r,a)}}class Dm{constructor(e,n,r,a){e!==FX&&k0.throwError("cannot use FixedNumber constructor; use FixedNumber.from",hn.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=n,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&k0.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const n=aT(this._value,this.format.decimals),r=aT(e._value,e.format.decimals);return Dm.fromValue(n.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const n=aT(this._value,this.format.decimals),r=aT(e._value,e.format.decimals);return Dm.fromValue(n.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const n=aT(this._value,this.format.decimals),r=aT(e._value,e.format.decimals);return Dm.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const n=aT(this._value,this.format.decimals),r=aT(e._value,e.format.decimals);return Dm.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let n=Dm.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(oyt.toFormat(n.format))),n}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let n=Dm.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(oyt.toFormat(n.format))),n}round(e){e==null&&(e=0);const n=this.toString().split(".");if(n.length===1&&n.push("0"),(e<0||e>80||e%1)&&k0.throwArgumentError("invalid decimal count","decimals",e),n[1].length<=e)return this;const r=Dm.from("1"+jX.substring(0,e),this.format),a=WGr.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(a).floor().divUnsafe(r)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&k0.throwArgumentError("invalid byte width","width",e);const n=$r.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return md(n,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Dm.fromString(this._value,e)}static fromValue(e,n,r){return r==null&&n!=null&&!VGr(n)&&(r=n,n=null),n==null&&(n=0),r==null&&(r="fixed"),Dm.fromString(pme(e,n),Vj.from(r))}static fromString(e,n){n==null&&(n="fixed");const r=Vj.from(n),a=aT(e,r.decimals);!r.signed&&a.lt(XXt)&&ten("unsigned value cannot be negative","overflow","value",e);let o=null;r.signed?o=a.toTwos(r.width).toHexString():(o=a.toHexString(),o=md(o,r.width/8));const s=pme(a,r.decimals);return new Dm(FX,o,s,r)}static fromBytes(e,n){n==null&&(n="fixed");const r=Vj.from(n);if(Ka(e).length>r.width/8)throw new Error("overflow");let a=$r.from(e);r.signed&&(a=a.fromTwos(r.width));const o=a.toTwos((r.signed?0:1)+r.width).toHexString(),s=pme(a,r.decimals);return new Dm(FX,o,s,r)}static from(e,n){if(typeof e=="string")return Dm.fromString(e,n);if(SG(e))return Dm.fromBytes(e,n);try{return Dm.fromValue(e,0,n)}catch(r){if(r.code!==hn.errors.INVALID_ARGUMENT)throw r}return k0.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const oyt=Dm.from(1),WGr=Dm.from("0.5"),QGr="properties/5.7.0";var qGr=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const K0e=new hn(QGr);function ir(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function Ry(t,e){for(let n=0;n<32;n++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function kf(t){return qGr(this,void 0,void 0,function*(){const e=Object.keys(t).map(r=>{const a=t[r];return Promise.resolve(a).then(o=>({key:r,value:o}))});return(yield Promise.all(e)).reduce((r,a)=>(r[a.key]=a.value,r),{})})}function YGr(t,e){(!t||typeof t!="object")&&K0e.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(n=>{e[n]||K0e.throwArgumentError("invalid object key - "+n,"transaction:"+n,t)})}function mp(t){const e={};for(const n in t)e[n]=t[n];return e}const JGr={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function nen(t){if(t==null||JGr[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let n=0;n<e.length;n++){let r=null;try{r=t[e[n]]}catch{continue}if(!nen(r))return!1}return!0}return K0e.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function ZGr(t){if(nen(t))return t;if(Array.isArray(t))return Object.freeze(t.map(e=>EM(e)));if(typeof t=="object"){const e={};for(const n in t){const r=t[n];r!==void 0&&ir(e,n,EM(r))}return e}return K0e.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function EM(t){return ZGr(t)}class wae{constructor(e){for(const n in e)this[n]=EM(e[n])}}const _ae="abi/5.7.0",cl=new hn(_ae),M6={};let syt={calldata:!0,memory:!0,storage:!0},XGr={calldata:!0,memory:!0};function Sce(t,e){if(t==="bytes"||t==="string"){if(syt[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&XGr[e])return!0;return(syt[e]||e==="payable")&&cl.throwArgumentError("invalid modifier","name",e),!1}function eVr(t,e){let n=t;function r(l){cl.throwArgumentError(`unexpected character at position ${l}`,"param",t)}t=t.replace(/\s/g," ");function a(l){let c={type:"",name:"",parent:l,state:{allowType:!0}};return e&&(c.indexed=!1),c}let o={type:"",name:"",state:{allowType:!0}},s=o;for(let l=0;l<t.length;l++){let c=t[l];switch(c){case"(":s.state.allowType&&s.type===""?s.type="tuple":s.state.allowParams||r(l),s.state.allowType=!1,s.type=iF(s.type),s.components=[a(s)],s=s.components[0];break;case")":delete s.state,s.name==="indexed"&&(e||r(l),s.indexed=!0,s.name=""),Sce(s.type,s.name)&&(s.name=""),s.type=iF(s.type);let u=s;s=s.parent,s||r(l),delete u.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,s.name==="indexed"&&(e||r(l),s.indexed=!0,s.name=""),Sce(s.type,s.name)&&(s.name=""),s.type=iF(s.type);let d=a(s.parent);s.parent.components.push(d),delete s.parent,s=d;break;case" ":s.state.allowType&&s.type!==""&&(s.type=iF(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&s.name!==""&&(s.name==="indexed"?(e||r(l),s.indexed&&r(l),s.indexed=!0,s.name=""):Sce(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||r(l),s.type+=c,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||r(l),s.type+=c,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=c,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=c,delete s.state.allowArray):s.state.readArray?s.type+=c:r(l)}}return s.parent&&cl.throwArgumentError("unexpected eof","param",t),delete o.state,s.name==="indexed"?(e||r(n.length-7),s.indexed&&r(n.length-7),s.indexed=!0,s.name=""):Sce(s.type,s.name)&&(s.name=""),o.type=iF(o.type),o}function mme(t,e){for(let n in e)ir(t,n,e[n])}const Ul=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),tVr=new RegExp(/^(.*)\[([0-9]*)\]$/);class Jp{constructor(e,n){e!==M6&&cl.throwError("use fromString",hn.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),mme(this,n);let r=this.type.match(tVr);r?mme(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:Jp.fromObject({type:r[1],components:this.components}),baseType:"array"}):mme(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=Ul.sighash),Ul[e]||cl.throwArgumentError("invalid format type","format",e),e===Ul.json){let r={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.components&&(r.components=this.components.map(a=>JSON.parse(a.format(e)))),JSON.stringify(r)}let n="";return this.baseType==="array"?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==Ul.sighash&&(n+=this.type),n+="("+this.components.map(r=>r.format(e)).join(e===Ul.full?", ":",")+")"):n+=this.type,e!==Ul.sighash&&(this.indexed===!0&&(n+=" indexed"),e===Ul.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return typeof e=="string"?Jp.fromString(e,n):Jp.fromObject(e)}static fromObject(e){return Jp.isParamType(e)?e:new Jp(M6,{name:e.name||null,type:iF(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(Jp.fromObject):null})}static fromString(e,n){function r(a){return Jp.fromObject({name:a.name,type:a.type,indexed:a.indexed,components:a.components})}return r(eVr(e,!!n))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function pne(t,e){return rVr(t).map(n=>Jp.fromString(n,e))}class FR{constructor(e,n){e!==M6&&cl.throwError("use a static from method",hn.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),mme(this,n),this._isFragment=!0,Object.freeze(this)}static from(e){return FR.isFragment(e)?e:typeof e=="string"?FR.fromString(e):FR.fromObject(e)}static fromObject(e){if(FR.isFragment(e))return e;switch(e.type){case"function":return OT.fromObject(e);case"event":return MR.fromObject(e);case"constructor":return PT.fromObject(e);case"error":return T3.fromObject(e);case"fallback":case"receive":return null}return cl.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?MR.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?OT.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?PT.fromString(e.trim()):e.split(" ")[0]==="error"?T3.fromString(e.substring(5).trim()):cl.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class MR extends FR{format(e){if(e||(e=Ul.sighash),Ul[e]||cl.throwArgumentError("invalid format type","format",e),e===Ul.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==Ul.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===Ul.full?", ":",")+") ",e!==Ul.sighash&&this.anonymous&&(n+="anonymous "),n.trim()}static from(e){return typeof e=="string"?MR.fromString(e):MR.fromObject(e)}static fromObject(e){if(MR.isEventFragment(e))return e;e.type!=="event"&&cl.throwArgumentError("invalid event object","value",e);const n={name:mne(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(Jp.fromObject):[],type:"event"};return new MR(M6,n)}static fromString(e){let n=e.match(gne);n||cl.throwArgumentError("invalid event string","value",e);let r=!1;return n[3].split(" ").forEach(a=>{switch(a.trim()){case"anonymous":r=!0;break;case"":break;default:cl.warn("unknown modifier: "+a)}}),MR.fromObject({name:n[1].trim(),anonymous:r,inputs:pne(n[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function ren(t,e){e.gas=null;let n=t.split("@");return n.length!==1?(n.length>2&&cl.throwArgumentError("invalid human-readable ABI signature","value",t),n[1].match(/^[0-9]+$/)||cl.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=$r.from(n[1]),n[0]):t}function ien(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(n=>{switch(n.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+n)}})}function aen(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&cl.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&cl.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&cl.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&cl.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&cl.throwArgumentError("unable to determine stateMutability","value",t),e}class PT extends FR{format(e){if(e||(e=Ul.sighash),Ul[e]||cl.throwArgumentError("invalid format type","format",e),e===Ul.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});e===Ul.sighash&&cl.throwError("cannot format a constructor for sighash",hn.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let n="constructor("+this.inputs.map(r=>r.format(e)).join(e===Ul.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()}static from(e){return typeof e=="string"?PT.fromString(e):PT.fromObject(e)}static fromObject(e){if(PT.isConstructorFragment(e))return e;e.type!=="constructor"&&cl.throwArgumentError("invalid constructor object","value",e);let n=aen(e);n.constant&&cl.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(Jp.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?$r.from(e.gas):null};return new PT(M6,r)}static fromString(e){let n={type:"constructor"};e=ren(e,n);let r=e.match(gne);return(!r||r[1].trim()!=="constructor")&&cl.throwArgumentError("invalid constructor string","value",e),n.inputs=pne(r[2].trim(),!1),ien(r[3].trim(),n),PT.fromObject(n)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class OT extends PT{format(e){if(e||(e=Ul.sighash),Ul[e]||cl.throwArgumentError("invalid format type","format",e),e===Ul.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(e))),outputs:this.outputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==Ul.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===Ul.full?", ":",")+") ",e!==Ul.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(r=>r.format(e)).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()}static from(e){return typeof e=="string"?OT.fromString(e):OT.fromObject(e)}static fromObject(e){if(OT.isFunctionFragment(e))return e;e.type!=="function"&&cl.throwArgumentError("invalid function object","value",e);let n=aen(e);const r={type:e.type,name:mne(e.name),constant:n.constant,inputs:e.inputs?e.inputs.map(Jp.fromObject):[],outputs:e.outputs?e.outputs.map(Jp.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?$r.from(e.gas):null};return new OT(M6,r)}static fromString(e){let n={type:"function"};e=ren(e,n);let r=e.split(" returns ");r.length>2&&cl.throwArgumentError("invalid function string","value",e);let a=r[0].match(gne);if(a||cl.throwArgumentError("invalid function signature","value",e),n.name=a[1].trim(),n.name&&mne(n.name),n.inputs=pne(a[2],!1),ien(a[3].trim(),n),r.length>1){let o=r[1].match(gne);(o[1].trim()!=""||o[3].trim()!="")&&cl.throwArgumentError("unexpected tokens","value",e),n.outputs=pne(o[2],!1)}else n.outputs=[];return OT.fromObject(n)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function lyt(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&cl.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class T3 extends FR{format(e){if(e||(e=Ul.sighash),Ul[e]||cl.throwArgumentError("invalid format type","format",e),e===Ul.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==Ul.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===Ul.full?", ":",")+") ",n.trim()}static from(e){return typeof e=="string"?T3.fromString(e):T3.fromObject(e)}static fromObject(e){if(T3.isErrorFragment(e))return e;e.type!=="error"&&cl.throwArgumentError("invalid error object","value",e);const n={type:e.type,name:mne(e.name),inputs:e.inputs?e.inputs.map(Jp.fromObject):[]};return lyt(new T3(M6,n))}static fromString(e){let n={type:"error"},r=e.match(gne);return r||cl.throwArgumentError("invalid error signature","value",e),n.name=r[1].trim(),n.name&&mne(n.name),n.inputs=pne(r[2],!1),lyt(T3.fromObject(n))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function iF(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const nVr=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function mne(t){return(!t||!t.match(nVr))&&cl.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const gne=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function rVr(t){t=t.trim();let e=[],n="",r=0;for(let a=0;a<t.length;a++){let o=t[a];o===","&&r===0?(e.push(n),n=""):(n+=o,o==="("?r++:o===")"&&(r--,r===-1&&cl.throwArgumentError("unbalanced parenthesis","value",t)))}return n&&e.push(n),e}const Iet=new hn(_ae);function iVr(t){const e=[],n=function(r,a){if(Array.isArray(a))for(let o in a){const s=r.slice();s.push(o);try{n(s,a[o])}catch(l){e.push({path:s,error:l})}}};return n([],t),e}class rN{constructor(e,n,r,a){this.name=e,this.type=n,this.localName=r,this.dynamic=a}_throwError(e,n){Iet.throwArgumentError(e,this.localName,n)}}class cUe{constructor(e){ir(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return KA(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(ky(e._data))}writeBytes(e){let n=Ka(e);const r=n.length%this.wordSize;return r&&(n=ky([n,this._padding.slice(r)])),this._writeData(n)}_getValue(e){let n=Ka($r.from(e));return n.length>this.wordSize&&Iet.throwError("value out-of-bounds",hn.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=ky([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class W0e{constructor(e,n,r,a){ir(this,"_data",Ka(e)),ir(this,"wordSize",n||32),ir(this,"_coerceFunc",r),ir(this,"allowLoose",a),this._offset=0}get data(){return ba(this._data)}get consumed(){return this._offset}static coerce(e,n){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):W0e.coerce(e,n)}_peekBytes(e,n,r){let a=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&r&&this._offset+n<=this._data.length?a=n:Iet.throwError("data out-of-bounds",hn.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)}subReader(e){return new W0e(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let r=this._peekBytes(0,e,!!n);return this._offset+=r.length,r.slice(0,e)}readValue(){return $r.from(this.readBytes(this.wordSize))}}var oen={exports:{}};(function(t){(function(){var e="input is invalid type",n="finalize already called",r=typeof window=="object",a=r?window:{};a.JS_SHA3_NO_WINDOW&&(r=!1);var o=!r&&typeof self=="object",s=!a.JS_SHA3_NO_NODE_JS&&typeof wa=="object"&&wa.versions&&wa.versions.node;s?a=en:o&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,c=!a.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),d=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],f=[1,256,65536,16777216],p=[6,1536,393216,100663296],m=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],v=[224,256,384,512],A=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],S={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(K){return Object.prototype.toString.call(K)==="[object Array]"}),c&&(a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(K){return typeof K=="object"&&K.buffer&&K.buffer.constructor===ArrayBuffer});for(var x=function(K,Q,ee){return function(X){return new $(K,Q,K).update(X)[ee]()}},w=function(K,Q,ee){return function(X,te){return new $(K,Q,te).update(X)[ee]()}},_=function(K,Q,ee){return function(X,te,J,ne){return b["cshake"+K].update(X,te,J,ne)[ee]()}},C=function(K,Q,ee){return function(X,te,J,ne){return b["kmac"+K].update(X,te,J,ne)[ee]()}},R=function(K,Q,ee,X){for(var te=0;te<y.length;++te){var J=y[te];K[J]=Q(ee,X,J)}return K},k=function(K,Q){var ee=x(K,Q,"hex");return ee.create=function(){return new $(K,Q,K)},ee.update=function(X){return ee.create().update(X)},R(ee,x,K,Q)},P=function(K,Q){var ee=w(K,Q,"hex");return ee.create=function(X){return new $(K,Q,X)},ee.update=function(X,te){return ee.create(te).update(X)},R(ee,w,K,Q)},N=function(K,Q){var ee=S[K],X=_(K,Q,"hex");return X.create=function(te,J,ne){return!J&&!ne?b["shake"+K].create(te):new $(K,Q,te).bytepad([J,ne],ee)},X.update=function(te,J,ne,ie){return X.create(J,ne,ie).update(te)},R(X,_,K,Q)},L=function(K,Q){var ee=S[K],X=C(K,Q,"hex");return X.create=function(te,J,ne){return new z(K,Q,J).bytepad(["KMAC",ne],ee).bytepad([te],ee)},X.update=function(te,J,ne,ie){return X.create(te,ne,ie).update(J)},R(X,C,K,Q)},I=[{name:"keccak",padding:f,bits:v,createMethod:k},{name:"sha3",padding:p,bits:v,createMethod:k},{name:"shake",padding:d,bits:A,createMethod:P},{name:"cshake",padding:h,bits:A,createMethod:N},{name:"kmac",padding:h,bits:A,createMethod:L}],b={},T=[],M=0;M<I.length;++M)for(var D=I[M],B=D.bits,j=0;j<B.length;++j){var H=D.name+"_"+B[j];if(T.push(H),b[H]=D.createMethod(B[j],D.padding),D.name!=="sha3"){var U=D.name+B[j];T.push(U),b[U]=b[H]}}function $(K,Q,ee){this.blocks=[],this.s=[],this.padding=Q,this.outputBits=ee,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(K<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ee>>5,this.extraBytes=(ee&31)>>3;for(var X=0;X<50;++X)this.s[X]=0}$.prototype.update=function(K){if(this.finalized)throw new Error(n);var Q,ee=typeof K;if(ee!=="string"){if(ee==="object"){if(K===null)throw new Error(e);if(c&&K.constructor===ArrayBuffer)K=new Uint8Array(K);else if(!Array.isArray(K)&&(!c||!ArrayBuffer.isView(K)))throw new Error(e)}else throw new Error(e);Q=!0}for(var X=this.blocks,te=this.byteCount,J=K.length,ne=this.blockCount,ie=0,he=this.s,de,ce;ie<J;){if(this.reset)for(this.reset=!1,X[0]=this.block,de=1;de<ne+1;++de)X[de]=0;if(Q)for(de=this.start;ie<J&&de<te;++ie)X[de>>2]|=K[ie]<<m[de++&3];else for(de=this.start;ie<J&&de<te;++ie)ce=K.charCodeAt(ie),ce<128?X[de>>2]|=ce<<m[de++&3]:ce<2048?(X[de>>2]|=(192|ce>>6)<<m[de++&3],X[de>>2]|=(128|ce&63)<<m[de++&3]):ce<55296||ce>=57344?(X[de>>2]|=(224|ce>>12)<<m[de++&3],X[de>>2]|=(128|ce>>6&63)<<m[de++&3],X[de>>2]|=(128|ce&63)<<m[de++&3]):(ce=65536+((ce&1023)<<10|K.charCodeAt(++ie)&1023),X[de>>2]|=(240|ce>>18)<<m[de++&3],X[de>>2]|=(128|ce>>12&63)<<m[de++&3],X[de>>2]|=(128|ce>>6&63)<<m[de++&3],X[de>>2]|=(128|ce&63)<<m[de++&3]);if(this.lastByteIndex=de,de>=te){for(this.start=de-te,this.block=X[ne],de=0;de<ne;++de)he[de]^=X[de];Z(he),this.reset=!0}else this.start=de}return this},$.prototype.encode=function(K,Q){var ee=K&255,X=1,te=[ee];for(K=K>>8,ee=K&255;ee>0;)te.unshift(ee),K=K>>8,ee=K&255,++X;return Q?te.push(X):te.unshift(X),this.update(te),te.length},$.prototype.encodeString=function(K){var Q,ee=typeof K;if(ee!=="string"){if(ee==="object"){if(K===null)throw new Error(e);if(c&&K.constructor===ArrayBuffer)K=new Uint8Array(K);else if(!Array.isArray(K)&&(!c||!ArrayBuffer.isView(K)))throw new Error(e)}else throw new Error(e);Q=!0}var X=0,te=K.length;if(Q)X=te;else for(var J=0;J<K.length;++J){var ne=K.charCodeAt(J);ne<128?X+=1:ne<2048?X+=2:ne<55296||ne>=57344?X+=3:(ne=65536+((ne&1023)<<10|K.charCodeAt(++J)&1023),X+=4)}return X+=this.encode(X*8),this.update(K),X},$.prototype.bytepad=function(K,Q){for(var ee=this.encode(Q),X=0;X<K.length;++X)ee+=this.encodeString(K[X]);var te=Q-ee%Q,J=[];return J.length=te,this.update(J),this},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var K=this.blocks,Q=this.lastByteIndex,ee=this.blockCount,X=this.s;if(K[Q>>2]|=this.padding[Q&3],this.lastByteIndex===this.byteCount)for(K[0]=K[ee],Q=1;Q<ee+1;++Q)K[Q]=0;for(K[ee-1]|=2147483648,Q=0;Q<ee;++Q)X[Q]^=K[Q];Z(X)}},$.prototype.toString=$.prototype.hex=function(){this.finalize();for(var K=this.blockCount,Q=this.s,ee=this.outputBlocks,X=this.extraBytes,te=0,J=0,ne="",ie;J<ee;){for(te=0;te<K&&J<ee;++te,++J)ie=Q[te],ne+=u[ie>>4&15]+u[ie&15]+u[ie>>12&15]+u[ie>>8&15]+u[ie>>20&15]+u[ie>>16&15]+u[ie>>28&15]+u[ie>>24&15];J%K===0&&(Z(Q),te=0)}return X&&(ie=Q[te],ne+=u[ie>>4&15]+u[ie&15],X>1&&(ne+=u[ie>>12&15]+u[ie>>8&15]),X>2&&(ne+=u[ie>>20&15]+u[ie>>16&15])),ne},$.prototype.arrayBuffer=function(){this.finalize();var K=this.blockCount,Q=this.s,ee=this.outputBlocks,X=this.extraBytes,te=0,J=0,ne=this.outputBits>>3,ie;X?ie=new ArrayBuffer(ee+1<<2):ie=new ArrayBuffer(ne);for(var he=new Uint32Array(ie);J<ee;){for(te=0;te<K&&J<ee;++te,++J)he[J]=Q[te];J%K===0&&Z(Q)}return X&&(he[te]=Q[te],ie=ie.slice(0,ne)),ie},$.prototype.buffer=$.prototype.arrayBuffer,$.prototype.digest=$.prototype.array=function(){this.finalize();for(var K=this.blockCount,Q=this.s,ee=this.outputBlocks,X=this.extraBytes,te=0,J=0,ne=[],ie,he;J<ee;){for(te=0;te<K&&J<ee;++te,++J)ie=J<<2,he=Q[te],ne[ie]=he&255,ne[ie+1]=he>>8&255,ne[ie+2]=he>>16&255,ne[ie+3]=he>>24&255;J%K===0&&Z(Q)}return X&&(ie=J<<2,he=Q[te],ne[ie]=he&255,X>1&&(ne[ie+1]=he>>8&255),X>2&&(ne[ie+2]=he>>16&255)),ne};function z(K,Q,ee){$.call(this,K,Q,ee)}z.prototype=new $,z.prototype.finalize=function(){return this.encode(this.outputBits,!0),$.prototype.finalize.call(this)};var Z=function(K){var Q,ee,X,te,J,ne,ie,he,de,ce,Ee,Me,Be,ze,je,ye,me,le,pe,Ne,_e,ue,se,oe,ge,De,Fe,Se,Xe,Oe,Ye,mt,ut,lt,pn,sn,un,ur,dt,xt,Cn,Kt,rn,On,an,on,dr,$e,qe,yt,Ze,ot,yn,vt,Gt,ft,rt,Pt,Yt,Un,jn,br,si;for(X=0;X<48;X+=2)te=K[0]^K[10]^K[20]^K[30]^K[40],J=K[1]^K[11]^K[21]^K[31]^K[41],ne=K[2]^K[12]^K[22]^K[32]^K[42],ie=K[3]^K[13]^K[23]^K[33]^K[43],he=K[4]^K[14]^K[24]^K[34]^K[44],de=K[5]^K[15]^K[25]^K[35]^K[45],ce=K[6]^K[16]^K[26]^K[36]^K[46],Ee=K[7]^K[17]^K[27]^K[37]^K[47],Me=K[8]^K[18]^K[28]^K[38]^K[48],Be=K[9]^K[19]^K[29]^K[39]^K[49],Q=Me^(ne<<1|ie>>>31),ee=Be^(ie<<1|ne>>>31),K[0]^=Q,K[1]^=ee,K[10]^=Q,K[11]^=ee,K[20]^=Q,K[21]^=ee,K[30]^=Q,K[31]^=ee,K[40]^=Q,K[41]^=ee,Q=te^(he<<1|de>>>31),ee=J^(de<<1|he>>>31),K[2]^=Q,K[3]^=ee,K[12]^=Q,K[13]^=ee,K[22]^=Q,K[23]^=ee,K[32]^=Q,K[33]^=ee,K[42]^=Q,K[43]^=ee,Q=ne^(ce<<1|Ee>>>31),ee=ie^(Ee<<1|ce>>>31),K[4]^=Q,K[5]^=ee,K[14]^=Q,K[15]^=ee,K[24]^=Q,K[25]^=ee,K[34]^=Q,K[35]^=ee,K[44]^=Q,K[45]^=ee,Q=he^(Me<<1|Be>>>31),ee=de^(Be<<1|Me>>>31),K[6]^=Q,K[7]^=ee,K[16]^=Q,K[17]^=ee,K[26]^=Q,K[27]^=ee,K[36]^=Q,K[37]^=ee,K[46]^=Q,K[47]^=ee,Q=ce^(te<<1|J>>>31),ee=Ee^(J<<1|te>>>31),K[8]^=Q,K[9]^=ee,K[18]^=Q,K[19]^=ee,K[28]^=Q,K[29]^=ee,K[38]^=Q,K[39]^=ee,K[48]^=Q,K[49]^=ee,ze=K[0],je=K[1],on=K[11]<<4|K[10]>>>28,dr=K[10]<<4|K[11]>>>28,Se=K[20]<<3|K[21]>>>29,Xe=K[21]<<3|K[20]>>>29,Un=K[31]<<9|K[30]>>>23,jn=K[30]<<9|K[31]>>>23,Kt=K[40]<<18|K[41]>>>14,rn=K[41]<<18|K[40]>>>14,lt=K[2]<<1|K[3]>>>31,pn=K[3]<<1|K[2]>>>31,ye=K[13]<<12|K[12]>>>20,me=K[12]<<12|K[13]>>>20,$e=K[22]<<10|K[23]>>>22,qe=K[23]<<10|K[22]>>>22,Oe=K[33]<<13|K[32]>>>19,Ye=K[32]<<13|K[33]>>>19,br=K[42]<<2|K[43]>>>30,si=K[43]<<2|K[42]>>>30,vt=K[5]<<30|K[4]>>>2,Gt=K[4]<<30|K[5]>>>2,sn=K[14]<<6|K[15]>>>26,un=K[15]<<6|K[14]>>>26,le=K[25]<<11|K[24]>>>21,pe=K[24]<<11|K[25]>>>21,yt=K[34]<<15|K[35]>>>17,Ze=K[35]<<15|K[34]>>>17,mt=K[45]<<29|K[44]>>>3,ut=K[44]<<29|K[45]>>>3,oe=K[6]<<28|K[7]>>>4,ge=K[7]<<28|K[6]>>>4,ft=K[17]<<23|K[16]>>>9,rt=K[16]<<23|K[17]>>>9,ur=K[26]<<25|K[27]>>>7,dt=K[27]<<25|K[26]>>>7,Ne=K[36]<<21|K[37]>>>11,_e=K[37]<<21|K[36]>>>11,ot=K[47]<<24|K[46]>>>8,yn=K[46]<<24|K[47]>>>8,On=K[8]<<27|K[9]>>>5,an=K[9]<<27|K[8]>>>5,De=K[18]<<20|K[19]>>>12,Fe=K[19]<<20|K[18]>>>12,Pt=K[29]<<7|K[28]>>>25,Yt=K[28]<<7|K[29]>>>25,xt=K[38]<<8|K[39]>>>24,Cn=K[39]<<8|K[38]>>>24,ue=K[48]<<14|K[49]>>>18,se=K[49]<<14|K[48]>>>18,K[0]=ze^~ye&le,K[1]=je^~me&pe,K[10]=oe^~De&Se,K[11]=ge^~Fe&Xe,K[20]=lt^~sn&ur,K[21]=pn^~un&dt,K[30]=On^~on&$e,K[31]=an^~dr&qe,K[40]=vt^~ft&Pt,K[41]=Gt^~rt&Yt,K[2]=ye^~le&Ne,K[3]=me^~pe&_e,K[12]=De^~Se&Oe,K[13]=Fe^~Xe&Ye,K[22]=sn^~ur&xt,K[23]=un^~dt&Cn,K[32]=on^~$e&yt,K[33]=dr^~qe&Ze,K[42]=ft^~Pt&Un,K[43]=rt^~Yt&jn,K[4]=le^~Ne&ue,K[5]=pe^~_e&se,K[14]=Se^~Oe&mt,K[15]=Xe^~Ye&ut,K[24]=ur^~xt&Kt,K[25]=dt^~Cn&rn,K[34]=$e^~yt&ot,K[35]=qe^~Ze&yn,K[44]=Pt^~Un&br,K[45]=Yt^~jn&si,K[6]=Ne^~ue&ze,K[7]=_e^~se&je,K[16]=Oe^~mt&oe,K[17]=Ye^~ut&ge,K[26]=xt^~Kt&lt,K[27]=Cn^~rn&pn,K[36]=yt^~ot&On,K[37]=Ze^~yn&an,K[46]=Un^~br&vt,K[47]=jn^~si&Gt,K[8]=ue^~ze&ye,K[9]=se^~je&me,K[18]=mt^~oe&De,K[19]=ut^~ge&Fe,K[28]=Kt^~lt&sn,K[29]=rn^~pn&un,K[38]=ot^~On&on,K[39]=yn^~an&dr,K[48]=br^~vt&ft,K[49]=si^~Gt&rt,K[0]^=g[X],K[1]^=g[X+1]};if(l)t.exports=b;else for(M=0;M<T.length;++M)a[T[M]]=b[T[M]]})()})(oen);var aVr=oen.exports;const oVr=Li(aVr);function dp(t){return"0x"+oVr.keccak_256(Ka(t))}const sVr="rlp/5.7.0",vT=new hn(sVr);function cyt(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function uyt(t,e,n){let r=0;for(let a=0;a<n;a++)r=r*256+t[e+a];return r}function sen(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(o){r=r.concat(sen(o))}),r.length<=55)return r.unshift(192+r.length),r;const a=cyt(r.length);return a.unshift(247+a.length),a.concat(r)}Met(t)||vT.throwArgumentError("RLP object must be BytesLike","object",t);const e=Array.prototype.slice.call(Ka(t));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const n=cyt(e.length);return n.unshift(183+n.length),n.concat(e)}function eSe(t){return ba(sen(t))}function dyt(t,e,n,r){const a=[];for(;n<e+1+r;){const o=len(t,n);a.push(o.result),n+=o.consumed,n>e+1+r&&vT.throwError("child data too short",hn.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:a}}function len(t,e){if(t.length===0&&vT.throwError("data too short",hn.errors.BUFFER_OVERRUN,{}),t[e]>=248){const n=t[e]-247;e+1+n>t.length&&vT.throwError("data short segment too short",hn.errors.BUFFER_OVERRUN,{});const r=uyt(t,e+1,n);return e+1+n+r>t.length&&vT.throwError("data long segment too short",hn.errors.BUFFER_OVERRUN,{}),dyt(t,e,e+1+n,n+r)}else if(t[e]>=192){const n=t[e]-192;return e+1+n>t.length&&vT.throwError("data array too short",hn.errors.BUFFER_OVERRUN,{}),dyt(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;e+1+n>t.length&&vT.throwError("data array too short",hn.errors.BUFFER_OVERRUN,{});const r=uyt(t,e+1,n);e+1+n+r>t.length&&vT.throwError("data array too short",hn.errors.BUFFER_OVERRUN,{});const a=ba(t.slice(e+1+n,e+1+n+r));return{consumed:1+n+r,result:a}}else if(t[e]>=128){const n=t[e]-128;e+1+n>t.length&&vT.throwError("data too short",hn.errors.BUFFER_OVERRUN,{});const r=ba(t.slice(e+1,e+1+n));return{consumed:1+n,result:r}}return{consumed:1,result:ba(t[e])}}function Pet(t){const e=Ka(t),n=len(e,0);return n.consumed!==e.length&&vT.throwArgumentError("invalid rlp data","data",t),n.result}const lVr="address/5.7.0",VF=new hn(lVr);function hyt(t){Gl(t,20)||VF.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),n=new Uint8Array(40);for(let a=0;a<40;a++)n[a]=e[a].charCodeAt(0);const r=Ka(dp(n));for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&(e[a]=e[a].toUpperCase()),(r[a>>1]&15)>=8&&(e[a+1]=e[a+1].toUpperCase());return"0x"+e.join("")}const cVr=9007199254740991;function uVr(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const Oet={};for(let t=0;t<10;t++)Oet[String(t)]=String(t);for(let t=0;t<26;t++)Oet[String.fromCharCode(65+t)]=String(10+t);const fyt=Math.floor(uVr(cVr));function dVr(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(r=>Oet[r]).join("");for(;e.length>=fyt;){let r=e.substring(0,fyt);e=parseInt(r,10)%97+e.substring(r.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}function ph(t){let e=null;if(typeof t!="string"&&VF.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=hyt(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&VF.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==dVr(t)&&VF.throwArgumentError("bad icap checksum","address",t),e=KGr(t.substring(4));e.length<40;)e="0"+e;e=hyt("0x"+e)}else VF.throwArgumentError("invalid address","address",t);return e}function hVr(t){try{return ph(t),!0}catch{}return!1}function cen(t){let e=null;try{e=ph(t.from)}catch{VF.throwArgumentError("missing from address","transaction",t)}const n=EU(Ka($r.from(t.nonce).toHexString()));return ph(rv(dp(eSe([e,n])),12))}class fVr extends rN{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=ph(n)}catch(r){this._throwError(r.message,n)}return e.writeValue(n)}decode(e){return ph(md(e.readValue().toHexString(),20))}}class pVr extends rN{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}decode(e){return this.coder.decode(e)}}const KF=new hn(_ae);function uen(t,e,n){let r=null;if(Array.isArray(n))r=n;else if(n&&typeof n=="object"){let c={};r=e.map(u=>{const d=u.localName;return d||KF.throwError("cannot encode object for signature with missing names",hn.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:n}),c[d]&&KF.throwError("cannot encode object for signature with duplicate names",hn.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:n}),c[d]=!0,n[d]})}else KF.throwArgumentError("invalid tuple value","tuple",n);e.length!==r.length&&KF.throwArgumentError("types/value length mismatch","tuple",n);let a=new cUe(t.wordSize),o=new cUe(t.wordSize),s=[];e.forEach((c,u)=>{let d=r[u];if(c.dynamic){let h=o.length;c.encode(o,d);let f=a.writeUpdatableValue();s.push(p=>{f(p+h)})}else c.encode(a,d)}),s.forEach(c=>{c(a.length)});let l=t.appendWriter(a);return l+=t.appendWriter(o),l}function den(t,e){let n=[],r=t.subReader(0);e.forEach(o=>{let s=null;if(o.dynamic){let l=t.readValue(),c=r.subReader(l.toNumber());try{s=o.decode(c)}catch(u){if(u.code===hn.errors.BUFFER_OVERRUN)throw u;s=u,s.baseType=o.name,s.name=o.localName,s.type=o.type}}else try{s=o.decode(t)}catch(l){if(l.code===hn.errors.BUFFER_OVERRUN)throw l;s=l,s.baseType=o.name,s.name=o.localName,s.type=o.type}s!=null&&n.push(s)});const a=e.reduce((o,s)=>{const l=s.localName;return l&&(o[l]||(o[l]=0),o[l]++),o},{});e.forEach((o,s)=>{let l=o.localName;if(!l||a[l]!==1||(l==="length"&&(l="_length"),n[l]!=null))return;const c=n[s];c instanceof Error?Object.defineProperty(n,l,{enumerable:!0,get:()=>{throw c}}):n[l]=c});for(let o=0;o<n.length;o++){const s=n[o];s instanceof Error&&Object.defineProperty(n,o,{enumerable:!0,get:()=>{throw s}})}return Object.freeze(n)}class mVr extends rN{constructor(e,n,r){const a=e.type+"["+(n>=0?n:"")+"]",o=n===-1||e.dynamic;super("array",a,r,o),this.coder=e,this.length=n}defaultValue(){const e=this.coder.defaultValue(),n=[];for(let r=0;r<this.length;r++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let r=this.length;r===-1&&(r=n.length,e.writeValue(n.length)),KF.checkArgumentCount(n.length,r,"coder array"+(this.localName?" "+this.localName:""));let a=[];for(let o=0;o<n.length;o++)a.push(this.coder);return uen(e,a,n)}decode(e){let n=this.length;n===-1&&(n=e.readValue().toNumber(),n*32>e._data.length&&KF.throwError("insufficient data length",hn.errors.BUFFER_OVERRUN,{length:e._data.length,count:n}));let r=[];for(let a=0;a<n;a++)r.push(new pVr(this.coder));return e.coerce(this.name,den(e,r))}}class gVr extends rN{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class hen extends rN{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){n=Ka(n);let r=e.writeValue(n.length);return r+=e.writeBytes(n),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class vVr extends hen{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,ba(super.decode(e)))}}class AVr extends rN{constructor(e,n){let r="bytes"+String(e);super(r,r,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,n){let r=Ka(n);return r.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(r)}decode(e){return e.coerce(this.name,ba(e.readBytes(this.size)))}}class yVr extends rN{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return n!=null&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const bVr="0x0000000000000000000000000000000000000000",xVr=$r.from(-1),fen=$r.from(0),EVr=$r.from(1),SVr=$r.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),wVr="0x0000000000000000000000000000000000000000000000000000000000000000";class _Vr extends rN{constructor(e,n,r){const a=(n?"int":"uint")+e*8;super(a,a,r,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let r=$r.from(n),a=SVr.mask(e.wordSize*8);if(this.signed){let o=a.mask(this.size*8-1);(r.gt(o)||r.lt(o.add(EVr).mul(xVr)))&&this._throwError("value out-of-bounds",n)}else(r.lt(fen)||r.gt(a.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return r=r.toTwos(this.size*8).mask(this.size*8),this.signed&&(r=r.fromTwos(this.size*8).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let n=e.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),e.coerce(this.name,n)}}const TVr="strings/5.7.0",pen=new hn(TVr);var vne;(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(vne||(vne={}));var xy;(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(xy||(xy={}));function CVr(t,e,n,r,a){return pen.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",n)}function men(t,e,n,r,a){if(t===xy.BAD_PREFIX||t===xy.UNEXPECTED_CONTINUE){let o=0;for(let s=e+1;s<n.length&&n[s]>>6===2;s++)o++;return o}return t===xy.OVERRUN?n.length-e-1:0}function kVr(t,e,n,r,a){return t===xy.OVERLONG?(r.push(a),0):(r.push(65533),men(t,e,n))}const RVr=Object.freeze({error:CVr,ignore:men,replace:kVr});function gen(t,e){e==null&&(e=RVr.error),t=Ka(t);const n=[];let r=0;for(;r<t.length;){const a=t[r++];if(!(a>>7)){n.push(a);continue}let o=null,s=null;if((a&224)===192)o=1,s=127;else if((a&240)===224)o=2,s=2047;else if((a&248)===240)o=3,s=65535;else{(a&192)===128?r+=e(xy.UNEXPECTED_CONTINUE,r-1,t,n):r+=e(xy.BAD_PREFIX,r-1,t,n);continue}if(r-1+o>=t.length){r+=e(xy.OVERRUN,r-1,t,n);continue}let l=a&(1<<8-o-1)-1;for(let c=0;c<o;c++){let u=t[r];if((u&192)!=128){r+=e(xy.MISSING_CONTINUE,r,t,n),l=null;break}l=l<<6|u&63,r++}if(l!==null){if(l>1114111){r+=e(xy.OUT_OF_RANGE,r-1-o,t,n,l);continue}if(l>=55296&&l<=57343){r+=e(xy.UTF16_SURROGATE,r-1-o,t,n,l);continue}if(l<=s){r+=e(xy.OVERLONG,r-1-o,t,n,l);continue}n.push(l)}}return n}function Q2(t,e=vne.current){e!=vne.current&&(pen.checkNormalize(),t=t.normalize(e));let n=[];for(let r=0;r<t.length;r++){const a=t.charCodeAt(r);if(a<128)n.push(a);else if(a<2048)n.push(a>>6|192),n.push(a&63|128);else if((a&64512)==55296){r++;const o=t.charCodeAt(r);if(r>=t.length||(o&64512)!==56320)throw new Error("invalid utf-8 string");const s=65536+((a&1023)<<10)+(o&1023);n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(s&63|128)}else n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128)}return Ka(n)}function MVr(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Tae(t,e){return MVr(gen(t,e))}function NVr(t,e=vne.current){return gen(Q2(t,e))}class IVr extends hen{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,Q2(n))}decode(e){return Tae(super.decode(e))}}class wce extends rN{constructor(e,n){let r=!1;const a=[];e.forEach(s=>{s.dynamic&&(r=!0),a.push(s.type)});const o="tuple("+a.join(",")+")";super("tuple",o,n,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach(r=>{e.push(r.defaultValue())});const n=this.coders.reduce((r,a)=>{const o=a.localName;return o&&(r[o]||(r[o]=0),r[o]++),r},{});return this.coders.forEach((r,a)=>{let o=r.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),e[o]==null&&(e[o]=e[a]))}),Object.freeze(e)}encode(e,n){return uen(e,this.coders,n)}decode(e){return e.coerce(this.name,den(e,this.coders))}}const _ce=new hn(_ae),PVr=new RegExp(/^bytes([0-9]*)$/),OVr=new RegExp(/^(u?int)([0-9]*)$/);class LVr{constructor(e){ir(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new fVr(e.name);case"bool":return new gVr(e.name);case"string":return new IVr(e.name);case"bytes":return new vVr(e.name);case"array":return new mVr(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new wce((e.components||[]).map(r=>this._getCoder(r)),e.name);case"":return new yVr(e.name)}let n=e.type.match(OVr);if(n){let r=parseInt(n[2]||"256");return(r===0||r>256||r%8!==0)&&_ce.throwArgumentError("invalid "+n[1]+" bit length","param",e),new _Vr(r/8,n[1]==="int",e.name)}if(n=e.type.match(PVr),n){let r=parseInt(n[1]);return(r===0||r>32)&&_ce.throwArgumentError("invalid bytes length","param",e),new AVr(r,e.name)}return _ce.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new W0e(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new cUe(this._getWordSize())}getDefaultValue(e){const n=e.map(a=>this._getCoder(Jp.from(a)));return new wce(n,"_").defaultValue()}encode(e,n){e.length!==n.length&&_ce.throwError("types/values length mismatch",hn.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});const r=e.map(s=>this._getCoder(Jp.from(s))),a=new wce(r,"_"),o=this._getWriter();return a.encode(o,n),o.data}decode(e,n,r){const a=e.map(s=>this._getCoder(Jp.from(s)));return new wce(a,"_").decode(this._getReader(Ka(n),r))}}const Let=new LVr;function WF(t){return dp(Q2(t))}const ven="hash/5.7.0";function Aen(t){t=atob(t);const e=[];for(let n=0;n<t.length;n++)e.push(t.charCodeAt(n));return Ka(e)}function yen(t){t=Ka(t);let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}function ben(t,e){e==null&&(e=1);const n=[],r=n.forEach,a=function(o,s){r.call(o,function(l){s>0&&Array.isArray(l)?a(l,s-1):n.push(l)})};return a(t,e),n}function BVr(t){const e={};for(let n=0;n<t.length;n++){const r=t[n];e[r[0]]=r[1]}return e}function DVr(t){let e=0;function n(){return t[e++]<<8|t[e++]}let r=n(),a=1,o=[0,1];for(let w=1;w<r;w++)o.push(a+=n());let s=n(),l=e;e+=s;let c=0,u=0;function d(){return c==0&&(u=u<<8|t[e++],c=8),u>>--c&1}const h=31,f=Math.pow(2,h),p=f>>>1,m=p>>1,g=f-1;let v=0;for(let w=0;w<h;w++)v=v<<1|d();let A=[],y=0,S=f;for(;;){let w=Math.floor(((v-y+1)*a-1)/S),_=0,C=r;for(;C-_>1;){let P=_+C>>>1;w<o[P]?C=P:_=P}if(_==0)break;A.push(_);let R=y+Math.floor(S*o[_]/a),k=y+Math.floor(S*o[_+1]/a)-1;for(;!((R^k)&p);)v=v<<1&g|d(),R=R<<1&g,k=k<<1&g|1;for(;R&~k&m;)v=v&p|v<<1&g>>>1|d(),R=R<<1^p,k=(k^p)<<1|p|1;y=R,S=1+k-R}let x=r-4;return A.map(w=>{switch(w-x){case 3:return x+65792+(t[l++]<<16|t[l++]<<8|t[l++]);case 2:return x+256+(t[l++]<<8|t[l++]);case 1:return x+t[l++];default:return w-1}})}function $Vr(t){let e=0;return()=>t[e++]}function FVr(t){return $Vr(DVr(t))}function jVr(t){return t&1?~t>>1:t>>1}function HVr(t,e){let n=Array(t);for(let r=0;r<t;r++)n[r]=1+e();return n}function pyt(t,e){let n=Array(t);for(let r=0,a=-1;r<t;r++)n[r]=a+=1+e();return n}function UVr(t,e){let n=Array(t);for(let r=0,a=0;r<t;r++)n[r]=a+=jVr(e());return n}function Q0e(t,e){let n=pyt(t(),t),r=t(),a=pyt(r,t),o=HVr(r,t);for(let s=0;s<r;s++)for(let l=0;l<o[s];l++)n.push(a[s]+l);return e?n.map(s=>e[s]):n}function zVr(t){let e=[];for(;;){let n=t();if(n==0)break;e.push(VVr(n,t))}for(;;){let n=t()-1;if(n<0)break;e.push(KVr(n,t))}return BVr(ben(e))}function GVr(t){let e=[];for(;;){let n=t();if(n==0)break;e.push(n)}return e}function xen(t,e,n){let r=Array(t).fill(void 0).map(()=>[]);for(let a=0;a<e;a++)UVr(t,n).forEach((o,s)=>r[s].push(o));return r}function VVr(t,e){let n=1+e(),r=e(),a=GVr(e),o=xen(a.length,1+t,e);return ben(o.map((s,l)=>{const c=s[0],u=s.slice(1);return Array(a[l]).fill(void 0).map((d,h)=>{let f=h*r;return[c+h*n,u.map(p=>p+f)]})}))}function KVr(t,e){let n=1+e();return xen(n,1+t,e).map(a=>[a[0],a.slice(1)])}function WVr(t){let e=Q0e(t).sort((r,a)=>r-a);return n();function n(){let r=[];for(;;){let u=Q0e(t,e);if(u.length==0)break;r.push({set:new Set(u),node:n()})}r.sort((u,d)=>d.set.size-u.set.size);let a=t(),o=a%3;a=a/3|0;let s=!!(a&1);a>>=1;let l=a==1,c=a==2;return{branches:r,valid:o,fe0f:s,save:l,check:c}}}function QVr(){return FVr(Aen("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const tSe=QVr(),qVr=new Set(Q0e(tSe)),YVr=new Set(Q0e(tSe)),JVr=zVr(tSe),ZVr=WVr(tSe),myt=45,gyt=95;function Een(t){return NVr(t)}function XVr(t){return t.filter(e=>e!=65039)}function Sen(t){for(let e of t.split(".")){let n=Een(e);try{for(let r=n.lastIndexOf(gyt)-1;r>=0;r--)if(n[r]!==gyt)throw new Error("underscore only allowed at start");if(n.length>=4&&n.every(r=>r<128)&&n[2]===myt&&n[3]===myt)throw new Error("invalid label extension")}catch(r){throw new Error(`Invalid label "${e}": ${r.message}`)}}return t}function eKr(t){return Sen(tKr(t,XVr))}function tKr(t,e){let n=Een(t).reverse(),r=[];for(;n.length;){let a=rKr(n);if(a){r.push(...e(a));continue}let o=n.pop();if(qVr.has(o)){r.push(o);continue}if(YVr.has(o))continue;let s=JVr[o];if(s){r.push(...s);continue}throw new Error(`Disallowed codepoint: 0x${o.toString(16).toUpperCase()}`)}return Sen(nKr(String.fromCodePoint(...r)))}function nKr(t){return t.normalize("NFC")}function rKr(t,e){var n;let r=ZVr,a,o,s=[],l=t.length;for(e&&(e.length=0);l;){let c=t[--l];if(r=(n=r.branches.find(u=>u.set.has(c)))===null||n===void 0?void 0:n.node,!r)break;if(r.save)o=c;else if(r.check&&c===o)break;s.push(c),r.fe0f&&(s.push(65039),l>0&&t[l-1]==65039&&l--),r.valid&&(a=s.slice(),r.valid==2&&a.splice(1,1),e&&e.push(...t.slice(l).reverse()),t.length=l)}return a}const iKr=new hn(ven),wen=new Uint8Array(32);wen.fill(0);function vyt(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function _en(t){const e=Q2(eKr(t)),n=[];if(t.length===0)return n;let r=0;for(let a=0;a<e.length;a++)e[a]===46&&(n.push(vyt(e.slice(r,a))),r=a+1);if(r>=e.length)throw new Error("invalid ENS name; empty component");return n.push(vyt(e.slice(r))),n}function gme(t){typeof t!="string"&&iKr.throwArgumentError("invalid ENS name; not a string","name",t);let e=wen;const n=_en(t);for(;n.length;)e=dp(ky([e,dp(n.pop())]));return ba(e)}function aKr(t){return ba(ky(_en(t).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const n=new Uint8Array(e.length+1);return n.set(e,1),n[0]=n.length-1,n})))+"00"}var oKr=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const Md=new hn(ven),Ten=new Uint8Array(32);Ten.fill(0);const sKr=$r.from(-1),Cen=$r.from(0),ken=$r.from(1),lKr=$r.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function cKr(t){const e=Ka(t),n=e.length%32;return n?KA([e,Ten.slice(n)]):ba(e)}const uKr=md(ken.toHexString(),32),dKr=md(Cen.toHexString(),32),Ayt={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},lPe=["name","version","chainId","verifyingContract","salt"];function yyt(t){return function(e){return typeof e!="string"&&Md.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const hKr={name:yyt("name"),version:yyt("version"),chainId:function(t){try{return $r.from(t).toString()}catch{}return Md.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return ph(t).toLowerCase()}catch{}return Md.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=Ka(t);if(e.length!==32)throw new Error("bad length");return ba(e)}catch{}return Md.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function cPe(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const n=e[1]==="",r=parseInt(e[2]||"256");(r%8!==0||r>256||e[2]&&e[2]!==String(r))&&Md.throwArgumentError("invalid numeric width","type",t);const a=lKr.mask(n?r-1:r),o=n?a.add(ken).mul(sKr):Cen;return function(s){const l=$r.from(s);return(l.lt(o)||l.gt(a))&&Md.throwArgumentError(`value out-of-bounds for ${t}`,"value",s),md(l.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return(n===0||n>32||e[1]!==String(n))&&Md.throwArgumentError("invalid bytes width","type",t),function(r){return Ka(r).length!==n&&Md.throwArgumentError(`invalid length for ${t}`,"value",r),cKr(r)}}}switch(t){case"address":return function(e){return md(ph(e),32)};case"bool":return function(e){return e?uKr:dKr};case"bytes":return function(e){return dp(e)};case"string":return function(e){return WF(e)}}return null}function byt(t,e){return`${t}(${e.map(({name:n,type:r})=>r+" "+n).join(",")})`}class gy{constructor(e){ir(this,"types",Object.freeze(EM(e))),ir(this,"_encoderCache",{}),ir(this,"_types",{});const n={},r={},a={};Object.keys(e).forEach(l=>{n[l]={},r[l]=[],a[l]={}});for(const l in e){const c={};e[l].forEach(u=>{c[u.name]&&Md.throwArgumentError(`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(l)}`,"types",e),c[u.name]=!0;const d=u.type.match(/^([^\x5b]*)(\x5b|$)/)[1];d===l&&Md.throwArgumentError(`circular type reference to ${JSON.stringify(d)}`,"types",e),!cPe(d)&&(r[d]||Md.throwArgumentError(`unknown type ${JSON.stringify(d)}`,"types",e),r[d].push(l),n[l][d]=!0)})}const o=Object.keys(r).filter(l=>r[l].length===0);o.length===0?Md.throwArgumentError("missing primary type","types",e):o.length>1&&Md.throwArgumentError(`ambiguous primary types or unused types: ${o.map(l=>JSON.stringify(l)).join(", ")}`,"types",e),ir(this,"primaryType",o[0]);function s(l,c){c[l]&&Md.throwArgumentError(`circular type reference to ${JSON.stringify(l)}`,"types",e),c[l]=!0,Object.keys(n[l]).forEach(u=>{r[u]&&(s(u,c),Object.keys(c).forEach(d=>{a[d][u]=!0}))}),delete c[l]}s(this.primaryType,{});for(const l in a){const c=Object.keys(a[l]);c.sort(),this._types[l]=byt(l,e[l])+c.map(u=>byt(u,e[u])).join("")}}getEncoder(e){let n=this._encoderCache[e];return n||(n=this._encoderCache[e]=this._getEncoder(e)),n}_getEncoder(e){{const a=cPe(e);if(a)return a}const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const a=n[1],o=this.getEncoder(a),s=parseInt(n[3]);return l=>{s>=0&&l.length!==s&&Md.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);let c=l.map(o);return this._types[a]&&(c=c.map(dp)),dp(KA(c))}}const r=this.types[e];if(r){const a=WF(this._types[e]);return o=>{const s=r.map(({name:l,type:c})=>{const u=this.getEncoder(c)(o[l]);return this._types[c]?dp(u):u});return s.unshift(a),KA(s)}}return Md.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const n=this._types[e];return n||Md.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),n}encodeData(e,n){return this.getEncoder(e)(n)}hashStruct(e,n){return dp(this.encodeData(e,n))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,n,r){if(cPe(e))return r(e,n);const a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){const s=a[1],l=parseInt(a[3]);return l>=0&&n.length!==l&&Md.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",n),n.map(c=>this._visit(s,c,r))}const o=this.types[e];return o?o.reduce((s,{name:l,type:c})=>(s[l]=this._visit(c,n[l],r),s),{}):Md.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,n){return this._visit(this.primaryType,e,n)}static from(e){return new gy(e)}static getPrimaryType(e){return gy.from(e).primaryType}static hashStruct(e,n,r){return gy.from(n).hashStruct(e,r)}static hashDomain(e){const n=[];for(const r in e){const a=Ayt[r];a||Md.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),n.push({name:r,type:a})}return n.sort((r,a)=>lPe.indexOf(r.name)-lPe.indexOf(a.name)),gy.hashStruct("EIP712Domain",{EIP712Domain:n},e)}static encode(e,n,r){return KA(["0x1901",gy.hashDomain(e),gy.from(n).hash(r)])}static hash(e,n,r){return dp(gy.encode(e,n,r))}static resolveNames(e,n,r,a){return oKr(this,void 0,void 0,function*(){e=mp(e);const o={};e.verifyingContract&&!Gl(e.verifyingContract,20)&&(o[e.verifyingContract]="0x");const s=gy.from(n);s.visit(r,(l,c)=>(l==="address"&&!Gl(c,20)&&(o[c]="0x"),c));for(const l in o)o[l]=yield a(l);return e.verifyingContract&&o[e.verifyingContract]&&(e.verifyingContract=o[e.verifyingContract]),r=s.visit(r,(l,c)=>l==="address"&&o[c]?o[c]:c),{domain:e,value:r}})}static getPayload(e,n,r){gy.hashDomain(e);const a={},o=[];lPe.forEach(c=>{const u=e[c];u!=null&&(a[c]=hKr[c](u),o.push({name:c,type:Ayt[c]}))});const s=gy.from(n),l=mp(n);return l.EIP712Domain?Md.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):l.EIP712Domain=o,s.encode(r),{types:l,domain:a,primaryType:s.primaryType,message:s.visit(r,(c,u)=>{if(c.match(/^bytes(\d*)/))return ba(Ka(u));if(c.match(/^u?int/))return $r.from(u).toString();switch(c){case"address":return u.toLowerCase();case"bool":return!!u;case"string":return typeof u!="string"&&Md.throwArgumentError("invalid string","value",u),u}return Md.throwArgumentError("unsupported type","type",c)})}}}const kd=new hn(_ae);class fKr extends wae{}class pKr extends wae{}class mKr extends wae{}class uUe extends wae{static isIndexed(e){return!!(e&&e._isIndexed)}}const gKr={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function xyt(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return n.error=e,n}class Eyt{constructor(e){let n=[];typeof e=="string"?n=JSON.parse(e):n=e,ir(this,"fragments",n.map(r=>FR.from(r)).filter(r=>r!=null)),ir(this,"_abiCoder",Ry(new.target,"getAbiCoder")()),ir(this,"functions",{}),ir(this,"errors",{}),ir(this,"events",{}),ir(this,"structs",{}),this.fragments.forEach(r=>{let a=null;switch(r.type){case"constructor":if(this.deploy){kd.warn("duplicate definition - constructor");return}ir(this,"deploy",r);return;case"function":a=this.functions;break;case"event":a=this.events;break;case"error":a=this.errors;break;default:return}let o=r.format();if(a[o]){kd.warn("duplicate definition - "+o);return}a[o]=r}),this.deploy||ir(this,"deploy",PT.from({payable:!1,type:"constructor"})),ir(this,"_isInterface",!0)}format(e){e||(e=Ul.full),e===Ul.sighash&&kd.throwArgumentError("interface does not support formatting sighash","format",e);const n=this.fragments.map(r=>r.format(e));return e===Ul.json?JSON.stringify(n.map(r=>JSON.parse(r))):n}static getAbiCoder(){return Let}static getAddress(e){return ph(e)}static getSighash(e){return rv(WF(e.format()),0,4)}static getEventTopic(e){return WF(e.format())}getFunction(e){if(Gl(e)){for(const r in this.functions)if(e===this.getSighash(r))return this.functions[r];kd.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const r=e.trim(),a=Object.keys(this.functions).filter(o=>o.split("(")[0]===r);return a.length===0?kd.throwArgumentError("no matching function","name",r):a.length>1&&kd.throwArgumentError("multiple matching functions","name",r),this.functions[a[0]]}const n=this.functions[OT.fromString(e).format()];return n||kd.throwArgumentError("no matching function","signature",e),n}getEvent(e){if(Gl(e)){const r=e.toLowerCase();for(const a in this.events)if(r===this.getEventTopic(a))return this.events[a];kd.throwArgumentError("no matching event","topichash",r)}if(e.indexOf("(")===-1){const r=e.trim(),a=Object.keys(this.events).filter(o=>o.split("(")[0]===r);return a.length===0?kd.throwArgumentError("no matching event","name",r):a.length>1&&kd.throwArgumentError("multiple matching events","name",r),this.events[a[0]]}const n=this.events[MR.fromString(e).format()];return n||kd.throwArgumentError("no matching event","signature",e),n}getError(e){if(Gl(e)){const r=Ry(this.constructor,"getSighash");for(const a in this.errors){const o=this.errors[a];if(e===r(o))return this.errors[a]}kd.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const r=e.trim(),a=Object.keys(this.errors).filter(o=>o.split("(")[0]===r);return a.length===0?kd.throwArgumentError("no matching error","name",r):a.length>1&&kd.throwArgumentError("multiple matching errors","name",r),this.errors[a[0]]}const n=this.errors[OT.fromString(e).format()];return n||kd.throwArgumentError("no matching error","signature",e),n}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(n){try{e=this.getError(e)}catch{throw n}}return Ry(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Ry(this.constructor,"getEventTopic")(e)}_decodeParams(e,n){return this._abiCoder.decode(e,n)}_encodeParams(e,n){return this._abiCoder.encode(e,n)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,n){typeof e=="string"&&(e=this.getError(e));const r=Ka(n);return ba(r.slice(0,4))!==this.getSighash(e)&&kd.throwArgumentError(`data signature does not match error ${e.name}.`,"data",ba(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,n){return typeof e=="string"&&(e=this.getError(e)),ba(ky([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionData(e,n){typeof e=="string"&&(e=this.getFunction(e));const r=Ka(n);return ba(r.slice(0,4))!==this.getSighash(e)&&kd.throwArgumentError(`data signature does not match function ${e.name}.`,"data",ba(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,n){return typeof e=="string"&&(e=this.getFunction(e)),ba(ky([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionResult(e,n){typeof e=="string"&&(e=this.getFunction(e));let r=Ka(n),a=null,o="",s=null,l=null,c=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch{}break;case 4:{const u=ba(r.slice(0,4)),d=gKr[u];if(d)s=this._abiCoder.decode(d.inputs,r.slice(4)),l=d.name,c=d.signature,d.reason&&(a=s[0]),l==="Error"?o=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(s[0])}`:l==="Panic"&&(o=`; VM Exception while processing transaction: reverted with panic code ${s[0]}`);else try{const h=this.getError(u);s=this._abiCoder.decode(h.inputs,r.slice(4)),l=h.name,c=h.format()}catch{}break}}return kd.throwError("call revert exception"+o,hn.errors.CALL_EXCEPTION,{method:e.format(),data:ba(n),errorArgs:s,errorName:l,errorSignature:c,reason:a})}encodeFunctionResult(e,n){return typeof e=="string"&&(e=this.getFunction(e)),ba(this._abiCoder.encode(e.outputs,n||[]))}encodeFilterTopics(e,n){typeof e=="string"&&(e=this.getEvent(e)),n.length>e.inputs.length&&kd.throwError("too many arguments for "+e.format(),hn.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});let r=[];e.anonymous||r.push(this.getEventTopic(e));const a=(o,s)=>o.type==="string"?WF(s):o.type==="bytes"?dp(ba(s)):(o.type==="bool"&&typeof s=="boolean"&&(s=s?"0x01":"0x00"),o.type.match(/^u?int/)&&(s=$r.from(s).toHexString()),o.type==="address"&&this._abiCoder.encode(["address"],[s]),md(ba(s),32));for(n.forEach((o,s)=>{let l=e.inputs[s];if(!l.indexed){o!=null&&kd.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+l.name,o);return}o==null?r.push(null):l.baseType==="array"||l.baseType==="tuple"?kd.throwArgumentError("filtering with tuples or arrays not supported","contract."+l.name,o):Array.isArray(o)?r.push(o.map(c=>a(l,c))):r.push(a(l,o))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(e,n){typeof e=="string"&&(e=this.getEvent(e));const r=[],a=[],o=[];return e.anonymous||r.push(this.getEventTopic(e)),n.length!==e.inputs.length&&kd.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach((s,l)=>{const c=n[l];if(s.indexed)if(s.type==="string")r.push(WF(c));else if(s.type==="bytes")r.push(dp(c));else{if(s.baseType==="tuple"||s.baseType==="array")throw new Error("not implemented");r.push(this._abiCoder.encode([s.type],[c]))}else a.push(s),o.push(c)}),{data:this._abiCoder.encode(a,o),topics:r}}decodeEventLog(e,n,r){if(typeof e=="string"&&(e=this.getEvent(e)),r!=null&&!e.anonymous){let f=this.getEventTopic(e);(!Gl(r[0],32)||r[0].toLowerCase()!==f)&&kd.throwError("fragment/topic mismatch",hn.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:f,value:r[0]}),r=r.slice(1)}let a=[],o=[],s=[];e.inputs.forEach((f,p)=>{f.indexed?f.type==="string"||f.type==="bytes"||f.baseType==="tuple"||f.baseType==="array"?(a.push(Jp.fromObject({type:"bytes32",name:f.name})),s.push(!0)):(a.push(f),s.push(!1)):(o.push(f),s.push(!1))});let l=r!=null?this._abiCoder.decode(a,ky(r)):null,c=this._abiCoder.decode(o,n,!0),u=[],d=0,h=0;e.inputs.forEach((f,p)=>{if(f.indexed)if(l==null)u[p]=new uUe({_isIndexed:!0,hash:null});else if(s[p])u[p]=new uUe({_isIndexed:!0,hash:l[h++]});else try{u[p]=l[h++]}catch(m){u[p]=m}else try{u[p]=c[d++]}catch(m){u[p]=m}if(f.name&&u[f.name]==null){const m=u[p];m instanceof Error?Object.defineProperty(u,f.name,{enumerable:!0,get:()=>{throw xyt(`property ${JSON.stringify(f.name)}`,m)}}):u[f.name]=m}});for(let f=0;f<u.length;f++){const p=u[f];p instanceof Error&&Object.defineProperty(u,f,{enumerable:!0,get:()=>{throw xyt(`index ${f}`,p)}})}return Object.freeze(u)}parseTransaction(e){let n=this.getFunction(e.data.substring(0,10).toLowerCase());return n?new pKr({args:this._abiCoder.decode(n.inputs,"0x"+e.data.substring(10)),functionFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n),value:$r.from(e.value||"0")}):null}parseLog(e){let n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new fKr({eventFragment:n,name:n.name,signature:n.format(),topic:this.getEventTopic(n),args:this.decodeEventLog(n,e.data,e.topics)})}parseError(e){const n=ba(e);let r=this.getError(n.substring(0,10).toLowerCase());return r?new mKr({args:this._abiCoder.decode(r.inputs,"0x"+n.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const vKr="abstract-provider/5.7.0";var AKr=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const yKr=new hn(vKr);class bKr extends wae{static isForkEvent(e){return!!(e&&e._isForkEvent)}}let Ren=class Men{constructor(){yKr.checkAbstract(new.target,Men),ir(this,"_isProvider",!0)}getFeeData(){return AKr(this,void 0,void 0,function*(){const{block:e,gasPrice:n}=yield kf({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(s=>null)});let r=null,a=null,o=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,o=$r.from("1500000000"),a=e.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:r,maxFeePerGas:a,maxPriorityFeePerGas:o,gasPrice:n}})}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}static isProvider(e){return!!(e&&e._isProvider)}};const xKr="abstract-signer/5.7.0";var rS=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const zb=new hn(xKr),EKr=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],SKr=[hn.errors.INSUFFICIENT_FUNDS,hn.errors.NONCE_EXPIRED,hn.errors.REPLACEMENT_UNDERPRICED];class Cae{constructor(){zb.checkAbstract(new.target,Cae),ir(this,"_isSigner",!0)}getBalance(e){return rS(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return rS(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return rS(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const n=yield kf(this.checkTransaction(e));return yield this.provider.estimateGas(n)})}call(e,n){return rS(this,void 0,void 0,function*(){this._checkProvider("call");const r=yield kf(this.checkTransaction(e));return yield this.provider.call(r,n)})}sendTransaction(e){return rS(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const n=yield this.populateTransaction(e),r=yield this.signTransaction(n);return yield this.provider.sendTransaction(r)})}getChainId(){return rS(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return rS(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return rS(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return rS(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const r in e)EKr.indexOf(r)===-1&&zb.throwArgumentError("invalid transaction key: "+r,"transaction",e);const n=mp(e);return n.from==null?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then(r=>(r[0].toLowerCase()!==r[1].toLowerCase()&&zb.throwArgumentError("from address mismatch","transaction",e),r[0])),n}populateTransaction(e){return rS(this,void 0,void 0,function*(){const n=yield kf(this.checkTransaction(e));n.to!=null&&(n.to=Promise.resolve(n.to).then(a=>rS(this,void 0,void 0,function*(){if(a==null)return null;const o=yield this.resolveName(a);return o==null&&zb.throwArgumentError("provided ENS name resolves to null","tx.to",a),o})),n.to.catch(a=>{}));const r=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||r)?zb.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(n.type===0||n.type===1)&&r&&zb.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1)n.gasPrice==null&&(n.gasPrice=this.getGasPrice());else{const a=yield this.getFeeData();if(n.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const o=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=o,n.maxPriorityFeePerGas=o}else n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(r&&zb.throwError("network does not support EIP-1559",hn.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=a.gasPrice),n.type=0):zb.throwError("failed to get consistent fee data",hn.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=a.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return n.nonce==null&&(n.nonce=this.getTransactionCount("pending")),n.gasLimit==null&&(n.gasLimit=this.estimateGas(n).catch(a=>{if(SKr.indexOf(a.code)>=0)throw a;return zb.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",hn.errors.UNPREDICTABLE_GAS_LIMIT,{error:a,tx:n})})),n.chainId==null?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then(a=>(a[1]!==0&&a[0]!==a[1]&&zb.throwArgumentError("chainId address mismatch","transaction",e),a[0])),yield kf(n)})}_checkProvider(e){this.provider||zb.throwError("missing provider",hn.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class Bet extends Cae{constructor(e,n){super(),ir(this,"address",e),ir(this,"provider",n||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,n){return Promise.resolve().then(()=>{zb.throwError(e,hn.errors.UNSUPPORTED_OPERATION,{operation:n})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,n,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new Bet(this.address,e)}}var Det={exports:{}};Det.exports;(function(t){(function(e,n){function r(I,b){if(!I)throw new Error(b||"Assertion failed")}function a(I,b){I.super_=b;var T=function(){};T.prototype=b.prototype,I.prototype=new T,I.prototype.constructor=I}function o(I,b,T){if(o.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((b==="le"||b==="be")&&(T=b,b=10),this._init(I||0,b||10,T||"be"))}typeof e=="object"?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=H8.Buffer}catch{}o.isBN=function(b){return b instanceof o?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===o.wordSize&&Array.isArray(b.words)},o.max=function(b,T){return b.cmp(T)>0?b:T},o.min=function(b,T){return b.cmp(T)<0?b:T},o.prototype._init=function(b,T,M){if(typeof b=="number")return this._initNumber(b,T,M);if(typeof b=="object")return this._initArray(b,T,M);T==="hex"&&(T=16),r(T===(T|0)&&T>=2&&T<=36),b=b.toString().replace(/\s+/g,"");var D=0;b[0]==="-"&&(D++,this.negative=1),D<b.length&&(T===16?this._parseHex(b,D,M):(this._parseBase(b,T,D),M==="le"&&this._initArray(this.toArray(),T,M)))},o.prototype._initNumber=function(b,T,M){b<0&&(this.negative=1,b=-b),b<67108864?(this.words=[b&67108863],this.length=1):b<4503599627370496?(this.words=[b&67108863,b/67108864&67108863],this.length=2):(r(b<9007199254740992),this.words=[b&67108863,b/67108864&67108863,1],this.length=3),M==="le"&&this._initArray(this.toArray(),T,M)},o.prototype._initArray=function(b,T,M){if(r(typeof b.length=="number"),b.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(b.length/3),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B,j,H=0;if(M==="be")for(D=b.length-1,B=0;D>=0;D-=3)j=b[D]|b[D-1]<<8|b[D-2]<<16,this.words[B]|=j<<H&67108863,this.words[B+1]=j>>>26-H&67108863,H+=24,H>=26&&(H-=26,B++);else if(M==="le")for(D=0,B=0;D<b.length;D+=3)j=b[D]|b[D+1]<<8|b[D+2]<<16,this.words[B]|=j<<H&67108863,this.words[B+1]=j>>>26-H&67108863,H+=24,H>=26&&(H-=26,B++);return this._strip()};function l(I,b){var T=I.charCodeAt(b);if(T>=48&&T<=57)return T-48;if(T>=65&&T<=70)return T-55;if(T>=97&&T<=102)return T-87;r(!1,"Invalid character in "+I)}function c(I,b,T){var M=l(I,T);return T-1>=b&&(M|=l(I,T-1)<<4),M}o.prototype._parseHex=function(b,T,M){this.length=Math.ceil((b.length-T)/6),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B=0,j=0,H;if(M==="be")for(D=b.length-1;D>=T;D-=2)H=c(b,T,D)<<B,this.words[j]|=H&67108863,B>=18?(B-=18,j+=1,this.words[j]|=H>>>26):B+=8;else{var U=b.length-T;for(D=U%2===0?T+1:T;D<b.length;D+=2)H=c(b,T,D)<<B,this.words[j]|=H&67108863,B>=18?(B-=18,j+=1,this.words[j]|=H>>>26):B+=8}this._strip()};function u(I,b,T,M){for(var D=0,B=0,j=Math.min(I.length,T),H=b;H<j;H++){var U=I.charCodeAt(H)-48;D*=M,U>=49?B=U-49+10:U>=17?B=U-17+10:B=U,r(U>=0&&B<M,"Invalid character"),D+=B}return D}o.prototype._parseBase=function(b,T,M){this.words=[0],this.length=1;for(var D=0,B=1;B<=67108863;B*=T)D++;D--,B=B/T|0;for(var j=b.length-M,H=j%D,U=Math.min(j,j-H)+M,$=0,z=M;z<U;z+=D)$=u(b,z,z+D,T),this.imuln(B),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($);if(H!==0){var Z=1;for($=u(b,z,b.length,T),z=0;z<H;z++)Z*=T;this.imuln(Z),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($)}this._strip()},o.prototype.copy=function(b){b.words=new Array(this.length);for(var T=0;T<this.length;T++)b.words[T]=this.words[T];b.length=this.length,b.negative=this.negative,b.red=this.red};function d(I,b){I.words=b.words,I.length=b.length,I.negative=b.negative,I.red=b.red}if(o.prototype._move=function(b){d(b,this)},o.prototype.clone=function(){var b=new o(null);return this.copy(b),b},o.prototype._expand=function(b){for(;this.length<b;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(b,T){b=b||10,T=T|0||1;var M;if(b===16||b==="hex"){M="";for(var D=0,B=0,j=0;j<this.length;j++){var H=this.words[j],U=((H<<D|B)&16777215).toString(16);B=H>>>24-D&16777215,D+=2,D>=26&&(D-=26,j--),B!==0||j!==this.length-1?M=f[6-U.length]+U+M:M=U+M}for(B!==0&&(M=B.toString(16)+M);M.length%T!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(b===(b|0)&&b>=2&&b<=36){var $=p[b],z=m[b];M="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var K=Z.modrn(z).toString(b);Z=Z.idivn(z),Z.isZero()?M=K+M:M=f[$-K.length]+K+M}for(this.isZero()&&(M="0"+M);M.length%T!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(b,T){return this.toArrayLike(s,b,T)}),o.prototype.toArray=function(b,T){return this.toArrayLike(Array,b,T)};var g=function(b,T){return b.allocUnsafe?b.allocUnsafe(T):new b(T)};o.prototype.toArrayLike=function(b,T,M){this._strip();var D=this.byteLength(),B=M||Math.max(1,D);r(D<=B,"byte array longer than desired length"),r(B>0,"Requested array length <= 0");var j=g(b,B),H=T==="le"?"LE":"BE";return this["_toArrayLike"+H](j,D),j},o.prototype._toArrayLikeLE=function(b,T){for(var M=0,D=0,B=0,j=0;B<this.length;B++){var H=this.words[B]<<j|D;b[M++]=H&255,M<b.length&&(b[M++]=H>>8&255),M<b.length&&(b[M++]=H>>16&255),j===6?(M<b.length&&(b[M++]=H>>24&255),D=0,j=0):(D=H>>>24,j+=2)}if(M<b.length)for(b[M++]=D;M<b.length;)b[M++]=0},o.prototype._toArrayLikeBE=function(b,T){for(var M=b.length-1,D=0,B=0,j=0;B<this.length;B++){var H=this.words[B]<<j|D;b[M--]=H&255,M>=0&&(b[M--]=H>>8&255),M>=0&&(b[M--]=H>>16&255),j===6?(M>=0&&(b[M--]=H>>24&255),D=0,j=0):(D=H>>>24,j+=2)}if(M>=0)for(b[M--]=D;M>=0;)b[M--]=0},Math.clz32?o.prototype._countBits=function(b){return 32-Math.clz32(b)}:o.prototype._countBits=function(b){var T=b,M=0;return T>=4096&&(M+=13,T>>>=13),T>=64&&(M+=7,T>>>=7),T>=8&&(M+=4,T>>>=4),T>=2&&(M+=2,T>>>=2),M+T},o.prototype._zeroBits=function(b){if(b===0)return 26;var T=b,M=0;return T&8191||(M+=13,T>>>=13),T&127||(M+=7,T>>>=7),T&15||(M+=4,T>>>=4),T&3||(M+=2,T>>>=2),T&1||M++,M},o.prototype.bitLength=function(){var b=this.words[this.length-1],T=this._countBits(b);return(this.length-1)*26+T};function v(I){for(var b=new Array(I.bitLength()),T=0;T<b.length;T++){var M=T/26|0,D=T%26;b[T]=I.words[M]>>>D&1}return b}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,T=0;T<this.length;T++){var M=this._zeroBits(this.words[T]);if(b+=M,M!==26)break}return b},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(b){return this.negative!==0?this.abs().inotn(b).iaddn(1):this.clone()},o.prototype.fromTwos=function(b){return this.testn(b-1)?this.notn(b).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(b){for(;this.length<b.length;)this.words[this.length++]=0;for(var T=0;T<b.length;T++)this.words[T]=this.words[T]|b.words[T];return this._strip()},o.prototype.ior=function(b){return r((this.negative|b.negative)===0),this.iuor(b)},o.prototype.or=function(b){return this.length>b.length?this.clone().ior(b):b.clone().ior(this)},o.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},o.prototype.iuand=function(b){var T;this.length>b.length?T=b:T=this;for(var M=0;M<T.length;M++)this.words[M]=this.words[M]&b.words[M];return this.length=T.length,this._strip()},o.prototype.iand=function(b){return r((this.negative|b.negative)===0),this.iuand(b)},o.prototype.and=function(b){return this.length>b.length?this.clone().iand(b):b.clone().iand(this)},o.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},o.prototype.iuxor=function(b){var T,M;this.length>b.length?(T=this,M=b):(T=b,M=this);for(var D=0;D<M.length;D++)this.words[D]=T.words[D]^M.words[D];if(this!==T)for(;D<T.length;D++)this.words[D]=T.words[D];return this.length=T.length,this._strip()},o.prototype.ixor=function(b){return r((this.negative|b.negative)===0),this.iuxor(b)},o.prototype.xor=function(b){return this.length>b.length?this.clone().ixor(b):b.clone().ixor(this)},o.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},o.prototype.inotn=function(b){r(typeof b=="number"&&b>=0);var T=Math.ceil(b/26)|0,M=b%26;this._expand(T),M>0&&T--;for(var D=0;D<T;D++)this.words[D]=~this.words[D]&67108863;return M>0&&(this.words[D]=~this.words[D]&67108863>>26-M),this._strip()},o.prototype.notn=function(b){return this.clone().inotn(b)},o.prototype.setn=function(b,T){r(typeof b=="number"&&b>=0);var M=b/26|0,D=b%26;return this._expand(M+1),T?this.words[M]=this.words[M]|1<<D:this.words[M]=this.words[M]&~(1<<D),this._strip()},o.prototype.iadd=function(b){var T;if(this.negative!==0&&b.negative===0)return this.negative=0,T=this.isub(b),this.negative^=1,this._normSign();if(this.negative===0&&b.negative!==0)return b.negative=0,T=this.isub(b),b.negative=1,T._normSign();var M,D;this.length>b.length?(M=this,D=b):(M=b,D=this);for(var B=0,j=0;j<D.length;j++)T=(M.words[j]|0)+(D.words[j]|0)+B,this.words[j]=T&67108863,B=T>>>26;for(;B!==0&&j<M.length;j++)T=(M.words[j]|0)+B,this.words[j]=T&67108863,B=T>>>26;if(this.length=M.length,B!==0)this.words[this.length]=B,this.length++;else if(M!==this)for(;j<M.length;j++)this.words[j]=M.words[j];return this},o.prototype.add=function(b){var T;return b.negative!==0&&this.negative===0?(b.negative=0,T=this.sub(b),b.negative^=1,T):b.negative===0&&this.negative!==0?(this.negative=0,T=b.sub(this),this.negative=1,T):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},o.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var T=this.iadd(b);return b.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var M=this.cmp(b);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;M>0?(D=this,B=b):(D=b,B=this);for(var j=0,H=0;H<B.length;H++)T=(D.words[H]|0)-(B.words[H]|0)+j,j=T>>26,this.words[H]=T&67108863;for(;j!==0&&H<D.length;H++)T=(D.words[H]|0)+j,j=T>>26,this.words[H]=T&67108863;if(j===0&&H<D.length&&D!==this)for(;H<D.length;H++)this.words[H]=D.words[H];return this.length=Math.max(this.length,H),D!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(b){return this.clone().isub(b)};function A(I,b,T){T.negative=b.negative^I.negative;var M=I.length+b.length|0;T.length=M,M=M-1|0;var D=I.words[0]|0,B=b.words[0]|0,j=D*B,H=j&67108863,U=j/67108864|0;T.words[0]=H;for(var $=1;$<M;$++){for(var z=U>>>26,Z=U&67108863,K=Math.min($,b.length-1),Q=Math.max(0,$-I.length+1);Q<=K;Q++){var ee=$-Q|0;D=I.words[ee]|0,B=b.words[Q]|0,j=D*B+Z,z+=j/67108864|0,Z=j&67108863}T.words[$]=Z|0,U=z|0}return U!==0?T.words[$]=U|0:T.length--,T._strip()}var y=function(b,T,M){var D=b.words,B=T.words,j=M.words,H=0,U,$,z,Z=D[0]|0,K=Z&8191,Q=Z>>>13,ee=D[1]|0,X=ee&8191,te=ee>>>13,J=D[2]|0,ne=J&8191,ie=J>>>13,he=D[3]|0,de=he&8191,ce=he>>>13,Ee=D[4]|0,Me=Ee&8191,Be=Ee>>>13,ze=D[5]|0,je=ze&8191,ye=ze>>>13,me=D[6]|0,le=me&8191,pe=me>>>13,Ne=D[7]|0,_e=Ne&8191,ue=Ne>>>13,se=D[8]|0,oe=se&8191,ge=se>>>13,De=D[9]|0,Fe=De&8191,Se=De>>>13,Xe=B[0]|0,Oe=Xe&8191,Ye=Xe>>>13,mt=B[1]|0,ut=mt&8191,lt=mt>>>13,pn=B[2]|0,sn=pn&8191,un=pn>>>13,ur=B[3]|0,dt=ur&8191,xt=ur>>>13,Cn=B[4]|0,Kt=Cn&8191,rn=Cn>>>13,On=B[5]|0,an=On&8191,on=On>>>13,dr=B[6]|0,$e=dr&8191,qe=dr>>>13,yt=B[7]|0,Ze=yt&8191,ot=yt>>>13,yn=B[8]|0,vt=yn&8191,Gt=yn>>>13,ft=B[9]|0,rt=ft&8191,Pt=ft>>>13;M.negative=b.negative^T.negative,M.length=19,U=Math.imul(K,Oe),$=Math.imul(K,Ye),$=$+Math.imul(Q,Oe)|0,z=Math.imul(Q,Ye);var Yt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,U=Math.imul(X,Oe),$=Math.imul(X,Ye),$=$+Math.imul(te,Oe)|0,z=Math.imul(te,Ye),U=U+Math.imul(K,ut)|0,$=$+Math.imul(K,lt)|0,$=$+Math.imul(Q,ut)|0,z=z+Math.imul(Q,lt)|0;var Un=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Un>>>26)|0,Un&=67108863,U=Math.imul(ne,Oe),$=Math.imul(ne,Ye),$=$+Math.imul(ie,Oe)|0,z=Math.imul(ie,Ye),U=U+Math.imul(X,ut)|0,$=$+Math.imul(X,lt)|0,$=$+Math.imul(te,ut)|0,z=z+Math.imul(te,lt)|0,U=U+Math.imul(K,sn)|0,$=$+Math.imul(K,un)|0,$=$+Math.imul(Q,sn)|0,z=z+Math.imul(Q,un)|0;var jn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(jn>>>26)|0,jn&=67108863,U=Math.imul(de,Oe),$=Math.imul(de,Ye),$=$+Math.imul(ce,Oe)|0,z=Math.imul(ce,Ye),U=U+Math.imul(ne,ut)|0,$=$+Math.imul(ne,lt)|0,$=$+Math.imul(ie,ut)|0,z=z+Math.imul(ie,lt)|0,U=U+Math.imul(X,sn)|0,$=$+Math.imul(X,un)|0,$=$+Math.imul(te,sn)|0,z=z+Math.imul(te,un)|0,U=U+Math.imul(K,dt)|0,$=$+Math.imul(K,xt)|0,$=$+Math.imul(Q,dt)|0,z=z+Math.imul(Q,xt)|0;var br=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(br>>>26)|0,br&=67108863,U=Math.imul(Me,Oe),$=Math.imul(Me,Ye),$=$+Math.imul(Be,Oe)|0,z=Math.imul(Be,Ye),U=U+Math.imul(de,ut)|0,$=$+Math.imul(de,lt)|0,$=$+Math.imul(ce,ut)|0,z=z+Math.imul(ce,lt)|0,U=U+Math.imul(ne,sn)|0,$=$+Math.imul(ne,un)|0,$=$+Math.imul(ie,sn)|0,z=z+Math.imul(ie,un)|0,U=U+Math.imul(X,dt)|0,$=$+Math.imul(X,xt)|0,$=$+Math.imul(te,dt)|0,z=z+Math.imul(te,xt)|0,U=U+Math.imul(K,Kt)|0,$=$+Math.imul(K,rn)|0,$=$+Math.imul(Q,Kt)|0,z=z+Math.imul(Q,rn)|0;var si=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(si>>>26)|0,si&=67108863,U=Math.imul(je,Oe),$=Math.imul(je,Ye),$=$+Math.imul(ye,Oe)|0,z=Math.imul(ye,Ye),U=U+Math.imul(Me,ut)|0,$=$+Math.imul(Me,lt)|0,$=$+Math.imul(Be,ut)|0,z=z+Math.imul(Be,lt)|0,U=U+Math.imul(de,sn)|0,$=$+Math.imul(de,un)|0,$=$+Math.imul(ce,sn)|0,z=z+Math.imul(ce,un)|0,U=U+Math.imul(ne,dt)|0,$=$+Math.imul(ne,xt)|0,$=$+Math.imul(ie,dt)|0,z=z+Math.imul(ie,xt)|0,U=U+Math.imul(X,Kt)|0,$=$+Math.imul(X,rn)|0,$=$+Math.imul(te,Kt)|0,z=z+Math.imul(te,rn)|0,U=U+Math.imul(K,an)|0,$=$+Math.imul(K,on)|0,$=$+Math.imul(Q,an)|0,z=z+Math.imul(Q,on)|0;var Qi=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,U=Math.imul(le,Oe),$=Math.imul(le,Ye),$=$+Math.imul(pe,Oe)|0,z=Math.imul(pe,Ye),U=U+Math.imul(je,ut)|0,$=$+Math.imul(je,lt)|0,$=$+Math.imul(ye,ut)|0,z=z+Math.imul(ye,lt)|0,U=U+Math.imul(Me,sn)|0,$=$+Math.imul(Me,un)|0,$=$+Math.imul(Be,sn)|0,z=z+Math.imul(Be,un)|0,U=U+Math.imul(de,dt)|0,$=$+Math.imul(de,xt)|0,$=$+Math.imul(ce,dt)|0,z=z+Math.imul(ce,xt)|0,U=U+Math.imul(ne,Kt)|0,$=$+Math.imul(ne,rn)|0,$=$+Math.imul(ie,Kt)|0,z=z+Math.imul(ie,rn)|0,U=U+Math.imul(X,an)|0,$=$+Math.imul(X,on)|0,$=$+Math.imul(te,an)|0,z=z+Math.imul(te,on)|0,U=U+Math.imul(K,$e)|0,$=$+Math.imul(K,qe)|0,$=$+Math.imul(Q,$e)|0,z=z+Math.imul(Q,qe)|0;var st=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(st>>>26)|0,st&=67108863,U=Math.imul(_e,Oe),$=Math.imul(_e,Ye),$=$+Math.imul(ue,Oe)|0,z=Math.imul(ue,Ye),U=U+Math.imul(le,ut)|0,$=$+Math.imul(le,lt)|0,$=$+Math.imul(pe,ut)|0,z=z+Math.imul(pe,lt)|0,U=U+Math.imul(je,sn)|0,$=$+Math.imul(je,un)|0,$=$+Math.imul(ye,sn)|0,z=z+Math.imul(ye,un)|0,U=U+Math.imul(Me,dt)|0,$=$+Math.imul(Me,xt)|0,$=$+Math.imul(Be,dt)|0,z=z+Math.imul(Be,xt)|0,U=U+Math.imul(de,Kt)|0,$=$+Math.imul(de,rn)|0,$=$+Math.imul(ce,Kt)|0,z=z+Math.imul(ce,rn)|0,U=U+Math.imul(ne,an)|0,$=$+Math.imul(ne,on)|0,$=$+Math.imul(ie,an)|0,z=z+Math.imul(ie,on)|0,U=U+Math.imul(X,$e)|0,$=$+Math.imul(X,qe)|0,$=$+Math.imul(te,$e)|0,z=z+Math.imul(te,qe)|0,U=U+Math.imul(K,Ze)|0,$=$+Math.imul(K,ot)|0,$=$+Math.imul(Q,Ze)|0,z=z+Math.imul(Q,ot)|0;var wt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(wt>>>26)|0,wt&=67108863,U=Math.imul(oe,Oe),$=Math.imul(oe,Ye),$=$+Math.imul(ge,Oe)|0,z=Math.imul(ge,Ye),U=U+Math.imul(_e,ut)|0,$=$+Math.imul(_e,lt)|0,$=$+Math.imul(ue,ut)|0,z=z+Math.imul(ue,lt)|0,U=U+Math.imul(le,sn)|0,$=$+Math.imul(le,un)|0,$=$+Math.imul(pe,sn)|0,z=z+Math.imul(pe,un)|0,U=U+Math.imul(je,dt)|0,$=$+Math.imul(je,xt)|0,$=$+Math.imul(ye,dt)|0,z=z+Math.imul(ye,xt)|0,U=U+Math.imul(Me,Kt)|0,$=$+Math.imul(Me,rn)|0,$=$+Math.imul(Be,Kt)|0,z=z+Math.imul(Be,rn)|0,U=U+Math.imul(de,an)|0,$=$+Math.imul(de,on)|0,$=$+Math.imul(ce,an)|0,z=z+Math.imul(ce,on)|0,U=U+Math.imul(ne,$e)|0,$=$+Math.imul(ne,qe)|0,$=$+Math.imul(ie,$e)|0,z=z+Math.imul(ie,qe)|0,U=U+Math.imul(X,Ze)|0,$=$+Math.imul(X,ot)|0,$=$+Math.imul(te,Ze)|0,z=z+Math.imul(te,ot)|0,U=U+Math.imul(K,vt)|0,$=$+Math.imul(K,Gt)|0,$=$+Math.imul(Q,vt)|0,z=z+Math.imul(Q,Gt)|0;var Bt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,U=Math.imul(Fe,Oe),$=Math.imul(Fe,Ye),$=$+Math.imul(Se,Oe)|0,z=Math.imul(Se,Ye),U=U+Math.imul(oe,ut)|0,$=$+Math.imul(oe,lt)|0,$=$+Math.imul(ge,ut)|0,z=z+Math.imul(ge,lt)|0,U=U+Math.imul(_e,sn)|0,$=$+Math.imul(_e,un)|0,$=$+Math.imul(ue,sn)|0,z=z+Math.imul(ue,un)|0,U=U+Math.imul(le,dt)|0,$=$+Math.imul(le,xt)|0,$=$+Math.imul(pe,dt)|0,z=z+Math.imul(pe,xt)|0,U=U+Math.imul(je,Kt)|0,$=$+Math.imul(je,rn)|0,$=$+Math.imul(ye,Kt)|0,z=z+Math.imul(ye,rn)|0,U=U+Math.imul(Me,an)|0,$=$+Math.imul(Me,on)|0,$=$+Math.imul(Be,an)|0,z=z+Math.imul(Be,on)|0,U=U+Math.imul(de,$e)|0,$=$+Math.imul(de,qe)|0,$=$+Math.imul(ce,$e)|0,z=z+Math.imul(ce,qe)|0,U=U+Math.imul(ne,Ze)|0,$=$+Math.imul(ne,ot)|0,$=$+Math.imul(ie,Ze)|0,z=z+Math.imul(ie,ot)|0,U=U+Math.imul(X,vt)|0,$=$+Math.imul(X,Gt)|0,$=$+Math.imul(te,vt)|0,z=z+Math.imul(te,Gt)|0,U=U+Math.imul(K,rt)|0,$=$+Math.imul(K,Pt)|0,$=$+Math.imul(Q,rt)|0,z=z+Math.imul(Q,Pt)|0;var dn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(dn>>>26)|0,dn&=67108863,U=Math.imul(Fe,ut),$=Math.imul(Fe,lt),$=$+Math.imul(Se,ut)|0,z=Math.imul(Se,lt),U=U+Math.imul(oe,sn)|0,$=$+Math.imul(oe,un)|0,$=$+Math.imul(ge,sn)|0,z=z+Math.imul(ge,un)|0,U=U+Math.imul(_e,dt)|0,$=$+Math.imul(_e,xt)|0,$=$+Math.imul(ue,dt)|0,z=z+Math.imul(ue,xt)|0,U=U+Math.imul(le,Kt)|0,$=$+Math.imul(le,rn)|0,$=$+Math.imul(pe,Kt)|0,z=z+Math.imul(pe,rn)|0,U=U+Math.imul(je,an)|0,$=$+Math.imul(je,on)|0,$=$+Math.imul(ye,an)|0,z=z+Math.imul(ye,on)|0,U=U+Math.imul(Me,$e)|0,$=$+Math.imul(Me,qe)|0,$=$+Math.imul(Be,$e)|0,z=z+Math.imul(Be,qe)|0,U=U+Math.imul(de,Ze)|0,$=$+Math.imul(de,ot)|0,$=$+Math.imul(ce,Ze)|0,z=z+Math.imul(ce,ot)|0,U=U+Math.imul(ne,vt)|0,$=$+Math.imul(ne,Gt)|0,$=$+Math.imul(ie,vt)|0,z=z+Math.imul(ie,Gt)|0,U=U+Math.imul(X,rt)|0,$=$+Math.imul(X,Pt)|0,$=$+Math.imul(te,rt)|0,z=z+Math.imul(te,Pt)|0;var tn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(tn>>>26)|0,tn&=67108863,U=Math.imul(Fe,sn),$=Math.imul(Fe,un),$=$+Math.imul(Se,sn)|0,z=Math.imul(Se,un),U=U+Math.imul(oe,dt)|0,$=$+Math.imul(oe,xt)|0,$=$+Math.imul(ge,dt)|0,z=z+Math.imul(ge,xt)|0,U=U+Math.imul(_e,Kt)|0,$=$+Math.imul(_e,rn)|0,$=$+Math.imul(ue,Kt)|0,z=z+Math.imul(ue,rn)|0,U=U+Math.imul(le,an)|0,$=$+Math.imul(le,on)|0,$=$+Math.imul(pe,an)|0,z=z+Math.imul(pe,on)|0,U=U+Math.imul(je,$e)|0,$=$+Math.imul(je,qe)|0,$=$+Math.imul(ye,$e)|0,z=z+Math.imul(ye,qe)|0,U=U+Math.imul(Me,Ze)|0,$=$+Math.imul(Me,ot)|0,$=$+Math.imul(Be,Ze)|0,z=z+Math.imul(Be,ot)|0,U=U+Math.imul(de,vt)|0,$=$+Math.imul(de,Gt)|0,$=$+Math.imul(ce,vt)|0,z=z+Math.imul(ce,Gt)|0,U=U+Math.imul(ne,rt)|0,$=$+Math.imul(ne,Pt)|0,$=$+Math.imul(ie,rt)|0,z=z+Math.imul(ie,Pt)|0;var vn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(vn>>>26)|0,vn&=67108863,U=Math.imul(Fe,dt),$=Math.imul(Fe,xt),$=$+Math.imul(Se,dt)|0,z=Math.imul(Se,xt),U=U+Math.imul(oe,Kt)|0,$=$+Math.imul(oe,rn)|0,$=$+Math.imul(ge,Kt)|0,z=z+Math.imul(ge,rn)|0,U=U+Math.imul(_e,an)|0,$=$+Math.imul(_e,on)|0,$=$+Math.imul(ue,an)|0,z=z+Math.imul(ue,on)|0,U=U+Math.imul(le,$e)|0,$=$+Math.imul(le,qe)|0,$=$+Math.imul(pe,$e)|0,z=z+Math.imul(pe,qe)|0,U=U+Math.imul(je,Ze)|0,$=$+Math.imul(je,ot)|0,$=$+Math.imul(ye,Ze)|0,z=z+Math.imul(ye,ot)|0,U=U+Math.imul(Me,vt)|0,$=$+Math.imul(Me,Gt)|0,$=$+Math.imul(Be,vt)|0,z=z+Math.imul(Be,Gt)|0,U=U+Math.imul(de,rt)|0,$=$+Math.imul(de,Pt)|0,$=$+Math.imul(ce,rt)|0,z=z+Math.imul(ce,Pt)|0;var kn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(kn>>>26)|0,kn&=67108863,U=Math.imul(Fe,Kt),$=Math.imul(Fe,rn),$=$+Math.imul(Se,Kt)|0,z=Math.imul(Se,rn),U=U+Math.imul(oe,an)|0,$=$+Math.imul(oe,on)|0,$=$+Math.imul(ge,an)|0,z=z+Math.imul(ge,on)|0,U=U+Math.imul(_e,$e)|0,$=$+Math.imul(_e,qe)|0,$=$+Math.imul(ue,$e)|0,z=z+Math.imul(ue,qe)|0,U=U+Math.imul(le,Ze)|0,$=$+Math.imul(le,ot)|0,$=$+Math.imul(pe,Ze)|0,z=z+Math.imul(pe,ot)|0,U=U+Math.imul(je,vt)|0,$=$+Math.imul(je,Gt)|0,$=$+Math.imul(ye,vt)|0,z=z+Math.imul(ye,Gt)|0,U=U+Math.imul(Me,rt)|0,$=$+Math.imul(Me,Pt)|0,$=$+Math.imul(Be,rt)|0,z=z+Math.imul(Be,Pt)|0;var Mn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,U=Math.imul(Fe,an),$=Math.imul(Fe,on),$=$+Math.imul(Se,an)|0,z=Math.imul(Se,on),U=U+Math.imul(oe,$e)|0,$=$+Math.imul(oe,qe)|0,$=$+Math.imul(ge,$e)|0,z=z+Math.imul(ge,qe)|0,U=U+Math.imul(_e,Ze)|0,$=$+Math.imul(_e,ot)|0,$=$+Math.imul(ue,Ze)|0,z=z+Math.imul(ue,ot)|0,U=U+Math.imul(le,vt)|0,$=$+Math.imul(le,Gt)|0,$=$+Math.imul(pe,vt)|0,z=z+Math.imul(pe,Gt)|0,U=U+Math.imul(je,rt)|0,$=$+Math.imul(je,Pt)|0,$=$+Math.imul(ye,rt)|0,z=z+Math.imul(ye,Pt)|0;var Nr=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,U=Math.imul(Fe,$e),$=Math.imul(Fe,qe),$=$+Math.imul(Se,$e)|0,z=Math.imul(Se,qe),U=U+Math.imul(oe,Ze)|0,$=$+Math.imul(oe,ot)|0,$=$+Math.imul(ge,Ze)|0,z=z+Math.imul(ge,ot)|0,U=U+Math.imul(_e,vt)|0,$=$+Math.imul(_e,Gt)|0,$=$+Math.imul(ue,vt)|0,z=z+Math.imul(ue,Gt)|0,U=U+Math.imul(le,rt)|0,$=$+Math.imul(le,Pt)|0,$=$+Math.imul(pe,rt)|0,z=z+Math.imul(pe,Pt)|0;var na=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(na>>>26)|0,na&=67108863,U=Math.imul(Fe,Ze),$=Math.imul(Fe,ot),$=$+Math.imul(Se,Ze)|0,z=Math.imul(Se,ot),U=U+Math.imul(oe,vt)|0,$=$+Math.imul(oe,Gt)|0,$=$+Math.imul(ge,vt)|0,z=z+Math.imul(ge,Gt)|0,U=U+Math.imul(_e,rt)|0,$=$+Math.imul(_e,Pt)|0,$=$+Math.imul(ue,rt)|0,z=z+Math.imul(ue,Pt)|0;var Ar=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,U=Math.imul(Fe,vt),$=Math.imul(Fe,Gt),$=$+Math.imul(Se,vt)|0,z=Math.imul(Se,Gt),U=U+Math.imul(oe,rt)|0,$=$+Math.imul(oe,Pt)|0,$=$+Math.imul(ge,rt)|0,z=z+Math.imul(ge,Pt)|0;var qi=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(qi>>>26)|0,qi&=67108863,U=Math.imul(Fe,rt),$=Math.imul(Fe,Pt),$=$+Math.imul(Se,rt)|0,z=Math.imul(Se,Pt);var Ge=(H+U|0)+(($&8191)<<13)|0;return H=(z+($>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,j[0]=Yt,j[1]=Un,j[2]=jn,j[3]=br,j[4]=si,j[5]=Qi,j[6]=st,j[7]=wt,j[8]=Bt,j[9]=dn,j[10]=tn,j[11]=vn,j[12]=kn,j[13]=Mn,j[14]=Nr,j[15]=na,j[16]=Ar,j[17]=qi,j[18]=Ge,H!==0&&(j[19]=H,M.length++),M};Math.imul||(y=A);function S(I,b,T){T.negative=b.negative^I.negative,T.length=I.length+b.length;for(var M=0,D=0,B=0;B<T.length-1;B++){var j=D;D=0;for(var H=M&67108863,U=Math.min(B,b.length-1),$=Math.max(0,B-I.length+1);$<=U;$++){var z=B-$,Z=I.words[z]|0,K=b.words[$]|0,Q=Z*K,ee=Q&67108863;j=j+(Q/67108864|0)|0,ee=ee+H|0,H=ee&67108863,j=j+(ee>>>26)|0,D+=j>>>26,j&=67108863}T.words[B]=H,M=j,j=D}return M!==0?T.words[B]=M:T.length--,T._strip()}function x(I,b,T){return S(I,b,T)}o.prototype.mulTo=function(b,T){var M,D=this.length+b.length;return this.length===10&&b.length===10?M=y(this,b,T):D<63?M=A(this,b,T):D<1024?M=S(this,b,T):M=x(this,b,T),M},o.prototype.mul=function(b){var T=new o(null);return T.words=new Array(this.length+b.length),this.mulTo(b,T)},o.prototype.mulf=function(b){var T=new o(null);return T.words=new Array(this.length+b.length),x(this,b,T)},o.prototype.imul=function(b){return this.clone().mulTo(b,this)},o.prototype.imuln=function(b){var T=b<0;T&&(b=-b),r(typeof b=="number"),r(b<67108864);for(var M=0,D=0;D<this.length;D++){var B=(this.words[D]|0)*b,j=(B&67108863)+(M&67108863);M>>=26,M+=B/67108864|0,M+=j>>>26,this.words[D]=j&67108863}return M!==0&&(this.words[D]=M,this.length++),T?this.ineg():this},o.prototype.muln=function(b){return this.clone().imuln(b)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(b){var T=v(b);if(T.length===0)return new o(1);for(var M=this,D=0;D<T.length&&T[D]===0;D++,M=M.sqr());if(++D<T.length)for(var B=M.sqr();D<T.length;D++,B=B.sqr())T[D]!==0&&(M=M.mul(B));return M},o.prototype.iushln=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26,D=67108863>>>26-T<<26-T,B;if(T!==0){var j=0;for(B=0;B<this.length;B++){var H=this.words[B]&D,U=(this.words[B]|0)-H<<T;this.words[B]=U|j,j=H>>>26-T}j&&(this.words[B]=j,this.length++)}if(M!==0){for(B=this.length-1;B>=0;B--)this.words[B+M]=this.words[B];for(B=0;B<M;B++)this.words[B]=0;this.length+=M}return this._strip()},o.prototype.ishln=function(b){return r(this.negative===0),this.iushln(b)},o.prototype.iushrn=function(b,T,M){r(typeof b=="number"&&b>=0);var D;T?D=(T-T%26)/26:D=0;var B=b%26,j=Math.min((b-B)/26,this.length),H=67108863^67108863>>>B<<B,U=M;if(D-=j,D=Math.max(0,D),U){for(var $=0;$<j;$++)U.words[$]=this.words[$];U.length=j}if(j!==0)if(this.length>j)for(this.length-=j,$=0;$<this.length;$++)this.words[$]=this.words[$+j];else this.words[0]=0,this.length=1;var z=0;for($=this.length-1;$>=0&&(z!==0||$>=D);$--){var Z=this.words[$]|0;this.words[$]=z<<26-B|Z>>>B,z=Z&H}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(b,T,M){return r(this.negative===0),this.iushrn(b,T,M)},o.prototype.shln=function(b){return this.clone().ishln(b)},o.prototype.ushln=function(b){return this.clone().iushln(b)},o.prototype.shrn=function(b){return this.clone().ishrn(b)},o.prototype.ushrn=function(b){return this.clone().iushrn(b)},o.prototype.testn=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26,D=1<<T;if(this.length<=M)return!1;var B=this.words[M];return!!(B&D)},o.prototype.imaskn=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(T!==0&&M++,this.length=Math.min(M,this.length),T!==0){var D=67108863^67108863>>>T<<T;this.words[this.length-1]&=D}return this._strip()},o.prototype.maskn=function(b){return this.clone().imaskn(b)},o.prototype.iaddn=function(b){return r(typeof b=="number"),r(b<67108864),b<0?this.isubn(-b):this.negative!==0?this.length===1&&(this.words[0]|0)<=b?(this.words[0]=b-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(b),this.negative=1,this):this._iaddn(b)},o.prototype._iaddn=function(b){this.words[0]+=b;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},o.prototype.isubn=function(b){if(r(typeof b=="number"),r(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this._strip()},o.prototype.addn=function(b){return this.clone().iaddn(b)},o.prototype.subn=function(b){return this.clone().isubn(b)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(b,T,M){var D=b.length+M,B;this._expand(D);var j,H=0;for(B=0;B<b.length;B++){j=(this.words[B+M]|0)+H;var U=(b.words[B]|0)*T;j-=U&67108863,H=(j>>26)-(U/67108864|0),this.words[B+M]=j&67108863}for(;B<this.length-M;B++)j=(this.words[B+M]|0)+H,H=j>>26,this.words[B+M]=j&67108863;if(H===0)return this._strip();for(r(H===-1),H=0,B=0;B<this.length;B++)j=-(this.words[B]|0)+H,H=j>>26,this.words[B]=j&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(b,T){var M=this.length-b.length,D=this.clone(),B=b,j=B.words[B.length-1]|0,H=this._countBits(j);M=26-H,M!==0&&(B=B.ushln(M),D.iushln(M),j=B.words[B.length-1]|0);var U=D.length-B.length,$;if(T!=="mod"){$=new o(null),$.length=U+1,$.words=new Array($.length);for(var z=0;z<$.length;z++)$.words[z]=0}var Z=D.clone()._ishlnsubmul(B,1,U);Z.negative===0&&(D=Z,$&&($.words[U]=1));for(var K=U-1;K>=0;K--){var Q=(D.words[B.length+K]|0)*67108864+(D.words[B.length+K-1]|0);for(Q=Math.min(Q/j|0,67108863),D._ishlnsubmul(B,Q,K);D.negative!==0;)Q--,D.negative=0,D._ishlnsubmul(B,1,K),D.isZero()||(D.negative^=1);$&&($.words[K]=Q)}return $&&$._strip(),D._strip(),T!=="div"&&M!==0&&D.iushrn(M),{div:$||null,mod:D}},o.prototype.divmod=function(b,T,M){if(r(!b.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var D,B,j;return this.negative!==0&&b.negative===0?(j=this.neg().divmod(b,T),T!=="mod"&&(D=j.div.neg()),T!=="div"&&(B=j.mod.neg(),M&&B.negative!==0&&B.iadd(b)),{div:D,mod:B}):this.negative===0&&b.negative!==0?(j=this.divmod(b.neg(),T),T!=="mod"&&(D=j.div.neg()),{div:D,mod:j.mod}):this.negative&b.negative?(j=this.neg().divmod(b.neg(),T),T!=="div"&&(B=j.mod.neg(),M&&B.negative!==0&&B.isub(b)),{div:j.div,mod:B}):b.length>this.length||this.cmp(b)<0?{div:new o(0),mod:this}:b.length===1?T==="div"?{div:this.divn(b.words[0]),mod:null}:T==="mod"?{div:null,mod:new o(this.modrn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new o(this.modrn(b.words[0]))}:this._wordDiv(b,T)},o.prototype.div=function(b){return this.divmod(b,"div",!1).div},o.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},o.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},o.prototype.divRound=function(b){var T=this.divmod(b);if(T.mod.isZero())return T.div;var M=T.div.negative!==0?T.mod.isub(b):T.mod,D=b.ushrn(1),B=b.andln(1),j=M.cmp(D);return j<0||B===1&&j===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},o.prototype.modrn=function(b){var T=b<0;T&&(b=-b),r(b<=67108863);for(var M=(1<<26)%b,D=0,B=this.length-1;B>=0;B--)D=(M*D+(this.words[B]|0))%b;return T?-D:D},o.prototype.modn=function(b){return this.modrn(b)},o.prototype.idivn=function(b){var T=b<0;T&&(b=-b),r(b<=67108863);for(var M=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+M*67108864;this.words[D]=B/b|0,M=B%b}return this._strip(),T?this.ineg():this},o.prototype.divn=function(b){return this.clone().idivn(b)},o.prototype.egcd=function(b){r(b.negative===0),r(!b.isZero());var T=this,M=b.clone();T.negative!==0?T=T.umod(b):T=T.clone();for(var D=new o(1),B=new o(0),j=new o(0),H=new o(1),U=0;T.isEven()&&M.isEven();)T.iushrn(1),M.iushrn(1),++U;for(var $=M.clone(),z=T.clone();!T.isZero();){for(var Z=0,K=1;!(T.words[0]&K)&&Z<26;++Z,K<<=1);if(Z>0)for(T.iushrn(Z);Z-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd($),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var Q=0,ee=1;!(M.words[0]&ee)&&Q<26;++Q,ee<<=1);if(Q>0)for(M.iushrn(Q);Q-- >0;)(j.isOdd()||H.isOdd())&&(j.iadd($),H.isub(z)),j.iushrn(1),H.iushrn(1);T.cmp(M)>=0?(T.isub(M),D.isub(j),B.isub(H)):(M.isub(T),j.isub(D),H.isub(B))}return{a:j,b:H,gcd:M.iushln(U)}},o.prototype._invmp=function(b){r(b.negative===0),r(!b.isZero());var T=this,M=b.clone();T.negative!==0?T=T.umod(b):T=T.clone();for(var D=new o(1),B=new o(0),j=M.clone();T.cmpn(1)>0&&M.cmpn(1)>0;){for(var H=0,U=1;!(T.words[0]&U)&&H<26;++H,U<<=1);if(H>0)for(T.iushrn(H);H-- >0;)D.isOdd()&&D.iadd(j),D.iushrn(1);for(var $=0,z=1;!(M.words[0]&z)&&$<26;++$,z<<=1);if($>0)for(M.iushrn($);$-- >0;)B.isOdd()&&B.iadd(j),B.iushrn(1);T.cmp(M)>=0?(T.isub(M),D.isub(B)):(M.isub(T),B.isub(D))}var Z;return T.cmpn(1)===0?Z=D:Z=B,Z.cmpn(0)<0&&Z.iadd(b),Z},o.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var T=this.clone(),M=b.clone();T.negative=0,M.negative=0;for(var D=0;T.isEven()&&M.isEven();D++)T.iushrn(1),M.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;M.isEven();)M.iushrn(1);var B=T.cmp(M);if(B<0){var j=T;T=M,M=j}else if(B===0||M.cmpn(1)===0)break;T.isub(M)}while(!0);return M.iushln(D)},o.prototype.invm=function(b){return this.egcd(b).a.umod(b)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(b){return this.words[0]&b},o.prototype.bincn=function(b){r(typeof b=="number");var T=b%26,M=(b-T)/26,D=1<<T;if(this.length<=M)return this._expand(M+1),this.words[M]|=D,this;for(var B=D,j=M;B!==0&&j<this.length;j++){var H=this.words[j]|0;H+=B,B=H>>>26,H&=67108863,this.words[j]=H}return B!==0&&(this.words[j]=B,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(b){var T=b<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this._strip();var M;if(this.length>1)M=1;else{T&&(b=-b),r(b<=67108863,"Number is too big");var D=this.words[0]|0;M=D===b?0:D<b?-1:1}return this.negative!==0?-M|0:M},o.prototype.cmp=function(b){if(this.negative!==0&&b.negative===0)return-1;if(this.negative===0&&b.negative!==0)return 1;var T=this.ucmp(b);return this.negative!==0?-T|0:T},o.prototype.ucmp=function(b){if(this.length>b.length)return 1;if(this.length<b.length)return-1;for(var T=0,M=this.length-1;M>=0;M--){var D=this.words[M]|0,B=b.words[M]|0;if(D!==B){D<B?T=-1:D>B&&(T=1);break}}return T},o.prototype.gtn=function(b){return this.cmpn(b)===1},o.prototype.gt=function(b){return this.cmp(b)===1},o.prototype.gten=function(b){return this.cmpn(b)>=0},o.prototype.gte=function(b){return this.cmp(b)>=0},o.prototype.ltn=function(b){return this.cmpn(b)===-1},o.prototype.lt=function(b){return this.cmp(b)===-1},o.prototype.lten=function(b){return this.cmpn(b)<=0},o.prototype.lte=function(b){return this.cmp(b)<=0},o.prototype.eqn=function(b){return this.cmpn(b)===0},o.prototype.eq=function(b){return this.cmp(b)===0},o.red=function(b){return new N(b)},o.prototype.toRed=function(b){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(b){return this.red=b,this},o.prototype.forceRed=function(b){return r(!this.red,"Already a number in reduction context"),this._forceRed(b)},o.prototype.redAdd=function(b){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},o.prototype.redIAdd=function(b){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},o.prototype.redSub=function(b){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},o.prototype.redISub=function(b){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},o.prototype.redShl=function(b){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},o.prototype.redMul=function(b){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},o.prototype.redIMul=function(b){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(b){return r(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var w={k256:null,p224:null,p192:null,p25519:null};function _(I,b){this.name=I,this.p=new o(b,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}_.prototype._tmp=function(){var b=new o(null);return b.words=new Array(Math.ceil(this.n/13)),b},_.prototype.ireduce=function(b){var T=b,M;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),M=T.bitLength();while(M>this.n);var D=M<this.n?-1:T.ucmp(this.p);return D===0?(T.words[0]=0,T.length=1):D>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},_.prototype.split=function(b,T){b.iushrn(this.n,0,T)},_.prototype.imulK=function(b){return b.imul(this.k)};function C(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(C,_),C.prototype.split=function(b,T){for(var M=4194303,D=Math.min(b.length,9),B=0;B<D;B++)T.words[B]=b.words[B];if(T.length=D,b.length<=9){b.words[0]=0,b.length=1;return}var j=b.words[9];for(T.words[T.length++]=j&M,B=10;B<b.length;B++){var H=b.words[B]|0;b.words[B-10]=(H&M)<<4|j>>>22,j=H}j>>>=22,b.words[B-10]=j,j===0&&b.length>10?b.length-=10:b.length-=9},C.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var T=0,M=0;M<b.length;M++){var D=b.words[M]|0;T+=D*977,b.words[M]=T&67108863,T=D*64+(T/67108864|0)}return b.words[b.length-1]===0&&(b.length--,b.words[b.length-1]===0&&b.length--),b};function R(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(R,_);function k(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(k,_);function P(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(P,_),P.prototype.imulK=function(b){for(var T=0,M=0;M<b.length;M++){var D=(b.words[M]|0)*19+T,B=D&67108863;D>>>=26,b.words[M]=B,T=D}return T!==0&&(b.words[b.length++]=T),b},o._prime=function(b){if(w[b])return w[b];var T;if(b==="k256")T=new C;else if(b==="p224")T=new R;else if(b==="p192")T=new k;else if(b==="p25519")T=new P;else throw new Error("Unknown prime "+b);return w[b]=T,T};function N(I){if(typeof I=="string"){var b=o._prime(I);this.m=b.p,this.prime=b}else r(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}N.prototype._verify1=function(b){r(b.negative===0,"red works only with positives"),r(b.red,"red works only with red numbers")},N.prototype._verify2=function(b,T){r((b.negative|T.negative)===0,"red works only with positives"),r(b.red&&b.red===T.red,"red works only with red numbers")},N.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):(d(b,b.umod(this.m)._forceRed(this)),b)},N.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},N.prototype.add=function(b,T){this._verify2(b,T);var M=b.add(T);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},N.prototype.iadd=function(b,T){this._verify2(b,T);var M=b.iadd(T);return M.cmp(this.m)>=0&&M.isub(this.m),M},N.prototype.sub=function(b,T){this._verify2(b,T);var M=b.sub(T);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},N.prototype.isub=function(b,T){this._verify2(b,T);var M=b.isub(T);return M.cmpn(0)<0&&M.iadd(this.m),M},N.prototype.shl=function(b,T){return this._verify1(b),this.imod(b.ushln(T))},N.prototype.imul=function(b,T){return this._verify2(b,T),this.imod(b.imul(T))},N.prototype.mul=function(b,T){return this._verify2(b,T),this.imod(b.mul(T))},N.prototype.isqr=function(b){return this.imul(b,b.clone())},N.prototype.sqr=function(b){return this.mul(b,b)},N.prototype.sqrt=function(b){if(b.isZero())return b.clone();var T=this.m.andln(3);if(r(T%2===1),T===3){var M=this.m.add(new o(1)).iushrn(2);return this.pow(b,M)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);r(!D.isZero());var j=new o(1).toRed(this),H=j.redNeg(),U=this.m.subn(1).iushrn(1),$=this.m.bitLength();for($=new o(2*$*$).toRed(this);this.pow($,U).cmp(H)!==0;)$.redIAdd(H);for(var z=this.pow($,D),Z=this.pow(b,D.addn(1).iushrn(1)),K=this.pow(b,D),Q=B;K.cmp(j)!==0;){for(var ee=K,X=0;ee.cmp(j)!==0;X++)ee=ee.redSqr();r(X<Q);var te=this.pow(z,new o(1).iushln(Q-X-1));Z=Z.redMul(te),z=te.redSqr(),K=K.redMul(z),Q=X}return Z},N.prototype.invm=function(b){var T=b._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},N.prototype.pow=function(b,T){if(T.isZero())return new o(1).toRed(this);if(T.cmpn(1)===0)return b.clone();var M=4,D=new Array(1<<M);D[0]=new o(1).toRed(this),D[1]=b;for(var B=2;B<D.length;B++)D[B]=this.mul(D[B-1],b);var j=D[0],H=0,U=0,$=T.bitLength()%26;for($===0&&($=26),B=T.length-1;B>=0;B--){for(var z=T.words[B],Z=$-1;Z>=0;Z--){var K=z>>Z&1;if(j!==D[0]&&(j=this.sqr(j)),K===0&&H===0){U=0;continue}H<<=1,H|=K,U++,!(U!==M&&(B!==0||Z!==0))&&(j=this.mul(j,D[H]),U=0,H=0)}$=26}return j},N.prototype.convertTo=function(b){var T=b.umod(this.m);return T===b?T.clone():T},N.prototype.convertFrom=function(b){var T=b.clone();return T.red=null,T},o.mont=function(b){return new L(b)};function L(I){N.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(L,N),L.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},L.prototype.convertFrom=function(b){var T=this.imod(b.mul(this.rinv));return T.red=null,T},L.prototype.imul=function(b,T){if(b.isZero()||T.isZero())return b.words[0]=0,b.length=1,b;var M=b.imul(T),D=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=M.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},L.prototype.mul=function(b,T){if(b.isZero()||T.isZero())return new o(0)._forceRed(this);var M=b.mul(T),D=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=M.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},L.prototype.invm=function(b){var T=this.imod(b._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(t,en)})(Det);var wKr=Det.exports;const Qo=Li(wKr);var Nen={},el={},kae=Ien;function Ien(t,e){if(!t)throw new Error(e||"Assertion failed")}Ien.equal=function(e,n,r){if(e!=n)throw new Error(r||"Assertion failed: "+e+" != "+n)};var dUe={exports:{}};typeof Object.create=="function"?dUe.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:dUe.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var dE=dUe.exports,_Kr=kae,TKr=dE;el.inherits=TKr;function CKr(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function kKr(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),a=0;a<t.length;a+=2)n.push(parseInt(t[a]+t[a+1],16))}else for(var r=0,a=0;a<t.length;a++){var o=t.charCodeAt(a);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=o&63|128):CKr(t,a)?(o=65536+((o&1023)<<10)+(t.charCodeAt(++a)&1023),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=o&63|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=o&63|128)}else for(a=0;a<t.length;a++)n[a]=t[a]|0;return n}el.toArray=kKr;function RKr(t){for(var e="",n=0;n<t.length;n++)e+=Oen(t[n].toString(16));return e}el.toHex=RKr;function Pen(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}el.htonl=Pen;function MKr(t,e){for(var n="",r=0;r<t.length;r++){var a=t[r];e==="little"&&(a=Pen(a)),n+=Len(a.toString(16))}return n}el.toHex32=MKr;function Oen(t){return t.length===1?"0"+t:t}el.zero2=Oen;function Len(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}el.zero8=Len;function NKr(t,e,n,r){var a=n-e;_Kr(a%4===0);for(var o=new Array(a/4),s=0,l=e;s<o.length;s++,l+=4){var c;r==="big"?c=t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:c=t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],o[s]=c>>>0}return o}el.join32=NKr;function IKr(t,e){for(var n=new Array(t.length*4),r=0,a=0;r<t.length;r++,a+=4){var o=t[r];e==="big"?(n[a]=o>>>24,n[a+1]=o>>>16&255,n[a+2]=o>>>8&255,n[a+3]=o&255):(n[a+3]=o>>>24,n[a+2]=o>>>16&255,n[a+1]=o>>>8&255,n[a]=o&255)}return n}el.split32=IKr;function PKr(t,e){return t>>>e|t<<32-e}el.rotr32=PKr;function OKr(t,e){return t<<e|t>>>32-e}el.rotl32=OKr;function LKr(t,e){return t+e>>>0}el.sum32=LKr;function BKr(t,e,n){return t+e+n>>>0}el.sum32_3=BKr;function DKr(t,e,n,r){return t+e+n+r>>>0}el.sum32_4=DKr;function $Kr(t,e,n,r,a){return t+e+n+r+a>>>0}el.sum32_5=$Kr;function FKr(t,e,n,r){var a=t[e],o=t[e+1],s=r+o>>>0,l=(s<r?1:0)+n+a;t[e]=l>>>0,t[e+1]=s}el.sum64=FKr;function jKr(t,e,n,r){var a=e+r>>>0,o=(a<e?1:0)+t+n;return o>>>0}el.sum64_hi=jKr;function HKr(t,e,n,r){var a=e+r;return a>>>0}el.sum64_lo=HKr;function UKr(t,e,n,r,a,o,s,l){var c=0,u=e;u=u+r>>>0,c+=u<e?1:0,u=u+o>>>0,c+=u<o?1:0,u=u+l>>>0,c+=u<l?1:0;var d=t+n+a+s+c;return d>>>0}el.sum64_4_hi=UKr;function zKr(t,e,n,r,a,o,s,l){var c=e+r+o+l;return c>>>0}el.sum64_4_lo=zKr;function GKr(t,e,n,r,a,o,s,l,c,u){var d=0,h=e;h=h+r>>>0,d+=h<e?1:0,h=h+o>>>0,d+=h<o?1:0,h=h+l>>>0,d+=h<l?1:0,h=h+u>>>0,d+=h<u?1:0;var f=t+n+a+s+c+d;return f>>>0}el.sum64_5_hi=GKr;function VKr(t,e,n,r,a,o,s,l,c,u){var d=e+r+o+l+u;return d>>>0}el.sum64_5_lo=VKr;function KKr(t,e,n){var r=e<<32-n|t>>>n;return r>>>0}el.rotr64_hi=KKr;function WKr(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}el.rotr64_lo=WKr;function QKr(t,e,n){return t>>>n}el.shr64_hi=QKr;function qKr(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}el.shr64_lo=qKr;var wG={},Syt=el,YKr=kae;function nSe(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}wG.BlockHash=nSe;nSe.prototype.update=function(e,n){if(e=Syt.toArray(e,n),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=Syt.join32(e,0,e.length-r,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this};nSe.prototype.digest=function(e){return this.update(this._pad()),YKr(this.pending===null),this._digest(e)};nSe.prototype._pad=function(){var e=this.pendingTotal,n=this._delta8,r=n-(e+this.padLength)%n,a=new Array(r+this.padLength);a[0]=128;for(var o=1;o<r;o++)a[o]=0;if(e<<=3,this.endian==="big"){for(var s=8;s<this.padLength;s++)a[o++]=0;a[o++]=0,a[o++]=0,a[o++]=0,a[o++]=0,a[o++]=e>>>24&255,a[o++]=e>>>16&255,a[o++]=e>>>8&255,a[o++]=e&255}else for(a[o++]=e&255,a[o++]=e>>>8&255,a[o++]=e>>>16&255,a[o++]=e>>>24&255,a[o++]=0,a[o++]=0,a[o++]=0,a[o++]=0,s=8;s<this.padLength;s++)a[o++]=0;return a};var _G={},mC={},JKr=el,A2=JKr.rotr32;function ZKr(t,e,n,r){if(t===0)return Ben(e,n,r);if(t===1||t===3)return $en(e,n,r);if(t===2)return Den(e,n,r)}mC.ft_1=ZKr;function Ben(t,e,n){return t&e^~t&n}mC.ch32=Ben;function Den(t,e,n){return t&e^t&n^e&n}mC.maj32=Den;function $en(t,e,n){return t^e^n}mC.p32=$en;function XKr(t){return A2(t,2)^A2(t,13)^A2(t,22)}mC.s0_256=XKr;function eWr(t){return A2(t,6)^A2(t,11)^A2(t,25)}mC.s1_256=eWr;function tWr(t){return A2(t,7)^A2(t,18)^t>>>3}mC.g0_256=tWr;function nWr(t){return A2(t,17)^A2(t,19)^t>>>10}mC.g1_256=nWr;var SU=el,rWr=wG,iWr=mC,uPe=SU.rotl32,LQ=SU.sum32,aWr=SU.sum32_5,oWr=iWr.ft_1,Fen=rWr.BlockHash,sWr=[1518500249,1859775393,2400959708,3395469782];function q2(){if(!(this instanceof q2))return new q2;Fen.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}SU.inherits(q2,Fen);var lWr=q2;q2.blockSize=512;q2.outSize=160;q2.hmacStrength=80;q2.padLength=64;q2.prototype._update=function(e,n){for(var r=this.W,a=0;a<16;a++)r[a]=e[n+a];for(;a<r.length;a++)r[a]=uPe(r[a-3]^r[a-8]^r[a-14]^r[a-16],1);var o=this.h[0],s=this.h[1],l=this.h[2],c=this.h[3],u=this.h[4];for(a=0;a<r.length;a++){var d=~~(a/20),h=aWr(uPe(o,5),oWr(d,s,l,c),u,r[a],sWr[d]);u=c,c=l,l=uPe(s,30),s=o,o=h}this.h[0]=LQ(this.h[0],o),this.h[1]=LQ(this.h[1],s),this.h[2]=LQ(this.h[2],l),this.h[3]=LQ(this.h[3],c),this.h[4]=LQ(this.h[4],u)};q2.prototype._digest=function(e){return e==="hex"?SU.toHex32(this.h,"big"):SU.split32(this.h,"big")};var wU=el,cWr=wG,TG=mC,uWr=kae,iS=wU.sum32,dWr=wU.sum32_4,hWr=wU.sum32_5,fWr=TG.ch32,pWr=TG.maj32,mWr=TG.s0_256,gWr=TG.s1_256,vWr=TG.g0_256,AWr=TG.g1_256,jen=cWr.BlockHash,yWr=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Y2(){if(!(this instanceof Y2))return new Y2;jen.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=yWr,this.W=new Array(64)}wU.inherits(Y2,jen);var Hen=Y2;Y2.blockSize=512;Y2.outSize=256;Y2.hmacStrength=192;Y2.padLength=64;Y2.prototype._update=function(e,n){for(var r=this.W,a=0;a<16;a++)r[a]=e[n+a];for(;a<r.length;a++)r[a]=dWr(AWr(r[a-2]),r[a-7],vWr(r[a-15]),r[a-16]);var o=this.h[0],s=this.h[1],l=this.h[2],c=this.h[3],u=this.h[4],d=this.h[5],h=this.h[6],f=this.h[7];for(uWr(this.k.length===r.length),a=0;a<r.length;a++){var p=hWr(f,gWr(u),fWr(u,d,h),this.k[a],r[a]),m=iS(mWr(o),pWr(o,s,l));f=h,h=d,d=u,u=iS(c,p),c=l,l=s,s=o,o=iS(p,m)}this.h[0]=iS(this.h[0],o),this.h[1]=iS(this.h[1],s),this.h[2]=iS(this.h[2],l),this.h[3]=iS(this.h[3],c),this.h[4]=iS(this.h[4],u),this.h[5]=iS(this.h[5],d),this.h[6]=iS(this.h[6],h),this.h[7]=iS(this.h[7],f)};Y2.prototype._digest=function(e){return e==="hex"?wU.toHex32(this.h,"big"):wU.split32(this.h,"big")};var hUe=el,Uen=Hen;function SM(){if(!(this instanceof SM))return new SM;Uen.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}hUe.inherits(SM,Uen);var bWr=SM;SM.blockSize=512;SM.outSize=224;SM.hmacStrength=192;SM.padLength=64;SM.prototype._digest=function(e){return e==="hex"?hUe.toHex32(this.h.slice(0,7),"big"):hUe.split32(this.h.slice(0,7),"big")};var l1=el,xWr=wG,EWr=kae,y2=l1.rotr64_hi,b2=l1.rotr64_lo,zen=l1.shr64_hi,Gen=l1.shr64_lo,qN=l1.sum64,dPe=l1.sum64_hi,hPe=l1.sum64_lo,SWr=l1.sum64_4_hi,wWr=l1.sum64_4_lo,_Wr=l1.sum64_5_hi,TWr=l1.sum64_5_lo,Ven=xWr.BlockHash,CWr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Pw(){if(!(this instanceof Pw))return new Pw;Ven.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=CWr,this.W=new Array(160)}l1.inherits(Pw,Ven);var Ken=Pw;Pw.blockSize=1024;Pw.outSize=512;Pw.hmacStrength=192;Pw.padLength=128;Pw.prototype._prepareBlock=function(e,n){for(var r=this.W,a=0;a<32;a++)r[a]=e[n+a];for(;a<r.length;a+=2){var o=$Wr(r[a-4],r[a-3]),s=FWr(r[a-4],r[a-3]),l=r[a-14],c=r[a-13],u=BWr(r[a-30],r[a-29]),d=DWr(r[a-30],r[a-29]),h=r[a-32],f=r[a-31];r[a]=SWr(o,s,l,c,u,d,h,f),r[a+1]=wWr(o,s,l,c,u,d,h,f)}};Pw.prototype._update=function(e,n){this._prepareBlock(e,n);var r=this.W,a=this.h[0],o=this.h[1],s=this.h[2],l=this.h[3],c=this.h[4],u=this.h[5],d=this.h[6],h=this.h[7],f=this.h[8],p=this.h[9],m=this.h[10],g=this.h[11],v=this.h[12],A=this.h[13],y=this.h[14],S=this.h[15];EWr(this.k.length===r.length);for(var x=0;x<r.length;x+=2){var w=y,_=S,C=OWr(f,p),R=LWr(f,p),k=kWr(f,p,m,g,v),P=RWr(f,p,m,g,v,A),N=this.k[x],L=this.k[x+1],I=r[x],b=r[x+1],T=_Wr(w,_,C,R,k,P,N,L,I,b),M=TWr(w,_,C,R,k,P,N,L,I,b);w=IWr(a,o),_=PWr(a,o),C=MWr(a,o,s,l,c),R=NWr(a,o,s,l,c,u);var D=dPe(w,_,C,R),B=hPe(w,_,C,R);y=v,S=A,v=m,A=g,m=f,g=p,f=dPe(d,h,T,M),p=hPe(h,h,T,M),d=c,h=u,c=s,u=l,s=a,l=o,a=dPe(T,M,D,B),o=hPe(T,M,D,B)}qN(this.h,0,a,o),qN(this.h,2,s,l),qN(this.h,4,c,u),qN(this.h,6,d,h),qN(this.h,8,f,p),qN(this.h,10,m,g),qN(this.h,12,v,A),qN(this.h,14,y,S)};Pw.prototype._digest=function(e){return e==="hex"?l1.toHex32(this.h,"big"):l1.split32(this.h,"big")};function kWr(t,e,n,r,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function RWr(t,e,n,r,a,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function MWr(t,e,n,r,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function NWr(t,e,n,r,a,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function IWr(t,e){var n=y2(t,e,28),r=y2(e,t,2),a=y2(e,t,7),o=n^r^a;return o<0&&(o+=4294967296),o}function PWr(t,e){var n=b2(t,e,28),r=b2(e,t,2),a=b2(e,t,7),o=n^r^a;return o<0&&(o+=4294967296),o}function OWr(t,e){var n=y2(t,e,14),r=y2(t,e,18),a=y2(e,t,9),o=n^r^a;return o<0&&(o+=4294967296),o}function LWr(t,e){var n=b2(t,e,14),r=b2(t,e,18),a=b2(e,t,9),o=n^r^a;return o<0&&(o+=4294967296),o}function BWr(t,e){var n=y2(t,e,1),r=y2(t,e,8),a=zen(t,e,7),o=n^r^a;return o<0&&(o+=4294967296),o}function DWr(t,e){var n=b2(t,e,1),r=b2(t,e,8),a=Gen(t,e,7),o=n^r^a;return o<0&&(o+=4294967296),o}function $Wr(t,e){var n=y2(t,e,19),r=y2(e,t,29),a=zen(t,e,6),o=n^r^a;return o<0&&(o+=4294967296),o}function FWr(t,e){var n=b2(t,e,19),r=b2(e,t,29),a=Gen(t,e,6),o=n^r^a;return o<0&&(o+=4294967296),o}var fUe=el,Wen=Ken;function wM(){if(!(this instanceof wM))return new wM;Wen.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}fUe.inherits(wM,Wen);var jWr=wM;wM.blockSize=1024;wM.outSize=384;wM.hmacStrength=192;wM.padLength=128;wM.prototype._digest=function(e){return e==="hex"?fUe.toHex32(this.h.slice(0,12),"big"):fUe.split32(this.h.slice(0,12),"big")};_G.sha1=lWr;_G.sha224=bWr;_G.sha256=Hen;_G.sha384=jWr;_G.sha512=Ken;var Qen={},N6=el,HWr=wG,Tce=N6.rotl32,wyt=N6.sum32,BQ=N6.sum32_3,_yt=N6.sum32_4,qen=HWr.BlockHash;function J2(){if(!(this instanceof J2))return new J2;qen.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}N6.inherits(J2,qen);Qen.ripemd160=J2;J2.blockSize=512;J2.outSize=160;J2.hmacStrength=192;J2.padLength=64;J2.prototype._update=function(e,n){for(var r=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],l=this.h[4],c=r,u=a,d=o,h=s,f=l,p=0;p<80;p++){var m=wyt(Tce(_yt(r,Tyt(p,a,o,s),e[GWr[p]+n],UWr(p)),KWr[p]),l);r=l,l=s,s=Tce(o,10),o=a,a=m,m=wyt(Tce(_yt(c,Tyt(79-p,u,d,h),e[VWr[p]+n],zWr(p)),WWr[p]),f),c=f,f=h,h=Tce(d,10),d=u,u=m}m=BQ(this.h[1],o,h),this.h[1]=BQ(this.h[2],s,f),this.h[2]=BQ(this.h[3],l,c),this.h[3]=BQ(this.h[4],r,u),this.h[4]=BQ(this.h[0],a,d),this.h[0]=m};J2.prototype._digest=function(e){return e==="hex"?N6.toHex32(this.h,"little"):N6.split32(this.h,"little")};function Tyt(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function UWr(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function zWr(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var GWr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],VWr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],KWr=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],WWr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],QWr=el,qWr=kae;function _U(t,e,n){if(!(this instanceof _U))return new _U(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(QWr.toArray(e,n))}var YWr=_U;_U.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),qWr(e.length<=this.blockSize);for(var n=e.length;n<this.blockSize;n++)e.push(0);for(n=0;n<e.length;n++)e[n]^=54;for(this.inner=new this.Hash().update(e),n=0;n<e.length;n++)e[n]^=106;this.outer=new this.Hash().update(e)};_U.prototype.update=function(e,n){return this.inner.update(e,n),this};_U.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};(function(t){var e=t;e.utils=el,e.common=wG,e.sha=_G,e.ripemd=Qen,e.hmac=YWr,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160})(Nen);const hT=Li(Nen);function CG(t,e,n){return n={path:e,exports:{},require:function(r,a){return JWr(r,a??n.path)}},t(n,n.exports),n.exports}function JWr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var $et=Yen;function Yen(t,e){if(!t)throw new Error(e||"Assertion failed")}Yen.equal=function(e,n,r){if(e!=n)throw new Error(r||"Assertion failed: "+e+" != "+n)};var nw=CG(function(t,e){var n=e;function r(s,l){if(Array.isArray(s))return s.slice();if(!s)return[];var c=[];if(typeof s!="string"){for(var u=0;u<s.length;u++)c[u]=s[u]|0;return c}if(l==="hex"){s=s.replace(/[^a-z0-9]+/ig,""),s.length%2!==0&&(s="0"+s);for(var u=0;u<s.length;u+=2)c.push(parseInt(s[u]+s[u+1],16))}else for(var u=0;u<s.length;u++){var d=s.charCodeAt(u),h=d>>8,f=d&255;h?c.push(h,f):c.push(f)}return c}n.toArray=r;function a(s){return s.length===1?"0"+s:s}n.zero2=a;function o(s){for(var l="",c=0;c<s.length;c++)l+=a(s[c].toString(16));return l}n.toHex=o,n.encode=function(l,c){return c==="hex"?o(l):l}}),ab=CG(function(t,e){var n=e;n.assert=$et,n.toArray=nw.toArray,n.zero2=nw.zero2,n.toHex=nw.toHex,n.encode=nw.encode;function r(c,u,d){var h=new Array(Math.max(c.bitLength(),d)+1);h.fill(0);for(var f=1<<u+1,p=c.clone(),m=0;m<h.length;m++){var g,v=p.andln(f-1);p.isOdd()?(v>(f>>1)-1?g=(f>>1)-v:g=v,p.isubn(g)):g=0,h[m]=g,p.iushrn(1)}return h}n.getNAF=r;function a(c,u){var d=[[],[]];c=c.clone(),u=u.clone();for(var h=0,f=0,p;c.cmpn(-h)>0||u.cmpn(-f)>0;){var m=c.andln(3)+h&3,g=u.andln(3)+f&3;m===3&&(m=-1),g===3&&(g=-1);var v;m&1?(p=c.andln(7)+h&7,(p===3||p===5)&&g===2?v=-m:v=m):v=0,d[0].push(v);var A;g&1?(p=u.andln(7)+f&7,(p===3||p===5)&&m===2?A=-g:A=g):A=0,d[1].push(A),2*h===v+1&&(h=1-h),2*f===A+1&&(f=1-f),c.iushrn(1),u.iushrn(1)}return d}n.getJSF=a;function o(c,u,d){var h="_"+u;c.prototype[u]=function(){return this[h]!==void 0?this[h]:this[h]=d.call(this)}}n.cachedProperty=o;function s(c){return typeof c=="string"?n.toArray(c,"hex"):c}n.parseBytes=s;function l(c){return new Qo(c,"hex","le")}n.intFromLE=l}),q0e=ab.getNAF,ZWr=ab.getJSF,Y0e=ab.assert;function lO(t,e){this.type=t,this.p=new Qo(e.p,16),this.red=e.prime?Qo.red(e.prime):Qo.mont(this.p),this.zero=new Qo(0).toRed(this.red),this.one=new Qo(1).toRed(this.red),this.two=new Qo(2).toRed(this.red),this.n=e.n&&new Qo(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var W8=lO;lO.prototype.point=function(){throw new Error("Not implemented")};lO.prototype.validate=function(){throw new Error("Not implemented")};lO.prototype._fixedNafMul=function(e,n){Y0e(e.precomputed);var r=e._getDoubles(),a=q0e(n,1,this._bitLength),o=(1<<r.step+1)-(r.step%2===0?2:1);o/=3;var s=[],l,c;for(l=0;l<a.length;l+=r.step){c=0;for(var u=l+r.step-1;u>=l;u--)c=(c<<1)+a[u];s.push(c)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=o;f>0;f--){for(l=0;l<s.length;l++)c=s[l],c===f?h=h.mixedAdd(r.points[l]):c===-f&&(h=h.mixedAdd(r.points[l].neg()));d=d.add(h)}return d.toP()};lO.prototype._wnafMul=function(e,n){var r=4,a=e._getNAFPoints(r);r=a.wnd;for(var o=a.points,s=q0e(n,r,this._bitLength),l=this.jpoint(null,null,null),c=s.length-1;c>=0;c--){for(var u=0;c>=0&&s[c]===0;c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var d=s[c];Y0e(d!==0),e.type==="affine"?d>0?l=l.mixedAdd(o[d-1>>1]):l=l.mixedAdd(o[-d-1>>1].neg()):d>0?l=l.add(o[d-1>>1]):l=l.add(o[-d-1>>1].neg())}return e.type==="affine"?l.toP():l};lO.prototype._wnafMulAdd=function(e,n,r,a,o){var s=this._wnafT1,l=this._wnafT2,c=this._wnafT3,u=0,d,h,f;for(d=0;d<a;d++){f=n[d];var p=f._getNAFPoints(e);s[d]=p.wnd,l[d]=p.points}for(d=a-1;d>=1;d-=2){var m=d-1,g=d;if(s[m]!==1||s[g]!==1){c[m]=q0e(r[m],s[m],this._bitLength),c[g]=q0e(r[g],s[g],this._bitLength),u=Math.max(c[m].length,u),u=Math.max(c[g].length,u);continue}var v=[n[m],null,null,n[g]];n[m].y.cmp(n[g].y)===0?(v[1]=n[m].add(n[g]),v[2]=n[m].toJ().mixedAdd(n[g].neg())):n[m].y.cmp(n[g].y.redNeg())===0?(v[1]=n[m].toJ().mixedAdd(n[g]),v[2]=n[m].add(n[g].neg())):(v[1]=n[m].toJ().mixedAdd(n[g]),v[2]=n[m].toJ().mixedAdd(n[g].neg()));var A=[-3,-1,-5,-7,0,7,5,1,3],y=ZWr(r[m],r[g]);for(u=Math.max(y[0].length,u),c[m]=new Array(u),c[g]=new Array(u),h=0;h<u;h++){var S=y[0][h]|0,x=y[1][h]|0;c[m][h]=A[(S+1)*3+(x+1)],c[g][h]=0,l[m]=v}}var w=this.jpoint(null,null,null),_=this._wnafT4;for(d=u;d>=0;d--){for(var C=0;d>=0;){var R=!0;for(h=0;h<a;h++)_[h]=c[h][d]|0,_[h]!==0&&(R=!1);if(!R)break;C++,d--}if(d>=0&&C++,w=w.dblp(C),d<0)break;for(h=0;h<a;h++){var k=_[h];k!==0&&(k>0?f=l[h][k-1>>1]:k<0&&(f=l[h][-k-1>>1].neg()),f.type==="affine"?w=w.mixedAdd(f):w=w.add(f))}}for(d=0;d<a;d++)l[d]=null;return o?w:w.toP()};function hE(t,e){this.curve=t,this.type=e,this.precomputed=null}lO.BasePoint=hE;hE.prototype.eq=function(){throw new Error("Not implemented")};hE.prototype.validate=function(){return this.curve.validate(this)};lO.prototype.decodePoint=function(e,n){e=ab.toArray(e,n);var r=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*r){e[0]===6?Y0e(e[e.length-1]%2===0):e[0]===7&&Y0e(e[e.length-1]%2===1);var a=this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));return a}else if((e[0]===2||e[0]===3)&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),e[0]===3);throw new Error("Unknown point format")};hE.prototype.encodeCompressed=function(e){return this.encode(e,!0)};hE.prototype._encode=function(e){var n=this.curve.p.byteLength(),r=this.getX().toArray("be",n);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",n))};hE.prototype.encode=function(e,n){return ab.encode(this._encode(n),e)};hE.prototype.precompute=function(e){if(this.precomputed)return this;var n={doubles:null,naf:null,beta:null};return n.naf=this._getNAFPoints(8),n.doubles=this._getDoubles(4,e),n.beta=this._getBeta(),this.precomputed=n,this};hE.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var n=this.precomputed.doubles;return n?n.points.length>=Math.ceil((e.bitLength()+1)/n.step):!1};hE.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],a=this,o=0;o<n;o+=e){for(var s=0;s<e;s++)a=a.dbl();r.push(a)}return{step:e,points:r}};hE.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var n=[this],r=(1<<e)-1,a=r===1?null:this.dbl(),o=1;o<r;o++)n[o]=n[o-1].add(a);return{wnd:e,points:n}};hE.prototype._getBeta=function(){return null};hE.prototype.dblp=function(e){for(var n=this,r=0;r<e;r++)n=n.dbl();return n};var Fet=CG(function(t){typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var a=function(){};a.prototype=r.prototype,n.prototype=new a,n.prototype.constructor=n}}}),XWr=ab.assert;function fE(t){W8.call(this,"short",t),this.a=new Qo(t.a,16).toRed(this.red),this.b=new Qo(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Fet(fE,W8);var eQr=fE;fE.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var n,r;if(e.beta)n=new Qo(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);n=a[0].cmp(a[1])<0?a[0]:a[1],n=n.toRed(this.red)}if(e.lambda)r=new Qo(e.lambda,16);else{var o=this._getEndoRoots(this.n);this.g.mul(o[0]).x.cmp(this.g.x.redMul(n))===0?r=o[0]:(r=o[1],XWr(this.g.mul(r).x.cmp(this.g.x.redMul(n))===0))}var s;return e.basis?s=e.basis.map(function(l){return{a:new Qo(l.a,16),b:new Qo(l.b,16)}}):s=this._getEndoBasis(r),{beta:n,lambda:r,basis:s}}};fE.prototype._getEndoRoots=function(e){var n=e===this.p?this.red:Qo.mont(e),r=new Qo(2).toRed(n).redInvm(),a=r.redNeg(),o=new Qo(3).toRed(n).redNeg().redSqrt().redMul(r),s=a.redAdd(o).fromRed(),l=a.redSub(o).fromRed();return[s,l]};fE.prototype._getEndoBasis=function(e){for(var n=this.n.ushrn(Math.floor(this.n.bitLength()/2)),r=e,a=this.n.clone(),o=new Qo(1),s=new Qo(0),l=new Qo(0),c=new Qo(1),u,d,h,f,p,m,g,v=0,A,y;r.cmpn(0)!==0;){var S=a.div(r);A=a.sub(S.mul(r)),y=l.sub(S.mul(o));var x=c.sub(S.mul(s));if(!h&&A.cmp(n)<0)u=g.neg(),d=o,h=A.neg(),f=y;else if(h&&++v===2)break;g=A,a=r,r=A,l=o,o=y,c=s,s=x}p=A.neg(),m=y;var w=h.sqr().add(f.sqr()),_=p.sqr().add(m.sqr());return _.cmp(w)>=0&&(p=u,m=d),h.negative&&(h=h.neg(),f=f.neg()),p.negative&&(p=p.neg(),m=m.neg()),[{a:h,b:f},{a:p,b:m}]};fE.prototype._endoSplit=function(e){var n=this.endo.basis,r=n[0],a=n[1],o=a.b.mul(e).divRound(this.n),s=r.b.neg().mul(e).divRound(this.n),l=o.mul(r.a),c=s.mul(a.a),u=o.mul(r.b),d=s.mul(a.b),h=e.sub(l).sub(c),f=u.add(d).neg();return{k1:h,k2:f}};fE.prototype.pointFromX=function(e,n){e=new Qo(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=r.redSqrt();if(a.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var o=a.fromRed().isOdd();return(n&&!o||!n&&o)&&(a=a.redNeg()),this.point(e,a)};fE.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,r=e.y,a=this.a.redMul(n),o=n.redSqr().redMul(n).redIAdd(a).redIAdd(this.b);return r.redSqr().redISub(o).cmpn(0)===0};fE.prototype._endoWnafMulAdd=function(e,n,r){for(var a=this._endoWnafT1,o=this._endoWnafT2,s=0;s<e.length;s++){var l=this._endoSplit(n[s]),c=e[s],u=c._getBeta();l.k1.negative&&(l.k1.ineg(),c=c.neg(!0)),l.k2.negative&&(l.k2.ineg(),u=u.neg(!0)),a[s*2]=c,a[s*2+1]=u,o[s*2]=l.k1,o[s*2+1]=l.k2}for(var d=this._wnafMulAdd(1,a,o,s*2,r),h=0;h<s*2;h++)a[h]=null,o[h]=null;return d};function dm(t,e,n,r){W8.BasePoint.call(this,t,"affine"),e===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Qo(e,16),this.y=new Qo(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Fet(dm,W8.BasePoint);fE.prototype.point=function(e,n,r){return new dm(this,e,n,r)};fE.prototype.pointFromJSON=function(e,n){return dm.fromJSON(this,e,n)};dm.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var n=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,a=function(o){return r.point(o.x.redMul(r.endo.beta),o.y)};e.beta=n,n.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(a)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(a)}}}return n}};dm.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};dm.fromJSON=function(e,n,r){typeof n=="string"&&(n=JSON.parse(n));var a=e.point(n[0],n[1],r);if(!n[2])return a;function o(l){return e.point(l[0],l[1],r)}var s=n[2];return a.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[a].concat(s.doubles.points.map(o))},naf:s.naf&&{wnd:s.naf.wnd,points:[a].concat(s.naf.points.map(o))}},a};dm.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};dm.prototype.isInfinity=function(){return this.inf};dm.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var n=this.y.redSub(e.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var r=n.redSqr().redISub(this.x).redISub(e.x),a=n.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,a)};dm.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var n=this.curve.a,r=this.x.redSqr(),a=e.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(n).redMul(a),s=o.redSqr().redISub(this.x.redAdd(this.x)),l=o.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,l)};dm.prototype.getX=function(){return this.x.fromRed()};dm.prototype.getY=function(){return this.y.fromRed()};dm.prototype.mul=function(e){return e=new Qo(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};dm.prototype.mulAdd=function(e,n,r){var a=[this,n],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,o):this.curve._wnafMulAdd(1,a,o,2)};dm.prototype.jmulAdd=function(e,n,r){var a=[this,n],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,o,!0):this.curve._wnafMulAdd(1,a,o,2,!0)};dm.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};dm.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,a=function(o){return o.neg()};n.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(a)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(a)}}}return n};dm.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Ag(t,e,n,r){W8.BasePoint.call(this,t,"jacobian"),e===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Qo(0)):(this.x=new Qo(e,16),this.y=new Qo(n,16),this.z=new Qo(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Fet(Ag,W8.BasePoint);fE.prototype.jpoint=function(e,n,r){return new Ag(this,e,n,r)};Ag.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),r=this.x.redMul(n),a=this.y.redMul(n).redMul(e);return this.curve.point(r,a)};Ag.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Ag.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),r=this.z.redSqr(),a=this.x.redMul(n),o=e.x.redMul(r),s=this.y.redMul(n.redMul(e.z)),l=e.y.redMul(r.redMul(this.z)),c=a.redSub(o),u=s.redSub(l);if(c.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=c.redSqr(),h=d.redMul(c),f=a.redMul(d),p=u.redSqr().redIAdd(h).redISub(f).redISub(f),m=u.redMul(f.redISub(p)).redISub(s.redMul(h)),g=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(p,m,g)};Ag.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var n=this.z.redSqr(),r=this.x,a=e.x.redMul(n),o=this.y,s=e.y.redMul(n).redMul(this.z),l=r.redSub(a),c=o.redSub(s);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=l.redSqr(),d=u.redMul(l),h=r.redMul(u),f=c.redSqr().redIAdd(d).redISub(h).redISub(h),p=c.redMul(h.redISub(f)).redISub(o.redMul(d)),m=this.z.redMul(l);return this.curve.jpoint(f,p,m)};Ag.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var r=this;for(n=0;n<e;n++)r=r.dbl();return r}var a=this.curve.a,o=this.curve.tinv,s=this.x,l=this.y,c=this.z,u=c.redSqr().redSqr(),d=l.redAdd(l);for(n=0;n<e;n++){var h=s.redSqr(),f=d.redSqr(),p=f.redSqr(),m=h.redAdd(h).redIAdd(h).redIAdd(a.redMul(u)),g=s.redMul(f),v=m.redSqr().redISub(g.redAdd(g)),A=g.redISub(v),y=m.redMul(A);y=y.redIAdd(y).redISub(p);var S=d.redMul(c);n+1<e&&(u=u.redMul(p)),s=v,c=S,d=y}return this.curve.jpoint(s,d.redMul(o),c)};Ag.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Ag.prototype._zeroDbl=function(){var e,n,r;if(this.zOne){var a=this.x.redSqr(),o=this.y.redSqr(),s=o.redSqr(),l=this.x.redAdd(o).redSqr().redISub(a).redISub(s);l=l.redIAdd(l);var c=a.redAdd(a).redIAdd(a),u=c.redSqr().redISub(l).redISub(l),d=s.redIAdd(s);d=d.redIAdd(d),d=d.redIAdd(d),e=u,n=c.redMul(l.redISub(u)).redISub(d),r=this.y.redAdd(this.y)}else{var h=this.x.redSqr(),f=this.y.redSqr(),p=f.redSqr(),m=this.x.redAdd(f).redSqr().redISub(h).redISub(p);m=m.redIAdd(m);var g=h.redAdd(h).redIAdd(h),v=g.redSqr(),A=p.redIAdd(p);A=A.redIAdd(A),A=A.redIAdd(A),e=v.redISub(m).redISub(m),n=g.redMul(m.redISub(e)).redISub(A),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(e,n,r)};Ag.prototype._threeDbl=function(){var e,n,r;if(this.zOne){var a=this.x.redSqr(),o=this.y.redSqr(),s=o.redSqr(),l=this.x.redAdd(o).redSqr().redISub(a).redISub(s);l=l.redIAdd(l);var c=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),u=c.redSqr().redISub(l).redISub(l);e=u;var d=s.redIAdd(s);d=d.redIAdd(d),d=d.redIAdd(d),n=c.redMul(l.redISub(u)).redISub(d),r=this.y.redAdd(this.y)}else{var h=this.z.redSqr(),f=this.y.redSqr(),p=this.x.redMul(f),m=this.x.redSub(h).redMul(this.x.redAdd(h));m=m.redAdd(m).redIAdd(m);var g=p.redIAdd(p);g=g.redIAdd(g);var v=g.redAdd(g);e=m.redSqr().redISub(v),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(h);var A=f.redSqr();A=A.redIAdd(A),A=A.redIAdd(A),A=A.redIAdd(A),n=m.redMul(g.redISub(e)).redISub(A)}return this.curve.jpoint(e,n,r)};Ag.prototype._dbl=function(){var e=this.curve.a,n=this.x,r=this.y,a=this.z,o=a.redSqr().redSqr(),s=n.redSqr(),l=r.redSqr(),c=s.redAdd(s).redIAdd(s).redIAdd(e.redMul(o)),u=n.redAdd(n);u=u.redIAdd(u);var d=u.redMul(l),h=c.redSqr().redISub(d.redAdd(d)),f=d.redISub(h),p=l.redSqr();p=p.redIAdd(p),p=p.redIAdd(p),p=p.redIAdd(p);var m=c.redMul(f).redISub(p),g=r.redAdd(r).redMul(a);return this.curve.jpoint(h,m,g)};Ag.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),n=this.y.redSqr(),r=this.z.redSqr(),a=n.redSqr(),o=e.redAdd(e).redIAdd(e),s=o.redSqr(),l=this.x.redAdd(n).redSqr().redISub(e).redISub(a);l=l.redIAdd(l),l=l.redAdd(l).redIAdd(l),l=l.redISub(s);var c=l.redSqr(),u=a.redIAdd(a);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var d=o.redIAdd(l).redSqr().redISub(s).redISub(c).redISub(u),h=n.redMul(d);h=h.redIAdd(h),h=h.redIAdd(h);var f=this.x.redMul(c).redISub(h);f=f.redIAdd(f),f=f.redIAdd(f);var p=this.y.redMul(d.redMul(u.redISub(d)).redISub(l.redMul(c)));p=p.redIAdd(p),p=p.redIAdd(p),p=p.redIAdd(p);var m=this.z.redAdd(l).redSqr().redISub(r).redISub(c);return this.curve.jpoint(f,p,m)};Ag.prototype.mul=function(e,n){return e=new Qo(e,n),this.curve._wnafMul(this,e)};Ag.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var n=this.z.redSqr(),r=e.z.redSqr();if(this.x.redMul(r).redISub(e.x.redMul(n)).cmpn(0)!==0)return!1;var a=n.redMul(this.z),o=r.redMul(e.z);return this.y.redMul(o).redISub(e.y.redMul(a)).cmpn(0)===0};Ag.prototype.eqXToP=function(e){var n=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(n);if(this.x.cmp(r)===0)return!0;for(var a=e.clone(),o=this.curve.redN.redMul(n);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),this.x.cmp(r)===0)return!0}};Ag.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};Ag.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var vme=CG(function(t,e){var n=e;n.base=W8,n.short=eQr,n.mont=null,n.edwards=null}),Ame=CG(function(t,e){var n=e,r=ab.assert;function a(l){l.type==="short"?this.curve=new vme.short(l):l.type==="edwards"?this.curve=new vme.edwards(l):this.curve=new vme.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}n.PresetCurve=a;function o(l,c){Object.defineProperty(n,l,{configurable:!0,enumerable:!0,get:function(){var u=new a(c);return Object.defineProperty(n,l,{configurable:!0,enumerable:!0,value:u}),u}})}o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:hT.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:hT.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:hT.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:hT.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:hT.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:hT.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:hT.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var s;try{s=null.crash()}catch{s=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:hT.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",s]})});function oP(t){if(!(this instanceof oP))return new oP(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=nw.toArray(t.entropy,t.entropyEnc||"hex"),n=nw.toArray(t.nonce,t.nonceEnc||"hex"),r=nw.toArray(t.pers,t.persEnc||"hex");$et(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var Jen=oP;oP.prototype._init=function(e,n,r){var a=e.concat(n).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};oP.prototype._hmac=function(){return new hT.hmac(this.hash,this.K)};oP.prototype._update=function(e){var n=this._hmac().update(this.V).update([0]);e&&(n=n.update(e)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())};oP.prototype.reseed=function(e,n,r,a){typeof n!="string"&&(a=r,r=n,n=null),e=nw.toArray(e,n),r=nw.toArray(r,a),$et(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1};oP.prototype.generate=function(e,n,r,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(a=r,r=n,n=null),r&&(r=nw.toArray(r,a||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(r),this._reseed++,nw.encode(s,n)};var pUe=ab.assert;function Av(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var jet=Av;Av.fromPublic=function(e,n,r){return n instanceof Av?n:new Av(e,{pub:n,pubEnc:r})};Av.fromPrivate=function(e,n,r){return n instanceof Av?n:new Av(e,{priv:n,privEnc:r})};Av.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Av.prototype.getPublic=function(e,n){return typeof e=="string"&&(n=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,e):this.pub};Av.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Av.prototype._importPrivate=function(e,n){this.priv=new Qo(e,n||16),this.priv=this.priv.umod(this.ec.curve.n)};Av.prototype._importPublic=function(e,n){if(e.x||e.y){this.ec.curve.type==="mont"?pUe(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&pUe(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,n)};Av.prototype.derive=function(e){return e.validate()||pUe(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Av.prototype.sign=function(e,n,r){return this.ec.sign(e,this,n,r)};Av.prototype.verify=function(e,n){return this.ec.verify(e,n,this)};Av.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var tQr=ab.assert;function rSe(t,e){if(t instanceof rSe)return t;this._importDER(t,e)||(tQr(t.r&&t.s,"Signature without r or s"),this.r=new Qo(t.r,16),this.s=new Qo(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var iSe=rSe;function nQr(){this.place=0}function fPe(t,e){var n=t[e.place++];if(!(n&128))return n;var r=n&15;if(r===0||r>4)return!1;for(var a=0,o=0,s=e.place;o<r;o++,s++)a<<=8,a|=t[s],a>>>=0;return a<=127?!1:(e.place=s,a)}function Cyt(t){for(var e=0,n=t.length-1;!t[e]&&!(t[e+1]&128)&&e<n;)e++;return e===0?t:t.slice(e)}rSe.prototype._importDER=function(e,n){e=ab.toArray(e,n);var r=new nQr;if(e[r.place++]!==48)return!1;var a=fPe(e,r);if(a===!1||a+r.place!==e.length||e[r.place++]!==2)return!1;var o=fPe(e,r);if(o===!1)return!1;var s=e.slice(r.place,o+r.place);if(r.place+=o,e[r.place++]!==2)return!1;var l=fPe(e,r);if(l===!1||e.length!==l+r.place)return!1;var c=e.slice(r.place,l+r.place);if(s[0]===0)if(s[1]&128)s=s.slice(1);else return!1;if(c[0]===0)if(c[1]&128)c=c.slice(1);else return!1;return this.r=new Qo(s),this.s=new Qo(c),this.recoveryParam=null,!0};function pPe(t,e){if(e<128){t.push(e);return}var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(n|128);--n;)t.push(e>>>(n<<3)&255);t.push(e)}rSe.prototype.toDER=function(e){var n=this.r.toArray(),r=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),r[0]&128&&(r=[0].concat(r)),n=Cyt(n),r=Cyt(r);!r[0]&&!(r[1]&128);)r=r.slice(1);var a=[2];pPe(a,n.length),a=a.concat(n),a.push(2),pPe(a,r.length);var o=a.concat(r),s=[48];return pPe(s,o.length),s=s.concat(o),ab.encode(s,e)};var rQr=function(){throw new Error("unsupported")},Zen=ab.assert;function qx(t){if(!(this instanceof qx))return new qx(t);typeof t=="string"&&(Zen(Object.prototype.hasOwnProperty.call(Ame,t),"Unknown curve "+t),t=Ame[t]),t instanceof Ame.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var iQr=qx;qx.prototype.keyPair=function(e){return new jet(this,e)};qx.prototype.keyFromPrivate=function(e,n){return jet.fromPrivate(this,e,n)};qx.prototype.keyFromPublic=function(e,n){return jet.fromPublic(this,e,n)};qx.prototype.genKeyPair=function(e){e||(e={});for(var n=new Jen({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||rQr(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new Qo(2));;){var o=new Qo(n.generate(r));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}};qx.prototype._truncateToN=function(e,n){var r=e.byteLength()*8-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!n&&e.cmp(this.n)>=0?e.sub(this.n):e};qx.prototype.sign=function(e,n,r,a){typeof r=="object"&&(a=r,r=null),a||(a={}),n=this.keyFromPrivate(n,r),e=this._truncateToN(new Qo(e,16));for(var o=this.n.byteLength(),s=n.getPrivate().toArray("be",o),l=e.toArray("be",o),c=new Jen({hash:this.hash,entropy:s,nonce:l,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new Qo(1)),d=0;;d++){var h=a.k?a.k(d):new Qo(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(u)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var p=f.getX(),m=p.umod(this.n);if(m.cmpn(0)!==0){var g=h.invm(this.n).mul(m.mul(n.getPrivate()).iadd(e));if(g=g.umod(this.n),g.cmpn(0)!==0){var v=(f.getY().isOdd()?1:0)|(p.cmp(m)!==0?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new iSe({r:m,s:g,recoveryParam:v})}}}}}};qx.prototype.verify=function(e,n,r,a){e=this._truncateToN(new Qo(e,16)),r=this.keyFromPublic(r,a),n=new iSe(n,"hex");var o=n.r,s=n.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var l=s.invm(this.n),c=l.mul(e).umod(this.n),u=l.mul(o).umod(this.n),d;return this.curve._maxwellTrick?(d=this.g.jmulAdd(c,r.getPublic(),u),d.isInfinity()?!1:d.eqXToP(o)):(d=this.g.mulAdd(c,r.getPublic(),u),d.isInfinity()?!1:d.getX().umod(this.n).cmp(o)===0)};qx.prototype.recoverPubKey=function(t,e,n,r){Zen((3&n)===n,"The recovery param is more than two bits"),e=new iSe(e,r);var a=this.n,o=new Qo(t),s=e.r,l=e.s,c=n&1,u=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");u?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var d=e.r.invm(a),h=a.sub(o).mul(d).umod(a),f=l.mul(d).umod(a);return this.g.mulAdd(h,s,f)};qx.prototype.getKeyRecoveryParam=function(t,e,n,r){if(e=new iSe(e,r),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var o;try{o=this.recoverPubKey(t,e,a)}catch{continue}if(o.eq(n))return a}throw new Error("Unable to find valid recovery factor")};var aQr=CG(function(t,e){var n=e;n.version="6.5.4",n.utils=ab,n.rand=function(){throw new Error("unsupported")},n.curve=vme,n.curves=Ame,n.ec=iQr,n.eddsa=null}),oQr=aQr.ec;const sQr="signing-key/5.7.0",mUe=new hn(sQr);let mPe=null;function CT(){return mPe||(mPe=new oQr("secp256k1")),mPe}class lQr{constructor(e){ir(this,"curve","secp256k1"),ir(this,"privateKey",ba(e)),R6(this.privateKey)!==32&&mUe.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const n=CT().keyFromPrivate(Ka(this.privateKey));ir(this,"publicKey","0x"+n.getPublic(!1,"hex")),ir(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),ir(this,"_isSigningKey",!0)}_addPoint(e){const n=CT().keyFromPublic(Ka(this.publicKey)),r=CT().keyFromPublic(Ka(e));return"0x"+n.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const n=CT().keyFromPrivate(Ka(this.privateKey)),r=Ka(e);r.length!==32&&mUe.throwArgumentError("bad digest length","digest",e);const a=n.sign(r,{canonical:!0});return XEe({recoveryParam:a.recoveryParam,r:md("0x"+a.r.toString(16),32),s:md("0x"+a.s.toString(16),32)})}computeSharedSecret(e){const n=CT().keyFromPrivate(Ka(this.privateKey)),r=CT().keyFromPublic(Ka(Xen(e)));return md("0x"+n.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function cQr(t,e){const n=XEe(e),r={r:Ka(n.r),s:Ka(n.s)};return"0x"+CT().recoverPubKey(Ka(t),r,n.recoveryParam).encode("hex",!1)}function Xen(t,e){const n=Ka(t);if(n.length===32){const r=new lQr(n);return e?"0x"+CT().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}else{if(n.length===33)return e?ba(n):"0x"+CT().keyFromPublic(n).getPublic(!1,"hex");if(n.length===65)return e?"0x"+CT().keyFromPublic(n).getPublic(!0,"hex"):ba(n)}return mUe.throwArgumentError("invalid public or private key","key","[REDACTED]")}const uQr="transactions/5.7.0",iN=new hn(uQr);var kyt;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(kyt||(kyt={}));function Het(t){return t==="0x"?null:ph(t)}function ov(t){return t==="0x"?fen:$r.from(t)}function dQr(t){const e=Xen(t);return ph(rv(dp(rv(e,1)),12))}function etn(t,e){return dQr(cQr(Ka(t),e))}function Ey(t,e){const n=EU($r.from(t).toHexString());return n.length>32&&iN.throwArgumentError("invalid length for "+e,"transaction:"+e,t),n}function gPe(t,e){return{address:ph(t),storageKeys:(e||[]).map((n,r)=>(R6(n)!==32&&iN.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,n),n.toLowerCase()))}}function kG(t){if(Array.isArray(t))return t.map((n,r)=>Array.isArray(n)?(n.length>2&&iN.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${r}]`,n),gPe(n[0],n[1])):gPe(n.address,n.storageKeys));const e=Object.keys(t).map(n=>{const r=t[n].reduce((a,o)=>(a[o]=!0,a),{});return gPe(n,Object.keys(r).sort())});return e.sort((n,r)=>n.address.localeCompare(r.address)),e}function ttn(t){return kG(t).map(e=>[e.address,e.storageKeys])}function hQr(t,e){if(t.gasPrice!=null){const r=$r.from(t.gasPrice),a=$r.from(t.maxFeePerGas||0);r.eq(a)||iN.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:a})}const n=[Ey(t.chainId||0,"chainId"),Ey(t.nonce||0,"nonce"),Ey(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Ey(t.maxFeePerGas||0,"maxFeePerGas"),Ey(t.gasLimit||0,"gasLimit"),t.to!=null?ph(t.to):"0x",Ey(t.value||0,"value"),t.data||"0x",ttn(t.accessList||[])];if(e){const r=XEe(e);n.push(Ey(r.recoveryParam,"recoveryParam")),n.push(EU(r.r)),n.push(EU(r.s))}return KA(["0x02",eSe(n)])}function fQr(t,e){const n=[Ey(t.chainId||0,"chainId"),Ey(t.nonce||0,"nonce"),Ey(t.gasPrice||0,"gasPrice"),Ey(t.gasLimit||0,"gasLimit"),t.to!=null?ph(t.to):"0x",Ey(t.value||0,"value"),t.data||"0x",ttn(t.accessList||[])];if(e){const r=XEe(e);n.push(Ey(r.recoveryParam,"recoveryParam")),n.push(EU(r.r)),n.push(EU(r.s))}return KA(["0x01",eSe(n)])}function ntn(t,e,n){try{const r=ov(e[0]).toNumber();if(r!==0&&r!==1)throw new Error("bad recid");t.v=r}catch{iN.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=md(e[1],32),t.s=md(e[2],32);try{const r=dp(n(t));t.from=etn(r,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function pQr(t){const e=Pet(t.slice(1));e.length!==9&&e.length!==12&&iN.throwArgumentError("invalid component count for transaction type: 2","payload",ba(t));const n=ov(e[2]),r=ov(e[3]),a={type:2,chainId:ov(e[0]).toNumber(),nonce:ov(e[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:ov(e[4]),to:Het(e[5]),value:ov(e[6]),data:e[7],accessList:kG(e[8])};return e.length===9||(a.hash=dp(t),ntn(a,e.slice(9),hQr)),a}function mQr(t){const e=Pet(t.slice(1));e.length!==8&&e.length!==11&&iN.throwArgumentError("invalid component count for transaction type: 1","payload",ba(t));const n={type:1,chainId:ov(e[0]).toNumber(),nonce:ov(e[1]).toNumber(),gasPrice:ov(e[2]),gasLimit:ov(e[3]),to:Het(e[4]),value:ov(e[5]),data:e[6],accessList:kG(e[7])};return e.length===8||(n.hash=dp(t),ntn(n,e.slice(8),fQr)),n}function gQr(t){const e=Pet(t);e.length!==9&&e.length!==6&&iN.throwArgumentError("invalid raw transaction","rawTransaction",t);const n={nonce:ov(e[0]).toNumber(),gasPrice:ov(e[1]),gasLimit:ov(e[2]),to:Het(e[3]),value:ov(e[4]),data:e[5],chainId:0};if(e.length===6)return n;try{n.v=$r.from(e[6]).toNumber()}catch{return n}if(n.r=md(e[7],32),n.s=md(e[8],32),$r.from(n.r).isZero()&&$r.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const a=e.slice(0,6);n.chainId!==0&&(a.push(ba(n.chainId)),a.push("0x"),a.push("0x"),r-=n.chainId*2+8);const o=dp(eSe(a));try{n.from=etn(o,{r:ba(n.r),s:ba(n.s),recoveryParam:r})}catch{}n.hash=dp(t)}return n.type=null,n}function vQr(t){const e=Ka(t);if(e[0]>127)return gQr(e);switch(e[0]){case 1:return mQr(e);case 2:return pQr(e)}return iN.throwError(`unsupported transaction type: ${e[0]}`,hn.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const AQr="contracts/5.7.0";var I6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const Dh=new hn(AQr);function J0e(t,e){return I6(this,void 0,void 0,function*(){const n=yield e;typeof n!="string"&&Dh.throwArgumentError("invalid address or ENS name","name",n);try{return ph(n)}catch{}t||Dh.throwError("a provider or signer is needed to resolve ENS names",hn.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const r=yield t.resolveName(n);return r==null&&Dh.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r})}function yme(t,e,n){return I6(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((r,a)=>yme(t,Array.isArray(e)?e[a]:e[r.name],r))):n.type==="address"?yield J0e(t,e):n.type==="tuple"?yield yme(t,e,n.components):n.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(r=>yme(t,r,n.arrayChildren))):Promise.reject(Dh.makeError("invalid value for array",hn.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function aSe(t,e,n){return I6(this,void 0,void 0,function*(){let r={};n.length===e.inputs.length+1&&typeof n[n.length-1]=="object"&&(r=mp(n.pop())),Dh.checkArgumentCount(n.length,e.inputs.length,"passed to contract"),t.signer?r.from?r.from=kf({override:J0e(t.signer,r.from),signer:t.signer.getAddress()}).then(u=>I6(this,void 0,void 0,function*(){return ph(u.signer)!==u.override&&Dh.throwError("Contract with a Signer cannot override from",hn.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),u.override})):r.from=t.signer.getAddress():r.from&&(r.from=J0e(t.provider,r.from));const a=yield kf({args:yme(t.signer||t.provider,n,e.inputs),address:t.resolvedAddress,overrides:kf(r)||{}}),o=t.interface.encodeFunctionData(e,a.args),s={data:o,to:a.address},l=a.overrides;if(l.nonce!=null&&(s.nonce=$r.from(l.nonce).toNumber()),l.gasLimit!=null&&(s.gasLimit=$r.from(l.gasLimit)),l.gasPrice!=null&&(s.gasPrice=$r.from(l.gasPrice)),l.maxFeePerGas!=null&&(s.maxFeePerGas=$r.from(l.maxFeePerGas)),l.maxPriorityFeePerGas!=null&&(s.maxPriorityFeePerGas=$r.from(l.maxPriorityFeePerGas)),l.from!=null&&(s.from=l.from),l.type!=null&&(s.type=l.type),l.accessList!=null&&(s.accessList=kG(l.accessList)),s.gasLimit==null&&e.gas!=null){let u=21e3;const d=Ka(o);for(let h=0;h<d.length;h++)u+=4,d[h]&&(u+=64);s.gasLimit=$r.from(e.gas).add(u)}if(l.value){const u=$r.from(l.value);!u.isZero()&&!e.payable&&Dh.throwError("non-payable method cannot override value",hn.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:r.value}),s.value=u}l.customData&&(s.customData=mp(l.customData)),l.ccipReadEnabled&&(s.ccipReadEnabled=!!l.ccipReadEnabled),delete r.nonce,delete r.gasLimit,delete r.gasPrice,delete r.from,delete r.value,delete r.type,delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.customData,delete r.ccipReadEnabled;const c=Object.keys(r).filter(u=>r[u]!=null);return c.length&&Dh.throwError(`cannot override ${c.map(u=>JSON.stringify(u)).join(",")}`,hn.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:c}),s})}function yQr(t,e){return function(...n){return aSe(t,e,n)}}function bQr(t,e){const n=t.signer||t.provider;return function(...r){return I6(this,void 0,void 0,function*(){n||Dh.throwError("estimate require a provider or signer",hn.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const a=yield aSe(t,e,r);return yield n.estimateGas(a)})}}function xQr(t,e){const n=e.wait.bind(e);e.wait=r=>n(r).then(a=>(a.events=a.logs.map(o=>{let s=EM(o),l=null;try{l=t.interface.parseLog(o)}catch{}return l&&(s.args=l.args,s.decode=(c,u)=>t.interface.decodeEventLog(l.eventFragment,c,u),s.event=l.name,s.eventSignature=l.signature),s.removeListener=()=>t.provider,s.getBlock=()=>t.provider.getBlock(a.blockHash),s.getTransaction=()=>t.provider.getTransaction(a.transactionHash),s.getTransactionReceipt=()=>Promise.resolve(a),s}),a))}function rtn(t,e,n){const r=t.signer||t.provider;return function(...a){return I6(this,void 0,void 0,function*(){let o;if(a.length===e.inputs.length+1&&typeof a[a.length-1]=="object"){const c=mp(a.pop());c.blockTag!=null&&(o=yield c.blockTag),delete c.blockTag,a.push(c)}t.deployTransaction!=null&&(yield t._deployed(o));const s=yield aSe(t,e,a),l=yield r.call(s,o);try{let c=t.interface.decodeFunctionResult(e,l);return n&&e.outputs.length===1&&(c=c[0]),c}catch(c){throw c.code===hn.errors.CALL_EXCEPTION&&(c.address=t.address,c.args=a,c.transaction=s),c}})}}function EQr(t,e){return function(...n){return I6(this,void 0,void 0,function*(){t.signer||Dh.throwError("sending a transaction requires a signer",hn.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const r=yield aSe(t,e,n),a=yield t.signer.sendTransaction(r);return xQr(t,a),a})}}function Ryt(t,e,n){return e.constant?rtn(t,e,n):EQr(t,e)}function itn(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class Ane{constructor(e,n){ir(this,"tag",e),ir(this,"filter",n),this._listeners=[]}addListener(e,n){this._listeners.push({listener:e,once:n})}removeListener(e){let n=!1;this._listeners=this._listeners.filter(r=>n||r.listener!==e?!0:(n=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const n=this.listenerCount();return this._listeners=this._listeners.filter(r=>{const a=e.slice();return setTimeout(()=>{r.listener.apply(this,a)},0),!r.once}),n}prepareEvent(e){}getEmit(e){return[e]}}class SQr extends Ane{constructor(){super("error",null)}}class Myt extends Ane{constructor(e,n,r,a){const o={address:e};let s=n.getEventTopic(r);a?(s!==a[0]&&Dh.throwArgumentError("topic mismatch","topics",a),o.topics=a.slice()):o.topics=[s],super(itn(o),o),ir(this,"address",e),ir(this,"interface",n),ir(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(n,r)=>this.interface.decodeEventLog(this.fragment,n,r);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}}getEmit(e){const n=iVr(e.args);if(n.length)throw n[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class Nyt extends Ane{constructor(e,n){super("*",{address:e}),ir(this,"address",e),ir(this,"interface",n)}prepareEvent(e){super.prepareEvent(e);try{const n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=(r,a)=>this.interface.decodeEventLog(n.eventFragment,r,a),e.args=n.args}catch{}}}class wQr{constructor(e,n,r){ir(this,"interface",Ry(new.target,"getInterface")(n)),r==null?(ir(this,"provider",null),ir(this,"signer",null)):Cae.isSigner(r)?(ir(this,"provider",r.provider||null),ir(this,"signer",r)):Ren.isProvider(r)?(ir(this,"provider",r),ir(this,"signer",null)):Dh.throwArgumentError("invalid signer or provider","signerOrProvider",r),ir(this,"callStatic",{}),ir(this,"estimateGas",{}),ir(this,"functions",{}),ir(this,"populateTransaction",{}),ir(this,"filters",{});{const s={};Object.keys(this.interface.events).forEach(l=>{const c=this.interface.events[l];ir(this.filters,l,(...u)=>({address:this.address,topics:this.interface.encodeFilterTopics(c,u)})),s[c.name]||(s[c.name]=[]),s[c.name].push(l)}),Object.keys(s).forEach(l=>{const c=s[l];c.length===1?ir(this.filters,l,this.filters[c[0]]):Dh.warn(`Duplicate definition of ${l} (${c.join(", ")})`)})}if(ir(this,"_runningEvents",{}),ir(this,"_wrappedEmits",{}),e==null&&Dh.throwArgumentError("invalid contract address or ENS name","addressOrName",e),ir(this,"address",e),this.provider)ir(this,"resolvedAddress",J0e(this.provider,e));else try{ir(this,"resolvedAddress",Promise.resolve(ph(e)))}catch{Dh.throwError("provider is required to use ENS name as contract address",hn.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(s=>{});const a={},o={};Object.keys(this.interface.functions).forEach(s=>{const l=this.interface.functions[s];if(o[s]){Dh.warn(`Duplicate ABI entry for ${JSON.stringify(s)}`);return}o[s]=!0;{const c=l.name;a[`%${c}`]||(a[`%${c}`]=[]),a[`%${c}`].push(s)}this[s]==null&&ir(this,s,Ryt(this,l,!0)),this.functions[s]==null&&ir(this.functions,s,Ryt(this,l,!1)),this.callStatic[s]==null&&ir(this.callStatic,s,rtn(this,l,!0)),this.populateTransaction[s]==null&&ir(this.populateTransaction,s,yQr(this,l)),this.estimateGas[s]==null&&ir(this.estimateGas,s,bQr(this,l))}),Object.keys(a).forEach(s=>{const l=a[s];if(l.length>1)return;s=s.substring(1);const c=l[0];try{this[s]==null&&ir(this,s,this[c])}catch{}this.functions[s]==null&&ir(this.functions,s,this.functions[c]),this.callStatic[s]==null&&ir(this.callStatic,s,this.callStatic[c]),this.populateTransaction[s]==null&&ir(this.populateTransaction,s,this.populateTransaction[c]),this.estimateGas[s]==null&&ir(this.estimateGas,s,this.estimateGas[c])})}static getContractAddress(e){return cen(e)}static getInterface(e){return Eyt.isInterface(e)?e:new Eyt(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(n=>(n==="0x"&&Dh.throwError("contract not deployed",hn.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Dh.throwError("sending a transactions require a signer",hn.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const n=mp(e||{});return["from","to"].forEach(function(r){n[r]!=null&&Dh.throwError("cannot override "+r,hn.errors.UNSUPPORTED_OPERATION,{operation:r})}),n.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(n))}connect(e){typeof e=="string"&&(e=new Bet(e,this.provider));const n=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&ir(n,"deployTransaction",this.deployTransaction),n}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return uUe.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new SQr);if(e==="event")return this._normalizeRunningEvent(new Ane("event",null));if(e==="*")return this._normalizeRunningEvent(new Nyt(this.address,this.interface));const n=this.interface.getEvent(e);return this._normalizeRunningEvent(new Myt(this.address,this.interface,n))}if(e.topics&&e.topics.length>0){try{const r=e.topics[0];if(typeof r!="string")throw new Error("invalid topic");const a=this.interface.getEvent(r);return this._normalizeRunningEvent(new Myt(this.address,this.interface,a,e.topics))}catch{}const n={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Ane(itn(n),n))}return this._normalizeRunningEvent(new Nyt(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const n=this._wrappedEmits[e.tag];n&&e.filter&&(this.provider.off(e.filter,n),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,n,r){const a=EM(n);return a.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},a.getBlock=()=>this.provider.getBlock(n.blockHash),a.getTransaction=()=>this.provider.getTransaction(n.transactionHash),a.getTransactionReceipt=()=>this.provider.getTransactionReceipt(n.transactionHash),e.prepareEvent(a),a}_addEventListener(e,n,r){if(this.provider||Dh.throwError("events require a provider or a signer with a provider",hn.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(n,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const a=o=>{let s=this._wrapEvent(e,o,n);if(s.decodeError==null)try{const l=e.getEmit(s);this.emit(e.filter,...l)}catch(l){s.decodeError=l.error}e.filter!=null&&this.emit("event",s),s.decodeError!=null&&this.emit("error",s.decodeError,s)};this._wrappedEmits[e.tag]=a,e.filter!=null&&this.provider.on(e.filter,a)}}queryFilter(e,n,r){const a=this._getRunningEvent(e),o=mp(a.filter);return typeof n=="string"&&Gl(n,32)?(r!=null&&Dh.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),o.blockHash=n):(o.fromBlock=n??0,o.toBlock=r??"latest"),this.provider.getLogs(o).then(s=>s.map(l=>this._wrapEvent(a,l,null)))}on(e,n){return this._addEventListener(this._getRunningEvent(e),n,!1),this}once(e,n){return this._addEventListener(this._getRunningEvent(e),n,!0),this}emit(e,...n){if(!this.provider)return!1;const r=this._getRunningEvent(e),a=r.run(n)>0;return this._checkRunningEvents(r),a}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((n,r)=>n+this._runningEvents[r].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const n=[];for(let r in this._runningEvents)this._runningEvents[r].listeners().forEach(a=>{n.push(a)});return n}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const r in this._runningEvents){const a=this._runningEvents[r];a.removeAllListeners(),this._checkRunningEvents(a)}return this}const n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}off(e,n){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(n),this._checkRunningEvents(r),this}removeListener(e,n){return this.off(e,n)}}class Q8 extends wQr{}class atn{constructor(e){ir(this,"alphabet",e),ir(this,"base",e.length),ir(this,"_alphabetMap",{}),ir(this,"_leader",e.charAt(0));for(let n=0;n<e.length;n++)this._alphabetMap[e.charAt(n)]=n}encode(e){let n=Ka(e);if(n.length===0)return"";let r=[0];for(let o=0;o<n.length;++o){let s=n[o];for(let l=0;l<r.length;++l)s+=r[l]<<8,r[l]=s%this.base,s=s/this.base|0;for(;s>0;)r.push(s%this.base),s=s/this.base|0}let a="";for(let o=0;n[o]===0&&o<n.length-1;++o)a+=this._leader;for(let o=r.length-1;o>=0;--o)a+=this.alphabet[r[o]];return a}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let n=[];if(e.length===0)return new Uint8Array(n);n.push(0);for(let r=0;r<e.length;r++){let a=this._alphabetMap[e[r]];if(a===void 0)throw new Error("Non-base"+this.base+" character");let o=a;for(let s=0;s<n.length;++s)o+=n[s]*this.base,n[s]=o&255,o>>=8;for(;o>0;)n.push(o&255),o>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)n.push(0);return Ka(new Uint8Array(n.reverse()))}}new atn("abcdefghijklmnopqrstuvwxyz234567");const gUe=new atn("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function Iyt(t){return"0x"+hT.sha256().update(Ka(t)).digest("hex")}const _Qr="networks/5.7.1",Pyt=new hn(_Qr);function TQr(t){return t&&typeof t.renetwork=="function"}function bR(t){const e=function(n,r){r==null&&(r={});const a=[];if(n.InfuraProvider&&r.infura!=="-")try{a.push(new n.InfuraProvider(t,r.infura))}catch{}if(n.EtherscanProvider&&r.etherscan!=="-")try{a.push(new n.EtherscanProvider(t,r.etherscan))}catch{}if(n.AlchemyProvider&&r.alchemy!=="-")try{a.push(new n.AlchemyProvider(t,r.alchemy))}catch{}if(n.PocketProvider&&r.pocket!=="-"){const o=["goerli","ropsten","rinkeby","sepolia"];try{const s=new n.PocketProvider(t,r.pocket);s.network&&o.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(n.CloudflareProvider&&r.cloudflare!=="-")try{a.push(new n.CloudflareProvider(t))}catch{}if(n.AnkrProvider&&r.ankr!=="-")try{const o=["ropsten"],s=new n.AnkrProvider(t,r.ankr);s.network&&o.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(n.FallbackProvider){let o=1;return r.quorum!=null?o=r.quorum:t==="homestead"&&(o=2),new n.FallbackProvider(a,o)}return a[0]};return e.renetwork=function(n){return bR(n)},e}function Z0e(t,e){const n=function(r,a){return r.JsonRpcProvider?new r.JsonRpcProvider(t,e):null};return n.renetwork=function(r){return Z0e(t,r)},n}const Oyt={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:bR("homestead")},Lyt={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:bR("ropsten")},Byt={chainId:63,name:"classicMordor",_defaultProvider:Z0e("https://www.ethercluster.com/mordor","classicMordor")},Cce={unspecified:{chainId:0,name:"unspecified"},homestead:Oyt,mainnet:Oyt,morden:{chainId:2,name:"morden"},ropsten:Lyt,testnet:Lyt,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:bR("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:bR("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:bR("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:bR("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Z0e("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Byt,classicTestnet:Byt,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Z0e("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:bR("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:bR("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function CQr(t){if(t==null)return null;if(typeof t=="number"){for(const r in Cce){const a=Cce[r];if(a.chainId===t)return{name:a.name,chainId:a.chainId,ensAddress:a.ensAddress||null,_defaultProvider:a._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const r=Cce[t];return r==null?null:{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress,_defaultProvider:r._defaultProvider||null}}const e=Cce[t.name];if(!e)return typeof t.chainId!="number"&&Pyt.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&Pyt.throwArgumentError("network chainId mismatch","network",t);let n=t._defaultProvider||null;return n==null&&e._defaultProvider&&(TQr(e._defaultProvider)?n=e._defaultProvider.renetwork(t):n=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:n}}const kQr="web/5.7.1";var RQr=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};function MQr(t,e){return RQr(this,void 0,void 0,function*(){e==null&&(e={});const n={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),e.fetchOptions!=null){const s=e.fetchOptions;s.mode&&(n.mode=s.mode),s.cache&&(n.cache=s.cache),s.credentials&&(n.credentials=s.credentials),s.redirect&&(n.redirect=s.redirect),s.referrer&&(n.referrer=s.referrer)}const r=yield fetch(t,n),a=yield r.arrayBuffer(),o={};return r.headers.forEach?r.headers.forEach((s,l)=>{o[l.toLowerCase()]=s}):r.headers.keys().forEach(s=>{o[s.toLowerCase()]=r.headers.get(s)}),{headers:o,statusCode:r.status,statusMessage:r.statusText,body:Ka(new Uint8Array(a))}})}var NQr=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const _S=new hn(kQr);function Dyt(t){return new Promise(e=>{setTimeout(e,t)})}function YN(t,e){if(t==null)return null;if(typeof t=="string")return t;if(Met(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return Tae(t)}catch{}return ba(t)}return t}function IQr(t){return Q2(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,n)=>String.fromCharCode(parseInt(n,16))))}function PQr(t,e,n){const r=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;_S.assertArgument(r>0&&r%1===0,"invalid connection throttle limit","connection.throttleLimit",r);const a=typeof t=="object"?t.throttleCallback:null,o=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;_S.assertArgument(o>0&&o%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const s=typeof t=="object"?!!t.errorPassThrough:!1,l={};let c=null;const u={method:"GET"};let d=!1,h=2*60*1e3;if(typeof t=="string")c=t;else if(typeof t=="object"){if((t==null||t.url==null)&&_S.throwArgumentError("missing URL","connection.url",t),c=t.url,typeof t.timeout=="number"&&t.timeout>0&&(h=t.timeout),t.headers)for(const A in t.headers)l[A.toLowerCase()]={key:A,value:String(t.headers[A])},["if-none-match","if-modified-since"].indexOf(A.toLowerCase())>=0&&(d=!0);if(u.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){c.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&_S.throwError("basic authentication requires a secure https url",hn.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:t.user,password:"[REDACTED]"});const A=t.user+":"+t.password;l.authorization={key:"Authorization",value:"Basic "+yen(Q2(A))}}t.skipFetchSetup!=null&&(u.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(u.fetchOptions=mp(t.fetchOptions))}const f=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),p=c?c.match(f):null;if(p)try{const A={statusCode:200,statusMessage:"OK",headers:{"content-type":p[1]||"text/plain"},body:p[2]?Aen(p[3]):IQr(p[3])};let y=A.body;return n&&(y=n(A.body,A)),Promise.resolve(y)}catch(A){_S.throwError("processing response error",hn.errors.SERVER_ERROR,{body:YN(p[1],p[2]),error:A,requestBody:null,requestMethod:"GET",url:c})}e&&(u.method="POST",u.body=e,l["content-type"]==null&&(l["content-type"]={key:"Content-Type",value:"application/octet-stream"}),l["content-length"]==null&&(l["content-length"]={key:"Content-Length",value:String(e.length)}));const m={};Object.keys(l).forEach(A=>{const y=l[A];m[y.key]=y.value}),u.headers=m;const g=function(){let A=null;return{promise:new Promise(function(x,w){h&&(A=setTimeout(()=>{A!=null&&(A=null,w(_S.makeError("timeout",hn.errors.TIMEOUT,{requestBody:YN(u.body,m["content-type"]),requestMethod:u.method,timeout:h,url:c})))},h))}),cancel:function(){A!=null&&(clearTimeout(A),A=null)}}}(),v=function(){return NQr(this,void 0,void 0,function*(){for(let A=0;A<r;A++){let y=null;try{if(y=yield MQr(c,u),A<r){if(y.statusCode===301||y.statusCode===302){const x=y.headers.location||"";if(u.method==="GET"&&x.match(/^https:/)){c=y.headers.location;continue}}else if(y.statusCode===429){let x=!0;if(a&&(x=yield a(A,c)),x){let w=0;const _=y.headers["retry-after"];typeof _=="string"&&_.match(/^[1-9][0-9]*$/)?w=parseInt(_)*1e3:w=o*parseInt(String(Math.random()*Math.pow(2,A))),yield Dyt(w);continue}}}}catch(x){y=x.response,y==null&&(g.cancel(),_S.throwError("missing response",hn.errors.SERVER_ERROR,{requestBody:YN(u.body,m["content-type"]),requestMethod:u.method,serverError:x,url:c}))}let S=y.body;if(d&&y.statusCode===304?S=null:!s&&(y.statusCode<200||y.statusCode>=300)&&(g.cancel(),_S.throwError("bad response",hn.errors.SERVER_ERROR,{status:y.statusCode,headers:y.headers,body:YN(S,y.headers?y.headers["content-type"]:null),requestBody:YN(u.body,m["content-type"]),requestMethod:u.method,url:c})),n)try{const x=yield n(S,y);return g.cancel(),x}catch(x){if(x.throttleRetry&&A<r){let w=!0;if(a&&(w=yield a(A,c)),w){const _=o*parseInt(String(Math.random()*Math.pow(2,A)));yield Dyt(_);continue}}g.cancel(),_S.throwError("processing response error",hn.errors.SERVER_ERROR,{body:YN(S,y.headers?y.headers["content-type"]:null),error:x,requestBody:YN(u.body,m["content-type"]),requestMethod:u.method,url:c})}return g.cancel(),S}return _S.throwError("failed response",hn.errors.SERVER_ERROR,{requestBody:YN(u.body,m["content-type"]),requestMethod:u.method,url:c})})}();return Promise.race([g.promise,v])}function Uet(t,e,n){let r=(o,s)=>{let l=null;if(o!=null)try{l=JSON.parse(Tae(o))}catch(c){_S.throwError("invalid JSON",hn.errors.SERVER_ERROR,{body:o,error:c})}return n&&(l=n(l,s)),l},a=null;if(e!=null){a=Q2(e);const o=typeof t=="string"?{url:t}:mp(t);o.headers?Object.keys(o.headers).filter(l=>l.toLowerCase()==="content-type").length!==0||(o.headers=mp(o.headers),o.headers["content-type"]="application/json"):o.headers={"content-type":"application/json"},t=o}return PQr(t,a,r)}function uZ(t,e){return e||(e={}),e=mp(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(n,r){let a=null,o=!1;const s=()=>o?!1:(o=!0,a&&clearTimeout(a),!0);e.timeout&&(a=setTimeout(()=>{s()&&r(new Error("timeout"))},e.timeout));const l=e.retryLimit;let c=0;function u(){return t().then(function(d){if(d!==void 0)s()&&n(d);else if(e.oncePoll)e.oncePoll.once("poll",u);else if(e.onceBlock)e.onceBlock.once("block",u);else if(!o){if(c++,c>l){s()&&r(new Error("retry limit reached"));return}let h=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));h<e.floor&&(h=e.floor),h>e.ceiling&&(h=e.ceiling),setTimeout(u,h)}return null},function(d){s()&&r(d)})}u()})}var X0e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",vUe={};for(var kce=0;kce<X0e.length;kce++){var vPe=X0e.charAt(kce);if(vUe[vPe]!==void 0)throw new TypeError(vPe+" is ambiguous");vUe[vPe]=kce}function Kj(t){var e=t>>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function otn(t){for(var e=1,n=0;n<t.length;++n){var r=t.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+t+")";e=Kj(e)^r>>5}for(e=Kj(e),n=0;n<t.length;++n){var a=t.charCodeAt(n);e=Kj(e)^a&31}return e}function OQr(t,e,n){if(n=n||90,t.length+7+e.length>n)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var r=otn(t);if(typeof r=="string")throw new Error(r);for(var a=t+"1",o=0;o<e.length;++o){var s=e[o];if(s>>5)throw new Error("Non 5-bit word");r=Kj(r)^s,a+=X0e.charAt(s)}for(o=0;o<6;++o)r=Kj(r);for(r^=1,o=0;o<6;++o){var l=r>>(5-o)*5&31;a+=X0e.charAt(l)}return a}function stn(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var n=t.toLowerCase(),r=t.toUpperCase();if(t!==n&&t!==r)return"Mixed-case string "+t;t=n;var a=t.lastIndexOf("1");if(a===-1)return"No separator character for "+t;if(a===0)return"Missing prefix for "+t;var o=t.slice(0,a),s=t.slice(a+1);if(s.length<6)return"Data too short";var l=otn(o);if(typeof l=="string")return l;for(var c=[],u=0;u<s.length;++u){var d=s.charAt(u),h=vUe[d];if(h===void 0)return"Unknown character "+d;l=Kj(l)^h,!(u+6>=s.length)&&c.push(h)}return l!==1?"Invalid checksum for "+t:{prefix:o,words:c}}function LQr(){var t=stn.apply(null,arguments);if(typeof t=="object")return t}function BQr(t){var e=stn.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function oSe(t,e,n,r){for(var a=0,o=0,s=(1<<n)-1,l=[],c=0;c<t.length;++c)for(a=a<<e|t[c],o+=e;o>=n;)o-=n,l.push(a>>o&s);if(r)o>0&&l.push(a<<n-o&s);else{if(o>=e)return"Excess padding";if(a<<n-o&s)return"Non-zero padding"}return l}function DQr(t){var e=oSe(t,8,5,!0);if(Array.isArray(e))return e}function $Qr(t){var e=oSe(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)}function FQr(t){var e=oSe(t,5,8,!1);if(Array.isArray(e))return e}function jQr(t){var e=oSe(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}var HQr={decodeUnsafe:LQr,decode:BQr,encode:OQr,toWordsUnsafe:DQr,toWords:$Qr,fromWordsUnsafe:FQr,fromWords:jQr};const $yt=Li(HQr),cO="providers/5.7.2",DQ=new hn(cO);let Fyt=class la{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},n=this.address.bind(this),r=this.bigNumber.bind(this),a=this.blockTag.bind(this),o=this.data.bind(this),s=this.hash.bind(this),l=this.hex.bind(this),c=this.number.bind(this),u=this.type.bind(this),d=h=>this.data(h,!0);return e.transaction={hash:s,type:u,accessList:la.allowNull(this.accessList.bind(this),null),blockHash:la.allowNull(s,null),blockNumber:la.allowNull(c,null),transactionIndex:la.allowNull(c,null),confirmations:la.allowNull(c,null),from:n,gasPrice:la.allowNull(r),maxPriorityFeePerGas:la.allowNull(r),maxFeePerGas:la.allowNull(r),gasLimit:r,to:la.allowNull(n,null),value:r,nonce:c,data:o,r:la.allowNull(this.uint256),s:la.allowNull(this.uint256),v:la.allowNull(c),creates:la.allowNull(n,null),raw:la.allowNull(o)},e.transactionRequest={from:la.allowNull(n),nonce:la.allowNull(c),gasLimit:la.allowNull(r),gasPrice:la.allowNull(r),maxPriorityFeePerGas:la.allowNull(r),maxFeePerGas:la.allowNull(r),to:la.allowNull(n),value:la.allowNull(r),data:la.allowNull(d),type:la.allowNull(c),accessList:la.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:s,address:n,topics:la.arrayOf(s),data:o,logIndex:c,blockHash:s},e.receipt={to:la.allowNull(this.address,null),from:la.allowNull(this.address,null),contractAddress:la.allowNull(n,null),transactionIndex:c,root:la.allowNull(l),gasUsed:r,logsBloom:la.allowNull(o),blockHash:s,transactionHash:s,logs:la.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:la.allowNull(c,null),cumulativeGasUsed:r,effectiveGasPrice:la.allowNull(r),status:la.allowNull(c),type:u},e.block={hash:la.allowNull(s),parentHash:s,number:c,timestamp:c,nonce:la.allowNull(l),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:la.allowNull(n),extraData:o,transactions:la.allowNull(la.arrayOf(s)),baseFeePerGas:la.allowNull(r)},e.blockWithTransactions=mp(e.block),e.blockWithTransactions.transactions=la.allowNull(la.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:la.allowNull(a,void 0),toBlock:la.allowNull(a,void 0),blockHash:la.allowNull(s,void 0),address:la.allowNull(n,void 0),topics:la.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:la.allowNull(c),blockHash:la.allowNull(s),transactionIndex:c,removed:la.allowNull(this.boolean.bind(this)),address:n,data:la.allowFalsish(o,"0x"),topics:la.arrayOf(s),transactionHash:s,logIndex:c},e}accessList(e){return kG(e||[])}number(e){return e==="0x"?0:$r.from(e).toNumber()}type(e){return e==="0x"||e==null?0:$r.from(e).toNumber()}bigNumber(e){return $r.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,n){return typeof e=="string"&&(!n&&e.substring(0,2)!=="0x"&&(e="0x"+e),Gl(e))?e.toLowerCase():DQ.throwArgumentError("invalid hash","value",e)}data(e,n){const r=this.hex(e,n);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return ph(e)}callAddress(e){if(!Gl(e,32))return null;const n=ph(rv(e,12));return n===bVr?null:n}contractAddress(e){return cen(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||Gl(e))return F3(e);throw new Error("invalid blockTag")}hash(e,n){const r=this.hex(e,n);return R6(r)!==32?DQ.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(e==null)return null;const n=$r.from(e);try{return n.toNumber()}catch{}return null}uint256(e){if(!Gl(e))throw new Error("invalid uint256");return md(e,32)}_block(e,n){e.author!=null&&e.miner==null&&(e.miner=e.author);const r=e._difficulty!=null?e._difficulty:e.difficulty,a=la.check(n,e);return a._difficulty=r==null?null:$r.from(r),a}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return la.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&$r.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const n=la.check(this.formats.transaction,e);if(e.chainId!=null){let r=e.chainId;Gl(r)&&(r=$r.from(r).toNumber()),n.chainId=r}else{let r=e.networkId;r==null&&n.v==null&&(r=e.chainId),Gl(r)&&(r=$r.from(r).toNumber()),typeof r!="number"&&n.v!=null&&(r=(n.v-35)/2,r<0&&(r=0),r=parseInt(r)),typeof r!="number"&&(r=0),n.chainId=r}return n.blockHash&&n.blockHash.replace(/0/g,"")==="x"&&(n.blockHash=null),n}transaction(e){return vQr(e)}receiptLog(e){return la.check(this.formats.receiptLog,e)}receipt(e){const n=la.check(this.formats.receipt,e);if(n.root!=null)if(n.root.length<=4){const r=$r.from(n.root).toNumber();r===0||r===1?(n.status!=null&&n.status!==r&&DQ.throwArgumentError("alt-root-status/status mismatch","value",{root:n.root,status:n.status}),n.status=r,delete n.root):DQ.throwArgumentError("invalid alt-root-status","value.root",n.root)}else n.root.length!==66&&DQ.throwArgumentError("invalid root hash","value.root",n.root);return n.status!=null&&(n.byzantium=!0),n}topics(e){return Array.isArray(e)?e.map(n=>this.topics(n)):e!=null?this.hash(e,!0):null}filter(e){return la.check(this.formats.filter,e)}filterLog(e){return la.check(this.formats.filterLog,e)}static check(e,n){const r={};for(const a in e)try{const o=e[a](n[a]);o!==void 0&&(r[a]=o)}catch(o){throw o.checkKey=a,o.checkValue=n[a],o}return r}static allowNull(e,n){return function(r){return r==null?n:e(r)}}static allowFalsish(e,n){return function(r){return r?e(r):n}}static arrayOf(e){return function(n){if(!Array.isArray(n))throw new Error("not an array");const r=[];return n.forEach(function(a){r.push(e(a))}),r}}},jyt=!1;function UQr(){jyt||(jyt=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded  (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var Mo=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const Ms=new hn(cO),zQr=10;function Hyt(t){return t==null?"null":(R6(t)!==32&&Ms.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function Uyt(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const n={};e.forEach(a=>{n[Hyt(a)]=!0});const r=Object.keys(n);return r.sort(),r.join("|")}else return Hyt(e)}).join("&")}function GQr(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const n=e.split("|").map(r=>r==="null"?null:r);return n.length===1?n[0]:n})}function h$(t){if(typeof t=="string"){if(t=t.toLowerCase(),R6(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+Uyt(t);if(bKr.isForkEvent(t))throw Ms.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+Uyt(t.topics||[])}throw new Error("invalid event - "+t)}function $Q(){return new Date().getTime()}function zyt(t){return new Promise(e=>{setTimeout(e,t)})}const VQr=["block","network","pending","poll"];let KQr=class{constructor(e,n,r){ir(this,"tag",e),ir(this,"listener",n),ir(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const n=e[1],r=GQr(e[2]),a={};return r.length>0&&(a.topics=r),n&&n!=="*"&&(a.address=n),a}pollable(){return this.tag.indexOf(":")>=0||VQr.indexOf(this.tag)>=0}};const WQr={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function APe(t){return md($r.from(t).toHexString(),32)}function Gyt(t){return gUe.encode(ky([t,rv(Iyt(Iyt(t)),0,4)]))}const ltn=new RegExp("^(ipfs)://(.*)$","i"),Vyt=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),ltn,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function bme(t,e){try{return Tae(yne(t,e))}catch{}return null}function yne(t,e){if(t==="0x")return null;const n=$r.from(rv(t,e,e+32)).toNumber(),r=$r.from(rv(t,n,n+32)).toNumber();return rv(t,n+32,n+32+r)}function yPe(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Ms.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function Kyt(t){const e=Ka(t);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function QQr(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function ctn(t){const e=[];let n=0;for(let r=0;r<t.length;r++)e.push(null),n+=32;for(let r=0;r<t.length;r++){const a=Ka(t[r]);e[r]=Kyt(n),e.push(Kyt(a.length)),e.push(QQr(a)),n+=32+Math.ceil(a.length/32)*32}return KA(e)}class Wyt{constructor(e,n,r,a){ir(this,"provider",e),ir(this,"name",r),ir(this,"address",e.formatter.address(n)),ir(this,"_resolvedAddress",a)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>$r.from(e).eq(1)).catch(e=>{if(e.code===hn.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,n){return Mo(this,void 0,void 0,function*(){const r={to:this.address,ccipReadEnabled:!0,data:KA([e,gme(this.name),n||"0x"])};let a=!1;(yield this.supportsWildcard())&&(a=!0,r.data=KA(["0x9061b923",ctn([aKr(this.name),r.data])]));try{let o=yield this.provider.call(r);return Ka(o).length%32===4&&Ms.throwError("resolver threw error",hn.errors.CALL_EXCEPTION,{transaction:r,data:o}),a&&(o=yne(o,0)),o}catch(o){if(o.code===hn.errors.CALL_EXCEPTION)return null;throw o}})}_fetchBytes(e,n){return Mo(this,void 0,void 0,function*(){const r=yield this._fetch(e,n);return r!=null?yne(r,0):null})}_getAddress(e,n){const r=WQr[String(e)];if(r==null&&Ms.throwError(`unsupported coin type: ${e}`,hn.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),r.ilk==="eth")return this.provider.formatter.address(n);const a=Ka(n);if(r.p2pkh!=null){const o=n.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(o){const s=parseInt(o[1],16);if(o[2].length===s*2&&s>=1&&s<=75)return Gyt(ky([[r.p2pkh],"0x"+o[2]]))}}if(r.p2sh!=null){const o=n.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){const s=parseInt(o[1],16);if(o[2].length===s*2&&s>=1&&s<=75)return Gyt(ky([[r.p2sh],"0x"+o[2]]))}}if(r.prefix!=null){const o=a[1];let s=a[0];if(s===0?o!==20&&o!==32&&(s=-1):s=-1,s>=0&&a.length===2+o&&o>=1&&o<=75){const l=$yt.toWords(a.slice(2));return l.unshift(s),$yt.encode(r.prefix,l)}}return null}getAddress(e){return Mo(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const a=yield this._fetch("0x3b3b57de");return a==="0x"||a===wVr?null:this.provider.formatter.callAddress(a)}catch(a){if(a.code===hn.errors.CALL_EXCEPTION)return null;throw a}const n=yield this._fetchBytes("0xf1cb7e06",APe(e));if(n==null||n==="0x")return null;const r=this._getAddress(e,n);return r==null&&Ms.throwError("invalid or unsupported coin data",hn.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:n}),r})}getAvatar(){return Mo(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const n=yield this.getText("avatar");if(n==null)return null;for(let r=0;r<Vyt.length;r++){const a=n.match(Vyt[r]);if(a==null)continue;const o=a[1].toLowerCase();switch(o){case"https":return e.push({type:"url",content:n}),{linkage:e,url:n};case"data":return e.push({type:"data",content:n}),{linkage:e,url:n};case"ipfs":return e.push({type:"ipfs",content:n}),{linkage:e,url:yPe(n)};case"erc721":case"erc1155":{const s=o==="erc721"?"0xc87b56dd":"0x0e89341c";e.push({type:o,content:n});const l=this._resolvedAddress||(yield this.getAddress()),c=(a[2]||"").split("/");if(c.length!==2)return null;const u=yield this.provider.formatter.address(c[0]),d=md($r.from(c[1]).toHexString(),32);if(o==="erc721"){const g=this.provider.formatter.callAddress(yield this.provider.call({to:u,data:KA(["0x6352211e",d])}));if(l!==g)return null;e.push({type:"owner",content:g})}else if(o==="erc1155"){const g=$r.from(yield this.provider.call({to:u,data:KA(["0x00fdd58e",md(l,32),d])}));if(g.isZero())return null;e.push({type:"balance",content:g.toString()})}const h={to:this.provider.formatter.address(c[0]),data:KA([s,d])};let f=bme(yield this.provider.call(h),0);if(f==null)return null;e.push({type:"metadata-url-base",content:f}),o==="erc1155"&&(f=f.replace("{id}",d.substring(2)),e.push({type:"metadata-url-expanded",content:f})),f.match(/^ipfs:/i)&&(f=yPe(f)),e.push({type:"metadata-url",content:f});const p=yield Uet(f);if(!p)return null;e.push({type:"metadata",content:JSON.stringify(p)});let m=p.image;if(typeof m!="string")return null;if(!m.match(/^(https:\/\/|data:)/i)){if(m.match(ltn)==null)return null;e.push({type:"url-ipfs",content:m}),m=yPe(m)}return e.push({type:"url",content:m}),{linkage:e,url:m}}}}}catch{}return null})}getContentHash(){return Mo(this,void 0,void 0,function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(e==null||e==="0x")return null;const n=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const s=parseInt(n[3],16);if(n[4].length===s*2)return"ipfs://"+gUe.encode("0x"+n[1])}const r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const s=parseInt(r[3],16);if(r[4].length===s*2)return"ipns://"+gUe.encode("0x"+r[1])}const a=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(a&&a[1].length===32*2)return"bzz://"+a[1];const o=e.match(/^0x90b2c605([0-9a-f]*)$/);if(o&&o[1].length===34*2){const s={"=":"","+":"-","/":"_"};return"sia://"+yen("0x"+o[1]).replace(/[=+\/]/g,c=>s[c])}return Ms.throwError("invalid or unsupported content hash data",hn.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Mo(this,void 0,void 0,function*(){let n=Q2(e);n=ky([APe(64),APe(n.length),n]),n.length%32!==0&&(n=ky([n,md("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",ba(n));return r==null||r==="0x"?null:Tae(r)})}}let bPe=null,qQr=1;class YQr extends Ren{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ir(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(n=>{}),this._ready().catch(n=>{});else{const n=Ry(new.target,"getNetwork")(e);n?(ir(this,"_network",n),this.emit("network",n,null)):Ms.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Mo(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||Ms.throwError("no network detected",hn.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:ir(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return uZ(()=>this._ready().then(e=>e,e=>{if(!(e.code===hn.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return bPe==null&&(bPe=new Fyt),bPe}static getNetwork(e){return CQr(e??"homestead")}ccipReadFetch(e,n,r){return Mo(this,void 0,void 0,function*(){if(this.disableCcipRead||r.length===0)return null;const a=e.to.toLowerCase(),o=n.toLowerCase(),s=[];for(let l=0;l<r.length;l++){const c=r[l],u=c.replace("{sender}",a).replace("{data}",o),d=c.indexOf("{data}")>=0?null:JSON.stringify({data:o,sender:a}),h=yield Uet({url:u,errorPassThrough:!0},d,(p,m)=>(p.status=m.statusCode,p));if(h.data)return h.data;const f=h.message||"unknown error";if(h.status>=400&&h.status<500)return Ms.throwError(`response not found during CCIP fetch: ${f}`,hn.errors.SERVER_ERROR,{url:c,errorMessage:f});s.push(f)}return Ms.throwError(`error encountered during CCIP fetch: ${s.map(l=>JSON.stringify(l)).join(", ")}`,hn.errors.SERVER_ERROR,{urls:r,errorMessages:s})})}_getInternalBlockNumber(e){return Mo(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const a=this._internalBlockNumber;try{const o=yield a;if($Q()-o.respTime<=e)return o.blockNumber;break}catch{if(this._internalBlockNumber===a)break}}const n=$Q(),r=kf({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(a=>null,a=>a)}).then(({blockNumber:a,networkError:o})=>{if(o)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),o;const s=$Q();return a=$r.from(a).toNumber(),a<this._maxInternalBlockNumber&&(a=this._maxInternalBlockNumber),this._maxInternalBlockNumber=a,this._setFastBlockNumber(a),{blockNumber:a,reqTime:n,respTime:s}});return this._internalBlockNumber=r,r.catch(a=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return Mo(this,void 0,void 0,function*(){const e=qQr++,n=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(a){this.emit("error",a);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)Ms.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",Ms.makeError("network block skew detected",hn.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let a=this._emitted.block+1;a<=r;a++)this.emit("block",a);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(a=>{if(a==="block")return;const o=this._emitted[a];o!=="pending"&&r-o>12&&delete this._emitted[a]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=r-1),this._events.forEach(a=>{switch(a.type){case"tx":{const o=a.hash;let s=this.getTransactionReceipt(o).then(l=>(!l||l.blockNumber==null||(this._emitted["t:"+o]=l.blockNumber,this.emit(o,l)),null)).catch(l=>{this.emit("error",l)});n.push(s);break}case"filter":{if(!a._inflight){a._inflight=!0,a._lastBlockNumber===-2&&(a._lastBlockNumber=r-1);const o=a.filter;o.fromBlock=a._lastBlockNumber+1,o.toBlock=r;const s=o.toBlock-this._maxFilterBlockRange;s>o.fromBlock&&(o.fromBlock=s),o.fromBlock<0&&(o.fromBlock=0);const l=this.getLogs(o).then(c=>{a._inflight=!1,c.length!==0&&c.forEach(u=>{u.blockNumber>a._lastBlockNumber&&(a._lastBlockNumber=u.blockNumber),this._emitted["b:"+u.blockHash]=u.blockNumber,this._emitted["t:"+u.transactionHash]=u.blockNumber,this.emit(o,u)})}).catch(c=>{this.emit("error",c),a._inflight=!1});n.push(l)}break}}}),this._lastBlockNumber=r,Promise.all(n).then(()=>{this.emit("didPoll",e)}).catch(a=>{this.emit("error",a)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Mo(this,void 0,void 0,function*(){return Ms.throwError("provider does not support network detection",hn.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Mo(this,void 0,void 0,function*(){const e=yield this._ready(),n=yield this.detectNetwork();if(e.chainId!==n.chainId){if(this.anyNetwork)return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,e),yield zyt(0),this._network;const r=Ms.makeError("underlying network changed",hn.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:n});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=$Q();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(n=>((this._fastBlockNumber==null||n>this._fastBlockNumber)&&(this._fastBlockNumber=n),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&e<this._fastBlockNumber||(this._fastQueryDate=$Q(),(this._fastBlockNumber==null||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,n,r){return Mo(this,void 0,void 0,function*(){return this._waitForTransaction(e,n??1,r||0,null)})}_waitForTransaction(e,n,r,a){return Mo(this,void 0,void 0,function*(){const o=yield this.getTransactionReceipt(e);return(o?o.confirmations:0)>=n?o:new Promise((s,l)=>{const c=[];let u=!1;const d=function(){return u?!0:(u=!0,c.forEach(f=>{f()}),!1)},h=f=>{f.confirmations<n||d()||s(f)};if(this.on(e,h),c.push(()=>{this.removeListener(e,h)}),a){let f=a.startBlock,p=null;const m=g=>Mo(this,void 0,void 0,function*(){u||(yield zyt(1e3),this.getTransactionCount(a.from).then(v=>Mo(this,void 0,void 0,function*(){if(!u){if(v<=a.nonce)f=g;else{{const A=yield this.getTransaction(e);if(A&&A.blockNumber!=null)return}for(p==null&&(p=f-3,p<a.startBlock&&(p=a.startBlock));p<=g;){if(u)return;const A=yield this.getBlockWithTransactions(p);for(let y=0;y<A.transactions.length;y++){const S=A.transactions[y];if(S.hash===e)return;if(S.from===a.from&&S.nonce===a.nonce){if(u)return;const x=yield this.waitForTransaction(S.hash,n);if(d())return;let w="replaced";S.data===a.data&&S.to===a.to&&S.value.eq(a.value)?w="repriced":S.data==="0x"&&S.from===S.to&&S.value.isZero()&&(w="cancelled"),l(Ms.makeError("transaction was replaced",hn.errors.TRANSACTION_REPLACED,{cancelled:w==="replaced"||w==="cancelled",reason:w,replacement:this._wrapTransaction(S),hash:e,receipt:x}));return}}p++}}u||this.once("block",m)}}),v=>{u||this.once("block",m)}))});if(u)return;this.once("block",m),c.push(()=>{this.removeListener("block",m)})}if(typeof r=="number"&&r>0){const f=setTimeout(()=>{d()||l(Ms.makeError("timeout exceeded",hn.errors.TIMEOUT,{timeout:r}))},r);f.unref&&f.unref(),c.push(()=>{clearTimeout(f)})}})})}getBlockNumber(){return Mo(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return $r.from(e)}catch(n){return Ms.throwError("bad result from backend",hn.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:n})}})}getBalance(e,n){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield kf({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),a=yield this.perform("getBalance",r);try{return $r.from(a)}catch(o){return Ms.throwError("bad result from backend",hn.errors.SERVER_ERROR,{method:"getBalance",params:r,result:a,error:o})}})}getTransactionCount(e,n){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield kf({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),a=yield this.perform("getTransactionCount",r);try{return $r.from(a).toNumber()}catch(o){return Ms.throwError("bad result from backend",hn.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:a,error:o})}})}getCode(e,n){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield kf({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),a=yield this.perform("getCode",r);try{return ba(a)}catch(o){return Ms.throwError("bad result from backend",hn.errors.SERVER_ERROR,{method:"getCode",params:r,result:a,error:o})}})}getStorageAt(e,n,r){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const a=yield kf({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(n).then(s=>F3(s))}),o=yield this.perform("getStorageAt",a);try{return ba(o)}catch(s){return Ms.throwError("bad result from backend",hn.errors.SERVER_ERROR,{method:"getStorageAt",params:a,result:o,error:s})}})}_wrapTransaction(e,n,r){if(n!=null&&R6(n)!==32)throw new Error("invalid response - sendTransaction");const a=e;return n!=null&&e.hash!==n&&Ms.throwError("Transaction hash mismatch from Provider.sendTransaction.",hn.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:n}),a.wait=(o,s)=>Mo(this,void 0,void 0,function*(){o==null&&(o=1),s==null&&(s=0);let l;o!==0&&r!=null&&(l={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const c=yield this._waitForTransaction(e.hash,o,s,l);return c==null&&o===0?null:(this._emitted["t:"+e.hash]=c.blockNumber,c.status===0&&Ms.throwError("transaction failed",hn.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:c}),c)}),a}sendTransaction(e){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Promise.resolve(e).then(o=>ba(o)),r=this.formatter.transaction(e);r.confirmations==null&&(r.confirmations=0);const a=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const o=yield this.perform("sendTransaction",{signedTransaction:n});return this._wrapTransaction(r,o,a)}catch(o){throw o.transaction=r,o.transactionHash=r.hash,o}})}_getTransactionRequest(e){return Mo(this,void 0,void 0,function*(){const n=yield e,r={};return["from","to"].forEach(a=>{n[a]!=null&&(r[a]=Promise.resolve(n[a]).then(o=>o?this._getAddress(o):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(a=>{n[a]!=null&&(r[a]=Promise.resolve(n[a]).then(o=>o?$r.from(o):null))}),["type"].forEach(a=>{n[a]!=null&&(r[a]=Promise.resolve(n[a]).then(o=>o??null))}),n.accessList&&(r.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(a=>{n[a]!=null&&(r[a]=Promise.resolve(n[a]).then(o=>o?ba(o):null))}),this.formatter.transactionRequest(yield kf(r))})}_getFilter(e){return Mo(this,void 0,void 0,function*(){e=yield e;const n={};return e.address!=null&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{e[r]!=null&&(n[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{e[r]!=null&&(n[r]=this._getBlockTag(e[r]))}),this.formatter.filter(yield kf(n))})}_call(e,n,r){return Mo(this,void 0,void 0,function*(){r>=zQr&&Ms.throwError("CCIP read exceeded maximum redirections",hn.errors.SERVER_ERROR,{redirects:r,transaction:e});const a=e.to,o=yield this.perform("call",{transaction:e,blockTag:n});if(r>=0&&n==="latest"&&a!=null&&o.substring(0,10)==="0x556f1830"&&R6(o)%32===4)try{const s=rv(o,4),l=rv(s,0,32);$r.from(l).eq(a)||Ms.throwError("CCIP Read sender did not match",hn.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const c=[],u=$r.from(rv(s,32,64)).toNumber(),d=$r.from(rv(s,u,u+32)).toNumber(),h=rv(s,u+32);for(let A=0;A<d;A++){const y=bme(h,A*32);y==null&&Ms.throwError("CCIP Read contained corrupt URL string",hn.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),c.push(y)}const f=yne(s,64);$r.from(rv(s,100,128)).isZero()||Ms.throwError("CCIP Read callback selector included junk",hn.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const p=rv(s,96,100),m=yne(s,128),g=yield this.ccipReadFetch(e,f,c);g==null&&Ms.throwError("CCIP Read disabled or provided no URLs",hn.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const v={to:a,data:KA([p,ctn([g,m])])};return this._call(v,n,r+1)}catch(s){if(s.code===hn.errors.SERVER_ERROR)throw s}try{return ba(o)}catch(s){return Ms.throwError("bad result from backend",hn.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:n},result:o,error:s})}})}call(e,n){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield kf({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(n),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield kf({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",n);try{return $r.from(r)}catch(a){return Ms.throwError("bad result from backend",hn.errors.SERVER_ERROR,{method:"estimateGas",params:n,result:r,error:a})}})}_getAddress(e){return Mo(this,void 0,void 0,function*(){e=yield e,typeof e!="string"&&Ms.throwArgumentError("invalid address or ENS name","name",e);const n=yield this.resolveName(e);return n==null&&Ms.throwError("ENS name not configured",hn.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),n})}_getBlock(e,n){return Mo(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128;const a={includeTransactions:!!n};if(Gl(e,32))a.blockHash=e;else try{a.blockTag=yield this._getBlockTag(e),Gl(a.blockTag)&&(r=parseInt(a.blockTag.substring(2),16))}catch{Ms.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return uZ(()=>Mo(this,void 0,void 0,function*(){const o=yield this.perform("getBlock",a);if(o==null)return a.blockHash!=null&&this._emitted["b:"+a.blockHash]==null||a.blockTag!=null&&r>this._emitted.block?null:void 0;if(n){let s=null;for(let c=0;c<o.transactions.length;c++){const u=o.transactions[c];if(u.blockNumber==null)u.confirmations=0;else if(u.confirmations==null){s==null&&(s=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let d=s-u.blockNumber+1;d<=0&&(d=1),u.confirmations=d}}const l=this.formatter.blockWithTransactions(o);return l.transactions=l.transactions.map(c=>this._wrapTransaction(c)),l}return this.formatter.block(o)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Mo(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const n={transactionHash:this.formatter.hash(e,!0)};return uZ(()=>Mo(this,void 0,void 0,function*(){const r=yield this.perform("getTransaction",n);if(r==null)return this._emitted["t:"+e]==null?null:void 0;const a=this.formatter.transactionResponse(r);if(a.blockNumber==null)a.confirmations=0;else if(a.confirmations==null){let s=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-a.blockNumber+1;s<=0&&(s=1),a.confirmations=s}return this._wrapTransaction(a)}),{oncePoll:this})})}getTransactionReceipt(e){return Mo(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const n={transactionHash:this.formatter.hash(e,!0)};return uZ(()=>Mo(this,void 0,void 0,function*(){const r=yield this.perform("getTransactionReceipt",n);if(r==null)return this._emitted["t:"+e]==null?null:void 0;if(r.blockHash==null)return;const a=this.formatter.receipt(r);if(a.blockNumber==null)a.confirmations=0;else if(a.confirmations==null){let s=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-a.blockNumber+1;s<=0&&(s=1),a.confirmations=s}return a}),{oncePoll:this})})}getLogs(e){return Mo(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield kf({filter:this._getFilter(e)}),r=yield this.perform("getLogs",n);return r.forEach(a=>{a.removed==null&&(a.removed=!1)}),Fyt.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return Mo(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Mo(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Ms.throwArgumentError("invalid BlockTag","blockTag",e);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return n+=e,n<0&&(n=0),this.formatter.blockTag(n)}return this.formatter.blockTag(e)})}getResolver(e){return Mo(this,void 0,void 0,function*(){let n=e;for(;;){if(n===""||n==="."||e!=="eth"&&n==="eth")return null;const r=yield this._getResolver(n,"getResolver");if(r!=null){const a=new Wyt(this,r,e);return n!==e&&!(yield a.supportsWildcard())?null:a}n=n.split(".").slice(1).join(".")}})}_getResolver(e,n){return Mo(this,void 0,void 0,function*(){n==null&&(n="ENS");const r=yield this.getNetwork();r.ensAddress||Ms.throwError("network does not support ENS",hn.errors.UNSUPPORTED_OPERATION,{operation:n,network:r.name});try{const a=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+gme(e).substring(2)});return this.formatter.callAddress(a)}catch{}return null})}resolveName(e){return Mo(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(r){if(Gl(e))throw r}typeof e!="string"&&Ms.throwArgumentError("invalid ENS name","name",e);const n=yield this.getResolver(e);return n?yield n.getAddress():null})}lookupAddress(e){return Mo(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const n=e.substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(n,"lookupAddress");if(r==null)return null;const a=bme(yield this.call({to:r,data:"0x691f3431"+gme(n).substring(2)}),0);return(yield this.resolveName(a))!=e?null:a})}getAvatar(e){return Mo(this,void 0,void 0,function*(){let n=null;if(Gl(e)){const o=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",s=yield this._getResolver(o,"getAvatar");if(!s)return null;n=new Wyt(this,s,o);try{const l=yield n.getAvatar();if(l)return l.url}catch(l){if(l.code!==hn.errors.CALL_EXCEPTION)throw l}try{const l=bme(yield this.call({to:s,data:"0x691f3431"+gme(o).substring(2)}),0);n=yield this.getResolver(l)}catch(l){if(l.code!==hn.errors.CALL_EXCEPTION)throw l;return null}}else if(n=yield this.getResolver(e),!n)return null;const r=yield n.getAvatar();return r==null?null:r.url})}perform(e,n){return Ms.throwError(e+" not implemented",hn.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(n=>n.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(n=>n.pollable()).length>0}_addEventListener(e,n,r){const a=new KQr(h$(e),n,r);return this._events.push(a),this._startEvent(a),this}on(e,n){return this._addEventListener(e,n,!1)}once(e,n){return this._addEventListener(e,n,!0)}emit(e,...n){let r=!1,a=[],o=h$(e);return this._events=this._events.filter(s=>s.tag!==o?!0:(setTimeout(()=>{s.listener.apply(this,n)},0),r=!0,s.once?(a.push(s),!1):!0)),a.forEach(s=>{this._stopEvent(s)}),r}listenerCount(e){if(!e)return this._events.length;let n=h$(e);return this._events.filter(r=>r.tag===n).length}listeners(e){if(e==null)return this._events.map(r=>r.listener);let n=h$(e);return this._events.filter(r=>r.tag===n).map(r=>r.listener)}off(e,n){if(n==null)return this.removeAllListeners(e);const r=[];let a=!1,o=h$(e);return this._events=this._events.filter(s=>s.tag!==o||s.listener!=n||a?!0:(a=!0,r.push(s),!1)),r.forEach(s=>{this._stopEvent(s)}),this}removeAllListeners(e){let n=[];if(e==null)n=this._events,this._events=[];else{const r=h$(e);this._events=this._events.filter(a=>a.tag!==r?!0:(n.push(a),!1))}return n.forEach(r=>{this._stopEvent(r)}),this}}var fR=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const Rf=new hn(cO),JQr=["call","estimateGas"];function HX(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const n=Gl(t.data)?t.data:null;if(!e||n)return{message:t.message,data:n}}if(typeof t=="object"){for(const n in t){const r=HX(t[n],e);if(r)return r}return null}if(typeof t=="string")try{return HX(JSON.parse(t),e)}catch{}return null}function utn(t,e,n){const r=n.transaction||n.signedTransaction;if(t==="call"){const o=HX(e,!0);if(o)return o.data;Rf.throwError("missing revert data in call exception; Transaction reverted without a reason string",hn.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:e})}if(t==="estimateGas"){let o=HX(e.body,!1);o==null&&(o=HX(e,!1)),o&&Rf.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",hn.errors.UNPREDICTABLE_GAS_LIMIT,{reason:o.message,method:t,transaction:r,error:e})}let a=e.message;throw e.code===hn.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?a=e.error.message:typeof e.body=="string"?a=e.body:typeof e.responseText=="string"&&(a=e.responseText),a=(a||"").toLowerCase(),a.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Rf.throwError("insufficient funds for intrinsic transaction cost",hn.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),a.match(/nonce (is )?too low/i)&&Rf.throwError("nonce has already been used",hn.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),a.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Rf.throwError("replacement fee too low",hn.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),a.match(/only replay-protected/i)&&Rf.throwError("legacy pre-eip-155 transactions not supported",hn.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:r}),JQr.indexOf(t)>=0&&a.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Rf.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",hn.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}function Qyt(t){return new Promise(function(e){setTimeout(e,t)})}function ZQr(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function FQ(t){return t&&t.toLowerCase()}const AUe={};class dtn extends Cae{constructor(e,n,r){if(super(),e!==AUe)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ir(this,"provider",n),r==null&&(r=0),typeof r=="string"?(ir(this,"_address",this.provider.formatter.address(r)),ir(this,"_index",null)):typeof r=="number"?(ir(this,"_index",r),ir(this,"_address",null)):Rf.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return Rf.throwError("cannot alter JSON-RPC Signer connection",hn.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new XQr(AUe,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&Rf.throwError("unknown account #"+this._index,hn.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=mp(e);const n=this.getAddress().then(r=>(r&&(r=r.toLowerCase()),r));if(e.gasLimit==null){const r=mp(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(r=>fR(this,void 0,void 0,function*(){if(r==null)return null;const a=yield this.provider.resolveName(r);return a==null&&Rf.throwArgumentError("provided ENS name resolves to null","tx.to",r),a}))),kf({tx:kf(e),sender:n}).then(({tx:r,sender:a})=>{r.from!=null?r.from.toLowerCase()!==a&&Rf.throwArgumentError("from address mismatch","transaction",e):r.from=a;const o=this.provider.constructor.hexlifyTransaction(r,{from:!0});return this.provider.send("eth_sendTransaction",[o]).then(s=>s,s=>(typeof s.message=="string"&&s.message.match(/user denied/i)&&Rf.throwError("user rejected transaction",hn.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),utn("sendTransaction",s,o)))})}signTransaction(e){return Rf.throwError("signing transactions is unsupported",hn.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return fR(this,void 0,void 0,function*(){const n=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield uZ(()=>fR(this,void 0,void 0,function*(){const a=yield this.provider.getTransaction(r);if(a!==null)return this.provider._wrapTransaction(a,r,n)}),{oncePoll:this.provider})}catch(a){throw a.transactionHash=r,a}})}signMessage(e){return fR(this,void 0,void 0,function*(){const n=typeof e=="string"?Q2(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[ba(n),r.toLowerCase()])}catch(a){throw typeof a.message=="string"&&a.message.match(/user denied/i)&&Rf.throwError("user rejected signing",hn.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),a}})}_legacySignMessage(e){return fR(this,void 0,void 0,function*(){const n=typeof e=="string"?Q2(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),ba(n)])}catch(a){throw typeof a.message=="string"&&a.message.match(/user denied/i)&&Rf.throwError("user rejected signing",hn.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),a}})}_signTypedData(e,n,r){return fR(this,void 0,void 0,function*(){const a=yield gy.resolveNames(e,n,r,s=>this.provider.resolveName(s)),o=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(gy.getPayload(a.domain,n,a.value))])}catch(s){throw typeof s.message=="string"&&s.message.match(/user denied/i)&&Rf.throwError("user rejected signing",hn.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:a.domain,types:n,value:a.value}}),s}})}unlock(e){return fR(this,void 0,void 0,function*(){const n=this.provider,r=yield this.getAddress();return n.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class XQr extends dtn{sendTransaction(e){return this.sendUncheckedTransaction(e).then(n=>({hash:n,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:r=>this.provider.waitForTransaction(n,r)}))}}const eqr={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class sSe extends YQr{constructor(e,n){let r=n;r==null&&(r=new Promise((a,o)=>{setTimeout(()=>{this.detectNetwork().then(s=>{a(s)},s=>{o(s)})},0)})),super(r),e||(e=Ry(this.constructor,"defaultUrl")()),typeof e=="string"?ir(this,"connection",Object.freeze({url:e})):ir(this,"connection",Object.freeze(mp(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return fR(this,void 0,void 0,function*(){yield Qyt(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const n=Ry(this.constructor,"getNetwork");try{return n($r.from(e).toNumber())}catch(r){return Rf.throwError("could not detect network",hn.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:r})}}return Rf.throwError("could not detect network",hn.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new dtn(AUe,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(n=>this.formatter.address(n)))}send(e,n){const r={method:e,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:EM(r),provider:this});const a=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(a&&this._cache[e])return this._cache[e];const o=Uet(this.connection,JSON.stringify(r),ZQr).then(s=>(this.emit("debug",{action:"response",request:r,response:s,provider:this}),s),s=>{throw this.emit("debug",{action:"response",error:s,request:r,provider:this}),s});return a&&(this._cache[e]=o,setTimeout(()=>{this._cache[e]=null},0)),o}prepareRequest(e,n){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[FQ(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[FQ(n.address),n.blockTag]];case"getCode":return["eth_getCode",[FQ(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[FQ(n.address),md(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":return["eth_call",[Ry(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0}),n.blockTag]];case"estimateGas":return["eth_estimateGas",[Ry(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0})]];case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=FQ(n.filter.address)),["eth_getLogs",[n.filter]]}return null}perform(e,n){return fR(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const a=n.transaction;if(a&&a.type!=null&&$r.from(a.type).isZero()&&a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null){const o=yield this.getFeeData();o.maxFeePerGas==null&&o.maxPriorityFeePerGas==null&&(n=mp(n),n.transaction=mp(a),delete n.transaction.type)}}const r=this.prepareRequest(e,n);r==null&&Rf.throwError(e+" not implemented",hn.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(a){return utn(e,a,n)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(r){function a(){e.send("eth_getFilterChanges",[r]).then(function(o){if(e._pendingFilter!=n)return null;let s=Promise.resolve();return o.forEach(function(l){e._emitted["t:"+l.toLowerCase()]="pending",s=s.then(function(){return e.getTransaction(l).then(function(c){return e.emit("pending",c),null})})}),s.then(function(){return Qyt(1e3)})}).then(function(){if(e._pendingFilter!=n){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){a()},0),null}).catch(o=>{})}return a(),r}).catch(r=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,n){const r=mp(eqr);if(n)for(const o in n)n[o]&&(r[o]=!0);YGr(e,r);const a={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(e[o]==null)return;const s=F3($r.from(e[o]));o==="gasLimit"&&(o="gas"),a[o]=s}),["from","to","data"].forEach(function(o){e[o]!=null&&(a[o]=ba(e[o]))}),e.accessList&&(a.accessList=kG(e.accessList)),a}}let UX=null;try{if(UX=WebSocket,UX==null)throw new Error("inject please")}catch{const e=new hn(cO);UX=function(){e.throwError("WebSockets not supported in this environment",hn.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var xPe=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const Rce=new hn(cO);let tqr=1;class nqr extends sSe{constructor(e,n){n==="any"&&Rce.throwError("WebSocketProvider does not support 'any' network yet",hn.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),typeof e=="string"?super(e,n):super("_websocket",n),this._pollingInterval=-1,this._wsReady=!1,typeof e=="string"?ir(this,"_websocket",new UX(this.connection.url)):ir(this,"_websocket",e),ir(this,"_requests",{}),ir(this,"_subs",{}),ir(this,"_subIds",{}),ir(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(a=>{this.websocket.send(this._requests[a].payload)})},this.websocket.onmessage=a=>{const o=a.data,s=JSON.parse(o);if(s.id!=null){const l=String(s.id),c=this._requests[l];if(delete this._requests[l],s.result!==void 0)c.callback(null,s.result),this.emit("debug",{action:"response",request:JSON.parse(c.payload),response:s.result,provider:this});else{let u=null;s.error?(u=new Error(s.error.message||"unknown error"),ir(u,"code",s.error.code||null),ir(u,"response",o)):u=new Error("unknown error"),c.callback(u,void 0),this.emit("debug",{action:"response",error:u,request:JSON.parse(c.payload),provider:this})}}else if(s.method==="eth_subscription"){const l=this._subs[s.params.subscription];l&&l.processFunc(s.params.result)}else console.warn("this should not happen")};const r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){Rce.throwError("cannot reset events block on WebSocketProvider",hn.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){Rce.throwError("cannot set polling interval on WebSocketProvider",hn.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return xPe(this,void 0,void 0,function*(){return null})}set polling(e){e&&Rce.throwError("cannot set polling on WebSocketProvider",hn.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,n){const r=tqr++;return new Promise((a,o)=>{function s(c,u){return c?o(c):a(u)}const l=JSON.stringify({method:e,params:n,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(l),provider:this}),this._requests[String(r)]={callback:s,payload:l},this._wsReady&&this.websocket.send(l)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,n,r){return xPe(this,void 0,void 0,function*(){let a=this._subIds[e];a==null&&(a=Promise.all(n).then(s=>this.send("eth_subscribe",s)),this._subIds[e]=a);const o=yield a;this._subs[o]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],n=>{const r=$r.from(n.number).toNumber();this._emitted.block=r,this.emit("block",r)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],n=>{this.emit("pending",n)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],n=>{n.removed==null&&(n.removed=!1),this.emit(e.filter,this.formatter.filterLog(n))});break;case"tx":{const n=r=>{const a=r.hash;this.getTransactionReceipt(a).then(o=>{o&&this.emit(a,o)})};n(e),this._subscribe("tx",["newHeads"],r=>{this._events.filter(a=>a.type==="tx").forEach(n)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e);break}}_stopEvent(e){let n=e.tag;if(e.type==="tx"){if(this._events.filter(a=>a.type==="tx").length)return;n="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[n];r&&(delete this._subIds[n],r.then(a=>{this._subs[a]&&(delete this._subs[a],this.send("eth_unsubscribe",[a]))}))}destroy(){return xPe(this,void 0,void 0,function*(){this.websocket.readyState===UX.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}var rqr=globalThis&&globalThis.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})};const dZ=new hn(cO);class iqr extends sSe{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return rqr(this,void 0,void 0,function*(){let n=this.network;return n==null&&(n=yield e.detectNetwork.call(this),n||dZ.throwError("no network detected",hn.errors.UNKNOWN_ERROR,{}),this._network==null&&(ir(this,"_network",n),this.emit("network",n,null))),n})}}class zet extends iqr{constructor(e,n){dZ.checkAbstract(new.target,zet),e=Ry(new.target,"getNetwork")(e),n=Ry(new.target,"getApiKey")(n);const r=Ry(new.target,"getUrl")(e,n);super(r,e),typeof n=="string"?ir(this,"apiKey",n):n!=null&&Object.keys(n).forEach(a=>{ir(this,a,n[a])})}_startPending(){dZ.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return dZ.throwError("API provider does not support signing",hn.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,n){return dZ.throwError("not implemented; sub-classes must override getUrl",hn.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const xme=new hn(cO),hZ="84842078b09946638c03157f83405213";class aqr extends nqr{constructor(e,n){const r=new htn(e,n),a=r.connection;a.password&&xme.throwError("INFURA WebSocket project secrets unsupported",hn.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const o=a.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(o,e),ir(this,"apiKey",r.projectId),ir(this,"projectId",r.projectId),ir(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===hZ}}class htn extends zet{static getWebSocketProvider(e,n){return new aqr(e,n)}static getApiKey(e){const n={apiKey:hZ,projectId:hZ,projectSecret:null};return e==null||(typeof e=="string"?n.projectId=e:e.projectSecret!=null?(xme.assertArgument(typeof e.projectId=="string","projectSecret requires a projectId","projectId",e.projectId),xme.assertArgument(typeof e.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=e.projectId,n.projectSecret=e.projectSecret):e.projectId&&(n.projectId=e.projectId),n.apiKey=n.projectId),n}static getUrl(e,n){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:xme.throwError("unsupported network",hn.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const a={allowGzip:!0,url:"https://"+r+"/v3/"+n.projectId,throttleCallback:(o,s)=>(n.projectId===hZ&&UQr(),Promise.resolve(!0))};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a}isCommunityResource(){return this.projectId===hZ}}const qyt=new hn(cO);let oqr=1;function Yyt(t,e){const n="Web3LegacyFetcher";return function(r,a){const o={method:r,params:a,id:oqr++,jsonrpc:"2.0"};return new Promise((s,l)=>{this.emit("debug",{action:"request",fetcher:n,request:EM(o),provider:this}),e(o,(c,u)=>{if(c)return this.emit("debug",{action:"response",fetcher:n,error:c,request:o,provider:this}),l(c);if(this.emit("debug",{action:"response",fetcher:n,request:o,response:u,provider:this}),u.error){const d=new Error(u.error.message);return d.code=u.error.code,d.data=u.error.data,l(d)}s(u.result)})})}}function sqr(t){return function(e,n){n==null&&(n=[]);const r={method:e,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:EM(r),provider:this}),t.request(r).then(a=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:a,provider:this}),a),a=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:a,provider:this}),a})}}class sP extends sSe{constructor(e,n){e==null&&qyt.throwArgumentError("missing provider","provider",e);let r=null,a=null,o=null;typeof e=="function"?(r="unknown:",a=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),o=e,e.request?(r===""&&(r="eip-1193:"),a=sqr(e)):e.sendAsync?a=Yyt(e,e.sendAsync.bind(e)):e.send?a=Yyt(e,e.send.bind(e)):qyt.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,n),ir(this,"jsonRpcFetchFunc",a),ir(this,"provider",o)}send(e,n){return this.jsonRpcFetchFunc(e,n)}}const lqr="units/5.7.0",cqr=new hn(lqr),ftn=["wei","kwei","mwei","gwei","szabo","finney","ether"];function uqr(t,e){if(typeof e=="string"){const n=ftn.indexOf(e);n!==-1&&(e=3*n)}return pme(t,e??18)}function dqr(t,e){if(typeof t!="string"&&cqr.throwArgumentError("value must be a string","value",t),typeof e=="string"){const n=ftn.indexOf(e);n!==-1&&(e=3*n)}return aT(t,e??18)}function ptn(t){return uqr(t,18)}const Dl={WALLET_ID:"@w3m/wallet_id",ERROR_CODE_UNRECOGNIZED_CHAIN_ID:4902,ERROR_CODE_DEFAULT:5e3},Wp={getCaipDefaultChain(t){if(t)return{id:`${Hi.EIP155}:${t.chainId}`,name:t.name,imageId:Kg.EIP155NetworkImageIds[t.chainId]}},hexStringToNumber(t){const e=t.startsWith("0x")?t.slice(2):t;return parseInt(e,16)},numberToHexString(t){return`0x${t.toString(16)}`},async getUserInfo(t){const[e,n]=await Promise.all([Wp.getAddress(t),Wp.getChainId(t)]);return{chainId:n,address:e}},async getChainId(t){const e=await t.request({method:"eth_chainId"});return Number(e)},async getAddress(t){const[e]=await t.request({method:"eth_accounts"});return e},async addEthereumChain(t,e){await t.request({method:"wallet_addEthereumChain",params:[{chainId:Wp.numberToHexString(e.chainId),rpcUrls:[e.rpcUrl],chainName:e.name,nativeCurrency:{name:e.currency,decimals:18,symbol:e.currency},blockExplorerUrls:[e.explorerUrl],iconUrls:[Kg.EIP155NetworkImageIds[e.chainId]]}]})}},Bg=Rv({provider:void 0,providerType:void 0,address:void 0,chainId:void 0,isConnected:!1}),Mi={state:Bg,subscribeKey(t,e){return cE(Bg,t,e)},subscribe(t){return Uw(Bg,()=>t(Bg))},setProvider(t){t&&(Bg.provider=JH(t))},setProviderType(t){Bg.providerType=t},setAddress(t){Bg.address=t},setChainId(t){Bg.chainId=t},setIsConnected(t){Bg.isConnected=t},setError(t){Bg.error=t},reset(){Bg.provider=void 0,Bg.address=void 0,Bg.chainId=void 0,Bg.providerType=void 0,Bg.isConnected=!1,Bg.error=void 0}};class hqr extends JDr{constructor(e){const{ethersConfig:n,siweConfig:r,chains:a,defaultChain:o,tokens:s,chainImages:l,_sdkVersion:c,...u}=e;if(!n)throw new Error("web3modal:constructor - ethersConfig is undefined");if(!u.projectId)throw new Error("web3modal:constructor - projectId is undefined");const d={switchCaipNetwork:async f=>{const p=mce.caipNetworkIdToNumber(f==null?void 0:f.id);if(p)try{await this.switchNetwork(p)}catch(m){Mi.setError(m)}},getApprovedCaipNetworksData:async()=>new Promise(async f=>{var m,g,v,A;const p=localStorage.getItem(Dl.WALLET_ID);if(p!=null&&p.includes(Hi.WALLET_CONNECT_CONNECTOR_ID)){const y=await this.getWalletConnectProvider();if(!y)throw new Error("networkControllerClient:getApprovedCaipNetworks - provider is undefined");const S=(g=(m=y.signer)==null?void 0:m.session)==null?void 0:g.namespaces,x=(v=S==null?void 0:S[Hi.EIP155])==null?void 0:v.methods,w=(A=S==null?void 0:S[Hi.EIP155])==null?void 0:A.chains,_={supportsAllNetworks:(x==null?void 0:x.includes(Hi.ADD_CHAIN_METHOD))??!1,approvedCaipNetworkIds:w};f(_)}else f({approvedCaipNetworkIds:void 0,supportsAllNetworks:!0})})},h={connectWalletConnect:async f=>{const p=await this.getWalletConnectProvider();if(!p)throw new Error("connectionControllerClient:getWalletConnectUri - provider is undefined");p.on("display_uri",m=>{f(m)}),await p.connect(),await this.setWalletConnectProvider()},connectExternal:async({id:f,info:p,provider:m})=>{if(f===Hi.INJECTED_CONNECTOR_ID){const g=n.injected;if(!g)throw new Error("connectionControllerClient:connectInjected - provider is undefined");try{await g.request({method:"eth_requestAccounts"}),this.setInjectedProvider(n)}catch(v){Mi.setError(v)}}else if(f===Hi.EIP6963_CONNECTOR_ID&&p&&m){try{await m.request({method:"eth_requestAccounts"})}catch(g){Mi.setError(g)}this.setEIP6963Provider(m,p.name)}else if(f===Hi.COINBASE_CONNECTOR_ID){const g=n.coinbase;if(!g)throw new Error("connectionControllerClient:connectCoinbase - connector is undefined");try{this.setCoinbaseProvider(n),await g.request({method:"eth_requestAccounts"})}catch(v){Mi.setError(v)}}},checkInstalled(f){return f?n.injected&&!(window!=null&&window.ethereum)?!1:f.some(p=>{var m;return!!((m=window.ethereum)!=null&&m[String(p)])}):!!window.ethereum},disconnect:async()=>{var m;const f=Mi.state.provider,p=Mi.state.providerType;localStorage.removeItem(Dl.WALLET_ID),Mi.reset(),(m=r==null?void 0:r.options)!=null&&m.signOutOnDisconnect&&await r.signOut(),p===Hi.WALLET_CONNECT_CONNECTOR_ID?await f.disconnect():f&&f.emit("disconnect")},signMessage:async f=>{const p=Mi.state.provider;if(!p)throw new Error("connectionControllerClient:signMessage - provider is undefined");return await p.request({method:"personal_sign",params:[f,this.getAddress()]})}};super({networkControllerClient:d,connectionControllerClient:h,siweControllerClient:r,defaultChain:Wp.getCaipDefaultChain(o),tokens:mce.getCaipTokens(s),_sdkVersion:c??`html-ethers5-${Hi.VERSION}`,...u}),this.hasSyncedConnectedAccount=!1,this.EIP6963Providers=[],this.options=void 0,this.options=e,this.metadata=n.metadata,this.projectId=u.projectId,this.chains=a,this.createProvider(),Mi.subscribeKey("address",()=>{this.syncAccount()}),Mi.subscribeKey("chainId",()=>{this.syncNetwork(l)}),this.syncRequestedNetworks(a,l),this.syncConnectors(n),n.EIP6963&&typeof window<"u"&&(this.listenConnectors(n.EIP6963),this.checkActive6963Provider()),n.injected&&this.checkActiveInjectedProvider(n),n.coinbase&&this.checkActiveCoinbaseProvider(n)}getState(){const e=super.getState();return{...e,selectedNetworkId:mce.caipNetworkIdToNumber(e.selectedNetworkId)}}subscribeState(e){return super.subscribeState(n=>e({...n,selectedNetworkId:mce.caipNetworkIdToNumber(n.selectedNetworkId)}))}setAddress(e){const n=e?ph(e):void 0;Mi.setAddress(n)}getAddress(){const{address:e}=Mi.state;return e&&ph(e)}getError(){return Mi.state.error}getChainId(){return Mi.state.chainId}getIsConnected(){return Mi.state.isConnected}getWalletProvider(){return Mi.state.provider}getWalletProviderType(){return Mi.state.providerType}subscribeProvider(e){return Mi.subscribe(e)}async disconnect(){const{provider:e,providerType:n}=Mi.state;localStorage.removeItem(Dl.WALLET_ID),Mi.reset(),n==="injected"||n==="eip6963"?e==null||e.emit("disconnect"):await e.disconnect()}createProvider(){return!this.walletConnectProviderInitPromise&&typeof window<"u"&&(this.walletConnectProviderInitPromise=this.initWalletConnectProvider()),this.walletConnectProviderInitPromise}async initWalletConnectProvider(){const e={projectId:this.projectId,showQrModal:!1,rpcMap:this.chains?this.chains.reduce((n,r)=>(n[r.chainId]=r.rpcUrl,n),{}):{},optionalChains:[...this.chains.map(n=>n.chainId)],metadata:{name:this.metadata?this.metadata.name:"",description:this.metadata?this.metadata.description:"",url:this.metadata?this.metadata.url:"",icons:this.metadata?this.metadata.icons:[""]}};this.walletConnectProvider=await DGr.init(e),await this.checkActiveWalletConnectProvider()}async getWalletConnectProvider(){if(!this.walletConnectProvider)try{await this.createProvider()}catch(e){Mi.setError(e)}return this.walletConnectProvider}syncRequestedNetworks(e,n){const r=e==null?void 0:e.map(a=>({id:`${Hi.EIP155}:${a.chainId}`,name:a.name,imageId:Kg.EIP155NetworkImageIds[a.chainId],imageUrl:n==null?void 0:n[a.chainId]}));this.setRequestedCaipNetworks(r??[])}async checkActiveWalletConnectProvider(){const e=await this.getWalletConnectProvider(),n=localStorage.getItem(Dl.WALLET_ID);e&&n===Hi.WALLET_CONNECT_CONNECTOR_ID&&await this.setWalletConnectProvider()}checkActiveInjectedProvider(e){const n=e.injected,r=localStorage.getItem(Dl.WALLET_ID);n&&r===Hi.INJECTED_CONNECTOR_ID&&(this.setInjectedProvider(e),this.watchInjected(e))}checkActiveCoinbaseProvider(e){var a;const n=e.coinbase,r=localStorage.getItem(Dl.WALLET_ID);n&&r===Hi.COINBASE_CONNECTOR_ID&&(n._addresses&&((a=n._addresses)==null?void 0:a.length)>0?(this.setCoinbaseProvider(e),this.watchCoinbase(e)):(localStorage.removeItem(Dl.WALLET_ID),Mi.reset()))}checkActive6963Provider(){const e=window==null?void 0:window.localStorage.getItem(Dl.WALLET_ID);if(e){const n=this.EIP6963Providers.find(r=>r.name===e);n&&this.setEIP6963Provider(n.provider,n.name)}}async setWalletConnectProvider(){var n;window==null||window.localStorage.setItem(Dl.WALLET_ID,Hi.WALLET_CONNECT_CONNECTOR_ID);const e=await this.getWalletConnectProvider();e&&(Mi.setChainId(e.chainId),Mi.setProviderType("walletConnect"),Mi.setProvider(e),Mi.setIsConnected(!0),this.setAddress((n=e.accounts)==null?void 0:n[0]),this.watchWalletConnect())}async setInjectedProvider(e){window==null||window.localStorage.setItem(Dl.WALLET_ID,Hi.INJECTED_CONNECTOR_ID);const n=e.injected;if(n){const{address:r,chainId:a}=await Wp.getUserInfo(n);r&&a&&(Mi.setChainId(a),Mi.setProviderType("injected"),Mi.setProvider(e.injected),Mi.setIsConnected(!0),this.setAddress(r),this.watchCoinbase(e))}}async setEIP6963Provider(e,n){if(window==null||window.localStorage.setItem(Dl.WALLET_ID,n),e){const{address:r,chainId:a}=await Wp.getUserInfo(e);r&&a&&(Mi.setChainId(a),Mi.setProviderType("eip6963"),Mi.setProvider(e),Mi.setIsConnected(!0),this.setAddress(r),this.watchEIP6963(e))}}async setCoinbaseProvider(e){window==null||window.localStorage.setItem(Dl.WALLET_ID,Hi.COINBASE_CONNECTOR_ID);const n=e.coinbase;if(n){const{address:r,chainId:a}=await Wp.getUserInfo(n);r&&a&&(Mi.setChainId(a),Mi.setProviderType("coinbaseWallet"),Mi.setProvider(e.coinbase),Mi.setIsConnected(!0),this.setAddress(r),this.watchCoinbase(e))}}async watchWalletConnect(){const e=await this.getWalletConnectProvider();function n(){localStorage.removeItem(Dl.WALLET_ID),Mi.reset(),e==null||e.removeListener("disconnect",n),e==null||e.removeListener("accountsChanged",a),e==null||e.removeListener("chainChanged",r)}function r(o){if(o){const s=Wp.hexStringToNumber(o);Mi.setChainId(s)}}const a=async o=>{o.length>0&&await this.setWalletConnectProvider()};e&&(e.on("disconnect",n),e.on("accountsChanged",a),e.on("chainChanged",r))}watchInjected(e){const n=e.injected;function r(){localStorage.removeItem(Dl.WALLET_ID),Mi.reset(),n==null||n.removeListener("disconnect",r),n==null||n.removeListener("accountsChanged",a),n==null||n.removeListener("chainChanged",o)}function a(s){const l=s==null?void 0:s[0];l?Mi.setAddress(ph(l)):(localStorage.removeItem(Dl.WALLET_ID),Mi.reset())}function o(s){if(s){const l=typeof s=="string"?Wp.hexStringToNumber(s):Number(s);Mi.setChainId(l)}}n&&(n.on("disconnect",r),n.on("accountsChanged",a),n.on("chainChanged",o))}watchEIP6963(e){function n(){localStorage.removeItem(Dl.WALLET_ID),Mi.reset(),e.removeListener("disconnect",n),e.removeListener("accountsChanged",r),e.removeListener("chainChanged",a)}function r(o){const s=o==null?void 0:o[0];s?Mi.setAddress(ph(s)):(localStorage.removeItem(Dl.WALLET_ID),Mi.reset())}function a(o){if(o){const s=typeof o=="string"?Wp.hexStringToNumber(o):Number(o);Mi.setChainId(s)}}e.on("disconnect",n),e.on("accountsChanged",r),e.on("chainChanged",a)}watchCoinbase(e){const n=e.coinbase,r=localStorage.getItem(Dl.WALLET_ID);function a(){localStorage.removeItem(Dl.WALLET_ID),Mi.reset(),n==null||n.removeListener("disconnect",a),n==null||n.removeListener("accountsChanged",o),n==null||n.removeListener("chainChanged",s)}function o(l){l.length===0?(localStorage.removeItem(Dl.WALLET_ID),Mi.reset()):Mi.setAddress(l[0])}function s(l){if(l&&r===Hi.COINBASE_CONNECTOR_ID){const c=Number(l);Mi.setChainId(c)}}n&&(n.on("disconnect",a),n.on("accountsChanged",o),n.on("chainChanged",s))}async syncAccount(){const e=Mi.state.address,n=Mi.state.chainId,r=Mi.state.isConnected;if(this.resetAccount(),r&&e&&n){const a=`${Hi.EIP155}:${n}:${e}`;this.setIsConnected(r),this.setCaipAddress(a),await Promise.all([this.syncProfile(e),this.syncBalance(e),this.getApprovedCaipNetworksData()]),this.hasSyncedConnectedAccount=!0}else!r&&this.hasSyncedConnectedAccount&&(this.resetWcConnection(),this.resetNetwork())}async syncNetwork(e){const n=Mi.state.address,r=Mi.state.chainId,a=Mi.state.isConnected;if(this.chains){const o=this.chains.find(s=>s.chainId===r);if(o){const s=`${Hi.EIP155}:${o.chainId}`;if(this.setCaipNetwork({id:s,name:o.name,imageId:Kg.EIP155NetworkImageIds[o.chainId],imageUrl:e==null?void 0:e[o.chainId]}),a&&n){const l=`${Hi.EIP155}:${r}:${n}`;if(this.setCaipAddress(l),o.explorerUrl){const c=`${o.explorerUrl}/address/${n}`;this.setAddressExplorerUrl(c)}else this.setAddressExplorerUrl(void 0);this.hasSyncedConnectedAccount&&await this.syncBalance(n)}}}}async syncProfile(e){if(Mi.state.chainId===1){const r=new htn("mainnet"),a=await r.lookupAddress(e),o=await r.getAvatar(e);a&&this.setProfileName(a),o&&this.setProfileImage(o)}else this.setProfileName(null),this.setProfileImage(null)}async syncBalance(e){const n=Mi.state.chainId;if(n&&this.chains){const r=this.chains.find(a=>a.chainId===n);if(r){const a=new sSe(r.rpcUrl,{chainId:n,name:r.name});if(a){const o=await a.getBalance(e),s=ptn(o);this.setBalance(s,r.currency)}}}}async switchNetwork(e){var a,o,s,l,c,u,d,h;const n=Mi.state.provider,r=Mi.state.providerType;if(this.chains){const f=this.chains.find(p=>p.chainId===e);if(r===Hi.WALLET_CONNECT_CONNECTOR_ID&&f){const p=n;if(p)try{await p.request({method:"wallet_switchEthereumChain",params:[{chainId:Wp.numberToHexString(f.chainId)}]}),Mi.setChainId(e)}catch(m){if(m.code===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||m.code===Dl.ERROR_CODE_DEFAULT||((o=(a=m==null?void 0:m.data)==null?void 0:a.originalError)==null?void 0:o.code)===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)await Wp.addEthereumChain(p,f);else throw new Error("Chain is not supported")}}else if(r===Hi.INJECTED_CONNECTOR_ID&&f){const p=n;if(p)try{await p.request({method:"wallet_switchEthereumChain",params:[{chainId:Wp.numberToHexString(f.chainId)}]}),Mi.setChainId(f.chainId)}catch(m){if(m.code===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||m.code===Dl.ERROR_CODE_DEFAULT||((l=(s=m==null?void 0:m.data)==null?void 0:s.originalError)==null?void 0:l.code)===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)await Wp.addEthereumChain(p,f);else throw new Error("Chain is not supported")}}else if(r===Hi.EIP6963_CONNECTOR_ID&&f){const p=n;if(p)try{await p.request({method:"wallet_switchEthereumChain",params:[{chainId:Wp.numberToHexString(f.chainId)}]}),Mi.setChainId(f.chainId)}catch(m){if(m.code===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||m.code===Dl.ERROR_CODE_DEFAULT||((u=(c=m==null?void 0:m.data)==null?void 0:c.originalError)==null?void 0:u.code)===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)await Wp.addEthereumChain(p,f);else throw new Error("Chain is not supported")}}else if(r===Hi.COINBASE_CONNECTOR_ID&&f){const p=n;if(p)try{await p.request({method:"wallet_switchEthereumChain",params:[{chainId:Wp.numberToHexString(f.chainId)}]}),Mi.setChainId(f.chainId)}catch(m){(m.code===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||m.code===Dl.ERROR_CODE_DEFAULT||((h=(d=m==null?void 0:m.data)==null?void 0:d.originalError)==null?void 0:h.code)===Dl.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)&&await Wp.addEthereumChain(p,f)}}}}syncConnectors(e){var a,o,s,l,c,u;const n=[],r=Kg.ConnectorTypesMap[Hi.WALLET_CONNECT_CONNECTOR_ID];if(n.push({id:Hi.WALLET_CONNECT_CONNECTOR_ID,explorerId:Kg.ConnectorExplorerIds[Hi.WALLET_CONNECT_CONNECTOR_ID],imageId:Kg.ConnectorImageIds[Hi.WALLET_CONNECT_CONNECTOR_ID],imageUrl:(o=(a=this.options)==null?void 0:a.connectorImages)==null?void 0:o[Hi.WALLET_CONNECT_CONNECTOR_ID],name:Kg.ConnectorNamesMap[Hi.WALLET_CONNECT_CONNECTOR_ID],type:r}),e.injected){const d=Kg.ConnectorTypesMap[Hi.INJECTED_CONNECTOR_ID];n.push({id:Hi.INJECTED_CONNECTOR_ID,explorerId:Kg.ConnectorExplorerIds[Hi.INJECTED_CONNECTOR_ID],imageId:Kg.ConnectorImageIds[Hi.INJECTED_CONNECTOR_ID],imageUrl:(l=(s=this.options)==null?void 0:s.connectorImages)==null?void 0:l[Hi.INJECTED_CONNECTOR_ID],name:Kg.ConnectorNamesMap[Hi.INJECTED_CONNECTOR_ID],type:d})}e.coinbase&&n.push({id:Hi.COINBASE_CONNECTOR_ID,explorerId:Kg.ConnectorExplorerIds[Hi.COINBASE_CONNECTOR_ID],imageId:Kg.ConnectorImageIds[Hi.COINBASE_CONNECTOR_ID],imageUrl:(u=(c=this.options)==null?void 0:c.connectorImages)==null?void 0:u[Hi.COINBASE_CONNECTOR_ID],name:Kg.ConnectorNamesMap[Hi.COINBASE_CONNECTOR_ID],type:"EXTERNAL"}),this.setConnectors(n)}eip6963EventHandler(e){var n,r;if(e.detail){const{info:a,provider:o}=e.detail;if(!this.getConnectors().find(c=>c.name===a.name)){const c=Kg.ConnectorTypesMap[Hi.EIP6963_CONNECTOR_ID];{this.addConnector({id:Hi.EIP6963_CONNECTOR_ID,type:c,imageUrl:a.icon??((r=(n=this.options)==null?void 0:n.connectorImages)==null?void 0:r[Hi.EIP6963_CONNECTOR_ID]),name:a.name,provider:o,info:a});const u={name:a.name,provider:o};this.EIP6963Providers.push(u)}}}}listenConnectors(e){if(typeof window<"u"&&e){const n=this.eip6963EventHandler.bind(this);window.addEventListener(Hi.EIP6963_ANNOUNCE_EVENT,n),window.dispatchEvent(new Event(Hi.EIP6963_REQUEST_EVENT))}}}let UI;function fqr(t){t&&(UI=t)}function pqr(){if(!UI)throw new Error('Please call "createWeb3Modal" before using "useWeb3Modal" hook');async function t(n){await(UI==null?void 0:UI.open(n))}async function e(){await(UI==null?void 0:UI.close())}return{open:t,close:e}}var Z2={},lSe={};lSe.byteLength=vqr;lSe.toByteArray=yqr;lSe.fromByteArray=Eqr;var LT=[],Qb=[],mqr=typeof Uint8Array<"u"?Uint8Array:Array,EPe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var f$=0,gqr=EPe.length;f$<gqr;++f$)LT[f$]=EPe[f$],Qb[EPe.charCodeAt(f$)]=f$;Qb["-".charCodeAt(0)]=62;Qb["_".charCodeAt(0)]=63;function mtn(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function vqr(t){var e=mtn(t),n=e[0],r=e[1];return(n+r)*3/4-r}function Aqr(t,e,n){return(e+n)*3/4-n}function yqr(t){var e,n=mtn(t),r=n[0],a=n[1],o=new mqr(Aqr(t,r,a)),s=0,l=a>0?r-4:r,c;for(c=0;c<l;c+=4)e=Qb[t.charCodeAt(c)]<<18|Qb[t.charCodeAt(c+1)]<<12|Qb[t.charCodeAt(c+2)]<<6|Qb[t.charCodeAt(c+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return a===2&&(e=Qb[t.charCodeAt(c)]<<2|Qb[t.charCodeAt(c+1)]>>4,o[s++]=e&255),a===1&&(e=Qb[t.charCodeAt(c)]<<10|Qb[t.charCodeAt(c+1)]<<4|Qb[t.charCodeAt(c+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function bqr(t){return LT[t>>18&63]+LT[t>>12&63]+LT[t>>6&63]+LT[t&63]}function xqr(t,e,n){for(var r,a=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),a.push(bqr(r));return a.join("")}function Eqr(t){for(var e,n=t.length,r=n%3,a=[],o=16383,s=0,l=n-r;s<l;s+=o)a.push(xqr(t,s,s+o>l?l:s+o));return r===1?(e=t[n-1],a.push(LT[e>>2]+LT[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],a.push(LT[e>>10]+LT[e>>4&63]+LT[e<<2&63]+"=")),a.join("")}var Get={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Get.read=function(t,e,n,r,a){var o,s,l=a*8-r-1,c=(1<<l)-1,u=c>>1,d=-7,h=n?a-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-d)-1,p>>=-d,d+=l;d>0;o=o*256+t[e+h],h+=f,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=r;d>0;s=s*256+t[e+h],h+=f,d-=8);if(o===0)o=1-u;else{if(o===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-u}return(p?-1:1)*s*Math.pow(2,o-r)};Get.write=function(t,e,n,r,a,o){var s,l,c,u=o*8-a-1,d=(1<<u)-1,h=d>>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,m=r?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(s++,c/=2),s+h>=d?(l=0,s=d):s+h>=1?(l=(e*c-1)*Math.pow(2,a),s=s+h):(l=e*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;t[n+p]=l&255,p+=m,l/=256,a-=8);for(s=s<<a|l,u+=a;u>0;t[n+p]=s&255,p+=m,s/=256,u-=8);t[n+p-m]|=g*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(t){const e=lSe,n=Get,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50;const a=2147483647;t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=o(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const ue=new Uint8Array(1),se={foo:function(){return 42}};return Object.setPrototypeOf(se,Uint8Array.prototype),Object.setPrototypeOf(ue,se),ue.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function s(ue){if(ue>a)throw new RangeError('The value "'+ue+'" is invalid for option "size"');const se=new Uint8Array(ue);return Object.setPrototypeOf(se,l.prototype),se}function l(ue,se,oe){if(typeof ue=="number"){if(typeof se=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(ue)}return c(ue,se,oe)}l.poolSize=8192;function c(ue,se,oe){if(typeof ue=="string")return f(ue,se);if(ArrayBuffer.isView(ue))return m(ue);if(ue==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue);if(me(ue,ArrayBuffer)||ue&&me(ue.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(me(ue,SharedArrayBuffer)||ue&&me(ue.buffer,SharedArrayBuffer)))return g(ue,se,oe);if(typeof ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ge=ue.valueOf&&ue.valueOf();if(ge!=null&&ge!==ue)return l.from(ge,se,oe);const De=v(ue);if(De)return De;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ue[Symbol.toPrimitive]=="function")return l.from(ue[Symbol.toPrimitive]("string"),se,oe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue)}l.from=function(ue,se,oe){return c(ue,se,oe)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function u(ue){if(typeof ue!="number")throw new TypeError('"size" argument must be of type number');if(ue<0)throw new RangeError('The value "'+ue+'" is invalid for option "size"')}function d(ue,se,oe){return u(ue),ue<=0?s(ue):se!==void 0?typeof oe=="string"?s(ue).fill(se,oe):s(ue).fill(se):s(ue)}l.alloc=function(ue,se,oe){return d(ue,se,oe)};function h(ue){return u(ue),s(ue<0?0:A(ue)|0)}l.allocUnsafe=function(ue){return h(ue)},l.allocUnsafeSlow=function(ue){return h(ue)};function f(ue,se){if((typeof se!="string"||se==="")&&(se="utf8"),!l.isEncoding(se))throw new TypeError("Unknown encoding: "+se);const oe=S(ue,se)|0;let ge=s(oe);const De=ge.write(ue,se);return De!==oe&&(ge=ge.slice(0,De)),ge}function p(ue){const se=ue.length<0?0:A(ue.length)|0,oe=s(se);for(let ge=0;ge<se;ge+=1)oe[ge]=ue[ge]&255;return oe}function m(ue){if(me(ue,Uint8Array)){const se=new Uint8Array(ue);return g(se.buffer,se.byteOffset,se.byteLength)}return p(ue)}function g(ue,se,oe){if(se<0||ue.byteLength<se)throw new RangeError('"offset" is outside of buffer bounds');if(ue.byteLength<se+(oe||0))throw new RangeError('"length" is outside of buffer bounds');let ge;return se===void 0&&oe===void 0?ge=new Uint8Array(ue):oe===void 0?ge=new Uint8Array(ue,se):ge=new Uint8Array(ue,se,oe),Object.setPrototypeOf(ge,l.prototype),ge}function v(ue){if(l.isBuffer(ue)){const se=A(ue.length)|0,oe=s(se);return oe.length===0||ue.copy(oe,0,0,se),oe}if(ue.length!==void 0)return typeof ue.length!="number"||le(ue.length)?s(0):p(ue);if(ue.type==="Buffer"&&Array.isArray(ue.data))return p(ue.data)}function A(ue){if(ue>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return ue|0}function y(ue){return+ue!=ue&&(ue=0),l.alloc(+ue)}l.isBuffer=function(se){return se!=null&&se._isBuffer===!0&&se!==l.prototype},l.compare=function(se,oe){if(me(se,Uint8Array)&&(se=l.from(se,se.offset,se.byteLength)),me(oe,Uint8Array)&&(oe=l.from(oe,oe.offset,oe.byteLength)),!l.isBuffer(se)||!l.isBuffer(oe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(se===oe)return 0;let ge=se.length,De=oe.length;for(let Fe=0,Se=Math.min(ge,De);Fe<Se;++Fe)if(se[Fe]!==oe[Fe]){ge=se[Fe],De=oe[Fe];break}return ge<De?-1:De<ge?1:0},l.isEncoding=function(se){switch(String(se).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(se,oe){if(!Array.isArray(se))throw new TypeError('"list" argument must be an Array of Buffers');if(se.length===0)return l.alloc(0);let ge;if(oe===void 0)for(oe=0,ge=0;ge<se.length;++ge)oe+=se[ge].length;const De=l.allocUnsafe(oe);let Fe=0;for(ge=0;ge<se.length;++ge){let Se=se[ge];if(me(Se,Uint8Array))Fe+Se.length>De.length?(l.isBuffer(Se)||(Se=l.from(Se)),Se.copy(De,Fe)):Uint8Array.prototype.set.call(De,Se,Fe);else if(l.isBuffer(Se))Se.copy(De,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=Se.length}return De};function S(ue,se){if(l.isBuffer(ue))return ue.length;if(ArrayBuffer.isView(ue)||me(ue,ArrayBuffer))return ue.byteLength;if(typeof ue!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ue);const oe=ue.length,ge=arguments.length>2&&arguments[2]===!0;if(!ge&&oe===0)return 0;let De=!1;for(;;)switch(se){case"ascii":case"latin1":case"binary":return oe;case"utf8":case"utf-8":return Me(ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe*2;case"hex":return oe>>>1;case"base64":return je(ue).length;default:if(De)return ge?-1:Me(ue).length;se=(""+se).toLowerCase(),De=!0}}l.byteLength=S;function x(ue,se,oe){let ge=!1;if((se===void 0||se<0)&&(se=0),se>this.length||((oe===void 0||oe>this.length)&&(oe=this.length),oe<=0)||(oe>>>=0,se>>>=0,oe<=se))return"";for(ue||(ue="utf8");;)switch(ue){case"hex":return j(this,se,oe);case"utf8":case"utf-8":return b(this,se,oe);case"ascii":return D(this,se,oe);case"latin1":case"binary":return B(this,se,oe);case"base64":return I(this,se,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,se,oe);default:if(ge)throw new TypeError("Unknown encoding: "+ue);ue=(ue+"").toLowerCase(),ge=!0}}l.prototype._isBuffer=!0;function w(ue,se,oe){const ge=ue[se];ue[se]=ue[oe],ue[oe]=ge}l.prototype.swap16=function(){const se=this.length;if(se%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let oe=0;oe<se;oe+=2)w(this,oe,oe+1);return this},l.prototype.swap32=function(){const se=this.length;if(se%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let oe=0;oe<se;oe+=4)w(this,oe,oe+3),w(this,oe+1,oe+2);return this},l.prototype.swap64=function(){const se=this.length;if(se%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let oe=0;oe<se;oe+=8)w(this,oe,oe+7),w(this,oe+1,oe+6),w(this,oe+2,oe+5),w(this,oe+3,oe+4);return this},l.prototype.toString=function(){const se=this.length;return se===0?"":arguments.length===0?b(this,0,se):x.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(se){if(!l.isBuffer(se))throw new TypeError("Argument must be a Buffer");return this===se?!0:l.compare(this,se)===0},l.prototype.inspect=function(){let se="";const oe=t.INSPECT_MAX_BYTES;return se=this.toString("hex",0,oe).replace(/(.{2})/g,"$1 ").trim(),this.length>oe&&(se+=" ... "),"<Buffer "+se+">"},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(se,oe,ge,De,Fe){if(me(se,Uint8Array)&&(se=l.from(se,se.offset,se.byteLength)),!l.isBuffer(se))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof se);if(oe===void 0&&(oe=0),ge===void 0&&(ge=se?se.length:0),De===void 0&&(De=0),Fe===void 0&&(Fe=this.length),oe<0||ge>se.length||De<0||Fe>this.length)throw new RangeError("out of range index");if(De>=Fe&&oe>=ge)return 0;if(De>=Fe)return-1;if(oe>=ge)return 1;if(oe>>>=0,ge>>>=0,De>>>=0,Fe>>>=0,this===se)return 0;let Se=Fe-De,Xe=ge-oe;const Oe=Math.min(Se,Xe),Ye=this.slice(De,Fe),mt=se.slice(oe,ge);for(let ut=0;ut<Oe;++ut)if(Ye[ut]!==mt[ut]){Se=Ye[ut],Xe=mt[ut];break}return Se<Xe?-1:Xe<Se?1:0};function _(ue,se,oe,ge,De){if(ue.length===0)return-1;if(typeof oe=="string"?(ge=oe,oe=0):oe>2147483647?oe=2147483647:oe<-2147483648&&(oe=-2147483648),oe=+oe,le(oe)&&(oe=De?0:ue.length-1),oe<0&&(oe=ue.length+oe),oe>=ue.length){if(De)return-1;oe=ue.length-1}else if(oe<0)if(De)oe=0;else return-1;if(typeof se=="string"&&(se=l.from(se,ge)),l.isBuffer(se))return se.length===0?-1:C(ue,se,oe,ge,De);if(typeof se=="number")return se=se&255,typeof Uint8Array.prototype.indexOf=="function"?De?Uint8Array.prototype.indexOf.call(ue,se,oe):Uint8Array.prototype.lastIndexOf.call(ue,se,oe):C(ue,[se],oe,ge,De);throw new TypeError("val must be string, number or Buffer")}function C(ue,se,oe,ge,De){let Fe=1,Se=ue.length,Xe=se.length;if(ge!==void 0&&(ge=String(ge).toLowerCase(),ge==="ucs2"||ge==="ucs-2"||ge==="utf16le"||ge==="utf-16le")){if(ue.length<2||se.length<2)return-1;Fe=2,Se/=2,Xe/=2,oe/=2}function Oe(mt,ut){return Fe===1?mt[ut]:mt.readUInt16BE(ut*Fe)}let Ye;if(De){let mt=-1;for(Ye=oe;Ye<Se;Ye++)if(Oe(ue,Ye)===Oe(se,mt===-1?0:Ye-mt)){if(mt===-1&&(mt=Ye),Ye-mt+1===Xe)return mt*Fe}else mt!==-1&&(Ye-=Ye-mt),mt=-1}else for(oe+Xe>Se&&(oe=Se-Xe),Ye=oe;Ye>=0;Ye--){let mt=!0;for(let ut=0;ut<Xe;ut++)if(Oe(ue,Ye+ut)!==Oe(se,ut)){mt=!1;break}if(mt)return Ye}return-1}l.prototype.includes=function(se,oe,ge){return this.indexOf(se,oe,ge)!==-1},l.prototype.indexOf=function(se,oe,ge){return _(this,se,oe,ge,!0)},l.prototype.lastIndexOf=function(se,oe,ge){return _(this,se,oe,ge,!1)};function R(ue,se,oe,ge){oe=Number(oe)||0;const De=ue.length-oe;ge?(ge=Number(ge),ge>De&&(ge=De)):ge=De;const Fe=se.length;ge>Fe/2&&(ge=Fe/2);let Se;for(Se=0;Se<ge;++Se){const Xe=parseInt(se.substr(Se*2,2),16);if(le(Xe))return Se;ue[oe+Se]=Xe}return Se}function k(ue,se,oe,ge){return ye(Me(se,ue.length-oe),ue,oe,ge)}function P(ue,se,oe,ge){return ye(Be(se),ue,oe,ge)}function N(ue,se,oe,ge){return ye(je(se),ue,oe,ge)}function L(ue,se,oe,ge){return ye(ze(se,ue.length-oe),ue,oe,ge)}l.prototype.write=function(se,oe,ge,De){if(oe===void 0)De="utf8",ge=this.length,oe=0;else if(ge===void 0&&typeof oe=="string")De=oe,ge=this.length,oe=0;else if(isFinite(oe))oe=oe>>>0,isFinite(ge)?(ge=ge>>>0,De===void 0&&(De="utf8")):(De=ge,ge=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Fe=this.length-oe;if((ge===void 0||ge>Fe)&&(ge=Fe),se.length>0&&(ge<0||oe<0)||oe>this.length)throw new RangeError("Attempt to write outside buffer bounds");De||(De="utf8");let Se=!1;for(;;)switch(De){case"hex":return R(this,se,oe,ge);case"utf8":case"utf-8":return k(this,se,oe,ge);case"ascii":case"latin1":case"binary":return P(this,se,oe,ge);case"base64":return N(this,se,oe,ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,se,oe,ge);default:if(Se)throw new TypeError("Unknown encoding: "+De);De=(""+De).toLowerCase(),Se=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(ue,se,oe){return se===0&&oe===ue.length?e.fromByteArray(ue):e.fromByteArray(ue.slice(se,oe))}function b(ue,se,oe){oe=Math.min(ue.length,oe);const ge=[];let De=se;for(;De<oe;){const Fe=ue[De];let Se=null,Xe=Fe>239?4:Fe>223?3:Fe>191?2:1;if(De+Xe<=oe){let Oe,Ye,mt,ut;switch(Xe){case 1:Fe<128&&(Se=Fe);break;case 2:Oe=ue[De+1],(Oe&192)===128&&(ut=(Fe&31)<<6|Oe&63,ut>127&&(Se=ut));break;case 3:Oe=ue[De+1],Ye=ue[De+2],(Oe&192)===128&&(Ye&192)===128&&(ut=(Fe&15)<<12|(Oe&63)<<6|Ye&63,ut>2047&&(ut<55296||ut>57343)&&(Se=ut));break;case 4:Oe=ue[De+1],Ye=ue[De+2],mt=ue[De+3],(Oe&192)===128&&(Ye&192)===128&&(mt&192)===128&&(ut=(Fe&15)<<18|(Oe&63)<<12|(Ye&63)<<6|mt&63,ut>65535&&ut<1114112&&(Se=ut))}}Se===null?(Se=65533,Xe=1):Se>65535&&(Se-=65536,ge.push(Se>>>10&1023|55296),Se=56320|Se&1023),ge.push(Se),De+=Xe}return M(ge)}const T=4096;function M(ue){const se=ue.length;if(se<=T)return String.fromCharCode.apply(String,ue);let oe="",ge=0;for(;ge<se;)oe+=String.fromCharCode.apply(String,ue.slice(ge,ge+=T));return oe}function D(ue,se,oe){let ge="";oe=Math.min(ue.length,oe);for(let De=se;De<oe;++De)ge+=String.fromCharCode(ue[De]&127);return ge}function B(ue,se,oe){let ge="";oe=Math.min(ue.length,oe);for(let De=se;De<oe;++De)ge+=String.fromCharCode(ue[De]);return ge}function j(ue,se,oe){const ge=ue.length;(!se||se<0)&&(se=0),(!oe||oe<0||oe>ge)&&(oe=ge);let De="";for(let Fe=se;Fe<oe;++Fe)De+=pe[ue[Fe]];return De}function H(ue,se,oe){const ge=ue.slice(se,oe);let De="";for(let Fe=0;Fe<ge.length-1;Fe+=2)De+=String.fromCharCode(ge[Fe]+ge[Fe+1]*256);return De}l.prototype.slice=function(se,oe){const ge=this.length;se=~~se,oe=oe===void 0?ge:~~oe,se<0?(se+=ge,se<0&&(se=0)):se>ge&&(se=ge),oe<0?(oe+=ge,oe<0&&(oe=0)):oe>ge&&(oe=ge),oe<se&&(oe=se);const De=this.subarray(se,oe);return Object.setPrototypeOf(De,l.prototype),De};function U(ue,se,oe){if(ue%1!==0||ue<0)throw new RangeError("offset is not uint");if(ue+se>oe)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(se,oe,ge){se=se>>>0,oe=oe>>>0,ge||U(se,oe,this.length);let De=this[se],Fe=1,Se=0;for(;++Se<oe&&(Fe*=256);)De+=this[se+Se]*Fe;return De},l.prototype.readUintBE=l.prototype.readUIntBE=function(se,oe,ge){se=se>>>0,oe=oe>>>0,ge||U(se,oe,this.length);let De=this[se+--oe],Fe=1;for(;oe>0&&(Fe*=256);)De+=this[se+--oe]*Fe;return De},l.prototype.readUint8=l.prototype.readUInt8=function(se,oe){return se=se>>>0,oe||U(se,1,this.length),this[se]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(se,oe){return se=se>>>0,oe||U(se,2,this.length),this[se]|this[se+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(se,oe){return se=se>>>0,oe||U(se,2,this.length),this[se]<<8|this[se+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(se,oe){return se=se>>>0,oe||U(se,4,this.length),(this[se]|this[se+1]<<8|this[se+2]<<16)+this[se+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(se,oe){return se=se>>>0,oe||U(se,4,this.length),this[se]*16777216+(this[se+1]<<16|this[se+2]<<8|this[se+3])},l.prototype.readBigUInt64LE=Ne(function(se){se=se>>>0,he(se,"offset");const oe=this[se],ge=this[se+7];(oe===void 0||ge===void 0)&&de(se,this.length-8);const De=oe+this[++se]*2**8+this[++se]*2**16+this[++se]*2**24,Fe=this[++se]+this[++se]*2**8+this[++se]*2**16+ge*2**24;return BigInt(De)+(BigInt(Fe)<<BigInt(32))}),l.prototype.readBigUInt64BE=Ne(function(se){se=se>>>0,he(se,"offset");const oe=this[se],ge=this[se+7];(oe===void 0||ge===void 0)&&de(se,this.length-8);const De=oe*2**24+this[++se]*2**16+this[++se]*2**8+this[++se],Fe=this[++se]*2**24+this[++se]*2**16+this[++se]*2**8+ge;return(BigInt(De)<<BigInt(32))+BigInt(Fe)}),l.prototype.readIntLE=function(se,oe,ge){se=se>>>0,oe=oe>>>0,ge||U(se,oe,this.length);let De=this[se],Fe=1,Se=0;for(;++Se<oe&&(Fe*=256);)De+=this[se+Se]*Fe;return Fe*=128,De>=Fe&&(De-=Math.pow(2,8*oe)),De},l.prototype.readIntBE=function(se,oe,ge){se=se>>>0,oe=oe>>>0,ge||U(se,oe,this.length);let De=oe,Fe=1,Se=this[se+--De];for(;De>0&&(Fe*=256);)Se+=this[se+--De]*Fe;return Fe*=128,Se>=Fe&&(Se-=Math.pow(2,8*oe)),Se},l.prototype.readInt8=function(se,oe){return se=se>>>0,oe||U(se,1,this.length),this[se]&128?(255-this[se]+1)*-1:this[se]},l.prototype.readInt16LE=function(se,oe){se=se>>>0,oe||U(se,2,this.length);const ge=this[se]|this[se+1]<<8;return ge&32768?ge|4294901760:ge},l.prototype.readInt16BE=function(se,oe){se=se>>>0,oe||U(se,2,this.length);const ge=this[se+1]|this[se]<<8;return ge&32768?ge|4294901760:ge},l.prototype.readInt32LE=function(se,oe){return se=se>>>0,oe||U(se,4,this.length),this[se]|this[se+1]<<8|this[se+2]<<16|this[se+3]<<24},l.prototype.readInt32BE=function(se,oe){return se=se>>>0,oe||U(se,4,this.length),this[se]<<24|this[se+1]<<16|this[se+2]<<8|this[se+3]},l.prototype.readBigInt64LE=Ne(function(se){se=se>>>0,he(se,"offset");const oe=this[se],ge=this[se+7];(oe===void 0||ge===void 0)&&de(se,this.length-8);const De=this[se+4]+this[se+5]*2**8+this[se+6]*2**16+(ge<<24);return(BigInt(De)<<BigInt(32))+BigInt(oe+this[++se]*2**8+this[++se]*2**16+this[++se]*2**24)}),l.prototype.readBigInt64BE=Ne(function(se){se=se>>>0,he(se,"offset");const oe=this[se],ge=this[se+7];(oe===void 0||ge===void 0)&&de(se,this.length-8);const De=(oe<<24)+this[++se]*2**16+this[++se]*2**8+this[++se];return(BigInt(De)<<BigInt(32))+BigInt(this[++se]*2**24+this[++se]*2**16+this[++se]*2**8+ge)}),l.prototype.readFloatLE=function(se,oe){return se=se>>>0,oe||U(se,4,this.length),n.read(this,se,!0,23,4)},l.prototype.readFloatBE=function(se,oe){return se=se>>>0,oe||U(se,4,this.length),n.read(this,se,!1,23,4)},l.prototype.readDoubleLE=function(se,oe){return se=se>>>0,oe||U(se,8,this.length),n.read(this,se,!0,52,8)},l.prototype.readDoubleBE=function(se,oe){return se=se>>>0,oe||U(se,8,this.length),n.read(this,se,!1,52,8)};function $(ue,se,oe,ge,De,Fe){if(!l.isBuffer(ue))throw new TypeError('"buffer" argument must be a Buffer instance');if(se>De||se<Fe)throw new RangeError('"value" argument is out of bounds');if(oe+ge>ue.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(se,oe,ge,De){if(se=+se,oe=oe>>>0,ge=ge>>>0,!De){const Xe=Math.pow(2,8*ge)-1;$(this,se,oe,ge,Xe,0)}let Fe=1,Se=0;for(this[oe]=se&255;++Se<ge&&(Fe*=256);)this[oe+Se]=se/Fe&255;return oe+ge},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(se,oe,ge,De){if(se=+se,oe=oe>>>0,ge=ge>>>0,!De){const Xe=Math.pow(2,8*ge)-1;$(this,se,oe,ge,Xe,0)}let Fe=ge-1,Se=1;for(this[oe+Fe]=se&255;--Fe>=0&&(Se*=256);)this[oe+Fe]=se/Se&255;return oe+ge},l.prototype.writeUint8=l.prototype.writeUInt8=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,1,255,0),this[oe]=se&255,oe+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,2,65535,0),this[oe]=se&255,this[oe+1]=se>>>8,oe+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,2,65535,0),this[oe]=se>>>8,this[oe+1]=se&255,oe+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,4,4294967295,0),this[oe+3]=se>>>24,this[oe+2]=se>>>16,this[oe+1]=se>>>8,this[oe]=se&255,oe+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,4,4294967295,0),this[oe]=se>>>24,this[oe+1]=se>>>16,this[oe+2]=se>>>8,this[oe+3]=se&255,oe+4};function z(ue,se,oe,ge,De){ie(se,ge,De,ue,oe,7);let Fe=Number(se&BigInt(4294967295));ue[oe++]=Fe,Fe=Fe>>8,ue[oe++]=Fe,Fe=Fe>>8,ue[oe++]=Fe,Fe=Fe>>8,ue[oe++]=Fe;let Se=Number(se>>BigInt(32)&BigInt(4294967295));return ue[oe++]=Se,Se=Se>>8,ue[oe++]=Se,Se=Se>>8,ue[oe++]=Se,Se=Se>>8,ue[oe++]=Se,oe}function Z(ue,se,oe,ge,De){ie(se,ge,De,ue,oe,7);let Fe=Number(se&BigInt(4294967295));ue[oe+7]=Fe,Fe=Fe>>8,ue[oe+6]=Fe,Fe=Fe>>8,ue[oe+5]=Fe,Fe=Fe>>8,ue[oe+4]=Fe;let Se=Number(se>>BigInt(32)&BigInt(4294967295));return ue[oe+3]=Se,Se=Se>>8,ue[oe+2]=Se,Se=Se>>8,ue[oe+1]=Se,Se=Se>>8,ue[oe]=Se,oe+8}l.prototype.writeBigUInt64LE=Ne(function(se,oe=0){return z(this,se,oe,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Ne(function(se,oe=0){return Z(this,se,oe,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(se,oe,ge,De){if(se=+se,oe=oe>>>0,!De){const Oe=Math.pow(2,8*ge-1);$(this,se,oe,ge,Oe-1,-Oe)}let Fe=0,Se=1,Xe=0;for(this[oe]=se&255;++Fe<ge&&(Se*=256);)se<0&&Xe===0&&this[oe+Fe-1]!==0&&(Xe=1),this[oe+Fe]=(se/Se>>0)-Xe&255;return oe+ge},l.prototype.writeIntBE=function(se,oe,ge,De){if(se=+se,oe=oe>>>0,!De){const Oe=Math.pow(2,8*ge-1);$(this,se,oe,ge,Oe-1,-Oe)}let Fe=ge-1,Se=1,Xe=0;for(this[oe+Fe]=se&255;--Fe>=0&&(Se*=256);)se<0&&Xe===0&&this[oe+Fe+1]!==0&&(Xe=1),this[oe+Fe]=(se/Se>>0)-Xe&255;return oe+ge},l.prototype.writeInt8=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,1,127,-128),se<0&&(se=255+se+1),this[oe]=se&255,oe+1},l.prototype.writeInt16LE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,2,32767,-32768),this[oe]=se&255,this[oe+1]=se>>>8,oe+2},l.prototype.writeInt16BE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,2,32767,-32768),this[oe]=se>>>8,this[oe+1]=se&255,oe+2},l.prototype.writeInt32LE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,4,2147483647,-2147483648),this[oe]=se&255,this[oe+1]=se>>>8,this[oe+2]=se>>>16,this[oe+3]=se>>>24,oe+4},l.prototype.writeInt32BE=function(se,oe,ge){return se=+se,oe=oe>>>0,ge||$(this,se,oe,4,2147483647,-2147483648),se<0&&(se=4294967295+se+1),this[oe]=se>>>24,this[oe+1]=se>>>16,this[oe+2]=se>>>8,this[oe+3]=se&255,oe+4},l.prototype.writeBigInt64LE=Ne(function(se,oe=0){return z(this,se,oe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Ne(function(se,oe=0){return Z(this,se,oe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(ue,se,oe,ge,De,Fe){if(oe+ge>ue.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("Index out of range")}function Q(ue,se,oe,ge,De){return se=+se,oe=oe>>>0,De||K(ue,se,oe,4),n.write(ue,se,oe,ge,23,4),oe+4}l.prototype.writeFloatLE=function(se,oe,ge){return Q(this,se,oe,!0,ge)},l.prototype.writeFloatBE=function(se,oe,ge){return Q(this,se,oe,!1,ge)};function ee(ue,se,oe,ge,De){return se=+se,oe=oe>>>0,De||K(ue,se,oe,8),n.write(ue,se,oe,ge,52,8),oe+8}l.prototype.writeDoubleLE=function(se,oe,ge){return ee(this,se,oe,!0,ge)},l.prototype.writeDoubleBE=function(se,oe,ge){return ee(this,se,oe,!1,ge)},l.prototype.copy=function(se,oe,ge,De){if(!l.isBuffer(se))throw new TypeError("argument should be a Buffer");if(ge||(ge=0),!De&&De!==0&&(De=this.length),oe>=se.length&&(oe=se.length),oe||(oe=0),De>0&&De<ge&&(De=ge),De===ge||se.length===0||this.length===0)return 0;if(oe<0)throw new RangeError("targetStart out of bounds");if(ge<0||ge>=this.length)throw new RangeError("Index out of range");if(De<0)throw new RangeError("sourceEnd out of bounds");De>this.length&&(De=this.length),se.length-oe<De-ge&&(De=se.length-oe+ge);const Fe=De-ge;return this===se&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(oe,ge,De):Uint8Array.prototype.set.call(se,this.subarray(ge,De),oe),Fe},l.prototype.fill=function(se,oe,ge,De){if(typeof se=="string"){if(typeof oe=="string"?(De=oe,oe=0,ge=this.length):typeof ge=="string"&&(De=ge,ge=this.length),De!==void 0&&typeof De!="string")throw new TypeError("encoding must be a string");if(typeof De=="string"&&!l.isEncoding(De))throw new TypeError("Unknown encoding: "+De);if(se.length===1){const Se=se.charCodeAt(0);(De==="utf8"&&Se<128||De==="latin1")&&(se=Se)}}else typeof se=="number"?se=se&255:typeof se=="boolean"&&(se=Number(se));if(oe<0||this.length<oe||this.length<ge)throw new RangeError("Out of range index");if(ge<=oe)return this;oe=oe>>>0,ge=ge===void 0?this.length:ge>>>0,se||(se=0);let Fe;if(typeof se=="number")for(Fe=oe;Fe<ge;++Fe)this[Fe]=se;else{const Se=l.isBuffer(se)?se:l.from(se,De),Xe=Se.length;if(Xe===0)throw new TypeError('The value "'+se+'" is invalid for argument "value"');for(Fe=0;Fe<ge-oe;++Fe)this[Fe+oe]=Se[Fe%Xe]}return this};const X={};function te(ue,se,oe){X[ue]=class extends oe{constructor(){super(),Object.defineProperty(this,"message",{value:se.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ue}]`,this.stack,delete this.name}get code(){return ue}set code(De){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:De,writable:!0})}toString(){return`${this.name} [${ue}]: ${this.message}`}}}te("ERR_BUFFER_OUT_OF_BOUNDS",function(ue){return ue?`${ue} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),te("ERR_INVALID_ARG_TYPE",function(ue,se){return`The "${ue}" argument must be of type number. Received type ${typeof se}`},TypeError),te("ERR_OUT_OF_RANGE",function(ue,se,oe){let ge=`The value of "${ue}" is out of range.`,De=oe;return Number.isInteger(oe)&&Math.abs(oe)>2**32?De=J(String(oe)):typeof oe=="bigint"&&(De=String(oe),(oe>BigInt(2)**BigInt(32)||oe<-(BigInt(2)**BigInt(32)))&&(De=J(De)),De+="n"),ge+=` It must be ${se}. Received ${De}`,ge},RangeError);function J(ue){let se="",oe=ue.length;const ge=ue[0]==="-"?1:0;for(;oe>=ge+4;oe-=3)se=`_${ue.slice(oe-3,oe)}${se}`;return`${ue.slice(0,oe)}${se}`}function ne(ue,se,oe){he(se,"offset"),(ue[se]===void 0||ue[se+oe]===void 0)&&de(se,ue.length-(oe+1))}function ie(ue,se,oe,ge,De,Fe){if(ue>oe||ue<se){const Se=typeof se=="bigint"?"n":"";let Xe;throw Fe>3?se===0||se===BigInt(0)?Xe=`>= 0${Se} and < 2${Se} ** ${(Fe+1)*8}${Se}`:Xe=`>= -(2${Se} ** ${(Fe+1)*8-1}${Se}) and < 2 ** ${(Fe+1)*8-1}${Se}`:Xe=`>= ${se}${Se} and <= ${oe}${Se}`,new X.ERR_OUT_OF_RANGE("value",Xe,ue)}ne(ge,De,Fe)}function he(ue,se){if(typeof ue!="number")throw new X.ERR_INVALID_ARG_TYPE(se,"number",ue)}function de(ue,se,oe){throw Math.floor(ue)!==ue?(he(ue,oe),new X.ERR_OUT_OF_RANGE(oe||"offset","an integer",ue)):se<0?new X.ERR_BUFFER_OUT_OF_BOUNDS:new X.ERR_OUT_OF_RANGE(oe||"offset",`>= ${oe?1:0} and <= ${se}`,ue)}const ce=/[^+/0-9A-Za-z-_]/g;function Ee(ue){if(ue=ue.split("=")[0],ue=ue.trim().replace(ce,""),ue.length<2)return"";for(;ue.length%4!==0;)ue=ue+"=";return ue}function Me(ue,se){se=se||1/0;let oe;const ge=ue.length;let De=null;const Fe=[];for(let Se=0;Se<ge;++Se){if(oe=ue.charCodeAt(Se),oe>55295&&oe<57344){if(!De){if(oe>56319){(se-=3)>-1&&Fe.push(239,191,189);continue}else if(Se+1===ge){(se-=3)>-1&&Fe.push(239,191,189);continue}De=oe;continue}if(oe<56320){(se-=3)>-1&&Fe.push(239,191,189),De=oe;continue}oe=(De-55296<<10|oe-56320)+65536}else De&&(se-=3)>-1&&Fe.push(239,191,189);if(De=null,oe<128){if((se-=1)<0)break;Fe.push(oe)}else if(oe<2048){if((se-=2)<0)break;Fe.push(oe>>6|192,oe&63|128)}else if(oe<65536){if((se-=3)<0)break;Fe.push(oe>>12|224,oe>>6&63|128,oe&63|128)}else if(oe<1114112){if((se-=4)<0)break;Fe.push(oe>>18|240,oe>>12&63|128,oe>>6&63|128,oe&63|128)}else throw new Error("Invalid code point")}return Fe}function Be(ue){const se=[];for(let oe=0;oe<ue.length;++oe)se.push(ue.charCodeAt(oe)&255);return se}function ze(ue,se){let oe,ge,De;const Fe=[];for(let Se=0;Se<ue.length&&!((se-=2)<0);++Se)oe=ue.charCodeAt(Se),ge=oe>>8,De=oe%256,Fe.push(De),Fe.push(ge);return Fe}function je(ue){return e.toByteArray(Ee(ue))}function ye(ue,se,oe,ge){let De;for(De=0;De<ge&&!(De+oe>=se.length||De>=ue.length);++De)se[De+oe]=ue[De];return De}function me(ue,se){return ue instanceof se||ue!=null&&ue.constructor!=null&&ue.constructor.name!=null&&ue.constructor.name===se.name}function le(ue){return ue!==ue}const pe=function(){const ue="0123456789abcdef",se=new Array(256);for(let oe=0;oe<16;++oe){const ge=oe*16;for(let De=0;De<16;++De)se[ge+De]=ue[oe]+ue[De]}return se}();function Ne(ue){return typeof BigInt>"u"?_e:ue}function _e(){throw new Error("BigInt not supported")}})(Z2);var GUt;typeof window<"u"&&(window.Buffer||(window.Buffer=Z2.Buffer),window.global||(window.global=window),window.process||(window.process={}),(GUt=window.process)!=null&&GUt.env||(window.process={env:{}}));var gtn={},bne={},cSe={};Object.defineProperty(cSe,"__esModule",{value:!0});cSe.walletLogo=void 0;const Sqr=(t,e)=>{let n;switch(t){case"standard":return n=e,`data:image/svg+xml,%3Csvg width='${e}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return n=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${n}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return n=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return n=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return n=e,`data:image/svg+xml,%3Csvg width='${e}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};cSe.walletLogo=Sqr;var uSe={};Object.defineProperty(uSe,"__esModule",{value:!0});uSe.LINK_API_URL=void 0;uSe.LINK_API_URL="https://www.walletlink.org";var dSe={};Object.defineProperty(dSe,"__esModule",{value:!0});dSe.ScopedLocalStorage=void 0;class wqr{constructor(e){this.scope=e}setItem(e,n){localStorage.setItem(this.scopedKey(e),n)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);typeof a=="string"&&a.startsWith(e)&&n.push(a)}n.forEach(r=>localStorage.removeItem(r))}scopedKey(e){return`${this.scope}:${e}`}}dSe.ScopedLocalStorage=wqr;var BT=[],qb=[],_qr=typeof Uint8Array<"u"?Uint8Array:Array,Vet=!1;function vtn(){Vet=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)BT[e]=t[e],qb[t.charCodeAt(e)]=e;qb["-".charCodeAt(0)]=62,qb["_".charCodeAt(0)]=63}function Tqr(t){Vet||vtn();var e,n,r,a,o,s,l=t.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[l-2]==="="?2:t[l-1]==="="?1:0,s=new _qr(l*3/4-o),r=o>0?l-4:l;var c=0;for(e=0,n=0;e<r;e+=4,n+=3)a=qb[t.charCodeAt(e)]<<18|qb[t.charCodeAt(e+1)]<<12|qb[t.charCodeAt(e+2)]<<6|qb[t.charCodeAt(e+3)],s[c++]=a>>16&255,s[c++]=a>>8&255,s[c++]=a&255;return o===2?(a=qb[t.charCodeAt(e)]<<2|qb[t.charCodeAt(e+1)]>>4,s[c++]=a&255):o===1&&(a=qb[t.charCodeAt(e)]<<10|qb[t.charCodeAt(e+1)]<<4|qb[t.charCodeAt(e+2)]>>2,s[c++]=a>>8&255,s[c++]=a&255),s}function Cqr(t){return BT[t>>18&63]+BT[t>>12&63]+BT[t>>6&63]+BT[t&63]}function kqr(t,e,n){for(var r,a=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a.push(Cqr(r));return a.join("")}function Jyt(t){Vet||vtn();for(var e,n=t.length,r=n%3,a="",o=[],s=16383,l=0,c=n-r;l<c;l+=s)o.push(kqr(t,l,l+s>c?c:l+s));return r===1?(e=t[n-1],a+=BT[e>>2],a+=BT[e<<4&63],a+="=="):r===2&&(e=(t[n-2]<<8)+t[n-1],a+=BT[e>>10],a+=BT[e>>4&63],a+=BT[e<<2&63],a+="="),o.push(a),o.join("")}function hSe(t,e,n,r,a){var o,s,l=a*8-r-1,c=(1<<l)-1,u=c>>1,d=-7,h=n?a-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-d)-1,p>>=-d,d+=l;d>0;o=o*256+t[e+h],h+=f,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=r;d>0;s=s*256+t[e+h],h+=f,d-=8);if(o===0)o=1-u;else{if(o===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-u}return(p?-1:1)*s*Math.pow(2,o-r)}function Atn(t,e,n,r,a,o){var s,l,c,u=o*8-a-1,d=(1<<u)-1,h=d>>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,m=r?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(s++,c/=2),s+h>=d?(l=0,s=d):s+h>=1?(l=(e*c-1)*Math.pow(2,a),s=s+h):(l=e*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;t[n+p]=l&255,p+=m,l/=256,a-=8);for(s=s<<a|l,u+=a;u>0;t[n+p]=s&255,p+=m,s/=256,u-=8);t[n+p-m]|=g*128}var Rqr={}.toString,ytn=Array.isArray||function(t){return Rqr.call(t)=="[object Array]"};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */var Mqr=50;gn.TYPED_ARRAY_SUPPORT=Wa.TYPED_ARRAY_SUPPORT!==void 0?Wa.TYPED_ARRAY_SUPPORT:!0;eAe();function eAe(){return gn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function jR(t,e){if(eAe()<e)throw new RangeError("Invalid typed array length");return gn.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=gn.prototype):(t===null&&(t=new gn(e)),t.length=e),t}function gn(t,e,n){if(!gn.TYPED_ARRAY_SUPPORT&&!(this instanceof gn))return new gn(t,e,n);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return Ket(this,t)}return btn(this,t,e,n)}gn.poolSize=8192;gn._augment=function(t){return t.__proto__=gn.prototype,t};function btn(t,e,n,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Pqr(t,e,n,r):typeof e=="string"?Iqr(t,e,n):Oqr(t,e)}gn.from=function(t,e,n){return btn(null,t,e,n)};gn.TYPED_ARRAY_SUPPORT&&(gn.prototype.__proto__=Uint8Array.prototype,gn.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&gn[Symbol.species]);function xtn(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Nqr(t,e,n,r){return xtn(e),e<=0?jR(t,e):n!==void 0?typeof r=="string"?jR(t,e).fill(n,r):jR(t,e).fill(n):jR(t,e)}gn.alloc=function(t,e,n){return Nqr(null,t,e,n)};function Ket(t,e){if(xtn(e),t=jR(t,e<0?0:Wet(e)|0),!gn.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}gn.allocUnsafe=function(t){return Ket(null,t)};gn.allocUnsafeSlow=function(t){return Ket(null,t)};function Iqr(t,e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!gn.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=Etn(e,n)|0;t=jR(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function yUe(t,e){var n=e.length<0?0:Wet(e.length)|0;t=jR(t,n);for(var r=0;r<n;r+=1)t[r]=e[r]&255;return t}function Pqr(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?e=new Uint8Array(e):r===void 0?e=new Uint8Array(e,n):e=new Uint8Array(e,n,r),gn.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=gn.prototype):t=yUe(t,e),t}function Oqr(t,e){if(X2(e)){var n=Wet(e.length)|0;return t=jR(t,n),t.length===0||e.copy(t,0,0,n),t}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Xqr(e.length)?jR(t,0):yUe(t,e);if(e.type==="Buffer"&&ytn(e.data))return yUe(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Wet(t){if(t>=eAe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eAe().toString(16)+" bytes");return t|0}gn.isBuffer=eYr;function X2(t){return!!(t!=null&&t._isBuffer)}gn.compare=function(e,n){if(!X2(e)||!X2(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,a=n.length,o=0,s=Math.min(r,a);o<s;++o)if(e[o]!==n[o]){r=e[o],a=n[o];break}return r<a?-1:a<r?1:0};gn.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};gn.concat=function(e,n){if(!ytn(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return gn.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var a=gn.allocUnsafe(n),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!X2(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(a,o),o+=s.length}return a};function Etn(t,e){if(X2(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var n=t.length;if(n===0)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return tAe(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Rtn(t).length;default:if(r)return tAe(t).length;e=(""+e).toLowerCase(),r=!0}}gn.byteLength=Etn;function Lqr(t,e,n){var r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Vqr(this,e,n);case"utf8":case"utf-8":return _tn(this,e,n);case"ascii":return zqr(this,e,n);case"latin1":case"binary":return Gqr(this,e,n);case"base64":return Hqr(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kqr(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}gn.prototype._isBuffer=!0;function zB(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}gn.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)zB(this,n,n+1);return this};gn.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)zB(this,n,n+3),zB(this,n+1,n+2);return this};gn.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)zB(this,n,n+7),zB(this,n+1,n+6),zB(this,n+2,n+5),zB(this,n+3,n+4);return this};gn.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?_tn(this,0,e):Lqr.apply(this,arguments)};gn.prototype.equals=function(e){if(!X2(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:gn.compare(this,e)===0};gn.prototype.inspect=function(){var e="",n=Mqr;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"};gn.prototype.compare=function(e,n,r,a,o){if(!X2(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),a===void 0&&(a=0),o===void 0&&(o=this.length),n<0||r>e.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===e)return 0;for(var s=o-a,l=r-n,c=Math.min(s,l),u=this.slice(a,o),d=e.slice(n,r),h=0;h<c;++h)if(u[h]!==d[h]){s=u[h],l=d[h];break}return s<l?-1:l<s?1:0};function Stn(t,e,n,r,a){if(t.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(a)return-1;n=t.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof e=="string"&&(e=gn.from(e,r)),X2(e))return e.length===0?-1:Zyt(t,e,n,r,a);if(typeof e=="number")return e=e&255,gn.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):Zyt(t,[e],n,r,a);throw new TypeError("val must be string, number or Buffer")}function Zyt(t,e,n,r,a){var o=1,s=t.length,l=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(p,m){return o===1?p[m]:p.readUInt16BE(m*o)}var u;if(a){var d=-1;for(u=n;u<s;u++)if(c(t,u)===c(e,d===-1?0:u-d)){if(d===-1&&(d=u),u-d+1===l)return d*o}else d!==-1&&(u-=u-d),d=-1}else for(n+l>s&&(n=s-l),u=n;u>=0;u--){for(var h=!0,f=0;f<l;f++)if(c(t,u+f)!==c(e,f)){h=!1;break}if(h)return u}return-1}gn.prototype.includes=function(e,n,r){return this.indexOf(e,n,r)!==-1};gn.prototype.indexOf=function(e,n,r){return Stn(this,e,n,r,!0)};gn.prototype.lastIndexOf=function(e,n,r){return Stn(this,e,n,r,!1)};function Bqr(t,e,n,r){n=Number(n)||0;var a=t.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var l=parseInt(e.substr(s*2,2),16);if(isNaN(l))return s;t[n+s]=l}return s}function Dqr(t,e,n,r){return mSe(tAe(e,t.length-n),t,n,r)}function wtn(t,e,n,r){return mSe(Jqr(e),t,n,r)}function $qr(t,e,n,r){return wtn(t,e,n,r)}function Fqr(t,e,n,r){return mSe(Rtn(e),t,n,r)}function jqr(t,e,n,r){return mSe(Zqr(e,t.length-n),t,n,r)}gn.prototype.write=function(e,n,r,a){if(n===void 0)a="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")a=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,a===void 0&&(a="utf8")):(a=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-n;if((r===void 0||r>o)&&(r=o),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return Bqr(this,e,n,r);case"utf8":case"utf-8":return Dqr(this,e,n,r);case"ascii":return wtn(this,e,n,r);case"latin1":case"binary":return $qr(this,e,n,r);case"base64":return Fqr(this,e,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jqr(this,e,n,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};gn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Hqr(t,e,n){return e===0&&n===t.length?Jyt(t):Jyt(t.slice(e,n))}function _tn(t,e,n){n=Math.min(t.length,n);for(var r=[],a=e;a<n;){var o=t[a],s=null,l=o>239?4:o>223?3:o>191?2:1;if(a+l<=n){var c,u,d,h;switch(l){case 1:o<128&&(s=o);break;case 2:c=t[a+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(s=h));break;case 3:c=t[a+1],u=t[a+2],(c&192)===128&&(u&192)===128&&(h=(o&15)<<12|(c&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:c=t[a+1],u=t[a+2],d=t[a+3],(c&192)===128&&(u&192)===128&&(d&192)===128&&(h=(o&15)<<18|(c&63)<<12|(u&63)<<6|d&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,l=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|s&1023),r.push(s),a+=l}return Uqr(r)}var Xyt=4096;function Uqr(t){var e=t.length;if(e<=Xyt)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Xyt));return n}function zqr(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(t[a]&127);return r}function Gqr(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(t[a]);return r}function Vqr(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=e;o<n;++o)a+=Yqr(t[o]);return a}function Kqr(t,e,n){for(var r=t.slice(e,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+r[o+1]*256);return a}gn.prototype.slice=function(e,n){var r=this.length;e=~~e,n=n===void 0?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<e&&(n=e);var a;if(gn.TYPED_ARRAY_SUPPORT)a=this.subarray(e,n),a.__proto__=gn.prototype;else{var o=n-e;a=new gn(o,void 0);for(var s=0;s<o;++s)a[s]=this[s+e]}return a};function hm(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}gn.prototype.readUIntLE=function(e,n,r){e=e|0,n=n|0,r||hm(e,n,this.length);for(var a=this[e],o=1,s=0;++s<n&&(o*=256);)a+=this[e+s]*o;return a};gn.prototype.readUIntBE=function(e,n,r){e=e|0,n=n|0,r||hm(e,n,this.length);for(var a=this[e+--n],o=1;n>0&&(o*=256);)a+=this[e+--n]*o;return a};gn.prototype.readUInt8=function(e,n){return n||hm(e,1,this.length),this[e]};gn.prototype.readUInt16LE=function(e,n){return n||hm(e,2,this.length),this[e]|this[e+1]<<8};gn.prototype.readUInt16BE=function(e,n){return n||hm(e,2,this.length),this[e]<<8|this[e+1]};gn.prototype.readUInt32LE=function(e,n){return n||hm(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};gn.prototype.readUInt32BE=function(e,n){return n||hm(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};gn.prototype.readIntLE=function(e,n,r){e=e|0,n=n|0,r||hm(e,n,this.length);for(var a=this[e],o=1,s=0;++s<n&&(o*=256);)a+=this[e+s]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*n)),a};gn.prototype.readIntBE=function(e,n,r){e=e|0,n=n|0,r||hm(e,n,this.length);for(var a=n,o=1,s=this[e+--a];a>0&&(o*=256);)s+=this[e+--a]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*n)),s};gn.prototype.readInt8=function(e,n){return n||hm(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};gn.prototype.readInt16LE=function(e,n){n||hm(e,2,this.length);var r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};gn.prototype.readInt16BE=function(e,n){n||hm(e,2,this.length);var r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};gn.prototype.readInt32LE=function(e,n){return n||hm(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};gn.prototype.readInt32BE=function(e,n){return n||hm(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};gn.prototype.readFloatLE=function(e,n){return n||hm(e,4,this.length),hSe(this,e,!0,23,4)};gn.prototype.readFloatBE=function(e,n){return n||hm(e,4,this.length),hSe(this,e,!1,23,4)};gn.prototype.readDoubleLE=function(e,n){return n||hm(e,8,this.length),hSe(this,e,!0,52,8)};gn.prototype.readDoubleBE=function(e,n){return n||hm(e,8,this.length),hSe(this,e,!1,52,8)};function m1(t,e,n,r,a,o){if(!X2(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}gn.prototype.writeUIntLE=function(e,n,r,a){if(e=+e,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;m1(this,e,n,r,o,0)}var s=1,l=0;for(this[n]=e&255;++l<r&&(s*=256);)this[n+l]=e/s&255;return n+r};gn.prototype.writeUIntBE=function(e,n,r,a){if(e=+e,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;m1(this,e,n,r,o,0)}var s=r-1,l=1;for(this[n+s]=e&255;--s>=0&&(l*=256);)this[n+s]=e/l&255;return n+r};gn.prototype.writeUInt8=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,1,255,0),gn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=e&255,n+1};function fSe(t,e,n,r){e<0&&(e=65535+e+1);for(var a=0,o=Math.min(t.length-n,2);a<o;++a)t[n+a]=(e&255<<8*(r?a:1-a))>>>(r?a:1-a)*8}gn.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,2,65535,0),gn.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):fSe(this,e,n,!0),n+2};gn.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,2,65535,0),gn.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):fSe(this,e,n,!1),n+2};function pSe(t,e,n,r){e<0&&(e=4294967295+e+1);for(var a=0,o=Math.min(t.length-n,4);a<o;++a)t[n+a]=e>>>(r?a:3-a)*8&255}gn.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,4,4294967295,0),gn.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255):pSe(this,e,n,!0),n+4};gn.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,4,4294967295,0),gn.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):pSe(this,e,n,!1),n+4};gn.prototype.writeIntLE=function(e,n,r,a){if(e=+e,n=n|0,!a){var o=Math.pow(2,8*r-1);m1(this,e,n,r,o-1,-o)}var s=0,l=1,c=0;for(this[n]=e&255;++s<r&&(l*=256);)e<0&&c===0&&this[n+s-1]!==0&&(c=1),this[n+s]=(e/l>>0)-c&255;return n+r};gn.prototype.writeIntBE=function(e,n,r,a){if(e=+e,n=n|0,!a){var o=Math.pow(2,8*r-1);m1(this,e,n,r,o-1,-o)}var s=r-1,l=1,c=0;for(this[n+s]=e&255;--s>=0&&(l*=256);)e<0&&c===0&&this[n+s+1]!==0&&(c=1),this[n+s]=(e/l>>0)-c&255;return n+r};gn.prototype.writeInt8=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,1,127,-128),gn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=e&255,n+1};gn.prototype.writeInt16LE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,2,32767,-32768),gn.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):fSe(this,e,n,!0),n+2};gn.prototype.writeInt16BE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,2,32767,-32768),gn.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):fSe(this,e,n,!1),n+2};gn.prototype.writeInt32LE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,4,2147483647,-2147483648),gn.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):pSe(this,e,n,!0),n+4};gn.prototype.writeInt32BE=function(e,n,r){return e=+e,n=n|0,r||m1(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),gn.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):pSe(this,e,n,!1),n+4};function Ttn(t,e,n,r,a,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ctn(t,e,n,r,a){return a||Ttn(t,e,n,4),Atn(t,e,n,r,23,4),n+4}gn.prototype.writeFloatLE=function(e,n,r){return Ctn(this,e,n,!0,r)};gn.prototype.writeFloatBE=function(e,n,r){return Ctn(this,e,n,!1,r)};function ktn(t,e,n,r,a){return a||Ttn(t,e,n,8),Atn(t,e,n,r,52,8),n+8}gn.prototype.writeDoubleLE=function(e,n,r){return ktn(this,e,n,!0,r)};gn.prototype.writeDoubleBE=function(e,n,r){return ktn(this,e,n,!1,r)};gn.prototype.copy=function(e,n,r,a){if(r||(r=0),!a&&a!==0&&(a=this.length),n>=e.length&&(n=e.length),n||(n=0),a>0&&a<r&&(a=r),a===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-n<a-r&&(a=e.length-n+r);var o=a-r,s;if(this===e&&r<n&&n<a)for(s=o-1;s>=0;--s)e[s+n]=this[s+r];else if(o<1e3||!gn.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)e[s+n]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),n);return o};gn.prototype.fill=function(e,n,r,a){if(typeof e=="string"){if(typeof n=="string"?(a=n,n=0,r=this.length):typeof r=="string"&&(a=r,r=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!gn.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else typeof e=="number"&&(e=e&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);var s;if(typeof e=="number")for(s=n;s<r;++s)this[s]=e;else{var l=X2(e)?e:tAe(new gn(e,a).toString()),c=l.length;for(s=0;s<r-n;++s)this[s+n]=l[s%c]}return this};var Wqr=/[^+\/0-9A-Za-z-_]/g;function Qqr(t){if(t=qqr(t).replace(Wqr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function qqr(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Yqr(t){return t<16?"0"+t.toString(16):t.toString(16)}function tAe(t,e){e=e||1/0;for(var n,r=t.length,a=null,o=[],s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(e-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function Jqr(t){for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function Zqr(t,e){for(var n,r,a,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function Rtn(t){return Tqr(Qqr(t))}function mSe(t,e,n,r){for(var a=0;a<r&&!(a+n>=e.length||a>=t.length);++a)e[a+n]=t[a];return a}function Xqr(t){return t!==t}function eYr(t){return t!=null&&(!!t._isBuffer||Mtn(t)||tYr(t))}function Mtn(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function tYr(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Mtn(t.slice(0,0))}var TU={},q8={};Object.defineProperty(q8,"__esModule",{value:!0});const nYr=mg;function ebt(t,e,n){try{Reflect.apply(t,e,n)}catch(r){setTimeout(()=>{throw r})}}function rYr(t){const e=t.length,n=new Array(e);for(let r=0;r<e;r+=1)n[r]=t[r];return n}let iYr=class extends nYr.EventEmitter{emit(e,...n){let r=e==="error";const a=this._events;if(a!==void 0)r=r&&a.error===void 0;else if(!r)return!1;if(r){let s;if(n.length>0&&([s]=n),s instanceof Error)throw s;const l=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw l.context=s,l}const o=a[e];if(o===void 0)return!1;if(typeof o=="function")ebt(o,this,n);else{const s=o.length,l=rYr(o);for(let c=0;c<s;c+=1)ebt(l[c],this,n)}return!0}};q8.default=iYr;var Qet={exports:{}};Qet.exports;(function(t){(function(e,n){function r(I,b){if(!I)throw new Error(b||"Assertion failed")}function a(I,b){I.super_=b;var T=function(){};T.prototype=b.prototype,I.prototype=new T,I.prototype.constructor=I}function o(I,b,T){if(o.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((b==="le"||b==="be")&&(T=b,b=10),this._init(I||0,b||10,T||"be"))}typeof e=="object"?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=H8.Buffer}catch{}o.isBN=function(b){return b instanceof o?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===o.wordSize&&Array.isArray(b.words)},o.max=function(b,T){return b.cmp(T)>0?b:T},o.min=function(b,T){return b.cmp(T)<0?b:T},o.prototype._init=function(b,T,M){if(typeof b=="number")return this._initNumber(b,T,M);if(typeof b=="object")return this._initArray(b,T,M);T==="hex"&&(T=16),r(T===(T|0)&&T>=2&&T<=36),b=b.toString().replace(/\s+/g,"");var D=0;b[0]==="-"&&(D++,this.negative=1),D<b.length&&(T===16?this._parseHex(b,D,M):(this._parseBase(b,T,D),M==="le"&&this._initArray(this.toArray(),T,M)))},o.prototype._initNumber=function(b,T,M){b<0&&(this.negative=1,b=-b),b<67108864?(this.words=[b&67108863],this.length=1):b<4503599627370496?(this.words=[b&67108863,b/67108864&67108863],this.length=2):(r(b<9007199254740992),this.words=[b&67108863,b/67108864&67108863,1],this.length=3),M==="le"&&this._initArray(this.toArray(),T,M)},o.prototype._initArray=function(b,T,M){if(r(typeof b.length=="number"),b.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(b.length/3),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B,j,H=0;if(M==="be")for(D=b.length-1,B=0;D>=0;D-=3)j=b[D]|b[D-1]<<8|b[D-2]<<16,this.words[B]|=j<<H&67108863,this.words[B+1]=j>>>26-H&67108863,H+=24,H>=26&&(H-=26,B++);else if(M==="le")for(D=0,B=0;D<b.length;D+=3)j=b[D]|b[D+1]<<8|b[D+2]<<16,this.words[B]|=j<<H&67108863,this.words[B+1]=j>>>26-H&67108863,H+=24,H>=26&&(H-=26,B++);return this._strip()};function l(I,b){var T=I.charCodeAt(b);if(T>=48&&T<=57)return T-48;if(T>=65&&T<=70)return T-55;if(T>=97&&T<=102)return T-87;r(!1,"Invalid character in "+I)}function c(I,b,T){var M=l(I,T);return T-1>=b&&(M|=l(I,T-1)<<4),M}o.prototype._parseHex=function(b,T,M){this.length=Math.ceil((b.length-T)/6),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B=0,j=0,H;if(M==="be")for(D=b.length-1;D>=T;D-=2)H=c(b,T,D)<<B,this.words[j]|=H&67108863,B>=18?(B-=18,j+=1,this.words[j]|=H>>>26):B+=8;else{var U=b.length-T;for(D=U%2===0?T+1:T;D<b.length;D+=2)H=c(b,T,D)<<B,this.words[j]|=H&67108863,B>=18?(B-=18,j+=1,this.words[j]|=H>>>26):B+=8}this._strip()};function u(I,b,T,M){for(var D=0,B=0,j=Math.min(I.length,T),H=b;H<j;H++){var U=I.charCodeAt(H)-48;D*=M,U>=49?B=U-49+10:U>=17?B=U-17+10:B=U,r(U>=0&&B<M,"Invalid character"),D+=B}return D}o.prototype._parseBase=function(b,T,M){this.words=[0],this.length=1;for(var D=0,B=1;B<=67108863;B*=T)D++;D--,B=B/T|0;for(var j=b.length-M,H=j%D,U=Math.min(j,j-H)+M,$=0,z=M;z<U;z+=D)$=u(b,z,z+D,T),this.imuln(B),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($);if(H!==0){var Z=1;for($=u(b,z,b.length,T),z=0;z<H;z++)Z*=T;this.imuln(Z),this.words[0]+$<67108864?this.words[0]+=$:this._iaddn($)}this._strip()},o.prototype.copy=function(b){b.words=new Array(this.length);for(var T=0;T<this.length;T++)b.words[T]=this.words[T];b.length=this.length,b.negative=this.negative,b.red=this.red};function d(I,b){I.words=b.words,I.length=b.length,I.negative=b.negative,I.red=b.red}if(o.prototype._move=function(b){d(b,this)},o.prototype.clone=function(){var b=new o(null);return this.copy(b),b},o.prototype._expand=function(b){for(;this.length<b;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(b,T){b=b||10,T=T|0||1;var M;if(b===16||b==="hex"){M="";for(var D=0,B=0,j=0;j<this.length;j++){var H=this.words[j],U=((H<<D|B)&16777215).toString(16);B=H>>>24-D&16777215,D+=2,D>=26&&(D-=26,j--),B!==0||j!==this.length-1?M=f[6-U.length]+U+M:M=U+M}for(B!==0&&(M=B.toString(16)+M);M.length%T!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(b===(b|0)&&b>=2&&b<=36){var $=p[b],z=m[b];M="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var K=Z.modrn(z).toString(b);Z=Z.idivn(z),Z.isZero()?M=K+M:M=f[$-K.length]+K+M}for(this.isZero()&&(M="0"+M);M.length%T!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(b,T){return this.toArrayLike(s,b,T)}),o.prototype.toArray=function(b,T){return this.toArrayLike(Array,b,T)};var g=function(b,T){return b.allocUnsafe?b.allocUnsafe(T):new b(T)};o.prototype.toArrayLike=function(b,T,M){this._strip();var D=this.byteLength(),B=M||Math.max(1,D);r(D<=B,"byte array longer than desired length"),r(B>0,"Requested array length <= 0");var j=g(b,B),H=T==="le"?"LE":"BE";return this["_toArrayLike"+H](j,D),j},o.prototype._toArrayLikeLE=function(b,T){for(var M=0,D=0,B=0,j=0;B<this.length;B++){var H=this.words[B]<<j|D;b[M++]=H&255,M<b.length&&(b[M++]=H>>8&255),M<b.length&&(b[M++]=H>>16&255),j===6?(M<b.length&&(b[M++]=H>>24&255),D=0,j=0):(D=H>>>24,j+=2)}if(M<b.length)for(b[M++]=D;M<b.length;)b[M++]=0},o.prototype._toArrayLikeBE=function(b,T){for(var M=b.length-1,D=0,B=0,j=0;B<this.length;B++){var H=this.words[B]<<j|D;b[M--]=H&255,M>=0&&(b[M--]=H>>8&255),M>=0&&(b[M--]=H>>16&255),j===6?(M>=0&&(b[M--]=H>>24&255),D=0,j=0):(D=H>>>24,j+=2)}if(M>=0)for(b[M--]=D;M>=0;)b[M--]=0},Math.clz32?o.prototype._countBits=function(b){return 32-Math.clz32(b)}:o.prototype._countBits=function(b){var T=b,M=0;return T>=4096&&(M+=13,T>>>=13),T>=64&&(M+=7,T>>>=7),T>=8&&(M+=4,T>>>=4),T>=2&&(M+=2,T>>>=2),M+T},o.prototype._zeroBits=function(b){if(b===0)return 26;var T=b,M=0;return T&8191||(M+=13,T>>>=13),T&127||(M+=7,T>>>=7),T&15||(M+=4,T>>>=4),T&3||(M+=2,T>>>=2),T&1||M++,M},o.prototype.bitLength=function(){var b=this.words[this.length-1],T=this._countBits(b);return(this.length-1)*26+T};function v(I){for(var b=new Array(I.bitLength()),T=0;T<b.length;T++){var M=T/26|0,D=T%26;b[T]=I.words[M]>>>D&1}return b}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,T=0;T<this.length;T++){var M=this._zeroBits(this.words[T]);if(b+=M,M!==26)break}return b},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(b){return this.negative!==0?this.abs().inotn(b).iaddn(1):this.clone()},o.prototype.fromTwos=function(b){return this.testn(b-1)?this.notn(b).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(b){for(;this.length<b.length;)this.words[this.length++]=0;for(var T=0;T<b.length;T++)this.words[T]=this.words[T]|b.words[T];return this._strip()},o.prototype.ior=function(b){return r((this.negative|b.negative)===0),this.iuor(b)},o.prototype.or=function(b){return this.length>b.length?this.clone().ior(b):b.clone().ior(this)},o.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},o.prototype.iuand=function(b){var T;this.length>b.length?T=b:T=this;for(var M=0;M<T.length;M++)this.words[M]=this.words[M]&b.words[M];return this.length=T.length,this._strip()},o.prototype.iand=function(b){return r((this.negative|b.negative)===0),this.iuand(b)},o.prototype.and=function(b){return this.length>b.length?this.clone().iand(b):b.clone().iand(this)},o.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},o.prototype.iuxor=function(b){var T,M;this.length>b.length?(T=this,M=b):(T=b,M=this);for(var D=0;D<M.length;D++)this.words[D]=T.words[D]^M.words[D];if(this!==T)for(;D<T.length;D++)this.words[D]=T.words[D];return this.length=T.length,this._strip()},o.prototype.ixor=function(b){return r((this.negative|b.negative)===0),this.iuxor(b)},o.prototype.xor=function(b){return this.length>b.length?this.clone().ixor(b):b.clone().ixor(this)},o.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},o.prototype.inotn=function(b){r(typeof b=="number"&&b>=0);var T=Math.ceil(b/26)|0,M=b%26;this._expand(T),M>0&&T--;for(var D=0;D<T;D++)this.words[D]=~this.words[D]&67108863;return M>0&&(this.words[D]=~this.words[D]&67108863>>26-M),this._strip()},o.prototype.notn=function(b){return this.clone().inotn(b)},o.prototype.setn=function(b,T){r(typeof b=="number"&&b>=0);var M=b/26|0,D=b%26;return this._expand(M+1),T?this.words[M]=this.words[M]|1<<D:this.words[M]=this.words[M]&~(1<<D),this._strip()},o.prototype.iadd=function(b){var T;if(this.negative!==0&&b.negative===0)return this.negative=0,T=this.isub(b),this.negative^=1,this._normSign();if(this.negative===0&&b.negative!==0)return b.negative=0,T=this.isub(b),b.negative=1,T._normSign();var M,D;this.length>b.length?(M=this,D=b):(M=b,D=this);for(var B=0,j=0;j<D.length;j++)T=(M.words[j]|0)+(D.words[j]|0)+B,this.words[j]=T&67108863,B=T>>>26;for(;B!==0&&j<M.length;j++)T=(M.words[j]|0)+B,this.words[j]=T&67108863,B=T>>>26;if(this.length=M.length,B!==0)this.words[this.length]=B,this.length++;else if(M!==this)for(;j<M.length;j++)this.words[j]=M.words[j];return this},o.prototype.add=function(b){var T;return b.negative!==0&&this.negative===0?(b.negative=0,T=this.sub(b),b.negative^=1,T):b.negative===0&&this.negative!==0?(this.negative=0,T=b.sub(this),this.negative=1,T):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},o.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var T=this.iadd(b);return b.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var M=this.cmp(b);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;M>0?(D=this,B=b):(D=b,B=this);for(var j=0,H=0;H<B.length;H++)T=(D.words[H]|0)-(B.words[H]|0)+j,j=T>>26,this.words[H]=T&67108863;for(;j!==0&&H<D.length;H++)T=(D.words[H]|0)+j,j=T>>26,this.words[H]=T&67108863;if(j===0&&H<D.length&&D!==this)for(;H<D.length;H++)this.words[H]=D.words[H];return this.length=Math.max(this.length,H),D!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(b){return this.clone().isub(b)};function A(I,b,T){T.negative=b.negative^I.negative;var M=I.length+b.length|0;T.length=M,M=M-1|0;var D=I.words[0]|0,B=b.words[0]|0,j=D*B,H=j&67108863,U=j/67108864|0;T.words[0]=H;for(var $=1;$<M;$++){for(var z=U>>>26,Z=U&67108863,K=Math.min($,b.length-1),Q=Math.max(0,$-I.length+1);Q<=K;Q++){var ee=$-Q|0;D=I.words[ee]|0,B=b.words[Q]|0,j=D*B+Z,z+=j/67108864|0,Z=j&67108863}T.words[$]=Z|0,U=z|0}return U!==0?T.words[$]=U|0:T.length--,T._strip()}var y=function(b,T,M){var D=b.words,B=T.words,j=M.words,H=0,U,$,z,Z=D[0]|0,K=Z&8191,Q=Z>>>13,ee=D[1]|0,X=ee&8191,te=ee>>>13,J=D[2]|0,ne=J&8191,ie=J>>>13,he=D[3]|0,de=he&8191,ce=he>>>13,Ee=D[4]|0,Me=Ee&8191,Be=Ee>>>13,ze=D[5]|0,je=ze&8191,ye=ze>>>13,me=D[6]|0,le=me&8191,pe=me>>>13,Ne=D[7]|0,_e=Ne&8191,ue=Ne>>>13,se=D[8]|0,oe=se&8191,ge=se>>>13,De=D[9]|0,Fe=De&8191,Se=De>>>13,Xe=B[0]|0,Oe=Xe&8191,Ye=Xe>>>13,mt=B[1]|0,ut=mt&8191,lt=mt>>>13,pn=B[2]|0,sn=pn&8191,un=pn>>>13,ur=B[3]|0,dt=ur&8191,xt=ur>>>13,Cn=B[4]|0,Kt=Cn&8191,rn=Cn>>>13,On=B[5]|0,an=On&8191,on=On>>>13,dr=B[6]|0,$e=dr&8191,qe=dr>>>13,yt=B[7]|0,Ze=yt&8191,ot=yt>>>13,yn=B[8]|0,vt=yn&8191,Gt=yn>>>13,ft=B[9]|0,rt=ft&8191,Pt=ft>>>13;M.negative=b.negative^T.negative,M.length=19,U=Math.imul(K,Oe),$=Math.imul(K,Ye),$=$+Math.imul(Q,Oe)|0,z=Math.imul(Q,Ye);var Yt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,U=Math.imul(X,Oe),$=Math.imul(X,Ye),$=$+Math.imul(te,Oe)|0,z=Math.imul(te,Ye),U=U+Math.imul(K,ut)|0,$=$+Math.imul(K,lt)|0,$=$+Math.imul(Q,ut)|0,z=z+Math.imul(Q,lt)|0;var Un=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Un>>>26)|0,Un&=67108863,U=Math.imul(ne,Oe),$=Math.imul(ne,Ye),$=$+Math.imul(ie,Oe)|0,z=Math.imul(ie,Ye),U=U+Math.imul(X,ut)|0,$=$+Math.imul(X,lt)|0,$=$+Math.imul(te,ut)|0,z=z+Math.imul(te,lt)|0,U=U+Math.imul(K,sn)|0,$=$+Math.imul(K,un)|0,$=$+Math.imul(Q,sn)|0,z=z+Math.imul(Q,un)|0;var jn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(jn>>>26)|0,jn&=67108863,U=Math.imul(de,Oe),$=Math.imul(de,Ye),$=$+Math.imul(ce,Oe)|0,z=Math.imul(ce,Ye),U=U+Math.imul(ne,ut)|0,$=$+Math.imul(ne,lt)|0,$=$+Math.imul(ie,ut)|0,z=z+Math.imul(ie,lt)|0,U=U+Math.imul(X,sn)|0,$=$+Math.imul(X,un)|0,$=$+Math.imul(te,sn)|0,z=z+Math.imul(te,un)|0,U=U+Math.imul(K,dt)|0,$=$+Math.imul(K,xt)|0,$=$+Math.imul(Q,dt)|0,z=z+Math.imul(Q,xt)|0;var br=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(br>>>26)|0,br&=67108863,U=Math.imul(Me,Oe),$=Math.imul(Me,Ye),$=$+Math.imul(Be,Oe)|0,z=Math.imul(Be,Ye),U=U+Math.imul(de,ut)|0,$=$+Math.imul(de,lt)|0,$=$+Math.imul(ce,ut)|0,z=z+Math.imul(ce,lt)|0,U=U+Math.imul(ne,sn)|0,$=$+Math.imul(ne,un)|0,$=$+Math.imul(ie,sn)|0,z=z+Math.imul(ie,un)|0,U=U+Math.imul(X,dt)|0,$=$+Math.imul(X,xt)|0,$=$+Math.imul(te,dt)|0,z=z+Math.imul(te,xt)|0,U=U+Math.imul(K,Kt)|0,$=$+Math.imul(K,rn)|0,$=$+Math.imul(Q,Kt)|0,z=z+Math.imul(Q,rn)|0;var si=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(si>>>26)|0,si&=67108863,U=Math.imul(je,Oe),$=Math.imul(je,Ye),$=$+Math.imul(ye,Oe)|0,z=Math.imul(ye,Ye),U=U+Math.imul(Me,ut)|0,$=$+Math.imul(Me,lt)|0,$=$+Math.imul(Be,ut)|0,z=z+Math.imul(Be,lt)|0,U=U+Math.imul(de,sn)|0,$=$+Math.imul(de,un)|0,$=$+Math.imul(ce,sn)|0,z=z+Math.imul(ce,un)|0,U=U+Math.imul(ne,dt)|0,$=$+Math.imul(ne,xt)|0,$=$+Math.imul(ie,dt)|0,z=z+Math.imul(ie,xt)|0,U=U+Math.imul(X,Kt)|0,$=$+Math.imul(X,rn)|0,$=$+Math.imul(te,Kt)|0,z=z+Math.imul(te,rn)|0,U=U+Math.imul(K,an)|0,$=$+Math.imul(K,on)|0,$=$+Math.imul(Q,an)|0,z=z+Math.imul(Q,on)|0;var Qi=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,U=Math.imul(le,Oe),$=Math.imul(le,Ye),$=$+Math.imul(pe,Oe)|0,z=Math.imul(pe,Ye),U=U+Math.imul(je,ut)|0,$=$+Math.imul(je,lt)|0,$=$+Math.imul(ye,ut)|0,z=z+Math.imul(ye,lt)|0,U=U+Math.imul(Me,sn)|0,$=$+Math.imul(Me,un)|0,$=$+Math.imul(Be,sn)|0,z=z+Math.imul(Be,un)|0,U=U+Math.imul(de,dt)|0,$=$+Math.imul(de,xt)|0,$=$+Math.imul(ce,dt)|0,z=z+Math.imul(ce,xt)|0,U=U+Math.imul(ne,Kt)|0,$=$+Math.imul(ne,rn)|0,$=$+Math.imul(ie,Kt)|0,z=z+Math.imul(ie,rn)|0,U=U+Math.imul(X,an)|0,$=$+Math.imul(X,on)|0,$=$+Math.imul(te,an)|0,z=z+Math.imul(te,on)|0,U=U+Math.imul(K,$e)|0,$=$+Math.imul(K,qe)|0,$=$+Math.imul(Q,$e)|0,z=z+Math.imul(Q,qe)|0;var st=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(st>>>26)|0,st&=67108863,U=Math.imul(_e,Oe),$=Math.imul(_e,Ye),$=$+Math.imul(ue,Oe)|0,z=Math.imul(ue,Ye),U=U+Math.imul(le,ut)|0,$=$+Math.imul(le,lt)|0,$=$+Math.imul(pe,ut)|0,z=z+Math.imul(pe,lt)|0,U=U+Math.imul(je,sn)|0,$=$+Math.imul(je,un)|0,$=$+Math.imul(ye,sn)|0,z=z+Math.imul(ye,un)|0,U=U+Math.imul(Me,dt)|0,$=$+Math.imul(Me,xt)|0,$=$+Math.imul(Be,dt)|0,z=z+Math.imul(Be,xt)|0,U=U+Math.imul(de,Kt)|0,$=$+Math.imul(de,rn)|0,$=$+Math.imul(ce,Kt)|0,z=z+Math.imul(ce,rn)|0,U=U+Math.imul(ne,an)|0,$=$+Math.imul(ne,on)|0,$=$+Math.imul(ie,an)|0,z=z+Math.imul(ie,on)|0,U=U+Math.imul(X,$e)|0,$=$+Math.imul(X,qe)|0,$=$+Math.imul(te,$e)|0,z=z+Math.imul(te,qe)|0,U=U+Math.imul(K,Ze)|0,$=$+Math.imul(K,ot)|0,$=$+Math.imul(Q,Ze)|0,z=z+Math.imul(Q,ot)|0;var wt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(wt>>>26)|0,wt&=67108863,U=Math.imul(oe,Oe),$=Math.imul(oe,Ye),$=$+Math.imul(ge,Oe)|0,z=Math.imul(ge,Ye),U=U+Math.imul(_e,ut)|0,$=$+Math.imul(_e,lt)|0,$=$+Math.imul(ue,ut)|0,z=z+Math.imul(ue,lt)|0,U=U+Math.imul(le,sn)|0,$=$+Math.imul(le,un)|0,$=$+Math.imul(pe,sn)|0,z=z+Math.imul(pe,un)|0,U=U+Math.imul(je,dt)|0,$=$+Math.imul(je,xt)|0,$=$+Math.imul(ye,dt)|0,z=z+Math.imul(ye,xt)|0,U=U+Math.imul(Me,Kt)|0,$=$+Math.imul(Me,rn)|0,$=$+Math.imul(Be,Kt)|0,z=z+Math.imul(Be,rn)|0,U=U+Math.imul(de,an)|0,$=$+Math.imul(de,on)|0,$=$+Math.imul(ce,an)|0,z=z+Math.imul(ce,on)|0,U=U+Math.imul(ne,$e)|0,$=$+Math.imul(ne,qe)|0,$=$+Math.imul(ie,$e)|0,z=z+Math.imul(ie,qe)|0,U=U+Math.imul(X,Ze)|0,$=$+Math.imul(X,ot)|0,$=$+Math.imul(te,Ze)|0,z=z+Math.imul(te,ot)|0,U=U+Math.imul(K,vt)|0,$=$+Math.imul(K,Gt)|0,$=$+Math.imul(Q,vt)|0,z=z+Math.imul(Q,Gt)|0;var Bt=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,U=Math.imul(Fe,Oe),$=Math.imul(Fe,Ye),$=$+Math.imul(Se,Oe)|0,z=Math.imul(Se,Ye),U=U+Math.imul(oe,ut)|0,$=$+Math.imul(oe,lt)|0,$=$+Math.imul(ge,ut)|0,z=z+Math.imul(ge,lt)|0,U=U+Math.imul(_e,sn)|0,$=$+Math.imul(_e,un)|0,$=$+Math.imul(ue,sn)|0,z=z+Math.imul(ue,un)|0,U=U+Math.imul(le,dt)|0,$=$+Math.imul(le,xt)|0,$=$+Math.imul(pe,dt)|0,z=z+Math.imul(pe,xt)|0,U=U+Math.imul(je,Kt)|0,$=$+Math.imul(je,rn)|0,$=$+Math.imul(ye,Kt)|0,z=z+Math.imul(ye,rn)|0,U=U+Math.imul(Me,an)|0,$=$+Math.imul(Me,on)|0,$=$+Math.imul(Be,an)|0,z=z+Math.imul(Be,on)|0,U=U+Math.imul(de,$e)|0,$=$+Math.imul(de,qe)|0,$=$+Math.imul(ce,$e)|0,z=z+Math.imul(ce,qe)|0,U=U+Math.imul(ne,Ze)|0,$=$+Math.imul(ne,ot)|0,$=$+Math.imul(ie,Ze)|0,z=z+Math.imul(ie,ot)|0,U=U+Math.imul(X,vt)|0,$=$+Math.imul(X,Gt)|0,$=$+Math.imul(te,vt)|0,z=z+Math.imul(te,Gt)|0,U=U+Math.imul(K,rt)|0,$=$+Math.imul(K,Pt)|0,$=$+Math.imul(Q,rt)|0,z=z+Math.imul(Q,Pt)|0;var dn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(dn>>>26)|0,dn&=67108863,U=Math.imul(Fe,ut),$=Math.imul(Fe,lt),$=$+Math.imul(Se,ut)|0,z=Math.imul(Se,lt),U=U+Math.imul(oe,sn)|0,$=$+Math.imul(oe,un)|0,$=$+Math.imul(ge,sn)|0,z=z+Math.imul(ge,un)|0,U=U+Math.imul(_e,dt)|0,$=$+Math.imul(_e,xt)|0,$=$+Math.imul(ue,dt)|0,z=z+Math.imul(ue,xt)|0,U=U+Math.imul(le,Kt)|0,$=$+Math.imul(le,rn)|0,$=$+Math.imul(pe,Kt)|0,z=z+Math.imul(pe,rn)|0,U=U+Math.imul(je,an)|0,$=$+Math.imul(je,on)|0,$=$+Math.imul(ye,an)|0,z=z+Math.imul(ye,on)|0,U=U+Math.imul(Me,$e)|0,$=$+Math.imul(Me,qe)|0,$=$+Math.imul(Be,$e)|0,z=z+Math.imul(Be,qe)|0,U=U+Math.imul(de,Ze)|0,$=$+Math.imul(de,ot)|0,$=$+Math.imul(ce,Ze)|0,z=z+Math.imul(ce,ot)|0,U=U+Math.imul(ne,vt)|0,$=$+Math.imul(ne,Gt)|0,$=$+Math.imul(ie,vt)|0,z=z+Math.imul(ie,Gt)|0,U=U+Math.imul(X,rt)|0,$=$+Math.imul(X,Pt)|0,$=$+Math.imul(te,rt)|0,z=z+Math.imul(te,Pt)|0;var tn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(tn>>>26)|0,tn&=67108863,U=Math.imul(Fe,sn),$=Math.imul(Fe,un),$=$+Math.imul(Se,sn)|0,z=Math.imul(Se,un),U=U+Math.imul(oe,dt)|0,$=$+Math.imul(oe,xt)|0,$=$+Math.imul(ge,dt)|0,z=z+Math.imul(ge,xt)|0,U=U+Math.imul(_e,Kt)|0,$=$+Math.imul(_e,rn)|0,$=$+Math.imul(ue,Kt)|0,z=z+Math.imul(ue,rn)|0,U=U+Math.imul(le,an)|0,$=$+Math.imul(le,on)|0,$=$+Math.imul(pe,an)|0,z=z+Math.imul(pe,on)|0,U=U+Math.imul(je,$e)|0,$=$+Math.imul(je,qe)|0,$=$+Math.imul(ye,$e)|0,z=z+Math.imul(ye,qe)|0,U=U+Math.imul(Me,Ze)|0,$=$+Math.imul(Me,ot)|0,$=$+Math.imul(Be,Ze)|0,z=z+Math.imul(Be,ot)|0,U=U+Math.imul(de,vt)|0,$=$+Math.imul(de,Gt)|0,$=$+Math.imul(ce,vt)|0,z=z+Math.imul(ce,Gt)|0,U=U+Math.imul(ne,rt)|0,$=$+Math.imul(ne,Pt)|0,$=$+Math.imul(ie,rt)|0,z=z+Math.imul(ie,Pt)|0;var vn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(vn>>>26)|0,vn&=67108863,U=Math.imul(Fe,dt),$=Math.imul(Fe,xt),$=$+Math.imul(Se,dt)|0,z=Math.imul(Se,xt),U=U+Math.imul(oe,Kt)|0,$=$+Math.imul(oe,rn)|0,$=$+Math.imul(ge,Kt)|0,z=z+Math.imul(ge,rn)|0,U=U+Math.imul(_e,an)|0,$=$+Math.imul(_e,on)|0,$=$+Math.imul(ue,an)|0,z=z+Math.imul(ue,on)|0,U=U+Math.imul(le,$e)|0,$=$+Math.imul(le,qe)|0,$=$+Math.imul(pe,$e)|0,z=z+Math.imul(pe,qe)|0,U=U+Math.imul(je,Ze)|0,$=$+Math.imul(je,ot)|0,$=$+Math.imul(ye,Ze)|0,z=z+Math.imul(ye,ot)|0,U=U+Math.imul(Me,vt)|0,$=$+Math.imul(Me,Gt)|0,$=$+Math.imul(Be,vt)|0,z=z+Math.imul(Be,Gt)|0,U=U+Math.imul(de,rt)|0,$=$+Math.imul(de,Pt)|0,$=$+Math.imul(ce,rt)|0,z=z+Math.imul(ce,Pt)|0;var kn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(kn>>>26)|0,kn&=67108863,U=Math.imul(Fe,Kt),$=Math.imul(Fe,rn),$=$+Math.imul(Se,Kt)|0,z=Math.imul(Se,rn),U=U+Math.imul(oe,an)|0,$=$+Math.imul(oe,on)|0,$=$+Math.imul(ge,an)|0,z=z+Math.imul(ge,on)|0,U=U+Math.imul(_e,$e)|0,$=$+Math.imul(_e,qe)|0,$=$+Math.imul(ue,$e)|0,z=z+Math.imul(ue,qe)|0,U=U+Math.imul(le,Ze)|0,$=$+Math.imul(le,ot)|0,$=$+Math.imul(pe,Ze)|0,z=z+Math.imul(pe,ot)|0,U=U+Math.imul(je,vt)|0,$=$+Math.imul(je,Gt)|0,$=$+Math.imul(ye,vt)|0,z=z+Math.imul(ye,Gt)|0,U=U+Math.imul(Me,rt)|0,$=$+Math.imul(Me,Pt)|0,$=$+Math.imul(Be,rt)|0,z=z+Math.imul(Be,Pt)|0;var Mn=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,U=Math.imul(Fe,an),$=Math.imul(Fe,on),$=$+Math.imul(Se,an)|0,z=Math.imul(Se,on),U=U+Math.imul(oe,$e)|0,$=$+Math.imul(oe,qe)|0,$=$+Math.imul(ge,$e)|0,z=z+Math.imul(ge,qe)|0,U=U+Math.imul(_e,Ze)|0,$=$+Math.imul(_e,ot)|0,$=$+Math.imul(ue,Ze)|0,z=z+Math.imul(ue,ot)|0,U=U+Math.imul(le,vt)|0,$=$+Math.imul(le,Gt)|0,$=$+Math.imul(pe,vt)|0,z=z+Math.imul(pe,Gt)|0,U=U+Math.imul(je,rt)|0,$=$+Math.imul(je,Pt)|0,$=$+Math.imul(ye,rt)|0,z=z+Math.imul(ye,Pt)|0;var Nr=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,U=Math.imul(Fe,$e),$=Math.imul(Fe,qe),$=$+Math.imul(Se,$e)|0,z=Math.imul(Se,qe),U=U+Math.imul(oe,Ze)|0,$=$+Math.imul(oe,ot)|0,$=$+Math.imul(ge,Ze)|0,z=z+Math.imul(ge,ot)|0,U=U+Math.imul(_e,vt)|0,$=$+Math.imul(_e,Gt)|0,$=$+Math.imul(ue,vt)|0,z=z+Math.imul(ue,Gt)|0,U=U+Math.imul(le,rt)|0,$=$+Math.imul(le,Pt)|0,$=$+Math.imul(pe,rt)|0,z=z+Math.imul(pe,Pt)|0;var na=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(na>>>26)|0,na&=67108863,U=Math.imul(Fe,Ze),$=Math.imul(Fe,ot),$=$+Math.imul(Se,Ze)|0,z=Math.imul(Se,ot),U=U+Math.imul(oe,vt)|0,$=$+Math.imul(oe,Gt)|0,$=$+Math.imul(ge,vt)|0,z=z+Math.imul(ge,Gt)|0,U=U+Math.imul(_e,rt)|0,$=$+Math.imul(_e,Pt)|0,$=$+Math.imul(ue,rt)|0,z=z+Math.imul(ue,Pt)|0;var Ar=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,U=Math.imul(Fe,vt),$=Math.imul(Fe,Gt),$=$+Math.imul(Se,vt)|0,z=Math.imul(Se,Gt),U=U+Math.imul(oe,rt)|0,$=$+Math.imul(oe,Pt)|0,$=$+Math.imul(ge,rt)|0,z=z+Math.imul(ge,Pt)|0;var qi=(H+U|0)+(($&8191)<<13)|0;H=(z+($>>>13)|0)+(qi>>>26)|0,qi&=67108863,U=Math.imul(Fe,rt),$=Math.imul(Fe,Pt),$=$+Math.imul(Se,rt)|0,z=Math.imul(Se,Pt);var Ge=(H+U|0)+(($&8191)<<13)|0;return H=(z+($>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,j[0]=Yt,j[1]=Un,j[2]=jn,j[3]=br,j[4]=si,j[5]=Qi,j[6]=st,j[7]=wt,j[8]=Bt,j[9]=dn,j[10]=tn,j[11]=vn,j[12]=kn,j[13]=Mn,j[14]=Nr,j[15]=na,j[16]=Ar,j[17]=qi,j[18]=Ge,H!==0&&(j[19]=H,M.length++),M};Math.imul||(y=A);function S(I,b,T){T.negative=b.negative^I.negative,T.length=I.length+b.length;for(var M=0,D=0,B=0;B<T.length-1;B++){var j=D;D=0;for(var H=M&67108863,U=Math.min(B,b.length-1),$=Math.max(0,B-I.length+1);$<=U;$++){var z=B-$,Z=I.words[z]|0,K=b.words[$]|0,Q=Z*K,ee=Q&67108863;j=j+(Q/67108864|0)|0,ee=ee+H|0,H=ee&67108863,j=j+(ee>>>26)|0,D+=j>>>26,j&=67108863}T.words[B]=H,M=j,j=D}return M!==0?T.words[B]=M:T.length--,T._strip()}function x(I,b,T){return S(I,b,T)}o.prototype.mulTo=function(b,T){var M,D=this.length+b.length;return this.length===10&&b.length===10?M=y(this,b,T):D<63?M=A(this,b,T):D<1024?M=S(this,b,T):M=x(this,b,T),M},o.prototype.mul=function(b){var T=new o(null);return T.words=new Array(this.length+b.length),this.mulTo(b,T)},o.prototype.mulf=function(b){var T=new o(null);return T.words=new Array(this.length+b.length),x(this,b,T)},o.prototype.imul=function(b){return this.clone().mulTo(b,this)},o.prototype.imuln=function(b){var T=b<0;T&&(b=-b),r(typeof b=="number"),r(b<67108864);for(var M=0,D=0;D<this.length;D++){var B=(this.words[D]|0)*b,j=(B&67108863)+(M&67108863);M>>=26,M+=B/67108864|0,M+=j>>>26,this.words[D]=j&67108863}return M!==0&&(this.words[D]=M,this.length++),T?this.ineg():this},o.prototype.muln=function(b){return this.clone().imuln(b)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(b){var T=v(b);if(T.length===0)return new o(1);for(var M=this,D=0;D<T.length&&T[D]===0;D++,M=M.sqr());if(++D<T.length)for(var B=M.sqr();D<T.length;D++,B=B.sqr())T[D]!==0&&(M=M.mul(B));return M},o.prototype.iushln=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26,D=67108863>>>26-T<<26-T,B;if(T!==0){var j=0;for(B=0;B<this.length;B++){var H=this.words[B]&D,U=(this.words[B]|0)-H<<T;this.words[B]=U|j,j=H>>>26-T}j&&(this.words[B]=j,this.length++)}if(M!==0){for(B=this.length-1;B>=0;B--)this.words[B+M]=this.words[B];for(B=0;B<M;B++)this.words[B]=0;this.length+=M}return this._strip()},o.prototype.ishln=function(b){return r(this.negative===0),this.iushln(b)},o.prototype.iushrn=function(b,T,M){r(typeof b=="number"&&b>=0);var D;T?D=(T-T%26)/26:D=0;var B=b%26,j=Math.min((b-B)/26,this.length),H=67108863^67108863>>>B<<B,U=M;if(D-=j,D=Math.max(0,D),U){for(var $=0;$<j;$++)U.words[$]=this.words[$];U.length=j}if(j!==0)if(this.length>j)for(this.length-=j,$=0;$<this.length;$++)this.words[$]=this.words[$+j];else this.words[0]=0,this.length=1;var z=0;for($=this.length-1;$>=0&&(z!==0||$>=D);$--){var Z=this.words[$]|0;this.words[$]=z<<26-B|Z>>>B,z=Z&H}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(b,T,M){return r(this.negative===0),this.iushrn(b,T,M)},o.prototype.shln=function(b){return this.clone().ishln(b)},o.prototype.ushln=function(b){return this.clone().iushln(b)},o.prototype.shrn=function(b){return this.clone().ishrn(b)},o.prototype.ushrn=function(b){return this.clone().iushrn(b)},o.prototype.testn=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26,D=1<<T;if(this.length<=M)return!1;var B=this.words[M];return!!(B&D)},o.prototype.imaskn=function(b){r(typeof b=="number"&&b>=0);var T=b%26,M=(b-T)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(T!==0&&M++,this.length=Math.min(M,this.length),T!==0){var D=67108863^67108863>>>T<<T;this.words[this.length-1]&=D}return this._strip()},o.prototype.maskn=function(b){return this.clone().imaskn(b)},o.prototype.iaddn=function(b){return r(typeof b=="number"),r(b<67108864),b<0?this.isubn(-b):this.negative!==0?this.length===1&&(this.words[0]|0)<=b?(this.words[0]=b-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(b),this.negative=1,this):this._iaddn(b)},o.prototype._iaddn=function(b){this.words[0]+=b;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},o.prototype.isubn=function(b){if(r(typeof b=="number"),r(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this._strip()},o.prototype.addn=function(b){return this.clone().iaddn(b)},o.prototype.subn=function(b){return this.clone().isubn(b)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(b,T,M){var D=b.length+M,B;this._expand(D);var j,H=0;for(B=0;B<b.length;B++){j=(this.words[B+M]|0)+H;var U=(b.words[B]|0)*T;j-=U&67108863,H=(j>>26)-(U/67108864|0),this.words[B+M]=j&67108863}for(;B<this.length-M;B++)j=(this.words[B+M]|0)+H,H=j>>26,this.words[B+M]=j&67108863;if(H===0)return this._strip();for(r(H===-1),H=0,B=0;B<this.length;B++)j=-(this.words[B]|0)+H,H=j>>26,this.words[B]=j&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(b,T){var M=this.length-b.length,D=this.clone(),B=b,j=B.words[B.length-1]|0,H=this._countBits(j);M=26-H,M!==0&&(B=B.ushln(M),D.iushln(M),j=B.words[B.length-1]|0);var U=D.length-B.length,$;if(T!=="mod"){$=new o(null),$.length=U+1,$.words=new Array($.length);for(var z=0;z<$.length;z++)$.words[z]=0}var Z=D.clone()._ishlnsubmul(B,1,U);Z.negative===0&&(D=Z,$&&($.words[U]=1));for(var K=U-1;K>=0;K--){var Q=(D.words[B.length+K]|0)*67108864+(D.words[B.length+K-1]|0);for(Q=Math.min(Q/j|0,67108863),D._ishlnsubmul(B,Q,K);D.negative!==0;)Q--,D.negative=0,D._ishlnsubmul(B,1,K),D.isZero()||(D.negative^=1);$&&($.words[K]=Q)}return $&&$._strip(),D._strip(),T!=="div"&&M!==0&&D.iushrn(M),{div:$||null,mod:D}},o.prototype.divmod=function(b,T,M){if(r(!b.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var D,B,j;return this.negative!==0&&b.negative===0?(j=this.neg().divmod(b,T),T!=="mod"&&(D=j.div.neg()),T!=="div"&&(B=j.mod.neg(),M&&B.negative!==0&&B.iadd(b)),{div:D,mod:B}):this.negative===0&&b.negative!==0?(j=this.divmod(b.neg(),T),T!=="mod"&&(D=j.div.neg()),{div:D,mod:j.mod}):this.negative&b.negative?(j=this.neg().divmod(b.neg(),T),T!=="div"&&(B=j.mod.neg(),M&&B.negative!==0&&B.isub(b)),{div:j.div,mod:B}):b.length>this.length||this.cmp(b)<0?{div:new o(0),mod:this}:b.length===1?T==="div"?{div:this.divn(b.words[0]),mod:null}:T==="mod"?{div:null,mod:new o(this.modrn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new o(this.modrn(b.words[0]))}:this._wordDiv(b,T)},o.prototype.div=function(b){return this.divmod(b,"div",!1).div},o.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},o.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},o.prototype.divRound=function(b){var T=this.divmod(b);if(T.mod.isZero())return T.div;var M=T.div.negative!==0?T.mod.isub(b):T.mod,D=b.ushrn(1),B=b.andln(1),j=M.cmp(D);return j<0||B===1&&j===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},o.prototype.modrn=function(b){var T=b<0;T&&(b=-b),r(b<=67108863);for(var M=(1<<26)%b,D=0,B=this.length-1;B>=0;B--)D=(M*D+(this.words[B]|0))%b;return T?-D:D},o.prototype.modn=function(b){return this.modrn(b)},o.prototype.idivn=function(b){var T=b<0;T&&(b=-b),r(b<=67108863);for(var M=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+M*67108864;this.words[D]=B/b|0,M=B%b}return this._strip(),T?this.ineg():this},o.prototype.divn=function(b){return this.clone().idivn(b)},o.prototype.egcd=function(b){r(b.negative===0),r(!b.isZero());var T=this,M=b.clone();T.negative!==0?T=T.umod(b):T=T.clone();for(var D=new o(1),B=new o(0),j=new o(0),H=new o(1),U=0;T.isEven()&&M.isEven();)T.iushrn(1),M.iushrn(1),++U;for(var $=M.clone(),z=T.clone();!T.isZero();){for(var Z=0,K=1;!(T.words[0]&K)&&Z<26;++Z,K<<=1);if(Z>0)for(T.iushrn(Z);Z-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd($),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var Q=0,ee=1;!(M.words[0]&ee)&&Q<26;++Q,ee<<=1);if(Q>0)for(M.iushrn(Q);Q-- >0;)(j.isOdd()||H.isOdd())&&(j.iadd($),H.isub(z)),j.iushrn(1),H.iushrn(1);T.cmp(M)>=0?(T.isub(M),D.isub(j),B.isub(H)):(M.isub(T),j.isub(D),H.isub(B))}return{a:j,b:H,gcd:M.iushln(U)}},o.prototype._invmp=function(b){r(b.negative===0),r(!b.isZero());var T=this,M=b.clone();T.negative!==0?T=T.umod(b):T=T.clone();for(var D=new o(1),B=new o(0),j=M.clone();T.cmpn(1)>0&&M.cmpn(1)>0;){for(var H=0,U=1;!(T.words[0]&U)&&H<26;++H,U<<=1);if(H>0)for(T.iushrn(H);H-- >0;)D.isOdd()&&D.iadd(j),D.iushrn(1);for(var $=0,z=1;!(M.words[0]&z)&&$<26;++$,z<<=1);if($>0)for(M.iushrn($);$-- >0;)B.isOdd()&&B.iadd(j),B.iushrn(1);T.cmp(M)>=0?(T.isub(M),D.isub(B)):(M.isub(T),B.isub(D))}var Z;return T.cmpn(1)===0?Z=D:Z=B,Z.cmpn(0)<0&&Z.iadd(b),Z},o.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var T=this.clone(),M=b.clone();T.negative=0,M.negative=0;for(var D=0;T.isEven()&&M.isEven();D++)T.iushrn(1),M.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;M.isEven();)M.iushrn(1);var B=T.cmp(M);if(B<0){var j=T;T=M,M=j}else if(B===0||M.cmpn(1)===0)break;T.isub(M)}while(!0);return M.iushln(D)},o.prototype.invm=function(b){return this.egcd(b).a.umod(b)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(b){return this.words[0]&b},o.prototype.bincn=function(b){r(typeof b=="number");var T=b%26,M=(b-T)/26,D=1<<T;if(this.length<=M)return this._expand(M+1),this.words[M]|=D,this;for(var B=D,j=M;B!==0&&j<this.length;j++){var H=this.words[j]|0;H+=B,B=H>>>26,H&=67108863,this.words[j]=H}return B!==0&&(this.words[j]=B,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(b){var T=b<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this._strip();var M;if(this.length>1)M=1;else{T&&(b=-b),r(b<=67108863,"Number is too big");var D=this.words[0]|0;M=D===b?0:D<b?-1:1}return this.negative!==0?-M|0:M},o.prototype.cmp=function(b){if(this.negative!==0&&b.negative===0)return-1;if(this.negative===0&&b.negative!==0)return 1;var T=this.ucmp(b);return this.negative!==0?-T|0:T},o.prototype.ucmp=function(b){if(this.length>b.length)return 1;if(this.length<b.length)return-1;for(var T=0,M=this.length-1;M>=0;M--){var D=this.words[M]|0,B=b.words[M]|0;if(D!==B){D<B?T=-1:D>B&&(T=1);break}}return T},o.prototype.gtn=function(b){return this.cmpn(b)===1},o.prototype.gt=function(b){return this.cmp(b)===1},o.prototype.gten=function(b){return this.cmpn(b)>=0},o.prototype.gte=function(b){return this.cmp(b)>=0},o.prototype.ltn=function(b){return this.cmpn(b)===-1},o.prototype.lt=function(b){return this.cmp(b)===-1},o.prototype.lten=function(b){return this.cmpn(b)<=0},o.prototype.lte=function(b){return this.cmp(b)<=0},o.prototype.eqn=function(b){return this.cmpn(b)===0},o.prototype.eq=function(b){return this.cmp(b)===0},o.red=function(b){return new N(b)},o.prototype.toRed=function(b){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(b){return this.red=b,this},o.prototype.forceRed=function(b){return r(!this.red,"Already a number in reduction context"),this._forceRed(b)},o.prototype.redAdd=function(b){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},o.prototype.redIAdd=function(b){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},o.prototype.redSub=function(b){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},o.prototype.redISub=function(b){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},o.prototype.redShl=function(b){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},o.prototype.redMul=function(b){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},o.prototype.redIMul=function(b){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(b){return r(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var w={k256:null,p224:null,p192:null,p25519:null};function _(I,b){this.name=I,this.p=new o(b,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}_.prototype._tmp=function(){var b=new o(null);return b.words=new Array(Math.ceil(this.n/13)),b},_.prototype.ireduce=function(b){var T=b,M;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),M=T.bitLength();while(M>this.n);var D=M<this.n?-1:T.ucmp(this.p);return D===0?(T.words[0]=0,T.length=1):D>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},_.prototype.split=function(b,T){b.iushrn(this.n,0,T)},_.prototype.imulK=function(b){return b.imul(this.k)};function C(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(C,_),C.prototype.split=function(b,T){for(var M=4194303,D=Math.min(b.length,9),B=0;B<D;B++)T.words[B]=b.words[B];if(T.length=D,b.length<=9){b.words[0]=0,b.length=1;return}var j=b.words[9];for(T.words[T.length++]=j&M,B=10;B<b.length;B++){var H=b.words[B]|0;b.words[B-10]=(H&M)<<4|j>>>22,j=H}j>>>=22,b.words[B-10]=j,j===0&&b.length>10?b.length-=10:b.length-=9},C.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var T=0,M=0;M<b.length;M++){var D=b.words[M]|0;T+=D*977,b.words[M]=T&67108863,T=D*64+(T/67108864|0)}return b.words[b.length-1]===0&&(b.length--,b.words[b.length-1]===0&&b.length--),b};function R(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(R,_);function k(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(k,_);function P(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(P,_),P.prototype.imulK=function(b){for(var T=0,M=0;M<b.length;M++){var D=(b.words[M]|0)*19+T,B=D&67108863;D>>>=26,b.words[M]=B,T=D}return T!==0&&(b.words[b.length++]=T),b},o._prime=function(b){if(w[b])return w[b];var T;if(b==="k256")T=new C;else if(b==="p224")T=new R;else if(b==="p192")T=new k;else if(b==="p25519")T=new P;else throw new Error("Unknown prime "+b);return w[b]=T,T};function N(I){if(typeof I=="string"){var b=o._prime(I);this.m=b.p,this.prime=b}else r(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}N.prototype._verify1=function(b){r(b.negative===0,"red works only with positives"),r(b.red,"red works only with red numbers")},N.prototype._verify2=function(b,T){r((b.negative|T.negative)===0,"red works only with positives"),r(b.red&&b.red===T.red,"red works only with red numbers")},N.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):(d(b,b.umod(this.m)._forceRed(this)),b)},N.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},N.prototype.add=function(b,T){this._verify2(b,T);var M=b.add(T);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},N.prototype.iadd=function(b,T){this._verify2(b,T);var M=b.iadd(T);return M.cmp(this.m)>=0&&M.isub(this.m),M},N.prototype.sub=function(b,T){this._verify2(b,T);var M=b.sub(T);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},N.prototype.isub=function(b,T){this._verify2(b,T);var M=b.isub(T);return M.cmpn(0)<0&&M.iadd(this.m),M},N.prototype.shl=function(b,T){return this._verify1(b),this.imod(b.ushln(T))},N.prototype.imul=function(b,T){return this._verify2(b,T),this.imod(b.imul(T))},N.prototype.mul=function(b,T){return this._verify2(b,T),this.imod(b.mul(T))},N.prototype.isqr=function(b){return this.imul(b,b.clone())},N.prototype.sqr=function(b){return this.mul(b,b)},N.prototype.sqrt=function(b){if(b.isZero())return b.clone();var T=this.m.andln(3);if(r(T%2===1),T===3){var M=this.m.add(new o(1)).iushrn(2);return this.pow(b,M)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);r(!D.isZero());var j=new o(1).toRed(this),H=j.redNeg(),U=this.m.subn(1).iushrn(1),$=this.m.bitLength();for($=new o(2*$*$).toRed(this);this.pow($,U).cmp(H)!==0;)$.redIAdd(H);for(var z=this.pow($,D),Z=this.pow(b,D.addn(1).iushrn(1)),K=this.pow(b,D),Q=B;K.cmp(j)!==0;){for(var ee=K,X=0;ee.cmp(j)!==0;X++)ee=ee.redSqr();r(X<Q);var te=this.pow(z,new o(1).iushln(Q-X-1));Z=Z.redMul(te),z=te.redSqr(),K=K.redMul(z),Q=X}return Z},N.prototype.invm=function(b){var T=b._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},N.prototype.pow=function(b,T){if(T.isZero())return new o(1).toRed(this);if(T.cmpn(1)===0)return b.clone();var M=4,D=new Array(1<<M);D[0]=new o(1).toRed(this),D[1]=b;for(var B=2;B<D.length;B++)D[B]=this.mul(D[B-1],b);var j=D[0],H=0,U=0,$=T.bitLength()%26;for($===0&&($=26),B=T.length-1;B>=0;B--){for(var z=T.words[B],Z=$-1;Z>=0;Z--){var K=z>>Z&1;if(j!==D[0]&&(j=this.sqr(j)),K===0&&H===0){U=0;continue}H<<=1,H|=K,U++,!(U!==M&&(B!==0||Z!==0))&&(j=this.mul(j,D[H]),U=0,H=0)}$=26}return j},N.prototype.convertTo=function(b){var T=b.umod(this.m);return T===b?T.clone():T},N.prototype.convertFrom=function(b){var T=b.clone();return T.red=null,T},o.mont=function(b){return new L(b)};function L(I){N.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(L,N),L.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},L.prototype.convertFrom=function(b){var T=this.imod(b.mul(this.rinv));return T.red=null,T},L.prototype.imul=function(b,T){if(b.isZero()||T.isZero())return b.words[0]=0,b.length=1,b;var M=b.imul(T),D=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=M.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},L.prototype.mul=function(b,T){if(b.isZero()||T.isZero())return new o(0)._forceRed(this);var M=b.mul(T),D=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=M.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},L.prototype.invm=function(b){var T=this.imod(b._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(t,en)})(Qet);var gSe=Qet.exports,RG={};Object.defineProperty(RG,"__esModule",{value:!0});RG.EVENTS=void 0;RG.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"};var Rae={},Ntn={},lP={},Itn=xne;xne.default=xne;xne.stable=Ltn;xne.stableStringify=Ltn;var nAe="[...]",Ptn="[Circular]",P6=[],GB=[];function Otn(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function xne(t,e,n,r){typeof r>"u"&&(r=Otn()),bUe(t,"",0,[],void 0,0,r);var a;try{GB.length===0?a=JSON.stringify(t,e,n):a=JSON.stringify(t,Btn(e),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;P6.length!==0;){var o=P6.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return a}function Wj(t,e,n,r){var a=Object.getOwnPropertyDescriptor(r,n);a.get!==void 0?a.configurable?(Object.defineProperty(r,n,{value:t}),P6.push([r,n,e,a])):GB.push([e,n,t]):(r[n]=t,P6.push([r,n,e]))}function bUe(t,e,n,r,a,o,s){o+=1;var l;if(typeof t=="object"&&t!==null){for(l=0;l<r.length;l++)if(r[l]===t){Wj(Ptn,t,e,a);return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){Wj(nAe,t,e,a);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Wj(nAe,t,e,a);return}if(r.push(t),Array.isArray(t))for(l=0;l<t.length;l++)bUe(t[l],l,l,r,t,o,s);else{var c=Object.keys(t);for(l=0;l<c.length;l++){var u=c[l];bUe(t[u],u,l,r,t,o,s)}}r.pop()}}function aYr(t,e){return t<e?-1:t>e?1:0}function Ltn(t,e,n,r){typeof r>"u"&&(r=Otn());var a=xUe(t,"",0,[],void 0,0,r)||t,o;try{GB.length===0?o=JSON.stringify(a,e,n):o=JSON.stringify(a,Btn(e),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;P6.length!==0;){var s=P6.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function xUe(t,e,n,r,a,o,s){o+=1;var l;if(typeof t=="object"&&t!==null){for(l=0;l<r.length;l++)if(r[l]===t){Wj(Ptn,t,e,a);return}try{if(typeof t.toJSON=="function")return}catch{return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){Wj(nAe,t,e,a);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Wj(nAe,t,e,a);return}if(r.push(t),Array.isArray(t))for(l=0;l<t.length;l++)xUe(t[l],l,l,r,t,o,s);else{var c={},u=Object.keys(t).sort(aYr);for(l=0;l<u.length;l++){var d=u[l];xUe(t[d],d,l,r,t,o,s),c[d]=t[d]}if(typeof a<"u")P6.push([a,e,t]),a[e]=c;else return c}r.pop()}}function Btn(t){return t=typeof t<"u"?t:function(e,n){return n},function(e,n){if(GB.length>0)for(var r=0;r<GB.length;r++){var a=GB[r];if(a[1]===e&&a[0]===n){n=a[2],GB.splice(r,1);break}}return t.call(this,e,n)}}Object.defineProperty(lP,"__esModule",{value:!0});lP.EthereumProviderError=lP.EthereumRpcError=void 0;const oYr=Itn;let Dtn=class extends Error{constructor(e,n,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string.');super(n),this.code=e,r!==void 0&&(this.data=r)}serialize(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return oYr.default(this.serialize(),cYr,2)}};lP.EthereumRpcError=Dtn;let sYr=class extends Dtn{constructor(e,n,r){if(!lYr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,n,r)}};lP.EthereumProviderError=sYr;function lYr(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}function cYr(t,e){if(e!=="[Circular]")return e}var qet={},cP={};Object.defineProperty(cP,"__esModule",{value:!0});cP.errorValues=cP.errorCodes=void 0;cP.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};cP.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const e=cP,n=lP,r=e.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",o={code:r,message:s(r)};t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function s(f,p=a){if(Number.isInteger(f)){const m=f.toString();if(h(e.errorValues,m))return e.errorValues[m].message;if(u(f))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return p}t.getMessageFromCode=s;function l(f){if(!Number.isInteger(f))return!1;const p=f.toString();return!!(e.errorValues[p]||u(f))}t.isValidCode=l;function c(f,{fallbackError:p=o,shouldIncludeStack:m=!1}={}){var g,v;if(!p||!Number.isInteger(p.code)||typeof p.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(f instanceof n.EthereumRpcError)return f.serialize();const A={};if(f&&typeof f=="object"&&!Array.isArray(f)&&h(f,"code")&&l(f.code)){const S=f;A.code=S.code,S.message&&typeof S.message=="string"?(A.message=S.message,h(S,"data")&&(A.data=S.data)):(A.message=s(A.code),A.data={originalError:d(f)})}else{A.code=p.code;const S=(g=f)===null||g===void 0?void 0:g.message;A.message=S&&typeof S=="string"?S:p.message,A.data={originalError:d(f)}}const y=(v=f)===null||v===void 0?void 0:v.stack;return m&&f&&y&&typeof y=="string"&&(A.stack=y),A}t.serializeError=c;function u(f){return f>=-32099&&f<=-32e3}function d(f){return f&&typeof f=="object"&&!Array.isArray(f)?Object.assign({},f):f}function h(f,p){return Object.prototype.hasOwnProperty.call(f,p)}})(qet);var vSe={};Object.defineProperty(vSe,"__esModule",{value:!0});vSe.ethErrors=void 0;const Yet=lP,$tn=qet,Dg=cP;vSe.ethErrors={rpc:{parse:t=>Mb(Dg.errorCodes.rpc.parse,t),invalidRequest:t=>Mb(Dg.errorCodes.rpc.invalidRequest,t),invalidParams:t=>Mb(Dg.errorCodes.rpc.invalidParams,t),methodNotFound:t=>Mb(Dg.errorCodes.rpc.methodNotFound,t),internal:t=>Mb(Dg.errorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Mb(e,t)},invalidInput:t=>Mb(Dg.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>Mb(Dg.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>Mb(Dg.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>Mb(Dg.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>Mb(Dg.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>Mb(Dg.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>jQ(Dg.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>jQ(Dg.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>jQ(Dg.errorCodes.provider.unsupportedMethod,t),disconnected:t=>jQ(Dg.errorCodes.provider.disconnected,t),chainDisconnected:t=>jQ(Dg.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:r}=t;if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string');return new Yet.EthereumProviderError(e,n,r)}}};function Mb(t,e){const[n,r]=Ftn(e);return new Yet.EthereumRpcError(t,n||$tn.getMessageFromCode(t),r)}function jQ(t,e){const[n,r]=Ftn(e);return new Yet.EthereumProviderError(t,n||$tn.getMessageFromCode(t),r)}function Ftn(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const e=lP;Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return e.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return e.EthereumProviderError}});const n=qet;Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return n.getMessageFromCode}});const r=vSe;Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return r.ethErrors}});const a=cP;Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(Ntn);var Pu={},ASe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,function(e){e.requestEthereumAccounts="requestEthereumAccounts",e.signEthereumMessage="signEthereumMessage",e.signEthereumTransaction="signEthereumTransaction",e.submitEthereumTransaction="submitEthereumTransaction",e.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",e.scanQRCode="scanQRCode",e.generic="generic",e.childRequestEthereumAccounts="childRequestEthereumAccounts",e.addEthereumChain="addEthereumChain",e.switchEthereumChain="switchEthereumChain",e.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",e.watchAsset="watchAsset",e.selectProvider="selectProvider"}(t.Web3Method||(t.Web3Method={}))})(ASe);Object.defineProperty(Pu,"__esModule",{value:!0});Pu.EthereumAddressFromSignedMessageResponse=Pu.SubmitEthereumTransactionResponse=Pu.SignEthereumTransactionResponse=Pu.SignEthereumMessageResponse=Pu.isRequestEthereumAccountsResponse=Pu.SelectProviderResponse=Pu.WatchAssetReponse=Pu.RequestEthereumAccountsResponse=Pu.SwitchEthereumChainResponse=Pu.AddEthereumChainResponse=Pu.isErrorResponse=void 0;const gC=ASe;function uYr(t){var e,n;return((e=t)===null||e===void 0?void 0:e.method)!==void 0&&((n=t)===null||n===void 0?void 0:n.errorMessage)!==void 0}Pu.isErrorResponse=uYr;function dYr(t){return{method:gC.Web3Method.addEthereumChain,result:t}}Pu.AddEthereumChainResponse=dYr;function hYr(t){return{method:gC.Web3Method.switchEthereumChain,result:t}}Pu.SwitchEthereumChainResponse=hYr;function fYr(t){return{method:gC.Web3Method.requestEthereumAccounts,result:t}}Pu.RequestEthereumAccountsResponse=fYr;function pYr(t){return{method:gC.Web3Method.watchAsset,result:t}}Pu.WatchAssetReponse=pYr;function mYr(t){return{method:gC.Web3Method.selectProvider,result:t}}Pu.SelectProviderResponse=mYr;function gYr(t){return t&&t.method===gC.Web3Method.requestEthereumAccounts}Pu.isRequestEthereumAccountsResponse=gYr;function vYr(t){return{method:gC.Web3Method.signEthereumMessage,result:t}}Pu.SignEthereumMessageResponse=vYr;function AYr(t){return{method:gC.Web3Method.signEthereumTransaction,result:t}}Pu.SignEthereumTransactionResponse=AYr;function yYr(t){return{method:gC.Web3Method.submitEthereumTransaction,result:t}}Pu.SubmitEthereumTransactionResponse=yYr;function bYr(t){return{method:gC.Web3Method.ethereumAddressFromSignedMessage,result:t}}Pu.EthereumAddressFromSignedMessageResponse=bYr;var MG={};Object.defineProperty(MG,"__esModule",{value:!0});MG.LIB_VERSION=void 0;MG.LIB_VERSION="3.7.2";(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;const e=Ntn,n=Pu,r=MG;t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},e.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},e.errorCodes.provider),{unsupportedChain:4902}))}));function a(d){return d!==void 0?(0,e.getMessageFromCode)(d):"Unknown error"}t.standardErrorMessage=a,t.standardErrors=Object.freeze(Object.assign(Object.assign({},e.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},e.ethErrors.provider),{unsupportedChain:(d="")=>e.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${d}. Try adding the chain using wallet_addEthereumChain first.`})}))}));function o(d,h){const f=(0,e.serializeError)(s(d),{shouldIncludeStack:!0}),p=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");p.searchParams.set("version",r.LIB_VERSION),p.searchParams.set("code",f.code.toString());const m=l(f.data,h);return m&&p.searchParams.set("method",m),p.searchParams.set("message",f.message),Object.assign(Object.assign({},f),{docUrl:p.href})}t.serializeError=o;function s(d){return typeof d=="string"?{message:d,code:t.standardErrorCodes.rpc.internal}:(0,n.isErrorResponse)(d)?Object.assign(Object.assign({},d),{message:d.errorMessage,code:d.errorCode,data:{method:d.method,result:d.result}}):d}function l(d,h){var f;const p=(f=d)===null||f===void 0?void 0:f.method;if(p)return p;if(h!==void 0)return typeof h=="string"?h:Array.isArray(h)?h.length>0?h[0].method:void 0:h.method}function c(d){var h;if(typeof d=="number")return d;if(u(d))return(h=d.code)!==null&&h!==void 0?h:d.errorCode}t.getErrorCode=c;function u(d){return typeof d=="object"&&d!==null&&(typeof d.code=="number"||typeof d.errorCode=="number")}})(Rae);var NG={},jtn={exports:{}},EUe={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(t,e){var n=Z2,r=n.Buffer;function a(s,l){for(var c in s)l[c]=s[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=o);function o(s,l,c){return r(s,l,c)}o.prototype=Object.create(r.prototype),a(r,o),o.from=function(s,l,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,l,c)},o.alloc=function(s,l,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=r(s);return l!==void 0?typeof c=="string"?u.fill(l,c):u.fill(l):u.fill(0),u},o.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},o.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}})(EUe,EUe.exports);var uO=EUe.exports,Htn=uO.Buffer;function ySe(t,e){this._block=Htn.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}ySe.prototype.update=function(t,e){typeof t=="string"&&(e=e||"utf8",t=Htn.from(t,e));for(var n=this._block,r=this._blockSize,a=t.length,o=this._len,s=0;s<a;){for(var l=o%r,c=Math.min(a-s,r-l),u=0;u<c;u++)n[l+u]=t[s+u];o+=c,s+=c,o%r===0&&this._update(n)}return this._len+=a,this};ySe.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,a=(n-r)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o};ySe.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var IG=ySe,xYr=dE,Utn=IG,EYr=uO.Buffer,SYr=[1518500249,1859775393,-1894007588,-899497514],wYr=new Array(80);function Mae(){this.init(),this._w=wYr,Utn.call(this,64,56)}xYr(Mae,Utn);Mae.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _Yr(t){return t<<5|t>>>27}function TYr(t){return t<<30|t>>>2}function CYr(t,e,n,r){return t===0?e&n|~e&r:t===2?e&n|e&r|n&r:e^n^r}Mae.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,o=this._d|0,s=this._e|0,l=0;l<16;++l)e[l]=t.readInt32BE(l*4);for(;l<80;++l)e[l]=e[l-3]^e[l-8]^e[l-14]^e[l-16];for(var c=0;c<80;++c){var u=~~(c/20),d=_Yr(n)+CYr(u,r,a,o)+s+e[c]+SYr[u]|0;s=o,o=a,a=TYr(r),r=n,n=d}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0};Mae.prototype._hash=function(){var t=EYr.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var kYr=Mae,RYr=dE,ztn=IG,MYr=uO.Buffer,NYr=[1518500249,1859775393,-1894007588,-899497514],IYr=new Array(80);function Nae(){this.init(),this._w=IYr,ztn.call(this,64,56)}RYr(Nae,ztn);Nae.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function PYr(t){return t<<1|t>>>31}function OYr(t){return t<<5|t>>>27}function LYr(t){return t<<30|t>>>2}function BYr(t,e,n,r){return t===0?e&n|~e&r:t===2?e&n|e&r|n&r:e^n^r}Nae.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,o=this._d|0,s=this._e|0,l=0;l<16;++l)e[l]=t.readInt32BE(l*4);for(;l<80;++l)e[l]=PYr(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var c=0;c<80;++c){var u=~~(c/20),d=OYr(n)+BYr(u,r,a,o)+s+e[c]+NYr[u]|0;s=o,o=a,a=LYr(r),r=n,n=d}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0};Nae.prototype._hash=function(){var t=MYr.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var DYr=Nae,$Yr=dE,Gtn=IG,FYr=uO.Buffer,jYr=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],HYr=new Array(64);function Iae(){this.init(),this._w=HYr,Gtn.call(this,64,56)}$Yr(Iae,Gtn);Iae.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function UYr(t,e,n){return n^t&(e^n)}function zYr(t,e,n){return t&e|n&(t|e)}function GYr(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function VYr(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function KYr(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function WYr(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}Iae.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,o=this._d|0,s=this._e|0,l=this._f|0,c=this._g|0,u=this._h|0,d=0;d<16;++d)e[d]=t.readInt32BE(d*4);for(;d<64;++d)e[d]=WYr(e[d-2])+e[d-7]+KYr(e[d-15])+e[d-16]|0;for(var h=0;h<64;++h){var f=u+VYr(s)+UYr(s,l,c)+jYr[h]+e[h]|0,p=GYr(n)+zYr(n,r,a)|0;u=c,c=l,l=s,s=o+f|0,o=a,a=r,r=n,n=f+p|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=l+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0};Iae.prototype._hash=function(){var t=FYr.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};var Vtn=Iae,QYr=dE,qYr=Vtn,YYr=IG,JYr=uO.Buffer,ZYr=new Array(64);function bSe(){this.init(),this._w=ZYr,YYr.call(this,64,56)}QYr(bSe,qYr);bSe.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};bSe.prototype._hash=function(){var t=JYr.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};var XYr=bSe,eJr=dE,Ktn=IG,tJr=uO.Buffer,tbt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],nJr=new Array(160);function Pae(){this.init(),this._w=nJr,Ktn.call(this,128,112)}eJr(Pae,Ktn);Pae.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function nbt(t,e,n){return n^t&(e^n)}function rbt(t,e,n){return t&e|n&(t|e)}function ibt(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function abt(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function rJr(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function iJr(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function aJr(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function oJr(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function zp(t,e){return t>>>0<e>>>0?1:0}Pae.prototype._update=function(t){for(var e=this._w,n=this._ah|0,r=this._bh|0,a=this._ch|0,o=this._dh|0,s=this._eh|0,l=this._fh|0,c=this._gh|0,u=this._hh|0,d=this._al|0,h=this._bl|0,f=this._cl|0,p=this._dl|0,m=this._el|0,g=this._fl|0,v=this._gl|0,A=this._hl|0,y=0;y<32;y+=2)e[y]=t.readInt32BE(y*4),e[y+1]=t.readInt32BE(y*4+4);for(;y<160;y+=2){var S=e[y-30],x=e[y-15*2+1],w=rJr(S,x),_=iJr(x,S);S=e[y-2*2],x=e[y-2*2+1];var C=aJr(S,x),R=oJr(x,S),k=e[y-7*2],P=e[y-7*2+1],N=e[y-16*2],L=e[y-16*2+1],I=_+P|0,b=w+k+zp(I,_)|0;I=I+R|0,b=b+C+zp(I,R)|0,I=I+L|0,b=b+N+zp(I,L)|0,e[y]=b,e[y+1]=I}for(var T=0;T<160;T+=2){b=e[T],I=e[T+1];var M=rbt(n,r,a),D=rbt(d,h,f),B=ibt(n,d),j=ibt(d,n),H=abt(s,m),U=abt(m,s),$=tbt[T],z=tbt[T+1],Z=nbt(s,l,c),K=nbt(m,g,v),Q=A+U|0,ee=u+H+zp(Q,A)|0;Q=Q+K|0,ee=ee+Z+zp(Q,K)|0,Q=Q+z|0,ee=ee+$+zp(Q,z)|0,Q=Q+I|0,ee=ee+b+zp(Q,I)|0;var X=j+D|0,te=B+M+zp(X,j)|0;u=c,A=v,c=l,v=g,l=s,g=m,m=p+Q|0,s=o+ee+zp(m,p)|0,o=a,p=f,a=r,f=h,r=n,h=d,d=Q+X|0,n=ee+te+zp(d,Q)|0}this._al=this._al+d|0,this._bl=this._bl+h|0,this._cl=this._cl+f|0,this._dl=this._dl+p|0,this._el=this._el+m|0,this._fl=this._fl+g|0,this._gl=this._gl+v|0,this._hl=this._hl+A|0,this._ah=this._ah+n+zp(this._al,d)|0,this._bh=this._bh+r+zp(this._bl,h)|0,this._ch=this._ch+a+zp(this._cl,f)|0,this._dh=this._dh+o+zp(this._dl,p)|0,this._eh=this._eh+s+zp(this._el,m)|0,this._fh=this._fh+l+zp(this._fl,g)|0,this._gh=this._gh+c+zp(this._gl,v)|0,this._hh=this._hh+u+zp(this._hl,A)|0};Pae.prototype._hash=function(){var t=tJr.allocUnsafe(64);function e(n,r,a){t.writeInt32BE(n,a),t.writeInt32BE(r,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};var Wtn=Pae,sJr=dE,lJr=Wtn,cJr=IG,uJr=uO.Buffer,dJr=new Array(160);function xSe(){this.init(),this._w=dJr,cJr.call(this,128,112)}sJr(xSe,lJr);xSe.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};xSe.prototype._hash=function(){var t=uJr.allocUnsafe(48);function e(n,r,a){t.writeInt32BE(n,a),t.writeInt32BE(r,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};var hJr=xSe,Y8=jtn.exports=function(e){e=e.toLowerCase();var n=Y8[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n};Y8.sha=kYr;Y8.sha1=DYr;Y8.sha224=XYr;Y8.sha256=Vtn;Y8.sha384=hJr;Y8.sha512=Wtn;var fJr=jtn.exports,ya={},pJr=Error,mJr=EvalError,gJr=RangeError,vJr=ReferenceError,Qtn=SyntaxError,Oae=TypeError,AJr=URIError,yJr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;e[n]=a;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},obt=typeof Symbol<"u"&&Symbol,bJr=yJr,xJr=function(){return typeof obt!="function"||typeof Symbol!="function"||typeof obt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bJr()},SPe={__proto__:null,foo:{}},EJr=Object,SJr=function(){return{__proto__:SPe}.foo===SPe.foo&&!(SPe instanceof EJr)},wJr="Function.prototype.bind called on incompatible ",_Jr=Object.prototype.toString,TJr=Math.max,CJr="[object Function]",sbt=function(e,n){for(var r=[],a=0;a<e.length;a+=1)r[a]=e[a];for(var o=0;o<n.length;o+=1)r[o+e.length]=n[o];return r},kJr=function(e,n){for(var r=[],a=n||0,o=0;a<e.length;a+=1,o+=1)r[o]=e[a];return r},RJr=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n},MJr=function(e){var n=this;if(typeof n!="function"||_Jr.apply(n)!==CJr)throw new TypeError(wJr+n);for(var r=kJr(arguments,1),a,o=function(){if(this instanceof a){var d=n.apply(this,sbt(r,arguments));return Object(d)===d?d:this}return n.apply(e,sbt(r,arguments))},s=TJr(0,n.length-r.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(a=Function("binder","return function ("+RJr(l,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a},NJr=MJr,Jet=Function.prototype.bind||NJr,IJr=Function.prototype.call,PJr=Object.prototype.hasOwnProperty,OJr=Jet,LJr=OJr.call(IJr,PJr),Ys,BJr=pJr,DJr=mJr,$Jr=gJr,FJr=vJr,CU=Qtn,Qj=Oae,jJr=AJr,qtn=Function,wPe=function(t){try{return qtn('"use strict"; return ('+t+").constructor;")()}catch{}},bD=Object.getOwnPropertyDescriptor;if(bD)try{bD({},"")}catch{bD=null}var _Pe=function(){throw new Qj},HJr=bD?function(){try{return arguments.callee,_Pe}catch{try{return bD(arguments,"callee").get}catch{return _Pe}}}():_Pe,p$=xJr(),UJr=SJr(),Qp=Object.getPrototypeOf||(UJr?function(t){return t.__proto__}:null),aF={},zJr=typeof Uint8Array>"u"||!Qp?Ys:Qp(Uint8Array),xD={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ys:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ys:ArrayBuffer,"%ArrayIteratorPrototype%":p$&&Qp?Qp([][Symbol.iterator]()):Ys,"%AsyncFromSyncIteratorPrototype%":Ys,"%AsyncFunction%":aF,"%AsyncGenerator%":aF,"%AsyncGeneratorFunction%":aF,"%AsyncIteratorPrototype%":aF,"%Atomics%":typeof Atomics>"u"?Ys:Atomics,"%BigInt%":typeof BigInt>"u"?Ys:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ys:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ys:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ys:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":BJr,"%eval%":eval,"%EvalError%":DJr,"%Float32Array%":typeof Float32Array>"u"?Ys:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ys:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ys:FinalizationRegistry,"%Function%":qtn,"%GeneratorFunction%":aF,"%Int8Array%":typeof Int8Array>"u"?Ys:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ys:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ys:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p$&&Qp?Qp(Qp([][Symbol.iterator]())):Ys,"%JSON%":typeof JSON=="object"?JSON:Ys,"%Map%":typeof Map>"u"?Ys:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p$||!Qp?Ys:Qp(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ys:Promise,"%Proxy%":typeof Proxy>"u"?Ys:Proxy,"%RangeError%":$Jr,"%ReferenceError%":FJr,"%Reflect%":typeof Reflect>"u"?Ys:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ys:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p$||!Qp?Ys:Qp(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ys:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p$&&Qp?Qp(""[Symbol.iterator]()):Ys,"%Symbol%":p$?Symbol:Ys,"%SyntaxError%":CU,"%ThrowTypeError%":HJr,"%TypedArray%":zJr,"%TypeError%":Qj,"%Uint8Array%":typeof Uint8Array>"u"?Ys:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ys:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ys:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ys:Uint32Array,"%URIError%":jJr,"%WeakMap%":typeof WeakMap>"u"?Ys:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ys:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ys:WeakSet};if(Qp)try{null.error}catch(t){var GJr=Qp(Qp(t));xD["%Error.prototype%"]=GJr}var VJr=function t(e){var n;if(e==="%AsyncFunction%")n=wPe("async function () {}");else if(e==="%GeneratorFunction%")n=wPe("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=wPe("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&Qp&&(n=Qp(a.prototype))}return xD[e]=n,n},lbt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Lae=Jet,rAe=LJr,KJr=Lae.call(Function.call,Array.prototype.concat),WJr=Lae.call(Function.apply,Array.prototype.splice),cbt=Lae.call(Function.call,String.prototype.replace),iAe=Lae.call(Function.call,String.prototype.slice),QJr=Lae.call(Function.call,RegExp.prototype.exec),qJr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,YJr=/\\(\\)?/g,JJr=function(e){var n=iAe(e,0,1),r=iAe(e,-1);if(n==="%"&&r!=="%")throw new CU("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new CU("invalid intrinsic syntax, expected opening `%`");var a=[];return cbt(e,qJr,function(o,s,l,c){a[a.length]=l?cbt(c,YJr,"$1"):s||o}),a},ZJr=function(e,n){var r=e,a;if(rAe(lbt,r)&&(a=lbt[r],r="%"+a[0]+"%"),rAe(xD,r)){var o=xD[r];if(o===aF&&(o=VJr(r)),typeof o>"u"&&!n)throw new Qj("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new CU("intrinsic "+e+" does not exist!")},PG=function(e,n){if(typeof e!="string"||e.length===0)throw new Qj("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Qj('"allowMissing" argument must be a boolean');if(QJr(/^%?[^%]*%?$/,e)===null)throw new CU("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=JJr(e),a=r.length>0?r[0]:"",o=ZJr("%"+a+"%",n),s=o.name,l=o.value,c=!1,u=o.alias;u&&(a=u[0],WJr(r,KJr([0,1],u)));for(var d=1,h=!0;d<r.length;d+=1){var f=r[d],p=iAe(f,0,1),m=iAe(f,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new CU("property names with quotes must have matching quotes");if((f==="constructor"||!h)&&(c=!0),a+="."+f,s="%"+a+"%",rAe(xD,s))l=xD[s];else if(l!=null){if(!(f in l)){if(!n)throw new Qj("base intrinsic for "+e+" exists, but the property is not available.");return}if(bD&&d+1>=r.length){var g=bD(l,f);h=!!g,h&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[f]}else h=rAe(l,f),l=l[f];h&&!c&&(xD[s]=l)}}return l},Ytn={exports:{}},TPe,ubt;function Zet(){if(ubt)return TPe;ubt=1;var t=PG,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return TPe=e,TPe}var XJr=PG,Eme=XJr("%Object.getOwnPropertyDescriptor%",!0);if(Eme)try{Eme([],"length")}catch{Eme=null}var Jtn=Eme,dbt=Zet(),eZr=Qtn,m$=Oae,hbt=Jtn,tZr=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new m$("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new m$("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new m$("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new m$("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new m$("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new m$("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!hbt&&hbt(e,n);if(dbt)dbt(e,n,{configurable:s===null&&c?c.configurable:!s,enumerable:a===null&&c?c.enumerable:!a,value:r,writable:o===null&&c?c.writable:!o});else if(l||!a&&!o&&!s)e[n]=r;else throw new eZr("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},SUe=Zet(),Ztn=function(){return!!SUe};Ztn.hasArrayLengthDefineBug=function(){if(!SUe)return null;try{return SUe([],"length",{value:1}).length!==1}catch{return!0}};var nZr=Ztn,rZr=PG,fbt=tZr,iZr=nZr(),pbt=Jtn,mbt=Oae,aZr=rZr("%Math.floor%"),oZr=function(e,n){if(typeof e!="function")throw new mbt("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||aZr(n)!==n)throw new mbt("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in e&&pbt){var s=pbt(e,"length");s&&!s.configurable&&(a=!1),s&&!s.writable&&(o=!1)}return(a||o||!r)&&(iZr?fbt(e,"length",n,!0,!0):fbt(e,"length",n)),e};(function(t){var e=Jet,n=PG,r=oZr,a=Oae,o=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||e.call(s,o),c=Zet(),u=n("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new a("a function is required");var p=l(e,s,arguments);return r(p,1+u(0,f.length-(arguments.length-1)),!0)};var d=function(){return l(e,o,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d})(Ytn);var sZr=Ytn.exports,Xtn=PG,enn=sZr,lZr=enn(Xtn("String.prototype.indexOf")),cZr=function(e,n){var r=Xtn(e,!!n);return typeof r=="function"&&lZr(e,".prototype.")>-1?enn(r):r},Xet=typeof Map=="function"&&Map.prototype,CPe=Object.getOwnPropertyDescriptor&&Xet?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,aAe=Xet&&CPe&&typeof CPe.get=="function"?CPe.get:null,gbt=Xet&&Map.prototype.forEach,ett=typeof Set=="function"&&Set.prototype,kPe=Object.getOwnPropertyDescriptor&&ett?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,oAe=ett&&kPe&&typeof kPe.get=="function"?kPe.get:null,vbt=ett&&Set.prototype.forEach,uZr=typeof WeakMap=="function"&&WeakMap.prototype,zX=uZr?WeakMap.prototype.has:null,dZr=typeof WeakSet=="function"&&WeakSet.prototype,GX=dZr?WeakSet.prototype.has:null,hZr=typeof WeakRef=="function"&&WeakRef.prototype,Abt=hZr?WeakRef.prototype.deref:null,fZr=Boolean.prototype.valueOf,pZr=Object.prototype.toString,mZr=Function.prototype.toString,gZr=String.prototype.match,ttt=String.prototype.slice,j3=String.prototype.replace,vZr=String.prototype.toUpperCase,ybt=String.prototype.toLowerCase,tnn=RegExp.prototype.test,bbt=Array.prototype.concat,kT=Array.prototype.join,AZr=Array.prototype.slice,xbt=Math.floor,wUe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,RPe=Object.getOwnPropertySymbols,_Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,kU=typeof Symbol=="function"&&typeof Symbol.iterator=="object",wv=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===kU||"symbol")?Symbol.toStringTag:null,nnn=Object.prototype.propertyIsEnumerable,Ebt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Sbt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||tnn.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-xbt(-t):xbt(t);if(r!==t){var a=String(r),o=ttt.call(e,a.length+1);return j3.call(a,n,"$&_")+"."+j3.call(j3.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return j3.call(e,n,"$&_")}var TUe=H8,wbt=TUe.custom,_bt=inn(wbt)?wbt:null,yZr=function t(e,n,r,a){var o=n||{};if(s3(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(s3(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=s3(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(s3(o,"indent")&&o.indent!==null&&o.indent!=="	"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(s3(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return onn(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?Sbt(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return l?Sbt(e,u):u}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof e=="object")return CUe(e)?"[Array]":"[Object]";var h=DZr(o,r);if(typeof a>"u")a=[];else if(ann(a,e)>=0)return"[Circular]";function f(I,b,T){if(b&&(a=AZr.call(a),a.push(b)),T){var M={depth:o.depth};return s3(o,"quoteStyle")&&(M.quoteStyle=o.quoteStyle),t(I,M,r+1,a)}return t(I,o,r+1,a)}if(typeof e=="function"&&!Tbt(e)){var p=kZr(e),m=Mce(e,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+kT.call(m,", ")+" }":"")}if(inn(e)){var g=kU?j3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_Ue.call(e);return typeof e=="object"&&!kU?HQ(g):g}if(OZr(e)){for(var v="<"+ybt.call(String(e.nodeName)),A=e.attributes||[],y=0;y<A.length;y++)v+=" "+A[y].name+"="+rnn(bZr(A[y].value),"double",o);return v+=">",e.childNodes&&e.childNodes.length&&(v+="..."),v+="</"+ybt.call(String(e.nodeName))+">",v}if(CUe(e)){if(e.length===0)return"[]";var S=Mce(e,f);return h&&!BZr(S)?"["+kUe(S,h)+"]":"[ "+kT.call(S,", ")+" ]"}if(EZr(e)){var x=Mce(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!nnn.call(e,"cause")?"{ ["+String(e)+"] "+kT.call(bbt.call("[cause]: "+f(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+kT.call(x,", ")+" }"}if(typeof e=="object"&&s){if(_bt&&typeof e[_bt]=="function"&&TUe)return TUe(e,{depth:d-r});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(RZr(e)){var w=[];return gbt&&gbt.call(e,function(I,b){w.push(f(b,e,!0)+" => "+f(I,e))}),Cbt("Map",aAe.call(e),w,h)}if(IZr(e)){var _=[];return vbt&&vbt.call(e,function(I){_.push(f(I,e))}),Cbt("Set",oAe.call(e),_,h)}if(MZr(e))return MPe("WeakMap");if(PZr(e))return MPe("WeakSet");if(NZr(e))return MPe("WeakRef");if(wZr(e))return HQ(f(Number(e)));if(TZr(e))return HQ(f(wUe.call(e)));if(_Zr(e))return HQ(fZr.call(e));if(SZr(e))return HQ(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===en)return"{ [object globalThis] }";if(!xZr(e)&&!Tbt(e)){var C=Mce(e,f),R=Ebt?Ebt(e)===Object.prototype:e instanceof Object||e.constructor===Object,k=e instanceof Object?"":"null prototype",P=!R&&wv&&Object(e)===e&&wv in e?ttt.call(dO(e),8,-1):k?"Object":"",N=R||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",L=N+(P||k?"["+kT.call(bbt.call([],P||[],k||[]),": ")+"] ":"");return C.length===0?L+"{}":h?L+"{"+kUe(C,h)+"}":L+"{ "+kT.call(C,", ")+" }"}return String(e)};function rnn(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function bZr(t){return j3.call(String(t),/"/g,"&quot;")}function CUe(t){return dO(t)==="[object Array]"&&(!wv||!(typeof t=="object"&&wv in t))}function xZr(t){return dO(t)==="[object Date]"&&(!wv||!(typeof t=="object"&&wv in t))}function Tbt(t){return dO(t)==="[object RegExp]"&&(!wv||!(typeof t=="object"&&wv in t))}function EZr(t){return dO(t)==="[object Error]"&&(!wv||!(typeof t=="object"&&wv in t))}function SZr(t){return dO(t)==="[object String]"&&(!wv||!(typeof t=="object"&&wv in t))}function wZr(t){return dO(t)==="[object Number]"&&(!wv||!(typeof t=="object"&&wv in t))}function _Zr(t){return dO(t)==="[object Boolean]"&&(!wv||!(typeof t=="object"&&wv in t))}function inn(t){if(kU)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!_Ue)return!1;try{return _Ue.call(t),!0}catch{}return!1}function TZr(t){if(!t||typeof t!="object"||!wUe)return!1;try{return wUe.call(t),!0}catch{}return!1}var CZr=Object.prototype.hasOwnProperty||function(t){return t in this};function s3(t,e){return CZr.call(t,e)}function dO(t){return pZr.call(t)}function kZr(t){if(t.name)return t.name;var e=gZr.call(mZr.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function ann(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function RZr(t){if(!aAe||!t||typeof t!="object")return!1;try{aAe.call(t);try{oAe.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function MZr(t){if(!zX||!t||typeof t!="object")return!1;try{zX.call(t,zX);try{GX.call(t,GX)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function NZr(t){if(!Abt||!t||typeof t!="object")return!1;try{return Abt.call(t),!0}catch{}return!1}function IZr(t){if(!oAe||!t||typeof t!="object")return!1;try{oAe.call(t);try{aAe.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function PZr(t){if(!GX||!t||typeof t!="object")return!1;try{GX.call(t,GX);try{zX.call(t,zX)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function OZr(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function onn(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return onn(ttt.call(t,0,e.maxStringLength),e)+r}var a=j3.call(j3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,LZr);return rnn(a,"single",e)}function LZr(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+vZr.call(e.toString(16))}function HQ(t){return"Object("+t+")"}function MPe(t){return t+" { ? }"}function Cbt(t,e,n,r){var a=r?kUe(n,r):kT.call(n,", ");return t+" ("+e+") {"+a+"}"}function BZr(t){for(var e=0;e<t.length;e++)if(ann(t[e],`
`)>=0)return!1;return!0}function DZr(t,e){var n;if(t.indent==="	")n="	";else if(typeof t.indent=="number"&&t.indent>0)n=kT.call(Array(t.indent+1)," ");else return null;return{base:n,prev:kT.call(Array(e+1),n)}}function kUe(t,e){if(t.length===0)return"";var n=`
`+e.prev+e.base;return n+kT.call(t,","+n)+`
`+e.prev}function Mce(t,e){var n=CUe(t),r=[];if(n){r.length=t.length;for(var a=0;a<t.length;a++)r[a]=s3(t,a)?e(t[a],t):""}var o=typeof RPe=="function"?RPe(t):[],s;if(kU){s={};for(var l=0;l<o.length;l++)s["$"+o[l]]=o[l]}for(var c in t)s3(t,c)&&(n&&String(Number(c))===c&&c<t.length||kU&&s["$"+c]instanceof Symbol||(tnn.call(/[^\w$]/,c)?r.push(e(c,t)+": "+e(t[c],t)):r.push(c+": "+e(t[c],t))));if(typeof RPe=="function")for(var u=0;u<o.length;u++)nnn.call(t,o[u])&&r.push("["+e(o[u])+"]: "+e(t[o[u]],t));return r}var snn=PG,OG=cZr,$Zr=yZr,FZr=Oae,Nce=snn("%WeakMap%",!0),Ice=snn("%Map%",!0),jZr=OG("WeakMap.prototype.get",!0),HZr=OG("WeakMap.prototype.set",!0),UZr=OG("WeakMap.prototype.has",!0),zZr=OG("Map.prototype.get",!0),GZr=OG("Map.prototype.set",!0),VZr=OG("Map.prototype.has",!0),ntt=function(t,e){for(var n=t,r;(r=n.next)!==null;n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},KZr=function(t,e){var n=ntt(t,e);return n&&n.value},WZr=function(t,e,n){var r=ntt(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},QZr=function(t,e){return!!ntt(t,e)},qZr=function(){var e,n,r,a={assert:function(o){if(!a.has(o))throw new FZr("Side channel does not contain "+$Zr(o))},get:function(o){if(Nce&&o&&(typeof o=="object"||typeof o=="function")){if(e)return jZr(e,o)}else if(Ice){if(n)return zZr(n,o)}else if(r)return KZr(r,o)},has:function(o){if(Nce&&o&&(typeof o=="object"||typeof o=="function")){if(e)return UZr(e,o)}else if(Ice){if(n)return VZr(n,o)}else if(r)return QZr(r,o);return!1},set:function(o,s){Nce&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Nce),HZr(e,o,s)):Ice?(n||(n=new Ice),GZr(n,o,s)):(r||(r={key:{},next:null}),WZr(r,o,s))}};return a},YZr=String.prototype.replace,JZr=/%20/g,NPe={RFC1738:"RFC1738",RFC3986:"RFC3986"},rtt={default:NPe.RFC3986,formatters:{RFC1738:function(t){return YZr.call(t,JZr,"+")},RFC3986:function(t){return String(t)}},RFC1738:NPe.RFC1738,RFC3986:NPe.RFC3986},ZZr=rtt,IPe=Object.prototype.hasOwnProperty,fB=Array.isArray,D_=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),XZr=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(fB(r)){for(var a=[],o=0;o<r.length;++o)typeof r[o]<"u"&&a.push(r[o]);n.obj[n.prop]=a}}},lnn=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]<"u"&&(r[a]=e[a]);return r},eXr=function t(e,n,r){if(!n)return e;if(typeof n!="object"){if(fB(e))e.push(n);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!IPe.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var a=e;return fB(e)&&!fB(n)&&(a=lnn(e,r)),fB(e)&&fB(n)?(n.forEach(function(o,s){if(IPe.call(e,s)){var l=e[s];l&&typeof l=="object"&&o&&typeof o=="object"?e[s]=t(l,o,r):e.push(o)}else e[s]=o}),e):Object.keys(n).reduce(function(o,s){var l=n[s];return IPe.call(o,s)?o[s]=t(o[s],l,r):o[s]=l,o},a)},tXr=function(e,n){return Object.keys(n).reduce(function(r,a){return r[a]=n[a],r},e)},nXr=function(t,e,n){var r=t.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},PPe=1024,rXr=function(e,n,r,a,o){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});for(var l="",c=0;c<s.length;c+=PPe){for(var u=s.length>=PPe?s.slice(c,c+PPe):s,d=[],h=0;h<u.length;++h){var f=u.charCodeAt(h);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===ZZr.RFC1738&&(f===40||f===41)){d[d.length]=u.charAt(h);continue}if(f<128){d[d.length]=D_[f];continue}if(f<2048){d[d.length]=D_[192|f>>6]+D_[128|f&63];continue}if(f<55296||f>=57344){d[d.length]=D_[224|f>>12]+D_[128|f>>6&63]+D_[128|f&63];continue}h+=1,f=65536+((f&1023)<<10|u.charCodeAt(h)&1023),d[d.length]=D_[240|f>>18]+D_[128|f>>12&63]+D_[128|f>>6&63]+D_[128|f&63]}l+=d.join("")}return l},iXr=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],a=0;a<n.length;++a)for(var o=n[a],s=o.obj[o.prop],l=Object.keys(s),c=0;c<l.length;++c){var u=l[c],d=s[u];typeof d=="object"&&d!==null&&r.indexOf(d)===-1&&(n.push({obj:s,prop:u}),r.push(d))}return XZr(n),e},aXr=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},oXr=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},sXr=function(e,n){return[].concat(e,n)},lXr=function(e,n){if(fB(e)){for(var r=[],a=0;a<e.length;a+=1)r.push(n(e[a]));return r}return n(e)},cnn={arrayToObject:lnn,assign:tXr,combine:sXr,compact:iXr,decode:nXr,encode:rXr,isBuffer:oXr,isRegExp:aXr,maybeMap:lXr,merge:eXr},unn=qZr,Sme=cnn,VX=rtt,cXr=Object.prototype.hasOwnProperty,dnn={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},AT=Array.isArray,uXr=Array.prototype.push,hnn=function(t,e){uXr.apply(t,AT(e)?e:[e])},dXr=Date.prototype.toISOString,kbt=VX.default,tp={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Sme.encode,encodeValuesOnly:!1,format:kbt,formatter:VX.formatters[kbt],indices:!1,serializeDate:function(e){return dXr.call(e)},skipNulls:!1,strictNullHandling:!1},hXr=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},OPe={},fXr=function t(e,n,r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y){for(var S=e,x=y,w=0,_=!1;(x=x.get(OPe))!==void 0&&!_;){var C=x.get(e);if(w+=1,typeof C<"u"){if(C===w)throw new RangeError("Cyclic object value");_=!0}typeof x.get(OPe)>"u"&&(w=0)}if(typeof d=="function"?S=d(n,S):S instanceof Date?S=p(S):r==="comma"&&AT(S)&&(S=Sme.maybeMap(S,function(H){return H instanceof Date?p(H):H})),S===null){if(s)return u&&!v?u(n,tp.encoder,A,"key",m):n;S=""}if(hXr(S)||Sme.isBuffer(S)){if(u){var R=v?n:u(n,tp.encoder,A,"key",m);return[g(R)+"="+g(u(S,tp.encoder,A,"value",m))]}return[g(n)+"="+g(String(S))]}var k=[];if(typeof S>"u")return k;var P;if(r==="comma"&&AT(S))v&&u&&(S=Sme.maybeMap(S,u)),P=[{value:S.length>0?S.join(",")||null:void 0}];else if(AT(d))P=d;else{var N=Object.keys(S);P=h?N.sort(h):N}var L=c?n.replace(/\./g,"%2E"):n,I=a&&AT(S)&&S.length===1?L+"[]":L;if(o&&AT(S)&&S.length===0)return I+"[]";for(var b=0;b<P.length;++b){var T=P[b],M=typeof T=="object"&&typeof T.value<"u"?T.value:S[T];if(!(l&&M===null)){var D=f&&c?T.replace(/\./g,"%2E"):T,B=AT(S)?typeof r=="function"?r(I,D):I:I+(f?"."+D:"["+D+"]");y.set(e,w);var j=unn();j.set(OPe,y),hnn(k,t(M,B,r,a,o,s,l,c,r==="comma"&&v&&AT(S)?null:u,d,h,f,p,m,g,v,A,j))}}return k},pXr=function(e){if(!e)return tp;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=e.charset||tp.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=VX.default;if(typeof e.format<"u"){if(!cXr.call(VX.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var a=VX.formatters[r],o=tp.filter;(typeof e.filter=="function"||AT(e.filter))&&(o=e.filter);var s;if(e.arrayFormat in dnn?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=tp.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:tp.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:tp.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:tp.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:tp.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?tp.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:tp.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:tp.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:tp.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:tp.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:tp.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:tp.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:tp.strictNullHandling}},mXr=function(t,e){var n=t,r=pXr(e),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):AT(r.filter)&&(o=r.filter,a=o);var s=[];if(typeof n!="object"||n===null)return"";var l=dnn[r.arrayFormat],c=l==="comma"&&r.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var u=unn(),d=0;d<a.length;++d){var h=a[d];r.skipNulls&&n[h]===null||hnn(s,fXr(n[h],h,l,c,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var f=s.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},RU=cnn,RUe=Object.prototype.hasOwnProperty,gXr=Array.isArray,Oh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:RU.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},vXr=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},fnn=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},AXr="utf8=%26%2310003%3B",yXr="utf8=%E2%9C%93",bXr=function(e,n){var r={__proto__:null},a=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=a.split(n.delimiter,o),l=-1,c,u=n.charset;if(n.charsetSentinel)for(c=0;c<s.length;++c)s[c].indexOf("utf8=")===0&&(s[c]===yXr?u="utf-8":s[c]===AXr&&(u="iso-8859-1"),l=c,c=s.length);for(c=0;c<s.length;++c)if(c!==l){var d=s[c],h=d.indexOf("]="),f=h===-1?d.indexOf("="):h+1,p,m;f===-1?(p=n.decoder(d,Oh.decoder,u,"key"),m=n.strictNullHandling?null:""):(p=n.decoder(d.slice(0,f),Oh.decoder,u,"key"),m=RU.maybeMap(fnn(d.slice(f+1),n),function(v){return n.decoder(v,Oh.decoder,u,"value")})),m&&n.interpretNumericEntities&&u==="iso-8859-1"&&(m=vXr(m)),d.indexOf("[]=")>-1&&(m=gXr(m)?[m]:m);var g=RUe.call(r,p);g&&n.duplicates==="combine"?r[p]=RU.combine(r[p],m):(!g||n.duplicates==="last")&&(r[p]=m)}return r},xXr=function(t,e,n,r){for(var a=r?e:fnn(e,n),o=t.length-1;o>=0;--o){var s,l=t[o];if(l==="[]"&&n.parseArrays)s=n.allowEmptyArrays&&a===""?[]:[].concat(a);else{s=n.plainObjects?Object.create(null):{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);!n.parseArrays&&u===""?s={0:a}:!isNaN(d)&&l!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(s=[],s[d]=a):u!=="__proto__"&&(s[u]=a)}a=s}return a},EXr=function(e,n,r,a){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=r.depth>0&&s.exec(o),u=c?o.slice(0,c.index):o,d=[];if(u){if(!r.plainObjects&&RUe.call(Object.prototype,u)&&!r.allowPrototypes)return;d.push(u)}for(var h=0;r.depth>0&&(c=l.exec(o))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&RUe.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;d.push(c[1])}return c&&d.push("["+o.slice(c.index)+"]"),xXr(d,n,r,a)}},SXr=function(e){if(!e)return Oh;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof e.charset>"u"?Oh.charset:e.charset,r=typeof e.duplicates>"u"?Oh.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Oh.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Oh.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Oh.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Oh.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Oh.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Oh.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Oh.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Oh.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Oh.decoder,delimiter:typeof e.delimiter=="string"||RU.isRegExp(e.delimiter)?e.delimiter:Oh.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Oh.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Oh.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Oh.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Oh.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Oh.strictNullHandling}},wXr=function(t,e){var n=SXr(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?bXr(t,n):t,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var l=o[s],c=EXr(l,r[l],n,typeof t=="string");a=RU.merge(a,c,n)}return n.allowSparse===!0?a:RU.compact(a)},_Xr=mXr,TXr=wXr,CXr=rtt,kXr={formats:CXr,parse:TXr,stringify:_Xr},Bae={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0;function e(){return r=>r}t.OpaqueType=e,t.HexString=e(),t.AddressString=e(),t.BigIntString=e();function n(r){return Math.floor(r)}t.IntNumber=n,t.RegExpString=e(),function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""}(t.ProviderType||(t.ProviderType={}))})(Bae);var RXr=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ya,"__esModule",{value:!0});ya.isInIFrame=ya.createQrUrl=ya.getFavicon=ya.range=ya.isBigNumber=ya.ensureParsedJSONObject=ya.ensureBN=ya.ensureRegExpString=ya.ensureIntNumber=ya.ensureBuffer=ya.ensureAddressString=ya.ensureEvenLengthHexString=ya.ensureHexString=ya.isHexString=ya.prepend0x=ya.strip0x=ya.has0xPrefix=ya.hexStringFromIntNumber=ya.intNumberFromHexString=ya.bigIntStringFromBN=ya.hexStringFromBuffer=ya.hexStringToUint8Array=ya.uint8ArrayToHex=ya.randomBytesHex=void 0;const C3=RXr(gSe),MXr=kXr,J8=Rae,Nx=Bae,pnn=/^[0-9]*$/,mnn=/^[a-f0-9]*$/;function NXr(t){return gnn(crypto.getRandomValues(new Uint8Array(t)))}ya.randomBytesHex=NXr;function gnn(t){return[...t].map(e=>e.toString(16).padStart(2,"0")).join("")}ya.uint8ArrayToHex=gnn;function IXr(t){return new Uint8Array(t.match(/.{1,2}/g).map(e=>parseInt(e,16)))}ya.hexStringToUint8Array=IXr;function PXr(t,e=!1){const n=t.toString("hex");return(0,Nx.HexString)(e?"0x"+n:n)}ya.hexStringFromBuffer=PXr;function OXr(t){return(0,Nx.BigIntString)(t.toString(10))}ya.bigIntStringFromBN=OXr;function LXr(t){return(0,Nx.IntNumber)(new C3.default($ae(t,!1),16).toNumber())}ya.intNumberFromHexString=LXr;function BXr(t){return(0,Nx.HexString)("0x"+new C3.default(t).toString(16))}ya.hexStringFromIntNumber=BXr;function itt(t){return t.startsWith("0x")||t.startsWith("0X")}ya.has0xPrefix=itt;function ESe(t){return itt(t)?t.slice(2):t}ya.strip0x=ESe;function vnn(t){return itt(t)?"0x"+t.slice(2):"0x"+t}ya.prepend0x=vnn;function Dae(t){if(typeof t!="string")return!1;const e=ESe(t).toLowerCase();return mnn.test(e)}ya.isHexString=Dae;function Ann(t,e=!1){if(typeof t=="string"){const n=ESe(t).toLowerCase();if(mnn.test(n))return(0,Nx.HexString)(e?"0x"+n:n)}throw J8.standardErrors.rpc.invalidParams(`"${String(t)}" is not a hexadecimal string`)}ya.ensureHexString=Ann;function $ae(t,e=!1){let n=Ann(t,!1);return n.length%2===1&&(n=(0,Nx.HexString)("0"+n)),e?(0,Nx.HexString)("0x"+n):n}ya.ensureEvenLengthHexString=$ae;function DXr(t){if(typeof t=="string"){const e=ESe(t).toLowerCase();if(Dae(e)&&e.length===40)return(0,Nx.AddressString)(vnn(e))}throw J8.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)}ya.ensureAddressString=DXr;function $Xr(t){if(gn.isBuffer(t))return t;if(typeof t=="string")if(Dae(t)){const e=$ae(t,!1);return gn.from(e,"hex")}else return gn.from(t,"utf8");throw J8.standardErrors.rpc.invalidParams(`Not binary data: ${String(t)}`)}ya.ensureBuffer=$Xr;function ynn(t){if(typeof t=="number"&&Number.isInteger(t))return(0,Nx.IntNumber)(t);if(typeof t=="string"){if(pnn.test(t))return(0,Nx.IntNumber)(Number(t));if(Dae(t))return(0,Nx.IntNumber)(new C3.default($ae(t,!1),16).toNumber())}throw J8.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)}ya.ensureIntNumber=ynn;function FXr(t){if(t instanceof RegExp)return(0,Nx.RegExpString)(t.toString());throw J8.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(t)}`)}ya.ensureRegExpString=FXr;function jXr(t){if(t!==null&&(C3.default.isBN(t)||bnn(t)))return new C3.default(t.toString(10),10);if(typeof t=="number")return new C3.default(ynn(t));if(typeof t=="string"){if(pnn.test(t))return new C3.default(t,10);if(Dae(t))return new C3.default($ae(t,!1),16)}throw J8.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)}ya.ensureBN=jXr;function HXr(t){if(typeof t=="string")return JSON.parse(t);if(typeof t=="object")return t;throw J8.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)}ya.ensureParsedJSONObject=HXr;function bnn(t){if(t==null||typeof t.constructor!="function")return!1;const{constructor:e}=t;return typeof e.config=="function"&&typeof e.EUCLID=="number"}ya.isBigNumber=bnn;function UXr(t,e){return Array.from({length:e-t},(n,r)=>t+r)}ya.range=UXr;function zXr(){const t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:n}=document.location,r=t?t.getAttribute("href"):null;return!r||r.startsWith("javascript:")?null:r.startsWith("http://")||r.startsWith("https://")||r.startsWith("data:")?r:r.startsWith("//")?e+r:`${e}//${n}${r}`}ya.getFavicon=zXr;function GXr(t,e,n,r,a,o){const s=r?"parent-id":"id",l=(0,MXr.stringify)({[s]:t,secret:e,server:n,v:a,chainId:o});return`${n}/#/link?${l}`}ya.createQrUrl=GXr;function VXr(){try{return window.frameElement!==null}catch{return!1}}ya.isInIFrame=VXr;Object.defineProperty(NG,"__esModule",{value:!0});NG.Session=void 0;const Rbt=fJr,Mbt=ya,Nbt="session:id",Ibt="session:secret",Pbt="session:linked";class att{constructor(e,n,r,a){this._storage=e,this._id=n||(0,Mbt.randomBytesHex)(16),this._secret=r||(0,Mbt.randomBytesHex)(32),this._key=new Rbt.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){const n=e.getItem(Nbt),r=e.getItem(Pbt),a=e.getItem(Ibt);return n&&a?new att(e,n,a,r==="1"):null}static hash(e){return new Rbt.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(Nbt,this._id),this._storage.setItem(Ibt,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(Pbt,this._linked?"1":"0")}}NG.Session=att;var rw={};Object.defineProperty(rw,"__esModule",{value:!0});rw.WalletSDKRelayAbstract=rw.APP_VERSION_KEY=rw.LOCAL_STORAGE_ADDRESSES_KEY=rw.WALLET_USER_NAME_KEY=void 0;const Obt=Rae;rw.WALLET_USER_NAME_KEY="walletUsername";rw.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";rw.APP_VERSION_KEY="AppVersion";class KXr{async makeEthereumJSONRPCRequest(e,n){if(!n)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(n,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(r=>r.json()).then(r=>{if(!r)throw Obt.standardErrors.rpc.parse({});const a=r,{error:o}=a;if(o)throw(0,Obt.serializeError)(o,e.method);return a})}}rw.WalletSDKRelayAbstract=KXr;var MUe={exports:{}},xnn=mg.EventEmitter,LPe,Lbt;function WXr(){if(Lbt)return LPe;Lbt=1;function t(m,g){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(m);g&&(A=A.filter(function(y){return Object.getOwnPropertyDescriptor(m,y).enumerable})),v.push.apply(v,A)}return v}function e(m){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?t(Object(v),!0).forEach(function(A){n(m,A,v[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(v)):t(Object(v)).forEach(function(A){Object.defineProperty(m,A,Object.getOwnPropertyDescriptor(v,A))})}return m}function n(m,g,v){return g=s(g),g in m?Object.defineProperty(m,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[g]=v,m}function r(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function a(m,g){for(var v=0;v<g.length;v++){var A=g[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,s(A.key),A)}}function o(m,g,v){return g&&a(m.prototype,g),v&&a(m,v),Object.defineProperty(m,"prototype",{writable:!1}),m}function s(m){var g=l(m,"string");return typeof g=="symbol"?g:String(g)}function l(m,g){if(typeof m!="object"||m===null)return m;var v=m[Symbol.toPrimitive];if(v!==void 0){var A=v.call(m,g||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(m)}var c=Z2,u=c.Buffer,d=H8,h=d.inspect,f=h&&h.custom||"inspect";function p(m,g,v){u.prototype.copy.call(m,g,v)}return LPe=function(){function m(){r(this,m),this.head=null,this.tail=null,this.length=0}return o(m,[{key:"push",value:function(v){var A={data:v,next:null};this.length>0?this.tail.next=A:this.head=A,this.tail=A,++this.length}},{key:"unshift",value:function(v){var A={data:v,next:this.head};this.length===0&&(this.tail=A),this.head=A,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var A=this.head,y=""+A.data;A=A.next;)y+=v+A.data;return y}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var A=u.allocUnsafe(v>>>0),y=this.head,S=0;y;)p(y.data,A,S),S+=y.data.length,y=y.next;return A}},{key:"consume",value:function(v,A){var y;return v<this.head.data.length?(y=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?y=this.shift():y=A?this._getString(v):this._getBuffer(v),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var A=this.head,y=1,S=A.data;for(v-=S.length;A=A.next;){var x=A.data,w=v>x.length?x.length:v;if(w===x.length?S+=x:S+=x.slice(0,v),v-=w,v===0){w===x.length?(++y,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=x.slice(w));break}++y}return this.length-=y,S}},{key:"_getBuffer",value:function(v){var A=u.allocUnsafe(v),y=this.head,S=1;for(y.data.copy(A),v-=y.data.length;y=y.next;){var x=y.data,w=v>x.length?x.length:v;if(x.copy(A,A.length-v,0,w),v-=w,v===0){w===x.length?(++S,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=x.slice(w));break}++S}return this.length-=S,A}},{key:f,value:function(v,A){return h(this,e(e({},A),{},{depth:0,customInspect:!1}))}}]),m}(),LPe}function QXr(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,wa.nextTick(NUe,this,t)):wa.nextTick(NUe,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?n._writableState?n._writableState.errorEmitted?wa.nextTick(wme,n):(n._writableState.errorEmitted=!0,wa.nextTick(Bbt,n,o)):wa.nextTick(Bbt,n,o):e?(wa.nextTick(wme,n),e(o)):wa.nextTick(wme,n)}),this)}function Bbt(t,e){NUe(t,e),wme(t)}function wme(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function qXr(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function NUe(t,e){t.emit("error",e)}function YXr(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}var Enn={destroy:QXr,undestroy:qXr,errorOrDestroy:YXr},Z8={};function JXr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Snn={};function pE(t,e,n){n||(n=Error);function r(o,s,l){return typeof e=="string"?e:e(o,s,l)}var a=function(o){JXr(s,o);function s(l,c,u){return o.call(this,r(l,c,u))||this}return s}(n);a.prototype.name=n.name,a.prototype.code=t,Snn[t]=a}function Dbt(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(r){return String(r)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:n===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function ZXr(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function XXr(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function eei(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}pE("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);pE("ERR_INVALID_ARG_TYPE",function(t,e,n){var r;typeof e=="string"&&ZXr(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be";var a;if(XXr(t," argument"))a="The ".concat(t," ").concat(r," ").concat(Dbt(e,"type"));else{var o=eei(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(Dbt(e,"type"))}return a+=". Received type ".concat(typeof n),a},TypeError);pE("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");pE("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});pE("ERR_STREAM_PREMATURE_CLOSE","Premature close");pE("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});pE("ERR_MULTIPLE_CALLBACK","Callback called multiple times");pE("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");pE("ERR_STREAM_WRITE_AFTER_END","write after end");pE("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pE("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);pE("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Z8.codes=Snn;var tei=Z8.codes.ERR_INVALID_OPT_VALUE;function nei(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function rei(t,e,n,r){var a=nei(e,r,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var o=r?n:"highWaterMark";throw new tei(o,a)}return Math.floor(a)}return t.objectMode?16:16*1024}var wnn={getHighWaterMark:rei},iei=aei;function aei(t,e){if(BPe("noDeprecation"))return t;var n=!1;function r(){if(!n){if(BPe("throwDeprecation"))throw new Error(e);BPe("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return r}function BPe(t){try{if(!en.localStorage)return!1}catch{return!1}var e=en.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}var DPe,$bt;function _nn(){if($bt)return DPe;$bt=1,DPe=R;function t(Q){var ee=this;this.next=null,this.entry=null,this.finish=function(){K(ee,Q)}}var e;R.WritableState=_;var n={deprecate:iei},r=xnn,a=Z2.Buffer,o=(typeof en<"u"?en:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(Q){return a.from(Q)}function l(Q){return a.isBuffer(Q)||Q instanceof o}var c=Enn,u=wnn,d=u.getHighWaterMark,h=Z8.codes,f=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,A=h.ERR_STREAM_NULL_VALUES,y=h.ERR_STREAM_WRITE_AFTER_END,S=h.ERR_UNKNOWN_ENCODING,x=c.errorOrDestroy;dE(R,r);function w(){}function _(Q,ee,X){e=e||MU(),Q=Q||{},typeof X!="boolean"&&(X=ee instanceof e),this.objectMode=!!Q.objectMode,X&&(this.objectMode=this.objectMode||!!Q.writableObjectMode),this.highWaterMark=d(this,Q,"writableHighWaterMark",X),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var te=Q.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(J){M(ee,J)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}_.prototype.getBuffer=function(){for(var ee=this.bufferedRequest,X=[];ee;)X.push(ee),ee=ee.next;return X},function(){try{Object.defineProperty(_.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var C;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(ee){return C.call(this,ee)?!0:this!==R?!1:ee&&ee._writableState instanceof _}})):C=function(ee){return ee instanceof this};function R(Q){e=e||MU();var ee=this instanceof e;if(!ee&&!C.call(R,this))return new R(Q);this._writableState=new _(Q,this,ee),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),r.call(this)}R.prototype.pipe=function(){x(this,new g)};function k(Q,ee){var X=new y;x(Q,X),wa.nextTick(ee,X)}function P(Q,ee,X,te){var J;return X===null?J=new A:typeof X!="string"&&!ee.objectMode&&(J=new f("chunk",["string","Buffer"],X)),J?(x(Q,J),wa.nextTick(te,J),!1):!0}R.prototype.write=function(Q,ee,X){var te=this._writableState,J=!1,ne=!te.objectMode&&l(Q);return ne&&!a.isBuffer(Q)&&(Q=s(Q)),typeof ee=="function"&&(X=ee,ee=null),ne?ee="buffer":ee||(ee=te.defaultEncoding),typeof X!="function"&&(X=w),te.ending?k(this,X):(ne||P(this,te,Q,X))&&(te.pendingcb++,J=L(this,te,ne,Q,ee,X)),J},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,!Q.writing&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&j(this,Q))},R.prototype.setDefaultEncoding=function(ee){if(typeof ee=="string"&&(ee=ee.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ee+"").toLowerCase())>-1))throw new S(ee);return this._writableState.defaultEncoding=ee,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function N(Q,ee,X){return!Q.objectMode&&Q.decodeStrings!==!1&&typeof ee=="string"&&(ee=a.from(ee,X)),ee}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(Q,ee,X,te,J,ne){if(!X){var ie=N(ee,te,J);te!==ie&&(X=!0,J="buffer",te=ie)}var he=ee.objectMode?1:te.length;ee.length+=he;var de=ee.length<ee.highWaterMark;if(de||(ee.needDrain=!0),ee.writing||ee.corked){var ce=ee.lastBufferedRequest;ee.lastBufferedRequest={chunk:te,encoding:J,isBuf:X,callback:ne,next:null},ce?ce.next=ee.lastBufferedRequest:ee.bufferedRequest=ee.lastBufferedRequest,ee.bufferedRequestCount+=1}else I(Q,ee,!1,he,te,J,ne);return de}function I(Q,ee,X,te,J,ne,ie){ee.writelen=te,ee.writecb=ie,ee.writing=!0,ee.sync=!0,ee.destroyed?ee.onwrite(new v("write")):X?Q._writev(J,ee.onwrite):Q._write(J,ne,ee.onwrite),ee.sync=!1}function b(Q,ee,X,te,J){--ee.pendingcb,X?(wa.nextTick(J,te),wa.nextTick(z,Q,ee),Q._writableState.errorEmitted=!0,x(Q,te)):(J(te),Q._writableState.errorEmitted=!0,x(Q,te),z(Q,ee))}function T(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function M(Q,ee){var X=Q._writableState,te=X.sync,J=X.writecb;if(typeof J!="function")throw new m;if(T(X),ee)b(Q,X,te,ee,J);else{var ne=H(X)||Q.destroyed;!ne&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&j(Q,X),te?wa.nextTick(D,Q,X,ne,J):D(Q,X,ne,J)}}function D(Q,ee,X,te){X||B(Q,ee),ee.pendingcb--,te(),z(Q,ee)}function B(Q,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,Q.emit("drain"))}function j(Q,ee){ee.bufferProcessing=!0;var X=ee.bufferedRequest;if(Q._writev&&X&&X.next){var te=ee.bufferedRequestCount,J=new Array(te),ne=ee.corkedRequestsFree;ne.entry=X;for(var ie=0,he=!0;X;)J[ie]=X,X.isBuf||(he=!1),X=X.next,ie+=1;J.allBuffers=he,I(Q,ee,!0,ee.length,J,"",ne.finish),ee.pendingcb++,ee.lastBufferedRequest=null,ne.next?(ee.corkedRequestsFree=ne.next,ne.next=null):ee.corkedRequestsFree=new t(ee),ee.bufferedRequestCount=0}else{for(;X;){var de=X.chunk,ce=X.encoding,Ee=X.callback,Me=ee.objectMode?1:de.length;if(I(Q,ee,!1,Me,de,ce,Ee),X=X.next,ee.bufferedRequestCount--,ee.writing)break}X===null&&(ee.lastBufferedRequest=null)}ee.bufferedRequest=X,ee.bufferProcessing=!1}R.prototype._write=function(Q,ee,X){X(new p("_write()"))},R.prototype._writev=null,R.prototype.end=function(Q,ee,X){var te=this._writableState;return typeof Q=="function"?(X=Q,Q=null,ee=null):typeof ee=="function"&&(X=ee,ee=null),Q!=null&&this.write(Q,ee),te.corked&&(te.corked=1,this.uncork()),te.ending||Z(this,te,X),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function H(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function U(Q,ee){Q._final(function(X){ee.pendingcb--,X&&x(Q,X),ee.prefinished=!0,Q.emit("prefinish"),z(Q,ee)})}function $(Q,ee){!ee.prefinished&&!ee.finalCalled&&(typeof Q._final=="function"&&!ee.destroyed?(ee.pendingcb++,ee.finalCalled=!0,wa.nextTick(U,Q,ee)):(ee.prefinished=!0,Q.emit("prefinish")))}function z(Q,ee){var X=H(ee);if(X&&($(Q,ee),ee.pendingcb===0&&(ee.finished=!0,Q.emit("finish"),ee.autoDestroy))){var te=Q._readableState;(!te||te.autoDestroy&&te.endEmitted)&&Q.destroy()}return X}function Z(Q,ee,X){ee.ending=!0,z(Q,ee),X&&(ee.finished?wa.nextTick(X):Q.once("finish",X)),ee.ended=!0,Q.writable=!1}function K(Q,ee,X){var te=Q.entry;for(Q.entry=null;te;){var J=te.callback;ee.pendingcb--,J(X),te=te.next}ee.corkedRequestsFree.next=Q}return Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ee){this._writableState&&(this._writableState.destroyed=ee)}}),R.prototype.destroy=c.destroy,R.prototype._undestroy=c.undestroy,R.prototype._destroy=function(Q,ee){ee(Q)},DPe}var $Pe,Fbt;function MU(){if(Fbt)return $Pe;Fbt=1;var t=Object.keys||function(u){var d=[];for(var h in u)d.push(h);return d};$Pe=s;var e=Cnn(),n=_nn();dE(s,e);for(var r=t(n.prototype),a=0;a<r.length;a++){var o=r[a];s.prototype[o]||(s.prototype[o]=n.prototype[o])}function s(u){if(!(this instanceof s))return new s(u);e.call(this,u),n.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||wa.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),$Pe}var FPe={},jbt;function Hbt(){if(jbt)return FPe;jbt=1;var t=uO.Buffer,e=t.isEncoding||function(A){switch(A=""+A,A&&A.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(A){if(!A)return"utf8";for(var y;;)switch(A){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return A;default:if(y)return;A=(""+A).toLowerCase(),y=!0}}function r(A){var y=n(A);if(typeof y!="string"&&(t.isEncoding===e||!e(A)))throw new Error("Unknown encoding: "+A);return y||A}FPe.StringDecoder=a;function a(A){this.encoding=r(A);var y;switch(this.encoding){case"utf16le":this.text=h,this.end=f,y=4;break;case"utf8":this.fillLast=c,y=4;break;case"base64":this.text=p,this.end=m,y=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(y)}a.prototype.write=function(A){if(A.length===0)return"";var y,S;if(this.lastNeed){if(y=this.fillLast(A),y===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<A.length?y?y+this.text(A,S):this.text(A,S):y||""},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(A){if(this.lastNeed<=A.length)return A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,A.length),this.lastNeed-=A.length};function o(A){return A<=127?0:A>>5===6?2:A>>4===14?3:A>>3===30?4:A>>6===2?-1:-2}function s(A,y,S){var x=y.length-1;if(x<S)return 0;var w=o(y[x]);return w>=0?(w>0&&(A.lastNeed=w-1),w):--x<S||w===-2?0:(w=o(y[x]),w>=0?(w>0&&(A.lastNeed=w-2),w):--x<S||w===-2?0:(w=o(y[x]),w>=0?(w>0&&(w===2?w=0:A.lastNeed=w-3),w):0))}function l(A,y,S){if((y[0]&192)!==128)return A.lastNeed=0,"�";if(A.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return A.lastNeed=1,"�";if(A.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return A.lastNeed=2,"�"}}function c(A){var y=this.lastTotal-this.lastNeed,S=l(this,A);if(S!==void 0)return S;if(this.lastNeed<=A.length)return A.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);A.copy(this.lastChar,y,0,A.length),this.lastNeed-=A.length}function u(A,y){var S=s(this,A,y);if(!this.lastNeed)return A.toString("utf8",y);this.lastTotal=S;var x=A.length-(S-this.lastNeed);return A.copy(this.lastChar,0,x),A.toString("utf8",y,x)}function d(A){var y=A&&A.length?this.write(A):"";return this.lastNeed?y+"�":y}function h(A,y){if((A.length-y)%2===0){var S=A.toString("utf16le",y);if(S){var x=S.charCodeAt(S.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=A[A.length-1],A.toString("utf16le",y,A.length-1)}function f(A){var y=A&&A.length?this.write(A):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,S)}return y}function p(A,y){var S=(A.length-y)%3;return S===0?A.toString("base64",y):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=A[A.length-1]:(this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1]),A.toString("base64",y,A.length-S))}function m(A){var y=A&&A.length?this.write(A):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function g(A){return A.toString(this.encoding)}function v(A){return A&&A.length?this.write(A):""}return FPe}var Ubt=Z8.codes.ERR_STREAM_PREMATURE_CLOSE;function oei(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];t.apply(this,r)}}}function sei(){}function lei(t){return t.setHeader&&typeof t.abort=="function"}function Tnn(t,e,n){if(typeof e=="function")return Tnn(t,null,e);e||(e={}),n=oei(n||sei);var r=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||l()},s=t._writableState&&t._writableState.finished,l=function(){a=!1,s=!0,r||n.call(t)},c=t._readableState&&t._readableState.endEmitted,u=function(){r=!1,c=!0,a||n.call(t)},d=function(m){n.call(t,m)},h=function(){var m;if(r&&!c)return(!t._readableState||!t._readableState.ended)&&(m=new Ubt),n.call(t,m);if(a&&!s)return(!t._writableState||!t._writableState.ended)&&(m=new Ubt),n.call(t,m)},f=function(){t.req.on("finish",l)};return lei(t)?(t.on("complete",l),t.on("abort",h),t.req?f():t.on("request",f)):a&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",u),t.on("finish",l),e.error!==!1&&t.on("error",d),t.on("close",h),function(){t.removeListener("complete",l),t.removeListener("abort",h),t.removeListener("request",f),t.req&&t.req.removeListener("finish",l),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",l),t.removeListener("end",u),t.removeListener("error",d),t.removeListener("close",h)}}var ott=Tnn,jPe,zbt;function cei(){if(zbt)return jPe;zbt=1;var t;function e(S,x,w){return x=n(x),x in S?Object.defineProperty(S,x,{value:w,enumerable:!0,configurable:!0,writable:!0}):S[x]=w,S}function n(S){var x=r(S,"string");return typeof x=="symbol"?x:String(x)}function r(S,x){if(typeof S!="object"||S===null)return S;var w=S[Symbol.toPrimitive];if(w!==void 0){var _=w.call(S,x||"default");if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(S)}var a=ott,o=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(S,x){return{value:S,done:x}}function p(S){var x=S[o];if(x!==null){var w=S[h].read();w!==null&&(S[u]=null,S[o]=null,S[s]=null,x(f(w,!1)))}}function m(S){wa.nextTick(p,S)}function g(S,x){return function(w,_){S.then(function(){if(x[c]){w(f(void 0,!0));return}x[d](w,_)},_)}}var v=Object.getPrototypeOf(function(){}),A=Object.setPrototypeOf((t={get stream(){return this[h]},next:function(){var x=this,w=this[l];if(w!==null)return Promise.reject(w);if(this[c])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise(function(k,P){wa.nextTick(function(){x[l]?P(x[l]):k(f(void 0,!0))})});var _=this[u],C;if(_)C=new Promise(g(_,this));else{var R=this[h].read();if(R!==null)return Promise.resolve(f(R,!1));C=new Promise(this[d])}return this[u]=C,C}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var x=this;return new Promise(function(w,_){x[h].destroy(null,function(C){if(C){_(C);return}w(f(void 0,!0))})})}),t),v),y=function(x){var w,_=Object.create(A,(w={},e(w,h,{value:x,writable:!0}),e(w,o,{value:null,writable:!0}),e(w,s,{value:null,writable:!0}),e(w,l,{value:null,writable:!0}),e(w,c,{value:x._readableState.endEmitted,writable:!0}),e(w,d,{value:function(R,k){var P=_[h].read();P?(_[u]=null,_[o]=null,_[s]=null,R(f(P,!1))):(_[o]=R,_[s]=k)},writable:!0}),w));return _[u]=null,a(x,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var R=_[s];R!==null&&(_[u]=null,_[o]=null,_[s]=null,R(C)),_[l]=C;return}var k=_[o];k!==null&&(_[u]=null,_[o]=null,_[s]=null,k(f(void 0,!0))),_[c]=!0}),x.on("readable",m.bind(null,_)),_};return jPe=y,jPe}var HPe,Gbt;function uei(){return Gbt||(Gbt=1,HPe=function(){throw new Error("Readable.from is not available in the browser")}),HPe}var UPe,Vbt;function Cnn(){if(Vbt)return UPe;Vbt=1,UPe=k;var t;k.ReadableState=R,mg.EventEmitter;var e=function(ie,he){return ie.listeners(he).length},n=xnn,r=Z2.Buffer,a=(typeof en<"u"?en:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(ne){return r.from(ne)}function s(ne){return r.isBuffer(ne)||ne instanceof a}var l=H8,c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var u=WXr(),d=Enn,h=wnn,f=h.getHighWaterMark,p=Z8.codes,m=p.ERR_INVALID_ARG_TYPE,g=p.ERR_STREAM_PUSH_AFTER_EOF,v=p.ERR_METHOD_NOT_IMPLEMENTED,A=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,S,x;dE(k,n);var w=d.errorOrDestroy,_=["error","close","destroy","pause","resume"];function C(ne,ie,he){if(typeof ne.prependListener=="function")return ne.prependListener(ie,he);!ne._events||!ne._events[ie]?ne.on(ie,he):Array.isArray(ne._events[ie])?ne._events[ie].unshift(he):ne._events[ie]=[he,ne._events[ie]]}function R(ne,ie,he){t=t||MU(),ne=ne||{},typeof he!="boolean"&&(he=ie instanceof t),this.objectMode=!!ne.objectMode,he&&(this.objectMode=this.objectMode||!!ne.readableObjectMode),this.highWaterMark=f(this,ne,"readableHighWaterMark",he),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=ne.emitClose!==!1,this.autoDestroy=!!ne.autoDestroy,this.destroyed=!1,this.defaultEncoding=ne.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ne.encoding&&(y||(y=Hbt().StringDecoder),this.decoder=new y(ne.encoding),this.encoding=ne.encoding)}function k(ne){if(t=t||MU(),!(this instanceof k))return new k(ne);var ie=this instanceof t;this._readableState=new R(ne,this,ie),this.readable=!0,ne&&(typeof ne.read=="function"&&(this._read=ne.read),typeof ne.destroy=="function"&&(this._destroy=ne.destroy)),n.call(this)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ie){this._readableState&&(this._readableState.destroyed=ie)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(ne,ie){ie(ne)},k.prototype.push=function(ne,ie){var he=this._readableState,de;return he.objectMode?de=!0:typeof ne=="string"&&(ie=ie||he.defaultEncoding,ie!==he.encoding&&(ne=r.from(ne,ie),ie=""),de=!0),P(this,ne,ie,!1,de)},k.prototype.unshift=function(ne){return P(this,ne,null,!0,!1)};function P(ne,ie,he,de,ce){c("readableAddChunk",ie);var Ee=ne._readableState;if(ie===null)Ee.reading=!1,M(ne,Ee);else{var Me;if(ce||(Me=L(Ee,ie)),Me)w(ne,Me);else if(Ee.objectMode||ie&&ie.length>0)if(typeof ie!="string"&&!Ee.objectMode&&Object.getPrototypeOf(ie)!==r.prototype&&(ie=o(ie)),de)Ee.endEmitted?w(ne,new A):N(ne,Ee,ie,!0);else if(Ee.ended)w(ne,new g);else{if(Ee.destroyed)return!1;Ee.reading=!1,Ee.decoder&&!he?(ie=Ee.decoder.write(ie),Ee.objectMode||ie.length!==0?N(ne,Ee,ie,!1):j(ne,Ee)):N(ne,Ee,ie,!1)}else de||(Ee.reading=!1,j(ne,Ee))}return!Ee.ended&&(Ee.length<Ee.highWaterMark||Ee.length===0)}function N(ne,ie,he,de){ie.flowing&&ie.length===0&&!ie.sync?(ie.awaitDrain=0,ne.emit("data",he)):(ie.length+=ie.objectMode?1:he.length,de?ie.buffer.unshift(he):ie.buffer.push(he),ie.needReadable&&D(ne)),j(ne,ie)}function L(ne,ie){var he;return!s(ie)&&typeof ie!="string"&&ie!==void 0&&!ne.objectMode&&(he=new m("chunk",["string","Buffer","Uint8Array"],ie)),he}k.prototype.isPaused=function(){return this._readableState.flowing===!1},k.prototype.setEncoding=function(ne){y||(y=Hbt().StringDecoder);var ie=new y(ne);this._readableState.decoder=ie,this._readableState.encoding=this._readableState.decoder.encoding;for(var he=this._readableState.buffer.head,de="";he!==null;)de+=ie.write(he.data),he=he.next;return this._readableState.buffer.clear(),de!==""&&this._readableState.buffer.push(de),this._readableState.length=de.length,this};var I=1073741824;function b(ne){return ne>=I?ne=I:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}function T(ne,ie){return ne<=0||ie.length===0&&ie.ended?0:ie.objectMode?1:ne!==ne?ie.flowing&&ie.length?ie.buffer.head.data.length:ie.length:(ne>ie.highWaterMark&&(ie.highWaterMark=b(ne)),ne<=ie.length?ne:ie.ended?ie.length:(ie.needReadable=!0,0))}k.prototype.read=function(ne){c("read",ne),ne=parseInt(ne,10);var ie=this._readableState,he=ne;if(ne!==0&&(ie.emittedReadable=!1),ne===0&&ie.needReadable&&((ie.highWaterMark!==0?ie.length>=ie.highWaterMark:ie.length>0)||ie.ended))return c("read: emitReadable",ie.length,ie.ended),ie.length===0&&ie.ended?X(this):D(this),null;if(ne=T(ne,ie),ne===0&&ie.ended)return ie.length===0&&X(this),null;var de=ie.needReadable;c("need readable",de),(ie.length===0||ie.length-ne<ie.highWaterMark)&&(de=!0,c("length less than watermark",de)),ie.ended||ie.reading?(de=!1,c("reading or ended",de)):de&&(c("do read"),ie.reading=!0,ie.sync=!0,ie.length===0&&(ie.needReadable=!0),this._read(ie.highWaterMark),ie.sync=!1,ie.reading||(ne=T(he,ie)));var ce;return ne>0?ce=ee(ne,ie):ce=null,ce===null?(ie.needReadable=ie.length<=ie.highWaterMark,ne=0):(ie.length-=ne,ie.awaitDrain=0),ie.length===0&&(ie.ended||(ie.needReadable=!0),he!==ne&&ie.ended&&X(this)),ce!==null&&this.emit("data",ce),ce};function M(ne,ie){if(c("onEofChunk"),!ie.ended){if(ie.decoder){var he=ie.decoder.end();he&&he.length&&(ie.buffer.push(he),ie.length+=ie.objectMode?1:he.length)}ie.ended=!0,ie.sync?D(ne):(ie.needReadable=!1,ie.emittedReadable||(ie.emittedReadable=!0,B(ne)))}}function D(ne){var ie=ne._readableState;c("emitReadable",ie.needReadable,ie.emittedReadable),ie.needReadable=!1,ie.emittedReadable||(c("emitReadable",ie.flowing),ie.emittedReadable=!0,wa.nextTick(B,ne))}function B(ne){var ie=ne._readableState;c("emitReadable_",ie.destroyed,ie.length,ie.ended),!ie.destroyed&&(ie.length||ie.ended)&&(ne.emit("readable"),ie.emittedReadable=!1),ie.needReadable=!ie.flowing&&!ie.ended&&ie.length<=ie.highWaterMark,Q(ne)}function j(ne,ie){ie.readingMore||(ie.readingMore=!0,wa.nextTick(H,ne,ie))}function H(ne,ie){for(;!ie.reading&&!ie.ended&&(ie.length<ie.highWaterMark||ie.flowing&&ie.length===0);){var he=ie.length;if(c("maybeReadMore read 0"),ne.read(0),he===ie.length)break}ie.readingMore=!1}k.prototype._read=function(ne){w(this,new v("_read()"))},k.prototype.pipe=function(ne,ie){var he=this,de=this._readableState;switch(de.pipesCount){case 0:de.pipes=ne;break;case 1:de.pipes=[de.pipes,ne];break;default:de.pipes.push(ne);break}de.pipesCount+=1,c("pipe count=%d opts=%j",de.pipesCount,ie);var ce=(!ie||ie.end!==!1)&&ne!==wa.stdout&&ne!==wa.stderr,Ee=ce?Be:_e;de.endEmitted?wa.nextTick(Ee):he.once("end",Ee),ne.on("unpipe",Me);function Me(ue,se){c("onunpipe"),ue===he&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,ye())}function Be(){c("onend"),ne.end()}var ze=U(he);ne.on("drain",ze);var je=!1;function ye(){c("cleanup"),ne.removeListener("close",pe),ne.removeListener("finish",Ne),ne.removeListener("drain",ze),ne.removeListener("error",le),ne.removeListener("unpipe",Me),he.removeListener("end",Be),he.removeListener("end",_e),he.removeListener("data",me),je=!0,de.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&ze()}he.on("data",me);function me(ue){c("ondata");var se=ne.write(ue);c("dest.write",se),se===!1&&((de.pipesCount===1&&de.pipes===ne||de.pipesCount>1&&J(de.pipes,ne)!==-1)&&!je&&(c("false write response, pause",de.awaitDrain),de.awaitDrain++),he.pause())}function le(ue){c("onerror",ue),_e(),ne.removeListener("error",le),e(ne,"error")===0&&w(ne,ue)}C(ne,"error",le);function pe(){ne.removeListener("finish",Ne),_e()}ne.once("close",pe);function Ne(){c("onfinish"),ne.removeListener("close",pe),_e()}ne.once("finish",Ne);function _e(){c("unpipe"),he.unpipe(ne)}return ne.emit("pipe",he),de.flowing||(c("pipe resume"),he.resume()),ne};function U(ne){return function(){var he=ne._readableState;c("pipeOnDrain",he.awaitDrain),he.awaitDrain&&he.awaitDrain--,he.awaitDrain===0&&e(ne,"data")&&(he.flowing=!0,Q(ne))}}k.prototype.unpipe=function(ne){var ie=this._readableState,he={hasUnpiped:!1};if(ie.pipesCount===0)return this;if(ie.pipesCount===1)return ne&&ne!==ie.pipes?this:(ne||(ne=ie.pipes),ie.pipes=null,ie.pipesCount=0,ie.flowing=!1,ne&&ne.emit("unpipe",this,he),this);if(!ne){var de=ie.pipes,ce=ie.pipesCount;ie.pipes=null,ie.pipesCount=0,ie.flowing=!1;for(var Ee=0;Ee<ce;Ee++)de[Ee].emit("unpipe",this,{hasUnpiped:!1});return this}var Me=J(ie.pipes,ne);return Me===-1?this:(ie.pipes.splice(Me,1),ie.pipesCount-=1,ie.pipesCount===1&&(ie.pipes=ie.pipes[0]),ne.emit("unpipe",this,he),this)},k.prototype.on=function(ne,ie){var he=n.prototype.on.call(this,ne,ie),de=this._readableState;return ne==="data"?(de.readableListening=this.listenerCount("readable")>0,de.flowing!==!1&&this.resume()):ne==="readable"&&!de.endEmitted&&!de.readableListening&&(de.readableListening=de.needReadable=!0,de.flowing=!1,de.emittedReadable=!1,c("on readable",de.length,de.reading),de.length?D(this):de.reading||wa.nextTick(z,this)),he},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(ne,ie){var he=n.prototype.removeListener.call(this,ne,ie);return ne==="readable"&&wa.nextTick($,this),he},k.prototype.removeAllListeners=function(ne){var ie=n.prototype.removeAllListeners.apply(this,arguments);return(ne==="readable"||ne===void 0)&&wa.nextTick($,this),ie};function $(ne){var ie=ne._readableState;ie.readableListening=ne.listenerCount("readable")>0,ie.resumeScheduled&&!ie.paused?ie.flowing=!0:ne.listenerCount("data")>0&&ne.resume()}function z(ne){c("readable nexttick read 0"),ne.read(0)}k.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(c("resume"),ne.flowing=!ne.readableListening,Z(this,ne)),ne.paused=!1,this};function Z(ne,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,wa.nextTick(K,ne,ie))}function K(ne,ie){c("resume",ie.reading),ie.reading||ne.read(0),ie.resumeScheduled=!1,ne.emit("resume"),Q(ne),ie.flowing&&!ie.reading&&ne.read(0)}k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(ne){var ie=ne._readableState;for(c("flow",ie.flowing);ie.flowing&&ne.read()!==null;);}k.prototype.wrap=function(ne){var ie=this,he=this._readableState,de=!1;ne.on("end",function(){if(c("wrapped end"),he.decoder&&!he.ended){var Me=he.decoder.end();Me&&Me.length&&ie.push(Me)}ie.push(null)}),ne.on("data",function(Me){if(c("wrapped data"),he.decoder&&(Me=he.decoder.write(Me)),!(he.objectMode&&Me==null)&&!(!he.objectMode&&(!Me||!Me.length))){var Be=ie.push(Me);Be||(de=!0,ne.pause())}});for(var ce in ne)this[ce]===void 0&&typeof ne[ce]=="function"&&(this[ce]=function(Be){return function(){return ne[Be].apply(ne,arguments)}}(ce));for(var Ee=0;Ee<_.length;Ee++)ne.on(_[Ee],this.emit.bind(this,_[Ee]));return this._read=function(Me){c("wrapped _read",Me),de&&(de=!1,ne.resume())},this},typeof Symbol=="function"&&(k.prototype[Symbol.asyncIterator]=function(){return S===void 0&&(S=cei()),S(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ie){this._readableState&&(this._readableState.flowing=ie)}}),k._fromList=ee,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ee(ne,ie){if(ie.length===0)return null;var he;return ie.objectMode?he=ie.buffer.shift():!ne||ne>=ie.length?(ie.decoder?he=ie.buffer.join(""):ie.buffer.length===1?he=ie.buffer.first():he=ie.buffer.concat(ie.length),ie.buffer.clear()):he=ie.buffer.consume(ne,ie.decoder),he}function X(ne){var ie=ne._readableState;c("endReadable",ie.endEmitted),ie.endEmitted||(ie.ended=!0,wa.nextTick(te,ie,ne))}function te(ne,ie){if(c("endReadableNT",ne.endEmitted,ne.length),!ne.endEmitted&&ne.length===0&&(ne.endEmitted=!0,ie.readable=!1,ie.emit("end"),ne.autoDestroy)){var he=ie._writableState;(!he||he.autoDestroy&&he.finished)&&ie.destroy()}}typeof Symbol=="function"&&(k.from=function(ne,ie){return x===void 0&&(x=uei()),x(k,ne,ie)});function J(ne,ie){for(var he=0,de=ne.length;he<de;he++)if(ne[he]===ie)return he;return-1}return UPe}var knn=_M,SSe=Z8.codes,dei=SSe.ERR_METHOD_NOT_IMPLEMENTED,hei=SSe.ERR_MULTIPLE_CALLBACK,fei=SSe.ERR_TRANSFORM_ALREADY_TRANSFORMING,pei=SSe.ERR_TRANSFORM_WITH_LENGTH_0,wSe=MU();dE(_M,wSe);function mei(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new hei);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),r(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function _M(t){if(!(this instanceof _M))return new _M(t);wSe.call(this,t),this._transformState={afterTransform:mei.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",gei)}function gei(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){Kbt(t,e,n)}):Kbt(this,null,null)}_M.prototype.push=function(t,e){return this._transformState.needTransform=!1,wSe.prototype.push.call(this,t,e)};_M.prototype._transform=function(t,e,n){n(new dei("_transform()"))};_M.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};_M.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_M.prototype._destroy=function(t,e){wSe.prototype._destroy.call(this,t,function(n){e(n)})};function Kbt(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new pei;if(t._transformState.transforming)throw new fei;return t.push(null)}var vei=Ene,Rnn=knn;dE(Ene,Rnn);function Ene(t){if(!(this instanceof Ene))return new Ene(t);Rnn.call(this,t)}Ene.prototype._transform=function(t,e,n){n(null,t)};var zPe;function Aei(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Mnn=Z8.codes,yei=Mnn.ERR_MISSING_ARGS,bei=Mnn.ERR_STREAM_DESTROYED;function Wbt(t){if(t)throw t}function xei(t){return t.setHeader&&typeof t.abort=="function"}function Eei(t,e,n,r){r=Aei(r);var a=!1;t.on("close",function(){a=!0}),zPe===void 0&&(zPe=ott),zPe(t,{readable:e,writable:n},function(s){if(s)return r(s);a=!0,r()});var o=!1;return function(s){if(!a&&!o){if(o=!0,xei(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();r(s||new bei("pipe"))}}}function Qbt(t){t()}function Sei(t,e){return t.pipe(e)}function wei(t){return!t.length||typeof t[t.length-1]!="function"?Wbt:t.pop()}function _ei(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=wei(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new yei("streams");var a,o=e.map(function(s,l){var c=l<e.length-1,u=l>0;return Eei(s,c,u,function(d){a||(a=d),d&&o.forEach(Qbt),!c&&(o.forEach(Qbt),r(a))})});return e.reduce(Sei)}var Tei=_ei;(function(t,e){e=t.exports=Cnn(),e.Stream=e,e.Readable=e,e.Writable=_nn(),e.Duplex=MU(),e.Transform=knn,e.PassThrough=vei,e.finished=ott,e.pipeline=Tei})(MUe,MUe.exports);var Nnn=MUe.exports;const{Transform:Cei}=Nnn;var kei=t=>class Inn extends Cei{constructor(n,r,a,o,s){super(s),this._rate=n,this._capacity=r,this._delimitedSuffix=a,this._hashBitLength=o,this._options=s,this._state=new t,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,a){let o=null;try{this.update(n,r)}catch(s){o=s}a(o)}_flush(n){let r=null;try{this.push(this.digest())}catch(a){r=a}n(r)}update(n,r){if(!gn.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return gn.isBuffer(n)||(n=gn.from(n,r)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let r=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(r=r.toString(n)),this._resetState(),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new Inn(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const{Transform:Rei}=Nnn;var Mei=t=>class Pnn extends Rei{constructor(n,r,a,o){super(o),this._rate=n,this._capacity=r,this._delimitedSuffix=a,this._options=o,this._state=new t,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,a){let o=null;try{this.update(n,r)}catch(s){o=s}a(o)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,r){if(!gn.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return gn.isBuffer(n)||(n=gn.from(n,r)),this._state.absorb(n),this}squeeze(n,r){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(n);return r!==void 0&&(a=a.toString(r)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new Pnn(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const Nei=kei,Iei=Mei;var Pei=function(t){const e=Nei(t),n=Iei(t);return function(r,a){switch(typeof r=="string"?r.toLowerCase():r){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new n(1344,256,31,a);case"shake256":return new n(1088,512,31,a);default:throw new Error("Invald algorithm: "+r)}}},Onn={};const qbt=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Onn.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],r=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],o=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],u=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],h=t[9]^t[19]^t[29]^t[39]^t[49];let f=d^(a<<1|o>>>31),p=h^(o<<1|a>>>31);const m=t[0]^f,g=t[1]^p,v=t[10]^f,A=t[11]^p,y=t[20]^f,S=t[21]^p,x=t[30]^f,w=t[31]^p,_=t[40]^f,C=t[41]^p;f=n^(s<<1|l>>>31),p=r^(l<<1|s>>>31);const R=t[2]^f,k=t[3]^p,P=t[12]^f,N=t[13]^p,L=t[22]^f,I=t[23]^p,b=t[32]^f,T=t[33]^p,M=t[42]^f,D=t[43]^p;f=a^(c<<1|u>>>31),p=o^(u<<1|c>>>31);const B=t[4]^f,j=t[5]^p,H=t[14]^f,U=t[15]^p,$=t[24]^f,z=t[25]^p,Z=t[34]^f,K=t[35]^p,Q=t[44]^f,ee=t[45]^p;f=s^(d<<1|h>>>31),p=l^(h<<1|d>>>31);const X=t[6]^f,te=t[7]^p,J=t[16]^f,ne=t[17]^p,ie=t[26]^f,he=t[27]^p,de=t[36]^f,ce=t[37]^p,Ee=t[46]^f,Me=t[47]^p;f=c^(n<<1|r>>>31),p=u^(r<<1|n>>>31);const Be=t[8]^f,ze=t[9]^p,je=t[18]^f,ye=t[19]^p,me=t[28]^f,le=t[29]^p,pe=t[38]^f,Ne=t[39]^p,_e=t[48]^f,ue=t[49]^p,se=m,oe=g,ge=A<<4|v>>>28,De=v<<4|A>>>28,Fe=y<<3|S>>>29,Se=S<<3|y>>>29,Xe=w<<9|x>>>23,Oe=x<<9|w>>>23,Ye=_<<18|C>>>14,mt=C<<18|_>>>14,ut=R<<1|k>>>31,lt=k<<1|R>>>31,pn=N<<12|P>>>20,sn=P<<12|N>>>20,un=L<<10|I>>>22,ur=I<<10|L>>>22,dt=T<<13|b>>>19,xt=b<<13|T>>>19,Cn=M<<2|D>>>30,Kt=D<<2|M>>>30,rn=j<<30|B>>>2,On=B<<30|j>>>2,an=H<<6|U>>>26,on=U<<6|H>>>26,dr=z<<11|$>>>21,$e=$<<11|z>>>21,qe=Z<<15|K>>>17,yt=K<<15|Z>>>17,Ze=ee<<29|Q>>>3,ot=Q<<29|ee>>>3,yn=X<<28|te>>>4,vt=te<<28|X>>>4,Gt=ne<<23|J>>>9,ft=J<<23|ne>>>9,rt=ie<<25|he>>>7,Pt=he<<25|ie>>>7,Yt=de<<21|ce>>>11,Un=ce<<21|de>>>11,jn=Me<<24|Ee>>>8,br=Ee<<24|Me>>>8,si=Be<<27|ze>>>5,Qi=ze<<27|Be>>>5,st=je<<20|ye>>>12,wt=ye<<20|je>>>12,Bt=le<<7|me>>>25,dn=me<<7|le>>>25,tn=pe<<8|Ne>>>24,vn=Ne<<8|pe>>>24,kn=_e<<14|ue>>>18,Mn=ue<<14|_e>>>18;t[0]=se^~pn&dr,t[1]=oe^~sn&$e,t[10]=yn^~st&Fe,t[11]=vt^~wt&Se,t[20]=ut^~an&rt,t[21]=lt^~on&Pt,t[30]=si^~ge&un,t[31]=Qi^~De&ur,t[40]=rn^~Gt&Bt,t[41]=On^~ft&dn,t[2]=pn^~dr&Yt,t[3]=sn^~$e&Un,t[12]=st^~Fe&dt,t[13]=wt^~Se&xt,t[22]=an^~rt&tn,t[23]=on^~Pt&vn,t[32]=ge^~un&qe,t[33]=De^~ur&yt,t[42]=Gt^~Bt&Xe,t[43]=ft^~dn&Oe,t[4]=dr^~Yt&kn,t[5]=$e^~Un&Mn,t[14]=Fe^~dt&Ze,t[15]=Se^~xt&ot,t[24]=rt^~tn&Ye,t[25]=Pt^~vn&mt,t[34]=un^~qe&jn,t[35]=ur^~yt&br,t[44]=Bt^~Xe&Cn,t[45]=dn^~Oe&Kt,t[6]=Yt^~kn&se,t[7]=Un^~Mn&oe,t[16]=dt^~Ze&yn,t[17]=xt^~ot&vt,t[26]=tn^~Ye&ut,t[27]=vn^~mt&lt,t[36]=qe^~jn&si,t[37]=yt^~br&Qi,t[46]=Xe^~Cn&rn,t[47]=Oe^~Kt&On,t[8]=kn^~se&pn,t[9]=Mn^~oe&sn,t[18]=Ze^~yn&st,t[19]=ot^~vt&wt,t[28]=Ye^~ut&an,t[29]=mt^~lt&on,t[38]=jn^~si&ge,t[39]=br^~Qi&De,t[48]=Cn^~rn&Gt,t[49]=Kt^~On&ft,t[0]^=qbt[e*2],t[1]^=qbt[e*2+1]}};const sAe=Onn;function LG(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}LG.prototype.initialize=function(t,e){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};LG.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(sAe.p1600(this.state),this.count=0)};LG.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<8*(this.count%4),t&128&&this.count===this.blockSize-1&&sAe.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),sAe.p1600(this.state),this.count=0,this.squeezing=!0};LG.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);const e=gn.alloc(t);for(let n=0;n<t;++n)e[n]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(sAe.p1600(this.state),this.count=0);return e};LG.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};var Oei=LG,Lei=Pei(Oei);const Bei=Lei,Dei=gSe;function Lnn(t){return gn.allocUnsafe(t).fill(0)}function Bnn(t,e,n){const r=Lnn(e);return t=_Se(t),n?t.length<e?(t.copy(r),r):t.slice(0,e):t.length<e?(t.copy(r,e-t.length),r):t.slice(-e)}function $ei(t,e){return Bnn(t,e,!0)}function _Se(t){if(!gn.isBuffer(t))if(Array.isArray(t))t=gn.from(t);else if(typeof t=="string")Dnn(t)?t=gn.from(Hei($nn(t)),"hex"):t=gn.from(t);else if(typeof t=="number")t=intToBuffer(t);else if(t==null)t=gn.allocUnsafe(0);else if(Dei.isBN(t))t=t.toArrayLike(gn);else if(t.toArray)t=gn.from(t.toArray());else throw new Error("invalid type");return t}function Fei(t){return t=_Se(t),"0x"+t.toString("hex")}function jei(t,e){return t=_Se(t),e||(e=256),Bei("keccak"+e).update(t).digest()}function Hei(t){return t.length%2?"0"+t:t}function Dnn(t){return typeof t=="string"&&t.match(/^0x[0-9A-Fa-f]*$/)}function $nn(t){return typeof t=="string"&&t.startsWith("0x")?t.slice(2):t}var Fnn={zeros:Lnn,setLength:Bnn,setLengthRight:$ei,isHexString:Dnn,stripHexPrefix:$nn,toBuffer:_Se,bufferToHex:Fei,keccak:jei};const O6=Fnn,VB=gSe;function jnn(t){return t.startsWith("int[")?"int256"+t.slice(3):t==="int"?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):t==="uint"?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):t==="fixed"?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):t==="ufixed"?"ufixed128x128":t}function qj(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function Ybt(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function Hnn(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function pB(t){var e=typeof t;if(e==="string")return O6.isHexString(t)?new VB(O6.stripHexPrefix(t),16):new VB(t,10);if(e==="number")return new VB(t);if(t.toArray)return t;throw new Error("Argument is not a number")}function fT(t,e){var n,r,a,o;if(t==="address")return fT("uint160",pB(e));if(t==="bool")return fT("uint8",e?1:0);if(t==="string")return fT("bytes",new gn(e,"utf8"));if(zei(t)){if(typeof e.length>"u")throw new Error("Not an array?");if(n=Hnn(t),n!=="dynamic"&&n!==0&&e.length>n)throw new Error("Elements exceed array size: "+n);a=[],t=t.slice(0,t.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(o in e)a.push(fT(t,e[o]));if(n==="dynamic"){var s=fT("uint256",e.length);a.unshift(s)}return gn.concat(a)}else{if(t==="bytes")return e=new gn(e),a=gn.concat([fT("uint256",e.length),e]),e.length%32!==0&&(a=gn.concat([a,O6.zeros(32-e.length%32)])),a;if(t.startsWith("bytes")){if(n=qj(t),n<1||n>32)throw new Error("Invalid bytes<N> width: "+n);return O6.setLengthRight(e,32)}else if(t.startsWith("uint")){if(n=qj(t),n%8||n<8||n>256)throw new Error("Invalid uint<N> width: "+n);if(r=pB(e),r.bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+r.bitLength());if(r<0)throw new Error("Supplied uint is negative");return r.toArrayLike(gn,"be",32)}else if(t.startsWith("int")){if(n=qj(t),n%8||n<8||n>256)throw new Error("Invalid int<N> width: "+n);if(r=pB(e),r.bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+r.bitLength());return r.toTwos(256).toArrayLike(gn,"be",32)}else if(t.startsWith("ufixed")){if(n=Ybt(t),r=pB(e),r<0)throw new Error("Supplied ufixed is negative");return fT("uint256",r.mul(new VB(2).pow(new VB(n[1]))))}else if(t.startsWith("fixed"))return n=Ybt(t),fT("int256",pB(e).mul(new VB(2).pow(new VB(n[1]))))}throw new Error("Unsupported or invalid type: "+t)}function Uei(t){return t==="string"||t==="bytes"||Hnn(t)==="dynamic"}function zei(t){return t.lastIndexOf("]")===t.length-1}function Gei(t,e){var n=[],r=[],a=32*t.length;for(var o in t){var s=jnn(t[o]),l=e[o],c=fT(s,l);Uei(s)?(n.push(fT("uint256",a)),r.push(c),a+=c.length):n.push(c)}return gn.concat(n.concat(r))}function Unn(t,e){if(t.length!==e.length)throw new Error("Number of types are not matching the values");for(var n,r,a=[],o=0;o<t.length;o++){var s=jnn(t[o]),l=e[o];if(s==="bytes")a.push(l);else if(s==="string")a.push(new gn(l,"utf8"));else if(s==="bool")a.push(new gn(l?"01":"00","hex"));else if(s==="address")a.push(O6.setLength(l,20));else if(s.startsWith("bytes")){if(n=qj(s),n<1||n>32)throw new Error("Invalid bytes<N> width: "+n);a.push(O6.setLengthRight(l,n))}else if(s.startsWith("uint")){if(n=qj(s),n%8||n<8||n>256)throw new Error("Invalid uint<N> width: "+n);if(r=pB(l),r.bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+r.bitLength());a.push(r.toArrayLike(gn,"be",n/8))}else if(s.startsWith("int")){if(n=qj(s),n%8||n<8||n>256)throw new Error("Invalid int<N> width: "+n);if(r=pB(l),r.bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+r.bitLength());a.push(r.toTwos(n).toArrayLike(gn,"be",n/8))}else throw new Error("Unsupported or invalid type: "+s)}return gn.concat(a)}function Vei(t,e){return O6.keccak(Unn(t,e))}var Kei={rawEncode:Gei,solidityPack:Unn,soliditySHA3:Vei};const TS=Fnn,KX=Kei,znn={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},GPe={encodeData(t,e,n,r=!0){const a=["bytes32"],o=[this.hashType(t,n)];if(r){const s=(l,c,u)=>{if(n[c]!==void 0)return["bytes32",u==null?"0x0000000000000000000000000000000000000000000000000000000000000000":TS.keccak(this.encodeData(c,u,n,r))];if(u===void 0)throw new Error(`missing value for field ${l} of type ${c}`);if(c==="bytes")return["bytes32",TS.keccak(u)];if(c==="string")return typeof u=="string"&&(u=gn.from(u,"utf8")),["bytes32",TS.keccak(u)];if(c.lastIndexOf("]")===c.length-1){const d=c.slice(0,c.lastIndexOf("[")),h=u.map(f=>s(l,d,f));return["bytes32",TS.keccak(KX.rawEncode(h.map(([f])=>f),h.map(([,f])=>f)))]}return[c,u]};for(const l of n[t]){const[c,u]=s(l.name,l.type,e[l.name]);a.push(c),o.push(u)}}else for(const s of n[t]){let l=e[s.name];if(l!==void 0)if(s.type==="bytes")a.push("bytes32"),l=TS.keccak(l),o.push(l);else if(s.type==="string")a.push("bytes32"),typeof l=="string"&&(l=gn.from(l,"utf8")),l=TS.keccak(l),o.push(l);else if(n[s.type]!==void 0)a.push("bytes32"),l=TS.keccak(this.encodeData(s.type,l,n,r)),o.push(l);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),o.push(l)}}return KX.rawEncode(a,o)},encodeType(t,e){let n="",r=this.findTypeDependencies(t,e).filter(a=>a!==t);r=[t].concat(r.sort());for(const a of r){if(!e[a])throw new Error("No type definition specified: "+a);n+=a+"("+e[a].map(({name:s,type:l})=>l+" "+s).join(",")+")"}return n},findTypeDependencies(t,e,n=[]){if(t=t.match(/^\w*/)[0],n.includes(t)||e[t]===void 0)return n;n.push(t);for(const r of e[t])for(const a of this.findTypeDependencies(r.type,e,n))!n.includes(a)&&n.push(a);return n},hashStruct(t,e,n,r=!0){return TS.keccak(this.encodeData(t,e,n,r))},hashType(t,e){return TS.keccak(this.encodeType(t,e))},sanitizeData(t){const e={};for(const n in znn.properties)t[n]&&(e[n]=t[n]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){const n=this.sanitizeData(t),r=[gn.from("1901","hex")];return r.push(this.hashStruct("EIP712Domain",n.domain,n.types,e)),n.primaryType!=="EIP712Domain"&&r.push(this.hashStruct(n.primaryType,n.message,n.types,e)),TS.keccak(gn.concat(r))}};var Wei={TYPED_MESSAGE_SCHEMA:znn,TypedDataUtils:GPe,hashForSignTypedDataLegacy:function(t){return Qei(t.data)},hashForSignTypedData_v3:function(t){return GPe.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return GPe.hash(t.data)}};function Qei(t){const e=new Error("Expect argument to be non-empty array");if(typeof t!="object"||!t.length)throw e;const n=t.map(function(o){return o.type==="bytes"?TS.toBuffer(o.value):o.value}),r=t.map(function(o){return o.type}),a=t.map(function(o){if(!o.name)throw e;return o.type+" "+o.name});return KX.soliditySHA3(["bytes32","bytes32"],[KX.soliditySHA3(new Array(t.length).fill("string"),a),KX.soliditySHA3(r,n)])}var NU={};Object.defineProperty(NU,"__esModule",{value:!0});NU.filterFromParam=NU.FilterPolyfill=void 0;const oF=Bae,d0=ya,qei=5*60*1e3,mB={jsonrpc:"2.0",id:0};class Yei{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,oF.IntNumber)(1),this.provider=e}async newFilter(e){const n=Gnn(e),r=this.makeFilterId(),a=await this.setInitialCursorPosition(r,n.fromBlock);return console.log(`Installing new log filter(${r}):`,n,"initial cursor position:",a),this.logFilters.set(r,n),this.setFilterTimeout(r),(0,d0.hexStringFromIntNumber)(r)}async newBlockFilter(){const e=this.makeFilterId(),n=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,n),this.blockFilters.add(e),this.setFilterTimeout(e),(0,d0.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){const e=this.makeFilterId(),n=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,n),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,d0.hexStringFromIntNumber)(e)}uninstallFilter(e){const n=(0,d0.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${n})`),this.deleteFilter(n),!0}getFilterChanges(e){const n=(0,d0.intNumberFromHexString)(e);return this.timeouts.has(n)&&this.setFilterTimeout(n),this.logFilters.has(n)?this.getLogFilterChanges(n):this.blockFilters.has(n)?this.getBlockFilterChanges(n):this.pendingTransactionFilters.has(n)?this.getPendingTransactionFilterChanges(n):Promise.resolve(Pce())}async getFilterLogs(e){const n=(0,d0.intNumberFromHexString)(e),r=this.logFilters.get(n);return r?this.sendAsyncPromise(Object.assign(Object.assign({},mB),{method:"eth_getLogs",params:[Jbt(r)]})):Pce()}makeFilterId(){return(0,oF.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((n,r)=>{this.provider.sendAsync(e,(a,o)=>{if(a)return r(a);if(Array.isArray(o)||o==null)return r(new Error(`unexpected response received: ${JSON.stringify(o)}`));n(o)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){const n=this.logFilters.get(e),r=this.cursors.get(e);if(!r||!n)return Pce();const a=await this.getCurrentBlockHeight(),o=n.toBlock==="latest"?a:n.toBlock;if(r>a||r>n.toBlock)return Oce();console.log(`Fetching logs from ${r} to ${o} for filter ${e}`);const s=await this.sendAsyncPromise(Object.assign(Object.assign({},mB),{method:"eth_getLogs",params:[Jbt(Object.assign(Object.assign({},n),{fromBlock:r,toBlock:o}))]}));if(Array.isArray(s.result)){const l=s.result.map(u=>(0,d0.intNumberFromHexString)(u.blockNumber||"0x0")),c=Math.max(...l);if(c&&c>r){const u=(0,oF.IntNumber)(c+1);console.log(`Moving cursor position for filter (${e}) from ${r} to ${u}`),this.cursors.set(e,u)}}return s}async getBlockFilterChanges(e){const n=this.cursors.get(e);if(!n)return Pce();const r=await this.getCurrentBlockHeight();if(n>r)return Oce();console.log(`Fetching blocks from ${n} to ${r} for filter (${e})`);const a=(await Promise.all((0,d0.range)(n,r+1).map(s=>this.getBlockHashByNumber((0,oF.IntNumber)(s))))).filter(s=>!!s),o=(0,oF.IntNumber)(n+a.length);return console.log(`Moving cursor position for filter (${e}) from ${n} to ${o}`),this.cursors.set(e,o),Object.assign(Object.assign({},mB),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(Oce())}async setInitialCursorPosition(e,n){const r=await this.getCurrentBlockHeight(),a=typeof n=="number"&&n>r?n:r;return this.cursors.set(e,a),a}setFilterTimeout(e){const n=this.timeouts.get(e);n&&window.clearTimeout(n);const r=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},qei);this.timeouts.set(e,r)}async getCurrentBlockHeight(){const{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},mB),{method:"eth_blockNumber",params:[]}));return(0,d0.intNumberFromHexString)((0,d0.ensureHexString)(e))}async getBlockHashByNumber(e){const n=await this.sendAsyncPromise(Object.assign(Object.assign({},mB),{method:"eth_getBlockByNumber",params:[(0,d0.hexStringFromIntNumber)(e),!1]}));return n.result&&typeof n.result.hash=="string"?(0,d0.ensureHexString)(n.result.hash):null}}NU.FilterPolyfill=Yei;function Gnn(t){return{fromBlock:Zbt(t.fromBlock),toBlock:Zbt(t.toBlock),addresses:t.address===void 0?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}NU.filterFromParam=Gnn;function Jbt(t){const e={fromBlock:Xbt(t.fromBlock),toBlock:Xbt(t.toBlock),topics:t.topics};return t.addresses!==null&&(e.address=t.addresses),e}function Zbt(t){if(t===void 0||t==="latest"||t==="pending")return"latest";if(t==="earliest")return(0,oF.IntNumber)(0);if((0,d0.isHexString)(t))return(0,d0.intNumberFromHexString)(t);throw new Error(`Invalid block option: ${String(t)}`)}function Xbt(t){return t==="latest"?t:(0,d0.hexStringFromIntNumber)(t)}function Pce(){return Object.assign(Object.assign({},mB),{error:{code:-32e3,message:"filter not found"}})}function Oce(){return Object.assign(Object.assign({},mB),{result:[]})}var Vnn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCMethod=void 0,function(e){e.eth_accounts="eth_accounts",e.eth_coinbase="eth_coinbase",e.net_version="net_version",e.eth_chainId="eth_chainId",e.eth_uninstallFilter="eth_uninstallFilter",e.eth_requestAccounts="eth_requestAccounts",e.eth_sign="eth_sign",e.eth_ecRecover="eth_ecRecover",e.personal_sign="personal_sign",e.personal_ecRecover="personal_ecRecover",e.eth_signTransaction="eth_signTransaction",e.eth_sendRawTransaction="eth_sendRawTransaction",e.eth_sendTransaction="eth_sendTransaction",e.eth_signTypedData_v1="eth_signTypedData_v1",e.eth_signTypedData_v2="eth_signTypedData_v2",e.eth_signTypedData_v3="eth_signTypedData_v3",e.eth_signTypedData_v4="eth_signTypedData_v4",e.eth_signTypedData="eth_signTypedData",e.cbWallet_arbitrary="walletlink_arbitrary",e.wallet_addEthereumChain="wallet_addEthereumChain",e.wallet_switchEthereumChain="wallet_switchEthereumChain",e.wallet_watchAsset="wallet_watchAsset",e.eth_subscribe="eth_subscribe",e.eth_unsubscribe="eth_unsubscribe",e.eth_newFilter="eth_newFilter",e.eth_newBlockFilter="eth_newBlockFilter",e.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",e.eth_getFilterChanges="eth_getFilterChanges",e.eth_getFilterLogs="eth_getFilterLogs"}(t.JSONRPCMethod||(t.JSONRPCMethod={}))})(Vnn);var TSe={},Knn={},CSe={},stt=Jei;function Jei(t){t=t||{};var e=t.max||Number.MAX_SAFE_INTEGER,n=typeof t.start<"u"?t.start:Math.floor(Math.random()*e);return function(){return n=n%e,n++}}const ext=(t,e)=>function(){const n=e.promiseModule,r=new Array(arguments.length);for(let a=0;a<arguments.length;a++)r[a]=arguments[a];return new n((a,o)=>{e.errorFirst?r.push(function(s,l){if(e.multiArgs){const c=new Array(arguments.length-1);for(let u=1;u<arguments.length;u++)c[u-1]=arguments[u];s?(c.unshift(s),o(c)):a(c)}else s?o(s):a(l)}):r.push(function(s){if(e.multiArgs){const l=new Array(arguments.length-1);for(let c=0;c<arguments.length;c++)l[c]=arguments[c];a(l)}else a(s)}),t.apply(this,r)})};var Zei=(t,e)=>{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const n=a=>{const o=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(o):!e.exclude.some(o)};let r;typeof t=="function"?r=function(){return e.excludeMain?t.apply(this,arguments):ext(t,e).apply(this,arguments)}:r=Object.create(Object.getPrototypeOf(t));for(const a in t){const o=t[a];r[a]=typeof o=="function"&&n(a)?ext(o,e):o}return r},Fae={},Xei=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fae,"__esModule",{value:!0});Fae.BaseBlockTracker=void 0;const eti=Xei(q8),tti=1e3,nti=(t,e)=>t+e,txt=["sync","latest"];class rti extends eti.default{constructor(e){super(),this._blockResetDuration=e.blockResetDuration||20*tti,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(n=>this.once("latest",n))}removeAllListeners(e){return e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e){txt.includes(e)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return txt.map(e=>this.listenerCount(e)).reduce(nti)}_newPotentialLatest(e){const n=this._currentBlock;n&&nxt(e)<=nxt(n)||this._setCurrentBlock(e)}_setCurrentBlock(e){const n=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:n,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}Fae.BaseBlockTracker=rti;function nxt(t){return Number.parseInt(t,16)}var Wnn={},Qnn={},eg={};class qnn extends TypeError{constructor(e,n){let r;const{message:a,explanation:o,...s}=e,{path:l}=e,c=l.length===0?a:`At path: ${l.join(".")} -- ${a}`;super(o??c),o!=null&&(this.cause=c),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...n()])}}function iti(t){return Ix(t)&&typeof t[Symbol.iterator]=="function"}function Ix(t){return typeof t=="object"&&t!=null}function rxt(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function wp(t){return typeof t=="symbol"?t.toString():typeof t=="string"?JSON.stringify(t):`${t}`}function ati(t){const{done:e,value:n}=t.next();return e?void 0:n}function oti(t,e,n,r){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});const{path:a,branch:o}=e,{type:s}=n,{refinement:l,message:c=`Expected a value of type \`${s}\`${l?` with refinement \`${l}\``:""}, but received: \`${wp(r)}\``}=t;return{value:r,type:s,refinement:l,key:a[a.length-1],path:a,branch:o,...t,message:c}}function*IUe(t,e,n,r){iti(t)||(t=[t]);for(const a of t){const o=oti(a,e,n,r);o&&(yield o)}}function*ltt(t,e,n={}){const{path:r=[],branch:a=[t],coerce:o=!1,mask:s=!1}=n,l={path:r,branch:a};if(o&&(t=e.coercer(t,l),s&&e.type!=="type"&&Ix(e.schema)&&Ix(t)&&!Array.isArray(t)))for(const u in t)e.schema[u]===void 0&&delete t[u];let c="valid";for(const u of e.validator(t,l))u.explanation=n.message,c="not_valid",yield[u,void 0];for(let[u,d,h]of e.entries(t,l)){const f=ltt(d,h,{path:u===void 0?r:[...r,u],branch:u===void 0?a:[...a,d],coerce:o,mask:s,message:n.message});for(const p of f)p[0]?(c=p[0].refinement!=null?"not_refined":"not_valid",yield[p[0],void 0]):o&&(d=p[1],u===void 0?t=d:t instanceof Map?t.set(u,d):t instanceof Set?t.add(d):Ix(t)&&(d!==void 0||u in t)&&(t[u]=d))}if(c!=="not_valid")for(const u of e.refiner(t,l))u.explanation=n.message,c="not_refined",yield[u,void 0];c==="valid"&&(yield[void 0,t])}class of{constructor(e){const{type:n,schema:r,validator:a,refiner:o,coercer:s=c=>c,entries:l=function*(){}}=e;this.type=n,this.schema=r,this.entries=l,this.coercer=s,a?this.validator=(c,u)=>{const d=a(c,u);return IUe(d,u,this,c)}:this.validator=()=>[],o?this.refiner=(c,u)=>{const d=o(c,u);return IUe(d,u,this,c)}:this.refiner=()=>[]}assert(e,n){return Ynn(e,this,n)}create(e,n){return Jnn(e,this,n)}is(e){return ctt(e,this)}mask(e,n){return Znn(e,this,n)}validate(e,n={}){return BG(e,this,n)}}function Ynn(t,e,n){const r=BG(t,e,{message:n});if(r[0])throw r[0]}function Jnn(t,e,n){const r=BG(t,e,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function Znn(t,e,n){const r=BG(t,e,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function ctt(t,e){return!BG(t,e)[0]}function BG(t,e,n={}){const r=ltt(t,e,n),a=ati(r);return a[0]?[new qnn(a[0],function*(){for(const s of r)s[0]&&(yield s[0])}),void 0]:[void 0,a[1]]}function sti(...t){const e=t[0].type==="type",n=t.map(a=>a.schema),r=Object.assign({},...n);return e?Hae(r):jae(r)}function g1(t,e){return new of({type:t,schema:null,validator:e})}function lti(t,e){return new of({...t,refiner:(n,r)=>n===void 0||t.refiner(n,r),validator(n,r){return n===void 0?!0:(e(n,r),t.validator(n,r))}})}function cti(t){return new of({type:"dynamic",schema:null,*entries(e,n){yield*t(e,n).entries(e,n)},validator(e,n){return t(e,n).validator(e,n)},coercer(e,n){return t(e,n).coercer(e,n)},refiner(e,n){return t(e,n).refiner(e,n)}})}function uti(t){let e;return new of({type:"lazy",schema:null,*entries(n,r){e??(e=t()),yield*e.entries(n,r)},validator(n,r){return e??(e=t()),e.validator(n,r)},coercer(n,r){return e??(e=t()),e.coercer(n,r)},refiner(n,r){return e??(e=t()),e.refiner(n,r)}})}function dti(t,e){const{schema:n}=t,r={...n};for(const a of e)delete r[a];switch(t.type){case"type":return Hae(r);default:return jae(r)}}function hti(t){const e=t instanceof of,n=e?{...t.schema}:{...t};for(const r in n)n[r]=Xnn(n[r]);return e&&t.type==="type"?Hae(n):jae(n)}function fti(t,e){const{schema:n}=t,r={};for(const a of e)r[a]=n[a];switch(t.type){case"type":return Hae(r);default:return jae(r)}}function pti(t,e){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),g1(t,e)}function mti(){return g1("any",()=>!0)}function gti(t){return new of({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[n,r]of e.entries())yield[n,r,t]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||`Expected an array value, but received: ${wp(e)}`}})}function vti(){return g1("bigint",t=>typeof t=="bigint")}function Ati(){return g1("boolean",t=>typeof t=="boolean")}function yti(){return g1("date",t=>t instanceof Date&&!isNaN(t.getTime())||`Expected a valid \`Date\` object, but received: ${wp(t)}`)}function bti(t){const e={},n=t.map(r=>wp(r)).join();for(const r of t)e[r]=r;return new of({type:"enums",schema:e,validator(r){return t.includes(r)||`Expected one of \`${n}\`, but received: ${wp(r)}`}})}function xti(){return g1("func",t=>typeof t=="function"||`Expected a function, but received: ${wp(t)}`)}function Eti(t){return g1("instance",e=>e instanceof t||`Expected a \`${t.name}\` instance, but received: ${wp(e)}`)}function Sti(){return g1("integer",t=>typeof t=="number"&&!isNaN(t)&&Number.isInteger(t)||`Expected an integer, but received: ${wp(t)}`)}function wti(t){return new of({type:"intersection",schema:null,*entries(e,n){for(const r of t)yield*r.entries(e,n)},*validator(e,n){for(const r of t)yield*r.validator(e,n)},*refiner(e,n){for(const r of t)yield*r.refiner(e,n)}})}function _ti(t){const e=wp(t),n=typeof t;return new of({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?t:null,validator(r){return r===t||`Expected the literal \`${e}\`, but received: ${wp(r)}`}})}function Tti(t,e){return new of({type:"map",schema:null,*entries(n){if(t&&e&&n instanceof Map)for(const[r,a]of n.entries())yield[r,r,t],yield[r,a,e]},coercer(n){return n instanceof Map?new Map(n):n},validator(n){return n instanceof Map||`Expected a \`Map\` object, but received: ${wp(n)}`}})}function utt(){return g1("never",()=>!1)}function Cti(t){return new of({...t,validator:(e,n)=>e===null||t.validator(e,n),refiner:(e,n)=>e===null||t.refiner(e,n)})}function kti(){return g1("number",t=>typeof t=="number"&&!isNaN(t)||`Expected a number, but received: ${wp(t)}`)}function jae(t){const e=t?Object.keys(t):[],n=utt();return new of({type:"object",schema:t||null,*entries(r){if(t&&Ix(r)){const a=new Set(Object.keys(r));for(const o of e)a.delete(o),yield[o,r[o],t[o]];for(const o of a)yield[o,r[o],n]}},validator(r){return Ix(r)||`Expected an object, but received: ${wp(r)}`},coercer(r){return Ix(r)?{...r}:r}})}function Xnn(t){return new of({...t,validator:(e,n)=>e===void 0||t.validator(e,n),refiner:(e,n)=>e===void 0||t.refiner(e,n)})}function Rti(t,e){return new of({type:"record",schema:null,*entries(n){if(Ix(n))for(const r in n){const a=n[r];yield[r,r,t],yield[r,a,e]}},validator(n){return Ix(n)||`Expected an object, but received: ${wp(n)}`}})}function Mti(){return g1("regexp",t=>t instanceof RegExp)}function Nti(t){return new of({type:"set",schema:null,*entries(e){if(t&&e instanceof Set)for(const n of e)yield[n,n,t]},coercer(e){return e instanceof Set?new Set(e):e},validator(e){return e instanceof Set||`Expected a \`Set\` object, but received: ${wp(e)}`}})}function ern(){return g1("string",t=>typeof t=="string"||`Expected a string, but received: ${wp(t)}`)}function Iti(t){const e=utt();return new of({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(t.length,n.length);for(let a=0;a<r;a++)yield[a,n[a],t[a]||e]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${wp(n)}`}})}function Hae(t){const e=Object.keys(t);return new of({type:"type",schema:t,*entries(n){if(Ix(n))for(const r of e)yield[r,n[r],t[r]]},validator(n){return Ix(n)||`Expected an object, but received: ${wp(n)}`},coercer(n){return Ix(n)?{...n}:n}})}function Pti(t){const e=t.map(n=>n.type).join(" | ");return new of({type:"union",schema:null,coercer(n){for(const r of t){const[a,o]=r.validate(n,{coerce:!0});if(!a)return o}return n},validator(n,r){const a=[];for(const o of t){const[...s]=ltt(n,o,r),[l]=s;if(l[0])for(const[c]of s)c&&a.push(c);else return[]}return[`Expected the value to satisfy a union of \`${e}\`, but received: ${wp(n)}`,...a]}})}function trn(){return g1("unknown",()=>!0)}function dtt(t,e,n){return new of({...t,coercer:(r,a)=>ctt(r,e)?t.coercer(n(r,a),a):t.coercer(r,a)})}function Oti(t,e,n={}){return dtt(t,trn(),r=>{const a=typeof e=="function"?e():e;if(r===void 0)return a;if(!n.strict&&rxt(r)&&rxt(a)){const o={...r};let s=!1;for(const l in a)o[l]===void 0&&(o[l]=a[l],s=!0);if(s)return o}return r})}function Lti(t){return dtt(t,ern(),e=>e.trim())}function Bti(t){return X8(t,"empty",e=>{const n=nrn(e);return n===0||`Expected an empty ${t.type} but received one with a size of \`${n}\``})}function nrn(t){return t instanceof Map||t instanceof Set?t.size:t.length}function Dti(t,e,n={}){const{exclusive:r}=n;return X8(t,"max",a=>r?a<e:a<=e||`Expected a ${t.type} less than ${r?"":"or equal to "}${e} but received \`${a}\``)}function $ti(t,e,n={}){const{exclusive:r}=n;return X8(t,"min",a=>r?a>e:a>=e||`Expected a ${t.type} greater than ${r?"":"or equal to "}${e} but received \`${a}\``)}function Fti(t){return X8(t,"nonempty",e=>nrn(e)>0||`Expected a nonempty ${t.type} but received an empty one`)}function jti(t,e){return X8(t,"pattern",n=>e.test(n)||`Expected a ${t.type} matching \`/${e.source}/\` but received "${n}"`)}function Hti(t,e,n=e){const r=`Expected a ${t.type}`,a=e===n?`of \`${e}\``:`between \`${e}\` and \`${n}\``;return X8(t,"size",o=>{if(typeof o=="number"||o instanceof Date)return e<=o&&o<=n||`${r} ${a} but received \`${o}\``;if(o instanceof Map||o instanceof Set){const{size:s}=o;return e<=s&&s<=n||`${r} with a size ${a} but received one with a size of \`${s}\``}else{const{length:s}=o;return e<=s&&s<=n||`${r} with a length ${a} but received one with a length of \`${s}\``}})}function X8(t,e,n){return new of({...t,*refiner(r,a){yield*t.refiner(r,a);const o=n(r,a),s=IUe(o,a,t,r);for(const l of s)yield{...l,refinement:e}}})}const Uti=Object.freeze(Object.defineProperty({__proto__:null,Struct:of,StructError:qnn,any:mti,array:gti,assert:Ynn,assign:sti,bigint:vti,boolean:Ati,coerce:dtt,create:Jnn,date:yti,defaulted:Oti,define:g1,deprecated:lti,dynamic:cti,empty:Bti,enums:bti,func:xti,instance:Eti,integer:Sti,intersection:wti,is:ctt,lazy:uti,literal:_ti,map:Tti,mask:Znn,max:Dti,min:$ti,never:utt,nonempty:Fti,nullable:Cti,number:kti,object:jae,omit:dti,optional:Xnn,partial:hti,pattern:jti,pick:fti,record:Rti,refine:X8,regexp:Mti,set:Nti,size:Hti,string:ern,struct:pti,trimmed:Lti,tuple:Iti,type:Hae,union:Pti,unknown:trn,validate:BG},Symbol.toStringTag,{value:"Module"})),e9=Uu(Uti);Object.defineProperty(eg,"__esModule",{value:!0});eg.assertExhaustive=eg.assertStruct=eg.assert=eg.AssertionError=void 0;const zti=e9;function Gti(t){return typeof t=="object"&&t!==null&&"message"in t}function Vti(t){var e,n;return typeof((n=(e=t==null?void 0:t.prototype)===null||e===void 0?void 0:e.constructor)===null||n===void 0?void 0:n.name)=="string"}function Kti(t){const e=Gti(t)?t.message:String(t);return e.endsWith(".")?e.slice(0,-1):e}function rrn(t,e){return Vti(t)?new t({message:e}):t({message:e})}class htt extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}eg.AssertionError=htt;function Wti(t,e="Assertion failed.",n=htt){if(!t)throw e instanceof Error?e:rrn(n,e)}eg.assert=Wti;function Qti(t,e,n="Assertion failed",r=htt){try{(0,zti.assert)(t,e)}catch(a){throw rrn(r,`${n}: ${Kti(a)}.`)}}eg.assertStruct=Qti;function qti(t){throw new Error("Invalid branch reached. Should be detected during compilation.")}eg.assertExhaustive=qti;var Uae={};Object.defineProperty(Uae,"__esModule",{value:!0});Uae.base64=void 0;const Yti=e9,Jti=eg,Zti=(t,e={})=>{var n,r;const a=(n=e.paddingRequired)!==null&&n!==void 0?n:!1,o=(r=e.characterSet)!==null&&r!==void 0?r:"base64";let s;o==="base64"?s=String.raw`[A-Za-z0-9+\/]`:((0,Jti.assert)(o==="base64url"),s=String.raw`[-_A-Za-z0-9]`);let l;return a?l=new RegExp(`^(?:${s}{4})*(?:${s}{3}=|${s}{2}==)?$`,"u"):l=new RegExp(`^(?:${s}{4})*(?:${s}{2,3}|${s}{3}=|${s}{2}==)?$`,"u"),(0,Yti.pattern)(t,l)};Uae.base64=Zti;var Tl={},zae={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.StrictHexStruct=t.HexStruct=void 0;const e=e9,n=eg;t.HexStruct=(0,e.pattern)((0,e.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,e.pattern)((0,e.string)(),/^0x[0-9a-f]+$/iu);function r(u){return(0,e.is)(u,t.HexStruct)}t.isHexString=r;function a(u){return(0,e.is)(u,t.StrictHexStruct)}t.isStrictHexString=a;function o(u){(0,n.assert)(r(u),"Value must be a hexadecimal string.")}t.assertIsHexString=o;function s(u){(0,n.assert)(a(u),'Value must be a hexadecimal string, starting with "0x".')}t.assertIsStrictHexString=s;function l(u){return u.startsWith("0x")?u:u.startsWith("0X")?`0x${u.substring(2)}`:`0x${u}`}t.add0x=l;function c(u){return u.startsWith("0x")||u.startsWith("0X")?u.substring(2):u}t.remove0x=c})(zae);Object.defineProperty(Tl,"__esModule",{value:!0});Tl.createDataView=Tl.concatBytes=Tl.valueToBytes=Tl.stringToBytes=Tl.numberToBytes=Tl.signedBigIntToBytes=Tl.bigIntToBytes=Tl.hexToBytes=Tl.bytesToString=Tl.bytesToNumber=Tl.bytesToSignedBigInt=Tl.bytesToBigInt=Tl.bytesToHex=Tl.assertIsBytes=Tl.isBytes=void 0;const My=eg,PUe=zae,ixt=48,axt=58,oxt=87;function Xti(){const t=[];return()=>{if(t.length===0)for(let e=0;e<256;e++)t.push(e.toString(16).padStart(2,"0"));return t}}const eni=Xti();function ftt(t){return t instanceof Uint8Array}Tl.isBytes=ftt;function DG(t){(0,My.assert)(ftt(t),"Value must be a Uint8Array.")}Tl.assertIsBytes=DG;function irn(t){if(DG(t),t.length===0)return"0x";const e=eni(),n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=e[t[r]];return(0,PUe.add0x)(n.join(""))}Tl.bytesToHex=irn;function arn(t){DG(t);const e=irn(t);return BigInt(e)}Tl.bytesToBigInt=arn;function tni(t){DG(t);let e=BigInt(0);for(const n of t)e=(e<<BigInt(8))+BigInt(n);return BigInt.asIntN(t.length*8,e)}Tl.bytesToSignedBigInt=tni;function nni(t){DG(t);const e=arn(t);return(0,My.assert)(e<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(e)}Tl.bytesToNumber=nni;function rni(t){return DG(t),new TextDecoder().decode(t)}Tl.bytesToString=rni;function kSe(t){var e;if(((e=t==null?void 0:t.toLowerCase)===null||e===void 0?void 0:e.call(t))==="0x")return new Uint8Array;(0,PUe.assertIsHexString)(t);const n=(0,PUe.remove0x)(t).toLowerCase(),r=n.length%2===0?n:`0${n}`,a=new Uint8Array(r.length/2);for(let o=0;o<a.length;o++){const s=r.charCodeAt(o*2),l=r.charCodeAt(o*2+1),c=s-(s<axt?ixt:oxt),u=l-(l<axt?ixt:oxt);a[o]=c*16+u}return a}Tl.hexToBytes=kSe;function orn(t){(0,My.assert)(typeof t=="bigint","Value must be a bigint."),(0,My.assert)(t>=BigInt(0),"Value must be a non-negative bigint.");const e=t.toString(16);return kSe(e)}Tl.bigIntToBytes=orn;function ini(t,e){(0,My.assert)(e>0);const n=t>>BigInt(31);return!((~t&n)+(t&~n)>>BigInt(e*8+-1))}function ani(t,e){(0,My.assert)(typeof t=="bigint","Value must be a bigint."),(0,My.assert)(typeof e=="number","Byte length must be a number."),(0,My.assert)(e>0,"Byte length must be greater than 0."),(0,My.assert)(ini(t,e),"Byte length is too small to represent the given value.");let n=t;const r=new Uint8Array(e);for(let a=0;a<r.length;a++)r[a]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return r.reverse()}Tl.signedBigIntToBytes=ani;function srn(t){(0,My.assert)(typeof t=="number","Value must be a number."),(0,My.assert)(t>=0,"Value must be a non-negative number."),(0,My.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToBytes` instead.");const e=t.toString(16);return kSe(e)}Tl.numberToBytes=srn;function lrn(t){return(0,My.assert)(typeof t=="string","Value must be a string."),new TextEncoder().encode(t)}Tl.stringToBytes=lrn;function crn(t){if(typeof t=="bigint")return orn(t);if(typeof t=="number")return srn(t);if(typeof t=="string")return t.startsWith("0x")?kSe(t):lrn(t);if(ftt(t))return t;throw new TypeError(`Unsupported value type: "${typeof t}".`)}Tl.valueToBytes=crn;function oni(t){const e=new Array(t.length);let n=0;for(let a=0;a<t.length;a++){const o=crn(t[a]);e[a]=o,n+=o.length}const r=new Uint8Array(n);for(let a=0,o=0;a<e.length;a++)r.set(e[a],o),o+=e[a].length;return r}Tl.concatBytes=oni;function sni(t){if(typeof gn<"u"&&t instanceof gn){const e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new DataView(e)}return new DataView(t.buffer,t.byteOffset,t.byteLength)}Tl.createDataView=sni;var RSe={};Object.defineProperty(RSe,"__esModule",{value:!0});RSe.ChecksumStruct=void 0;const sxt=e9,lni=Uae;RSe.ChecksumStruct=(0,sxt.size)((0,lni.base64)((0,sxt.string)(),{paddingRequired:!0}),44,44);var e2={};Object.defineProperty(e2,"__esModule",{value:!0});e2.createHex=e2.createBytes=e2.createBigInt=e2.createNumber=void 0;const Bd=e9,cni=eg,urn=Tl,MSe=zae,drn=(0,Bd.union)([(0,Bd.number)(),(0,Bd.bigint)(),(0,Bd.string)(),MSe.StrictHexStruct]),uni=(0,Bd.coerce)((0,Bd.number)(),drn,Number),dni=(0,Bd.coerce)((0,Bd.bigint)(),drn,BigInt);(0,Bd.union)([MSe.StrictHexStruct,(0,Bd.instance)(Uint8Array)]);const hni=(0,Bd.coerce)((0,Bd.instance)(Uint8Array),(0,Bd.union)([MSe.StrictHexStruct]),urn.hexToBytes),fni=(0,Bd.coerce)(MSe.StrictHexStruct,(0,Bd.instance)(Uint8Array),urn.bytesToHex);function pni(t){try{const e=(0,Bd.create)(t,uni);return(0,cni.assert)(Number.isFinite(e),`Expected a number-like value, got "${t}".`),e}catch(e){throw e instanceof Bd.StructError?new Error(`Expected a number-like value, got "${t}".`):e}}e2.createNumber=pni;function mni(t){try{return(0,Bd.create)(t,dni)}catch(e){throw e instanceof Bd.StructError?new Error(`Expected a number-like value, got "${String(e.value)}".`):e}}e2.createBigInt=mni;function gni(t){if(typeof t=="string"&&t.toLowerCase()==="0x")return new Uint8Array;try{return(0,Bd.create)(t,hni)}catch(e){throw e instanceof Bd.StructError?new Error(`Expected a bytes-like value, got "${String(e.value)}".`):e}}e2.createBytes=gni;function vni(t){if(t instanceof Uint8Array&&t.length===0||typeof t=="string"&&t.toLowerCase()==="0x")return"0x";try{return(0,Bd.create)(t,fni)}catch(e){throw e instanceof Bd.StructError?new Error(`Expected a bytes-like value, got "${String(e.value)}".`):e}}e2.createHex=vni;var IU={},hrn=en&&en.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},y0=en&&en.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},aS,$_;Object.defineProperty(IU,"__esModule",{value:!0});IU.FrozenSet=IU.FrozenMap=void 0;class ptt{constructor(e){aS.set(this,void 0),hrn(this,aS,new Map(e),"f"),Object.freeze(this)}get size(){return y0(this,aS,"f").size}[(aS=new WeakMap,Symbol.iterator)](){return y0(this,aS,"f")[Symbol.iterator]()}entries(){return y0(this,aS,"f").entries()}forEach(e,n){return y0(this,aS,"f").forEach((r,a,o)=>e.call(n,r,a,this))}get(e){return y0(this,aS,"f").get(e)}has(e){return y0(this,aS,"f").has(e)}keys(){return y0(this,aS,"f").keys()}values(){return y0(this,aS,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,n])=>`${String(e)} => ${String(n)}`).join(", ")} `:""}}`}}IU.FrozenMap=ptt;class mtt{constructor(e){$_.set(this,void 0),hrn(this,$_,new Set(e),"f"),Object.freeze(this)}get size(){return y0(this,$_,"f").size}[($_=new WeakMap,Symbol.iterator)](){return y0(this,$_,"f")[Symbol.iterator]()}entries(){return y0(this,$_,"f").entries()}forEach(e,n){return y0(this,$_,"f").forEach((r,a,o)=>e.call(n,r,a,this))}has(e){return y0(this,$_,"f").has(e)}keys(){return y0(this,$_,"f").keys()}values(){return y0(this,$_,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}}IU.FrozenSet=mtt;Object.freeze(ptt);Object.freeze(ptt.prototype);Object.freeze(mtt);Object.freeze(mtt.prototype);var frn={},gtt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0;function e(u){return Array.isArray(u)&&u.length>0}t.isNonEmptyArray=e;function n(u){return u==null}t.isNullOrUndefined=n;function r(u){return!!u&&typeof u=="object"&&!Array.isArray(u)}t.isObject=r;const a=(u,d)=>Object.hasOwnProperty.call(u,d);t.hasProperty=a,function(u){u[u.Null=4]="Null",u[u.Comma=1]="Comma",u[u.Wrapper=1]="Wrapper",u[u.True=4]="True",u[u.False=5]="False",u[u.Quote=1]="Quote",u[u.Colon=1]="Colon",u[u.Date=24]="Date"}(t.JsonSize||(t.JsonSize={})),t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function o(u){if(typeof u!="object"||u===null)return!1;try{let d=u;for(;Object.getPrototypeOf(d)!==null;)d=Object.getPrototypeOf(d);return Object.getPrototypeOf(u)===d}catch{return!1}}t.isPlainObject=o;function s(u){return u.charCodeAt(0)<=127}t.isASCII=s;function l(u){var d;return u.split("").reduce((f,p)=>s(p)?f+1:f+2,0)+((d=u.match(t.ESCAPE_CHARACTERS_REGEXP))!==null&&d!==void 0?d:[]).length}t.calculateStringSize=l;function c(u){return u.toString().length}t.calculateNumberSize=c})(gtt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonAndGetSize=t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.isValidJson=t.JsonStruct=void 0;const e=e9,n=eg,r=gtt;t.JsonStruct=(0,e.define)("Json",w=>{const[_]=x(w,!0);return _?!0:"Expected a valid JSON-serializable value"});function a(w){return(0,e.is)(w,t.JsonStruct)}t.isValidJson=a,t.jsonrpc2="2.0",t.JsonRpcVersionStruct=(0,e.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,e.nullable)((0,e.union)([(0,e.number)(),(0,e.string)()])),t.JsonRpcErrorStruct=(0,e.object)({code:(0,e.integer)(),message:(0,e.string)(),data:(0,e.optional)(t.JsonStruct),stack:(0,e.optional)((0,e.string)())}),t.JsonRpcParamsStruct=(0,e.optional)((0,e.union)([(0,e.record)((0,e.string)(),t.JsonStruct),(0,e.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,e.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,e.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,e.omit)(t.JsonRpcRequestStruct,["id"]);function o(w){return(0,e.is)(w,t.JsonRpcNotificationStruct)}t.isJsonRpcNotification=o;function s(w,_){(0,n.assertStruct)(w,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",_)}t.assertIsJsonRpcNotification=s;function l(w){return(0,e.is)(w,t.JsonRpcRequestStruct)}t.isJsonRpcRequest=l;function c(w,_){(0,n.assertStruct)(w,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",_)}t.assertIsJsonRpcRequest=c,t.PendingJsonRpcResponseStruct=(0,e.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,e.optional)((0,e.unknown)()),error:(0,e.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,e.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,e.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,e.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]);function u(w){return(0,e.is)(w,t.PendingJsonRpcResponseStruct)}t.isPendingJsonRpcResponse=u;function d(w,_){(0,n.assertStruct)(w,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",_)}t.assertIsPendingJsonRpcResponse=d;function h(w){return(0,e.is)(w,t.JsonRpcResponseStruct)}t.isJsonRpcResponse=h;function f(w,_){(0,n.assertStruct)(w,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",_)}t.assertIsJsonRpcResponse=f;function p(w){return(0,e.is)(w,t.JsonRpcSuccessStruct)}t.isJsonRpcSuccess=p;function m(w,_){(0,n.assertStruct)(w,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",_)}t.assertIsJsonRpcSuccess=m;function g(w){return(0,e.is)(w,t.JsonRpcFailureStruct)}t.isJsonRpcFailure=g;function v(w,_){(0,n.assertStruct)(w,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",_)}t.assertIsJsonRpcFailure=v;function A(w){return(0,e.is)(w,t.JsonRpcErrorStruct)}t.isJsonRpcError=A;function y(w,_){(0,n.assertStruct)(w,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",_)}t.assertIsJsonRpcError=y;function S(w){const{permitEmptyString:_,permitFractions:C,permitNull:R}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},w);return P=>!!(typeof P=="number"&&(C||Number.isInteger(P))||typeof P=="string"&&(_||P.length>0)||R&&P===null)}t.getJsonRpcIdValidator=S;function x(w,_=!1){const C=new Set;function R(k,P){if(k===void 0)return[!1,0];if(k===null)return[!0,P?0:r.JsonSize.Null];const N=typeof k;try{if(N==="function")return[!1,0];if(N==="string"||k instanceof String)return[!0,P?0:(0,r.calculateStringSize)(k)+r.JsonSize.Quote*2];if(N==="boolean"||k instanceof Boolean)return P?[!0,0]:[!0,k==!0?r.JsonSize.True:r.JsonSize.False];if(N==="number"||k instanceof Number)return P?[!0,0]:[!0,(0,r.calculateNumberSize)(k)];if(k instanceof Date)return P?[!0,0]:[!0,isNaN(k.getDate())?r.JsonSize.Null:r.JsonSize.Date+r.JsonSize.Quote*2]}catch{return[!1,0]}if(!(0,r.isPlainObject)(k)&&!Array.isArray(k))return[!1,0];if(C.has(k))return[!1,0];C.add(k);try{return[!0,Object.entries(k).reduce((L,[I,b],T,M)=>{let[D,B]=R(b,P);if(!D)throw new Error("JSON validation did not pass. Validation process stopped.");if(C.delete(k),P)return 0;const j=Array.isArray(k)?0:I.length+r.JsonSize.Comma+r.JsonSize.Colon*2,H=T<M.length-1?r.JsonSize.Comma:0;return L+j+B+H},P?0:r.JsonSize.Wrapper*2)]}catch{return[!1,0]}}return R(w,_)}t.validateJsonAndGetSize=x})(frn);var PU={},OUe={exports:{}},VPe,lxt;function Ani(){if(lxt)return VPe;lxt=1;var t=1e3,e=t*60,n=e*60,r=n*24,a=r*7,o=r*365.25;VPe=function(d,h){h=h||{};var f=typeof d;if(f==="string"&&d.length>0)return s(d);if(f==="number"&&isFinite(d))return h.long?c(d):l(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function s(d){if(d=String(d),!(d.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(h){var f=parseFloat(h[1]),p=(h[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return f*o;case"weeks":case"week":case"w":return f*a;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*e;case"seconds":case"second":case"secs":case"sec":case"s":return f*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function l(d){var h=Math.abs(d);return h>=r?Math.round(d/r)+"d":h>=n?Math.round(d/n)+"h":h>=e?Math.round(d/e)+"m":h>=t?Math.round(d/t)+"s":d+"ms"}function c(d){var h=Math.abs(d);return h>=r?u(d,h,r,"day"):h>=n?u(d,h,n,"hour"):h>=e?u(d,h,e,"minute"):h>=t?u(d,h,t,"second"):d+" ms"}function u(d,h,f,p){var m=h>=f*1.5;return Math.round(d/f)+" "+p+(m?"s":"")}return VPe}function yni(t){n.debug=n,n.default=n,n.coerce=c,n.disable=s,n.enable=o,n.enabled=l,n.humanize=Ani(),Object.keys(t).forEach(function(u){n[u]=t[u]}),n.instances=[],n.names=[],n.skips=[],n.formatters={};function e(u){for(var d=0,h=0;h<u.length;h++)d=(d<<5)-d+u.charCodeAt(h),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=e;function n(u){var d;function h(){if(h.enabled){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];var g=h,v=Number(new Date),A=v-(d||v);g.diff=A,g.prev=d,g.curr=v,d=v,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");var y=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,function(x,w){if(x==="%%")return x;y++;var _=n.formatters[w];if(typeof _=="function"){var C=p[y];x=_.call(g,C),p.splice(y,1),y--}return x}),n.formatArgs.call(g,p);var S=g.log||n.log;S.apply(g,p)}}return h.namespace=u,h.enabled=n.enabled(u),h.useColors=n.useColors(),h.color=e(u),h.destroy=r,h.extend=a,typeof n.init=="function"&&n.init(h),n.instances.push(h),h}function r(){var u=n.instances.indexOf(this);return u!==-1?(n.instances.splice(u,1),!0):!1}function a(u,d){return n(this.namespace+(typeof d>"u"?":":d)+u)}function o(u){n.save(u),n.names=[],n.skips=[];var d,h=(typeof u=="string"?u:"").split(/[\s,]+/),f=h.length;for(d=0;d<f;d++)h[d]&&(u=h[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.substr(1)+"$")):n.names.push(new RegExp("^"+u+"$")));for(d=0;d<n.instances.length;d++){var p=n.instances[d];p.enabled=n.enabled(p.namespace)}}function s(){n.enable("")}function l(u){if(u[u.length-1]==="*")return!0;var d,h;for(d=0,h=n.skips.length;d<h;d++)if(n.skips[d].test(u))return!1;for(d=0,h=n.names.length;d<h;d++)if(n.names[d].test(u))return!0;return!1}function c(u){return u instanceof Error?u.stack||u.message:u}return n.enable(n.load()),n}var bni=yni;(function(t,e){function n(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(d)}e.log=o,e.formatArgs=a,e.save=s,e.load=l,e.useColors=r,e.storage=c(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!!this.useColors){var h="color: "+this.color;d.splice(1,0,h,"color: inherit");var f=0,p=0;d[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(f++,m==="%c"&&(p=f))}),d.splice(p,0,h)}}function o(){var d;return(typeof console>"u"?"undefined":n(console))==="object"&&console.log&&(d=console).log.apply(d,arguments)}function s(d){try{d?e.storage.setItem("debug",d):e.storage.removeItem("debug")}catch{}}function l(){var d;try{d=e.storage.getItem("debug")}catch{}return!d&&typeof wa<"u"&&"env"in wa&&(d={}.DEBUG),d}function c(){try{return localStorage}catch{}}t.exports=bni(e);var u=t.exports.formatters;u.j=function(d){try{return JSON.stringify(d)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}})(OUe,OUe.exports);var xni=OUe.exports,Eni=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(PU,"__esModule",{value:!0});PU.createModuleLogger=PU.createProjectLogger=void 0;const Sni=Eni(xni),wni=(0,Sni.default)("metamask");function _ni(t){return wni.extend(t)}PU.createProjectLogger=_ni;function Tni(t,e){return t.extend(e)}PU.createModuleLogger=Tni;var t2={};Object.defineProperty(t2,"__esModule",{value:!0});t2.hexToBigInt=t2.hexToNumber=t2.bigIntToHex=t2.numberToHex=void 0;const Yj=eg,Sne=zae,Cni=t=>((0,Yj.assert)(typeof t=="number","Value must be a number."),(0,Yj.assert)(t>=0,"Value must be a non-negative number."),(0,Yj.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,Sne.add0x)(t.toString(16)));t2.numberToHex=Cni;const kni=t=>((0,Yj.assert)(typeof t=="bigint","Value must be a bigint."),(0,Yj.assert)(t>=0,"Value must be a non-negative bigint."),(0,Sne.add0x)(t.toString(16)));t2.bigIntToHex=kni;const Rni=t=>{(0,Sne.assertIsHexString)(t);const e=parseInt(t,16);return(0,Yj.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `hexToBigInt` instead."),e};t2.hexToNumber=Rni;const Mni=t=>((0,Sne.assertIsHexString)(t),BigInt((0,Sne.add0x)(t)));t2.hexToBigInt=Mni;var prn={};Object.defineProperty(prn,"__esModule",{value:!0});var mrn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,function(o){o[o.Millisecond=1]="Millisecond",o[o.Second=1e3]="Second",o[o.Minute=6e4]="Minute",o[o.Hour=36e5]="Hour",o[o.Day=864e5]="Day",o[o.Week=6048e5]="Week",o[o.Year=31536e6]="Year"}(t.Duration||(t.Duration={}));const e=o=>Number.isInteger(o)&&o>=0,n=(o,s)=>{if(!e(o))throw new Error(`"${s}" must be a non-negative integer. Received: "${o}".`)};function r(o,s){return n(o,"count"),o*s}t.inMilliseconds=r;function a(o){return n(o,"timestamp"),Date.now()-o}t.timeSince=a})(mrn);var grn={},LUe={exports:{}};const Nni="2.0.0",vrn=256,Ini=Number.MAX_SAFE_INTEGER||9007199254740991,Pni=16,Oni=vrn-6,Lni=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var NSe={MAX_LENGTH:vrn,MAX_SAFE_COMPONENT_LENGTH:Pni,MAX_SAFE_BUILD_LENGTH:Oni,MAX_SAFE_INTEGER:Ini,RELEASE_TYPES:Lni,SEMVER_SPEC_VERSION:Nni,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Bni=typeof wa=="object"&&wa.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};var ISe=Bni;(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:a}=NSe,o=ISe;e=t.exports={};const s=e.re=[],l=e.safeRe=[],c=e.src=[],u=e.t={};let d=0;const h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",a],[h,r]],p=g=>{for(const[v,A]of f)g=g.split(`${v}*`).join(`${v}{0,${A}}`).split(`${v}+`).join(`${v}{1,${A}}`);return g},m=(g,v,A)=>{const y=p(v),S=d++;o(g,S,v),u[g]=S,c[S]=v,s[S]=new RegExp(v,A?"g":void 0),l[S]=new RegExp(y,A?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(LUe,LUe.exports);var Gae=LUe.exports;const Dni=Object.freeze({loose:!0}),$ni=Object.freeze({}),Fni=t=>t?typeof t!="object"?Dni:t:$ni;var vtt=Fni;const cxt=/^[0-9]+$/,Arn=(t,e)=>{const n=cxt.test(t),r=cxt.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},jni=(t,e)=>Arn(e,t);var yrn={compareIdentifiers:Arn,rcompareIdentifiers:jni};const Lce=ISe,{MAX_LENGTH:uxt,MAX_SAFE_INTEGER:Bce}=NSe,{safeRe:dxt,t:hxt}=Gae,Hni=vtt,{compareIdentifiers:g$}=yrn;let Uni=class oT{constructor(e,n){if(n=Hni(n),e instanceof oT){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>uxt)throw new TypeError(`version is longer than ${uxt} characters`);Lce("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=e.trim().match(n.loose?dxt[hxt.LOOSE]:dxt[hxt.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Bce||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Bce||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Bce||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const o=+a;if(o>=0&&o<Bce)return o}return a}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Lce("SemVer.compare",this.version,this.options,e),!(e instanceof oT)){if(typeof e=="string"&&e===this.version)return 0;e=new oT(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof oT||(e=new oT(e,this.options)),g$(this.major,e.major)||g$(this.minor,e.minor)||g$(this.patch,e.patch)}comparePre(e){if(e instanceof oT||(e=new oT(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],a=e.prerelease[n];if(Lce("prerelease compare",n,r,a),r===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(r===void 0)return-1;if(r===a)continue;return g$(r,a)}while(++n)}compareBuild(e){e instanceof oT||(e=new oT(e,this.options));let n=0;do{const r=this.build[n],a=e.build[n];if(Lce("build compare",n,r,a),r===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(r===void 0)return-1;if(r===a)continue;return g$(r,a)}while(++n)}inc(e,n,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const a=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let o=[n,a];r===!1&&(o=[n]),g$(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var tA=Uni;const fxt=tA,zni=(t,e,n=!1)=>{if(t instanceof fxt)return t;try{return new fxt(t,e)}catch(r){if(!n)return null;throw r}};var $G=zni;const Gni=$G,Vni=(t,e)=>{const n=Gni(t,e);return n?n.version:null};var Kni=Vni;const Wni=$G,Qni=(t,e)=>{const n=Wni(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};var qni=Qni;const pxt=tA,Yni=(t,e,n,r,a)=>{typeof n=="string"&&(a=r,r=n,n=void 0);try{return new pxt(t instanceof pxt?t.version:t,n).inc(e,r,a).version}catch{return null}};var Jni=Yni;const mxt=$G,Zni=(t,e)=>{const n=mxt(t,null,!0),r=mxt(e,null,!0),a=n.compare(r);if(a===0)return null;const o=a>0,s=o?n:r,l=o?r:n,c=!!s.prerelease.length;if(!!l.prerelease.length&&!c)return!l.patch&&!l.minor?"major":s.patch?"patch":s.minor?"minor":"major";const d=c?"pre":"";return n.major!==r.major?d+"major":n.minor!==r.minor?d+"minor":n.patch!==r.patch?d+"patch":"prerelease"};var Xni=Zni;const eri=tA,tri=(t,e)=>new eri(t,e).major;var nri=tri;const rri=tA,iri=(t,e)=>new rri(t,e).minor;var ari=iri;const ori=tA,sri=(t,e)=>new ori(t,e).patch;var lri=sri;const cri=$G,uri=(t,e)=>{const n=cri(t,e);return n&&n.prerelease.length?n.prerelease:null};var dri=uri;const gxt=tA,hri=(t,e,n)=>new gxt(t,n).compare(new gxt(e,n));var Vw=hri;const fri=Vw,pri=(t,e,n)=>fri(e,t,n);var mri=pri;const gri=Vw,vri=(t,e)=>gri(t,e,!0);var Ari=vri;const vxt=tA,yri=(t,e,n)=>{const r=new vxt(t,n),a=new vxt(e,n);return r.compare(a)||r.compareBuild(a)};var Att=yri;const bri=Att,xri=(t,e)=>t.sort((n,r)=>bri(n,r,e));var Eri=xri;const Sri=Att,wri=(t,e)=>t.sort((n,r)=>Sri(r,n,e));var _ri=wri;const Tri=Vw,Cri=(t,e,n)=>Tri(t,e,n)>0;var PSe=Cri;const kri=Vw,Rri=(t,e,n)=>kri(t,e,n)<0;var ytt=Rri;const Mri=Vw,Nri=(t,e,n)=>Mri(t,e,n)===0;var brn=Nri;const Iri=Vw,Pri=(t,e,n)=>Iri(t,e,n)!==0;var xrn=Pri;const Ori=Vw,Lri=(t,e,n)=>Ori(t,e,n)>=0;var btt=Lri;const Bri=Vw,Dri=(t,e,n)=>Bri(t,e,n)<=0;var xtt=Dri;const $ri=brn,Fri=xrn,jri=PSe,Hri=btt,Uri=ytt,zri=xtt,Gri=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return $ri(t,n,r);case"!=":return Fri(t,n,r);case">":return jri(t,n,r);case">=":return Hri(t,n,r);case"<":return Uri(t,n,r);case"<=":return zri(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};var Ern=Gri;const Vri=tA,Kri=$G,{safeRe:Dce,t:$ce}=Gae,Wri=(t,e)=>{if(t instanceof Vri)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Dce[$ce.COERCEFULL]:Dce[$ce.COERCE]);else{const c=e.includePrerelease?Dce[$ce.COERCERTLFULL]:Dce[$ce.COERCERTL];let u;for(;(u=c.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;const r=n[2],a=n[3]||"0",o=n[4]||"0",s=e.includePrerelease&&n[5]?`-${n[5]}`:"",l=e.includePrerelease&&n[6]?`+${n[6]}`:"";return Kri(`${r}.${a}.${o}${s}${l}`,e)};var Qri=Wri;class qri{constructor(){this.max=1e3,this.map=new Map}get(e){const n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}}var Yri=qri,KPe,Axt;function Kw(){if(Axt)return KPe;Axt=1;class t{constructor(b,T){if(T=r(T),b instanceof t)return b.loose===!!T.loose&&b.includePrerelease===!!T.includePrerelease?b:new t(b.raw,T);if(b instanceof a)return this.raw=b.value,this.set=[[b]],this.format(),this;if(this.options=T,this.loose=!!T.loose,this.includePrerelease=!!T.includePrerelease,this.raw=b.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(M=>this.parseRange(M.trim())).filter(M=>M.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const M=this.set[0];if(this.set=this.set.filter(D=>!m(D[0])),this.set.length===0)this.set=[M];else if(this.set.length>1){for(const D of this.set)if(D.length===1&&g(D[0])){this.set=[D];break}}}this.format()}format(){return this.range=this.set.map(b=>b.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(b){const M=((this.options.includePrerelease&&f)|(this.options.loose&&p))+":"+b,D=n.get(M);if(D)return D;const B=this.options.loose,j=B?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];b=b.replace(j,N(this.options.includePrerelease)),o("hyphen replace",b),b=b.replace(l[c.COMPARATORTRIM],u),o("comparator trim",b),b=b.replace(l[c.TILDETRIM],d),o("tilde trim",b),b=b.replace(l[c.CARETTRIM],h),o("caret trim",b);let H=b.split(" ").map(Z=>A(Z,this.options)).join(" ").split(/\s+/).map(Z=>P(Z,this.options));B&&(H=H.filter(Z=>(o("loose invalid filter",Z,this.options),!!Z.match(l[c.COMPARATORLOOSE])))),o("range list",H);const U=new Map,$=H.map(Z=>new a(Z,this.options));for(const Z of $){if(m(Z))return[Z];U.set(Z.value,Z)}U.size>1&&U.has("")&&U.delete("");const z=[...U.values()];return n.set(M,z),z}intersects(b,T){if(!(b instanceof t))throw new TypeError("a Range is required");return this.set.some(M=>v(M,T)&&b.set.some(D=>v(D,T)&&M.every(B=>D.every(j=>B.intersects(j,T)))))}test(b){if(!b)return!1;if(typeof b=="string")try{b=new s(b,this.options)}catch{return!1}for(let T=0;T<this.set.length;T++)if(L(this.set[T],b,this.options))return!0;return!1}}KPe=t;const e=Yri,n=new e,r=vtt,a=OSe(),o=ISe,s=tA,{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:h}=Gae,{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:p}=NSe,m=I=>I.value==="<0.0.0-0",g=I=>I.value==="",v=(I,b)=>{let T=!0;const M=I.slice();let D=M.pop();for(;T&&M.length;)T=M.every(B=>D.intersects(B,b)),D=M.pop();return T},A=(I,b)=>(o("comp",I,b),I=w(I,b),o("caret",I),I=S(I,b),o("tildes",I),I=C(I,b),o("xrange",I),I=k(I,b),o("stars",I),I),y=I=>!I||I.toLowerCase()==="x"||I==="*",S=(I,b)=>I.trim().split(/\s+/).map(T=>x(T,b)).join(" "),x=(I,b)=>{const T=b.loose?l[c.TILDELOOSE]:l[c.TILDE];return I.replace(T,(M,D,B,j,H)=>{o("tilde",I,M,D,B,j,H);let U;return y(D)?U="":y(B)?U=`>=${D}.0.0 <${+D+1}.0.0-0`:y(j)?U=`>=${D}.${B}.0 <${D}.${+B+1}.0-0`:H?(o("replaceTilde pr",H),U=`>=${D}.${B}.${j}-${H} <${D}.${+B+1}.0-0`):U=`>=${D}.${B}.${j} <${D}.${+B+1}.0-0`,o("tilde return",U),U})},w=(I,b)=>I.trim().split(/\s+/).map(T=>_(T,b)).join(" "),_=(I,b)=>{o("caret",I,b);const T=b.loose?l[c.CARETLOOSE]:l[c.CARET],M=b.includePrerelease?"-0":"";return I.replace(T,(D,B,j,H,U)=>{o("caret",I,D,B,j,H,U);let $;return y(B)?$="":y(j)?$=`>=${B}.0.0${M} <${+B+1}.0.0-0`:y(H)?B==="0"?$=`>=${B}.${j}.0${M} <${B}.${+j+1}.0-0`:$=`>=${B}.${j}.0${M} <${+B+1}.0.0-0`:U?(o("replaceCaret pr",U),B==="0"?j==="0"?$=`>=${B}.${j}.${H}-${U} <${B}.${j}.${+H+1}-0`:$=`>=${B}.${j}.${H}-${U} <${B}.${+j+1}.0-0`:$=`>=${B}.${j}.${H}-${U} <${+B+1}.0.0-0`):(o("no pr"),B==="0"?j==="0"?$=`>=${B}.${j}.${H}${M} <${B}.${j}.${+H+1}-0`:$=`>=${B}.${j}.${H}${M} <${B}.${+j+1}.0-0`:$=`>=${B}.${j}.${H} <${+B+1}.0.0-0`),o("caret return",$),$})},C=(I,b)=>(o("replaceXRanges",I,b),I.split(/\s+/).map(T=>R(T,b)).join(" ")),R=(I,b)=>{I=I.trim();const T=b.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return I.replace(T,(M,D,B,j,H,U)=>{o("xRange",I,M,D,B,j,H,U);const $=y(B),z=$||y(j),Z=z||y(H),K=Z;return D==="="&&K&&(D=""),U=b.includePrerelease?"-0":"",$?D===">"||D==="<"?M="<0.0.0-0":M="*":D&&K?(z&&(j=0),H=0,D===">"?(D=">=",z?(B=+B+1,j=0,H=0):(j=+j+1,H=0)):D==="<="&&(D="<",z?B=+B+1:j=+j+1),D==="<"&&(U="-0"),M=`${D+B}.${j}.${H}${U}`):z?M=`>=${B}.0.0${U} <${+B+1}.0.0-0`:Z&&(M=`>=${B}.${j}.0${U} <${B}.${+j+1}.0-0`),o("xRange return",M),M})},k=(I,b)=>(o("replaceStars",I,b),I.trim().replace(l[c.STAR],"")),P=(I,b)=>(o("replaceGTE0",I,b),I.trim().replace(l[b.includePrerelease?c.GTE0PRE:c.GTE0],"")),N=I=>(b,T,M,D,B,j,H,U,$,z,Z,K)=>(y(M)?T="":y(D)?T=`>=${M}.0.0${I?"-0":""}`:y(B)?T=`>=${M}.${D}.0${I?"-0":""}`:j?T=`>=${T}`:T=`>=${T}${I?"-0":""}`,y($)?U="":y(z)?U=`<${+$+1}.0.0-0`:y(Z)?U=`<${$}.${+z+1}.0-0`:K?U=`<=${$}.${z}.${Z}-${K}`:I?U=`<${$}.${z}.${+Z+1}-0`:U=`<=${U}`,`${T} ${U}`.trim()),L=(I,b,T)=>{for(let M=0;M<I.length;M++)if(!I[M].test(b))return!1;if(b.prerelease.length&&!T.includePrerelease){for(let M=0;M<I.length;M++)if(o(I[M].semver),I[M].semver!==a.ANY&&I[M].semver.prerelease.length>0){const D=I[M].semver;if(D.major===b.major&&D.minor===b.minor&&D.patch===b.patch)return!0}return!1}return!0};return KPe}var WPe,yxt;function OSe(){if(yxt)return WPe;yxt=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(d,h){if(h=n(h),d instanceof e){if(d.loose===!!h.loose)return d;d=d.value}d=d.trim().split(/\s+/).join(" "),s("comparator",d,h),this.options=h,this.loose=!!h.loose,this.parse(d),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(d){const h=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],f=d.match(h);if(!f)throw new TypeError(`Invalid comparator: ${d}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new l(f[2],this.options.loose):this.semver=t}toString(){return this.value}test(d){if(s("Comparator.test",d,this.options.loose),this.semver===t||d===t)return!0;if(typeof d=="string")try{d=new l(d,this.options)}catch{return!1}return o(d,this.operator,this.semver,this.options)}intersects(d,h){if(!(d instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(d.value,h).test(this.value):d.operator===""?d.value===""?!0:new c(this.value,h).test(d.semver):(h=n(h),h.includePrerelease&&(this.value==="<0.0.0-0"||d.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||d.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&d.operator.startsWith(">")||this.operator.startsWith("<")&&d.operator.startsWith("<")||this.semver.version===d.semver.version&&this.operator.includes("=")&&d.operator.includes("=")||o(this.semver,"<",d.semver,h)&&this.operator.startsWith(">")&&d.operator.startsWith("<")||o(this.semver,">",d.semver,h)&&this.operator.startsWith("<")&&d.operator.startsWith(">")))}}WPe=e;const n=vtt,{safeRe:r,t:a}=Gae,o=Ern,s=ISe,l=tA,c=Kw();return WPe}const Jri=Kw(),Zri=(t,e,n)=>{try{e=new Jri(e,n)}catch{return!1}return e.test(t)};var LSe=Zri;const Xri=Kw(),eii=(t,e)=>new Xri(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var tii=eii;const nii=tA,rii=Kw(),iii=(t,e,n)=>{let r=null,a=null,o=null;try{o=new rii(e,n)}catch{return null}return t.forEach(s=>{o.test(s)&&(!r||a.compare(s)===-1)&&(r=s,a=new nii(r,n))}),r};var aii=iii;const oii=tA,sii=Kw(),lii=(t,e,n)=>{let r=null,a=null,o=null;try{o=new sii(e,n)}catch{return null}return t.forEach(s=>{o.test(s)&&(!r||a.compare(s)===1)&&(r=s,a=new oii(r,n))}),r};var cii=lii;const QPe=tA,uii=Kw(),bxt=PSe,dii=(t,e)=>{t=new uii(t,e);let n=new QPe("0.0.0");if(t.test(n)||(n=new QPe("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let o=null;a.forEach(s=>{const l=new QPe(s.semver.version);switch(s.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!o||bxt(l,o))&&(o=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!n||bxt(n,o))&&(n=o)}return n&&t.test(n)?n:null};var hii=dii;const fii=Kw(),pii=(t,e)=>{try{return new fii(t,e).range||"*"}catch{return null}};var mii=pii;const gii=tA,Srn=OSe(),{ANY:vii}=Srn,Aii=Kw(),yii=LSe,xxt=PSe,Ext=ytt,bii=xtt,xii=btt,Eii=(t,e,n,r)=>{t=new gii(t,r),e=new Aii(e,r);let a,o,s,l,c;switch(n){case">":a=xxt,o=bii,s=Ext,l=">",c=">=";break;case"<":a=Ext,o=xii,s=xxt,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yii(t,e,r))return!1;for(let u=0;u<e.set.length;++u){const d=e.set[u];let h=null,f=null;if(d.forEach(p=>{p.semver===vii&&(p=new Srn(">=0.0.0")),h=h||p,f=f||p,a(p.semver,h.semver,r)?h=p:s(p.semver,f.semver,r)&&(f=p)}),h.operator===l||h.operator===c||(!f.operator||f.operator===l)&&o(t,f.semver))return!1;if(f.operator===c&&s(t,f.semver))return!1}return!0};var Ett=Eii;const Sii=Ett,wii=(t,e,n)=>Sii(t,e,">",n);var _ii=wii;const Tii=Ett,Cii=(t,e,n)=>Tii(t,e,"<",n);var kii=Cii;const Sxt=Kw(),Rii=(t,e,n)=>(t=new Sxt(t,n),e=new Sxt(e,n),t.intersects(e,n));var Mii=Rii;const Nii=LSe,Iii=Vw;var Pii=(t,e,n)=>{const r=[];let a=null,o=null;const s=t.sort((d,h)=>Iii(d,h,n));for(const d of s)Nii(d,e,n)?(o=d,a||(a=d)):(o&&r.push([a,o]),o=null,a=null);a&&r.push([a,null]);const l=[];for(const[d,h]of r)d===h?l.push(d):!h&&d===s[0]?l.push("*"):h?d===s[0]?l.push(`<=${h}`):l.push(`${d} - ${h}`):l.push(`>=${d}`);const c=l.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e};const wxt=Kw(),Stt=OSe(),{ANY:qPe}=Stt,UQ=LSe,wtt=Vw,Oii=(t,e,n={})=>{if(t===e)return!0;t=new wxt(t,n),e=new wxt(e,n);let r=!1;e:for(const a of t.set){for(const o of e.set){const s=Bii(a,o,n);if(r=r||s!==null,s)continue e}if(r)return!1}return!0},Lii=[new Stt(">=0.0.0-0")],_xt=[new Stt(">=0.0.0")],Bii=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===qPe){if(e.length===1&&e[0].semver===qPe)return!0;n.includePrerelease?t=Lii:t=_xt}if(e.length===1&&e[0].semver===qPe){if(n.includePrerelease)return!0;e=_xt}const r=new Set;let a,o;for(const p of t)p.operator===">"||p.operator===">="?a=Txt(a,p,n):p.operator==="<"||p.operator==="<="?o=Cxt(o,p,n):r.add(p.semver);if(r.size>1)return null;let s;if(a&&o){if(s=wtt(a.semver,o.semver,n),s>0)return null;if(s===0&&(a.operator!==">="||o.operator!=="<="))return null}for(const p of r){if(a&&!UQ(p,String(a),n)||o&&!UQ(p,String(o),n))return null;for(const m of e)if(!UQ(p,String(m),n))return!1;return!0}let l,c,u,d,h=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;h&&h.prerelease.length===1&&o.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(const p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",a){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator===">"||p.operator===">="){if(l=Txt(a,p,n),l===p&&l!==a)return!1}else if(a.operator===">="&&!UQ(a.semver,String(p),n))return!1}if(o){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator==="<"||p.operator==="<="){if(c=Cxt(o,p,n),c===p&&c!==o)return!1}else if(o.operator==="<="&&!UQ(o.semver,String(p),n))return!1}if(!p.operator&&(o||a)&&s!==0)return!1}return!(a&&u&&!o&&s!==0||o&&d&&!a&&s!==0||f||h)},Txt=(t,e,n)=>{if(!t)return e;const r=wtt(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},Cxt=(t,e,n)=>{if(!t)return e;const r=wtt(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};var Dii=Oii;const YPe=Gae,kxt=NSe,$ii=tA,Rxt=yrn,Fii=$G,jii=Kni,Hii=qni,Uii=Jni,zii=Xni,Gii=nri,Vii=ari,Kii=lri,Wii=dri,Qii=Vw,qii=mri,Yii=Ari,Jii=Att,Zii=Eri,Xii=_ri,eai=PSe,tai=ytt,nai=brn,rai=xrn,iai=btt,aai=xtt,oai=Ern,sai=Qri,lai=OSe(),cai=Kw(),uai=LSe,dai=tii,hai=aii,fai=cii,pai=hii,mai=mii,gai=Ett,vai=_ii,Aai=kii,yai=Mii,bai=Pii,xai=Dii;var Eai={parse:Fii,valid:jii,clean:Hii,inc:Uii,diff:zii,major:Gii,minor:Vii,patch:Kii,prerelease:Wii,compare:Qii,rcompare:qii,compareLoose:Yii,compareBuild:Jii,sort:Zii,rsort:Xii,gt:eai,lt:tai,eq:nai,neq:rai,gte:iai,lte:aai,cmp:oai,coerce:sai,Comparator:lai,Range:cai,satisfies:uai,toComparators:dai,maxSatisfying:hai,minSatisfying:fai,minVersion:pai,validRange:mai,outside:gai,gtr:vai,ltr:Aai,intersects:yai,simplifyRange:bai,subset:xai,SemVer:$ii,re:YPe.re,src:YPe.src,tokens:YPe.t,SEMVER_SPEC_VERSION:kxt.SEMVER_SPEC_VERSION,RELEASE_TYPES:kxt.RELEASE_TYPES,compareIdentifiers:Rxt.compareIdentifiers,rcompareIdentifiers:Rxt.rcompareIdentifiers};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;const e=Eai,n=e9,r=eg;t.VersionStruct=(0,n.refine)((0,n.string)(),"Version",h=>(0,e.valid)(h)===null?`Expected SemVer version, got "${h}"`:!0),t.VersionRangeStruct=(0,n.refine)((0,n.string)(),"Version range",h=>(0,e.validRange)(h)===null?`Expected SemVer range, got "${h}"`:!0);function a(h){return(0,n.is)(h,t.VersionStruct)}t.isValidSemVerVersion=a;function o(h){return(0,n.is)(h,t.VersionRangeStruct)}t.isValidSemVerRange=o;function s(h){(0,r.assertStruct)(h,t.VersionStruct)}t.assertIsSemVerVersion=s;function l(h){(0,r.assertStruct)(h,t.VersionRangeStruct)}t.assertIsSemVerRange=l;function c(h,f){return(0,e.gt)(h,f)}t.gtVersion=c;function u(h,f){return(0,e.gtr)(h,f)}t.gtRange=u;function d(h,f){return(0,e.satisfies)(h,f,{includePrerelease:!0})}t.satisfiesVersionRange=d})(grn);(function(t){var e=en&&en.__createBinding||(Object.create?function(r,a,o,s){s===void 0&&(s=o);var l=Object.getOwnPropertyDescriptor(a,o);(!l||("get"in l?!a.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(r,s,l)}:function(r,a,o,s){s===void 0&&(s=o),r[s]=a[o]}),n=en&&en.__exportStar||function(r,a){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,r,o)};Object.defineProperty(t,"__esModule",{value:!0}),n(eg,t),n(Uae,t),n(Tl,t),n(RSe,t),n(e2,t),n(IU,t),n(zae,t),n(frn,t),n(PU,t),n(gtt,t),n(t2,t),n(prn,t),n(mrn,t),n(grn,t)})(Qnn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;const e=Qnn;Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return e.createModuleLogger}}),t.projectLogger=(0,e.createProjectLogger)("eth-block-tracker")})(Wnn);var wrn=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(CSe,"__esModule",{value:!0});CSe.PollingBlockTracker=void 0;const Sai=wrn(stt),wai=wrn(Zei),_ai=Fae,Mxt=Wnn,Nxt=(0,Mxt.createModuleLogger)(Mxt.projectLogger,"polling-block-tracker"),Tai=(0,Sai.default)(),Cai=1e3;class kai extends _ai.BaseBlockTracker{constructor(e={}){var n;if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");super({blockResetDuration:(n=e.blockResetDuration)!==null&&n!==void 0?n:e.pollingInterval}),this._provider=e.provider,this._pollingInterval=e.pollingInterval||20*Cai,this._retryTimeout=e.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=e.keepEventLoopActive===void 0?!0:e.keepEventLoopActive,this._setSkipCacheFlag=e.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var e;this._isRunning;)try{await this._updateLatestBlock();const n=Ixt(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await n}catch(n){const r=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:
${(e=n.stack)!==null&&e!==void 0?e:n}`);try{this.emit("error",r)}catch{console.error(r)}const a=Ixt(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await a}}async _updateLatestBlock(){const e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){const e={jsonrpc:"2.0",id:Tai(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),Nxt("Making request",e);const n=await(0,wai.default)(r=>this._provider.sendAsync(e,r))();if(Nxt("Got response",n),n.error)throw new Error(`PollingBlockTracker - encountered error fetching block:
${n.error.message}`);return n.result}}CSe.PollingBlockTracker=kai;function Ixt(t,e){return new Promise(n=>{const r=setTimeout(n,t);r.unref&&e&&r.unref()})}var BSe={},Rai=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(BSe,"__esModule",{value:!0});BSe.SubscribeBlockTracker=void 0;const Mai=Rai(stt),Nai=Fae,Iai=(0,Mai.default)();class Pai extends Nai.BaseBlockTracker{constructor(e={}){if(!e.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(e),this._provider=e.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{const e=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(e)}catch(e){this.emit("error",e)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(e){this.emit("error",e)}}_call(e,...n){return new Promise((r,a)=>{this._provider.sendAsync({id:Iai(),method:e,params:n,jsonrpc:"2.0"},(o,s)=>{o?a(o):r(s.result)})})}_handleSubData(e,n){var r;n.method==="eth_subscription"&&((r=n.params)===null||r===void 0?void 0:r.subscription)===this._subscriptionId&&this._newPotentialLatest(n.params.result.number)}}BSe.SubscribeBlockTracker=Pai;var _rn={};Object.defineProperty(_rn,"__esModule",{value:!0});(function(t){var e=en&&en.__createBinding||(Object.create?function(r,a,o,s){s===void 0&&(s=o),Object.defineProperty(r,s,{enumerable:!0,get:function(){return a[o]}})}:function(r,a,o,s){s===void 0&&(s=o),r[s]=a[o]}),n=en&&en.__exportStar||function(r,a){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,r,o)};Object.defineProperty(t,"__esModule",{value:!0}),n(CSe,t),n(BSe,t),n(_rn,t)})(Knn);var _tt={},DSe={},Vae={};Object.defineProperty(Vae,"__esModule",{value:!0});Vae.getUniqueId=void 0;const Trn=4294967295;let JPe=Math.floor(Math.random()*Trn);function Oai(){return JPe=(JPe+1)%Trn,JPe}Vae.getUniqueId=Oai;Object.defineProperty(DSe,"__esModule",{value:!0});DSe.createIdRemapMiddleware=void 0;const Lai=Vae;function Bai(){return(t,e,n,r)=>{const a=t.id,o=Lai.getUniqueId();t.id=o,e.id=o,n(s=>{t.id=a,e.id=a,s()})}}DSe.createIdRemapMiddleware=Bai;var $Se={};Object.defineProperty($Se,"__esModule",{value:!0});$Se.createAsyncMiddleware=void 0;function Dai(t){return async(e,n,r,a)=>{let o;const s=new Promise(d=>{o=d});let l=null,c=!1;const u=async()=>{c=!0,r(d=>{l=d,o()}),await s};try{await t(e,n,u),c?(await s,l(null)):a(null)}catch(d){l?l(d):a(d)}}}$Se.createAsyncMiddleware=Dai;var FSe={};Object.defineProperty(FSe,"__esModule",{value:!0});FSe.createScaffoldMiddleware=void 0;function $ai(t){return(e,n,r,a)=>{const o=t[e.method];return o===void 0?r():typeof o=="function"?o(e,n,r,a):(n.result=o,a())}}FSe.createScaffoldMiddleware=$ai;var Kae={},Crn={},uP={};Object.defineProperty(uP,"__esModule",{value:!0});uP.EthereumProviderError=uP.EthereumRpcError=void 0;const Fai=Itn;class krn extends Error{constructor(e,n,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string.');super(n),this.code=e,r!==void 0&&(this.data=r)}serialize(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return Fai.default(this.serialize(),Uai,2)}}uP.EthereumRpcError=krn;class jai extends krn{constructor(e,n,r){if(!Hai(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,n,r)}}uP.EthereumProviderError=jai;function Hai(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}function Uai(t,e){if(e!=="[Circular]")return e}var Ttt={},dP={};Object.defineProperty(dP,"__esModule",{value:!0});dP.errorValues=dP.errorCodes=void 0;dP.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};dP.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const e=dP,n=uP,r=e.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",o={code:r,message:s(r)};t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function s(f,p=a){if(Number.isInteger(f)){const m=f.toString();if(h(e.errorValues,m))return e.errorValues[m].message;if(u(f))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return p}t.getMessageFromCode=s;function l(f){if(!Number.isInteger(f))return!1;const p=f.toString();return!!(e.errorValues[p]||u(f))}t.isValidCode=l;function c(f,{fallbackError:p=o,shouldIncludeStack:m=!1}={}){var g,v;if(!p||!Number.isInteger(p.code)||typeof p.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(f instanceof n.EthereumRpcError)return f.serialize();const A={};if(f&&typeof f=="object"&&!Array.isArray(f)&&h(f,"code")&&l(f.code)){const S=f;A.code=S.code,S.message&&typeof S.message=="string"?(A.message=S.message,h(S,"data")&&(A.data=S.data)):(A.message=s(A.code),A.data={originalError:d(f)})}else{A.code=p.code;const S=(g=f)===null||g===void 0?void 0:g.message;A.message=S&&typeof S=="string"?S:p.message,A.data={originalError:d(f)}}const y=(v=f)===null||v===void 0?void 0:v.stack;return m&&f&&y&&typeof y=="string"&&(A.stack=y),A}t.serializeError=c;function u(f){return f>=-32099&&f<=-32e3}function d(f){return f&&typeof f=="object"&&!Array.isArray(f)?Object.assign({},f):f}function h(f,p){return Object.prototype.hasOwnProperty.call(f,p)}})(Ttt);var jSe={};Object.defineProperty(jSe,"__esModule",{value:!0});jSe.ethErrors=void 0;const Ctt=uP,Rrn=Ttt,$g=dP;jSe.ethErrors={rpc:{parse:t=>Nb($g.errorCodes.rpc.parse,t),invalidRequest:t=>Nb($g.errorCodes.rpc.invalidRequest,t),invalidParams:t=>Nb($g.errorCodes.rpc.invalidParams,t),methodNotFound:t=>Nb($g.errorCodes.rpc.methodNotFound,t),internal:t=>Nb($g.errorCodes.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Nb(e,t)},invalidInput:t=>Nb($g.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>Nb($g.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>Nb($g.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>Nb($g.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>Nb($g.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>Nb($g.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>zQ($g.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>zQ($g.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>zQ($g.errorCodes.provider.unsupportedMethod,t),disconnected:t=>zQ($g.errorCodes.provider.disconnected,t),chainDisconnected:t=>zQ($g.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:r}=t;if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string');return new Ctt.EthereumProviderError(e,n,r)}}};function Nb(t,e){const[n,r]=Mrn(e);return new Ctt.EthereumRpcError(t,n||Rrn.getMessageFromCode(t),r)}function zQ(t,e){const[n,r]=Mrn(e);return new Ctt.EthereumProviderError(t,n||Rrn.getMessageFromCode(t),r)}function Mrn(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const e=uP;Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return e.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return e.EthereumProviderError}});const n=Ttt;Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return n.getMessageFromCode}});const r=jSe;Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return r.ethErrors}});const a=dP;Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(Crn);var zai=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kae,"__esModule",{value:!0});Kae.JsonRpcEngine=void 0;const Gai=zai(q8),Ib=Crn;class pR extends Gai.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,n){if(n&&typeof n!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?n?this._handleBatch(e,n):this._handleBatch(e):n?this._handle(e,n):this._promiseHandle(e)}asMiddleware(){return async(e,n,r,a)=>{try{const[o,s,l]=await pR._runAllMiddleware(e,n,this._middleware);return s?(await pR._runReturnHandlers(l),a(o)):r(async c=>{try{await pR._runReturnHandlers(l)}catch(u){return c(u)}return c()})}catch(o){return a(o)}}}async _handleBatch(e,n){try{const r=await Promise.all(e.map(this._promiseHandle.bind(this)));return n?n(null,r):r}catch(r){if(n)return n(r);throw r}}_promiseHandle(e){return new Promise(n=>{this._handle(e,(r,a)=>{n(a)})})}async _handle(e,n){if(!e||Array.isArray(e)||typeof e!="object"){const s=new Ib.EthereumRpcError(Ib.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return n(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){const s=new Ib.EthereumRpcError(Ib.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return n(s,{id:e.id,jsonrpc:"2.0",error:s})}const r=Object.assign({},e),a={id:r.id,jsonrpc:r.jsonrpc};let o=null;try{await this._processRequest(r,a)}catch(s){o=s}return o&&(delete a.result,a.error||(a.error=Ib.serializeError(o))),n(o,a)}async _processRequest(e,n){const[r,a,o]=await pR._runAllMiddleware(e,n,this._middleware);if(pR._checkForCompletion(e,n,a),await pR._runReturnHandlers(o),r)throw r}static async _runAllMiddleware(e,n,r){const a=[];let o=null,s=!1;for(const l of r)if([o,s]=await pR._runMiddleware(e,n,l,a),s)break;return[o,s,a.reverse()]}static _runMiddleware(e,n,r,a){return new Promise(o=>{const s=c=>{const u=c||n.error;u&&(n.error=Ib.serializeError(u)),o([u,!0])},l=c=>{n.error?s(n.error):(c&&(typeof c!="function"&&s(new Ib.EthereumRpcError(Ib.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof c}" for request:
${ZPe(e)}`,{request:e})),a.push(c)),o([null,!1]))};try{r(e,n,l,s)}catch(c){s(c)}})}static async _runReturnHandlers(e){for(const n of e)await new Promise((r,a)=>{n(o=>o?a(o):r())})}static _checkForCompletion(e,n,r){if(!("result"in n)&&!("error"in n))throw new Ib.EthereumRpcError(Ib.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:
${ZPe(e)}`,{request:e});if(!r)throw new Ib.EthereumRpcError(Ib.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:
${ZPe(e)}`,{request:e})}}Kae.JsonRpcEngine=pR;function ZPe(t){return JSON.stringify(t,null,2)}var HSe={};Object.defineProperty(HSe,"__esModule",{value:!0});HSe.mergeMiddleware=void 0;const Vai=Kae;function Kai(t){const e=new Vai.JsonRpcEngine;return t.forEach(n=>e.push(n)),e.asMiddleware()}HSe.mergeMiddleware=Kai;(function(t){var e=en&&en.__createBinding||(Object.create?function(r,a,o,s){s===void 0&&(s=o),Object.defineProperty(r,s,{enumerable:!0,get:function(){return a[o]}})}:function(r,a,o,s){s===void 0&&(s=o),r[s]=a[o]}),n=en&&en.__exportStar||function(r,a){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,r,o)};Object.defineProperty(t,"__esModule",{value:!0}),n(DSe,t),n($Se,t),n(FSe,t),n(Vae,t),n(Kae,t),n(HSe,t)})(_tt);var Nrn={},ktt={},BUe=function(t,e){return BUe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},BUe(t,e)};function nA(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");BUe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var cr=function(){return cr=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cr.apply(this,arguments)};function Rtt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function Irn(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function Prn(t,e){return function(n,r){e(n,r,t)}}function Wai(t,e,n,r,a,o){function s(A){if(A!==void 0&&typeof A!="function")throw new TypeError("Function expected");return A}for(var l=r.kind,c=l==="getter"?"get":l==="setter"?"set":"value",u=!e&&t?r.static?t:t.prototype:null,d=e||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),h,f=!1,p=n.length-1;p>=0;p--){var m={};for(var g in r)m[g]=g==="access"?{}:r[g];for(var g in r.access)m.access[g]=r.access[g];m.addInitializer=function(A){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(A||null))};var v=(0,n[p])(l==="accessor"?{get:d.get,set:d.set}:d[c],m);if(l==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(h=s(v.get))&&(d.get=h),(h=s(v.set))&&(d.set=h),(h=s(v.init))&&a.unshift(h)}else(h=s(v))&&(l==="field"?a.unshift(h):d[c]=h)}u&&Object.defineProperty(u,r.name,d),f=!0}function Qai(t,e,n){for(var r=arguments.length>2,a=0;a<e.length;a++)n=r?e[a].call(t,n):e[a].call(t);return r?n:void 0}function qai(t){return typeof t=="symbol"?t:"".concat(t)}function Yai(t,e,n){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function Orn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Lrn(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function Brn(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var USe=Object.create?function(t,e,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function Drn(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&USe(e,t,n)}function lAe(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function xa(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function $rn(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(xa(arguments[e]));return t}function Mtt(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,a++)r[a]=o[s];return r}function xc(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,o;r<a;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function uo(t){return this instanceof uo?(this.v=t,this):new uo(t)}function sv(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,o=[];return a={},l("next"),l("throw"),l("return",s),a[Symbol.asyncIterator]=function(){return this},a;function s(p){return function(m){return Promise.resolve(m).then(p,h)}}function l(p,m){r[p]&&(a[p]=function(g){return new Promise(function(v,A){o.push([p,g,v,A])>1||c(p,g)})},m&&(a[p]=m(a[p])))}function c(p,m){try{u(r[p](m))}catch(g){f(o[0][3],g)}}function u(p){p.value instanceof uo?Promise.resolve(p.value.v).then(d,h):f(o[0][2],p)}function d(p){c("next",p)}function h(p){c("throw",p)}function f(p,m){p(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function hP(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,o){e[a]=t[a]?function(s){return(n=!n)?{value:uo(t[a](s)),done:!1}:o?o(s):s}:o}}function R0(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof lAe=="function"?lAe(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(l,c){s=t[o](s),a(l,c,s.done,s.value)})}}function a(o,s,l,c){Promise.resolve(c).then(function(u){o({value:u,done:l})},s)}}function Frn(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var Jai=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function jrn(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&USe(e,t,n);return Jai(e,t),e}function Hrn(t){return t&&t.__esModule?t:{default:t}}function Urn(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function zrn(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}function Grn(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function Vrn(t,e,n){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var r,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(a=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");a&&(r=function(){try{a.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var Zai=typeof SuppressedError=="function"?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function Krn(t){function e(r){t.error=t.hasError?new Zai(r,t.error,"An error was suppressed during disposal."):r,t.hasError=!0}function n(){for(;t.stack.length;){var r=t.stack.pop();try{var a=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(a).then(n,function(o){return e(o),n()})}catch(o){e(o)}}if(t.hasError)throw t.error}return n()}const Xai={__extends:nA,__assign:cr,__rest:Rtt,__decorate:Irn,__param:Prn,__metadata:Orn,__awaiter:Lrn,__generator:Brn,__createBinding:USe,__exportStar:Drn,__values:lAe,__read:xa,__spread:$rn,__spreadArrays:Mtt,__spreadArray:xc,__await:uo,__asyncGenerator:sv,__asyncDelegator:hP,__asyncValues:R0,__makeTemplateObject:Frn,__importStar:jrn,__importDefault:Hrn,__classPrivateFieldGet:Urn,__classPrivateFieldSet:zrn,__classPrivateFieldIn:Grn,__addDisposableResource:Vrn,__disposeResources:Krn},eoi=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Vrn,get __assign(){return cr},__asyncDelegator:hP,__asyncGenerator:sv,__asyncValues:R0,__await:uo,__awaiter:Lrn,__classPrivateFieldGet:Urn,__classPrivateFieldIn:Grn,__classPrivateFieldSet:zrn,__createBinding:USe,__decorate:Irn,__disposeResources:Krn,__esDecorate:Wai,__exportStar:Drn,__extends:nA,__generator:Brn,__importDefault:Hrn,__importStar:jrn,__makeTemplateObject:Frn,__metadata:Orn,__param:Prn,__propKey:qai,__read:xa,__rest:Rtt,__runInitializers:Qai,__setFunctionName:Yai,__spread:$rn,__spreadArray:xc,__spreadArrays:Mtt,__values:lAe,default:Xai},Symbol.toStringTag,{value:"Module"})),Ntt=Uu(eoi);var zSe={};Object.defineProperty(zSe,"__esModule",{value:!0});var Pxt=Ntt,toi=function(){function t(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return t.prototype.acquire=function(){var e=this,n=this.isLocked(),r=new Promise(function(a){return e._queue.push(a)});return n||this._dispatch(),r},t.prototype.runExclusive=function(e){return Pxt.__awaiter(this,void 0,void 0,function(){var n,r,a;return Pxt.__generator(this,function(o){switch(o.label){case 0:return[4,this.acquire()];case 1:n=o.sent(),r=n[0],a=n[1],o.label=2;case 2:return o.trys.push([2,,4,5]),[4,e(r)];case 3:return[2,o.sent()];case 4:return a(),[7];case 5:return[2]}})})},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},t.prototype._dispatch=function(){var e=this,n=this._queue.shift();if(n){var r=!1;this._currentReleaser=function(){r||(r=!0,e._value++,e._dispatch())},n([this._value--,this._currentReleaser])}},t}();zSe.default=toi;Object.defineProperty(ktt,"__esModule",{value:!0});var Oxt=Ntt,noi=zSe,roi=function(){function t(){this._semaphore=new noi.default(1)}return t.prototype.acquire=function(){return Oxt.__awaiter(this,void 0,void 0,function(){var e,n;return Oxt.__generator(this,function(r){switch(r.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=r.sent(),n=e[1],[2,n]}})})},t.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t}();ktt.default=roi;var GSe={};Object.defineProperty(GSe,"__esModule",{value:!0});GSe.withTimeout=void 0;var Fce=Ntt;function ioi(t,e,n){var r=this;return n===void 0&&(n=new Error("timeout")),{acquire:function(){return new Promise(function(a,o){return Fce.__awaiter(r,void 0,void 0,function(){var s,l,c;return Fce.__generator(this,function(u){switch(u.label){case 0:return s=!1,setTimeout(function(){s=!0,o(n)},e),[4,t.acquire()];case 1:return l=u.sent(),s?(c=Array.isArray(l)?l[1]:l,c()):a(l),[2]}})})})},runExclusive:function(a){return Fce.__awaiter(this,void 0,void 0,function(){var o,s;return Fce.__generator(this,function(l){switch(l.label){case 0:o=function(){},l.label=1;case 1:return l.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=l.sent(),Array.isArray(s)?(o=s[1],[4,a(s[0])]):[3,4];case 3:return[2,l.sent()];case 4:return o=s,[4,a()];case 5:return[2,l.sent()];case 6:return[3,8];case 7:return o(),[7];case 8:return[2]}})})},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}GSe.withTimeout=ioi;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=t.Semaphore=t.Mutex=void 0;var e=ktt;Object.defineProperty(t,"Mutex",{enumerable:!0,get:function(){return e.default}});var n=zSe;Object.defineProperty(t,"Semaphore",{enumerable:!0,get:function(){return n.default}});var r=GSe;Object.defineProperty(t,"withTimeout",{enumerable:!0,get:function(){return r.withTimeout}})})(Nrn);var aoi=soi,ooi=Object.prototype.hasOwnProperty;function soi(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)ooi.call(n,r)&&(t[r]=n[r])}return t}const loi=aoi,coi=stt();var uoi=ko;function ko(t){const e=this;e.currentProvider=t}ko.prototype.getBalance=Wae(2,"eth_getBalance");ko.prototype.getCode=Wae(2,"eth_getCode");ko.prototype.getTransactionCount=Wae(2,"eth_getTransactionCount");ko.prototype.getStorageAt=Wae(3,"eth_getStorageAt");ko.prototype.call=Wae(2,"eth_call");ko.prototype.protocolVersion=Os("eth_protocolVersion");ko.prototype.syncing=Os("eth_syncing");ko.prototype.coinbase=Os("eth_coinbase");ko.prototype.mining=Os("eth_mining");ko.prototype.hashrate=Os("eth_hashrate");ko.prototype.gasPrice=Os("eth_gasPrice");ko.prototype.accounts=Os("eth_accounts");ko.prototype.blockNumber=Os("eth_blockNumber");ko.prototype.getBlockTransactionCountByHash=Os("eth_getBlockTransactionCountByHash");ko.prototype.getBlockTransactionCountByNumber=Os("eth_getBlockTransactionCountByNumber");ko.prototype.getUncleCountByBlockHash=Os("eth_getUncleCountByBlockHash");ko.prototype.getUncleCountByBlockNumber=Os("eth_getUncleCountByBlockNumber");ko.prototype.sign=Os("eth_sign");ko.prototype.sendTransaction=Os("eth_sendTransaction");ko.prototype.sendRawTransaction=Os("eth_sendRawTransaction");ko.prototype.estimateGas=Os("eth_estimateGas");ko.prototype.getBlockByHash=Os("eth_getBlockByHash");ko.prototype.getBlockByNumber=Os("eth_getBlockByNumber");ko.prototype.getTransactionByHash=Os("eth_getTransactionByHash");ko.prototype.getTransactionByBlockHashAndIndex=Os("eth_getTransactionByBlockHashAndIndex");ko.prototype.getTransactionByBlockNumberAndIndex=Os("eth_getTransactionByBlockNumberAndIndex");ko.prototype.getTransactionReceipt=Os("eth_getTransactionReceipt");ko.prototype.getUncleByBlockHashAndIndex=Os("eth_getUncleByBlockHashAndIndex");ko.prototype.getUncleByBlockNumberAndIndex=Os("eth_getUncleByBlockNumberAndIndex");ko.prototype.getCompilers=Os("eth_getCompilers");ko.prototype.compileLLL=Os("eth_compileLLL");ko.prototype.compileSolidity=Os("eth_compileSolidity");ko.prototype.compileSerpent=Os("eth_compileSerpent");ko.prototype.newFilter=Os("eth_newFilter");ko.prototype.newBlockFilter=Os("eth_newBlockFilter");ko.prototype.newPendingTransactionFilter=Os("eth_newPendingTransactionFilter");ko.prototype.uninstallFilter=Os("eth_uninstallFilter");ko.prototype.getFilterChanges=Os("eth_getFilterChanges");ko.prototype.getFilterLogs=Os("eth_getFilterLogs");ko.prototype.getLogs=Os("eth_getLogs");ko.prototype.getWork=Os("eth_getWork");ko.prototype.submitWork=Os("eth_submitWork");ko.prototype.submitHashrate=Os("eth_submitHashrate");ko.prototype.sendAsync=function(t,e){this.currentProvider.sendAsync(doi(t),function(r,a){if(!r&&a.error&&(r=new Error("EthQuery - RPC Error - "+a.error.message)),r)return e(r);e(null,a.result)})};function Os(t){return function(){const e=this;var n=[].slice.call(arguments),r=n.pop();e.sendAsync({method:t,params:n},r)}}function Wae(t,e){return function(){const n=this;var r=[].slice.call(arguments),a=r.pop();r.length<t&&r.push("latest"),n.sendAsync({method:e,params:r},a)}}function doi(t){return loi({id:coi(),jsonrpc:"2.0",params:[]},t)}const Lxt=(t,e,n,r)=>function(...a){const o=e.promiseModule;return new o((s,l)=>{e.multiArgs?a.push((...u)=>{e.errorFirst?u[0]?l(u):(u.shift(),s(u)):s(u)}):e.errorFirst?a.push((u,d)=>{u?l(u):s(d)}):a.push(s),Reflect.apply(t,this===n?r:this,a)})},Bxt=new WeakMap;var hoi=(t,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};const n=typeof t;if(!(t!==null&&(n==="object"||n==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${t===null?"null":n}\``);const r=(s,l)=>{let c=Bxt.get(s);if(c||(c={},Bxt.set(s,c)),l in c)return c[l];const u=m=>typeof m=="string"||typeof l=="symbol"?l===m:m.test(l),d=Reflect.getOwnPropertyDescriptor(s,l),h=d===void 0||d.writable||d.configurable,p=(e.include?e.include.some(u):!e.exclude.some(u))&&h;return c[l]=p,p},a=new WeakMap,o=new Proxy(t,{apply(s,l,c){const u=a.get(s);if(u)return Reflect.apply(u,l,c);const d=e.excludeMain?s:Lxt(s,e,o,s);return a.set(s,d),Reflect.apply(d,l,c)},get(s,l){const c=s[l];if(!r(s,l)||c===Function.prototype[l])return c;const u=a.get(c);if(u)return u;if(typeof c=="function"){const d=Lxt(c,e,o,s);return a.set(c,d),d}return c}});return o};const foi=q8.default;let poi=class extends foi{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(n=>this.emit("update",n))}addInitialResults(e){}getChangesAndClear(){const e=this.updates;return this.updates=[],e}};var Itt=poi;const moi=Itt;let goi=class extends moi{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};var voi=goi,Qae={minBlockRef:Aoi,maxBlockRef:yoi,sortBlockRefs:Ptt,bnToHex:boi,blockRefIsNumber:xoi,hexToInt:cAe,incrementHexInt:Eoi,intToHex:Wrn,unsafeRandomBytes:Soi};function Aoi(...t){return Ptt(t)[0]}function yoi(...t){const e=Ptt(t);return e[e.length-1]}function Ptt(t){return t.sort((e,n)=>e==="latest"||n==="earliest"?1:n==="latest"||e==="earliest"?-1:cAe(e)-cAe(n))}function boi(t){return"0x"+t.toString(16)}function xoi(t){return t&&!["earliest","latest","pending"].includes(t)}function cAe(t){return t==null?t:Number.parseInt(t,16)}function Eoi(t){if(t==null)return t;const e=cAe(t);return Wrn(e+1)}function Wrn(t){if(t==null)return t;let e=t.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function Soi(t){let e="0x";for(let n=0;n<t;n++)e+=Dxt(),e+=Dxt();return e}function Dxt(){return Math.floor(Math.random()*16).toString(16)}const woi=uoi,_oi=hoi,Toi=voi,{bnToHex:Fgs,hexToInt:jce,incrementHexInt:Coi,minBlockRef:koi,blockRefIsNumber:Roi}=Qae;let Moi=class extends Toi{constructor({provider:e,params:n}){super(),this.type="log",this.ethQuery=new woi(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},n),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(r=>r.toLowerCase()))}async initialize({currentBlock:e}){let n=this.params.fromBlock;["latest","pending"].includes(n)&&(n=e),n==="earliest"&&(n="0x0"),this.params.fromBlock=n;const r=koi(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:r}),o=await this._fetchLogs(a);this.addInitialResults(o)}async update({oldBlock:e,newBlock:n}){const r=n;let a;e?a=Coi(e):a=n;const o=Object.assign({},this.params,{fromBlock:a,toBlock:r}),l=(await this._fetchLogs(o)).filter(c=>this.matchLog(c));this.addResults(l)}async _fetchLogs(e){return await _oi(r=>this.ethQuery.getLogs(e,r))()}matchLog(e){if(jce(this.params.fromBlock)>=jce(e.blockNumber)||Roi(this.params.toBlock)&&jce(this.params.toBlock)<=jce(e.blockNumber))return!1;const n=e.address&&e.address.toLowerCase();return this.params.address&&n&&!this.params.address.includes(n)?!1:this.params.topics.every((a,o)=>{let s=e.topics[o];if(!s)return!1;s=s.toLowerCase();let l=Array.isArray(a)?a:[a];return l.includes(null)?!0:(l=l.map(d=>d.toLowerCase()),l.includes(s))})}};var Noi=Moi,Ott=Ioi;async function Ioi({provider:t,fromBlock:e,toBlock:n}){e||(e=n);const r=$xt(e),o=$xt(n)-r+1,s=Array(o).fill().map((c,u)=>r+u).map(Poi);return await Promise.all(s.map(c=>Loi(t,"eth_getBlockByNumber",[c,!1])))}function $xt(t){return t==null?t:Number.parseInt(t,16)}function Poi(t){return t==null?t:"0x"+t.toString(16)}function Ooi(t,e){return new Promise((n,r)=>{t.sendAsync(e,(a,o)=>{a?r(a):o.error?r(o.error):o.result?n(o.result):r(new Error("Result was empty"))})})}async function Loi(t,e,n){for(let r=0;r<3;r++)try{return await Ooi(t,{id:1,jsonrpc:"2.0",method:e,params:n})}catch(a){console.error(`provider.sendAsync failed: ${a.stack||a.message||a}`)}throw new Error(`Block not found for params: ${JSON.stringify(n)}`)}const Boi=Itt,Doi=Ott,{incrementHexInt:$oi}=Qae;let Foi=class extends Boi{constructor({provider:e,params:n}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:n}){const r=n,a=$oi(e),s=(await Doi({provider:this.provider,fromBlock:a,toBlock:r})).map(l=>l.hash);this.addResults(s)}};var joi=Foi;const Hoi=Itt,Uoi=Ott,{incrementHexInt:zoi}=Qae;let Goi=class extends Hoi{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){const n=e,r=zoi(e),a=await Uoi({provider:this.provider,fromBlock:r,toBlock:n}),o=[];for(const s of a)o.push(...s.transactions);this.addResults(o)}};var Voi=Goi;const Koi=Nrn.Mutex,{createAsyncMiddleware:Woi,createScaffoldMiddleware:Qoi}=_tt,qoi=Noi,Yoi=joi,Joi=Voi,{intToHex:Qrn,hexToInt:XPe}=Qae;var Zoi=Xoi;function Xoi({blockTracker:t,provider:e}){let n=0,r={};const a=new Koi,o=esi({mutex:a}),s=Qoi({eth_newFilter:o(eOe(c)),eth_newBlockFilter:o(eOe(u)),eth_newPendingTransactionFilter:o(eOe(d)),eth_uninstallFilter:o(_me(p)),eth_getFilterChanges:o(_me(h)),eth_getFilterLogs:o(_me(f))}),l=async({oldBlock:y,newBlock:S})=>{if(r.length===0)return;const x=await a.acquire();try{await Promise.all(v$(r).map(async w=>{try{await w.update({oldBlock:y,newBlock:S})}catch(_){console.error(_)}}))}catch(w){console.error(w)}x()};return s.newLogFilter=c,s.newBlockFilter=u,s.newPendingTransactionFilter=d,s.uninstallFilter=p,s.getFilterChanges=h,s.getFilterLogs=f,s.destroy=()=>{v()},s;async function c(y){const S=new qoi({provider:e,params:y});return await m(S),S}async function u(){const y=new Yoi({provider:e});return await m(y),y}async function d(){const y=new Joi({provider:e});return await m(y),y}async function h(y){const S=XPe(y),x=r[S];if(!x)throw new Error(`No filter for index "${S}"`);return x.getChangesAndClear()}async function f(y){const S=XPe(y),x=r[S];if(!x)throw new Error(`No filter for index "${S}"`);let w=[];return x.type==="log"&&(w=x.getAllResults()),w}async function p(y){const S=XPe(y),w=!!r[S];return w&&await g(S),w}async function m(y){const S=v$(r).length,x=await t.getLatestBlock();await y.initialize({currentBlock:x}),n++,r[n]=y,y.id=n,y.idHex=Qrn(n);const w=v$(r).length;return A({prevFilterCount:S,newFilterCount:w}),n}async function g(y){const S=v$(r).length;delete r[y];const x=v$(r).length;A({prevFilterCount:S,newFilterCount:x})}async function v(){const y=v$(r).length;r={},A({prevFilterCount:y,newFilterCount:0})}function A({prevFilterCount:y,newFilterCount:S}){if(y===0&&S>0){t.on("sync",l);return}if(y>0&&S===0){t.removeListener("sync",l);return}}}function eOe(t){return _me(async(...e)=>{const n=await t(...e);return Qrn(n.id)})}function _me(t){return Woi(async(e,n)=>{const r=await t.apply(null,e.params);n.result=r})}function esi({mutex:t}){return e=>async(n,r,a,o)=>{(await t.acquire())(),e(n,r,a,o)}}function v$(t,e){const n=[];for(let r in t)n.push(t[r]);return n}const tsi=q8.default,{createAsyncMiddleware:Fxt,createScaffoldMiddleware:nsi}=_tt,rsi=Zoi,{unsafeRandomBytes:isi,incrementHexInt:asi}=Qae,osi=Ott;var ssi=lsi;function lsi({blockTracker:t,provider:e}){const n={},r=rsi({blockTracker:t,provider:e});let a=!1;const o=new tsi,s=nsi({eth_subscribe:Fxt(l),eth_unsubscribe:Fxt(c)});return s.destroy=d,{events:o,middleware:s};async function l(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");const p=h.params[0],m=isi(16);let g;switch(p){case"newHeads":g=v({subId:m});break;case"logs":const y=h.params[1],S=await r.newLogFilter(y);g=A({subId:m,filter:S});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${p}"`)}n[m]=g,f.result=m;return;function v({subId:y}){const S={type:p,destroy:async()=>{t.removeListener("sync",S.update)},update:async({oldBlock:x,newBlock:w})=>{const _=w,C=asi(x);(await osi({provider:e,fromBlock:C,toBlock:_})).map(csi).filter(P=>P!==null).forEach(P=>{u(y,P)})}};return t.on("sync",S.update),S}function A({subId:y,filter:S}){return S.on("update",w=>u(y,w)),{type:p,destroy:async()=>await r.uninstallFilter(S.idHex)}}}async function c(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");const p=h.params[0],m=n[p];if(!m){f.result=!1;return}delete n[p],await m.destroy(),f.result=!0}function u(h,f){o.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:h,result:f}})}function d(){o.removeAllListeners();for(const h in n)n[h].destroy(),delete n[h];a=!0}}function csi(t){return t==null?null:{hash:t.hash,parentHash:t.parentHash,sha3Uncles:t.sha3Uncles,miner:t.miner,stateRoot:t.stateRoot,transactionsRoot:t.transactionsRoot,receiptsRoot:t.receiptsRoot,logsBloom:t.logsBloom,difficulty:t.difficulty,number:t.number,gasLimit:t.gasLimit,gasUsed:t.gasUsed,nonce:t.nonce,mixHash:t.mixHash,timestamp:t.timestamp,extraData:t.extraData}}Object.defineProperty(TSe,"__esModule",{value:!0});TSe.SubscriptionManager=void 0;const usi=Knn,dsi=ssi,jxt=()=>{};class hsi{constructor(e){const n=new usi.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:r,middleware:a}=dsi({blockTracker:n,provider:e});this.events=r,this.subscriptionMiddleware=a}async handleRequest(e){const n={};return await this.subscriptionMiddleware(e,n,jxt,jxt),n}destroy(){this.subscriptionMiddleware.destroy()}}TSe.SubscriptionManager=hsi;var Ltt=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(TU,"__esModule",{value:!0});TU.CoinbaseWalletProvider=void 0;const fsi=Ltt(q8),psi=Ltt(gSe),tOe=RG,nu=Rae,Hxt=NG,Uxt=rw,nOe=ASe,msi=Pu,bs=ya,rOe=Ltt(Wei),gsi=NU,hc=Vnn,vsi=TSe,zxt="DefaultChainId",Gxt="DefaultJsonRpcUrl";class Asi extends fsi.default{constructor(e){var n,r;super(),this._filterPolyfill=new gsi.FilterPolyfill(this),this._subscriptionManager=new vsi.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(n=e.overrideIsCoinbaseWallet)!==null&&n!==void 0?n:!0,this.isCoinbaseBrowser=(r=e.overrideIsCoinbaseBrowser)!==null&&r!==void 0?r:!1,this.qrUrl=e.qrUrl;const a=this.getChainId(),o=(0,bs.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:o});const s=this._storage.getItem(Uxt.LOCAL_STORAGE_ADDRESSES_KEY);if(s){const l=s.split(" ");l[0]!==""&&(this._addresses=l.map(c=>(0,bs.ensureAddressString)(c)),this.emit("accountsChanged",l))}this._subscriptionManager.events.on("notification",l=>{this.emit("message",{type:l.method,data:l.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",l=>{var c;if(!(l.origin!==location.origin||l.source!==window)&&l.data.type==="walletLinkMessage"){if(l.data.data.action==="dappChainSwitched"){const u=l.data.data.chainId,d=(c=l.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(d,Number(u))}l.data.data.action==="addressChanged"&&this._setAddresses([l.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,bs.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(Gxt))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(Gxt,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,n){this.isCoinbaseBrowser||(this._chainIdFromOpts=n,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,n){this.jsonRpcUrl=e;const r=this.getChainId();this._storage.setItem(zxt,n.toString(10)),((0,bs.ensureIntNumber)(n)!==r||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,n,r,a,o,s){return!!(await(await this.initializeRelay()).watchAsset(e,n,r,a,o,s==null?void 0:s.toString()).promise).result}async addEthereumChain(e,n,r,a,o,s){var l,c;if((0,bs.ensureIntNumber)(e)===this.getChainId())return!1;const u=await this.initializeRelay(),d=u.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!d&&await u.requestEthereumAccounts().promise;const h=await u.addEthereumChain(e.toString(),n,o,r,a,s).promise;return((l=h.result)===null||l===void 0?void 0:l.isApproved)===!0&&this.updateProviderInfo(n[0],e),((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0}async switchEthereumChain(e){const r=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,msi.isErrorResponse)(r)&&r.errorCode)throw r.errorCode===nu.standardErrorCodes.provider.unsupportedChain?nu.standardErrors.provider.unsupportedChain(e):nu.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode});const a=r.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,n){this.initializeRelay().then(r=>r.setAppInfo(e,n))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(tOe.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?Hxt.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(hc.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,n){try{const r=this._send(e,n);if(r instanceof Promise)return r.catch(a=>{throw(0,nu.serializeError)(a,e)})}catch(r){throw(0,nu.serializeError)(r,e)}}_send(e,n){if(typeof e=="string"){const a=e,o=Array.isArray(n)?n:n!==void 0?[n]:[],s={jsonrpc:"2.0",id:0,method:a,params:o};return this._sendRequestAsync(s).then(l=>l.result)}if(typeof n=="function"){const a=e,o=n;return this._sendAsync(a,o)}if(Array.isArray(e))return e.map(o=>this._sendRequest(o));const r=e;return this._sendRequest(r)}async sendAsync(e,n){try{return this._sendAsync(e,n).catch(r=>{throw(0,nu.serializeError)(r,e)})}catch(r){return Promise.reject((0,nu.serializeError)(r,e))}}async _sendAsync(e,n){if(typeof n!="function")throw new Error("callback is required");if(Array.isArray(e)){const a=n;this._sendMultipleRequestsAsync(e).then(o=>a(null,o)).catch(o=>a(o,null));return}const r=n;return this._sendRequestAsync(e).then(a=>r(null,a)).catch(a=>r(a,null))}async request(e){try{return this._request(e).catch(n=>{throw(0,nu.serializeError)(n,e.method)})}catch(n){return Promise.reject((0,nu.serializeError)(n,e.method))}}async _request(e){if(!e||typeof e!="object"||Array.isArray(e))throw nu.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});const{method:n,params:r}=e;if(typeof n!="string"||n.length===0)throw nu.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(r!==void 0&&!Array.isArray(r)&&(typeof r!="object"||r===null))throw nu.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});const a=r===void 0?[]:r,o=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:n,params:a,jsonrpc:"2.0",id:o})).result}async scanQRCode(e){var n;const a=await(await this.initializeRelay()).scanQRCode((0,bs.ensureRegExpString)(e)).promise;if(typeof a.result!="string")throw(0,nu.serializeError)((n=a.errorMessage)!==null&&n!==void 0?n:"result was not a string",nOe.Web3Method.scanQRCode);return a.result}async genericRequest(e,n){var r;const o=await(await this.initializeRelay()).genericRequest(e,n).promise;if(typeof o.result!="string")throw(0,nu.serializeError)((r=o.errorMessage)!==null&&r!==void 0?r:"result was not a string",nOe.Web3Method.generic);return o.result}async selectProvider(e){var n;const a=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof a.result!="string")throw(0,nu.serializeError)((n=a.errorMessage)!==null&&n!==void 0?n:"result was not a string",nOe.Web3Method.selectProvider);return a.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){const n={jsonrpc:"2.0",id:e.id},{method:r}=e;if(n.result=this._handleSynchronousMethods(e),n.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return n}_setAddresses(e,n){if(!Array.isArray(e))throw new Error("addresses is not an array");const r=e.map(a=>(0,bs.ensureAddressString)(a));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,this.emit("accountsChanged",this._addresses),this._storage.setItem(Uxt.LOCAL_STORAGE_ADDRESSES_KEY,r.join(" ")))}_sendRequestAsync(e){return new Promise((n,r)=>{try{const a=this._handleSynchronousMethods(e);if(a!==void 0)return n({jsonrpc:"2.0",id:e.id,result:a});const o=this._handleAsynchronousFilterMethods(e);if(o!==void 0){o.then(l=>n(Object.assign(Object.assign({},l),{id:e.id}))).catch(l=>r(l));return}const s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(l=>n({jsonrpc:"2.0",id:e.id,result:l.result})).catch(l=>r(l));return}}catch(a){return r(a)}this._handleAsynchronousMethods(e).then(a=>a&&n(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>r(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(n=>this._sendRequestAsync(n)))}_handleSynchronousMethods(e){const{method:n}=e,r=e.params||[];switch(n){case hc.JSONRPCMethod.eth_accounts:return this._eth_accounts();case hc.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case hc.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(r);case hc.JSONRPCMethod.net_version:return this._net_version();case hc.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){const{method:n}=e,r=e.params||[];switch(n){case hc.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case hc.JSONRPCMethod.eth_sign:return this._eth_sign(r);case hc.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(r);case hc.JSONRPCMethod.personal_sign:return this._personal_sign(r);case hc.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(r);case hc.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(r);case hc.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(r);case hc.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(r);case hc.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(r);case hc.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case hc.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(r);case hc.JSONRPCMethod.eth_signTypedData_v4:case hc.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(r);case hc.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(r);case hc.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(r);case hc.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(r);case hc.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(r)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){const{method:n}=e,r=e.params||[];switch(n){case hc.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(r);case hc.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case hc.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case hc.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(r);case hc.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(e){switch(e.method){case hc.JSONRPCMethod.eth_subscribe:case hc.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{const n=(0,bs.ensureAddressString)(e);return this._addresses.map(a=>(0,bs.ensureAddressString)(a)).includes(n)}catch{}return!1}_ensureKnownAddress(e){var n;if(!this._isKnownAddress(e))throw(n=this.diagnostic)===null||n===void 0||n.log(tOe.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){const n=e.from?(0,bs.ensureAddressString)(e.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(n);const r=e.to?(0,bs.ensureAddressString)(e.to):null,a=e.value!=null?(0,bs.ensureBN)(e.value):new psi.default(0),o=e.data?(0,bs.ensureBuffer)(e.data):gn.alloc(0),s=e.nonce!=null?(0,bs.ensureIntNumber)(e.nonce):null,l=e.gasPrice!=null?(0,bs.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,bs.ensureBN)(e.maxFeePerGas):null,u=e.maxPriorityFeePerGas!=null?(0,bs.ensureBN)(e.maxPriorityFeePerGas):null,d=e.gas!=null?(0,bs.ensureBN)(e.gas):null,h=this.getChainId();return{fromAddress:n,toAddress:r,weiValue:a,data:o,nonce:s,gasPriceInWei:l,maxFeePerGas:c,maxPriorityFeePerGas:u,gasLimit:d,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw nu.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw nu.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,n,r,a){this._ensureKnownAddress(n);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,n,r,a).promise).result}}catch(o){throw typeof o.message=="string"&&o.message.match(/(denied|rejected)/i)?nu.standardErrors.provider.userRejectedRequest("User denied message signature"):o}}async _ethereumAddressFromSignedMessage(e,n,r){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,n,r).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,bs.hexStringFromIntNumber)(this.getChainId())}getChainId(){const e=this._storage.getItem(zxt);if(!e)return(0,bs.ensureIntNumber)(this._chainIdFromOpts);const n=parseInt(e,10);return(0,bs.ensureIntNumber)(n)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(tOe.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?Hxt.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let n;try{n=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(r){throw typeof r.message=="string"&&r.message.match(/(denied|rejected)/i)?nu.standardErrors.provider.userRejectedRequest("User denied account authorization"):r}if(!n.result)throw new Error("accounts received is empty");return this._setAddresses(n.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();const n=(0,bs.ensureAddressString)(e[0]),r=(0,bs.ensureBuffer)(e[1]);return this._signEthereumMessage(r,n,!1)}_eth_ecRecover(e){const n=(0,bs.ensureBuffer)(e[0]),r=(0,bs.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(n,r,!1)}_personal_sign(e){this._requireAuthorization();const n=(0,bs.ensureBuffer)(e[0]),r=(0,bs.ensureAddressString)(e[1]);return this._signEthereumMessage(n,r,!0)}_personal_ecRecover(e){const n=(0,bs.ensureBuffer)(e[0]),r=(0,bs.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(n,r,!0)}async _eth_signTransaction(e){this._requireAuthorization();const n=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(n).promise).result}}catch(r){throw typeof r.message=="string"&&r.message.match(/(denied|rejected)/i)?nu.standardErrors.provider.userRejectedRequest("User denied transaction signature"):r}}async _eth_sendRawTransaction(e){const n=(0,bs.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(n,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();const n=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(n).promise).result}}catch(r){throw typeof r.message=="string"&&r.message.match(/(denied|rejected)/i)?nu.standardErrors.provider.userRejectedRequest("User denied transaction signature"):r}}async _eth_signTypedData_v1(e){this._requireAuthorization();const n=(0,bs.ensureParsedJSONObject)(e[0]),r=(0,bs.ensureAddressString)(e[1]);this._ensureKnownAddress(r);const a=rOe.default.hashForSignTypedDataLegacy({data:n}),o=JSON.stringify(n,null,2);return this._signEthereumMessage(a,r,!1,o)}async _eth_signTypedData_v3(e){this._requireAuthorization();const n=(0,bs.ensureAddressString)(e[0]),r=(0,bs.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(n);const a=rOe.default.hashForSignTypedData_v3({data:r}),o=JSON.stringify(r,null,2);return this._signEthereumMessage(a,n,!1,o)}async _eth_signTypedData_v4(e){this._requireAuthorization();const n=(0,bs.ensureAddressString)(e[0]),r=(0,bs.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(n);const a=rOe.default.hashForSignTypedData_v4({data:r}),o=JSON.stringify(r,null,2);return this._signEthereumMessage(a,n,!1,o)}async _cbwallet_arbitrary(e){const n=e[0],r=e[1];if(typeof r!="string")throw new Error("parameter must be a string");if(typeof n!="object"||n===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(n,r)}}async _wallet_addEthereumChain(e){var n,r,a,o;const s=e[0];if(((n=s.rpcUrls)===null||n===void 0?void 0:n.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw nu.standardErrors.rpc.invalidParams("chainName is a required field");if(!s.nativeCurrency)throw nu.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const l=parseInt(s.chainId,16);return await this.addEthereumChain(l,(r=s.rpcUrls)!==null&&r!==void 0?r:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(o=s.iconUrls)!==null&&o!==void 0?o:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){const n=e[0];return await this.switchEthereumChain(parseInt(n.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){const n=Array.isArray(e)?e[0]:e;if(!n.type)throw nu.standardErrors.rpc.invalidParams("Type is required");if((n==null?void 0:n.type)!=="ERC20")throw nu.standardErrors.rpc.invalidParams(`Asset of type '${n.type}' is not supported`);if(!(n!=null&&n.options))throw nu.standardErrors.rpc.invalidParams("Options are required");if(!(n!=null&&n.options.address))throw nu.standardErrors.rpc.invalidParams("Address is required");const r=this.getChainId(),{address:a,symbol:o,image:s,decimals:l}=n.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(n.type,a,o,l,s,r)}}_eth_uninstallFilter(e){const n=(0,bs.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(n)}async _eth_newFilter(e){const n=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(n)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){const n=(0,bs.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(n)}_eth_getFilterLogs(e){const n=(0,bs.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(n)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((n,r)=>this._setAddresses(n,r)),e.setChainCallback((n,r)=>{this.updateProviderInfo(r,parseInt(n,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}}TU.CoinbaseWalletProvider=Asi;var VSe={},KSe={},qae,hd,qrn,Yrn,gB,Vxt,Jrn,DUe,Btt,$Ue,FUe,Zrn,wne={},Xrn=[],ysi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,WSe=Array.isArray;function HR(t,e){for(var n in e)t[n]=e[n];return t}function ein(t){var e=t.parentNode;e&&e.removeChild(t)}function jUe(t,e,n){var r,a,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"?a=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?qae.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return WX(t,s,r,a,null)}function WX(t,e,n,r,a){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:a??++qrn,__i:-1,__u:0};return a==null&&hd.vnode!=null&&hd.vnode(o),o}function bsi(){return{current:null}}function Yae(t){return t.children}function QX(t,e){this.props=t,this.context=e}function L6(t,e){if(e==null)return t.__?L6(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?L6(t):null}function tin(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return tin(t)}}function HUe(t){(!t.__d&&(t.__d=!0)&&gB.push(t)&&!uAe.__r++||Vxt!==hd.debounceRendering)&&((Vxt=hd.debounceRendering)||Jrn)(uAe)}function uAe(){var t,e,n,r,a,o,s,l;for(gB.sort(DUe);t=gB.shift();)t.__d&&(e=gB.length,r=void 0,o=(a=(n=t).__v).__e,s=[],l=[],n.__P&&((r=HR({},a)).__v=a.__v+1,hd.vnode&&hd.vnode(r),Dtt(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[o]:null,s,o??L6(a),!!(32&a.__u),l),r.__v=a.__v,r.__.__k[r.__i]=r,ain(s,r,l),r.__e!=o&&tin(r)),gB.length>e&&gB.sort(DUe));uAe.__r=0}function nin(t,e,n,r,a,o,s,l,c,u,d){var h,f,p,m,g,v=r&&r.__k||Xrn,A=e.length;for(n.__d=c,xsi(n,e,v),c=n.__d,h=0;h<A;h++)(p=n.__k[h])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?wne:v[p.__i]||wne,p.__i=h,Dtt(t,p,f,a,o,s,l,c,u,d),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&$tt(f.ref,null,p),d.push(p.ref,p.__c||m,p)),g==null&&m!=null&&(g=m),65536&p.__u||f.__k===p.__k?(c&&!c.isConnected&&(c=L6(f)),c=rin(p,c,t)):typeof p.type=="function"&&p.__d!==void 0?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=g}function xsi(t,e,n){var r,a,o,s,l,c=e.length,u=n.length,d=u,h=0;for(t.__k=[],r=0;r<c;r++)s=r+h,(a=t.__k[r]=(a=e[r])==null||typeof a=="boolean"||typeof a=="function"?null:typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?WX(null,a,null,null,null):WSe(a)?WX(Yae,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?WX(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null?(a.__=t,a.__b=t.__b+1,l=Esi(a,n,s,d),a.__i=l,o=null,l!==-1&&(d--,(o=n[l])&&(o.__u|=131072)),o==null||o.__v===null?(l==-1&&h--,typeof a.type!="function"&&(a.__u|=65536)):l!==s&&(l===s+1?h++:l>s?d>c-s?h+=l-s:h--:l<s?l==s-1&&(h=l-s):h=0,l!==r+h&&(a.__u|=65536))):(o=n[s])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=L6(o)),UUe(o,o,!1),n[s]=null,d--);if(d)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=L6(o)),UUe(o,o))}function rin(t,e,n){var r,a;if(typeof t.type=="function"){for(r=t.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=t,e=rin(r[a],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function iin(t,e){return e=e||[],t==null||typeof t=="boolean"||(WSe(t)?t.some(function(n){iin(n,e)}):e.push(t)),e}function Esi(t,e,n,r){var a=t.key,o=t.type,s=n-1,l=n+1,c=e[n];if(c===null||c&&a==c.key&&o===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||l<e.length;){if(s>=0){if((c=e[s])&&!(131072&c.__u)&&a==c.key&&o===c.type)return s;s--}if(l<e.length){if((c=e[l])&&!(131072&c.__u)&&a==c.key&&o===c.type)return l;l++}}return-1}function Kxt(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||ysi.test(e)?n:n+"px"}function Hce(t,e,n,r,a){var o;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Kxt(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Kxt(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=Btt,t.addEventListener(e,o?FUe:$Ue,o)):t.removeEventListener(e,o?FUe:$Ue,o);else{if(a=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function Wxt(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Btt++;else if(e.t<n.u)return;return n(hd.event?hd.event(e):e)}}}function Dtt(t,e,n,r,a,o,s,l,c,u){var d,h,f,p,m,g,v,A,y,S,x,w,_,C,R,k=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[l=e.__e=n.__e]),(d=hd.__b)&&d(e);e:if(typeof k=="function")try{if(A=e.props,y=(d=k.contextType)&&r[d.__c],S=d?y?y.props.value:d.__:r,n.__c?v=(h=e.__c=n.__c).__=h.__E:("prototype"in k&&k.prototype.render?e.__c=h=new k(A,S):(e.__c=h=new QX(A,S),h.constructor=k,h.render=wsi),y&&y.sub(h),h.props=A,h.state||(h.state={}),h.context=S,h.__n=r,f=h.__d=!0,h.__h=[],h._sb=[]),h.__s==null&&(h.__s=h.state),k.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=HR({},h.__s)),HR(h.__s,k.getDerivedStateFromProps(A,h.__s))),p=h.props,m=h.state,h.__v=e,f)k.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(k.getDerivedStateFromProps==null&&A!==p&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(A,S),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(A,h.__s,S)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(h.props=A,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(P){P&&(P.__=e)}),x=0;x<h._sb.length;x++)h.__h.push(h._sb[x]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(A,h.__s,S),h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(p,m,g)})}if(h.context=S,h.props=A,h.__P=t,h.__e=!1,w=hd.__r,_=0,"prototype"in k&&k.prototype.render){for(h.state=h.__s,h.__d=!1,w&&w(e),d=h.render(h.props,h.state,h.context),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[]}else do h.__d=!1,w&&w(e),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++_<25);h.state=h.__s,h.getChildContext!=null&&(r=HR(HR({},r),h.getChildContext())),f||h.getSnapshotBeforeUpdate==null||(g=h.getSnapshotBeforeUpdate(p,m)),nin(t,WSe(R=d!=null&&d.type===Yae&&d.key==null?d.props.children:d)?R:[R],e,n,r,a,o,s,l,c,u),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),v&&(h.__E=h.__=null)}catch(P){e.__v=null,c||o!=null?(e.__e=l,e.__u|=c?160:32,o[o.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),hd.__e(P,e,n)}else o==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Ssi(n.__e,e,n,r,a,o,s,c,u);(d=hd.diffed)&&d(e)}function ain(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)$tt(n[r],n[++r],n[++r]);hd.__c&&hd.__c(e,t),t.some(function(a){try{t=a.__h,a.__h=[],t.some(function(o){o.call(a)})}catch(o){hd.__e(o,a.__v)}})}function Ssi(t,e,n,r,a,o,s,l,c){var u,d,h,f,p,m,g,v=n.props,A=e.props,y=e.type;if(y==="svg"?a="http://www.w3.org/2000/svg":y==="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!y&&(y?p.localName===y:p.nodeType===3)){t=p,o[u]=null;break}}if(t==null){if(y===null)return document.createTextNode(A);t=document.createElementNS(a,y,A.is&&A),o=null,l=!1}if(y===null)v===A||l&&t.data===A||(t.data=A);else{if(o=o&&qae.call(t.childNodes),v=n.props||wne,!l&&o!=null)for(v={},u=0;u<t.attributes.length;u++)v[(p=t.attributes[u]).name]=p.value;for(u in v)if(p=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")h=p;else if(u!=="key"&&!(u in A)){if(u=="value"&&"defaultValue"in A||u=="checked"&&"defaultChecked"in A)continue;Hce(t,u,null,p,a)}}for(u in A)p=A[u],u=="children"?f=p:u=="dangerouslySetInnerHTML"?d=p:u=="value"?m=p:u=="checked"?g=p:u==="key"||l&&typeof p!="function"||v[u]===p||Hce(t,u,p,v[u],a);if(d)l||h&&(d.__html===h.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(h&&(t.innerHTML=""),nin(t,WSe(f)?f:[f],e,n,r,y==="foreignObject"?"http://www.w3.org/1999/xhtml":a,o,s,o?o[0]:n.__k&&L6(n,0),l,c),o!=null)for(u=o.length;u--;)o[u]!=null&&ein(o[u]);l||(u="value",m!==void 0&&(m!==t[u]||y==="progress"&&!m||y==="option"&&m!==v[u])&&Hce(t,u,m,v[u],a),u="checked",g!==void 0&&g!==t[u]&&Hce(t,u,g,v[u],a))}return t}function $tt(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){hd.__e(r,n)}}function UUe(t,e,n){var r,a;if(hd.unmount&&hd.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||$tt(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){hd.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(a=0;a<r.length;a++)r[a]&&UUe(r[a],e,n||typeof t.type!="function");n||t.__e==null||ein(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function wsi(t,e,n){return this.constructor(t,n)}function oin(t,e,n){var r,a,o,s;hd.__&&hd.__(t,e),a=(r=typeof n=="function")?null:n&&n.__k||e.__k,o=[],s=[],Dtt(e,t=(!r&&n||e).__k=jUe(Yae,null,[t]),a||wne,wne,e.namespaceURI,!r&&n?[n]:a?null:e.firstChild?qae.call(e.childNodes):null,o,!r&&n?n:a?a.__e:e.firstChild,r,s),ain(o,t,s)}function sin(t,e){oin(t,e,sin)}function _si(t,e,n){var r,a,o,s,l=HR({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?r=e[o]:o=="ref"?a=e[o]:l[o]=e[o]===void 0&&s!==void 0?s[o]:e[o];return arguments.length>2&&(l.children=arguments.length>3?qae.call(arguments,2):n),WX(t.type,l,r||t.key,a||t.ref,null)}function Tsi(t,e){var n={__c:e="__cC"+Zrn++,__:t,Consumer:function(r,a){return r.children(a)},Provider:function(r){var a,o;return this.getChildContext||(a=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(function(l){l.__e=!0,HUe(l)})},this.sub=function(s){a.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}qae=Xrn.slice,hd={__e:function(t,e,n,r){for(var a,o,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((o=a.constructor)&&o.getDerivedStateFromError!=null&&(a.setState(o.getDerivedStateFromError(t)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(t,r||{}),s=a.__d),s)return a.__E=a}catch(l){t=l}throw t}},qrn=0,Yrn=function(t){return t!=null&&t.constructor==null},QX.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=HR({},this.state),typeof t=="function"&&(t=t(HR({},n),this.props)),t&&HR(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),HUe(this))},QX.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),HUe(this))},QX.prototype.render=Yae,gB=[],Jrn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,DUe=function(t,e){return t.__v.__b-e.__v.__b},uAe.__r=0,Btt=0,$Ue=Wxt(!1),FUe=Wxt(!0),Zrn=0;const Csi=Object.freeze(Object.defineProperty({__proto__:null,Component:QX,Fragment:Yae,cloneElement:_si,createContext:Tsi,createElement:jUe,createRef:bsi,h:jUe,hydrate:sin,get isValidElement(){return Yrn},get options(){return hd},render:oin,toChildArray:iin},Symbol.toStringTag,{value:"Module"})),ob=Uu(Csi);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var zUe=function(t,e){return zUe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},zUe(t,e)};function or(t,e){zUe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function OU(t){return typeof t=="function"}var Qxt=!1,ox={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;""+e.stack}Qxt=t},get useDeprecatedSynchronousErrorHandling(){return Qxt}};function QF(t){setTimeout(function(){throw t},0)}var dAe={closed:!0,next:function(t){},error:function(t){if(ox.useDeprecatedSynchronousErrorHandling)throw t;QF(t)},complete:function(){}},V0=function(){return Array.isArray||function(t){return t&&typeof t.length=="number"}}();function Ftt(t){return t!==null&&typeof t=="object"}var ksi=function(){function t(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription:
`+e.map(function(n,r){return r+1+") "+n.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t}(),qX=ksi,Hd=function(){function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,r=n._parentOrParents,a=n._ctorUnsubscribe,o=n._unsubscribe,s=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(r!==null)for(var l=0;l<r.length;++l){var c=r[l];c.remove(this)}if(OU(o)){a&&(this._unsubscribe=void 0);try{o.call(this)}catch(h){e=h instanceof qX?qxt(h.errors):[h]}}if(V0(s))for(var l=-1,u=s.length;++l<u;){var d=s[l];if(Ftt(d))try{d.unsubscribe()}catch(f){e=e||[],f instanceof qX?e=e.concat(qxt(f.errors)):e.push(f)}}if(e)throw new qX(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||typeof n.unsubscribe!="function")return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var a=n._parentOrParents;if(a===null)n._parentOrParents=this;else if(a instanceof t){if(a===this)return n;n._parentOrParents=[a,this]}else if(a.indexOf(this)===-1)a.push(this);else return n;var o=this._subscriptions;return o===null?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(e){var n=this._subscriptions;if(n){var r=n.indexOf(e);r!==-1&&n.splice(r,1)}},t.EMPTY=function(e){return e.closed=!0,e}(new t),t}();function qxt(t){return t.reduce(function(e,n){return e.concat(n instanceof qX?n.errors:n)},[])}var hAe=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),Ma=function(t){or(e,t);function e(n,r,a){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=dAe;break;case 1:if(!n){o.destination=dAe;break}if(typeof n=="object"){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new Yxt(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new Yxt(o,n,r,a);break}return o}return e.prototype[hAe]=function(){return this},e.create=function(n,r,a){var o=new e(n,r,a);return o.syncErrorThrowable=!1,o},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){this.destination.error(n),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var n=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this},e}(Hd),Yxt=function(t){or(e,t);function e(n,r,a,o){var s=t.call(this)||this;s._parentSubscriber=n;var l,c=s;return OU(r)?l=r:r&&(l=r.next,a=r.error,o=r.complete,r!==dAe&&(c=Object.create(r),OU(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=l,s._error=a,s._complete=o,s}return e.prototype.next=function(n){if(!this.isStopped&&this._next){var r=this._parentSubscriber;!ox.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,n):this.__tryOrSetError(r,this._next,n)&&this.unsubscribe()}},e.prototype.error=function(n){if(!this.isStopped){var r=this._parentSubscriber,a=ox.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,n),this.unsubscribe()):(this.__tryOrSetError(r,this._error,n),this.unsubscribe());else if(r.syncErrorThrowable)a?(r.syncErrorValue=n,r.syncErrorThrown=!0):QF(n),this.unsubscribe();else{if(this.unsubscribe(),a)throw n;QF(n)}}},e.prototype.complete=function(){var n=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var a=function(){return n._complete.call(n._context)};!ox.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(r,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(n,r){try{n.call(this._context,r)}catch(a){if(this.unsubscribe(),ox.useDeprecatedSynchronousErrorHandling)throw a;QF(a)}},e.prototype.__tryOrSetError=function(n,r,a){if(!ox.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,a)}catch(o){return ox.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=o,n.syncErrorThrown=!0,!0):(QF(o),!0)}return!1},e.prototype._unsubscribe=function(){var n=this._parentSubscriber;this._context=null,this._parentSubscriber=null,n.unsubscribe()},e}(Ma);function jtt(t){for(;t;){var e=t,n=e.closed,r=e.destination,a=e.isStopped;if(n||a)return!1;r&&r instanceof Ma?t=r:t=null}return!0}function Rsi(t,e,n){if(t){if(t instanceof Ma)return t;if(t[hAe])return t[hAe]()}return!t&&!e&&!n?new Ma(dAe):new Ma(t,e,n)}var FG=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function fP(t){return t}function GUe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return lin(t)}function lin(t){return t.length===0?fP:t.length===1?t[0]:function(n){return t.reduce(function(r,a){return a(r)},n)}}var _s=function(){function t(e){this._isScalar=!1,e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var a=this.operator,o=Rsi(e,n,r);if(a?o.add(a.call(o,this.source)):o.add(this.source||ox.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),ox.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){ox.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),jtt(e)?e.error(n):console.warn(n)}},t.prototype.forEach=function(e,n){var r=this;return n=Jxt(n),new n(function(a,o){var s;s=r.subscribe(function(l){try{e(l)}catch(c){o(c),s&&s.unsubscribe()}},o,a)})},t.prototype._subscribe=function(e){var n=this.source;return n&&n.subscribe(e)},t.prototype[FG]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?this:lin(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=Jxt(e),new e(function(r,a){var o;n.subscribe(function(s){return o=s},function(s){return a(s)},function(){return r(o)})})},t.create=function(e){return new t(e)},t}();function Jxt(t){if(t||(t=ox.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var Msi=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),k3=Msi,cin=function(t){or(e,t);function e(n,r){var a=t.call(this)||this;return a.subject=n,a.subscriber=r,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var n=this.subject,r=n.observers;if(this.subject=null,!(!r||r.length===0||n.isStopped||n.closed)){var a=r.indexOf(this.subscriber);a!==-1&&r.splice(a,1)}}},e}(Hd),uin=function(t){or(e,t);function e(n){var r=t.call(this,n)||this;return r.destination=n,r}return e}(Ma),lm=function(t){or(e,t);function e(){var n=t.call(this)||this;return n.observers=[],n.closed=!1,n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype[hAe]=function(){return new uin(this)},e.prototype.lift=function(n){var r=new Zxt(this,this);return r.operator=n,r},e.prototype.next=function(n){if(this.closed)throw new k3;if(!this.isStopped)for(var r=this.observers,a=r.length,o=r.slice(),s=0;s<a;s++)o[s].next(n)},e.prototype.error=function(n){if(this.closed)throw new k3;this.hasError=!0,this.thrownError=n,this.isStopped=!0;for(var r=this.observers,a=r.length,o=r.slice(),s=0;s<a;s++)o[s].error(n);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new k3;this.isStopped=!0;for(var n=this.observers,r=n.length,a=n.slice(),o=0;o<r;o++)a[o].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(n){if(this.closed)throw new k3;return t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){if(this.closed)throw new k3;return this.hasError?(n.error(this.thrownError),Hd.EMPTY):this.isStopped?(n.complete(),Hd.EMPTY):(this.observers.push(n),new cin(this,n))},e.prototype.asObservable=function(){var n=new _s;return n.source=this,n},e.create=function(n,r){return new Zxt(n,r)},e}(_s),Zxt=function(t){or(e,t);function e(n,r){var a=t.call(this)||this;return a.destination=n,a.source=r,a}return e.prototype.next=function(n){var r=this.destination;r&&r.next&&r.next(n)},e.prototype.error=function(n){var r=this.destination;r&&r.error&&this.destination.error(n)},e.prototype.complete=function(){var n=this.destination;n&&n.complete&&this.destination.complete()},e.prototype._subscribe=function(n){var r=this.source;return r?this.source.subscribe(n):Hd.EMPTY},e}(lm);function Htt(){return function(e){return e.lift(new Nsi(e))}}var Nsi=function(){function t(e){this.connectable=e}return t.prototype.call=function(e,n){var r=this.connectable;r._refCount++;var a=new Isi(e,r),o=n.subscribe(a);return a.closed||(a.connection=r.connect()),o},t}(),Isi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.connectable=r,a}return e.prototype._unsubscribe=function(){var n=this.connectable;if(!n){this.connection=null;return}this.connectable=null;var r=n._refCount;if(r<=0){this.connection=null;return}if(n._refCount=r-1,r>1){this.connection=null;return}var a=this.connection,o=n._connection;this.connection=null,o&&(!a||o===a)&&o.unsubscribe()},e}(Ma),din=function(t){or(e,t);function e(n,r){var a=t.call(this)||this;return a.source=n,a.subjectFactory=r,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},e.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var n=this._connection;return n||(this._isComplete=!1,n=this._connection=new Hd,n.add(this.source.subscribe(new Osi(this.getSubject(),this))),n.closed&&(this._connection=null,n=Hd.EMPTY)),n},e.prototype.refCount=function(){return Htt()(this)},e}(_s),Psi=function(){var t=din.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),Osi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.connectable=r,a}return e.prototype._error=function(n){this._unsubscribe(),t.prototype._error.call(this,n)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var n=this.connectable;if(n){this.connectable=null;var r=n._connection;n._refCount=0,n._subject=null,n._connection=null,r&&r.unsubscribe()}},e}(uin);function Lsi(t,e,n,r){return function(a){return a.lift(new Bsi(t,e,n,r))}}var Bsi=function(){function t(e,n,r,a){this.keySelector=e,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=a}return t.prototype.call=function(e,n){return n.subscribe(new Dsi(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),Dsi=function(t){or(e,t);function e(n,r,a,o,s){var l=t.call(this,n)||this;return l.keySelector=r,l.elementSelector=a,l.durationSelector=o,l.subjectSelector=s,l.groups=null,l.attemptedToUnsubscribe=!1,l.count=0,l}return e.prototype._next=function(n){var r;try{r=this.keySelector(n)}catch(a){this.error(a);return}this._group(n,r)},e.prototype._group=function(n,r){var a=this.groups;a||(a=this.groups=new Map);var o=a.get(r),s;if(this.elementSelector)try{s=this.elementSelector(n)}catch(u){this.error(u)}else s=n;if(!o){o=this.subjectSelector?this.subjectSelector():new lm,a.set(r,o);var l=new VUe(r,o,this);if(this.destination.next(l),this.durationSelector){var c=void 0;try{c=this.durationSelector(new VUe(r,o))}catch(u){this.error(u);return}this.add(c.subscribe(new $si(r,o,this)))}}o.closed||o.next(s)},e.prototype._error=function(n){var r=this.groups;r&&(r.forEach(function(a,o){a.error(n)}),r.clear()),this.destination.error(n)},e.prototype._complete=function(){var n=this.groups;n&&(n.forEach(function(r,a){r.complete()}),n.clear()),this.destination.complete()},e.prototype.removeGroup=function(n){this.groups.delete(n)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&t.prototype.unsubscribe.call(this))},e}(Ma),$si=function(t){or(e,t);function e(n,r,a){var o=t.call(this,r)||this;return o.key=n,o.group=r,o.parent=a,o}return e.prototype._next=function(n){this.complete()},e.prototype._unsubscribe=function(){var n=this,r=n.parent,a=n.key;this.key=this.parent=null,r&&r.removeGroup(a)},e}(Ma),VUe=function(t){or(e,t);function e(n,r,a){var o=t.call(this)||this;return o.key=n,o.groupSubject=r,o.refCountSubscription=a,o}return e.prototype._subscribe=function(n){var r=new Hd,a=this,o=a.refCountSubscription,s=a.groupSubject;return o&&!o.closed&&r.add(new Fsi(o)),r.add(s.subscribe(n)),r},e}(_s),Fsi=function(t){or(e,t);function e(n){var r=t.call(this)||this;return r.parent=n,n.count++,r}return e.prototype.unsubscribe=function(){var n=this.parent;!n.closed&&!this.closed&&(t.prototype.unsubscribe.call(this),n.count-=1,n.count===0&&n.attemptedToUnsubscribe&&n.unsubscribe())},e}(Hd),hin=function(t){or(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return r&&!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new k3;return this._value},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e}(lm),jsi=function(t){or(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e}(Hd),Jae=function(t){or(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.scheduler=n,a.work=r,a.pending=!1,a}return e.prototype.schedule=function(n,r){if(r===void 0&&(r=0),this.closed)return this;this.state=n;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(o,this.id,r),this},e.prototype.requestAsyncId=function(n,r,a){return a===void 0&&(a=0),setInterval(n.flush.bind(n,this),a)},e.prototype.recycleAsyncId=function(n,r,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return r;clearInterval(r)},e.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,r);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,r){var a=!1,o=void 0;try{this.work(n)}catch(s){a=!0,o=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),o},e.prototype._unsubscribe=function(){var n=this.id,r=this.scheduler,a=r.actions,o=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,o!==-1&&a.splice(o,1),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null},e}(jsi),Hsi=function(t){or(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.scheduler=n,a.work=r,a}return e.prototype.schedule=function(n,r){return r===void 0&&(r=0),r>0?t.prototype.schedule.call(this,n,r):(this.delay=r,this.state=n,this.scheduler.flush(this),this)},e.prototype.execute=function(n,r){return r>0||this.closed?t.prototype.execute.call(this,n,r):this._execute(n,r)},e.prototype.requestAsyncId=function(n,r,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?t.prototype.requestAsyncId.call(this,n,r,a):n.flush(this)},e}(Jae),KUe=function(){function t(e,n){n===void 0&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.SchedulerAction(this,e).schedule(r,n)},t.now=function(){return Date.now()},t}(),Zae=function(t){or(e,t);function e(n,r){r===void 0&&(r=KUe.now);var a=t.call(this,n,function(){return e.delegate&&e.delegate!==a?e.delegate.now():r()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(n,r,a){return r===void 0&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,a):t.prototype.schedule.call(this,n,r,a)},e.prototype.flush=function(n){var r=this.actions;if(this.active){r.push(n);return}var a;this.active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=r.shift());if(this.active=!1,a){for(;n=r.shift();)n.unsubscribe();throw a}},e}(KUe),Usi=function(t){or(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Zae),fin=new Usi(Hsi),pin=fin,LU=new _s(function(t){return t.complete()});function jG(t){return t?zsi(t):LU}function zsi(t){return new _s(function(e){return t.schedule(function(){return e.complete()})})}function jy(t){return t&&typeof t.schedule=="function"}var min=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function Utt(t,e){return new _s(function(n){var r=new Hd,a=0;return r.add(e.schedule(function(){if(a===t.length){n.complete();return}n.next(t[a++]),n.closed||r.add(this.schedule())})),r})}function Xae(t,e){return e?Utt(t,e):new _s(min(t))}function QSe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return jy(n)?(t.pop(),Utt(t,n)):Xae(t)}function ztt(t,e){return e?new _s(function(n){return e.schedule(Gsi,0,{error:t,subscriber:n})}):new _s(function(n){return n.error(t)})}function Gsi(t){var e=t.error,n=t.subscriber;n.error(e)}var WUe;WUe||(WUe={});var eM=function(){function t(e,n,r){this.kind=e,this.value=n,this.error=r,this.hasValue=e==="N"}return t.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},t.prototype.do=function(e,n,r){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return r&&r()}},t.prototype.accept=function(e,n,r){return e&&typeof e.next=="function"?this.observe(e):this.do(e,n,r)},t.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return QSe(this.value);case"E":return ztt(this.error);case"C":return jG()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return typeof e<"u"?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function Vsi(t,e){return e===void 0&&(e=0),function(r){return r.lift(new Ksi(t,e))}}var Ksi=function(){function t(e,n){n===void 0&&(n=0),this.scheduler=e,this.delay=n}return t.prototype.call=function(e,n){return n.subscribe(new gin(e,this.scheduler,this.delay))},t}(),gin=function(t){or(e,t);function e(n,r,a){a===void 0&&(a=0);var o=t.call(this,n)||this;return o.scheduler=r,o.delay=a,o}return e.dispatch=function(n){var r=n.notification,a=n.destination;r.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(n){var r=this.destination;r.add(this.scheduler.schedule(e.dispatch,this.delay,new Wsi(n,this.destination)))},e.prototype._next=function(n){this.scheduleMessage(eM.createNext(n))},e.prototype._error=function(n){this.scheduleMessage(eM.createError(n)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(eM.createComplete()),this.unsubscribe()},e}(Ma),Wsi=function(){function t(e,n){this.notification=e,this.destination=n}return t}(),Gtt=function(t){or(e,t);function e(n,r,a){n===void 0&&(n=Number.POSITIVE_INFINITY),r===void 0&&(r=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=a,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=n<1?1:n,o._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return e.prototype.nextInfiniteTimeWindow=function(n){if(!this.isStopped){var r=this._events;r.push(n),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,n)},e.prototype.nextTimeWindow=function(n){this.isStopped||(this._events.push(new Qsi(this._getNow(),n)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){var r=this._infiniteTimeWindow,a=r?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,s=a.length,l;if(this.closed)throw new k3;if(this.isStopped||this.hasError?l=Hd.EMPTY:(this.observers.push(n),l=new cin(this,n)),o&&n.add(n=new gin(n,o)),r)for(var c=0;c<s&&!n.closed;c++)n.next(a[c]);else for(var c=0;c<s&&!n.closed;c++)n.next(a[c].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),l},e.prototype._getNow=function(){return(this.scheduler||pin).now()},e.prototype._trimBufferThenGetEvents=function(){for(var n=this._getNow(),r=this._bufferSize,a=this._windowTime,o=this._events,s=o.length,l=0;l<s&&!(n-o[l].time<a);)l++;return s>r&&(l=Math.max(l,s-r)),l>0&&o.splice(0,l),o},e}(lm),Qsi=function(){function t(e,n){this.time=e,this.value=n}return t}(),HG=function(t){or(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.value=null,n.hasNext=!1,n.hasCompleted=!1,n}return e.prototype._subscribe=function(n){return this.hasError?(n.error(this.thrownError),Hd.EMPTY):this.hasCompleted&&this.hasNext?(n.next(this.value),n.complete(),Hd.EMPTY):t.prototype._subscribe.call(this,n)},e.prototype.next=function(n){this.hasCompleted||(this.value=n,this.hasNext=!0)},e.prototype.error=function(n){this.hasCompleted||t.prototype.error.call(this,n)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(lm),qsi=1,Ysi=function(){return Promise.resolve()}(),QUe={};function Xxt(t){return t in QUe?(delete QUe[t],!0):!1}var eEt={setImmediate:function(t){var e=qsi++;return QUe[e]=!0,Ysi.then(function(){return Xxt(e)&&t()}),e},clearImmediate:function(t){Xxt(t)}},Jsi=function(t){or(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.scheduler=n,a.work=r,a}return e.prototype.requestAsyncId=function(n,r,a){return a===void 0&&(a=0),a!==null&&a>0?t.prototype.requestAsyncId.call(this,n,r,a):(n.actions.push(this),n.scheduled||(n.scheduled=eEt.setImmediate(n.flush.bind(n,null))))},e.prototype.recycleAsyncId=function(n,r,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,a);n.actions.length===0&&(eEt.clearImmediate(r),n.scheduled=void 0)},e}(Jae),Zsi=function(t){or(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this.active=!0,this.scheduled=void 0;var r=this.actions,a,o=-1,s=r.length;n=n||r.shift();do if(a=n.execute(n.state,n.delay))break;while(++o<s&&(n=r.shift()));if(this.active=!1,a){for(;++o<s&&(n=r.shift());)n.unsubscribe();throw a}},e}(Zae),vin=new Zsi(Jsi),Tme=vin,Ain=new Zae(Jae),K0=Ain,Xsi=function(t){or(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.scheduler=n,a.work=r,a}return e.prototype.requestAsyncId=function(n,r,a){return a===void 0&&(a=0),a!==null&&a>0?t.prototype.requestAsyncId.call(this,n,r,a):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(function(){return n.flush(null)})))},e.prototype.recycleAsyncId=function(n,r,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,a);n.actions.length===0&&(cancelAnimationFrame(r),n.scheduled=void 0)},e}(Jae),eli=function(t){or(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this.active=!0,this.scheduled=void 0;var r=this.actions,a,o=-1,s=r.length;n=n||r.shift();do if(a=n.execute(n.state,n.delay))break;while(++o<s&&(n=r.shift()));if(this.active=!1,a){for(;++o<s&&(n=r.shift());)n.unsubscribe();throw a}},e}(Zae),yin=new eli(Xsi),tli=yin,nli=function(t){or(e,t);function e(n,r){n===void 0&&(n=bin),r===void 0&&(r=Number.POSITIVE_INFINITY);var a=t.call(this,n,function(){return a.frame})||this;return a.maxFrames=r,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var n=this,r=n.actions,a=n.maxFrames,o,s;(s=r[0])&&s.delay<=a&&(r.shift(),this.frame=s.delay,!(o=s.execute(s.state,s.delay))););if(o){for(;s=r.shift();)s.unsubscribe();throw o}},e.frameTimeFactor=10,e}(Zae),bin=function(t){or(e,t);function e(n,r,a){a===void 0&&(a=n.index+=1);var o=t.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.index=a,o.active=!0,o.index=n.index=a,o}return e.prototype.schedule=function(n,r){if(r===void 0&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(n,r)},e.prototype.requestAsyncId=function(n,r,a){a===void 0&&(a=0),this.delay=n.frame+a;var o=n.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(n,r,a){},e.prototype._execute=function(n,r){if(this.active===!0)return t.prototype._execute.call(this,n,r)},e.sortActions=function(n,r){return n.delay===r.delay?n.index===r.index?0:n.index>r.index?1:-1:n.delay>r.delay?1:-1},e}(Jae);function pT(){}function rli(t){return!!t&&(t instanceof _s||typeof t.lift=="function"&&typeof t.subscribe=="function")}var ili=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),BU=ili,ali=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),eoe=ali,oli=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}(),xin=oli;function mE(t,e){return function(r){if(typeof t!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new sli(t,e))}}var sli=function(){function t(e,n){this.project=e,this.thisArg=n}return t.prototype.call=function(e,n){return n.subscribe(new lli(e,this.project,this.thisArg))},t}(),lli=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.project=r,o.count=0,o.thisArg=a||o,o}return e.prototype._next=function(n){var r;try{r=this.project.call(this.thisArg,n,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(r)},e}(Ma);function Ein(t,e,n){if(e)if(jy(e))n=e;else return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return Ein(t,n).apply(void 0,r).pipe(mE(function(o){return V0(o)?e.apply(void 0,o):e(o)}))};return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=this,s,l={context:o,subject:s,callbackFunc:t,scheduler:n};return new _s(function(c){if(n){var d={args:r,subscriber:c,params:l};return n.schedule(cli,0,d)}else{if(!s){s=new HG;var u=function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];s.next(h.length<=1?h[0]:h),s.complete()};try{t.apply(o,r.concat([u]))}catch(h){jtt(s)?s.error(h):console.warn(h)}}return s.subscribe(c)}})}}function cli(t){var e=this,n=t.args,r=t.subscriber,a=t.params,o=a.callbackFunc,s=a.context,l=a.scheduler,c=a.subject;if(!c){c=a.subject=new HG;var u=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var f=d.length<=1?d[0]:d;e.add(l.schedule(uli,0,{value:f,subject:c}))};try{o.apply(s,n.concat([u]))}catch(d){c.error(d)}}this.add(c.subscribe(r))}function uli(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function Sin(t,e,n){if(e)if(jy(e))n=e;else return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return Sin(t,n).apply(void 0,r).pipe(mE(function(o){return V0(o)?e.apply(void 0,o):e(o)}))};return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o={subject:void 0,args:r,callbackFunc:t,scheduler:n,context:this};return new _s(function(s){var l=o.context,c=o.subject;if(n)return n.schedule(dli,0,{params:o,subscriber:s,context:l});if(!c){c=o.subject=new HG;var u=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var f=d.shift();if(f){c.error(f);return}c.next(d.length<=1?d[0]:d),c.complete()};try{t.apply(l,r.concat([u]))}catch(d){jtt(c)?c.error(d):console.warn(d)}}return c.subscribe(s)})}}function dli(t){var e=this,n=t.params,r=t.subscriber,a=t.context,o=n.callbackFunc,s=n.args,l=n.scheduler,c=n.subject;if(!c){c=n.subject=new HG;var u=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var f=d.shift();if(f)e.add(l.schedule(tEt,0,{err:f,subject:c}));else{var p=d.length<=1?d[0]:d;e.add(l.schedule(hli,0,{value:p,subject:c}))}};try{o.apply(a,s.concat([u]))}catch(d){this.add(l.schedule(tEt,0,{err:d,subject:c}))}}this.add(c.subscribe(r))}function hli(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function tEt(t){var e=t.err,n=t.subject;n.error(e)}var t9=function(t){or(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.notifyNext=function(n,r,a,o,s){this.destination.next(r)},e.prototype.notifyError=function(n,r){this.destination.error(n)},e.prototype.notifyComplete=function(n){this.destination.complete()},e}(Ma),fli=function(t){or(e,t);function e(n,r,a){var o=t.call(this)||this;return o.parent=n,o.outerValue=r,o.outerIndex=a,o.index=0,o}return e.prototype._next=function(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)},e.prototype._error=function(n){this.parent.notifyError(n,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(Ma),pli=function(t){return function(e){return t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,QF),e}};function mli(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var pP=mli(),gli=function(t){return function(e){var n=t[pP]();do{var r=void 0;try{r=n.next()}catch(a){return e.error(a),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}while(!0);return typeof n.return=="function"&&e.add(function(){n.return&&n.return()}),e}},vli=function(t){return function(e){var n=t[FG]();if(typeof n.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},win=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function _in(t){return!!t&&typeof t.subscribe!="function"&&typeof t.then=="function"}var _ne=function(t){if(t&&typeof t[FG]=="function")return vli(t);if(win(t))return min(t);if(_in(t))return pli(t);if(t&&typeof t[pP]=="function")return gli(t);var e=Ftt(t)?"an invalid object":"'"+t+"'",n="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)};function TM(t,e,n,r,a){if(a===void 0&&(a=new fli(t,n,r)),!a.closed)return e instanceof _s?e.subscribe(a):_ne(e)(a)}var nEt={};function Ali(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return jy(t[t.length-1])&&(r=t.pop()),typeof t[t.length-1]=="function"&&(n=t.pop()),t.length===1&&V0(t[0])&&(t=t[0]),Xae(t,r).lift(new Vtt(n))}var Vtt=function(){function t(e){this.resultSelector=e}return t.prototype.call=function(e,n){return n.subscribe(new yli(e,this.resultSelector))},t}(),yli=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.resultSelector=r,a.active=0,a.values=[],a.observables=[],a}return e.prototype._next=function(n){this.values.push(nEt),this.observables.push(n)},e.prototype._complete=function(){var n=this.observables,r=n.length;if(r===0)this.destination.complete();else{this.active=r,this.toRespond=r;for(var a=0;a<r;a++){var o=n[a];this.add(TM(this,o,void 0,a))}}},e.prototype.notifyComplete=function(n){(this.active-=1)===0&&this.destination.complete()},e.prototype.notifyNext=function(n,r,a){var o=this.values,s=o[a],l=this.toRespond?s===nEt?--this.toRespond:this.toRespond:0;o[a]=r,l===0&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(n){var r;try{r=this.resultSelector.apply(this,n)}catch(a){this.destination.error(a);return}this.destination.next(r)},e}(t9);function bli(t,e){return new _s(function(n){var r=new Hd;return r.add(e.schedule(function(){var a=t[FG]();r.add(a.subscribe({next:function(o){r.add(e.schedule(function(){return n.next(o)}))},error:function(o){r.add(e.schedule(function(){return n.error(o)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r})}function xli(t,e){return new _s(function(n){var r=new Hd;return r.add(e.schedule(function(){return t.then(function(a){r.add(e.schedule(function(){n.next(a),r.add(e.schedule(function(){return n.complete()}))}))},function(a){r.add(e.schedule(function(){return n.error(a)}))})})),r})}function Eli(t,e){if(!t)throw new Error("Iterable cannot be null");return new _s(function(n){var r=new Hd,a;return r.add(function(){a&&typeof a.return=="function"&&a.return()}),r.add(e.schedule(function(){a=t[pP](),r.add(e.schedule(function(){if(!n.closed){var o,s;try{var l=a.next();o=l.value,s=l.done}catch(c){n.error(c);return}s?n.complete():(n.next(o),this.schedule())}}))})),r})}function Sli(t){return t&&typeof t[FG]=="function"}function wli(t){return t&&typeof t[pP]=="function"}function Tin(t,e){if(t!=null){if(Sli(t))return bli(t,e);if(_in(t))return xli(t,e);if(win(t))return Utt(t,e);if(wli(t)||typeof t=="string")return Eli(t,e)}throw new TypeError((t!==null&&typeof t||t)+" is not observable")}function aN(t,e){return e?Tin(t,e):t instanceof _s?t:new _s(_ne(t))}var yh=function(t){or(e,t);function e(n){var r=t.call(this)||this;return r.parent=n,r}return e.prototype._next=function(n){this.parent.notifyNext(n)},e.prototype._error=function(n){this.parent.notifyError(n),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(Ma),bh=function(t){or(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.notifyNext=function(n){this.destination.next(n)},e.prototype.notifyError=function(n){this.destination.error(n)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(Ma);function xh(t,e){if(!e.closed){if(t instanceof _s)return t.subscribe(e);var n;try{n=_ne(t)(e)}catch(r){e.error(r)}return n}}function B6(t,e,n){return n===void 0&&(n=Number.POSITIVE_INFINITY),typeof e=="function"?function(r){return r.pipe(B6(function(a,o){return aN(t(a,o)).pipe(mE(function(s,l){return e(a,s,o,l)}))},n))}:(typeof e=="number"&&(n=e),function(r){return r.lift(new _li(t,n))})}var _li=function(){function t(e,n){n===void 0&&(n=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=n}return t.prototype.call=function(e,n){return n.subscribe(new Tli(e,this.project,this.concurrent))},t}(),Tli=function(t){or(e,t);function e(n,r,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var o=t.call(this,n)||this;return o.project=r,o.concurrent=a,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return e.prototype._next=function(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)},e.prototype._tryNext=function(n){var r,a=this.index++;try{r=this.project(n,a)}catch(o){this.destination.error(o);return}this.active++,this._innerSub(r)},e.prototype._innerSub=function(n){var r=new yh(this),a=this.destination;a.add(r);var o=xh(n,r);o!==r&&a.add(o)},e.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(n){this.destination.next(n)},e.prototype.notifyComplete=function(){var n=this.buffer;this.active--,n.length>0?this._next(n.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(bh),Cli=B6;function Ktt(t){return t===void 0&&(t=Number.POSITIVE_INFINITY),B6(fP,t)}function Cin(){return Ktt(1)}function Tne(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Cin()(QSe.apply(void 0,t))}function Wtt(t){return new _s(function(e){var n;try{n=t()}catch(a){e.error(a);return}var r=n?aN(n):jG();return r.subscribe(e)})}function kli(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length===1){var n=t[0];if(V0(n))return Uce(n,null);if(Ftt(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Uce(r.map(function(o){return n[o]}),r)}}if(typeof t[t.length-1]=="function"){var a=t.pop();return t=t.length===1&&V0(t[0])?t[0]:t,Uce(t,null).pipe(mE(function(o){return a.apply(void 0,o)}))}return Uce(t,null)}function Uce(t,e){return new _s(function(n){var r=t.length;if(r===0){n.complete();return}for(var a=new Array(r),o=0,s=0,l=function(u){var d=aN(t[u]),h=!1;n.add(d.subscribe({next:function(f){h||(h=!0,s++),a[u]=f},error:function(f){return n.error(f)},complete:function(){o++,(o===r||!h)&&(s===r&&n.next(e?e.reduce(function(f,p,m){return f[p]=a[m],f},{}):a),n.complete())}}))},c=0;c<r;c++)l(c)})}function kin(t,e,n,r){return OU(n)&&(r=n,n=void 0),r?kin(t,e,n).pipe(mE(function(a){return V0(a)?r.apply(void 0,a):r(a)})):new _s(function(a){function o(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}Rin(t,e,o,a,n)})}function Rin(t,e,n,r,a){var o;if(Nli(t)){var s=t;t.addEventListener(e,n,a),o=function(){return s.removeEventListener(e,n,a)}}else if(Mli(t)){var l=t;t.on(e,n),o=function(){return l.off(e,n)}}else if(Rli(t)){var c=t;t.addListener(e,n),o=function(){return c.removeListener(e,n)}}else if(t&&t.length)for(var u=0,d=t.length;u<d;u++)Rin(t[u],e,n,r,a);else throw new TypeError("Invalid event target");r.add(o)}function Rli(t){return t&&typeof t.addListener=="function"&&typeof t.removeListener=="function"}function Mli(t){return t&&typeof t.on=="function"&&typeof t.off=="function"}function Nli(t){return t&&typeof t.addEventListener=="function"&&typeof t.removeEventListener=="function"}function Min(t,e,n){return n?Min(t,e).pipe(mE(function(r){return V0(r)?n.apply(void 0,r):n(r)})):new _s(function(r){var a=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return r.next(s.length===1?s[0]:s)},o;try{o=t(a)}catch(s){r.error(s);return}if(OU(e))return function(){return e(a,o)}})}function Ili(t,e,n,r,a){var o,s;if(arguments.length==1){var l=t;s=l.initialState,e=l.condition,n=l.iterate,o=l.resultSelector||fP,a=l.scheduler}else r===void 0||jy(r)?(s=t,o=fP,a=r):(s=t,o=r);return new _s(function(c){var u=s;if(a)return a.schedule(Pli,0,{subscriber:c,iterate:n,condition:e,resultSelector:o,state:u});do{if(e){var d=void 0;try{d=e(u)}catch(f){c.error(f);return}if(!d){c.complete();break}}var h=void 0;try{h=o(u)}catch(f){c.error(f);return}if(c.next(h),c.closed)break;try{u=n(u)}catch(f){c.error(f);return}}while(!0)})}function Pli(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(o){e.error(o);return}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(o){e.error(o);return}if(!r){e.complete();return}if(e.closed)return}var a;try{a=t.resultSelector(t.state)}catch(o){e.error(o);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(t)}}function Oli(t,e,n){return e===void 0&&(e=LU),n===void 0&&(n=LU),Wtt(function(){return t()?e:n})}function DU(t){return!V0(t)&&t-parseFloat(t)+1>=0}function Lli(t,e){return t===void 0&&(t=0),e===void 0&&(e=K0),(!DU(t)||t<0)&&(t=0),(!e||typeof e.schedule!="function")&&(e=K0),new _s(function(n){return n.add(e.schedule(Bli,t,{subscriber:n,counter:0,period:t})),n})}function Bli(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}function Nin(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,a=t[t.length-1];return jy(a)?(r=t.pop(),t.length>1&&typeof t[t.length-1]=="number"&&(n=t.pop())):typeof a=="number"&&(n=t.pop()),r===null&&t.length===1&&t[0]instanceof _s?t[0]:Ktt(n)(Xae(t,r))}var Iin=new _s(pT);function Dli(){return Iin}function qUe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length===0)return LU;var n=t[0],r=t.slice(1);return t.length===1&&V0(n)?qUe.apply(void 0,n):new _s(function(a){var o=function(){return a.add(qUe.apply(void 0,r).subscribe(a))};return aN(n).subscribe({next:function(s){a.next(s)},error:o,complete:o})})}function $li(t,e){return e?new _s(function(n){var r=Object.keys(t),a=new Hd;return a.add(e.schedule(Fli,0,{keys:r,index:0,subscriber:n,subscription:a,obj:t})),a}):new _s(function(n){for(var r=Object.keys(t),a=0;a<r.length&&!n.closed;a++){var o=r[a];t.hasOwnProperty(o)&&n.next([o,t[o]])}n.complete()})}function Fli(t){var e=t.keys,n=t.index,r=t.subscriber,a=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var s=e[n];r.next([s,o[s]]),a.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:a,obj:o}))}else r.complete()}function Pin(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function mP(t,e){return function(r){return r.lift(new jli(t,e))}}var jli=function(){function t(e,n){this.predicate=e,this.thisArg=n}return t.prototype.call=function(e,n){return n.subscribe(new Hli(e,this.predicate,this.thisArg))},t}(),Hli=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.predicate=r,o.thisArg=a,o.count=0,o}return e.prototype._next=function(n){var r;try{r=this.predicate.call(this.thisArg,n,this.count++)}catch(a){this.destination.error(a);return}r&&this.destination.next(n)},e}(Ma);function Uli(t,e,n){return[mP(e,n)(new _s(_ne(t))),mP(Pin(e,n))(new _s(_ne(t)))]}function Oin(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length===1)if(V0(t[0]))t=t[0];else return t[0];return Xae(t,void 0).lift(new zli)}var zli=function(){function t(){}return t.prototype.call=function(e,n){return n.subscribe(new Gli(e))},t}(),Gli=function(t){or(e,t);function e(n){var r=t.call(this,n)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return e.prototype._next=function(n){this.observables.push(n)},e.prototype._complete=function(){var n=this.observables,r=n.length;if(r===0)this.destination.complete();else{for(var a=0;a<r&&!this.hasFirst;a++){var o=n[a],s=TM(this,o,void 0,a);this.subscriptions&&this.subscriptions.push(s),this.add(s)}this.observables=null}},e.prototype.notifyNext=function(n,r,a){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==a){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(r)},e}(t9);function Vli(t,e,n){return t===void 0&&(t=0),new _s(function(r){e===void 0&&(e=t,t=0);var a=0,o=t;if(n)return n.schedule(Kli,0,{index:a,count:e,start:t,subscriber:r});do{if(a++>=e){r.complete();break}if(r.next(o++),r.closed)break}while(!0)})}function Kli(t){var e=t.start,n=t.index,r=t.count,a=t.subscriber;if(n>=r){a.complete();return}a.next(e),!a.closed&&(t.index=n+1,t.start=e+1,this.schedule(t))}function Lin(t,e,n){t===void 0&&(t=0);var r=-1;return DU(e)?r=Number(e)<1&&1||Number(e):jy(e)&&(n=e),jy(n)||(n=K0),new _s(function(a){var o=DU(t)?t:+t-n.now();return n.schedule(Wli,o,{index:0,period:r,subscriber:a})})}function Wli(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(n===-1)return r.complete();t.index=e+1,this.schedule(t,n)}}function Qli(t,e){return new _s(function(n){var r;try{r=t()}catch(l){n.error(l);return}var a;try{a=e(r)}catch(l){n.error(l);return}var o=a?aN(a):LU,s=o.subscribe(n);return function(){s.unsubscribe(),r&&r.unsubscribe()}})}function Bin(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return typeof n=="function"&&t.pop(),Xae(t,void 0).lift(new Din(n))}var Din=function(){function t(e){this.resultSelector=e}return t.prototype.call=function(e,n){return n.subscribe(new qli(e,this.resultSelector))},t}(),qli=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.resultSelector=r,o.iterators=[],o.active=0,o.resultSelector=typeof r=="function"?r:void 0,o}return e.prototype._next=function(n){var r=this.iterators;V0(n)?r.push(new Jli(n)):typeof n[pP]=="function"?r.push(new Yli(n[pP]())):r.push(new Zli(this.destination,this,n))},e.prototype._complete=function(){var n=this.iterators,r=n.length;if(this.unsubscribe(),r===0){this.destination.complete();return}this.active=r;for(var a=0;a<r;a++){var o=n[a];if(o.stillUnsubscribed){var s=this.destination;s.add(o.subscribe())}else this.active--}},e.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete()},e.prototype.checkIterators=function(){for(var n=this.iterators,r=n.length,a=this.destination,o=0;o<r;o++){var s=n[o];if(typeof s.hasValue=="function"&&!s.hasValue())return}for(var l=!1,c=[],o=0;o<r;o++){var s=n[o],u=s.next();if(s.hasCompleted()&&(l=!0),u.done){a.complete();return}c.push(u.value)}this.resultSelector?this._tryresultSelector(c):a.next(c),l&&a.complete()},e.prototype._tryresultSelector=function(n){var r;try{r=this.resultSelector.apply(this,n)}catch(a){this.destination.error(a);return}this.destination.next(r)},e}(Ma),Yli=function(){function t(e){this.iterator=e,this.nextResult=e.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},t.prototype.hasCompleted=function(){var e=this.nextResult;return!!(e&&e.done)},t}(),Jli=function(){function t(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return t.prototype[pP]=function(){return this},t.prototype.next=function(e){var n=this.index++,r=this.array;return n<this.length?{value:r[n],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Zli=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.parent=r,o.observable=a,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return e.prototype[pP]=function(){return this},e.prototype.next=function(){var n=this.buffer;return n.length===0&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(n){this.buffer.push(n),this.parent.checkIterators()},e.prototype.subscribe=function(){return xh(this.observable,new yh(this))},e}(bh);const Xli=Object.freeze(Object.defineProperty({__proto__:null,ArgumentOutOfRangeError:BU,AsyncSubject:HG,BehaviorSubject:hin,ConnectableObservable:din,EMPTY:LU,EmptyError:eoe,GroupedObservable:VUe,NEVER:Iin,Notification:eM,get NotificationKind(){return WUe},ObjectUnsubscribedError:k3,Observable:_s,ReplaySubject:Gtt,Scheduler:KUe,Subject:lm,Subscriber:Ma,Subscription:Hd,TimeoutError:xin,UnsubscriptionError:qX,VirtualAction:bin,VirtualTimeScheduler:nli,animationFrame:tli,animationFrameScheduler:yin,asap:Tme,asapScheduler:vin,async:K0,asyncScheduler:Ain,bindCallback:Ein,bindNodeCallback:Sin,combineLatest:Ali,concat:Tne,config:ox,defer:Wtt,empty:jG,forkJoin:kli,from:aN,fromEvent:kin,fromEventPattern:Min,generate:Ili,identity:fP,iif:Oli,interval:Lli,isObservable:rli,merge:Nin,never:Dli,noop:pT,observable:FG,of:QSe,onErrorResumeNext:qUe,pairs:$li,partition:Uli,pipe:GUe,queue:pin,queueScheduler:fin,race:Oin,range:Vli,scheduled:Tin,throwError:ztt,timer:Lin,using:Qli,zip:Bin},Symbol.toStringTag,{value:"Module"})),qSe=Uu(Xli);var YSe={};function $in(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=$in(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function YUe(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=$in(t))&&(r&&(r+=" "),r+=e);return r}const eci=Object.freeze(Object.defineProperty({__proto__:null,clsx:YUe,default:YUe},Symbol.toStringTag,{value:"Module"})),toe=Uu(eci);var CM,uu,iOe,rEt,$U=0,Fin=[],Cme=[],Id=hd,iEt=Id.__b,aEt=Id.__r,oEt=Id.diffed,sEt=Id.__c,lEt=Id.unmount,cEt=Id.__;function n9(t,e){Id.__h&&Id.__h(uu,t,$U||e),$U=0;var n=uu.__H||(uu.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Cme}),n.__[t]}function jin(t){return $U=1,Hin(zin,t)}function Hin(t,e,n){var r=n9(CM++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):zin(void 0,e),function(l){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,l);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=uu,!uu.u)){var a=function(l,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!o||o.call(this,l,c,u);var h=!1;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(h=!0)}}),!(!h&&r.__c.props===l)&&(!o||o.call(this,l,c,u))};uu.u=!0;var o=uu.shouldComponentUpdate,s=uu.componentWillUpdate;uu.componentWillUpdate=function(l,c,u){if(this.__e){var d=o;o=void 0,a(l,c,u),o=d}s&&s.call(this,l,c,u)},uu.shouldComponentUpdate=a}return r.__N||r.__}function tci(t,e){var n=n9(CM++,3);!Id.__s&&qtt(n.__H,e)&&(n.__=t,n.i=e,uu.__H.__h.push(n))}function Uin(t,e){var n=n9(CM++,4);!Id.__s&&qtt(n.__H,e)&&(n.__=t,n.i=e,uu.__h.push(n))}function nci(t){return $U=5,Qtt(function(){return{current:t}},[])}function rci(t,e,n){$U=6,Uin(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function Qtt(t,e){var n=n9(CM++,7);return qtt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function ici(t,e){return $U=8,Qtt(function(){return t},e)}function aci(t){var e=uu.context[t.__c],n=n9(CM++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(uu)),e.props.value):t.__}function oci(t,e){Id.useDebugValue&&Id.useDebugValue(e?e(t):t)}function sci(t){var e=n9(CM++,10),n=jin();return e.__=t,uu.componentDidCatch||(uu.componentDidCatch=function(r,a){e.__&&e.__(r,a),n[1](r)}),[n[0],function(){n[1](void 0)}]}function lci(){var t=n9(CM++,11);if(!t.__){for(var e=uu.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function cci(){for(var t;t=Fin.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(kme),t.__H.__h.forEach(JUe),t.__H.__h=[]}catch(e){t.__H.__h=[],Id.__e(e,t.__v)}}Id.__b=function(t){uu=null,iEt&&iEt(t)},Id.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),cEt&&cEt(t,e)},Id.__r=function(t){aEt&&aEt(t),CM=0;var e=(uu=t.__c).__H;e&&(iOe===uu?(e.__h=[],uu.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Cme,n.__N=n.i=void 0})):(e.__h.forEach(kme),e.__h.forEach(JUe),e.__h=[],CM=0)),iOe=uu},Id.diffed=function(t){oEt&&oEt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Fin.push(e)!==1&&rEt===Id.requestAnimationFrame||((rEt=Id.requestAnimationFrame)||uci)(cci)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Cme&&(n.__=n.__V),n.i=void 0,n.__V=Cme})),iOe=uu=null},Id.__c=function(t,e){e.some(function(n){try{n.__h.forEach(kme),n.__h=n.__h.filter(function(r){return!r.__||JUe(r)})}catch(r){e.some(function(a){a.__h&&(a.__h=[])}),e=[],Id.__e(r,n.__v)}}),sEt&&sEt(t,e)},Id.unmount=function(t){lEt&&lEt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{kme(r)}catch(a){e=a}}),n.__H=void 0,e&&Id.__e(e,n.__v))};var uEt=typeof requestAnimationFrame=="function";function uci(t){var e,n=function(){clearTimeout(r),uEt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);uEt&&(e=requestAnimationFrame(n))}function kme(t){var e=uu,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),uu=e}function JUe(t){var e=uu;t.__c=t.__(),uu=e}function qtt(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function zin(t,e){return typeof e=="function"?e(t):e}const dci=Object.freeze(Object.defineProperty({__proto__:null,useCallback:ici,useContext:aci,useDebugValue:oci,useEffect:tci,useErrorBoundary:sci,useId:lci,useImperativeHandle:rci,useLayoutEffect:Uin,useMemo:Qtt,useReducer:Hin,useRef:nci,useState:jin},Symbol.toStringTag,{value:"Module"})),noe=Uu(dci);var n2={},JSe={};Object.defineProperty(JSe,"__esModule",{value:!0});JSe.CloseIcon=void 0;const dEt=ob;function hci(t){return(0,dEt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,dEt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}JSe.CloseIcon=hci;var Ytt={};Object.defineProperty(Ytt,"__esModule",{value:!0});Ytt.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4=";var Jtt={};Object.defineProperty(Jtt,"__esModule",{value:!0});Jtt.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg==";var ZSe={};Object.defineProperty(ZSe,"__esModule",{value:!0});ZSe.QRCodeIcon=void 0;const F_=ob;function fci(t){return(0,F_.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,F_.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,F_.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,F_.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,F_.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,F_.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,F_.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,F_.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,F_.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,F_.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}ZSe.QRCodeIcon=fci;var Ztt={};Object.defineProperty(Ztt,"__esModule",{value:!0});const pci=`
    <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
        <path d="M50 100C77.6142 100 100 77.6142 100 50C100 22.3858 77.6142 0 50 0C22.3858 0 0 22.3858 0 50C0 77.6142 22.3858 100 50 100Z" fill="white"/>
        <path d="M50.512 94C74.2907 94 93.5673 74.5244 93.5673 50.5C93.5673 26.4756 74.2907 7 50.512 7C26.7332 7 7.45667 26.4756 7.45667 50.5C7.45667 74.5244 26.7332 94 50.512 94Z" fill="#0052FF"/>
        <path d="M50.6248 65.4335C42.3697 65.4335 35.8996 58.7469 35.8996 50.5C35.8996 42.2531 42.5928 35.5664 50.6248 35.5664C57.9873 35.5664 64.0111 40.9157 65.1267 48.0481H80.0749C78.7363 32.6688 66.0191 20.6328 50.6248 20.6328C34.3379 20.6328 20.9514 34.0062 20.9514 50.5C20.9514 66.9936 34.1148 80.3671 50.6248 80.3671C66.2422 80.3671 78.7363 68.331 80.0749 52.9516H65.1267C64.0111 60.0841 57.9873 65.4335 50.6248 65.4335Z" fill="white"/>
    </svg>
`;Ztt.default=pci;var Xtt={};Object.defineProperty(Xtt,"__esModule",{value:!0});Xtt.default=`
    <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
        <circle cx="50" cy="50" r="50" fill="white"/>
        <circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/>
        <circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3379 49.9484C19.3379 66.8508 33.04 80.553 49.9425 80.553C66.8449 80.553 80.5471 66.8508 80.5471 49.9484C80.5471 33.0459 66.8449 19.3438 49.9425 19.3438C33.04 19.3438 19.3379 33.0459 19.3379 49.9484ZM44.0817 40.0799C41.8725 40.0799 40.0817 41.8708 40.0817 44.0799V55.8029C40.0817 58.012 41.8725 59.8029 44.0817 59.8029H55.8046C58.0138 59.8029 59.8046 58.012 59.8046 55.8029V44.0799C59.8046 41.8708 58.0138 40.0799 55.8046 40.0799H44.0817Z" fill="white"/>
    </svg>
`;var XSe={};Object.defineProperty(XSe,"__esModule",{value:!0});XSe.StatusDotIcon=void 0;const hEt=ob;function mci(t){return(0,hEt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,hEt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}XSe.StatusDotIcon=mci;var ewe={};function Gin(t){this.mode=ly.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,n=this.data.length;e<n;e++){var r=[],a=this.data.charCodeAt(e);a>65536?(r[0]=240|(a&1835008)>>>18,r[1]=128|(a&258048)>>>12,r[2]=128|(a&4032)>>>6,r[3]=128|a&63):a>2048?(r[0]=224|(a&61440)>>>12,r[1]=128|(a&4032)>>>6,r[2]=128|a&63):a>128?(r[0]=192|(a&1984)>>>6,r[1]=128|a&63):r[0]=a,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Gin.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}};function r2(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}r2.prototype={addData:function(t){var e=new Gin(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=r2.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[t+n][e+r]=!0:this.modules[t+n][e+r]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=Rd.getLostPoint(this);(n==0||t>r)&&(t=r,e=n)}return e},createMovieClip:function(t,e,n){var r=t.createEmptyMovieClip(e,n),a=1;this.make();for(var o=0;o<this.modules.length;o++)for(var s=o*a,l=0;l<this.modules[o].length;l++){var c=l*a,u=this.modules[o][l];u&&(r.beginFill(0,100),r.moveTo(c,s),r.lineTo(c+a,s),r.lineTo(c+a,s+a),r.lineTo(c,s+a),r.endFill())}return r},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)this.modules[t][6]==null&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)this.modules[6][e]==null&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=Rd.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var r=t[e],a=t[n];if(this.modules[r][a]==null)for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)o==-2||o==2||s==-2||s==2||o==0&&s==0?this.modules[r+o][a+s]=!0:this.modules[r+o][a+s]=!1}},setupTypeNumber:function(t){for(var e=Rd.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!t&&(e>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!t&&(e>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,r=Rd.getBCHTypeInfo(n),a=0;a<15;a++){var o=!t&&(r>>a&1)==1;a<6?this.modules[a][8]=o:a<8?this.modules[a+1][8]=o:this.modules[this.moduleCount-15+a][8]=o}for(var a=0;a<15;a++){var o=!t&&(r>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=o:a<9?this.modules[8][15-a-1+1]=o:this.modules[8][15-a-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,r=this.moduleCount-1,a=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var l=0;l<2;l++)if(this.modules[r][s-l]==null){var c=!1;o<t.length&&(c=(t[o]>>>a&1)==1);var u=Rd.getMask(e,r,s-l);u&&(c=!c),this.modules[r][s-l]=c,a--,a==-1&&(o++,a=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}};r2.PAD0=236;r2.PAD1=17;r2.createData=function(t,e,n){for(var r=DT.getRSBlocks(t,e),a=new Vin,o=0;o<n.length;o++){var s=n[o];a.put(s.mode,4),a.put(s.getLength(),Rd.getLengthInBits(s.mode,t)),s.write(a)}for(var l=0,o=0;o<r.length;o++)l+=r[o].dataCount;if(a.getLengthInBits()>l*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+l*8+")");for(a.getLengthInBits()+4<=l*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=l*8||(a.put(r2.PAD0,8),a.getLengthInBits()>=l*8));)a.put(r2.PAD1,8);return r2.createBytes(a,r)};r2.createBytes=function(t,e){for(var n=0,r=0,a=0,o=new Array(e.length),s=new Array(e.length),l=0;l<e.length;l++){var c=e[l].dataCount,u=e[l].totalCount-c;r=Math.max(r,c),a=Math.max(a,u),o[l]=new Array(c);for(var d=0;d<o[l].length;d++)o[l][d]=255&t.buffer[d+n];n+=c;var h=Rd.getErrorCorrectPolynomial(u),f=new Jj(o[l],h.getLength()-1),p=f.mod(h);s[l]=new Array(h.getLength()-1);for(var d=0;d<s[l].length;d++){var m=d+p.getLength()-s[l].length;s[l][d]=m>=0?p.get(m):0}}for(var g=0,d=0;d<e.length;d++)g+=e[d].totalCount;for(var v=new Array(g),A=0,d=0;d<r;d++)for(var l=0;l<e.length;l++)d<o[l].length&&(v[A++]=o[l][d]);for(var d=0;d<a;d++)for(var l=0;l<e.length;l++)d<s[l].length&&(v[A++]=s[l][d]);return v};var ly={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},H3={L:1,M:0,Q:3,H:2},JN={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},Rd={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;Rd.getBCHDigit(e)-Rd.getBCHDigit(Rd.G15)>=0;)e^=Rd.G15<<Rd.getBCHDigit(e)-Rd.getBCHDigit(Rd.G15);return(t<<10|e)^Rd.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;Rd.getBCHDigit(e)-Rd.getBCHDigit(Rd.G18)>=0;)e^=Rd.G18<<Rd.getBCHDigit(e)-Rd.getBCHDigit(Rd.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;t!=0;)e++,t>>>=1;return e},getPatternPosition:function(t){return Rd.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case JN.PATTERN000:return(e+n)%2==0;case JN.PATTERN001:return e%2==0;case JN.PATTERN010:return n%3==0;case JN.PATTERN011:return(e+n)%3==0;case JN.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case JN.PATTERN101:return e*n%2+e*n%3==0;case JN.PATTERN110:return(e*n%2+e*n%3)%2==0;case JN.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new Jj([1],0),n=0;n<t;n++)e=e.multiply(new Jj([1,Zp.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case ly.MODE_NUMBER:return 10;case ly.MODE_ALPHA_NUM:return 9;case ly.MODE_8BIT_BYTE:return 8;case ly.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case ly.MODE_NUMBER:return 12;case ly.MODE_ALPHA_NUM:return 11;case ly.MODE_8BIT_BYTE:return 16;case ly.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else if(e<41)switch(t){case ly.MODE_NUMBER:return 14;case ly.MODE_ALPHA_NUM:return 13;case ly.MODE_8BIT_BYTE:return 16;case ly.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}else throw new Error("type:"+e)},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,r=0;r<e;r++)for(var a=0;a<e;a++){for(var o=0,s=t.isDark(r,a),l=-1;l<=1;l++)if(!(r+l<0||e<=r+l))for(var c=-1;c<=1;c++)a+c<0||e<=a+c||l==0&&c==0||s==t.isDark(r+l,a+c)&&o++;o>5&&(n+=3+o-5)}for(var r=0;r<e-1;r++)for(var a=0;a<e-1;a++){var u=0;t.isDark(r,a)&&u++,t.isDark(r+1,a)&&u++,t.isDark(r,a+1)&&u++,t.isDark(r+1,a+1)&&u++,(u==0||u==4)&&(n+=3)}for(var r=0;r<e;r++)for(var a=0;a<e-6;a++)t.isDark(r,a)&&!t.isDark(r,a+1)&&t.isDark(r,a+2)&&t.isDark(r,a+3)&&t.isDark(r,a+4)&&!t.isDark(r,a+5)&&t.isDark(r,a+6)&&(n+=40);for(var a=0;a<e;a++)for(var r=0;r<e-6;r++)t.isDark(r,a)&&!t.isDark(r+1,a)&&t.isDark(r+2,a)&&t.isDark(r+3,a)&&t.isDark(r+4,a)&&!t.isDark(r+5,a)&&t.isDark(r+6,a)&&(n+=40);for(var d=0,a=0;a<e;a++)for(var r=0;r<e;r++)t.isDark(r,a)&&d++;var h=Math.abs(100*d/e/e-50)/5;return n+=h*10,n}},Zp={glog:function(t){if(t<1)throw new Error("glog("+t+")");return Zp.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return Zp.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var Wm=0;Wm<8;Wm++)Zp.EXP_TABLE[Wm]=1<<Wm;for(var Wm=8;Wm<256;Wm++)Zp.EXP_TABLE[Wm]=Zp.EXP_TABLE[Wm-4]^Zp.EXP_TABLE[Wm-5]^Zp.EXP_TABLE[Wm-6]^Zp.EXP_TABLE[Wm-8];for(var Wm=0;Wm<255;Wm++)Zp.LOG_TABLE[Zp.EXP_TABLE[Wm]]=Wm;function Jj(t,e){if(t.length==null)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&t[n]==0;)n++;this.num=new Array(t.length-n+e);for(var r=0;r<t.length-n;r++)this.num[r]=t[r+n]}Jj.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<t.getLength();r++)e[n+r]^=Zp.gexp(Zp.glog(this.get(n))+Zp.glog(t.get(r)));return new Jj(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=Zp.glog(this.get(0))-Zp.glog(t.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(var r=0;r<t.getLength();r++)n[r]^=Zp.gexp(Zp.glog(t.get(r))+e);return new Jj(n,0).mod(t)}};function DT(t,e){this.totalCount=t,this.dataCount=e}DT.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];DT.getRSBlocks=function(t,e){var n=DT.getRsBlockTable(t,e);if(n==null)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var r=n.length/3,a=[],o=0;o<r;o++)for(var s=n[o*3+0],l=n[o*3+1],c=n[o*3+2],u=0;u<s;u++)a.push(new DT(l,c));return a};DT.getRsBlockTable=function(t,e){switch(e){case H3.L:return DT.RS_BLOCK_TABLE[(t-1)*4+0];case H3.M:return DT.RS_BLOCK_TABLE[(t-1)*4+1];case H3.Q:return DT.RS_BLOCK_TABLE[(t-1)*4+2];case H3.H:return DT.RS_BLOCK_TABLE[(t-1)*4+3];default:return}};function Vin(){this.buffer=[],this.length=0}Vin.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(var n=0;n<e;n++)this.putBit((t>>>e-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var aOe=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Kin(t){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof t=="string"&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function n(c){switch(c){case"L":return H3.L;case"M":return H3.M;case"Q":return H3.Q;case"H":return H3.H;default:throw new Error("Unknwon error correction level: "+c)}}function r(c,u){for(var d=a(c),h=1,f=0,p=0,m=aOe.length;p<=m;p++){var g=aOe[p];if(!g)throw new Error("Content too long: expected "+f+" but got "+d);switch(u){case"L":f=g[0];break;case"M":f=g[1];break;case"Q":f=g[2];break;case"H":f=g[3];break;default:throw new Error("Unknwon error correction level: "+u)}if(d<=f)break;h++}if(h>aOe.length)throw new Error("Content too long");return h}function a(c){var u=encodeURI(c).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return u.length+(u.length!=c?3:0)}var o=this.options.content,s=r(o,this.options.ecl),l=n(this.options.ecl);this.qrcode=new r2(s,l),this.qrcode.addData(o),this.qrcode.make()}Kin.prototype.svg=function(t){var e=this.options||{},n=this.qrcode.modules;typeof t>"u"&&(t={container:e.container||"svg"});for(var r=typeof e.pretty<"u"?!!e.pretty:!0,a=r?"  ":"",o=r?`\r
`:"",s=e.width,l=e.height,c=n.length,u=s/(c+2*e.padding),d=l/(c+2*e.padding),h=typeof e.join<"u"?!!e.join:!1,f=typeof e.swap<"u"?!!e.swap:!1,p=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,m=typeof e.predefined<"u"?!!e.predefined:!1,g=m?a+'<defs><path id="qrmodule" d="M0 0 h'+d+" v"+u+' H0 z" style="fill:'+e.color+';shape-rendering:crispEdges;" /></defs>'+o:"",v=a+'<rect x="0" y="0" width="'+s+'" height="'+l+'" style="fill:'+e.background+';shape-rendering:crispEdges;"/>'+o,A="",y="",S=0;S<c;S++)for(var x=0;x<c;x++){var w=n[x][S];if(w){var _=x*u+e.padding*u,C=S*d+e.padding*d;if(f){var R=_;_=C,C=R}if(h){var k=u+_,P=d+C;_=Number.isInteger(_)?Number(_):_.toFixed(2),C=Number.isInteger(C)?Number(C):C.toFixed(2),k=Number.isInteger(k)?Number(k):k.toFixed(2),P=Number.isInteger(P)?Number(P):P.toFixed(2),y+="M"+_+","+C+" V"+P+" H"+k+" V"+C+" H"+_+" Z "}else m?A+=a+'<use x="'+_.toString()+'" y="'+C.toString()+'" href="#qrmodule" />'+o:A+=a+'<rect x="'+_.toString()+'" y="'+C.toString()+'" width="'+u+'" height="'+d+'" style="fill:'+e.color+';shape-rendering:crispEdges;"/>'+o}}h&&(A=a+'<path x="0" y="0" style="fill:'+e.color+';shape-rendering:crispEdges;" d="'+y+'" />');let N="";if(this.options.image!==void 0&&this.options.image.svg){const I=s*this.options.image.width/100,b=l*this.options.image.height/100,T=s/2-I/2,M=l/2-b/2;N+=`<svg x="${T}" y="${M}" width="${I}" height="${b}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`,N+=this.options.image.svg+o,N+="</svg>"}var L="";switch(t.container){case"svg":p&&(L+='<?xml version="1.0" standalone="yes"?>'+o),L+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+s+'" height="'+l+'">'+o,L+=g+v+A,L+=N,L+="</svg>";break;case"svg-viewbox":p&&(L+='<?xml version="1.0" standalone="yes"?>'+o),L+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+s+" "+l+'">'+o,L+=g+v+A,L+=N,L+="</svg>";break;case"g":L+='<g width="'+s+'" height="'+l+'">'+o,L+=g+v+A,L+=N,L+="</g>";break;default:L+=(g+v+A+N).replace(/^\s+/,"");break}return L};var gci=Kin,vci=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ewe,"__esModule",{value:!0});ewe.QRCode=void 0;const Aci=ob,fEt=noe,yci=vci(gci),bci=t=>{const[e,n]=(0,fEt.useState)("");return(0,fEt.useEffect)(()=>{var r,a;const o=new yci.default({content:t.content,background:t.bgColor||"#ffffff",color:t.fgColor||"#000000",container:"svg",ecl:"M",width:(r=t.width)!==null&&r!==void 0?r:256,height:(a=t.height)!==null&&a!==void 0?a:256,padding:0,image:t.image}),s=gn.from(o.svg(),"utf8").toString("base64");n(`data:image/svg+xml;base64,${s}`)}),e?(0,Aci.h)("img",{src:e,alt:"QR Code"}):null};ewe.QRCode=bci;var twe={},ent={};Object.defineProperty(ent,"__esModule",{value:!0});ent.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}";var xci=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(twe,"__esModule",{value:!0});twe.Spinner=void 0;const zce=ob,Eci=xci(ent),Sci=t=>{var e;const n=(e=t.size)!==null&&e!==void 0?e:64,r=t.color||"#000";return(0,zce.h)("div",{class:"-cbwsdk-spinner"},(0,zce.h)("style",null,Eci.default),(0,zce.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,zce.h)("circle",{style:{cx:50,cy:50,r:45,stroke:r}})))};twe.Spinner=Sci;var tnt={};Object.defineProperty(tnt,"__esModule",{value:!0});tnt.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}";var UG=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n2,"__esModule",{value:!0});n2.CoinbaseAppSteps=n2.CoinbaseWalletSteps=n2.ConnectItem=n2.ConnectContent=void 0;const bx=UG(toe),Xa=ob,pEt=noe,wci=ya,_ci=MG,Tci=JSe,Cci=UG(Ytt),kci=UG(Jtt),Win=ZSe,Rci=UG(Ztt),Mci=UG(Xtt),Nci=XSe,Ici=ewe,Pci=twe,Oci=UG(tnt),mEt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:kci.default,steps:qin},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:Cci.default,steps:Yin}},Lci=t=>{switch(t){case"coinbase-app":return Rci.default;case"coinbase-wallet-app":default:return Mci.default}},ZUe=t=>t==="light"?"#FFFFFF":"#0A0B0D";function Bci(t){const{theme:e}=t,[n,r]=(0,pEt.useState)("coinbase-wallet-app"),a=(0,pEt.useCallback)(u=>{r(u)},[]),o=(0,wci.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId),s=mEt[n];if(!n)return null;const l=s.steps,c=n==="coinbase-app";return(0,Xa.h)("div",{"data-testid":"connect-content",class:(0,bx.default)("-cbwsdk-connect-content",e)},(0,Xa.h)("style",null,Oci.default),(0,Xa.h)("div",{class:"-cbwsdk-connect-content-header"},(0,Xa.h)("h2",{class:(0,bx.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),t.onCancel&&(0,Xa.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:t.onCancel},(0,Xa.h)(Tci.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Xa.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,Xa.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,Xa.h)("div",null,Object.entries(mEt).map(([u,d])=>(0,Xa.h)(Qin,{key:u,title:d.title,description:d.description,icon:d.icon,selected:n===u,onClick:()=>a(u),theme:e}))),c&&(0,Xa.h)("div",{class:(0,bx.default)("-cbwsdk-connect-content-update-app",e)},"Don’t see a ",(0,Xa.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,Xa.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,Xa.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,Xa.h)(Ici.QRCode,{content:o,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:Lci(n),width:25,height:25}}),(0,Xa.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:_ci.LIB_VERSION}),(0,Xa.h)("input",{type:"hidden",value:o})),(0,Xa.h)(l,{theme:e}),!t.isConnected&&(0,Xa.h)("div",{"data-testid":"connecting-spinner",class:(0,bx.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,Xa.h)(Pci.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,Xa.h)("p",null,"Connecting...")))))}n2.ConnectContent=Bci;function Qin({title:t,description:e,icon:n,selected:r,theme:a,onClick:o}){return(0,Xa.h)("div",{onClick:o,class:(0,bx.default)("-cbwsdk-connect-item",a,{selected:r})},(0,Xa.h)("div",null,(0,Xa.h)("img",{src:n,alt:t})),(0,Xa.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,Xa.h)("h3",{class:"-cbwsdk-connect-item-title"},t),(0,Xa.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}n2.ConnectItem=Qin;function qin({theme:t}){return(0,Xa.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,Xa.h)("li",{class:(0,bx.default)("-cbwsdk-wallet-steps-item",t)},(0,Xa.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,Xa.h)("li",{class:(0,bx.default)("-cbwsdk-wallet-steps-item",t)},(0,Xa.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,Xa.h)("span",null,"Tap ",(0,Xa.h)("strong",null,"Scan")," "),(0,Xa.h)("span",{class:(0,bx.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,Xa.h)(Win.QRCodeIcon,{fill:ZUe(t)})))))}n2.CoinbaseWalletSteps=qin;function Yin({theme:t}){return(0,Xa.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,Xa.h)("li",{class:(0,bx.default)("-cbwsdk-wallet-steps-item",t)},(0,Xa.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,Xa.h)("li",{class:(0,bx.default)("-cbwsdk-wallet-steps-item",t)},(0,Xa.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,Xa.h)("span",null,"Tap ",(0,Xa.h)("strong",null,"More")),(0,Xa.h)("span",{class:(0,bx.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,Xa.h)(Nci.StatusDotIcon,{fill:ZUe(t)})),(0,Xa.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,Xa.h)("strong",null,"Scan")),(0,Xa.h)("span",{class:(0,bx.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,Xa.h)(Win.QRCodeIcon,{fill:ZUe(t)})))))}n2.CoinbaseAppSteps=Yin;var nwe={},rwe={};Object.defineProperty(rwe,"__esModule",{value:!0});rwe.ArrowLeftIcon=void 0;const gEt=ob;function Dci(t){return(0,gEt.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(0,gEt.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}rwe.ArrowLeftIcon=Dci;var iwe={};Object.defineProperty(iwe,"__esModule",{value:!0});iwe.LaptopIcon=void 0;const oOe=ob;function $ci(t){return(0,oOe.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,oOe.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,oOe.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}iwe.LaptopIcon=$ci;var awe={};Object.defineProperty(awe,"__esModule",{value:!0});awe.SafeIcon=void 0;const vEt=ob;function Fci(t){return(0,vEt.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,vEt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}awe.SafeIcon=Fci;var nnt={};Object.defineProperty(nnt,"__esModule",{value:!0});nnt.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}";var Jin=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nwe,"__esModule",{value:!0});nwe.TryExtensionContent=void 0;const x4=Jin(toe),bf=ob,sOe=noe,jci=rwe,Hci=iwe,Uci=awe,zci=Jin(nnt);function Gci({theme:t}){const[e,n]=(0,sOe.useState)(!1),r=(0,sOe.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,sOe.useCallback)(()=>{e?window.location.reload():(r(),n(!0))},[r,e]);return(0,bf.h)("div",{class:(0,x4.default)("-cbwsdk-try-extension",t)},(0,bf.h)("style",null,zci.default),(0,bf.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,bf.h)("h3",{class:(0,x4.default)("-cbwsdk-try-extension-heading",t)},"Or try the Coinbase Wallet browser extension"),(0,bf.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,bf.h)("button",{class:(0,x4.default)("-cbwsdk-try-extension-cta",t),onClick:a},e?"Refresh":"Install"),(0,bf.h)("div",null,!e&&(0,bf.h)(jci.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:t==="light"?"#0052FF":"#588AF5"})))),(0,bf.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,bf.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,bf.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,bf.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,bf.h)("span",{class:(0,x4.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,bf.h)(Hci.LaptopIcon,{fill:t==="light"?"#0A0B0D":"#FFFFFF"}))),(0,bf.h)("div",{class:(0,x4.default)("-cbwsdk-try-extension-list-item-copy",t)},"Connect with dapps with just one click on your desktop browser")),(0,bf.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,bf.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,bf.h)("span",{class:(0,x4.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,bf.h)(Uci.SafeIcon,{fill:t==="light"?"#0A0B0D":"#FFFFFF"}))),(0,bf.h)("div",{class:(0,x4.default)("-cbwsdk-try-extension-list-item-copy",t)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}nwe.TryExtensionContent=Gci;var rnt={};Object.defineProperty(rnt,"__esModule",{value:!0});rnt.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}";var Zin=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(YSe,"__esModule",{value:!0});YSe.ConnectDialog=void 0;const lOe=Zin(toe),E4=ob,cOe=noe,Vci=n2,Kci=nwe,Wci=Zin(rnt),Qci=t=>{const{isOpen:e,darkMode:n}=t,[r,a]=(0,cOe.useState)(!e),[o,s]=(0,cOe.useState)(!e);(0,cOe.useEffect)(()=>{const c=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):c.push(window.setTimeout(()=>{a(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[t.isOpen]);const l=n?"dark":"light";return(0,E4.h)("div",{class:(0,lOe.default)("-cbwsdk-connect-dialog-container",r&&"-cbwsdk-connect-dialog-container-hidden")},(0,E4.h)("style",null,Wci.default),(0,E4.h)("div",{class:(0,lOe.default)("-cbwsdk-connect-dialog-backdrop",l,o&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,E4.h)("div",{class:"-cbwsdk-connect-dialog"},(0,E4.h)("div",{class:(0,lOe.default)("-cbwsdk-connect-dialog-box",o&&"-cbwsdk-connect-dialog-box-hidden")},t.connectDisabled?null:(0,E4.h)(Vci.ConnectContent,{theme:l,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,E4.h)(Kci.TryExtensionContent,{theme:l}))))};YSe.ConnectDialog=Qci;Object.defineProperty(KSe,"__esModule",{value:!0});KSe.LinkFlow=void 0;const uOe=ob,AEt=qSe,qci=YSe;class Yci{constructor(e){this.extensionUI$=new AEt.BehaviorSubject({}),this.subscriptions=new AEt.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(n=>{this.isConnected!==n&&(this.isConnected=n,this.render())})),this.subscriptions.add(this.chainId$.subscribe(n=>{this.chainId!==n&&(this.chainId=n,this.render())}))}detach(){var e;this.root&&(this.subscriptions.unsubscribe(),(0,uOe.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const e=this.extensionUI$.subscribe(()=>{this.root&&(0,uOe.render)((0,uOe.h)(qci.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}}KSe.LinkFlow=Yci;var Xin={},int={};Object.defineProperty(int,"__esModule",{value:!0});int.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}";(function(t){var e=en&&en.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;const n=e(toe),r=ob,a=noe,o=e(int),s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function l(h){switch(h){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}class c{constructor(f){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=f.darkMode}attach(f){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",f.appendChild(this.root),this.render()}presentItem(f){const p=this.nextItemKey++;return this.items.set(p,f),this.render(),()=>{this.items.delete(p),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,r.render)((0,r.h)("div",null,(0,r.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([f,p])=>(0,r.h)(t.SnackbarInstance,Object.assign({},p,{key:f}))))),this.root)}}t.Snackbar=c;const u=h=>(0,r.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-container")},(0,r.h)("style",null,o.default),(0,r.h)("div",{class:"-cbwsdk-snackbar"},h.children));t.SnackbarContainer=u;const d=({autoExpand:h,message:f,menuItems:p,appSrc:m})=>{const[g,v]=(0,a.useState)(!0),[A,y]=(0,a.useState)(h??!1);(0,a.useEffect)(()=>{const x=[window.setTimeout(()=>{v(!1)},1),window.setTimeout(()=>{y(!0)},1e4)];return()=>{x.forEach(window.clearTimeout)}});const S=()=>{y(!A)};return(0,r.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-instance",g&&"-cbwsdk-snackbar-instance-hidden",A&&"-cbwsdk-snackbar-instance-expanded")},(0,r.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:S},(0,r.h)("img",{src:l(m),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,r.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},f),(0,r.h)("div",{class:"-gear-container"},!A&&(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,r.h)("img",{src:s,class:"-gear-icon",title:"Expand"}))),p&&p.length>0&&(0,r.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},p.map((x,w)=>(0,r.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-instance-menu-item",x.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:x.onClick,key:w},(0,r.h)("svg",{width:x.svgWidth,height:x.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":x.defaultFillRule,"clip-rule":x.defaultClipRule,d:x.path,fill:"#AAAAAA"})),(0,r.h)("span",{class:(0,n.default)("-cbwsdk-snackbar-instance-menu-item-info",x.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},x.info)))))};t.SnackbarInstance=d})(Xin);var owe={},ant={};Object.defineProperty(ant,"__esModule",{value:!0});ant.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';var Jci=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(owe,"__esModule",{value:!0});owe.injectCssReset=void 0;const Zci=Jci(ant);function Xci(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(Zci.default)),document.documentElement.appendChild(t)}owe.injectCssReset=Xci;Object.defineProperty(VSe,"__esModule",{value:!0});VSe.WalletSDKUI=void 0;const eui=KSe,tui=Xin,nui=owe;class rui{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new tui.Snackbar({darkMode:e.darkMode}),this.linkFlow=new eui.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const e=document.documentElement,n=document.createElement("div");n.className="-cbwsdk-css-reset",e.appendChild(n),this.linkFlow.attach(n),this.snackbar.attach(n),this.attached=!0,(0,nui.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let n;return e.isUnlinkedErrorState?n={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:n={message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(n)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}}VSe.WalletSDKUI=rui;var swe={},lwe={};Object.defineProperty(lwe,"__esModule",{value:!0});var qF;(function(t){t.typeOfFunction="function",t.boolTrue=!0})(qF||(qF={}));function ean(t,e,n){if(!n||typeof n.value!==qF.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:qF.boolTrue,get:function(){var r=n.value.bind(this);return Object.defineProperty(this,e,{value:r,configurable:qF.boolTrue,writable:qF.boolTrue}),r}}}lwe.bind=ean;lwe.default=ean;function tan(t){return function(n){return n.lift(new iui(t))}}var iui=function(){function t(e){this.durationSelector=e}return t.prototype.call=function(e,n){return n.subscribe(new aui(e,this.durationSelector))},t}(),aui=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.durationSelector=r,a.hasValue=!1,a}return e.prototype._next=function(n){if(this.value=n,this.hasValue=!0,!this.throttled){var r=void 0;try{var a=this.durationSelector;r=a(n)}catch(s){return this.destination.error(s)}var o=xh(r,new yh(this));!o||o.closed?this.clearThrottle():this.add(this.throttled=o)}},e.prototype.clearThrottle=function(){var n=this,r=n.value,a=n.hasValue,o=n.throttled;o&&(this.remove(o),this.throttled=void 0,o.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(r))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(bh);function oui(t,e){return e===void 0&&(e=K0),tan(function(){return Lin(t,e)})}function sui(t){return function(n){return n.lift(new lui(t))}}var lui=function(){function t(e){this.closingNotifier=e}return t.prototype.call=function(e,n){return n.subscribe(new cui(e,this.closingNotifier))},t}(),cui=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.buffer=[],a.add(xh(r,new yh(a))),a}return e.prototype._next=function(n){this.buffer.push(n)},e.prototype.notifyNext=function(){var n=this.buffer;this.buffer=[],this.destination.next(n)},e}(bh);function uui(t,e){return e===void 0&&(e=null),function(r){return r.lift(new dui(t,e))}}var dui=function(){function t(e,n){this.bufferSize=e,this.startBufferEvery=n,!n||e===n?this.subscriberClass=hui:this.subscriberClass=fui}return t.prototype.call=function(e,n){return n.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},t}(),hui=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.bufferSize=r,a.buffer=[],a}return e.prototype._next=function(n){var r=this.buffer;r.push(n),r.length==this.bufferSize&&(this.destination.next(r),this.buffer=[])},e.prototype._complete=function(){var n=this.buffer;n.length>0&&this.destination.next(n),t.prototype._complete.call(this)},e}(Ma),fui=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.bufferSize=r,o.startBufferEvery=a,o.buffers=[],o.count=0,o}return e.prototype._next=function(n){var r=this,a=r.bufferSize,o=r.startBufferEvery,s=r.buffers,l=r.count;this.count++,l%o===0&&s.push([]);for(var c=s.length;c--;){var u=s[c];u.push(n),u.length===a&&(s.splice(c,1),this.destination.next(u))}},e.prototype._complete=function(){for(var n=this,r=n.buffers,a=n.destination;r.length>0;){var o=r.shift();o.length>0&&a.next(o)}t.prototype._complete.call(this)},e}(Ma);function pui(t){var e=arguments.length,n=K0;jy(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new mui(t,r,a,n))}}var mui=function(){function t(e,n,r,a){this.bufferTimeSpan=e,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=a}return t.prototype.call=function(e,n){return n.subscribe(new vui(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),gui=function(){function t(){this.buffer=[]}return t}(),vui=function(t){or(e,t);function e(n,r,a,o,s){var l=t.call(this,n)||this;l.bufferTimeSpan=r,l.bufferCreationInterval=a,l.maxBufferSize=o,l.scheduler=s,l.contexts=[];var c=l.openContext();if(l.timespanOnly=a==null||a<0,l.timespanOnly){var u={subscriber:l,context:c,bufferTimeSpan:r};l.add(c.closeAction=s.schedule(yEt,r,u))}else{var d={subscriber:l,context:c},h={bufferTimeSpan:r,bufferCreationInterval:a,subscriber:l,scheduler:s};l.add(c.closeAction=s.schedule(nan,r,d)),l.add(s.schedule(Aui,a,h))}return l}return e.prototype._next=function(n){for(var r=this.contexts,a=r.length,o,s=0;s<a;s++){var l=r[s],c=l.buffer;c.push(n),c.length==this.maxBufferSize&&(o=l)}o&&this.onBufferFull(o)},e.prototype._error=function(n){this.contexts.length=0,t.prototype._error.call(this,n)},e.prototype._complete=function(){for(var n=this,r=n.contexts,a=n.destination;r.length>0;){var o=r.shift();a.next(o.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(n){this.closeContext(n);var r=n.closeAction;if(r.unsubscribe(),this.remove(r),!this.closed&&this.timespanOnly){n=this.openContext();var a=this.bufferTimeSpan,o={subscriber:this,context:n,bufferTimeSpan:a};this.add(n.closeAction=this.scheduler.schedule(yEt,a,o))}},e.prototype.openContext=function(){var n=new gui;return this.contexts.push(n),n},e.prototype.closeContext=function(n){this.destination.next(n.buffer);var r=this.contexts,a=r?r.indexOf(n):-1;a>=0&&r.splice(r.indexOf(n),1)},e}(Ma);function yEt(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function Aui(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,a=t.scheduler,o=r.openContext(),s=this;r.closed||(r.add(o.closeAction=a.schedule(nan,n,{subscriber:r,context:o})),s.schedule(t,e))}function nan(t){var e=t.subscriber,n=t.context;e.closeContext(n)}function yui(t,e){return function(r){return r.lift(new bui(t,e))}}var bui=function(){function t(e,n){this.openings=e,this.closingSelector=n}return t.prototype.call=function(e,n){return n.subscribe(new xui(e,this.openings,this.closingSelector))},t}(),xui=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.closingSelector=a,o.contexts=[],o.add(TM(o,r)),o}return e.prototype._next=function(n){for(var r=this.contexts,a=r.length,o=0;o<a;o++)r[o].buffer.push(n)},e.prototype._error=function(n){for(var r=this.contexts;r.length>0;){var a=r.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,t.prototype._error.call(this,n)},e.prototype._complete=function(){for(var n=this.contexts;n.length>0;){var r=n.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(n,r){n?this.closeBuffer(n):this.openBuffer(r)},e.prototype.notifyComplete=function(n){this.closeBuffer(n.context)},e.prototype.openBuffer=function(n){try{var r=this.closingSelector,a=r.call(this,n);a&&this.trySubscribe(a)}catch(o){this._error(o)}},e.prototype.closeBuffer=function(n){var r=this.contexts;if(r&&n){var a=n.buffer,o=n.subscription;this.destination.next(a),r.splice(r.indexOf(n),1),this.remove(o),o.unsubscribe()}},e.prototype.trySubscribe=function(n){var r=this.contexts,a=[],o=new Hd,s={buffer:a,subscription:o};r.push(s);var l=TM(this,n,s);!l||l.closed?this.closeBuffer(s):(l.context=s,this.add(l),o.add(l))},e}(t9);function Eui(t){return function(e){return e.lift(new Sui(t))}}var Sui=function(){function t(e){this.closingSelector=e}return t.prototype.call=function(e,n){return n.subscribe(new wui(e,this.closingSelector))},t}(),wui=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.closingSelector=r,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(n){this.buffer.push(n)},e.prototype._complete=function(){var n=this.buffer;n&&this.destination.next(n),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var n=this.closingSubscription;n&&(this.remove(n),n.unsubscribe());var r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];var a;try{var o=this.closingSelector;a=o()}catch(s){return this.error(s)}n=new Hd,this.closingSubscription=n,this.add(n),this.subscribing=!0,n.add(xh(a,new yh(this))),this.subscribing=!1},e}(bh);function _ui(t){return function(n){var r=new Tui(t),a=n.lift(r);return r.caught=a}}var Tui=function(){function t(e){this.selector=e}return t.prototype.call=function(e,n){return n.subscribe(new Cui(e,this.selector,this.caught))},t}(),Cui=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.selector=r,o.caught=a,o}return e.prototype.error=function(n){if(!this.isStopped){var r=void 0;try{r=this.selector(n,this.caught)}catch(s){t.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new yh(this);this.add(a);var o=xh(r,a);o!==a&&this.add(o)}},e}(bh);function kui(t){return function(e){return e.lift(new Vtt(t))}}function Rui(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return typeof t[t.length-1]=="function"&&(n=t.pop()),t.length===1&&V0(t[0])&&(t=t[0].slice()),function(r){return r.lift.call(aN([r].concat(t)),new Vtt(n))}}function Mui(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(n){return n.lift.call(Tne.apply(void 0,[n].concat(t)))}}function ran(t,e){return B6(t,e,1)}function Nui(t,e){return ran(function(){return t},e)}function Iui(t){return function(e){return e.lift(new Pui(t,e))}}var Pui=function(){function t(e,n){this.predicate=e,this.source=n}return t.prototype.call=function(e,n){return n.subscribe(new Oui(e,this.predicate,this.source))},t}(),Oui=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.predicate=r,o.source=a,o.count=0,o.index=0,o}return e.prototype._next=function(n){this.predicate?this._tryPredicate(n):this.count++},e.prototype._tryPredicate=function(n){var r;try{r=this.predicate(n,this.index++,this.source)}catch(a){this.destination.error(a);return}r&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(Ma);function Lui(t){return function(e){return e.lift(new Bui(t))}}var Bui=function(){function t(e){this.durationSelector=e}return t.prototype.call=function(e,n){return n.subscribe(new Dui(e,this.durationSelector))},t}(),Dui=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.durationSelector=r,a.hasValue=!1,a}return e.prototype._next=function(n){try{var r=this.durationSelector.call(this,n);r&&this._tryNext(n,r)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(n,r){var a=this.durationSubscription;this.value=n,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=xh(r,new yh(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var n=this.value,r=this.durationSubscription;r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,n)}},e}(bh);function $ui(t,e){return e===void 0&&(e=K0),function(n){return n.lift(new Fui(t,e))}}var Fui=function(){function t(e,n){this.dueTime=e,this.scheduler=n}return t.prototype.call=function(e,n){return n.subscribe(new jui(e,this.dueTime,this.scheduler))},t}(),jui=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.dueTime=r,o.scheduler=a,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return e.prototype._next=function(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Hui,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var n=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}},e.prototype.clearDebounce=function(){var n=this.debouncedSubscription;n!==null&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)},e}(Ma);function Hui(t){t.debouncedNext()}function roe(t){return t===void 0&&(t=null),function(e){return e.lift(new Uui(t))}}var Uui=function(){function t(e){this.defaultValue=e}return t.prototype.call=function(e,n){return n.subscribe(new zui(e,this.defaultValue))},t}(),zui=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.defaultValue=r,a.isEmpty=!0,a}return e.prototype._next=function(n){this.isEmpty=!1,this.destination.next(n)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(Ma);function ian(t){return t instanceof Date&&!isNaN(+t)}function Gui(t,e){e===void 0&&(e=K0);var n=ian(t),r=n?+t-e.now():Math.abs(t);return function(a){return a.lift(new Vui(r,e))}}var Vui=function(){function t(e,n){this.delay=e,this.scheduler=n}return t.prototype.call=function(e,n){return n.subscribe(new Kui(e,this.delay,this.scheduler))},t}(),Kui=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.delay=r,o.scheduler=a,o.queue=[],o.active=!1,o.errored=!1,o}return e.dispatch=function(n){for(var r=n.source,a=r.queue,o=n.scheduler,s=n.destination;a.length>0&&a[0].time-o.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var l=Math.max(0,a[0].time-o.now());this.schedule(n,l)}else this.unsubscribe(),r.active=!1},e.prototype._schedule=function(n){this.active=!0;var r=this.destination;r.add(n.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))},e.prototype.scheduleNotification=function(n){if(this.errored!==!0){var r=this.scheduler,a=new Wui(r.now()+this.delay,n);this.queue.push(a),this.active===!1&&this._schedule(r)}},e.prototype._next=function(n){this.scheduleNotification(eM.createNext(n))},e.prototype._error=function(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(eM.createComplete()),this.unsubscribe()},e}(Ma),Wui=function(){function t(e,n){this.time=e,this.notification=n}return t}();function Qui(t,e){return e?function(n){return new Yui(n,e).lift(new bEt(t))}:function(n){return n.lift(new bEt(t))}}var bEt=function(){function t(e){this.delayDurationSelector=e}return t.prototype.call=function(e,n){return n.subscribe(new qui(e,this.delayDurationSelector))},t}(),qui=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.delayDurationSelector=r,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(n,r,a,o,s){this.destination.next(n),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(n,r){this._error(n)},e.prototype.notifyComplete=function(n){var r=this.removeSubscription(n);r&&this.destination.next(r),this.tryComplete()},e.prototype._next=function(n){var r=this.index++;try{var a=this.delayDurationSelector(n,r);a&&this.tryDelay(a,n)}catch(o){this.destination.error(o)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(n){n.unsubscribe();var r=this.delayNotifierSubscriptions.indexOf(n);return r!==-1&&this.delayNotifierSubscriptions.splice(r,1),n.outerValue},e.prototype.tryDelay=function(n,r){var a=TM(this,n,r);if(a&&!a.closed){var o=this.destination;o.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(t9),Yui=function(t){or(e,t);function e(n,r){var a=t.call(this)||this;return a.source=n,a.subscriptionDelay=r,a}return e.prototype._subscribe=function(n){this.subscriptionDelay.subscribe(new Jui(n,this.source))},e}(_s),Jui=function(t){or(e,t);function e(n,r){var a=t.call(this)||this;return a.parent=n,a.source=r,a.sourceSubscribed=!1,a}return e.prototype._next=function(n){this.subscribeToSource()},e.prototype._error=function(n){this.unsubscribe(),this.parent.error(n)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(Ma);function Zui(){return function(e){return e.lift(new Xui)}}var Xui=function(){function t(){}return t.prototype.call=function(e,n){return n.subscribe(new edi(e))},t}(),edi=function(t){or(e,t);function e(n){return t.call(this,n)||this}return e.prototype._next=function(n){n.observe(this.destination)},e}(Ma);function tdi(t,e){return function(n){return n.lift(new ndi(t,e))}}var ndi=function(){function t(e,n){this.keySelector=e,this.flushes=n}return t.prototype.call=function(e,n){return n.subscribe(new rdi(e,this.keySelector,this.flushes))},t}(),rdi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.keySelector=r,o.values=new Set,a&&o.add(xh(a,new yh(o))),o}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(n){this._error(n)},e.prototype._next=function(n){this.keySelector?this._useKeySelector(n):this._finalizeNext(n,n)},e.prototype._useKeySelector=function(n){var r,a=this.destination;try{r=this.keySelector(n)}catch(o){a.error(o);return}this._finalizeNext(r,n)},e.prototype._finalizeNext=function(n,r){var a=this.values;a.has(n)||(a.add(n),this.destination.next(r))},e}(bh);function aan(t,e){return function(n){return n.lift(new idi(t,e))}}var idi=function(){function t(e,n){this.compare=e,this.keySelector=n}return t.prototype.call=function(e,n){return n.subscribe(new adi(e,this.compare,this.keySelector))},t}(),adi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.keySelector=a,o.hasKey=!1,typeof r=="function"&&(o.compare=r),o}return e.prototype.compare=function(n,r){return n===r},e.prototype._next=function(n){var r;try{var a=this.keySelector;r=a?a(n):n}catch(l){return this.destination.error(l)}var o=!1;if(this.hasKey)try{var s=this.compare;o=s(this.key,r)}catch(l){return this.destination.error(l)}else this.hasKey=!0;o||(this.key=r,this.destination.next(n))},e}(Ma);function odi(t,e){return aan(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}function cwe(t){return t===void 0&&(t=cdi),function(e){return e.lift(new sdi(t))}}var sdi=function(){function t(e){this.errorFactory=e}return t.prototype.call=function(e,n){return n.subscribe(new ldi(e,this.errorFactory))},t}(),ldi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.errorFactory=r,a.hasValue=!1,a}return e.prototype._next=function(n){this.hasValue=!0,this.destination.next(n)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var n=void 0;try{n=this.errorFactory()}catch(r){n=r}this.destination.error(n)},e}(Ma);function cdi(){return new eoe}function ont(t){return function(e){return t===0?jG():e.lift(new udi(t))}}var udi=function(){function t(e){if(this.total=e,this.total<0)throw new BU}return t.prototype.call=function(e,n){return n.subscribe(new ddi(e,this.total))},t}(),ddi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.total=r,a.count=0,a}return e.prototype._next=function(n){var r=this.total,a=++this.count;a<=r&&(this.destination.next(n),a===r&&(this.destination.complete(),this.unsubscribe()))},e}(Ma);function hdi(t,e){if(t<0)throw new BU;var n=arguments.length>=2;return function(r){return r.pipe(mP(function(a,o){return o===t}),ont(1),n?roe(e):cwe(function(){return new BU}))}}function fdi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(n){return Tne(n,QSe.apply(void 0,t))}}function pdi(t,e){return function(n){return n.lift(new mdi(t,e,n))}}var mdi=function(){function t(e,n,r){this.predicate=e,this.thisArg=n,this.source=r}return t.prototype.call=function(e,n){return n.subscribe(new gdi(e,this.predicate,this.thisArg,this.source))},t}(),gdi=function(t){or(e,t);function e(n,r,a,o){var s=t.call(this,n)||this;return s.predicate=r,s.thisArg=a,s.source=o,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(n){this.destination.next(n),this.destination.complete()},e.prototype._next=function(n){var r=!1;try{r=this.predicate.call(this.thisArg,n,this.index++,this.source)}catch(a){this.destination.error(a);return}r||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(Ma);function vdi(){return function(t){return t.lift(new Adi)}}var Adi=function(){function t(){}return t.prototype.call=function(e,n){return n.subscribe(new ydi(e))},t}(),ydi=function(t){or(e,t);function e(n){var r=t.call(this,n)||this;return r.hasCompleted=!1,r.hasSubscription=!1,r}return e.prototype._next=function(n){this.hasSubscription||(this.hasSubscription=!0,this.add(xh(n,new yh(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(bh);function oan(t,e){return e?function(n){return n.pipe(oan(function(r,a){return aN(t(r,a)).pipe(mE(function(o,s){return e(r,o,a,s)}))}))}:function(n){return n.lift(new bdi(t))}}var bdi=function(){function t(e){this.project=e}return t.prototype.call=function(e,n){return n.subscribe(new xdi(e,this.project))},t}(),xdi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.project=r,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(n){this.hasSubscription||this.tryNext(n)},e.prototype.tryNext=function(n){var r,a=this.index++;try{r=this.project(n,a)}catch(o){this.destination.error(o);return}this.hasSubscription=!0,this._innerSub(r)},e.prototype._innerSub=function(n){var r=new yh(this),a=this.destination;a.add(r);var o=xh(n,r);o!==r&&a.add(o)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(n){this.destination.next(n)},e.prototype.notifyError=function(n){this.destination.error(n)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(bh);function Edi(t,e,n){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Sdi(t,e,n))}}var Sdi=function(){function t(e,n,r){this.project=e,this.concurrent=n,this.scheduler=r}return t.prototype.call=function(e,n){return n.subscribe(new wdi(e,this.project,this.concurrent,this.scheduler))},t}(),wdi=function(t){or(e,t);function e(n,r,a,o){var s=t.call(this,n)||this;return s.project=r,s.concurrent=a,s.scheduler=o,s.index=0,s.active=0,s.hasCompleted=!1,a<Number.POSITIVE_INFINITY&&(s.buffer=[]),s}return e.dispatch=function(n){var r=n.subscriber,a=n.result,o=n.value,s=n.index;r.subscribeToProjection(a,o,s)},e.prototype._next=function(n){var r=this.destination;if(r.closed){this._complete();return}var a=this.index++;if(this.active<this.concurrent){r.next(n);try{var o=this.project,s=o(n,a);if(!this.scheduler)this.subscribeToProjection(s,n,a);else{var l={subscriber:this,result:s,value:n,index:a},c=this.destination;c.add(this.scheduler.schedule(e.dispatch,0,l))}}catch(u){r.error(u)}}else this.buffer.push(n)},e.prototype.subscribeToProjection=function(n,r,a){this.active++;var o=this.destination;o.add(xh(n,new yh(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&this.active===0&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(n){this._next(n)},e.prototype.notifyComplete=function(){var n=this.buffer;this.active--,n&&n.length>0&&this._next(n.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(bh);function _di(t){return function(e){return e.lift(new Tdi(t))}}var Tdi=function(){function t(e){this.callback=e}return t.prototype.call=function(e,n){return n.subscribe(new Cdi(e,this.callback))},t}(),Cdi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.add(new Hd(r)),a}return e}(Ma);function kdi(t,e){if(typeof t!="function")throw new TypeError("predicate is not a function");return function(n){return n.lift(new san(t,n,!1,e))}}var san=function(){function t(e,n,r,a){this.predicate=e,this.source=n,this.yieldIndex=r,this.thisArg=a}return t.prototype.call=function(e,n){return n.subscribe(new Rdi(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Rdi=function(t){or(e,t);function e(n,r,a,o,s){var l=t.call(this,n)||this;return l.predicate=r,l.source=a,l.yieldIndex=o,l.thisArg=s,l.index=0,l}return e.prototype.notifyComplete=function(n){var r=this.destination;r.next(n),r.complete(),this.unsubscribe()},e.prototype._next=function(n){var r=this,a=r.predicate,o=r.thisArg,s=this.index++;try{var l=a.call(o||this,n,s,this.source);l&&this.notifyComplete(this.yieldIndex?s:n)}catch(c){this.destination.error(c)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(Ma);function Mdi(t,e){return function(n){return n.lift(new san(t,n,!0,e))}}function Ndi(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?mP(function(a,o){return t(a,o,r)}):fP,ont(1),n?roe(e):cwe(function(){return new eoe}))}}function Idi(){return function(e){return e.lift(new Pdi)}}var Pdi=function(){function t(){}return t.prototype.call=function(e,n){return n.subscribe(new Odi(e))},t}(),Odi=function(t){or(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._next=function(n){},e}(Ma);function Ldi(){return function(t){return t.lift(new Bdi)}}var Bdi=function(){function t(){}return t.prototype.call=function(e,n){return n.subscribe(new Ddi(e))},t}(),Ddi=function(t){or(e,t);function e(n){return t.call(this,n)||this}return e.prototype.notifyComplete=function(n){var r=this.destination;r.next(n),r.complete()},e.prototype._next=function(n){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(Ma);function fAe(t){return function(n){return t===0?jG():n.lift(new $di(t))}}var $di=function(){function t(e){if(this.total=e,this.total<0)throw new BU}return t.prototype.call=function(e,n){return n.subscribe(new Fdi(e,this.total))},t}(),Fdi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.total=r,a.ring=new Array,a.count=0,a}return e.prototype._next=function(n){var r=this.ring,a=this.total,o=this.count++;if(r.length<a)r.push(n);else{var s=o%a;r[s]=n}},e.prototype._complete=function(){var n=this.destination,r=this.count;if(r>0)for(var a=this.count>=this.total?this.total:this.count,o=this.ring,s=0;s<a;s++){var l=r++%a;n.next(o[l])}n.complete()},e}(Ma);function jdi(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?mP(function(a,o){return t(a,o,r)}):fP,fAe(1),n?roe(e):cwe(function(){return new eoe}))}}function Hdi(t){return function(e){return e.lift(new Udi(t))}}var Udi=function(){function t(e){this.value=e}return t.prototype.call=function(e,n){return n.subscribe(new zdi(e,this.value))},t}(),zdi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.value=r,a}return e.prototype._next=function(n){this.destination.next(this.value)},e}(Ma);function Gdi(){return function(e){return e.lift(new Vdi)}}var Vdi=function(){function t(){}return t.prototype.call=function(e,n){return n.subscribe(new Kdi(e))},t}(),Kdi=function(t){or(e,t);function e(n){return t.call(this,n)||this}return e.prototype._next=function(n){this.destination.next(eM.createNext(n))},e.prototype._error=function(n){var r=this.destination;r.next(eM.createError(n)),r.complete()},e.prototype._complete=function(){var n=this.destination;n.next(eM.createComplete()),n.complete()},e}(Ma);function pAe(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(a){return a.lift(new Wdi(t,e,n))}}var Wdi=function(){function t(e,n,r){r===void 0&&(r=!1),this.accumulator=e,this.seed=n,this.hasSeed=r}return t.prototype.call=function(e,n){return n.subscribe(new Qdi(e,this.accumulator,this.seed,this.hasSeed))},t}(),Qdi=function(t){or(e,t);function e(n,r,a,o){var s=t.call(this,n)||this;return s.accumulator=r,s._seed=a,s.hasSeed=o,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(n){this.hasSeed=!0,this._seed=n},enumerable:!0,configurable:!0}),e.prototype._next=function(n){if(!this.hasSeed)this.seed=n,this.destination.next(n);else return this._tryNext(n)},e.prototype._tryNext=function(n){var r=this.index++,a;try{a=this.accumulator(this.seed,n,r)}catch(o){this.destination.error(o)}this.seed=a,this.destination.next(a)},e}(Ma);function uwe(t,e){return arguments.length>=2?function(r){return GUe(pAe(t,e),fAe(1),roe(e))(r)}:function(r){return GUe(pAe(function(a,o,s){return t(a,o,s+1)}),fAe(1))(r)}}function qdi(t){var e=typeof t=="function"?function(n,r){return t(n,r)>0?n:r}:function(n,r){return n>r?n:r};return uwe(e)}function Ydi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(n){return n.lift.call(Nin.apply(void 0,[n].concat(t)))}}function Jdi(t,e,n){return n===void 0&&(n=Number.POSITIVE_INFINITY),typeof e=="function"?B6(function(){return t},e,n):(typeof e=="number"&&(n=e),B6(function(){return t},n))}function Zdi(t,e,n){return n===void 0&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Xdi(t,e,n))}}var Xdi=function(){function t(e,n,r){this.accumulator=e,this.seed=n,this.concurrent=r}return t.prototype.call=function(e,n){return n.subscribe(new ehi(e,this.accumulator,this.seed,this.concurrent))},t}(),ehi=function(t){or(e,t);function e(n,r,a,o){var s=t.call(this,n)||this;return s.accumulator=r,s.acc=a,s.concurrent=o,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(n){if(this.active<this.concurrent){var r=this.index++,a=this.destination,o=void 0;try{var s=this.accumulator;o=s(this.acc,n,r)}catch(l){return a.error(l)}this.active++,this._innerSub(o)}else this.buffer.push(n)},e.prototype._innerSub=function(n){var r=new yh(this),a=this.destination;a.add(r);var o=xh(n,r);o!==r&&a.add(o)},e.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(n){var r=this.destination;this.acc=n,this.hasValue=!0,r.next(n)},e.prototype.notifyComplete=function(){var n=this.buffer;this.active--,n.length>0?this._next(n.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(bh);function thi(t){var e=typeof t=="function"?function(n,r){return t(n,r)<0?n:r}:function(n,r){return n<r?n:r};return uwe(e)}function D6(t,e){return function(r){var a;if(typeof t=="function"?a=t:a=function(){return t},typeof e=="function")return r.lift(new nhi(a,e));var o=Object.create(r,Psi);return o.source=r,o.subjectFactory=a,o}}var nhi=function(){function t(e,n){this.subjectFactory=e,this.selector=n}return t.prototype.call=function(e,n){var r=this.selector,a=this.subjectFactory(),o=r(a).subscribe(e);return o.add(n.subscribe(a)),o},t}();function rhi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===1&&V0(t[0])&&(t=t[0]),function(n){return n.lift(new ihi(t))}}var ihi=function(){function t(e){this.nextSources=e}return t.prototype.call=function(e,n){return n.subscribe(new ahi(e,this.nextSources))},t}(),ahi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.destination=n,a.nextSources=r,a}return e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(n){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var n=this.nextSources.shift();if(n){var r=new yh(this),a=this.destination;a.add(r);var o=xh(n,r);o!==r&&a.add(o)}else this.destination.complete()},e}(bh);function ohi(){return function(t){return t.lift(new shi)}}var shi=function(){function t(){}return t.prototype.call=function(e,n){return n.subscribe(new lhi(e))},t}(),lhi=function(t){or(e,t);function e(n){var r=t.call(this,n)||this;return r.hasPrev=!1,r}return e.prototype._next=function(n){var r;this.hasPrev?r=[this.prev,n]:this.hasPrev=!0,this.prev=n,r&&this.destination.next(r)},e}(Ma);function chi(t,e){return function(n){return[mP(t,e)(n),mP(Pin(t,e))(n)]}}function uhi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(n===0)throw new Error("list of properties cannot be empty.");return function(r){return mE(dhi(t,n))(r)}}function dhi(t,e){var n=function(r){for(var a=r,o=0;o<e;o++){var s=a!=null?a[t[o]]:void 0;if(s!==void 0)a=s;else return}return a};return n}function hhi(t){return t?D6(function(){return new lm},t):D6(new lm)}function fhi(t){return function(e){return D6(new hin(t))(e)}}function phi(){return function(t){return D6(new HG)(t)}}function mhi(t,e,n,r){n&&typeof n!="function"&&(r=n);var a=typeof n=="function"?n:void 0,o=new Gtt(t,e,r);return function(s){return D6(function(){return o},a)(s)}}function ghi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(r){return t.length===1&&V0(t[0])&&(t=t[0]),r.lift.call(Oin.apply(void 0,[r].concat(t)))}}function vhi(t){return t===void 0&&(t=-1),function(e){return t===0?jG():t<0?e.lift(new xEt(-1,e)):e.lift(new xEt(t-1,e))}}var xEt=function(){function t(e,n){this.count=e,this.source=n}return t.prototype.call=function(e,n){return n.subscribe(new Ahi(e,this.count,this.source))},t}(),Ahi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.count=r,o.source=a,o}return e.prototype.complete=function(){if(!this.isStopped){var n=this,r=n.source,a=n.count;if(a===0)return t.prototype.complete.call(this);a>-1&&(this.count=a-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(Ma);function yhi(t){return function(e){return e.lift(new bhi(t))}}var bhi=function(){function t(e){this.notifier=e}return t.prototype.call=function(e,n){return n.subscribe(new xhi(e,this.notifier,n))},t}(),xhi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.notifier=r,o.source=a,o.sourceIsBeingSubscribedTo=!0,o}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var n=this,r=n.notifications,a=n.retriesSubscription;r&&(r.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var n=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=n,this},e.prototype.subscribeToRetries=function(){this.notifications=new lm;var n;try{var r=this.notifier;n=r(this.notifications)}catch{return t.prototype.complete.call(this)}this.retries=n,this.retriesSubscription=xh(n,new yh(this))},e}(bh);function Ehi(t){return t===void 0&&(t=-1),function(e){return e.lift(new Shi(t,e))}}var Shi=function(){function t(e,n){this.count=e,this.source=n}return t.prototype.call=function(e,n){return n.subscribe(new whi(e,this.count,this.source))},t}(),whi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.count=r,o.source=a,o}return e.prototype.error=function(n){if(!this.isStopped){var r=this,a=r.source,o=r.count;if(o===0)return t.prototype.error.call(this,n);o>-1&&(this.count=o-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(Ma);function _hi(t){return function(e){return e.lift(new Thi(t,e))}}var Thi=function(){function t(e,n){this.notifier=e,this.source=n}return t.prototype.call=function(e,n){return n.subscribe(new Chi(e,this.notifier,this.source))},t}(),Chi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.notifier=r,o.source=a,o}return e.prototype.error=function(n){if(!this.isStopped){var r=this.errors,a=this.retries,o=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{r=new lm;try{var s=this.notifier;a=s(r)}catch(l){return t.prototype.error.call(this,l)}o=xh(a,new yh(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=a,this.retriesSubscription=o,r.next(n)}},e.prototype._unsubscribe=function(){var n=this,r=n.errors,a=n.retriesSubscription;r&&(r.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var n=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=n,this.source.subscribe(this)},e}(bh);function khi(t){return function(e){return e.lift(new Rhi(t))}}var Rhi=function(){function t(e){this.notifier=e}return t.prototype.call=function(e,n){var r=new Mhi(e),a=n.subscribe(r);return a.add(xh(this.notifier,new yh(r))),a},t}(),Mhi=function(t){or(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasValue=!1,n}return e.prototype._next=function(n){this.value=n,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(bh);function Nhi(t,e){return e===void 0&&(e=K0),function(n){return n.lift(new Ihi(t,e))}}var Ihi=function(){function t(e,n){this.period=e,this.scheduler=n}return t.prototype.call=function(e,n){return n.subscribe(new Phi(e,this.period,this.scheduler))},t}(),Phi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.period=r,o.scheduler=a,o.hasValue=!1,o.add(a.schedule(Ohi,r,{subscriber:o,period:r})),o}return e.prototype._next=function(n){this.lastValue=n,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(Ma);function Ohi(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Lhi(t,e){return function(n){return n.lift(new Bhi(t,e))}}var Bhi=function(){function t(e,n){this.compareTo=e,this.comparator=n}return t.prototype.call=function(e,n){return n.subscribe(new Dhi(e,this.compareTo,this.comparator))},t}(),Dhi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.compareTo=r,o.comparator=a,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(r.subscribe(new $hi(n,o))),o}return e.prototype._next=function(n){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(n),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var n=this,r=n._a,a=n._b,o=n.comparator;r.length>0&&a.length>0;){var s=r.shift(),l=a.shift(),c=!1;try{c=o?o(s,l):s===l}catch(u){this.destination.error(u)}c||this.emit(!1)}},e.prototype.emit=function(n){var r=this.destination;r.next(n),r.complete()},e.prototype.nextB=function(n){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(n),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}(Ma),$hi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.parent=r,a}return e.prototype._next=function(n){this.parent.nextB(n)},e.prototype._error=function(n){this.parent.error(n),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(Ma);function Fhi(){return new lm}function jhi(){return function(t){return Htt()(D6(Fhi)(t))}}function Hhi(t,e,n){var r;return t&&typeof t=="object"?r=t:r={bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(a){return a.lift(Uhi(r))}}function Uhi(t){var e=t.bufferSize,n=e===void 0?Number.POSITIVE_INFINITY:e,r=t.windowTime,a=r===void 0?Number.POSITIVE_INFINITY:r,o=t.refCount,s=t.scheduler,l,c=0,u,d=!1,h=!1;return function(p){c++;var m;!l||d?(d=!1,l=new Gtt(n,a,s),m=l.subscribe(this),u=p.subscribe({next:function(g){l.next(g)},error:function(g){d=!0,l.error(g)},complete:function(){h=!0,u=void 0,l.complete()}}),h&&(u=void 0)):m=l.subscribe(this),this.add(function(){c--,m.unsubscribe(),m=void 0,u&&!h&&o&&c===0&&(u.unsubscribe(),u=void 0,l=void 0)})}}function zhi(t){return function(e){return e.lift(new Ghi(t,e))}}var Ghi=function(){function t(e,n){this.predicate=e,this.source=n}return t.prototype.call=function(e,n){return n.subscribe(new Vhi(e,this.predicate,this.source))},t}(),Vhi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.predicate=r,o.source=a,o.seenValue=!1,o.index=0,o}return e.prototype.applySingleValue=function(n){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=n)},e.prototype._next=function(n){var r=this.index++;this.predicate?this.tryNext(n,r):this.applySingleValue(n)},e.prototype.tryNext=function(n,r){try{this.predicate(n,r,this.source)&&this.applySingleValue(n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var n=this.destination;this.index>0?(n.next(this.seenValue?this.singleValue:void 0),n.complete()):n.error(new eoe)},e}(Ma);function Khi(t){return function(e){return e.lift(new Whi(t))}}var Whi=function(){function t(e){this.total=e}return t.prototype.call=function(e,n){return n.subscribe(new Qhi(e,this.total))},t}(),Qhi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.total=r,a.count=0,a}return e.prototype._next=function(n){++this.count>this.total&&this.destination.next(n)},e}(Ma);function qhi(t){return function(e){return e.lift(new Yhi(t))}}var Yhi=function(){function t(e){if(this._skipCount=e,this._skipCount<0)throw new BU}return t.prototype.call=function(e,n){return this._skipCount===0?n.subscribe(new Ma(e)):n.subscribe(new Jhi(e,this._skipCount))},t}(),Jhi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a._skipCount=r,a._count=0,a._ring=new Array(r),a}return e.prototype._next=function(n){var r=this._skipCount,a=this._count++;if(a<r)this._ring[a]=n;else{var o=a%r,s=this._ring,l=s[o];s[o]=n,this.destination.next(l)}},e}(Ma);function Zhi(t){return function(e){return e.lift(new Xhi(t))}}var Xhi=function(){function t(e){this.notifier=e}return t.prototype.call=function(e,n){return n.subscribe(new efi(e,this.notifier))},t}(),efi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;a.hasValue=!1;var o=new yh(a);a.add(o),a.innerSubscription=o;var s=xh(r,o);return s!==o&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(n){this.hasValue&&t.prototype._next.call(this,n)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(bh);function tfi(t){return function(e){return e.lift(new nfi(t))}}var nfi=function(){function t(e){this.predicate=e}return t.prototype.call=function(e,n){return n.subscribe(new rfi(e,this.predicate))},t}(),rfi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.predicate=r,a.skipping=!0,a.index=0,a}return e.prototype._next=function(n){var r=this.destination;this.skipping&&this.tryCallPredicate(n),this.skipping||r.next(n)},e.prototype.tryCallPredicate=function(n){try{var r=this.predicate(n,this.index++);this.skipping=!!r}catch(a){this.destination.error(a)}},e}(Ma);function ifi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return jy(n)?(t.pop(),function(r){return Tne(t,r,n)}):function(r){return Tne(t,r)}}var afi=function(t){or(e,t);function e(n,r,a){r===void 0&&(r=0),a===void 0&&(a=Tme);var o=t.call(this)||this;return o.source=n,o.delayTime=r,o.scheduler=a,(!DU(r)||r<0)&&(o.delayTime=0),(!a||typeof a.schedule!="function")&&(o.scheduler=Tme),o}return e.create=function(n,r,a){return r===void 0&&(r=0),a===void 0&&(a=Tme),new e(n,r,a)},e.dispatch=function(n){var r=n.source,a=n.subscriber;return this.add(r.subscribe(a))},e.prototype._subscribe=function(n){var r=this.delayTime,a=this.source,o=this.scheduler;return o.schedule(e.dispatch,r,{source:a,subscriber:n})},e}(_s);function ofi(t,e){return e===void 0&&(e=0),function(r){return r.lift(new sfi(t,e))}}var sfi=function(){function t(e,n){this.scheduler=e,this.delay=n}return t.prototype.call=function(e,n){return new afi(n,this.delay,this.scheduler).subscribe(e)},t}();function Cne(t,e){return typeof e=="function"?function(n){return n.pipe(Cne(function(r,a){return aN(t(r,a)).pipe(mE(function(o,s){return e(r,o,a,s)}))}))}:function(n){return n.lift(new lfi(t))}}var lfi=function(){function t(e){this.project=e}return t.prototype.call=function(e,n){return n.subscribe(new cfi(e,this.project))},t}(),cfi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.project=r,a.index=0,a}return e.prototype._next=function(n){var r,a=this.index++;try{r=this.project(n,a)}catch(o){this.destination.error(o);return}this._innerSub(r)},e.prototype._innerSub=function(n){var r=this.innerSubscription;r&&r.unsubscribe();var a=new yh(this),o=this.destination;o.add(a),this.innerSubscription=xh(n,a),this.innerSubscription!==a&&o.add(this.innerSubscription)},e.prototype._complete=function(){var n=this.innerSubscription;(!n||n.closed)&&t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(n){this.destination.next(n)},e}(bh);function ufi(){return Cne(fP)}function dfi(t,e){return e?Cne(function(){return t},e):Cne(function(){return t})}function hfi(t){return function(e){return e.lift(new ffi(t))}}var ffi=function(){function t(e){this.notifier=e}return t.prototype.call=function(e,n){var r=new pfi(e),a=xh(this.notifier,new yh(r));return a&&!r.seenValue?(r.add(a),n.subscribe(r)):r},t}(),pfi=function(t){or(e,t);function e(n){var r=t.call(this,n)||this;return r.seenValue=!1,r}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(bh);function mfi(t,e){return e===void 0&&(e=!1),function(n){return n.lift(new gfi(t,e))}}var gfi=function(){function t(e,n){this.predicate=e,this.inclusive=n}return t.prototype.call=function(e,n){return n.subscribe(new vfi(e,this.predicate,this.inclusive))},t}(),vfi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.predicate=r,o.inclusive=a,o.index=0,o}return e.prototype._next=function(n){var r=this.destination,a;try{a=this.predicate(n,this.index++)}catch(o){r.error(o);return}this.nextOrComplete(n,a)},e.prototype.nextOrComplete=function(n,r){var a=this.destination;r?a.next(n):(this.inclusive&&a.next(n),a.complete())},e}(Ma);function Afi(t,e,n){return function(a){return a.lift(new yfi(t,e,n))}}var yfi=function(){function t(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}return t.prototype.call=function(e,n){return n.subscribe(new bfi(e,this.nextOrObserver,this.error,this.complete))},t}(),bfi=function(t){or(e,t);function e(n,r,a,o){var s=t.call(this,n)||this;return s._tapNext=pT,s._tapError=pT,s._tapComplete=pT,s._tapError=a||pT,s._tapComplete=o||pT,OU(r)?(s._context=s,s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||pT,s._tapError=r.error||pT,s._tapComplete=r.complete||pT),s}return e.prototype._next=function(n){try{this._tapNext.call(this._context,n)}catch(r){this.destination.error(r);return}this.destination.next(n)},e.prototype._error=function(n){try{this._tapError.call(this._context,n)}catch(r){this.destination.error(r);return}this.destination.error(n)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(n){this.destination.error(n);return}return this.destination.complete()},e}(Ma),lan={leading:!0,trailing:!1};function xfi(t,e){return e===void 0&&(e=lan),function(n){return n.lift(new Efi(t,!!e.leading,!!e.trailing))}}var Efi=function(){function t(e,n,r){this.durationSelector=e,this.leading=n,this.trailing=r}return t.prototype.call=function(e,n){return n.subscribe(new Sfi(e,this.durationSelector,this.leading,this.trailing))},t}(),Sfi=function(t){or(e,t);function e(n,r,a,o){var s=t.call(this,n)||this;return s.destination=n,s.durationSelector=r,s._leading=a,s._trailing=o,s._hasValue=!1,s}return e.prototype._next=function(n){this._hasValue=!0,this._sendValue=n,this._throttled||(this._leading?this.send():this.throttle(n))},e.prototype.send=function(){var n=this,r=n._hasValue,a=n._sendValue;r&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(n){var r=this.tryDurationSelector(n);r&&this.add(this._throttled=xh(r,new yh(this)))},e.prototype.tryDurationSelector=function(n){try{return this.durationSelector(n)}catch(r){return this.destination.error(r),null}},e.prototype.throttlingDone=function(){var n=this,r=n._throttled,a=n._trailing;r&&r.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(bh);function wfi(t,e,n){return e===void 0&&(e=K0),n===void 0&&(n=lan),function(r){return r.lift(new _fi(t,e,n.leading,n.trailing))}}var _fi=function(){function t(e,n,r,a){this.duration=e,this.scheduler=n,this.leading=r,this.trailing=a}return t.prototype.call=function(e,n){return n.subscribe(new Tfi(e,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Tfi=function(t){or(e,t);function e(n,r,a,o,s){var l=t.call(this,n)||this;return l.duration=r,l.scheduler=a,l.leading=o,l.trailing=s,l._hasTrailingValue=!1,l._trailingValue=null,l}return e.prototype._next=function(n){this.throttled?this.trailing&&(this._trailingValue=n,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Cfi,this.duration,{subscriber:this})),this.leading?this.destination.next(n):this.trailing&&(this._trailingValue=n,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var n=this.throttled;n&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),n.unsubscribe(),this.remove(n),this.throttled=null)},e}(Ma);function Cfi(t){var e=t.subscriber;e.clearThrottle()}function kfi(t){return t===void 0&&(t=K0),function(e){return Wtt(function(){return e.pipe(pAe(function(n,r){var a=n.current;return{value:r,current:t.now(),last:a}},{current:t.now(),value:void 0,last:void 0}),mE(function(n){var r=n.current,a=n.last,o=n.value;return new Rfi(o,r-a)}))})}}var Rfi=function(){function t(e,n){this.value=e,this.interval=n}return t}();function can(t,e,n){return n===void 0&&(n=K0),function(r){var a=ian(t),o=a?+t-n.now():Math.abs(t);return r.lift(new Mfi(o,a,e,n))}}var Mfi=function(){function t(e,n,r,a){this.waitFor=e,this.absoluteTimeout=n,this.withObservable=r,this.scheduler=a}return t.prototype.call=function(e,n){return n.subscribe(new Nfi(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Nfi=function(t){or(e,t);function e(n,r,a,o,s){var l=t.call(this,n)||this;return l.absoluteTimeout=r,l.waitFor=a,l.withObservable=o,l.scheduler=s,l.scheduleTimeout(),l}return e.dispatchTimeout=function(n){var r=n.withObservable;n._unsubscribeAndRecycle(),n.add(xh(r,new yh(n)))},e.prototype.scheduleTimeout=function(){var n=this.action;n?this.action=n.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(n){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,n)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(bh);function Ifi(t,e){return e===void 0&&(e=K0),can(t,ztt(new xin),e)}function Pfi(t){return t===void 0&&(t=K0),mE(function(e){return new Ofi(e,t.now())})}var Ofi=function(){function t(e,n){this.value=e,this.timestamp=n}return t}();function Lfi(t,e,n){return n===0?[e]:(t.push(e),t)}function Bfi(){return uwe(Lfi,[])}function Dfi(t){return function(n){return n.lift(new $fi(t))}}var $fi=function(){function t(e){this.windowBoundaries=e}return t.prototype.call=function(e,n){var r=new Ffi(e),a=n.subscribe(r);return a.closed||r.add(xh(this.windowBoundaries,new yh(r))),a},t}(),Ffi=function(t){or(e,t);function e(n){var r=t.call(this,n)||this;return r.window=new lm,n.next(r.window),r}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(n){this._error(n)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(n){this.window.next(n)},e.prototype._error=function(n){this.window.error(n),this.destination.error(n)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var n=this.window;n&&n.complete();var r=this.destination,a=this.window=new lm;r.next(a)},e}(bh);function jfi(t,e){return e===void 0&&(e=0),function(r){return r.lift(new Hfi(t,e))}}var Hfi=function(){function t(e,n){this.windowSize=e,this.startWindowEvery=n}return t.prototype.call=function(e,n){return n.subscribe(new Ufi(e,this.windowSize,this.startWindowEvery))},t}(),Ufi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.destination=n,o.windowSize=r,o.startWindowEvery=a,o.windows=[new lm],o.count=0,n.next(o.windows[0]),o}return e.prototype._next=function(n){for(var r=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,o=this.windowSize,s=this.windows,l=s.length,c=0;c<l&&!this.closed;c++)s[c].next(n);var u=this.count-o+1;if(u>=0&&u%r===0&&!this.closed&&s.shift().complete(),++this.count%r===0&&!this.closed){var d=new lm;s.push(d),a.next(d)}},e.prototype._error=function(n){var r=this.windows;if(r)for(;r.length>0&&!this.closed;)r.shift().error(n);this.destination.error(n)},e.prototype._complete=function(){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(Ma);function zfi(t){var e=K0,n=null,r=Number.POSITIVE_INFINITY;return jy(arguments[3])&&(e=arguments[3]),jy(arguments[2])?e=arguments[2]:DU(arguments[2])&&(r=Number(arguments[2])),jy(arguments[1])?e=arguments[1]:DU(arguments[1])&&(n=Number(arguments[1])),function(o){return o.lift(new Gfi(t,n,r,e))}}var Gfi=function(){function t(e,n,r,a){this.windowTimeSpan=e,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=a}return t.prototype.call=function(e,n){return n.subscribe(new Kfi(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Vfi=function(t){or(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._numberOfNextedValues=0,n}return e.prototype.next=function(n){this._numberOfNextedValues++,t.prototype.next.call(this,n)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(lm),Kfi=function(t){or(e,t);function e(n,r,a,o,s){var l=t.call(this,n)||this;l.destination=n,l.windowTimeSpan=r,l.windowCreationInterval=a,l.maxWindowSize=o,l.scheduler=s,l.windows=[];var c=l.openWindow();if(a!==null&&a>=0){var u={subscriber:l,window:c,context:null},d={windowTimeSpan:r,windowCreationInterval:a,subscriber:l,scheduler:s};l.add(s.schedule(uan,r,u)),l.add(s.schedule(Qfi,a,d))}else{var h={subscriber:l,window:c,windowTimeSpan:r};l.add(s.schedule(Wfi,r,h))}return l}return e.prototype._next=function(n){for(var r=this.windows,a=r.length,o=0;o<a;o++){var s=r[o];s.closed||(s.next(n),s.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(n){for(var r=this.windows;r.length>0;)r.shift().error(n);this.destination.error(n)},e.prototype._complete=function(){for(var n=this.windows;n.length>0;){var r=n.shift();r.closed||r.complete()}this.destination.complete()},e.prototype.openWindow=function(){var n=new Vfi;this.windows.push(n);var r=this.destination;return r.next(n),n},e.prototype.closeWindow=function(n){n.complete();var r=this.windows;r.splice(r.indexOf(n),1)},e}(Ma);function Wfi(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function Qfi(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,a=t.windowCreationInterval,o=n.openWindow(),s=this,l={action:s,subscription:null},c={subscriber:n,window:o,context:l};l.subscription=r.schedule(uan,e,c),s.add(l.subscription),s.schedule(t,a)}function uan(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function qfi(t,e){return function(n){return n.lift(new Yfi(t,e))}}var Yfi=function(){function t(e,n){this.openings=e,this.closingSelector=n}return t.prototype.call=function(e,n){return n.subscribe(new Jfi(e,this.openings,this.closingSelector))},t}(),Jfi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.openings=r,o.closingSelector=a,o.contexts=[],o.add(o.openSubscription=TM(o,r,r)),o}return e.prototype._next=function(n){var r=this.contexts;if(r)for(var a=r.length,o=0;o<a;o++)r[o].window.next(n)},e.prototype._error=function(n){var r=this.contexts;if(this.contexts=null,r)for(var a=r.length,o=-1;++o<a;){var s=r[o];s.window.error(n),s.subscription.unsubscribe()}t.prototype._error.call(this,n)},e.prototype._complete=function(){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,a=-1;++a<r;){var o=n[a];o.window.complete(),o.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,a=-1;++a<r;){var o=n[a];o.window.unsubscribe(),o.subscription.unsubscribe()}},e.prototype.notifyNext=function(n,r,a,o,s){if(n===this.openings){var l=void 0;try{var c=this.closingSelector;l=c(r)}catch(p){return this.error(p)}var u=new lm,d=new Hd,h={window:u,subscription:d};this.contexts.push(h);var f=TM(this,l,h);f.closed?this.closeWindow(this.contexts.length-1):(f.context=h,d.add(f)),this.destination.next(u)}else this.closeWindow(this.contexts.indexOf(n))},e.prototype.notifyError=function(n){this.error(n)},e.prototype.notifyComplete=function(n){n!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(n.context))},e.prototype.closeWindow=function(n){if(n!==-1){var r=this.contexts,a=r[n],o=a.window,s=a.subscription;r.splice(n,1),o.complete(),s.unsubscribe()}},e}(t9);function Zfi(t){return function(n){return n.lift(new Xfi(t))}}var Xfi=function(){function t(e){this.closingSelector=e}return t.prototype.call=function(e,n){return n.subscribe(new epi(e,this.closingSelector))},t}(),epi=function(t){or(e,t);function e(n,r){var a=t.call(this,n)||this;return a.destination=n,a.closingSelector=r,a.openWindow(),a}return e.prototype.notifyNext=function(n,r,a,o,s){this.openWindow(s)},e.prototype.notifyError=function(n){this._error(n)},e.prototype.notifyComplete=function(n){this.openWindow(n)},e.prototype._next=function(n){this.window.next(n)},e.prototype._error=function(n){this.window.error(n),this.destination.error(n),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(n){n===void 0&&(n=null),n&&(this.remove(n),n.unsubscribe());var r=this.window;r&&r.complete();var a=this.window=new lm;this.destination.next(a);var o;try{var s=this.closingSelector;o=s()}catch(l){this.destination.error(l),this.window.error(l);return}this.add(this.closingNotification=TM(this,o))},e}(t9);function tpi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(n){var r;typeof t[t.length-1]=="function"&&(r=t.pop());var a=t;return n.lift(new npi(a,r))}}var npi=function(){function t(e,n){this.observables=e,this.project=n}return t.prototype.call=function(e,n){return n.subscribe(new rpi(e,this.observables,this.project))},t}(),rpi=function(t){or(e,t);function e(n,r,a){var o=t.call(this,n)||this;o.observables=r,o.project=a,o.toRespond=[];var s=r.length;o.values=new Array(s);for(var l=0;l<s;l++)o.toRespond.push(l);for(var l=0;l<s;l++){var c=r[l];o.add(TM(o,c,void 0,l))}return o}return e.prototype.notifyNext=function(n,r,a){this.values[a]=r;var o=this.toRespond;if(o.length>0){var s=o.indexOf(a);s!==-1&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(n){if(this.toRespond.length===0){var r=[n].concat(this.values);this.project?this._tryProject(r):this.destination.next(r)}},e.prototype._tryProject=function(n){var r;try{r=this.project.apply(this,n)}catch(a){this.destination.error(a);return}this.destination.next(r)},e}(t9);function ipi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(r){return r.lift.call(Bin.apply(void 0,[r].concat(t)))}}function api(t){return function(e){return e.lift(new Din(t))}}const opi=Object.freeze(Object.defineProperty({__proto__:null,audit:tan,auditTime:oui,buffer:sui,bufferCount:uui,bufferTime:pui,bufferToggle:yui,bufferWhen:Eui,catchError:_ui,combineAll:kui,combineLatest:Rui,concat:Mui,concatAll:Cin,concatMap:ran,concatMapTo:Nui,count:Iui,debounce:Lui,debounceTime:$ui,defaultIfEmpty:roe,delay:Gui,delayWhen:Qui,dematerialize:Zui,distinct:tdi,distinctUntilChanged:aan,distinctUntilKeyChanged:odi,elementAt:hdi,endWith:fdi,every:pdi,exhaust:vdi,exhaustMap:oan,expand:Edi,filter:mP,finalize:_di,find:kdi,findIndex:Mdi,first:Ndi,flatMap:Cli,groupBy:Lsi,ignoreElements:Idi,isEmpty:Ldi,last:jdi,map:mE,mapTo:Hdi,materialize:Gdi,max:qdi,merge:Ydi,mergeAll:Ktt,mergeMap:B6,mergeMapTo:Jdi,mergeScan:Zdi,min:thi,multicast:D6,observeOn:Vsi,onErrorResumeNext:rhi,pairwise:ohi,partition:chi,pluck:uhi,publish:hhi,publishBehavior:fhi,publishLast:phi,publishReplay:mhi,race:ghi,reduce:uwe,refCount:Htt,repeat:vhi,repeatWhen:yhi,retry:Ehi,retryWhen:_hi,sample:khi,sampleTime:Nhi,scan:pAe,sequenceEqual:Lhi,share:jhi,shareReplay:Hhi,single:zhi,skip:Khi,skipLast:qhi,skipUntil:Zhi,skipWhile:tfi,startWith:ifi,subscribeOn:ofi,switchAll:ufi,switchMap:Cne,switchMapTo:dfi,take:ont,takeLast:fAe,takeUntil:hfi,takeWhile:mfi,tap:Afi,throttle:xfi,throttleTime:wfi,throwIfEmpty:cwe,timeInterval:kfi,timeout:Ifi,timeoutWith:can,timestamp:Pfi,toArray:Bfi,window:Dfi,windowCount:jfi,windowTime:zfi,windowToggle:qfi,windowWhen:Zfi,withLatestFrom:tpi,zip:ipi,zipAll:api},Symbol.toStringTag,{value:"Module"})),snt=Uu(opi);var dwe={},gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.ClientMessagePublishEvent=gx.ClientMessageSetSessionConfig=gx.ClientMessageGetSessionConfig=gx.ClientMessageIsLinked=gx.ClientMessageHostSession=void 0;function spi(t){return Object.assign({type:"HostSession"},t)}gx.ClientMessageHostSession=spi;function lpi(t){return Object.assign({type:"IsLinked"},t)}gx.ClientMessageIsLinked=lpi;function cpi(t){return Object.assign({type:"GetSessionConfig"},t)}gx.ClientMessageGetSessionConfig=cpi;function upi(t){return Object.assign({type:"SetSessionConfig"},t)}gx.ClientMessageSetSessionConfig=upi;function dpi(t){return Object.assign({type:"PublishEvent"},t)}gx.ClientMessagePublishEvent=dpi;var dan={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RxWebSocket=t.ConnectionState=void 0;const e=qSe,n=snt;var r;(function(o){o[o.DISCONNECTED=0]="DISCONNECTED",o[o.CONNECTING=1]="CONNECTING",o[o.CONNECTED=2]="CONNECTED"})(r=t.ConnectionState||(t.ConnectionState={}));class a{constructor(s,l=WebSocket){this.WebSocketClass=l,this.webSocket=null,this.connectionStateSubject=new e.BehaviorSubject(r.DISCONNECTED),this.incomingDataSubject=new e.Subject,this.url=s.replace(/^http/,"ws")}connect(){return this.webSocket?(0,e.throwError)(new Error("webSocket object is not null")):new e.Observable(s=>{let l;try{this.webSocket=l=new this.WebSocketClass(this.url)}catch(c){s.error(c);return}this.connectionStateSubject.next(r.CONNECTING),l.onclose=c=>{this.clearWebSocket(),s.error(new Error(`websocket error ${c.code}: ${c.reason}`)),this.connectionStateSubject.next(r.DISCONNECTED)},l.onopen=c=>{s.next(),s.complete(),this.connectionStateSubject.next(r.CONNECTED)},l.onmessage=c=>{this.incomingDataSubject.next(c.data)}}).pipe((0,n.take)(1))}disconnect(){const{webSocket:s}=this;if(s){this.clearWebSocket(),this.connectionStateSubject.next(r.DISCONNECTED);try{s.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,n.flatMap)(s=>{let l;try{l=JSON.parse(s)}catch{return(0,e.empty)()}return(0,e.of)(l)}))}sendData(s){const{webSocket:l}=this;if(!l)throw new Error("websocket is not connected");l.send(s)}clearWebSocket(){const{webSocket:s}=this;s&&(this.webSocket=null,s.onclose=null,s.onerror=null,s.onmessage=null,s.onopen=null)}}t.RxWebSocket=a})(dan);var hwe={};Object.defineProperty(hwe,"__esModule",{value:!0});hwe.isServerMessageFail=void 0;function hpi(t){return t&&t.type==="Fail"&&typeof t.id=="number"&&typeof t.sessionId=="string"&&typeof t.error=="string"}hwe.isServerMessageFail=hpi;Object.defineProperty(dwe,"__esModule",{value:!0});dwe.WalletSDKConnection=void 0;const oS=qSe,il=snt,GQ=NG,A$=Bae,VQ=gx,KQ=RG,Gce=dan,dOe=hwe,EEt=1e4,fpi=6e4;class ppi{constructor(e,n,r,a,o=WebSocket){this.sessionId=e,this.sessionKey=n,this.diagnostic=a,this.subscriptions=new oS.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,A$.IntNumber)(1),this.connectedSubject=new oS.BehaviorSubject(!1),this.linkedSubject=new oS.BehaviorSubject(!1),this.sessionConfigSubject=new oS.ReplaySubject(1);const s=new Gce.RxWebSocket(r+"/rpc",o);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,il.tap)(l=>{var c;return(c=this.diagnostic)===null||c===void 0?void 0:c.log(KQ.EVENTS.CONNECTED_STATE_CHANGE,{state:l,sessionIdHash:GQ.Session.hash(e)})}),(0,il.skip)(1),(0,il.filter)(l=>l===Gce.ConnectionState.DISCONNECTED&&!this.destroyed),(0,il.delay)(5e3),(0,il.filter)(l=>!this.destroyed),(0,il.flatMap)(l=>s.connect()),(0,il.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,il.skip)(2),(0,il.switchMap)(l=>(0,oS.iif)(()=>l===Gce.ConnectionState.CONNECTED,this.authenticate().pipe((0,il.tap)(c=>this.sendIsLinked()),(0,il.tap)(c=>this.sendGetSessionConfig()),(0,il.map)(c=>!0)),(0,oS.of)(!1))),(0,il.distinctUntilChanged)(),(0,il.catchError)(l=>(0,oS.of)(!1))).subscribe(l=>this.connectedSubject.next(l))),this.subscriptions.add(s.connectionState$.pipe((0,il.skip)(1),(0,il.switchMap)(l=>(0,oS.iif)(()=>l===Gce.ConnectionState.CONNECTED,(0,oS.timer)(0,EEt)))).subscribe(l=>l===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,il.filter)(l=>l==="h")).subscribe(l=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,il.filter)(l=>["IsLinkedOK","Linked"].includes(l.type))).subscribe(l=>{var c;const u=l;(c=this.diagnostic)===null||c===void 0||c.log(KQ.EVENTS.LINKED,{sessionIdHash:GQ.Session.hash(e),linked:u.linked,type:l.type,onlineGuests:u.onlineGuests}),this.linkedSubject.next(u.linked||u.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,il.filter)(l=>["GetSessionConfigOK","SessionConfigUpdated"].includes(l.type))).subscribe(l=>{var c;const u=l;(c=this.diagnostic)===null||c===void 0||c.log(KQ.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:GQ.Session.hash(e),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.sessionConfigSubject.next({webhookId:u.webhookId,webhookUrl:u.webhookUrl,metadata:u.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(KQ.EVENTS.STARTED_CONNECTING,{sessionIdHash:GQ.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(KQ.EVENTS.DISCONNECTED,{sessionIdHash:GQ.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,il.filter)(e=>e),(0,il.take)(1),(0,il.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,il.filter)(e=>e),(0,il.take)(1),(0,il.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,il.filter)(e=>{if(e.type!=="Event")return!1;const n=e;return typeof n.sessionId=="string"&&typeof n.eventId=="string"&&typeof n.event=="string"&&typeof n.data=="string"}),(0,il.map)(e=>e))}setSessionMetadata(e,n){const r=(0,VQ.ClientMessageSetSessionConfig)({id:(0,A$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:n}});return this.onceConnected$.pipe((0,il.flatMap)(a=>this.makeRequest(r)),(0,il.map)(a=>{if((0,dOe.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,n,r=!1){const a=(0,VQ.ClientMessagePublishEvent)({id:(0,A$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:n,callWebhook:r});return this.onceLinked$.pipe((0,il.flatMap)(o=>this.makeRequest(a)),(0,il.map)(o=>{if((0,dOe.isServerMessageFail)(o))throw new Error(o.error||"failed to publish event");return o.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>EEt*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,n=fpi){const r=e.id;try{this.sendData(e)}catch(a){return(0,oS.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,il.timeoutWith)(n,(0,oS.throwError)(new Error(`request ${r} timed out`))),(0,il.filter)(a=>a.id===r),(0,il.take)(1))}authenticate(){const e=(0,VQ.ClientMessageHostSession)({id:(0,A$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,il.map)(n=>{if((0,dOe.isServerMessageFail)(n))throw new Error(n.error||"failed to authentcate")}))}sendIsLinked(){const e=(0,VQ.ClientMessageIsLinked)({id:(0,A$.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){const e=(0,VQ.ClientMessageGetSessionConfig)({id:(0,A$.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}dwe.WalletSDKConnection=ppi;var FU={};Object.defineProperty(FU,"__esModule",{value:!0});FU.decrypt=FU.encrypt=void 0;const mAe=ya;async function mpi(t,e){if(e.length!==64)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.importKey("raw",(0,mAe.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},r,a.encode(t)),s=16,l=o.slice(o.byteLength-s),c=o.slice(0,o.byteLength-s),u=new Uint8Array(l),d=new Uint8Array(c),h=new Uint8Array([...n,...u,...d]);return(0,mAe.uint8ArrayToHex)(h)}FU.encrypt=mpi;function gpi(t,e){if(e.length!==64)throw Error("secret must be 256 bits");return new Promise((n,r)=>{(async function(){const a=await crypto.subtle.importKey("raw",(0,mAe.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,mAe.hexStringToUint8Array)(t),s=o.slice(0,12),l=o.slice(12,28),c=o.slice(28),u=new Uint8Array([...c,...l]),d={name:"AES-GCM",iv:new Uint8Array(s)};try{const h=await window.crypto.subtle.decrypt(d,a,u),f=new TextDecoder;n(f.decode(h))}catch(h){r(h)}})()})}FU.decrypt=gpi;var fwe={},pwe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,function(e){e.SESSION_ID_REQUEST="SESSION_ID_REQUEST",e.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",e.LINKED="LINKED",e.UNLINKED="UNLINKED",e.WEB3_REQUEST="WEB3_REQUEST",e.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",e.WEB3_RESPONSE="WEB3_RESPONSE"}(t.RelayMessageType||(t.RelayMessageType={}))})(pwe);Object.defineProperty(fwe,"__esModule",{value:!0});fwe.Web3RequestCanceledMessage=void 0;const vpi=pwe;function Api(t){return{type:vpi.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}fwe.Web3RequestCanceledMessage=Api;var mwe={};Object.defineProperty(mwe,"__esModule",{value:!0});mwe.Web3RequestMessage=void 0;const ypi=pwe;function bpi(t){return Object.assign({type:ypi.RelayMessageType.WEB3_REQUEST},t)}mwe.Web3RequestMessage=bpi;var jU={};Object.defineProperty(jU,"__esModule",{value:!0});jU.isWeb3ResponseMessage=jU.Web3ResponseMessage=void 0;const han=pwe;function xpi(t){return Object.assign({type:han.RelayMessageType.WEB3_RESPONSE},t)}jU.Web3ResponseMessage=xpi;function Epi(t){return t&&t.type===han.RelayMessageType.WEB3_RESPONSE}jU.isWeb3ResponseMessage=Epi;var Spi=en&&en.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),wpi=en&&en.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),fan=en&&en.__decorate||function(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},_pi=en&&en.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Spi(e,t,n);return wpi(e,t),e},Tpi=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(swe,"__esModule",{value:!0});swe.WalletSDKRelay=void 0;const pan=Tpi(lwe),S4=qSe,Yf=snt,Fg=RG,Cpi=dwe,y$=Rae,kpi=Bae,od=ya,ZN=_pi(FU),XN=NG,Vce=rw,Nm=ASe,Rpi=fwe,Mpi=mwe,Pb=Pu,SA=jU;class US extends Vce.WalletSDKRelayAbstract{constructor(e){var n;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new S4.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new S4.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;const{session:r,ui:a,connection:o}=this.subscribe();if(this._session=r,this.connection=o,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(n=e.reloadOnDisconnect)!==null&&n!==void 0?n:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));const e=XN.Session.load(this.storage)||new XN.Session(this.storage).save(),n=new Cpi.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(n.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(n.incomingEvent$.pipe((0,Yf.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(n.linked$.pipe((0,Yf.skip)(1),(0,Yf.tap)(a=>{var o;this.isLinked=a;const s=this.storage.getItem(Vce.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){const l=s.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";if(l[0]!==""&&!a&&this.session.linked&&!c){this.isUnlinkedErrorState=!0;const u=this.getSessionIdHash();(o=this.diagnostic)===null||o===void 0||o.log(Fg.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:u})}}})).subscribe()),this.subscriptions.add(n.sessionConfig$.pipe((0,Yf.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;const o=n.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:o,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(n.sessionConfig$.pipe((0,Yf.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,Yf.mergeMap)(a=>ZN.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(Vce.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(n.sessionConfig$.pipe((0,Yf.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,Yf.mergeMap)(a=>ZN.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(Vce.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(n.sessionConfig$.pipe((0,Yf.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,Yf.mergeMap)(a=>(0,S4.zip)(ZN.decrypt(a.metadata.ChainId,e.secret),ZN.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,Yf.distinctUntilChanged)()).subscribe({next:([a,o])=>{this.chainCallback&&this.chainCallback(a,o)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(n.sessionConfig$.pipe((0,Yf.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,Yf.mergeMap)(a=>ZN.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),US.accountRequestCallbackIds.size>0&&(Array.from(US.accountRequestCallbackIds.values()).forEach(o=>{const s=(0,SA.Web3ResponseMessage)({id:o,response:(0,Pb.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:o}))}),US.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(n.sessionConfig$.pipe((0,Yf.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,Yf.mergeMap)(a=>ZN.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));const r=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:n.connected$,chainId$:this.dappDefaultChainSubject});return n.connect(),{session:e,ui:r,connection:n}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,Yf.timeout)(1e3),(0,Yf.catchError)(e=>(0,S4.of)(null))).subscribe(e=>{var n,r,a;const o=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(n=this.diagnostic)===null||n===void 0||n.log(Fg.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(r=this.diagnostic)===null||r===void 0||r.log(Fg.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const s=XN.Session.load(this.storage);if((s==null?void 0:s.id)===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(Fg.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:XN.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new S4.Subscription;const{session:l,ui:c,connection:u}=this.subscribe();this._session=l,this.connection=u,this.ui=c,o&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var n;(n=this.diagnostic)===null||n===void 0||n.log(Fg.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,n){this.appName=e,this.appLogoUrl=n}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,n){this.storage.setItem(e,n)}signEthereumMessage(e,n,r,a){return this.sendRequest({method:Nm.Web3Method.signEthereumMessage,params:{message:(0,od.hexStringFromBuffer)(e,!0),address:n,addPrefix:r,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,n,r){return this.sendRequest({method:Nm.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,od.hexStringFromBuffer)(e,!0),signature:(0,od.hexStringFromBuffer)(n,!0),addPrefix:r}})}signEthereumTransaction(e){return this.sendRequest({method:Nm.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,od.bigIntStringFromBN)(e.weiValue),data:(0,od.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,od.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,od.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,od.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,od.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:Nm.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,od.bigIntStringFromBN)(e.weiValue),data:(0,od.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,od.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,od.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,od.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,od.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,n){return this.sendRequest({method:Nm.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,od.hexStringFromBuffer)(e,!0),chainId:n}})}scanQRCode(e){return this.sendRequest({method:Nm.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,od.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,n){return this.sendRequest({method:Nm.Web3Method.generic,params:{action:n,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let n=null;const r=(0,od.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,s),n==null||n()};return{promise:new Promise((s,l)=>{this.ui.isStandalone()||(n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,c=>{if(n==null||n(),c.errorMessage)return l(new Error(c.errorMessage));s(c)}),this.ui.isStandalone()?this.sendRequestStandalone(r,e):this.publishWeb3RequestEvent(r,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,n){var r;const a=(0,Mpi.Web3RequestMessage)({id:e,request:n}),o=XN.Session.load(this.storage);(r=this.diagnostic)===null||r===void 0||r.log(Fg.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o?XN.Session.hash(o.id):"",isSessionMismatched:((o==null?void 0:o.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var l;(l=this.diagnostic)===null||l===void 0||l.log(Fg.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o?XN.Session.hash(o.id):"",isSessionMismatched:((o==null?void 0:o.id)!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){const n=(0,Rpi.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",n,!1).subscribe())}publishEvent(e,n,r){const a=this.session.secret;return new S4.Observable(o=>{ZN.encrypt(JSON.stringify(Object.assign(Object.assign({},n),{origin:location.origin})),a).then(s=>{o.next(s),o.complete()})}).pipe((0,Yf.mergeMap)(o=>this.connection.publishEvent(e,o,r)))}handleIncomingEvent(e){try{this.subscriptions.add((0,S4.from)(ZN.decrypt(e.data,this.session.secret)).pipe((0,Yf.map)(n=>JSON.parse(n))).subscribe({next:n=>{const r=(0,SA.isWeb3ResponseMessage)(n)?n:null;r&&this.handleWeb3ResponseMessage(r)},error:()=>{var n;(n=this.diagnostic)===null||n===void 0||n.log(Fg.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var n;const{response:r}=e;if((n=this.diagnostic)===null||n===void 0||n.log(Fg.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),(0,Pb.isRequestEthereumAccountsResponse)(r)){US.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),US.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,n,r,a){var o;const s=(o=r==null?void 0:r.message)!==null&&o!==void 0?o:(0,y$.standardErrorMessage)(a);this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:e,response:{method:n,errorMessage:s,errorCode:a}}))}invokeCallback(e){const n=this.relayEventManager.callbacks.get(e.id);n&&(n(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){const e={method:Nm.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},n=(0,od.randomBytesHex)(8),r=o=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,o)};return{promise:new Promise((o,s)=>{var l;this.relayEventManager.callbacks.set(n,u=>{if(this.ui.hideRequestEthereumAccounts(),u.errorMessage)return s(new Error(u.errorMessage));o(u)});const c=((l=window==null?void 0:window.navigator)===null||l===void 0?void 0:l.userAgent)||null;if(c&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(c)){let u;try{(0,od.isInIFrame)()&&window.top?u=window.top.location:u=window.location}catch{u=window.location}u.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(u.href)}`;return}if(this.ui.inlineAccountsResponse()){const u=d=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:n,response:(0,Pb.RequestEthereumAccountsResponse)(d)}))};this.ui.requestEthereumAccounts({onCancel:r,onAccounts:u})}else{const u=y$.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>r(u)})}US.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:r}}selectProvider(e){const n={method:Nm.Web3Method.selectProvider,params:{providerOptions:e}},r=(0,od.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,n.method,s)},o=new Promise((s,l)=>{this.relayEventManager.callbacks.set(r,d=>{if(d.errorMessage)return l(new Error(d.errorMessage));s(d)});const c=d=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:r,response:(0,Pb.SelectProviderResponse)(kpi.ProviderType.Unselected)}))},u=d=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:r,response:(0,Pb.SelectProviderResponse)(d)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:u,onCancel:c,providerOptions:e})});return{cancel:a,promise:o}}watchAsset(e,n,r,a,o,s){const l={method:Nm.Web3Method.watchAsset,params:{type:e,options:{address:n,symbol:r,decimals:a,image:o},chainId:s}};let c=null;const u=(0,od.randomBytesHex)(8),d=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,l.method,f),c==null||c()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:d,onResetConnection:this.resetAndReload}));const h=new Promise((f,p)=>{this.relayEventManager.callbacks.set(u,v=>{if(c==null||c(),v.errorMessage)return p(new Error(v.errorMessage));f(v)});const m=v=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:u,response:(0,Pb.WatchAssetReponse)(!1)}))},g=()=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:u,response:(0,Pb.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:g,onCancel:m,type:e,address:n,symbol:r,decimals:a,image:o,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,l)});return{cancel:d,promise:h}}addEthereumChain(e,n,r,a,o,s){const l={method:Nm.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:n,blockExplorerUrls:a,chainName:o,iconUrls:r,nativeCurrency:s}};let c=null;const u=(0,od.randomBytesHex)(8),d=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,l.method,f),c==null||c()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:d,onResetConnection:this.resetAndReload})),{promise:new Promise((f,p)=>{this.relayEventManager.callbacks.set(u,v=>{if(c==null||c(),v.errorMessage)return p(new Error(v.errorMessage));f(v)});const m=v=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:u,response:(0,Pb.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},g=v=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:u,response:(0,Pb.AddEthereumChainResponse)({isApproved:!0,rpcUrl:v})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:m,onApprove:g,chainId:l.params.chainId,rpcUrls:l.params.rpcUrls,blockExplorerUrls:l.params.blockExplorerUrls,chainName:l.params.chainName,iconUrls:l.params.iconUrls,nativeCurrency:l.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,l)}),cancel:d}}switchEthereumChain(e,n){const r={method:Nm.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:n})},a=(0,od.randomBytesHex)(8),o=l=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,r.method,l)};return{promise:new Promise((l,c)=>{this.relayEventManager.callbacks.set(a,h=>{if((0,Pb.isErrorResponse)(h)&&h.errorCode)return c(y$.standardErrors.provider.custom({code:h.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(h.errorMessage)return c(new Error(h.errorMessage));l(h)});const u=h=>{var f;if(h){const p=(f=(0,y$.getErrorCode)(h))!==null&&f!==void 0?f:y$.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(a,Nm.Web3Method.switchEthereumChain,h instanceof Error?h:y$.standardErrors.provider.unsupportedChain(e),p)}else this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:a,response:(0,Pb.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},d=h=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:a,response:(0,Pb.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:h})}))};this.ui.switchEthereumChain({onCancel:u,onApprove:d,chainId:r.params.chainId,address:r.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,r)}),cancel:o}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return XN.Session.hash(this._session.id)}sendRequestStandalone(e,n){const r=o=>{this.handleErrorResponse(e,n.method,o)},a=o=>{this.handleWeb3ResponseMessage((0,SA.Web3ResponseMessage)({id:e,response:o}))};switch(n.method){case Nm.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:n,onSuccess:a,onCancel:r});break;case Nm.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:n,onSuccess:a,onCancel:r});break;case Nm.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:n,onSuccess:a,onCancel:r});break;case Nm.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:n,onSuccess:a});break;default:r();break}}onSessionConfigChanged(e){}}US.accountRequestCallbackIds=new Set;fan([pan.default],US.prototype,"resetAndReload",null);fan([pan.default],US.prototype,"handleIncomingEvent",null);swe.WalletSDKRelay=US;var gwe={};Object.defineProperty(gwe,"__esModule",{value:!0});gwe.WalletSDKRelayEventManager=void 0;const Npi=ya;class Ipi{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const e=this._nextRequestId,n=(0,Npi.prepend0x)(e.toString(16));return this.callbacks.get(n)&&this.callbacks.delete(n),e}}gwe.WalletSDKRelayEventManager=Ipi;Object.defineProperty(bne,"__esModule",{value:!0});bne.CoinbaseWalletSDK=void 0;const Ppi=cSe,Opi=uSe,Lpi=dSe,Bpi=TU,Dpi=VSe,$pi=swe,Fpi=gwe,jpi=ya,man=MG;class vwe{constructor(e){var n,r,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const o=e.linkAPIUrl||Opi.LINK_API_URL;let s;if(e.uiConstructor?s=e.uiConstructor:s=u=>new Dpi.WalletSDKUI(u),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(n=e.overrideIsCoinbaseWallet)!==null&&n!==void 0?n:!0,this._overrideIsCoinbaseBrowser=(r=e.overrideIsCoinbaseBrowser)!==null&&r!==void 0?r:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;const l=new URL(o),c=`${l.protocol}//${l.host}`;this._storage=new Lpi.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem("version",vwe.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new Fpi.WalletSDKRelayEventManager,this._relay=new $pi.WalletSDKRelay({linkAPIUrl:o,version:man.LIB_VERSION,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",n=1){const r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(e,n),this._reloadOnDisconnect===!1&&typeof r.disableReloadOnDisconnect=="function"&&r.disableReloadOnDisconnect(),r;const a=this.coinbaseBrowser;if(a)return a;const o=this._relay;if(!o||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||o.setConnectDisabled(!0),new Bpi.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(o),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:n,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,n){var r;this._appName=e||"DApp",this._appLogoUrl=n||(0,jpi.getFavicon)();const a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(r=this._relay)===null||r===void 0||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;const n=this.walletExtension;n?n.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,n;return(n=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&n!==void 0?n:null}getCoinbaseWalletLogo(e,n=240){return(0,Ppi.walletLogo)(e,n)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,n;try{const r=(e=window.ethereum)!==null&&e!==void 0?e:(n=window.top)===null||n===void 0?void 0:n.ethereum;return r&&"isCoinbaseBrowser"in r&&r.isCoinbaseBrowser?r:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}}bne.CoinbaseWalletSDK=vwe;vwe.VERSION=man.LIB_VERSION;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=t.CoinbaseWalletSDK=void 0;const e=bne,n=TU;var r=bne;Object.defineProperty(t,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return r.CoinbaseWalletSDK}});var a=TU;Object.defineProperty(t,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return a.CoinbaseWalletProvider}}),t.default=e.CoinbaseWalletSDK,typeof window<"u"&&(window.CoinbaseWalletSDK=e.CoinbaseWalletSDK,window.CoinbaseWalletProvider=n.CoinbaseWalletProvider,window.WalletLink=e.CoinbaseWalletSDK,window.WalletLinkProvider=n.CoinbaseWalletProvider)})(gtn);function Hpi(t){const{enableEIP6963:e=!0,enableInjected:n=!0,enableCoinbase:r=!0,metadata:a,rpcUrl:o,defaultChainId:s}=t;let l,c;const u={metadata:a};function d(){if(l)return l;if(!(typeof window>"u")&&window.ethereum)return l=window.ethereum,l}function h(){return c||(typeof window>"u"?void 0:(c=new gtn.CoinbaseWalletSDK({appName:a.name,appLogoUrl:a.icons[0],darkMode:!1}).makeWeb3Provider(o,s),c))}return n&&(u.injected=d()),r&&o&&s&&(u.coinbase=h()),e&&(u.EIP6963=!0),u}let Kce;function gan(t){return Kce||(Kce=new hqr({...t,_sdkVersion:`react-ethers5-${Hi.VERSION}`})),fqr(Kce),Kce}function van(){const{provider:t,providerType:e}=iJt(Mi.state);return{walletProvider:t,walletProviderType:e}}function Aan(){const{address:t,isConnected:e,chainId:n}=iJt(Mi.state);return{address:t,isConnected:e,chainId:n}}var lnt={},Upi=As;Object.defineProperty(lnt,"__esModule",{value:!0});var yan=lnt.default=void 0,zpi=Upi(Ps()),Gpi=E;yan=lnt.default=(0,zpi.default)((0,Gpi.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"EqualizerOutlined");var cnt={},Vpi=As;Object.defineProperty(cnt,"__esModule",{value:!0});var ban=cnt.default=void 0,Kpi=Vpi(Ps()),Wpi=E;ban=cnt.default=(0,Kpi.default)((0,Wpi.jsx)("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"}),"TableChart");var unt={},Qpi=As;Object.defineProperty(unt,"__esModule",{value:!0});var xan=unt.default=void 0,qpi=Qpi(Ps()),Ypi=E;xan=unt.default=(0,qpi.default)((0,Ypi.jsx)("path",{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2m-3-3V8h1v1zm10-8H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 8h-2V7h-2v2h-2v2h2v2h2v-2h2v6H7V3h14z"}),"Filter9Plus");var Zg=(t=>(t.line_chart="Line Chart",t.stacked_line_chart="Stacked Line Chart",t.bar_chart="Bar Chart",t.column_chart="Column Chart",t.area_chart="Area Chart",t.pie_chart="Pie Chart",t.scatter_chart="Scatter Chart",t.mix_chart="Mix Chart",t.stacked_column_chart="Stacked Column Chart",t.stacked_area_chart="Stacked Area Chart",t.dataset="Dataset",t.counter="Counter",t.chart="Chart",t))(Zg||{}),Ln=(t=>(t.line_chart="line_chart",t.stacked_line_chart="stacked_line_chart",t.bar_chart="bar_chart",t.column_chart="column_chart",t.area_chart="area_chart",t.pie_chart="pie_chart",t.scatter_chart="scatter_chart",t.scatter_plot="scatter_plot",t.mix_chart="mix_chart",t.stacked_column_chart="stacked_column_chart",t.stacked_area_chart="stacked_area_chart",t))(Ln||{}),XUe=(t=>(t.xField="xField",t.yField="yField",t.dataLabels="dataLabels",t.axisLabels="axisLabels",t.sortXaxis="sortXaxis",t.seriesField="seriesField",t))(XUe||{}),ii=(t=>(t.table="table",t.chart="chart",t.counter="counter",t.graph="graph",t))(ii||{}),VL=(t=>(t.loading="loading",t.saved="saved",t.error="error",t))(VL||{}),Zj=(t=>(t.myQueries="myQueries",t.queryHistory="queryHistory",t.views="views",t.myOrgQuery="subscription",t))(Zj||{}),Di=(t=>(t.GRAPH="GRAPH",t.TABLE="TABLE",t.CARD="CARD",t.COUNTERCARD="COUNTERCARD",t))(Di||{}),ka=(t=>(t.GRAPH="Chart",t.TABLE="Dataset",t.CARD="Card",t.COUNTERCARD="Counter",t))(ka||{}),xx=(t=>(t.GRAPH="charts",t.TABLE="datasets",t.COUNTERCARD="counters",t))(xx||{}),Mf=(t=>(t.atomic="atomic",t.grouped="grouped",t.horizontal="horizontal",t.vertical="vertical",t))(Mf||{}),ld=(t=>(t.myDashboard="dashboard",t.exploreDashboard="explore",t.myOrgDashboard="subscription",t))(ld||{}),yT=(t=>(t.myOrgVisuals="subscription",t))(yT||{}),al=(t=>(t.SUM="SUM",t.MIN="MIN",t.MAX="MAX",t.MEAN="MEAN",t.STATIC="DEFAULT",t))(al||{}),sp=(t=>(t.tabs="tabs",t.row="row",t.column="column",t.header="header",t.markdown="markdown",t.divider="divider",t.visual="visual",t.chart="chart",t))(sp||{}),xR=(t=>(t.small="h3",t.medium="h2",t.large="h1",t))(xR||{}),KL=(t=>(t.layoutDesign="layoutDesign",t.charts="charts",t.dashboardInfo="dashboardInfo",t))(KL||{}),fZ=(t=>(t.line_chart="line",t.area_chart="line",t.area="line",t.bar_chart="bar",t.column_chart="bar",t.stacked_area_chart="line",t.stacked_column_chart="bar",t.stacked_line_chart="line",t))(fZ||{}),eze=(t=>(t.line="line",t.area="line",t.bar="bar",t.column="bar",t))(eze||{}),Ean=(t=>(t.unpublished="UNPUBLISHED",t.published="PUBLISHED",t))(Ean||{}),WL=(t=>(t.approved="approved",t.pending="pending",t))(WL||{}),im=(t=>(t.ethereum="ETHEREUM",t.polygon="POLYGON",t.avalanche="AVALANCHE_C",t.avalanche_c="AVALANCHE_C",t.bnb="BNB",t.binance="BNB",t.sui="SUI",t.mumbai="MUMBAI",t.goerli="GOERLI",t.sepolia="SEPOLIA",t.bitcoin="BITCOIN",t.aptos="APTOS",t.holesky="HOLESKY",t.zksyncera="ZKSYNCERA",t))(im||{}),Mc=(t=>(t.schema="schema",t.subgroup="subgroup",t.table="table",t.column="column",t.view="view",t.divider="divider",t.parentGroup="parentGroup",t))(Mc||{}),$o=(t=>(t.coinbase="coinbase",t.metamask="metamask",t.walletconnect="walletconnect",t))($o||{}),Jpi=(t=>(t.RUNNING="Running",t.DRAFT="Draft",t.STOPPED="Stopped",t))(Jpi||{}),gw=(t=>(t.table="DB_TABLE",t.schema="DB_SCHEMA",t))(gw||{}),zm=(t=>(t.myAccount="myAccount",t.permissionSecret="permissionSecret",t.myWorkspace="myWorkspace",t.dataUsage="dataUsage",t))(zm||{}),Rme=(t=>(t.ALL="ALL",t.SCHEMA="SCHEMA",t.NONE="NONE",t))(Rme||{}),Awe=(t=>(t.SAVEDQUERY_TAG_TYPE="QUERY",t.DASHBOARD_TAG_TYPE="DASHBOARD",t.VISUAL_TAG_TYPE="VISUAL",t))(Awe||{}),ER=(t=>(t.functions="functions",t.direct_request="direct_request",t))(ER||{}),Lh=(t=>(t.string2d="string2d",t.string="string",t.bytes="bytes",t.uint256="uint256",t))(Lh||{}),sF=(t=>(t.mySubscription="mySubscription",t.moreSubscription="moreSubscription",t))(sF||{}),kne=(t=>(t.active="active",t.canceled="canceled",t))(kne||{}),E5=(t=>(t.public="PUBLIC",t.subscription="SUBSCRIPTION",t))(E5||{}),Rne=(t=>(t.savedQuery="SavedQuery",t.rawQuery="RawQuery",t))(Rne||{}),zI=(t=>(t.user="user",t.subscription="subscription",t.member="member",t))(zI||{}),Jm=(t=>(t.Duration="Duration",t.Range="Range",t))(Jm||{}),uv=(t=>(t.private="private",t.public="public",t.subscription="subscription",t))(uv||{}),sr=(t=>(t.private="private",t.public="public",t.subscription="subscription",t))(sr||{}),S5=(t=>(t.top="top",t.trending="trending",t.liked="liked",t))(S5||{}),l3=(t=>(t.USAGE_BASED="Pay per Compute",t.FIXED_COST="Fixed Cost",t))(l3||{}),zh=(t=>(t.COMPUTE_BASED="compute_based",t.FIXED_COST="fixed_cost",t))(zh||{}),np=(t=>(t.owner="owner",t.member="member",t.admin="admin",t))(np||{}),tze=(t=>(t.credit="CREDIT",t.balance="BALANCE",t))(tze||{}),Hm=(t=>(t.public="PUBLIC",t.subscription="SUBSCRIPTION",t.all="ALL",t))(Hm||{}),sx=(t=>(t.sxtDatasets="sxtDatasets-pg",t.subscribedDatasets="subscriptionDatasets-pg",t.publicDatasets="publicDatasets-pg",t))(sx||{}),Zpi=(t=>(t.QUERY_RESULTS="QUERY_RESULTS",t.QUERY_VISUALIZATION="QUERY_VISUALIZATION",t))(Zpi||{});const Xpi="/assets/bodyBg-4d49a3ac.svg",qt=sXe({bodyBg:`${Xpi}`,palette:{primary:{main:"#5000BF",dark:"rgba(16,63,116,0.8)",light:"rgba(16,63,116,0.4)"},secondary:{main:"#db0040",dark:"#161c29",light:"#3e4561"},error:{main:"#FF4949",dark:"#bb2d3b",light:"#eb5463"}},typography:{fontFamily:"'Inter', sans-serif"},typographySecondary:{fontFamily:"'JetBrains Mono', monospace;"},typographyThird:{fontFamily:"'Plus Jakarta Sans', sans-serif"},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1400}},custom:{blue:"#3A6EF5",blueLight:"#5495FF",blueActive:"#3B72F7",navyBlue:"#16102B",green:"#01aa08",greenLight:"#19E696",red:"#FF4949",redLight:"#FF5E84",redTrash:"#F25C5F",violet:"#C05FFB",orange:"#E3A241",cyan:"#49FFF3",pink:"#CC0AAC",pinkDark:"#E34198",olive:"#C9C86B",blueDark:"#284994",mint:"#5DC4D1",purple:"#5E4E76",purpleDark:"#392B64",purpleLight:"#7654BF",purpleShade:"#5000BF",resizer:"#33264F",chartGrid:"#543E71",chartLabel:"#999999",yellow:"#ff9800",skelton:"linear-gradient(to right, #452470 35%, #2F2254)",axisPointer:"#4AC2F1",insightInfoBg:"#30264D",nebulaBlue:"#08031A",chart:{area:"l(90) 0.8:#21183B  0.2:#55abec",bar:"l(90) 0:#55abec 1:#103754",sliderBg:"#55abec",pieShadow:"#2B344F",A1:"l(90) 0.8:#21183B  0.2:#55abec"},gradiant:{blue:"linear-gradient(180deg, #3B78F8 0%, #395AEE 57.91%)",red:"linear-gradient(153.43deg, #FF8181 0.81%, #FF4949 84.14%)",mint:"linear-gradient(186.1deg, #55ABEC 4.33%, #103754 98.27%)",bluePink:"linear-gradient(185.43deg, #B95FF4 -3.02%, #3879DF 32.56%, #1A234E 99.45%)",violet:"linear-gradient(180deg, #715E94 -5.81%, #2C1B4B 111.4%)"},tags:{A1:"#FC6B98",A2:"#60B9FB",A3:"#ECEEF3",A4:"#29194E",bg1:"rgba(192, 95, 251, 0.1)",bg2:"rgba(252, 107, 152, 0.1)",bg3:"rgba(96, 185, 251, 0.1)",bg4:"rgba(236, 238, 243, 0.1)",bg5:"#38216C"},counterType:{A1:"#F89726",A2:"#F4CE48",A3:"#48F48D",A4:"#48C0F4"},greyText:{A1:"#807E85",A2:"#999999",A3:"#E6E6E6",A4:"#C0BEC7",A5:"#B2B3BD",A6:"#DBE4FF",A7:"#D7D5DD",A8:"#929CAE",A9:"#C5BFCA",A10:"#8981A2",A11:"rgb(103, 91, 140)",A12:"rgba(81, 67, 100, 1)",A13:"rgba(230, 230, 230, 1)"},black:{A1:"#000000",A2:"#010002",A3:"rgba(0, 0, 0, 0.05)",A4:"rgba(0, 0, 0, 0.33)",A5:"rgba(13,19,34,0.7)",A6:"rgba(0, 0, 0, 0.2)",A7:"rgba(13, 19, 34, 0.60)",A8:"rgba(13, 19, 34, 0.90)"},white:{A1:"rgba(255,255,255,1)",A2:"rgba(255,255,255,0.8)",A3:"rgba(255,255,255,0.4)",A4:"rgba(255,255,255,0.03)",A5:"rgba(255,255,255,0.05)",A6:"rgb(247 247 249 / 5%)",A7:"#7082A7",A8:"#E0E3F4",A9:"#8178A9",A10:"#A7B3CB",A11:"#E6E6E6",A12:"#999999",A13:"rgba(103, 91, 140, 1)",A14:"rgba(230, 230, 230, 0.3)"},erd:{miniMap:{nodeColor:"rgb(58 96 240 / 32%)",maskColor:"rgb(15 21 36 / 70%)",background:`linear-gradient(250.48deg, rgba(45, 32, 77, 0.84) 0%, 
        rgba(49, 30, 78, 0.84) 23.73%, rgba(47, 28, 74, 0.84) 50.65%, 
        rgba(36, 28, 70, 0.84) 75.53%, rgba(31, 27, 70, 0.84) 96.8%)`},parentHeadBg:"#1C1737"},erdTable:{titleBg:"rgb(42,24,65)",countBg:"rgba(3, 3, 3, 0.2)",tableBg:"#43215d",border:"rgba(81, 89, 106, 0.3)",headBg:"rgba(123 74 149 / 86%)",headText:"#F1F1F1",icon:"#DBE4FF",cellActive:"rgb(123 74 149 / 40%)",name:"#ECEBF1",type:"#A7B4F6",greyBg:"#25354F",greyHeadBg:"#4C5E7E",greyLight:"rgba(191, 191, 191, 0.75)",pendingBg:"rgb(97 36 202 / 65%)",pendingTableHead:"rgb(69 4 180 / 60%)"},editor:{keyword:"#00FFFF",function:"#EF29A0",string:"#FF6B00",type:"#F8E85B",numeric:"#FC91FE",ddl:"#98DC6E",dml:"#C05FFB",transactions:"#ffbc59"},chatBot:{A1:"linear-gradient(31.14deg, rgba(255, 255, 255, 0.06) 33.94%, rgba(255, 255, 255, 0.024) 90.86%)",A2:"linear-gradient(32.69deg,rgba(255, 255, 255, 0.06) 48.03%, rgba(255, 255, 255, 0) 103.66%)",A3:"rgba(36, 26, 55, 1)",A4:"linear-gradient(22.65deg,rgba(255, 255, 255, 0.06) 39.66%,rgba(255, 255, 255, 0) 104.09%)",A5:"rgba(36, 26, 55, 0.7)",A6:"linear-gradient(19.29deg,rgba(255, 255, 255, 0.06) 36.8%,rgba(255, 255, 255, 0) 104.45%)",A7:"rgba(255,255,255,0.3)"},inputBg:"#1C1433",inputFocused:"#395AEE",primaryBg:"#5000BF",primaryBgActive:"linear-gradient(180deg, #739EF8 0%, #4765ED 57.91%)",primaryDisabled:"linear-gradient(180deg, rgba(115, 158, 248, 0.5) 0%, rgba(71, 101, 237, 0.5) 57.91%)",secondaryBg:"rgba(48, 38, 77, 0.75)",secondaryBgActive:"linear-gradient(99.09deg, rgba(135, 138, 197, 0.18) 0%, rgba(179, 158, 255, 0.18) 98.8%)",secondaryDisabled:"linear-gradient(99.09deg, rgba(255, 255, 255, 0.05) 0%, rgba(239, 239, 239, 0.05) 98.8%)",HeaderBg:"linear-gradient(34.17deg, rgba(21, 23, 35, 0.135) 60.09%, rgba(12, 14, 21, 0.5) 197.69%), #20163B",toolBarBg:"linear-gradient(34.17deg, rgba(21, 23, 35, 0.135) 60.09%, rgba(12, 14, 21, 0.5) 197.69%), #2E2055",boxBg:"#1F1638",boxBg2:"#100217",boxBg3:`linear-gradient(176.11deg, rgba(216, 196, 255, 0.1) 3.29%, 
    rgba(152, 97, 255, 0) 28.82%), linear-gradient(20.12deg, #261B3A 73.55%, #0F182A 166.53%)`,gredientBg:`linear-gradient(
      0deg,
      rgba(11, 2, 38, 0.25),
      rgba(11, 2, 38, 0.25)
    ),
    radial-gradient(
      49.96% 96.12% at 100% 88.8%,
      #330c40 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(
      56.85% 96.19% at 0% 43.15%,
      #0d0d43 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(205.08deg, #a700aa 8.18%, #aa00a3 61.01%, #6800b9 84.06%)`,editorBg:"rgba(67, 52, 115, 0.55)",modalBg:"#221B36",popupBg:`linear-gradient(147.35deg, rgba(0, 3, 9, 0) -47.27%, rgba(0, 3, 9, 0.6) 65.1%, 
    rgba(0, 3, 9, 0) 131.04%), 
    linear-gradient(176.11deg, rgba(216, 196, 255, 0.1) 3.29%, 
    rgba(152, 97, 255, 0) 28.82%), 
    linear-gradient(20.12deg, #261B3A 73.55%, #0F182A 166.53%)`,cardBg:`linear-gradient(147.35deg, rgba(3, 0, 9, 0) -47.27%, rgba(3, 0, 9, 0.156) 65.1%, 
    rgba(3, 0, 9, 0) 131.04%), linear-gradient(20.12deg, rgba(38, 27, 58, 0.28) 73.55%, 
    rgba(24, 15, 42, 0.28) 166.53%)`,dropdownBg:"rgba(34, 25, 63, 0.8)",trashBg:`radial-gradient(57.29% 55.21% at 11.46% 9.38%, rgba(255, 116, 116, 0.1) 0%, 
    rgba(255, 73, 73, 0.036) 100%), 
    radial-gradient(66.67% 66.67% at 17.71% 3.13%, rgba(210, 108, 109, 0.21) 0%, 
    rgba(176, 62, 66, 0.0021) 100%), 
    linear-gradient(133.11deg, rgba(255, 255, 255, 0.044) 6.98%, 
    rgba(255, 255, 255, 0.0498955) 46.15%, rgba(255, 255, 255, 0.058) 100%)`,tableBg:"rgba(32, 26, 51, 0.85)",tableActionBg:"#1F1638",tableActionBgHover:"#5000BF",tableActionBgDisabled:"rgb(44 35 71 / 50%)",thumbnailBg:"#2C2347",thumbnailImgBg:"#2C1F51",thumbnailBgHover:"#32235E",chartThumbnail:"#2B1F4C",chartThumbnailActive:"#5000BF",gridColumnsBg:`repeating-linear-gradient(rgba(85, 75, 140, 0.18) 0 1px,transparent 1px 100%),
     repeating-linear-gradient(90deg,#03030300 0 12px,rgba(85, 75, 140, 0.18)2px 100%)`,tableHoverBg:`linear-gradient(90deg, rgb(61, 62, 98) 0%, 15.1659%, rgb(136, 29, 183) 47.5118%, 
    69.4849%, rgb(178, 129, 219) 92.0616%)`,counterBg:"#1B1233",counterThumbnailBg:"#1C1432",paymentCardBg:"linear-gradient(19.29deg, rgba(255, 255, 255, 0.06) 36.8%, rgba(255, 255, 255, 0) 104.45%)",avatarBgGradient:`radial-gradient(
      55.45% 55.45% at 54.69% 55.45%,
      #e406db 0%,
      #70006a 44.42%,
      #24001f 100%
    )`,loadData:{panelBg:"linear-gradient(31.14deg, rgba(255, 255, 255, 0.06) 33.94%, rgba(255, 255, 255, 0.024) 90.86%)",listBg:`linear-gradient(0deg, rgba(36, 26, 55, 0.15), rgba(36, 26, 55, 0.15)), 
        linear-gradient(19.29deg, rgba(255, 255, 255, 0.12) 36.8%, rgba(255, 255, 255, 0) 104.45%)`,listBgActive:`linear-gradient(97.06deg, rgba(80, 0, 191, 0.7) 0.69%, rgba(80, 0, 191, 0.7) 72.75%, 
        rgba(204, 10, 172, 0) 230.09%)`,descText:"rgba(230, 230, 230, 0.8)"},piplineBg:`linear-gradient(0deg, rgba(11, 2, 38, 0.25), rgba(11, 2, 38, 0.25)), 
    radial-gradient(49.96% 96.12% at 100% 88.8%, #330C40 0%, rgba(0, 0, 0, 0) 100%), 
    radial-gradient(56.85% 96.19% at 0% 43.15%, #0D0D43 0%, rgba(0, 0, 0, 0) 100%), 
    linear-gradient(205.08deg, #A700AA 8.18%, #AA00A3 61.01%, #6800B9 84.06%)`,piplineFilterBg:`linear-gradient(19.29deg, rgba(255, 255, 255, 0.06) 36.8%, 
    rgba(255, 255, 255, 0) 104.45%)`,azureCardBg:"linear-gradient(280.79deg, #025AD8 -0.83%, rgba(12, 58, 123, 0) 100.97%)",fontSize:{font8:"8px",font10:"10px",font11:"11px",font12:"12px",font14:"14px",font16:"16px",font18:"18px",font20:"20px",font22:"22px",font24:"24px",font26:"26px",font30:"30px",font48:"48px"},fontWeight:{lt:300,rg:400,md:500,sm:600,bd:700},heading:{h1:"32px",h2:"24px",h3:"20px"}}});function ioe(){return E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.000107885 11.1262L11.1259 0.000388709L12 0.874512L0.874231 12.0003L0.000107885 11.1262Z",fill:"currentColor"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1266 11.9994L0.00087699 0.873635L0.875 -0.000488281L12.0008 11.1253L11.1266 11.9994Z",fill:"currentColor"})]})}function emi({style:t={}}){return E.jsxs("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t,children:[E.jsx("path",{d:"M1.75021 10.75C2.16521 11.165 2.83521 11.165 3.25021 10.75L9.75021 4.25C10.1652 3.835 10.1652 3.165 9.75021 2.75C9.33521 2.335 8.66521 2.335 8.25021 2.75L1.75021 9.25C1.33521 9.665 1.33521 10.335 1.75021 10.75Z",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M9.00488 4.995L7.50488 3.495",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M4.25 1.72L5 1.5L4.78 2.25L5 3L4.25 2.78L3.5 3L3.72 2.25L3.5 1.5L4.25 1.72Z",stroke:"white","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M2.25 4.72L3 4.5L2.78 5.25L3 6L2.25 5.78L1.5 6L1.72 5.25L1.5 4.5L2.25 4.72Z",stroke:"white","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M9.75 7.22L10.5 7L10.28 7.75L10.5 8.5L9.75 8.28L9 8.5L9.22 7.75L9 7L9.75 7.22Z",stroke:"white","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round"})]})}function San(){return E.jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M-2.43009e-06 7.41745L7.41719 0.000258184L7.99994 
       0.583008L0.582747 8.0002L-2.43009e-06 
       7.41745Z`,fill:"#E6E6E6"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M7.41711 7.99994L-7.75096e-05
        0.58275L0.582672 0L7.99986 7.41719L7.41711 
        7.99994Z`,fill:"#E6E6E6"})]})}function Yx(){return E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M5.19356 6.99742L6.88445 8.50813C7.13906 8.73562 7.55036 8.73562 7.80497
        8.50813L9.49586 6.99742C9.90716 6.62995 9.61337 6 9.03233 6H5.65055C5.06951 6 4.78226 6.62995 5.19356 6.99742Z`,fill:"white"})})}function wan(){return E.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:`M11.2533 5.50103L3.52794 1.00872C2.53175 0.429236 1.28613 1.15303
      1.28613 2.312V11.2974C1.28613 12.4563 2.53175 13.1801 3.52794 12.6007L11.2533
       8.10759C12.2495 7.52811 12.2495 6.07977 11.2533 5.50029V5.50103Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"})})}function _an(){return E.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M10.424 0.817383H2.54059C1.73213 0.817383 1.07617 1.47263 1.07617 
      2.2818V11.3268C1.07617 12.1352 1.73142 12.7912 2.54059 12.7912H11.7995C12.608
      12.7912 13.2639 12.1359 13.2639 11.3268L13.242 3.93122L10.424 0.817383Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M9.00049 1.28223V4.48463C9.00049 4.92323 8.74653 5.28223 
      8.43625 5.28223H4.56472C4.25445 5.28223 4.00049 4.92323 4.00049 
      4.48463V1.3025`,stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function tmi(){return E.jsxs("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M6.92915 0.804688H2.34774C1.74925 0.804688 1.26367 1.28975
      1.26367 1.88875V11.7206C1.26367 12.3191 1.74873 12.8047 2.34774
       12.8047H9.20182C9.8003 12.8047 10.2859 12.3196 10.2859 11.7206L10.2697
        4.36423L6.92915 0.804688Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M10.2692 4.36371H7.94483C7.38345 4.36371 6.92871 3.90269
      6.92871 3.33452V0.804688`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("line",{x1:"3.26367",y1:"7.30469",x2:"7.26367",y2:"7.30469",stroke:"#E6E6E6"}),E.jsx("line",{x1:"3.26367",y1:"9.30469",x2:"7.26367",y2:"9.30469",stroke:"#E6E6E6"})]})}function SEt(){return E.jsxs("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M0.656372 0V11.0576C0.656372 11.5782 1.0507 12 1.53706 12H16.6564",stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M5.65637 12V8.33008C5.65637 8.14865 5.46931 8 5.24084 8H4.0719C3.84343
      8 3.65637 8.14865 3.65637 8.33008V12`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M9.65637 12V2.82531C9.65637 2.37121 9.46931 2 9.24084 2H8.0719C7.84343
      2 7.65637 2.37121 7.65637 2.82531V12`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M13.6564 11.9995V5.57772C13.6564 5.25997 13.4693 5 13.2408 5H12.0719C11.8434
      5 11.6564 5.25997 11.6564 5.57772V12`,stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function nmi(){return E.jsxs("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M6.14347 9.86816L6.14124 8.69277L6.13761 6.7772L6.13348 4.58961C6.13348 4.5896
      6.13348 4.5896 6.13348 4.5896C6.13335 4.52117 6.19636 4.43331 6.31492 4.4331H6.31493C6.43354
      4.4329 6.49698 4.52061 6.49711 4.5891C6.49711 4.58911 6.49711 4.58911 6.49711 4.58911L6.50125
      6.77671L6.50488 8.6923L6.5071 9.86739L7.35226 9.05097L8.00534 8.4201L8.00537 8.42007C8.0778 
      8.35009 8.20327 8.3498 8.27608 8.41962C8.33818 8.47917 8.33828 8.56759 8.27658 8.62722C8.27657
      8.62723 8.27656 8.62724 8.27655 8.62725L6.46168 10.3804L6.46156 10.3805C6.42904 10.4119 6.38089
      10.4329 6.32658 10.4331C6.27209 10.4332 6.22366 10.4123 6.1909 10.3809L4.36942 8.63402L4.36937
      8.63398C4.30735 8.57451 4.30722 8.48612 4.36895 8.42649L4.36901 8.42644C4.44141 8.35647
      4.56681 8.35613 4.63972 8.42598C4.63973 8.426 4.63975 8.42601 4.63976 8.42602L5.29515
      9.05458L6.14347 9.86816Z`,fill:"#E6E6E6",stroke:"#E6E6E6"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M8.81725 0.933111C10.4741 0.930091 11.8196 2.26877 11.8227 3.92307C11.8257 
      5.57742 10.485 6.92098 8.82817 6.924C8.55203 6.92451 8.32776 6.7014 8.32726
      6.42567C8.32676 6.14995 8.5502 5.92602 8.82635 5.92552C9.9309 5.92351 10.8247 
      5.02782 10.8228 3.92495M10.8228 3.92495C10.8207 2.82203 9.9236 1.92958 8.81907
      1.93159L3.8191 1.94069C2.71454 1.94269 1.82074 2.8384 1.82275 3.94129C1.82476 
      5.04418 2.72182 5.93662 3.82639 5.93462C4.10253 5.93412 4.3268 6.15723 4.3273 
      6.43295C4.3278 6.70867 4.10435 6.9326 3.82821 6.9331C2.17137 6.93611 0.825771 
      5.59746 0.822759 3.94311C0.819735 2.28877 2.16043 0.945215 3.81728 0.942207L8.81725
      0.933111`,fill:"#E6E6E6"})]})}function nze(){return E.jsxs("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M11.6564 9.60946V4.3673C11.6564 4.10029 11.514 3.85397 11.2829 
      3.72047L6.74329 1.10013C6.51224 0.966624 6.2275 0.966624 5.99645 
      1.10013L1.4563 3.72096C1.22526 3.85446 1.08289 4.10078 1.08289 
      4.36779V9.60995C1.08289 9.87696 1.22526 10.1233 1.4563 10.2568L5.99596 
      12.8776C6.22701 13.0111 6.51175 13.0111 6.7428 12.8776L11.2825 10.2568C11.5135
      10.1233 11.6559 9.87696 11.6559 9.60995L11.6564 9.60946Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:"M1.13831 3.99512L6.37012 6.74601",stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:"M11.5887 4.00879L6.37024 6.7449",stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:"M6.37024 13.0011V6.75",stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function ED(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})})}function Tan(){return E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:`M11.1834 10.7482H1.03696C0.821323 10.7482 0.646484 10.5682 0.646484 
          10.3462V1.5084C0.646484 1.28642 0.821323 1.10645 1.03696 1.10645H4.15908C4.22943
          1.10645 4.29812 1.12616 4.35806 1.16258L6.21968 2.31145H11.1839C11.2871 2.31145 
          11.387 2.35344 11.4599 2.42886C11.5331 2.50428 11.5739 2.6067 11.5739 2.71297V10.3462C11.5739
          10.4525 11.5331 10.5553 11.4599 10.6303C11.3866 10.7057 11.2871 10.7477 11.1839
          10.7477L11.1834 10.7482Z`,fill:"#E6E6E6",stroke:"#E6E6E6",strokeWidth:"0.84552",strokeMiterlimit:"10"})})}function rmi(){return E.jsxs("svg",{width:"39",height:"38",viewBox:"0 0 39 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M25.1048 24.6463H13.0268C12.7701 24.6463 12.562 24.432 12.562 24.1678V13.6474C12.562 13.3832 12.7701 13.1689 13.0268 13.1689H16.7433C16.827 13.1689 16.9088 13.1924 16.9801 13.2358L19.1961 14.6034H25.1053C25.2282 14.6034 25.3471 14.6533 25.4339 14.7431C25.5211 14.8329 25.5696 14.9548 25.5696 15.0813V24.1678C25.5696 24.2943 25.5211 24.4167 25.4339 24.506C25.3466 24.5958 25.2282 24.6457 25.1053 24.6457L25.1048 24.6463Z",fill:"#E6E6E6"}),E.jsx("rect",{x:"0.566406",y:"1.17334",width:"36.9991",height:"35.4687",rx:"7.65154",stroke:"#BFBFBF",strokeOpacity:"0.75"})]})}function zG(){return E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3.86373 4.18404H3.26833C2.43469 4.18404 2.01787 4.18404 1.69946 4.34628C1.41938 4.48899 1.19166 4.7167 1.04896 4.99678C0.886719 5.31519 0.886719 5.73201 0.886719 6.56565V10.7335C0.886719 11.5671 0.886719 11.9839 1.04896 12.3023C1.19166 12.5824 1.41938 12.8101 1.69946 12.9528C2.01787 13.1151 2.43469 13.1151 3.26833 13.1151H7.43614C8.26979 13.1151 8.68661 13.1151 9.00501 12.9528C9.2851 12.8101 9.51281 12.5824 9.65552 12.3023C9.81775 11.9839 9.81775 11.5671 9.81775 10.7335V10.1381M6.24534 10.1381H10.4132C11.2468 10.1381 11.6636 10.1381 11.982 9.97583C12.2621 9.83312 12.4898 9.60541 12.6325 9.32533C12.7948 9.00692 12.7948 8.5901 12.7948 7.75646V3.58864C12.7948 2.755 12.7948 2.33818 12.6325 2.01977C12.4898 1.73969 12.2621 1.51198 11.982 1.36927C11.6636 1.20703 11.2468 1.20703 10.4132 1.20703H6.24534C5.4117 1.20703 4.99488 1.20703 4.67647 1.36927C4.39639 1.51198 4.16868 1.73969 4.02597 2.01977C3.86373 2.33818 3.86373 2.755 3.86373 3.58864V7.75646C3.86373 8.5901 3.86373 9.00692 4.02597 9.32533C4.16868 9.60541 4.39639 9.83312 4.67647 9.97583C4.99488 10.1381 5.4117 10.1381 6.24534 10.1381Z",stroke:"#E6E6E6",strokeWidth:"0.850575",strokeLinecap:"round",strokeLinejoin:"round"})})}function imi(){return E.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx(zG,{}),E.jsx("path",{d:"M9.00049 1.28223V4.48463C9.00049 4.92323 8.74653 5.28223 8.43625 5.28223H4.56472C4.25445 5.28223 4.00049 4.92323 4.00049 4.48463V1.3025",stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function oN(){return E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M4.82672 2.88745H3.76672C2.66741 2.88745 1.76781 3.10425 1.15567 3.7164C0.543522
       4.32854 0.326721 5.22814 0.326721 6.32745V8.84745C0.326721 9.94677 0.543522 10.8464
       1.15567 11.4585C1.76781 12.0707 2.66741 12.2875 3.76672 12.2875H6.28672C7.38604
       12.2875 8.28563 12.0707 8.89777 11.4585C9.50992 10.8464 9.72672 9.94677 9.72672
       8.84745V7.88696H8.72672V8.84745C8.72672 9.84814 8.52352 10.4185 8.19067 10.7514C7.85781
       11.0843 7.28741 11.2875 6.28672 11.2875H3.76672C2.76604 11.2875 2.19563 11.0843 1.86277
       10.7514C1.52992 10.4185 1.32672 9.84814 1.32672 8.84745V6.32745C1.32672 5.32677 1.52992
       4.75636 1.86277 4.4235C2.19563 4.09065 2.76604 3.88745 3.76672 3.88745H4.82672V2.88745Z`,fill:"#E6E6E6"}),E.jsx("path",{d:`M5.69969 6.33164C5.49398 6.51587 5.47658 6.83198 5.66081 7.03768C5.84504
       7.24338 6.16114 7.26079 6.36684 7.07656L5.69969 6.33164ZM12.1921 1.66283C12.2073
       1.3871 11.9961 1.15127 11.7203 1.13609L7.22714 0.888652C6.95141 0.873468
       6.71558 1.08468 6.7004 1.3604C6.68522 1.63613 6.89643 1.87196 7.17215
       1.88714L11.1661 2.10708L10.9462 6.10103C10.931 6.37676 11.1422 6.61258 11.4179 6.62777C11.6936
       6.64295 11.9295 6.43174 11.9446 6.15602L12.1921 1.66283ZM6.36684 7.07656L12.0264 2.00779L11.3593
       1.26287L5.69969 6.33164L6.36684 7.07656Z`,fill:"#E6E6E6"})]})}function aoe(){return E.jsx("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:`M14.559 2.98383H11.9692C11.3143 2.98383 11.2859 2.90087 11.1062
        2.36239L10.9607 1.92069C10.8525 1.59414 10.644 1.31008 10.3649 1.10898C10.0858
        0.907892 9.75034 0.800035 9.40634 0.800785H6.61351C6.26976 0.800341 5.93463
        0.908341 5.65582 1.10941C5.37701 1.31048 5.16874 1.59438 5.06064 1.92069L4.9151
        2.36239C4.73536 2.90087 4.70698 2.98383 4.05207 2.98383H1.4608C1.31605 2.98383
        1.17724 3.04133 1.07489 3.14368C0.972539 3.24603 0.915039 3.38484 0.915039
        3.52959C0.915039 3.67433 0.972539 3.81315 1.07489 3.9155C1.17724 4.01785
        1.31605 4.07535 1.4608 4.07535H2.40678L2.96492 12.4437C2.95787 12.7953 
        3.0249 13.1444 3.16165 13.4684C3.29839 13.7924 3.50179 14.0839 3.75861 14.3242C4.01544 14.5644
        4.31995 14.7479 4.65234 14.8627C4.98473 14.9775 5.33756 15.0211 5.6879 
        14.9906H10.3349C10.6852 15.0211 11.038 14.9775 11.3704 14.8627C11.7028 
        14.7479 12.0073 14.5644 12.2641 14.3242C12.521 14.0839 12.7244 13.7924
        12.8611 13.4684C12.9979 13.1444 13.0649 12.7953 13.0578 12.4437L13.6131
        4.07535H14.559C14.7038 4.07535 14.8426 4.01785 14.945 3.9155C15.0473
        3.81315 15.1048 3.67433 15.1048 3.52959C15.1048 3.38484 15.0473 3.24603 
        14.945 3.14368C14.8426 3.04133 14.7038 2.98383 14.559 2.98383ZM6.09612
        2.26561C6.13211 2.15686 6.20149 2.06223 6.29439 1.99521C6.38728 1.92818 
        6.49896 1.89217 6.61351 1.89231H9.40634C9.52089 1.89217 9.63257 1.92818 9.72546 1.99521C9.81836
        2.06223 9.88774 2.15686 9.92372 2.26561L10.0693 2.70731C10.1006 2.80263 10.1333 2.89505 10.1682
        2.98383H5.84944C5.88437 2.89432 5.91712 2.80191 5.94841 2.70731L6.09612 2.26561ZM11.9671
        12.3702C11.983 12.5842 11.9508 12.7991 11.8727 12.999C11.7947 13.1989 11.6728 13.3788
        11.5161 13.5254C11.3594 13.672 11.1718 13.7816 10.9671 13.8461C10.7624 13.9106
        10.5459 13.9285 10.3334 13.8983H5.68644C5.47397 13.9285 5.25743 13.9106 
        5.05276 13.8461C4.84809 13.7816 4.66049 13.672 4.50376 13.5254C4.34704 
        13.3788 4.22517 13.1989 4.14713 12.999C4.06909 12.7991 4.03685 12.5842 
        4.0528 12.3702L3.49831 4.07535H4.04916C4.14012 4.07535 4.21507 4.06589 
        4.2973 4.06007C4.3216 4.06712 4.34642 4.07223 4.37152 4.07535H11.6483C11.6729 
        4.07215 11.6973 4.06704 11.7211 4.06007C11.8033 4.06589 11.8783 4.07535 11.9692 
        4.07535H12.5215L11.9671 12.3702ZM10.011 7.16799V10.8064C10.011 10.9511 9.95355 11.09 9.8512
        11.1923C9.74885 11.2947 9.61003 11.3522 9.46529 11.3522C9.32054 11.3522 9.18172 11.2947
        9.07938 11.1923C8.97703 11.09 8.91953 10.9511 8.91953 10.8064V7.16799C8.91953 7.02325 
        8.97703 6.88443 9.07938 6.78208C9.18172 6.67973 9.32054 6.62223 9.46529 6.62223C9.61003
        6.62223 9.74885 6.67973 9.8512 6.78208C9.95355 6.88443 10.011 7.02325 10.011 7.16799ZM7.10032 
        7.16799V10.8064C7.10032 10.9511 7.04282 11.09 6.94047 11.1923C6.83812 11.2947 6.69931 
        11.3522 6.55456 11.3522C6.40982 11.3522 6.271 11.2947 6.16865 11.1923C6.0663 11.09 6.0088 
        10.9511 6.0088 10.8064V7.16799C6.0088 7.02325 6.0663 6.88443 6.16865 6.78208C6.271 6.67973
        6.40982 6.62223 6.55456 6.62223C6.69931 6.62223 6.83812 6.67973 
        6.94047 6.78208C7.04282 6.88443 7.10032 7.02325 7.10032 7.16799Z`,fill:"#E6E6E6"})})}function yv(){return E.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M6.71465 12.4C9.86267 12.4 12.4146 9.84802 12.4146 6.7C12.4146 3.55198 9.86267 1 6.71465 1C3.56663 1 1.01465 3.55198 1.01465 6.7C1.01465 9.84802 3.56663 12.4 6.71465 12.4Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M13.0147 13L11.8147 11.8",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ami(){return E.jsxs("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M13.8874 0.205872H6.08444C3.03345 0.205872 0.981445 2.34787 0.981445
        5.53387V12.8878C0.981445 16.0648 3.03345 18.2059 6.08444 18.2059H13.8874C16.9384 18.2059
        18.9814 16.0648 18.9814 12.8878V5.53387C18.9814 2.34787 16.9384 0.205872 13.8874 0.205872Z`,fill:"url(#paint0_linear_1203_45585)",fillOpacity:"0.2"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M9.98145 3.95587L9.95481 3.95587H9.9548C9.27848 3.95587 8.73293 3.95586 8.28893
        3.98616C7.83237 4.01731 7.42866 4.08298 7.04638 4.24132C6.12753 4.62193 5.3975 5.35195
        5.0169 6.27081C4.85855 6.65308 4.79288 7.05679 4.76173 7.51335C4.73144 7.95736 4.73144
        8.50292 4.73145 9.17924L4.73145 9.20587L4.73145 9.23251C4.73144 9.90883 4.73144 10.4544
        4.76173 10.8984C4.79288 11.3549 4.85855 11.7587 5.0169 12.1409C5.3975 13.0598 6.12753
        13.7898 7.04638 14.1704C7.42866 14.3288 7.83237 14.3944 8.28893 14.4256C8.73293 14.4559
        9.27849 14.4559 9.9548 14.4559H9.98145H10.0081C10.6844 14.4559 11.23 14.4559 11.674
        14.4256C12.1305 14.3944 12.5342 14.3288 12.9165 14.1704C13.8354 13.7898 14.5654 13.0598
        14.946 12.1409C15.1043 11.7587 15.17 11.3549 15.2012 10.8984C15.2315 10.4544 15.2315
        9.90883 15.2314 9.23251V9.20587V9.17923C15.2315 8.50291 15.2315 7.95736 15.2012
        7.51335C15.17 7.05679 15.1043 6.65308 14.946 6.27081C14.5654 5.35195 13.8354 4.62193 12.9165
        4.24132C12.5342 4.08298 12.1305 4.01731 11.674 3.98616C11.23 3.95586 10.6844 3.95587 10.0081
        3.95587H10.0081L9.98145 3.95587ZM13.0118 7.17554C13.3047 7.46843 13.3047 7.94331 13.0118
        8.2362L11.0118 10.2362C10.7189 10.5291 10.244 10.5291 9.95113 10.2362L9.48146
        9.76653L8.01179 11.2362C7.7189 11.5291 7.24402 11.5291 6.95113 11.2362C6.65824 10.9433
        6.65824 10.4684 6.95113 10.1755L8.95113 8.17554C9.24402 7.88265 9.7189 7.88265 10.0118
        8.17554L10.4815 8.64521L11.9511 7.17554C12.244 6.88265 12.7189 6.88265 13.0118 7.17554Z`,fill:"white"}),E.jsx("defs",{children:E.jsxs("linearGradient",{id:"paint0_linear_1203_45585",x1:"1.70493",y1:"2.03051",x2:"18.9815",y2:"18.2056",gradientUnits:"userSpaceOnUse",children:[E.jsx("stop",{stopColor:"white",stopOpacity:"0.22"}),E.jsx("stop",{offset:"0.42111",stopColor:"white",stopOpacity:"0.249478"}),E.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0.29"})]})})]})}function r9(){return E.jsx("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M10.6844 5.73517L6.31996 8.96251M6.61931 9.6261L7.49098 12.3132C7.96839 13.7849 8.20709 14.5208 8.6174 14.7792C8.97371 15.0036 9.41486 15.0474 9.80829 14.8972C10.2613 14.7243 10.6398 14.0496 11.3968 12.7002L16.2496 4.04937C16.9884 2.73226 17.3578 2.0737 17.273 1.60105C17.1993 1.19042 16.9385 0.837602 16.5674 0.646844C16.1404 0.427275 15.4025 0.58754 13.9267 0.90807L4.21695 3.01696C2.70956 3.34435 1.95586 3.50805 1.65788 3.88987C1.3991 4.22147 1.31119 4.65541 1.42053 5.06157C1.54643 5.52926 2.177 5.97337 3.43814 6.86159L5.81519 8.53573C6.0318 8.68829 6.1401 8.76456 6.2298 8.85816C6.30939 8.94121 6.37794 9.03417 6.43377 9.13474C6.49669 9.24809 6.53756 9.37409 6.61931 9.6261Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function gP(){return E.jsx("svg",{width:"17",height:"19",viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M6.47509 13.9859L4.09025 13.9859L4.09025 11.293M3.28473 12.0985L13.4353 1.94793C14.1364 1.24685 15.2731 1.24685 15.9742 1.94793C16.6753 2.64902 16.6753 3.7857 15.9742 4.48678L5.67387 14.7871C5.1927 15.2683 4.95211 15.5089 4.68578 15.7157C4.4492 15.8994 4.19771 16.0631 3.93393 16.205C3.63695 16.3648 3.31955 16.4874 2.68476 16.7325L0.5 17.5761L1.20294 15.4671C1.44285 14.7473 1.5628 14.3874 1.72964 14.0513C1.87782 13.7529 2.05336 13.4688 2.25403 13.2028C2.47998 12.9033 2.74823 12.635 3.28473 12.0985Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function omi(){return E.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("rect",{y:"0.804688",width:"24",height:"24",rx:"4",fill:"#5000BF"}),E.jsx("path",{d:`M10.867 16.9781C13.555 16.9781 15.734 14.7007 15.734 11.8914C15.734
       9.08209 13.555 6.80469 10.867 6.80469C8.17904 6.80469 6 9.08209 6 11.8914C6 14.7007
        8.17904 16.9781 10.867 16.9781Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:"M14.5566 15.207L17.9995 18.8053",stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function smi(){return E.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("rect",{x:"17.5312",y:"17.5529",width:"17.3335",height:"17.3335",rx:"4",transform:"rotate(-180 17.5312 17.5529)",fill:"url(#paint0_linear_1203_81030)",fillOpacity:"0.5"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M10.8048 4.41052C11.2321 4.65058 11.3409 5.12888 11.0478 5.47883L8.55772 8.45147C8.33832
        8.7134 8.33832 9.05889 8.55772 9.32082L11.0478 12.2935C11.3409 12.6434 11.2321 13.1217
        10.8048 13.3618C10.3775 13.6018 9.79347 13.5128 9.50034 13.1628L7.0103 10.1902C6.35208
        9.40438 6.35208 8.36791 7.0103 7.58212L9.50034 4.60948C9.79347 4.25953 10.3775 4.17045
        10.8048 4.41052Z`,fill:"white"}),E.jsx("defs",{children:E.jsxs("linearGradient",{id:"paint0_linear_1203_81030",x1:"20.9017",y1:"19.4788",x2:"31.4943",y2:"34.8864",gradientUnits:"userSpaceOnUse",children:[E.jsx("stop",{stopColor:"white",stopOpacity:"0.23"}),E.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0.02"})]})})]})}function lmi(){return E.jsxs("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M9.94815 1.44835C10.1671 1.69444 10.1001 2.01031 9.88162 2.25688L4.11748
        8.01562L2.52734 8.58702L3.05157 6.95062L8.81523 1.19141L8.76805 1.23855C8.87752 1.12918 
        9.08891 1 9.25311 1C9.41731 1 9.58152 1.08156 9.69099 1.19141L9.94767 1.44788L9.94815 1.44835Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M7.85048 2.17578H1.53947C1.03506 2.17578 0.622192 2.5883 0.622192 
        3.09228V8.61859V8.42577V12.0833C0.622192 12.5872 1.03506 12.9998 1.53947 
        12.9998H7.83538C8.33979 12.9998 8.75266 12.5872 8.75266 12.0833V3.42229`,stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function Can(){return E.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M4.80899 1H1.53163C1.04824 1 0.656372 1.3917 0.656372 1.87489V5.15089C0.656372
      5.63408 1.04824 6.02578 1.53163 6.02578H4.80899C5.29238 6.02578 5.68425 5.63408 5.68425
      5.15089V1.87489C5.68425 1.3917 5.29238 1 4.80899 1Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M11.7812 1H8.50379C8.0204 1 7.62854 1.3917 7.62854 1.87489V5.15089C7.62854 
      5.63408 8.0204 6.02578 8.50379 6.02578H11.7812C12.2646 6.02578 12.6564 5.63408 12.6564
      5.15089V1.87489C12.6564 1.3917 12.2646 1 11.7812 1Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M4.80899 7.97363H1.53163C1.04824 7.97363 0.656372 8.36533 0.656372 8.84852V12.1245C0.656372 
      12.6077 1.04824 12.9994 1.53163 12.9994H4.80899C5.29238 12.9994 5.68425 
      12.6077 5.68425 12.1245V8.84852C5.68425 8.36533 5.29238 7.97363 4.80899 7.97363Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M11.7812 7.97363H8.50379C8.0204 7.97363 7.62854 8.36533 7.62854 8.84852V12.1245C7.62854
      12.6077 8.0204 12.9994 8.50379 12.9994H11.7812C12.2646 12.9994 12.6564 12.6077 12.6564
      12.1245V8.84852C12.6564 8.36533 12.2646 7.97363 11.7812 7.97363Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function cmi(){return E.jsxs("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M2.33576 0C1.78964 0 1.34692 0.438937 1.34692 0.980392V5.33333C1.34692 5.87478 1.78964
        6.31373 2.33576 6.31373H2.98503C2.94836 6.14298 2.92906 5.96588 2.92906 5.78431C2.92906
        4.38737 3.5 3 5.48026 2.82687C5.80823 2.82687 6.12173 2.88823 6.40976 3V0.980392C6.40976
        0.438937 5.96704 0 5.42093 0H2.33576Z`,fill:"white"}),E.jsx("path",{d:`M2.97202 7.14614C3.07404 7.36042 3.20553 7.55822 3.36129 7.73438H1.38437C0.619798
        7.73438 0 7.11987 0 6.36183V2.12653C0 1.66011 0.234655 1.24803 0.593301 1V6.00889C0.593301
        6.637 1.10685 7.14614 1.74035 7.14614H2.97202Z`,fill:"white"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M5.92126 8.09252C7.09277 8.09252 8.04247 7.14282 8.04247 5.97131C8.04247 4.7998 7.09277
        3.8501 5.92126 3.8501C4.74975 3.8501 3.80005 4.7998 3.80005 5.97131C3.80005 7.14282 4.74975
        8.09252 5.92126 8.09252ZM4.99995 6.22388H6.29077L6.07976 6.43489C5.9626 6.55205 5.9626
        6.742 6.07976 6.85916C6.19692 6.97632 6.38687 6.97632 6.50402 6.85916L7.20783
        6.15535C7.33583 6.02735 7.33583 5.81982 7.20783 5.69182L6.50402 4.98801C6.38687 4.87086
        6.19692 4.87086 6.07976 4.98801C5.9626 5.10517 5.9626 5.29512 6.07976 5.41228L6.29136
        5.62388H4.99995C4.83427 5.62388 4.69995 5.7582 4.69995 5.92388C4.69995 6.08957 4.83427
        6.22388 4.99995 6.22388Z`,fill:"white"})]})}function x2(){return E.jsxs("svg",{width:"16",height:"13",viewBox:"0 0 16 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M2.74354 5.43622C2.01153 5.43304 1.30499 5.47282 0.549113 5.44417C0.0335271 5.42349 
        -0.0158036 5.58421 0.00329221 5.65264C0.00329221 7.90912 0.00329221 10.1306 0.00329221 
        12.3855C0.111502 12.5717 0.270633 12.629 0.48546 12.6258C1.23656 12.6146 1.98607 12.6226 
        2.73717 12.621C3.08408 12.621 3.18751 12.5208 3.18751 12.1786C3.1891 10.0813 3.1891 7.98232 
        3.18751 5.88497C3.18751 5.53965 3.08726 5.43781 2.74354 5.43622Z`,fill:"currentColor"}),E.jsx("path",{d:`M6.14331 6.64726C6.17513 6.3481 6.2722 6.05689 6.34222 5.74658C5.65795 5.24372 5.47336 
        4.56264 5.71047 3.74152C5.79322 3.45509 5.83618 3.1591 5.90938 2.86948C6.07488 2.21545 
        6.48066 1.79375 7.13788 1.62189C7.20312 1.60439 7.26518 1.5837 7.32565 1.5646C7.40999 
        0.799183 7.41795 0.776904 7.69802 0.33611C7.60095 0.0751347 7.41477 -0.00602238 7.13629 
        0.000342881C6.45361 0.0194387 5.76935 0.00670814 5.08508 0.00670814C4.59018 0.00670814 
        4.50266 0.0926391 4.50266 0.598677C4.50107 1.98471 4.50266 3.37234 4.50266 4.75837C4.50266 
        7.19468 4.50266 9.63098 4.50266 12.0673C4.50266 12.6067 4.57745 12.6783 5.12327 
        12.6783C5.78844 12.6783 6.45202 12.6783 7.11719 12.6783C7.57867 12.6783 7.69325 12.5638 
        7.69484 12.0991C7.69802 11.0791 7.69961 10.0575 7.70279 9.03742C7.29383 8.58071 6.87849 
        8.12878 6.47907 7.66252C6.22924 7.37608 6.10352 7.0244 6.14331 6.64726Z`,fill:"currentColor"}),E.jsx("path",{d:`M12.0854 10.2532C11.643 10.2532 11.2006 10.2421 10.7598 10.2548C10.0055 10.2787 9.46606 
        9.95721 9.14461 9.2809C9.08096 9.14882 9.0189 9.12813 8.90751 9.20611C8.90751 10.2357 
        8.91546 11.2637 8.90432 12.2933C8.90273 12.5144 8.97116 12.6179 9.19076 12.6179C10.0564 
        12.6179 10.9221 12.6179 11.7862 12.6179C11.9978 12.6179 12.0933 12.5304 12.0885 
        12.3012C12.0774 11.6185 12.0854 10.9359 12.0854 10.2532Z`,fill:"currentColor"}),E.jsx("path",{d:`M15.5573 4.25722C15.4794 3.89121 15.395 3.52521 15.3059 3.1608C15.2518 2.94279 15.107 
        2.83936 14.8794 2.87118C14.7649 2.88709 14.6455 2.89028 14.5373 2.92529C14.2604 3.0144 
        14.122 2.89028 13.9199 2.68977C13.5491 2.319 13.5491 1.98641 13.7735 1.55994C13.9151 
        1.29101 13.8308 1.13983 13.5555 1.00616C13.2611 0.864534 12.9667 0.722907 12.6707 
        0.586054C12.3508 0.438062 12.2283 0.477845 12.0533 0.773829C12.0087 0.848621 11.9594 
        0.921822 11.9275 1.00139C11.8225 1.26555 11.6475 1.30374 11.3626 1.33556C10.8391 1.39285 
        10.5717 1.19553 10.3887 0.746777C10.3426 0.633794 10.1994 0.559002 10.0896 0.455566C9.7729 
        0.60515 9.50079 0.746777 9.21912 0.866126C8.3996 1.21303 8.58419 1.31488 8.82607 
        1.91798C8.90723 2.12167 8.86903 2.23147 8.75287 2.42084C8.45847 2.89505 8.10839 3.06055 
        7.57211 2.87755C7.37638 2.81071 7.22043 2.92847 7.16951 3.14648C7.11381 3.38995 7.06448 
        3.63501 6.99924 3.87689C6.79714 4.61526 6.86875 4.65823 7.5562 4.82691C7.79171 4.88419 
        7.86332 5.00991 7.93971 5.23587C8.10998 5.73873 8.02086 6.09996 7.57052 6.39435C7.35729 
        6.53439 7.37161 6.74603 7.5371 6.94495C7.76466 7.21865 7.98745 7.49713 8.20546 
        7.7772C8.36777 7.98567 8.55077 7.99521 8.75923 7.85677C8.85471 7.79312 8.96133 7.73901 
        9.04408 7.66104C9.23981 7.47804 9.40053 7.5401 9.644 7.61807C10.166 7.78516 10.3235 8.1082 
        10.298 8.60628C10.2853 8.87044 10.4492 8.98183 10.7038 8.98024C11.0221 8.97706 11.3403 
        8.98024 11.657 8.98024C12.0771 8.98024 12.1631 8.90226 12.1981 8.48693C12.206 8.401 12.2203 
        8.31189 12.2092 8.22755C12.1758 7.97612 12.3126 7.89019 12.5163 7.76447C12.9667 7.48599 
        13.3343 7.48758 13.7225 7.86154C13.9008 8.03181 14.114 7.97771 14.2731 7.77561C14.4148 
        7.5942 14.5596 7.41438 14.7028 7.23457C15.1754 6.64101 15.1834 6.63146 14.6169 
        6.13338C14.4307 5.97106 14.4291 5.8358 14.453 5.60029C14.5071 5.06401 14.7505 4.78872 
        15.2804 4.7187C15.516 4.6821 15.6083 4.49273 15.5573 4.25722ZM11.2353 6.25272C10.3617 
        6.24954 9.65992 5.54618 9.65992 4.67573C9.65992 3.80528 10.3696 3.0876 11.229 
        3.08919C12.101 3.09078 12.8044 3.79733 12.8044 4.66937C12.8059 5.54777 12.101 6.25591 11.2353 6.25272Z`,fill:"currentColor"})]})}function umi(){return E.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M6.64495 0.833496L6.64494 1.3335H6.64495V0.833496ZM4.43728 0.880571L4.47799 1.37891L4.43728 0.880571ZM2.92702 1.2513L3.15402 1.69681L2.92702 1.2513ZM1.25179 2.92653L0.80629 2.69954H0.80629L1.25179 2.92653ZM0.881059 4.43679L0.38272 4.39607H0.38272L0.881059 4.43679ZM0.833984 6.64445H1.33398V6.64445L0.833984 6.64445ZM0.833984 9.35587L1.33398 9.35587V9.35587H0.833984ZM0.881059 11.5635L0.38272 11.6043L0.881059 11.5635ZM1.25179 13.0738L1.6973 12.8468H1.6973L1.25179 13.0738ZM2.92702 14.749L3.15402 14.3035H3.15402L2.92702 14.749ZM4.43727 15.1198L4.39656 15.6181H4.39656L4.43727 15.1198ZM6.64489 15.1668V14.6668H6.64489L6.64489 15.1668ZM9.35641 15.1668L9.35641 14.6668H9.35641V15.1668ZM11.564 15.1198L11.6047 15.6181L11.564 15.1198ZM13.0743 14.749L12.8473 14.3035L13.0743 14.749ZM14.7495 13.0738L14.304 12.8468L14.7495 13.0738ZM15.1202 11.5635L15.6186 11.6043L15.1202 11.5635ZM15.1673 9.35592H14.6673V9.35592L15.1673 9.35592ZM15.1673 6.64441L14.6673 6.64441V6.64441H15.1673ZM15.1202 4.43679L15.6186 4.39607V4.39607L15.1202 4.43679ZM14.7495 2.92653L14.304 3.15353V3.15353L14.7495 2.92653ZM13.0743 1.2513L12.8473 1.69681V1.69681L13.0743 1.2513ZM11.564 0.880571L11.6047 0.382231L11.564 0.880571ZM9.35636 0.833496V1.3335H9.35636L9.35636 0.833496ZM6.64495 1.3335H6.66732V0.333496H6.64495V1.3335ZM4.47799 1.37891C5.02924 1.33387 5.72262 1.33349 6.64494 1.3335L6.64495 0.333496C5.73831 0.333493 4.99778 0.33311 4.39656 0.382231L4.47799 1.37891ZM3.15402 1.69681C3.51057 1.51513 3.92221 1.42432 4.47799 1.37891L4.39656 0.382231C3.77882 0.432703 3.22098 0.540363 2.70003 0.805801L3.15402 1.69681ZM1.6973 3.15353C2.01687 2.52632 2.52681 2.01639 3.15402 1.69681L2.70003 0.805801C1.88466 1.22125 1.22174 1.88417 0.80629 2.69954L1.6973 3.15353ZM1.3794 4.4775C1.42481 3.92172 1.51562 3.51008 1.6973 3.15353L0.80629 2.69954C0.540851 3.22049 0.433191 3.77833 0.38272 4.39607L1.3794 4.4775ZM1.33398 6.64445C1.33398 5.72213 1.33436 5.02875 1.3794 4.4775L0.38272 4.39607C0.333598 4.99729 0.333981 5.73782 0.333984 6.64446L1.33398 6.64445ZM1.33398 6.66683V6.64445H0.333984V6.66683H1.33398ZM1.33398 9.3335V6.66683H0.333984V9.3335H1.33398ZM1.33398 9.35587V9.3335H0.333984V9.35587H1.33398ZM1.3794 11.5228C1.33436 10.9716 1.33398 10.2782 1.33398 9.35587L0.333984 9.35587C0.333981 10.2625 0.333598 11.003 0.38272 11.6043L1.3794 11.5228ZM1.6973 12.8468C1.51562 12.4902 1.42481 12.0786 1.3794 11.5228L0.38272 11.6043C0.433191 12.222 0.540851 12.7798 0.80629 13.3008L1.6973 12.8468ZM3.15402 14.3035C2.52681 13.9839 2.01687 13.474 1.6973 12.8468L0.80629 13.3008C1.22174 14.1162 1.88466 14.7791 2.70003 15.1945L3.15402 14.3035ZM4.47799 14.6214C3.92221 14.576 3.51057 14.4852 3.15402 14.3035L2.70003 15.1945C3.22098 15.46 3.77882 15.5676 4.39656 15.6181L4.47799 14.6214ZM6.64489 14.6668C5.72259 14.6668 5.02923 14.6665 4.47799 14.6214L4.39656 15.6181C4.99777 15.6672 5.73828 15.6668 6.64489 15.6668L6.64489 14.6668ZM6.64493 14.6668H6.64489V15.6668H6.64493V14.6668ZM6.66732 14.6668H6.64493V15.6668H6.66732V14.6668ZM9.33398 14.6668H6.66732V15.6668H9.33398V14.6668ZM9.35637 14.6668H9.33398V15.6668H9.35637V14.6668ZM9.35641 14.6668H9.35637V15.6668H9.35641V14.6668ZM11.5233 14.6214C10.9721 14.6665 10.2787 14.6668 9.35641 14.6668L9.35641 15.6668C10.263 15.6668 11.0035 15.6672 11.6047 15.6181L11.5233 14.6214ZM12.8473 14.3035C12.4907 14.4852 12.0791 14.576 11.5233 14.6214L11.6047 15.6181C12.2225 15.5676 12.7803 15.46 13.3013 15.1945L12.8473 14.3035ZM14.304 12.8468C13.9844 13.474 13.4745 13.9839 12.8473 14.3035L13.3013 15.1945C14.1166 14.7791 14.7796 14.1162 15.195 13.3008L14.304 12.8468ZM14.6219 11.5228C14.5765 12.0786 14.4857 12.4902 14.304 12.8468L15.195 13.3008C15.4605 12.7798 15.5681 12.222 15.6186 11.6043L14.6219 11.5228ZM14.6673 9.35592C14.6673 10.2782 14.6669 10.9716 14.6219 11.5228L15.6186 11.6043C15.6677 11.003 15.6673 10.2625 15.6673 9.35592L14.6673 9.35592ZM14.6673 9.35589V9.35592H15.6673V9.35589H14.6673ZM14.6673 9.3335V9.35589H15.6673V9.3335H14.6673ZM14.6673 6.66683V9.3335H15.6673V6.66683H14.6673ZM14.6673 6.64444V6.66683H15.6673V6.64444H14.6673ZM14.6673 6.64441V6.64444H15.6673V6.64441H14.6673ZM14.6219 4.4775C14.6669 5.02874 14.6673 5.72211 14.6673 6.64441L15.6673 6.64441C15.6673 5.73779 15.6677 4.99728 15.6186 4.39607L14.6219 4.4775ZM14.304 3.15353C14.4857 3.51008 14.5765 3.92172 14.6219 4.4775L15.6186 4.39607C15.5681 3.77833 15.4605 3.22049 15.195 2.69954L14.304 3.15353ZM12.8473 1.69681C13.4745 2.01639 13.9844 2.52632 14.304 3.15353L15.195 2.69954C14.7796 1.88417 14.1166 1.22125 13.3013 0.805801L12.8473 1.69681ZM11.5233 1.37891C12.0791 1.42432 12.4907 1.51513 12.8473 1.69681L13.3013 0.805801C12.7803 0.540363 12.2225 0.432703 11.6047 0.382231L11.5233 1.37891ZM9.35636 1.3335C10.2787 1.33349 10.9721 1.33387 11.5233 1.37891L11.6047 0.382231C11.0035 0.33311 10.263 0.333493 9.35636 0.333496L9.35636 1.3335ZM9.33399 1.3335H9.35636V0.333496H9.33399V1.3335ZM6.66732 1.3335H9.33399V0.333496H6.66732V1.3335Z",fill:"currentColor"}),E.jsx("path",{d:"M4.00195 8H12.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}function dmi(){return E.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.64495 0.833496H6.66732H9.33399H9.35636C10.2708 0.833493 10.9878 0.833491 11.564 0.880571C12.1508 0.928511 12.6355 1.02775 13.0743 1.2513C13.7956 1.61882 14.382 2.20524 14.7495 2.92653C14.9731 3.36529 15.0723 3.85003 15.1202 4.43679C15.1673 5.01302 15.1673 5.72997 15.1673 6.64444V6.66683V9.3335V9.35589C15.1673 10.2704 15.1673 10.9873 15.1202 11.5635C15.0723 12.1503 14.9731 12.635 14.7495 13.0738C14.382 13.7951 13.7956 14.3815 13.0743 14.749C12.6355 14.9726 12.1508 15.0718 11.564 15.1198C10.9878 15.1668 10.2708 15.1668 9.35637 15.1668H9.33398H6.66732H6.64493C5.73046 15.1668 5.0135 15.1668 4.43727 15.1198C3.85051 15.0718 3.36577 14.9726 2.92702 14.749C2.20573 14.3815 1.61931 13.7951 1.25179 13.0738C1.02824 12.635 0.928999 12.1503 0.881059 11.5635C0.833979 10.9873 0.833981 10.2703 0.833984 9.35587V9.3335V6.66683V6.64445C0.833981 5.72997 0.833979 5.01302 0.881059 4.43679C0.928999 3.85003 1.02824 3.36529 1.25179 2.92653C1.61931 2.20524 2.20573 1.61882 2.92702 1.2513C3.36577 1.02775 3.85051 0.928511 4.43728 0.880571C5.01351 0.833491 5.73046 0.833493 6.64495 0.833496ZM4.51871 1.87725C3.99379 1.92014 3.6553 2.00256 3.38101 2.14231C2.84789 2.41395 2.41444 2.8474 2.1428 3.38052C2.00304 3.65481 1.92063 3.9933 1.87774 4.51822C1.83437 5.04897 1.83398 5.72516 1.83398 6.66683V9.3335C1.83398 10.2752 1.83437 10.9513 1.87774 11.4821C1.92063 12.007 2.00304 12.3455 2.1428 12.6198C2.41444 13.1529 2.84789 13.5864 3.38101 13.858C3.6553 13.9978 3.99379 14.0802 4.51871 14.1231C5.04946 14.1664 5.72564 14.1668 6.66732 14.1668H9.33398C10.2757 14.1668 10.9518 14.1664 11.4826 14.1231C12.0075 14.0802 12.346 13.9978 12.6203 13.858C13.1534 13.5864 13.5869 13.1529 13.8585 12.6198C13.9983 12.3455 14.0807 12.007 14.1236 11.4821C14.1669 10.9514 14.1673 10.2752 14.1673 9.3335V6.66683C14.1673 5.72516 14.1669 5.04898 14.1236 4.51822C14.0807 3.9933 13.9983 3.65481 13.8585 3.38052C13.5869 2.8474 13.1534 2.41395 12.6203 2.14231C12.346 2.00256 12.0075 1.92014 11.4826 1.87725C10.9518 1.83388 10.2757 1.8335 9.33399 1.8335H6.66732C5.72565 1.8335 5.04946 1.83388 4.51871 1.87725Z",fill:"currentColor"}),E.jsx("path",{d:"M5.66862 6.3335L4.00195 8.0002L5.66862 9.66683",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M10.334 6.33343L12.0007 8.00016L10.334 9.66686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M8.66732 4.66699L7.33398 11.3337",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}function hmi(){return E.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M6.64495 0.833496L6.64494 1.3335H6.64495V0.833496ZM4.43728 0.880571L4.47799 1.37891L4.43728 0.880571ZM2.92702 1.2513L3.15402 1.69681L2.92702 1.2513ZM1.25179 2.92653L0.80629 2.69954H0.80629L1.25179 2.92653ZM0.881059 4.43679L0.38272 4.39607H0.38272L0.881059 4.43679ZM0.833984 6.64445H1.33398V6.64445L0.833984 6.64445ZM0.833984 9.35587L1.33398 9.35587V9.35587H0.833984ZM0.881059 11.5635L0.38272 11.6043L0.881059 11.5635ZM1.25179 13.0738L1.6973 12.8468H1.6973L1.25179 13.0738ZM2.92702 14.749L3.15402 14.3035H3.15402L2.92702 14.749ZM4.43727 15.1198L4.39656 15.6181H4.39656L4.43727 15.1198ZM6.64489 15.1668V14.6668H6.64489L6.64489 15.1668ZM9.35641 15.1668L9.35641 14.6668H9.35641V15.1668ZM11.564 15.1198L11.6047 15.6181L11.564 15.1198ZM13.0743 14.749L12.8473 14.3035L13.0743 14.749ZM14.7495 13.0738L14.304 12.8468L14.7495 13.0738ZM15.1202 11.5635L15.6186 11.6043L15.1202 11.5635ZM15.1673 9.35592H14.6673V9.35592L15.1673 9.35592ZM15.1673 6.64441L14.6673 6.64441V6.64441H15.1673ZM15.1202 4.43679L15.6186 4.39607V4.39607L15.1202 4.43679ZM14.7495 2.92653L14.304 3.15353V3.15353L14.7495 2.92653ZM13.0743 1.2513L12.8473 1.69681V1.69681L13.0743 1.2513ZM11.564 0.880571L11.6047 0.382231L11.564 0.880571ZM9.35636 0.833496V1.3335H9.35636L9.35636 0.833496ZM6.64495 1.3335H6.66732V0.333496H6.64495V1.3335ZM4.47799 1.37891C5.02924 1.33387 5.72262 1.33349 6.64494 1.3335L6.64495 0.333496C5.73831 0.333493 4.99778 0.33311 4.39656 0.382231L4.47799 1.37891ZM3.15402 1.69681C3.51057 1.51513 3.92221 1.42432 4.47799 1.37891L4.39656 0.382231C3.77882 0.432703 3.22098 0.540363 2.70003 0.805801L3.15402 1.69681ZM1.6973 3.15353C2.01687 2.52632 2.52681 2.01639 3.15402 1.69681L2.70003 0.805801C1.88466 1.22125 1.22174 1.88417 0.80629 2.69954L1.6973 3.15353ZM1.3794 4.4775C1.42481 3.92172 1.51562 3.51008 1.6973 3.15353L0.80629 2.69954C0.540851 3.22049 0.433191 3.77833 0.38272 4.39607L1.3794 4.4775ZM1.33398 6.64445C1.33398 5.72213 1.33436 5.02875 1.3794 4.4775L0.38272 4.39607C0.333598 4.99729 0.333981 5.73782 0.333984 6.64446L1.33398 6.64445ZM1.33398 6.66683V6.64445H0.333984V6.66683H1.33398ZM1.33398 9.3335V6.66683H0.333984V9.3335H1.33398ZM1.33398 9.35587V9.3335H0.333984V9.35587H1.33398ZM1.3794 11.5228C1.33436 10.9716 1.33398 10.2782 1.33398 9.35587L0.333984 9.35587C0.333981 10.2625 0.333598 11.003 0.38272 11.6043L1.3794 11.5228ZM1.6973 12.8468C1.51562 12.4902 1.42481 12.0786 1.3794 11.5228L0.38272 11.6043C0.433191 12.222 0.540851 12.7798 0.80629 13.3008L1.6973 12.8468ZM3.15402 14.3035C2.52681 13.9839 2.01687 13.474 1.6973 12.8468L0.80629 13.3008C1.22174 14.1162 1.88466 14.7791 2.70003 15.1945L3.15402 14.3035ZM4.47799 14.6214C3.92221 14.576 3.51057 14.4852 3.15402 14.3035L2.70003 15.1945C3.22098 15.46 3.77882 15.5676 4.39656 15.6181L4.47799 14.6214ZM6.64489 14.6668C5.72259 14.6668 5.02923 14.6665 4.47799 14.6214L4.39656 15.6181C4.99777 15.6672 5.73828 15.6668 6.64489 15.6668L6.64489 14.6668ZM6.64493 14.6668H6.64489V15.6668H6.64493V14.6668ZM6.66732 14.6668H6.64493V15.6668H6.66732V14.6668ZM9.33398 14.6668H6.66732V15.6668H9.33398V14.6668ZM9.35637 14.6668H9.33398V15.6668H9.35637V14.6668ZM9.35641 14.6668H9.35637V15.6668H9.35641V14.6668ZM11.5233 14.6214C10.9721 14.6665 10.2787 14.6668 9.35641 14.6668L9.35641 15.6668C10.263 15.6668 11.0035 15.6672 11.6047 15.6181L11.5233 14.6214ZM12.8473 14.3035C12.4907 14.4852 12.0791 14.576 11.5233 14.6214L11.6047 15.6181C12.2225 15.5676 12.7803 15.46 13.3013 15.1945L12.8473 14.3035ZM14.304 12.8468C13.9844 13.474 13.4745 13.9839 12.8473 14.3035L13.3013 15.1945C14.1166 14.7791 14.7796 14.1162 15.195 13.3008L14.304 12.8468ZM14.6219 11.5228C14.5765 12.0786 14.4857 12.4902 14.304 12.8468L15.195 13.3008C15.4605 12.7798 15.5681 12.222 15.6186 11.6043L14.6219 11.5228ZM14.6673 9.35592C14.6673 10.2782 14.6669 10.9716 14.6219 11.5228L15.6186 11.6043C15.6677 11.003 15.6673 10.2625 15.6673 9.35592L14.6673 9.35592ZM14.6673 9.35589V9.35592H15.6673V9.35589H14.6673ZM14.6673 9.3335V9.35589H15.6673V9.3335H14.6673ZM14.6673 6.66683V9.3335H15.6673V6.66683H14.6673ZM14.6673 6.64444V6.66683H15.6673V6.64444H14.6673ZM14.6673 6.64441V6.64444H15.6673V6.64441H14.6673ZM14.6219 4.4775C14.6669 5.02874 14.6673 5.72211 14.6673 6.64441L15.6673 6.64441C15.6673 5.73779 15.6677 4.99728 15.6186 4.39607L14.6219 4.4775ZM14.304 3.15353C14.4857 3.51008 14.5765 3.92172 14.6219 4.4775L15.6186 4.39607C15.5681 3.77833 15.4605 3.22049 15.195 2.69954L14.304 3.15353ZM12.8473 1.69681C13.4745 2.01639 13.9844 2.52632 14.304 3.15353L15.195 2.69954C14.7796 1.88417 14.1166 1.22125 13.3013 0.805801L12.8473 1.69681ZM11.5233 1.37891C12.0791 1.42432 12.4907 1.51513 12.8473 1.69681L13.3013 0.805801C12.7803 0.540363 12.2225 0.432703 11.6047 0.382231L11.5233 1.37891ZM9.35636 1.3335C10.2787 1.33349 10.9721 1.33387 11.5233 1.37891L11.6047 0.382231C11.0035 0.33311 10.263 0.333493 9.35636 0.333496L9.35636 1.3335ZM9.33399 1.3335H9.35636V0.333496H9.33399V1.3335ZM6.66732 1.3335H9.33399V0.333496H6.66732V1.3335Z",fill:"currentColor"}),E.jsx("path",{d:"M8.00065 4.66602V11.3327M8.00065 4.66602H5.33398M8.00065 4.66602H10.6673",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}function rze(){return E.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("rect",{x:"0.5",width:"16",height:"16",rx:"4",fill:"#ECEEF3",fillOpacity:"0.1"}),E.jsx("path",{d:`M11.2863 6.82674L8.11964 9.99341C8.0063 10.1067 7.85964 10.1601 7.7063 10.1601C7.55964 10.1601
        7.41297 10.1067 7.29964 9.99341L5.71297 8.41341C5.4863 8.18008 5.4863 7.81341 5.71297 7.58674C5.93964
        7.36008 6.31297 7.36008 6.53964 7.58674L7.7063 8.75341L10.4596 6.00008C10.6863 5.77341 11.0596
        5.77341 11.2863 6.00008C11.513 6.23341 11.513 6.60008 11.2863 6.82674Z`,fill:"#ECEEF3"})]})}function ooe(){return E.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M4.3298 7.85032C4.23912 7.85032 4.1541 7.83603 4.07476 7.80747C3.99541 7.77936 3.92173 7.7313 3.85372 7.66328L0.929212 4.73878C0.804524 4.61409 0.7449 4.45245 0.750341 4.25385C0.756236 4.05571 0.821527 3.8943 0.946215 3.76961C1.0709 3.64492 1.2296 3.58258 1.4223 3.58258C1.615 3.58258 1.77369 3.64492 1.89838 3.76961L4.3298 6.20103L10.0938 0.437032C10.2185 0.312344 10.3801 0.25 10.5787 0.25C10.7769 0.25 10.9383 0.312344 11.063 0.437032C11.1877 0.561721 11.25 0.723135 11.25 0.921276C11.25 1.11987 11.1877 1.28151 11.063 1.4062L4.80588 7.66328C4.73787 7.7313 4.66419 7.77936 4.58485 7.80747C4.5055 7.83603 4.42048 7.85032 4.3298 7.85032Z",fill:"#2D2447"})})}function fmi(){return E.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("rect",{x:"0.335938",y:"0.166992",width:"17.666",height:"17.666",rx:"4",fill:"url(#paint0_linear_2001_21849)",fillOpacity:"0.2"}),E.jsx("rect",{x:"0.335938",y:"0.166992",width:"17.666",height:"17.666",rx:"4",fill:"#1F1638"}),E.jsx("rect",{x:"7.16797",y:"4.5",width:"1",height:"9",rx:"0.5",fill:"currentColor"}),E.jsx("rect",{x:"10.168",y:"4.5",width:"1",height:"9",rx:"0.5",fill:"currentColor"}),E.jsx("defs",{children:E.jsxs("linearGradient",{id:"paint0_linear_2001_21849",x1:"1.046",y1:"1.95778",x2:"18.002",y2:"17.8328",gradientUnits:"userSpaceOnUse",children:[E.jsx("stop",{stopColor:"white",stopOpacity:"0.22"}),E.jsx("stop",{offset:"0.42111",stopColor:"white",stopOpacity:"0.249478"}),E.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0.29"})]})})]})}function kan(){return E.jsxs("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M6.24895 5.52501L8.08579 5.52438V4.5L5.01234 4.50045C4.72958 4.50045 4.5 4.73003 4.5 5.01264V8.08609H5.52453V6.24925L8.02372 8.74859L8.74814 8.02417L6.24895 5.52501Z",fill:"currentColor"}),E.jsx("path",{d:"M3.22313 0.662472L3.22358 2.49871L0.724421 0L0 0.724421L2.49919 3.22361L0.662352 3.22424V4.24817H3.7358C4.01793 4.24817 4.24814 4.01859 4.24814 3.73598V0.661872L3.22313 0.662472Z",fill:"currentColor"})]})}function Ran(){return E.jsxs("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M6.99909 7.72401L5.16226 7.72464V8.74902L8.23571 8.74857C8.51847 8.74857 8.74805 8.519 8.74805 8.23638V5.16293H7.72351V6.99977L5.22433 4.50043L4.49991 5.22485L6.99909 7.72401Z",fill:"currentColor"}),E.jsx("path",{d:"M1.02492 3.58557L1.02447 1.74934L3.52363 4.24805L4.24805 3.52363L1.74886 1.02444L3.58569 1.02381V-0.000124931H0.512247C0.230114 -0.000124931 -9.48906e-05 0.229454 -9.48906e-05 0.512067V3.58618L1.02492 3.58557Z",fill:"currentColor"})]})}function Man(){return E.jsx("svg",{width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M4 1L1 3.8L4 5.4L1.1875 8",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})})}function Nan(){return E.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M8.68046 9.357H0.642997V1.31955C0.642997 1.142 0.499202 0.998047 0.321498 0.998047C0.143795 0.998047 0 1.142 0 1.31955V9.6785C0 9.85605 0.143795 10 0.321498 10H8.68046C8.85816 10 9.00195 9.85605 9.00195 9.6785C9.00195 9.50096 8.85816 9.357 8.68046 9.357Z",fill:"currentColor"}),E.jsx("path",{d:"M6.06318 4.51755L5.75464 3.10094C5.63801 2.56559 5.2246 2.18268 4.72656 2.12305V8.79395H6.06318V4.51755Z",fill:"currentColor"}),E.jsx("path",{d:"M6.60178 6.09586L6.52539 5.74512V8.79416H7.86201C7.25281 8.01958 6.81957 7.09598 6.60178 6.09586Z",fill:"currentColor"}),E.jsx("path",{d:"M4.14912 2.12305C3.65108 2.18268 3.23767 2.56559 3.12104 3.10094L2.8125 4.51755V8.79395H4.14912V2.12305Z",fill:"currentColor"}),E.jsx("path",{d:"M2.30146 5.67773L2.22507 6.02848C2.00728 7.02859 1.57404 7.9522 0.964844 8.72677H2.30146V5.67773Z",fill:"currentColor"})]})}function pmi(){return E.jsxs("svg",{width:"20",height:"14",viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M17.3869 1H2.51329C1.84613 1 1.3053 1.50972 1.3053 2.1385V11.8615C1.3053
       12.4903 1.84613 13 2.51329 13H17.3869C18.054 13 18.5948 12.4903 18.5948 
       11.8615V2.1385C18.5948 1.50972 18.054 1 17.3869 1Z`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M6.5632 12.7513V6.42445C6.5632 6.11116 6.36918 5.85547 6.13211 
      5.85547H4.91949C4.68242 5.85547 4.4884 6.11116 4.4884 6.42445V12.7513`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M11.0793 12.7511V4.72257C11.0793 4.3255 10.8853 4 10.6482 4H9.4356C9.19854
       4 9.00452 4.32463 9.00452 4.72257V12.7502`,stroke:"#E6E6E6",strokeMiterlimit:"10"}),E.jsx("path",{d:`M15.5948 12.7513V6.42445C15.5948 6.11116 15.4007 5.85547 15.1637 
       5.85547H13.951C13.714 5.85547 13.52 6.11116 13.52 6.42445V12.7513`,stroke:"#E6E6E6",strokeMiterlimit:"10"})]})}function soe(){return E.jsxs("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:`M1.07826 3.61876C1.90822 2.26707 3.79609 -0.000732422 7.10949 -0.000732422C10.4229
       -0.000732422 12.3108 2.26707 13.1407 3.61876C13.3973 4.03374 13.5332 4.51199 13.5332
        4.99988C13.5332 5.48777 13.3973 5.96602 13.1407 6.381C12.3108 7.73269 10.4229 10.0005
        7.10949 10.0005C3.79609 10.0005 1.90822 7.73269 1.07826 6.381C0.82169 5.96602 0.685785
        5.48777 0.685785 4.99988C0.685785 4.51199 0.82169 4.03374 1.07826 3.61876ZM1.99062
        5.82074C2.70339 6.97979 4.31675 8.93027 7.10949 8.93027C9.90224 8.93027 11.5156
        6.97979 12.2284 5.82074C12.3808 5.57408 12.4615 5.28984 12.4615 4.99988C12.4615
        4.70992 12.3808 4.42568 12.2284 4.17902C11.5156 3.01997 9.90224 1.06949 7.10949
        1.06949C4.31675 1.06949 2.70339 3.01783 1.99062 4.17902C1.83819 4.42568 1.75745
        4.70992 1.75745 4.99988C1.75745 5.28984 1.83819 5.57408 1.99062 5.82074Z`,fill:"#E6E6E6"}),E.jsx("path",{d:`M7.10948 2.32422C7.63865 2.32422 8.15594 2.48114 8.59594 2.77513C9.03593
        3.06912 9.37886 3.48699 9.58137 3.97588C9.78387 4.46478 9.83686 5.00274 9.73362
        5.52175C9.63039 6.04075 9.37556 6.51749 9.00138 6.89168C8.6272 7.26586 8.15046
        7.52068 7.63145 7.62392C7.11245 7.72715 6.57448 7.67417 6.08559 7.47166C5.5967 7.26916
        5.17883 6.92622 4.88484 6.48623C4.59084 6.04624 4.43393 5.52895 4.43393 4.99977C4.43478
        4.29043 4.71694 3.61039 5.21852 3.10881C5.7201 2.60723 6.40014 2.32507 7.10948
        2.32422ZM7.10948 6.60511C7.42698 6.60511 7.73736 6.51095 8.00135 6.33456C8.26535
        6.15816 8.47111 5.90744 8.59261 5.61411C8.71412 5.32077 8.74591 4.99799 8.68397
        4.68659C8.62202 4.37518 8.46913 4.08914 8.24462 3.86463C8.02011 3.64012 7.73407
        3.48723 7.42266 3.42529C7.11126 3.36334 6.78848 3.39514 6.49514 3.51664C6.20181       
        3.63814 5.95109 3.8439 5.77469 4.1079C5.5983 4.37189 5.50415 4.68227 5.50415
        4.99977C5.50415 5.42553 5.67328 5.83386 5.97434 6.13491C6.2754 6.43597
        6.68372 6.60511 7.10948 6.60511Z`,fill:"#E6E6E6"})]})}function mmi(){return E.jsxs("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsxs("g",{clipPath:"url(#clip0_2008_7574)",children:[E.jsx("path",{d:`M14.875 3.12673L13.8733 2.125L12.2845 3.71408C11.1202 3.14968 9.84328 2.8333 8.4999 2.8333C4.86557
          2.8333 1.70019 5.11594 0 8.49996C0.835754 10.1636 2.02894 11.554 3.45458 12.5444L2.12518 13.8732L3.12691
          14.8749L4.713 13.2888L6.54961 11.4528C6.54961 11.4528 6.54961 11.4528 6.54899 11.4528L14.875
          3.12673ZM4.95841 8.49996C4.95841 6.5437 6.54384 4.95827 8.5001 4.95827C9.22218 4.95827 9.88897 5.17907
          10.4481 5.55048L9.41106 6.58724C9.13353 6.45526 8.82798 6.37495 8.5001 6.37495C7.32626 6.37495 6.37513
          7.32608 6.37513 8.49992C6.37513 8.82718 6.45544 9.13422 6.58742 9.41088L5.55066 10.4479C5.17983 9.88883
          4.95841 9.222 4.95841 8.49996Z`,fill:"currentColor"}),E.jsx("path",{d:`M14.6562 5.34961L11.9931 8.01263C12.0152 8.17392 12.0422 8.3337 12.0422 8.5003C12.0422 10.4566
          10.4568 12.042 8.50054 12.042C8.33308 12.042 8.17416 12.015 8.01288 11.9929L6.16797 13.8384C6.91574
          14.0494 7.69542 14.1672 8.50054 14.1672C12.1349 14.1672 15.3003 11.8851 17.0004 8.50051C16.3925
          7.28993 15.5941 6.22384 14.6562 5.34961Z`,fill:"currentColor"})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_2008_7574",children:E.jsx("rect",{width:"17",height:"17",fill:"white"})})})]})}function gmi(){return E.jsx("svg",{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M1.27148 6H13.2715M1.27148 6L6.27148 1M1.27148 6L6.27148 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function vmi(){return E.jsx("svg",{width:"9",height:"10",viewBox:"0 0 9 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.93388 0.886842C6.55233 0.894375 7.20271 1.24743 7.92121 1.96561C8.64106 2.68544 8.99409 3.33719 9.00002 3.95726C9.0032 3.99353 8.99474 4.03004 8.97574 4.06129C8.96721 4.0755 8.95668 4.08837 8.94454 4.09952C8.58529 4.4651 8.09584 4.67373 7.5831 4.67962C7.45626 4.67487 7.33092 4.65965 7.20822 4.63449L5.9679 5.8748C6.25394 6.34677 6.33172 7.39682 5.69083 8.03739C5.56634 8.16311 5.39548 8.23186 5.2186 8.22738C4.72623 8.22738 4.09011 7.79127 3.50947 7.27412L1.04389 9.08221C0.982918 9.12792 0.899102 9.12792 0.838129 9.08221C0.762366 9.0254 0.747015 8.91792 0.80384 8.84215L2.61037 6.37736C2.3625 6.09376 2.13613 5.79168 1.93327 5.4736C1.59788 4.90295 1.56907 4.47257 1.84754 4.1941C2.1925 3.86279 2.65691 3.68527 3.13492 3.70199C3.44183 3.68711 3.74466 3.7651 4.00474 3.92369L5.24619 2.68224C5.10584 2.00459 5.35541 1.37389 5.79297 0.936122C5.82522 0.903795 5.86902 0.885662 5.91468 0.885742C5.92117 0.885754 5.92758 0.886127 5.93388 0.886842Z",fill:"white"})})}function wEt(){return E.jsx("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M6 8.66667V10M2.875 5.68586C3.16964 5.66667 3.53287 5.66667 4 5.66667H8C8.46713 5.66667 8.83036 5.66667 9.125 5.68586M2.875 5.68586C2.5073 5.7098 2.24643 5.76364 2.02377 5.88465C1.67096 6.0764 1.38413 6.38236 1.20436 6.75869C1 7.18651 1 7.74656 1 8.86667V9.8C1 10.9201 1 11.4802 1.20436 11.908C1.38413 12.2843 1.67096 12.5903 2.02377 12.782C2.42485 13 2.9499 13 4 13H8C9.0501 13 9.57515 13 9.97623 12.782C10.329 12.5903 10.6159 12.2843 10.7956 11.908C11 11.4802 11 10.9201 11 9.8V8.86667C11 7.74656 11 7.18651 10.7956 6.75869C10.6159 6.38236 10.329 6.0764 9.97623 5.88465C9.75357 5.76364 9.4927 5.7098 9.125 5.68586M2.875 5.68586V4.33333C2.875 2.49238 4.27411 1 6 1C7.72589 1 9.125 2.49238 9.125 4.33333V5.68586",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ami(){return E.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M4.11111 6.44444H11.8889M4.11111 9.55556H8M4.11111 1V2.55556M11.8889 1V2.55556M3.48889 15H12.5111C13.3823 15 13.8179 15 14.1507 14.8305C14.4433 14.6813 14.6813 14.4433 14.8305 14.1507C15 13.8179 15 13.3823 15 12.5111V5.04444C15 4.17325 15 3.73766 14.8305 3.4049C14.6813 3.11221 14.4433 2.87424 14.1507 2.7251C13.8179 2.55556 13.3823 2.55556 12.5111 2.55556H3.48889C2.6177 2.55556 2.1821 2.55556 1.84935 2.7251C1.55665 2.87424 1.31868 3.11221 1.16955 3.4049C1 3.73766 1 4.17325 1 5.04444V12.5111C1 13.3823 1 13.8179 1.16955 14.1507C1.31868 14.4433 1.55665 14.6813 1.84935 14.8305C2.1821 15 2.6177 15 3.48889 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function ymi(){return E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M9.77059 10.8912C11.59 10.1371 12.4536 8.05074 11.6995 6.2313C10.9453 4.41185 8.85896 3.54827 7.03952 4.30243C5.22007 5.0566 4.35649 7.14292 5.11065 8.96237C5.86482 10.7818 7.95114 11.6454 9.77059 10.8912Z",fill:"currentColor"}),E.jsx("path",{d:"M12.7852 4.19337C13.4612 4.19337 14.0112 3.64336 14.0112 2.96729C14.0112 2.29122 13.4612 1.74121 12.7852 1.74121C12.1091 1.74121 11.5591 2.29122 11.5591 2.96729C11.5591 3.64336 12.1091 4.19337 12.7852 4.19337Z",fill:"currentColor"}),E.jsx("path",{d:"M4.81081 2.84887C5.85121 2.06052 7.09316 1.64381 8.40234 1.64381C9.34931 1.64381 10.2547 1.85964 11.0932 2.28533L11.4753 1.53273C10.5172 1.04639 9.48331 0.799805 8.40234 0.799805C6.90759 0.799805 5.48942 1.27574 4.30109 2.17617C3.1517 3.04713 2.29372 4.28429 1.88525 5.65981L2.69437 5.90007C3.052 4.69563 3.80364 3.61204 4.81081 2.84887Z",fill:"currentColor"}),E.jsx("path",{d:"M14.2893 4.19727L13.5589 4.62014C14.0806 5.52131 14.3564 6.55118 14.3564 7.59848C14.3564 8.90766 13.9397 10.1496 13.1513 11.19C12.3881 12.1972 11.3045 12.9488 10.1001 13.3065L10.3403 14.1156C11.7159 13.7071 12.953 12.8492 13.824 11.6998C14.7244 10.5114 15.2004 9.09323 15.2004 7.59848C15.2004 6.40289 14.8853 5.22678 14.2893 4.19727Z",fill:"currentColor"}),E.jsx("path",{d:"M2.69434 9.2959L1.88525 9.53616C2.20524 10.6138 2.79672 11.6057 3.59579 12.4048C4.39483 13.2038 5.38679 13.7953 6.46441 14.1153L6.70467 13.3062C5.7613 13.0261 4.89263 12.508 4.19258 11.808C3.49257 11.1079 2.97446 10.2393 2.69434 9.2959Z",fill:"currentColor"}),E.jsx("path",{d:"M8.40232 12.7471C7.72628 12.7471 7.17627 13.2971 7.17627 13.9731C7.17627 14.6492 7.72628 15.1992 8.40232 15.1992C9.07837 15.1992 9.6284 14.6492 9.6284 13.9731C9.6284 13.2971 9.07837 12.7471 8.40232 12.7471Z",fill:"currentColor"}),E.jsx("path",{d:"M2.02588 8.82423C2.70303 8.82423 3.25196 8.2753 3.25196 7.59815C3.25196 6.92101 2.70303 6.37207 2.02588 6.37207C1.34874 6.37207 0.799805 6.92101 0.799805 7.59815C0.799805 8.2753 1.34874 8.82423 2.02588 8.82423Z",fill:"currentColor"})]})}function bmi(){return E.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M7.99985 0.75C9.40711 0.75 10.5948 1.89081 10.546 3.39893C12.3138 4.30031 13.4904 6.081 13.5976 8.09338C14.5017 8.48429 15.1345 9.38459 15.1345 10.4327C15.1345 11.84 13.9937 12.9808 12.5864 12.9808C12.2086 12.9808 11.8501 12.8986 11.5277 12.7511C10.5396 13.5523 9.30406 14 7.99985 14C6.69585 14 5.46041 13.5525 4.47216 12.7511C4.14997 12.8985 3.79125 12.9808 3.41331 12.9808C2.00605 12.9808 0.865234 11.84 0.865234 10.4327C0.865234 9.38459 1.49804 8.48429 2.40242 8.09301C2.50936 6.0801 3.68692 4.29979 5.45381 3.39868C5.4139 1.88458 6.59259 0.75 7.99985 0.75ZM10.2889 4.41849L10.2824 4.43198C9.86513 5.27022 8.99975 5.84615 7.99985 5.84615C6.99475 5.84615 6.12557 5.26421 5.71087 4.41887C4.45494 5.14194 3.60339 6.42529 3.4414 7.8853C4.83609 7.90019 5.96139 9.03503 5.96139 10.4327C5.96139 11.0797 5.72026 11.6703 5.32298 12.1197C6.09335 12.6742 7.02224 12.9808 7.99985 12.9808C8.97754 12.9808 9.90644 12.6741 10.6769 12.119C10.2793 11.6699 10.0383 11.0794 10.0383 10.4327C10.0383 9.06246 11.1199 7.94484 12.5583 7.88527C12.3964 6.42597 11.5456 5.14259 10.2889 4.41849Z",fill:"currentColor"})})}function xmi(){return E.jsxs("svg",{width:"2",height:"12",viewBox:"0 0 2 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("circle",{cx:"1",cy:"1",r:"1",fill:"#E6E6E6"}),E.jsx("circle",{cx:"1",cy:"6",r:"1",fill:"#E6E6E6"}),E.jsx("circle",{cx:"1",cy:"11",r:"1",fill:"#E6E6E6"})]})}function Emi(){return E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M19.8583 4.71794C19.7682 4.62642 19.6442 4.57684 19.5163 4.57837C19.4832 4.57837 18.3957 4.58371 16.796 4.58981V0.482712C16.796 0.356868 16.7452 0.234837 16.6551 0.145602C16.565 0.0563675 16.4417 0.00602979 16.3146 0.00602979H3.16826C2.33799 -0.046596 1.52313 0.24704 0.920841 0.816771C0.318552 1.3865 -0.0141705 2.17894 0.0004631 3.00188V14.3416C0.0004631 16.7807 0.511099 18.4716 1.51697 19.367C1.93287 19.7582 2.47971 19.984 3.05427 20C3.09047 20 3.11819 19.9992 3.13899 19.9969H19.5186C19.6457 19.9969 19.7689 19.9466 19.8591 19.8574C19.9492 19.7681 20 19.6461 20 19.5203V5.05581C20 4.92921 19.9484 4.80718 19.8583 4.71794ZM3.16826 0.959395H15.834V4.59362C12.3813 4.60735 7.37119 4.62489 4.77102 4.62489C1.13803 4.62489 0.970133 3.06824 0.964742 2.99349C0.955499 2.42529 1.18964 1.87996 1.60939 1.49175C2.02992 1.10354 2.59601 0.910582 3.16826 0.959395ZM19.038 19.0443L3.07891 19.0459C2.72155 19.0367 2.38189 18.8888 2.13389 18.634C1.59938 18.1406 0.963201 16.995 0.963201 14.3408V4.62108C1.64174 5.13742 2.7978 5.57826 4.77025 5.57826C8.44329 5.57826 16.9231 5.54241 19.0373 5.53326V19.0436L19.038 19.0443Z",fill:"currentColor"})})}function Qy(){return E.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M13 1.30777L7 8.69238L1 1.30777",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function gAe(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",children:E.jsx("path",{fill:"currentColor",d:"M2 4.75A.75.75 0 0 1 2.75 4h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75Zm0 10a.75.75 0 0 1 .75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75ZM2.75 9a.75.75 0 0 0 0 1.5h14.5a.75.75 0 0 0 0-1.5H2.75Z"})})}function vAe(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",children:E.jsx("path",{fill:"currentColor",d:"M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"})})}function Smi(t){return E.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[E.jsx("path",{d:"M17.3955 6.6145H24.583",stroke:"#9995BA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M17.3955 10.2083H20.9893",stroke:"#9995BA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M25.7809 14.401C25.7809 20.69 20.6898 25.7812 14.4007 25.7812C8.11165 25.7812 3.02051 20.69 3.02051 14.401C3.02051 8.1119 8.11165 3.02075 14.4007 3.02075",stroke:"#9995BA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M26.9788 26.9791L24.583 24.5833",stroke:"#9995BA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function wmi(){return E.jsx("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M0.667969 13.9963V5.58204H1.7754L1.76417 12.1106L12.7786 1.09995L6.25001 1.11117V0H14.668V8.41796L13.568 8.42918V1.88936L2.55733 12.9001H9.09715L9.08593 14H0.667969V13.9963Z",fill:"currentColor"})})}function ize(){return E.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M9.39308 8.51706L9.39437 0.399061L8.60612 0.400924L8.6067 8.51706L5.34938 5.25974L4.80712 5.81319L8.99989 10.006L13.1927 5.81319L12.6392 5.25974L9.39308 8.51706Z",fill:"currentColor"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.40446 4.71004C1.40446 4.4379 1.18385 4.21729 0.911703 4.21729C0.63956 4.21729 0.418945 4.4379 0.418945 4.71004V10.0101C0.418945 12.7628 2.65047 14.9944 5.40319 14.9944H10.3341C10.3341 14.9944 10.3341 14.9944 10.3341 14.9943C10.3341 14.9943 10.3341 14.9943 10.3342 14.9943L13.6492 14.9943C15.4999 14.9943 17.0001 13.494 17.0001 11.6434V5.12384C17.0001 4.85169 16.7795 4.63108 16.5074 4.63108C16.2352 4.63108 16.0146 4.85169 16.0146 5.12384L16.0146 10.7908C16.0146 12.5735 14.5694 14.0187 12.7866 14.0187H9.5242C9.52417 14.0187 9.52415 14.0187 9.52415 14.0188C9.52415 14.0188 9.52413 14.0188 9.52411 14.0188L5.44271 14.0188C3.21245 14.0188 1.40446 12.2108 1.40446 9.98056L1.40446 4.71004Z",fill:"currentColor"})]})}function _mi(){return E.jsxs("svg",{width:"34",height:"26",viewBox:"0 0 34 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M8.86244 6.00043L0 21.1677H9.82891L18.7444 0.990723L8.86244 6.00043Z",fill:"#E6E6E6"}),E.jsx("path",{d:"M20.1403 2.66943L15.0792 14.2183L22.1811 23.3075H8.2207V25.2629H33.342L20.1403 2.66943Z",fill:"#E6E6E6"})]})}function Tmi(){return E.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M9.55901 12.4156L8.04372 10.9129C7.34723 10.2222 6.99899 9.87688 6.59806 9.74736C6.24536 9.63341 5.86574 9.63341 5.51303 9.74736C5.11211 9.87688 4.76387 10.2222 4.06738 10.9129L0.538951 14.4666M9.55901 12.4156L9.86023 12.1169C10.5713 11.4117 10.9269 11.0591 11.3348 10.9304C11.6936 10.8172 12.0791 10.8217 12.4352 10.9431C12.8401 11.0811 13.1874 11.4418 13.8821 12.1631L14.6196 12.9119M9.55901 12.4156L13.049 15.9672M13.049 15.9672C12.7405 16 12.3443 16 11.7961 16H3.32548C2.33715 16 1.84299 16 1.4655 15.8077C1.13345 15.6385 0.863483 15.3685 0.694295 15.0365C0.612983 14.8769 0.566046 14.6964 0.538951 14.4666M13.049 15.9672C13.2967 15.9408 13.488 15.8933 13.6561 15.8077C13.9881 15.6385 14.2581 15.3685 14.4273 15.0365C14.6196 14.659 14.6196 14.1648 14.6196 13.1765V9.82353M6.67842 1.88235H3.32548C2.33715 1.88235 1.84299 1.88235 1.4655 2.07469C1.13345 2.24388 0.863483 2.51385 0.694295 2.8459C0.501953 3.22339 0.501953 3.71755 0.501953 4.70588V13.1765C0.501953 13.747 0.501953 14.1528 0.538951 14.4666M12.8549 6.29412V3.64706M12.8549 3.64706V1M12.8549 3.64706H15.502M12.8549 3.64706H10.2078",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Mme(){return E.jsx("svg",{width:"11",height:"8",viewBox:"0 0 11 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3.58175 7.60032C3.49107 7.60032 3.40606 7.58603 3.32671 7.55747C3.24736 7.52936 3.17368 7.4813 3.10567 7.41328L0.181165 4.48878C0.0564771 4.36409 -0.00314657 4.20245 0.00229437 4.00385C0.00818872 3.80571 0.0734798 3.6443 0.198168 3.51961C0.322856 3.39492 0.481551 3.33258 0.674251 3.33258C0.866951 3.33258 1.02564 3.39492 1.15033 3.51961L3.58175 5.95103L9.34575 0.187032C9.47044 0.0623442 9.63208 0 9.83068 0C10.0288 0 10.1902 0.0623442 10.3149 0.187032C10.4396 0.311721 10.502 0.473135 10.502 0.671276C10.502 0.869871 10.4396 1.03151 10.3149 1.1562L4.05784 7.41328C3.98982 7.4813 3.91615 7.52936 3.8368 7.55747C3.75745 7.58603 3.67244 7.60032 3.58175 7.60032Z",fill:"currentColor"})})}function Cmi(){return E.jsx("svg",{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M13.002 6H1.00195M1.00195 6L6.00195 1M1.00195 6L6.00195 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function kmi(){return E.jsx("svg",{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M1.00195 6H13.002M13.002 6L8.00195 1M13.002 6L8.00195 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Rmi(){return E.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M5 1L8.90341 4.90341L5 8.80682",stroke:"#F2F2F2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{opacity:"0.7",d:"M1 2L4 5L1 8",stroke:"#F2F2F2",strokeOpacity:"0.85",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Mmi(){return E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M13.2348 7.51074C13.2655 7.26505 13.2812 7.01474 13.2812 6.76074C13.2812 3.44703 10.595 0.760742 7.28125 0.760742C5.40582 0.760742 3.73135 1.6212 2.6311 2.96886M1.32767 6.01074C1.29703 6.25644 1.28125 6.50675 1.28125 6.76074C1.28125 10.0745 3.96754 12.7607 7.28125 12.7607C9.07329 12.7607 10.6818 11.9751 11.7812 10.7295M9.53125 10.5107H11.7812V10.7295M2.6311 0.760742V2.96886M2.6311 2.96886V3.01069L4.8811 3.01074M11.7812 12.7607V10.7295",stroke:"#E6E6E6",strokeLinecap:"round",strokeLinejoin:"round"})})}function QL(){return E.jsx("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M1.08301 5.46116L5.08301 0.538086L9.08301 5.46116",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ian(){return E.jsx("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M11.5 18.2567V12.2567H7.5V18.2567M16.5 7.03478V13.4567C16.5 15.1368 16.5 15.9769 16.173 16.6186C15.8854 17.1831 15.4265 17.6421 14.862 17.9297C14.2202 18.2567 13.3802 18.2567 11.7 18.2567H7.3C5.61984 18.2567 4.77976 18.2567 4.13803 17.9297C3.57354 17.6421 3.1146 17.1831 2.82698 16.6186C2.5 15.9769 2.5 15.1368 2.5 13.4567V7.03412M18.5 9.25667L13.0668 3.22064C11.8311 1.84788 11.2133 1.16149 10.4856 0.908097C9.84655 0.685532 9.15099 0.685584 8.51193 0.908243C7.78435 1.16175 7.16661 1.84822 5.93114 3.22117L0.5 9.25667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Pan(){return E.jsxs("svg",{width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M16.25 13.7412L20.25 17.7412M20.25 13.7412L16.25 17.7412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4001 0.435912C10.6545 0.176253 9.84299 0.176312 9.09743 0.436081C8.63898 0.595815 8.24271 0.883781 7.81998 1.28019C7.40464 1.66967 6.92961 2.19757 6.32515 2.8693L6.30948 2.88671L2.87964 6.69821L2.87681 6.70136L0.878333 8.92221C0.693618 9.12748 0.710281 9.44363 0.915549 9.62834C1.12082 9.81306 1.43696 9.79639 1.62168 9.59112L2.75 8.33724V13.4567V13.4789C2.75 14.3001 2.75 14.9471 2.79254 15.4678C2.83594 15.999 2.92609 16.4425 3.13148 16.8456C3.46704 17.5042 4.00247 18.0396 4.66104 18.3752C5.06414 18.5806 5.50772 18.6707 6.03889 18.7141C6.55955 18.7567 7.20652 18.7567 8.02779 18.7567H8.05H8.25H12.25H12.45H12.4722C13.186 18.7567 13.7682 18.7567 14.2501 18.7287V17.7269C13.8561 17.7524 13.3742 17.7561 12.75 17.7566V12.2567C12.75 11.9805 12.5261 11.7567 12.25 11.7567H8.25C7.97386 11.7567 7.75 11.9805 7.75 12.2567V17.7566C7.05566 17.756 6.5375 17.7515 6.12033 17.7175C5.65099 17.6791 5.35366 17.6058 5.11503 17.4842C4.64462 17.2445 4.26217 16.8621 4.02249 16.3916C3.9009 16.153 3.82756 15.8557 3.78922 15.3863C3.75039 14.9112 3.75 14.305 3.75 13.4567V7.22596L7.05282 3.55562C7.67636 2.8627 8.12331 2.36665 8.50402 2.00964C8.88092 1.6562 9.15731 1.47418 9.42645 1.3804C9.95899 1.19485 10.5386 1.19481 11.0712 1.38028C11.3404 1.47401 11.6168 1.656 11.9937 2.00938C12.3745 2.36633 12.8215 2.86232 13.4452 3.55515L16.75 7.22667V11.7412H17.75V8.33761L18.8784 9.59118C19.0631 9.79642 19.3793 9.81304 19.5845 9.62829C19.7898 9.44355 19.8064 9.1274 19.6216 8.92216L17.6232 6.70199L17.6203 6.69879L14.1884 2.88613L14.1727 2.8687C13.5682 2.19707 13.093 1.66925 12.6777 1.27983C12.2549 0.883485 11.8586 0.595577 11.4001 0.435912ZM11.75 12.7567V17.7567H8.75V12.7567H11.75Z",fill:"currentColor"})]})}function Nme(){return E.jsx("svg",{width:"22",height:"17",viewBox:"0 0 22 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M1.00195 5.16661H21.002M5.4464 11.8333H7.66862M4.55751 16.2777H17.4464C18.691 16.2777 19.3132 16.2777 19.7886 16.0355C20.2067 15.8225 20.5467 15.4825 20.7597 15.0644C21.002 14.589 21.002 13.9667 21.002 12.7222V4.27772C21.002 3.03316 21.002 2.41088 20.7597 1.93552C20.5467 1.51738 20.2067 1.17743 19.7886 0.964376C19.3132 0.722168 18.691 0.722168 17.4464 0.722168H4.55751C3.31295 0.722168 2.69067 0.722168 2.21531 0.964376C1.79717 1.17743 1.45721 1.51738 1.24416 1.93552C1.00195 2.41088 1.00195 3.03316 1.00195 4.27772V12.7222C1.00195 13.9667 1.00195 14.589 1.24416 15.0644C1.45721 15.4825 1.79717 15.8225 2.21531 16.0355C2.69067 16.2777 3.31295 16.2777 4.55751 16.2777Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Nmi(){return E.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3.25657 10.4412C2.35158 9.48972 1.85555 8.25196 1.85555 6.92984C1.85555 5.56414 2.38483 4.28844 3.34741 3.32534C4.31 2.36221 5.58382 1.83273 6.94968 1.83273C8.31555 1.83273 9.58936 2.36221 10.552 3.32534C12.5344 5.30889 12.5344 8.53966 10.552 10.5232C8.55915 12.5171 5.3294 12.5163 3.34858 10.5333L3.25657 10.4412ZM15.1605 15.1538L15.172 15.1423L15.1823 15.1297C15.3626 14.9085 15.3925 14.5436 15.14 14.3128L15.1066 14.2822L11.7398 10.9135C13.7747 8.45781 13.6648 4.81182 11.3606 2.51634C10.1846 1.33864 8.61056 0.678404 6.93855 0.678404C5.26757 0.678404 3.69361 1.32794 2.51628 2.51767C1.34213 3.70418 0.680358 5.26585 0.680358 6.93987C0.680358 8.61126 1.32921 10.1869 2.51794 11.3648C3.73965 12.5869 5.33505 13.1913 6.93967 13.1913C8.36343 13.1913 9.76571 12.6983 10.9206 11.7432L14.3294 15.1538C14.4519 15.2765 14.6013 15.3216 14.7449 15.3216C14.8886 15.3216 15.038 15.2765 15.1605 15.1538Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.643191"})})}function Imi(){return E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M5.61107 10.9628C8.30831 11.1986 10.6744 9.1341 10.9156 6.37542C11.1568 3.61673 9.18484 1.17298 6.4876 0.937163C3.79036 0.701346 1.42421 2.76582 1.18302 5.5245C0.941834 8.28319 2.91383 10.7269 5.61107 10.9628Z",stroke:"#E6E6E6",strokeWidth:"0.652689"}),E.jsx("path",{d:"M5.74209 9.92008C7.85397 10.1047 9.70799 8.47504 9.89828 6.29849C10.0886 4.12194 8.54549 2.19527 6.4336 2.01063C4.32172 1.82599 2.4677 3.45566 2.27741 5.63221C2.08712 7.80876 3.6302 9.73544 5.74209 9.92008Z",stroke:"#E6E6E6",strokeWidth:"0.407931"}),E.jsx("path",{d:"M4.17188 4.95692L6.0086 3.93652L7.84532 4.95692V7.20181L6.0086 8.22221L4.17188 7.20181V4.95692Z",stroke:"#E6E6E6",strokeWidth:"0.815861"})]})}function Pmi(){return E.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M7.05078 8.06131H9.05078M8.05078 7.17242V8.9502M5.05078 0.950195H2.65078C2.09073 0.950195 1.8107 0.950195 1.59679 1.04708C1.40863 1.1323 1.25565 1.26828 1.15977 1.43554C1.05078 1.62568 1.05078 1.87459 1.05078 2.37242V7.52797C1.05078 8.0258 1.05078 8.27471 1.15977 8.46485C1.25565 8.63211 1.40863 8.76809 1.59679 8.85331C1.8107 8.9502 2.09073 8.9502 2.65078 8.9502H4.55078M5.05078 0.950195L8.05078 3.61686M5.05078 0.950195V2.90575C5.05078 3.15466 5.05078 3.27912 5.10528 3.37419C5.15321 3.45782 5.2297 3.52581 5.32379 3.56842C5.43074 3.61686 5.57076 3.61686 5.85078 3.61686H8.05078M8.05078 3.61686V4.9502M3.05078 7.17242H4.55078M3.05078 5.39464H6.05078M3.05078 3.61686H3.55078",stroke:"#E6E6E6",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function Omi(){return E.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M6.73828 6.9502L9.55078 9.4502M9.55078 6.9502L6.73828 9.4502M4.48828 5.9502C2.31366 5.9502 0.550781 7.5172 0.550781 9.4502H4.48828M6.73828 2.4502C6.73828 3.55476 5.73092 4.4502 4.48828 4.4502C3.24564 4.4502 2.23828 3.55476 2.23828 2.4502C2.23828 1.34563 3.24564 0.450195 4.48828 0.450195C5.73092 0.450195 6.73828 1.34563 6.73828 2.4502Z",stroke:"#E6E6E6",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function Lmi(){return E.jsx("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M7.5 3.95966V7.13509M7.5 9.04034H7.50671M5.38546 12H9.61454C10.066 12 10.2917 12 10.4938 11.9378C10.6726 11.8828 10.8372 11.7929 10.9769 11.6737C11.1348 11.5391 11.2477 11.354 11.4734 10.9839L13.5879 7.51614C13.8136 7.14595 13.9265 6.96086 13.9707 6.76408C14.0098 6.58997 14.0098 6.41003 13.9707 6.23592C13.9265 6.03914 13.8136 5.85405 13.5879 5.48386L11.4734 2.01614C11.2477 1.64595 11.1348 1.46086 10.9769 1.32625C10.8372 1.20714 10.6726 1.11717 10.4938 1.06217C10.2917 1 10.066 1 9.61453 1H5.38546C4.93401 1 4.70828 1 4.5062 1.06217C4.32741 1.11717 4.16282 1.20714 4.02311 1.32625C3.86521 1.46086 3.75235 1.64595 3.52662 2.01614L1.41208 5.48386C1.18636 5.85405 1.07349 6.03914 1.02932 6.23592C0.990228 6.41003 0.990228 6.58997 1.02932 6.76408C1.07349 6.96086 1.18636 7.14595 1.41208 7.51614L3.52662 10.9839C3.75235 11.354 3.86521 11.5391 4.02311 11.6737C4.16282 11.7929 4.32741 11.8828 4.5062 11.9378C4.70828 12 4.93401 12 5.38546 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function _Et(){return E.jsxs("svg",{width:"12",height:"23",viewBox:"0 0 12 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M2.47395 13.7101L2.47398 13.7101C3.45212 14.0745 4.74003 14.2729 6.10031 14.2729C7.46035 14.2729 8.74827 14.0745 9.72618 13.7101C10.2519 13.5142 10.6688 13.2755 10.9562 13.0023C11.2447 12.7281 11.4083 12.4131 11.4083 12.0714C11.4083 11.7297 11.2447 11.4146 10.9562 11.1403C10.6688 10.8671 10.2519 10.6283 9.72619 10.4325C8.74827 10.0681 7.46058 9.8696 6.10031 9.8696C4.74003 9.8696 3.45212 10.0681 2.47398 10.4325L2.47395 10.4325C1.94856 10.6284 1.53171 10.8671 1.24419 11.1404C0.955644 11.4147 0.791846 11.7297 0.791846 12.0714C0.791846 12.4131 0.95565 12.728 1.2442 13.0022C1.53172 13.2755 1.94857 13.5142 2.47395 13.7101ZM1.50295 12.0714C1.50295 11.9352 1.59062 11.7708 1.80405 11.5933C2.01464 11.4183 2.32989 11.2463 2.7385 11.0949C3.55456 10.7927 4.72009 10.5814 6.10031 10.5814C7.48041 10.5814 8.64587 10.7928 9.46191 11.095C9.87051 11.2464 10.1857 11.4184 10.3963 11.5934C10.6098 11.7709 10.6974 11.9353 10.6974 12.0714C10.6974 12.2075 10.6098 12.3719 10.3964 12.5493C10.1858 12.7243 9.87058 12.8963 9.462 13.0476C8.64599 13.3498 7.48053 13.5611 6.10031 13.5611C4.72008 13.5611 3.55456 13.3499 2.73849 13.0477C2.32988 12.8964 2.01463 12.7245 1.80404 12.5494C1.59062 12.372 1.50295 12.2075 1.50295 12.0714Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.252246"}),E.jsx("path",{d:"M2.47395 16.2478L2.47398 16.2478C3.45212 16.6122 4.74003 16.8107 6.10031 16.8107C7.46035 16.8107 8.74826 16.6122 9.72641 16.2478L9.72643 16.2478C10.2519 16.052 10.6688 15.8133 10.9563 15.54C11.2448 15.2657 11.4085 14.9507 11.4085 14.6089C11.4085 14.5146 11.3711 14.4241 11.3045 14.3573C11.2378 14.2906 11.1473 14.253 11.053 14.253C10.9586 14.253 10.8682 14.2906 10.8015 14.3573L10.8015 14.3573C10.7348 14.4241 10.6974 14.5146 10.6974 14.6089C10.6974 14.7448 10.6098 14.9092 10.3964 15.0866C10.1858 15.2616 9.87057 15.4337 9.46199 15.5851C8.64597 15.8874 7.48051 16.0989 6.10031 16.0989C4.7201 16.0989 3.55458 15.8874 2.73851 15.5851C2.3299 15.4337 2.01464 15.2616 1.80403 15.0866C1.59057 14.9092 1.50295 14.7448 1.50295 14.6089C1.50295 14.5146 1.46554 14.4241 1.39888 14.3573C1.33222 14.2906 1.24176 14.253 1.1474 14.253C1.05304 14.253 0.962579 14.2906 0.895915 14.3573C0.829258 14.4241 0.791846 14.5146 0.791846 14.6089C0.791846 14.9507 0.955638 15.2658 1.2442 15.54C1.53172 15.8132 1.94857 16.052 2.47395 16.2478Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.252246"}),E.jsx("path",{d:"M2.47398 18.7859L2.47395 18.7859C1.94857 18.59 1.53172 18.3513 1.2442 18.0781C0.955638 17.8038 0.791846 17.4888 0.791846 17.147C0.791846 17.0527 0.829258 16.9622 0.895915 16.8954C0.962579 16.8287 1.05304 16.7911 1.1474 16.7911C1.24176 16.7911 1.33222 16.8287 1.39888 16.8954C1.46554 16.9622 1.50295 17.0527 1.50295 17.147C1.50295 17.2832 1.59062 17.4476 1.80405 17.6251C2.01464 17.8001 2.32989 17.9722 2.7385 18.1235C3.55456 18.4257 4.72009 18.637 6.10031 18.637C7.48053 18.637 8.64599 18.4257 9.462 18.1235C9.87058 17.9722 10.1858 17.8002 10.3964 17.6251C10.6098 17.4477 10.6974 17.2832 10.6974 17.147C10.6974 17.0527 10.7348 16.9622 10.8015 16.8954L10.8015 16.8954C10.8682 16.8287 10.9586 16.7911 11.053 16.7911C11.1473 16.7911 11.2378 16.8287 11.3045 16.8954C11.3711 16.9622 11.4085 17.0527 11.4085 17.147C11.4085 17.4888 11.2448 17.8038 10.9563 18.0781C10.6688 18.3513 10.252 18.59 9.72648 18.7859L2.47398 18.7859ZM2.47398 18.7859C3.45212 19.1503 4.74003 19.3488 6.10031 19.3488M2.47398 18.7859L6.10031 19.3488M6.10031 19.3488C7.46027 19.3488 8.74821 19.151 9.72643 18.7859L6.10031 19.3488Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.252246"}),E.jsx("path",{d:"M2.47395 21.3236C3.45211 21.6883 4.74004 21.8867 6.10031 21.8867C7.46035 21.8867 8.74827 21.6883 9.72643 21.3236C10.2519 21.1279 10.6688 20.8892 10.9563 20.616C11.2448 20.3418 11.4085 20.0267 11.4085 19.6849V12.0712C11.4085 11.9769 11.3711 11.8864 11.3045 11.8196C11.2378 11.7529 11.1473 11.7153 11.053 11.7153C10.9586 11.7153 10.8682 11.7529 10.8015 11.8196L10.8015 11.8196C10.7348 11.8864 10.6974 11.9769 10.6974 12.0712V19.6849C10.6974 19.8211 10.6098 19.9856 10.3964 20.163C10.1858 20.3381 9.87058 20.5101 9.462 20.6614C8.64599 20.9636 7.48053 21.1749 6.10031 21.1749C4.72009 21.1749 3.55456 20.9636 2.7385 20.6614C2.32989 20.5101 2.01464 20.3381 1.80405 20.163C1.59062 19.9856 1.50295 19.8211 1.50295 19.6849V12.0712C1.50295 11.9769 1.46554 11.8864 1.39888 11.8196C1.33222 11.7529 1.24176 11.7153 1.1474 11.7153C1.05304 11.7153 0.962579 11.7529 0.895915 11.8196C0.829258 11.8864 0.791846 11.9769 0.791846 12.0712V19.6849C0.791846 20.0267 0.955638 20.3418 1.2442 20.616C1.53173 20.8892 1.94858 21.1279 2.47395 21.3236ZM2.47395 21.3236L2.51801 21.2054M2.47395 21.3236C2.47396 21.3236 2.47396 21.3236 2.47397 21.3236L2.51801 21.2054M2.51801 21.2054C3.47839 21.5634 4.75058 21.7606 6.10031 21.7606C7.44981 21.7606 8.72199 21.5634 9.68238 21.2054C10.7143 20.821 11.2824 20.281 11.2824 19.6849V12.0712C11.2824 12.0103 11.2582 11.9518 11.2152 11.9087C11.1722 11.8656 11.1138 11.8414 11.053 11.8414C10.9921 11.8414 10.9338 11.8656 10.8908 11.9087C10.8477 11.9518 10.8236 12.0103 10.8236 12.0712V19.6849C10.8236 20.4494 8.88397 21.301 6.10031 21.301C3.31665 21.301 1.37683 20.4494 1.37683 19.6849V12.0712C1.37683 12.0103 1.35265 11.9518 1.30963 11.9087C1.2666 11.8656 1.20825 11.8414 1.1474 11.8414C1.08655 11.8414 1.02819 11.8656 0.985167 11.9087C0.942141 11.9518 0.917969 12.0103 0.917969 12.0712V19.6849C0.917969 20.281 1.48626 20.821 2.51801 21.2054Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.252246"}),E.jsx("path",{d:"M1.20633 6.26431C1.20633 5.02999 2.21055 4.02582 3.44485 4.0258C4.34978 4.02581 5.15858 4.56806 5.50666 5.39108L10.3856 5.38369L11.2181 6.21613L10.308 7.12624L9.6562 6.81061L9.05155 7.11805L8.4573 6.81585L7.9093 7.13732L5.50676 7.1373C5.15871 7.96052 4.34988 8.50284 3.44484 8.50283C2.21052 8.50282 1.20633 7.49863 1.20633 6.26431ZM3.04308 6.65464C3.28478 6.41293 3.28477 6.01965 3.04308 5.77795C2.80137 5.53624 2.4081 5.53627 2.1664 5.77796C1.92469 6.01967 1.9247 6.41293 2.1664 6.65463C2.40811 6.89633 2.80138 6.89633 3.04308 6.65464Z",fill:"currentColor"})]})}function SD(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M6.75 3h-1A2.75 2.75 0 0 0 3 5.75v12.5A2.75 2.75 0 0 0 5.75 21H6v-6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 15v6h.25A2.75 2.75 0 0 0 21 18.25V8.286a3.25 3.25 0 0 0-.952-2.299l-2.035-2.035A3.25 3.25 0 0 0 15.75 3v4.5a2.25 2.25 0 0 1-2.25 2.25H9A2.25 2.25 0 0 1 6.75 7.5V3Zm7.5 0v4.5a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75V3h6Zm2.25 18v-6a.75.75 0 0 0-.75-.75h-7.5a.75.75 0 0 0-.75.75v6h9Z"})})}function Bmi(){return E.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M11.8333 4.33333L8.5 1M8.5 1L5.16667 4.33333M8.5 1V11M16 7.66667V13.3327C16 14.2661 16 14.7328 15.8183 15.0893C15.6586 15.4029 15.4036 15.6579 15.09 15.8177C14.7335 15.9993 14.2668 15.9993 13.3333 15.9993H3.66667C2.73325 15.9993 2.26654 15.9993 1.91002 15.8177C1.59641 15.6579 1.34144 15.4029 1.18166 15.0893C1 14.7328 1 14.2661 1 13.3327V7.66667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Dmi(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.7l-.7.7M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0-1 3a2 2 0 0 1-4 0a3.5 3.5 0 0 0-1-3m.7 1h4.6"})})}function hOe(){return E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",children:[E.jsx("path",{fill:"currentColor",d:"M18.29 17.29a.996.996 0 0 0 0-1.41L14.42 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L12.3 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.38.38 1.01.38 1.4-.01z"}),E.jsx("path",{fill:"currentColor",d:"M11.7 17.29a.996.996 0 0 0 0-1.41L7.83 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L5.71 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.38.38 1.01.38 1.4-.01z"})]})}function aze(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 15 15",children:E.jsx("path",{fill:"currentColor",d:"M3 7.5L11 0v15L3 7.5Z"})})}function $6(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 20 20",children:E.jsxs("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",children:[E.jsx("path",{d:"M12.298 6.564a.5.5 0 0 1 .194.68l-2.777 5a.5.5 0 1 1-.874-.486l2.777-5a.5.5 0 0 1 .68-.194"}),E.jsx("path",{d:"M6.11 9.466a.5.5 0 0 1 .702-.078L9.59 11.61a.5.5 0 0 1-.625.781L6.188 10.17a.5.5 0 0 1-.078-.703"}),E.jsx("path",{d:"M4.198 4.077a1.65 1.65 0 0 0-.485 1.205c.01.55-.13 1.132-.333 1.636c-.203.505-.506 1.022-.894 1.411a1.658 1.658 0 0 0 0 2.345c.71.711 1.206 1.873 1.227 2.879a1.654 1.654 0 0 0 1.575 1.621c.55.027 1.129.194 1.637.42c.507.225 1.019.542 1.408.931a1.658 1.658 0 0 0 2.345 0c.389-.389.9-.706 1.408-.932c.508-.225 1.087-.392 1.637-.419a1.653 1.653 0 0 0 1.575-1.621c.02-1.006.516-2.168 1.227-2.88a1.658 1.658 0 0 0 0-2.344c-.389-.389-.691-.906-.894-1.41c-.204-.505-.344-1.088-.333-1.637a1.65 1.65 0 0 0-.486-1.205a1.651 1.651 0 0 0-1.256-.484c-.996.05-2.173-.402-2.878-1.107a1.658 1.658 0 0 0-2.345 0c-.705.705-1.882 1.157-2.878 1.107a1.651 1.651 0 0 0-1.257.484M2.713 5.3c.015.758-.398 1.785-.935 2.321a2.658 2.658 0 0 0 0 3.759c.53.529.92 1.445.935 2.192c.014.662.273 1.32.778 1.825a2.648 2.648 0 0 0 1.748.775c.791.04 1.827.499 2.387 1.06a2.658 2.658 0 0 0 3.759 0c.56-.561 1.596-1.02 2.387-1.06a2.648 2.648 0 0 0 1.748-.775a2.649 2.649 0 0 0 .777-1.825c.016-.747.406-1.663.935-2.192a2.658 2.658 0 0 0 0-3.759c-.536-.536-.95-1.563-.934-2.32a2.65 2.65 0 0 0-.778-1.933a2.651 2.651 0 0 0-2.015-.775c-.714.036-1.615-.31-2.12-.816a2.658 2.658 0 0 0-3.76 0c-.504.506-1.406.852-2.12.816a2.651 2.651 0 0 0-2.014.775A2.65 2.65 0 0 0 2.713 5.3"})]})})}function $mi(){return E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M1.5 6C1.5 5.72386 1.72386 5.5 2 5.5H12C12.2761 5.5 12.5 5.72386 12.5 6V14C12.5 14.2761 12.2761 14.5 12 14.5H2C1.72386 14.5 1.5 14.2761 1.5 14V6Z",stroke:"currentColor"}),E.jsx("path",{d:"M4.5 2C4.5 1.72386 4.72386 1.5 5 1.5H14C14.2761 1.5 14.5 1.72386 14.5 2V8C14.5 8.27614 14.2761 8.5 14 8.5H5C4.72386 8.5 4.5 8.27614 4.5 8V2Z",stroke:"currentColor"}),E.jsx("path",{d:"M2 8.5H12",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M2 11.5H12",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M4.5 8.5V14.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M9.5 1.5V14.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]})}function Fmi(){return E.jsxs("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M17.4658 18.0547H18.8721V21.6546H17.4658V18.0547Z",fill:"currentColor"}),E.jsx("path",{d:"M18.1676 17.1211C18.5354 17.1211 18.8877 16.7977 18.8707 16.418C18.8536 16.037 18.5618 15.7148 18.1676 15.7148C17.7998 15.7148 17.4474 16.0382 17.4645 16.418C17.4815 16.7989 17.7734 17.1211 18.1676 17.1211Z",fill:"currentColor"}),E.jsx("path",{d:"M19.4088 12.9255V0.964844H3.36953C1.66558 0.964844 0.279297 2.31034 0.279297 4.0143V21.9655H0.294156C0.450344 23.6453 1.86719 24.9648 3.58703 24.9648H18.1766C21.5417 24.9648 24.2793 22.268 24.2793 18.903C24.2793 15.96 22.1852 13.497 19.4088 12.9255ZM18.0004 12.8031C14.902 12.8915 12.375 15.3005 12.0994 18.3493H5.93458V2.33252H18.0004V12.8031ZM3.36953 2.33252H4.52608V18.3493H3.58703C2.88058 18.3493 2.22569 18.5727 1.68775 18.9514V4.0143C1.68775 3.08692 2.4422 2.33252 3.36953 2.33252ZM3.58703 23.5564C2.53975 23.5564 1.68775 22.7043 1.68775 21.6571C1.68775 20.6098 2.53975 19.7578 3.58703 19.7578H12.1342C12.1928 20.1739 12.2933 20.5766 12.4317 20.9616H3.84845V22.37H13.1575C13.4631 22.8111 13.8252 23.21 14.2333 23.5564H3.58703V23.5564ZM18.1767 23.5972C15.5883 23.5972 13.4825 21.4914 13.4825 18.903C13.4825 16.3147 15.5883 14.2089 18.1767 14.2089C20.7651 14.2089 22.8708 16.3147 22.8708 18.903C22.8708 21.4914 20.765 23.5972 18.1767 23.5972Z",fill:"currentColor"}),E.jsx("path",{d:"M9.69141 5.07031H14.4052V6.47877H9.69141V5.07031Z",fill:"currentColor"}),E.jsx("path",{d:"M8.09961 8.12891H15.9979V9.53736H8.09961V8.12891Z",fill:"currentColor"})]})}function GG(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10.67px",height:"16px",viewBox:"0 0 1024 1536",children:E.jsx("path",{fill:"currentColor",d:"M288 1344q0-40-28-68t-68-28t-68 28t-28 68t28 68t68 28t68-28t28-68m0-1152q0-40-28-68t-68-28t-68 28t-28 68t28 68t68 28t68-28t28-68m640 128q0-40-28-68t-68-28t-68 28t-28 68t28 68t68 28t68-28t28-68m96 0q0 52-26 96.5T928 486q-2 287-226 414q-67 38-203 81q-128 40-169.5 71T288 1152v26q44 25 70 69.5t26 96.5q0 80-56 136t-136 56t-136-56t-56-136q0-52 26-96.5t70-69.5V358q-44-25-70-69.5T0 192q0-80 56-136T192 0t136 56t56 136q0 52-26 96.5T288 358v497q54-26 154-57q55-17 87.5-29.5t70.5-31t59-39.5t40.5-51t28-69.5T736 486q-44-25-70-69.5T640 320q0-80 56-136t136-56t136 56t56 136"})})}function jmi(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 16 16",children:E.jsx("path",{fill:"currentColor",d:"M14.986 7.382a.501.501 0 0 1 .013.152c.014.4-.133.806-.439 1.112l-2.12 2.122a.5.5 0 1 1-.708-.708L13.792 8H1.5a.5.5 0 0 1 0-1h12.121l-1.889-1.89a.5.5 0 0 1 .707-.706l2.121 2.12a1.5 1.5 0 0 1 .426.858M1.5 3h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1m0 8h7a.5.5 0 1 1 0 1h-7a.5.5 0 1 1 0-1"})})}function Hmi(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 16 16",children:E.jsx("path",{fill:"currentColor",d:"M1.014 7.382a.501.501 0 0 0-.013.152c-.014.4.133.806.439 1.112l2.12 2.122a.5.5 0 1 0 .708-.708L2.208 8H14.5a.5.5 0 0 0 0-1H2.379l1.889-1.89a.5.5 0 0 0-.707-.706L1.44 6.524a1.5 1.5 0 0 0-.426.858M14.5 3h-7a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1m0 8h-7a.5.5 0 1 0 0 1h7a.5.5 0 1 0 0-1"})})}function Oan(){return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 16 16",children:E.jsx("path",{fill:"#e6e6e6",d:"M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm15 2h-4v3h4zm0 4h-4v3h4zm0 4h-4v3h3a1 1 0 0 0 1-1zm-5 3v-3H6v3zm-5 0v-3H1v2a1 1 0 0 0 1 1zm-4-4h4V8H1zm0-4h4V4H1zm5-3v3h4V4zm4 4H6v3h4z"})})}const AAe="production",Umi="G-KT74Z0HJ4V",zmi="https://us-central1-sxt-public.cloudfunctions.net/signup_form_submit",HU="https://api.spaceandtime.app",Gmi="https://proxy.api.spaceandtime.app",Vmi="https://services.api.spaceandtime.app",Kmi="https://contractutilitysas.azureedge.net",Wmi="https://services.api.spaceandtime.app/eventx/v1/blob/signed_url",Qmi="contractutilitysas",Lan="https://services.api.spaceandtime.app",Ban="https://services.api.spaceandtime.app/sxt-pipeline/v1",qmi="pk_live_51MXWnuLCTWVzEpijwcn98XkFD4wfjzahMODmEinIOBAFofEApUC8wJOlwD7NOFHDMPYdpqNyqRAYXomsQ82aX5wq0071FPtsD4",Dan="0fc935a28d87f02d5bf4a583da202c95",fOe="false",U3="false",Ymi="Polygon,ZKsync Era,Ethereum",Wce=Ymi.split(","),Jmi=57,Zmi={config:{allowCsvDownload:!0,baseUrl:"",defaultConnectionId:"",editorWordWrap:!0,googleAuthConfigured:!1,ldapConfigured:!1,ldapRolesConfigured:!1,localAuthConfigured:!1,oidcConfigured:!1,oidcLinkHtml:"",publicUrl:"",samlConfigured:!1,samlLinkHtml:"",showServiceTokensUI:!1},currentUser:{id:"",email:"testuser@gmail.com",role:"admin",name:"admin",ldapId:null},version:"2.0"},TEt=["number","decimal","bigdecimal","integer","long","double","byte","bigint","binary","smallint","tinyint","short","float"],Xmi=[{value:"header",label:"Header"},{value:"markdown",label:"Markdown"},{value:"divider",label:"Divider"}],egi=[{label:"small",value:"h3"},{label:"medium",value:"h2"},{label:"large",value:"h1"}],lF=[{label:"Transparent",value:"TRANSPARENT"},{label:"Background",value:qt.custom.boxBg3}],cF=[{label:"Transparent",value:"TRANSPARENT"},{label:"Background",value:qt.custom.boxBg3}],tgi=[{label:"By recent",order:"DESC",orderBy:"modified"},{label:"By name",order:"ASC",orderBy:"name"}],ngi=[{label:"My Visualizations",value:"private"},{label:"My Org Visualizations",value:"subscription"},{label:"Others",value:"public"}],CEt=[{label:"Trending",value:S5.trending},{label:"Top",value:S5.top},{label:"Favorites",value:S5.liked},{label:"Search",value:"search"}],rgi=[{label:"All",value:""},{label:"Unpublished",value:sr.private},{label:"Published",value:sr.public}],pZ=[{label:"Charts",dashboardLabel:"Charts",value:"GRAPH",icon:E.jsx(yan,{fontSize:"small",sx:{mr:1}})},{label:"Datasets",dashboardLabel:"Datasets",value:"TABLE",icon:E.jsx(ban,{fontSize:"small",sx:{mr:1}})},{label:"Counters",dashboardLabel:"Counters",value:"COUNTERCARD",icon:E.jsx(xan,{fontSize:"small",sx:{mr:1}})}],igi=[{label:Rme.ALL,value:"ALL"},{label:Rme.SCHEMA,value:"SCHEMA"},{label:Rme.NONE,value:"NONE"}],agi=[{label:q.EXPLORE_PUBLIC_DASHBOARDS,value:"explore"},{label:q.MY_SAVED_DASHBOARDS,value:"dashboard"},{label:q.MY_ORG_DASHBOARD,value:"subscription"}];q.MY_CHART,Di.GRAPH,q.MY_DATASETS,Di.TABLE,q.MY_COUNTERS,Di.COUNTERCARD,q.MY_DASHBOARDS;const ogi=[{label:q.MY_SAVED_QUERIES,value:"myQueries"},{label:q.MY_ORG_QUERIES,value:"subscription"},{label:q.QUERY_HISTORY,value:"queryHistory"},{label:q.VIEWS,value:"views"}],sgi=[{label:q.MY_DATA_VIZ,value:Di.GRAPH},{label:q.MY_ORG_DATA_VIZ,value:yT.myOrgVisuals}],$an=2e3,lgi="top",cgi="right",pOe=["null"],ugi=400,dgi=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],yAe="YYYY-MM-DD",b$="YYYY-MM-DD HH:MM:ss",hgi="MMM DD,YYYY HH:mm",fgi=400,dnt=30,bAe=[{textColor:"#c05ffb"},{textColor:"#fc6b98"},{textColor:"#60b9fb"},{textColor:"#eceef3"},{textColor:"#e3a241"},{textColor:"#99ffb6"},{textColor:"#feaaf7"},{textColor:"#c9c86b"}],am=[{label:al.SUM,value:al.SUM,icon:E.jsx(Man,{})},{label:al.MAX,value:al.MAX,icon:E.jsx(Ran,{})},{label:al.MIN,value:al.MIN,icon:E.jsx(kan,{})},{label:al.MEAN,value:al.MEAN,icon:E.jsx(Nan,{})},{label:al.STATIC,value:al.STATIC,icon:E.jsx(Oan,{})}],Fan="https://bit.ly/1dQOfRK",kEt=`# ✨Markdown
## ✨Markdown
### ✨Markdown
Click below to visit

[Markdown cheatsheet](${Fan})`,mOe={heading:"Let’s build your first dashboard!",line1:"Tab over to visualizations on the right side panel to pull in recent charts you saved from queries.",line2:"To create a new or edit dashboard, please move to the desktop version of the application."},jan={xl:12,lg:12,md:12,sm:4,xs:4,xxs:4},pgi={xxs:0,xs:0,sm:600,md:900,lg:1200,xl:1400},j_={etherscan:"https://etherscan.io/",polygon:"https://polygonscan.com/",avalanche:"https://snowtrace.io/",binance:"https://bscscan.com/",mumbai:"https://mumbai.polygonscan.com/",sepolia:"https://sepolia.etherscan.io/",goerli:"https://goerli.etherscan.io/",holesky:"https://holesky.etherscan.io/",zksyncera:"https://explorer.zksync.io/"},mgi=[{label:"Select Biscuit",dataKey:"name",width:260},{label:"Resources",dataKey:"resources",width:250}],ggi=[{label:"Resource",dataKey:"resourceId",width:230},{label:"Operations",dataKey:"supportedOperations",width:445}],vgi=["select"],Agi=["insert","update","delete"],ygi=["create","alter","drop"],gOe=["schema","table","subgroup","view","parentGroup"],Han=t=>{switch(t){case al.SUM:return E.jsx(Man,{});case al.MIN:return E.jsx(kan,{});case al.MAX:return E.jsx(Ran,{});case al.MEAN:return E.jsx(Nan,{});case al.STATIC:return E.jsx(Oan,{});default:return null}},bgi=[{label:"Member Id",dataKey:"userId",width:350},{label:"Role",dataKey:"role"}],REt=["owner","admin","member"],Uan=[{title:"Configure",value:"CONFIGURE"},{title:"Read only",value:"READ-ONLY"},{title:"Read write",value:"READ-WRITE"}],xgi=[{label:"Resource",dataKey:"resourceId",width:385},{label:"Access level",dataKey:"accessLevel",width:175}],Egi=[{label:"Username",dataKey:"userId",width:335},{label:"Access level",dataKey:"accessLevel",width:175}],tM="https://space-and-time-labs.atlassian.net/servicedesk/customer/portals",MEt="https://docs.spaceandtime.io/docs/biscuit-authorization",NEt="https://docs.spaceandtime.io/docs/space-and-time-cli-biscuit",z3={Mumbai:80001,Sepolia:11155111,Ethereum:1,Polygon:137},WQ={topTextPara:`Your permissions show what resources you can access and with what privileges. 
  There are three levels of access you can have on a resource:`,info1:"- read-only: allows read operations only (DQL: SELECT)",info2:"- read-write: allows both read and write (DQL and DML: INSERT, UPDATE, DELETE, MERGE) operations",info3:`- allows all operations (DDL, DML, and DQL) on the resource. 
  In addition, you can also configure permissions for other users`,bottomTextPara:`Any user who creates a resource will automatically have configure permissions on that resource, 
  so after creating a table you can share access to that resource with other members of your subscription.`},Qce={topTextPara:`Your organization include all users that are part of your subscription. 
  Every user in a subscription has a role, and that role affects what operations a user 
  may perform on behalf of the subscription. There are three roles a user can have within a subscription:`,info1:`- Member - a member is simply part of the subscription and subscription interaction is read-only. 
  In other words, members can see what other members are part of the subscription, 
  but cannot invite other members or change subscription configuration.`,info2:`- Admin - an admin can manage the role of other members and admins and can invite new members to the 
  subscription. Admins cannot alter core subscription settings or alter the role of owners.`,info3:`- Owner - an owner can perform any operation within a subscription (inviting other users, 
    removing other owners, setting the subscription name and configuring settings).`},qce={topTextPara:`Your Security Configuration (Key Sharing) defines how the Space and Time's "managed secrets services"
   reuses keys for resources (such as database tables) created by your organization.
    There are three configuration options:`,info1:"- All - every resource (i.e. table) created will reuse the same public/private keypair",info2:`- Schema - all resources in the same schema will share the same keypair,
   while resources in different schemas will have unique keypairs`,info3:"- None - every resource will have it's own keypair."},Sgi={infoText:`Biscuits are a special bearer token used to authorize access to resources (e.g. tables) 
  and are associated with a public/private key pair. Public keys are provided when the user creates a 
  resource (such as a table) and are used to validate biscuit signatures during authorization for requests 
  against that resources. Users create and attenuate their own biscuits (using the corresponding private key) 
  without the Space and Time platform holding your secrets— full self-custody of your tables! A biscuit must contain, 
  at minimum, a single capability (i.e. security configuration, such as "I am allowed to read from this table") 
  specifying what operation is allowed on which resource.`},Px=[{label:"Last 7 Days",value:7,aggregateBy:"DAY"},{label:"Last 1 Month",value:30,aggregateBy:"DAY"},{label:"Last 3 Months",value:90,aggregateBy:"MONTH"},{label:"Last 6 Months",value:180,aggregateBy:"MONTH"},{label:"Last 1 Year",value:365,aggregateBy:"MONTH"}],hnt=[{label:"Usage(In compute unit)",dataKey:"usage",width:200},{label:"Timestamp",dataKey:"timestamp",width:200}],wgi=[...hnt,{label:"Charge Deducted in dollars ($)",dataKey:"cost",width:300}],ywe=[{label:"Duration",value:"Duration"},{label:"Range",value:"Range"}],_gi=[{label:"API Key",dataKey:"key",width:175},{label:"Note",dataKey:"description",width:350}],Tgi="https://docs.spaceandtime.io/reference/execute-sql-generic",Cgi="https://docs.spaceandtime.io/docs/api-docs",zan="https://docs.spaceandtime.io/docs/views";var VUt;const Gan=Hpi({metadata:{name:"Dapp",description:"Decentralized data warehouse built for smart contracts.",url:(VUt=window==null?void 0:window.location)==null?void 0:VUt.href,icons:["https://avatars.githubusercontent.com/u/37784886"]},defaultChainId:1,enableEIP6963:!1,enableInjected:!1,enableCoinbase:!1,rpcUrl:"https://cloudflare-eth.com"}),oze=[{chainId:1,name:"Ethereum",currency:"ETH",explorerUrl:"https://etherscan.io",rpcUrl:"https://cloudflare-eth.com"},{chainId:42161,name:"Arbitrum",currency:"ETH",explorerUrl:"https://arbiscan.io",rpcUrl:"https://arb1.arbitrum.io/rpc"},{chainId:137,name:"Polygon",currency:"MATIC",explorerUrl:"https://polygonscan.com",rpcUrl:"https://polygon-mainnet.infura.io/v3/687446269c4c434e9c979ff1cb54f1ae"}],Van={1:{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},137:{address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},kgi=[{label:"All",value:Hm.all},{label:"Public",value:Hm.public},{label:"Subscription",value:Hm.subscription}],nM=[{label:"Day",value:"DAY"},{label:"Month",value:"MONTH"},{label:"Year",value:"YEAR"},{label:"None",value:""}],Rgi=[{target:".fileSelect",content:"Begin by enhancing your dashboard's visual appeal with the addition of a header image.",placement:"left",disableBeacon:!0,floaterProps:{disableAnimation:!0}},{target:".visualTab",content:"Boost the attractiveness of your dashboard by seamlessly dragging and dropping visualizations onto it.",placement:"bottom",disableBeacon:!0,floaterProps:{disableAnimation:!0}},{target:".dashboardTypeReferrence",content:`Choose to share your dashboard privately, publicly, or exclusively within your organization,
       extending its accessibility according to your preferences.`,placement:"bottom",disableBeacon:!0,floaterProps:{disableAnimation:!0}}],Mgi=[{target:".queryResultsTab",content:"Quickly review the query result to gain an overview of the data.",placement:"bottom",disableBeacon:!0,floaterProps:{disableAnimation:!0}},{target:".queryVizTab",content:"Derive the most insightful visualization suggestions based on the query result.",placement:"bottom",disableBeacon:!0,floaterProps:{disableAnimation:!0}},{target:".configureChartBtn",content:`Begin exploring additional visualizations, 
    configuring and customizing them to create visually appealing representations.`,placement:"bottom",disableBeacon:!0,floaterProps:{disableAnimation:!0}}];var eI="([-_./\\s])",x$="(18|19|20)\\d{2}",vOe="(0?[1-9]|1[012])",IEt="(0?[1-9]|[12]\\d|3[01])",Ngi="([0-4]\\d|5[0-2])",Igi="([1-7])",sze="(0?\\d|1\\d|2[0-4])",xAe="(0?\\d|[012345]\\d)",Pgi=xAe,Ogi="\\d{1,4}",Lgi="((([0-2]\\d|3[0-5])\\d)|36[0-6])",PEt="(Z|[+-]"+sze+"(:"+xAe+")?)",Bgi=function(t){return t===void 0&&(t=!0),[""+x$,""+x$+eI+(t?"":"?")+"W"+Ngi+"("+eI+(t?"":"?")+Igi+")?",""+vOe+eI+(t?"":"?")+IEt+eI+(t?"":"?")+x$,""+x$+eI+(t?"":"?")+vOe+eI+(t?"":"?")+IEt,""+x$+eI+(t?"":"?")+vOe,""+x$+eI+(t?"":"?")+Lgi]},Dgi=function(t){return t===void 0&&(t=!0),[sze+":"+(t?"":"?")+xAe+":"+(t?"":"?")+Pgi+"([.,]"+Ogi+")?"+PEt+"?",sze+":"+(t?"":"?")+xAe+"?"+PEt]},Kan=Bgi(),Wan=Dgi(),Qan=xc(xc([],xa(Kan)),xa(Wan));Kan.forEach(function(t){Wan.forEach(function(e){Qan.push(t+"[T\\s]"+e)})});var OEt=Qan.map(function(t){return new RegExp("^"+t+"$")});function fnt(t){for(var e=0;e<OEt.length;e+=1){var n=OEt[e];if(n.test(t.trim()))return!0}return!1}var bwe=function(t){return t==null||t===""||Number.isNaN(t)||t==="null"},oh=function(t){return typeof t=="string"},HA=function(t){return typeof t=="number"&&!Number.isNaN(t)},pnt=function(t){var e=!1,n=t;/^[+-]/.test(n)&&(n=n.slice(1));for(var r=0;r<n.length;r+=1){var a=n[r];if(a===".")if(e===!1)e=!0;else return!1;if(a!=="."&&!/[0-9]/.test(a))return!1}return n.trim()!==""},rp=function(t,e){return typeof t=="number"?Number.isInteger(t):e&&oh(t)&&pnt(t)?!t.includes("."):!1},LEt=function(t,e){return typeof t=="number"?!Number.isNaN(t)&&!Number.isInteger(t):e&&oh(t)&&pnt(t)?t.includes("."):!1},lze=function(t,e){return t&&Object.getPrototypeOf(t)===Date.prototype?!0:e&&oh(t)?fnt(t):!1},qan=function(t,e){return e?[[!0,!1],[0,1],["true","false"],["Yes","No"],["True","False"],["0","1"],["是","否"]].some(function(n){return t.every(function(r){return n.includes(r)})}):typeof t=="boolean"},vx=function(t){return t&&Object.getPrototypeOf(t)===Object.prototype},_l=function(t){return Array.isArray(t)},iw=function(t){return!_l(t)&&!vx(t)},$gi=function(t){return Array.from(new Set(t))},ix=function(t){return xc([],xa(Array(t).keys()))},di=function(t,e){if(!t)throw new Error(e)},Fgi=function(t,e){if(!_l(t)||t.length===0||!_l(e)||e.length===0||t.length!==e.length)return!1;for(var n={},r=0;r<e.length;r+=1){var a=e[r],o=t[r];if(!n[a])n[a]=o;else if(n[a]!==o)return!1}return!0},Ime=new WeakMap;function VG(t,e,n){return Ime.get(t)||Ime.set(t,new Map),Ime.get(t).set(e,n),n}function KG(t,e){var n=Ime.get(t);if(n)return n.get(e)}function Yan(t){var e=KG(t,"min");return e!==void 0?e:VG(t,"min",Math.min.apply(Math,xc([],xa(t))))}function jgi(t){for(var e=t[0],n=0,r=0;r<t.length;r+=1)t[r]<e&&(n=r,e=t[r]);return n}function Hgi(t){var e=KG(t,"minIndex");return e!==void 0?e:VG(t,"minIndex",jgi(t))}function Jan(t){var e=KG(t,"max");return e!==void 0?e:VG(t,"max",Math.max.apply(Math,xc([],xa(t))))}function Ugi(t){for(var e=t[0],n=0,r=0;r<t.length;r+=1)t[r]>e&&(n=r,e=t[r]);return n}function zgi(t){var e=KG(t,"maxIndex");return e!==void 0?e:VG(t,"maxIndex",Ugi(t))}function Zan(t){var e=KG(t,"sum");return e!==void 0?e:VG(t,"sum",t.reduce(function(n,r){return r+n},0))}function w5(t){return Zan(t)/t.length}function Ggi(t){return t.sort(function(e,n){return e>n?1:-1})}function QQ(t,e,n){n===void 0&&(n=!1),di(e>0&&e<100,"percent cannot be between (0, 100)");var r=n?t:Ggi(t),a=Math.ceil(t.length*e/100)-1;return r[a]}function Xan(t){var e=w5(t),n=KG(t,"variance");return n!==void 0?n:VG(t,"variance",t.reduce(function(r,a){return r+Math.pow(a-e,2)},0)/t.length)}function Mne(t){return Math.sqrt(Xan(t))}function Vgi(t){var e=Mne(t),n=w5(t);return e/n}function eon(t,e){di(t.length===e.length,"x and y must has same length");var n=w5(t.map(function(r,a){return r*e[a]}));return n-w5(t)*w5(e)}function ton(t,e){var n=eon(t,e),r=Mne(t),a=Mne(e);return n/(r*a)}function cze(t){var e={};return t.forEach(function(n){e[n]?e[n]+=1:e[n]=1}),e}function non(t){return Object.keys(cze(t)).length}function Kgi(t){var e=t.map(function(n){return n.length});return{maxLength:Jan(e),minLength:Yan(e),meanLength:w5(e),containsChar:t.some(function(n){return/[A-z]/.test(n)}),containsDigit:t.some(function(n){return/[0-9]/.test(n)}),containsSpace:t.some(function(n){return/\s/.test(n)})}}function Wgi(t){return{minimum:Yan(t),maximum:Jan(t),mean:w5(t),percentile5:QQ(t,5),percentile25:QQ(t,25),percentile50:QQ(t,50),percentile75:QQ(t,75),percentile95:QQ(t,95),sum:Zan(t),variance:Xan(t),standardDeviation:Mne(t),zeros:t.filter(function(e){return e===0}).length}}function Qgi(t,e){e===void 0&&(e=!1);var n=t.map(function(r){if(e){var a=""+r;if(a.length===8)return new Date(a.substr(0,4)+"/"+a.substr(4,2)+"/"+a.substr(6,2)).getTime()}return new Date(r).getTime()});return{minimum:t[Hgi(n)],maximum:t[zgi(n)]}}function AOe(t){return bwe(t)?"null":HA(t)?rp(t)?"integer":"float":oh(t)&&pnt(t)?t.includes(".")?"float":"integer":lze(t,!0)?"date":"string"}function qgi(t){return t.distinct===1}function xwe(t){var e=t.rawData,n=t.recommendation;if(n!=="string"||qgi(t))return!1;var r=e.filter(function(y){return!bwe(y)&&iw(y)});if(r.length===0)return!1;for(var a=null,o=null,s=-1,l=-1,c=!0;c;){for(var u=!0,d=0;d<r.length;d+=1){var h=r[d],f=h[s+1];if((a===null||d===0)&&(a=f),f!==a){u=!1;break}}if(!u)break;s+=1}for(c=!0;c;){for(var p=!0,d=0;d<r.length;d+=1){var h=r[d],f=h[h.length-1-(l+1)];if((o===null||d===0)&&(o=f),f!==o){p=!1;break}}if(!p)break;l+=1}var m=[/\d+/,/(零|一|二|三|四|五|六|七|八|九|十)+/,/(一|二|三|四|五|六|日)/,/^[a-z]$/,/^[A-Z]$/];if(s===-1&&l===-1)return!1;for(var g=r.map(function(y){return y.slice(s===-1?0:s+1,l===-1?void 0:y.length-l-1)}),v=function(y){var S=m[y],x=g.some(function(w){return!S.test(w)});if(!x)return{value:!0}},d=0;d<m.length;d+=1){var A=v(d);if(typeof A=="object")return A.value}return!1}function Ygi(t){return t.distinct===t.count}function Jgi(t){return t.recommendation==="integer"}function ron(t){return t.recommendation==="float"}function Zgi(t){return t.recommendation==="integer"||t.recommendation==="float"}function mnt(t){return t.recommendation==="boolean"?!0:t.recommendation==="string"?!xwe(t):!1}function Xgi(t){return t.recommendation==="date"}function G3(t){var e=t.map(function(p){return bwe(p)?null:p}),n=cze(e),r,a=n.null?e.filter(function(p){return p!==null}):e,o=e.map(function(p){return AOe(p)}),s=Object.keys(cze(o)).filter(function(p){return p!=="null"});switch(s.length){case 0:r="null";break;case 1:if(r=s[0],r==="integer"){var l=e.filter(function(p){return p!==null});l.map(function(p){return""+p}).every(function(p){return fnt(p)})&&(r="date")}break;case 2:s.includes("integer")&&s.includes("float")?r="float":r="string";break;default:r="string"}var c=$gi(a),u={count:t.length,distinct:c.length,type:s.length<=1?s[0]||"null":"mixed",recommendation:r,missing:n.null||0,rawData:t,valueMap:n};if(s.length>1){var d={},h=a;s.forEach(function(p){p==="date"?(d.date=G3(h.filter(function(m){return lze(m,!0)})),h=h.filter(function(m){return!lze(m,!0)})):p==="integer"?(d.integer=G3(h.filter(function(m){return rp(m,!0)})),h=h.filter(function(m){return!rp(m,!0)})):p==="float"?(d.float=G3(h.filter(function(m){return LEt(m,!0)})),h=h.filter(function(m){return!LEt(m,!0)})):p==="string"&&(d.string=G3(h.filter(function(m){return AOe(m)==="string"})),h=h.filter(function(m){return AOe(m)!=="string"}))}),u.meta=d}u.distinct===2&&u.recommendation!=="date"&&(e.length>=100||qan(c,!0))&&(u.recommendation="boolean"),r==="string"&&Object.assign(u,Kgi(a.map(function(p){return""+p}))),(r==="integer"||r==="float")&&Object.assign(u,Wgi(a.map(function(p){return p*1}))),r==="date"&&Object.assign(u,Qgi(a,u.type==="integer"));var f=[];return mnt(u)&&f.push("Nominal"),xwe(u)&&f.push("Ordinal"),Zgi(u)&&f.push("Interval"),Jgi(u)&&f.push("Discrete"),ron(u)&&f.push("Continuous"),Xgi(u)&&f.push("Time"),u.levelOfMeasurements=f,u}var sN=function(t){t==null&&(t=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,t.constructor==Array?this.init_by_array(t,t.length):this.init_seed(t)};sN.prototype.init_seed=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti<this.N;this.mti++){var t=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(((t&4294901760)>>>16)*1812433253<<16)+(t&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};sN.prototype.init_by_array=function(t,e){var n,r,a;for(this.init_seed(19650218),n=1,r=0,a=this.N>e?this.N:e;a;a--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((o&4294901760)>>>16)*1664525<<16)+(o&65535)*1664525)+t[r]+r,this.mt[n]>>>=0,n++,r++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=e&&(r=0)}for(a=this.N-1;a;a--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((o&4294901760)>>>16)*1566083941<<16)+(o&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};sN.prototype.random_int=function(){var t,e=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n<this.N-this.M;n++)t=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^t>>>1^e[t&1];for(;n<this.N-1;n++)t=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^t>>>1^e[t&1];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^e[t&1],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,t^=t>>>18,t>>>0};sN.prototype.random_int31=function(){return this.random_int()>>>1};sN.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};sN.prototype.random=function(){return this.random_int()*(1/4294967296)};sN.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};sN.prototype.random_long=function(){var t=this.random_int()>>>5,e=this.random_int()>>>6;return(t*67108864+e)*(1/9007199254740992)};var evi=sN;const tvi=Li(evi);var gnt={exports:{}},ion={},Ewe={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7},lN={};const vc=Ewe,vnt=()=>[{type:vc.RANGE,from:48,to:57}],aon=()=>[{type:vc.CHAR,value:95},{type:vc.RANGE,from:97,to:122},{type:vc.RANGE,from:65,to:90}].concat(vnt()),oon=()=>[{type:vc.CHAR,value:9},{type:vc.CHAR,value:10},{type:vc.CHAR,value:11},{type:vc.CHAR,value:12},{type:vc.CHAR,value:13},{type:vc.CHAR,value:32},{type:vc.CHAR,value:160},{type:vc.CHAR,value:5760},{type:vc.RANGE,from:8192,to:8202},{type:vc.CHAR,value:8232},{type:vc.CHAR,value:8233},{type:vc.CHAR,value:8239},{type:vc.CHAR,value:8287},{type:vc.CHAR,value:12288},{type:vc.CHAR,value:65279}],nvi=()=>[{type:vc.CHAR,value:10},{type:vc.CHAR,value:13},{type:vc.CHAR,value:8232},{type:vc.CHAR,value:8233}];lN.words=()=>({type:vc.SET,set:aon(),not:!1});lN.notWords=()=>({type:vc.SET,set:aon(),not:!0});lN.ints=()=>({type:vc.SET,set:vnt(),not:!1});lN.notInts=()=>({type:vc.SET,set:vnt(),not:!0});lN.whitespace=()=>({type:vc.SET,set:oon(),not:!1});lN.notWhitespace=()=>({type:vc.SET,set:oon(),not:!0});lN.anyChar=()=>({type:vc.SET,set:nvi(),not:!0});(function(t){const e=Ewe,n=lN,r="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",a={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(o){var s=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return o=o.replace(s,function(l,c,u,d,h,f,p,m){if(u)return l;var g=c?8:d?parseInt(d,16):h?parseInt(h,16):f?parseInt(f,8):p?r.indexOf(p):a[m],v=String.fromCharCode(g);return/[[\]{}^$.|?*+()]/.test(v)&&(v="\\"+v),v}),o},t.tokenizeClass=(o,s)=>{for(var l=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,u,d;(u=c.exec(o))!=null;)if(u[1])l.push(n.words());else if(u[2])l.push(n.ints());else if(u[3])l.push(n.whitespace());else if(u[4])l.push(n.notWords());else if(u[5])l.push(n.notInts());else if(u[6])l.push(n.notWhitespace());else if(u[7])l.push({type:e.RANGE,from:(u[8]||u[9]).charCodeAt(0),to:u[10].charCodeAt(0)});else if(d=u[12])l.push({type:e.CHAR,value:d.charCodeAt(0)});else return[l,c.lastIndex];t.error(s,"Unterminated character class")},t.error=(o,s)=>{throw new SyntaxError("Invalid regular expression: /"+o+"/: "+s)}})(ion);var loe={};const Swe=Ewe;loe.wordBoundary=()=>({type:Swe.POSITION,value:"b"});loe.nonWordBoundary=()=>({type:Swe.POSITION,value:"B"});loe.begin=()=>({type:Swe.POSITION,value:"^"});loe.end=()=>({type:Swe.POSITION,value:"$"});const E$=ion,Gb=Ewe,w4=lN,Yce=loe;gnt.exports=t=>{var e=0,n,r,a={type:Gb.ROOT,stack:[]},o=a,s=a.stack,l=[],c=A=>{E$.error(t,`Nothing to repeat at column ${A-1}`)},u=E$.strToChars(t);for(n=u.length;e<n;)switch(r=u[e++],r){case"\\":switch(r=u[e++],r){case"b":s.push(Yce.wordBoundary());break;case"B":s.push(Yce.nonWordBoundary());break;case"w":s.push(w4.words());break;case"W":s.push(w4.notWords());break;case"d":s.push(w4.ints());break;case"D":s.push(w4.notInts());break;case"s":s.push(w4.whitespace());break;case"S":s.push(w4.notWhitespace());break;default:/\d/.test(r)?s.push({type:Gb.REFERENCE,value:parseInt(r,10)}):s.push({type:Gb.CHAR,value:r.charCodeAt(0)})}break;case"^":s.push(Yce.begin());break;case"$":s.push(Yce.end());break;case"[":var d;u[e]==="^"?(d=!0,e++):d=!1;var h=E$.tokenizeClass(u.slice(e),t);e+=h[1],s.push({type:Gb.SET,set:h[0],not:d});break;case".":s.push(w4.anyChar());break;case"(":var f={type:Gb.GROUP,stack:[],remember:!0};r=u[e],r==="?"&&(r=u[e+1],e+=2,r==="="?f.followedBy=!0:r==="!"?f.notFollowedBy=!0:r!==":"&&E$.error(t,`Invalid group, character '${r}' after '?' at column ${e-1}`),f.remember=!1),s.push(f),l.push(o),o=f,s=f.stack;break;case")":l.length===0&&E$.error(t,`Unmatched ) at column ${e-1}`),o=l.pop(),s=o.options?o.options[o.options.length-1]:o.stack;break;case"|":o.options||(o.options=[o.stack],delete o.stack);var p=[];o.options.push(p),s=p;break;case"{":var m=/^(\d+)(,(\d+)?)?\}/.exec(u.slice(e)),g,v;m!==null?(s.length===0&&c(e),g=parseInt(m[1],10),v=m[2]?m[3]?parseInt(m[3],10):1/0:g,e+=m[0].length,s.push({type:Gb.REPETITION,min:g,max:v,value:s.pop()})):s.push({type:Gb.CHAR,value:123});break;case"?":s.length===0&&c(e),s.push({type:Gb.REPETITION,min:0,max:1,value:s.pop()});break;case"+":s.length===0&&c(e),s.push({type:Gb.REPETITION,min:1,max:1/0,value:s.pop()});break;case"*":s.length===0&&c(e),s.push({type:Gb.REPETITION,min:0,max:1/0,value:s.pop()});break;default:s.push({type:Gb.CHAR,value:r.charCodeAt(0)})}return l.length!==0&&E$.error(t,"Unterminated group"),a};gnt.exports.types=Gb;var rvi=gnt.exports;class $T{constructor(e,n){this.low=e,this.high=n,this.length=1+n-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(e){return new $T(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.high<this.high?[new $T(this.low,e.low-1),new $T(e.high+1,this.high)]:e.low<=this.low?[new $T(e.high+1,this.high)]:[new $T(this.low,e.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}let ivi=class mZ{constructor(e,n){this.ranges=[],this.length=0,e!=null&&this.add(e,n)}_update_length(){this.length=this.ranges.reduce((e,n)=>e+n.length,0)}add(e,n){var r=a=>{for(var o=0;o<this.ranges.length&&!a.touches(this.ranges[o]);)o++;for(var s=this.ranges.slice(0,o);o<this.ranges.length&&a.touches(this.ranges[o]);)a=a.add(this.ranges[o]),o++;s.push(a),this.ranges=s.concat(this.ranges.slice(o)),this._update_length()};return e instanceof mZ?e.ranges.forEach(r):(n==null&&(n=e),r(new $T(e,n))),this}subtract(e,n){var r=a=>{for(var o=0;o<this.ranges.length&&!a.overlaps(this.ranges[o]);)o++;for(var s=this.ranges.slice(0,o);o<this.ranges.length&&a.overlaps(this.ranges[o]);)s=s.concat(this.ranges[o].subtract(a)),o++;this.ranges=s.concat(this.ranges.slice(o)),this._update_length()};return e instanceof mZ?e.ranges.forEach(r):(n==null&&(n=e),r(new $T(e,n))),this}intersect(e,n){var r=[],a=o=>{for(var s=0;s<this.ranges.length&&!o.overlaps(this.ranges[s]);)s++;for(;s<this.ranges.length&&o.overlaps(this.ranges[s]);){var l=Math.max(this.ranges[s].low,o.low),c=Math.min(this.ranges[s].high,o.high);r.push(new $T(l,c)),s++}};return e instanceof mZ?e.ranges.forEach(a):(n==null&&(n=e),a(new $T(e,n))),this.ranges=r,this._update_length(),this}index(e){for(var n=0;n<this.ranges.length&&this.ranges[n].length<=e;)e-=this.ranges[n].length,n++;return this.ranges[n].low+e}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new mZ(this)}numbers(){return this.ranges.reduce((e,n)=>{for(var r=n.low;r<=n.high;)e.push(r),r++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}};var avi=ivi;const Pme=rvi,qQ=avi,_4=Pme.types;var ovi=class gZ{constructor(e,n){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if(typeof e=="string")this.ignoreCase=n&&n.indexOf("i")!==-1,this.multiline=n&&n.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=Pme(e)}_setDefaults(e){this.max=e.max!=null?e.max:gZ.prototype.max!=null?gZ.prototype.max:100,this.defaultRange=e.defaultRange?e.defaultRange:this.defaultRange.clone(),e.randInt&&(this.randInt=e.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,n){var r,a,o,s,l;switch(e.type){case _4.ROOT:case _4.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&e.groupNumber===void 0&&(e.groupNumber=n.push(null)-1),r=e.options?this._randSelect(e.options):e.stack,a="",s=0,l=r.length;s<l;s++)a+=this._gen(r[s],n);return e.remember&&(n[e.groupNumber]=a),a;case _4.POSITION:return"";case _4.SET:var c=this._expand(e);return c.length?String.fromCharCode(this._randSelect(c)):"";case _4.REPETITION:for(o=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),a="",s=0;s<o;s++)a+=this._gen(e.value,n);return a;case _4.REFERENCE:return n[e.value-1]||"";case _4.CHAR:var u=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(u)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof qQ?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===Pme.types.CHAR)return new qQ(e.value);if(e.type===Pme.types.RANGE)return new qQ(e.from,e.to);{let n=new qQ;for(let r=0;r<e.set.length;r++){let a=this._expand(e.set[r]);if(n.add(a),this.ignoreCase)for(let o=0;o<a.length;o++){let s=a.index(o),l=this._toOtherCase(s);s!==l&&n.add(l)}}return e.not?this.defaultRange.clone().subtract(n):this.defaultRange.clone().intersect(n)}}randInt(e,n){return e+Math.floor(Math.random()*(1+n-e))}get defaultRange(){return this._range=this._range||new qQ(32,126)}set defaultRange(e){this._range=e}static randexp(e,n){var r;return typeof e=="string"&&(e=new RegExp(e,n)),e._randexp===void 0?(r=new gZ(e,n),e._randexp=r):(r=e._randexp,r._setDefaults(e)),r.gen()}static sugar(){RegExp.prototype.gen=function(){return gZ.randexp(this)}}};const svi=Li(ovi);function gl(t,e){var n=cr({},t);return Object.entries(e||{}).forEach(function(r){var a=xa(r,2),o=a[0],s=a[1];s!==void 0&&(n[o]=s)}),n}function yOe(t){return t.charAt(0).toUpperCase()+t.substr(1)}var Ome=Math.pow(2,53)-1,lvi=-Ome;function cvi(t){return typeof t=="function"}var WG=function(){function t(e){cvi(e)?this.random=e:(this.seed=e||new Date().getTime()+ +(""+Math.random()).slice(2),this.mt=new tvi(this.seed),this.random=this.mt.random.bind(this.mt))}return t.mixin=function(e){for(var n=0;n<Object.keys(e||{}).length;n+=1){var r=Object.keys(e)[n],a=e[r];this.prototype[r]=a}},t.prototype.boolean=function(e){var n=gl({likelihood:50},e).likelihood;return di(n>=0&&n<=100,"Likelihood accepts values from 0 to 100."),this.random()>n/100},t.prototype.integer=function(e){var n=gl({min:lvi,max:Ome},e),r=n.max,a=n.min;return di(a<=r,"Min cannot be greater than Max."),Math.floor(this.random()*(r-a+1)+a)},t.prototype.float=function(e){e===void 0&&(e={});var n=gl({fixed:4},e),r=Math.pow(10,n.fixed),a=Ome/r,o=-a;di(!n.min||!n.fixed||n.min>=o,"Min specified is out of range with fixed. Min should be, at least, "+o),di(!n.max||!n.fixed||n.max<=a,"Max specified is out of range with fixed. Max should be, at most, "+a);var s=gl({min:o,max:a},n),l=this.integer({min:s.min*r,max:s.max*r}),c=(l/r).toFixed(n.fixed);return Number.parseFloat(c)},t.prototype.natural=function(e){e===void 0&&(e={});var n=gl({min:0,max:Ome},e);return di(n.min>=0,"Min cannot be less than zero."),this.integer(n)},t.prototype.pickone=function(e){return di(e.length!==0,"Cannot pickone() from an empty array"),e[this.natural({max:e.length-1})]},t.prototype.pickset=function(e,n){if(n===void 0&&(n=1),n===0)return[];if(di(e.length!==0,"Cannot pickset() from an empty array"),di(n>=0,"Count must be a positive number"),n===1)return[this.pickone(e)];var r=e.slice(0),a=r.length;return this.n(function(){a-=1;var s=this.natural({max:a}),l=r[s];return r[s]=r[a],l},Math.min(a,n))},t.prototype.shuffle=function(e){for(var n=[],r=0,a=e.length,o=ix(a),s=a-1,l,c=0;c<a;c+=1)l=this.natural({max:s}),r=o[l],n[c]=e[r],o[l]=o[s],s-=1;return n},t.prototype.n=function(e,n){n===void 0&&(n=1);for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];di(typeof e=="function","The first argument must be a function.");var o=n,s=[];for(o=Math.max(0,o);o>0;o-=1)s.push(e.apply(this,r));return s},t.prototype.randexp=function(e,n){var r=new svi(e,n);return r.gen()},t}();function Ant(){var t="abcdefghijklmnopqrstuvwxyz",e=t.toUpperCase(),n={character:{lower:t,upper:e,number:"0123456789",symbol:"!@#$%^&*()[],."},syllable:{vowels:"aeiou",consonants:"bcdfghjklmnprstvwz"},sentence:{punctuations:".?;!:"},cCharacter:{chars:"的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞"},hexs:"0123456789abcdef",cSurname:["王","李","张","刘","陈","杨","黄","赵","吴","周","徐","孙","马","朱","胡","郭","何","林","高","罗","郑","梁","谢","宋","唐","许","邓","韩","冯","曹","彭","曾","肖","田","董","潘","袁","蔡","蒋","余","于","杜","叶","程","魏","苏","吕","丁","任","卢","姚","沈","钟","姜","崔","谭","陆","汪","范","廖","石","金","韦","贾","夏","付","方","邹","熊","白","孟","秦","邱","侯","江","尹","薛","闫","雷","龙","黎","史","陶","贺","毛","段","郝","顾","龚","邵","覃","武","钱","戴","严","莫","孔","常","汤","赖","萧","傅","阎","包","康","伍","施","万","洪","庞","樊","季","庄","殷","温","倪","翟","申","向","齐","乔","文","安","易","颜","牛","岳","顔","简","骆","毕","章","鲁","关","葛","柳","俞","聂","蓝","祝","柴","纪","焦","祁","耿","邢","尚","芦","成","涂","左","麦","辛","管","苗","靳","柯","梅","兰","路","符","童","单","詹","甘","游","曲","翁","牟","尤","占","查","谷","霍","滕","裴","欧","舒","凌","盛","欧阳","冼","鲍","屈","房","饶","喻","艾","卫","解","时","冉","宫","项","闵","阮","宁","应","蒲","阳","吉","司","席","晏","华","强","穆","冷","姬","古","揭","连","岑","邬","景","柏","谈","郎","蒙","沙","费","车","卜","桂","窦","缪","郁","栾","隋","巩","褚","全","卓","戚","苟","党","米","娄","候","丛","边","瞿","农","迟","茅","封","池","商","巫","卞","虞","刁","佟","臧","伊","甄","鞠","仲","惠","班","匡","栗","练","植","仇","代","丘","师","楚","燕","原","干","巴","南","昌","桑","楼","寇","敖","宣","佘","禹","阿","盖","屠","国","官","邝","云","荆","储","朴","满","井","奚","麻","明","乐","苑","钮","诸","危","狄","权","宗","劳","祖","那","计","慕","阙","普","郜","丰","索","胥","仰","茹","杭","闻","西","芮","蔺","冀","阚","廉","伏","鄢","和","习","门","公","容","羊","浦","厉","花","支","富","薄","郗","乌","水","元","嵇","相","平","戈","衣","都","雍","晁","融","家","湛","松","山","贝","戎","初","凤","皮","邰","於","荀","漆","谌","訾","利","宾","东","裘","束","赫","贡","亓","濮","宦","逄","寿","昝","晋","弓","贲","况","帅","空","步","宿","隆","扈","区","荣","竺","能","仝","滑","战","锺","修","岩","弘","充","阴","幸","通","广","勾","逯","邴","养","子","蓬","玉","酆","糜","夔","鄂","暴","来","双","汲","别","终","卿","粟","经","韶","敬","从","羿","怀","郏","红","居","蔚","达","蓟","郦","宓","尉","隗","后","咸","璩","木","鹿","邸","才","牧","蒯","宰","巢","毋","沃","智","殳","益","堵","慎","厍","乜","莘","苍","凡","豆","越","由","扶","暨","鲜","法","腾","上官","伯","辜","位","须","衡","禄","桓","呼","哈","拉","银","母","扎","汝","青","信","亢","藩","长","冶","展","布","斯","盘","湖","刀","宇","庾","但","次","佴","矫","正","多","格","宝","加","待","海","檀","藏","保","庚","旦","赏","巨","尧","延","自","德","尼","渠","过","历","雒","铁","轩","年","泮","籍","仁","操","令狐","字","户","刑","旷","黑","良","靖","郈","上","虎","台","奉","鱼","泽","其","琚","綦","蹇","宛","税","畅","侍","招","谯","扬","赛","百","生","种","娜","玄","买","伦","萨","茆","小","续","里","纳","么","洛","未","庹","依","旺","菅","太","郄","司马","英","拓","大","永","要","茶","冒","郇","忻","果","化","粱","先","嘎"],cGivenName:{male:"伟刚勇毅俊峰强军平保东文辉力明永健世广志义兴良海山仁波宁贵福生龙元全国胜学祥才发武新利清飞彬富顺信子杰涛昌成康星光天达安岩中茂进林有坚和彪博诚先敬震振壮会思群豪心邦承乐绍功松善厚庆磊民友裕河哲江超浩亮政谦亨奇固之轮翰朗伯宏言若鸣朋斌梁栋维启克伦翔旭鹏泽晨辰士以建家致树炎德行时泰盛",female:"秀娟英华慧巧美娜静淑惠珠翠雅芝玉萍红娥玲芬芳燕彩春菊兰凤洁梅琳素云莲真环雪荣爱妹霞香月莺媛艳瑞凡佳嘉琼勤珍贞莉桂娣叶璧璐娅琦晶妍茜秋珊莎锦黛青倩婷姣婉娴瑾颖露瑶怡婵雁蓓纨仪荷丹蓉眉君琴蕊薇菁梦岚苑筠柔竹霭凝晓欢霄枫芸菲寒欣滢伊亚宜可姬舒影荔枝思丽秀飘育馥琦晶妍茜秋珊莎锦黛青倩婷宁蓓纨苑婕馨瑗琰韵融园艺咏卿聪澜纯毓悦昭冰爽琬茗羽希"},givenName:{female:["Mary","Emma","Elizabeth","Minnie","Margaret","Ida","Alice","Bertha","Sarah","Annie","Clara","Ella","Florence","Cora","Martha","Laura","Nellie","Grace","Carrie","Maude","Mabel","Bessie","Jennie","Gertrude","Julia","Hattie","Edith","Mattie","Rose","Catherine","Lillian","Ada","Lillie","Helen","Jessie","Louise","Ethel","Lula","Myrtle","Eva","Frances","Lena","Lucy","Edna","Maggie","Pearl","Daisy","Fannie","Josephine","Dora","Rosa","Katherine","Agnes","Marie","Nora","May","Mamie","Blanche","Stella","Ellen","Nancy","Effie","Sallie","Nettie","Della","Lizzie","Flora","Susie","Maud","Mae","Etta","Harriet","Sadie","Caroline","Katie","Lydia","Elsie","Kate","Susan","Mollie","Alma","Addie","Georgia","Eliza","Lulu","Nannie","Lottie","Amanda","Belle","Charlotte","Rebecca","Ruth","Viola","Olive","Amelia","Hannah","Jane","Virginia","Emily","Matilda","Irene","Kathryn","Esther","Willie","Henrietta","Ollie","Amy","Rachel","Sara","Estella","Theresa","Augusta","Ora","Pauline","Josie","Lola","Sophia","Leona","Anne","Mildred","Ann","Beulah","Callie","Lou","Delia","Eleanor","Barbara","Iva","Louisa","Maria","Mayme","Evelyn","Estelle","Nina","Betty","Marion","Bettie","Dorothy","Luella","Inez","Lela","Rosie","Allie","Millie","Janie","Cornelia","Victoria","Ruby","Winifred","Alta","Celia","Christine","Beatrice","Birdie","Harriett","Mable","Myra","Sophie","Tillie","Isabel","Sylvia","Carolyn","Isabelle","Leila","Sally","Ina","Essie","Bertie","Nell","Alberta","Katharine","Lora","Rena","Mina","Rhoda","Mathilda","Abbie","Eula","Dollie","Hettie","Eunice","Fanny","Ola","Lenora","Adelaide","Christina","Lelia","Nelle","Sue","Johanna","Lilly","Lucinda","Minerva","Lettie","Roxie","Cynthia","Helena","Hilda","Hulda","Bernice","Genevieve","Jean","Cordelia","Marian","Francis","Jeanette","Adeline","Gussie","Leah","Lois","Lura","Mittie","Hallie","Isabella","Olga","Phoebe","Teresa","Hester","Lida","Lina","Winnie","Claudia","Marguerite","Vera","Cecelia","Bess","Emilie","Rosetta","Verna","Myrtie","Cecilia","Elva","Olivia","Ophelia","Georgie","Elnora","Violet","Adele","Lily","Linnie","Loretta","Madge","Polly","Virgie","Eugenia","Lucile","Lucille","Mabelle","Rosalie"],male:["James","John","Robert","Michael","William","David","Richard","Joseph","Charles","Thomas","Christopher","Daniel","Matthew","George","Donald","Anthony","Paul","Mark","Edward","Steven","Kenneth","Andrew","Brian","Joshua","Kevin","Ronald","Timothy","Jason","Jeffrey","Frank","Gary","Ryan","Nicholas","Eric","Stephen","Jacob","Larry","Jonathan","Scott","Raymond","Justin","Brandon","Gregory","Samuel","Benjamin","Patrick","Jack","Henry","Walter","Dennis","Jerry","Alexander","Peter","Tyler","Douglas","Harold","Aaron","Jose","Adam","Arthur","Zachary","Carl","Nathan","Albert","Kyle","Lawrence","Joe","Willie","Gerald","Roger","Keith","Jeremy","Terry","Harry","Ralph","Sean","Jesse","Roy","Louis","Billy","Austin","Bruce","Eugene","Christian","Bryan","Wayne","Russell","Howard","Fred","Ethan","Jordan","Philip","Alan","Juan","Randy","Vincent","Bobby","Dylan","Johnny","Phillip","Victor","Clarence","Ernest","Martin","Craig","Stanley","Shawn","Travis","Bradley","Leonard","Earl","Gabriel","Jimmy","Francis","Todd","Noah","Danny","Dale","Cody","Carlos","Allen","Frederick","Logan","Curtis","Alex","Joel","Luis","Norman","Marvin","Glenn","Tony","Nathaniel","Rodney","Melvin","Alfred","Steve","Cameron","Chad","Edwin","Caleb","Evan","Antonio","Lee","Herbert","Jeffery","Isaac","Derek","Ricky","Marcus","Theodore","Elijah","Luke","Jesus","Eddie","Troy","Mike","Dustin","Ray","Adrian","Bernard","Leroy","Angel","Randall","Wesley","Ian","Jared","Mason","Hunter","Calvin","Oscar","Clifford","Jay","Shane","Ronnie","Barry","Lucas","Corey","Manuel","Leo","Tommy","Warren","Jackson","Isaiah","Connor","Don","Dean","Jon","Julian","Miguel","Bill","Lloyd","Charlie","Mitchell","Leon","Jerome","Darrell","Jeremiah","Alvin","Brett","Seth","Floyd","Jim","Blake","Micheal","Gordon","Trevor","Lewis","Erik","Edgar","Vernon","Devin","Gavin","Jayden","Chris","Clyde","Tom","Derrick","Mario","Brent","Marc","Herman","Chase","Dominic","Ricardo","Franklin","Maurice","Max","Aiden","Owen","Lester","Gilbert","Elmer","Gene","Francisco","Glen","Cory","Garrett","Clayton","Sam","Jorge","Chester","Alejandro","Jeff","Harvey","Milton","Cole","Ivan","Andre","Duane","Landon"]},surname:["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White","Harris","Martin","Thompson","Garcia","Martinez","Robinson","Clark","Rodriguez","Lewis","Lee","Walker","Hall","Allen","Young","Hernandez","King","Wright","Lopez","Hill","Scott","Green","Adams","Baker","Gonzalez","Nelson","Carter","Mitchell","Perez","Roberts","Turner","Phillips","Campbell","Parker","Evans","Edwards","Collins","Stewart","Sanchez","Morris","Rogers","Reed","Cook","Morgan","Bell","Murphy","Bailey","Rivera","Cooper","Richardson","Cox","Howard","Ward","Torres","Peterson","Gray","Ramirez","James","Watson","Brooks","Kelly","Sanders","Price","Bennett","Wood","Barnes","Ross","Henderson","Coleman","Jenkins","Perry","Powell","Long","Patterson","Hughes","Flores","Washington","Butler","Simmons","Foster","Gonzales","Bryant","Alexander","Russell","Griffin","Diaz","Hayes","Myers","Ford","Hamilton","Graham","Sullivan","Wallace","Woods","Cole","West","Jordan","Owens","Reynolds","Fisher","Ellis","Harrison","Gibson","McDonald","Cruz","Marshall","Ortiz","Gomez","Murray","Freeman","Wells","Webb","Simpson","Stevens","Tucker","Porter","Hunter","Hicks","Crawford","Henry","Boyd","Mason","Morales","Kennedy","Warren","Dixon","Ramos","Reyes","Burns","Gordon","Shaw","Holmes","Rice","Robertson","Hunt","Black","Daniels","Palmer","Mills","Nichols","Grant","Knight","Ferguson","Rose","Stone","Hawkins","Dunn","Perkins","Hudson","Spencer","Gardner","Stephens","Payne","Pierce","Berry","Matthews","Arnold","Wagner","Willis","Ray","Watkins","Olson","Carroll","Duncan","Snyder","Hart","Cunningham","Bradley","Lane","Andrews","Ruiz","Harper","Fox","Riley","Armstrong","Carpenter","Weaver","Greene","Lawrence","Elliott","Chavez","Sims","Austin","Peters","Kelley","Franklin","Lawson","Fields","Gutierrez","Ryan","Schmidt","Carr","Vasquez","Castillo","Wheeler","Chapman","Oliver","Montgomery","Richards","Williamson","Johnston","Banks","Meyer","Bishop","McCoy","Howell","Alvarez","Morrison","Hansen","Fernandez","Garza","Harvey","Little","Burton","Stanley","Nguyen","George","Jacobs","Reid","Kim","Fuller","Lynch","Dean","Gilbert","Garrett","Romero","Welch","Larson","Frazier","Burke","Hanson","Day","Mendoza","Moreno","Bowman","Medina","Fowler","Brewer","Hoffman","Carlson","Silva","Pearson","Holland","Douglas","Fleming","Jensen","Vargas","Byrd","Davidson","Hopkins","May","Terry","Herrera","Wade","Soto","Walters","Curtis","Neal","Caldwell","Lowe","Jennings","Barnett","Graves","Jimenez","Horton","Shelton","Barrett","Obrien","Castro","Sutton","Gregory","McKinney","Lucas","Miles","Craig","Rodriquez","Chambers","Holt","Lambert","Fletcher","Watts","Bates","Hale","Rhodes","Pena","Beck","Newman","Haynes","McDaniel","Mendez","Bush","Vaughn","Parks","Dawson","Santiago","Norris","Hardy","Love","Steele","Curry","Powers","Schultz","Barker","Guzman","Page","Munoz","Ball","Keller","Chandler","Weber","Leonard","Walsh","Lyons","Ramsey","Wolfe","Schneider","Mullins","Benson","Sharp","Bowen","Daniel","Barber","Cummings","Hines","Baldwin","Griffith","Valdez","Hubbard","Salazar","Reeves","Warner","Stevenson","Burgess","Santos","Tate","Cross","Garner","Mann","Mack","Moss","Thornton","Dennis","McGee","Farmer","Delgado","Aguilar","Vega","Glover","Manning","Cohen","Harmon","Rodgers","Robbins","Newton","Todd","Blair","Higgins","Ingram","Reese","Cannon","Strickland","Townsend","Potter","Goodwin","Walton","Rowe","Hampton","Ortega","Patton","Swanson","Joseph","Francis","Goodman","Maldonado","Yates","Becker","Erickson","Hodges","Rios","Conner","Adkins","Webster","Norman","Malone","Hammond","Flowers","Cobb","Moody","Quinn","Blake","Maxwell","Pope","Floyd","Osborne","Paul","McCarthy","Guerrero","Lindsey","Estrada","Sandoval","Gibbs","Tyler","Gross","Fitzgerald","Stokes","Doyle","Sherman","Saunders","Wise","Colon","Gill","Alvarado","Greer","Padilla","Simon","Waters","Nunez","Ballard","Schwartz","McBride","Houston","Christensen","Klein","Pratt","Briggs","Parsons","McLaughlin","Zimmerman","French","Buchanan","Moran","Copeland","Roy","Pittman","Brady","McCormick","Holloway","Brock","Poole","Frank","Logan","Owen","Bass","Marsh","Drake","Wong","Jefferson","Park","Morton","Abbott","Sparks","Patrick","Norton","Huff","Clayton","Massey","Lloyd","Figueroa","Carson","Bowers","Roberson","Barton","Tran","Lamb","Harrington","Casey","Boone","Cortez","Clarke","Mathis","Singleton","Wilkins","Cain","Bryan","Underwood","Hogan","McKenzie","Collier","Luna","Phelps","McGuire","Allison","Bridges","Wilkerson","Nash","Summers","Atkins"],cZodiac:{"en-US":["Rat","OX","Tiger","Rabbit","Dragon","Snake","Horse","Sheep","Monkey","Rooster","Dog","Pig"],"zh-CN":["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"]}};return n}function son(){var t={tld:["com","org","edu","gov","co.uk","net","io","ac","ad","ae","af","ag","ai","al","am","an","ao","aq","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","su","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tp","tr","tt","tv","tw","tz","ua","ug","uk","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"]};return t}function lon(){var t={colorKeywords:["silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"]};return t}function con(){var t={weekday:{"en-US":[["Monday","Mon."],["Tuesday","Tues."],["Wednesday","Wed."],["Thursday","Thur."],["Friday","Fri."],["Saturday","Sat.",!0],["Sunday","Sun.",!0]],"zh-CN":[["星期一"],["星期二"],["星期三"],["星期四"],["星期五"],["星期六",,!0],["星期日",,!0]]},month:{"en-US":[["January","Jan."],["February","Feb."],["March","Mar."],["April","Apr."],["May","May."],["June","Jun."],["July","Jul."],["August","Aug."],["September","Sep."],["October","Oct."],["November","Nov."],["December","Dec."]],"zh-CN":[["一月"],["二月"],["三月"],["四月"],["五月"],["六月"],["七月"],["八月"],["九月"],["十月"],["十一月"],["十二月"]]}};return t}function uvi(){return cr(cr(cr(cr({},lon()),Ant()),son()),con())}var uon=function(t){nA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.database=Ant(),n}return e.prototype.character=function(n){var r=gl({lower:!0,upper:!0,symbols:!0,numeric:!0},n),a="";return r.pool?a=r.pool:(r.lower&&(a+=this.database.character.lower),r.upper&&(a+=this.database.character.upper),r.symbols&&(a+=this.database.character.symbol),r.numeric&&(a+=this.database.character.number)),a.charAt(this.natural({max:a.length-1}))},e.prototype.string=function(n){var r=gl({length:this.natural({min:5,max:20})},n);di(r.length>=0,"Length cannot be less than zero.");var a=r.length,o=this.n(this.character,a,r);return o.join("")},e.prototype.syllable=function(n){for(var r=gl({length:this.natural({min:2,max:3})},n).length,a=this.database.syllable,o=a.consonants,s=a.vowels,l=o+s,c="",u="",d=0;d<r;d+=1)d===0?u=this.character({pool:l}):o.indexOf(u)===-1?u=this.character({pool:o}):u=this.character({pool:s}),c+=u;return n&&n.capitalize&&(c=yOe(c)),c},e.prototype.word=function(n){n===void 0&&(n={}),di(!n.syllables||!n.length,"Cannot specify both syllables AND length.");var r=n.syllables||this.natural({min:1,max:3}),a="";if(n.length){do a+=this.syllable();while(a.length<n.length);a=a.substring(0,n.length)}else for(var o=0;o<r;o+=1)a+=this.syllable();return n&&n.capitalize&&(a=yOe(a)),a},e.prototype.sentence=function(n){var r=gl({words:this.natural({min:12,max:18}),punctuation:!0},n),a=r.words,o=r.punctuation,s=this.n(this.word,a),l;return l=s.join(" "),l=yOe(l),o===!0?l+=this.pickone(this.database.sentence.punctuations.split("")):typeof o=="string"&&(l+=o),l},e.prototype.paragraph=function(n){var r=gl({sentences:this.natural({min:3,max:7})},n).sentences,a=this.n(this.sentence,r,{punctuation:"."});return a.join(" ")},e.prototype.name=function(n){return this.givenName(n)+" "+this.surname()},e.prototype.surname=function(){return this.pickone(this.database.surname)},e.prototype.givenName=function(n){var r=gl({},n).gender;di(!r||r==="female"||r==="male","Gender must be one of female or male");var a=this.database.givenName,o=a.male,s=a.female,l=r?this.database.givenName[r]:[].concat(o).concat(s);return this.pickone(l)},e.prototype.phone=function(n){var r=gl({mobile:!0,formatted:!1,asterisk:!1,startNum:""},n),a=r.mobile,o=r.formatted,s=r.asterisk,l=r.startNum,c;return a?s?l.length===3?c=o?new RegExp(l+"-\\*{4}-\\d{4}"):new RegExp(l+"\\*{4}\\d{4}"):c=o?/1[345789]\d-\*{4}-\d{4}/:/1[345789]\d\*{4}\d{4}/:l.length===3?c=o?new RegExp(l+"-\\d{4}-\\d{4}"):new RegExp(l+"\\d{8}"):c=o?/1[345789]\d-\d{4}-\d{4}/:/1[345789]\d{9}/:s?l.length===3?c=o?new RegExp(l+"-\\d{3}\\*{2,3}\\d{2}"):new RegExp(l+"\\d{3}\\*{2,3}\\d{2}"):c=o?/\d{3,4}-\d{3}\*{2,3}\d{2}/:/\d{3,4}\d{3}\*{2,3}\d{2}/:l.length===3?c=o?new RegExp(l+"-\\d{7,8}"):new RegExp(l+"\\d{7,8}"):c=o?/\d{3,4}-\d{7,8}/:/\d{10,12}/,this.randexp(c)},e.prototype.cCharacter=function(n){var r=gl({},n).pool;return this.pickone((r||this.database.cCharacter.chars).split(""))},e.prototype.cWord=function(n){var r=gl({length:this.natural({min:2,max:6})},n).length;return this.n(this.cCharacter,r,n).join("")},e.prototype.cSentence=function(n){var r=gl({min:10,max:18},n),a=this.natural(r);return this.n(this.cWord,a).join("")+"。"},e.prototype.cParagraph=function(n){var r=gl({min:3,max:18},n),a=this.natural(r);return this.n(this.cSentence,a).join("")},e.prototype.cName=function(n){return""+this.cSurname()+this.cGivenName(n)},e.prototype.cSurname=function(){return this.pickone(this.database.cSurname)},e.prototype.cGivenName=function(n){var r=gl({length:this.natural({min:1,max:2})},n),a=r.length,o=r.gender;di(!o||o==="female"||o==="male","Gender must be one of female or male");var s=this.database.cGivenName,l=s.male,c=s.female,u=o?this.database.cGivenName[o]:l+c;return this.pickset(u.split(""),a).join("")},e.prototype.cZodiac=function(n){var r=gl({locale:"zh-CN"},n).locale,a=this.database.cZodiac[r];return this.pickone(a)},e}(WG);function Ss(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function ti(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Gi(t){ti(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ux(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function QG(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Ow(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return a>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function ynt(t,e){ti(2,arguments);var n=Gi(t).getTime(),r=Ss(e);return new Date(n+r)}var dvi=36e5;function hvi(t,e){ti(2,arguments);var n=Ss(e);return ynt(t,n*dvi)}var fvi={};function i9(){return fvi}function don(t,e){var n,r,a,o,s,l,c,u;ti(1,arguments);var d=i9(),h=Ss((n=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Gi(t),p=f.getDay(),m=(p<h?7:0)+p-h;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function EAe(t){return ti(1,arguments),don(t,{weekStartsOn:1})}function pvi(t){ti(1,arguments);var e=Gi(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=EAe(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var s=EAe(o);return e.getTime()>=a.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function mvi(t){ti(1,arguments);var e=pvi(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=EAe(n);return r}function SAe(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function E2(t){ti(1,arguments);var e=Gi(t);return e.setHours(0,0,0,0),e}var gvi=864e5;function wAe(t,e){ti(2,arguments);var n=E2(t),r=E2(e),a=n.getTime()-SAe(n),o=r.getTime()-SAe(r);return Math.round((a-o)/gvi)}var vvi=6e4;function uze(t,e){ti(2,arguments);var n=Ss(e);return ynt(t,n*vvi)}function hon(t,e){ti(2,arguments);var n=Ss(e),r=n*3;return Ow(t,r)}function _Ae(t,e){ti(2,arguments);var n=Ss(e),r=n*7;return QG(t,r)}function UU(t,e){ti(2,arguments);var n=Ss(e);return Ow(t,n*12)}function BEt(t){ti(1,arguments);var e;if(t&&typeof t.forEach=="function")e=t;else if(Ux(t)==="object"&&t!==null)e=Array.prototype.slice.call(t);else return new Date(NaN);var n;return e.forEach(function(r){var a=Gi(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function DEt(t){ti(1,arguments);var e;if(t&&typeof t.forEach=="function")e=t;else if(Ux(t)==="object"&&t!==null)e=Array.prototype.slice.call(t);else return new Date(NaN);var n;return e.forEach(function(r){var a=Gi(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}var bnt=6e4,xnt=36e5,Avi=1e3;function yvi(t,e){ti(2,arguments);var n=E2(t),r=E2(e);return n.getTime()===r.getTime()}function wwe(t){return ti(1,arguments),t instanceof Date||Ux(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Nne(t){if(ti(1,arguments),!wwe(t)&&typeof t!="number")return!1;var e=Gi(t);return!isNaN(Number(e))}function TAe(t,e){ti(2,arguments);var n=Gi(t),r=Gi(e),a=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return a*12+o}function YF(t){ti(1,arguments);var e=Gi(t),n=Math.floor(e.getMonth()/3)+1;return n}function CAe(t,e){ti(2,arguments);var n=Gi(t),r=Gi(e);return n.getFullYear()-r.getFullYear()}function dze(t){ti(1,arguments);var e=Gi(t);return e.setHours(23,59,59,999),e}function bvi(t){ti(1,arguments);var e=Gi(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function hze(t){ti(1,arguments);var e=Gi(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function fon(t){ti(1,arguments);var e=Gi(t);return e.setDate(1),e.setHours(0,0,0,0),e}function xvi(t){ti(1,arguments);var e=Gi(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}function pon(t){ti(1,arguments);var e=Gi(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function mon(t,e){ti(2,arguments);var n=Ss(e);return ynt(t,-n)}var Evi=864e5;function Svi(t){ti(1,arguments);var e=Gi(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=n-r;return Math.floor(a/Evi)+1}function zU(t){ti(1,arguments);var e=1,n=Gi(t),r=n.getUTCDay(),a=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function gon(t){ti(1,arguments);var e=Gi(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=zU(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=zU(o);return e.getTime()>=a.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function wvi(t){ti(1,arguments);var e=gon(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=zU(n);return r}var _vi=6048e5;function von(t){ti(1,arguments);var e=Gi(t),n=zU(e).getTime()-wvi(e).getTime();return Math.round(n/_vi)+1}function F6(t,e){var n,r,a,o,s,l,c,u;ti(1,arguments);var d=i9(),h=Ss((n=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Gi(t),p=f.getUTCDay(),m=(p<h?7:0)+p-h;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function Ent(t,e){var n,r,a,o,s,l,c,u;ti(1,arguments);var d=Gi(t),h=d.getUTCFullYear(),f=i9(),p=Ss((n=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(h+1,0,p),m.setUTCHours(0,0,0,0);var g=F6(m,e),v=new Date(0);v.setUTCFullYear(h,0,p),v.setUTCHours(0,0,0,0);var A=F6(v,e);return d.getTime()>=g.getTime()?h+1:d.getTime()>=A.getTime()?h:h-1}function Tvi(t,e){var n,r,a,o,s,l,c,u;ti(1,arguments);var d=i9(),h=Ss((n=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:d.firstWeekContainsDate)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Ent(t,e),p=new Date(0);p.setUTCFullYear(f,0,h),p.setUTCHours(0,0,0,0);var m=F6(p,e);return m}var Cvi=6048e5;function Aon(t,e){ti(1,arguments);var n=Gi(t),r=F6(n,e).getTime()-Tvi(n,e).getTime();return Math.round(r/Cvi)+1}function Rc(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var kvi={y:function(e,n){var r=e.getUTCFullYear(),a=r>0?r:1-r;return Rc(n==="yy"?a%100:a,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):Rc(r+1,2)},d:function(e,n){return Rc(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return Rc(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Rc(e.getUTCHours(),n.length)},m:function(e,n){return Rc(e.getUTCMinutes(),n.length)},s:function(e,n){return Rc(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,a=e.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,r-3));return Rc(o,n.length)}};const tI=kvi;var S$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rvi={G:function(e,n,r){var a=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var a=e.getUTCFullYear(),o=a>0?a:1-a;return r.ordinalNumber(o,{unit:"year"})}return tI.y(e,n)},Y:function(e,n,r,a){var o=Ent(e,a),s=o>0?o:1-o;if(n==="YY"){var l=s%100;return Rc(l,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Rc(s,n.length)},R:function(e,n){var r=gon(e);return Rc(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return Rc(r,n.length)},Q:function(e,n,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return Rc(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,n,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return Rc(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,n,r){var a=e.getUTCMonth();switch(n){case"M":case"MM":return tI.M(e,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,n,r){var a=e.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return Rc(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,n,r,a){var o=Aon(e,a);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Rc(o,n.length)},I:function(e,n,r){var a=von(e);return n==="Io"?r.ordinalNumber(a,{unit:"week"}):Rc(a,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):tI.d(e,n)},D:function(e,n,r){var a=Svi(e);return n==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Rc(a,n.length)},E:function(e,n,r){var a=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,n,r,a){var o=e.getUTCDay(),s=(o-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Rc(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,r,a){var o=e.getUTCDay(),s=(o-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Rc(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,r){var a=e.getUTCDay(),o=a===0?7:a;switch(n){case"i":return String(o);case"ii":return Rc(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,n,r){var a=e.getUTCHours(),o=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,r){var a=e.getUTCHours(),o;switch(a===12?o=S$.noon:a===0?o=S$.midnight:o=a/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,r){var a=e.getUTCHours(),o;switch(a>=17?o=S$.evening:a>=12?o=S$.afternoon:a>=4?o=S$.morning:o=S$.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return tI.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tI.H(e,n)},K:function(e,n,r){var a=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Rc(a,n.length)},k:function(e,n,r){var a=e.getUTCHours();return a===0&&(a=24),n==="ko"?r.ordinalNumber(a,{unit:"hour"}):Rc(a,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):tI.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):tI.s(e,n)},S:function(e,n){return tI.S(e,n)},X:function(e,n,r,a){var o=a._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return FEt(s);case"XXXX":case"XX":return qL(s);case"XXXXX":case"XXX":default:return qL(s,":")}},x:function(e,n,r,a){var o=a._originalDate||e,s=o.getTimezoneOffset();switch(n){case"x":return FEt(s);case"xxxx":case"xx":return qL(s);case"xxxxx":case"xxx":default:return qL(s,":")}},O:function(e,n,r,a){var o=a._originalDate||e,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+$Et(s,":");case"OOOO":default:return"GMT"+qL(s,":")}},z:function(e,n,r,a){var o=a._originalDate||e,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+$Et(s,":");case"zzzz":default:return"GMT"+qL(s,":")}},t:function(e,n,r,a){var o=a._originalDate||e,s=Math.floor(o.getTime()/1e3);return Rc(s,n.length)},T:function(e,n,r,a){var o=a._originalDate||e,s=o.getTime();return Rc(s,n.length)}};function $Et(t,e){var n=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),o=r%60;if(o===0)return n+String(a);var s=e||"";return n+String(a)+s+Rc(o,2)}function FEt(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Rc(Math.abs(t)/60,2)}return qL(t,e)}function qL(t,e){var n=e||"",r=t>0?"-":"+",a=Math.abs(t),o=Rc(Math.floor(a/60),2),s=Rc(a%60,2);return r+o+n+s}const Mvi=Rvi;var jEt=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},yon=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Nvi=function(e,n){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return jEt(e,n);var s;switch(a){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",jEt(a,n)).replace("{{time}}",yon(o,n))},Ivi={p:yon,P:Nvi};const fze=Ivi;var Pvi=["D","DD"],Ovi=["YY","YYYY"];function bon(t){return Pvi.indexOf(t)!==-1}function xon(t){return Ovi.indexOf(t)!==-1}function kAe(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Lvi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Bvi=function(e,n,r){var a,o=Lvi[e];return typeof o=="string"?a=o:n===1?a=o.one:a=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const Dvi=Bvi;function bOe(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var $vi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Fvi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jvi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hvi={date:bOe({formats:$vi,defaultWidth:"full"}),time:bOe({formats:Fvi,defaultWidth:"full"}),dateTime:bOe({formats:jvi,defaultWidth:"full"})};const Uvi=Hvi;var zvi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gvi=function(e,n,r,a){return zvi[e]};const Vvi=Gvi;function YQ(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;a=t.formattingValues[s]||t.formattingValues[o]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;a=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return a[u]}}var Kvi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wvi={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Qvi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qvi={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Yvi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Jvi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zvi=function(e,n){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Xvi={ordinalNumber:Zvi,era:YQ({values:Kvi,defaultWidth:"wide"}),quarter:YQ({values:Wvi,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:YQ({values:Qvi,defaultWidth:"wide"}),day:YQ({values:qvi,defaultWidth:"wide"}),dayPeriod:YQ({values:Yvi,defaultWidth:"wide",formattingValues:Jvi,defaultFormattingWidth:"wide"})};const e0i=Xvi;function JQ(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;var s=o[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?n0i(l,function(h){return h.test(s)}):t0i(l,function(h){return h.test(s)}),u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function t0i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function n0i(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function r0i(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var a=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var l=e.slice(a.length);return{value:s,rest:l}}}var i0i=/^(\d+)(th|st|nd|rd)?/i,a0i=/\d+/i,o0i={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s0i={any:[/^b/i,/^(a|c)/i]},l0i={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c0i={any:[/1/i,/2/i,/3/i,/4/i]},u0i={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},d0i={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h0i={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},f0i={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p0i={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m0i={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g0i={ordinalNumber:r0i({matchPattern:i0i,parsePattern:a0i,valueCallback:function(e){return parseInt(e,10)}}),era:JQ({matchPatterns:o0i,defaultMatchWidth:"wide",parsePatterns:s0i,defaultParseWidth:"any"}),quarter:JQ({matchPatterns:l0i,defaultMatchWidth:"wide",parsePatterns:c0i,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:JQ({matchPatterns:u0i,defaultMatchWidth:"wide",parsePatterns:d0i,defaultParseWidth:"any"}),day:JQ({matchPatterns:h0i,defaultMatchWidth:"wide",parsePatterns:f0i,defaultParseWidth:"any"}),dayPeriod:JQ({matchPatterns:p0i,defaultMatchWidth:"any",parsePatterns:m0i,defaultParseWidth:"any"})};const v0i=g0i;var A0i={code:"en-US",formatDistance:Dvi,formatLong:Uvi,formatRelative:Vvi,localize:e0i,match:v0i,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Eon=A0i;var y0i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b0i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,x0i=/^'([^]*?)'?$/,E0i=/''/g,S0i=/[a-zA-Z]/;function pze(t,e,n){var r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x;ti(2,arguments);var w=String(e),_=i9(),C=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:_.locale)!==null&&r!==void 0?r:Eon,R=Ss((o=(s=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:_.firstWeekContainsDate)!==null&&s!==void 0?s:(h=_.locale)===null||h===void 0||(f=h.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Ss((p=(m=(g=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(A=n.locale)===null||A===void 0||(y=A.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&g!==void 0?g:_.weekStartsOn)!==null&&m!==void 0?m:(S=_.locale)===null||S===void 0||(x=S.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var P=Gi(t);if(!Nne(P))throw new RangeError("Invalid time value");var N=SAe(P),L=mon(P,N),I={firstWeekContainsDate:R,weekStartsOn:k,locale:C,_originalDate:P},b=w.match(b0i).map(function(T){var M=T[0];if(M==="p"||M==="P"){var D=fze[M];return D(T,C.formatLong)}return T}).join("").match(y0i).map(function(T){if(T==="''")return"'";var M=T[0];if(M==="'")return w0i(T);var D=Mvi[M];if(D)return!(n!=null&&n.useAdditionalWeekYearTokens)&&xon(T)&&kAe(T,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&bon(T)&&kAe(T,e,String(t)),D(L,T,C.localize,I);if(M.match(S0i))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return T}).join("");return b}function w0i(t){var e=t.match(x0i);return e?e[1].replace(E0i,"'"):t}function _0i(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function HEt(t){ti(1,arguments);var e=Gi(t),n=e.getDate();return n}function T0i(t){ti(1,arguments);var e=Gi(t),n=e.getDay();return n}function C0i(t){ti(1,arguments);var e=Gi(t),n=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function S2(t){ti(1,arguments);var e=Gi(t),n=e.getHours();return n}var k0i=6048e5;function R0i(t){ti(1,arguments);var e=Gi(t),n=EAe(e).getTime()-mvi(e).getTime();return Math.round(n/k0i)+1}function w2(t){ti(1,arguments);var e=Gi(t),n=e.getMinutes();return n}function dv(t){ti(1,arguments);var e=Gi(t),n=e.getMonth();return n}function UEt(t){ti(1,arguments);var e=Gi(t),n=e.getSeconds();return n}function mze(t){ti(1,arguments);var e=Gi(t),n=e.getTime();return n}function Ns(t){return ti(1,arguments),Gi(t).getFullYear()}function vP(t,e){ti(2,arguments);var n=Gi(t),r=Gi(e);return n.getTime()>r.getTime()}function V3(t,e){ti(2,arguments);var n=Gi(t),r=Gi(e);return n.getTime()<r.getTime()}function M0i(t,e){ti(2,arguments);var n=Gi(t),r=Gi(e);return n.getTime()===r.getTime()}function gze(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Son(t,e){if(t){if(typeof t=="string")return gze(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gze(t,e):void 0}}function zEt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Son(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return s=u.done,u},e:function(u){l=!0,o=u},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw o}}}}function Ml(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fve(t,e)}function RAe(t){return RAe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RAe(t)}function won(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(won=function(){return!!t})()}function N0i(t,e){if(e&&(Ux(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pi(t)}function Nl(t){var e=won();return function(){var n,r=RAe(t);if(e){var a=RAe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return N0i(this,n)}}function ul(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GEt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cqt(r.key),r)}}function Gs(t,e,n){return e&&GEt(t.prototype,e),n&&GEt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function xi(t,e,n){return(e=cqt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var I0i=10,_on=function(){function t(){ul(this,t),xi(this,"priority",void 0),xi(this,"subPriority",0)}return Gs(t,[{key:"validate",value:function(n,r){return!0}}]),t}(),P0i=function(t){Ml(n,t);var e=Nl(n);function n(r,a,o,s,l){var c;return ul(this,n),c=e.call(this),c.value=r,c.validateValue=a,c.setValue=o,c.priority=s,l&&(c.subPriority=l),c}return Gs(n,[{key:"validate",value:function(a,o){return this.validateValue(a,this.value,o)}},{key:"set",value:function(a,o,s){return this.setValue(a,o,this.value,s)}}]),n}(_on),O0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",I0i),xi(pi(r),"subPriority",-1),r}return Gs(n,[{key:"set",value:function(a,o){if(o.timestampIsSet)return a;var s=new Date(0);return s.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),s.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),s}}]),n}(_on),lc=function(){function t(){ul(this,t),xi(this,"incompatibleTokens",void 0),xi(this,"priority",void 0),xi(this,"subPriority",void 0)}return Gs(t,[{key:"run",value:function(n,r,a,o){var s=this.parse(n,r,a,o);return s?{setter:new P0i(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,a){return!0}}]),t}(),L0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",140),xi(pi(r),"incompatibleTokens",["R","u","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"G":case"GG":case"GGG":return s.era(a,{width:"abbreviated"})||s.era(a,{width:"narrow"});case"GGGGG":return s.era(a,{width:"narrow"});case"GGGG":default:return s.era(a,{width:"wide"})||s.era(a,{width:"abbreviated"})||s.era(a,{width:"narrow"})}}},{key:"set",value:function(a,o,s){return o.era=s,a.setUTCFullYear(s,0,1),a.setUTCHours(0,0,0,0),a}}]),n}(lc),Vh={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},FT={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Kh(t,e){return t&&{value:e(t.value),rest:t.rest}}function Od(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function jT(t,e){var n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};var r=n[1]==="+"?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(a*xnt+o*bnt+s*Avi),rest:e.slice(n[0].length)}}function Ton(t){return Od(Vh.anyDigitsSigned,t)}function gh(t,e){switch(t){case 1:return Od(Vh.singleDigit,e);case 2:return Od(Vh.twoDigits,e);case 3:return Od(Vh.threeDigits,e);case 4:return Od(Vh.fourDigits,e);default:return Od(new RegExp("^\\d{1,"+t+"}"),e)}}function MAe(t,e){switch(t){case 1:return Od(Vh.singleDigitSigned,e);case 2:return Od(Vh.twoDigitsSigned,e);case 3:return Od(Vh.threeDigitsSigned,e);case 4:return Od(Vh.fourDigitsSigned,e);default:return Od(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Snt(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Con(t,e){var n=e>0,r=n?e:1-e,a;if(r<=50)a=t||100;else{var o=r+50,s=Math.floor(o/100)*100,l=t>=o%100;a=t+s-(l?100:0)}return n?a:1-a}function kon(t){return t%400===0||t%4===0&&t%100!==0}var B0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",130),xi(pi(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){var l=function(u){return{year:u,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Kh(gh(4,a),l);case"yo":return Kh(s.ordinalNumber(a,{unit:"year"}),l);default:return Kh(gh(o.length,a),l)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,s){var l=a.getUTCFullYear();if(s.isTwoDigitYear){var c=Con(s.year,l);return a.setUTCFullYear(c,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in o)||o.era===1?s.year:1-s.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),n}(lc),D0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",130),xi(pi(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){var l=function(u){return{year:u,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Kh(gh(4,a),l);case"Yo":return Kh(s.ordinalNumber(a,{unit:"year"}),l);default:return Kh(gh(o.length,a),l)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,s,l){var c=Ent(a,l);if(s.isTwoDigitYear){var u=Con(s.year,c);return a.setUTCFullYear(u,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),F6(a,l)}var d=!("era"in o)||o.era===1?s.year:1-s.year;return a.setUTCFullYear(d,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),F6(a,l)}}]),n}(lc),$0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",130),xi(pi(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o){return MAe(o==="R"?4:o.length,a)}},{key:"set",value:function(a,o,s){var l=new Date(0);return l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0),zU(l)}}]),n}(lc),F0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",130),xi(pi(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o){return MAe(o==="u"?4:o.length,a)}},{key:"set",value:function(a,o,s){return a.setUTCFullYear(s,0,1),a.setUTCHours(0,0,0,0),a}}]),n}(lc),j0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",120),xi(pi(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"Q":case"QQ":return gh(o.length,a);case"Qo":return s.ordinalNumber(a,{unit:"quarter"});case"QQQ":return s.quarter(a,{width:"abbreviated",context:"formatting"})||s.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(a,{width:"wide",context:"formatting"})||s.quarter(a,{width:"abbreviated",context:"formatting"})||s.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,s){return a.setUTCMonth((s-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n}(lc),H0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",120),xi(pi(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"q":case"qq":return gh(o.length,a);case"qo":return s.ordinalNumber(a,{unit:"quarter"});case"qqq":return s.quarter(a,{width:"abbreviated",context:"standalone"})||s.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(a,{width:"wide",context:"standalone"})||s.quarter(a,{width:"abbreviated",context:"standalone"})||s.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,s){return a.setUTCMonth((s-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n}(lc),U0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),xi(pi(r),"priority",110),r}return Gs(n,[{key:"parse",value:function(a,o,s){var l=function(u){return u-1};switch(o){case"M":return Kh(Od(Vh.month,a),l);case"MM":return Kh(gh(2,a),l);case"Mo":return Kh(s.ordinalNumber(a,{unit:"month"}),l);case"MMM":return s.month(a,{width:"abbreviated",context:"formatting"})||s.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(a,{width:"wide",context:"formatting"})||s.month(a,{width:"abbreviated",context:"formatting"})||s.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,s){return a.setUTCMonth(s,1),a.setUTCHours(0,0,0,0),a}}]),n}(lc),z0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",110),xi(pi(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){var l=function(u){return u-1};switch(o){case"L":return Kh(Od(Vh.month,a),l);case"LL":return Kh(gh(2,a),l);case"Lo":return Kh(s.ordinalNumber(a,{unit:"month"}),l);case"LLL":return s.month(a,{width:"abbreviated",context:"standalone"})||s.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(a,{width:"wide",context:"standalone"})||s.month(a,{width:"abbreviated",context:"standalone"})||s.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,s){return a.setUTCMonth(s,1),a.setUTCHours(0,0,0,0),a}}]),n}(lc);function G0i(t,e,n){ti(2,arguments);var r=Gi(t),a=Ss(e),o=Aon(r,n)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var V0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",100),xi(pi(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"w":return Od(Vh.week,a);case"wo":return s.ordinalNumber(a,{unit:"week"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,s,l){return F6(G0i(a,s,l),l)}}]),n}(lc);function K0i(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e),a=von(n)-r;return n.setUTCDate(n.getUTCDate()-a*7),n}var W0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",100),xi(pi(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"I":return Od(Vh.week,a);case"Io":return s.ordinalNumber(a,{unit:"week"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,s){return zU(K0i(a,s))}}]),n}(lc),Q0i=[31,28,31,30,31,30,31,31,30,31,30,31],q0i=[31,29,31,30,31,30,31,31,30,31,30,31],Y0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",90),xi(pi(r),"subPriority",1),xi(pi(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"d":return Od(Vh.date,a);case"do":return s.ordinalNumber(a,{unit:"date"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){var s=a.getUTCFullYear(),l=kon(s),c=a.getUTCMonth();return l?o>=1&&o<=q0i[c]:o>=1&&o<=Q0i[c]}},{key:"set",value:function(a,o,s){return a.setUTCDate(s),a.setUTCHours(0,0,0,0),a}}]),n}(lc),J0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",90),xi(pi(r),"subpriority",1),xi(pi(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"D":case"DD":return Od(Vh.dayOfYear,a);case"Do":return s.ordinalNumber(a,{unit:"date"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){var s=a.getUTCFullYear(),l=kon(s);return l?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,s){return a.setUTCMonth(0,s),a.setUTCHours(0,0,0,0),a}}]),n}(lc);function wnt(t,e,n){var r,a,o,s,l,c,u,d;ti(2,arguments);var h=i9(),f=Ss((r=(a=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(l=n.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&a!==void 0?a:(u=h.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Gi(t),m=Ss(e),g=p.getUTCDay(),v=m%7,A=(v+7)%7,y=(A<f?7:0)+m-g;return p.setUTCDate(p.getUTCDate()+y),p}var Z0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",90),xi(pi(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"E":case"EE":case"EEE":return s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(a,{width:"wide",context:"formatting"})||s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,s,l){return a=wnt(a,s,l),a.setUTCHours(0,0,0,0),a}}]),n}(lc),X0i=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",90),xi(pi(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s,l){var c=function(d){var h=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+h};switch(o){case"e":case"ee":return Kh(gh(o.length,a),c);case"eo":return Kh(s.ordinalNumber(a,{unit:"day"}),c);case"eee":return s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"});case"eeeee":return s.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(a,{width:"wide",context:"formatting"})||s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,s,l){return a=wnt(a,s,l),a.setUTCHours(0,0,0,0),a}}]),n}(lc),eAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",90),xi(pi(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s,l){var c=function(d){var h=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+h};switch(o){case"c":case"cc":return Kh(gh(o.length,a),c);case"co":return Kh(s.ordinalNumber(a,{unit:"day"}),c);case"ccc":return s.day(a,{width:"abbreviated",context:"standalone"})||s.day(a,{width:"short",context:"standalone"})||s.day(a,{width:"narrow",context:"standalone"});case"ccccc":return s.day(a,{width:"narrow",context:"standalone"});case"cccccc":return s.day(a,{width:"short",context:"standalone"})||s.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(a,{width:"wide",context:"standalone"})||s.day(a,{width:"abbreviated",context:"standalone"})||s.day(a,{width:"short",context:"standalone"})||s.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,s,l){return a=wnt(a,s,l),a.setUTCHours(0,0,0,0),a}}]),n}(lc);function tAi(t,e){ti(2,arguments);var n=Ss(e);n%7===0&&(n=n-7);var r=1,a=Gi(t),o=a.getUTCDay(),s=n%7,l=(s+7)%7,c=(l<r?7:0)+n-o;return a.setUTCDate(a.getUTCDate()+c),a}var nAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",90),xi(pi(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){var l=function(u){return u===0?7:u};switch(o){case"i":case"ii":return gh(o.length,a);case"io":return s.ordinalNumber(a,{unit:"day"});case"iii":return Kh(s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"}),l);case"iiiii":return Kh(s.day(a,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Kh(s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Kh(s.day(a,{width:"wide",context:"formatting"})||s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(a,o){return o>=1&&o<=7}},{key:"set",value:function(a,o,s){return a=tAi(a,s),a.setUTCHours(0,0,0,0),a}}]),n}(lc),rAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",80),xi(pi(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"a":case"aa":case"aaa":return s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(a,{width:"wide",context:"formatting"})||s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,s){return a.setUTCHours(Snt(s),0,0,0),a}}]),n}(lc),iAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",80),xi(pi(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"b":case"bb":case"bbb":return s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(a,{width:"wide",context:"formatting"})||s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,s){return a.setUTCHours(Snt(s),0,0,0),a}}]),n}(lc),aAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",80),xi(pi(r),"incompatibleTokens",["a","b","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"B":case"BB":case"BBB":return s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(a,{width:"wide",context:"formatting"})||s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,s){return a.setUTCHours(Snt(s),0,0,0),a}}]),n}(lc),oAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",70),xi(pi(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"h":return Od(Vh.hour12h,a);case"ho":return s.ordinalNumber(a,{unit:"hour"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=12}},{key:"set",value:function(a,o,s){var l=a.getUTCHours()>=12;return l&&s<12?a.setUTCHours(s+12,0,0,0):!l&&s===12?a.setUTCHours(0,0,0,0):a.setUTCHours(s,0,0,0),a}}]),n}(lc),sAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",70),xi(pi(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"H":return Od(Vh.hour23h,a);case"Ho":return s.ordinalNumber(a,{unit:"hour"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=23}},{key:"set",value:function(a,o,s){return a.setUTCHours(s,0,0,0),a}}]),n}(lc),lAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",70),xi(pi(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"K":return Od(Vh.hour11h,a);case"Ko":return s.ordinalNumber(a,{unit:"hour"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,s){var l=a.getUTCHours()>=12;return l&&s<12?a.setUTCHours(s+12,0,0,0):a.setUTCHours(s,0,0,0),a}}]),n}(lc),cAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",70),xi(pi(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"k":return Od(Vh.hour24h,a);case"ko":return s.ordinalNumber(a,{unit:"hour"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=24}},{key:"set",value:function(a,o,s){var l=s<=24?s%24:s;return a.setUTCHours(l,0,0,0),a}}]),n}(lc),uAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",60),xi(pi(r),"incompatibleTokens",["t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"m":return Od(Vh.minute,a);case"mo":return s.ordinalNumber(a,{unit:"minute"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,s){return a.setUTCMinutes(s,0,0),a}}]),n}(lc),dAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",50),xi(pi(r),"incompatibleTokens",["t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o,s){switch(o){case"s":return Od(Vh.second,a);case"so":return s.ordinalNumber(a,{unit:"second"});default:return gh(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,s){return a.setUTCSeconds(s,0),a}}]),n}(lc),hAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",30),xi(pi(r),"incompatibleTokens",["t","T"]),r}return Gs(n,[{key:"parse",value:function(a,o){var s=function(c){return Math.floor(c*Math.pow(10,-o.length+3))};return Kh(gh(o.length,a),s)}},{key:"set",value:function(a,o,s){return a.setUTCMilliseconds(s),a}}]),n}(lc),fAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",10),xi(pi(r),"incompatibleTokens",["t","T","x"]),r}return Gs(n,[{key:"parse",value:function(a,o){switch(o){case"X":return jT(FT.basicOptionalMinutes,a);case"XX":return jT(FT.basic,a);case"XXXX":return jT(FT.basicOptionalSeconds,a);case"XXXXX":return jT(FT.extendedOptionalSeconds,a);case"XXX":default:return jT(FT.extended,a)}}},{key:"set",value:function(a,o,s){return o.timestampIsSet?a:new Date(a.getTime()-s)}}]),n}(lc),pAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",10),xi(pi(r),"incompatibleTokens",["t","T","X"]),r}return Gs(n,[{key:"parse",value:function(a,o){switch(o){case"x":return jT(FT.basicOptionalMinutes,a);case"xx":return jT(FT.basic,a);case"xxxx":return jT(FT.basicOptionalSeconds,a);case"xxxxx":return jT(FT.extendedOptionalSeconds,a);case"xxx":default:return jT(FT.extended,a)}}},{key:"set",value:function(a,o,s){return o.timestampIsSet?a:new Date(a.getTime()-s)}}]),n}(lc),mAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",40),xi(pi(r),"incompatibleTokens","*"),r}return Gs(n,[{key:"parse",value:function(a){return Ton(a)}},{key:"set",value:function(a,o,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(lc),gAi=function(t){Ml(n,t);var e=Nl(n);function n(){var r;ul(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),xi(pi(r),"priority",20),xi(pi(r),"incompatibleTokens","*"),r}return Gs(n,[{key:"parse",value:function(a){return Ton(a)}},{key:"set",value:function(a,o,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(lc),vAi={G:new L0i,y:new B0i,Y:new D0i,R:new $0i,u:new F0i,Q:new j0i,q:new H0i,M:new U0i,L:new z0i,w:new V0i,I:new W0i,d:new Y0i,D:new J0i,E:new Z0i,e:new X0i,c:new eAi,i:new nAi,a:new rAi,b:new iAi,B:new aAi,h:new oAi,H:new sAi,K:new lAi,k:new cAi,m:new uAi,s:new dAi,S:new hAi,X:new fAi,x:new pAi,t:new mAi,T:new gAi},AAi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yAi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bAi=/^'([^]*?)'?$/,xAi=/''/g,EAi=/\S/,SAi=/[a-zA-Z]/;function xOe(t,e,n,r){var a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w;ti(3,arguments);var _=String(t),C=String(e),R=i9(),k=(a=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:R.locale)!==null&&a!==void 0?a:Eon;if(!k.match)throw new RangeError("locale must contain match property");var P=Ss((s=(l=(c=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(d=r.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&c!==void 0?c:R.firstWeekContainsDate)!==null&&l!==void 0?l:(f=R.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=Ss((m=(g=(v=(A=r==null?void 0:r.weekStartsOn)!==null&&A!==void 0?A:r==null||(y=r.locale)===null||y===void 0||(S=y.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&v!==void 0?v:R.weekStartsOn)!==null&&g!==void 0?g:(x=R.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(C==="")return _===""?Gi(n):new Date(NaN);var L={firstWeekContainsDate:P,weekStartsOn:N,locale:k},I=[new O0i],b=C.match(yAi).map(function(X){var te=X[0];if(te in fze){var J=fze[te];return J(X,k.formatLong)}return X}).join("").match(AAi),T=[],M=zEt(b),D;try{var B=function(){var te=D.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&xon(te)&&kAe(te,C,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&bon(te)&&kAe(te,C,t);var J=te[0],ne=vAi[J];if(ne){var ie=ne.incompatibleTokens;if(Array.isArray(ie)){var he=T.find(function(ce){return ie.includes(ce.token)||ce.token===J});if(he)throw new RangeError("The format string mustn't contain `".concat(he.fullToken,"` and `").concat(te,"` at the same time"))}else if(ne.incompatibleTokens==="*"&&T.length>0)throw new RangeError("The format string mustn't contain `".concat(te,"` and any other token at the same time"));T.push({token:J,fullToken:te});var de=ne.run(_,te,k.match,L);if(!de)return{v:new Date(NaN)};I.push(de.setter),_=de.rest}else{if(J.match(SAi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");if(te==="''"?te="'":J==="'"&&(te=wAi(te)),_.indexOf(te)===0)_=_.slice(te.length);else return{v:new Date(NaN)}}};for(M.s();!(D=M.n()).done;){var j=B();if(Ux(j)==="object")return j.v}}catch(X){M.e(X)}finally{M.f()}if(_.length>0&&EAi.test(_))return new Date(NaN);var H=I.map(function(X){return X.priority}).sort(function(X,te){return te-X}).filter(function(X,te,J){return J.indexOf(X)===te}).map(function(X){return I.filter(function(te){return te.priority===X}).sort(function(te,J){return J.subPriority-te.subPriority})}).map(function(X){return X[0]}),U=Gi(n);if(isNaN(U.getTime()))return new Date(NaN);var $=mon(U,SAe(U)),z={},Z=zEt(H),K;try{for(Z.s();!(K=Z.n()).done;){var Q=K.value;if(!Q.validate($,L))return new Date(NaN);var ee=Q.set($,z,L);Array.isArray(ee)?($=ee[0],_0i(z,ee[1])):$=ee}}catch(X){Z.e(X)}finally{Z.f()}return $}function wAi(t){return t.match(bAi)[1].replace(xAi,"'")}function _Ai(t,e){ti(2,arguments);var n=Gi(t),r=Gi(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function TAi(t,e){ti(2,arguments);var n=hze(t),r=hze(e);return n.getTime()===r.getTime()}function CAi(t,e){ti(2,arguments);var n=Gi(t),r=Gi(e);return n.getFullYear()===r.getFullYear()}function Ine(t,e){ti(2,arguments);var n=Gi(t).getTime(),r=Gi(e.start).getTime(),a=Gi(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return n>=r&&n<=a}function kAi(t,e){ti(2,arguments);var n=Ss(e);return QG(t,-n)}function RAi(t,e){var n;ti(1,arguments);var r=Ss((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var a=PAi(t),o;if(a.date){var s=OAi(a.date,r);o=LAi(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l=o.getTime(),c=0,u;if(a.time&&(c=BAi(a.time),isNaN(c)))return new Date(NaN);if(a.timezone){if(u=DAi(a.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}return new Date(l+c+u)}var Jce={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},MAi=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,NAi=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IAi=/^([+-])(\d{2})(?::?(\d{2}))?$/;function PAi(t){var e={},n=t.split(Jce.dateTimeDelimiter),r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Jce.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Jce.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var a=Jce.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function OAi(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?a:o*100,restDateString:t.slice((r[1]||r[2]).length)}}function LAi(t,e){if(e===null)return new Date(NaN);var n=t.match(MAi);if(!n)return new Date(NaN);var r=!!n[4],a=ZQ(n[1]),o=ZQ(n[2])-1,s=ZQ(n[3]),l=ZQ(n[4]),c=ZQ(n[5])-1;if(r)return UAi(e,l,c)?$Ai(e,l,c):new Date(NaN);var u=new Date(0);return!jAi(e,o,s)||!HAi(e,a)?new Date(NaN):(u.setUTCFullYear(e,o,Math.max(a,s)),u)}function ZQ(t){return t?parseInt(t):1}function BAi(t){var e=t.match(NAi);if(!e)return NaN;var n=EOe(e[1]),r=EOe(e[2]),a=EOe(e[3]);return zAi(n,r,a)?n*xnt+r*bnt+a*1e3:NaN}function EOe(t){return t&&parseFloat(t.replace(",","."))||0}function DAi(t){if(t==="Z")return 0;var e=t.match(IAi);if(!e)return 0;var n=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return GAi(r,a)?n*(r*xnt+a*bnt):NaN}function $Ai(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var a=r.getUTCDay()||7,o=(e-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}var FAi=[31,null,31,30,31,30,31,31,30,31,30,31];function Ron(t){return t%400===0||t%4===0&&t%100!==0}function jAi(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(FAi[e]||(Ron(t)?29:28))}function HAi(t,e){return e>=1&&e<=(Ron(t)?366:365)}function UAi(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function zAi(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function GAi(t,e){return e>=0&&e<=59}function v0(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e),a=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(a,r,15),s.setHours(0,0,0,0);var l=C0i(s);return n.setMonth(r,Math.min(o,l)),n}function VAi(t,e){if(ti(2,arguments),Ux(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=Gi(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=v0(n,e.month)),e.date!=null&&n.setDate(Ss(e.date)),e.hours!=null&&n.setHours(Ss(e.hours)),e.minutes!=null&&n.setMinutes(Ss(e.minutes)),e.seconds!=null&&n.setSeconds(Ss(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(Ss(e.milliseconds)),n)}function Lme(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e);return n.setHours(r),n}function Bme(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e);return n.setMinutes(r),n}function w$(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e),a=Math.floor(n.getMonth()/3)+1,o=r-a;return v0(n,n.getMonth()+o*3)}function KAi(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e);return n.setSeconds(r),n}function SR(t,e){ti(2,arguments);var n=Gi(t),r=Ss(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function GU(t,e){ti(2,arguments);var n=Ss(e);return Ow(t,-n)}function WAi(t,e){ti(2,arguments);var n=Ss(e);return hon(t,-n)}function VEt(t,e){ti(2,arguments);var n=Ss(e);return _Ae(t,-n)}function Pne(t,e){ti(2,arguments);var n=Ss(e);return UU(t,-n)}var QAi=function(t){nA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.database=con(),n}return e.prototype.date=function(n){return this.datetime(cr(cr({},n),{format:"yyyy-MM-dd"}))},e.prototype.time=function(n){var r=gl({short:!1},n);return this.datetime(cr(cr({},n),{format:r.short?"HH:mm:ss":"HH:mm:ssXXX"}))},e.prototype.datetime=function(n){var r=gl({format:"yyyy-MM-dd'T'HH:mm:ssXXX"},n),a=this.timestamp(r);return pze(a,r.format)},e.prototype.timestamp=function(n){var r=gl({min:0,max:new Date().getTime()},n);return this.natural(r)},e.prototype.weekday=function(n){var r=gl({abbr:!1,locale:"en-US"},n),a=r.locale,o=r.abbr,s=this.database.weekday[a],l=this.pickone(s);return o&&l[1]||l[0]},e.prototype.month=function(n){var r=gl({abbr:!1,locale:"en-US"},n),a=r.locale,o=r.abbr,s=this.database.month[a],l=this.pickone(s);return o&&l[1]||l[0]},e}(WG);function SOe(t){t===void 0&&(t={});var e=gl({grayscale:!1,min:0,max:255},t),n=e.grayscale,r=e.max,a=e.min;di(a>=0&&r<=255,"min and max must between in [0, 255]");var o=a,s=r,l=t.minR===void 0?a:t.minR,c=t.maxR===void 0?r:t.maxR,u=t.minG===void 0?a:t.minG,d=t.maxG===void 0?r:t.maxG,h=t.minB===void 0?a:t.minB,f=t.maxB===void 0?r:t.maxB;return n&&a===0&&r===255&&l!==void 0&&l!==void 0&&u!==void 0&&d!==void 0&&h!==void 0&&f!==void 0&&(o=(l+u+u)/3,s=(c+d+f)/3),n?new Array(3).fill(this.natural({min:o,max:s})):[this.natural({min:l,max:c}),this.natural({min:u,max:d}),this.natural({min:h,max:f})]}function KEt(t){var e=gl({minH:0,maxH:360,minS:0,maxS:100,minL:0,maxL:100},t);return[this.natural({min:e.minH,max:e.maxH}),this.float({min:e.minS,max:e.maxS})+"%",this.float({min:e.minS,max:e.maxS})+"%"]}var qAi=function(t){nA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.database=lon(),n}return e.prototype.rgb=function(n){var r=gl({casing:"lower"},n).casing,a=SOe.call(this,n),o="rgb("+a.join(",")+")";return r==="lower"?o:o.toUpperCase()},e.prototype.rgba=function(n){var r=gl({casing:"lower",minA:0,maxA:1},n),a=r.casing,o=r.maxA,s=r.minA,l=this.float({min:s,max:o}),c=SOe.call(this,n),u="rgba("+c.concat(l).join(",")+")";return a==="lower"?u:u.toUpperCase()},e.prototype.hsl=function(n){var r=gl({casing:"lower"},n).casing,a="hsl("+KEt.call(this,n).join(",")+")";return r==="lower"?a:a.toUpperCase()},e.prototype.hsla=function(n){var r=gl({casing:"lower",minA:0,maxA:1},n),a=r.casing,o=r.maxA,s=r.minA,l=this.float({min:s,max:o}),c="hsla("+KEt.call(this,n).concat(l).join(",")+")";return a==="lower"?c:c.toUpperCase()},e.prototype.colorName=function(){return this.pickone(this.database.colorKeywords)},e.prototype.hexColor=function(n){var r=gl({prefix:!0,casing:"lower"},n),a=r.prefix,o=r.casing,s=SOe.call(this,n),l=s.map(function(u){return u.toString(16).padStart(2,"0")}).join(""),c=o==="lower"?l:l.toUpperCase();return a?"#"+c:c},e.prototype.decimalColor=function(n){var r=this.hexColor(cr(cr({},n),{prefix:!1}));return parseInt(r,16)},e}(WG),YAi=function(t){nA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.database=cr(cr({},Ant()),son()),n}return e.prototype.tld=function(){return this.pickone(this.database.tld)},e.prototype.domain=function(n){return this.word()+"."+(n&&n.tld||this.tld())},e.prototype.url=function(n){var r=gl({protocol:"http",domain:this.domain(n),domainPrefix:"",path:this.word(),extensions:[]},n),a=r.protocol,o=r.domainPrefix,s=r.path,l=r.extensions.length>0?"."+this.pickone(r.extensions):"",c=o?o+".opts.domain":r.domain;return a+"://"+c+"/"+s+l},e.prototype.ipv4=function(){return this.natural({min:1,max:254})+"."+this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({min:1,max:254})},e.prototype.ipv6=function(){var n=this,r=function(){return n.n(function(){return n.natural({min:0,max:15}).toString(16)},4).join("")},a=this.n(r,8);return a.join(":")},e.prototype.email=function(n){return n===void 0&&(n={}),this.word({length:n.length})+"@"+(n.domain||this.domain())},e}(uon),JAi=90,ZAi=-90,XAi=180,e1i=-180,t1i=function(t){nA(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.longtitude=function(n){var r=gl({max:XAi,min:e1i,fixed:7},n);return di(r.min>=-180&&r.max<=180,"longtitude must between  [-180, 180]"),this.float(r)},e.prototype.latitude=function(n){var r=gl({max:JAi,min:ZAi,fixed:7},n);return di(r.min>=-90&&r.max<=90,"latitude must between  [-90, 90]"),this.float(r)},e.prototype.coordinates=function(n){var r=gl({},n),a=r.minLat,o=r.maxLat,s=r.minLong,l=r.maxLong,c=r.fixed;return[this.longtitude({min:s,max:l,fixed:c}),this.latitude({min:a,max:o,fixed:c})].join(", ")},e}(WG);const Zce=[{c:[{c:[{i:"340803",n:"大观区"},{i:"340822",n:"怀宁县"},{i:"340824",n:"潜山县"},{i:"340826",n:"宿松县"},{i:"340825",n:"太湖县"},{i:"340881",n:"桐城市"},{i:"340827",n:"望江县"},{i:"340802",n:"迎江区"},{i:"340811",n:"宜秀区"},{i:"340828",n:"岳西县"},{i:"340823",n:"枞阳县"}],i:"340800",n:"安庆市"},{c:[{i:"340303",n:"蚌山区"},{i:"340323",n:"固镇县"},{i:"340311",n:"淮上区"},{i:"340321",n:"怀远县"},{i:"340302",n:"龙子湖区"},{i:"340322",n:"五河县"},{i:"340304",n:"禹会区"}],i:"340300",n:"蚌埠市"},{c:[{i:"341623",n:"利辛县"},{i:"341622",n:"蒙城县"},{i:"341602",n:"谯城区"},{i:"341621",n:"涡阳县"}],i:"341600",n:"亳州市"},{c:[{i:"341423",n:"含山县"},{i:"341424",n:"和县"},{i:"341402",n:"居巢区"},{i:"341421",n:"庐江县"},{i:"341422",n:"无为县"}],i:"341400",n:"巢湖市"},{c:[{i:"341721",n:"东至县"},{i:"341702",n:"贵池区"},{i:"341723",n:"青阳县"},{i:"341722",n:"石台县"}],i:"341700",n:"池州市"},{c:[{i:"341125",n:"定远县"},{i:"341126",n:"凤阳县"},{i:"341122",n:"来安县"},{i:"341102",n:"琅琊区"},{i:"341182",n:"明光市"},{i:"341103",n:"南谯区"},{i:"341124",n:"全椒县"},{i:"341181",n:"天长市"}],i:"341100",n:"滁州市"},{c:[{i:"341225",n:"阜南县"},{i:"341282",n:"界首市"},{i:"341221",n:"临泉县"},{i:"341222",n:"太和县"},{i:"341203",n:"颍东区"},{i:"341204",n:"颍泉区"},{i:"341226",n:"颍上县"},{i:"341202",n:"颍州区"}],i:"341200",n:"阜阳市"},{c:[{i:"340111",n:"包河区"},{i:"340122",n:"肥东县"},{i:"340123",n:"肥西县"},{i:"340151",n:"高新区"},{i:"340103",n:"庐阳区"},{i:"340104",n:"蜀山区"},{i:"340102",n:"瑶海区"},{i:"340121",n:"长丰县"},{i:"340191",n:"中区"}],i:"340100",n:"合肥市"},{c:[{i:"340602",n:"杜集区"},{i:"340604",n:"烈山区"},{i:"340621",n:"濉溪县"},{i:"340603",n:"相山区"}],i:"340600",n:"淮北市"},{c:[{i:"340405",n:"八公山区"},{i:"340402",n:"大通区"},{i:"340421",n:"凤台县"},{i:"340406",n:"潘集区"},{i:"340403",n:"田家庵区"},{i:"340404",n:"谢家集区"}],i:"340400",n:"淮南市"},{c:[{i:"341003",n:"黄山区"},{i:"341004",n:"徽州区"},{i:"341024",n:"祁门县"},{i:"341021",n:"歙县"},{i:"341002",n:"屯溪区"},{i:"341022",n:"休宁县"},{i:"341023",n:"黟县"}],i:"341000",n:"黄山市"},{c:[{i:"341522",n:"霍邱县"},{i:"341525",n:"霍山县"},{i:"341502",n:"金安区"},{i:"341524",n:"金寨县"},{i:"341521",n:"寿县"},{i:"341523",n:"舒城县"},{i:"341503",n:"裕安区"}],i:"341500",n:"六安市"},{c:[{i:"340521",n:"当涂县"},{i:"340503",n:"花山区"},{i:"340502",n:"金家庄区"},{i:"340504",n:"雨山区"}],i:"340500",n:"马鞍山市"},{c:[{i:"341321",n:"砀山县"},{i:"341323",n:"灵璧县"},{i:"341324",n:"泗县"},{i:"341322",n:"萧县"},{i:"341302",n:"埇桥区"}],i:"341300",n:"宿州市"},{c:[{i:"340711",n:"郊区"},{i:"340703",n:"狮子山区"},{i:"340702",n:"铜官山区"},{i:"340721",n:"铜陵县"}],i:"340700",n:"铜陵市"},{c:[{i:"340222",n:"繁昌县"},{i:"340202",n:"镜湖区"},{i:"340207",n:"鸠江区"},{i:"340223",n:"南陵县"},{i:"340208",n:"三山区"},{i:"340221",n:"芜湖县"},{i:"340203",n:"弋江区"}],i:"340200",n:"芜湖市"},{c:[{i:"341822",n:"广德县"},{i:"341825",n:"旌德县"},{i:"341823",n:"泾县"},{i:"341824",n:"绩溪县"},{i:"341821",n:"郎溪县"},{i:"341881",n:"宁国市"},{i:"341802",n:"宣州区"}],i:"341800",n:"宣城市"}],i:"340000",n:"安徽省"},{c:[{i:"820100",n:"澳门半岛"},{i:"820200",n:"离岛"}],i:"820000",n:"澳门特别行政区"},{c:[{c:[{i:"110114",n:"昌平区"},{i:"110105",n:"朝阳区"},{i:"110103",n:"崇文区"},{i:"110115",n:"大兴区"},{i:"110101",n:"东城区"},{i:"110111",n:"房山区"},{i:"110106",n:"丰台区"},{i:"110108",n:"海淀区"},{i:"110116",n:"怀柔区"},{i:"110109",n:"门头沟区"},{i:"110228",n:"密云县"},{i:"110117",n:"平谷区"},{i:"110107",n:"石景山区"},{i:"110113",n:"顺义区"},{i:"110112",n:"通州区"},{i:"110102",n:"西城区"},{i:"110104",n:"宣武区"},{i:"110229",n:"延庆县"}],i:"110100",n:"北京市"}],i:"110000",n:"北京"},{c:[{c:[{i:"500113",n:"巴南区"},{i:"500109",n:"北碚区"},{i:"500227",n:"璧山县"},{i:"500229",n:"城口县"},{i:"500104",n:"大渡口区"},{i:"500225",n:"大足县"},{i:"500231",n:"垫江县"},{i:"500230",n:"丰都县"},{i:"500236",n:"奉节县"},{i:"500102",n:"涪陵区"},{i:"500382",n:"合川区"},{i:"500105",n:"江北区"},{i:"500381",n:"江津市"},{i:"500107",n:"九龙坡区"},{i:"500234",n:"开县"},{i:"500228",n:"梁平县"},{i:"500108",n:"南岸区"},{i:"500384",n:"南川市"},{i:"500243",n:"彭水苗族土家族自治县"},{i:"500114",n:"黔江区"},{i:"500222",n:"綦江县"},{i:"500226",n:"荣昌县"},{i:"500106",n:"沙坪坝区"},{i:"500240",n:"石柱土家族自治县"},{i:"500111",n:"双桥区"},{i:"500224",n:"铜梁县"},{i:"500223",n:"潼南县"},{i:"500110",n:"万盛区"},{i:"500101",n:"万州区"},{i:"500232",n:"武隆县"},{i:"500237",n:"巫山县"},{i:"500238",n:"巫溪县"},{i:"500241",n:"秀山土家族苗族自治县"},{i:"500383",n:"永川市"},{i:"500242",n:"酉阳土家族苗族自治县"},{i:"500112",n:"渝北区"},{i:"500235",n:"云阳县"},{i:"500103",n:"渝中区"},{i:"500115",n:"长寿区"},{i:"500233",n:"忠县"}],i:"500100",n:"重庆市"}],i:"500000",n:"重庆"},{c:[{c:[{i:"350104",n:"仓山区"},{i:"350181",n:"福清市"},{i:"350102",n:"鼓楼区"},{i:"350111",n:"晋安区"},{i:"350122",n:"连江县"},{i:"350123",n:"罗源县"},{i:"350105",n:"马尾区"},{i:"350121",n:"闽侯县"},{i:"350124",n:"闽清县"},{i:"350128",n:"平潭县"},{i:"350103",n:"台江区"},{i:"350125",n:"永泰县"},{i:"350182",n:"长乐市"}],i:"350100",n:"福州市"},{c:[{i:"350825",n:"连城县"},{i:"350823",n:"上杭县"},{i:"350824",n:"武平县"},{i:"350802",n:"新罗区"},{i:"350822",n:"永定县"},{i:"350881",n:"漳平市"},{i:"350821",n:"长汀县"}],i:"350800",n:"龙岩市"},{c:[{i:"350723",n:"光泽县"},{i:"350783",n:"建瓯市"},{i:"350784",n:"建阳市"},{i:"350722",n:"浦城县"},{i:"350781",n:"邵武市"},{i:"350721",n:"顺昌县"},{i:"350724",n:"松溪县"},{i:"350782",n:"武夷山市"},{i:"350702",n:"延平区"},{i:"350725",n:"政和县"}],i:"350700",n:"南平市"},{c:[{i:"350981",n:"福安市"},{i:"350982",n:"福鼎市"},{i:"350922",n:"古田县"},{i:"350902",n:"蕉城区"},{i:"350923",n:"屏南县"},{i:"350924",n:"寿宁县"},{i:"350921",n:"霞浦县"},{i:"350926",n:"柘荣县"},{i:"350925",n:"周宁县"}],i:"350900",n:"宁德市"},{c:[{i:"350302",n:"城厢区"},{i:"350303",n:"涵江区"},{i:"350304",n:"荔城区"},{i:"350322",n:"仙游县"},{i:"350305",n:"秀屿区"}],i:"350300",n:"莆田市"},{c:[{i:"350524",n:"安溪县"},{i:"350526",n:"德化县"},{i:"350503",n:"丰泽区"},{i:"350521",n:"惠安县"},{i:"350582",n:"晋江市"},{i:"350527",n:"金门县"},{i:"350502",n:"鲤城区"},{i:"350504",n:"洛江区"},{i:"350583",n:"南安市"},{i:"350505",n:"泉港区"},{i:"350581",n:"石狮市"},{i:"350525",n:"永春县"}],i:"350500",n:"泉州市"},{c:[{i:"350425",n:"大田县"},{i:"350428",n:"将乐县"},{i:"350430",n:"建宁县"},{i:"350402",n:"梅列区"},{i:"350421",n:"明溪县"},{i:"350424",n:"宁化县"},{i:"350423",n:"清流县"},{i:"350403",n:"三元区"},{i:"350427",n:"沙县"},{i:"350429",n:"泰宁县"},{i:"350481",n:"永安市"},{i:"350426",n:"尤溪县"}],i:"350400",n:"三明市"},{c:[{i:"350205",n:"海沧区"},{i:"350206",n:"湖里区"},{i:"350211",n:"集美区"},{i:"350203",n:"思明区"},{i:"350212",n:"同安区"},{i:"350213",n:"翔安区"}],i:"350200",n:"厦门市"},{c:[{i:"350626",n:"东山县"},{i:"350629",n:"华安县"},{i:"350681",n:"龙海市"},{i:"350603",n:"龙文区"},{i:"350627",n:"南靖县"},{i:"350628",n:"平和县"},{i:"350602",n:"芗城区"},{i:"350622",n:"云霄县"},{i:"350623",n:"漳浦县"},{i:"350625",n:"长泰县"},{i:"350624",n:"诏安县"}],i:"350600",n:"漳州市"}],i:"350000",n:"福建省"},{c:[{c:[{i:"620402",n:"白银区"},{i:"620422",n:"会宁县"},{i:"620423",n:"景泰县"},{i:"620421",n:"靖远县"},{i:"620403",n:"平川区"}],i:"620400",n:"白银市"},{c:[{i:"621102",n:"安定区"},{i:"621124",n:"临洮县"},{i:"621122",n:"陇西县"},{i:"621126",n:"岷县"},{i:"621121",n:"通渭县"},{i:"621123",n:"渭源县"},{i:"621125",n:"漳县"}],i:"621100",n:"定西市"},{c:[{i:"623024",n:"迭部县"},{i:"623001",n:"合作市"},{i:"623021",n:"临潭县"},{i:"623026",n:"碌曲县"},{i:"623025",n:"玛曲县"},{i:"623027",n:"夏河县"},{i:"623023",n:"舟曲县"},{i:"623022",n:"卓尼县"}],i:"623000",n:"甘南藏族自治州"},{i:"620200",n:"嘉峪关市"},{c:[{i:"620302",n:"金川区"},{i:"620321",n:"永昌县"}],i:"620300",n:"金昌市"},{c:[{i:"620924",n:"阿克塞哈萨克族自治县"},{i:"620922",n:"安西县"},{i:"620982",n:"敦煌市"},{i:"620921",n:"金塔县"},{i:"620923",n:"肃北蒙古族自治县"},{i:"620902",n:"肃州区"},{i:"620981",n:"玉门市"}],i:"620900",n:"酒泉市"},{c:[{i:"620105",n:"安宁区"},{i:"620102",n:"城关区"},{i:"620122",n:"皋兰县"},{i:"620111",n:"红古区"},{i:"620103",n:"七里河区"},{i:"620104",n:"西固区"},{i:"620121",n:"永登县"},{i:"620123",n:"榆中县"}],i:"620100",n:"兰州市"},{c:[{i:"622926",n:"东乡族自治县"},{i:"622924",n:"广河县"},{i:"622925",n:"和政县"},{i:"622927",n:"积石山保安族东乡族撒拉族自治县"},{i:"622922",n:"康乐县"},{i:"622901",n:"临夏市"},{i:"622921",n:"临夏县"},{i:"622923",n:"永靖县"}],i:"622900",n:"临夏回族自治州"},{c:[{i:"621221",n:"成县"},{i:"621223",n:"宕昌县"},{i:"621227",n:"徽县"},{i:"621224",n:"康县"},{i:"621228",n:"两当县"},{i:"621226",n:"礼县"},{i:"621222",n:"文县"},{i:"621202",n:"武都区"},{i:"621225",n:"西和县"}],i:"621200",n:"陇南市"},{c:[{i:"620823",n:"崇信县"},{i:"620824",n:"华亭县"},{i:"620821",n:"泾川县"},{i:"620826",n:"静宁县"},{i:"620802",n:"崆峒区"},{i:"620822",n:"灵台县"},{i:"620825",n:"庄浪县"}],i:"620800",n:"平凉市"},{c:[{i:"621024",n:"合水县"},{i:"621023",n:"华池县"},{i:"621022",n:"环县"},{i:"621026",n:"宁县"},{i:"621021",n:"庆城县"},{i:"621002",n:"西峰区"},{i:"621025",n:"正宁县"},{i:"621027",n:"镇原县"}],i:"621000",n:"庆阳市"},{c:[{i:"620523",n:"甘谷县"},{i:"620503",n:"麦积区"},{i:"620522",n:"秦安县"},{i:"620521",n:"清水县"},{i:"620502",n:"秦州区"},{i:"620524",n:"武山县"},{i:"620525",n:"张家川回族自治县"}],i:"620500",n:"天水市"},{c:[{i:"620622",n:"古浪县"},{i:"620602",n:"凉州区"},{i:"620621",n:"民勤县"},{i:"620623",n:"天祝藏族自治县"}],i:"620600",n:"武威市"},{c:[{i:"620702",n:"甘州区"},{i:"620724",n:"高台县"},{i:"620723",n:"临泽县"},{i:"620722",n:"民乐县"},{i:"620725",n:"山丹县"},{i:"620721",n:"肃南裕固族自治县"}],i:"620700",n:"张掖市"}],i:"620000",n:"甘肃省"},{c:[{c:[{i:"445121",n:"潮安县"},{i:"445185",n:"枫溪区"},{i:"445122",n:"饶平县"},{i:"445102",n:"湘桥区"}],i:"445100",n:"潮州市"},{c:[{i:"441901403",n:"东莞生态园"},{i:"441901402",n:"虎门港管委会"},{i:"441901401",n:"松山湖管委会"},{i:"441901110",n:"常平镇"},{i:"441901113",n:"大朗镇"},{i:"441901114",n:"黄江镇"},{i:"441901111",n:"寮步镇"},{i:"441901112",n:"樟木头镇"},{i:"441901117",n:"凤岗镇"},{i:"441901118",n:"大岭山镇"},{i:"441901115",n:"清溪镇"},{i:"441901116",n:"塘厦镇"},{i:"441901119",n:"长安镇"},{i:"441901121",n:"虎门镇"},{i:"441901122",n:"厚街镇"},{i:"441901123",n:"沙田镇"},{i:"441901124",n:"道滘镇"},{i:"441901125",n:"洪梅镇"},{i:"441901126",n:"麻涌镇"},{i:"441901127",n:"望牛墩镇"},{i:"441901128",n:"中堂镇"},{i:"441901129",n:"高埗镇"},{i:"441901104",n:"石排镇"},{i:"441901105",n:"企石镇"},{i:"441901106",n:"横沥镇"}],i:"441900",n:"东莞市"},{c:[{i:"440608",n:"高明区"},{i:"440605",n:"南海区"},{i:"440607",n:"三水区"},{i:"440604",n:"禅城区"},{i:"440606",n:"顺德区"}],i:"440600",n:"佛山市"},{c:[{i:"440111",n:"白云区"},{i:"440184",n:"从化市"},{i:"440188",n:"东山区"},{i:"440113",n:"番禺区"},{i:"440105",n:"海珠区"},{i:"440114",n:"花都区"},{i:"440112",n:"黄埔区"},{i:"440103",n:"荔湾区"},{i:"440116",n:"萝岗区"},{i:"440115",n:"南沙区"},{i:"440106",n:"天河区"},{i:"440104",n:"越秀区"},{i:"440183",n:"增城市"}],i:"440100",n:"广州市"},{c:[{i:"441625",n:"东源县"},{i:"441624",n:"和平县"},{i:"441623",n:"连平县"},{i:"441622",n:"龙川县"},{i:"441602",n:"源城区"},{i:"441621",n:"紫金县"}],i:"441600",n:"河源市"},{c:[{i:"441322",n:"博罗县"},{i:"441302",n:"惠城区"},{i:"441323",n:"惠东县"},{i:"441303",n:"惠阳区"},{i:"441324",n:"龙门县"}],i:"441300",n:"惠州市"},{c:[{i:"440785",n:"恩平市"},{i:"440784",n:"鹤山市"},{i:"440704",n:"江海区"},{i:"440783",n:"开平市"},{i:"440703",n:"蓬江区"},{i:"440781",n:"台山市"},{i:"440705",n:"新会区"}],i:"440700",n:"江门市"},{c:[{i:"445284",n:"东山区"},{i:"445224",n:"惠来县"},{i:"445221",n:"揭东县"},{i:"445222",n:"揭西县"},{i:"445281",n:"普宁市"},{i:"445202",n:"榕城区"}],i:"445200",n:"揭阳市"},{c:[{i:"440923",n:"电白县"},{i:"440981",n:"高州市"},{i:"440982",n:"化州市"},{i:"440903",n:"茂港区"},{i:"440902",n:"茂南区"},{i:"440983",n:"信宜市"}],i:"440900",n:"茂名市"},{c:[{i:"441422",n:"大埔县"},{i:"441423",n:"丰顺县"},{i:"441427",n:"蕉岭县"},{i:"441402",n:"梅江区"},{i:"441421",n:"梅县"},{i:"441426",n:"平远县"},{i:"441424",n:"五华县"},{i:"441481",n:"兴宁市"}],i:"441400",n:"梅州市"},{c:[{i:"441821",n:"佛冈县"},{i:"441826",n:"连南瑶族自治县"},{i:"441825",n:"连山壮族瑶族自治县"},{i:"441882",n:"连州市"},{i:"441802",n:"清城区"},{i:"441827",n:"清新县"},{i:"441823",n:"阳山县"},{i:"441881",n:"英德市"}],i:"441800",n:"清远市"},{c:[{i:"440514",n:"潮南区"},{i:"440513",n:"潮阳区"},{i:"440515",n:"澄海区"},{i:"440512",n:"濠江区"},{i:"440511",n:"金平区"},{i:"440507",n:"龙湖区"},{i:"440523",n:"南澳县"}],i:"440500",n:"汕头市"},{c:[{i:"441502",n:"城区"},{i:"441521",n:"海丰县"},{i:"441581",n:"陆丰市"},{i:"441523",n:"陆河县"}],i:"441500",n:"汕尾市"},{c:[{i:"440281",n:"乐昌市"},{i:"440282",n:"南雄市"},{i:"440205",n:"曲江区"},{i:"440224",n:"仁化县"},{i:"440232",n:"乳源瑶族自治县"},{i:"440222",n:"始兴县"},{i:"440229",n:"翁源县"},{i:"440203",n:"武江区"},{i:"440233",n:"新丰县"},{i:"440204",n:"浈江区"}],i:"440200",n:"韶关市"},{c:[{i:"440306",n:"宝安区"},{i:"440304",n:"福田区"},{i:"440307",n:"龙岗区"},{i:"440303",n:"罗湖区"},{i:"440305",n:"南山区"},{i:"440308",n:"盐田区"}],i:"440300",n:"深圳市"},{c:[{i:"441702",n:"江城区"},{i:"441781",n:"阳春市"},{i:"441723",n:"阳东县"},{i:"441721",n:"阳西县"}],i:"441700",n:"阳江市"},{c:[{i:"445381",n:"罗定市"},{i:"445321",n:"新兴县"},{i:"445322",n:"郁南县"},{i:"445323",n:"云安县"},{i:"445302",n:"云城区"}],i:"445300",n:"云浮市"},{c:[{i:"440802",n:"赤坎区"},{i:"440882",n:"雷州市"},{i:"440881",n:"廉江市"},{i:"440811",n:"麻章区"},{i:"440804",n:"坡头区"},{i:"440823",n:"遂溪县"},{i:"440883",n:"吴川市"},{i:"440803",n:"霞山区"},{i:"440825",n:"徐闻县"}],i:"440800",n:"湛江市"},{c:[{i:"441226",n:"德庆县"},{i:"441203",n:"鼎湖区"},{i:"441202",n:"端州区"},{i:"441225",n:"封开县"},{i:"441283",n:"高要市"},{i:"441223",n:"广宁县"},{i:"441224",n:"怀集县"},{i:"441284",n:"四会市"}],i:"441200",n:"肇庆市"},{i:"442000",n:"中山市"},{c:[{i:"440403",n:"斗门区"},{i:"440486",n:"金唐区"},{i:"440404",n:"金湾区"},{i:"440487",n:"南湾区"},{i:"440402",n:"香洲区"}],i:"440400",n:"珠海市"}],i:"440000",n:"广东省"},{c:[{c:[{i:"451024",n:"德保县"},{i:"451025",n:"靖西县"},{i:"451028",n:"乐业县"},{i:"451027",n:"凌云县"},{i:"451031",n:"隆林各族自治县"},{i:"451026",n:"那坡县"},{i:"451023",n:"平果县"},{i:"451022",n:"田东县"},{i:"451029",n:"田林县"},{i:"451021",n:"田阳县"},{i:"451030",n:"西林县"},{i:"451002",n:"右江区"}],i:"451000",n:"百色市"},{c:[{i:"450502",n:"海城区"},{i:"450521",n:"合浦县"},{i:"450512",n:"铁山港区"},{i:"450503",n:"银海区"}],i:"450500",n:"北海市"},{c:[{i:"451424",n:"大新县"},{i:"451421",n:"扶绥县"},{i:"451402",n:"江洲区"},{i:"451423",n:"龙州县"},{i:"451422",n:"宁明县"},{i:"451481",n:"凭祥市"},{i:"451425",n:"天等县"}],i:"451400",n:"崇左市"},{c:[{i:"450681",n:"东兴市"},{i:"450603",n:"防城区"},{i:"450602",n:"港口区"},{i:"450621",n:"上思县"}],i:"450600",n:"防城港市"},{c:[{i:"450802",n:"港北区"},{i:"450803",n:"港南区"},{i:"450881",n:"桂平市"},{i:"450821",n:"平南县"},{i:"450804",n:"覃塘区"}],i:"450800",n:"贵港市"},{c:[{i:"450303",n:"叠彩区"},{i:"450332",n:"恭城瑶族自治县"},{i:"450327",n:"灌阳县"},{i:"450323",n:"灵川县"},{i:"450322",n:"临桂县"},{i:"450331",n:"荔蒲县"},{i:"450328",n:"龙胜各族自治县"},{i:"450330",n:"平乐县"},{i:"450305",n:"七星区"},{i:"450324",n:"全州县"},{i:"450304",n:"象山区"},{i:"450325",n:"兴安县"},{i:"450302",n:"秀峰区"},{i:"450321",n:"阳朔县"},{i:"450311",n:"雁山区"},{i:"450326",n:"永福县"},{i:"450329",n:"资源县"}],i:"450300",n:"桂林市"},{c:[{i:"451227",n:"巴马瑶族自治县"},{i:"451229",n:"大化瑶族自治县"},{i:"451224",n:"东兰县"},{i:"451228",n:"都安瑶族自治县"},{i:"451223",n:"凤山县"},{i:"451226",n:"环江毛南族自治县"},{i:"451202",n:"金城江区"},{i:"451225",n:"罗城仫佬族自治县"},{i:"451221",n:"南丹县"},{i:"451222",n:"天峨县"},{i:"451281",n:"宜州市"}],i:"451200",n:"河池市"},{c:[{i:"451102",n:"八步区"},{i:"451123",n:"富川瑶族自治县"},{i:"451121",n:"昭平县"},{i:"451122",n:"钟山县"}],i:"451100",n:"贺州市"},{c:[{i:"451381",n:"合山市"},{i:"451324",n:"金秀瑶族自治县"},{i:"451323",n:"武宣县"},{i:"451322",n:"象州县"},{i:"451321",n:"忻城县"},{i:"451302",n:"兴宾区"}],i:"451300",n:"来宾市"},{c:[{i:"450202",n:"城中区"},{i:"450205",n:"柳北区"},{i:"450222",n:"柳城县"},{i:"450221",n:"柳江县"},{i:"450204",n:"柳南区"},{i:"450223",n:"鹿寨县"},{i:"450224",n:"融安县"},{i:"450225",n:"融水苗族自治县"},{i:"450226",n:"三江侗族自治县"},{i:"450203",n:"鱼峰区"}],i:"450200",n:"柳州市"},{c:[{i:"450126",n:"宾阳县"},{i:"450127",n:"横县"},{i:"450105",n:"江南区"},{i:"450108",n:"良庆区"},{i:"450123",n:"隆安县"},{i:"450124",n:"马山县"},{i:"450103",n:"青秀区"},{i:"450125",n:"上林县"},{i:"450122",n:"武鸣县"},{i:"450102",n:"兴宁区"},{i:"450107",n:"西乡塘区"},{i:"450109",n:"邕宁区"}],i:"450100",n:"南宁市"},{c:[{i:"450721",n:"灵山县"},{i:"450722",n:"浦北县"},{i:"450703",n:"钦北区"},{i:"450702",n:"钦南区"}],i:"450700",n:"钦州市"},{c:[{i:"450421",n:"苍梧县"},{i:"450481",n:"岑溪市"},{i:"450404",n:"蝶山区"},{i:"450423",n:"蒙山县"},{i:"450422",n:"藤县"},{i:"450403",n:"万秀区"},{i:"450405",n:"长洲区"}],i:"450400",n:"梧州市"},{c:[{i:"450981",n:"北流市"},{i:"450923",n:"博白县"},{i:"450922",n:"陆川县"},{i:"450921",n:"容县"},{i:"450924",n:"兴业县"},{i:"450902",n:"玉州区"}],i:"450900",n:"玉林市"}],i:"450000",n:"广西壮族自治区"},{c:[{c:[{i:"520424",n:"关岭布依族苗族自治县"},{i:"520421",n:"平坝县"},{i:"520422",n:"普定县"},{i:"520402",n:"西秀区"},{i:"520423",n:"镇宁布依族苗族自治县"},{i:"520425",n:"紫云苗族布依族自治县"}],i:"520400",n:"安顺市"},{c:[{i:"522401",n:"毕节市"},{i:"522422",n:"大方县"},{i:"522428",n:"赫章县"},{i:"522424",n:"金沙县"},{i:"522426",n:"纳雍县"},{i:"522423",n:"黔西县"},{i:"522427",n:"威宁彝族回族苗族自治县"},{i:"522425",n:"织金县"}],i:"522400",n:"毕节地区"},{c:[{i:"520113",n:"白云区"},{i:"520111",n:"花溪区"},{i:"520151",n:"金阳开发区"},{i:"520121",n:"开阳县"},{i:"520102",n:"南明区"},{i:"520181",n:"清镇市"},{i:"520112",n:"乌当区"},{i:"520114",n:"小河区"},{i:"520122",n:"息烽县"},{i:"520123",n:"修文县"},{i:"520103",n:"云岩区"}],i:"520100",n:"贵阳市"},{c:[{i:"520203",n:"六枝特区"},{i:"520222",n:"盘县"},{i:"520221",n:"水城县"},{i:"520201",n:"钟山区"}],i:"520200",n:"六盘水市"},{c:[{i:"522626",n:"岑巩县"},{i:"522633",n:"从江县"},{i:"522636",n:"丹寨县"},{i:"522622",n:"黄平县"},{i:"522629",n:"剑河县"},{i:"522628",n:"锦屏县"},{i:"522601",n:"凯里市"},{i:"522634",n:"雷山县"},{i:"522631",n:"黎平县"},{i:"522635",n:"麻江县"},{i:"522632",n:"榕江县"},{i:"522624",n:"三穗县"},{i:"522623",n:"施秉县"},{i:"522630",n:"台江县"},{i:"522627",n:"天柱县"},{i:"522625",n:"镇远县"}],i:"522600",n:"黔东南苗族侗族自治州"},{c:[{i:"522701",n:"都匀市"},{i:"522726",n:"独山县"},{i:"522702",n:"福泉市"},{i:"522723",n:"贵定县"},{i:"522731",n:"惠水县"},{i:"522722",n:"荔波县"},{i:"522730",n:"龙里县"},{i:"522728",n:"罗甸县"},{i:"522727",n:"平塘县"},{i:"522732",n:"三都水族自治县"},{i:"522725",n:"瓮安县"},{i:"522729",n:"长顺县"}],i:"522700",n:"黔南布依族苗族自治州"},{c:[{i:"522328",n:"安龙县"},{i:"522327",n:"册亨县"},{i:"522323",n:"普安县"},{i:"522324",n:"晴隆县"},{i:"522326",n:"望谟县"},{i:"522322",n:"兴仁县"},{i:"522301",n:"兴义市"},{i:"522325",n:"贞丰县"}],i:"522300",n:"黔西南布依族苗族自治州"},{c:[{i:"522227",n:"德江县"},{i:"522222",n:"江口县"},{i:"522224",n:"石阡县"},{i:"522225",n:"思南县"},{i:"522229",n:"松桃苗族自治县"},{i:"522201",n:"铜仁市"},{i:"522230",n:"万山特区"},{i:"522228",n:"沿河土家族自治县"},{i:"522226",n:"印江土家族苗族自治县"},{i:"522223",n:"玉屏侗族自治县"}],i:"522200",n:"铜仁地区"},{c:[{i:"520381",n:"赤水市"},{i:"520325",n:"道真仡佬族苗族自治县"},{i:"520327",n:"凤冈县"},{i:"520302",n:"红花岗区"},{i:"520303",n:"汇川区"},{i:"520328",n:"湄潭县"},{i:"520382",n:"仁怀市"},{i:"520323",n:"绥阳县"},{i:"520322",n:"桐梓县"},{i:"520326",n:"务川仡佬族苗族自治县"},{i:"520330",n:"习水县"},{i:"520329",n:"余庆县"},{i:"520324",n:"正安县"},{i:"520321",n:"遵义县"}],i:"520300",n:"遵义市"}],i:"520000",n:"贵州省"},{c:[{i:"469030",n:"白沙黎族自治县"},{i:"469035",n:"保亭黎族苗族自治县"},{i:"469031",n:"昌江黎族自治县"},{i:"469027",n:"澄迈县"},{i:"469003",n:"儋州市"},{i:"469025",n:"定安县"},{i:"469007",n:"东方市"},{c:[{i:"460106",n:"龙华区"},{i:"460108",n:"美兰区"},{i:"460107",n:"琼山区"},{i:"460105",n:"秀英区"}],i:"460100",n:"海口市"},{i:"469033",n:"乐东黎族自治县"},{i:"469028",n:"临高县"},{i:"469034",n:"陵水黎族自治县"},{i:"469038",n:"南沙群岛"},{i:"469002",n:"琼海市"},{i:"469036",n:"琼中黎族苗族自治县"},{i:"460200",n:"三亚市"},{i:"469026",n:"屯昌县"},{i:"469006",n:"万宁市"},{i:"469005",n:"文昌市"},{i:"469001",n:"五指山市"},{i:"469037",n:"西沙群岛"},{i:"469039",n:"中沙群岛的岛礁及其海域"}],i:"460000",n:"海南省"},{c:[{c:[{i:"130683",n:"安国市"},{i:"130632",n:"安新县"},{i:"130603",n:"北市区"},{i:"130637",n:"博野县"},{i:"130626",n:"定兴县"},{i:"130682",n:"定州市"},{i:"130624",n:"阜平县"},{i:"130684",n:"高碑店市"},{i:"130698",n:"高开区"},{i:"130628",n:"高阳县"},{i:"130623",n:"涞水县"},{i:"130630",n:"涞源县"},{i:"130635",n:"蠡县"},{i:"130621",n:"满城县"},{i:"130604",n:"南市区"},{i:"130622",n:"清苑县"},{i:"130634",n:"曲阳县"},{i:"130629",n:"容城县"},{i:"130636",n:"顺平县"},{i:"130627",n:"唐县"},{i:"130631",n:"望都县"},{i:"130602",n:"新市区"},{i:"130638",n:"雄县"},{i:"130625",n:"徐水县"},{i:"130633",n:"易县"},{i:"130681",n:"涿州市"}],i:"130600",n:"保定市"},{c:[{i:"130981",n:"泊头市"},{i:"130921",n:"沧县"},{i:"130923",n:"东光县"},{i:"130924",n:"海兴县"},{i:"130984",n:"河间市"},{i:"130983",n:"黄骅市"},{i:"130930",n:"孟村回族自治县"},{i:"130927",n:"南皮县"},{i:"130922",n:"青县"},{i:"130982",n:"任丘市"},{i:"130926",n:"肃宁县"},{i:"130928",n:"吴桥县"},{i:"130929",n:"献县"},{i:"130902",n:"新华区"},{i:"130925",n:"盐山县"},{i:"130903",n:"运河区"}],i:"130900",n:"沧州市"},{c:[{i:"130821",n:"承德县"},{i:"130826",n:"丰宁满族自治县"},{i:"130827",n:"宽城满族自治县"},{i:"130825",n:"隆化县"},{i:"130824",n:"滦平县"},{i:"130823",n:"平泉县"},{i:"130803",n:"双滦区"},{i:"130802",n:"双桥区"},{i:"130828",n:"围场满族蒙古族自治县"},{i:"130822",n:"兴隆县"},{i:"130804",n:"鹰手营子矿区"}],i:"130800",n:"承德市"},{c:[{i:"130424",n:"成安县"},{i:"130427",n:"磁县"},{i:"130403",n:"丛台区"},{i:"130425",n:"大名县"},{i:"130428",n:"肥乡县"},{i:"130406",n:"峰峰矿区"},{i:"130404",n:"复兴区"},{i:"130432",n:"广平县"},{i:"130433",n:"馆陶县"},{i:"130421",n:"邯郸县"},{i:"130402",n:"邯山区"},{i:"130431",n:"鸡泽县"},{i:"130423",n:"临漳县"},{i:"130430",n:"邱县"},{i:"130435",n:"曲周县"},{i:"130426",n:"涉县"},{i:"130434",n:"魏县"},{i:"130481",n:"武安市"},{i:"130429",n:"永年县"}],i:"130400",n:"邯郸市"},{c:[{i:"131125",n:"安平县"},{i:"131128",n:"阜城县"},{i:"131126",n:"故城县"},{i:"131127",n:"景县"},{i:"131181",n:"冀州市"},{i:"131124",n:"饶阳县"},{i:"131182",n:"深州市"},{i:"131102",n:"桃城区"},{i:"131123",n:"武强县"},{i:"131122",n:"武邑县"},{i:"131121",n:"枣强县"}],i:"131100",n:"衡水市"},{c:[{i:"131002",n:"安次区"},{i:"131081",n:"霸州市"},{i:"131028",n:"大厂回族自治县"},{i:"131025",n:"大城县"},{i:"131003",n:"广阳区"},{i:"131022",n:"固安县"},{i:"131051",n:"开发区"},{i:"131082",n:"三河市"},{i:"131026",n:"文安县"},{i:"131024",n:"香河县"},{i:"131052",n:"燕郊经济技术开发区"},{i:"131023",n:"永清县"}],i:"131000",n:"廊坊市"},{c:[{i:"130304",n:"北戴河区"},{i:"130322",n:"昌黎县"},{i:"130323",n:"抚宁县"},{i:"130302",n:"海港区"},{i:"130399",n:"经济技术开发区"},{i:"130324",n:"卢龙县"},{i:"130321",n:"青龙满族自治县"},{i:"130303",n:"山海关区"}],i:"130300",n:"秦皇岛市"},{c:[{i:"130182",n:"藁城市"},{i:"130127",n:"高邑县"},{i:"130107",n:"井陉矿区"},{i:"130121",n:"井陉县"},{i:"130183",n:"晋州市"},{i:"130126",n:"灵寿县"},{i:"130124",n:"栾城县"},{i:"130185",n:"鹿泉市"},{i:"130131",n:"平山县"},{i:"130103",n:"桥东区"},{i:"130104",n:"桥西区"},{i:"130128",n:"深泽县"},{i:"130130",n:"无极县"},{i:"130125",n:"行唐县"},{i:"130105",n:"新华区"},{i:"130181",n:"辛集市"},{i:"130184",n:"新乐市"},{i:"130132",n:"元氏县"},{i:"130108",n:"裕华区"},{i:"130129",n:"赞皇县"},{i:"130102",n:"长安区"},{i:"130133",n:"赵县"},{i:"130123",n:"正定县"}],i:"130100",n:"石家庄市"},{c:[{i:"130207",n:"丰南区"},{i:"130208",n:"丰润区"},{i:"130204",n:"古冶区"},{i:"130205",n:"开平区"},{i:"130225",n:"乐亭县"},{i:"130224",n:"滦南县"},{i:"130223",n:"滦县"},{i:"130203",n:"路北区"},{i:"130202",n:"路南区"},{i:"130283",n:"迁安市"},{i:"130227",n:"迁西县"},{i:"130230",n:"唐海县"},{i:"130229",n:"玉田县"},{i:"130281",n:"遵化市"}],i:"130200",n:"唐山市"},{c:[{i:"130524",n:"柏乡县"},{i:"130531",n:"广宗县"},{i:"130529",n:"巨鹿县"},{i:"130522",n:"临城县"},{i:"130535",n:"临西县"},{i:"130525",n:"隆尧县"},{i:"130581",n:"南宫市"},{i:"130527",n:"南和县"},{i:"130523",n:"内丘县"},{i:"130528",n:"宁晋县"},{i:"130532",n:"平乡县"},{i:"130502",n:"桥东区"},{i:"130503",n:"桥西区"},{i:"130534",n:"清河县"},{i:"130526",n:"任县"},{i:"130582",n:"沙河市"},{i:"130533",n:"威县"},{i:"130521",n:"邢台县"},{i:"130530",n:"新河县"}],i:"130500",n:"邢台市"},{c:[{i:"130732",n:"赤城县"},{i:"130733",n:"崇礼县"},{i:"130724",n:"沽源县"},{i:"130728",n:"怀安县"},{i:"130730",n:"怀来县"},{i:"130723",n:"康保县"},{i:"130702",n:"桥东区"},{i:"130703",n:"桥西区"},{i:"130725",n:"尚义县"},{i:"130729",n:"万全县"},{i:"130706",n:"下花园区"},{i:"130705",n:"宣化区"},{i:"130721",n:"宣化县"},{i:"130727",n:"阳原县"},{i:"130726",n:"蔚县"},{i:"130722",n:"张北县"},{i:"130731",n:"涿鹿县"}],i:"130700",n:"张家口市"}],i:"130000",n:"河北省"},{c:[{c:[{i:"230606",n:"大同区"},{i:"230624",n:"杜尔伯特蒙古族自治县"},{i:"230605",n:"红岗区"},{i:"230623",n:"林甸县"},{i:"230603",n:"龙凤区"},{i:"230604",n:"让胡路区"},{i:"230602",n:"萨尔图区"},{i:"230622",n:"肇源县"},{i:"230621",n:"肇州县"}],i:"230600",n:"大庆市"},{c:[{i:"232721",n:"呼玛县"},{i:"232724",n:"加格达奇区"},{i:"232723",n:"漠河县"},{i:"232722",n:"塔河县"}],i:"232700",n:"大兴安岭地区"},{c:[{i:"230181",n:"阿城市"},{i:"230185",n:"阿城市"},{i:"230126",n:"巴彦县"},{i:"230125",n:"宾县"},{i:"230102",n:"道里区"},{i:"230104",n:"道外区"},{i:"230107",n:"动力区"},{i:"230124",n:"方正县"},{i:"230111",n:"呼兰区"},{i:"230127",n:"木兰县"},{i:"230103",n:"南岗区"},{i:"230108",n:"平房区"},{i:"230183",n:"尚志市"},{i:"230182",n:"双城市"},{i:"230109",n:"松北区"},{i:"230128",n:"通河县"},{i:"230184",n:"五常市"},{i:"230106",n:"香坊区"},{i:"230129",n:"延寿县"},{i:"230123",n:"依兰县"}],i:"230100",n:"哈尔滨市"},{c:[{i:"230406",n:"东山区"},{i:"230403",n:"工农区"},{i:"230421",n:"萝北县"},{i:"230404",n:"南山区"},{i:"230422",n:"绥滨县"},{i:"230402",n:"向阳区"},{i:"230405",n:"兴安区"},{i:"230407",n:"兴山区"}],i:"230400",n:"鹤岗市"},{c:[{i:"231102",n:"爱辉区"},{i:"231181",n:"北安市"},{i:"231121",n:"嫩江县"},{i:"231124",n:"孙吴县"},{i:"231182",n:"五大连池市"},{i:"231123",n:"逊克县"}],i:"231100",n:"黑河市"},{c:[{i:"230805",n:"东风区"},{i:"230882",n:"富锦市"},{i:"230833",n:"抚远县"},{i:"230826",n:"桦川县"},{i:"230822",n:"桦南县"},{i:"230811",n:"郊区"},{i:"230804",n:"前进区"},{i:"230828",n:"汤原县"},{i:"230881",n:"同江市"},{i:"230803",n:"向阳区"},{i:"230802",n:"永红区"}],i:"230800",n:"佳木斯市"},{c:[{i:"230306",n:"城子河区"},{i:"230304",n:"滴道区"},{i:"230303",n:"恒山区"},{i:"230381",n:"虎林市"},{i:"230321",n:"鸡东县"},{i:"230302",n:"鸡冠区"},{i:"230305",n:"梨树区"},{i:"230307",n:"麻山区"},{i:"230382",n:"密山市"}],i:"230300",n:"鸡西市"},{c:[{i:"231004",n:"爱民区"},{i:"231002",n:"东安区"},{i:"231024",n:"东宁县"},{i:"231083",n:"海林市"},{i:"231025",n:"林口县"},{i:"231085",n:"穆棱市"},{i:"231084",n:"宁安市"},{i:"231081",n:"绥芬河市"},{i:"231005",n:"西安区"},{i:"231003",n:"阳明区"}],i:"231000",n:"牡丹江市"},{c:[{i:"230205",n:"昂昂溪区"},{i:"230231",n:"拜泉县"},{i:"230206",n:"富拉尔基区"},{i:"230227",n:"富裕县"},{i:"230225",n:"甘南县"},{i:"230203",n:"建华区"},{i:"230230",n:"克东县"},{i:"230229",n:"克山县"},{i:"230221",n:"龙江县"},{i:"230202",n:"龙沙区"},{i:"230208",n:"梅里斯达斡尔族区"},{i:"230281",n:"讷河市"},{i:"230207",n:"碾子山区"},{i:"230224",n:"泰来县"},{i:"230204",n:"铁锋区"},{i:"230223",n:"依安县"}],i:"230200",n:"齐齐哈尔市"},{c:[{i:"230921",n:"勃利县"},{i:"230904",n:"茄子河区"},{i:"230903",n:"桃山区"},{i:"230902",n:"新兴区"}],i:"230900",n:"七台河市"},{c:[{i:"230523",n:"宝清县"},{i:"230506",n:"宝山区"},{i:"230502",n:"尖山区"},{i:"230521",n:"集贤县"},{i:"230503",n:"岭东区"},{i:"230524",n:"饶河县"},{i:"230505",n:"四方台区"},{i:"230522",n:"友谊县"}],i:"230500",n:"双鸭山市"},{c:[{i:"231281",n:"安达市"},{i:"231202",n:"北林区"},{i:"231283",n:"海伦市"},{i:"231222",n:"兰西县"},{i:"231225",n:"明水县"},{i:"231224",n:"庆安县"},{i:"231223",n:"青冈县"},{i:"231226",n:"绥棱县"},{i:"231221",n:"望奎县"},{i:"231282",n:"肇东市"}],i:"231200",n:"绥化市"},{c:[{i:"230706",n:"翠峦区"},{i:"230713",n:"带岭区"},{i:"230715",n:"红星区"},{i:"230722",n:"嘉荫县"},{i:"230709",n:"金山屯区"},{i:"230708",n:"美溪区"},{i:"230703",n:"南岔区"},{i:"230716",n:"上甘岭区"},{i:"230712",n:"汤旺河区"},{i:"230781",n:"铁力市"},{i:"230711",n:"乌马河区"},{i:"230714",n:"乌伊岭区"},{i:"230710",n:"五营区"},{i:"230705",n:"西林区"},{i:"230707",n:"新青区"},{i:"230702",n:"伊春区"},{i:"230704",n:"友好区"}],i:"230700",n:"伊春市"}],i:"230000",n:"黑龙江省"},{c:[{c:[{i:"410522",n:"安阳县"},{i:"410503",n:"北关区"},{i:"410526",n:"滑县"},{i:"410581",n:"林州市"},{i:"410506",n:"龙安区"},{i:"410527",n:"内黄县"},{i:"410523",n:"汤阴县"},{i:"410502",n:"文峰区"},{i:"410505",n:"殷都区"}],i:"410500",n:"安阳市"},{c:[{i:"410602",n:"鹤山区"},{i:"410611",n:"淇滨区"},{i:"410622",n:"淇县"},{i:"410603",n:"山城区"},{i:"410621",n:"浚县"}],i:"410600",n:"鹤壁市"},{c:[{i:"410822",n:"博爱县"},{i:"410802",n:"解放区"},{i:"410804",n:"马村区"},{i:"410883",n:"孟州市"},{i:"410882",n:"沁阳市"},{i:"410811",n:"山阳区"},{i:"410825",n:"温县"},{i:"410823",n:"武陟县"},{i:"410821",n:"修武县"},{i:"410803",n:"中站区"}],i:"410800",n:"焦作市"},{i:"410881",n:"济源市"},{c:[{i:"410204",n:"鼓楼区"},{i:"410211",n:"金明区"},{i:"410224",n:"开封县"},{i:"410225",n:"兰考县"},{i:"410202",n:"龙亭区"},{i:"410221",n:"杞县"},{i:"410203",n:"顺河回族区"},{i:"410222",n:"通许县"},{i:"410223",n:"尉氏县"},{i:"410205",n:"禹王台区"}],i:"410200",n:"开封市"},{c:[{i:"411122",n:"临颍县"},{i:"411121",n:"舞阳县"},{i:"411103",n:"郾城区"},{i:"411102",n:"源汇区"},{i:"411104",n:"召陵区"}],i:"411100",n:"漯河市"},{c:[{i:"410304",n:"廛河回族区"},{i:"471004",n:"高新区"},{i:"410305",n:"涧西区"},{i:"410306",n:"吉利区"},{i:"410302",n:"老城区"},{i:"410324",n:"栾川县"},{i:"410307",n:"洛龙区"},{i:"410328",n:"洛宁县"},{i:"410322",n:"孟津县"},{i:"410326",n:"汝阳县"},{i:"410325",n:"嵩县"},{i:"410303",n:"西工区"},{i:"410323",n:"新安县"},{i:"410381",n:"偃师市"},{i:"410329",n:"伊川县"},{i:"410327",n:"宜阳县"}],i:"410300",n:"洛阳市"},{c:[{i:"411381",n:"邓州市"},{i:"411322",n:"方城县"},{i:"411321",n:"南召县"},{i:"411325",n:"内乡县"},{i:"411327",n:"社旗县"},{i:"411328",n:"唐河县"},{i:"411330",n:"桐柏县"},{i:"411302",n:"宛城区"},{i:"411303",n:"卧龙区"},{i:"411326",n:"淅川县"},{i:"411329",n:"新野县"},{i:"411323",n:"西峡县"},{i:"411324",n:"镇平县"}],i:"411300",n:"南阳市"},{c:[{i:"410421",n:"宝丰县"},{i:"410425",n:"郏县"},{i:"410423",n:"鲁山县"},{i:"410482",n:"汝州市"},{i:"410404",n:"石龙区"},{i:"410403",n:"卫东区"},{i:"410481",n:"舞钢市"},{i:"410402",n:"新华区"},{i:"410422",n:"叶县"},{i:"410411",n:"湛河区"}],i:"410400",n:"平顶山市"},{c:[{i:"410926",n:"范县"},{i:"410902",n:"华龙区"},{i:"410923",n:"南乐县"},{i:"410928",n:"濮阳县"},{i:"410922",n:"清丰县"},{i:"410927",n:"台前县"}],i:"410900",n:"濮阳市"},{c:[{i:"411202",n:"湖滨区"},{i:"411282",n:"灵宝市"},{i:"411224",n:"卢氏县"},{i:"411221",n:"渑池县"},{i:"411222",n:"陕县"},{i:"411281",n:"义马市"}],i:"411200",n:"三门峡市"},{c:[{i:"411402",n:"梁园区"},{i:"411421",n:"民权县"},{i:"411423",n:"宁陵县"},{i:"411422",n:"睢县"},{i:"411403",n:"睢阳区"},{i:"411426",n:"夏邑县"},{i:"411481",n:"永城市"},{i:"411425",n:"虞城县"},{i:"411424",n:"柘城县"}],i:"411400",n:"商丘市"},{c:[{i:"410727",n:"封丘县"},{i:"410704",n:"凤泉区"},{i:"410702",n:"红旗区"},{i:"410782",n:"辉县市"},{i:"410724",n:"获嘉县"},{i:"410711",n:"牧野区"},{i:"410703",n:"卫滨区"},{i:"410781",n:"卫辉市"},{i:"410721",n:"新乡县"},{i:"410726",n:"延津县"},{i:"410725",n:"原阳县"},{i:"410728",n:"长垣县"}],i:"410700",n:"新乡市"},{c:[{i:"411522",n:"光山县"},{i:"411525",n:"固始县"},{i:"411527",n:"淮滨县"},{i:"411526",n:"潢川县"},{i:"411521",n:"罗山县"},{i:"411503",n:"平桥区"},{i:"411524",n:"商城县"},{i:"411502",n:"浉河区"},{i:"411523",n:"新县"},{i:"411528",n:"息县"}],i:"411500",n:"信阳市"},{c:[{i:"411002",n:"魏都区"},{i:"411025",n:"襄城县"},{i:"411023",n:"许昌县"},{i:"411024",n:"鄢陵县"},{i:"411081",n:"禹州市"},{i:"411082",n:"长葛市"}],i:"411000",n:"许昌市"},{c:[{i:"410185",n:"登封市"},{i:"410103",n:"二七区"},{i:"410187",n:"高新区"},{i:"410181",n:"巩义市"},{i:"410104",n:"管城回族区"},{i:"410108",n:"惠济区"},{i:"410105",n:"金水区"},{i:"410106",n:"上街区"},{i:"410183",n:"新密市"},{i:"410184",n:"新郑市"},{i:"410182",n:"荥阳市"},{i:"410186",n:"郑东新区"},{i:"410122",n:"中牟县"},{i:"410102",n:"中原区"}],i:"410100",n:"郑州市"},{c:[{i:"411602",n:"川汇区"},{i:"411625",n:"郸城县"},{i:"411621",n:"扶沟县"},{i:"411626",n:"淮阳县"},{i:"411628",n:"鹿邑县"},{i:"411623",n:"商水县"},{i:"411624",n:"沈丘县"},{i:"411627",n:"太康县"},{i:"411681",n:"项城市"},{i:"411622",n:"西华县"}],i:"411600",n:"周口市"},{c:[{i:"411726",n:"泌阳县"},{i:"411723",n:"平舆县"},{i:"411725",n:"确山县"},{i:"411727",n:"汝南县"},{i:"411722",n:"上蔡县"},{i:"411728",n:"遂平县"},{i:"411729",n:"新蔡县"},{i:"411721",n:"西平县"},{i:"411702",n:"驿城区"},{i:"411724",n:"正阳县"}],i:"411700",n:"驻马店市"}],i:"410000",n:"河南省"},{c:[{c:[{i:"422823",n:"巴东县"},{i:"422801",n:"恩施市"},{i:"422828",n:"鹤峰县"},{i:"422822",n:"建始县"},{i:"422827",n:"来凤县"},{i:"422802",n:"利川市"},{i:"422826",n:"咸丰县"},{i:"422825",n:"宣恩县"}],i:"422800",n:"恩施土家族苗族自治州"},{c:[{i:"420704",n:"鄂城区"},{i:"420703",n:"华容区"},{i:"420702",n:"梁子湖区"}],i:"420700",n:"鄂州市"},{c:[{i:"421122",n:"红安县"},{i:"421127",n:"黄梅县"},{i:"421102",n:"黄州区"},{i:"421123",n:"罗田县"},{i:"421181",n:"麻城市"},{i:"421126",n:"蕲春县"},{i:"421121",n:"团风县"},{i:"421182",n:"武穴市"},{i:"421125",n:"浠水县"},{i:"421124",n:"英山县"}],i:"421100",n:"黄冈市"},{c:[{i:"420281",n:"大冶市"},{i:"420202",n:"黄石港区"},{i:"420205",n:"铁山区"},{i:"420204",n:"下陆区"},{i:"420203",n:"西塞山区"},{i:"420222",n:"阳新县"}],i:"420200",n:"黄石市"},{c:[{i:"420802",n:"东宝区"},{i:"420804",n:"掇刀区"},{i:"420821",n:"京山县"},{i:"420822",n:"沙洋县"},{i:"420881",n:"钟祥市"}],i:"420800",n:"荆门市"},{c:[{i:"421022",n:"公安县"},{i:"421083",n:"洪湖市"},{i:"421024",n:"江陵县"},{i:"421023",n:"监利县"},{i:"421003",n:"荆州区"},{i:"421002",n:"沙市区"},{i:"421081",n:"石首市"},{i:"421087",n:"松滋市"}],i:"421000",n:"荆州市"},{i:"429005",n:"潜江市"},{i:"429021",n:"神农架林区"},{c:[{i:"420382",n:"城区"},{i:"420381",n:"丹江口市"},{i:"420325",n:"房县"},{i:"420302",n:"茅箭区"},{i:"420321",n:"郧县"},{i:"420322",n:"郧西县"},{i:"420303",n:"张湾区"},{i:"420323",n:"竹山县"},{i:"420324",n:"竹溪县"}],i:"420300",n:"十堰市"},{c:[{i:"421302",n:"曾都区"},{i:"421381",n:"广水市"},{i:"421321",n:"随县"}],i:"421300",n:"随州市"},{i:"429006",n:"天门市"},{c:[{i:"420114",n:"蔡甸区"},{i:"420112",n:"东西湖区"},{i:"420113",n:"汉南区"},{i:"420105",n:"汉阳区"},{i:"420111",n:"洪山区"},{i:"420116",n:"黄陂区"},{i:"420102",n:"江岸区"},{i:"420103",n:"江汉区"},{i:"420115",n:"江夏区"},{i:"420104",n:"硚口区"},{i:"420107",n:"青山区"},{i:"420106",n:"武昌区"},{i:"420117",n:"新洲区"}],i:"420100",n:"武汉市"},{c:[{i:"420626",n:"保康县"},{i:"420606",n:"樊城区"},{i:"420625",n:"谷城县"},{i:"420682",n:"老河口市"},{i:"420624",n:"南漳县"},{i:"420602",n:"襄城区"},{i:"420607",n:"襄阳区"},{i:"420684",n:"宜城市"},{i:"420683",n:"枣阳市"}],i:"420600",n:"襄樊市"},{c:[{i:"421281",n:"赤壁市"},{i:"421223",n:"崇阳县"},{i:"421221",n:"嘉鱼县"},{i:"421222",n:"通城县"},{i:"421224",n:"通山县"},{i:"421282",n:"温泉城区"},{i:"421202",n:"咸安区"}],i:"421200",n:"咸宁市"},{i:"429004",n:"仙桃市"},{c:[{i:"420982",n:"安陆市"},{i:"420922",n:"大悟县"},{i:"420984",n:"汉川市"},{i:"420921",n:"孝昌县"},{i:"420902",n:"孝南区"},{i:"420981",n:"应城市"},{i:"420923",n:"云梦县"}],i:"420900",n:"孝感市"},{c:[{i:"420582",n:"当阳市"},{i:"420504",n:"点军区"},{i:"420551",n:"葛洲坝区"},{i:"420552",n:"开发区"},{i:"420529",n:"五峰土家族自治县"},{i:"420503",n:"伍家岗区"},{i:"420502",n:"西陵区"},{i:"420526",n:"兴山县"},{i:"420505",n:"猇亭区"},{i:"420581",n:"宜都市"},{i:"420506",n:"夷陵区"},{i:"420525",n:"远安县"},{i:"420528",n:"长阳土家族自治县"},{i:"420583",n:"枝江市"},{i:"420527",n:"秭归县"}],i:"420500",n:"宜昌市"}],i:"420000",n:"湖北省"},{c:[{c:[{i:"430721",n:"安乡县"},{i:"430703",n:"鼎城区"},{i:"430722",n:"汉寿县"},{i:"430781",n:"津市市"},{i:"430724",n:"临澧县"},{i:"430723",n:"澧县"},{i:"430726",n:"石门县"},{i:"430725",n:"桃源县"},{i:"430702",n:"武陵区"}],i:"430700",n:"常德市"},{c:[{i:"430121",n:"长沙县"},{i:"430102",n:"芙蓉区"},{i:"430105",n:"开福区"},{i:"430181",n:"浏阳市"},{i:"430124",n:"宁乡县"},{i:"430103",n:"天心区"},{i:"430122",n:"望城县"},{i:"430104",n:"岳麓区"},{i:"430111",n:"雨花区"}],i:"430100",n:"长沙市"},{c:[{i:"431028",n:"安仁县"},{i:"431002",n:"北湖区"},{i:"431027",n:"桂东县"},{i:"431021",n:"桂阳县"},{i:"431024",n:"嘉禾县"},{i:"431025",n:"临武县"},{i:"431026",n:"汝城县"},{i:"431003",n:"苏仙区"},{i:"431022",n:"宜章县"},{i:"431023",n:"永兴县"},{i:"431081",n:"资兴市"}],i:"431000",n:"郴州市"},{c:[{i:"430482",n:"常宁市"},{i:"430424",n:"衡东县"},{i:"430422",n:"衡南县"},{i:"430423",n:"衡山县"},{i:"430421",n:"衡阳县"},{i:"430481",n:"耒阳市"},{i:"430412",n:"南岳区"},{i:"430426",n:"祁东县"},{i:"430407",n:"石鼓区"},{i:"430406",n:"雁峰区"},{i:"430408",n:"蒸湘区"},{i:"430405",n:"珠晖区"}],i:"430400",n:"衡阳市"},{c:[{i:"431223",n:"辰溪县"},{i:"431202",n:"鹤城区"},{i:"431281",n:"洪江市"},{i:"431225",n:"会同县"},{i:"431229",n:"靖州苗族侗族自治县"},{i:"431226",n:"麻阳苗族自治县"},{i:"431230",n:"通道侗族自治县"},{i:"431227",n:"新晃侗族自治县"},{i:"431224",n:"溆浦县"},{i:"431222",n:"沅陵县"},{i:"431228",n:"芷江侗族自治县"},{i:"431221",n:"中方县"}],i:"431200",n:"怀化市"},{c:[{i:"431381",n:"冷水江市"},{i:"431382",n:"涟源市"},{i:"431302",n:"娄星区"},{i:"431321",n:"双峰县"},{i:"431322",n:"新化县"}],i:"431300",n:"娄底市"},{c:[{i:"430511",n:"北塔区"},{i:"430529",n:"城步苗族自治县"},{i:"430503",n:"大祥区"},{i:"430525",n:"洞口县"},{i:"430524",n:"隆回县"},{i:"430521",n:"邵东县"},{i:"430523",n:"邵阳县"},{i:"430502",n:"双清区"},{i:"430527",n:"绥宁县"},{i:"430581",n:"武冈市"},{i:"430528",n:"新宁县"},{i:"430522",n:"新邵县"}],i:"430500",n:"邵阳市"},{c:[{i:"430382",n:"韶山市"},{i:"430321",n:"湘潭县"},{i:"430381",n:"湘乡市"},{i:"430304",n:"岳塘区"},{i:"430302",n:"雨湖区"}],i:"430300",n:"湘潭市"},{c:[{i:"433125",n:"保靖县"},{i:"433123",n:"凤凰县"},{i:"433126",n:"古丈县"},{i:"433124",n:"花垣县"},{i:"433101",n:"吉首市"},{i:"433130",n:"龙山县"},{i:"433122",n:"泸溪县"},{i:"433127",n:"永顺县"}],i:"433100",n:"湘西土家族苗族自治州"},{c:[{i:"430923",n:"安化县"},{i:"430903",n:"赫山区"},{i:"430921",n:"南县"},{i:"430922",n:"桃江县"},{i:"430981",n:"沅江市"},{i:"430902",n:"资阳区"}],i:"430900",n:"益阳市"},{c:[{i:"431124",n:"道县"},{i:"431122",n:"东安县"},{i:"431129",n:"江华瑶族自治县"},{i:"431125",n:"江永县"},{i:"431127",n:"蓝山县"},{i:"431103",n:"冷水滩区"},{i:"431102",n:"零陵区"},{i:"431126",n:"宁远县"},{i:"431121",n:"祁阳县"},{i:"431123",n:"双牌县"},{i:"431128",n:"新田县"}],i:"431100",n:"永州市"},{c:[{i:"430623",n:"华容县"},{i:"430611",n:"君山区"},{i:"430682",n:"临湘市"},{i:"430681",n:"汨罗市"},{i:"430626",n:"平江县"},{i:"430624",n:"湘阴县"},{i:"430602",n:"岳阳楼区"},{i:"430621",n:"岳阳县"},{i:"430603",n:"云溪区"}],i:"430600",n:"岳阳市"},{c:[{i:"430821",n:"慈利县"},{i:"430822",n:"桑植县"},{i:"430811",n:"武陵源区"},{i:"430802",n:"永定区"}],i:"430800",n:"张家界市"},{c:[{i:"430224",n:"茶陵县"},{i:"430202",n:"荷塘区"},{i:"430281",n:"醴陵市"},{i:"430203",n:"芦淞区"},{i:"430204",n:"石峰区"},{i:"430211",n:"天元区"},{i:"430225",n:"炎陵县"},{i:"430223",n:"攸县"},{i:"430221",n:"株洲县"}],i:"430200",n:"株洲市"}],i:"430000",n:"湖南省"},{c:[{c:[{i:"320482",n:"金坛市"},{i:"320481",n:"溧阳市"},{i:"320405",n:"戚墅堰区"},{i:"320402",n:"天宁区"},{i:"320412",n:"武进区"},{i:"320411",n:"新北区"},{i:"320404",n:"钟楼区"}],i:"320400",n:"常州市"},{c:[{i:"320803",n:"楚州区"},{i:"320829",n:"洪泽县"},{i:"320804",n:"淮阴区"},{i:"320831",n:"金湖县"},{i:"320826",n:"涟水县"},{i:"320802",n:"清河区"},{i:"320811",n:"清浦区"},{i:"320830",n:"盱眙县"}],i:"320800",n:"淮安市"},{i:"320281",n:"江阴市"},{c:[{i:"320722",n:"东海县"},{i:"320721",n:"赣榆县"},{i:"320724",n:"灌南县"},{i:"320723",n:"灌云县"},{i:"320706",n:"海州区"},{i:"320703",n:"连云区"},{i:"320705",n:"新浦区"}],i:"320700",n:"连云港市"},{c:[{i:"320103",n:"白下区"},{i:"320125",n:"高淳县"},{i:"320106",n:"鼓楼区"},{i:"320115",n:"江宁区"},{i:"320105",n:"建邺区"},{i:"320124",n:"溧水县"},{i:"320116",n:"六合区"},{i:"320111",n:"浦口区"},{i:"320104",n:"秦淮区"},{i:"320113",n:"栖霞区"},{i:"320107",n:"下关区"},{i:"320102",n:"玄武区"},{i:"320114",n:"雨花台区"}],i:"320100",n:"南京市"},{c:[{i:"320602",n:"崇川区"},{i:"320611",n:"港闸区"},{i:"320621",n:"海安县"},{i:"320684",n:"海门市"},{i:"320693",n:"开发区"},{i:"320681",n:"启东市"},{i:"320623",n:"如东县"},{i:"320682",n:"如皋市"},{i:"320612",n:"通州区"},{i:"320683",n:"通州市"}],i:"320600",n:"南通市"},{c:[{i:"321322",n:"沭阳县"},{i:"321324",n:"泗洪县"},{i:"321323",n:"泗阳县"},{i:"321302",n:"宿城区"},{i:"321311",n:"宿豫区"}],i:"321300",n:"宿迁市"},{c:[{i:"320502",n:"沧浪区"},{i:"320581",n:"常熟市"},{i:"320505",n:"虎丘区"},{i:"320504",n:"金阊区"},{i:"320583",n:"昆山市"},{i:"320503",n:"平江区"},{i:"320585",n:"太仓市"},{i:"320584",n:"吴江市"},{i:"320506",n:"吴中区"},{i:"320507",n:"相城区"},{i:"320594",n:"新区"},{i:"320595",n:"园区"},{i:"320582",n:"张家港市"}],i:"320500",n:"苏州市"},{c:[{i:"321203",n:"高港区"},{i:"321202",n:"海陵区"},{i:"321284",n:"姜堰市"},{i:"321282",n:"靖江市"},{i:"321283",n:"泰兴市"},{i:"321281",n:"兴化市"}],i:"321200",n:"泰州市"},{c:[{i:"320204",n:"北塘区"},{i:"320211",n:"滨湖区"},{i:"320202",n:"崇安区"},{i:"320206",n:"惠山区"},{i:"320203",n:"南长区"},{i:"320296",n:"新区"},{i:"320205",n:"锡山区"},{i:"320282",n:"宜兴市"}],i:"320200",n:"无锡市"},{c:[{i:"320321",n:"丰县"},{i:"320302",n:"鼓楼区"},{i:"320305",n:"贾汪区"},{i:"320304",n:"九里区"},{i:"320322",n:"沛县"},{i:"320382",n:"邳州市"},{i:"320311",n:"泉山区"},{i:"320324",n:"睢宁县"},{i:"320323",n:"铜山县"},{i:"320381",n:"新沂市"},{i:"320303",n:"云龙区"}],i:"320300",n:"徐州市"},{c:[{i:"320922",n:"滨海县"},{i:"320982",n:"大丰市"},{i:"320981",n:"东台市"},{i:"320923",n:"阜宁县"},{i:"320925",n:"建湖县"},{i:"320924",n:"射阳县"},{i:"320902",n:"亭湖区"},{i:"320921",n:"响水县"},{i:"320903",n:"盐都区"}],i:"320900",n:"盐城市"},{c:[{i:"321023",n:"宝应县"},{i:"321084",n:"高邮市"},{i:"321002",n:"广陵区"},{i:"321003",n:"邗江区"},{i:"321088",n:"江都市"},{i:"321092",n:"经济开发区"},{i:"321011",n:"维扬区"},{i:"321081",n:"仪征市"}],i:"321000",n:"扬州市"},{c:[{i:"321112",n:"丹徒区"},{i:"321181",n:"丹阳市"},{i:"321102",n:"京口区"},{i:"321183",n:"句容市"},{i:"321111",n:"润州区"},{i:"321182",n:"扬中市"}],i:"321100",n:"镇江市"}],i:"320000",n:"江苏省"},{c:[{c:[{i:"361024",n:"崇仁县"},{i:"361029",n:"东乡县"},{i:"361030",n:"广昌县"},{i:"361027",n:"金溪县"},{i:"361025",n:"乐安县"},{i:"361022",n:"黎川县"},{i:"361002",n:"临川区"},{i:"361021",n:"南城县"},{i:"361023",n:"南丰县"},{i:"361026",n:"宜黄县"},{i:"361028",n:"资溪县"}],i:"361000",n:"抚州市"},{c:[{i:"360726",n:"安远县"},{i:"360725",n:"崇义县"},{i:"360723",n:"大余县"},{i:"360728",n:"定南县"},{i:"360721",n:"赣县"},{i:"360751",n:"黄金区"},{i:"360733",n:"会昌县"},{i:"360727",n:"龙南县"},{i:"360782",n:"南康市"},{i:"360730",n:"宁都县"},{i:"360729",n:"全南县"},{i:"360781",n:"瑞金市"},{i:"360724",n:"上犹县"},{i:"360735",n:"石城县"},{i:"360722",n:"信丰县"},{i:"360732",n:"兴国县"},{i:"360734",n:"寻乌县"},{i:"360731",n:"于都县"},{i:"360702",n:"章贡区"}],i:"360700",n:"赣州市"},{c:[{i:"360829",n:"安福县"},{i:"360821",n:"吉安县"},{i:"360881",n:"井冈山市"},{i:"360822",n:"吉水县"},{i:"360802",n:"吉州区"},{i:"360803",n:"青原区"},{i:"360827",n:"遂川县"},{i:"360826",n:"泰和县"},{i:"360828",n:"万安县"},{i:"360823",n:"峡江县"},{i:"360824",n:"新干县"},{i:"360825",n:"永丰县"},{i:"360830",n:"永新县"}],i:"360800",n:"吉安市"},{c:[{i:"360202",n:"昌江区"},{i:"360222",n:"浮梁县"},{i:"360281",n:"乐平市"},{i:"360203",n:"珠山区"}],i:"360200",n:"景德镇市"},{c:[{i:"360426",n:"德安县"},{i:"360428",n:"都昌县"},{i:"360429",n:"湖口县"},{i:"360421",n:"九江县"},{i:"360402",n:"庐山区"},{i:"360430",n:"彭泽县"},{i:"360481",n:"瑞昌市"},{i:"360423",n:"武宁县"},{i:"360427",n:"星子县"},{i:"360424",n:"修水县"},{i:"360403",n:"浔阳区"},{i:"360425",n:"永修县"}],i:"360400",n:"九江市"},{c:[{i:"360123",n:"安义县"},{i:"360127",n:"昌北区"},{i:"360102",n:"东湖区"},{i:"360125",n:"红谷滩新区"},{i:"360126",n:"经济技术开发区"},{i:"360124",n:"进贤县"},{i:"360121",n:"南昌县"},{i:"360111",n:"青山湖区"},{i:"360104",n:"青云谱区"},{i:"360105",n:"湾里区"},{i:"360103",n:"西湖区"},{i:"360122",n:"新建县"}],i:"360100",n:"南昌市"},{c:[{i:"360302",n:"安源区"},{i:"360321",n:"莲花县"},{i:"360323",n:"芦溪县"},{i:"360322",n:"上栗县"},{i:"360313",n:"湘东区"}],i:"360300",n:"萍乡市"},{c:[{i:"361181",n:"德兴市"},{i:"361122",n:"广丰县"},{i:"361125",n:"横峰县"},{i:"361128",n:"鄱阳县"},{i:"361124",n:"铅山县"},{i:"361121",n:"上饶县"},{i:"361129",n:"万年县"},{i:"361130",n:"婺源县"},{i:"361102",n:"信州区"},{i:"361126",n:"弋阳县"},{i:"361127",n:"余干县"},{i:"361123",n:"玉山县"}],i:"361100",n:"上饶市"},{c:[{i:"360521",n:"分宜县"},{i:"360502",n:"渝水区"}],i:"360500",n:"新余市"},{c:[{i:"360981",n:"丰城市"},{i:"360921",n:"奉新县"},{i:"360983",n:"高安市"},{i:"360925",n:"靖安县"},{i:"360923",n:"上高县"},{i:"360926",n:"铜鼓县"},{i:"360922",n:"万载县"},{i:"360924",n:"宜丰县"},{i:"360902",n:"袁州区"},{i:"360982",n:"樟树市"}],i:"360900",n:"宜春市"},{c:[{i:"360681",n:"贵溪市"},{i:"360602",n:"月湖区"},{i:"360622",n:"余江县"}],i:"360600",n:"鹰潭市"}],i:"360000",n:"江西省"},{c:[{c:[{i:"220882",n:"大安市"},{i:"220802",n:"洮北区"},{i:"220881",n:"洮南市"},{i:"220822",n:"通榆县"},{i:"220821",n:"镇赉县"}],i:"220800",n:"白城市"},{c:[{i:"220602",n:"八道江区"},{i:"220621",n:"抚松县"},{i:"220625",n:"江源县"},{i:"220622",n:"靖宇县"},{i:"220681",n:"临江市"},{i:"220623",n:"长白朝鲜族自治县"}],i:"220600",n:"白山市"},{c:[{i:"220104",n:"朝阳区"},{i:"220183",n:"德惠市"},{i:"220105",n:"二道区"},{i:"220184",n:"高新技术产业开发区"},{i:"220186",n:"经济技术开发区"},{i:"220187",n:"净月旅游开发区"},{i:"220181",n:"九台市"},{i:"220103",n:"宽城区"},{i:"220106",n:"绿园区"},{i:"220102",n:"南关区"},{i:"220122",n:"农安县"},{i:"220185",n:"汽车产业开发区"},{i:"220112",n:"双阳区"},{i:"220182",n:"榆树市"}],i:"220100",n:"长春市"},{c:[{i:"220202",n:"昌邑区"},{i:"220204",n:"船营区"},{i:"220211",n:"丰满区"},{i:"220282",n:"桦甸市"},{i:"220281",n:"蛟河市"},{i:"220203",n:"龙潭区"},{i:"220284",n:"磐石市"},{i:"220283",n:"舒兰市"},{i:"220221",n:"永吉县"}],i:"220200",n:"吉林市"},{c:[{i:"220421",n:"东丰县"},{i:"220422",n:"东辽县"},{i:"220402",n:"龙山区"},{i:"220403",n:"西安区"}],i:"220400",n:"辽源市"},{c:[{i:"220381",n:"公主岭市"},{i:"220322",n:"梨树县"},{i:"220382",n:"双辽市"},{i:"220303",n:"铁东区"},{i:"220302",n:"铁西区"},{i:"220323",n:"伊通满族自治县"}],i:"220300",n:"四平市"},{c:[{i:"220724",n:"扶余县"},{i:"220702",n:"宁江区"},{i:"220723",n:"乾安县"},{i:"220721",n:"前郭尔罗斯蒙古族自治县"},{i:"220722",n:"长岭县"}],i:"220700",n:"松原市"},{c:[{i:"220502",n:"东昌区"},{i:"220503",n:"二道江区"},{i:"220523",n:"辉南县"},{i:"220582",n:"集安市"},{i:"220524",n:"柳河县"},{i:"220581",n:"梅河口市"},{i:"220521",n:"通化县"}],i:"220500",n:"通化市"},{c:[{i:"222426",n:"安图县"},{i:"222403",n:"敦化市"},{i:"222406",n:"和龙市"},{i:"222404",n:"珲春市"},{i:"222405",n:"龙井市"},{i:"222402",n:"图们市"},{i:"222424",n:"汪清县"},{i:"222401",n:"延吉市"}],i:"222400",n:"延边朝鲜族自治州"}],i:"220000",n:"吉林省"},{c:[{c:[{i:"210351",n:"高新区"},{i:"210381",n:"海城市"},{i:"210304",n:"立山区"},{i:"210311",n:"千山区"},{i:"210321",n:"台安县"},{i:"210302",n:"铁东区"},{i:"210303",n:"铁西区"},{i:"210323",n:"岫岩满族自治县"}],i:"210300",n:"鞍山市"},{c:[{i:"210521",n:"本溪满族自治县"},{i:"210522",n:"桓仁满族自治县"},{i:"210504",n:"明山区"},{i:"210505",n:"南芬区"},{i:"210502",n:"平山区"},{i:"210503",n:"溪湖区"}],i:"210500",n:"本溪市"},{c:[{i:"211381",n:"北票市"},{i:"211321",n:"朝阳县"},{i:"211322",n:"建平县"},{i:"211324",n:"喀喇沁左翼蒙古族自治县"},{i:"211382",n:"凌源市"},{i:"211303",n:"龙城区"},{i:"211302",n:"双塔区"}],i:"211300",n:"朝阳市"},{c:[{i:"210211",n:"甘井子区"},{i:"210213",n:"金州区"},{i:"210251",n:"开发区"},{i:"210297",n:"岭前区"},{i:"210212",n:"旅顺口区"},{i:"210282",n:"普兰店市"},{i:"210204",n:"沙河口区"},{i:"210281",n:"瓦房店市"},{i:"210203",n:"西岗区"},{i:"210224",n:"长海县"},{i:"210202",n:"中山区"},{i:"210283",n:"庄河市"}],i:"210200",n:"大连市"},{c:[{i:"210681",n:"东港市"},{i:"210682",n:"凤城市"},{i:"210624",n:"宽甸满族自治县"},{i:"210602",n:"元宝区"},{i:"210604",n:"振安区"},{i:"210603",n:"振兴区"}],i:"210600",n:"丹东市"},{c:[{i:"210403",n:"东洲区"},{i:"210421",n:"抚顺县"},{i:"210423",n:"清原满族自治县"},{i:"210411",n:"顺城区"},{i:"210404",n:"望花区"},{i:"210422",n:"新宾满族自治县"},{i:"210402",n:"新抚区"}],i:"210400",n:"抚顺市"},{c:[{i:"210921",n:"阜新蒙古族自治县"},{i:"210902",n:"海州区"},{i:"210905",n:"清河门区"},{i:"210904",n:"太平区"},{i:"210911",n:"细河区"},{i:"210903",n:"新邱区"},{i:"210922",n:"彰武县"}],i:"210900",n:"阜新市"},{c:[{i:"211422",n:"建昌县"},{i:"211402",n:"连山区"},{i:"211403",n:"龙港区"},{i:"211404",n:"南票区"},{i:"211421",n:"绥中县"},{i:"211481",n:"兴城市"}],i:"211400",n:"葫芦岛市"},{c:[{i:"210782",n:"北镇市"},{i:"210702",n:"古塔区"},{i:"210726",n:"黑山县"},{i:"210781",n:"凌海市"},{i:"210703",n:"凌河区"},{i:"210711",n:"太和区"},{i:"210727",n:"义县"}],i:"210700",n:"锦州市"},{c:[{i:"211002",n:"白塔区"},{i:"211081",n:"灯塔市"},{i:"211005",n:"弓长岭区"},{i:"211004",n:"宏伟区"},{i:"211021",n:"辽阳县"},{i:"211011",n:"太子河区"},{i:"211003",n:"文圣区"}],i:"211000",n:"辽阳市"},{c:[{i:"211121",n:"大洼县"},{i:"211122",n:"盘山县"},{i:"211102",n:"双台子区"},{i:"211103",n:"兴隆台区"}],i:"211100",n:"盘锦市"},{c:[{i:"210104",n:"大东区"},{i:"210112",n:"东陵区"},{i:"210124",n:"法库县"},{i:"210102",n:"和平区"},{i:"210105",n:"皇姑区"},{i:"210182",n:"浑南新区"},{i:"210123",n:"康平县"},{i:"210122",n:"辽中县"},{i:"210184",n:"沈北新区"},{i:"210103",n:"沈河区"},{i:"210111",n:"苏家屯区"},{i:"210106",n:"铁西区"},{i:"210113",n:"新城子区"},{i:"210181",n:"新民市"},{i:"210114",n:"于洪区"},{i:"210183",n:"张士开发区"}],i:"210100",n:"沈阳市"},{c:[{i:"211224",n:"昌图县"},{i:"211281",n:"调兵山市"},{i:"211282",n:"开原市"},{i:"211204",n:"清河区"},{i:"211221",n:"铁岭县"},{i:"211223",n:"西丰县"},{i:"211202",n:"银州区"}],i:"211200",n:"铁岭市"},{c:[{i:"210804",n:"鲅鱼圈区"},{i:"210882",n:"大石桥市"},{i:"210881",n:"盖州市"},{i:"210811",n:"老边区"},{i:"210803",n:"西市区"},{i:"210802",n:"站前区"}],i:"210800",n:"营口市"}],i:"210000",n:"辽宁省"},{c:[{c:[{i:"152922",n:"阿拉善右旗"},{i:"152921",n:"阿拉善左旗"},{i:"152923",n:"额济纳旗"}],i:"152900",n:"阿拉善盟"},{c:[{i:"150206",n:"白云矿区"},{i:"150223",n:"达尔罕茂明安联合旗"},{i:"150202",n:"东河区"},{i:"150222",n:"固阳县"},{i:"150207",n:"九原区"},{i:"150203",n:"昆都仑区"},{i:"150204",n:"青山区"},{i:"150205",n:"石拐区"},{i:"150221",n:"土默特右旗"}],i:"150200",n:"包头市"},{c:[{i:"150822",n:"磴口县"},{i:"150826",n:"杭锦后旗"},{i:"150802",n:"临河区"},{i:"150825",n:"乌拉特后旗"},{i:"150823",n:"乌拉特前旗"},{i:"150824",n:"乌拉特中旗"},{i:"150821",n:"五原县"}],i:"150800",n:"巴彦淖尔市"},{c:[{i:"150421",n:"阿鲁科尔沁旗"},{i:"150430",n:"敖汉旗"},{i:"150423",n:"巴林右旗"},{i:"150422",n:"巴林左旗"},{i:"150402",n:"红山区"},{i:"150428",n:"喀喇沁旗"},{i:"150425",n:"克什克腾旗"},{i:"150424",n:"林西县"},{i:"150429",n:"宁城县"},{i:"150404",n:"松山区"},{i:"150426",n:"翁牛特旗"},{i:"150403",n:"元宝山区"}],i:"150400",n:"赤峰市"},{c:[{i:"150621",n:"达拉特旗"},{i:"150602",n:"东胜区"},{i:"150624",n:"鄂托克旗"},{i:"150623",n:"鄂托克前旗"},{i:"150625",n:"杭锦旗"},{i:"150626",n:"乌审旗"},{i:"150627",n:"伊金霍洛旗"},{i:"150622",n:"准格尔旗"}],i:"150600",n:"鄂尔多斯市"},{c:[{i:"150123",n:"和林格尔县"},{i:"150103",n:"回民区"},{i:"150124",n:"清水河县"},{i:"150105",n:"赛罕区"},{i:"150121",n:"土默特左旗"},{i:"150122",n:"托克托县"},{i:"150125",n:"武川县"},{i:"150102",n:"新城区"},{i:"150104",n:"玉泉区"}],i:"150100",n:"呼和浩特市"},{c:[{i:"150721",n:"阿荣旗"},{i:"150725",n:"陈巴尔虎旗"},{i:"150784",n:"额尔古纳市"},{i:"150723",n:"鄂伦春自治旗"},{i:"150724",n:"鄂温克族自治旗"},{i:"150785",n:"根河市"},{i:"150702",n:"海拉尔区"},{i:"150781",n:"满洲里市"},{i:"150722",n:"莫力达瓦达斡尔族自治旗"},{i:"150727",n:"新巴尔虎右旗"},{i:"150726",n:"新巴尔虎左旗"},{i:"150782",n:"牙克石市"},{i:"150783",n:"扎兰屯市"}],i:"150700",n:"呼伦贝尔市"},{c:[{i:"150581",n:"霍林郭勒市"},{i:"150523",n:"开鲁县"},{i:"150502",n:"科尔沁区"},{i:"150522",n:"科尔沁左翼后旗"},{i:"150521",n:"科尔沁左翼中旗"},{i:"150524",n:"库伦旗"},{i:"150525",n:"奈曼旗"},{i:"150526",n:"扎鲁特旗"}],i:"150500",n:"通辽市"},{c:[{i:"150302",n:"海勃湾区"},{i:"150303",n:"海南区"},{i:"150304",n:"乌达区"}],i:"150300",n:"乌海市"},{c:[{i:"150928",n:"察哈尔右翼后旗"},{i:"150926",n:"察哈尔右翼前旗"},{i:"150927",n:"察哈尔右翼中旗"},{i:"150981",n:"丰镇市"},{i:"150922",n:"化德县"},{i:"150902",n:"集宁区"},{i:"150925",n:"凉城县"},{i:"150923",n:"商都县"},{i:"150929",n:"四子王旗"},{i:"150924",n:"兴和县"},{i:"150921",n:"卓资县"}],i:"150900",n:"乌兰察布市"},{c:[{i:"152522",n:"阿巴嘎旗"},{i:"152525",n:"东乌珠穆沁旗"},{i:"152531",n:"多伦县"},{i:"152501",n:"二连浩特市"},{i:"152524",n:"苏尼特右旗"},{i:"152523",n:"苏尼特左旗"},{i:"152527",n:"太仆寺旗"},{i:"152528",n:"镶黄旗"},{i:"152502",n:"锡林浩特市"},{i:"152526",n:"西乌珠穆沁旗"},{i:"152530",n:"正蓝旗"},{i:"152529",n:"正镶白旗"}],i:"152500",n:"锡林郭勒盟"},{c:[{i:"152202",n:"阿尔山市"},{i:"152221",n:"科尔沁右翼前旗"},{i:"152222",n:"科尔沁右翼中旗"},{i:"152224",n:"突泉县"},{i:"152201",n:"乌兰浩特市"},{i:"152223",n:"扎赉特旗"}],i:"152200",n:"兴安盟"}],i:"150000",n:"内蒙古自治区"},{c:[{c:[{i:"640424",n:"泾源县"},{i:"640423",n:"隆德县"},{i:"640425",n:"彭阳县"},{i:"640422",n:"西吉县"},{i:"640402",n:"原州区"}],i:"640400",n:"固原市"},{c:[{i:"640202",n:"大武口区"},{i:"640205",n:"惠农区"},{i:"640221",n:"平罗县"}],i:"640200",n:"石嘴山市"},{c:[{i:"640303",n:"红寺堡区"},{i:"640302",n:"利通区"},{i:"640381",n:"青铜峡市"},{i:"640324",n:"同心县"},{i:"640323",n:"盐池县"}],i:"640300",n:"吴忠市"},{c:[{i:"640122",n:"贺兰县"},{i:"640106",n:"金凤区"},{i:"640181",n:"灵武市"},{i:"640104",n:"兴庆区"},{i:"640105",n:"西夏区"},{i:"640121",n:"永宁县"}],i:"640100",n:"银川市"},{c:[{i:"640522",n:"海原县"},{i:"640502",n:"沙坡头区"},{i:"640521",n:"中宁县"}],i:"640500",n:"中卫市"}],i:"640000",n:"宁夏回族自治区"},{c:[{c:[{i:"632622",n:"班玛县"},{i:"632624",n:"达日县"},{i:"632623",n:"甘德县"},{i:"632625",n:"久治县"},{i:"632626",n:"玛多县"},{i:"632621",n:"玛沁县"}],i:"632600",n:"果洛藏族自治州"},{c:[{i:"632224",n:"刚察县"},{i:"632223",n:"海晏县"},{i:"632221",n:"门源回族自治县"},{i:"632222",n:"祁连县"}],i:"632200",n:"海北藏族自治州"},{c:[{i:"632127",n:"化隆回族自治县"},{i:"632126",n:"互助土族自治县"},{i:"632123",n:"乐都县"},{i:"632122",n:"民和回族土族自治县"},{i:"632121",n:"平安县"},{i:"632128",n:"循化撒拉族自治县"}],i:"632100",n:"海东地区"},{c:[{i:"632521",n:"共和县"},{i:"632523",n:"贵德县"},{i:"632525",n:"贵南县"},{i:"632522",n:"同德县"},{i:"632524",n:"兴海县"}],i:"632500",n:"海南藏族自治州"},{c:[{i:"632802",n:"德令哈市"},{i:"632822",n:"都兰县"},{i:"632801",n:"格尔木市"},{i:"632823",n:"天峻县"},{i:"632821",n:"乌兰县"}],i:"632800",n:"海西蒙古族藏族自治州"},{c:[{i:"632324",n:"河南蒙古族自治县"},{i:"632322",n:"尖扎县"},{i:"632321",n:"同仁县"},{i:"632323",n:"泽库县"}],i:"632300",n:"黄南藏族自治州"},{c:[{i:"630105",n:"城北区"},{i:"630102",n:"城东区"},{i:"630104",n:"城西区"},{i:"630103",n:"城中区"},{i:"630121",n:"大通回族土族自治县"},{i:"630123",n:"湟源县"},{i:"630122",n:"湟中县"}],i:"630100",n:"西宁市"},{c:[{i:"632723",n:"称多县"},{i:"632725",n:"囊谦县"},{i:"632726",n:"曲麻莱县"},{i:"632721",n:"玉树县"},{i:"632722",n:"杂多县"},{i:"632724",n:"治多县"}],i:"632700",n:"玉树藏族自治州"}],i:"630000",n:"青海省"},{c:[{c:[{i:"371602",n:"滨城区"},{i:"371625",n:"博兴县"},{i:"371621",n:"惠民县"},{i:"371623",n:"无棣县"},{i:"371622",n:"阳信县"},{i:"371624",n:"沾化县"},{i:"371626",n:"邹平县"}],i:"371600",n:"滨州市"},{c:[{i:"371402",n:"德城区"},{i:"371451",n:"开发区"},{i:"371481",n:"乐陵市"},{i:"371421",n:"陵县"},{i:"371424",n:"临邑县"},{i:"371422",n:"宁津县"},{i:"371426",n:"平原县"},{i:"371425",n:"齐河县"},{i:"371423",n:"庆云县"},{i:"371428",n:"武城县"},{i:"371427",n:"夏津县"},{i:"371482",n:"禹城市"}],i:"371400",n:"德州市"},{c:[{i:"370590",n:"东城区"},{i:"370502",n:"东营区"},{i:"370523",n:"广饶县"},{i:"370503",n:"河口区"},{i:"370521",n:"垦利县"},{i:"370522",n:"利津县"},{i:"370589",n:"西城区"}],i:"370500",n:"东营市"},{c:[{i:"371721",n:"曹县"},{i:"371723",n:"成武县"},{i:"371722",n:"单县"},{i:"371727",n:"定陶县"},{i:"371728",n:"东明县"},{i:"371726",n:"鄄城县"},{i:"371724",n:"巨野县"},{i:"371702",n:"牡丹区"},{i:"371725",n:"郓城县"}],i:"371700",n:"菏泽市"},{c:[{i:"370104",n:"槐荫区"},{i:"370125",n:"济阳县"},{i:"370112",n:"历城区"},{i:"370102",n:"历下区"},{i:"370124",n:"平阴县"},{i:"370126",n:"商河县"},{i:"370103",n:"市中区"},{i:"370105",n:"天桥区"},{i:"370113",n:"长清区"},{i:"370181",n:"章丘市"}],i:"370100",n:"济南市"},{c:[{i:"370829",n:"嘉祥县"},{i:"370828",n:"金乡县"},{i:"370832",n:"梁山县"},{i:"370881",n:"曲阜市"},{i:"370811",n:"任城区"},{i:"370802",n:"市中区"},{i:"370831",n:"泗水县"},{i:"370826",n:"微山县"},{i:"370830",n:"汶上县"},{i:"370882",n:"兖州市"},{i:"370827",n:"鱼台县"},{i:"370883",n:"邹城市"}],i:"370800",n:"济宁市"},{c:[{i:"371203",n:"钢城区"},{i:"371202",n:"莱城区"}],i:"371200",n:"莱芜市"},{c:[{i:"371523",n:"茌平县"},{i:"371524",n:"东阿县"},{i:"371502",n:"东昌府区"},{i:"371526",n:"高唐县"},{i:"371525",n:"冠县"},{i:"371581",n:"临清市"},{i:"371522",n:"莘县"},{i:"371521",n:"阳谷县"}],i:"371500",n:"聊城市"},{c:[{i:"371324",n:"苍山县"},{i:"371325",n:"费县"},{i:"371312",n:"河东区"},{i:"371327",n:"莒南县"},{i:"371302",n:"兰山区"},{i:"371329",n:"临沭县"},{i:"371311",n:"罗庄区"},{i:"371328",n:"蒙阴县"},{i:"371326",n:"平邑县"},{i:"371322",n:"郯城县"},{i:"371321",n:"沂南县"},{i:"371323",n:"沂水县"}],i:"371300",n:"临沂市"},{c:[{i:"370214",n:"城阳区"},{i:"370211",n:"黄岛区"},{i:"370284",n:"胶南市"},{i:"370281",n:"胶州市"},{i:"370282",n:"即墨市"},{i:"370251",n:"开发区"},{i:"370285",n:"莱西市"},{i:"370212",n:"崂山区"},{i:"370213",n:"李沧区"},{i:"370283",n:"平度市"},{i:"370203",n:"市北区"},{i:"370202",n:"市南区"},{i:"370205",n:"四方区"}],i:"370200",n:"青岛市"},{c:[{i:"371102",n:"东港区"},{i:"371122",n:"莒县"},{i:"371103",n:"岚山区"},{i:"371121",n:"五莲县"}],i:"371100",n:"日照市"},{c:[{i:"370903",n:"岱岳区"},{i:"370923",n:"东平县"},{i:"370983",n:"肥城市"},{i:"370921",n:"宁阳县"},{i:"370902",n:"泰山区"},{i:"370982",n:"新泰市"}],i:"370900",n:"泰安市"},{c:[{i:"370784",n:"安丘市"},{i:"370725",n:"昌乐县"},{i:"370786",n:"昌邑市"},{i:"370704",n:"坊子区"},{i:"370785",n:"高密市"},{i:"370703",n:"寒亭区"},{i:"370751",n:"开发区"},{i:"370705",n:"奎文区"},{i:"370724",n:"临朐县"},{i:"370781",n:"青州市"},{i:"370783",n:"寿光市"},{i:"370702",n:"潍城区"},{i:"370782",n:"诸城市"}],i:"370700",n:"潍坊市"},{c:[{i:"371002",n:"环翠区"},{i:"371082",n:"荣成市"},{i:"371083",n:"乳山市"},{i:"371081",n:"文登市"}],i:"371000",n:"威海市"},{c:[{i:"370611",n:"福山区"},{i:"370687",n:"海阳市"},{i:"370613",n:"莱山区"},{i:"370682",n:"莱阳市"},{i:"370683",n:"莱州市"},{i:"370681",n:"龙口市"},{i:"370612",n:"牟平区"},{i:"370684",n:"蓬莱市"},{i:"370686",n:"栖霞市"},{i:"370634",n:"长岛县"},{i:"370685",n:"招远市"},{i:"370602",n:"芝罘区"}],i:"370600",n:"烟台市"},{c:[{i:"370406",n:"山亭区"},{i:"370402",n:"市中区"},{i:"370405",n:"台儿庄区"},{i:"370481",n:"滕州市"},{i:"370403",n:"薛城区"},{i:"370404",n:"峄城区"}],i:"370400",n:"枣庄市"},{c:[{i:"370304",n:"博山区"},{i:"370322",n:"高青县"},{i:"370321",n:"桓台县"},{i:"370305",n:"临淄区"},{i:"370323",n:"沂源县"},{i:"370303",n:"张店区"},{i:"370306",n:"周村区"},{i:"370302",n:"淄川区"}],i:"370300",n:"淄博市"}],i:"370000",n:"山东省"},{c:[{c:[{i:"310113",n:"宝山区"},{i:"310230",n:"崇明县"},{i:"310152",n:"川沙区"},{i:"310120",n:"奉贤区"},{i:"310109",n:"虹口区"},{i:"310101",n:"黄浦区"},{i:"310114",n:"嘉定区"},{i:"310106",n:"静安区"},{i:"310116",n:"金山区"},{i:"310103",n:"卢湾区"},{i:"310112",n:"闵行区"},{i:"310119",n:"南汇区"},{i:"310115",n:"浦东新区"},{i:"310107",n:"普陀区"},{i:"310118",n:"青浦区"},{i:"310117",n:"松江区"},{i:"310104",n:"徐汇区"},{i:"310110",n:"杨浦区"},{i:"310108",n:"闸北区"},{i:"310105",n:"长宁区"}],i:"310100",n:"上海市"}],i:"310000",n:"上海"},{c:[{c:[{i:"140421",n:"长治县"},{i:"140482",n:"城区"},{i:"140484",n:"高新区"},{i:"140427",n:"壶关县"},{i:"140483",n:"郊区"},{i:"140426",n:"黎城县"},{i:"140481",n:"潞城市"},{i:"140425",n:"平顺县"},{i:"140430",n:"沁县"},{i:"140431",n:"沁源县"},{i:"140424",n:"屯留县"},{i:"140429",n:"武乡县"},{i:"140423",n:"襄垣县"},{i:"140428",n:"长子县"}],i:"140400",n:"长治市"},{c:[{i:"140202",n:"城区"},{i:"140227",n:"大同县"},{i:"140223",n:"广灵县"},{i:"140225",n:"浑源县"},{i:"140203",n:"矿区"},{i:"140224",n:"灵丘县"},{i:"140211",n:"南郊区"},{i:"140222",n:"天镇县"},{i:"140212",n:"新荣区"},{i:"140221",n:"阳高县"},{i:"140226",n:"左云县"}],i:"140200",n:"大同市"},{c:[{i:"140502",n:"城区"},{i:"140581",n:"高平市"},{i:"140524",n:"陵川县"},{i:"140521",n:"沁水县"},{i:"140522",n:"阳城县"},{i:"140525",n:"泽州县"}],i:"140500",n:"晋城市"},{c:[{i:"140723",n:"和顺县"},{i:"140781",n:"介休市"},{i:"140729",n:"灵石县"},{i:"140728",n:"平遥县"},{i:"140727",n:"祁县"},{i:"140725",n:"寿阳县"},{i:"140726",n:"太谷县"},{i:"140724",n:"昔阳县"},{i:"140702",n:"榆次区"},{i:"140721",n:"榆社县"},{i:"140722",n:"左权县"}],i:"140700",n:"晋中市"},{c:[{i:"141026",n:"安泽县"},{i:"141030",n:"大宁县"},{i:"141034",n:"汾西县"},{i:"141027",n:"浮山县"},{i:"141025",n:"古县"},{i:"141024",n:"洪洞县"},{i:"141081",n:"侯马市"},{i:"141082",n:"霍州市"},{i:"141028",n:"吉县"},{i:"141033",n:"蒲县"},{i:"141021",n:"曲沃县"},{i:"141023",n:"襄汾县"},{i:"141029",n:"乡宁县"},{i:"141031",n:"隰县"},{i:"141002",n:"尧都区"},{i:"141022",n:"翼城县"},{i:"141032",n:"永和县"}],i:"141000",n:"临汾市"},{c:[{i:"141128",n:"方山县"},{i:"141182",n:"汾阳市"},{i:"141122",n:"交城县"},{i:"141130",n:"交口县"},{i:"141127",n:"岚县"},{i:"141124",n:"临县"},{i:"141102",n:"离石区"},{i:"141125",n:"柳林县"},{i:"141126",n:"石楼县"},{i:"141121",n:"文水县"},{i:"141181",n:"孝义市"},{i:"141123",n:"兴县"},{i:"141129",n:"中阳县"}],i:"141100",n:"吕梁市"},{c:[{i:"140624",n:"怀仁县"},{i:"140603",n:"平鲁区"},{i:"140621",n:"山阴县"},{i:"140602",n:"朔城区"},{i:"140622",n:"应县"},{i:"140623",n:"右玉县"}],i:"140600",n:"朔州市"},{c:[{i:"140181",n:"古交市"},{i:"140108",n:"尖草坪区"},{i:"140110",n:"晋源区"},{i:"140123",n:"娄烦县"},{i:"140121",n:"清徐县"},{i:"140109",n:"万柏林区"},{i:"140105",n:"小店区"},{i:"140107",n:"杏花岭区"},{i:"140122",n:"阳曲县"},{i:"140106",n:"迎泽区"}],i:"140100",n:"太原市"},{c:[{i:"140931",n:"保德县"},{i:"140923",n:"代县"},{i:"140921",n:"定襄县"},{i:"140924",n:"繁峙县"},{i:"140930",n:"河曲县"},{i:"140926",n:"静乐县"},{i:"140929",n:"岢岚县"},{i:"140925",n:"宁武县"},{i:"140932",n:"偏关县"},{i:"140927",n:"神池县"},{i:"140922",n:"五台县"},{i:"140928",n:"五寨县"},{i:"140902",n:"忻府区"},{i:"140981",n:"原平市"}],i:"140900",n:"忻州市"},{c:[{i:"140302",n:"城区"},{i:"140311",n:"郊区"},{i:"140303",n:"矿区"},{i:"140321",n:"平定县"},{i:"140322",n:"盂县"}],i:"140300",n:"阳泉市"},{c:[{i:"140882",n:"河津市"},{i:"140826",n:"绛县"},{i:"140824",n:"稷山县"},{i:"140821",n:"临猗县"},{i:"140829",n:"平陆县"},{i:"140830",n:"芮城县"},{i:"140822",n:"万荣县"},{i:"140823",n:"闻喜县"},{i:"140828",n:"夏县"},{i:"140825",n:"新绛县"},{i:"140802",n:"盐湖区"},{i:"140881",n:"永济市"},{i:"140827",n:"垣曲县"}],i:"140800",n:"运城市"}],i:"140000",n:"山西省"},{c:[{c:[{i:"610929",n:"白河县"},{i:"610902",n:"汉滨区"},{i:"610921",n:"汉阴县"},{i:"610925",n:"岚皋县"},{i:"610923",n:"宁陕县"},{i:"610926",n:"平利县"},{i:"610922",n:"石泉县"},{i:"610928",n:"旬阳县"},{i:"610927",n:"镇坪县"},{i:"610924",n:"紫阳县"}],i:"610900",n:"安康市"},{c:[{i:"610304",n:"陈仓区"},{i:"610330",n:"凤县"},{i:"610322",n:"凤翔县"},{i:"610324",n:"扶风县"},{i:"610303",n:"金台区"},{i:"610329",n:"麟游县"},{i:"610327",n:"陇县"},{i:"610326",n:"眉县"},{i:"610328",n:"千阳县"},{i:"610323",n:"岐山县"},{i:"610331",n:"太白县"},{i:"610302",n:"渭滨区"}],i:"610300",n:"宝鸡市"},{c:[{i:"610722",n:"城固县"},{i:"610730",n:"佛坪县"},{i:"610702",n:"汉台区"},{i:"610729",n:"留坝县"},{i:"610727",n:"略阳县"},{i:"610725",n:"勉县"},{i:"610721",n:"南郑县"},{i:"610726",n:"宁强县"},{i:"610724",n:"西乡县"},{i:"610723",n:"洋县"},{i:"610728",n:"镇巴县"}],i:"610700",n:"汉中市"},{c:[{i:"611022",n:"丹凤县"},{i:"611021",n:"洛南县"},{i:"611023",n:"商南县"},{i:"611002",n:"商州区"},{i:"611024",n:"山阳县"},{i:"611025",n:"镇安县"},{i:"611026",n:"柞水县"}],i:"611000",n:"商洛市"},{c:[{i:"610202",n:"王益区"},{i:"610204",n:"耀州区"},{i:"610222",n:"宜君县"},{i:"610203",n:"印台区"}],i:"610200",n:"铜川市"},{c:[{i:"610527",n:"白水县"},{i:"610525",n:"澄城县"},{i:"610523",n:"大荔县"},{i:"610528",n:"富平县"},{i:"610581",n:"韩城市"},{i:"610524",n:"合阳县"},{i:"610521",n:"华县"},{i:"610582",n:"华阴市"},{i:"610502",n:"临渭区"},{i:"610526",n:"蒲城县"},{i:"610522",n:"潼关县"}],i:"610500",n:"渭南市"},{c:[{i:"610111",n:"灞桥区"},{i:"610103",n:"碑林区"},{i:"610126",n:"高陵县"},{i:"610125",n:"户县"},{i:"610122",n:"蓝田县"},{i:"610104",n:"莲湖区"},{i:"610115",n:"临潼区"},{i:"610112",n:"未央区"},{i:"610102",n:"新城区"},{i:"610114",n:"阎良区"},{i:"610113",n:"雁塔区"},{i:"610116",n:"长安区"},{i:"610124",n:"周至县"}],i:"610100",n:"西安市"},{c:[{i:"610427",n:"彬县"},{i:"610430",n:"淳化县"},{i:"610423",n:"泾阳县"},{i:"610425",n:"礼泉县"},{i:"610424",n:"乾县"},{i:"610402",n:"秦都区"},{i:"610422",n:"三原县"},{i:"610404",n:"渭城区"},{i:"610431",n:"武功县"},{i:"610481",n:"兴平市"},{i:"610429",n:"旬邑县"},{i:"610403",n:"杨凌区"},{i:"610426",n:"永寿县"},{i:"610428",n:"长武县"}],i:"610400",n:"咸阳市"},{c:[{i:"610624",n:"安塞县"},{i:"610602",n:"宝塔区"},{i:"610628",n:"富县"},{i:"610627",n:"甘泉县"},{i:"610632",n:"黄陵县"},{i:"610631",n:"黄龙县"},{i:"610629",n:"洛川县"},{i:"610626",n:"吴起县"},{i:"610622",n:"延川县"},{i:"610621",n:"延长县"},{i:"610630",n:"宜川县"},{i:"610625",n:"志丹县"},{i:"610623",n:"子长县"}],i:"610600",n:"延安市"},{c:[{i:"610825",n:"定边县"},{i:"610822",n:"府谷县"},{i:"610823",n:"横山县"},{i:"610828",n:"佳县"},{i:"610824",n:"靖边县"},{i:"610827",n:"米脂县"},{i:"610830",n:"清涧县"},{i:"610821",n:"神木县"},{i:"610826",n:"绥德县"},{i:"610829",n:"吴堡县"},{i:"610802",n:"榆阳区"},{i:"610831",n:"子洲县"}],i:"610800",n:"榆林市"}],i:"610000",n:"陕西省"},{c:[{c:[{i:"513231",n:"阿坝县"},{i:"513228",n:"黑水县"},{i:"513233",n:"红原县"},{i:"513226",n:"金川县"},{i:"513225",n:"九寨沟县"},{i:"513222",n:"理县"},{i:"513229",n:"马尔康县"},{i:"513223",n:"茂县"},{i:"513230",n:"壤塘县"},{i:"513232",n:"若尔盖县"},{i:"513224",n:"松潘县"},{i:"513221",n:"汶川县"},{i:"513227",n:"小金县"}],i:"513200",n:"阿坝藏族羌族自治州"},{c:[{i:"511902",n:"巴州区"},{i:"511922",n:"南江县"},{i:"511923",n:"平昌县"},{i:"511921",n:"通江县"}],i:"511900",n:"巴中市"},{c:[{i:"510108",n:"成华区"},{i:"510184",n:"崇州市"},{i:"510129",n:"大邑县"},{i:"510181",n:"都江堰市"},{i:"510104",n:"锦江区"},{i:"510106",n:"金牛区"},{i:"510121",n:"金堂县"},{i:"510112",n:"龙泉驿区"},{i:"510182",n:"彭州市"},{i:"510124",n:"郫县"},{i:"510131",n:"蒲江县"},{i:"510113",n:"青白江区"},{i:"510105",n:"青羊区"},{i:"510183",n:"邛崃市"},{i:"510122",n:"双流县"},{i:"510115",n:"温江区"},{i:"510107",n:"武侯区"},{i:"510114",n:"新都区"},{i:"510132",n:"新津县"}],i:"510100",n:"成都市"},{c:[{i:"511721",n:"达县"},{i:"511724",n:"大竹县"},{i:"511723",n:"开江县"},{i:"511725",n:"渠县"},{i:"511702",n:"通川区"},{i:"511781",n:"万源市"},{i:"511722",n:"宣汉县"}],i:"511700",n:"达州市"},{c:[{i:"510681",n:"广汉市"},{i:"510603",n:"旌阳区"},{i:"510626",n:"罗江县"},{i:"510683",n:"绵竹市"},{i:"510682",n:"什邡市"},{i:"510623",n:"中江县"}],i:"510600",n:"德阳市"},{c:[{i:"513331",n:"白玉县"},{i:"513335",n:"巴塘县"},{i:"513323",n:"丹巴县"},{i:"513337",n:"稻城县"},{i:"513326",n:"道孚县"},{i:"513330",n:"德格县"},{i:"513338",n:"得荣县"},{i:"513328",n:"甘孜县"},{i:"513324",n:"九龙县"},{i:"513321",n:"康定县"},{i:"513334",n:"理塘县"},{i:"513322",n:"泸定县"},{i:"513327",n:"炉霍县"},{i:"513333",n:"色达县"},{i:"513332",n:"石渠县"},{i:"513336",n:"乡城县"},{i:"513329",n:"新龙县"},{i:"513325",n:"雅江县"}],i:"513300",n:"甘孜藏族自治州"},{c:[{i:"511602",n:"广安区"},{i:"511681",n:"华蓥市"},{i:"511623",n:"邻水县"},{i:"511682",n:"市辖区"},{i:"511622",n:"武胜县"},{i:"511621",n:"岳池县"}],i:"511600",n:"广安市"},{c:[{i:"510824",n:"苍溪县"},{i:"510812",n:"朝天区"},{i:"510823",n:"剑阁县"},{i:"510822",n:"青川县"},{i:"510802",n:"市中区"},{i:"510821",n:"旺苍县"},{i:"510811",n:"元坝区"}],i:"510800",n:"广元市"},{c:[{i:"511132",n:"峨边彝族自治县"},{i:"511181",n:"峨眉山市"},{i:"511126",n:"夹江县"},{i:"511123",n:"犍为县"},{i:"511124",n:"井研县"},{i:"511113",n:"金口河区"},{i:"511133",n:"马边彝族自治县"},{i:"511129",n:"沐川县"},{i:"511111",n:"沙湾区"},{i:"511102",n:"市中区"},{i:"511112",n:"五通桥区"}],i:"511100",n:"乐山市"},{c:[{i:"513429",n:"布拖县"},{i:"513424",n:"德昌县"},{i:"513435",n:"甘洛县"},{i:"513426",n:"会东县"},{i:"513425",n:"会理县"},{i:"513430",n:"金阳县"},{i:"513437",n:"雷波县"},{i:"513436",n:"美姑县"},{i:"513433",n:"冕宁县"},{i:"513422",n:"木里藏族自治县"},{i:"513427",n:"宁南县"},{i:"513428",n:"普格县"},{i:"513401",n:"西昌市"},{i:"513432",n:"喜德县"},{i:"513423",n:"盐源县"},{i:"513434",n:"越西县"},{i:"513431",n:"昭觉县"}],i:"513400",n:"凉山彝族自治州"},{c:[{i:"510525",n:"古蔺县"},{i:"510522",n:"合江县"},{i:"510502",n:"江阳区"},{i:"510504",n:"龙马潭区"},{i:"510521",n:"泸县"},{i:"510503",n:"纳溪区"},{i:"510524",n:"叙永县"}],i:"510500",n:"泸州市"},{c:[{i:"511424",n:"丹棱县"},{i:"511402",n:"东坡区"},{i:"511423",n:"洪雅县"},{i:"511422",n:"彭山县"},{i:"511425",n:"青神县"},{i:"511421",n:"仁寿县"}],i:"511400",n:"眉山市"},{c:[{i:"510724",n:"安县"},{i:"510726",n:"北川羌族自治县"},{i:"510703",n:"涪城区"},{i:"510751",n:"高新区"},{i:"510781",n:"江油市"},{i:"510727",n:"平武县"},{i:"510722",n:"三台县"},{i:"510723",n:"盐亭县"},{i:"510704",n:"游仙区"},{i:"510725",n:"梓潼县"}],i:"510700",n:"绵阳市"},{c:[{i:"511303",n:"高坪区"},{i:"511304",n:"嘉陵区"},{i:"511381",n:"阆中市"},{i:"511321",n:"南部县"},{i:"511323",n:"蓬安县"},{i:"511302",n:"顺庆区"},{i:"511325",n:"西充县"},{i:"511324",n:"仪陇县"},{i:"511322",n:"营山县"}],i:"511300",n:"南充市"},{c:[{i:"511011",n:"东兴区"},{i:"511028",n:"隆昌县"},{i:"511002",n:"市中区"},{i:"511024",n:"威远县"},{i:"511025",n:"资中县"}],i:"511000",n:"内江市"},{c:[{i:"510402",n:"东区"},{i:"510421",n:"米易县"},{i:"510411",n:"仁和区"},{i:"510403",n:"西区"},{i:"510422",n:"盐边县"}],i:"510400",n:"攀枝花市"},{c:[{i:"510904",n:"安居区"},{i:"510903",n:"船山区"},{i:"510923",n:"大英县"},{i:"510921",n:"蓬溪县"},{i:"510922",n:"射洪县"}],i:"510900",n:"遂宁市"},{c:[{i:"511827",n:"宝兴县"},{i:"511823",n:"汉源县"},{i:"511826",n:"芦山县"},{i:"511821",n:"名山县"},{i:"511824",n:"石棉县"},{i:"511825",n:"天全县"},{i:"511822",n:"荥经县"},{i:"511802",n:"雨城区"}],i:"511800",n:"雅安市"},{c:[{i:"511502",n:"翠屏区"},{i:"511525",n:"高县"},{i:"511526",n:"珙县"},{i:"511523",n:"江安县"},{i:"511522",n:"南溪县"},{i:"511529",n:"屏山县"},{i:"511528",n:"兴文县"},{i:"511521",n:"宜宾县"},{i:"511527",n:"筠连县"},{i:"511524",n:"长宁县"}],i:"511500",n:"宜宾市"},{c:[{i:"510304",n:"大安区"},{i:"510322",n:"富顺县"},{i:"510303",n:"贡井区"},{i:"510321",n:"荣县"},{i:"510311",n:"沿滩区"},{i:"510302",n:"自流井区"}],i:"510300",n:"自贡市"},{c:[{i:"512021",n:"安岳县"},{i:"512081",n:"简阳市"},{i:"512022",n:"乐至县"},{i:"512002",n:"雁江区"}],i:"512000",n:"资阳市"}],i:"510000",n:"四川省"},{c:[{c:[{i:"710205",n:"鼓山区"},{i:"710210",n:"楠梓区"},{i:"710202",n:"前金区"},{i:"710207",n:"前镇区"},{i:"710206",n:"旗津区"},{i:"710203",n:"芩雅区"},{i:"710208",n:"三民区"},{i:"710211",n:"小港区"},{i:"710201",n:"新兴区"},{i:"710204",n:"盐埕区"},{i:"710209",n:"左营区"}],i:"710200",n:"高雄市"},{i:"712300",n:"高雄县"},{i:"712600",n:"花莲县"},{c:[{i:"710901",n:"东区"},{i:"710902",n:"西区"}],i:"710900",n:"嘉义市"},{i:"711900",n:"嘉义县"},{c:[{i:"710705",n:"安乐区"},{i:"710706",n:"暖暖区"},{i:"710707",n:"七堵区"},{i:"710701",n:"仁爱区"},{i:"710702",n:"信义区"},{i:"710704",n:"中山区"},{i:"710703",n:"中正区"}],i:"710700",n:"基隆市"},{i:"710500",n:"金门县"},{i:"711500",n:"苗栗县"},{i:"710600",n:"南投县"},{i:"712700",n:"澎湖县"},{i:"712400",n:"屏东县"},{c:[{i:"710109",n:"北投区"},{i:"710105",n:"大安区"},{i:"710102",n:"大同区"},{i:"710111",n:"南港区"},{i:"710110",n:"内湖区"},{i:"710108",n:"士林区"},{i:"710104",n:"松山区"},{i:"710106",n:"万华区"},{i:"710112",n:"文山区"},{i:"710107",n:"信义区"},{i:"710103",n:"中山区"},{i:"710101",n:"中正区"}],i:"710100",n:"台北市"},{i:"711100",n:"台北县"},{i:"712500",n:"台东县"},{c:[{i:"710306",n:"安南区"},{i:"710305",n:"安平区"},{i:"710304",n:"北区"},{i:"710302",n:"东区"},{i:"710303",n:"南区"},{i:"710301",n:"中西区"}],i:"710300",n:"台南市"},{i:"712200",n:"台南县"},{c:[{i:"710405",n:"北区"},{i:"710406",n:"北屯区"},{i:"710402",n:"东区"},{i:"710403",n:"南区"},{i:"710408",n:"南屯区"},{i:"710404",n:"西区"},{i:"710407",n:"西屯区"},{i:"710401",n:"中区"}],i:"710400",n:"台中市"},{i:"711600",n:"台中县"},{i:"711400",n:"桃园县"},{c:[{i:"710802",n:"北区"},{i:"710801",n:"东区"},{i:"710803",n:"香山区"}],i:"710800",n:"新竹市"},{i:"711300",n:"新竹县"},{i:"711200",n:"宜兰县"},{i:"712100",n:"云林县"},{i:"711700",n:"彰化县"}],i:"710000",n:"台湾省"},{c:[{c:[{i:"120115",n:"宝坻区"},{i:"120113",n:"北辰区"},{i:"120116",n:"滨海新区"},{i:"120109",n:"大港区"},{i:"120110",n:"东丽区"},{i:"120108",n:"汉沽区"},{i:"120105",n:"河北区"},{i:"120102",n:"河东区"},{i:"120101",n:"和平区"},{i:"120103",n:"河西区"},{i:"120106",n:"红桥区"},{i:"120223",n:"静海县"},{i:"120112",n:"津南区"},{i:"120225",n:"蓟县"},{i:"120104",n:"南开区"},{i:"120221",n:"宁河县"},{i:"120107",n:"塘沽区"},{i:"120114",n:"武清区"},{i:"120111",n:"西青区"}],i:"120100",n:"天津市"}],i:"120000",n:"天津"},{c:[{c:[{i:"810205",n:"观塘区"},{i:"810204",n:"黄大仙区"},{i:"810201",n:"九龙城区"},{i:"810203",n:"深水埗区"},{i:"810202",n:"油尖旺区"}],i:"810200",n:"九龙"},{c:[{i:"810103",n:"东区"},{i:"810104",n:"南区"},{i:"810102",n:"湾仔"},{i:"810101",n:"中西区"}],i:"810100",n:"香港岛"},{c:[{i:"810301",n:"北区"},{i:"810302",n:"大埔区"},{i:"810308",n:"葵青区"},{i:"810309",n:"离岛区"},{i:"810307",n:"荃湾区"},{i:"810303",n:"沙田区"},{i:"810306",n:"屯门区"},{i:"810304",n:"西贡区"},{i:"810305",n:"元朗区"}],i:"810300",n:"新界"}],i:"810000",n:"香港特别行政区"},{c:[{c:[{i:"652901",n:"阿克苏市"},{i:"652928",n:"阿瓦提县"},{i:"652926",n:"拜城县"},{i:"652929",n:"柯坪县"},{i:"652923",n:"库车县"},{i:"652924",n:"沙雅县"},{i:"652922",n:"温宿县"},{i:"652927",n:"乌什县"},{i:"652925",n:"新和县"}],i:"652900",n:"阿克苏地区"},{i:"659002",n:"阿拉尔市"},{c:[{i:"654301",n:"阿勒泰市"},{i:"654321",n:"布尔津县"},{i:"654323",n:"福海县"},{i:"654322",n:"富蕴县"},{i:"654324",n:"哈巴河县"},{i:"654326",n:"吉木乃县"},{i:"654325",n:"青河县"}],i:"654300",n:"阿勒泰地区"},{c:[{i:"652829",n:"博湖县"},{i:"652827",n:"和静县"},{i:"652828",n:"和硕县"},{i:"652801",n:"库尔勒市"},{i:"652822",n:"轮台县"},{i:"652825",n:"且末县"},{i:"652824",n:"若羌县"},{i:"652823",n:"尉犁县"},{i:"652826",n:"焉耆回族自治县"}],i:"652800",n:"巴音郭楞蒙古自治州"},{c:[{i:"652701",n:"博乐市"},{i:"652722",n:"精河县"},{i:"652723",n:"温泉县"}],i:"652700",n:"博尔塔拉蒙古自治州"},{c:[{i:"652301",n:"昌吉市"},{i:"652302",n:"阜康市"},{i:"652323",n:"呼图壁县"},{i:"652327",n:"吉木萨尔县"},{i:"652324",n:"玛纳斯县"},{i:"652303",n:"米泉市"},{i:"652328",n:"木垒哈萨克自治县"},{i:"652325",n:"奇台县"}],i:"652300",n:"昌吉回族自治州"},{c:[{i:"652222",n:"巴里坤哈萨克自治县"},{i:"652201",n:"哈密市"},{i:"652223",n:"伊吾县"}],i:"652200",n:"哈密地区"},{c:[{i:"653225",n:"策勒县"},{i:"653201",n:"和田市"},{i:"653221",n:"和田县"},{i:"653224",n:"洛浦县"},{i:"653227",n:"民丰县"},{i:"653222",n:"墨玉县"},{i:"653223",n:"皮山县"},{i:"653226",n:"于田县"}],i:"653200",n:"和田地区"},{c:[{i:"653130",n:"巴楚县"},{i:"653129",n:"伽师县"},{i:"653101",n:"喀什市"},{i:"653127",n:"麦盖提县"},{i:"653125",n:"莎车县"},{i:"653121",n:"疏附县"},{i:"653122",n:"疏勒县"},{i:"653131",n:"塔什库尔干塔吉克自治县"},{i:"653126",n:"叶城县"},{i:"653123",n:"英吉沙县"},{i:"653128",n:"岳普湖县"},{i:"653124",n:"泽普县"}],i:"653100",n:"喀什地区"},{c:[{i:"650204",n:"白碱滩区"},{i:"650202",n:"独山子区"},{i:"650203",n:"克拉玛依区"},{i:"650205",n:"乌尔禾区"}],i:"650200",n:"克拉玛依市"},{c:[{i:"653023",n:"阿合奇县"},{i:"653022",n:"阿克陶县"},{i:"653001",n:"阿图什市"},{i:"653024",n:"乌恰县"}],i:"653000",n:"克孜勒苏柯尔克孜自治州"},{i:"659001",n:"石河子市"},{c:[{i:"654221",n:"额敏县"},{i:"654226",n:"和布克赛尔蒙古自治县"},{i:"654223",n:"沙湾县"},{i:"654201",n:"塔城市"},{i:"654224",n:"托里县"},{i:"654202",n:"乌苏市"},{i:"654225",n:"裕民县"}],i:"654200",n:"塔城地区"},{c:[{i:"652122",n:"鄯善县"},{i:"652101",n:"吐鲁番市"},{i:"652123",n:"托克逊县"}],i:"652100",n:"吐鲁番地区"},{i:"659003",n:"图木舒克市"},{i:"659004",n:"五家渠市"},{c:[{i:"650107",n:"达坂城区"},{i:"650108",n:"东山区"},{i:"650109",n:"米东区"},{i:"650103",n:"沙依巴克区"},{i:"650105",n:"水磨沟区"},{i:"650102",n:"天山区"},{i:"650106",n:"头屯河区"},{i:"650121",n:"乌鲁木齐县"},{i:"650104",n:"新市区"}],i:"650100",n:"乌鲁木齐市"},{c:[{i:"654022",n:"察布查尔锡伯自治县"},{i:"654024",n:"巩留县"},{i:"654023",n:"霍城县"},{i:"654003",n:"奎屯市"},{i:"654028",n:"尼勒克县"},{i:"654027",n:"特克斯县"},{i:"654025",n:"新源县"},{i:"654002",n:"伊宁市"},{i:"654021",n:"伊宁县"},{i:"654026",n:"昭苏县"}],i:"654000",n:"伊犁哈萨克自治州"}],i:"650000",n:"新疆维吾尔自治区"},{c:[{c:[{i:"542527",n:"措勤县"},{i:"542523",n:"噶尔县"},{i:"542526",n:"改则县"},{i:"542525",n:"革吉县"},{i:"542521",n:"普兰县"},{i:"542524",n:"日土县"},{i:"542522",n:"札达县"}],i:"542500",n:"阿里地区"},{c:[{i:"542127",n:"八宿县"},{i:"542133",n:"边坝县"},{i:"542121",n:"昌都县"},{i:"542126",n:"察雅县"},{i:"542125",n:"丁青县"},{i:"542123",n:"贡觉县"},{i:"542122",n:"江达县"},{i:"542124",n:"类乌齐县"},{i:"542132",n:"洛隆县"},{i:"542129",n:"芒康县"},{i:"542128",n:"左贡县"}],i:"542100",n:"昌都地区"},{c:[{i:"540102",n:"城关区"},{i:"540122",n:"当雄县"},{i:"540126",n:"达孜县"},{i:"540125",n:"堆龙德庆县"},{i:"540121",n:"林周县"},{i:"540127",n:"墨竹工卡县"},{i:"540123",n:"尼木县"},{i:"540124",n:"曲水县"}],i:"540100",n:"拉萨市"},{c:[{i:"542625",n:"波密县"},{i:"542626",n:"察隅县"},{i:"542622",n:"工布江达县"},{i:"542627",n:"朗县"},{i:"542621",n:"林芝县"},{i:"542623",n:"米林县"},{i:"542624",n:"墨脱县"}],i:"542600",n:"林芝地区"},{c:[{i:"542425",n:"安多县"},{i:"542428",n:"班戈县"},{i:"542429",n:"巴青县"},{i:"542423",n:"比如县"},{i:"542422",n:"嘉黎县"},{i:"542421",n:"那曲县"},{i:"542424",n:"聂荣县"},{i:"542430",n:"尼玛县"},{i:"542426",n:"申扎县"},{i:"542427",n:"索县"}],i:"542400",n:"那曲地区"},{c:[{i:"542327",n:"昂仁县"},{i:"542329",n:"白朗县"},{i:"542332",n:"定结县"},{i:"542324",n:"定日县"},{i:"542338",n:"岗巴县"},{i:"542323",n:"江孜县"},{i:"542335",n:"吉隆县"},{i:"542331",n:"康马县"},{i:"542326",n:"拉孜县"},{i:"542322",n:"南木林县"},{i:"542336",n:"聂拉木县"},{i:"542330",n:"仁布县"},{i:"542301",n:"日喀则市"},{i:"542337",n:"萨嘎县"},{i:"542325",n:"萨迦县"},{i:"542328",n:"谢通门县"},{i:"542334",n:"亚东县"},{i:"542333",n:"仲巴县"}],i:"542300",n:"日喀则地区"},{c:[{i:"542227",n:"措美县"},{i:"542232",n:"错那县"},{i:"542223",n:"贡嘎县"},{i:"542229",n:"加查县"},{i:"542233",n:"浪卡子县"},{i:"542231",n:"隆子县"},{i:"542228",n:"洛扎县"},{i:"542221",n:"乃东县"},{i:"542225",n:"琼结县"},{i:"542226",n:"曲松县"},{i:"542224",n:"桑日县"},{i:"542222",n:"扎囊县"}],i:"542200",n:"山南地区"}],i:"540000",n:"西藏自治区"},{c:[{c:[{i:"530524",n:"昌宁县"},{i:"530523",n:"龙陵县"},{i:"530502",n:"隆阳区"},{i:"530521",n:"施甸县"},{i:"530522",n:"腾冲县"}],i:"530500",n:"保山市"},{c:[{i:"532301",n:"楚雄市"},{i:"532326",n:"大姚县"},{i:"532331",n:"禄丰县"},{i:"532323",n:"牟定县"},{i:"532324",n:"南华县"},{i:"532322",n:"双柏县"},{i:"532329",n:"武定县"},{i:"532325",n:"姚安县"},{i:"532327",n:"永仁县"},{i:"532328",n:"元谋县"}],i:"532300",n:"楚雄彝族自治州"},{c:[{i:"532924",n:"宾川县"},{i:"532901",n:"大理市"},{i:"532930",n:"洱源县"},{i:"532932",n:"鹤庆县"},{i:"532931",n:"剑川县"},{i:"532925",n:"弥渡县"},{i:"532926",n:"南涧彝族自治县"},{i:"532927",n:"巍山彝族回族自治县"},{i:"532923",n:"祥云县"},{i:"532922",n:"漾濞彝族自治县"},{i:"532928",n:"永平县"},{i:"532929",n:"云龙县"}],i:"532900",n:"大理白族自治州"},{c:[{i:"533122",n:"梁河县"},{i:"533124",n:"陇川县"},{i:"533103",n:"潞西市"},{i:"533102",n:"瑞丽市"},{i:"533123",n:"盈江县"}],i:"533100",n:"德宏傣族景颇族自治州"},{c:[{i:"533422",n:"德钦县"},{i:"533423",n:"维西傈僳族自治县"},{i:"533421",n:"香格里拉县"}],i:"533400",n:"迪庆藏族自治州"},{c:[{i:"532501",n:"个旧市"},{i:"532532",n:"河口瑶族自治县"},{i:"532529",n:"红河县"},{i:"532524",n:"建水县"},{i:"532530",n:"金平苗族瑶族傣族自治县"},{i:"532502",n:"开远市"},{i:"532527",n:"泸西县"},{i:"532531",n:"绿春县"},{i:"532522",n:"蒙自县"},{i:"532526",n:"弥勒县"},{i:"532523",n:"屏边苗族自治县"},{i:"532525",n:"石屏县"},{i:"532528",n:"元阳县"}],i:"532500",n:"红河哈尼族彝族自治州"},{c:[{i:"530181",n:"安宁市"},{i:"530121",n:"呈贡县"},{i:"530113",n:"东川区"},{i:"530124",n:"富民县"},{i:"530111",n:"官渡区"},{i:"530122",n:"晋宁县"},{i:"530128",n:"禄劝彝族苗族自治县"},{i:"530103",n:"盘龙区"},{i:"530126",n:"石林彝族自治县"},{i:"530127",n:"嵩明县"},{i:"530102",n:"五华区"},{i:"530112",n:"西山区"},{i:"530129",n:"寻甸回族彝族自治县"},{i:"530125",n:"宜良县"}],i:"530100",n:"昆明市"},{c:[{i:"530702",n:"古城区"},{i:"530723",n:"华坪县"},{i:"530724",n:"宁蒗彝族自治县"},{i:"530722",n:"永胜县"},{i:"530721",n:"玉龙纳西族自治县"}],i:"530700",n:"丽江市"},{c:[{i:"530927",n:"沧源佤族自治县"},{i:"530921",n:"凤庆县"},{i:"530926",n:"耿马傣族佤族自治县"},{i:"530902",n:"临翔区"},{i:"530925",n:"双江拉祜族佤族布朗族傣族自治县"},{i:"530923",n:"永德县"},{i:"530922",n:"云县"},{i:"530924",n:"镇康县"}],i:"530900",n:"临沧市"},{c:[{i:"533323",n:"福贡县"},{i:"533324",n:"贡山独龙族怒族自治县"},{i:"533325",n:"兰坪白族普米族自治县"},{i:"533321",n:"泸水县"}],i:"533300",n:"怒江傈僳族自治州"},{c:[{i:"530325",n:"富源县"},{i:"530326",n:"会泽县"},{i:"530322",n:"陆良县"},{i:"530324",n:"罗平县"},{i:"530321",n:"马龙县"},{i:"530302",n:"麒麟区"},{i:"530323",n:"师宗县"},{i:"530381",n:"宣威市"},{i:"530328",n:"沾益县"}],i:"530300",n:"曲靖市"},{c:[{i:"530802",n:"翠云区"},{i:"530826",n:"江城哈尼族彝族自治县"},{i:"530823",n:"景东彝族自治县"},{i:"530824",n:"景谷傣族彝族自治县"},{i:"530828",n:"澜沧拉祜族自治县"},{i:"530827",n:"孟连傣族拉祜族佤族自治县"},{i:"530822",n:"墨江哈尼族自治县"},{i:"530821",n:"普洱哈尼族彝族自治县"},{i:"530829",n:"西盟佤族自治县"},{i:"530825",n:"镇沅彝族哈尼族拉祜族自治县"}],i:"530800",n:"思茅市"},{c:[{i:"532628",n:"富宁县"},{i:"532627",n:"广南县"},{i:"532625",n:"马关县"},{i:"532624",n:"麻栗坡县"},{i:"532626",n:"丘北县"},{i:"532621",n:"文山县"},{i:"532623",n:"西畴县"},{i:"532622",n:"砚山县"}],i:"532600",n:"文山壮族苗族自治州"},{c:[{i:"532801",n:"景洪市"},{i:"532822",n:"勐海县"},{i:"532823",n:"勐腊县"}],i:"532800",n:"西双版纳傣族自治州"},{c:[{i:"530422",n:"澄江县"},{i:"530426",n:"峨山彝族自治县"},{i:"530402",n:"红塔区"},{i:"530424",n:"华宁县"},{i:"530421",n:"江川县"},{i:"530423",n:"通海县"},{i:"530427",n:"新平彝族傣族自治县"},{i:"530425",n:"易门县"},{i:"530428",n:"元江哈尼族彝族傣族自治县"}],i:"530400",n:"玉溪市"},{c:[{i:"530624",n:"大关县"},{i:"530621",n:"鲁甸县"},{i:"530622",n:"巧家县"},{i:"530630",n:"水富县"},{i:"530626",n:"绥江县"},{i:"530629",n:"威信县"},{i:"530623",n:"盐津县"},{i:"530628",n:"彝良县"},{i:"530625",n:"永善县"},{i:"530602",n:"昭阳区"},{i:"530627",n:"镇雄县"}],i:"530600",n:"昭通市"}],i:"530000",n:"云南省"},{c:[{c:[{i:"330108",n:"滨江区"},{i:"330127",n:"淳安县"},{i:"330183",n:"富阳市"},{i:"330105",n:"拱墅区"},{i:"330182",n:"建德市"},{i:"330104",n:"江干区"},{i:"330185",n:"临安市"},{i:"330102",n:"上城区"},{i:"330122",n:"桐庐县"},{i:"330103",n:"下城区"},{i:"330109",n:"萧山区"},{i:"330106",n:"西湖区"},{i:"330110",n:"余杭区"}],i:"330100",n:"杭州市"},{c:[{i:"330523",n:"安吉县"},{i:"330521",n:"德清县"},{i:"330503",n:"南浔区"},{i:"330502",n:"吴兴区"},{i:"330522",n:"长兴县"}],i:"330500",n:"湖州市"},{c:[{i:"330481",n:"海宁市"},{i:"330424",n:"海盐县"},{i:"330421",n:"嘉善县"},{i:"330402",n:"南湖区"},{i:"330482",n:"平湖市"},{i:"330483",n:"桐乡市"},{i:"330411",n:"秀洲区"}],i:"330400",n:"嘉兴市"},{c:[{i:"330783",n:"东阳市"},{i:"330703",n:"金东区"},{i:"330781",n:"兰溪市"},{i:"330727",n:"磐安县"},{i:"330726",n:"浦江县"},{i:"330702",n:"婺城区"},{i:"330723",n:"武义县"},{i:"330782",n:"义乌市"},{i:"330784",n:"永康市"}],i:"330700",n:"金华市"},{c:[{i:"331127",n:"景宁畲族自治县"},{i:"331122",n:"缙云县"},{i:"331102",n:"莲都区"},{i:"331181",n:"龙泉市"},{i:"331121",n:"青田县"},{i:"331126",n:"庆元县"},{i:"331124",n:"松阳县"},{i:"331123",n:"遂昌县"},{i:"331125",n:"云和县"}],i:"331100",n:"丽水市"},{c:[{i:"330206",n:"北仑区"},{i:"330282",n:"慈溪市"},{i:"330283",n:"奉化市"},{i:"330203",n:"海曙区"},{i:"330205",n:"江北区"},{i:"330204",n:"江东区"},{i:"330226",n:"宁海县"},{i:"330225",n:"象山县"},{i:"330212",n:"鄞州区"},{i:"330281",n:"余姚市"},{i:"330211",n:"镇海区"}],i:"330200",n:"宁波市"},{c:[{i:"330822",n:"常山县"},{i:"330881",n:"江山市"},{i:"330824",n:"开化县"},{i:"330802",n:"柯城区"},{i:"330825",n:"龙游县"},{i:"330803",n:"衢江区"}],i:"330800",n:"衢州市"},{c:[{i:"330682",n:"上虞市"},{i:"330621",n:"绍兴县"},{i:"330683",n:"嵊州市"},{i:"330624",n:"新昌县"},{i:"330602",n:"越城区"},{i:"330681",n:"诸暨市"}],i:"330600",n:"绍兴市"},{c:[{i:"331003",n:"黄岩区"},{i:"331002",n:"椒江区"},{i:"331082",n:"临海市"},{i:"331004",n:"路桥区"},{i:"331022",n:"三门县"},{i:"331023",n:"天台县"},{i:"331081",n:"温岭市"},{i:"331024",n:"仙居县"},{i:"331021",n:"玉环县"}],i:"331000",n:"台州市"},{c:[{i:"330327",n:"苍南县"},{i:"330322",n:"洞头县"},{i:"330382",n:"乐清市"},{i:"330303",n:"龙湾区"},{i:"330302",n:"鹿城区"},{i:"330304",n:"瓯海区"},{i:"330326",n:"平阳县"},{i:"330381",n:"瑞安市"},{i:"330329",n:"泰顺县"},{i:"330328",n:"文成县"},{i:"330324",n:"永嘉县"}],i:"330300",n:"温州市"},{c:[{i:"330921",n:"岱山县"},{i:"330902",n:"定海区"},{i:"330903",n:"普陀区"},{i:"330922",n:"嵊泗县"}],i:"330900",n:"舟山市"}],i:"330000",n:"浙江省"}];var n1i=["阿富汗","奥兰群岛(芬兰属)","阿尔巴尼亚","阿尔及利亚","美属萨摩亚","安道尔","安哥拉","安圭拉岛","南极洲","安提瓜和巴布达","阿根廷","亚美尼亚","阿鲁巴","澳大利亚","奥地利","阿塞拜疆","巴哈马","巴林","孟加拉国","巴巴多斯","白俄罗斯","比利时","伯利兹","贝宁","百慕大群岛","不丹","玻利维亚","波斯尼亚和黑塞哥维那","博茨瓦纳","布韦岛","巴西","英属印度洋领地","文莱","保加利亚","布基纳法索","布隆迪","柬埔寨","喀麦隆","加拿大","佛得角","开曼群岛","中非共和国","乍得","智利","中国","圣诞岛","科科斯群岛（基灵群岛）","哥伦比亚","科摩罗","刚果","刚果民主共和国","库克群岛","哥斯达黎加","科特迪瓦","克罗地亚","古巴","塞浦路斯","捷克共和国","丹麦","吉布提","多米尼加","多米尼加共和国","厄瓜多尔","埃及","萨尔瓦多","赤道几内亚","厄立特里亚","爱沙尼亚","埃塞俄比亚","福克兰群岛(马尔维纳斯群岛)","法罗群岛","斐济群岛","芬兰","法国","法属圭亚那","法属波利尼西亚","法属南极地区","加蓬","冈比亚","乔治亚","德国","加纳","直布罗陀","希腊","格陵兰","格林纳达","瓜德罗普岛","关岛","危地马拉","格恩西","几内亚","几内亚比绍","圭亚那","海地","赫德和麦克唐纳群岛","梵蒂冈城","洪都拉斯","匈牙利","冰岛","印度","印度尼西亚","伊朗","伊拉克","爱尔兰","马恩岛","以色列","意大利","牙买加","日本","泽西","约旦","哈萨克斯坦","肯尼亚","基里巴斯","朝鲜","韩国","科威特","吉尔吉斯斯坦","老挝","拉脱维亚","黎巴嫩","莱索托","利比里亚","利比亚","列支敦士登","立陶宛","卢森堡","马其顿,前南斯拉夫共和国","马达加斯加","马拉维","马来西亚","马尔代夫","马里","马耳他","马绍尔群岛","马提尼克岛","毛里塔尼亚","毛里求斯","马约特岛","墨西哥","密克罗尼西亚","摩尔多瓦","摩纳哥","蒙古","门的内哥罗(黑山)","蒙特塞拉特","摩洛哥","莫桑比克","缅甸","纳米比亚","瑙鲁","尼泊尔","荷兰","荷属安的列斯群岛","新喀里多尼亚","新西兰","尼加拉瓜","尼日尔","尼日利亚","纽埃","诺福克岛","北马里亚纳群岛","挪威","阿曼","巴基斯坦","帕劳群岛","巴勒斯坦当局","巴拿马","巴布亚新几内亚","巴拉圭","秘鲁","菲律宾","皮特克恩群岛","波兰","葡萄牙","波多黎各","卡塔尔","留尼汪岛","罗马尼亚","俄罗斯","卢旺达","圣巴泰勒米","圣赫勒拿岛","圣基茨和尼维斯","圣卢西亚","圣马丁","圣皮埃尔岛和密克隆岛","圣文森特和格林纳丁斯","萨摩亚","圣马力诺","圣多美和普林西比","沙特阿拉伯","塞内加尔","塞尔维亚","塞舌尔","塞拉利昂","新加坡","斯洛伐克","斯洛文尼亚","所罗门群岛","索马里","南非","南乔治亚和南桑德威奇群岛","西班牙","斯里兰卡","苏丹","苏里南","斯瓦尔巴群岛和扬马延","斯威士兰","瑞典","瑞士","叙利亚","塔吉克斯坦","坦桑尼亚","泰国","东帝汶","多哥","托克劳","汤加","特立尼达和多巴哥","突尼斯","土耳其","土库曼斯坦","特克斯群岛和凯科斯群岛","图瓦卢","乌干达","乌克兰","阿拉伯联合酋长国","英国","美国","美属小奥特兰群岛","乌拉圭","乌兹别克斯坦","瓦努阿图","委内瑞拉","越南","维尔京群岛（英属）","维尔京群岛","瓦利斯群岛和富图纳群岛","西撒哈拉","也门","赞比亚","津巴布韦"],r1i=function(t){nA(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.country=function(){return this.pickone(n1i)},e.prototype.province=function(){var n=this.pickone(Zce);return n.n},e.prototype.city=function(){var n=this.pickone(Zce),r=this.pickone(n.c);return r.n},e.prototype.district=function(){for(var n=this.pickone(Zce),r=this.pickone(n.c),a=n.c.length-1;r.c===void 0;){if(a<=0)return this.district();r=this.pickone(n.c),a-=1}return this.pickone(r.c).n},e.prototype.road=function(){var n=["大道","路","街","胡同"],r=["中山","朝阳","大同","文昌","长春","东方","桃园","北京","兴安","南京","南昌","上海","工业","文化","青年","人民","建设","和平","光明","复兴","朝阳","胜利","自强","太平","幸福","成功","永兴","仁爱","兴业","平安","创业","健康","阳光","牡丹","竹子","世纪","兰花","梅花","桂花","海桐","白杨","银霄","龙溪","斜阳","万花","沧浪","芒涌","绿玉","嵩山","黄山","衡山","长江","黄河","珠江","同福","兴华","吉祥","团结","长寿","友爱","仁廉","祖冲之","李时珍","郭守敬","李冰","张衡","沈括","蔡伦","华佗","毕升","达尔文","伽利略","法拉第","牛顿","居里","哈雷路"];return""+this.pickone(r)+this.pickone(n)},e.prototype.address=function(){for(var n=[],r=Zce;r;){var a=this.pickone(r);n.push(a.n),r=a.c}return""+n.join("")+this.road()+this.natural({min:1,max:1e3})+"号"},e.prototype.postcode=function(){return this.n(this.natural,6,{min:0,max:9}).join("")},e}(WG),i1i=function(t){nA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.database=uvi(),n}return e}(WG);(function(e,n){n.forEach(function(r){Object.getOwnPropertyNames(r.prototype).forEach(function(a){Object.defineProperty(e.prototype,a,Object.getOwnPropertyDescriptor(r.prototype,a))})})})(i1i,[uon,YAi,qAi,t1i,QAi,r1i]);var wOe=function(t){return HA(t)||oh(t)},Mon=function(t,e){return di(_l(t),"Data must be an array"),e?(di((e==null?void 0:e.length)===t.length,"Index length is "+(e==null?void 0:e.length)+", but data size is "+t.length),e):ix(t.length)},vze=function(t,e){return e===void 0&&(e="."),Object.keys(t).reduce(function(n,r){var a;if(typeof t[r]!="object"||t[r]===null)return cr(cr({},n),(a={},a[r]=t[r],a));var o=vze(t[r],e);return cr(cr({},n),Object.keys(o).reduce(function(s,l){var c;return cr(cr({},s),(c={},c[""+r+e+l]=o[l],c))},{}))},{})},Yg=function(t,e){return!t&&JSON.stringify(e)?e:t},Xce=function(t){return Array(HA(t)?t:0).fill(" ").concat("  ").join("")},Non=function(t){var e,n,r,a,o,s;return((s=(o=(a=(r=(n=(e=JSON.stringify(t))===null||e===void 0?void 0:e.replace(/\\n/g,""))===null||n===void 0?void 0:n.replace(/\\/g,""))===null||r===void 0?void 0:r.replace(/"\[/g,"["))===null||a===void 0?void 0:a.replace(/\]"/g,"]"))===null||o===void 0?void 0:o.replace(/"\{/g,"{"))===null||s===void 0?void 0:s.replace(/\}"/g," }"))||"undefined"},_$=function(t){var e;return(e=Non(t))===null||e===void 0?void 0:e.length},$m=function(t,e){try{if(e==="string"&&!oh(t))return""+t;if(e==="boolean"&&!qan(t))return!!t;if(e==="null"&&!bwe(t))return null;if((e==="integer"||e==="float")&&!HA(t))return+t;if(e==="date"&&!fnt(""+t))return new Date(t)}catch(n){throw new Error(n)}return t},Ion=function(){function t(e,n){var r,a,o,s,l;if(this.axes=[[]],this.data=[],di(!n||vx(n),"If extra exists, it must be an object."),iw(e))n!=null&&n.indexes?(this.setAxis(0,n==null?void 0:n.indexes),this.data=Array(n==null?void 0:n.indexes.length).fill($m(Yg(e,n==null?void 0:n.fillValue),(r=n==null?void 0:n.columnTypes)===null||r===void 0?void 0:r[0]))):(this.data=[$m(Yg(e,n==null?void 0:n.fillValue),(a=n==null?void 0:n.columnTypes)===null||a===void 0?void 0:a[0])],this.setAxis(0,[0]));else if(_l(e)){for(var c=!0,u=0;u<e.length;u+=1){var d=e[u];if(!iw(d)){c=!1;break}}if(this.setAxis(0,Mon(e,n==null?void 0:n.indexes)),c&&(n!=null&&n.indexes&&(di(((o=n==null?void 0:n.indexes)===null||o===void 0?void 0:o.length)===e.length,"Index length is "+(n==null?void 0:n.indexes.length)+", but data size "+e.length),this.setAxis(0,n==null?void 0:n.indexes)),this.data=n!=null&&n.fillValue?e.map(function(h){return Yg(h,n==null?void 0:n.fillValue)}):e,!((s=n==null?void 0:n.columnTypes)===null||s===void 0)&&s.length))for(var u=0;u<this.data.length;u+=1)this.data[u]=$m(this.data[u],(l=n==null?void 0:n.columnTypes)===null||l===void 0?void 0:l[0])}}return Object.defineProperty(t.prototype,"indexes",{get:function(){return this.getAxis(0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getAxis(1)},enumerable:!1,configurable:!0}),t.prototype.getAxis=function(e){return this.axes[e]},t.prototype.setAxis=function(e,n){di(_l(n),"Index or columns must be Axis array."),this.axes[e]=n},t}(),_Oe=function(t){nA(e,t);function e(n,r){var a,o,s,l,c=t.call(this,n,r)||this;if(di(vx(n)||iw(n)||_l(n),"Data type is illegal"),vx(n)){var u=Object.keys(n);if(r!=null&&r.indexes){di(((a=r==null?void 0:r.indexes)===null||a===void 0?void 0:a.length)<=u.length,"Index length "+((o=r==null?void 0:r.indexes)===null||o===void 0?void 0:o.length)+" is greater than data size "+u.length);for(var d=0;d<(r==null?void 0:r.indexes.length);d+=1){var h=r==null?void 0:r.indexes[d];u.includes(h)&&c.data.push($m(Yg(n[h],r==null?void 0:r.fillValue),(s=r==null?void 0:r.columnTypes)===null||s===void 0?void 0:s[0]))}c.setAxis(0,r==null?void 0:r.indexes)}else c.data=Object.values(n).map(function(m){var g;return $m(Yg(m,r==null?void 0:r.fillValue),(g=r==null?void 0:r.columnTypes)===null||g===void 0?void 0:g[0])}),c.setAxis(0,u)}else if(_l(n)){var f=xa(n,1),p=f[0];iw(p)||(r!=null&&r.indexes&&(di(((l=r==null?void 0:r.indexes)===null||l===void 0?void 0:l.length)===n.length,"Index length is "+(r==null?void 0:r.indexes.length)+", but data size "+n.length),c.setAxis(0,r==null?void 0:r.indexes)),c.data=n)}return c}return Object.defineProperty(e.prototype,"shape",{get:function(){return[this.axes[0].length]},enumerable:!1,configurable:!0}),e.prototype.get=function(n){if(di(HA(n)||oh(n)&&!n.includes(":")||_l(n)||oh(n)&&n.includes(":"),"The rowLoc is illegal"),HA(n)||oh(n)&&!n.includes(":")){if(di(this.indexes.includes(n),"The rowLoc is not found in the indexes."),HA(n))return this.data[n];if(oh(n)){var r=this.indexes.indexOf(n);return this.data[r]}}if(_l(n)){for(var a=[],o=[],s=0;s<n.length;s+=1){var l=n[s];di(this.indexes.includes(l),"The rowLoc is not found in the indexes.");var c=this.indexes.indexOf(l);a.push(this.data[c]),o.push(this.indexes[c])}return new e(a,{indexes:o})}if(oh(n)&&n.includes(":")){var u=n.split(":");di(u.length===2,"The rowLoc is not found in the indexes.");var d=u[0],h=u[1];if(rp(Number(d))&&rp(Number(h))){var f=Number(d),p=Number(h),a=this.data.slice(f,p),o=this.indexes.slice(f,p);return new e(a,{indexes:o})}if(oh(d)&&oh(h)){var f=this.indexes.indexOf(d),p=this.indexes.indexOf(h),a=this.data.slice(f,p),o=this.indexes.slice(f,p);return new e(a,{indexes:o})}}throw new Error("The rowLoc is illegal")},e.prototype.getByIndex=function(n){if(di(rp(n)||_l(n)||oh(n)&&n.includes(":"),"The rowLoc is illegal"),rp(n)&&(di(ix(this.indexes.length).includes(n),"The rowLoc is not found in the indexes."),ix(this.indexes.length).includes(n)))return this.data[n];if(_l(n)){for(var r=[],a=[],o=0;o<n.length;o+=1){var s=n[o];di(ix(this.indexes.length).includes(s),"The rowLoc is not found in the indexes."),r.push(this.data[s]),a.push(this.indexes[s])}return new e(r,{indexes:a})}if(oh(n)&&n.includes(":")){var l=n.split(":");if(l.length===2){var c=Number(l[0]),u=Number(l[1]);di(rp(c)&&rp(u),"The rowLoc is not found in the indexes.");var r=this.data.slice(c,u),a=this.indexes.slice(c,u);return new e(r,{indexes:a})}}throw new Error("The rowLoc is illegal")},e}(Ion),j6=function(t){nA(e,t);function e(n,r){var a,o,s,l,c,u,d,h,f=t.call(this,n,r)||this;if(f.colData=[],di(iw(n)||_l(n)||vx(n),"Data type is illegal"),iw(n)){if(r!=null&&r.columnTypes)for(var p=0;p<((a=r==null?void 0:r.indexes)===null||a===void 0?void 0:a.length);p+=1)f.data[p]=$m(f.data[p],(o=r==null?void 0:r.columnTypes)===null||o===void 0?void 0:o[p]);r!=null&&r.indexes&&(r!=null&&r.columns)?(f.setAxis(1,r==null?void 0:r.columns),f.data=Array(r==null?void 0:r.columns.length).fill(f.data)):r!=null&&r.columns?r!=null&&r.indexes||(di(_l(r==null?void 0:r.columns),"Index or columns must be Axis array."),di((r==null?void 0:r.columns.length)===1,"When the length of extra.columns is larger than 1, extra.indexes is required.")):(f.setAxis(1,[0]),f.data=[f.data]),f.colData=f.data}if(_l(n)){var m=xa(n,1),g=m[0];if(f.data.length>0&&(f.generateColumns([0],r==null?void 0:r.columns),f.colData=[f.data],f.data=f.data.map(function(P){return[P]})),_l(g)){var v=ix(g.length);f.generateDataAndColDataFromArray(!1,n,v,r==null?void 0:r.fillValue,r==null?void 0:r.columnTypes),f.generateColumns(v,r==null?void 0:r.columns)}if(vx(g)){for(var A=[],p=0;p<n.length;p+=1){var y=n[p];A.push.apply(A,xc([],xa(Object.keys(y))))}for(var v=xc([],xa(new Set(A))),p=0;p<n.length;p+=1){var y=n[p];if(di(vx(y),"The data is not standard object array."),r!=null&&r.columns){f.data[p]=[];for(var S=0;S<(r==null?void 0:r.columns.length);S+=1){var x=r==null?void 0:r.columns[S];di(v.includes(x),"There is no column "+x+" in data.");var w=$m(Yg(y[x],r.fillValue),(s=r==null?void 0:r.columnTypes)===null||s===void 0?void 0:s[S]);f.data[p].push(w),f.colData[S]?f.colData[S].push(w):f.colData[S]=[w]}f.setAxis(1,r==null?void 0:r.columns)}}r!=null&&r.columns||(f.generateDataAndColDataFromArray(!0,n,v,r==null?void 0:r.fillValue,r==null?void 0:r.columnTypes),f.setAxis(1,v))}}if(vx(n)){var _=Object.values(n),C=xa(_,1),g=C[0];if(iw(g)){var v=Object.keys(n);if(r!=null&&r.indexes?(di(_l(r.indexes),"extra.indexes must be an array."),di(r.indexes.length===1,"The length of extra.indexes must be 1."),f.setAxis(0,r.indexes)):f.setAxis(0,[0]),r!=null&&r.columns){for(var p=0;p<(r==null?void 0:r.columns.length);p+=1){var x=r==null?void 0:r.columns[p];di(v.includes(x),"There is no column "+x+" in data."),f.data.push($m(Yg(n[x],r==null?void 0:r.fillValue),(l=r==null?void 0:r.columnTypes)===null||l===void 0?void 0:l[p]))}f.colData=f.data.map(function(L){return[L]}),f.data=[f.data],f.setAxis(1,r==null?void 0:r.columns)}else{for(var p=0;p<v.length;p+=1){var y=n[v[p]];di(iw(y),"Data type is illegal"),f.data.push($m(Yg(y,r==null?void 0:r.fillValue),(c=r==null?void 0:r.columnTypes)===null||c===void 0?void 0:c[p]))}f.data=[f.data],f.colData=_.map(function(L){var I;return[$m(Yg(L,r==null?void 0:r.fillValue),(I=r==null?void 0:r.columnTypes)===null||I===void 0?void 0:I[0])]}),f.generateColumns(v)}}if(_l(g)){f.setAxis(0,Mon(g,r==null?void 0:r.indexes));var v=Object.keys(n);f.generateColumns(v,r==null?void 0:r.columns);for(var R=function(L){var I=n[k.columns[L]];if(di(_l(I),"Data type is illegal"),I.length<k.indexes.length){var b=I.concat(Array(k.indexes.length-I.length).fill($m(Yg(void 0,r==null?void 0:r.fillValue),(u=r==null?void 0:r.columnTypes)===null||u===void 0?void 0:u[L])));k.colData.push(b)}else k.colData.push(I.map(function(M){var D;return $m(Yg(M,r==null?void 0:r.fillValue),(D=r==null?void 0:r.columnTypes)===null||D===void 0?void 0:D[L])}));for(var T=0;T<k.indexes.length;T+=1)k.data[T]?k.data[T].push($m(Yg(I[T],r==null?void 0:r.fillValue),(d=r==null?void 0:r.columnTypes)===null||d===void 0?void 0:d[L])):k.data[T]=[$m(Yg(I[T],r==null?void 0:r.fillValue),(h=r==null?void 0:r.columnTypes)===null||h===void 0?void 0:h[L])]},k=this,p=0;p<f.columns.length;p+=1)R(p)}}return f}return e.prototype.generateColumns=function(n,r){r?(di((r==null?void 0:r.length)===n.length,"Columns length is "+(r==null?void 0:r.length)+", but data column is "+n.length),this.setAxis(1,r)):this.setAxis(1,n)},e.prototype.generateDataAndColDataFromArray=function(n,r,a,o,s){for(var l=0;l<r.length;l+=1){var c=r[l];di(n?vx(c):_l(c),"Data type is illegal"),n&&JSON.stringify(Object.keys(c))===JSON.stringify(a)?this.data.push(Object.values(c).map(function(f,p){return $m(Yg(f,o),s==null?void 0:s[p])})):n||this.data.push(c.map(function(f,p){return $m(Yg(f,o),s==null?void 0:s[p])}));for(var u=0;u<a.length;u+=1){var d=a[u],h=$m(Yg(c[d],o),s==null?void 0:s[u]);n&&JSON.stringify(Object.keys(c))!==JSON.stringify(a)&&(this.data[l]?this.data[l].push(h):this.data[l]=[h]),this.colData[u]?this.colData[u].push(h):this.colData[u]=[h]}}},Object.defineProperty(e.prototype,"shape",{get:function(){return[this.axes[0].length,this.axes[1].length]},enumerable:!1,configurable:!0}),e.prototype.get=function(n,r){if(di(wOe(n)||_l(n),"The rowLoc is illegal"),r===void 0){if(HA(n)){if(di(this.indexes.includes(n),"The rowLoc is not found in the indexes."),this.indexes.includes(n)){var a=this.data[n],o=this.columns;return new _Oe(a,{indexes:o})}}else if(_l(n)){for(var s=[],l=[],c=0;c<n.length;c+=1){var u=n[c];di(this.indexes.includes(u),"The rowLoc is not found in the indexes.");var d=this.indexes.indexOf(u);s.push(this.data[d]),l.push(this.indexes[d])}return new e(s,{indexes:l,columns:this.columns})}else if(oh(n)&&n.includes(":")){var h=n.split(":");if(h.length===2){var f=Number(h[0]),p=Number(h[1]);di(HA(f)&&HA(p),"The rowLoc is not found in the indexes.");var m=this.data.slice(f,p),g=this.indexes.slice(f,p);return new e(m,{indexes:g,columns:this.columns})}}}var v=-1,A=-1,y=[],S=-1,x=-1,w=[];if(wOe(n)&&this.indexes.includes(n)&&(v=this.indexes.indexOf(n),A=v+1),_l(n))for(var c=0;c<n.length;c+=1){var _=n[c];di(this.indexes.includes(_),"The rowLoc is not found in the indexes."),y.push(this.indexes.indexOf(_))}if(oh(n)&&n.includes(":")){var h=n.split(":");if(h.length===2){var C=Number(h[0]),R=Number(h[1]);di(HA(C)&&HA(R),"The rowLoc is not found in the indexes."),v=C,A=R}}if(wOe(r)&&this.columns.includes(r)&&(S=this.columns.indexOf(r),x=S+1),_l(r))for(var c=0;c<r.length;c+=1){var k=r[c];di(this.columns.includes(k),"The colLoc is not found in the columns."),w.push(this.columns.indexOf(k))}if(oh(r)&&r.includes(":")){var P=r.split(":");if(P.length===2){var C=this.columns.indexOf(P[0]),R=this.columns.indexOf(P[1]);di(HA(C)&&HA(R),"The colLoc is not found in the columns."),S=C,x=R}}var N=[],L=[];if(di(v>=0&&A>=0||y.length>0,"The rowLoc is not found in the indexes."),v>=0&&A>=0&&(N=this.data.slice(v,A),L=this.indexes.slice(v,A)),y.length>0)for(var c=0;c<y.length;c+=1){var _=y[c];N.push(this.data[_]),L.push(this.indexes[_])}if(S>=0&&x>=0){for(var c=0;c<N.length;c+=1)N[c]=N[c].slice(S,x);var I=this.columns.slice(S,x);return new e(N,{indexes:L,columns:I})}if(w.length>0){for(var I=[],b=N.slice(),c=0;c<N.length;c+=1){N[c]=[],I=[];for(var T=0;T<w.length;T+=1){var k=w[T];N[c].push(b[c][k]),I.push(this.columns[k])}}return new e(N,{indexes:L,columns:I})}throw new Error("The colLoc is illegal.")},e.prototype.getByIndex=function(n,r){if(di(rp(n)||_l(n)||oh(n),"The rowLoc is illegal"),r===void 0){if(rp(n)){di(ix(this.indexes.length).includes(n),"The rowLoc is not found in the indexes.");var a=this.data[n],o=this.columns;return new _Oe(a,{indexes:o})}if(_l(n)){for(var s=[],l=[],c=0;c<n.length;c+=1){var u=n[c];di(ix(this.indexes.length).includes(u),"The rowLoc is not found in the indexes."),s.push(this.data[u]),l.push(this.indexes[u])}return new e(s,{indexes:l,columns:this.columns})}if(oh(n)&&n.includes(":")){var d=n.split(":");if(d.length===2){var h=Number(d[0]),f=Number(d[1]);di(rp(h)&&rp(f),"The rowLoc is not found in the indexes.");var p=this.data.slice(h,f),m=this.indexes.slice(h,f);return new e(p,{indexes:m,columns:this.columns})}}}var g=-1,v=-1,A=[],y=-1,S=-1,x=[];if(rp(n)&&(di(ix(this.indexes.length).includes(n),"The rowLoc is not found in the indexes."),g=n,v=n+1),_l(n))for(var c=0;c<n.length;c+=1){var w=n[c];di(ix(this.indexes.length).includes(w),"The rowLoc is not found in the indexes."),A.push(w)}if(oh(n)&&n.includes(":")){var d=n.split(":");if(d.length===2){var _=Number(d[0]),C=Number(d[1]);di(rp(_)&&rp(C),"The rowLoc is not found in the indexes."),g=_,v=C}}if(di(g>=0&&v>=0||A.length>0,"The colLoc is illegal"),rp(r)&&ix(this.columns.length).includes(r)&&(y=r,S=r+1),_l(r))for(var c=0;c<r.length;c+=1){var R=r[c];di(ix(this.columns.length).includes(R),"The colLoc is not found in the columns index."),x.push(R)}if(oh(r)&&r.includes(":")){var k=r.split(":");if(k.length===2){var _=Number(k[0]),C=Number(k[1]);di(rp(_)&&rp(C),"The colLoc is not found in the columns index."),y=_,S=C}}di(g>=0&&v>=0||A.length>0,"The rowLoc is not found in the indexes.");var P=[],N=[];if(g>=0&&v>=0)P=this.data.slice(g,v),N=this.indexes.slice(g,v);else if(A.length>0)for(var c=0;c<A.length;c+=1){var w=A[c];P.push(this.data[w]),N.push(this.indexes[w])}if(di(y>=0&&S>=0||x.length>0,"The colLoc is not found in the columns index."),y>=0&&S>=0){for(var c=0;c<P.length;c+=1)P[c]=P[c].slice(y,S);var L=this.columns.slice(y,S);return new e(P,{indexes:N,columns:L})}if(x.length>0){for(var L=[],I=P.slice(),c=0;c<P.length;c+=1){P[c]=[],L=[];for(var b=0;b<x.length;b+=1){var R=x[b];P[c].push(I[c][R]),L.push(this.columns[R])}}return new e(P,{indexes:N,columns:L})}throw new Error("The colLoc is illegal.")},e.prototype.getByColumn=function(n){di(this.columns.includes(n),"The col is illegal");var r=this.columns.indexOf(n);return new _Oe(this.colData[r],{indexes:this.indexes})},e.prototype.info=function(){for(var n,r=[],a=0;a<((n=this.columns)===null||n===void 0?void 0:n.length);a+=1){var o=this.columns[a];r.push(cr(cr({},G3(this.colData[a])),{name:String(o)}))}return r},e.prototype.toString=function(){for(var n=this,r=Array(this.columns.length+1).fill(0),a=0;a<this.indexes.length;a+=1){var o=_$(this.indexes[a]);o>r[0]&&(r[0]=o)}for(var a=0;a<this.columns.length;a+=1){var o=_$(this.columns[a]);o>r[a+1]&&(r[a+1]=o)}for(var a=0;a<this.colData.length;a+=1)for(var s=0;s<this.colData[a].length;s+=1){var o=_$(this.colData[a][s]);o>r[a+1]&&(r[a+1]=o)}return""+Xce(r[0])+this.columns.map(function(l,c){return""+l+(c!==n.columns.length?Xce(r[c+1]-_$(l)+2):"")}).join("")+`
`+this.indexes.map(function(l,c){var u;return""+l+Xce(r[0]-_$(l))+((u=n.data[c])===null||u===void 0?void 0:u.map(function(d,h){return""+Non(d)+(h!==n.columns.length?Xce(r[h+1]-_$(d)):"")}).join(""))+(c!==n.indexes.length?`
`:"")}).join("")},e}(Ion),coe=function(e,n){var r=e.nodes,a=e.edges,o=[],s={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(l,c){s[l.id]=c;var u=[];o.push(u)}),a&&a.forEach(function(l){var c=l.source,u=l.target,d=s[c],h=s[u];!d&&d!==0||!h&&h!==0||(o[d][h]=1,n||(o[h][d]=1))}),o},a1i=function(e,n){return e===n},WEt=function(){function t(e,n){n===void 0&&(n=null),this.value=e,this.next=n}return t.prototype.toString=function(e){return e?e(this.value):"".concat(this.value)},t}(),Pon=function(){function t(e){e===void 0&&(e=a1i),this.head=null,this.tail=null,this.compare=e}return t.prototype.prepend=function(e){var n=new WEt(e,this.head);return this.head=n,this.tail||(this.tail=n),this},t.prototype.append=function(e){var n=new WEt(e);return this.head?(this.tail.next=n,this.tail=n,this):(this.head=n,this.tail=n,this)},t.prototype.delete=function(e){if(!this.head)return null;for(var n=null;this.head&&this.compare(this.head.value,e);)n=this.head,this.head=this.head.next;var r=this.head;if(r!==null)for(;r.next;)this.compare(r.next.value,e)?(n=r.next,r.next=r.next.next):r=r.next;return this.compare(this.tail.value,e)&&(this.tail=r),n},t.prototype.find=function(e){var n=e.value,r=n===void 0?void 0:n,a=e.callback,o=a===void 0?void 0:a;if(!this.head)return null;for(var s=this.head;s;){if(o&&o(s.value)||r!==void 0&&this.compare(s.value,r))return s;s=s.next}return null},t.prototype.deleteTail=function(){var e=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,e;for(var n=this.head;n.next;)n.next.next?n=n.next:n.next=null;return this.tail=n,e},t.prototype.deleteHead=function(){if(!this.head)return null;var e=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),e},t.prototype.fromArray=function(e){var n=this;return e.forEach(function(r){return n.append(r)}),this},t.prototype.toArray=function(){for(var e=[],n=this.head;n;)e.push(n),n=n.next;return e},t.prototype.reverse=function(){for(var e=this.head,n=null,r=null;e;)r=e.next,e.next=n,n=e,e=r;this.tail=this.head,this.head=n},t.prototype.toString=function(e){return e===void 0&&(e=void 0),this.toArray().map(function(n){return n.toString(e)}).toString()},t}(),o1i=function(){function t(){this.linkedList=new Pon}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(e){this.linkedList.append(e)},t.prototype.dequeue=function(){var e=this.linkedList.deleteHead();return e?e.value:null},t.prototype.toString=function(e){return this.linkedList.toString(e)},t}(),Ny=function(e,n,r){n===void 0&&(n=[]);var a=n.filter(function(c){return c.source===e||c.target===e});if(r==="target"){var o=function(u){return u.source===e};return a.filter(o).map(function(c){return c.target})}if(r==="source"){var s=function(u){return u.target===e};return a.filter(s).map(function(c){return c.source})}var l=function(u){return u.source===e?u.target:u.source};return a.map(l)},s1i=function(e,n){return n.filter(function(r){return r.source===e})},Dme=function(e,n){return n.filter(function(r){return r.source===e||r.target===e})},Oon=function(e){e===void 0&&(e=0);var n="".concat(Math.random()).split(".")[1].substr(0,5),r="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(e,"-").concat(n).concat(r)};function l1i(t){t===void 0&&(t={});var e=t,n=function(){},r=function(){var a={};return function(o){var s=o.next,l=s;return a[l]?!1:(a[l]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}var Lon=function(e,n,r,a){a===void 0&&(a=!0);var o=l1i(r),s=new o1i,l=e.edges,c=l===void 0?[]:l;s.enqueue(n);for(var u="",d=function(){var f=s.dequeue();o.enter({current:f,previous:u}),Ny(f,c,a?"target":void 0).forEach(function(p){o.allowTraversal({previous:u,current:f,next:p})&&s.enqueue(p)}),o.leave({current:f,previous:u}),u=f};!s.isEmpty();)d()},c1i=function(e){for(var n=e.nodes,r=n===void 0?[]:n,a=e.edges,o=a===void 0?[]:a,s=[],l={},c=[],u=function p(m){c.push(m),l[m.id]=!0;for(var g=Ny(m.id,o),v=function(S){var x=g[S];if(!l[x]){var w=r.filter(function(_){return _.id===x});w.length>0&&p(w[0])}},A=0;A<g.length;++A)v(A)},d=0;d<r.length;d++){var h=r[d];if(!l[h.id]){u(h);for(var f=[];c.length>0;)f.push(c.pop());s.push(f)}}return s},Bon=function(e){for(var n=e.nodes,r=n===void 0?[]:n,a=e.edges,o=a===void 0?[]:a,s=[],l={},c={},u={},d=[],h=0,f=function v(A){c[A.id]=h,u[A.id]=h,h+=1,s.push(A),l[A.id]=!0;for(var y=Ny(A.id,o,"target").filter(function(C){return r.map(function(R){return R.id}).indexOf(C)>-1}),S=function(R){var k=y[R];if(!c[k]&&c[k]!==0){var P=r.filter(function(N){return N.id===k});P.length>0&&v(P[0]),u[A.id]=Math.min(u[A.id],u[k])}else l[k]&&(u[A.id]=Math.min(u[A.id],c[k]))},x=0;x<y.length;x++)S(x);if(u[A.id]===c[A.id]){for(var w=[];s.length>0;){var _=s.pop();if(l[_.id]=!1,w.push(_),_===A)break}w.length>0&&d.push(w)}},p=0,m=r;p<m.length;p++){var g=m[p];!c[g.id]&&c[g.id]!==0&&f(g)}return d};function _nt(t,e){return e?Bon(t):c1i(t)}var AP=function(e){var n={},r=e.nodes,a=r===void 0?[]:r,o=e.edges,s=o===void 0?[]:o;return a.forEach(function(l){n[l.id]={degree:0,inDegree:0,outDegree:0}}),s.forEach(function(l){n[l.source].degree++,n[l.source].outDegree++,n[l.target].degree++,n[l.target].inDegree++}),n},Don=function(e,n){var r=AP(e);return r[n]?AP(e)[n].inDegree:0},$on=function(e,n){var r=AP(e);return r[n]?AP(e)[n].outDegree:0};function u1i(t){t===void 0&&(t={});var e=t,n=function(){},r=function(){var a={};return function(o){var s=o.next;return a[s]?!1:(a[s]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}function Fon(t,e,n,r,a){a===void 0&&(a=!0),r.enter({current:e,previous:n});var o=t.edges,s=o===void 0?[]:o;Ny(e,s,a?"target":void 0).forEach(function(l){r.allowTraversal({previous:n,current:e,next:l})&&Fon(t,l,e,r,a)}),r.leave({current:e,previous:n})}function Tnt(t,e,n,r){r===void 0&&(r=!0),Fon(t,e,"",u1i(n),r)}var Cnt=function(e){var n=null,r=e.nodes,a=r===void 0?[]:r,o={},s={},l={},c={};a.forEach(function(h){s[h.id]=h});for(var u={enter:function(f){var p=f.current,m=f.previous;if(l[p]){n={};for(var g=p,v=m;v!==p;)n[g]=v,g=v,v=o[v];n[g]=v}else l[p]=p,delete s[p],o[p]=m},leave:function(f){var p=f.current;c[p]=p,delete l[p]},allowTraversal:function(f){var p=f.next;return n?!1:!c[p]}};Object.keys(s).length;){var d=Object.keys(s)[0];Tnt(e,d,u)}return n},knt=function(e,n,r){var a,o;r===void 0&&(r=!0);for(var s=[],l=_nt(e,!1),c=0,u=l;c<u.length;c++){var d=u[c];if(d.length)for(var h=d[0],f=h.id,p=[h],m=(a={},a[f]=h,a),g=(o={},o[f]=new Set,o);p.length>0;)for(var v=p.pop(),A=v.id,y=Ny(A,e.edges),S=function(_){var C,R=y[_],k=e.nodes.find(function(T){return T.id===R});if(R===A)s.push((C={},C[R]=v,C));else if(!(R in g))m[R]=v,p.push(k),g[R]=new Set([v]);else if(!g[A].has(k)){for(var P=!0,N=[k,v],L=m[A];g[R].size&&!g[R].has(L)&&(N.push(L),L!==m[L.id]);)L=m[L.id];if(N.push(L),n&&r?(P=!1,N.findIndex(function(T){return n.indexOf(T.id)>-1})>-1&&(P=!0)):n&&!r&&N.findIndex(function(T){return n.indexOf(T.id)>-1})>-1&&(P=!1),P){for(var I={},b=1;b<N.length;b+=1)I[N[b-1].id]=N[b];N.length&&(I[N[N.length-1].id]=N[0]),s.push(I)}g[R].add(v)}},x=0;x<y.length;x+=1)S(x)}return s},Rnt=function(e,n,r){r===void 0&&(r=!0);for(var a=[],o=new Set,s=[],l=[],c={},u={},d=function(L){for(var I=[L];I.length>0;){var b=I.pop();o.has(b)&&(o.delete(b),s[b.id].forEach(function(T){I.push(T)}),s[b.id].clear())}},h=function N(L,I,b){var T=!1;if(n&&r===!1&&n.indexOf(L.id)>-1)return T;a.push(L),o.add(L);for(var M=b[L.id],D=0;D<M.length;D+=1){var B=c[M[D]];if(B===I){for(var j={},H=1;H<a.length;H+=1)j[a[H-1].id]=a[H];a.length&&(j[a[a.length-1].id]=a[0]),l.push(j),T=!0}else o.has(B)||N(B,I,b)&&(T=!0)}if(T)d(L);else for(var D=0;D<M.length;D+=1){var B=c[M[D]];s[B.id].has(L)||s[B.id].add(L)}return a.pop(),T},f=e.nodes,p=f===void 0?[]:f,m=0;m<p.length;m+=1){var g=p[m],v=g.id;u[v]=m,c[m]=g}if(n&&r)for(var A=function(L){var I=n[L];u[p[L].id]=u[I],u[I]=0,c[0]=p.find(function(b){return b.id===I}),c[u[p[L].id]]=p[L]},m=0;m<n.length;m++)A(m);for(var y=function(L){for(var I,b,T=1/0,M=0;M<L.length;M+=1)for(var D=L[M],B=0;B<D.length;B++){var j=u[D[B].id];j<T&&(T=j,b=M)}for(var H=L[b],U=[],M=0;M<H.length;M+=1){var $=H[M];U[$.id]=[];for(var z=0,Z=Ny($.id,e.edges,"target").filter(function(ee){return H.map(function(X){return X.id}).indexOf(ee)>-1});z<Z.length;z++){var K=Z[z];K===$.id&&!(r===!1&&n.indexOf($.id)>-1)?l.push((I={},I[$.id]=$,I)):U[$.id].push(u[K])}}return{component:H,adjList:U,minIdx:T}},S=0;S<p.length;){var x=p.filter(function(N){return u[N.id]>=S}),w=Bon({nodes:x,edges:e.edges}).filter(function(N){return N.length>1});if(w.length===0)break;var _=y(w),C=_.minIdx,R=_.adjList,k=_.component;if(k.length>1){k.forEach(function(N){s[N.id]=new Set});var P=c[C];if(n&&r&&n.indexOf(P.id)===-1)return l;h(P,P,R),S=C+1}else break}return l},jon=function(e,n,r,a){return a===void 0&&(a=!0),n?Rnt(e,r,a):knt(e,r,a)},QEt=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},d1i={}.toString,Mnt=function(t,e){return d1i.call(t)==="[object "+e+"]"};const Hon=function(t){return Mnt(t,"Function")},Nnt=function(t){return Array.isArray?Array.isArray(t):Mnt(t,"Array")},h1i=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function f1i(t,e){if(t){var n;if(Nnt(t))for(var r=0,a=t.length;r<a&&(n=e(t[r],r),n!==!1);r++);else if(h1i(t)){for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),n===!1))break}}}var qEt=function(t){return typeof t=="object"&&t!==null};const Aze=function(t){return Mnt(t,"String")};function yze(t,e){e===void 0&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,a=t.length;r<a;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var p1i=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return f1i(t,function(n,r){Hon(t)&&r==="prototype"||e.push(n)}),e},H6=function(t){if(typeof t!="object"||t===null)return t;var e;if(Nnt(t)){e=[];for(var n=0,r=t.length;n<r;n++)typeof t[n]=="object"&&t[n]!=null?e[n]=H6(t[n]):e[n]=t[n]}else{e={};for(var a in t)typeof t[a]=="object"&&t[a]!=null?e[a]=H6(t[a]):e[a]=t[a]}return e};const m1i=function(t,e){if(!Hon(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=e?e.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var l=t.apply(this,r);return s.set(o,l),l};return n.cache=new Map,n};var bze=function(t,e){if(t===e)return!0;if(!t||!e||Aze(t)||Aze(e))return!1;if(QEt(t)||QEt(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=bze(t[r],e[r]),!!n);r++);return n}if(qEt(t)||qEt(e)){var a=Object.keys(t),o=Object.keys(e);if(a.length!==o.length)return!1;for(var n=!0,r=0;r<a.length&&(n=bze(t[a[r]],e[a[r]]),!!n);r++);return n}return!1},eue;m1i(function(t,e){e===void 0&&(e={});var n=e.fontSize,r=e.fontFamily,a=e.fontWeight,o=e.fontStyle,s=e.fontVariant;return eue||(eue=document.createElement("canvas").getContext("2d")),eue.font=[o,s,a,n+"px",r].join(" "),eue.measureText(Aze(t)?t:"").width},function(t,e){return e===void 0&&(e={}),Mtt([t],p1i(e)).join("")});var g1i=function(e,n,r){for(var a=1/0,o,s=0;s<n.length;s++){var l=n[s].id;!r[l]&&e[l]<=a&&(a=e[l],o=n[s])}return o},One=function(e,n,r,a){var o=e.nodes,s=o===void 0?[]:o,l=e.edges,c=l===void 0?[]:l,u={},d={},h={};s.forEach(function(y,S){var x=y.id;d[x]=1/0,x===n&&(d[x]=0)});for(var f=s.length,p=function(S){var x=g1i(d,s,u),w=x.id;if(u[w]=!0,d[w]===1/0)return"continue";var _=[];r?_=s1i(w,c):_=Dme(w,c),_.forEach(function(C){var R=C.target,k=C.source,P=R===w?k:R,N=a&&C[a]?C[a]:1;d[P]>d[x.id]+N?(d[P]=d[x.id]+N,h[P]=[x.id]):d[P]===d[x.id]+N&&h[P].push(x.id)})},m=0;m<f;m++)p();h[n]=[n];var g={};for(var v in d)d[v]!==1/0&&Uon(n,v,h,g);var A={};for(var v in g)A[v]=g[v][0];return{length:d,path:A,allPath:g}};function Uon(t,e,n,r){if(t===e)return[t];if(r[e])return r[e];for(var a=[],o=0,s=n[e];o<s.length;o++){var l=s[o],c=Uon(t,l,n,r);if(!c)return;for(var u=0,d=c;u<d.length;u++){var h=d[u];Nnt(h)?a.push(xc(xc([],h,!0),[e],!1)):a.push([h,e])}}return r[e]=a,r[e]}var zon=function(e,n,r,a,o){var s=One(e,n,a,o),l=s.length,c=s.path,u=s.allPath;return{length:l[r],path:c[r],allPath:u[r]}},Gon=function(e,n,r,a){var o;if(n===r)return[[n]];var s=e.edges,l=s===void 0?[]:s,c=[n],u=(o={},o[n]=!0,o),d=[],h=[],f=a?Ny(n,l,"target"):Ny(n,l);for(d.push(f);c.length>0&&d.length>0;){var p=d[d.length-1];if(p.length){var m=p.shift();m&&(c.push(m),u[m]=!0,f=a?Ny(m,l,"target"):Ny(m,l),d.push(f.filter(function(A){return!u[A]})))}else{var g=c.pop();u[g]=!1,d.pop();continue}if(c[c.length-1]===r){var v=c.map(function(y){return y});h.push(v);var g=c.pop();u[g]=!1,d.pop()}}return h},NAe=function(e,n){for(var r=coe(e,n),a=[],o=r.length,s=0;s<o;s+=1){a[s]=[];for(var l=0;l<o;l+=1)s===l?a[s][l]=0:r[s][l]===0||!r[s][l]?a[s][l]=1/0:a[s][l]=r[s][l]}for(var c=0;c<o;c+=1)for(var s=0;s<o;s+=1)for(var l=0;l<o;l+=1)a[s][l]>a[s][c]+a[c][l]&&(a[s][l]=a[s][c]+a[c][l]);return a},Von=function(e,n,r,a){n===void 0&&(n=!1),r===void 0&&(r="weight"),a===void 0&&(a=1e3);var o=e.nodes,s=o===void 0?[]:o,l=e.edges,c=l===void 0?[]:l,u={},d={};s.forEach(function(S,x){var w=Oon();S.clusterId=w,u[w]={id:w,nodes:[S]},d[S.id]={node:S,idx:x}});var h=coe(e,n),f={};h.forEach(function(S,x){var w=s[x].id;f[w]={},S.forEach(function(_,C){if(_){var R=s[C].id;f[w][R]=_}})});for(var p=0,m=function(){var x=!1;if(s.forEach(function(w){var _={};Object.keys(f[w.id]).forEach(function(b){var T=f[w.id][b],M=d[b].node,D=M.clusterId;_[D]||(_[D]=0),_[D]+=T});var C=-1/0,R=[];if(Object.keys(_).forEach(function(b){C<_[b]?(C=_[b],R=[b]):C===_[b]&&R.push(b)}),!(R.length===1&&R[0]===w.clusterId)){var k=R.indexOf(w.clusterId);if(k>=0&&R.splice(k,1),R&&R.length){x=!0;var P=u[w.clusterId],N=P.nodes.indexOf(w);P.nodes.splice(N,1);var L=Math.floor(Math.random()*R.length),I=u[R[L]];I.nodes.push(w),w.clusterId=I.id}}}),!x)return"break";p++};p<a;){var g=m();if(g==="break")break}Object.keys(u).forEach(function(S){var x=u[S];(!x.nodes||!x.nodes.length)&&delete u[S]});var v=[],A={};c.forEach(function(S){var x=S.source,w=S.target,_=S[r]||1,C=d[x].node.clusterId,R=d[w].node.clusterId,k="".concat(C,"---").concat(R);if(A[k])A[k].weight+=_,A[k].count++;else{var P={source:C,target:R,weight:_,count:1};A[k]=P,v.push(P)}});var y=[];return Object.keys(u).forEach(function(S){y.push(u[S])}),{clusters:y,clusterEdges:v}},Ax=function(){function t(e){this.arr=e}return t.prototype.getArr=function(){return this.arr||[]},t.prototype.add=function(e){var n,r=e.arr;if(!(!((n=this.arr)===null||n===void 0)&&n.length))return new t(r);if(!(r!=null&&r.length))return new t(this.arr);if(this.arr.length===r.length){var a=[];for(var o in this.arr)a[o]=this.arr[o]+r[o];return new t(a)}},t.prototype.subtract=function(e){var n,r=e.arr;if(!(!((n=this.arr)===null||n===void 0)&&n.length))return new t(r);if(!(r!=null&&r.length))return new t(this.arr);if(this.arr.length===r.length){var a=[];for(var o in this.arr)a[o]=this.arr[o]-r[o];return new t(a)}},t.prototype.avg=function(e){var n=[];if(e!==0)for(var r in this.arr)n[r]=this.arr[r]/e;return new t(n)},t.prototype.negate=function(){var e=[];for(var n in this.arr)e[n]=-this.arr[n];return new t(e)},t.prototype.squareEuclideanDistance=function(e){var n,r=e.arr;if(!(!((n=this.arr)===null||n===void 0)&&n.length)||!(r!=null&&r.length))return 0;if(this.arr.length===r.length){var a=0;for(var o in this.arr)a+=Math.pow(this.arr[o]-e.arr[o],2);return a}},t.prototype.euclideanDistance=function(e){var n,r=e.arr;if(!(!((n=this.arr)===null||n===void 0)&&n.length)||!(r!=null&&r.length))return 0;if(this.arr.length===r.length){var a=0;for(var o in this.arr)a+=Math.pow(this.arr[o]-e.arr[o],2);return Math.sqrt(a)}else console.error("The two vectors are unequal in length.")},t.prototype.normalize=function(){var e=[],n=H6(this.arr);n.sort(function(s,l){return s-l});var r=n[n.length-1],a=n[0];for(var o in this.arr)e[o]=(this.arr[o]-a)/(r-a);return new t(e)},t.prototype.norm2=function(){var e;if(!(!((e=this.arr)===null||e===void 0)&&e.length))return 0;var n=0;for(var r in this.arr)n+=Math.pow(this.arr[r],2);return Math.sqrt(n)},t.prototype.dot=function(e){var n,r=e.arr;if(!(!((n=this.arr)===null||n===void 0)&&n.length)||!(r!=null&&r.length))return 0;if(this.arr.length===r.length){var a=0;for(var o in this.arr)a+=this.arr[o]*e.arr[o];return a}else console.error("The two vectors are unequal in length.")},t.prototype.equal=function(e){var n,r=e.arr;if(((n=this.arr)===null||n===void 0?void 0:n.length)!==(r==null?void 0:r.length))return!1;for(var a in this.arr)if(this.arr[a]!==r[a])return!1;return!0},t}(),Int=function(e,n){n===void 0&&(n=void 0);var r=[];return e.forEach(function(a){n===void 0&&r.push(a),a[n]!==void 0&&r.push(a[n])}),r},zS;(function(t){t.EuclideanDistance="euclideanDistance"})(zS||(zS={}));var v1i=function(e,n,r){var a=[];n!=null&&n.length?a=n:(e.forEach(function(s){a=a.concat(Object.keys(s))}),a=yze(a));var o={};return a.forEach(function(s){var l=[];e.forEach(function(c){c[s]!==void 0&&c[s]!==""&&l.push(c[s])}),l.length&&!(r!=null&&r.includes(s))&&(o[s]=yze(l))}),o},Pnt=function(e,n,r){var a=v1i(e,n,r),o=[];if(!Object.keys(a).length)return o;var s=Object.values(a),l=s.every(function(c){return c.every(function(u){return typeof u=="number"})});return e.forEach(function(c,u){var d=[];Object.keys(a).forEach(function(h){var f=c[h],p=a[h],m=p.findIndex(function(A){return f===A}),g=[];if(l)g.push(f);else for(var v=0;v<p.length;v++)v===m?g.push(1):g.push(0);d=d.concat(g)}),o[u]=d}),o},YEt=function(e,n,r,a){r===void 0&&(r=zS.EuclideanDistance);var o=0;switch(r){case zS.EuclideanDistance:o=new Ax(e).euclideanDistance(new Ax(n));break}return o},JEt=function(e,n,r,a){for(var o=n.length,s=2*a,l=0,c=0;c<o;c++)for(var u=e[c].clusterId,d=0;d<o;d++){var h=e[d].clusterId;if(u===h){var f=n[c][d]||0,p=r[c]||0,m=r[d]||0;l+=f-p*m/s}}return l*=1/s,l},TOe=function(e,n){e===void 0&&(e=[]);for(var r=e.length,a=new Ax([]),o=0;o<r;o++)a=a.add(new Ax(n[o]));var s=a.avg(r);s.normalize();for(var l=0,o=0;o<r;o++){var c=new Ax(n[o]),u=c.squareEuclideanDistance(s);l+=u}var d=[];e.forEach(function(){d.push([])});for(var o=0;o<r;o++){var c=new Ax(n[o]);e[o].clusterInertial=0;for(var h=0;h<r;h++){if(o===h){d[o][h]=0;continue}var f=new Ax(n[h]);d[o][h]=c.squareEuclideanDistance(f),e[o].clusterInertial+=d[o][h]}}for(var p=0,m=2*r*l,o=0;o<r;o++)for(var g=e[o].clusterId,h=0;h<r;h++){var v=e[h].clusterId;if(!(o===h||g!==v)){var A=e[o].clusterInertial*e[h].clusterInertial/Math.pow(m,2)-d[o][h]/m;p+=A}}return Number(p.toFixed(4))},Ont=function(e,n,r,a,o,s,l,c,u){n===void 0&&(n=!1),r===void 0&&(r="weight"),a===void 0&&(a=1e-4),o===void 0&&(o=!1),s===void 0&&(s=void 0),l===void 0&&(l=[]),c===void 0&&(c=["id"]),u===void 0&&(u=1);var d=e.nodes,h=d===void 0?[]:d,f=e.edges,p=f===void 0?[]:f,m=[];if(o){h.forEach(function(j,H){j.properties=j.properties||{},j.originIndex=H});var g=[];h.every(function(j){return j.hasOwnProperty("nodeType")})&&(g=Array.from(new Set(h.map(function(j){return j.nodeType}))),h.forEach(function(j){j.properties.nodeType=g.findIndex(function(H){return H===j.nodeType})}));var v=Int(h,s);m=Pnt(v,l,c)}var A=1,y={},S={};h.forEach(function(j,H){var U=String(A++);j.clusterId=U,y[U]={id:U,nodes:[j]},S[j.id]={node:j,idx:H}});var x=coe(e,n),w=[],_={},C=0;x.forEach(function(j,H){var U=0,$=h[H].id;_[$]={},j.forEach(function(z,Z){if(z){U+=z;var K=h[Z].id;_[$][K]=z,C+=z}}),w.push(U)}),C/=2;for(var R=1/0,k=1/0,P=0,N=[],L={};;){o&&h.every(function(j){return j.hasOwnProperty("properties")})?R=JEt(h,x,w,C)+TOe(h,m)*u:R=JEt(h,x,w,C),P===0&&(k=R,N=h,L=y);var I=R>0&&R>k&&R-k<a;if(R>k&&(N=h.map(function(j){return{node:j,clusterId:j.clusterId}}),L=H6(y),k=R),I||P>100)break;P++,Object.keys(y).forEach(function(j){var H=0;p.forEach(function(U){var $=U.source,z=U.target,Z=S[$].node.clusterId,K=S[z].node.clusterId;(Z===j&&K!==j||K===j&&Z!==j)&&(H=H+(U[r]||1))}),y[j].sumTot=H}),h.forEach(function(j,H){var U=y[j.clusterId],$=0,z,Z=w[H]/(2*C),K=0,Q=U.nodes;Q.forEach(function(ce){var Ee=S[ce.id].idx;K+=x[H][Ee]||0});var ee=K-U.sumTot*Z,X=Q.filter(function(ce){return ce.id!==j.id});X.forEach(function(ce,Ee){m[ce.originIndex]});var te=TOe(X,m)*u,J=_[j.id];if(Object.keys(J).forEach(function(ce){var Ee=S[ce].node,Me=Ee.clusterId;if(Me!==j.clusterId){var Be=y[Me],ze=Be.nodes;if(!(!ze||!ze.length)){var je=0;ze.forEach(function(Ne){var _e=S[Ne.id].idx;je+=x[H][_e]||0});var ye=je-Be.sumTot*Z,me=ze.concat([j]);me.forEach(function(Ne,_e){m[Ne.originIndex]});var le=TOe(me,m)*u,pe=ye-ee;o&&(pe=ye+le-(ee+te)),pe>$&&($=pe,z=Be)}}}),$>0){z.nodes.push(j);var ne=j.clusterId;j.clusterId=z.id;var ie=U.nodes.indexOf(j);U.nodes.splice(ie,1);var he=0,de=0;p.forEach(function(ce){var Ee=ce.source,Me=ce.target,Be=S[Ee].node.clusterId,ze=S[Me].node.clusterId;(Be===z.id&&ze!==z.id||ze===z.id&&Be!==z.id)&&(he=he+(ce[r]||1)),(Be===ne&&ze!==ne||ze===ne&&Be!==ne)&&(de=de+(ce[r]||1))}),z.sumTot=he,U.sumTot=de}})}var b={},T=0;Object.keys(L).forEach(function(j){var H=L[j];if(!H.nodes||!H.nodes.length){delete L[j];return}var U=String(T+1);U!==j&&(H.id=U,H.nodes=H.nodes.map(function($){return{id:$.id,clusterId:U}}),L[U]=H,b[j]=U,delete L[j],T++)}),N.forEach(function(j){var H=j.node,U=j.clusterId;H&&(H.clusterId=U,H.clusterId&&b[H.clusterId]&&(H.clusterId=b[H.clusterId]))});var M=[],D={};p.forEach(function(j){var H=j.source,U=j.target,$=j[r]||1,z=S[H].node.clusterId,Z=S[U].node.clusterId;if(!(!z||!Z)){var K="".concat(z,"---").concat(Z);if(D[K])D[K].weight+=$,D[K].count++;else{var Q={source:z,target:Z,weight:$,count:1};D[K]=Q,M.push(Q)}}});var B=[];return Object.keys(L).forEach(function(j){B.push(L[j])}),{clusters:B,clusterEdges:M}},Kon=function(e,n,r,a,o,s,l,c){return n===void 0&&(n=!1),r===void 0&&(r="weight"),a===void 0&&(a=1e-4),o===void 0&&(o=void 0),s===void 0&&(s=[]),l===void 0&&(l=["id"]),c===void 0&&(c=1),Ont(e,n,r,a,!0,o,s,l,c)},Won=function(e,n){var r;n===void 0&&(n=1);for(var a=H6(e),o=a.nodes,s=o===void 0?[]:o,l=a.edges,c=l===void 0?[]:l,u=function(){var f=AP({nodes:s,edges:c}),p=Object.keys(f);p.sort(function(v,A){var y,S;return((y=f[v])===null||y===void 0?void 0:y.degree)-((S=f[A])===null||S===void 0?void 0:S.degree)});var m=p[0];if(!s.length||((r=f[m])===null||r===void 0?void 0:r.degree)>=n)return"break";var g=s.findIndex(function(v){return v.id===m});s.splice(g,1),c=c.filter(function(v){return!(v.source===m||v.target===m)})};;){var d=u();if(d==="break")break}return{nodes:s,edges:c}},ZEt=function(e,n,r){var a=[];switch(e){case zS.EuclideanDistance:a=n[r];break;default:a=[];break}return a},Qon=function(e,n,r,a,o,s){n===void 0&&(n=3),r===void 0&&(r=void 0),a===void 0&&(a=[]),o===void 0&&(o=["id"]),s===void 0&&(s=zS.EuclideanDistance);var l=e.nodes,c=l===void 0?[]:l,u=e.edges,d=u===void 0?[]:u,h={clusters:[{id:"0",nodes:c}],clusterEdges:[]};if(s===zS.EuclideanDistance&&!c.every(function(U){return U.hasOwnProperty(r)}))return h;var f=[],p=[];if(s===zS.EuclideanDistance&&(f=Int(c,r),p=Pnt(f,a,o)),!p.length)return h;for(var m=yze(p.map(function(U){return U.join("")})),g=Math.min(n,c.length,m.length),v=0;v<c.length;v++)c[v].originIndex=v;for(var A=[],y=[],S=[],v=0;v<g;v++)if(v===0){var x=Math.floor(Math.random()*c.length);switch(s){case zS.EuclideanDistance:A[v]=p[x];break;default:A[v]=[];break}y.push(x),S[v]=[c[x]],c[x].clusterId=String(v)}else{for(var w=-1/0,_=0,C=function(z){if(!y.includes(z)){for(var Z=0,K=0;K<A.length;K++){var Q=0;switch(s){case zS.EuclideanDistance:Q=YEt(p[c[z].originIndex],A[K],s);break}Z+=Q}var ee=Z/A.length;ee>w&&!A.find(function(X){return bze(X,ZEt(s,p,c[z].originIndex))})&&(w=ee,_=z)}},R=0;R<c.length;R++)C(R);A[v]=ZEt(s,p,_),y.push(_),S[v]=[c[_]],c[_].clusterId=String(v)}for(var k=0;;){for(var v=0;v<c.length;v++){var P=0,N=1/0;if(!(k===0&&y.includes(v))){for(var L=0;L<A.length;L++){var I=0;switch(s){case zS.EuclideanDistance:I=YEt(p[v],A[L],s);break}I<N&&(N=I,P=L)}if(c[v].clusterId!==void 0)for(var b=S[Number(c[v].clusterId)].length-1;b>=0;b--)S[Number(c[v].clusterId)][b].id===c[v].id&&S[Number(c[v].clusterId)].splice(b,1);c[v].clusterId=String(P),S[P].push(c[v])}}for(var T=!1,v=0;v<S.length;v++){for(var M=S[v],D=new Ax([]),L=0;L<M.length;L++)D=D.add(new Ax(p[M[L].originIndex]));var B=D.avg(M.length);B.equal(new Ax(A[v]))||(T=!0,A[v]=B.getArr())}if(k++,c.every(function(U){return U.clusterId!==void 0})&&T||k>=1e3)break}var j=[],H={};return d.forEach(function(U){var $,z,Z=U.source,K=U.target,Q=($=c.find(function(J){return J.id===Z}))===null||$===void 0?void 0:$.clusterId,ee=(z=c.find(function(J){return J.id===K}))===null||z===void 0?void 0:z.clusterId,X="".concat(Q,"---").concat(ee);if(H[X])H[X].count++;else{var te={source:Q,target:ee,count:1};H[X]=te,j.push(te)}}),{clusters:S,clusterEdges:j}},Lnt=function(e,n){var r=new Ax(n),a=r.norm2(),o=new Ax(e),s=o.norm2(),l=r.dot(o),c=a*s,u=c?l/c:0;return u},qon=function(e,n,r,a,o){e===void 0&&(e=[]),r===void 0&&(r=void 0),a===void 0&&(a=[]),o===void 0&&(o=[]);var s=H6(e.filter(function(f){return f.id!==n.id})),l=e.findIndex(function(f){return f.id===n.id}),c=Int(e,r),u=Pnt(c,a,o),d=u[l],h=[];return s.forEach(function(f,p){if(f.id!==n.id){var m=u[p],g=Lnt(m,d);h.push(g),f.cosineSimilarity=g}}),s.sort(function(f,p){return p.cosineSimilarity-f.cosineSimilarity}),{allCosineSimilarity:h,similarNodes:s}},A1i=function(){function t(e){this.count=e.length,this.parent={};for(var n=0,r=e;n<r.length;n++){var a=r[n];this.parent[a]=a}}return t.prototype.find=function(e){for(;this.parent[e]!==e;)e=this.parent[e];return e},t.prototype.union=function(e,n){var r=this.find(e),a=this.find(n);r!==a&&(r<a?(this.parent[n]!==n&&this.union(this.parent[n],e),this.parent[n]=this.parent[e]):(this.parent[e]!==e&&this.union(this.parent[e],n),this.parent[e]=this.parent[n]))},t.prototype.connected=function(e,n){return this.find(e)===this.find(n)},t}(),y1i=function(e,n){return e-n},b1i=function(){function t(e){e===void 0&&(e=y1i),this.compareFn=e,this.list=[]}return t.prototype.getLeft=function(e){return 2*e+1},t.prototype.getRight=function(e){return 2*e+2},t.prototype.getParent=function(e){return e===0?null:Math.floor((e-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var e=this.top(),n=this.list.pop();return this.list.length>0&&(this.list[0]=n,this.moveDown(0)),e},t.prototype.insert=function(e){if(e!==null){this.list.push(e);var n=this.list.length-1;return this.moveUp(n),!0}return!1},t.prototype.moveUp=function(e){for(var n=this.getParent(e);e&&e>0&&this.compareFn(this.list[n],this.list[e])>0;){var r=this.list[n];this.list[n]=this.list[e],this.list[e]=r,e=n,n=this.getParent(e)}},t.prototype.moveDown=function(e){var n,r=e,a=this.getLeft(e),o=this.getRight(e),s=this.list.length;a!==null&&a<s&&this.compareFn(this.list[r],this.list[a])>0?r=a:o!==null&&o<s&&this.compareFn(this.list[r],this.list[o])>0&&(r=o),e!==r&&(n=[this.list[r],this.list[e]],this.list[e]=n[0],this.list[r]=n[1],this.moveDown(r))},t}(),x1i=function(e,n){var r=[],a=e.nodes,o=a===void 0?[]:a,s=e.edges,l=s===void 0?[]:s;if(o.length===0)return r;var c=o[0],u=new Set;u.add(c);var d=function(v,A){return n?v.weight-A.weight:0},h=new b1i(d);for(Dme(c.id,l).forEach(function(g){h.insert(g)});!h.isEmpty();){var f=h.delMin(),p=f.source,m=f.target;u.has(p)&&u.has(m)||(r.push(f),u.has(p)||(u.add(p),Dme(p,l).forEach(function(g){h.insert(g)})),u.has(m)||(u.add(m),Dme(m,l).forEach(function(g){h.insert(g)})))}return r},XEt=function(e,n){var r=[],a=e.nodes,o=a===void 0?[]:a,s=e.edges,l=s===void 0?[]:s;if(o.length===0)return r;var c=l.map(function(p){return p});n&&c.sort(function(p,m){return p.weight-m.weight});for(var u=new A1i(o.map(function(p){return p.id}));c.length>0;){var d=c.shift(),h=d.source,f=d.target;u.connected(h,f)||(r.push(d),u.union(h,f))}return r},Yon=function(e,n,r){var a={prim:x1i,kruskal:XEt};return r?a[r](e,n):XEt(e,n)},Jon=function(e,n,r){typeof n!="number"&&(n=1e-6),typeof r!="number"&&(r=.85);for(var a=1,o=0,s=1e3,l=e.nodes,c=l===void 0?[]:l,u=e.edges,d=u===void 0?[]:u,h=c.length,f,p={},m={},g=0;g<h;++g){var v=c[g],A=v.id;p[A]=1/h,m[A]=1/h}for(var y=AP(e);s>0&&a>n;){o=0;for(var g=0;g<h;++g){var v=c[g],A=v.id;if(f=0,y[v.id].inDegree===0)p[A]=0;else{for(var S=Ny(A,d,"source"),x=0;x<S.length;++x){var w=S[x],_=y[w].outDegree;_>0&&(f+=m[w]/_)}p[A]=r*f,o+=p[A]}}o=(1-o)/h,a=0;for(var g=0;g<h;++g){var v=c[g],A=v.id;f=p[A]+o,a+=Math.abs(f-m[A]),m[A]=f}s-=1}return m},E1i=-1,IAe=-1,Zon="-1",i2="-1",Xon=-1,eSt=function(){function t(e,n,r,a){e===void 0&&(e=E1i),n===void 0&&(n=IAe),r===void 0&&(r=IAe),a===void 0&&(a=Zon),this.id=e,this.from=n,this.to=r,this.label=a}return t}(),S1i=function(){function t(e,n){e===void 0&&(e=IAe),n===void 0&&(n=i2),this.id=e,this.label=n,this.edges=[],this.edgeMap={}}return t.prototype.addEdge=function(e){this.edges.push(e),this.edgeMap[e.id]=e},t}(),esn=function(){function t(e,n,r){e===void 0&&(e=IAe),n===void 0&&(n=!0),r===void 0&&(r=!1),this.id=e,this.edgeIdAutoIncrease=n,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=r}return t.prototype.getNodeNum=function(){return this.nodes.length},t.prototype.addNode=function(e,n){if(!this.nodeMap[e]){var r=new S1i(e,n);this.nodes.push(r),this.nodeMap[e]=r,this.nodeLabelMap[n]||(this.nodeLabelMap[n]=[]),this.nodeLabelMap[n].push(e)}},t.prototype.addEdge=function(e,n,r,a){if((this.edgeIdAutoIncrease||e===void 0)&&(e=this.counter++),!(this.nodeMap[n]&&this.nodeMap[r]&&this.nodeMap[r].edgeMap[e])){var o=new eSt(e,n,r,a);if(this.edges.push(o),this.edgeMap[e]=o,this.nodeMap[n].addEdge(o),this.edgeLabelMap[a]||(this.edgeLabelMap[a]=[]),this.edgeLabelMap[a].push(o),!this.directed){var s=new eSt(e,r,n,a);this.nodeMap[r].addEdge(s),this.edgeLabelMap[a].push(s)}}},t}(),YL=function(){function t(e,n,r,a,o){this.fromNode=e,this.toNode=n,this.nodeEdgeNodeLabel={nodeLabel1:r||i2,edgeLabel:a||Zon,nodeLabel2:o||i2}}return t.prototype.equalTo=function(e){return this.fromNode===e.formNode&&this.toNode===e.toNode&&this.nodeEdgeNodeLabel===e.nodeEdgeNodeLabel},t.prototype.notEqualTo=function(e){return!this.equalTo(e)},t}(),tSt=function(){function t(){this.rmpath=[],this.dfsEdgeList=[]}return t.prototype.equalTo=function(e){var n=this.dfsEdgeList.length,r=e.length;if(n!==r)return!1;for(var a=0;a<n;a++)if(this.dfsEdgeList[a]!==e[a])return!1;return!0},t.prototype.notEqualTo=function(e){return!this.equalTo(e)},t.prototype.pushBack=function(e,n,r,a,o){return this.dfsEdgeList.push(new YL(e,n,r,a,o)),this.dfsEdgeList},t.prototype.toGraph=function(e,n){e===void 0&&(e=Xon),n===void 0&&(n=!1);var r=new esn(e,!0,n);return this.dfsEdgeList.forEach(function(a){var o=a.fromNode,s=a.toNode,l=a.nodeEdgeNodeLabel,c=l.nodeLabel1,u=l.edgeLabel,d=l.nodeLabel2;c!==i2&&r.addNode(o,c),d!==i2&&r.addNode(s,d),c!==i2&&d!==c&&r.addEdge(void 0,o,s,u)}),r},t.prototype.buildRmpath=function(){this.rmpath=[];for(var e=void 0,n=this.dfsEdgeList.length,r=n-1;r>=0;r--){var a=this.dfsEdgeList[r],o=a.fromNode,s=a.toNode;o<s&&(e===void 0||s===e)&&(this.rmpath.push(r),e=o)}return this.rmpath},t.prototype.getNodeNum=function(){var e={};return this.dfsEdgeList.forEach(function(n){e[n.fromNode]||(e[n.fromNode]=!0),e[n.toNode]||(e[n.toNode]=!0)}),Object.keys(e).length},t}(),tue=function(){function t(e){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],!!e){for(;e;){var n=e.edge;this.edges.push(n),this.nodesUsed[n.from]=1,this.nodesUsed[n.to]=1,this.edgesUsed[n.id]=1,e=e.preNode}this.edges=this.edges.reverse()}}return t.prototype.hasNode=function(e){return this.nodesUsed[e.id]===1},t.prototype.hasEdge=function(e){return this.edgesUsed[e.id]===1},t}(),w1i=function(){function t(e){var n=e.graphs,r=e.minSupport,a=r===void 0?2:r,o=e.minNodeNum,s=o===void 0?1:o,l=e.maxNodeNum,c=l===void 0?4:l,u=e.top,d=u===void 0?10:u,h=e.directed,f=h===void 0?!1:h,p=e.verbose,m=p===void 0?!1:p;this.graphs=n,this.dfsCode=new tSt,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=a,this.top=d,this.directed=f,this.counter=0,this.maxNodeNum=c,this.minNodeNum=s,this.verbose=m,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[]}return t.prototype.findForwardRootEdges=function(e,n){var r=this,a=[],o=e.nodeMap;return n.edges.forEach(function(s){(r.directed||n.label<=o[s.to].label)&&a.push(s)}),a},t.prototype.findBackwardEdge=function(e,n,r,a){if(!this.directed&&n===r)return null;for(var o=e.nodeMap,s=o[r.to],l=s.edges,c=l.length,u=0;u<c;u++){var d=l[u];if(!(a.hasEdge(d)||d.to!==n.from)){if(this.directed){if(o[n.from].label<o[r.to].label||o[n.from].label===o[r.to].label&&n.label<=d.label)return d}else if(n.label<d.label||n.label===d.label&&o[n.to].label<=o[r.to].label)return d}}return null},t.prototype.findForwardPureEdges=function(e,n,r,a){for(var o=[],s=n.to,l=e.nodeMap[s].edges,c=l.length,u=0;u<c;u++){var d=l[u],h=e.nodeMap[d.to];r<=h.label&&!a.hasNode(h)&&o.push(d)}return o},t.prototype.findForwardRmpathEdges=function(e,n,r,a){for(var o=[],s=e.nodeMap,l=s[n.to].label,c=s[n.from],u=c.edges,d=u.length,h=0;h<d;h++){var f=u[h],p=s[f.to].label;n.to===f.to||r>p||a.hasNode(s[f.to])||(n.label<f.label||n.label===f.label&&l<=p)&&o.push(f)}return o},t.prototype.getSupport=function(e){var n={};return e.forEach(function(r){n[r.graphId]||(n[r.graphId]=!0)}),Object.keys(n).length},t.prototype.findMinLabel=function(e){var n=void 0;return Object.keys(e).forEach(function(r){var a=e[r],o=a.nodeLabel1,s=a.edgeLabel,l=a.nodeLabel2;if(!n){n={nodeLabel1:o,edgeLabel:s,nodeLabel2:l};return}(o<n.nodeLabel1||o===n.nodeLabel1&&s<n.edgeLabel||o===n.nodeLabel1&&s===n.edgeLabel&&l<n.nodeLabel2)&&(n={nodeLabel1:o,edgeLabel:s,nodeLabel2:l})}),n},t.prototype.isMin=function(){var e=this,n=this.dfsCode;if(this.verbose&&console.log("isMin checking",n),n.dfsEdgeList.length===1)return!0;var r=this.directed,a=n.toGraph(Xon,r),o=a.nodeMap,s=new tSt,l={};a.nodes.forEach(function(h){var f=e.findForwardRootEdges(a,h);f.forEach(function(p){var m=o[p.to],g="".concat(h.label,"-").concat(p.label,"-").concat(m.label);l[g]||(l[g]={projected:[],nodeLabel1:h.label,edgeLabel:p.label,nodeLabel2:m.label});var v={graphId:a.id,edge:p,preNode:null};l[g].projected.push(v)})});var c=this.findMinLabel(l);if(c){s.dfsEdgeList.push(new YL(0,1,c.nodeLabel1,c.edgeLabel,c.nodeLabel2));var u=function h(f){for(var p=s.buildRmpath(),m=s.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,g=s.dfsEdgeList[p[0]].toNode,v={},A=!1,y=0,S=r?-1:0,x=function(D){if(A)return"break";f.forEach(function(B){var j=new tue(B),H=e.findBackwardEdge(a,j.edges[p[D]],j.edges[p[0]],j);H&&(v[H.label]||(v[H.label]={projected:[],edgeLabel:H.label}),v[H.label].projected.push({graphId:a.id,edge:v,preNode:B}),y=s.dfsEdgeList[p[D]].fromNode,A=!0)})},w=p.length-1;w>S;w--){var _=x(w);if(_==="break")break}if(A){var C=e.findMinLabel(v);s.dfsEdgeList.push(new YL(g,y,i2,C.edgeLabel,i2));var R=s.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[R]!==s.dfsEdgeList[R]?!1:h(v[C.edgeLabel].projected)}var k={};A=!1;var P=0;f.forEach(function(M){var D=new tue(M),B=e.findForwardPureEdges(a,D.edges[p[0]],m,D);B.length>0&&(A=!0,P=g,B.forEach(function(j){var H="".concat(j.label,"-").concat(o[j.to].label);k[H]||(k[H]={projected:[],edgeLabel:j.label,nodeLabel2:o[j.to].label}),k[H].projected.push({graphId:a.id,edge:j,preNode:M})}))});for(var N=p.length,L=function(D){if(A)return"break";var B=p[D];f.forEach(function(j){var H=new tue(j),U=e.findForwardRmpathEdges(a,H.edges[B],m,H);U.length>0&&(A=!0,P=s.dfsEdgeList[B].fromNode,U.forEach(function($){var z="".concat($.label,"-").concat(o[$.to].label);k[z]||(k[z]={projected:[],edgeLabel:$.label,nodeLabel2:o[$.to].label}),k[z].projected.push({graphId:a.id,edge:$,preNode:j})}))})},w=0;w<N;w++){var I=L(w);if(I==="break")break}if(!A)return!0;var b=e.findMinLabel(k);s.dfsEdgeList.push(new YL(P,g+1,i2,b.edgeLabel,b.nodeLabel2));var T=s.dfsEdgeList.length-1;return n.dfsEdgeList[T]!==s.dfsEdgeList[T]?!1:h(k["".concat(b.edgeLabel,"-").concat(b.nodeLabel2)].projected)},d="".concat(c.nodeLabel1,"-").concat(c.edgeLabel,"-").concat(c.nodeLabel2);return u(l[d].projected)}},t.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var e=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push(H6(e))}},t.prototype.subGraphMining=function(e){var n=this,r=this.getSupport(e);if(!(r<this.minSupport)&&this.isMin()){this.report();var a=this.dfsCode.getNodeNum(),o=this.dfsCode.buildRmpath(),s=this.dfsCode.dfsEdgeList[o[0]].toNode,l=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,c={},u={};e.forEach(function(d){for(var h=n.graphs[d.graphId],f=h.nodeMap,p=new tue(d),m=o.length-1;m>=0;m--){var g=n.findBackwardEdge(h,p.edges[o[m]],p.edges[o[0]],p);if(g){var v="".concat(n.dfsCode.dfsEdgeList[o[m]].fromNode,"-").concat(g.label);u[v]||(u[v]={projected:[],toNodeId:n.dfsCode.dfsEdgeList[o[m]].fromNode,edgeLabel:g.label}),u[v].projected.push({graphId:d.graphId,edge:g,preNode:d})}}if(!(a>=n.maxNodeNum)){var A=n.findForwardPureEdges(h,p.edges[o[0]],l,p);A.forEach(function(S){var x="".concat(s,"-").concat(S.label,"-").concat(f[S.to].label);c[x]||(c[x]={projected:[],fromNodeId:s,edgeLabel:S.label,nodeLabel2:f[S.to].label}),c[x].projected.push({graphId:d.graphId,edge:S,preNode:d})});for(var y=function(x){var w=n.findForwardRmpathEdges(h,p.edges[o[x]],l,p);w.forEach(function(_){var C="".concat(n.dfsCode.dfsEdgeList[o[x]].fromNode,"-").concat(_.label,"-").concat(f[_.to].label);c[C]||(c[C]={projected:[],fromNodeId:n.dfsCode.dfsEdgeList[o[x]].fromNode,edgeLabel:_.label,nodeLabel2:f[_.to].label}),c[C].projected.push({graphId:d.graphId,edge:_,preNode:d})})},m=0;m<o.length;m++)y(m)}}),Object.keys(u).forEach(function(d){var h=u[d],f=h.toNodeId,p=h.edgeLabel;n.dfsCode.dfsEdgeList.push(new YL(s,f,"-1",p,"-1")),n.subGraphMining(u[d].projected),n.dfsCode.dfsEdgeList.pop()}),Object.keys(c).forEach(function(d){var h=c[d],f=h.fromNodeId,p=h.edgeLabel,m=h.nodeLabel2;n.dfsCode.dfsEdgeList.push(new YL(f,s+1,i2,p,m)),n.subGraphMining(c[d].projected),n.dfsCode.dfsEdgeList.pop()})}},t.prototype.generate1EdgeFrequentSubGraphs=function(){var e=this.graphs,n=this.directed,r=this.minSupport,a=this.frequentSize1Subgraphs,o={},s={},l={};return Object.keys(e).forEach(function(c){var u=e[c],d=u.nodeMap;u.nodes.forEach(function(h,f){var p=h.label,m="".concat(c,"-").concat(p);if(!l[m]){var g=o[p]||0;g++,o[p]=g}l[m]={graphKey:c,label:p},h.edges.forEach(function(v){var A=p,y=d[v.to].label;if(!n&&A>y){var S=y;y=A,A=S}var x=v.label,w="".concat(A,"-").concat(x,"-").concat(y);if(!s[w]){var _=s[w]||0;_++,s[w]=_}})})}),Object.keys(o).forEach(function(c){var u=o[c];if(!(u<r)){var d={nodes:[],edges:[]};d.nodes.push({id:"0",label:c}),a.push(d)}}),a},t.prototype.run=function(){var e=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var n=this.graphs;this.directed;var r={};Object.keys(n).forEach(function(a){var o=n[a],s=o.nodeMap;o.nodes.forEach(function(l){var c=e.findForwardRootEdges(o,l);c.forEach(function(u){var d=s[u.to],h="".concat(l.label,"-").concat(u.label,"-").concat(d.label);r[h]||(r[h]={projected:[],nodeLabel1:l.label,edgeLabel:u.label,nodeLabel2:d.label});var f={graphId:a,edge:u,preNode:null};r[h].projected.push(f)})})}),Object.keys(r).forEach(function(a){var o=r[a],s=o.projected,l=o.nodeLabel1,c=o.edgeLabel,u=o.nodeLabel2;e.dfsCode.dfsEdgeList.push(new YL(0,1,l,c,u)),e.subGraphMining(s),e.dfsCode.dfsEdgeList.pop()})}},t}(),_1i=function(e,n,r,a){var o={};return Object.keys(e).forEach(function(s,l){var c=e[s],u=new esn(l,!0,n),d={};c.nodes.forEach(function(h,f){u.addNode(f,h[r]),d[h.id]=f}),c.edges.forEach(function(h,f){var p=d[h.source],m=d[h.target];u.addEdge(-1,p,m,h[a])}),u&&u.getNodeNum()&&(o[u.id]=u)}),o},T1i=function(e,n,r){var a=[];return e.forEach(function(o){var s={nodes:[],edges:[]};o.nodes.forEach(function(l){var c;s.nodes.push((c={id:"".concat(l.id)},c[n]=l.label,c))}),o.edges.forEach(function(l){var c;s.edges.push((c={source:"".concat(l.from),target:"".concat(l.to)},c[r]=l.label,c))}),a.push(s)}),a},nSt="cluster",C1i=function(e){var n=e.graphs,r=e.directed,a=r===void 0?!1:r,o=e.nodeLabelProp,s=o===void 0?nSt:o,l=e.edgeLabelProp,c=l===void 0?nSt:l,u=_1i(n,a,s,c),d=e.minSupport,h=e.maxNodeNum,f=e.minNodeNum,p=e.verbose,m=e.top,g={graphs:u,minSupport:d,maxNodeNum:h,minNodeNum:f,top:m,verbose:p,directed:a},v=new w1i(g);v.run();var A=T1i(v.frequentSubgraphs,s,c);return A},rSt=function(e,n,r,a){r===void 0&&(r="cluster"),a===void 0&&(a=2);var o=[],s=e.nodes;return n.forEach(function(l,c){o.push(tsn(s,l,c,r,a))}),o},tsn=function(e,n,r,a,o){var s=[r],l=[],c={};return n.forEach(function(u,d){if(u<=o&&r!==d){s.push(d),l.push(e[d]);var h=e[d][a];c[h]?(c[h].count++,c[h].dists.push(u)):c[h]={count:1,dists:[u]}}}),Object.keys(c).forEach(function(u){c[u].dists=c[u].dists.sort(function(d,h){return d-h})}),{nodeIdx:r,nodeId:e[r].id,nodeIdxs:s,neighbors:l,neighborNum:s.length-1,nodeLabelCountMap:c}},k1i=function(e,n,r,a,o){var s=Math.ceil(r/n),l={},c=0;return a.forEach(function(u,d){for(var h=0,f=0,p=u.nodeIdxs,m=u.neighborNum-1;h<s;){for(var g=p[1+Math.floor(Math.random()*m)],v=0;(l["".concat(d,"-").concat(g)]||l["".concat(g,"-").concat(d)])&&(g=Math.floor(Math.random()*n),v++,!(v>2*n)););if(v<2*n&&(l["".concat(d,"-").concat(g)]={start:d,end:g,distance:o[d][g]},h++,c++,c>=r))return l;if(f++,f>2*n)break}if(h<s){var A=s-h;s=(s+A)/(n-d-1)}}),l},$me=function(e,n,r,a){var o=r.nodes;return a||(a={}),Object.keys(e).forEach(function(s){var l,c;if(!(a&&a[s])){a[s]={nodes:[],edges:[]};var u=e[s],d=(l=n[u.start])===null||l===void 0?void 0:l.nodeIdxs,h=(c=n[u.end])===null||c===void 0?void 0:c.nodeIdxs;if(!(!d||!h)){var f=new Set(h),p=d.filter(function(y){return f.has(y)});if(!(!p||!p.length)){for(var m={},g=p.length,v=0;v<g;v++){var A=o[p[v]];a[s].nodes.push(A),m[A.id]=!0}r.edges.forEach(function(y){m[y.source]&&m[y.target]&&a[s].edges.push(y)})}}}}),a},Fme=function(e,n,r,a){var o,s,l={};e.nodes.forEach(function(u){l[u.id]=u});var c=0;return!(!((o=n==null?void 0:n.edges)===null||o===void 0)&&o.length)||((s=n==null?void 0:n.nodes)===null||s===void 0?void 0:s.length)<2?0:(e.edges.forEach(function(u){var d=l[u.source][r],h=l[u.target][r],f=n==null?void 0:n.nodes[0][r],p=n==null?void 0:n.nodes[1][r],m=n==null?void 0:n.edges[0][a];u[a]===m&&(d===f&&h===p||d===p&&h===f)&&c++}),c)},R1i=function(e,n,r){for(var a=1/0,o=0,s=function(u){var d=e[u],h=Object.keys(d).sort(function(y,S){return d[y]-d[S]}),f=10,p=[];h.forEach(function(y,S){p[S%f]||(p[S%f]={graphs:[],totalCount:0,aveCount:0}),p[S%f].graphs.push(y),p[S%f].totalCount+=d[y]});var m=0,g=[];p.forEach(function(y){var S=y.totalCount/y.graphs.length;y.aveCount=S,g.push(S);var x=0,w=y.length;y.graphs.forEach(function(_,C){var R=d[_];y.graphs.forEach(function(k,P){C!==P&&(x+=Math.abs(R-d[k]))})}),x/=w*(w-1)/2,m+=x}),m/=p.length;var v=0;g.forEach(function(y,S){g.forEach(function(x,w){S!==w&&(v+=Math.abs(y-x))}),v/=g.length*(g.length-1)/2});var A=v-m;a<A&&(a=A,o=u)},l=0;l<n;l++)s(l);return{structure:r[o],structureCountMap:e[o]}},iSt=function(e,n){var r={},a={};return e.forEach(function(o,s){r[o.id]={idx:s,node:o,degree:0,inDegree:0,outDegree:0};var l=o[n];a[l]||(a[l]=[]),a[l].push(o)}),{nodeMap:r,nodeLabelMap:a}},aSt=function(e,n,r){var a={},o={};return e.forEach(function(s,l){a["".concat(Oon)]={idx:l,edge:s};var c=s[n];o[c]||(o[c]=[]),o[c].push(s);var u=r[s.source];u&&(u.degree++,u.outDegree++);var d=r[s.target];d&&(d.degree++,d.inDegree++)}),{edgeMap:a,edgeLabelMap:o}},oSt=function(e,n,r){var a=n.length,o={};return n.forEach(function(s,l){for(var c=r?0:l+1,u=e[l].id,d=c;d<a;d++)if(l!==d){var h=e[d].id,f=s[d];o["".concat(u,"-").concat(h)]=f,r||(o["".concat(h,"-").concat(u)]=f)}}),o},M1i=function(e,n,r,a,o,s,l,c,u,d,h){var f,p="".concat(n.id,"-").concat(r.id);if(d&&d[p])return d[p];var m=h?h[p]:void 0;if(!m){var g=(f={},f[p]={start:a[n.id].idx,end:a[r.id].idx,distance:o},f);h=$me(g,s,e,h),m=h[p]}return Fme(m,l,c,u)},sSt=function(e,n,r,a){var o,s,l,c=(o=e[n])===null||o===void 0?void 0:o.degree,u=(s=e[n])===null||s===void 0?void 0:s.inDegree,d=(l=e[n])===null||l===void 0?void 0:l.outDegree;return e[n]===void 0&&(c=1/0,u=1/0,d=1/0,a[n].forEach(function(h){var f=r[h.id].degree;c>f&&(c=f);var p=r[h.id].inDegree;u>p&&(u=p);var m=r[h.id].outDegree;d>m&&(d=m)}),e[n]={degree:c,inDegree:u,outDegree:d}),{minPatternNodeLabelDegree:c,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:d}},nsn=function(e,n,r,a,o,s,l){var c;if(r===void 0&&(r=!1),s===void 0&&(s="cluster"),l===void 0&&(l="cluster"),!(!e||!e.nodes)){var u=e.nodes.length;if(u){var d=NAe(e,r),h=NAe(n,r),f=oSt(e.nodes,d,r),p=oSt(n.nodes,h,r),m=iSt(e.nodes,s),g=m.nodeMap,v=m.nodeLabelMap,A=iSt(n.nodes,s),y=A.nodeMap,S=A.nodeLabelMap;aSt(e.edges,l,g);var x=aSt(n.edges,l,y).edgeLabelMap,w=[];h==null||h.forEach(function(ye){w=w.concat(ye)}),o||(o=Math.max.apply(Math,xc(xc([],w,!1),[2],!1))),a||(a=o);var _=rSt(e,d,s,a),C=rSt(n,h,s,a),R=Math.min(100,u*(u-1)/2),k=k1i(a,u,R,_,d),P=$me(k,_,e),N=10,L=1,I=1,b=4,T={graphs:P,nodeLabelProp:s,edgeLabelProp:l,minSupport:L,minNodeNum:I,maxNodeNum:b,directed:r},M=C1i(T).slice(0,N),D=M.length,B=[];M.forEach(function(ye,me){B[me]={},Object.keys(P).forEach(function(le){var pe=P[le],Ne=Fme(pe,ye,s,l);B[me][le]=Ne})});var j=R1i(B,D,M),H=j.structure,U=j.structureCountMap,$=n.nodes[0],z=[],Z=(c=n.nodes[0])===null||c===void 0?void 0:c[s],K=-1/0;n.nodes.forEach(function(ye){var me=ye[s],le=v[me];(le==null?void 0:le.length)>K&&(K=le.length,z=le,Z=me,$=ye)});var Q={},ee={},X={},te={},J={},ne={};Object.keys(S).forEach(function(ye,me){J[ye]=[],r&&(ne[ye]=[]);var le=S[ye],pe={};le.forEach(function(oe){var ge=p["".concat($.id,"-").concat(oe.id)];if(ge&&J[ye].push(ge),pe["".concat($.id,"-").concat(oe.id)]={start:0,end:y[oe.id].idx,distance:ge},r){var De=p["".concat(oe.id,"-").concat($.id)];De&&ne[ye].push(De)}}),J[ye]=J[ye].sort(function(oe,ge){return oe-ge}),r&&(ne[ye]=ne[ye].sort(function(oe,ge){return oe-ge})),ee=$me(pe,C,n,ee);var Ne=[];if(Object.keys(pe).forEach(function(oe){if(X[oe]){Ne.push(X[oe]);return}var ge=ee[oe];X[oe]=Fme(ge,H,s,l),Ne.push(X[oe])}),Ne=Ne.sort(function(oe,ge){return ge-oe}),te["".concat($.id,"-").concat(ye)]=Ne,ye!==Z)for(var _e=(z==null?void 0:z.length)||0,ue=function(ge){var De=z[ge],Fe=_[g[De.id].idx],Se=Fe.nodeLabelCountMap[ye],Xe=S[ye].length;if(!Se||Se.count<Xe)return z.splice(ge,1),"continue";for(var Oe=!1,Ye=0;Ye<Xe;Ye++)if(Se.dists[Ye]>J[ye][Ye]){Oe=!0;break}if(Oe)return z.splice(ge,1),"continue";var mt={};Fe.neighbors.forEach(function(pn){var sn=f["".concat(De.id,"-").concat(pn.id)];mt["".concat(De.id,"-").concat(pn.id)]={start:g[De.id].idx,end:g[pn.id].idx,distance:sn}}),P=$me(mt,_,e,P);var ut=[];Object.keys(mt).forEach(function(pn){if(U[pn]){ut.push(U[pn]);return}var sn=P[pn];U[pn]=Fme(sn,H,s,l),ut.push(U[pn])}),ut=ut.sort(function(pn,sn){return sn-pn});for(var lt=!1,Ye=0;Ye<Xe;Ye++)if(ut[Ye]<Ne[Ye]){lt=!0;break}if(lt)return z.splice(ge,1),"continue"},se=_e-1;se>=0;se--)ue(se)});var ie=[];z==null||z.forEach(function(ye){for(var me=g[ye.id].idx,le=tsn(e.nodes,d[me],me,s,o),pe=le.neighbors,Ne=pe.length,_e=!1,ue=Ne-1;ue>=0;ue--){if(pe.length+1<n.nodes.length){_e=!0;return}var se=pe[ue],oe=se[s];if(!S[oe]||!S[oe].length){pe.splice(ue,1);continue}if(!J[oe]||!J[oe].length){pe.splice(ue,1);continue}var ge="".concat(ye.id,"-").concat(se.id),De=f[ge],Fe=J[oe].length-1,Se=J[oe][Fe];if(De>Se){pe.splice(ue,1);continue}if(r){var Xe="".concat(se.id,"-").concat(ye.id),Oe=f[Xe];Fe=ne[oe].length-1;var Ye=ne[oe][Fe];if(Oe>Ye){pe.splice(ue,1);continue}}var mt=U[ge]?U[ge]:M1i(e,ye,se,g,De,_,H,s,l,U,P),ut="".concat($.id,"-").concat(oe),lt=te[ut][te[ut].length-1];if(mt<lt){pe.splice(ue,1);continue}var pn=sSt(Q,oe,y,S),sn=pn.minPatternNodeLabelDegree;if(pn.minPatternNodeLabelInDegree,pn.minPatternNodeLabelOutDegree,g[se.id].degree<sn){pe.splice(ue,1);continue}}_e||ie.push({nodes:[ye].concat(pe)})});var he=One(n,$.id,!1).length,de={};r?(Object.keys(he).forEach(function(ye){var me=y[ye].node[s];de[me]?de[me].push(he[ye]):de[me]=[he[ye]]}),Object.keys(de).forEach(function(ye){de[ye].sort(function(me,le){return me-le})})):de=J;for(var ce=ie.length,Ee=function(me){var le=ie[me],pe=le.nodes[0],Ne={},_e={};le.nodes.forEach(function(Ze,ot){_e[Ze.id]={idx:ot,node:Ze,degree:0,inDegree:0,outDegree:0};var yn=Ze[s];Ne[yn]?Ne[yn]++:Ne[yn]=1});var ue=[],se={};e.edges.forEach(function(Ze){_e[Ze.source]&&_e[Ze.target]&&(ue.push(Ze),se[Ze[l]]?se[Ze[l]]++:se[Ze[l]]=1,_e[Ze.source].degree++,_e[Ze.target].degree++,_e[Ze.source].outDegree++,_e[Ze.target].inDegree++)});for(var oe=Object.keys(x).length,ge=!1,De=0;De<oe;De++){var Fe=Object.keys(x)[De];if(!se[Fe]||se[Fe]<x[Fe].length){ge=!0;break}}if(ge)return ie.splice(me,1),"continue";var Se=ue.length;if(Se<n.edges.length)return ie.splice(me,1),"break";for(var Xe=!1,Oe=function(ot){var yn=ue[ot],vt=yn[l],Gt=x[vt];if(!Gt||!Gt.length)return se[vt]--,Gt&&se[vt]<Gt.length?(Xe=!0,"break"):(ue.splice(ot,1),_e[yn.source].degree--,_e[yn.target].degree--,_e[yn.source].outDegree--,_e[yn.target].inDegree--,"continue");var ft=_e[yn.source].node[s],rt=_e[yn.target].node[s],Pt=!1;if(Gt.forEach(function(Yt){var Un=y[Yt.source].node,jn=y[Yt.target].node;Un[s]===ft&&jn[s]===rt&&(Pt=!0),!r&&Un[s]===rt&&jn[s]===ft&&(Pt=!0)}),!Pt)return se[vt]--,Gt&&se[vt]<Gt.length?(Xe=!0,"break"):(ue.splice(ot,1),_e[yn.source].degree--,_e[yn.target].degree--,_e[yn.source].outDegree--,_e[yn.target].inDegree--,"continue")},De=Se-1;De>=0;De--){var Ye=Oe(De);if(Ye==="break")break}if(Xe)return ie.splice(me,1),"continue";le.edges=ue;var mt=One(le,le.nodes[0].id,!1).length;if(Object.keys(mt).reverse().forEach(function(Ze){if(!(Ze===le.nodes[0].id||Xe)){if(mt[Ze]===1/0){var ot=_e[Ze].node[s];if(Ne[ot]--,Ne[ot]<S[ot].length){Xe=!0;return}var yn=le.nodes.indexOf(_e[Ze].node);le.nodes.splice(yn,1),_e[Ze]=void 0;return}var vt=g[Ze].node[s];if(!de[vt]||!de[vt].length||mt[Ze]>de[vt][de[vt].length-1]){var ot=_e[Ze].node[s];if(Ne[ot]--,Ne[ot]<S[ot].length){Xe=!0;return}var yn=le.nodes.indexOf(_e[Ze].node);le.nodes.splice(yn,1),_e[Ze]=void 0}}}),Xe)return ie.splice(me,1),"continue";for(var ut=!0,lt=0;ut&&!Xe;){ut=!1;var pn=r?_e[pe.id].degree<y[$.id].degree||_e[pe.id].inDegree<y[$.id].inDegree||_e[pe.id].outDegree<y[$.id].outDegree:_e[pe.id].degree<y[$.id].degree;if(pn){Xe=!0;break}if(Ne[pe[s]]<S[pe[s]].length){Xe=!0;break}for(var sn=le.nodes.length,un=sn-1;un>=0;un--){var ur=le.nodes[un],dt=_e[ur.id].degree,xt=_e[ur.id].inDegree,Cn=_e[ur.id].outDegree,Kt=ur[s],rn=sSt(Q,Kt,y,S),On=rn.minPatternNodeLabelDegree,an=rn.minPatternNodeLabelInDegree,on=rn.minPatternNodeLabelOutDegree,dr=r?dt<On||xt<an||Cn<on:dt<On;if(dr){if(Ne[ur[s]]--,Ne[ur[s]]<S[ur[s]].length){Xe=!0;break}le.nodes.splice(un,1),_e[ur.id]=void 0,ut=!0}}if(Xe||!ut&&lt!==0)break;Se=ue.length;for(var $e=Se-1;$e>=0;$e--){var qe=ue[$e];if(!_e[qe.source]||!_e[qe.target]){ue.splice($e,1);var yt=qe[l];if(se[yt]--,_e[qe.source]&&(_e[qe.source].degree--,_e[qe.source].outDegree--),_e[qe.target]&&(_e[qe.target].degree--,_e[qe.target].inDegree--),x[yt]&&se[yt]<x[yt].length){Xe=!0;break}ut=!0}}lt++}if(Xe||Xe||le.nodes.length<n.nodes.length||ue.length<n.edges.length)return ie.splice(me,1),"continue"},Me=ce-1;Me>=0;Me--){var Be=Ee(Me);if(Be==="break")break}for(var ze=ie.length,je=function(me){var le=ie[me],pe={};le.edges.forEach(function(ue){var se="".concat(ue.source,"-").concat(ue.target,"-").concat(ue.label);pe[se]?pe[se]++:pe[se]=1});for(var Ne=function(se){var oe=ie[se],ge={};oe.edges.forEach(function(Fe){var Se="".concat(Fe.source,"-").concat(Fe.target,"-").concat(Fe.label);ge[Se]?ge[Se]++:ge[Se]=1});var De=!0;Object.keys(ge).length!==Object.keys(pe).length?De=!1:Object.keys(pe).forEach(function(Fe){ge[Fe]!==pe[Fe]&&(De=!1)}),De&&ie.splice(se,1)},_e=ze-1;_e>me;_e--)Ne(_e);ze=ie.length},Me=0;Me<=ze-1;Me++)je(Me);return ie}}},rsn=function(){function t(e){e===void 0&&(e=10),this.linkedList=new Pon,this.maxStep=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(e){this.linkedList.prepend(e),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var e=this.linkedList.deleteHead();return e?e.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map(function(e){return e.value})},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}(),isn=Cnt;const N1i={getAdjMatrix:coe,breadthFirstSearch:Lon,connectedComponent:_nt,getDegree:AP,getInDegree:Don,getOutDegree:$on,detectCycle:Cnt,detectDirectedCycle:isn,detectAllCycles:jon,detectAllDirectedCycle:Rnt,detectAllUndirectedCycle:knt,depthFirstSearch:Tnt,dijkstra:One,findAllPath:Gon,findShortestPath:zon,floydWarshall:NAe,labelPropagation:Von,louvain:Ont,iLouvain:Kon,kCore:Won,kMeans:Qon,cosineSimilarity:Lnt,nodesCosineSimilarity:qon,minimumSpanningTree:Yon,pageRank:Jon,getNeighbors:Ny,Stack:rsn,GADDI:nsn},I1i=Object.freeze(Object.defineProperty({__proto__:null,GADDI:nsn,Stack:rsn,breadthFirstSearch:Lon,connectedComponent:_nt,cosineSimilarity:Lnt,default:N1i,depthFirstSearch:Tnt,detectAllCycles:jon,detectAllDirectedCycle:Rnt,detectAllUndirectedCycle:knt,detectCycle:Cnt,detectDirectedCycle:isn,dijkstra:One,findAllPath:Gon,findShortestPath:zon,floydWarshall:NAe,getAdjMatrix:coe,getDegree:AP,getInDegree:Don,getNeighbors:Ny,getOutDegree:$on,iLouvain:Kon,kCore:Won,kMeans:Qon,labelPropagation:Von,louvain:Ont,minimumSpanningTree:Yon,nodesCosineSimilarity:qon,pageRank:Jon},Symbol.toStringTag,{value:"Module"}));var JL=cr({},I1i);function PAe(t,e){for(var n=[],r=0;r<t.length;r+=1)for(var a=t[r],o=0;o<e.length;o+=1){var s=e[o];n[o]?n[o].push(a[s]):n[o]=[a[s]]}return n}function P1i(t){var e=xa(t,1),n=e[0],r=n?Object.keys(n):[],a=PAe(t,r);return{nodeFields:a,nodeFieldNames:r}}function O1i(t){var e=xa(t,1),n=e[0],r=n?Object.keys(n):[],a=PAe(t,r);return{linkFields:a,linkFieldNames:r}}function L1i(t,e){var n=G3(t);return cr(cr({},n),{name:e})}function OAe(t,e){for(var n=[],r=0;r<t.length;r+=1){var a=t[r];n.push(L1i(a,e[r]))}return n}function B1i(t,e,n){for(var r=10,a,o=0;o<e.length;o+=1){var s=e[o];if(s.levelOfMeasurements.indexOf("Nominal")>-1||s.levelOfMeasurements.indexOf("Ordinal")>-1&&s.missing===0&&s.distinct>1&&s.distinct<=r){a=s;break}}if(a)for(var l=0;l<t.length;l+=1)t[l].cluster=t[l][a.name];else{for(var c=JL.louvain({nodes:t,edges:n}).clusters,u=[],o=0;o<c.length;o+=1){for(var d=c[o],h=d.nodes,f=d.id,l=0;l<h.length;l+=1)h[l].cluster=f;u.push(f)}a=cr(cr({},G3(u)),{name:"cluster"})}return a}function D1i(t,e){for(var n=[],r=[],a=!1,o=JL.getDegree({nodes:t,edges:e}),s=JL.pageRank({nodes:t,edges:e}),l=JL.detectAllCycles({nodes:t,edges:e},!1),c=JL.detectAllDirectedCycle({nodes:t,edges:e}),u=JL.connectedComponent({nodes:t,edges:e},!1),d=JL.connectedComponent({nodes:t,edges:e},!0),h={},f=0;f<l.length;f+=1)for(var p=Object.keys(l[f]),m=0;m<p.length;m+=1){var g=p[m];h[g]?h[g]+=1:h[g]=1}for(var v=Object.values(h).filter(function(M){return M}).length,A=v/t.length,y=0;y<t.length;y+=1){var S=t[y],x={degree:o[S.id].degree,inDegree:o[S.id].inDegree,outDegree:o[S.id].outDegree,pageRank:s[S.id],cycleCount:h[S.id]||0};n.push(x),t[y]=cr(cr({},S),x)}for(var y=0;y<e.length;y+=1){var w=e[y],_={};r.push(_),e[y]=cr(cr({},w),_)}var C=Object.keys(n[0]),R=Object.keys(r[0]),k=OAe(PAe(n,C),C),P=OAe(PAe(r,R),R),N=t.map(function(M){return M.degree}),L=N.reduce(function(M,D){return M+D})/N.length,I=N.map(function(M){return M-L}),b=Math.sqrt(I.map(function(M){return Math.pow(M,2)}).reduce(function(M,D){return M+D})/(N.length-1)),T={isDirected:a,nodeCount:t.length,linkCount:e.length,isConnected:u&&u.length===1,isDAG:a,maxDegree:Math.max.apply(Math,xc([],xa(N))),avgDegree:L,degreeStd:b,cycleParticipate:A,cycleCount:l.length,directedCycleCount:c.length,componentCount:u.length,components:u,strongConnectedComponents:d,strongConnectedComponentCount:d.length};return{nodeFeats:k,linkFeats:P,graphInfo:T}}function asn(t,e){var n=[],r=[],a=(e==null?void 0:e.childrenKey)||"children",o=function(s){var l=s[a]||[];delete s[a],n==null||n.push(s);for(var c=0;c<l.length;c+=1){var u=l[c];r==null||r.push({source:s.id,target:u.id}),o(u)}};return o(t),{nodes:n,links:r}}function $1i(t,e){var n=xa(t,1),r=n[0];di(vx(r),"Data is unable transform to graph");var a=(e==null?void 0:e.sourceKey)||"source"in r&&"source"||"from"in r&&"from",o=(e==null?void 0:e.targetKey)||"target"in r&&"target"||"to"in r&&"to",s=(e==null?void 0:e.childrenKey)||"children"in r&&"children"||"to"in r&&"to";di(a||o||s,"Data is unable transform to graph");var l=[],c=[],u=r,d=a,h=u[d],f=o,p=u[f],m=s,g=u[m];if(iw(h)&&iw(p))for(var v=function(R){var k=t[R],P=k,N=a,L=P[N],I=o,b=P[I];l.findIndex(function(M){return M.id===L})===-1&&l.push({id:L}),l.findIndex(function(M){return M.id===b})===-1&&l.push({id:b});var T=cr(cr({},k),{source:L,target:b});c.push(T)},A=0;A<t.length;A+=1)v(A);else if(_l(g))for(var A=0;A<t.length;A+=1){for(var y=t[A],S=asn(y,e),x=S.nodes,w=S.links,_=function(k){var P=x[k],N=l.find(function(L){return L.id===P.id});N?N=cr(cr({},P),N):l.push(P)},C=0;C<x.length;C+=1)_(C);c.push.apply(c,xc([],xa(w)))}return{nodes:l,links:c}}function F1i(t){if(!_l(t)||t.length<=1)return!1;var e=G3(t.map(function(n){return n.id}));return Ygi(e)}function j1i(t,e){if(!_l(e)||!F1i(t)||e.length<=1)return!1;for(var n=function(o){var s=e[o],l=s.source,c=s.target,u=t.findIndex(function(h){return h.id===l}),d=t.findIndex(function(h){return h.id===c});if(!(u>-1&&d>-1))return{value:!1}},r=0;r<e.length;r+=1){var a=n(r);if(typeof a=="object")return a.value}return!0}var H1i=function(){function t(e,n){this.data={nodes:[],links:[]},this.extra=n;var r=this.autoParse(e,n),a=r.nodes,o=r.links;di(j1i(a,o),"Data is unable transform to graph"),this.data={nodes:a.map(function(s){return vze(s)}),links:o.map(function(s){return vze(s)})}}return t.prototype.autoParse=function(e,n){var r,a;if(di(_l(e)||vx(e),"Data is unable transform to graph"),_l(e)){var o=$1i(e,n);r=o.nodes,a=o.links}if(vx(e))if(n!=null&&n.nodeKey&&(n!=null&&n.linkKey))r=e[n.nodeKey],a=e[n.linkKey];else if(n!=null&&n.childrenKey||"children"in e){var s=asn(e,n);r=s.nodes,a=s.links}else{var l="nodes"in e&&"nodes",c="links"in e&&"links"||"edges"in e&&"edges";r=e[l],a=e[c]}return{nodes:r,links:a}},t.prototype.getNodeFrame=function(){var e,n,r={indexes:(e=this.extra)===null||e===void 0?void 0:e.nodeIndexes,columns:(n=this.extra)===null||n===void 0?void 0:n.nodeColumns};return new j6(this.data.nodes,r)},t.prototype.getLinkFrame=function(){var e,n,r={indexes:(e=this.extra)===null||e===void 0?void 0:e.linkIndexes,columns:(n=this.extra)===null||n===void 0?void 0:n.linkColumns};return new j6(this.data.links,r)},t.prototype.info=function(){var e=this.data,n=e.nodes,r=e.links,a=D1i(n,r),o=P1i(n),s=o.nodeFields,l=o.nodeFieldNames,c=O1i(r),u=c.linkFields,d=c.linkFieldNames,h=OAe(s,l),f=OAe(u,d),p=B1i(n,h,r);h.push(p);var m=cr({nodeFieldsInfo:h,linkFieldsInfo:f},a);return m},t}(),U1i={concepts:{family:{LineCharts:"折线图类",ColumnCharts:"柱状图类",BarCharts:"条形图类",PieCharts:"饼图类",AreaCharts:"面积图类",ScatterCharts:"散点图类",FunnelCharts:"漏斗图类",HeatmapCharts:"热力图类",RadarCharts:"雷达图类",TreeGraph:"树形关系类",GeneralGraph:"关系图类",PointLayer:"点图层类",LineLayer:"线图层类",PolygonLayer:"面图层类",HeatmapLayer:"地图热力图类",Others:"其他类",Table:"表格类"},category:{Statistic:"统计图表",Diagram:"示意图",Graph:"关系图",Map:"地图",Other:"其他"},purpose:{Comparison:"比较",Trend:"趋势",Distribution:"分布",Rank:"排名",Proportion:"占比",Composition:"组成",Relation:"关系",Hierarchy:"层级",Flow:"流向",Spatial:"空间",Anomaly:"异常",Value:"数值"},coord:{NumberLine:"数轴",Cartesian2D:"二维直角坐标系",SymmetricCartesian:"对称直角坐标系",Cartesian3D:"三维直角坐标系",Polar:"极坐标系",NodeLink:"点线关系网络",Radar:"雷达型坐标系",Geo:"地理坐标系",Other:"其他"},shape:{Lines:"线形",Bars:"条形",Round:"圆形",Square:"方形",Area:"面形",Scatter:"散点形",Symmetric:"对称形",Network:"网络形",Map:"地图",Other:"其他"},channel:{Position:"位置",Length:"长度",Color:"颜色",Area:"面积",Angle:"角度",ArcLength:"弧长",Direction:"方向",Size:"大小",Opacity:"透明度",Stroke:"线色",LineWidth:"线粗",Lightness:"亮度"},lom:{Continuous:"连续",Discrete:"离散",Interval:"数值",Nominal:"无序名词",Ordinal:"有序名词",Time:"时间"},recRate:{Recommended:"推荐","Use with Caution":"慎用","Not Recommended":"不推荐"}},chartTypes:{line_chart:{name:"折线图",alias:["折线图","线图"],def:"使用折线的线段显示数据在一个具有顺序性的维度上的变化。"},step_line_chart:{name:"阶梯图",alias:["阶梯线"],def:"折线根据分类字段分为多根在 x 方向（时间）的信息是完全一致、颜色及 y 方向（变量）信息不一致的折线，通常用作同一时间区间内多个变量发展趋势的对比。"},area_chart:{name:"面积图",alias:[],def:"使用带填充区域的线段显示数据在一个具有顺序性的维度上的变化。"},stacked_area_chart:{name:"堆叠面积图",alias:[],def:"使用带不同样式的填充区域的层叠线段来显示多组数据在同一个具有顺序性的维度上的变化，线段在同一维度值上的端点高度按照数值累加。"},percent_stacked_area_chart:{name:"百分比堆叠面积图",alias:["%堆叠面积图","100%堆叠面积图"],def:"一种特殊的堆叠面积图，线段在同一维度值上的端点高度代表值在其中的占比，占比总和为百分之百。"},interval_area_chart:{name:"区间面积图",alias:[],def:"TBD"},stream_chart:{name:"流图",alias:[],def:"TBD"},column_chart:{name:"柱状图",alias:["柱形图"],def:"使用柱形显示维度的数值。横轴显示分类维度，纵轴显示相应的值。"},grouped_column_chart:{name:"分组柱状图",alias:["簇状柱状图"],def:"使用颜色不同的柱形并排组成小组来显示各维度的数值。横轴标示出分组，颜色标示出分类，纵轴显示相应的值。"},stacked_column_chart:{name:"堆叠柱状图",alias:[],def:"使用颜色不同的堆叠的柱形来显示各维度的数值。横轴标示出第一个分类维度，颜色标示出第二个分类维度，纵轴显示相应的值。"},percent_stacked_column_chart:{name:"百分比堆叠柱状图",alias:["%堆叠柱状图","100%堆叠柱状图"],def:"使用颜色不同的堆叠的柱形来显示各维度的数值。横轴标示出第一个分类维度，颜色标示出第二个分类维度，纵轴显示相应分类所占的百分比。"},interval_column_chart:{name:"区间柱状图",alias:[],def:"TBD"},range_column_chart:{name:"值域柱状图",alias:[],def:"值域柱状图是一种特殊的柱状图，柱子不一定要从 0 开始，而是用柱子长度表示一个从起始值到终止值的区间。"},waterfall_chart:{name:"瀑布图",alias:["桥图"],def:"瀑布图形似瀑布流水，采用绝对值与相对值结合的方式，适用于表达数个特定数值之间的数量变化关系。"},histogram:{name:"直方图",alias:[],def:"直方图是一种统计报告图，由一系列高度不等的纵向条纹或线段表示数据分布的情况。"},bar_chart:{name:"条形图",alias:["条状图"],def:"使用条形显示维度的数值。纵轴显示分类维度，横轴显示相应的值。"},grouped_bar_chart:{name:"分组条形图",alias:["簇状条形图"],def:"使用颜色不同的条形并排组成小组来显示维度的数值。纵轴标示出分组，颜色标示出分类，横轴显示相应的值。"},stacked_bar_chart:{name:"堆叠条形图",alias:[],def:"使用颜色不同的堆叠的条形来显示各维度的数值。纵轴标示出第一个分类维度，颜色标示出第二个分类维度，横轴显示相应的值。"},percent_stacked_bar_chart:{name:"百分比堆叠条形图",alias:["%堆叠条形图","100%堆叠条形图"],def:"使用颜色不同的堆叠的条形来显示各维度的数值。纵轴标示出第一个分类维度，颜色标示出第二个分类维度，横轴显示相应分类所占的百分比。"},interval_bar_chart:{name:"区间条形图",alias:[],def:"TBD"},range_bar_chart:{name:"值域条形图",alias:[],def:"值域条形图是一种特殊的条形图，条不一定要从 0 开始，而是用长度表示一个从起始值到终止值的区间。"},radial_bar_chart:{name:"径向条形图",alias:["环形条形图","环形柱状图","玉珏图"],def:"径向条形图是一种在极坐标系下绘制的条形图。径向条形图沿半径方向展示分类维度，使用角度来反应数值。"},mirror_bar_chart:{name:"对称条形图",alias:[],def:"TBD"},bullet_chart:{name:"子弹图",alias:["靶心图","标靶图"],def:"子弹图可用于将度量的绩效可视化并与目标值和定性刻度。"},pie_chart:{name:"饼图",alias:[],def:"通过扇形区块的颜色和弧长（角度、面积）来展现数据的分类和占比情况。"},donut_chart:{name:"环图",alias:["甜甜圈图"],def:"通过弧形区块的颜色和弧长来展现数据的分类和占比情况。"},nested_pie_chart:{name:"嵌套饼图",alias:["嵌套环图","嵌套甜甜圈图"],def:"嵌套饼图由多个甜甜圈图构成，所有的甜甜圈共享同一个圆心。"},rose_chart:{name:"玫瑰图",alias:["南丁格尔图","鸡冠花图","极坐标面积图"],def:"统计学家和医学改革家佛罗伦萨‧南丁格尔在克里米亚战争期间创造了这种图表。尽管外形很像饼图，但本质上来说，南丁格尔玫瑰图更像在极坐标下绘制的柱状图或堆叠柱状图。只不过，它用半径来反映数值。"},scatter_plot:{name:"散点图",alias:[],def:"散点图是将所有的数据以不同颜色的点的形式展现在平面直角坐标系上的统计图表。"},bubble_chart:{name:"气泡图",alias:[],def:"气泡图是一种多变量的统计图表，由笛卡尔坐标系（直角坐标系）和大小不一、颜色不同的圆组成，可以看作是散点图的变形。"},treemap:{name:"树图",alias:["矩形树图"],def:"树图是一个由不同大小的嵌套式矩形来显示树状结构数据的统计图表。"},funnel_chart:{name:"漏斗图",alias:[],def:"漏斗图，形如“漏斗”，用于单流程分析，在开始和结束之间由N个流程环节组成。"},overlapping_funnel_chart:{name:"重叠漏斗图",alias:[],def:"TBD"},mirror_funnel_chart:{name:"对比漏斗图",alias:["对称漏斗图","镜像漏斗图"],def:"对比漏斗图是两个独立的漏斗图以一根中轴线对称展开的图表形式。"},box_plot:{name:"箱形图",alias:["箱线图","盒须图","盒式图","盒状图"],def:"箱形图是一种用作显示一组数据分散情况的统计图表，因形状如箱子而得名。箱子的顶端和底端分别代表上下四分位数，箱子中间的线代表中位数。从箱子延伸出去的线条展现出了上下四分位数以外的数据。有时，箱形图上也会出现个别的点，这代表离群值，也可称之为异常值。"},heatmap:{name:"热力图",alias:["区块热力图"],def:"热力图，是一种通过对色块着色来显示数据的统计图表。"},density_heatmap:{name:"密度热力图",alias:["热力图"],def:"密度热力图是一种用在连续坐标系上用色点展现密度分布的统计图表。"},gauge_chart:{name:"量规图",alias:["仪表盘"],def:"TBD"},radar_chart:{name:"雷达图",alias:["蛛网图"],def:"将不同系列的多个维度的数据量映射到坐标轴上，这些坐标轴起始于同一个圆心点，通常结束于圆周边缘，将同一组的点使用线连接起来，用颜色区分系列。"},wordcloud:{name:"词云",alias:["文字云","标签云"],def:"词云是由一组零散分布的，具有不同大小、颜色、和形状的词语组成的文本可视化形式，通常，一个词云中的词语是从一段有主题的文章中抽取出来的，字体的大小跟词语在原文中出现的频率相匹配。"},candlestick_chart:{name:"蜡烛图",alias:["烛台图","日本蜡烛图"],def:"蜡烛图是一种特殊的箱型图，在金融行业中有着广泛的应用：一般用来描述股票、期货等金融产品的价格走势。"},compact_box_tree:{name:"紧凑树",alias:[],def:"紧凑树是一种树图布局，从根节点开始，同一深度的节点在同一层。适合于脑图等应用场景。"},dendrogram:{name:"生态树",alias:[],def:"生态树是一种树图布局，不管数据的深度多少，总是叶节点对齐。常用于表示层次聚类。"},indented_tree:{name:"缩进树",alias:[],def:"缩进树是一种树图布局，树节点的层级通过水平方向的缩进量来表示，每个元素会占一行或一列。常用于表示文件目录结构。"},radial_tree:{name:"辐射树",alias:[],def:"辐射树是一种树图布局，根节点位于辐射树中心，其他分支辐射式展开。"},flow_diagram:{name:"流程图",alias:["有向图","层次布局图"],def:"流程图是一种图解，可视表示在过程或功能内部诸如事件、步骤等之间的顺序关系。"},fruchterman_layout_graph:{name:"Fruchterman 布局力导向图",alias:[],def:"一种使用 Fruchterman 布局算法的力导向图。"},force_directed_layout_graph:{name:"力导向图",alias:[],def:"力导向图布局作为较早被发明的一种实际应用布局算法，经过研究者多年改进、扩展，已发展成为一类算法的集合。该类算法的特点是模拟物理世界中的作用力，施加在节点上，并迭代计算以达到合理放置节点、美观布局的一类算法。"},fa2_layout_graph:{name:"Force Atlas 2 力导向布局",alias:["FA2力导向布局"],def:"一种使用 Force Atlas 2 布局算法的力导向图，相比于传统的力导算法，该算法在计算力时更关注于节点的度数。"},mds_layout_graph:{name:"MDS 布局图",alias:["多维尺度分析布局"],def:"一种使用 MDS (Multi-Dimensional Scaling) 降维算法计算节点位置的图布局方法。"},circular_layout_graph:{name:"环形布局关系图",alias:[],def:"环形布局根据参数指定的排序方式对节点进行排序后，将节点排列在圆环上。"},spiral_layout_graph:{name:"螺旋布局关系图",alias:[],def:"螺旋布局图的节点排列在一根螺旋线上。"},radial_layout_graph:{name:"辐射布局关系图",alias:[],def:"辐射布局根据指定的中心点，根据其他节点与中心点的拓扑距离（最短路径长度）将其余节点放置在以中心点为圆心的同心圆上。"},concentric_layout_graph:{name:"同心圆布局关系图",alias:[],def:"同心圆布局关系图将所有节点放置在同心圆上。"},grid_layout_graph:{name:"网格布局关系图",alias:[],def:"网格布局根据参数指定的排序方式对节点进行排序后，将节点排列在网格上。"},arc_diagram:{name:"弧形图",alias:[],def:"弧形图是一种关系图的特殊布局，节点被排列在同一水平线上，关系由节点间的圆弧线表示。"},chord_diagram:{name:"弦图",alias:[],def:"弦图是一种展示实体之间的相互关系的方法，常用来比较不同数据组之间的相似性。节点围绕一个圆圈径向排列，点与点之间以弧线彼此连接以显示其中关系。"},non_ribbon_chord_diagram:{name:"无带弦图",alias:[],def:"无带弦图是弦图的简化版本，只显示连接线，相比弦图更加突出了数据之间的联系。"},sankey_diagram:{name:"桑基图",alias:["桑吉图"],def:"桑基图，是一种表现流程的示意图，用于描述一组值到另一组值的流向。分支的宽度对应了数据流量的大小。"},symbol_map:{name:"符号地图",alias:[],def:"散点地图的变体，用具象的图标指代抽象的圆点，无需图例就能直观看出数据点代表的内容，常用于地图上重要地标的显示或数据量较少时的信息表达。"},chart_map:{name:"复合图表地图",alias:[],def:"是定点地图的变体，使用二维统计图表代替点状符号的一种特殊复合形式。"},column_map_3d:{name:"3D 柱状图",alias:[],def:"用形状大小相同的柱状体代替点状符号，高度与数值大小映射共同表达离散现象分布特征的地图"},scatter_map:{name:"散点地图",alias:[],def:"指地图上可用一个形状大小相同的圆点来定位，用表达离散现象分布特征的地图，如人口、农作物、动植物等的分布"},path_map:{name:"路径地图",alias:[],def:"指需要用一连串首尾不闭合的点坐标对（xi,yi）来定位的一类图层。属于半依比例图层，线端点依附地图比例缩放，但线的粗细不会变化。"},isoline_map:{name:"等值线地图",alias:[],def:"TBD"},arc_map_3d:{name:"3D 弧线地图",alias:[],def:"将两个点的连线绘制成弧形，绘制的弧线可以是贝塞尔曲线，大圆航线，通常用来表示两种地理事物关系和联系，或者人口迁移，物流起点目的地等。"},choropleth_map:{name:"填充地图",alias:[],def:"填充图，也叫分级统计图，可在地图上不同领土区域进行着色，查看区域间的分布对比情况"},choropleth_map_3d:{name:"3D 填充地图",alias:[],def:"填充地图的增强实现，通过三维视角中的高度模拟真实地物的高度。"},hexagonal_heat_map:{name:"蜂窝热力地图",alias:[],def:"使用六边形将地图区域进行分割，计算每个区域中点数或其他累加值，将离散的点转换为数值。然后将数值映射到每个区域的色值、高度或其他参数"},hexagonal_heat_map_3d:{name:"3D 蜂窝热力地图",alias:[],def:"使用3D 六边形将地图区域进行分割，计算每个区域中点数或其他累加值，将离散的点转换为数值。然后将数值映射到每个区域的色值、高度或其他参数"},classical_heat_map:{name:"热力地图",alias:[],def:"密度热力图是一种用在连续坐标系上用色点展现密度分布的统计地图。"},grid_heat_map:{name:"网格热力地图",alias:[],def:"使用网格区域进行分割，计算每个区域中点数或其他累加值，将离散的点转换为数值。然后将数值映射到每个区域的色值、高度或其他参数"},bubble_map:{name:"气泡地图",alias:[],def:"指地图上用一个形状相同、面积大小和数值成正比的圆点来定位的地图，是散点图的扩展，用于表达离散现象分布特征的地图。"},bubble_light_map:{name:"亮点地图",alias:[],def:"散点图的变形，指用一个点代表一个值，连续渐进颜色代表数值大小，并通过色彩的叠加的达到效果增强，专为海量散点数据运用而生，解决远视角下，点颜色无法区分问题"},packed_circles:{name:"打包图",alias:[],def:"TBD"},polar_treemap:{name:"极坐标树图",alias:[],def:"TBD"},sunburst_diagram:{name:"旭日图",alias:["太阳辐射图"],def:"TBD"},liquid_chart:{name:"水波图",alias:["进度球"],def:"一种用来表示进度的拟物化示意图"},kpi_panel:{name:"指标卡",alias:["指标卡"],def:"一种用来展示聚合数据的卡片区域"},table:{name:"表格",alias:["交叉表"],def:"表格就是由若干的行与列所构成的一种有序的组织形式"}}},lSt={"en-US":null,"zh-CN":U1i};function z1i(t){return t&&Object.keys(lSt).includes(t)?lSt[t]:null}var G1i=["Nominal","Ordinal","Interval","Discrete","Continuous","Time"],V1i={line_chart:{id:"line_chart",name:"Line Chart",alias:["Lines"],family:["LineCharts"],def:"A line chart uses lines with segments to show changes in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},step_line_chart:{id:"step_line_chart",name:"Step Line Chart",alias:["Step Lines"],family:["LineCharts"],def:"A step line chart is a line chart in which points of each line are connected by horizontal and vertical line segments, looking like steps of a staircase.",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},area_chart:{id:"area_chart",name:"Area Chart",alias:[],family:["AreaCharts"],def:"An area chart uses series of line segments with overlapped areas to show the change in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_area_chart:{id:"stacked_area_chart",name:"Stacked Area Chart",alias:[],family:["AreaCharts"],def:"A stacked area chart uses layered line segments with different styles of padding regions to display how multiple sets of data change in the same ordinal dimension, and the endpoint heights of the segments on the same dimension tick are accumulated by value.",purpose:["Composition","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},percent_stacked_area_chart:{id:"percent_stacked_area_chart",name:"Percent Stacked Area Chart",alias:["Percent Stacked Area","% Stacked Area","100% Stacked Area"],family:["AreaCharts"],def:"A percent stacked area chart is an extented stacked area chart in which the height of the endpoints of the line segment on the same dimension tick is the accumulated proportion of the ratio, which is 100% of the total.",purpose:["Comparison","Composition","Proportion","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},interval_area_chart:{id:"interval_area_chart",name:"Interval Area Chart",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},stream_chart:{id:"stream_chart",name:"Stream Chart",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},column_chart:{id:"column_chart",name:"Column Chart",alias:["Columns"],family:["ColumnCharts"],def:"A column chart uses series of columns to display the value of the dimension. The horizontal axis shows the classification dimension and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},grouped_column_chart:{id:"grouped_column_chart",name:"Grouped Column Chart",alias:["Grouped Column"],family:["ColumnCharts"],def:"A grouped column chart uses columns of different colors to form a group to display the values of dimensions. The horizontal axis indicates the grouping of categories, the color indicates the categories, and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_column_chart:{id:"stacked_column_chart",name:"Stacked Column Chart",alias:["Stacked Column"],family:["ColumnCharts"],def:"A stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_column_chart:{id:"percent_stacked_column_chart",name:"Percent Stacked Column Chart",alias:["Percent Stacked Column","% Stacked Column","100% Stacked Column"],family:["ColumnCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},interval_column_chart:{id:"interval_column_chart",name:"Interval Column Chart",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},range_column_chart:{id:"range_column_chart",name:"Range Column Chart",alias:[],family:["ColumnCharts"],def:"A column chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Length"],recRate:"Recommended"},waterfall_chart:{id:"waterfall_chart",name:"Waterfall Chart",alias:["Flying Bricks Chart","Mario Chart","Bridge Chart","Cascade Chart"],family:["ColumnCharts"],def:"A waterfall chart is used to portray how an initial value is affected by a series of intermediate positive or negative values",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal","Time","Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},histogram:{id:"histogram",name:"Histogram",alias:[],family:["ColumnCharts"],def:"A histogram is an accurate representation of the distribution of numerical data.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},bar_chart:{id:"bar_chart",name:"Bar Chart",alias:["Bars"],family:["BarCharts"],def:"A bar chart uses series of bars to display the value of the dimension. The vertical axis shows the classification dimension and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},grouped_bar_chart:{id:"grouped_bar_chart",name:"Grouped Bar Chart",alias:["Grouped Bar"],family:["BarCharts"],def:"A grouped bar chart uses bars of different colors to form a group to display the values of the dimensions. The vertical axis indicates the grouping of categories, the color indicates the categories, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_bar_chart:{id:"stacked_bar_chart",name:"Stacked Bar Chart",alias:["Stacked Bar"],family:["BarCharts"],def:"A stacked bar chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_bar_chart:{id:"percent_stacked_bar_chart",name:"Percent Stacked Bar Chart",alias:["Percent Stacked Bar","% Stacked Bar","100% Stacked Bar"],family:["BarCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},interval_bar_chart:{id:"interval_bar_chart",name:"Interval Bar Chart",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},range_bar_chart:{id:"range_bar_chart",name:"Range Bar Chart",alias:[],family:["BarCharts"],def:"A bar chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Length"],recRate:"Recommended"},radial_bar_chart:{id:"radial_bar_chart",name:"Radial Bar Chart",alias:["Radial Column Chart"],family:["BarCharts"],def:"A bar chart that is plotted in the polar coordinate system. The axis along radius shows the classification dimension and the angle shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color"],recRate:"Recommended"},mirror_bar_chart:{id:"mirror_bar_chart",name:"Mirror Bar Chart",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},bullet_chart:{id:"bullet_chart",name:"Bullet Chart",alias:[],family:["BarCharts"],def:"A bullet graph is a variation of a bar graph developed by Stephen Few. Seemingly inspired by the traditional thermometer charts and progress bars found in many dashboards, the bullet graph serves as a replacement for dashboard gauges and meters.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Position","Color"],recRate:"Recommended"},pie_chart:{id:"pie_chart",name:"Pie Chart",alias:["Circle Chart","Pie"],family:["PieCharts"],def:"A pie chart is a chart that the classification and proportion of data are represented by the color and arc length (angle, area) of the sector.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Area","Color"],recRate:"Use with Caution"},donut_chart:{id:"donut_chart",name:"Donut Chart",alias:["Donut","Doughnut","Doughnut Chart","Ring Chart"],family:["PieCharts"],def:"A donut chart is a variation on a Pie chart except it has a round hole in the center which makes it look like a donut.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["ArcLength"],recRate:"Recommended"},nested_pie_chart:{id:"nested_pie_chart",name:"Nested Pie Chart",alias:["Nested Circle Chart","Nested Pie","Nested Donut Chart"],family:["PieCharts"],def:"A nested pie chart is a chart that contains several donut charts, where all the donut charts share the same center in position.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]}],channel:["Angle","Area","Color","Position"],recRate:"Use with Caution"},rose_chart:{id:"rose_chart",name:"Rose Chart",alias:["Nightingale Chart","Polar Area Chart","Coxcomb Chart"],family:["PieCharts"],def:"Nightingale Rose Chart is a peculiar combination of the Radar Chart and Stacked Column Chart types of data visualization.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color","Length"],recRate:"Use with Caution"},scatter_plot:{id:"scatter_plot",name:"Scatter Plot",alias:["Scatter Chart","Scatterplot"],family:["ScatterCharts"],def:"A scatter plot is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for series of data.",purpose:["Comparison","Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},bubble_chart:{id:"bubble_chart",name:"Bubble Chart",alias:["Bubble Chart"],family:["ScatterCharts"],def:"A bubble chart is a type of chart that displays four dimensions of data with x, y positions, circle size and circle color.",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position","Size"],recRate:"Recommended"},treemap:{id:"treemap",name:"Treemap",alias:[],family:["TreeGraph"],def:"A visual representation of a data tree with nodes. Each node is displayed as a rectangle, sized and colored according to values that you assign.",purpose:["Composition","Comparison","Hierarchy"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Area"],recRate:"Recommended"},funnel_chart:{id:"funnel_chart",name:"Funnel Chart",alias:[],family:["FunnelCharts"],def:"A funnel chart is often used to represent stages in a sales process and show the amount of potential revenue for each stage.",purpose:["Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},overlapping_funnel_chart:{id:"overlapping_funnel_chart",name:"Overlapping Funnel Chart",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},mirror_funnel_chart:{id:"mirror_funnel_chart",name:"Mirror Funnel Chart",alias:["Contrast Funnel Chart"],family:["FunnelCharts"],def:"A mirror funnel chart is a funnel chart divided into two series by a central axis.",purpose:["Comparison","Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length","Direction"],recRate:"Recommended"},box_plot:{id:"box_plot",name:"Box Plot",alias:["Box and Whisker Plot","boxplot"],family:["BarCharts"],def:"A box plot is often used to graphically depict groups of numerical data through their quartiles. Box plots may also have lines extending from the boxes indicating variability outside the upper and lower quartiles. Outliers may be plotted as individual points.",purpose:["Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},heatmap:{id:"heatmap",name:"Heatmap",alias:[],family:["HeatmapCharts"],def:"A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},density_heatmap:{id:"density_heatmap",name:"Density Heatmap",alias:["Heatmap"],family:["HeatmapCharts"],def:"A density heatmap is a heatmap for representing the density of dots.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]}],channel:["Color","Position","Area"],recRate:"Recommended"},gauge_chart:{id:"gauge_chart",name:"Gauge Chart",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},radar_chart:{id:"radar_chart",name:"Radar Chart",alias:["Web Chart","Spider Chart","Star Chart","Cobweb Chart","Irregular Polygon","Kiviat diagram"],family:["RadarCharts"],def:"A radar chart maps series of data volume of multiple dimensions onto the axes. Starting at the same center point, usually ending at the edge of the circle, connecting the same set of points using lines.",purpose:["Comparison"],coord:["Radar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},wordcloud:{id:"wordcloud",name:"Word Cloud",alias:["Wordle","Tag Cloud","Text Cloud"],family:["Others"],def:"A word cloud is a collection, or cluster, of words depicted in different sizes, colors, and shapes, which takes a piece of text as input. Typically, the font size in the word cloud is encoded as the word frequency in the input text.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Diagram"],shape:["Scatter"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal"]},{minQty:0,maxQty:1,fieldConditions:["Interval"]}],channel:["Size","Position","Color"],recRate:"Recommended"},candlestick_chart:{id:"candlestick_chart",name:"Candlestick Chart",alias:["Japanese Candlestick Chart)"],family:["BarCharts"],def:"A candlestick chart is a specific version of box plot, which is a style of financial chart used to describe price movements of a security, derivative, or currency.",purpose:["Trend","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},compact_box_tree:{id:"compact_box_tree",name:"CompactBox Tree",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the nodes with same depth on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},dendrogram:{id:"dendrogram",name:"Dendrogram",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the leaves on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},indented_tree:{id:"indented_tree",name:"Indented Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout where the hierarchy of tree is represented by the horizontal indentation, and each element will occupy one row/column. It is commonly used to represent the file directory structure.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_tree:{id:"radial_tree",name:"Radial Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which places the root at the center, and the branches around the root radially.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},flow_diagram:{id:"flow_diagram",name:"Flow Diagram",alias:["Dagre Graph Layout","Dagre","Flow Chart"],family:["GeneralGraph"],def:"Directed flow graph.",purpose:["Relation","Flow"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fruchterman_layout_graph:{id:"fruchterman_layout_graph",name:"Fruchterman Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},force_directed_layout_graph:{id:"force_directed_layout_graph",name:"Force Directed Graph Layout",alias:[],family:["GeneralGraph"],def:"The classical force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fa2_layout_graph:{id:"fa2_layout_graph",name:"Force Atlas 2 Graph Layout",alias:["FA2 Layout"],family:["GeneralGraph"],def:"A type of force directed graph layout algorithm. It focuses more on the degree of the node when calculating the force than the classical force-directed algorithm .",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},mds_layout_graph:{id:"mds_layout_graph",name:"Multi-Dimensional Scaling Layout",alias:["MDS Layout"],family:["GeneralGraph"],def:"A type of dimension reduction algorithm that could be used for calculating graph layout. MDS (Multidimensional scaling) is used for project high dimensional data onto low dimensional space.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},circular_layout_graph:{id:"circular_layout_graph",name:"Circular Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes on a circle.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},spiral_layout_graph:{id:"spiral_layout_graph",name:"Spiral Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes along a spiral line.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_layout_graph:{id:"radial_layout_graph",name:"Radial Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which places a focus node on the center and the others on the concentrics centered at the focus node according to the shortest path length to the it.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},concentric_layout_graph:{id:"concentric_layout_graph",name:"Concentric Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges the nodes on concentrics.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},grid_layout_graph:{id:"grid_layout_graph",name:"Grid Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout arranges the nodes on grids.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},arc_diagram:{id:"arc_diagram",name:"Arc Diagram",alias:[],family:["GeneralGraph"],def:"A graph where the edges are represented as arcs.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},chord_diagram:{id:"chord_diagram",name:"Chord Diagram",alias:[],family:["GeneralGraph"],def:"A graphical method of displaying the inter-relationships between data in a matrix. The data are arranged radially around a circle with the relationships between the data points typically drawn as arcs connecting the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},non_ribbon_chord_diagram:{id:"non_ribbon_chord_diagram",name:"Non-Ribbon Chord Diagram",alias:[],family:["GeneralGraph"],def:"A stripped-down version of a Chord Diagram, with only the connection lines showing. This provides more emphasis on the connections within the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},sankey_diagram:{id:"sankey_diagram",name:"Sankey Diagram",alias:[],family:["GeneralGraph"],def:"A graph shows the flows with weights between objects.",purpose:["Flow","Trend","Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},symbol_map:{id:"symbol_map",name:"Symbol Map",alias:[],family:["PointLayer"],def:"Overlay symbols on the map as glyphs.",purpose:["Distribution","Comparison","Spatial"],coord:["Geo"],category:["Map"],shape:["Scatter","Map"],dataPres:[],channel:["Position"],recRate:"Recommended"},chart_map:{id:"chart_map",name:"Chart Map",alias:[],family:["PointLayer"],def:"Overlay charts on the map as glyphs.",purpose:["Composition","Distribution","Comparison","Spatial"],coord:["Geo"],category:["Map"],shape:["Map"],dataPres:[],channel:["Position"],recRate:"Recommended"},column_map_3d:{id:"column_map_3d",name:"3D Column Map",alias:[],family:["PointLayer"],def:"Maps that use height of 3D columns to represent distribution.",purpose:["Distribution","Comparison","Spatial"],coord:[],category:["Map"],shape:["Map"],dataPres:[],channel:["Position","Length"],recRate:"Recommended"},scatter_map:{id:"scatter_map",name:"Scatter Map",alias:[],family:["PointLayer"],def:"Overlay dots with same size on the map as glyphs.",purpose:["Distribution","Spatial"],coord:["Geo"],category:["Map"],shape:["Scatter","Map"],dataPres:[],channel:["Size","Color","Position","Opacity"],recRate:"Recommended"},path_map:{id:"path_map",name:"Path Map",alias:[],family:["LineLayer"],def:"Overlay paths on the map as glyphs.",purpose:["Spatial"],coord:["Geo"],category:["Map"],shape:["Lines"],dataPres:[],channel:["Size","Color","Position","Opacity"],recRate:"Recommended"},isoline_map:{id:"isoline_map",name:"Isoline Map",alias:[],family:["LineLayer"],def:"",purpose:["Comparison"],coord:["Geo"],category:["Map"],shape:["Lines"],dataPres:[],channel:["Size","Color","Position","Opacity"],recRate:"Recommended"},arc_map_3d:{id:"arc_map_3d",name:"3D Arc Map",alias:[],family:["LineLayer"],def:"",purpose:["Relation","Spatial"],coord:["Geo"],category:["Map"],shape:["Lines"],dataPres:[],channel:["Size","Color","Position","Opacity"],recRate:"Recommended"},choropleth_map:{id:"choropleth_map",name:"Choropleth Map",alias:[],family:["PolygonLayer"],def:"A choropleth map is a type of thematic map in which areas are shaded or patterned in proportion to a statistical variable that represents an aggregate summary of a geographic characteristic within each area, such as population density or per-capita income.",purpose:["Comparison","Spatial"],coord:["Geo"],category:["Map"],shape:["Area","Map"],dataPres:[],channel:["Color","Position","Opacity","Stroke","LineWidth"],recRate:"Recommended"},choropleth_map_3d:{id:"choropleth_map_3d",name:"3D Choropleth Map",alias:["Extrude Map"],family:["PolygonLayer"],def:"",purpose:["Comparison"],coord:["Geo"],category:["Map"],shape:["Area","Map"],dataPres:[],channel:["Size","Color","Position","Opacity"],recRate:"Recommended"},hexagonal_heat_map:{id:"hexagonal_heat_map",name:"Hexagonal Heat Map",alias:[],family:[],def:"Dividing the map area using hexagons.",purpose:["Distribution","Spatial"],coord:["Geo"],category:["Map"],shape:["Area","Map"],dataPres:[],channel:["Size","Color","Position","Opacity"],recRate:"Recommended"},hexagonal_heat_map_3d:{id:"hexagonal_heat_map_3d",name:"3D Hexagonal Heat Map",alias:[],family:[],def:"Dividing the 3D map area using hexagons.",purpose:["Distribution"],coord:["Geo"],category:["Map"],shape:["Map"],dataPres:[],channel:[],recRate:"Recommended"},classical_heat_map:{id:"classical_heat_map",name:"Classical Heat Map",alias:[],family:[],def:"",purpose:["Distribution"],coord:["Geo"],category:["Map"],shape:["Map"],dataPres:[],channel:["Color","Position","Opacity"],recRate:"Recommended"},grid_heat_map:{id:"grid_heat_map",name:"Gird Heat Map",alias:[],family:[],def:"",purpose:["Distribution"],coord:[],category:["Map"],shape:["Map"],dataPres:[],channel:["Color","Position","Opacity"],recRate:"Recommended"},bubble_map:{id:"bubble_map",name:"Bubble Map",alias:[],family:["PointLayer"],def:"Overlay bubbles on the map as glyphs.",purpose:["Distribution","Spatial"],coord:["Geo"],category:["Map"],shape:["Scatter","Map"],dataPres:[],channel:["Position","Color","Size"],recRate:"Recommended"},bubble_light_map:{id:"bubble_light_map",name:"Bubble Light Map",alias:[],family:["PointLayer"],def:"Overlay bubbles with different lightness on the map as glyphs.",purpose:["Distribution","Spatial"],coord:["Geo"],category:["Map"],shape:["Scatter","Map"],dataPres:[],channel:["Position","Color","Size","Opacity"],recRate:"Recommended"},packed_circles:{id:"packed_circles",name:"Packed Circles",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},polar_treemap:{id:"polar_treemap",name:"Polar Treemap",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},sunburst_diagram:{id:"sunburst_diagram",name:"Sunburst",alias:[],family:[],def:"",purpose:[],coord:[],category:[],shape:[],dataPres:[],channel:[],recRate:"Recommended"},liquid_chart:{id:"liquid_chart",name:"Liquid Chart",alias:["Liquid Ball","Progress Ball"],family:["Others"],def:"Liquid chart is a diagram to represent progress.",purpose:["Composition"],coord:["Other"],category:["Diagram"],shape:["Round"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Not Recommended"},kpi_panel:{id:"kpi_panel",name:"KPI Panel",alias:["KPI Panel"],family:["Others"],def:"KPI Panel is a card to show aggregated numbers",purpose:["Value"],coord:["Other"],category:["Other"],shape:["Other"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]}],channel:[],recRate:"Recommended"},table:{id:"table",name:"Table",alias:["Information Table"],family:["Table"],def:"A table consists of an ordered arrangement of rows and columns.",purpose:["Value"],coord:["Other"],category:["Other"],shape:["Other"],dataPres:[{minQty:0,maxQty:"*",fieldConditions:xc([],xa(G1i))}],channel:[],recRate:"Recommended"}};function K1i(){return JSON.parse(JSON.stringify(V1i))}function yP(t,e){t===void 0&&(t="en-US"),e===void 0&&(e=!1);var n=K1i(),r={},a=Object.keys(n);a.forEach(function(c){var u=n[c],d=!0;if(e)for(var h=Object.keys(u),f=0;f<h.length;f+=1){var p=h[f],m=u[p];if(p!=="alias"&&p!=="channel"&&typeof m!="boolean"&&(Array.isArray(m)&&m.length===0||!m)){d=!1;break}}d&&(r[c]=u)});var o={};if(t&&t!=="en-US"){var s=z1i(t),l=Object.keys(r);s&&l.forEach(function(c){o[c]={},o[c].id=c,o[c].name=s.chartTypes[c].name,o[c].alias=s.chartTypes[c].alias,o[c].def=s.chartTypes[c].def,o[c].family=r[c].family.map(function(u){return s.concepts.family[u]}),o[c].purpose=r[c].purpose.map(function(u){return s.concepts.purpose[u]}),o[c].coord=r[c].coord.map(function(u){return s.concepts.coord[u]}),o[c].category=r[c].category.map(function(u){return s.concepts.category[u]}),o[c].shape=r[c].shape.map(function(u){return s.concepts.shape[u]}),o[c].channel=r[c].channel.map(function(u){return s.concepts.channel[u]}),o[c].dataPres=r[c].dataPres.map(function(u){var d={};return d.minQty=u.minQty,d.maxQty=u.maxQty,d.fieldConditions=u.fieldConditions.map(function(h){return s.concepts.lom[h]}),d})})}else o=r;return o}var W1i=["line_chart","step_line_chart","area_chart","stacked_area_chart","percent_stacked_area_chart","interval_area_chart","stream_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart","interval_column_chart","range_column_chart","waterfall_chart","histogram","bar_chart","stacked_bar_chart","percent_stacked_bar_chart","grouped_bar_chart","interval_bar_chart","range_bar_chart","radial_bar_chart","mirror_bar_chart","bullet_chart","pie_chart","donut_chart","nested_pie_chart","rose_chart","scatter_plot","bubble_chart","non_ribbon_chord_diagram","arc_diagram","chord_diagram","treemap","sankey_diagram","funnel_chart","overlapping_funnel_chart","mirror_funnel_chart","box_plot","heatmap","density_heatmap","gauge_chart","radar_chart","wordcloud","candlestick_chart","compact_box_tree","dendrogram","indented_tree","radial_tree","flow_diagram","fruchterman_layout_graph","force_directed_layout_graph","fa2_layout_graph","mds_layout_graph","circular_layout_graph","spiral_layout_graph","radial_layout_graph","concentric_layout_graph","grid_layout_graph","symbol_map","chart_map","column_map_3d","scatter_map","path_map","isoline_map","arc_map_3d","choropleth_map","choropleth_map_3d","hexagonal_heat_map","hexagonal_heat_map_3d","classical_heat_map","grid_heat_map","bubble_map","bubble_light_map","packed_circles","polar_treemap","sunburst_diagram","liquid_chart","kpi_panel","table"];function yd(t,e){return e.every(function(n){return t.includes(n)})}function cN(t,e){return e.some(function(n){return t.includes(n)})}var Q1i=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"],q1i={id:"bar-series-qty",type:"SOFT",docs:{lintText:"Bar chart should has proper number of bars or bar groups."},trigger:function(t){var e=t.chartType;return Q1i.includes(e)},validator:function(t){var e=0,n=t.dataProps,r=t.chartType;if(n&&r){var a=n.find(function(s){return yd(s.levelOfMeasurements,["Nominal"])}),o=a&&a.count?a.count:0;o>=2&&o<=20?e=1:o>20&&(e=20/o)}return e}},Y1i=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"],J1i={id:"bar-without-axis-min",type:"DESIGN",docs:{lintText:"It is not recommended to set the minimum value of axis for the bar or column chart.",fixText:"Remove the minimum value config of axis."},trigger:function(t){var e=t.chartType;return Y1i.includes(e)},optimizer:function(t,e){var n,r,a,o,s,l,c,u,d=e.layer,h=(o=(a=(r=(n=d==null?void 0:d[0])===null||n===void 0?void 0:n.encoding)===null||r===void 0?void 0:r.x)===null||a===void 0?void 0:a.axis)===null||o===void 0?void 0:o.min,f=(u=(c=(l=(s=d==null?void 0:d[0])===null||s===void 0?void 0:s.encoding)===null||l===void 0?void 0:l.y)===null||c===void 0?void 0:c.axis)===null||u===void 0?void 0:u.min;if(h||f){var p=JSON.parse(JSON.stringify(d));return h&&(p[0].encoding.x.axis.min=0),f&&(p[0].encoding.y.axis.min=0),{layer:p}}return{}}};function osn(t,e){return t.distinct<e.distinct?1:t.distinct>e.distinct?-1:0}function Z1i(t,e){var n=e.map(function(a){return a.levelOfMeasurements});if(n){var r=0;if(n.forEach(function(a){a&&cN(a,t.fieldConditions)&&(r+=1)}),r>=t.minQty&&(r<=t.maxQty||t.maxQty==="*"))return!0}return!1}var xze=yP("en-US",!0),X1i=Object.keys(xze),eyi={id:"data-check",type:"HARD",docs:{lintText:"Data must satisfy the data prerequisites."},trigger:function(t){var e=t.chartType;return X1i.includes(e)},validator:function(t){var e=0,n=t.dataProps,r=t.chartType;if(n&&r&&xze[r]){e=1;var a=xze[r].dataPres||[];a.forEach(function(o){return Z1i(o,n)||(e=0),!0})}return e}},Eze=yP("en-US",!0),tyi=Object.keys(Eze),nyi={id:"data-field-qty",type:"HARD",docs:{lintText:"Data must have at least the min qty of the prerequisite."},trigger:function(t){var e=t.chartType;return tyi.indexOf(e)!==-1},validator:function(t){var e=0,n=t.dataProps,r=t.chartType;if(n&&r&&Eze[r]){e=1;var a=Eze[r].dataPres||[],o=a.map(function(l){return l.minQty}).reduce(function(l,c){return l+c});if(n.length){var s=n.length;s>=o&&(e=1)}}return e}},ryi=["pie_chart","donut_chart"],iyi={id:"diff-pie-sector",type:"SOFT",docs:{lintText:"The difference between sectors of a pie chart should be large enough."},trigger:function(t){var e=t.chartType;return ryi.includes(e)},validator:function(t){var e=0,n=t.dataProps;if(n){var r=n.find(function(d){return yd(d.levelOfMeasurements,["Interval"])});if(r&&r.sum&&r.rawData){var a=r.sum,o=1/a,s=r.rawData.map(function(d){return d*o}),l=s.reduce(function(d,h){return d*h}),c=r.rawData.length,u=Math.pow(1/c,c);e=Math.abs(u-Math.abs(l))/u}}return e}},ayi=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function cSt(t){var e=t.chartType,n=t.dataProps,r=t.preferences;return!!(n&&e&&r&&r.canvasLayout)}var oyi={id:"landscape-or-portrait",type:"SOFT",docs:{lintText:"Recommend column charts for landscape layout and bar charts for portrait layout."},trigger:function(t){return ayi.includes(t.chartType)&&cSt(t)},validator:function(t){var e=0,n=t.chartType,r=t.preferences;return cSt(t)&&(r.canvasLayout==="portrait"&&["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart"].includes(n)||r.canvasLayout==="landscape"&&["column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"].includes(n))&&(e=1),e}},syi=yP("en-US",!0),uSt=Object.keys(syi);function lyi(t){var e=t.filter(function(n){return cN(n.levelOfMeasurements,["Nominal","Ordinal"])});return e.length>=2}var cyi={id:"limit-series",type:"SOFT",docs:{lintText:"Avoid too many values in one series."},trigger:function(t){var e=t.chartType,n=t.dataProps;return uSt.includes(e)&&lyi(n)},validator:function(t){var e=0,n=t.dataProps,r=t.chartType;if(n&&uSt){var a=n.filter(function(l){return cN(l.levelOfMeasurements,["Nominal","Ordinal"])});if(a.length>=2){var o=a.sort(osn),s=o[1];s.distinct&&(e=1/s.distinct,s.distinct>6&&r==="heatmap"?e=2:r==="heatmap"&&(e=0))}}return e}},uyi=["line_chart","area_chart","stacked_area_chart","percent_stacked_area_chart"],dyi={id:"line-field-time-ordinal",type:"SOFT",docs:{lintText:"Data containing time or ordinal fields are suitable for line or area charts."},trigger:function(t){var e=t.chartType;return uyi.includes(e)},validator:function(t){var e=0,n=t.dataProps;if(n){var r=n.find(function(a){return cN(a.levelOfMeasurements,["Ordinal","Time"])});r&&(e=1)}return e}},Sze=yP("en-US",!0),hyi=Object.keys(Sze),fyi={id:"no-redundant-field",type:"HARD",docs:{lintText:"No redundant field."},trigger:function(t){var e=t.chartType;return hyi.includes(e)},validator:function(t){var e=0,n=t.dataProps,r=t.chartType;if(n&&r&&Sze[r]){var a=Sze[r].dataPres||[],o=a.map(function(l){return l.maxQty==="*"?99:l.maxQty}).reduce(function(l,c){return l+c});if(n.length){var s=n.length;s<=o&&(e=1)}}return e}},pyi=yP("en-US",!0),myi=Object.keys(pyi),gyi=["bar_chart","column_chart","grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"];function dSt(t){return t.filter(function(e){return yd(e.levelOfMeasurements,["Nominal"])})}var vyi={id:"nominal-enum-combinatorial",type:"SOFT",docs:{lintText:"Single (Basic) and Multi (Stacked, Grouped,...) charts should be optimized recommended by nominal enums combinatorial numbers."},trigger:function(t){var e=t.chartType;return gyi.includes(e)&&dSt.length>=2},validator:function(t){var e=0,n=t.dataProps,r=t.chartType;if(n&&myi){var a=dSt(n);if(a.length>=2){var o=a.sort(osn),s=o[0],l=o[1];if(s.distinct===s.count&&["bar_chart","column_chart"].includes(r)&&(e=1),s.count&&s.distinct&&l.distinct&&s.count>s.distinct){var c=["grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"];c.includes(r)&&(e=1)}}}return e}},wze=yP("en-US",!0),Ayi=Object.keys(wze),yyi={id:"purpose-check",type:"HARD",docs:{lintText:"Choose chart types that satisfy the purpose, if purpose is defined."},trigger:function(t){var e=t.chartType;return Ayi.includes(e)},validator:function(t){var e=0,n=t.chartType,r=t.purpose;if(!r)return e=1,e;if(n&&wze[n]&&r){var a=wze[n].purpose||"";if(a.includes(r))return e=1,e}return e}},byi=["pie_chart","donut_chart","radar_chart","rose_chart"],xyi={id:"series-qty-limit",type:"SOFT",docs:{lintText:"Some charts should has at most N values for the series."},trigger:function(t){var e=t.chartType;return byi.includes(e)},validator:function(t){var e=0,n=t.dataProps,r=t.chartType,a=t.limit;if((!Number.isInteger(a)||a<=0)&&(a=6,(r==="pie_chart"||r==="donut_chart"||r==="rose_chart")&&(a=6),r==="radar_chart"&&(a=8)),n){var o=n.find(function(l){return yd(l.levelOfMeasurements,["Nominal"])}),s=o&&o.count?o.count:0;s>=2&&s<=a&&(e=2/s)}return e}},Eyi=["line_chart"],Syi={id:"x-axis-line-fading",type:"DESIGN",docs:{lintText:"Adjust axis to make it prettier"},trigger:function(t){var e=t.chartType;return Eyi.includes(e)},optimizer:function(t,e){var n,r=e.layer&&"encoding"in e.layer[0]?e.layer[0].encoding:null;if(r&&((n=r.y)===null||n===void 0?void 0:n.type)==="quantitative"){var a=t.find(function(l){var c;return l.name===((c=r.y)===null||c===void 0?void 0:c.field)});if(a){var o=a.maximum-a.minimum;if(a.minimum&&a.maximum&&o<a.maximum*2/3){var s=Math.floor(a.minimum-o/5);return{encoding:{x:{axis:{ticks:!1,domain:!1}},y:{scale:{domainMin:s>0?s:0}}}}}}}return{}}},_ze={"bar-series-qty":q1i,"bar-without-axis-min":J1i,"data-check":eyi,"data-field-qty":nyi,"diff-pie-sector":iyi,"landscape-or-portrait":oyi,"limit-series":cyi,"line-field-time-ordinal":dyi,"no-redundant-field":fyi,"nominal-enum-combinatorial":vyi,"purpose-check":yyi,"series-qty-limit":xyi,"x-axis-line-fading":Syi},hSt=Object.keys(_ze),fSt=function(t){var e={};return t.forEach(function(n){Object.keys(_ze).includes(n)&&(e[n]=_ze[n])}),e},ssn=function(t){if(!t)return fSt(hSt);var e=fSt(hSt);if(t.exclude){var n=t.exclude;n.forEach(function(l){Object.keys(e).includes(l)&&delete e[l]})}if(t.include){var r=t.include;Object.keys(e).forEach(function(l){r.includes(l)||delete e[l]})}var a=cr(cr({},e),t.custom),o=t.options;if(o){var s=Object.keys(o);s.forEach(function(l){if(Object.keys(a).includes(l)){var c=o[l];a[l]=cr(cr({},a[l]),{option:c})}})}return a},wyi=5,_yi=function(t){return typeof t=="object"&&t!==null},Tyi={}.toString,lsn=function(t,e){return Tyi.call(t)==="[object "+e+"]"},pSt=function(t){if(!_yi(t)||!lsn(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Cyi=function(t){return Array.isArray?Array.isArray(t):lsn(t,"Array")};function csn(t,e,n,r){var a=n||0,o=r||wyi,s=t;Object.keys(e).forEach(function(l){if(Object.prototype.hasOwnProperty.call(e,l)){var c=e[l];c!==null&&pSt(c)?(pSt(s[l])||(s[l]={}),a<o?csn(s[l],c,a+1,o):s[l]=e[l]):Cyi(c)?(s[l]=[],s[l]=s[l].concat(c)):c!==void 0&&(s[l]=c)}})}var Xj=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)csn(t,e[r]);return t},mSt=function(t){return t===null},qG=function(t,e){return mSt(t.distinct)||mSt(e.distinct)?t.distinct<e.distinct?1:t.distinct>e.distinct?-1:0:0},LAe=function(t){if(typeof t!="object"||t===null)return t;var e;if(Array.isArray(t)){e=[];for(var n=0,r=t.length;n<r;n+=1)typeof t[n]=="object"&&t[n]!=null?e[n]=LAe(t[n]):e[n]=t[n]}else{e={};for(var a=Object.keys(t),n=0;n<a.length;n+=1){var o=a[n];typeof t[o]=="object"&&t[o]!=null?e[o]=LAe(t[o]):e[o]=t[o]}}return e},kyi={"bar-series-qty":.5,"data-check":1,"data-field-qty":1,"diff-pie-sector":.5,"landscape-or-portrait":.3,"limit-series":1,"line-field-time-ordinal":1,"no-redundant-field":1,"nominal-enum-combinatorial":1,"purpose-check":1,"series-qty-limit":.8},Bnt=["#BDD2FD","#BDEFDB","#C2C8D5","#FBE5A2","#F6C3B7","#B6E3F5","#D3C6EA","#FFD8B8","#AAD8D8","#FFD6E7"],Ryi=["force","grid","dagre","circular","concentric","radial"],gSt=Bnt.length;Bnt.length;var Myi=[15,30],Nyi=[1,10],Lne=16,Iyi="point",usn="force",vSt=kyi,ASt=function(t,e,n,r){var a=e==="HARD"?1:0;return Object.values(t).filter(function(o){var s,l,c,u=((s=o.option)===null||s===void 0?void 0:s.weight)||vSt[o.id]||1,d=(l=o.option)===null||l===void 0?void 0:l.extra;return o.type===e&&o.trigger(cr(cr(cr({},n),{weight:u}),d))&&!(!((c=o.option)===null||c===void 0)&&c.off)}).forEach(function(o){var s,l,c=((s=o.option)===null||s===void 0?void 0:s.weight)||vSt[o.id]||1,u=(l=o.option)===null||l===void 0?void 0:l.extra,d=o.validator(cr(cr(cr({},n),{weight:c}),u)),h=c*d;e==="HARD"?a*=h:a+=h,r.push({phase:"ADVISE",ruleId:o.id,score:h,base:d,weight:c,ruleType:e})}),a};const dsn={model:"rgb",value:{r:255,g:255,b:255}},Pyi=["normal","darken","multiply","colorBurn","linearBurn","lighten","screen","colorDodge","linearDodge","overlay","softLight","hardLight","vividLight","linearLight","pinLight","difference","exclusion"];var hsn={exports:{}};/**
 * chroma.js - JavaScript library for color conversions
 *
 * Copyright (c) 2011-2019, Gregor Aisch
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. The name Gregor Aisch may not be used to endorse or promote products
 * derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * -------------------------------------------------------
 *
 * chroma.js includes colors from colorbrewer2.org, which are released under
 * the following license:
 *
 * Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
 * and The Pennsylvania State University.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * ------------------------------------------------------
 *
 * Named colors are taken from X11 Color Names.
 * http://www.w3.org/TR/css3-color/#svg-color
 *
 * @preserve
 */(function(t,e){(function(n,r){t.exports=r()})(en,function(){for(var n=function(xe,Re,Ve){return Re===void 0&&(Re=0),Ve===void 0&&(Ve=1),xe<Re?Re:xe>Ve?Ve:xe},r=n,a=function(xe){xe._clipped=!1,xe._unclipped=xe.slice(0);for(var Re=0;Re<=3;Re++)Re<3?((xe[Re]<0||xe[Re]>255)&&(xe._clipped=!0),xe[Re]=r(xe[Re],0,255)):Re===3&&(xe[Re]=r(xe[Re],0,1));return xe},o={},s=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];s<l.length;s+=1){var c=l[s];o["[object "+c+"]"]=c.toLowerCase()}var u=function(xe){return o[Object.prototype.toString.call(xe)]||"object"},d=u,h=function(xe,Re){return Re===void 0&&(Re=null),xe.length>=3?Array.prototype.slice.call(xe):d(xe[0])=="object"&&Re?Re.split("").filter(function(Ve){return xe[0][Ve]!==void 0}).map(function(Ve){return xe[0][Ve]}):xe[0]},f=u,p=function(xe){if(xe.length<2)return null;var Re=xe.length-1;return f(xe[Re])=="string"?xe[Re].toLowerCase():null},m=Math.PI,g={clip_rgb:a,limit:n,type:u,unpack:h,last:p,PI:m,TWOPI:m*2,PITHIRD:m/3,DEG2RAD:m/180,RAD2DEG:180/m},v={format:{},autodetect:[]},A=g.last,y=g.clip_rgb,S=g.type,x=v,w=function(){for(var Re=[],Ve=arguments.length;Ve--;)Re[Ve]=arguments[Ve];var We=this;if(S(Re[0])==="object"&&Re[0].constructor&&Re[0].constructor===this.constructor)return Re[0];var Nt=A(Re),jt=!1;if(!Nt){jt=!0,x.sorted||(x.autodetect=x.autodetect.sort(function(Nn,Vr){return Vr.p-Nn.p}),x.sorted=!0);for(var bt=0,Xt=x.autodetect;bt<Xt.length;bt+=1){var cn=Xt[bt];if(Nt=cn.test.apply(cn,Re),Nt)break}}if(x.format[Nt]){var Fn=x.format[Nt].apply(null,jt?Re:Re.slice(0,-1));We._rgb=y(Fn)}else throw new Error("unknown format: "+Re);We._rgb.length===3&&We._rgb.push(1)};w.prototype.toString=function(){return S(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var _=w,C=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(C.Color,[null].concat(xe)))};C.Color=_,C.version="2.4.2";var R=C,k=g.unpack,P=Math.max,N=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=k(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2];We=We/255,Nt=Nt/255,jt=jt/255;var bt=1-P(We,P(Nt,jt)),Xt=bt<1?1/(1-bt):0,cn=(1-We-bt)*Xt,Fn=(1-Nt-bt)*Xt,Nn=(1-jt-bt)*Xt;return[cn,Fn,Nn,bt]},L=N,I=g.unpack,b=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=I(xe,"cmyk");var Ve=xe[0],We=xe[1],Nt=xe[2],jt=xe[3],bt=xe.length>4?xe[4]:1;return jt===1?[0,0,0,bt]:[Ve>=1?0:255*(1-Ve)*(1-jt),We>=1?0:255*(1-We)*(1-jt),Nt>=1?0:255*(1-Nt)*(1-jt),bt]},T=b,M=R,D=_,B=v,j=g.unpack,H=g.type,U=L;D.prototype.cmyk=function(){return U(this._rgb)},M.cmyk=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(D,[null].concat(xe,["cmyk"])))},B.format.cmyk=T,B.autodetect.push({p:2,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=j(xe,"cmyk"),H(xe)==="array"&&xe.length===4)return"cmyk"}});var $=g.unpack,z=g.last,Z=function(xe){return Math.round(xe*100)/100},K=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=$(xe,"hsla"),We=z(xe)||"lsa";return Ve[0]=Z(Ve[0]||0),Ve[1]=Z(Ve[1]*100)+"%",Ve[2]=Z(Ve[2]*100)+"%",We==="hsla"||Ve.length>3&&Ve[3]<1?(Ve[3]=Ve.length>3?Ve[3]:1,We="hsla"):Ve.length=3,We+"("+Ve.join(",")+")"},Q=K,ee=g.unpack,X=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=ee(xe,"rgba");var Ve=xe[0],We=xe[1],Nt=xe[2];Ve/=255,We/=255,Nt/=255;var jt=Math.min(Ve,We,Nt),bt=Math.max(Ve,We,Nt),Xt=(bt+jt)/2,cn,Fn;return bt===jt?(cn=0,Fn=Number.NaN):cn=Xt<.5?(bt-jt)/(bt+jt):(bt-jt)/(2-bt-jt),Ve==bt?Fn=(We-Nt)/(bt-jt):We==bt?Fn=2+(Nt-Ve)/(bt-jt):Nt==bt&&(Fn=4+(Ve-We)/(bt-jt)),Fn*=60,Fn<0&&(Fn+=360),xe.length>3&&xe[3]!==void 0?[Fn,cn,Xt,xe[3]]:[Fn,cn,Xt]},te=X,J=g.unpack,ne=g.last,ie=Q,he=te,de=Math.round,ce=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=J(xe,"rgba"),We=ne(xe)||"rgb";return We.substr(0,3)=="hsl"?ie(he(Ve),We):(Ve[0]=de(Ve[0]),Ve[1]=de(Ve[1]),Ve[2]=de(Ve[2]),(We==="rgba"||Ve.length>3&&Ve[3]<1)&&(Ve[3]=Ve.length>3?Ve[3]:1,We="rgba"),We+"("+Ve.slice(0,We==="rgb"?3:4).join(",")+")")},Ee=ce,Me=g.unpack,Be=Math.round,ze=function(){for(var xe,Re=[],Ve=arguments.length;Ve--;)Re[Ve]=arguments[Ve];Re=Me(Re,"hsl");var We=Re[0],Nt=Re[1],jt=Re[2],bt,Xt,cn;if(Nt===0)bt=Xt=cn=jt*255;else{var Fn=[0,0,0],Nn=[0,0,0],Vr=jt<.5?jt*(1+Nt):jt+Nt-jt*Nt,er=2*jt-Vr,Jr=We/360;Fn[0]=Jr+1/3,Fn[1]=Jr,Fn[2]=Jr-1/3;for(var ni=0;ni<3;ni++)Fn[ni]<0&&(Fn[ni]+=1),Fn[ni]>1&&(Fn[ni]-=1),6*Fn[ni]<1?Nn[ni]=er+(Vr-er)*6*Fn[ni]:2*Fn[ni]<1?Nn[ni]=Vr:3*Fn[ni]<2?Nn[ni]=er+(Vr-er)*(2/3-Fn[ni])*6:Nn[ni]=er;xe=[Be(Nn[0]*255),Be(Nn[1]*255),Be(Nn[2]*255)],bt=xe[0],Xt=xe[1],cn=xe[2]}return Re.length>3?[bt,Xt,cn,Re[3]]:[bt,Xt,cn,1]},je=ze,ye=je,me=v,le=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,pe=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Ne=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,_e=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ue=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,se=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,oe=Math.round,ge=function(xe){xe=xe.toLowerCase().trim();var Re;if(me.format.named)try{return me.format.named(xe)}catch{}if(Re=xe.match(le)){for(var Ve=Re.slice(1,4),We=0;We<3;We++)Ve[We]=+Ve[We];return Ve[3]=1,Ve}if(Re=xe.match(pe)){for(var Nt=Re.slice(1,5),jt=0;jt<4;jt++)Nt[jt]=+Nt[jt];return Nt}if(Re=xe.match(Ne)){for(var bt=Re.slice(1,4),Xt=0;Xt<3;Xt++)bt[Xt]=oe(bt[Xt]*2.55);return bt[3]=1,bt}if(Re=xe.match(_e)){for(var cn=Re.slice(1,5),Fn=0;Fn<3;Fn++)cn[Fn]=oe(cn[Fn]*2.55);return cn[3]=+cn[3],cn}if(Re=xe.match(ue)){var Nn=Re.slice(1,4);Nn[1]*=.01,Nn[2]*=.01;var Vr=ye(Nn);return Vr[3]=1,Vr}if(Re=xe.match(se)){var er=Re.slice(1,4);er[1]*=.01,er[2]*=.01;var Jr=ye(er);return Jr[3]=+Re[4],Jr}};ge.test=function(xe){return le.test(xe)||pe.test(xe)||Ne.test(xe)||_e.test(xe)||ue.test(xe)||se.test(xe)};var De=ge,Fe=R,Se=_,Xe=v,Oe=g.type,Ye=Ee,mt=De;Se.prototype.css=function(xe){return Ye(this._rgb,xe)},Fe.css=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Se,[null].concat(xe,["css"])))},Xe.format.css=mt,Xe.autodetect.push({p:5,test:function(xe){for(var Re=[],Ve=arguments.length-1;Ve-- >0;)Re[Ve]=arguments[Ve+1];if(!Re.length&&Oe(xe)==="string"&&mt.test(xe))return"css"}});var ut=_,lt=R,pn=v,sn=g.unpack;pn.format.gl=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=sn(xe,"rgba");return Ve[0]*=255,Ve[1]*=255,Ve[2]*=255,Ve},lt.gl=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(ut,[null].concat(xe,["gl"])))},ut.prototype.gl=function(){var xe=this._rgb;return[xe[0]/255,xe[1]/255,xe[2]/255,xe[3]]};var un=g.unpack,ur=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=un(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2],bt=Math.min(We,Nt,jt),Xt=Math.max(We,Nt,jt),cn=Xt-bt,Fn=cn*100/255,Nn=bt/(255-cn)*100,Vr;return cn===0?Vr=Number.NaN:(We===Xt&&(Vr=(Nt-jt)/cn),Nt===Xt&&(Vr=2+(jt-We)/cn),jt===Xt&&(Vr=4+(We-Nt)/cn),Vr*=60,Vr<0&&(Vr+=360)),[Vr,Fn,Nn]},dt=ur,xt=g.unpack,Cn=Math.floor,Kt=function(){for(var xe,Re,Ve,We,Nt,jt,bt=[],Xt=arguments.length;Xt--;)bt[Xt]=arguments[Xt];bt=xt(bt,"hcg");var cn=bt[0],Fn=bt[1],Nn=bt[2],Vr,er,Jr;Nn=Nn*255;var ni=Fn*255;if(Fn===0)Vr=er=Jr=Nn;else{cn===360&&(cn=0),cn>360&&(cn-=360),cn<0&&(cn+=360),cn/=60;var V=Cn(cn),W=cn-V,ae=Nn*(1-Fn),Ae=ae+ni*(1-W),we=ae+ni*W,He=ae+ni;switch(V){case 0:xe=[He,we,ae],Vr=xe[0],er=xe[1],Jr=xe[2];break;case 1:Re=[Ae,He,ae],Vr=Re[0],er=Re[1],Jr=Re[2];break;case 2:Ve=[ae,He,we],Vr=Ve[0],er=Ve[1],Jr=Ve[2];break;case 3:We=[ae,Ae,He],Vr=We[0],er=We[1],Jr=We[2];break;case 4:Nt=[we,ae,He],Vr=Nt[0],er=Nt[1],Jr=Nt[2];break;case 5:jt=[He,ae,Ae],Vr=jt[0],er=jt[1],Jr=jt[2];break}}return[Vr,er,Jr,bt.length>3?bt[3]:1]},rn=Kt,On=g.unpack,an=g.type,on=R,dr=_,$e=v,qe=dt;dr.prototype.hcg=function(){return qe(this._rgb)},on.hcg=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(dr,[null].concat(xe,["hcg"])))},$e.format.hcg=rn,$e.autodetect.push({p:1,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=On(xe,"hcg"),an(xe)==="array"&&xe.length===3)return"hcg"}});var yt=g.unpack,Ze=g.last,ot=Math.round,yn=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=yt(xe,"rgba"),We=Ve[0],Nt=Ve[1],jt=Ve[2],bt=Ve[3],Xt=Ze(xe)||"auto";bt===void 0&&(bt=1),Xt==="auto"&&(Xt=bt<1?"rgba":"rgb"),We=ot(We),Nt=ot(Nt),jt=ot(jt);var cn=We<<16|Nt<<8|jt,Fn="000000"+cn.toString(16);Fn=Fn.substr(Fn.length-6);var Nn="0"+ot(bt*255).toString(16);switch(Nn=Nn.substr(Nn.length-2),Xt.toLowerCase()){case"rgba":return"#"+Fn+Nn;case"argb":return"#"+Nn+Fn;default:return"#"+Fn}},vt=yn,Gt=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ft=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,rt=function(xe){if(xe.match(Gt)){(xe.length===4||xe.length===7)&&(xe=xe.substr(1)),xe.length===3&&(xe=xe.split(""),xe=xe[0]+xe[0]+xe[1]+xe[1]+xe[2]+xe[2]);var Re=parseInt(xe,16),Ve=Re>>16,We=Re>>8&255,Nt=Re&255;return[Ve,We,Nt,1]}if(xe.match(ft)){(xe.length===5||xe.length===9)&&(xe=xe.substr(1)),xe.length===4&&(xe=xe.split(""),xe=xe[0]+xe[0]+xe[1]+xe[1]+xe[2]+xe[2]+xe[3]+xe[3]);var jt=parseInt(xe,16),bt=jt>>24&255,Xt=jt>>16&255,cn=jt>>8&255,Fn=Math.round((jt&255)/255*100)/100;return[bt,Xt,cn,Fn]}throw new Error("unknown hex color: "+xe)},Pt=rt,Yt=R,Un=_,jn=g.type,br=v,si=vt;Un.prototype.hex=function(xe){return si(this._rgb,xe)},Yt.hex=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Un,[null].concat(xe,["hex"])))},br.format.hex=Pt,br.autodetect.push({p:4,test:function(xe){for(var Re=[],Ve=arguments.length-1;Ve-- >0;)Re[Ve]=arguments[Ve+1];if(!Re.length&&jn(xe)==="string"&&[3,4,5,6,7,8,9].indexOf(xe.length)>=0)return"hex"}});var Qi=g.unpack,st=g.TWOPI,wt=Math.min,Bt=Math.sqrt,dn=Math.acos,tn=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=Qi(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2];We/=255,Nt/=255,jt/=255;var bt,Xt=wt(We,Nt,jt),cn=(We+Nt+jt)/3,Fn=cn>0?1-Xt/cn:0;return Fn===0?bt=NaN:(bt=(We-Nt+(We-jt))/2,bt/=Bt((We-Nt)*(We-Nt)+(We-jt)*(Nt-jt)),bt=dn(bt),jt>Nt&&(bt=st-bt),bt/=st),[bt*360,Fn,cn]},vn=tn,kn=g.unpack,Mn=g.limit,Nr=g.TWOPI,na=g.PITHIRD,Ar=Math.cos,qi=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=kn(xe,"hsi");var Ve=xe[0],We=xe[1],Nt=xe[2],jt,bt,Xt;return isNaN(Ve)&&(Ve=0),isNaN(We)&&(We=0),Ve>360&&(Ve-=360),Ve<0&&(Ve+=360),Ve/=360,Ve<1/3?(Xt=(1-We)/3,jt=(1+We*Ar(Nr*Ve)/Ar(na-Nr*Ve))/3,bt=1-(Xt+jt)):Ve<2/3?(Ve-=1/3,jt=(1-We)/3,bt=(1+We*Ar(Nr*Ve)/Ar(na-Nr*Ve))/3,Xt=1-(jt+bt)):(Ve-=2/3,bt=(1-We)/3,Xt=(1+We*Ar(Nr*Ve)/Ar(na-Nr*Ve))/3,jt=1-(bt+Xt)),jt=Mn(Nt*jt*3),bt=Mn(Nt*bt*3),Xt=Mn(Nt*Xt*3),[jt*255,bt*255,Xt*255,xe.length>3?xe[3]:1]},Ge=qi,ht=g.unpack,Je=g.type,Rt=R,Dt=_,It=v,ln=vn;Dt.prototype.hsi=function(){return ln(this._rgb)},Rt.hsi=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Dt,[null].concat(xe,["hsi"])))},It.format.hsi=Ge,It.autodetect.push({p:2,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=ht(xe,"hsi"),Je(xe)==="array"&&xe.length===3)return"hsi"}});var Hn=g.unpack,Zn=g.type,Jn=R,Xn=_,zr=v,ua=te;Xn.prototype.hsl=function(){return ua(this._rgb)},Jn.hsl=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Xn,[null].concat(xe,["hsl"])))},zr.format.hsl=je,zr.autodetect.push({p:2,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=Hn(xe,"hsl"),Zn(xe)==="array"&&xe.length===3)return"hsl"}});var Ta=g.unpack,Qa=Math.min,hs=Math.max,$a=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=Ta(xe,"rgb");var Ve=xe[0],We=xe[1],Nt=xe[2],jt=Qa(Ve,We,Nt),bt=hs(Ve,We,Nt),Xt=bt-jt,cn,Fn,Nn;return Nn=bt/255,bt===0?(cn=Number.NaN,Fn=0):(Fn=Xt/bt,Ve===bt&&(cn=(We-Nt)/Xt),We===bt&&(cn=2+(Nt-Ve)/Xt),Nt===bt&&(cn=4+(Ve-We)/Xt),cn*=60,cn<0&&(cn+=360)),[cn,Fn,Nn]},nd=$a,wm=g.unpack,uf=Math.floor,b1=function(){for(var xe,Re,Ve,We,Nt,jt,bt=[],Xt=arguments.length;Xt--;)bt[Xt]=arguments[Xt];bt=wm(bt,"hsv");var cn=bt[0],Fn=bt[1],Nn=bt[2],Vr,er,Jr;if(Nn*=255,Fn===0)Vr=er=Jr=Nn;else{cn===360&&(cn=0),cn>360&&(cn-=360),cn<0&&(cn+=360),cn/=60;var ni=uf(cn),V=cn-ni,W=Nn*(1-Fn),ae=Nn*(1-Fn*V),Ae=Nn*(1-Fn*(1-V));switch(ni){case 0:xe=[Nn,Ae,W],Vr=xe[0],er=xe[1],Jr=xe[2];break;case 1:Re=[ae,Nn,W],Vr=Re[0],er=Re[1],Jr=Re[2];break;case 2:Ve=[W,Nn,Ae],Vr=Ve[0],er=Ve[1],Jr=Ve[2];break;case 3:We=[W,ae,Nn],Vr=We[0],er=We[1],Jr=We[2];break;case 4:Nt=[Ae,W,Nn],Vr=Nt[0],er=Nt[1],Jr=Nt[2];break;case 5:jt=[Nn,W,ae],Vr=jt[0],er=jt[1],Jr=jt[2];break}}return[Vr,er,Jr,bt.length>3?bt[3]:1]},_m=b1,sA=g.unpack,x1=g.type,hb=R,Sh=_,LE=v,lA=nd;Sh.prototype.hsv=function(){return lA(this._rgb)},hb.hsv=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Sh,[null].concat(xe,["hsv"])))},LE.format.hsv=_m,LE.autodetect.push({p:2,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=sA(xe,"hsv"),x1(xe)==="array"&&xe.length===3)return"hsv"}});var xg={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Fv=xg,fb=g.unpack,BE=Math.pow,Eg=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=fb(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2],bt=Sg(We,Nt,jt),Xt=bt[0],cn=bt[1],Fn=bt[2],Nn=116*cn-16;return[Nn<0?0:Nn,500*(Xt-cn),200*(cn-Fn)]},pb=function(xe){return(xe/=255)<=.04045?xe/12.92:BE((xe+.055)/1.055,2.4)},df=function(xe){return xe>Fv.t3?BE(xe,1/3):xe/Fv.t2+Fv.t0},Sg=function(xe,Re,Ve){xe=pb(xe),Re=pb(Re),Ve=pb(Ve);var We=df((.4124564*xe+.3575761*Re+.1804375*Ve)/Fv.Xn),Nt=df((.2126729*xe+.7151522*Re+.072175*Ve)/Fv.Yn),jt=df((.0193339*xe+.119192*Re+.9503041*Ve)/Fv.Zn);return[We,Nt,jt]},E1=Eg,jv=xg,li=g.unpack,ea=Math.pow,it=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=li(xe,"lab");var Ve=xe[0],We=xe[1],Nt=xe[2],jt,bt,Xt,cn,Fn,Nn;return bt=(Ve+16)/116,jt=isNaN(We)?bt:bt+We/500,Xt=isNaN(Nt)?bt:bt-Nt/200,bt=jv.Yn*Gn(bt),jt=jv.Xn*Gn(jt),Xt=jv.Zn*Gn(Xt),cn=zt(3.2404542*jt-1.5371385*bt-.4985314*Xt),Fn=zt(-.969266*jt+1.8760108*bt+.041556*Xt),Nn=zt(.0556434*jt-.2040259*bt+1.0572252*Xt),[cn,Fn,Nn,xe.length>3?xe[3]:1]},zt=function(xe){return 255*(xe<=.00304?12.92*xe:1.055*ea(xe,1/2.4)-.055)},Gn=function(xe){return xe>jv.t1?xe*xe*xe:jv.t2*(xe-jv.t0)},Br=it,dl=g.unpack,Ja=g.type,Pl=R,Ts=_,ma=v,Cs=E1;Ts.prototype.lab=function(){return Cs(this._rgb)},Pl.lab=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Ts,[null].concat(xe,["lab"])))},ma.format.lab=Br,ma.autodetect.push({p:2,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=dl(xe,"lab"),Ja(xe)==="array"&&xe.length===3)return"lab"}});var Sl=g.unpack,Yl=g.RAD2DEG,Jl=Math.sqrt,Eo=Math.atan2,Jc=Math.round,wh=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=Sl(xe,"lab"),We=Ve[0],Nt=Ve[1],jt=Ve[2],bt=Jl(Nt*Nt+jt*jt),Xt=(Eo(jt,Nt)*Yl+360)%360;return Jc(bt*1e4)===0&&(Xt=Number.NaN),[We,bt,Xt]},Kd=wh,Pp=g.unpack,cA=E1,Hv=Kd,es=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=Pp(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2],bt=cA(We,Nt,jt),Xt=bt[0],cn=bt[1],Fn=bt[2];return Hv(Xt,cn,Fn)},Op=es,Vs=g.unpack,OC=g.DEG2RAD,u_=Math.sin,$c=Math.cos,hf=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=Vs(xe,"lch"),We=Ve[0],Nt=Ve[1],jt=Ve[2];return isNaN(jt)&&(jt=0),jt=jt*OC,[We,$c(jt)*Nt,u_(jt)*Nt]},S1=hf,va=g.unpack,Wd=S1,mb=Br,d_=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=va(xe,"lch");var Ve=xe[0],We=xe[1],Nt=xe[2],jt=Wd(Ve,We,Nt),bt=jt[0],Xt=jt[1],cn=jt[2],Fn=mb(bt,Xt,cn),Nn=Fn[0],Vr=Fn[1],er=Fn[2];return[Nn,Vr,er,xe.length>3?xe[3]:1]},Uv=d_,IN=g.unpack,PN=Uv,ON=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=IN(xe,"hcl").reverse();return PN.apply(void 0,Ve)},DE=ON,wg=g.unpack,_h=g.type,$E=R,w1=_,uA=v,_1=Op;w1.prototype.lch=function(){return _1(this._rgb)},w1.prototype.hcl=function(){return _1(this._rgb).reverse()},$E.lch=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(w1,[null].concat(xe,["lch"])))},$E.hcl=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(w1,[null].concat(xe,["hcl"])))},uA.format.lch=Uv,uA.format.hcl=DE,["lch","hcl"].forEach(function(xe){return uA.autodetect.push({p:2,test:function(){for(var Re=[],Ve=arguments.length;Ve--;)Re[Ve]=arguments[Ve];if(Re=wg(Re,xe),_h(Re)==="array"&&Re.length===3)return xe}})});var zv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Th=zv,FE=_,Tm=v,ff=g.type,T1=Th,dA=Pt,Ol=vt;FE.prototype.name=function(){for(var xe=Ol(this._rgb,"rgb"),Re=0,Ve=Object.keys(T1);Re<Ve.length;Re+=1){var We=Ve[Re];if(T1[We]===xe)return We.toLowerCase()}return xe},Tm.format.named=function(xe){if(xe=xe.toLowerCase(),T1[xe])return dA(T1[xe]);throw new Error("unknown color name: "+xe)},Tm.autodetect.push({p:5,test:function(xe){for(var Re=[],Ve=arguments.length-1;Ve-- >0;)Re[Ve]=arguments[Ve+1];if(!Re.length&&ff(xe)==="string"&&T1[xe.toLowerCase()])return"named"}});var C1=g.unpack,Ks=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=C1(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2];return(We<<16)+(Nt<<8)+jt},gb=Ks,Cm=g.type,k1=function(xe){if(Cm(xe)=="number"&&xe>=0&&xe<=16777215){var Re=xe>>16,Ve=xe>>8&255,We=xe&255;return[Re,Ve,We,1]}throw new Error("unknown num color: "+xe)},_g=k1,LN=R,LC=_,h_=v,Lp=g.type,f_=gb;LC.prototype.num=function(){return f_(this._rgb)},LN.num=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(LC,[null].concat(xe,["num"])))},h_.format.num=_g,h_.autodetect.push({p:5,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe.length===1&&Lp(xe[0])==="number"&&xe[0]>=0&&xe[0]<=16777215)return"num"}});var BC=R,Bp=_,vb=v,bu=g.unpack,zu=g.type,Ab=Math.round;Bp.prototype.rgb=function(xe){return xe===void 0&&(xe=!0),xe===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Ab)},Bp.prototype.rgba=function(xe){return xe===void 0&&(xe=!0),this._rgb.slice(0,4).map(function(Re,Ve){return Ve<3?xe===!1?Re:Ab(Re):Re})},BC.rgb=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Bp,[null].concat(xe,["rgb"])))},vb.format.rgb=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=bu(xe,"rgba");return Ve[3]===void 0&&(Ve[3]=1),Ve},vb.autodetect.push({p:3,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=bu(xe,"rgba"),zu(xe)==="array"&&(xe.length===3||xe.length===4&&zu(xe[3])=="number"&&xe[3]>=0&&xe[3]<=1))return"rgb"}});var uc=Math.log,Qd=function(xe){var Re=xe/100,Ve,We,Nt;return Re<66?(Ve=255,We=Re<6?0:-155.25485562709179-.44596950469579133*(We=Re-2)+104.49216199393888*uc(We),Nt=Re<20?0:-254.76935184120902+.8274096064007395*(Nt=Re-10)+115.67994401066147*uc(Nt)):(Ve=351.97690566805693+.114206453784165*(Ve=Re-55)-40.25366309332127*uc(Ve),We=325.4494125711974+.07943456536662342*(We=Re-50)-28.0852963507957*uc(We),Nt=255),[Ve,We,Nt,1]},hl=Qd,dc=hl,R1=g.unpack,pf=Math.round,DC=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];for(var Ve=R1(xe,"rgb"),We=Ve[0],Nt=Ve[2],jt=1e3,bt=4e4,Xt=.4,cn;bt-jt>Xt;){cn=(bt+jt)*.5;var Fn=dc(cn);Fn[2]/Fn[0]>=Nt/We?bt=cn:jt=cn}return pf(cn)},$C=DC,Gv=R,Tg=_,Fc=v,Ke=$C;Tg.prototype.temp=Tg.prototype.kelvin=Tg.prototype.temperature=function(){return Ke(this._rgb)},Gv.temp=Gv.kelvin=Gv.temperature=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(Tg,[null].concat(xe,["temp"])))},Fc.format.temp=Fc.format.kelvin=Fc.format.temperature=hl;var pt=g.unpack,nt=Math.cbrt,Sn=Math.pow,yr=Math.sign,vi=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=pt(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2],bt=[aa(We/255),aa(Nt/255),aa(jt/255)],Xt=bt[0],cn=bt[1],Fn=bt[2],Nn=nt(.4122214708*Xt+.5363325363*cn+.0514459929*Fn),Vr=nt(.2119034982*Xt+.6806995451*cn+.1073969566*Fn),er=nt(.0883024619*Xt+.2817188376*cn+.6299787005*Fn);return[.2104542553*Nn+.793617785*Vr-.0040720468*er,1.9779984951*Nn-2.428592205*Vr+.4505937099*er,.0259040371*Nn+.7827717662*Vr-.808675766*er]},ao=vi;function aa(xe){var Re=Math.abs(xe);return Re<.04045?xe/12.92:(yr(xe)||1)*Sn((Re+.055)/1.055,2.4)}var hA=g.unpack,yb=Math.pow,Zl=Math.sign,fA=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=hA(xe,"lab");var Ve=xe[0],We=xe[1],Nt=xe[2],jt=yb(Ve+.3963377774*We+.2158037573*Nt,3),bt=yb(Ve-.1055613458*We-.0638541728*Nt,3),Xt=yb(Ve-.0894841775*We-1.291485548*Nt,3);return[255*mf(4.0767416621*jt-3.3077115913*bt+.2309699292*Xt),255*mf(-1.2684380046*jt+2.6097574011*bt-.3413193965*Xt),255*mf(-.0041960863*jt-.7034186147*bt+1.707614701*Xt),xe.length>3?xe[3]:1]},jE=fA;function mf(xe){var Re=Math.abs(xe);return Re>.0031308?(Zl(xe)||1)*(1.055*yb(Re,1/2.4)-.055):xe*12.92}var pA=g.unpack,mA=g.type,Yi=R,FC=_,HE=v,M1=ao;FC.prototype.oklab=function(){return M1(this._rgb)},Yi.oklab=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(FC,[null].concat(xe,["oklab"])))},HE.format.oklab=jE,HE.autodetect.push({p:3,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=pA(xe,"oklab"),mA(xe)==="array"&&xe.length===3)return"oklab"}});var jC=g.unpack,p_=ao,LO=Kd,N1=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];var Ve=jC(xe,"rgb"),We=Ve[0],Nt=Ve[1],jt=Ve[2],bt=p_(We,Nt,jt),Xt=bt[0],cn=bt[1],Fn=bt[2];return LO(Xt,cn,Fn)},Ch=N1,I1=g.unpack,jf=S1,xu=jE,m_=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];xe=I1(xe,"lch");var Ve=xe[0],We=xe[1],Nt=xe[2],jt=jf(Ve,We,Nt),bt=jt[0],Xt=jt[1],cn=jt[2],Fn=xu(bt,Xt,cn),Nn=Fn[0],Vr=Fn[1],er=Fn[2];return[Nn,Vr,er,xe.length>3?xe[3]:1]},g_=m_,gA=g.unpack,UE=g.type,Cg=R,qd=_,Vv=v,HC=Ch;qd.prototype.oklch=function(){return HC(this._rgb)},Cg.oklch=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];return new(Function.prototype.bind.apply(qd,[null].concat(xe,["oklch"])))},Vv.format.oklch=g_,Vv.autodetect.push({p:3,test:function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];if(xe=gA(xe,"oklch"),UE(xe)==="array"&&xe.length===3)return"oklch"}});var UC=_,v_=g.type;UC.prototype.alpha=function(xe,Re){return Re===void 0&&(Re=!1),xe!==void 0&&v_(xe)==="number"?Re?(this._rgb[3]=xe,this):new UC([this._rgb[0],this._rgb[1],this._rgb[2],xe],"rgb"):this._rgb[3]};var vA=_;vA.prototype.clipped=function(){return this._rgb._clipped||!1};var gf=_,bb=xg;gf.prototype.darken=function(xe){xe===void 0&&(xe=1);var Re=this,Ve=Re.lab();return Ve[0]-=bb.Kn*xe,new gf(Ve,"lab").alpha(Re.alpha(),!0)},gf.prototype.brighten=function(xe){return xe===void 0&&(xe=1),this.darken(-xe)},gf.prototype.darker=gf.prototype.darken,gf.prototype.brighter=gf.prototype.brighten;var BN=_;BN.prototype.get=function(xe){var Re=xe.split("."),Ve=Re[0],We=Re[1],Nt=this[Ve]();if(We){var jt=Ve.indexOf(We)-(Ve.substr(0,2)==="ok"?2:0);if(jt>-1)return Nt[jt];throw new Error("unknown channel "+We+" in mode "+Ve)}else return Nt};var Kv=_,zC=g.type,DN=Math.pow,Ga=1e-7,fo=20;Kv.prototype.luminance=function(xe){if(xe!==void 0&&zC(xe)==="number"){if(xe===0)return new Kv([0,0,0,this._rgb[3]],"rgb");if(xe===1)return new Kv([255,255,255,this._rgb[3]],"rgb");var Re=this.luminance(),Ve="rgb",We=fo,Nt=function(bt,Xt){var cn=bt.interpolate(Xt,.5,Ve),Fn=cn.luminance();return Math.abs(xe-Fn)<Ga||!We--?cn:Fn>xe?Nt(bt,cn):Nt(cn,Xt)},jt=(Re>xe?Nt(new Kv([0,0,0]),this):Nt(this,new Kv([255,255,255]))).rgb();return new Kv(jt.concat([this._rgb[3]]))}return zE.apply(void 0,this._rgb.slice(0,3))};var zE=function(xe,Re,Ve){return xe=P1(xe),Re=P1(Re),Ve=P1(Ve),.2126*xe+.7152*Re+.0722*Ve},P1=function(xe){return xe/=255,xe<=.03928?xe/12.92:DN((xe+.055)/1.055,2.4)},rd={},GE=_,O1=g.type,Yd=rd,xb=function(xe,Re,Ve){Ve===void 0&&(Ve=.5);for(var We=[],Nt=arguments.length-3;Nt-- >0;)We[Nt]=arguments[Nt+3];var jt=We[0]||"lrgb";if(!Yd[jt]&&!We.length&&(jt=Object.keys(Yd)[0]),!Yd[jt])throw new Error("interpolation mode "+jt+" is not defined");return O1(xe)!=="object"&&(xe=new GE(xe)),O1(Re)!=="object"&&(Re=new GE(Re)),Yd[jt](xe,Re,Ve).alpha(xe.alpha()+Ve*(Re.alpha()-xe.alpha()))},Dp=_,km=xb;Dp.prototype.mix=Dp.prototype.interpolate=function(xe,Re){Re===void 0&&(Re=.5);for(var Ve=[],We=arguments.length-2;We-- >0;)Ve[We]=arguments[We+2];return km.apply(void 0,[this,xe,Re].concat(Ve))};var $p=_;$p.prototype.premultiply=function(xe){xe===void 0&&(xe=!1);var Re=this._rgb,Ve=Re[3];return xe?(this._rgb=[Re[0]*Ve,Re[1]*Ve,Re[2]*Ve,Ve],this):new $p([Re[0]*Ve,Re[1]*Ve,Re[2]*Ve,Ve],"rgb")};var Wv=_,Fp=xg;Wv.prototype.saturate=function(xe){xe===void 0&&(xe=1);var Re=this,Ve=Re.lch();return Ve[1]+=Fp.Kn*xe,Ve[1]<0&&(Ve[1]=0),new Wv(Ve,"lch").alpha(Re.alpha(),!0)},Wv.prototype.desaturate=function(xe){return xe===void 0&&(xe=1),this.saturate(-xe)};var GC=_,$N=g.type;GC.prototype.set=function(xe,Re,Ve){Ve===void 0&&(Ve=!1);var We=xe.split("."),Nt=We[0],jt=We[1],bt=this[Nt]();if(jt){var Xt=Nt.indexOf(jt)-(Nt.substr(0,2)==="ok"?2:0);if(Xt>-1){if($N(Re)=="string")switch(Re.charAt(0)){case"+":bt[Xt]+=+Re;break;case"-":bt[Xt]+=+Re;break;case"*":bt[Xt]*=+Re.substr(1);break;case"/":bt[Xt]/=+Re.substr(1);break;default:bt[Xt]=+Re}else if($N(Re)==="number")bt[Xt]=Re;else throw new Error("unsupported value for Color.set");var cn=new GC(bt,Nt);return Ve?(this._rgb=cn._rgb,this):cn}throw new Error("unknown channel "+jt+" in mode "+Nt)}else return bt};var FN=_,BO=function(xe,Re,Ve){var We=xe._rgb,Nt=Re._rgb;return new FN(We[0]+Ve*(Nt[0]-We[0]),We[1]+Ve*(Nt[1]-We[1]),We[2]+Ve*(Nt[2]-We[2]),"rgb")};rd.rgb=BO;var jN=_,Qv=Math.sqrt,kh=Math.pow,A_=function(xe,Re,Ve){var We=xe._rgb,Nt=We[0],jt=We[1],bt=We[2],Xt=Re._rgb,cn=Xt[0],Fn=Xt[1],Nn=Xt[2];return new jN(Qv(kh(Nt,2)*(1-Ve)+kh(cn,2)*Ve),Qv(kh(jt,2)*(1-Ve)+kh(Fn,2)*Ve),Qv(kh(bt,2)*(1-Ve)+kh(Nn,2)*Ve),"rgb")};rd.lrgb=A_;var ve=_,jp=function(xe,Re,Ve){var We=xe.lab(),Nt=Re.lab();return new ve(We[0]+Ve*(Nt[0]-We[0]),We[1]+Ve*(Nt[1]-We[1]),We[2]+Ve*(Nt[2]-We[2]),"lab")};rd.lab=jp;var qv=_,nl=function(xe,Re,Ve,We){var Nt,jt,bt,Xt;We==="hsl"?(bt=xe.hsl(),Xt=Re.hsl()):We==="hsv"?(bt=xe.hsv(),Xt=Re.hsv()):We==="hcg"?(bt=xe.hcg(),Xt=Re.hcg()):We==="hsi"?(bt=xe.hsi(),Xt=Re.hsi()):We==="lch"||We==="hcl"?(We="hcl",bt=xe.hcl(),Xt=Re.hcl()):We==="oklch"&&(bt=xe.oklch().reverse(),Xt=Re.oklch().reverse());var cn,Fn,Nn,Vr,er,Jr;(We.substr(0,1)==="h"||We==="oklch")&&(Nt=bt,cn=Nt[0],Nn=Nt[1],er=Nt[2],jt=Xt,Fn=jt[0],Vr=jt[1],Jr=jt[2]);var ni,V,W,ae;return!isNaN(cn)&&!isNaN(Fn)?(Fn>cn&&Fn-cn>180?ae=Fn-(cn+360):Fn<cn&&cn-Fn>180?ae=Fn+360-cn:ae=Fn-cn,V=cn+Ve*ae):isNaN(cn)?isNaN(Fn)?V=Number.NaN:(V=Fn,(er==1||er==0)&&We!="hsv"&&(ni=Vr)):(V=cn,(Jr==1||Jr==0)&&We!="hsv"&&(ni=Nn)),ni===void 0&&(ni=Nn+Ve*(Vr-Nn)),W=er+Ve*(Jr-er),We==="oklch"?new qv([W,ni,V],We):new qv([V,ni,W],We)},Wr=nl,y_=function(xe,Re,Ve){return Wr(xe,Re,Ve,"lch")};rd.lch=y_,rd.hcl=y_;var HN=_,VC=function(xe,Re,Ve){var We=xe.num(),Nt=Re.num();return new HN(We+Ve*(Nt-We),"num")};rd.num=VC;var vf=nl,b_=function(xe,Re,Ve){return vf(xe,Re,Ve,"hcg")};rd.hcg=b_;var DO=nl,x_=function(xe,Re,Ve){return DO(xe,Re,Ve,"hsi")};rd.hsi=x_;var E_=nl,S_=function(xe,Re,Ve){return E_(xe,Re,Ve,"hsl")};rd.hsl=S_;var Eu=nl,w_=function(xe,Re,Ve){return Eu(xe,Re,Ve,"hsv")};rd.hsv=w_;var VE=_,KC=function(xe,Re,Ve){var We=xe.oklab(),Nt=Re.oklab();return new VE(We[0]+Ve*(Nt[0]-We[0]),We[1]+Ve*(Nt[1]-We[1]),We[2]+Ve*(Nt[2]-We[2]),"oklab")};rd.oklab=KC;var WC=nl,QC=function(xe,Re,Ve){return WC(xe,Re,Ve,"oklch")};rd.oklch=QC;var Su=_,qC=g.clip_rgb,Eb=Math.pow,YC=Math.sqrt,JC=Math.PI,KE=Math.cos,Jd=Math.sin,ZC=Math.atan2,Aa=function(xe,Re,Ve){Re===void 0&&(Re="lrgb"),Ve===void 0&&(Ve=null);var We=xe.length;Ve||(Ve=Array.from(new Array(We)).map(function(){return 1}));var Nt=We/Ve.reduce(function(V,W){return V+W});if(Ve.forEach(function(V,W){Ve[W]*=Nt}),xe=xe.map(function(V){return new Su(V)}),Re==="lrgb")return ts(xe,Ve);for(var jt=xe.shift(),bt=jt.get(Re),Xt=[],cn=0,Fn=0,Nn=0;Nn<bt.length;Nn++)if(bt[Nn]=(bt[Nn]||0)*Ve[0],Xt.push(isNaN(bt[Nn])?0:Ve[0]),Re.charAt(Nn)==="h"&&!isNaN(bt[Nn])){var Vr=bt[Nn]/180*JC;cn+=KE(Vr)*Ve[0],Fn+=Jd(Vr)*Ve[0]}var er=jt.alpha()*Ve[0];xe.forEach(function(V,W){var ae=V.get(Re);er+=V.alpha()*Ve[W+1];for(var Ae=0;Ae<bt.length;Ae++)if(!isNaN(ae[Ae]))if(Xt[Ae]+=Ve[W+1],Re.charAt(Ae)==="h"){var we=ae[Ae]/180*JC;cn+=KE(we)*Ve[W+1],Fn+=Jd(we)*Ve[W+1]}else bt[Ae]+=ae[Ae]*Ve[W+1]});for(var Jr=0;Jr<bt.length;Jr++)if(Re.charAt(Jr)==="h"){for(var ni=ZC(Fn/Xt[Jr],cn/Xt[Jr])/JC*180;ni<0;)ni+=360;for(;ni>=360;)ni-=360;bt[Jr]=ni}else bt[Jr]=bt[Jr]/Xt[Jr];return er/=We,new Su(bt,Re).alpha(er>.99999?1:er,!0)},ts=function(xe,Re){for(var Ve=xe.length,We=[0,0,0,0],Nt=0;Nt<xe.length;Nt++){var jt=xe[Nt],bt=Re[Nt]/Ve,Xt=jt._rgb;We[0]+=Eb(Xt[0],2)*bt,We[1]+=Eb(Xt[1],2)*bt,We[2]+=Eb(Xt[2],2)*bt,We[3]+=Xt[3]*bt}return We[0]=YC(We[0]),We[1]=YC(We[1]),We[2]=YC(We[2]),We[3]>.9999999&&(We[3]=1),new Su(qC(We))},rl=R,Zc=g.type,L1=Math.pow,WE=function(xe){var Re="rgb",Ve=rl("#ccc"),We=0,Nt=[0,1],jt=[],bt=[0,0],Xt=!1,cn=[],Fn=!1,Nn=0,Vr=1,er=!1,Jr={},ni=!0,V=1,W=function(Tt){if(Tt=Tt||["#fff","#000"],Tt&&Zc(Tt)==="string"&&rl.brewer&&rl.brewer[Tt.toLowerCase()]&&(Tt=rl.brewer[Tt.toLowerCase()]),Zc(Tt)==="array"){Tt.length===1&&(Tt=[Tt[0],Tt[0]]),Tt=Tt.slice(0);for(var wn=0;wn<Tt.length;wn++)Tt[wn]=rl(Tt[wn]);jt.length=0;for(var hr=0;hr<Tt.length;hr++)jt.push(hr/(Tt.length-1))}return at(),cn=Tt},ae=function(Tt){if(Xt!=null){for(var wn=Xt.length-1,hr=0;hr<wn&&Tt>=Xt[hr];)hr++;return hr-1}return 0},Ae=function(Tt){return Tt},we=function(Tt){return Tt},He=function(Tt,wn){var hr,rr;if(wn==null&&(wn=!1),isNaN(Tt)||Tt===null)return Ve;if(wn)rr=Tt;else if(Xt&&Xt.length>2){var xr=ae(Tt);rr=xr/(Xt.length-2)}else Vr!==Nn?rr=(Tt-Nn)/(Vr-Nn):rr=1;rr=we(rr),wn||(rr=Ae(rr)),V!==1&&(rr=L1(rr,V)),rr=bt[0]+rr*(1-bt[0]-bt[1]),rr=Math.min(1,Math.max(0,rr));var ui=Math.floor(rr*1e4);if(ni&&Jr[ui])hr=Jr[ui];else{if(Zc(cn)==="array")for(var Ji=0;Ji<jt.length;Ji++){var Za=jt[Ji];if(rr<=Za){hr=cn[Ji];break}if(rr>=Za&&Ji===jt.length-1){hr=cn[Ji];break}if(rr>Za&&rr<jt[Ji+1]){rr=(rr-Za)/(jt[Ji+1]-Za),hr=rl.interpolate(cn[Ji],cn[Ji+1],rr,Re);break}}else Zc(cn)==="function"&&(hr=cn(rr));ni&&(Jr[ui]=hr)}return hr},at=function(){return Jr={}};W(xe);var Et=function(Tt){var wn=rl(He(Tt));return Fn&&wn[Fn]?wn[Fn]():wn};return Et.classes=function(Tt){if(Tt!=null){if(Zc(Tt)==="array")Xt=Tt,Nt=[Tt[0],Tt[Tt.length-1]];else{var wn=rl.analyze(Nt);Tt===0?Xt=[wn.min,wn.max]:Xt=rl.limits(wn,"e",Tt)}return Et}return Xt},Et.domain=function(Tt){if(!arguments.length)return Nt;Nn=Tt[0],Vr=Tt[Tt.length-1],jt=[];var wn=cn.length;if(Tt.length===wn&&Nn!==Vr)for(var hr=0,rr=Array.from(Tt);hr<rr.length;hr+=1){var xr=rr[hr];jt.push((xr-Nn)/(Vr-Nn))}else{for(var ui=0;ui<wn;ui++)jt.push(ui/(wn-1));if(Tt.length>2){var Ji=Tt.map(function(Vt,Lt){return Lt/(Tt.length-1)}),Za=Tt.map(function(Vt){return(Vt-Nn)/(Vr-Nn)});Za.every(function(Vt,Lt){return Ji[Lt]===Vt})||(we=function(Vt){if(Vt<=0||Vt>=1)return Vt;for(var Lt=0;Vt>=Za[Lt+1];)Lt++;var bn=(Vt-Za[Lt])/(Za[Lt+1]-Za[Lt]),Fr=Ji[Lt]+bn*(Ji[Lt+1]-Ji[Lt]);return Fr})}}return Nt=[Nn,Vr],Et},Et.mode=function(Tt){return arguments.length?(Re=Tt,at(),Et):Re},Et.range=function(Tt,wn){return W(Tt),Et},Et.out=function(Tt){return Fn=Tt,Et},Et.spread=function(Tt){return arguments.length?(We=Tt,Et):We},Et.correctLightness=function(Tt){return Tt==null&&(Tt=!0),er=Tt,at(),er?Ae=function(wn){for(var hr=He(0,!0).lab()[0],rr=He(1,!0).lab()[0],xr=hr>rr,ui=He(wn,!0).lab()[0],Ji=hr+(rr-hr)*wn,Za=ui-Ji,Vt=0,Lt=1,bn=20;Math.abs(Za)>.01&&bn-- >0;)(function(){return xr&&(Za*=-1),Za<0?(Vt=wn,wn+=(Lt-wn)*.5):(Lt=wn,wn+=(Vt-wn)*.5),ui=He(wn,!0).lab()[0],Za=ui-Ji})();return wn}:Ae=function(wn){return wn},Et},Et.padding=function(Tt){return Tt!=null?(Zc(Tt)==="number"&&(Tt=[Tt,Tt]),bt=Tt,Et):bt},Et.colors=function(Tt,wn){arguments.length<2&&(wn="hex");var hr=[];if(arguments.length===0)hr=cn.slice(0);else if(Tt===1)hr=[Et(.5)];else if(Tt>1){var rr=Nt[0],xr=Nt[1]-rr;hr=Sd(0,Tt,!1).map(function(Lt){return Et(rr+Lt/(Tt-1)*xr)})}else{xe=[];var ui=[];if(Xt&&Xt.length>2)for(var Ji=1,Za=Xt.length,Vt=1<=Za;Vt?Ji<Za:Ji>Za;Vt?Ji++:Ji--)ui.push((Xt[Ji-1]+Xt[Ji])*.5);else ui=Nt;hr=ui.map(function(Lt){return Et(Lt)})}return rl[wn]&&(hr=hr.map(function(Lt){return Lt[wn]()})),hr},Et.cache=function(Tt){return Tt!=null?(ni=Tt,Et):ni},Et.gamma=function(Tt){return Tt!=null?(V=Tt,Et):V},Et.nodata=function(Tt){return Tt!=null?(Ve=rl(Tt),Et):Ve},Et};function Sd(xe,Re,Ve){for(var We=[],Nt=xe<Re,jt=Ve?Nt?Re+1:Re-1:Re,bt=xe;Nt?bt<jt:bt>jt;Nt?bt++:bt--)We.push(bt);return We}var kg=_,AA=WE,QE=function(xe){for(var Re=[1,1],Ve=1;Ve<xe;Ve++){for(var We=[1],Nt=1;Nt<=Re.length;Nt++)We[Nt]=(Re[Nt]||0)+Re[Nt-1];Re=We}return Re},Sb=function(xe){var Re,Ve,We,Nt,jt,bt,Xt;if(xe=xe.map(function(er){return new kg(er)}),xe.length===2)Re=xe.map(function(er){return er.lab()}),jt=Re[0],bt=Re[1],Nt=function(er){var Jr=[0,1,2].map(function(ni){return jt[ni]+er*(bt[ni]-jt[ni])});return new kg(Jr,"lab")};else if(xe.length===3)Ve=xe.map(function(er){return er.lab()}),jt=Ve[0],bt=Ve[1],Xt=Ve[2],Nt=function(er){var Jr=[0,1,2].map(function(ni){return(1-er)*(1-er)*jt[ni]+2*(1-er)*er*bt[ni]+er*er*Xt[ni]});return new kg(Jr,"lab")};else if(xe.length===4){var cn;We=xe.map(function(er){return er.lab()}),jt=We[0],bt=We[1],Xt=We[2],cn=We[3],Nt=function(er){var Jr=[0,1,2].map(function(ni){return(1-er)*(1-er)*(1-er)*jt[ni]+3*(1-er)*(1-er)*er*bt[ni]+3*(1-er)*er*er*Xt[ni]+er*er*er*cn[ni]});return new kg(Jr,"lab")}}else if(xe.length>=5){var Fn,Nn,Vr;Fn=xe.map(function(er){return er.lab()}),Vr=xe.length-1,Nn=QE(Vr),Nt=function(er){var Jr=1-er,ni=[0,1,2].map(function(V){return Fn.reduce(function(W,ae,Ae){return W+Nn[Ae]*Math.pow(Jr,Vr-Ae)*Math.pow(er,Ae)*ae[V]},0)});return new kg(ni,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return Nt},B1=function(xe){var Re=Sb(xe);return Re.scale=function(){return AA(Re)},Re},Hf=R,Gu=function(xe,Re,Ve){if(!Gu[Ve])throw new Error("unknown blend mode "+Ve);return Gu[Ve](xe,Re)},Rg=function(xe){return function(Re,Ve){var We=Hf(Ve).rgb(),Nt=Hf(Re).rgb();return Hf.rgb(xe(We,Nt))}},wd=function(xe){return function(Re,Ve){var We=[];return We[0]=xe(Re[0],Ve[0]),We[1]=xe(Re[1],Ve[1]),We[2]=xe(Re[2],Ve[2]),We}},Ai=function(xe){return xe},wu=function(xe,Re){return xe*Re/255},D1=function(xe,Re){return xe>Re?Re:xe},jc=function(xe,Re){return xe>Re?xe:Re},Ws=function(xe,Re){return 255*(1-(1-xe/255)*(1-Re/255))},qE=function(xe,Re){return Re<128?2*xe*Re/255:255*(1-2*(1-xe/255)*(1-Re/255))},$1=function(xe,Re){return 255*(1-(1-Re/255)/(xe/255))},YE=function(xe,Re){return xe===255?255:(xe=255*(Re/255)/(1-xe/255),xe>255?255:xe)};Gu.normal=Rg(wd(Ai)),Gu.multiply=Rg(wd(wu)),Gu.screen=Rg(wd(Ws)),Gu.overlay=Rg(wd(qE)),Gu.darken=Rg(wd(D1)),Gu.lighten=Rg(wd(jc)),Gu.dodge=Rg(wd(YE)),Gu.burn=Rg(wd($1));for(var Rm=Gu,Xl=g.type,F1=g.clip_rgb,XC=g.TWOPI,Mg=Math.pow,Yv=Math.sin,wb=Math.cos,Ro=R,Jv=function(xe,Re,Ve,We,Nt){xe===void 0&&(xe=300),Re===void 0&&(Re=-1.5),Ve===void 0&&(Ve=1),We===void 0&&(We=1),Nt===void 0&&(Nt=[0,1]);var jt=0,bt;Xl(Nt)==="array"?bt=Nt[1]-Nt[0]:(bt=0,Nt=[Nt,Nt]);var Xt=function(cn){var Fn=XC*((xe+120)/360+Re*cn),Nn=Mg(Nt[0]+bt*cn,We),Vr=jt!==0?Ve[0]+cn*jt:Ve,er=Vr*Nn*(1-Nn)/2,Jr=wb(Fn),ni=Yv(Fn),V=Nn+er*(-.14861*Jr+1.78277*ni),W=Nn+er*(-.29227*Jr-.90649*ni),ae=Nn+er*(1.97294*Jr);return Ro(F1([V*255,W*255,ae*255,1]))};return Xt.start=function(cn){return cn==null?xe:(xe=cn,Xt)},Xt.rotations=function(cn){return cn==null?Re:(Re=cn,Xt)},Xt.gamma=function(cn){return cn==null?We:(We=cn,Xt)},Xt.hue=function(cn){return cn==null?Ve:(Ve=cn,Xl(Ve)==="array"?(jt=Ve[1]-Ve[0],jt===0&&(Ve=Ve[1])):jt=0,Xt)},Xt.lightness=function(cn){return cn==null?Nt:(Xl(cn)==="array"?(Nt=cn,bt=cn[1]-cn[0]):(Nt=[cn,cn],bt=0),Xt)},Xt.scale=function(){return Ro.scale(Xt)},Xt.hue(Ve),Xt},Zd=_,Ll="0123456789abcdef",Uf=Math.floor,Ng=Math.random,ec=function(){for(var xe="#",Re=0;Re<6;Re++)xe+=Ll.charAt(Uf(Ng()*16));return new Zd(xe,"hex")},_b=u,ns=Math.log,j1=Math.pow,$O=Math.floor,UN=Math.abs,ek=function(xe,Re){Re===void 0&&(Re=null);var Ve={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return _b(xe)==="object"&&(xe=Object.values(xe)),xe.forEach(function(We){Re&&_b(We)==="object"&&(We=We[Re]),We!=null&&!isNaN(We)&&(Ve.values.push(We),Ve.sum+=We,We<Ve.min&&(Ve.min=We),We>Ve.max&&(Ve.max=We),Ve.count+=1)}),Ve.domain=[Ve.min,Ve.max],Ve.limits=function(We,Nt){return Zv(Ve,We,Nt)},Ve},Zv=function(xe,Re,Ve){Re===void 0&&(Re="equal"),Ve===void 0&&(Ve=7),_b(xe)=="array"&&(xe=ek(xe));var We=xe.min,Nt=xe.max,jt=xe.values.sort(function(ik,jO){return ik-jO});if(Ve===1)return[We,Nt];var bt=[];if(Re.substr(0,1)==="c"&&(bt.push(We),bt.push(Nt)),Re.substr(0,1)==="e"){bt.push(We);for(var Xt=1;Xt<Ve;Xt++)bt.push(We+Xt/Ve*(Nt-We));bt.push(Nt)}else if(Re.substr(0,1)==="l"){if(We<=0)throw new Error("Logarithmic scales are only possible for values > 0");var cn=Math.LOG10E*ns(We),Fn=Math.LOG10E*ns(Nt);bt.push(We);for(var Nn=1;Nn<Ve;Nn++)bt.push(j1(10,cn+Nn/Ve*(Fn-cn)));bt.push(Nt)}else if(Re.substr(0,1)==="q"){bt.push(We);for(var Vr=1;Vr<Ve;Vr++){var er=(jt.length-1)*Vr/Ve,Jr=$O(er);if(Jr===er)bt.push(jt[Jr]);else{var ni=er-Jr;bt.push(jt[Jr]*(1-ni)+jt[Jr+1]*ni)}}bt.push(Nt)}else if(Re.substr(0,1)==="k"){var V,W=jt.length,ae=new Array(W),Ae=new Array(Ve),we=!0,He=0,at=null;at=[],at.push(We);for(var Et=1;Et<Ve;Et++)at.push(We+Et/Ve*(Nt-We));for(at.push(Nt);we;){for(var Tt=0;Tt<Ve;Tt++)Ae[Tt]=0;for(var wn=0;wn<W;wn++)for(var hr=jt[wn],rr=Number.MAX_VALUE,xr=void 0,ui=0;ui<Ve;ui++){var Ji=UN(at[ui]-hr);Ji<rr&&(rr=Ji,xr=ui),Ae[xr]++,ae[wn]=xr}for(var Za=new Array(Ve),Vt=0;Vt<Ve;Vt++)Za[Vt]=null;for(var Lt=0;Lt<W;Lt++)V=ae[Lt],Za[V]===null?Za[V]=jt[Lt]:Za[V]+=jt[Lt];for(var bn=0;bn<Ve;bn++)Za[bn]*=1/Ae[bn];we=!1;for(var Fr=0;Fr<Ve;Fr++)if(Za[Fr]!==at[Fr]){we=!0;break}at=Za,He++,He>200&&(we=!1)}for(var wi={},ys=0;ys<Ve;ys++)wi[ys]=[];for(var Sa=0;Sa<W;Sa++)V=ae[Sa],wi[V].push(jt[Sa]);for(var po=[],pl=0;pl<Ve;pl++)po.push(wi[pl][0]),po.push(wi[pl][wi[pl].length-1]);po=po.sort(function(ik,jO){return ik-jO}),bt.push(po[0]);for(var Ei=1;Ei<po.length;Ei+=2){var ks=po[Ei];!isNaN(ks)&&bt.indexOf(ks)===-1&&bt.push(ks)}}return bt},__={analyze:ek,limits:Zv},Rh=_,T_=function(xe,Re){xe=new Rh(xe),Re=new Rh(Re);var Ve=xe.luminance(),We=Re.luminance();return Ve>We?(Ve+.05)/(We+.05):(We+.05)/(Ve+.05)},tk=_,zf=Math.sqrt,fl=Math.pow,FO=Math.min,zN=Math.max,H1=Math.atan2,Ig=Math.abs,C_=Math.cos,GN=Math.sin,Xv=Math.exp,k_=Math.PI,Tb=function(xe,Re,Ve,We,Nt){Ve===void 0&&(Ve=1),We===void 0&&(We=1),Nt===void 0&&(Nt=1);var jt=function(ks){return 360*ks/(2*k_)},bt=function(ks){return 2*k_*ks/360};xe=new tk(xe),Re=new tk(Re);var Xt=Array.from(xe.lab()),cn=Xt[0],Fn=Xt[1],Nn=Xt[2],Vr=Array.from(Re.lab()),er=Vr[0],Jr=Vr[1],ni=Vr[2],V=(cn+er)/2,W=zf(fl(Fn,2)+fl(Nn,2)),ae=zf(fl(Jr,2)+fl(ni,2)),Ae=(W+ae)/2,we=.5*(1-zf(fl(Ae,7)/(fl(Ae,7)+fl(25,7)))),He=Fn*(1+we),at=Jr*(1+we),Et=zf(fl(He,2)+fl(Nn,2)),Tt=zf(fl(at,2)+fl(ni,2)),wn=(Et+Tt)/2,hr=jt(H1(Nn,He)),rr=jt(H1(ni,at)),xr=hr>=0?hr:hr+360,ui=rr>=0?rr:rr+360,Ji=Ig(xr-ui)>180?(xr+ui+360)/2:(xr+ui)/2,Za=1-.17*C_(bt(Ji-30))+.24*C_(bt(2*Ji))+.32*C_(bt(3*Ji+6))-.2*C_(bt(4*Ji-63)),Vt=ui-xr;Vt=Ig(Vt)<=180?Vt:ui<=xr?Vt+360:Vt-360,Vt=2*zf(Et*Tt)*GN(bt(Vt)/2);var Lt=er-cn,bn=Tt-Et,Fr=1+.015*fl(V-50,2)/zf(20+fl(V-50,2)),wi=1+.045*wn,ys=1+.015*wn*Za,Sa=30*Xv(-fl((Ji-275)/25,2)),po=2*zf(fl(wn,7)/(fl(wn,7)+fl(25,7))),pl=-po*GN(2*bt(Sa)),Ei=zf(fl(Lt/(Ve*Fr),2)+fl(bn/(We*wi),2)+fl(Vt/(Nt*ys),2)+pl*(bn/(We*wi))*(Vt/(Nt*ys)));return zN(0,FO(100,Ei))},VN=_,Cb=function(xe,Re,Ve){Ve===void 0&&(Ve="lab"),xe=new VN(xe),Re=new VN(Re);var We=xe.get(Ve),Nt=Re.get(Ve),jt=0;for(var bt in We){var Xt=(We[bt]||0)-(Nt[bt]||0);jt+=Xt*Xt}return Math.sqrt(jt)},Pg=_,nk=function(){for(var xe=[],Re=arguments.length;Re--;)xe[Re]=arguments[Re];try{return new(Function.prototype.bind.apply(Pg,[null].concat(xe))),!0}catch{return!1}},R_=R,e0=WE,M_={cool:function(){return e0([R_.hsl(180,1,.9),R_.hsl(250,.7,.4)])},hot:function(){return e0(["#000","#f00","#ff0","#fff"]).mode("rgb")}},yA={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},kb=0,N_=Object.keys(yA);kb<N_.length;kb+=1){var JE=N_[kb];yA[JE.toLowerCase()]=yA[JE]}var I_=yA,_c=R;_c.average=Aa,_c.bezier=B1,_c.blend=Rm,_c.cubehelix=Jv,_c.mix=_c.interpolate=xb,_c.random=ec,_c.scale=WE,_c.analyze=__.analyze,_c.contrast=T_,_c.deltaE=Tb,_c.distance=Cb,_c.limits=__.limits,_c.valid=nk,_c.scales=M_,_c.colors=Th,_c.brewer=I_;var rk=_c;return rk})})(hsn);var Oyi=hsn.exports;const bP=Li(Oyi);function Lyi(t){return t.type==="continuous-scale"}function Byi(t){return t.type==="matrix"}const Dyi=t=>!!bP.valid(t);function Bne(t){const{value:e}=t;return Dyi(e)?bP(e).hex():""}const $yi={h:[0,360],s:[0,1],l:[0,1]},Fyi={h:[0,360],s:[0,1],v:[0,1]},jyi={h:[0,360],s:[0,1],i:[0,1]},Hyi={r:[0,255],g:[0,255],b:[0,255]},Uyi={r:[0,255],g:[0,255],b:[0,255],a:[0,1]},zyi={l:[0,100],a:[-86.185,98.254],b:[-107.863,94.482]},Gyi={l:[0,100],c:[0,100],h:[0,360]},Vyi={c:[0,1],m:[0,1],y:[0,1],k:[0,1]},Kyi={lab:zyi,lch:Gyi,rgb:Hyi,rgba:Uyi,hsl:$yi,hsv:Fyi,hsi:jyi,cmyk:Vyi},Wyi=t=>!!bP.valid(t),Tze=t=>{const{value:e}=t;return Wyi(e)?bP(e):bP("#000")},F0=(t,e=t.model)=>{const n=Tze(t);return n?n[e]():[0,0,0]},M0=(t,e=t.length===4?"rgba":"rgb")=>{const n={};if(t.length===1){const[r]=t;for(let a=0;a<e.length;a+=1)n[e[a]]=r}else for(let r=0;r<e.length;r+=1)n[e[r]]=t[r];return{model:e,value:n}};function BAe(t){const[e,n,r]=F0(t,"rgb");return Math.round(.299*e+.587*n+.114*r)}function fsn(t,e=1){return e===1?{model:"rgb",value:{r:t,g:t,b:t}}:{model:"rgba",value:{r:t,g:t,b:t,a:e}}}function Dnt(t){if(/^(#|0x)?[0-9a-fA-F]{3}$/.test(t)||/^(#|0x)?[0-9a-fA-F]{6}$/.test(t)){const e=bP(t).rgb();return M0(e,"rgb")}if(/^(#|0x)?[0-9a-fA-F]{4}$/.test(t)||/^(#|0x)?[0-9a-fA-F]{8}$/.test(t)){const e=bP(t).rgba();return M0(e,"rgba")}return{model:"rgb",value:{r:0,g:0,b:0}}}const psn=(t,e)=>t*e/255,msn=(t,e)=>t+e-t*e/255,ySt=(t,e)=>t<128?psn(2*t,e):msn(2*t-255,e),Qyi={normal:t=>t,darken:(t,e)=>Math.min(t,e),multiply:psn,colorBurn:(t,e)=>t===0?0:Math.max(0,255*(1-(255-e)/t)),lighten:(t,e)=>Math.max(t,e),screen:msn,colorDodge:(t,e)=>t===255?255:Math.min(255,255*(e/(255-t))),overlay:(t,e)=>ySt(e,t),softLight:(t,e)=>{if(t<128)return e-(1-2*t/255)*e*(1-e/255);const n=e<64?((16*(e/255)-12)*(e/255)+4)*(e/255):Math.sqrt(e/255);return e+255*(2*t/255-1)*(n-e/255)},hardLight:ySt,difference:(t,e)=>Math.abs(t-e),exclusion:(t,e)=>t+e-2*t*e/255,linearBurn:(t,e)=>Math.max(t+e-255,0),linearDodge:(t,e)=>Math.min(255,t+e),linearLight:(t,e)=>Math.max(e+2*t-255,0),vividLight:(t,e)=>t<128?255*(1-(1-e/255)/(2*t/255)):255*(e/2/(255-t)),pinLight:(t,e)=>t<128?Math.min(e,2*t):Math.max(e,2*t-255)},JF=t=>.3*t[0]+.58*t[1]+.11*t[2],qyi=t=>{const e=JF(t),n=Math.min(...t),r=Math.max(...t);let a=[...t];return n<0&&(a=a.map(o=>e+(o-e)*e/(e-n))),r>255&&(a=a.map(o=>e+(o-e)*(255-e)/(r-e))),a},nue=(t,e)=>{const n=e-JF(t);return qyi(t.map(r=>r+n))},bSt=t=>Math.max(...t)-Math.min(...t),xSt=(t,e)=>{const n=t.map((l,c)=>({value:l,index:c}));n.sort((l,c)=>l.value-c.value);const r=n[0].index,a=n[1].index,o=n[2].index,s=[...t];return s[o]>s[r]?(s[a]=(s[a]-s[r])*e/(s[o]-s[r]),s[o]=e):(s[a]=0,s[o]=0),s[r]=0,s},Yyi={hue:(t,e)=>nue(xSt(t,bSt(e)),JF(e)),saturation:(t,e)=>nue(xSt(e,bSt(t)),JF(e)),color:(t,e)=>nue(t,JF(e)),luminosity:(t,e)=>nue(e,JF(t))},ESt=(t,e,n="normal")=>{const[r,a,o,s]=F0(t,"rgba"),[l,c,u,d]=F0(e,"rgba"),h=[r,a,o],f=[l,c,u];let p;if(Pyi.includes(n)){const y=Qyi[n];p=h.map((S,x)=>Math.floor(y(S,f[x])))}else p=Yyi[n](h,f);const m=s+d*(1-s),g=Math.round((s*(1-d)*r+s*d*p[0]+(1-s)*d*l)/m),v=Math.round((s*(1-d)*a+s*d*p[1]+(1-s)*d*c)/m),A=Math.round((s*(1-d)*o+s*d*p[2]+(1-s)*d*u)/m);return m===1?{model:"rgb",value:{r:g,g:v,b:A}}:{model:"rgba",value:{r:g,g:v,b:A,a:m}}},xP=(t=1,e=0)=>{const n=Math.min(t,e),r=Math.max(t,e);return n+Math.random()*(r-n)},_2=(t=1,e=0)=>{const n=Math.ceil(Math.min(t,e)),r=Math.floor(Math.max(t,e));return Math.floor(n+Math.random()*(r-n+1))},VU=t=>{if(t&&typeof t=="object"){if(Array.isArray(t))return t.map(o=>VU(o));const n={};return Object.keys(t).forEach(a=>{n[a]=VU(t[a])}),n}return t},DAe=(t,e)=>{let n=(t+e)%360;return n<0?n+=360:n>=360&&(n-=360),n};function Jyi(t){return t*(180/Math.PI)}function T$(t){return t*(Math.PI/180)}var gsn={},Cze=[],kze=function(t){return typeof t>"u"},COe=/\s*(\.\d+|\d+(?:\.\d+)?)(%)?\s*/,rue=/\s*(\.\d+|100|\d?\d(?:\.\d+)?)%\s*/,Zyi=/\s*(\.\d+|\d+(?:\.\d+)?)\s*/,Xyi=new RegExp("^(rgb|hsl|hsv)a?\\("+COe.source+","+COe.source+","+COe.source+"(?:,"+Zyi.source+")?\\)$","i");function Ic(t){if(Array.isArray(t)){if(typeof t[0]=="string"&&typeof Ic[t[0]]=="function")return new Ic[t[0]](t.slice(1,t.length));if(t.length===4)return new Ic.RGB(t[0]/255,t[1]/255,t[2]/255,t[3]/255)}else if(typeof t=="string"){var e=t.toLowerCase();Ic.namedColors[e]&&(t="#"+Ic.namedColors[e]),e==="transparent"&&(t="rgba(0,0,0,0)");var n=t.match(Xyi);if(n){var r=n[1].toUpperCase(),a=kze(n[8])?n[8]:parseFloat(n[8]),o=r[0]==="H",s=n[3]?100:o?360:255,l=n[5]||o?100:255,c=n[7]||o?100:255;if(kze(Ic[r]))throw new Error("color."+r+" is not installed.");return new Ic[r](parseFloat(n[2])/s,parseFloat(n[4])/l,parseFloat(n[6])/c,a)}t.length<6&&(t=t.replace(/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,"$1$1$2$2$3$3"));var u=t.match(/^#?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])$/i);if(u)return new Ic.RGB(parseInt(u[1],16)/255,parseInt(u[2],16)/255,parseInt(u[3],16)/255);if(Ic.CMYK){var d=t.match(new RegExp("^cmyk\\("+rue.source+","+rue.source+","+rue.source+","+rue.source+"\\)$","i"));if(d)return new Ic.CMYK(parseFloat(d[1])/100,parseFloat(d[2])/100,parseFloat(d[3])/100,parseFloat(d[4])/100)}}else if(typeof t=="object"&&t.isColor)return t;return!1}Ic.namedColors={};Ic.installColorSpace=function(t,e,n){Ic[t]=function(l){var c=Array.isArray(l)?l:arguments;e.forEach(function(u,d){var h=c[d];if(u==="alpha")this._alpha=isNaN(h)||h>1?1:h<0?0:h;else{if(isNaN(h))throw new Error("["+t+"]: Invalid color: ("+e.join(",")+")");u==="hue"?this._hue=h<0?h-Math.floor(h):h%1:this["_"+u]=h<0?0:h>1?1:h}},this)},Ic[t].propertyNames=e;var r=Ic[t].prototype;["valueOf","hex","hexa","css","cssa"].forEach(function(l){r[l]=r[l]||(t==="RGB"?r.hex:function(){return this.rgb()[l]()})}),r.isColor=!0,r.equals=function(l,c){kze(c)&&(c=1e-10),l=l[t.toLowerCase()]();for(var u=0;u<e.length;u=u+1)if(Math.abs(this["_"+e[u]]-l["_"+e[u]])>c)return!1;return!0},r.toJSON=function(){return[t].concat(e.map(function(l){return this["_"+l]},this))};for(var a in n)if(n.hasOwnProperty(a)){var o=a.match(/^from(.*)$/);o?Ic[o[1].toUpperCase()].prototype[t.toLowerCase()]=n[a]:r[a]=n[a]}r[t.toLowerCase()]=function(){return this},r.toString=function(){return"["+t+" "+e.map(function(l){return this["_"+l]},this).join(", ")+"]"},e.forEach(function(l){var c=l==="black"?"k":l.charAt(0);r[l]=r[c]=function(u,d){return typeof u>"u"?this["_"+l]:d?new this.constructor(e.map(function(h){return this["_"+h]+(l===h?u:0)},this)):new this.constructor(e.map(function(h){return l===h?u:this["_"+h]},this))}});function s(l,c){var u={};u[c.toLowerCase()]=function(){return this.rgb()[c.toLowerCase()]()},Ic[c].propertyNames.forEach(function(h){var f=h==="black"?"k":h.charAt(0);u[h]=u[f]=function(p,m){return this[c.toLowerCase()]()[h](p,m)}});for(var d in u)u.hasOwnProperty(d)&&Ic[l].prototype[d]===void 0&&(Ic[l].prototype[d]=u[d])}return Cze.forEach(function(l){s(t,l),s(l,t)}),Cze.push(t),Ic};Ic.pluginList=[];Ic.use=function(t){return Ic.pluginList.indexOf(t)===-1&&(this.pluginList.push(t),t(Ic)),Ic};Ic.installMethod=function(t,e){return Cze.forEach(function(n){Ic[n].prototype[t]=e}),this};Ic.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var t=(Math.round(255*this._red)*65536+Math.round(255*this._green)*256+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-t.length)+t},hexa:function(){var t=Math.round(this._alpha*255).toString(16);return"#"+"00".substr(0,2-t.length)+t+this.hex().substr(1,6)},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}});var ebi=Ic,vsn=function(e){e.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var n=function(s){return s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92},r=n(this._red),a=n(this._green),o=n(this._blue);return new e.XYZ(r*.4124564+a*.3575761+o*.1804375,r*.2126729+a*.7151522+o*.072175,r*.0193339+a*.119192+o*.9503041,this._alpha)},rgb:function(){var n=this._x,r=this._y,a=this._z,o=function(s){return s>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s};return new e.RGB(o(n*3.2404542+r*-1.5371385+a*-.4985314),o(n*-.969266+r*1.8760108+a*.041556),o(n*.0556434+r*-.2040259+a*1.0572252),this._alpha)},lab:function(){var n=function(s){return s>.008856?Math.pow(s,.3333333333333333):7.787037*s+.13793103448275862},r=n(this._x/95.047),a=n(this._y/100),o=n(this._z/108.883);return new e.LAB(116*a-16,500*(r-a),200*(a-o),this._alpha)}})},tbi=function(e){e.use(vsn),e.installColorSpace("LAB",["l","a","b","alpha"],{fromRgb:function(){return this.xyz().lab()},rgb:function(){return this.xyz().rgb()},xyz:function(){var n=function(s){var l=Math.pow(s,3);return l>.008856?l:(s-.13793103448275862)/7.87},r=(this._l+16)/116,a=this._a/500+r,o=r-this._b/200;return new e.XYZ(n(a)*95.047,n(r)*100,n(o)*108.883,this._alpha)}})},Asn=function(e){e.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var n=this._hue,r=this._saturation,a=this._value,o=Math.min(5,Math.floor(n*6)),s=n*6-o,l=a*(1-r),c=a*(1-s*r),u=a*(1-(1-s)*r),d,h,f;switch(o){case 0:d=a,h=u,f=l;break;case 1:d=c,h=a,f=l;break;case 2:d=l,h=a,f=u;break;case 3:d=l,h=c,f=a;break;case 4:d=u,h=l,f=a;break;case 5:d=a,h=l,f=c;break}return new e.RGB(d,h,f,this._alpha)},hsl:function(){var n=(2-this._saturation)*this._value,r=this._saturation*this._value,a=n<=1?n:2-n,o;return a<1e-9?o=0:o=r/a,new e.HSL(this._hue,o,n/2,this._alpha)},fromRgb:function(){var n=this._red,r=this._green,a=this._blue,o=Math.max(n,r,a),s=Math.min(n,r,a),l=o-s,c,u=o===0?0:l/o,d=o;if(l===0)c=0;else switch(o){case n:c=(r-a)/l/6+(r<a?1:0);break;case r:c=(a-n)/l/6+1/3;break;case a:c=(n-r)/l/6+2/3;break}return new e.HSV(c,u,d,this._alpha)}})},YG=function(e){e.use(Asn),e.installColorSpace("HSL",["hue","saturation","lightness","alpha"],{hsv:function(){var n=this._lightness*2,r=this._saturation*(n<=1?n:2-n),a;return n+r<1e-9?a=0:a=2*r/(n+r),new e.HSV(this._hue,a,(n+r)/2,this._alpha)},rgb:function(){return this.hsv().rgb()},fromRgb:function(){return this.hsv().hsl()}})},nbi=function(e){e.installColorSpace("CMYK",["cyan","magenta","yellow","black","alpha"],{rgb:function(){return new e.RGB(1-this._cyan*(1-this._black)-this._black,1-this._magenta*(1-this._black)-this._black,1-this._yellow*(1-this._black)-this._black,this._alpha)},fromRgb:function(){var n=this._red,r=this._green,a=this._blue,o=1-n,s=1-r,l=1-a,c=1;return n||r||a?(c=Math.min(o,Math.min(s,l)),o=(o-c)/(1-c),s=(s-c)/(1-c),l=(l-c)/(1-c)):c=1,new e.CMYK(o,s,l,c,this._alpha)}})},rbi=function(e){e.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}},ibi=function(e){e.installMethod("clearer",function(n){return this.alpha(isNaN(n)?-.1:-n,!0)})},ysn=function(e){function n(r){return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}e.installMethod("luminance",function(){var r=this.rgb();return .2126*n(r._red)+.7152*n(r._green)+.0722*n(r._blue)})},abi=function(e){e.use(ysn),e.installMethod("contrast",function(n){var r=this.luminance(),a=n.luminance();return r>a?(r+.05)/(a+.05):(a+.05)/(r+.05)})},obi=function(e){e.use(YG),e.installMethod("darken",function(n){return this.lightness(isNaN(n)?-.1:-n,!0)})},sbi=function(e){e.use(YG),e.installMethod("desaturate",function(n){return this.saturation(isNaN(n)?-.1:-n,!0)})},lbi=function(e){function n(){var r=this.rgb(),a=r._red*.3+r._green*.59+r._blue*.11;return new e.RGB(a,a,a,r._alpha)}e.installMethod("greyscale",n).installMethod("grayscale",n)},bsn=function(e){e.installMethod("isDark",function(){var n=this.rgb(),r=(n._red*255*299+n._green*255*587+n._blue*255*114)/1e3;return r<128})},cbi=function(e){e.use(bsn),e.installMethod("isLight",function(){return!this.isDark()})},ubi=function(e){e.use(YG),e.installMethod("lighten",function(n){return this.lightness(isNaN(n)?.1:n,!0)})},dbi=function(e){e.installMethod("mix",function(n,r){n=e(n).rgb(),r=1-(isNaN(r)?.5:r);var a=r*2-1,o=this._alpha-n._alpha,s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s,c=this.rgb();return new e.RGB(c._red*s+n._red*l,c._green*s+n._green*l,c._blue*s+n._blue*l,c._alpha*r+n._alpha*(1-r))})},hbi=function(e){e.installMethod("negate",function(){var n=this.rgb();return new e.RGB(1-n._red,1-n._green,1-n._blue,this._alpha)})},fbi=function(e){e.installMethod("opaquer",function(n){return this.alpha(isNaN(n)?.1:n,!0)})},pbi=function(e){e.use(YG),e.installMethod("rotate",function(n){return this.hue((n||0)/360,!0)})},mbi=function(e){e.use(YG),e.installMethod("saturate",function(n){return this.saturation(isNaN(n)?.1:n,!0)})},gbi=function(e){e.installMethod("toAlpha",function(n){var r=this.rgb(),a=n(n).rgb(),o=1e-10,s=new n.RGB(0,0,0,r._alpha),l=["_red","_green","_blue"];return l.forEach(function(c){r[c]<o?s[c]=r[c]:r[c]>a[c]?s[c]=(r[c]-a[c])/(1-a[c]):r[c]>a[c]?s[c]=(a[c]-r[c])/a[c]:s[c]=0}),s._red>s._green?s._red>s._blue?r._alpha=s._red:r._alpha=s._blue:s._green>s._blue?r._alpha=s._green:r._alpha=s._blue,r._alpha<o||(l.forEach(function(c){r[c]=(r[c]-a[c])/r._alpha+a[c]}),r._alpha*=s._alpha),r})},vbi=ebi.use(vsn).use(tbi).use(Asn).use(YG).use(nbi).use(rbi).use(ibi).use(abi).use(obi).use(sbi).use(lbi).use(bsn).use(cbi).use(ubi).use(ysn).use(dbi).use(hbi).use(fbi).use(pbi).use(mbi).use(gbi),xsn={},kOe=2.2,Abi=[3.240712470389558,-.969259258688888,.05563600315398933,-1.5372626602963142,1.875996969313966,-.2039948802843549,-.49857440415943116,.041556132211625726,1.0570636917433989],ybi=[.41242371206635076,.21265606784927693,.019331987577444885,.3575793401363035,.715157818248362,.11919267420354762,.1804662232369621,.0721864539171564,.9504491124870351],bbi={protan:{x:.7465,y:.2535,m:1.273463,yi:-.073894},deutan:{x:1.4,y:-.4,m:.968437,yi:.003331},tritan:{x:.1748,y:0,m:.062921,yi:.292119},custom:{x:.735,y:.265,m:-1.059259,yi:1.026914}},xbi=function(t){var e=ybi,n={},r=t.R/255,a=t.G/255,o=t.B/255;return r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,n.X=r*e[0]+a*e[3]+o*e[6],n.Y=r*e[1]+a*e[4]+o*e[7],n.Z=r*e[2]+a*e[5]+o*e[8],n},Ebi=function(t){var e=t.X+t.Y+t.Z;return e===0?{x:0,y:0,Y:t.Y}:{x:t.X/e,y:t.Y/e,Y:t.Y}};xsn.Blind=function(t,e,n){var r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_,C,R;return e==="achroma"?(r=t.R*.212656+t.G*.715158+t.B*.072186,r={R:r,G:r,B:r},n&&(a=1.75,o=a+1,r.R=(a*r.R+t.R)/o,r.G=(a*r.G+t.G)/o,r.B=(a*r.B+t.B)/o),r):(s=bbi[e],l=Ebi(xbi(t)),c=(l.y-s.y)/(l.x-s.x),u=l.y-l.x*c,d=(s.yi-u)/(c-s.m),h=c*d+u,p=0,r={},r.X=d*l.Y/h,r.Y=l.Y,r.Z=(1-(d+h))*l.Y/h,w=.312713*l.Y/.329016,_=.358271*l.Y/.329016,f=w-r.X,m=_-r.Z,C=Abi,g=f*C[0]+p*C[3]+m*C[6],v=f*C[1]+p*C[4]+m*C[7],A=f*C[2]+p*C[5]+m*C[8],r.R=r.X*C[0]+r.Y*C[3]+r.Z*C[6],r.G=r.X*C[1]+r.Y*C[4]+r.Z*C[7],r.B=r.X*C[2]+r.Y*C[5]+r.Z*C[8],y=((r.R<0?0:1)-r.R)/g,S=((r.G<0?0:1)-r.G)/v,x=((r.B<0?0:1)-r.B)/A,y=y>1||y<0?0:y,S=S>1||S<0?0:S,x=x>1||x<0?0:x,R=y>S?y:S,x>R&&(R=x),r.R+=R*g,r.G+=R*v,r.B+=R*A,r.R=255*(r.R<=0?0:r.R>=1?1:Math.pow(r.R,1/kOe)),r.G=255*(r.G<=0?0:r.G>=1?1:Math.pow(r.G,1/kOe)),r.B=255*(r.B<=0?0:r.B>=1?1:Math.pow(r.B,1/kOe)),n&&(a=1.75,o=a+1,r.R=(a*r.R+t.R)/o,r.G=(a*r.G+t.G)/o,r.B=(a*r.B+t.B)/o),r)};(function(t){var e=vbi,n=xsn.Blind,r={protanomaly:{type:"protan",anomalize:!0},protanopia:{type:"protan"},deuteranomaly:{type:"deutan",anomalize:!0},deuteranopia:{type:"deutan"},tritanomaly:{type:"tritan",anomalize:!0},tritanopia:{type:"tritan"},achromatomaly:{type:"achroma",anomalize:!0},achromatopsia:{type:"achroma"}},a=function(l){return Math.round(l*255)},o=function(l){return function(c,u){var d=e(c);if(!d)return u?{R:0,G:0,B:0}:"#000000";var h=new n({R:a(d.red()||0),G:a(d.green()||0),B:a(d.blue()||0)},r[l].type,r[l].anomalize);return h.R=h.R||0,h.G=h.G||0,h.B=h.B||0,u?(delete h.X,delete h.Y,delete h.Z,h):new e.RGB(h.R%256/255,h.G%256/255,h.B%256/255,1).hex()}};for(var s in r)t[s]=o(s)})(gsn);const Sbi=Li(gsn),wbi=(t,e="normal")=>{if(e==="normal")return{...t};const n=Bne(t),r=Sbi[e](n);return Dnt(r)},_bi=t=>{const e=BAe(t),[,,,n=1]=F0(t,"rgba");return fsn(e,n)};function Tbi(t,e){const[,n,r]=F0(e,"lab"),[,,,a=1]=F0(e,"rgba"),o=t*100;let s=Math.round(o),l=BAe(M0([s,n,r],"lab")),c=25;for(;Math.round(o)!==Math.round(l/255*100)&&c>0;)o>l/255*100?s+=1:s-=1,c-=1,l=BAe(M0([s,n,r],"lab"));Math.round(o)<Math.round(l/255*100)&&(s-=1);let u;if(a===1)u=M0([s,n,r],"lab");else{const d=F0(M0([s,n,r],"lab"),"rgb");u=M0([...d,a],"rgba")}return{...e,...u}}const Esn=(t,e="normal")=>e==="grayscale"?_bi(t):wbi(t,e),Rze=(t,e,n=[_2(5,10),_2(90,95)])=>{const[r,a,o]=F0(t,"lab"),s=r<=15?r:n[0];let c=((r>=85?r:n[1])-s)/(e-1);const u=Math.ceil((r-s)/c);return c=u===0?c:(r-s)/u,new Array(e).fill(0).map((d,h)=>M0([c*h+s,a,o],"lab"))},Ssn=t=>{const{count:e,color:n,tendency:r}=t,a=r==="tint",o=Rze(n,e);return{name:"monochromatic",semantic:null,type:"discrete-scale",colors:a?o:o.reverse()}},Cbi=t=>{const{count:e,color:n,tendency:r}=t,a=r==="tint",[o,s,l]=F0(n,"hsv"),c=Math.floor(e/2);let u=60/(e-1);o>=60&&o<=240&&(u=-u);const d=(s-.1)/3/(e-c-1),h=(l-.4)/3/c,f=new Array(e).fill(0).map((m,g)=>{const v=DAe(o,u*(g-c)),A=g<=c?Math.min(s+d*(c-g),1):s+3*d*(c-g),y=g<=c?l-3*h*(c-g):Math.min(l-h*(c-g),1);return M0([v,A,y],"hsv")});return{name:"analogous",semantic:null,type:"discrete-scale",colors:a?f:f.reverse()}},kbi={model:"rgb",value:{r:0,g:0,b:0}},Rbi={model:"rgb",value:{r:255,g:255,b:255}},Mbi=t=>{const{tendency:e}=t,n={...t,color:e==="tint"?kbi:Rbi};return{...Ssn(n),name:"achromatic"}},Nbi=t=>{const{count:e,color:n}=t,[r,a,o]=F0(n,"hsv"),s=M0([DAe(r,180),a,o],"hsv"),l=_2(80,90),c=_2(15,25),u=Math.floor(e/2),d=Rze(n,u,[c,l]),h=Rze(s,u,[c,l]).reverse();let f;if(e%2===1){const m=M0([(DAe(r,180)+r)/2,xP(.05,.1),xP(.9,.95)],"hsv");f=[...d,m,...h]}else f=[...d,...h];return{name:"complementary",semantic:null,type:"discrete-scale",colors:f}},SSt=(t,e,n="lab")=>bP.distance(Tze(t),Tze(e),n),wSt=(t,e)=>{const n=Jyi(Math.atan2(t,e));return n>=0?n:n+360},Ibi=(t,e)=>{const[o,s,l]=F0(t,"lab"),[c,u,d]=F0(e,"lab"),h=Math.sqrt(s**2+l**2),f=Math.sqrt(u**2+d**2),p=(h+f)/2,m=.5*(1-Math.sqrt(p**7/(p**7+25**7))),g=(1+m)*s,v=(1+m)*u,A=Math.sqrt(g**2+l**2),y=Math.sqrt(v**2+d**2),S=wSt(l,g),x=wSt(d,v),w=c-o,_=y-A;let C;Math.abs(x-S)<=180?C=x-S:x-S<-180?C=x-S+360:C=x-S-360;const R=2*Math.sqrt(A*y)*Math.sin(T$(C)/2);let k;Math.abs(S-x)<=180?k=(S+x)/2:Math.abs(S-x)>180&&S+x<360?k=(S+x+360)/2:k=(S+x-360)/2;const P=(o+c)/2,N=(A+y)/2,L=1-.17*Math.cos(T$(k-30))+.24*Math.cos(T$(2*k))+.32*Math.cos(T$(3*k+6))-.2*Math.cos(T$(4*k-63)),I=1+.015*(P-50)**2/Math.sqrt(20+(P-50)**2),b=1+.045*N,T=1+.015*N*L,M=-2*Math.sqrt(N**7/(N**7+25**7))*Math.sin(T$(60*Math.exp(-(((k-275)/25)**2))));return Math.sqrt((w/(I*1))**2+(_/(b*1))**2+(R/(T*1))**2+M*(_/(b*1))*(R/(T*1)))},ROe=t=>{const e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4},_St=t=>{const[e,n,r]=F0(t);return .2126*ROe(e)+.7152*ROe(n)+.0722*ROe(r)},Pbi=(t,e)=>{const n=_St(t),r=_St(e);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},Obi=(t,e,n={measure:"euclidean"})=>{const{measure:r="euclidean",backgroundColor:a=dsn}=n,o=ESt(t,a),s=ESt(e,a);switch(r){case"CIEDE2000":return Ibi(o,s);case"euclidean":return SSt(o,s,n.colorModel);case"contrastRatio":return Pbi(o,s);default:return SSt(o,s)}},TSt=50,Lbi=.9,Bbi=.1,Dbi=100,$bi=[.8,1.2],Fbi=t=>{const e=t.reduce((o,s)=>o+s);let n=0;const r=xP(e);let a=0;for(let o=0;o<t.length;o+=1)a+=t[o],r<a&&(n=+o);return n},jbi=t=>{let n=-1,r=0;for(let a=0;a<3;a+=1){const o=_2(t.length-1);t[o]>r&&(n=a,r=t[o])}return n},Hbi={rouletteWheel:Fbi,tournament:jbi},CSt=(t,e="tournament")=>Hbi[e](t),Ubi=(t,e)=>{const n=VU(t),r=VU(e);for(let a=1;a<t.length;a+=2)n[a]=e[a],r[a]=t[a];return[n,r]},kSt=(t,e,n,r)=>{const a=VU(t),o=e[_2(e.length-1)],s=_2(t[0].length-1);let l=a[o][s]*xP(...$bi),c=[15,240];n!=="grayscale"&&(c=Kyi[r][r.split("")[s]]);const[u,d]=c;return l<u?l=u:l>d&&(l=d),a[o][s]=l,a},MOe=(t,e,n,r,a,o)=>{let s;n==="grayscale"?s=t.map(([c])=>fsn(c)):s=t.map(c=>Esn(M0(c,r),n));let l=1/0;for(let c=0;c<s.length;c+=1)for(let u=c+1;u<s.length;u+=1)e[c]&&e[u]||(l=Math.min(l,Obi(s[c],s[u],{measure:a,backgroundColor:o})));return l},RSt=(t,e,n,r,a,o,s)=>{if(Math.round(MOe(t,e,n,a,o,s))>r)return t;const l=new Array(t.length).fill(0).map((p,m)=>m).filter((p,m)=>!e[m]);let c=new Array(TSt).fill(0).map(()=>kSt(t,l,n,a)),u=c.map(p=>MOe(p,e,n,a,o,s)),d=Math.max(...u),h=c[u.findIndex(p=>p===d)],f=1;for(;f<Dbi&&Math.round(d)<r;){const p=[h];for(let g=1;g<TSt;g+=2){const v=c[CSt(u)],A=c[CSt(u)];let y=xP()<Lbi?Ubi(v,A):[v,A];y=y.map(S=>xP()<Bbi?kSt(S,l,n,a):S),p.push(...y)}c=p,u=c.map(g=>MOe(g,e,n,a,o,s));const m=Math.max(...u);d=m,h=c[u.findIndex(g=>g===m)],f+=1}return h},zbi={euclidean:30,CIEDE2000:20,contrastRatio:4.5},Gbi={euclidean:291.48,CIEDE2000:100,contrastRatio:21},uoe=(t,e={})=>{const{locked:n=[],simulationType:r="normal",threshold:a,colorModel:o="hsv",colorDifferenceMeasure:s="euclidean",backgroundColor:l=dsn}=e;let c=a;if(c||(c=zbi[s]),r==="grayscale"){const d=Gbi[s];c=Math.min(c,d/t.colors.length)}const u=VU(t);if(!Byi(u)&&!Lyi(u))if(r==="grayscale"){const d=u.colors.map(f=>[BAe(f)]),h=RSt(d,n,r,c,o,s,l);u.colors.forEach((f,p)=>Object.assign(f,Tbi(h[p][0]/255,f)))}else{const d=u.colors.map(f=>F0(f,o)),h=RSt(d,n,r,c,o,s,l);u.colors.forEach((f,p)=>{Object.assign(f,M0(h[p],o))})}return u},Vbi=[.3,.9],Kbi=[.5,1],_we=(t,e,n,r=[])=>{const[a]=F0(t,"hsv"),o=new Array(n).fill(!1);let s=r.findIndex(c=>c&&c.model===t.model&&c.value===t.value)===-1;return{newColors:new Array(n).fill(0).map((c,u)=>{const d=r[u];return d?(o[u]=!0,d):s?(s=!1,o[u]=!0,t):M0([DAe(a,e*u),xP(...Vbi),xP(...Kbi)],"hsv")}),locked:o}},Wbi=t=>{const{count:e,color:n,colors:r}=t,a=180,{newColors:o,locked:s}=_we(n,a,e,r);return uoe({name:"tetradic",semantic:null,type:"categorical",colors:o},{locked:s})},Qbi=t=>{const{count:e,color:n,colors:r}=t,a=120,{newColors:o,locked:s}=_we(n,a,e,r);return uoe({name:"tetradic",semantic:null,type:"categorical",colors:o},{locked:s})},qbi=t=>{const{count:e,color:n,colors:r}=t,a=90,{newColors:o,locked:s}=_we(n,a,e,r);return uoe({name:"tetradic",semantic:null,type:"categorical",colors:o},{locked:s})},Ybi=t=>{const{count:e,color:n,colors:r}=t,a=360/e,{newColors:o,locked:s}=_we(n,a,e,r);return uoe({name:"tetradic",semantic:null,type:"categorical",colors:o},{locked:s})};function wsn(){const t=_2(255),e=_2(255),n=_2(255);return M0([t,e,n],"rgb")}const _sn=t=>{const{count:e,colors:n}=t,r=[],a={name:"random",semantic:null,type:"categorical",colors:new Array(e).fill(0).map((o,s)=>{const l=n[s];return l?(r[s]=!0,l):wsn()})};return uoe(a,{locked:r})},Jbi=["monochromatic"],Zbi=(t,e)=>{const{count:n=8,tendency:r="tint"}=e;let{colors:a=[],color:o}=e;return o||(o=a.find(s=>!!s&&!!s.model&&!!s.value)||wsn()),Jbi.includes(t)&&(a=[]),{color:o,colors:a,count:n,tendency:r}},Xbi={monochromatic:Ssn,analogous:Cbi,achromatic:Mbi,complementary:Nbi,"split-complementary":Wbi,triadic:Qbi,tetradic:qbi,polychromatic:Ybi,customized:_sn},Tsn=(t="monochromatic",e={})=>{const n=Zbi(t,e);try{return Xbi[t](n)}catch{return _sn(n)}};function U6(t){switch(t){case"Nominal":return"nominal";case"Ordinal":return"ordinal";case"Interval":return"quantitative";case"Time":return"temporal";case"Continuous":return"quantitative";case"Discrete":return"nominal";default:return"nominal"}}function Csn(t){var e=t.find(function(r){return yd(r.levelOfMeasurements,["Nominal"])}),n=t.find(function(r){return yd(r.levelOfMeasurements,["Interval"])});return[e,n]}function exi(t,e){var n=xa(Csn(e),2),r=n[0],a=n[1];if(!a||!r)return null;var o={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"arc"},encoding:{theta:{field:a.name,type:"quantitative"},color:{field:r.name,type:"nominal"}}}]};return o}function txi(t,e){var n=xa(Csn(e),2),r=n[0],a=n[1];if(!a||!r)return null;var o={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"arc",style:{innerRadius:20}},encoding:{theta:{field:a.name,type:"quantitative"},color:{field:r.name,type:"nominal"}}}]};return o}function ksn(t){var e=t.find(function(a){return cN(a.levelOfMeasurements,["Time","Ordinal"])}),n=t.find(function(a){return yd(a.levelOfMeasurements,["Interval"])}),r=t.find(function(a){return yd(a.levelOfMeasurements,["Nominal"])});return[e,n,r]}function nxi(t,e){var n=xa(ksn(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"line"},encoding:{x:{field:r.name,type:U6(r.levelOfMeasurements[0])},y:{field:a.name,type:"quantitative"}}}]};return o&&(s.layer[0].encoding.color={field:o.name,type:"nominal"}),s}function rxi(t,e){var n=xa(ksn(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"line",interpolate:"step"},encoding:{x:{field:r.name,type:U6(r.levelOfMeasurements[0])},y:{field:a.name,type:"quantitative"}}}]};return o&&(s.layer[0].encoding.color={field:o.name,type:"nominal"}),s}function Rsn(t){var e=t.find(function(a){return cN(a.levelOfMeasurements,["Time","Ordinal"])}),n=t.find(function(a){return yd(a.levelOfMeasurements,["Nominal"])}),r=t.find(function(a){return yd(a.levelOfMeasurements,["Interval"])});return[e,r,n]}function ixi(t,e){var n=e.find(function(o){return cN(o.levelOfMeasurements,["Time","Ordinal"])}),r=e.find(function(o){return yd(o.levelOfMeasurements,["Interval"])});if(!n||!r)return null;var a={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"area"},encoding:{x:{field:n.name,type:U6(n.levelOfMeasurements[0])},y:{field:r.name,type:"quantitative"}}}]};return a}function axi(t,e){var n=xa(Rsn(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"area"},encoding:{x:{field:r.name,type:U6(r.levelOfMeasurements[0])},y:{field:a.name,type:"quantitative"},color:{field:o.name,type:"nominal"}}}]};return s}function oxi(t,e){var n=xa(Rsn(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"area"},encoding:{x:{field:r.name,type:U6(r.levelOfMeasurements[0])},y:{field:a.name,type:"quantitative",stack:"normalize"},color:{field:o.name,type:"nominal"}}}]};return s}function $nt(t){var e=t.filter(function(s){return yd(s.levelOfMeasurements,["Nominal"])}),n=e.sort(qG),r=n[0],a=n[1],o=t.find(function(s){return yd(s.levelOfMeasurements,["Interval"])});return[o,r,a]}function sxi(t,e){var n=e.filter(function(c){return yd(c.levelOfMeasurements,["Nominal"])}),r=n.sort(qG),a=r[0],o=r[1],s=e.find(function(c){return yd(c.levelOfMeasurements,["Interval"])});if(!s||!a)return null;var l={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:s.name,type:"quantitative"},y:{field:a.name,type:"nominal"}}}]};return o&&(l.layer[0].encoding.color={field:o.name,type:"nominal"}),l}function lxi(t,e){var n=xa($nt(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:r.name,type:"quantitative"},y:{field:o.name,type:"nominal"},row:{field:a.name,type:"nominal"},color:{field:o.name,type:"nominal"}}}]};return s}function cxi(t,e){var n=xa($nt(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:r.name,type:"quantitative"},y:{field:a.name,type:"nominal"},color:{field:o.name,type:"nominal"}}}]};return s}function uxi(t,e){var n=xa($nt(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:r.name,type:"quantitative",stack:"normalize"},y:{field:a.name,type:"nominal"},color:{field:o.name,type:"nominal"}}}]};return s}function Fnt(t){var e,n,r,a,o=t.filter(function(d){return yd(d.levelOfMeasurements,["Nominal"])}),s=o.sort(qG),l,c;Fgi((r=s[1])===null||r===void 0?void 0:r.rawData,(a=s[0])===null||a===void 0?void 0:a.rawData)?(e=xa(s,2),c=e[0],l=e[1]):(n=xa(s,2),l=n[0],c=n[1]);var u=t.find(function(d){return yd(d.levelOfMeasurements,["Interval"])});return[l,u,c]}function dxi(t,e){var n=e.filter(function(c){return yd(c.levelOfMeasurements,["Nominal"])}),r=n.sort(qG),a=r[0],o=r[1],s=e.find(function(c){return yd(c.levelOfMeasurements,["Interval"])});if(!a||!s)return null;var l={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:a.name,type:"nominal"},y:{field:s.name,type:"quantitative"}}}]};return o&&(l.layer[0].encoding.color={field:o.name,type:"nominal"}),l}function hxi(t,e){var n=xa(Fnt(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:o.name,type:"nominal"},y:{field:a.name,type:"quantitative"},column:{field:r.name,type:"nominal"},color:{field:o.name,type:"nominal"}}}]};return s}function fxi(t,e){var n=xa(Fnt(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:r.name,type:"nominal"},y:{field:a.name,type:"quantitative",stack:"zero"},color:{field:o.name,type:"nominal"}}}]};return s}function pxi(t,e){var n=xa(Fnt(e),3),r=n[0],a=n[1],o=n[2];if(!r||!a||!o)return null;var s={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"bar"},encoding:{x:{field:r.name,type:"nominal"},y:{field:a.name,type:"quantitative",stack:"normalize"},color:{field:o.name,type:"nominal"}}}]};return s}function mxi(t,e){var n=e.filter(function(c){return yd(c.levelOfMeasurements,["Interval"])}),r=n.sort(qG),a=r[0],o=r[1],s=e.find(function(c){return yd(c.levelOfMeasurements,["Nominal"])});if(!a||!o)return null;var l={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:"point",encoding:{x:{field:a.name,type:"quantitative"},y:{field:o.name,type:"quantitative"}}}]};return s&&(l.layer[0].encoding.color={field:s.name,type:"nominal"}),l}function gxi(t,e){for(var n=e.filter(function(h){return yd(h.levelOfMeasurements,["Interval"])}),r={x:n[0],y:n[1],corr:0,size:n[2]},a=function(h){for(var f=function(m){var g=ton(n[h].rawData,n[m].rawData);Math.abs(g)>r.corr&&(r.x=n[h],r.y=n[m],r.corr=g,r.size=n[xc([],xa(Array(n.length).keys())).find(function(v){return v!==h&&v!==m})||0])},p=h+1;p<n.length;p+=1)f(p)},o=0;o<n.length;o+=1)a(o);var s=r.x,l=r.y,c=r.size,u=e.find(function(h){return cN(h.levelOfMeasurements,["Nominal"])});if(!s||!l||!c||!u)return null;var d={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"point"},encoding:{x:{field:s.name,type:"quantitative"},y:{field:l.name,type:"quantitative"},color:{field:u.name,type:"nominal"},size:{field:c.name,type:"quantitative"}}}]};return d}function vxi(t,e){var n=e.find(function(a){return yd(a.levelOfMeasurements,["Interval"])});if(!n)return null;var r={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:"bar",encoding:{x:{type:"quantitative",field:n.name,bin:!0},y:{type:"quantitative",aggregate:"count"}}}]};return r}function Axi(t,e){var n=e.filter(function(c){return cN(c.levelOfMeasurements,["Nominal","Ordinal"])}),r=n.sort(qG),a=r[0],o=r[1],s=e.find(function(c){return yd(c.levelOfMeasurements,["Interval"])});if(!a||!o||!s)return null;var l={basis:{type:"chart"},data:{type:"json-array",values:t},layer:[{mark:{type:"rect"},encoding:{x:{field:a.name,type:U6(a.levelOfMeasurements[0])},y:{field:o.name,type:U6(o.levelOfMeasurements[0])},color:{field:s.name,type:"quantitative"}}}]};return l}function yxi(t,e,n,r){if(!W1i.includes(t)&&r){if(r.toSpec){var a=r.toSpec(e,n);return a}return null}switch(t){case"pie_chart":return exi(e,n);case"donut_chart":return txi(e,n);case"line_chart":return nxi(e,n);case"step_line_chart":return rxi(e,n);case"area_chart":return ixi(e,n);case"stacked_area_chart":return axi(e,n);case"percent_stacked_area_chart":return oxi(e,n);case"bar_chart":return sxi(e,n);case"grouped_bar_chart":return lxi(e,n);case"stacked_bar_chart":return cxi(e,n);case"percent_stacked_bar_chart":return uxi(e,n);case"column_chart":return dxi(e,n);case"grouped_column_chart":return hxi(e,n);case"stacked_column_chart":return fxi(e,n);case"percent_stacked_column_chart":return pxi(e,n);case"scatter_plot":return mxi(e,n);case"bubble_chart":return gxi(e,n);case"histogram":return vxi(e,n);case"heatmap":return Axi(e,n);default:return null}}var bxi=function(t,e,n,r){var a=r==null?void 0:r.exportLog,o=r==null?void 0:r.showLog,s=r?r.purpose:"",l=r?r.preferences:void 0,c=[],u={dataProps:e,chartType:t,purpose:s,preferences:l},d=ASt(n,"HARD",u,c),h=ASt(n,"SOFT",u,c),f=d*(1+h);o&&console.log("💯score: ",f,"=",d,"* (1 +",h,") ;charttype: ",t),o&&console.log(c);var p={chartType:t,score:f};return a&&(p.log=c),p};function xxi(t,e,n,r){var a=Object.values(n).filter(function(s){var l;return s.type==="DESIGN"&&s.trigger({dataProps:e,chartType:t})&&!(!((l=n[s.id].option)===null||l===void 0)&&l.off)}),o=a.reduce(function(s,l){var c=l.optimizer(e,r);return Xj(s,c)},{});return o}var MSt=["monochromatic","analogous"],NSt=["polychromatic","split-complementary","triadic","tetradic"],Exi="#678ef2";function Sxi(t,e,n){var r,a=n.primaryColor,o="encoding"in e.layer[0]?e.layer[0].encoding:null;if(a&&o){var s=Dnt(a);if(o.color){var l=o.color,c=l.type,u=l.field,d=void 0;c==="quantitative"?d=MSt[Math.floor(Math.random()*MSt.length)]:d=NSt[Math.floor(Math.random()*NSt.length)];var h=(r=t.find(function(p){return p.name===u}))===null||r===void 0?void 0:r.count,f=Tsn(d,{color:s,count:h});return{encoding:{color:{scale:{range:f.colors.map(function(p){return Bne(p)})}}}}}return{mark:{style:{color:Bne(s)}}}}return{}}function wxi(t,e,n,r,a){var o,s="encoding"in e.layer[0]?e.layer[0].encoding:null;if(n&&s){var l=Dnt(n);if(s.color){var c=s.color,u=c.type,d=c.field,h=r;h||(u==="quantitative"?h="monochromatic":h="polychromatic");var f=(o=t.find(function(m){return m.name===d}))===null||o===void 0?void 0:o.count,p=Tsn(h,{color:l,count:f});return{encoding:{color:{scale:{range:p.colors.map(function(m){return Bne(a?Esn(m,a):m)})}}}}}return{mark:{style:{color:Bne(l)}}}}return{}}function _xi(t,e,n,r,a,o,s){var l=(o==null?void 0:o.refine)===void 0?!1:o.refine,c=o==null?void 0:o.showLog,u=(o==null?void 0:o.exportLog)||!1,d=a,h=o==null?void 0:o.theme,f=(o==null?void 0:o.requireSpec)===void 0?!0:o.requireSpec,p=n,m=Object.keys(p),g=[],v=m.map(function(w){var _,C=bxi(w,e,r,o);g.push(C);var R=C.score;if(R<=0)return{type:w,spec:null,score:R};var k=yxi(w,t,e,n[w]),P=["kpi_panel","table"];if(!P.includes(w)&&!k)return{type:w,spec:null,score:R};if(k&&l){var N=xxi(w,e,r,k);Xj(k.layer[0],N)}if(k){if(h&&!d){var N=Sxi(e,k,h);Xj(k.layer[0],N)}else if(d){var L=(_=s==null?void 0:s.themeColor)!==null&&_!==void 0?_:Exi,I=s==null?void 0:s.colorSchemeType,b=s==null?void 0:s.simulationType,N=wxi(e,k,L,I,b);Xj(k.layer[0],N)}}return{type:w,spec:k,score:R}});function A(w,_){return w.score<_.score?1:w.score>_.score?-1:0}var y=function(w){return w.score>0&&(f?w.spec:!0)},S=v.filter(y).sort(A);c&&console.log("🍒🍒🍒🍒🍒🍒 resultList 🍒🍒🍒🍒🍒🍒"),c&&console.log(S);var x=u?{advices:S,log:g}:S;return x}var Txi=["graph"],Cxi={id:"pred-scale-type",type:"DESIGN",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return Txi.indexOf(e)!==-1},optimizer:function(t){var e;return t?(xwe(t)||mnt(t)?e="ordinal":(ron(t)||t.type==="integer"||t.type==="float")&&(e="linear"),e):"linear"}},kxi={"pred-scale-type":Cxi},jnt=["graph"],Msn={id:"field-for-node-color",type:"HARD",docs:{detailedText:"A field can encode to color if is nominal or ordinal, and the number of its distinct values is less than "+gSt},trigger:function(t){var e=t.chartType;return jnt.indexOf(e)!==-1},validator:function(t){var e=t.field;return(mnt(e)||xwe(e))&&e.missing===0&&e.distinct>1&&e.distinct<=gSt}},Rxi={id:"field-for-size",type:"HARD",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return jnt.indexOf(e)!==-1},validator:function(t){var e=t.field;return e.name==="degree"}},Mxi={id:"field-for-abel",type:"HARD",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return jnt.indexOf(e)!==-1},validator:Msn.validator},Nxi={"field-for-color":Msn,"field-for-size":Rxi,"field-for-label":Mxi},Ixi=["graph"],Pxi={id:"pred-edge-type",type:"DESIGN",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return Ixi.indexOf(e)!==-1},optimizer:function(t){var e=t,n=e.graphInfo,r=e.layoutType,a="line";if((n==null?void 0:n.linkCount)<60)switch(r){case"dagre":{a="round";break}case"radial":{a="smooth";break}default:a="line"}return{edgeType:a}}},Oxi={"pred-edge-type":Pxi},Lxi=["graph"],Bxi={id:"pred-node-type",type:"DESIGN",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return Lxi.indexOf(e)!==-1},optimizer:function(t){var e=Iyi,n=t.graphInfo,r=t.layoutType;return n.nodeCount<100&&r==="dagre"&&(e="rect"),{nodeType:e}}},Dxi={"pred-node-type":Bxi},JG=["graph"],doe=5,$xi={id:"use-dagre-rule",type:"SOFT",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return JG.indexOf(e)!==-1},validator:function(t){var e=0,n=t==null?void 0:t.graphInfo,r=n.isDAG,a=n.cycleParticipate,o=n.maxDegree,s=n.avgDegree;return r&&(e=1),o<=Lne/2&&(e+=1),s<Lne/3&&(e+=1),a>.5?e=0:a<.3&&(e+=2),e/doe}},Fxi={id:"use-radial-rule",type:"SOFT",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return JG.indexOf(e)!==-1},validator:function(t){var e=0,n=t==null?void 0:t.graphInfo,r=n.isDAG,a=n.cycleParticipate,o=n.maxDegree;return r&&(e=1),o>Lne/2&&o<Lne&&(e+=1),a>.5?e=0:a<.3&&(e+=1),e/doe}},jxi={id:"use-circular-rule",type:"SOFT",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return JG.indexOf(e)!==-1},validator:function(t){var e=0,n=t==null?void 0:t.graphInfo,r=n.cycleCount,a=n.cycleParticipate;return r>0&&(e=2),a>=.5&&a<=.8?e=3:a>.8&&a<.9?e=4:a>=.9&&(e=5),e/doe}},Hxi={id:"use-force-rule",type:"SOFT",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return JG.indexOf(e)!==-1},validator:function(t){var e=0,n=t==null?void 0:t.graphInfo,r=n.nodeCount,a=n.maxDegree,o=n.avgDegree,s=n.strongConnectedComponentCount;return r>200&&(e+=2),s>=1&&(e+=1),o<3&&(e+=1),a>Lne&&(e+=1),e/doe}},Uxi={id:"use-force-rule",type:"SOFT",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return JG.indexOf(e)!==-1},validator:function(t){var e=0,n=t==null?void 0:t.graphInfo,r=n.maxDegree,a=n.avgDegree,o=n.degreeStd;return r-a>3*o&&(e+=3),e/doe}},zxi={id:"use-grid-rule",type:"SOFT",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return JG.indexOf(e)!==-1},validator:function(){var t=0;return t}},Gxi={dagre:$xi,circular:jxi,concentric:Uxi,radial:Fxi,grid:zxi,force:Hxi},Vxi=["graph"],Kxi={id:"pred-layout-config",type:"DESIGN",docs:{detailedText:""},trigger:function(t){var e=t.chartType;return Vxi.indexOf(e)!==-1},optimizer:function(t){var e=t.layoutType||usn,n={};switch(e){case"graphin-force":{n={stiffness:200,repulsion:1e3,damping:.9};break}case"force":{n={linkDistance:100,nodeStrength:100,edgeStrength:.2,nodeSpacing:15,preventOverlap:!0,clustering:!0,nodeSize:function(a){return a.size}};break}case"dagre":{n={rankdir:"TB",align:null,nodesep:10,ranksep:10};break}case"radial":{n={unitRadius:100,nodeSpacing:15,preventOverlap:!0};break}case"concentric":{n={sortBy:null,nodeSize:15,minNodeSpacing:10,equidistant:!1,preventOverlap:!0};break}case"circular":{n={radius:100,divisions:1,ordering:null,preventOverlap:!0};break}case"grid":{n={rows:1,cols:1,sortBy:null};break}}var r={type:e,options:n};return r}},Wxi=cr(cr({},Gxi),{"pred-layout-config":Kxi}),Hnt=cr(cr(cr(cr(cr({},kxi),Nxi),Oxi),Dxi),Wxi),jme=function(t,e){var n=[],r=Hnt[e];return r.type==="HARD"?n=t.filter(function(a){return r.validator({field:a})}):r.type==="SOFT"&&(n=t.map(function(a){return{item:a,score:r.validator({field:a})}}),n.sort(function(a,o){return o.score-a.score})),n};function Qxi(t){var e=[];Ryi.forEach(function(r){var a=Hnt[r];e.push({type:r,score:a.validator(t)})});var n=e.filter(function(r){return r.score>0}).sort(function(r,a){return a.score-r.score});return n.length||n.push({type:usn,score:1}),n}var eH=function(t,e,n){var r=Hnt[e],a=r.optimizer(t,n);return a};function qxi(t,e){var n=t.nodeFeats,r=t.nodeFieldsInfo,a=r.concat(n),o=xa(jme(a,"field-for-color"),1),s=o[0],l=xa(jme(a,"field-for-size"),1),c=l[0],u=xa(jme(a,"field-for-label"),1),d=u[0],h=eH(s,"pred-scale-type"),f=eH(c,"pred-scale-type"),p=eH(t,"pred-node-type").nodeType,m=s?{field:s.name,type:h,scale:{range:(e==null?void 0:e.nodeColors)||Bnt,domain:Object.keys(s.valueMap)}}:{},g=c?{field:c.name,type:f,scale:{range:(e==null?void 0:e.nodeSizeRange)||Myi,domain:[c.minimum,c.maximum]}}:{},v=d?{field:d.name,showlabel:!0}:{},A={mark:p||"point",encoding:{size:g,color:m,label:v}};return A}function Yxi(t,e){var n=t.linkFeats,r=t.linkFieldsInfo,a=r.concat(n),o=xa(jme(a,"field-for-size"),1),s=o[0],l=eH(s,"pred-scale-type"),c=eH(t,"pred-edge-type").edgeType,u=s?{field:s.name,type:l,scale:{range:(e==null?void 0:e.linkWidthRange)||Nyi,domain:[s.minimum,s.maximum]}}:{},d={mark:"line",encoding:{size:u,type:c}};return d}function Jxi(t,e,n){var r=[],a={data:{type:"json",values:t},basis:{type:"graph"},layout:{nodes:"nodes",links:"links"}},o=Qxi(e);return o.forEach(function(s){var l=s.type,c=s.score,u=eH(e,"pred-layout-config"),d={type:l,options:u==null?void 0:u.options},h=Yxi(cr(cr({},e),{layoutType:l}),n),f=qxi(cr(cr({},e),{layoutType:l}),n),p={layout:d,layer:[{nodes:f,links:h}]};r.push({type:"graph",spec:Xj(p,a),score:c})}),r}var Zxi=function(){function t(e){e===void 0&&(e={}),Object.assign(this,e);var n={};this.ckbCfg&&(n=this.processCKBCfg(this.ckbCfg)),this.CKB=this.ckbCfg?n:yP("en-US",!0),this.ruleBase=ssn(this.ruleCfg)}return t.prototype.advise=function(e){var n=e.data,r=e.options,a,o=this.advicesForGraph(e);if(this.shouldRecommendGraph(n,r))a=o;else{var s=this.advicesForChart(e);a=s.concat(o)}return a},t.prototype.adviseWithLog=function(e){var n=e.data,r=e.options,a,o=this.advicesForGraph(e);if(this.shouldRecommendGraph(n,r))a={advices:o,log:[]};else{var s=this.advicesForChart(e,!0),l=s,c=l.advices,u=l.log,d=c.concat(o);a={advices:d,log:u}}return a},t.prototype.advicesForChart=function(e,n){n===void 0&&(n=!1);var r=e.data,a=e.dataProps,o=e.smartColor,s=e.options,l=e.colorOptions,c=LAe(r),u=e.fields,d;try{u?d=new j6(c,{columns:u}):d=new j6(c)}catch(m){return console.error("error: ",m),[]}var h;a?h=u?a.filter(function(m){return u.includes(m.name)}):a:h=d.info();var f=[];u?f=c.map(function(m){var g=m;return Object.keys(g).forEach(function(v){u.includes(v)||delete g[v]}),m}):f=c;var p=_xi(f,h,this.CKB,this.ruleBase,o,cr(cr({},s),{exportLog:n}),l);return p},t.prototype.advicesForGraph=function(e){var n,r=e.data,a=e.dataProps,o=e.options,s=LAe(r),l;try{l=new H1i(s,(n=o)===null||n===void 0?void 0:n.extra)}catch{return[]}var c=l==null?void 0:l.info(),u=a?Xj(c,a):c,d=Jxi(l.data,u,o);return d},t.prototype.shouldRecommendGraph=function(e,n){var r,a=["Relation","Hierarchy","Flow"],o=["nodes","edges","links","from","to","children"],s=Object.prototype.toString.call(e)==="[object Object]"&&Object.keys(e).some(function(l){return o.includes(l)});return!!(!((r=n)===null||r===void 0)&&r.extra)||a.includes(n==null?void 0:n.purpose)||s},t.prototype.processCKBCfg=function(e){var n=yP("en-US",!0),r=e.exclude;if(r&&r.forEach(function(s){Object.keys(n).includes(s)&&delete n[s]}),e.include){var a=e.include;Object.keys(n).forEach(function(s){a.includes(s)||delete n[s]})}var o=cr(cr({},n),e.custom);return o},t}(),Xxi=function(t){var e=t.layer[0];return e.encoding.size?"bubble_chart":"scatter_plot"},eEi=function(t){var e=t.layer[0];return typeof e.mark!="string"&&e.mark.style&&e.mark.style.innerRadius?"donut_chart":"pie_chart"},tEi=function(t){var e=t.layer[0];return e.encoding.x.type==="quantitative"&&e.encoding.x.bin?"histogram":e.encoding.x.type==="quantitative"?e.encoding.row?"grouped_bar_chart":e.encoding.x.stack==="normalize"?"stacked_bar_chart":e.encoding.x.stack||e.encoding.x.stack==="zero"?"percent_stacked_bar_chart":"bar_chart":e.encoding.y.type==="quantitative"?e.encoding.column?"grouped_column_chart":e.encoding.y.stack==="normalize"?"stacked_column_chart":e.encoding.y.stack||e.encoding.y.stack==="zero"?"percent_stacked_column_chart":"column_chart":"bar_chart"},nEi=function(t){var e=t.layer[0];return e.encoding.color&&e.encoding.x.stack==="normalize"?"percent_stacked_area_chart":e.encoding.color&&e.encoding.x.stack?"stacked_area_chart":"area_chart"},rEi=function(t){var e=t.layer[0];return typeof e.mark!="string"&&e.mark.interpolate?"step_line_chart":"line_chart"},iEi=function(t){var e;if(t.basis.type==="chart"){var n=t,r=typeof n.layer[0].mark=="string"?n.layer[0].mark:n.layer[0].mark.type;switch(r){case"arc":e=eEi(n);break;case"area":e=nEi(n);break;case"bar":e=tEi(n);break;case"line":e=rEi(n);break;case"point":e=Xxi(n);break;case"rect":e="heatmap";break;default:e=""}}return e},ISt=function(t,e,n,r,a,o){var s=function(l){return e==="DESIGN"?l==="DESIGN":l!=="DESIGN"};Object.values(t).filter(function(l){var c,u=l.option||{},d=u.weight,h=u.extra;return s(l.type)&&!(!((c=l.option)===null||c===void 0)&&c.off)&&l.trigger(cr(cr(cr({},n),{weight:d}),h))}).forEach(function(l){var c=l.type,u=l.id,d=l.docs,h;if(e==="DESIGN"){var f=l.optimizer(n.dataProps,o),p=Object.keys(f).length===0?1:0;a.push({type:c,id:u,score:p,fix:f,docs:d})}else{var m=l.option||{},g=m.weight,v=m.extra,A=l.validator(cr(cr(cr({},n),{weight:g}),v));a.push({type:c,id:u,score:A,docs:d})}r.push({phase:"LINT",ruleId:u,score:h,base:h,weight:1,ruleType:c})})},aEi=function(){function t(e){this.ruleBase=ssn(e)}return t.prototype.lint=function(e){var n=this.checkRules(e),r=n.lints;return r},t.prototype.lintWithLog=function(e){var n=this.checkRules(e);return n},t.prototype.checkRules=function(e){var n=e.spec,r=e.options,a=e.dataProps,o=r==null?void 0:r.purpose,s=r==null?void 0:r.preferences,l=iEi(n),c=[],u=[];if(!n||!l)return{lints:c,log:u};if(!a||!a.length){var d=void 0;try{d=new j6(n.data.values),a=d.info()}catch(p){return console.error("error: ",p),{lints:c,log:u}}}var h={dataProps:a,chartType:l,purpose:o,preferences:s};ISt(this.ruleBase,"notDESIGN",h,u,c),ISt(this.ruleBase,"DESIGN",h,u,c,n),c=c.filter(function(p){return p.score!==1});var f={lints:c,log:u};return f},t}(),oEi=function(){function t(e){e===void 0&&(e={}),this.advisor=new Zxi(e),this.linter=new aEi(e.ruleCfg)}return t.prototype.advise=function(e){var n=this.adviseWithLog(e),r=n.advices;return r},t.prototype.adviseWithLog=function(e){var n=this,r=e.dataProps,a=e.options,o=this.advisor.adviseWithLog(e),s=o.advices,l=o.log,c=s.map(function(d){var h;if(d.type==="graph")return cr(cr({},d),{lint:[]});var f=n.linter.lintWithLog({spec:d.spec,dataProps:r,options:a}),p=f.lints,m=f.log;return(h=l.find(function(g){return g.chartType===d.type}).log).push.apply(h,xc([],xa(m))),cr(cr({},d),{lint:p})}),u={advices:c,log:l};return u},t}(),fc=function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})},rc=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},J1=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},sS=function(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,o;r<a;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},PSt=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function t(e){e===void 0&&(e=t.minComparator);var n=this;this.compare=e,this.heapArray=[],this._limit=0,this.offer=this.add,this.element=this.peek,this.poll=this.pop,this._invertedCompare=function(r,a){return n.compare(r,a).then(function(o){return-1*o})}}return t.getChildrenIndexOf=function(e){return[e*2+1,e*2+2]},t.getParentIndexOf=function(e){if(e<=0)return-1;var n=e%2?1:2;return Math.floor((e-n)/2)},t.getSiblingIndexOf=function(e){if(e<=0)return-1;var n=e%2?1:-1;return e+n},t.minComparator=function(e,n){return fc(this,void 0,void 0,function(){return rc(this,function(r){return e>n?[2,1]:e<n?[2,-1]:[2,0]})})},t.maxComparator=function(e,n){return fc(this,void 0,void 0,function(){return rc(this,function(r){return n>e?[2,1]:n<e?[2,-1]:[2,0]})})},t.minComparatorNumber=function(e,n){return fc(this,void 0,void 0,function(){return rc(this,function(r){return[2,e-n]})})},t.maxComparatorNumber=function(e,n){return fc(this,void 0,void 0,function(){return rc(this,function(r){return[2,n-e]})})},t.defaultIsEqual=function(e,n){return fc(this,void 0,void 0,function(){return rc(this,function(r){return[2,e===n]})})},t.print=function(e){function n(d){var h=t.getParentIndexOf(d);return Math.floor(Math.log2(h+1))}function r(d,h){for(var f="";h>0;--h)f+=d;return f}for(var a=0,o=[],s=n(e.length-1)+2,l=0;a<e.length;){var c=n(a)+1;a===0&&(c=0);var u=String(e.get(a));u.length>l&&(l=u.length),o[c]=o[c]||[],o[c].push(u),a+=1}return o.map(function(d,h){var f=Math.pow(2,s-h)-1;return r(" ",Math.floor(f/2)*l)+d.map(function(p){var m=(l-p.length)/2;return r(" ",Math.ceil(m))+p+r(" ",Math.floor(m))}).join(r(" ",f*l))}).join(`
`)},t.heapify=function(e,n){return fc(this,void 0,void 0,function(){var r;return rc(this,function(a){switch(a.label){case 0:return r=new t(n),r.heapArray=e,[4,r.init()];case 1:return a.sent(),[2,r]}})})},t.heappop=function(e,n){var r=new t(n);return r.heapArray=e,r.pop()},t.heappush=function(e,n,r){return fc(this,void 0,void 0,function(){var a;return rc(this,function(o){switch(o.label){case 0:return a=new t(r),a.heapArray=e,[4,a.push(n)];case 1:return o.sent(),[2]}})})},t.heappushpop=function(e,n,r){var a=new t(r);return a.heapArray=e,a.pushpop(n)},t.heapreplace=function(e,n,r){var a=new t(r);return a.heapArray=e,a.replace(n)},t.heaptop=function(e,n,r){n===void 0&&(n=1);var a=new t(r);return a.heapArray=e,a.top(n)},t.heapbottom=function(e,n,r){n===void 0&&(n=1);var a=new t(r);return a.heapArray=e,a.bottom(n)},t.nlargest=function(e,n,r){return fc(this,void 0,void 0,function(){var a;return rc(this,function(o){switch(o.label){case 0:return a=new t(r),a.heapArray=sS([],J1(n),!1),[4,a.init()];case 1:return o.sent(),[2,a.top(e)]}})})},t.nsmallest=function(e,n,r){return fc(this,void 0,void 0,function(){var a;return rc(this,function(o){switch(o.label){case 0:return a=new t(r),a.heapArray=sS([],J1(n),!1),[4,a.init()];case 1:return o.sent(),[2,a.bottom(e)]}})})},t.prototype.add=function(e){return fc(this,void 0,void 0,function(){return rc(this,function(n){switch(n.label){case 0:return[4,this._sortNodeUp(this.heapArray.push(e)-1)];case 1:return n.sent(),this._applyLimit(),[2,!0]}})})},t.prototype.addAll=function(e){return fc(this,void 0,void 0,function(){var n,r,a;return rc(this,function(o){switch(o.label){case 0:n=this.length,(a=this.heapArray).push.apply(a,sS([],J1(e),!1)),r=this.length,o.label=1;case 1:return n<r?[4,this._sortNodeUp(n)]:[3,4];case 2:o.sent(),o.label=3;case 3:return++n,[3,1];case 4:return this._applyLimit(),[2,!0]}})})},t.prototype.bottom=function(e){return e===void 0&&(e=1),fc(this,void 0,void 0,function(){return rc(this,function(n){return this.heapArray.length===0||e<=0?[2,[]]:this.heapArray.length===1?[2,[this.heapArray[0]]]:e>=this.heapArray.length?[2,sS([],J1(this.heapArray),!1)]:[2,this._bottomN_push(~~e)]})})},t.prototype.check=function(){return fc(this,void 0,void 0,function(){var e,n,r,a,o,s,l,c,u;return rc(this,function(d){switch(d.label){case 0:e=0,d.label=1;case 1:if(!(e<this.heapArray.length))return[3,10];n=this.heapArray[e],r=this.getChildrenOf(e),d.label=2;case 2:d.trys.push([2,7,8,9]),a=(c=void 0,PSt(r)),o=a.next(),d.label=3;case 3:return o.done?[3,6]:(s=o.value,[4,this.compare(n,s)]);case 4:if(d.sent()>0)return[2,n];d.label=5;case 5:return o=a.next(),[3,3];case 6:return[3,9];case 7:return l=d.sent(),c={error:l},[3,9];case 8:try{o&&!o.done&&(u=a.return)&&u.call(a)}finally{if(c)throw c.error}return[7];case 9:return++e,[3,1];case 10:return[2]}})})},t.prototype.clear=function(){this.heapArray=[]},t.prototype.clone=function(){var e=new t(this.comparator());return e.heapArray=this.toArray(),e._limit=this._limit,e},t.prototype.comparator=function(){return this.compare},t.prototype.contains=function(e,n){return n===void 0&&(n=t.defaultIsEqual),fc(this,void 0,void 0,function(){var r,a,o,s,l,c;return rc(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),r=PSt(this.heapArray),a=r.next(),u.label=1;case 1:return a.done?[3,4]:(o=a.value,[4,n(o,e)]);case 2:if(u.sent())return[2,!0];u.label=3;case 3:return a=r.next(),[3,1];case 4:return[3,7];case 5:return s=u.sent(),l={error:s},[3,7];case 6:try{a&&!a.done&&(c=r.return)&&c.call(r)}finally{if(l)throw l.error}return[7];case 7:return[2,!1]}})})},t.prototype.init=function(e){return fc(this,void 0,void 0,function(){var n;return rc(this,function(r){switch(r.label){case 0:e&&(this.heapArray=sS([],J1(e),!1)),n=Math.floor(this.heapArray.length),r.label=1;case 1:return n>=0?[4,this._sortNodeDown(n)]:[3,4];case 2:r.sent(),r.label=3;case 3:return--n,[3,1];case 4:return this._applyLimit(),[2]}})})},t.prototype.isEmpty=function(){return this.length===0},t.prototype.leafs=function(){if(this.heapArray.length===0)return[];var e=t.getParentIndexOf(this.heapArray.length-1);return this.heapArray.slice(e+1)},Object.defineProperty(t.prototype,"length",{get:function(){return this.heapArray.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=~~e,this._applyLimit()},enumerable:!1,configurable:!0}),t.prototype.peek=function(){return this.heapArray[0]},t.prototype.pop=function(){return fc(this,void 0,void 0,function(){var e;return rc(this,function(n){return e=this.heapArray.pop(),this.length>0&&e!==void 0?[2,this.replace(e)]:[2,e]})})},t.prototype.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return fc(this,void 0,void 0,function(){return rc(this,function(r){return e.length<1?[2,!1]:e.length===1?[2,this.add(e[0])]:[2,this.addAll(e)]})})},t.prototype.pushpop=function(e){return fc(this,void 0,void 0,function(){var n;return rc(this,function(r){switch(r.label){case 0:return[4,this.compare(this.heapArray[0],e)];case 1:return r.sent()<0?(n=J1([this.heapArray[0],e],2),e=n[0],this.heapArray[0]=n[1],[4,this._sortNodeDown(0)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2,e]}})})},t.prototype.remove=function(e,n){return n===void 0&&(n=t.defaultIsEqual),fc(this,void 0,void 0,function(){var r,a;return rc(this,function(o){switch(o.label){case 0:return this.length>0?e!==void 0?[3,2]:[4,this.pop()]:[3,13];case 1:return o.sent(),[2,!0];case 2:r=-1,a=0,o.label=3;case 3:return a<this.heapArray.length?[4,n(this.heapArray[a],e)]:[3,6];case 4:if(o.sent())return r=a,[3,6];o.label=5;case 5:return++a,[3,3];case 6:return r>=0?r!==0?[3,8]:[4,this.pop()]:[3,13];case 7:return o.sent(),[3,12];case 8:return r!==this.length-1?[3,9]:(this.heapArray.pop(),[3,12]);case 9:return this.heapArray.splice(r,1,this.heapArray.pop()),[4,this._sortNodeUp(r)];case 10:return o.sent(),[4,this._sortNodeDown(r)];case 11:o.sent(),o.label=12;case 12:return[2,!0];case 13:return[2,!1]}})})},t.prototype.replace=function(e){return fc(this,void 0,void 0,function(){var n;return rc(this,function(r){switch(r.label){case 0:return n=this.heapArray[0],this.heapArray[0]=e,[4,this._sortNodeDown(0)];case 1:return r.sent(),[2,n]}})})},t.prototype.size=function(){return this.length},t.prototype.top=function(e){return e===void 0&&(e=1),fc(this,void 0,void 0,function(){return rc(this,function(n){return this.heapArray.length===0||e<=0?[2,[]]:this.heapArray.length===1||e===1?[2,[this.heapArray[0]]]:e>=this.heapArray.length?[2,sS([],J1(this.heapArray),!1)]:[2,this._topN_push(~~e)]})})},t.prototype.toArray=function(){return sS([],J1(this.heapArray),!1)},t.prototype.toString=function(){return this.heapArray.toString()},t.prototype.get=function(e){return this.heapArray[e]},t.prototype.getChildrenOf=function(e){var n=this;return t.getChildrenIndexOf(e).map(function(r){return n.heapArray[r]}).filter(function(r){return r!==void 0})},t.prototype.getParentOf=function(e){var n=t.getParentIndexOf(e);return this.heapArray[n]},t.prototype[Symbol.iterator]=function(){return rc(this,function(e){switch(e.label){case 0:return this.length?[4,this.pop()]:[3,2];case 1:return e.sent(),[3,0];case 2:return[2]}})},t.prototype.iterator=function(){return this},t.prototype._applyLimit=function(){if(this._limit&&this._limit<this.heapArray.length)for(var e=this.heapArray.length-this._limit;e;)this.heapArray.pop(),--e},t.prototype._bottomN_push=function(e){return fc(this,void 0,void 0,function(){var n,r,a,o,l,s,l;return rc(this,function(c){switch(c.label){case 0:return n=new t(this.compare),n.limit=e,n.heapArray=this.heapArray.slice(-e),[4,n.init()];case 1:for(c.sent(),r=this.heapArray.length-1-e,a=t.getParentIndexOf(r),o=[],l=r;l>a;--l)o.push(l);s=this.heapArray,c.label=2;case 2:return o.length?(l=o.shift(),[4,this.compare(s[l],n.peek())]):[3,6];case 3:return c.sent()>0?[4,n.replace(s[l])]:[3,5];case 4:c.sent(),l%2&&o.push(t.getParentIndexOf(l)),c.label=5;case 5:return[3,2];case 6:return[2,n.toArray()]}})})},t.prototype._moveNode=function(e,n){var r;r=J1([this.heapArray[n],this.heapArray[e]],2),this.heapArray[e]=r[0],this.heapArray[n]=r[1]},t.prototype._sortNodeDown=function(e){return fc(this,void 0,void 0,function(){var n,r,a,o,s,l,c,u,d=this;return rc(this,function(h){switch(h.label){case 0:n=e<this.heapArray.length-1,r=this.heapArray[e],a=function(f,p){return fc(d,void 0,void 0,function(){var m;return rc(this,function(g){switch(g.label){case 0:return m=this.heapArray.length>p,m?[4,this.compare(this.heapArray[p],this.heapArray[f])]:[3,2];case 1:m=g.sent()<0,g.label=2;case 2:return m&&(f=p),[2,f]}})})},h.label=1;case 1:if(!n)return[3,8];o=t.getChildrenIndexOf(e),s=o[0],l=1,h.label=2;case 2:return l<o.length?[4,a(s,o[l])]:[3,5];case 3:s=h.sent(),h.label=4;case 4:return++l,[3,2];case 5:return c=this.heapArray[s],u=typeof c<"u",u?[4,this.compare(r,c)]:[3,7];case 6:u=h.sent()>0,h.label=7;case 7:return u?(this._moveNode(e,s),e=s):n=!1,[3,1];case 8:return[2]}})})},t.prototype._sortNodeUp=function(e){return fc(this,void 0,void 0,function(){var n,r,a;return rc(this,function(o){switch(o.label){case 0:n=e>0,o.label=1;case 1:return n?(r=t.getParentIndexOf(e),a=r>=0,a?[4,this.compare(this.heapArray[r],this.heapArray[e])]:[3,3]):[3,4];case 2:a=o.sent()>0,o.label=3;case 3:return a?(this._moveNode(e,r),e=r):n=!1,[3,1];case 4:return[2]}})})},t.prototype._topN_push=function(e){return fc(this,void 0,void 0,function(){var n,r,a,o;return rc(this,function(s){switch(s.label){case 0:n=new t(this._invertedCompare),n.limit=e,r=[0],a=this.heapArray,s.label=1;case 1:return r.length?(o=r.shift(),o<a.length?n.length<e?[4,n.push(a[o])]:[3,3]:[3,6]):[3,7];case 2:return s.sent(),r.push.apply(r,sS([],J1(t.getChildrenIndexOf(o)),!1)),[3,6];case 3:return[4,this.compare(a[o],n.peek())];case 4:return s.sent()<0?[4,n.replace(a[o])]:[3,6];case 5:s.sent(),r.push.apply(r,sS([],J1(t.getChildrenIndexOf(o)),!1)),s.label=6;case 6:return[3,1];case 7:return[2,n.toArray()]}})})},t.prototype._topN_fill=function(e){return fc(this,void 0,void 0,function(){var n,r,a,o,s,s;return rc(this,function(l){switch(l.label){case 0:return n=this.heapArray,r=new t(this._invertedCompare),r.limit=e,r.heapArray=n.slice(0,e),[4,r.init()];case 1:for(l.sent(),a=t.getParentIndexOf(e-1)+1,o=[],s=a;s<e;++s)o.push.apply(o,sS([],J1(t.getChildrenIndexOf(s).filter(function(c){return c<n.length})),!1));(e-1)%2&&o.push(e),l.label=2;case 2:return o.length?(s=o.shift(),s<n.length?[4,this.compare(n[s],r.peek())]:[3,5]):[3,6];case 3:return l.sent()<0?[4,r.replace(n[s])]:[3,5];case 4:l.sent(),o.push.apply(o,sS([],J1(t.getChildrenIndexOf(s)),!1)),l.label=5;case 5:return[3,2];case 6:return[2,r.toArray()]}})})},t.prototype._topN_heap=function(e){return fc(this,void 0,void 0,function(){var n,r,a,o,s;return rc(this,function(l){switch(l.label){case 0:n=this.clone(),r=[],a=0,l.label=1;case 1:return a<e?(s=(o=r).push,[4,n.pop()]):[3,4];case 2:s.apply(o,[l.sent()]),l.label=3;case 3:return++a,[3,1];case 4:return[2,r]}})})},t.prototype._topIdxOf=function(e){return fc(this,void 0,void 0,function(){var n,r,a,o;return rc(this,function(s){switch(s.label){case 0:if(!e.length)return[2,-1];n=0,r=e[n],a=1,s.label=1;case 1:return a<e.length?[4,this.compare(e[a],r)]:[3,4];case 2:o=s.sent(),o<0&&(n=a,r=e[a]),s.label=3;case 3:return++a,[3,1];case 4:return[2,n]}})})},t.prototype._topOf=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return fc(this,void 0,void 0,function(){var r;return rc(this,function(a){switch(a.label){case 0:return r=new t(this.compare),[4,r.init(e)];case 1:return a.sent(),[2,r.peek()]}})})},t})();var sEi=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},jg=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},wA=function(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,o;r<a;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},OSt=function(){function t(e){e===void 0&&(e=t.minComparator);var n=this;this.compare=e,this.heapArray=[],this._limit=0,this.offer=this.add,this.element=this.peek,this.poll=this.pop,this.removeAll=this.clear,this._invertedCompare=function(r,a){return-1*n.compare(r,a)}}return t.getChildrenIndexOf=function(e){return[e*2+1,e*2+2]},t.getParentIndexOf=function(e){if(e<=0)return-1;var n=e%2?1:2;return Math.floor((e-n)/2)},t.getSiblingIndexOf=function(e){if(e<=0)return-1;var n=e%2?1:-1;return e+n},t.minComparator=function(e,n){return e>n?1:e<n?-1:0},t.maxComparator=function(e,n){return n>e?1:n<e?-1:0},t.minComparatorNumber=function(e,n){return e-n},t.maxComparatorNumber=function(e,n){return n-e},t.defaultIsEqual=function(e,n){return e===n},t.print=function(e){function n(d){var h=t.getParentIndexOf(d);return Math.floor(Math.log2(h+1))}function r(d,h){for(var f="";h>0;--h)f+=d;return f}for(var a=0,o=[],s=n(e.length-1)+2,l=0;a<e.length;){var c=n(a)+1;a===0&&(c=0);var u=String(e.get(a));u.length>l&&(l=u.length),o[c]=o[c]||[],o[c].push(u),a+=1}return o.map(function(d,h){var f=Math.pow(2,s-h)-1;return r(" ",Math.floor(f/2)*l)+d.map(function(p){var m=(l-p.length)/2;return r(" ",Math.ceil(m))+p+r(" ",Math.floor(m))}).join(r(" ",f*l))}).join(`
`)},t.heapify=function(e,n){var r=new t(n);return r.heapArray=e,r.init(),r},t.heappop=function(e,n){var r=new t(n);return r.heapArray=e,r.pop()},t.heappush=function(e,n,r){var a=new t(r);a.heapArray=e,a.push(n)},t.heappushpop=function(e,n,r){var a=new t(r);return a.heapArray=e,a.pushpop(n)},t.heapreplace=function(e,n,r){var a=new t(r);return a.heapArray=e,a.replace(n)},t.heaptop=function(e,n,r){n===void 0&&(n=1);var a=new t(r);return a.heapArray=e,a.top(n)},t.heapbottom=function(e,n,r){n===void 0&&(n=1);var a=new t(r);return a.heapArray=e,a.bottom(n)},t.nlargest=function(e,n,r){var a=new t(r);return a.heapArray=wA([],jg(n),!1),a.init(),a.top(e)},t.nsmallest=function(e,n,r){var a=new t(r);return a.heapArray=wA([],jg(n),!1),a.init(),a.bottom(e)},t.prototype.add=function(e){return this._sortNodeUp(this.heapArray.push(e)-1),this._applyLimit(),!0},t.prototype.addAll=function(e){var n,r=this.length;(n=this.heapArray).push.apply(n,wA([],jg(e),!1));for(var a=this.length;r<a;++r)this._sortNodeUp(r);return this._applyLimit(),!0},t.prototype.bottom=function(e){return e===void 0&&(e=1),this.heapArray.length===0||e<=0?[]:this.heapArray.length===1?[this.heapArray[0]]:e>=this.heapArray.length?wA([],jg(this.heapArray),!1):this._bottomN_push(~~e)},t.prototype.check=function(){var e=this;return this.heapArray.find(function(n,r){return!!e.getChildrenOf(r).find(function(a){return e.compare(n,a)>0})})},t.prototype.clear=function(){this.heapArray=[]},t.prototype.clone=function(){var e=new t(this.comparator());return e.heapArray=this.toArray(),e._limit=this._limit,e},t.prototype.comparator=function(){return this.compare},t.prototype.contains=function(e,n){return n===void 0&&(n=t.defaultIsEqual),this.indexOf(e,n)!==-1},t.prototype.init=function(e){e&&(this.heapArray=wA([],jg(e),!1));for(var n=Math.floor(this.heapArray.length);n>=0;--n)this._sortNodeDown(n);this._applyLimit()},t.prototype.isEmpty=function(){return this.length===0},t.prototype.indexOf=function(e,n){if(n===void 0&&(n=t.defaultIsEqual),this.heapArray.length===0)return-1;for(var r=[],a=0;a<this.heapArray.length;){var o=this.heapArray[a];if(n(o,e))return a;this.compare(o,e)<=0&&r.push.apply(r,wA([],jg(t.getChildrenIndexOf(a)),!1)),a=r.shift()||this.heapArray.length}return-1},t.prototype.indexOfEvery=function(e,n){if(n===void 0&&(n=t.defaultIsEqual),this.heapArray.length===0)return[];for(var r=[],a=[],o=0;o<this.heapArray.length;){var s=this.heapArray[o];n(s,e)?(a.push(o),r.push.apply(r,wA([],jg(t.getChildrenIndexOf(o)),!1))):this.compare(s,e)<=0&&r.push.apply(r,wA([],jg(t.getChildrenIndexOf(o)),!1)),o=r.shift()||this.heapArray.length}return a},t.prototype.leafs=function(){if(this.heapArray.length===0)return[];var e=t.getParentIndexOf(this.heapArray.length-1);return this.heapArray.slice(e+1)},Object.defineProperty(t.prototype,"length",{get:function(){return this.heapArray.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){e<0||isNaN(e)?this._limit=0:this._limit=~~e,this._applyLimit()},enumerable:!1,configurable:!0}),t.prototype.setLimit=function(e){return this.limit=e,e<0||isNaN(e)?NaN:this._limit},t.prototype.peek=function(){return this.heapArray[0]},t.prototype.pop=function(){var e=this.heapArray.pop();return this.length>0&&e!==void 0?this.replace(e):e},t.prototype.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length<1?!1:e.length===1?this.add(e[0]):this.addAll(e)},t.prototype.pushpop=function(e){var n;return this.compare(this.heapArray[0],e)<0&&(n=jg([this.heapArray[0],e],2),e=n[0],this.heapArray[0]=n[1],this._sortNodeDown(0)),e},t.prototype.remove=function(e,n){if(n===void 0&&(n=t.defaultIsEqual),this.length>0){if(e===void 0)return this.pop(),!0;var r=this.indexOf(e,n);if(r>=0)return r===0?this.pop():r===this.length-1?this.heapArray.pop():(this.heapArray.splice(r,1,this.heapArray.pop()),this._sortNodeUp(r),this._sortNodeDown(r)),!0}return!1},t.prototype.replace=function(e){var n=this.heapArray[0];return this.heapArray[0]=e,this._sortNodeDown(0),n},t.prototype.size=function(){return this.length},t.prototype.top=function(e){return e===void 0&&(e=1),this.heapArray.length===0||e<=0?[]:this.heapArray.length===1||e===1?[this.heapArray[0]]:e>=this.heapArray.length?wA([],jg(this.heapArray),!1):this._topN_push(~~e)},t.prototype.toArray=function(){return wA([],jg(this.heapArray),!1)},t.prototype.toString=function(){return this.heapArray.toString()},t.prototype.get=function(e){return this.heapArray[e]},t.prototype.getChildrenOf=function(e){var n=this;return t.getChildrenIndexOf(e).map(function(r){return n.heapArray[r]}).filter(function(r){return r!==void 0})},t.prototype.getParentOf=function(e){var n=t.getParentIndexOf(e);return this.heapArray[n]},t.prototype[Symbol.iterator]=function(){return sEi(this,function(e){switch(e.label){case 0:return this.length?[4,this.pop()]:[3,2];case 1:return e.sent(),[3,0];case 2:return[2]}})},t.prototype.iterator=function(){return this.toArray()},t.prototype._applyLimit=function(){if(this._limit>0&&this._limit<this.heapArray.length)for(var e=this.heapArray.length-this._limit;e;)this.heapArray.pop(),--e},t.prototype._bottomN_push=function(e){var n=new t(this.compare);n.limit=e,n.heapArray=this.heapArray.slice(-e),n.init();for(var r=this.heapArray.length-1-e,a=t.getParentIndexOf(r),o=[],s=r;s>a;--s)o.push(s);for(var l=this.heapArray;o.length;){var s=o.shift();this.compare(l[s],n.peek())>0&&(n.replace(l[s]),s%2&&o.push(t.getParentIndexOf(s)))}return n.toArray()},t.prototype._moveNode=function(e,n){var r;r=jg([this.heapArray[n],this.heapArray[e]],2),this.heapArray[e]=r[0],this.heapArray[n]=r[1]},t.prototype._sortNodeDown=function(e){for(var n=this,r=e<this.heapArray.length-1,a=this.heapArray[e],o=function(u,d){return n.heapArray.length>d&&n.compare(n.heapArray[d],n.heapArray[u])<0&&(u=d),u};r;){var s=t.getChildrenIndexOf(e),l=s.reduce(o,s[0]),c=this.heapArray[l];typeof c<"u"&&this.compare(a,c)>0?(this._moveNode(e,l),e=l):r=!1}},t.prototype._sortNodeUp=function(e){for(var n=e>0;n;){var r=t.getParentIndexOf(e);r>=0&&this.compare(this.heapArray[r],this.heapArray[e])>0?(this._moveNode(e,r),e=r):n=!1}},t.prototype._topN_push=function(e){var n=new t(this._invertedCompare);n.limit=e;for(var r=[0],a=this.heapArray;r.length;){var o=r.shift();o<a.length&&(n.length<e?(n.push(a[o]),r.push.apply(r,wA([],jg(t.getChildrenIndexOf(o)),!1))):this.compare(a[o],n.peek())<0&&(n.replace(a[o]),r.push.apply(r,wA([],jg(t.getChildrenIndexOf(o)),!1))))}return n.toArray()},t.prototype._topN_fill=function(e){var n=this.heapArray,r=new t(this._invertedCompare);r.limit=e,r.heapArray=n.slice(0,e),r.init();for(var a=t.getParentIndexOf(e-1)+1,o=[],s=a;s<e;++s)o.push.apply(o,wA([],jg(t.getChildrenIndexOf(s).filter(function(l){return l<n.length})),!1));for((e-1)%2&&o.push(e);o.length;){var s=o.shift();s<n.length&&this.compare(n[s],r.peek())<0&&(r.replace(n[s]),o.push.apply(o,wA([],jg(t.getChildrenIndexOf(s)),!1)))}return r.toArray()},t.prototype._topN_heap=function(e){for(var n=this.clone(),r=[],a=0;a<e;++a)r.push(n.pop());return r},t.prototype._topIdxOf=function(e){if(!e.length)return-1;for(var n=0,r=e[n],a=1;a<e.length;++a){var o=this.compare(e[a],r);o<0&&(n=a,r=e[a])}return n},t.prototype._topOf=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=new t(this.compare);return r.init(e),r.peek()},t}(),Nsn=.95,lEi=.01,cEi=.2,uEi=20,Twe=["category_outlier","trend","change_point","time_series_outlier","majority","low_variance","correlation"],dEi=iae,hEi=fG,fEi="[object AsyncFunction]",pEi="[object Function]",mEi="[object GeneratorFunction]",gEi="[object Proxy]";function vEi(t){if(!hEi(t))return!1;var e=dEi(t);return e==pEi||e==mEi||e==fEi||e==gEi}var Isn=vEi,AEi=hC,yEi=AEi["__core-js_shared__"],bEi=yEi,NOe=bEi,LSt=function(){var t=/[^.]+$/.exec(NOe&&NOe.keys&&NOe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function xEi(t){return!!LSt&&LSt in t}var EEi=xEi,SEi=Function.prototype,wEi=SEi.toString;function _Ei(t){if(t!=null){try{return wEi.call(t)}catch{}try{return t+""}catch{}}return""}var Psn=_Ei,TEi=Isn,CEi=EEi,kEi=fG,REi=Psn,MEi=/[\\^$.*+?()[\]{}|]/g,NEi=/^\[object .+?Constructor\]$/,IEi=Function.prototype,PEi=Object.prototype,OEi=IEi.toString,LEi=PEi.hasOwnProperty,BEi=RegExp("^"+OEi.call(LEi).replace(MEi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function DEi(t){if(!kEi(t)||CEi(t))return!1;var e=TEi(t)?BEi:NEi;return e.test(REi(t))}var $Ei=DEi;function FEi(t,e){return t==null?void 0:t[e]}var jEi=FEi,HEi=$Ei,UEi=jEi;function zEi(t,e){var n=UEi(t,e);return HEi(n)?n:void 0}var a9=zEi,GEi=a9,VEi=function(){try{var t=GEi(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Osn=VEi,BSt=Osn;function KEi(t,e,n){e=="__proto__"&&BSt?BSt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var WEi=KEi;function QEi(t,e,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;){var s=t[a];e(r,s,n(s),t)}return r}var qEi=QEi;function YEi(t){return function(e,n,r){for(var a=-1,o=Object(e),s=r(e),l=s.length;l--;){var c=s[t?l:++a];if(n(o[c],c,o)===!1)break}return e}}var JEi=YEi,ZEi=JEi,XEi=ZEi(),eSi=XEi;function tSi(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var nSi=tSi,rSi=iae,iSi=pG,aSi="[object Arguments]";function oSi(t){return iSi(t)&&rSi(t)==aSi}var sSi=oSi,DSt=sSi,lSi=pG,Lsn=Object.prototype,cSi=Lsn.hasOwnProperty,uSi=Lsn.propertyIsEnumerable,dSi=DSt(function(){return arguments}())?DSt:function(t){return lSi(t)&&cSi.call(t,"callee")&&!uSi.call(t,"callee")},Unt=dSi,hSi=Array.isArray,Ww=hSi,$Ae={exports:{}};function fSi(){return!1}var pSi=fSi;$Ae.exports;(function(t,e){var n=hC,r=pSi,a=e&&!e.nodeType&&e,o=a&&!0&&t&&!t.nodeType&&t,s=o&&o.exports===a,l=s?n.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;t.exports=u})($Ae,$Ae.exports);var Bsn=$Ae.exports,mSi=9007199254740991,gSi=/^(?:0|[1-9]\d*)$/;function vSi(t,e){var n=typeof t;return e=e??mSi,!!e&&(n=="number"||n!="symbol"&&gSi.test(t))&&t>-1&&t%1==0&&t<e}var znt=vSi,ASi=9007199254740991;function ySi(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ASi}var Gnt=ySi,bSi=iae,xSi=Gnt,ESi=pG,SSi="[object Arguments]",wSi="[object Array]",_Si="[object Boolean]",TSi="[object Date]",CSi="[object Error]",kSi="[object Function]",RSi="[object Map]",MSi="[object Number]",NSi="[object Object]",ISi="[object RegExp]",PSi="[object Set]",OSi="[object String]",LSi="[object WeakMap]",BSi="[object ArrayBuffer]",DSi="[object DataView]",$Si="[object Float32Array]",FSi="[object Float64Array]",jSi="[object Int8Array]",HSi="[object Int16Array]",USi="[object Int32Array]",zSi="[object Uint8Array]",GSi="[object Uint8ClampedArray]",VSi="[object Uint16Array]",KSi="[object Uint32Array]",Ju={};Ju[$Si]=Ju[FSi]=Ju[jSi]=Ju[HSi]=Ju[USi]=Ju[zSi]=Ju[GSi]=Ju[VSi]=Ju[KSi]=!0;Ju[SSi]=Ju[wSi]=Ju[BSi]=Ju[_Si]=Ju[DSi]=Ju[TSi]=Ju[CSi]=Ju[kSi]=Ju[RSi]=Ju[MSi]=Ju[NSi]=Ju[ISi]=Ju[PSi]=Ju[OSi]=Ju[LSi]=!1;function WSi(t){return ESi(t)&&xSi(t.length)&&!!Ju[bSi(t)]}var QSi=WSi;function qSi(t){return function(e){return t(e)}}var Vnt=qSi,FAe={exports:{}};FAe.exports;(function(t,e){var n=GYt,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===r,s=o&&n.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();t.exports=l})(FAe,FAe.exports);var YSi=FAe.exports,JSi=QSi,ZSi=Vnt,$St=YSi,FSt=$St&&$St.isTypedArray,XSi=FSt?ZSi(FSt):JSi,Dsn=XSi,ewi=nSi,twi=Unt,nwi=Ww,rwi=Bsn,iwi=znt,awi=Dsn,owi=Object.prototype,swi=owi.hasOwnProperty;function lwi(t,e){var n=nwi(t),r=!n&&twi(t),a=!n&&!r&&rwi(t),o=!n&&!r&&!a&&awi(t),s=n||r||a||o,l=s?ewi(t.length,String):[],c=l.length;for(var u in t)(e||swi.call(t,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||iwi(u,c)))&&l.push(u);return l}var cwi=lwi,uwi=Object.prototype;function dwi(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||uwi;return t===n}var hwi=dwi;function fwi(t,e){return function(n){return t(e(n))}}var pwi=fwi,mwi=pwi,gwi=mwi(Object.keys,Object),vwi=gwi,Awi=hwi,ywi=vwi,bwi=Object.prototype,xwi=bwi.hasOwnProperty;function Ewi(t){if(!Awi(t))return ywi(t);var e=[];for(var n in Object(t))xwi.call(t,n)&&n!="constructor"&&e.push(n);return e}var Swi=Ewi,wwi=Isn,_wi=Gnt;function Twi(t){return t!=null&&_wi(t.length)&&!wwi(t)}var hoe=Twi,Cwi=cwi,kwi=Swi,Rwi=hoe;function Mwi(t){return Rwi(t)?Cwi(t):kwi(t)}var Knt=Mwi,Nwi=eSi,Iwi=Knt;function Pwi(t,e){return t&&Nwi(t,e,Iwi)}var Owi=Pwi,Lwi=hoe;function Bwi(t,e){return function(n,r){if(n==null)return n;if(!Lwi(n))return t(n,r);for(var a=n.length,o=e?a:-1,s=Object(n);(e?o--:++o<a)&&r(s[o],o,s)!==!1;);return n}}var Dwi=Bwi,$wi=Owi,Fwi=Dwi,jwi=Fwi($wi),$sn=jwi,Hwi=$sn;function Uwi(t,e,n,r){return Hwi(t,function(a,o,s){e(r,a,n(a),s)}),r}var zwi=Uwi;function Gwi(){this.__data__=[],this.size=0}var Vwi=Gwi;function Kwi(t,e){return t===e||t!==t&&e!==e}var Wnt=Kwi,Wwi=Wnt;function Qwi(t,e){for(var n=t.length;n--;)if(Wwi(t[n][0],e))return n;return-1}var Cwe=Qwi,qwi=Cwe,Ywi=Array.prototype,Jwi=Ywi.splice;function Zwi(t){var e=this.__data__,n=qwi(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Jwi.call(e,n,1),--this.size,!0}var Xwi=Zwi,e_i=Cwe;function t_i(t){var e=this.__data__,n=e_i(e,t);return n<0?void 0:e[n][1]}var n_i=t_i,r_i=Cwe;function i_i(t){return r_i(this.__data__,t)>-1}var a_i=i_i,o_i=Cwe;function s_i(t,e){var n=this.__data__,r=o_i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var l_i=s_i,c_i=Vwi,u_i=Xwi,d_i=n_i,h_i=a_i,f_i=l_i;function ZG(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ZG.prototype.clear=c_i;ZG.prototype.delete=u_i;ZG.prototype.get=d_i;ZG.prototype.has=h_i;ZG.prototype.set=f_i;var kwe=ZG,p_i=kwe;function m_i(){this.__data__=new p_i,this.size=0}var g_i=m_i;function v_i(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var A_i=v_i;function y_i(t){return this.__data__.get(t)}var b_i=y_i;function x_i(t){return this.__data__.has(t)}var E_i=x_i,S_i=a9,w_i=hC,__i=S_i(w_i,"Map"),Qnt=__i,T_i=a9,C_i=T_i(Object,"create"),Rwe=C_i,jSt=Rwe;function k_i(){this.__data__=jSt?jSt(null):{},this.size=0}var R_i=k_i;function M_i(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var N_i=M_i,I_i=Rwe,P_i="__lodash_hash_undefined__",O_i=Object.prototype,L_i=O_i.hasOwnProperty;function B_i(t){var e=this.__data__;if(I_i){var n=e[t];return n===P_i?void 0:n}return L_i.call(e,t)?e[t]:void 0}var D_i=B_i,$_i=Rwe,F_i=Object.prototype,j_i=F_i.hasOwnProperty;function H_i(t){var e=this.__data__;return $_i?e[t]!==void 0:j_i.call(e,t)}var U_i=H_i,z_i=Rwe,G_i="__lodash_hash_undefined__";function V_i(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=z_i&&e===void 0?G_i:e,this}var K_i=V_i,W_i=R_i,Q_i=N_i,q_i=D_i,Y_i=U_i,J_i=K_i;function XG(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}XG.prototype.clear=W_i;XG.prototype.delete=Q_i;XG.prototype.get=q_i;XG.prototype.has=Y_i;XG.prototype.set=J_i;var Z_i=XG,HSt=Z_i,X_i=kwe,eTi=Qnt;function tTi(){this.size=0,this.__data__={hash:new HSt,map:new(eTi||X_i),string:new HSt}}var nTi=tTi;function rTi(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var iTi=rTi,aTi=iTi;function oTi(t,e){var n=t.__data__;return aTi(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Mwe=oTi,sTi=Mwe;function lTi(t){var e=sTi(this,t).delete(t);return this.size-=e?1:0,e}var cTi=lTi,uTi=Mwe;function dTi(t){return uTi(this,t).get(t)}var hTi=dTi,fTi=Mwe;function pTi(t){return fTi(this,t).has(t)}var mTi=pTi,gTi=Mwe;function vTi(t,e){var n=gTi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var ATi=vTi,yTi=nTi,bTi=cTi,xTi=hTi,ETi=mTi,STi=ATi;function eV(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}eV.prototype.clear=yTi;eV.prototype.delete=bTi;eV.prototype.get=xTi;eV.prototype.has=ETi;eV.prototype.set=STi;var qnt=eV,wTi=kwe,_Ti=Qnt,TTi=qnt,CTi=200;function kTi(t,e){var n=this.__data__;if(n instanceof wTi){var r=n.__data__;if(!_Ti||r.length<CTi-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new TTi(r)}return n.set(t,e),this.size=n.size,this}var RTi=kTi,MTi=kwe,NTi=g_i,ITi=A_i,PTi=b_i,OTi=E_i,LTi=RTi;function tV(t){var e=this.__data__=new MTi(t);this.size=e.size}tV.prototype.clear=NTi;tV.prototype.delete=ITi;tV.prototype.get=PTi;tV.prototype.has=OTi;tV.prototype.set=LTi;var Fsn=tV,BTi="__lodash_hash_undefined__";function DTi(t){return this.__data__.set(t,BTi),this}var $Ti=DTi;function FTi(t){return this.__data__.has(t)}var jTi=FTi,HTi=qnt,UTi=$Ti,zTi=jTi;function jAe(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new HTi;++e<n;)this.add(t[e])}jAe.prototype.add=jAe.prototype.push=UTi;jAe.prototype.has=zTi;var Ynt=jAe;function GTi(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var VTi=GTi;function KTi(t,e){return t.has(e)}var Jnt=KTi,WTi=Ynt,QTi=VTi,qTi=Jnt,YTi=1,JTi=2;function ZTi(t,e,n,r,a,o){var s=n&YTi,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=n&JTi?new WTi:void 0;for(o.set(t,e),o.set(e,t);++h<l;){var m=t[h],g=e[h];if(r)var v=s?r(g,m,h,e,t,o):r(m,g,h,t,e,o);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!QTi(e,function(A,y){if(!qTi(p,y)&&(m===A||a(m,A,n,r,o)))return p.push(y)})){f=!1;break}}else if(!(m===g||a(m,g,n,r,o))){f=!1;break}}return o.delete(t),o.delete(e),f}var jsn=ZTi,XTi=hC,e2i=XTi.Uint8Array,t2i=e2i;function n2i(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}var r2i=n2i;function i2i(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Znt=i2i,USt=rae,zSt=t2i,a2i=Wnt,o2i=jsn,s2i=r2i,l2i=Znt,c2i=1,u2i=2,d2i="[object Boolean]",h2i="[object Date]",f2i="[object Error]",p2i="[object Map]",m2i="[object Number]",g2i="[object RegExp]",v2i="[object Set]",A2i="[object String]",y2i="[object Symbol]",b2i="[object ArrayBuffer]",x2i="[object DataView]",GSt=USt?USt.prototype:void 0,IOe=GSt?GSt.valueOf:void 0;function E2i(t,e,n,r,a,o,s){switch(n){case x2i:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b2i:return!(t.byteLength!=e.byteLength||!o(new zSt(t),new zSt(e)));case d2i:case h2i:case m2i:return a2i(+t,+e);case f2i:return t.name==e.name&&t.message==e.message;case g2i:case A2i:return t==e+"";case p2i:var l=s2i;case v2i:var c=r&c2i;if(l||(l=l2i),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=u2i,s.set(t,e);var d=o2i(l(t),l(e),r,a,o,s);return s.delete(t),d;case y2i:if(IOe)return IOe.call(t)==IOe.call(e)}return!1}var S2i=E2i;function w2i(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var Hsn=w2i,_2i=Hsn,T2i=Ww;function C2i(t,e,n){var r=e(t);return T2i(t)?r:_2i(r,n(t))}var k2i=C2i;function R2i(t,e){for(var n=-1,r=t==null?0:t.length,a=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[a++]=s)}return o}var M2i=R2i;function N2i(){return[]}var I2i=N2i,P2i=M2i,O2i=I2i,L2i=Object.prototype,B2i=L2i.propertyIsEnumerable,VSt=Object.getOwnPropertySymbols,D2i=VSt?function(t){return t==null?[]:(t=Object(t),P2i(VSt(t),function(e){return B2i.call(t,e)}))}:O2i,$2i=D2i,F2i=k2i,j2i=$2i,H2i=Knt;function U2i(t){return F2i(t,H2i,j2i)}var z2i=U2i,KSt=z2i,G2i=1,V2i=Object.prototype,K2i=V2i.hasOwnProperty;function W2i(t,e,n,r,a,o){var s=n&G2i,l=KSt(t),c=l.length,u=KSt(e),d=u.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var f=l[h];if(!(s?f in e:K2i.call(e,f)))return!1}var p=o.get(t),m=o.get(e);if(p&&m)return p==e&&m==t;var g=!0;o.set(t,e),o.set(e,t);for(var v=s;++h<c;){f=l[h];var A=t[f],y=e[f];if(r)var S=s?r(y,A,f,e,t,o):r(A,y,f,t,e,o);if(!(S===void 0?A===y||a(A,y,n,r,o):S)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(g=!1)}return o.delete(t),o.delete(e),g}var Q2i=W2i,q2i=a9,Y2i=hC,J2i=q2i(Y2i,"DataView"),Z2i=J2i,X2i=a9,eCi=hC,tCi=X2i(eCi,"Promise"),nCi=tCi,rCi=a9,iCi=hC,aCi=rCi(iCi,"Set"),Usn=aCi,oCi=a9,sCi=hC,lCi=oCi(sCi,"WeakMap"),cCi=lCi,Mze=Z2i,Nze=Qnt,Ize=nCi,Pze=Usn,Oze=cCi,zsn=iae,nV=Psn,WSt="[object Map]",uCi="[object Object]",QSt="[object Promise]",qSt="[object Set]",YSt="[object WeakMap]",JSt="[object DataView]",dCi=nV(Mze),hCi=nV(Nze),fCi=nV(Ize),pCi=nV(Pze),mCi=nV(Oze),ZL=zsn;(Mze&&ZL(new Mze(new ArrayBuffer(1)))!=JSt||Nze&&ZL(new Nze)!=WSt||Ize&&ZL(Ize.resolve())!=QSt||Pze&&ZL(new Pze)!=qSt||Oze&&ZL(new Oze)!=YSt)&&(ZL=function(t){var e=zsn(t),n=e==uCi?t.constructor:void 0,r=n?nV(n):"";if(r)switch(r){case dCi:return JSt;case hCi:return WSt;case fCi:return QSt;case pCi:return qSt;case mCi:return YSt}return e});var gCi=ZL,POe=Fsn,vCi=jsn,ACi=S2i,yCi=Q2i,ZSt=gCi,XSt=Ww,ewt=Bsn,bCi=Dsn,xCi=1,twt="[object Arguments]",nwt="[object Array]",iue="[object Object]",ECi=Object.prototype,rwt=ECi.hasOwnProperty;function SCi(t,e,n,r,a,o){var s=XSt(t),l=XSt(e),c=s?nwt:ZSt(t),u=l?nwt:ZSt(e);c=c==twt?iue:c,u=u==twt?iue:u;var d=c==iue,h=u==iue,f=c==u;if(f&&ewt(t)){if(!ewt(e))return!1;s=!0,d=!1}if(f&&!d)return o||(o=new POe),s||bCi(t)?vCi(t,e,n,r,a,o):ACi(t,e,c,n,r,a,o);if(!(n&xCi)){var p=d&&rwt.call(t,"__wrapped__"),m=h&&rwt.call(e,"__wrapped__");if(p||m){var g=p?t.value():t,v=m?e.value():e;return o||(o=new POe),a(g,v,n,r,o)}}return f?(o||(o=new POe),yCi(t,e,n,r,a,o)):!1}var wCi=SCi,_Ci=wCi,iwt=pG;function Gsn(t,e,n,r,a){return t===e?!0:t==null||e==null||!iwt(t)&&!iwt(e)?t!==t&&e!==e:_Ci(t,e,n,r,Gsn,a)}var Vsn=Gsn,TCi=Fsn,CCi=Vsn,kCi=1,RCi=2;function MCi(t,e,n,r){var a=n.length,o=a,s=!r;if(t==null)return!o;for(t=Object(t);a--;){var l=n[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<o;){l=n[a];var c=l[0],u=t[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in t))return!1}else{var h=new TCi;if(r)var f=r(u,d,c,t,e,h);if(!(f===void 0?CCi(d,u,kCi|RCi,r,h):f))return!1}}return!0}var NCi=MCi,ICi=fG;function PCi(t){return t===t&&!ICi(t)}var Ksn=PCi,OCi=Ksn,LCi=Knt;function BCi(t){for(var e=LCi(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,OCi(a)]}return e}var DCi=BCi;function $Ci(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var Wsn=$Ci,FCi=NCi,jCi=DCi,HCi=Wsn;function UCi(t){var e=jCi(t);return e.length==1&&e[0][2]?HCi(e[0][0],e[0][1]):function(n){return n===t||FCi(n,t,e)}}var zCi=UCi,GCi=Ww,VCi=aae,KCi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WCi=/^\w*$/;function QCi(t,e){if(GCi(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||VCi(t)?!0:WCi.test(t)||!KCi.test(t)||e!=null&&t in Object(e)}var Xnt=QCi,Qsn=qnt,qCi="Expected a function";function ert(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(qCi);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,r);return n.cache=o.set(a,s)||o,s};return n.cache=new(ert.Cache||Qsn),n}ert.Cache=Qsn;var YCi=ert,JCi=YCi,ZCi=500;function XCi(t){var e=JCi(t,function(r){return n.size===ZCi&&n.clear(),r}),n=e.cache;return e}var eki=XCi,tki=eki,nki=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rki=/\\(\\)?/g,iki=tki(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(nki,function(n,r,a,o){e.push(a?o.replace(rki,"$1"):r||n)}),e}),aki=iki;function oki(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}var Nwe=oki,awt=rae,ski=Nwe,lki=Ww,cki=aae,uki=1/0,owt=awt?awt.prototype:void 0,swt=owt?owt.toString:void 0;function qsn(t){if(typeof t=="string")return t;if(lki(t))return ski(t,qsn)+"";if(cki(t))return swt?swt.call(t):"";var e=t+"";return e=="0"&&1/t==-uki?"-0":e}var dki=qsn,hki=dki;function fki(t){return t==null?"":hki(t)}var Ysn=fki,pki=Ww,mki=Xnt,gki=aki,vki=Ysn;function Aki(t,e){return pki(t)?t:mki(t,e)?[t]:gki(vki(t))}var Jsn=Aki,yki=aae,bki=1/0;function xki(t){if(typeof t=="string"||yki(t))return t;var e=t+"";return e=="0"&&1/t==-bki?"-0":e}var Iwe=xki,Eki=Jsn,Ski=Iwe;function wki(t,e){e=Eki(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Ski(e[n++])];return n&&n==r?t:void 0}var trt=wki,_ki=trt;function Tki(t,e,n){var r=t==null?void 0:_ki(t,e);return r===void 0?n:r}var Zsn=Tki;const HAe=Li(Zsn);function Cki(t,e){return t!=null&&e in Object(t)}var kki=Cki,Rki=Jsn,Mki=Unt,Nki=Ww,Iki=znt,Pki=Gnt,Oki=Iwe;function Lki(t,e,n){e=Rki(e,t);for(var r=-1,a=e.length,o=!1;++r<a;){var s=Oki(e[r]);if(!(o=t!=null&&n(t,s)))break;t=t[s]}return o||++r!=a?o:(a=t==null?0:t.length,!!a&&Pki(a)&&Iki(s,a)&&(Nki(t)||Mki(t)))}var Bki=Lki,Dki=kki,$ki=Bki;function Fki(t,e){return t!=null&&$ki(t,e,Dki)}var jki=Fki,Hki=Vsn,Uki=Zsn,zki=jki,Gki=Xnt,Vki=Ksn,Kki=Wsn,Wki=Iwe,Qki=1,qki=2;function Yki(t,e){return Gki(t)&&Vki(e)?Kki(Wki(t),e):function(n){var r=Uki(n,t);return r===void 0&&r===e?zki(n,t):Hki(e,r,Qki|qki)}}var Jki=Yki;function Zki(t){return t}var rV=Zki;function Xki(t){return function(e){return e==null?void 0:e[t]}}var eRi=Xki,tRi=trt;function nRi(t){return function(e){return tRi(e,t)}}var rRi=nRi,iRi=eRi,aRi=rRi,oRi=Xnt,sRi=Iwe;function lRi(t){return oRi(t)?iRi(sRi(t)):aRi(t)}var cRi=lRi,uRi=zCi,dRi=Jki,hRi=rV,fRi=Ww,pRi=cRi;function mRi(t){return typeof t=="function"?t:t==null?hRi:typeof t=="object"?fRi(t)?dRi(t[0],t[1]):uRi(t):pRi(t)}var nrt=mRi,gRi=qEi,vRi=zwi,ARi=nrt,yRi=Ww;function bRi(t,e){return function(n,r){var a=yRi(n)?gRi:vRi,o=e?e():{};return a(n,t,ARi(r),o)}}var xRi=bRi,ERi=WEi,SRi=xRi,wRi=Object.prototype,_Ri=wRi.hasOwnProperty,TRi=SRi(function(t,e,n){_Ri.call(t,n)?t[n].push(e):ERi(t,n,[e])}),CRi=TRi;const Dne=Li(CRi);var Xsn=function(){function t(e,n,r){this.lang=r,this.prepareVariables(e,n),this.applyStrategy()}return t}();function kRi(t,e,n){var r=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(a);++r<a;)o[r]=t[r+e];return o}var RRi=kRi,MRi=RRi;function NRi(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:MRi(t,e,n)}var IRi=NRi,PRi="\\ud800-\\udfff",ORi="\\u0300-\\u036f",LRi="\\ufe20-\\ufe2f",BRi="\\u20d0-\\u20ff",DRi=ORi+LRi+BRi,$Ri="\\ufe0e\\ufe0f",FRi="\\u200d",jRi=RegExp("["+FRi+PRi+DRi+$Ri+"]");function HRi(t){return jRi.test(t)}var eln=HRi;function URi(t){return t.split("")}var zRi=URi,tln="\\ud800-\\udfff",GRi="\\u0300-\\u036f",VRi="\\ufe20-\\ufe2f",KRi="\\u20d0-\\u20ff",WRi=GRi+VRi+KRi,QRi="\\ufe0e\\ufe0f",qRi="["+tln+"]",Lze="["+WRi+"]",Bze="\\ud83c[\\udffb-\\udfff]",YRi="(?:"+Lze+"|"+Bze+")",nln="[^"+tln+"]",rln="(?:\\ud83c[\\udde6-\\uddff]){2}",iln="[\\ud800-\\udbff][\\udc00-\\udfff]",JRi="\\u200d",aln=YRi+"?",oln="["+QRi+"]?",ZRi="(?:"+JRi+"(?:"+[nln,rln,iln].join("|")+")"+oln+aln+")*",XRi=oln+aln+ZRi,eMi="(?:"+[nln+Lze+"?",Lze,rln,iln,qRi].join("|")+")",tMi=RegExp(Bze+"(?="+Bze+")|"+eMi+XRi,"g");function nMi(t){return t.match(tMi)||[]}var rMi=nMi,iMi=zRi,aMi=eln,oMi=rMi;function sMi(t){return aMi(t)?oMi(t):iMi(t)}var lMi=sMi,cMi=IRi,uMi=eln,dMi=lMi,hMi=Ysn;function fMi(t){return function(e){e=hMi(e);var n=uMi(e)?dMi(e):void 0,r=n?n[0]:e.charAt(0),a=n?cMi(n,1).join(""):e.slice(1);return r[t]()+a}}var pMi=fMi,mMi=pMi,gMi=mMi("toUpperCase"),vMi=gMi;const AMi=Li(vMi);var OOe={"en-US":{punctuation_stop:".",punctuation_comma:",",punctuation_left_parentheses:"(",punctuation_right_parentheses:")"},"zh-CN":{punctuation_stop:"。",punctuation_comma:"，",punctuation_left_parentheses:"（",punctuation_right_parentheses:"）"}};function lwt(t){var e=t.substr(t.length-1);return e===" "?t.substr(0,t.length-1):t}function Dze(t,e){var n={category_outlier:"类别异常",change_point:"异常点",correlation:"相关性",low_variance:"低方差",majority:"显著性",trend:"趋势",time_series_outlier:"时间序列异常"};return e==="en-US"?t.replace("_"," "):e==="zh-CN"?n[t]:""}function sln(t,e){var n={decreasing:"趋势下降",increasing:"趋势上升","no trend":"无趋势"};return e==="en-US"?t:e==="zh-CN"?n[t]:""}var yMi=["punctuation_right_parentheses","punctuation_comma","punctuation_stop"],bMi=["punctuation_comma","punctuation_stop","punctuation_right_parentheses"],hO=function(){function t(e){e===void 0&&(e="en-US"),this.lang=e,this.schema=[],this.content=""}return t.prototype.add=function(e,n,r){r===void 0&&(r={leftSpace:!1,rightSpace:!0});var a=r.leftSpace,o=a===void 0?!1:a,s=r.rightSpace,l=s===void 0?!1:s,c=this.lang==="en-US"?(o?" ":"")+e+(l?" ":""):e;n?(o&&this.schema.push({type:"text",value:" "}),this.schema.push({type:"entity",value:e,metadata:{entityType:n}}),l&&this.schema.push({type:"text",value:" "})):this.schema.push({type:"text",value:c}),this.content+=c},t.prototype.addSymbol=function(e){var n,r=(n=OOe==null?void 0:OOe[this.lang])===null||n===void 0?void 0:n[e];if(r){if(this.lang==="en-US"&&bMi.includes(e)){var a=this.schema.pop();if(a){var o=lwt(a.value);o&&(a.value=o,this.schema.push(a)),this.content=lwt(this.content)}}this.add(r,void 0,{leftSpace:!1,rightSpace:yMi.includes(e)})}},t.prototype.getSchema=function(){return this.schema},t.prototype.getContent=function(){return this.content},t}();function xMi(t,e){var n=t.subspace,r=t.insightTypes,a=t.measure,o=t.measureMethod,s=t.breakdown,l=new hO(e),c=n.length>0;return c&&(l.add(e==="zh-CN"?"对于":"For"),l.addSymbol("punctuation_left_parentheses"),n.forEach(function(u,d){l.add(u.value,"dim_value"),l.addSymbol("punctuation_left_parentheses"),l.add(u.dimension),l.addSymbol("punctuation_right_parentheses"),d<n.length-1&&l.addSymbol("punctuation_comma")}),l.addSymbol("punctuation_right_parentheses"),l.addSymbol("punctuation_comma")),e==="en-US"&&(r.forEach(function(u,d){var h=Dze(u,e);d===0&&!c&&(h=AMi(h)),l.add(h),d<r.length-2?l.addSymbol("punctuation_comma"):d===r.length-2&&l.add("and")}),l.add("appearing in"),l.add(a),l.addSymbol("punctuation_left_parentheses"),l.add(o),l.addSymbol("punctuation_right_parentheses"),l.add("by"),l.add(s)),e==="zh-CN"&&(l.add("按"),l.add(s),l.add("下钻"),l.addSymbol("punctuation_comma"),l.add(a),l.addSymbol("punctuation_left_parentheses"),l.add(o),l.addSymbol("punctuation_right_parentheses"),l.add("存在"),r.forEach(function(u,d){l.add(Dze(u,e)),d<r.length-2?l.addSymbol("punctuation_comma"):d===r.length-2&&l.add("和")})),l.addSymbol("punctuation_stop"),l}function EMi(t,e){var n=t.measure,r=t.trend,a=new hO(e);return e==="en-US"&&(a.add("The"),a.add(n,"metric_name"),a.add("goes")),e==="zh-CN"&&a.add(n,"metric_name"),a.add(sln(r,e),"trend_desc"),a.addSymbol("punctuation_stop"),a}function SMi(t,e){var n=t.measure,r=t.dimension,a=new hO(e);return e==="en-US"&&(a.add("The"),a.add(n,"metric_name"),a.add("data points of"),a.add(r),a.add("are very similar to the mean"),a.addSymbol("punctuation_comma"),a.add("that is"),a.addSymbol("punctuation_comma"),a.add("the variance is low")),e==="zh-CN"&&(a.add(r),a.add("的"),a.add(n,"metric_name"),a.add("数据点与均值非常相似"),a.addSymbol("punctuation_comma"),a.add("即方差较低")),a.addSymbol("punctuation_stop"),a}function wMi(t,e){var n=new hO(e),r=t.length;return e==="en-US"&&(n.add("There are"),n.add(""+r,"other_metric_value"),n.add("outliers in total"),n.addSymbol("punctuation_comma"),n.add("which are"),n.add("that is")),e==="zh-CN"&&(n.add("总共有"),n.add(""+r,"other_metric_value",{rightSpace:!0}),n.add("个异常值"),n.addSymbol("punctuation_comma"),n.add("分别是")),Array.isArray(t)&&(t==null||t.forEach(function(a,o){var s=a.x,l=a.y;n.addSymbol("punctuation_left_parentheses"),n.add(""+s,"dim_value"),n.addSymbol("punctuation_comma"),n.add(""+l,"metric_value"),n.addSymbol("punctuation_right_parentheses"),o<r-2?n.addSymbol("punctuation_comma"):o===r-2&&n.add(e==="zh-CN"?"和":"and")})),n.addSymbol("punctuation_stop"),n}function _Mi(t,e){var n=new hO(e),r=t==null?void 0:t.length;return e==="en-US"&&(n.add("There are"),n.add(""+r),n.add("abrupt changes in total"),n.addSymbol("punctuation_comma"),n.add("which occur in"),n.add("that is")),e==="zh-CN"&&(n.add("总共有"),n.add(""+r),n.add("个突变"),n.addSymbol("punctuation_comma"),n.add("发生在")),Array.isArray(t)&&t.forEach(function(a,o){var s=a.y;n.add(""+s,"metric_value"),o<r-2?n.addSymbol("punctuation_comma"):o===r-2&&n.add(e==="zh-CN"?"和":"and")}),n.addSymbol("punctuation_stop"),n}function TMi(t,e){var n=t.dimension,r=t.x,a=t.measure,o=new hO(e);return e==="en-US"&&(o.add("For"),o.add(n),o.addSymbol("punctuation_comma"),o.add(""+r,"dim_value"),o.add("accounts for the majority of"),o.add(a)),e==="zh-CN"&&(o.add("对于"),o.add(n),o.addSymbol("punctuation_comma"),o.add(""+r,"dim_value"),o.add("占"),o.add(a),o.add("的大部分")),o.addSymbol("punctuation_stop"),o}function CMi(t,e){var n=t.measures,r=new hO(e);return e==="en-US"&&(r.add("There is a correlation between"),r.add(n[0],"metric_name"),r.add("and"),r.add(n[1],"metric_name")),e==="zh-CN"&&(r.add(n[0],"metric_name"),r.add("和"),r.add(n[1],"metric_name"),r.add("之间存在相关性")),r.addSymbol("punctuation_stop"),r}function kMi(t,e,n){t.add(n==="zh-CN"?"对于":"For"),t.addSymbol("punctuation_left_parentheses"),e.forEach(function(r,a){t.add(r.value,"dim_value"),t.addSymbol("punctuation_left_parentheses"),t.add(r.dimension),t.addSymbol("punctuation_right_parentheses"),a<e.length-1&&t.addSymbol("punctuation_comma")}),t.addSymbol("punctuation_right_parentheses")}var cwt=6;function RMi(t,e){var n=new hO(e),r=t.subspace,a=t.measures,o=t.breakdown,s=t.type,l=t.insightType,c=t.childPattern,u=t.commSet,d=t.exc,h=r.length>0;if(h&&kMi(n,r,e),s==="commonness"){var f=u.length>cwt?u.slice(0,cwt-1).concat("..."):u;f.forEach(function(v,A){n.add(v,"dim_value"),A<f.length-2?n.addSymbol("punctuation_comma"):A<f.length-1&&n.add(e==="zh-CN"?"和":"and")})}else n.add(e==="zh-CN"?"大多数":"most"),a.length>1?n.add(e==="zh-CN"?"指标":"measures"):n.add(o,"metric_name");if(n.add(e==="zh-CN"?"有相同的":"have a common"),n.add(Dze(l,e)),l==="trend"&&c.type==="trend")e==="en-US"&&n.add("of"),n.add(sln(c.trend,e),"trend_desc");else if(["change_point","outlier","time_series_outlier"].includes(l)){e==="en-US"&&n.add("in");var p=c,m=p.x,g=p.y;n.add(""+m,"dim_value"),n.addSymbol("punctuation_comma"),n.add(""+g,"metric_value")}return s==="exception"&&d&&(n.addSymbol("punctuation_comma"),n.add(e==="zh-CN"?"除了":"except"),d.forEach(function(v,A){n.add(v,"dim_value"),A<d.length-2?n.addSymbol("punctuation_comma"):A===d.length-2&&n.add(e==="zh-CN"?"和":"and")})),n.addSymbol("punctuation_stop"),n}var MMi=function(t){nA(e,t);function e(n,r,a){return t.call(this,n,r,a)||this}return e.prototype.prepareVariables=function(n,r){this.patternGroups=Dne(n,"type"),this.globalVariableMap={insightTypes:Object.keys(this.patternGroups),subspace:r.subspace,measure:r.measures[0].field,measureMethod:r.measures[0].method,breakdown:r.dimensions[0]}},e.prototype.applyStrategy=function(){var n=this;this.caption=xMi(this.globalVariableMap,this.lang),this.summaries=[],Object.keys(this.patternGroups).forEach(function(r){var a=n.patternGroups[r];a&&(r==="trend"&&n.summaries.push(EMi(a[0],n.lang)),r==="majority"&&n.summaries.push(TMi(a[0],n.lang)),r==="low_variance"&&n.summaries.push(SMi(a[0],n.lang)),(r==="category_outlier"||r==="time_series_outlier")&&n.summaries.push(wMi(a,n.lang)),r==="change_point"&&n.summaries.push(_Mi(a,n.lang)),r==="correlation"&&n.summaries.push(CMi(a[0],n.lang)))})},e}(Xsn),NMi=function(t){nA(e,t);function e(n,r,a){return t.call(this,n,r,a)||this}return e.prototype.prepareVariables=function(n,r){var a=n[0],o=a.type,s=a.insightType,l=a.childPatterns,c=a.commSet,u=a.exc;this.globalVariableMap={subspace:r.subspace,measures:r.measures,breakdown:r.dimensions[0],type:o,insightType:s,commSet:c,exc:u,childPattern:l[0]}},e.prototype.applyStrategy=function(){this.summary=RMi(this.globalVariableMap,this.lang)},e}(Xsn),IMi=function(t,e){if(e===void 0&&(e=2),typeof t=="string")return t;var n=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],r=/\.0+$|(\.[0-9]*[1-9])0+$/,a=n.slice().reverse().find(function(o){return t>=o.value});return a?(t/a.value).toFixed(e).replace(r,"$1")+a.symbol:"0"},wR={highlight:"#E09322",outlier:"#CB5140",font:"#2C3542"},PMi={textAlign:"center",fill:wR.font,opacity:.65},uwt=500,dwt=function(t,e,n){return n===void 0&&(n=0),t.map(function(r,a){return{type:"text",content:IMi(r.content),position:e,offsetY:n+a*15,style:cr(cr({},PMi),r.style)}})},OMi=function(t){if(t.type==="change_point"||t.type==="time_series_outlier"){var e=t.x,n=t.y,r=t.type==="time_series_outlier"?wR.outlier:wR.highlight;return xc([{type:"dataMarker",position:[e,n],point:{style:{fill:"#fff",stroke:r}},line:{length:20},autoAdjust:!1}],xa(dwt([{content:e},{content:n,style:{fontWeight:uwt}}],[e,n],-42)))}if(t.type==="category_outlier"){var a=t.x,n=t.y;return xc([{type:"regionFilter",start:function(c){var u=c.ticks?1/c.ticks.length:1,d=c.scale(a)-u/2;return[d*100+"%","0%"]},end:function(c){var u=c.ticks?1/c.ticks.length:1,d=c.scale(a)+u/2;return[d*100+"%","100%"]},color:wR.outlier}],xa(dwt([{content:a},{content:n,style:{fontWeight:uwt}}],[a,n],-22)))}if(t.type==="trend"){var o=t.regression.points;return[{type:"line",start:["min",o[0]],end:["max",o[o.length-1]],style:{lineDash:[2,2],stroke:wR.highlight}}]}if(t.type==="low_variance"){var s=t.mean;return[{type:"line",start:["min",s],end:["max",s],style:{lineDash:[2,2],stroke:wR.highlight}},{type:"text",position:["min",s],content:"mean",offsetX:-28,offsetY:-4,style:{textBaseline:"bottom",fill:wR.highlight}}]}return[]},LMi=function(t){var e=[],n={};return t.forEach(function(r){var a=OMi(r);e.push.apply(e,xc([],xa(a))),r.type==="correlation"&&(n.pointStyle={lineWidth:1,fill:"#5B8FF9"},n.regressionLine={type:"linear",style:{stroke:"red"}})}),cr(cr({},n),{annotations:e})},BMi=function(t){var e=[],n=t.insightType,r=t.childPatterns;if(["change_point","time_series_outlier"].includes(n)){var a=r[0].x,o=n==="change_point"?"Abrupt Change":"Outlier",s=n==="change_point"?wR.highlight:wR.outlier,l={type:"line",start:[a,"min"],end:[a,"max"],text:{content:o,position:"left",offsetY:15,offsetX:5,rotate:0,autoRotate:!1,style:{textAlign:"left"}}};e.push(l);var c=r.map(function(u){var d=u.y;return{type:"dataMarker",position:[a,d],point:{style:{fill:"#fff",stroke:s}},line:{length:20},autoAdjust:!1}});e.push.apply(e,xc([],xa(c)))}return e},rrt={category_outlier:"column_chart",trend:"line_chart",change_point:"line_chart",time_series_outlier:"line_chart",majority:"pie_chart",low_variance:"column_chart",correlation:"scatter_plot"},DMi=function(t,e){var n=t.dimensions,r=t.patterns,a=t.measures,o=[],s=HAe(e,"summaryType","text"),l=HAe(e,"lang","en-US"),c=Dne(r,function(u){return rrt[u.type]});return Object.entries(c).forEach(function(u){var d,h,f,p,m=xa(u,2),g=m[0],v=m[1],A=new MMi(r,t,l),y=(d={},d[g==="pie_chart"?"colorField":"xField"]=g==="scatter_plot"?a[1].field:n[0],d[g==="pie_chart"?"angleField":"yField"]=a[0].field,d),S=LMi(v),x=cr(cr({},y),S);o.push({chartType:g,chartSchema:x,caption:(h=A.caption)===null||h===void 0?void 0:h.getContent(),insightSummaries:s==="schema"?(f=A.summaries)===null||f===void 0?void 0:f.map(function(w){return w.getSchema()}):(p=A.summaries)===null||p===void 0?void 0:p.map(function(w){return w.getContent()})})}),o},$Mi=function(t,e){var n=t.type,r=t.insightType,a=t.commSet,o=t.exc,s=o===void 0?[]:o,l=rrt[r],c=[];n==="commonness"?c=a:n==="exception"&&(c=s);var u=function(d){return c.includes(d)?1:.2};return l==="line_chart"?{lineStyle:function(d){return{opacity:u(d[e])}}}:l==="column_chart"?{columnStyle:function(d){return{fillOpacity:u(d[e])}}}:{}},FMi=function(t,e){var n=t.dimensions,r=t.patterns,a=t.measures,o=[],s=HAe(e,"summaryType","text"),l=HAe(e,"lang","en-US"),c=new NMi(t.patterns,t,l).summary;return r.forEach(function(u){var d=u.insightType,h=rrt[d],f;a.length>1?f={xField:n[0],yField:"value",seriesField:"measureName"}:f={xField:n[1],yField:a[0].field,seriesField:n[0]};var p=$Mi(u,f.seriesField),m=BMi(u),g=cr(cr(cr({},f),p),{annotations:m});o.push({chartType:h,chartSchema:g,caption:"",insightSummaries:s==="schema"?[c.getSchema()]:[c.getContent()]})}),o},jMi=function(t,e){return Ft.sumBy(t,e)},HMi=function(t,e){return t.filter(function(n){return e in n}).length},UMi=function(t,e){return Ft.uniq(t.filter(function(n){return e in n}).map(function(n){return n[e]})).length},zMi=function(t,e){var n;return(n=Ft.maxBy(t,e))===null||n===void 0?void 0:n[e]},GMi=function(t,e){var n;return(n=Ft.minBy(t,e))===null||n===void 0?void 0:n[e]},VMi=function(t,e){return Ft.meanBy(t,e)},Pwe={SUM:jMi,COUNT:HMi,MAX:zMi,MIN:GMi,MEAN:VMi,COUNT_DISTINCT:UMi},KMi=function(t,e,n,r){var a=Ft.groupBy(t,e),o=r?Ft.sortBy(Object.entries(a),"0"):Object.entries(a);return o.map(function(s){var l,c=xa(s,2),u=c[0],d=c[1],h=(l={},l[e]=u,l);return n.forEach(function(f){var p=f.field,m=f.method,g=Pwe[m];h[p]=g(d,p)}),h})},WMi=function(t,e,n){var r=Ft.groupBy(t,e),a=[];return Object.entries(r).forEach(function(o){var s=xa(o,2),l=s[0],c=s[1];n.forEach(function(u){var d,h=u.field,f=u.method;if(h in c[0]){var p=Pwe[f],m=p(c,h);a.push((d={},d[e]=l,d.value=m,d.measureName=h,d))}})}),a},QMi=function(t,e,n,r){var a=Ft.groupBy(t,e),o=n.field,s=n.method,l=Pwe[s];return Ft.flatten(Object.entries(a).map(function(c){var u=xa(c,2),d=u[0],h=u[1],f=Ft.groupBy(h,r),p=Object.entries(f).map(function(m){var g,v=xa(m,2),A=v[0],y=v[1];return g={},g[r]=A,g[o]=l(y,o),g});return p.map(function(m){var g;return cr(cr({},m),(g={},g[e]=d,g))})}))};function qMi(t,e,n,r){for(var a=t.length,o=n+(r?1:-1);r?o--:++o<a;)if(e(t[o],o,t))return o;return-1}var lln=qMi;function YMi(t){return t!==t}var cln=YMi;function JMi(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}var ZMi=JMi,XMi=lln,eNi=cln,tNi=ZMi;function nNi(t,e,n){return e===e?tNi(t,e,n):XMi(t,eNi,n)}var rNi=nNi,iNi=rNi;function aNi(t,e){var n=t==null?0:t.length;return!!n&&iNi(t,e,0)>-1}var uln=aNi;function oNi(t,e,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}var dln=oNi;function sNi(){}var lNi=sNi,LOe=Usn,cNi=lNi,uNi=Znt,dNi=1/0,hNi=LOe&&1/uNi(new LOe([,-0]))[1]==dNi?function(t){return new LOe(t)}:cNi,fNi=hNi,pNi=Ynt,mNi=uln,gNi=dln,vNi=Jnt,ANi=fNi,yNi=Znt,bNi=200;function xNi(t,e,n){var r=-1,a=mNi,o=t.length,s=!0,l=[],c=l;if(n)s=!1,a=gNi;else if(o>=bNi){var u=e?null:ANi(t);if(u)return yNi(u);s=!1,a=vNi,c=new pNi}else c=e?[]:l;e:for(;++r<o;){var d=t[r],h=e?e(d):d;if(d=n||d!==0?d:0,s&&h===h){for(var f=c.length;f--;)if(c[f]===h)continue e;e&&c.push(h),l.push(d)}else a(c,h,n)||(c!==l&&c.push(h),l.push(d))}return l}var ENi=xNi,SNi=ENi;function wNi(t){return t&&t.length?SNi(t):[]}var _Ni=wNi;const TNi=Li(_Ni);var hwt=rae,CNi=Unt,kNi=Ww,fwt=hwt?hwt.isConcatSpreadable:void 0;function RNi(t){return kNi(t)||CNi(t)||!!(fwt&&t&&t[fwt])}var MNi=RNi,NNi=Hsn,INi=MNi;function hln(t,e,n,r,a){var o=-1,s=t.length;for(n||(n=INi),a||(a=[]);++o<s;){var l=t[o];e>0&&n(l)?e>1?hln(l,e-1,n,r,a):NNi(a,l):r||(a[a.length]=l)}return a}var fln=hln,PNi=fln;function ONi(t){var e=t==null?0:t.length;return e?PNi(t,1):[]}var LNi=ONi;const vZ=Li(LNi);var BNi=$sn,DNi=hoe;function $Ni(t,e){var n=-1,r=DNi(t)?Array(t.length):[];return BNi(t,function(a,o,s){r[++n]=e(a,o,s)}),r}var FNi=$Ni;function jNi(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}var HNi=jNi,pwt=aae;function UNi(t,e){if(t!==e){var n=t!==void 0,r=t===null,a=t===t,o=pwt(t),s=e!==void 0,l=e===null,c=e===e,u=pwt(e);if(!l&&!u&&!o&&t>e||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!u&&t<e||u&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}var zNi=UNi,GNi=zNi;function VNi(t,e,n){for(var r=-1,a=t.criteria,o=e.criteria,s=a.length,l=n.length;++r<s;){var c=GNi(a[r],o[r]);if(c){if(r>=l)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return t.index-e.index}var KNi=VNi,BOe=Nwe,WNi=trt,QNi=nrt,qNi=FNi,YNi=HNi,JNi=Vnt,ZNi=KNi,XNi=rV,eIi=Ww;function tIi(t,e,n){e.length?e=BOe(e,function(o){return eIi(o)?function(s){return WNi(s,o.length===1?o[0]:o)}:o}):e=[XNi];var r=-1;e=BOe(e,JNi(QNi));var a=qNi(t,function(o,s,l){var c=BOe(e,function(u){return u(o)});return{criteria:c,index:++r,value:o}});return YNi(a,function(o,s){return ZNi(o,s,n)})}var nIi=tIi;function rIi(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var iIi=rIi,aIi=iIi,mwt=Math.max;function oIi(t,e,n){return e=mwt(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,o=mwt(r.length-e,0),s=Array(o);++a<o;)s[a]=r[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=r[a];return l[e]=n(s),aIi(t,this,l)}}var sIi=oIi;function lIi(t){return function(){return t}}var cIi=lIi,uIi=cIi,gwt=Osn,dIi=rV,hIi=gwt?function(t,e){return gwt(t,"toString",{configurable:!0,enumerable:!1,value:uIi(e),writable:!0})}:dIi,fIi=hIi,pIi=800,mIi=16,gIi=Date.now;function vIi(t){var e=0,n=0;return function(){var r=gIi(),a=mIi-(r-n);if(n=r,a>0){if(++e>=pIi)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var AIi=vIi,yIi=fIi,bIi=AIi,xIi=bIi(yIi),EIi=xIi,SIi=rV,wIi=sIi,_Ii=EIi;function TIi(t,e){return _Ii(wIi(t,e,SIi),t+"")}var pln=TIi,CIi=Wnt,kIi=hoe,RIi=znt,MIi=fG;function NIi(t,e,n){if(!MIi(n))return!1;var r=typeof e;return(r=="number"?kIi(n)&&RIi(e,n.length):r=="string"&&e in n)?CIi(n[e],t):!1}var IIi=NIi,PIi=fln,OIi=nIi,LIi=pln,vwt=IIi,BIi=LIi(function(t,e){if(t==null)return[];var n=e.length;return n>1&&vwt(t,e[0],e[1])?e=[]:n>2&&vwt(e[0],e[1],e[2])&&(e=[e[0]]),OIi(t,PIi(e,1),[])}),DIi=BIi;const $Ii=Li(DIi);var FIi=function(t,e){var n=t==null,r=e==null;return n&&r?0:n?1:r?-1:t-e},Awt=function(t,e){var n=e*t.length,r=Math.ceil(n);return r===n?r===0?t[0]:r===t.length?t[t.length-1]:(t[r-1]+t[r])/2:t[r-1]},jIi=function(t,e){var n=(e==null?void 0:e.k)||1.5,r=t.slice().sort(FIi),a=Awt(r,.25),o=Awt(r,.75),s=o-a,l={upper:{threshold:0,indexes:[]},lower:{threshold:0,indexes:[]}};return l.lower.threshold=a-n*s,l.upper.threshold=o+n*s,t.forEach(function(c,u){c<=l.lower.threshold?l.lower.indexes.push(u):c>=l.upper.threshold&&l.upper.indexes.push(u)}),l};function HIi(t,e){for(var n,r=-1,a=t.length;++r<a;){var o=e(t[r]);o!==void 0&&(n=n===void 0?o:n+o)}return n}var irt=HIi,UIi=nrt,zIi=irt;function GIi(t,e){return t&&t.length?zIi(t,UIi(e)):0}var VIi=GIi;const Owe=Li(VIi);/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var KIi=typeof Object.defineProperty=="function"?Object.defineProperty:null,WIi=KIi;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var QIi=WIi;function qIi(){try{return QIi({},"x",{}),!0}catch{return!1}}var YIi=qIi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var JIi=Object.defineProperty,ZIi=JIi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var iV=Object.prototype,ywt=iV.toString,bwt=iV.__defineGetter__,xwt=iV.__defineSetter__,XIi=iV.__lookupGetter__,e3i=iV.__lookupSetter__;function t3i(t,e,n){var r,a,o,s;if(typeof t!="object"||t===null||ywt.call(t)==="[object Array]")throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");if(typeof n!="object"||n===null||ywt.call(n)==="[object Array]")throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+n+"`.");if(a="value"in n,a&&(XIi.call(t,e)||e3i.call(t,e)?(r=t.__proto__,t.__proto__=iV,delete t[e],t[e]=n.value,t.__proto__=r):t[e]=n.value),o="get"in n,s="set"in n,a&&(o||s))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return o&&bwt&&bwt.call(t,e,n.get),s&&xwt&&xwt.call(t,e,n.set),t}var n3i=t3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var r3i=YIi,i3i=ZIi,a3i=n3i,$ze;r3i()?$ze=i3i:$ze=a3i;var Lwe=$ze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var o3i=Lwe;function s3i(t,e,n){o3i(t,e,{configurable:!1,enumerable:!0,writable:!1,value:n})}var l3i=s3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var c3i=l3i,mln=c3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var u3i=Lwe;function d3i(t,e,n){u3i(t,e,{configurable:!1,enumerable:!1,writable:!1,value:n})}var h3i=d3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var f3i=h3i,cc=f3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function p3i(t){return t!==t}var m3i=p3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var g3i=m3i,Na=g3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v3i=Math.floor,A3i=v3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var y3i=A3i,vC=y3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var b3i=Math.ceil,x3i=b3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var E3i=x3i,S3i=E3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var w3i=vC,_3i=S3i;function T3i(t){return t<0?_3i(t):w3i(t)}var C3i=T3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var k3i=C3i,art=k3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var R3i=Number;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var M3i=R3i,ort=M3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var N3i=ort,I3i=N3i.NEGATIVE_INFINITY,Np=I3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var P3i=Number.POSITIVE_INFINITY,yu=P3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var O3i=1023,o9=O3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var L3i=1023,B3i=L3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var D3i=-1023,$3i=D3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var F3i=-1074,j3i=F3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var H3i=yu,U3i=Np;function z3i(t){return t===H3i||t===U3i}var G3i=z3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var V3i=G3i,aV=V3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function K3i(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}var W3i=K3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Q3i=W3i,q3i=Q3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Y3i=q3i,J3i=Y3i();function Z3i(){return J3i&&typeof Symbol.toStringTag=="symbol"}var X3i=Z3i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var e5i=X3i,Bwe=e5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var t5i=Object.prototype.toString,gln=t5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var n5i=gln;function r5i(t){return n5i.call(t)}var i5i=r5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var a5i=Object.prototype.hasOwnProperty;function o5i(t,e){return t==null?!1:a5i.call(t,e)}var s5i=o5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var l5i=s5i,Dwe=l5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var c5i=typeof Symbol=="function"?Symbol.toStringTag:"",u5i=c5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var d5i=Dwe,XQ=u5i,DOe=gln;function h5i(t){var e,n,r;if(t==null)return DOe.call(t);n=t[XQ],e=d5i(t,XQ);try{t[XQ]=void 0}catch{return DOe.call(t)}return r=DOe.call(t),e?t[XQ]=n:delete t[XQ],r}var f5i=h5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var p5i=Bwe,m5i=i5i,g5i=f5i,Fze;p5i()?Fze=g5i:Fze=m5i;var Qw=Fze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v5i=Qw,A5i=typeof Uint32Array=="function";function y5i(t){return A5i&&t instanceof Uint32Array||v5i(t)==="[object Uint32Array]"}var b5i=y5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var x5i=b5i,E5i=x5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var S5i=4294967295,w5i=S5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _5i=typeof Uint32Array=="function"?Uint32Array:null,T5i=_5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var C5i=E5i,$Oe=w5i,Ewt=T5i;function k5i(){var t,e;if(typeof Ewt!="function")return!1;try{e=[1,3.14,-3.14,$Oe+1,$Oe+2],e=new Ewt(e),t=C5i(e)&&e[0]===1&&e[1]===3&&e[2]===$Oe-2&&e[3]===0&&e[4]===1}catch{t=!1}return t}var R5i=k5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var M5i=R5i,N5i=M5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var I5i=typeof Uint32Array=="function"?Uint32Array:void 0,P5i=I5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function O5i(){throw new Error("not implemented")}var L5i=O5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var B5i=N5i,D5i=P5i,$5i=L5i,jze;B5i()?jze=D5i:jze=$5i;var oV=jze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var F5i=Qw,j5i=typeof Float64Array=="function";function H5i(t){return j5i&&t instanceof Float64Array||F5i(t)==="[object Float64Array]"}var U5i=H5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var z5i=U5i,G5i=z5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var V5i=typeof Float64Array=="function"?Float64Array:null,K5i=V5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var W5i=G5i,Swt=K5i;function Q5i(){var t,e;if(typeof Swt!="function")return!1;try{e=new Swt([1,3.14,-3.14,NaN]),t=W5i(e)&&e[0]===1&&e[1]===3.14&&e[2]===-3.14&&e[3]!==e[3]}catch{t=!1}return t}var q5i=Q5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Y5i=q5i,J5i=Y5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Z5i=typeof Float64Array=="function"?Float64Array:void 0,X5i=Z5i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function ePi(){throw new Error("not implemented")}var tPi=ePi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nPi=J5i,rPi=X5i,iPi=tPi,Hze;nPi()?Hze=rPi:Hze=iPi;var sV=Hze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var aPi=Qw,oPi=typeof Uint8Array=="function";function sPi(t){return oPi&&t instanceof Uint8Array||aPi(t)==="[object Uint8Array]"}var lPi=sPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var cPi=lPi,uPi=cPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dPi=255,hPi=dPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var fPi=typeof Uint8Array=="function"?Uint8Array:null,pPi=fPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mPi=uPi,FOe=hPi,wwt=pPi;function gPi(){var t,e;if(typeof wwt!="function")return!1;try{e=[1,3.14,-3.14,FOe+1,FOe+2],e=new wwt(e),t=mPi(e)&&e[0]===1&&e[1]===3&&e[2]===FOe-2&&e[3]===0&&e[4]===1}catch{t=!1}return t}var vPi=gPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var APi=vPi,yPi=APi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var bPi=typeof Uint8Array=="function"?Uint8Array:void 0,xPi=bPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function EPi(){throw new Error("not implemented")}var SPi=EPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wPi=yPi,_Pi=xPi,TPi=SPi,Uze;wPi()?Uze=_Pi:Uze=TPi;var CPi=Uze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kPi=Qw,RPi=typeof Uint16Array=="function";function MPi(t){return RPi&&t instanceof Uint16Array||kPi(t)==="[object Uint16Array]"}var NPi=MPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var IPi=NPi,PPi=IPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var OPi=65535,LPi=OPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var BPi=typeof Uint16Array=="function"?Uint16Array:null,DPi=BPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $Pi=PPi,jOe=LPi,_wt=DPi;function FPi(){var t,e;if(typeof _wt!="function")return!1;try{e=[1,3.14,-3.14,jOe+1,jOe+2],e=new _wt(e),t=$Pi(e)&&e[0]===1&&e[1]===3&&e[2]===jOe-2&&e[3]===0&&e[4]===1}catch{t=!1}return t}var jPi=FPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var HPi=jPi,UPi=HPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var zPi=typeof Uint16Array=="function"?Uint16Array:void 0,GPi=zPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function VPi(){throw new Error("not implemented")}var KPi=VPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var WPi=UPi,QPi=GPi,qPi=KPi,zze;WPi()?zze=QPi:zze=qPi;var YPi=zze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var JPi=CPi,ZPi=YPi,XPi={uint16:ZPi,uint8:JPi},eOi=XPi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Twt=eOi,vln;function tOi(){var t,e;return t=new Twt.uint16(1),t[0]=4660,e=new Twt.uint8(t.buffer),e[0]===52}vln=tOi();var nOi=vln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rOi=nOi,lV=rOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var iOi=lV,Aln,Gze,Vze;iOi===!0?(Gze=1,Vze=0):(Gze=0,Vze=1);Aln={HIGH:Gze,LOW:Vze};var aOi=Aln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oOi=oV,sOi=sV,yln=aOi,bln=new sOi(1),Cwt=new oOi(bln.buffer),lOi=yln.HIGH,cOi=yln.LOW;function uOi(t,e){return bln[0]=e,t[0]=Cwt[lOi],t[1]=Cwt[cOi],t}var dOi=uOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kwt=dOi;function hOi(t,e){return arguments.length===1?kwt([0,0],t):kwt(t,e)}var fOi=hOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pOi=fOi,srt=pOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mOi=lV,Kze;mOi===!0?Kze=1:Kze=0;var gOi=Kze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vOi=oV,AOi=sV,yOi=gOi,xln=new AOi(1),bOi=new vOi(xln.buffer);function xOi(t){return xln[0]=t,bOi[yOi]}var EOi=xOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var SOi=EOi,gE=SOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wOi=lV,Eln,Wze,Qze;wOi===!0?(Wze=1,Qze=0):(Wze=0,Qze=1);Eln={HIGH:Wze,LOW:Qze};var _Oi=Eln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var TOi=oV,COi=sV,Sln=_Oi,wln=new COi(1),Rwt=new TOi(wln.buffer),kOi=Sln.HIGH,ROi=Sln.LOW;function MOi(t,e){return Rwt[kOi]=t,Rwt[ROi]=e,wln[0]}var NOi=MOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var IOi=NOi,lrt=IOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var POi=srt,OOi=gE,LOi=lrt,BOi=2147483648,DOi=2147483647,HOe=[0,0];function $Oi(t,e){var n,r;return POi(HOe,t),n=HOe[0],n&=DOi,r=OOi(e),r&=BOi,n|=r,LOi(n,HOe[1])}var FOi=$Oi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jOi=FOi,crt=jOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var HOi=22250738585072014e-324,foe=HOi;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function UOi(t){return Math.abs(t)}var zOi=UOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var GOi=zOi,td=GOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var VOi=foe,KOi=aV,WOi=Na,QOi=td,qOi=4503599627370496;function YOi(t,e){return WOi(e)||KOi(e)?(t[0]=e,t[1]=0,t):e!==0&&QOi(e)<VOi?(t[0]=e*qOi,t[1]=-52,t):(t[0]=e,t[1]=0,t)}var JOi=YOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Mwt=JOi;function ZOi(t,e){return arguments.length===1?Mwt([0,0],t):Mwt(t,e)}var XOi=ZOi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var e4i=XOi,t4i=e4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var n4i=2146435072,r4i=n4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var i4i=gE,a4i=r4i,o4i=o9;function s4i(t){var e=i4i(t);return e=(e&a4i)>>>20,e-o4i|0}var l4i=s4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var c4i=l4i,u4i=c4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var d4i=yu,h4i=Np,f4i=o9,p4i=B3i,m4i=$3i,g4i=j3i,v4i=Na,A4i=aV,y4i=crt,b4i=t4i,x4i=u4i,E4i=srt,S4i=lrt,w4i=2220446049250313e-31,_4i=2148532223,UOe=[0,0],zOe=[0,0];function T4i(t,e){var n,r;return t===0||v4i(t)||A4i(t)?t:(b4i(UOe,t),t=UOe[0],e+=UOe[1],e+=x4i(t),e<g4i?y4i(0,t):e>p4i?t<0?h4i:d4i:(e<=m4i?(e+=52,r=w4i):r=1,E4i(zOe,t),n=zOe[0],n&=_4i,n|=e+f4i<<20,r*S4i(n,zOe[1])))}var C4i=T4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var k4i=C4i,urt=k4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function R4i(t){return t===0?.16666666666666602:.16666666666666602+t*(-.0027777777777015593+t*(6613756321437934e-20+t*(-16533902205465252e-22+t*41381367970572385e-24)))}var M4i=R4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/e_exp.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var N4i=urt,I4i=M4i;function P4i(t,e,n){var r,a,o,s;return r=t-e,a=r*r,o=r-a*I4i(a),s=1-(e-r*o/(2-o)-t),N4i(s,n)}var O4i=P4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/e_exp.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var L4i=Na,Nwt=art,B4i=Np,Iwt=yu,D4i=O4i,$4i=.6931471803691238,F4i=19082149292705877e-26,Pwt=1.4426950408889634,j4i=709.782712893384,H4i=-745.1332191019411,_ln=1/(1<<28),U4i=-_ln;function z4i(t){var e,n,r;return L4i(t)||t===Iwt?t:t===B4i?0:t>j4i?Iwt:t<H4i?0:t>U4i&&t<_ln?1+t:(t<0?r=Nwt(Pwt*t-.5):r=Nwt(Pwt*t+.5),e=t-r*$4i,n=r*F4i,D4i(e,n,r))}var G4i=z4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var V4i=G4i,Ff=V4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var K4i=lV,qze;K4i===!0?qze=0:qze=1;var W4i=qze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Q4i=oV,q4i=sV,Y4i=W4i,Yze=new q4i(1),J4i=new Q4i(Yze.buffer);function Z4i(t,e){return Yze[0]=t,J4i[Y4i]=e>>>0,Yze[0]}var X4i=Z4i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var eLi=X4i,poe=eLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function tLi(t){return t===0?-.3250421072470015:-.3250421072470015+t*(-.02848174957559851+t*(-.005770270296489442+t*-23763016656650163e-21))}var nLi=tLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function rLi(t){return t===0?.39791722395915535:.39791722395915535+t*(.0650222499887673+t*(.005081306281875766+t*(.00013249473800432164+t*-3960228278775368e-21)))}var iLi=rLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function aLi(t){return t===0?.41485611868374833:.41485611868374833+t*(-.3722078760357013+t*(.31834661990116175+t*(-.11089469428239668+t*(.035478304325618236+t*-.002166375594868791))))}var oLi=aLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function sLi(t){return t===0?.10642088040084423:.10642088040084423+t*(.540397917702171+t*(.07182865441419627+t*(.12617121980876164+t*(.01363708391202905+t*.011984499846799107))))}var lLi=sLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function cLi(t){return t===0?-.6938585727071818:-.6938585727071818+t*(-10.558626225323291+t*(-62.375332450326006+t*(-162.39666946257347+t*(-184.60509290671104+t*(-81.2874355063066+t*-9.814329344169145)))))}var uLi=cLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function dLi(t){return t===0?19.651271667439257:19.651271667439257+t*(137.65775414351904+t*(434.56587747522923+t*(645.3872717332679+t*(429.00814002756783+t*(108.63500554177944+t*(6.570249770319282+t*-.0604244152148581))))))}var hLi=dLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function fLi(t){return t===0?-.799283237680523:-.799283237680523+t*(-17.757954917754752+t*(-160.63638485582192+t*(-637.5664433683896+t*(-1025.0951316110772+t*-483.5191916086514))))}var pLi=fLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function mLi(t){return t===0?30.33806074348246:30.33806074348246+t*(325.7925129965739+t*(1536.729586084437+t*(3199.8582195085955+t*(2553.0504064331644+t*(474.52854120695537+t*-22.44095244658582)))))}var gLi=mLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_erf.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var vLi=Na,Owt=Ff,ALi=poe,yLi=yu,bLi=Np,xLi=nLi,ELi=iLi,SLi=oLi,wLi=lLi,_Li=uLi,TLi=hLi,CLi=pLi,kLi=gLi,aue=1e-300,RLi=13877787807814457e-33,Lwt=.8450629115104675,MLi=.12837916709551256,NLi=1,ILi=-.0023621185607526594,PLi=1,OLi=-.009864944034847148,LLi=1,BLi=-.0098649429247001,DLi=1;function $Li(t){var e,n,r,a,o,s,l,c;if(vLi(t))return NaN;if(t===yLi)return 0;if(t===bLi)return 2;if(t===0)return 1;if(t<0?(e=!0,n=-t):(e=!1,n=t),n<.84375)return n<RLi?1-t:(r=t*t,a=MLi+r*xLi(r),o=NLi+r*ELi(r),s=a/o,t<.25?1-(t+t*s):(a=t*s,a+=t-.5,.5-a));if(n<1.25)return o=n-1,l=ILi+o*SLi(o),c=PLi+o*wLi(o),e?1+Lwt+l/c:1-Lwt-l/c;if(n<28){if(o=1/(n*n),n<2.857142857142857)a=OLi+o*_Li(o),o=LLi+o*TLi(o);else{if(t<-6)return 2-aue;a=BLi+o*CLi(o),o=DLi+o*kLi(o)}return r=ALi(n,0),a=Owt(-(r*r)-.5625)*Owt((r-n)*(r+n)+a/o),e?2-a/n:a/n}return e?2-aue:aue*aue}var FLi=$Li;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jLi=FLi,$we=jLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var HLi=Math.sqrt,ULi=HLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var zLi=ULi,Ip=zLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var GLi=$we,VLi=Ip,GOe=Na;function KLi(t,e,n){var r,a;return GOe(t)||GOe(e)||GOe(n)||n<0?NaN:n===0?t<e?0:1:(r=n*VLi(2),a=t-e,.5*GLi(-a/r))}var WLi=KLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function QLi(t){return e;function e(){return t}}var qLi=QLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var YLi=qLi,AC=YLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Bwt=Na;function JLi(t,e){return Bwt(t)||Bwt(e)?NaN:t<e?0:1}var ZLi=JLi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var XLi=AC,Dwt=Na;function eBi(t){if(Dwt(t))return XLi(NaN);return e;function e(n){return Dwt(n)?NaN:n<t?0:1}}var tBi=eBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nBi=cc,Tln=ZLi,rBi=tBi;nBi(Tln,"factory",rBi);var iBi=Tln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var aBi=AC,oBi=iBi.factory,VOe=Na,sBi=Ip,lBi=$we;function cBi(t,e){var n;if(VOe(t)||VOe(e)||e<0)return aBi(NaN);if(e===0)return oBi(t);return n=e*sBi(2),r;function r(a){var o;return VOe(a)?NaN:(o=a-t,.5*lBi(-o/n))}}var uBi=cBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dBi=cc,Cln=WLi,hBi=uBi;dBi(Cln,"factory",hBi);var drt=Cln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var KOe,$wt;function fBi(){if($wt)return KOe;$wt=1;var t=Lwe;function e(n,r,a){t(n,r,{configurable:!1,enumerable:!1,get:a})}return KOe=e,KOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var WOe,Fwt;function pBi(){if(Fwt)return WOe;Fwt=1;var t=fBi();return WOe=t,WOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function mBi(t){return typeof t=="number"}var kln=mBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var gBi=ort,vBi=gBi.prototype.toString,ABi=vBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yBi=ABi;function bBi(t){try{return yBi.call(t),!0}catch{return!1}}var xBi=bBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var EBi=Bwe,SBi=Qw,wBi=ort,_Bi=xBi,TBi=EBi();function CBi(t){return typeof t=="object"?t instanceof wBi?!0:TBi?_Bi(t):SBi(t)==="[object Number]":!1}var Rln=CBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kBi=kln,RBi=Rln;function MBi(t){return kBi(t)||RBi(t)}var NBi=MBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Mln=cc,hrt=NBi,IBi=kln,PBi=Rln;Mln(hrt,"isPrimitive",IBi);Mln(hrt,"isObject",PBi);var uN=hrt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var QOe,jwt;function Nln(){if(jwt)return QOe;jwt=1;var t=uN.isPrimitive;function e(n){return t(n)&&n>0}return QOe=e,QOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qOe,Hwt;function Iln(){if(Hwt)return qOe;Hwt=1;var t=uN.isObject;function e(n){return t(n)&&n.valueOf()>0}return qOe=e,qOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var YOe,Uwt;function OBi(){if(Uwt)return YOe;Uwt=1;var t=Nln(),e=Iln();function n(r){return t(r)||e(r)}return YOe=n,YOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var JOe,zwt;function LBi(){if(zwt)return JOe;zwt=1;var t=cc,e=OBi(),n=Nln(),r=Iln();return t(e,"isPrimitive",n),t(e,"isObject",r),JOe=e,JOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var BBi=uN.isPrimitive,DBi=Na;function $Bi(t){return BBi(t)&&DBi(t)}var Pln=$Bi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var FBi=uN.isObject,jBi=Na;function HBi(t){return FBi(t)&&jBi(t.valueOf())}var Oln=HBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var UBi=Pln,zBi=Oln;function GBi(t){return UBi(t)||zBi(t)}var VBi=GBi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Lln=cc,frt=VBi,KBi=Pln,WBi=Oln;Lln(frt,"isPrimitive",KBi);Lln(frt,"isObject",WBi);var prt=frt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var QBi=lV,Jze;QBi===!0?Jze=1:Jze=0;var qBi=Jze;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var YBi=oV,JBi=sV,ZBi=qBi,Zze=new JBi(1),XBi=new YBi(Zze.buffer);function eDi(t,e){return Zze[0]=t,XBi[ZBi]=e>>>0,Zze[0]}var tDi=eDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nDi=tDi,moe=nDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ZOe,Gwt;function rDi(){if(Gwt)return ZOe;Gwt=1;function t(e){return e===0?.3999999999940942:.3999999999940942+e*(.22222198432149784+e*.15313837699209373)}return ZOe=t,ZOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var XOe,Vwt;function iDi(){if(Vwt)return XOe;Vwt=1;function t(e){return e===0?.6666666666666735:.6666666666666735+e*(.2857142874366239+e*(.1818357216161805+e*.14798198605116586))}return XOe=t,XOe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/e_log.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var e4e,Kwt;function aDi(){if(Kwt)return e4e;Kwt=1;var t=gE,e=moe,n=Na,r=o9,a=Np,o=rDi(),s=iDi(),l=.6931471803691238,c=19082149292705877e-26,u=0x40000000000000,d=.3333333333333333,h=1048575,f=2146435072,p=1048576,m=1072693248;function g(v){var A,y,S,x,w,_,C,R,k,P,N,L;return v===0?a:n(v)||v<0?NaN:(y=t(v),w=0,y<p&&(w-=54,v*=u,y=t(v)),y>=f?v+v:(w+=(y>>20)-r|0,y&=h,R=y+614244&1048576|0,v=e(v,y|R^m),w+=R>>20|0,C=v-1,(h&2+y)<3?C===0?w===0?0:w*l+w*c:(_=C*C*(.5-d*C),w===0?C-_:w*l-(_-w*c-C)):(P=C/(2+C),L=P*P,R=y-398458|0,N=L*L,k=440401-y|0,x=N*o(N),S=L*s(N),R|=k,_=S+x,R>0?(A=.5*C*C,w===0?C-(A-P*(A+_)):w*l-(A-(P*(A+_)+w*c)-C)):w===0?C-P*(C-_):w*l-(P*(C-_)-w*c-C))))}return e4e=g,e4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var t4e,Wwt;function Mv(){if(Wwt)return t4e;Wwt=1;var t=aDi();return t4e=t,t4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var n4e,Qwt;function Fwe(){if(Qwt)return n4e;Qwt=1;var t=6.283185307179586;return n4e=t,n4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var r4e,qwt;function s9(){if(qwt)return r4e;qwt=1;var t=2.718281828459045;return r4e=t,r4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var i4e,Ywt;function oDi(){if(Ywt)return i4e;Ywt=1;var t=Na,e=Mv(),n=Fwe(),r=s9();function a(o,s){return t(o)||t(s)||s<=0?NaN:.5*e(n*r*s*s)}return i4e=a,i4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var a4e,Jwt;function Bln(){if(Jwt)return a4e;Jwt=1;var t=oDi();return a4e=t,a4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var o4e,Zwt;function sDi(){if(Zwt)return o4e;Zwt=1;var t=Na;function e(n,r){return t(n)||t(r)||r<=0?NaN:0}return o4e=e,o4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var s4e,Xwt;function Dln(){if(Xwt)return s4e;Xwt=1;var t=sDi();return s4e=t,s4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var l4e,e_t;function lDi(){if(e_t)return l4e;e_t=1;var t=Na;function e(n,r){return t(n)||t(r)||r<=0?NaN:n}return l4e=e,l4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var c4e,t_t;function $ln(){if(t_t)return c4e;t_t=1;var t=lDi();return c4e=t,c4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var u4e,n_t;function cDi(){if(n_t)return u4e;n_t=1;var t=Na;function e(n,r){return t(n)||t(r)||r<=0?NaN:n}return u4e=e,u4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var d4e,r_t;function Fln(){if(r_t)return d4e;r_t=1;var t=cDi();return d4e=t,d4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var h4e,i_t;function uDi(){if(i_t)return h4e;i_t=1;var t=Na;function e(n,r){return t(n)||t(r)||r<=0?NaN:n}return h4e=e,h4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var f4e,a_t;function jln(){if(a_t)return f4e;a_t=1;var t=uDi();return f4e=t,f4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var p4e,o_t;function dDi(){if(o_t)return p4e;o_t=1;var t=Na;function e(n,r){return t(n)||t(r)||r<=0?NaN:0}return p4e=e,p4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var m4e,s_t;function Hln(){if(s_t)return m4e;s_t=1;var t=dDi();return m4e=t,m4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var g4e,l_t;function hDi(){if(l_t)return g4e;l_t=1;var t=Na;function e(n,r){return t(n)||t(r)||r<=0?NaN:r}return g4e=e,g4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v4e,c_t;function Uln(){if(c_t)return v4e;c_t=1;var t=hDi();return v4e=t,v4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var A4e,u_t;function fDi(){if(u_t)return A4e;u_t=1;var t=Na;function e(n,r){return t(n)||t(r)||r<=0?NaN:r*r}return A4e=e,A4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var y4e,d_t;function zln(){if(d_t)return y4e;d_t=1;var t=fDi();return y4e=t,y4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pDi=vC;function mDi(t){return pDi(t)===t}var gDi=mDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vDi=gDi,fO=vDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ADi=fO;function yDi(t){return ADi(t/2)}var bDi=yDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xDi=bDi,EDi=xDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var h_t=EDi;function SDi(t){return t>0?h_t(t-1):h_t(t+1)}var wDi=SDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _Di=wDi,mrt=_Di;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function TDi(t){return t|0}var CDi=TDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kDi=CDi,Gln=kDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var f_t=mrt,RDi=crt,MDi=Np,oue=yu;function NDi(t,e){return e===MDi?oue:e===oue?0:e>0?f_t(e)?t:0:f_t(e)?RDi(oue,t):oue}var IDi=NDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var PDi=gE,ODi=2147483647,LDi=1072693247,sue=1e300,lue=1e-300;function BDi(t,e){var n,r;return r=PDi(t),n=r&ODi,n<=LDi?e<0?sue*sue:lue*lue:e>0?sue*sue:lue*lue}var DDi=BDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $Di=td,p_t=yu;function FDi(t,e){return t===-1?(t-t)/(t-t):t===1?1:$Di(t)<1==(e===p_t)?0:p_t}var jDi=FDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function HDi(t){return t===0?.5999999999999946:.5999999999999946+t*(.4285714285785502+t*(.33333332981837743+t*(.272728123808534+t*(.23066074577556175+t*.20697501780033842))))}var UDi=HDi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var zDi=gE,cue=poe,m_t=moe,GDi=o9,VDi=UDi,KDi=1048575,g_t=1048576,WDi=1072693248,QDi=536870912,qDi=524288,YDi=20,JDi=9007199254740992,ZDi=.9617966939259756,XDi=.9617967009544373,e6i=-7028461650952758e-24,t6i=[1,1.5],n6i=[0,.5849624872207642],r6i=[0,1350039202129749e-23];function i6i(t,e,n){var r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_,C,R;return _=0,n<g_t&&(e*=JDi,_-=53,n=zDi(e)),_+=(n>>YDi)-GDi|0,C=n&KDi|0,n=C|WDi|0,C<=235662?R=0:C<767610?R=1:(R=0,_+=1,n-=g_t),e=m_t(e,n),d=t6i[R],x=e-d,w=1/(e+d),a=x*w,s=cue(a,0),r=(n>>1|QDi)+qDi,r+=R<<18,c=m_t(0,r),u=e-(c-d),l=w*(x-s*c-s*u),o=a*a,S=o*o*VDi(o),S+=l*(s+a),o=s*s,c=3+o+S,c=cue(c,0),u=S-(c-3-o),x=s*c,w=l*c+u*a,f=x+w,f=cue(f,0),p=w-(f-x),m=XDi*f,g=e6i*f+p*ZDi+r6i[R],h=n6i[R],y=_,v=m+g+h+y,v=cue(v,0),A=g-(v-y-h-m),t[0]=v,t[1]=A,t}var a6i=i6i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function o6i(t){return t===0?.5:.5+t*(-.3333333333333333+t*.25)}var s6i=o6i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var l6i=poe,c6i=s6i,u6i=1.4426950408889634,d6i=1.4426950216293335,h6i=19259629911266175e-24;function f6i(t,e){var n,r,a,o,s,l;return a=e-1,o=a*a*c6i(a),s=d6i*a,l=a*h6i-o*u6i,r=s+l,r=l6i(r,0),n=l-(r-s),t[0]=r,t[1]=n,t}var p6i=f6i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var m6i=.6931471805599453,g6i=m6i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function v6i(t){return t===0?.16666666666666602:.16666666666666602+t*(-.0027777777777015593+t*(6613756321437934e-20+t*(-16533902205465252e-22+t*41381367970572385e-24)))}var A6i=v6i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var y6i=gE,v_t=moe,b6i=poe,x6i=Gln,E6i=urt,S6i=g6i,A_t=o9,w6i=A6i,y_t=2147483647,b_t=1048575,x_t=1048576,_6i=1071644672,eq=20,T6i=.6931471824645996,C6i=-1904654299957768e-24;function k6i(t,e,n){var r,a,o,s,l,c,u,d,h,f,p;return f=t&y_t|0,p=(f>>eq)-A_t|0,h=0,f>_6i&&(h=t+(x_t>>p+1)>>>0,p=((h&y_t)>>eq)-A_t|0,r=(h&~(b_t>>p))>>>0,o=v_t(0,r),h=(h&b_t|x_t)>>eq-p>>>0,t<0&&(h=-h),e-=o),o=n+e,o=b6i(o,0),l=o*T6i,c=(n-(o-e))*S6i+o*C6i,d=l+c,u=c-(d-l),o=d*d,a=d-o*w6i(o),s=d*a/(a-2)-(u+d*u),d=1-(s-d),t=y6i(d),t=x6i(t),t+=h<<eq>>>0,t>>eq<=0?d=E6i(d,h):d=v_t(d,t),d}var R6i=k6i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var E_t=Na,S_t=mrt,w_t=aV,M6i=fO,__t=Ip,N6i=td,b4e=srt,I6i=poe,T_t=Gln,P6i=Np,O6i=yu,L6i=IDi,B6i=DDi,D6i=jDi,$6i=a6i,F6i=p6i,j6i=R6i,x4e=2147483647,H6i=1072693247,U6i=1105199104,z6i=1139802112,C_t=1083179008,G6i=1072693248,V6i=1083231232,K6i=3230714880,k_t=31,nI=1e300,rI=1e-300,W6i=8008566259537294e-32,Ck=[0,0],R_t=[0,0];function Vln(t,e){var n,r,a,o,s,l,c,u,d,h,f,p,m,g,v,A;if(E_t(t)||E_t(e))return NaN;if(b4e(Ck,e),l=Ck[0],c=Ck[1],c===0){if(e===0)return 1;if(e===1)return t;if(e===-1)return 1/t;if(e===.5)return __t(t);if(e===-.5)return 1/__t(t);if(e===2)return t*t;if(e===3)return t*t*t;if(e===4)return t*=t,t*t;if(w_t(e))return D6i(t,e)}if(b4e(Ck,t),o=Ck[0],s=Ck[1],s===0){if(o===0)return L6i(t,e);if(t===1)return 1;if(t===-1&&S_t(e))return-1;if(w_t(t))return t===P6i?Vln(-0,-e):e<0?0:O6i}if(t<0&&M6i(e)===!1)return(t-t)/(t-t);if(a=N6i(t),n=o&x4e|0,r=l&x4e|0,u=o>>>k_t|0,d=l>>>k_t|0,u&&S_t(e)?u=-1:u=1,r>U6i){if(r>z6i)return B6i(t,e);if(n<H6i)return d===1?u*nI*nI:u*rI*rI;if(n>G6i)return d===0?u*nI*nI:u*rI*rI;m=F6i(R_t,a)}else m=$6i(R_t,a,n);if(h=I6i(e,0),p=(e-h)*m[0]+e*m[1],f=h*m[0],g=p+f,b4e(Ck,g),v=T_t(Ck[0]),A=T_t(Ck[1]),v>=C_t){if(v-C_t|A||p+W6i>g-f)return u*nI*nI}else if((v&x4e)>=V6i&&(v-K6i|A||p<=g-f))return u*rI*rI;return g=j6i(v,f,p),u*g}var Q6i=Vln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var q6i=Q6i,zd=q6i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var E4e,M_t;function Kln(){if(M_t)return E4e;M_t=1;var t=1.8378770664093456;return E4e=t,E4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var S4e,N_t;function Y6i(){if(N_t)return S4e;N_t=1;var t=Mv(),e=zd,n=Kln(),r=Np,a=yu,o=Na;function s(l,c,u){var d,h,f;return o(l)||o(c)||o(u)||u<0?NaN:u===0?l===c?a:r:(d=e(u,2),h=-.5*(2*t(u)+n),f=-1/(2*d),h+f*e(l-c,2))}return S4e=s,S4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var w4e,I_t;function J6i(){if(I_t)return w4e;I_t=1;var t=yu,e=Np,n=Na;function r(a,o){return n(a)||n(o)?NaN:a===o?t:e}return w4e=r,w4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _4e,P_t;function Z6i(){if(P_t)return _4e;P_t=1;var t=AC,e=yu,n=Np,r=Na;function a(o){if(r(o))return t(NaN);return s;function s(l){return r(l)?NaN:l===o?e:n}}return _4e=a,_4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var T4e,O_t;function X6i(){if(O_t)return T4e;O_t=1;var t=cc,e=J6i(),n=Z6i();return t(e,"factory",n),T4e=e,T4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var C4e,L_t;function e8i(){if(L_t)return C4e;L_t=1;var t=AC,e=X6i().factory,n=Kln(),r=Na,a=zd,o=Mv();function s(l,c){var u,d,h;if(r(l)||r(c)||c<0)return t(NaN);if(c===0)return e(l);return u=a(c,2),d=-.5*(2*o(c)+n),h=-1/(2*u),f;function f(p){return d+h*a(p-l,2)}}return C4e=s,C4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var k4e,B_t;function Wln(){if(B_t)return k4e;B_t=1;var t=cc,e=Y6i(),n=e8i();return t(e,"factory",n),k4e=e,k4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var R4e,D_t;function t8i(){if(D_t)return R4e;D_t=1;var t=Na,e=Ff,n=zd;function r(a,o,s){return t(a)||t(o)||t(s)||s<=0?NaN:e(o*a+.5*n(s*a,2))}return R4e=r,R4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var M4e,$_t;function n8i(){if($_t)return M4e;$_t=1;var t=AC,e=Na,n=Ff,r=zd;function a(o,s){if(e(o)||e(s)||s<=0)return t(NaN);return l;function l(c){return e(c)?NaN:n(o*c+.5*r(s*c,2))}}return M4e=a,M4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var N4e,F_t;function Qln(){if(F_t)return N4e;F_t=1;var t=cc,e=t8i(),n=n8i();return t(e,"factory",n),N4e=e,N4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var I4e,j_t;function r8i(){if(j_t)return I4e;j_t=1;var t=Ff,e=zd,n=Ip,r=Fwe(),a=yu,o=Na;function s(l,c,u){var d,h,f;return o(l)||o(c)||o(u)||u<0?NaN:u===0?l===c?a:0:(d=e(u,2),h=1/n(d*r),f=-1/(2*d),h*t(f*e(l-c,2)))}return I4e=s,I4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var P4e,H_t;function i8i(){if(H_t)return P4e;H_t=1;var t=yu,e=Na;function n(r,a){return e(r)||e(a)?NaN:r===a?t:0}return P4e=n,P4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var O4e,U_t;function a8i(){if(U_t)return O4e;U_t=1;var t=AC,e=yu,n=Na;function r(a){if(n(a))return t(NaN);return o;function o(s){return n(s)?NaN:s===a?e:0}}return O4e=r,O4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var L4e,z_t;function o8i(){if(z_t)return L4e;z_t=1;var t=cc,e=i8i(),n=a8i();return t(e,"factory",n),L4e=e,L4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var B4e,G_t;function s8i(){if(G_t)return B4e;G_t=1;var t=AC,e=o8i().factory,n=Na,r=Ip,a=Ff,o=zd,s=Fwe();function l(c,u){var d,h,f;if(n(c)||n(u)||u<0)return t(NaN);if(u===0)return e(c);return d=o(u,2),h=1/r(d*s),f=-1/(2*d),p;function p(m){return n(m)?NaN:h*a(f*o(m-c,2))}}return B4e=l,B4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var D4e,V_t;function qln(){if(V_t)return D4e;V_t=1;var t=cc,e=r8i(),n=s8i();return t(e,"factory",n),D4e=e,D4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function l8i(t){var e,n,r;return t===0?-.0005087819496582806:(t<0?e=-t:e=t,e<=1?(n=-.0005087819496582806+t*(-.008368748197417368+t*(.03348066254097446+t*(-.012692614766297404+t*(-.03656379714117627+t*(.02198786811111689+t*(.008226878746769157+t*(-.005387729650712429+t*(0+t*0)))))))),r=1+t*(-.9700050433032906+t*(-1.5657455823417585+t*(1.5622155839842302+t*(.662328840472003+t*(-.7122890234154284+t*(-.05273963823400997+t*(.07952836873415717+t*(-.0023339375937419+t*.0008862163904564247))))))))):(t=1/t,n=0+t*(0+t*(-.005387729650712429+t*(.008226878746769157+t*(.02198786811111689+t*(-.03656379714117627+t*(-.012692614766297404+t*(.03348066254097446+t*(-.008368748197417368+t*-.0005087819496582806)))))))),r=.0008862163904564247+t*(-.0023339375937419+t*(.07952836873415717+t*(-.05273963823400997+t*(-.7122890234154284+t*(.662328840472003+t*(1.5622155839842302+t*(-1.5657455823417585+t*(-.9700050433032906+t*1))))))))),n/r)}var c8i=l8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function u8i(t){var e,n,r;return t===0?-.20243350835593876:(t<0?e=-t:e=t,e<=1?(n=-.20243350835593876+t*(.10526468069939171+t*(8.3705032834312+t*(17.644729840837403+t*(-18.851064805871424+t*(-44.6382324441787+t*(17.445385985570866+t*(21.12946554483405+t*-3.6719225470772936))))))),r=1+t*(6.242641248542475+t*(3.971343795334387+t*(-28.66081804998+t*(-20.14326346804852+t*(48.560921310873994+t*(10.826866735546016+t*(-22.643693341313973+t*1.7211476576120028)))))))):(t=1/t,n=-3.6719225470772936+t*(21.12946554483405+t*(17.445385985570866+t*(-44.6382324441787+t*(-18.851064805871424+t*(17.644729840837403+t*(8.3705032834312+t*(.10526468069939171+t*-.20243350835593876))))))),r=1.7211476576120028+t*(-22.643693341313973+t*(10.826866735546016+t*(48.560921310873994+t*(-20.14326346804852+t*(-28.66081804998+t*(3.971343795334387+t*(6.242641248542475+t*1)))))))),n/r)}var d8i=u8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function h8i(t){var e,n,r;return t===0?-.1311027816799519:(t<0?e=-t:e=t,e<=1?(n=-.1311027816799519+t*(-.16379404719331705+t*(.11703015634199525+t*(.38707973897260434+t*(.3377855389120359+t*(.14286953440815717+t*(.029015791000532906+t*(.0021455899538880526+t*(-6794655751811263e-22+t*(28522533178221704e-24+t*-681149956853777e-24))))))))),r=1+t*(3.4662540724256723+t*(5.381683457070069+t*(4.778465929458438+t*(2.5930192162362027+t*(.848854343457902+t*(.15226433829533179+t*(.011059242293464892+t*(0+t*(0+t*0)))))))))):(t=1/t,n=-681149956853777e-24+t*(28522533178221704e-24+t*(-6794655751811263e-22+t*(.0021455899538880526+t*(.029015791000532906+t*(.14286953440815717+t*(.3377855389120359+t*(.38707973897260434+t*(.11703015634199525+t*(-.16379404719331705+t*-.1311027816799519))))))))),r=0+t*(0+t*(0+t*(.011059242293464892+t*(.15226433829533179+t*(.848854343457902+t*(2.5930192162362027+t*(4.778465929458438+t*(5.381683457070069+t*(3.4662540724256723+t*1)))))))))),n/r)}var f8i=h8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function p8i(t){var e,n,r;return t===0?-.0350353787183178:(t<0?e=-t:e=t,e<=1?(n=-.0350353787183178+t*(-.0022242652921344794+t*(.018557330651423107+t*(.009508047013259196+t*(.0018712349281955923+t*(.00015754461742496055+t*(460469890584318e-20+t*(-2304047769118826e-25+t*26633922742578204e-28))))))),r=1+t*(1.3653349817554064+t*(.7620591645536234+t*(.22009110576413124+t*(.03415891436709477+t*(.00263861676657016+t*(7646752923027944e-20+t*(0+t*0)))))))):(t=1/t,n=26633922742578204e-28+t*(-2304047769118826e-25+t*(460469890584318e-20+t*(.00015754461742496055+t*(.0018712349281955923+t*(.009508047013259196+t*(.018557330651423107+t*(-.0022242652921344794+t*-.0350353787183178))))))),r=0+t*(0+t*(7646752923027944e-20+t*(.00263861676657016+t*(.03415891436709477+t*(.22009110576413124+t*(.7620591645536234+t*(1.3653349817554064+t*1)))))))),n/r)}var m8i=p8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function g8i(t){var e,n,r;return t===0?-.016743100507663373:(t<0?e=-t:e=t,e<=1?(n=-.016743100507663373+t*(-.0011295143874558028+t*(.001056288621524929+t*(.00020938631748758808+t*(14962478375834237e-21+t*(44969678992770644e-23+t*(4625961635228786e-24+t*(-2811287356288318e-29+t*9905570997331033e-32))))))),r=1+t*(.5914293448864175+t*(.1381518657490833+t*(.016074608709367652+t*(.0009640118070051656+t*(27533547476472603e-21+t*(282243172016108e-21+t*(0+t*0)))))))):(t=1/t,n=9905570997331033e-32+t*(-2811287356288318e-29+t*(4625961635228786e-24+t*(44969678992770644e-23+t*(14962478375834237e-21+t*(.00020938631748758808+t*(.001056288621524929+t*(-.0011295143874558028+t*-.016743100507663373))))))),r=0+t*(0+t*(282243172016108e-21+t*(27533547476472603e-21+t*(.0009640118070051656+t*(.016074608709367652+t*(.1381518657490833+t*(.5914293448864175+t*1)))))))),n/r)}var v8i=g8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_48_0/boost/math/special_functions/detail/erf_inv.hpp}. This implementation follows the original, but has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var A8i=Na,K_t=Ip,W_t=Mv(),y8i=yu,b8i=Np,x8i=c8i,E8i=d8i,S8i=f8i,w8i=m8i,_8i=v8i,T8i=.08913147449493408,C8i=2.249481201171875,k8i=.807220458984375,R8i=.9399557113647461,M8i=.9836282730102539;function N8i(t){var e,n,r,a,o,s;return A8i(t)?NaN:t===1?y8i:t===-1?b8i:t===0?t:t>1||t<-1?NaN:(t<0?(e=-1,n=-t):(e=1,n=t),a=1-n,n<=.5?(o=n*(n+10),s=x8i(n),e*(o*T8i+o*s)):a>=.25?(o=K_t(-2*W_t(a)),a-=.25,s=E8i(a),e*(o/(C8i+s))):(a=K_t(-W_t(a)),a<3?(r=a-1.125,s=S8i(r),e*(k8i*a+s*a)):a<6?(r=a-3,s=w8i(r),e*(R8i*a+s*a)):(r=a-6,s=_8i(r),e*(M8i*a+s*a))))}var I8i=N8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var P8i=I8i,Yln=P8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var O8i=Yln,$4e=Na,L8i=Ip;function B8i(t,e,n){var r,a;return $4e(e)||$4e(n)||$4e(t)||n<0||t<0||t>1?NaN:n===0?e:(r=e,a=n*L8i(2),r+a*O8i(2*t-1))}var D8i=B8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $8i=Na;function F8i(t,e){return $8i(t)||t<0||t>1?NaN:e}var j8i=F8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var H8i=AC,Q_t=Na;function U8i(t){if(Q_t(t))return H8i(NaN);return e;function e(n){return Q_t(n)||n<0||n>1?NaN:t}}var z8i=U8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var G8i=cc,Jln=j8i,V8i=z8i;G8i(Jln,"factory",V8i);var K8i=Jln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var W8i=AC,Q8i=K8i.factory,q8i=Yln,F4e=Na,Y8i=Ip;function J8i(t,e){var n,r;if(F4e(t)||F4e(e)||e<0)return W8i(NaN);return e===0&&Q8i(t),n=t,r=e*Y8i(2),a;function a(o){return F4e(o)||o<0||o>1?NaN:n+r*q8i(2*o-1)}}var Z8i=J8i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var X8i=cc,Zln=D8i,e9i=Z8i;X8i(Zln,"factory",e9i);var grt=Zln;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var j4e,q_t;function t9i(){if(q_t)return j4e;q_t=1;var t=Lwe,e=cc,n=pBi(),r=LBi().isPrimitive,a=uN.isPrimitive,o=prt,s=Bln(),l=Dln(),c=$ln(),u=Fln(),d=jln(),h=Hln(),f=Uln(),p=zln(),m=drt,g=Wln(),v=Qln(),A=qln(),y=grt;function S(k){return m(k,this.mu,this.sigma)}function x(k){return g(k,this.mu,this.sigma)}function w(k){return v(k,this.mu,this.sigma)}function _(k){return A(k,this.mu,this.sigma)}function C(k){return y(k,this.mu,this.sigma)}function R(){var k,P;if(!(this instanceof R))return arguments.length===0?new R:new R(arguments[0],arguments[1]);if(arguments.length){if(P=arguments[0],k=arguments[1],!a(P)||o(P))throw new TypeError("invalid argument. Location parameter `mu` must be a number primitive. Value: `"+P+"`");if(!r(k))throw new TypeError("invalid argument. Scale parameter `sigma` must be a positive number. Value: `"+k+"`")}else P=0,k=1;return t(this,"mu",{configurable:!1,enumerable:!0,get:function(){return P},set:function(L){if(!a(L)||o(L))throw new TypeError("invalid value. Must be a number primitive. Value: `"+L+"`");P=L}}),t(this,"sigma",{configurable:!1,enumerable:!0,get:function(){return k},set:function(L){if(!r(L))throw new TypeError("invalid value. Must be a positive number. Value: `"+L+"`");k=L}}),this}return n(R.prototype,"entropy",function(){return s(this.mu,this.sigma)}),n(R.prototype,"kurtosis",function(){return l(this.mu,this.sigma)}),n(R.prototype,"mean",function(){return c(this.mu,this.sigma)}),n(R.prototype,"median",function(){return u(this.mu,this.sigma)}),n(R.prototype,"mode",function(){return d(this.mu,this.sigma)}),n(R.prototype,"skewness",function(){return h(this.mu,this.sigma)}),n(R.prototype,"stdev",function(){return f(this.mu,this.sigma)}),n(R.prototype,"variance",function(){return p(this.mu,this.sigma)}),e(R.prototype,"cdf",S),e(R.prototype,"logpdf",x),e(R.prototype,"mgf",w),e(R.prototype,"pdf",_),e(R.prototype,"quantile",C),j4e=R,j4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var H4e,Y_t;function n9i(){if(Y_t)return H4e;Y_t=1;var t=t9i();return H4e=t,H4e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v1=mln,rA={};v1(rA,"cdf",drt);v1(rA,"Normal",n9i());v1(rA,"entropy",Bln());v1(rA,"kurtosis",Dln());v1(rA,"logpdf",Wln());v1(rA,"mean",$ln());v1(rA,"median",Fln());v1(rA,"mgf",Qln());v1(rA,"mode",jln());v1(rA,"pdf",qln());v1(rA,"quantile",grt);v1(rA,"skewness",Hln());v1(rA,"stdev",Uln());v1(rA,"variance",zln());var Xze=rA;function r9i(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}var i9i=r9i,a9i=KYt,J_t=1/0,o9i=17976931348623157e292;function s9i(t){if(!t)return t===0?t:0;if(t=a9i(t),t===J_t||t===-J_t){var e=t<0?-1:1;return e*o9i}return t===t?t:0}var l9i=s9i,c9i=l9i;function u9i(t){var e=c9i(t),n=e%1;return e===e?n?e-n:e:0}var d9i=u9i,h9i=lln,f9i=cln,p9i=i9i,m9i=d9i,g9i=Math.max,v9i=Math.min;function A9i(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var a=r;return n!==void 0&&(a=m9i(n),a=a<0?g9i(r+a,0):v9i(a,r-1)),e===e?p9i(t,e,a):h9i(t,f9i,a,!0)}var y9i=A9i;const b9i=Li(y9i);var x9i=function(t){return t>0?1:t<0?-1:0},E9i=function(t){for(var e=t.slice().sort(),n=[e[0]],r=[1],a=1;a<e.length;a+=1)e[a]!==n[n.length-1]?(n.push(e[a]),r.push(1)):r[r.length-1]+=1;return[n,r]},Xln=function(t){for(var e=t.slice().sort(),n=[],r=0;r<t.length;r+=1){var a=t[r],o=e.indexOf(a)+1,s=b9i(e,a)+1;n.push(o===s?o:(o+s)/2)}return n},S9i=function(t,e){e===void 0&&(e=.05);for(var n=t==null?void 0:t.length,r=0,a=0;a<n-1;a+=1)for(var o=a+1;o<n;o+=1)r+=x9i(t[o]-t[a]);var s=xa(E9i(t),2),l=s[0],c=s[1],u=l.length,d=(n*(n-1)*(2*n+5)-(u===n?0:Owe(c,function(g){return g*(g-1)*(2*g+5)})))/18,h=0;r>0?h=(r-1)/Math.sqrt(d):r<0&&(h=(r+1)/Math.sqrt(d));var f=2*(1-Xze.cdf(Math.abs(h),0,1)),p=Math.abs(h)>Xze.quantile(1-e/2,0,1),m="no trend";return h<0&&p?m="decreasing":h>0&&p&&(m="increasing"),{trend:m,pValue:f,zScore:h}},ecn={},vrt={},Art={};Object.defineProperty(Art,"__esModule",{value:!0});class w9i{logGamma(e){const n=(e-.5)*Math.log(e+4.5)-(e+4.5),r=1+76.18009173/(e+0)-86.50532033/(e+1)+24.01409822/(e+2)-1.231739516/(e+3)+.00120858003/(e+4)-536382e-11/(e+5);return n+Math.log(r*Math.sqrt(2*Math.PI))}}Art.default=w9i;var _9i=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vrt,"__esModule",{value:!0});const T9i=_9i(Art);class C9i{static predict(e,n,r,a){let o=0,s=r.length;const l=new Array(s),c=new Array(s),u=new Array(s),d=new Array(s),h=new T9i.default;for(var f=0;f<s;f++)c[f]=2*a[f];for(var f=0;f<s;f++)d[f]=Math.exp(h.logGamma(c[f]/2+.5)-h.logGamma(c[f]/2));for(var f=0;f<s;f++)l[f]=r[f]*c[f]*Math.PI,l[f]=Math.pow(l[f],-.5)*d[f];for(var f=0;f<s;f++)o=1+1/(c[f]*r[f])*Math.pow(e-n[f],2),o=Math.pow(o,-(c[f]+1)/2),u[f]=l[f]*o;return u}}vrt.default=C9i;var k9i=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ecn,"__esModule",{value:!0});const R9i=k9i(vrt),uue=(t,e)=>{for(let n=0,r=t.length;n<r;n++)t[n]=e},M9i=(t,e)=>{let n=[];for(let r=0,a=t.length;r<a;r+=e)n.push(t.slice(r,r+e));return n},N9i=(t,e)=>{if(typeof t=="number")return t;throw Error("Specifiy an iteratee")};class I9i{constructor({breakpointVerifier:e,iteratee:n=N9i,chunkSize:r=1e3}){this.iteratee=n,this.breakpointVerifier=e,this.chunkSize=r,this.init=!1,this.maximum=[],this.model=[],this.mu0=0,this.kappa0=1,this.alpha0=1,this.beta0=1,this.muT=[this.mu0],this.kappaT=[this.kappa0],this.alphaT=[this.alpha0],this.betaT=[this.beta0],this.breakPoints_=[],this.iteration=0,this.data=[],this.size=0}exec(e){const n=this.chunkSize;if(!this.init){const a=this.maximum=new Array(n+1);uue(a,0);const o=this.model=new Array(n+1);uue(o,0);for(let s=0;s<o.length;s++)o[s]=new Array(n+1),uue(o[s],0);o[0][0]=1,this.mu0=0,this.kappa0=1,this.alpha0=1,this.beta0=1,this.muT=[this.mu0],this.kappaT=[this.kappa0],this.alphaT=[this.alpha0],this.betaT=[this.beta0],this.breakPoints_=[],this.iteration=0,this.init=!0}const r=M9i(e,n);for(let a=0,o=r.length;a<o;a++){const s=r[0];this.data=s,this.size=s.length,this.iteration=a,this.run(),this.computeBreakPoints();const l=this.model,c=l[l.length-1];for(let u=0;u<l.length;u++)l[u]=new Array(n+1),uue(l[u],0);l[0]=c,l[0][0]=1}}get(e){return this.iteratee(this.data[e],e)}run(){let e,n,r,a,o=0;for(let s=0;s<this.size;s++){const l=new Array(s+1);for(let u=0;u<=s;u++)l[u]=this.betaT[u]*(this.kappaT[u]+1)/(this.alphaT[u]*this.kappaT[u]);const c=R9i.default.predict(this.get(s),this.muT,l,this.alphaT);e=.005;for(let u=1;u<=s+1;u++)this.model[u][s+1]=this.model[u-1][s]*c[u-1]*(1-e);n=0;for(let u=0;u<=s;u++)n=n+this.model[u][s]*c[u]*e;this.model[0][s+1]=n,r=0;for(let u=0;u<this.size;u++)r=r+this.model[u][s+1];for(let u=0;u<=this.size;u++)this.model[u][s+1]=this.model[u][s+1]/r;this.update(s),a=Number.MIN_VALUE;for(let u=0;u<=s;u++)this.model[u][s]>a&&(a=this.model[u][s],o=u);this.maximum[s]=o}}update(e){let n,r,a,o;n=new Array(e+2),r=new Array(e+2),a=new Array(e+2),o=new Array(e+2),n[0]=this.mu0,r[0]=this.kappa0,a[0]=this.alpha0,o[0]=this.beta0;for(let s=0;s<=e;s++)n[s+1]=(this.kappaT[s]*this.muT[s]+this.get(e))/(this.kappaT[s]+1),r[s+1]=this.kappaT[s]+1,a[s+1]=this.alphaT[s]+.5,o[s+1]=this.betaT[s]+this.kappaT[s]*Math.pow(this.get(e)-this.muT[s],2)/(2*(this.kappaT[s]+1));this.muT=n,this.kappaT=r,this.alphaT=a,this.betaT=o}computeIndex(e){return this.iteration*this.chunkSize+e}computeBreakPoints(){let e=this.breakPoints_,n=0,r=e[0];for(let a=1;a<this.size;a++)if(this.maximum[a-1]>this.maximum[a])if(n=a-this.maximum[a],e.length===0)r={data:this.data[n],index:this.computeIndex(n)},e.push(r);else{const o={data:this.data[n],index:this.computeIndex(n)};this.breakpointVerifier(o,r)&&(r=o,e.push(r))}}breakPoints(){return[...this.breakPoints_].sort((e,n)=>e.index-n.index)}}var P9i=ecn.default=I9i,O9i=function(t){for(var e=t==null?void 0:t.length,n=Xln(t),r=0,a=-1,o=0;o<e;o+=1){var s=Math.abs(2*Owe(n.slice(0,o))-o*(e+1));s>r&&(r=s,a=o)}var l=2*Math.exp(-6*Math.pow(r,2)/(Math.pow(e,2)+Math.pow(e,3)));return{index:a,significance:1-l}},L9i=function(t,e){var n=t==null?void 0:t.length,r=Xln(t),a=Math.abs(2*Owe(r.slice(0,e))-e*(n+1)),o=2*Math.exp(-6*Math.pow(a,2)/(Math.pow(n,2)+Math.pow(n,3)));return o},B9i=function(t,e){return Math.abs(t.data-e.data)>=1},D9i=function(t){var e=new P9i({breakpointVerifier:B9i});e.exec(t);var n=e.breakPoints().map(function(r){return{index:r.index,significance:1-L9i(t,r.index)}});return n},$9i=irt,F9i=0/0;function j9i(t,e){var n=t==null?0:t.length;return n?$9i(t,e)/n:F9i}var H9i=j9i,U9i=H9i,z9i=rV;function G9i(t){return U9i(t,z9i)}var V9i=G9i;const KU=Li(V9i);var yrt=function(t,e){var n=KU(t),r=Mne(t),a=1-Xze.cdf(e,n,r);return a},tcn=4,K9i=function(t,e){var n=t==null?void 0:t.length,r=(e==null?void 0:e.windowSize)||tcn;if(n<=2*r+3)return[];for(var a=(e==null?void 0:e.significanceLimit)||Nsn,o=Array(n).fill(0),s=r;s<=n-r;s+=1){var l=KU(t.slice(s-r,s)),c=KU(t.slice(s,s+r));o[s]=Math.abs(l-c)}for(var u=o.slice(r,n-r+1),d=u.sort(function(p,m){return m-p}),h=[],f=function(p){var m=d[p],g=o.findIndex(function(A){return A===m}),v=1-yrt(u,m);v>=a&&h.push({index:g,significance:v})},s=0;s<d.length;s+=1)f(s);return h},W9i=function(t,e,n){var r=t==null?void 0:t.length,a=n||tcn;if(r<=2*a+3)return 0;for(var o=Array(r).fill(0),s=a;s<=r-a;s+=1){var l=KU(t.slice(s-a,s)),c=KU(t.slice(s,s+a));o[s]=Math.abs(l-c)}var u=yrt(o.slice(a,r-a+1),o[e]);return u},Q9i=irt,q9i=rV;function Y9i(t){return t&&t.length?Q9i(t,q9i):0}var J9i=Y9i;const Z9i=Li(J9i);/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var X9i=Na,U4e=td;function e$i(t,e,n){var r,a,o,s;if(t<=0)return NaN;if(t===1||n===0)return U4e(e[0]);for(n<0?a=(1-t)*n:a=0,r=U4e(e[a]),s=1;s<t;s++){if(a+=n,o=U4e(e[a]),X9i(o))return o;o>r&&(r=o)}return r}var t$i=e$i;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var n$i=Na,z4e=td;function r$i(t,e,n,r){var a,o,s,l;if(t<=0)return NaN;if(t===1||n===0)return z4e(e[r]);for(o=r,a=z4e(e[o]),l=1;l<t;l++){if(o+=n,s=z4e(e[o]),n$i(s))return s;s>a&&(a=s)}return a}var i$i=r$i;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var a$i=cc,ncn=t$i,o$i=i$i;a$i(ncn,"ndarray",o$i);var s$i=ncn;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var l$i=s$i,c$i=l$i;const u$i=Li(c$i);var d$i=function(t){var e=t==null?void 0:t.length,n=KU(t),r=t.map(function(l,c){return Z9i(t.slice(0,c+1))-n*(c+1)}),a=Owe(r.slice(0,e-1),function(l){return Math.pow(l,2)})/(e*(e+1)),o=u$i(e,r,1),s=r.findIndex(function(l){return l===o});return{U:a,index:s,significance:1-W9i(t,s)}},h$i={Bayesian:D9i,Window:K9i,PettittTest:O9i,BuishandUTest:d$i},rcn=function(t){var e=jIi(t,{k:1.8}),n=e.lower.indexes,r=e.upper.indexes,a=[];n.forEach(function(h){var f=t[h];a.push({index:h,type:"lower",value:f})}),r.forEach(function(h){var f=t[h];a.push({index:h,type:"upper",value:f})});for(var o=$Ii(a,function(h){return Math.abs(e[h.type].threshold-h.value)}),s=[],l=0;l<o.length;l+=1){var c=o[l],u=yrt(t,c.value),d=1-u;if(d<Nsn)break;s.push({index:c.index,value:c.value,significance:d})}return s},f$i=function(t,e,n){var r=e[0],a=n[0].field;if(!t||t.length===0)return[];var o=t.map(function(l){return l==null?void 0:l[a]});if(non(o)===1)return[];var s=rcn(o).map(function(l){var c=l.index,u=l.significance;return{type:"category_outlier",dimension:r,measure:a,significance:u,index:c,x:t[c][r],y:t[c][a]}});return s},icn={exports:{}};(function(t,e){(function(n,r){r(t)})(en,function(n){function r(f,p,m){return p in f?Object.defineProperty(f,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[p]=m,f}var a=Object.assign||function(f){for(var p=1;p<arguments.length;p++){var m=arguments[p];for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(f[g]=m[g])}return f};function o(f){if(Array.isArray(f)){for(var p=0,m=Array(f.length);p<f.length;p++)m[p]=f[p];return m}else return Array.from(f)}var s={order:2,precision:2,period:null};function l(f,p){var m=[],g=[];f.forEach(function(x,w){x[1]!==null&&(g.push(x),m.push(p[w]))});var v=g.reduce(function(x,w){return x+w[1]},0),A=v/g.length,y=g.reduce(function(x,w){var _=w[1]-A;return x+_*_},0),S=g.reduce(function(x,w,_){var C=m[_],R=w[1]-C[1];return x+R*R},0);return 1-S/y}function c(f,p){for(var m=f,g=f.length-1,v=[p],A=0;A<g;A++){for(var y=A,S=A+1;S<g;S++)Math.abs(m[A][S])>Math.abs(m[A][y])&&(y=S);for(var x=A;x<g+1;x++){var w=m[x][A];m[x][A]=m[x][y],m[x][y]=w}for(var _=A+1;_<g;_++)for(var C=g;C>=A;C--)m[C][_]-=m[C][A]*m[A][_]/m[A][A]}for(var R=g-1;R>=0;R--){for(var k=0,P=R+1;P<g;P++)k+=m[P][R]*v[P];v[R]=(m[g][R]-k)/m[R][R]}return v}function u(f,p){var m=Math.pow(10,p);return Math.round(f*m)/m}var d={linear:function(p,m){for(var g=[0,0,0,0,0],v=0,A=0;A<p.length;A++)p[A][1]!==null&&(v++,g[0]+=p[A][0],g[1]+=p[A][1],g[2]+=p[A][0]*p[A][0],g[3]+=p[A][0]*p[A][1],g[4]+=p[A][1]*p[A][1]);var y=v*g[2]-g[0]*g[0],S=v*g[3]-g[0]*g[1],x=y===0?0:u(S/y,m.precision),w=u(g[1]/v-x*g[0]/v,m.precision),_=function(k){return[u(k,m.precision),u(x*k+w,m.precision)]},C=p.map(function(R){return _(R[0])});return{points:C,predict:_,equation:[x,w],r2:u(l(p,C),m.precision),string:w===0?"y = "+x+"x":"y = "+x+"x + "+w}},exponential:function(p,m){for(var g=[0,0,0,0,0,0],v=0;v<p.length;v++)p[v][1]!==null&&(g[0]+=p[v][0],g[1]+=p[v][1],g[2]+=p[v][0]*p[v][0]*p[v][1],g[3]+=p[v][1]*Math.log(p[v][1]),g[4]+=p[v][0]*p[v][1]*Math.log(p[v][1]),g[5]+=p[v][0]*p[v][1]);var A=g[1]*g[2]-g[5]*g[5],y=Math.exp((g[2]*g[3]-g[5]*g[4])/A),S=(g[1]*g[4]-g[5]*g[3])/A,x=u(y,m.precision),w=u(S,m.precision),_=function(k){return[u(k,m.precision),u(x*Math.exp(w*k),m.precision)]},C=p.map(function(R){return _(R[0])});return{points:C,predict:_,equation:[x,w],string:"y = "+x+"e^("+w+"x)",r2:u(l(p,C),m.precision)}},logarithmic:function(p,m){for(var g=[0,0,0,0],v=p.length,A=0;A<v;A++)p[A][1]!==null&&(g[0]+=Math.log(p[A][0]),g[1]+=p[A][1]*Math.log(p[A][0]),g[2]+=p[A][1],g[3]+=Math.pow(Math.log(p[A][0]),2));var y=(v*g[1]-g[2]*g[0])/(v*g[3]-g[0]*g[0]),S=u(y,m.precision),x=u((g[2]-S*g[0])/v,m.precision),w=function(R){return[u(R,m.precision),u(u(x+S*Math.log(R),m.precision),m.precision)]},_=p.map(function(C){return w(C[0])});return{points:_,predict:w,equation:[x,S],string:"y = "+x+" + "+S+" ln(x)",r2:u(l(p,_),m.precision)}},power:function(p,m){for(var g=[0,0,0,0,0],v=p.length,A=0;A<v;A++)p[A][1]!==null&&(g[0]+=Math.log(p[A][0]),g[1]+=Math.log(p[A][1])*Math.log(p[A][0]),g[2]+=Math.log(p[A][1]),g[3]+=Math.pow(Math.log(p[A][0]),2));var y=(v*g[1]-g[0]*g[2])/(v*g[3]-Math.pow(g[0],2)),S=(g[2]-y*g[0])/v,x=u(Math.exp(S),m.precision),w=u(y,m.precision),_=function(k){return[u(k,m.precision),u(u(x*Math.pow(k,w),m.precision),m.precision)]},C=p.map(function(R){return _(R[0])});return{points:C,predict:_,equation:[x,w],string:"y = "+x+"x^"+w,r2:u(l(p,C),m.precision)}},polynomial:function(p,m){for(var g=[],v=[],A=0,y=0,S=p.length,x=m.order+1,w=0;w<x;w++){for(var _=0;_<S;_++)p[_][1]!==null&&(A+=Math.pow(p[_][0],w)*p[_][1]);g.push(A),A=0;for(var C=[],R=0;R<x;R++){for(var k=0;k<S;k++)p[k][1]!==null&&(y+=Math.pow(p[k][0],w+R));C.push(y),y=0}v.push(C)}v.push(g);for(var P=c(v,x).map(function(T){return u(T,m.precision)}),N=function(M){return[u(M,m.precision),u(P.reduce(function(D,B,j){return D+B*Math.pow(M,j)},0),m.precision)]},L=p.map(function(T){return N(T[0])}),I="y = ",b=P.length-1;b>=0;b--)b>1?I+=P[b]+"x^"+b+" + ":b===1?I+=P[b]+"x + ":I+=P[b];return{string:I,points:L,predict:N,equation:[].concat(o(P)).reverse(),r2:u(l(p,L),m.precision)}}};function h(){var f=function(m,g){return a({_round:u},m,r({},g,function(v,A){return d[g](v,a({},s,A))}))};return Object.keys(d).reduce(f,{})}n.exports=h()})})(icn);var p$i=icn.exports;const m$i=Li(p$i);var g$i=function(t){var e=S9i(t,.05),n=e.pValue,r=e.trend,a=m$i.linear(t.map(function(c,u){return[u,c]})),o=a.r2,s=a.points,l=a.equation;return{trend:r,significance:1-n,regression:{r2:o,points:s.map(function(c){return c[1]}),equation:l}}},v$i=function(t,e,n){var r=e[0],a=n[0].field;if(!t||t.length===0)return[];var o=t.map(function(l){return l==null?void 0:l[a]}),s=g$i(o);return s.trend!=="no trend"?[cr(cr({},s),{type:"trend",dimension:r,measure:a})]:[]},A$i=.85,y$i=function(t){var e=h$i.Bayesian(t),n=[];return e.forEach(function(r){(r==null?void 0:r.index)>=0&&(r==null?void 0:r.significance)>=A$i&&n.push(r)}),n},b$i=function(t,e,n){var r=e[0],a=n[0].field;if(!t||t.length===0)return[];var o=t.map(function(l){return l==null?void 0:l[a]}),s=y$i(o).map(function(l){var c=l.index,u=l.significance;return{type:"change_point",dimension:r,measure:a,significance:u,index:c,x:t[c][r],y:t[c][a]}});return s};/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var x$i=typeof Object.defineProperty=="function"?Object.defineProperty:null,E$i=x$i;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var S$i=E$i;function w$i(){try{return S$i({},"x",{}),!0}catch{return!1}}var _$i=w$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var T$i=Object.defineProperty,C$i=T$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var cV=Object.prototype,Z_t=cV.toString,X_t=cV.__defineGetter__,eTt=cV.__defineSetter__,k$i=cV.__lookupGetter__,R$i=cV.__lookupSetter__;function M$i(t,e,n){var r,a,o,s;if(typeof t!="object"||t===null||Z_t.call(t)==="[object Array]")throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");if(typeof n!="object"||n===null||Z_t.call(n)==="[object Array]")throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+n+"`.");if(a="value"in n,a&&(k$i.call(t,e)||R$i.call(t,e)?(r=t.__proto__,t.__proto__=cV,delete t[e],t[e]=n.value,t.__proto__=r):t[e]=n.value),o="get"in n,s="set"in n,a&&(o||s))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return o&&X_t&&X_t.call(t,e,n.get),s&&eTt&&eTt.call(t,e,n.set),t}var N$i=M$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var I$i=_$i,P$i=C$i,O$i=N$i,eGe;I$i()?eGe=P$i:eGe=O$i;var L$i=eGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var B$i=L$i;function D$i(t,e,n){B$i(t,e,{configurable:!1,enumerable:!1,writable:!1,value:n})}var $$i=D$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var F$i=$$i,vE=F$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var j$i=Math.floor,H$i=j$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var U$i=H$i,acn=U$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var z$i=acn;function G$i(t){return z$i(t)===t}var V$i=G$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var K$i=V$i,jwe=K$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var W$i=4294967295,Q$i=W$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var q$i=jwe,Y$i=Q$i;function J$i(t){return t!=null&&typeof t!="function"&&typeof t.length=="number"&&q$i(t.length)&&t.length>=0&&t.length<=Y$i}var Z$i=J$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var X$i=Z$i,e7i=X$i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var t7i=e7i;function n7i(t){if(typeof t!="function")throw new TypeError("invalid argument. Must provide a function. Value: `"+t+"`.");return e;function e(n){var r,a;if(!t7i(n)||(r=n.length,r===0))return!1;for(a=0;a<r;a++)if(t(n[a])===!1)return!1;return!0}}var r7i=n7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var i7i=r7i,a7i=i7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function o7i(t){return typeof t=="number"}var ocn=o7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function s7i(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}var l7i=s7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var c7i=l7i,u7i=c7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var d7i=u7i,h7i=d7i();function f7i(){return h7i&&typeof Symbol.toStringTag=="symbol"}var p7i=f7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var m7i=p7i,brt=m7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var g7i=Object.prototype.toString,scn=g7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v7i=scn;function A7i(t){return v7i.call(t)}var y7i=A7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var b7i=Object.prototype.hasOwnProperty;function x7i(t,e){return t==null?!1:b7i.call(t,e)}var E7i=x7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var S7i=E7i,xrt=S7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var w7i=typeof Symbol=="function"?Symbol.toStringTag:"",_7i=w7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var T7i=xrt,tq=_7i,G4e=scn;function C7i(t){var e,n,r;if(t==null)return G4e.call(t);n=t[tq],e=T7i(t,tq);try{t[tq]=void 0}catch{return G4e.call(t)}return r=G4e.call(t),e?t[tq]=n:delete t[tq],r}var k7i=C7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var R7i=brt,M7i=y7i,N7i=k7i,tGe;R7i()?tGe=N7i:tGe=M7i;var yC=tGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var I7i=Number;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var P7i=I7i,Ert=P7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var O7i=Ert,L7i=O7i.prototype.toString,B7i=L7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var D7i=B7i;function $7i(t){try{return D7i.call(t),!0}catch{return!1}}var F7i=$7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var j7i=brt,H7i=yC,U7i=Ert,z7i=F7i,G7i=j7i();function V7i(t){return typeof t=="object"?t instanceof U7i?!0:G7i?z7i(t):H7i(t)==="[object Number]":!1}var lcn=V7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var K7i=ocn,W7i=lcn;function Q7i(t){return K7i(t)||W7i(t)}var q7i=Q7i;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ccn=vE,Srt=q7i,Y7i=ocn,J7i=lcn;ccn(Srt,"isPrimitive",Y7i);ccn(Srt,"isObject",J7i);var l9=Srt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ucn=vE,wrt=a7i,_rt=l9,Z7i=wrt(_rt.isPrimitive),X7i=wrt(_rt.isObject),Trt=wrt(_rt);ucn(Trt,"primitives",Z7i);ucn(Trt,"objects",X7i);var eFi=Trt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var tFi=Number.POSITIVE_INFINITY,dN=tFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nFi=Ert,rFi=nFi.NEGATIVE_INFINITY,pO=rFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var iFi=dN,aFi=pO,oFi=jwe;function sFi(t){return t<iFi&&t>aFi&&oFi(t)}var dcn=sFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lFi=l9.isPrimitive,cFi=dcn;function uFi(t){return lFi(t)&&cFi(t)}var hcn=uFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dFi=l9.isObject,hFi=dcn;function fFi(t){return dFi(t)&&hFi(t.valueOf())}var fcn=fFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pFi=hcn,mFi=fcn;function gFi(t){return pFi(t)||mFi(t)}var vFi=gFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pcn=vE,Crt=vFi,AFi=hcn,yFi=fcn;pcn(Crt,"isPrimitive",AFi);pcn(Crt,"isObject",yFi);var mcn=Crt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var bFi=mcn.isPrimitive;function xFi(t){return bFi(t)&&t>=0}var gcn=xFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var EFi=mcn.isObject;function SFi(t){return EFi(t)&&t.valueOf()>=0}var vcn=SFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wFi=gcn,_Fi=vcn;function TFi(t){return wFi(t)||_Fi(t)}var CFi=TFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Acn=vE,krt=CFi,kFi=gcn,RFi=vcn;Acn(krt,"isPrimitive",kFi);Acn(krt,"isObject",RFi);var ycn=krt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var MFi=9007199254740991,NFi=MFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var IFi=ycn.isPrimitive,PFi=NFi;function OFi(t){return t!==null&&typeof t=="object"&&IFi(t.length)&&t.length<=PFi&&typeof t.BYTES_PER_ELEMENT=="number"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number"}var LFi=OFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var BFi=LFi,DFi=BFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function $Fi(t){return t!==t}var FFi=$Fi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jFi=FFi,c9=jFi;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var tTt=c9;function HFi(t,e,n){var r,a,o,s,l;if(t<=0)return NaN;if(t===1||n===0)return tTt(e[0])?NaN:0;for(n<0?o=(1-t)*n:o=0,a=e[o],r=a,l=1;l<t;l++){if(o+=n,s=e[o],tTt(s))return s;s<a?a=s:s>r&&(r=s)}return r-a}var UFi=HFi;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nTt=c9;function zFi(t,e,n,r){var a,o,s,l,c;if(t<=0)return NaN;if(t===1||n===0)return nTt(e[r])?NaN:0;for(s=r,o=e[s],a=o,c=1;c<t;c++){if(s+=n,l=e[s],nTt(l))return l;l<o?o=l:l>a&&(a=l)}return a-o}var GFi=zFi;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var VFi=vE,bcn=UFi,KFi=GFi;VFi(bcn,"ndarray",KFi);var WFi=bcn;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var QFi=WFi,qFi=QFi;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function YFi(t){return Math.abs(t)}var JFi=YFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ZFi=JFi,goe=ZFi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var XFi=dN;function eji(t){return t===0&&1/t===XFi}var tji=eji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nji=tji,rji=nji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rTt=rji,V4e=c9,iji=pO,due=dN;function aji(t,e){var n,r,a,o;if(n=arguments.length,n===2)return V4e(t)||V4e(e)?NaN:t===due||e===due?due:t===e&&t===0?rTt(t)?t:e:t>e?t:e;for(r=iji,o=0;o<n;o++){if(a=arguments[o],V4e(a)||a===due)return a;(a>r||a===r&&a===0&&rTt(a))&&(r=a)}return r}var oji=aji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var sji=oji,xcn=sji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lji=pO;function cji(t){return t===0&&1/t===lji}var uji=cji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dji=uji,hji=dji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var iTt=hji,K4e=c9,hue=pO,fji=dN;function pji(t,e){var n,r,a,o;if(n=arguments.length,n===2)return K4e(t)||K4e(e)?NaN:t===hue||e===hue?hue:t===e&&t===0?iTt(t)?t:e:t<e?t:e;for(r=fji,o=0;o<n;o++){if(a=arguments[o],K4e(a)||a===hue)return a;(a<r||a===r&&a===0&&iTt(a))&&(r=a)}return r}var mji=pji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var gji=mji,vji=gji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Aji=jwe;function yji(t){return Aji(t/2)}var bji=yji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xji=bji,Eji=xji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var aTt=Eji;function Sji(t){return t>0?aTt(t-1):aTt(t+1)}var wji=Sji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _ji=wji,Ecn=_ji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Tji=dN,Cji=pO;function kji(t){return t===Tji||t===Cji}var Rji=kji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Mji=Rji,Rrt=Mji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Nji=Math.sqrt,Iji=Nji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Pji=Iji,Scn=Pji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Oji=yC,Lji=typeof Uint32Array=="function";function Bji(t){return Lji&&t instanceof Uint32Array||Oji(t)==="[object Uint32Array]"}var Dji=Bji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $ji=Dji,Fji=$ji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jji=4294967295,Hji=jji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Uji=typeof Uint32Array=="function"?Uint32Array:null,zji=Uji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Gji=Fji,W4e=Hji,oTt=zji;function Vji(){var t,e;if(typeof oTt!="function")return!1;try{e=[1,3.14,-3.14,W4e+1,W4e+2],e=new oTt(e),t=Gji(e)&&e[0]===1&&e[1]===3&&e[2]===W4e-2&&e[3]===0&&e[4]===1}catch{t=!1}return t}var Kji=Vji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Wji=Kji,Qji=Wji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qji=typeof Uint32Array=="function"?Uint32Array:void 0,Yji=qji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Jji(){throw new Error("not implemented")}var Zji=Jji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Xji=Qji,eHi=Yji,tHi=Zji,nGe;Xji()?nGe=eHi:nGe=tHi;var voe=nGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nHi=yC,rHi=typeof Float64Array=="function";function iHi(t){return rHi&&t instanceof Float64Array||nHi(t)==="[object Float64Array]"}var aHi=iHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oHi=aHi,sHi=oHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lHi=typeof Float64Array=="function"?Float64Array:null,cHi=lHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uHi=sHi,sTt=cHi;function dHi(){var t,e;if(typeof sTt!="function")return!1;try{e=new sTt([1,3.14,-3.14,NaN]),t=uHi(e)&&e[0]===1&&e[1]===3.14&&e[2]===-3.14&&e[3]!==e[3]}catch{t=!1}return t}var hHi=dHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var fHi=hHi,pHi=fHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mHi=typeof Float64Array=="function"?Float64Array:void 0,gHi=mHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function vHi(){throw new Error("not implemented")}var AHi=vHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yHi=pHi,bHi=gHi,xHi=AHi,rGe;yHi()?rGe=bHi:rGe=xHi;var Aoe=rGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var EHi=yC,SHi=typeof Uint8Array=="function";function wHi(t){return SHi&&t instanceof Uint8Array||EHi(t)==="[object Uint8Array]"}var _Hi=wHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var THi=_Hi,CHi=THi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kHi=255,RHi=kHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var MHi=typeof Uint8Array=="function"?Uint8Array:null,NHi=MHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var IHi=CHi,Q4e=RHi,lTt=NHi;function PHi(){var t,e;if(typeof lTt!="function")return!1;try{e=[1,3.14,-3.14,Q4e+1,Q4e+2],e=new lTt(e),t=IHi(e)&&e[0]===1&&e[1]===3&&e[2]===Q4e-2&&e[3]===0&&e[4]===1}catch{t=!1}return t}var OHi=PHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var LHi=OHi,BHi=LHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var DHi=typeof Uint8Array=="function"?Uint8Array:void 0,$Hi=DHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function FHi(){throw new Error("not implemented")}var jHi=FHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var HHi=BHi,UHi=$Hi,zHi=jHi,iGe;HHi()?iGe=UHi:iGe=zHi;var GHi=iGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var VHi=yC,KHi=typeof Uint16Array=="function";function WHi(t){return KHi&&t instanceof Uint16Array||VHi(t)==="[object Uint16Array]"}var QHi=WHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qHi=QHi,YHi=qHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var JHi=65535,ZHi=JHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var XHi=typeof Uint16Array=="function"?Uint16Array:null,eUi=XHi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var tUi=YHi,q4e=ZHi,cTt=eUi;function nUi(){var t,e;if(typeof cTt!="function")return!1;try{e=[1,3.14,-3.14,q4e+1,q4e+2],e=new cTt(e),t=tUi(e)&&e[0]===1&&e[1]===3&&e[2]===q4e-2&&e[3]===0&&e[4]===1}catch{t=!1}return t}var rUi=nUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var iUi=rUi,aUi=iUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oUi=typeof Uint16Array=="function"?Uint16Array:void 0,sUi=oUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function lUi(){throw new Error("not implemented")}var cUi=lUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uUi=aUi,dUi=sUi,hUi=cUi,aGe;uUi()?aGe=dUi:aGe=hUi;var fUi=aGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pUi=GHi,mUi=fUi,gUi={uint16:mUi,uint8:pUi},vUi=gUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uTt=vUi,wcn;function AUi(){var t,e;return t=new uTt.uint16(1),t[0]=4660,e=new uTt.uint8(t.buffer),e[0]===52}wcn=AUi();var yUi=wcn;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var bUi=yUi,yoe=bUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xUi=yoe,_cn,oGe,sGe;xUi===!0?(oGe=1,sGe=0):(oGe=0,sGe=1);_cn={HIGH:oGe,LOW:sGe};var EUi=_cn;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var SUi=voe,wUi=Aoe,Tcn=EUi,Ccn=new wUi(1),dTt=new SUi(Ccn.buffer),_Ui=Tcn.HIGH,TUi=Tcn.LOW;function CUi(t,e,n,r){return Ccn[0]=t,e[r]=dTt[_Ui],e[r+n]=dTt[TUi],e}var kcn=CUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kUi=kcn;function RUi(t){return kUi(t,[0,0],1,0)}var MUi=RUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var NUi=vE,Rcn=MUi,IUi=kcn;NUi(Rcn,"assign",IUi);var Mrt=Rcn;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var PUi=yoe,lGe;PUi===!0?lGe=0:lGe=1;var OUi=lGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var LUi=voe,BUi=Aoe,DUi=OUi,cGe=new BUi(1),$Ui=new LUi(cGe.buffer);function FUi(t,e){return cGe[0]=t,$Ui[DUi]=e>>>0,cGe[0]}var jUi=FUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var HUi=jUi,Hwe=HUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function UUi(t){return t|0}var zUi=UUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var GUi=zUi,Mcn=GUi;/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var VUi=2147483647,Uwe=VUi;/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var KUi=2147483648,WUi=KUi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var QUi=yoe,uGe;QUi===!0?uGe=1:uGe=0;var qUi=uGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var YUi=voe,JUi=Aoe,ZUi=qUi,Ncn=new JUi(1),XUi=new YUi(Ncn.buffer);function ezi(t){return Ncn[0]=t,XUi[ZUi]}var tzi=ezi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nzi=tzi,boe=nzi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rzi=yoe,Icn,dGe,hGe;rzi===!0?(dGe=1,hGe=0):(dGe=0,hGe=1);Icn={HIGH:dGe,LOW:hGe};var izi=Icn;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var azi=voe,ozi=Aoe,Pcn=izi,Ocn=new ozi(1),hTt=new azi(Ocn.buffer),szi=Pcn.HIGH,lzi=Pcn.LOW;function czi(t,e){return hTt[szi]=t,hTt[lzi]=e,Ocn[0]}var uzi=czi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dzi=uzi,Lcn=dzi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hzi=WUi,fzi=Uwe,pzi=Mrt,mzi=boe,gzi=Lcn,Y4e=[0,0];function vzi(t,e){var n,r;return pzi.assign(t,Y4e,1,0),n=Y4e[0],n&=fzi,r=mzi(e),r&=hzi,n|=r,gzi(n,Y4e[1])}var Azi=vzi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yzi=Azi,Bcn=yzi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var fTt=Ecn,bzi=Bcn,xzi=pO,fue=dN;function Ezi(t,e){return e===xzi?fue:e===fue?0:e>0?fTt(e)?t:0:fTt(e)?bzi(fue,t):fue}var Szi=Ezi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var wzi=Uwe,_zi=boe,Tzi=1072693247,pue=1e300,mue=1e-300;function Czi(t,e){var n,r;return r=_zi(t),n=r&wzi,n<=Tzi?e<0?pue*pue:mue*mue:e>0?pue*pue:mue*mue}var kzi=Czi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Rzi=goe,pTt=dN;function Mzi(t,e){return t===-1?(t-t)/(t-t):t===1?1:Rzi(t)<1==(e===pTt)?0:pTt}var Nzi=Mzi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Izi=yoe,fGe;Izi===!0?fGe=1:fGe=0;var Pzi=fGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ozi=voe,Lzi=Aoe,Bzi=Pzi,pGe=new Lzi(1),Dzi=new Ozi(pGe.buffer);function $zi(t,e){return pGe[0]=t,Dzi[Bzi]=e>>>0,pGe[0]}var Fzi=$zi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jzi=Fzi,Dcn=jzi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Hzi=1023,zwe=Hzi;/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Uzi(t){return t===0?.5999999999999946:.5999999999999946+t*(.4285714285785502+t*(.33333332981837743+t*(.272728123808534+t*(.23066074577556175+t*.20697501780033842))))}var zzi=Uzi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var Gzi=boe,gue=Hwe,mTt=Dcn,Vzi=zwe,Kzi=zzi,Wzi=1048575,gTt=1048576,Qzi=1072693248,qzi=536870912,Yzi=524288,Jzi=20,Zzi=9007199254740992,Xzi=.9617966939259756,eGi=.9617967009544373,tGi=-7028461650952758e-24,nGi=[1,1.5],rGi=[0,.5849624872207642],iGi=[0,1350039202129749e-23];function aGi(t,e,n){var r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_,C,R;return _=0,n<gTt&&(e*=Zzi,_-=53,n=Gzi(e)),_+=(n>>Jzi)-Vzi|0,C=n&Wzi|0,n=C|Qzi|0,C<=235662?R=0:C<767610?R=1:(R=0,_+=1,n-=gTt),e=mTt(e,n),d=nGi[R],x=e-d,w=1/(e+d),a=x*w,s=gue(a,0),r=(n>>1|qzi)+Yzi,r+=R<<18,c=mTt(0,r),u=e-(c-d),l=w*(x-s*c-s*u),o=a*a,S=o*o*Kzi(o),S+=l*(s+a),o=s*s,c=3+o+S,c=gue(c,0),u=S-(c-3-o),x=s*c,w=l*c+u*a,f=x+w,f=gue(f,0),p=w-(f-x),m=eGi*f,g=tGi*f+p*Xzi+iGi[R],h=rGi[R],y=_,v=m+g+h+y,v=gue(v,0),A=g-(v-y-h-m),t[0]=v,t[1]=A,t}var oGi=aGi;/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function sGi(t){return t===0?.5:.5+t*(-.3333333333333333+t*.25)}var lGi=sGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var cGi=Hwe,uGi=lGi,dGi=1.4426950408889634,hGi=1.4426950216293335,fGi=19259629911266175e-24;function pGi(t,e){var n,r,a,o,s,l;return a=e-1,o=a*a*uGi(a),s=hGi*a,l=a*fGi-o*dGi,r=s+l,r=cGi(r,0),n=l-(r-s),t[0]=r,t[1]=n,t}var mGi=pGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var gGi=1023,vGi=gGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var AGi=-1023,yGi=AGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var bGi=-1074,xGi=bGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var EGi=22250738585072014e-324,SGi=EGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wGi=SGi,_Gi=Rrt,TGi=c9,CGi=goe,kGi=4503599627370496;function RGi(t,e,n,r){return TGi(t)||_Gi(t)?(e[r]=t,e[r+n]=0,e):t!==0&&CGi(t)<wGi?(e[r]=t*kGi,e[r+n]=-52,e):(e[r]=t,e[r+n]=0,e)}var $cn=RGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var MGi=$cn;function NGi(t){return MGi(t,[0,0],1,0)}var IGi=NGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var PGi=vE,Fcn=IGi,OGi=$cn;PGi(Fcn,"assign",OGi);var LGi=Fcn;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var BGi=2146435072,DGi=BGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $Gi=boe,FGi=DGi,jGi=zwe;function HGi(t){var e=$Gi(t);return e=(e&FGi)>>>20,e-jGi|0}var UGi=HGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var zGi=UGi,GGi=zGi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var VGi=dN,KGi=pO,WGi=zwe,QGi=vGi,qGi=yGi,YGi=xGi,JGi=c9,ZGi=Rrt,XGi=Bcn,eVi=LGi.assign,tVi=GGi,nVi=Mrt,rVi=Lcn,iVi=2220446049250313e-31,aVi=2148532223,J4e=[0,0],Z4e=[0,0];function oVi(t,e){var n,r;return e===0||t===0||JGi(t)||ZGi(t)?t:(eVi(t,J4e,1,0),t=J4e[0],e+=J4e[1],e+=tVi(t),e<YGi?XGi(0,t):e>QGi?t<0?KGi:VGi:(e<=qGi?(e+=52,r=iVi):r=1,nVi.assign(t,Z4e,1,0),n=Z4e[0],n&=aVi,n|=e+WGi<<20,r*rVi(n,Z4e[1])))}var sVi=oVi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lVi=sVi,cVi=lVi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uVi=.6931471805599453,dVi=uVi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hVi=1048575,fVi=hVi;/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function pVi(t){return t===0?.16666666666666602:.16666666666666602+t*(-.0027777777777015593+t*(6613756321437934e-20+t*(-16533902205465252e-22+t*41381367970572385e-24)))}var mVi=pVi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var gVi=boe,vTt=Dcn,vVi=Hwe,AVi=Mcn,yVi=cVi,bVi=dVi,ATt=zwe,yTt=Uwe,bTt=fVi,xVi=mVi,xTt=1048576,EVi=1071644672,nq=20,SVi=.6931471824645996,wVi=-1904654299957768e-24;function _Vi(t,e,n){var r,a,o,s,l,c,u,d,h,f,p;return f=t&yTt|0,p=(f>>nq)-ATt|0,h=0,f>EVi&&(h=t+(xTt>>p+1)>>>0,p=((h&yTt)>>nq)-ATt|0,r=(h&~(bTt>>p))>>>0,o=vTt(0,r),h=(h&bTt|xTt)>>nq-p>>>0,t<0&&(h=-h),e-=o),o=n+e,o=vVi(o,0),l=o*SVi,c=(n-(o-e))*bVi+o*wVi,d=l+c,u=c-(d-l),o=d*d,a=d-o*xVi(o),s=d*a/(a-2)-(u+d*u),d=1-(s-d),t=gVi(d),t=AVi(t),t+=h<<nq>>>0,t>>nq<=0?d=yVi(d,h):d=vTt(d,t),d}var TVi=_Vi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_pow.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var ETt=c9,STt=Ecn,wTt=Rrt,CVi=jwe,_Tt=Scn,kVi=goe,X4e=Mrt,RVi=Hwe,TTt=Mcn,MVi=pO,NVi=dN,eLe=Uwe,IVi=Szi,PVi=kzi,OVi=Nzi,LVi=oGi,BVi=mGi,DVi=TVi,$Vi=1072693247,FVi=1105199104,jVi=1139802112,CTt=1083179008,HVi=1072693248,UVi=1083231232,zVi=3230714880,kTt=31,iI=1e300,aI=1e-300,GVi=8008566259537294e-32,kk=[0,0],RTt=[0,0];function jcn(t,e){var n,r,a,o,s,l,c,u,d,h,f,p,m,g,v,A;if(ETt(t)||ETt(e))return NaN;if(X4e.assign(e,kk,1,0),l=kk[0],c=kk[1],c===0){if(e===0)return 1;if(e===1)return t;if(e===-1)return 1/t;if(e===.5)return _Tt(t);if(e===-.5)return 1/_Tt(t);if(e===2)return t*t;if(e===3)return t*t*t;if(e===4)return t*=t,t*t;if(wTt(e))return OVi(t,e)}if(X4e.assign(t,kk,1,0),o=kk[0],s=kk[1],s===0){if(o===0)return IVi(t,e);if(t===1)return 1;if(t===-1&&STt(e))return-1;if(wTt(t))return t===MVi?jcn(-0,-e):e<0?0:NVi}if(t<0&&CVi(e)===!1)return(t-t)/(t-t);if(a=kVi(t),n=o&eLe|0,r=l&eLe|0,u=o>>>kTt|0,d=l>>>kTt|0,u&&STt(e)?u=-1:u=1,r>FVi){if(r>jVi)return PVi(t,e);if(n<$Vi)return d===1?u*iI*iI:u*aI*aI;if(n>HVi)return d===0?u*iI*iI:u*aI*aI;m=BVi(RTt,a)}else m=LVi(RTt,a,n);if(h=RVi(e,0),p=(e-h)*m[0]+e*m[1],f=h*m[0],g=p+f,X4e.assign(g,kk,1,0),v=TTt(kk[0]),A=TTt(kk[1]),v>=CTt){if(v-CTt|A||p+GVi>g-f)return u*iI*iI}else if((v&eLe)>=UVi&&(v-zVi|A||p<=g-f))return u*aI*aI;return g=DVi(v,f,p),u*g}var VVi=jcn;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var KVi=VVi,Hcn=KVi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var WVi=Scn,QVi=goe,qVi=xcn,tLe=Hcn;function YVi(t,e,n,r,a,o,s,l,c){var u,d,h,f,p,m,g,v,A,y,S,x;for(p=t[r],u=t[n-1]-t[0],g=qVi(p-t[a],t[o]-p),f=.999*g,h=.001*g,v=0,x=a;x<n;x++)if(s[x]=0,S=QVi(t[x]-p),S<=f)S>h?s[x]=tLe(1-tLe(S/g,3),3):s[x]=1,l&&(s[x]*=c[x]),v+=s[x];else if(t[x]>p)break;if(d=x-1,v<=0)return e[r];for(x=a;x<=d;x++)s[x]/=v;if(g>0){for(v=0,x=a;x<=d;x++)v+=s[x]*t[x];for(A=p-v,y=0,x=a;x<=d;x++)y+=s[x]*tLe(t[x]-v,2);if(WVi(y)>.001*u)for(A/=y,x=a;x<=d;x++)s[x]*=1+A*(t[x]-v)}for(m=0,x=a;x<=d;x++)m+=s[x]*e[x];return m}var JVi=YVi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var MTt=acn,NTt=goe,ITt=xcn,ZVi=vji,PTt=Hcn,XVi=JVi;function eKi(t,e){return t-e}function tKi(t,e,n,r,a,o){var s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_,C,R,k,P;if(n<2)return e;for(C=new Array(n),m=new Array(n),_=new Array(n),A=ITt(ZVi(MTt(r*n),n),2),h=1;h<=a+1;h++){c=0,s=A-1,f=-1,R=0;do{for(;s<n-1&&(x=t[R]-t[c],w=t[s+1]-t[R],!(x<=w));)c+=1,s+=1;if(C[R]=XVi(t,e,n,R,c,s,m,h>1,_),f<R-1)for(l=t[R]-t[f],k=f+1;k<R;k++)u=(t[k]-t[f])/l,C[k]=u*C[R]+(1-u)*C[f];for(f=R,p=t[f]+o,R=f+1;R<n&&!(t[R]>p);R++)t[R]===t[f]&&(C[R]=C[f],f=R);R=ITt(f+1,R-1)}while(f<n-1);for(R=0;R<n;R++)m[R]=e[R]-C[R];if(h>a)break;for(R=0;R<n;R++)_[R]=NTt(m[R]);for(_.sort(eKi),g=MTt(n/2),v=n-g-1,d=3*(_[g]+_[v]),S=.999*d,y=.001*d,R=0;R<n;R++)P=NTt(m[R]),P<=y?_[R]=1:P>S?_[R]=0:_[R]=PTt(1-PTt(P/d,2),2)}return{x:t,y:C}}var nKi=tKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rKi=yC,mGe;function iKi(t){return rKi(t)==="[object Array]"}Array.isArray?mGe=Array.isArray:mGe=iKi;var aKi=mGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oKi=aKi,Ucn=oKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var sKi=Ucn;function lKi(t){return typeof t=="object"&&t!==null&&!sKi(t)}var cKi=lKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uKi=cKi,dKi=uKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hKi=/./,fKi=hKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function pKi(t){return typeof t=="boolean"}var zcn=pKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mKi=Boolean.prototype.toString,gKi=mKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vKi=gKi;function AKi(t){try{return vKi.call(t),!0}catch{return!1}}var yKi=AKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var bKi=brt,xKi=yC,EKi=yKi,SKi=bKi();function wKi(t){return typeof t=="object"?t instanceof Boolean?!0:SKi?EKi(t):xKi(t)==="[object Boolean]":!1}var Gcn=wKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _Ki=zcn,TKi=Gcn;function CKi(t){return _Ki(t)||TKi(t)}var kKi=CKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Vcn=vE,Nrt=kKi,RKi=zcn,MKi=Gcn;Vcn(Nrt,"isPrimitive",RKi);Vcn(Nrt,"isObject",MKi);var Kcn=Nrt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function NKi(){return new Function("return this;")()}var IKi=NKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var PKi=typeof self=="object"?self:null,OKi=PKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var LKi=typeof window=="object"?window:null,BKi=LKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var DKi=typeof en=="object"?en:null,$Ki=DKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var FKi=Kcn.isPrimitive,jKi=IKi,OTt=OKi,LTt=BKi,BTt=$Ki;function HKi(t){if(arguments.length){if(!FKi(t))throw new TypeError("invalid argument. Must provide a boolean primitive. Value: `"+t+"`.");if(t)return jKi()}if(OTt)return OTt;if(LTt)return LTt;if(BTt)return BTt;throw new Error("unexpected error. Unable to resolve global object.")}var UKi=HKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var zKi=UKi,GKi=zKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var VKi=GKi,DTt=VKi(),KKi=DTt.document&&DTt.document.childNodes,WKi=KKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var QKi=Int8Array,qKi=QKi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var YKi=fKi,JKi=WKi,ZKi=qKi;function XKi(){return typeof YKi=="function"||typeof ZKi=="object"||typeof JKi=="function"}var eWi=XKi;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function tWi(){return/^\s*function\s*([^(]*)/i}var Wcn=tWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nWi=Wcn,rWi=nWi(),iWi=rWi;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var aWi=vE,Qcn=Wcn,oWi=iWi;aWi(Qcn,"REGEXP",oWi);var sWi=Qcn;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lWi=Ucn;function cWi(t){if(typeof t!="function")throw new TypeError("invalid argument. Must provide a function. Value: `"+t+"`.");return e;function e(n){var r,a;if(!lWi(n)||(r=n.length,r===0))return!1;for(a=0;a<r;a++)if(t(n[a])===!1)return!1;return!0}}var uWi=cWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dWi=uWi,hWi=dWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function fWi(t){return t!==null&&typeof t=="object"}var pWi=fWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mWi=vE,gWi=hWi,Irt=pWi,vWi=gWi(Irt);mWi(Irt,"isObjectLikeArray",vWi);var AWi=Irt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yWi=AWi;function bWi(t){return yWi(t)&&(t._isBuffer||t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))}var xWi=bWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var EWi=xWi,SWi=EWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wWi=yC,_Wi=sWi.REGEXP,TWi=SWi;function CWi(t){var e,n,r;if(n=wWi(t).slice(8,-1),(n==="Object"||n==="Error")&&t.constructor){if(r=t.constructor,typeof r.name=="string")return r.name;if(e=_Wi.exec(r.toString()),e)return e[1]}return TWi(t)?"Buffer":n}var kWi=CWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var RWi=kWi,qcn=RWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var MWi=qcn;function NWi(t){var e;return t===null?"null":(e=typeof t,e==="object"?MWi(t).toLowerCase():e)}var IWi=NWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var PWi=qcn;function OWi(t){return PWi(t).toLowerCase()}var LWi=OWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var BWi=eWi,DWi=IWi,$Wi=LWi,FWi=BWi()?$Wi:DWi,jWi=FWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var HWi=jWi;function UWi(t){return HWi(t)==="function"}var zWi=UWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var GWi=zWi,Ycn=GWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var VWi=Object.getPrototypeOf,KWi=VWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function WWi(t){return t.__proto__}var QWi=WWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qWi=yC,YWi=QWi;function JWi(t){var e=YWi(t);return e||e===null?e:qWi(t.constructor)==="[object Function]"?t.constructor.prototype:t instanceof Object?Object.prototype:null}var ZWi=JWi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var XWi=Ycn,eQi=KWi,tQi=ZWi,gGe;XWi(Object.getPrototypeOf)?gGe=eQi:gGe=tQi;var nQi=gGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rQi=nQi;function iQi(t){return t==null?null:(t=Object(t),rQi(t))}var aQi=iQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oQi=aQi,sQi=oQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lQi=dKi,$Tt=Ycn,cQi=sQi,Hme=xrt,uQi=yC,dQi=Object.prototype;function hQi(t){var e;for(e in t)if(!Hme(t,e))return!1;return!0}function fQi(t){var e;return lQi(t)?(e=cQi(t),e?!Hme(t,"constructor")&&Hme(e,"constructor")&&$Tt(e.constructor)&&uQi(e.constructor)==="[object Function]"&&Hme(e,"isPrototypeOf")&&$Tt(e.isPrototypeOf)&&(e===dQi||hQi(t)):!0):!1}var pQi=fQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mQi=pQi,gQi=mQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vQi=l9.isPrimitive;function AQi(t){return vQi(t)&&t>0}var Jcn=AQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yQi=l9.isObject;function bQi(t){return yQi(t)&&t.valueOf()>0}var Zcn=bQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xQi=Jcn,EQi=Zcn;function SQi(t){return xQi(t)||EQi(t)}var wQi=SQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Xcn=vE,Prt=wQi,_Qi=Jcn,TQi=Zcn;Xcn(Prt,"isPrimitive",_Qi);Xcn(Prt,"isObject",TQi);var CQi=Prt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kQi=l9.isPrimitive;function RQi(t){return kQi(t)&&t>=0}var eun=RQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var MQi=l9.isObject;function NQi(t){return MQi(t)&&t.valueOf()>=0}var tun=NQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var IQi=eun,PQi=tun;function OQi(t){return IQi(t)||PQi(t)}var LQi=OQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nun=vE,Ort=LQi,BQi=eun,DQi=tun;nun(Ort,"isPrimitive",BQi);nun(Ort,"isObject",DQi);var $Qi=Ort;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vue=xrt,FQi=gQi,jQi=CQi,HQi=ycn.isPrimitive,UQi=$Qi.isPrimitive,zQi=Kcn.isPrimitive;function GQi(t,e){return FQi(e)?vue(e,"f")&&(t.f=e.f,!jQi(t.f))?new TypeError("invalid option. `f` option must be a positive number. Option: `"+t.f+"`."):vue(e,"nsteps")&&(t.nsteps=e.nsteps,!HQi(t.nsteps))?new TypeError("invalid option. `nsteps` option must be a nonnegative integer. Option: `"+t.nsteps+"`."):vue(e,"delta")&&(t.delta=e.delta,!UQi(t.delta))?new TypeError("invalid option. `delta` option must be a nonnegative number. Option: `"+t.delta+"`."):vue(e,"sorted")&&(t.sorted=e.sorted,!zQi(t.sorted))?new TypeError("invalid option. `sorted` option must be a boolean primitive. Option: `"+t.sorted+"`."):null:new TypeError("invalid argument. Options must be an object. Value: `"+e+"`.")}var VQi=GQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var FTt=eFi.primitives,jTt=DFi,KQi=qFi,WQi=nKi,QQi=VQi;function qQi(t,e){return t[0]-e[0]}function YQi(t,e,n){var r,a,o,s,l,c,u,d,h;if(!jTt(t)&&!FTt(t))throw new TypeError("invalid argument. First argument `x` must be a numeric array. Value: `"+t+"`.");if(!jTt(e)&&!FTt(e))throw new TypeError("invalid argument. Second argument `y` must be a numeric array. Value: `"+e+"`.");if(d=t.length,e.length!==d)throw new Error("invalid arguments. Arguments `x` and `y` must have the same length.");if(o={},arguments.length>2&&(s=QQi(o,n),s))throw s;if(o.sorted!==!0){for(l=new Array(d),u=0;u<d;u++)l[u]=[t[u],e[u]];for(l.sort(qQi),t=new Array(d),e=new Array(d),u=0;u<d;u++)t[u]=l[u][0],e[u]=l[u][1]}return o.nsteps===void 0?r=3:r=o.nsteps,o.f===void 0?c=2/3:c=o.f,o.delta===void 0?(h=KQi(d,t,1),a=.01*h):a=o.delta,WQi(t,e,d,c,r,a)}var JQi=YQi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ZQi=JQi,XQi=ZQi;const eqi=Li(XQi);var tqi=function(t){var e=Array(t.length).fill(0).map(function(u,d){return d}),n=eqi(e,t,{nsteps:1}),r=Math.max.apply(Math,xc([],xa(t))),a=Math.max.apply(Math,xc([],xa(t))),o=r-a,s=t.map(function(u,d){return u-n.y[d]}),l=rcn(s),c=l.filter(function(u){return Math.abs(u.value)/o>=.05});return c},nqi=function(t,e,n){var r=e[0],a=n[0].field;if(!t||t.length===0)return[];var o=t.map(function(l){return l==null?void 0:l[a]});if(non(o)===1)return[];var s=tqi(o).map(function(l){var c=l.index,u=l.significance;return{type:"time_series_outlier",dimension:r,measure:a,significance:u,index:c,x:t[c][r],y:t[c][a]}});return s},rqi=.6,iqi=function(t,e){for(var n=0,r=-1/0,a=-1,o=0;o<(t==null?void 0:t.length);o+=1)n+=t[o],t[o]>r&&(r=t[o],a=o);var s=(e==null?void 0:e.limit)||rqi;if(n===0)return null;var l=r/n;return l>s&&l<1?{index:a,value:r,proportion:l,significance:l}:null},aqi=function(t,e,n){var r=e[0],a=n[0].field;if(!t||t.length===0)return[];var o=t.map(function(d){return d==null?void 0:d[a]}),s=iqi(o);if(s){var l=s.significance,c=s.index,u=s.proportion;return[{type:"majority",dimension:r,measure:a,significance:l,index:c,proportion:u,x:t[c][r],y:t[c][a]}]}return[]},oqi=.15,sqi=function(t,e){var n=Vgi(t),r=(e==null?void 0:e.cvThreshold)||oqi;if(n>=r)return null;var a=1-n,o=w5(t);return{significance:a,mean:o}},lqi=function(t,e,n){var r=e[0],a=n[0].field;if(!t||t.length===0)return[];var o=t.map(function(u){return u==null?void 0:u[a]}),s=sqi(o);if(s){var l=s.significance,c=s.mean;return[{type:"low_variance",dimension:r,measure:a,significance:l,mean:c}]}return[]};/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var cqi=4294967295,uqi=cqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dqi=fO,hqi=uqi;function fqi(t){return t!=null&&typeof t!="function"&&typeof t.length=="number"&&dqi(t.length)&&t.length>=0&&t.length<=hqi}var pqi=fqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mqi=pqi,gqi=mqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vqi=gqi;function Aqi(t){if(typeof t!="function")throw new TypeError("invalid argument. Must provide a function. Value: `"+t+"`.");return e;function e(n){var r,a;if(!vqi(n)||(r=n.length,r===0))return!1;for(a=0;a<r;a++)if(t(n[a])===!1)return!1;return!0}}var yqi=Aqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var bqi=yqi,xqi=bqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var run=cc,Lrt=xqi,Brt=uN,Drt=Lrt(Brt);run(Drt,"primitives",Lrt(Brt.isPrimitive));run(Drt,"objects",Lrt(Brt.isObject));var Eqi=Drt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Sqi=yu,wqi=Np,_qi=fO;function Tqi(t){return t<Sqi&&t>wqi&&_qi(t)}var iun=Tqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Cqi=uN.isPrimitive,kqi=iun;function Rqi(t){return Cqi(t)&&kqi(t)}var aun=Rqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Mqi=uN.isObject,Nqi=iun;function Iqi(t){return Mqi(t)&&Nqi(t.valueOf())}var oun=Iqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Pqi=aun,Oqi=oun;function Lqi(t){return Pqi(t)||Oqi(t)}var Bqi=Lqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var sun=cc,$rt=Bqi,Dqi=aun,$qi=oun;sun($rt,"isPrimitive",Dqi);sun($rt,"isObject",$qi);var xoe=$rt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Fqi=xoe.isPrimitive;function jqi(t){return Fqi(t)&&t>=0}var lun=jqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Hqi=xoe.isObject;function Uqi(t){return Hqi(t)&&t.valueOf()>=0}var cun=Uqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var zqi=lun,Gqi=cun;function Vqi(t){return zqi(t)||Gqi(t)}var Kqi=Vqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uun=cc,Frt=Kqi,Wqi=lun,Qqi=cun;uun(Frt,"isPrimitive",Wqi);uun(Frt,"isObject",Qqi);var qqi=Frt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Yqi=9007199254740991,dun=Yqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Jqi=qqi.isPrimitive,Zqi=dun;function Xqi(t){return t!==null&&typeof t=="object"&&Jqi(t.length)&&t.length<=Zqi&&typeof t.BYTES_PER_ELEMENT=="number"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number"}var eYi=Xqi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var tYi=eYi,nYi=tYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function rYi(t){return t===0?.6666666666666735:.6666666666666735+t*(.3999999999940942+t*(.2857142874366239+t*(.22222198432149784+t*(.1818357216161805+t*(.15313837699209373+t*.14798198605116586)))))}var iYi=rYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FDLIBM]{@link http://www.netlib.org/fdlibm/s_log1p.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var aYi=Na,HTt=gE,UTt=moe,oYi=yu,sYi=Np,zTt=o9,lYi=iYi,nLe=.6931471803691238,rLe=19082149292705877e-26,cYi=.41421356237309503,uYi=-.2928932188134525,dYi=1862645149230957e-24,hYi=5551115123125783e-32,fYi=9007199254740992,pYi=.6666666666666666;function mYi(t){var e,n,r,a,o,s,l,c,u,d;if(t<-1||aYi(t))return NaN;if(t===-1)return sYi;if(t===oYi||t===0)return t;if(t<0?r=-t:r=t,d=1,r<cYi){if(r<dYi)return r<hYi?t:t-t*t*.5;t>uYi&&(d=0,a=t,n=1)}return d!==0&&(r<fYi?(u=1+t,n=HTt(u),d=(n>>20)-zTt,d>0?o=1-(u-t):o=t-(u-1),o/=u):(u=t,n=HTt(u),d=(n>>20)-zTt,o=0),n&=1048575,n<434334?u=UTt(u,n|1072693248):(d+=1,u=UTt(u,n|1071644672),n=1048576-n>>2),a=u-1),e=.5*a*a,n===0?a===0?(o+=d*rLe,d*nLe+o):(c=e*(1-pYi*a),d*nLe-(c-(d*rLe+o)-a)):(s=a/(2+a),l=s*s,c=l*lYi(l),d===0?a-(e-s*(e+c)):d*nLe-(e-(s*(e+c)+(d*rLe+o))-a))}var gYi=mYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vYi=gYi,bC=vYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/e_atanh.c?view=markup}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var AYi=Na,GTt=bC,yYi=yu,bYi=Np,xYi=1/(1<<28);function EYi(t){var e,n;return AYi(t)?NaN:t<-1||t>1?NaN:t===1?yYi:t===-1?bYi:(t<0&&(e=!0,t=-t),t<xYi?e?-t:t:(t<.5?(n=t+t,n=.5*GTt(n+n*t/(1-t))):n=.5*GTt((t+t)/(1-t)),e?-n:n))}var SYi=EYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wYi=SYi,_Yi=wYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function TYi(t){var e,n,r;return t===0?-.3333333333333332:(t<0?e=-t:e=t,e<=1?(n=-1614.6876844170845+t*(-99.28772310019185+t*(-.9643991794250523+t*0)),r=4844.063053251255+t*(2235.4883906010045+t*(112.81167849163293+t*1))):(t=1/t,n=0+t*(-.9643991794250523+t*(-99.28772310019185+t*-1614.6876844170845)),r=1+t*(112.81167849163293+t*(2235.4883906010045+t*4844.063053251255))),n/r)}var CYi=TYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C code, long comment, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright 1984, 1995, 2000 by Stephen L. Moshier
*
* Some software in this archive may be from the book _Methods and Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) or from the Cephes Mathematical Library, a commercial product. In either event, it is copyrighted by the author. What you see here may be used freely but it comes with no support or guarantee.
*
* Stephen L. Moshier
* moshier@na-net.ornl.gov
* ```
*/var kYi=td,RYi=Ff,MYi=CYi,NYi=88.02969193111305;function IYi(t){var e,n;if(n=kYi(t),n>.5*NYi)return t<0?-1:1;if(n>=.625)e=RYi(2*n),n=1-2/(e+1),t<0&&(n=-n);else{if(t===0)return t;e=t*t,n=t+t*e*MYi(e)}return n}var PYi=IYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var OYi=PYi,LYi=OYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var BYi=.34657359027997264,DYi=BYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function $Yi(t){return t===0?-.03333333333333313:-.03333333333333313+t*(.0015873015872548146+t*(-793650757867488e-19+t*(4008217827329362e-21+t*-20109921818362437e-23)))}var FYi=$Yi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FDLIBM]{@link http://www.netlib.org/fdlibm/s_expm1.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var jYi=Na,iLe=gE,Aue=moe,VTt=yu,HYi=Np,UYi=o9,zYi=DYi,GYi=FYi,VYi=709.782712893384,aLe=.6931471803691238,oLe=19082149292705877e-26,KTt=1.4426950408889634,KYi=38.816242111356935,WYi=1.0397207708399179;function QYi(t){var e,n,r,a,o,s,l,c,u,d,h,f;if(t===VTt||jYi(t))return t;if(t===HYi)return-1;if(t===0)return t;if(t<0?(n=!0,l=-t):(n=!1,l=t),l>=KYi){if(n)return-1;if(l>=VYi)return VTt}if(o=iLe(l)|0,l>zYi)l<WYi?n?(r=t+aLe,a=-oLe,f=-1):(r=t-aLe,a=oLe,f=1):(n?f=KTt*t-.5:f=KTt*t+.5,f|=0,d=f,r=t-d*aLe,a=d*oLe),t=r-a,u=r-t-a;else{if(o<1016070144)return t;f=0}return e=.5*t,c=t*e,s=1+c*GYi(c),d=3-s*e,h=c*((s-d)/(6-t*d)),f===0?t-(t*h-c):(h=t*(h-u)-u,h-=c,f===-1?.5*(t-h)-.5:f===1?t<-.25?-2*(h-(t+.5)):1+2*(t-h):f<=-2||f>56?(l=1-(h-t),r=iLe(l)+(f<<20)|0,l=Aue(l,r),l-1):(d=1,f<20?(r=1072693248-(2097152>>f)|0,d=Aue(d,r),l=d-(h-t)):(r=UYi-f<<20|0,d=Aue(d,r),l=t-(h+d),l+=1),r=iLe(l)+(f<<20)|0,Aue(l,r)))}var qYi=QYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var YYi=qYi,Gwe=YYi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var JYi=.7853981633974483,ZYi=JYi;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function XYi(t){var e,n,r;return t===0?.16666666666666713:(t<0?e=-t:e=t,e<=1?(n=-8.198089802484825+t*(19.562619833175948+t*(-16.262479672107002+t*(5.444622390564711+t*(-.6019598008014124+t*.004253011369004428)))),r=-49.18853881490881+t*(139.51056146574857+t*(-147.1791292232726+t*(70.49610280856842+t*(-14.740913729888538+t*1))))):(t=1/t,n=.004253011369004428+t*(-.6019598008014124+t*(5.444622390564711+t*(-16.262479672107002+t*(19.562619833175948+t*-8.198089802484825)))),r=1+t*(-14.740913729888538+t*(70.49610280856842+t*(-147.1791292232726+t*(139.51056146574857+t*-49.18853881490881))))),n/r)}var eJi=XYi;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function tJi(t){var e,n,r;return t===0?.08333333333333809:(t<0?e=-t:e=t,e<=1?(n=28.536655482610616+t*(-25.56901049652825+t*(6.968710824104713+t*(-.5634242780008963+t*.002967721961301243))),r=342.43986579130785+t*(-383.8770957603691+t*(147.0656354026815+t*(-21.947795316429207+t*1)))):(t=1/t,n=.002967721961301243+t*(-.5634242780008963+t*(6.968710824104713+t*(-25.56901049652825+t*28.536655482610616))),r=1+t*(-21.947795316429207+t*(147.0656354026815+t*(-383.8770957603691+t*342.43986579130785)))),n/r)}var nJi=tJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C code, long comment, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright 1984, 1995, 2000 by Stephen L. Moshier
*
* Some software in this archive may be from the book _Methods and Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) or from the Cephes Mathematical Library, a commercial product. In either event, it is copyrighted by the author. What you see here may be used freely but it comes with no support or guarantee.
*
* Stephen L. Moshier
* moshier@na-net.ornl.gov
* ```
*/var rJi=Na,iJi=Ip,WTt=ZYi,aJi=eJi,oJi=nJi,sJi=6123233995736766e-32;function lJi(t){var e,n,r,a,o;if(rJi(t))return NaN;if(t>0?r=t:(e=!0,r=-t),r>1)return NaN;if(r>.625)n=1-r,a=n*oJi(n),n=iJi(n+n),o=WTt-n,n=n*a-sJi,o-=n,o+=WTt;else{if(r<1e-8)return t;n=r*r,o=n*aJi(n),o=r*o+r}return e?-o:o}var cJi=lJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uJi=cJi,dJi=uJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hJi=2220446049250313e-31,mO=hJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function fJi(t){var e,n,r;return t===0?1/0:(t<0?e=-t:e=t,e<=1?(n=709811.662581658+t*(679979.8474157227+t*(293136.7857211597+t*(74887.54032914672+t*(12555.290582413863+t*(1443.4299244417066+t*(115.24194596137347+t*(6.309239205732627+t*(.22668404630224365+t*(.004826466289237662+t*4624429436045379e-20))))))))),r=0+t*(362880+t*(1026576+t*(1172700+t*(723680+t*(269325+t*(63273+t*(9450+t*(870+t*(45+t*1)))))))))):(t=1/t,n=4624429436045379e-20+t*(.004826466289237662+t*(.22668404630224365+t*(6.309239205732627+t*(115.24194596137347+t*(1443.4299244417066+t*(12555.290582413863+t*(74887.54032914672+t*(293136.7857211597+t*(679979.8474157227+t*709811.662581658))))))))),r=1+t*(45+t*(870+t*(9450+t*(63273+t*(269325+t*(723680+t*(1172700+t*(1026576+t*(362880+t*0)))))))))),n/r)}var pJi=fJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var QTt=Na,mJi=bC,gJi=Ip,vJi=td,AJi=Ff,sLe=zd,yJi=s9(),lLe=mO,cLe=pJi,uLe=10.900511;function bJi(t,e){var n,r,a,o,s,l,c;return QTt(t)||QTt(e)?NaN:t<0||e<0?NaN:e===1?1/t:t===1?1/e:(c=t+e,c<lLe?(s=c/t,s/=e,s):c===t&&e<lLe?1/e:c===e&&t<lLe?1/t:(t<e&&(l=e,e=t,t=l),r=t+uLe-.5,a=e+uLe-.5,o=c+uLe-.5,s=cLe(t)*(cLe(e)/cLe(c)),n=t-.5-e,vJi(e*n)<o*100&&t>100?s*=AJi(n*mJi(-e/o)):s*=sLe(r/o,n),o>1e10?s*=sLe(r/o*(a/o),e):s*=sLe(r*a/(o*o),e),s*=gJi(yJi/a),s))}var xJi=bJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var EJi=xJi,SJi=EJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wJi=yu;function _Ji(t){return t===0&&1/t===wJi}var TJi=_Ji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var CJi=TJi,kJi=CJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qTt=kJi,dLe=Na,RJi=Np,yue=yu;function MJi(t,e){var n,r,a,o;if(n=arguments.length,n===2)return dLe(t)||dLe(e)?NaN:t===yue||e===yue?yue:t===e&&t===0?qTt(t)?t:e:t>e?t:e;for(r=RJi,o=0;o<n;o++){if(a=arguments[o],dLe(a)||a===yue)return a;(a>r||a===r&&a===0&&qTt(a))&&(r=a)}return r}var NJi=MJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var IJi=NJi,Eoe=IJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var PJi=Np;function OJi(t){return t===0&&1/t===PJi}var LJi=OJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var BJi=LJi,hun=BJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var YTt=hun,hLe=Na,bue=Np,DJi=yu;function $Ji(t,e){var n,r,a,o;if(n=arguments.length,n===2)return hLe(t)||hLe(e)?NaN:t===bue||e===bue?bue:t===e&&t===0?YTt(t)?t:e:t<e?t:e;for(r=DJi,o=0;o<n;o++){if(a=arguments[o],hLe(a)||a===bue)return a;(a<r||a===r&&a===0&&YTt(a))&&(r=a)}return r}var FJi=$Ji;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jJi=FJi,u9=jJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var HJi=17976931348623157e292,fun=HJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var UJi=2147483647,zJi=UJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var GJi=1.5707963267948966,VJi=GJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var KJi=3.141592653589793,Soe=KJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function WJi(t){return t===0?.0416666666666666:.0416666666666666+t*(-.001388888888887411+t*2480158728947673e-20)}var QJi=WJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function qJi(t){return t===0?-27557314351390663e-23:-27557314351390663e-23+t*(2087572321298175e-24+t*-11359647557788195e-27)}var YJi=qJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/k_cos.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var JJi=QJi,ZJi=YJi;function XJi(t,e){var n,r,a,o;return o=t*t,a=o*o,r=o*JJi(o),r+=a*a*ZJi(o),n=.5*o,a=1-n,a+(1-a-n+(o*r-t*e))}var eZi=XJi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var tZi=eZi,pun=tZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/k_sin.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var JTt=-.16666666666666632,nZi=.00833333333332249,rZi=-.0001984126982985795,iZi=27557313707070068e-22,aZi=-25050760253406863e-24,oZi=158969099521155e-24;function sZi(t,e){var n,r,a,o;return o=t*t,a=o*o,n=nZi+o*(rZi+o*iZi)+o*a*(aZi+o*oZi),r=o*t,e===0?t+r*(JTt+o*n):t-(o*(.5*e-r*n)-e-r*JTt)}var lZi=sZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var cZi=lZi,mun=cZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uZi=lV,vGe;uZi===!0?vGe=0:vGe=1;var dZi=vGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hZi=oV,fZi=sV,pZi=dZi,gun=new fZi(1),mZi=new hZi(gun.buffer);function gZi(t){return gun[0]=t,mZi[pZi]}var vZi=gZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var AZi=vZi,yZi=AZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/k_rem_pio2.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var bZi=vC,xue=urt,vun=[10680707,7228996,1387004,2578385,16069853,12639074,9804092,4427841,16666979,11263675,12935607,2387514,4345298,14681673,3074569,13734428,16653803,1880361,10960616,8533493,3062596,8710556,7349940,6258241,3772886,3769171,3798172,8675211,12450088,3874808,9961438,366607,15675153,9132554,7151469,3571407,2607881,12013382,4155038,6285869,7677882,13102053,15825725,473591,9065106,15363067,6271263,9264392,5636912,4652155,7056368,13614112,10155062,1944035,9527646,15080200,6658437,6231200,6832269,16767104,5075751,3212806,1398474,7579849,6349435,12618859],xZi=[1.570796251296997,7549789415861596e-23,5390302529957765e-30,3282003415807913e-37,1270655753080676e-44,12293330898111133e-52,27337005381646456e-60,21674168387780482e-67],fLe=16777216,pLe=5960464477539063e-23,Eue=Vwe(20),ZTt=Vwe(20),Sue=Vwe(20),Im=Vwe(20);function Vwe(t){var e,n;for(e=[],n=0;n<t;n++)e.push(0);return e}function Aun(t,e,n,r,a,o,s,l,c){var u,d,h,f,p,m,g,v,A;for(f=o,A=r[n],v=n,p=0;v>0;p++)d=pLe*A|0,Im[p]=A-fLe*d|0,A=r[v-1]+d,v-=1;if(A=xue(A,a),A-=8*bZi(A*.125),g=A|0,A-=g,h=0,a>0?(p=Im[n-1]>>24-a,g+=p,Im[n-1]-=p<<24-a,h=Im[n-1]>>23-a):a===0?h=Im[n-1]>>23:A>=.5&&(h=2),h>0){for(g+=1,u=0,p=0;p<n;p++)v=Im[p],u===0?v!==0&&(u=1,Im[p]=16777216-v):Im[p]=16777215-v;if(a>0)switch(a){case 1:Im[n-1]&=8388607;break;case 2:Im[n-1]&=4194303;break}h===2&&(A=1-A,u!==0&&(A-=xue(1,a)))}if(A===0){for(v=0,p=n-1;p>=o;p--)v|=Im[p];if(v===0){for(m=1;Im[o-m]===0;m++);for(p=n+1;p<=n+m;p++){for(c[l+p]=vun[s+p],d=0,v=0;v<=l;v++)d+=t[v]*c[l+(p-v)];r[p]=d}return n+=m,Aun(t,e,n,r,a,o,s,l,c)}}if(A===0)for(n-=1,a-=24;Im[n]===0;)n-=1,a-=24;else A=xue(A,-a),A>=fLe?(d=pLe*A|0,Im[n]=A-fLe*d|0,n+=1,a+=24,Im[n]=d):Im[n]=A|0;for(d=xue(1,a),p=n;p>=0;p--)r[p]=d*Im[p],d*=pLe;for(p=n;p>=0;p--){for(d=0,m=0;m<=f&&m<=n-p;m++)d+=xZi[m]*r[p+m];Sue[n-p]=d}for(d=0,p=n;p>=0;p--)d+=Sue[p];for(h===0?e[0]=d:e[0]=-d,d=Sue[0]-d,p=1;p<=n;p++)d+=Sue[p];return h===0?e[1]=d:e[1]=-d,g&7}function EZi(t,e,n,r){var a,o,s,l,c,u,d,h,f;for(o=4,l=r-1,s=(n-3)/24|0,s<0&&(s=0),u=n-24*(s+1),h=s-l,f=l+o,d=0;d<=f;d++)h<0?Eue[d]=0:Eue[d]=vun[h],h+=1;for(d=0;d<=o;d++){for(a=0,h=0;h<=l;h++)a+=t[h]*Eue[l+(d-h)];ZTt[d]=a}return c=o,Aun(t,e,c,ZTt,u,o,s,l,Eue)}var SZi=EZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wZi=Math.round,_Zi=wZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var TZi=_Zi,jrt=TZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/k_rem_pio2.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var CZi=jrt,XTt=gE,kZi=.6366197723675814,RZi=1.5707963267341256,MZi=6077100506506192e-26,NZi=6077100506303966e-26,IZi=20222662487959506e-37,PZi=20222662487111665e-37,OZi=84784276603689e-45,e2t=2047;function LZi(t,e,n){var r,a,o,s,l,c,u;return a=CZi(t*kZi),s=t-a*RZi,l=a*MZi,u=e>>20|0,n[0]=s-l,r=XTt(n[0]),c=u-(r>>20&e2t),c>16&&(o=s,l=a*NZi,s=o-l,l=a*IZi-(o-s-l),n[0]=s-l,r=XTt(n[0]),c=u-(r>>20&e2t),c>49&&(o=s,l=a*PZi,s=o-l,l=a*OZi-(o-s-l),n[0]=s-l)),n[1]=s-n[0]-l,a}var BZi=LZi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/e_rem_pio2.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
*
* Optimized by Bruce D. Evans.
* ```
*/var DZi=gE,$Zi=yZi,FZi=lrt,jZi=SZi,wue=BZi,HZi=0,UZi=16777216,oI=1.5707963267341256,KB=6077100506506192e-26,_ue=2*KB,Tue=3*KB,Cue=4*KB,zZi=2147483647,GZi=2146435072,VZi=1048575,KZi=598523,WZi=1072243195,QZi=1073928572,qZi=1074752122,YZi=1074977148,JZi=1075183036,ZZi=1075388923,XZi=1075594811,eXi=1094263291,rq=[0,0,0],iq=[0,0];function tXi(t,e){var n,r,a,o,s,l,c,u;if(a=DZi(t),o=a&zZi|0,o<=WZi)return e[0]=t,e[1]=0,0;if(o<=qZi)return(o&VZi)===KZi?wue(t,o,e):o<=QZi?t>0?(u=t-oI,e[0]=u-KB,e[1]=u-e[0]-KB,1):(u=t+oI,e[0]=u+KB,e[1]=u-e[0]+KB,-1):t>0?(u=t-2*oI,e[0]=u-_ue,e[1]=u-e[0]-_ue,2):(u=t+2*oI,e[0]=u+_ue,e[1]=u-e[0]+_ue,-2);if(o<=XZi)return o<=JZi?o===YZi?wue(t,o,e):t>0?(u=t-3*oI,e[0]=u-Tue,e[1]=u-e[0]-Tue,3):(u=t+3*oI,e[0]=u+Tue,e[1]=u-e[0]+Tue,-3):o===ZZi?wue(t,o,e):t>0?(u=t-4*oI,e[0]=u-Cue,e[1]=u-e[0]-Cue,4):(u=t+4*oI,e[0]=u+Cue,e[1]=u-e[0]+Cue,-4);if(o<eXi)return wue(t,o,e);if(o>=GZi)return e[0]=NaN,e[1]=NaN,0;for(n=$Zi(t),r=(o>>20)-1046,u=FZi(o-(r<<20|0),n),l=0;l<2;l++)rq[l]=u|0,u=(u-rq[l])*UZi;for(rq[2]=u,s=3;rq[s-1]===HZi;)s-=1;return c=jZi(rq,iq,r,s),t<0?(e[0]=-iq[0],e[1]=-iq[1],-c):(e[0]=iq[0],e[1]=iq[1],c)}var nXi=tXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rXi=nXi,yun=rXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_sin.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var iXi=gE,t2t=pun,mLe=mun,aXi=yun,oXi=2147483647,sXi=2146435072,lXi=1072243195,cXi=1045430272,Rk=[0,0];function uXi(t){var e,n;if(e=iXi(t),e&=oXi,e<=lXi)return e<cXi?t:mLe(t,0);if(e>=sXi)return NaN;switch(n=aXi(t,Rk),n&3){case 0:return mLe(Rk[0],Rk[1]);case 1:return t2t(Rk[0],Rk[1]);case 2:return-mLe(Rk[0],Rk[1]);default:return-t2t(Rk[0],Rk[1])}}var dXi=uXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hXi=dXi,bun=hXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var fXi=2.5066282746310007,xun=fXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function pXi(t){return t===0?.08333333333334822:.08333333333334822+t*(.0034722222160545866+t*(-.0026813261780578124+t*(-.00022954996161337813+t*.0007873113957930937)))}var mXi=pXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C code, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright 1984, 1987, 1989, 1992, 2000 by Stephen L. Moshier
*
* Some software in this archive may be from the book _Methods and Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) or from the Cephes Mathematical Library, a commercial product. In either event, it is copyrighted by the author. What you see here may be used freely but it comes with no support or guarantee.
*
* Stephen L. Moshier
* moshier@na-net.ornl.gov
* ```
*/var gXi=xun,n2t=zd,vXi=Ff,AXi=mXi,yXi=143.01608;function bXi(t){var e,n,r;return e=1/t,e=1+e*AXi(e),n=vXi(t),t>yXi?(r=n2t(t,.5*t-.25),n=r*(r/n)):n=n2t(t,t-.5)/n,gXi*n*e}var xXi=bXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var EXi=.5772156649015329,SXi=EXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C code, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright 1984, 1987, 1989, 1992, 2000 by Stephen L. Moshier
*
* Some software in this archive may be from the book _Methods and Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) or from the Cephes Mathematical Library, a commercial product. In either event, it is copyrighted by the author. What you see here may be used freely but it comes with no support or guarantee.
*
* Stephen L. Moshier
* moshier@na-net.ornl.gov
* ```
*/var wXi=SXi;function _Xi(t,e){return e/((1+wXi*t)*t)}var TXi=_Xi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function CXi(t){var e,n,r;return t===0?1:(t<0?e=-t:e=t,e<=1?(n=1+t*(.4942148268014971+t*(.20744822764843598+t*(.04763678004571372+t*(.010421379756176158+t*(.0011913514700658638+t*(.00016011952247675185+t*0)))))),r=1+t*(.0714304917030273+t*(-.23459179571824335+t*(.035823639860549865+t*(.011813978522206043+t*(-.004456419138517973+t*(.0005396055804933034+t*-23158187332412014e-21))))))):(t=1/t,n=0+t*(.00016011952247675185+t*(.0011913514700658638+t*(.010421379756176158+t*(.04763678004571372+t*(.20744822764843598+t*(.4942148268014971+t*1)))))),r=-23158187332412014e-21+t*(.0005396055804933034+t*(-.004456419138517973+t*(.011813978522206043+t*(.035823639860549865+t*(-.23459179571824335+t*(.0714304917030273+t*1))))))),n/r)}var kXi=CXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C code, long comment, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright 1984, 1987, 1989, 1992, 2000 by Stephen L. Moshier
*
* Some software in this archive may be from the book _Methods and Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) or from the Cephes Mathematical Library, a commercial product. In either event, it is copyrighted by the author. What you see here may be used freely but it comes with no support or guarantee.
*
* Stephen L. Moshier
* moshier@na-net.ornl.gov
* ```
*/var RXi=Na,MXi=fO,NXi=hun,r2t=td,IXi=vC,PXi=bun,i2t=yu,a2t=Np,o2t=Soe,s2t=xXi,l2t=TXi,OXi=kXi;function LXi(t){var e,n,r,a;if(MXi(t)&&t<0||t===a2t||RXi(t))return NaN;if(t===0)return NXi(t)?a2t:i2t;if(t>171.61447887182297)return i2t;if(t<-170.5674972726612)return 0;if(n=r2t(t),n>33)return t>=0?s2t(t):(r=IXi(n),r&1?e=1:e=-1,a=n-r,a>.5&&(r+=1,a=n-r),a=n*PXi(o2t*a),e*o2t/(r2t(a)*s2t(n)));for(a=1;t>=3;)t-=1,a*=t;for(;t<0;){if(t>-1e-9)return l2t(t,a);a/=t,t+=1}for(;t<2;){if(t<1e-9)return l2t(t,a);a/=t,t+=1}return t===2?a:(t-=2,a*OXi(t))}var BXi=LXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var DXi=BXi,d9=DXi;const $Xi=[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,20922789888e3,355687428096e3,6402373705728e3,121645100408832e3,243290200817664e4,5109094217170944e4,11240007277776077e5,2585201673888498e7,6204484017332394e8,15511210043330986e9,40329146112660565e10,10888869450418352e12,30488834461171387e13,8841761993739702e15,26525285981219107e16,8222838654177922e18,2631308369336935e20,8683317618811886e21,29523279903960416e22,10333147966386145e24,37199332678990125e25,13763753091226346e27,5230226174666011e29,20397882081197444e30,8159152832478977e32,3345252661316381e34,140500611775288e37,6041526306337383e37,2658271574788449e39,11962222086548019e40,5502622159812089e42,25862324151116818e43,12413915592536073e45,6082818640342675e47,30414093201713376e48,15511187532873822e50,8065817517094388e52,42748832840600255e53,2308436973392414e56,12696403353658276e57,7109985878048635e59,40526919504877214e60,23505613312828785e62,13868311854568984e64,832098711274139e67,5075802138772248e68,3146997326038794e70,198260831540444e73,12688693218588417e73,8247650592082472e75,5443449390774431e77,3647111091818868e79,24800355424368305e80,1711224524281413e83,11978571669969892e84,8504785885678623e86,61234458376886085e87,44701154615126844e89,3307885441519386e92,248091408113954e95,18854947016660504e95,14518309202828587e97,11324281178206297e99,8946182130782976e101,7156945704626381e103,5797126020747368e105,4753643337012842e107,3945523969720659e109,3314240134565353e111,281710411438055e114,24227095383672734e114,2107757298379528e117,18548264225739844e118,1650795516090846e121,14857159644817615e122,1352001527678403e125,12438414054641308e126,11567725070816416e128,1087366156656743e131,1032997848823906e133,9916779348709496e134,9619275968248212e136,9426890448883248e138,9332621544394415e140,9332621544394415e142,942594775983836e145,9614466715035127e146,990290071648618e149,10299016745145628e150,1081396758240291e153,11462805637347084e154,1226520203196138e157,1324641819451829e159,14438595832024937e160,1588245541522743e163,17629525510902446e164,1974506857221074e167,22311927486598138e168,25435597334721877e170,2925093693493016e173,3393108684451898e175,3969937160808721e177,4684525849754291e179,5574585761207606e181,6689502913449127e183,8094298525273444e185,9875044200833601e187,1214630436702533e190,1506141741511141e192,1882677176888926e194,2372173242880047e196,30126600184576594e197,3856204823625804e200,4974504222477287e202,6466855489220474e204,847158069087882e207,11182486511960043e208,14872707060906857e210,19929427461615188e212,26904727073180504e214,3659042881952549e217,5012888748274992e219,6917786472619489e221,9615723196941089e223,13462012475717526e225,1898143759076171e228,2695364137888163e230,3854370717180073e232,55502938327393044e233,8047926057471992e236,11749972043909107e238,1727245890454639e241,25563239178728654e242,380892263763057e246,5713383956445855e247,862720977423324e250,13113358856834524e251,20063439050956823e253,30897696138473508e255,4789142901463394e258,7471062926282894e260,11729568794264145e262,1853271869493735e265,29467022724950384e266,47147236359920616e268,7590705053947219e271,12296942187394494e273,20044015765453026e275,3287218585534296e278,5423910666131589e280,9003691705778438e282,1503616514864999e285,25260757449731984e286,4269068009004705e289,7257415615307999e291];/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var FXi=Na,jXi=fO,HXi=d9,UXi=yu,zXi=$Xi,GXi=170;function VXi(t){return FXi(t)?NaN:jXi(t)?t<0?NaN:t<=GXi?zXi[t]:UXi:HXi(t+1)}var KXi=VXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var WXi=KXi,Eun=WXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function QXi(t){var e,n,r;return t===0?1/0:(t<0?e=-t:e=t,e<=1?(n=3847467039331777e-5+t*(3685766504351951e-5+t*(1588920245372942e-5+t*(4059208354298835e-6+t*(6805476611834733e-7+t*(7823975500312005e-8+t*(6246580776401795e-9+t*(341986.3488721347+t*(12287.194511824551+t*(261.61404416416684+t*2.5066282746310007))))))))),r=0+t*(362880+t*(1026576+t*(1172700+t*(723680+t*(269325+t*(63273+t*(9450+t*(870+t*(45+t*1)))))))))):(t=1/t,n=2.5066282746310007+t*(261.61404416416684+t*(12287.194511824551+t*(341986.3488721347+t*(6246580776401795e-9+t*(7823975500312005e-8+t*(6805476611834733e-7+t*(4059208354298835e-6+t*(1588920245372942e-5+t*(3685766504351951e-5+t*3847467039331777e-5))))))))),r=1+t*(45+t*(870+t*(9450+t*(63273+t*(269325+t*(723680+t*(1172700+t*(1026576+t*(362880+t*0)))))))))),n/r)}var qXi=QXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/lanczos.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var YXi=qXi,JXi=YXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ZXi=JXi,XXi=ZXi;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var eea=10.900511,woe=eea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* Copyright John Maddock 2006-7, 2013-14.
* Copyright Paul A. Bristow 2007, 2013-14.
* Copyright Nikhar Agrawal 2013-14.
* Copyright Christopher Kormanyos 2013-14.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var c2t=XXi,tea=d9,u2t=bC,d2t=td,h2t=Ff,f2t=zd,nea=mO,rea=s9(),iea=woe,p2t=170,aea=4269068009004705e289;function Sun(t,e){var n,r,a;return t<nea?e>p2t?(r=Sun(e,p2t-e),r*=t,r*=aea,1/r):1/(t*tea(t+e)):(a=t+iea-.5,t+e===t?d2t(e)<10?n=h2t((.5-t)*u2t(e/a)):n=1:(d2t(e)<10?n=h2t((.5-t)*u2t(e/a)):n=f2t(a/(a+e),t-.5),n*=c2t(t)/c2t(t+e)),n*=f2t(rea/(a+e),e),n)}var oea=Sun;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* Copyright John Maddock 2006-7, 2013-14.
* Copyright Paul A. Bristow 2007, 2013-14.
* Copyright Nikhar Agrawal 2013-14.
* Copyright Christopher Kormanyos 2013-14.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var sea=td,m2t=vC,g2t=d9,v2t=Eun,lea=oea,A2t=170;function cea(t,e){var n,r,a;if(t<=0||t+e<=0)return g2t(t)/g2t(t+e);if(r=m2t(e),r===e){if(a=m2t(t),a===t&&t<=A2t&&t+e<=A2t)return v2t(a-1)/v2t(r+a-1);if(sea(e)<20){if(e===0)return 1;if(e<0){for(t-=1,n=t,e+=1;e!==0;)t-=1,n*=t,e+=1;return n}for(n=1/t,e-=1;e!==0;)t+=1,n/=t,e-=1;return n}}return lea(t,e)}var uea=cea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dea=uea,hea=dea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/s_cos.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var fea=gE,gLe=pun,y2t=mun,pea=yun,Mk=[0,0],mea=2147483647,gea=1072243195,vea=1044381696,Aea=2146435072;function yea(t){var e,n;if(e=fea(t),e&=mea,e<=gea)return e<vea?1:gLe(t,0);if(e>=Aea)return NaN;switch(n=pea(t,Mk),n&3){case 0:return gLe(Mk[0],Mk[1]);case 1:return-y2t(Mk[0],Mk[1]);case 2:return-gLe(Mk[0],Mk[1]);default:return y2t(Mk[0],Mk[1])}}var bea=yea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xea=bea,Eea=xea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Sea=Na,wea=aV,b2t=Eea,vLe=bun,_ea=td,aq=crt,oq=Soe;function Tea(t){var e,n;return Sea(t)?NaN:wea(t)?NaN:(n=t%2,e=_ea(n),e===0||e===1?aq(0,n):e<.25?vLe(oq*n):e<.75?(e=.5-e,aq(b2t(oq*e),n)):e<1.25?(n=aq(1,n)-n,vLe(oq*n)):e<1.75?(e-=1.5,-aq(b2t(oq*e),n)):(n-=aq(2,n),vLe(oq*n)))}var Cea=Tea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kea=Cea,Rea=kea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Mea(t){return t===0?.06735230105312927:.06735230105312927+t*(.007385550860814029+t*(.0011927076318336207+t*(.00022086279071390839+t*25214456545125733e-21)))}var Nea=Mea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Iea(t){return t===0?.020580808432516733:.020580808432516733+t*(.0028905138367341563+t*(.0005100697921535113+t*(.00010801156724758394+t*44864094961891516e-21)))}var Pea=Iea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Oea(t){return t===0?1.3920053346762105:1.3920053346762105+t*(.7219355475671381+t*(.17193386563280308+t*(.01864591917156529+t*(.0007779424963818936+t*7326684307446256e-21))))}var Lea=Oea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Bea(t){return t===0?.21498241596060885:.21498241596060885+t*(.325778796408931+t*(.14635047265246445+t*(.02664227030336386+t*(.0018402845140733772+t*3194753265841009e-20))))}var Dea=Bea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function $ea(t){return t===0?-.032788541075985965:-.032788541075985965+t*(.006100538702462913+t*(-.0014034646998923284+t*.00031563207090362595))}var Fea=$ea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function jea(t){return t===0?.01797067508118204:.01797067508118204+t*(-.0036845201678113826+t*(.000881081882437654+t*-.00031275416837512086))}var Hea=jea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Uea(t){return t===0?-.010314224129834144:-.010314224129834144+t*(.0022596478090061247+t*(-.0005385953053567405+t*.0003355291926355191))}var zea=Uea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Gea(t){return t===0?.6328270640250934:.6328270640250934+t*(1.4549225013723477+t*(.9777175279633727+t*(.22896372806469245+t*.013381091853678766)))}var Vea=Gea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Kea(t){return t===0?2.4559779371304113:2.4559779371304113+t*(2.128489763798934+t*(.7692851504566728+t*(.10422264559336913+t*.003217092422824239)))}var Wea=Kea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Qea(t){return t===0?.08333333333333297:.08333333333333297+t*(-.0027777777772877554+t*(.0007936505586430196+t*(-.00059518755745034+t*(.0008363399189962821+t*-.0016309293409657527))))}var qea=Qea;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The following copyright, license, and long comment were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/e_lgamma_r.c}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ```
*/var Yea=Na,Jea=aV,Zea=td,C$=Mv(),Xea=art,eta=Rea,tta=Soe,ALe=yu,nta=Nea,rta=Pea,ita=Lea,ata=Dea,ota=Fea,sta=Hea,lta=zea,cta=Vea,uta=Wea,dta=qea,hta=.07721566490153287,fta=.3224670334241136,pta=1,mta=-.07721566490153287,gta=.48383612272381005,vta=-.1475877229945939,Ata=.06462494023913339,yta=-.07721566490153287,bta=1,xta=.4189385332046727,kue=1.4616321449683622,Eta=4503599627370496,Sta=0x400000000000000,wta=8470329472543003e-37,x2t=1.4616321449683622,_ta=-.12148629053584961,Tta=-3638676997039505e-33;function Cta(t){var e,n,r,a,o,s,l,c,u,d,h,f,p;if(Yea(t)||Jea(t))return t;if(t===0)return ALe;if(t<0?(e=!0,t=-t):e=!1,t<wta)return-C$(t);if(e){if(t>=Eta||(u=eta(t),u===0))return ALe;n=C$(tta/Zea(u*t))}if(t===1||t===2)return 0;if(t<2)switch(t<=.9?(p=-C$(t),t>=kue-1+.27?(h=1-t,r=0):t>=kue-1-.27?(h=t-(x2t-1),r=1):(h=t,r=2)):(p=0,t>=kue+.27?(h=2-t,r=0):t>=kue-.27?(h=t-x2t,r=1):(h=t-1,r=2)),r){case 0:f=h*h,s=hta+f*nta(f),o=f*(fta+f*rta(f)),l=h*s+o,p+=l-.5*h;break;case 1:f=h*h,d=f*h,s=gta+d*ota(d),o=vta+d*sta(d),a=Ata+d*lta(d),l=f*s-(Tta-d*(o+h*a)),p+=_ta+l;break;case 2:s=h*(yta+h*cta(h)),o=bta+h*uta(h),p+=-.5*h+s/o;break}else if(t<8)switch(r=Xea(t),h=t-r,l=h*(mta+h*ata(h)),c=pta+h*ita(h),p=.5*h+l/c,f=1,r){case 7:f*=h+6;case 6:f*=h+5;case 5:f*=h+4;case 4:f*=h+3;case 3:f*=h+2,p+=C$(f)}else t<Sta?(u=C$(t),f=1/t,h=f*f,d=xta+f*dta(h),p=(t-.5)*(u-1)+d):p=t*(C$(t)-1);return e&&(p=n-p),p}var kta=Cta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Rta=kta,Hrt=Rta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Mta=14901161193847656e-24,Nta=Mta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ita=709.782712893384,h9=Ita;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Pta=Ff;function Ota(t,e){var n,r,a,o;if(a=Pta(-e),r=a,r!==0)for(n=r,o=1;o<t;++o)n/=o,n*=e,r+=n;return r}var Lta=Ota;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Bta=$we,E2t=Ip,Dta=Ff,$ta=Soe;function Fta(t,e){var n,r,a,o,s;if(o=Bta(E2t(e)),o!==0&&t>1){for(r=Dta(-e)/E2t($ta*e),r*=e,n=.5,r/=n,a=r,s=2;s<t;++s)r/=s-n,r*=e,a+=r;o+=a}return o}var jta=Fta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Hta=-708.3964185322641,uV=Hta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var k$=Ff,Rue=zd,Uta=Mv(),S2t=h9,w2t=uV;function zta(t,e){var n,r;return r=t*Uta(e),e>=1?r<S2t&&-e>w2t?n=Rue(e,t)*k$(-e):t>=1?n=Rue(e/k$(e/t),t):n=k$(r-e):r>w2t?n=Rue(e,t)*k$(-e):e/t<S2t?n=Rue(e/k$(e/t),t):n=k$(r-e),n}var Gta=zta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Vta(t,e){var n,r;if(r=t.length,r<2||e===0)return r===0?0:t[0];for(r-=1,n=t[r]*e+t[r-1],r-=2;r>=0;)n=n*e+t[r],r-=1;return n}var wun=Vta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Kta=wun;function Wta(t){var e,n,r,a;if(t.length>500)return o;if(e="return function evalpoly(x){",n=t.length,n===0)e+="return 0.0;";else if(n===1)e+="return "+t[0]+";";else{for(e+="if(x===0.0){return "+t[0]+";}",e+="return "+t[0],r=n-1,a=1;a<n;a++)e+="+x*",a<r&&(e+="("),e+=t[a];for(a=0;a<r-1;a++)e+=")";e+=";"}return e+="}",e+="//# sourceURL=evalpoly.factory.js",new Function(e)();function o(s){return Kta(t,s)}}var Qta=Wta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qta=cc,_un=wun,Yta=Qta;qta(_un,"factory",Yta);var Jta=_un;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Zta(t){return t===0?-.3333333333333333:-.3333333333333333+t*(.08333333333333333+t*(-.014814814814814815+t*(.0011574074074074073+t*(.0003527336860670194+t*(-.0001787551440329218+t*(3919263178522438e-20+t*(-21854485106799924e-22+t*(-185406221071516e-20+t*(8296711340953087e-22+t*(-17665952736826078e-23+t*(6707853543401498e-24+t*(10261809784240309e-24+t*(-4382036018453353e-24+t*914769958223679e-24)))))))))))))}var Xta=Zta;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function ena(t){return t===0?-.001851851851851852:-.001851851851851852+t*(-.003472222222222222+t*(.0026455026455026454+t*(-.0009902263374485596+t*(.00020576131687242798+t*(-4018775720164609e-22+t*(-18098550334489977e-21+t*(764916091608111e-20+t*(-16120900894563446e-22+t*(4647127802807434e-24+t*(1378633446915721e-22+t*(-5752545603517705e-23+t*11951628599778148e-24)))))))))))}var tna=ena;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function nna(t){return t===0?.004133597883597883:.004133597883597883+t*(-.0026813271604938273+t*(.0007716049382716049+t*(20093878600823047e-22+t*(-.00010736653226365161+t*(52923448829120125e-21+t*(-12760635188618728e-21+t*(3423578734096138e-23+t*(13721957309062932e-22+t*(-6298992138380055e-22+t*14280614206064242e-23)))))))))}var rna=nna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function ina(t){return t===0?.0006494341563786008:.0006494341563786008+t*(.00022947209362139917+t*(-.0004691894943952557+t*(.00026772063206283885+t*(-7561801671883977e-20+t*(-2396505113867297e-22+t*(11082654115347302e-21+t*(-56749528269915965e-22+t*14230900732435883e-22)))))))}var ana=ina;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function ona(t){return t===0?-.0008618882909167117:-.0008618882909167117+t*(.0007840392217200666+t*(-.0002990724803031902+t*(-14638452578843418e-22+t*(6641498215465122e-20+t*(-3968365047179435e-20+t*11375726970678419e-21)))))}var sna=ona;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function lna(t){return t===0?-.00033679855336635813:-.00033679855336635813+t*(-6972813758365858e-20+t*(.0002772753244959392+t*(-.00019932570516188847+t*(6797780477937208e-20+t*(1419062920643967e-22+t*(-13594048189768693e-21+t*(8018470256334202e-21+t*-2291481176508095e-21)))))))}var cna=lna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function una(t){return t===0?.0005313079364639922:.0005313079364639922+t*(-.0005921664373536939+t*(.0002708782096718045+t*(7902353232660328e-22+t*(-8153969367561969e-20+t*(561168275310625e-19+t*-18329116582843375e-21)))))}var dna=una;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function hna(t){return t===0?.00034436760689237765:.00034436760689237765+t*(5171790908260592e-20+t*(-.00033493161081142234+t*(.0002812695154763237+t*-.00010976582244684731)))}var fna=hna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function pna(t){return t===0?-.0006526239185953094:-.0006526239185953094+t*(.0008394987206720873+t*-.000438297098541721)}var mna=pna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var gna=Jta,vna=$we,yLe=Ip,Ana=Ff,yna=Mv(),bna=Fwe(),xna=Xta,Ena=tna,Sna=rna,wna=ana,_na=sna,Tna=cna,Cna=dna,kna=fna,Rna=mna,lS=[0,0,0,0,0,0,0,0,0,0];function Mna(t,e){var n,r,a,o,s;return r=(e-t)/t,a=-yna(1+r)+r,o=t*a,s=yLe(2*a),e<t&&(s=-s),lS[0]=xna(s),lS[1]=Ena(s),lS[2]=Sna(s),lS[3]=wna(s),lS[4]=_na(s),lS[5]=Tna(s),lS[6]=Cna(s),lS[7]=kna(s),lS[8]=Rna(s),lS[9]=-.0005967612901927463,n=gna(lS,1/t),n*=Ana(-o)/yLe(bna*t),e<t&&(n=-n),n+=vna(yLe(o))/2,n}var Nna=Mna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ina=eval,Pna=Ina;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ona=Pna;function Lna(){var t;try{Ona('"use strict"; (function* () {})'),t=!0}catch{t=!1}return t}var Bna=Lna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Dna=Bna,Tun=Dna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Mue=td,$na=mO,Fna=1e6;function jna(t,e){var n,r,a,o,s,l;if(l={},arguments.length>1&&(l=e),r=l.tolerance||$na,o=l.maxTerms||Fna,s=l.initialValue||0,n=typeof t.next=="function",n===!0){for(a of t)if(s+=a,Mue(r*s)>=Mue(a)||--o===0)break}else do a=t(),s+=a;while(Mue(r*s)<Mue(a)&&--o);return s}var Hna=jna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _2t=td,Una=mO,zna=1e6;function Gna(t,e){var n,r,a,o,s;s={},arguments.length>1&&(s=e),n=s.tolerance||Una,a=s.maxTerms||zna,o=s.initialValue||0;do r=t(),o+=r;while(_2t(n*o)<_2t(r)&&--a);return o}var Vna=Gna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Kna=Tun,Wna=Hna,Qna=Vna,AGe;Kna()?AGe=Wna:AGe=Qna;var Urt=AGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/function qna(t,e){var n=1,r=t,a=e;return o;function o(){var s=n;return r+=1,n*=a/r,s}}var Yna=qna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Jna=Urt,Zna=Yna;function Xna(t,e,n){var r,a;return n=n||0,a=Zna(t,e),r=Jna(a,{initialValue:n}),r}var era=Xna;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function tra(t){var e,n,r;return t===0?1/0:(t<0?e=-t:e=t,e<=1?(n=709811.662581658+t*(679979.8474157227+t*(293136.7857211597+t*(74887.54032914672+t*(12555.290582413863+t*(1443.4299244417066+t*(115.24194596137347+t*(6.309239205732627+t*(.22668404630224365+t*(.004826466289237662+t*4624429436045379e-20))))))))),r=0+t*(362880+t*(1026576+t*(1172700+t*(723680+t*(269325+t*(63273+t*(9450+t*(870+t*(45+t*1)))))))))):(t=1/t,n=4624429436045379e-20+t*(.004826466289237662+t*(.22668404630224365+t*(6.309239205732627+t*(115.24194596137347+t*(1443.4299244417066+t*(12555.290582413863+t*(74887.54032914672+t*(293136.7857211597+t*(679979.8474157227+t*709811.662581658))))))))),r=1+t*(45+t*(870+t*(9450+t*(63273+t*(269325+t*(723680+t*(1172700+t*(1026576+t*(362880+t*0)))))))))),n/r)}var nra=tra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/lanczos.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var rra=nra,ira=rra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ara=ira,Kwe=ara;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* Copyright John Maddock 2006-7, 2013-14.
* Copyright Paul A. Bristow 2007, 2013-14.
* Copyright Nikhar Agrawal 2013-14.
* Copyright Christopher Kormanyos 2013-14.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var ora=Kwe,sra=Hrt,lra=d9,cra=bC,ura=Ip,dra=td,sI=Ff,sq=zd,bLe=Eoe,xLe=u9,T2t=Mv(),Nue=h9,lq=uV,ELe=woe,hra=s9();function fra(t,e){var n,r,a,o,s,l,c;return a=t+ELe-.5,c=(e-t-ELe+.5)/a,t<1?e<=lq?sI(t*T2t(e)-e-sra(t)):sq(e,t)*sI(-e)/lra(t):(dra(c*c*t)<=100&&t>150?(n=t*(cra(c)-c)+e*(.5-ELe)/a,n=sI(n)):(o=t*T2t(e/a),s=t-e,xLe(o,s)<=lq||bLe(o,s)>=Nue?(r=s/t,xLe(o,s)/2>lq&&bLe(o,s)/2<Nue?(l=sq(e/a,t/2)*sI(s/2),n=l*l):xLe(o,s)/4>lq&&bLe(o,s)/4<Nue&&e>t?(l=sq(e/a,t/4)*sI(s/4),n=l*l,n*=n):r>lq&&r<Nue?n=sq(e*sI(r)/a,t):n=sI(o+s)):n=sq(e/a,t)*sI(s)),n*=ura(a/hra)/ora(t),n)}var pra=fra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_60_0/boost/math/special_functions/powm1.hpp}. The implementation follows the original, but has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var C2t=Na,k2t=td,mra=Gwe,gra=Mv(),vra=zd,Ara=art;function yra(t,e){var n;if(C2t(t)||C2t(e))return NaN;if(e===0)return 0;if(t===0)return-1;if(t<0&&e%2===0&&(t=-t),t>0){if((k2t(e*(t-1))<.5||k2t(e)<.2)&&(n=gra(t)*e,n<.5))return mra(n)}else if(Ara(e)!==e)return NaN;return vra(t,e)-1}var bra=yra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xra=bra,Era=xra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Sra(t){var e,n,r;return t===0?-.01803556856784494:(t<0?e=-t:e=t,e<=1?(n=-.01803556856784494+t*(.02512664961998968+t*(.049410315156753225+t*(.0172491608709614+t*(-.0002594535632054381+t*(-.0005410098692152044+t*(-3245886498259485e-20+t*0)))))),r=1+t*(1.962029871977952+t*(1.4801966942423133+t*(.5413914320717209+t*(.09885042511280101+t*(.008213096746488934+t*(.00022493629192211576+t*-22335276320861708e-23))))))):(t=1/t,n=0+t*(-3245886498259485e-20+t*(-.0005410098692152044+t*(-.0002594535632054381+t*(.0172491608709614+t*(.049410315156753225+t*(.02512664961998968+t*-.01803556856784494)))))),r=-22335276320861708e-23+t*(.00022493629192211576+t*(.008213096746488934+t*(.09885042511280101+t*(.5413914320717209+t*(1.4801966942423133+t*(1.962029871977952+t*1))))))),n/r)}var wra=Sra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function _ra(t){var e,n,r;return t===0?.04906224540690395:(t<0?e=-t:e=t,e<=1?(n=.04906224540690395+t*(-.09691175301595212+t*(-.4149833583594954+t*(-.4065671242119384+t*(-.1584135863906922+t*(-.024014982064857155+t*-.0010034668769627955))))),r=1+t*(3.0234982984646304+t*(3.4873958536072385+t*(1.9141558827442668+t*(.5071377386143635+t*(.05770397226904519+t*.001957681026011072)))))):(t=1/t,n=-.0010034668769627955+t*(-.024014982064857155+t*(-.1584135863906922+t*(-.4065671242119384+t*(-.4149833583594954+t*(-.09691175301595212+t*.04906224540690395))))),r=.001957681026011072+t*(.05770397226904519+t*(.5071377386143635+t*(1.9141558827442668+t*(3.4873958536072385+t*(3.0234982984646304+t*1)))))),n/r)}var Tra=_ra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Cra(t){var e,n,r;return t===0?-.029232972183027003:(t<0?e=-t:e=t,e<=1?(n=-.029232972183027003+t*(.14421626775719232+t*(-.14244039073863127+t*(.05428096940550536+t*(-.008505359768683364+t*(.0004311713426792973+t*0))))),r=1+t*(-1.5016935605448505+t*(.846973248876495+t*(-.22009515181499575+t*(.02558279715597587+t*(-.0010066679553914337+t*-8271935218912905e-22)))))):(t=1/t,n=0+t*(.0004311713426792973+t*(-.008505359768683364+t*(.05428096940550536+t*(-.14244039073863127+t*(.14421626775719232+t*-.029232972183027003))))),r=-8271935218912905e-22+t*(-.0010066679553914337+t*(.02558279715597587+t*(-.22009515181499575+t*(.846973248876495+t*(-1.5016935605448505+t*1)))))),n/r)}var kra=Cra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/detail/lgamma_small.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006-7, 2013-14.
* (C) Copyright Paul A. Bristow 2007, 2013-14.
* (C) Copyright Nikhar Agrawal 2013-14.
* (C) Copyright Christopher Kormanyos 2013-14.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var SLe=Mv(),Rra=mO,Mra=wra,Nra=Tra,Ira=kra,Pra=.15896368026733398,Ora=.5281534194946289,Lra=.45201730728149414;function Bra(t,e,n){var r,a,o,s;if(t<Rra)return-SLe(t);if(e===0||n===0)return 0;if(a=0,t>2){if(t>=3){do t-=1,n-=1,a+=SLe(t);while(t>=3);n=t-2}return o=n*(t+1),s=Mra(n),a+=o*Pra+o*s,a}return t<1&&(a+=-SLe(t),n=e,e=t,t+=1),t<=1.5?(o=Nra(e),r=e*n,a+=r*Ora+r*o,a):(o=n*e,s=Ira(-n),a+=o*Lra+o*s,a)}var Dra=Bra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006-7, 2013-14.
* (C) Copyright Paul A. Bristow 2007, 2013-14.
* (C) Copyright Nikhar Agrawal 2013-14.
* (C) Copyright Christopher Kormanyos 2013-14.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var R2t=d9,M2t=Gwe,$ra=bC,Fra=Na,N2t=Dra;function jra(t){return Fra(t)?NaN:t<0?t<-.5?R2t(1+t)-1:M2t(-$ra(t)+N2t(t+2,t+1,t)):t<2?M2t(N2t(t+1,t,t-1)):R2t(1+t)-1}var Hra=jra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ura=Hra,zra=Ura;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/function Gra(t,e){var n,r,a,o;return n=-e,e=-e,r=t+1,a=1,s;function s(){return o=n/r,n*=e,a+=1,n/=a,r+=1,o}}var Vra=Gra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Kra=Era,Wra=Urt,Qra=zra,qra=Vra;function Yra(t,e,n){var r,a,o,s,l;return a=Qra(t),o=(a+1)/t,s=Kra(e,t),a-=s,a/=t,l=qra(t,e),s+=1,r=n?o:0,a=-s*Wra(l,{initialValue:(r-a)/s}),n&&(a=-a),[a,o]}var Jra=Yra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Zra=11754943508222875e-54,Cun=Zra;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var UAe=td,HT=Cun,Xra=mO,eia=1e6;function tia(t,e,n){var r,a,o,s,l,c,u;if(r=typeof t.next=="function",u=r?t.next().value:t(),s=u[1],o=u[0],s===0&&(s=HT),l=s,c=0,r===!0)do u=t.next().value,u&&(c=u[1]+u[0]*c,c===0&&(c=HT),l=u[1]+u[0]/l,l===0&&(l=HT),c=1/c,a=l*c,s*=a);while(UAe(a-1)>e&&--n);else do u=t(),u&&(c=u[1]+u[0]*c,c===0&&(c=HT),l=u[1]+u[0]/l,l===0&&(l=HT),c=1/c,a=l*c,s*=a);while(u&&UAe(a-1)>e&&--n);return o/s}function nia(t,e,n){var r,a,o,s,l,c;if(r=typeof t.next=="function",c=r?t.next().value:t(),o=c[1],o===0&&(o=HT),s=o,l=0,r===!0)do c=t.next().value,c&&(l=c[1]+c[0]*l,l===0&&(l=HT),s=c[1]+c[0]/s,s===0&&(s=HT),l=1/l,a=s*l,o*=a);while(c&&UAe(a-1)>e&&--n);else do c=t(),c&&(l=c[1]+c[0]*l,l===0&&(l=HT),s=c[1]+c[0]/s,s===0&&(s=HT),l=1/l,a=s*l,o*=a);while(c&&UAe(a-1)>e&&--n);return o}function ria(t,e){var n,r,a;return r={},arguments.length>1&&(r=e),n=r.maxIter||eia,a=r.tolerance||Xra,r.keep?nia(t,a,n):tia(t,a,n)}var iia=ria;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kun=td,aia=mO,tH=Cun,oia=1e6;function sia(t,e,n){var r,a,o,s,l,c;c=t(),l=c[1],a=c[0],l===0&&(l=tH),o=l,s=0;do c=t(),c&&(s=c[1]+c[0]*s,s===0&&(s=tH),o=c[1]+c[0]/o,o===0&&(o=tH),s=1/s,r=o*s,l*=r);while(c&&kun(r-1)>e&&--n);return a/l}function lia(t,e,n){var r,a,o,s,l;l=t(),s=l[1],s===0&&(s=tH),a=s,o=0;do l=t(),l&&(o=l[1]+l[0]*o,o===0&&(o=tH),a=l[1]+l[0]/a,a===0&&(a=tH),o=1/o,r=a*o,s*=r);while(l&&kun(r-1)>e&&--n);return s}function cia(t,e){var n,r,a;return r={},arguments.length>1&&(r=e),a=r.tolerance||aia,n=r.maxIter||oia,r.keep?lia(t,a,n):sia(t,a,n)}var uia=cia;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dia=Tun,hia=iia,fia=uia,yGe;dia()?yGe=hia:yGe=fia;var Run=yGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/function pia(t,e){var n=e-t+1,r=t,a=0;return o;function o(){return a+=1,n+=2,[a*(r-a),n]}}var mia=pia;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var gia=Run,via=mia;function Aia(t,e){var n=via(t,e);return 1/(e-t+1+gia(n))}var yia=Aia;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_62_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006-7, 2013-14.
* (C) Copyright Paul A. Bristow 2007, 2013-14.
* (C) Copyright Nikhar Agrawal 2013-14.
* (C) Christopher Kormanyos 2013-14.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var bia=Hrt,xia=vC,cq=d9,I2t=td,Eia=Ff,P2t=zd,cS=Mv(),Sia=Nta,O2t=fun,wia=xun,L2t=h9,_ia=yu,Tia=Lta,Cia=jta,B2t=Gta,kia=Nna,wLe=era,D2t=pra,Ria=Jra,$2t=yia,Mia=170;function Mun(t,e,n,r){var a,o,s,l,c,u,d,h,f,p,m,g,v,A,y;if(t<0||e<=0)return NaN;if(o=n===void 0?!0:n,h=r,f=0,e>=Mia&&!o)return h&&e*4<t?(f=e*cS(t)-t,f+=cS($2t(e,t))):!h&&e>4*t?(f=e*cS(t)-t,l=0,f+=cS(wLe(e,t,l)/e)):(f=Mun(e,t,!0,h),f===0?h?(f=1+1/(12*e)+1/(288*e*e),f=cS(f)-e+(e-.5)*cS(e),f+=cS(wia)):(f=e*cS(t)-t,l=0,f+=cS(wLe(e,t,l)/e)):f=cS(f)+bia(e)),f>L2t?_ia:Eia(f);switch(d=e<30&&e<=t+1&&t<L2t,d?(A=xia(e),p=A===e,c=p?!1:I2t(A-e)===.5):p=c=!1,p&&t>.6?(h=!h,s=0):c&&t>.2?(h=!h,s=1):t<Sia&&e>1?s=6:t<.5?-.4/cS(t)<e?s=2:s=3:t<1.1?t*.75<e?s=2:s=3:(u=!1,o&&e>20&&(m=I2t((t-e)/e),e>200?20/e>m*m&&(u=!0):m<.4&&(u=!0)),u?s=5:t-1/(3*t)<e?s=2:(s=4,h=!h)),s){case 0:f=Tia(e,t),o===!1&&(f*=cq(e));break;case 1:f=Cia(e,t),o===!1&&(f*=cq(e));break;case 2:f=o?D2t(e,t):B2t(e,t),f!==0&&(l=0,a=!1,h&&(l=o?1:cq(e),o||f>=1||O2t*f>l?(l/=f,o||e<1||O2t/e>l?(l*=-e,a=!0):l=0):l=0)),f*=wLe(e,t,l)/e,a&&(h=!1,f=-f);break;case 3:h=!h,v=Ria(e,t,h),f=v[0],y=v[1],h=!1,o&&(f/=y);break;case 4:f=o?D2t(e,t):B2t(e,t),f!==0&&(f*=$2t(e,t));break;case 5:f=kia(e,t),t>=e&&(h=!h);break;case 6:f=o?P2t(t,e)/cq(e+1):P2t(t,e)/e,f*=1-e*t/(e+1);break}return o&&f>1&&(f=1),h&&(g=o?1:cq(e),f=g-f),f}var Nia=Mun;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Iia=Nia,Pia=Iia;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
* (C) Copyright Paul A. Bristow 2007.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var R$=Ff,Iue=zd,Oia=Mv(),F2t=h9,j2t=uV;function Lia(t,e){var n,r;return r=t*Oia(e),e>=1?r<F2t&&-e>j2t?n=Iue(e,t)*R$(-e):t>=1?n=Iue(e/R$(e/t),t):n=R$(r-e):r>j2t?n=Iue(e,t)*R$(-e):e/t<F2t?n=Iue(e/R$(e/t),t):n=R$(r-e),n}var Bia=Lia;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/gamma.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* Copyright John Maddock 2006-7, 2013-14.
* Copyright Paul A. Bristow 2007, 2013-14.
* Copyright Nikhar Agrawal 2013-14.
* Copyright Christopher Kormanyos 2013-14.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Dia=Kwe,$ia=Hrt,Fia=d9,jia=bC,Hia=Ip,Uia=td,lI=Ff,uq=zd,_Le=Eoe,TLe=u9,H2t=Mv(),Pue=h9,dq=uV,CLe=woe,zia=s9();function Gia(t,e){var n,r,a,o,s,l,c;return a=t+CLe-.5,c=(e-t-CLe+.5)/a,t<1?e<=dq?lI(t*H2t(e)-e-$ia(t)):uq(e,t)*lI(-e)/Fia(t):(Uia(c*c*t)<=100&&t>150?(n=t*(jia(c)-c)+e*(.5-CLe)/a,n=lI(n)):(o=t*H2t(e/a),s=t-e,TLe(o,s)<=dq||_Le(o,s)>=Pue?(r=s/t,TLe(o,s)/2>dq&&_Le(o,s)/2<Pue?(l=uq(e/a,t/2)*lI(s/2),n=l*l):TLe(o,s)/4>dq&&_Le(o,s)/4<Pue&&e>t?(l=uq(e/a,t/4)*lI(s/4),n=l*l,n*=n):r>dq&&r<Pue?n=uq(e*lI(r)/a,t):n=lI(o+s)):n=uq(e/a,t)*lI(s)),n*=Hia(a/zia)/Dia(t),n)}var Via=Gia;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_61_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Kia=hea,U2t=Eun,Wia=Pia,Qia=bC,Oue=td,z2t=zd,qia=Mv(),Yia=foe,G2t=mO,Jia=Bia,Zia=Via,cI=new Array(30);function Xia(t,e,n,r,a,o,s){var l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_,C,R;if(f=e-1,C=t+f/2,r<.35?v=Qia(-r):v=qia(n),R=-C*v,y=Zia(e,R),y<=Yia)return a;for(s?(l=y/Kia(t,e),l/=z2t(C,e)):l=Jia(e,R)/z2t(C,e),l*=o,cI[0]=1,S=Wia(R,e,!0,!0),S/=y,d=a+l*S,u=1,p=v/2,p*=p,m=1,A=4*C*C,h=e,w=1;w<cI.length;++w){for(u+=2,cI[w]=0,g=e-w,c=3,x=1;x<w;++x)g=x*e-w,cI[w]+=g*cI[w-x]/U2t(c),c+=2;if(cI[w]/=w,cI[w]+=f/U2t(u),S=(h*(h+1)*S+(R+h+1)*m)/A,m*=p,h+=2,_=l*cI[w]*S,d+=_,_>1){if(Oue(_)<Oue(G2t*d))break}else if(Oue(_/G2t)<Oue(d))break}return d}var eaa=Xia;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_37_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/function taa(t,e,n){var r,a;if(n===0)return 1;for(r=1,a=0;a<n;a++)r*=(t+a)/(e+a);return r}var naa=taa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kLe=td,V2t=Eoe,raa=yu;function iaa(t,e){var n,r,a;if(n=arguments.length,n===0)return raa;if(n===2)return V2t(kLe(t),kLe(e));for(r=[],a=0;a<n;a++)r.push(kLe(arguments[a]));return V2t.apply(null,r)}var aaa=iaa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oaa=aaa,saa=oaa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var RLe=td,K2t=u9,laa=yu;function caa(t,e){var n,r,a;if(n=arguments.length,n===0)return laa;if(n===2)return K2t(RLe(t),RLe(e));for(r=[],a=0;a<n;a++)r.push(RLe(arguments[a]));return K2t.apply(null,r)}var uaa=caa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var daa=uaa,haa=daa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_62_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var MLe=Kwe,faa=saa,paa=haa,W2t=Gwe,uI=bC,Q2t=Ip,Lue=td,H_=Ff,U_=zd,maa=u9,Ob=Mv(),z_=h9,M$=uV,NLe=woe,gaa=s9();function vaa(t,e,n,r,a){var o,s,l,c,u,d,h,f,p,m,g,v,A,y;if(!a)return U_(n,t)*U_(r,e);if(A=t+e,c=t+NLe-.5,u=e+NLe-.5,d=A+NLe-.5,o=MLe(A),o/=MLe(t)*MLe(e),o*=Q2t(u/gaa),o*=Q2t(c/d),h=(n*e-r*c)/c,f=(r*t-n*u)/u,paa(h,f)<.2)if(h*f>0||maa(t,e)<1)Lue(h)<.1?o*=H_(t*uI(h)):o*=U_(n*d/c,t),Lue(f)<.1?o*=H_(e*uI(f)):o*=U_(r*d/u,e);else if(faa(h,f)<.5)s=t<e,l=e/t,s&&l*f<.1||!s&&h/l>.1?(p=W2t(l*uI(f)),p=h+p+p*h,p=t*uI(p),o*=H_(p)):(p=W2t(uI(h)/l),p=f+p+p*f,p=e*uI(p),o*=H_(p));else if(Lue(h)<Lue(f))if(y=t*uI(h)+e*Ob(r*d/u),y<=M$||y>=z_){if(y+=Ob(o),y>=z_)return NaN;o=H_(y)}else o*=H_(y);else if(y=e*uI(f)+t*Ob(n*d/c),y<=M$||y>=z_){if(y+=Ob(o),y>=z_)return NaN;o=H_(y)}else o*=H_(y);else if(g=n*d/c,v=r*d/u,h=t*Ob(g),f=e*Ob(v),h>=z_||h<=M$||f>=z_||f<=M$)if(t<e)if(m=U_(v,e/t),p=t*(Ob(g)+Ob(m)),p<z_&&p>M$)o*=U_(m*g,t);else{if(f+=h+Ob(o),f>=z_)return NaN;o=H_(f)}else if(m=U_(g,t/e),p=(Ob(m)+Ob(v))*e,p<z_&&p>M$)o*=U_(m*v,e);else{if(f+=h+Ob(o),f>=z_)return NaN;o=H_(f)}else o*=U_(g,t)*U_(v,e);return o}var zrt=vaa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_61_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Aaa=Run,yaa=zrt,baa={keep:!0,maxIter:1e3};function xaa(t,e,n,r){var a=0;return o;function o(){var s,l,c;return l=(t+a-1)*(t+e+a-1)*a*(e-a)*n*n,s=t+2*a-1,l/=s*s,c=a,c+=a*(e-a)*n/(t+2*a-1),c+=(t+a)*(t*r-e*n+1+a*(2-n))/(t+2*a+1),a+=1,[l,c]}}function Eaa(t,e,n,r,a,o){var s,l,c;return s=yaa(t,e,n,r,a),o&&(o[1]=s),s===0?s:(c=xaa(t,e,n,r),l=Aaa(c,baa),s/l)}var Saa=Eaa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ILe=fO,q2t=Na,waa=mrt,_aa=jrt;function Nun(t,e){var n,r;if(q2t(t)||q2t(e))return NaN;if(!ILe(t)||!ILe(e))return NaN;if(e<0)return 0;if(t<0)return n=Nun(-t+e-1,e),waa(e)&&(n=-n),n;if(e>t)return 0;if(e===0||e===t)return 1;if(e===1||e===t-1)return t;for(t-e<e&&(e=t-e),n=t,r=2;r<=e;r++)n*=(t-r+1)/r;return ILe(n)?n:_aa(n)}var Taa=Nun;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Caa=Taa,kaa=Caa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_61_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Y2t=kaa,T4=vC,hq=zd,Raa=foe;function Maa(t,e,n,r){var a,o,s,l,c;if(o=hq(n,t),o>Raa)for(l=o,c=T4(t-1);c>e;c--)l*=(c+1)*r/((t-c)*n),o+=l;else if(s=T4(t*n),s<=e+1&&(s=T4(e+2)),o=hq(n,s)*hq(r,t-s),o*=Y2t(T4(t),T4(s)),o===0)for(c=s-1;c>e;c--)o+=hq(n,c)*hq(r,t-c),o*=Y2t(T4(t),T4(c));else{for(l=o,a=o,c=s-1;c>e;c--)l*=(c+1)*r/((t-c)*n),o+=l;for(l=a,c=s+1;c<=t;c++)l*=(t-c+1)*n/(c*r),o+=l}return o}var Naa=Maa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_61_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var Iaa=zrt;function Paa(t,e,n,r,a,o,s){var l,c,u,d;if(l=Iaa(t,e,n,r,o),s&&(s[1]=l),l/=t,l===0)return l;for(u=1,c=1,d=0;d<a-1;++d)c*=(t+e+d)*n/(t+d+1),u+=c;return l*=u,l}var Oaa=Paa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* ## Notice
*
* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_64_0/boost/math/special_functions/beta.hpp}. The implementation has been modified for JavaScript.
*
* ```text
* (C) Copyright John Maddock 2006.
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
* ```
*/var PLe=Kwe,Laa=Urt,Baa=bC,Daa=Ip,OLe=Ff,Bue=zd,fq=Mv(),$aa=foe,J2t=h9,Z2t=uV,LLe=woe,Faa=s9(),X2t={maxTerms:100};function jaa(t,e,n,r){var a=1-e,o=1;return s;function s(){var l=r/t;return t+=1,r*=a*n/o,o+=1,a+=1,l}}function Haa(t,e,n,r,a,o,s){var l,c,u,d,h,f,p,m;return a?(p=t+e,c=t+LLe-.5,u=e+LLe-.5,d=p+LLe-.5,l=PLe(p)/(PLe(t)*PLe(e)),h=fq(d/u)*(e-.5),f=fq(n*d/c)*t,h>Z2t&&h<J2t&&f>Z2t&&f<J2t?(t*e<u*10?l*=OLe((e-.5)*Baa(t/u)):l*=Bue(d/u,e-.5),l*=Bue(n*d/c,t),l*=Daa(c/Faa),o&&(o[1]=l*Bue(s,e))):(l=fq(l)+h+f+(fq(c)-1)/2,o&&(o[1]=OLe(l+e*fq(s))),l=OLe(l))):l=Bue(n,t),l<$aa?r:(m=jaa(t,e,n,l),X2t.initialValue=r,Laa(m,X2t))}var Uaa=Haa,zaa=Na,Gaa=Gwe,Due=vC,eCt=bC,tCt=dJi,Lb=SJi,BLe=Ip,Vaa=Ff,pq=zd,Kaa=Eoe,nCt=u9,$ue=fun,rCt=foe,Waa=zJi,Qaa=VJi,Iun=Soe,dI=eaa,DLe=naa,qaa=zrt,iCt=Saa,Yaa=Naa,mq=Oaa,G_=Uaa,Jaa=1/Iun;function Zaa(t,e,n,r,a,o,s,l){var c,u,d,h,f,p,m,g,v,A,y,S;if(S=1-t,m=l,g=l+s,o[g]=-1,zaa(t)||t<0||t>1)return o[m]=NaN,o[g]=NaN,o;if(r){if(e<0||n<0)return o[m]=NaN,o[g]=NaN,o;if(e===0){if(n===0)return o[m]=NaN,o[g]=NaN,o;if(n>0)return o[m]=a?0:1,o}else if(n===0&&e>0)return o[m]=a?1:0,o}else if(e<=0||n<=0)return o[m]=NaN,o[g]=NaN,o;return t===0?(e===1?o[g]=1:o[g]=e<1?$ue/2:rCt*2,a?(o[m]=r?1:Lb(e,n),o):(o[m]=0,o)):t===1?(n===1?o[g]=1:o[g]=n<1?$ue/2:rCt*2,a?o[m]=0:o[m]=r?1:Lb(e,n),o):e===.5&&n===.5?(o[g]=Jaa*BLe(S*t),y=tCt(BLe(a?S:t)),y/=Qaa,r||(y*=Iun),o[m]=y,o):(e===1&&(p=n,n=e,e=p,p=S,S=t,t=p,a=!a),n===1?e===1?(o[m]=a?S:t,o[g]=1,o):(o[g]=e*pq(t,e-1),S<.5?y=a?-Gaa(e*eCt(-S)):Vaa(e*eCt(-S)):y=a?-(pq(t,e)-1):pq(t,e),r||(y/=e),o[m]=y,o):(nCt(e,n)<=1?(t>.5&&(p=n,n=e,e=p,p=S,S=t,t=p,a=!a),Kaa(e,n)<=1?e>=nCt(.2,n)||pq(t,e)<=.9?a?(d=-(r?1:Lb(e,n)),a=!1,d=-G_(e,n,t,d,r,o,S)):d=G_(e,n,t,0,r,o,S):(p=n,n=e,e=p,p=S,S=t,t=p,a=!a,S>=.3?a?(d=-(r?1:Lb(e,n)),a=!1,d=-G_(e,n,t,d,r,o,S)):d=G_(e,n,t,0,r,o,S):(r?u=1:u=DLe(e+n,e,20),d=mq(e,n,t,S,20,r,o),a?(d-=r?1:Lb(e,n),a=!1,d=-dI(e+20,n,t,S,d,u,r)):d=dI(e+20,n,t,S,d,u,r))):n<=1||t<.1&&pq(n*t,e)<=.7?a?(d=-(r?1:Lb(e,n)),a=!1,d=-G_(e,n,t,d,r,o,S)):d=G_(e,n,t,0,r,o,S):(p=n,n=e,e=p,p=S,S=t,t=p,a=!a,S>=.3?a?(d=-(r?1:Lb(e,n)),a=!1,d=-G_(e,n,t,d,r,o,S)):d=G_(e,n,t,0,r,o,S):e>=15?a?(d=-(r?1:Lb(e,n)),a=!1,d=-dI(e,n,t,S,d,1,r)):d=dI(e,n,t,S,0,1,r):(r?u=1:u=DLe(e+n,e,20),d=mq(e,n,t,S,20,r,o),a?(d-=r?1:Lb(e,n),a=!1,d=-dI(e+20,n,t,S,d,u,r)):d=dI(e+20,n,t,S,d,u,r)))):(e<n?c=e-(e+n)*t:c=(e+n)*S-n,c<0&&(p=n,n=e,e=p,p=S,S=t,t=p,a=!a),n<40?Due(e)===e&&Due(n)===n&&e<Waa-100?(v=e-1,A=n+v,d=Yaa(A,v,t,S),r||(d*=Lb(e,n))):n*t<=.7?a?(d=-(r?1:Lb(e,n)),a=!1,d=-G_(e,n,t,d,r,o,S)):d=G_(e,n,t,0,r,o,S):e>15?(A=Due(n),A===n&&(A-=1),h=n-A,r?u=1:u=DLe(e+h,h,A),d=mq(h,e,S,t,A,r),d=dI(e,h,t,S,d,1,r),d/=u):r?(A=Due(n),h=n-A,h<=0&&(A-=1,h+=1),d=mq(h,e,S,t,A,r),d+=mq(e,h,t,S,20,r),a&&(d-=1),d=dI(e+20,h,t,S,d,1,r),a&&(d=-d,a=!1)):d=iCt(e,n,t,S,r,o):d=iCt(e,n,t,S,r,o)),o[g]<0&&(o[g]=qaa(e,n,t,S,!0)),f=S*t,o[g]!==0&&($ue*f<o[g]?o[g]=$ue/2:o[g]/=f),o[m]=a?(r?1:Lb(e,n))-d:d,o))}var Pun=Zaa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Xaa=Pun;function eoa(t,e,n,r,a){return Xaa(t,e,n,r,a,[0,0],1,0)}var toa=eoa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var noa=cc,Oun=toa,roa=Pun;noa(Oun,"assign",roa);var ioa=Oun;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var aoa=ioa.assign;function ooa(t,e,n,r,a){var o=[0,0];return r=r!==!1,a=a===!0,aoa(t,e,n,r,a,o,1,0),o[0]}var soa=ooa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var loa=soa,Lun=loa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var aCt=Lun,oCt=Na,coa=zd;function uoa(t,e){var n,r,a;return oCt(t)||oCt(e)||e<=0?NaN:t===0?.5:(n=coa(t,2),e>2*n?(a=n/(e+n),r=aCt(a,.5,e/2,!0,!0)/2):(a=e/(e+n),r=aCt(a,e/2,.5,!0,!1)/2),t>0?1-r:r)}var doa=uoa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hoa=AC,sCt=Lun,lCt=Na,foa=zd;function poa(t){if(lCt(t)||t<=0)return hoa(NaN);return e;function e(n){var r,a,o;return lCt(n)?NaN:n===0?.5:(r=foa(n,2),t>2*r?(o=r/(t+r),a=sCt(o,.5,t/2,!0,!0)/2):(o=t/(t+r),a=sCt(o,t/2,.5,!0,!1)/2),n>0?1-a:a)}}var moa=poa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var goa=cc,Dun=doa,voa=moa;goa(Dun,"factory",voa);var Aoa=Dun;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yoa=xoe.isPrimitive;function boa(t){return yoa(t)&&t>0}var $un=boa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xoa=xoe.isObject;function Eoa(t){return xoa(t)&&t.valueOf()>0}var Fun=Eoa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Soa=$un,woa=Fun;function _oa(t){return Soa(t)||woa(t)}var Toa=_oa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jun=cc,Grt=Toa,Coa=$un,koa=Fun;jun(Grt,"isPrimitive",Coa);jun(Grt,"isObject",koa);var Roa=Grt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Moa=Qw,bGe;function Noa(t){return Moa(t)==="[object Array]"}Array.isArray?bGe=Array.isArray:bGe=Noa;var Ioa=bGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Poa=Ioa,Hun=Poa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ooa=Hun;function Loa(t){return typeof t=="object"&&t!==null&&!Ooa(t)}var Boa=Loa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Doa=Boa,$oa=Doa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Foa=/./,joa=Foa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Hoa(t){return typeof t=="boolean"}var Uun=Hoa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Uoa=Boolean.prototype.toString,zoa=Uoa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Goa=zoa;function Voa(t){try{return Goa.call(t),!0}catch{return!1}}var Koa=Voa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Woa=Bwe,Qoa=Qw,qoa=Koa,Yoa=Woa();function Joa(t){return typeof t=="object"?t instanceof Boolean?!0:Yoa?qoa(t):Qoa(t)==="[object Boolean]":!1}var zun=Joa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Zoa=Uun,Xoa=zun;function esa(t){return Zoa(t)||Xoa(t)}var tsa=esa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Gun=cc,Vrt=tsa,nsa=Uun,rsa=zun;Gun(Vrt,"isPrimitive",nsa);Gun(Vrt,"isObject",rsa);var Vun=Vrt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function isa(){return new Function("return this;")()}var asa=isa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var osa=typeof self=="object"?self:null,ssa=osa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lsa=typeof window=="object"?window:null,csa=lsa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var usa=typeof en=="object"?en:null,dsa=usa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hsa=Vun.isPrimitive,fsa=asa,cCt=ssa,uCt=csa,dCt=dsa;function psa(t){if(arguments.length){if(!hsa(t))throw new TypeError("invalid argument. Must provide a boolean primitive. Value: `"+t+"`.");if(t)return fsa()}if(cCt)return cCt;if(uCt)return uCt;if(dCt)return dCt;throw new Error("unexpected error. Unable to resolve global object.")}var msa=psa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var gsa=msa,vsa=gsa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Asa=vsa,hCt=Asa(),ysa=hCt.document&&hCt.document.childNodes,bsa=ysa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xsa=Int8Array,Esa=xsa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ssa=joa,wsa=bsa,_sa=Esa;function Tsa(){return typeof Ssa=="function"||typeof _sa=="object"||typeof wsa=="function"}var Csa=Tsa;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function ksa(){return/^\s*function\s*([^(]*)/i}var Kun=ksa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Rsa=Kun,Msa=Rsa(),Nsa=Msa;/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Isa=cc,Wun=Kun,Psa=Nsa;Isa(Wun,"REGEXP",Psa);var Osa=Wun;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Lsa=Hun;function Bsa(t){if(typeof t!="function")throw new TypeError("invalid argument. Must provide a function. Value: `"+t+"`.");return e;function e(n){var r,a;if(!Lsa(n)||(r=n.length,r===0))return!1;for(a=0;a<r;a++)if(t(n[a])===!1)return!1;return!0}}var Dsa=Bsa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $sa=Dsa,Fsa=$sa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function jsa(t){return t!==null&&typeof t=="object"}var Hsa=jsa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Usa=cc,zsa=Fsa,xGe=Hsa;Usa(xGe,"isObjectLikeArray",zsa(xGe));var Gsa=xGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Vsa=Gsa;function Ksa(t){return Vsa(t)&&(t._isBuffer||t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))}var Wsa=Ksa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Qsa=Wsa,qsa=Qsa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ysa=Qw,Jsa=Osa.REGEXP,Zsa=qsa;function Xsa(t){var e,n,r;if(n=Ysa(t).slice(8,-1),(n==="Object"||n==="Error")&&t.constructor){if(r=t.constructor,typeof r.name=="string")return r.name;if(e=Jsa.exec(r.toString()),e)return e[1]}return Zsa(t)?"Buffer":n}var ela=Xsa;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var tla=ela,Qun=tla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nla=Qun;function rla(t){var e;return t===null?"null":(e=typeof t,e==="object"?nla(t).toLowerCase():e)}var ila=rla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ala=Qun;function ola(t){return ala(t).toLowerCase()}var sla=ola;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lla=Csa,cla=ila,ula=sla,dla=lla()?ula:cla,hla=dla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var fla=hla;function pla(t){return fla(t)==="function"}var mla=pla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var gla=mla,qun=gla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vla=Object.getPrototypeOf,Ala=vla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function yla(t){return t.__proto__}var bla=yla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xla=Qw,Ela=bla;function Sla(t){var e=Ela(t);return e||e===null?e:xla(t.constructor)==="[object Function]"?t.constructor.prototype:t instanceof Object?Object.prototype:null}var wla=Sla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _la=qun,Tla=Ala,Cla=wla,EGe;_la(Object.getPrototypeOf)?EGe=Tla:EGe=Cla;var kla=EGe;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Rla=kla;function Mla(t){return t==null?null:(t=Object(t),Rla(t))}var Nla=Mla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ila=Nla,Pla=Ila;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ola=$oa,fCt=qun,Lla=Pla,Ume=Dwe,Bla=Qw,Dla=Object.prototype;function $la(t){var e;for(e in t)if(!Ume(t,e))return!1;return!0}function Fla(t){var e;return Ola(t)?(e=Lla(t),e?!Ume(t,"constructor")&&Ume(e,"constructor")&&fCt(e.constructor)&&Bla(e.constructor)==="[object Function]"&&Ume(e,"isPrototypeOf")&&fCt(e.isPrototypeOf)&&(e===Dla||$la(t)):!0):!1}var jla=Fla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Hla=jla,Yun=Hla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ula=9007199254740991,zla=Ula;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Gla=308,Vla=Gla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Kla=-308,Wla=Kla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Qla=-324,qla=Qla;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pCt=Na,Fue=aV,mCt=zd,Yla=td,gCt=jrt,Jla=zla,vCt=Vla,Zla=Wla,Xla=qla,eca=Jla+1,ACt=1e308;function tca(t,e){var n,r;return pCt(t)||pCt(e)||Fue(e)?NaN:Fue(t)||t===0||e<Xla||Yla(t)>eca&&e<=0?t:e>vCt?0*t:e<Zla?(n=mCt(10,-(e+vCt)),r=t*ACt*n,Fue(r)?t:gCt(r)/ACt/n):(n=mCt(10,-e),r=t*n,Fue(r)?t:gCt(r)/n)}var nca=tca;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rca=nca,ica=rca;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var aca=Roa,oca=Yun,sca=Vun.isPrimitive,yCt=Dwe,jue=ica;function lca(t){var e,n,r;if(n=4,e=!0,arguments.length>0){if(!oca(t))throw new TypeError("invalid argument. First argument must be an options object. Value: `"+t+"`.");if(yCt(t,"digits")){if(!aca(t.digits))throw new TypeError("invalid option. `digits` option must be a positive integer. Option: `"+t.digits+"`.");n=t.digits}if(yCt(t,"decision")){if(!sca(t.decision))throw new TypeError("invalid option. `decision` option must be a boolean primitive. Option: `"+t.decision+"`.");e=t.decision}}switch(r="",r+=this.method,r+=`

`,r+="Alternative hypothesis: ",r+="True correlation coefficient is ",this.alternative){case"less":r+="less than ";break;case"greater":r+="greater than ";break;case"two-sided":default:r+="not equal to ";break}return r+=this.nullValue,r+=`

`,r+="    pValue: "+jue(this.pValue,-n)+`
`,r+="    statistic: "+jue(this.statistic,-n)+`
`,r+="    "+(1-this.alpha)*100+"% confidence interval: ["+jue(this.ci[0],-n)+","+jue(this.ci[1],-n)+"]",r+=`

`,e&&(r+="Test Decision: ",this.rejected?r+="Reject null in favor of alternative at "+this.alpha*100+"% significance level":r+="Fail to reject null in favor of alternative at "+this.alpha*100+"% significance level",r+=`
`),r}var cca=lca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uca=vC,dca=128;function SGe(t,e,n,r){var a,o,s,l,c,u,d,h,f,p,m,g,v;if(t<=0)return 0;if(t===1||n===0)return e[r];if(a=r,t<8){for(m=0,v=0;v<t;v++)m+=e[a],a+=n;return m}if(t<=dca){for(o=e[a],s=e[a+n],l=e[a+2*n],c=e[a+3*n],u=e[a+4*n],d=e[a+5*n],h=e[a+6*n],f=e[a+7*n],a+=8*n,p=t%8,v=8;v<t-p;v+=8)o+=e[a],s+=e[a+n],l+=e[a+2*n],c+=e[a+3*n],u+=e[a+4*n],d+=e[a+5*n],h+=e[a+6*n],f+=e[a+7*n],a+=8*n;for(m=o+s+(l+c)+(u+d+(h+f)),v;v<t;v++)m+=e[a],a+=n;return m}return g=uca(t/2),g-=g%8,SGe(g,e,n,a)+SGe(t-g,e,n,a+g*n)}var Jun=SGe;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hca=Jun;function fca(t,e,n){var r,a,o;if(t<=0)return 0;if(t===1||n===0)return e[0];if(n<0?r=(1-t)*n:r=0,t<8){for(a=0,o=0;o<t;o++)a+=e[r],r+=n;return a}return hca(t,e,n,r)}var pca=fca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mca=cc,Zun=pca,gca=Jun;mca(Zun,"ndarray",gca);var vca=Zun;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Aca=vca,Wwe=Aca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yca=Wwe;function bca(t,e,n,r){var a,o,s,l,c,u,d;if(u=t-e,t<=0||u<=0)return NaN;if(t===1||r===0)return 0;for(a=yca(t,n,r)/t,r<0?o=(1-t)*r:o=0,s=0,l=0,d=0;d<t;d++)c=n[o]-a,s+=c*c,l+=c,o+=r;return s/u-l/t*(l/u)}var xca=bca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Eca=Wwe.ndarray;function Sca(t,e,n,r,a){var o,s,l,c,u,d,h;if(d=t-e,t<=0||d<=0)return NaN;if(t===1||r===0)return 0;for(o=Eca(t,n,r,a)/t,s=a,l=0,c=0,h=0;h<t;h++)u=n[s]-o,l+=u*u,c+=u,s+=r;return l/d-c/t*(c/d)}var wca=Sca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _ca=cc,Xun=xca,Tca=wca;_ca(Xun,"ndarray",Tca);var Cca=Xun;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kca=Cca,edn=kca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Rca=edn;function Mca(t,e,n,r){return Rca(t,e,n,r)}var Nca=Mca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ica=edn.ndarray;function Pca(t,e,n,r,a){return Ica(t,e,n,r,a)}var Oca=Pca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Lca=cc,tdn=Nca,Bca=Oca;Lca(tdn,"ndarray",Bca);var Dca=tdn;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $ca=Dca,Fca=$ca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jca=vC,Hca=128;function wGe(t,e,n,r,a){var o,s,l,c,u,d,h,f,p,m,g,v,A;if(t<=0)return 0;if(t===1||r===0)return e+n[a];if(o=a,t<8){for(g=0,A=0;A<t;A++)g+=e+n[o],o+=r;return g}if(t<=Hca){for(s=e+n[o],l=e+n[o+r],c=e+n[o+2*r],u=e+n[o+3*r],d=e+n[o+4*r],h=e+n[o+5*r],f=e+n[o+6*r],p=e+n[o+7*r],o+=8*r,m=t%8,A=8;A<t-m;A+=8)s+=e+n[o],l+=e+n[o+r],c+=e+n[o+2*r],u+=e+n[o+3*r],d+=e+n[o+4*r],h+=e+n[o+5*r],f+=e+n[o+6*r],p+=e+n[o+7*r],o+=8*r;for(g=s+l+(c+u)+(d+h+(f+p)),A;A<t;A++)g+=e+n[o],o+=r;return g}return v=jca(t/2),v-=v%8,wGe(v,e,n,r,o)+wGe(t-v,e,n,r,o+v*r)}var ndn=wGe;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Uca=ndn;function zca(t,e,n,r){var a,o,s;if(t<=0)return 0;if(t===1||r===0)return e+n[0];if(r<0?a=(1-t)*r:a=0,t<8){for(o=0,s=0;s<t;s++)o+=e+n[a],a+=r;return o}return Uca(t,e,n,r,a)}var Gca=zca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Vca=cc,rdn=Gca,Kca=ndn;Vca(rdn,"ndarray",Kca);var Wca=rdn;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Qca=Wca,idn=Qca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qca=Wwe,Yca=idn;function Jca(t,e,n){var r,a;return t<=0?NaN:t===1||n===0?e[0]:(r=qca(t,e,n)/t,a=Yca(t,-r,e,n)/t,r+a)}var Zca=Jca;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Xca=Wwe.ndarray,eua=idn.ndarray;function tua(t,e,n,r){var a,o;return t<=0?NaN:t===1||n===0?e[r]:(a=Xca(t,e,n,r)/t,o=eua(t,-a,e,n,r)/t,a+o)}var nua=tua;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rua=cc,adn=Zca,iua=nua;rua(adn,"ndarray",iua);var aua=adn;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oua=aua,odn=oua;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var sua=odn;function lua(t,e,n){return sua(t,e,n)}var cua=lua;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uua=odn.ndarray;function dua(t,e,n,r){return uua(t,e,n,r)}var hua=dua;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var fua=cc,sdn=cua,pua=hua;fua(sdn,"ndarray",pua);var mua=sdn;/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var gua=mua,vua=gua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Aua=Eoe,yua=u9,bCt=Ip,xCt=Fca,ECt=vua;function bua(t,e){var n,r,a,o,s,l,c,u;for(u=t.length,s=ECt(u,t,1),l=ECt(u,e,1),o=0,c=0;c<u;c++)o+=t[c]*e[c];return r=o-u*s*l,n=(u-1)*bCt(xCt(u,1,t,1))*bCt(xCt(u,1,e,1)),a=r/n,Aua(yua(a,1),-1)}var xua=bua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Eua=fO,Sua=dun;function wua(t){return typeof t=="object"&&t!==null&&typeof t.length=="number"&&Eua(t.length)&&t.length>=0&&t.length<=Sua}var _ua=wua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Tua=_ua,Cua=Tua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function kua(t){return typeof t=="string"}var ldn=kua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Rua=String.prototype.valueOf,Mua=Rua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Nua=Mua;function Iua(t){try{return Nua.call(t),!0}catch{return!1}}var Pua=Iua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Oua=Bwe,Lua=Qw,Bua=Pua,Dua=Oua();function $ua(t){return typeof t=="object"?t instanceof String?!0:Dua?Bua(t):Lua(t)==="[object String]":!1}var cdn=$ua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Fua=ldn,jua=cdn;function Hua(t){return Fua(t)||jua(t)}var Uua=Hua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var udn=cc,Krt=Uua,zua=ldn,Gua=cdn;udn(Krt,"isPrimitive",zua);udn(Krt,"isObject",Gua);var Vua=Krt;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var SCt=prt,Kua=Cua,Wua=Vua.isPrimitive,Qua=xoe.isPrimitive;function qua(t,e,n){var r,a;if(!Kua(t)&&!Wua(t))throw new TypeError("invalid argument. First argument must be an array-like object. Value: `"+t+"`.");if(r=t.length,r===0)return-1;if(arguments.length===3){if(!Qua(n))throw new TypeError("invalid argument. `fromIndex` must be an integer. Value: `"+n+"`.");if(n>=0){if(n>=r)return-1;a=n}else a=r+n,a<0&&(a=0)}else a=0;if(SCt(e)){for(;a<r;a++)if(SCt(t[a]))return a}else for(;a<r;a++)if(t[a]===e)return a;return-1}var Yua=qua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Jua=Yua,Zua=Jua;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wCt=uN.isPrimitive,Xua=Yun,_Ct=prt,eda=Zua,$Le=Dwe,TCt=["two-sided","less","greater"];function tda(t,e){return Xua(e)?$Le(e,"alpha")&&(t.alpha=e.alpha,!wCt(t.alpha)||_Ct(t.alpha)||t.alpha<0||t.alpha>1)?new TypeError("invalid option. `alpha` option must be a number in `[0,1]`. Option: `"+t.alpha+"`."):$Le(e,"alternative")&&(t.alternative=e.alternative,eda(TCt,t.alternative)===-1)?new TypeError('invalid option. `alternative` option must be one of the following: "'+TCt.join('", "')+'". Option: `'+t.alternative+"`."):$Le(e,"rho")&&(t.rho=e.rho,!wCt(t.rho)||_Ct(t.rho)||t.rho<-1||t.rho>1)?new TypeError("invalid option. `rho` option must be a number in [-1,1]. Option: `"+t.rho+"`."):null:new TypeError("invalid argument. Options argument must be an object. Value: `"+e+"`.")}var nda=tda;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var CCt=Eqi.primitives,kCt=nYi,V_=mln,rda=grt.factory,ida=drt.factory,RCt=_Yi,Hue=LYi,Uue=Aoa,zue=Ip,MCt=u9,ada=cca,oda=xua,sda=nda,FLe=rda(0,1),Gue=ida(0,1);function lda(t,e,n){var r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y;if(!kCt(t)&&!CCt(t))throw new TypeError("invalid argument. First argument `x` must be a numeric array. Value: `"+t+"`.");if(!kCt(e)&&!CCt(e))throw new TypeError("invalid argument. Second argument `y` must be a numeric array. Value: `"+e+"`.");if(v=t.length,v!==e.length)throw new Error("invalid arguments. Arguments `x` and `y` must be arrays of the same length");if(s={},n&&(d=sda(s,n),d))throw d;if(s.alpha===void 0?a=.05:a=s.alpha,v<4)throw new Error("not enough observations. `x` and `y` must contain at least four observations.");if(s.rho===void 0?f=0:f=s.rho,s.alternative===void 0?u="two-sided":u=s.alternative,A=oda(t,e),y=RCt(A),g=1/zue(v-3),f===0)switch(r="t-test for Pearson correlation coefficient",m=v-2,c=zue(m)*A/zue(1-A*A),u){case"greater":l=1-Uue(c,m);break;case"less":l=Uue(c,m);break;case"two-sided":default:l=2*MCt(Uue(c,m),1-Uue(c,m));break}else switch(r="Fisher's z transform test for Pearson correlation coefficient",c=(y-RCt(f))*zue(v-3),u){case"greater":l=Gue(-c);break;case"less":l=1-Gue(-c);break;case"two-sided":default:l=2*MCt(Gue(-c),1-Gue(-c));break}switch(u){case"greater":o=[Hue(y-g*FLe(1-a)),1];break;case"less":o=[-1,Hue(y+g*FLe(1-a))];break;case"two-sided":default:p=g*FLe(1-a/2),o=[Hue(y-p),Hue(y+p)];break}return h={},V_(h,"rejected",l<=a),V_(h,"alpha",a),V_(h,"pValue",l),V_(h,"statistic",c),V_(h,"ci",o),V_(h,"alternative",u),V_(h,"method",r),V_(h,"nullValue",f),V_(h,"pcorr",A),V_(h,"print",ada),h}var cda=lda;/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var uda=cda,dda=uda;const hda=Li(dda);var fda=function(t,e){var n=hda(t,e),r=n.rejected,a=n.pcorr;return r?{pcorr:a,significance:Math.abs(a)}:null},pda=function(t,e,n){var r=n[0].field,a=n[1].field;if(!t||!e||t.length===0)return[];var o=t.map(function(c){return c==null?void 0:c[r]}),s=t.map(function(c){return c==null?void 0:c[a]}),l=fda(o,s);return l?[cr(cr({},l),{type:"correlation",measures:[r,a]})]:[]},mda=Ynt,gda=uln,vda=dln,Ada=Nwe,yda=Vnt,NCt=Jnt,bda=Math.min;function xda(t,e,n){for(var r=n?vda:gda,a=t[0].length,o=t.length,s=o,l=Array(o),c=1/0,u=[];s--;){var d=t[s];s&&e&&(d=Ada(d,yda(e))),c=bda(d.length,c),l[s]=!n&&(e||a>=120&&d.length>=120)?new mda(s&&d):void 0}d=t[0];var h=-1,f=l[0];e:for(;++h<a&&u.length<c;){var p=d[h],m=e?e(p):p;if(p=n||p!==0?p:0,!(f?NCt(f,m):r(u,m,n))){for(s=o;--s;){var g=l[s];if(!(g?NCt(g,m):r(t[s],m,n)))continue e}f&&f.push(m),u.push(p)}}return u}var Eda=xda,Sda=hoe,wda=pG;function _da(t){return wda(t)&&Sda(t)}var Tda=_da,Cda=Tda;function kda(t){return Cda(t)?t:[]}var Rda=kda,Mda=Nwe,Nda=Eda,Ida=pln,Pda=Rda,Oda=Ida(function(t){var e=Mda(t,Pda);return e.length&&e[0]===t[0]?Nda(e):[]}),Lda=Oda;const ddn=Li(Lda);var Bda=function(t,e,n){var r=t.dimensions,a=t.measures;return r.length===e&&a.length===n},_oe=function(t,e,n,r){var a,o,s,l,c=e.dimensions;return!((t==null?void 0:t.length)<3||!Bda(e,1,1)||(Array.isArray(r)?!(!((o=ddn((a=n[c[0]])===null||a===void 0?void 0:a.levelOfMeasurements,r))===null||o===void 0)&&o.length):!(!((l=(s=n[c[0]])===null||s===void 0?void 0:s.levelOfMeasurements)===null||l===void 0)&&l.includes(r))))},Dda=function(t,e,n){return _oe(t,e,n,"Time")},$da=function(t,e,n){return _oe(t,e,n,["Nominal","Discrete","Ordinal"])},Fda=function(t,e,n){return _oe(t,e,n,"Time")},jda=function(t,e,n){return _oe(t,e,n,"Time")},Hda=function(t,e,n){if(!_oe(t,e,n,["Nominal","Discrete","Ordinal"]))return!1;var r=e.measures;return n[r[0].field].distinct!==1},Uda=function(t,e,n){var r,a,o=e.measures;return!((t==null?void 0:t.length)<3||o.length!==2||!(!((r=n[o[0].field].levelOfMeasurements)===null||r===void 0)&&r.includes("Continuous"))||!(!((a=n[o[1].field].levelOfMeasurements)===null||a===void 0)&&a.includes("Continuous")))},zda={category_outlier:$da,trend:Dda,change_point:Fda,time_series_outlier:jda,low_variance:Hda,correlation:Uda},Gda={category_outlier:f$i,trend:v$i,change_point:b$i,time_series_outlier:nqi,majority:aqi,low_variance:lqi,correlation:pda},Vda=function(t){if(!t)throw new Error("Argument `data` is missing.");var e=new j6(t),n=e.info(),r=[];return n.forEach(function(a){var o,s=cr(cr({},a),{fieldType:!((o=ddn(["Interval","Continuous"],a.levelOfMeasurements))===null||o===void 0)&&o.length?"measure":"dimension"});r.push(s)}),r},hdn=function(t,e){var n=Pwe[e.method],r=n(t,e.field);return r},Kda=function(t,e){var n={};return e==null||e.forEach(function(r){var a=r.field+"@"+r.method,o=hdn(t,r);n[a]=o}),n},fdn=function(t,e){var n,r,a=[],o=t.length,s=t.filter(function(u){var d;return((d=u.patterns)===null||d===void 0?void 0:d.length)>0});if(s.length>1){if(e==="trend"){var l=Object.values(Dne(t,"patterns.0.trend")).sort(function(u,d){return d.length-u.length});l.length===2&&(!((r=(n=l[0][0])===null||n===void 0?void 0:n.patterns)===null||r===void 0)&&r.length)&&l[0].length/o>.75&&l[1].length<5?a.push({type:"exception",insightType:e,childPatterns:vZ(s.map(function(u){return u.patterns})),commSet:l[0].map(function(u){return u.key}),exc:l[1].map(function(u){return u.key}),significance:1-l[1].length/o}):l.forEach(function(u){var d,h=u.length/o;if(h>.3&&u.length>=3&&(!((d=u[0])===null||d===void 0)&&d.patterns)){var f=vZ(u.map(function(p){return p.patterns}));f.length&&a.push({type:"commonness",insightType:e,childPatterns:f,commSet:u.map(function(p){return p.key}),significance:h})}})}if(["change_point","outlier","time_series_outlier"].includes(e)){var c=Object.values(Dne(vZ(s.map(function(u){return u.patterns.map(function(d){return d.index})})))).sort(function(u,d){return d.length-u.length});c.forEach(function(u){var d=u.length/o;if(d>.3&&u.length>=3){var h=s.filter(function(p){return p.patterns.some(function(m){return m.index===u[0]})}),f=vZ(h.map(function(p){return p.patterns.filter(function(m){return m.index===u[0]})}));a.push({type:"commonness",insightType:e,childPatterns:f,commSet:h.map(function(p){return p.key}),significance:d})}})}}return a},Wda=function(t,e){var n=t.map(function(o){return o.field}),r=e.map(function(o){return o==null?void 0:o.patterns}),a=[];return Twe.forEach(function(o){var s=r.map(function(c,u){return{key:n[u],patterns:c==null?void 0:c.filter(function(d){return d.type===o})}}),l=fdn(s,o);a.push.apply(a,xc([],xa(l)))}),a},Qda=function(t,e){var n=e.length;if(t.length!==n)return[];var r=e.map(function(o){return o==null?void 0:o.patterns}),a=[];return Twe.forEach(function(o){var s=r.map(function(c,u){return{key:t[u],patterns:c==null?void 0:c.filter(function(d){return d.type===o})}}),l=fdn(s,o);a.push.apply(a,xc([],xa(l)))}),a},qda=function(t,e){return t.score-e.score},Yda=function(t,e){return t.score-e.score},ICt=function(t,e){t==null||t.forEach(function(n){e.length>=e.limit?e.pushpop(n):e.add(n)})},Jda=function(t,e,n,r){if(!(r!=null&&r.length)||!e)return 1;var a=r.map(function(o){var s=hdn(t,o),l=o.field+"@"+o.method,c=n[l];return s/c});return Math.max.apply(Math,xc([],xa(a)))},pdn=function(t,e,n,r){var a=e.measures,o=e.dimensions,s=(r==null?void 0:r.insightTypes)||Twe,l={};return s.forEach(function(c){var u=zda[c],d=!0;u&&(u(t,e,n)||(d=!1));var h=Gda[c];if(d&&h){var f=h(t,o,a);l[c]=f}else l[c]=null}),l},Zda=function(t,e,n,r,a,o){var s=a.fieldPropsMap,l=[];return e.forEach(function(c){var u=[],d=s[c].levelOfMeasurements.includes("Time");n.forEach(function(h){var f={dimensions:[c],subspace:r,measures:[h]},p=KMi(t,c,[h],d),m=pdn(p,f,s,o),g=vZ(Object.values(m).filter(function(A){return(A==null?void 0:A.length)>0})).sort(function(A,y){return y.significance-A.significance});if(g.length){var v={subspace:r,dimensions:[c],measures:[h],patterns:g,data:p,score:g[0].significance};u.push(v)}else u.push(null)}),l.push(u)}),l},Xda=function(t,e,n,r,a,o){var s,l=a.fieldPropsMap,c=[],u=n.length;if(u>=2)for(var d=0;d<u-1;d+=1)for(var h=d+1;h<u;h+=1){var f={dimensions:e,subspace:r,measures:[n[d],n[h]]},p=pdn(t,f,l,cr(cr({},o),{insightTypes:["correlation"]})),m=(s=p==null?void 0:p.correlation)===null||s===void 0?void 0:s.sort(function(v,A){return A.significance-v.significance});if(m!=null&&m.length){var g={subspace:r,dimensions:e,measures:[n[d],n[h]],patterns:m,data:t,score:m[0].significance};c.push(g)}}return c},mdn=function(t,e,n,r,a,o,s,l){var c;if(!(t!=null&&t.length))return[];var u=a.impactMeasureReferences,d=a.fieldPropsMap,h=Jda(t,r,u,l==null?void 0:l.impactMeasures);if(h<lEi)return[];var f=(l==null?void 0:l.impactWeight)>=0&&(l==null?void 0:l.impactWeight)<1?l.impactWeight:cEi,p=h*f+1*(1-f);if(o.length>=o.limit){var m=(c=o.peek())===null||c===void 0?void 0:c.score;if(p<=m)return[]}var g=[],v=Zda(t,e,n,r,a,l);if(v.forEach(function(w){var _=w.filter(function(C){return!!C}).map(function(C){return cr(cr({},C),{score:C.score*(1-f)+h*f})});g.push.apply(g,xc([],xa(w))),ICt(_,o)}),(l.insightTypes||Twe).includes("correlation")){var A=Xda(t,e,n,r,a,l),y=A==null?void 0:A.map(function(w){return cr(cr({},w),{score:w.score*(1-f)+h*f})});ICt(y,o)}if(l!=null&&l.homogeneous&&v.forEach(function(w,_){var C=Wda(n,w);if(C.length>0){var R=C.map(function(k){return{subspace:r,dimensions:[e[_]],measures:n,patterns:[k],data:t,score:k.significance*(1-f)+h*f}});s.addAll(R)}}),!(l!=null&&l.ignoreSubspace)){var S=r.map(function(w){return w.dimension}),x=((l==null?void 0:l.dimensions)||Object.values(d).filter(function(w){return w.fieldType==="dimension"}).map(function(w){return w.name})).filter(function(w){return!S.includes(w)});x.length>0&&x.forEach(function(w){var _=[],C=Dne(t,w),R=TNi(d[w].rawData),k=x.filter(function(P){return P!==w});R.length>1&&R.forEach(function(P){var N=xc(xc([],xa(r)),[{dimension:w,value:P}]),L=mdn(C[P],k,n,N,a,o,s,l);_.push(L)}),l!=null&&l.homogeneous&&k.forEach(function(P){n.forEach(function(N){var L=_.map(function(T){return T.find(function(M){return!!M&&M.dimensions.length===1&&M.dimensions[0]===P&&M.measures.length===1&&M.measures[0].field===N.field})}),I=Qda(R,L),b=I.map(function(T){return{subspace:r,dimensions:[w,P],measures:[N],patterns:[T],data:t,score:T.significance*(1-f)+h*f}});s.addAll(b)})})})}return g},eha=function(t,e,n,r,a,o,s){s===void 0&&(s={});var l=[];mdn(t,e,n,l,r,a,o,s)},tha=function(t,e){var n=t.filter(function(_){return!Object.values(_).some(function(C){return C==null})}),r=Vda(n),a=r.reduce(function(_,C){return _[C.name]=C,_},{}),o=Kda(n,e==null?void 0:e.impactMeasures),s={fieldPropsMap:a,impactMeasureReferences:o},l=(e==null?void 0:e.measures)||r.filter(function(_){return _.fieldType==="measure"}).map(function(_){return{field:_.name,method:"SUM"}}),c=(e==null?void 0:e.dimensions)||r.filter(function(_){return _.fieldType==="dimension"}).map(function(_){return _.name}),u=new OSt(qda),d=new OSt(Yda),h=(e==null?void 0:e.limit)||uEi;u.limit=h,u.init([]),d.init([]),eha(n,c,l,s,u,d,e);for(var f=[],p=u.size(),m=p>h?h:p,g=0;g<m;g+=1){var v=u.pop();f.push(v)}var A={insights:f.reverse()};if(e!=null&&e.homogeneous){for(var y=[],S=d.size(),x=S>h?h:S,g=0;g<x;g+=1){var w=d.pop();y.push(w)}A.homogeneousInsights=y.reverse()}return A},nha=function(t,e){var n=t.insights,r=t.homogeneousInsights,a=n.map(function(l){return cr(cr({},l),{visualizationSchemas:DMi(l,e.visualization)})}),o={insights:a};if(r&&e.homogeneous){var s=r.map(function(l){var c=FMi(l,e.visualization),u=l.data,d=l.measures,h=l.dimensions,f=cr(cr({},l),{visualizationSchemas:c});return d.length>1?f.data=WMi(u,h[0],d):f.data=QMi(u,h[0],d[0],h[1]),f});o.homogeneousInsights=s}return o},PCt=function(t,e){var n=tha(t,e);return e!=null&&e.visualization?nha(n,e):n};const rha=(t,e,n)=>{var v,A,y,S,x,w,_,C;const r=[],a=[],o=[],s=[],l=[],c=[],u=[],d=[],h=[],f=[];(v=t==null?void 0:t.Ordinal)==null||v.forEach(R=>{(R==null?void 0:R.count)===(R==null?void 0:R.distinct)?a==null||a.push(R):c==null||c.push(R)}),(A=t==null?void 0:t.Nominal)==null||A.forEach(R=>{(R==null?void 0:R.count)===(R==null?void 0:R.distinct)?o==null||o.push(R):u==null||u.push(R)}),(y=t==null?void 0:t.Time)==null||y.forEach(R=>{(R==null?void 0:R.count)>1&&(R==null?void 0:R.distinct)>1&&(s==null||s.push(R))}),(S=t==null?void 0:t.ID)==null||S.forEach(R=>{var k,P;(R==null?void 0:R.count)===(R==null?void 0:R.distinct)?((k=R==null?void 0:R.name)==null?void 0:k.toLowerCase())!=="timestamp"&&(l==null||l.push(R)):((P=R==null?void 0:R.name)==null?void 0:P.toLowerCase())!=="timestamp"&&(d==null||d.push(R))});const g=d==null?void 0:d.map(R=>R.name);return c==null||c.forEach(R=>((R==null?void 0:R.recommendation)==="boolean"&&(R==null?void 0:R.type)==="integer"||h.push(R),null)),u==null||u.forEach(R=>((R==null?void 0:R.recommendation)==="boolean"&&(R==null?void 0:R.type)==="integer"||f.push(R),null)),a==null||a.forEach(R=>{l==null||l.forEach(k=>{var P;(R==null?void 0:R.count)<16&&(k!=null&&k.name)&&((P=k.name)==null?void 0:P.toLowerCase())!=="timestamp"&&(r.push({xField:R==null?void 0:R.name,yField:[{name:k==null?void 0:k.name}],type:Ln.pie_chart,labelType:Ln.pie_chart,score:.2,isCustomChart:!0,isMixChart:!1}),r.push({xField:k==null?void 0:k.name,yField:[{name:R==null?void 0:R.name}],type:Ln.bar_chart,labelType:Ln.bar_chart,score:.2,isCustomChart:!0,isMixChart:!1}))})}),s==null||s.forEach(R=>{e==null||e.forEach(k=>{const{names:P,score:N}=k;r==null||r.push({xField:R==null?void 0:R.name,yField:P,type:Ln.area_chart,labelType:Ln.area_chart,score:N+5,isCustomChart:!0,isMixChart:!1}),r==null||r.push({xField:R==null?void 0:R.name,yField:P,type:Ln.column_chart,labelType:Ln.column_chart,score:N+5,isCustomChart:!0,isMixChart:!1})})}),s==null||s.forEach(R=>{n==null||n.forEach(k=>{const{names:P,score:N}=k,L=[];P.forEach((I,b)=>{var T;L.push({chartType:b%2===0?"column":"line",name:(T=P[b])==null?void 0:T.name})}),r==null||r.push({xField:R==null?void 0:R.name,yField:L,type:Ln.column_chart,labelType:Ln.mix_chart,score:N+10,isCustomChart:!0,isMixChart:!0})}),e==null||e.forEach(k=>{const{names:P,score:N}=k,L=[];P.forEach((I,b)=>{var T;L.push({chartType:b%2===0?"column":"line",name:(T=P[b])==null?void 0:T.name})}),r==null||r.push({xField:R==null?void 0:R.name,yField:L,type:Ln.column_chart,labelType:Ln.mix_chart,score:N+10,isCustomChart:!0,isMixChart:!0})})}),o==null||o.forEach(R=>{e==null||e.forEach(k=>{const{names:P,score:N}=k;r==null||r.push({xField:R==null?void 0:R.name,yField:P,type:Ln.line_chart,labelType:Ln.line_chart,score:N+5,isCustomChart:!0,isMixChart:!1})}),e==null||e.forEach(k=>{const{names:P,score:N}=k;r==null||r.push({xField:R==null?void 0:R.name,yField:P,type:Ln.column_chart,labelType:Ln.column_chart,score:N+5,isCustomChart:!0,isMixChart:!1}),(R==null?void 0:R.count)<16&&(P==null?void 0:P.length)===1&&(r==null||r.push({xField:R==null?void 0:R.name,yField:P,type:Ln.pie_chart,labelType:Ln.pie_chart,score:N+2,isCustomChart:!0,isMixChart:!1}),r.push({xField:P[0].name,yField:[{name:R==null?void 0:R.name}],type:Ln.bar_chart,labelType:Ln.bar_chart,score:.2,isCustomChart:!0,isMixChart:!1}))})}),o==null||o.forEach(R=>{n==null||n.forEach(k=>{const{names:P,score:N}=k,L=[];P.forEach((I,b)=>{var T;L.push({chartType:b%2===0?"column":"line",name:(T=P[b])==null?void 0:T.name})}),r==null||r.push({xField:R==null?void 0:R.name,yField:L,type:Ln.column_chart,labelType:Ln.mix_chart,score:N+10,isCustomChart:!0,isMixChart:!0})})}),a==null||a.forEach(R=>{e==null||e.forEach(k=>{const{names:P,score:N}=k;r==null||r.push({xField:R==null?void 0:R.name,yField:P,type:Ln.line_chart,labelType:Ln.line_chart,score:N+5,isCustomChart:!0,isMixChart:!1})}),e==null||e.forEach(k=>{const{names:P,score:N}=k;r==null||r.push({xField:R==null?void 0:R.name,yField:P,type:Ln.column_chart,labelType:Ln.column_chart,score:N+5,isCustomChart:!0,isMixChart:!1})})}),(x=t.Time)==null||x.forEach(R=>{var k;(k=t==null?void 0:t.ID)==null||k.forEach(P=>{f==null||f.forEach(N=>{var L;P!=null&&P.name&&((L=P.name)==null?void 0:L.toLowerCase())!=="timestamp"&&(N==null?void 0:N.distinct)>1&&(N==null?void 0:N.distinct)<=35&&!qp(N==null?void 0:N.rawData[0])&&(r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_column_chart,labelType:Ln.stacked_column_chart,score:2.5,isCustomChart:!0,isMixChart:!1}),r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_area_chart,labelType:Ln.stacked_area_chart,score:2.5,isCustomChart:!0,isMixChart:!1}))})})}),(w=t.Time)==null||w.forEach(R=>{var k;(k=t==null?void 0:t.ID)==null||k.forEach(P=>{h==null||h.forEach(N=>{var L;P!=null&&P.name&&((L=P.name)==null?void 0:L.toLowerCase())!=="timestamp"&&(N==null?void 0:N.distinct)>1&&(N==null?void 0:N.distinct)<=35&&!qp(N==null?void 0:N.rawData[0])&&(r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_column_chart,labelType:Ln.stacked_column_chart,score:2.5,isCustomChart:!0,isMixChart:!1}),r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_area_chart,labelType:Ln.stacked_area_chart,score:2.5,isCustomChart:!0,isMixChart:!1}))})})}),a==null||a.forEach(R=>{n==null||n.forEach(k=>{const{names:P,score:N}=k,L=[];P.forEach((I,b)=>{var T;L.push({chartType:b%2===0?"column":"line",name:(T=P[b])==null?void 0:T.name})}),r==null||r.push({xField:R==null?void 0:R.name,yField:L,type:Ln.column_chart,labelType:Ln.mix_chart,score:N+10,isCustomChart:!0,isMixChart:!0})})}),(f==null?void 0:f.length)>=2&&(f==null||f.forEach(()=>{var R;(R=t==null?void 0:t.ID)==null||R.forEach(k=>{var P,N,L,I;r.push({xField:(P=f[0])==null?void 0:P.name,yField:[{name:k==null?void 0:k.name}],seriesField:(N=f[1])==null?void 0:N.name,type:Ln.stacked_column_chart,labelType:Ln.stacked_column_chart,score:2.5,isCustomChart:!0,isMixChart:!1}),r.push({xField:(L=f[0])==null?void 0:L.name,yField:[{name:k==null?void 0:k.name}],seriesField:(I=f[1])==null?void 0:I.name,type:Ln.stacked_area_chart,labelType:Ln.stacked_area_chart,score:2.5,isCustomChart:!0,isMixChart:!1})})})),r!=null&&r.length||(s==null||s.forEach(R=>{var k;(k=t==null?void 0:t.ID)==null||k.forEach(P=>{var N,L,I;if(P!=null&&P.name&&((N=P.name)==null?void 0:N.toLowerCase())!=="timestamp"&&(r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],type:Ln.line_chart,labelType:Ln.line_chart,score:.2,isCustomChart:!0,isMixChart:!1}),r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],type:Ln.area_chart,labelType:Ln.area_chart,score:.2,isCustomChart:!0,isMixChart:!1})),P!=null&&P.name&&((L=P.name)==null?void 0:L.toLowerCase())!=="timestamp"&&g.length>=2){const b=[];g==null||g.forEach((T,M)=>{b.push({chartType:M%2===0?"column":"line",name:g[M]})}),r==null||r.push({xField:R==null?void 0:R.name,yField:b,type:Ln.column_chart,labelType:Ln.mix_chart,score:1,isCustomChart:!0,isMixChart:!0})}(R==null?void 0:R.count)<16&&(P!=null&&P.name)&&((I=P.name)==null?void 0:I.toLowerCase())!=="timestamp"&&(r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],type:Ln.pie_chart,labelType:Ln.pie_chart,score:.2,isCustomChart:!0,isMixChart:!1}),r.push({xField:P==null?void 0:P.name,yField:[{name:R==null?void 0:R.name}],type:Ln.bar_chart,labelType:Ln.bar_chart,score:.2,isCustomChart:!0,isMixChart:!1}))})}),(_=t.Time)==null||_.forEach(R=>{var k;(k=t==null?void 0:t.ID)==null||k.forEach(P=>{f==null||f.forEach(N=>{var L;P!=null&&P.name&&((L=P.name)==null?void 0:L.toLowerCase())!=="timestamp"&&(N==null?void 0:N.distinct)>1&&(N==null?void 0:N.distinct)<=35&&!qp(N==null?void 0:N.rawData[0])&&(r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_column_chart,labelType:Ln.stacked_column_chart,score:2.5,isCustomChart:!0,isMixChart:!1}),r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_area_chart,labelType:Ln.stacked_area_chart,score:2.5,isCustomChart:!0,isMixChart:!1}))})})}),(C=t.Time)==null||C.forEach(R=>{var k;(k=t==null?void 0:t.ID)==null||k.forEach(P=>{h==null||h.forEach(N=>{var L;P!=null&&P.name&&((L=P.name)==null?void 0:L.toLowerCase())!=="timestamp"&&(N==null?void 0:N.distinct)>1&&(N==null?void 0:N.distinct)<=35&&!qp(N==null?void 0:N.rawData[0])&&(r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_column_chart,labelType:Ln.stacked_column_chart,score:2.5,isCustomChart:!0,isMixChart:!1}),r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],seriesField:N==null?void 0:N.name,type:Ln.stacked_area_chart,labelType:Ln.stacked_area_chart,score:2.5,isCustomChart:!0,isMixChart:!1}))})})}),o==null||o.forEach(R=>{var k,P;(k=t==null?void 0:t.ID)==null||k.forEach(N=>{var L;N!=null&&N.name&&((L=N==null?void 0:N.name)==null?void 0:L.toLowerCase())!=="timestamp"&&r.push({xField:R==null?void 0:R.name,yField:[{name:N==null?void 0:N.name}],type:Ln.line_chart,labelType:Ln.line_chart,score:.2,isCustomChart:!0,isMixChart:!1})}),(f==null?void 0:f.length)>=2&&(f==null||f.forEach(()=>{var N;(N=t==null?void 0:t.ID)==null||N.forEach(L=>{var I,b,T,M;r.push({xField:(I=f[0])==null?void 0:I.name,yField:[{name:L==null?void 0:L.name}],seriesField:(b=f[1])==null?void 0:b.name,type:Ln.stacked_column_chart,labelType:Ln.stacked_column_chart,score:2.5,isCustomChart:!0,isMixChart:!1}),r.push({xField:(T=f[0])==null?void 0:T.name,yField:[{name:L==null?void 0:L.name}],seriesField:(M=f[1])==null?void 0:M.name,type:Ln.stacked_area_chart,labelType:Ln.stacked_area_chart,score:2.5,isCustomChart:!0,isMixChart:!1})})})),(P=t==null?void 0:t.ID)==null||P.forEach(N=>{var L;N!=null&&N.name&&((L=N==null?void 0:N.name)==null?void 0:L.toLowerCase())!=="timestamp"&&(r.push({xField:R==null?void 0:R.name,yField:[{name:N==null?void 0:N.name}],type:Ln.pie_chart,labelType:Ln.pie_chart,score:.2,isCustomChart:!0,isMixChart:!1}),r.push({xField:N==null?void 0:N.name,yField:[{name:R==null?void 0:R.name}],type:Ln.bar_chart,labelType:Ln.bar_chart,score:.2,isCustomChart:!0,isMixChart:!1}),r==null||r.push({xField:R==null?void 0:R.name,yField:[{name:N==null?void 0:N.name}],type:Ln.column_chart,labelType:Ln.column_chart,score:.5,isCustomChart:!0,isMixChart:!1}))})}),a==null||a.forEach(R=>{var k;(k=t==null?void 0:t.ID)==null||k.forEach(P=>{var N;P!=null&&P.name&&((N=P==null?void 0:P.name)==null?void 0:N.toLowerCase())!=="timestamp"&&r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],type:Ln.line_chart,labelType:Ln.line_chart,score:.2,isCustomChart:!0,isMixChart:!1})})}),l==null||l.forEach(R=>{var k;(k=t==null?void 0:t.ID)==null||k.forEach(P=>{var N;P!=null&&P.name&&((N=P==null?void 0:P.name)==null?void 0:N.toLowerCase())!=="timestamp"&&(R==null?void 0:R.name)!==(P==null?void 0:P.name)&&(r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],type:Ln.line_chart,labelType:Ln.line_chart,score:1,isCustomChart:!0,isMixChart:!1}),r==null||r.push({xField:R==null?void 0:R.name,yField:[{name:P==null?void 0:P.name}],type:Ln.column_chart,labelType:Ln.column_chart,score:.5,isCustomChart:!0,isMixChart:!1}))})})),[...r]},tr={newChart:t=>`/charts/new?${t}`,currentChart:t=>`/charts/${t}`,updateChart:t=>`/charts/${t}/update`,charts:t=>`/charts?activeTab=${t}&isRun=true`,chartsActive:t=>`/charts?activeTab=${t}`,queriesPath:t=>`/queries/${t}`,myqueries:t=>`/myqueries?${t}`,exploreQuery:t=>`/explore?${t}`,myOrgQuery:t=>`/subscription?${t}`,erd:()=>"/data-sets",newQuery:()=>"/queries/new?tabID=1",updateDashboard:t=>`/dashboards/${t}/update`,viewDashboard:t=>`/dashboards/${t}/view`,publicDashboard:t=>`/dashboards/public/${t}`,queriesSlug:(t,e)=>`/queries/${t}/${e}`,forkDashboard:t=>`/dashboards/public/${t}`,insights:()=>"/insights",pipelineView:()=>"/pipelines",pipelineModel:t=>`/pipeline/model?${t}`,dashboards:t=>`/dashboards?activeTab=${t}&isRun=true`,dashboardActive:t=>`/dashboards?activeTab=${t}`,sendData:t=>`/send-data?${t}`,getDataFromChain:t=>`/get-data-from-chain?${t}`,graphqlSchemaName:t=>`/graphql/${t}`,zkpay:()=>"/ZKpay"},Qt={newQuery:"/queries/new",landingPage:"/",erd:"/data-sets",savedQuery:"/queries/:queryId",publicQuerySlug:"/queries/:queryId/:slug",newChart:"/charts/new",updateChart:"/charts/:chartId/update",myQueries:"/myqueries",queryHistory:"/queryhistory",myOrgQuery:"/subscription",newDashboard:"/dashboards/new",updateDashboard:"/dashboards/:dashboardId/update",viewDashboard:"/dashboards/:dashboardId/view",publicDashboard:"/dashboards/public/:dashboardId",charts:"/charts",dashboards:"/dashboards",queries:"/queries",insights:"/insights",pipelineView:"/pipelines",pipelineModel:"/pipeline/model",login:"/login",sendData:"/send-data",publishData:"/send-data/publish-data",azureLogin:"/register/:provider",getDataFromChain:"/get-data-from-chain",chainlinkSubscriptions:"/send-data/chainlink-subscriptions",awsMarketplace:"/register/awsMarketplace",googleCloud:"/register/googleCloud",graphQl:"/graphql",vizard:"/vizard",views:"/views",zkpay:"/ZKpay"},N$=[{color0:"#96B3FF",color1:"#2A69C7"},{color0:"#ED81FF",color1:"#AA2DC9"},{color0:"#FFDC81",color1:"#EF9039"},{color0:"#99F9FF",color1:"#2BAFCC"},{color0:"#CB356B",color1:"#BD3F32"},{color0:"#DBE6F6",color1:"#C5796D"},{color0:"#43cea2",color1:"#185a9d"},{color0:"#fe8c00",color1:"#f83600"},{color0:"#a8c0ff",color1:"#3f2b96"},{color0:"#A7BFE8",color1:"#6190E8"},{color0:"#44A08D",color1:"#093637"},{color0:"#DECBA4",color1:"#3E5151"},{color0:"#948E99",color1:"#2E1437"},{color0:"#b29f94",color1:"#603813"},{color0:"#928DAB",color1:"#1F1C2C"},{color0:"#e4e4d9",color1:"#215f00"},{color0:"#eacda3",color1:"#d6ae7b"},{color0:"#ffe259",color1:"#ffa751"},{color0:"#AAFFA9",color1:"#11FFBD"},{color0:"#a8e063",color1:"#56ab2f"},{color0:"#BFE6BA",color1:"#D3959B"},{color0:"#86A8E7",color1:"#7F7FD5"},{color0:"#2C5364",color1:"#203A43"},{color0:"#396afc",color1:"#2948ff"},{color0:"#FFAF7B",color1:"#D76D77"},{color0:"#536976",color1:"#292E49"},{color0:"#6FB1FC",color1:"#4364F7"},{color0:"#8E2DE2",color1:"#4A00E0"},{color0:"#f953c6",color1:"#b91d73"},{color0:"#BDFFF3",color1:"#4AC29A"},{color0:"#F15F79",color1:"#B24592"},{color0:"#237A57",color1:"#093028"},{color0:"#99FFB6",color1:"#28CB69"}],Vue=[{color0:"#fff95b",color1:"#ff930f"},{color0:"#60efff",color1:"#0061ff"},{color0:"#82f4b1",color1:"#30c67c"},{color0:"#ffc8c8",color1:"#ff5858"},{color0:"#f2c2ee",color1:"#e763f9"},{color0:"#f9bc2c",color1:"#f74c06"},{color0:"#eef2f3",color1:"#8399a2"},{color0:"#f9a87b",color1:"#f97d5b"},{color0:"#9bd46a",color1:"#5da92f"},{color0:"#f756aa",color1:"#f75672"}],OCt=[{color0:"#e52d27",color1:"#b31217"},{color0:"#BDFFF3",color1:"#4AC29A"},{color0:"#ACB6E5",color1:"#74ebd5"},{color0:"#6441A5",color1:"#2a0845"},{color0:"#f953c6",color1:"#b91d73"},{color0:"#bdc3c7",color1:"#2c3e50"},{color0:"#38ef7d",color1:"#11998e"},{color0:"#8E2DE2",color1:"#4A00E0"},{color0:"#f4c4f3",color1:"#fc67fa"},{color0:"#396afc",color1:"#2948ff"}],LCt=[{color0:"#60efff",color1:"#0061ff"},{color0:"#fff95b",color1:"#ff930f"},{color0:"#82f4b1",color1:"#30c67c"},{color0:"#ffc8c8",color1:"#ff5858"},{color0:"#f2c2ee",color1:"#e763f9"},{color0:"#f9bc2c",color1:"#f74c06"},{color0:"#eef2f3",color1:"#8399a2"},{color0:"#f9a87b",color1:"#f97d5b"},{color0:"#9bd46a",color1:"#5da92f"},{color0:"#f756aa",color1:"#f75672"}],I$=[20,25,30,35],jLe=[{label:"45°",value:-45},{label:"flat",value:0}],HLe=["Left","Right"],gdn=[{chartType:Ln.line_chart,chartLabel:Zg.line_chart},{chartType:Ln.stacked_line_chart,chartLabel:Zg.stacked_line_chart},{chartType:Ln.column_chart,chartLabel:Zg.column_chart},{chartType:Ln.bar_chart,chartLabel:Zg.bar_chart},{chartType:Ln.stacked_column_chart,chartLabel:Zg.stacked_column_chart},{chartType:Ln.area_chart,chartLabel:Zg.area_chart},{chartType:Ln.stacked_area_chart,chartLabel:Zg.stacked_area_chart},{chartType:Ln.scatter_chart,chartLabel:Zg.scatter_chart},{chartType:Ln.pie_chart,chartLabel:Zg.pie_chart}],iha=[{visualisationType:ii.table,visualisationLabel:Zg.dataset},{visualisationType:ii.counter,visualisationLabel:Zg.counter}],P$=[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Center",value:"center"}],O$=[{label:"Normal",value:"Normal"},{label:"Progress bar",value:"ProgressBar"}],BCt=["january","jan","february","feb","march","mar","april","apr","may","june","jun","july","jul","august","aug","september","sep","sept","october","oct","november","nov","december","dec"],DCt=["sunday","sun","monday","mon","tuesday","tue","wednesday","wed","thursday","thu","thur","friday","fri","saturday","sat"],aha=(t,e)=>{var n,r;return TEt.includes(((n=e[t==null?void 0:t.fieldName])==null?void 0:n.type)||"")||TEt.includes(((r=e[t==null?void 0:t.fieldName])==null?void 0:r.recommendation)||"")},oha=(t,e,n)=>{const r=q.TIMESTAMP,{colorField:a,angleField:o,xField:s,yField:l}=n||{},c=r1e(t,e,!1);return(a===r||o===r||s===r||l===r)&&(c==null||c.sort((u,d)=>u[r]-d[r])),c},Qwe=t=>{const n=new j6(t).info(),r=n==null?void 0:n.filter(a=>{var o,s;return(a==null?void 0:a.standardDeviation)!==0&&!(pOe!=null&&pOe.includes(a==null?void 0:a.recommendation))&&!((o=a==null?void 0:a.valueMap)!=null&&o.false)&&!((s=a==null?void 0:a.valueMap)!=null&&s.true)});return{dataFrames:n,filteredDataFrames:r}},qwe=t=>{const e={};return t==null||t.forEach(n=>{const{name:r}=n;r&&(e[r]=n)}),e},sha=t=>{const e=[],n=[],r={};t==null||t.forEach(a=>{const{name:o,recommendation:s,rawData:l,levelOfMeasurements:c}=a;(o==null?void 0:o.toLowerCase())!=="timestamp"&&(o&&(l!=null&&l.length)&&s==="integer"||s==="float"||c!=null&&c.includes("Interval")||c!=null&&c.includes("Continuous")||c!=null&&c.includes("Discrete"))&&(n.push(o),r[o]=l)});for(let a=0;a<(n==null?void 0:n.length);a+=1){const o=n[a];if(!i1e((o==null?void 0:o.toLowerCase())||"")&&(o==null?void 0:o.toLowerCase())!=="timestamp"){let s=[],l=0;for(let c=a+1;c<(n==null?void 0:n.length);c+=1){const u=n[c];if(!i1e((u==null?void 0:u.toLowerCase())||"")&&(u==null?void 0:u.toLowerCase())!=="timestamp"){const d=ton(r[o],r[u]);!Number.isNaN(d)&&(d>0&&d>.3||d<-.3)&&(s==null||s.push({name:u,correlation:d,score:d<0?-1*d:d}))}}(s==null?void 0:s.length)>2&&(s=s==null?void 0:s.sort((c,u)=>u.score-c.score)),s==null||s.forEach(({score:c})=>{c&&(l+=c)}),l&&(l/=s.length),l&&e.push({names:[...s,{name:o}],score:l})}}return e==null||e.sort((a,o)=>o.score-a.score),e},lha=t=>{var a;const e=[],n=[],r={};t==null||t.forEach(o=>{const{name:s,recommendation:l,rawData:c,levelOfMeasurements:u}=o;(s==null?void 0:s.toLowerCase())!=="timestamp"&&(s&&(c!=null&&c.length)&&l==="integer"||l==="float"||u!=null&&u.includes("Interval")||u!=null&&u.includes("Continuous")||u!=null&&u.includes("Discrete"))&&(n.push(s),r[s]=c)});for(let o=0;o<(n==null?void 0:n.length);o+=1){const s=n[o];if(!i1e((s==null?void 0:s.toLowerCase())||"")&&(s==null?void 0:s.toLowerCase())!=="timestamp"){let l=[],c=0;for(let u=o+1;u<(n==null?void 0:n.length);u+=1){const d=n[u];if(!i1e((d==null?void 0:d.toLowerCase())||"")&&(d==null?void 0:d.toLowerCase())!=="timestamp"){const h=eon(r[s],r[d]);!Number.isNaN(h)&&h<0&&(l==null||l.push({name:d,covariance:h,score:-1*h||0}))}}(l==null?void 0:l.length)>2&&(l=(a=l==null?void 0:l.sort((u,d)=>d.score-u.score))==null?void 0:a.slice(0,2)),l==null||l.forEach(({score:u})=>{u&&(c+=u)}),c&&(c/=l.length),c&&e.push({names:[...l,{name:s}],score:c})}}return e==null||e.sort((o,s)=>s.score-o.score),e},cha=t=>{const e="IC",n="ID",r={[e]:[],[n]:[]};return t==null||t.forEach(a=>{var l,c;const{levelOfMeasurements:o,type:s}=a;s!=="null"&&(o==null||o.forEach(u=>{r[u]||(r[u]=[]),r[u].push(a)}),o!=null&&o.includes("Interval")&&(o!=null&&o.includes("Discrete"))&&((l=r[n])==null||l.push(a)),o!=null&&o.includes("Interval")&&(o!=null&&o.includes("Continuous"))&&((c=r[n])==null||c.push(a)))}),r},uha=(t,e)=>{if(!(t!=null&&t.length))return[];const n=cha(e),r=sha(e),a=lha(e);return rha(n,r,a)},dha=(t,e)=>{const n=[];try{t==null||t.forEach(r=>{const{visualizationSchemas:a}=r,o=[];a==null||a.forEach(s=>{var p,m;let{chartSchema:l}=s;const{chartType:c}=s;let{xField:u,yField:d}=l;const{colorField:h,angleField:f}=l;if(c===Ln.pie_chart&&h&&f){let g=!1;if(((p=e[h])==null?void 0:p.distinct)!==((m=e[h])==null?void 0:m.count)&&(g=!0),g)return}if(!(u!=null&&u.match(d))&&!(d!=null&&d.match(u))){if((d==null?void 0:d.toLowerCase())==="timestamp"){const g=u;u=d,d=g}l={...l,xField:u,yField:d,annotations:[]},o.push({...s,chartSchema:l})}}),o!=null&&o.length&&n.push({...r,visualizationSchemas:o})})}catch{}return n},hha=t=>{const e=[];try{t==null||t.forEach(n=>{var u,d,h;const{type:r}=n;if(r==="pie_chart"){e.push(n);return}const{spec:a}=n,o=((u=a==null?void 0:a.layer)==null?void 0:u[0])||{},s=(o==null?void 0:o.encoding)||{};let l=((d=s==null?void 0:s.x)==null?void 0:d.field)||"",c=((h=s==null?void 0:s.y)==null?void 0:h.field)||"";if(!(l!=null&&l.match(c))&&!(c!=null&&c.match(l))){if((c==null?void 0:c.toLowerCase())==="timestamp"){const f=l;l=c,c=f}s.x.field=l,s.y.field=c,o.encoding=s,a.layer[0]=o,e.push({...n,spec:a})}})}catch{}return e},fha=(t,e)=>{var l;let n=[];try{n=PCt(t,{visualization:!0,ignoreSubspace:!0,limit:15})}catch{try{n=PCt(t,{visualization:!0,ignoreSubspace:!0,limit:15,insightTypes:["category_outlier","trend","change_point","time_series_outlier","majority","low_variance"]})}catch{}}const r={include:["column_chart","area_chart","line_chart","scatter_chart","pie_chart","scatter_plot"]},o=new oEi({ckbCfg:r}).advise({data:t}),s={insightResult:[],adviseResult:hha(o)};if((l=n==null?void 0:n.insights)!=null&&l.length){const{insights:c}=n;s.insightResult=dha(c,e)}return s},pha=(t,e,n)=>{var c,u,d,h,f;const{spec:r}=t,a=((c=r==null?void 0:r.layer)==null?void 0:c[0])||{},o=(a==null?void 0:a.encoding)||{};if(e==="pie_chart"){const p=((u=o==null?void 0:o.color)==null?void 0:u.field)||"",m=[{name:(d=o==null?void 0:o.theta)==null?void 0:d.field}];return{xField:p,yField:m,data:n}}const s=((h=o==null?void 0:o.x)==null?void 0:h.field)||"",l=[{name:(f=o==null?void 0:o.y)==null?void 0:f.field}];return{xField:s,yField:l,data:n}},vdn=t=>t.match("plot")?t.replace("_plot",""):t.replace("_chart",""),mha=t=>typeof t=="object"?t:{value:t},gha=(t,e)=>{if(!(t!=null&&t.length))return[];const n=[];return e==null||e.forEach(({name:a})=>{n.push(a)}),t==null?void 0:t.map(a=>{const o={};return n==null||n.forEach(s=>{o[s]=a[s]||""}),o})},UT=(t,e,n=!1)=>{const r=new URLSearchParams({queryId:t,isUnsaved:n==null?void 0:n.toString()}).toString();e==null||e.push(tr.newChart(r))},Wrt=t=>[Ln.pie_chart,Ln.scatter_chart,Ln.scatter_plot,Ln.stacked_column_chart,Ln.stacked_area_chart,Ln.stacked_line_chart,Ln.bar_chart].includes(t),vha=()=>[{label:"%d/%m/%Y | 14/01/2019",value:"DD/MM/YYYY"},{label:"%m/%d/%Y | 01/14/2019",value:"MM/DD/YYYY"},{label:"%Y-%m-%d | 2019-01-14",value:"YYYY-MM-DD"},{label:"%Y-%m-%d %H:%M:%S | 2019-01-14 01:32:10",value:"YYYY-MM-DD HH:MM:ss"},{label:"%d-%m-%Y %H:%M:%S | 14-01-2019 01:32:10",value:"DD-MM-YYYY HH:MM:ss"},{label:"%H:%M:%S | 01:32:10",value:"HH:MM:ss"},{label:"%mmm %d, %H:%M:%S | Feb 25 22:02:32, ",value:"MMM DD, HH:MM:ss"}],Adn=(t,e,n)=>{const r=Ft.map(t,"fieldName");return r.includes(e.xField)?r.includes(e.yField)?(n(""),!0):(n(q.FIELD_MISSING("Y")),!1):(n(q.FIELD_MISSING("X")),!1)},Aha=(t,e)=>{const n=Ft.map(t,"fieldName");return n.includes(e.xField)?n.includes(e.yField)?!1:q.FIELD_MISSING("Y"):q.FIELD_MISSING("X")},zme=(t,e,n,r)=>{let a={color0:"",color1:""};const{chartColors:o}=r||{};switch(t){case"line":{a=n?o[e]||N$[e]||_A():N$[e]||_A();break}case"column":{a=n?o[e]||Vue[e]||_A():Vue[e]||_A();break}case"area":{a=n?o[e]||OCt[e]||_A():OCt[e]||_A();break}case"bar":{a=n?o[e]||Vue[e]||_A():Vue[e]||_A();break}case"pie":{a=n?o[e]||LCt[e]||_A():LCt[e]||_A();break}case"scatter":{a=n?o[e]||N$[e]||_A():N$[e]||_A();break}default:a=n?o[e]||N$[e]||_A():N$[e]||_A()}return a},ydn=(t,e,n,r)=>{if(!n)return null;const a={...t};return e?{[e]:{...a[e],[n]:r}}:{...t,[n]:r}},_Ge=t=>t==null?void 0:t.filter(e=>!["seriesField","xAxisData","yAxisData","legendEnabled","metricEnabled","sliderEnabled"].includes(e==null?void 0:e.fieldId)),yha=(t,e)=>{const n=Ft.compact(t);if(e==="TIMESTAMP")return"category";if(n!=null&&n.length){const r=n[0];if(typeof r=="string")return"category";if(typeof r=="number")return"value"}return"category"},bha=(t,e)=>{if(t!=null&&t.length){const n=t[0],r=typeof e=="object"?e.value:e;if(e==="TIMESTAMP")return"category";if(typeof n[r]=="string")return qp(n[r])?"category":"value";if(typeof n[r]=="number")return"value"}return"value"},bdn=t=>{let e={};const{type:n="chart",config:r={}}=t||{},{configItem:a={}}=r||{};return Object==null||Object.keys(a).forEach(s=>{e={...e,[s]:a[s]}}),{chartType:n,fields:e}},xdn=t=>{const e=f=>!Number.isNaN(Number(f)),n=f=>/^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sep|sept|oct|nov|dec)$/i.test(f),r=f=>!Number.isNaN(Date.parse(f)),a=f=>/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|thur|fri|sat)$/i.test(f),o=[],s=[],l=[],c=[],u=[],d=[];return t==null||t.forEach(f=>{e(f)&&!qp(f)?o.push(Number(f)):qp(f)&&!e(f)?d.push(f):n(f)?s.push(f):r(f)?l.push(f):a(f)?c.push(f):u.push(f)}),o.sort((f,p)=>f-p),s.sort((f,p)=>BCt.indexOf(f)-BCt.indexOf(p)),l.sort(),c.sort((f,p)=>DCt.indexOf(f)-DCt.indexOf(p)),d.sort((f,p)=>f.localeCompare(p,"en",{numeric:!0})),u.sort(),[...o,...d,...s,...l,...c,...u]},hI=(t,e)=>{var a,o,s;let n=[];return n=((s=((o=(a=Object.keys(t||{}))==null?void 0:a.filter(l=>(l==null?void 0:l.toLowerCase())===(e==null?void 0:e.toLowerCase())))==null?void 0:o.reduce((l,c)=>Object.assign(l,{[c]:t[c]}),{}))[e])==null?void 0:s.levelOfMeasurements)||[],n};let Edn;function AE(){return Edn}function xha(){return Edn=xo(),null}const Eha={light_theme:"Switch to light",dark_theme:"Switch to dark",show_schemas:"Show Indexed Chains",no_connections:"No connections selected",no_relations:"No relations found for the entered query",empty_result:"You don`t have any result set available.",run_query:"Please run a valid query to view Erd!"},ULe=[{id:1,tooltip:"Atomic view",name:"atomic",icon:E.jsx(ymi,{})},{id:2,tooltip:"Grouped view",name:"grouped",icon:E.jsx(bmi,{})}],Sdn=["74 143 255","112 73 255","73 255 243","255 73 73","230 73 255"],lx="core",zLe=[{schema:"BASE",parentSchema:"BASE",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"MUMBAI",parentSchema:"MUMBAI",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"GOERLI",parentSchema:"GOERLI",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"SUI",parentSchema:"SUI",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"SUI (testnet)",parentSchema:"SUI (testnet)",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"SEPOLIA",parentSchema:"SEPOLIA",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"SEI",parentSchema:"SEI",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"BITCOIN",parentSchema:"BITCOIN",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"ZKSYNCERA",parentSchema:"ZKSYNCERA",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]},{schema:"APTOS",parentSchema:"APTOS",tables:[],schemaSubGroups:{},isBlockchain:!0,views:[]}],$Ct={VARCHAR:{DET:{NONE:1,LIKE:1},FPE:{ASCII:1,EASCII:1,EBCDIC:1,UNICODE:1,NUMERIC_NONSTRICT:1,NUMERICLP:1},FPE_TOKEN:{ASCII:1,EASCII:1,EBCDIC:1,UNICODE:1}},CHAR:{FPE:{ASCII:1,EASCII:1,EBCDIC:1,UNICODE:1},FPE_TOKEN:{ASCII:1,EASCII:1,EBCDIC:1,UNICODE:1}},INTEGER:{FPE:{NUMERICLP:1}},INT:{FPE:{NUMERICLP:1}},BIGINT:{FPE:{NUMERIC:1,NUMERICLP:1},OPE:{NONE:1}},DECIMAL:{FPE:{NUMERICLP:1}},REAL:{FPE:{NUMERICLP:1}},DATE:{FPE_DAY:{NONE:1},MASK:{MASK_DAY:1,MASK_MONTH:1,MASK_DAY_RANDOM:1,MASK_MONTH_DAY:1,MASK_YEAR_MONTH:1,MASK_YEAR_DAY:1,MASK_YEAR:1,MASK_FULL_DATE:1}},TIMESTAMP:{FPE_DAY:{NONE:1},MASK:{MASK_DAY:1,MASK_MONTH:1,MASK_DAY_RANDOM:1,MASK_MONTH_DAY:1,MASK_YEAR_MONTH:1,MASK_YEAR_DAY:1,MASK_YEAR:1,MASK_FULL_DATE:1}}},GLe=[{label:"Deterministic encryption",value:"DET"},{label:"Format-preserving encryption",value:"FPE"},{label:"FPE_DAY",value:"FPE_DAY"},{label:"FPE_TOKEN",value:"FPE_TOKEN"},{label:"MASK",value:"MASK"},{label:"Order-Preserving encryption",value:"OPE"}],Sha={DET:["NONE","LIKE"],FPE:["ASCII","EASCII","EBCDIC","UNICODE","NUMERIC","NUMERIC_NONSTRICT","NUMERICLP"],FPE_DAY:["NONE"],FPE_TOKEN:["ASCII","EASCII","EBCDIC","UNICODE","NUMERIC","NUMERIC_NONSTRICT","NUMERICLP"],MASK:["MASK_DAY","MASK_DAY_RANDOM","MASK_MONTH","MASK_MONTH_DAY","MASK_YEAR","MASK_YEAR_MONTH","MASK_YEAR_DAY","MASK_FULL_DATE"],OPE:["NONE"]},wha={create_table:t=>`-- CREATE TABLE ${t}.MY_TABLE 
  -- (User_Wallet_Address VARCHAR PRIMARY KEY, User_Subscription VARCHAR) WITH "access-type=public_read";
-- For more information on access_type of table, 
-- please check this link - https://docs.spaceandtime.io/docs/secure-your-table   
CREATE TABLE ${t}.<tableName>
(<columnName> <columnType> <columnProperty> PRIMARY KEY,<columnName> <columnType> <columnProperty>) 
 WITH  "immutable=false,access_type=public_read"`};var Ywe={},a2={},TGe={exports:{}},CGe={exports:{}},Toe={};Object.defineProperty(Toe,"__esModule",{value:!0});Toe.indentString=_ha;Toe.isTabularStyle=Tha;function _ha(t){return t.indentStyle==="tabularLeft"||t.indentStyle==="tabularRight"?" ".repeat(10):t.useTabs?"	":" ".repeat(t.tabWidth)}function Tha(t){return t.indentStyle==="tabularLeft"||t.indentStyle==="tabularRight"}var kGe={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function n(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function r(l,c){for(var u=0;u<c.length;u++){var d=c[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function a(l,c,u){return c&&r(l.prototype,c),u&&r(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}function o(l,c,u){return c in l?Object.defineProperty(l,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[c]=u,l}var s=function(){function l(c){n(this,l),o(this,"params",void 0),o(this,"index",void 0),this.params=c,this.index=0}return a(l,[{key:"get",value:function(u){var d=u.key,h=u.text;return this.params?d?this.params[d]:this.params[this.index++]:h}},{key:"getPositionalParameterIndex",value:function(){return this.index}},{key:"setPositionalParameterIndex",value:function(u){this.index=u}}]),l}();e.default=s,t.exports=e.default})(kGe,kGe.exports);var Cha=kGe.exports,Qrt={},wdn={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.nearley=n()})(en,function(){function e(u,d,h){return this.id=++e.highestId,this.name=u,this.symbols=d,this.postprocess=h,this}e.highestId=0,e.prototype.toString=function(u){var d=typeof u>"u"?this.symbols.map(c).join(" "):this.symbols.slice(0,u).map(c).join(" ")+" ● "+this.symbols.slice(u).map(c).join(" ");return this.name+" → "+d};function n(u,d,h,f){this.rule=u,this.dot=d,this.reference=h,this.data=[],this.wantedBy=f,this.isComplete=this.dot===u.symbols.length}n.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},n.prototype.nextState=function(u){var d=new n(this.rule,this.dot+1,this.reference,this.wantedBy);return d.left=this,d.right=u,d.isComplete&&(d.data=d.build(),d.right=void 0),d},n.prototype.build=function(){var u=[],d=this;do u.push(d.right.data),d=d.left;while(d.left);return u.reverse(),u},n.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,s.fail))};function r(u,d){this.grammar=u,this.index=d,this.states=[],this.wants={},this.scannable=[],this.completed={}}r.prototype.process=function(u){for(var d=this.states,h=this.wants,f=this.completed,p=0;p<d.length;p++){var m=d[p];if(m.isComplete){if(m.finish(),m.data!==s.fail){for(var g=m.wantedBy,v=g.length;v--;){var A=g[v];this.complete(A,m)}if(m.reference===this.index){var y=m.rule.name;(this.completed[y]=this.completed[y]||[]).push(m)}}}else{var y=m.rule.symbols[m.dot];if(typeof y!="string"){this.scannable.push(m);continue}if(h[y]){if(h[y].push(m),f.hasOwnProperty(y))for(var S=f[y],v=0;v<S.length;v++){var x=S[v];this.complete(m,x)}}else h[y]=[m],this.predict(y)}}},r.prototype.predict=function(u){for(var d=this.grammar.byName[u]||[],h=0;h<d.length;h++){var f=d[h],p=this.wants[u],m=new n(f,0,this.index,p);this.states.push(m)}},r.prototype.complete=function(u,d){var h=u.nextState(d);this.states.push(h)};function a(u,d){this.rules=u,this.start=d||this.rules[0].name;var h=this.byName={};this.rules.forEach(function(f){h.hasOwnProperty(f.name)||(h[f.name]=[]),h[f.name].push(f)})}a.fromCompiled=function(f,d){var h=f.Lexer;f.ParserStart&&(d=f.ParserStart,f=f.ParserRules);var f=f.map(function(m){return new e(m.name,m.symbols,m.postprocess)}),p=new a(f,d);return p.lexer=h,p};function o(){this.reset("")}o.prototype.reset=function(u,d){this.buffer=u,this.index=0,this.line=d?d.line:1,this.lastLineBreak=d?-d.col:0},o.prototype.next=function(){if(this.index<this.buffer.length){var u=this.buffer[this.index++];return u===`
`&&(this.line+=1,this.lastLineBreak=this.index),{value:u}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(u,d){var h=this.buffer;if(typeof h=="string"){var f=h.split(`
`).slice(Math.max(0,this.line-5),this.line),p=h.indexOf(`
`,this.index);p===-1&&(p=h.length);var m=this.index-this.lastLineBreak,g=String(this.line).length;return d+=" at line "+this.line+" col "+m+`:

`,d+=f.map(function(A,y){return v(this.line-f.length+y+1,g)+" "+A},this).join(`
`),d+=`
`+v("",g+m)+`^
`,d}else return d+" at index "+(this.index-1);function v(A,y){var S=String(A);return Array(y-S.length+1).join(" ")+S}};function s(u,d,h){if(u instanceof a)var f=u,h=d;else var f=a.fromCompiled(u,d);this.grammar=f,this.options={keepHistory:!1,lexer:f.lexer||new o};for(var p in h||{})this.options[p]=h[p];this.lexer=this.options.lexer,this.lexerState=void 0;var m=new r(f,0);this.table=[m],m.wants[f.start]=[],m.predict(f.start),m.process(),this.current=0}s.fail={},s.prototype.feed=function(u){var d=this.lexer;d.reset(u,this.lexerState);for(var h;;){try{if(h=d.next(),!h)break}catch(C){var g=new r(this.grammar,this.current+1);this.table.push(g);var f=new Error(this.reportLexerError(C));throw f.offset=this.current,f.token=C.token,f}var p=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var m=this.current+1,g=new r(this.grammar,m);this.table.push(g);for(var v=h.text!==void 0?h.text:h.value,A=d.constructor===o?h.value:h,y=p.scannable,S=y.length;S--;){var x=y[S],w=x.rule.symbols[x.dot];if(w.test?w.test(A):w.type?w.type===h.type:w.literal===v){var _=x.nextState({data:A,token:h,isToken:!0,reference:m-1});g.states.push(_)}}if(g.process(),g.states.length===0){var f=new Error(this.reportError(h));throw f.offset=this.current,f.token=h,f}this.options.keepHistory&&(p.lexerState=d.save()),this.current++}return p&&(this.lexerState=d.save()),this.results=this.finish(),this},s.prototype.reportLexerError=function(u){var d,h,f=u.token;return f?(d="input "+JSON.stringify(f.text[0])+" (lexer error)",h=this.lexer.formatError(f,"Syntax error")):(d="input (lexer error)",h=u.message),this.reportErrorCommon(h,d)},s.prototype.reportError=function(u){var d=(u.type?u.type+" token: ":"")+JSON.stringify(u.value!==void 0?u.value:u),h=this.lexer.formatError(u,"Syntax error");return this.reportErrorCommon(h,d)},s.prototype.reportErrorCommon=function(u,d){var h=[];h.push(u);var f=this.table.length-2,p=this.table[f],m=p.states.filter(function(v){var A=v.rule.symbols[v.dot];return A&&typeof A!="string"});if(m.length===0)h.push("Unexpected "+d+`. I did not expect any more input. Here is the state of my parse table:
`),this.displayStateStack(p.states,h);else{h.push("Unexpected "+d+`. Instead, I was expecting to see one of the following:
`);var g=m.map(function(v){return this.buildFirstStateStack(v,[])||[v]},this);g.forEach(function(v){var A=v[0],y=A.rule.symbols[A.dot],S=this.getSymbolDisplay(y);h.push("A "+S+" based on:"),this.displayStateStack(v,h)},this)}return h.push(""),h.join(`
`)},s.prototype.displayStateStack=function(u,d){for(var h,f=0,p=0;p<u.length;p++){var m=u[p],g=m.rule.toString(m.dot);g===h?f++:(f>0&&d.push("    ^ "+f+" more lines identical to this"),f=0,d.push("    "+g)),h=g}},s.prototype.getSymbolDisplay=function(u){return l(u)},s.prototype.buildFirstStateStack=function(u,d){if(d.indexOf(u)!==-1)return null;if(u.wantedBy.length===0)return[u];var h=u.wantedBy[0],f=[u].concat(d),p=this.buildFirstStateStack(h,f);return p===null?null:[u].concat(p)},s.prototype.save=function(){var u=this.table[this.current];return u.lexerState=this.lexerState,u},s.prototype.restore=function(u){var d=u.index;this.current=d,this.table[d]=u,this.table.splice(d+1),this.lexerState=u.lexerState,this.results=this.finish()},s.prototype.rewind=function(u){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[u])},s.prototype.finish=function(){var u=[],d=this.grammar.start,h=this.table[this.table.length-1];return h.states.forEach(function(f){f.rule.name===d&&f.dot===f.rule.symbols.length&&f.reference===0&&f.data!==s.fail&&u.push(f)}),u.map(function(f){return f.data})};function l(u){var d=typeof u;if(d==="string")return u;if(d==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return"character matching "+u;if(u.type)return u.type+" token";if(u.test)return"token matching "+String(u.test);throw new Error("Unknown symbol type: "+u)}}function c(u){var d=typeof u;if(d==="string")return u;if(d==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return u.toString();if(u.type)return"%"+u.type;if(u.test)return"<"+String(u.test)+">";throw new Error("Unknown symbol type: "+u)}}return{Parser:s,Grammar:a,Rule:e}})})(wdn);var kha=wdn.exports,qrt={},Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});Pc.testToken=Pc.isToken=Pc.isReserved=Pc.isLogicalOperator=Pc.createEofToken=Pc.TokenType=Pc.EOF_TOKEN=void 0;var Uc;Pc.TokenType=Uc;(function(t){t.QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",t.IDENTIFIER="IDENTIFIER",t.STRING="STRING",t.VARIABLE="VARIABLE",t.RESERVED_KEYWORD="RESERVED_KEYWORD",t.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",t.RESERVED_PHRASE="RESERVED_PHRASE",t.RESERVED_DEPENDENT_CLAUSE="RESERVED_DEPENDENT_CLAUSE",t.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",t.RESERVED_COMMAND="RESERVED_COMMAND",t.RESERVED_SELECT="RESERVED_SELECT",t.RESERVED_JOIN="RESERVED_JOIN",t.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",t.ARRAY_KEYWORD="ARRAY_KEYWORD",t.CASE="CASE",t.END="END",t.LIMIT="LIMIT",t.BETWEEN="BETWEEN",t.AND="AND",t.OR="OR",t.XOR="XOR",t.OPERATOR="OPERATOR",t.COMMA="COMMA",t.ASTERISK="ASTERISK",t.DOT="DOT",t.OPEN_PAREN="OPEN_PAREN",t.CLOSE_PAREN="CLOSE_PAREN",t.LINE_COMMENT="LINE_COMMENT",t.BLOCK_COMMENT="BLOCK_COMMENT",t.NUMBER="NUMBER",t.NAMED_PARAMETER="NAMED_PARAMETER",t.QUOTED_PARAMETER="QUOTED_PARAMETER",t.NUMBERED_PARAMETER="NUMBERED_PARAMETER",t.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",t.DELIMITER="DELIMITER",t.EOF="EOF"})(Uc||(Pc.TokenType=Uc={}));var _dn=function(e){return{type:Uc.EOF,raw:"«EOF»",text:"«EOF»",start:e}};Pc.createEofToken=_dn;var Rha=_dn(1/0);Pc.EOF_TOKEN=Rha;var uF=function(e){return function(n){return n.type===e.type&&n.text===e.text}};Pc.testToken=uF;var Mha={ARRAY:uF({text:"ARRAY",type:Uc.RESERVED_KEYWORD}),BY:uF({text:"BY",type:Uc.RESERVED_KEYWORD}),SET:uF({text:"SET",type:Uc.RESERVED_COMMAND}),STRUCT:uF({text:"STRUCT",type:Uc.RESERVED_KEYWORD}),WINDOW:uF({text:"WINDOW",type:Uc.RESERVED_COMMAND})};Pc.isToken=Mha;var Nha=function(e){return e===Uc.RESERVED_KEYWORD||e===Uc.RESERVED_FUNCTION_NAME||e===Uc.RESERVED_PHRASE||e===Uc.RESERVED_DEPENDENT_CLAUSE||e===Uc.RESERVED_COMMAND||e===Uc.RESERVED_SELECT||e===Uc.RESERVED_SET_OPERATION||e===Uc.RESERVED_JOIN||e===Uc.ARRAY_KEYWORD||e===Uc.CASE||e===Uc.END||e===Uc.LIMIT||e===Uc.BETWEEN||e===Uc.AND||e===Uc.OR||e===Uc.XOR};Pc.isReserved=Nha;var Iha=function(e){return e===Uc.AND||e===Uc.OR||e===Uc.XOR};Pc.isLogicalOperator=Iha;Object.defineProperty(qrt,"__esModule",{value:!0});qrt.disambiguateTokens=Oha;var Jx=Pc;function FCt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function EP(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?FCt(Object(n),!0).forEach(function(r){Pha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):FCt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Pha(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oha(t){return t.map(Lha).map(Bha).map(Dha).map($ha)}var Lha=function(e,n,r){if((0,Jx.isReserved)(e.type)){var a=Fha(r,n);if(a&&a.text===".")return EP(EP({},e),{},{type:Jx.TokenType.IDENTIFIER,text:e.raw})}return e},Bha=function(e,n,r){if(e.type===Jx.TokenType.RESERVED_FUNCTION_NAME){var a=Jwe(r,n);if(!a||!jha(a))return EP(EP({},e),{},{type:Jx.TokenType.RESERVED_KEYWORD})}return e},Dha=function(e,n,r){if(e.type===Jx.TokenType.IDENTIFIER){var a=Jwe(r,n);if(a&&Tdn(a))return EP(EP({},e),{},{type:Jx.TokenType.ARRAY_IDENTIFIER})}return e},$ha=function(e,n,r){if(e.type===Jx.TokenType.RESERVED_KEYWORD){var a=Jwe(r,n);if(a&&Tdn(a))return EP(EP({},e),{},{type:Jx.TokenType.ARRAY_KEYWORD})}return e},Fha=function(e,n){return Jwe(e,n,-1)},Jwe=function(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=1;e[n+a*r]&&Hha(e[n+a*r]);)a++;return e[n+a*r]},jha=function(e){return e.type===Jx.TokenType.OPEN_PAREN&&e.text==="("},Tdn=function(e){return e.type===Jx.TokenType.OPEN_PAREN&&e.text==="["},Hha=function(e){return e.type===Jx.TokenType.BLOCK_COMMENT||e.type===Jx.TokenType.LINE_COMMENT},RGe={exports:{}},MGe={exports:{}},Zwe={};Object.defineProperty(Zwe,"__esModule",{value:!0});Zwe.lineColFromIndex=Uha;function Uha(t,e){var n=t.slice(0,e).split(/\n/);return{line:n.length,col:n[n.length-1].length+1}}(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Zwe,r=Pc;function a(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function o(u,d){for(var h=0;h<d.length;h++){var f=d[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}function s(u,d,h){return d&&o(u.prototype,d),h&&o(u,h),Object.defineProperty(u,"prototype",{writable:!1}),u}function l(u,d,h){return d in u?Object.defineProperty(u,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[d]=h,u}var c=function(){function u(d){a(this,u),this.tokenize=d,l(this,"index",0),l(this,"tokens",[]),l(this,"input","")}return s(u,[{key:"reset",value:function(h,f){this.input=h,this.index=0,this.tokens=this.tokenize(h)}},{key:"next",value:function(){return this.tokens[this.index++]}},{key:"save",value:function(){}},{key:"formatError",value:function(h){var f=(0,n.lineColFromIndex)(this.input,h.start),p=f.line,m=f.col;return"Parse error at token: ".concat(h.text," at line ").concat(p," column ").concat(m)}},{key:"has",value:function(h){return h in r.TokenType}}]),u}();e.default=c,t.exports=e.default})(MGe,MGe.exports);var Cdn=MGe.exports,dV={};Object.defineProperty(dV,"__esModule",{value:!0});dV.NodeType=void 0;var NGe;dV.NodeType=NGe;(function(t){t.statement="statement",t.clause="clause",t.set_operation="set_operation",t.function_call="function_call",t.array_subscript="array_subscript",t.property_access="property_access",t.parenthesis="parenthesis",t.between_predicate="between_predicate",t.limit_clause="limit_clause",t.all_columns_asterisk="all_columns_asterisk",t.literal="literal",t.identifier="identifier",t.keyword="keyword",t.parameter="parameter",t.operator="operator",t.comma="comma",t.line_comment="line_comment",t.block_comment="block_comment"})(NGe||(dV.NodeType=NGe={}));(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(Cdn),r=dV,a=Pc;function o(N){return N&&N.__esModule?N:{default:N}}function s(N){return u(N)||c(N)||g(N)||l()}function l(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(N){if(typeof Symbol<"u"&&N[Symbol.iterator]!=null||N["@@iterator"]!=null)return Array.from(N)}function u(N){if(Array.isArray(N))return v(N)}function d(N,L){var I=Object.keys(N);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(N);L&&(b=b.filter(function(T){return Object.getOwnPropertyDescriptor(N,T).enumerable})),I.push.apply(I,b)}return I}function h(N){for(var L=1;L<arguments.length;L++){var I=arguments[L]!=null?arguments[L]:{};L%2?d(Object(I),!0).forEach(function(b){f(N,b,I[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(I)):d(Object(I)).forEach(function(b){Object.defineProperty(N,b,Object.getOwnPropertyDescriptor(I,b))})}return N}function f(N,L,I){return L in N?Object.defineProperty(N,L,{value:I,enumerable:!0,configurable:!0,writable:!0}):N[L]=I,N}function p(N,L){return y(N)||A(N,L)||g(N,L)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(N,L){if(N){if(typeof N=="string")return v(N,L);var I=Object.prototype.toString.call(N).slice(8,-1);if(I==="Object"&&N.constructor&&(I=N.constructor.name),I==="Map"||I==="Set")return Array.from(N);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return v(N,L)}}function v(N,L){(L==null||L>N.length)&&(L=N.length);for(var I=0,b=new Array(L);I<L;I++)b[I]=N[I];return b}function A(N,L){var I=N==null?null:typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(I!=null){var b=[],T=!0,M=!1,D,B;try{for(I=I.call(N);!(T=(D=I.next()).done)&&(b.push(D.value),!(L&&b.length===L));T=!0);}catch(j){M=!0,B=j}finally{try{!T&&I.return!=null&&I.return()}finally{if(M)throw B}}return b}}function y(N){if(Array.isArray(N))return N}function S(N){return N[0]}var x=new n.default(function(N){return[]}),w=function(L){var I=p(L,1),b=p(I[0],1),T=b[0];return T},_=function(L){return{type:r.NodeType.keyword,tokenType:L.type,text:L.text,raw:L.raw}},C=function(L,I){return I.length>0?h(h({},L),{},{leadingComments:I}):L},R=function(L,I){return I.length>0?h(h({},L),{},{trailingComments:I}):L},k={Lexer:x,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"main",symbols:["main$ebnf$1"],postprocess:function(L){var I=p(L,1),b=I[0],T=b[b.length-1];return T&&!T.hasSemicolon?T.children.length>0?b:b.slice(0,-1):b}},{name:"statement$subexpression$1",symbols:[x.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[x.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:function(L){var I=p(L,2),b=I[0],T=p(I[1],1),M=T[0];return{type:r.NodeType.statement,children:b,hasSemicolon:M.type===a.TokenType.DELIMITER}}},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:function(L){var I=p(L,2),b=I[0],T=I[1];return[].concat(s(b),s(T))}},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:w},{name:"limit_clause$ebnf$1",symbols:["expression_with_comments"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1","expression_with_comments"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"limit_clause$ebnf$2$subexpression$1$ebnf$1",symbols:["expression"]},{name:"limit_clause$ebnf$2$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$2$subexpression$1$ebnf$1","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"limit_clause$ebnf$2$subexpression$1",symbols:[x.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$2$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$2",symbols:["limit_clause$ebnf$2$subexpression$1"],postprocess:S},{name:"limit_clause$ebnf$2",symbols:[],postprocess:function(){return null}},{name:"limit_clause",symbols:[x.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","limit_clause$ebnf$1","limit_clause$ebnf$2"],postprocess:function(L){var I=p(L,4),b=I[0],T=I[1],M=I[2],D=I[3];if(D){var B=p(D,2);B[0];var j=B[1];return{type:r.NodeType.limit_clause,name:R(_(b),T),offset:M,count:j}}else return{type:r.NodeType.limit_clause,name:R(_(b),T),count:M}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"select_clause$subexpression$1",symbols:["asteriskless_expression","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[x.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:function(L){var I=p(L,2),b=I[0],T=p(I[1],2),M=T[0],D=T[1];return{type:r.NodeType.clause,name:_(b),children:[M].concat(s(D))}}},{name:"select_clause",symbols:[x.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:function(L){var I=p(L,1),b=I[0];return{type:r.NodeType.clause,name:_(b),children:[]}}},{name:"all_columns_asterisk",symbols:[x.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:function(){return{type:r.NodeType.all_columns_asterisk}}},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"other_clause",symbols:[x.has("RESERVED_COMMAND")?{type:"RESERVED_COMMAND"}:RESERVED_COMMAND,"other_clause$ebnf$1"],postprocess:function(L){var I=p(L,2),b=I[0],T=I[1];return{type:r.NodeType.clause,name:_(b),children:T}}},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"set_operation",symbols:[x.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:function(L){var I=p(L,2),b=I[0],T=I[1];return{type:r.NodeType.set_operation,name:_(b),children:T}}},{name:"expression_with_comments",symbols:["simple_expression","_"],postprocess:function(L){var I=p(L,2),b=I[0],T=I[1];return R(b,T)}},{name:"expression$subexpression$1",symbols:["simple_expression"]},{name:"expression$subexpression$1",symbols:["between_predicate"]},{name:"expression$subexpression$1",symbols:["comma"]},{name:"expression$subexpression$1",symbols:["comment"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:w},{name:"asteriskless_expression$subexpression$1",symbols:["simple_expression_without_asterisk"]},{name:"asteriskless_expression$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_expression$subexpression$1",symbols:["comma"]},{name:"asteriskless_expression$subexpression$1",symbols:["comment"]},{name:"asteriskless_expression",symbols:["asteriskless_expression$subexpression$1"],postprocess:w},{name:"simple_expression$subexpression$1",symbols:["simple_expression_without_asterisk"]},{name:"simple_expression$subexpression$1",symbols:["asterisk"]},{name:"simple_expression",symbols:["simple_expression$subexpression$1"],postprocess:w},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["array_subscript"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["function_call"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["property_access"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["parenthesis"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["curly_braces"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["square_brackets"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["operator"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["identifier"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["parameter"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["literal"]},{name:"simple_expression_without_asterisk$subexpression$1",symbols:["keyword"]},{name:"simple_expression_without_asterisk",symbols:["simple_expression_without_asterisk$subexpression$1"],postprocess:w},{name:"array_subscript",symbols:[x.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:function(L){var I=p(L,3),b=I[0],T=I[1],M=I[2];return{type:r.NodeType.array_subscript,array:R({type:r.NodeType.identifier,text:b.text},T),parenthesis:M}}},{name:"array_subscript",symbols:[x.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:function(L){var I=p(L,3),b=I[0],T=I[1],M=I[2];return{type:r.NodeType.array_subscript,array:R(_(b),T),parenthesis:M}}},{name:"function_call",symbols:[x.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:function(L){var I=p(L,3),b=I[0],T=I[1],M=I[2];return{type:r.NodeType.function_call,name:R(_(b),T),parenthesis:M}}},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:function(L){var I=p(L,3);I[0];var b=I[1];return I[2],{type:r.NodeType.parenthesis,children:b,openParen:"(",closeParen:")"}}},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:function(L){var I=p(L,3);I[0];var b=I[1];return I[2],{type:r.NodeType.parenthesis,children:b,openParen:"{",closeParen:"}"}}},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","expression"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:function(L){var I=p(L,3);I[0];var b=I[1];return I[2],{type:r.NodeType.parenthesis,children:b,openParen:"[",closeParen:"]"}}},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access",symbols:["simple_expression","_",x.has("DOT")?{type:"DOT"}:DOT,"_","property_access$subexpression$1"],postprocess:function(L){var I=p(L,5),b=I[0],T=I[1];I[2];var M=I[3],D=p(I[4],1),B=D[0];return{type:r.NodeType.property_access,object:R(b,T),property:C(B,M)}}},{name:"between_predicate",symbols:[x.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","simple_expression","_",x.has("AND")?{type:"AND"}:AND,"_","simple_expression"],postprocess:function(L){var I=p(L,7),b=I[0],T=I[1],M=I[2],D=I[3],B=I[4],j=I[5],H=I[6];return{type:r.NodeType.between_predicate,between:_(b),expr1:[R(C(M,T),D)],and:_(B),expr2:[C(H,j)]}}},{name:"comma$subexpression$1",symbols:[x.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:function(L){var I=p(L,1),b=p(I[0],1);return b[0],{type:r.NodeType.comma}}},{name:"asterisk$subexpression$1",symbols:[x.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:function(L){var I=p(L,1),b=p(I[0],1),T=b[0];return{type:r.NodeType.operator,text:T.text}}},{name:"operator$subexpression$1",symbols:[x.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:function(L){var I=p(L,1),b=p(I[0],1),T=b[0];return{type:r.NodeType.operator,text:T.text}}},{name:"identifier$subexpression$1",symbols:[x.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[x.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[x.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:function(L){var I=p(L,1),b=p(I[0],1),T=b[0];return{type:r.NodeType.identifier,text:T.text}}},{name:"parameter$subexpression$1",symbols:[x.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[x.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[x.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[x.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:function(L){var I=p(L,1),b=p(I[0],1),T=b[0];return{type:r.NodeType.parameter,key:T.key,text:T.text}}},{name:"literal$subexpression$1",symbols:[x.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[x.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:function(L){var I=p(L,1),b=p(I[0],1),T=b[0];return{type:r.NodeType.literal,text:T.text}}},{name:"keyword$subexpression$1",symbols:[x.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[x.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[x.has("RESERVED_DEPENDENT_CLAUSE")?{type:"RESERVED_DEPENDENT_CLAUSE"}:RESERVED_DEPENDENT_CLAUSE]},{name:"keyword$subexpression$1",symbols:[x.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword$subexpression$1",symbols:[x.has("CASE")?{type:"CASE"}:CASE]},{name:"keyword$subexpression$1",symbols:[x.has("END")?{type:"END"}:END]},{name:"keyword$subexpression$1",symbols:[x.has("AND")?{type:"AND"}:AND]},{name:"keyword$subexpression$1",symbols:[x.has("OR")?{type:"OR"}:OR]},{name:"keyword$subexpression$1",symbols:[x.has("XOR")?{type:"XOR"}:XOR]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:function(L){var I=p(L,1),b=p(I[0],1),T=b[0];return _(T)}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:function(L){return L[0].concat([L[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(L){var I=p(L,1),b=I[0];return b}},{name:"comment",symbols:[x.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:function(L){var I=p(L,1),b=I[0];return{type:r.NodeType.line_comment,text:b.text,precedingWhitespace:b.precedingWhitespace}}},{name:"comment",symbols:[x.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:function(L){var I=p(L,1),b=I[0];return{type:r.NodeType.block_comment,text:b.text}}}],ParserStart:"main"},P=k;e.default=P,t.exports=e.default})(RGe,RGe.exports);var zha=RGe.exports;Object.defineProperty(Qrt,"__esModule",{value:!0});Qrt.createParser=Xha;var jCt=kha,Gha=qrt,Vha=kdn(zha),Kha=kdn(Cdn),Wha=Pc;function kdn(t){return t&&t.__esModule?t:{default:t}}function Qha(t){return Zha(t)||Jha(t)||Yha(t)||qha()}function qha(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yha(t,e){if(t){if(typeof t=="string")return IGe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IGe(t,e)}}function Jha(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Zha(t){if(Array.isArray(t))return IGe(t)}function IGe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xha(t){var e={},n=new Kha.default(function(a){return[].concat(Qha((0,Gha.disambiguateTokens)(t.tokenize(a,e))),[(0,Wha.createEofToken)(a.length)])}),r=new jCt.Parser(jCt.Grammar.fromCompiled(Vha.default),{lexer:n});return{parse:function(o,s){e=s;var l=r.feed(o),c=l.results;if(c.length===1)return c[0];throw c.length===0?new Error("Parse error: Invalid SQL"):new Error("Parse error: Ambiguous grammar")}}}var PGe={exports:{}},Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.sum=Ua.sortByLengthDesc=Ua.maxLength=Ua.last=Ua.flatKeywordList=Ua.equalizeWhitespace=Ua.dedupe=void 0;function efa(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Rdn(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function tfa(t){return ifa(t)||rfa(t)||Rdn(t)||nfa()}function nfa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rdn(t,e){if(t){if(typeof t=="string")return OGe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OGe(t,e)}}function rfa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ifa(t){if(Array.isArray(t))return OGe(t)}function OGe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Mdn=function(e){return tfa(new Set(e))};Ua.dedupe=Mdn;var afa=function(e){return e[e.length-1]};Ua.last=afa;var ofa=function(e){return e.sort(function(n,r){return r.length-n.length||n.localeCompare(r)})};Ua.sortByLengthDesc=ofa;var sfa=function(e){return e.reduce(function(n,r){return Math.max(n,r.length)},0)};Ua.maxLength=sfa;var lfa=function(e){return e.replace(/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+/g," ")};Ua.equalizeWhitespace=lfa;var cfa=function(e){var n=0,r=efa(e),a;try{for(r.s();!(a=r.n()).done;){var o=a.value;n+=o}}catch(s){r.e(s)}finally{r.f()}return n};Ua.sum=cfa;var ufa=function(e){return Mdn(Object.values(e).flat())};Ua.flatKeywordList=ufa;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var n=Ua;function r(v,A){return c(v)||l(v,A)||o(v,A)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(v,A){if(v){if(typeof v=="string")return s(v,A);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return s(v,A)}}function s(v,A){(A==null||A>v.length)&&(A=v.length);for(var y=0,S=new Array(A);y<A;y++)S[y]=v[y];return S}function l(v,A){var y=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(y!=null){var S=[],x=!0,w=!1,_,C;try{for(y=y.call(v);!(x=(_=y.next()).done)&&(S.push(_.value),!(A&&S.length===A));x=!0);}catch(R){w=!0,C=R}finally{try{!x&&y.return!=null&&y.return()}finally{if(w)throw C}}return S}}function c(v){if(Array.isArray(v))return v}var u=/^[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+/;function d(v,A,y){return h(v.split(`
`)).flatMap(function(S){if(S.length===1)return S;if(A==="tabular")return f(S);if(A==="before")return p(S,y);throw new Error("Unexpected commaPosition: ".concat(A))}).join(`
`)}function h(v){for(var A=[],y=0;y<v.length;y++){for(var S=[v[y]];v[y].match(/.*,$/);)y++,S.push(v[y]);A.push(S)}return A}function f(v){var A=(0,n.maxLength)(v);return g(v).map(function(y,S){return S===v.length-1?y:y+" ".repeat(A-y.length-1)+","})}function p(v,A){return g(v).map(function(y,S){if(S===0)return y;var x=y.match(u)||[""],w=r(x,1),_=w[0];return m(_,A)+A.replace(/ {2}$/,", ")+y.trimStart()})}function m(v,A){return v.replace(new RegExp(A+"$"),"")}function g(v){return v.map(function(A){return A.replace(/,$/,"")})}t.exports=e.default})(PGe,PGe.exports);var dfa=PGe.exports,LGe={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var n=Ua;function r(d){return l(d)||s(d)||o(d)||a()}function a(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(d,h){if(d){if(typeof d=="string")return c(d,h);var f=Object.prototype.toString.call(d).slice(8,-1);if(f==="Object"&&d.constructor&&(f=d.constructor.name),f==="Map"||f==="Set")return Array.from(d);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return c(d,h)}}function s(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function l(d){if(Array.isArray(d))return c(d)}function c(d,h){(h==null||h>d.length)&&(h=d.length);for(var f=0,p=new Array(h);f<h;f++)p[f]=d[f];return p}function u(d){for(var h=d.split(`
`),f=[],p=0;p<h.length;p++){if(h[p].match(/^\s*SELECT/i)){var m=function(){var g=[];if(h[p].match(/.*,$/))g=[h[p]];else{if(f.push(h[p]),h[p].match(/^\s*SELECT\s+.+(?!,$)/i))return"continue";g.push(h[++p])}for(;h[p++].match(/.*,$/);)g.push(h[p]);var v=g.map(function(y){return{line:y,matches:y.match(/(^.*?\S) (AS )?(\S+,?$)/i)}}).map(function(y){var S=y.line,x=y.matches;return x?{precedingText:x[1],as:x[2],alias:x[3]}:{precedingText:S}}),A=(0,n.maxLength)(v.map(function(y){var S=y.precedingText;return S.replace(/\s*,\s*$/,"")}));g=v.map(function(y){var S=y.precedingText,x=y.as,w=y.alias;return S+(w?" ".repeat(A-S.length+1)+(x??"")+w:"")}),f=[].concat(r(f),r(g))}();if(m==="continue")continue}f.push(h[p])}return f.join(`
`)}t.exports=e.default})(LGe,LGe.exports);var hfa=LGe.exports,BGe={exports:{}},Xwe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.WS=void 0;var e=Ua;function n(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function r(d,h){for(var f=0;f<h.length;f++){var p=h[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}function a(d,h,f){return h&&r(d.prototype,h),f&&r(d,f),Object.defineProperty(d,"prototype",{writable:!1}),d}function o(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}var s;t.WS=s,function(d){d[d.SPACE=0]="SPACE",d[d.NO_SPACE=1]="NO_SPACE",d[d.NO_NEWLINE=2]="NO_NEWLINE",d[d.NEWLINE=3]="NEWLINE",d[d.MANDATORY_NEWLINE=4]="MANDATORY_NEWLINE",d[d.INDENT=5]="INDENT",d[d.SINGLE_INDENT=6]="SINGLE_INDENT"}(s||(t.WS=s={}));var l=function(){function d(h){n(this,d),this.indentation=h,o(this,"items",[])}return a(d,[{key:"add",value:function(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];for(var g=0,v=p;g<v.length;g++){var A=v[g];switch(A){case s.SPACE:this.items.push(s.SPACE);break;case s.NO_SPACE:this.trimHorizontalWhitespace();break;case s.NO_NEWLINE:this.trimWhitespace();break;case s.NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(s.NEWLINE);break;case s.MANDATORY_NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(s.MANDATORY_NEWLINE);break;case s.INDENT:this.addIndentation();break;case s.SINGLE_INDENT:this.items.push(s.SINGLE_INDENT);break;default:this.items.push(A)}}}},{key:"trimHorizontalWhitespace",value:function(){for(;c((0,e.last)(this.items));)this.items.pop()}},{key:"trimWhitespace",value:function(){for(;u((0,e.last)(this.items));)this.items.pop()}},{key:"addNewline",value:function(f){if(this.items.length>0)switch((0,e.last)(this.items)){case s.NEWLINE:this.items.pop(),this.items.push(f);break;case s.MANDATORY_NEWLINE:break;default:this.items.push(f);break}}},{key:"addIndentation",value:function(){for(var f=0;f<this.indentation.getLevel();f++)this.items.push(s.SINGLE_INDENT)}},{key:"toString",value:function(){var f=this;return this.items.map(function(p){return f.itemToString(p)}).join("")}},{key:"getLayoutItems",value:function(){return this.items}},{key:"itemToString",value:function(f){switch(f){case s.SPACE:return" ";case s.NEWLINE:case s.MANDATORY_NEWLINE:return`
`;case s.SINGLE_INDENT:return this.indentation.getSingleIndent();default:return f}}}]),d}();t.default=l;var c=function(h){return h===s.SPACE||h===s.SINGLE_INDENT},u=function(h){return h===s.SPACE||h===s.SINGLE_INDENT||h===s.NEWLINE}})(Xwe);var Ndn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h,t.isTabularToken=f;var e=Pc;function n(p){return a(p)||u(p)||l(p)||r()}function r(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(p){if(Array.isArray(p))return c(p)}function o(p){return d(p)||u(p)||l(p)||s()}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(p,m){if(p){if(typeof p=="string")return c(p,m);var g=Object.prototype.toString.call(p).slice(8,-1);if(g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set")return Array.from(p);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return c(p,m)}}function c(p,m){(m==null||m>p.length)&&(m=p.length);for(var g=0,v=new Array(m);g<m;g++)v[g]=p[g];return v}function u(p){if(typeof Symbol<"u"&&p[Symbol.iterator]!=null||p["@@iterator"]!=null)return Array.from(p)}function d(p){if(Array.isArray(p))return p}function h(p,m){if(m==="standard")return p;var g=[];if(p.length>=10&&p.includes(" ")){var v=p.split(" "),A=o(v);p=A[0],g=A.slice(1)}return m==="tabularLeft"?p=p.padEnd(9," "):p=p.padStart(9," "),p+[""].concat(n(g)).join(" ")}function f(p){return(0,e.isLogicalOperator)(p)||p===e.TokenType.RESERVED_DEPENDENT_CLAUSE||p===e.TokenType.RESERVED_COMMAND||p===e.TokenType.RESERVED_SELECT||p===e.TokenType.RESERVED_SET_OPERATION||p===e.TokenType.RESERVED_JOIN||p===e.TokenType.LIMIT}})(Ndn);var Idn={},DGe={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Ua;function r(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function a(d,h){for(var f=0;f<h.length;f++){var p=h[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}function o(d,h,f){return h&&a(d.prototype,h),f&&a(d,f),Object.defineProperty(d,"prototype",{writable:!1}),d}function s(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}var l="top-level",c="block-level",u=function(){function d(h){r(this,d),this.indent=h,s(this,"indentTypes",[])}return o(d,[{key:"getSingleIndent",value:function(){return this.indent}},{key:"getIndent",value:function(){return this.indent.repeat(this.indentTypes.length)}},{key:"getLevel",value:function(){return this.indentTypes.length}},{key:"increaseTopLevel",value:function(){this.indentTypes.push(l)}},{key:"increaseBlockLevel",value:function(){this.indentTypes.push(c)}},{key:"decreaseTopLevel",value:function(){this.indentTypes.length>0&&(0,n.last)(this.indentTypes)===l&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0;){var f=this.indentTypes.pop();if(f!==l)break}}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}]),d}();e.default=u,t.exports=e.default})(DGe,DGe.exports);var Pdn=DGe.exports;(function(t){function e(k){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},e(k)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InlineLayoutError=void 0;var n=s(Pdn),r=o(Xwe);function a(k){if(typeof WeakMap!="function")return null;var P=new WeakMap,N=new WeakMap;return(a=function(I){return I?N:P})(k)}function o(k,P){if(!P&&k&&k.__esModule)return k;if(k===null||e(k)!=="object"&&typeof k!="function")return{default:k};var N=a(P);if(N&&N.has(k))return N.get(k);var L={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in k)if(b!=="default"&&Object.prototype.hasOwnProperty.call(k,b)){var T=I?Object.getOwnPropertyDescriptor(k,b):null;T&&(T.get||T.set)?Object.defineProperty(L,b,T):L[b]=k[b]}return L.default=k,N&&N.set(k,L),L}function s(k){return k&&k.__esModule?k:{default:k}}function l(k){var P=typeof Map=="function"?new Map:void 0;return l=function(L){if(L===null||!u(L))return L;if(typeof L!="function")throw new TypeError("Super expression must either be null or a function");if(typeof P<"u"){if(P.has(L))return P.get(L);P.set(L,I)}function I(){return c(L,arguments,w(this).constructor)}return I.prototype=Object.create(L.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),v(I,L)},l(k)}function c(k,P,N){return x()?c=Reflect.construct.bind():c=function(I,b,T){var M=[null];M.push.apply(M,b);var D=Function.bind.apply(I,M),B=new D;return T&&v(B,T.prototype),B},c.apply(null,arguments)}function u(k){return Function.toString.call(k).indexOf("[native code]")!==-1}function d(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function h(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function f(k,P,N){return P&&h(k.prototype,P),N&&h(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function p(){return typeof Reflect<"u"&&Reflect.get?p=Reflect.get.bind():p=function(P,N,L){var I=m(P,N);if(I){var b=Object.getOwnPropertyDescriptor(I,N);return b.get?b.get.call(arguments.length<3?P:L):b.value}},p.apply(this,arguments)}function m(k,P){for(;!Object.prototype.hasOwnProperty.call(k,P)&&(k=w(k),k!==null););return k}function g(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&v(k,P)}function v(k,P){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},v(k,P)}function A(k){var P=x();return function(){var L=w(k),I;if(P){var b=w(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return y(this,I)}}function y(k,P){if(P&&(e(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(k)}function S(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w(k){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},w(k)}function _(k,P,N){return P in k?Object.defineProperty(k,P,{value:N,enumerable:!0,configurable:!0,writable:!0}):k[P]=N,k}var C=function(k){g(N,k);var P=A(N);function N(L){var I;return d(this,N),I=P.call(this,new n.default("")),I.expressionWidth=L,_(S(I),"length",0),_(S(I),"trailingSpace",!1),I}return f(N,[{key:"add",value:function(){for(var I=this,b,T=arguments.length,M=new Array(T),D=0;D<T;D++)M[D]=arguments[D];if(M.forEach(function(B){return I.addToLength(B)}),this.length>this.expressionWidth)throw new R;(b=p(w(N.prototype),"add",this)).call.apply(b,[this].concat(M))}},{key:"addToLength",value:function(I){if(typeof I=="string")this.length+=I.length,this.trailingSpace=!1;else{if(I===r.WS.MANDATORY_NEWLINE||I===r.WS.NEWLINE)throw new R;I===r.WS.INDENT||I===r.WS.SINGLE_INDENT||I===r.WS.SPACE?this.trailingSpace||(this.length++,this.trailingSpace=!0):(I===r.WS.NO_NEWLINE||I===r.WS.NO_SPACE)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}}]),N}(r.default);t.default=C;var R=function(k){g(N,k);var P=A(N);function N(){return d(this,N),P.apply(this,arguments)}return f(N)}(l(Error));t.InlineLayoutError=R})(Idn);(function(t,e){function n(C){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},n(C)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Ua,a=Toe,o=Pc,s=dV,l=Xwe,c=h(Ndn),u=h(Idn);function d(C){if(typeof WeakMap!="function")return null;var R=new WeakMap,k=new WeakMap;return(d=function(N){return N?k:R})(C)}function h(C,R){if(!R&&C&&C.__esModule)return C;if(C===null||n(C)!=="object"&&typeof C!="function")return{default:C};var k=d(R);if(k&&k.has(C))return k.get(C);var P={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in C)if(L!=="default"&&Object.prototype.hasOwnProperty.call(C,L)){var I=N?Object.getOwnPropertyDescriptor(C,L):null;I&&(I.get||I.set)?Object.defineProperty(P,L,I):P[L]=C[L]}return P.default=C,k&&k.set(C,P),P}function f(C){return v(C)||g(C)||m(C)||p()}function p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(C,R){if(C){if(typeof C=="string")return A(C,R);var k=Object.prototype.toString.call(C).slice(8,-1);if(k==="Object"&&C.constructor&&(k=C.constructor.name),k==="Map"||k==="Set")return Array.from(C);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return A(C,R)}}function g(C){if(typeof Symbol<"u"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}function v(C){if(Array.isArray(C))return A(C)}function A(C,R){(R==null||R>C.length)&&(R=C.length);for(var k=0,P=new Array(R);k<R;k++)P[k]=C[k];return P}function y(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}function S(C,R){for(var k=0;k<R.length;k++){var P=R[k];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}function x(C,R,k){return R&&S(C.prototype,R),k&&S(C,k),Object.defineProperty(C,"prototype",{writable:!1}),C}function w(C,R,k){return R in C?Object.defineProperty(C,R,{value:k,enumerable:!0,configurable:!0,writable:!0}):C[R]=k,C}var _=function(){function C(R){var k=R.cfg,P=R.params,N=R.layout,L=R.inline,I=L===void 0?!1:L;y(this,C),w(this,"cfg",void 0),w(this,"params",void 0),w(this,"layout",void 0),w(this,"inline",!1),w(this,"nodes",[]),w(this,"index",-1),this.cfg=k,this.inline=I,this.params=P,this.layout=N}return x(C,[{key:"format",value:function(k){for(this.nodes=k,this.index=0;this.index<this.nodes.length;this.index++)this.formatNode(this.nodes[this.index]);return this.layout}},{key:"formatNode",value:function(k){this.formatComments(k.leadingComments),this.formatNodeWithoutComments(k),this.formatComments(k.trailingComments)}},{key:"formatNodeWithoutComments",value:function(k){switch(k.type){case s.NodeType.function_call:return this.formatFunctionCall(k);case s.NodeType.array_subscript:return this.formatArraySubscript(k);case s.NodeType.property_access:return this.formatPropertyAccess(k);case s.NodeType.parenthesis:return this.formatParenthesis(k);case s.NodeType.between_predicate:return this.formatBetweenPredicate(k);case s.NodeType.clause:return this.formatClause(k);case s.NodeType.set_operation:return this.formatSetOperation(k);case s.NodeType.limit_clause:return this.formatLimitClause(k);case s.NodeType.all_columns_asterisk:return this.formatAllColumnsAsterisk(k);case s.NodeType.literal:return this.formatLiteral(k);case s.NodeType.identifier:return this.formatIdentifier(k);case s.NodeType.parameter:return this.formatParameter(k);case s.NodeType.operator:return this.formatOperator(k);case s.NodeType.comma:return this.formatComma(k);case s.NodeType.line_comment:return this.formatLineComment(k);case s.NodeType.block_comment:return this.formatBlockComment(k);case s.NodeType.keyword:return this.formatKeywordNode(k)}}},{key:"formatFunctionCall",value:function(k){var P=this;this.withComments(k.name,function(){P.layout.add(P.showKw(k.name))}),this.formatNode(k.parenthesis)}},{key:"formatArraySubscript",value:function(k){var P=this;this.withComments(k.array,function(){P.layout.add(k.array.type===s.NodeType.keyword?P.showKw(k.array):k.array.text)}),this.formatNode(k.parenthesis)}},{key:"formatPropertyAccess",value:function(k){this.formatNode(k.object),this.layout.add(l.WS.NO_SPACE,"."),this.formatNode(k.property)}},{key:"formatParenthesis",value:function(k){var P=this.formatInlineExpression(k.children);if(P){var N;this.layout.add(k.openParen),(N=this.layout).add.apply(N,f(P.getLayoutItems())),this.layout.add(l.WS.NO_SPACE,k.closeParen,l.WS.SPACE)}else this.layout.add(k.openParen,l.WS.NEWLINE),(0,a.isTabularStyle)(this.cfg)?(this.layout.add(l.WS.INDENT),this.layout=this.formatSubExpression(k.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(l.WS.INDENT),this.layout=this.formatSubExpression(k.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(l.WS.NEWLINE,l.WS.INDENT,k.closeParen,l.WS.SPACE)}},{key:"formatBetweenPredicate",value:function(k){this.layout.add(this.showKw(k.between),l.WS.SPACE),this.layout=this.formatSubExpression(k.expr1),this.layout.add(l.WS.NO_SPACE,l.WS.SPACE,this.showNonTabularKw(k.and),l.WS.SPACE),this.layout=this.formatSubExpression(k.expr2),this.layout.add(l.WS.SPACE)}},{key:"formatClause",value:function(k){(0,a.isTabularStyle)(this.cfg)?this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k.name),l.WS.SPACE):this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k.name),l.WS.NEWLINE),this.layout.indentation.increaseTopLevel(),(0,a.isTabularStyle)(this.cfg)||this.layout.add(l.WS.INDENT),this.layout=this.formatSubExpression(k.children),this.layout.indentation.decreaseTopLevel()}},{key:"formatSetOperation",value:function(k){this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k.name),l.WS.NEWLINE),this.layout.add(l.WS.INDENT),this.layout=this.formatSubExpression(k.children)}},{key:"formatLimitClause",value:function(k){var P=this;this.withComments(k.name,function(){P.layout.add(l.WS.NEWLINE,l.WS.INDENT,P.showKw(k.name))}),this.layout.indentation.increaseTopLevel(),(0,a.isTabularStyle)(this.cfg)?this.layout.add(l.WS.SPACE):this.layout.add(l.WS.NEWLINE,l.WS.INDENT),k.offset?(this.layout=this.formatSubExpression(k.offset),this.layout.add(l.WS.NO_SPACE,",",l.WS.SPACE),this.layout=this.formatSubExpression(k.count)):this.layout=this.formatSubExpression(k.count),this.layout.indentation.decreaseTopLevel()}},{key:"formatAllColumnsAsterisk",value:function(k){this.layout.add("*",l.WS.SPACE)}},{key:"formatLiteral",value:function(k){this.layout.add(k.text,l.WS.SPACE)}},{key:"formatIdentifier",value:function(k){this.layout.add(k.text,l.WS.SPACE)}},{key:"formatParameter",value:function(k){this.layout.add(this.params.get(k),l.WS.SPACE)}},{key:"formatOperator",value:function(k){var P=k.text;if(P===":"){this.layout.add(l.WS.NO_SPACE,P,l.WS.SPACE);return}else if(P==="::"){this.layout.add(l.WS.NO_SPACE,P);return}else if(P==="@"&&this.cfg.language==="plsql"){this.layout.add(l.WS.NO_SPACE,P);return}this.cfg.denseOperators?this.layout.add(l.WS.NO_SPACE,P):this.layout.add(P,l.WS.SPACE)}},{key:"formatComma",value:function(k){this.inline?this.layout.add(l.WS.NO_SPACE,",",l.WS.SPACE):this.layout.add(l.WS.NO_SPACE,",",l.WS.NEWLINE,l.WS.INDENT)}},{key:"withComments",value:function(k,P){this.formatComments(k.leadingComments),P(),this.formatComments(k.trailingComments)}},{key:"formatComments",value:function(k){var P=this;k&&k.forEach(function(N){N.type===s.NodeType.line_comment?P.formatLineComment(N):P.formatBlockComment(N)})}},{key:"formatLineComment",value:function(k){/\n/.test(k.precedingWhitespace||"")?this.layout.add(l.WS.NEWLINE,l.WS.INDENT,k.text,l.WS.MANDATORY_NEWLINE,l.WS.INDENT):this.layout.add(l.WS.NO_NEWLINE,l.WS.SPACE,k.text,l.WS.MANDATORY_NEWLINE,l.WS.INDENT)}},{key:"formatBlockComment",value:function(k){var P=this;this.splitBlockComment(k.text).forEach(function(N){P.layout.add(l.WS.NEWLINE,l.WS.INDENT,N)}),this.layout.add(l.WS.NEWLINE,l.WS.INDENT)}},{key:"splitBlockComment",value:function(k){return k.split(/\n/).map(function(P){return/^\s*\*/.test(P)?" "+P.replace(/^\s*/,""):P.replace(/^\s*/,"")})}},{key:"formatSubExpression",value:function(k){return new C({cfg:this.cfg,params:this.params,layout:this.layout,inline:this.inline}).format(k)}},{key:"formatInlineExpression",value:function(k){var P=this.params.getPositionalParameterIndex();try{return new C({cfg:this.cfg,params:this.params,layout:new u.default(this.cfg.expressionWidth),inline:!0}).format(k)}catch(N){if(N instanceof u.InlineLayoutError){this.params.setPositionalParameterIndex(P);return}else throw N}}},{key:"formatKeywordNode",value:function(k){switch(k.tokenType){case o.TokenType.RESERVED_JOIN:return this.formatJoin(k);case o.TokenType.RESERVED_DEPENDENT_CLAUSE:return this.formatDependentClause(k);case o.TokenType.AND:case o.TokenType.OR:case o.TokenType.XOR:return this.formatLogicalOperator(k);case o.TokenType.RESERVED_KEYWORD:case o.TokenType.RESERVED_FUNCTION_NAME:case o.TokenType.RESERVED_PHRASE:return this.formatKeyword(k);case o.TokenType.CASE:return this.formatCaseStart(k);case o.TokenType.END:return this.formatCaseEnd(k);default:throw new Error("Unexpected token type: ".concat(k.tokenType))}}},{key:"formatJoin",value:function(k){(0,a.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k),l.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k),l.WS.SPACE)}},{key:"formatKeyword",value:function(k){this.layout.add(this.showKw(k),l.WS.SPACE)}},{key:"formatDependentClause",value:function(k){this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k),l.WS.SPACE)}},{key:"formatLogicalOperator",value:function(k){this.cfg.logicalOperatorNewline==="before"?(0,a.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k),l.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k),l.WS.SPACE):this.layout.add(this.showKw(k),l.WS.NEWLINE,l.WS.INDENT)}},{key:"formatCaseStart",value:function(k){this.layout.indentation.increaseBlockLevel(),this.layout.add(this.showKw(k),l.WS.NEWLINE,l.WS.INDENT)}},{key:"formatCaseEnd",value:function(k){this.formatMultilineBlockEnd(k)}},{key:"formatMultilineBlockEnd",value:function(k){this.layout.indentation.decreaseBlockLevel(),this.layout.add(l.WS.NEWLINE,l.WS.INDENT,this.showKw(k),l.WS.SPACE)}},{key:"showKw",value:function(k){return(0,c.isTabularToken)(k.tokenType)?(0,c.default)(this.showNonTabularKw(k),this.cfg.indentStyle):this.showNonTabularKw(k)}},{key:"showNonTabularKw",value:function(k){switch(this.cfg.keywordCase){case"preserve":return(0,r.equalizeWhitespace)(k.raw);case"upper":return k.text;case"lower":return k.text.toLowerCase()}}}]),C}();e.default=_,t.exports=e.default})(BGe,BGe.exports);var ffa=BGe.exports;(function(t,e){function n(S){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},n(S)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Toe,a=p(Cha),o=Qrt,s=p(dfa),l=p(hfa),c=p(ffa),u=f(Xwe),d=p(Pdn);function h(S){if(typeof WeakMap!="function")return null;var x=new WeakMap,w=new WeakMap;return(h=function(C){return C?w:x})(S)}function f(S,x){if(!x&&S&&S.__esModule)return S;if(S===null||n(S)!=="object"&&typeof S!="function")return{default:S};var w=h(x);if(w&&w.has(S))return w.get(S);var _={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in S)if(R!=="default"&&Object.prototype.hasOwnProperty.call(S,R)){var k=C?Object.getOwnPropertyDescriptor(S,R):null;k&&(k.get||k.set)?Object.defineProperty(_,R,k):_[R]=S[R]}return _.default=S,w&&w.set(S,_),_}function p(S){return S&&S.__esModule?S:{default:S}}function m(S,x){if(!(S instanceof x))throw new TypeError("Cannot call a class as a function")}function g(S,x){for(var w=0;w<x.length;w++){var _=x[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}function v(S,x,w){return x&&g(S.prototype,x),w&&g(S,w),Object.defineProperty(S,"prototype",{writable:!1}),S}function A(S,x,w){return x in S?Object.defineProperty(S,x,{value:w,enumerable:!0,configurable:!0,writable:!0}):S[x]=w,S}var y=function(){function S(x){m(this,S),A(this,"cfg",void 0),A(this,"params",void 0),this.cfg=x,this.params=new a.default(this.cfg.params)}return v(S,[{key:"tokenizer",value:function(){throw new Error("tokenizer() not implemented by subclass")}},{key:"cachedTokenizer",value:function(){var w=this.constructor;return w.cachedTokenizer||(w.cachedTokenizer=this.tokenizer()),w.cachedTokenizer}},{key:"format",value:function(w){var _=this.parse(w),C=this.formatAst(_),R=this.postFormat(C);return R.trimEnd()}},{key:"parse",value:function(w){return(0,o.createParser)(this.cachedTokenizer()).parse(w,this.cfg.paramTypes||{})}},{key:"formatAst",value:function(w){var _=this;return w.map(function(C){return _.formatStatement(C)}).join(`
`.repeat(this.cfg.linesBetweenQueries+1))}},{key:"formatStatement",value:function(w){var _=new c.default({cfg:this.cfg,params:this.params,layout:new u.default(new d.default((0,r.indentString)(this.cfg)))}).format(w.children);return w.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?_.add(u.WS.NEWLINE,";"):_.add(u.WS.NO_NEWLINE,";")),_.toString()}},{key:"postFormat",value:function(w){return this.cfg.tabulateAlias&&(w=(0,l.default)(w)),(this.cfg.commaPosition==="before"||this.cfg.commaPosition==="tabular")&&(w=(0,s.default)(w,this.cfg.commaPosition,(0,r.indentString)(this.cfg))),w}}]),S}();e.default=y,t.exports=e.default})(CGe,CGe.exports);var Nv=CGe.exports,$Ge={exports:{}},ud={},lv={};Object.defineProperty(lv,"__esModule",{value:!0});lv.withDashes=lv.toCaseInsensitivePattern=lv.prefixesPattern=lv.patternToRegex=lv.escapeRegExp=lv.WHITESPACE_REGEX=void 0;var pfa=function(e){return e.replace(/[\$\(-\+\.\?\[-\^\{-\}]/g,"\\$&")};lv.escapeRegExp=pfa;var mfa=new RegExp("[\\t-\\r \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]+","y");lv.WHITESPACE_REGEX=mfa;var gfa=function(e){return new RegExp("(?:".concat(e,")"),"uy")};lv.patternToRegex=gfa;var Odn=function(e){return e.split("").map(function(n){return/ /g.test(n)?"\\s+":"[".concat(n.toUpperCase()).concat(n.toLowerCase(),"]")}).join("")};lv.toCaseInsensitivePattern=Odn;var vfa=function(e){return e+"(?:-"+e+")*"};lv.withDashes=vfa;var Afa=function(e){var n=e.prefixes,r=e.requirePrefix;return"(?:".concat(n.map(Odn).join("|")).concat(r?"":"|",")")};lv.prefixesPattern=Afa;Object.defineProperty(ud,"__esModule",{value:!0});ud.variable=ud.stringPattern=ud.string=ud.reservedWord=ud.quotePatterns=ud.parenthesis=ud.parameter=ud.operator=ud.lineComment=ud.identifierPattern=ud.identifier=void 0;var Ldn=Ua,ig=lv,HCt,UCt,zCt,GCt,VCt,KCt,WCt,QCt,qCt,YCt,JCt,ZCt,XCt,ekt;function IA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function yfa(t,e){return Efa(t)||xfa(t,e)||Bdn(t,e)||bfa()}function bfa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xfa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],a=!0,o=!1,s,l;try{for(n=n.call(t);!(a=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function Efa(t){if(Array.isArray(t))return t}function Sfa(t){return Tfa(t)||_fa(t)||Bdn(t)||wfa()}function wfa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bdn(t,e){if(t){if(typeof t=="string")return FGe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FGe(t,e)}}function _fa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Tfa(t){if(Array.isArray(t))return FGe(t)}function FGe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Cfa=function(e){return new RegExp("(?:".concat(e.map(ig.escapeRegExp).join("|"),`).*?(?=\r
|\r|
|$)`),"uy")};ud.lineComment=Cfa;var kfa=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e==="open"?0:1,a=["()"].concat(Sfa(n)).map(function(o){return o[r]});return(0,ig.patternToRegex)(a.map(ig.escapeRegExp).join("|"))};ud.parenthesis=kfa;var Rfa=function(e){return(0,ig.patternToRegex)("".concat((0,Ldn.sortByLengthDesc)(e).map(ig.escapeRegExp).join("|")))};ud.operator=Rfa;var Mfa=function(e){var n=e.rest,r=e.dashes;return n||r?"(?![".concat(n||"").concat(r?"-":"","])"):""},Nfa=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.length===0)return/^\b$/;var r=Mfa(n),a=(0,Ldn.sortByLengthDesc)(e).join("|").replace(/ /g,"\\s+");return new RegExp("(?:".concat(a,")").concat(r,"\\b"),"iuy")};ud.reservedWord=Nfa;var Ifa=function(e,n){if(e.length){var r=e.map(ig.escapeRegExp).join("|");return(0,ig.patternToRegex)("(?:".concat(r,")(?:").concat(n,")"))}};ud.parameter=Ifa;var Pfa=function(){var e={"<":">","[":"]","(":")","{":"}"},n="{left}(?:(?!{right}').)*?{right}",r=Object.entries(e).map(function(l){var c=yfa(l,2),u=c[0],d=c[1];return n.replace(/{left}/g,(0,ig.escapeRegExp)(u)).replace(/{right}/g,(0,ig.escapeRegExp)(d))}),a=(0,ig.escapeRegExp)(Object.keys(e).join("")),o=String.raw(HCt||(HCt=IA(["(?<tag>[^s","])(?:(?!k<tag>').)*?k<tag>"],["(?<tag>[^\\s","])(?:(?!\\k<tag>').)*?\\k<tag>"])),a),s="[Qq]'(?:".concat(o,"|").concat(r.join("|"),")'");return s},jGe={"``":"(?:`[^`]*`)+","[]":String.raw(UCt||(UCt=IA(["(?:[[^]]*])(?:][^]]*])*"],["(?:\\[[^\\]]*\\])(?:\\][^\\]]*\\])*"]))),'""-qq':String.raw(zCt||(zCt=IA(['(?:"[^"]*")+']))),'""-bs':String.raw(GCt||(GCt=IA(['(?:"[^"\\]*(?:\\.[^"\\]*)*")'],['(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*")']))),'""-qq-bs':String.raw(VCt||(VCt=IA(['(?:"[^"\\]*(?:\\.[^"\\]*)*")+'],['(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*")+']))),'""-raw':String.raw(KCt||(KCt=IA(['(?:"[^"]*")']))),"''-qq":String.raw(WCt||(WCt=IA(["(?:'[^']*')+"]))),"''-bs":String.raw(QCt||(QCt=IA(["(?:'[^'\\]*(?:\\.[^'\\]*)*')"],["(?:'[^'\\\\]*(?:\\\\.[^'\\\\]*)*')"]))),"''-qq-bs":String.raw(qCt||(qCt=IA(["(?:'[^'\\]*(?:\\.[^'\\]*)*')+"],["(?:'[^'\\\\]*(?:\\\\.[^'\\\\]*)*')+"]))),"''-raw":String.raw(YCt||(YCt=IA(["(?:'[^']*')"]))),$$:String.raw(JCt||(JCt=IA(["(?<tag>$w*$)[sS]*?k<tag>"],["(?<tag>\\$\\w*\\$)[\\s\\S]*?\\k<tag>"]))),"'''..'''":String.raw(ZCt||(ZCt=IA(["'''[^\\]*?(?:\\.[^\\]*?)*?'''"],["'''[^\\\\]*?(?:\\\\.[^\\\\]*?)*?'''"]))),'""".."""':String.raw(XCt||(XCt=IA(['"""[^\\]*?(?:\\.[^\\]*?)*?"""'],['"""[^\\\\]*?(?:\\\\.[^\\\\]*?)*?"""']))),"{}":String.raw(ekt||(ekt=IA(["(?:{[^}]*})"],["(?:\\{[^\\}]*\\})"]))),"q''":Pfa()};ud.quotePatterns=jGe;var Ddn=function(e){return typeof e=="string"?jGe[e]:(0,ig.prefixesPattern)(e)+jGe[e.quote]},Ofa=function(e){return(0,ig.patternToRegex)(e.map(function(n){return"regex"in n?n.regex:Ddn(n)}).join("|"))};ud.variable=Ofa;var $dn=function(e){return e.map(Ddn).join("|")};ud.stringPattern=$dn;var Lfa=function(e){return(0,ig.patternToRegex)($dn(e))};ud.string=Lfa;var Bfa=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,ig.patternToRegex)(Fdn(e))};ud.identifier=Bfa;var Fdn=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.first,r=e.rest,a=e.dashes,o=e.allowFirstCharNumber,s="\\p{Alphabetic}\\p{Mark}_",l="\\p{Decimal_Number}",c=(0,ig.escapeRegExp)(n??""),u=(0,ig.escapeRegExp)(r??""),d=o?"[".concat(s).concat(l).concat(c,"][").concat(s).concat(l).concat(u,"]*"):"[".concat(s).concat(c,"][").concat(s).concat(l).concat(u,"]*");return a?(0,ig.withDashes)(d):d};ud.identifierPattern=Fdn;var HGe={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Zwe,r=lv;function a(m,g){var v=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!v){if(Array.isArray(m)||(v=o(m))||g&&m&&typeof m.length=="number"){v&&(m=v);var A=0,y=function(){};return{s:y,n:function(){return A>=m.length?{done:!0}:{done:!1,value:m[A++]}},e:function(C){throw C},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,x=!1,w;return{s:function(){v=v.call(m)},n:function(){var C=v.next();return S=C.done,C},e:function(C){x=!0,w=C},f:function(){try{!S&&v.return!=null&&v.return()}finally{if(x)throw w}}}}function o(m,g){if(m){if(typeof m=="string")return s(m,g);var v=Object.prototype.toString.call(m).slice(8,-1);if(v==="Object"&&m.constructor&&(v=m.constructor.name),v==="Map"||v==="Set")return Array.from(m);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return s(m,g)}}function s(m,g){(g==null||g>m.length)&&(g=m.length);for(var v=0,A=new Array(g);v<g;v++)A[v]=m[v];return A}function l(m,g){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(m);g&&(A=A.filter(function(y){return Object.getOwnPropertyDescriptor(m,y).enumerable})),v.push.apply(v,A)}return v}function c(m){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?l(Object(v),!0).forEach(function(A){f(m,A,v[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(v)):l(Object(v)).forEach(function(A){Object.defineProperty(m,A,Object.getOwnPropertyDescriptor(v,A))})}return m}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){for(var v=0;v<g.length;v++){var A=g[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,A.key,A)}}function h(m,g,v){return g&&d(m.prototype,g),v&&d(m,v),Object.defineProperty(m,"prototype",{writable:!1}),m}function f(m,g,v){return g in m?Object.defineProperty(m,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[g]=v,m}var p=function(){function m(g){u(this,m),this.rules=g,f(this,"input",""),f(this,"index",0)}return h(m,[{key:"tokenize",value:function(v){this.input=v,this.index=0;for(var A=[],y;this.index<this.input.length;){var S=this.getWhitespace();if(this.index<this.input.length){if(y=this.getNextToken(),!y)throw this.createParseError();A.push(c(c({},y),{},{precedingWhitespace:S}))}}return A}},{key:"createParseError",value:function(){var v=this.input.slice(this.index,this.index+10),A=(0,n.lineColFromIndex)(this.input,this.index),y=A.line,S=A.col;return new Error('Parse error: Unexpected "'.concat(v,'" at line ').concat(y," column ").concat(S))}},{key:"getWhitespace",value:function(){r.WHITESPACE_REGEX.lastIndex=this.index;var v=r.WHITESPACE_REGEX.exec(this.input);if(v)return this.index+=v[0].length,v[0]}},{key:"getNextToken",value:function(){var v=a(this.rules),A;try{for(v.s();!(A=v.n()).done;){var y=A.value,S=this.match(y);if(S)return S}}catch(x){v.e(x)}finally{v.f()}}},{key:"match",value:function(v){v.regex.lastIndex=this.index;var A=v.regex.exec(this.input);if(A){var y=A[0],S={type:v.type,raw:y,text:v.text?v.text(y):y,start:this.index};return v.key&&(S.key=v.key(y)),this.index+=y.length,S}}}]),m}();e.default=p,t.exports=e.default})(HGe,HGe.exports);var Dfa=HGe.exports,e_e={};Object.defineProperty(e_e,"__esModule",{value:!0});e_e.NestedComment=void 0;function $fa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tkt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ffa(t,e,n){return e&&tkt(t.prototype,e),n&&tkt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function jfa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nkt=new RegExp("\\/\\*","y"),Hfa=new RegExp("((?:(?![\\*\\/])[\\s\\S])|\\*(?:(?!\\/)[\\s\\S])|\\/(?:(?!\\*)[\\s\\S]))+","y"),Ufa=new RegExp("\\*\\/","y"),zfa=function(){function t(){$fa(this,t),jfa(this,"lastIndex",0)}return Ffa(t,[{key:"exec",value:function(n){var r="",a,o=0;if(a=this.matchSection(nkt,n))r+=a,o++;else return null;for(;o>0;)if(a=this.matchSection(nkt,n))r+=a,o++;else if(a=this.matchSection(Ufa,n))r+=a,o--;else if(a=this.matchSection(Hfa,n))r+=a;else return null;return[r]}},{key:"matchSection",value:function(n,r){n.lastIndex=this.lastIndex;var a=n.exec(r);return a&&(this.lastIndex+=a[0].length),a?a[0]:null}}]),t}();e_e.NestedComment=zfa;(function(t,e){function n(R){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},n(R)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Pc,a=h(ud),o=u(Dfa),s=lv,l=Ua,c=e_e;function u(R){return R&&R.__esModule?R:{default:R}}function d(R){if(typeof WeakMap!="function")return null;var k=new WeakMap,P=new WeakMap;return(d=function(L){return L?P:k})(R)}function h(R,k){if(!k&&R&&R.__esModule)return R;if(R===null||n(R)!=="object"&&typeof R!="function")return{default:R};var P=d(k);if(P&&P.has(R))return P.get(R);var N={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in R)if(I!=="default"&&Object.prototype.hasOwnProperty.call(R,I)){var b=L?Object.getOwnPropertyDescriptor(R,I):null;b&&(b.get||b.set)?Object.defineProperty(N,I,b):N[I]=R[I]}return N.default=R,P&&P.set(R,N),N}function f(R){return v(R)||g(R)||m(R)||p()}function p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(R,k){if(R){if(typeof R=="string")return A(R,k);var P=Object.prototype.toString.call(R).slice(8,-1);if(P==="Object"&&R.constructor&&(P=R.constructor.name),P==="Map"||P==="Set")return Array.from(R);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return A(R,k)}}function g(R){if(typeof Symbol<"u"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function v(R){if(Array.isArray(R))return A(R)}function A(R,k){(k==null||k>R.length)&&(k=R.length);for(var P=0,N=new Array(k);P<k;P++)N[P]=R[P];return N}function y(R,k){if(!(R instanceof k))throw new TypeError("Cannot call a class as a function")}function S(R,k){for(var P=0;P<k.length;P++){var N=k[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(R,N.key,N)}}function x(R,k,P){return k&&S(R.prototype,k),P&&S(R,P),Object.defineProperty(R,"prototype",{writable:!1}),R}function w(R,k,P){return k in R?Object.defineProperty(R,k,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[k]=P,R}var _=function(){function R(k){y(this,R),this.cfg=k,w(this,"rulesBeforeParams",void 0),w(this,"rulesAfterParams",void 0),this.rulesBeforeParams=this.buildRulesBeforeParams(k),this.rulesAfterParams=this.buildRulesAfterParams(k)}return x(R,[{key:"tokenize",value:function(P,N){var L=[].concat(f(this.rulesBeforeParams),f(this.buildParamRules(this.cfg,N)),f(this.rulesAfterParams)),I=new o.default(L).tokenize(P);return this.cfg.postProcess?this.cfg.postProcess(I):I}},{key:"buildRulesBeforeParams",value:function(P){var N,L;return this.validRules([{type:r.TokenType.BLOCK_COMMENT,regex:P.nestedBlockComments?new c.NestedComment:new RegExp("(\\/\\*(?:(?![])[\\s\\S])*?\\*\\/)","y")},{type:r.TokenType.LINE_COMMENT,regex:a.lineComment((N=P.lineCommentTypes)!==null&&N!==void 0?N:["--"])},{type:r.TokenType.QUOTED_IDENTIFIER,regex:a.string(P.identTypes)},{type:r.TokenType.NUMBER,regex:new RegExp("(?:0x[0-9A-Fa-f]+|0b[01]+|(?:\\x2D[\\t-\\r \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]*)?[0-9]+(?:\\.[0-9]*)?(?:[Ee][\\+\\x2D]?[0-9]+(?:\\.[0-9]+)?)?)(?![0-9A-Z_a-z])","y")},{type:r.TokenType.RESERVED_PHRASE,regex:a.reservedWord((L=P.reservedPhrases)!==null&&L!==void 0?L:[],P.identChars),text:C},{type:r.TokenType.CASE,regex:new RegExp("CA[S\\u017F]E\\b","iy"),text:C},{type:r.TokenType.END,regex:new RegExp("END\\b","iy"),text:C},{type:r.TokenType.BETWEEN,regex:new RegExp("BETWEEN\\b","iy"),text:C},{type:r.TokenType.LIMIT,regex:P.reservedCommands.includes("LIMIT")?new RegExp("LIMIT\\b","iy"):void 0,text:C},{type:r.TokenType.RESERVED_COMMAND,regex:a.reservedWord(P.reservedCommands,P.identChars),text:C},{type:r.TokenType.RESERVED_SELECT,regex:a.reservedWord(P.reservedSelect,P.identChars),text:C},{type:r.TokenType.RESERVED_SET_OPERATION,regex:a.reservedWord(P.reservedSetOperations,P.identChars),text:C},{type:r.TokenType.RESERVED_DEPENDENT_CLAUSE,regex:a.reservedWord(P.reservedDependentClauses,P.identChars),text:C},{type:r.TokenType.RESERVED_JOIN,regex:a.reservedWord(P.reservedJoins,P.identChars),text:C},{type:r.TokenType.AND,regex:new RegExp("AND\\b","iy"),text:C},{type:r.TokenType.OR,regex:new RegExp("OR\\b","iy"),text:C},{type:r.TokenType.XOR,regex:P.supportsXor?new RegExp("XOR\\b","iy"):void 0,text:C},{type:r.TokenType.RESERVED_FUNCTION_NAME,regex:a.reservedWord(P.reservedFunctionNames,P.identChars),text:C},{type:r.TokenType.RESERVED_KEYWORD,regex:a.reservedWord(P.reservedKeywords,P.identChars),text:C}])}},{key:"buildRulesAfterParams",value:function(P){var N;return this.validRules([{type:r.TokenType.VARIABLE,regex:P.variableTypes?a.variable(P.variableTypes):void 0},{type:r.TokenType.STRING,regex:a.string(P.stringTypes)},{type:r.TokenType.IDENTIFIER,regex:a.identifier(P.identChars)},{type:r.TokenType.DELIMITER,regex:new RegExp(";","y")},{type:r.TokenType.COMMA,regex:new RegExp("[,]","y")},{type:r.TokenType.OPEN_PAREN,regex:a.parenthesis("open",P.extraParens)},{type:r.TokenType.CLOSE_PAREN,regex:a.parenthesis("close",P.extraParens)},{type:r.TokenType.OPERATOR,regex:a.operator(["+","-","/",">","<","=","<>","<=",">=","!="].concat(f((N=P.operators)!==null&&N!==void 0?N:[])))},{type:r.TokenType.ASTERISK,regex:new RegExp("\\*","y")},{type:r.TokenType.DOT,regex:new RegExp("\\.","y")}])}},{key:"buildParamRules",value:function(P,N){var L,I,b,T,M={named:(N==null?void 0:N.named)||((L=P.paramTypes)===null||L===void 0?void 0:L.named)||[],quoted:(N==null?void 0:N.quoted)||((I=P.paramTypes)===null||I===void 0?void 0:I.quoted)||[],numbered:(N==null?void 0:N.numbered)||((b=P.paramTypes)===null||b===void 0?void 0:b.numbered)||[],positional:typeof(N==null?void 0:N.positional)=="boolean"?N.positional:(T=P.paramTypes)===null||T===void 0?void 0:T.positional};return this.validRules([{type:r.TokenType.NAMED_PARAMETER,regex:a.parameter(M.named,a.identifierPattern(P.paramChars||P.identChars)),key:function(B){return B.slice(1)}},{type:r.TokenType.QUOTED_PARAMETER,regex:a.parameter(M.quoted,a.stringPattern(P.identTypes)),key:function(B){return function(j){var H=j.tokenKey,U=j.quoteChar;return H.replace(new RegExp((0,s.escapeRegExp)("\\"+U),"gu"),U)}({tokenKey:B.slice(2,-1),quoteChar:B.slice(-1)})}},{type:r.TokenType.NUMBERED_PARAMETER,regex:a.parameter(M.numbered,"[0-9]+"),key:function(B){return B.slice(1)}},{type:r.TokenType.POSITIONAL_PARAMETER,regex:M.positional?new RegExp("[?]","y"):void 0}])}},{key:"validRules",value:function(P){return P.filter(function(N){return!!N.regex})}}]),R}();e.default=_;var C=function(k){return(0,l.equalizeWhitespace)(k.toUpperCase())};t.exports=e.default})($Ge,$Ge.exports);var Iv=$Ge.exports,Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});Xh.expandSinglePhrase=Xh.expandPhrases=void 0;function Gfa(t){return Kfa(t)||Hdn(t)||jdn(t)||Vfa()}function Vfa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kfa(t){if(Array.isArray(t))return t}function Wfa(t){return qfa(t)||Hdn(t)||jdn(t)||Qfa()}function Qfa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jdn(t,e){if(t){if(typeof t=="string")return UGe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UGe(t,e)}}function Hdn(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qfa(t){if(Array.isArray(t))return UGe(t)}function UGe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Yfa=function(e){return e.flatMap(Udn)};Xh.expandPhrases=Yfa;var Udn=function(e){return Zfa(Jfa(e)).map(function(n){return n.trim()})};Xh.expandSinglePhrase=Udn;var rkt=new RegExp("[^[\\]{}]+","y"),ikt=new RegExp("\\{.*?\\}","y"),akt=new RegExp("\\[.*?\\]","y"),Jfa=function(e){for(var n=0,r=[];n<e.length;){rkt.lastIndex=n;var a=rkt.exec(e);a&&(r.push([a[0].trim()]),n+=a[0].length),akt.lastIndex=n;var o=akt.exec(e);if(o){var s=o[0].slice(1,-1).split("|").map(function(u){return u.trim()});r.push([""].concat(Wfa(s))),n+=o[0].length}ikt.lastIndex=n;var l=ikt.exec(e);if(l){var c=l[0].slice(1,-1).split("|").map(function(u){return u.trim()});r.push(c),n+=l[0].length}if(!a&&!o&&!l)throw new Error("Unbalanced parenthesis in: ".concat(e))}return r},Zfa=function t(e){var n=Gfa(e),r=n[0],a=n.slice(1);return r===void 0?[""]:t(a).flatMap(function(o){return r.map(function(s){return s.trim()+" "+o.trim()})})},t_e={};Object.defineProperty(t_e,"__esModule",{value:!0});t_e.keywords=void 0;var Xfa=Ua,epa=(0,Xfa.flatKeywordList)({keywords:["ALL","AND","ANY","ARRAY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LIKE","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","STRUCT","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN"],datatypes:["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],stringFormat:["HEX","BASEX","BASE64M","ASCII","UTF-8","UTF8"],misc:["SAFE"],ddl:["LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"]});t_e.keywords=epa;var n_e={};Object.defineProperty(n_e,"__esModule",{value:!0});n_e.functions=void 0;var tpa=Ua,npa=(0,tpa.flatKeywordList)({aead:["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH"],aggregateAnalytic:["ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP"],aggregate:["ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM"],approximateAggregate:["APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM"],array:["ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL"],bitwise:["BIT_COUNT"],conversion:["PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST"],date:["CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE"],datetime:["CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME"],debugging:["ERROR"],federatedQuery:["EXTERNAL_QUERY"],geography:["S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y"],hash:["FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512"],hll:["HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT"],interval:["MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL"],json:["JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING"],math:["ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET"],navigation:["FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC"],net:["NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN"],numbering:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER"],security:["SESSION_USER"],statisticalAggregate:["CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE"],string:["ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER"],time:["CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME"],timestamp:["CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS"],uuid:["GENERATE_UUID"],conditional:["COALESCE","IF","IFNULL","NULLIF"],legacyAggregate:["AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP"],legacyBitwise:["BIT_COUNT"],legacyCasting:["BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING"],legacyComparison:["COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL"],legacyDatetime:["CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR"],legacyIp:["FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP"],legacyJson:["JSON_EXTRACT","JSON_EXTRACT_SCALAR"],legacyMath:["ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH"],legacyRegex:["REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE"],legacyString:["CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER"],legacyTableWildcard:["TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY"],legacyUrl:["HOST","DOMAIN","TLD"],legacyWindow:["AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER"],legacyMisc:["CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64"],other:["BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW"],ddl:["OPTIONS"],pivot:["PIVOT","UNPIVOT"],dataTypes:["BYTES","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","STRING"]});n_e.functions=npa;(function(t,e){function n(B){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},n(B)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(Nv),a=u(Iv),o=Pc,s=Xh,l=t_e,c=n_e;function u(B){return B&&B.__esModule?B:{default:B}}function d(B,j){var H=Object.keys(B);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(B);j&&(U=U.filter(function($){return Object.getOwnPropertyDescriptor(B,$).enumerable})),H.push.apply(H,U)}return H}function h(B){for(var j=1;j<arguments.length;j++){var H=arguments[j]!=null?arguments[j]:{};j%2?d(Object(H),!0).forEach(function(U){f(B,U,H[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(H)):d(Object(H)).forEach(function(U){Object.defineProperty(B,U,Object.getOwnPropertyDescriptor(H,U))})}return B}function f(B,j,H){return j in B?Object.defineProperty(B,j,{value:H,enumerable:!0,configurable:!0,writable:!0}):B[j]=H,B}function p(B,j){if(!(B instanceof j))throw new TypeError("Cannot call a class as a function")}function m(B,j){for(var H=0;H<j.length;H++){var U=j[H];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(B,U.key,U)}}function g(B,j,H){return j&&m(B.prototype,j),H&&m(B,H),Object.defineProperty(B,"prototype",{writable:!1}),B}function v(B,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(j&&j.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),j&&A(B,j)}function A(B,j){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,$){return U.__proto__=$,U},A(B,j)}function y(B){var j=w();return function(){var U=_(B),$;if(j){var z=_(this).constructor;$=Reflect.construct(U,arguments,z)}else $=U.apply(this,arguments);return S(this,$)}}function S(B,j){if(j&&(n(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(B)}function x(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(B){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},_(B)}var C=(0,s.expandPhrases)(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),R=(0,s.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","UPDATE","SET","DELETE [FROM]","TRUNCATE TABLE","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","REMOTE WITH CONNECTION","RETURNS TABLE","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),k=(0,s.expandPhrases)(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),P=(0,s.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),N=(0,s.expandPhrases)(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN"]),L=function(B){v(H,B);var j=y(H);function H(){return p(this,H),j.apply(this,arguments)}return g(H,[{key:"tokenizer",value:function(){return new a.default({reservedCommands:R,reservedSelect:C,reservedSetOperations:k,reservedJoins:P,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:N,reservedKeywords:l.keywords,reservedFunctionNames:c.functions,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||"],postProcess:I})}}]),H}(r.default);e.default=L;function I(B){return b(T(B))}function b(B){var j=o.EOF_TOKEN;return B.map(function(H){return H.text==="OFFSET"&&j.text==="["?(j=H,h(h({},H),{},{type:o.TokenType.RESERVED_FUNCTION_NAME})):(j=H,H)})}function T(B){for(var j=[],H=0;H<B.length;H++){var U,$=B[H];if((o.isToken.ARRAY($)||o.isToken.STRUCT($))&&((U=B[H+1])===null||U===void 0?void 0:U.text)==="<"){var z=D(B,H+1),Z=B.slice(H,z+1);j.push({type:o.TokenType.IDENTIFIER,raw:Z.map(M("raw")).join(""),text:Z.map(M("text")).join(""),start:$.start}),H=z}else j.push($)}return j}var M=function(j){return function(H){return H.type===o.TokenType.IDENTIFIER||H.type===o.TokenType.COMMA?H[j]+" ":H[j]}};function D(B,j){for(var H=0,U=j;U<B.length;U++){var $=B[U];if($.text==="<"?H++:$.text===">"?H--:$.text===">>"&&(H-=2),H===0)return U}return B.length-1}t.exports=e.default})(TGe,TGe.exports);var rpa=TGe.exports,zGe={exports:{}},r_e={};Object.defineProperty(r_e,"__esModule",{value:!0});r_e.functions=void 0;var ipa=Ua,apa=(0,ipa.flatKeywordList)({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["CUME_DIST","PERCENT_RANK","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT"],cast:["CAST"]});r_e.functions=apa;var i_e={};Object.defineProperty(i_e,"__esModule",{value:!0});i_e.keywords=void 0;var opa=Ua,spa=(0,opa.flatKeywordList)({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]});i_e.keywords=spa;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=r_e,l=i_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","FETCH FIRST","INSERT INTO","VALUES","UPDATE","SET","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","TRUNCATE [TABLE]","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT","CREATE [OR REPLACE] VIEW","CREATE [GLOBAL TEMPORARY] TABLE","DROP TABLE [HIERARCHY]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {IDENTITY | EXPRESSION | DEFAULT | NOT NULL}","ALLOCATE CURSOR","ALTER DATABASE","ALTER FUNCTION","ALTER INDEX","ALTER MASK","ALTER PERMISSION","ALTER PROCEDURE","ALTER SEQUENCE","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE LOCATORS","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT","COMMIT","CONNECT","CREATE ALIAS","CREATE AUXILIARY TABLE","CREATE DATABASE","CREATE FUNCTION","CREATE GLOBAL TEMPORARY TABLE","CREATE INDEX","CREATE LOB TABLESPACE","CREATE MASK","CREATE PERMISSION","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE STOGROUP","CREATE SYNONYM","CREATE TABLESPACE","CREATE TRIGGER","CREATE TRUSTED CONTEXT","CREATE TYPE","CREATE VARIABLE","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE STATEMENT","DECLARE TABLE","DECLARE VARIABLE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE OUTPUT","DESCRIBE PROCEDURE","DESCRIBE TABLE","DROP","END DECLARE SECTION","EXCHANGE","EXECUTE","EXECUTE IMMEDIATE","EXPLAIN","FETCH","FREE LOCATOR","GET DIAGNOSTICS","GRANT","HOLD LOCATOR","INCLUDE","LABEL","LOCK TABLE","OPEN","PREPARE","REFRESH","RELEASE","RELEASE SAVEPOINT","RENAME","REVOKE","ROLLBACK","SAVEPOINT","SELECT INTO","SET CONNECTION","SET CURRENT ACCELERATOR","SET CURRENT APPLICATION COMPATIBILITY","SET CURRENT APPLICATION ENCODING SCHEME","SET CURRENT DEBUG MODE","SET CURRENT DECFLOAT ROUNDING MODE","SET CURRENT DEGREE","SET CURRENT EXPLAIN MODE","SET CURRENT GET_ACCEL_ARCHIVE","SET CURRENT LOCALE LC_CTYPE","SET CURRENT MAINTAINED TABLE TYPES FOR OPTIMIZATION","SET CURRENT OPTIMIZATION HINT","SET CURRENT PACKAGE PATH","SET CURRENT PACKAGESET","SET CURRENT PRECISION","SET CURRENT QUERY ACCELERATION","SET CURRENT QUERY ACCELERATION WAITFORDATA","SET CURRENT REFRESH AGE","SET CURRENT ROUTINE VERSION","SET CURRENT RULES","SET CURRENT SQLID","SET CURRENT TEMPORAL BUSINESS_TIME","SET CURRENT TEMPORAL SYSTEM_TIME","SET ENCRYPTION PASSWORD","SET PATH","SET SCHEMA","SET SESSION TIME ZONE","SIGNAL","VALUES INTO","WHENEVER","AFTER","GO","SET CURRENT SCHEMA"]),w=(0,r.expandPhrases)(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),C=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","{ROWS | RANGE} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE","ELSEIF"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","¬=","¬>","¬<","!>","!<","||"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(zGe,zGe.exports);var lpa=zGe.exports,GGe={exports:{}},a_e={};Object.defineProperty(a_e,"__esModule",{value:!0});a_e.functions=void 0;var cpa=Ua,upa=(0,cpa.flatKeywordList)({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]});a_e.functions=upa;var o_e={};Object.defineProperty(o_e,"__esModule",{value:!0});o_e.keywords=void 0;var dpa=Ua,hpa=(0,dpa.flatKeywordList)({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]});o_e.keywords=hpa;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=a_e,l=o_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","UPDATE","SET","DELETE FROM","TRUNCATE [TABLE]","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SET SCHEMA","SHOW","STORED AS","STORED BY","ROW FORMAT"]),w=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),C=(0,r.expandPhrases)(["{ROWS | RANGE} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(GGe,GGe.exports);var fpa=GGe.exports,VGe={exports:{}},s_e={};Object.defineProperty(s_e,"__esModule",{value:!0});s_e.keywords=void 0;var ppa=Ua,mpa=(0,ppa.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]});s_e.keywords=mpa;var l_e={};Object.defineProperty(l_e,"__esModule",{value:!0});l_e.functions=void 0;var gpa=Ua,vpa=(0,gpa.flatKeywordList)({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]});l_e.functions=vpa;(function(t,e){function n(b){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},n(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=u(Nv),o=u(Iv),s=Pc,l=s_e,c=l_e;function u(b){return b&&b.__esModule?b:{default:b}}function d(b,T){var M=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);T&&(D=D.filter(function(B){return Object.getOwnPropertyDescriptor(b,B).enumerable})),M.push.apply(M,D)}return M}function h(b){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?d(Object(M),!0).forEach(function(D){f(b,D,M[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(M)):d(Object(M)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(M,D))})}return b}function f(b,T,M){return T in b?Object.defineProperty(b,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):b[T]=M,b}function p(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}function m(b,T){for(var M=0;M<T.length;M++){var D=T[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,D.key,D)}}function g(b,T,M){return T&&m(b.prototype,T),M&&m(b,M),Object.defineProperty(b,"prototype",{writable:!1}),b}function v(b,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(T&&T.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),T&&A(b,T)}function A(b,T){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,B){return D.__proto__=B,D},A(b,T)}function y(b){var T=w();return function(){var D=_(b),B;if(T){var j=_(this).constructor;B=Reflect.construct(D,arguments,j)}else B=D.apply(this,arguments);return S(this,B)}}function S(b,T){if(T&&(n(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(b)}function x(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(b){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},_(b)}var C=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),R=(0,r.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","UPDATE [LOW_PRIORITY] [IGNORE]","SET","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","TRUNCATE [TABLE]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DO","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","RETURNING","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),k=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),P=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),N=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),L=function(b){v(M,b);var T=y(M);function M(){return p(this,M),T.apply(this,arguments)}return g(M,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:R,reservedSelect:C,reservedSetOperations:k,reservedJoins:P,reservedDependentClauses:["WHEN","ELSE","ELSEIF","ELSIF"],reservedPhrases:N,supportsXor:!0,reservedKeywords:l.keywords,reservedFunctionNames:c.functions,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!"],postProcess:I})}}]),M}(a.default);e.default=L;function I(b){return b.map(function(T,M){var D=b[M+1]||s.EOF_TOKEN;return s.isToken.SET(T)&&D.text==="("?h(h({},T),{},{type:s.TokenType.RESERVED_FUNCTION_NAME}):T})}t.exports=e.default})(VGe,VGe.exports);var Apa=VGe.exports,KGe={exports:{}},c_e={};Object.defineProperty(c_e,"__esModule",{value:!0});c_e.keywords=void 0;var ypa=Ua,bpa=(0,ypa.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]});c_e.keywords=bpa;var u_e={};Object.defineProperty(u_e,"__esModule",{value:!0});u_e.functions=void 0;var xpa=Ua,Epa=(0,xpa.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});u_e.functions=Epa;(function(t,e){function n(b){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},n(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=u(Nv),o=u(Iv),s=Pc,l=c_e,c=u_e;function u(b){return b&&b.__esModule?b:{default:b}}function d(b,T){var M=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);T&&(D=D.filter(function(B){return Object.getOwnPropertyDescriptor(b,B).enumerable})),M.push.apply(M,D)}return M}function h(b){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?d(Object(M),!0).forEach(function(D){f(b,D,M[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(M)):d(Object(M)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(M,D))})}return b}function f(b,T,M){return T in b?Object.defineProperty(b,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):b[T]=M,b}function p(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}function m(b,T){for(var M=0;M<T.length;M++){var D=T[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,D.key,D)}}function g(b,T,M){return T&&m(b.prototype,T),M&&m(b,M),Object.defineProperty(b,"prototype",{writable:!1}),b}function v(b,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(T&&T.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),T&&A(b,T)}function A(b,T){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,B){return D.__proto__=B,D},A(b,T)}function y(b){var T=w();return function(){var D=_(b),B;if(T){var j=_(this).constructor;B=Reflect.construct(D,arguments,j)}else B=D.apply(this,arguments);return S(this,B)}}function S(b,T){if(T&&(n(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(b)}function x(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(b){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},_(b)}var C=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),R=(0,r.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","UPDATE [LOW_PRIORITY] [IGNORE]","SET","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","TRUNCATE [TABLE]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] TABLE [IF NOT EXISTS]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DO","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),k=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]"]),P=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),N=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),L=function(b){v(M,b);var T=y(M);function M(){return p(this,M),T.apply(this,arguments)}return g(M,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:R,reservedSelect:C,reservedSetOperations:k,reservedJoins:P,reservedDependentClauses:["WHEN","ELSE","ELSEIF"],reservedPhrases:N,supportsXor:!0,reservedKeywords:l.keywords,reservedFunctionNames:c.functions,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!"],postProcess:I})}}]),M}(a.default);e.default=L;function I(b){return b.map(function(T,M){var D=b[M+1]||s.EOF_TOKEN;return s.isToken.SET(T)&&D.text==="("?h(h({},T),{},{type:s.TokenType.RESERVED_FUNCTION_NAME}):T})}t.exports=e.default})(KGe,KGe.exports);var Spa=KGe.exports,WGe={exports:{}},d_e={};Object.defineProperty(d_e,"__esModule",{value:!0});d_e.functions=void 0;var wpa=Ua,_pa=(0,wpa.flatKeywordList)({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]});d_e.functions=_pa;var h_e={};Object.defineProperty(h_e,"__esModule",{value:!0});h_e.keywords=void 0;var Tpa=Ua,Cpa=(0,Tpa.flatKeywordList)({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]});h_e.keywords=Cpa;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=d_e,l=h_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","UPDATE","SET","DELETE FROM","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","RETURNING","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","NEST","SET CURRENT SCHEMA","SET SCHEMA","SHOW","UNNEST","USE KEYS"]),w=(0,r.expandPhrases)(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),C=(0,r.expandPhrases)(["{ROWS | RANGE | GROUPS} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,supportsXor:!0,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(WGe,WGe.exports);var kpa=WGe.exports,QGe={exports:{}},f_e={};Object.defineProperty(f_e,"__esModule",{value:!0});f_e.keywords=void 0;var Rpa=Ua,Mpa=(0,Rpa.flatKeywordList)({all:["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARRAY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BFILE_BASE","BINARY","BLOB_BASE","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHAR","CHAR_BASE","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE","DATE_BASE","DAY","DECIMAL","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DOUBLE","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FLOAT","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INT","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LONG","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NCHAR","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NUMBER_BASE","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"]});f_e.keywords=Mpa;var p_e={};Object.defineProperty(p_e,"__esModule",{value:!0});p_e.functions=void 0;var Npa=Ua,Ipa=(0,Npa.flatKeywordList)({numeric:["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET"],character:["CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET"],comparison:["GREATEST","LEAST"],conversion:["ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR"],largeObject:["BFILENAME","EMPTY_BLOB,","EMPTY_CLOB"],collection:["CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET"],hierarchical:["SYS_CONNECT_BY_PATH"],dataMining:["CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET"],xml:["APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM"],encoding:["DECODE","DUMP","ORA_HASH","VSIZE"],nullRelated:["COALESCE","LNNVL","NULLIF","NVL","NVL2"],env:["SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV"],aggregate:["AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER"],objectReference:["DEREF","MAKE_REF","REF","REFTOHEX","VALUE"],model:["CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],dataTypes:["VARCHAR2","NVARCHAR2","NUMBER","FLOAT","TIMESTAMP","INTERVAL YEAR","INTERVAL DAY","RAW","UROWID","NCHAR","CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NUMERIC","DECIMAL","FLOAT","VARCHAR"]});p_e.functions=Ipa;(function(t,e){function n(b){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},n(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=u(Nv),o=u(Iv),s=Pc,l=f_e,c=p_e;function u(b){return b&&b.__esModule?b:{default:b}}function d(b,T){var M=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);T&&(D=D.filter(function(B){return Object.getOwnPropertyDescriptor(b,B).enumerable})),M.push.apply(M,D)}return M}function h(b){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?d(Object(M),!0).forEach(function(D){f(b,D,M[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(M)):d(Object(M)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(M,D))})}return b}function f(b,T,M){return T in b?Object.defineProperty(b,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):b[T]=M,b}function p(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}function m(b,T){for(var M=0;M<T.length;M++){var D=T[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,D.key,D)}}function g(b,T,M){return T&&m(b.prototype,T),M&&m(b,M),Object.defineProperty(b,"prototype",{writable:!1}),b}function v(b,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(T&&T.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),T&&A(b,T)}function A(b,T){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,B){return D.__proto__=B,D},A(b,T)}function y(b){var T=w();return function(){var D=_(b),B;if(T){var j=_(this).constructor;B=Reflect.construct(D,arguments,j)}else B=D.apply(this,arguments);return S(this,B)}}function S(b,T){if(T&&(n(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(b)}function x(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(b){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},_(b)}var C=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT | UNIQUE]"]),R=(0,r.expandPhrases)(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE","INSERT [INTO | ALL INTO]","VALUES","UPDATE [ONLY]","SET","DELETE FROM [ONLY]","TRUNCATE TABLE","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","RETURNING","START WITH","SET SCHEMA"]),k=(0,r.expandPhrases)(["UNION [ALL]","EXCEPT","INTERSECT"]),P=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),N=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","ON COMMIT","{ROWS | RANGE} BETWEEN"]),L=function(b){v(M,b);var T=y(M);function M(){return p(this,M),T.apply(this,arguments)}return g(M,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:R,reservedSelect:C,reservedSetOperations:k,reservedJoins:P,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:N,supportsXor:!0,reservedKeywords:l.keywords,reservedFunctionNames:c.functions,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:I})}}]),M}(a.default);e.default=L;function I(b){var T=s.EOF_TOKEN;return b.map(function(M){return s.isToken.SET(M)&&s.isToken.BY(T)?h(h({},M),{},{type:s.TokenType.RESERVED_KEYWORD}):((0,s.isReserved)(M.type)&&(T=M),M)})}t.exports=e.default})(QGe,QGe.exports);var Ppa=QGe.exports,qGe={exports:{}},m_e={};Object.defineProperty(m_e,"__esModule",{value:!0});m_e.functions=void 0;var Opa=Ua,Lpa=(0,Opa.flatKeywordList)({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]});m_e.functions=Lpa;var g_e={};Object.defineProperty(g_e,"__esModule",{value:!0});g_e.keywords=void 0;var Bpa=Ua,Dpa=(0,Bpa.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"]});g_e.keywords=Dpa;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=m_e,l=g_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","UPDATE [ONLY]","SET","WHERE CURRENT OF","DELETE FROM [ONLY]","TRUNCATE [TABLE] [ONLY]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DO","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","RETURNING","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM","AFTER","SET SCHEMA"]),w=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),C=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","{ROWS | RANGE | GROUPS} BETWEEN","{TIMESTAMP | TIME} {WITH | WITHOUT} TIME ZONE"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(qGe,qGe.exports);var $pa=qGe.exports,YGe={exports:{}},v_e={};Object.defineProperty(v_e,"__esModule",{value:!0});v_e.functions=void 0;var Fpa=Ua,jpa=(0,Fpa.flatKeywordList)({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]});v_e.functions=jpa;var A_e={};Object.defineProperty(A_e,"__esModule",{value:!0});A_e.keywords=void 0;var Hpa=Ua,Upa=(0,Hpa.flatKeywordList)({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]});A_e.keywords=Upa;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=v_e,l=A_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","UPDATE","SET","DELETE [FROM]","TRUNCATE [TABLE]","CREATE [OR REPLACE | MATERIALIZED] VIEW","CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMENT","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM","ALTER COLUMN"]),w=(0,r.expandPhrases)(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),C=(0,r.expandPhrases)(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(YGe,YGe.exports);var zpa=YGe.exports,JGe={exports:{}},y_e={};Object.defineProperty(y_e,"__esModule",{value:!0});y_e.keywords=void 0;var Gpa=Ua,Vpa=(0,Gpa.flatKeywordList)({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]});y_e.keywords=Vpa;var b_e={};Object.defineProperty(b_e,"__esModule",{value:!0});b_e.functions=void 0;var Kpa=Ua,Wpa=(0,Kpa.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]});b_e.functions=Wpa;(function(t,e){function n(b){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},n(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=u(Nv),o=u(Iv),s=Pc,l=y_e,c=b_e;function u(b){return b&&b.__esModule?b:{default:b}}function d(b,T){var M=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);T&&(D=D.filter(function(B){return Object.getOwnPropertyDescriptor(b,B).enumerable})),M.push.apply(M,D)}return M}function h(b){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?d(Object(M),!0).forEach(function(D){f(b,D,M[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(M)):d(Object(M)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(M,D))})}return b}function f(b,T,M){return T in b?Object.defineProperty(b,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):b[T]=M,b}function p(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}function m(b,T){for(var M=0;M<T.length;M++){var D=T[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,D.key,D)}}function g(b,T,M){return T&&m(b.prototype,T),M&&m(b,M),Object.defineProperty(b,"prototype",{writable:!1}),b}function v(b,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(T&&T.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),T&&A(b,T)}function A(b,T){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,B){return D.__proto__=B,D},A(b,T)}function y(b){var T=w();return function(){var D=_(b),B;if(T){var j=_(this).constructor;B=Reflect.construct(D,arguments,j)}else B=D.apply(this,arguments);return S(this,B)}}function S(b,T){if(T&&(n(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(b)}function x(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(b){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},_(b)}var C=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),R=(0,r.expandPhrases)(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","TRUNCATE TABLE","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","CREATE [EXTERNAL] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE","LATERAL VIEW"]),k=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),P=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),N=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),L=function(b){v(M,b);var T=y(M);function M(){return p(this,M),T.apply(this,arguments)}return g(M,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:R,reservedSelect:C,reservedSetOperations:k,reservedJoins:P,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:N,supportsXor:!0,reservedKeywords:l.keywords,reservedFunctionNames:c.functions,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:I})}}]),M}(a.default);e.default=L;function I(b){return b.map(function(T,M){var D=b[M-1]||s.EOF_TOKEN,B=b[M+1]||s.EOF_TOKEN;return s.isToken.WINDOW(T)&&B.type===s.TokenType.OPEN_PAREN?h(h({},T),{},{type:s.TokenType.RESERVED_FUNCTION_NAME}):T.text==="ITEMS"&&T.type===s.TokenType.RESERVED_KEYWORD&&!(D.text==="COLLECTION"&&B.text==="TERMINATED")?h(h({},T),{},{type:s.TokenType.IDENTIFIER,text:T.raw}):T})}t.exports=e.default})(JGe,JGe.exports);var Qpa=JGe.exports,ZGe={exports:{}},x_e={};Object.defineProperty(x_e,"__esModule",{value:!0});x_e.functions=void 0;var qpa=Ua,Ypa=(0,qpa.flatKeywordList)({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]});x_e.functions=Ypa;var E_e={};Object.defineProperty(E_e,"__esModule",{value:!0});E_e.keywords=void 0;var Jpa=Ua,Zpa=(0,Jpa.flatKeywordList)({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]});E_e.keywords=Zpa;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=x_e,l=E_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","SET","DELETE FROM","CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),w=(0,r.expandPhrases)(["UNION [ALL]","EXCEPT","INTERSECT"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),C=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","{ROWS | RANGE | GROUPS} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(ZGe,ZGe.exports);var Xpa=ZGe.exports,XGe={exports:{}},S_e={};Object.defineProperty(S_e,"__esModule",{value:!0});S_e.functions=void 0;var ema=Ua,tma=(0,ema.flatKeywordList)({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]});S_e.functions=tma;var w_e={};Object.defineProperty(w_e,"__esModule",{value:!0});w_e.keywords=void 0;var nma=Ua,rma=(0,nma.flatKeywordList)({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]});w_e.keywords=rma;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=S_e,l=w_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","UPDATE","SET","WHERE CURRENT OF","DELETE FROM","TRUNCATE TABLE","CREATE [RECURSIVE] VIEW","CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","SET SCHEMA"]),w=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),C=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","{ROWS | RANGE} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(XGe,XGe.exports);var ima=XGe.exports,eVe={exports:{}},__e={};Object.defineProperty(__e,"__esModule",{value:!0});__e.functions=void 0;var ama=Ua,oma=(0,ama.flatKeywordList)({all:["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH"],rowPattern:["CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"]});__e.functions=oma;var T_e={};Object.defineProperty(T_e,"__esModule",{value:!0});T_e.keywords=void 0;var sma=Ua,lma=(0,sma.flatKeywordList)({all:["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],types:["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"]});T_e.keywords=lma;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=__e,l=T_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","UPDATE","SET","DELETE FROM","TRUNCATE TABLE","CREATE [OR REPLACE] [MATERIALIZED] VIEW","CREATE TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP COLUMN","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","COMMENT ON TABLE","COMMENT ON COLUMN","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),w=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),C=(0,r.expandPhrases)(["{ROWS | RANGE | GROUPS} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->",":","||","|","^","$"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(eVe,eVe.exports);var cma=eVe.exports,tVe={exports:{}},C_e={};Object.defineProperty(C_e,"__esModule",{value:!0});C_e.functions=void 0;var uma=Ua,dma=(0,uma.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY"],cursor:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]});C_e.functions=dma;var k_e={};Object.defineProperty(k_e,"__esModule",{value:!0});k_e.keywords=void 0;var hma=Ua,fma=(0,hma.flatKeywordList)({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]});k_e.keywords=fma;(function(t,e){function n(k){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},n(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=c(Nv),o=c(Iv),s=C_e,l=k_e;function c(k){return k&&k.__esModule?k:{default:k}}function u(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function d(k,P){for(var N=0;N<P.length;N++){var L=P[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}function h(k,P,N){return P&&d(k.prototype,P),N&&d(k,N),Object.defineProperty(k,"prototype",{writable:!1}),k}function f(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&p(k,P)}function p(k,P){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,I){return L.__proto__=I,L},p(k,P)}function m(k){var P=A();return function(){var L=y(k),I;if(P){var b=y(this).constructor;I=Reflect.construct(L,arguments,b)}else I=L.apply(this,arguments);return g(this,I)}}function g(k,P){if(P&&(n(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(k)}function v(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},y(k)}var S=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT]"]),x=(0,r.expandPhrases)(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","INSERT [INTO]","VALUES","UPDATE","SET","WHERE CURRENT OF","DELETE [FROM]","TRUNCATE TABLE","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] [MATERIALIZED] VIEW","CREATE TABLE","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),w=(0,r.expandPhrases)(["UNION [ALL]","EXCEPT","INTERSECT"]),_=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),C=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","{ROWS | RANGE} BETWEEN"]),R=function(k){f(N,k);var P=m(N);function N(){return u(this,N),P.apply(this,arguments)}return h(N,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:x,reservedSelect:S,reservedSetOperations:w,reservedJoins:_,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:C,reservedKeywords:l.keywords,reservedFunctionNames:s.functions,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::"]})}}]),N}(a.default);e.default=R,t.exports=e.default})(tVe,tVe.exports);var pma=tVe.exports,nVe={exports:{}},R_e={};Object.defineProperty(R_e,"__esModule",{value:!0});R_e.keywords=void 0;var mma=Ua,gma=(0,mma.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]});R_e.keywords=gma;var M_e={};Object.defineProperty(M_e,"__esModule",{value:!0});M_e.functions=void 0;var vma=Ua,Ama=(0,vma.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});M_e.functions=Ama;(function(t,e){function n(b){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},n(b)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Xh,a=u(Nv),o=u(Iv),s=Pc,l=R_e,c=M_e;function u(b){return b&&b.__esModule?b:{default:b}}function d(b,T){var M=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);T&&(D=D.filter(function(B){return Object.getOwnPropertyDescriptor(b,B).enumerable})),M.push.apply(M,D)}return M}function h(b){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?d(Object(M),!0).forEach(function(D){f(b,D,M[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(M)):d(Object(M)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(M,D))})}return b}function f(b,T,M){return T in b?Object.defineProperty(b,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):b[T]=M,b}function p(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}function m(b,T){for(var M=0;M<T.length;M++){var D=T[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,D.key,D)}}function g(b,T,M){return T&&m(b.prototype,T),M&&m(b,M),Object.defineProperty(b,"prototype",{writable:!1}),b}function v(b,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(T&&T.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),T&&A(b,T)}function A(b,T){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,B){return D.__proto__=B,D},A(b,T)}function y(b){var T=w();return function(){var D=_(b),B;if(T){var j=_(this).constructor;B=Reflect.construct(D,arguments,j)}else B=D.apply(this,arguments);return S(this,B)}}function S(b,T){if(T&&(n(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(b)}function x(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(b){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},_(b)}var C=(0,r.expandPhrases)(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),R=(0,r.expandPhrases)(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","UPDATE","SET","DELETE [FROM]","TRUNCATE [TABLE]","CREATE VIEW","CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DO","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","TRUNCATE TABLE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),k=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),P=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),N=(0,r.expandPhrases)(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),L=function(b){v(M,b);var T=y(M);function M(){return p(this,M),T.apply(this,arguments)}return g(M,[{key:"tokenizer",value:function(){return new o.default({reservedCommands:R,reservedSelect:C,reservedSetOperations:k,reservedJoins:P,reservedDependentClauses:["WHEN","ELSE","ELSEIF"],reservedPhrases:N,reservedKeywords:l.keywords,reservedFunctionNames:c.functions,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||"],postProcess:I})}}]),M}(a.default);e.default=L;function I(b){return b.map(function(T,M){var D=b[M+1]||s.EOF_TOKEN;return s.isToken.SET(T)&&D.text==="("?h(h({},T),{},{type:s.TokenType.RESERVED_FUNCTION_NAME}):T})}t.exports=e.default})(nVe,nVe.exports);var yma=nVe.exports;Object.defineProperty(a2,"__esModule",{value:!0});a2.supportedDialects=a2.formatters=a2.format=a2.ConfigError=void 0;var bma=iA(rpa),xma=iA(lpa),Ema=iA(fpa),Sma=iA(Apa),wma=iA(Spa),_ma=iA(kpa),Tma=iA(Ppa),Cma=iA($pa),kma=iA(zpa),Rma=iA(Qpa),Mma=iA(Xpa),Nma=iA(ima),Ima=iA(cma),okt=iA(pma),Pma=iA(yma);function iA(t){return t&&t.__esModule?t:{default:t}}function skt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oma(t,e,n){return e&&skt(t.prototype,e),n&&skt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Lma(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bma(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$ne(t,e)}function Dma(t){var e=zdn();return function(){var r=Fne(t),a;if(e){var o=Fne(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return $ma(this,a)}}function $ma(t,e){if(e&&(zAe(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fma(t)}function Fma(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rVe(t){var e=typeof Map=="function"?new Map:void 0;return rVe=function(r){if(r===null||!jma(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return Gme(r,arguments,Fne(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),$ne(a,r)},rVe(t)}function Gme(t,e,n){return zdn()?Gme=Reflect.construct.bind():Gme=function(a,o,s){var l=[null];l.push.apply(l,o);var c=Function.bind.apply(a,l),u=new c;return s&&$ne(u,s.prototype),u},Gme.apply(null,arguments)}function zdn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jma(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function $ne(t,e){return $ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$ne(t,e)}function Fne(t){return Fne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fne(t)}function lkt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ckt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lkt(Object(n),!0).forEach(function(r){Hma(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lkt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hma(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zAe(t){"@babel/helpers - typeof";return zAe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zAe(t)}var Yrt={bigquery:bma.default,db2:xma.default,hive:Ema.default,mariadb:Sma.default,mysql:wma.default,n1ql:_ma.default,plsql:Tma.default,postgresql:Cma.default,redshift:kma.default,singlestoredb:Pma.default,spark:Rma.default,sql:Nma.default,sqlite:Mma.default,transactsql:okt.default,trino:Ima.default,tsql:okt.default};a2.formatters=Yrt;var Gdn=Object.keys(Yrt);a2.supportedDialects=Gdn;var Uma={language:"sql",tabWidth:2,useTabs:!1,keywordCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",tabulateAlias:!1,commaPosition:"after",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},zma=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+zAe(e));var r=Gma(ckt(ckt({},Uma),n)),a=typeof r.language=="string"?Yrt[r.language]:r.language;return new a(r).format(e)};a2.format=zma;var GI=function(t){Bma(n,t);var e=Dma(n);function n(){return Lma(this,n),e.apply(this,arguments)}return Oma(n)}(rVe(Error));a2.ConfigError=GI;function Gma(t){if(typeof t.language=="string"&&!Gdn.includes(t.language))throw new GI("Unsupported SQL dialect: ".concat(t.language));if("multilineLists"in t)throw new GI("multilineLists config is no more supported.");if("newlineBeforeOpenParen"in t)throw new GI("newlineBeforeOpenParen config is no more supported.");if("newlineBeforeCloseParen"in t)throw new GI("newlineBeforeCloseParen config is no more supported.");if("aliasAs"in t)throw new GI("aliasAs config is no more supported.");if(t.expressionWidth<=0)throw new GI("expressionWidth config must be positive number. Received ".concat(t.expressionWidth," instead."));if(t.commaPosition==="before"&&t.useTabs)throw new GI("commaPosition: before does not work when tabs are used for indentation.");return t.params&&!Vma(t.params)&&console.warn('WARNING: All "params" option values should be strings.'),t}function Vma(t){var e=t instanceof Array?t:Object.values(t);return e.every(function(n){return typeof n=="string"})}(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e={Formatter:!0,Tokenizer:!0,expandPhrases:!0};Object.defineProperty(t,"Formatter",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"expandPhrases",{enumerable:!0,get:function(){return o.expandPhrases}});var n=a2;Object.keys(n).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in t&&t[l]===n[l]||Object.defineProperty(t,l,{enumerable:!0,get:function(){return n[l]}})});var r=s(Nv),a=s(Iv),o=Xh;function s(l){return l&&l.__esModule?l:{default:l}}})(Ywe);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var GAe=function(){return GAe=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},GAe.apply(this,arguments)};function Kma(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function Wma(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Qma=function(){},Vdn=Qma(),VLe=Object,c3=function(t){return t===Vdn},Jrt=function(t){return typeof t=="function"},qma="undefined",Yma=function(){return typeof window!=qma},Jma=!Yma()||"Deno"in window,ukt=Jma?Y.useEffect:Y.useLayoutEffect,Kue=new WeakMap,Zma=0,iVe=function(t){var e=typeof t,n=t&&t.constructor,r=n==Date,a,o;if(VLe(t)===t&&!r&&n!=RegExp){if(a=Kue.get(t),a)return a;if(a=++Zma+"~",Kue.set(t,a),n==Array){for(a="@",o=0;o<t.length;o++)a+=iVe(t[o])+",";Kue.set(t,a)}if(n==VLe){a="#";for(var s=VLe.keys(t).sort();!c3(o=s.pop());)c3(t[o])||(a+=o+":"+iVe(t[o])+",");Kue.set(t,a)}}else a=r?t.toJSON():e=="symbol"?t.toString():e=="string"?JSON.stringify(t):""+t;return a},aVe=function(t){if(Jrt(t))try{t=t()}catch{t=""}var e=[].concat(t);t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?iVe(t):"";var n=t?"$swr$"+t:"";return[t,e,n]},Xma=function(t){return Jrt(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}]},ega=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=Xma(n),o=a[0],s=a[1],l=a[2],c=(l.use||[]).concat(e);return t(o,s,GAe(GAe({},l),{use:c}))}},tga="$inf$",nga=function(t){return aVe(t?t(0,null):null)[0]},rga=function(t){return function(e,n,r){var a=Y.useState({})[1],o=Y.useRef(!1),s=Y.useRef(),l=r.cache,c=r.initialSize,u=c===void 0?1:c,d=r.revalidateAll,h=d===void 0?!1:d,f=r.persistSize,p=f===void 0?!1:f,m=r.revalidateFirstPage,g=m===void 0?!0:m,v=r.revalidateOnMount,A=v===void 0?!1:v,y=null;try{y=nga(e)}catch{}var S=null,x=null;y&&(S="$ctx$"+y,x="$len$"+y);var w=Y.useCallback(function(){var L=l.get(x);return c3(L)?u:L},[x,u]),_=Y.useRef(w());ukt(function(){if(!o.current){o.current=!0;return}y&&l.set(x,p?_.current:u)},[y]);var C=A&&!o.current,R=t(y?tga+y:null,function(){return Kma(void 0,void 0,void 0,function(){var L,I,b,T,M,D,B,j,H,U,$,z;return Wma(this,function(Z){switch(Z.label){case 0:L=l.get(S)||[],I=L[0],b=L[1],T=[],M=w(),D=null,B=0,Z.label=1;case 1:return B<M?(j=aVe(e(B,D)),H=j[0],U=j[1],H?($=l.get(H),z=h||I||c3($)||g&&!B&&!c3(s.current)||C||b&&!c3(b[B])&&!r.compare(b[B],$),n&&z?[4,n.apply(void 0,U)]:[3,3]):[3,5]):[3,5];case 2:$=Z.sent(),l.set(H,$),Z.label=3;case 3:T.push($),D=$,Z.label=4;case 4:return++B,[3,1];case 5:return l.delete(S),[2,T]}})})},r);ukt(function(){s.current=R.data},[R.data]);var k=Y.useCallback(function(){for(var L=[],I=0;I<arguments.length;I++)L[I]=arguments[I];var b=L[0],T=L[1]!==!1;if(S){if(T)if(c3(b))l.set(S,[!0]);else{var M=s.current;l.set(S,[!1,M])}return L.length?R.mutate(b,T):R.mutate()}},[S]),P=function(L){for(var I=[],b=null,T=0;T<L;++T){var M=aVe(e(T,b))[0],D=M?l.get(M):Vdn;if(c3(D))return s.current;I.push(D),b=D}return I},N=Y.useCallback(function(L){if(x){var I;if(Jrt(L)?I=L(w()):typeof L=="number"&&(I=L),typeof I=="number")return l.set(x,I),_.current=I,a({}),k(P(I))}},[x,w,k]);return{size:w(),setSize:N,mutate:k,get error(){return R.error},get data(){return R.data},get isValidating(){return R.isValidating}}}},iga=ega(rR,rga);const Zt={getSchemas:({isUserLoggedIn:t=!1,scope:e="PUBLIC"})=>`/v2/${t?"":"public/"}discover/schema${t&&e?`?scope=${e}`:""}`,getConnection:t=>`v1/mgmt/databases/${t}/connections`,getRelations:(t,e=!1)=>`/v2/${e?"":"public/"}discover/table/relations?${t}`,getSavedQueries:(t,e=!1)=>`/v2/${e?"":"public/"}content/queries?${t}`,getAllQueries:(t,e=!1)=>`/v2/${e?"":"public/"}content/queries?${t}`,getAllQueriesFilteredByMyLikes:(t=!1)=>`/v2/${t?"":"public/"}content/queries/my-likes`,getAllQueriesFilteredByPopular:(t,e=!1)=>`/v2/${e?"":"public/"}content/queries/popular?${t}`,addDislikeToQuery:(t,e=!1)=>`/v2/${e?"":"public/"}content/queries/${t}/dislike`,addLikeToQuery:(t,e=!1)=>`/v2/${e?"":"public/"}content/queries/${t}/like`,createSavedQueries:()=>"/v2/content/queries",getSavedQuery:(t,e=!1)=>`/v2/${e?"":"public/"}content/queries/${t}`,updateSavedQueries:t=>`/v2/content/queries/${t}`,publishQuery:(t,e)=>`/v2/content/queries/${t}/publish?${e}`,deleteSavedQueries:t=>`/v2/content/queries/${t}`,forkQuery:t=>`/v2/content/queries/${t}/fork`,executeView:()=>"v1/sql/view/query",convertToMaterializedView:t=>`v2/content/queries/${t}/materialized-view`,refreshMaterializedView:()=>"v1/sql/view/materialized/refresh",getViewLastRefreshTime:()=>"/v1/sql/view/materialized/last-refreshed",runQuery:t=>`/v1/sql/${t}`,getRecentQueryHistory:t=>`/v1/activity/queries/recent?${t}`,getHistoricalQueryHistory:t=>`/v1/activity/queries/historical?${t}`,deleteQueryHistory:t=>`/v1/content/views/${t}`,getVisual:(t,e=!1)=>`/v2/${e?"":"public/"}content/visuals/${t}`,getVisuals:(t,e=!1)=>`/v2/${e?"":"public/"}content/visuals?${t}`,getVisualsByPopular:(t,e=!1)=>`/v2/${e?"":"public/"}content/visuals/popular?${t}`,getVisualsFilteredByMyLikes:(t=!1)=>`/v2/${t?"":"public/"}content/visuals/my-likes`,saveVisual:()=>"/v2/content/visuals",updateVisual:t=>`/v2/content/visuals/${t}`,deleteVisual:t=>`/v2/content/visuals/${t}`,publishVisual:(t,e)=>`/v2/content/visuals/${t}/publish?${e}`,forkVisual:t=>`/v2/content/visuals/${t}/fork`,getTags:t=>`/v2/content/tags?searchPattern=${t}`,getPopularTags:(t,e=!1)=>`/v2/${e?"":"public/"}content/tags/popular?${t}`,getGPT:()=>"/v1/ai/sql/generate",getAllDashboards:(t,e=!1)=>`/v2/${e?"":"public/"}content/dashboards?${t}`,getDashboardByPopular:(t,e=!1)=>`/v2/${e?"":"public/"}content/dashboards/popular?${t}`,getDashboardsFilteredByMyLikes:(t=!1)=>`/v2/${t?"":"public/"}content/dashboards/my-likes`,addLikeToDashboardId:(t,e=!1)=>`/v2/${e?"":"public/"}content/dashboards/${t}/like`,addDislikeToDashboardId:(t,e=!1)=>`/v2/${e?"":"public/"}content/dashboards/${t}/dislike`,addLikeToVisualId:t=>`/v2/content/visuals/${t}/like`,addDislikeToVisualId:t=>`/v2/content/visuals/${t}/dislike`,saveDashboard:()=>"/v2/content/dashboards",getDashboardById:(t,e=!1,n=!1)=>`/v2/${!e&&n?"public/":""}content/dashboards/${n?"by-slug/":""}${t}`,getDashboardVisuals:(t,e=!1)=>`/v2/${e?"":"public/"}content/dashboards/${t}/visuals`,updateDashboard:t=>`/v2/content/dashboards/${t}`,putDashboardVisuals:t=>`/v2/content/dashboards/${t}/visuals`,deleteDashboard:t=>`/v2/content/dashboards/${t}`,publishDashboard:(t,e)=>`/v2/content/dashboards/${t}/publish?${e}`,getDashboardVisualsContent:(t,e=!1)=>`/v2/${e?"":"public/"}content/dashboards/${t}/visuals/content`,forkDashboard:t=>`/v2/content/dashboards/${t}/fork`,getContractDetails:(t,e)=>`/v1/sci/${t}/contract/${e}/info`,getChains:()=>"/v1/sci/supported-chains",getChainSchemas:t=>`/v1/sci/${t}/schemas`,getSubscriptionContracts:()=>"/v1/sci/subscription-contracts",postEventTransactions:(t,e,n)=>`/v1/sci/${t}/contract/${e}/transactions-for-event/${n}`,postContractEvents:(t,e)=>`/v1/sci/${t}/contract/${e}/index`,getInsightDashboard:(t,e,n)=>`/insights/v1/communities/${t}/executions?date=${e}&days=${n}`,getAllCommunities:()=>"/insights/v1/communities",getAllStats:(t,e)=>`/insights/v1/communities/${t}/executions/${e}/information`,getInsightNodes:(t,e)=>`/insights/v1/communities/${t}/executions/${e}/nodes`,getInsightInteractions:(t,e)=>`/insights/v1/communities/${t}/executions/${e}/intersections`,getNodeInteractions:(t,e,n)=>`/insights/v1/communities/${t}/executions/${e}/nodes/${n}/interactions`,getAdminContracts:(t,e)=>`eventx/v1/${t}/admin/get-events?event_type=${e}`,approveContract:t=>`eventx/v1/${t}/admin/approve`,rejectContract:t=>`eventx/v1/${t}/admin/reject`,getNodeInformation:(t,e,n)=>`/api/v2/node-information?run_id=${t}&cluster_type=${e}&address=${n}`,getNodeBalance:(t,e,n)=>`/insights/v1/communities/${t}/executions/${e}/nodes/${n}/balance`,getTopTokens:(t,e,n)=>`/insights/v1/communities/${t}/executions/${e}/nodes?node_type=${n}&limit=10`,getSankeyChart:(t,e)=>`/insights/v1/communities/${t}/executions/${e}/flow_distribution`,getNodeDistribution:(t,e,n)=>`/insights/v1/communities/${t}/executions/${e}/distribution?node_type=${n}`,getAuthCode:()=>"/v1/auth/wallet/code",getAuthToken:()=>"/v1/auth/token",getAuthTokenRefresh:t=>`/v1/auth/refresh${t?`?refreshToken=${t}`:""}`,logoutUser:()=>"/v1/auth/logout",getSubGroups:t=>`/eventx/v1/${t}/namespace`,getPendingEvents:t=>`eventx/v1/${t}/get-pending-events`,getUserExist:t=>`cloud-router/gateway/userid/${t}`,createPipeLine:()=>"/pipelines/create",uploadZipFile:()=>"/pipelines/upload/script",deployPipeline:t=>`/pipelines/deploy?pipeLineId=${t.pipelineId}&deployment=${t.deployment}`,loginUser:()=>"/auth/login",registerUser:()=>"/auth/register",getAndUpdateUserDetail:t=>`v2/content/userprofile/${t}`,getSessionId:t=>`/auth/session/convert?accessToken=${t}`,addBiscuit:()=>"/biscuits/generated",executeQueryById:(t=!1)=>`v1/${t?"":"public/"}sql/content-queries`,fetchOpenAIResponse:()=>"https://chat-backend.dev.lab.chainml.net/api/v1alpha1/chat/execute",generateDependencyFile:"/sandbox/create-pip-modules",uploadCodeToSandbox:"/sandbox/upload-and-execute",getStreamingLogs:t=>`/sandbox/stream-logs?logType=${t.logType}`,getBiscuits:()=>"/biscuits",deleteBiscuit:t=>`/biscuits/generated/${t}`,getSubscription:()=>"/v1/subscription",createResource:t=>`/resources?${t}`,deleteResource:(t,e)=>`/resources/${t}?${e}`,createContainer:t=>`/sandbox/container-start-script?sessionId=${t}`,getSubscriptionUsers:()=>"/v1/subscription/users",removeUserSubscription:t=>`/v1/subscription/remove/${t}`,setUserRole:(t,e)=>`/v1/subscription/setrole/${t}?role=${e}`,resetPassword:()=>"/auth/reset",subscriptionAuth:()=>"/subscription",inviteUser:t=>`/v1/subscription/invite?${t}`,joinSubscription:t=>`/v1/subscription/invite/${t}`,getUserPermissions:()=>"/permissions/user",getBiscuitPermissions:t=>`/permissions/resource?${t}`,setPermission:t=>`/permissions?${t}`,getSmartContractCode:(t,e)=>`/boiler-plate/${t}/${e}`,postSmartContractJSCode:()=>"/boiler-plate/js",getAllPaymentCards:()=>"/sxt-payment/v1/card",getAllProducts:()=>"/sxt-payment/v1/product",addCardDetails:()=>"/sxt-payment/v1/card",addDefaultCard:()=>"/sxt-payment/v1/default-card",cancelStripeSubscription:()=>"/sxt-payment/v1/user/subscription",addStripeSubscription:()=>"/sxt-payment/v1/user/subscription",deleteCardDetails:()=>"/sxt-payment/v1/card",getPaymentHistory:t=>`/v1/activity/payment/subscription?${t}`,getDefaultFreeQueries:()=>"v1/subscription/default-free-queries",getFreeQueriesQueryCount:()=>"/v1/subscription/free-queries",getETLUserId:"/sandbox/getUserId",executeCode:(t,e)=>`/sandbox/execute?sessionId=${t}&test=${e}`,getSubscriptionInfo:()=>"sxt-payment/v1/user/subscription/info",updateSubscriptionData:()=>"/sxt-payment/v1/user/subscription",getSubscriptionForACustomer:()=>"/sxt-payment/v1/user/subscription",createSubscriptionWithoutCard:()=>"/sxt-payment/v1/user/subscription/no-payment",getApiKey:()=>"/apikeys",deleteApiKey:t=>`/apikeys/${t}`,getUserDataUsage:t=>`/v1/activity/usage/user${t?`?${t}`:""}`,getSubscriptionDataUsage:t=>`/v1/activity/usage/subscription${t?`?${t}`:""}`,executeSQL:()=>"/v1/sql",executeEncryptedSQL:t=>`v1/encryption/sql/${t}`,encryptDataset:()=>"v1/encryption/configure",saveChainLinkSubscription:()=>"/chainlink-functions/subscription",deleteChainLinkSubscription:(t,e)=>`/chainlink-functions/subscription/${t}/${e}`,getChainLinkSubscription:(t,e)=>`/chainlink-functions/subscription/${t}/${e}`,getSavedOracleJobList:t=>`/upkeeps?user=${t}`,updatePauseUnPauseAndCancelStatus:t=>`/upkeep/${t}`,createUpkeep:()=>"/deploy-child",editUpkeep:()=>"/edit-upkeep",getPosStatus:()=>"/v1/auth/posql",executePoS:()=>"/v1/sql/tamperproof-query",gcpAPI:()=>"https://us-central1-sxt-marketplace-dev.cloudfunctions.net/function-1",awsAPI:()=>"https://9wf4pgjen6.execute-api.us-east-1.amazonaws.com/Prod/",validateJoinCode:t=>`cloud-router/gateway/joincode/${t}`,graphqlUrl:()=>"/v1/graphql",getGraphqlSchemaByScope:t=>`/v1/graphql/discover-schemas?scope=${t}`,getGraphqlSchemaByName:t=>`/v1/graphql/schemas/${t}`,createGraphqlSchema:(t,e,n)=>`/v1/graphql/schemas?schemaName=${t}&scope=${n}&name=${e}`,deleteGraphqlSchema:t=>`/v1/graphql/schemas/${t}`,updateGraphQLSchema:t=>`/v1/graphql/schemas/${t}`,getBalanceDetails:()=>"v1/subscription/balance",getOfferings:()=>"v1/subscription/credit-offerings",charge:()=>"/sxt-payment/v1/card/charge",usageConfig:()=>"v1/subscription/usage-config",keys:()=>"/v1/auth/keys",authCodeKey:()=>"v1/auth/keys/code",checkCanUpdateUserId:()=>"v1/auth/wallet/migration-needed",updateUserId:()=>"v1/auth/wallet/migrate",getWalletAddressIsExist:t=>`cloud-router/gateway/walletid/${t}`,updateProxyUserId:()=>"migration/wallet",switchSubscription:()=>"/sxt-payment/v1/user/subscription/switch",upgradeSubscription:()=>"/sxt-payment/v1/user/subscription/change",getBlockchains:()=>"v2/discover/blockchains",getBlockchainsWithMeta:t=>`v2/discover/blockchains/${t}/meta`,getBLockchainSchemas:({chainId:t})=>`v2/discover/blockchains/${t}/schemas`,getAggregateBlockchainMetadata:()=>"/v2/discover/blockchains-aggregate",getViews:(t,e=!1)=>`/v2/discover/view?${t}`,deleteResourceAndBiscuit:t=>`/resources?${t}`,leaveSubscription:()=>"/v1/subscription/leave",getZKPayHistoricalBalances:()=>"/v1/zkpay/balance/historical",getZkPayCumulativeDeposits:()=>"/v1/zkpay/cumulative-deposits",getZKPayTransactions:(t,e)=>`v1/zkpay/transactions?pageNo=${t}&pageSize=${e}`,getZKPayCurrentTokenBalance:()=>"/v1/zkpay/current",getZKPayHistoricalPoints:()=>"v1/points/historical?pageNo=1&pageSize=250",getZKPayCurrentPoints:()=>"/v1/points/current",getZKPayZealyPoints:()=>"/v1/points/zealy",getSubscriptionPayConfig:()=>"/v1/subscription/pay-config",getZkSubscriptionPayConfig:()=>"/v1/subscription/zkt/payment-config",setZKSubscriptionPayConfig:()=>"/v1/subscription/zkt/payment-config",submitZKPayment:()=>"/v1/subscription/zkt/pay-now"};let dkt="";function hN(t){return typeof t=="string"&&(dkt=t),dkt}const hkt=["/chainlink-functions"];async function gq(t,e,n){var u,d;const r=hN(Ban),o={Accept:"application/json",access_token:localStorage.getItem("accessToken")||"","Content-Type":"application/json"},s={method:t.toUpperCase(),credentials:"same-origin",headers:o};s.body=JSON.stringify(n);let l=r+e;r&&e.substring(0,1)!=="/"&&(l=`${r}/${e}`);let c;try{c=await fetch(l,s);const h=await c.json(),f=hkt.some(p=>e.includes(p));return c.ok?{data:h,status:h.status||0}:(f&&SP(l,t,c.status,h),{error:h.detail||h.title||h.message||((u=h[0])==null?void 0:u.message)||"Something went wrong",status:h.status||0})}catch(h){let f;return(d=s==null?void 0:s.signal)!=null&&d.aborted?f="Query Aborted":(f="Network error",Kn(f)),hkt.some(m=>e.includes(m))&&SP(l,t,0,{title:f,message:(h==null?void 0:h.message)||"Something went wrong"}),{error:f}}}const Zrt={delete(t){return gq("DELETE",t)},post(t,e){return gq("POST",t,e)},get(t,e){return gq("GET",t,e)},put(t,e){return gq("PUT",t,e)},patch(t,e){return gq("PATCH",t,e)},async saveChainLinkSubscription(t){return this.post(Zt.saveChainLinkSubscription(),t)},async deleteChainLinkSubscription(t,e){return this.delete(Zt.deleteChainLinkSubscription(t,e))},async getChainLinkSubscription(t,e){return this.get(Zt.getChainLinkSubscription(t,e))},async getSavedOracleJobList(t){return this.get(Zt.getSavedOracleJobList(t))},async updatePauseUnPauseAndCancelStatus(t,e){return this.patch(Zt.updatePauseUnPauseAndCancelStatus(t),e)},async createUpkeep(t){return this.post(Zt.createUpkeep(),t)},async editUpkeep(t){return this.put(Zt.editUpkeep(),t)}};async function vq(t,e,n,r=""){var d,h;let a=localStorage.getItem("baseUrl")||"";a=U1a(a||r);const o=hN(a||Gmi),s={Accept:"application/json","Content-Type":"application/json"};if(!(e!=null&&e.includes("/auth"))){const f=localStorage.getItem("sessionId");s.sid=f||""}const l={method:t.toUpperCase(),credentials:"same-origin",headers:s};n&&(l.body=JSON.stringify(n));let c=o+e;o&&e.substring(0,1)!=="/"&&(c=`${o}/${e}`);let u;try{u=await fetch(c,l);const f=await(u==null?void 0:u.text());let p="";try{p=f!=null&&f.length?JSON.parse(f):{}}catch{p=f!=null&&f.length?f:{}}return u.ok?{data:p,status:u.status}:{error:p.detail||p.title||p.message||((d=p[0])==null?void 0:d.message)||(p==null?void 0:p.error)||""}}catch{let p;return(h=l==null?void 0:l.signal)!=null&&h.aborted?p="Query Aborted":p="Network error",{error:p}}}const Hu={put(t,e){return vq("PUT",t,e)},delete(t){return vq("DELETE",t)},post(t,e,n=""){return vq("POST",t,e,n)},get(t,e){return vq("GET",t,e)},patch(t,e){return vq("PATCH",t,e)},async loginUser(t,e){return this.post(Zt.loginUser(),t,e)},async resetPassword(t){return this.post(Zt.resetPassword(),t)},async updateKeySharing(t){return this.put(Zt.subscriptionAuth(),t)},async registerUser(t,e){return this.post(Zt.registerUser(),t,e)},async getSessionId(t,e=""){return this.post(Zt.getSessionId(t),{},e)},async addBiscuit(t){return this.post(Zt.addBiscuit(),t)},async getBiscuits(){return this.get(Zt.getBiscuits())},async getKeySharing(){return this.get(Zt.subscriptionAuth())},async deleteBiscuit(t){return this.delete(Zt.deleteBiscuit(t))},async createResource(t){return this.post(Zt.createResource(t),{})},async deleteResource(t,e){return this.delete(Zt.deleteResource(t,e))},async getUserPermissions(){return this.get(Zt.getUserPermissions())},async getBiscuitsPermissions(t){return this.get(Zt.getBiscuitPermissions(t))},async setPermission(t){return this.put(Zt.setPermission(t),{})},async revokePermissions(t){return this.delete(Zt.setPermission(t))},async getApiKeys(){return this.get(Zt.getApiKey())},async createApiKey(t){return this.post(Zt.getApiKey(),t)},async removeApiKey(t){return this.delete(Zt.deleteApiKey(t))},async updateProxyUserId(t){return this.post(Zt.updateProxyUserId(),{userId:t})},async deleteResourceAndBiscuit(t){return this.delete(Zt.deleteResourceAndBiscuit(t))}};function aga(t){let e;const n=new Set,r=(u,d)=>{const h=typeof u=="function"?u(e):u;if(h!==e){const f=e;e=d?h:Object.assign({},e,h),n.forEach(p=>p(e,f))}},a=()=>e,o=(u,d=a,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=d(e);function p(){const m=d(e);if(!h(f,m)){const g=f;u(f=m,g)}}return n.add(p),()=>n.delete(p)},c={setState:r,getState:a,subscribe:(u,d,h)=>d||h?o(u,d,h):(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return e=t(r,a,c),c}const oga=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),fkt=oga?Y.useEffect:Y.useLayoutEffect;function yE(t){const e=typeof t=="function"?aga(t):t,n=(r=e.getState,a=Object.is)=>{const[,o]=Y.useReducer(v=>v+1,0),s=e.getState(),l=Y.useRef(s),c=Y.useRef(r),u=Y.useRef(a),d=Y.useRef(!1),h=Y.useRef();h.current===void 0&&(h.current=r(s));let f,p=!1;(l.current!==s||c.current!==r||u.current!==a||d.current)&&(f=r(s),p=!a(h.current,f)),fkt(()=>{p&&(h.current=f),l.current=s,c.current=r,u.current=a,d.current=!1});const m=Y.useRef(s);fkt(()=>{const v=()=>{try{const y=e.getState(),S=c.current(y);u.current(h.current,S)||(l.current=y,h.current=S,o())}catch{d.current=!0,o()}},A=e.subscribe(v);return e.getState()!==m.current&&v(),A},[]);const g=p?f:h.current;return Y.useDebugValue(g),g};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,e];return{next(){const a=r.length<=0;return{value:r.shift(),done:a}}}},n}const sga={toaster:{},tags:[],tagsListLoading:!1,queriesResult:{},authCode:"",accessTokenExpires:"",walletAddress:"",isLoggedIn:!1,schemaExpansions:{expanded:{[sx.sxtDatasets]:!0}},datasetData:[],userDetail:{},chains:{},biscuitList:[],subscriptionDetail:{},showLoginDrawer:!1,showLoginDrawerWalletOpen:!1,LoginDrawerTab:zm.myAccount,biscuitsLoading:!1,accessToken:"",refreshToken:"",isRefreshLoading:!1,keySharing:"",subscriptionUserList:{loading:!1,list:{}},userResources:{loading:!1,resources:{}},biscuitResources:{loading:!1,resources:{}},selectedTableHighlighter:{},toggleERDTable:{},ERDNodeOpacity:{},tableInfoPanelId:"",tokenLastUpdatedOn:"",amazonCustomerInfo:{CustomerAWSAccountId:"",CustomerIdentifier:"",ProductCode:""},amazonFormFields:{"co-name":"","co-hq":"","co-url":"","usr-name":"","usr-email":"","usr2-name":"","usr2-email":"","usr-addr":"","usr-billaddr":"",isEmailvalidate:!0,isUrlvalidate:!0,isEmailvalidateOptional:!0},apiKeysList:[],apiKeysLoading:!1,userDataUsage:{loading:!1,data:{}},userSubscriptionDataUsage:{loading:!1,data:{}},memberDataUsage:{loading:!1,data:{}},loadingUsage:!1,canUpdateUserId:!1,productCampaignDetails:{},keychainDetails:{keychain:[]},isAuthLoading:!1,isEmptyVizClicked:!1,subscriptionCount:{defaultQueriesCount:0,freeQueriesCount:0},paymentConfigData:{},paymentConfigZkToken:{chainId:"POLYGON",walletAddr:"",tokenAddr:""},loadingZkToken:!1,isCurrentPointsResponseLoading:!1,isHistoricalPointsResponseLoading:!1,isBalanceHistoryLoading:!1,isZKPayTransactionsLoading:!1,isZealyPointsLoading:!1,isCurrentTokenBalanceLoading:!1,currentWallet:"",apiHistory:[],balanceHistory:[],pointsHistory:[],currentPoints:0,zkPayTransactions:{},zealyPointsValue:{},cumulativeDeposits:{},currentTokenBalance:{tokens:{}}},io=yE(()=>({...sga}));function Xrt(){return io(t=>t.toaster)}function lga(){return io(t=>t.tags)}function Coe(t){return io(e=>e.queriesResult[t]||{})}function ho(){return io(t=>t.isLoggedIn)}function cga(){return io(t=>t.schemaExpansions)}function bE(){return io(t=>t.userDetail)}function uga(){return io(t=>t.accessTokenExpires)}function Kdn(){return io(t=>t.datasetData)}function Wdn(){return io(t=>t.biscuitList)}function fN(){return io(t=>t.subscriptionDetail)}function eit(){return io(t=>t.showLoginDrawer)}function Qdn(){return io(t=>t.paymentConfigData)}function dga(){return io(t=>t.paymentConfigZkToken)}function hga(){return io(t=>t.loadingZkToken)}function fga(){return io(t=>t.showLoginDrawerWalletOpen)}function pga(){return io(t=>t.LoginDrawerTab)}function mga(){return io(t=>t.biscuitsLoading)}function gga(){return io(t=>t.accessToken)}function qdn(){return io(t=>t.keySharing)}function N_e(){return io(t=>t.subscriptionUserList)}function vga(){return io(t=>t.cumulativeDeposits)}function Aga(){return io(t=>t.userResources)}function yga(){return io(t=>t.biscuitResources)}function bga(){return io(t=>t.selectedTableHighlighter)}function xga(t){return io(e=>e.toggleERDTable[t]||!1)}function Ega(t){return io(e=>e.ERDNodeOpacity[t]||!1)}function Ydn(){return io(t=>t.tableInfoPanelId)}function Sga(){return io(t=>t.amazonFormFields)}function wga(){return io(t=>t.apiKeysList)}function _ga(){return io(t=>t.apiKeysLoading)}function Tga(){return io(t=>t.userDataUsage)}function Cga(){return io(t=>t.memberDataUsage)}function kga(){return io(t=>t.userSubscriptionDataUsage)}function Rga(){return io(t=>t.loadingUsage)}function Mga(){return io(t=>t.canUpdateUserId)}function Jdn(){return io(t=>t.productCampaignDetails)}function Zdn(){return io(t=>t.keychainDetails)}function Nga(){return io(t=>t.isAuthLoading)}function Iga(){return io(t=>t.isEmptyVizClicked)}function Xdn(){return io(t=>t.subscriptionCount)}const pkt={proof_of_sql_url:"https://docs.spaceandtime.io/docs/proof-of-sql-overview"},KLe={send_data:"Send data to chain",get_data:"Get data from chain",proof_of_sql:"Proof of SQL"},ga={CRON_EXPRESSION_ERROR:"Please Enter Cron Expression",INVALID_CRON_EXPRESSION:"Please Enter a Valid Cron Expression",ENTER_CRON_EXPRESSION:"Please Enter a Cron Expression",CONNECTED_TO:t=>`Connected to ${t} network`,SOMETHING_WENT_WRONG:"Something went wrong! try again later",UNABLE_TO_CREATE_SUBSCRIPTION:"Unable to create subscription. Please try again later",DELETE:"Delete",FUND:"Fund",ADD_CONSUMER:"Add Consumer",ADD_FUND:"Add Fund",EDIT:"Edit",CANCEL:"Cancel",CANCEL_SUBSRIPTION:"Cancel Subscription",SUBSCRIPTION_ID:"SubscriptionId (unit64)",CONSUMER_ADDRESS:"Consumer (address)",WRITE:"Write",CREATE:"Create",CHAINLINK_SUBSCRIPTIONS_TITLE:"Chainlink Subscriptions",OWNER_ADDRESS:"Owner Address",BACK:"Back",TO_ADDRESS:"to (address)",SCHEDULE_JOB:"Schedule your job",EXAMPLE_OPTIONS:"Example options:",ORACLE_JOB_CREATED:"Oracle Job Created",FUND_ADDED:"Fund Added",ORACLE_JOB_PAUSED:"Oracle Job Paused",ORACLE_JOB_CANCELLED:"Oracle Job Cancelled",ORACLE_JOB_RESUME:"Oracle Job Resumed",ORACLE_JOB_UPDATED:"Oracle Job Updated",LINK:"Link",MY_SAVED_ORACLE_JOBS:"My Saved Oracle Jobs",REFRESH:"Refresh",POLYGON:"Polygon",ETHEREUM:"Ethereum",SEPOLIA:"Sepolia",MUMBAI:"Mumbai",PLEASE_ENTER_FUND_AMOUNT:"Please enter fund amount",PLEASE_ENTER_CONSUMER_ADDRESS:"Please enter consumer address",PLEASE_ENTER_VALID_CONSUMER_ADDRESS:"Please enter a valid consumer address",CRON_EXPRESSION_PLACEHOLDER:"*/15 * * * *",EVERY_15:"Every 15 minutes",EVERY_HOUR:"Every hour",EVERY_MONTH:"First of every month",EVERY_WEEKDAY:"30 minutes past every two hours on every weekday",MON_WED_FRI:"Monday, Wednesday, Friday at 8:00 and 16:00",EVERY_15_VALUE:"*/15 * * * *",EVERY_HOUR_VALUE:"0 * * * *",EVERY_MONTH_VALUE:"0 0 1 * *",EVERY_WEEKDAY_VALUE:"30 */2 * * 1-5",MON_WED_FRI_VALUE:"0 8,16 * * 1,3,5",WHAT_IS_CRON_EXPRESSION:"What is a CRON expression?",CRON_DESCRIPTION:"The CRON expression is a shorthand way to create a time schedule. Use the provided example buttons to experiment with different schedules and then create your own.",ACCORDING_TO_FORMAT:"Cron schedules are interpreted according to this format:",MINUTE:"minute (0 - 59)",HOUR:"hour (0 - 23)",DAY_OF_MONTH:"day of the month (1 - 31)",MONTHS:"month (1 - 12)",DAY_OF_WEEK:"day of the week (0 - 6) (Sunday to Saturday)",ALL_TIME:"All times are in UTC",RANGE_EXP:'- can be used for range e.g. "0 8-16 *"',INTERVAL_EXP:'/ can be used for interval e.g. "0 /2"',LIST_EXP:'can be used for list e.g. "0 17 0,2,4"',SPECIAL_LIMIT:"Special limitations:",NO_SPECIAL_CHAR:"no special characters: ? L W # lists can",MAX_LENGTH_WORDS:"have a max length of 26 no words",ENTER_FUND_AMOUNT_ERROR_MSG:"Please enter a fund amount",SELECT_NETWORK:"Select Network",SEPOLIA_FUND_PLACEHOLDER:"1.7",MUMBAI_FUND_PLACEHOLDER:"0.5",SHOW_MY_QUERIES:"Show My Queries",NEW_QUERY:"New Query",MY_QUERIES:"My Saved Queries",QUERY:"Query",RUN_VIEW_REQUEST:"runViewRequest",VIEW_NAME:"View Name",NFT_BALANCE:"NFT-balance",JOB_ID:"Job ID",RESOURCE_ID:"Resource ID",FUNCTION_NAME:"Function Name",RUN_QUERY_REQUEST:"runQueryRequest",BINANCE:"Binance",REMOVE_CONSUMER:"Remove Consumer",SELECT_CONSUMER_ADDRESS:"Select Consumer Address",VIEW:"view",QUERY_BODY:"query",PLEASE_CONFIRM_LINK_TRANSFER_TRANSACTION:"Please confirm LINK transfer transaction",PLEASE_WAIT_FOR_TRANSACTION_CONFIRMATION:"Please wait until  the transfer is confirmed",VIEW_YOUR_TRANSACTION_HERE:"View your transaction here",CONFIRM_LINK_TRANSFER:"Confirm LINK transfer",WAITING_FOR_CONFIRMATION:"Waiting for Confirmation",SUBSCRIPTION_CREATED_SUCCESSFULLY:"Subscription Created Successfully",SUBSCRIPTION_DELETED_SUCCESSFULLY:"Subscription Deleted Successfully",FUND_ADDED_SUCCESSFULLY:"Fund Added Successfully",CONSUMER_ADDED_SUCCESSFULLY:"Consumer Added Successfully",CONSUMER_REMOVED_SUCCESSFULLY:"Consumer Removed Successfully",TRANSACTION_REJECTED:"Transaction Rejected",STATUS_CODE_400:400,STATUS_CODE_4001:4001,STATUS_CODE_4902:4902,STATUS_CODE_200:200,STATUS_CODE_201:201,STATUS_CODE_204:204,CONFIRM_CREATE_SUBSCRIPTION:"Confirm Create New Subscription",UPKEEP_ID:"The upkeep id",IS:"is",PLEASE_ENTER_VALID_AMOUNT:"Please enter valid amount",PLEASE_SELECT_CONSUMER_ADDRESS:"Please select consumer address",OPTIMIZE_GAS_HEADING:"Optimize Gas (Choose Datatype)",PIPE_ADDED__FOR_STRING_AND_BYTE:'a "|" (pipe) was added to your payload to ensure comma separation',PLEASE_SELECT_NETWORK:"Please select network",ADD_FUND_ORACLE_JOB_DESCRIPTION:"To ensure uninterrupted operation of your oracle jobs, please make sure to add LINK tokens",WALLET_NOT_WHITELISTED:"Wallet not Whitelisted",WALLET_NOT_WHITELISTED_SUBTITLE:"Your wallet is not whitelisted to use Chainlink functions subscription. ",WALLET_NOT_WHITELISTED_SUBTITLE_2:" to get the beta access of the Chainlink functions.",CHECK_WALLET_WHITELIST:"Check Wallet Whitelist",BETA_ACCESS_LINK:"Beta Access Link",BETA_ACCESS_URL:"https://chainlinkcommunity.typeform.com/requestaccess?typeform-source=chain.link",CHECK_WALLET_WHITELIST_SUBTITLE:"Please wait while we are checking if your wallet is whitelisted for chainlink functions subscription or not",OPTIMIZE_GAS_INFO_TEXT:"We only send the first row data to chain from the query results retrieved to keep the gas fee minimal.",QUERY_EDITOR_HEAD_TEXT:"Query result to send to your contract"},WU={create_subscription:{title:"Confirm Create New Subscription",subTitle:"Please confirm create subscription transaction"},add_consumer:{title:"Confirm Add Consumer",subTitle:"Please confirm add consumer transaction"},add_fund:{title:"Confirm Add Fund",subTitle:"Please confirm add fund transaction"},remove_consumer:{title:"Confirm Remove Consumer",subTitle:"Please confirm remove consumer transaction"},delete_subsctiption:{title:"Confirm Delete Subscription",subTitle:"Please confirm delete subscription transaction"}},sT={list:"list",editor:"editor"},Pga=[{label:"Subscription ID",dataKey:"subscription_id",width:150},{label:"Balance (LINK)",dataKey:"balance",width:200},{label:"Consumers",dataKey:"consumers",width:600}],hV={ETHEREUM:"0x3c79f56407DCB9dc9b852D139a317246f43750Cc",POLYGON:"0xEe9Bf52E5Ea228404bB54BCFbbDa8c21131b9039"},Oga={MUMBAI:"0xeA6721aC65BCeD841B8ec3fc5fEdeA6141a0aDE4",SEPOLIA:"0x649a2C205BE7A3d5e99206CEEFF30c794f0E31EC"},Lga={ETHEREUM:"0x779877A7B0D9E8603169DdbD7836e478b4624789",POLYGON:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB"},ehn={MAX_STRING2D_BUFFER_SIZE:256,MAX_STRING_BUFFER_SIZE:256,MAX_UINT_VALUE:1157e74},Of={SEPOLIA:"Sepolia",MUMBAI:"Mumbai",ETHEREUM:"Ethereum",POLYGON:"Polygon"},m0={remove_consumer:{key:"remove_consumer",label:"Remove Consumer",successMessage:ga.CONSUMER_REMOVED_SUCCESSFULLY},add_consumer:{key:"add_consumer",label:"Add Consumer",successMessage:ga.CONSUMER_ADDED_SUCCESSFULLY},add_fund:{key:"add_fund",label:"Add Fund",successMessage:ga.FUND_ADDED_SUCCESSFULLY},delete_subscription:{key:"delete_subscription",label:"Delete Subscription"}},Bga=[{label:"Confirm LINK Transfer",id:1},{label:"Waiting for Confirmation",id:2},{label:"Receive Transfer Confirmation",id:3}],Dga=[{label:"Check Wallet Whitelist",id:0},{label:"Create Subscription",id:1},{label:"Waiting for Confirmation",id:2},{label:"Receive Confirmation",id:3}],$ga=(t,e)=>e===Of.SEPOLIA?`https://sepolia.etherscan.io/tx/${t}`:e===Of.MUMBAI?`https://mumbai.polygonscan.com/tx/${t}`:"",Wue={uint256:{key:"uint256",message:"Concatenate to Integer (Max Length: 32 bytes)",label:"Integer"},bytes:{key:"bytes",message:"Concatenate to Bytes (Max Length: 256 bytes)",label:"Bytes"},string:{key:"string",message:"Concatenate to String (Max Length: 256 bytes)",label:"String"}},Fga={loading:{},dashboardId:null,selectedDashboardDetails:null,dashboardDetail:null,queriesResult:{},layoutStateIndex:0,dashboardViewLoading:!1,layouts:[],layoutStates:[],savedLayouts:[],dragItem:null,breakPoint:"md",loadLayout:!1,infoView:!1,imgMetadata:{imgUrl:"",useImgColors:!1,chartColors:[],chartBackground:[],titleColor:""},queryError:"",isRunning:!1,durationMs:"",queryResult:"",toggleVisTable:ii.table,isOfficialDashboard:!1,isChatGPTLoading:!1,chatGPTResult:"",chatGPTError:"",saveSuggestedQuery:{queryText:"",resourceId:"",queryId:""},isWidgetConfigSet:!1,chatGptPrompt:"",isChartAddedToDash:[],isCounterAddedToDash:[],dashboardDetailLoading:!1,dashboardVisualsContent:[],dashboardAllVisualsLoading:!1,dashboardVisualLoading:!1,dashboardDetailError:void 0,dashboardDetailStatus:void 0,dashboardLoader:!1,dashDqlRunCount:0,chatGPTContext:"",widgetsDashLoader:!1,isErrOpen:!1,isEmptyRowCount:!1,isSetAsHome:{},slugName:"",isVisibilitySet:!1,slugNameError:"",isTableAddedToDash:!1,isUnsavedChangesDash:!1,visibility:"",isForkDashboard:!1},us=yE(()=>({...Fga}));function tit(){return us(t=>t.dashboardViewLoading)}function fV(){return us(t=>t.selectedDashboardDetails)}function f9(){return us(t=>t.dashboardDetail)}function nit(){return us(t=>{let e=t.layoutStates[t.layoutStateIndex]||[];return e=e.sort((n,r)=>n.i-r.i),e})}function jga(){return us(t=>{let e=t.layoutStates[t.layoutStateIndex]||[];e=e.sort((r,a)=>r.i-a.i);const n=e.map(r=>{if(r){const{h:a,w:o,x:s,y:l,i:c,id:u,visualId:d,isResizable:h,type:f}=r;return{h:a,w:o,x:s,y:l,i:c,visualId:u,minH:r.type==="markdown"?2:hit(r),minW:4,maxH:fit(r),maxW:pit(r),isResizable:(h||!!u||!!d)&&f!=="header"}}return[]});return{[t.breakPoint]:n}})}function thn(){return us(t=>t.dragItem)}function Hga(){return us(t=>t.layoutStates)}function Uga(){return us(t=>t.layoutStateIndex)}function zga(){return us(t=>t.breakPoint)}function Gga(){return us(t=>t.infoView)}function koe(){return us(t=>t.isRunning)}function _p(){return us(t=>t.imgMetadata||{})}function I_e(){return us(t=>t.toggleVisTable)}function P_e(){return us(t=>t.queryResult)}function rit(){return us(t=>t.queryError)}function Vga(){return us(t=>t.isOfficialDashboard)}function nhn(){return us(t=>t.chatGPTResult||"")}function rhn(){return us(t=>t.chatGPTError||"")}function ihn(){return us(t=>t.isChatGPTLoading||!1)}function Kga(){return us(t=>t.isWidgetConfigSet||!1)}function ahn(){return us(t=>t.chatGptPrompt||"")}function Wga(){return us(t=>t.isChartAddedToDash||[])}function Qga(){return us(t=>t.isCounterAddedToDash||[])}function qga(){return us(t=>t.dashboardLoader||!1)}function Yga(){return us(t=>t.widgetsDashLoader||!1)}function Jga(){return us(t=>t.dashboardDetailError||void 0)}function Zga(){return us(t=>t.dashboardDetailLoading||!1)}function Xga(){return us(t=>t.dashboardVisualLoading||!1)}function ohn(){return us(t=>t.dashboardDetailStatus||void 0)}function eva(){return us(t=>t.dashDqlRunCount||0)}function tva(){return us(t=>t.isErrOpen)}function shn(){return us(t=>t.isEmptyRowCount||!1)}function lhn(){return us(t=>t.isSetAsHome)}function chn(){return us(t=>t.slugName)}function uhn(){return us(t=>t.isVisibilitySet)}function dhn(){return us(t=>t.slugNameError)}function nva(){return us(t=>t.isTableAddedToDash)}function rva(){return us(t=>t.isUnsavedChangesDash)}function iit(){return us(t=>t.visibility)}function iva(){return us(t=>t.isForkDashboard)}const ava=[],hhn={visualId:"",connectionUrl:null,queryId:null,loading:!1,chartLoading:!1,chartFields:{},tableFields:{},counterFields:{},extraChartSeries:[],selectedQueryText:null,chartType:null,queryResult:{},chartDetailStatus:void 0,selectedChartDetailsError:void 0,queryError:void 0,queryRunning:!1,columns:[],chartState:"",savedQueryIdDetails:{},selectedChartDetails:null,showTableSaveModal:!1,confirmDialogLoading:!1,viewModal:{name:"",chartName:"",chartTags:[],chartDescription:"",viewName:"",refreshInterval:null},isCounterDecimal:!0,userSetVisibility:"",isMaterializedViewChecked:!1,isAutoRefreshedVisual:!1,isFork:!1},Yc=yE(()=>({...hhn}));function qw(){return Yc(t=>t.chartFields)}function gO(){return Yc(t=>t.tableFields)}function p9(){return Yc(t=>t.counterFields)}function pV(){return Yc(t=>t.selectedChartDetails)}function O_e(){return Yc(t=>t.savedQueryIdDetails||{})}function pN(){return Yc(t=>t.chartType)}function fhn(){return Yc(t=>t.extraChartSeries)}function ait(){return Yc(t=>t.queryError)}function oit(){return Yc(t=>t.queryRunning)}function ova(){return Yc(t=>t.chartDetailStatus||void 0)}function sva(){return Yc(t=>t.selectedChartDetailsError||void 0)}function phn(){return Yc(t=>{const e=t.queryResult;return Ft.isEmpty(e)?"":"finished"})}function mV(){return Yc(t=>{const e=t.queryResult;return Ft.isEmpty(e)?ava:e==null?void 0:e.fieldsMetadata})}function sit(){return Yc(t=>{const e=t.queryResult;return Ft.isEmpty(e)?[]:e==null?void 0:e.items})}function mhn(){return Yc(t=>{var n;const e=t.queryResult;return Ft.isEmpty(e)?0:(n=e==null?void 0:e.items)==null?void 0:n.length})}function Roe(){return Yc(t=>{var e;return((e=t.queryResult)==null?void 0:e.dataframesObject)||{}})}function L_e(){return Yc(t=>t.confirmDialogLoading)}function ghn(){return Yc(t=>t.viewModal)}function lva(){return Yc(t=>t.isCounterDecimal)}function cva(){return Yc(t=>t.userSetVisibility)}function lit(){return Yc(t=>t.isMaterializedViewChecked)}function cit(){return Yc(t=>t.isAutoRefreshedVisual)}function uva(){return Yc(t=>t.isFork)}const mkt={login:{methods:{metamask:"metamask",username_password:"username_password"}},signup:{methods:{metamask:"metamask",username_password:"username_password"}}};var lo=(t=>(t.user_logged_in="user_logged_in",t.user_registered="user_registered",t.user_logged_out="user_logged_out",t.user_profile_updated="user_profile_updated",t.user_password_reset="user_password_reset",t.page_view="page_view",t.page_error="page_error",t.button_click="button_click",t.submit_success="submit_success",t.submit_failed="submit_failed",t.chatbot_visibility="chatbot_visibility",t.chatbot_prompt_input="chatbot_prompt_input",t.outbound_links="outbound_links",t.search_datasets="search_datasets",t.selected_chain_on_erd="selected_chain_on_erd",t.selected_namespace_on_erd="selected_namespace_on_erd",t.selected_erd_layout_view="selected_erd_layout_view",t.contract_submission="contract_submission",t.contract_submission_success="contract_submission_success",t.contract_submission_error="contract_submission_error",t.dashboard_created="dashboard_created",t.dashboard_updated="dashboard_updated",t.dashboard_deleted="dashboard_deleted",t.dashboard_published="dashboard_published",t.query_execution="query_execution",t.query_execution_success="query_execution_success",t.query_execution_error="query_execution_error",t.query_aborted="query_aborted",t.query_saved="query_saved",t.query_updated="query_updated",t.query_deleted="query_deleted",t.query_published="query_published",t.visualizations_filter="visualizations_filter",t.visualizations_created="visualizations_created",t.visualizations_updated="visualizations_updated",t.visualizations_deleted="visualizations_deleted",t.visualizations_published="visualizations_published",t.card_added="card_added",t.card_deleted="card_deleted",t.default_card="default_card",t.subscription_created="subscription_created",t.subscription_updated="subscription_updated",t.subscription_cancelled="subscription_cancelled",t.subscription_joined="subscription_joined",t.credit_purchase="purchase",t.subscribe="subscribe",t.pay_balance="custom_revenue",t.subscription_leave="subscription_leave",t))(lo||{});const mo=(t,e)=>{const n={userId:JSON.stringify(localStorage.getItem("userId")||""),...e};IZe.gtag("event",t,n)},_a={login:t=>{mo(lo.user_logged_in,t),IZe.gtag("set",t)},signup:t=>{mo(lo.user_registered,t)},logout:()=>{mo(lo.user_logged_out)},userProfileUpdated:t=>{mo(lo.user_profile_updated,t)},passwordReset:()=>{mo(lo.user_password_reset)},pageView:t=>{mo(lo.page_view,t)},pageError:t=>{mo(lo.page_error,t)},buttonClick:t=>{mo(lo.button_click,t)},chatbotVisibility:t=>{mo(lo.chatbot_visibility,t)},chatbotInput:t=>{mo(lo.chatbot_prompt_input,t)},searchDataset:t=>{mo(lo.search_datasets,t)},selectedChainOnERD:t=>{mo(lo.selected_chain_on_erd,t)},selectedNamespaceOnERD:t=>{mo(lo.selected_namespace_on_erd,t)},selectedERDLayout:t=>{mo(lo.selected_erd_layout_view,t)},contractSubmission:t=>{mo(lo.contract_submission,t)},contractSubmissionSuccess:t=>{mo(lo.contract_submission_success,t)},contractSubmissionError:t=>{mo(lo.contract_submission_error,t)},dashboardCreated:t=>{mo(lo.dashboard_created,t)},dashboardUpdated:t=>{mo(lo.dashboard_updated,t)},dashboardDeleted:t=>{mo(lo.dashboard_deleted,t)},dashboardPublished:t=>{mo(lo.dashboard_published,t)},queryExecution:t=>{mo(lo.query_execution,t)},queryExecutionSuccess:t=>{mo(lo.query_execution_success,t)},queryExecutionError:t=>{mo(lo.query_execution_error,t)},queryAborted:t=>{mo(lo.query_aborted,t)},querySaved:t=>{mo(lo.query_saved,t)},queryUpdate:t=>{mo(lo.query_updated,t)},queryDelete:t=>{mo(lo.query_deleted,t)},queryPublish:t=>{mo(lo.query_published,t)},visualizationFilter:t=>{mo(lo.visualizations_filter,t)},visualizationCreated:t=>{mo(lo.visualizations_created,t)},visualizationUpdated:t=>{mo(lo.visualizations_updated,t)},visualizationDeleted:t=>{mo(lo.visualizations_deleted,t)},visualizationPublished:t=>{mo(lo.visualizations_published,t)},outboundLinks:t=>{mo(lo.outbound_links,t)},cardAdded:t=>{mo(lo.card_added,t)},cardDeleted:t=>{mo(lo.card_deleted,t)},defaultCard:t=>{mo(lo.default_card,t)},subscriptionCreated:t=>{mo(lo.subscription_created,t)},subscriptionJoined:t=>{mo(lo.subscription_joined,t)},subscriptionCardUpdated:t=>{mo(lo.subscription_updated,t)},subscriptionCanceled:t=>{mo(lo.subscription_cancelled,t)},creditPurchase:t=>{mo(lo.credit_purchase,t)},subscribe:t=>{mo(lo.subscribe,t)},payBalance:t=>{mo(lo.pay_balance,t)},subscriptionLeave:t=>{mo(lo.subscription_leave,t)}},{getState:gkt}=io,dva=t=>{const{graphType:e,...n}=t;return{chartType:e||"",...n}},hva=t=>{const{graphType:e="",counterValue:n=0,columnName:r="",metric:a="",prefix:o="",suffix:s="",label:l="",title:c="",decimal:u=""}=t;return{chartType:e,counterValue:n,columnName:r,metric:a,prefix:o,suffix:s,label:l,title:c,decimal:u}},T2=t=>{var g,v,A,y,S,x;const{graphType:e,graphMeta:n}=t,{axis:r,dateFormat:a,legendEnabled:o,sliderEnabled:s,metricEnabled:l}=n||{},{x:c,y:u,seriesField:d,...h}=r||{};if(e===ii.table)return dva(t);if(e===ii.counter)return hva(t);const f={},p={title:((g=u==null?void 0:u.labelName)==null?void 0:g.toUpperCase())||((v=u==null?void 0:u.columnName)==null?void 0:v.toUpperCase())},m={title:((A=c==null?void 0:c.labelName)==null?void 0:A.toUpperCase())||((y=c==null?void 0:c.columnName)==null?void 0:y.toUpperCase())};return a&&(m.dateFormat=a),c!=null&&c.tickLayout&&(m.tickLayout=c.tickLayout),c!=null&&c.spacing&&(m.spacing=c.spacing),c!=null&&c.unformatted&&(m.unformatted=c.unformatted),u!=null&&u.spacing&&(p.spacing=u.spacing),u!=null&&u.unformatted&&(p.unformatted=u.unformatted),u!=null&&u.position&&(p.position=u.position),u!=null&&u.metric&&(p.metric=u.metric),Object.keys(h).forEach((w,_)=>{var C,R;f[`y${_+1}Field`]={value:h[w].columnName||"",chartType:h[w].graphType||"",yAxisIndex:h[w].yAxisIndex},p[`y${_+1}Title`]=((C=h[w])==null?void 0:C.labelName)||((R=h[w])==null?void 0:R.columnName)}),{chartType:e||"",fields:{xField:((S=c==null?void 0:c.columnName)==null?void 0:S.toUpperCase())||"",yField:((x=u==null?void 0:u.columnName)==null?void 0:x.toUpperCase())||"",seriesField:(d==null?void 0:d.columnName)||null,...f,xAxisData:{...m},yAxisData:{...p},legendEnabled:o||"",sliderEnabled:s||"",metricEnabled:l||""}}},{getState:gV,setState:Ao}=Yc,B_e=(t,e,n)=>{let r="";const{chartFields:a}=gV();e==="xField"||e==="yField"?r="title":e==="y1Field"&&(r="y1Title"),Ao({chartFields:{...a,...ydn(a,t,r,(n==null?void 0:n.toString())||""),[e]:n}})},fva=(t,e,n)=>{const{chartType:r}=n,{xField:a,yField:o,axisLabels:s,...l}=n.fields||{},c=n.fields||{},u=Ft.keys(l),d=[];u.forEach(h=>{const f={fieldId:h,inputType:"field-dropdown",label:h.replaceAll("Field","-axis"),required:!1};d.push(f)}),r===ii.counter?Ao({visualId:t,queryId:e,chartType:r,counterFields:n}):r===ii.table?Ao({visualId:t,queryId:e,chartType:r,tableFields:n}):Ao({visualId:t,queryId:e,chartType:r,extraChartSeries:d,chartFields:c})},jne=t=>{Ao({selectedChartDetails:t})},pva=t=>{Ao({chartType:t})},D_e=t=>{Ao({chartFields:t})},mva=t=>{Ao({tableFields:t})},oVe=t=>{Ao({counterFields:t})},vhn=t=>{const{chart:e,type:n,metadata:r}=t,{chartType:a,fields:o}=e||t,{xField:s,yField:l,xAxisData:c,yAxisData:u,seriesField:d,legendEnabled:h,sliderEnabled:f,metricEnabled:p,...m}=o||{},g={};if(n===Di.TABLE)return{...r,graphType:"table"};if(n===Di.COUNTERCARD)return{...r,graphType:"counter"};Object.keys(m).forEach((A,y)=>{g[`y${y+1}`]={axisType:"",columnName:m[A].value||"",graphType:m[A].chartType||"",yAxisIndex:m[A].yAxisIndex,labelName:u&&y===0?u==null?void 0:u.y1Title:""}});const v=d&&{seriesField:{columnName:d}};return{graphType:a||"",graphMeta:{axis:{x:{axisType:"",columnName:s||"",labelName:c&&(c==null?void 0:c.title)||s||"",spacing:c&&(c==null?void 0:c.spacing),tickLayout:c&&(c==null?void 0:c.tickLayout),unformatted:c&&(c==null?void 0:c.unformatted)},y:{axisType:"",columnName:l||"",labelName:u&&(u==null?void 0:u.title)||l||"",spacing:u&&(u==null?void 0:u.spacing),position:u&&(u==null?void 0:u.position),metric:u&&(u==null?void 0:u.metric),unformatted:u&&(u==null?void 0:u.unformatted)},...g,...v},dateFormat:c&&(c==null?void 0:c.dateFormat)||"",numberFormat:"",legendEnabled:h||"",sliderEnabled:f||"",metricEnabled:p||"",showDataLabels:!1}}},sVe=t=>{if(t&&(t!=null&&t.metadata)){let{metadata:e}=t;e=e?JSON.parse(e):{},e=T2(e);const n={...t,metadata:e};Ao({selectedChartDetails:n})}},Ahn=async(t,e,n="false")=>{var x;const r=AE(),{queryResult:a,isMaterializedViewChecked:o,savedQueryIdDetails:s}=gV(),{chartName:l,chartTags:c,chartDescription:u,type:d,queryName:h,viewName:f,refreshInterval:p}=e,m=vhn(e),g=localStorage.getItem("userId")||"",{data:v={}}=s,{slug:A,queryText:y}=v;let{id:S=""}=v;if((x=Object.keys(s==null?void 0:s.data))!=null&&x.length){const{scope:w,metadata:_="",userId:C="",apiAlert:R}=s.data;if(!S||n==="true"){const k={metadata:_||"",...ree(c),description:u||"",name:h||"Untitled Query",scope:w,queryText:y,visibility:sr.private},{data:P,error:N}=await Bn.createQuery(k);if(N)throw Kn(N||"",R),N;S=P==null?void 0:P.id}else if(C!==g){const{data:k,error:P}=await Bn.forkQuery(A);if(P)throw Kn(P||"",R),P;k!=null&&k.id&&(S=(k==null?void 0:k.id)||"")}}if(o&&S){const w=await f1a(f,S,p),{data:_,error:C}=w||{};if(_){const{data:R}=await Bn.getQuery(S,!0);await xit(R||{});const k={queryId:S,name:l,visualType:d,...ree(c),description:u||"",metadata:JSON.stringify(m)};let P=null;if(t?(k.id=t,P=await Bn.updateVisual(t,k)):P=await Bn.saveVisual(k),Ao({chartState:VL.loading}),P!=null&&P.data){e1e(),t?(_a.visualizationUpdated({vizId:t,vizName:(k==null?void 0:k.name)||"",vizType:(k==null?void 0:k.visualType)||"",timestamp:Date.now()}),setTimeout(()=>{zi(q.WIDGET_UPDATED_SUCCESS(ka[d]))},300)):(_a.visualizationCreated({vizId:P==null?void 0:P.data,vizName:(k==null?void 0:k.name)||"",vizType:(k==null?void 0:k.visualType)||"",timestamp:Date.now()}),setTimeout(()=>{zi(q.WIDGET_SAVED_SUCCESS(ka[d]))},300));const{data:N}=P;N&&sVe(N),mh(S,{data:a.items,columns:a.fieldsMetadata,warning:!1,error:!1,message:!1,filteredDataFrames:a.filteredDataFrames,dataframesObject:a.dataframesObject,dataFrames:a.dataFrame}),Ao({chartState:VL.saved}),r==null||r.push(`${Qt.charts}?activeTab=${d}&visualType=${d}&widgetTypeEnum=${d}`)}else P!=null&&P.error&&(Kn(P==null?void 0:P.error),Ao({chartState:VL.error}))}C&&Kn(C||"Something went wrong")}else{const w={queryId:S,name:l,visualType:d,...ree(c),description:u||"",metadata:JSON.stringify(m)};let _=null;if(t?(w.id=t,_=await Bn.updateVisual(t,w)):_=await Bn.saveVisual(w),Ao({chartState:VL.loading}),_!=null&&_.data){e1e(),t?(_a.visualizationUpdated({vizId:t,vizName:(w==null?void 0:w.name)||"",vizType:(w==null?void 0:w.visualType)||"",timestamp:Date.now()}),setTimeout(()=>{zi(q.WIDGET_UPDATED_SUCCESS(ka[d]))},300)):(_a.visualizationCreated({vizId:_==null?void 0:_.data,vizName:(w==null?void 0:w.name)||"",vizType:(w==null?void 0:w.visualType)||"",timestamp:Date.now()}),setTimeout(()=>{zi(q.WIDGET_SAVED_SUCCESS(ka[d]))},300));const{data:C}=_;C&&sVe(C),mh(S,{data:a.items,columns:a.fieldsMetadata,warning:!1,error:!1,message:!1,filteredDataFrames:a.filteredDataFrames,dataframesObject:a.dataframesObject,dataFrames:a.dataFrame}),Ao({chartState:VL.saved}),r==null||r.push(`${Qt.charts}?activeTab=${d}&visualType=${d}&widgetTypeEnum=${d}`)}else _!=null&&_.error&&(Kn(_==null?void 0:_.error),Ao({chartState:VL.error}))}},QU=async(t,e,n,r)=>{const{selectedChartDetails:a}=gV();try{Ao({confirmDialogLoading:!0});const{status:o,error:s}=await Bn.deleteVisual(t);o===204?(_a.visualizationDeleted({vizId:t,vizName:r||"",vizType:e||"",timestamp:Date.now()}),zi(q.WIDGET_DELETED_SUCCESS(ka[e])),(a==null?void 0:a.id)===t&&Ao({selectedChartDetails:null}),n()):Kn(s||"")}catch(o){Kn((o==null?void 0:o.message)||"")}finally{Ao({confirmDialogLoading:!1})}},gva=t=>t===sr.subscription?yT.myOrgVisuals:(t===sr.private,"GRAPH"),vva=async(t,e,n)=>{try{Ao({confirmDialogLoading:!0});const{selectedChartDetails:r,userSetVisibility:a}=gV(),o=AE(),s=()=>a===sr.public?{slug:n,visibility:a}:{visibility:a},l=Co.stringify(s()),{status:c,error:u}=await Bn.publishVisual(t,l);if(c===204)_a.visualizationPublished({vizId:t,vizName:(r==null?void 0:r.name)||"",vizType:e||"",slug:n,timestamp:Date.now()}),zi(q.WIDGET_PUBLISH_SUCCESS(ka[e])),Ao({selectedChartDetails:{...r,visibility:a},confirmDialogLoading:!1}),o==null||o.push(tr.charts(gva(a)));else return u&&Kn(u),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch(r){return Kn(r==null?void 0:r.message),q.RESPONSE_ERROR_STATUS}finally{Ao({confirmDialogLoading:!1})}},Ava=async(t,e)=>{try{const{data:n,status:r,error:a}=await Bn.getVisual(t,e)||{};Ft.isEmpty(n)?Ao({selectedChartDetailsError:q.RECORD_NOT_FOUND,chartDetailStatus:r}):(sVe(n),Ao({selectedChartDetailsError:void 0})),a&&Ao({selectedChartDetailsError:a,chartDetailStatus:r})}catch{}},yva=(t,e,n,r)=>{const{chartFields:a}=gV(),o={...a[t]};r&&(o.chartType=r==null?void 0:r.replace("_chart","")),o[e]=n,Ao({chartFields:{...a,[t]:{...o}}})},bva=()=>{Ao({visualId:"",queryId:"",chartType:"",counterFields:{},queryResult:{},extraChartSeries:[],chartFields:{},savedQueryIdDetails:{}})},yhn=t=>{Ao({extraChartSeries:[...t]})},xva=async(t,e)=>{var h,f,p,m;const{queriesResult:n}=gkt(),{queryId:r,referencedResources:a,authorizationResources:o,requiresAuthorization:s}=e;if((f=(h=n[r])==null?void 0:h.data)!=null&&f.length)return Ao({queryResult:{...n[r],items:n[r].data,fieldsMetadata:n[r].columns||[]}}),null;Ao({queryRunning:!0});let l={data:null};const{biscuitList:c}=gkt(),u=g9(c,Hoe({resources:s?o:a}));try{l=await Bn.executeQuery({queryId:r,biscuits:u},((p=n[r])==null?void 0:p.visibility)===sr.public?!1:t)}catch{}const d=((m=l==null?void 0:l.data)==null?void 0:m.error)||(l==null?void 0:l.error);if(d)return Ao({queryError:d==null?void 0:d.title,queryRunning:!1,loading:!1,chartLoading:!1});if(l.data){const g=Y6(l==null?void 0:l.data);Ao({queryResult:g,queryRunning:!1,loading:!1,chartLoading:!1}),mh(r,{data:g.items,columns:g.fieldsMetadata,warning:!1,error:!1,message:!1,filteredDataFrames:g.filteredDataFrames,dataframesObject:g.dataframesObject,dataFrames:g.dataFrame})}return!1},Eva=()=>{Ao({queryResult:[],columns:[],loading:!0})},Sva=t=>{Ao({loading:t})},uit=()=>{Ao({...hhn})},wva=async(t,e,n)=>{try{const{data:r}=await Bn.getQuery(t,e);if(Ao(r?{savedQueryIdDetails:{data:r},queryId:t}:{savedQueryIdDetails:{error:q.RECORD_NOT_FOUND}}),n)return(r==null?void 0:r.name)||""}catch(r){if(Ao({savedQueryIdDetails:{error:r}}),n)return""}return""},_va=async(t,e,n,r,a)=>{const{data:o}=await Bn.getDashboardById(t==null?void 0:t.id,n),{data:s}=await Bn.getDashboardVisualsContent(t==null?void 0:t.id,n),l=o&&JSON.stringify(zfn(o,s||[],r)),c=s==null?void 0:s.map(h=>({visualId:h.id,metadata:h.dashboardVisualMetadata})),u=Ft.map(s,h=>h.id);if(!!e&&u.includes(e))return Kn(q.WIDGET_ALREADY_PRESENT);try{const{data:h,error:f="",apiAlert:p}=await Bn.putDashboardVisuals(t==null?void 0:t.id,[{visualId:e,metadata:l},...c]);return h?(zi(q.WIDGET_PINNED_TO_DASHBOARD),dVt(()=>Bn.getDashboardVisualsContent(t==null?void 0:t.id,n)),a(!0),!1):Kn(f,p)}catch(h){let f="Unknown Error";return h instanceof Error&&(f=h.message),Kn(f)}},VAe=t=>{Ao({queryResult:t})},RT=t=>{const{viewModal:e}=gV();if(typeof t=="function"){const n=t(e);Ao({viewModal:n})}else Ao({viewModal:{...e,...t}})},vkt=t=>{Ao({isCounterDecimal:t})},WLe=t=>{Ao({userSetVisibility:t})},lVe=t=>{Ao({isMaterializedViewChecked:t})},bhn=t=>{Ao({isAutoRefreshedVisual:t})},$_e=async t=>{try{const{status:e,error:n}=await Bn.forkVisual(t);if(e===201)return zi(q.VISUAL_CLONE_SUCCESS),q.RESPONSE_SUCCESS_STATUS;if(n)return Kn(n),q.RESPONSE_ERROR_STATUS}catch(e){Kn((e==null?void 0:e.message)||"")}return""},F_e=t=>{Ao({isFork:t})},{getState:Gd,setState:Xr}=us,dit=t=>{Xr({layouts:t})},Hne=Yc.setState,Tva=async(t,e,n,r,a)=>{const{loadLayout:o}=Gd(),s=e[r-1]||[];(qit(n,e[r]||[]).filter(c=>{var u,d,h,f,p;return((u=c.x)==null?void 0:u.toString())||((d=c.y)==null?void 0:d.toString())||((h=c.i)==null?void 0:h.toString())||((f=c.h)==null?void 0:f.toString())||((p=c.w)==null?void 0:p.toString())||c.name}).length>0||a)&&(o&&!a&&(t.pop(),await Xr({loadLayout:!1})),s.length>0&&s.length>n.length&&!a&&(t.pop(),await Xr({layoutStates:t})),t.push(n),await Xr({layoutStates:t,layoutStateIndex:t.length-1}))},z6=(t,e=!1)=>{if(!(t!=null&&t.length)){Xr({layoutStates:[],layoutStateIndex:0});return}const{layoutStates:n,layoutStateIndex:r}=Gd();let a=[];const o=t.sort((s,l)=>Number(s.i)-Number(l.i));a=n.slice(0,r+1),Tva(a,n,o,r,e)},xhn=t=>{Xr({layoutStates:[t],layoutStateIndex:0})},Cva=async()=>{const{layoutStateIndex:t}=Gd();await Xr({layoutStateIndex:Math.max(0,Number(t)-1)})},kva=async()=>{const{layoutStates:t,layoutStateIndex:e}=Gd();await Xr({layoutStateIndex:Math.min(t.length,e+1)})},Une=t=>{Xr({isSetAsHome:{...t}})},zne=async(t,e,n,r)=>{const a=AE(),{settings:o,userName:s,displayName:l,emailAddr:c,bio:u}=n,h={...o?JSON.parse(o):{},dashboardHomeId:e},f=JSON.stringify(h),p={userId:t,userName:s||null,displayName:l||null,emailAddr:c||null,bio:u,settings:f};try{await AO(t,p)===q.RESPONSE_SUCCESS_STATUS&&(zi(r),xhn([]),await Sit(t),e&&(Une({[e]:!0}),a==null||a.push({pathname:Qt.landingPage,state:{id:e}})))}catch(m){Kn(m==null?void 0:m.message)}},cVe=async(t,e,n)=>{const r=localStorage.getItem("userId")||"",{settings:a}=n||{},o=a?JSON.parse(a):{},{dashboardHomeId:s=""}=o;try{Hne({confirmDialogLoading:!0});const{status:l,error:c,apiAlert:u}=await Bn.deleteDashboard(t);s&&s===t&&await zne(r,"",n,q.DASHBOARD_UNSET_AS_HOME_SUCCESS),l===204?(_a.dashboardDeleted({dashId:t,timestamp:Date.now()}),zi(q.DASHBOARD_DELETED_SUCCESS),e&&e()):Kn(c||"",u)}catch(l){Kn((l==null?void 0:l.message)||"")}finally{Hne({confirmDialogLoading:!1})}},Ehn=()=>{const{visibility:t,dashboardDetail:e}=Gd();if(t)switch(t){case sr.public:return ld.exploreDashboard;case sr.subscription:return ld.myOrgDashboard;case sr.private:return ld.myDashboard;default:return ld.myDashboard}else switch(e==null?void 0:e.visibility){case sr.public:return ld.exploreDashboard;case sr.subscription:return ld.myOrgDashboard;case sr.private:return ld.myDashboard;default:return ld.myDashboard}},Shn=async(t,e)=>{try{const{selectedDashboardDetails:n}=Gd(),{slug:r}=e,a=Co.stringify(e),o=AE(),{status:s,error:l,apiAlert:c}=await Bn.publishDashboard(t,a);if(s===204)zi(q.DASHBOARD_PUBLISH_SUCCESS),Xr({selectedDashboardDetails:{...n,visibility:(e==null?void 0:e.visibility)||"",slug:r||null}}),o==null||o.push(`${tr.dashboards(Ehn())}`),_a.dashboardPublished({dashId:t,dashName:n==null?void 0:n.name,slug:r||null,timestamp:Date.now()});else return Kn(l||q.SLUG_NAME_ERROR("Slug"),c),!1;return!0}catch(n){return Kn(n==null?void 0:n.message),!1}},qU=t=>{var e;Xr({selectedDashboardDetails:t,imgMetadata:((e=t==null?void 0:t.metadata)==null?void 0:e.customImg)||{}})},wD=t=>{Xr({dashboardDetail:t})},Rva=t=>{const e=s=>({markdown:8,row:5})[s]||1,n=s=>({markdown:4})[s]||12,r=s=>({markdown:12,row:5})[s]||1,a=s=>({markdown:12})[s]||12;return{...t,w:n(t.type),h:e(t.type),x:t.x||0,y:t.y||0,minH:1,minW:3,maxH:r(t.type),maxW:a(t.type),isResizable:t.type==="markdown"}},whn=t=>t.metadata.chartType===ka.COUNTERCARD.toLowerCase()?6:8,hit=t=>t.metadata.chartType===ka.COUNTERCARD.toLowerCase()?6:(t==null?void 0:t.type)==="divider"?1:8,_hn=t=>t.metadata.chartType===ka.COUNTERCARD.toLowerCase()?5:6,fit=t=>t.metadata.chartType==="counter"?8:(t==null?void 0:t.type)==="divider"?1:12,pit=t=>t.metadata.chartType==="counter"?7:12,Mva=t=>{z6([{...t,w:_hn(t),h:whn(t),x:t.x||0,y:t.y||0,minH:hit(t),minW:4,maxH:fit(t),maxW:pit(t)}])},Nva=(t,e,n)=>{const{layoutStateIndex:r,layoutStates:a}=Gd(),o=a[r]||[],s=o==null?void 0:o.map(l=>({...l,x:e[l.i].x,y:e[l.i].y}));n?Ft.isEmpty(Ft.filter(o,l=>l.visualId===t.visualId))&&z6([...s,{...t,w:_hn(t),h:whn(t),x:t.x||0,y:t.y||0,minH:hit(t),minW:4,maxH:fit(t),maxW:pit(t)}]):z6([...s,Rva(t)])},j_e=t=>{const{layoutStates:e,layoutStateIndex:n}=Gd(),r=[...e[n]];Ft.remove(r,o=>o.i.toString()===(t==null?void 0:t.toString()));const a=r.map((o,s)=>({...o,i:s.toString()}));z6([...a],!0)},uVe=()=>{dit([]),Xr({layoutStates:[],layoutStateIndex:0})},Iva=async t=>{const{dashboardVisualMetadata:e,...n}=t;if(t){const r=t.metadata&&kM(t.metadata),a={...n,metadata:T2(r)};return{...e&&kM(e),...a,type:"visual"}}return{}},mit=async t=>{const e=[];Xr({dashboardVisualLoading:!0});for(let r=0;r<t.length;r+=1){const a=t&&Iva(t[r]);e.push(a)}const n=await Promise.all(e);return n&&Xr({dashboardVisualLoading:!1}),n},Thn=t=>{Xr({dashboardVisualsContent:t})},Chn=async(t,e,n,r)=>{var a;try{Xr({dashboardViewLoading:!0,dashboardDetailLoading:!0,dashboardAllVisualsLoading:!0,dashboardDetailError:void 0});const{data:o,error:s,status:l}=await Bn.getDashboardById(t,e,n);if(Ft.isEmpty(o)||Xr({dashboardDetail:null,dashboardDetailError:q.RECORD_NOT_FOUND,dashboardDetailStatus:l}),o){if(o.visibility==="public"&&e===!0){const u=await Bn.getDashboardFilteredByMyLikes(e);u!==void 0&&u.data&&Array.isArray(u.data)&&(o.liked=u.data.indexOf(o==null?void 0:o.id)>-1)}const c=(o==null?void 0:o.metadata)&&JSON.parse(o.metadata)||[];if(Xr({dashboardDetail:o,dashboardDetailLoading:!1,imgMetadata:(c==null?void 0:c.customImg)||{}}),o){const{data:u}=await Bn.getDashboardVisualsContent(o==null?void 0:o.id,e);Thn(u||[]);let h=[...(u==null?void 0:u.length)&&await mit(u||[])||[]];(a=c==null?void 0:c.components)!=null&&a.length&&h.push(...c.components),h=Ft.reject(h,f=>Ft.isEmpty(f)),h=h.map((f,p)=>(f.i=p.toString(),f)),h=h==null?void 0:h.sort((f,p)=>f.i-p.i),dit([...h]),z6([...h]),Xr({loadLayout:!0,savedLayouts:[...h],dashboardViewLoading:!1,dashboardAllVisualsLoading:!1,dashboardDetailError:void 0})}Xr({dashboardViewLoading:!1,dashboardDetailLoading:!1,dashboardAllVisualsLoading:!1})}s&&(Xr({dashboardViewLoading:!1,dashboardDetailLoading:!1,dashboardDetailError:s,dashboardDetailStatus:l}),r&&r()),l===404&&r&&r()}catch{}finally{Xr({dashboardViewLoading:!1,dashboardDetailLoading:!1})}return null};async function YX(t){Xr({chatGPTResult:t})}const Que=t=>{Xr({dashDqlRunCount:t})};async function khn(t,e,n,r){var o,s,l;const a={prompt:t,metadata:{context:n,error:r}};Xr({isChatGPTLoading:!0,chatGptPrompt:t});try{const c=await Bn.postGPT(a,e);(c==null?void 0:c.error)===q.QUERY_PROMPT_ABORT&&Kn(q.QUERY_PROMPT_ABORT),c!=null&&c.data&&Xr({isChatGPTLoading:!1,chatGPTResult:(o=c==null?void 0:c.data)==null?void 0:o.SQL,chatGPTContext:(l=(s=c==null?void 0:c.data)==null?void 0:s.metadata)==null?void 0:l.context,chatGPTError:""}),c!=null&&c.error&&(c==null?void 0:c.error)!==q.QUERY_PROMPT_ABORT&&Xr({chatGPTError:c==null?void 0:c.error})}catch(c){console.error(c)}finally{Xr({isChatGPTLoading:!1})}}function Pva(){const{isErrOpen:t}=Gd();Xr({isErrOpen:!t})}function Ova(t){Xr({isErrOpen:t})}const Lva=async(t,e,n,r,a,o)=>{var f,p,m,g,v;t=Yit(t),r||Xr({isRunning:!0});const{dashDqlRunCount:s,chatGPTResult:l,chatGPTContext:c}=Gd(),{resourceId:u="ETH:BLOCK"}=e?jfn(t,e):{};let d={data:null};const h=new Date;try{const A={sqlText:t.trimEnd(),validate:!0};d=await Bn.executeSQL(A,n,r);const{data:y,error:S,status:x}=d,w=(y==null?void 0:y.error)||S;if(y&&x===200){(y==null?void 0:y.length)===0&&Xr({isEmptyRowCount:!0});const _=d==null?void 0:d.data;d={data:{error:null,response:Y6(d.data),successStatus:0}};const C=new Date-h;if(r)return{success:{queryResult:(f=d.data)==null?void 0:f.response,durationMs:C,rawQueryResult:_,isRunning:!1}};Xr({queryResult:(p=d.data)==null?void 0:p.response,durationMs:C,isRunning:!1,saveSuggestedQuery:{queryText:t.replace(/\n$/,"").trim()||"",resourceId:u||""},toggleVisTable:"table",isChartAddedToDash:[],isCounterAddedToDash:[],queryError:""})}if(x===422){const{commandType:_,requiredCapabilities:C,encrypted:R}=w,k=Gfn(C),P=g9(o,C);if(C!=null&&C.length&&Ft.isEmpty(P)&&!((m=k==null?void 0:k.create)!=null&&m.length))return co(!0),WB(zm.permissionSecret),Xr({queryError:"Biscuit required",isRunning:!1});if(_.toLowerCase()==="dql"){let N={data:null,error:null};try{const L={sqlText:t.trimEnd(),resources:[u],biscuits:P};R?N=await Bn.executeEncryptedSQL(_.toLowerCase(),L,n,r):N=await Bn.runQuery(_.toLowerCase(),L,n,r);const{data:I,error:b,status:T}=N,M=(y==null?void 0:y.error)||b;if(I&&T===200){(I==null?void 0:I.length)===0&&Xr({isEmptyRowCount:!0});const D=d==null?void 0:d.data;d={data:{error:null,response:Y6(d.data),successStatus:0}};const B=new Date-h;if(r)return{success:{queryResult:(g=d.data)==null?void 0:g.response,durationMs:B,rawQueryResult:D,isRunning:!1}};Xr({queryResult:(v=d.data)==null?void 0:v.response,durationMs:B,isRunning:!1,saveSuggestedQuery:{queryText:t.replace(/\n$/,"").trim()||"",resourceId:u||""},toggleVisTable:"table",isChartAddedToDash:[],isCounterAddedToDash:[],queryError:""})}if(M)return M===q.NETWORK_ERROR?Xr({queryError:M,isRunning:!1}):r?{error:{queryError:M,isRunning:!1}}:(M===q.QUERY_ABORT&&Kn(q.QUERY_PROMPT_ABPRT),Xr({queryError:M,isRunning:!1}))}catch{}}}if(w)return w===q.NETWORK_ERROR?Xr({queryError:w,isRunning:!1}):(s<3&&l&&w!==q.QUERY_ABORT?(YX(""),Ova(!1),khn(a,n,c,w==null?void 0:w.detail)):s>=3&&w!==q.QUERY_ABORT&&Kn(q.NLP_MESSAGE),r?{error:{queryError:w,isRunning:!1}}:(w===q.QUERY_ABORT&&Kn(q.QUERY_PROMPT_ABPRT),Xr({queryError:w,isRunning:!1})))}catch(A){console.error("An error occurred for dashboard sql api:",A),Xr({queryError:A||"",isRunning:!1})}return null},Bva=async(t,e)=>{var c;const{id:n,metadata:r}=t,{dashboardVisualsContent:a}=Gd(),o=r&&JSON.parse(r)||[],s=JSON.stringify(zfn(t,a)),l=a==null?void 0:a.map(u=>({visualId:u.id,metadata:u.dashboardVisualMetadata}));try{Xr({widgetsDashLoader:!0});const{data:u,error:d="",apiAlert:h}=await Bn.putDashboardVisuals(n,[{visualId:e,metadata:s},...l]),{data:f}=await Bn.getDashboardVisualsContent(n,!0);if(u&&f){Thn(f),zi(q.WIDGET_ADDED),Xr({isWidgetConfigSet:!1,chatGPTResult:""});let m=[...f&&await mit(f)||[]];(c=o==null?void 0:o.components)!=null&&c.length&&m.push(...o.components),m=m.map((g,v)=>(g.i=v.toString(),g)),m=m==null?void 0:m.sort((g,v)=>g.i-v.i),dit([...m]),z6([...m]),Xr({loadLayout:!0,savedLayouts:[...m],widgetsDashLoader:!1,dashboardDetailError:void 0})}return Kn(d,h)}catch(u){let d="Unknown Error";return u instanceof Error&&(d=u.message),Kn(d)}finally{Xr({widgetsDashLoader:!1})}},Dva=async t=>{const{type:e,name:n,description:r}=t,{saveSuggestedQuery:a,dashboardDetail:o}=Gd(),{queryId:s}=a,l=vhn(t),c={queryId:s,name:n,visualType:e,description:r||"",metadata:JSON.stringify(l)},u=await Bn.saveVisual(c),{data:d}=u;d!=null&&d.id&&(zi(q.WIDGET_SAVED_SUCCESS(ka[e])),Bva(o,d==null?void 0:d.id))},$va=()=>{Xr({saveSuggestedQuery:{queryText:"",resourceId:"",queryId:""}})},Fva=async t=>{const{saveSuggestedQuery:e}=Gd(),n={...e,...t};if(!(e!=null&&e.queryId)){const{data:r,error:a,apiAlert:o}=await Bn.createQuery(n);if(a){Kn(a,o);return}r&&(Xr({saveSuggestedQuery:{queryId:r.id||""}}),zi(q.QUERY_SAVED_SUCCESS))}},jva=()=>{Xr({isWidgetConfigSet:!1,isCounterAddedToDash:[]})},Hva=(t,e,n)=>{const{saveSuggestedQuery:r,isCounterAddedToDash:a}=Gd(),{queryId:o}=r;Hne({visualId:o||"",queryId:o,chartType:ii.counter,counterFields:t,queryResult:e}),Xr({isWidgetConfigSet:!0,isCounterAddedToDash:[...a,n]})},Uva=(t,e,n)=>{const{saveSuggestedQuery:r,isChartAddedToDash:a}=Gd(),{queryId:o}=r,{type:s,config:l}=t,{xField:c,yField:u,xAxisData:d,yAxisData:h,axisLabels:f,seriesField:p,legendEnabled:m,sliderEnabled:g,...v}=l.configItem||{},A=Ft.keys(v),y={xField:l.xField||l.colorField,yField:l.yField||l.angleField};l.axisLabels&&(y.axisLabels=l.axisLabels);const S=[];return!p&&A.forEach(x=>{y[x]={value:typeof v[x]=="object"?v[x].value:v[x],chartType:typeof v[x]=="object"?v[x].chartType:s==null?void 0:s.replace("_chart","")};const w={fieldId:x,inputType:"field-dropdown",label:x.replaceAll("Field","-axis"),required:!1};S.push(w)}),p&&(y.seriesField=p),y.legendEnabled=m,y.sliderEnabled=g,Hne({chartType:t.type,extraChartSeries:S,chartFields:y,queryResult:e,savedQueryIdDetails:{data:e},queryId:o}),Xr({isWidgetConfigSet:!0,isChartAddedToDash:[...a,n]}),null};function dVe(){Xr({queryResult:{},isRunning:!1,queryError:"",isEmptyRowCount:!1,chatGptPrompt:"",toggleVisTable:"table"})}function Akt(t){Xr({isOfficialDashboard:t})}function Rhn(t){Xr({toggleVisTable:t})}const zva=()=>{const{layoutStates:t,layoutStateIndex:e}=Gd(),n=t[e];return Ft.partition(n,r=>!!r.visualId||r.type==="visual")},Gva=(t,e,n)=>{Ft.isEmpty(t)?_a.dashboardUpdated({dashId:e||`${O0.uuid()}`,dashName:(n==null?void 0:n.name)||"",timestamp:Date.now()}):_a.dashboardCreated({dashId:`${O0.uuid()}`,dashName:(n==null?void 0:n.name)||"",timestamp:Date.now()})},Vva=t=>{const{visibility:e,dashboardDetail:n}=Gd();return e===sr.public||(n==null?void 0:n.visibility)===sr.public?{slug:t,visibility:e||(n==null?void 0:n.visibility)}:{visibility:e||(n==null?void 0:n.visibility)}},Kva=()=>{const{dashboardDetail:t,visibility:e,isVisibilitySet:n,slugName:r}=Gd();return n&&e===sr.public||e===sr.subscription||n&&(t==null?void 0:t.visibility)===sr.subscription&&(e===sr.private||e===sr.public)||!n&&(t==null?void 0:t.visibility)===sr.public&&r!==(t==null?void 0:t.slug)},Wva=async(t,e,n,r,a,o)=>{const[s,l]=zva(),c={...t,metadata:JSON.stringify({components:l,customImg:e,textAreaHeight:a||0})};Xr({dashboardLoader:!0});let u=null;try{n?u=await Bn.updateDashboard(c,n):u=await Bn.saveDashboard(c);const{data:d,error:h}=u||{},f=AE();if(d){const p=Ft.isEmpty(d==null?void 0:d.id)?n:d==null?void 0:d.id,m=s==null?void 0:s.map(y=>{const{h:S,maxH:x,minH:w,maxW:_,minW:C,w:R,x:k,y:P,i:N,boxHeight:L}=y;return{visualId:(y==null?void 0:y.visualId)||(y==null?void 0:y.id),metadata:JSON.stringify({i:N,h:S,maxH:x,minH:w,maxW:_,minW:C,w:R,x:k,y:P,boxHeight:L})}}),{data:g,error:v="",apiAlert:A}=await Bn.putDashboardVisuals(p,m);if(Xr({dashboardLoader:!1}),g){let y=!0;Kva()&&(y=await Shn(p,Vva(o))),Gva(d,p,c),zi(n?q.WIDGET_UPDATED_SUCCESS("Dashboard"):q.DASHBOARD_SAVED_SUCCESS),setTimeout(()=>{y?r&&r(p,Ehn()):f&&f.push(tr.updateDashboard(p))},200)}v&&Kn(v,A)}else h&&Kn(h)}catch(d){Kn(d.message)}finally{Xr({dashboardLoader:!1,slugName:""})}},Qva=(t,e)=>{if(t.type===sp.header){const n=e.headerWeight==="h2"?1.4:1;t.h=e.headerWeight==="h1"?1.6:n}},JX=(t,e)=>{var l;const{layoutStates:n,layoutStateIndex:r}=Gd(),a=n[r],o=a.map(c=>c.id===t.id?(Qva(c,e),{...c,metadata:e}):c),s=(l=a.find(c=>c.i===t.i))==null?void 0:l.metadata;if(!Ft.isEmpty(qit(e,s))){const c=n.slice(0,r+1);c.push(o),Xr({layoutStates:c,layoutStateIndex:c.length-1})}},qva=async t=>{const{layoutStateIndex:e,layoutStates:n}=Gd(),r=n[e]||[],a=r.find(s=>s.i==="__dropping-elem__"),o=r.map((s,l)=>{var c,u;return{...s,...t[l],maxH:s.maxH||((c=t[l])==null?void 0:c.maxH),maxW:s.maxW||((u=t[l])==null?void 0:u.maxW)}});if(a){const s=n;s.pop(),await Xr({layoutStates:s})}z6([...o])},git=t=>{Xr({dragItem:t})},hVe=()=>{Xr({dashboardDetail:null,imgMetadata:{chartColors:[],chartBackground:[],imgUrl:"",useImgColors:!1,titleColor:""}})},Yva=async(t,e)=>{var o;const n=t.metadata&&(typeof t.metadata=="object"?t.metadata:JSON.parse(t.metadata))||[];let a=[...e&&await mit(e)||[]];return(o=n==null?void 0:n.components)!=null&&o.length&&a.push(...n.components),a=Ft.reject(a,s=>Ft.isEmpty(s)),a=a==null?void 0:a.sort((s,l)=>Number(s.i)-Number(l.i)),a},QLe=t=>{Xr({breakPoint:t})},qLe=()=>{Xr({loadLayout:!1})},KAe=t=>{Xr({infoView:t})},WAe=t=>{const{imgMetadata:e}=Gd();Xr({imgMetadata:{...e,useImgColors:t}})},Jva=(t,e,n,r)=>{const{imgMetadata:a}=Gd();Xr({imgMetadata:{...a,chartColors:t,chartBackground:e,imgUrl:n,titleColor:r}})},G6=()=>{Xr({imgMetadata:{chartColors:[],chartBackground:[],imgUrl:"",useImgColors:!1,titleColor:""}})},Zva=()=>{Xr({isChartAddedToDash:[],isCounterAddedToDash:[],isTableAddedToDash:!1})},fVe=t=>{Xr({slugName:t})},ZX=t=>{Xr({isVisibilitySet:t})},QAe=t=>{Xr({slugNameError:t})},Xva=t=>{const{saveSuggestedQuery:e}=Gd(),{queryId:n=""}=e;Hne({visualId:n,queryId:n,chartType:ii.table,queryResult:t}),Xr({isWidgetConfigSet:!0,isTableAddedToDash:!0})},L$=t=>{Xr({isUnsavedChangesDash:t})},ZF=t=>{Xr({visibility:t})},Mhn=async t=>{try{const{status:e,error:n,apiAlert:r}=await Bn.forkDashboard(t);if(e===201)return zi(q.DASHBOARD_CLONE_SUCCESS),q.RESPONSE_SUCCESS_STATUS;if(n)return Kn(n,r),q.RESPONSE_ERROR_STATUS}catch(e){Kn((e==null?void 0:e.message)||"")}return""},vit=t=>{Xr({isForkDashboard:t})},e0a="https://azuremarketplace.microsoft.com/en-us/marketplace/apps/spaceandtimelabsinc1674586360724.spaceandtimedb?tab=PlansAndPrice",Nhn="https://azuremarketplace.microsoft.com/view/appPricing/spaceandtimelabsinc1674586360724.spaceandtimedb/us?ReviewsMyCommentsFilter=true",t0a=[{label:"Subscription ID",dataKey:"subscriptionId",width:310},{label:"Provider",dataKey:"provider",width:310},{label:"Amount",dataKey:"amount",width:120},{label:"Currency",dataKey:"currency",width:120},{label:"Date & Time",dataKey:"timestamp",width:180}],YLe={iconStyle:"solid",showIcon:!0,style:{base:{color:qt.custom.white.A1,fontFamily:qt.typography.fontFamily,fontSize:qt.custom.fontSize.font12,fontSmoothing:"antialiased",":-webkit-autofill":{color:"black"},"::placeholder":{color:"#b2b3bdcc"}},invalid:{color:qt.custom.red}}},n0a=[{id:"faq1",ques:"What will I be charged for?",ans:`Regardless of which pricing model you choose, you only
          pay for compute. Storage, indexed blockchain data, the
          Space and Time Studio, the API gateway, and more are
          always included. When you choose Pay per Compute, you
          only pay for the queries that execute successfully.
          Compute costs are calculated using a gas-like model
          where each compute credit costs 1 USD.`},{id:"faq2",ques:"How are credits calculated?",ans:`The credit cost per query is calculated using a 
          gas-like model based on how much compute it took to 
          execute the query. Today, each credit is 1 USD. Please 
          keep in mind that Pay per Compute is in beta, and 
          this number may change over time. You can always check 
          back here to get the latest price.`},{id:"faq3",ques:"How many queries can I run per credit?",ans:`The number of queries that you can run per credit 
          depends on the amount of compute used by each query. 
          Small look-up queries use less compute than large analytic queries, for example.`},{id:"faq4",ques:"When will my credit card be charged?",ans:`You are not charged for anything when entering your
          credit card. On the 5th of every month, your card will
          be charged only for the query requests that completed
          successfully.`},{id:"faq5",ques:"How much can I spend per billing cycle?",ans:`Today, there is a spend limit of $100 per month 
          for Pay per Compute. If you accumulate more than the 
          limit, you'll receive a popup message that prompts you 
          to contact our Solutions team for an increase. 
          We're happy to help extend the limit to support your use case.`},{id:"faq6",ques:"What payment methods do you support?",ans:`Today, we support credit card payments, but we’re
          working hard to add support for new payment methods in
          the future, including onchain payments.`}],_R=["USD"];async function Aq(t,e,n){var c,u;const r=e===Nhn?"":hN(Vmi),a={Accept:"application/json","Content-Type":"application/json"};if(!(e!=null&&e.includes("/auth"))){const d=localStorage.getItem("sessionId");a.sid=d||""}const o={method:t.toUpperCase(),credentials:"same-origin",headers:a};n&&(o.body=JSON.stringify(n));let s=r+e;r&&e.substring(0,1)!=="/"&&(s=`${r}/${e}`);let l;try{l=await fetch(s,o);const d=await(l==null?void 0:l.text());let h="";try{h=l.status!==404&&(d!=null&&d.length)?JSON.parse(d):{}}catch{h=d!=null&&d.length?d:{}}return l.ok?{data:h,status:l.status}:{error:h.detail||h.title||h.message||((c=h[0])==null?void 0:c.message)||(h==null?void 0:h.error)||""}}catch{let h;return(u=o==null?void 0:o.signal)!=null&&u.aborted?h="Query Aborted":h="Network error",{error:h}}}const sb={put(t,e){return Aq("PUT",t,e)},delete(t,e){return Aq("DELETE",t,e)},post(t,e){return Aq("POST",t,e)},get(t,e){return Aq("GET",t,e)},patch(t,e){return Aq("PATCH",t,e)},async getAllPaymentCards(){return this.get(Zt.getAllPaymentCards(),null)},async getAllProducts(){return this.get(Zt.getAllProducts(),null)},async getAzurePlans(){return this.get(Nhn,null)},async addCardDetails(t){return this.post(Zt.addCardDetails(),t)},async cancelStripeSubscription(t){return this.delete(Zt.cancelStripeSubscription(),t)},async addStripeSubscription(t){return this.post(Zt.addStripeSubscription(),t)},async deleteCardDetails(t){return this.delete(Zt.deleteCardDetails(),t)},async getSubscriptionInfo(){return this.get(Zt.getSubscriptionInfo())},async updateSubscriptionDetails(t){return this.put(Zt.updateSubscriptionData(),t)},async addDefaultCard(t){return this.put(Zt.addDefaultCard(),t)},async buyOffering(t){return this.post(Zt.charge(),{...t,eventType:tze.credit})},async clearBalance(){return this.post(Zt.charge(),{eventType:tze.balance})},async switchSubscription(t){return this.post(Zt.switchSubscription(),t)},async upgradeSubscription(t){return this.post(Zt.upgradeSubscription(),t)},async createSubscriptionWithoutCard(t){return this.post(Zt.createSubscriptionWithoutCard(),t)}},Ihn={cardDetails:{data:[],loading:!1,cardId:""},productList:[],paymentHistoryList:{},tempPurchasePriceId:"",defaultCradId:"",paymentHistoryFlag:!1,switchSubscriptionMessage:"",paymentHistoryLoading:!1,productListingLoading:!1,showCreditOfferings:!1,showAutopayDetails:!1,offerings:{data:[],loading:!1},selectedOffering:{offeringId:"",units:0,cost:0,discount:0},isSuccessPopup:!1,tempPlanAmount:0,isShowSubscriptionFlow:!1},Pv=yE(()=>({...Ihn})),Moe=()=>Pv(t=>t.cardDetails),H_e=()=>Pv(t=>t.productList),vV=()=>Pv(t=>t.tempPurchasePriceId),Phn=()=>Pv(t=>t.paymentHistoryFlag),r0a=()=>Pv(t=>t.paymentHistoryList),i0a=()=>Pv(t=>t.paymentHistoryLoading),a0a=()=>Pv(t=>t.productListingLoading),Ohn=()=>Pv(t=>t.showCreditOfferings),Lhn=()=>Pv(t=>t.showAutopayDetails),o0a=()=>Pv(t=>t.switchSubscriptionMessage),s0a=()=>Pv(t=>t.offerings),Ait=()=>Pv(t=>t.selectedOffering),l0a=()=>Pv(t=>t.isSuccessPopup),c0a=()=>Pv(t=>t.tempPlanAmount),u0a=()=>Pv(t=>t.isShowSubscriptionFlow),{setState:Io,getState:Noe}=Pv,d0a=Yc.setState,{getState:U_e,setState:yit}=io;async function h0a(){Io({...Ihn})}const Iy=t=>{Io({tempPurchasePriceId:t})},qAe=t=>{Io({paymentHistoryFlag:t})},YU=t=>{d0a({confirmDialogLoading:t})},Bhn=t=>{Io({isSuccessPopup:t})},f0a=t=>{Io({tempPlanAmount:t})},YAe=async()=>{const{cardDetails:t}=Noe();try{Io({cardDetails:{...t,loading:!0,cardId:""}});const{data:e,status:n}=await sb.getAllPaymentCards();if(n===200){const{code:r=[]}=e;r!=null&&r.length&&Io({cardDetails:{data:r,loading:!1,cardId:""}})}else return Io({cardDetails:{...t,loading:!1,cardId:""}}),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch{return Io({cardDetails:{...t,loading:!1,cardId:""}}),q.RESPONSE_ERROR_STATUS}},Dhn=async()=>{try{Io({productListingLoading:!0});const{data:t,status:e}=await sb.getAllProducts();if(e===200){const{code:n=[]}=t;n!=null&&n.length&&Io({productList:n})}else return Io({productListingLoading:!1}),q.RESPONSE_ERROR_STATUS;return Io({productListingLoading:!1}),q.RESPONSE_SUCCESS_STATUS}catch{return Io({productListingLoading:!1}),q.RESPONSE_ERROR_STATUS}finally{Io({productListingLoading:!1})}},p0a=async(t,e,n)=>{try{const{data:r,error:a}=await sb.addCardDetails(t);if(r)n||zi(q.ADD_CARD_SUCCESS);else return Kn(a||""),{cardData:{},status:q.RESPONSE_ERROR_STATUS};const{code:o={}}=r;return _a.cardAdded({subscription_id:e,card_id:o==null?void 0:o.id,timestamp:Date.now()}),{cardData:o,status:q.RESPONSE_SUCCESS_STATUS}}catch{return{cardData:{},status:q.RESPONSE_ERROR_STATUS}}},m0a=async t=>{try{Io({paymentHistoryLoading:!0});const{data:e}=await Bn.getPaymentHistory(t);if(e)Io({paymentHistoryList:e});else return Io({paymentHistoryLoading:!1}),q.RESPONSE_ERROR_STATUS;return Io({paymentHistoryLoading:!1}),q.RESPONSE_SUCCESS_STATUS}catch{return Io({paymentHistoryLoading:!1}),q.RESPONSE_ERROR_STATUS}finally{Io({paymentHistoryLoading:!1})}},ykt=async t=>{try{const{data:e,error:n,status:r}=await sb.addStripeSubscription(t);if(r===201)zi(q.SUBSCRIPTION_SUCCESS);else return Kn(n||q.API_ERROR_PAYMENT),{paymentData:{},status:q.RESPONSE_ERROR_STATUS};return{paymentData:e||{},status:q.RESPONSE_SUCCESS_STATUS}}catch{return{paymentData:{},status:q.RESPONSE_ERROR_STATUS}}},g0a=async t=>{try{const{subscriptionDetail:e={}}=U_e(),{plan:n={}}=e,{chargeType:r=""}=n||{},{data:a,error:o=""}=await sb.cancelStripeSubscription(t);if(a){if(r===zh.COMPUTE_BASED)return zi(q.SUBSCRIPTION_CANCEL_SUCCESS),C2(),h0a(),Ghn(),yit({subscriptionUserList:{loading:!1,list:{}}}),_a.subscriptionCanceled({subscription_id:t==null?void 0:t.subscription_id,timestamp:Date.now()}),q.RESPONSE_SUCCESS_STATUS;await vO()}else return Kn(o||q.API_ERROR_PAYMENT),q.RESPONSE_ERROR_STATUS;return zi(q.SUBSCRIPTION_CANCEL_SUCCESS),_a.subscriptionCanceled({subscription_id:t==null?void 0:t.subscription_id,timestamp:Date.now()}),q.RESPONSE_SUCCESS_STATUS}catch(e){return Kn(e),q.RESPONSE_ERROR_STATUS}},v0a=async(t,e)=>{const{cardDetails:n}=Noe();try{Io({cardDetails:{...n,loading:!0,cardId:t==null?void 0:t.card_id}});const{data:r}=n,{data:a,error:o=""}=await sb.deleteCardDetails(t);if(a)Io({cardDetails:{data:r.filter(s=>s.card_id!==(t==null?void 0:t.card_id)),loading:!1,cardId:t==null?void 0:t.card_id}}),zi(q.CARD_DELETED_SUCCESS);else return Io({cardDetails:{...n,loading:!1,cardId:t==null?void 0:t.card_id}}),Kn(o),q.RESPONSE_ERROR_STATUS;return _a.cardDeleted({subscription_id:e,card_id:t==null?void 0:t.card_id,timestamp:Date.now()}),q.RESPONSE_SUCCESS_STATUS}catch(r){return Io({cardDetails:{...n,loading:!1,cardId:t==null?void 0:t.card_id}}),Kn(r),q.RESPONSE_ERROR_STATUS}},A0a=t=>t?t/100:0,bkt=async t=>{const{cardDetails:e}=Noe();try{const{data:n}=e;Io({cardDetails:{...e,loading:!0,cardId:t==null?void 0:t.card_id}});const{data:r,error:a}=await sb.addDefaultCard(t);if(r){const o=n==null?void 0:n.map(s=>s.card_id===(t==null?void 0:t.card_id)?{...s,default_source:!0}:{...s,default_source:!1});Io({cardDetails:{data:Ft.cloneDeep(o),loading:!1,cardId:t==null?void 0:t.card_id}}),zi(q.ADD_DEFAULT_CARD_SUCCESS)}else return Kn(a||q.API_ERROR_PAYMENT),Io({cardDetails:{...e,loading:!1,cardId:t==null?void 0:t.card_id}}),q.RESPONSE_ERROR_STATUS;return _a.defaultCard({card_id:t==null?void 0:t.card_id,timestamp:Date.now()}),q.RESPONSE_SUCCESS_STATUS}catch{return Io({cardDetails:{...e,loading:!1,cardId:t==null?void 0:t.card_id}}),q.RESPONSE_ERROR_STATUS}},y0a=async({subscriptionId:t,cardId:e})=>{const{cardDetails:n}=Noe(),{subscriptionDetail:r={}}=U_e(),{plan:a={}}=r,{chargeType:o=""}=a;try{Io({cardDetails:{...n,loading:!0,cardId:e}});const{error:s,data:l}=await sb.updateSubscriptionDetails({card_id:e,mgmt_subscription_id:t});if(l||!s){const{data:c}=n;if(_a.subscriptionCardUpdated({subscription_id:t,card_id:e,timestamp:Date.now()}),_a.defaultCard({card_id:e,timestamp:Date.now()}),Io({cardDetails:{...n,loading:!1,cardId:e}}),o===zh.COMPUTE_BASED){const u=c==null?void 0:c.map(d=>d.card_id===e?{...d,default_source:!0}:{...d,default_source:!1});Io({cardDetails:{data:Ft.cloneDeep(u),loading:!1,cardId:e}})}o===zh.FIXED_COST&&yit({subscriptionDetail:{...r,card_id:e}}),zi(q.ADD_DEFAULT_CARD_SUCCESS)}else s&&(Kn(s||""),Io({cardDetails:{...n,loading:!1,cardId:e}}))}catch{Io({cardDetails:{...n,loading:!1,cardId:e}})}},bit=t=>{Io({showCreditOfferings:t})},JAe=t=>{Io({showAutopayDetails:t})},b0a=()=>{Io({selectedOffering:{offeringId:"",units:0,cost:0,discount:0}})},$hn=async({usageConfig:t})=>{var a,o,s;const{offerings:e,selectedOffering:n}=Noe();let r={...n};if((a=e==null?void 0:e.data)!=null&&a.length){t!=null&&t.offeringId&&((o=e==null?void 0:e.data)!=null&&o.length)&&((s=e==null?void 0:e.data)==null||s.every(l=>(l==null?void 0:l.offeringId)===(t==null?void 0:t.offeringId)?(r={...l},!1):!0)),Io({selectedOffering:r});return}try{Io({offerings:{data:[],loading:!0}});let{data:l=[]}=await Bn.getOfferings();t!=null&&t.offeringId&&(l!=null&&l.length)&&(l==null||l.every(c=>(c==null?void 0:c.offeringId)===(t==null?void 0:t.offeringId)?(r={...c},!1):!0)),l=l==null?void 0:l.sort((c,u)=>((u==null?void 0:u.units)||0)-((c==null?void 0:c.units)||0)),Io({offerings:{data:l,loading:!1},selectedOffering:r})}catch{Io({offerings:{data:[],loading:!1}})}},x0a=async(t,e,n)=>{try{n(!0);const{subscriptionDetail:r={}}=U_e(),{status:a}=await sb.buyOffering(t);a===200?(_a.creditPurchase({subscription_id:r==null?void 0:r.subscriptionId,value:(((e==null?void 0:e.cost)||0)*(Number(t==null?void 0:t.offeringMult)||1)).toFixed(2)||0,currency:_R==null?void 0:_R[0],items:[{offeringId:t==null?void 0:t.offeringId,quantity:t==null?void 0:t.offeringMult,currency:_R==null?void 0:_R[0],price:e==null?void 0:e.cost}],timestamp:Date.now()}),zi(q.PURCHASE_OFFERING_SUCCESS),Qhn(),bit(!1)):Kn(q.PURCHASE_OFFERING_ERROR),n(!1)}catch{n(!1)}},E0a=async({price_id:t})=>{try{const{status:e,error:n}=await sb.upgradeSubscription({price_id:t});e===200?(vO(),Bhn(!0)):Kn(n||"")}catch(e){Kn((e==null?void 0:e.message)||"")}},S0a=async({price_id:t})=>{try{const e=await sb.switchSubscription({price_id:t});if(e.status===200)return Io({switchSubscriptionMessage:e.data.message}),e.data;Kn(e.error||"")}catch(e){Kn((e==null?void 0:e.message)||"")}return null},w0a=async()=>{var t;try{const{subscriptionDetail:e={}}=U_e(),{data:n,error:r=""}=await Bn.leaveSubscription();if(n)Ghn(),Io({cardDetails:{data:[],loading:!1,cardId:""},paymentHistoryList:{},selectedOffering:{offeringId:"",units:0,cost:0,discount:0},offerings:{data:[],loading:!1}});else return Kn(r||q.API_ERROR_PAYMENT),q.RESPONSE_ERROR_STATUS;zi(q.LEAVE_SUBSCRIPTION_SUCCESS),_a.subscriptionLeave({subscription_id:e==null?void 0:e.subscriptionId,timestamp:Date.now()});const{accessToken:a,refreshToken:o,accessTokenExpires:s,refreshTokenExpires:l}=n,c=(t=Date.now())==null?void 0:t.toString();localStorage.setItem("accessToken",a),localStorage.setItem("refreshToken",o),localStorage.setItem("accessTokenExpires",s),localStorage.setItem("refreshTokenExpires",l),localStorage.setItem("tokenLastUpdatedOn",c),yit({accessTokenExpires:s,accessToken:a,refreshToken:o,tokenLastUpdatedOn:c});const{data:u}=await Hu.getSessionId(a),{sessionId:d=""}=u||{};return localStorage.setItem("sessionId",d),Poe(),q.RESPONSE_SUCCESS_STATUS}catch(e){return Kn(e),q.RESPONSE_ERROR_STATUS}},aw=t=>{Io({isShowSubscriptionFlow:t})},{setState:mr,getState:vu}=io,_0a=60*1e3,T0a=10*60*1e3,SP=(t,e,n,r)=>{const a=new Date,o={url:t,method:e,status:n,response:{title:r.title,message:r.detail},timestamp:a};!o.response.title||o.response.title==="N/A"||(mr(s=>({apiHistory:[...s.apiHistory,o]})),setInterval(()=>{const s=new Date().getTime()-T0a;mr(l=>({apiHistory:l.apiHistory.filter(c=>new Date(c.timestamp).getTime()>=s)}))},_0a))},ZAe=(t,e="error",n=6e3,r)=>{mr({toaster:{message:(r==null?void 0:r.title)||t,type:r?"error":e,duration:n,detail:r==null?void 0:r.detail,title:r==null?void 0:r.type}})},zi=(t,e)=>ZAe(t,"success",e),Kn=(t,e)=>{e?ZAe(t,"error",6e3,e):ZAe(t,"error",6e3)},C0a=t=>ZAe(t,"warning"),Fhn=()=>{mr({toaster:{}})},k0a=async t=>{mr({tagsListLoading:!0});try{const{data:e}=await Bn.getTags(t);mr({tags:e!=null&&e.length?[...e]:[]})}catch{mr({tags:[]})}finally{mr({tagsListLoading:!1})}};async function mh(t,e){const{queriesResult:n}=vu(),r=t&&vu().queriesResult[t];t&&await mr({queriesResult:{...n,[t]:{...r,...e}}})}const jhn=t=>{mr({userDetail:t})},Ox=t=>{mr({isAuthLoading:t})},R0a=t=>{const{queriesResult:e}=vu();t&&(delete e[t],mr({queriesResult:{...e}}))},M0a=async(t,e)=>{try{const n=await Bn.executeView(e),{data:r=[],error:a}=n;if(a)await mh(t,{warning:!1,error:!0,isLoading:!1});else{const{filteredDataFrames:o=[],dataframesObject:s={},dataFrames:l=[],fieldsMetadata:c,items:u}=Y6(r);await mh(t,{data:u,columns:c,error:!1,filteredDataFrames:o,dataframesObject:s,dataFrames:l,isLoading:!1})}}catch{}},nH=async()=>{try{const t=await Bn.getSubscriptionPayConfig();if(t.data&&t.data.type==="zkPay"){const e=await Bn.getZkSubscriptionPayConfig();mr({paymentConfigData:t.data,paymentConfigZkToken:e.data})}else t.data&&t.data.type==="none"?mr({paymentConfigData:t.data}):t.data&&t.data.type==="creditcard"&&mr({paymentConfigData:t.data})}catch{Kn("Something went wrong retrieving payment configurations")}},xit=async(t,e=!1)=>{const{id:n,isMaterializedView:r=!1,referencedResources:a,authorizationResources:o,requiresAuthorization:s}=t||{},{biscuitList:l}=vu(),c=g9(l,Hoe(s?o:a));if(r&&(a!=null&&a.length)){const u={viewId:a[0]||[],biscuits:c};try{const d=await Bn.getViewLastRefreshTime(u),{data:h,error:f}=d||{};if(f&&await mh(n,{queryId:n,isLoading:!1}),h){if(e)return h;await mh(n,{queryId:n,isLoading:!1,lastRefreshTime:(h==null?void 0:h.timestamp)||"",queryData:t})}}catch(d){console.log("Error while fetching view last refresh time:",d)}}return null},Hhn=async({queryData:t,refreshInterval:e=5e3,currentRefreshTime:n,payload:r,id:a})=>{try{let o=e;const s=6e4,l=await xit(t,!0),c=(l==null?void 0:l.timestamp)||"",u=new Date(n);if(new Date(c)-u>0){await mh(a,{...t,lastRefreshTime:c,isRefreshViewLoading:!1}),await M0a(a,r);return}o=Math.min(o*2,s),setTimeout(()=>Hhn({queryData:t,refreshInterval:o,currentRefreshTime:n,payload:r,id:a}),o)}catch(o){console.error("Error polling data:",o),await mh(a,{...t,isRefreshViewLoading:!1})}},V6=async t=>{const{referencedResources:e,authorizationResources:n,requiresAuthorization:r,id:a,isMaterializedView:o}=t||{},s=vu().queriesResult[a]||{},{biscuitList:l}=vu(),c=g9(l,Hoe({resources:r?n:e}));try{if(await mh(a,{...s,isRefreshViewLoading:!0}),o&&(e!=null&&e.length)){const u={viewId:e[0]||[],biscuits:c},d=await Bn.refreshMaterializedView(u),{data:h,error:f}=d||{};h&&Hhn({queryData:t,currentRefreshTime:s==null?void 0:s.lastRefreshTime,payload:u,id:a}),f&&(Kn(f||"Something Went Wrong"),await mh(a,{...s,isRefreshViewLoading:!1}))}}catch{await mh(a,{...s,isRefreshViewLoading:!1})}return null},N0a=async(t,e,n,r,a,o)=>{const{queryId:s,authorizationResources:l,requiresAuthorization:c,referencedResources:u,visibility:d}=t,h=d===sr.public;try{const{biscuitList:f}=vu(),p=g9(f,Hoe({resources:c?l:u}));!o&&await xit(t),Bn.executeQuery({queryId:s,biscuits:p},h?!1:r).then(async m=>{const{data:g=[],error:v=""}=m;if(v)mh(s,{id:e,warning:!1,error:!0,message:(v==null?void 0:v.title)||v,isLoading:!1,queryData:{}});else{const{filteredDataFrames:A=[],dataframesObject:y={},dataFrames:S=[],fieldsMetadata:x,items:w}=Y6(g),_=x,C=n===Di.GRAPH?Aha(_,a):!1;await mh(s,{id:e,data:w,columns:_,warning:!!C,error:!1,message:C,filteredDataFrames:A,dataframesObject:y,dataFrames:S,isLoading:!1,queryData:t})}}).catch(m=>{mh(s,{warning:!1,id:e,error:!0,message:m.message,isLoading:!1,queryData:{}})})}catch(f){return mh(s,{id:e,warning:!1,error:!0,message:f==null?void 0:f.message,isLoading:!1,queryData:{}})}return null},Ioe=async(t,e,n,r,a,o)=>{var l,c;const{fields:s}=r||{};try{const u=vu().queriesResult[e]||{};if(u!=null&&u.isLoading||(l=u==null?void 0:u.data)!=null&&l.length)return null;await mh(e,{...u,isLoading:!0});const{data:d}=await Bn.getQuery(e,a),h=vu().queriesResult[e];return h!=null&&h.error||!((c=h==null?void 0:h.data)!=null&&c.length)?Ft.isEmpty(d)?await mh(e,{id:t,warning:!1,error:!0,isLoading:!1,message:q.RECORD_NOT_FOUND}):await N0a({queryId:e,...d},t,n,a,s,o):await mh(e,{isLoading:!1})}catch(u){return mh(e,{id:t,warning:!1,error:!0,message:u})}return null};function Uhn(t){return mr({isLoggedIn:t})}async function C2(t=!1){try{const e=localStorage.getItem("refreshToken")||"";mr({isLoggedIn:!1}),localStorage.clear(),mr({accessToken:"",refreshToken:"",accessTokenExpires:"",isLoggedIn:!1}),e&&await Bn.logout(),!t&&TD()}catch(e){console.error(e)}finally{localStorage.clear()}}function Eit(t){mr({...t})}const Poe=async()=>{try{mr({subscriptionUserList:{loading:!0,list:{}}});const{data:t}=await Bn.getSubscriptionUsers();let e={};t!=null&&t.roleMap&&(e={...t.roleMap}),mr({subscriptionUserList:{loading:!1,list:e}})}catch{mr({subscriptionUserList:{loading:!1,list:{}}})}},vO=async t=>{var e,n,r,a,o,s,l,c;try{const{subscriptionDetail:u}=vu();mr({subscriptionDetail:{...u,isLoading:!0}});const{data:d}=await Bn.getSubscriptionDetails();if(d){let h=!1,f={};try{const{data:p}=await sb.getSubscriptionInfo();h=((e=p==null?void 0:p.code)==null?void 0:e.cancel_at_period_end)||!1,f={...p==null?void 0:p.code};const m={subscription_id:d==null?void 0:d.subscriptionId,card_id:(n=p==null?void 0:p.code)==null?void 0:n.card_id,product_id:(r=p==null?void 0:p.code)==null?void 0:r.product_id,plan_name:(a=d==null?void 0:d.plan)==null?void 0:a.planName,charge_type:(o=d==null?void 0:d.plan)==null?void 0:o.chargeType,value:((s=d==null?void 0:d.plan)==null?void 0:s.cost)||0,currency:_R==null?void 0:_R[0],timestamp:Date.now()};t==="created"&&(_a.cardAdded({subscription_id:d==null?void 0:d.subscriptionId,card_id:(l=p==null?void 0:p.code)==null?void 0:l.card_id,timestamp:Date.now()}),_a.subscriptionCreated({...m}),((c=d==null?void 0:d.plan)==null?void 0:c.chargeType)===zh.FIXED_COST&&_a.subscribe({...m})),t==="join"&&_a.subscriptionJoined({...m})}catch{}mr({subscriptionDetail:{...u,...d,...f,isSubscriptionCancelled:h,isLoading:!1}}),Poe()}else return mr({subscriptionDetail:{state:"NA",isLoading:!1}}),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch{return mr({subscriptionDetail:{state:"NA",isLoading:!1}}),q.RESPONSE_ERROR_STATUS}},I0a=async t=>{var e;try{const{userId:n}=t,{gatewayUrl:r}=await tTe({userId:n}),a=await Hu.loginUser(t,r);if(a!=null&&a.data){const{data:o}=a,{accessToken:s,refreshToken:l,sessionId:c}=o,{accessTokenExpires:u,refreshTokenExpires:d}=o,h=(e=Date.now())==null?void 0:e.toString();localStorage.setItem("accessToken",s),localStorage.setItem("refreshToken",l),localStorage.setItem("accessTokenExpires",u),localStorage.setItem("refreshTokenExpires",d),localStorage.setItem("userId",t==null?void 0:t.userId),localStorage.setItem("sessionId",c),localStorage.setItem("loginType",q.WEB2LOGIN),localStorage.setItem("tokenLastUpdatedOn",h),localStorage.setItem("baseUrl",r),mr({isLoggedIn:!0,accessTokenExpires:u,accessToken:s,refreshToken:l,tokenLastUpdatedOn:h}),zi(q.LOGIN_SUCCESS)}else return Kn((a==null?void 0:a.error)||""),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch{return Ox(!1),q.RESPONSE_ERROR_STATUS}finally{Ox(!1)}},AO=async(t,e,n,r)=>{try{const a=await Bn.updateUserDetail(t,e),{status:o}=a;if(o===204)r&&zi(n?q.BISCUIT_APPLIED:q.UPDATE_USER_SUCCESS),jhn(e);else return Kn((a==null?void 0:a.error)||""),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch{return q.RESPONSE_ERROR_STATUS}},Sit=async t=>{try{const{userDetail:e}=vu(),n=await Bn.getUserDetail(t),{data:r,status:a}=n,o={landing:!0,isAiEnabled:!0,dashboardGuide:!0,showDatasetInfo:!0,queryEditorGuide:!0};if(r!=null&&r.userId){const{settings:s}=r,l=s?JSON.parse(s):{},{dashboardHomeId:c}=l;mr({userDetail:{...r,settings:JSON.stringify({...o,...l})}}),Une({[c]:!0})}else{if(a===404){const s={...e,userId:t,settings:JSON.stringify({...o})};AO(t,s)}return q.RESPONSE_ERROR_STATUS}return q.RESPONSE_SUCCESS_STATUS}catch{return q.RESPONSE_ERROR_STATUS}},z_e=async t=>{var e;try{Ox(!0);const{userId:n,joinCode:r}=t,{isUserExist:a}=await tTe({userId:n});if(a)return Kn("User Already Exist"),"User Already Exist";const o=await eat(r);if(!a&&r&&!(o!=null&&o.isValid))return Kn("Invalid join code"),"Invalid join code";const{gatewayUrl:s}=o,l=await Hu.registerUser(t,s);if(l!=null&&l.data){const{data:c}=l,{accessToken:u,refreshToken:d,sessionId:h}=c,{accessTokenExpires:f,refreshTokenExpires:p}=c,m=(e=Date.now())==null?void 0:e.toString();localStorage.setItem("accessToken",u),localStorage.setItem("refreshToken",d),localStorage.setItem("accessTokenExpires",f),localStorage.setItem("refreshTokenExpires",p),localStorage.setItem("userId",t==null?void 0:t.userId),localStorage.setItem("sessionId",h),localStorage.setItem("loginType",q.WEB2LOGIN),localStorage.setItem("tokenLastUpdatedOn",m),localStorage.setItem("baseUrl",s),mr({isLoggedIn:!0,accessTokenExpires:f,accessToken:u,refreshToken:d,tokenLastUpdatedOn:m}),zi(q.REGISTER_SUCCESS),o!=null&&o.isValid&&vO("join")}else return Kn((l==null?void 0:l.error)||""),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch{return Ox(!1),q.RESPONSE_ERROR_STATUS}finally{Ox(!1)}},zhn=async t=>{try{const e=await Hu.resetPassword(t),{status:n}=e;if(n===204||n===200)zi(q.RESET_PASSWORD_SUCCESS);else return Kn((e==null?void 0:e.error)||""),e;return e}catch{return{status:500}}};async function wit(){try{const{refreshToken:t="",isRefreshLoading:e=!1}=vu(),n=localStorage.getItem("isRefreshLoading")==="true";if(e||n)return null;const r=localStorage.getItem("refreshToken")||t;if(!r)return TD(),null;mr({isRefreshLoading:!0}),localStorage.setItem("isRefreshLoading","true"),console.log("AUTH REQUEST",r);const{data:a}=await Bn.refreshToken(r)||{};if(a){const{accessToken:o,refreshToken:s,accessTokenExpires:l,refreshTokenExpires:c}=a,{data:u}=await Hu.getSessionId(o),d=(u==null?void 0:u.sessionId)||"",h=Date.now().toString();return localStorage.setItem("accessToken",o),localStorage.setItem("refreshToken",s),localStorage.setItem("accessTokenExpires",l),localStorage.setItem("refreshTokenExpires",c),localStorage.setItem("sessionId",d),localStorage.setItem("tokenLastUpdatedOn",h),localStorage.setItem("isRefreshLoading","false"),console.log("AUTH SUCCESS",s),mr({isLoggedIn:!0,accessTokenExpires:l,accessToken:o,refreshToken:s,tokenLastUpdatedOn:h,isRefreshLoading:!1}),null}}catch(t){return localStorage.setItem("isRefreshLoading","false"),mr({isRefreshLoading:!1}),console.log(t),localStorage.clear(),C2(),TD(),null}}function rH(t,e){const{schemaExpansions:n}=vu(),{expanded:r}=n;let a={};e?(r[t.id]=!0,a={[sx.publicDatasets]:!0,[sx.subscribedDatasets]:!0,[sx.sxtDatasets]:!0}):r[t.id]=!r[t.id],mr({schemaExpansions:{expanded:{...r,...a}}})}function P0a(){var r;const{schemaExpansions:t}=vu(),{expanded:e}=t,n={};(r=Object.keys(e))==null||r.forEach(a=>{n[a]=!1}),mr({schemaExpansions:{expanded:{...n,[sx.sxtDatasets]:!0}}})}const O0a=t=>{mr({datasetData:t})},Ooe=async()=>{try{mr({biscuitsLoading:!0});const t=await Hu.getBiscuits();if(t!=null&&t.data){const{data:e}=t;e&&mr({biscuitList:e==null?void 0:e.biscuits})}}catch{}finally{mr({biscuitsLoading:!1})}},L0a=async()=>{try{const t=await Hu.getKeySharing();if(t!=null&&t.data){const{data:e}=t;e&&mr({keySharing:e==null?void 0:e.keySharing})}}catch{}},B0a=async(t,e)=>{try{const n={keySharing:e},r=await Hu.updateKeySharing(n);if(r.error){Kn(r.error);return}mr({keySharing:e}),zi(q.SET_KEY_SHARING(t,e))}catch{}},D0a=async t=>{try{const{data:e,error:n=""}=await Hu.deleteBiscuit(t);if(e)zi(q.DELETE_BISCUIT_SUCCESS);else return Kn(n),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch(e){return Kn(e),q.RESPONSE_ERROR_STATUS}},co=t=>mr({showLoginDrawer:t}),pVe=t=>mr({showLoginDrawerWalletOpen:t}),WB=t=>mr({LoginDrawerTab:t}),Ghn=()=>{mr({subscriptionDetail:{}})},$0a=async(t,e,n)=>{const{subscriptionUserList:r}=vu();try{mr({subscriptionUserList:{...r,loading:!0}});const{error:a}=await Bn.setUserSubscriptionRole(t,n==null?void 0:n.toUpperCase());a?Kn(a):(Poe(),zi(q.SET_USER_ROLE(t,e,n)))}catch{mr({subscriptionUserList:{...r,loading:!1}})}},F0a=async(t,e)=>{const{subscriptionUserList:n}=vu();try{mr({subscriptionUserList:{...n,loading:!0}});const{error:r}=await Bn.removeUserSubscription(t);r?Kn(r):(zi(q.REMOVE_USER_ROLE(t,e)),Poe())}catch{mr({subscriptionUserList:{...n,loading:!1}})}},j0a=async t=>{var e;try{const n=await Zrt.saveChainLinkSubscription(t);return((e=n==null?void 0:n.data)==null?void 0:e.data)||{}}catch{return!1}},H0a=async(t,e)=>{try{await Zrt.deleteChainLinkSubscription(t,e),zi(q.SUBSCRIPTION_DELETED)}catch{Kn(ga.SOMETHING_WENT_WRONG)}},U0a=async(t,e)=>{var n;try{const r=await Zrt.getChainLinkSubscription(t,e);return(n=r==null?void 0:r.data)!=null&&n.data&&Array.isArray(r.data.data)?r.data.data:[]}catch{return!1}},z0a=async(t,e)=>{var n;try{const r={price_id:t},a=await sb.createSubscriptionWithoutCard(r),{accessToken:o,accessTokenExpires:s,refreshToken:l,refreshTokenExpires:c}=a.data.code;if(a.status===201){const u=(n=Date.now())==null?void 0:n.toString();localStorage.setItem("accessToken",o),localStorage.setItem("refreshToken",l),localStorage.setItem("accessTokenExpires",s),localStorage.setItem("refreshTokenExpires",c),localStorage.setItem("tokenLastUpdatedOn",u),mr({isLoggedIn:!0,accessTokenExpires:s,accessToken:o,refreshToken:l,tokenLastUpdatedOn:u});const{data:d}=await Hu.getSessionId(o),{sessionId:h=""}=d||{};localStorage.setItem("sessionId",h),await vO("join"),await nH(),e()}return a.error||a.status!==201?(Kn(ga.UNABLE_TO_CREATE_SUBSCRIPTION),!1):!0}catch{return!1}},G0a=async(t,e)=>{try{const n=Co.stringify({role:t}),{data:r,error:a}=await Bn.inviteUser(n);r?(await gN(r),e(r),zi(q.JOIN_CODE_SUCCESS)):a&&(Kn(a),e(""))}catch{Kn(q.JOIN_CODE_ERROR)}},Vhn=async t=>{var o;const{joinCode:e,callback:n=null}=t,r=await eat(e);if(!(r!=null&&r.isValid))return Kn("Invalid join code"),"";const{isLoggedIn:a}=vu();if(a&&(localStorage.getItem("baseUrl")||HU)!==r.gatewayUrl)return Kn("Invalid provider"),"";try{const{data:s,error:l}=await Bn.joinSubscription(e);if(l)return Kn(l),q.RESPONSE_ERROR_STATUS;{const{accessToken:c,refreshToken:u}=s,{accessTokenExpires:d,refreshTokenExpires:h}=s,f=(o=Date.now())==null?void 0:o.toString();localStorage.setItem("accessToken",c),localStorage.setItem("refreshToken",u),localStorage.setItem("accessTokenExpires",d),localStorage.setItem("refreshTokenExpires",h),localStorage.setItem("tokenLastUpdatedOn",f),mr({isLoggedIn:!0,accessTokenExpires:d,accessToken:c,refreshToken:u,tokenLastUpdatedOn:f});const{data:p}=await Hu.getSessionId(c),{sessionId:m=""}=p||{};localStorage.setItem("sessionId",m),n&&n(),vO("join")}return q.RESPONSE_SUCCESS_STATUS}catch{return q.RESPONSE_ERROR_STATUS}},_it=async({resourceId:t,resourceType:e})=>{const{biscuitResources:n}=vu();try{mr({biscuitResources:{...n,loading:!0}});const{resources:r}=n,a={...r};try{const o=Co.stringify({resourceId:t,resourceType:e}),{data:s,error:l}=await Hu.getBiscuitsPermissions(o);!l&&!Ft.isEmpty(s==null?void 0:s.permissions)?a[t]=s==null?void 0:s.permissions:a[t]={}}catch{a[t]={}}mr({biscuitResources:{loading:!1,resources:{...a}}})}catch{mr({biscuitResources:{...n,loading:!1}})}},Loe=async()=>{const{userResources:t}=vu();try{mr({userResources:{loading:!0,resources:{}}});const{data:e,error:n}=await Hu.getUserPermissions();if(!n&&e)if(Ft.isEmpty(e==null?void 0:e.permissions))mr({userResources:{resources:{},loading:!1}});else{const r=Object.keys(e.permissions),a={};r==null||r.forEach(o=>{const[s,l]=o.split(":");s===gw.table&&(a[l]=e.permissions[o])}),mr({userResources:{resources:a,loading:!1}})}else mr({userResources:{...t,loading:!1}})}catch{mr({userResources:{...t,loading:!1}})}},Khn=async({resourceId:t,userId:e,accessLevel:n,resourceType:r})=>{const{biscuitResources:a}=vu();try{mr({biscuitResources:{...a,loading:!0}});const o=Co.stringify({resourceId:t,userId:e,accessLevel:n,resourceType:r}),{error:s}=await Hu.setPermission(o);s?(s&&Kn(s),mr({biscuitResources:{...a,loading:!1}})):(zi(q.updatePermissionMessage(t,e)),localStorage.getItem("userId")===e&&await Loe(),_it({resourceId:t,resourceType:gw.table}))}catch{mr({biscuitResources:{...a,loading:!1}})}},V0a=async({userId:t,resourceId:e,resourceType:n})=>{const{biscuitResources:r}=vu();try{mr({biscuitResources:{...r,loading:!0}});const a=Co.stringify({resourceId:e,userId:t,resourceType:n}),{error:o}=await Hu.revokePermissions(a);o?mr({biscuitResources:{...r,loading:!1}}):(zi(q.revokePermissionMessage(e,t)),localStorage.getItem("userId")===t&&await Loe(),_it({resourceId:e,resourceType:gw.table}))}catch{mr({biscuitResources:{...r,loading:!1}})}};function JLe(t){mr({selectedTableHighlighter:{...t}})}function K0a(t){const{toggleERDTable:e}=vu(),n=e[t];mr({toggleERDTable:{...e,[t]:!n}})}function Whn(t){mr({toggleERDTable:{...t}})}function ZLe(t){mr({ERDNodeOpacity:t})}function Gne(t=""){mr({tableInfoPanelId:t})}async function xkt(t){try{const{accessToken:e,accessTokenExpires:n,refreshToken:r,refreshTokenExpires:a}=t;localStorage.setItem("accessToken",e),localStorage.setItem("refreshToken",r),localStorage.setItem("accessTokenExpires",(n==null?void 0:n.toString())||"300000"),localStorage.setItem("refreshTokenExpires",(a==null?void 0:a.toString())||"300000"),mr({isLoggedIn:!0,accessTokenExpires:n||"300000",accessToken:e,refreshToken:r});const{data:o}=await Hu.getSessionId(e),{sessionId:s=""}=o||{};localStorage.setItem("sessionId",s),vO("created")}catch{}}function W0a(){const t=(localStorage==null?void 0:localStorage.getItem("accessToken"))||"",e=(localStorage==null?void 0:localStorage.getItem("refreshToken"))||"",n=(localStorage==null?void 0:localStorage.getItem("accessTokenExpires"))||"",r=(localStorage==null?void 0:localStorage.getItem("refreshTokenExpires"))||"",a=(localStorage==null?void 0:localStorage.getItem("tokenLastUpdatedOn"))||"";t&&e&&n&&r&&a&&mr({isLoggedIn:!0,accessToken:t,refreshToken:e,accessTokenExpires:n,tokenLastUpdatedOn:a})}const que=t=>{mr({amazonFormFields:t})},Tit=async()=>{try{mr({apiKeysLoading:!0});const t=await Hu.getApiKeys();if(t!=null&&t.data){const{data:e}=t,n=Object.keys((e==null?void 0:e.apiKeysMap)||{}).map(r=>({key:r,description:e==null?void 0:e.apiKeysMap[r]}));e&&mr({apiKeysList:n})}}catch{}finally{mr({apiKeysLoading:!1})}},Q0a=async t=>{try{const e=await Hu.createApiKey(t),{data:n,error:r}=e;return n?(Tit(),zi(q.ADD_API_KEY_SUCCESS)):Kn(r||""),e}catch(e){return e}},q0a=async t=>{try{const{data:e,error:n=""}=await Hu.removeApiKey(t);if(e)zi(q.DELETE_API_KEY_SUCCESS);else return Kn(n),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch(e){return Kn(e),q.RESPONSE_ERROR_STATUS}};async function Y0a(t){const{userSubscriptionDataUsage:e}=vu();let n={...e.data};try{mr({userDataUsage:{loading:!0,data:{}}});const{data:r,error:a="",status:o}=await Bn.getUserDataUsage(t);n={...r,error:a,status:o}}catch(r){n={error:r}}finally{mr({userDataUsage:{data:n,loading:!1}})}}async function J0a(t){const{userSubscriptionDataUsage:e}=vu();let n={...e.data};try{mr({userSubscriptionDataUsage:{loading:!0,data:{}}});const{data:r,error:a="",status:o}=await Bn.getSubscriptionDataUsage(t);n={...r,error:a,status:o}}catch(r){n={error:r}}finally{mr({userSubscriptionDataUsage:{data:n,loading:!1}})}}async function Z0a(t){const{memberDataUsage:e}=vu();let n={...e.data};try{mr({memberDataUsage:{loading:!0,data:{}}});const{data:r,error:a="",status:o}=await Bn.getUserDataUsage(t);n={...r,error:a,status:o}}catch(r){n={error:r}}finally{mr({memberDataUsage:{data:n,loading:!1}})}}const Qhn=async()=>{const{subscriptionDetail:t}=vu();mr({subscriptionDetail:{...t,isBalanceLoading:!0}}),setTimeout(async()=>{var e;try{const{data:n}=await Bn.getBalanceDetails(),{data:r}=await Bn.getFreeQueriesQueryCount();let a=(t==null?void 0:t.balance)||0;a=(Number.isInteger(n==null?void 0:n.balance)===!1?(e=n==null?void 0:n.balance)==null?void 0:e.toFixed(2):n==null?void 0:n.balance)||a,mr({subscriptionDetail:{...t,balance:a,isBalanceLoading:!1},subscriptionCount:{freeQueriesCount:r==null?void 0:r.freeQueryCount}})}catch{mr({subscriptionDetail:{...t,isBalanceLoading:!1}})}},5e3)},X0a=async(t,e,n,r)=>{const a={chainId:e,tokenAddr:t,walletAddr:n};try{mr({loadingZkToken:!0});const{status:o,error:s,detail:l}=await Bn.setZKSubscriptionPayConfig(a);o===204&&(await nH(),zi(q.ZK_TOKEN_SAVE_TOAST),mr({loadingZkToken:!1})),o===400&&setTimeout(()=>{mr({loadingZkToken:!1}),r(400)},1e3),s&&l&&Kn(l)}catch(o){console.log(o)}},qhn=async()=>{try{mr({loadingUsage:!0});const{subscriptionDetail:t}=vu(),{data:e}=await Bn.getUsageConfig();Ft.isEmpty(e)||(mr({subscriptionDetail:{...t,usageConfig:e}}),$hn({usageConfig:e})),mr({loadingUsage:!1})}catch{mr({loadingUsage:!1})}},Ekt=async(t,e,n)=>{try{mr({loadingUsage:!0});const{status:r,error:a}=await Bn.setUsageConfig(t);r===204?(t!=null&&t.autoPayOnQuotaExceeded&&e===q.AUTOMATIC_CHARGE_TYPE_TOGGLE&&zi(q.AUTO_PAY_ENABLE_TOGGLE_SUCCESS),!(t!=null&&t.autoPayOnQuotaExceeded)&&e===q.AUTOMATIC_CHARGE_TYPE_TOGGLE&&zi(q.AUTO_PAY_DISABLE_TOGGLE_SUCCESS),t!=null&&t.autoPurchaseCreditThreshold&&e===q.CONFIG_UPDATE_TYPE_BUTTON&&!n&&(zi(q.AUTO_PURCHASE_THRESHOLD_SUCCESS),JAe(!1)),t!=null&&t.autoPurchaseCreditThreshold&&e===q.CONFIG_UPDATE_TYPE_BUTTON&&n&&(zi(q.AUTO_PURCHASE_THRESHOLD_UPDATE_SUCCESS),JAe(!1)),e===q.AUTO_LOAD_TOGGLE&&!(t!=null&&t.offeringId)&&(zi(q.AUTO_PAY_DISABLE_TOGGLE_SUCCESS),b0a()),qhn()):(Kn(a||""),mr({loadingUsage:!1}))}catch{Kn(q.USAGE_CONFIG_ERROR),mr({loadingUsage:!1})}},eAa=async()=>{if((localStorage.getItem("loginType")||"")!==q.WEB3LOGIN)return;const{data:e}=await Bn.checkCanUpdateUserId();e&&mr({canUpdateUserId:!0})},tAa=async t=>{var r;const{userId:e,callback:n}=t;n(!0);try{if((await tTe({userId:e})).isUserExist){Kn(q.USER_ALREADY_EXIST_ERROR),n(!1);return}if(localStorage.getItem("sessionId")||""){const{status:u}=await Hu.updateProxyUserId(e);if(u!==204){n(!1);return}}const{status:s,error:l,data:c}=await Bn.updateUserId({userId:e});if(s===200){const{accessTokenExpires:u,refreshTokenExpires:d,accessToken:h,refreshToken:f}=c,p=(r=Date.now())==null?void 0:r.toString();localStorage.setItem("accessToken",h),localStorage.setItem("refreshToken",f),localStorage.setItem("accessTokenExpires",u),localStorage.setItem("refreshTokenExpires",d),localStorage.setItem("userId",e);const{data:m={sessionId:""}}=await Hu.getSessionId(h),{sessionId:g=""}=m;localStorage.setItem("sessionId",g),localStorage.setItem("tokenLastUpdatedOn",p),mr({isLoggedIn:!0,accessTokenExpires:u,accessToken:h,refreshToken:f,tokenLastUpdatedOn:p,canUpdateUserId:!1}),Poe()}else l&&Kn(l)}catch{}finally{n(!1)}},Yhn=t=>{mr({productCampaignDetails:t})},Jhn=async()=>{var t;try{const{data:e}=await Bn.getCurrentKeychains();(t=e==null?void 0:e.keychain)!=null&&t.length&&mr({keychainDetails:{...e}})}catch{}},nAa=async t=>{try{const e=Co.stringify(t),n=await Hu.deleteResourceAndBiscuit(e),{status:r}=n;(r===200||r===204)&&(Ooe(),Loe())}catch{}},Cit=t=>{mr({isEmptyVizClicked:t})},rAa=t=>{mr({subscriptionCount:{defaultQueriesCount:t}})},iAa=async()=>{try{const{data:t,error:e}=await Bn.getDefaultFreeQueries();t?rAa(t==null?void 0:t.freeQueryCount):Kn(e||"")}catch{}},Skt=["/dashboards","/queries","/view"];async function yq(t,e,n,r,a,o,s,l,c,u,d){var y,S,x,w;const h=e.includes("/pipelines/upload/script")||e.includes("/sandbox/create-pip-modules")||e.includes("/sandbox/upload-and-execute"),f=localStorage.getItem("baseUrl")||"",p=hN(d||f||HU),m=h?{}:{Accept:"application/json","Content-Type":"application/json",biscuit:u||""};m!=null&&m.biscuit||delete m.biscuit;const g={method:t.toUpperCase(),credentials:"same-origin",headers:{...m}};if(a){const _=a;_.current=new AbortController,g.signal=(y=_==null?void 0:_.current)==null?void 0:y.signal}a&&c&&(a.current=new AbortController,g.signal=(S=a==null?void 0:a.current)==null?void 0:S.signal),n&&(e.includes("/pipelines/upload/script")||e.includes("/sandbox/create-pip-modules")||e.includes("/sandbox/upload-and-execute")?g.body=n:g.body=JSON.stringify(n));let v=p+e;p&&e.substring(0,1)!=="/"&&(v=`${p}/${e}`),o&&(v=Lan+e),s&&(v=HU+e);let A;try{A=await fetch(v,g);const _=await(A==null?void 0:A.text());let C="";try{C=_!=null&&_.length?JSON.parse(_):{}}catch{C=_!=null&&_.length?_:{}}if(A.ok)return{data:C,status:A.status};A.status===402&&(C==null?void 0:C.title)===q.TRIAL_EXPIRED&&co(!0);const R=r?C:C.title||C.detail||C.message||((x=C[0])==null?void 0:x.message)||(C==null?void 0:C.error)||"";return Skt.some(P=>e.includes(P))&&!e.includes("/view/materialized/last-refreshed")&&SP(v,t,A.status,C),{error:R,status:A.status,detail:C&&C.detail?C.detail:void 0,apiAlert:{title:C.title||"",type:C.type||"",detail:C.detail||""}}}catch(_){let C="";return(w=g==null?void 0:g.signal)!=null&&w.aborted?(r||s)&&(C=s?"Query Prompt Aborted":"Query Aborted"):C="Network error",Skt.some(R=>e.includes(R))&&SP(v,t,0,{title:C,message:_.message}),{error:C,status:500}}}const aAa=async t=>{const e=localStorage.getItem("baseUrl")||"",n=hN(e||HU),r=await fetch(n+t),a=await r.json();if(r.ok)return a;throw new Error("")},Bn={put(t,e){return yq("PUT",t,e)},delete(t){return yq("DELETE",t)},post(t,e,n,r,a,o,s,l,c){return yq("POST",t,e,n,r,!1,a,o,s,l,c)},get(t,e,n,r,a,o,s){return yq("GET",t,e,n,r,a,o)},patch(t,e,n){return yq("PATCH",t,e,n)},runQuery(t,e,n,r){return this.post(Zt.runQuery(t),e,!0,n,!1,!1,r)},executeQuery(t,e,n){return this.post(Zt.executeQueryById(e),t,!0,n)},getVisual(t,e){return this.get(Zt.getVisual(t,e))},getQueryHistory({params:t,abortController:e,isRecent:n}){return this.get(n?Zt.getRecentQueryHistory(t):Zt.getHistoricalQueryHistory(t),null,!1,e)},getSavedQueries(t,e,n){return this.get(Zt.getSavedQueries(t,e),null,!1,n)},getAllQueries({params:t,isLoggedIn:e=!1,abortController:n}){return this.get(Zt.getAllQueries(t,e),null,!1,n)},getAllQueriesByPopular(t,e){return this.get(Zt.getAllQueriesFilteredByPopular(t,e),null,!1)},getAllQueriesByMyLikes(t){return this.get(Zt.getAllQueriesFilteredByMyLikes(t),null,!1)},async addLikeToQuery(t,e){return this.post(Zt.addLikeToQuery(t,e),{})},async addDislikeToQuery(t,e){return this.post(Zt.addDislikeToQuery(t,e),{})},async addLikeToDashboard(t,e){return this.post(Zt.addLikeToDashboardId(t,e),{})},async addDislikeToDashboard(t,e){return this.post(Zt.addDislikeToDashboardId(t,e),{})},async addLikeToVisual(t){return this.post(Zt.addLikeToVisualId(t),{})},async addDislikeToVisual(t){return this.post(Zt.addDislikeToVisualId(t),{})},async saveVisual(t){return this.post(Zt.saveVisual(),t)},async saveDashboard(t){return this.post(Zt.saveDashboard(),t)},async updateDashboard(t,e){return this.put(Zt.updateDashboard(e),t)},async updateVisual(t,e){return this.put(Zt.updateVisual(t),e)},getVisuals(t,e){return rR(Zt.getVisuals(t,e),{dedupingInterval:6e3,revalidateOnFocus:!1,revalidateIfStale:!0})},getVisualsInfiniteScroll(t,e){return iga(n=>{const r={...t,pageNo:n+1},a=Co.stringify({...ef(r)});return Zt.getVisuals(a,e)},aAa,{dedupingInterval:6e3,revalidateOnFocus:!1,revalidateIfStale:!0})},useGetPopularTags(t,e){return rR(Zt.getPopularTags(t,e),{dedupingInterval:6e3,revalidateOnFocus:!1})},async deleteVisual(t){return this.delete(Zt.deleteVisual(t))},async publishVisual(t,e){return this.post(Zt.publishVisual(t,e),{})},getQuery(t,e){return this.get(Zt.getSavedQuery(t,e))},async createQuery(t){return await this.post(Zt.createSavedQueries(),t)},async updateQuery(t,e){return await this.put(Zt.updateSavedQueries(t),e)},async convertToMaterializedView(t,e){return this.post(Zt.convertToMaterializedView(t),e)},deleteQuery(t){return Bn.delete(Zt.deleteSavedQueries(t))},async publishQuery(t,e){return this.post(Zt.publishQuery(t,e),{})},deleteQueryHistory(t){return Bn.delete(Zt.deleteQueryHistory(t))},useGetAllDashboard(t,e){return rR(Zt.getAllDashboards(t,e),{revalidateOnFocus:!1})},getDashboardById(t,e,n){return this.get(Zt.getDashboardById(t,e,n))},useGetDashboardByPopular(t,e){return rR(Zt.getDashboardByPopular(t,e),{revalidateOnFocus:!1})},getDashboardFilteredByMyLikes(t){return this.get(Zt.getDashboardsFilteredByMyLikes(t))},useGetDashboardsFilteredByMyLikes(t){return rR(()=>t&&Zt.getDashboardsFilteredByMyLikes(t),{revalidateOnFocus:!1})},getVisualsByPopular(t,e){return rR(Zt.getVisualsByPopular(t,e),{revalidateOnFocus:!1})},getVisualsFilteredByMyLikes(t){return rR(()=>t&&Zt.getVisualsFilteredByMyLikes(t),{revalidateOnFocus:!1})},useGetAllDashboardVisuals(t,e){return rR(Zt.getDashboardVisualsContent(t,e),{revalidateOnFocus:!1})},getSchemas({isUserLoggedIn:t,scope:e="PUBLIC"}){return Bn.get(Zt.getSchemas({isUserLoggedIn:t,scope:e}))},getRelationsData(t,e){return Bn.get(Zt.getRelations(t,e))},getTags(t){return this.get(Zt.getTags(t))},putDashboardVisuals(t,e){return this.put(Zt.putDashboardVisuals(t),e)},async deleteDashboard(t){return this.delete(Zt.deleteDashboard(t))},async publishDashboard(t,e){return this.post(Zt.publishDashboard(t,e),{})},async getDashboardVisualsContent(t,e){return this.get(Zt.getDashboardVisualsContent(t,e))},getInsightDashboard(t,e,n){return this.get(Zt.getInsightDashboard(t,e,n),void 0,!1,{},!0)},getAllCommunities(){return this.get(Zt.getAllCommunities(),void 0,!1,{},!0)},getAllStats(t,e){return this.get(Zt.getAllStats(t,e),void 0,!1,{},!0)},getInsightNodes(t,e){return this.get(Zt.getInsightNodes(t,e),void 0,!1,{},!0)},getSankeyChart(t,e){return this.get(Zt.getSankeyChart(t,e),void 0,!1,{},!0)},getInsightInteractions(t,e){return this.get(Zt.getInsightInteractions(t,e),void 0,!1,{},!0)},getNodeInformation(t,e,n,r){return this.get(Zt.getNodeBalance(t,e,n),void 0,!1,r,!0)},getNodeInteractions(t,e,n,r){return this.get(Zt.getNodeInteractions(t,e,n),void 0,!1,r,!0)},getTopTokens(t,e,n){return this.get(Zt.getTopTokens(t,e,n),void 0,!1,{},!0)},getNodeDistribution(t,e,n){return this.get(Zt.getNodeDistribution(t,e,n),void 0,!1,{},!0)},async createContainer(){return this.get(Zt.createContainer,void 0,!1,{},!1,!1,!0)},async getAuthCode(t,e){return this.post(Zt.getAuthCode(),t,!1,null,!1,!1,!1,"",e)},async getAccessToken(t,e){return this.post(Zt.getAuthToken(),t,!1,null,!1,!1,!1,"",e)},async refreshToken(t){return t?this.post(Zt.getAuthTokenRefresh(),null):null},async logout(){return this.post(Zt.logoutUser(),null)},async postGPT(t,e){return this.post(Zt.getGPT(),t,!1,e,!0)},async uploadZipFile(t){return this.post(Zt.uploadZipFile(),t,!1,null,!1,!0)},async deployPipeline(t){return this.post(Zt.deployPipeline(t),t,!1,null,!1,!0)},async generateDependencyFile(t){return this.post(Zt.generateDependencyFile,t,!1,null,!1,!0)},async getUserDetail(t){return this.get(Zt.getAndUpdateUserDetail(t))},async updateUserDetail(t,e){return await this.put(Zt.getAndUpdateUserDetail(t),e)},async uploadCodeToSandbox(t){return this.post(Zt.uploadCodeToSandbox,t,!1,null,!1,!0)},async getStreamingLogs(t){return this.get(Zt.getStreamingLogs(t),void 0,!1,{},!1,!1,!0)},async getSubscriptionPayConfig(){return this.get(Zt.getSubscriptionPayConfig())},async getZkSubscriptionPayConfig(){return this.get(Zt.getZkSubscriptionPayConfig())},async setZKSubscriptionPayConfig(t){return this.put(Zt.setZKSubscriptionPayConfig(),t)},async submitZKPayment(){return this.post(Zt.submitZKPayment,{})},async getSubscriptionDetails(){return this.get(Zt.getSubscription())},async getSubscriptionUsers(){return this.get(Zt.getSubscriptionUsers())},async removeUserSubscription(t){return this.post(Zt.removeUserSubscription(t),{})},async setUserSubscriptionRole(t,e){return this.post(Zt.setUserRole(t,e),{})},async inviteUser(t){return this.post(Zt.inviteUser(t),{})},async joinSubscription(t){return this.post(Zt.joinSubscription(t),{})},async forkQuery(t){return this.post(Zt.forkQuery(t),{})},async getPaymentHistory(t){return this.get(Zt.getPaymentHistory(t),null)},async getUserDataUsage(t){return this.get(Zt.getUserDataUsage(t))},async getSubscriptionDataUsage(t){return this.get(Zt.getSubscriptionDataUsage(t))},async getSubscriptionForACustomer(){return this.get(Zt.getSubscriptionForACustomer())},executeSQL(t,e,n){return this.post(Zt.executeSQL(),t,!0,e,!1,!1,n)},executeEncryptedSQL(t,e,n,r){return this.post(Zt.executeEncryptedSQL(t),e,!0,n,!1,!1,r)},async getPosStatus(){return this.get(Zt.getPosStatus())},executePoS(t,e,n){return this.post(Zt.executePoS(),t,!0,n,!1,!1,!1,e)},async getBalanceDetails(){return this.get(Zt.getBalanceDetails())},async getOfferings(){return this.get(Zt.getOfferings())},async getUsageConfig(){return this.get(Zt.usageConfig())},async setUsageConfig(t){return this.put(Zt.usageConfig(),t)},async addKey(t){return this.post(Zt.keys(),t)},async getAuthCodeKey(t){return this.post(Zt.authCodeKey(),t)},async checkCanUpdateUserId(){return this.get(Zt.checkCanUpdateUserId())},async updateUserId(t){return this.post(Zt.updateUserId(),t)},async getCurrentKeychains(){return this.get(Zt.keys())},async getBlockchains(){return this.get(Zt.getBlockchains())},async getBlockchainsWithMeta(t){return this.get(Zt.getBlockchainsWithMeta(t))},async getBLockchainSchemas({chainId:t}){return this.get(Zt.getBLockchainSchemas({chainId:t}))},async getAggregateBlockchainMetadata(){return this.get(Zt.getAggregateBlockchainMetadata())},async getViews(t,e){return this.get(Zt.getViews(t,e))},async encryptDataset(t){return this.post(Zt.encryptDataset(),t)},async leaveSubscription(){return this.post(Zt.leaveSubscription(),{})},async refreshMaterializedView(t){return this.post(Zt.refreshMaterializedView(),t)},async getViewLastRefreshTime(t){return this.post(Zt.getViewLastRefreshTime(),t)},async executeView(t){return this.post(Zt.executeView(),t)},async getDefaultFreeQueries(){return this.get(Zt.getDefaultFreeQueries(),null)},async getFreeQueriesQueryCount(){return this.get(Zt.getFreeQueriesQueryCount(),null)},async forkDashboard(t){return this.post(Zt.forkDashboard(t),{})},async forkVisual(t){return this.post(Zt.forkVisual(t),{})},async getZKPayHistoricalBalances(){return this.get(Zt.getZKPayHistoricalBalances(),null)},async getZKPayHistoricalPoints(){return this.get(Zt.getZKPayHistoricalPoints())},async getZKPayCurrentPoints(){return this.get(Zt.getZKPayCurrentPoints())},async getZkPayCumulativeDeposits(){return this.get(Zt.getZkPayCumulativeDeposits())},async getZKPayTransactions(t=1,e=10){return this.get(Zt.getZKPayTransactions(t,e))},async getZKPayZealyPoints(){return this.get(Zt.getZKPayZealyPoints())},async getZKPayCurrentTokenBalance(){return this.get(Zt.getZKPayCurrentTokenBalance())}};function Zhn(t,e){return Tbe.setItem(`queryText:${t}`,e).catch(n=>console.error(n))}function mVe(t){return Tbe.removeItem(`queryText:${t}`).catch(e=>console.error(e))}const oAa="/assets/pipelineBg-926be18c.png",sAa="/assets/piplineFrameBg-4e0a7feb.png",zgs=gt.div`
  background: ${t=>t.theme.custom.piplineBg};
  background-repeat: no-repeat;
  .piplineFooterNode {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
  }
.pipelineViewWrapper{
  padding-top: 56px;
  min-height: 100vh;
  width: 100%; 
  background: rgb(14 7 34 / 40%) url(${sAa});
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100%;
  display: flex;
  flex-direction: column; 
  position: relative;
  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: url(${oAa});
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100%;
    pointer-events: none;
  }
  .react-flow {
    flex: 1;
    .react-flow__handle.connectable {
      cursor: crosshair;
      visibility: hidden;
    }
  }
  .pipelinesearch {
    padding: 30px 20px;
    .pageSearchTitle:nth-child(1) {
      max-width: 421px;
      text-align: center;
      margin: 0 auto;
    }
    .pageSearchTitle:nth-child(2) {
      margin: 30px auto;
      max-width: 500px;
      text-align: center;
      display: block;
    }
    .inputField input{
      font-size: 14px; 
      height: 60px;
    }
  }
  .pageSearchTitle {
    position: relative;
    display: flex;
    justify-content: center;
    h1 {
      margin-bottom: 0;
      color: ${t=>t.theme.custom.white.A1};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      font-size: 32px;
      strong{
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
      }
    }
    .globalSearch{
       .autoCompleteSearch{
          background: rgba(31, 22, 56, 0.45);  
          border:0.5px solid rgba(230, 230, 230, 0.5);
          box-shadow: 4px 4px 24px rgba(31, 48, 51, 0.4);
          backdrop-filter: blur(8px);   
          .searchIcon{
            background-color:transparent;
         }
        }
       .seeall{
          color: ${t=>t.theme.custom.pink};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
           font-size:14px;
        }
        .searchListing{
          background: rgba(31, 22, 56, 0.45);   
          backdrop-filter: blur(8px);  
          border:0.5px solid rgba(230, 230, 230, 0.5);
          border-top:0px none;
          li:hover {
            background-color: rgba(80, 0, 191, 0.3); 
          }
        }
     }
   }
  .pageheader {
    padding: 18px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    h1 {
      margin-bottom: 0;
      color: ${t=>t.theme.custom.white.A1};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
    }
  }
  .searchNodeRow {
    flex:1;
    display: flex;
    padding: 0 48px;
    justify-content: space-between;
    ${t=>t.theme.breakpoints.down("md")} {
      flex-wrap: wrap;
      gap: 15px;
    }
    .searchNode {
      flex: 0 0 25%;
      max-width: 25%;
      padding: 0 15px;
      ${t=>t.theme.breakpoints.down("md")} {
        flex: 100%;
        max-width: 100%;
      }
      .thumbnailNode {
        width: 220px;
        max-width: 100%;
        margin: 0 auto;
      }
    }
  }
  .pipelineList {
    margin-left: 100px;
    justify-content: space-between;
  }
  .buttonBlock {
    display: flex;
    align-items: center;
    .buttonBlockLeft {
      padding: 4px;
      border: 1px solid ${t=>t.theme.custom.white.A4};
      border-radius: 50rem;
      background: #25204d;
      flex: 1;
      color: ${t=>t.theme.custom.white.A1};
      font-size: 12px;
      display: flex;
      align-items: center;
      min-height: 46px;
      &.gradiantBg {
        background: linear-gradient(
          22.65deg,
          rgba(255, 255, 255, 0.06) 39.66%,
          rgba(255, 255, 255, 0) 104.09%
        );
      }
      .icon {
        color: ${t=>t.theme.custom.white.A1};
        height: 36px;
        width: 36px;
        background: #2b285b;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        svg {
          max-width: 18px;
        }
      }
      span {
        flex: 1;
        text-align: center;
      }
    }
    .buttonBlockRight {
      border: 1px solid ${t=>t.theme.custom.white.A4};
      border-radius: 50%;
      background: #25204d;
      cursor: pointer;
      padding: 6px;
      &.gradiantBg {
        background: linear-gradient(
          22.65deg,
          rgba(255, 255, 255, 0.06) 39.66%,
          rgba(255, 255, 255, 0) 104.09%
        );
      }
      button {
        height: 32px;
        width: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        cursor: pointer;
        border: 0;
        color: ${t=>t.theme.custom.white.A1};
        &.btnPurple {
          background: #5000bf;
        }
        &.btnPink {
          background: #cc0aac;
        }
      }
    }
  }
  .piplineNode {
    background: #25204d;
    box-shadow: 0px 30px 30px 10px rgba(19, 17, 44, 0.8);
    text-align: left;
  }
  .react-flow {
    &__background {
      visibility: hidden;
    }
  }
  .blockNodeWrapper{
    border-radius: 50rem;
  }
  .thumbnailNodeWrapper{
    border-radius:16px;
  }
  .pathSelectionNodeWrapper{
    border-radius:16px;
  } 
  .pipelineViewHeader {
    display: flex;
    justify-content: space-between;
    .pipelineHeaderRight {
      display:flex;
      gap:20px; 
      .pipelineFilter {
        display: flex;
        align-items: center;
        gap: 12px;
        .MuiFormControl-root {
          width: 90px;
        }
        .MuiInputBase-root{
          background: ${t=>t.theme.custom.piplineFilterBg};
          backdrop-filter: blur(15px);
          border-radius: 50rem;
          border: 1px solid rgba(255,255,255,0.03);
          box-shadow: unset;
          .MuiSelect-select {
            padding: 10px 12px;
            font-size: ${t=>t.theme.custom.fontSize.font12};
          }
        }
      }
      .buttonBlock {
       min-width:160px;
       .gradiantBg{
        background:rgba(45, 36, 71, 1);
      }
    }
  }
  
`;gt.div`
  && {
    border-radius: 50rem;
    padding: 6px;
    .blockchainNodeContent {
      display: flex;
      align-items: center;
      .blockchainImg {
        height: 55px;
        width: 55px;
        border-radius: 50%;
        margin-right: 16px;
        // background: linear-gradient(
        //   31.14deg,
        //   rgba(255, 255, 255, 0.06) 33.94%,
        //   rgba(255, 255, 255, 0) 90.86%
        // );
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid ${t=>t.theme.custom.white.A4};
        img {
          max-width: 50px;
        }
      }
      .blockchainInfo {
        flex: 1;
        p {
          color: #fff;
          font-size: 14px;
          margin-bottom: 0;
        }
        span {
          color: #a7a7a7;
        }
      }
    }
  }
`;const Ggs=gt.div`
  && {
    border-radius: 16px;
    .thumbnailNodeContent {
      .thumbnailInfo {
        padding: 10px 14px;
      }
    }
  }
}
`,Vgs=gt.div`
  height: 130px;
  border-bottom: 1px solid ${t=>t.theme.custom.white.A4};
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 21, 54, 1);
  cursor: pointer;
  img {
    max-width: 100%;
  }
`;gt.div`
  && {
    border-radius: 16px;
    padding: 12px;
    .heading {
      color: ${t=>t.theme.custom.white.A1};
      margin-bottom: 12px;
      font-size: 14px;
      span {
        font-weight: ${t=>t.theme.custom.fontWeight.md};
      }
    }
    ul {
      margin: 0;
      padding: 0;
      list-style: none;
      max-height: 280px;
      overflow: auto;
      padding-right: 6px;
    }
  }
`;gt.div`
  && {
    background: #2b285b;
    border-radius: 16px;
    padding: 12px;
    .listHead {
      color: ${t=>t.theme.custom.white.A1};
      font-size: 12px;
      span {
        color: #9995ba;
      }
    }
    p {
      font-size: 10px;
      margin: 8px 0 0;
      color: #9995ba;
    }
    .tagList {
      display: flex;
      flex-wrap: wrap;
      margin: 8px -2px 0;
      .listItem {
        padding: 2px;
        flex: 0 0 50%;
        max-width: 50%;
        span {
          display: block;
          color: ${t=>t.theme.custom.white.A1};
          font-size: 12px;
          background: #25204d;
          border-radius: 50rem;
          padding: 8px 10px;
          text-align: center;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
    &:not(:first-child) {
      margin-top: 8px;
    }
  }
`;var kit={},lAa=As;Object.defineProperty(kit,"__esModule",{value:!0});var Xhn=kit.default=void 0,cAa=lAa(Ps()),uAa=E;Xhn=kit.default=(0,cAa.default)((0,uAa.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");gt.div`
  position: relative;
  flex: 0 0 25%;
  max-width: 25%;
  padding: 20px 0;
  &:after {
    position: absolute;
    content: '';
    background: linear-gradient(
      43deg,
      rgba(255, 255, 255, 0.18) -19.71%,
      rgba(255, 255, 255, 0) 56.06%
    );
    top: 0;
    right: 0;
    width: 2px;
    z-index: 1;
    height: 100%;
  }
  &:last-child:after {
    display: none;
  }
  .pipelinefooter-inner ul {
    padding: 0;
    padding-right: 6px;
    overflow: auto;
    margin: 0;
    list-style: none;
    max-height: 200px;
  }
  .pipelinefooter-inner ul li {
    display: flex;
    align-items: center;
    margin: 5px 0;
  }
  .pipelinefooter-content {
    flex: 1;
  }
  .pipelinefooter-content .listTitle {
    color: ${t=>t.theme.custom.white.A1};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
  }
  .pipelinefooter-content p {
    margin: 5px 0;
    color: ${t=>t.theme.custom.white.A1};
  }
  .pipelinefooter-content p span {
    color: ${t=>t.theme.custom.greyText.A2};
    margin-left: 5px;
  }
  .pipelinefooter-inner {
    position: relative;
    padding: 0 20px;
    &:after {
      position: absolute;
      top: 0;
      right: 0;
      content: '';
      width: 1px;
      height: 100%;
      background: linear-gradient(
        180deg,
        rgba(12, 11, 36, 0) 5.05%,
        rgb(255 255 255 / 18%) 100%
      );
    }
    &:last-child:after {
      display: none;
    }
  }

  .pipeline-image {
    background: linear-gradient(
      31.14deg,
      rgba(255, 255, 255, 0.06) 33.94%,
      rgba(255, 255, 255, 0) 90.86%
    );
    backdrop-filter: blur(7px);
    border-radius: 14px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 5px;
    margin: 0 10px;
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
`;const dAa={isPipelineActionModalVisible:!1,isQueryEditorWithQueryInQueryBot:!1,isPipelineTableChartModalVisible:!1,currentNodesInPipelineView:{},isBackButtonPressed:!1},Rit=yE(()=>({...dAa})),hAa=()=>Rit(t=>t.isQueryEditorWithQueryInQueryBot),fAa=()=>Rit(t=>t.isBackButtonPressed),pAa={data:[{id:"Ethereum",type:"blockchain",title:"Ethereum Data",subtitle:"Indexed data!",positionX:0,positionY:0,sourcePosition:"right",targetPosition:"right"},{id:"Avalanche",type:"blockchain",title:"Avalanche C-Chain",subtitle:"Indexed data",positionX:0,positionY:100,sourcePosition:"right",targetPosition:"right"},{id:"Off_Chain",type:"blockchain",title:"Off - Chain Sources",subtitle:"Indexed data",positionX:0,positionY:200,sourcePosition:"right",targetPosition:"right"}],footer:[{image:"",title:"Blockchain indexing",type:"cluster",unit:{value:"140 CPU",type:"units",count:"1.1m",countType:"runtime"}}]},mAa={data:[{id:"Execute_Query",type:"task",title:"Execute_Query",subtitle:"Indexed data",positionX:1260,positionY:0,sourcePosition:"right",targetPosition:"left"},{id:"Table_result",type:"task",title:"Table_result",subtitle:"Indexed data",positionX:640,positionY:100,sourcePosition:"right",targetPosition:"left"}],footer:[{image:"",title:"Complex Query",type:"cluster",unit:{value:"140 CPU",type:"units",count:"1.1m",countType:"runtime"}}]},gAa={data:[{id:"Publish_to_API_endpoint",type:"api_endpoint",title:"Publish to API endpoint",subtitle:"Indexed data",positionX:320,positionY:0,sourcePosition:"right",targetPosition:"left"},{id:"New_Chart",type:"task",title:"New Chart",subtitle:"Indexed data",positionX:320,positionY:250,sourcePosition:"right",targetPosition:"left"}],footer:[{image:"",title:"Complex Query",type:"cluster",unit:{value:"140 CPU",type:"units",count:"1.1m",countType:"runtime"}}]},vAa={data:[{id:"Oracal_path",type:"selector",title:"Choose Your Oracal path",subtitle:"Indexed data",positionX:960,positionY:0,sourcePosition:"right",targetPosition:"left"},{id:"Smart_Table",type:"configurator",title:"Configure Smart Table",subtitle:"Indexed data",positionX:960,positionY:400,sourcePosition:"right",targetPosition:"left"}],footer:[{image:"",title:"Complex Query",type:"cluster",unit:{value:"140 CPU",type:"units",count:"1.1m",countType:"runtime"}}]},AAa={lane1:pAa,lane2:mAa,lane3:gAa,lane4:vAa},{setState:AV,getState:efn}=Rit,wkt=t=>{AV({isQueryEditorWithQueryInQueryBot:t})},Yue=t=>{AV({isPipelineActionModalVisible:t})},Jue=t=>{AV({isPipelineTableChartModalVisible:t})},u3=(t,e)=>{var a,o,s,l,c,u,d,h;const{currentNodesInPipelineView:n}=efn();if(!n[t])n[t]={data:[]};else if((a=n[t].data)!=null&&a.find(f=>(e==null?void 0:e.id)===f.id))return;if(e.id==="Oracal_path"&&(t==="lane4"||t==="lane3")&&((s=(o=n==null?void 0:n.lane3)==null?void 0:o.data)!=null&&s.find(f=>f.id==="Oracal_path")||(c=(l=n==null?void 0:n.lane4)==null?void 0:l.data)!=null&&c.find(f=>f.id==="Oracal_path")))return;const r=AAa;n[t]={...n[t],data:(d=(u=n[t])==null?void 0:u.data)==null?void 0:d.concat(e),footer:(h=r[t])==null?void 0:h.footer},AV({currentNodesInPipelineView:Ft.cloneDeep(n)})},_kt=(t,e)=>{var r,a;const{currentNodesInPipelineView:n}=efn();n[t]&&(r=n[t].data)!=null&&r.find(o=>o.id===e)&&(n[t]={...n[t],data:(a=n[t].data)==null?void 0:a.filter(o=>o.id!==e)},AV({currentNodesInPipelineView:Ft.cloneDeep(n)}))},Kgs=()=>{AV({currentNodesInPipelineView:{}})},d3={getChainAllDataNode:(t,e,n,r)=>({id:t,type:r,title:e,subtitle:n,sourcePosition:"right",targetPosition:"left"}),executeQueryNode:()=>({id:"Execute_Query",type:"task",title:"Execute Query",subtitle:"Indexed data",sourcePosition:"right",targetPosition:"left"}),tableResultNode:()=>({id:"Table_result",type:"task",title:"Table Result",subtitle:"Indexed data",sourcePosition:"right",targetPosition:"left"}),publishAPINode:()=>({id:"api_endpoint",type:"api_endpoint",title:"Publish to API end point",subtitle:"Indexed data",sourcePosition:"right",targetPosition:"left"}),oracleJobNode:()=>({id:"Oracal_path",type:"task",title:"Send data to chain",subtitle:"Indexed data",sourcePosition:"right",targetPosition:"left"}),newChartNode:()=>({id:"New_Chart",type:"task",title:"New Chart",subtitle:"Indexed data",sourcePosition:"right",targetPosition:"left"})},Tkt=(t,e,n)=>{switch(t){case"Execute_Query":{if(e){u3("lane1",d3.getChainAllDataNode("Off_Chain","Off-chain sources","","blockchain")),u3(`lane${n}`,d3.executeQueryNode()),hp(q.SELECT_TABLE_QUERY),wkt(!0);return}Yue(!0),Jue(!1);break}case"New_Chart":{if(e){u3(`lane${n}`,d3.newChartNode());return}Yue(!1),Jue(!0),W6("chart");break}case"Table_result":{if(e){u3(`lane${n}`,d3.tableResultNode());return}Yue(!1),Jue(!0),W6("table");break}case"api_endpoint":{u3(`lane${n}`,d3.publishAPINode());break}case"Oracal_path":{u3(`lane${n}`,d3.oracleJobNode());break}case"create_new_table":{hp(q.CREATE_NEW_TABLE),wkt(!0);break}default:{Yue(!1),Jue(!1);break}}},yAa={chainData:null,selectedChainType:"",savedQueryDetail:null,solidityCode:"",jsCode:"",codeLoading:!1,optimizeGasSelectedDataType:"",chainlinkRequestType:"",isSelectedChainConnected:!1,isSolidityCode:!0,oracleJobsData:{data:[],error:"",isLoading:!1}},mN=yE(()=>({...yAa})),Mit=()=>mN(t=>t.chainData),yV=()=>mN(t=>t.selectedChainType),Nit=()=>mN(t=>t.solidityCode),bAa=()=>mN(t=>t.jsCode),xAa=()=>mN(t=>t.codeLoading),tfn=()=>mN(t=>t.optimizeGasSelectedDataType),nfn=()=>mN(t=>t.chainlinkRequestType),rfn=()=>mN(t=>t.isSolidityCode);async function Ckt(t,e,n){var u;const r=hN(Ban),o={Accept:"application/json",access_token:localStorage.getItem("accessToken")||"","Content-Type":"application/json"},s={method:t.toUpperCase(),credentials:"same-origin",headers:o};s.body=JSON.stringify(n);let l=r+e;r&&e.substring(0,1)!=="/"&&(l=`${r}/${e}`);let c;try{c=await fetch(l,s);const d=(u=c==null?void 0:c.body)==null?void 0:u.getReader();if(d){const h=await(d==null?void 0:d.read());return d==null||d.cancel(),new TextDecoder().decode(h==null?void 0:h.value)}return""}catch{const h=q.NETWORK_ERROR;return Kn(h),{error:h}}}const ifn={get(t,e){return Ckt("GET",t,e)},post(t,e){return Ckt("POST",t,e)},async getSmartContractCode(t,e){return this.get(Zt.getSmartContractCode(t,e))},async postSmartContractJSCode(t){return this.post(Zt.postSmartContractJSCode(),t)}},{setState:xC,getState:Wgs}=mN,XX=t=>{xC({selectedChainType:t})},JU=t=>{xC({chainData:t})},EAa=t=>{xC({savedQueryDetail:t})},afn=async(t,e)=>{try{return await ifn.getSmartContractCode(t,e)||""}catch{Kn(q.NETWORK_ERROR)}return""},XAe=t=>{xC({solidityCode:t})},NR=t=>{xC({codeLoading:t})},ofn=async t=>{try{return await ifn.postSmartContractJSCode(t)||""}catch{Kn(q.NETWORK_ERROR)}return""},eee=t=>{xC({jsCode:t})},Vne=t=>{xC({isSolidityCode:t})},kkt=t=>{xC({chainlinkRequestType:t})},AZ=t=>{xC({optimizeGasSelectedDataType:t})},sfn=t=>{xC({isSelectedChainConnected:t})},ZU={id:"",showSchema:!1,showVisProperties:!1,userId:"",schemaExpansions:{},resourceId:"",isRunning:!1,isExecutionStarting:!1,isSaving:!1,saveError:void 0,name:"",queryText:"",selectedChartId:void 0,chartType:"",description:"",widgets:[],chartFields:{},chartCustomization:{},canRead:!0,canWrite:!0,canDelete:!0,queryError:void 0,runQueryStartTime:void 0,selectedText:"",showValidation:!1,unsavedChanges:!1,confirmVisualization:!1,toggleVisTable:"table",chartOptions:{},isChartView:!1,toggleERDTable:!0,editorTheme:"github",variables:{},toggleVariable:!1,extraChartSeries:[],result:{},savedqueryId:"",durationMs:null,tags:[],chartState:"",showChartSaveQueryModal:!1,chartSuggestions:{showMoreChartsSuggestions:!1,hasMoreChartsSuggestions:!1},isQueryTextEditing:!1,currentThumbnailChartView:{},filteredDataFrameObject:{},dataFrameObject:{},queryComments:"",parameter:"",GPTResult:"",GPTContext:[],isGPTLoading:!1,GPTGraph:[],isGPTGraphLoading:!1,visibility:"",queryMessage:"",proofOfSql:!1,queryERDData:{queryTables:[],querySchemas:[],queryTableNames:[]}},lfn={initialized:!1,showQueryModal:!1,showChartSaveQueryModal:!1,focusedSessionId:Vl(),editorSessions:{[Vl()]:ZU},batches:{},statements:{},schemaStates:{},tabs:[{id:"1",name:"Untitled Query 1"}],tab:"1",queries:[],isDarkErd:!1,isQueryLoading:!1,isWhiteTextEditor:!1,isRunBtnClick:!1,dqlRunCount:0,isErrOpen:!1,queryEditorAbortController:null,aceEditorUpdated:!0,showQueryTemplateSuggestion:!1,showQueryTemplateSuggestionAI:!1,isProofOfSqlEnabled:!1,paneWidth:0,paneWidthChanged:!1,showPosMenu:!1,calledWithoutPosTable:!1},Ia=yE((t,e)=>({...lfn,getFocusedSession:()=>{const n=Vl(),{focusedSessionId:r,editorSessions:a}=e();return a[n]||a[r]||{}},getSession:n=>{const{editorSessions:r}=e();return r[n]}}));function SAa(){return Ia(t=>t.calledWithoutPosTable)}function wAa(){return Ia(t=>t.getFocusedSession().currentThumbnailChartView)}function Iit(){return Ia(t=>t.getFocusedSession().chartOptions)}function _Aa(){return Ia(t=>t.getFocusedSession().isQueryTextEditing)}function TAa(){return Ia(t=>t.getFocusedSession().tags)}function Pit(){return Ia(t=>{var e;return(e=t.getFocusedSession())==null?void 0:e.editorTheme})}function Oit(){return Ia(t=>t.showQueryModal)}function Lit(){return Ia(t=>t.showChartSaveQueryModal)}function CAa(){return Ia(t=>t.getFocusedSession().saveError)}function cfn(){return Ia(t=>t.getFocusedSession().isChartView)}function kAa(){return Ia(t=>{var e;return(e=t.tabs)==null?void 0:e.reverse()})}function RAa(){return Ia(t=>{var e;return(e=t.queries)==null?void 0:e.reverse()})}function MAa(){return Ia(t=>t.tab)}function Boe(){return Ia(t=>t.getFocusedSession().id||"")}function NAa(){return Ia(t=>t.getFocusedSession().description)}function Doe(){return Ia(t=>t.getFocusedSession().name)}function G_e(){return Ia(t=>t.getFocusedSession().toggleVisTable)}function ufn(){return Ia(t=>t.getFocusedSession().confirmVisualization)}function V_e(t){return Ia(e=>{var a;const n=e.tabs.findIndex(o=>o.id===parseInt(t,10)),r=e.tabs[n];return e.getFocusedSession().queryText||((a=e.editorSessions[r==null?void 0:r.id])==null?void 0:a.queryText)})}function Bit(){return Ia(t=>t.getFocusedSession().showValidation)}function Yw(){return Ia(t=>t.getFocusedSession().isRunning)}function $oe(){return Ia(t=>t.getFocusedSession().isSaving)}function dfn(){return Ia(t=>t.getFocusedSession().canWrite)}function K_e(){return Ia(t=>t.getFocusedSession().showSchema)}function IAa(){return Ia(t=>t.getFocusedSession().chartFields||{})}function bV(){return Ia(t=>{const{queryError:e}=t.getFocusedSession();return e||""})}function hfn(){return Ia(t=>t.getFocusedSession().runQueryStartTime)}function ffn(){return Ia(t=>{var n;const{result:e}=t.getFocusedSession();return e&&((n=e==null?void 0:e.items)==null?void 0:n.length)||0})}function PAa(){return Ia(t=>{const{result:e}=t.getFocusedSession();return!nae.isEmpty(e)})}function pfn(){return Ia(t=>t.getFocusedSession().durationMs)}const OAa=[];function mfn(){return Ia(t=>{const{result:e}=t.getFocusedSession();return nae.isEmpty(e)?OAa:e==null?void 0:e.fieldsMetadata})}function m9(){return Ia(t=>{const{result:e}=t.getFocusedSession();return nae.isEmpty(e)?[]:e==null?void 0:e.items})}function Dit(){return Ia(t=>{const{result:e}=t.getFocusedSession();return nae.isEmpty(e)?"":"finished"})}function LAa(){return Ia(t=>t.getFocusedSession().chartCustomization)}function $it(){return Ia(t=>{var e;return((e=t.getFocusedSession())==null?void 0:e.chartSuggestions)||{}})}function Fit(){return Ia(t=>t.getFocusedSession().queryComments)}function gfn(){return Ia(t=>{const{result:e={}}=t.getFocusedSession();return e})}function vfn(){return Ia(t=>{var e;return((e=t.getFocusedSession())==null?void 0:e.userId)||""})}function BAa(){return Ia(t=>{var e;return((e=t.getFocusedSession())==null?void 0:e.GPTResult)||""})}function xV(){return Ia(t=>{var e;return((e=t.getFocusedSession())==null?void 0:e.isGPTLoading)||!1})}function Afn(){return Ia(t=>t.isWhiteTextEditor)}function yfn(){return Ia(t=>t.dqlRunCount)}function DAa(){return Ia(t=>t.isErrOpen)}function $Aa(){return Ia(t=>{var e;return((e=t.getFocusedSession())==null?void 0:e.queryMessage)||""})}function FAa(){return Ia(t=>t.queryEditorAbortController)}function jAa(){return Ia(t=>t.aceEditorUpdated)}function bfn(){return Ia(t=>t.showQueryTemplateSuggestion)}function HAa(){return Ia(t=>t.showQueryTemplateSuggestionAI)}function jit(){return Ia(t=>{var e;return(e=t.getFocusedSession())==null?void 0:e.proofOfSql})}function xfn(){return Ia(t=>t.isProofOfSqlEnabled)}function Efn(){return Ia(t=>t.getFocusedSession().queryERDData)}function Sfn(){return Ia(t=>t.paneWidth)}function UAa(){return Ia(t=>t.paneWidthChanged)}function wfn(){return Ia(t=>t.showPosMenu)}const zAa={blockchainMeta:{},publicSchemasAndTablesData:{publicSchemasAndTables:{},publicSchemasAndTablesLoading:!0,views:{}},subscribedSchemasAndTablesData:{subscribedSchemasAndTables:{},subscribedSchemasAndTablesLoading:!1,views:{}},blockchainAndSchemasData:{blockchainsAndSchemas:{},loading:!1},schemaToBlockchainReference:{},schemas:[],queryEditorSchemas:[],publicSchemasAndTablesLoaded:!1,subscribedSchemasAndTablesLoaded:!1,coreLoading:!1,currentEncryptedTables:{},blockchainDiscoveryOrder:[]},xE=yE(()=>({...zAa})),Foe=()=>xE(t=>t.publicSchemasAndTablesData),GAa=()=>xE(t=>t.blockchainDiscoveryOrder),EV=()=>xE(t=>t.subscribedSchemasAndTablesData),SV=()=>xE(t=>t.queryEditorSchemas),Hit=()=>xE(t=>t.schemas),W_e=()=>xE(t=>t.publicSchemasAndTablesLoaded),Q_e=()=>xE(t=>t.subscribedSchemasAndTablesLoaded),_fn=()=>xE(t=>t.coreLoading),Tfn=()=>xE(t=>t.blockchainAndSchemasData),VAa=()=>xE(t=>t.currentEncryptedTables),Uit=()=>xE(t=>t.blockchainMeta),{getState:Lw,setState:Wh}=xE,{getState:joe}=io,tee=({schemasToCombine:t,combinedSchemaData:e})=>{const n={...e};return Object.keys(t).forEach(r=>{var s,l;if(!n[r]){n[r]=t[r];return}const{tables:a={},views:o={}}=n[r];n[r].tables={...a,...((s=t[r])==null?void 0:s.tables)||{}},n[r].views={...o,...((l=t[r])==null?void 0:l.views)||{}}}),n},Kne=async t=>{var e,n;try{const{schemaToBlockchainReference:r,publicSchemasAndTablesData:a,subscribedSchemasAndTablesData:o}=Lw(),{publicSchemasAndTables:s}=a,{subscribedSchemasAndTables:l}=o;let c={};c=tee({schemasToCombine:t,combinedSchemaData:c}),c=tee({schemasToCombine:s,combinedSchemaData:c}),c=tee({schemasToCombine:l,combinedSchemaData:c});const u=[],d=[],h={};(e=Object.keys(c))==null||e.forEach(f=>{const p=c[f],m=Object.values(p.tables),g=Object.values(p.views)||[];u.push({...p,tables:m,views:g});const{schema:v}=p;if(!r[v])d.push({...p,tables:m,views:g});else{r[v]&&!h[r[v]]&&(h[r[v]]={schema:r[v],tables:{},isBlockchain:!0,parentSchema:r[v],schemaSubGroups:{},views:{}});let A=h[r[v]].tables;A={...A,...p.tables},h[r[v]].tables=A;const y=r[v]===v?"core":v,S=Object.keys(p.tables);h[r[v]].schemaSubGroups={...h[r[v]].schemaSubGroups,[y]:S}}}),(n=Object.keys(h))==null||n.forEach(f=>{const p=h[f],m=Object.values(p.tables),g=Object.values(p.views)||[];d.push({...p,tables:m,views:g})}),await Wh({schemas:d,queryEditorSchemas:u})}catch(r){console.log(r)}},KAa=async()=>{const{blockchainAndSchemasData:t,schemaToBlockchainReference:e,publicSchemasAndTablesData:n}=Lw(),{blockchainsAndSchemas:r}=t,{publicSchemasAndTables:a}=n,{isLoggedIn:o}=joe(),s={};try{const l=Object.keys(r);return await Promise.all(l==null?void 0:l.map(async c=>{let u={};try{const d=Co.stringify({schema:c,scope:E5.public}),{data:h=[]}=await Bn.getRelationsData(d,o);u=tat({tables:h,schemaToBlockchainReference:e,blockchainsAndSchemas:r})}catch{u={}}s[c]={schema:c,tables:u,parentSchema:c,isBlockchain:!0,views:{}}})),Wh({publicSchemasAndTablesData:{...n,publicSchemasAndTables:{...a,...s}}}),await Kne(s),s}catch{return Wh({publicSchemasAndTablesData:{...n,publicSchemasAndTables:{...a,...s}}}),await Kne(s),s}},WAa=async()=>{const{blockchainAndSchemasData:t}=Lw(),{blockchainsAndSchemas:e}=t;if(Ft.isEmpty(e))try{Wh({blockchainAndSchemasData:{blockchainsAndSchemas:{},loading:!0}});const{data:n=[]}=await Bn.getAggregateBlockchainMetadata(),r={};n.forEach(l=>r[l.chainId]={chainId:l.chainId,comingSoon:l.comingSoon,details:l.details,evmChainId:l.evmChainId,name:l.name});const a=n.map(l=>({chainId:l.chainId})),o={},s={};n.forEach(l=>{const c={};l.coreSchema!==null&&(c[l.chainId]={isPublic:!1,schemaType:"core"},s[l.chainId]=l.chainId),l.sxtIndexedSchemas!==null&&l.sxtIndexedSchemas.forEach(u=>{c[u]={isPublic:!1,schemaType:"sxt"},s[u]=l.chainId}),l.communityIndexedSchemas!==null&&l.communityIndexedSchemas.forEach(u=>{c[u]={isPublic:!1,schemaType:"community"},s[u]=l.chainId}),o[l.chainId]=c}),Wh({blockchainMeta:r,blockchainAndSchemasData:{blockchainsAndSchemas:o,loading:!1},schemaToBlockchainReference:s,blockchainDiscoveryOrder:a})}catch(n){throw Wh({blockchainAndSchemasData:{blockchainsAndSchemas:{},loading:!1}}),n}},Wne=async({selectedSchema:t=""})=>{Wh({coreLoading:!0}),await WAa();const{blockchainAndSchemasData:e,schemaToBlockchainReference:n}=Lw(),{isLoggedIn:r}=joe(),{blockchainsAndSchemas:a}=e;let o={};t||(o={...await KAa()}),Wh({coreLoading:!1});let s=[];const{publicSchemasAndTablesData:l}=Lw(),{publicSchemasAndTables:c}=l;Wh({publicSchemasAndTablesData:{...l,publicSchemasAndTablesLoading:!0}});try{const{data:d=[]}=await Bn.getSchemas({isUserLoggedIn:r,scope:E5.public});s=d,t&&(d==null||d.every(h=>{const{schema:f=""}=h;return(f==null?void 0:f.toLowerCase())===(t==null?void 0:t.toLowerCase())?(s=[h],!1):!0}))}catch{}try{await Promise.all(s==null?void 0:s.map(async({schema:d})=>{if(a[d])return;let h={};try{const f=Co.stringify({schema:d,scope:E5.public}),{data:p=[]}=await Bn.getRelationsData(f,r);h=tat({tables:p,schemaToBlockchainReference:n,blockchainsAndSchemas:a})}catch{h={}}o[d]={schema:d,tables:h,parentSchema:n[d]||d,isBlockchain:!!n[d],views:{}}}))}catch{}const u=tee({schemasToCombine:o,combinedSchemaData:c});Wh({publicSchemasAndTablesData:{publicSchemasAndTables:{...u},publicSchemasAndTablesLoading:!1,views:{}},publicSchemasAndTablesLoaded:!0}),await Kne(o)},QAa=async()=>{const{publicSchemasAndTablesData:t}=Lw(),{publicSchemasAndTables:e,views:n}=t,r={...e},a={...n},{isLoggedIn:o}=joe();Wh({publicSchemasAndTablesData:{...t,publicSchemasAndTablesLoading:!0}});try{const s=Co.stringify({scope:E5.public}),{data:l=[]}=await Bn.getViews(s,o);l==null||l.forEach(c=>{const{schema:u,view:d}=c;r[u]||(r[u]={views:{},parentSchema:u,schema:u,tables:{},isBlockchain:!1});const h=`${u}.${d}`;r[u].views[h]=c,a[h]=c})}catch{}finally{await Wh({publicSchemasAndTablesData:{...t,publicSchemasAndTables:r,publicSchemasAndTablesLoading:!1,views:a}}),await Kne(r)}},K6=async({selectedSchema:t})=>{var r;await QAa();const{subscribedSchemasAndTablesData:e}=Lw(),{isLoggedIn:n}=joe();try{Wh({subscribedSchemasAndTablesData:{...e,subscribedSchemasAndTablesLoading:!0}});const{data:a=[]}=await Bn.getSchemas({isUserLoggedIn:n,scope:E5.subscription});let o=!1;if(t&&(a==null||a.every(({schema:g})=>(g==null?void 0:g.toLowerCase())===(t==null?void 0:t.toLowerCase())?(o=!0,!1):!0),!o))return;const{blockchainAndSchemasData:s,schemaToBlockchainReference:l}=Lw(),{blockchainsAndSchemas:c}=s,{subscribedSchemasAndTables:u,views:d}=e,h={...d},f={},p={};try{const g=Co.stringify({...ef({scope:E5.subscription,schema:t||""})}),{data:v=[]}=await Bn.getViews(g,n);v==null||v.forEach(A=>{const{schema:y,view:S}=A;p[y]||(p[y]={});const x=`${y}.${S}`;p[y][x]=A,h[x]=A})}catch{Wh({subscribedSchemasAndTablesData:{...e,subscribedSchemasAndTablesLoading:!1}})}try{await Promise.all((r=o?[{schema:t==null?void 0:t.toUpperCase()}]:a)==null?void 0:r.map(async({schema:g})=>{if(c[g])return;let v={};try{const A=Co.stringify({schema:g,scope:E5.subscription}),{data:y=[]}=await Bn.getRelationsData(A,n);v=tat({tables:y,schemaToBlockchainReference:l,blockchainsAndSchemas:c})}catch{v={}}f[g]={schema:g,tables:v,parentSchema:l[g]||g,isBlockchain:!1,views:p[g]||{}}}))}catch{}const m=tee({schemasToCombine:f,combinedSchemaData:u});Wh({subscribedSchemasAndTablesData:{subscribedSchemasAndTables:{...m},subscribedSchemasAndTablesLoading:!1,views:h},subscribedSchemasAndTablesLoaded:!0}),await Kne(f)}catch{}},Cfn=({schema:t})=>{const{subscribedSchemasAndTablesData:e,publicSchemasAndTablesData:n}=Lw(),{subscribedSchemasAndTables:r}=e,{publicSchemasAndTables:a}=n;r[t]&&delete r[t],a[t]&&delete a[t],Wh({subscribedSchemasAndTablesData:{...e,subscribedSchemasAndTables:r},publicSchemasAndTablesData:{...n,publicSchemasAndTables:a}}),K6({selectedSchema:t})},qAa=async(t,e)=>{var o,s;const{resourceId:n=""}=t,{currentEncryptedTables:r}=Lw(),a={tables:[t],biscuits:e};Wh({currentEncryptedTables:{...r,[n]:{encrypted:!1,isEncrypting:!0}}});try{const l=await Bn.encryptDataset(a),{data:c,error:u}=l||{};if(c){zi(q.TABLE_ENCRYPTED_SUCCESS);const d=(s=(o=t==null?void 0:t.resourceId)==null?void 0:o.split("."))==null?void 0:s[0];Cfn({schema:d}),Wh({currentEncryptedTables:{[n]:{encrypted:!0,isEncrypting:!1}}})}u&&(Kn(u||"Something went wrong"),Wh({currentEncryptedTables:{...r,[n]:{}}}))}catch{Wh({currentEncryptedTables:{...r,[n]:{}}})}},YAa=t=>{const{currentEncryptedTables:e}=Lw();delete e[t],Wh({currentEncryptedTables:e})},JAa=({resourceId:t})=>{const{biscuitList:e}=joe();return g9(e,Hoe({resources:[t],operation:"ALTER"}))};function Vl(){var a,o,s,l;const t=new URLSearchParams(window.location.search),e=t.get("tabID")||"",n=t.get("queryId")||"";let r="";return(o=(a=window==null?void 0:window.location)==null?void 0:a.pathname)!=null&&o.includes("/queries/")?e||(r=((l=(s=window.location.pathname.replace("/queries/",""))==null?void 0:s.split("/"))==null?void 0:l[0])||"",r):(r=e||n||"pipelineQuery",r)}const{getState:To,setState:wo}=Ia,{setState:nee}=Yc,{getState:kfn}=io;function ri(t,e){const{editorSessions:n}=To(),r=t?To().editorSessions[t]:To().getSession(t);wo({focusedSessionId:t||Vl()}),r||wo({editorSessions:{...n,[t||Vl()]:{...ZU,...e}}}),r&&wo({editorSessions:{...n,[t]:{...r,...e}}})}const _5=({item:t,isSetting:e=!0,isView:n=!1,isQueryBot:r=!1,isSuggestionSave:a=!1})=>{const o=Vl(),{type:s,config:l}=t||{};if(s===ii.table&&e){const x=To().editorSessions[o];return nee({chartType:t.type,queryResult:x.result,savedQueryIdDetails:{data:x},selectedQueryId:o})}const{xField:c,yField:u,xAxisData:d,yAxisData:h,axisLabels:f,seriesField:p,legendEnabled:m,sliderEnabled:g,...v}=(l==null?void 0:l.configItem)||{},A=Ft.keys(v),y={xField:l.xField||l.colorField,yField:l.yField||l.angleField};l.axisLabels&&(y.axisLabels=l.axisLabels);const S=[];if(!p&&A.forEach(x=>{y[x]={value:typeof v[x]=="object"?v[x].value:v[x],chartType:typeof v[x]=="object"?v[x].chartType:s==null?void 0:s.replace("_chart","")};const w={fieldId:x,inputType:"field-dropdown",label:x.replaceAll("Field","-axis"),required:!1};S.push(w)}),p&&(y.seriesField=p),y.legendEnabled=m,y.sliderEnabled=g,a){const x=To().editorSessions[o];return nee({chartType:t.type,extraChartSeries:S,chartFields:y,queryResult:x.result,savedQueryIdDetails:{data:x},selectedQueryId:o})}if(r)return{chartType:t.type,extraChartSeries:S,chartFields:y};if(n)return ri(o,{isRunning:!1,selectedChartId:void 0,isExecutionStarting:!1,chartOptions:{chartType:t.type,extraChartSeries:S,chartFields:y},showVisProperties:!0,isChartView:!0});if(e){const x=To().editorSessions[o];nee({chartType:t.type,extraChartSeries:S,chartFields:y,queryResult:x.result,savedQueryIdDetails:{data:x},selectedQueryId:o})}else ri(o,{isRunning:!1,selectedChartId:void 0,isExecutionStarting:!1,chartOptions:{},chartType:t.type,extraChartSeries:S,showVisProperties:!0,isChartView:!1,chartFields:y});return null};function zit(){const{focusedSessionId:t,showQueryModal:e}=To(),{chartSuggestions:n}=To().getFocusedSession();wo({showQueryModal:!e}),wo({isRunBtnClick:!1}),ri(t,{chartSuggestions:{...n,showMoreChartsSuggestions:!1}})}function e1e(){const{showChartSaveQueryModal:t}=To();wo({showChartSaveQueryModal:!t})}function ZAa(){wo({showChartSaveQueryModal:!1})}async function Qgs(){wo({...lfn})}function XAa(t){const{editorSessions:e}=To();ri(t,{...e[t]})}const Rkt=async t=>{var a;const{id:e=""}=t,{queriesResult:n}=kfn(),r=n[e];if((a=r==null?void 0:r.columns)!=null&&a.length){const o={items:r.data,fieldsMetadata:r.columns,warning:!1,error:!1,message:!1,filteredDataFrames:r.filteredDataFrames,dataframesObject:r.dataframesObject,dataFrame:r.dataFrames};ri(e,{...t,result:o,durationMs:0,isRunning:!1,isExecutionStarting:!1})}},e1a=async(t,e,n)=>{var c;const r=To().editorSessions[t]||{};if(ri(t,{showVisProperties:!1}),r!=null&&r.id)return Ft.isEmpty(r==null?void 0:r.result)&&(n(!1),await Rkt(r)),{data:r};const a=await Bn.getQuery(t,e),{error:o,data:s}=a,{queryText:l=""}=r;if(o||!s)return l?{error:null,data:{queryText:l}}:a;if((c=Object.keys(s))!=null&&c.length){const u={...s,...r,id:s==null?void 0:s.id,userId:(s==null?void 0:s.userId)||"",description:(s==null?void 0:s.description)||"",referencedResources:(s==null?void 0:s.referencedResources)||"",queryText:s.queryText,name:s.name,tags:(s==null?void 0:s.tags)||[],isRunning:!1,queryError:void 0,unsavedChanges:!1,showVisProperties:!1,parameter:(s==null?void 0:s.parameter)||""};ri(t,u),n(!1),Ft.isEmpty(r==null?void 0:r.result)&&await Rkt(u)}return a},Mkt=(t,e)=>{const n=t,{id:r="",name:a="",userId:o="",queryText:s="",description:l="",parameter:c="",tags:u=[]}=To().editorSessions[t],d={id:r,name:a,userId:o,queryText:s,description:l,parameter:c,tags:u};Bn.updateQuery(t,d).then(h=>{const{error:f,data:p}=h;if(f){ri(n,{isSaving:!1,saveError:f});return}p&&(mVe(n),wo({showQueryModal:!1}),ri(n,{resourceId:e}))})},gVe=async t=>{const{tabs:e,tab:n,queries:r}=To(),a=Vl(),s={...To().editorSessions[a],...t},{id:l,name:c,queryText:u,description:d,tags:h}=s,f=e.filter(g=>g.id!==n);if(wo({tabs:f}),!c){ri(a,{showValidation:!0});return}ri(a,{isSaving:!0,saveError:void 0});const p=ree(h),m={name:c,description:d,queryText:u,...p};l?Bn.updateQuery(l,m).then(g=>{const{error:v,data:A}=g;if(R0a(l),v){ri(a,{isSaving:!1,saveError:v}),Kn(v||"");return}mVe(A),wo({showQueryModal:!1}),ri(a,{...s,...m,id:l,savedqueryId:a,saveError:"",isSaving:!1}),_a.queryUpdate({query_id:l,query_name:c,query_text:u,timestamp:Date.now()}),zi(q.QUERY_UPDATED_SUCCESS);const y=r.findIndex(w=>w.id===l),x=[...r.filter(w=>w.id!==l)];x.splice(y,0,{...m,id:l,name:m.name}),wo({queries:x})}):await Bn.createQuery(m).then(g=>{const{error:v,data:A}=g;if(v){ri(a,{isSaving:!1,saveError:v}),Kn(v||"");return}const{id:y}=A;if(y){const S=AE(),x=localStorage.getItem("userId")||"";mVe(A==null?void 0:A.id),ri(y,{...s,...m,saveError:"",isSaving:!1,unsavedChanges:!1,savedqueryId:A==null?void 0:A.id,id:y,userId:x}),_a.querySaved({query_id:y,query_name:c,query_text:u,timestamp:Date.now()}),zi(q.QUERY_SAVED_SUCCESS);const w={...s,...m,id:y,name:m.name,savedqueryId:A==null?void 0:A.id,userId:x},_=[...r];_.push(w),wo({queries:_}),S==null||S.push(`/queries/${y}`),wo({showQueryModal:!1});const{editorSession:C}=To(),R={...C||{},[y]:{...C?C[n]||{}:{},...w}};wo({editorSessions:{...R,[n]:ZU}})}}).catch(g=>{console.log(g,"err")})};async function Rfn(t,e,n,r){var s,l,c;const{focusedSessionId:a}=To(),o={prompt:t,metadata:{context:n,error:r}};e!=null&&e.current&&e.current.abort(),ri(a,{isGPTLoading:!0});try{const u=await Bn.postGPT(o,e);u!=null&&u.error&&ri(a,{queryError:u.error}),ri(a,{isGPTLoading:!1,GPTResult:(s=u==null?void 0:u.data)==null?void 0:s.SQL,GPTContext:(c=(l=u==null?void 0:u.data)==null?void 0:l.metadata)==null?void 0:c.context})}catch(u){console.error(u)}finally{ri(a,{isGPTLoading:!1})}}async function t1e(t){const{focusedSessionId:e}=To();ri(e,{GPTResult:t})}function t1a(){const{isErrOpen:t}=To();wo({isErrOpen:!t})}function n1a(t){wo({isErrOpen:t})}const vVe=async(t,e,n,r="",a="",o)=>{var b,T,M,D,B,j,H,U,$,z,Z;wo({calledWithoutPosTable:!1});const s=Vl(),{id:l,name:c,GPTContext:u,description:d,tags:h=[],queryComments:f,userId:p,proofOfSql:m=!1}=To().editorSessions[s];let{queryText:g}=To().editorSessions[s];r&&(g=r),g=Yit(g||"");const v=l||Vl();let A=v;const{queries:y,dqlRunCount:S}=To();if(ri(v,{result:{},chartOptions:{},queryMessage:"",isChartView:!1}),!g)return ri(v,{queryError:"SQL text required",result:{}});let x="";a?x=a:x=Q1a(g);let w="";const{resourceId:_="PUBLIC:PUBLIC",commandType:C,schema:R=""}=jfn(x,n||{});w=_;const k=localStorage.getItem("userId")||"",P=localStorage.getItem("selectedBiscuit")||"";let N=await O1a(P);ri(v,{isRunning:!0,queryError:void 0,isExecutionStarting:!0,runQueryStartTime:new Date});let L={data:null};const I=new Date;try{if(L=await Bn.executeSQL({sqlText:g.trimEnd()||"",validate:!0},e),(L==null?void 0:L.status)===200){if(m&&wo({calledWithoutPosTable:!0}),o&&(g!=null&&g.startsWith("select"))){const ee=g==null?void 0:g.split("from ")[1];if(ee){const X=ee==null?void 0:ee.indexOf(" ");if(X){const te=ee==null?void 0:ee.substring(0,X),J=te==null?void 0:te.split(".")[0];["SUI","AVALANCHE_C","ETHEREUM"].find(ne=>ne===J)&&(J==="ETHEREUM"?u3("lane1",d3.getChainAllDataNode("Ethereum","Ethereum Data","Indexed data","blockchain")):_kt("lane1","Ethereum"))}}}Tkt("Table_result",!0,"2");const K=L==null?void 0:L.data,Q=Y6(L==null?void 0:L.data);if(L={data:{error:null,response:Q,successStatus:0}},_a.queryExecutionSuccess({query_id:`${l}`||`${O0.uuid()}`,query_run_time:(new Date-I)/1e3,query_text:g==null?void 0:g.trimEnd(),status_code:L==null?void 0:L.status}),o&&(JU({queryResult:(b=res.data)==null?void 0:b.response,query:g,rawQueryResult:K,resourceId:w}),ri(v,{isRunning:!1})),l)l&&(mh(l,{data:Q.items,columns:Q.fieldsMetadata,warning:!1,error:!1,message:!1,filteredDataFrames:Q.filteredDataFrames,dataframesObject:Q.dataframesObject,dataFrames:Q.dataFrame}),C==="dql"&&p&&k&&p===k&&Mkt(l,w));else{const ee={name:c||"Untitled Query",description:d||f||"",tags:h,resourceId:w},te={...To().editorSessions[s],...ee};try{ri(s,{...te,isSaving:!1,unsavedChanges:!1});const J={...te,id:s,name:te.name},ne=[...y];ne.push(J),wo({queries:ne}),wo({showQueryModal:!1}),A=s}catch(J){ri(s,{isSaving:!1,saveError:J}),wo({showQueryModal:!0})}}if(L!=null&&L.data){const ee=new Date-I;ri(A,{result:(T=L==null?void 0:L.data)==null?void 0:T.response,durationMs:ee})}ri(A,{isRunning:!1,isExecutionStarting:!1,chartFields:{},chartOptions:{},isChartView:!1}),t!==g&&ri(A,{chartOptions:{},chartType:"",chartFields:{},toggleVisTable:"table",isChartView:!1})}else if(L.status===422){const{commandType:K,resources:Q,requiredCapabilities:ee,encrypted:X,tamperproof:te}=L&&L.error,J=Gfn(ee),{biscuitList:ne}=kfn(),ie=g9(ne,ee);if(ee!=null&&ee.length&&Ft.isEmpty(ie)&&!((M=J==null?void 0:J.create)!=null&&M.length))return co(!0),WB(zm.permissionSecret),ri(v,{queryError:"Biscuit required",result:{},isRunning:!1,isExecutionStarting:!1});if(K.toLowerCase()==="dql"){let he={data:null,error:null};try{let de={sqlText:g.trimEnd()};m||(de={...de,resources:Q,biscuits:ie}),X?he=await Bn.executeEncryptedSQL(K.toLowerCase(),de,e):he=await(m&&te?Bn.executePoS(de,ie!=null&&ie.length?ie[0]:"",e):Bn.runQuery(K.toLowerCase(),de,e));const{data:ce,error:Ee,status:Me}=he;if(ce&&Me===200){if(ce!=null&&ce.length&&o&&(g!=null&&g.startsWith("select"))){const je=g==null?void 0:g.split("from ")[1];if(je){const ye=je==null?void 0:je.indexOf(" ");if(ye){const me=je==null?void 0:je.substring(0,ye),le=me==null?void 0:me.split(".")[0];["SUI","AVALANCHE_C","ETHEREUM"].find(pe=>pe===le)&&(le==="ETHEREUM"?u3("lane1",d3.getChainAllDataNode("Ethereum","Ethereum Data","Indexed data","blockchain")):_kt("lane1","Ethereum"))}}}Tkt("Table_result",!0,"2");const Be=he==null?void 0:he.data,ze=Y6(he==null?void 0:he.data);if(L={data:{error:null,response:ze,successStatus:0}},_a.queryExecutionSuccess({query_id:`${l}`||`${O0.uuid()}`,query_run_time:(new Date-I)/1e3,query_text:g==null?void 0:g.trimEnd(),status_code:he==null?void 0:he.status}),o&&(JU({queryResult:(D=he.data)==null?void 0:D.response,query:g,rawQueryResult:Be,resourceId:w}),ri(v,{isRunning:!1})),l)l&&(mh(l,{data:ze.items,columns:ze.fieldsMetadata,warning:!1,error:!1,message:!1,filteredDataFrames:ze.filteredDataFrames,dataframesObject:ze.dataframesObject,dataFrames:ze.dataFrame}),p&&k&&p===k&&Mkt(l,w));else{const je={name:c||"Untitled Query",description:d||f||"",tags:h,resourceId:w},me={...To().editorSessions[s],...je};try{ri(s,{...me,isSaving:!1,unsavedChanges:!1});const le={...me,id:s,name:me.name},pe=[...y];pe.push(le),wo({queries:pe}),wo({showQueryModal:!1}),A=s}catch(le){ri(s,{isSaving:!1,saveError:le}),wo({showQueryModal:!0})}}if(he!=null&&he.data){const je=new Date-I;ri(A,{result:ze,durationMs:je})}ri(A,{isRunning:!1,isExecutionStarting:!1,chartFields:{},chartOptions:{},isChartView:!1}),t!==g&&ri(A,{chartOptions:{},chartType:"",chartFields:{},toggleVisTable:"table",isChartView:!1})}if(Ee)return Ee===q.NETWORK_ERROR?ri(v,{queryError:Ee,isRunning:!1}):Ft.isEmpty(ie)?(co(!0),WB(zm.permissionSecret),ri(v,{queryError:"Biscuit required",result:{},isRunning:!1,isExecutionStarting:!1})):(_a.queryExecutionError({query_id:`${l}`||`${O0.uuid()}`,query_run_time:(new Date-I)/1e3,error_text:Ee==null?void 0:Ee.title,status_code:he==null?void 0:he.status}),ri(v,{queryError:Ee||"",result:{},isRunning:!1}))}catch(de){console.error("An error occurred for dql api:",de)}}if(K.toLowerCase()==="dml"){let he={data:null,error:null};try{const de={sqlText:g.trimEnd(),resources:Q,biscuits:ie};X?he=await Bn.executeEncryptedSQL(K.toLowerCase(),de,e):he=await Bn.runQuery(K.toLowerCase(),de,e);const{error:ce,status:Ee}=he;if(Ee===200&&ri(v,{queryError:"",result:{},queryMessage:q.SQL_OPERATION_SUCCESS,isRunning:!1}),ce)return Ft.isEmpty(ie)?(co(!0),WB(zm.permissionSecret),ri(v,{queryError:"Biscuit required",result:{},isRunning:!1,isExecutionStarting:!1})):ri(v,{queryError:ce||"",result:{},isRunning:!1})}catch(de){console.error("An error occurred fro dml api:",de),ri(v,{queryError:de||"",result:{},isRunning:!1})}}if(K.toLowerCase()==="ddl")if((B=J==null?void 0:J.create)!=null&&B.length){let he="";w=J==null?void 0:J.create[0];try{const{code:de,publicKey:ce,biscuit:Ee,error:Me=""}=await Ufn({resourceId:w,resourceType:gw.table});if(Me)return ri(v,{queryError:Me,result:{},isRunning:!1});if(N=[Ee],he=de,he&&ce&&N){const Be=$1a({query:x,publicKey:ce}),ze={sqlText:Be,biscuits:N},{data:je,error:ye,status:me}=await Bn.runQuery(K.toLowerCase(),ze,e);if((je||me===200)&&(ri(v,{queryError:"",result:{},queryMessage:q.SQL_OPERATION_SUCCESS,isRunning:!1,isExecutionStarting:!1}),!((j=Be==null?void 0:Be.toLowerCase())!=null&&j.includes("create view"))&&!((H=Be==null?void 0:Be.toLowerCase())!=null&&H.includes("create materialized view"))&&!((U=Be==null?void 0:Be.toLowerCase())!=null&&U.includes("create parameterized view"))&&K6({selectedSchema:R}),aH({code:he,persist:!0})),ye)return he&&aH({code:he,persist:!1}),ri(v,{queryError:ye,result:{},isRunning:!1,isExecutionStarting:!1})}}catch(de){ri(v,{queryError:de,result:{},isRunning:!1,isExecutionStarting:!1}),he&&aH({code:he,persist:!1})}}else{let he={data:null,error:null};try{const de={sqlText:g.trimEnd(),resources:Q,biscuits:ie};he=await Bn.runQuery(K.toLowerCase(),de,e);const{error:ce,status:Ee}=he;if(Ee===200)if(ri(v,{queryError:"",result:{},queryMessage:q.SQL_OPERATION_SUCCESS,isRunning:!1}),($=J==null?void 0:J.drop)!=null&&$.length){w=J==null?void 0:J.drop[0];const Me=(z=w==null?void 0:w.split("."))==null?void 0:z[0];Me&&Cfn({schema:Me});const Be=gw.table;nAa({resourceId:w,resourceType:Be})}else K6({selectedSchema:R});if(ce)return Ft.isEmpty(ie)?(co(!0),WB(zm.permissionSecret),ri(v,{queryError:"Biscuit required",result:{},isRunning:!1,isExecutionStarting:!1})):ri(v,{queryError:ce||"Biscuit required",result:{},isRunning:!1})}catch(de){console.error("An error occurred fro ddl api:",dmlErr),ri(v,{queryError:de||"",result:{},isRunning:!1})}}}else{m&&wo({calledWithoutPosTable:!0});const K=((Z=L==null?void 0:L.data)==null?void 0:Z.error)||(L==null?void 0:L.error);if(K){if(K===q.NETWORK_ERROR)return ri(v,{queryError:K,isRunning:!1});S<3&&a&&K!==q.QUERY_ABORT?(t1e(""),n1a(!1),Rfn(f,e,u,K==null?void 0:K.detail)):S>=3&&K!==q.QUERY_ABORT&&Kn(q.NLP_MESSAGE),_a.queryExecutionError({query_id:`${g}`||`${O0.uuid()}`,query_run_time:(new Date-I)/1e3,error_text:K==null?void 0:K.title,status_code:L==null?void 0:L.status});const Q=new Date-I;return ri(v,{queryError:K||"",result:{},isRunning:!1,durationMs:Q})}}}catch(K){console.error("An error occurred for sql api:",K),ri(v,{queryError:K||"",result:{},isRunning:!1})}return null},r1a=()=>{const{focusedSessionId:t}=To();ri(t,{chartOptions:{},isChartView:!1})},Mfn=async t=>{var e,n,r;ri("1",{name:t==null?void 0:t.name,queryText:(e=t==null?void 0:t.sqlText)==null?void 0:e.trim(),chartType:(n=t.chart)==null?void 0:n.chartType,description:t==null?void 0:t.description,chartFields:((r=t.chart)==null?void 0:r.fields)||{},isChartView:!1,confirmVisualization:!1,toggleVisTable:"table",selectedText:"",isRunning:!1,result:{},runQueryStartTime:t.startTime})},Nfn=t=>{ri("1",{queryText:t,chartFields:{},isChartView:!1,confirmVisualization:!1,toggleVisTable:"table",selectedText:"",isRunning:!1,result:{}})},T5=t=>{if(t)if(To().editorSessions[t]){const{showSchema:e,schemaExpansions:n}=To().editorSessions[t],r={...ZU,showSchema:e,schemaExpansions:n,showVisProperties:!1,toggleVisTable:"table"};ri(t,r)}else ri(t,{...ZU})},hp=t=>{const e=Vl(),{id:n}=To().editorSessions[e]||{};Zhn(n||e,t),ri(n||e,{queryText:t,unsavedChanges:!0,isQueryTextEditing:!1})},Ifn=t=>{const e=Vl(),{id:n}=To().editorSessions[e]||{};Zhn(n||e,t),ri(n||e,{queryComments:t})},XF=t=>{wo({aceEditorUpdated:t})},AVe=t=>{try{const e=Ywe.format(t,{keywordCase:"upper"});hp(e)}catch{}finally{XF(!1)}},i1a=()=>{const t=Vl(),{id:e}=To().editorSessions[t];ri(e||t,{isQueryTextEditing:!0})},Git=()=>{const{focusedSessionId:t}=To(),{isChartView:e}=To().getFocusedSession();ri(t,{isChartView:!e})},XLe=t=>{wo({tabs:t})},K_=t=>{const{focusedSessionId:e}=To();ri(e,{isChartView:!1,confirmVisualization:!1}),wo({tab:t})};function Qne(){const{focusedSessionId:t}=To(),{showSchema:e}=To().getFocusedSession();ri(t,{showSchema:!e}),wo({isRunBtnClick:!1})}const a1a=t=>{const{focusedSessionId:e}=To();ri(e,{chartOptions:t})};function W6(t){const{focusedSessionId:e}=To();ri(e,{toggleVisTable:t})}const o1a=async(t,e)=>{var o;const{focusedSessionId:n,queries:r}=To(),a=[...r];try{if((a==null?void 0:a.findIndex(({id:s})=>s===t))===-1){const s=await Bn.getQuery(n||t,e),{data:l}=s,c=l!=null&&l.length?l[0]:{};c.id=t,c.name=(o=l[0])==null?void 0:o.name,a.push(c),wo({queries:a})}}catch(s){console.error(s)}},Nkt=async t=>{var o;wo({isQueryLoading:!0});const e=await Bn.get(t),{error:n,data:r}=e;if(n||!r)return wo({isQueryLoading:!1}),e;const a=(o=r==null?void 0:r.content)==null?void 0:o.map(s=>({id:s.id,name:s.name,...s}));return wo({queries:a,isQueryLoading:!1}),a},s1a=t=>{wo({queries:t})},iH=(t,e)=>{const{focusedSessionId:n}=To(),{chartSuggestions:r}=To().getFocusedSession();ri(n,{chartSuggestions:{...r,showMoreChartsSuggestions:t,hasMoreChartsSuggestions:e}})};function Pfn(t){const{focusedSessionId:e}=To();ri(e,{currentThumbnailChartView:t})}function l1a(t,e,n){if(!t)return;const{editorSessions:r}=To(),a=r[t]||ZU;wo({editorSessions:{...r,[t]:{...a,dataFrameObject:e,filteredDataFrameObject:n}}})}const Vit=(t,e,n,r)=>{const a=To().editorSessions[e],o=r?n:a.result;nee({chartId:e,selectedQueryId:e,chartType:ii.counter,counterFields:t,queryResult:o,savedQueryIdDetails:{data:a}})};function Kit(t){wo({isRunBtnClick:t})}function Ofn(t){wo({dqlRunCount:t})}function Lfn(t){const e=Vl(),n=To().editorSessions[e];nee({savedQueryIdDetails:{data:n},selectedQueryId:e,queryResult:t||(n==null?void 0:n.result)||{}})}function n1e(){const t=Vl();ri(t,{result:{},chartOptions:{},isChartView:!1,isRunning:!1,queryError:""})}const c1a=t=>{wo({queryEditorAbortController:t})},_D=async t=>{var a,o;const e=Vl(),n=((a=To().editorSessions[e])==null?void 0:a.id)||"new";if(n==="new"){const s={id:void 0,name:j1a()};await gVe(s)}const r=((o=To().editorSessions[e])==null?void 0:o.saveError)||"";if(!n&&r){Kn(r||"");return}(t==null?void 0:t.type)===ii.counter?await Vit(t,Vl()):await _5({item:t,isSuggestionSave:!0}),iH(!1,!0),e1e()},eBe=t=>{wo({showQueryTemplateSuggestion:t})},tBe=t=>{wo({showQueryTemplateSuggestionAI:t})},u1a=t=>{const e=Vl();ri(e,{proofOfSql:t})},d1a=async()=>{try{const t=await Bn.getPosStatus();if(t!=null&&t.data){const{data:e}=t;e&&wo({isProofOfSqlEnabled:e})}}catch{}},h1a=t=>{wo({paneWidth:t})},Bfn=t=>{wo({paneWidthChanged:t})},Ikt=t=>{wo({showPosMenu:t})},f1a=async(t,e,n)=>{let r="",a="";try{const{code:o,publicKey:s,biscuit:l,error:c=""}=await Ufn({resourceId:`SXT_DAPP_VIEWS.${t}`,resourceType:gw.table});if(c)return{error:c};if(a=[l],r=o,r&&s&&a){const u={viewName:t,schemaName:"SXT_DAPP_VIEWS",publicKey:s,biscuits:a,refreshInterval:n};try{const{data:d,error:h}=await Bn.convertToMaterializedView(e,ef(u));if(d)return{data:d};if(h)return r&&aH({code:r,persist:!1}),{error:h}}catch(d){return r&&aH({code:r,persist:!1}),{error:d}}}}catch(o){return r&&aH({code:r,persist:!1}),{error:o}}return null},p1a=[{label:"Query Name",dataKey:"name",width:240},{label:"Query Content",dataKey:"queryText",width:400},{label:"Last Modified",dataKey:"modified",width:200},{label:"Query Slug Name",dataKey:"slug",width:200},{label:"Tags",dataKey:"tags",width:300}],qgs=[{label:"Name",dataKey:"name",width:240},{label:"Query Content",dataKey:"queryText",width:500},{label:"Last Modified",dataKey:"modified",width:200},{label:"Tags",dataKey:"tags",width:250}],Ygs=[{label:"Query Content",dataKey:"sqlText",width:360},{label:"Last Run",dataKey:"timestamp",width:150},{label:"Query Runtime",dataKey:"runtime",width:160},{label:"Data Volume ",dataKey:"responseSize",width:150},{label:"Row Count",dataKey:"rowCount",width:150},{label:"Query Type",dataKey:"queryType",width:150},{label:"Usage",dataKey:"usage",width:150}],m1a=/(\s*([\0\b'"\n\r\t%_\\]*\s*(((select\s+\S.*\s+from\s+\S+)|(insert\s+into\s+\S+)|(update\s+\S+\s+set\s+\S+)|(delete\s+from\s+\S+)|(((drop)|(create)|(alter)|(backup))\s+((table)|(index)|(function)|(PROCEDURE)|(ROUTINE)|(SCHEMA)|(TRIGGER)|(USER)|(VIEW))\s+\S+)|(truncate\s+table\s+\S+)|(exec\s+)|(\/\*)|(--)))(\s*[;]\s*)*)+)/is,g1a=/^(.*?)(?=\n\s*SELECT|\n\s*INSERT|\n\s*UPDATE|\n\s*DELETE|\n\s*CREATE|\n\s*ALTER|\n\s*DROP|$)/is,nBe=[{key:"Create Schema",label:`Create Schema
    -- Create Schema MY_SCHEMA`,sql:"create schema if not exists <schemaName>"},{key:"Create View",label:`Create View
    -- Create VIEW MY_SCHEMA.MY_VIEW AS SELECT * FROM ETHEREUM.TRANSACTIONS limit 10`,sql:`CREATE VIEW <VIEW_NAME>
    AS 
    SELECT * 
    FROM ETHEREUM.TRANSACTIONS limit 10
    `},{key:"Create Public Table",label:`Create Public Table
    -- CREATE TABLE MY_SCHEMA.MY_TABLE 
    -- (User_Wallet_Address VARCHAR PRIMARY KEY, User_Subscription VARCHAR) WITH "access-type=public_read";
-- For more information on access_type of table, 
-- please check this link - https://docs.spaceandtime.io/docs/secure-your-table 
`,sql:`create table [<schemaName>.<tableName>] 
    ([<columnName> <columnType> <columnProperty>] PRIMARY KEY,[<columnName> <columnType> <columnProperty>]) 
     WITH  "immutable=false,access_type=public_read"`},{key:"Create Private Table",label:`Create Private Table
    -- CREATE TABLE MY_SCHEMA.MY_TABLE_PRIVATE 
    -- (User_Wallet_Address VARCHAR PRIMARY KEY,  User_Subscription VARCHAR) WITH "access_type=permissioned";
-- For more information on access_type of table, 
-- please check this link - https://docs.spaceandtime.io/docs/secure-your-table 
`,sql:`create table [<schemaName>.<tableName>] 
    ([<columnName> <columnType> <columnProperty>] PRIMARY KEY,[<columnName> <columnType> <columnProperty>])
      WITH  "immutable=false,access_type=permissioned"`},{key:"Select * (Including a JOIN statement)",label:`Select * (Including a JOIN statement)
-- SELECT t.*, b.*
-- FROM MY_SCHEMA.MY_TABLE t
-- JOIN MY_SCHEMA.MY_TABLE_PRIVATE b ON t.User_Wallet_Address = b.User_Wallet_Address
-- limit 10; 
-- For more information on DML,
-- please check this link - https://docs.spaceandtime.io/docs/sql-commands#dql 
`,sql:`SELECT t.*, b.*
        FROM [<table1>] t
        JOIN [<table2>] b ON t.[<columnName>] = b.[<columnName>]
        WHERE [<conditions>] limit 10;`},{key:"Insert Data into Table",label:`Insert Data into Table
-- INSERT INTO MY_SCHEMA.MY_TABLE values ('0Xsssaa','SXT');
-- For more information on DQL,
-- please check this link - https://docs.spaceandtime.io/docs/sql-commands#dml 
`,sql:"INSERT INTO [<schemaName>.<tableName>] values ([<value1>,<value2>])"}],bq={retrieve:1,find:1,show:1,get:1,list:1,count:1,calculate:1,display:1,filter:1,search:1,identify:1,explore:1,analyze:1,extract:1,group:1,sort:1,merge:1,visualize:1,compare:1,evaluate:1,predict:1,classify:1,transform:1,compute:1,summarize:1,interpret:1,review:1,navigate:1,present:1,fetch:1,gather:1,inspect:1,organize:1,validate:1,highlight:1,synthesize:1,request:1,capture:1,access:1,expand:1,store:1,index:1,locate:1,monitor:1,select:1,pick:1,choose:1,remove:1,exclude:1,omit:1,ignore:1,eliminate:1,derive:1,acquire:1,obtain:1,seek:1,hunt:1,scour:1,bring:1,score:1,accomplish:1,achieve:1,attain:1,gain:1,realize:1,reach:1,arrive:1,hit:1,garner:1,collect:1,accept:1,receive:1,take:1,have:1,grab:1,hold:1,compile:1,combine:1,unite:1,consolidate:1,assemble:1,amass:1,stockpile:1,aggregate:1,accumulate:1,join:1,fuse:1,blend:1,integrate:1,intermingle:1,intermix:1,mingle:1,commingle:1,homogenize:1,incorporate:1,melt:1,meld:1,mix:1,in:1,stir:1,whisk:1,fold:1,beat:1,whip:1,churn:1,emulsify:1,hash:1,jumble:1,shuffle:1,tumble:1,disarrange:1,rumple:1,dishevel:1,muss:1,ruffle:1,disorder:1,disarray:1,mess:1,up:1,scatter:1,disperse:1,distribute:1,spread:1,sow:1,propagate:1,sprinkle:1,broadcast:1,disband:1,dismiss:1,discharge:1,disqualify:1,banish:1,oust:1,eject:1,deport:1,expel:1,extrude:1,bump:1,dislodge:1,delete:1,erase:1,efface:1,expunge:1,out:1,rub:1,obliterate:1,exterminate:1,liquidate:1,annihilate:1,eradicate:1,wipe:1,clear:1,rid:1,of:1,do:1,away:1,stamp:1,extirpate:1,give:1},rBe={select:1,from:1,where:1,insert:1,update:1,delete:1,create:1,alter:1,drop:1,index:1,into:1,values:1,set:1,with:1,as:1,primary:1,key:1,foreign:1,constraint:1,references:1,unique:1,check:1,default:1,not:1,null:1,table:1,auto_increment:1,outer:1,inner:1,join:1,left:1,right:1,full:1,on:1,top:1,asc:1,desc:1,view:1,between:1,like:1,group:1,having:1,order:1,by:1,limit:1,offset:1,fetch:1,first:1,rows:1,only:1,union:1,all:1,except:1,intersect:1,case:1,when:1,then:1,else:1,end:1,count:1,sum:1,avg:1,min:1,max:1,distinct:1,in:1,exists:1,nullif:1,coalesce:1,cast:1,convert:1,to:1,using:1,month:1,day:1,year:1,hour:1,minute:1,second:1,millisecond:1,microsecond:1,nanosecond:1,pico:1,micro:1,milli:1,now:1,current_time:1,current_date:1,current_timestamp:1,utc_time:1,utc_date:1,utc_timestamp:1,local_time:1,local_date:1,local_timestamp:1,from_unixtime:1,to_unixtime:1,current_user:1,session_user:1,system_user:1,user:1,roles:1,name:1,ascii:1,bit_length:1,character_length:1,char_length:1,octet_length:1,bit_count:1,bit_and:1,bit_or:1,bit_xor:1,bit_not:1,bit_set:1,char:1,nchar:1,varchar:1,nvarchar:1,boolean:1,tinyint:1,smallint:1,integer:1,bigint:1,decimal:1,numeric:1,real:1,float:1,double:1,time:1,date:1,timestamp:1,interval:1,binary:1,varbinary:1,geometry:1,point:1,line:1,lseg:1,box:1,path:1,polygon:1,circle:1,cidr:1,inet:1,macaddr:1,bit:1,tsvector:1,uuid:1,json:1,jsonb:1,hstore:1,array:1,multiset:1,map:1,multimap:1,link:1,cache:1,valueset:1,string:1,blob:1,enums:1,longvarbinary:1,other:1,j_object:1,j_array:1,stream:1,enum:1,socket:1,result:1,console:1,random:1,generator:1,iterator:1,cachelistener:1,ignite:1,query:1,schema:1,text:1,offheap:1,cluster:1,caches:1,distributive:1,transform:1,coercion:1,merge:1,per:1,collocated:1,backups:1,before:1,custom:1,disable:1,enabled:1,eviction:1,expire:1,expiring:1,indexed:1,inlined:1,lazy:1,memory:1,modify:1,overflow:1,pending:1,priority:1,recreate:1,replace:1,rollback:1,skip:1,strict:1,summary:1,sync:1,template:1,threadlocal:1,ttl:1,write:1,xml:1,affinity:1,allow:1,atomic:1,await:1,batch:1,bind:1,bulk:1,checksum:1,clean:1,client:1,close:1,commit:1,connections:1,consistency:1,control:1,copy:1,cursor:1,data:1,deadlock:1,delay:1,destroy:1,distribute:1,escape:1,execute:1,expiry:1,fail:1,flush:1,fold:1,force:1,fsync:1,global:1,hash:1,has:1,init:1,jdbc:1,journal:1,kill:1,load:1,lock:1,log:1,manage:1,mark:1,metrics:1,move:1,native:1,next:1,node:1,optimize:1,overwrite:1,page:1,partitions:1,peek:1,plan:1,portable:1,progress:1,put:1,read:1,receive:1,reconnect:1,register:1,reload:1,remove:1,reset:1,save:1,scan:1,segmented:1,send:1,sequence:1,shutdown:1,size:1,sql:1,start:1,stop:1,store:1,submit:1,synchronize:1,topology:1,touch:1,transaction:1,truncate:1,unregister:1,unwind:1,wait:1,wal:1,zero:1,aggregate:1,analyze:1,bool:1,bytea:1,clob:1,ctinyint:1,csmallint:1,cinteger:1,cbigint:1,cfloat:1,cdouble:1,cnumeric:1,cdecimal:1,cdate:1,ctime:1,ctimestamp:1,cboolean:1,cbinary:1,cuuid:1,cenum:1,cvarbinary:1,cstring:1,cascii:1,cnchar:1,cvarchar:1,cnvarchar:1,cmulti:1,cpoint:1,cline:1,clseg:1,cbox:1,cpath:1,cpolygon:1,ccircle:1,ccidr:1,cinet:1,cmacaddr:1,cbit:1,ctsvector:1,cjson:1,cjsonb:1,chstore:1,carray:1,cmultiset:1,cmap:1,cmultimap:1,clink:1,ccache:1,cvalueset:1,cblob:1,cbytea:1,cclob:1},iBe={"+":1,"-":1,"*":1,"/":1,"%":1,"(":1,")":1,"[":1,"]":1,"{":1,"}":1,",":1,".":1,":":1,";":1,"=":1,"<":1,">":1,"<=":1,">=":1,"==":1,"!=":1,"<>":1,"&":1,"|":1,"^":1,"~":1,"<<":1,">>":1,">>>":1,"&&":1,"||":1,"^^":1,"!":1,"?":1,"@":1,"#":1,$:1,_:1,"->":1,"::":1,"->>":1,":=":1,"=>":1,"<=>":1,"::=":1,".=":1,"|=":1,"+=":1,"-=":1,"*=":1,"/=":1,"%=":1,"&=":1,"^=":1,"~=":1,"<<=":1,">>=":1,">>>=":1,"&&=":1,"||=":1,"^^=":1,"<--":1,"-->":1,"<--|":1,"|-->":1,"=>>":1,"|>>":1,"<<|":1},v1a={select:1,insert:1,update:1,delete:1,create:1,alter:1,drop:1,truncate:1,begin:1,commit:1,rollback:1,grant:1,revoke:1,with:1},A1a=[{label:"View Name",dataKey:"view",width:240},{label:"View Query Content",dataKey:"viewText",width:400},{label:"Dataset",dataKey:"schema",width:240},{label:"View Type",dataKey:"viewType",width:400}],Jgs={chartType:"pie_chart",tooltip:{axisPointer:{type:"cross"},trigger:"axis",className:"eChartTooltip",borderWidth:0,appendToBody:!0,textStyle:{color:qt.custom.white.A11,fontSize:12,fontFamily:qt.typography.fontFamily,fontWeight:qt.custom.fontWeight.rg}},fields:{legendEnabled:!0,xField:"Source",yField:"Trafic"}},Zgs={chartType:"area_chart",tooltip:{axisPointer:{type:"cross"},trigger:"axis",className:"eChartTooltip",borderWidth:0,appendToBody:!0,backgroundColor:qt.custom.dropdownBg,textStyle:{color:qt.custom.white.A11,fontSize:12,fontFamily:qt.typography.fontFamily,fontWeight:qt.custom.fontWeight.rg}},fields:{legendEnabled:!0,xField:"Timestamp",yField:"Usage",y1Field:{chartType:"area",value:"Runtime"}}},Xgs={chartType:"column_chart",tooltip:{axisPointer:{type:"cross"},trigger:"axis",className:"eChartTooltip",borderWidth:0,appendToBody:!0,backgroundColor:qt.custom.dropdownBg,textStyle:{color:qt.custom.white.A11,fontSize:12,fontFamily:qt.typography.fontFamily,fontWeight:qt.custom.fontWeight.rg}},fields:{legendEnabled:!0,xField:"Timestamp",yField:"Usage",y1Field:{chartType:"line",value:"DataVolume"}}};async function xq({method:t="GET",url:e,body:n}){var c,u;const r=hN(Lan),a={Accept:"application/json","Content-Type":"application/json"};if(!(e!=null&&e.includes("/auth"))){const d=localStorage.getItem("sessionId");d&&(a.sid=d||"")}const o={method:t.toUpperCase(),credentials:"same-origin",headers:a};n&&(o.body=JSON.stringify(n));let s=r+e;r&&e.substring(0,1)!=="/"&&(s=`${r}/${e}`);let l;try{l=await fetch(s,o);const d=await(l==null?void 0:l.text());let h="";try{h=l.status!==404&&(d!=null&&d.length)?JSON.parse(d):{}}catch{h=d!=null&&d.length?d:{}}return l.ok?{data:h,status:l.status}:{error:h.detail||h.title||h.message||((c=h[0])==null?void 0:c.message)||(h==null?void 0:h.error)||""}}catch{let h;return(u=o==null?void 0:o.signal)!=null&&u.aborted?h="Query Aborted":h="Network error",{error:h}}}const Wit={put(t){return xq({...t,method:"PUT"})},delete(t){return xq({...t,method:"DELETE"})},post(t){return xq({...t,method:"POST"})},get(t){return xq({...t,method:"GET"})},patch(t){return xq({...t,method:"PATCH"})},async getIsUserExist(t){return this.get({url:Zt.getUserExist(t)})},async validateJoinCode(t){return this.get({url:Zt.validateJoinCode(t)})},async getWalletAddressIsExist(t){return this.get({url:Zt.getWalletAddressIsExist(t)})}};Fd.extend(Y3r);Fd.extend(Z3r);async function gN(t){return"clipboard"in navigator?navigator.clipboard.writeText(t):document.execCommand("copy",!0,t)}const y1a=t=>{var n,r;let e=(n=t==null?void 0:t.replace("java.lang.",""))==null?void 0:n.toLowerCase();return e=(r=e==null?void 0:e.replace("java.math.",""))==null?void 0:r.toLowerCase(),e},Q6=t=>/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(t),Dfn=t=>/^(https?:\/\/)?([\w\d-]+\.)+[\w-]+(\/[\w- ;,./?%&=]*)?$/i.test(t),b1a=t=>/^[0-9]+$/.test(t),x1a=t=>!!(t%1),qp=t=>t?/^0x[0-9a-f]+$/i.test(t==null?void 0:t.toString()):!1,E1a=t=>t!==""&&typeof t=="string"&&!qp(t)&&!Ft.isNaN(t)&&Number(t)&&(x1a(Number(t))||b1a(Number(t)))?Number(t):t,r1e=(t,e,n)=>e==null?void 0:e.map(r=>{const a={};return t==null||t.forEach((o,s)=>{a[o.fieldName]=n&&r[s]===""?null:E1a(r[s])}),a||[]}),q_e=(t,e,n)=>e==null?void 0:e.map(r=>{const a=[];return t==null||t.forEach((o,s)=>{o.fieldName===(n==null?void 0:n.columnName)&&a.push(r[s])}),a||[]}),Y_e=(t,e)=>{const n=t==null?void 0:t.map(Number);let r=t!=null&&t.length?t[0]:null;return Ft.isNaN(r)||/[a-zA-Z]/.test(r==null?void 0:r.toString())||e===al.STATIC?r:(e===al.SUM&&(r=Ft.sum(n)),e===al.MIN&&(r=Ft.min(n)),e===al.MAX&&(r=Ft.max(n)),e===al.MEAN&&(r=Ft.mean(n)),r||0)},vy=(t,e,n="...")=>{var r,a;return t&&(((r=t==null?void 0:t.toString())==null?void 0:r.length)>e?`${(a=t==null?void 0:t.toString())==null?void 0:a.slice(0,e)}${n}`:t)||""},aBe=t=>(t==null?void 0:t.trim())||"",i1e=t=>(t==null?void 0:t.match("native_val_num_val"))||(t==null?void 0:t.match("native_val"))||(t==null?void 0:t.match("num_val")),Sf=(t,e="")=>{if(!t)return t;const n=e!==""?Fd.unix(t).format(e):t;return n==="Invalid Date"?Fd(t).format(e):n},XU=t=>{var e;return(e=t==null?void 0:t.replaceAll("_"," "))==null?void 0:e.replaceAll("table","Dataset")},aR=t=>{var r,a,o,s;const e=/^\d{2}[./-]\d{2}[./-]\d{4}$/,n=/^\d{4}[./-]\d{2}[./-]\d{2}$/;return t&&(t==null?void 0:t.toString())!=="0"&&(((r=t==null?void 0:t.toString())==null?void 0:r.includes("-"))&&((a=t==null?void 0:t.toString())==null?void 0:a.match(e))||((o=t==null?void 0:t.toString())==null?void 0:o.match(n))||((s=t==null?void 0:t.toString())==null?void 0:s.includes(":")))&&Fd(t,yAe,!0).isValid()},q6=t=>{const e=Fd.utc(t).fromNow();return e==="in a few seconds"?"a few seconds ago":e},S1a=(t,e)=>t==null?void 0:t.sort((n,r)=>r[e]-n[e]),Lx=()=>window.scrollTo({top:0,behavior:"smooth"}),ef=t=>{const e={...t},n=Object.keys(t);return n==null||n.forEach(r=>{!t[r]&&t[r]!==0&&t[r]!==!1&&delete e[r]}),e},vw=t=>{(t==null?void 0:t.key)==="Enter"&&t.preventDefault()},ev=(t,e=!0,n=0)=>{if(Ft.isNaN(t)||/[a-zA-Z]/.test(t==null?void 0:t.toString()))return t;const r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:n||(t>0?2:4)}).format(Number(t));return e?vy(r,7):r},Pkt=(t,e)=>Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:e}).format(Number(t)),w1a=(t,e=!0,n=0)=>{if(!t)return{compactValue:0,counterhasDecimal:!1};if(Ft.isNaN(t)||/[a-zA-Z]/.test(t==null?void 0:t.toString()))return{compactValue:t,counterhasDecimal:!1};let r=Pkt(t,n||(t?2:4));const o=Pkt(t,2).includes(".");if(n&&r.includes(".")){const s=r.indexOf(".");if(/[a-zA-Z]/.test(r)){const l=r.search(/[a-zA-Z]/),c=l-s-1;if(c<n){const u=n-c,d="0".repeat(u);r=r.slice(0,l)+d+r.slice(l)}}else{const l=s!==-1?r.length-s-1:0;if(l<n){const c=n-l,u="0".repeat(c);r=e?vy(r+u,10):r+u}}}return{compactValue:e?vy(r,7):r,counterhasDecimal:o}},_1a=(t,e)=>{const{x:n=0,y:r=0,z:a=0}=t,{x:o=0,y:s=0,z:l=0}=e;let c=o-n,u=s-r,d=l-a;return c**=2,u**=2,d**=2,Math.sqrt(c+u+d)},$fn=(t,e,n,r,a)=>{if(!r)return;if(!e){r(t);return}const o=t.target.value||"";if(n&&(o==null?void 0:o.length)<n){r(t),a(!1);return}if(n&&(o==null?void 0:o.length)===n){r(t),a(!0);return}a(!0)},evs=t=>{if(!+t)return"0 Bytes";const e=1024,n=Math.floor(Math.log(t)/Math.log(e));return`${parseFloat((t/e**n).toFixed(2))} ${dgi[n]}`},Okt=()=>{const t="0123456789abcdef";let e="#";for(let n=0;n<6;n+=1)e+=t[Math.floor(Math.random()*t.length)];return e},_A=()=>{const t=Okt(),e=Okt();return{color0:`${t}`,color1:`${e}`}},J_e=(t="")=>{if(!t)return t;const e=t.split("");for(;e!=null&&e.length&&e[0]==="#";)e.shift();return(e==null?void 0:e.join(""))||""},Ffn=()=>{const t=bAe.length,e=Math.floor(Math.random()*t);return bAe[e].textColor},wV=t=>{const e=t==null?void 0:t.lastIndexOf("_");switch(t&&(t==null?void 0:t.substr(e+1))){case ii.chart:return{visualType:Di.GRAPH};case ii.table:return{visualType:Di.TABLE};case ii.counter:return{visualType:Di.COUNTERCARD};default:return{visualType:Di.GRAPH}}},Qit=(t,e,n,r)=>{const{visualType:a}=wV(t||"");switch(a){case Di.GRAPH:return{chart:{chartType:t,fields:e}};case Di.TABLE:return{metadata:n};case Di.COUNTERCARD:return{metadata:r};default:return{}}},_V=t=>(t==null?void 0:t.map(({fieldName:e})=>e))||[],T1a=t=>{const e=t&&Ft.mapValues(t,"content")||{},n=Ft.values(e)||[];return Ft.flattenDeep(n)||[]},C1a=t=>t.charAt(0).toUpperCase()+t.slice(1),qit=(t,e)=>{function n(r,a){return Ft.transform(r,(o,s,l)=>{Ft.isEqual(s,a[l])||(o[l]=Ft.isObject(s)&&Ft.isObject(a[l])?n(s,a[l]):s)})}return n(t,e)},fI=t=>t?/[a-zA-Z]/g.test(t==null?void 0:t.toString()):!1,XL=t=>t<=599?"xs":t>=600&&t<=899?"sm":t>=900&&t<=1199?"md":t>=1200&&t<=1399?"lg":t>1400?"xl":"md",B$=(t,e)=>{if(e!==Di.TABLE)switch(t){case"xs":case"sm":case"md":return 10;case"lg":case"xl":return 12;default:return 12}return 12},a1e=t=>{const e=Fd().format("YYYY-MM-DD [at] hh-mm-ssa");return`${t?Ft.capitalize(t):"SxtChart"}  ${e}`},o1e=t=>`${t==null?void 0:t.substring(0,6)}...${t==null?void 0:t.substring(t.length-4,t.length)}`||"",tvs=t=>{const e=Math.floor(t/1e3),n=Math.floor(e/3600),r=Math.floor((e-n*3600)/60),a=e-n*3600-r*60,o=t%1e3;let s="";return n>0&&(s+=`${n}h `),r>0&&(s+=`${r}m `),a>0&&(s+=`${a}s `),o>0&&(s+=`${o}ms`),s.trim()},jfn=(t,e)=>{var h,f,p,m,g,v,A;if(!t)return{};const n={};let r={},a="",o="",s=t==null?void 0:t.toLowerCase(),l=s.split(/[\s,.;)]+/);if(l=l==null?void 0:l.filter(y=>y!==""),(l!=null&&l.includes("create")||l!=null&&l.includes("drop"))&&(l!=null&&l.includes("schema"))){const y=l[l.length-1];return l!=null&&l.includes("drop")?o="drop":o="create",{commandType:"ddl_schema",schema:y,command:o,resourceId:y}}let c="",u="";if(e==null||e.forEach(y=>{y!=null&&y.schema&&(n[y.schema.toLowerCase()]=y)}),l==null||l.every(y=>c&&a?!1:(vgi.includes(y)?(o=y,c="dql"):Agi.includes(y)?(c="dml",o=y):ygi.includes(y)&&(c="ddl",o=y),n[y]&&(a=y),!0)),c==="ddl"&&(o==null?void 0:o.toLowerCase())==="create"&&(l!=null&&l.includes("table"))){if(!a){const x=/create\s+table\s+(?:if\s+not\s+exist\s+)?(\w+)\.\w+\s+/i;try{const w=s.match(x);a=w?w[1]:""}catch{a=""}}const y=a==null?void 0:a.length;for(let x=0;x<s.length-y;x+=1)if((s==null?void 0:s.substring(x,x+y))===a){s=s.substring(x,s.length);break}let S=0;for(;s[S]!==" "&&s[S]!=="("&&S<=(s==null?void 0:s.length);)S+=1;return u=(f=(h=s.substring(0,S))==null?void 0:h.trim())==null?void 0:f.toUpperCase(),u=u.replace('"',""),u=u.replace("'",""),u=u.replace(`
`,""),u=u.replace(";",""),{resourceId:u,command:o,commandType:c,schema:a}}let d="";if((m=(p=n[a])==null?void 0:p.tables)==null||m.forEach(({name:y})=>{r={...r,[y==null?void 0:y.toLowerCase()]:y}}),l==null||l.every(y=>{var S;return r[y]?(a=((S=n[a])==null?void 0:S.schema)||"PUBLIC",d=r[y],!1):!0}),!a||!d){const y=/from\s+(\S+)/i;try{const S=(g=t==null?void 0:t.toLowerCase())==null?void 0:g.match(y),x=S?(v=S[1])==null?void 0:v.split("."):[];if((x==null?void 0:x.length)===2){const[w,_]=x;a||(a=w),d||(d=_)}}catch{}}return a||(a="ETHEREUM",c="dql"),d||(d="BLOCKS",c="dql"),c||(c="dql"),u=`${a}.${d}`,u=u.replace('"',""),u=u.replace("'",""),u=(A=u.replace(`
`,""))==null?void 0:A.toUpperCase(),u=u.replace(";",""),{resourceId:u,commandType:c,command:o}},Lkt=t=>{switch(t){case"ethereum":return j_.etherscan;case"polygon":return j_.polygon;case"avalanche":return j_.avalanche;case"binance":return j_.binance;case"mumbai":return j_.mumbai;case"sepolia":return j_.sepolia;case"goerli":return j_.goerli;case"holesky":return j_.holesky;case"zksyncera":return j_.zksyncera;default:return j_.etherscan}},yVe=t=>t>Date.now()+3e5,TD=()=>{var t;(t=AE())==null||t.push("/")},Yit=t=>t.replace(/\\r\\n/g," ").replace(/[\r]+/g," "),Y6=t=>{if(!(t!=null&&t.length))return{fieldsMetadata:[],items:[],last:!0,queryId:1234};const{dataFrames:e,filteredDataFrames:n}=Qwe(t),r=qwe(e),a=Object.keys(t[0]),o=[];return t==null||t.forEach(l=>{const c=[];a.forEach(u=>{c.push(l[u])}),o.push(c)}),{fieldsMetadata:a.map(l=>({fieldName:l,fieldTypeName:"java.lang.String",schemaName:"eth",typeName:"TRANSACTION"})),items:o,last:!0,queryId:1234,filteredDataFrames:n,dataframesObject:r,dataFrames:e}},Z_e=(t="")=>{const e=localStorage.getItem("userId")||"abcd";return`https://api.dicebear.com/7.x/bottts/svg?seed=${t||e}`};function k1a(t){return new DOMParser().parseFromString(t,"text/html").documentElement.textContent}const R1a=(t,e)=>{const n=[...e];switch(t){case 1:return n.slice(0,2);case 2:return n.slice(0,1);default:return n.slice(0,3)}},M1a=t=>{var e;return t!=null&&t.length?(t==null?void 0:t.length)>1?[]:Ft.isEmpty((e=t[0])==null?void 0:e.schemaSubGroups)?ULe.slice(0,1):ULe:ULe.slice(0,1)},N1a=t=>{const e=[];return t==null||t.forEach(n=>{e.push({color0:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 0.5)`,color1:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`})}),e},I1a=(t,e)=>{const n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(n**2+r**2+a**2)};function P1a(t,e){for(let r=0;r<(e==null?void 0:e.length);r+=1)if(I1a(t,e[r])<=100)return!0;return!1}const Jit=t=>t==null?void 0:t.replace(/rgba?\((\d+), (\d+), (\d+),? (\d*(?:\.\d+))?\)/,"rgb($1, $2, $3)"),oBe=t=>{const e=t.toString(16);return e.length===1?`0${e}`:e},Bkt=(t,e,n)=>`#${oBe(t)}${oBe(e)}${oBe(n)}`,ez=t=>/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[\W_])?.{8,}$/.test(t),ej=()=>{localStorage.setItem(q.JOINCODE_VALUE,""),localStorage.setItem(q.SUBSCRIPTION_TYPE,"")},Dkt=()=>localStorage.getItem(q.SUBSCRIPTION_TYPE),O1a=async t=>{if(!t)return"";try{const e=JSON.parse(t)||{},{biscuit:n={}}=e;if(Ft.isEmpty(n))return"";const{value:r=""}=n;return r}catch{return""}},L1a=()=>{const t=new Date,e=new Date;return e.setDate(t.getDate()+29),`${t.getDate()} ${t.toLocaleString("default",{month:"long"})} ${t.getFullYear()} - ${e.getDate()} ${e.toLocaleString("default",{month:"long"})} ${e.getFullYear()}`},B1a=(t="")=>(t==null?void 0:t.length)>10?`${t.slice(0,10)}...`:t,Zit=t=>!/^[a-z0-9-]+$/.test(t),Hfn=t=>!/^[a-zA-Z0-9_]+$/.test(t),Ufn=async t=>{const e=Co.stringify(t);try{const{data:n={},error:r=""}=await Hu.createResource(e);if(r)return{code:"",publicKey:"",biscuit:"",error:r};const{code:a="",publicKey:o="",biscuit:s=""}=n||{};return{code:a,publicKey:o,biscuit:s}}catch(n){return{code:"",publicKey:"",biscuit:"",error:n}}},aH=t=>{var r;const{code:e,persist:n}=t;try{const a=Co.stringify({persist:n});e&&((r=Hu.deleteResource(e,a))==null||r.then(()=>{n&&(Ooe(),Loe())}))}catch{}},D1a=({query:t="",publicKey:e,refreshInterval:n})=>{var d,h;const r=/\sAS\s/i,a=new RegExp(r,"i"),o=t.match(a);let s="",l="";if(o){const{index:f}=o;s=t.slice(0,f).trim(),l=f&&t.slice(f+o[0].length).trim()||""}const c=`public_key=${e}`,u=`refreshInterval=${n}`;if((d=s==null?void 0:s.toLowerCase())!=null&&d.includes("with")){s=(h=s==null?void 0:s.toLowerCase())==null?void 0:h.trim();const f=s.length,p=s[f-1];return s=s.substring(0,f-1),l=`${s},${c}${p} AS ${l}`,l}return n?`${s} WITH "${u},${c}" AS ${l}`:`${s} WITH "${c}" AS ${l}`},$1a=({query:t="",publicKey:e="",refreshInterval:n=0})=>{var d,h,f,p;if(!t||!e||(d=t==null?void 0:t.toLowerCase())!=null&&d.includes("public_key="))return t;if((h=t==null?void 0:t.toLowerCase())!=null&&h.includes("create view")||(f=t==null?void 0:t.toLowerCase())!=null&&f.includes("create materialized view")||(p=t==null?void 0:t.toLowerCase())!=null&&p.includes("create parameterized view"))return D1a({query:t,publicKey:e,refreshInterval:n});const r=t==null?void 0:t.replace(";",""),a=`public_key=${e}`,o=/\sWITH\s/i,s=new RegExp(o,"i"),l=r.match(s);let[c="",u=""]=r.split(s);if(l){c=c.trim(),u=u==null?void 0:u.replaceAll('"',"");const m=`"${u.trim()},${a}"`;return`${c} WITH ${m}`}return`${c} WITH "${a}"`},vN=t=>!!JP(t||"",{path:[Qt.landingPage,Qt.newDashboard,Qt.updateDashboard,Qt.viewDashboard,Qt.publicDashboard,Qt.dashboards],exact:!0,strict:!1}),X_e=(t,e)=>{const n=r1e(t,e,!1),r={};n==null||n.forEach(s=>{const l=Object.keys(s);l==null||l.forEach(c=>{r[c]||(r[c]=c.length*1.5*5+75);const u=String(s[c]).length*.9*5+100;(!r[c]||u>r[c])&&(r[c]=u)})});const a=Object.values(r);return a==null?void 0:a.map(s=>s<120?120:s>365?365:s)},bVe=t=>/^\d*\.?\d+$/.test(t),s1e=t=>["string","number"].includes(typeof t)?t:t instanceof Array?t.map(s1e).join(""):typeof t=="object"&&t?s1e(t.props.children):"",F1a=({widgetDetails:t,dashboardWidgets:e,dashboardComponents:n})=>{const r={};n==null||n.forEach(({h:u,w:d,x:h,y:f})=>{const p=d+h-1;for(let m=f;m<=f+u;m+=1){r[m]||(r[m]=new Array(12).fill(!1));for(let g=0;g<12;g+=1)!r[m][g]&&g>=h&&g<=p&&(r[m][g]=!0)}}),e==null||e.forEach(({metadata:u})=>{const{h:d=0,x:h=0,w:f=0,y:p=0}=JSON.parse(u),m=f+h-1;for(let g=p;g<=p+d;g+=1){r[g]||(r[g]=new Array(12).fill(!1));for(let v=0;v<12;v+=1)!r[g][v]&&v>=h&&v<=m&&(r[g][v]=!0)}});let a=0,o=0,s=!1;const{minW:l,minH:c}=t;for(;!s;){let u=o;const d=o+l;let h=a;r[h]||(r[h]=new Array(12).fill(!1));const f=a+c;let p=!0;for(;h<f;){for(r[h]||(r[h]=new Array(12).fill(!1));u<d;)if(!r[h][u])u+=1;else{p=!1;break}if(!p){o+1+l<=12?o+=1:(a+=1,o=0);break}p&&(h+=1,u=o)}p&&h===f&&(s=!0)}return{startX:o,startY:a}},zfn=(t,e,n)=>{var u;const r=(e==null?void 0:e.length)||0,a=t!=null&&t.metadata?(u=JSON.parse(t.metadata))==null?void 0:u.components:[],o=a==null?void 0:a.length,{startX:s,startY:l}=F1a({widgetDetails:{minH:8,minW:4},dashboardWidgets:e,dashboardComponents:a}),c=n&&(n==null?void 0:n.metadata);return{i:o+r,w:4,h:8,x:s,y:l,minH:8,minW:4,maxH:12,maxW:12,...c}},j1a=()=>`Query ${Fd().format("DD MMM YYYY [at] hh:mm:ss A")}`,$kt=t=>{var e,n,r;return t?(e=t==null?void 0:t.toLowerCase())!=null&&e.includes("month")?"Monthly":(n=t==null?void 0:t.toLowerCase())!=null&&n.includes("year")?"Yearly":(r=t==null?void 0:t.toLowerCase())!=null&&r.includes("day")?"Daily":(t!=null&&t.includes("Usage Based"),"USAGE-BASED"):"USAGE-BASED"},eTe=(t=1)=>{var r,a;const e=Fd(),n=e.subtract(t,"days");return{to:(r=Fd(e))==null?void 0:r.toISOString(),from:(a=Fd(n))==null?void 0:a.toISOString()}},Fkt=t=>{const e=["th","st","nd","rd"],n=t%100;return t+(e[(n-20)%10]||e[n]||e[0])},Hl=t=>{var r,a;const{value:e="",format:n=""}=t;return!e||!n?e:n==="iso"?(r=Fd(e))==null?void 0:r.toISOString():(a=Fd(e))==null?void 0:a.format(n)},H1a=({query:t,queryComments:e})=>{var n;try{let r=0,a=0,o=0;if(!t)return"nlp";let s=t.replace(e,"");s=s.replace("--","");const l=(n=s==null?void 0:s.toLowerCase())==null?void 0:n.replace(`
`," ").split(" ");if((l==null?void 0:l.length)<3)return"nlp";const c=l.shift()||"";if(!v1a[c])return"nlp";const u=l.shift()||"";if(rBe[c]){if(!iBe[u]&&Ft.isNumber(u))return"nlp";a+=20,o+=20}else{if(!iBe[u]&&Ft.isNumber(u))return"nlp";bq[c]&&bq[u]?r+=40:bq[c]?r+=20:(r+=20,o+=20)}return l==null||l.forEach(d=>{bq[d]&&rBe[d]&&(o+=20),bq[d]&&(r+=20),rBe[d]&&(a+=20),iBe[d]&&(a+=40,o+=20)}),a>r&&a>=o?"sql":r>a&&r>=o||o>r&&o>a&&r>a?"nlp":"sql"}catch{return"sql"}},Xit=async(t,e,n,r,a,o,s,l)=>{var h;s&&c1a(r),t1e(""),Ofn(0);const c=t.replace(/^\n+/,""),u=H1a({query:t,queryComments:e}),d=(h=c.match(g1a))==null?void 0:h.input;o?u==="sql"||e?await vVe(n,r,a,"","",l):u==="nlp"&&!e&&(n1e(),Rfn(d.trim(),r),hp(d),t1e("")):await vVe(n,r,a,"","",l)},Gfn=t=>{const e={};return t==null||t.forEach(({resourceId:n,operation:r})=>{e[r==null?void 0:r.toLowerCase()]||(e[r==null?void 0:r.toLowerCase()]=[]),e[r==null?void 0:r.toLowerCase()].push(n)}),e},g9=(t,e)=>{const n=[];t==null||t.forEach(a=>{(e==null?void 0:e.every(s=>{var l;return(l=a==null?void 0:a.access)==null?void 0:l.some(c=>{var u;return((c==null?void 0:c.resourceId)===(s==null?void 0:s.resourceId)||(c==null?void 0:c.resourceId)==="*")&&((u=c==null?void 0:c.supportedOperations)==null?void 0:u.includes(s==null?void 0:s.operation))})}))&&n.push(a==null?void 0:a.biscuit)});const r=localStorage.getItem("selectedBiscuit")||"";if(r)try{const a=JSON.parse(r),{biscuit:o={}}=a,{value:s=""}=o;s&&n.push(s)}catch{}return n||[]},ree=t=>{const e=[],n=[];return t!=null&&t.length&&(t==null||t.forEach(r=>{r!=null&&r.id?n.push({tagId:r.id}):r!=null&&r.tagId?n.push({tagId:r.tagId}):e.push({value:(r==null?void 0:r.value)||"",metadata:(r==null?void 0:r.metadata)||""})})),{newTags:e,tagReferences:n}},Hoe=({resources:t,operation:e="SELECT"})=>t==null?void 0:t.map(n=>({resourceId:n,operation:e})),tTe=async({userId:t})=>{var n,r;if(!t)return{isUserExist:!1,gatewayUrl:""};const{data:e={}}=await Wit.getIsUserExist(t);return{isUserExist:((n=e==null?void 0:e.code)==null?void 0:n.is_exist)||!1,gatewayUrl:((r=e==null?void 0:e.code)==null?void 0:r.gateway_url)||""}},eat=async(t="")=>{var n,r;if(!t)return{isValid:!1,gatewayUrl:""};const{data:e={}}=await Wit.validateJoinCode(t);return(n=e==null?void 0:e.code)!=null&&n.is_exist?{isValid:!0,gatewayUrl:((r=e==null?void 0:e.code)==null?void 0:r.gateway_url)||""}:{isValid:!1,gatewayUrl:""}},U1a=t=>{if(!t)return t;const e=t.split("://");return(e==null?void 0:e.length)!==2?t:`${e[0]}://proxy.${e[1]}`},z1a=(t,e)=>!t||!e?"":` ${`${Sf(t,yAe)} / ${Sf(e,yAe)}`}`,nvs=t=>t===""||/^[A-Za-z0-9_]{1,50}$/.test(t),Vfn=({cost:t=0,multiplierValue:e=0,units:n=0})=>(n-t)*e,kM=t=>{try{return JSON.parse(t)}catch{return{}}},G1a=async({key:t})=>{var n,r;if(!t)return{isUserExist:!1,gatewayUrl:""};const{data:e={}}=await Wit.getWalletAddressIsExist(t);return{isUserExist:((n=e==null?void 0:e.code)==null?void 0:n.is_exist)||!1,gatewayUrl:((r=e==null?void 0:e.code)==null?void 0:r.gateway_url)||""}},V1a=t=>/^\d*\.?\d*$/g.test(t),tat=({tables:t,blockchainsAndSchemas:e,schemaToBlockchainReference:n})=>{const r={};return t==null||t.forEach(a=>{var p;const{schema:o,table:s}=a,l={...a};let c="";e[o]?c="core":c=o,l.subGroup=c;const u=`${o}.${s}`;l.tableId=u;const d={},h=[];(p=a==null?void 0:a.columns)==null||p.forEach(m=>{const{column:g,relationships:v}=m,A={...m,table:s,tableId:u},y=`${u}.${g}`;A.columnId=y;const S=(v==null?void 0:v.map(({cardinality:x,column:w,schema:_,table:C})=>{const R=`${_}.${C}`,k=`${R}.${w}`;return d[`${y}.${k}`]={sourceColumn:y,tableId:R,table:C,targetColumn:k,cardinality:x==null?void 0:x.toLowerCase(),schema:_},{tableId:R,columnId:k,column:w,cardinality:x==null?void 0:x.toLowerCase(),schema:_,table:C}}))||[];A.relationships=S,h.push(A)}),l.columns=[...h],l.relations=[...Object.values(d)||[]];const f=n[o]||o;l.parentSchema=f,l.isBlockchain=!!n[o],r[u]=l}),r},K1a=t=>!!JP(t||"",{path:[Qt.sendData],exact:!0,strict:!1}),W1a=(t,e,n)=>{const r=n==="ASC"?1:-1;return t.sort((a,o)=>{const s=a[e],l=o[e];return s<l?-1*r:s>l?1*r:0})},Q1a=t=>{if(!t)return t;const e=t.split(`
`),n=[];return e==null||e.forEach((r="")=>{const[a]=r.split("--");n.push(a)}),n==null?void 0:n.join(`
`)},q1a=t=>!!JP(t||"",{path:[Qt.charts,Qt.vizard],exact:!0,strict:!1}),Y1a=t=>!!JP(t||"",{path:[Qt.awsMarketplace,Qt.googleCloud,Qt.azureLogin],exact:!0,strict:!1}),J1a=t=>{const{children:e,error:n,fullWidth:r,inputRef:a,onChange:o,setShowError:s,hasMax:l=!1,maxValue:c=0,ishelpertext:u,...d}=t,{focused:h}=tb()||{},f=m=>$fn(m,l,c,o,s),p=ke.useMemo(()=>h?n:!1,[h,n]);return E.jsx(G3r,{size:"small",fullWidth:!0,error:p,inputRef:a,onChange:f,autoComplete:"off",ishelpertext:u,...d,children:e})},gr=ke.forwardRef((t,e)=>{const{helperText:n,label:r,children:a,warningText:o,errorText:s,required:l,optional:c,theme:u,...d}=t,[h,f]=Y.useState(!1);return E.jsxs(eae,{fullWidth:!0,children:[E.jsx("label",{htmlFor:"inputfield",className:`formLabel ${l?"required":""} ${c?"optional":""}`,children:r}),E.jsx(J1a,{...d,setShowError:f,theme:u,children:a}),E.jsx(V3r,{className:"inputHelpText",theme:u,children:n}),s&&E.jsx(K3r,{className:"inputErrorText",theme:u,children:s}),h&&o&&!s&&E.jsxs(W3r,{theme:u,children:[E.jsx(hEe,{sx:{fontSize:15}})," ",o]})]})});gr.displayName="Input";const eC=gt.div`
  position: relative;
  width: 145px;
  input.MuiOutlinedInput-input {
    padding-right: 35px;
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .searchIcon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    line-height: 1;
    .clearSearch {
      cursor: pointer;
    }
  }
  &.autoComplete {
    width: 225px !important;
    position: relative;
    .autoCompleteSearch,
    .inputField {
      width: 100%;
    }
    .autoCompleteSearch {
      border: 1px solid rgb(103, 91, 140);
      border-radius: 8px;
      position: relative;
      .inputField {
        input {
          padding-right: 36px;
        }
      }
      .searchIcon {
        right: 0;
        .expandSearchIcon {
          background: transparent;
          cursor: default;
          pointer-events: none;
        }
      }
    }
    ul {
      position: absolute;
      left: 0;
      top: 100%;
      width: 100%;
      z-index: 9;
    }
  }
`,Kfn=gt.div`
  width: 0%;
  min-width: 36px;
  height: 36px;
  position: absolute;
  right: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: ${t=>t.theme.custom.boxBg};
  max-width: 100% !important;
  .MuiFormControl-root.MuiFormControl-fullWidth.css-q8hpuo-MuiFormControl-root {
    font-size: ${t=>t.theme.custom.fontSize.font10};
    max-width: 100% !important;
  }
  .expandSearchIcon {
    padding: 0;
    border: unset;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  &.expand {
    width: 100%;
    .expandSearchIcon {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }
  }
`,Tp=gt.div`
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  .title {
    color: ${t=>t.theme.custom.white.A11};
    margin-bottom: 0;
    flex: 1;
  }
  .toolbarRight {
    display: flex;
    gap: 16px;
    margin-left: auto;
  }
  &.resultToolbar .MuiToggleButtonGroup-root {
    overflow: auto;
    border-radius: 0;
  }
  .tabButton {
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    line-height: 20px;
    padding: 10px 0;
    text-transform: capitalize;
    color: ${t=>t.theme.custom.greyText.A2};
    border: 0;
    border-radius: 0;
    min-width: unset;
    position: relative;
    white-space: nowrap;
    &.Mui-disabled {
      border: 0;
      color: inherit;
      opacity: 0.6;
    }
  }
  .tabButton:not(:last-child) {
    margin-right: 24px;
  }
  .tabButton.Mui-selected,
  .tabButton.Mui-selected.Mui-disabled,
  .tabButton:hover {
    color: ${t=>t.theme.custom.white.A11};
    background: transparent;
    border: 0;
  }
  .tabButton.Mui-selected:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 20px;
    background: ${t=>t.theme.custom.white.A11};
    left: 0;
    bottom: 0;
    border-radius: 5px;
    box-shadow: 0px 0px 8px #999999;
  }
  .tabButton.savedChart span {
    line-height: 1;
    margin-left: 6px;
  }
  .createQueryBtn {
    a {
      display: flex;
      align-items: center;
      color: ${t=>t.theme.custom.white.A11};
      .addIcon {
        background: none;
        svg {
          height: 13px;
          width: 13px;
          path {
            stroke: ${t=>t.theme.custom.white.A11};
          }
        }
      }
    }
  }
  .MuiTabs-indicator {
    display: none;
  }
  .addIcon {
    height: 18px;
    width: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: ${t=>t.theme.custom.primaryBg};
  }
  .addIcon svg {
    height: 12px;
    width: 12px;
  }
  .MuiFormControl-root {
    .MuiInputBase-root {
      border: 1px solid ${t=>t.theme.custom.greyText.A11};
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
      background: none;
      height: 36px;
      border-radius: 8px;
      backdrop-filter: none;
      &:hover {
        background: none;
        backdrop-filter: none;
      }
      .MuiOutlinedInput-input::placeholder {
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
      }
    }
  }
  .searchField {
    min-width: 222px;
    width: auto;
    .Mui-focused {
      &::before {
        display: none;
      }
      &::after {
        display: none;
      }
    }
    .MuiOutlinedInput-input {
      padding-right: 35px;
    }
    .MuiInputBase-root {
      min-width: 222px;
    }
    .searchIcon {
      left: unset;
      right: 15px;
    }
  }

  .widgetTypeFilter {
    display: flex;
    align-items: center;
    margin: 0;
    position: relative;
    gap: 8px;
    span {
      color: ${t=>t.theme.custom.white.A11};
    }
    .MuiFormControl-root {
      width: 135px;
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
      .MuiSvgIcon-root {
        display: none;
      }
      .MuiSelect-select {
        display: flex;
        align-items: center;
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
        span {
          line-height: 1;
          margin-right: 5px;
          .MuiSvgIcon-root {
            font-size: 16px;
          }
        }
      }
    }
    .filterIcon {
      position: absolute;
      right: 12px;
      top: 12px;
    }
  }

  .popularityDropdown {
    width: 175px;
    .MuiSelect-select {
      font-size: 13px;
    }
  }
  .toggleViewMode {
    border: 0.5px solid #675b8c;
    box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
    border-radius: 8px;
    .MuiButtonBase-root {
      border: 0;
      padding: 5px;
      height: 34px;
      svg {
        max-width: 20px;
      }
    }
  }
  &.pageToolbar {
    padding-bottom: 10px;
  }
  &.pageMobileToolbar {
    flex-wrap: unset;
  }
  .resetFilterBtn {
    align-self: flex-end;
    height: 36px;
    width: 36px;
  }
  .autoCompleteSearch {
    width: 230px;
  }
  ${t=>t.theme.breakpoints.down("md")} {
    &.pageToolbar {
      &.viewsListing {
        .toolbarRight {
          gap: 8px;
          .searchField,
          .autoCompleteSearch {
            max-width: 180px;
            min-width: unset;
            .MuiInputBase-root {
              min-width: unset;
            }
          }
        }
      }
    }
    &.pageMobileToolbar {
      display: flex;
      align-items: center;
      width: 100%;
      flex-direction: column;
      position: relative;
    }
    .pageMobileTopBar {
      display: flex;
      flex: 1;
      align-items: center;
      width: 100%;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    &.pageMobileToolbar .widgetTypeFilter {
      width: 100%;
      white-space: nowrap;
    }
    &.pageMobileToolbar .searchField,
    &.pageMobileToolbar .searchField .MuiInputBase-root {
      min-width: unset;
    }
    &.pageMobileToolbar .searchField,
    &.pageMobileToolbar .MuiFormControl-fullWidth {
      width: 100%;
      max-width: 200px;
    }
    &.pageMobileToolbar .widgetTypeFilter .MuiFormControl-fullWidth {
      min-width: 125px;
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    &.pageMobileToolbar {
      flex-direction: column;
    }
    &.pageToolbar .createQueryBtn {
      margin-bottom: 10px;
    }
    &.pageToolbar .MuiToggleButtonGroup-root {
      order: 0;
      margin-bottom: 10px;
    }
    &.pageToolbar .searchField {
      margin-right: 10px;
      order: 1;
      // margin-top: 10px;
    }
    &.pageMobileToolbar .widgetTypeFilter {
      margin: 0;
    }
    &.pageMobileToolbar .widgetTypeFilter .MuiFormControl-fullWidth {
      max-width: 100%;
    }
    &.pageMobileToolbar .viewsListing {
      .toolbarRight {
        .searchField {
          align-self: flex-end;
        }
      }
      flex-direction: column;
      align-items: self-start;
      gap: 10px;
    }
  }
  @media (max-width: 475px) {
    &.pageMobileToolbar {
      .pageMobileTopBar {
        align-items: self-start;
        .searchField,
        .MuiFormControl-fullWidth {
          max-width: 100%;
        }
        .widgetTypeFilter {
          > span {
            display: none;
          }
        }
      }
    }
  }
`,nat=gt.div`
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  ${t=>t.theme.breakpoints.down("sm")} {
    &.viewsToolbar {
      flex-wrap: wrap;
      .widgetTypeFilter,
      .searchField {
        width: auto;
      }
      .autoCompleteSearch {
        width: 200px;
      }
    }
  }
  @media (max-width: 475px) {
    &.viewsToolbar {
      .searchField {
        min-width: 100%;
      }
      .widgetTypeFilter,
      .autoCompleteSearch {
        width: calc(45% - 10px);
      }
    }
    &:not(.viewsToolbar) {
      flex-direction: column;
    }
  }
`,Wfn=gt.div`
  display: flex;
  align-items: center;
  margin-left: 10px;
  justify-content: flex-end;
  gap: 10px;
  ${t=>t.theme.breakpoints.down("sm")} {
    .toggleViewMode {
      margin-right: 45px;
    }
  }
  @media (max-width: 475px) {
    flex-direction: column;
  }
`,oH=gt(Dn)`
  display: flex;
  align-items: center;
  span {
    line-height: 1;
    margin-right: 5px;
    .MuiSvgIcon-root {
      font-size: 16px;
    }
  }
`,rvs=gt.div`
  .fieldLabel {
    color: ${t=>t.theme.custom.white.A11};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    margin-bottom: 8px;
  }
  .fieldDescription {
    color: ${t=>t.theme.custom.white.A13};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
    margin-bottom: 8px;
  }
`,ivs=gt.div`
  .fieldLabel {
    color: ${t=>t.theme.custom.white.A11};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    margin-bottom: 8px;
  }
  .fieldDescription {
    color: ${t=>t.theme.custom.white.A13};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
    margin-bottom: 8px;
  }
`,l1e=gt.div`
  .fieldLabel {
    color: ${t=>t.theme.custom.white.A11};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    margin-bottom: 8px;
  }
  .fieldDescription {
    color: ${t=>t.theme.custom.white.A13};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
    margin-bottom: 8px;
  }
  .MuiFormControl-root .MuiInputBase-root {
    border: 1px solid rgb(103, 91, 140);
    color: ${t=>t.theme.custom.white.A11};
    font-size: 14px;
    background: none;
    height: 36px;
    border-radius: 8px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    &:before {
      display: none;
    }
  }
  .MuiInputBase-root {
    padding-left: 16px;
    &.Mui-focused {
      &:after {
        display: none;
      }
    }
    &:hover {
      &:before {
        display: none;
      }
    }
    .MuiAutocomplete-endAdornment {
      right: 4px;
      button {
        width: 28px;
        height: 28px;
        color: ${t=>t.theme.custom.white.A11};
      }
    }
  }
  .MuiAutocomplete-popper {
    .MuiPaper-root {
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
      background: ${t=>t.theme.custom.dropdownBg};
      border: 0.5px solid #675b8c;
      box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
      color: ${t=>t.theme.custom.white.A11};
      backdrop-filter: blur(2px);
      border-radius: 8px;
      .MuiAutocomplete-noOptions {
        color: ${t=>t.theme.custom.white.A11};
      }
      .MuiListSubheader-root {
        background: ${t=>t.theme.custom.primaryBg};
        color: ${t=>t.theme.custom.white.A11};
        line-height: unset;
        min-height: unset;
        font-size: ${t=>t.theme.custom.fontSize.font12};
        padding: 8px 16px;
        top: 0;
      }
      .MuiAutocomplete-listbox {
        padding: 0;
        max-height: 200px;
        li {
          min-height: unset;
          &:hover {
            background: ${t=>t.theme.custom.white.A5};
          }
        }
      }
    }
  }
`;function jkt(){const{innerWidth:t,innerHeight:e}=window;return{width:t,height:e}}const Z1a=t=>{Y.useEffect(()=>{function e(){var o;const{innerWidth:n}=window,r=(o=qt==null?void 0:qt.breakpoints)==null?void 0:o.values;let a;r.sm>n&&(a="xs"),r.sm<=n&&(a="sm"),r.md<=n&&r.lg>n&&(a="md"),r.lg<=n&&(a="lg"),t(a)}return window.addEventListener("resize",e,{passive:!0}),()=>window.removeEventListener("resize",e)},[])};function Is(){const[t,e]=Y.useState(jkt());return Y.useEffect(()=>{function n(){e(jkt())}return window.addEventListener("resize",n,{passive:!0}),()=>window.removeEventListener("resize",n)},[]),{height:t==null?void 0:t.height,width:t.width,headerHeight:Jmi}}const X1a=gt.div`
  padding-top: 56px;
  .boxContent {
    min-height: ${t=>t.height-24}px;
    display: flex;
    flex-direction: column;
    ${t=>t.theme.breakpoints.down("sm")} {
      min-height: ${t=>t.height}px;
    }
    position: relative;
    .loadingBlock {
      position: absolute;
      bottom: unset;
      height: calc(100% - 65px);
      top: 65px;
      z-index: 99;
      background: transparent;
      cursor: not-allowed;
    }
  }
  .boxContent .emptyBlock,
  .boxContent .loading {
    flex: 1;
  }
  .boxContent .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  .searchCharts {
    border: ${t=>t.theme.custom.greyText.A11};
    color: white;
    border-radius: 5px;
    width: 250px;
    input {
      color: ${t=>t.theme.custom.greyText.A3};
      font-size: 13px;
      ::placeholder {
        color: ${t=>t.theme.custom.greyText.A3};
        font-size: 14px;
        opacity: 1; /* Firefox */
      }
      ::-ms-input-placeholder {
        /* Edge 12 -18 */
        color: ${t=>t.theme.custom.greyText.A3};
        font-size: 14px;
      }
    }
  }
`;var rat={},eya=As;Object.defineProperty(rat,"__esModule",{value:!0});var J6=rat.default=void 0,tya=eya(Ps()),nya=E;J6=rat.default=(0,tya.default)((0,nya.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Hkt=gt(dYt)`
  && {
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    font-family: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.typography)==null?void 0:n.fontFamily}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
    border-radius: 8px;
    text-transform: unset;
    line-height: 20px;
    padding: 5px 16px;
    min-width: unset;
    white-space: nowrap;
    &.btnFull {
      width: 100%;
    }
  }
  span {
    line-height: 1;
    display: inline-block;
  }
  span.iconLeft {
    margin-right: 8px;
  }
  span.iconRight {
    margin-left: 8px;
  }

  &.MuiButton-containedPrimary {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
    border: 1px solid transparent;
  }
  &.MuiButton-containedPrimary:hover {
    background: transparent;
    border-color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    box-shadow: inset 0 0 0.875rem 1px rgb(75 0 178 / 25%),
      inset 0 0 0.5rem 1px rgb(206 184 217 / 20%),
      0 0 0.5rem 1px rgb(206 184 217 / 20%), 0 0 0.875px 1px rgb(75 0 178 / 25%);
  }
  &.MuiButton-containedPrimary.Mui-disabled {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    opacity: 0.8;
  }

  &.MuiButton-containedSecondary {
    background: transparent;
    border: 1px solid #675b8c;
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    box-shadow: unset;
  }
  &.MuiButton-containedSecondary:hover,
  &.MuiButton-containedSecondary.active {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
    border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
  }
  &.MuiButton-containedSecondary.Mui-disabled {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    background: transparent;
    opacity: 0.5;
  }

  &.MuiButton-text,
  &.MuiButton-containedText {
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    background: transparent;
  }
  &.MuiButton-text:hover,
  &.MuiButton-containedText:hover {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
    box-shadow: unset;
  }
  &.MuiButton-text.Mui-disabled {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    opacity: 0.5;
  }

  &.MuiButton-text a {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    display: inline-flex;
    align-items: center;
  }
  &.MuiButton-text:hover a {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A8}};
  }

  &.MuiButton-sizeSmall {
    height: 32px;
  }
  &.MuiButton-sizeMedium {
    height: 36px;
  }
  &.MuiButton-sizeLarge {
    height: 52px;
  }
  &.leftWithMenu {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  &.menuButton {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .linkButton {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
  }

  ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("xl")}} {
    && {
      padding: 5px 16px;
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    }
    &.MuiButton-text a {
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    }
  }
`,rya=18,Jt=ke.forwardRef(({children:t,icon:e,variant:n,htmlType:r,disabled:a,className:o,menuItems:s,color:l,size:c,sx:u,theme:d,onClick:h,isStoryBook:f,...p},m)=>{const[g,v]=ke.useState(null),A=!!g,y=R=>{v(R.currentTarget),_a.buttonClick({button_name:s1e(t)})},S=()=>{v(null)},x=["btn"];o&&x.push(o);const w=[...x],_=[...x,"menuButton"];s&&w.push("leftWithMenu");const C=R=>{f||_a.buttonClick({button_name:s1e(t)}),h&&h(R)};return E.jsxs(E.Fragment,{children:[E.jsxs(Hkt,{ref:m,className:w.join(" "),type:r||"button",disabled:a,variant:n,color:l,size:c,sx:u,theme:d,...p,onClick:C,children:[e&&ke.cloneElement(e,{size:rya},null),t&&e&&E.jsx("span",{style:{width:4}}),t]}),s&&s.length>0&&E.jsxs(E.Fragment,{children:[E.jsx(Hkt,{variant:n,color:l,size:c,className:_.join(" "),disabled:a,onClick:y,sx:{px:1},theme:d,children:E.jsx(J6,{})}),E.jsx(lE,{anchorEl:g,open:A,onClose:S,children:s})]})]})});Jt.displayName="Button";const iya=gt(OYt)`
  && {
    background: ${t=>t.theme.custom.inputBg};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    color: ${t=>t.theme.custom.white.A1};
    &.sizeLarge {
      .MuiOutlinedInput-input {
        padding: 14px 32px 14px 16px;
        font-size: ${t=>t.theme.custom.fontSize.font14};
      }
    }
    .MuiSelect-select[aria-expanded='true'] ~ svg {
      transform: rotate(180deg);
    }
    > svg {
      position: absolute;
      right: 12px;
      top: calc(50% - 0.3em);
      pointer-events: none;
    }
    &.Mui-disabled {
      color: inherit;
      .MuiSelect-select.Mui-disabled {
        cursor: not-allowed;
        -webkit-text-fill-color: unset;
      }
    }
  }
  && fieldset {
    top: 0;
    border: 0;
  }
  .MuiOutlinedInput-input {
    padding: 6px 32px 6px 16px;
    font-size: ${t=>t.theme.custom.fontSize.font12};
  }
  .MuiSelect-icon {
    color: ${t=>t.theme.custom.greyText.A5};
  }
`;function aya(t){const{children:e,error:n,select:r,fullWidth:a,ref:o,...s}=t,{focused:l,adornedStart:c}=tb()||{},u=ke.useMemo(()=>l?n:!1,[l,c,n]);return E.jsx(iya,{variant:"outlined",size:"small",fullWidth:!0,error:u,inputRef:o,displayEmpty:!0,IconComponent:Qy,...s,children:e})}const Ba=t=>{const{children:e,error:n,size:r,label:a,style:o,required:s,...l}=t;return E.jsxs(eae,{fullWidth:!0,style:o,children:[E.jsx("label",{htmlFor:"select",className:`formLabel ${s?"required":""}`,children:a}),E.jsx(aya,{error:n,...l,children:e})]})};Ba.displayName="SelectField";function Pn({children:t,label:e,tooltipPlacement:n="bottom-start",followCursor:r=!1,open:a,className:o,arrow:s=!0}){return E.jsx(BYt,{title:e||"",arrow:s,className:o,placement:n,followCursor:r,open:a,children:t})}const oya="/assets/sxtLoader-fad80b96.gif",sya=gt.div`
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  img {
    max-width: 150px;
  }
`,tC=gt.div`
  width: 18px;
  height: 18px;
  border: 3px solid ${t=>t.theme.custom.white.A3};
  border-top: 3px solid ${t=>t.theme.custom.white.A11};
  border-radius: 50%;
  -webkit-animation: spCircRot 0.6s infinite linear;
  animation: spCircRot 0.6s infinite linear;
  &.buttonLoading {
    margin-left: 8px;
  }
  @-webkit-keyframes spCircRot {
    from {
      -webkit-transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
    }
  }
  @keyframes spCircRot {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
`;function Ep(){return E.jsx(sya,{children:E.jsx("img",{src:oya,alt:"loading"})})}const Ukt=["queries","data-sets"],lya=gt.div`
  position: absolute;
  top: 0;
  left: 0;
  // Query Editor only needs to be 100% of Canvas not screen
  width: ${Ukt.indexOf(window.location.pathname)?"100%":"100vh"};
  // Query Editor only needs to be 100% of Canvas not screen
  height: ${Ukt.indexOf(window.location.pathname)?"100%":"100vh"};
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  // overpower all z-index in the app so nothing can be clicked into if api calls are loading
  z-index: 99999999999999;
`;function as(){return E.jsx(lya,{className:"overlayLoading",children:E.jsx(Ep,{})})}const cya=gt.div`
  && {
    display: flex;
    align-items: center;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .paginateGoTo {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    margin-top: 5px;
  }
  .paginateGoTo span {
    margin-right: 8px;
  }
  .paginateGoTo .MuiFormControl-root {
    width: 100px;
  }
  .paginateSelect .MuiFormControl-root {
    margin-left: 8px;
    min-width: 100px;
    margin-top: 5px;
  }
  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  input[type='number'] {
    -moz-appearance: textfield;
  }
  .MuiPagination-root {
    margin-top: 5px;
  }
  .MuiPagination-root ul {
    justify-content: center;
    ${t=>t.theme.breakpoints.down("sm")} {
      margin: 5px 0;
    }
  }
  .MuiPagination-root ul li .MuiPaginationItem-root,
  .MuiPagination-root ul li .MuiPaginationItem-ellipsis {
    color: ${t=>t.theme.custom.greyText.A2};
  }
  .MuiPagination-root ul li .MuiPaginationItem-root {
    ${t=>t.theme.breakpoints.down("sm")} {
      font-size: 0.75rem;
      min-width: 24px;
      height: 24px;
    }
  }
  .MuiPagination-root ul li .MuiPaginationItem-root:hover {
    color: ${t=>t.theme.custom.white.A1};
  }
  .MuiPagination-root ul li .MuiPaginationItem-root.Mui-selected {
    color: ${t=>t.theme.custom.white.A1};
    background: ${t=>t.theme.custom.primaryBg};
  }
`,EE=({count:t,page:e,onChange:n,isGotoPage:r=!1,isPageSize:a=!1,showFirstButton:o=!0,showLastButton:s=!0,onPageChange:l,onPageSizeChange:c,totalElements:u=0,pageSize:d=50,theme:h,disabled:f=!1,defaultSize:p,pgSizeOptions:m=[]})=>{const[g,v]=Y.useState([]),A=Y.useRef(null);Y.useEffect(()=>{const _=[];if(m.length){if(_.push(...m),!(m.includes(p)&&m.includes(d)))throw Error("defaultSize and pageSize props must be included in pgSizeOptions")}else{let C=p;const R=p;for(C>d&&_.push(d);C<u;){const k=C;_.push(C),C+=R,k<d&&d<C&&_.push(d)}d!==u&&_.push(u),d===u&&_.push(u)}v([...new Set(_)])},[u,d]),Y.useEffect(()=>{e&&(A!=null&&A.current)&&(A.current.value=e)},[e]);const y=_=>{var k;const C={..._};let R=(k=C==null?void 0:C.target)==null?void 0:k.value;R&&(Number.isNaN(R)||(R=Number.parseInt(R,10),R<1&&(R=1),R>t&&(R=t),C.target.value=R,R!==e&&l&&l(R)))},S=Ft.debounce(y,1e3),x=(_,C)=>{n(C)},w=_=>{var R;const C=((R=_==null?void 0:_.target)==null?void 0:R.value)||50;c&&c(C)};return u>p?E.jsxs(cya,{theme:h,children:[r&&E.jsxs("div",{className:"paginateGoTo",children:[E.jsx("span",{children:q.GO_TO_PAGE}),E.jsx(gr,{type:"number",onChange:S,defaultValue:e,inputRef:A})]}),E.jsx(aRr,{disabled:f,count:t||0,page:e,onChange:x,showFirstButton:o,showLastButton:s}),a&&E.jsx("div",{className:"paginateSelect",children:E.jsxs(Ba,{onChange:w,value:d,children:[E.jsx(Dn,{disabled:!0,value:void 0,children:q.PAGE_SIZE}),g.map(_=>E.jsx(Dn,{value:_,children:q.SHOW_PAGE_SIZE(_==null?void 0:_.toString())},_.toString()))]})})]}):null},Uoe="/assets/emptyChart-21075008.png",zoe="/assets/emptyChart-3c0d422e.webp",iat="/assets/emptyCounter-7571ba8a.png",aat="/assets/emptyCounter-0727eb12.webp",nTe="/assets/emptyDataset-06bfb00c.png",rTe="/assets/emptyDataset-8ead3933.webp",uya=gt.div`
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 15px;
  img {
    margin-bottom: 10px;
    max-width: 100%;
  }
  .emptyMsgTitle {
    color: ${t=>t.theme.custom.white.A11};
    font-size: ${t=>t.theme.custom.fontSize.font20};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    margin-bottom: 0.5em;
  }
  p {
    margin-bottom: 0;
    opacity: 1 !important;
    color: ${t=>t.theme.custom.greyText.A9};
  }
  p:empty {
    display: none;
  }
`,iTe=({placeholderSrc:t,src:e,...n})=>{const[r,a]=Y.useState(t||e);Y.useEffect(()=>{const s=new Image;return s.src=e,s.onload=()=>{a(e)},()=>a(e)},[e]);const o=t&&r===t?"imgLoading":"imgLoaded";return E.jsx("img",{src:r,...n,alt:n.alt||"",className:`image ${o}`})},sf=({imgPath:t,imgPathWebp:e,title:n,description:r,children:a,className:o="",theme:s})=>E.jsxs(uya,{className:o,theme:s,children:[t&&E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:e}),E.jsx(iTe,{src:t,placeholderSrc:e})]}),E.jsx("div",{className:"emptyMsgTitle",children:n}),E.jsx("p",{children:r}),a&&a]}),dya=xl(E.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Qfn=xl(E.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"CheckOutlined"),hya=xl(E.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),fya=xl(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),pya=xl(E.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),mya=xl(E.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),gya=xl(E.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),vya=xl(E.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),Aya=xl(E.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),yya=xl(E.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),_v=xl(E.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),bya=xl(E.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),xya=xl(E.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),Eya=xl(E.jsx("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"VisibilityRounded");var oat={},Sya=As;Object.defineProperty(oat,"__esModule",{value:!0});var sat=oat.default=void 0,wya=Sya(Ps()),_ya=E;sat=oat.default=(0,wya.default)((0,_ya.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");const Tya=gt.div`
  && {
    font-size: ${t=>t.theme.custom.fontSize.font10};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    line-height: 12px;
    border-radius: 4px;
    padding: 4px 6px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0;
  }
  &&.isRemovable {
    display: inline-flex;
    align-items: center;
  }
  &&.isClickable {
    cursor: pointer;
  }
  &&:not(first-child) {
    margin-left: 4px;
  }
  &&:nth-child(4n-3) {
    background: ${t=>t!=null&&t.color?`${t.color}1a`:t.theme.custom.tags.bg1};
    color: ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.violet};
    &.active {
      border: 0.5px solid
        ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.violet};
    }
  }
  &&:nth-child(4n-2) {
    background: ${t=>t!=null&&t.color?`${t.color}1a`:t.theme.custom.tags.bg2};
    color: ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.tags.A1};
    &.active {
      border: 0.5px solid
        ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.tags.A1};
    }
  }
  &&:nth-child(4n-1) {
    background: ${t=>t!=null&&t.color?`${t.color}1a`:t.theme.custom.tags.bg3};
    color: ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.tags.A2};
    &.active {
      border: 0.5px solid
        ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.tags.A2};
    }
  }
  &&:nth-child(4n) {
    background: ${t=>t!=null&&t.color?`${t.color}1a`:t.theme.custom.tags.bg4};
    color: ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.tags.A3};
    &.active {
      border: 0.5px solid
        ${t=>t!=null&&t.color?`${t.color}`:t.theme.custom.tags.A3};
    }
  }
  && .removeTag {
    margin-left: 5px;
    cursor: pointer;
    line-height: 1;
    background: transparent;
    border: 0;
    padding: 0;
  }
  && .removeTag:hover {
    color: ${t=>t.theme.custom.white.A1};
  }
`,Cya=gt.div`
  overflow: hidden;
  text-overflow: ellipsis;
`,kya=gt.a`
  && {
    color: ${t=>t.theme.custom.greyText.A5};
    width: 100%;
    padding: 0 8px;
    padding: 6px 8px;
  }
  &&:hover,
  &&.active {
    color: ${t=>t.theme.custom.white.A1};
    background: ${t=>t.theme.custom.white.A5};
  }
`,zkt=gt(dG)`
  && {
    padding: 0;
    box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
    border-radius: 8px;
    background: none;
    border-radius: 8px;
    font-family: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.typography)==null?void 0:n.fontFamily}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
    height: 34px;
    width: 34px;
  }
  &&:hover {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBgActive}};
  }
  &&.Mui-disabled {
    color: inherit;
    opacity: 0.4;
  }
  && + && {
    margin-left: 8px;
  }
  && svg {
    height: 16px;
    width: 16px;
  }
  a {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
  }
  * {
    display: inherit;
  }
`,_n=ke.forwardRef(({children:t,variant:e,to:n,tooltip:r,disabled:a,className:o,onClick:s,type:l,tooltipPlacement:c,...u},d)=>{let h;return t?(n&&!a&&!s?h=E.jsx(zkt,{children:E.jsx(d1,{to:n,...u,children:ke.Children.map(t,f=>ke.isValidElement(f)?ke.cloneElement(f,{},null):null)})}):h=E.jsx(zkt,{ref:d,disabled:a,onClick:s,className:o,children:E.jsx("span",{...u,children:ke.Children.map(t,f=>ke.isValidElement(f)?ke.cloneElement(f,{},null):null)})}),!r||a?h:E.jsx(Pn,{label:r,tooltipPlacement:c,children:h})):null}),Rya=({item:t,isRemovable:e,onRemove:n,onClick:r,active:a,isTag:o})=>{let{metadata:s=""}=t;return s=s?JSON.parse(s):{color:""},E.jsxs(Tya,{onClick:l=>{l.stopPropagation(),r&&r(t)},color:(s==null?void 0:s.color)||"",className:`tag ${e?"isRemovable":""} ${r?"isClickable":""} ${a?"active":""}`,children:[E.jsx("span",{children:o?`#${(t==null?void 0:t.value)||(t==null?void 0:t.tagValue)}`:`${(t==null?void 0:t.value)||(t==null?void 0:t.tagId)}`}),e&&E.jsx("button",{"aria-label":"Remove",type:"button",className:"removeTag",onClick:l=>{l.stopPropagation(),n&&n((t==null?void 0:t.value)||(t==null?void 0:t.tagValue))},children:E.jsx(San,{})})]})},Ov=t=>{const{tags:e=[],isRemovable:n,onRemove:r,theme:a,hasMore:o=!1,displayMaxLength:s=0,onClick:l,activeTag:c,children:u,isTag:d=!0}=t,[h,f]=Y.useState(null),[p,m]=Y.useState(""),g=new RegExp(p,"i"),v=x=>{f(x.currentTarget)},A=()=>{f(null),m("")},y=()=>o&&s<e.length&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:v,tooltip:q.SHOW_MORE,children:E.jsx(sat,{})}),E.jsxs(lE,{anchorEl:h,open:!!h,onClose:A,className:"tabMenu",anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[E.jsx("div",{className:"searchTab",children:E.jsx(gr,{onChange:x=>m(x.target.value),placeholder:q.SEARCH_ELIPSIS_CONTEXT(q.BY_TAG),autoComplete:"off"})}),E.jsx("div",{className:"tabList",children:e.slice(s).filter(x=>g.test((x==null?void 0:x.value)||"")).map(x=>E.jsx(Dn,{onClick:w=>{w.stopPropagation(),l&&l(x),A()},children:E.jsx(kya,{theme:a,className:`menuLink ${c&&(c===(x==null?void 0:x.value)||c===(x==null?void 0:x.tagValue))?"active":""}`,onClick:()=>{},children:x==null?void 0:x.value})},`tag-search-list-${O0.uuid()}`))})]})]}),S=()=>Ft.isEmpty(e)?[]:o?e.slice(0,s):e;return E.jsxs(Cya,{className:"tagList",children:[S().map(x=>E.jsx(Rya,{item:x,isRemovable:n,active:!!(c&&(c===(x==null?void 0:x.value)||c===(x==null?void 0:x.tagValue))),onRemove:r,onClick:l,isTag:d},`search-tag-list-${(x==null?void 0:x.id)||(x==null?void 0:x.tagId)}`)),E.jsxs("div",{className:"actionRow",children:[y(),u]})]})},qfn="/assets/avatar-7033870c.png",aTe="/assets/counterCurve-837cb6d7.svg",Mya=gt.div`
  padding: 15px 0;
  .leftBlock {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 40px;
    .topRow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
      p {
        margin-bottom: 0;
      }
      .tagView {
        display: flex;
        align-items: center;
        gap: 8px;
        .tag {
          font-size: ${t=>t.theme.custom.fontSize.font10};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          line-height: 12px;
          border-radius: 4px;
          padding: 4px 6px;
          display: inline-flex;
          align-items: center;
          gap: 4px;
          line-height: 14px;
          background: ${t=>t.theme.custom.tags.A4};
          color: ${t=>t.theme.custom.white.A11};
          border: 1px solid ${t=>t.theme.custom.tags.bg5};
        }
        button {
          height: 20px;
          width: 20px;
          border: 0;
        }
      }
    }
  }
  .leftBlock .detailType {
    background: ${t=>t.theme.custom.tags.bg4};
    color: ${t=>t.theme.custom.tags.A3};
    font-size: ${t=>t.theme.custom.fontSize.font8};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    line-height: 12px;
    border-radius: 4px;
    padding: 4px 6px;
  }
  .leftBlock .createdBy {
    margin: 15px 0;
  }
  .leftBlock label {
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .leftBlock .createdBy .user {
    display: flex;
    align-items: center;
  }
  .leftBlock .createdBy .user .userImg {
    height: 30px;
    width: 30px;
    overflow: hidden;
    border: 1px solid rgba(191, 191, 191, 0.75);
    border-radius: 50%;
    margin-right: 12px;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.nebulaBlue}};
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    img {
      width: 100%;
      height: 100%;
    }
  }
  .leftBlock .createdBy .user .userName {
    color: ${t=>t.theme.custom.greyText.A9};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    overflow: hidden;
    flex: 1;
    span {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  .leftBlock .chartname {
    color: ${t=>t.theme.custom.white.A1};
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  .leftBlock .description {
    font-size: ${t=>t.theme.custom.fontSize.font10};
    margin: 10px 0 30px;
    max-width: 400px;
    word-break: break-word;
  }
  .leftBlock .buttonRow {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .rightBlock .card {
    background: ${t=>t.theme.custom.cardBg};
    border: 0.5px solid #675b8c;
    box-shadow: 0px 60px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(100px);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    .downloadAsImage {
      top: 0;
      right: 0;
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      padding: 10px;
    }
  }
  .rightBlock .card.counterCard {
    position: relative;
    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url(${aTe});
      background-repeat: no-repeat;
      background-position: bottom center;
      background-size: 100%;
      z-index: -1;
    }
  }
  .rightBlock .card.counterCard .counterCard {
    background: transparent;
  }
  .rightBlock .card.counterCard .counterCard:before {
    background: none;
  }
  .rightBlock .card.counterCard .counterCard .counterBody {
    text-align: left;
    padding: 0 30px;
    margin: 90px 0 0;
  }
  .rightBlock .card.counterCard .counterCard .counterBody .counterValue {
    font-size: ${t=>t.theme.custom.heading.h1} !important;
  }
  .rightBlock .cardTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 24px;
    color: ${t=>t.theme.custom.white.A1};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    border-bottom: 1px solid ${t=>t.theme.custom.white.A6};
  }
  .rightBlock .cardTitleLeft {
    font-size: 21px;
  }
  .rightBlock .cardTitleRight {
    font-size: 28px;
  }
`,Nya=gt.div`
  && {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  && .strippedTable {
    margin-top: 0;
  }
`,Gkt=gt.a`
  && {
    color: ${t=>t.theme.custom.white.A1};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    margin-left: 2px;
  }
  &&:hover {
    text-shadow: none;
  }
`,Yfn=({text:t="",more:e=q.SHOW_MORE,less:n=q.SHOW_LESS,truncatedEndingComponent:r="...",theme:a,textLength:o})=>{const[s,l]=Y.useState(o),[c,u]=Y.useState(!1);Y.useEffect(()=>{l(o)},[o]);const d=()=>{l(o),u(!1)},h=()=>{l(t.length),u(!0)},f=(m,g)=>{let v=m.substr(0,g);return v.lastIndexOf(" ")>-1&&(v=v.substr(0,Math.min(v.length,v.lastIndexOf(" ")))),v};return(()=>t?(t==null?void 0:t.length)>s?E.jsxs("span",{children:[`${f(t,s)}${r}`," ",E.jsx(Gkt,{theme:a,onClick:h,children:e})]}):E.jsxs("span",{children:[t,c&&E.jsx(Gkt,{theme:a,onClick:d,children:n})]}):null)()},Iya="/assets/stepperPopupBg-e5059105.png",Pya=gt(fYt)`
  && {
    &.chartViewModal {
      .MuiDialog-paper {
        background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[2])}};
        backdrop-filter: blur(12px);
        .openInEditorButton {
          right: 38px;
        }
        .downloadAsImage,
        .openInEditorButton {
          top: 0;
        }
        .modalCloseBtn {
          background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[2])}};
          &:hover {
            background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[2])}};
          }
        }
      }
    }
    &.stepperModal {
      .MuiDialog-paper {
        background: ${t=>t.theme.custom.modalBg}
          url(${Iya});
        background-repeat: no-repeat;
        background-size: cover;
      }
    }
    &.welcomeDialogue {
      .MuiDialog-paper {
        background: ${t=>t.theme.custom.popupBg};
        border-radius: 8px;
        position: relative;
        overflow: visible;
      }
    }
  }
  .MuiDialog-paper {
    background: ${t=>t.theme.custom.modalBg};
    box-shadow: 0px 30px 30px 10px rgba(19, 17, 44, 0.5);
    border-radius: 16px;
    overflow: visible;
    ${t=>t.theme.breakpoints.down("sm")} {
      width: 100%;
      margin: 16px;
    }
  }
  .modalCloseBtn {
    background: ${t=>t.theme.custom.modalBg};
    position: absolute;
    top: -16px;
    right: -16px;
    border-radius: 50%;
    border: 0;
    &:hover {
      background: ${t=>t.theme.custom.boxBg};
    }
  }
`;gt(fYt)`
width:30%;
min-width:400px;
left:auto !important;
background: ${t=>t.theme.custom.chatBot.A1};
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(40px);
-webkit-backdrop-filter: blur(40px);
border-left: 1px solid #525165;
border-top-left-radius: 32px;
border-bottom-left-radius: 32px;
transition: ease all .5s;

&.pythonScriptWrapper {
  .MuiDialog-container {
    padding-top: 0;
    align-items: flex-start;

    .MuiDialogContent-root {
      max-height: 100%;
    }

    .MuiPaper-root {
      margin-top: 0px;
      margin-bottom: 0;
      max-height: 100%;
    }
  }

  // .jglzGz {
  //   background-color:transparent;
  //   .topBackArrow{
  //     position:static;
  //     padding:24px 24px 30px 16px;
  //   }
  // }
}

${t=>t.theme.breakpoints.down("md")} {
  width: 30%;
  min-width: 400px;
}

${t=>t.theme.breakpoints.down("sm")} {
  min-width: 360px;
}

.MuiDialog-container {
  background: rgba(0, 0, 0, 0.04) !important;
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
  position: relative;
  padding-top: 75px;

  .MuiPaper-root {
    position: unset;
    max-width: 100%;
    width: 100%;
    margin: 0;

    .MuiDialogContent-root {
      padding: 0px !important;
    }
  }
}

.topBackArrow {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 15px 0;
  left: 0;
  text-align: right;

  .titleArrowWrapper {
    width: 100%;
    display: flex;
    padding-bottom: 12px;
    justify-content: space-between;
    gap: 12px;
    .MuiFormControl-root {
      text-align: left;
      width: 100px;
      margin-left: auto;
      margin-right: 16px;
      .MuiOutlinedInput-root {
        border: 1px solid rgb(103,91,140);
      }
    }
    .titleWrapper {
      display: flex;
      align-items: center;

      img {
        margin-right: 10px
      }
    }

    h2 {
      margin: 0;
      font-size: ${t=>t.theme.custom.fontSize.font24};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      color:${t=>t.theme.custom.white.A11};
      line-height: 24px;
    }
  }

    button {
      padding: 0 !important;
    }
  }

  hr {
    border-color: rgba(255, 255, 255, 0.3);
    margin-top: 0;
  }
}
}

.queryBotChatPanel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 15px;
  .chats {
    flex: 1;
    overflow: hidden;
    flex-direction: row-reverse; 
    .rightSide {  
      .leftSide{ 
        display:none;
      }
    } 
  }  
}

.queryBoxWrapper {
  overflow: auto;

  .queryBoxInner {
    margin: 1.5rem 0;

    &:nth-child(2) {
      h3 {
        color: rgba(255, 90, 234, 1)
      }
    }

    &:nth-child(3) {
      h3 {
        color: rgba(252, 255, 126, 1)
      }
    }
  }

  .queryTitle {
    h3 {
      margin-bottom: 16px;
      color: rgba(167, 104, 255, 1);
      font-size: ${t=>t.theme.custom.fontSize.font14};
      font-family: ${t=>t.theme.typographyThird.fontFamily};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      margin-top: 16px;
    }
  }

  .listWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;

    .listStyleOuter {
      width: 48.6%;
      &.isDisabled {
        cursor: default;
        pointer-events: none;
        opacity: 0.6;
      }
      .listStyleInner {
        cursor: pointer;
        width: 100%;
        font-family: ${t=>t.theme.typographyThird.fontFamily};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        height: 100%;
        padding: 15px 12px;
        border: 1px solid ${t=>t.theme.custom.white.A5};
        background: ${t=>t.theme.custom.chatBot.A2};
        border-radius: 16px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: ${t=>t.theme.custom.fontSize.font12};

        span {
          width: 100%;
          word-wrap: break-word;
        }
      }
    }
  }
}

.tipTricksSpacing {
  padding: 0 15px;
  height: 100%;
}

.tipTricksWrapper {
  background-color: ${t=>t.theme.custom.chatBot.A3};
  padding: 16px;
  backdrop-filter: blur(50px);
  border-radius: 20px;

  .tipTrickTitleWrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .seeMoreButton,
    .seeLessButton {
      font-size: ${t=>t.theme.custom.fontSize.font12} !important;
      font-family: ${t=>t.theme.typographyThird.fontFamily};
      height: auto;
      padding: 0;

      .MuiButtonBase-root {
        font-size: ${t=>t.theme.custom.fontSize.font12} !important;
        font-family: ${t=>t.theme.typographyThird.fontFamily};
        height: unset;
        padding: 0;
      }

      svg {
        width: 9px;
      }
    }

    .seeMoreButton {
      svg {
        margin-right: 10px;
      }
    }

    .seeLessButton {
      svg {
        margin-left: 10px;
      }
    }

    h3 {
      margin-bottom: 0;
      font-size: ${t=>t.theme.custom.fontSize.font14};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      color: rgba(255, 255, 255, 1);

      strong {
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
      }
    }
  }
}

.commentBoxStyle {
  background: none !important;
  box-shadow: none !important;
  padding: 0 15px;

  ${t=>t.theme.breakpoints.down("md")} {
    padding: 0 15px;
  }

  .inputField {
    width: 100% !important;
  }

  .MuiTextField-root {
    width: 100%;

    .MuiInputBase-root {
      padding: 8px;
      overflow: hidden;
      color: ${t=>t.theme.custom.white.A1};
      min-height: 36px;

      textarea {
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        line-height: 18px;
      }
    }

    fieldset {
      border: 0px none;
      background: none;
      outline: none;
      box-shadow: none;
      color: ${t=>t.theme.custom.white.A1};
    }
  }

  .buttonBlock {
    max-width: 100%;
    gap: 5px;
  }

  .inputField {
    &:before {
      width: 0;
    }

    .buttonBlockLeft {
      border-radius: 16px;

      input::placeholder {
        color: ${t=>t.theme.custom.white.A1};
      }
    }
  }
}

.reciveChatWrapper {
  .plotQueryChart {
    .chartsDesign {
      min-width: 250px;
      margin: 0;
      cursor: pointer;

      .thumbnailBody {
        svg {
          cursor: pointer;
        }
      }
    }
  }
}

.rightSide {
  flex: 1;
  display: flex;
  flex-direction: column;

  .chatBoxWrapper {
    flex: 1;
    padding: 15px 0 15px 15px;
    overflow: auto;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    overflow: auto;
    ${t=>t.theme.breakpoints.down("md")} {
      padding: 15px 0 15px 15px;
    }
  }

  .tipTricksSpacing {
    margin-top: 20px;
  }

  .desktopHide {
    .tipTricksSpacing {
      margin-top: 0px;
    }
  }

  .buttonWdIcon {
    border-radius: 50px;
    height: 40px;
    font-size: ${t=>t.theme.custom.fontSize.font10};
    padding: 4px 10px 4px 4px;
    background: linear-gradient(16.42deg, rgba(255, 255, 255, 0.06) 34.1%, rgba(230, 230, 230, 0) 104.64%);
    backdrop-filter: blur(10px);

    &:hover {
      background-color: ${t=>t.theme.custom.chatBot.A3};
      border: 1px solid #675b8c;
    }

    .buttonText {
      display: inline-block;
      margin-left: 6px;
    }

    span.circleIcon {
      background-color: ${t=>t.theme.custom.primaryBg};
      height: 30px;
      width: 30px;
      display: flex;
      border-radius: 50px;
      align-items: center;
      justify-content: center;

      svg {
        width: 14px;
      }
    }
  }

  .queryBotStepper {
    .chartPopup {
      padding: 9px 16px 0 16px !important;
    }

    .MuiMobileStepper-root {
      margin-bottom: 10px;
      margin-top: 10px;
    }

    .thumbnailBody {
      .echarts-for-react {
        height: 200px !important;

        canvas {
          top: 14px !important;
        }
      }
    }
  }

  .chatItem.chatSent {
    .reciveChatWrapper {
      width: auto;
      max-width: 100%;
    }
  }

  .reciveChatWrapper {
    width: auto;
    font-size:${t=>t.theme.custom.fontSize.font11};
    max-width: calc(100% - 90px);
    .infoMsgBlock {
      margin-top: 10px;
      .helptext {
        position: relative;
        display: inline-flex;
        align-items: center;
        background: ${t=>t.theme.custom.white.A4};
        color: ${t=>t.theme.custom.white.A11};
        border-radius: 8px;
        padding: 8px 8px 8px 12px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.05);
        .infoIcon {
          font-size: 16px;
          margin-right: 8px;
          color: ${t=>t.theme.custom.pink};
        }
        span {
          color: ${t=>t.theme.custom.white.A11};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          text-decoration: underline;
          cursor: pointer;
          &:hover {
            color: ${t=>t.theme.custom.white.A11};
          }
        }
        &:before,
        &:after {
          content: '';
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          background: ${t=>t.theme.custom.pink};
        }
        &:before {
          left: 0;
          height: calc(100% - 12px);
          width: 3px;
        }
        &:after {
          left: 3px;
          width: 10px;
          height: calc(100% - 20px);
          filter: blur(10px);
        }
      }
    }
    &.fullWdChat {
      flex: 1;
    }
  }

  .queryBotEchart {
    min-width: 280px;

    &>div {
      padding: 0;
    }

    .chartsDesign {
      height: auto;
      min-width: 100%;
      position: relative;
    }

    &.chatBotExpanded {
      min-width: 800px;

      .chartsDesign {
        height: auto;
        min-width: 100%;
      }
    }
  }

  .chatItem.chatReceived {
    align-self: flex-start;
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 0px !important;

    .chatReceivedStyle {
      text-align: left;
      word-wrap: break-word;
      height: auto;
      max-width: 100%;
      padding: 6px;
      border: 1px solid ${t=>t.theme.custom.white.A5};
      background: ${t=>t.theme.custom.chatBot.A6};
      border-radius: 0px 10px 10px 10px;

      &>span {
        padding: 6px;
        display: block;
        word-break: break-word;
      }

      // .chartHeight:has(.queryResultWrapper) {
      //   height: 395px;
      // } 
      .queryResultWrapper {
        background: ${t=>t.theme.custom.chatBot.A3};
        backdrop-filter: blur(50px);
        border-radius: 20px;
        position: relative;
        min-width: 100%;
        height: 280px;
        overflow: hidden;
        .emptyVisualizationSmall{
          .emptyMsgTitle{
            font-size: 14px !important;
          }
        }
        .resultToolbar {
          justify-content: space-between;

          .mobileQueryToolbar {
            padding-right: 8px;
          }
          .tabButton:not(:last-child){
            margin-right: 12px;
          }
        }

        .QueryHelpText {
          padding: 0 16px;
        }

        .MuiToggleButtonGroup-root {
          padding-left: 12px;
        }

        .chartSuggetionList {
          padding: 0 16px;
          &.stepperContent {
            padding: 0 40px;
            .chartsDesign,
            .counterThumbnail {
              flex: 0 0 100%;
              max-width: 100%;
              min-width: unset;
            }
            .chartsDesign {
              .echarts-for-react * {
                width: 100% !important;
              }
            }
          }
        }

        .MuiMobileStepper-root {
          pointer-events: none;
          text-indent: -999em;
          position: absolute;
          top: 44%;
          padding: 0 4px;
          display: flex;
          justify-content: space-between;
          transform: translateY(-50%);

          button.MuiButtonBase-root {
            margin: 0px !important;
            height: 30px;
            width: 30px;
            pointer-events: all;
          }
        }
      }

      .chatInsideEditor {
        position: relative;

        .ace_editor {
          .ace_content {
            width: 100% !important;
            .ace_text-layer {
              .ace_indent-guide {
                background: transparent;
              }
            }
          }
        }

        .editorButtonGroup {
          position: absolute;
          right: 8px;
          z-index: 1;
          bottom: 7px;

          button {
            border: 0px none;
            background: none;
            width: 20px;
            padding: 0;
            height: 18px;
            + button {
              margin-left: 2px;
            }
            svg {
              width: 12px;
            }
          }
        }

        .ace_scrollbar.ace_scrollbar-h,
        .ace_scrollbar.ace_scrollbar-v {
          display: none
        }

        .hereclass {
          background-color: ${t=>t.theme.custom.chatBot.A5};
          backdrop-filter: blur(50px);
          border-radius: 16px;
          overflow: hidden;
          padding: 8px 70px 8px 8px;
          border: 1px solid rgba(255, 255, 255, 0.2);
        }
      }
      .referenceLinkList {
        padding: 6px 0;
        ul {
          margin: 5px 0 0;
          padding-left: 20px;
          li {
            + li {
              margin-top: 2px;
            }
            a {
              color: ${t=>t.theme.custom.white.A11};
              text-decoration: underline;
              padding: 2px 5px;
              border-radius: 4px;
              &:hover {
                background: ${t=>t.theme.custom.white.A6};
              }
            }
          }
        }
      }
    }

    .logoOuterCircle {
      .logoInnerCircle {
        width: 40px;
        height: 40px;
        border: 1px solid ${t=>t.theme.custom.white.A5};
        background: ${t=>t.theme.custom.chatBot.A6};
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
          width: 25px;
          height: 25px;
        }
      }
    }
  }

  .showMoreContent {
    a {
      display: block;
      margin-left: 0;
    }
  }

  .runningSqlQuery {
    min-width: 170px;

    .runningSqlInner {
      padding: 12px;
      position: relative;

      .runningLoader {
        position: absolute;
        top: -4px;
        right: 5px;

        img {
          max-width: 50px;
        }
      }
    }
  }

  .chatItem.chatSent {
    max-width: calc(100% - 110px);
    margin-right: 15px;
    align-self: flex-end;
    padding: 0px !important;

    ${t=>t.theme.breakpoints.down("md")} {
      margin-right: 15px;
    }

    .logoOuterCircle {
      display: none
    }

    .chatReceivedStyle {
      width: 100%;
      word-braek: break-word;
      height: auto;
      padding: 12px;
      backdrop-filter: blur(50px);
      background-color: ${t=>t.theme.custom.chatBot.A3};
      border-radius: 10px 0px 10px 10px;
    }
  }
}

.startQueryScreenWrapper {
  display: flex;
  flex: 1;
  flex-direction: row-reverse;
  overflow:hidden;
  .leftSide {
    flex: 1;
  }

  .commentBoxStyle {
    min-height: 50px;
  }

  .startQueryScreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    .innerCenterContent {
      max-width: 330px;
      padding-top: 15px;
      margin: auto;
    }

    .centerContentWrapper {
      flex: 1;
      justify-content: center;
      display: flex;
      align-items: center;
      text-align: center;
      color: ${t=>t.theme.custom.greyText.A2};
      font-size: ${t=>t.theme.custom.fontSize.font14};
      font-family: ${t=>t.theme.typography.fontFamily};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      padding: 0 15px;
      overflow: auto; 
      .buttonBlock {
        margin: 20px auto 0;
      }

      h2 {
        color: ${t=>t.theme.custom.white.A1};
        font-size: ${t=>t.theme.custom.fontSize.font24};
        font-weight: ${t=>t.theme.custom.fontWeight.bd};
        margin-top: 10px;
      }
    }
  }
}

.buttonBlock {
  display: flex;
  max-width: 170px;
  align-items: flex-end;
  margin: 0;

  .buttonBlockLeft {
    padding: 4px;
    border: 1px solid ${t=>t.theme.custom.white.A4};
    border-radius: 50rem;
    background: ${t=>t.theme.custom.chatBot.A2};
    flex: 1;
    color: ${t=>t.theme.custom.white.A1};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    display: flex;
    align-items: center;

    input {
      font-family: ${t=>t.theme.typographyThird.fontFamily};
      font-size: ${t=>t.theme.custom.fontSize.font12};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
    }

    button {
      font-size: ${t=>t.theme.custom.fontSize.font12};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      background: none;
      border: 0px none;
      box-shadow: none;
      text-shadow: none;
      text-align: center;
      width: 100%;
      height: 100%;
    }

    &.gradiantBg {
      background: ${t=>t.theme.custom.chatBot.A4};
    }

    .icon {
      color: ${t=>t.theme.custom.white.A1};
      height: 36px;
      width: 36px;
      background: #2b285b;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;

      svg {
        max-width: 18px;
      }
    }

    span {
      flex: 1;
      text-align: center;
    }
  }

  .buttonBlockRight {
    border: 1px solid ${t=>t.theme.custom.white.A4};
    border-radius: 50%;
    background: ${t=>t.theme.custom.chatBot.A2};
    cursor: pointer;
    padding: 6px;

    &.gradiantBg {
      background: ${t=>t.theme.custom.chatBot.A4};
    }

    button {
      height: 32px;
      width: 32px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: 0;
      color: ${t=>t.theme.custom.white.A1};

      &.btnPurple {
        background: ${t=>t.theme.custom.primaryBg};
      }

      &.btnPink {
        background: ${t=>t.theme.custom.pink};
      }
    }
  }
}

.MuiDialog-paper {
  background: bottom !important;
  box-shadow: none !important;
  margin: 0;
  max-height: 100% !important;
}

.MuiBackdrop-root {
  position: initial !important;
}

&&.queryChatOpen {
  .MuiDialogContent-root {
    padding: 0px !important;
  }

  .MuiDialog-container .MuiDialog-paper {
    height: 100% !important;
    margin: 0;
    max-height: 100% !important;

    .toggleTipsTricks {
      text-align: center;

      button {
        height: unset;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }

  .MuiDialog-root {
    width: 30%;
    transition: ease all .5s;
  }

  .leftSide {
    opacity: 0;
    transition: ease all .9s; 
    .hideSmallText{
      display:none;
    }
  }

  .rightSide {
    .chatBoxWrapper {
      .chatLodingAnimation {
        display: flex;
        justify-content: space-between;

        .stopGenerating {
          margin-right: 15px;
          padding: 0px 10px 0px 6px;
        }

        .TypeAnimation {
          width: 30px;
          height: 100%;
          display: flex;
          align-items: center;

          img {
            height: auto;
            width: 100%;
          }
        }
      }
    }

    .expandChatBot {
      position: absolute;
      top: 50%;
      background: linear-gradient(31.14deg, rgba(255, 255, 255, 0.06) 33.94%, rgba(255, 255, 255, 0.024) 90.86%);
      backdrop-filter: blur(40px);
      border-radius: 10px 0px 0px 10px;
      border: 1px solid #525165;
      border-radius: 8px 0px 0px 8px;
      left: -35px;
      height: 60px;
      border-right: 0px none;
      width: 35px;
      padding: 6px 3px;
      transform: translateY(-50%);

      svg {
        width: 8px;
      }
    }

    .queryBotEditor {
      padding: 0 0 0 30px;
      display: none;

      ${t=>t.theme.breakpoints.down("md")} {
        display: block;
      }
    }

    .queryBotEditor>div {
      padding-top: 0
    }

    .editorContent {
      width: 95%;

      .Pane.vertical.Pane1 {
        max-width: 100%;
        margin: 0;
      }

      .resultSplitPane.horizontal {
        width: 95%;
      }

      .Pane.horizontal.Pane2,
      .Resizer.horizontal {
        display: none;
      }
    }
  }

  .desktopHide {
    ${t=>t.theme.breakpoints.up("md")} {
      display: none
    }
  }
}

&&.doubleSideModal {
  width: 1100px;
  transition: ease all .5s;

  ${t=>t.theme.breakpoints.down("lg")} {
    width: 90%;
    transition: ease all .5s;
  }

  ${t=>t.theme.breakpoints.down("md")} {
    width: 30%;
    min-width: 400px;
    transition: ease all .5s;
  }

  ${t=>t.theme.breakpoints.down("sm")} {
    min-width: 360px;
    transition: ease all .5s;
  }
  
  .leftSide {
    padding-top: 15px;
    transition: ease width 1s .2s;
    opacity: 1;
    width: 50%; 
    .queryBotEditor>div {
      padding-top: 0
    }

    .editorContent {
      width: 95%;

      .Pane.vertical.Pane1 {
        max-width: 100%;
        margin: 0;
      }

      .resultSplitPane.horizontal {
        width: 95%;
      }

      .Pane.horizontal.Pane2,
      .Resizer.horizontal {
        display: none;
      }
    }

    .tipTricksWrapper {
      padding: 16px 0 16px 16px;
      display: flex;
      flex-direction: column;
      height: 100%;
      .tipTrickTitleWrapper {
        padding-right: 16px
      }

      .queryBoxInner {
        padding-right: 16px
      }
    }

    .queryBoxWrapper {
      flex: 1;
    }  
  }
 
  ${t=>t.theme.breakpoints.down("md")} {
    .startQueryScreenWrapper{
      flex-direction: column;
      .rightSide { 
        width: 100%; 
      } 
      .leftSide{
        width: 100%;
        height: auto;
        overflow: auto;
      }
    }  
    .chats{
      flex-direction: column;
      .rightSide { 
        width: 100%; 
        height:50%;
        .leftSide{ 
          display:block;
        }
      } 
      .leftSide{
        width: 100%;
        height: auto;
        overflow: auto;
        display:none;
        max-height: 300px;
        min-height:300px; 
       .tipTricksSpacing{
         margin-top: 0;
        }
      }
    }  
  } 
  ${t=>t.theme.breakpoints.down("sm")} {
    .leftSide{
      .tipTrickTitleWrapper{
        .hideTipsTricks{
          display:none;
        }
        .hideSmallText{
          display:inline-block;
        } 
      } 
    }
  } 
}

&&.QueryEditorBotUi {
  ${t=>t.theme.breakpoints.down("md")} {
    width: 95%;
    min-width: 400px;
  }

  ${t=>t.theme.breakpoints.down("sm")} {
    width: 95%;
    min-width: 360px;
  }

  .MuiPaper-root {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;

    .MuiDialogContent-root {
      padding: 0;

      .queryEditorInBotStyle {
        padding: 0 16px;
        .queryEditor {
          padding-top: 16px;
          padding-bottom: 16px;
          height: calc(100vh - 75px);
        }
      }

      .editorContent {
        .Pane.vertical.Pane1 {
          max-width: 100%;
          min-width: 100%;
          margin:0;
          border-radius: 20px;
          box-shadow: unset;
        }

        .Resizer.vertical {
          display: none
        }

        .Pane.vertical.Pane2 {
          display: none
        }
      }
 
      .desktopHide {
        ${t=>t.theme.breakpoints.up("md")} {
          display: none
        }
      }
    }
  }
}

.aaveTableModal {
  padding: 16px;
  height: calc(100vh - 90px);
  overflow: auto;

  .graphValueWrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;

    .graphWrapper {
      width: 50%;
    }

    .totalValueInfo {
      width: 50%;
      padding-right: 20px;
      padding-left: 20px;
    }
  }

  .graphFullWidth {
    width: 100%;
  }

  .ethValueCol {
    display: flex;
    gap: 20px;
    border-top: 1px solid ${t=>t.theme.custom.white.A14};
    padding-top: 25px;
    margin-top: 20px;

    .ethValueItem {
      width: 50%;
    }
  }

  .rightinfoListWrapper {
    margin-top: 40px;
    padding-left: 20px;

    .rightinfoList {
      padding: 25px 0;
      border-bottom: 1px solid ${t=>t.theme.custom.white.A14};

      &:last-child {
        border-bottom: 0px none;
      }

      ul {
        padding: 0;
        margin: 0;

        li {
          list-style: none;
          color:${t=>t.theme.custom.greyText.A2};
          font-size: ${t=>t.theme.custom.fontSize.font12};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          padding: 0 0 8px;

          &:last-child {
            padding: 0;
          }

          strong {
            color:${t=>t.theme.custom.white.A11};
            font-size: ${t=>t.theme.custom.fontSize.font12};
            font-weight: ${t=>t.theme.custom.fontWeight.md};
          }
        }
      }
    }
  }

  .searchResult {
    position: relative;
    width: 100%;
    display: flex;
    min-height: 280px;
    .resultTabs {
      width: 100%;
      .resultToolbar {
        .mobileQueryToolbar {
          margin-left: auto;
          display: flex;
          align-items: center;
          gap: 16px;
          .MuiButton-root {
            padding: 0;
          }
        }
      }
    }
  }

  .modalFooterConntent {
    padding: 30px 0 10px;
    margin: 0;
    border-top:1px solid ${t=>t.theme.custom.white.A14};

    p {
      color:${t=>t.theme.custom.greyText.A2};
      font-size: ${t=>t.theme.custom.fontSize.font12};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      max-width: 420px;
      margin: 0;
    }
  }

  .commonStyleWrapper {
    .commonHeading {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
      align-items: center;
    }

    h3 {
      font-size: ${t=>t.theme.custom.heading.h1};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      color:${t=>t.theme.custom.white.A11};
      margin: 0;
    }

    strong {
      font-size: ${t=>t.theme.custom.heading.H1};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      color:${t=>t.theme.custom.greyText.A2};
    }
  }
}

${t=>t.theme.breakpoints.down("md")} {
  .expandChatBot{
    display:none;
  }
}

`;const Oya=gt.div`
  && {
    padding: 24px 24px 0;
  }
  .modalHeader {
    display: flex;
    align-items: center;
    border-bottom: 1px solid ${t=>t.theme.custom.white.A6};
    padding-bottom: 16px;
  }
  .modalHeader button {
    margin-left: auto;
  }
  .modalHeader h2 {
    margin-bottom: 0;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: ${t=>t.theme.custom.fontSize.font20};
  }
  && .helpText {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
  }
`,Lya=gt(LTr)`
  && {
    padding: 24px;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    .upgradeSuccess {
      padding: 30px 0;
    }
  }
`;function lf({title:t="",visible:e,onClose:n,isHeader:r=!0,children:a,maxWidth:o="md",theme:s,isQueryBot:l,className:c}){const{chartBackground:u,useImgColors:d}=_p();return e?E.jsxs(Pya,{open:e,onClose:n,maxWidth:o,fullWidth:!0,theme:s,className:`${c} ${l?"queryBotGraphModal":""}`,$chartBackground:u,$useImgColors:d,children:[r&&E.jsx(Oya,{theme:s,children:E.jsx("div",{className:"modalHeader",children:t&&E.jsx("h2",{children:t})})}),n&&E.jsx(_n,{onClick:n,tooltip:q.CLOSE,className:"modalCloseBtn",children:E.jsx(Wl,{})}),E.jsx(Lya,{children:a})]}):null}const Bya="/assets/dashboardThumbnail-dad77e62.png",Dya="/assets/dashboardThumbnailSmall-d43c4194.png",$ya="/assets/dashboardThumbnailSmall-40555323.webp",Vkt=gt.div`
  && {
    margin-top: 4px;
  }
  && span {
    height: ${t=>t.height}px;
    max-height: ${t=>t.height-4}px;
    border-radius: 4px;
  }
`,Jfn=({skeletonHeight:t=50,repeatItem:e=13})=>{const n=[];for(let r=t;r<e;r+=t)n.push(E.jsx(Vkt,{height:t,children:E.jsx(Ca,{variant:"rectangular",animation:"wave"})},r));return E.jsxs(E.Fragment,{children:[E.jsx(Vkt,{height:t,children:E.jsx(Ca,{variant:"rectangular",animation:"wave"})}),n]})},oTe=({visualType:t})=>{const e=()=>{const r=Y.useRef(),[a,o]=Y.useState(0);return Y.useEffect(()=>{const{current:s}=r;o((s==null?void 0:s.offsetHeight)||0)},[]),E.jsx(Jfn,{repeatItem:a})},n=()=>E.jsx(Ca,{sx:{mx:"auto"},width:"90%",height:"100%"});return t===Di.TABLE?e():n()},Fya=gt.div`
  text-align: center;
  .trashIcon {
    margin-bottom: 12px;
    img {
      max-width: 100%;
    }
  }
  a {
    color: ${t=>t.theme.custom.blueActive};
    text-decoration: underline;
    &:hover {
      color: ${t=>t.theme.custom.white.A11};
      text-decoration: underline;
    }
  }
  .title-success {
    color: #2e8f49;
  }
  .title-reject {
    color: #f25c5f;
  }
  &.AdminRequestWrap {
    max-width: 350px;
    margin: 0 auto;
    img {
      margin-bottom: 22px;
    }
    h3 {
      color: ${t=>t.theme.custom.redTrash};
      margin-bottom: 6px;
    }
    button {
      margin-top: 20px;
      min-width: 175px;
    }
  }
  .description {
    color: ${t=>t.theme.custom.greyText.A2};
  }
  .btnRow {
    margin-top: 35px;
    ${t=>t.theme.breakpoints.down("sm")} {
      display: flex;
      justify-content: center;
    }
  }
  && .btnRow button {
    min-width: 145px;
    ${t=>t.theme.breakpoints.down("sm")} {
      min-width: 75px;
    }
  }
  .btnRow button + button {
    margin-left: 10px;
  }
`,Kkt="/assets/Icontrash-fe45a42b.png",Zfn="/assets/IconApprove-ad418d39.png",lat="/assets/logo-307f7f8f.svg",ws="/assets/textLoading-9a61e793.gif",jya={APPROVE:Zfn,REJECT:Kkt,TRASH:Kkt,HOME:lat},cm=ke.forwardRef(({children:t,title:e,confirmMessage:n,handleClick:r,onConfirm:a,className:o,icon:s,confirmButtonMessage:l,cancelButtonMessage:c,description:u="",iconImage:d,iconName:h,disabled:f=!1,supportText:p,isConfirmButtonVisible:m=!0,isModalVisible:g=!1,onCancel:v=()=>{},...A},y)=>{const S=L_e(),[x,w]=Y.useState(g);Y.useEffect(()=>{S||w(!1)},[S]),Y.useEffect(()=>{w(g)},[g]);let _=null;return m&&s?_=E.jsx(_n,{className:"btnTrash",onClick:C=>{C.stopPropagation(),r&&r(C),w(!0)},ref:y,disabled:f,...A,children:d||E.jsx(aoe,{})}):m&&(_=E.jsx(Jt,{onClick:C=>{r&&r(C),w(!0)},ref:y,variant:"contained",disabled:f,color:"error",size:"small",className:o,...A,children:t})),E.jsxs(E.Fragment,{children:[_,x&&E.jsx(lf,{visible:x,maxWidth:"xs",isHeader:!1,children:E.jsxs(Fya,{children:[E.jsx("div",{className:"trashIcon",children:E.jsx("img",{src:d||jya[h||"TRASH"],alt:"icon"})}),E.jsx("h3",{className:h==="APPROVE"||e===q.ADD_MATERIALIZED_VIEW_PERFORMANCE_TIP_HEADER?"title-success":"title-reject",children:e}),E.jsxs("p",{children:[n," ",p&&E.jsx("a",{href:tM,target:"_blank",rel:"noreferrer",children:p})]}),E.jsx("p",{className:"description",children:u}),E.jsxs("div",{className:"btnRow",children:[E.jsx(Jt,{variant:"contained",color:"secondary",size:"large",onClick:C=>{C.stopPropagation(),v(C),w(!1)},disabled:S,children:c||q.CANCEL}),E.jsx(Jt,{"data-id":"confirm",variant:"contained",color:"primary",size:"large",onClick:C=>{a(C)},disabled:S,children:S?E.jsx("img",{src:ws,alt:"loading",height:36}):l||q.YES})]})]})})]})});cm.displayName="ConfirmDialog";var Xfn={exports:{}},Goe={},xVe={exports:{}};(function(t,e){(function(n,r){r(e)})(en,function(n){function r(X){return function(J,ne,ie,he,de,ce,Ee){return X(J,ne,Ee)}}function a(X){return function(J,ne,ie,he){if(!J||!ne||typeof J!="object"||typeof ne!="object")return X(J,ne,ie,he);var de=he.get(J),ce=he.get(ne);if(de&&ce)return de===ne&&ce===J;he.set(J,ne),he.set(ne,J);var Ee=X(J,ne,ie,he);return he.delete(J),he.delete(ne),Ee}}function o(X,te){var J={};for(var ne in X)J[ne]=X[ne];for(var ne in te)J[ne]=te[ne];return J}function s(X){return X.constructor===Object||X.constructor==null}function l(X){return typeof X.then=="function"}function c(X,te){return X===te||X!==X&&te!==te}var u="[object Arguments]",d="[object Boolean]",h="[object Date]",f="[object RegExp]",p="[object Map]",m="[object Number]",g="[object Object]",v="[object Set]",A="[object String]",y=Object.prototype.toString;function S(X){var te=X.areArraysEqual,J=X.areDatesEqual,ne=X.areMapsEqual,ie=X.areObjectsEqual,he=X.areRegExpsEqual,de=X.areSetsEqual,ce=X.createIsNestedEqual,Ee=ce(Me);function Me(Be,ze,je){if(Be===ze)return!0;if(!Be||!ze||typeof Be!="object"||typeof ze!="object")return Be!==Be&&ze!==ze;if(s(Be)&&s(ze))return ie(Be,ze,Ee,je);var ye=Array.isArray(Be),me=Array.isArray(ze);if(ye||me)return ye===me&&te(Be,ze,Ee,je);var le=y.call(Be);return le!==y.call(ze)?!1:le===h?J(Be,ze,Ee,je):le===f?he(Be,ze,Ee,je):le===p?ne(Be,ze,Ee,je):le===v?de(Be,ze,Ee,je):le===g||le===u?l(Be)||l(ze)?!1:ie(Be,ze,Ee,je):le===d||le===m||le===A?c(Be.valueOf(),ze.valueOf()):!1}return Me}function x(X,te,J,ne){var ie=X.length;if(te.length!==ie)return!1;for(;ie-- >0;)if(!J(X[ie],te[ie],ie,ie,X,te,ne))return!1;return!0}var w=a(x);function _(X,te){return c(X.valueOf(),te.valueOf())}function C(X,te,J,ne){var ie=X.size===te.size;if(!ie)return!1;if(!X.size)return!0;var he={},de=0;return X.forEach(function(ce,Ee){if(ie){var Me=!1,Be=0;te.forEach(function(ze,je){!Me&&!he[Be]&&(Me=J(Ee,je,de,Be,X,te,ne)&&J(ce,ze,Ee,je,X,te,ne))&&(he[Be]=!0),Be++}),de++,ie=Me}}),ie}var R=a(C),k="_owner",P=Object.prototype.hasOwnProperty;function N(X,te,J,ne){var ie=Object.keys(X),he=ie.length;if(Object.keys(te).length!==he)return!1;for(var de;he-- >0;){if(de=ie[he],de===k){var ce=!!X.$$typeof,Ee=!!te.$$typeof;if((ce||Ee)&&ce!==Ee)return!1}if(!P.call(te,de)||!J(X[de],te[de],de,de,X,te,ne))return!1}return!0}var L=a(N);function I(X,te){return X.source===te.source&&X.flags===te.flags}function b(X,te,J,ne){var ie=X.size===te.size;if(!ie)return!1;if(!X.size)return!0;var he={};return X.forEach(function(de,ce){if(ie){var Ee=!1,Me=0;te.forEach(function(Be,ze){!Ee&&!he[Me]&&(Ee=J(de,Be,ce,ze,X,te,ne))&&(he[Me]=!0),Me++}),ie=Ee}}),ie}var T=a(b),M=Object.freeze({areArraysEqual:x,areDatesEqual:_,areMapsEqual:C,areObjectsEqual:N,areRegExpsEqual:I,areSetsEqual:b,createIsNestedEqual:r}),D=Object.freeze({areArraysEqual:w,areDatesEqual:_,areMapsEqual:R,areObjectsEqual:L,areRegExpsEqual:I,areSetsEqual:T,createIsNestedEqual:r}),B=S(M);function j(X,te){return B(X,te,void 0)}var H=S(o(M,{createIsNestedEqual:function(){return c}}));function U(X,te){return H(X,te,void 0)}var $=S(D);function z(X,te){return $(X,te,new WeakMap)}var Z=S(o(D,{createIsNestedEqual:function(){return c}}));function K(X,te){return Z(X,te,new WeakMap)}function Q(X){return S(o(M,X(M)))}function ee(X){var te=S(o(D,X(D)));return function(J,ne,ie){return ie===void 0&&(ie=new WeakMap),te(J,ne,ie)}}n.circularDeepEqual=z,n.circularShallowEqual=K,n.createCustomCircularEqual=ee,n.createCustomEqual=Q,n.deepEqual=j,n.sameValueZeroEqual=c,n.shallowEqual=U,Object.defineProperty(n,"__esModule",{value:!0})})})(xVe,xVe.exports);var cat=xVe.exports,EVe={exports:{}};function epn(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=epn(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Wkt(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=epn(t))&&(r&&(r+=" "),r+=e);return r}EVe.exports=Wkt,EVe.exports.clsx=Wkt;var uat=EVe.exports,Ls={},Hya=function(e,n,r){return e===n?!0:e.className===n.className&&r(e.style,n.style)&&e.width===n.width&&e.autoSize===n.autoSize&&e.cols===n.cols&&e.draggableCancel===n.draggableCancel&&e.draggableHandle===n.draggableHandle&&r(e.verticalCompact,n.verticalCompact)&&r(e.compactType,n.compactType)&&r(e.layout,n.layout)&&r(e.margin,n.margin)&&r(e.containerPadding,n.containerPadding)&&e.rowHeight===n.rowHeight&&e.maxRows===n.maxRows&&e.isBounded===n.isBounded&&e.isDraggable===n.isDraggable&&e.isResizable===n.isResizable&&e.allowOverlap===n.allowOverlap&&e.preventCollision===n.preventCollision&&e.useCSSTransforms===n.useCSSTransforms&&e.transformScale===n.transformScale&&e.isDroppable===n.isDroppable&&r(e.resizeHandles,n.resizeHandles)&&r(e.resizeHandle,n.resizeHandle)&&e.onLayoutChange===n.onLayoutChange&&e.onDragStart===n.onDragStart&&e.onDrag===n.onDrag&&e.onDragStop===n.onDragStop&&e.onResizeStart===n.onResizeStart&&e.onResize===n.onResize&&e.onResizeStop===n.onResizeStop&&e.onDrop===n.onDrop&&r(e.droppingItem,n.droppingItem)&&r(e.innerRef,n.innerRef)};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.bottom=dat;Ls.childrenEqual=Gya;Ls.cloneLayout=tpn;Ls.cloneLayoutItem=CD;Ls.collides=sTe;Ls.compact=rpn;Ls.compactItem=ipn;Ls.compactType=iba;Ls.correctBounds=apn;Ls.fastPositionEqual=Vya;Ls.fastRGLPropsEqual=void 0;Ls.getAllCollisions=opn;Ls.getFirstCollision=QB;Ls.getLayoutItem=hat;Ls.getStatics=fat;Ls.modifyLayout=npn;Ls.moveElement=bZ;Ls.moveElementAwayFromCollision=wVe;Ls.noop=void 0;Ls.perc=Wya;Ls.resizeItemInDirection=Xya;Ls.setTopLeft=tba;Ls.setTransform=eba;Ls.sortLayoutItems=yat;Ls.sortLayoutItemsByColRow=dpn;Ls.sortLayoutItemsByRowCol=upn;Ls.synchronizeLayoutWithChildren=nba;Ls.validateLayout=rba;Ls.withLayoutItem=zya;var Qkt=cat,yZ=Uya(Y);function Uya(t){return t&&t.__esModule?t:{default:t}}function dat(t){let e=0,n;for(let r=0,a=t.length;r<a;r++)n=t[r].y+t[r].h,n>e&&(e=n);return e}function tpn(t){const e=Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=CD(t[n]);return e}function npn(t,e){const n=Array(t.length);for(let r=0,a=t.length;r<a;r++)e.i===t[r].i?n[r]=e:n[r]=t[r];return n}function zya(t,e,n){let r=hat(t,e);return r?(r=n(CD(r)),t=npn(t,r),[t,r]):[t,null]}function CD(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:!!t.moved,static:!!t.static,isDraggable:t.isDraggable,isResizable:t.isResizable,resizeHandles:t.resizeHandles,isBounded:t.isBounded}}function Gya(t,e){return(0,Qkt.deepEqual)(yZ.default.Children.map(t,n=>n==null?void 0:n.key),yZ.default.Children.map(e,n=>n==null?void 0:n.key))&&(0,Qkt.deepEqual)(yZ.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]),yZ.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]))}Ls.fastRGLPropsEqual=Hya;function Vya(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height}function sTe(t,e){return!(t.i===e.i||t.x+t.w<=e.x||t.x>=e.x+e.w||t.y+t.h<=e.y||t.y>=e.y+e.h)}function rpn(t,e,n,r){const a=fat(t),o=yat(t,e),s=Array(t.length);for(let l=0,c=o.length;l<c;l++){let u=CD(o[l]);u.static||(u=ipn(a,u,e,n,o,r),a.push(u)),s[t.indexOf(o[l])]=u,u.moved=!1}return s}const Kya={x:"w",y:"h"};function SVe(t,e,n,r){const a=Kya[r];e[r]+=1;const o=t.map(s=>s.i).indexOf(e.i);for(let s=o+1;s<t.length;s++){const l=t[s];if(!l.static){if(l.y>e.y+e.h)break;sTe(e,l)&&SVe(t,l,n+e[a],r)}}e[r]=n}function ipn(t,e,n,r,a,o){const s=n==="vertical",l=n==="horizontal";if(s)for(e.y=Math.min(dat(t),e.y);e.y>0&&!QB(t,e);)e.y--;else if(l)for(;e.x>0&&!QB(t,e);)e.x--;let c;for(;(c=QB(t,e))&&!(n===null&&o);)if(l?SVe(a,e,c.x+c.w,"x"):SVe(a,e,c.y+c.h,"y"),l&&e.x+e.w>r)for(e.x=r-e.w,e.y++;e.x>0&&!QB(t,e);)e.x--;return e.y=Math.max(e.y,0),e.x=Math.max(e.x,0),e}function apn(t,e){const n=fat(t);for(let r=0,a=t.length;r<a;r++){const o=t[r];if(o.x+o.w>e.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),!o.static)n.push(o);else for(;QB(n,o);)o.y++}return t}function hat(t,e){for(let n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function QB(t,e){for(let n=0,r=t.length;n<r;n++)if(sTe(t[n],e))return t[n]}function opn(t,e){return t.filter(n=>sTe(n,e))}function fat(t){return t.filter(e=>e.static)}function bZ(t,e,n,r,a,o,s,l,c){if(e.static&&e.isDraggable!==!0||e.y===r&&e.x===n)return t;`${e.i}${String(n)}${String(r)}${e.x}${e.y}`;const u=e.x,d=e.y;typeof n=="number"&&(e.x=n),typeof r=="number"&&(e.y=r),e.moved=!0;let h=yat(t,s);(s==="vertical"&&typeof r=="number"?d>=r:s==="horizontal"&&typeof n=="number"?u>=n:!1)&&(h=h.reverse());const p=opn(h,e),m=p.length>0;if(m&&c)return tpn(t);if(m&&o)return`${e.i}`,e.x=u,e.y=d,e.moved=!1,t;for(let g=0,v=p.length;g<v;g++){const A=p[g];`${e.i}${e.x}${e.y}${A.i}${A.x}${A.y}`,!A.moved&&(A.static?t=wVe(t,A,e,a,s):t=wVe(t,e,A,a,s))}return t}function wVe(t,e,n,r,a,o){const s=a==="horizontal",l=a==="vertical",c=e.static;if(r){r=!1;const h={x:s?Math.max(e.x-n.w,0):n.x,y:l?Math.max(e.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},f=QB(t,h),p=f&&f.y+f.h>e.y,m=f&&e.x+e.w>f.x;if(f){if(p&&l)return bZ(t,n,void 0,e.y+1,r,c,a);if(p&&a==null)return e.y=n.y,n.y=n.y+n.h,t;if(m&&s)return bZ(t,e,n.x,void 0,r,c,a)}else return`${n.i}${h.x}${h.y}`,bZ(t,n,s?h.x:void 0,l?h.y:void 0,r,c,a)}const u=s?n.x+1:void 0,d=l?n.y+1:void 0;return u==null&&d==null?t:bZ(t,n,s?n.x+1:void 0,l?n.y+1:void 0,r,c,a)}function Wya(t){return t*100+"%"}const spn=(t,e,n,r)=>t+n>r?e:n,lpn=(t,e,n)=>t<0?e:n,cpn=t=>Math.max(0,t),pat=t=>Math.max(0,t),mat=(t,e,n)=>{let{left:r,height:a,width:o}=e;const s=t.top-(a-t.height);return{left:r,width:o,height:lpn(s,t.height,a),top:pat(s)}},gat=(t,e,n)=>{let{top:r,left:a,height:o,width:s}=e;return{top:r,height:o,width:spn(t.left,t.width,s,n),left:cpn(a)}},vat=(t,e,n)=>{let{top:r,height:a,width:o}=e;const s=t.left-(o-t.width);return{height:a,width:s<0?t.width:spn(t.left,t.width,o,n),top:pat(r),left:cpn(s)}},Aat=(t,e,n)=>{let{top:r,left:a,height:o,width:s}=e;return{width:s,left:a,height:lpn(r,t.height,o),top:pat(r)}},Qya=function(){return mat(arguments.length<=0?void 0:arguments[0],gat(...arguments))},qya=function(){return mat(arguments.length<=0?void 0:arguments[0],vat(...arguments))},Yya=function(){return Aat(arguments.length<=0?void 0:arguments[0],gat(...arguments))},Jya=function(){return Aat(arguments.length<=0?void 0:arguments[0],vat(...arguments))},Zya={n:mat,ne:Qya,e:gat,se:Yya,s:Aat,sw:Jya,w:vat,nw:qya};function Xya(t,e,n,r){const a=Zya[t];return a?a(e,{...e,...n},r):n}function eba(t){let{top:e,left:n,width:r,height:a}=t;const o=`translate(${n}px,${e}px)`;return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:`${r}px`,height:`${a}px`,position:"absolute"}}function tba(t){let{top:e,left:n,width:r,height:a}=t;return{top:`${e}px`,left:`${n}px`,width:`${r}px`,height:`${a}px`,position:"absolute"}}function yat(t,e){return e==="horizontal"?dpn(t):e==="vertical"?upn(t):t}function upn(t){return t.slice(0).sort(function(e,n){return e.y>n.y||e.y===n.y&&e.x>n.x?1:e.y===n.y&&e.x===n.x?0:-1})}function dpn(t){return t.slice(0).sort(function(e,n){return e.x>n.x||e.x===n.x&&e.y>n.y?1:-1})}function nba(t,e,n,r,a){t=t||[];const o=[];yZ.default.Children.forEach(e,l=>{if((l==null?void 0:l.key)==null)return;const c=hat(t,String(l.key)),u=l.props["data-grid"];c&&u==null?o.push(CD(c)):u?o.push(CD({...u,i:l.key})):o.push(CD({w:1,h:1,x:0,y:dat(o),i:String(l.key)}))});const s=apn(o,{cols:n});return a?s:rpn(s,r,n)}function rba(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(let r=0,a=t.length;r<a;r++){const o=t[r];for(let s=0;s<n.length;s++)if(typeof o[n[s]]!="number")throw new Error("ReactGridLayout: "+e+"["+r+"]."+n[s]+" must be a number!")}}function iba(t){const{verticalCompact:e,compactType:n}=t||{};return e===!1?null:n}const aba=()=>{};Ls.noop=aba;var EC={};Object.defineProperty(EC,"__esModule",{value:!0});EC.calcGridColWidth=lTe;EC.calcGridItemPosition=oba;EC.calcGridItemWHPx=_Ve;EC.calcWH=lba;EC.calcXY=sba;EC.clamp=qB;function lTe(t){const{margin:e,containerPadding:n,containerWidth:r,cols:a}=t;return(r-e[0]*(a-1)-n[0]*2)/a}function _Ve(t,e,n){return Number.isFinite(t)?Math.round(e*t+Math.max(0,t-1)*n):t}function oba(t,e,n,r,a,o){const{margin:s,containerPadding:l,rowHeight:c}=t,u=lTe(t),d={};return o&&o.resizing?(d.width=Math.round(o.resizing.width),d.height=Math.round(o.resizing.height)):(d.width=_Ve(r,u,s[0]),d.height=_Ve(a,c,s[1])),o&&o.dragging?(d.top=Math.round(o.dragging.top),d.left=Math.round(o.dragging.left)):o&&o.resizing&&typeof o.resizing.top=="number"&&typeof o.resizing.left=="number"?(d.top=Math.round(o.resizing.top),d.left=Math.round(o.resizing.left)):(d.top=Math.round((c+s[1])*n+l[1]),d.left=Math.round((u+s[0])*e+l[0])),d}function sba(t,e,n,r,a){const{margin:o,cols:s,rowHeight:l,maxRows:c}=t,u=lTe(t);let d=Math.round((n-o[0])/(u+o[0])),h=Math.round((e-o[1])/(l+o[1]));return d=qB(d,0,s-r),h=qB(h,0,c-a),{x:d,y:h}}function lba(t,e,n,r,a,o){const{margin:s,maxRows:l,cols:c,rowHeight:u}=t,d=lTe(t);let h=Math.round((e+s[0])/(d+s[0])),f=Math.round((n+s[1])/(u+s[1])),p=qB(h,0,c-r),m=qB(f,0,l-a);return["sw","w","nw"].indexOf(o)!==-1&&(p=qB(h,0,c)),["nw","n","ne"].indexOf(o)!==-1&&(m=qB(f,0,l)),{w:p,h:m}}function qB(t,e,n){return Math.max(Math.min(t,n),e)}var cTe={},uTe={exports:{}},hpn={},Eh={},SC={};Object.defineProperty(SC,"__esModule",{value:!0});SC.dontSetMe=fba;SC.findInArray=cba;SC.int=hba;SC.isFunction=uba;SC.isNum=dba;function cba(t,e){for(let n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]}function uba(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Function]"}function dba(t){return typeof t=="number"&&!isNaN(t)}function hba(t){return parseInt(t,10)}function fba(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))}var v9={};Object.defineProperty(v9,"__esModule",{value:!0});v9.browserPrefixToKey=ppn;v9.browserPrefixToStyle=pba;v9.default=void 0;v9.getPrefix=fpn;const sBe=["Moz","Webkit","O","ms"];function fpn(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(t=window.document)===null||t===void 0||(t=t.documentElement)===null||t===void 0?void 0:t.style;if(!n||e in n)return"";for(let r=0;r<sBe.length;r++)if(ppn(e,sBe[r])in n)return sBe[r];return""}function ppn(t,e){return e?"".concat(e).concat(mba(t)):t}function pba(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t}function mba(t){let e="",n=!0;for(let r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):t[r]==="-"?n=!0:e+=t[r];return e}v9.default=fpn();Object.defineProperty(Eh,"__esModule",{value:!0});Eh.addClassName=vpn;Eh.addEvent=Aba;Eh.addUserSelectStyles=Rba;Eh.createCSSTransform=_ba;Eh.createSVGTransform=Tba;Eh.getTouch=Cba;Eh.getTouchIdentifier=kba;Eh.getTranslation=bat;Eh.innerHeight=Eba;Eh.innerWidth=Sba;Eh.matchesSelector=gpn;Eh.matchesSelectorAndParentsTo=vba;Eh.offsetXYFromParent=wba;Eh.outerHeight=bba;Eh.outerWidth=xba;Eh.removeClassName=Apn;Eh.removeEvent=yba;Eh.removeUserSelectStyles=Mba;var Hy=SC,qkt=gba(v9);function mpn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(mpn=function(r){return r?n:e})(t)}function gba(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=mpn(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}let Zue="";function gpn(t,e){return Zue||(Zue=(0,Hy.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Hy.isFunction)(t[n])})),(0,Hy.isFunction)(t[Zue])?t[Zue](e):!1}function vba(t,e,n){let r=t;do{if(gpn(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function Aba(t,e,n,r){if(!t)return;const a={capture:!0,...r};t.addEventListener?t.addEventListener(e,n,a):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function yba(t,e,n,r){if(!t)return;const a={capture:!0,...r};t.removeEventListener?t.removeEventListener(e,n,a):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function bba(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,Hy.int)(n.borderTopWidth),e+=(0,Hy.int)(n.borderBottomWidth),e}function xba(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,Hy.int)(n.borderLeftWidth),e+=(0,Hy.int)(n.borderRightWidth),e}function Eba(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,Hy.int)(n.paddingTop),e-=(0,Hy.int)(n.paddingBottom),e}function Sba(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,Hy.int)(n.paddingLeft),e-=(0,Hy.int)(n.paddingRight),e}function wba(t,e,n){const a=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect(),o=(t.clientX+e.scrollLeft-a.left)/n,s=(t.clientY+e.scrollTop-a.top)/n;return{x:o,y:s}}function _ba(t,e){const n=bat(t,e,"px");return{[(0,qkt.browserPrefixToKey)("transform",qkt.default)]:n}}function Tba(t,e){return bat(t,e,"")}function bat(t,e,n){let{x:r,y:a}=t,o="translate(".concat(r).concat(n,",").concat(a).concat(n,")");if(e){const s="".concat(typeof e.x=="string"?e.x:e.x+n),l="".concat(typeof e.y=="string"?e.y:e.y+n);o="translate(".concat(s,", ").concat(l,")")+o}return o}function Cba(t,e){return t.targetTouches&&(0,Hy.findInArray)(t.targetTouches,n=>e===n.identifier)||t.changedTouches&&(0,Hy.findInArray)(t.changedTouches,n=>e===n.identifier)}function kba(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier}function Rba(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,t.getElementsByTagName("head")[0].appendChild(e)),t.body&&vpn(t.body,"react-draggable-transparent-selection")}function Mba(t){if(t)try{if(t.body&&Apn(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const e=(t.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function vpn(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function Apn(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var wC={};Object.defineProperty(wC,"__esModule",{value:!0});wC.canDragX=Pba;wC.canDragY=Oba;wC.createCoreData=Bba;wC.createDraggableData=Dba;wC.getBoundPosition=Nba;wC.getControlPosition=Lba;wC.snapToGrid=Iba;var cy=SC,tj=Eh;function Nba(t,e,n){if(!t.props.bounds)return[e,n];let{bounds:r}=t.props;r=typeof r=="string"?r:$ba(r);const a=xat(t);if(typeof r=="string"){const{ownerDocument:o}=a,s=o.defaultView;let l;if(r==="parent"?l=a.parentNode:l=o.querySelector(r),!(l instanceof s.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const c=l,u=s.getComputedStyle(a),d=s.getComputedStyle(c);r={left:-a.offsetLeft+(0,cy.int)(d.paddingLeft)+(0,cy.int)(u.marginLeft),top:-a.offsetTop+(0,cy.int)(d.paddingTop)+(0,cy.int)(u.marginTop),right:(0,tj.innerWidth)(c)-(0,tj.outerWidth)(a)-a.offsetLeft+(0,cy.int)(d.paddingRight)-(0,cy.int)(u.marginRight),bottom:(0,tj.innerHeight)(c)-(0,tj.outerHeight)(a)-a.offsetTop+(0,cy.int)(d.paddingBottom)-(0,cy.int)(u.marginBottom)}}return(0,cy.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,cy.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,cy.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,cy.isNum)(r.top)&&(n=Math.max(n,r.top)),[e,n]}function Iba(t,e,n){const r=Math.round(e/t[0])*t[0],a=Math.round(n/t[1])*t[1];return[r,a]}function Pba(t){return t.props.axis==="both"||t.props.axis==="x"}function Oba(t){return t.props.axis==="both"||t.props.axis==="y"}function Lba(t,e,n){const r=typeof e=="number"?(0,tj.getTouch)(t,e):null;if(typeof e=="number"&&!r)return null;const a=xat(n),o=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,tj.offsetXYFromParent)(r||t,o,n.props.scale)}function Bba(t,e,n){const r=!(0,cy.isNum)(t.lastX),a=xat(t);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:a,deltaX:e-t.lastX,deltaY:n-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:n}}function Dba(t,e){const n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}}function $ba(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}function xat(t){const e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}var dTe={},hTe={};Object.defineProperty(hTe,"__esModule",{value:!0});hTe.default=Fba;function Fba(){}Object.defineProperty(dTe,"__esModule",{value:!0});dTe.default=void 0;var lBe=Hba(Y),TA=Eat(Xy),jba=Eat(Dy),Hg=Eh,pI=wC,cBe=SC,Eq=Eat(hTe);function Eat(t){return t&&t.__esModule?t:{default:t}}function ypn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ypn=function(r){return r?n:e})(t)}function Hba(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ypn(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function h0(t,e,n){return e=Uba(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uba(t){var e=zba(t,"string");return typeof e=="symbol"?e:String(e)}function zba(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const CS={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let mI=CS.mouse,fTe=class extends lBe.Component{constructor(){super(...arguments),h0(this,"dragging",!1),h0(this,"lastX",NaN),h0(this,"lastY",NaN),h0(this,"touchIdentifier",null),h0(this,"mounted",!1),h0(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,Hg.matchesSelectorAndParentsTo)(e.target,this.props.handle,n)||this.props.cancel&&(0,Hg.matchesSelectorAndParentsTo)(e.target,this.props.cancel,n))return;e.type==="touchstart"&&e.preventDefault();const a=(0,Hg.getTouchIdentifier)(e);this.touchIdentifier=a;const o=(0,pI.getControlPosition)(e,a,this);if(o==null)return;const{x:s,y:l}=o,c=(0,pI.createCoreData)(this,s,l);(0,Eq.default)("DraggableCore: handleDragStart: %j",c),(0,Eq.default)("calling",this.props.onStart),!(this.props.onStart(e,c)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Hg.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=l,(0,Hg.addEvent)(r,mI.move,this.handleDrag),(0,Hg.addEvent)(r,mI.stop,this.handleDragStop))}),h0(this,"handleDrag",e=>{const n=(0,pI.getControlPosition)(e,this.touchIdentifier,this);if(n==null)return;let{x:r,y:a}=n;if(Array.isArray(this.props.grid)){let l=r-this.lastX,c=a-this.lastY;if([l,c]=(0,pI.snapToGrid)(this.props.grid,l,c),!l&&!c)return;r=this.lastX+l,a=this.lastY+c}const o=(0,pI.createCoreData)(this,r,a);if((0,Eq.default)("DraggableCore: handleDrag: %j",o),this.props.onDrag(e,o)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const c=document.createEvent("MouseEvents");c.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(c)}return}this.lastX=r,this.lastY=a}),h0(this,"handleDragStop",e=>{if(!this.dragging)return;const n=(0,pI.getControlPosition)(e,this.touchIdentifier,this);if(n==null)return;let{x:r,y:a}=n;if(Array.isArray(this.props.grid)){let c=r-this.lastX||0,u=a-this.lastY||0;[c,u]=(0,pI.snapToGrid)(this.props.grid,c,u),r=this.lastX+c,a=this.lastY+u}const o=(0,pI.createCoreData)(this,r,a);if(this.props.onStop(e,o)===!1||this.mounted===!1)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,Hg.removeUserSelectStyles)(l.ownerDocument),(0,Eq.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,Eq.default)("DraggableCore: Removing handlers"),(0,Hg.removeEvent)(l.ownerDocument,mI.move,this.handleDrag),(0,Hg.removeEvent)(l.ownerDocument,mI.stop,this.handleDragStop))}),h0(this,"onMouseDown",e=>(mI=CS.mouse,this.handleDragStart(e))),h0(this,"onMouseUp",e=>(mI=CS.mouse,this.handleDragStop(e))),h0(this,"onTouchStart",e=>(mI=CS.touch,this.handleDragStart(e))),h0(this,"onTouchEnd",e=>(mI=CS.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,Hg.addEvent)(e,CS.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:n}=e;(0,Hg.removeEvent)(n,CS.mouse.move,this.handleDrag),(0,Hg.removeEvent)(n,CS.touch.move,this.handleDrag),(0,Hg.removeEvent)(n,CS.mouse.stop,this.handleDragStop),(0,Hg.removeEvent)(n,CS.touch.stop,this.handleDragStop),(0,Hg.removeEvent)(e,CS.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Hg.removeUserSelectStyles)(n)}}findDOMNode(){var e,n;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:jba.default.findDOMNode(this)}render(){return lBe.cloneElement(lBe.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};dTe.default=fTe;h0(fTe,"displayName","DraggableCore");h0(fTe,"propTypes",{allowAnyClick:TA.default.bool,children:TA.default.node.isRequired,disabled:TA.default.bool,enableUserSelectHack:TA.default.bool,offsetParent:function(t,e){if(t[e]&&t[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:TA.default.arrayOf(TA.default.number),handle:TA.default.string,cancel:TA.default.string,nodeRef:TA.default.object,onStart:TA.default.func,onDrag:TA.default.func,onStop:TA.default.func,onMouseDown:TA.default.func,scale:TA.default.number,className:cBe.dontSetMe,style:cBe.dontSetMe,transform:cBe.dontSetMe});h0(fTe,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var e=f(Y),n=d(Xy),r=d(Dy),a=d(toe),o=Eh,s=wC,l=SC,c=d(dTe),u=d(hTe);function d(y){return y&&y.__esModule?y:{default:y}}function h(y){if(typeof WeakMap!="function")return null;var S=new WeakMap,x=new WeakMap;return(h=function(w){return w?x:S})(y)}function f(y,S){if(!S&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var x=h(S);if(x&&x.has(y))return x.get(y);var w={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var R=_?Object.getOwnPropertyDescriptor(y,C):null;R&&(R.get||R.set)?Object.defineProperty(w,C,R):w[C]=y[C]}return w.default=y,x&&x.set(y,w),w}function p(){return p=Object.assign?Object.assign.bind():function(y){for(var S=1;S<arguments.length;S++){var x=arguments[S];for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(y[w]=x[w])}return y},p.apply(this,arguments)}function m(y,S,x){return S=g(S),S in y?Object.defineProperty(y,S,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[S]=x,y}function g(y){var S=v(y,"string");return typeof S=="symbol"?S:String(S)}function v(y,S){if(typeof y!="object"||y===null)return y;var x=y[Symbol.toPrimitive];if(x!==void 0){var w=x.call(y,S||"default");if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(y)}class A extends e.Component{static getDerivedStateFromProps(S,x){let{position:w}=S,{prevPropsPosition:_}=x;return w&&(!_||w.x!==_.x||w.y!==_.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:_}),{x:w.x,y:w.y,prevPropsPosition:{...w}}):null}constructor(S){super(S),m(this,"onDragStart",(x,w)=>{if((0,u.default)("Draggable: onDragStart: %j",w),this.props.onStart(x,(0,s.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(x,w)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",w);const _=(0,s.createDraggableData)(this,w),C={x:_.x,y:_.y,slackX:0,slackY:0};if(this.props.bounds){const{x:k,y:P}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[N,L]=(0,s.getBoundPosition)(this,C.x,C.y);C.x=N,C.y=L,C.slackX=this.state.slackX+(k-C.x),C.slackY=this.state.slackY+(P-C.y),_.x=C.x,_.y=C.y,_.deltaX=C.x-this.state.x,_.deltaY=C.y-this.state.y}if(this.props.onDrag(x,_)===!1)return!1;this.setState(C)}),m(this,"onDragStop",(x,w)=>{if(!this.state.dragging||this.props.onStop(x,(0,s.createDraggableData)(this,w))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",w);const C={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:k,y:P}=this.props.position;C.x=k,C.y=P}this.setState(C)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var S,x;return(S=(x=this.props)===null||x===void 0||(x=x.nodeRef)===null||x===void 0?void 0:x.current)!==null&&S!==void 0?S:r.default.findDOMNode(this)}render(){const{axis:S,bounds:x,children:w,defaultPosition:_,defaultClassName:C,defaultClassNameDragging:R,defaultClassNameDragged:k,position:P,positionOffset:N,scale:L,...I}=this.props;let b={},T=null;const D=!!!P||this.state.dragging,B=P||_,j={x:(0,s.canDragX)(this)&&D?this.state.x:B.x,y:(0,s.canDragY)(this)&&D?this.state.y:B.y};this.state.isElementSVG?T=(0,o.createSVGTransform)(j,N):b=(0,o.createCSSTransform)(j,N);const H=(0,a.default)(w.props.className||"",C,{[R]:this.state.dragging,[k]:this.state.dragged});return e.createElement(c.default,p({},I,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(w),{className:H,style:{...w.props.style,...b},transform:T}))}}t.default=A,m(A,"displayName","Draggable"),m(A,"propTypes",{...c.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),m(A,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(hpn);const{default:bpn,DraggableCore:Gba}=hpn;uTe.exports=bpn;uTe.exports.default=bpn;uTe.exports.DraggableCore=Gba;var Sat=uTe.exports;const Vba=Li(Sat);var pTe={exports:{}},Voe={},wat={};wat.__esModule=!0;wat.cloneElement=Jba;var Kba=Wba(Y);function Wba(t){return t&&t.__esModule?t:{default:t}}function Ykt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Jkt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ykt(Object(n),!0).forEach(function(r){Qba(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ykt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Qba(t,e,n){return e=qba(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qba(t){var e=Yba(t,"string");return typeof e=="symbol"?e:String(e)}function Yba(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jba(t,e){return e.style&&t.props.style&&(e.style=Jkt(Jkt({},t.props.style),e.style)),e.className&&t.props.className&&(e.className=t.props.className+" "+e.className),Kba.default.cloneElement(t,e)}var Koe={};Koe.__esModule=!0;Koe.resizableProps=void 0;var rs=Zba(Xy);function Zba(t){return t&&t.__esModule?t:{default:t}}var Xba={axis:rs.default.oneOf(["both","x","y","none"]),className:rs.default.string,children:rs.default.element.isRequired,draggableOpts:rs.default.shape({allowAnyClick:rs.default.bool,cancel:rs.default.string,children:rs.default.node,disabled:rs.default.bool,enableUserSelectHack:rs.default.bool,offsetParent:rs.default.node,grid:rs.default.arrayOf(rs.default.number),handle:rs.default.string,nodeRef:rs.default.object,onStart:rs.default.func,onDrag:rs.default.func,onStop:rs.default.func,onMouseDown:rs.default.func,scale:rs.default.number}),height:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=n[0];if(a.axis==="both"||a.axis==="y"){var o;return(o=rs.default.number).isRequired.apply(o,n)}return rs.default.number.apply(rs.default,n)},handle:rs.default.oneOfType([rs.default.node,rs.default.func]),handleSize:rs.default.arrayOf(rs.default.number),lockAspectRatio:rs.default.bool,maxConstraints:rs.default.arrayOf(rs.default.number),minConstraints:rs.default.arrayOf(rs.default.number),onResizeStop:rs.default.func,onResizeStart:rs.default.func,onResize:rs.default.func,resizeHandles:rs.default.arrayOf(rs.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:rs.default.number,width:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=n[0];if(a.axis==="both"||a.axis==="x"){var o;return(o=rs.default.number).isRequired.apply(o,n)}return rs.default.number.apply(rs.default,n)}};Koe.resizableProps=Xba;Voe.__esModule=!0;Voe.default=void 0;var Sq=ixa(Y),exa=Sat,txa=wat,nxa=Koe,rxa=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function xpn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(xpn=function(a){return a?n:e})(t)}function ixa(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=xpn(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function TVe(){return TVe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},TVe.apply(this,arguments)}function axa(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,o;for(o=0;o<r.length;o++)a=r[o],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function Zkt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function uBe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zkt(Object(n),!0).forEach(function(r){oxa(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zkt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oxa(t,e,n){return e=sxa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sxa(t){var e=lxa(t,"string");return typeof e=="symbol"?e:String(e)}function lxa(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cxa(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,CVe(t,e)}function CVe(t,e){return CVe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CVe(t,e)}var _at=function(t){cxa(e,t);function e(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=e.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(a,o){var s=this.props,l=s.minConstraints,c=s.maxConstraints,u=s.lockAspectRatio;if(!l&&!c&&!u)return[a,o];if(u){var d=this.props.width/this.props.height,h=a-this.props.width,f=o-this.props.height;Math.abs(h)>Math.abs(f*d)?o=a/d:a=o*d}var p=a,m=o,g=this.slack||[0,0],v=g[0],A=g[1];return a+=v,o+=A,l&&(a=Math.max(l[0],a),o=Math.max(l[1],o)),c&&(a=Math.min(c[0],a),o=Math.min(c[1],o)),this.slack=[v+(p-a),A+(m-o)],[a,o]},n.resizeHandler=function(a,o){var s=this;return function(l,c){var u=c.node,d=c.deltaX,h=c.deltaY;a==="onResizeStart"&&s.resetData();var f=(s.props.axis==="both"||s.props.axis==="x")&&o!=="n"&&o!=="s",p=(s.props.axis==="both"||s.props.axis==="y")&&o!=="e"&&o!=="w";if(!(!f&&!p)){var m=o[0],g=o[o.length-1],v=u.getBoundingClientRect();if(s.lastHandleRect!=null){if(g==="w"){var A=v.left-s.lastHandleRect.left;d+=A}if(m==="n"){var y=v.top-s.lastHandleRect.top;h+=y}}s.lastHandleRect=v,g==="w"&&(d=-d),m==="n"&&(h=-h);var S=s.props.width+(f?d/s.props.transformScale:0),x=s.props.height+(p?h/s.props.transformScale:0),w=s.runConstraints(S,x);S=w[0],x=w[1];var _=S!==s.props.width||x!==s.props.height,C=typeof s.props[a]=="function"?s.props[a]:null,R=a==="onResize"&&!_;C&&!R&&(l.persist==null||l.persist(),C(l,{node:u,size:{width:S,height:x},handle:o})),a==="onResizeStop"&&s.resetData()}}},n.renderResizeHandle=function(a,o){var s=this.props.handle;if(!s)return Sq.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:o});if(typeof s=="function")return s(a,o);var l=typeof s.type=="string",c=uBe({ref:o},l?{}:{handleAxis:a});return Sq.cloneElement(s,c)},n.render=function(){var a=this,o=this.props,s=o.children,l=o.className,c=o.draggableOpts;o.width,o.height,o.handle,o.handleSize,o.lockAspectRatio,o.axis,o.minConstraints,o.maxConstraints,o.onResize,o.onResizeStop,o.onResizeStart;var u=o.resizeHandles;o.transformScale;var d=axa(o,rxa);return(0,txa.cloneElement)(s,uBe(uBe({},d),{},{className:(l?l+" ":"")+"react-resizable",children:[].concat(s.props.children,u.map(function(h){var f,p=(f=a.handleRefs[h])!=null?f:a.handleRefs[h]=Sq.createRef();return Sq.createElement(exa.DraggableCore,TVe({},c,{nodeRef:p,key:"resizableHandle-"+h,onStop:a.resizeHandler("onResizeStop",h),onStart:a.resizeHandler("onResizeStart",h),onDrag:a.resizeHandler("onResize",h)}),a.renderResizeHandle(h,p))}))}))},e}(Sq.Component);Voe.default=_at;_at.propTypes=nxa.resizableProps;_at.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var mTe={};mTe.__esModule=!0;mTe.default=void 0;var dBe=pxa(Y),uxa=Epn(Xy),dxa=Epn(Voe),hxa=Koe,fxa=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function Epn(t){return t&&t.__esModule?t:{default:t}}function Spn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Spn=function(a){return a?n:e})(t)}function pxa(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Spn(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function kVe(){return kVe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kVe.apply(this,arguments)}function Xkt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function c1e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xkt(Object(n),!0).forEach(function(r){mxa(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xkt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mxa(t,e,n){return e=gxa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gxa(t){var e=vxa(t,"string");return typeof e=="symbol"?e:String(e)}function vxa(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Axa(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,o;for(o=0;o<r.length;o++)a=r[o],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function yxa(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,RVe(t,e)}function RVe(t,e){return RVe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},RVe(t,e)}var wpn=function(t){yxa(e,t);function e(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(l,c){var u=c.size;r.props.onResize?(l.persist==null||l.persist(),r.setState(u,function(){return r.props.onResize&&r.props.onResize(l,c)})):r.setState(u)},r}e.getDerivedStateFromProps=function(a,o){return o.propsWidth!==a.width||o.propsHeight!==a.height?{width:a.width,height:a.height,propsWidth:a.width,propsHeight:a.height}:null};var n=e.prototype;return n.render=function(){var a=this.props,o=a.handle,s=a.handleSize;a.onResize;var l=a.onResizeStart,c=a.onResizeStop,u=a.draggableOpts,d=a.minConstraints,h=a.maxConstraints,f=a.lockAspectRatio,p=a.axis;a.width,a.height;var m=a.resizeHandles,g=a.style,v=a.transformScale,A=Axa(a,fxa);return dBe.createElement(dxa.default,{axis:p,draggableOpts:u,handle:o,handleSize:s,height:this.state.height,lockAspectRatio:f,maxConstraints:h,minConstraints:d,onResizeStart:l,onResize:this.onResize,onResizeStop:c,resizeHandles:m,transformScale:v,width:this.state.width},dBe.createElement("div",kVe({},A,{style:c1e(c1e({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},e}(dBe.Component);mTe.default=wpn;wpn.propTypes=c1e(c1e({},hxa.resizableProps),{},{children:uxa.default.element});pTe.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};pTe.exports.Resizable=Voe.default;pTe.exports.ResizableBox=mTe.default;var bxa=pTe.exports,rM={};Object.defineProperty(rM,"__esModule",{value:!0});rM.resizeHandleType=rM.resizeHandleAxesType=rM.default=void 0;var ps=_pn(Xy),xxa=_pn(Y);function _pn(t){return t&&t.__esModule?t:{default:t}}const Exa=rM.resizeHandleAxesType=ps.default.arrayOf(ps.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),Sxa=rM.resizeHandleType=ps.default.oneOfType([ps.default.node,ps.default.func]);rM.default={className:ps.default.string,style:ps.default.object,width:ps.default.number,autoSize:ps.default.bool,cols:ps.default.number,draggableCancel:ps.default.string,draggableHandle:ps.default.string,verticalCompact:function(t){t.verticalCompact},compactType:ps.default.oneOf(["vertical","horizontal"]),layout:function(t){var e=t.layout;e!==void 0&&Ls.validateLayout(e,"layout")},margin:ps.default.arrayOf(ps.default.number),containerPadding:ps.default.arrayOf(ps.default.number),rowHeight:ps.default.number,maxRows:ps.default.number,isBounded:ps.default.bool,isDraggable:ps.default.bool,isResizable:ps.default.bool,allowOverlap:ps.default.bool,preventCollision:ps.default.bool,useCSSTransforms:ps.default.bool,transformScale:ps.default.number,isDroppable:ps.default.bool,resizeHandles:Exa,resizeHandle:Sxa,onLayoutChange:ps.default.func,onDragStart:ps.default.func,onDrag:ps.default.func,onDragStop:ps.default.func,onResizeStart:ps.default.func,onResize:ps.default.func,onResizeStop:ps.default.func,onDrop:ps.default.func,droppingItem:ps.default.shape({i:ps.default.string.isRequired,w:ps.default.number.isRequired,h:ps.default.number.isRequired}),children:function(t,e){const n=t[e],r={};xxa.default.Children.forEach(n,function(a){if((a==null?void 0:a.key)!=null){if(r[a.key])throw new Error('Duplicate child key "'+a.key+'" found! This will cause problems in ReactGridLayout.');r[a.key]=!0}})},innerRef:ps.default.any};Object.defineProperty(cTe,"__esModule",{value:!0});cTe.default=void 0;var D$=Tat(Y),ic=Tat(Xy),wxa=Sat,_xa=bxa,$$=Ls,Pm=EC,eRt=rM,Txa=Tat(uat);function Tat(t){return t&&t.__esModule?t:{default:t}}function mT(t,e,n){return e=Cxa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cxa(t){var e=kxa(t,"string");return typeof e=="symbol"?e:String(e)}function kxa(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Cat extends D$.default.Component{constructor(){super(...arguments),mT(this,"state",{resizing:null,dragging:null,className:""}),mT(this,"elementRef",D$.default.createRef()),mT(this,"onDragStart",(e,n)=>{let{node:r}=n;const{onDragStart:a,transformScale:o}=this.props;if(!a)return;const s={top:0,left:0},{offsetParent:l}=r;if(!l)return;const c=l.getBoundingClientRect(),u=r.getBoundingClientRect(),d=u.left/o,h=c.left/o,f=u.top/o,p=c.top/o;s.left=d-h+l.scrollLeft,s.top=f-p+l.scrollTop,this.setState({dragging:s});const{x:m,y:g}=(0,Pm.calcXY)(this.getPositionParams(),s.top,s.left,this.props.w,this.props.h);return a.call(this,this.props.i,m,g,{e,node:r,newPosition:s})}),mT(this,"onDrag",(e,n)=>{let{node:r,deltaX:a,deltaY:o}=n;const{onDrag:s}=this.props;if(!s)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let l=this.state.dragging.top+o,c=this.state.dragging.left+a;const{isBounded:u,i:d,w:h,h:f,containerWidth:p}=this.props,m=this.getPositionParams();if(u){const{offsetParent:S}=r;if(S){const{margin:x,rowHeight:w,containerPadding:_}=this.props,C=S.clientHeight-(0,Pm.calcGridItemWHPx)(f,w,x[1]);l=(0,Pm.clamp)(l-_[1],0,C);const R=(0,Pm.calcGridColWidth)(m),k=p-(0,Pm.calcGridItemWHPx)(h,R,x[0]);c=(0,Pm.clamp)(c-_[0],0,k)}}const g={top:l,left:c};this.setState({dragging:g});const{containerPadding:v}=this.props,{x:A,y}=(0,Pm.calcXY)(m,l-v[1],c-v[0],h,f);return s.call(this,d,A,y,{e,node:r,newPosition:g})}),mT(this,"onDragStop",(e,n)=>{let{node:r}=n;const{onDragStop:a}=this.props;if(!a)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:o,h:s,i:l,containerPadding:c}=this.props,{left:u,top:d}=this.state.dragging,h={top:d,left:u};this.setState({dragging:null});const{x:f,y:p}=(0,Pm.calcXY)(this.getPositionParams(),d-c[1],u-c[0],o,s);return a.call(this,l,f,p,{e,node:r,newPosition:h})}),mT(this,"onResizeStop",(e,n,r)=>this.onResizeHandler(e,n,r,"onResizeStop")),mT(this,"onResizeStart",(e,n,r)=>this.onResizeHandler(e,n,r,"onResizeStart")),mT(this,"onResize",(e,n,r)=>this.onResizeHandler(e,n,r,"onResize"))}shouldComponentUpdate(e,n){if(this.props.children!==e.children||this.props.droppingPosition!==e.droppingPosition)return!0;const r=(0,Pm.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),a=(0,Pm.calcGridItemPosition)(this.getPositionParams(e),e.x,e.y,e.w,e.h,n);return!(0,$$.fastPositionEqual)(r,a)||this.props.useCSSTransforms!==e.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(e){this.moveDroppingItem(e)}moveDroppingItem(e){const{droppingPosition:n}=this.props;if(!n)return;const r=this.elementRef.current;if(!r)return;const a=e.droppingPosition||{left:0,top:0},{dragging:o}=this.state,s=o&&n.left!==a.left||n.top!==a.top;if(!o)this.onDragStart(n.e,{node:r,deltaX:n.left,deltaY:n.top});else if(s){const l=n.left-o.left,c=n.top-o.top;this.onDrag(n.e,{node:r,deltaX:l,deltaY:c})}}getPositionParams(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}createStyle(e){const{usePercentages:n,containerWidth:r,useCSSTransforms:a}=this.props;let o;return a?o=(0,$$.setTransform)(e):(o=(0,$$.setTopLeft)(e),n&&(o.left=(0,$$.perc)(e.left/r),o.width=(0,$$.perc)(e.width/r))),o}mixinDraggable(e,n){return D$.default.createElement(wxa.DraggableCore,{disabled:!n,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}curryResizeHandler(e,n){return(r,a)=>n(r,a,e)}mixinResizable(e,n,r){const{cols:a,minW:o,minH:s,maxW:l,maxH:c,transformScale:u,resizeHandles:d,resizeHandle:h}=this.props,f=this.getPositionParams(),p=(0,Pm.calcGridItemPosition)(f,0,0,a,0).width,m=(0,Pm.calcGridItemPosition)(f,0,0,o,s),g=(0,Pm.calcGridItemPosition)(f,0,0,l,c),v=[m.width,m.height],A=[Math.min(g.width,p),Math.min(g.height,1/0)];return D$.default.createElement(_xa.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:v,maxConstraints:A,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:u,resizeHandles:d,handle:h},e)}onResizeHandler(e,n,r,a){let{node:o,size:s,handle:l}=n;const c=this.props[a];if(!c)return;const{x:u,y:d,i:h,maxH:f,minH:p,containerWidth:m}=this.props,{minW:g,maxW:v}=this.props;let A=s;o&&(A=(0,$$.resizeItemInDirection)(l,r,s,m),this.setState({resizing:a==="onResizeStop"?null:A}));let{w:y,h:S}=(0,Pm.calcWH)(this.getPositionParams(),A.width,A.height,u,d,l);y=(0,Pm.clamp)(y,Math.max(g,1),v),S=(0,Pm.clamp)(S,p,f),c.call(this,h,y,S,{e,node:o,size:A,handle:l})}render(){const{x:e,y:n,w:r,h:a,isDraggable:o,isResizable:s,droppingPosition:l,useCSSTransforms:c}=this.props,u=(0,Pm.calcGridItemPosition)(this.getPositionParams(),e,n,r,a,this.state),d=D$.default.Children.only(this.props.children);let h=D$.default.cloneElement(d,{ref:this.elementRef,className:(0,Txa.default)("react-grid-item",d.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":o,"react-draggable-dragging":!!this.state.dragging,dropping:!!l,cssTransforms:c}),style:{...this.props.style,...d.props.style,...this.createStyle(u)}});return h=this.mixinResizable(h,u,s),h=this.mixinDraggable(h,o),h}}cTe.default=Cat;mT(Cat,"propTypes",{children:ic.default.element,cols:ic.default.number.isRequired,containerWidth:ic.default.number.isRequired,rowHeight:ic.default.number.isRequired,margin:ic.default.array.isRequired,maxRows:ic.default.number.isRequired,containerPadding:ic.default.array.isRequired,x:ic.default.number.isRequired,y:ic.default.number.isRequired,w:ic.default.number.isRequired,h:ic.default.number.isRequired,minW:function(t,e){const n=t[e];if(typeof n!="number")return new Error("minWidth not Number");if(n>t.w||n>t.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(t,e){const n=t[e];if(typeof n!="number")return new Error("maxWidth not Number");if(n<t.w||n<t.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(t,e){const n=t[e];if(typeof n!="number")return new Error("minHeight not Number");if(n>t.h||n>t.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(t,e){const n=t[e];if(typeof n!="number")return new Error("maxHeight not Number");if(n<t.h||n<t.minH)return new Error("maxHeight smaller than item height/minHeight")},i:ic.default.string.isRequired,resizeHandles:eRt.resizeHandleAxesType,resizeHandle:eRt.resizeHandleType,onDragStop:ic.default.func,onDragStart:ic.default.func,onDrag:ic.default.func,onResizeStop:ic.default.func,onResizeStart:ic.default.func,onResize:ic.default.func,isDraggable:ic.default.bool.isRequired,isResizable:ic.default.bool.isRequired,isBounded:ic.default.bool.isRequired,static:ic.default.bool,useCSSTransforms:ic.default.bool.isRequired,transformScale:ic.default.number,className:ic.default.string,handle:ic.default.string,cancel:ic.default.string,droppingPosition:ic.default.shape({e:ic.default.object.isRequired,left:ic.default.number.isRequired,top:ic.default.number.isRequired})});mT(Cat,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1});Object.defineProperty(Goe,"__esModule",{value:!0});Goe.default=void 0;var C4=Ixa(Y),hBe=cat,Rxa=kat(uat),go=Ls,Mxa=EC,tRt=kat(cTe),Nxa=kat(rM);function kat(t){return t&&t.__esModule?t:{default:t}}function Tpn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Tpn=function(r){return r?n:e})(t)}function Ixa(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Tpn(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function Qg(t,e,n){return e=Pxa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pxa(t){var e=Oxa(t,"string");return typeof e=="symbol"?e:String(e)}function Oxa(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const nRt="react-grid-layout";let Cpn=!1;try{Cpn=/firefox/i.test(navigator.userAgent)}catch{}class gTe extends C4.Component{constructor(){super(...arguments),Qg(this,"state",{activeDrag:null,layout:(0,go.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,go.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),Qg(this,"dragEnterCounter",0),Qg(this,"onDragStart",(e,n,r,a)=>{let{e:o,node:s}=a;const{layout:l}=this.state,c=(0,go.getLayoutItem)(l,e);if(!c)return;const u={w:c.w,h:c.h,x:c.x,y:c.y,placeholder:!0,i:e};return this.setState({oldDragItem:(0,go.cloneLayoutItem)(c),oldLayout:l,activeDrag:u}),this.props.onDragStart(l,c,c,null,o,s)}),Qg(this,"onDrag",(e,n,r,a)=>{let{e:o,node:s}=a;const{oldDragItem:l}=this.state;let{layout:c}=this.state;const{cols:u,allowOverlap:d,preventCollision:h}=this.props,f=(0,go.getLayoutItem)(c,e);if(!f)return;const p={w:f.w,h:f.h,x:f.x,y:f.y,placeholder:!0,i:e},m=!0;c=(0,go.moveElement)(c,f,n,r,m,h,(0,go.compactType)(this.props),u,d),this.props.onDrag(c,l,f,p,o,s),this.setState({layout:d?c:(0,go.compact)(c,(0,go.compactType)(this.props),u),activeDrag:p})}),Qg(this,"onDragStop",(e,n,r,a)=>{let{e:o,node:s}=a;if(!this.state.activeDrag)return;const{oldDragItem:l}=this.state;let{layout:c}=this.state;const{cols:u,preventCollision:d,allowOverlap:h}=this.props,f=(0,go.getLayoutItem)(c,e);if(!f)return;const p=!0;c=(0,go.moveElement)(c,f,n,r,p,d,(0,go.compactType)(this.props),u,h);const m=h?c:(0,go.compact)(c,(0,go.compactType)(this.props),u);this.props.onDragStop(m,l,f,null,o,s);const{oldLayout:g}=this.state;this.setState({activeDrag:null,layout:m,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(m,g)}),Qg(this,"onResizeStart",(e,n,r,a)=>{let{e:o,node:s}=a;const{layout:l}=this.state,c=(0,go.getLayoutItem)(l,e);c&&(this.setState({oldResizeItem:(0,go.cloneLayoutItem)(c),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(l,c,c,null,o,s))}),Qg(this,"onResize",(e,n,r,a)=>{let{e:o,node:s,size:l,handle:c}=a;const{oldResizeItem:u}=this.state,{layout:d}=this.state,{cols:h,preventCollision:f,allowOverlap:p}=this.props;let m=!1,g,v,A;const[y,S]=(0,go.withLayoutItem)(d,e,w=>{let _;return v=w.x,A=w.y,["sw","w","nw","n","ne"].indexOf(c)!==-1&&(["sw","nw","w"].indexOf(c)!==-1&&(v=w.x+(w.w-n),n=w.x!==v&&v<0?w.w:n,v=v<0?0:v),["ne","n","nw"].indexOf(c)!==-1&&(A=w.y+(w.h-r),r=w.y!==A&&A<0?w.h:r,A=A<0?0:A),m=!0),f&&!p&&(_=(0,go.getAllCollisions)(d,{...w,w:n,h:r,x:v,y:A}).filter(R=>R.i!==w.i).length>0,_&&(A=w.y,r=w.h,v=w.x,n=w.w,m=!1)),w.w=n,w.h=r,w});if(!S)return;g=y,m&&(g=(0,go.moveElement)(y,S,v,A,!0,this.props.preventCollision,(0,go.compactType)(this.props),h,p));const x={w:S.w,h:S.h,x:S.x,y:S.y,static:!0,i:e};this.props.onResize(g,u,S,x,o,s),this.setState({layout:p?g:(0,go.compact)(g,(0,go.compactType)(this.props),h),activeDrag:x})}),Qg(this,"onResizeStop",(e,n,r,a)=>{let{e:o,node:s}=a;const{layout:l,oldResizeItem:c}=this.state,{cols:u,allowOverlap:d}=this.props,h=(0,go.getLayoutItem)(l,e),f=d?l:(0,go.compact)(l,(0,go.compactType)(this.props),u);this.props.onResizeStop(f,c,h,null,o,s);const{oldLayout:p}=this.state;this.setState({activeDrag:null,layout:f,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(f,p)}),Qg(this,"onDragOver",e=>{var y;if(e.preventDefault(),e.stopPropagation(),Cpn&&!((y=e.nativeEvent.target)!=null&&y.classList.contains(nRt)))return!1;const{droppingItem:n,onDropDragOver:r,margin:a,cols:o,rowHeight:s,maxRows:l,width:c,containerPadding:u,transformScale:d}=this.props,h=r==null?void 0:r(e);if(h===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const f={...n,...h},{layout:p}=this.state,m=e.currentTarget.getBoundingClientRect(),g=e.clientX-m.left,v=e.clientY-m.top,A={left:g/d,top:v/d,e};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:S,top:x}=this.state.droppingPosition;(S!=g||x!=v)&&this.setState({droppingPosition:A})}}else{const S={cols:o,margin:a,maxRows:l,rowHeight:s,containerWidth:c,containerPadding:u||a},x=(0,Mxa.calcXY)(S,v,g,f.w,f.h);this.setState({droppingDOMNode:C4.createElement("div",{key:f.i}),droppingPosition:A,layout:[...p,{...f,x:x.x,y:x.y,static:!1,isDraggable:!0}]})}}),Qg(this,"removeDroppingPlaceholder",()=>{const{droppingItem:e,cols:n}=this.props,{layout:r}=this.state,a=(0,go.compact)(r.filter(o=>o.i!==e.i),(0,go.compactType)(this.props),n,this.props.allowOverlap);this.setState({layout:a,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),Qg(this,"onDragLeave",e=>{e.preventDefault(),e.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),Qg(this,"onDragEnter",e=>{e.preventDefault(),e.stopPropagation(),this.dragEnterCounter++}),Qg(this,"onDrop",e=>{e.preventDefault(),e.stopPropagation();const{droppingItem:n}=this.props,{layout:r}=this.state,a=r.find(o=>o.i===n.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(r,a,e)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(e,n){let r;return n.activeDrag?null:(!(0,hBe.deepEqual)(e.layout,n.propsLayout)||e.compactType!==n.compactType?r=e.layout:(0,go.childrenEqual)(e.children,n.children)||(r=n.layout),r?{layout:(0,go.synchronizeLayoutWithChildren)(r,e.children,e.cols,(0,go.compactType)(e),e.allowOverlap),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null)}shouldComponentUpdate(e,n){return this.props.children!==e.children||!(0,go.fastRGLPropsEqual)(this.props,e,hBe.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(e,n){if(!this.state.activeDrag){const r=this.state.layout,a=n.layout;this.onLayoutMaybeChanged(r,a)}}containerHeight(){if(!this.props.autoSize)return;const e=(0,go.bottom)(this.state.layout),n=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+n*2+"px"}onLayoutMaybeChanged(e,n){n||(n=this.state.layout),(0,hBe.deepEqual)(n,e)||this.props.onLayoutChange(e)}placeholder(){const{activeDrag:e}=this.state;if(!e)return null;const{width:n,cols:r,margin:a,containerPadding:o,rowHeight:s,maxRows:l,useCSSTransforms:c,transformScale:u}=this.props;return C4.createElement(tRt.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:n,cols:r,margin:a,containerPadding:o||a,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:u},C4.createElement("div",null))}processGridItem(e,n){if(!e||!e.key)return;const r=(0,go.getLayoutItem)(this.state.layout,String(e.key));if(!r)return null;const{width:a,cols:o,margin:s,containerPadding:l,rowHeight:c,maxRows:u,isDraggable:d,isResizable:h,isBounded:f,useCSSTransforms:p,transformScale:m,draggableCancel:g,draggableHandle:v,resizeHandles:A,resizeHandle:y}=this.props,{mounted:S,droppingPosition:x}=this.state,w=typeof r.isDraggable=="boolean"?r.isDraggable:!r.static&&d,_=typeof r.isResizable=="boolean"?r.isResizable:!r.static&&h,C=r.resizeHandles||A,R=w&&f&&r.isBounded!==!1;return C4.createElement(tRt.default,{containerWidth:a,cols:o,margin:s,containerPadding:l||s,maxRows:u,rowHeight:c,cancel:g,handle:v,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:w,isResizable:_,isBounded:R,useCSSTransforms:p&&S,usePercentages:!S,transformScale:m,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:n?x:void 0,resizeHandles:C,resizeHandle:y},e)}render(){const{className:e,style:n,isDroppable:r,innerRef:a}=this.props,o=(0,Rxa.default)(nRt,e),s={height:this.containerHeight(),...n};return C4.createElement("div",{ref:a,className:o,style:s,onDrop:r?this.onDrop:go.noop,onDragLeave:r?this.onDragLeave:go.noop,onDragEnter:r?this.onDragEnter:go.noop,onDragOver:r?this.onDragOver:go.noop},C4.Children.map(this.props.children,l=>this.processGridItem(l)),r&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}Goe.default=gTe;Qg(gTe,"displayName","ReactGridLayout");Qg(gTe,"propTypes",Nxa.default);Qg(gTe,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:go.noop,onDragStart:go.noop,onDrag:go.noop,onDragStop:go.noop,onResizeStart:go.noop,onResize:go.noop,onResizeStop:go.noop,onDrop:go.noop,onDropDragOver:go.noop});var vTe={},A9={};Object.defineProperty(A9,"__esModule",{value:!0});A9.findOrGenerateResponsiveLayout=Dxa;A9.getBreakpointFromWidth=Lxa;A9.getColsFromBreakpoint=Bxa;A9.sortBreakpoints=Rat;var Xue=Ls;function Lxa(t,e){const n=Rat(t);let r=n[0];for(let a=1,o=n.length;a<o;a++){const s=n[a];e>t[s]&&(r=s)}return r}function Bxa(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function Dxa(t,e,n,r,a,o){if(t[n])return(0,Xue.cloneLayout)(t[n]);let s=t[r];const l=Rat(e),c=l.slice(l.indexOf(n));for(let u=0,d=c.length;u<d;u++){const h=c[u];if(t[h]){s=t[h];break}}return s=(0,Xue.cloneLayout)(s||[]),(0,Xue.compact)((0,Xue.correctBounds)(s,{cols:a}),o,a)}function Rat(t){return Object.keys(t).sort(function(n,r){return t[n]-t[r]})}Object.defineProperty(vTe,"__esModule",{value:!0});vTe.default=void 0;var rRt=Fxa(Y),CA=kpn(Xy),fBe=cat,sH=Ls,k4=A9,$xa=kpn(Goe);function kpn(t){return t&&t.__esModule?t:{default:t}}function Rpn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Rpn=function(r){return r?n:e})(t)}function Fxa(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Rpn(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function MVe(){return MVe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},MVe.apply(this,arguments)}function u1e(t,e,n){return e=jxa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jxa(t){var e=Hxa(t,"string");return typeof e=="symbol"?e:String(e)}function Hxa(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const iRt=t=>Object.prototype.toString.call(t);function ede(t,e){return t==null?null:Array.isArray(t)?t:t[e]}let Mat=class extends rRt.Component{constructor(){super(...arguments),u1e(this,"state",this.generateInitialState()),u1e(this,"onLayoutChange",e=>{this.props.onLayoutChange(e,{...this.props.layouts,[this.state.breakpoint]:e})})}generateInitialState(){const{width:e,breakpoints:n,layouts:r,cols:a}=this.props,o=(0,k4.getBreakpointFromWidth)(n,e),s=(0,k4.getColsFromBreakpoint)(o,a),l=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,k4.findOrGenerateResponsiveLayout)(r,n,o,o,s,l),breakpoint:o,cols:s}}static getDerivedStateFromProps(e,n){if(!(0,fBe.deepEqual)(e.layouts,n.layouts)){const{breakpoint:r,cols:a}=n;return{layout:(0,k4.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,r,r,a,e.compactType),layouts:e.layouts}}return null}componentDidUpdate(e){(this.props.width!=e.width||this.props.breakpoint!==e.breakpoint||!(0,fBe.deepEqual)(this.props.breakpoints,e.breakpoints)||!(0,fBe.deepEqual)(this.props.cols,e.cols))&&this.onWidthChange(e)}onWidthChange(e){const{breakpoints:n,cols:r,layouts:a,compactType:o}=this.props,s=this.props.breakpoint||(0,k4.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),l=this.state.breakpoint,c=(0,k4.getColsFromBreakpoint)(s,r),u={...a};if(l!==s||e.breakpoints!==n||e.cols!==r){l in u||(u[l]=(0,sH.cloneLayout)(this.state.layout));let f=(0,k4.findOrGenerateResponsiveLayout)(u,n,s,l,c,o);f=(0,sH.synchronizeLayoutWithChildren)(f,this.props.children,c,o,this.props.allowOverlap),u[s]=f,this.props.onLayoutChange(f,u),this.props.onBreakpointChange(s,c),this.setState({breakpoint:s,layout:f,cols:c})}const d=ede(this.props.margin,s),h=ede(this.props.containerPadding,s);this.props.onWidthChange(this.props.width,d,c,h)}render(){const{breakpoint:e,breakpoints:n,cols:r,layouts:a,margin:o,containerPadding:s,onBreakpointChange:l,onLayoutChange:c,onWidthChange:u,...d}=this.props;return rRt.createElement($xa.default,MVe({},d,{margin:ede(o,this.state.breakpoint),containerPadding:ede(s,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};vTe.default=Mat;u1e(Mat,"propTypes",{breakpoint:CA.default.string,breakpoints:CA.default.object,allowOverlap:CA.default.bool,cols:CA.default.object,margin:CA.default.oneOfType([CA.default.array,CA.default.object]),containerPadding:CA.default.oneOfType([CA.default.array,CA.default.object]),layouts(t,e){if(iRt(t[e])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+iRt(t[e]));Object.keys(t[e]).forEach(n=>{if(!(n in t.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,sH.validateLayout)(t.layouts[n],"layouts."+n)})},width:CA.default.number.isRequired,onBreakpointChange:CA.default.func,onLayoutChange:CA.default.func,onWidthChange:CA.default.func});u1e(Mat,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:sH.noop,onLayoutChange:sH.noop,onWidthChange:sH.noop});var Nat={},Mpn=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(n,r){var a=t(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,a=t(r,n);~a&&r.splice(a,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a<o.length;a++){var s=o[a];n.call(r,s[1],s[0])}},e}()}(),NVe=typeof window<"u"&&typeof document<"u"&&window.document===document,d1e=function(){return typeof Wa<"u"&&Wa.Math===Math?Wa:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Uxa=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(d1e):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),zxa=2;function Gxa(t,e){var n=!1,r=!1,a=0;function o(){n&&(n=!1,t()),r&&l()}function s(){Uxa(o)}function l(){var c=Date.now();if(n){if(c-a<zxa)return;r=!0}else n=!0,r=!1,setTimeout(s,e);a=c}return l}var Vxa=20,Kxa=["top","right","bottom","left","width","height","size","weight"],Wxa=typeof MutationObserver<"u",Qxa=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Gxa(this.refresh.bind(this),Vxa)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!NVe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Wxa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!NVe||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,a=Kxa.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Npn=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t},tz=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||d1e},Ipn=ATe(0,0,0,0);function h1e(t){return parseFloat(t)||0}function aRt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,a){var o=t["border-"+a+"-width"];return r+h1e(o)},0)}function qxa(t){for(var e=["top","right","bottom","left"],n={},r=0,a=e;r<a.length;r++){var o=a[r],s=t["padding-"+o];n[o]=h1e(s)}return n}function Yxa(t){var e=t.getBBox();return ATe(0,0,e.width,e.height)}function Jxa(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Ipn;var r=tz(t).getComputedStyle(t),a=qxa(r),o=a.left+a.right,s=a.top+a.bottom,l=h1e(r.width),c=h1e(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==e&&(l-=aRt(r,"left","right")+o),Math.round(c+s)!==n&&(c-=aRt(r,"top","bottom")+s)),!Xxa(t)){var u=Math.round(l+o)-e,d=Math.round(c+s)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return ATe(a.left,a.top,l,c)}var Zxa=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof tz(t).SVGGraphicsElement}:function(t){return t instanceof tz(t).SVGElement&&typeof t.getBBox=="function"}}();function Xxa(t){return t===tz(t).document.documentElement}function eEa(t){return NVe?Zxa(t)?Yxa(t):Jxa(t):Ipn}function tEa(t){var e=t.x,n=t.y,r=t.width,a=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return Npn(s,{x:e,y:n,width:r,height:a,top:n,right:e+r,bottom:a+n,left:e}),s}function ATe(t,e,n,r){return{x:t,y:e,width:n,height:r}}var nEa=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ATe(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=eEa(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),rEa=function(){function t(e,n){var r=tEa(n);Npn(this,{target:e,contentRect:r})}return t}(),iEa=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new Mpn,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof tz(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new nEa(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof tz(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new rEa(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ppn=typeof WeakMap<"u"?new WeakMap:new Mpn,Opn=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Qxa.getInstance(),r=new iEa(e,n,this);Ppn.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Opn.prototype[t]=function(){var e;return(e=Ppn.get(this))[t].apply(e,arguments)}});var Lpn=function(){return typeof d1e.ResizeObserver<"u"?d1e.ResizeObserver:Opn}();const aEa=Object.freeze(Object.defineProperty({__proto__:null,default:Lpn},Symbol.toStringTag,{value:"Module"})),oEa=Uu(aEa);Object.defineProperty(Nat,"__esModule",{value:!0});Nat.default=pEa;var tde=uEa(Y),sEa=Iat(Xy),lEa=Iat(oEa),cEa=Iat(uat);function Iat(t){return t&&t.__esModule?t:{default:t}}function Bpn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Bpn=function(r){return r?n:e})(t)}function uEa(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Bpn(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function IVe(){return IVe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},IVe.apply(this,arguments)}function F$(t,e,n){return e=dEa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dEa(t){var e=hEa(t,"string");return typeof e=="symbol"?e:String(e)}function hEa(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const fEa="react-grid-layout";function pEa(t){var e;return e=class extends tde.Component{constructor(){super(...arguments),F$(this,"state",{width:1280}),F$(this,"elementRef",tde.createRef()),F$(this,"mounted",!1),F$(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new lEa.default(a=>{if(this.elementRef.current instanceof HTMLElement){const s=a[0].contentRect.width;this.setState({width:s})}});const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.observe(r)}componentWillUnmount(){this.mounted=!1;const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.unobserve(r),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:r,...a}=this.props;return r&&!this.mounted?tde.createElement("div",{className:(0,cEa.default)(this.props.className,fEa),style:this.props.style,ref:this.elementRef}):tde.createElement(t,IVe({innerRef:this.elementRef},a,this.state))}},F$(e,"defaultProps",{measureBeforeMount:!1}),F$(e,"propTypes",{measureBeforeMount:sEa.default.bool}),e}(function(t){t.exports=Goe.default,t.exports.utils=Ls,t.exports.calculateUtils=EC,t.exports.Responsive=vTe.default,t.exports.Responsive.utils=A9,t.exports.WidthProvider=Nat.default})(Xfn);var f1e=Xfn.exports;const mEa=gt.div`
  && {
    padding: 8px 0;
    width: 100%;
    :after {
      background-color: ${t=>t.theme.custom.white.A1};
      opacity: 0.3;
      content: '';
      display: block;
      height: 1px;
      width: 100%;
    }
    button {
      position: absolute;
      left: 0;
      bottom: 100%;
      background: transparent;
      height: 24px;
      width: 24px;
    }
  }
`,Woe=gt.div`
  .dashboardPreviewTag {
    display: ${t=>t.isLayoutEditable?"none":"flex"};
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 4px;
    .chartTag {
      font-size: ${t=>t.theme.custom.fontSize.font10};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      line-height: 12px;
      border-radius: 4px;
      padding: 4px 6px;
      white-space: nowrap;
      &.timeTag {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        line-height: 14px;
        background: ${t=>t.theme.custom.tags.A4};
        color: ${t=>t.theme.custom.white.A11};
        border: 1px solid ${t=>t.theme.custom.tags.bg5};
        svg {
          height: 14px;
        }
      }
    }
    button.refreshBtn {
      height: 20px;
      width: 20px;
      border: 0;
    }
  }
  && {
    border: ${t=>!t.hideBorder&&t.isLayoutEditable&&!t.isEditable?`1px dashed ${t.theme.custom.white.A9}`:"none"};
  }
  &&:hover {
    border: ${t=>t.isLayoutEditable&&!t.isEditable?`1px solid ${t.theme.custom.white.A9}`:"none "};
  }
  && .chartBox:hover {
    border-color: ${t=>t.isLayoutEditable?"":"transparent"};
    box-shadow: ${t=>t.isLayoutEditable?"":"none !important"};
    transform: ${t=>t.isLayoutEditable?"":"none "};
    background: ${t=>t.isLayoutEditable?"":t.theme.custom.chartThumbnail};
  }
  &&.table .chart {
    pointer-events: ${t=>t.isLayoutEditable?"none":""};
  }
  && .chartBox {
    cursor: ${t=>t.isLayoutEditable?"move":"pointer"};
  }
  && .chartBox .chartImg {
    cursor: ${t=>t.isLayoutEditable?"move":"pointer"};
  }
  && textarea {
    height: 100%;
    width: 100%;
    background: ${t=>t.theme.custom.white.A4};
    border: 0;
    padding: 16px;
    color: ${t=>t.theme.custom.white.A1};
    font-family: ${t=>t.theme.typography.fontFamily};
    backdrop-filter: blur(30px);
    border-radius: 4px;
    resize: none;
  }
  && textarea:focus {
    border: 0;
    outline: none;
  }
  && {
    margin-top: 10px;
    opacity: ${t=>t.disabled?.4:1};
    width: 100%;
  }
  &&.dashboardView .MuiFormControl-root,
  .MuiInputBase-multiline {
    height: inherit;
  }
  &&.dashboardView {
    margin-top: 0;
    height: 100%;
  }
  &&.dashboardViewHeader {
    margin-top: 0;
    height: auto;
  }
  &&.dashboardView .thumbnailChart,
  &&.dashboardView .chartsDisplay {
    padding: 0;
    height: inherit !important;
  }
  &&.dashboardView .chart {
    height: inherit;
  }
  &&.dashboardView .chartImg {
    height: inherit;
    background: none;
  }
  &&.dashboardView .chartInfo {
    display: flex;
    padding: 0px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
  }
  &&.dashboardView .chartInfo .chartName {
    font-size: ${t=>t.theme.custom.fontSize.font16};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
  }
  &&.dashboardView .chartInfo .chartName.linkText.disabled {
    pointer-events: none;
  }
  &&.dashboardView .chartInfo .chartName.linkText:hover {
    text-decoration: underline;
  }
  &&.dashboardView .chartBox:hover {
    transform: translateY(0);
  }
  &&.dashboardView .chartBox {
    padding: 20px;
  }
  &&.dashboardView .chart .strippedTable {
    margin-top: 0;
  }

  label {
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .chartBox {
    background: ${t=>t.theme.custom.thumbnailBg};
    border: 1px solid transparent;
    box-shadow: 0px 24px 70.9994px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
    color: inherit;
  }
  .thumbnailChart {
    height: 180px !important;
    text-align: center;
  }
  .thumbnailChart .alertMessageBlock {
    height: unset;
    padding: 8px;
    .alertError .msgBlock .message {
      -webkit-line-clamp: 1;
    }
  }
  .chartBox:hover,
  .chartBox.active {
    transform: ${t=>t.disabled?"translateY(0)":"translateY(-10px)"};
    border: 1px solid ${t=>t.theme.custom.chartThumbnailActive};
    box-shadow: unset;
  }
  .chartBox .chartImg {
    background: ${t=>t.theme.custom.thumbnailImgBg};
    cursor: pointer;
    box-shadow: unset;
    color: inherit;
  }
  .chartBox .chartImg .chart canvas {
    pointer-events: none;
    max-width: 100%;
  }
  .chartBox .chartInfo {
    padding: 8px;
  }
  .chartBox .chartInfo .chartName {
    font-size: ${t=>t.theme.custom.fontSize.font12};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    color: ${t=>t.theme.custom.white.A11};
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chartBox .chartInfo .chartTag {
    background: ${t=>t.theme.custom.tags.bg4};
    color: ${t=>t.theme.custom.tags.A3};
    font-size: ${t=>t.theme.custom.fontSize.font8};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    line-height: 12px;
    border-radius: 4px;
    padding: 4px 6px;
    white-space: nowrap;
  }
  .chartBox .chartInfo .description {
    color: ${t=>t.theme.custom.greyText.A10};
    font-size: ${t=>t.theme.custom.fontSize.font10};
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .chartBox .chartInfo .actionRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
`,gEa=gt.div`
  height: inherit;
  .MuiOutlinedInput-input h3,
  .MuiOutlinedInput-input h2,
  .MuiOutlinedInput-input h1 {
    font-size: ${t=>t.theme.custom.fontSize.font12} !important;
    font-weight: ${t=>t.theme.custom.fontWeight.rg} !important;
    padding: 0;
    margin: 0;
  }
  .with-popover-menu {
    position: relative;
    outline: none;
    height: inherit;
  }

  .grid-row.grid-row--empty .with-popover-menu {
    width: 100%;
    height: 100%;
  }

  // .with-popover-menu--focused:after {
  //   content: '';
  //   position: absolute;
  //   top: 0px;
  //   left: 0px;
  //   width: 100%;
  //   height: 100%;
  //   border: 1px solid #8178a9;
  //   pointer-events: none;
  //   border-radius: 4px;
  // }
  .popover-menu {
    position: absolute;
    display: flex;
    align-items: center;
    left: 1px;
    top: -42px;
    height: 40px;
    padding: 0 8px;
    background: ${t=>t.theme.custom.thumbnailBg};
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
    cursor: default;
    border-radius: 4px;
    gap: 8px;
    &:empty {
      display: none;
    }
  }
  .menu-item .MuiFormControl-root {
    width: 120px;
  }
`,Pat=t=>{const{editMode:e,refPopoverMenu:n,children:r,isFocused:a,menuItems:o=[],isLayoutEditable:s}=t;return s?E.jsx(gEa,{children:E.jsxs("div",{ref:n,role:"none",className:`with-popover-menu ${e||a&&"with-popover-menu--focused"||""}`,children:[r,(a||e)&&E.jsx("div",{className:"popover-menu",children:e&&o.map((l,c)=>E.jsx("div",{className:"menu-item",children:l},`menu-item-${c.toString()}`))})]})}):r},vEa=t=>{const{item:e,index:n,isLayoutEditable:r}=t,[a,o]=Y.useState(!1),s=Y.useRef(null),l=()=>{j_e(e==null?void 0:e.i)};return E.jsx(Woe,{boxHeight:10,className:"dashboardView component",onMouseOver:()=>o(!0),onMouseLeave:()=>o(!1),"data-visualid":e.visualId,isLayoutEditable:r,hideBorder:!0,children:E.jsx(Pat,{isFocused:a,refPopoverMenu:s,isLayoutEditable:r,children:E.jsx(mEa,{className:"dashboard-component-divider",children:r&&a&&E.jsx(_n,{onClick:l,tooltip:q.REMOVE,children:E.jsx(Wl,{})})})})},n)},Qr=50,pBe=60,UR=250,nde=10,K3=50,oRt=60,sRt=50,lvs=30,AEa=t=>t===xR.large?"32px":t===xR.medium?"24px":"20px",yEa=gt.div`
  && input {
    border: 1px solid ${t=>t.theme.custom.white.A11};
    font-size: ${t=>AEa(t.headerWeight)} !important;
    font-weight: 500 !important;
    background: ${t=>t.headerBackground};
    border-radius: 8px;
  }
  && input:focus {
    border: 1px solid ${t=>t.theme.custom.white.A11};
  }
  .small {
    font-size: 20px !important;
    font-weight: 500 !important;
  }
  .medium {
    font-size: 24px !important;
    font-weight: 500 !important;
  }
  .large {
    font-size: 32px !important;
    font-weight: bold !important;
  }
`,bEa=gt.div`
  height: inherit;
  cursor: move;
  background: ${t=>t.headerBackground};
  h1,
  h2,
  h3 {
    cursor: pointer;
    width: fit-content;
    margin-bottom: 0;
    color: ${t=>t.theme.custom.white.A1};
  }
  padding: 0 8px;
  border-radius: 4px;
  .widgetActions {
    position: absolute;
    right: 8px;
    top: 3px;
    button {
      background: transparent;
      height: 24px;
      width: 24px;
      + button {
        margin-left: 8px;
      }
    }
  }
`,xEa=gt(Dn)`
  .small,
  .medium,
  .large {
    margin-bottom: 0;
    line-height: 1;
  }
`;function Z6(t,e){Y.useEffect(()=>{const n=r=>{var o,s,l,c;const a=document.querySelector(".topBarAction");!t.current||a!=null&&a.contains(r.target)||t.current.contains(r.target)||r.target.role==="option"||((o=r.target.dataset)==null?void 0:o.role)==="option"||((s=r.target.parentElement)==null?void 0:s.role)==="option"||r.target.getAttribute("role")==="option"||((l=r.target.parentElement)==null?void 0:l.getAttribute("role"))==="option"||((c=r.target.dataset)==null?void 0:c.id)==="confirm"||e(r)};return document.addEventListener("mousedown",n,{passive:!0}),document.addEventListener("touchstart",n,{passive:!0}),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,e])}const lRt=({onChange:t,value:e,isBackgroundHeader:n,chartBackground:r,useImgColors:a})=>{const o=s=>n?s.label:ke.createElement(s.value,{className:s.label},s.label);return E.jsx(Ba,{value:e,onChange:t,children:(n?lF:egi).map(s=>{const l=a?`linear-gradient(
        180deg,
        ${r==null?void 0:r[0]} -40%,
        ${r==null?void 0:r[1]} 100%
      )`:s.value;return E.jsx(xEa,{value:s.label==="Background"?l:s.value,"data-role":"option",children:o(s)},s.value)})})},EEa=t=>{var C,R,k,P,N,L;const{item:e,index:n,isLayoutEditable:r}=t,a=Y.useRef(null),{chartBackground:o,useImgColors:s}=_p(),[l,c]=Y.useState(((C=e==null?void 0:e.metadata)==null?void 0:C.headerWeight)||xR.small),[u,d]=Y.useState(((R=e==null?void 0:e.metadata)==null?void 0:R.headerBackground)||lF[1].value),[h,f]=Y.useState(!1),[p,m]=Y.useState((k=e==null?void 0:e.metadata)==null?void 0:k.headerText),[g,v]=Y.useState(!1);Y.useEffect(()=>{var b,T,M,D;const{current:I}=a;I&&(h&&r?(T=(b=I.parentElement)==null?void 0:b.classList)==null||T.add("editableGrid"):(D=(M=I.parentElement)==null?void 0:M.classList)==null||D.remove("editableGrid"))},[h]),Y.useEffect(()=>{var I;m((I=e==null?void 0:e.metadata)==null?void 0:I.headerText)},[(P=e==null?void 0:e.metadata)==null?void 0:P.headerText]),Y.useEffect(()=>{var I;d((I=e==null?void 0:e.metadata)==null?void 0:I.headerBackground)},[(N=e==null?void 0:e.metadata)==null?void 0:N.headerBackground]),Y.useEffect(()=>{var I,b;d(s?`linear-gradient(
        180deg,
        ${o==null?void 0:o[0]} -40%,
        ${o==null?void 0:o[1]} 100%
      )`||((I=e==null?void 0:e.metadata)==null?void 0:I.headerBackground):lF[1].value||((b=e==null?void 0:e.metadata)==null?void 0:b.headerBackground))},[s,o]),Y.useEffect(()=>{var I;c((I=e==null?void 0:e.metadata)==null?void 0:I.headerWeight)},[(L=e==null?void 0:e.metadata)==null?void 0:L.headerWeight]),Z6(a,()=>{f(!1),h&&JX(e,{headerText:p,headerWeight:l,headerBackground:u})});const A=I=>{JX(e,{headerText:p,headerWeight:l,headerBackground:u}),I.key==="Enter"&&f(!1)},y=()=>{v(!1),f(!1),j_e(e==null?void 0:e.i)},S=I=>{const b=I.target.value||"";m(b),f(!0)},x=I=>{c(I.target.value),JX(e,{headerText:p,headerWeight:I.target.value,headerBackground:u})},w=I=>{d(I.target.value)},_=I=>{switch(l){case xR.large:return E.jsx("h1",{children:I});case xR.medium:return E.jsx("h2",{children:I});case xR.small:return E.jsx("h3",{children:I});default:return E.jsx("h3",{children:I})}};return E.jsx(Woe,{"data-item":JSON.stringify(e),boxHeight:10,ref:a,isEditable:h,className:`dashboardViewHeader component ${h?"no-drag editable":""}`,"data-visualid":e.visualId,isLayoutEditable:r,children:E.jsx(Pat,{editMode:h,isFocused:!1,refPopoverMenu:a,isLayoutEditable:r,menuItems:[E.jsx(lRt,{onChange:x,value:l||xR.small,isBackgroundHeader:!1,chartBackground:o,useImgColors:s}),E.jsx(lRt,{onChange:w,value:u||lF[1].value,isBackgroundHeader:!0,chartBackground:o,useImgColors:s})],children:h&&r?E.jsx(yEa,{onClick:()=>{var I,b,T;return(T=(b=(I=a.current)==null?void 0:I.parentElement)==null?void 0:b.classList)==null?void 0:T.add("editableGrid")},headerWeight:l||xR.small,headerBackground:u||lF[1].value,children:E.jsx(gr,{onChange:I=>S(I),placeholder:"New Header",autoComplete:"off",value:p,onKeyUp:A,warningText:q.MAX_LENGTH_ERROR("header",UR),hasMax:!0,maxValue:UR})}):E.jsxs(bEa,{headerBackground:u||lF[1].value,className:`${g?"no-drag":""}`,children:[r&&E.jsxs("div",{onMouseOver:()=>v(!0),onMouseLeave:()=>v(!1),className:"widgetActions",children:[E.jsx(_n,{onClick:()=>{v(!1),f(!0)},className:"editbutton",tooltip:q.EDIT_HEADER,children:E.jsx(gP,{})}),E.jsx(_n,{onClick:y,tooltip:q.REMOVE,children:E.jsx(Wl,{})})]}),_(p||"New Header")]})})},n)},SEa=ke.memo(EEa);/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var PVe=function(t,e){return PVe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},PVe(t,e)};function Jw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");PVe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var OVe=function(){return OVe=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},OVe.apply(this,arguments)};function f0(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function qg(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function rde(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,o;r<a;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||e)}var RM=function(){function t(e,n,r,a){this.left=e,this.top=n,this.width=r,this.height=a}return t.prototype.add=function(e,n,r,a){return new t(this.left+e,this.top+n,this.width+r,this.height+a)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find(function(a){return a.width!==0});return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),yTe=function(t,e){return RM.fromClientRect(t,e.getBoundingClientRect())},wEa=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),a=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new RM(0,0,r,a)},bTe=function(t){for(var e=[],n=0,r=t.length;n<r;){var a=t.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var o=t.charCodeAt(n++);(o&64512)===56320?e.push(((a&1023)<<10)+(o&1023)+65536):(e.push(a),n--)}else e.push(a)}return e},Bh=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],a=-1,o="";++a<n;){var s=t[a];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(a+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},cRt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_Ea=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ide=0;ide<cRt.length;ide++)_Ea[cRt.charCodeAt(ide)]=ide;var uRt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xZ=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ade=0;ade<uRt.length;ade++)xZ[uRt.charCodeAt(ade)]=ade;var TEa=function(t){var e=t.length*.75,n=t.length,r,a=0,o,s,l,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(u)?u:new Uint8Array(u);for(r=0;r<n;r+=4)o=xZ[t.charCodeAt(r)],s=xZ[t.charCodeAt(r+1)],l=xZ[t.charCodeAt(r+2)],c=xZ[t.charCodeAt(r+3)],d[a++]=o<<2|s>>4,d[a++]=(s&15)<<4|l>>2,d[a++]=(l&3)<<6|c&63;return u},CEa=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},kEa=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},kD=5,Oat=6+5,mBe=2,REa=Oat-kD,Dpn=65536>>kD,MEa=1<<kD,gBe=MEa-1,NEa=1024>>kD,IEa=Dpn+NEa,PEa=IEa,OEa=32,LEa=PEa+OEa,BEa=65536>>Oat,DEa=1<<REa,$Ea=DEa-1,dRt=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},FEa=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},jEa=function(t,e){var n=TEa(t),r=Array.isArray(n)?kEa(n):new Uint32Array(n),a=Array.isArray(n)?CEa(n):new Uint16Array(n),o=24,s=dRt(a,o/2,r[4]/2),l=r[5]===2?dRt(a,(o+r[4])/2):FEa(r,Math.ceil((o+r[4])/4));return new HEa(r[0],r[1],r[2],r[3],s,l)},HEa=function(){function t(e,n,r,a,o,s){this.initialValue=e,this.errorValue=n,this.highStart=r,this.highValueIndex=a,this.index=o,this.data=s}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>kD],n=(n<<mBe)+(e&gBe),this.data[n];if(e<=65535)return n=this.index[Dpn+(e-55296>>kD)],n=(n<<mBe)+(e&gBe),this.data[n];if(e<this.highStart)return n=LEa-BEa+(e>>Oat),n=this.index[n],n+=e>>kD&$Ea,n=this.index[n],n=(n<<mBe)+(e&gBe),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),hRt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",UEa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ode=0;ode<hRt.length;ode++)UEa[hRt.charCodeAt(ode)]=ode;var zEa="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",fRt=50,GEa=1,$pn=2,Fpn=3,VEa=4,KEa=5,pRt=7,jpn=8,mRt=9,W3=10,LVe=11,gRt=12,BVe=13,WEa=14,EZ=15,DVe=16,sde=17,wq=18,QEa=19,vRt=20,$Ve=21,_q=22,vBe=23,j$=24,uy=25,SZ=26,wZ=27,H$=28,qEa=29,vB=30,YEa=31,lde=32,cde=33,FVe=34,jVe=35,HVe=36,qne=37,UVe=38,Vme=39,Kme=40,ABe=41,Hpn=42,JEa=43,ZEa=[9001,65288],Upn="!",Js="×",ude="÷",zVe=jEa(zEa),Nk=[vB,HVe],GVe=[GEa,$pn,Fpn,KEa],zpn=[W3,jpn],ARt=[wZ,SZ],XEa=GVe.concat(zpn),yRt=[UVe,Vme,Kme,FVe,jVe],eSa=[EZ,BVe],tSa=function(t,e){e===void 0&&(e="strict");var n=[],r=[],a=[];return t.forEach(function(o,s){var l=zVe.get(o);if(l>fRt?(a.push(!0),l-=fRt):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(o)!==-1)return r.push(s),n.push(DVe);if(l===VEa||l===LVe){if(s===0)return r.push(s),n.push(vB);var c=n[s-1];return XEa.indexOf(c)===-1?(r.push(r[s-1]),n.push(c)):(r.push(s),n.push(vB))}if(r.push(s),l===YEa)return n.push(e==="strict"?$Ve:qne);if(l===Hpn||l===qEa)return n.push(vB);if(l===JEa)return o>=131072&&o<=196605||o>=196608&&o<=262141?n.push(qne):n.push(vB);n.push(l)}),[r,n,a]},yBe=function(t,e,n,r){var a=r[n];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var o=n;o<=r.length;){o++;var s=r[o];if(s===e)return!0;if(s!==W3)break}if(a===W3)for(var o=n;o>0;){o--;var l=r[o];if(Array.isArray(t)?t.indexOf(l)!==-1:t===l)for(var c=n;c<=r.length;){c++;var s=r[c];if(s===e)return!0;if(s!==W3)break}if(l!==W3)break}return!1},bRt=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r===W3)n--;else return r}return 0},nSa=function(t,e,n,r,a){if(n[r]===0)return Js;var o=r-1;if(Array.isArray(a)&&a[o]===!0)return Js;var s=o-1,l=o+1,c=e[o],u=s>=0?e[s]:0,d=e[l];if(c===$pn&&d===Fpn)return Js;if(GVe.indexOf(c)!==-1)return Upn;if(GVe.indexOf(d)!==-1||zpn.indexOf(d)!==-1)return Js;if(bRt(o,e)===jpn)return ude;if(zVe.get(t[o])===LVe||(c===lde||c===cde)&&zVe.get(t[l])===LVe||c===pRt||d===pRt||c===mRt||[W3,BVe,EZ].indexOf(c)===-1&&d===mRt||[sde,wq,QEa,j$,H$].indexOf(d)!==-1||bRt(o,e)===_q||yBe(vBe,_q,o,e)||yBe([sde,wq],$Ve,o,e)||yBe(gRt,gRt,o,e))return Js;if(c===W3)return ude;if(c===vBe||d===vBe)return Js;if(d===DVe||c===DVe)return ude;if([BVe,EZ,$Ve].indexOf(d)!==-1||c===WEa||u===HVe&&eSa.indexOf(c)!==-1||c===H$&&d===HVe||d===vRt||Nk.indexOf(d)!==-1&&c===uy||Nk.indexOf(c)!==-1&&d===uy||c===wZ&&[qne,lde,cde].indexOf(d)!==-1||[qne,lde,cde].indexOf(c)!==-1&&d===SZ||Nk.indexOf(c)!==-1&&ARt.indexOf(d)!==-1||ARt.indexOf(c)!==-1&&Nk.indexOf(d)!==-1||[wZ,SZ].indexOf(c)!==-1&&(d===uy||[_q,EZ].indexOf(d)!==-1&&e[l+1]===uy)||[_q,EZ].indexOf(c)!==-1&&d===uy||c===uy&&[uy,H$,j$].indexOf(d)!==-1)return Js;if([uy,H$,j$,sde,wq].indexOf(d)!==-1)for(var h=o;h>=0;){var f=e[h];if(f===uy)return Js;if([H$,j$].indexOf(f)!==-1)h--;else break}if([wZ,SZ].indexOf(d)!==-1)for(var h=[sde,wq].indexOf(c)!==-1?s:o;h>=0;){var f=e[h];if(f===uy)return Js;if([H$,j$].indexOf(f)!==-1)h--;else break}if(UVe===c&&[UVe,Vme,FVe,jVe].indexOf(d)!==-1||[Vme,FVe].indexOf(c)!==-1&&[Vme,Kme].indexOf(d)!==-1||[Kme,jVe].indexOf(c)!==-1&&d===Kme||yRt.indexOf(c)!==-1&&[vRt,SZ].indexOf(d)!==-1||yRt.indexOf(d)!==-1&&c===wZ||Nk.indexOf(c)!==-1&&Nk.indexOf(d)!==-1||c===j$&&Nk.indexOf(d)!==-1||Nk.concat(uy).indexOf(c)!==-1&&d===_q&&ZEa.indexOf(t[l])===-1||Nk.concat(uy).indexOf(d)!==-1&&c===wq)return Js;if(c===ABe&&d===ABe){for(var p=n[o],m=1;p>0&&(p--,e[p]===ABe);)m++;if(m%2!==0)return Js}return c===lde&&d===cde?Js:ude},rSa=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=tSa(t,e.lineBreak),r=n[0],a=n[1],o=n[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(l){return[uy,vB,Hpn].indexOf(l)!==-1?qne:l}));var s=e.wordBreak==="keep-all"?o.map(function(l,c){return l&&t[c]>=19968&&t[c]<=40959}):void 0;return[r,a,s]},iSa=function(){function t(e,n,r,a){this.codePoints=e,this.required=n===Upn,this.start=r,this.end=a}return t.prototype.slice=function(){return Bh.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),aSa=function(t,e){var n=bTe(t),r=rSa(n,e),a=r[0],o=r[1],s=r[2],l=n.length,c=0,u=0;return{next:function(){if(u>=l)return{done:!0,value:null};for(var d=Js;u<l&&(d=nSa(n,o,a,++u,s))===Js;);if(d!==Js||u===l){var h=new iSa(n,d,c,u);return c=u,{value:h,done:!1}}return{done:!0,value:null}}}},oSa=1,sSa=2,Qoe=4,xRt=8,p1e=10,ERt=47,iee=92,lSa=9,cSa=32,dde=34,Tq=61,uSa=35,dSa=36,hSa=37,hde=39,fde=40,Cq=41,fSa=95,UA=45,pSa=33,mSa=60,gSa=62,vSa=64,ASa=91,ySa=93,bSa=61,xSa=123,pde=63,ESa=125,SRt=124,SSa=126,wSa=128,wRt=65533,bBe=42,YB=43,_Sa=44,TSa=58,CSa=59,Yne=46,kSa=0,RSa=8,MSa=11,NSa=14,ISa=31,PSa=127,W_=-1,Gpn=48,Vpn=97,Kpn=101,OSa=102,LSa=117,BSa=122,Wpn=65,Qpn=69,qpn=70,DSa=85,$Sa=90,iv=function(t){return t>=Gpn&&t<=57},FSa=function(t){return t>=55296&&t<=57343},U$=function(t){return iv(t)||t>=Wpn&&t<=qpn||t>=Vpn&&t<=OSa},jSa=function(t){return t>=Vpn&&t<=BSa},HSa=function(t){return t>=Wpn&&t<=$Sa},USa=function(t){return jSa(t)||HSa(t)},zSa=function(t){return t>=wSa},mde=function(t){return t===p1e||t===lSa||t===cSa},m1e=function(t){return USa(t)||zSa(t)||t===fSa},_Rt=function(t){return m1e(t)||iv(t)||t===UA},GSa=function(t){return t>=kSa&&t<=RSa||t===MSa||t>=NSa&&t<=ISa||t===PSa},h3=function(t,e){return t!==iee?!1:e!==p1e},gde=function(t,e,n){return t===UA?m1e(e)||h3(e,n):m1e(t)?!0:!!(t===iee&&h3(t,e))},xBe=function(t,e,n){return t===YB||t===UA?iv(e)?!0:e===Yne&&iv(n):iv(t===Yne?e:t)},VSa=function(t){var e=0,n=1;(t[e]===YB||t[e]===UA)&&(t[e]===UA&&(n=-1),e++);for(var r=[];iv(t[e]);)r.push(t[e++]);var a=r.length?parseInt(Bh.apply(void 0,r),10):0;t[e]===Yne&&e++;for(var o=[];iv(t[e]);)o.push(t[e++]);var s=o.length,l=s?parseInt(Bh.apply(void 0,o),10):0;(t[e]===Qpn||t[e]===Kpn)&&e++;var c=1;(t[e]===YB||t[e]===UA)&&(t[e]===UA&&(c=-1),e++);for(var u=[];iv(t[e]);)u.push(t[e++]);var d=u.length?parseInt(Bh.apply(void 0,u),10):0;return n*(a+l*Math.pow(10,-s))*Math.pow(10,c*d)},KSa={type:2},WSa={type:3},QSa={type:4},qSa={type:13},YSa={type:8},JSa={type:21},ZSa={type:9},XSa={type:10},ewa={type:11},twa={type:12},nwa={type:14},vde={type:23},rwa={type:1},iwa={type:25},awa={type:24},owa={type:26},swa={type:27},lwa={type:28},cwa={type:29},uwa={type:31},VVe={type:32},Ypn=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(bTe(e))},t.prototype.read=function(){for(var e=[],n=this.consumeToken();n!==VVe;)e.push(n),n=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case dde:return this.consumeStringToken(dde);case uSa:var n=this.peekCodePoint(0),r=this.peekCodePoint(1),a=this.peekCodePoint(2);if(_Rt(n)||h3(r,a)){var o=gde(n,r,a)?sSa:oSa,s=this.consumeName();return{type:5,value:s,flags:o}}break;case dSa:if(this.peekCodePoint(0)===Tq)return this.consumeCodePoint(),qSa;break;case hde:return this.consumeStringToken(hde);case fde:return KSa;case Cq:return WSa;case bBe:if(this.peekCodePoint(0)===Tq)return this.consumeCodePoint(),nwa;break;case YB:if(xBe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case _Sa:return QSa;case UA:var l=e,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(xBe(l,c,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(gde(l,c,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(c===UA&&u===gSa)return this.consumeCodePoint(),this.consumeCodePoint(),awa;break;case Yne:if(xBe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ERt:if(this.peekCodePoint(0)===bBe)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===bBe&&(d=this.consumeCodePoint(),d===ERt))return this.consumeToken();if(d===W_)return this.consumeToken()}break;case TSa:return owa;case CSa:return swa;case mSa:if(this.peekCodePoint(0)===pSa&&this.peekCodePoint(1)===UA&&this.peekCodePoint(2)===UA)return this.consumeCodePoint(),this.consumeCodePoint(),iwa;break;case vSa:var h=this.peekCodePoint(0),f=this.peekCodePoint(1),p=this.peekCodePoint(2);if(gde(h,f,p)){var s=this.consumeName();return{type:7,value:s}}break;case ASa:return lwa;case iee:if(h3(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case ySa:return cwa;case bSa:if(this.peekCodePoint(0)===Tq)return this.consumeCodePoint(),YSa;break;case xSa:return ewa;case ESa:return twa;case LSa:case DSa:var m=this.peekCodePoint(0),g=this.peekCodePoint(1);return m===YB&&(U$(g)||g===pde)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case SRt:if(this.peekCodePoint(0)===Tq)return this.consumeCodePoint(),ZSa;if(this.peekCodePoint(0)===SRt)return this.consumeCodePoint(),JSa;break;case SSa:if(this.peekCodePoint(0)===Tq)return this.consumeCodePoint(),XSa;break;case W_:return VVe}return mde(e)?(this.consumeWhiteSpace(),uwa):iv(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):m1e(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Bh(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],n=this.consumeCodePoint();U$(n)&&e.length<6;)e.push(n),n=this.consumeCodePoint();for(var r=!1;n===pde&&e.length<6;)e.push(n),n=this.consumeCodePoint(),r=!0;if(r){var a=parseInt(Bh.apply(void 0,e.map(function(c){return c===pde?Gpn:c})),16),o=parseInt(Bh.apply(void 0,e.map(function(c){return c===pde?qpn:c})),16);return{type:30,start:a,end:o}}var s=parseInt(Bh.apply(void 0,e),16);if(this.peekCodePoint(0)===UA&&U$(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var l=[];U$(n)&&l.length<6;)l.push(n),n=this.consumeCodePoint();var o=parseInt(Bh.apply(void 0,l),16);return{type:30,start:s,end:o}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===fde?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===fde?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===W_)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===hde||n===dde){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===W_||this.peekCodePoint(0)===Cq)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),vde)}for(;;){var a=this.consumeCodePoint();if(a===W_||a===Cq)return{type:22,value:Bh.apply(void 0,e)};if(mde(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===W_||this.peekCodePoint(0)===Cq?(this.consumeCodePoint(),{type:22,value:Bh.apply(void 0,e)}):(this.consumeBadUrlRemnants(),vde);if(a===dde||a===hde||a===fde||GSa(a))return this.consumeBadUrlRemnants(),vde;if(a===iee)if(h3(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),vde;else e.push(a)}},t.prototype.consumeWhiteSpace=function(){for(;mde(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Cq||e===W_)return;h3(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var n=5e4,r="";e>0;){var a=Math.min(n,e);r+=Bh.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),r},t.prototype.consumeStringToken=function(e){var n="",r=0;do{var a=this._value[r];if(a===W_||a===void 0||a===e)return n+=this.consumeStringSlice(r),{type:0,value:n};if(a===p1e)return this._value.splice(0,r),rwa;if(a===iee){var o=this._value[r+1];o!==W_&&o!==void 0&&(o===p1e?(n+=this.consumeStringSlice(r),r=-1,this._value.shift()):h3(a,o)&&(n+=this.consumeStringSlice(r),n+=Bh(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var e=[],n=Qoe,r=this.peekCodePoint(0);for((r===YB||r===UA)&&e.push(this.consumeCodePoint());iv(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(r===Yne&&iv(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=xRt;iv(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),a=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((r===Qpn||r===Kpn)&&((a===YB||a===UA)&&iv(o)||iv(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=xRt;iv(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[VSa(e),n]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),n=e[0],r=e[1],a=this.peekCodePoint(0),o=this.peekCodePoint(1),s=this.peekCodePoint(2);if(gde(a,o,s)){var l=this.consumeName();return{type:15,number:n,flags:r,unit:l}}return a===hSa?(this.consumeCodePoint(),{type:16,number:n,flags:r}):{type:17,number:n,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(U$(e)){for(var n=Bh(e);U$(this.peekCodePoint(0))&&n.length<6;)n+=Bh(this.consumeCodePoint());mde(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(n,16);return r===0||FSa(r)||r>1114111?wRt:r}return e===W_?wRt:e},t.prototype.consumeName=function(){for(var e="";;){var n=this.consumeCodePoint();if(_Rt(n))e+=Bh(n);else if(h3(n,this.peekCodePoint(0)))e+=Bh(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),e}},t}(),Jpn=function(){function t(e){this._tokens=e}return t.create=function(e){var n=new Ypn;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var n=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var n=this.consumeComponentValue();if(n.type===32)return e;e.push(n),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var n={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||hwa(r,e))return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var n={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?VVe:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),qoe=function(t){return t.type===15},TV=function(t){return t.type===17},Gc=function(t){return t.type===20},dwa=function(t){return t.type===0},KVe=function(t,e){return Gc(t)&&t.value===e},Zpn=function(t){return t.type!==31},nz=function(t){return t.type!==31&&t.type!==4},_C=function(t){var e=[],n=[];return t.forEach(function(r){if(r.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(n),n=[];return}r.type!==31&&n.push(r)}),n.length&&e.push(n),e},hwa=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},wP=function(t){return t.type===17||t.type===15},If=function(t){return t.type===16||wP(t)},Xpn=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},tg={type:17,number:0,flags:Qoe},Lat={type:16,number:50,flags:Qoe},Q3={type:16,number:100,flags:Qoe},_Z=function(t,e,n){var r=t[0],a=t[1];return[Du(r,e),Du(typeof a<"u"?a:r,n)]},Du=function(t,e){if(t.type===16)return t.number/100*e;if(qoe(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},emn="deg",tmn="grad",nmn="rad",rmn="turn",xTe={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case emn:return Math.PI*e.number/180;case tmn:return Math.PI/200*e.number;case nmn:return e.number;case rmn:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},imn=function(t){return t.type===15&&(t.unit===emn||t.unit===tmn||t.unit===nmn||t.unit===rmn)},amn=function(t){var e=t.filter(Gc).map(function(n){return n.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tg,tg];case"to top":case"bottom":return Ex(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tg,Q3];case"to right":case"left":return Ex(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Q3,Q3];case"to bottom":case"top":return Ex(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Q3,tg];case"to left":case"right":return Ex(270)}return 0},Ex=function(t){return Math.PI*t/180},C5={name:"color",parse:function(t,e){if(e.type===18){var n=fwa[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),a=e.value.substring(1,2),o=e.value.substring(2,3);return q3(parseInt(r+r,16),parseInt(a+a,16),parseInt(o+o,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),a=e.value.substring(1,2),o=e.value.substring(2,3),s=e.value.substring(3,4);return q3(parseInt(r+r,16),parseInt(a+a,16),parseInt(o+o,16),parseInt(s+s,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),a=e.value.substring(2,4),o=e.value.substring(4,6);return q3(parseInt(r,16),parseInt(a,16),parseInt(o,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),a=e.value.substring(2,4),o=e.value.substring(4,6),s=e.value.substring(6,8);return q3(parseInt(r,16),parseInt(a,16),parseInt(o,16),parseInt(s,16)/255)}}if(e.type===20){var l=iM[e.value.toUpperCase()];if(typeof l<"u")return l}return iM.TRANSPARENT}},k5=function(t){return(255&t)===0},Kp=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,a=255&t>>24;return e<255?"rgba("+a+","+r+","+n+","+e/255+")":"rgb("+a+","+r+","+n+")"},q3=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(r*255)<<0)>>>0},TRt=function(t,e){if(t.type===17)return t.number;if(t.type===16){var n=e===3?1:255;return e===3?t.number/100*n:Math.round(t.number/100*n)}return 0},CRt=function(t,e){var n=e.filter(nz);if(n.length===3){var r=n.map(TRt),a=r[0],o=r[1],s=r[2];return q3(a,o,s,1)}if(n.length===4){var l=n.map(TRt),a=l[0],o=l[1],s=l[2],c=l[3];return q3(a,o,s,c)}return 0};function EBe(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<1/2?e:n<2/3?(e-t)*6*(2/3-n)+t:t}var kRt=function(t,e){var n=e.filter(nz),r=n[0],a=n[1],o=n[2],s=n[3],l=(r.type===17?Ex(r.number):xTe.parse(t,r))/(Math.PI*2),c=If(a)?a.number/100:0,u=If(o)?o.number/100:0,d=typeof s<"u"&&If(s)?Du(s,1):1;if(c===0)return q3(u*255,u*255,u*255,1);var h=u<=.5?u*(c+1):u+c-u*c,f=u*2-h,p=EBe(f,h,l+1/3),m=EBe(f,h,l),g=EBe(f,h,l-1/3);return q3(p*255,m*255,g*255,d)},fwa={hsl:kRt,hsla:kRt,rgb:CRt,rgba:CRt},aee=function(t,e){return C5.parse(t,Jpn.create(e).parseComponentValue())},iM={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},pwa={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Gc(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},mwa={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ETe=function(t,e){var n=C5.parse(t,e[0]),r=e[1];return r&&If(r)?{color:n,stop:r}:{color:n,stop:null}},RRt=function(t,e){var n=t[0],r=t[t.length-1];n.stop===null&&(n.stop=tg),r.stop===null&&(r.stop=Q3);for(var a=[],o=0,s=0;s<t.length;s++){var l=t[s].stop;if(l!==null){var c=Du(l,e);c>o?a.push(c):a.push(o),o=c}else a.push(null)}for(var u=null,s=0;s<a.length;s++){var d=a[s];if(d===null)u===null&&(u=s);else if(u!==null){for(var h=s-u,f=a[u-1],p=(d-f)/(h+1),m=1;m<=h;m++)a[u+m-1]=p*m;u=null}}return t.map(function(g,v){var A=g.color;return{color:A,stop:Math.max(Math.min(1,a[v]/e),0)}})},gwa=function(t,e,n){var r=e/2,a=n/2,o=Du(t[0],e)-r,s=a-Du(t[1],n);return(Math.atan2(s,o)+Math.PI*2)%(Math.PI*2)},vwa=function(t,e,n){var r=typeof t=="number"?t:gwa(t,e,n),a=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),o=e/2,s=n/2,l=a/2,c=Math.sin(r-Math.PI/2)*l,u=Math.cos(r-Math.PI/2)*l;return[a,o-u,o+u,s-c,s+c]},kS=function(t,e){return Math.sqrt(t*t+e*e)},MRt=function(t,e,n,r,a){var o=[[0,0],[0,e],[t,0],[t,e]];return o.reduce(function(s,l){var c=l[0],u=l[1],d=kS(n-c,r-u);return(a?d<s.optimumDistance:d>s.optimumDistance)?{optimumCorner:l,optimumDistance:d}:s},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},Awa=function(t,e,n,r,a){var o=0,s=0;switch(t.size){case 0:t.shape===0?o=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-a)):t.shape===1&&(o=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(n),Math.abs(n-a)));break;case 2:if(t.shape===0)o=s=Math.min(kS(e,n),kS(e,n-a),kS(e-r,n),kS(e-r,n-a));else if(t.shape===1){var l=Math.min(Math.abs(n),Math.abs(n-a))/Math.min(Math.abs(e),Math.abs(e-r)),c=MRt(r,a,e,n,!0),u=c[0],d=c[1];o=kS(u-e,(d-n)/l),s=l*o}break;case 1:t.shape===0?o=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-a)):t.shape===1&&(o=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(n),Math.abs(n-a)));break;case 3:if(t.shape===0)o=s=Math.max(kS(e,n),kS(e,n-a),kS(e-r,n),kS(e-r,n-a));else if(t.shape===1){var l=Math.max(Math.abs(n),Math.abs(n-a))/Math.max(Math.abs(e),Math.abs(e-r)),h=MRt(r,a,e,n,!1),u=h[0],d=h[1];o=kS(u-e,(d-n)/l),s=l*o}break}return Array.isArray(t.size)&&(o=Du(t.size[0],r),s=t.size.length===2?Du(t.size[1],a):o),[o,s]},ywa=function(t,e){var n=Ex(180),r=[];return _C(e).forEach(function(a,o){if(o===0){var s=a[0];if(s.type===20&&s.value==="to"){n=amn(a);return}else if(imn(s)){n=xTe.parse(t,s);return}}var l=ETe(t,a);r.push(l)}),{angle:n,stops:r,type:1}},Ade=function(t,e){var n=Ex(180),r=[];return _C(e).forEach(function(a,o){if(o===0){var s=a[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){n=amn(a);return}else if(imn(s)){n=(xTe.parse(t,s)+Ex(270))%Ex(360);return}}var l=ETe(t,a);r.push(l)}),{angle:n,stops:r,type:1}},bwa=function(t,e){var n=Ex(180),r=[],a=1,o=0,s=3,l=[];return _C(e).forEach(function(c,u){var d=c[0];if(u===0){if(Gc(d)&&d.value==="linear"){a=1;return}else if(Gc(d)&&d.value==="radial"){a=2;return}}if(d.type===18){if(d.name==="from"){var h=C5.parse(t,d.values[0]);r.push({stop:tg,color:h})}else if(d.name==="to"){var h=C5.parse(t,d.values[0]);r.push({stop:Q3,color:h})}else if(d.name==="color-stop"){var f=d.values.filter(nz);if(f.length===2){var h=C5.parse(t,f[1]),p=f[0];TV(p)&&r.push({stop:{type:16,number:p.number*100,flags:p.flags},color:h})}}}}),a===1?{angle:(n+Ex(180))%Ex(360),stops:r,type:a}:{size:s,shape:o,stops:r,position:l,type:a}},omn="closest-side",smn="farthest-side",lmn="closest-corner",cmn="farthest-corner",umn="circle",dmn="ellipse",hmn="cover",fmn="contain",xwa=function(t,e){var n=0,r=3,a=[],o=[];return _C(e).forEach(function(s,l){var c=!0;if(l===0){var u=!1;c=s.reduce(function(h,f){if(u)if(Gc(f))switch(f.value){case"center":return o.push(Lat),h;case"top":case"left":return o.push(tg),h;case"right":case"bottom":return o.push(Q3),h}else(If(f)||wP(f))&&o.push(f);else if(Gc(f))switch(f.value){case umn:return n=0,!1;case dmn:return n=1,!1;case"at":return u=!0,!1;case omn:return r=0,!1;case hmn:case smn:return r=1,!1;case fmn:case lmn:return r=2,!1;case cmn:return r=3,!1}else if(wP(f)||If(f))return Array.isArray(r)||(r=[]),r.push(f),!1;return h},c)}if(c){var d=ETe(t,s);a.push(d)}}),{size:r,shape:n,stops:a,position:o,type:2}},yde=function(t,e){var n=0,r=3,a=[],o=[];return _C(e).forEach(function(s,l){var c=!0;if(l===0?c=s.reduce(function(d,h){if(Gc(h))switch(h.value){case"center":return o.push(Lat),!1;case"top":case"left":return o.push(tg),!1;case"right":case"bottom":return o.push(Q3),!1}else if(If(h)||wP(h))return o.push(h),!1;return d},c):l===1&&(c=s.reduce(function(d,h){if(Gc(h))switch(h.value){case umn:return n=0,!1;case dmn:return n=1,!1;case fmn:case omn:return r=0,!1;case smn:return r=1,!1;case lmn:return r=2,!1;case hmn:case cmn:return r=3,!1}else if(wP(h)||If(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return d},c)),c){var u=ETe(t,s);a.push(u)}}),{size:r,shape:n,stops:a,position:o,type:2}},Ewa=function(t){return t.type===1},Swa=function(t){return t.type===2},Bat={name:"image",parse:function(t,e){if(e.type===22){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(e.type===18){var r=pmn[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function wwa(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!pmn[t.name])}var pmn={"linear-gradient":ywa,"-moz-linear-gradient":Ade,"-ms-linear-gradient":Ade,"-o-linear-gradient":Ade,"-webkit-linear-gradient":Ade,"radial-gradient":xwa,"-moz-radial-gradient":yde,"-ms-radial-gradient":yde,"-o-radial-gradient":yde,"-webkit-radial-gradient":yde,"-webkit-gradient":bwa},_wa={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e.filter(function(r){return nz(r)&&wwa(r)}).map(function(r){return Bat.parse(t,r)})}},Twa={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Gc(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Cwa={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return _C(e).map(function(n){return n.filter(If)}).map(Xpn)}},kwa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return _C(e).map(function(n){return n.filter(Gc).map(function(r){return r.value}).join(" ")}).map(Rwa)}},Rwa=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},lH;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(lH||(lH={}));var Mwa={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return _C(e).map(function(n){return n.filter(Nwa)})}},Nwa=function(t){return Gc(t)||If(t)},STe=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Iwa=STe("top"),Pwa=STe("right"),Owa=STe("bottom"),Lwa=STe("left"),wTe=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,n){return Xpn(n.filter(If))}}},Bwa=wTe("top-left"),Dwa=wTe("top-right"),$wa=wTe("bottom-right"),Fwa=wTe("bottom-left"),_Te=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},jwa=_Te("top"),Hwa=_Te("right"),Uwa=_Te("bottom"),zwa=_Te("left"),TTe=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,n){return qoe(n)?n.number:0}}},Gwa=TTe("top"),Vwa=TTe("right"),Kwa=TTe("bottom"),Wwa=TTe("left"),Qwa={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qwa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Ywa={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Gc).reduce(function(n,r){return n|Jwa(r.value)},0)}},Jwa=function(t){switch(t){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},Zwa={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Xwa={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},g1e;(function(t){t.NORMAL="normal",t.STRICT="strict"})(g1e||(g1e={}));var e_a={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return g1e.STRICT;case"normal":default:return g1e.NORMAL}}},t_a={name:"line-height",initialValue:"normal",prefix:!1,type:4},NRt=function(t,e){return Gc(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:If(t)?Du(t,e):e},n_a={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:Bat.parse(t,e)}},r_a={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},WVe={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){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;case"none":default:return-1}}},CTe=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},i_a=CTe("top"),a_a=CTe("right"),o_a=CTe("bottom"),s_a=CTe("left"),l_a={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Gc).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},c_a={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},kTe=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},u_a=kTe("top"),d_a=kTe("right"),h_a=kTe("bottom"),f_a=kTe("left"),p_a={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},m_a={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},g_a={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&KVe(e[0],"none")?[]:_C(e).map(function(n){for(var r={color:iM.TRANSPARENT,offsetX:tg,offsetY:tg,blur:tg},a=0,o=0;o<n.length;o++){var s=n[o];wP(s)?(a===0?r.offsetX=s:a===1?r.offsetY=s:r.blur=s,a++):r.color=C5.parse(t,s)}return r})}},v_a={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},A_a={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var n=x_a[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},y_a=function(t){var e=t.filter(function(n){return n.type===17}).map(function(n){return n.number});return e.length===6?e:null},b_a=function(t){var e=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),n=e[0],r=e[1];e[2],e[3];var a=e[4],o=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],l=e[13];return e[14],e[15],e.length===16?[n,r,a,o,s,l]:null},x_a={matrix:y_a,matrix3d:b_a},IRt={type:16,number:50,flags:Qoe},E_a=[IRt,IRt],S_a={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(If);return n.length!==2?E_a:[n[0],n[1]]}},w_a={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},oee;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(oee||(oee={}));var __a={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return oee.BREAK_ALL;case"keep-all":return oee.KEEP_ALL;case"normal":default:return oee.NORMAL}}},T_a={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(TV(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},mmn={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},C_a={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return TV(e)?e.number:1}},k_a={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},R_a={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Gc).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}},M_a={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach(function(a){switch(a.type){case 20:case 0:n.push(a.value);break;case 17:n.push(a.number.toString());break;case 4:r.push(n.join(" ")),n.length=0;break}}),n.length&&r.push(n.join(" ")),r.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},N_a={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},I_a={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(TV(e))return e.number;if(Gc(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},P_a={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Gc).map(function(n){return n.value})}},O_a={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},lp=function(t,e){return(t&e)!==0},L_a={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e}},B_a={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;for(var r=[],a=e.filter(Zpn),o=0;o<a.length;o++){var s=a[o],l=a[o+1];if(s.type===20){var c=l&&TV(l)?l.number:1;r.push({counter:s.value,increment:c})}}return r}},D_a={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var n=[],r=e.filter(Zpn),a=0;a<r.length;a++){var o=r[a],s=r[a+1];if(Gc(o)&&o.value!=="none"){var l=s&&TV(s)?s.number:0;n.push({counter:o.value,reset:l})}}return n}},$_a={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(qoe).map(function(n){return mmn.parse(t,n)})}},F_a={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;var r=[],a=e.filter(dwa);if(a.length%2!==0)return null;for(var o=0;o<a.length;o+=2){var s=a[o].value,l=a[o+1].value;r.push({open:s,close:l})}return r}},PRt=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},j_a={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&KVe(e[0],"none")?[]:_C(e).map(function(n){for(var r={color:255,offsetX:tg,offsetY:tg,blur:tg,spread:tg,inset:!1},a=0,o=0;o<n.length;o++){var s=n[o];KVe(s,"inset")?r.inset=!0:wP(s)?(a===0?r.offsetX=s:a===1?r.offsetY=s:a===2?r.blur=s:r.spread=s,a++):r.color=C5.parse(t,s)}return r})}},H_a={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[0,1,2],r=[];return e.filter(Gc).forEach(function(a){switch(a.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),n.forEach(function(a){r.indexOf(a)===-1&&r.push(a)}),r}},U_a={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},z_a={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return qoe(e)?e.number:0}},G_a=function(){function t(e,n){var r,a;this.animationDuration=_i(e,$_a,n.animationDuration),this.backgroundClip=_i(e,pwa,n.backgroundClip),this.backgroundColor=_i(e,mwa,n.backgroundColor),this.backgroundImage=_i(e,_wa,n.backgroundImage),this.backgroundOrigin=_i(e,Twa,n.backgroundOrigin),this.backgroundPosition=_i(e,Cwa,n.backgroundPosition),this.backgroundRepeat=_i(e,kwa,n.backgroundRepeat),this.backgroundSize=_i(e,Mwa,n.backgroundSize),this.borderTopColor=_i(e,Iwa,n.borderTopColor),this.borderRightColor=_i(e,Pwa,n.borderRightColor),this.borderBottomColor=_i(e,Owa,n.borderBottomColor),this.borderLeftColor=_i(e,Lwa,n.borderLeftColor),this.borderTopLeftRadius=_i(e,Bwa,n.borderTopLeftRadius),this.borderTopRightRadius=_i(e,Dwa,n.borderTopRightRadius),this.borderBottomRightRadius=_i(e,$wa,n.borderBottomRightRadius),this.borderBottomLeftRadius=_i(e,Fwa,n.borderBottomLeftRadius),this.borderTopStyle=_i(e,jwa,n.borderTopStyle),this.borderRightStyle=_i(e,Hwa,n.borderRightStyle),this.borderBottomStyle=_i(e,Uwa,n.borderBottomStyle),this.borderLeftStyle=_i(e,zwa,n.borderLeftStyle),this.borderTopWidth=_i(e,Gwa,n.borderTopWidth),this.borderRightWidth=_i(e,Vwa,n.borderRightWidth),this.borderBottomWidth=_i(e,Kwa,n.borderBottomWidth),this.borderLeftWidth=_i(e,Wwa,n.borderLeftWidth),this.boxShadow=_i(e,j_a,n.boxShadow),this.color=_i(e,Qwa,n.color),this.direction=_i(e,qwa,n.direction),this.display=_i(e,Ywa,n.display),this.float=_i(e,Zwa,n.cssFloat),this.fontFamily=_i(e,M_a,n.fontFamily),this.fontSize=_i(e,N_a,n.fontSize),this.fontStyle=_i(e,O_a,n.fontStyle),this.fontVariant=_i(e,P_a,n.fontVariant),this.fontWeight=_i(e,I_a,n.fontWeight),this.letterSpacing=_i(e,Xwa,n.letterSpacing),this.lineBreak=_i(e,e_a,n.lineBreak),this.lineHeight=_i(e,t_a,n.lineHeight),this.listStyleImage=_i(e,n_a,n.listStyleImage),this.listStylePosition=_i(e,r_a,n.listStylePosition),this.listStyleType=_i(e,WVe,n.listStyleType),this.marginTop=_i(e,i_a,n.marginTop),this.marginRight=_i(e,a_a,n.marginRight),this.marginBottom=_i(e,o_a,n.marginBottom),this.marginLeft=_i(e,s_a,n.marginLeft),this.opacity=_i(e,C_a,n.opacity);var o=_i(e,l_a,n.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=_i(e,c_a,n.overflowWrap),this.paddingTop=_i(e,u_a,n.paddingTop),this.paddingRight=_i(e,d_a,n.paddingRight),this.paddingBottom=_i(e,h_a,n.paddingBottom),this.paddingLeft=_i(e,f_a,n.paddingLeft),this.paintOrder=_i(e,H_a,n.paintOrder),this.position=_i(e,m_a,n.position),this.textAlign=_i(e,p_a,n.textAlign),this.textDecorationColor=_i(e,k_a,(r=n.textDecorationColor)!==null&&r!==void 0?r:n.color),this.textDecorationLine=_i(e,R_a,(a=n.textDecorationLine)!==null&&a!==void 0?a:n.textDecoration),this.textShadow=_i(e,g_a,n.textShadow),this.textTransform=_i(e,v_a,n.textTransform),this.transform=_i(e,A_a,n.transform),this.transformOrigin=_i(e,S_a,n.transformOrigin),this.visibility=_i(e,w_a,n.visibility),this.webkitTextStrokeColor=_i(e,U_a,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=_i(e,z_a,n.webkitTextStrokeWidth),this.wordBreak=_i(e,__a,n.wordBreak),this.zIndex=_i(e,T_a,n.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return k5(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return lp(this.display,4)||lp(this.display,33554432)||lp(this.display,268435456)||lp(this.display,536870912)||lp(this.display,67108864)||lp(this.display,134217728)},t}(),V_a=function(){function t(e,n){this.content=_i(e,L_a,n.content),this.quotes=_i(e,F_a,n.quotes)}return t}(),ORt=function(){function t(e,n){this.counterIncrement=_i(e,B_a,n.counterIncrement),this.counterReset=_i(e,D_a,n.counterReset)}return t}(),_i=function(t,e,n){var r=new Ypn,a=n!==null&&typeof n<"u"?n.toString():e.initialValue;r.write(a);var o=new Jpn(r.read());switch(e.type){case 2:var s=o.parseComponentValue();return e.parse(t,Gc(s)?s.value:e.initialValue);case 0:return e.parse(t,o.parseComponentValue());case 1:return e.parse(t,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return xTe.parse(t,o.parseComponentValue());case"color":return C5.parse(t,o.parseComponentValue());case"image":return Bat.parse(t,o.parseComponentValue());case"length":var l=o.parseComponentValue();return wP(l)?l:tg;case"length-percentage":var c=o.parseComponentValue();return If(c)?c:tg;case"time":return mmn.parse(t,o.parseComponentValue())}break}},K_a="data-html2canvas-debug",W_a=function(t){var e=t.getAttribute(K_a);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},QVe=function(t,e){var n=W_a(t);return n===1||e===n},TC=function(){function t(e,n){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,QVe(n,3))debugger;this.styles=new G_a(e,window.getComputedStyle(n,null)),JVe(n)&&(this.styles.animationDuration.some(function(r){return r>0})&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=yTe(this.context,n),QVe(n,4)&&(this.flags|=16)}return t}(),Q_a="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",LRt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",TZ=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var bde=0;bde<LRt.length;bde++)TZ[LRt.charCodeAt(bde)]=bde;var q_a=function(t){var e=t.length*.75,n=t.length,r,a=0,o,s,l,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(u)?u:new Uint8Array(u);for(r=0;r<n;r+=4)o=TZ[t.charCodeAt(r)],s=TZ[t.charCodeAt(r+1)],l=TZ[t.charCodeAt(r+2)],c=TZ[t.charCodeAt(r+3)],d[a++]=o<<2|s>>4,d[a++]=(s&15)<<4|l>>2,d[a++]=(l&3)<<6|c&63;return u},Y_a=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},J_a=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},RD=5,Dat=6+5,SBe=2,Z_a=Dat-RD,gmn=65536>>RD,X_a=1<<RD,wBe=X_a-1,eTa=1024>>RD,tTa=gmn+eTa,nTa=tTa,rTa=32,iTa=nTa+rTa,aTa=65536>>Dat,oTa=1<<Z_a,sTa=oTa-1,BRt=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},lTa=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},cTa=function(t,e){var n=q_a(t),r=Array.isArray(n)?J_a(n):new Uint32Array(n),a=Array.isArray(n)?Y_a(n):new Uint16Array(n),o=24,s=BRt(a,o/2,r[4]/2),l=r[5]===2?BRt(a,(o+r[4])/2):lTa(r,Math.ceil((o+r[4])/4));return new uTa(r[0],r[1],r[2],r[3],s,l)},uTa=function(){function t(e,n,r,a,o,s){this.initialValue=e,this.errorValue=n,this.highStart=r,this.highValueIndex=a,this.index=o,this.data=s}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>RD],n=(n<<SBe)+(e&wBe),this.data[n];if(e<=65535)return n=this.index[gmn+(e-55296>>RD)],n=(n<<SBe)+(e&wBe),this.data[n];if(e<this.highStart)return n=iTa-aTa+(e>>Dat),n=this.index[n],n+=e>>RD&sTa,n=this.index[n],n=(n<<SBe)+(e&wBe),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),DRt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dTa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var xde=0;xde<DRt.length;xde++)dTa[DRt.charCodeAt(xde)]=xde;var hTa=1,_Be=2,TBe=3,$Rt=4,FRt=5,fTa=7,jRt=8,CBe=9,kBe=10,HRt=11,URt=12,zRt=13,GRt=14,RBe=15,pTa=function(t){for(var e=[],n=0,r=t.length;n<r;){var a=t.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var o=t.charCodeAt(n++);(o&64512)===56320?e.push(((a&1023)<<10)+(o&1023)+65536):(e.push(a),n--)}else e.push(a)}return e},mTa=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],a=-1,o="";++a<n;){var s=t[a];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(a+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},gTa=cTa(Q_a),Yb="×",MBe="÷",vTa=function(t){return gTa.get(t)},ATa=function(t,e,n){var r=n-2,a=e[r],o=e[n-1],s=e[n];if(o===_Be&&s===TBe)return Yb;if(o===_Be||o===TBe||o===$Rt||s===_Be||s===TBe||s===$Rt)return MBe;if(o===jRt&&[jRt,CBe,HRt,URt].indexOf(s)!==-1||(o===HRt||o===CBe)&&(s===CBe||s===kBe)||(o===URt||o===kBe)&&s===kBe||s===zRt||s===FRt||s===fTa||o===hTa)return Yb;if(o===zRt&&s===GRt){for(;a===FRt;)a=e[--r];if(a===GRt)return Yb}if(o===RBe&&s===RBe){for(var l=0;a===RBe;)l++,a=e[--r];if(l%2===0)return Yb}return MBe},yTa=function(t){var e=pTa(t),n=e.length,r=0,a=0,o=e.map(vTa);return{next:function(){if(r>=n)return{done:!0,value:null};for(var s=Yb;r<n&&(s=ATa(e,o,++r))===Yb;);if(s!==Yb||r===n){var l=mTa.apply(null,e.slice(a,r));return a=r,{value:l,done:!1}}return{done:!0,value:null}}}},bTa=function(t){for(var e=yTa(t),n=[],r;!(r=e.next()).done;)r.value&&n.push(r.value.slice());return n},xTa=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),n.selectNode(r);var a=n.getBoundingClientRect(),o=Math.round(a.height);if(t.body.removeChild(r),o===e)return!0}}return!1},ETa=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=e.firstChild,a=bTe(r.data).map(function(c){return Bh(c)}),o=0,s={},l=a.every(function(c,u){n.setStart(r,o),n.setEnd(r,o+c.length);var d=n.getBoundingClientRect();o+=c.length;var h=d.x>s.x||d.y>s.y;return s=d,u===0?!0:h});return t.body.removeChild(e),l},STa=function(){return typeof new Image().crossOrigin<"u"},wTa=function(){return typeof new XMLHttpRequest().responseType=="string"},_Ta=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch{return!1}return!0},VRt=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},TTa=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var a=new Image,o=e.toDataURL();a.src=o;var s=qVe(n,n,0,0,a);return r.fillStyle="red",r.fillRect(0,0,n,n),KRt(s).then(function(l){r.drawImage(l,0,0);var c=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var u=t.createElement("div");return u.style.backgroundImage="url("+o+")",u.style.height=n+"px",VRt(c)?KRt(qVe(n,n,0,0,u)):Promise.reject(!1)}).then(function(l){return r.drawImage(l,0,0),VRt(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},qVe=function(t,e,n,r,a){var o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),l=document.createElementNS(o,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",e.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",n.toString()),l.setAttributeNS(null,"y",r.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(l),l.appendChild(a),s},KRt=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Gm={get SUPPORT_RANGE_BOUNDS(){var t=xTa(document);return Object.defineProperty(Gm,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Gm.SUPPORT_RANGE_BOUNDS&&ETa(document);return Object.defineProperty(Gm,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=_Ta(document);return Object.defineProperty(Gm,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?TTa(document):Promise.resolve(!1);return Object.defineProperty(Gm,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=STa();return Object.defineProperty(Gm,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=wTa();return Object.defineProperty(Gm,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Gm,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Gm,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},see=function(){function t(e,n){this.text=e,this.bounds=n}return t}(),CTa=function(t,e,n,r){var a=MTa(e,n),o=[],s=0;return a.forEach(function(l){if(n.textDecorationLine.length||l.trim().length>0)if(Gm.SUPPORT_RANGE_BOUNDS){var c=WRt(r,s,l.length).getClientRects();if(c.length>1){var u=$at(l),d=0;u.forEach(function(f){o.push(new see(f,RM.fromDOMRectList(t,WRt(r,d+s,f.length).getClientRects()))),d+=f.length})}else o.push(new see(l,RM.fromDOMRectList(t,c)))}else{var h=r.splitText(l.length);o.push(new see(l,kTa(t,r))),r=h}else Gm.SUPPORT_RANGE_BOUNDS||(r=r.splitText(l.length));s+=l.length}),o},kTa=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(r,e);var o=yTe(t,r);return r.firstChild&&a.replaceChild(r.firstChild,r),o}}return RM.EMPTY},WRt=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var a=r.createRange();return a.setStart(t,e),a.setEnd(t,e+n),a},$at=function(t){if(Gm.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return bTa(t)},RTa=function(t,e){if(Gm.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(r){return r.segment})}return ITa(t,e)},MTa=function(t,e){return e.letterSpacing!==0?$at(t):RTa(t,e)},NTa=[32,160,4961,65792,65793,4153,4241],ITa=function(t,e){for(var n=aSa(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],a,o=function(){if(a.value){var s=a.value.slice(),l=bTe(s),c="";l.forEach(function(u){NTa.indexOf(u)===-1?c+=Bh(u):(c.length&&r.push(c),r.push(Bh(u)),c="")}),c.length&&r.push(c)}};!(a=n.next()).done;)o();return r},PTa=function(){function t(e,n,r){this.text=OTa(n.data,r.textTransform),this.textBounds=CTa(e,this.text,r,n)}return t}(),OTa=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(LTa,BTa);case 2:return t.toUpperCase();default:return t}},LTa=/(^|\s|:|-|\(|\))([a-z])/g,BTa=function(t,e,n){return t.length>0?e+n.toUpperCase():t},vmn=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.src=r.currentSrc||r.src,a.intrinsicWidth=r.naturalWidth,a.intrinsicHeight=r.naturalHeight,a.context.cache.addImage(a.src),a}return e}(TC),Amn=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.canvas=r,a.intrinsicWidth=r.width,a.intrinsicHeight=r.height,a}return e}(TC),ymn=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this,o=new XMLSerializer,s=yTe(n,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(r)),a.intrinsicWidth=r.width.baseVal.value,a.intrinsicHeight=r.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(TC),bmn=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.value=r.value,a}return e}(TC),YVe=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.start=r.start,a.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,a}return e}(TC),DTa=[{type:15,flags:0,unit:"px",number:3}],$Ta=[{type:16,flags:0,number:50}],FTa=function(t){return t.width>t.height?new RM(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new RM(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},jTa=function(t){var e=t.type===HTa?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},v1e="checkbox",A1e="radio",HTa="password",QRt=707406591,Fat=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;switch(a.type=r.type.toLowerCase(),a.checked=r.checked,a.value=jTa(r),(a.type===v1e||a.type===A1e)&&(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=FTa(a.bounds)),a.type){case v1e:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=DTa;break;case A1e:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=$Ta;break}return a}return e}(TC),xmn=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this,o=r.options[r.selectedIndex||0];return a.value=o&&o.text||"",a}return e}(TC),Emn=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.value=r.value,a}return e}(TC),Smn=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;a.src=r.src,a.width=parseInt(r.width,10)||0,a.height=parseInt(r.height,10)||0,a.backgroundColor=a.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){a.tree=_mn(n,r.contentWindow.document.documentElement);var o=r.contentWindow.document.documentElement?aee(n,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):iM.TRANSPARENT,s=r.contentWindow.document.body?aee(n,getComputedStyle(r.contentWindow.document.body).backgroundColor):iM.TRANSPARENT;a.backgroundColor=k5(o)?k5(s)?a.styles.backgroundColor:s:o}}catch{}return a}return e}(TC),UTa=["OL","UL","MENU"],Wme=function(t,e,n,r){for(var a=e.firstChild,o=void 0;a;a=o)if(o=a.nextSibling,Tmn(a)&&a.data.trim().length>0)n.textNodes.push(new PTa(t,a,n.styles));else if(nj(a))if(Mmn(a)&&a.assignedNodes)a.assignedNodes().forEach(function(l){return Wme(t,l,n,r)});else{var s=wmn(t,a);s.styles.isVisible()&&(zTa(a,s,r)?s.flags|=4:GTa(s.styles)&&(s.flags|=2),UTa.indexOf(a.tagName)!==-1&&(s.flags|=8),n.elements.push(s),a.slot,a.shadowRoot?Wme(t,a.shadowRoot,s,r):!y1e(a)&&!Cmn(a)&&!b1e(a)&&Wme(t,a,s,r))}},wmn=function(t,e){return ZVe(e)?new vmn(t,e):kmn(e)?new Amn(t,e):Cmn(e)?new ymn(t,e):VTa(e)?new bmn(t,e):KTa(e)?new YVe(t,e):WTa(e)?new Fat(t,e):b1e(e)?new xmn(t,e):y1e(e)?new Emn(t,e):Rmn(e)?new Smn(t,e):new TC(t,e)},_mn=function(t,e){var n=wmn(t,e);return n.flags|=4,Wme(t,e,n,n),n},zTa=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||jat(t)&&n.styles.isTransparent()},GTa=function(t){return t.isPositioned()||t.isFloating()},Tmn=function(t){return t.nodeType===Node.TEXT_NODE},nj=function(t){return t.nodeType===Node.ELEMENT_NODE},JVe=function(t){return nj(t)&&typeof t.style<"u"&&!Qme(t)},Qme=function(t){return typeof t.className=="object"},VTa=function(t){return t.tagName==="LI"},KTa=function(t){return t.tagName==="OL"},WTa=function(t){return t.tagName==="INPUT"},QTa=function(t){return t.tagName==="HTML"},Cmn=function(t){return t.tagName==="svg"},jat=function(t){return t.tagName==="BODY"},kmn=function(t){return t.tagName==="CANVAS"},qRt=function(t){return t.tagName==="VIDEO"},ZVe=function(t){return t.tagName==="IMG"},Rmn=function(t){return t.tagName==="IFRAME"},YRt=function(t){return t.tagName==="STYLE"},qTa=function(t){return t.tagName==="SCRIPT"},y1e=function(t){return t.tagName==="TEXTAREA"},b1e=function(t){return t.tagName==="SELECT"},Mmn=function(t){return t.tagName==="SLOT"},JRt=function(t){return t.tagName.indexOf("-")>0},YTa=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var n=this.counters[e];return n&&n.length?n[n.length-1]:1},t.prototype.getCounterValues=function(e){var n=this.counters[e];return n||[]},t.prototype.pop=function(e){var n=this;e.forEach(function(r){return n.counters[r].pop()})},t.prototype.parse=function(e){var n=this,r=e.counterIncrement,a=e.counterReset,o=!0;r!==null&&r.forEach(function(l){var c=n.counters[l.counter];c&&l.increment!==0&&(o=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=l.increment)});var s=[];return o&&a.forEach(function(l){var c=n.counters[l.counter];s.push(l.counter),c||(c=n.counters[l.counter]=[]),c.push(l.reset)}),s},t}(),ZRt={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"]},XRt={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},JTa={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ZTa={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},z$=function(t,e,n,r,a,o){return t<e||t>n?Jne(t,a,o.length>0):r.integers.reduce(function(s,l,c){for(;t>=l;)t-=l,s+=r.values[c];return s},"")+o},Nmn=function(t,e,n,r){var a="";do n||t--,a=r(t)+a,t/=e;while(t*e>=e);return a},Nh=function(t,e,n,r,a){var o=n-e+1;return(t<0?"-":"")+(Nmn(Math.abs(t),o,r,function(s){return Bh(Math.floor(s%o)+e)})+a)},R4=function(t,e,n){n===void 0&&(n=". ");var r=e.length;return Nmn(Math.abs(t),r,!1,function(a){return e[Math.floor(a%r)]})+n},dF=1,VI=2,KI=4,CZ=8,Ik=function(t,e,n,r,a,o){if(t<-9999||t>9999)return Jne(t,4,a.length>0);var s=Math.abs(t),l=a;if(s===0)return e[0]+l;for(var c=0;s>0&&c<=4;c++){var u=s%10;u===0&&lp(o,dF)&&l!==""?l=e[u]+l:u>1||u===1&&c===0||u===1&&c===1&&lp(o,VI)||u===1&&c===1&&lp(o,KI)&&t>100||u===1&&c>1&&lp(o,CZ)?l=e[u]+(c>0?n[c-1]:"")+l:u===1&&c>0&&(l=n[c-1]+l),s=Math.floor(s/10)}return(t<0?r:"")+l},eMt="十百千萬",tMt="拾佰仟萬",nMt="マイナス",NBe="마이너스",Jne=function(t,e,n){var r=n?". ":"",a=n?"、":"",o=n?", ":"",s=n?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var l=Nh(t,48,57,!0,r);return l.length<4?"0"+l:l;case 4:return R4(t,"〇一二三四五六七八九",a);case 6:return z$(t,1,3999,ZRt,3,r).toLowerCase();case 7:return z$(t,1,3999,ZRt,3,r);case 8:return Nh(t,945,969,!1,r);case 9:return Nh(t,97,122,!1,r);case 10:return Nh(t,65,90,!1,r);case 11:return Nh(t,1632,1641,!0,r);case 12:case 49:return z$(t,1,9999,XRt,3,r);case 35:return z$(t,1,9999,XRt,3,r).toLowerCase();case 13:return Nh(t,2534,2543,!0,r);case 14:case 30:return Nh(t,6112,6121,!0,r);case 15:return R4(t,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return R4(t,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Ik(t,"零一二三四五六七八九",eMt,"負",a,VI|KI|CZ);case 47:return Ik(t,"零壹貳參肆伍陸柒捌玖",tMt,"負",a,dF|VI|KI|CZ);case 42:return Ik(t,"零一二三四五六七八九",eMt,"负",a,VI|KI|CZ);case 41:return Ik(t,"零壹贰叁肆伍陆柒捌玖",tMt,"负",a,dF|VI|KI|CZ);case 26:return Ik(t,"〇一二三四五六七八九","十百千万",nMt,a,0);case 25:return Ik(t,"零壱弐参四伍六七八九","拾百千万",nMt,a,dF|VI|KI);case 31:return Ik(t,"영일이삼사오육칠팔구","십백천만",NBe,o,dF|VI|KI);case 33:return Ik(t,"零一二三四五六七八九","十百千萬",NBe,o,0);case 32:return Ik(t,"零壹貳參四五六七八九","拾百千",NBe,o,dF|VI|KI);case 18:return Nh(t,2406,2415,!0,r);case 20:return z$(t,1,19999,ZTa,3,r);case 21:return Nh(t,2790,2799,!0,r);case 22:return Nh(t,2662,2671,!0,r);case 22:return z$(t,1,10999,JTa,3,r);case 23:return R4(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return R4(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Nh(t,3302,3311,!0,r);case 28:return R4(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return R4(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return Nh(t,3792,3801,!0,r);case 37:return Nh(t,6160,6169,!0,r);case 38:return Nh(t,4160,4169,!0,r);case 39:return Nh(t,2918,2927,!0,r);case 40:return Nh(t,1776,1785,!0,r);case 43:return Nh(t,3046,3055,!0,r);case 44:return Nh(t,3174,3183,!0,r);case 45:return Nh(t,3664,3673,!0,r);case 46:return Nh(t,3872,3881,!0,r);case 3:default:return Nh(t,48,57,!0,r)}},Imn="data-html2canvas-ignore",rMt=function(){function t(e,n,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=n,this.counters=new YTa,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,n){var r=this,a=XTa(e,n);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=a.contentWindow,c=l.document,u=n2a(a).then(function(){return f0(r,void 0,void 0,function(){var d,h;return qg(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(o2a),l&&(l.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.scrollY!==n.top||l.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-n.left,l.scrollY-n.top,0,0))),d=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,t2a(c)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(c,h)}).then(function(){return a})]:[2,a]}})})});return c.open(),c.write(i2a(document.doctype)+"<html></html>"),a2a(this.referenceElement.ownerDocument,o,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(e){if(QVe(e,2))debugger;if(kmn(e))return this.createCanvasClone(e);if(qRt(e))return this.createVideoClone(e);if(YRt(e))return this.createStyleClone(e);var n=e.cloneNode(!1);return ZVe(n)&&(ZVe(e)&&e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),JRt(n)?this.createCustomElementClone(n):n},t.prototype.createCustomElementClone=function(e){var n=document.createElement("html2canvascustomelement");return IBe(e.style,n),n},t.prototype.createStyleClone=function(e){try{var n=e.sheet;if(n&&n.cssRules){var r=[].slice.call(n.cssRules,0).reduce(function(o,s){return s&&typeof s.cssText=="string"?o+s.cssText:o},""),a=e.cloneNode(!1);return a.textContent=r,a}}catch(o){if(this.context.logger.error("Unable to access cssRules property",o),o.name!=="SecurityError")throw o}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var n;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var o=e.getContext("2d"),s=a.getContext("2d");if(s)if(!this.options.allowTaint&&o)s.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var l=(n=e.getContext("webgl2"))!==null&&n!==void 0?n:e.getContext("webgl");if(l){var c=l.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},t.prototype.createVideoClone=function(e){var n=e.ownerDocument.createElement("canvas");n.width=e.offsetWidth,n.height=e.offsetHeight;var r=n.getContext("2d");try{return r&&(r.drawImage(e,0,0,n.width,n.height),this.options.allowTaint||r.getImageData(0,0,n.width,n.height)),n}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},t.prototype.appendChildNode=function(e,n,r){(!nj(n)||!qTa(n)&&!n.hasAttribute(Imn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!nj(n)||!YRt(n))&&e.appendChild(this.cloneNode(n,r))},t.prototype.cloneChildNodes=function(e,n,r){for(var a=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(nj(o)&&Mmn(o)&&typeof o.assignedNodes=="function"){var s=o.assignedNodes();s.length&&s.forEach(function(l){return a.appendChildNode(n,l,r)})}else this.appendChildNode(n,o,r)},t.prototype.cloneNode=function(e,n){if(Tmn(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&nj(e)&&(JVe(e)||Qme(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var o=r.getComputedStyle(e),s=r.getComputedStyle(e,":before"),l=r.getComputedStyle(e,":after");this.referenceElement===e&&JVe(a)&&(this.clonedReferenceElement=a),jat(a)&&c2a(a);var c=this.counters.parse(new ORt(this.context,o)),u=this.resolvePseudoContent(e,a,s,lee.BEFORE);JRt(e)&&(n=!0),qRt(e)||this.cloneChildNodes(e,a,n),u&&a.insertBefore(u,a.firstChild);var d=this.resolvePseudoContent(e,a,l,lee.AFTER);return d&&a.appendChild(d),this.counters.pop(c),(o&&(this.options.copyStyles||Qme(e))&&!Rmn(e)||n)&&IBe(o,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(y1e(e)||b1e(e))&&(y1e(a)||b1e(a))&&(a.value=e.value),a}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,n,r,a){var o=this;if(r){var s=r.content,l=n.ownerDocument;if(!(!l||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new ORt(this.context,r));var c=new V_a(this.context,r),u=l.createElement("html2canvaspseudoelement");IBe(r,u),c.content.forEach(function(h){if(h.type===0)u.appendChild(l.createTextNode(h.value));else if(h.type===22){var f=l.createElement("img");f.src=h.value,f.style.opacity="1",u.appendChild(f)}else if(h.type===18){if(h.name==="attr"){var p=h.values.filter(Gc);p.length&&u.appendChild(l.createTextNode(e.getAttribute(p[0].value)||""))}else if(h.name==="counter"){var m=h.values.filter(nz),g=m[0],v=m[1];if(g&&Gc(g)){var A=o.counters.getCounterValue(g.value),y=v&&Gc(v)?WVe.parse(o.context,v.value):3;u.appendChild(l.createTextNode(Jne(A,y,!1)))}}else if(h.name==="counters"){var S=h.values.filter(nz),g=S[0],x=S[1],v=S[2];if(g&&Gc(g)){var w=o.counters.getCounterValues(g.value),_=v&&Gc(v)?WVe.parse(o.context,v.value):3,C=x&&x.type===0?x.value:"",R=w.map(function(N){return Jne(N,_,!1)}).join(C);u.appendChild(l.createTextNode(R))}}}else if(h.type===20)switch(h.value){case"open-quote":u.appendChild(l.createTextNode(PRt(c.quotes,o.quoteDepth++,!0)));break;case"close-quote":u.appendChild(l.createTextNode(PRt(c.quotes,--o.quoteDepth,!1)));break;default:u.appendChild(l.createTextNode(h.value))}}),u.className=XVe+" "+eKe;var d=a===lee.BEFORE?" "+XVe:" "+eKe;return Qme(n)?n.className.baseValue+=d:n.className+=d,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),lee;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(lee||(lee={}));var XTa=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(Imn,"true"),t.body.appendChild(n),n},e2a=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},t2a=function(t){return Promise.all([].slice.call(t.images,0).map(e2a))},n2a=function(t){return new Promise(function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var a=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var o=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(o),e(t))},50)}})},r2a=["all","d","content"],IBe=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);r2a.indexOf(r)===-1&&e.style.setProperty(r,t.getPropertyValue(r))}return e},i2a=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},a2a=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},o2a=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},s2a=":before",l2a=":after",XVe="___html2canvas___pseudoelement_before",eKe="___html2canvas___pseudoelement_after",iMt=`{
    content: "" !important;
    display: none !important;
}`,c2a=function(t){u2a(t,"."+XVe+s2a+iMt+`
         .`+eKe+l2a+iMt)},u2a=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},Pmn=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),d2a=function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(OBe(e)||m2a(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return f0(this,void 0,void 0,function(){var n,r,a,o,s=this;return qg(this,function(l){switch(l.label){case 0:return n=Pmn.isSameOrigin(e),r=!PBe(e)&&this._options.useCORS===!0&&Gm.SUPPORT_CORS_IMAGES&&!n,a=!PBe(e)&&!n&&!OBe(e)&&typeof this._options.proxy=="string"&&Gm.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!PBe(e)&&!OBe(e)&&!a&&!r?[2]:(o=e,a?[4,this.proxy(o)]:[3,2]);case 1:o=l.sent(),l.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,u){var d=new Image;d.onload=function(){return c(d)},d.onerror=u,(g2a(o)||r)&&(d.crossOrigin="anonymous"),d.src=o,d.complete===!0&&setTimeout(function(){return c(d)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,l.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(o,s){var l=Gm.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(l==="text")o(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return o(h.result)},!1),h.addEventListener("error",function(f){return s(f)},!1),h.readAsDataURL(c.response)}else s("Failed to proxy resource "+a+" with status code "+c.status)},c.onerror=s;var u=r.indexOf("?")>-1?"&":"?";if(c.open("GET",""+r+u+"url="+encodeURIComponent(e)+"&responseType="+l),l!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=l),n._options.imageTimeout){var d=n._options.imageTimeout;c.timeout=d,c.ontimeout=function(){return s("Timed out ("+d+"ms) proxying "+a)}}c.send()})},t}(),h2a=/^data:image\/svg\+xml/i,f2a=/^data:image\/.*;base64,/i,p2a=/^data:image\/.*/i,m2a=function(t){return Gm.SUPPORT_SVG_DRAWING||!v2a(t)},PBe=function(t){return p2a.test(t)},g2a=function(t){return f2a.test(t)},OBe=function(t){return t.substr(0,4)==="blob"},v2a=function(t){return t.substr(-3).toLowerCase()==="svg"||h2a.test(t)},hi=function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),G$=function(t,e,n){return new hi(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Ede=function(){function t(e,n,r,a){this.type=1,this.start=e,this.startControl=n,this.endControl=r,this.end=a}return t.prototype.subdivide=function(e,n){var r=G$(this.start,this.startControl,e),a=G$(this.startControl,this.endControl,e),o=G$(this.endControl,this.end,e),s=G$(r,a,e),l=G$(a,o,e),c=G$(s,l,e);return n?new t(this.start,r,s,c):new t(c,l,o,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),cx=function(t){return t.type===1},A2a=function(){function t(e){var n=e.styles,r=e.bounds,a=_Z(n.borderTopLeftRadius,r.width,r.height),o=a[0],s=a[1],l=_Z(n.borderTopRightRadius,r.width,r.height),c=l[0],u=l[1],d=_Z(n.borderBottomRightRadius,r.width,r.height),h=d[0],f=d[1],p=_Z(n.borderBottomLeftRadius,r.width,r.height),m=p[0],g=p[1],v=[];v.push((o+c)/r.width),v.push((m+h)/r.width),v.push((s+g)/r.height),v.push((u+f)/r.height);var A=Math.max.apply(Math,v);A>1&&(o/=A,s/=A,c/=A,u/=A,h/=A,f/=A,m/=A,g/=A);var y=r.width-c,S=r.height-f,x=r.width-h,w=r.height-g,_=n.borderTopWidth,C=n.borderRightWidth,R=n.borderBottomWidth,k=n.borderLeftWidth,P=Du(n.paddingTop,e.bounds.width),N=Du(n.paddingRight,e.bounds.width),L=Du(n.paddingBottom,e.bounds.width),I=Du(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||s>0?sd(r.left+k/3,r.top+_/3,o-k/3,s-_/3,gc.TOP_LEFT):new hi(r.left+k/3,r.top+_/3),this.topRightBorderDoubleOuterBox=o>0||s>0?sd(r.left+y,r.top+_/3,c-C/3,u-_/3,gc.TOP_RIGHT):new hi(r.left+r.width-C/3,r.top+_/3),this.bottomRightBorderDoubleOuterBox=h>0||f>0?sd(r.left+x,r.top+S,h-C/3,f-R/3,gc.BOTTOM_RIGHT):new hi(r.left+r.width-C/3,r.top+r.height-R/3),this.bottomLeftBorderDoubleOuterBox=m>0||g>0?sd(r.left+k/3,r.top+w,m-k/3,g-R/3,gc.BOTTOM_LEFT):new hi(r.left+k/3,r.top+r.height-R/3),this.topLeftBorderDoubleInnerBox=o>0||s>0?sd(r.left+k*2/3,r.top+_*2/3,o-k*2/3,s-_*2/3,gc.TOP_LEFT):new hi(r.left+k*2/3,r.top+_*2/3),this.topRightBorderDoubleInnerBox=o>0||s>0?sd(r.left+y,r.top+_*2/3,c-C*2/3,u-_*2/3,gc.TOP_RIGHT):new hi(r.left+r.width-C*2/3,r.top+_*2/3),this.bottomRightBorderDoubleInnerBox=h>0||f>0?sd(r.left+x,r.top+S,h-C*2/3,f-R*2/3,gc.BOTTOM_RIGHT):new hi(r.left+r.width-C*2/3,r.top+r.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||g>0?sd(r.left+k*2/3,r.top+w,m-k*2/3,g-R*2/3,gc.BOTTOM_LEFT):new hi(r.left+k*2/3,r.top+r.height-R*2/3),this.topLeftBorderStroke=o>0||s>0?sd(r.left+k/2,r.top+_/2,o-k/2,s-_/2,gc.TOP_LEFT):new hi(r.left+k/2,r.top+_/2),this.topRightBorderStroke=o>0||s>0?sd(r.left+y,r.top+_/2,c-C/2,u-_/2,gc.TOP_RIGHT):new hi(r.left+r.width-C/2,r.top+_/2),this.bottomRightBorderStroke=h>0||f>0?sd(r.left+x,r.top+S,h-C/2,f-R/2,gc.BOTTOM_RIGHT):new hi(r.left+r.width-C/2,r.top+r.height-R/2),this.bottomLeftBorderStroke=m>0||g>0?sd(r.left+k/2,r.top+w,m-k/2,g-R/2,gc.BOTTOM_LEFT):new hi(r.left+k/2,r.top+r.height-R/2),this.topLeftBorderBox=o>0||s>0?sd(r.left,r.top,o,s,gc.TOP_LEFT):new hi(r.left,r.top),this.topRightBorderBox=c>0||u>0?sd(r.left+y,r.top,c,u,gc.TOP_RIGHT):new hi(r.left+r.width,r.top),this.bottomRightBorderBox=h>0||f>0?sd(r.left+x,r.top+S,h,f,gc.BOTTOM_RIGHT):new hi(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=m>0||g>0?sd(r.left,r.top+w,m,g,gc.BOTTOM_LEFT):new hi(r.left,r.top+r.height),this.topLeftPaddingBox=o>0||s>0?sd(r.left+k,r.top+_,Math.max(0,o-k),Math.max(0,s-_),gc.TOP_LEFT):new hi(r.left+k,r.top+_),this.topRightPaddingBox=c>0||u>0?sd(r.left+Math.min(y,r.width-C),r.top+_,y>r.width+C?0:Math.max(0,c-C),Math.max(0,u-_),gc.TOP_RIGHT):new hi(r.left+r.width-C,r.top+_),this.bottomRightPaddingBox=h>0||f>0?sd(r.left+Math.min(x,r.width-k),r.top+Math.min(S,r.height-R),Math.max(0,h-C),Math.max(0,f-R),gc.BOTTOM_RIGHT):new hi(r.left+r.width-C,r.top+r.height-R),this.bottomLeftPaddingBox=m>0||g>0?sd(r.left+k,r.top+Math.min(w,r.height-R),Math.max(0,m-k),Math.max(0,g-R),gc.BOTTOM_LEFT):new hi(r.left+k,r.top+r.height-R),this.topLeftContentBox=o>0||s>0?sd(r.left+k+I,r.top+_+P,Math.max(0,o-(k+I)),Math.max(0,s-(_+P)),gc.TOP_LEFT):new hi(r.left+k+I,r.top+_+P),this.topRightContentBox=c>0||u>0?sd(r.left+Math.min(y,r.width+k+I),r.top+_+P,y>r.width+k+I?0:c-k+I,u-(_+P),gc.TOP_RIGHT):new hi(r.left+r.width-(C+N),r.top+_+P),this.bottomRightContentBox=h>0||f>0?sd(r.left+Math.min(x,r.width-(k+I)),r.top+Math.min(S,r.height+_+P),Math.max(0,h-(C+N)),f-(R+L),gc.BOTTOM_RIGHT):new hi(r.left+r.width-(C+N),r.top+r.height-(R+L)),this.bottomLeftContentBox=m>0||g>0?sd(r.left+k+I,r.top+w,Math.max(0,m-(k+I)),g-(R+L),gc.BOTTOM_LEFT):new hi(r.left+k+I,r.top+r.height-(R+L))}return t}(),gc;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gc||(gc={}));var sd=function(t,e,n,r,a){var o=4*((Math.sqrt(2)-1)/3),s=n*o,l=r*o,c=t+n,u=e+r;switch(a){case gc.TOP_LEFT:return new Ede(new hi(t,u),new hi(t,u-l),new hi(c-s,e),new hi(c,e));case gc.TOP_RIGHT:return new Ede(new hi(t,e),new hi(t+s,e),new hi(c,u-l),new hi(c,u));case gc.BOTTOM_RIGHT:return new Ede(new hi(c,e),new hi(c,e+l),new hi(t+s,u),new hi(t,u));case gc.BOTTOM_LEFT:default:return new Ede(new hi(c,u),new hi(c-s,u),new hi(t,e+l),new hi(t,e))}},x1e=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},y2a=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},E1e=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},b2a=function(){function t(e,n,r){this.offsetX=e,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return t}(),Sde=function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t}(),x2a=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),E2a=function(t){return t.type===0},Omn=function(t){return t.type===1},S2a=function(t){return t.type===2},aMt=function(t,e){return t.length===e.length?t.some(function(n,r){return n===e[r]}):!1},w2a=function(t,e,n,r,a){return t.map(function(o,s){switch(s){case 0:return o.add(e,n);case 1:return o.add(e+r,n);case 2:return o.add(e+r,n+a);case 3:return o.add(e,n+a)}return o})},Lmn=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),Bmn=function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new A2a(this.container),this.container.styles.opacity<1&&this.effects.push(new x2a(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new b2a(r,a,o))}if(this.container.styles.overflowX!==0){var s=x1e(this.curves),l=E1e(this.curves);aMt(s,l)?this.effects.push(new Sde(s,6)):(this.effects.push(new Sde(s,2)),this.effects.push(new Sde(l,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,a=this.effects.slice(0);r;){var o=r.effects.filter(function(c){return!Omn(c)});if(n||r.container.styles.position!==0||!r.parent){if(a.unshift.apply(a,o),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=x1e(r.curves),l=E1e(r.curves);aMt(s,l)||a.unshift(new Sde(l,6))}}else a.unshift.apply(a,o);r=r.parent}return a.filter(function(c){return lp(c.target,e)})},t}(),tKe=function(t,e,n,r){t.container.elements.forEach(function(a){var o=lp(a.flags,4),s=lp(a.flags,2),l=new Bmn(a,t);lp(a.styles.display,2048)&&r.push(l);var c=lp(a.flags,8)?[]:r;if(o||s){var u=o||a.styles.isPositioned()?n:e,d=new Lmn(l);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var h=a.styles.zIndex.order;if(h<0){var f=0;u.negativeZIndex.some(function(m,g){return h>m.element.container.styles.zIndex.order?(f=g,!1):f>0}),u.negativeZIndex.splice(f,0,d)}else if(h>0){var p=0;u.positiveZIndex.some(function(m,g){return h>=m.element.container.styles.zIndex.order?(p=g+1,!1):p>0}),u.positiveZIndex.splice(p,0,d)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else a.styles.isFloating()?u.nonPositionedFloats.push(d):u.nonPositionedInlineLevel.push(d);tKe(l,d,o?d:n,c)}else a.styles.isInlineLevel()?e.inlineLevel.push(l):e.nonInlineLevel.push(l),tKe(l,e,n,c);lp(a.flags,8)&&Dmn(a,c)})},Dmn=function(t,e){for(var n=t instanceof YVe?t.start:1,r=t instanceof YVe?t.reversed:!1,a=0;a<e.length;a++){var o=e[a];o.container instanceof bmn&&typeof o.container.value=="number"&&o.container.value!==0&&(n=o.container.value),o.listValue=Jne(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},_2a=function(t){var e=new Bmn(t,null),n=new Lmn(e),r=[];return tKe(e,n,n,r),Dmn(e.container,r),n},oMt=function(t,e){switch(e){case 0:return Sx(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Sx(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Sx(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Sx(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},T2a=function(t,e){switch(e){case 0:return Sx(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Sx(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Sx(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Sx(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},C2a=function(t,e){switch(e){case 0:return Sx(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Sx(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Sx(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Sx(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},k2a=function(t,e){switch(e){case 0:return wde(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return wde(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return wde(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return wde(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},wde=function(t,e){var n=[];return cx(t)?n.push(t.subdivide(.5,!1)):n.push(t),cx(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},Sx=function(t,e,n,r){var a=[];return cx(t)?a.push(t.subdivide(.5,!1)):a.push(t),cx(n)?a.push(n.subdivide(.5,!0)):a.push(n),cx(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),cx(e)?a.push(e.subdivide(.5,!1).reverse()):a.push(e),a},$mn=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},S1e=function(t){var e=t.styles,n=t.bounds,r=Du(e.paddingLeft,n.width),a=Du(e.paddingRight,n.width),o=Du(e.paddingTop,n.width),s=Du(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,o+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+a),-(e.borderTopWidth+e.borderBottomWidth+o+s))},R2a=function(t,e){return t===0?e.bounds:t===2?S1e(e):$mn(e)},M2a=function(t,e){return t===0?e.bounds:t===2?S1e(e):$mn(e)},LBe=function(t,e,n){var r=R2a(hF(t.styles.backgroundOrigin,e),t),a=M2a(hF(t.styles.backgroundClip,e),t),o=N2a(hF(t.styles.backgroundSize,e),n,r),s=o[0],l=o[1],c=_Z(hF(t.styles.backgroundPosition,e),r.width-s,r.height-l),u=I2a(hF(t.styles.backgroundRepeat,e),c,o,r,a),d=Math.round(r.left+c[0]),h=Math.round(r.top+c[1]);return[u,d,h,s,l]},V$=function(t){return Gc(t)&&t.value===lH.AUTO},_de=function(t){return typeof t=="number"},N2a=function(t,e,n){var r=e[0],a=e[1],o=e[2],s=t[0],l=t[1];if(!s)return[0,0];if(If(s)&&l&&If(l))return[Du(s,n.width),Du(l,n.height)];var c=_de(o);if(Gc(s)&&(s.value===lH.CONTAIN||s.value===lH.COVER)){if(_de(o)){var u=n.width/n.height;return u<o!=(s.value===lH.COVER)?[n.width,n.width/o]:[n.height*o,n.height]}return[n.width,n.height]}var d=_de(r),h=_de(a),f=d||h;if(V$(s)&&(!l||V$(l))){if(d&&h)return[r,a];if(!c&&!f)return[n.width,n.height];if(f&&c){var p=d?r:a*o,m=h?a:r/o;return[p,m]}var g=d?r:n.width,v=h?a:n.height;return[g,v]}if(c){var A=0,y=0;return If(s)?A=Du(s,n.width):If(l)&&(y=Du(l,n.height)),V$(s)?A=y*o:(!l||V$(l))&&(y=A/o),[A,y]}var S=null,x=null;if(If(s)?S=Du(s,n.width):l&&If(l)&&(x=Du(l,n.height)),S!==null&&(!l||V$(l))&&(x=d&&h?S/r*a:n.height),x!==null&&V$(s)&&(S=d&&h?x/a*r:n.width),S!==null&&x!==null)return[S,x];throw new Error("Unable to calculate background-size for element")},hF=function(t,e){var n=t[e];return typeof n>"u"?t[0]:n},I2a=function(t,e,n,r,a){var o=e[0],s=e[1],l=n[0],c=n[1];switch(t){case 2:return[new hi(Math.round(r.left),Math.round(r.top+s)),new hi(Math.round(r.left+r.width),Math.round(r.top+s)),new hi(Math.round(r.left+r.width),Math.round(c+r.top+s)),new hi(Math.round(r.left),Math.round(c+r.top+s))];case 3:return[new hi(Math.round(r.left+o),Math.round(r.top)),new hi(Math.round(r.left+o+l),Math.round(r.top)),new hi(Math.round(r.left+o+l),Math.round(r.height+r.top)),new hi(Math.round(r.left+o),Math.round(r.height+r.top))];case 1:return[new hi(Math.round(r.left+o),Math.round(r.top+s)),new hi(Math.round(r.left+o+l),Math.round(r.top+s)),new hi(Math.round(r.left+o+l),Math.round(r.top+s+c)),new hi(Math.round(r.left+o),Math.round(r.top+s+c))];default:return[new hi(Math.round(a.left),Math.round(a.top)),new hi(Math.round(a.left+a.width),Math.round(a.top)),new hi(Math.round(a.left+a.width),Math.round(a.height+a.top)),new hi(Math.round(a.left),Math.round(a.height+a.top))]}},P2a="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sMt="Hidden Text",O2a=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var r=this._document.createElement("div"),a=this._document.createElement("img"),o=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),a.src=P2a,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=n,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(sMt)),r.appendChild(o),r.appendChild(a);var l=a.offsetTop-o.offsetTop+2;r.removeChild(o),r.appendChild(this._document.createTextNode(sMt)),r.style.lineHeight="normal",a.style.verticalAlign="super";var c=a.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:l,middle:c}},t.prototype.getMetrics=function(e,n){var r=e+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,n)),this._data[r]},t}(),Fmn=function(){function t(e,n){this.context=e,this.options=n}return t}(),L2a=1e4,B2a=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a._activeEffects=[],a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),r.canvas||(a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px"),a.fontMetrics=new O2a(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),a}return e.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();n.forEach(function(a){return r.applyEffect(a)})},e.prototype.applyEffect=function(n){this.ctx.save(),S2a(n)&&(this.ctx.globalAlpha=n.opacity),E2a(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),Omn(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return f0(this,void 0,void 0,function(){var r;return qg(this,function(a){switch(a.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return f0(this,void 0,void 0,function(){return qg(this,function(r){switch(r.label){case 0:if(lp(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,r,a){var o=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+a);else{var s=$at(n.text);s.reduce(function(l,c){return o.ctx.fillText(c,l,n.bounds.top+a),l+o.ctx.measureText(c).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),a=H2a(n.fontFamily).join(", "),o=qoe(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,o,a].join(" "),a,o]},e.prototype.renderTextNode=function(n,r){return f0(this,void 0,void 0,function(){var a,o,s,l,c,u,d,h,f=this;return qg(this,function(p){return a=this.createFontStyle(r),o=a[0],s=a[1],l=a[2],this.ctx.font=o,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,l),u=c.baseline,d=c.middle,h=r.paintOrder,n.textBounds.forEach(function(m){h.forEach(function(g){switch(g){case 0:f.ctx.fillStyle=Kp(r.color),f.renderTextWithLetterSpacing(m,r.letterSpacing,u);var v=r.textShadow;v.length&&m.text.trim().length&&(v.slice(0).reverse().forEach(function(A){f.ctx.shadowColor=Kp(A.color),f.ctx.shadowOffsetX=A.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=A.offsetY.number*f.options.scale,f.ctx.shadowBlur=A.blur.number,f.renderTextWithLetterSpacing(m,r.letterSpacing,u)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=Kp(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(A){switch(A){case 1:f.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+u),m.bounds.width,1);break;case 2:f.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:f.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+d),m.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&m.text.trim().length&&(f.ctx.strokeStyle=Kp(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+u)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,r,a){if(a&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var o=S1e(n),s=E1e(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,n.intrinsicWidth,n.intrinsicHeight,o.left,o.top,o.width,o.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return f0(this,void 0,void 0,function(){var r,a,o,s,l,c,y,y,u,d,h,f,x,p,m,w,g,v,A,y,S,x,w;return qg(this,function(_){switch(_.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,a=n.curves,o=r.styles,s=0,l=r.textNodes,_.label=1;case 1:return s<l.length?(c=l[s],[4,this.renderTextNode(c,o)]):[3,4];case 2:_.sent(),_.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof vmn))return[3,8];_.label=5;case 5:return _.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return y=_.sent(),this.renderReplacedElement(r,a,y),[3,8];case 7:return _.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Amn&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof ymn))return[3,12];_.label=9;case 9:return _.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return y=_.sent(),this.renderReplacedElement(r,a,y),[3,12];case 11:return _.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Smn&&r.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,u.render(r.tree)]):[3,14];case 13:d=_.sent(),r.width&&r.height&&this.ctx.drawImage(d,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),_.label=14;case 14:if(r instanceof Fat&&(h=Math.min(r.bounds.width,r.bounds.height),r.type===v1e?r.checked&&(this.ctx.save(),this.path([new hi(r.bounds.left+h*.39363,r.bounds.top+h*.79),new hi(r.bounds.left+h*.16,r.bounds.top+h*.5549),new hi(r.bounds.left+h*.27347,r.bounds.top+h*.44071),new hi(r.bounds.left+h*.39694,r.bounds.top+h*.5649),new hi(r.bounds.left+h*.72983,r.bounds.top+h*.23),new hi(r.bounds.left+h*.84,r.bounds.top+h*.34085),new hi(r.bounds.left+h*.39363,r.bounds.top+h*.79)]),this.ctx.fillStyle=Kp(QRt),this.ctx.fill(),this.ctx.restore()):r.type===A1e&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+h/2,r.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Kp(QRt),this.ctx.fill(),this.ctx.restore())),D2a(r)&&r.value.length){switch(f=this.createFontStyle(o),x=f[0],p=f[1],m=this.fontMetrics.getMetrics(x,p).baseline,this.ctx.font=x,this.ctx.fillStyle=Kp(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=F2a(r.styles.textAlign),w=S1e(r),g=0,r.styles.textAlign){case 1:g+=w.width/2;break;case 2:g+=w.width;break}v=w.add(g,0,0,-w.height/2+1),this.ctx.save(),this.path([new hi(w.left,w.top),new hi(w.left+w.width,w.top),new hi(w.left+w.width,w.top+w.height),new hi(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new see(r.value,v),o.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!lp(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(A=r.styles.listStyleImage,A.type!==0)return[3,18];y=void 0,S=A.url,_.label=15;case 15:return _.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return y=_.sent(),this.ctx.drawImage(y,r.bounds.left-(y.width+10),r.bounds.top),[3,18];case 17:return _.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(x=this.createFontStyle(o)[0],this.ctx.font=x,this.ctx.fillStyle=Kp(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new RM(r.bounds.left,r.bounds.top+Du(r.styles.paddingTop,r.bounds.width),r.bounds.width,NRt(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new see(n.listValue,w),o.letterSpacing,NRt(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),_.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(n){return f0(this,void 0,void 0,function(){var r,a,A,o,s,A,l,c,A,u,d,A,h,f,A,p,m,A,g,v,A;return qg(this,function(y){switch(y.label){case 0:if(lp(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:y.sent(),r=0,a=n.negativeZIndex,y.label=2;case 2:return r<a.length?(A=a[r],[4,this.renderStack(A)]):[3,5];case 3:y.sent(),y.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:y.sent(),o=0,s=n.nonInlineLevel,y.label=7;case 7:return o<s.length?(A=s[o],[4,this.renderNode(A)]):[3,10];case 8:y.sent(),y.label=9;case 9:return o++,[3,7];case 10:l=0,c=n.nonPositionedFloats,y.label=11;case 11:return l<c.length?(A=c[l],[4,this.renderStack(A)]):[3,14];case 12:y.sent(),y.label=13;case 13:return l++,[3,11];case 14:u=0,d=n.nonPositionedInlineLevel,y.label=15;case 15:return u<d.length?(A=d[u],[4,this.renderStack(A)]):[3,18];case 16:y.sent(),y.label=17;case 17:return u++,[3,15];case 18:h=0,f=n.inlineLevel,y.label=19;case 19:return h<f.length?(A=f[h],[4,this.renderNode(A)]):[3,22];case 20:y.sent(),y.label=21;case 21:return h++,[3,19];case 22:p=0,m=n.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<m.length?(A=m[p],[4,this.renderStack(A)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:g=0,v=n.positiveZIndex,y.label=27;case 27:return g<v.length?(A=v[g],[4,this.renderStack(A)]):[3,30];case 28:y.sent(),y.label=29;case 29:return g++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(n){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(n.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},e.prototype.formatPath=function(n){var r=this;n.forEach(function(a,o){var s=cx(a)?a.start:a;o===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),cx(a)&&r.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},e.prototype.renderRepeat=function(n,r,a,o){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(a,o),this.ctx.fill(),this.ctx.translate(-a,-o)},e.prototype.resizeImage=function(n,r,a){var o;if(n.width===r&&n.height===a)return n;var s=(o=this.canvas.ownerDocument)!==null&&o!==void 0?o:document,l=s.createElement("canvas");l.width=Math.max(1,r),l.height=Math.max(1,a);var c=l.getContext("2d");return c.drawImage(n,0,0,n.width,n.height,0,0,r,a),l},e.prototype.renderBackgroundImage=function(n){return f0(this,void 0,void 0,function(){var r,a,o,s,l,c;return qg(this,function(u){switch(u.label){case 0:r=n.styles.backgroundImage.length-1,a=function(d){var h,f,p,P,M,D,I,b,R,m,P,M,D,I,b,g,v,A,y,S,x,w,_,C,R,k,P,N,L,I,b,T,M,D,B,j,H,U,$,z,Z,K;return qg(this,function(Q){switch(Q.label){case 0:if(d.type!==0)return[3,5];h=void 0,f=d.url,Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,o.context.cache.match(f)];case 2:return h=Q.sent(),[3,4];case 3:return Q.sent(),o.context.logger.error("Error loading background-image "+f),[3,4];case 4:return h&&(p=LBe(n,r,[h.width,h.height,h.width/h.height]),P=p[0],M=p[1],D=p[2],I=p[3],b=p[4],R=o.ctx.createPattern(o.resizeImage(h,I,b),"repeat"),o.renderRepeat(P,R,M,D)),[3,6];case 5:Ewa(d)?(m=LBe(n,r,[null,null,null]),P=m[0],M=m[1],D=m[2],I=m[3],b=m[4],g=vwa(d.angle,I,b),v=g[0],A=g[1],y=g[2],S=g[3],x=g[4],w=document.createElement("canvas"),w.width=I,w.height=b,_=w.getContext("2d"),C=_.createLinearGradient(A,S,y,x),RRt(d.stops,v).forEach(function(ee){return C.addColorStop(ee.stop,Kp(ee.color))}),_.fillStyle=C,_.fillRect(0,0,I,b),I>0&&b>0&&(R=o.ctx.createPattern(w,"repeat"),o.renderRepeat(P,R,M,D))):Swa(d)&&(k=LBe(n,r,[null,null,null]),P=k[0],N=k[1],L=k[2],I=k[3],b=k[4],T=d.position.length===0?[Lat]:d.position,M=Du(T[0],I),D=Du(T[T.length-1],b),B=Awa(d,M,D,I,b),j=B[0],H=B[1],j>0&&H>0&&(U=o.ctx.createRadialGradient(N+M,L+D,0,N+M,L+D,j),RRt(d.stops,j*2).forEach(function(ee){return U.addColorStop(ee.stop,Kp(ee.color))}),o.path(P),o.ctx.fillStyle=U,j!==H?($=n.bounds.left+.5*n.bounds.width,z=n.bounds.top+.5*n.bounds.height,Z=H/j,K=1/Z,o.ctx.save(),o.ctx.translate($,z),o.ctx.transform(1,0,0,Z,0,0),o.ctx.translate(-$,-z),o.ctx.fillRect(N,K*(L-z)+z,I,b*K),o.ctx.restore()):o.ctx.fill())),Q.label=6;case 6:return r--,[2]}})},o=this,s=0,l=n.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<l.length?(c=l[s],[5,a(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(n,r,a){return f0(this,void 0,void 0,function(){return qg(this,function(o){return this.path(oMt(a,r)),this.ctx.fillStyle=Kp(n),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(n,r,a,o){return f0(this,void 0,void 0,function(){var s,l;return qg(this,function(c){switch(c.label){case 0:return r<3?[4,this.renderSolidBorder(n,a,o)]:[3,2];case 1:return c.sent(),[2];case 2:return s=T2a(o,a),this.path(s),this.ctx.fillStyle=Kp(n),this.ctx.fill(),l=C2a(o,a),this.path(l),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(n){return f0(this,void 0,void 0,function(){var r,a,o,s,l,c,u,d,h=this;return qg(this,function(f){switch(f.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,a=!k5(r.backgroundColor)||r.backgroundImage.length,o=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=$2a(hF(r.backgroundClip,0),n.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),k5(r.backgroundColor)||(this.ctx.fillStyle=Kp(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(p){h.ctx.save();var m=x1e(n.curves),g=p.inset?0:L2a,v=w2a(m,-g+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(h.path(m),h.ctx.clip(),h.mask(v)):(h.mask(m),h.ctx.clip(),h.path(v)),h.ctx.shadowOffsetX=p.offsetX.number+g,h.ctx.shadowOffsetY=p.offsetY.number,h.ctx.shadowColor=Kp(p.color),h.ctx.shadowBlur=p.blur.number,h.ctx.fillStyle=p.inset?Kp(p.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),f.label=2;case 2:l=0,c=0,u=o,f.label=3;case 3:return c<u.length?(d=u[c],d.style!==0&&!k5(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,l,n.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,l,n.curves,3)];case 6:return f.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,l,n.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,l,n.curves)];case 10:f.sent(),f.label=11;case 11:l++,f.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,r,a,o,s){return f0(this,void 0,void 0,function(){var l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_,w,_;return qg(this,function(C){return this.ctx.save(),l=k2a(o,a),c=oMt(o,a),s===2&&(this.path(c),this.ctx.clip()),cx(c[0])?(u=c[0].start.x,d=c[0].start.y):(u=c[0].x,d=c[0].y),cx(c[1])?(h=c[1].end.x,f=c[1].end.y):(h=c[1].x,f=c[1].y),a===0||a===2?p=Math.abs(u-h):p=Math.abs(d-f),this.ctx.beginPath(),s===3?this.formatPath(l):this.formatPath(c.slice(0,2)),m=r<3?r*3:r*2,g=r<3?r*2:r,s===3&&(m=r,g=r),v=!0,p<=m*2?v=!1:p<=m*2+g?(A=p/(2*m+g),m*=A,g*=A):(y=Math.floor((p+g)/(m+g)),S=(p-y*m)/(y-1),x=(p-(y+1)*m)/y,g=x<=0||Math.abs(g-S)<Math.abs(g-x)?S:x),v&&(s===3?this.ctx.setLineDash([0,m+g]):this.ctx.setLineDash([m,g])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Kp(n),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(cx(c[0])&&(w=c[3],_=c[0],this.ctx.beginPath(),this.formatPath([new hi(w.end.x,w.end.y),new hi(_.start.x,_.start.y)]),this.ctx.stroke()),cx(c[1])&&(w=c[1],_=c[2],this.ctx.beginPath(),this.formatPath([new hi(w.end.x,w.end.y),new hi(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(n){return f0(this,void 0,void 0,function(){var r;return qg(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Kp(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=_2a(n),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(Fmn),D2a=function(t){return t instanceof Emn||t instanceof xmn?!0:t instanceof Fat&&t.type!==A1e&&t.type!==v1e},$2a=function(t,e){switch(t){case 0:return x1e(e);case 2:return y2a(e);case 1:default:return E1e(e)}},F2a=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},j2a=["-apple-system","system-ui"],H2a=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return j2a.indexOf(e)===-1}):t},U2a=function(t){Jw(e,t);function e(n,r){var a=t.call(this,n,r)||this;return a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=r,a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),a}return e.prototype.render=function(n){return f0(this,void 0,void 0,function(){var r,a;return qg(this,function(o){switch(o.label){case 0:return r=qVe(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,z2a(r)];case 1:return a=o.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Kp(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(Fmn),z2a=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},G2a=function(){function t(e){var n=e.id,r=e.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,rde([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,rde([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,rde([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,rde([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),V2a=function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new G2a({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new d2a(this,e)}return t.instanceCount=1,t}(),K2a=function(t,e){return e===void 0&&(e={}),W2a(t,e)};typeof window<"u"&&Pmn.setContext(window);var W2a=function(t,e){return f0(void 0,void 0,void 0,function(){var n,r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,C,_,C,R,k,P,N,L,I,b,T,M,D,B,j,H,U,$,z,Z;return qg(this,function(K){switch(K.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return a={allowTaint:(R=e.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(k=e.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:e.proxy,useCORS:(P=e.useCORS)!==null&&P!==void 0?P:!1},o=OVe({logging:(N=e.logging)!==null&&N!==void 0?N:!0,cache:e.cache},a),s={windowWidth:(L=e.windowWidth)!==null&&L!==void 0?L:r.innerWidth,windowHeight:(I=e.windowHeight)!==null&&I!==void 0?I:r.innerHeight,scrollX:(b=e.scrollX)!==null&&b!==void 0?b:r.pageXOffset,scrollY:(T=e.scrollY)!==null&&T!==void 0?T:r.pageYOffset},l=new RM(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new V2a(o,l),u=(M=e.foreignObjectRendering)!==null&&M!==void 0?M:!1,d={allowTaint:(D=e.allowTaint)!==null&&D!==void 0?D:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+l.width+"x"+l.height+" scrolled to "+-l.left+","+-l.top),h=new rMt(c,t,d),f=h.clonedReferenceElement,f?[4,h.toIFrame(n,l)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=K.sent(),m=jat(f)||QTa(f)?wEa(f.ownerDocument):yTe(c,f),g=m.width,v=m.height,A=m.left,y=m.top,S=Q2a(c,f,e.backgroundColor),x={canvas:e.canvas,backgroundColor:S,scale:(j=(B=e.scale)!==null&&B!==void 0?B:r.devicePixelRatio)!==null&&j!==void 0?j:1,x:((H=e.x)!==null&&H!==void 0?H:0)+A,y:((U=e.y)!==null&&U!==void 0?U:0)+y,width:($=e.width)!==null&&$!==void 0?$:Math.ceil(g),height:(z=e.height)!==null&&z!==void 0?z:Math.ceil(v)},u?(c.logger.debug("Document cloned, using foreign object rendering"),C=new U2a(c,x),[4,C.render(f)]):[3,3];case 2:return w=K.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+A+","+y+" with size "+g+"x"+v+" using computed rendering"),c.logger.debug("Starting DOM parsing"),_=_mn(c,f),S===_.styles.backgroundColor&&(_.styles.backgroundColor=iM.TRANSPARENT),c.logger.debug("Starting renderer for element at "+x.x+","+x.y+" with size "+x.width+"x"+x.height),C=new B2a(c,x),[4,C.render(_)];case 4:w=K.sent(),K.label=5;case 5:return(!((Z=e.removeContainer)!==null&&Z!==void 0)||Z)&&(rMt.destroy(p)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,w]}})})},Q2a=function(t,e,n){var r=e.ownerDocument,a=r.documentElement?aee(t,getComputedStyle(r.documentElement).backgroundColor):iM.TRANSPARENT,o=r.body?aee(t,getComputedStyle(r.body).backgroundColor):iM.TRANSPARENT,s=typeof n=="string"?aee(t,n):n===null?iM.TRANSPARENT:4294967295;return e===r.documentElement?k5(a)?k5(o)?s:o:a:s},Hat={},q2a=As;Object.defineProperty(Hat,"__esModule",{value:!0});var cg=Hat.default=void 0,Y2a=q2a(Ps()),J2a=E;cg=Hat.default=(0,Y2a.default)((0,J2a.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");const jmn=gt.div`
  && {
    display: flex;
    justify-content: center;
    align-items: ${t=>t.isQueryEditor?"flex-start":"center"};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    padding: 16px;
    text-align: center;
    height: 100%;
    width: 100%;
    word-break: break-word;
    overflow: hidden;
  }
  && .message {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: ${t=>t.theme.custom.fontWeight.md};
  }
  && span {
    display: inline-block;
    margin-top: 8px;
    color: ${t=>t.theme.custom.greyText.A9};
    font-size: ${t=>t.theme.custom.fontSize.font12};
  }
  .alertError {
    picture {
      display: block;
    }
    img {
      max-width: 80px;
    }
    .msgBlock {
      position: relative;
      display: inline-flex;
      align-items: center;
      background: ${t=>t.theme.custom.white.A4};
      color: ${t=>t.theme.custom.white.A11};
      border-radius: 8px;
      padding: 8px 8px 8px 12px;
      overflow: hidden;
      .infoIcon {
        font-size: 16px;
        margin-right: 8px;
        color: ${t=>t.theme.custom.pink};
      }
      .message {
        text-align: left;
      }
      &:before,
      &:after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: ${t=>t.theme.custom.pink};
      }
      &:before {
        left: 0;
        width: 3px;
        height: calc(100% - 12px);
      }
      &:after {
        left: 3px;
        width: 10px;
        height: calc(100% - 20px);
        filter: blur(10px);
      }
    }
  }
  .emptyDataMsg {
    margin-top: 10px;
    &:hover {
      color: ${t=>t.theme.custom.white.A11};
      text-decoration: underline;
    }
  }
  .alertWarning .message {
    color: ${t=>t.theme.custom.yellow};
  }
`,Hmn="/assets/errorIcon-dfd90de6.svg",Umn="/assets/errorIcon-8c449549.webp";function Vc(t){const{children:e,title:n,theme:r,isDashboardPreview:a=!1,handleDataEmptyClick:o,emptyDataMessage:s,isQueryEditor:l=!1}=t;return E.jsx(jmn,{theme:r,className:"alertMessageBlock",isQueryEditor:l,children:E.jsxs("div",{className:"alertError",children:[E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:Umn}),E.jsx("img",{src:Hmn,alt:"error-icon"})]}),E.jsx(Pn,{label:n||"",children:E.jsxs("div",{className:"msgBlock",children:[E.jsx(cg,{className:"infoIcon"}),E.jsx("div",{className:"message",children:e})]})}),a&&E.jsx("div",{className:"emptyDataMsg",role:"presentation",onClick:o,children:s})]})})}const zmn=gt.div`
  && {
    height: 100%;
    &.suggetionCounter {
      padding: 0;
      .counterCard {
        background: ${t=>t.theme.custom.cardBg};
        overflow: hidden;
        height: 374px;
        padding: 16px;
        border: 0.5px solid #675b8c;
        .topRow {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 8px;
          text-transform: capitalize;
          > span {
            color: ${t=>t.theme.custom.white.A1};
          }
        }
        .counterBody {
          text-align: left;
          padding: 0 30px;
          margin: 70px 0 0;
          h3 {
            font-size: ${t=>t.theme.custom.heading.h1};
          }
        }
      }
    }
  }
  && .counterCard {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 4px;
    background: ${t=>!t.useImgColors&&t.theme.custom.counterThumbnailBg};
  }
  && .counterCard:before {
    content '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(${t=>t.imgBg});
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100%;
    opacity: 0.5;
    pointer-events: none;
  }
  && .titleRow {
    display: flex;
    .metricDropdown {
      margin-left: auto;
    }
    .counterType {
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      margin-left: auto;
      padding: 5px 8px;
      border-radius: 4px;
      white-space: nowrap;
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font8}};
      color: ${t=>t.theme.custom.white.A11};
      border: 0.734301px solid #675B8C;
      > svg {
        margin-right: 4px;
      }
      .counterIcon {
        width: 15px;
        text-align: right;
        margin-right: 6px;
      }
      &.mean {
        svg path {
          fill: ${t=>t.theme.custom.counterType.A1};
        }
      }
      &.sum {
        svg path {
          stroke: ${t=>t.theme.custom.counterType.A2};
        }
      }
      &.min {
        svg path {
          fill: ${t=>t.theme.custom.counterType.A3};
        }
      }
      &.max {
        svg path {
          fill:${t=>t.theme.custom.counterType.A4};
        }
      }
      &.default {
        svg {
          margin-bottom: -1px;
        }
      }
    }
  }
  && .counterTitle {
    text-align: left;
    color: ${t=>t.theme.custom.white.A11};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    margin-right: 5px;
  }
  && .counterBody {
    margin: auto 0;
    text-align: center;
    position: relative;
  }
  && .counterBody .counterValue {
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font18}};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    color: ${t=>t.theme.custom.white.A11};
    margin-bottom: 0;
  }
  && .counterBody .counterValue,
  && .counterBody .counterLabel,
  && .counterTitle {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  && .counterBody .counterLabel {
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    display: block;
  }
`,Gmn="/assets/warningIcon-4bcaaefb.png",Z2a="/assets/warningIcon-a99d0605.webp";function Vmn(t){const{children:e,title:n,theme:r,isConfigure:a=!1}=t;return E.jsx(jmn,{theme:r,className:"alertMessageBlock",children:E.jsxs("div",{className:"alertWarning",children:[E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:Z2a}),E.jsx("img",{src:Gmn,alt:"warning-icon"})]}),E.jsx(Pn,{label:n||"",children:E.jsx("div",{className:"message",children:e})}),a&&E.jsx("span",{children:q.CLICK_CONFIGURE})]})})}const RTe=({dashboardView:t})=>E.jsx(E.Fragment,{children:t?E.jsx("div",{className:"chartImg",children:E.jsx("div",{className:"thumbnailChart",children:E.jsx(Ca,{sx:{mx:"auto"},width:"90%",height:"100%"})})}):E.jsx("div",{className:"chartImg",children:E.jsxs("div",{className:"thumbnailChart",children:[E.jsx(Ca,{width:"100%",height:100}),E.jsx(Ca,{width:"100%",height:50}),E.jsx(Ca,{width:"100%",height:90}),E.jsx(Ca,{width:"100%",height:50})]})})}),X2a=gt.div`
  && {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
  }
  && .MuiFormControl-root {
    width: 165px;
    .MuiOutlinedInput-root {
      border: 0.5px solid #675b8c;
    }
  }
  && button {
    margin-left: 8px;
    height: 36px;
    width: 36px;
  }
`,cee=gt.div`
  background: ${t=>{var e,n;return t!=null&&t.$useImgColor?`linear-gradient( 180deg, ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%, ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100% )`:t.theme.custom.tableBg}};
  border-radius: 8px;
  box-shadow: 4px 0px 10px rgb(7 1 26 / 45%);
  padding: 16px;
  margin-bottom: 16px;
  min-width: 250px;
  &.counterThumbnail:before {
    display: ${t=>(t==null?void 0:t.$useImgColor)&&"none"};
  }
  .thumbnailHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    .thumbnailHeadRight {
      display: flex;
    }
  }
  .thumbnailHead label {
    margin-bottom: 0;
    margin-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
  }
  &.chartPopup {
    margin-bottom: 0;
    border: 0.5px solid #675b8c;
    .thumbnailBody {
      position: relative;
      .downloadAsImage {
        top: 0;
      }
    }
  }
  &.datasetThumbnailPopup {
    margin-bottom: 0;
    border: 0.5px solid #675b8c;
  }
  &.chartPopup .thumbnailBody canvas {
    max-height: 300px;
  }
  .addToDashBtn.hide {
    display: none;
  }
`,eCa=gt.div`
  padding: 8px 0;
  overflow: auto;
  .QueryHelpText {
    text-align: left;
  }
  .chartSuggetionList {
    .chartsDesign{
      cursor: pointer;
    } 
    .echarts-for-react {
      & > div{
        cursor:  pointer !important;
      }
    }
    .thumbnailBody{
      svg{
        cursor:  pointer !important;
      }
    }
    display: flex;  
    .thumbnailHead{
      margin-bottom: 16px;
      label{
        font-family: ${t=>t.theme.typography.fontFamily};
        font-size: ${t=>t.theme.custom.fontSize.font12}; 
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
      }
      .MuiButtonBase-root {
        box-shadow: none; 
        background: none;
        height: auto;
        width: auto;
        border: 0;
        color: ${t=>t.theme.custom.white.A1};
      }
    }
  }
  .chartsDesign,
  .counterThumbnail,
  .datasetThumbnail {    
    margin-bottom: 0px;
    flex: 0 0 calc(33.33% - 12px);
    max-width: calc(33.33% - 12px);
    min-width: 200px;
    height: 180px;
    &:not(:last-child) {
      margin-right: 16px;
    }
  }
  .datasetThumbnail {
    .thumbnailHead {
      margin-bottom: 0;
    }
    .strippedTable,
    .MuiTableBody-root .tableBody {
      overflow: hidden !important;
    }
    .strippedTable {
      padding: 0;
      background: transparent;
      box-shadow: unset;
      pointer-events: none;
      .MuiTableCell-head {
        padding: 12px 12px 8px;
        span {
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
        }
      }
    }
  }
  .counterThumbnail {
    position: relative;
    color: ${t=>t.theme.custom.white.A11};
    &:before {
      content '';
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: url(${aTe});
      background-repeat: no-repeat;
      background-position: center bottom;
      background-size: 100%;
      opacity: 0.5;
      pointer-events: none;
    }
    .thumbnailBody{
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      cursor: default;
      .counterType {
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        padding: 5px 8px;
        border-radius: 4px;
        white-space: nowrap;
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font8}};
        border: 0.734301px solid #675B8C;
        svg {
          margin-right: 4px;
        }
        &.mean {
          svg path {
            fill: ${t=>t.theme.custom.counterType.A1};
          }
        }
        &.sum {
          svg path {
            stroke: ${t=>t.theme.custom.counterType.A2};
          }
        }
        &.min {
          svg path {
            fill: ${t=>t.theme.custom.counterType.A3};
          }
        }
        &.max {
          svg path {
            fill:${t=>t.theme.custom.counterType.A4};
          }
        }
      }
      .counterInfo {
        margin: auto 0;
        width: 100%;
        text-align: center;
        .counterValue,
        .columnName {
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
        .counterValue {
          font-size: ${t=>t.theme.custom.fontSize.font18};
          margin-bottom: 0;
        }
      }
    }
  }
  .chart_view {
    background: ${t=>t.theme.custom.thumbnailBg};
    border-radius: 4px;
    padding: 16px 10px;
  }
  .chart_view:empty {
    display: none;
  }
  .thumbnailBody {
    cursor: pointer;
    height: 110px;
  }
  .thumbnailBody > div.not('.metric-dropdown') {
    pointer-events: none;
  }
  .thumbnailBody > div.metric-dropdown {
    width: auto  
  }
`,MTe=gt.div`
  && {
    .MuiInputBase-root {
      background: transparent;
      box-shadow: unset;
      .MuiSelect-select {
        border: 0.734301px solid #675b8c;
        border-radius: 8px;
        padding: 0 20px 0 8px;
        .counter.default {
          svg {
            margin-bottom: -1px;
          }
        }
      }
      > svg {
        right: 6px;
        max-width: 10px;
      }
    }
  }
`,NTe=gt.div`
  && {
    display: flex;
    align-items: center;
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
    color: ${t=>t.theme.custom.white.A11};
    .counterIcon {
      width: 15px;
      text-align: right;
      margin-right: 6px;
    }
    &.mean {
      svg path {
        fill: ${t=>t.theme.custom.counterType.A1};
      }
    }
    &.sum {
      svg path {
        stroke: ${t=>t.theme.custom.counterType.A2};
      }
    }
    &.min {
      svg path {
        fill: ${t=>t.theme.custom.counterType.A3};
      }
    }
    &.max {
      svg path {
        fill: ${t=>t.theme.custom.counterType.A4};
      }
    }
    &.default {
      margin-bottom: -1px;
    }
  }
`;function w1e(t){var D;const{queryError:e,columns:n,data:r,counterFields:a,isRunning:o,counterTooltipPlacement:s,isPreview:l,isExplore:c=!1,dashboardView:u,isUsageSuffix:d=!1,counterRef:h,isDashboardPreview:f=!1,savedQueryId:p}=t,m=xo(),{useImgColors:g,chartBackground:v}=_p(),A=q_e(n,r,a),{title:y,prefix:S,suffix:x,label:w,decimal:_,metric:C,columnName:R}=a||{},k=_V(n),[P,N]=Y.useState(C||al.SUM),L=Y.useMemo(()=>A?Y_e(A==null?void 0:A.flat(),P):null,[A,P]),{compactValue:I,counterhasDecimal:b}=w1a(L||0,!1,_||2),T=`${S||""} ${I} ${x||""}`;if(Y.useEffect(()=>{vkt(b)},[b]),Y.useEffect(()=>{N(C)},[C]),Y.useEffect(()=>{vkt(b)},[b]),e)return E.jsxs(E.Fragment,{children:[E.jsx(Vc,{title:e,children:e}),l&&!c&&E.jsx("p",{children:q.CLICK_CONFIGURE})]});if(Ft.isEmpty(r)&&!o)return E.jsxs(E.Fragment,{children:[E.jsx(Vc,{title:q.CHART_NO_DATA_TEXT,isDashboardPreview:f,handleDataEmptyClick:()=>p&&(m==null?void 0:m.push(tr.queriesPath(p))),emptyDataMessage:q.CHART_NO_DATA_SUBTEXT,children:q.CHART_NO_DATA_TEXT}),l&&!c&&E.jsx("p",{children:q.CLICK_CONFIGURE})]});if(!o&&Ft.isEmpty(k))return E.jsx(Vmn,{title:q.PLEASE_MODIFY_QUERY,children:q.PLEASE_MODIFY_QUERY});const M=g&&vN(((D=m==null?void 0:m.location)==null?void 0:D.pathname)||"");return o?l?E.jsx(oTe,{}):E.jsx(RTe,{dashboardView:u}):E.jsx(zmn,{imgBg:aTe,className:"counterWidget",useImgColors:g,children:E.jsxs("div",{className:"counterCard",ref:h,children:[E.jsxs("div",{className:"titleRow",children:[E.jsx(Pn,{label:y,children:E.jsx("span",{className:"counterTitle",children:y||E.jsx(E.Fragment,{children:" "})})}),l?E.jsxs("span",{className:`counterType ${C==null?void 0:C.toLowerCase()}`,children:[Han(C),C]}):E.jsx(MTe,{className:"metricDropdown",children:E.jsx(Ba,{value:P||al.SUM,name:"metric",onChange:B=>{var j;N((j=B==null?void 0:B.target)==null?void 0:j.value)},MenuProps:{sx:{".MuiMenu-paper":{background:M&&(v==null?void 0:v[0])}}},children:am==null?void 0:am.map(B=>{var j;return E.jsx(Dn,{value:B==null?void 0:B.value,children:E.jsxs(NTe,{className:`counter ${(j=B==null?void 0:B.value)==null?void 0:j.toLowerCase()}`,children:[E.jsx("div",{className:"counterIcon",children:B.icon}),E.jsx("div",{className:"counterValue",children:B.label})]})},B==null?void 0:B.value)})})})]}),E.jsxs("div",{className:"counterBody",children:[E.jsx(Pn,{label:`${T} ${d?" $":""}`,tooltipPlacement:s||"bottom",children:E.jsxs("h3",{className:"counterValue",children:[T,d?" $":""]})}),E.jsx(Pn,{label:w,tooltipPlacement:s||"bottom",children:E.jsx("span",{className:"counterLabel",children:w||R})})]})]})})}function tCa(t){var e;typeof window<"u"?e=window:typeof self<"u"?e=self:e=Wa;var n=typeof document<"u"&&document.attachEvent;if(!n){var r=function(){var _=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(C){return e.setTimeout(C,20)};return function(C){return _(C)}}(),a=function(){var _=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(C){return _(C)}}(),o=function(C){var R=C.__resizeTriggers__,k=R.firstElementChild,P=R.lastElementChild,N=k.firstElementChild;P.scrollLeft=P.scrollWidth,P.scrollTop=P.scrollHeight,N.style.width=k.offsetWidth+1+"px",N.style.height=k.offsetHeight+1+"px",k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight},s=function(C){return C.offsetWidth!=C.__resizeLast__.width||C.offsetHeight!=C.__resizeLast__.height},l=function(C){if(!(C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)){var R=this;o(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=r(function(){s(R)&&(R.__resizeLast__.width=R.offsetWidth,R.__resizeLast__.height=R.offsetHeight,R.__resizeListeners__.forEach(function(k){k.call(R,C)}))})}},c=!1,u="",d="animationstart",h="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var m=document.createElement("fakeelement");if(m.style.animationName!==void 0&&(c=!0),c===!1){for(var g=0;g<h.length;g++)if(m.style[h[g]+"AnimationName"]!==void 0){p=h[g],u="-"+p.toLowerCase()+"-",d=f[g],c=!0;break}}}var v="resizeanim",A="@"+u+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",y=u+"animation: 1ms "+v+"; "}var S=function(C){if(!C.getElementById("detectElementResize")){var R=(A||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',k=C.head||C.getElementsByTagName("head")[0],P=C.createElement("style");P.id="detectElementResize",P.type="text/css",t!=null&&P.setAttribute("nonce",t),P.styleSheet?P.styleSheet.cssText=R:P.appendChild(C.createTextNode(R)),k.appendChild(P)}},x=function(C,R){if(n)C.attachEvent("onresize",R);else{if(!C.__resizeTriggers__){var k=C.ownerDocument,P=e.getComputedStyle(C);P&&P.position=="static"&&(C.style.position="relative"),S(k),C.__resizeLast__={},C.__resizeListeners__=[],(C.__resizeTriggers__=k.createElement("div")).className="resize-triggers",C.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',C.appendChild(C.__resizeTriggers__),o(C),C.addEventListener("scroll",l,!0),d&&(C.__resizeTriggers__.__animationListener__=function(L){L.animationName==v&&o(C)},C.__resizeTriggers__.addEventListener(d,C.__resizeTriggers__.__animationListener__))}C.__resizeListeners__.push(R)}},w=function(C,R){if(n)C.detachEvent("onresize",R);else if(C.__resizeListeners__.splice(C.__resizeListeners__.indexOf(R),1),!C.__resizeListeners__.length){C.removeEventListener("scroll",l,!0),C.__resizeTriggers__.__animationListener__&&(C.__resizeTriggers__.removeEventListener(d,C.__resizeTriggers__.__animationListener__),C.__resizeTriggers__.__animationListener__=null);try{C.__resizeTriggers__=!C.removeChild(C.__resizeTriggers__)}catch{}}};return{addResizeListener:x,removeResizeListener:w}}var nCa=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},rCa=function(){function t(e,n){for(var r=0;r<n.length;r++){var a=n[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),iCa=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},aCa=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},lMt=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},Kmn=function(t){aCa(e,t);function e(){var n,r,a,o;nCa(this,e);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(a=lMt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(l))),a),a.state={height:a.props.defaultHeight||0,width:a.props.defaultWidth||0},a._onResize=function(){var u=a.props,d=u.disableHeight,h=u.disableWidth,f=u.onResize;if(a._parentNode){var p=a._parentNode.offsetHeight||0,m=a._parentNode.offsetWidth||0,g=window.getComputedStyle(a._parentNode)||{},v=parseInt(g.paddingLeft,10)||0,A=parseInt(g.paddingRight,10)||0,y=parseInt(g.paddingTop,10)||0,S=parseInt(g.paddingBottom,10)||0,x=p-y-S,w=m-v-A;(!d&&a.state.height!==x||!h&&a.state.width!==w)&&(a.setState({height:p-y-S,width:m-v-A}),f({height:p,width:m}))}},a._setRef=function(u){a._autoSizer=u},r),lMt(a,o)}return rCa(e,[{key:"componentDidMount",value:function(){var r=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=tCa(r),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var r=this.props,a=r.children,o=r.className,s=r.disableHeight,l=r.disableWidth,c=r.style,u=this.state,d=u.height,h=u.width,f={overflow:"visible"},p={},m=!1;return s||(d===0&&(m=!0),f.height=0,p.height=d),l||(h===0&&(m=!0),f.width=0,p.width=h),Y.createElement("div",{className:o,ref:this._setRef,style:iCa({},f,c)},!m&&a(p))}}]),e}(Y.PureComponent);Kmn.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var cMt=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function oCa(t,e){return!!(t===e||cMt(t)&&cMt(e))}function sCa(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!oCa(t[n],e[n]))return!1;return!0}function BBe(t,e){e===void 0&&(e=sCa);var n,r=[],a,o=!1;function s(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return o&&n===this&&e(l,r)||(a=t.apply(this,l),o=!0,n=this,r=l),a}return s}var lCa=typeof performance=="object"&&typeof performance.now=="function",uMt=lCa?function(){return performance.now()}:function(){return Date.now()};function dMt(t){cancelAnimationFrame(t.id)}function cCa(t,e){var n=uMt();function r(){uMt()-n>=e?t.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var DBe=-1;function hMt(t){if(t===void 0&&(t=!1),DBe===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),DBe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return DBe}var K$=null;function fMt(t){if(t===void 0&&(t=!1),K$===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?K$="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?K$="negative":K$="positive-ascending"),document.body.removeChild(e),K$}return K$}var uCa=150,dCa=function(e,n){return e};function hCa(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,a=t.getItemSize,o=t.getOffsetForIndexAndAlignment,s=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,c=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(h){Ev(f,h);function f(m){var g;return g=h.call(this,m)||this,g._instanceProps=c(g.props,pi(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:pi(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=BBe(function(v,A,y,S){return g.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:A,visibleStartIndex:y,visibleStopIndex:S})}),g._callOnScroll=void 0,g._callOnScroll=BBe(function(v,A,y){return g.props.onScroll({scrollDirection:v,scrollOffset:A,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(v){var A=g.props,y=A.direction,S=A.itemSize,x=A.layout,w=g._getItemStyleCache(u&&S,u&&x,u&&y),_;if(w.hasOwnProperty(v))_=w[v];else{var C=n(g.props,v,g._instanceProps),R=a(g.props,v,g._instanceProps),k=y==="horizontal"||x==="horizontal",P=y==="rtl",N=k?C:0;w[v]=_={position:"absolute",left:P?void 0:N,right:P?N:void 0,top:k?0:C,height:k?"100%":R,width:k?R:"100%"}}return _},g._getItemStyleCache=void 0,g._getItemStyleCache=BBe(function(v,A,y){return{}}),g._onScrollHorizontal=function(v){var A=v.currentTarget,y=A.clientWidth,S=A.scrollLeft,x=A.scrollWidth;g.setState(function(w){if(w.scrollOffset===S)return null;var _=g.props.direction,C=S;if(_==="rtl")switch(fMt()){case"negative":C=-S;break;case"positive-descending":C=x-y-S;break}return C=Math.max(0,Math.min(C,x-y)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(v){var A=v.currentTarget,y=A.clientHeight,S=A.scrollHeight,x=A.scrollTop;g.setState(function(w){if(w.scrollOffset===x)return null;var _=Math.max(0,Math.min(x,S-y));return{isScrolling:!0,scrollDirection:w.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(v){var A=g.props.outerRef;g._outerRef=v,typeof A=="function"?A(v):A!=null&&typeof A=="object"&&A.hasOwnProperty("current")&&(A.current=v)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&dMt(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=cCa(g._resetIsScrolling,uCa)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}f.getDerivedStateFromProps=function(g,v){return fCa(g,v),d(g),null};var p=f.prototype;return p.scrollTo=function(g){g=Math.max(0,g),this.setState(function(v){return v.scrollOffset===g?null:{scrollDirection:v.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(g,v){v===void 0&&(v="auto");var A=this.props,y=A.itemCount,S=A.layout,x=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var w=0;if(this._outerRef){var _=this._outerRef;S==="vertical"?w=_.scrollWidth>_.clientWidth?hMt():0:w=_.scrollHeight>_.clientHeight?hMt():0}this.scrollTo(o(this.props,g,v,x,this._instanceProps,w))},p.componentDidMount=function(){var g=this.props,v=g.direction,A=g.initialScrollOffset,y=g.layout;if(typeof A=="number"&&this._outerRef!=null){var S=this._outerRef;v==="horizontal"||y==="horizontal"?S.scrollLeft=A:S.scrollTop=A}this._callPropsCallbacks()},p.componentDidUpdate=function(){var g=this.props,v=g.direction,A=g.layout,y=this.state,S=y.scrollOffset,x=y.scrollUpdateWasRequested;if(x&&this._outerRef!=null){var w=this._outerRef;if(v==="horizontal"||A==="horizontal")if(v==="rtl")switch(fMt()){case"negative":w.scrollLeft=-S;break;case"positive-ascending":w.scrollLeft=S;break;default:var _=w.clientWidth,C=w.scrollWidth;w.scrollLeft=C-_-S;break}else w.scrollLeft=S;else w.scrollTop=S}this._callPropsCallbacks()},p.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&dMt(this._resetIsScrollingTimeoutId)},p.render=function(){var g=this.props,v=g.children,A=g.className,y=g.direction,S=g.height,x=g.innerRef,w=g.innerElementType,_=g.innerTagName,C=g.itemCount,R=g.itemData,k=g.itemKey,P=k===void 0?dCa:k,N=g.layout,L=g.outerElementType,I=g.outerTagName,b=g.style,T=g.useIsScrolling,M=g.width,D=this.state.isScrolling,B=y==="horizontal"||N==="horizontal",j=B?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),U=H[0],$=H[1],z=[];if(C>0)for(var Z=U;Z<=$;Z++)z.push(Y.createElement(v,{data:R,key:P(Z,R),index:Z,isScrolling:T?D:void 0,style:this._getItemStyle(Z)}));var K=r(this.props,this._instanceProps);return Y.createElement(L||I||"div",{className:A,onScroll:j,ref:this._outerRefSetter,style:Ce({position:"relative",height:S,width:M,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},b)},Y.createElement(w||_||"div",{children:z,ref:x,style:{height:B?"100%":K,pointerEvents:D?"none":void 0,width:B?K:"100%"}}))},p._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var v=this._getRangeToRender(),A=v[0],y=v[1],S=v[2],x=v[3];this._callOnItemsRendered(A,y,S,x)}}if(typeof this.props.onScroll=="function"){var w=this.state,_=w.scrollDirection,C=w.scrollOffset,R=w.scrollUpdateWasRequested;this._callOnScroll(_,C,R)}},p._getRangeToRender=function(){var g=this.props,v=g.itemCount,A=g.overscanCount,y=this.state,S=y.isScrolling,x=y.scrollDirection,w=y.scrollOffset;if(v===0)return[0,0,0,0];var _=s(this.props,w,this._instanceProps),C=l(this.props,_,w,this._instanceProps),R=!S||x==="backward"?Math.max(1,A):1,k=!S||x==="forward"?Math.max(1,A):1;return[Math.max(0,_-R),Math.max(0,Math.min(v-1,C+k)),_,C]},f}(Y.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var fCa=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},Wmn=hCa({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,a,o,s){var l=e.direction,c=e.height,u=e.itemCount,d=e.itemSize,h=e.layout,f=e.width,p=l==="horizontal"||h==="horizontal",m=p?f:c,g=Math.max(0,u*d-m),v=Math.min(g,n*d),A=Math.max(0,n*d-m+d+s);switch(r==="smart"&&(a>=A-m&&a<=v+m?r="auto":r="center"),r){case"start":return v;case"end":return A;case"center":{var y=Math.round(A+(v-A)/2);return y<Math.ceil(m/2)?0:y>g+Math.floor(m/2)?g:y}case"auto":default:return a>=A&&a<=v?a:a<A?A:v}},getStartIndexForOffset:function(e,n){var r=e.itemCount,a=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/a)))},getStopIndexForStartIndex:function(e,n,r){var a=e.direction,o=e.height,s=e.itemCount,l=e.itemSize,c=e.layout,u=e.width,d=a==="horizontal"||c==="horizontal",h=n*l,f=d?u:o,p=Math.ceil((f+r-h)/l);return Math.max(0,Math.min(s-1,n+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}),pMt=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function pCa(t,e){return!!(t===e||pMt(t)&&pMt(e))}function mCa(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!pCa(t[n],e[n]))return!1;return!0}function gCa(t,e){e===void 0&&(e=mCa);var n=null;function r(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(n&&n.lastThis===this&&e(a,n.lastArgs))return n.lastResult;var s=t.apply(this,a);return n={lastResult:s,lastArgs:a,lastThis:this},s}return r.clear=function(){n=null},r}const vCa=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ACa(t={}){const{disableGlobal:e=!1,productionPrefix:n="jss",seed:r=""}=t,a=r===""?"":`${r}-`;let o=0;const s=()=>(o+=1,o);return(l,c)=>{const u=c.options.name;if(u&&u.indexOf("Mui")===0&&!c.options.link&&!e){if(vCa.indexOf(l.key)!==-1)return`Mui-${l.key}`;const d=`${a}${u}-${l.key}`;return!c.options.theme[sqt]||r!==""?d:`${d}-${s()}`}return`${a}${n}${s()}`}}var mMt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yoe=(typeof window>"u"?"undefined":mMt(window))==="object"&&(typeof document>"u"?"undefined":mMt(document))==="object"&&document.nodeType===9,yCa={}.constructor;function nKe(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(nKe);if(t.constructor!==yCa)return t;var e={};for(var n in t)e[n]=nKe(t[n]);return e}function Uat(t,e,n){t===void 0&&(t="unnamed");var r=n.jss,a=nKe(e),o=r.plugins.onCreateRule(t,a,n);return o||(t[0],null)}var gMt=function(e,n){for(var r="",a=0;a<e.length&&e[a]!=="!important";a++)r&&(r+=n),r+=e[a];return r},MD=function(e){if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&e[r]!=="!important";r++)n&&(n+=", "),n+=gMt(e[r]," ");else n=gMt(e,", ");return e[e.length-1]==="!important"&&(n+=" !important"),n};function CV(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
`,space:" "}}function kq(t,e){for(var n="",r=0;r<e;r++)n+="  ";return n+t}function Zne(t,e,n){n===void 0&&(n={});var r="";if(!e)return r;var a=n,o=a.indent,s=o===void 0?0:o,l=e.fallbacks;n.format===!1&&(s=-1/0);var c=CV(n),u=c.linebreak,d=c.space;if(t&&s++,l)if(Array.isArray(l))for(var h=0;h<l.length;h++){var f=l[h];for(var p in f){var m=f[p];m!=null&&(r&&(r+=u),r+=kq(p+":"+d+MD(m)+";",s))}}else for(var g in l){var v=l[g];v!=null&&(r&&(r+=u),r+=kq(g+":"+d+MD(v)+";",s))}for(var A in e){var y=e[A];y!=null&&A!=="fallbacks"&&(r&&(r+=u),r+=kq(A+":"+d+MD(y)+";",s))}return!r&&!n.allowEmpty||!t?r:(s--,r&&(r=""+u+r+u),kq(""+t+d+"{"+r,s)+kq("}",s))}var bCa=/([[\].#*$><+~=|^:(),"'`\s])/g,vMt=typeof CSS<"u"&&CSS.escape,zat=function(t){return vMt?vMt(t):t.replace(bCa,"\\$1")},Qmn=function(){function t(n,r,a){this.type="style",this.isProcessed=!1;var o=a.sheet,s=a.Renderer;this.key=n,this.options=a,this.style=r,o?this.renderer=o.renderer:s&&(this.renderer=new s)}var e=t.prototype;return e.prop=function(r,a,o){if(a===void 0)return this.style[r];var s=o?o.force:!1;if(!s&&this.style[r]===a)return this;var l=a;(!o||o.process!==!1)&&(l=this.options.jss.plugins.onChangeValue(a,r,this));var c=l==null||l===!1,u=r in this.style;if(c&&!u&&!s)return this;var d=c&&u;if(d?delete this.style[r]:this.style[r]=l,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,l),this;var h=this.options.sheet;return h&&h.attached,this},t}(),rKe=function(t){Ev(e,t);function e(r,a,o){var s;s=t.call(this,r,a,o)||this;var l=o.selector,c=o.scoped,u=o.sheet,d=o.generateId;return l?s.selectorText=l:c!==!1&&(s.id=d(pi(pi(s)),u),s.selectorText="."+zat(s.id)),s}var n=e.prototype;return n.applyTo=function(a){var o=this.renderer;if(o){var s=this.toJSON();for(var l in s)o.setProperty(a,l,s[l])}return this},n.toJSON=function(){var a={};for(var o in this.style){var s=this.style[o];typeof s!="object"?a[o]=s:Array.isArray(s)&&(a[o]=MD(s))}return a},n.toString=function(a){var o=this.options.sheet,s=o?o.options.link:!1,l=s?Ce({},a,{allowEmpty:!0}):a;return Zne(this.selectorText,this.style,l)},Gs(e,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,s=this.renderable;if(!(!s||!o)){var l=o.setSelector(s,a);l||o.replaceRule(s,this)}}},get:function(){return this.selectorText}}]),e}(Qmn),xCa={onCreateRule:function(e,n,r){return e[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new rKe(e,n,r)}},$Be={indent:1,children:!0},ECa=/@([\w-]+)/,SCa=function(){function t(n,r,a){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(ECa);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new ITe(Ce({},a,{parent:this}));for(var s in r)this.rules.add(s,r[s]);this.rules.process()}var e=t.prototype;return e.getRule=function(r){return this.rules.get(r)},e.indexOf=function(r){return this.rules.indexOf(r)},e.addRule=function(r,a,o){var s=this.rules.add(r,a,o);return s?(this.options.jss.plugins.onProcessRule(s),s):null},e.replaceRule=function(r,a,o){var s=this.rules.replace(r,a,o);return s&&this.options.jss.plugins.onProcessRule(s),s},e.toString=function(r){r===void 0&&(r=$Be);var a=CV(r),o=a.linebreak;if(r.indent==null&&(r.indent=$Be.indent),r.children==null&&(r.children=$Be.children),r.children===!1)return this.query+" {}";var s=this.rules.toString(r);return s?this.query+" {"+o+s+o+"}":""},t}(),wCa=/@container|@media|@supports\s+/,_Ca={onCreateRule:function(e,n,r){return wCa.test(e)?new SCa(e,n,r):null}},FBe={indent:1,children:!0},TCa=/@keyframes\s+([\w-]+)/,iKe=function(){function t(n,r,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(TCa);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var s=a.scoped,l=a.sheet,c=a.generateId;this.id=s===!1?this.name:zat(c(this,l)),this.rules=new ITe(Ce({},a,{parent:this}));for(var u in r)this.rules.add(u,r[u],Ce({},a,{parent:this}));this.rules.process()}var e=t.prototype;return e.toString=function(r){r===void 0&&(r=FBe);var a=CV(r),o=a.linebreak;if(r.indent==null&&(r.indent=FBe.indent),r.children==null&&(r.children=FBe.children),r.children===!1)return this.at+" "+this.id+" {}";var s=this.rules.toString(r);return s&&(s=""+o+s+o),this.at+" "+this.id+" {"+s+"}"},t}(),CCa=/@keyframes\s+/,kCa=/\$([\w-]+)/g,aKe=function(e,n){return typeof e=="string"?e.replace(kCa,function(r,a){return a in n?n[a]:r}):e},AMt=function(e,n,r){var a=e[n],o=aKe(a,r);o!==a&&(e[n]=o)},RCa={onCreateRule:function(e,n,r){return typeof e=="string"&&CCa.test(e)?new iKe(e,n,r):null},onProcessStyle:function(e,n,r){return n.type!=="style"||!r||("animation-name"in e&&AMt(e,"animation-name",r.keyframes),"animation"in e&&AMt(e,"animation",r.keyframes)),e},onChangeValue:function(e,n,r){var a=r.options.sheet;if(!a)return e;switch(n){case"animation":return aKe(e,a.keyframes);case"animation-name":return aKe(e,a.keyframes);default:return e}}},MCa=function(t){Ev(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.toString=function(a){var o=this.options.sheet,s=o?o.options.link:!1,l=s?Ce({},a,{allowEmpty:!0}):a;return Zne(this.key,this.style,l)},e}(Qmn),NCa={onCreateRule:function(e,n,r){return r.parent&&r.parent.type==="keyframes"?new MCa(e,n,r):null}},ICa=function(){function t(n,r,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=a}var e=t.prototype;return e.toString=function(r){var a=CV(r),o=a.linebreak;if(Array.isArray(this.style)){for(var s="",l=0;l<this.style.length;l++)s+=Zne(this.at,this.style[l]),this.style[l+1]&&(s+=o);return s}return Zne(this.at,this.style,r)},t}(),PCa=/@font-face/,OCa={onCreateRule:function(e,n,r){return PCa.test(e)?new ICa(e,n,r):null}},LCa=function(){function t(n,r,a){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=r,this.options=a}var e=t.prototype;return e.toString=function(r){return Zne(this.key,this.style,r)},t}(),BCa={onCreateRule:function(e,n,r){return e==="@viewport"||e==="@-ms-viewport"?new LCa(e,n,r):null}},DCa=function(){function t(n,r,a){this.type="simple",this.isProcessed=!1,this.key=n,this.value=r,this.options=a}var e=t.prototype;return e.toString=function(r){if(Array.isArray(this.value)){for(var a="",o=0;o<this.value.length;o++)a+=this.key+" "+this.value[o]+";",this.value[o+1]&&(a+=`
`);return a}return this.key+" "+this.value+";"},t}(),$Ca={"@charset":!0,"@import":!0,"@namespace":!0},FCa={onCreateRule:function(e,n,r){return e in $Ca?new DCa(e,n,r):null}},yMt=[xCa,_Ca,RCa,NCa,OCa,BCa,FCa],jCa={process:!0},bMt={force:!0,process:!0},ITe=function(){function t(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var e=t.prototype;return e.add=function(r,a,o){var s=this.options,l=s.parent,c=s.sheet,u=s.jss,d=s.Renderer,h=s.generateId,f=s.scoped,p=Ce({classes:this.classes,parent:l,sheet:c,jss:u,Renderer:d,generateId:h,scoped:f,name:r,keyframes:this.keyframes,selector:void 0},o),m=r;r in this.raw&&(m=r+"-d"+this.counter++),this.raw[m]=a,m in this.classes&&(p.selector="."+zat(this.classes[m]));var g=Uat(m,a,p);if(!g)return null;this.register(g);var v=p.index===void 0?this.index.length:p.index;return this.index.splice(v,0,g),g},e.replace=function(r,a,o){var s=this.get(r),l=this.index.indexOf(s);s&&this.remove(s);var c=o;return l!==-1&&(c=Ce({},o,{index:l})),this.add(r,a,c)},e.get=function(r){return this.map[r]},e.remove=function(r){this.unregister(r),delete this.raw[r.key],this.index.splice(this.index.indexOf(r),1)},e.indexOf=function(r){return this.index.indexOf(r)},e.process=function(){var r=this.options.jss.plugins;this.index.slice(0).forEach(r.onProcessRule,r)},e.register=function(r){this.map[r.key]=r,r instanceof rKe?(this.map[r.selector]=r,r.id&&(this.classes[r.key]=r.id)):r instanceof iKe&&this.keyframes&&(this.keyframes[r.name]=r.id)},e.unregister=function(r){delete this.map[r.key],r instanceof rKe?(delete this.map[r.selector],delete this.classes[r.key]):r instanceof iKe&&delete this.keyframes[r.name]},e.update=function(){var r,a,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(r=arguments.length<=0?void 0:arguments[0],a=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(a=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],r=null),r)this.updateOne(this.get(r),a,o);else for(var s=0;s<this.index.length;s++)this.updateOne(this.index[s],a,o)},e.updateOne=function(r,a,o){o===void 0&&(o=jCa);var s=this.options,l=s.jss.plugins,c=s.sheet;if(r.rules instanceof t){r.rules.update(a,o);return}var u=r.style;if(l.onUpdate(a,r,c,o),o.process&&u&&u!==r.style){l.onProcessStyle(r.style,r,c);for(var d in r.style){var h=r.style[d],f=u[d];h!==f&&r.prop(d,h,bMt)}for(var p in u){var m=r.style[p],g=u[p];m==null&&m!==g&&r.prop(p,null,bMt)}}},e.toString=function(r){for(var a="",o=this.options.sheet,s=o?o.options.link:!1,l=CV(r),c=l.linebreak,u=0;u<this.index.length;u++){var d=this.index[u],h=d.toString(r);!h&&!s||(a&&(a+=c),a+=h)}return a},t}(),qmn=function(){function t(n,r){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ce({},r,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),r.Renderer&&(this.renderer=new r.Renderer(this)),this.rules=new ITe(this.options);for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=t.prototype;return e.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(r,a,o){var s=this.queue;this.attached&&!s&&(this.queue=[]);var l=this.rules.add(r,a,o);return l?(this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&(s?s.push(l):(this.insertRule(l),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),l):(this.deployed=!1,l)):null},e.replaceRule=function(r,a,o){var s=this.rules.get(r);if(!s)return this.addRule(r,a,o);var l=this.rules.replace(r,a,o);return l&&this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&this.renderer&&(l?s.renderable&&this.renderer.replaceRule(s.renderable,l):this.renderer.deleteRule(s)),l):(this.deployed=!1,l)},e.insertRule=function(r){this.renderer&&this.renderer.insertRule(r)},e.addRules=function(r,a){var o=[];for(var s in r){var l=this.addRule(s,r[s],a);l&&o.push(l)}return o},e.getRule=function(r){return this.rules.get(r)},e.deleteRule=function(r){var a=typeof r=="object"?r:this.rules.get(r);return!a||this.attached&&!a.renderable?!1:(this.rules.remove(a),this.attached&&a.renderable&&this.renderer?this.renderer.deleteRule(a.renderable):!0)},e.indexOf=function(r){return this.rules.indexOf(r)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var r;return(r=this.rules).update.apply(r,arguments),this},e.updateOne=function(r,a,o){return this.rules.updateOne(r,a,o),this},e.toString=function(r){return this.rules.toString(r)},t}(),HCa=function(){function t(){this.plugins={internal:[],external:[]},this.registry={}}var e=t.prototype;return e.onCreateRule=function(r,a,o){for(var s=0;s<this.registry.onCreateRule.length;s++){var l=this.registry.onCreateRule[s](r,a,o);if(l)return l}return null},e.onProcessRule=function(r){if(!r.isProcessed){for(var a=r.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](r,a);r.style&&this.onProcessStyle(r.style,r,a),r.isProcessed=!0}},e.onProcessStyle=function(r,a,o){for(var s=0;s<this.registry.onProcessStyle.length;s++)a.style=this.registry.onProcessStyle[s](a.style,a,o)},e.onProcessSheet=function(r){for(var a=0;a<this.registry.onProcessSheet.length;a++)this.registry.onProcessSheet[a](r)},e.onUpdate=function(r,a,o,s){for(var l=0;l<this.registry.onUpdate.length;l++)this.registry.onUpdate[l](r,a,o,s)},e.onChangeValue=function(r,a,o){for(var s=r,l=0;l<this.registry.onChangeValue.length;l++)s=this.registry.onChangeValue[l](s,a,o);return s},e.use=function(r,a){a===void 0&&(a={queue:"external"});var o=this.plugins[a.queue];o.indexOf(r)===-1&&(o.push(r),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(s,l){for(var c in l)c in s&&s[c].push(l[c]);return s},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),UCa=function(){function t(){this.registry=[]}var e=t.prototype;return e.add=function(r){var a=this.registry,o=r.options.index;if(a.indexOf(r)===-1){if(a.length===0||o>=this.index){a.push(r);return}for(var s=0;s<a.length;s++)if(a[s].options.index>o){a.splice(s,0,r);return}}},e.reset=function(){this.registry=[]},e.remove=function(r){var a=this.registry.indexOf(r);this.registry.splice(a,1)},e.toString=function(r){for(var a=r===void 0?{}:r,o=a.attached,s=Wn(a,["attached"]),l=CV(s),c=l.linebreak,u="",d=0;d<this.registry.length;d++){var h=this.registry[d];o!=null&&h.attached!==o||(u&&(u+=c),u+=h.toString(s))}return u},Gs(t,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),t}(),uee=new UCa,oKe=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),sKe="2f1acc6c3a606b082e5eef5e54414ffb";oKe[sKe]==null&&(oKe[sKe]=0);var xMt=oKe[sKe]++,EMt=function(e){e===void 0&&(e={});var n=0,r=function(o,s){n+=1;var l="",c="";return s&&(s.options.classNamePrefix&&(c=s.options.classNamePrefix),s.options.jss.id!=null&&(l=String(s.options.jss.id))),e.minify?""+(c||"c")+xMt+l+n:c+o.key+"-"+xMt+(l?"-"+l:"")+"-"+n};return r},Ymn=function(e){var n;return function(){return n||(n=e()),n}},zCa=function(e,n){try{return e.attributeStyleMap?e.attributeStyleMap.get(n):e.style.getPropertyValue(n)}catch{return""}},GCa=function(e,n,r){try{var a=r;if(Array.isArray(r)&&(a=MD(r)),e.attributeStyleMap)e.attributeStyleMap.set(n,a);else{var o=a?a.indexOf("!important"):-1,s=o>-1?a.substr(0,o-1):a;e.style.setProperty(n,s,o>-1?"important":"")}}catch{return!1}return!0},VCa=function(e,n){try{e.attributeStyleMap?e.attributeStyleMap.delete(n):e.style.removeProperty(n)}catch{}},KCa=function(e,n){return e.selectorText=n,e.selectorText===n},Jmn=Ymn(function(){return document.querySelector("head")});function WCa(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.attached&&r.options.index>e.index&&r.options.insertionPoint===e.insertionPoint)return r}return null}function QCa(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.attached&&r.options.insertionPoint===e.insertionPoint)return r}return null}function qCa(t){for(var e=Jmn(),n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===t)return r}return null}function YCa(t){var e=uee.registry;if(e.length>0){var n=WCa(e,t);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=QCa(e,t),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=t.insertionPoint;if(r&&typeof r=="string"){var a=qCa(r);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function JCa(t,e){var n=e.insertionPoint,r=YCa(e);if(r!==!1&&r.parent){r.parent.insertBefore(t,r.node);return}if(n&&typeof n.nodeType=="number"){var a=n,o=a.parentNode;o&&o.insertBefore(t,a.nextSibling);return}Jmn().appendChild(t)}var ZCa=Ymn(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),SMt=function(e,n,r){try{"insertRule"in e?e.insertRule(n,r):"appendRule"in e&&e.appendRule(n)}catch{return!1}return e.cssRules[r]},wMt=function(e,n){var r=e.cssRules.length;return n===void 0||n>r?r:n},XCa=function(){var e=document.createElement("style");return e.textContent=`
`,e},eka=function(){function t(n){this.getPropertyValue=zCa,this.setProperty=GCa,this.removeProperty=VCa,this.setSelector=KCa,this.hasInsertedRules=!1,this.cssRules=[],n&&uee.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},a=r.media,o=r.meta,s=r.element;this.element=s||XCa(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var l=ZCa();l&&this.element.setAttribute("nonce",l)}var e=t.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){JCa(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
`)}},e.deploy=function(){var r=this.sheet;if(r){if(r.options.link){this.insertRules(r.rules);return}this.element.textContent=`
`+r.toString()+`
`}},e.insertRules=function(r,a){for(var o=0;o<r.index.length;o++)this.insertRule(r.index[o],o,a)},e.insertRule=function(r,a,o){if(o===void 0&&(o=this.element.sheet),r.rules){var s=r,l=o;if(r.type==="conditional"||r.type==="keyframes"){var c=wMt(o,a);if(l=SMt(o,s.toString({children:!1}),c),l===!1)return!1;this.refCssRule(r,c,l)}return this.insertRules(s.rules,l),l}var u=r.toString();if(!u)return!1;var d=wMt(o,a),h=SMt(o,u,d);return h===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(r,d,h),h)},e.refCssRule=function(r,a,o){r.renderable=o,r.options.parent instanceof qmn&&this.cssRules.splice(a,0,o)},e.deleteRule=function(r){var a=this.element.sheet,o=this.indexOf(r);return o===-1?!1:(a.deleteRule(o),this.cssRules.splice(o,1),!0)},e.indexOf=function(r){return this.cssRules.indexOf(r)},e.replaceRule=function(r,a){var o=this.indexOf(r);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(a,o))},e.getRules=function(){return this.element.sheet.cssRules},t}(),tka=0,nka=function(){function t(n){this.id=tka++,this.version="10.10.0",this.plugins=new HCa,this.options={id:{minify:!1},createGenerateId:EMt,Renderer:Yoe?eka:null,plugins:[]},this.generateId=EMt({minify:!1});for(var r=0;r<yMt.length;r++)this.plugins.use(yMt[r],{queue:"internal"});this.setup(n)}var e=t.prototype;return e.setup=function(r){return r===void 0&&(r={}),r.createGenerateId&&(this.options.createGenerateId=r.createGenerateId),r.id&&(this.options.id=Ce({},this.options.id,r.id)),(r.createGenerateId||r.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),r.insertionPoint!=null&&(this.options.insertionPoint=r.insertionPoint),"Renderer"in r&&(this.options.Renderer=r.Renderer),r.plugins&&this.use.apply(this,r.plugins),this},e.createStyleSheet=function(r,a){a===void 0&&(a={});var o=a,s=o.index;typeof s!="number"&&(s=uee.index===0?0:uee.index+1);var l=new qmn(r,Ce({},a,{jss:this,generateId:a.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:s}));return this.plugins.onProcessSheet(l),l},e.removeStyleSheet=function(r){return r.detach(),uee.remove(r),this},e.createRule=function(r,a,o){if(a===void 0&&(a={}),o===void 0&&(o={}),typeof r=="object")return this.createRule(void 0,r,a);var s=Ce({},o,{name:r,jss:this,Renderer:this.options.Renderer});s.generateId||(s.generateId=this.generateId),s.classes||(s.classes={}),s.keyframes||(s.keyframes={});var l=Uat(r,a,s);return l&&this.plugins.onProcessRule(l),l},e.use=function(){for(var r=this,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return o.forEach(function(l){r.plugins.use(l)}),this},t}(),Zmn=function(e){return new nka(e)},Gat=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Xmn(t){var e=null;for(var n in t){var r=t[n],a=typeof r;if(a==="function")e||(e={}),e[n]=r;else if(a==="object"&&r!==null&&!Array.isArray(r)){var o=Xmn(r);o&&(e||(e={}),e[n]=o)}}return e}/**
 * A better abstraction over CSS.
 *
 * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
 * @website https://github.com/cssinjs/jss
 * @license MIT
 */Zmn();var egn=Date.now(),jBe="fnValues"+egn,HBe="fnStyle"+ ++egn,rka=function(){return{onCreateRule:function(n,r,a){if(typeof r!="function")return null;var o=Uat(n,{},a);return o[HBe]=r,o},onProcessStyle:function(n,r){if(jBe in r||HBe in r)return n;var a={};for(var o in n){var s=n[o];typeof s=="function"&&(delete n[o],a[o]=s)}return r[jBe]=a,n},onUpdate:function(n,r,a,o){var s=r,l=s[HBe];l&&(s.style=l(n)||{});var c=s[jBe];if(c)for(var u in c)s.prop(u,c[u](n),o)}}};const ika=rka;var R5="@global",lKe="@global ",aka=function(){function t(n,r,a){this.type="global",this.at=R5,this.isProcessed=!1,this.key=n,this.options=a,this.rules=new ITe(Ce({},a,{parent:this}));for(var o in r)this.rules.add(o,r[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(r){return this.rules.get(r)},e.addRule=function(r,a,o){var s=this.rules.add(r,a,o);return s&&this.options.jss.plugins.onProcessRule(s),s},e.replaceRule=function(r,a,o){var s=this.rules.replace(r,a,o);return s&&this.options.jss.plugins.onProcessRule(s),s},e.indexOf=function(r){return this.rules.indexOf(r)},e.toString=function(r){return this.rules.toString(r)},t}(),oka=function(){function t(n,r,a){this.type="global",this.at=R5,this.isProcessed=!1,this.key=n,this.options=a;var o=n.substr(lKe.length);this.rule=a.jss.createRule(o,r,Ce({},a,{parent:this}))}var e=t.prototype;return e.toString=function(r){return this.rule?this.rule.toString(r):""},t}(),ska=/\s*,\s*/g;function tgn(t,e){for(var n=t.split(ska),r="",a=0;a<n.length;a++)r+=e+" "+n[a].trim(),n[a+1]&&(r+=", ");return r}function lka(t,e){var n=t.options,r=t.style,a=r?r[R5]:null;if(a){for(var o in a)e.addRule(o,a[o],Ce({},n,{selector:tgn(o,t.selector)}));delete r[R5]}}function cka(t,e){var n=t.options,r=t.style;for(var a in r)if(!(a[0]!=="@"||a.substr(0,R5.length)!==R5)){var o=tgn(a.substr(R5.length),t.selector);e.addRule(o,r[a],Ce({},n,{selector:o})),delete r[a]}}function uka(){function t(n,r,a){if(!n)return null;if(n===R5)return new aka(n,r,a);if(n[0]==="@"&&n.substr(0,lKe.length)===lKe)return new oka(n,r,a);var o=a.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(a.scoped=!1),!a.selector&&a.scoped===!1&&(a.selector=n),null}function e(n,r){n.type!=="style"||!r||(lka(n,r),cka(n,r))}return{onCreateRule:t,onProcessRule:e}}var _Mt=/\s*,\s*/g,dka=/&/g,hka=/\$([\w-]+)/g;function fka(){function t(a,o){return function(s,l){var c=a.getRule(l)||o&&o.getRule(l);return c?c.selector:l}}function e(a,o){for(var s=o.split(_Mt),l=a.split(_Mt),c="",u=0;u<s.length;u++)for(var d=s[u],h=0;h<l.length;h++){var f=l[h];c&&(c+=", "),c+=f.indexOf("&")!==-1?f.replace(dka,d):d+" "+f}return c}function n(a,o,s){if(s)return Ce({},s,{index:s.index+1});var l=a.options.nestingLevel;l=l===void 0?1:l+1;var c=Ce({},a.options,{nestingLevel:l,index:o.indexOf(a)+1});return delete c.name,c}function r(a,o,s){if(o.type!=="style")return a;var l=o,c=l.options.parent,u,d;for(var h in a){var f=h.indexOf("&")!==-1,p=h[0]==="@";if(!(!f&&!p)){if(u=n(l,c,u),f){var m=e(h,l.selector);d||(d=t(c,s)),m=m.replace(hka,d);var g=l.key+"-"+h;"replaceRule"in c?c.replaceRule(g,a[h],Ce({},u,{selector:m})):c.addRule(g,a[h],Ce({},u,{selector:m}))}else p&&c.addRule(h,{},u).addRule(l.key,a[h],{selector:l.selector});delete a[h]}}return a}return{onProcessStyle:r}}var pka=/[A-Z]/g,mka=/^ms-/,UBe={};function gka(t){return"-"+t.toLowerCase()}function ngn(t){if(UBe.hasOwnProperty(t))return UBe[t];var e=t.replace(pka,gka);return UBe[t]=mka.test(e)?"-"+e:e}function _1e(t){var e={};for(var n in t){var r=n.indexOf("--")===0?n:ngn(n);e[r]=t[n]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(_1e):e.fallbacks=_1e(t.fallbacks)),e}function vka(){function t(n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)n[r]=_1e(n[r]);return n}return _1e(n)}function e(n,r,a){if(r.indexOf("--")===0)return n;var o=ngn(r);return r===o?n:(a.prop(o,n),null)}return{onProcessStyle:t,onChangeValue:e}}var Vn=Gat&&CSS?CSS.px:"px",Tde=Gat&&CSS?CSS.ms:"ms",W$=Gat&&CSS?CSS.percent:"%",Aka={"animation-delay":Tde,"animation-duration":Tde,"background-position":Vn,"background-position-x":Vn,"background-position-y":Vn,"background-size":Vn,border:Vn,"border-bottom":Vn,"border-bottom-left-radius":Vn,"border-bottom-right-radius":Vn,"border-bottom-width":Vn,"border-left":Vn,"border-left-width":Vn,"border-radius":Vn,"border-right":Vn,"border-right-width":Vn,"border-top":Vn,"border-top-left-radius":Vn,"border-top-right-radius":Vn,"border-top-width":Vn,"border-width":Vn,"border-block":Vn,"border-block-end":Vn,"border-block-end-width":Vn,"border-block-start":Vn,"border-block-start-width":Vn,"border-block-width":Vn,"border-inline":Vn,"border-inline-end":Vn,"border-inline-end-width":Vn,"border-inline-start":Vn,"border-inline-start-width":Vn,"border-inline-width":Vn,"border-start-start-radius":Vn,"border-start-end-radius":Vn,"border-end-start-radius":Vn,"border-end-end-radius":Vn,margin:Vn,"margin-bottom":Vn,"margin-left":Vn,"margin-right":Vn,"margin-top":Vn,"margin-block":Vn,"margin-block-end":Vn,"margin-block-start":Vn,"margin-inline":Vn,"margin-inline-end":Vn,"margin-inline-start":Vn,padding:Vn,"padding-bottom":Vn,"padding-left":Vn,"padding-right":Vn,"padding-top":Vn,"padding-block":Vn,"padding-block-end":Vn,"padding-block-start":Vn,"padding-inline":Vn,"padding-inline-end":Vn,"padding-inline-start":Vn,"mask-position-x":Vn,"mask-position-y":Vn,"mask-size":Vn,height:Vn,width:Vn,"min-height":Vn,"max-height":Vn,"min-width":Vn,"max-width":Vn,bottom:Vn,left:Vn,top:Vn,right:Vn,inset:Vn,"inset-block":Vn,"inset-block-end":Vn,"inset-block-start":Vn,"inset-inline":Vn,"inset-inline-end":Vn,"inset-inline-start":Vn,"box-shadow":Vn,"text-shadow":Vn,"column-gap":Vn,"column-rule":Vn,"column-rule-width":Vn,"column-width":Vn,"font-size":Vn,"font-size-delta":Vn,"letter-spacing":Vn,"text-decoration-thickness":Vn,"text-indent":Vn,"text-stroke":Vn,"text-stroke-width":Vn,"word-spacing":Vn,motion:Vn,"motion-offset":Vn,outline:Vn,"outline-offset":Vn,"outline-width":Vn,perspective:Vn,"perspective-origin-x":W$,"perspective-origin-y":W$,"transform-origin":W$,"transform-origin-x":W$,"transform-origin-y":W$,"transform-origin-z":W$,"transition-delay":Tde,"transition-duration":Tde,"vertical-align":Vn,"flex-basis":Vn,"shape-margin":Vn,size:Vn,gap:Vn,grid:Vn,"grid-gap":Vn,"row-gap":Vn,"grid-row-gap":Vn,"grid-column-gap":Vn,"grid-template-rows":Vn,"grid-template-columns":Vn,"grid-auto-rows":Vn,"grid-auto-columns":Vn,"box-shadow-x":Vn,"box-shadow-y":Vn,"box-shadow-blur":Vn,"box-shadow-spread":Vn,"font-line-height":Vn,"text-shadow-x":Vn,"text-shadow-y":Vn,"text-shadow-blur":Vn};function rgn(t){var e=/(-[a-z])/g,n=function(s){return s[1].toUpperCase()},r={};for(var a in t)r[a]=t[a],r[a.replace(e,n)]=t[a];return r}var yka=rgn(Aka);function dee(t,e,n){if(e==null)return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=dee(t,e[r],n);else if(typeof e=="object")if(t==="fallbacks")for(var a in e)e[a]=dee(a,e[a],n);else for(var o in e)e[o]=dee(t+"-"+o,e[o],n);else if(typeof e=="number"&&isNaN(e)===!1){var s=n[t]||yka[t];return s&&!(e===0&&s===Vn)?typeof s=="function"?s(e).toString():""+e+s:e.toString()}return e}function bka(t){t===void 0&&(t={});var e=rgn(t);function n(a,o){if(o.type!=="style")return a;for(var s in a)a[s]=dee(s,a[s],e);return a}function r(a,o){return dee(o,a,e)}return{onProcessStyle:n,onChangeValue:r}}function xka(t){if(Array.isArray(t))return gze(t)}function Eka(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ska(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wka(t){return xka(t)||Eka(t)||Son(t)||Ska()}var kZ="",cKe="",ign="",agn="",_ka=Yoe&&"ontouchstart"in document.documentElement;if(Yoe){var zBe={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Tka=document.createElement("p"),GBe=Tka.style,Cka="Transform";for(var VBe in zBe)if(VBe+Cka in GBe){kZ=VBe,cKe=zBe[VBe];break}kZ==="Webkit"&&"msHyphens"in GBe&&(kZ="ms",cKe=zBe.ms,agn="edge"),kZ==="Webkit"&&"-apple-trailing-word"in GBe&&(ign="apple")}var Yo={js:kZ,css:cKe,vendor:ign,browser:agn,isTouch:_ka};function kka(t){return t[1]==="-"||Yo.js==="ms"?t:"@"+Yo.css+"keyframes"+t.substr(10)}var Rka={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:Yo.js==="ms"?"-webkit-"+e:Yo.css+e}},Mka={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:Yo.js==="Webkit"?Yo.css+"print-"+e:e}},Nka=/[-\s]+(.)?/g;function Ika(t,e){return e?e.toUpperCase():""}function Vat(t){return t.replace(Nka,Ika)}function _P(t){return Vat("-"+t)}var Pka={noPrefill:["mask"],supportedProperty:function(e,n){if(!/^mask/.test(e))return!1;if(Yo.js==="Webkit"){var r="mask-image";if(Vat(r)in n)return e;if(Yo.js+_P(r)in n)return Yo.css+e}return e}},Oka={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:Yo.vendor==="apple"&&!Yo.isTouch?Yo.css+e:e}},Lka={noPrefill:["transform"],supportedProperty:function(e,n,r){return e!=="transform"?!1:r.transform?e:Yo.css+e}},Bka={noPrefill:["transition"],supportedProperty:function(e,n,r){return e!=="transition"?!1:r.transition?e:Yo.css+e}},Dka={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:Yo.js==="Webkit"||Yo.js==="ms"&&Yo.browser!=="edge"?Yo.css+e:e}},$ka={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:Yo.js==="Moz"||Yo.js==="ms"||Yo.vendor==="apple"?Yo.css+e:e}},Fka={supportedProperty:function(e,n){if(!/^break-/.test(e))return!1;if(Yo.js==="Webkit"){var r="WebkitColumn"+_P(e);return r in n?Yo.css+"column-"+e:!1}if(Yo.js==="Moz"){var a="page"+_P(e);return a in n?"page-"+e:!1}return!1}},jka={supportedProperty:function(e,n){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(Yo.js==="Moz")return e;var r=e.replace("-inline","");return Yo.js+_P(r)in n?Yo.css+r:!1}},Hka={supportedProperty:function(e,n){return Vat(e)in n?e:!1}},Uka={supportedProperty:function(e,n){var r=_P(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:Yo.js+r in n?Yo.css+e:Yo.js!=="Webkit"&&"Webkit"+r in n?"-webkit-"+e:!1}},zka={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:Yo.js==="ms"?""+Yo.css+e:e}},Gka={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:Yo.js==="ms"?Yo.css+"scroll-chaining":e}},Vka={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Kka={supportedProperty:function(e,n){var r=Vka[e];return r&&Yo.js+_P(r)in n?Yo.css+r:!1}},ogn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Wka=Object.keys(ogn),Qka=function(e){return Yo.css+e},qka={supportedProperty:function(e,n,r){var a=r.multiple;if(Wka.indexOf(e)>-1){var o=ogn[e];if(!Array.isArray(o))return Yo.js+_P(o)in n?Yo.css+o:!1;if(!a)return!1;for(var s=0;s<o.length;s++)if(!(Yo.js+_P(o[0])in n))return!1;return o.map(Qka)}return!1}},sgn=[Rka,Mka,Pka,Oka,Lka,Bka,Dka,$ka,Fka,jka,Hka,Uka,zka,Gka,Kka,qka],TMt=sgn.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),Yka=sgn.filter(function(t){return t.noPrefill}).reduce(function(t,e){return t.push.apply(t,wka(e.noPrefill)),t},[]),RZ,AB={};if(Yoe){RZ=document.createElement("p");var KBe=window.getComputedStyle(document.documentElement,"");for(var WBe in KBe)isNaN(WBe)||(AB[KBe[WBe]]=KBe[WBe]);Yka.forEach(function(t){return delete AB[t]})}function uKe(t,e){if(e===void 0&&(e={}),!RZ)return t;if(AB[t]!=null)return AB[t];(t==="transition"||t==="transform")&&(e[t]=t in RZ.style);for(var n=0;n<TMt.length&&(AB[t]=TMt[n](t,RZ.style,e),!AB[t]);n++);try{RZ.style[t]=""}catch{return!1}return AB[t]}var Q$={},Jka={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Zka=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,WI;function Xka(t,e,n){if(e==="var")return"var";if(e==="all")return"all";if(n==="all")return", all";var r=e?uKe(e):", "+uKe(n);return r||e||n}Yoe&&(WI=document.createElement("p"));function CMt(t,e){var n=e;if(!WI||t==="content")return e;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var r=t+n;if(Q$[r]!=null)return Q$[r];try{WI.style[t]=n}catch{return Q$[r]=!1,!1}if(Jka[t])n=n.replace(Zka,Xka);else if(WI.style[t]===""&&(n=Yo.css+n,n==="-ms-flex"&&(WI.style[t]="-ms-flexbox"),WI.style[t]=n,WI.style[t]===""))return Q$[r]=!1,!1;return WI.style[t]="",Q$[r]=n,Q$[r]}function eRa(){function t(a){if(a.type==="keyframes"){var o=a;o.at=kka(o.at)}}function e(a){for(var o in a){var s=a[o];if(o==="fallbacks"&&Array.isArray(s)){a[o]=s.map(e);continue}var l=!1,c=uKe(o);c&&c!==o&&(l=!0);var u=!1,d=CMt(c,MD(s));d&&d!==s&&(u=!0),(l||u)&&(l&&delete a[o],a[c||o]=d||s)}return a}function n(a,o){return o.type!=="style"?a:e(a)}function r(a,o){return CMt(o,MD(a))||a}return{onProcessRule:t,onProcessStyle:n,onChangeValue:r}}function tRa(){var t=function(n,r){return n.length===r.length?n>r?1:-1:n.length-r.length};return{onProcessStyle:function(n,r){if(r.type!=="style")return n;for(var a={},o=Object.keys(n).sort(t),s=0;s<o.length;s++)a[o[s]]=n[o[s]];return a}}}function nRa(){return{plugins:[ika(),uka(),fka(),vka(),bka(),typeof window>"u"?null:eRa(),tRa()]}}function lgn(t={}){const{baseClasses:e,newClasses:n,Component:r}=t;if(!n)return e;const a=Ce({},e);return Object.keys(n).forEach(o=>{n[o]&&(a[o]=`${e[o]} ${n[o]}`)}),a}const rRa={set:(t,e,n,r)=>{let a=t.get(e);a||(a=new Map,t.set(e,a)),a.set(n,r)},get:(t,e,n)=>{const r=t.get(e);return r?r.get(n):void 0},delete:(t,e,n)=>{t.get(e).delete(n)}},rj=rRa;function iRa(){var t;const e=rXe();return(t=e==null?void 0:e.$$material)!=null?t:e}const aRa=Zmn(nRa()),oRa=ACa(),sRa=new Map,lRa={disableGeneration:!1,generateClassName:oRa,jss:aRa,sheetsCache:null,sheetsManager:sRa,sheetsRegistry:null},cRa=Y.createContext(lRa);let kMt=-1e9;function uRa(){return kMt+=1,kMt}const dRa=["variant"];function RMt(t){return t.length===0}function hRa(t){const{variant:e}=t,n=Wn(t,dRa);let r=e||"";return Object.keys(n).sort().forEach(a=>{a==="color"?r+=RMt(r)?t[a]:fn(t[a]):r+=`${RMt(r)?a:fn(a)}${fn(t[a].toString())}`}),r}const fRa={},pRa=fRa;function mRa(t){const e=typeof t=="function";return{create:(n,r)=>{let a;try{a=e?t(n):t}catch(c){throw c}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return a;const o=n.components[r].styleOverrides||{},s=n.components[r].variants||[],l=Ce({},a);return Object.keys(o).forEach(c=>{l[c]=rg(l[c]||{},o[c])}),s.forEach(c=>{const u=hRa(c.props);l[u]=rg(l[u]||{},c.style)}),l},options:{}}}const gRa=["name","classNamePrefix","Component","defaultTheme"];function vRa({state:t,stylesOptions:e},n,r){if(e.disableGeneration)return n||{};t.cacheClasses||(t.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return t.classes!==t.cacheClasses.lastJSS&&(t.cacheClasses.lastJSS=t.classes,a=!0),n!==t.cacheClasses.lastProp&&(t.cacheClasses.lastProp=n,a=!0),a&&(t.cacheClasses.value=lgn({baseClasses:t.cacheClasses.lastJSS,newClasses:n,Component:r})),t.cacheClasses.value}function ARa({state:t,theme:e,stylesOptions:n,stylesCreator:r,name:a},o){if(n.disableGeneration)return;let s=rj.get(n.sheetsManager,r,e);s||(s={refs:0,staticSheet:null,dynamicStyles:null},rj.set(n.sheetsManager,r,e,s));const l=Ce({},r.options,n,{theme:e,flip:typeof n.flip=="boolean"?n.flip:e.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(s.refs===0){let u;n.sheetsCache&&(u=rj.get(n.sheetsCache,r,e));const d=r.create(e,a);u||(u=n.jss.createStyleSheet(d,Ce({link:!1},l)),u.attach(),n.sheetsCache&&rj.set(n.sheetsCache,r,e,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Xmn(d)}if(s.dynamicStyles){const u=n.jss.createStyleSheet(s.dynamicStyles,Ce({link:!0},l));u.update(o),u.attach(),t.dynamicSheet=u,t.classes=lgn({baseClasses:s.staticSheet.classes,newClasses:u.classes}),c&&c.add(u)}else t.classes=s.staticSheet.classes;s.refs+=1}function yRa({state:t},e){t.dynamicSheet&&t.dynamicSheet.update(e)}function bRa({state:t,theme:e,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const a=rj.get(n.sheetsManager,r,e);a.refs-=1;const o=n.sheetsRegistry;a.refs===0&&(rj.delete(n.sheetsManager,r,e),n.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}function xRa(t,e){const n=Y.useRef([]);let r;const a=Y.useMemo(()=>({}),e);n.current!==a&&(n.current=a,r=t()),Y.useEffect(()=>()=>{r&&r()},[a])}function ERa(t,e={}){const{name:n,classNamePrefix:r,Component:a,defaultTheme:o=pRa}=e,s=Wn(e,gRa),l=mRa(t),c=n||r||"makeStyles";return l.options={index:uRa(),name:n,meta:c,classNamePrefix:c},(d={})=>{const h=iRa()||o,f=Ce({},Y.useContext(cRa),s),p=Y.useRef(),m=Y.useRef();return xRa(()=>{const v={name:n,state:{},stylesCreator:l,stylesOptions:f,theme:h};return ARa(v,d),m.current=!1,p.current=v,()=>{bRa(v)}},[h,l]),Y.useEffect(()=>{m.current&&yRa(p.current,d),m.current=!0}),vRa(p.current,d.classes,a)}}function SRa({classes:t,order:e="ASC",orderBy:n,columns:r,onRequestSort:a,isAction:o,resizeColumns:s,setResizeColumns:l,actionColumnName:c="Actions",tableColumnWidth:u,nonSortableColumns:d,dragEnabled:h=!0}){const f=(m,g)=>v=>{a(v,m,g)},p=({deltaX:m,colIndex:g,columnWidth:v=0})=>{const A=v||u[g]||200;l({...s,[g]:Math.max(A,(s[g]||0)+m)})};return E.jsxs(Mx,{component:"div",className:YUe(t.row,t.headerRow),children:[r==null?void 0:r.map((m,g)=>{const v=d&&d[m.dataKey]||!1;return E.jsxs(mv,{component:"div",variant:"head",align:m.numeric?"right":"left",style:{height:"auto",fontWeight:600,width:s[g]||m.width||u[g]||200,display:m!=null&&m.hide?"none":"flex"},scope:"col",className:v?"nonSortable":"",children:[E.jsxs(fIr,{active:n===m.dataKey,direction:n===m.dataKey?e==null?void 0:e.toLowerCase():"asc",onClick:v?void 0:f(m.dataKey,e),children:[n===m.dataKey?E.jsx(k_r,{component:"span",sx:i1r,children:e==="DESC"?"sorted descending":"sorted ascending"}):null,E.jsx(Pn,{label:m.label,children:E.jsx("span",{className:"headText",children:m.label})})]}),h&&E.jsx(Vba,{axis:"x",defaultClassName:"DragHandle",defaultClassNameDragging:"DragHandleActive",onDrag:(A,{deltaX:y})=>{p({deltaX:y,colIndex:g,columnWidth:m.width})},position:{x:0,y:0},children:E.jsx("span",{className:"DragHandleIcon",style:{marginLeft:"auto"},children:E.jsx(xmi,{})})})]},`${g+g}`)}),o&&E.jsx(mv,{component:"div",variant:"head",className:"actionColumn",scope:"col",children:c})]})}const wRa=gt.div`
  border-radius: 8px;
  flex: 1;
  display: block;
  overflow: auto hidden;
  &.strippedTable {
    padding: 0 10px;
    background: ${t=>{var e,n,r,a;return t!=null&&t.$useImgColors?`linear-gradient(
      180deg,
      ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
      ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
    )`:(a=(r=t.theme)==null?void 0:r.custom)==null?void 0:a.tableBg}};
    .MuiTableCell-body {
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
      max-height: unset;
      padding-right: 30px;
      position: relative;
    }
    .MuiTableBody-root .MuiTableRow-root {
      border: 0;
      max-height: unset;
    }
    .MuiTableBody-root .MuiTableRow-root:nth-child(even) {
      background: transparent;
    }
    .MuiTableBody-root .MuiTableRow-root:nth-child(odd) {
      background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[0])}};
    }
    &::-webkit-scrollbar-track {
      background: ${t=>{var e;return(t==null?void 0:t.$useImgColors)&&`${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}`}};
    }
    &::-webkit-scrollbar-thumb {
      background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
        180deg,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
      )`}};
    }
  }
  .MuiTableCell-head span {
    overflow: hidden;
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    text-overflow: ellipsis;
  }
  .MuiTableRow-root {
    display: flex;
    flex-wrap: nowrap;
    min-width: 100%;
    align-items: stretch;
  }
  .MuiTableCell-head {
    display: flex;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    border-bottom: 0;
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    padding: 12px 4px;
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    white-space: nowrap;
    &:first-child {
      padding-left: 12px;
    }
    &:last-child {
      padding-right: 12px;
    }
    &.nonSortable {
      .MuiTableSortLabel-root {
        cursor: default;
      }
      span {
        .MuiTableSortLabel-icon {
          display: none;
        }
      }
    }
  }
  .MuiTableCell-head .MuiButtonBase-root:hover,
  .MuiTableCell-head .Mui-active,
  .MuiTableCell-head .Mui-active .MuiTableSortLabel-icon {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
  }
  .MuiTableCell-head .MuiTableSortLabel-root:hover .MuiSvgIcon-root {
    fill: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    opacity: 1;
  }
  .MuiTableCell-head .MuiTableSortLabel-root:focus {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
  }
  .MuiTableCell-body {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 8px 4px;
    max-height: ${t=>t.rowSize-4}px;
    line-height: ${t=>t.rowSize-16}px;
    border-bottom: 0;
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    .copyCellValueBtn {
      height: 20px;
      width: 20px;
      border: 0;
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      display: none;
      &:hover {
        background: none;
      }
    }
    &:first-child {
      padding-left: 12px;
    }
    &:last-child {
      padding-right: 12px;
    }
    &:hover {
      .copyCellValueBtn {
        display: block;
      }
    }
  }
  .MuiTableBody-root .MuiTableRow-root {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    max-height: ${t=>t.rowSize-4}px;
  }

  .progressBar {
    .MuiLinearProgress-root {
      display: inline-block;
      width: 60px;
      margin-right: 5px;
      margin-bottom: 2px;
      border-radius: 2px;
      background-color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A6}};
    }
    &.postiveValue {
      color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greenLight}};
    }
    &.negativeValue {
      color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.redLight}};
    }
  }
  .actionColumn {
    height: auto;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    flex: 1 1 0%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 165px;
  }
  .tableAction button:not(.formBtn) {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.tableActionBg}};
    box-shadow: none;
    border: 0px none;
    border-radius: 4px;
    height: 30px;
    width: 30px;
    &:hover {
      color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
    }
    svg {
      max-width: 14px;
    }
    + button {
      margin-left: 12px;
    }
  }
  .tableAction {
    display: flex;
    flex-direction: row;
    align-items: center;
    .deleteWidget {
      margin-left: 12px;
    }
    .publishBtn {
      margin-right: 8px;
    }
  }
  .tagList {
    margin-top: 5px;
  }
  &:not(.strippedTable) {
    .MuiTableBody-root {
      .MuiTableRow-root {
        &:after {
          content: '';
          position: absolute;
          width: 3px;
          height: 100%;
          left: 0;
          top: 0;
          border-top-left-radius: 4px;
          border-bottom-left-radius: 4px;
        }
        &:nth-child(5n-4):before {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pink}};
        }
        &:nth-child(5n-3):before {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.mint}};
        }
        &:nth-child(5n-2):before {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.blue}};
        }
        &:nth-child(5n-1):before {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
        }
        &:nth-child(5n):before {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
        }

        &:before {
          content: '';
          position: absolute;
          width: 24px;
          height: 100%;
          left: 0;
          background: red;
          filter: blur(20px);
          pointer-events: none;
          display: none;
        }
        &:nth-child(5n-4):after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pink}};
        }
        &:nth-child(5n-3):after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.mint}};
        }
        &:nth-child(5n-2):after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.blue}};
        }
        &:nth-child(5n-1):after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
        }
        &:nth-child(5n):after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
        }

        &:hover {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.tableHoverBg}};
          background-size: cover;
          background-repeat: no-repeat;
          background-position: center;
          .tag,
          .tableAction button:not(.formBtn),
          .queryText {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
          }
          &:before {
            display: block;
          }
        }
        &.active {
          background: ${t=>t.theme.custom.thumbnailBgHover};
        }
        &.disabled {
          background: ${t=>t.theme.custom.tableActionBgDisabled};
          cursor: not-allowed;
          .rowLocked {
            cursor: default;
            position: absolute;
            left: 8px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            box-shadow: 4px 4px 24px rgb(7 1 26 / 45%);
            background: ${t=>t.theme.custom.chartThumbnailActive};
            color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
            + .MuiTableCell-root {
              padding-left: 40px;
            }
          }
          .MuiTableCell-root {
            opacity: 0.5;
            pointer-events: none;
          }
          &:before {
            display: none;
          }
        }
      }
    }
  }
`,_Ra=gt.div`
  .copyButton {
    text-align: right;
    margin-bottom: 8px;
  }
  .contentText {
    word-break: break-word;
    .copyCellValueBtn {
      display: none;
    }
  }
`,cgn=gt.div`
  && {
    display: flex;
    justify-content: center;
    font-size: ${t=>t.theme.custom.fontSize.font12};
    padding: 8px;
    text-align: center;
    height: 100%;
    width: 100%;
    word-break: break-word;
    overflow: auto;
    .emptyContent {
      margin: auto;
      picture {
        display: block;
      }
      img {
        max-height: 80px;
      }
      .text {
        position: relative;
        display: inline-flex;
        align-items: center;
        background: ${t=>t.theme.custom.white.A4};
        color: ${t=>t.theme.custom.white.A11};
        border-radius: 8px;
        padding: 8px 8px 8px 12px;
        overflow: hidden;
        .infoIcon {
          font-size: 16px;
          margin-right: 8px;
          color: ${t=>t.theme.custom.pink};
        }
        &:before,
        &:after {
          content: '';
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          background: ${t=>t.theme.custom.pink};
        }
        &:before {
          left: 0;
          width: 3px;
          height: calc(100% - 12px);
        }
        &:after {
          left: 3px;
          width: 10px;
          height: calc(100% - 20px);
          filter: blur(10px);
        }
      }
    }
  }
`;var ugn={exports:{}},dgn={exports:{}},QBe={exports:{}},MMt;function TRa(){return MMt||(MMt=1,function(t){function e(n){return this.fake=function r(a){var o="";if(typeof a!="string"||a.length===0)throw new Error("string parameter is required!");var s=a.search("{{"),l=a.search("}}");if(s===-1&&l===-1)return a;var c=a.substr(s+2,l-s-2),u=c.replace("}}","").replace("{{",""),d=/\(([^)]+)\)/,h=d.exec(u),f="";h&&(u=u.replace(d,""),f=h[1]);var p=u.split(".");if(typeof n[p[0]]>"u")throw new Error("Invalid module: "+p[0]);if(typeof n[p[0]][p[1]]>"u")throw new Error("Invalid method: "+p[0]+"."+p[1]);var m=n[p[0]][p[1]],g;try{g=JSON.parse(f)}catch{g=f}var v;return typeof g=="string"&&g.length===0?v=m.call(this):v=m.call(this,g),o=a.replace("{{"+c+"}}",v),r(o)},this}t.exports=e}(QBe)),QBe.exports}var qBe={exports:{}},YBe,NMt;function CRa(){if(NMt)return YBe;NMt=1;var t={},e={},n=[],r=0,a=function(o,s){return typeof o[s]>"u"?-1:0};return t.errorMessage=function(o,s,l){throw console.error("error",s),console.log("found",Object.keys(e).length,`unique entries before throwing error. 
retried:`,r,`
total time:`,o-l.startTime,"ms"),new Error(s+` for uniqueness check 

May not be able to generate any more unique values with current settings. 
Try adjusting maxTime or maxRetries parameters for faker.unique()`)},t.exec=function(o,s,l){var c=new Date().getTime();l=l||{},l.maxTime=l.maxTime||3,l.maxRetries=l.maxRetries||50,l.exclude=l.exclude||n,l.compare=l.compare||a,typeof l.currentIterations!="number"&&(l.currentIterations=0),typeof l.startTime>"u"&&(l.startTime=new Date().getTime());var u=l.startTime;if(typeof l.exclude=="string"&&(l.exclude=[l.exclude]),l.currentIterations>0,c-u>=l.maxTime)return t.errorMessage(c,"Exceeded maxTime:"+l.maxTime,l);if(l.currentIterations>=l.maxRetries)return t.errorMessage(c,"Exceeded maxRetries:"+l.maxRetries,l);var d=o.apply(this,s);return l.compare(e,d)===-1&&l.exclude.indexOf(d)===-1?(e[d]=d,l.currentIterations=0,d):(l.currentIterations++,t.exec(o,s,l))},YBe=t,YBe}var IMt;function kRa(){return IMt||(IMt=1,function(t){var e=CRa();function n(r){var a=10,o=10;this.unique=function(l,c,u){return u=u||{},u.startTime=new Date().getTime(),typeof u.maxTime!="number"&&(u.maxTime=a),typeof u.maxRetries!="number"&&(u.maxRetries=o),u.currentIterations=0,e.exec(l,c,u)}}t.exports=n}(qBe)),qBe.exports}var JBe={},PMt;function RRa(){if(PMt)return JBe;PMt=1;function t(){var e,n,r,a,o;e=624,n=397,r=2567483615,a=2147483648,o=2147483647;var s=new Array(e),l=e+1;function c(p){return p<0?(p^a)+a:p}function u(p,m){return p<m?c(4294967296-(m-p)&4294967295):p-m}function d(p,m){return c(p+m&4294967295)}function h(p,m){for(var g=0,v=0;v<32;++v)p>>>v&1&&(g=d(g,c(m<<v)));return g}this.init_genrand=function(p){for(s[0]=c(p&4294967295),l=1;l<e;l++)s[l]=d(h(1812433253,c(s[l-1]^s[l-1]>>>30)),l),s[l]=c(s[l]&4294967295)},this.init_by_array=function(p,m){var g,v,A;for(this.init_genrand(19650218),g=1,v=0,A=e>m?e:m;A;A--)s[g]=d(d(c(s[g]^h(c(s[g-1]^s[g-1]>>>30),1664525)),p[v]),v),s[g]=c(s[g]&4294967295),g++,v++,g>=e&&(s[0]=s[e-1],g=1),v>=m&&(v=0);for(A=e-1;A;A--)s[g]=u(c((dbg=s[g])^h(c(s[g-1]^s[g-1]>>>30),1566083941)),g),s[g]=c(s[g]&4294967295),g++,g>=e&&(s[0]=s[e-1],g=1);s[0]=2147483648};var f=[0,r];this.genrand_int32=function(){var p;if(l>=e){var m;for(l==e+1&&this.init_genrand(5489),m=0;m<e-n;m++)p=c(s[m]&a|s[m+1]&o),s[m]=c(s[m+n]^p>>>1^f[p&1]);for(;m<e-1;m++)p=c(s[m]&a|s[m+1]&o),s[m]=c(s[m+(n-e)]^p>>>1^f[p&1]);p=c(s[e-1]&a|s[0]&o),s[e-1]=c(s[n-1]^p>>>1^f[p&1]),l=0}return p=s[l++],p=c(p^p>>>11),p=c(p^p<<7&2636928640),p=c(p^p<<15&4022730752),p=c(p^p>>>18),p},this.genrand_int31=function(){return this.genrand_int32()>>>1},this.genrand_real1=function(){return this.genrand_int32()*(1/4294967295)},this.genrand_real2=function(){return this.genrand_int32()*(1/4294967296)},this.genrand_real3=function(){return(this.genrand_int32()+.5)*(1/4294967296)},this.genrand_res53=function(){var p=this.genrand_int32()>>>5,m=this.genrand_int32()>>>6;return(p*67108864+m)*(1/9007199254740992)}}return JBe.MersenneTwister19937=t,JBe}var ZBe,OMt;function MRa(){if(OMt)return ZBe;OMt=1;var t=RRa().MersenneTwister19937;function e(){var n=new t;n.init_genrand(new Date().getTime()%1e9),this.rand=function(r,a){return r===void 0&&(a=0,r=32768),Math.floor(n.genrand_real2()*(r-a)+a)},this.seed=function(r){if(typeof r!="number")throw new Error("seed(S) must take numeric argument; is "+typeof r);n.init_genrand(r)},this.seed_array=function(r){if(typeof r!="object")throw new Error("seed_array(A) must take array of numbers; is "+typeof r);n.init_by_array(r,r.length)}}return ZBe=e,ZBe}var XBe={exports:{}},LMt;function BMt(){return LMt||(LMt=1,function(t){var e=function(r,a){return a.forEach(function(o){r=r.filter(function(s){return s!==o})}),r};function n(r,a){return Array.isArray(a)&&a.length?r.mersenne.seed_array(a):isNaN(a)||r.mersenne.seed(a),this.number=function(o){return console.log("Deprecation Warning: faker.random.number is now located in faker.datatype.number"),r.datatype.number(o)},this.float=function(o){return console.log("Deprecation Warning: faker.random.float is now located in faker.datatype.float"),r.datatype.float(o)},this.arrayElement=function(o){o=o||["a","b","c"];var s=r.datatype.number({max:o.length-1});return o[s]},this.arrayElements=function(o,s){o=o||["a","b","c"],typeof s!="number"?s=r.datatype.number({min:1,max:o.length}):s>o.length?s=o.length:s<0&&(s=0);for(var l=o.slice(0),c=o.length,u=c-s,d,h;c-- >u;)h=Math.floor((c+1)*r.datatype.float({min:0,max:.99})),d=l[h],l[h]=l[c],l[c]=d;return l.slice(u)},this.objectElement=function(o,s){o=o||{foo:"bar",too:"car"};var l=Object.keys(o),c=r.random.arrayElement(l);return s==="key"?c:o[c]},this.uuid=function(){return console.log("Deprecation Warning: faker.random.uuid is now located in faker.datatype.uuid"),r.datatype.uuid()},this.boolean=function(){return console.log("Deprecation Warning: faker.random.boolean is now located in faker.datatype.boolean"),r.datatype.boolean()},this.word=function(s){var l=["commerce.department","commerce.productName","commerce.productAdjective","commerce.productMaterial","commerce.product","commerce.color","company.catchPhraseAdjective","company.catchPhraseDescriptor","company.catchPhraseNoun","company.bsAdjective","company.bsBuzz","company.bsNoun","address.streetSuffix","address.county","address.country","address.state","finance.accountName","finance.transactionType","finance.currencyName","hacker.noun","hacker.verb","hacker.adjective","hacker.ingverb","hacker.abbreviation","name.jobDescriptor","name.jobArea","name.jobType"],c=r.random.arrayElement(l),u=r.fake("{{"+c+"}}");return r.random.arrayElement(u.split(" "))},this.words=function(s){var l=[];typeof s>"u"&&(s=r.datatype.number({min:1,max:3}));for(var c=0;c<s;c++)l.push(r.random.word());return l.join(" ")},this.image=function(){return r.image.image()},this.locale=function(){return r.random.arrayElement(Object.keys(r.locales))},this.alpha=function(s){typeof s>"u"?s={count:1}:typeof s=="number"?s={count:s}:typeof s.count>"u"&&(s.count=1),typeof s.upcase>"u"&&(s.upcase=!1),typeof s.bannedChars>"u"&&(s.bannedChars=[]);var l="",c=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];s.bannedChars&&(c=e(c,s.bannedChars));for(var u=0;u<s.count;u++)l+=r.random.arrayElement(c);return s.upcase?l.toUpperCase():l},this.alphaNumeric=function(s,l){typeof s>"u"&&(s=1),typeof l>"u"&&(l={}),typeof l.bannedChars>"u"&&(l.bannedChars=[]);var c="",u=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];l&&l.bannedChars&&(u=e(u,l.bannedChars));for(var d=0;d<s;d++)c+=r.random.arrayElement(u);return c},this.hexaDecimal=function(s){return console.log("Deprecation Warning: faker.random.hexaDecimal is now located in faker.datatype.hexaDecimal"),r.datatype.hexaDecimal(s)},this}t.exports=n}(XBe)),XBe.exports}var eDe={exports:{}},DMt;function NRa(){return DMt||(DMt=1,function(t){var e=function(n){var r=this;return r.randomize=function(a){return a=a||["a","b","c"],n.random.arrayElement(a)},r.slugify=function(a){return a=a||"",a.replace(/ /g,"-").replace(/[^\一-龠\ぁ-ゔ\ァ-ヴー\w\.\-]+/g,"")},r.replaceSymbolWithNumber=function(a,o){a=a||"",o===void 0&&(o="#");for(var s="",l=0;l<a.length;l++)a.charAt(l)==o?s+=n.datatype.number(9):a.charAt(l)=="!"?s+=n.datatype.number({min:2,max:9}):s+=a.charAt(l);return s},r.replaceSymbols=function(a){a=a||"";for(var o=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],s="",l=0;l<a.length;l++)a.charAt(l)=="#"?s+=n.datatype.number(9):a.charAt(l)=="?"?s+=n.random.arrayElement(o):a.charAt(l)=="*"?s+=n.datatype.boolean()?n.random.arrayElement(o):n.datatype.number(9):s+=a.charAt(l);return s},r.replaceCreditCardSymbols=function(a,o){a=a||"6453-####-####-####-###L",o=o||"#";var s=function(u){u.reverse(),u=u.map(function(h,f){return f%2===0&&(h*=2,h>9&&(h-=9)),h});var d=u.reduce(function(h,f){return h+f});return d%10};a=n.helpers.regexpStyleStringParse(a),a=n.helpers.replaceSymbolWithNumber(a,o);var l=a.replace(/\D/g,"").split("").map(function(u){return parseInt(u)}),c=s(l);return a.replace("L",c)},r.repeatString=function(a,o){typeof o>"u"&&(o=0);for(var s="",l=0;l<o;l++)s+=a.toString();return s},r.regexpStyleStringParse=function(a){a=a||"";for(var o=/(.)\{(\d+)\,(\d+)\}/,s=/(.)\{(\d+)\}/,l=/\[(\d+)\-(\d+)\]/,c,u,d,h,f=a.match(o);f!==null;)c=parseInt(f[2]),u=parseInt(f[3]),c>u&&(d=u,u=c,c=d),h=n.datatype.number({min:c,max:u}),a=a.slice(0,f.index)+n.helpers.repeatString(f[1],h)+a.slice(f.index+f[0].length),f=a.match(o);for(f=a.match(s);f!==null;)h=parseInt(f[2]),a=a.slice(0,f.index)+n.helpers.repeatString(f[1],h)+a.slice(f.index+f[0].length),f=a.match(s);for(f=a.match(l);f!==null;)c=parseInt(f[1]),u=parseInt(f[2]),c>u&&(d=u,u=c,c=d),a=a.slice(0,f.index)+n.datatype.number({min:c,max:u}).toString()+a.slice(f.index+f[0].length),f=a.match(l);return a},r.shuffle=function(a){if(typeof a>"u"||a.length===0)return a||[];a=a||["a","b","c"];for(var o,s,l=a.length-1;l>0;--l)s=n.datatype.number(l),o=a[l],a[l]=a[s],a[s]=o;return a},r.mustache=function(a,o){if(typeof a>"u")return"";for(var s in o){var l=new RegExp("{{"+s+"}}","g");a=a.replace(l,o[s])}return a},r.createCard=function(){return{name:n.name.findName(),username:n.internet.userName(),email:n.internet.email(),address:{streetA:n.address.streetName(),streetB:n.address.streetAddress(),streetC:n.address.streetAddress(!0),streetD:n.address.secondaryAddress(),city:n.address.city(),state:n.address.state(),country:n.address.country(),zipcode:n.address.zipCode(),geo:{lat:n.address.latitude(),lng:n.address.longitude()}},phone:n.phone.phoneNumber(),website:n.internet.domainName(),company:{name:n.company.companyName(),catchPhrase:n.company.catchPhrase(),bs:n.company.bs()},posts:[{words:n.lorem.words(),sentence:n.lorem.sentence(),sentences:n.lorem.sentences(),paragraph:n.lorem.paragraph()},{words:n.lorem.words(),sentence:n.lorem.sentence(),sentences:n.lorem.sentences(),paragraph:n.lorem.paragraph()},{words:n.lorem.words(),sentence:n.lorem.sentence(),sentences:n.lorem.sentences(),paragraph:n.lorem.paragraph()}],accountHistory:[n.helpers.createTransaction(),n.helpers.createTransaction(),n.helpers.createTransaction()]}},r.contextualCard=function(){var a=n.name.firstName(),o=n.internet.userName(a);return{name:a,username:o,avatar:n.internet.avatar(),email:n.internet.email(o),dob:n.date.past(50,new Date("Sat Sep 20 1992 21:35:02 GMT+0200 (CEST)")),phone:n.phone.phoneNumber(),address:{street:n.address.streetName(!0),suite:n.address.secondaryAddress(),city:n.address.city(),zipcode:n.address.zipCode(),geo:{lat:n.address.latitude(),lng:n.address.longitude()}},website:n.internet.domainName(),company:{name:n.company.companyName(),catchPhrase:n.company.catchPhrase(),bs:n.company.bs()}}},r.userCard=function(){return{name:n.name.findName(),username:n.internet.userName(),email:n.internet.email(),address:{street:n.address.streetName(!0),suite:n.address.secondaryAddress(),city:n.address.city(),zipcode:n.address.zipCode(),geo:{lat:n.address.latitude(),lng:n.address.longitude()}},phone:n.phone.phoneNumber(),website:n.internet.domainName(),company:{name:n.company.companyName(),catchPhrase:n.company.catchPhrase(),bs:n.company.bs()}}},r.createTransaction=function(){return{amount:n.finance.amount(),date:new Date(2012,1,2),business:n.company.companyName(),name:[n.finance.accountName(),n.finance.mask()].join(" "),type:r.randomize(n.definitions.finance.transaction_type),account:n.finance.account()}},r};t.exports=e}(eDe)),eDe.exports}var tDe={exports:{}},$Mt;function IRa(){return $Mt||($Mt=1,function(t){function e(n){this.firstName=function(r){if(typeof n.definitions.name.male_first_name<"u"&&typeof n.definitions.name.female_first_name<"u"){if(typeof r=="string"&&(r.toLowerCase()==="male"?r=0:r.toLowerCase()==="female"&&(r=1)),typeof r!="number")if(typeof n.definitions.name.first_name>"u")r=n.datatype.number(1);else return n.random.arrayElement(n.definitions.name.first_name);return r===0?n.random.arrayElement(n.definitions.name.male_first_name):n.random.arrayElement(n.definitions.name.female_first_name)}return n.random.arrayElement(n.definitions.name.first_name)},this.lastName=function(r){return typeof n.definitions.name.male_last_name<"u"&&typeof n.definitions.name.female_last_name<"u"?(typeof r!="number"&&(r=n.datatype.number(1)),r===0?n.random.arrayElement(n.locales[n.locale].name.male_last_name):n.random.arrayElement(n.locales[n.locale].name.female_last_name)):n.random.arrayElement(n.definitions.name.last_name)},this.middleName=function(r){return typeof n.definitions.name.male_middle_name<"u"&&typeof n.definitions.name.female_middle_name<"u"?(typeof r!="number"&&(r=n.datatype.number(1)),r===0?n.random.arrayElement(n.locales[n.locale].name.male_middle_name):n.random.arrayElement(n.locales[n.locale].name.female_middle_name)):n.random.arrayElement(n.definitions.name.middle_name)},this.findName=function(r,a,o){var s=n.datatype.number(8),l,c;switch(typeof o!="number"&&(o=n.datatype.number(1)),r=r||n.name.firstName(o),a=a||n.name.lastName(o),s){case 0:if(l=n.name.prefix(o),l)return l+" "+r+" "+a;case 1:if(c=n.name.suffix(o),c)return r+" "+a+" "+c}return r+" "+a},this.jobTitle=function(){return n.name.jobDescriptor()+" "+n.name.jobArea()+" "+n.name.jobType()},this.gender=function(r){return r?n.random.arrayElement(n.definitions.name.binary_gender):n.random.arrayElement(n.definitions.name.gender)},this.prefix=function(r){return typeof n.definitions.name.male_prefix<"u"&&typeof n.definitions.name.female_prefix<"u"?(typeof r!="number"&&(r=n.datatype.number(1)),r===0?n.random.arrayElement(n.locales[n.locale].name.male_prefix):n.random.arrayElement(n.locales[n.locale].name.female_prefix)):n.random.arrayElement(n.definitions.name.prefix)},this.suffix=function(){return n.random.arrayElement(n.definitions.name.suffix)},this.title=function(){var r=n.random.arrayElement(n.definitions.name.title.descriptor),a=n.random.arrayElement(n.definitions.name.title.level),o=n.random.arrayElement(n.definitions.name.title.job);return r+" "+a+" "+o},this.jobDescriptor=function(){return n.random.arrayElement(n.definitions.name.title.descriptor)},this.jobArea=function(){return n.random.arrayElement(n.definitions.name.title.level)},this.jobType=function(){return n.random.arrayElement(n.definitions.name.title.job)}}t.exports=e}(tDe)),tDe.exports}var nDe,FMt;function PRa(){if(FMt)return nDe;FMt=1;function t(e){var n=e.fake,r=e.helpers;return this.zipCode=function(a){if(typeof a>"u"){var o=e.definitions.address.postcode;typeof o=="string"?a=o:a=e.random.arrayElement(o)}return r.replaceSymbols(a)},this.zipCodeByState=function(a){var o=e.definitions.address.postcode_by_state[a];return o?e.datatype.number(o):e.address.zipCode()},this.city=function(a){var o=["{{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}","{{address.cityPrefix}} {{name.firstName}}","{{name.firstName}}{{address.citySuffix}}","{{name.lastName}}{{address.citySuffix}}"];return!a&&e.definitions.address.city_name&&o.push("{{address.cityName}}"),typeof a!="number"&&(a=e.datatype.number(o.length-1)),n(o[a])},this.cityPrefix=function(){return e.random.arrayElement(e.definitions.address.city_prefix)},this.citySuffix=function(){return e.random.arrayElement(e.definitions.address.city_suffix)},this.cityName=function(){return e.random.arrayElement(e.definitions.address.city_name)},this.streetName=function(){var a,o=e.address.streetSuffix();switch(o!==""&&(o=" "+o),e.datatype.number(1)){case 0:a=e.name.lastName()+o;break;case 1:a=e.name.firstName()+o;break}return a},this.streetAddress=function(a){a===void 0&&(a=!1);var o="";switch(e.datatype.number(2)){case 0:o=r.replaceSymbolWithNumber("#####")+" "+e.address.streetName();break;case 1:o=r.replaceSymbolWithNumber("####")+" "+e.address.streetName();break;case 2:o=r.replaceSymbolWithNumber("###")+" "+e.address.streetName();break}return a?o+" "+e.address.secondaryAddress():o},this.streetSuffix=function(){return e.random.arrayElement(e.definitions.address.street_suffix)},this.streetPrefix=function(){return e.random.arrayElement(e.definitions.address.street_prefix)},this.secondaryAddress=function(){return r.replaceSymbolWithNumber(e.random.arrayElement(["Apt. ###","Suite ###"]))},this.county=function(){return e.random.arrayElement(e.definitions.address.county)},this.country=function(){return e.random.arrayElement(e.definitions.address.country)},this.countryCode=function(a){return typeof a>"u"||a==="alpha-2"?e.random.arrayElement(e.definitions.address.country_code):a==="alpha-3"?e.random.arrayElement(e.definitions.address.country_code_alpha_3):e.random.arrayElement(e.definitions.address.country_code)},this.state=function(a){return e.random.arrayElement(e.definitions.address.state)},this.stateAbbr=function(){return e.random.arrayElement(e.definitions.address.state_abbr)},this.latitude=function(a,o,s){return a=a||90,o=o||-90,s=s||4,e.datatype.number({max:a,min:o,precision:parseFloat(0 .toPrecision(s)+"1")}).toFixed(s)},this.longitude=function(a,o,s){return a=a||180,o=o||-180,s=s||4,e.datatype.number({max:a,min:o,precision:parseFloat(0 .toPrecision(s)+"1")}).toFixed(s)},this.direction=function(a){return typeof a>"u"||a===!1?e.random.arrayElement(e.definitions.address.direction):e.random.arrayElement(e.definitions.address.direction_abbr)},this.direction.schema={description:"Generates a direction. Use optional useAbbr bool to return abbreviation",sampleResults:["Northwest","South","SW","E"]},this.cardinalDirection=function(a){return typeof a>"u"||a===!1?e.random.arrayElement(e.definitions.address.direction.slice(0,4)):e.random.arrayElement(e.definitions.address.direction_abbr.slice(0,4))},this.cardinalDirection.schema={description:"Generates a cardinal direction. Use optional useAbbr boolean to return abbreviation",sampleResults:["North","South","E","W"]},this.ordinalDirection=function(a){return typeof a>"u"||a===!1?e.random.arrayElement(e.definitions.address.direction.slice(4,8)):e.random.arrayElement(e.definitions.address.direction_abbr.slice(4,8))},this.ordinalDirection.schema={description:"Generates an ordinal direction. Use optional useAbbr boolean to return abbreviation",sampleResults:["Northwest","Southeast","SW","NE"]},this.nearbyGPSCoordinate=function(a,o,s){function l(f){return f*(Math.PI/180)}function c(f){return f*(180/Math.PI)}function u(f){return f*.621371}function d(f,p,m,g){var v=6378.137,A=g?m:u(m),y=l(f[0]),S=l(f[1]),x=Math.asin(Math.sin(y)*Math.cos(A/v)+Math.cos(y)*Math.sin(A/v)*Math.cos(p)),w=S+Math.atan2(Math.sin(p)*Math.sin(A/v)*Math.cos(y),Math.cos(A/v)-Math.sin(y)*Math.sin(x));return w>l(180)?w=w-l(360):w<l(-180)&&(w=w+l(360)),[c(x),c(w)]}if(a===void 0)return[e.address.latitude(),e.address.longitude()];o=o||10,s=s||!1;var h=d(a,l(Math.random()*360),o,s);return[h[0].toFixed(4),h[1].toFixed(4)]},this.timeZone=function(){return e.random.arrayElement(e.definitions.address.time_zone)},this}return nDe=t,nDe}var rDe={exports:{}},jMt;function ORa(){return jMt||(jMt=1,function(t){var e=function(n){var r=this;return r.dog=function(){return n.random.arrayElement(n.definitions.animal.dog)},r.cat=function(){return n.random.arrayElement(n.definitions.animal.cat)},r.snake=function(){return n.random.arrayElement(n.definitions.animal.snake)},r.bear=function(){return n.random.arrayElement(n.definitions.animal.bear)},r.lion=function(){return n.random.arrayElement(n.definitions.animal.lion)},r.cetacean=function(){return n.random.arrayElement(n.definitions.animal.cetacean)},r.horse=function(){return n.random.arrayElement(n.definitions.animal.horse)},r.bird=function(){return n.random.arrayElement(n.definitions.animal.bird)},r.cow=function(){return n.random.arrayElement(n.definitions.animal.cow)},r.fish=function(){return n.random.arrayElement(n.definitions.animal.fish)},r.crocodilia=function(){return n.random.arrayElement(n.definitions.animal.crocodilia)},r.insect=function(){return n.random.arrayElement(n.definitions.animal.insect)},r.rabbit=function(){return n.random.arrayElement(n.definitions.animal.rabbit)},r.type=function(){return n.random.arrayElement(n.definitions.animal.type)},r};t.exports=e}(rDe)),rDe.exports}var iDe={exports:{}},HMt;function LRa(){return HMt||(HMt=1,function(t){var e=function(n){var r=n.fake;this.suffixes=function(){return n.definitions.company.suffix.slice(0)},this.companyName=function(a){var o=["{{name.lastName}} {{company.companySuffix}}","{{name.lastName}} - {{name.lastName}}","{{name.lastName}}, {{name.lastName}} and {{name.lastName}}"];return typeof a!="number"&&(a=n.datatype.number(o.length-1)),r(o[a])},this.companySuffix=function(){return n.random.arrayElement(n.company.suffixes())},this.catchPhrase=function(){return r("{{company.catchPhraseAdjective}} {{company.catchPhraseDescriptor}} {{company.catchPhraseNoun}}")},this.bs=function(){return r("{{company.bsBuzz}} {{company.bsAdjective}} {{company.bsNoun}}")},this.catchPhraseAdjective=function(){return n.random.arrayElement(n.definitions.company.adjective)},this.catchPhraseDescriptor=function(){return n.random.arrayElement(n.definitions.company.descriptor)},this.catchPhraseNoun=function(){return n.random.arrayElement(n.definitions.company.noun)},this.bsAdjective=function(){return n.random.arrayElement(n.definitions.company.bs_adjective)},this.bsBuzz=function(){return n.random.arrayElement(n.definitions.company.bs_verb)},this.bsNoun=function(){return n.random.arrayElement(n.definitions.company.bs_noun)}};t.exports=e}(iDe)),iDe.exports}var aDe={exports:{}},oDe={exports:{}},UMt;function BRa(){return UMt||(UMt=1,function(t){t.exports={alpha:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],pattern10:["01","02","03","04","05","06","07","08","09"],pattern100:["001","002","003","004","005","006","007","008","009"],toDigitString:function(e){return e.replace(/[A-Z]/gi,function(n){return n.toUpperCase().charCodeAt(0)-55})},mod97:function(e){for(var n=0,r=0;r<e.length;r++)n=(n*10+(e[r]|0))%97;return n},formats:[{country:"AL",total:28,bban:[{type:"n",count:8},{type:"c",count:16}],format:"ALkk bbbs sssx cccc cccc cccc cccc"},{country:"AD",total:24,bban:[{type:"n",count:8},{type:"c",count:12}],format:"ADkk bbbb ssss cccc cccc cccc"},{country:"AT",total:20,bban:[{type:"n",count:5},{type:"n",count:11}],format:"ATkk bbbb bccc cccc cccc"},{country:"AZ",total:28,bban:[{type:"a",count:4},{type:"n",count:20}],format:"AZkk bbbb cccc cccc cccc cccc cccc"},{country:"BH",total:22,bban:[{type:"a",count:4},{type:"c",count:14}],format:"BHkk bbbb cccc cccc cccc cc"},{country:"BE",total:16,bban:[{type:"n",count:3},{type:"n",count:9}],format:"BEkk bbbc cccc ccxx"},{country:"BA",total:20,bban:[{type:"n",count:6},{type:"n",count:10}],format:"BAkk bbbs sscc cccc ccxx"},{country:"BR",total:29,bban:[{type:"n",count:13},{type:"n",count:10},{type:"a",count:1},{type:"c",count:1}],format:"BRkk bbbb bbbb ssss sccc cccc ccct n"},{country:"BG",total:22,bban:[{type:"a",count:4},{type:"n",count:6},{type:"c",count:8}],format:"BGkk bbbb ssss ddcc cccc cc"},{country:"CR",total:21,bban:[{type:"n",count:3},{type:"n",count:14}],format:"CRkk bbbc cccc cccc cccc c"},{country:"HR",total:21,bban:[{type:"n",count:7},{type:"n",count:10}],format:"HRkk bbbb bbbc cccc cccc c"},{country:"CY",total:28,bban:[{type:"n",count:8},{type:"c",count:16}],format:"CYkk bbbs ssss cccc cccc cccc cccc"},{country:"CZ",total:24,bban:[{type:"n",count:10},{type:"n",count:10}],format:"CZkk bbbb ssss sscc cccc cccc"},{country:"DK",total:18,bban:[{type:"n",count:4},{type:"n",count:10}],format:"DKkk bbbb cccc cccc cc"},{country:"DO",total:28,bban:[{type:"a",count:4},{type:"n",count:20}],format:"DOkk bbbb cccc cccc cccc cccc cccc"},{country:"TL",total:23,bban:[{type:"n",count:3},{type:"n",count:16}],format:"TLkk bbbc cccc cccc cccc cxx"},{country:"EE",total:20,bban:[{type:"n",count:4},{type:"n",count:12}],format:"EEkk bbss cccc cccc cccx"},{country:"FO",total:18,bban:[{type:"n",count:4},{type:"n",count:10}],format:"FOkk bbbb cccc cccc cx"},{country:"FI",total:18,bban:[{type:"n",count:6},{type:"n",count:8}],format:"FIkk bbbb bbcc cccc cx"},{country:"FR",total:27,bban:[{type:"n",count:10},{type:"c",count:11},{type:"n",count:2}],format:"FRkk bbbb bggg ggcc cccc cccc cxx"},{country:"GE",total:22,bban:[{type:"a",count:2},{type:"n",count:16}],format:"GEkk bbcc cccc cccc cccc cc"},{country:"DE",total:22,bban:[{type:"n",count:8},{type:"n",count:10}],format:"DEkk bbbb bbbb cccc cccc cc"},{country:"GI",total:23,bban:[{type:"a",count:4},{type:"c",count:15}],format:"GIkk bbbb cccc cccc cccc ccc"},{country:"GR",total:27,bban:[{type:"n",count:7},{type:"c",count:16}],format:"GRkk bbbs sssc cccc cccc cccc ccc"},{country:"GL",total:18,bban:[{type:"n",count:4},{type:"n",count:10}],format:"GLkk bbbb cccc cccc cc"},{country:"GT",total:28,bban:[{type:"c",count:4},{type:"c",count:4},{type:"c",count:16}],format:"GTkk bbbb mmtt cccc cccc cccc cccc"},{country:"HU",total:28,bban:[{type:"n",count:8},{type:"n",count:16}],format:"HUkk bbbs sssk cccc cccc cccc cccx"},{country:"IS",total:26,bban:[{type:"n",count:6},{type:"n",count:16}],format:"ISkk bbbb sscc cccc iiii iiii ii"},{country:"IE",total:22,bban:[{type:"c",count:4},{type:"n",count:6},{type:"n",count:8}],format:"IEkk aaaa bbbb bbcc cccc cc"},{country:"IL",total:23,bban:[{type:"n",count:6},{type:"n",count:13}],format:"ILkk bbbn nncc cccc cccc ccc"},{country:"IT",total:27,bban:[{type:"a",count:1},{type:"n",count:10},{type:"c",count:12}],format:"ITkk xaaa aabb bbbc cccc cccc ccc"},{country:"JO",total:30,bban:[{type:"a",count:4},{type:"n",count:4},{type:"n",count:18}],format:"JOkk bbbb nnnn cccc cccc cccc cccc cc"},{country:"KZ",total:20,bban:[{type:"n",count:3},{type:"c",count:13}],format:"KZkk bbbc cccc cccc cccc"},{country:"XK",total:20,bban:[{type:"n",count:4},{type:"n",count:12}],format:"XKkk bbbb cccc cccc cccc"},{country:"KW",total:30,bban:[{type:"a",count:4},{type:"c",count:22}],format:"KWkk bbbb cccc cccc cccc cccc cccc cc"},{country:"LV",total:21,bban:[{type:"a",count:4},{type:"c",count:13}],format:"LVkk bbbb cccc cccc cccc c"},{country:"LB",total:28,bban:[{type:"n",count:4},{type:"c",count:20}],format:"LBkk bbbb cccc cccc cccc cccc cccc"},{country:"LI",total:21,bban:[{type:"n",count:5},{type:"c",count:12}],format:"LIkk bbbb bccc cccc cccc c"},{country:"LT",total:20,bban:[{type:"n",count:5},{type:"n",count:11}],format:"LTkk bbbb bccc cccc cccc"},{country:"LU",total:20,bban:[{type:"n",count:3},{type:"c",count:13}],format:"LUkk bbbc cccc cccc cccc"},{country:"MK",total:19,bban:[{type:"n",count:3},{type:"c",count:10},{type:"n",count:2}],format:"MKkk bbbc cccc cccc cxx"},{country:"MT",total:31,bban:[{type:"a",count:4},{type:"n",count:5},{type:"c",count:18}],format:"MTkk bbbb ssss sccc cccc cccc cccc ccc"},{country:"MR",total:27,bban:[{type:"n",count:10},{type:"n",count:13}],format:"MRkk bbbb bsss sscc cccc cccc cxx"},{country:"MU",total:30,bban:[{type:"a",count:4},{type:"n",count:4},{type:"n",count:15},{type:"a",count:3}],format:"MUkk bbbb bbss cccc cccc cccc 000d dd"},{country:"MC",total:27,bban:[{type:"n",count:10},{type:"c",count:11},{type:"n",count:2}],format:"MCkk bbbb bsss sscc cccc cccc cxx"},{country:"MD",total:24,bban:[{type:"c",count:2},{type:"c",count:18}],format:"MDkk bbcc cccc cccc cccc cccc"},{country:"ME",total:22,bban:[{type:"n",count:3},{type:"n",count:15}],format:"MEkk bbbc cccc cccc cccc xx"},{country:"NL",total:18,bban:[{type:"a",count:4},{type:"n",count:10}],format:"NLkk bbbb cccc cccc cc"},{country:"NO",total:15,bban:[{type:"n",count:4},{type:"n",count:7}],format:"NOkk bbbb cccc ccx"},{country:"PK",total:24,bban:[{type:"a",count:4},{type:"n",count:16}],format:"PKkk bbbb cccc cccc cccc cccc"},{country:"PS",total:29,bban:[{type:"c",count:4},{type:"n",count:9},{type:"n",count:12}],format:"PSkk bbbb xxxx xxxx xccc cccc cccc c"},{country:"PL",total:28,bban:[{type:"n",count:8},{type:"n",count:16}],format:"PLkk bbbs sssx cccc cccc cccc cccc"},{country:"PT",total:25,bban:[{type:"n",count:8},{type:"n",count:13}],format:"PTkk bbbb ssss cccc cccc cccx x"},{country:"QA",total:29,bban:[{type:"a",count:4},{type:"c",count:21}],format:"QAkk bbbb cccc cccc cccc cccc cccc c"},{country:"RO",total:24,bban:[{type:"a",count:4},{type:"c",count:16}],format:"ROkk bbbb cccc cccc cccc cccc"},{country:"SM",total:27,bban:[{type:"a",count:1},{type:"n",count:10},{type:"c",count:12}],format:"SMkk xaaa aabb bbbc cccc cccc ccc"},{country:"SA",total:24,bban:[{type:"n",count:2},{type:"c",count:18}],format:"SAkk bbcc cccc cccc cccc cccc"},{country:"RS",total:22,bban:[{type:"n",count:3},{type:"n",count:15}],format:"RSkk bbbc cccc cccc cccc xx"},{country:"SK",total:24,bban:[{type:"n",count:10},{type:"n",count:10}],format:"SKkk bbbb ssss sscc cccc cccc"},{country:"SI",total:19,bban:[{type:"n",count:5},{type:"n",count:10}],format:"SIkk bbss sccc cccc cxx"},{country:"ES",total:24,bban:[{type:"n",count:10},{type:"n",count:10}],format:"ESkk bbbb gggg xxcc cccc cccc"},{country:"SE",total:24,bban:[{type:"n",count:3},{type:"n",count:17}],format:"SEkk bbbc cccc cccc cccc cccc"},{country:"CH",total:21,bban:[{type:"n",count:5},{type:"c",count:12}],format:"CHkk bbbb bccc cccc cccc c"},{country:"TN",total:24,bban:[{type:"n",count:5},{type:"n",count:15}],format:"TNkk bbss sccc cccc cccc cccc"},{country:"TR",total:26,bban:[{type:"n",count:5},{type:"n",count:1},{type:"n",count:16}],format:"TRkk bbbb bxcc cccc cccc cccc cc"},{country:"AE",total:23,bban:[{type:"n",count:3},{type:"n",count:16}],format:"AEkk bbbc cccc cccc cccc ccc"},{country:"GB",total:22,bban:[{type:"a",count:4},{type:"n",count:6},{type:"n",count:8}],format:"GBkk bbbb ssss sscc cccc cc"},{country:"VG",total:24,bban:[{type:"c",count:4},{type:"n",count:16}],format:"VGkk bbbb cccc cccc cccc cccc"}],iso3166:["AC","AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BU","BV","BW","BY","BZ","CA","CC","CD","CE","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CR","CS","CS","CU","CV","CW","CX","CY","CZ","DD","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","FI","FJ","FK","FM","FO","FR","FX","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NT","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SU","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","YU","ZA","ZM","ZR","ZW"]}}(oDe)),oDe.exports}var zMt;function DRa(){return zMt||(zMt=1,function(t){var e=function(n){var r=BRa(),a=n.helpers,o=this;o.account=function(s){s=s||8;for(var l="",c=0;c<s;c++)l=l+"#";return s=null,a.replaceSymbolWithNumber(l)},o.accountName=function(){return[a.randomize(n.definitions.finance.account_type),"Account"].join(" ")},o.routingNumber=function(){for(var s=a.replaceSymbolWithNumber("########"),l=0,c=0;c<s.length;c+=3)l+=Number(s[c])*3,l+=Number(s[c+1])*7,l+=Number(s[c+2])||0;return s+(Math.ceil(l/10)*10-l)},o.mask=function(s,l,c){s=s==0||!s||typeof s>"u"?4:s,l=l===null?!0:l,c=c===null?!0:c;for(var u="",d=0;d<s;d++)u=u+"#";return u=c?["...",u].join(""):u,u=l?["(",u,")"].join(""):u,u=a.replaceSymbolWithNumber(u),u},o.amount=function(s,l,c,u,d){s=s||0,l=l||1e3,c=c===void 0?2:c,u=u||"";const h=n.datatype.number({max:l,min:s,precision:Math.pow(10,-c)});var f;return d?f=h.toLocaleString(void 0,{minimumFractionDigits:c}):f=h.toFixed(c),u+f},o.transactionType=function(){return a.randomize(n.definitions.finance.transaction_type)},o.currencyCode=function(){return n.random.objectElement(n.definitions.finance.currency).code},o.currencyName=function(){return n.random.objectElement(n.definitions.finance.currency,"key")},o.currencySymbol=function(){for(var s;!s;)s=n.random.objectElement(n.definitions.finance.currency).symbol;return s},o.bitcoinAddress=function(){for(var s=n.datatype.number({min:25,max:34}),l=n.random.arrayElement(["1","3"]),c=0;c<s-1;c++)l+=n.random.arrayElement("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ".split(""));return l},o.litecoinAddress=function(){for(var s=n.datatype.number({min:26,max:33}),l=n.random.arrayElement(["L","M","3"]),c=0;c<s-1;c++)l+=n.random.arrayElement("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ".split(""));return l},o.creditCardNumber=function(s){s=s||"";var l,c,u=n.definitions.finance.credit_card;return s in u?(c=u[s],typeof c=="string"?l=c:l=n.random.arrayElement(c)):s.match(/#/)?l=s:typeof u=="string"?l=u:typeof u=="object"&&(c=n.random.objectElement(u,"value"),typeof c=="string"?l=c:l=n.random.arrayElement(c)),l=l.replace(/\//g,""),a.replaceCreditCardSymbols(l)},o.creditCardCVV=function(){for(var s="",l=0;l<3;l++)s+=n.datatype.number({max:9}).toString();return s},o.ethereumAddress=function(){var s=n.datatype.hexaDecimal(40).toLowerCase();return s},o.iban=function(s,l){var c;if(l){var u=function(A){return A.country===l};c=r.formats.find(u)}else c=n.random.arrayElement(r.formats);if(!c)throw new Error("Country code "+l+" not supported.");for(var d="",h=0,f=0;f<c.bban.length;f++){var p=c.bban[f],m=p.count;for(h+=p.count;m>0;)p.type=="a"?d+=n.random.arrayElement(r.alpha):p.type=="c"?n.datatype.number(100)<80?d+=n.datatype.number(9):d+=n.random.arrayElement(r.alpha):m>=3&&n.datatype.number(100)<30?n.datatype.boolean()?(d+=n.random.arrayElement(r.pattern100),m-=2):(d+=n.random.arrayElement(r.pattern10),m--):d+=n.datatype.number(9),m--;d=d.substring(0,h)}var g=98-r.mod97(r.toDigitString(d+c.country+"00"));g<10&&(g="0"+g);var v=c.country+g+d;return s?v.match(/.{1,4}/g).join(" "):v},o.bic=function(){var s=["A","E","I","O","U"],l=n.datatype.number(100);return a.replaceSymbols("???")+n.random.arrayElement(s)+n.random.arrayElement(r.iso3166)+a.replaceSymbols("?")+"1"+(l<10?a.replaceSymbols("?"+n.random.arrayElement(s)+"?"):l<40?a.replaceSymbols("###"):"")},o.transactionDescription=function(){var s=a.createTransaction(),l=s.account,c=s.amount,u=s.type,d=s.business,h=n.finance.mask(),f=n.finance.currencyCode();return u+" transaction at "+d+" using card ending with ***"+h+" for "+f+" "+c+" in account ***"+l}};t.exports=e}(aDe)),aDe.exports}var sDe={exports:{}},lDe={exports:{}},GMt;function $Ra(){return GMt||(GMt=1,function(t){var e=function(n){var r=this;r.image=function(a,o,s){var l=["abstract","animals","business","cats","city","food","nightlife","fashion","people","nature","sports","technics","transport"];return r[n.random.arrayElement(l)](a,o,s)},r.avatar=function(){return n.internet.avatar()},r.imageUrl=function(c,u,s,l){var c=c||640,u=u||480,d="https://lorempixel.com/"+c+"/"+u;return typeof s<"u"&&(d+="/"+s),l&&(d+="?"+n.datatype.number()),d},r.abstract=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"abstract",s)},r.animals=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"animals",s)},r.business=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"business",s)},r.cats=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"cats",s)},r.city=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"city",s)},r.food=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"food",s)},r.nightlife=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"nightlife",s)},r.fashion=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"fashion",s)},r.people=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"people",s)},r.nature=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"nature",s)},r.sports=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"sports",s)},r.technics=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"technics",s)},r.transport=function(a,o,s){return n.image.lorempixel.imageUrl(a,o,"transport",s)}};t.exports=e}(lDe)),lDe.exports}var cDe={exports:{}},VMt;function FRa(){return VMt||(VMt=1,function(t){var e=function(n){var r=this;r.image=function(a,o,s){return r.imageUrl(a,o,void 0,s)},r.avatar=function(){return n.internet.avatar()},r.imageUrl=function(c,u,s,l){var c=c||640,u=u||480,d="https://source.unsplash.com";if(typeof s<"u"&&(d+="/category/"+s),d+="/"+c+"x"+u,typeof l<"u"){var h=new RegExp("^([A-Za-z0-9].+,[A-Za-z0-9]+)$|^([A-Za-z0-9]+)$");h.test(l)&&(d+="?"+l)}return d},r.food=function(a,o,s){return n.image.unsplash.imageUrl(a,o,"food",s)},r.people=function(a,o,s){return n.image.unsplash.imageUrl(a,o,"people",s)},r.nature=function(a,o,s){return n.image.unsplash.imageUrl(a,o,"nature",s)},r.technology=function(a,o,s){return n.image.unsplash.imageUrl(a,o,"technology",s)},r.objects=function(a,o,s){return n.image.unsplash.imageUrl(a,o,"objects",s)},r.buildings=function(a,o,s){return n.image.unsplash.imageUrl(a,o,"buildings",s)}};t.exports=e}(cDe)),cDe.exports}var uDe={exports:{}},KMt;function jRa(){return KMt||(KMt=1,function(t){var e=function(n){var r=this;r.image=function(a,o,s,l){return r.imageUrl(a,o,s,l)},r.imageGrayscale=function(a,o,s){return r.imageUrl(a,o,s)},r.imageBlurred=function(a,o,s){return r.imageUrl(a,o,void 0,s)},r.imageRandomSeeded=function(a,o,s,l,c){return r.imageUrl(a,o,s,l,c)},r.avatar=function(){return n.internet.avatar()},r.imageUrl=function(u,d,s,l,c){var u=u||640,d=d||480,h="https://picsum.photos";return c&&(h+="/seed/"+c),h+="/"+u+"/"+d,s&&l?h+"?grayscale&blur="+l:s?h+"?grayscale":l?h+"?blur="+l:h}};t.exports=e}(uDe)),uDe.exports}var WMt;function HRa(){return WMt||(WMt=1,function(t){var e=function(n){var r=this,a=$Ra(),o=FRa(),s=jRa();r.image=function(l,c,u){var d=["abstract","animals","business","cats","city","food","nightlife","fashion","people","nature","sports","technics","transport"];return r[n.random.arrayElement(d)](l,c,u)},r.avatar=function(){return n.internet.avatar()},r.imageUrl=function(f,p,u,d,h){var f=f||640,p=p||480,m="http://";typeof h<"u"&&h===!0&&(m="https://");var g=m+"placeimg.com/"+f+"/"+p;return typeof u<"u"&&(g+="/"+u),d&&(g+="?"+n.datatype.number()),g},r.abstract=function(l,c,u){return n.image.imageUrl(l,c,"abstract",u)},r.animals=function(l,c,u){return n.image.imageUrl(l,c,"animals",u)},r.business=function(l,c,u){return n.image.imageUrl(l,c,"business",u)},r.cats=function(l,c,u){return n.image.imageUrl(l,c,"cats",u)},r.city=function(l,c,u){return n.image.imageUrl(l,c,"city",u)},r.food=function(l,c,u){return n.image.imageUrl(l,c,"food",u)},r.nightlife=function(l,c,u){return n.image.imageUrl(l,c,"nightlife",u)},r.fashion=function(l,c,u){return n.image.imageUrl(l,c,"fashion",u)},r.people=function(l,c,u){return n.image.imageUrl(l,c,"people",u)},r.nature=function(l,c,u){return n.image.imageUrl(l,c,"nature",u)},r.sports=function(l,c,u){return n.image.imageUrl(l,c,"sports",u)},r.technics=function(l,c,u){return n.image.imageUrl(l,c,"technics",u)},r.transport=function(l,c,u){return n.image.imageUrl(l,c,"transport",u)},r.dataUri=function(l,c,u){u=u||"grey";var d='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="'+l+'" height="'+c+'"><rect width="100%" height="100%" fill="'+u+'"/><text x="'+l/2+'" y="'+c/2+'" font-size="20" alignment-baseline="middle" text-anchor="middle" fill="white">'+l+"x"+c+"</text></svg>",h="data:image/svg+xml;charset=UTF-8,";return h+encodeURIComponent(d)},r.lorempixel=new a(n),r.unsplash=new o(n),r.lorempicsum=new s(n)};t.exports=e}(sDe)),sDe.exports}var dDe={exports:{}},QMt;function URa(){return QMt||(QMt=1,function(t){var e=function(n){var r=this,a=n.helpers;return r.word=function(o){var s=function(c){return c.length===o},l;return typeof o>"u"?l=n.definitions.lorem.words:l=n.definitions.lorem.words.filter(s),n.random.arrayElement(l)},r.words=function(o){typeof o>"u"&&(o=3);for(var s=[],l=0;l<o;l++)s.push(n.lorem.word());return s.join(" ")},r.sentence=function(o,s){typeof o>"u"&&(o=n.datatype.number({min:3,max:10}));var l=n.lorem.words(o);return l.charAt(0).toUpperCase()+l.slice(1)+"."},r.slug=function(o){var s=n.lorem.words(o);return a.slugify(s)},r.sentences=function(o,s){typeof o>"u"&&(o=n.datatype.number({min:2,max:6})),typeof s>"u"&&(s=" ");var l=[];for(o;o>0;o--)l.push(n.lorem.sentence());return l.join(s)},r.paragraph=function(o){return typeof o>"u"&&(o=3),n.lorem.sentences(o+n.datatype.number(3))},r.paragraphs=function(o,s){typeof s>"u"&&(s=`
 \r`),typeof o>"u"&&(o=3);var l=[];for(o;o>0;o--)l.push(n.lorem.paragraph());return l.join(s)},r.text=function(s){var l=["lorem.word","lorem.words","lorem.sentence","lorem.sentences","lorem.paragraph","lorem.paragraphs","lorem.lines"],c=n.random.arrayElement(l);return n.fake("{{"+c+"}}")},r.lines=function(s){return typeof s>"u"&&(s=n.datatype.number({min:1,max:5})),n.lorem.sentences(s,`
`)},r};t.exports=e}(dDe)),dDe.exports}var hDe={exports:{}},qMt;function zRa(){return qMt||(qMt=1,function(t){var e=function(n){var r=this;return r.abbreviation=function(){return n.random.arrayElement(n.definitions.hacker.abbreviation)},r.adjective=function(){return n.random.arrayElement(n.definitions.hacker.adjective)},r.noun=function(){return n.random.arrayElement(n.definitions.hacker.noun)},r.verb=function(){return n.random.arrayElement(n.definitions.hacker.verb)},r.ingverb=function(){return n.random.arrayElement(n.definitions.hacker.ingverb)},r.phrase=function(){var a={abbreviation:r.abbreviation,adjective:r.adjective,ingverb:r.ingverb,noun:r.noun,verb:r.verb},o=n.random.arrayElement(n.definitions.hacker.phrase);return n.helpers.mustache(o,a)},r};t.exports=e}(hDe)),hDe.exports}var fDe={exports:{}},pDe={},YMt;function GRa(){return YMt||(YMt=1,pDe.generate=function(e){function n(d,h){if(d=d||0,h=h||100,typeof h=="number"&&typeof d=="number")return e.datatype.number({min:d,max:h});if(Object.prototype.toString.call(d)==="[object Array]")return e.random.arrayElement(d);if(d&&typeof d=="object")return function(f){var p=n(0,100)/100,m=0,g=0,v,A;for(v in f)if(f.hasOwnProperty(v)){if(g=f[v]+m,A=v,p>=m&&p<=g)break;m=m+f[v]}return A}(d);throw new TypeError("Invalid arguments passed to rnd. ("+(h?d+", "+h:d)+")")}function r(){return n(["AB","AF","AN","AR","AS","AZ","BE","BG","BN","BO","BR","BS","CA","CE","CO","CS","CU","CY","DA","DE","EL","EN","EO","ES","ET","EU","FA","FI","FJ","FO","FR","FY","GA","GD","GL","GV","HE","HI","HR","HT","HU","HY","ID","IS","IT","JA","JV","KA","KG","KO","KU","KW","KY","LA","LB","LI","LN","LT","LV","MG","MK","MN","MO","MS","MT","MY","NB","NE","NL","NN","NO","OC","PL","PT","RM","RO","RU","SC","SE","SK","SL","SO","SQ","SR","SV","SW","TK","TR","TY","UK","UR","UZ","VI","VO","YI","ZH"])}function a(){var d=n({chrome:.45132810566,iexplorer:.27477061836,firefox:.19384170608,safari:.06186781118,opera:.01574236955}),h={chrome:{win:.89,mac:.09,lin:.02},firefox:{win:.83,mac:.16,lin:.01},opera:{win:.91,mac:.03,lin:.06},safari:{win:.04,mac:.96},iexplorer:["win"]};return[d,n(h[d])]}function o(d){var h={lin:["i686","x86_64"],mac:{Intel:.48,PPC:.01,"U; Intel":.48,"U; PPC":.01},win:["","WOW64","Win64; x64"]};return n(h[d])}function s(d){for(var h="",f=0;f<d;f++)h+="."+n(0,9);return h}var l={net:function(){return[n(1,4),n(0,9),n(1e4,99999),n(0,9)].join(".")},nt:function(){return n(5,6)+"."+n(0,3)},ie:function(){return n(7,11)},trident:function(){return n(3,7)+"."+n(0,1)},osx:function(d){return[10,n(5,10),n(0,9)].join(d||".")},chrome:function(){return[n(13,39),0,n(800,899),0].join(".")},presto:function(){return"2.9."+n(160,190)},presto2:function(){return n(10,12)+".00"},safari:function(){return n(531,538)+"."+n(0,2)+"."+n(0,2)}},c={firefox:function(h){var f=n(5,15)+s(2),p="Gecko/20100101 Firefox/"+f,m=o(h),g=h==="win"?"(Windows NT "+l.nt()+(m?"; "+m:""):h==="mac"?"(Macintosh; "+m+" Mac OS X "+l.osx():"(X11; Linux "+m;return"Mozilla/5.0 "+g+"; rv:"+f.slice(0,-2)+") "+p},iexplorer:function(){var h=l.ie();return h>=11?"Mozilla/5.0 (Windows NT 6."+n(1,3)+"; Trident/7.0; "+n(["Touch; ",""])+"rv:11.0) like Gecko":"Mozilla/5.0 (compatible; MSIE "+h+".0; Windows NT "+l.nt()+"; Trident/"+l.trident()+(n(0,1)===1?"; .NET CLR "+l.net():"")+")"},opera:function(h){var f=" Presto/"+l.presto()+" Version/"+l.presto2()+")",p=h==="win"?"(Windows NT "+l.nt()+"; U; "+r()+f:h==="lin"?"(X11; Linux "+o(h)+"; U; "+r()+f:"(Macintosh; Intel Mac OS X "+l.osx()+" U; "+r()+" Presto/"+l.presto()+" Version/"+l.presto2()+")";return"Opera/"+n(9,14)+"."+n(0,99)+" "+p},safari:function(h){var f=l.safari(),p=n(4,7)+"."+n(0,1)+"."+n(0,10),m=h==="mac"?"(Macintosh; "+o("mac")+" Mac OS X "+l.osx("_")+" rv:"+n(2,6)+".0; "+r()+") ":"(Windows; U; Windows NT "+l.nt()+")";return"Mozilla/5.0 "+m+"AppleWebKit/"+f+" (KHTML, like Gecko) Version/"+p+" Safari/"+f},chrome:function(h){var f=l.safari(),p=h==="mac"?"(Macintosh; "+o("mac")+" Mac OS X "+l.osx("_")+") ":h==="win"?"(Windows; U; Windows NT "+l.nt()+")":"(X11; Linux "+o(h);return"Mozilla/5.0 "+p+" AppleWebKit/"+f+" (KHTML, like Gecko) Chrome/"+l.chrome()+" Safari/"+f}},u=a();return c[u[0]](u[1])}),pDe}var JMt;function VRa(){return JMt||(JMt=1,function(t){var e=GRa(),n=function(r){var a=this;a.avatar=function(){return"https://cdn.fakercloud.com/avatars/"+r.random.arrayElement(r.definitions.internet.avatar_uri)},a.avatar.schema={description:"Generates a URL for an avatar.",sampleResults:["https://cdn.fakercloud.com/avatars/sydlawrence_128.jpg"]},a.email=function(o,s,l){return l=l||r.random.arrayElement(r.definitions.internet.free_email),r.helpers.slugify(r.internet.userName(o,s))+"@"+l},a.email.schema={description:"Generates a valid email address based on optional input criteria",sampleResults:["foo.bar@gmail.com"],properties:{firstName:{type:"string",required:!1,description:"The first name of the user"},lastName:{type:"string",required:!1,description:"The last name of the user"},provider:{type:"string",required:!1,description:"The domain of the user"}}},a.exampleEmail=function(o,s){var l=r.random.arrayElement(r.definitions.internet.example_email);return a.email(o,s,l)},a.userName=function(o,s){var l;switch(o=o||r.name.firstName(),s=s||r.name.lastName(),r.datatype.number(2)){case 0:l=o+r.datatype.number(99);break;case 1:l=o+r.random.arrayElement([".","_"])+s;break;case 2:l=o+r.random.arrayElement([".","_"])+s+r.datatype.number(99);break}return l=l.toString().replace(/'/g,""),l=l.replace(/ /g,""),l},a.userName.schema={description:"Generates a username based on one of several patterns. The pattern is chosen randomly.",sampleResults:["Kirstin39","Kirstin.Smith","Kirstin.Smith39","KirstinSmith","KirstinSmith39"],properties:{firstName:{type:"string",required:!1,description:"The first name of the user"},lastName:{type:"string",required:!1,description:"The last name of the user"}}},a.protocol=function(){var o=["http","https"];return r.random.arrayElement(o)},a.protocol.schema={description:"Randomly generates http or https",sampleResults:["https","http"]},a.httpMethod=function(){var o=["GET","POST","PUT","DELETE","PATCH"];return r.random.arrayElement(o)},a.httpMethod.schema={description:"Randomly generates HTTP Methods (GET, POST, PUT, DELETE, PATCH)",sampleResults:["GET","POST","PUT","DELETE","PATCH"]},a.url=function(){return r.internet.protocol()+"://"+r.internet.domainName()},a.url.schema={description:"Generates a random URL. The URL could be secure or insecure.",sampleResults:["http://rashawn.name","https://rashawn.name"]},a.domainName=function(){return r.internet.domainWord()+"."+r.internet.domainSuffix()},a.domainName.schema={description:"Generates a random domain name.",sampleResults:["marvin.org"]},a.domainSuffix=function(){return r.random.arrayElement(r.definitions.internet.domain_suffix)},a.domainSuffix.schema={description:"Generates a random domain suffix.",sampleResults:["net"]},a.domainWord=function(){return r.name.firstName().replace(/([\\~#&*{}/:<>?|\"'])/ig,"").toLowerCase()},a.domainWord.schema={description:"Generates a random domain word.",sampleResults:["alyce"]},a.ip=function(){for(var o=function(){return r.datatype.number(255).toFixed(0)},s=[],l=0;l<4;l++)s[l]=o();return s.join(".")},a.ip.schema={description:"Generates a random IP.",sampleResults:["97.238.241.11"]},a.ipv6=function(){for(var o=function(){for(var c="",u=0;u<4;u++)c+=r.random.arrayElement(["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]);return c},s=[],l=0;l<8;l++)s[l]=o();return s.join(":")},a.ipv6.schema={description:"Generates a random IPv6 address.",sampleResults:["2001:0db8:6276:b1a7:5213:22f1:25df:c8a0"]},a.port=function(){return r.datatype.number({min:0,max:65535})},a.port.schema={description:"Generates a random port number.",sampleResults:["4422"]},a.userAgent=function(){return e.generate(r)},a.userAgent.schema={description:"Generates a random user agent.",sampleResults:["Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_7_5 rv:6.0; SL) AppleWebKit/532.0.1 (KHTML, like Gecko) Version/7.1.6 Safari/532.0.1"]},a.color=function(o,s,l){o=o||0,s=s||0,l=l||0;var c=Math.floor((r.datatype.number(256)+o)/2),u=Math.floor((r.datatype.number(256)+s)/2),d=Math.floor((r.datatype.number(256)+l)/2),h=c.toString(16),f=u.toString(16),p=d.toString(16);return"#"+(h.length===1?"0":"")+h+(f.length===1?"0":"")+f+(p.length===1?"0":"")+p},a.color.schema={description:"Generates a random hexadecimal color.",sampleResults:["#06267f"],properties:{baseRed255:{type:"number",required:!1,description:"The red value. Valid values are 0 - 255."},baseGreen255:{type:"number",required:!1,description:"The green value. Valid values are 0 - 255."},baseBlue255:{type:"number",required:!1,description:"The blue value. Valid values are 0 - 255."}}},a.mac=function(o){var s,l="",c=":";for(["-",""].indexOf(o)!==-1&&(c=o),s=0;s<12;s++)l+=r.datatype.number(15).toString(16),s%2==1&&s!=11&&(l+=c);return l},a.mac.schema={description:"Generates a random mac address.",sampleResults:["78:06:cc:ae:b3:81"]},a.password=function(o,s,l,c){o=o||15,typeof s>"u"&&(s=!1);var u,d;d=/[aeiouAEIOU]$/,u=/[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]$/;var h=function(f,p,m,g){var v,A;return f==null&&(f=10),p==null&&(p=!0),m==null&&(m=/\w/),g==null&&(g=""),g.length>=f?g:(p&&(g.match(u)?m=d:m=u),A=r.datatype.number(94)+33,v=String.fromCharCode(A),p&&(v=v.toLowerCase()),v.match(m)?h(f,p,m,""+g+v):h(f,p,m,g))};return h(o,s,l,c)},a.password.schema={description:"Generates a random password.",sampleResults:["AM7zl6Mg","susejofe"],properties:{length:{type:"number",required:!1,description:"The number of characters in the password."},memorable:{type:"boolean",required:!1,description:"Whether a password should be easy to remember."},pattern:{type:"regex",required:!1,description:"A regex to match each character of the password against. This parameter will be negated if the memorable setting is turned on."},prefix:{type:"string",required:!1,description:"A value to prepend to the generated password. The prefix counts towards the length of the password."}}}};t.exports=n}(fDe)),fDe.exports}var mDe={exports:{}},ZMt;function KRa(){return ZMt||(ZMt=1,function(t){var e=function(n){var r=this;r.column=function(){return n.random.arrayElement(n.definitions.database.column)},r.column.schema={description:"Generates a column name.",sampleResults:["id","title","createdAt"]},r.type=function(){return n.random.arrayElement(n.definitions.database.type)},r.type.schema={description:"Generates a column type.",sampleResults:["byte","int","varchar","timestamp"]},r.collation=function(){return n.random.arrayElement(n.definitions.database.collation)},r.collation.schema={description:"Generates a collation.",sampleResults:["utf8_unicode_ci","utf8_bin"]},r.engine=function(){return n.random.arrayElement(n.definitions.database.engine)},r.engine.schema={description:"Generates a storage engine.",sampleResults:["MyISAM","InnoDB"]}};t.exports=e}(mDe)),mDe.exports}var gDe={exports:{}},XMt;function WRa(){return XMt||(XMt=1,function(t){var e=function(n){var r=this;return r.phoneNumber=function(a){return a=a||n.phone.phoneFormats(),n.helpers.replaceSymbolWithNumber(a)},r.phoneNumberFormat=function(a){return a=a||0,n.helpers.replaceSymbolWithNumber(n.definitions.phone_number.formats[a])},r.phoneFormats=function(){return n.random.arrayElement(n.definitions.phone_number.formats)},r};t.exports=e}(gDe)),gDe.exports}var vDe={exports:{}},eNt;function QRa(){return eNt||(eNt=1,function(t){var e=function(n){var r=this;return r.past=function(a,o){var s=new Date;typeof o<"u"&&(s=new Date(Date.parse(o)));var l={min:1e3,max:(a||1)*365*24*3600*1e3},c=s.getTime();return c-=n.datatype.number(l),s.setTime(c),s},r.future=function(a,o){var s=new Date;typeof o<"u"&&(s=new Date(Date.parse(o)));var l={min:1e3,max:(a||1)*365*24*3600*1e3},c=s.getTime();return c+=n.datatype.number(l),s.setTime(c),s},r.between=function(a,o){var s=Date.parse(a),l=n.datatype.number(Date.parse(o)-s),c=new Date(s+l);return c},r.betweens=function(a,o,s){typeof s>"u"&&(s=3);for(var l=[],c=Date.parse(a),u=(Date.parse(o)-c)/(s+1),d=a,h=0;h<s;h++)c=Date.parse(d),d=new Date(c+u),l.push(d);return l},r.recent=function(a,o){var s=new Date;typeof o<"u"&&(s=new Date(Date.parse(o)));var l={min:1e3,max:(a||1)*24*3600*1e3},c=s.getTime();return c-=n.datatype.number(l),s.setTime(c),s},r.soon=function(a,o){var s=new Date;typeof o<"u"&&(s=new Date(Date.parse(o)));var l={min:1e3,max:(a||1)*24*3600*1e3},c=s.getTime();return c+=n.datatype.number(l),s.setTime(c),s},r.month=function(a){a=a||{};var o="wide";a.abbr&&(o="abbr"),a.context&&typeof n.definitions.date.month[o+"_context"]<"u"&&(o+="_context");var s=n.definitions.date.month[o];return n.random.arrayElement(s)},r.weekday=function(a){a=a||{};var o="wide";a.abbr&&(o="abbr"),a.context&&typeof n.definitions.date.weekday[o+"_context"]<"u"&&(o+="_context");var s=n.definitions.date.weekday[o];return n.random.arrayElement(s)},r};t.exports=e}(vDe)),vDe.exports}var ADe={exports:{}},tNt;function qRa(){return tNt||(tNt=1,function(t){var e=function(n){var r=this;return r.recent=function(a){typeof a>"u"&&(a="unix");var o=new Date;switch(a){case"abbr":o=o.toLocaleTimeString();break;case"wide":o=o.toTimeString();break;case"unix":o=o.getTime();break}return o},r};t.exports=e}(ADe)),ADe.exports}var yDe={exports:{}},nNt;function YRa(){return nNt||(nNt=1,function(t){var e=function(n){var r=this;return r.color=function(){return n.random.arrayElement(n.definitions.commerce.color)},r.department=function(){return n.random.arrayElement(n.definitions.commerce.department)},r.productName=function(){return n.commerce.productAdjective()+" "+n.commerce.productMaterial()+" "+n.commerce.product()},r.price=function(a,o,s,l){if(a=a||1,o=o||1e3,s=s===void 0?2:s,l=l||"",a<0||o<0)return l+0;var c=n.datatype.number({max:o,min:a});return l+(Math.round(c*Math.pow(10,s))/Math.pow(10,s)).toFixed(s)},r.productAdjective=function(){return n.random.arrayElement(n.definitions.commerce.product_name.adjective)},r.productMaterial=function(){return n.random.arrayElement(n.definitions.commerce.product_name.material)},r.product=function(){return n.random.arrayElement(n.definitions.commerce.product_name.product)},r.productDescription=function(){return n.random.arrayElement(n.definitions.commerce.product_description)},r};t.exports=e}(yDe)),yDe.exports}var bDe={exports:{}},rNt;function JRa(){return rNt||(rNt=1,function(t){var e=["video","audio","image","text","application"],n=["application/pdf","audio/mpeg","audio/wav","image/png","image/jpeg","image/gif","video/mp4","video/mpeg","text/html"];function r(o){if(Array.from)return Array.from(o);var s=[];return o.forEach(function(l){s.push(l)}),s}function a(o){this.fileName=function(){var s=o.random.words();return s=s.toLowerCase().replace(/\W/g,"_")+"."+o.system.fileExt(),s},this.commonFileName=function(s){var l=o.random.words();return l=l.toLowerCase().replace(/\W/g,"_"),l+="."+(s||o.system.commonFileExt()),l},this.mimeType=function(){var s=new Set,l=new Set,c=o.definitions.system.mimeTypes;Object.keys(c).forEach(function(d){var h=d.split("/")[0];s.add(h),c[d].extensions instanceof Array&&c[d].extensions.forEach(function(f){l.add(f)})}),r(s),r(l);var u=Object.keys(o.definitions.system.mimeTypes);return o.random.arrayElement(u)},this.commonFileType=function(){return o.random.arrayElement(e)},this.commonFileExt=function(){return o.system.fileExt(o.random.arrayElement(n))},this.fileType=function(){var s=new Set,l=new Set,c=o.definitions.system.mimeTypes;Object.keys(c).forEach(function(d){var h=d.split("/")[0];s.add(h),c[d].extensions instanceof Array&&c[d].extensions.forEach(function(f){l.add(f)})});var u=r(s);return r(l),Object.keys(o.definitions.system.mimeTypes),o.random.arrayElement(u)},this.fileExt=function(s){var l=new Set,c=new Set,u=o.definitions.system.mimeTypes;Object.keys(u).forEach(function(f){var p=f.split("/")[0];l.add(p),u[f].extensions instanceof Array&&u[f].extensions.forEach(function(m){c.add(m)})}),r(l);var d=r(c);if(Object.keys(o.definitions.system.mimeTypes),s){var h=o.definitions.system.mimeTypes;return o.random.arrayElement(h[s].extensions)}return o.random.arrayElement(d)},this.directoryPath=function(){var s=o.definitions.system.directoryPaths;return o.random.arrayElement(s)},this.filePath=function(){return o.fake("{{system.directoryPath}}/{{system.fileName}}.{{system.fileExt}}")},this.semver=function(){return[o.datatype.number(9),o.datatype.number(9),o.datatype.number(9)].join(".")}}t.exports=a}(bDe)),bDe.exports}var xDe={exports:{}},iNt;function ZRa(){return iNt||(iNt=1,function(t){var e=function(n){var r=this,a=n.fake,o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return r.branch=function(){var s=n.hacker.noun().replace(" ","-"),l=n.hacker.verb().replace(" ","-");return s+"-"+l},r.commitEntry=function(s){s=s||{};var l=`commit {{git.commitSha}}\r
`;return(s.merge||n.datatype.number({min:0,max:4})===0)&&(l+=`Merge: {{git.shortSha}} {{git.shortSha}}\r
`),l+=`Author: {{name.firstName}} {{name.lastName}} <{{internet.email}}>\r
`,l+="Date: "+n.date.recent().toString()+`\r
`,l+=`\r
    {{git.commitMessage}}\r
`,a(l)},r.commitMessage=function(){var s="{{hacker.verb}} {{hacker.adjective}} {{hacker.noun}}";return a(s)},r.commitSha=function(){for(var s="",l=0;l<40;l++)s+=n.random.arrayElement(o);return s},r.shortSha=function(){for(var s="",l=0;l<7;l++)s+=n.random.arrayElement(o);return s},r};t.exports=e}(xDe)),xDe.exports}var EDe={exports:{}},aNt;function XRa(){return aNt||(aNt=1,function(t){var e=function(n){var r=this,a=n.fake;r.vehicle=function(){return a("{{vehicle.manufacturer}} {{vehicle.model}}")},r.vehicle.schema={description:"Generates a random vehicle.",sampleResults:["BMW Explorer","Ford Camry","Lamborghini Ranchero"]},r.manufacturer=function(){return n.random.arrayElement(n.definitions.vehicle.manufacturer)},r.manufacturer.schema={description:"Generates a manufacturer name.",sampleResults:["Ford","Jeep","Tesla"]},r.model=function(){return n.random.arrayElement(n.definitions.vehicle.model)},r.model.schema={description:"Generates a vehicle model.",sampleResults:["Explorer","Camry","Ranchero"]},r.type=function(){return n.random.arrayElement(n.definitions.vehicle.type)},r.type.schema={description:"Generates a vehicle type.",sampleResults:["Coupe","Convertable","Sedan","SUV"]},r.fuel=function(){return n.random.arrayElement(n.definitions.vehicle.fuel)},r.fuel.schema={description:"Generates a fuel type.",sampleResults:["Electric","Gasoline","Diesel"]},r.vin=function(){var o=["o","i","q"];return(n.random.alphaNumeric(10,{bannedChars:o})+n.random.alpha({count:1,upcase:!0,bannedChars:o})+n.random.alphaNumeric(1,{bannedChars:o})+n.datatype.number({min:1e4,max:1e5})).toUpperCase()},r.vin.schema={description:"Generates a valid VIN number.",sampleResults:["YV1MH682762184654","3C7WRMBJ2EG208836"]},r.color=function(){return a("{{commerce.color}}")},r.color.schema={description:"Generates a color",sampleResults:["red","white","black"]},r.vrm=function(){return(n.random.alpha({count:2,upcase:!0})+n.datatype.number({min:0,max:9})+n.datatype.number({min:0,max:9})+n.random.alpha({count:3,upcase:!0})).toUpperCase()},r.vrm.schema={description:"Generates a vehicle vrm",sampleResults:["MF56UPA","GL19AAQ","SF20TTA"]},r.bicycle=function(){return n.random.arrayElement(n.definitions.vehicle.bicycle_type)},r.bicycle.schema={description:"Generates a type of bicycle",sampleResults:["Adventure Road Bicycle","City Bicycle","Recumbent Bicycle"]}};t.exports=e}(EDe)),EDe.exports}var SDe={exports:{}},oNt;function eMa(){return oNt||(oNt=1,function(t){var e=function(n){var r=this;r.genre=function(){return n.random.arrayElement(n.definitions.music.genre)},r.genre.schema={description:"Generates a genre.",sampleResults:["Rock","Metal","Pop"]}};t.exports=e}(SDe)),SDe.exports}var wDe={exports:{}},sNt;function lNt(){return sNt||(sNt=1,function(t){function e(n,r){return Array.isArray(r)&&r.length?n.mersenne.seed_array(r):isNaN(r)||n.mersenne.seed(r),this.number=function(a){typeof a=="number"&&(a={max:a}),a=a||{},typeof a.min>"u"&&(a.min=0),typeof a.max>"u"&&(a.max=99999),typeof a.precision>"u"&&(a.precision=1);var o=a.max;o>=0&&(o+=a.precision);var s=Math.floor(n.mersenne.rand(o/a.precision,a.min/a.precision));return s=s/(1/a.precision),s},this.float=function(a){typeof a=="number"&&(a={precision:a}),a=a||{};var o={};for(var s in a)o[s]=a[s];return typeof o.precision>"u"&&(o.precision=.01),n.datatype.number(o)},this.datetime=function(a){typeof a=="number"&&(a={max:a});var o=864e13;a=a||{},(typeof a.min>"u"||a.min<o*-1)&&(a.min=new Date().setFullYear(1990,1,1)),(typeof a.max>"u"||a.max>o)&&(a.max=new Date().setFullYear(2100,1,1));var s=n.datatype.number(a);return new Date(s)},this.string=function(a){a===void 0&&(a=10);var o=Math.pow(2,20);a>=o&&(a=o);for(var s={min:33,max:125},l="",c=0;c<a;c++)l+=String.fromCharCode(n.datatype.number(s));return l},this.uuid=function(){var a="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o=function(s){var l=n.datatype.number({min:0,max:15}),c=s=="x"?l:l&3|8;return c.toString(16)};return a.replace(/[xy]/g,o)},this.boolean=function(){return!!n.datatype.number(1)},this.hexaDecimal=function(o){typeof o>"u"&&(o=1);for(var s="",l=0;l<o;l++)s+=n.random.arrayElement(["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","A","B","C","D","E","F"]);return"0x"+s},this.json=function(){var o=["foo","bar","bike","a","b","name","prop"],s={};return o.forEach(function(l){s[l]=n.datatype.boolean()?n.datatype.string():n.datatype.number()}),JSON.stringify(s)},this.array=function(o){o===void 0&&(o=10);for(var s=new Array(o),l=0;l<o;l++)s[l]=n.datatype.boolean()?n.datatype.string():n.datatype.number();return s},this}t.exports=e}(wDe)),wDe.exports}(function(t){function e(n){var r=this;n=n||{};var a=r.locales||n.locales||{},o=r.locale||n.locale||"en",s=r.localeFallback||n.localeFallback||"en";r.locales=a,r.locale=o,r.localeFallback=s,r.definitions={};var l={name:["first_name","last_name","prefix","suffix","binary_gender","gender","title","male_prefix","female_prefix","male_first_name","female_first_name","male_middle_name","female_middle_name","male_last_name","female_last_name"],address:["city_name","city_prefix","city_suffix","street_suffix","county","country","country_code","country_code_alpha_3","state","state_abbr","street_prefix","postcode","postcode_by_state","direction","direction_abbr","time_zone"],animal:["dog","cat","snake","bear","lion","cetacean","insect","crocodilia","cow","bird","fish","rabbit","horse","type"],company:["adjective","noun","descriptor","bs_adjective","bs_noun","bs_verb","suffix"],lorem:["words"],hacker:["abbreviation","adjective","noun","verb","ingverb","phrase"],phone_number:["formats"],finance:["account_type","transaction_type","currency","iban","credit_card"],internet:["avatar_uri","domain_suffix","free_email","example_email","password"],commerce:["color","department","product_name","price","categories","product_description"],database:["collation","column","engine","type"],system:["mimeTypes","directoryPaths"],date:["month","weekday"],vehicle:["vehicle","manufacturer","model","type","fuel","vin","color"],music:["genre"],title:"",separator:""};Object.keys(l).forEach(function(M){if(typeof r.definitions[M]>"u"&&(r.definitions[M]={}),typeof l[M]=="string"){r.definitions[M]=l[M];return}l[M].forEach(function(D){Object.defineProperty(r.definitions[M],D,{get:function(){return typeof r.locales[r.locale][M]>"u"||typeof r.locales[r.locale][M][D]>"u"?r.locales[s][M][D]:r.locales[r.locale][M][D]}})})});var c=TRa();r.fake=new c(r).fake;var u=kRa();r.unique=new u(r).unique;var d=MRa();r.mersenne=new d;var h=BMt();r.random=new h(r);var f=NRa();r.helpers=new f(r);var p=IRa();r.name=new p(r);var m=PRa();r.address=new m(r);var g=ORa();r.animal=new g(r);var v=LRa();r.company=new v(r);var A=DRa();r.finance=new A(r);var y=HRa();r.image=new y(r);var S=URa();r.lorem=new S(r);var x=zRa();r.hacker=new x(r);var w=VRa();r.internet=new w(r);var _=KRa();r.database=new _(r);var C=WRa();r.phone=new C(r);var R=QRa();r.date=new R(r);var k=qRa();r.time=new k(r);var P=YRa();r.commerce=new P(r);var N=JRa();r.system=new N(r);var L=ZRa();r.git=new L(r);var I=XRa();r.vehicle=new I(r);var b=eMa();r.music=new b(r);var T=lNt();r.datatype=new T(r)}e.prototype.setLocale=function(n){this.locale=n},e.prototype.seed=function(n){var r=BMt(),a=lNt();this.seedValue=n,this.random=new r(this,this.seedValue),this.datatype=new a(this,this.seedValue)},t.exports=e})(dgn);var tMa=dgn.exports,hgn={},fgn={exports:{}},pgn={exports:{}},mgn={exports:{}};(function(t){t.exports=["Akrotiri və Dekeliya","Aland adaları","Albaniya","Almaniya","Amerika Samoası","Andorra","Angilya","Anqola","Antiqua və Barbuda","Argentina","Aruba","Avstraliya","Avstriya","Azərbaycan","Baham adaları","Banqladeş","Barbados","Belçika","Beliz","Belarus","Benin","Bermud adaları","BƏƏ","ABŞ","Boliviya","Bolqarıstan","Bosniya və Herseqovina","Botsvana","Böyük Britaniya","Braziliya","Bruney","Burkina-Faso","Burundi","Butan","Bəhreyn","Cersi","Cəbəli-Tariq","CAR","Cənubi Sudan","Cənubi Koreya","Cibuti","Çad","Çexiya","Monteneqro","Çili","ÇXR","Danimarka","Dominika","Dominikan Respublikası","Efiopiya","Ekvador","Ekvatorial Qvineya","Eritreya","Ermənistan","Estoniya","Əfqanıstan","Əlcəzair","Farer adaları","Fələstin Dövləti","Fici","Kot-d’İvuar","Filippin","Finlandiya","Folklend adaları","Fransa","Fransa Polineziyası","Gernsi","Gürcüstan","Haiti","Hindistan","Honduras","Honkonq","Xorvatiya","İndoneziya","İordaniya","İraq","İran","İrlandiya","İslandiya","İspaniya","İsrail","İsveç","İsveçrə","İtaliya","Kabo-Verde","Kamboca","Kamerun","Kanada","Kayman adaları","Keniya","Kipr","Kiribati","Kokos adaları","Kolumbiya","Komor adaları","Konqo Respublikası","KDR","Kosovo","Kosta-Rika","Kuba","Kuk adaları","Küveyt","Qabon","Qambiya","Qana","Qətər","Qayana","Qazaxıstan","Qərbi Sahara","Qırğızıstan","Qrenada","Qrenlandiya","Quam","Qvatemala","Qvineya","Qvineya-Bisau","Laos","Latviya","Lesoto","Liberiya","Litva","Livan","Liviya","Lixtenşteyn","Lüksemburq","Macarıstan","Madaqaskar","Makao","Makedoniya","Malavi","Malayziya","Maldiv adaları","Mali","Malta","Marşall adaları","Mavriki","Mavritaniya","Mayotta","Meksika","Men adası","Mərakeş","MAR","Mikroneziya","Milad adası","Misir","Myanma","Moldova","Monako","Monqolustan","Montserrat","Mozambik","Müqəddəs Yelena, Askenson və Tristan-da-Kunya adaları","Namibiya","Nauru","Nepal","Niderland","Niderland Antil adaları","Niger","Nigeriya","Nikaraqua","Niue","Norfolk adası","Norveç","Oman","Özbəkistan","Pakistan","Palau","Panama","Papua-Yeni Qvineya","Paraqvay","Peru","Pitkern adaları","Polşa","Portuqaliya","Prednestroviya","Puerto-Riko","Ruanda","Rumıniya","Rusiya","Salvador","Samoa","San-Marino","San-Tome və Prinsipi","Seneqal","Sen-Bartelemi","Sent-Kits və Nevis","Sent-Lüsiya","Sen-Marten","Sen-Pyer və Mikelon","Sent-Vinsent və Qrenadina","Serbiya","Seyşel adaları","Səudiyyə Ərəbistanı","Sinqapur","Slovakiya","Sloveniya","Solomon adaları","Somali","Somalilend","Sudan","Surinam","Suriya","Svazilend","Syerra-Leone","Şərqi Timor","Şimali Marian adaları","Şpisbergen və Yan-Mayen","Şri-Lanka","Tacikistan","Tanzaniya","Tailand","Çin Respublikası","Törks və Kaykos adaları","Tokelau","Tonqa","Toqo","Trinidad və Tobaqo","Tunis","Tuvalu","Türkiyə","Türkmənistan","Ukrayna","Uollis və Futuna","Uqanda","Uruqvay","Vanuatu","Vatikan","Venesuela","Amerika Virgin adaları","Britaniya Virgin adaları","Vyetnam","Yamayka","Yaponiya","Yeni Kaledoniya","Yeni Zelandiya","Yəmən","Yunanıstan","Zambiya","Zimbabve"]})(mgn);var nMa=mgn.exports,ggn={exports:{}};(function(t){t.exports=["###"]})(ggn);var rMa=ggn.exports,vgn={exports:{}};(function(t){t.exports=["küç.","küçəsi","prospekti","pr.","sahəsi","sh."]})(vgn);var iMa=vgn.exports,Agn={exports:{}};(function(t){t.exports=["m. ###"]})(Agn);var aMa=Agn.exports,ygn={exports:{}};(function(t){t.exports=["AZ####"]})(ygn);var oMa=ygn.exports,bgn={exports:{}};(function(t){t.exports=[]})(bgn);var sMa=bgn.exports,xgn={exports:{}};(function(t){t.exports=["Abbas Fətullayev","Abbas Mirzə Şərifzadə","Abbas Səhhət","Abdulla Şaiq","Afiyəddin Cəlilov","Axundov","Ağa Nemətulla","Ağadadaş Qurbanov","Akademik Həsən Əliyev","Akademik Lətif İmanov","Alı Mustafayev","Almas İldırım","Asəf Zeynallı","Asif Əsədullayev","Aşıq Alı","Aşıq Ələsgər","Azadlıq prospekti","Bakıxanov","Balababa Məcidov","Balaəmi Dadaşov","Behbud Şaxtantinski","Bəkir Çobanzadə","Bəsti Bağırova","Bəşir Səfəroğlu","Böyük Qala","Cabir Əliyev","Camal Hacıəliyev","Cavadxan","Cavanşir","Ceyhun Səlimov","Ceyhunbəy Hacıbəyli","Cəbiyev","Cəfər Xəndan","Cəfər Cabbarlı","Cəlal Qurbanov","Cəlil Məmmədquluzadə","Çingiz Mustafayev","Çobanzadə","Dadaş Bünyadzadə","Dağlı Yunus","Dilarə Əliyeva","Elçin Əzimov","Eldar və Abdulla Əlibəyovlar","Elxan Həsənov","Elşən Mehdiyev","Elşən Süleymanov","Etibar Bəkirov","Əbdüləzəl Dəmirçizadə","Əbdülhəsən Anaplı","Əbdülkərim Əlizadə","Əhməd bəy Ağaoğlu","Əhməd Cavad","Əhməd Cəmil","Əhməd Mehbalıyev","Əhməd Rəcəbli","Əjdər Xanbabayev","Əkrəm Cəfərov","Ələsgər Qayıbov","Əliağa Vahid","Əli Bəy Hüseynzadə","Əlimərdan bəy Topçubaşov","Əliyar Əliyev","Əlövsət Abdulrəhimov","Əlövsət Quliyev","Əmir Bağırov","Əsəd Əhmədov","Əşrəf Yunusov","Əzim Əzimzadə","Əziz Əliyev","Heybət Heybətov","Həqiqət Rzayeva","Həmid Araslı","Hənifə Ələsgərova","Hərbçilər","Həsənoğu","Həsən Seyidbəyli","Hətəm Allahverdiyev","Həzi Aslanov","Hüsü Hacıyev","Hüseynqulu Sarabski","Fətəli xan Xoyski","Fəzail Bayramov","Fikrət Əmirov","Fuad İbrahimbəyov","Fuad Yusifov","General Əliağa Şıxlinski","Gülayə Qədirbəyova","Gənclik","Xaqani","Xan Şuşinski","Xanlar","Xudu Məmmədov","İbrahimpaşa Dadaşov","İdris Süleymanov","İlqar Abbasov","İlqar İsmayılov","İmran Qasımov","İnqilab İsmayılov","İsfəndiyar Zülalov","İslam Abışov","İslam Səfərli","İsmayıl bəy Qutqaşınlı","İsmayıl Mirzəgülov","İstiqlaliyyət","28 May","İsgəndərov","İvan Turgenev","İzmir","İzzət Həmidov","İzzət Orucova","Kamal Rəhimov","Kazım Kazımzadə","Kazımağa Kərimov","Kərəm İsmayılov","Kiçik Qala","Koroğlu Rəhimov","Qaçaq Nəbi","Qarabağ","Qədirbəyov","Qəzənfər Musabəyov","Qəzənfər Vəliyev","Leyla Məmmədbəyova","Mahmud İbrahimov","Malik Məmmədov","Mehdi Abbasov","Mehdi Mehdizadə","Məhəmməd Əmin Rəsulzadə","Məhəmməd Hadi","Məhəmməd Xiyabani","Məhəmməd ibn Hinduşah Naxçıvani","Məhsəti Gəncəvi","Məmmədyarov","Mərdanov qardaşları","Mətləb Ağayev","Məşədi Hilal","Məzahir Rüstəmov","Mikayıl Müşviq","Mingəçevir","Mirəli Qaşqay","Mirəli Seyidov","Mirzağa Əliyev","Mirzə İbrahimov","Mirzə Mənsur","Mirzə Mustafayev","Murtuza Muxtarov","Mustafa Topçubaşov","Müqtədir Aydınbəyov","Müslüm Maqomayev","Müzəffər Həsənov","Nabat Aşurbəyova","Naxçıvani","Naximov","Nazim İsmaylov","Neapol","Neftçi Qurban Abbasov","Neftçilər prospekti","Nəcəfbəy Vəzirov","Nəcəfqulu Rəfiyev","Nəriman Nərimanov","Nəsirəddin Tusi","Nigar Rəfibəyli","Niyazi","Nizami","Nizami Abdullayev","Nobel prospekti","Novruz","Novruzov qardaşları","Oqtay Vəliyev","Parlament","Puşkin","Rafiq Ağayev","Ramiz Qəmbərov","Rəşid Behbudov","Rəşid Məcidov","Ruhulla Axundov","Ruslan Allahverdiyev","Rüstəm Rüstəmov","Tahir Bağırov","Tarzan Hacı Məmmədov","Tbilisi prospekti","Təbriz (Bakı)","Təbriz Xəlilbəyli","Tofiq Məmmədov","Tolstoy","Sabit Orucov","Sabit Rəhman","Sahib Hümmətov","Salatın Əsgərova","Sarayevo","Seyid Əzim Şirvani","Seyid Şuşinski","Seyidov","Səməd bəy Mehmandarov","Səməd Vurğun","Səttar Bəhlulzadə","Sona xanım Vəlixanlı","Sübhi Salayev","Süleyman Əhmədov","Süleyman Rəhimov","Süleyman Rüstəm","Süleyman Sani Axundov","Süleyman Vəzirov","Şahin Səmədov","Şamil Əzizbəyov","Şamil Kamilov","Şeyx Şamil","Şəfayət Mehdiyev","Şəmsi Bədəlbəyli","Şirin Mirzəyev","Şıxəli Qurbanov","Şövkət Ələkbərova","Ülvi Bünyadzadə","Üzeyir Hacıbəyov","Vasif Əliyev","Vəli Məmmədov","Vladislav Plotnikov","Vüqar Quliyev","Vunq Tau","Yaqub Əliyev","Yaşar Abdullayev","Yaşar Əliyev","Yavər Əliyev","Yesenin","Yəhya Hüseynov","Yılmaz Axundzadə","Yüsif Eyvazov","Yusif Qasımov","Yusif Məmmədəliyev","Yusif Səfərov","Yusif Vəzir Çəmənzəminli","Zahid Əliyev","Zahid Xəlilov","Zaur Kərimov","Zavod","Zərgərpalan"]})(xgn);var lMa=xgn.exports,Egn={exports:{}};(function(t){t.exports=["Ağcabədi","Ağdam","Ağdaş","Ağdərə","Ağstafa","Ağsu","Astara","Bakı","Balakən","Beyləqan","Bərdə","Biləsuvar","Cəbrayıl","Cəlilabad","Culfa","Daşkəsən","Dəliməmmədli","Füzuli","Gədəbəy","Gəncə","Goranboy","Göyçay","Göygöl","Göytəpə","Hacıqabul","Horadiz","Xaçmaz","Xankəndi","Xocalı","Xocavənd","Xırdalan","Xızı","Xudat","İmişli","İsmayıllı","Kəlbəcər","Kürdəmir","Qax","Qazax","Qəbələ","Qobustan","Qovlar","Quba","Qubadlı","Qusar","Laçın","Lerik","Lənkəran","Liman","Masallı","Mingəçevir","Naftalan","Naxçıvan (şəhər)","Neftçala","Oğuz","Ordubad","Saatlı","Sabirabad","Salyan","Samux","Siyəzən","Sumqayıt","Şabran","Şahbuz","Şamaxı","Şəki","Şəmkir","Şərur","Şirvan","Şuşa","Tərtər","Tovuz","Ucar","Yardımlı","Yevlax","Zaqatala","Zəngilan","Zərdab"]})(Egn);var cMa=Egn.exports,Sgn={exports:{}};(function(t){t.exports=["#{Address.city_name}"]})(Sgn);var uMa=Sgn.exports,wgn={exports:{}};(function(t){t.exports=["#{street_suffix} #{Address.street_title}","#{Address.street_title} #{street_suffix}"]})(wgn);var dMa=wgn.exports,_gn={exports:{}};(function(t){t.exports=["#{street_name}, #{building_number}"]})(_gn);var hMa=_gn.exports,Tgn={exports:{}};(function(t){t.exports=["Azərbaycan"]})(Tgn);var fMa=Tgn.exports;(function(t){var e={};t.exports=e,e.country=nMa,e.building_number=rMa,e.street_suffix=iMa,e.secondary_address=aMa,e.postcode=oMa,e.state=sMa,e.street_title=lMa,e.city_name=cMa,e.city=uMa,e.street_name=dMa,e.street_address=hMa,e.default_country=fMa})(pgn);var pMa=pgn.exports,Cgn={exports:{}},kgn={exports:{}};(function(t){t.exports=["box.az","mail.az","gmail.com","yahoo.com","hotmail.com"]})(kgn);var mMa=kgn.exports,Rgn={exports:{}};(function(t){t.exports=["com","az","com.az","info","net","org"]})(Rgn);var gMa=Rgn.exports;(function(t){var e={};t.exports=e,e.free_email=mMa,e.domain_suffix=gMa})(Cgn);var vMa=Cgn.exports,Mgn={exports:{}},Ngn={exports:{}};(function(t){t.exports=["Anar","Amid","Afəl","Abbas","Abdulla","Adil","Akif","Aqil","Bəhram","Nurlan","Rafiq","Tərlan","Zaur","Emin","Emil","Kamran","Elnur","Natiq","Rəşad","Rəşid","Tahir","Əhməd","Zahir","İlham","İlqar","Nahid","Nihad","Faiq","İxtiyar","Şəhriyar","Şaiq","Bəxtiyar","Bəhruz","Tunar","Nadir"]})(Ngn);var AMa=Ngn.exports,Ign={exports:{}};(function(t){t.exports=["Əhmədov","Ələkbərov","Əliyev","Vəliyev","Soltanov","Quliyev","Məmmədov","Xəlilov","Nəzərov","Rəhimov"]})(Ign);var yMa=Ign.exports,Pgn={exports:{}};(function(t){t.exports=["Anna","Adeliya","Afaq","Afət","Afərim","Aidə","Aygün","Aynur","Alsu","Ayan","Aytən","Aygül","Aydan","Aylin","Bahar","Banu","Bəyaz","Billurə","Cansu","Ceyla","Damla","Dəniz","Diana","Dilarə","Ella","Elza","Elyanora","Ellada","Elvira","Elnarə","Esmira","Estella","Fatimə","Fəxriyyə","Fərəh","Fərqanə","Fidan","Firuzə","Gövhər","Günay","Gülay","Gülçin","Gülər","Gülsüm","Humay","Hüriyə","Hülya","Jalə","Jasmin","Kübra","Ləman","Lamiyə","Lalə","Liliya","Laura","Leyla","Maya","Mehriban","Mələk","Nuray","Nurgün","Nərgiz","Nigar","Ofelya","Pəri","Röya","Səbinə","Selcan","Tansu","Tuba","Ülviyyə","Ulduz","Ülkər"]})(Pgn);var bMa=Pgn.exports,Ogn={exports:{}};(function(t){t.exports=["Qasımova","Əfəndiyeva","Soltanova","Abdullayeva","Rəşidova","Ələkbərova","Əliyeva","Tahirova","Seyidova","Vəsiyeva"]})(Ogn);var xMa=Ogn.exports,Lgn={exports:{}};(function(t){t.exports=[]})(Lgn);var EMa=Lgn.exports,Bgn={exports:{}};(function(t){t.exports=[]})(Bgn);var SMa=Bgn.exports,Dgn={exports:{}};(function(t){t.exports=["#{male_first_name}","#{male_last_name} #{male_first_name}","#{male_first_name} #{male_last_name}","#{female_first_name}","#{female_first_name} #{female_last_name}","#{female_last_name} #{female_first_name}"]})(Dgn);var wMa=Dgn.exports;(function(t){var e={};t.exports=e,e.male_first_name=AMa,e.male_last_name=yMa,e.female_first_name=bMa,e.female_last_name=xMa,e.prefix=EMa,e.suffix=SMa,e.name=wMa})(Mgn);var _Ma=Mgn.exports,$gn={exports:{}},Fgn={exports:{}};(function(t){t.exports=["(9##)###-##-##"]})(Fgn);var TMa=Fgn.exports;(function(t){var e={};t.exports=e,e.formats=TMa})($gn);var CMa=$gn.exports,jgn={exports:{}},Hgn={exports:{}};(function(t){t.exports=["ala","açıq bənövşəyi","ağ","mavi","boz","bənövşəyi","göy rəng","gümüşü","kardinal","narıncı","qara","qırmızı","qəhvəyi","tünd göy","tünd qırmızı","xlorofil","yaşıl","çəhrayı"]})(Hgn);var kMa=Hgn.exports,Ugn={exports:{}};(function(t){t.exports=["Kitablar","Filmlər","musiqi","oyunlar","Elektronika","Kompyuterlər","Ev","садинструмент","Səhiyyə","gözəllik","Oyuncaqlar","uşaq üçün","Geyim","Ayyaqqabı","bəzək","İdman","turizm","Avtomobil"]})(Ugn);var RMa=Ugn.exports,zgn={exports:{}};(function(t){t.exports={adjective:["Balaca","Ergonomik","Kobud","İntellektual","Möhtəşəm","İnanılmaz","Fantastik","Əlverişli","Parlaq","Mükəmməl"],material:["Polad","Ağac","Beton","Plastik","Pambıq","Qranit","Rezin"],product:["Stul","Avtomobil","Kompyuter","Beret","Kulon","Stol","Sviter","Kəmər"]}})(zgn);var MMa=zgn.exports;(function(t){var e={};t.exports=e,e.color=kMa,e.department=RMa,e.product_name=MMa})(jgn);var NMa=jgn.exports,Ggn={exports:{}},Vgn={exports:{}};(function(t){t.exports=["ASC","MMC","QSC"]})(Vgn);var IMa=Vgn.exports,Kgn={exports:{}};(function(t){t.exports=[]})(Kgn);var PMa=Kgn.exports,Wgn={exports:{}};(function(t){t.exports=["#{prefix} #{Name.female_first_name}","#{prefix} #{Name.male_first_name}","#{prefix} #{Name.male_last_name}","#{prefix} #{suffix}#{suffix}","#{prefix} #{suffix}#{suffix}#{suffix}","#{prefix} #{Address.city_name}#{suffix}","#{prefix} #{Address.city_name}#{suffix}#{suffix}","#{prefix} #{Address.city_name}#{suffix}#{suffix}#{suffix}"]})(Wgn);var OMa=Wgn.exports;(function(t){var e={};t.exports=e,e.prefix=IMa,e.suffix=PMa,e.name=OMa})(Ggn);var LMa=Ggn.exports,Qgn={exports:{}},qgn={exports:{}};(function(t){t.exports={wide:["yanvar","fevral","mart","aprel","may","iyun","iyul","avqust","sentyabr","oktyabr","noyabr","dekabr"],wide_context:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],abbr:["янв.","февр.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],abbr_context:["янв.","февр.","марта","апр.","мая","июня","июля","авг.","сент.","окт.","нояб.","дек."]}})(qgn);var BMa=qgn.exports,Ygn={exports:{}};(function(t){t.exports={wide:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"],wide_context:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],abbr:["Ba","BE","ÇA","Çə","CA","Cü","Şə"],abbr_context:["вс","пн","вт","ср","чт","пт","сб"]}})(Ygn);var DMa=Ygn.exports;(function(t){var e={};t.exports=e,e.month=BMa,e.weekday=DMa})(Qgn);var $Ma=Qgn.exports;(function(t){var e={};t.exports=e,e.title="Azerbaijani",e.separator=" və ",e.address=pMa,e.internet=vMa,e.name=_Ma,e.phone_number=CMa,e.commerce=NMa,e.company=LMa,e.date=$Ma})(fgn);var FMa=fgn.exports,Jgn={exports:{}},Zgn={exports:{}},Xgn={exports:{}};(function(t){t.exports=["أفغانستان","ألبانيا","الجزائر","أمريكا ساماو","أندورا","أنجولا","أنجويلا","أنتاركتيكا","أنتيغوا وباربودا","الأرجنتين","أرمينيا","أروبا","أرستراليا","أستريا","أذرابيجان","بهماس","البحرين","بنغلادش","بربادوس","بلاروسيا","بلجيكا","بليز","بينين","برمودا","بوتان","بوليفيا","البوسنة والهرسك","بوتسوانا","جزيرة بوفيه","البرازيل","إقليم المحيط الهندي البريطاني","برونوي دار السلام","بلغاريا","بوركينا فاسو","بوروندي","كمبوديا","كاميرون","كندا","الرأس الأخضر","جزر كايمان","جمهورية إفريقيا الوسطى","التشاد","شيلي","الصين","جزيرة عيد الميلاد","جزر كوكوس","كولومبيا","جزر القمر","كونجو","جزر كوك","كوستا ريكا","ساحل العاج","كرواتيا","كوبا","قبرص","التشيك","دنمارك","جيبوتي","دومينيكا","جمهورية الدومينيكان","إكوادور","مصر","السلفادور","غينيا الاستوائية","إريتريا","إستونيا","أثيوبيا","جزر فارو","جزر فوكلاند","فيجي","فلندا","فرنست","غويانا الفرنسية","بولينزيا الفرنسية","أراض فرنسية جنوبية وأنتارتيكية","جابون","غمبيا","جورجيا","ألمانيا","غانا","جبل طارق","اليونان","الأرض الخضراء","غرينادا","غوادلوب","غوام","غواتيمالا","غيرنزي","غينيا","غينيا بيساو","غيانا","هايتي","جزيرة هيرد وجزر ماكدونالد","الفاتيكان","هندوراس","هونكونغ","هنقاريا","إسلاند","الهند","أندونيسيا","إيران","العراق","إيرلامدا","جزيرة مان","إيطاليا","جامايكا","اليابان","جيرزي","الأردن","كازاخستان","كنيا","كيريباتي","كوريا الشمالية","كوريا الجنوبية","الكويت","قيرغيزستان","لاوس","لتفيا","لبنان","ليسوتو","ليبيريا","ليبيا","ليختنشتاين","ليتيواتيا","ليكسمبورغ","ماكاو","مقدونيا","مدغشقر","ملاوي","ماليزيا","ملديف","مالي","مالطا","جزر مارشال","مارتينيك","موريتانيا","موريشيوس","مايوت","المكسيك","ولايات ميكرونيسيا المتحدة","مولدوفا","موناكو","منغوليا","مونتينيغرو","مونتسرات","المغرب","موزنبيق","ميانمار","ناميبيا","ناورو","نيبال","جزر الأنتيل الهولندية","هولاندا","كالودونيا الجديدة","زيلاندا الجديدة","نيكاراغوا","النيجر","نيجيريا","نييوي","جزيرة نورفولك","جزر ماريانا الشمالية","نورواي","عمان","باكستان","بالاو","فلسطين","بانما","بابوا غينيا الجديدة","باراغواي","بيرو","الفيليبين","جزر بيتكيرن","بولندا","البرتغال","بورتو ريكو","قطر","لا ريونيون","رومانيا","روسيا","روندا","سان بارتيلمي","سانت هيلانة","سانت كيتس ونيفيس","سانت لوسيا","سانت نرتان","سان بيير وميكلون","سانت فينسنت والغرينادين","ساماو","سان مارينو","ساو تومي وبرينسيب","السعودية","السنغال","صربيا","سيشال","سيراليون","سنغفورة","سلوفاكيا","سلوفينيا","جزر سليمان","الصومال","جنوب إفريقيا","جورجيا الجنوبية وجزر ساندويتش الجنوبية","إسبانيا","سيري لانكا","السودان","سيرينام","سفالبارد ويان ماين","سوازيلاند","السويد","سويسرا","سوريا","تايوات","طاجكستان","تنزانيا","تايلاند","تيمور الشرقية","توغو","توكيلاو","تونغوا","ترينيداد وتوباغو","تونس","تركيا","تركمنستان","جزر توركس وكايكوس","توفالو","أوغندا","أكرانيا","الإمارات العربية المتحدة","بريطانيا","أمريكا","جزر الولايات المتحدة الصغيرة النائية","أرغواي","أزباكستان","فانواتو","فينيزويلا","فيتنام","جزر العذراء البريطانية","جزر العذراء الأمريكية","واليس وفوتونا","اليمن","زمبيا","زمبابوي"]})(Xgn);var jMa=Xgn.exports,evn={exports:{}};(function(t){t.exports=["#####","####","###"]})(evn);var HMa=evn.exports,tvn={exports:{}};(function(t){t.exports=["### عمارة","### طابق","### شقة","### بناية","### بيت"]})(tvn);var UMa=tvn.exports,nvn={exports:{}};(function(t){t.exports=["#####","#####-####"]})(nvn);var zMa=nvn.exports,rvn={exports:{}};(function(t){t.exports=["#####","#####-####"]})(rvn);var GMa=rvn.exports,ivn={exports:{}};(function(t){t.exports=["القدس","تل الربيع","صفد","أريحا","بئر السبع","غزة","نابلس","الناصرة","بيت لحم","الخليل","يافا","حيفا","اللد","الرملة","عكا","سخنين","قلنسوة","طيرة","عرابة","رام الله","طولكرم","بئر السبع ","تونس","بن عروس","أريانة","باجة","بنزرت","قابس","قفصة","جندوبة","القيروان","القصرين","قبلي","الكاف","المهدية","منوبة","مدنين","المنستير","نابل","صفاقس","بوزيد","سليانة","سوسة","تطاوين","توزر","زغوان","أدرار","الشلف","الأغواط","أم البواقي","باتنة","بجاية","بسكرة","بشار","البليدة","البويرة","تمنراست","تبسة","تلمسان","تيارت","تيزي وزو","الجزائر","الجلفة","جيجل","سطيف","سعيدة","سكيكدة","بلعباس","عنابة","قالمة","قسنطينة","المدية","عمان","الزرقاء","إربد","العقبة","السلط","المفرق","جرش","معان","عجلون","حلب","دمشق","حمص","اللاذقية","حماة","طرطوس","دير الزور","السويداء","الحسكة","درعا","إدلب","بيروت","طرابلس","صيدا","صور","النبطية","زحلة","جونيه","حبوش","بعلبك","بغداد","البصرة","نينوى","أربيل","النجف","كركوك","المثنى","القادسية"," بابل","كربلاء"]})(ivn);var VMa=ivn.exports,avn={exports:{}};(function(t){t.exports=["#{city_name}"]})(avn);var KMa=avn.exports,ovn={exports:{}};(function(t){t.exports=["#{street_prefix} #{Name.first_name}","#{street_prefix} #{Name.last_name}"]})(ovn);var WMa=ovn.exports,svn={exports:{}};(function(t){t.exports=["#{building_number} #{street_name}"]})(svn);var QMa=svn.exports,lvn={exports:{}};(function(t){t.exports=["المملكة العربية السعودية"]})(lvn);var qMa=lvn.exports;(function(t){var e={};t.exports=e,e.country=jMa,e.building_number=HMa,e.secondary_address=UMa,e.postcode=zMa,e.postcode_by_state=GMa,e.state=VMa,e.city=KMa,e.street_name=WMa,e.street_address=QMa,e.default_country=qMa})(Zgn);var YMa=Zgn.exports,cvn={exports:{}},uvn={exports:{}};(function(t){t.exports=["محمد","أحمد","آسر","أركان","أسامة","أسعد","أشرف","أكرم","أليف","أمان","أمجد","أمير","أمين","أنس","أنيس","أوس","أيمن","إسلام","إيهاب","إياد","إياس","القاسم","المقداد","باسل","باسم","بدر","بدران","بركات","برهان","بسام","بسيم","بشار","بلال","بلبل","بليغ","بندر","بهيج","تميم","توفيق","تيسير","ثابت","جابر","جاد","جاسر","جاسم","جبريل","جسور","جعفر","جلال","جليل","جمال","جمعة","جميل","جهاد","جوهر","حاتم","حاجب","حارث","حازم","حافظ","حامد","حبيب","حذيفة","حسام","حسان","حسني","حسون","حطاب","حفيظ","حكيم","حلمي","حليم","حمدان","حمدي","حمزة","حمودة","حميد","حيدرة","خالد","خباب","خلدون","خليل","خيري","داوود","دريد","ديسم","ذاكر","رؤوف","رائد","رائف","رابح","راتب","راسم","راشد","راغب","راكان","رامز","رامي","ربيع","رتيب","رجب","رزق","رسلان","رشاد","رشدي","رشيد","رضا","رضوان","رعد","رفيع","رفيق","ركان","رمزي","رمضان","رنيم","رياض","ريان","زاهر","زياد","زيدون","زين الدين","سالم","سامح","سامر","سامي","سراج","سرحان","سرمد","سريج","سعد","سعيد","سفيان","سلامة","سلمان","سليم","سماح","سمير","سهيل","سيف","شادي","شاكر","شريف","شعبان","شفيع","شفيق","شكري","شكيب","شمس الدين","شهاب","شوقي","صابر","صادق","صبحي","صبري","صخر","صداح","صدقي","صفوان","صقر","صلاح","صهيب","ضياء","طارق","طاهر","طلال","طيب","ظافر","عادل","عارف","عاشور","عاصم","عاصي","عاطف","عامر","عباس","عثمان","عجمي","عدلان","عدلي","عدنان","عدي","عرفات","عرفان","عز الدين","عزام","عزمي","عزيز","عطا","عطية","عفيف","علاء","علوي","علي","عماد","عمار","عمر","عمران","عياض","غازي","غانم","غسان","غفار","غيث","فؤاد","فائز","فاخر","فادي","فارس","فاروق","فاضل","فاكر","فتاح","فتحي","فخري","فراس","فرج","فرحات","فريد","فضل","فضيل","فكري","فهد","فهمي","فواز","فوزي","فيصل","قاسم","قدري","قيس","كاظم","كامل","كرم","كمال","لبيب","لطفي","ليث","مأمون","مؤمن","مؤنس","ماجد","مازن","مبارك","مبروك","مجاهد","مجد","مجدي","مجيد","محجوب","محرز","محسن","محفوظ","محمود","مختار","مخلص","مراد","مرتضى","مرزوق","مرسي","مرشد","مرعي","مروان","مستعين","مسعد","مسعود","مصطفى","مصعب","مصلح","مطيع","معاذ","معتز","معز","معين","مفتاح","مقداد","ممتاز","ممدوح","منتصر","منذر","منصف","منصور","منعم","منيب","منير","مهدي","مهند","مهيب","ناجح","ناجي","نادر","ناصح","ناصر","ناصف","ناظم","نافع","نبيل","نجيب","نديم","نزار","نزيه","نسيم","نصحي","نصر","نضال","نعمان","نعيم","نهاد","نور الدين","نوري","نوفل","هاشم","هاني","هشام","هيثم","هيكل","وائل","واصف","وجدي","وديع","وسام","وسيم","وصفي","وليد","ياسر","ياسين","يافع","يامن","يحيى"]})(uvn);var JMa=uvn.exports,dvn={exports:{}};(function(t){t.exports=["يافع","هذيل","همدان","يافع","الأشراف","الكراي","الرقيق","بودوارة","خنفير","السقا","الطريقي","الشريف","المنيف","النفير","الشتيوي","الشيباني","الخليفي","المولدي","الكافي","العواني","بن عبد السلام","عاشور","النفطي","بن عثمان","بن عاشور","البشيري","السقاط","ادريس","بن حسين",,"القلشاني","الحجيج","بن عبد الكريم","فقوسة","بن حمودة","العنابي","القلال","الدنوني","النقاش","الغربي","نيفر","العطار","المحجوب","زقية","تومي","بن عبدالله","سعيد","النابلي","بن عمر","شنيق","عنون","الرصاع","النخلي","الصفار","الزوابي","العلاني","الع لويني","الحمامي","جاوحدو","شقرون","العلايمي","العواني","الصغير","جابالله","بنسلامة","جراد","بوديبة","الدرقاش","بوهاها","عطالله","سويس","عظومة","المدقي","الوحيشي","لخشين","زروق","النجار","غويلة","الطويل"]})(dvn);var ZMa=dvn.exports,hvn={exports:{}};(function(t){t.exports=["سيد","سيدة","آنسة","دكتور","بروفيسور"]})(hvn);var XMa=hvn.exports,fvn={exports:{}};(function(t){t.exports={job:["مشرف","تنفيذي","مدير","مهندس","متخصص","رئيس مؤسسة","منسق","إداري","مخطط","محلل","مصمم","تقني","مبرمج","منتج","مستشار","مساعد","وكيل","متدرب"]}})(fvn);var eNa=fvn.exports,pvn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name}","#{last_name} #{first_name}"]})(pvn);var tNa=pvn.exports;(function(t){var e={};t.exports=e,e.first_name=JMa,e.last_name=ZMa,e.prefix=XMa,e.title=eNa,e.name=tNa})(cvn);var nNa=cvn.exports,mvn={exports:{}},gvn={exports:{}};(function(t){t.exports=["###-###-####","(###) ###-####","1-###-###-####","###.###.####","###-###-####","(###) ###-####","1-###-###-####","###.###.####","###-###-#### x###","(###) ###-#### x###","1-###-###-#### x###","###.###.#### x###","###-###-#### x####","(###) ###-#### x####","1-###-###-#### x####","###.###.#### x####","###-###-#### x#####","(###) ###-#### x#####","1-###-###-#### x#####","###.###.#### x#####"]})(gvn);var rNa=gvn.exports;(function(t){var e={};t.exports=e,e.formats=rNa})(mvn);var iNa=mvn.exports,vvn={exports:{}},Avn={exports:{}};(function(t){t.exports=["###-###-####","(###) ###-####","1-###-###-####","###.###.####"]})(Avn);var aNa=Avn.exports;(function(t){var e={};t.exports=e,e.formats=aNa})(vvn);var oNa=vvn.exports,yvn={exports:{}},bvn={exports:{}};(function(t){t.exports=["أحمر","أحمر غامق","أحمر فاتح","أخضر","أخضر غامق","أخضر فاتح","زيتوني","فيروزي","أزرق","أزرق غامق","أزرق فاتح","تركواز","أزرق سماوي","أصفر","ليموني","أرجواني","بنفسجي","أرجواني فاتح","أرجواني خفيف","أبيض","أسود","برتقالي","زهري","بني","كستنائي","أسمر","عاجي","نيلي","ذهبي","فضي","رمادي","رصاصي"]})(bvn);var sNa=bvn.exports,xvn={exports:{}};(function(t){t.exports=["كتب","ألعاب","إلكترونيات","حواسيب","بيت","حديقة","أدوات","بقالة","صحة","جمال","ألعاب","أطفال","رضع","ملابس","أحذية","مجوهرات","أغراض رياضية","في الهواء الطلق","السيارات","صناعة"]})(xvn);var lNa=xvn.exports,Evn={exports:{}};(function(t){t.exports={adjective:["صغير","مريح","ريفي","ذكي","رائع","لا يصدق","عملي","أملس","ممتاز","عام","يدويا","صنع يدوي","مرخص","مشتق","بدون علامة","طيب المذاق"],material:["فولاذ","خشبي","خرسانة","بلاستيك","قطن","صوان","مطاط","معدن","ناعم","طازج","مجمد"],product:["كرسي","سيارة","حاسوب","لوحة المفاتيح","فأر","دراجة هوائية","كرة","قفازات","بنطال","قميص","طاولة","أحذية","قبعة","مناشف","صابون","تونة","دجاج","سمك","جبن","لحم خنزير مقدد","بيتزا","سلطة","سجق","رقائق بطاطس"]}})(Evn);var cNa=Evn.exports;(function(t){var e={};t.exports=e,e.color=sNa,e.department=lNa,e.product_name=cNa})(yvn);var uNa=yvn.exports,Svn={exports:{}},wvn={exports:{}};(function(t){t.exports=["ديزل","كهربائي","بنزين","هجين"]})(wvn);var dNa=wvn.exports,_vn={exports:{}};(function(t){t.exports=["شيفروليه","كاديلاك","فورد","كرايسلر","دودج","جيب","تسلا","تويوتا","هوندا","نيسان","أودي","مرسيدس بنز","بي إم دبليو","فولكس واجن","بورش","جاكوار","استون مارتن","لاند روفر","بنتلي","ميني","رولزرويس","فيات","لامبورغيني","مازيراتي","فيراري","بوجاتي","كيا","هيونداي"]})(_vn);var hNa=_vn.exports,Tvn={exports:{}};(function(t){t.exports=["فييستا","التركيز","الثور","موستانج","اكسبلورر","البعثة","نموذج T","رانتشيرو","فولت","كروز","ماليبو","إمبالا","كامارو","كورفيت","كولورادو","سيلفرادو","ش كامينو","إسكاليد","جبال الألب","شاحن","لو بارون","بي تي كروزر","تشالنجر","دورانجو","القافلة الكبرى","رانجلر","جراند شيروكي","رودستر","عارضات ازياء","النموذج 3","كامري","بريوس","لاند كروزر","اتفاق","المدنية","جزء","سنترا","ألتيما","خنفساء","جيتا","جولف","سبايدر","الكونتاش","مورسيلاغو","أفينتادور"]})(Tvn);var fNa=Tvn.exports,Cvn={exports:{}};(function(t){t.exports=["كارغو فان","مكشوفة","كوبيه","طاقم الكابينة بيك آب","تمديد الكابينة بيك آب","هاتشباك","ميني فان","سيارة الركاب","سيارة رياضية","سيدان","عربة"]})(Cvn);var pNa=Cvn.exports;(function(t){var e={};t.exports=e,e.fuel=dNa,e.manufacturer=hNa,e.module=fNa,e.type=pNa})(Svn);var mNa=Svn.exports,kvn={exports:{}},Rvn={exports:{}};(function(t){t.exports=["النمل","الخفافيش","تتحمل","النحل","الطيور","الجاموس","القطط","دجاجة","ماشية","الكلاب","الدلافين","البط","الفيلة","الأسماك","الثعالب","الضفادع","أوز","الماعز","خيل","الكنغر","الأسود","القرود","البوم","الثيران","طيور البطريق","اشخاص","الخنازير","الأرانب","خروف","النمور","الحيتان","الذئاب","حمار","الشؤم","الغربان","قطط سوداء","الوهم","أشباح","المتآمرين","التنين","الأقزام","الجان","السحرة","التعويذيون","أبناء","الأعداء","العمالقة","التماثيل","العفاريت","لحم الوز","العنقاء","استذئاب","عدو","الغيلان","أقوال","الأنبياء","السحرة","العناكب","معنويات","مصاصي دماء","السحرة","الثعالب","ذئاب ضارية","السحرة","عبدة","الاموات الاحياء","درويدس"]})(Rvn);var gNa=Rvn.exports,Mvn={exports:{}};(function(t){t.exports=["#{Address.state} #{creature}"]})(Mvn);var vNa=Mvn.exports;(function(t){var e={};t.exports=e,e.creature=gNa,e.name=vNa})(kvn);var ANa=kvn.exports,Nvn={exports:{}},Ivn={exports:{}};(function(t){t.exports={wide:["كَانُون ٱلثَّانِي","شُبَاط","آذَار","نَيْسَان","أَيَّار","حَزِيرَان","تَمُّوز","آب","أَيْلُول","تِشْرِين ٱلْأَوَّل","تِشْرِين ٱلثَّانِي","كَانُون ٱلْأَوَّل"],wide_context:["كَانُون ٱلثَّانِي","شُبَاط","آذَار","نَيْسَان","أَيَّار","حَزِيرَان","تَمُّوز","آب","أَيْلُول","تِشْرِين ٱلْأَوَّل","تِشْرِين ٱلثَّانِي","كَانُون ٱلْأَوَّل"],abbr:["يناير","فبراير","مارس","إبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],abbr_context:["يناير","فبراير","مارس","إبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]}})(Ivn);var yNa=Ivn.exports,Pvn={exports:{}};(function(t){t.exports={wide:["الأحَد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],wide_context:["الأحَد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]}})(Pvn);var bNa=Pvn.exports;(function(t){var e={};t.exports=e,e.month=yNa,e.weekday=bNa})(Nvn);var xNa=Nvn.exports;(function(t){var e={};t.exports=e,e.title="Arabic",e.separator=" & ",e.address=YMa,e.name=nNa,e.phone_number=iNa,e.cell_phone=oNa,e.commerce=uNa,e.vehicle=mNa,e.team=ANa,e.date=xNa})(Jgn);var ENa=Jgn.exports,Ovn={exports:{}},Lvn={exports:{}},Bvn={exports:{}};(function(t){t.exports=["Afghánistán","Albánie","Alžírsko","Andorra","Angola","Antigua a Barbuda","Argentina","Arménie","Austrálie","Ázerbájdžán","Bahamy","Bahrajn","Bangladéš","Barbados","Belgie","Belize","Benin","Bělorusko","Bhútán","Bolívie","Bosna a Hercegovina","Botswana","Brazílie","Brunej","Bulharsko","Burkina Faso","Burundi","Čad","Černá Hora","Česko","Čína","Dánsko","DR Kongo","Dominika","Dominik","Džibutsko","Egypt","Ekvádor","Eritrea","Estonsko","Etiopie","Fidži","Filipíny","Finsko","Francie","Gabon","Gambie","Gruzie","Německo","Ghana","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Chile","Chorvatsko","Indie","Indonésie","Irák","Írán","Irsko","Island","Itálie","Izrael","Jamajka","Japonsko","Jemen","Jihoaf","Jižní Korea","Jižní Súdán","Jordánsko","Kambodža","Kamerun","Kanada","Kapverdy","Katar","Kazachstán","Keňa","Kiribati","Kolumbie","Komory","Kongo","Kostarika","Kuba","Kuvajt","Kypr","Kyrgyzstán","Laos","Lesotho","Libanon","Libérie","Libye","Lichtenštejnsko","Litva","Lotyšsko","Lucembursko","Madagaskar","Maďarsko","Makedonie","Malajsie","Malawi","Maledivy","Mali","Malta","Maroko","Marshallovy ostrovy","Mauritánie","Mauricius","Mexiko","Mikronésie","Moldavsko","Monako","Mongolsko","Mosambik","Myanmar (Barma)","Namibie","Nauru","Nepál","Niger","Nigérie","Nikaragua","Nizozemsko","Norsko","Nový Zéland","Omán","Pákistán","Palau","Palestina","Panama","Papua-Nová Guinea","Paraguay","Peru","Pobřeží slonoviny","Polsko","Portugalsko","Rakousko","Rovníková Guinea","Rumunsko","Rusko","Rwanda","Řecko","Salvador","Samoa","San Marino","Saúdská Arábie","Senegal","Severní Korea","Seychely","Sierra Leone","Singapur","Slovensko","Slovinsko","Srbsko","Středo","Somálsko","Surinam","Súdán","Svatá Lucie","Svatý Kryštof a Nevis","Svatý Tomáš a Princův ostrov","Svatý Vincenc a Grenadiny","Svazijsko","Spojené arabské emiráty","Spojené království","Spojené státy americké","Sýrie","Šalamounovy ostrovy","Španělsko","Srí Lanka","Švédsko","Švýcarsko","Tádžikistán","Tanzanie","Thajsko","Togo","Tonga","Trinidad a Tobago","Tunisko","Turecko","Turkmenistán","Tuvalu","Uganda","Ukrajina","Uruguay","Uzbekistán","Vanuatu","Vatikán","Venezuela","Vietnam","Východní Timor","Zambie","Zimbabwe"]})(Bvn);var SNa=Bvn.exports,Dvn={exports:{}};(function(t){t.exports=["#","##","###"]})(Dvn);var wNa=Dvn.exports,$vn={exports:{}};(function(t){t.exports=["Apt. ###","Suite ###"]})($vn);var _Na=$vn.exports,Fvn={exports:{}};(function(t){t.exports=["#####","### ##","###-##"]})(Fvn);var TNa=Fvn.exports,jvn={exports:{}};(function(t){t.exports=[]})(jvn);var CNa=jvn.exports,Hvn={exports:{}};(function(t){t.exports=[]})(Hvn);var kNa=Hvn.exports,Uvn={exports:{}};(function(t){t.exports=["Abertamy","Adamov","Andělská Hora","Aš","Bakov nad Jizerou","Bavorov","Bechyně","Bečov nad Teplou","Bělá nad Radbuzou","Bělá pod Bezdězem","Benátky nad Jizerou","Benešov","Benešov nad Ploučnicí","Beroun","Bezdružice","Bílina","Bílovec","Blansko","Blatná","Blovice","Blšany","Bochov","Bohumín","Bohušovice nad Ohří","Bojkovice","Bor","Borohrádek","Borovany","Boskovice","Boží Dar","Brandýs nad Labem-Stará Boleslav","Brandýs nad Orlicí","Brno","Broumov","Brtnice","Brumov-Bylnice","Bruntál","Brušperk","Břeclav","Březnice","Březová","Březová nad Svitavou","Břidličná","Bučovice","Budišov nad Budišovkou","Budyně nad Ohří","Buštěhrad","Bystré","Bystřice","Bystřice nad Pernštejnem","Bystřice pod Hostýnem","Bzenec","Chabařovice","Cheb","Chlumec","Chlumec nad Cidlinou","Choceň","Chodov","Chomutov","Chotěboř","Chrast","Chrastava","Chropyně","Chrudim","Chřibská","Chvaletice","Chýnov","Chyše","Cvikov","Čáslav","Čelákovice","Černošice","Černošín","Černovice","Červená Řečice","Červený Kostelec","Česká Kamenice","Česká Lípa","Česká Skalice","Česká Třebová","České Budějovice","České Velenice","Český Brod","Český Dub","Český Krumlov","Český Těšín","Dačice","Dašice","Děčín","Desná","Deštná","Dobrovice","Dobruška","Dobřany","Dobřichovice","Dobříš","Doksy","Dolní Benešov","Dolní Bousov","Dolní Kounice","Dolní Poustevna","Domažlice","Dubá","Dubí","Dubňany","Duchcov","Dvůr Králové nad Labem","Františkovy Lázně","Frenštát pod Radhoštěm","Frýdek-Místek","Frýdlant","Frýdlant nad Ostravicí","Fryšták","Fulnek","Golčův Jeníkov","Habartov","Habry","Hanušovice","Harrachov","Hartmanice","Havířov","Havlíčkův Brod","Hejnice","Heřmanův Městec","Hlinsko","Hluboká nad Vltavou","Hlučín","Hluk","Hodkovice nad Mohelkou","Hodonín","Holešov","Holice","Holýšov","Hora Svaté Kateřiny","Horažďovice","Horní Benešov","Horní Blatná","Horní Bříza","Horní Cerekev","Horní Jelení","Horní Jiřetín","Horní Planá","Horní Slavkov","Horšovský Týn","Hořice","Hořovice","Hostinné","Hostivice","Hostomice","Hostouň","Hoštka","Hradec Králové","Hradec nad Moravicí","Hrádek","Hrádek nad Nisou","Hranice (okres Cheb)","Hranice (okres Přerov)","Hrob","Hrochův Týnec","Hronov","Hrotovice","Hroznětín","Hrušovany nad Jevišovkou","Hulín","Humpolec","Husinec","Hustopeče","Ivančice","Ivanovice na Hané","Jablonec nad Jizerou","Jablonec nad Nisou","Jablonné nad Orlicí","Jablonné v Podještědí","Jablunkov","Jáchymov","Janov","Janovice nad Úhlavou","Janské Lázně","Jaroměř","Jaroměřice nad Rokytnou","Javorník","Jemnice","Jesenice (okres Rakovník)","Jeseník","Jevíčko","Jevišovice","Jičín","Jihlava","Jilemnice","Jílové","Jílové u Prahy","Jindřichův Hradec","Jirkov","Jiříkov","Jistebnice","Kadaň","Kamenice nad Lipou","Kamenický Šenov","Kaplice","Kardašova Řečice","Karlovy Vary","Karolinka","Karviná","Kasejovice","Kašperské Hory","Kaznějov","Kdyně","Kelč","Kladno","Kladruby","Klášterec nad Ohří","Klatovy","Klecany","Klimkovice","Klobouky u Brna","Kojetín","Kolín","Konice","Kopidlno","Kopřivnice","Koryčany","Kosmonosy","Kostelec na Hané","Kostelec nad Černými lesy","Kostelec nad Labem","Kostelec nad Orlicí","Košťany","Kouřim","Kožlany","Králíky","Kralovice","Kralupy nad Vltavou","Králův Dvůr","Kraslice","Krásná Hora nad Vltavou","Krásná Lípa","Krásné Údolí","Krásno","Kravaře","Krnov","Kroměříž","Krupka","Kryry","Kunovice","Kunštát","Kuřim","Kutná Hora","Kyjov","Kynšperk nad Ohří","Lanškroun","Lanžhot","Lázně Bělohrad","Lázně Bohdaneč","Lázně Kynžvart","Ledeč nad Sázavou","Ledvice","Letohrad","Letovice","Libáň","Libčice nad Vltavou","Liběchov","Liberec","Libochovice","Libušín","Lipník nad Bečvou","Lišov","Litoměřice","Litomyšl","Litovel","Litvínov","Loket","Lom","Lomnice nad Lužnicí","Lomnice nad Popelkou","Loštice","Loučná pod Klínovcem","Louny","Lovosice","Luby","Lučany nad Nisou","Luhačovice","Luže","Lysá nad Labem","Manětín","Mariánské Lázně","Mašťov","Měčín","Mělník","Městec Králové","Město Albrechtice","Město Touškov","Meziboří","Meziměstí","Mikulášovice","Mikulov","Miletín","Milevsko","Milovice","Mimoň","Miroslav","Mirošov","Mirotice","Mirovice","Mladá Boleslav","Mladá Vožice","Mnichovice","Mnichovo Hradiště","Mníšek pod Brdy","Modřice","Mohelnice","Moravská Třebová","Moravské Budějovice","Moravský Beroun","Moravský Krumlov","Morkovice-Slížany","Most","Mšeno","Mýto","Náchod","Nalžovské Hory","Náměšť nad Oslavou","Napajedla","Nasavrky","Nechanice","Nejdek","Němčice nad Hanou","Nepomuk","Neratovice","Netolice","Neveklov","Nová Bystřice","Nová Paka","Nová Role","Nová Včelnice","Nové Hrady","Nové Město na Moravě","Nové Město nad Metují","Nové Město pod Smrkem","Nové Sedlo","Nové Strašecí","Nový Bor","Nový Bydžov","Nový Jičín","Nový Knín","Nymburk","Nýrsko","Nýřany","Odolena Voda","Odry","Olešnice","Olomouc","Oloví","Opava","Opočno","Orlová","Osečná","Osek","Oslavany","Ostrava","Ostrov","Otrokovice","Pacov","Pardubice","Paskov","Pec pod Sněžkou","Pečky","Pelhřimov","Petřvald","Pilníkov","Písek","Planá","Planá nad Lužnicí","Plánice","Plasy","Plesná","Plumlov","Plzeň","Poběžovice","Počátky","Podbořany","Poděbrady","Podivín","Pohořelice","Police nad Metují","Polička","Polná","Postoloprty","Potštát","Prachatice","Praha","Proseč","Prostějov","Protivín","Přebuz","Přelouč","Přerov","Přeštice","Příbor","Příbram","Přibyslav","Přimda","Pyšely","Rabí","Radnice","Rájec-Jestřebí","Rajhrad","Rakovník","Ralsko","Raspenava","Rejštejn","Rokycany","Rokytnice nad Jizerou","Rokytnice v Orlických horách","Ronov nad Doubravou","Rosice","Rotava","Roudnice nad Labem","Rousínov","Rovensko pod Troskami","Roztoky","Rožďalovice","Rožmberk nad Vltavou","Rožmitál pod Třemšínem","Rožnov pod Radhoštěm","Rtyně v Podkrkonoší","Rudná","Rudolfov","Rumburk","Rychnov nad Kněžnou","Rychnov u Jablonce nad Nisou","Rychvald","Rýmařov","Řevnice","Říčany","Sadská","Sázava","Seč","Sedlčany","Sedlec-Prčice","Sedlice","Semily","Sezemice","Sezimovo Ústí","Skalná","Skuteč","Slaný","Slatiňany","Slavičín","Slavkov u Brna","Slavonice","Slušovice","Smečno","Smiřice","Smržovka","Soběslav","Sobotka","Sokolov","Solnice","Spálené Poříčí","Staňkov","Staré Město (okres Šumperk)","Staré Město (okres Uherské Hradiště)","Stárkov","Starý Plzenec","Stochov","Stod","Strakonice","Stráž nad Nežárkou","Stráž pod Ralskem","Strážnice","Strážov","Strmilov","Stříbro","Studénka","Suchdol nad Lužnicí","Sušice","Světlá nad Sázavou","Svitavy","Svoboda nad Úpou","Svratka","Šenov","Šlapanice","Šluknov","Špindlerův Mlýn","Šternberk","Štětí","Štíty","Štramberk","Šumperk","Švihov","Tábor","Tachov","Tanvald","Telč","Teplá","Teplice","Teplice nad Metují","Terezín","Tišnov","Toužim","Tovačov","Trhové Sviny","Trhový Štěpánov","Trmice","Trutnov","Třebechovice pod Orebem","Třebenice","Třebíč","Třeboň","Třemošná","Třemošnice","Třešť","Třinec","Turnov","Týn nad Vltavou","Týnec nad Labem","Týnec nad Sázavou","Týniště nad Orlicí","Uherské Hradiště","Uherský Brod","Uherský Ostroh","Uhlířské Janovice","Újezd u Brna","Unhošť","Uničov","Úpice","Úsov","Ústí nad Labem","Ústí nad Orlicí","Úštěk","Úterý","Úvaly","Valašské Klobouky","Valašské Meziříčí","Valtice","Vamberk","Varnsdorf","Vejprty","Velešín","Velká Bíteš","Velká Bystřice","Velké Bílovice","Velké Hamry","Velké Meziříčí","Velké Opatovice","Velké Pavlovice","Velký Šenov","Veltrusy","Velvary","Verneřice","Veselí nad Lužnicí","Veselí nad Moravou","Vidnava","Vimperk","Vítkov","Vizovice","Vlachovo Březí","Vlašim","Vodňany","Volary","Volyně","Votice","Vracov","Vratimov","Vrbno pod Pradědem","Vrchlabí","Vroutek","Vsetín","Všeruby","Výsluní","Vysoké Mýto","Vysoké nad Jizerou","Vysoké Veselí","Vyškov","Vyšší Brod","Zábřeh","Zákupy","Zásmuky","Zbiroh","Zbýšov","Zdice","Zlaté Hory","Zlín","Zliv","Znojmo","Zruč nad Sázavou","Zubří","Žacléř","Žamberk","Žandov","Žatec","Ždánice","Žďár nad Sázavou","Ždírec nad Doubravou","Žebrák","Železná Ruda","Železnice","Železný Brod","Židlochovice","Žirovnice","Žlutice","Žulová"]})(Uvn);var RNa=Uvn.exports,zvn={exports:{}};(function(t){t.exports=["#{city_name}"]})(zvn);var MNa=zvn.exports,Gvn={exports:{}};(function(t){t.exports=["17. Listopadu","17. Listopadu","28. Pluku","28. Října","28. Října","5. Května","5. Května","5. Máje","7. Května","8. Listopadu","9. Května","Achátová","Adamova","Adamovská","Adélčina","Africká","Akademická","Aksamitova","Akátová","Alabastrová","Albertov","Albrechtická","Albánská","Albíny Hochové","Aldašínská","Alej Českých Exulantů","Aleny Santarové","Aloisovská","Aloisovská","Aloisovská","Altajská","Alšovo Nábř.","Alšovo Nábřeží","Alšovy Sady","Alžírská","Ambrožova","Americká","Ametystová","Amforová","Amortova","Ampérova","Amurská","Anastázova","Anderleho","Andersenova","Andrštova","Andělova","Anenská","Anenské Nám.","Anenské Náměstí","Anežky Malé","Anežská","Angelovova","Anglická","Angolská","Anhaltova","Ankarská","Anny Drabíkové","Anny Letenské","Anny Rybníčkové","Anny Čížkové","Anny Čížkové","Antala Staška","Antonína Hodného","Antonína Čermáka","Antonínská","Anýzová","Apolinářská","Arabská","Aranžérská","Arbesovo Nám.","Arbesovo Náměstí","Archangelská","Archeologická","Archimédova","Archivní","Argentinská","Aristotelova","Arkalycká","Armádní","Armádního Sboru","Armády","Arménská","Arnošta Valenty","Astlova","Athénská","Atletická","Aubrechtové","Augustinova","Augustova","Austova","Aviatická","Axmanova","Azalková","Azuritová","Ašská","Baarova","Babická","Babiččina","Babočková","Babská","Babylonská","Babákova","Bachmačské Nám.","Bachmačské Náměstí","Bachova","Bacháčkova","Badeniho","Badeniho","Bajgarova","Bajkalská","Bajkonurská","Bakalářská","Bakovská","Bakurinova","Balabánova","Balbínova","Banskobystrická","Baranova","Barchovická","Barešova","Barrandova","Barrandovská","Bartolomějská","Bartoňkova","Bartoňova","Bartoškova","Bartoškova","Bartoškova","Bartákova","Bartůňkova","Barunčina","Barvířská","Barákova","Basilejské Nám.","Basilejské Náměstí","Bassova","Batelovská","Batličkova","Bavorovská","Bavorská","Bazalková","Bazovského","Bačetínská","Baňská","Baškirská","Bašteckého","Baštýřská","Bažantní","Beaufortova","Bechlínská","Bechyňova","Bechyňská","Beckovská","Bedlová","Bednářská","Bedrnova","Bedřichovská","Beethovenova","Beldova","Belgická","Bellova","Bellušova","Bendlova","Bendova","Benecká","Benediktská","Benešovská","Benická","Benkova","Benákova","Benátská","Benáčanova","Beníškové","Beranových","Bergerova","Bergmanova","Berkovská","Berlínská","Bermanova","Bernartická","Bernolákova","Berounská","Bertrámová","Berylová","Besední","Beskydská","Betlémská","Betlémské Nám.","Betlémské Náměstí","Betáňská","Bezdrevská","Bezděkovská","Bezinková","Bezová","Bezprašná","Bečovská","Bečvářova","Bečvářská","Bečvářská","Beřkovická","Bešťákova","Bieblova","Binarova","Biskupcova","Biskupská","Biskupský Dvůr","Blachutova","Blahníkova","Blahoslavova","Blanická","Blatenská","Blatnická","Blatovská","Blatská","Blattného","Blažimská","Blažkova","Blažíčkova","Blešnovská","Blodkova","Bludovická","Blériotova","Blšanecká","Bobkova","Bochovská","Bodláková","Bohdalec","Bohdalec","Bohdalecká","Bohdalecká","Bohdanečská","Bohdašínská","Bohnická","Bohrova","Bohumínská","Bohuslava Martinů","Bohuslava Martinů","Bohuslava Ze Švamberka","Bohuslavická","Bohušovická","Bohušovická","Boháčova","Bohúňova","Bojanovická","Bojasova","Bojetická","Boješická","Bojkovická","Bojovská","Bojínková","Bojčenkova","Bolebořská","Boleratická","Boleslavova","Boleslavská","Boletická","Bolevecká","Bolinská","Boloňská","Bolzanova","Bolívarova","Borecká","Borečkova","Borodinská","Borotínská","Borovanská","Borovanského","Borovnická","Borovská","Borová","Borošova","Borská","Borského","Boršov","Boršovská","Borůvková","Boseňská","Botevova","Botičská","Botičská","Boudova","Bousovská","Boučkova","Bouřilova","Boušova","Bozděchova","Boční I","Boční Ii","Bořanovická","Bořetická","Bořetínská","Bořivojova","Bořivojova","Boříkova","Bošická","Bošilecká","Bošínská","Božanovská","Božecká","Božejovická","Boženy Hofmeisterové","Boženy Jandlové","Boženy Němcové","Boženy Němcové","Boženy Stárkové","Božetická","Božetěchova","Božkova","Božkovská","Božídarská","Brabcova","Bramboříková","Branaldova","Brandejsova","Brandejsovo Nám.","Brandejsovo Náměstí","Brandlova","Brandýská","Branická","Branická","Branické Nám.","Branické Náměstí","Branislavova","Branišovská","Branská","Bratislavská","Bratranců Veverkových","Bratří Dohalských","Bratří Venclíků","Bratří Čapků","Bratříkovská","Braunerova","Braunova","Braškovská","Brdecká","Brdičkova","Brdlíkova","Brechtova","Brechtova","Brehmova","Breitcetlova","Brichtova","Brigádnická","Brigádníků","Brixiho","Brodecká","Brodecká","Brodského","Bromova","Bronzová","Broskvoňová","Broumarská","Broumovská","Brozánská","Brožíkova","Brtecká","Brtnická","Brumovická","Brunclíkova","Brunelova","Brunnerova","Bruselská","Brusinková","Bruslařská","Bryksova","Brzická","Brzorádových","Brázdimská","Brňovská","Bubenečská","Bubenečská","Bubenská","Bubenské Nábř.","Bubenské Nábřeží","Bubeníčkova","Bublavská","Bublíkova","Bubnova","Bucharova","Buchlovská","Buchovcova","Budapešťská","Budečská","Budilova","Budilovská","Budovatelská","Budyňská","Budyšínská","Budínova","Budčická","Budějovická","Budějovická","Bukolská","Bukovecká","Bukovinská","Buková","Bulharská","Buližníková","Bulovka","Burdova","Burešova","Burianova","Butovická","Butovická","Buzulucká","Buštěhradská","Bydhošťská","Bydžovská","Bydžovského","Bylanská","Bystrá","Bystřická","Bystřičná","Byšická","Byškovická","Bzenecká","Bártlova","Bášťská","Bílenecké Nám.","Bílenecké Náměstí","Bílinská","Bílkova","Bílkova","Bílovská","Bílá","Bílčická","Bínova","Bítovská","Böhmova","Býšovská","Běchorská","Běchovická","Běhounkova","Bělehradská","Bělehradská","Bělehradská","Bělečská","Bělinského","Bělocerkevská","Bělocká","Bělohorská","Bělohorská","Bělomlýnská","Bělomlýnská","Běloveská","Běluňská","Bělušická","Bělásková","Bělčická","Bělčická","Běžecká","Běžná","Břeclavská","Břehová","Břehová","Břetislavova","Břevnovská","Březanova","Březecká","Březenská","Březinova","Březiněveská","Březnická","Březnová","Březovická","Březovského","Březová","Břečťanová","Břežanská","Břežánecká","Břidlicová","Břidličná","Břízova","Bříšťanská","Cafourkova","Cedrová","Celetná","Celniční","Celsiova","Cementářská","Ceplechova","Cerhenická","Cerhýnská","Cetyňská","Chabařovická","Chaberská","Chabeřická","Chabská","Chalabalova","Chaloupeckého","Chaloupky","Chaltická","Chalupkova","Chalupnická","Chaplinovo Nám.","Chaplinovo Náměstí","Charkovská","Charlese De Gaulla","Charvátova","Chatařská","Chatová","Chebská","Chelčického","Chemická","Chilská","Chittussiho","Chladírenská","Chlebovická","Chlumecká","Chlumecká","Chlumecká","Chlumova","Chlumínská","Chlumčanského","Chlupova","Chlupáčova","Chládkova","Chmelařská","Chmelická","Chmelová","Chmelířova","Choceradská","Choceňská","Chocholouškova","Chocholova","Chodecká","Chodovecké Nám.","Chodovecké Náměstí","Chodovická","Chodovská","Chodovská","Chodovská","Chodská","Cholupická","Chomutovická","Chomutovská","Chopinova","Choratická","Chorošová","Chorušická","Chorvatská","Chotečská","Chotkova","Chotouchovská","Chotouňská","Chotovická","Chotutická","Chotěbuzská","Chotěnovská","Chotětovská","Chotěšovská","Chovatelská","Chrastavská","Chrobolská","Chrpová","Chrudimská","Chráněná","Chrášťanská","Chuchelská","Chudenická","Chudoměřická","Churnajevova","Churáňovská","Chvaletická","Chvaletická","Chvalečská","Chvalkovická","Chvalova","Chvalská","Chvalská","Chvalšovická","Chvatěrubská","Chvojenecká","Chyjická","Chýnická","Chýnovská","Chýňská","Chřibská","Cibulka","Cidlinská","Cigánkova","Cihelná","Cihlářova","Cihlářská","Cimburkova","Ciolkovského","Cirkusová","Cisterciácká","Citolibská","Coriových","Ctiborova","Ctiněveská","Ctiradova","Ctěnická","Cukerní","Cukrovarnická","Cukrovarská","Cuřínova","Cvikovská","Cvičebná","Cvrčkova","Cvrčkova","Cvrčkova","Cyprichova","Cíglerova","Cílkova","Cínovecká","Církova","Církvická","Církvičná","Císařská Louka","Císařský Ostrov","Císařský Ostrov","Císařský Ostrov","Cítovská","Daimlerova","Dalejská","Dalejská","Dalešická","Daliborova","Dalimilova","Dalovická","Dandova","Danielova","Dany Medřické","Darwinova","Dasnická","Davelská","Davidovičova","Davídkova","Davídkova","Dačická","Dačického","Daňkova","Dašická","Daškova","Dehtínská","Dejvická","Dejvická","Demlova","Demoliční","Desenská","Destinnové","Destinové","Devonská","Deylova","Deštná","Dešťová","Diabasová","Diamantová","Diblíkova","Diblíkova","Dienzenhoferovy Sady","Dieselova","Diskařská","Diskařská","Dismanova","Dittrichova","Divadelní","Divadelní","Divecká","Diviznová","Divišova","Divišovská","Divoká Šárka","Divoká Šárka","Dlabačov","Dlabačov","Dlouhá","Dlážděná","Do Blatin","Do Borovin","Do Chuchle","Do Dolnic","Do Dubin","Do Dubče","Do Hlinek","Do Klukovic","Do Kopečka","Do Koutů","Do Koutů","Do Lipan","Do Lipin","Do Lipin","Do Luk","Do Panenek","Do Podkovy","Do Polí","Do Potoků","Do Píšovic","Do Roklí","Do Rybníčků","Do Svépravic","Do Vozovny","Do Vrchu","Do Vršku","Do Zahrádek I","Do Zahrádek I","Do Zahrádek I","Do Zahrádek Ii","Do Zahrádek Ii","Do Zátiší","Do Údolí","Do Újezda","Do Čertous","Do Čtvrti","Do Říčan","Dobevská","Dobnerova","Dobratická","Dobronická","Dobronická","Dobropolská","Dobrovická","Dobrovolného","Dobrovolského","Dobrovského","Dobrovízská","Dobročovická","Dobrošovská","Dobrušská","Dobřanská","Dobřejovická","Dobřenická","Dobřichovská","Dobšická","Dobšínská","Dohalická","Doksanská","Dolanská","Dolejškova","Doležalova","Dolina","Dolnobranská","Dolnobřežanská","Dolnocholupická","Dolnojirčanská","Dolnokrčská","Dolnokřeslická","Dolnomlýnská","Dolnoměcholupská","Dolnoměcholupská","Dolnopočernická","Dolnočernošická","Dolní","Dolní","Dolní Chaloupky","Dolomitová","Dolská","Dolákova","Dolínecká","Dolňanská","Domanovická","Domašínská","Domažlická","Dominova","Dominínská","Domkovská","Domkářská","Domousnická","Donatellova","Donovalská","Donská","Donátova","Donínská","Dopplerova","Dopravní","Dopraváků","Dopraváků","Dostihová","Dostojevského","Doubecká","Doubická","Doubravická","Doubravská","Doubravínova","Doubravčická","Doudlebská","Doudova","Doupovská","Dr. Marodyho","Dr. Zikmunda Wintra","Dr.Zikmunda Wintra","Dragounská","Drahanská","Drahanská","Drahelická","Drahelčická","Drahobejlova","Drahorádova","Drahotická","Drahotínská","Drahovská","Drahovská","Drahoňovského","Draženovská","Draženovská","Dražetická","Dražická","Dražického","Dražického Nám.","Dražického Náměstí","Dražkovská","Dreyerova","Drimlova","Drnovská","Drobná","Drtikolova","Drtinova","Druhanická","Druhého Odboje","Družicová","Družnosti","Družná","Družstevní","Družstevní Ochoz","Družstevní Ochoz","Drážní","Drůbežnická","Drůbežářská","Dubanská","Dubenecká","Dubečská","Dubečské Horky","Dubinská","Dubnická","Dubnova","Dubovická","Dubová","Dubrovnická","Dubská","Duchcovská","Duchoslávka","Dudkova","Dudínská","Duhová","Dukelská","Dukelských Hrdinů","Dunajevského","Dunajská","Dunická","Dunovského","Durychova","Durychova","Dusíkova","Duškova","Duškova","Dušní","Dušní","Dvorecká","Dvorecké Nám.","Dvorecké Náměstí","Dvorní","Dvorská","Dvoudílná","Dvouletky","Dvouramenná","Dvořeckého","Dvořišťská","Dvořákova","Dvořákovo Nábř.","Dvořákovo Nábřeží","Dygrýnova","Dyjská","Dykova","Dářská","Dürerova","Dýšinská","Děbolínská","Dědická","Dědinova","Dědinská","Děkanská","Děkanská Vinice I","Děkanská Vinice Ii","Dělená","Dělnická","Dělostřelecká","Dětenická","Dětská","Dětský Ostrov","Děvínská","Děčínská","Děčínská","Dřevařská","Dřevnická","Dřevná","Dřevčická","Dřínovská","Dřínová","Dřítenská","Eberlova","Ebrova","Edisonova","Edvardova","Egyptská","Eichlerova","Einsteinova","Ejpovická","Ekonomická","Eledrova","Elektrárenská","Eliášova","Eliášova","Elišky Junkové","Elišky Krásnohorské","Elišky Krásnohorské","Elišky Peškové","Elišky Přemyslovny","Ellnerové","Elsnicovo Náměstí","Emilie Hyblerové","Emlerova","Engelmüllerova","Engelova","Engelova","Englerova","Erbenova","Erbenova","Estonská","Etiopská","Euklidova","Evropská","Evropská","Evropská","Evropská","Evropská","Evy Olmerové","Exnárova","F.V.Veselého","Fabiánova","Fabiánská","Fadějevova","Fajmanové","Fajtlova","Falcká","Faltysova","Famfulíkova","Fantova","Faradayova","Farkašova","Farní","Farská","Farského","Fastrova","Federova","Fejfarova","Felberova","Fenyklová","Fetrovská","Feřtekova","Fialková","Fibichova","Fikerova","Filipova","Filipovského","Filipíny Welserové","Fillova","Filmařská","Filosofská","Fingerova","Finkovská","Finská","Firkušného","Fischlova","Fišerova","Flemingovo Nám.","Flemingovo Náměstí","Flájská","Flöglova","Foerstrova","Folmavská","Formanská","Formánkova","Fořtova","Fragnerova","Francouzská","Francouzská","Francouzská","Františka Diviše","Františka Jansy","Františka Kadlece","Františka Křížka","Františka Černého","Františka Červeného","Františka Šimáčka","Františkova","Franty Kocourka","Frančíkova","Freiwaldova","Freyova","Frimlova","Fričova","Froncova","Frostova","Froňkova","Frydrychova","Fryčovická","Fráni Šrámka","Frézařská","Frýdecká","Frýdlantská","Fuchsova","Fügnerovo Nám.","Fügnerovo Náměstí","Gabinova","Gabčíkova","Gagarinova","Galandova","Galileova","Gallašova","Galvaniho","Gaussova","Gdaňská","Generála Janouška","Generála Mejstříka","Generála Píky","Generála Šišky","Generála Šišky","Gensovská","Geologická","Gercenova","Gerstnerova","Ginzova","Glazunovova","Glinkova","Glowackého","Goetheho","Gogolova","Golfová","Gollova","Golčova","Gončarenkova","Gončarenkova","Gorazdova","Gotthardská","Goyova","Gočárova","Grafická","Grafitová","Grammova","Granátová","Gregorova","Grussova","Gruzínská","Gutfreundova","Gutova","Gymnasijní","Gymnastická","Habartická","Habartická","Habartovská","Haberfeldova","Habrovská","Habrová","Habřická","Habřická","Hackerova","Hadovitá","Hadravská","Hajní","Hakenova","Halasova","Halenkovská","Halštatská","Hamerská","Hamplova","Hamrová","Hamsíkova","Hankova","Hanouškova","Hanusova","Hanušova","Hanzelkova","Hanzlíkova","Harantova","Harcovská","Harlacherova","Harmonická","Harrachovská","Hartenberská","Hasičská","Hasičů","Hasova","Hastrmanská","Haunerova","Hauptova","Hausmannova","Havanská","Havelská","Havelská Ulička","Havlovického","Havlovického","Havlovská","Havlínova","Havlíčkova","Havlíčkovo Nám.","Havlíčkovo Náměstí","Havlíčkovy Sady","Havlůjové","Havlůjové","Havranická","Havraní","Havránkova","Havířovská","Havířská","Haškova","Hašlerova","Haštalská","Haštalské Nám.","Haštalské Náměstí","Heckelova","Heineho","Heinemannova","Hejnická","Hejnická","Hejplíkova","Hejtmanská","Hejtmánkova","Hekova","Hekrova","Heldova","Heleny Malířové","Hellichova","Helmova","Helsinská","Helénská","Hennerova","Heranova","Herbenova","Herdovská","Herlíkovická","Hermanická","Hermelínská","Hermíny Týrlové","Heroldovy Sady","Herrmannova","Herrova","Hertzova","Herálecká I","Herálecká Ii","Herálecká Iii","Herálecká Iv","Herčíkova","Hevlínská","Heydukova","Heyrovského Nám.","Heyrovského Nám.","Heyrovského Náměstí","Heyrovského Náměstí","Hečkova","Heřmanova","Heřmánková","Hildy Čihákové","Hillebrantova","Hilmarova","Hiršlova","Hlavatého","Hlavenecká","Hlavní","Hlavova","Hlaváčkova","Hlaváčova","Hlaďova","Hledíková","Hlinská","Hlivická","Hlohová","Hloubětínská","Hloubětínská","Hlubocká","Hluboká","Hlubočepská","Hlušičkova","Hládkov","Hládkov","Hlávkova","Hněvkovská","Hněvkovského","Hnězdenská","Hoblířská","Hodkovická","Hodkovská","Hodonínská","Hodčina","Hodějovská","Hodějovská","Hoděšovická","Hofbauerova","Hoffmannova","Hokejová","Hokešovo Nám.","Hokešovo Náměstí","Holandská","Holekova","Holenická","Holenská","Holečkova","Holečkova","Holešovické Nábřeží","Holešovický Přístav","Holická","Hollarovo Nám.","Hollarovo Náměstí","Holohlavská","Holotínská","Holoubkova","Holoubkovská","Holubická","Holubinková","Holubkova","Holubova","Holubí","Holušická","Holyňská","Holátova","Holínská","Holýšovská","Holčovická","Holšická","Homolová","Homérova","Honzíkova","Hornická","Hornocholupická","Hornocholupická","Hornofova","Hornokrčská","Hornokřeslická","Hornomlýnská","Hornoměcholupská","Hornoměcholupská","Hornopočernická","Horní","Horní Chaloupky","Horní Hrdlořezská","Horní Stromky","Horníčkova","Horolezecká","Horoměřická","Horoměřická","Horoušanská","Horoušanská","Horovo Nám.","Horovo Náměstí","Horská","Horusická","Horymírovo Nám.","Horymírovo Náměstí","Horákova","Horáčkova","Horčičkova","Horňátecká","Horšovská","Horšovská","Hospodářská","Hostavická","Hostavická","Hostinského","Hostivařská","Hostivařské Nám.","Hostivařské Náměstí","Hostivická","Hostivítova","Hostišovská","Hostouňská","Hostošova","Hostýnská","Hostýnská","Houbařská","Houdova","Hovorčovická","Hořanská","Hořejší Náb.","Hořejší Nábřeží","Hořejšího","Hořelická","Hořická","Hořovského","Hořínecká","Hoškova","Hoštická","Hošťálkova","Hrabačovská","Hrabákova","Hrachovská","Hrad I. Nádvoří","Hrad Ii. Nádvoří","Hrad Iii. Nádvoří","Hradební","Hradecká","Hradeckých","Hradečkova","Hradešínská","Hradčanské Nám.","Hradčanské Náměstí","Hraniční","Hrazanská","Hrazanská","Hrdinova","Hrdličkova","Hrdlořezská","Hrdoňovická","Hroncova","Hronovská","Hronětická","Hrozenkovská","Hroznová","Hrozného","Hrubého","Hrubínova","Hrudičkova","Hrusická","Hruškovská","Hruškovská","Hrušovanské Nám.","Hrušovanské Náměstí","Hrušovická","Hrušovská","Hrušínského","Hrušňová","Hrušňová","Hrádková","Hráského","Huberova","Hubičkova","Hubáčkova","Hudcova","Hudební","Hudečkova","Hudečkova","Hugo Haase","Hulanova","Hulická","Humenecká","Humpolecká","Huntířovská","Hurbanova","Husařská","Husinecká","Husitská","Husitská","Husníkova","Husova","Husovo Nám.","Husovo Náměstí","Hustopečská","Hutnická","Huťská","Hviezdoslavova","Hviezdoslavova","Hvozdecká","Hvozdnická","Hvozdíková","Hvožďanská","Hvězdonická","Hvězdova","Hvězdářská","Hyacintová","Hybernská","Hybešova","Hynaisova","Hypšmanova","Hábova","Hájecká","Hájenská","Hájkova","Hájovna U Podjezdu","Hájovna V Šárce","Hájová","Hájíčkova","Hájčí","Hákova","Hálkova","Hálova","Hálův Statek","Högerova","Hübnerové","Hřbitovní","Hřebenová","Hřebíkova","Hřenská","Hřibojedská","Hřibská","Hříbková","Hřídelecká","Hůlkova","Hůlkova","Hůrská","Ibsenova","Imrychova","Ingrišova","Internacionální","Irkutská","Irská","Irvingova","Italská","Italská","Italská","Ivančická","Izraelská","Izraelská","Jabkenická","Jablonecká","Jablonecká","Jablonského","Jabloňová","Jablunkovská","Jagellonská","Jagellonská","Jahodnická","Jahodová","Jakobiho","Jakubovská","Jakubská","Jakutská","Jalodvorská","Jalovcová","Jaltská","Jamborova","Jamská","Jana Bílka","Jana Jindřicha","Jana Karafiáta","Jana Kašpara","Jana Marka","Jana Masaryka","Jana Ouřady","Jana Přibíka","Jana Růžičky","Jana Srba","Jana Zajíce","Jana Čerstvého","Jana Želivského","Janderova","Jandova","Janečkova","Jankovcova","Jankovská","Janouchova","Janouškova","Janovická","Janovská","Janovského","Jansenova","Janského","Jansova","Jantarová","Janákova","Janáčkovo Nábř.","Janáčkovo Nábř.","Janáčkovo Nábřeží","Janáčkovo Nábřeží","Janýrova","Jančova","Jarešova","Jarkovská","Jarmily Novotné","Jarní","Jarníkova","Jaromíra Jindry","Jaromíra Vejvody","Jaromírova","Jaroměřská","Jaroslava Foglara","Jaroslava Švehly","Jaroslavická","Jasanová","Jaselská","Jaselská","Jasenická","Jasenná","Jasmínová","Jasná I","Jasná Ii","Jaspisová","Jateční","Jaurisova","Jaurisova","Javorenská","Javornická","Javorová","Javorská","Javořická","Jašíkova","Jažlovická","Jedlová","Jednostranná","Jednostranná","Jednotného Zemědělského Družstva","Jednořadá","Jelenovská","Jelení","Jelínkova","Jemenská","Jemnická","Jenerálka","Jenečská","Jenišovská","Jenská","Jeníkovická","Jenštejnská","Jeremenkova","Jeremenkova","Jeremenkova","Jeremiášova","Jeremiášova","Jerevanská","Jeronýmova","Jeruzalémská","Jesenická","Jeseniova","Jestřebická","Jetelová","Jetřichovická","Jevanská","Jezdecká","Jezdovická","Jezerní","Jezerská","Jezevčí","Ječná","Jeřabinová","Jeřabinová","Jeřická","Jeřábkova","Jeřábnická","Jeřábová","Ješetická","Ještědská","Ježdíkova","Ježkova","Ježovická","Ježovická","Ježovská","Jihlavská","Jihovýchodní I","Jihovýchodní Ii","Jihovýchodní Iii","Jihovýchodní Iv","Jihovýchodní Ix","Jihovýchodní V","Jihovýchodní Vi","Jihovýchodní Vii","Jihovýchodní Viii","Jihozápadní I","Jihozápadní Ii","Jihozápadní Iii","Jihozápadní Iv","Jihozápadní V","Jihozápadní Vi","Jihočeská","Jilemnická","Jilemnická","Jilemnického","Jilmová","Jilská","Jindrova","Jindřicha Jindřicha","Jindřicha Plachty","Jindřichova","Jindřišská","Jinolická","Jinonická","Jinonická","Jinočanská","Jirenská","Jirečkova","Jirkovská","Jirsákova","Jirsíkova","Jiránkova","Jiráskovo Nám.","Jiráskovo Náměstí","Jirčanská","Jiskrova","Jistebnická","Jitkovská","Jitravská","Jitravská","Jitrocelová","Jitřní","Jivenská","Jizerská","Jičínská","Jičínská","Jiřická","Jiřinková","Jiřiny Štěpničkové","Jiřská","Jiřího Jandy","Jiřího Mašína","Jiřího Ze Vtelna","Jiříčkova","Jiříčkové","Jižní I","Jižní Ii","Jižní Iii","Jižní Iv","Jižní Ix","Jižní Nám.","Jižní Náměstí","Jižní Spojka","Jižní Spojka","Jižní Spojka","Jižní Spojka","Jižní V","Jižní Vi","Jižní Vii","Jižní Viii","Jižní Xi","Jižní Xii","Jižní Xiii","Jižní Xiv","Jižní Xv","Jižní Xvi","Jižní Xvii","Johanitská","Jordana Jovkova","Jordánská","Josefa Bíbrdlíka","Josefa Houdka","Josefa Houdka","Josefa Kočího","Josefa Němce","Josefa Vašíčka","Josefa Šimůnka","Josefská","José Martího","Juarézova","Jugoslávská","Jugoslávských Partyzánů","Jugoslávských Partyzánů","Jungmannova","Jungmannova","Jungmannovo Náměstí","Junácká","Jupiterova","Jurkovičova","Juárezova","Jzd","Jáchymova","Jáchymova","Jáchymovská","Jánošíkova","Jánská","Jánský Vršek","Jíchova","Jílkova","Jílovická","Jílovišťská","Jílovská","Jílovská","Jílová","Jírova","Jírovcovo Nám.","Jírovcovo Náměstí","Jívanská","Jívová","K Austisu","K Avii","K Barrandovu","K Bateriím","K Bažantnici","K Belvederu","K Berance","K Beranovu","K Berounce","K Beránku","K Betonárně","K Betáni","K Blatovu","K Bohnicím","K Borovíčku","K Botiči","K Brance","K Brnkám","K Brusce","K Brusce","K Brůdku","K Bílému Vrchu","K Běchovicům","K Březince","K Březiněvsi","K Břečkám","K Celinám","K Cementárně","K Chabům","K Chabům","K Chaloupce","K Chaloupkám","K Chatám","K Chmelnici","K Chumberku","K Cihelně","K Cikánce","K Cíli","K Dalejím","K Dobré Vodě","K Dobré Vodě","K Dolům","K Drahani","K Drahani","K Drazdům","K Drsnici","K Dubinám","K Dubovému Mlýnu","K Dubu","K Dubči","K Dálnici","K Dálnici","K Dýmači","K Děrám","K Fantovu Mlýnu","K Farkám","K Fialce","K Fišpance","K Habrovce","K Habru","K Haltýři","K Havlínu","K Hluboké Cestě","K Hlásku","K Holyni","K Holému Vrchu","K Holému Vrchu","K Homolce","K Horkám","K Horkám","K Horkám","K Horním Počernicím","K Horoměřicům","K Hořavce","K Hradišti","K Hrnčířům","K Hrušovu","K Hrušovu","K Hrázi","K Hutím","K Hutím","K Hutím","K Hádku","K Háječku","K Háji","K Háji","K Hájku","K Hájovně","K Hájovně","K Hájovně","K Hájům","K Hárunce","K Interně","K Jalovce","K Jasánkám","K Jelenu","K Jelenám","K Jezeru","K Jezeru","K Jezu","K Jezírku","K Jihu","K Jihu","K Jinočanům","K Jinočanům","K Jižnímu Městu","K Juliáně","K Jízdárně","K Labeškám","K Ladům","K Lahovičkám","K Lahovské","K Lažance","K Lesoparku","K Lesu","K Lesu","K Lesíku","K Letišti","K Letňanům","K Libuši","K Lindě","K Lipanům","K Lipinám","K Lipám","K Lochkovu","K Lomu","K Louži","K Luhu","K Lukám","K Lučinám","K Lužinám","K Ládví","K Ládví","K Lánu","K Lávce","K Lázním","K Lípě","K Markétě","K Matěji","K Mejtu","K Metru","K Metru","K Milíčovu","K Mlíčníku","K Mlýnu","K Modřanskému Nádraží","K Mohyle","K Moravině","K Moravině","K Mostku","K Mostu","K Motelu","K Motolu","K Mírám","K Měcholupům","K Měchurce","K Nedvězí","K Netlukám","K Noskovně","K Nouzovu","K Nové Vsi","K Nové Vsi","K Nové Škole","K Novému Dvoru","K Novému Hradu","K Novému Sídlišti","K Novým Domkům","K Nádraží","K Nádrži","K Náhonu","K Náměstí","K Náplavce","K Náplavce","K Návrší","K Návrší","K Návsi","K Obci","K Obecním Hájovnám","K Oboře","K Obsinám","K Ochozu","K Ohradě","K Okrouhlíku","K Olympiku","K Opatřilce","K Opatřilce","K Oplocení","K Orionce","K Osmidomkům","K Otočce","K Ovčínu","K Ovčínu","K Padesátníku","K Palečku","K Panenkám","K Parku","K Pastvinám","K Pazderkám","K Pekárně","K Peluňku","K Petrově Komoře","K Pitkovicům","K Podchodu","K Podjezdu","K Podjezdu","K Polím","K Pomníku","K Popelce","K Popelce","K Potoku","K Poště","K Pramenu","K Prelátům","K Prádelně","K Průhonicům","K Průhonu","K Průmstavu","K Pyramidce","K Pérovně","K Pískovně","K Písnici","K Přehradám","K Přejezdu","K Přístavišti","K Přívozu","K Radhošti","K Radonicům","K Radotínu","K Radotínu","K Remízku","K Rokli","K Rokytce","K Rotundě","K Rovinám","K Rozkoši","K Rozmezí","K Roztokům","K Rozvodně","K Rukavičkárně","K Rybníku","K Rybníčku","K Rybníčkům","K Rybárně","K Ryšánce","K Ryšánce","K Sadu","K Safině","K Samoobsluze","K Samotě","K Sedlišti","K Sibřině","K Sokolovně","K Sopce","K Sopce","K Starému Bubenči","K Starému Lomu","K Stavebninám","K Sukovu","K Sádkám","K Sádkám","K Sídlišti","K Sídlišti","K Teplárně","K Topolům","K Topírně","K Transformátoru","K Trati","K Trninám","K Trnkám","K Trníčku","K Truhlářce","K Tržišti","K Tuchoměřicům","K Táboru","K Třebonicům","K Třešňovce","K Tůni","K Ubytovnám","K Uhříněvsi","K Uhříněvsi","K Učilišti","K Valu","K Vejvoďáku","K Velké Ohradě","K Velké Ohradě","K Velkému Dvoru","K Verneráku","K Viaduktu","K Vidouli","K Vilkám","K Vinici","K Vinicím","K Vinoři","K Vizerce","K Višňovce","K Višňovce","K Višňovému Sadu","K Vltavě","K Vlásence","K Vodici","K Vodojemu","K Vodárně","K Vodě","K Vrbičkám","K Vrbě","K Vrcholu","K Vrtilce","K Vršíčku","K Vyhlídce","K Vysoké Cestě","K Vystrkovu","K Václavce","K Vápence","K Váze","K Výboru","K Výtopně","K Výzkumným Ústavům","K Větrolamu","K Zabrkům","K Zadní Kopanině","K Zadní Kopanině","K Zahradnictví","K Zahradám","K Zahrádkám","K Zastávce","K Zatáčce","K Zelené Louce","K Zeleným Domkům","K Zelenči","K Zámku","K Zátiší","K Závodišti","K Závorám","K Závěrce","K Závětinám","K Údolí","K Údolí Hvězd","K Újezdu","K Ústavu","K Úvozu","K Černošicím","K Červenému Dvoru","K Červenému Dvoru","K Červenému Dvoru","K Červenému Vrchu","K Čestlicům","K Čihadlům","K Ďáblicům","K Řece","K Řeporyjím","K Řeporyjím","K Říčanům","K Šafránce","K Šafránce","K Šancím","K Šeberovu","K Šeberáku","K Šedivce","K Šubrtce","K Železnici","K Žižkovu","Kabeláčova","Kabešova","Kabátové","Kadaňská","Kadeřávkovská","Kafkova","Kahovská","Kaizlovy Sady","Kakosova","Kakostová","Kalabisova","Kalašova","Kalinová","Kališnická","Kališťská","Kalská","Kalvodova","Kamelova","Kamencová","Kamenická","Kamenická","Kamenitá","Kamenná","Kameníků","Kamerunská","Kampanova","Kamzíková","Kamýcká","Kamýcká","Kamýcká","Kanadská","Kandertova","Kanovnická","Kapitulská","Kaplanova","Kaplická","Kapraďová","Kaprova","Kaprova","Kapucínská","Karafiátová","Karasova","Karasovská","Kardausova","Kardašovská","Kardašovská","Karenova","Karfíkova","Karla Engliše","Karla Hlaváčka","Karla Kryla","Karla Křížka","Karla Michala","Karla Rachůnka","Karla Tomáše","Karla Zicha","Karla Černého","Karlická","Karlova","Karlovarská","Karlovarská","Karlovická","Karlovo Nám.","Karlovo Nám.","Karlovo Náměstí","Karlovo Náměstí","Karlínské Nám.","Karlínské Náměstí","Karlštejnská","Karmelitská","Karolinská","Karoliny Světlé","Karpatská","Kartounářů","Kartouzská","Kasalická","Kateřinská","Kateřinské Nám.","Kateřinské Náměstí","Katovická","Katusická","Kavkazská","Kazaňská","Kazašská","Kazimírova","Kaznějovská","Kazín","Kazínská","Kačerovská","Kačínská","Kaňkova","Kaňkovského","Kaňovská","Kašeho","Kaškova","Kašovická","Kašparovo Nám.","Kašparovo Náměstí","Kašperská","Kaštanová","Kbelská","Kbelská","Kbelská","Kbelská","Kdoulová","Ke Březině","Ke Břvům","Ke Cvičišti","Ke Dračkám","Ke Dráze","Ke Dvoru","Ke Džbánu","Ke Garážím","Ke Golfu","Ke Goniu","Ke Hlásce","Ke Hrádku","Ke Hrázi","Ke Hrázi","Ke Hřbitovu","Ke Hřišti","Ke Kablu","Ke Kablu","Ke Kalvárii","Ke Kaménce","Ke Kamínce","Ke Kamýku","Ke Kapličce","Ke Kapslovně","Ke Karlovu","Ke Kateřinkám","Ke Kazínu","Ke Kašně","Ke Kinu","Ke Kladivům","Ke Klimentce","Ke Klubovně","Ke Klínku","Ke Klínku","Ke Klíčovu","Ke Koh-I-Nooru","Ke Kolodějskému Zámku","Ke Kolodějům","Ke Kolonii","Ke Konstruktivě","Ke Kopečku","Ke Korunce","Ke Kostelu","Ke Kostelíčku","Ke Kotlářce","Ke Koulce","Ke Koupališti","Ke Kovárně","Ke Kozím Hřbetům","Ke Královicům","Ke Krči","Ke Krčské Stráni","Ke Kulišce","Ke Kulturnímu Domu","Ke Kurtům","Ke Kyjovu","Ke Kálku","Ke Křížku","Ke Křížkám","Ke Lhoteckému Lesu","Ke Mlýnku","Ke Mlýnu","Ke Mlýnu","Ke Schodům","Ke Skalce","Ke Skalkám","Ke Skladům","Ke Sklárně","Ke Skále","Ke Slatinám","Ke Slivenci","Ke Smrčině","Ke Smíchovu","Ke Smíchovu","Ke Splávku","Ke Spofě","Ke Spořilovu","Ke Spálence","Ke Srážku","Ke Stadionu","Ke Stanici","Ke Starému Hřišti","Ke Starým Rybníkům","Ke Stinkovskému Rybníku","Ke Strašnické","Ke Strouze","Ke Stráni","Ke Strži","Ke Studni","Ke Studni","Ke Studánce","Ke Stupicím","Ke Stáčírně","Ke Stírce","Ke Střelnici","Ke Střelnici","Ke Sv. Izidoru","Ke Třem Mostům","Ke Xaverovu","Ke Zbraslavi","Ke Zbrojnici","Ke Zbuzanům","Ke Zdibům","Ke Zdravotnímu Středisku","Ke Zděři","Ke Zlatému Kopci","Ke Zličínu","Ke Znaku","Ke Zvonici","Ke Zvoničce","Ke Školce","Ke Škole","Ke Šmejkalu","Ke Štvanici","Ke Štítu","Ke Štěpcům","Ke Štěrkovně","Ke Švestkovce","Kecova","Kejhova","Kejnická","Kellnerova","Keltská","Keltů","Kelvinova","Kemrova","Keplerova","Keplerova","Keramická","Kesnerka","Kestřanská","Keteňská","Kettnerova","Keřová","Khodlova","Kischova","Kišiněvská","Kladenská","Kladenská","Kladenská","Kladinovská","Kladrubská","Kladská","Klamovka","Klapkova","Klapálkova","Klatovská","Klausova","Klecandova","Klecanská","Klenečská","Klenovická","Klenovská","Klenová","Klečkova","Klečákova","Klešická","Klicperova","Klidná","Klihařská","Klikatá","Klikatá","Klimentská","Klivarova","Kloboukova","Kloboučnická","Kloknerova","Klokotská","Klostermannova","Klouzková","Kludských","Klukovická","Klánova","Klánova","Klánova","Klánovická","Klánovická","Klárov","Klášterecká","Klášterská","Klášterského","Klímova","Klímova","Klínecká","Klínovecká","Klínová","Klírova","Klíčanská","Klíčova","Klíčovská","Klíčovská","Kmochova","Knínická","Kněževeská","Kněžická","Koberkova","Kobrova","Kobyliská","Kobyliské Nám.","Kobyliské Náměstí","Kobylákova","Kochanova","Kocianova","Koclířova","Kocourova","Kodaňská","Kodicilova","Kodymova","Kohoutovská","Kohoutových","Kojetická","Kojická","Kokořínská","Kolbenova","Kolbenova","Kolbenova","Koldínova","Kolejní","Kolektivní","Kolešovská","Kollárova","Kolmistrova","Kolmá","Kolocova","Kolodějská","Kolonie U Obecní Cihelny","Kolonka","Kolovečská","Kolovratská","Kolová","Kolátorova","Koláčkova","Koláře Kaliny","Kolářova","Kolínova","Kolínská","Kolčavka","Komenského Nám.","Komenského Náměstí","Komornická","Komořanská","Komořanská","Komořanská","Komunardů","Komárkova","Komárovská","Koncová","Konecchlumského","Konečná","Kongresová","Konojedská","Konopišťská","Konopova","Konopáskova","Konstantinova","Konvalinková","Konviktská","Konzumní","Konzumní","Koníčkovo Nám.","Koníčkovo Náměstí","Konětopská","Koněvova","Konšelská","Konžská","Kopalova","Kopanina","Kopanská","Kopeckého","Koperníkova","Kopečná","Kopretinová","Kopřivnická","Korandova","Korandova","Korunní","Korunní","Korunní","Korunovační","Korunovační","Korybutova","Korycanská","Korytná","Kosatcová","Kosařova","Kosmická","Kosmonoská","Kosova","Kosořická","Kosořská","Kostelecká","Kostelecká","Kostelní","Kostelní Náměstí","Kostečná","Kostková","Kostlivého","Kostnické Nám.","Kostnické Náměstí","Kostomlatská","Kostrbova","Kostřínská","Kosárkovo Nábř.","Kosárkovo Nábřeží","Kosí","Koterovská","Koterovská","Kotevní","Kotlaska","Kotlářka","Kotorská","Kotovka","Kotrčová","Kotršálova","Kotíkova","Kotěrova","Koubkova","Koubkova","Koubova","Koukolová","Koulka","Koulova","Kounická","Kounovská","Koutská","Kouřimská","Kovanecká","Kovařovicova","Kovriginova","Kováků","Kovárenská","Kovářova","Kovářská","Kováříkova","Kozinova","Kozinovo Náměstí","Kozlova","Kozlovská","Kozmíkova","Kozomínská","Kozácká","Kozákovská","Kozáková","Kozí","Kočova","Kořenského","Košařova","Košická","Koštířova","Košátecká","Košíkářská","Košířské Nám.","Košířské Náměstí","Košťálkova","Koťátkova","Koželužská","Kožlanská","Kožná","Kožíškova","Kpt. Nálepky","Kpt. Stránského","Krabošická","Krahulčí","Krajanská","Krajní","Krajová","Krajánkova","Krakovská","Kralická","Kralupská","Krameriova","Kramlova","Kramolná","Kramolínská","Kramperova","Kraslická","Krasnická","Krasnojarská","Kratochvílova","Krausova","Krbická","Krchlebská","Krejnická","Krejčího","Kremličkova","Kremnická","Kremnická","Krhanická","Krhanická","Kristiánova","Kriváňská","Krkonošská","Krnovská","Krnská","Krocínova","Krocínovská","Kroftova","Krohova","Krokova","Krolmusova","Kropáčkova","Krosenská","Kroupova","Kroupova","Krouzova","Krovova","Krteňská","Kruhová","Krumlovská","Krupkovo Nám.","Krupkovo Náměstí","Krupná","Krupská","Krušovická","Kružberská","Krylovecká","Krylovecká","Krymská","Krynická","Krystalová","Kryšpínova","Kryštofova","Krále Václava Iv.","Králodvorská","Králova","Královická","Královny Žofie","Královská Obora","Královská Obora","Krásnolipská","Krásného","Krásova","Krátká","Krátká","Krátkého","Krátký Lán","Krčmářovská","Krčská","Krčínovo Nám.","Krčínovo Náměstí","Krčínská","Krňovická","Krškova","Kubatova","Kubaštova","Kubelíkova","Kubišova","Kubištova","Kubova","Kubánské Nám.","Kubánské Náměstí","Kubíkova","Kubínova","Kuchařská","Kudeříkové","Kudrnova","Kukelská","Kukelská","Kukulova","Kukulova","Kukučínova","Kulhavého","Kulhánkovská","Kuncova","Kundratka","Kunešova","Kunická","Kunratická","Kunratická Spojka","Kunratická Spojka","Kuní","Kuní","Kunínova","Kunčická","Kunětická","Kupeckého","Kupkova","Kurandové","Kurkova","Kurta Konráda","Kurzova","Kurčatovova","Kusá","Kusého","Kutilova","Kutnauerovo Náměstí","Kutnohorská","Kutnohorská","Kutrovická","Kuttelwascherova","Kutvirtova","Kučerova","Kučerové","Kuťatská","Kuželova","Kvapilova","Kvasinská","Kvestorská","Květinková","Květinářská","Květnická","Květnová","Květnového Povstání","Květnového Povstání","Květnového Vítězství","Květnového Vítězství","Květná","Květoslavova","Květová","Kyjevská","Kyjevská","Kyjovská","Kyjská","Kyjská","Kykalova","Kymrova","Kynická","Kyselova","Kyslíková","Kysucká","Kysúcká","Kytlická","Kytínská","Kácovská","Kádnerova","Kálikova","Kálmánova","Káranská","Křejpského","Křelovická","Křemelná","Křemencova","Křemenná","Křemenáčová","Křemílkova","Křenická","Křenova","Křepelčí","Křepelčí","Křesadlova","Křesanovská","Křeslická","Křesomyslova","Křešínská","Křimická","Křimovská","Křivatcová","Křivenická","Křivoklátská","Křivá","Křičkova","Křišťanova","Křišťálová","Křižovnická","Křižovnické Nám.","Křižovnické Náměstí","Křižíkova","Křižíkova","Křovinovo Nám.","Křovinovo Náměstí","Křtinská","Kříženeckého Nám.","Kříženeckého Náměstí","Křížkovského","Křížová","Křížová","Labská","Labětínská","Ladislava Coňka","Ladova","Laglerové","Lahovská","Lahovská","Lamačova","Langweilova","Lannova","Lanýžová","Lanžhotská","Lanžovská","Laténská","Laubova","Laudonova","Laudova","Laurinova","Lazarská","Lazarská","Lačnovská","Lažanská","Lažanská","Lažanského","Lebeděvova","Ledařská","Ledecká","Ledečská","Ledkovská","Lednická","Lednová","Ledvická","Ledvinova","Ledč","Ledčická","Legerova","Legerova","Legerova","Legerova","Legionářů","Lehárova","Leitzova","Leknínová","Leopoldova","Leskovecká","Lesnická","Lesného","Lesní","Lessnerova","Lesáků","Letců","Letecká","Letenská","Letenské Nám.","Letenské Nám.","Letenské Náměstí","Letenské Náměstí","Letenské Sady","Letní","Letohradská","Letovská","Letňanská","Letňanská","Levandulová","Levobřežní","Levského","Levá","Lexova","Lečkova","Lešanská","Lešenská","Lešetínská","Lešovská","Leštínská","Lhenická","Lhotecká","Lhotecká","Lhotská","Lhotákova","Liberecká","Liberijská","Libečkova","Libeňská","Libeňský Ostrov","Libeňský Ostrov","Libeřská","Libichovská","Libická","Libišanská","Libišská","Libkovská","Liblická","Liblická","Libochovická","Libocká","Liborova","Libotovská","Libovická","Libočanská","Liboňovská","Libošovická","Libuňská","Libušina","Libušská","Libušská","Libušská","Libušská","Libáňská","Libínská","Libčanská","Libčická","Liběchovská","Libědická","Liběšická","Libřická","Lichá","Lidečská","Lidická","Lidického","Lihovarská","Liliová","Lilková","Limuzská","Limuzská","Lindavská","Lindleyova","Lindnerova","Linhartova","Linhartská","Lipanská","Lipecká","Lipenecká","Lipenská","Lipenská","Lipenské Nám.","Lipenské Náměstí","Lipnická","Lipoltická","Lipovická","Lipovská","Lipová Alej","Lipové Náměstí","Lipského","Lipí","Lisabonská","Lisabonská","Listopadová","Lisztova","Litavská","Litevská","Litická","Litochlebská","Litoměřická","Litoměřická","Litovická","Litošická","Litošická","Litožnická","Litvínovská","Litvínovská","Livornská","Lišanská","Lišická","Liškova","Lišovická","Liščí","Liščí","Lnářská","Lobečská","Lochenická","Lochkovská","Lochotínská","Lodecká","Lodní Mlýny","Loděnická","Lodžská","Lodžská","Lohenická","Lohniského","Lojovická","Lojovická","Lojovická","Lolkova","Lomařská","Lomecká","Lomená","Lomnická","Lomnického","Lomová","Londýnská","Loosova","Lopatecká","Lopatecká","Lopuchová","Loretánská","Loretánské Nám.","Loretánské Náměstí","Losinská","Lotyšská","Loucká","Loudova","Lounská","Lounských","Loutkářská","Loučanská","Loučimská","Loučná","Louňovická","Lovecká","Lovosická","Lovosická","Lovosická","Lovčenská","Lovčická","Lozická","Lošetická","Lošáková","Lstibořská","Lubenecká","Lublaňská","Lublaňská","Lublinská","Lubnická","Lucemburská","Lucemburská","Lucinková","Ludmilina","Ludvíkova","Luhovská","Lukavecká","Lukavského","Lukešova","Lukešova","Lukovská","Lukášova","Lumiérů","Lumírova","Lumírova","Luníkovská","Lupenická","Lupáčova","Lutínská","Luční","Luštěnická","Lužanská","Lužecká","Lužická","Lužnická","Lužná","Lužní","Lužská","Lvovská","Lysinská","Lysolajská","Lysolajské Údolí","Lyčkovo Nám.","Lyčkovo Náměstí","Lyžařská","Ládevská","Lánovská","Lánská","Lásenická","Láskova","Lázeňská","Lékařská","Lékořicová","Líbalova","Líbeznická","Lípová","Lískovická","Lísková","Líšnická","Lýskova","M. J. Lermontova","Macešková","Macharovo Nám.","Macharovo Náměstí","Machatého","Machkova","Machnova","Machovcova","Machovická","Machovská","Machuldova","Macháčkova","Madarova","Madaťjanova","Madridská","Magd. Rettigové","Magdalény Rettigové","Magistrů","Magnitogorská","Mahenova","Mahlerovy Sady","Mahulenina","Maiselova","Maiselova","Majerové","Majerského","Makedonská","Makovská","Makovského","Maková","Malachitová","Malebná","Malenická","Malešická","Malešická","Malešická","Malešické Nám.","Malešické Náměstí","Malešovská","Malinová","Maličká","Malkovského","Malletova","Malletova","Malobřevnovská","Malostranské Nábř.","Malostranské Nábřeží","Malostranské Náměstí","Malotická","Malovická","Maltézské Nám.","Maltézské Náměstí","Malá","Malá Bylanská","Malá Houdova","Malá Klášterní","Malá Lada","Malá Michnovka","Malá Plynární","Malá Skloněná","Malá Smidarská","Malá Tyršovka","Malá Xaveriova","Malá Štupartská","Malá Štěpánská","Malátova","Malé Nám.","Malé Náměstí","Malého","Malínská","Malířská","Malý Dvůr","Malý Okrouhlík","Malšovická","Malšovské Nám.","Malšovské Náměstí","Mandloňová","Mandova","Mansfeldova","Manská Zahrada","Mantovská","Manželů Dostálových","Manželů Kotrbových","Manželů Lyčkových","Marciho","Marešova","Marie Cibulkové","Marie Podvalové","Mariánská","Mariánská","Mariánské Hradby","Mariánské Hradby","Mariánské Nám.","Mariánské Náměstí","Markova","Markupova","Markušova","Markvartická","Markyta","Markétská","Maroldova","Martinelliho","Martinická","Martinova","Martinovská","Martinská","Marty Krásové","Marvanova","Maršovská","Masarykovo Nábř.","Masarykovo Nábř.","Masarykovo Nábřeží","Masarykovo Nábřeží","Masná","Matek","Matenská","Maternova","Mateřská","Mateřídoušková","Matjuchinova","Matoušova","Mattioliho","Matúškova","Matěchova","Matějkova","Matějovského","Matějská","Maxovská","Mazancova","Mazovská","Mazurská","Maďarská","Maňákova","Mařatkova","Mařákova","Maříkova","Mašatova","Maškova","Mašovická","Maštěřovského","Mašínova","Mechovka","Mechová","Medinská","Medkova","Medlovská","Medová","Meduňková","Meinlinova","Mejstříkova","Melantrichova","Meliorační","Melodická","Melounová","Menclova","Mendelova","Mendíků","Menšíkova","Menšíkovská","Merhoutova","Merkurova","Meruňková","Meskářova","Meteorologická","Meteorologická","Metodějova","Metujská","Mexická","Mezi Chatami","Mezi Domky","Mezi Domy","Mezi Humny","Mezi Lysinami","Mezi Lány","Mezi Poli","Mezi Potoky","Mezi Rolemi","Mezi Rybníky","Mezi Sklady","Mezi Stráněmi","Mezi Vodami","Mezi Úvozy","Mezi Školami","Mezibranská","Mezihorská","Mezihoří","Mezilehlá","Mezilesní","Mezilesí","Meziluží","Mezipolí","Mezitraťová","Mezitraťová","Mezitraťová","Mezivrší","Meziškolská","Mečislavova","Mečovská","Mečíková","Michalovicova","Michalská","Michelangelova","Michelská","Michelská","Michnova","Michnovka","Mickiewiczova","Mikanova","Mikova","Mikovcova","Mikovická","Mikulandská","Mikuleckého","Mikulova","Mikulovická","Mikuláše Z Husi","Mikulášská","Mikulčická","Mikšovského","Milady Horákové","Milady Horákové","Milady Horákové","Milady Horákové","Milady Horákové","Milana Kadlece","Milenovská","Milerova","Miletická","Miletínská","Milevská","Milevská","Milešovská","Milotická","Milovická","Milovická","Milánská","Milínská","Milíčova","Milíčovská","Mimoňská","Minaříkova","Minerální","Minická","Minská","Miranova","Miroslava Hajna","Miroslava Hamra","Mirotická","Mirotická","Mirovická","Mirošovická","Mirošovská","Mistrovská","Mistřínská","Miřetická","Miškovická","Mladenovova","Mladoboleslavská","Mladoboleslavská","Mladoboleslavská","Mladoboleslavská","Mladoboleslavská","Mladotická","Mladotova","Mladých","Mladých Běchovic","Mladčina","Mladějovská","Mlynářská","Mládeže","Mládežnická","Mládkova","Mládí","Mlázovická","Mlékárenská","Mlýnská","Mlýnská","Mnichovická","Mochovská","Mochovská","Modenská","Modlanská","Modletická","Modletínská","Modravská","Modrá","Modrého","Modřanská","Modřanská","Modřanská","Modřanská","Modřínová","Mohelnická","Mohylová","Mojmírova","Mokrá","Mokřanská","Moldavská","Molitorovská","Molákova","Mongolská","Moravanská","Moravanů","Moravská","Morseova","Morstadtova","Morušová","Morušová","Morávkova","Moskevská","Mostecká","Motolská","Moulíkova","Moysesova","Mozambická","Mozartova","Mošnova","Možného","Mramorová","Mratínská","Mračnická","Mrkosova","Mrkvičkova","Mrákovská","Mrázkova","Mrázovka","Mráčkova","Mrštíkova","Mrštíkova","Muchomůrková","Muchova","Mukařovská","Mukařovského","Murgašova","Murmanská","Musilova","Musorgského","Musílkova","Mutěnínská","Muzejní","Muzikova","Muškova","Mydlářka","Myjavská","Mylnerovka","Myslbekova","Myslbekova","Myslivecká","Myslivečkova","Myslíkova","Myslíkova","Myšlínská","Máchova","Máchova","Mádrova","Májovková","Májová","Málkovská","Mánesova","Márova","Máslova","Máslovická","Mátová","Mílovská","Mílová","Mírová","Mírového Hnutí","Mírového Hnutí","Místecká","Míčova","Míšeňská","Míšovická","Münzbergerových","Mýtní","Měchenická","Měcholupská","Měděnecká","Mělická","Mělnická","Městská","Měsíčková","Měsíční","Měšická","Měšínská","Mšecká","Mšenská","N. A. Někrasova","Na Babách","Na Babě","Na Bahnech","Na Balkáně","Na Balkáně","Na Bambouzku","Na Baních","Na Barikádách","Na Bartoňce","Na Bateriích","Na Bateriích","Na Bačálkách","Na Baště Sv. Jiří","Na Baště Sv. Ludmily","Na Baště Sv. Tomáše","Na Bendovce","Na Benátkách","Na Beránce","Na Betonce","Na Bečvářce","Na Bitevní Pláni","Na Blanici","Na Blanseku","Na Blatech","Na Bluku","Na Bohdalci","Na Bojišti","Na Boleslavce","Na Borovém","Na Botiči","Na Botě","Na Božkovně","Na Brabenci","Na Brázdě","Na Bučance","Na Bělici","Na Bělidle","Na Bělohorské Pláni","Na Břehu","Na Břevnovské Pláni","Na Březince","Na Celné","Na Cestě","Na Chmelnici","Na Chobotě","Na Chodovci","Na Chvalce","Na Chvalské Tvrzi","Na Cihelně","Na Cihlářce","Na Cikorce","Na Cikánce","Na Cimbále","Na Cípu","Na Císařce","Na Dionysce","Na Dlouhé Mezi","Na Dlouhé Mezi","Na Dlouhé Mezi","Na Dlouhé Mezi","Na Dlouhém Lánu","Na Dlážděnce","Na Dlážděnce","Na Dlážděnce","Na Dlážděnce","Na Dobešce","Na Dobré Vodě","Na Dolinách","Na Dolinách","Na Dolnici","Na Dolíku","Na Domovině","Na Doubkové","Na Drahách","Na Dračkách","Na Dračkách","Na Dražkách","Na Dubině","Na Dvorcích","Na Dyrince","Na Dílcích","Na Dílech","Na Dědince","Na Dědinách","Na Děkance","Na Děkance","Na Dělostřílnách","Na Džbánu","Na Fabiánce","Na Farkách","Na Farkáně I","Na Farkáně Ii","Na Farkáně Iii","Na Farkáně Iv","Na Fialce I","Na Fialce Ii","Na Fidlovačce","Na Fišerce","Na Florenci","Na Florenci","Na Floře","Na Folimance","Na Formance","Na Františku","Na Groši","Na Habrovce","Na Habrové","Na Hanspaulce","Na Harfě","Na Havránce","Na Hlavní","Na Hlinách","Na Hloubětínské Vinici","Na Hlídce","Na Holém Vrchu","Na Homolce","Na Homoli","Na Horce","Na Horkách","Na Hradním Vodovodu","Na Hranicích","Na Hranicích","Na Hrobci","Na Hroudě","Na Hroudě","Na Hrádku","Na Hrázi","Na Hubálce","Na Humnech","Na Hupech","Na Hutmance","Na Hutích","Na Hutích","Na Hvížďalce","Na Hvězdárně","Na Hádku","Na Hájku","Na Hřebenech I","Na Hřebenech Ii","Na Hřebenech Ii","Na Hřebenkách","Na Hůrce","Na Jabloňce","Na Jabloňce","Na Jahodách","Na Jarově","Na Jelenách","Na Jelenách","Na Jetelce","Na Jetelce","Na Jezerce","Na Jezerách","Na Jitřence","Na Jivinách","Na Julisce","Na Jílech","Na Jílu","Na Kameni","Na Kampě","Na Kapličce","Na Karlovce","Na Kavčích Horách","Na Kazance","Na Kačence","Na Kačerově","Na Kindlovce","Na Klaudiánce","Na Klaudiánce","Na Kleovce","Na Klikovce","Na Klimentce","Na Klášterním","Na Klínech","Na Klínech","Na Klínku","Na Knížce","Na Kocourkách","Na Kocínce","Na Kodymce","Na Kolejním Statku","Na Komořsku","Na Komořsku","Na Konci","Na Konečné","Na Konvářce","Na Kopanině","Na Kopci","Na Kopečku","Na Kopytářce","Na Korunce","Na Korábě","Na Korálově","Na Kotlářce","Na Koupaliště","Na Kovárně","Na Kozačce","Na Kozinci","Na Košince","Na Košíku","Na Kraji","Na Krocínce","Na Krutci","Na Královce","Na Královně","Na Krčské Stráni","Na Kuthence","Na Kvintusce","Na Květnici","Na Kyjově","Na Křemínku","Na Křenkově","Na Křečku","Na Křivce","Na Křivce","Na Křivce","Na Křivině","Na Křtině","Na Křídle","Na Labuťce","Na Labuťce I","Na Labuťce Ii","Na Labuťce Iii","Na Labuťce Iv","Na Ladách","Na Lahovské","Na Laurové","Na Lepším","Na Lhotech","Na Lhotkách","Na Libušince","Na Losách","Na Louce","Na Loukoti","Na Louži","Na Loužku","Na Luka","Na Lukách","Na Luzích","Na Lučinách","Na Lužci","Na Lysinách","Na Lysině","Na Ládví","Na Lánech","Na Lávce","Na Lázeňce","Na Líše","Na Malovance","Na Malé Šárce","Na Malém Klínu","Na Maninách","Na Manoušce","Na Markvartce","Na Marně","Na Mezi","Na Mlejnku","Na Moklině","Na Mokřině","Na Moráni","Na Močále","Na Mrázovce","Na Musilech","Na Mírách","Na Míčánce","Na Míčánkách","Na Mýtě","Na Můstku","Na Neklance","Na Nežárce","Na Nivách","Na Novině","Na Nové Silnici","Na Náspu","Na Návrati","Na Návrší","Na Návsi","Na Obrátce","Na Obrátce","Na Odbočce","Na Ohradě","Na Okraji","Na Okraji","Na Okrouhlíku","Na Okruhu","Na Opyši","Na Opyši","Na Ostrohu","Na Ostrově","Na Ostrůvku","Na Ovesníku","Na Ovčinách","Na Ovčáckém","Na Ovčíně","Na Ořechovce","Na Padesátníku I","Na Padesátníku Ii","Na Padesátníku Iii","Na Padesátníku Iv","Na Padesátníku V","Na Padesátém","Na Pahorku","Na Pahoubce","Na Palouku","Na Paloučku","Na Pankráci","Na Panorámě","Na Parcelách","Na Parkáně","Na Parukářce","Na Pasece","Na Pasece","Na Pastvinách","Na Pavím Vrchu","Na Pazderce","Na Pecích","Na Pernikářce","Na Perštýně","Na Petynce","Na Petynce","Na Petřinách","Na Petřinách","Na Placích","Na Planině","Na Plužině","Na Plzeňce","Na Plácku","Na Pláni","Na Plískavě","Na Podkovce","Na Pokraji","Na Pokraji","Na Poli","Na Polníku","Na Pomezí","Na Pomezí","Na Popelce","Na Popelce","Na Potůčku","Na Poustkách","Na Pozorce","Na Poříčním Právu","Na Poříčí","Na Poříčí","Na Požáru","Na Požáru","Na Pramenech","Na Pramenech","Na Prosecké Vyhlídce","Na Proseku","Na Prostřední Cestě","Na Proutcích","Na Provaznici","Na Průhonu","Na Průseku","Na Pučálce","Na Pískovně","Na Písku","Na Pískách","Na Pěkné Vyhlídce","Na Pěšinách","Na Pěšinách","Na Pěšině","Na Předevsi","Na Přesypu","Na Přesypu","Na Přídole","Na Příkopě","Na Příkopě","Na Přívozích","Na Příčce","Na Příčné Mezi","Na Radosti","Na Radosti","Na Rampách","Na Rejdišti","Na Roháčku","Na Rokytce","Na Rolích","Na Rovinách","Na Rovině","Na Rovni","Na Rovnosti","Na Rovném","Na Rozcestí","Na Rozdílu","Na Rozdílu","Na Rozhledu","Na Rozhraní","Na Rozhraní","Na Rozvodí","Na Ročkově","Na Rybníčku","Na Rybářce","Na Rybářce","Na Rymáni","Na Rynku","Na Salabce","Na Samotě","Na Schodech","Na Schůdkách","Na Sedlišti","Na Sekyrce","Na Selském","Na Seníku","Na Skalce","Na Skalách","Na Sklonku","Na Skále","Na Slatince","Na Slatinách","Na Slatinách","Na Slatinách","Na Slavíkově","Na Slovance","Na Slupi","Na Slupi","Na Smetance","Na Souvrati","Na Souvrati","Na Spojce","Na Spádu","Na Spáleništi","Na Srpečku","Na Srázu","Na Srážku","Na Staré","Na Staré Cestě","Na Staré Návsi","Na Staré Silnici","Na Staré Vinici","Na Stezce","Na Stezce","Na Struze","Na Stráni","Na Stráňkách","Na Stráži","Na Stráži","Na Strži","Na Strži","Na Stupních","Na Stárce","Na Stírce","Na Střelnici","Na Svahu","Na Svěcence","Na Sychrově","Na Sychrově","Na Sypkém","Na Sypčině","Na Sádce","Na Terase","Na Topolce","Na Topolce","Na Truhlářce","Na Tržišti","Na Tykačce","Na Táboře","Na Třebešíně","Na Třebešíně","Na Universitním Statku","Na Usedlosti","Na Vackově","Na Valech","Na Valentince","Na Vartě","Na Vaňhově","Na Veselí","Na Vidouli","Na Viktorce","Na Vinici","Na Viničce","Na Viničkách","Na Viničních Horách","Na Vinobraní","Na Vinohradu","Na Višňovce","Na Vlasačce","Na Vlastní Půdě","Na Vlastním","Na Vlku","Na Vlčovce","Na Volánové","Na Vrchmezí","Na Vrchmezí","Na Vrchmezí","Na Vrcholu","Na Vrchu","Na Vrchu","Na Vrchách","Na Vrchách","Na Vrstevnici","Na Vrstvách","Na Vršku","Na Vrškách","Na Vrších","Na Vrších","Na Vydrholci","Na Vyhlídce","Na Vypichu","Na Vypichu","Na Vysoké I","Na Vysoké I","Na Vysoké Ii","Na Vysočanských Vinicích","Na Vysočině","Na Václavce","Na Vápence","Na Vápenném","Na Vítězné Pláni","Na Výběžku","Na Výhledech","Na Výhonku","Na Výrovně","Na Výsledku I","Na Výsledku Ii","Na Výsluní","Na Výspě","Na Výspě","Na Výstupu","Na Výtoni","Na Výši","Na Výšince","Na Výšinách","Na Výšině","Na Věnečku","Na Větrníku","Na Větrníku","Na Větrově","Na Větru","Na Zahrádkách","Na Zatlance","Na Zavadilce","Na Zbořenci","Na Zderaze","Na Zedníkové","Na Zelené Louce","Na Zemance","Na Zkratce","Na Zlatnici","Na Zlaté","Na Zlíchově","Na Zlíchově","Na Zmrzlíku","Na Znělci","Na Zvoničce","Na Zábradlí","Na Záhonech","Na Zájezdu","Na Zámecké","Na Zámkách","Na Zámyšli","Na Zástřelu","Na Zástřelu","Na Zátorce","Na Zátorách","Na Závěji","Na Úbočí","Na Úhoru","Na Úlehli","Na Úseku","Na Úspěchu","Na Černé Hoře","Na Černé Strouze","Na Černém Vrchu","Na Července","Na Čečeličce","Na Čihadle","Na Čisté","Na Říháku","Na Šabatce","Na Šachtě","Na Šafránce","Na Šancích","Na Šedivé","Na Šejdru","Na Šejdru","Na Šmukýřce","Na Špejcharu","Na Špitálce","Na Špitálsku","Na Štamberku","Na Štěpnici","Na Šubě","Na Šumavě","Na Šutce","Na Švihance","Na Šťáhlavce","Na Žertvách","Na Žvahově","Naardenská","Nad Akcízem","Nad Akáty","Nad Alejí","Nad Belvederem","Nad Belárií","Nad Berounkou","Nad Bertramkou","Nad Botičem","Nad Bořislavkou","Nad Bořislavkou","Nad Branickým Pivovarem","Nad Brůdkem","Nad Brůdkem","Nad Buďánkami I","Nad Buďánkami Ii","Nad Buďánkami Iii","Nad Cementárnou","Nad Chaloupkami","Nad Chuchlí","Nad Cihelnou","Nad Dalejským Údolím","Nad Doly","Nad Dolíky","Nad Drahou","Nad Dubovým Mlýnem","Nad Dvorem","Nad Dálnicí","Nad Elektrárnou","Nad Elektrárnou","Nad Flajšnerkou","Nad Habrovkou","Nad Havlem","Nad Helmrovkou","Nad Hercovkou","Nad Hercovkou","Nad Hliníkem","Nad Hliníkem","Nad Horizontem","Nad Hradním Potokem","Nad Hradním Vodojemem","Nad Husovými Sady","Nad Hutěmi","Nad Hutěmi","Nad Hájem","Nad Hřištěm","Nad Jenerálkou","Nad Jetelkou","Nad Jezem","Nad Jezerkou","Nad Jordánkem","Nad Kajetánkou","Nad Kamínkou","Nad Kaplankou","Nad Kapličkou","Nad Kavalírkou","Nad Kazankou","Nad Kazínem","Nad Kelerkou","Nad Kesnerkou","Nad Klamovkou","Nad Klikovkou","Nad Klíčovem","Nad Kolonií","Nad Kolčavkou","Nad Komornickou","Nad Konečnou","Nad Konvářkou","Nad Kostelem","Nad Kotlaskou I","Nad Kotlaskou Ii","Nad Kotlaskou Iii","Nad Kotlaskou Iv","Nad Kotlaskou V","Nad Koulkou","Nad Koupadly","Nad Koupalištěm","Nad Košinkou","Nad Košíkem","Nad Krocínkou","Nad Krocínkou","Nad Královskou Oborou","Nad Kuliškou","Nad Kundratkou","Nad Kundratkou","Nad Kundratkou","Nad Křížkem","Nad Laurovou","Nad Lesem","Nad Lesním Divadlem","Nad Lesíkem","Nad Libeňským Nádražím","Nad Libeřským Potokem","Nad Libušským Potokem","Nad Libří","Nad Lomem","Nad Lomy","Nad Lukami","Nad Lávkou","Nad Malým Mýtem","Nad Manovkou","Nad Markytou","Nad Mazankou","Nad Meandry","Nad Mlynářkou","Nad Mlýnem","Nad Mlýnským Potokem","Nad Mohylou","Nad Mokřinou","Nad Mostem","Nad Motolskou Nemocnicí","Nad Motolskou Nemocnicí","Nad Mrázovkou","Nad Mušlovkou","Nad Mušlovkou","Nad Novou Libní","Nad Nuslemi","Nad Nádražím","Nad Nádrží","Nad Náhonem","Nad Náměstím","Nad Návsí","Nad Obcí I","Nad Obcí Ii","Nad Octárnou","Nad Odbočkou","Nad Ohradou","Nad Okrouhlíkem","Nad Olšinami","Nad Olšinami","Nad Ondřejovem","Nad Opatovem","Nad Ostrovem","Nad Pahorkem","Nad Palatou","Nad Panenskou","Nad Parkem","Nad Parkánem","Nad Paťankou","Nad Pentlovkou","Nad Petruskou","Nad Petynkou","Nad Plynovodem","Nad Podbabskou Skálou","Nad Pomníkem","Nad Popelkou","Nad Popelářkou","Nad Potůčkem","Nad Prahou","Nad Pramenem","Nad Primaskou","Nad Primaskou","Nad Propustí","Nad Pruhy","Nad Pískovnou","Nad Přehradou","Nad Přívozem","Nad Radotínem","Nad Rohatci","Nad Roklí","Nad Rokoskou","Nad Rokytkou","Nad Rybníkem","Nad Rybníkem","Nad Rybníčky","Nad Ryšánkou","Nad Rážákem","Nad Sadem","Nad Sady","Nad Santoškou","Nad Schody","Nad Skálou","Nad Slávií","Nad Slávií","Nad Smetankou","Nad Sokolovnou","Nad Soutokem","Nad Soutokem","Nad Splavem","Nad Spádem","Nad Spáleným Mlýnem","Nad Stanicí","Nad Starou Pískovnou","Nad Statkem","Nad Strakovkou","Nad Strouhou","Nad Strání","Nad Strání","Nad Studánkou","Nad Svahem","Nad Sýpkou","Nad Tejnkou","Nad Teplárnou","Nad Topoly","Nad Tratí","Nad Trnkovem","Nad Trojou","Nad Turbovou","Nad Třebešínem I","Nad Třebešínem Ii","Nad Třebešínem Ii","Nad Třebešínem Iii","Nad Třebešínem Iii","Nad Vavrouškou","Nad Vernerákem","Nad Vinicí","Nad Vinným Potokem","Nad Vinným Potokem","Nad Vinným Potokem","Nad Vinohradem","Nad Višňovkou","Nad Vltavou","Nad Vodovodem","Nad Vodovodem","Nad Vojenským Hřbitovem","Nad Vokolky","Nad Volyňkou","Nad Vrbami","Nad Vrstvami","Nad Vršovskou Horou","Nad Vsí","Nad Vysočany","Nad Václavkou","Nad Výpustí","Nad Výšinkou","Nad Zahradnictvím","Nad Zatáčkou","Nad Zavážkou","Nad Zbraslaví","Nad Zbrojnicí","Nad Zemankou","Nad Zemankou","Nad Zlatnicí","Nad Zlíchovem","Nad Záložnou","Nad Zámečkem","Nad Zámečnicí","Nad Zátiším","Nad Závodištěm","Nad Závěrkou","Nad Údolím","Nad Údolím Hvězd","Nad Úpadem","Nad Úvozem","Nad Úžlabinou","Nad Úžlabinou","Nad Šafránkou","Nad Šancemi","Nad Šauerovými Sady","Nad Šeberákem","Nad Šejdrem","Nad Šestikopy","Nad Šetelkou","Nad Štolou","Nad Šutkou","Nad Šálkovnou","Nad Šárkou","Nad Želivkou","Nad Žlábkem","Nademlejnská","Nadějovská","Narcisová","Naskové","Natanaelka","Navarova","Navigátorů","Navrátilova","Načeradecká","Načešická","Neapolská","Nebeského","Nebovidská","Nebozízek-Sady","Nebušická","Nechanická","Nechanského","Nechvalická","Nechvílova","Nechybova","Nedašovská","Nedbalova","Nedokončená","Nedokončená","Nedošínské","Nedražická","Nedvědická","Nedvědovo Nám.","Nedvědovo Náměstí","Nedvězská","Neffova","Nefritová","Neherovská","Nehvizdská","Nehvizdská","Nejdkova","Neklanova","Nekvasilova","Nekázanka","Nemocniční","Nemošická","Nepasické Nám.","Nepasické Náměstí","Nepelova","Nepilova","Nepomucká","Nepomuckých","Nepovolená","Nepravidelná","Neprůjezdná","Nepálská","Neratovická","Nerudova","Nerudova","Nesměřická","Nespecká","Nesvadbova","Netlucká","Netluky","Netolická","Netušilská","Netínská","Netřebická","Netřebská","Neumannova","Neustupného","Neužilova","Nevanova","Neveklovská","Newtonova","Nezamyslova","Nezdova","Nezvalova","Nečova","Nešporova","Nežárská","Nickerleho","Niederleho","Nikodémova","Nikoly Tesly","Nikoly Vapcarova","Niská","Nitranská","Nitranská","Nivnická","Nobelova","Norbertov","Norská","Nosická","Nosticova","Notečská","Noutonická","Nouzov","Nouzovské Nám.","Nouzovské Náměstí","Nouzová","Novgorodská","Novobohdalecká","Novoborská","Novoborská","Novochuchelská","Novodvorská","Novodvorská","Novodvorská","Novodvorská","Novohradská","Novohrádecká","Novohrádecká","Novolhotská","Novolipanská","Novomeského","Novomeského","Novomlýnská","Novopacká","Novopetrovická","Novorossijská","Novosibřinská","Novostrašnická","Novosuchdolská","Novosvětská","Novotného Lávka","Novoveská","Novoveská","Novovysočanská","Novovysočanská","Novovysočanská","Novozámecká","Novozámecká","Novoškolská","Novoštěrboholská","Nová","Nová Cesta","Nová Kolonie","Nová Ves","Nová Ves","Nová Šárka","Novákovo Nám.","Novákovo Náměstí","Novákových","Nové Domy","Nové Dvory","Nové Mlýny","Nové Náměstí","Nového","Nový Lesík","Nový Svět","Nový Zlíchov","Nový Zlíchov","Nupacká","Nuselská","Nuselská","Nučická","Nušlova","Nymburská","Nábř. Edvarda Beneše","Nábř. Edvarda Beneše","Nábř. Edvarda Beneše","Nábř. Kapitána Jaroše","Nábř. Kapitána Jaroše","Nábřežní","Nábřeží Edvarda Beneše","Nábřeží Edvarda Beneše","Nábřeží Edvarda Beneše","Nábřeží Kapitána Jaroše","Nábřeží Ludvíka Svobody","Náchodská","Nádražní","Nádražní","Nádvorní","Náhorní","Nákupní","Nám. 14. Října","Nám. 25. Března","Nám. Antonína Pecáka","Nám. Barikád","Nám. Bořislavka","Nám. Bratří Synků","Nám. Chuchelských Bojovníků","Nám. Chuchleských Bojovníků","Nám. Curieových","Nám. Dr. V. Holého","Nám. Franze Kafky","Nám. Generála Kutlvašra","Nám. Hrdinů","Nám. I. P. Pavlova","Nám. Interbrigády","Nám. Jana Palacha","Nám. Jana Palacha","Nám. Jiřího Berana","Nám. Jiřího Z Lobkovic","Nám. Jiřího Z Poděbrad","Nám. Jiřího Z Poděbrad","Nám. Josefa Machka","Nám. Kinských","Nám. Kinských","Nám. Mezi Zahrádkami","Nám. Na Balabence","Nám. Na Farkáně","Nám. Na Lužinách","Nám. Na Santince","Nám. Na Stráži","Nám. Omladiny","Nám. Osvoboditelů","Nám. Padlých","Nám. Pod Kaštany","Nám. Pod Lípou","Nám. Prezidenta Masaryka","Nám. Před Bateriemi","Nám. Republiky","Nám. Smiřických","Nám. Svatopluka Čecha","Nám. Svobody","Nám. U Lva","Nám. U Lípy Svobody","Nám. U Svatého Jiří","Nám. Winstona Churchilla","Nám. Českého Povstání","Nám.Organizace Spojených Národ","Nám.Plukovníka Vlčka","Náměstí 14. Října","Náměstí 25. Března","Náměstí Antonína Pecáka","Náměstí Barikád","Náměstí Bořislavka","Náměstí Bořislavka","Náměstí Bratří Jandusů","Náměstí Bratří Synků","Náměstí Chuchelských Bojovníků","Náměstí Curieových","Náměstí Dr. Václava Holého","Náměstí Generála Kutlvašra","Náměstí Hrdinů","Náměstí I. P. Pavlova","Náměstí Interbrigády","Náměstí Jana Palacha","Náměstí Jana Palacha","Náměstí Jiřího Berana","Náměstí Jiřího Z Lobkovic","Náměstí Jiřího Z Poděbrad","Náměstí Jiřího Z Poděbrad","Náměstí Josefa Machka","Náměstí Junkových","Náměstí Kinských","Náměstí Kinských","Náměstí Kosmonautů","Náměstí Mezi Zahrádkami","Náměstí Míru","Náměstí Na Balabence","Náměstí Na Farkáně","Náměstí Na Lužinách","Náměstí Na Santince","Náměstí Na Stráži","Náměstí Omladiny","Náměstí Organizace Spojených Národů","Náměstí Osvoboditelů","Náměstí Padlých","Náměstí Plukovníka Vlčka","Náměstí Pod Emauzy","Náměstí Pod Kaštany","Náměstí Pod Lípou","Náměstí Prezidenta Masaryka","Náměstí Protifašistických Bojovníků","Náměstí Před Bateriemi","Náměstí Přátelství","Náměstí Republiky","Náměstí Republiky","Náměstí Smiřických","Náměstí Sv. Petra A Pavla","Náměstí Svatopluka Čecha","Náměstí Svobody","Náměstí U Lva","Náměstí U Lípy Svobody","Náměstí U Svatého Jiří","Náměstí Winstona Churchilla","Náměstí Zdenky Braunerové","Náměstí Českého Povstání","Náplavní","Náprstkova","Národní","Národní","Národní Obrany","Národních Hrdinů","Nárožní","Násirovo Nám.","Násirovo Náměstí","Nástrojářská","Návazná","Návršní","Návětrná","Návětrná","Názovská","Nýdecká","Nýrská","Nýřanská","Němčická","Něvská","Obchodní","Obchodní Nám.","Obchodní Náměstí","Obilní","Objízdná","Oblouková","Obora Hvězda","Oborská","Obrataňská","Obrovského","Obsiny","Obslužná","Obvodová","Obědovická","Obětí 6. Května","Obětí 6.Května","Ocelkova","Ocelářská","Ocelářská","Ocelíkova","Ochozská","Ochranovská","Od Rozcestí","Od Vysoké","Od Školy","Odboje","Odborů","Odbočná","Oddechová","Oddělená","Oderská","Odlehlá","Ohmova","Ohnivcova","Ohnišťanská","Ohradní","Ohradní","Ohradská","Ohradské Nám.","Ohradské Náměstí","Ohrobecká","Okenská","Okořská","Okrajní","Okrajová","Okrajová","Okrasná","Okrouhlická","Okrouhlíkova","Okrová","Okruhová","Okružní","Okružní","Okřínecká","Olbrachtova","Olbramovická","Oldřichova","Olešnická","Olešská","Olgy Havlové","Olivova","Olomoucká","Olympijská","Olšanská","Olšanské Nám.","Olšanské Náměstí","Olšovická","Olšová","Olštýnská","Omladinářů","Omská","Ondřejovská","Ondříčkova","Ondříčkova","Onšovecká","Opata Konráda","Opatovická","Opatovská","Opatovská","Opatřilka","Opatřilka","Opařanská","Oplanská","Opletalova","Opolská","Opočenská","Opočínská","Opravářská","Opuková","Opálkova","Opálová","Oravská","Ordovická","Orebitská","Orelská","Orlická","Ortenovo Náměstí","Osadní","Osamocená","Osecká","Osetá","Osická","Osiková","Osinalická","Osluněná","Osmého Listopadu","Osnická","Osnická","Osnická","Ostravická","Ostravská","Ostromečská","Ostrov Štvanice","Ostrovní","Ostrovského","Ostruženská","Ostružinová","Ostrá","Ostrčilovo Nám.","Ostrčilovo Náměstí","Ostředecká","Ostřicová","Osvobození","Osvětová","Otakara Vrby","Otakarova","Otavova","Otavova","Otavská","Otevřená","Otická","Otlíkovská","Otopašská","Otovická","Otradovická","Ottova","Otvovická","Oty Pavla","Otínská","Otěšínská","Ouholická","Ouhrabkova","Ovenecká","Ovenecká","Ovesná","Ovocná","Ovocnářská","Ovocný Trh","Ovsíková","Oválová","Ovčárská","Ovčí Hájek","Ořechová","Ořešská","Paběnická","Paběnická","Pacajevova","Paceřická","Pacholíkova","Pacovská","Paculova","Padovská","Pajerova","Pakoměřická","Palackého","Palackého Nám.","Palackého Náměstí","Palmetová","Palmovka","Paláskova","Pampelišková","Pancířova","Panelová","Panenky","Panenská","Pankrácké Náměstí","Panská","Panská Zahrada","Panský Dvůr","Panuškova","Paprsková","Papírenská","Papírníkova","Parašutistů","Pardubická","Park Přátelství","Parková","Parléřova","Parléřova","Parmská","Paroplavební","Partyzánská","Pasecká","Pasteurova","Pastevců","Patočkova","Patočkova","Patočkova","Pavelkova","Pavla Beneše","Pavla Švandy Ze Semčic","Pavlická","Pavlišovská","Pavlovická","Pavlovská","Pavlíkova","Pavrovského","Paříkova","Pařízkova","Pařížská","Pařížská","Paškova","Paťanka","Peceradská","Pecharova","Pechlátova","Pechlátova","Pecháčkova","Peckova","Pejevové","Pekařova","Pekařova","Pekařská","Pekárenská","Pekárkova","Pelclova","Pelechovská","Pelhřimovská","Pelikánova","Pelléova","Pelléova","Pelnářova","Pelušková","Pelyňková","Pelzova","Penízovková","Perlitová","Perlitová","Perlová","Pernerova","Pernerova","Peroutkova","Peroutkova","Peroutkova","Peroutkova","Perspektivní","Pertoldova","Perucká","Perunova","Perštejnská","Petra Bezruče","Petra Rezka","Petra Slezáka","Petrbokova","Petrklíčová","Petrohradská","Petrovická","Petrovská","Petrská","Petrské Nám.","Petrské Náměstí","Petráčkova","Petržílkova","Petržílova","Petýrkova","Petříkova","Petříkovská","Petřínská","Petřínská","Petřínské Sady","Petřínské Sady","Pevnostní","Pečárková","Pešinova","Peškova","Pešlova","Pešova","Peštukova","Pešákova","Picassova","Pickova","Pihelská","Pikovická","Pikrtova","Pilařská","Pilníkovská","Pilotů","Pilovská","Pilovská","Pilská","Pirinská","Pirnerova","Pitkovická","Pitterova","Pivcova","Pivovarnická","Pivovarská","Pivoňková","Pištěkova","Placina","Placina","Plajnerova","Plamínkové","Plaská","Platanová","Platnéřská","Platónova","Plavecká","Plavínová","Plačická","Plaňanská","Plevenská","Plečnikova","Plhovská","Plickova","Plkovská","Plojharova","Ploskovická","Ploučnická","Plovdivská","Plošná","Ploštilova","Plukovníka Mráze","Plumlovská","Plutova","Plynární","Plzeňská","Plzeňská","Plzeňská","Plzeňská","Plzeňská","Plánická","Pláničkova","Poberova","Pobočná","Pobořská","Poběžovická","Pobřežní","Pobřežní Cesta","Pod Akáty","Pod Altánem","Pod Altánem","Pod Andělkou","Pod Areálem","Pod Aritmou","Pod Ateliéry","Pod Bahnivkou","Pod Balkánem","Pod Barvířkou","Pod Bateriemi","Pod Baštami","Pod Belvederem","Pod Belárií","Pod Beránkem","Pod Beránkou","Pod Betání","Pod Bohdalcem I","Pod Bohdalcem I","Pod Bohdalcem Ii","Pod Brentovou","Pod Bruskou","Pod Buďánkou","Pod Bání","Pod Březinou","Pod Chaloupkami","Pod Chodovem","Pod Cihelnou","Pod Cihelnou","Pod Cukrákem","Pod Císařkou","Pod Dlážděnkou","Pod Domky","Pod Drinopolem","Pod Dráhou","Pod Duby","Pod Dvorem","Pod Dálnicí","Pod Děkankou","Pod Děkankou","Pod Děvínem","Pod Farou","Pod Fialkou","Pod Formankou","Pod Fořtem","Pod Garážemi","Pod Habrovkou","Pod Habrovou","Pod Haltýřem","Pod Harfou","Pod Havlínem","Pod Havránkou","Pod Havránkou","Pod Hliništěm","Pod Hloubětínskou Zastávkou","Pod Hláskem","Pod Homolkou","Pod Hotelem","Pod Hořavkou","Pod Hrachovkou","Pod Hradbami","Pod Hradem","Pod Hranicí","Pod Hrází","Pod Hvězdou","Pod Hvězdárnou","Pod Hvězdárnou","Pod Hybšmankou","Pod Hájem","Pod Hájkem","Pod Hájovnou","Pod Hřbitovem","Pod Hřištěm","Pod Jalovým Dvorem","Pod Jankovem","Pod Jarovem","Pod Javory","Pod Jiráskovou Čtvrtí","Pod Juliskou","Pod Kamínkou","Pod Kapličkou","Pod Kapličkou","Pod Karlovarskou Silnicí","Pod Karlovem","Pod Kavalírkou","Pod Kaštany","Pod Kaštany","Pod Kesnerkou","Pod Kladenskou Silnicí","Pod Klamovkou","Pod Klapicí","Pod Klaudiánkou","Pod Klikovkou","Pod Kopcem","Pod Kostelem","Pod Kotlaskou","Pod Kotlářkou","Pod Kotlářkou","Pod Kotlářkou","Pod Krejcárkem","Pod Krocínkou","Pod Královkou","Pod Krčským Lesem","Pod Kulturním Domem","Pod Kynclovkou","Pod Křížem","Pod Křížkem","Pod Labuťkou","Pod Lahovskou","Pod Lesem","Pod Lesíkem","Pod Letištěm","Pod Lečí","Pod Lipami","Pod Lipkami","Pod Lisem","Pod Lisem","Pod Lochkovem","Pod Lomem","Pod Lysinami","Pod Lázní","Pod Marjánkou","Pod Markétou","Pod Martinem","Pod Meliškou","Pod Mlýnkem","Pod Mohylou","Pod Mostem","Pod Napětím","Pod Nouzovem","Pod Novou Školou","Pod Novým Lesem","Pod Novým Lesem","Pod Nuselskými Schody","Pod Náměstím","Pod Náplavkou","Pod Náplavkou","Pod Náspem","Pod Návsí","Pod Oborou","Pod Ovčínem","Pod Ořechovkou","Pod Palatou","Pod Palírkou","Pod Parukářkou","Pod Paťankou","Pod Paťankou","Pod Pekařkou","Pod Pekárnami","Pod Petřinami","Pod Plynojemem","Pod Plynojemem","Pod Plynojemem","Pod Plískavou","Pod Poštou","Pod Pramenem","Pod Prodejnou","Pod Průsekem","Pod Písečnou","Pod Přehradou","Pod Přesypem","Pod Radnicí","Pod Rapidem","Pod Rapidem","Pod Rapidem","Pod Remízkem","Pod Rovinou","Pod Rozvodnou","Pod Rybníkem","Pod Rybníčkem","Pod Sady","Pod Salabkou","Pod Sirénou","Pod Skalkou","Pod Skalou","Pod Sklenářkou","Pod Slovany","Pod Smetankou","Pod Sokolovnou","Pod Soutratím","Pod Spalovnou","Pod Spiritkou","Pod Spravedlností","Pod Srázem","Pod Stadiony","Pod Stanicí","Pod Starou Školou","Pod Starákem","Pod Statky","Pod Strašnickou Vinicí","Pod Strojírnami","Pod Strání","Pod Studánkou","Pod Stupni","Pod Stárkou","Pod Stárkou","Pod Stírkou","Pod Svahem","Pod Sychrovem I","Pod Sychrovem I","Pod Sychrovem I","Pod Sychrovem Ii","Pod Sídlištěm","Pod Terasami","Pod Terebkou","Pod Topoly","Pod Tratí","Pod Turnovskou Tratí","Pod Turnovskou Tratí","Pod Táborem","Pod Táborem","Pod Třebešínem","Pod Třešněmi","Pod Třešňovkou","Pod Urnovým Hájem","Pod Valem","Pod Vartou","Pod Vavřincem","Pod Velkým Hájem","Pod Viaduktem","Pod Vidoulí","Pod Viktorkou","Pod Vilami","Pod Vinicemi","Pod Vinicí","Pod Vinohradem","Pod Višňovkou","Pod Vlachovkou","Pod Vlastním Krovem","Pod Vlkem","Pod Vodojemem","Pod Vodovodem","Pod Vodárenskou Věží","Pod Vrchem","Pod Vrcholem","Pod Vrstevnicí","Pod Vrškem","Pod Vrškem","Pod Vršovickou Vodárnou I","Pod Vršovickou Vodárnou Ii","Pod Vršovickou Vodárnou Iii","Pod Vsí","Pod Vyhlídkou","Pod Vysokou","Pod Vysokou Mezí","Pod Vysílačkou","Pod Vyšehradem","Pod Václavem","Pod Vítkovem","Pod Výtopnou","Pod Výšinkou","Pod Větrolamem","Pod Větrovem","Pod Věží","Pod Zahradami","Pod Zahrádkami","Pod Zastávkou","Pod Zatáčkou","Pod Zbuzany","Pod Zemankou","Pod Zličínem","Pod Zvonařkou","Pod Zvoničkou","Pod Zámečkem","Pod Závěrkou","Pod Útesy","Pod Čertovou Skalou","Pod Čihadlem","Pod Čimickým Hájem","Pod Šancemi","Pod Školou","Pod Šmukýřkou","Pod Špejcharem","Pod Špitálem","Pod Štěpem","Pod Žvahovem","Podbabská","Podbabská","Podbělohorská","Podbělová","Podchýšská","Podedvorská","Podhajská Pole","Podholí","Podhorská","Podhořská","Podivínská","Podjavorinské","Podjezd","Podkovářská","Podkrkonošská","Podkrkonošských Tkalců","Podle Kačerova","Podle Lomu","Podle Lomu","Podle Náhonu","Podle Náhonu","Podle Sadů","Podle Trati","Podlesek","Podleská","Podlesní","Podlešínská","Podlibská","Podlipného","Podlišovská","Podlužanská","Podléšková","Podnikatelská","Podnádražní","Podohradská","Podolanská","Podolská","Podolská","Podolské Nábř.","Podolské Nábřeží","Podolské Schody","Podpěrova","Podskalská","Podsychrovská","Podvinný Mlýn","Podvinný Mlýn","Podzámecká","Podéšťova","Poděbradova","Poděbradova","Poděbradská","Poděbradská","Poděbradská","Podůlší","Pohledná","Pohnertova","Pohořelec","Pohořelec","Pokojná","Pokorného","Pokřivená","Polabská","Polabská","Polaneckého","Polední","Polední","Polenská","Polepská","Poleradská","Polesná","Polešovická","Politických Vězňů","Poličanská","Poljanovova","Polní","Polovnická","Polská","Polygrafická","Polákova","Poláčkova","Políkenská","Polívkova","Pomezní","Pomněnková","Pomořanská","Ponrepova","Poplužní","Popovická","Popovova","Poslední","Pospíchalova","Pospíšilova","Postlova","Postranní","Postupická","Postřekovská","Postřižínská","Postřižínská","Potocká","Potoční","Pouchova","Poupětova","Poustka","Povltavská","Povltavská","Povltavská","Povodňová","Pozdeňská","Poznaňská","Počeradská","Počernická","Počernická","Počátecká","Počátecká","Poříčanská","Poříčanská","Poříčská","Pošepného Nám.","Pošepného Náměstí","Poštovská","Požárnická","Pplk. Nováčka","Pplk. Sochora","Prachatická","Prachnerova","Prachovická","Prachovská","Pramenná","Pramenná","Pravoúhlá","Pravská","Pravá","Prašná","Pražská","Pražského","Pražského Povstání","Pražský Okruh","Pražákovská","Prefátova","Preislerova","Preláta","Prelátská","Preslova","Primátorská","Probluzská","Proboštská","Procházkova","Prodloužená","Prokofjevova","Prokopka","Prokopova","Prokopovo Nám.","Prokopovo Náměstí","Prokopových","Prokopská","Prokopské Údolí","Prokopské Údolí","Prorektorská","Prosecká","Prosecká","Prosecká","Prosincová","Prosluněná","Prosná","Prostřední","Proti Proudu","Protilehlá","Protivínská","Proutěná","Prouzova","Provaznická","Provozní","Prunéřovská","Prusická","Prusíkova","Prušánecká","Prvního Pluku","Prvního Pluku","Prvomájová","Prácheňská","Práčská","Průběžná","Průchodní","Průchova","Průhledová","Průhonek","Průhonek","Průhonická","Průhonská","Průjezdná","Průmyslová","Průmyslová","Průmyslová","Průmyslová","Průtažní","Průčelní","Průškova","Psohlavců","Pstružná","Psárská","Ptáčnická","Puchmajerova","Puchmajerova","Pujmanové","Pujmanové","Pujmanové","Purkrabská","Purkyňova","Putimská","Pučova","Puškinovo Nám.","Puškinovo Náměstí","Pyšelská","Pálavská","Pálkařská","Pámelníková","Pánkova","Pátkova","Pávovské Náměstí","Písecká","Píseckého","Písečná","Pískařská","Pískovcová","Pískovna","Písková","Písnická","Písnická","Písnické Zahrady","Písčitá","Píškova","Píšovická","Pöslova","Púchovská","Púchovská","Pýchavková","Pýrová","Pěnkaví","Pěstitelská","Pětidomí","Pětipeského","Pěší","Přecechtělova","Přechodní","Před Cibulkami","Před Dráhou","Před Mosty","Před Nádražím","Před Oborou","Před Rybníkem","Před Skalkami I","Před Skalkami Ii","Před Skálou","Před Sokolovnou","Před Tratí","Před Ústavem","Předbořská","Předměřická","Přední","Předpolní","Předposlední","Předvoje","Předvoje","Předškolní","Přeletová","Přeloučská","Přemyslova","Přemyslovská","Přemyslovská","Přemyšlenská","Přerušená","Přesličková","Přespolní","Přetlucká","Přeučilova","Převoznická","Přezletická","Přeštická","Přeštínská","Přeťatá","Při Hranici","Při Hranici","Při Trati","Přibyslavská","Přibíkova","Přistoupimská","Přádova","Přátelství","Příborská","Příbramská","Příběnická","Příchovická","Přídolská","Příkrá","Přílepská","Přímské Nám.","Přímské Náměstí","Přímá","Přímětická","Přípotoční","Přípřežní","Přírodní","Přístavní","Přívorská","Přívozní","Příčka","Příčná","Pšeničná","Pšenčíkova","Pšovanská","Pštrossova","Půdova","Půlkruhová","Půlnoční","Půtova","R.A. Dvorského","Rabasova","Rabyňská","Rackova","Rackova Zahrada","Radbuzská","Radechovská","Radešovská","Radhošťská","Radhošťská","Radimova","Radimovická","Radimská","Radiová","Radiová","Radistů","Radkovská","Radlická","Radlická","Radlická","Radnické Schody","Radomská","Radonická","Radostavická","Radostná","Radotínská","Radotínská","Radouňova","Radouňova","Radouňova","Radova","Radovská","Radošovická","Radvanická","Radúzova","Radčina","Radějovská","Raffaelova","Raichlova","Raisova","Rajhradská","Rajmonova","Rajská","Rakousova","Rakovnická","Rakovského","Randova","Ranská","Ratajova","Ratajská","Ratbořská","Ratibořická","Ratibořská","Ratibořská","Ravennská","Račická","Račiněveská","Rašilovova","Rašova","Rašovická","Rašovská","Rašínovo Nábř.","Rašínovo Nábř.","Rašínovo Nábřeží","Rašínovo Nábřeží","Rašínská","Ražická","Reinerova","Rejchova","Rejskova","Rekreační","Rektorská","Rembrandtova","Remízková","Renoirova","Resslova","Revoluce","Revoluční","Revoluční","Rezedová","Rezlerova","Rečkova","Richtrova","Riegrova","Riegrovy Sady","Rilská","Ringhofferova","Ringhofferova","Rižská","Roblínská","Rochovská","Rochovská","Rodopská","Rodovská","Rodvinovská","Roentgenova","Rohanovská","Rohanské Nábřeží","Rohanský Ostrov","Rohatecká","Rohenická","Rohlovská","Rohová","Rohozecká","Rohožnická","Roháčova","Roithova","Rojická","Roklova","Rokycanova","Rokycanská","Rokytnická","Rokytná","Rolnická","Rolní","Romaina Rollanda","Romana Blahníka","Ronalda Reagana","Ronešova","Ronkova","Ronovská","Rooseveltova","Rorýsová","Rosečská","Rosická","Rostislavova","Rostoklatská","Rostovská","Rotavská","Rotenská","Roudnická","Rousovická","Rousínovská","Rovenská","Rovnoběžná","Rovná","Rozdělená","Rozdělovská","Rozhovická","Rozkošného","Rozkošská","Rozmarýnová","Rozrazilová","Roztocká","Roztylská","Roztylské Náměstí","Roztylské Sady","Rozvadovská","Rozvodova","Rozvojová","Rozárčina","Rozýnova","Rozšířená","Ročovská","Rošických","Roškotova","Rošovická","Rožmberská","Rožmitálská","Rožnovská","Rožďalovická","Rtyňská","Rubensova","Rubeška","Rubešova","Rubličova","Rubínová","Rudečská","Rudníkovská","Rudolfa Holeky","Rudoltická","Rudoltická","Rujanská","Rumburská","Rumunská","Rumunská","Ruprechtická","Ruská","Ruská","Ruzyňská","Ruzyňská","Ruzyňské Schody","Ružinovská","Rybalkova","Rybalkova","Rybalkova","Rybničná","Rybná","Rybova","Rybářská","Rybízová","Rychnovská","Rychtáře Petříka","Rychtáře Šimona","Rychtářská","Rypkova","Rytířova","Rytířská","Ryzcová","Ryzlinková","Ryšánkova","Rájecká","Rámová","Rápošovská","Rážova","Révová","Rýmařovská","Rýnská","Rýznerova","Růženínová","Růženínská","Růženínská","Růžová","S. K. Neumanna","Sabinova","Sadařská","Sadová","Sadská","Sadská","Sady Bratří Čapků","Safírová","Salabova","Salačova","Salmovská","Salvátorská","Samcova","Samohelova","Samota U Podleského Rybníka","Sarajevská","Saratovská","Sartoriova","Sasanková","Saská","Satalická","Saturnova","Saudkova","Sauerova","Saveljevova","Savojská","Sazečská","Sazečská","Sazovická","Sbíhavá I","Sbíhavá Ii","Schnirchova","Schodišťová","Schodová","Schoellerova","Schoellerova","Schulhoffova","Schwaigerova","Schwarzenberská","Schöfflerova","Sdružení","Sechterova","Sedlecká","Sedlovická","Sedloňovská","Sedlčanská","Sedmidomky","Sedmidomky","Sedmikrásková","Sedmnáctého Listopadu","Seidlova","Seifertova","Sekaninova","Sekeřická","Sekorova","Selmická","Selská","Selských Baterií","Semanského","Semická","Semilská","Semilská","Seminární","Seminářská","Seminářská Zahrada","Semonická","Semtínská","Semčická","Sendražická","Senegalská","Senohrabská","Senovážná","Senovážné Nám.","Senovážné Náměstí","Senožatská","Sestupná","Sestupná","Setbová","Sevastopolská","Severní I","Severní Ii","Severní Iii","Severní Iv","Severní Ix","Severní V","Severní Vi","Severní Vii","Severní Viii","Severní X","Severní Xi","Severovýchodní I","Severovýchodní Ii","Severovýchodní Iii","Severovýchodní Iv","Severovýchodní V","Severovýchodní Vi","Severozápadní I","Severozápadní Ii","Severozápadní Iii","Severozápadní Iv","Severozápadní V","Severozápadní Vi","Severýnova","Sevřená","Seydlerova","Sezemická","Sezemínská","Sezimova","Sečská","Sibeliova","Sibiřské Nám.","Sibiřské Náměstí","Sicherova","Sichrovského","Siemensova","Silurská","Sinkulova","Sinkulova","Sitteho","Siwiecova","Skalecká","Skalnatá","Skalnická","Skalní","Skalská","Skaláků","Skandinávská","Skandinávská","Skautská","Sklenská","Skloněná","Sklářská","Skokanská","Skorkovská","Skorkovská","Skotská","Skořepka","Skořicová","Skryjská","Skupova","Skuteckého","Skálova","Skřivanova","Skřivanská","Skřivánčí","Sladkovského Nám.","Sladkovského Náměstí","Sladovnická","Slancova","Slaná","Slapská","Slatinová","Slatinská","Slatiny","Slatiňanská","Slavatova","Slaviborské Nám.","Slaviborské Náměstí","Slavická","Slavičí","Slavičínská","Slavníkova","Slavojova","Slavonická","Slavíkova","Slavíkova","Slavíkova","Slavínského","Slavíčkova","Slavětínská","Slepá I","Slepá Ii","Slezanů","Slezská","Slezská","Sliačská","Sliačská","Slibná","Slinková","Slivenecká","Slovanský Ostrov","Slovačíkova","Slovenská","Slovenská","Slovinská","Slunečnicová","Slunečná","Sluneční","Sluneční Nám.","Sluneční Náměstí","Slunná","Sluštická","Služeb","Služeb","Služská","Sládkova","Sládkovičova","Slámova","Slánská","Slávy Horníka","Slévačská","Slévačská","Slévačská","Slídová","Slívová","Smaragdová","Smetanovo Nábř.","Smetanovo Nábřeží","Smetáčkova","Smidarská","Smikova","Smiřická","Smiřického","Smolenská","Smolkova","Smolíkova","Smotlachova","Smotlachova","Smrková","Smrčinská","Smržovská","Smržová","Smíchovská","Smíchovská","Smíchovská","Smírná","Snopkova","Sněmovní","Sněženková","Sněžná","Sobolákova","Soborská","Sobotecká","Sobínská","Soběslavova","Soběslavská","Sobětická","Sobětušská","Soběšínská","Sochařská","Socháňova","Sodomkova","Sofijské Nám.","Sofijské Náměstí","Sojkovská","Sojovická","Sojčí","Sojčí","Sokolovská","Sokolovská","Sokolovská","Sokolovská","Sokolská","Sokratova","Solidarity","Solnická","Solná","Sopotská","Sosnovecká","Souběžná I","Souběžná Ii","Souběžná Iii","Souběžná Iv","Soudní","Soukalova","Soukenická","Soumarská","Sousední","Sousední","Sousedská","Sousedíkova","Soustružnická","Soustružnická","Souvratní","Součkova","Sovenická","Sovova","Sovákova","Soví Vršek","Spinozova","Spiritka","Splavná","Spodní","Spojařů","Spojenců","Spojená","Spojná","Spojovací","Spojovací","Spojovací","Spojovací","Spojová","Společná","Spolská","Spolupráce","Sportovců","Sportovců","Sportovní","Spotřebitelská","Spořická","Spořilovská","Spytihněvova","Spádná","Spádová","Spálená","Spálená","Spálený Mlýn","Srbova","Srbská","Srbínská","Srnečkova","Srnčí","Srnčí","Srpnová","Srázná","Stachova","Stadická","Stadionová","Stadiónová","Stallichova","Stamicova","Staniční","Starobylá","Starochodovská","Starochuchelská","Starodejvická","Starodubečská","Starodvorská","Staroklánovická","Starokolínská","Starokošířská","Starolázeňská","Staromlýnská","Staromodřanská","Staroměstské Nám.","Staroměstské Náměstí","Staropacká","Staropramenná","Starostrašnická","Starostřešovická","Starosuchdolská","Staroújezdská","Staročeská","Stará Cesta","Stará Náves","Stará Obec","Stará Spojovací","Stará Stodůlecká","Staré Nám.","Staré Náměstí","Staré Zámecké Schody","Staré Zámecké Schody","Starého","Starý Lis","Statenická","Statková","Stavbařů","Stavební","Stavitelská","Stavovská","Staňkova","Staňkovka","Staňkovská","Stehlíkova","Steinerova","Stejskalova","Stiessova","Stinkovská","Stochovská","Stodůlecká","Stojická","Stoličkova","Stoliňská","Stoupající","Stoupající","Stradonická","Strahovská","Strahovské Nádvoří","Strakatého","Strakonická","Strakonická","Strakonická","Strakonická","Strakonická","Strakonická","Strakošová","Strančická","Stratovská","Strašnická","Strašnická","Strašovská","Strašínská","Strmá","Strmý Vrch","Strnadova","Strnady","Strojická","Strojnická","Strojírenská","Stromovka","Stromovka","Stropnická","Stropnická","Stropnická","Strossmayerovo Nám.","Strossmayerovo Náměstí","Strouhalova","Stroupežnického","Struhařovská","Strunkovská","Stružky","Stružná","Strážkovická","Strážnická","Strážní","Strážovská","Stržná","Studenecká","Studentská","Studená","Studnická","Studničkova","Studniční","Studánková","Stulíková","Stupická","Stupkova","Stupská","Stupňová","Stádlecká","Stárkova","Stýblova","Střední","Středohorská","Středová","Střekovská","Střelecký Ostrov","Střelečská","Střelničná","Střelničná","Střemchová","Střešovická","Střešovická","Střimelická","Stříbrná","Stříbrského","Stříbrského","Střížkovská","Střížkovská","Střížkovská","Suchardova","Suchdolská","Suchdolská","Suchdolská","Suchdolské Nám.","Suchdolské Náměstí","Suchý Vršek","Sudkova","Sudoměřská","Sudějovická","Sukova","Sulanského","Sulická","Sulická","Sulova","Sulovická","Sumova","Suppého","Suttnerové","Sušická","Sušilova","Svahová","Svatavina","Svatojánská","Svatoplukova","Svatoslavova","Svatovítská","Svatovítská","Svatoňovická","Svažitá","Svijanská","Svitavská","Svitákova","Svobodova","Svobodova","Svojetická","Svojsíkova","Svojšická","Svojšovická","Svornosti","Svratecká","Svárovská","Svátkova","Svážná","Svépomoci","Svépomocná","Svépravická","Svépravická","Svídnická","Svěceného","Světická","Světova","Světská","Sychrovská","Symfonická","Synkovická","Synkovská","Syrská","Sádky","Sádovská","Sámova","Sárská","Sárská","Sárská","Sázavská","Sáňkařská","Sídlištní","Sídlištní","Sídliště","Súdánská","Sýkorčí","Sýkovecká","Tachlovická","Tachovská","Tachovské Nám.","Tachovské Náměstí","Tadrova","Tajovského","Talafúsova","Talichova","Talmberská","Tanvaldská","Tasovská","Tatarkova","Tatranská","Tauerova","Tauferova","Taussigova","Tavolníková","Tařicová","Taškentská","Technická","Technologická","Tehovská","Tejnická","Tejnka","Telčská","Templová","Tenisová","Teplická","Teplárenská","Teplárenská","Terasovitá","Tererova","Terezínská","Terronská","Tesaříkova","Tetínská","Theinova","Thomayerova","Thunovská","Thurnova","Thákurova","Thámova","Tibetská","Tichnova","Tichnova","Tichonická","Tichá","Tichého","Tigridova","Tikovská","Tilleho Nám.","Tilleho Náměstí","Tilschové","Tiskařská","Tismická","Tišická","Tlumačovská","Tlustého","Tobrucká","Tolstého","Tomanova","Tomická","Tomkova","Tomsova","Tomáškova","Tomášská","Tomíčkova","Topasová","Topolová","Toruňská","Toulovská","Toušeňská","Toušická","Toužimská","Toužimská","Tovarova","Tovačovského","Tovární","Točenská","Točitá","Trabantská","Trachtova","Trampotova","Travnatá","Travná","Travná","Trenčínská","Trhanovské Náměstí","Trmická","Trnavská","Trnavská","Trnitá","Trnkovo Nám.","Trnkovo Náměstí","Trnková","Trnovanská","Trní","Trocnovská","Troilova","Trojanova","Trojanův Mlýn","Trojdílná","Trojická","Trojmezní","Trojmezní","Trojská","Trojská","Trojská","Trojská","Troskovická","Trousilova","Truhlářka","Truhlářova","Truhlářská","Trutnovská","Tryskovická","Tryskovická","Trytova","Trávnická","Trávníčkova","Tréglova","Tržiště","Tuchoměřická","Tuchorazská","Tuchotická","Tuháňská","Tuklatská","Tulešická","Tulipánová","Tulkova","Tulská","Tunelářů","Tuniská","Tupolevova","Turgeněvova","Turistická","Turkmenská","Turkovická","Turkovská","Turnovská","Turnovského","Turská","Turínská","Tusarova","Tuřická","Tušimická","Tužebníková","Tvrdonická","Tvrdého","Tychonova","Tylišovská","Tylovická","Tylovo Nám.","Tylovo Náměstí","Tymiánová","Tyrkysová","Tyršova","Táboritská","Táborská","Tádžická","Táhlá","Tálínská","Türkova","Týmlova","Týmlova","Týn","Týnecká","Týnská","Týnská Ulička","Týřovická","Tělovýchovná","Těšnov","Těšovická","Těšíkova","Těšínská","Třanovského","Třebanická","Třebechovická","Třebenická","Třebešovská","Třebihošťská","Třebohostická","Třebonická","Třeboradická","Třebotovská","Třeboňská","Třebízského","Třebějická","Třebětínská","Třešňová","Třešňová","Třešňová","Třinecká","Třtinová","Třídomá","Třístoličná","Tůmova","U Akademie","U Akátů","U Albrechtova Vrchu","U Andělky","U Arborky","U Bakaláře","U Balabenky","U Bazénu","U Bažantnice","U Berounky","U Beránky","U Besedy","U Blaženky","U Boroviček","U Botiče","U Botiče","U Božích Bojovníků","U Branek","U Bruských Kasáren","U Brusnice","U Brusnice","U Bubce","U Bulhara","U Bulhara","U Bílého Mlýnku","U Břehu","U Chaloupek","U Chmelnice","U Chodovského Hřbitova","U Cibulky","U Cihelny","U Cikánky","U Cukrovaru","U Císařské Cesty","U Dejvického Rybníčku","U Demartinky","U Divadla","U Divadla","U Dobešky","U Dobráků","U Dobráků","U Dobřenských","U Domu Služeb","U Drahaně","U Druhé Baterie","U Druhé Baterie","U Drupolu","U Družstev","U Družstva Ideál","U Družstva Klid","U Družstva Práce","U Družstva Práce","U Družstva Repo","U Družstva Tempo","U Družstva Život","U Dráhy","U Dráhy","U Drážky","U Drůbežárny","U Dubečské Tvrze","U Dubu","U Dvojdomů","U Dvora","U Dvou Srpů","U Dálnice","U Dívčích Hradů","U Dívčích Hradů","U Děkanky","U Dělnického Cvičiště","U Dětského Domova","U Dětského Hřiště","U Elektry","U Elektry","U Elektrárny","U Floriána","U Fořta","U Gabrielky","U Garáží","U Golfu","U Gymnázia","U Habeše","U Habrovky","U Hadovky","U Harfy","U Hasičské Zbrojnice","U Hasičské Zbrojnice","U Havlíčkových Sadů","U Hellady","U Hercovky","U Hliníku","U Hodin","U Homolky","U Hostavického Potoka","U Hostivařského Nádraží","U Hostivařského Nádraží","U Hotelu","U Hranic","U Hrnčířského Rybníka","U Hrocha","U Hrušky","U Hráze","U Hudební Školy","U Hvozdu","U Hvězdy","U Hvězdy","U Háje","U Hájku","U Hájovny","U Házů","U Hřbitovů","U Hřiště","U Invalidovny","U Jamské","U Jankovky","U Javoru","U Jedličkova Ústavu","U Jednoty","U Jeslí","U Jezera","U Jezerky","U Jezu","U Jezírka","U Jinonického Rybníčka","U Jirkovské","U Jizby","U Járku","U Jízdárny","U Kabelovny","U Kabelovny","U Kaménky","U Kamýku","U Kanálky","U Kapliček","U Kapličky","U Karlova Stánku","U Kasáren","U Kavalírky","U Kazína","U Kašny","U Kaštanu","U Kempinku","U Kina","U Klavírky","U Klikovky","U Klimentky","U Kloubových Domů","U Klubovny","U Klubu","U Kněžské Louky","U Kola","U Kolejí","U Kolejí","U Koloděj","U Kolonie","U Koloniálu","U Kombinátu","U Konečné","U Koní","U Kosinů","U Kostela","U Kostrounku","U Kotlářky","U Koupadel","U Košíku","U Krbu","U Krbu","U Krelovy Studánky","U Kruhovky","U Královské Louky","U Krčské Vodárny","U Krčského Nádraží","U Kublova","U Kunratického Lesa","U Křižovatky","U Kříže","U Kříže","U Křížku","U Laboratoře","U Ladronky","U Lanové Dráhy","U Ledáren","U Lesa","U Lesa","U Lesíka","U Letenského Sadu","U Letiště","U Letohrádku Královny Anny","U Libeňského Pivovaru","U Libeňského Zámku","U Libušiných Lázní","U Libušské Sokolovny","U Lidového Domu","U Lip","U Lipové Aleje","U Lisu","U Loděnice","U Lomu","U Loskotů","U Louky","U Lužického Semináře","U Lázeňky","U Lázní","U Lékárny","U Líhní","U Lípy","U Malvazinky","U Malé Řeky","U Markéty","U Mateřské Školy","U Matěje","U Maří Magdaleny","U Meteoru","U Mezníku","U Michelské Školy","U Michelského Lesa","U Michelského Lesa","U Michelského Mlýna","U Milosrdných","U Mlýna","U Mlýna","U Mlýnského Rybníka","U Modré Školy","U Modřanské Školy","U Močálu","U Mrázovky","U Mydlárny","U Myslivny","U Městských Domů","U Měšťanského Pivovaru","U Měšťanských Škol","U Nadýmače","U Nemocenské Pojišťovny","U Nemocnice","U Nesypky","U Nikolajky","U Nové Dálnice","U Nové Louky","U Nové Školy","U Nového Dvora","U Nového Suchdola","U Nového Suchdola","U Nových Domů I","U Nových Domů Ii","U Nových Domů Iii","U Nových Vil","U Nádražní Lávky","U Nádraží","U Nádrže","U Náhonu","U Náhonu","U Nákladového Nádraží","U Nákladového Nádraží","U Národní Galerie","U Nás","U Obce","U Obecního Domu","U Obecního Dvora","U Obory","U Okrouhlíku","U Olšiček","U Opatrovny","U Ovčína","U Palaty","U Paliárky","U Paloučku","U Památníku","U Panské Zahrady","U Papírny","U Parku","U Parkánu","U Parního Mlýna","U Pastoušky","U Pavilónu","U Pazderek","U Pejřárny","U Pekařky","U Pekáren","U Pentlovky","U Pergamenky","U Pernikářky","U Pernštejnských","U Petřin","U Pily","U Plovárny","U Plynárny","U Plynárny","U Plátenice","U Podchodu","U Podjezdu","U Podolského Hřbitova","U Podolského Sanatoria","U Pohádky","U Polikliniky","U Pomníku","U Potoka","U Poustek","U Poštovky","U Pošty","U Pramene","U Prašné Brány","U Prašného Mostu","U Prašného Mostu","U Pražských Lomů","U Prefy","U Prioru","U Prknovky","U Prodejny","U Propusti","U Prosecké Školy","U Proseckého Kostela","U První Baterie","U První Baterie","U Prádelny","U Průhonu","U Průseku","U Pumpy","U Párníků","U Páté Baterie","U Páté Baterie","U Písecké Brány","U Pískovny","U Přechodu","U Přehrady","U Přejezdu","U Půjčovny","U Radiály","U Radnice","U Rajské Zahrady","U Rakovky","U Roháčových Kasáren","U Rokytky","U Rokytky","U Rokytky","U Rozkoše","U Roztockého Háje","U Rybníka","U Rybníčka","U Rybářství","U Rychty","U Rychty","U Ryšánky","U Ryšánky","U Sadu","U Sanatoria","U Sanopzu","U Santošky","U Schodů","U Sedlecké Školy","U Seřadiště","U Sila","U Silnice","U Silnice","U Skalky","U Skladu","U Skládky","U Skopců","U Skály","U Sladovny","U Slavie","U Sloupu","U Slovanky","U Slovanské Pojišťovny","U Sluncové","U Slévárny","U Smaltovny","U Smetanky","U Smolnic","U Smíchovského Hřbitova","U Sokolovny","U Soutoku","U Sovových Mlýnů","U Sparty","U Splavu","U Spojky","U Spojů","U Společenské Zahrady","U Sportoviště","U Spořitelny","U Stanice","U Staré Cihelny","U Staré Plynárny","U Staré Pošty","U Staré Skládky","U Staré Sokolovny","U Staré Studánky","U Staré Tvrze","U Staré Školy","U Staré Školy","U Starého Hřbitova","U Starého Hřiště","U Starého Mlýna","U Starého Nádraží","U Starého Splavu","U Starého Stadionu","U Starého Stadiónu","U Starého Židovského Hřbitova","U Starého Židovského Hřbitova","U Statku","U Stavoservisu","U Stojanu","U Strouhy","U Strže","U Studny","U Studánky","U Studánky","U Stárovny","U Státní Dráhy","U Státní Dráhy","U Stírky","U Střediska","U Střešovických Hřišť","U Sušičky","U Svahu","U Svatého Ducha","U Svobodárny","U Svodnice","U Svornosti","U Svépomoci","U Světličky","U Synagogy","U Sádek","U Sídliště","U Tabulky","U Technoplynu","U Tenisu","U Teplárny","U Topíren","U Továren","U Transformační Stanice","U Transformátoru","U Trati","U Trativodu","U Trezorky","U Trojice","U Trojského Zámku","U Trpce","U Tržnice","U Tvrze","U Tyrše","U Tyršovky","U Tyršovy Školy","U Třetí Baterie","U Třešňovky","U Třešňového Sadu","U Tůně","U Uhříněveské Obory","U Uranie","U Učiliště","U Valu","U Velké Skály","U Vesny","U Viktorky","U Vinice","U Viniček","U Vinné Révy","U Vinných Sklepů","U Vinohradské Nemocnice","U Vinohradského Hřbitova","U Vinohradského Hřbitova","U Vizerky","U Višňovky","U Višňovky","U Vlachovky","U Vlasačky","U Vlečky","U Vlečky","U Vltavy","U Voborníků","U Vodice","U Vodojemu","U Vodojemu","U Vodotoku","U Vody","U Vodárny","U Vojanky","U Vojenské Nemocnice","U Vojtěšky","U Vokovické Školy","U Vorlíků","U Vozovny","U Vrbiček","U Vrby","U Vrtilky","U Vršovického Hřbitova","U Vršovického Hřbitova","U Vršovického Nádraží","U Vysočanského Cukrovaru","U Vysočanského Pivovaru","U Václava","U Váhy","U Vápenice","U Vápenky","U Vápenné Skály","U Výkupního Střediska","U Výstavby","U Výstaviště","U Výstaviště","U Výzkumu","U Včely","U Větrníku","U Větrolamu","U Větrolamu","U Věže","U Waltrovky","U Zahradnictví","U Zahradního Města","U Zahrady","U Zahrádek","U Zahrádkářské Kolonie","U Zastávky","U Zbrojnice","U Zdravotního Ústavu","U Zeleného Ptáka","U Zemníku","U Zeměpisného Ústavu","U Zlaté Studně","U Zličína","U Zličína","U Zličínského Hřiště","U Zvonařky","U Zvoničky","U Záběhlického Zámku","U Zájezdku","U Zákrutu","U Zámeckého Parku","U Zámečku","U Zámečnice","U Zásobní Zahrady","U Zátiší","U Závodiště","U Závor","U Úlů","U Čekárny","U Černé Rokle","U Červeného Mlýnku","U Červeného Mlýnku","U Českých Loděnic","U Čihadel","U Čističky","U Čokoládoven","U Čtvrté Baterie","U Čtyř Domů","U Řempa","U Říčanky","U Šalamounky","U Šalamounky","U Šesté Baterie","U Šesté Baterie","U Školičky","U Školky","U Školního Pole","U Školské Zahrady","U Školy","U Štěpu","U Šumavy","U Šumavěnky","U Šálkovny","U Šíchů","U Šípků","U Železnice","U Železničního Mostu","U Železné Lávky","U Želivky","U Židovského Hřbitova","U Žlábku","U Županských","Uhelný Trh","Uherská","Uhříněveská","Ukončená","Ukrajinská","Uljanovská","Ulrychova","Ulčova","Umělecká","Ungarova","Unhošťská","Univerzitní","Upolínová","Upravená","Uralská","Urbanická","Urbanova","Urbánkova","Urešova","Uruguayská","Urxova","Utěšilova","Uzavřená","Uzbecká","Uzoučká","Učitelská","Učňovská","Užocká","V Aleji","V Alejích","V Americe","V Babyku","V Bambouskách","V Bažinách","V Benátkách","V Bezpečí","V Bokách I","V Bokách Ii","V Bokách Iii","V Borovičkách","V Botanice","V Brance","V Brůdku","V Brůdku","V Bytovkách","V Bílce","V Březinkách","V Březině","V Březí","V Břízkách","V Celnici","V Cestičkách","V Cestkách","V Chaloupkách","V Chaloupkách","V Chatách","V Chotejně","V Cibulkách","V Cihelně","V Cípu","V Dolinách","V Dolině","V Dolině","V Dolích","V Domcích","V Domově","V Doubcích","V Dílcích","V Edenu","V Haltýři","V Hliništi","V Hluboké","V Hodkovičkách","V Holešovičkách","V Honu","V Horkách","V Horní Stromce","V Hrobech","V Humenci","V Humenci","V Humnech","V Háji","V Hájkách","V Hájích","V Hůrkách","V Jahodách","V Javorech","V Javoříčku","V Jehličině","V Jehličí","V Jezerách","V Jezevčinách","V Jezírkách","V Jirchářích","V Jámě","V Kališti","V Kališti","V Kapslovně","V Klukovicích","V Kole","V Kolkovně","V Korytech","V Korytech","V Kotcích","V Koutku","V Koutě","V Kratinách","V Kruhu","V Kuťatech","V Kálku","V Křepelkách","V Křovinách","V Křížkách","V Ladech","V Lesíčku","V Lipinách","V Lipinách","V Lipkách","V Lipách","V Listnáčích","V Lomech","V Louce","V Luhu","V Lukách","V Lučinách","V Lužích","V Lánech","V Lázních","V Lískách","V Malých Domech I","V Malých Domech Ii","V Malých Domech Iii","V Mezihoří","V Milíři","V Mokřinách","V Mydlinkách","V Nové Hostivaři","V Nové Vsi","V Nové Vsi","V Nové Čtvrti","V Novém Hloubětíně","V Novém Hloubětíně","V Nových Bohnicích","V Nových Domcích","V Nových Vokovicích","V Náklích","V Násypu","V Nížinách","V Oblouku","V Občanském Domově","V Obůrkách","V Ochozu","V Ohradě","V Ohybu","V Okruží","V Okálech","V Olšinách","V Olšinách","V Olšině","V Ondřejově","V Opatově","V Osikách","V Ostružiní","V Oudolku","V Ořeší","V Pachmance","V Padolině","V Parcelách","V Parku","V Parníku","V Pačátkách","V Pařezinách","V Pevnosti","V Pevnosti","V Pitkovičkách","V Planinách","V Platýzu","V Pláni","V Podbabě","V Podhoří","V Podhájí","V Podhájí","V Podluží","V Podskalí","V Podvrší","V Podzámčí","V Poli","V Polích","V Potokách","V Potočinách","V Potočkách","V Prutinách","V Průhledu","V Průčelí","V Pátém","V Pískovně","V Pěšinkách","V Předním Hloubětíně","V Předním Veleslavíně","V Předpolí","V Předpolí","V Přelomu","V Přístavu","V Remízku","V Rohožníku","V Rohu","V Roháčích","V Rokli","V Roklích","V Rovinách","V Rovinách","V Rybníkách","V Rybníčkách","V Ráji","V Ráji","V Rákosí","V Sadech","V Sedlci","V Sedlci","V Slavětíně","V Soudním","V Stráni","V Středu","V Sudech","V Sídlišti","V Tehovičkách","V Tišině","V Trninách","V Třešňovce","V Tůních","V Uličce","V Uličkách","V Zahradní Čtvrti","V Zahradách","V Zahrádkách","V Zatáčce","V Zeleni","V Zeleném Údolí","V Záhorském","V Záhybu","V Zákopech","V Zákoutí","V Zálesí","V Zálomu","V Zámcích","V Zápolí","V Zátiší","V Zátočce","V Závitu","V Závětří","V Zářezu","V Údolí","V Údolí Hvězd","V Úhlu","V Úhoru","V Úvalu","V Úvoze","V Úzké","V Úžlabině","V Úžlabině","V Čeňku","V Štíhlách","V Šáreckém Údolí","V Žabokřiku","V Žáčku","V. P. Čkalova","V. P. Čkalova","Vachkova","Vackova","Vacovská","Vacínova","Vacínovská","Vajdova","Vajgarská","Valcířská","Valdická","Valdovská","Valdštejnská","Valdštejnské Nám.","Valdštejnské Náměstí","Valentinská","Valentinská","Valentova","Valečovská","Valská","Valtická","Valtínovská","Valčíkova","Valšovská","Vamberská","Vanická","Vaníčkova","Vaníčkova","Varhulíkové","Varnsdorfská","Varšavská","Vavákova","Vavřenova","Vavřinecká","Vazovova","Vačkářova","Vaňkova","Vaňkova","Vašátkova","Ve Dvoře","Ve Lhotce","Ve Lhotce","Ve Skalkách","Ve Skalách","Ve Skále","Ve Slatinách","Ve Smečkách","Ve Smrčině","Ve Stromořadí","Ve Struhách","Ve Struhách","Ve Stráni","Ve Studeném","Ve Stínu","Ve Střešovičkách","Ve Střešovičkách","Ve Svahu","Ve Vilkách","Ve Vilách","Ve Višňovce","Ve Vratech","Ve Vrbách","Ve Vrchu","Ve Vrších","Ve Výhledu","Ve Výhledu","Ve Výrech","Ve Zliči","Ve Štěpnici","Ve Žlíbku","Vedlejší","Vehlovická","Vejražkova","Vejvanovského","Vejvodova","Velebného","Velehradská","Velemínská","Velemínská","Velenická","Velenovského","Veleslavínova","Veleslavínská","Veleslavínská","Veletovská","Veletržní","Veletržní","Veleňská","Velešínská","Velfloviců","Velflíkova","Velhartická","Velichovská","Velimská","Velkoborská","Velkoosecká","Velkopřevorské Nám.","Velkopřevorské Náměstí","Velká Lada","Velká Lada","Velká Skála","Velké Kunratické","Veltruská","Veltěžská","Velvarská","Velínská","Venušina","Verdiho","Verdunská","Verneřická","Verneřická","Vernéřovská","Veronské Nám.","Veselská","Veská","Veslařský Ostrov","Vestavěná","Vestecká","Veverkova","Večerní","Vidimova","Vidimská","Vidlicová","Vidlák","Vidonická","Vidoulská","Vidovická","Vietnamská","Viklefova","Vikova","Viktora Huga","Viktorinova","Viktorčina","Vikářská","Vilová","Vilímkova","Vilímovská","Vimperské Náměstí","Vinařického","Vinařská","Viničná","Vinohradská","Vinohradská","Vinohradská","Vinohradská","Vinohradská","Vinohradská","Vinohradská","Vinohrady","Vinopalnická","Vinořská","Vinořské Nám.","Vinořské Náměstí","Vinšova","Violková","Vitošská","Vitíkova","Vitějovská","Vizovická","Višňovka","Višňovka","Višňová","Vlachova","Vladimírova","Vladislava Vančury","Vladislavova","Vladivostocká","Vladycká","Vlastibořská","Vlastina","Vlastina","Vlastislavova","Vlasty Buriana","Vlasty Hilské","Vlasty Průchové","Vlasákova","Vlašimská","Vlašská","Vlašská","Vlaštovčí","Vlkanovská","Vlkova","Vlkovická","Vlnitá","Vltavanů","Vltavanů","Vltavanů","Vltavická","Vltavská","Vltavínová","Vlárská","Vlásenická","Vlčická","Vlčkova","Vlčnovská","Vnislavova","Vnitřní","Vnoučkova","Vnější","Voborského","Vobrubova","Vocelova","Voctářova","Voctářova","Vodická","Vodičkova","Vodičkova","Vodnická","Vodní","Vodochodská","Vodojemská","Vodácká","Vodárenská","Voděradská","Vodňanská","Vodňanského","Vojenova","Vojetická","Vojická","Vojkovická","Vojslavická","Vojtova","Vojtíškova","Vojtěšská","Vojáčkova","Vokovická","Vokovická","Vokrojova","Vokáčova","Vokřínská","Volarská","Volavkova","Voleníkova","Volkova","Volkovova","Voltova","Volutová","Volyňská","Volšovská","Volšovská","Vondroušova","Vorařská","Voroněžská","Voroněžská","Voráčovská","Voršilská","Voskova","Voskovcova","Vosmíkových","Vostrovská","Vostrého","Vosátkova","Votavova","Votická","Votočkova","Votrubova","Votuzská","Vozová","Vozová","Voňkova","Voříškova","Vošahlíkova","Vožická","Vrabčí","Vranická","Vranovská","Vranská","Vratimovská","Vratislavova","Vratislavská","Vratičová","Vraňanská","Vrbenského","Vrbická","Vrbková","Vrbova","Vrbčanská","Vrchlabská","Vrchlického","Vrchlického Sady","Vrchovinská","Vrátenská","Vrátkovská","Vrázova","Vrážská","Vrútecká","Vršní","Vršovická","Vršovické Nám.","Vršovické Náměstí","Vršovka","Vsetínská","Vstavačová","Vstupní","Vybíralova","Vycpálkova","Vyderská","Vydrova","Vyhlídkova","Vykoukových","Vykáňská","Vyskočilova","Vysokovská","Vysokoškolská","Vysoká Cesta","Vysočanská","Vysočanská","Vysočanská","Vysočanské Nám.","Vysočanské Náměstí","Vyvýšená","Vyšebrodská","Vyšehradská","Vyšší","Vyžlovská","Vzdušná","Vzdálená","Vzestupná","Vzpoury","Váchalova","Václava Balého","Václava Kovaříka","Václava Rady","Václava Trojana","Václava Špačka","Václavická","Václavkova","Václavská","Václavské Nám.","Václavské Náměstí","Vágnerova","Vánková","Vápencová","Vápenná","Vápeníkova","Vášova","Vážská","Vídeňská","Vídeňská","Vídeňská","Vírská","Víta Nejedlého","Vítkova","Vítkovická","Vítovcova","Vítovcova","Vítězná","Vítězná","Vítězné Nám.","Vítězné Nám.","Vítězné Náměstí","Vítězné Náměstí","Východní","Východní Nám.","Východní Náměstí","Výchozí","Výhledová","Výhledské Nám.","Výhledské Náměstí","Výjezdní","Výjezdová","Výletní","Výletní","Výmarova","Výmolova","Výpadová","Výpadová","Výravská","Výrobní","Výstaviště","Výstavní","Výstupní","Výtoňská","Výtvarnická","Výtvarná","Výzkumníků","Včelařská","Včelničná","Věkova","Věstonická","Větrná","Větrovcova","Větrová","Větrušická","Vězeňská","Vězeňská","Věštínská","Věšínova","Věžická","Vřesovická","Vřesová","Všehrdova","Všejanská","Všelipská","Všerubská","Všestarská","Všetatská","Všeňská","Wagnerova","Waldesova","Washingtonova","Wassermannova","Wattova","Weberova","Weberova","Weilova","Weissova","Wenzigova","Wenzigova","Werichova","Wichterlova","Wiedermannova","Wiesenthalova","Wilsonova","Wilsonova","Winklerova","Wolfova","Wolkerova","Wuchterlova","Xaveriova","Xaverovská","Za Archivem","Za Arielem","Za Avií","Za Bažantnicí","Za Botičem","Za Brankou","Za Brumlovkou","Za Brůdkem","Za Břízami","Za Chalupami","Za Cukrovarem","Za Císařským Mlýnem","Za Dolejšákem","Za Drahou","Za Dvorem","Za Dálnicí","Za Dálnicí","Za Elektrárnou","Za Elektrárnou","Za Farou","Za Fořtem","Za Hanspaulkou","Za Haštalem","Za Hládkovem","Za Horou","Za Horou","Za Hospodou","Za Hrází","Za Humny","Za Hájem","Za Hájem","Za Hájovnou","Za Hřbitovem","Za Invalidovnou","Za Jalovým Dvorem","Za Jednotou","Za Kajetánkou","Za Kapličkou","Za Karlínským Přístavem","Za Kačabkou","Za Klíčovem","Za Knotkem","Za Knotkem","Za Kostelem","Za Kovárnou","Za Kovářským Rybníkem","Za Křížem","Za Křížkem","Za Lesíkem","Za Lidovým Domem","Za Luhem","Za Lužinami","Za Lány","Za Lázeňkou","Za Mlýnem","Za Mosty","Za Mosty","Za Mototechnou","Za Můstkem","Za Nadýmačem","Za Novákovou Zahradou","Za Návsí","Za Obecním Úřadem","Za Oborou","Za Opravnou","Za Opusem","Za Ovčínem","Za Papírnou","Za Parkem","Za Pavilónem","Za Pekařkou","Za Pekárnou","Za Pivovarem","Za Ploty","Za Podjezdem","Za Pohořelcem","Za Pohádkou","Za Potokem","Za Poříčskou Branou","Za Poříčskou Bránou","Za Poštou","Za Poštovskou Zahradou","Za Poštovskou Zahradou","Za Prodejnou","Za Pruhy","Za Průsekem","Za Pískovnou","Za Radostí","Za Rokytkou","Za Rybníkem","Za Rybníčky","Za Rybářstvím","Za Rájem","Za Sadem","Za Sedmidomky","Za Skalkou","Za Skalkou","Za Slatinami","Za Slovankou","Za Sokolovnou","Za Stadionem","Za Statkem","Za Statky","Za Stodolami","Za Stodolou","Za Strahovem","Za Strašnickou Vozovnou","Za Strašnickou Vozovnou","Za Strojírnami","Za Studánkou","Za Střelnicí","Za Sídlištěm","Za Teplárnou","Za Tratí","Za Tratí","Za Třebešínem","Za Vackovem","Za Valem","Za Viaduktem","Za Vinicí","Za Vlasačkou","Za Vodárnou","Za Vokovickou Vozovnou","Za Vokovickou Vozovnou","Za Větrem","Za Zahradami","Za Zahradou","Za Zastávkou","Za Zelenou Liškou","Za Zámečkem","Za Černým Mostem","Za Černým Mostem","Za Černým Mostem","Za Školkou","Za Školou","Za Šmatlíkem","Za Železnicí","Za Ženskými Domovy","Za Žižkovskou Vozovnou","Zacharská","Zachova","Zadní","Zahrada Na Baště","Zahradnická","Zahradní","Zahradníčkova","Zahradníčkova","Zahrádecká","Zahrádecká","Zahrádkářská","Zahrádkářů","Zaječická","Zaječí","Zaječí","Zakouřilova","Zakrytá","Zakšínská","Zalešanská","Zalinská","Zamašská","Zamenhofova","Zapadlá","Zapomenutá","Zapova","Zapských","Zastavěná","Zastrčená","Zavadilova","Zavátá","Zaříčanská","Zbečenská","Zborovská","Zborovská","Zbraslavská","Zbraslavská","Zbraslavské Nám.","Zbraslavské Náměstí","Zbrojnická","Zbudovská","Zbuzanská","Zbuzkova","Zbynická","Zbyslavská","Zbytinská","Zbýšovská","Zdaru","Zdařilá","Zderazská","Zdeňky Nyplové","Zdibská","Zdická","Zdiměřická","Zdislavická","Zdobnická","Zdoňovská","Zdíkovská","Zelenečská","Zelenečská","Zelenkova","Zelenky-Hajského","Zelenohorská","Zelená","Zelená","Zelená Louka","Zelený Pruh","Zelený Pruh","Zelený Pruh","Zelinářská","Zemanka","Zemské Právo","Zemědělská","Zengrova","Zenklova","Zenklova","Zeyerova Alej","Zhořelecká","Zikova","Zimova","Zimákova","Zkrácená","Zlatnice","Zlatnická","Zlatokorunská","Zlatá","Zlatá Ulička U Daliborky","Zlenická","Zlešická","Zlivská","Zličínská","Zličínská","Zlonická","Zlonínská","Zlončická","Zlíchovská","Znojemská","Zoubkova","Zrzavého","Ztracená","Zubatého","Zubrnická","Zvolenská","Zvolská","Zvolská","Zvonařova","Zvonařovská","Zvonařská","Zvoncovitá","Zvonická","Zvonková","Zvoníčkova","Zvánovická","Zvíkovská","Záblatská","Záblatská","Zábranská","Zábrodí","Záběhlická","Zádražanská","Záhornická","Záhorského","Záhořanská","Záhořanského","Záhřebská","Zájezdní","Zákolanská","Zákostelní","Zákupská","Zálesí","Zálesí","Zálesí","Záluské","Zálužanského","Zálužická","Zálužská","Zálužská","Zámecká","Zámecké Schody","Zámezí","Zámišova","Zámělská","Západní","Zápasnická","Zápolská","Zápotoční","Zápská","Zárubova","Zárybnická","Zárybničná","Zárybská","Zásadská","Zásmucká","Zátišská","Zátiší","Zátopkova","Zátoňská","Závadova","Záveská","Závist","Závišova","Závišova","Závodní","Závrchy","Závěrka","Zázvorkova","Zářijová","Zítkova","Zívrova","Zúžená","Údlická","Údolní","Údolní","Údolí Hvězd","Úhlavská","Úhlová","Újezd","Újezd","Újezdská","Úlibická","Únorová","Únětická","Únětická","Úpická","Úprkova","Úpská","Úslavská","Ústavní","Ústecká","Ústecká","Ústřední","Útulná","Útulná","Úvalská","Úvoz","Úvoz","Úvozová","Úzká","Čajkovského","Čakovická","Čakovická","Čankovská","Čapkova","Častavina","Častonická","Čechova","Čechtická","Čechurova","Čedičová","Čejetická","Čejkovická","Čekanková","Čekanková","Čekanovská","Čelakovského Sady","Čelakovského Sady","Čeljabinská","Čelkovická","Čelná","Čelákovická","Čenkovská","Čenovická","Čentická","Čenětická","Čeperská","Čeradická","Čerchovská","Čermákova","Černická","Černilovská","Černičná","Černochova","Černockého","Černohorského","Černokostelecká","Černokostelecká","Černokostelecká","Černomořská","Černotínská","Černovická","Černošická","Černá","Černého","Černínova","Černínská","Čerpadlová","Čertouská","Čertouská","Čertův Vršek","Červencová","Červenkova","Červená","Červená Báň","Červený Mlýn","Červeňanského","Červnová","Čerčanská","Českobratrská","Českobrodská","Českobrodská","Českobrodská","Českobrodská","Českobrodská","Českobrodská","Českobrodská","Českobrodská","Českodubská","Českolipská","Českolipská","Českomalínská","Českomoravská","Českomoravská","Československého Exilu","Československého Exilu","Česká","České Družiny","Českého Červeného Kříže","Čestlická","Čestmírova","Česákova","Čečelická","Čeňkova","Češovská","Čibuzská","Čihákova","Čiklova","Čiklova","Čimelická","Čimická","Čimická","Čimická","Čimická","Čirůvková","Čistovická","Čmelická","Čs. Armády","Čs. Tankistů","Čtyřdílná","Čtyřkolská","Čumpelíkova","Čuprova","Čábelecká","Čápova","Čáslavská","Čílova","Čílova","Čínská","Čínská","Čížovská","Ďáblická","Ďáblická","Ďáblická","Řadová","Řehořova","Řepečská","Řepná","Řeporyjská","Řeporyjská","Řeporyjská","Řeporyjské Náměstí","Řepová","Řepská","Řepíková","Řepínská","Řepčická","Řepčická","Řetězokovářů","Řetězová","Řevnická","Řevnická","Řeznická","Řezáčovo Nám.","Řezáčovo Náměstí","Řečického","Řešetovská","Řešovská","Řipská","Řipská","Řásnovka","Říjnová","Římovská","Římovská","Římská","Říčanova","Říčanská","Říční","Šachovská","Šafaříkova","Šafránecká","Šafránkova","Šafránová","Šafářova","Šakvická","Šaldova","Šalounova","Šalvějová","Šanovská","Šantrochova","Šatrova","Šatrova","Šebelova","Šeberovská","Šebestiánská","Šebkova","Šedivého","Šedova","Šejbalové","Šemberova","Šenovská","Šermířská","Šermířská","Šestajovická","Šestajovická","Šestidomí","Šetelíkova","Ševce Matouše","Ševčenkova","Ševčíkova","Šeříková","Šeříková","Šibřinská","Šikmá","Šimanovská","Šimkova","Šimonova","Šimáčkova","Šimůnkova","Šircova","Široká","Široká","Šiškova","Školní","Školská","Škroupovo Nám.","Škroupovo Náměstí","Škrétova","Škvorecká","Škábova","Šlechtitelská","Šlejnická","Šlikova","Šlitrova","Šluknovská","Šmeralova","Šmilovského","Šmolíkova","Šolínova","Šostakovičovo Nám.","Šostakovičovo Náměstí","Španielova","Španělská","Špačkova","Špeciánova","Šperlova","Špirkova","Špitálská","Šplechnerova","Šporkova","Špotzova","Špálova","Šrobárova","Šrobárova","Šromova","Štamberk","Štefkova","Štefánikova","Štemberova","Šternberkova","Šternova","Šternovská","Štichova","Štiplova","Štičkova","Štiřínská","Štochlova","Štolbova","Štolcova","Štolmířská","Štolmířská","Štorchova","Štorkánova","Štramberská","Štulcova","Štupartská","Štursova","Štverákova","Štychova","Štychova","Štíbrova","Štíhlická","Štítného","Štítová","Štúrova","Štúrova","Štěchovická","Štěpanická","Štěpařská","Štěpničná","Štěpánkova","Štěpánovská","Štěpánská","Štěpánská","Štěrboholská","Štěrková","Štětkova","Štětínská","Šubertova","Šulcova","Šultysova","Šumavská","Šumavského","Šumberova","Šumenská","Šumická","Šumperská","Šustova","Švabinského","Švecova","Švehlova","Švehlova","Švejcarovo Náměstí","Švestková","Švestková","Švestková","Švihovská","Švábky","Švábova","Švédská","Šárecká","Šárovo Kolo","Šárčina","Šátalská","Šífařská","Šímova","Šípková","Šítkova","Šťastného","Šůrova","Žabovřeská","Žacléřská","Žalanského","Žalmanova","Žalovská","Žamberská","Žampašská","Žampiónová","Žandovská","Žatecká","Žatecká","Žateckých","Ždírnická","Žehuňská","Žehušická","Želetavská","Železniční","Železničářů","Železnobrodská","Železná","Želivecká","Želivka","Želivská","Želkovická","Želnavská","Ženíškova","Žeretická","Žermanická","Žernosecká","Žernovská","Žerotínova","Žherská","Žichlínská","Židlického","Žilinská","Žilovská","Žinkovská","Žirovnická","Žitavská","Žitavského","Žitná","Žitná","Žitomírská","Živanická","Živcová","Živcových","Živonínská","Žiželická","Žižkova","Žižkovo Nám.","Žižkovo Náměstí","Žlebská","Žluťásková","Žofie Podlipské","Žufanova","Žukovského","Žukovského","Žulová","Županovická","Žvahovská","Žábova","Žákovská","Žárovická","Žíšovská","Žďárská"]})(Gvn);var NNa=Gvn.exports,Vvn={exports:{}};(function(t){t.exports=["#{street}"]})(Vvn);var INa=Vvn.exports,Kvn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(Kvn);var PNa=Kvn.exports,Wvn={exports:{}};(function(t){t.exports=["Česká republika"]})(Wvn);var ONa=Wvn.exports;(function(t){var e={};t.exports=e,e.country=SNa,e.building_number=wNa,e.secondary_address=_Na,e.postcode=TNa,e.state=CNa,e.state_abbr=kNa,e.city_name=RNa,e.city=MNa,e.street=NNa,e.street_name=INa,e.street_address=PNa,e.default_country=ONa})(Lvn);var LNa=Lvn.exports,Qvn={exports:{}},qvn={exports:{}};(function(t){t.exports=["s.r.o.","a.s.","v.o.s."]})(qvn);var BNa=qvn.exports,Yvn={exports:{}};(function(t){t.exports=["Adaptive","Advanced","Ameliorated","Assimilated","Automated","Balanced","Business-focused","Centralized","Cloned","Compatible","Configurable","Cross-group","Cross-platform","Customer-focused","Customizable","Decentralized","De-engineered","Devolved","Digitized","Distributed","Diverse","Down-sized","Enhanced","Enterprise-wide","Ergonomic","Exclusive","Expanded","Extended","Face to face","Focused","Front-line","Fully-configurable","Function-based","Fundamental","Future-proofed","Grass-roots","Horizontal","Implemented","Innovative","Integrated","Intuitive","Inverse","Managed","Mandatory","Monitored","Multi-channelled","Multi-lateral","Multi-layered","Multi-tiered","Networked","Object-based","Open-architected","Open-source","Operative","Optimized","Optional","Organic","Organized","Persevering","Persistent","Phased","Polarised","Pre-emptive","Proactive","Profit-focused","Profound","Programmable","Progressive","Public-key","Quality-focused","Reactive","Realigned","Re-contextualized","Re-engineered","Reduced","Reverse-engineered","Right-sized","Robust","Seamless","Secured","Self-enabling","Sharable","Stand-alone","Streamlined","Switchable","Synchronised","Synergistic","Synergized","Team-oriented","Total","Triple-buffered","Universal","Up-sized","Upgradable","User-centric","User-friendly","Versatile","Virtual","Visionary","Vision-oriented"]})(Yvn);var DNa=Yvn.exports,Jvn={exports:{}};(function(t){t.exports=["24 hour","24/7","3rd generation","4th generation","5th generation","6th generation","actuating","analyzing","asymmetric","asynchronous","attitude-oriented","background","bandwidth-monitored","bi-directional","bifurcated","bottom-line","clear-thinking","client-driven","client-server","coherent","cohesive","composite","context-sensitive","contextually-based","content-based","dedicated","demand-driven","didactic","directional","discrete","disintermediate","dynamic","eco-centric","empowering","encompassing","even-keeled","executive","explicit","exuding","fault-tolerant","foreground","fresh-thinking","full-range","global","grid-enabled","heuristic","high-level","holistic","homogeneous","human-resource","hybrid","impactful","incremental","intangible","interactive","intermediate","leading edge","local","logistical","maximized","methodical","mission-critical","mobile","modular","motivating","multimedia","multi-state","multi-tasking","national","needs-based","neutral","next generation","non-volatile","object-oriented","optimal","optimizing","radical","real-time","reciprocal","regional","responsive","scalable","secondary","solution-oriented","stable","static","systematic","systemic","system-worthy","tangible","tertiary","transitional","uniform","upward-trending","user-facing","value-added","web-enabled","well-modulated","zero administration","zero defect","zero tolerance"]})(Jvn);var $Na=Jvn.exports,Zvn={exports:{}};(function(t){t.exports=["ability","access","adapter","algorithm","alliance","analyzer","application","approach","architecture","archive","artificial intelligence","array","attitude","benchmark","budgetary management","capability","capacity","challenge","circuit","collaboration","complexity","concept","conglomeration","contingency","core","customer loyalty","database","data-warehouse","definition","emulation","encoding","encryption","extranet","firmware","flexibility","focus group","forecast","frame","framework","function","functionalities","Graphic Interface","groupware","Graphical User Interface","hardware","help-desk","hierarchy","hub","implementation","info-mediaries","infrastructure","initiative","installation","instruction set","interface","internet solution","intranet","knowledge user","knowledge base","local area network","leverage","matrices","matrix","methodology","middleware","migration","model","moderator","monitoring","moratorium","neural-net","open architecture","open system","orchestration","paradigm","parallelism","policy","portal","pricing structure","process improvement","product","productivity","project","projection","protocol","secured line","service-desk","software","solution","standardization","strategy","structure","success","superstructure","support","synergy","system engine","task-force","throughput","time-frame","toolset","utilisation","website","workforce"]})(Zvn);var FNa=Zvn.exports,Xvn={exports:{}};(function(t){t.exports=["implement","utilize","integrate","streamline","optimize","evolve","transform","embrace","enable","orchestrate","leverage","reinvent","aggregate","architect","enhance","incentivize","morph","empower","envisioneer","monetize","harness","facilitate","seize","disintermediate","synergize","strategize","deploy","brand","grow","target","syndicate","synthesize","deliver","mesh","incubate","engage","maximize","benchmark","expedite","reintermediate","whiteboard","visualize","repurpose","innovate","scale","unleash","drive","extend","engineer","revolutionize","generate","exploit","transition","e-enable","iterate","cultivate","matrix","productize","redefine","recontextualize"]})(Xvn);var jNa=Xvn.exports,e0n={exports:{}};(function(t){t.exports=["clicks-and-mortar","value-added","vertical","proactive","robust","revolutionary","scalable","leading-edge","innovative","intuitive","strategic","e-business","mission-critical","sticky","one-to-one","24/7","end-to-end","global","B2B","B2C","granular","frictionless","virtual","viral","dynamic","24/365","best-of-breed","killer","magnetic","bleeding-edge","web-enabled","interactive","dot-com","sexy","back-end","real-time","efficient","front-end","distributed","seamless","extensible","turn-key","world-class","open-source","cross-platform","cross-media","synergistic","bricks-and-clicks","out-of-the-box","enterprise","integrated","impactful","wireless","transparent","next-generation","cutting-edge","user-centric","visionary","customized","ubiquitous","plug-and-play","collaborative","compelling","holistic","rich","synergies","web-readiness","paradigms","markets","partnerships","infrastructures","platforms","initiatives","channels","eyeballs","communities","ROI","solutions","e-tailers","e-services","action-items","portals","niches","technologies","content","vortals","supply-chains","convergence","relationships","architectures","interfaces","e-markets","e-commerce","systems","bandwidth","infomediaries","models","mindshare","deliverables","users","schemas","networks","applications","metrics","e-business","functionalities","experiences","web services","methodologies"]})(e0n);var HNa=e0n.exports,t0n={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name} #{suffix}","#{Name.man_last_name} a #{Name.man_last_name} #{suffix}"]})(t0n);var UNa=t0n.exports;(function(t){var e={};t.exports=e,e.suffix=BNa,e.adjective=DNa,e.descriptor=$Na,e.noun=FNa,e.bs_verb=jNa,e.bs_noun=HNa,e.name=UNa})(Qvn);var zNa=Qvn.exports,n0n={exports:{}},r0n={exports:{}};(function(t){t.exports=["gmail.com","seznam.cz","centrum.cz","volny.cz","atlas.cz"]})(r0n);var GNa=r0n.exports,i0n={exports:{}};(function(t){t.exports=["cz","com","net","eu","org"]})(i0n);var VNa=i0n.exports;(function(t){var e={};t.exports=e,e.free_email=GNa,e.domain_suffix=VNa})(n0n);var KNa=n0n.exports,a0n={exports:{}},o0n={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(o0n);var WNa=o0n.exports;(function(t){var e={};t.exports=e,e.words=WNa})(a0n);var QNa=a0n.exports,s0n={exports:{}},l0n={exports:{}};(function(t){t.exports=["Abigail","Ada","Adalberta","Adéla","Adelaida","Adina","Adolfa","Adolfína","Adriana","Adriána","Adriena","Afra","Agáta","Aglaja","Aida","Alana","Albena","Alberta","Albertina","Albertýna","Albína","Alena","Aleška","Alexandra","Alfréda","Alice","Alida","Alina","Alma","Aloisie","Alojzije","Alžběta","Amálie","Amanda","Amáta","Amélie","Anabela","Anastázie","Anatázie","Anatolie","Anatólie","Anděla","Andělína","Andrea","Aneta","Anežka","Angela","Angelika","Anita","Anna","Anselma","Antonie","Apolena","Arabela","Aranka","Areta","Ariadna","Ariana","Ariela","Arleta","Armida","Arna","Arnolda","Arnoštka","Astrid","Astrida","Atanázie","Augusta","Augustina","Augustýna","Aura","Aurélie","Aurora","Babeta","Barbara","Barbora","Beáta","Beatrice","Bedřiška","Bela","Běla","Belinda","Benedikta","Berenika","Berit","Bernarda","Berta","Bertolda","Bianka","Bibiana","Birgit","Birgita","Blahomila","Blahomíra","Blahoslava","Blanka","Blažena","Bohdana","Bohumila","Bohumíra","Bohuna","Bohuslava","Bohuše","Bojana","Bojislava","Boleslava","Borislava","Bořislava","Božena","Božetěcha","Božidara","Branimíra","Branislava","Bratislava","Brenda","Brigita","Brita","Bronislava","Bruna","Brunhilda","Břetislava","Cecilie","Cecílie","Celestina","Celestýna","Celie","Celina","Ctibora","Ctirada","Ctislava","Cyntie","Cyrila","Čeňka","Čestmíra","Čistoslava","Dagmar","Dagmara","Dalibora","Dalida","Dalie","Dalila","Dalimila","Dalimíra","Damaris","Damiana","Damiána","Dana","Danica","Daniela","Danuše","Danuta","Daria","Darie","Darina","Darja","Davida","Debora","Delie","Denisa","Diana","Dina","Dita","Diviška","Dobrava","Dobromila","Dobromíra","Dobroslava","Dominika","Donalda","Donáta","Dora","Doris","Dorota","Doubrava","Doubravka","Drahomila","Drahomíra","Drahoslava","Drahotína","Drahuše","Dulcinea","Dušana","Edita","Eduarda","Edvarda","Egona","Ela","Elektra","Elena","Eleonora","Elfrída","Eliška","Elsa","Elvíra","Elza","Ema","Emanuela","Emilie","Emílie","Erika","Erna","Ervína","Estela","Ester","Estera","Etela","Eufrozina","Eufrozína","Eugenie","Eulálie","Eunika","Eusebie","Eva","Evelina","Evelína","Evženie","Fabiána","Fabie","Fatima","Faustina","Faustýna","Féba","Fedora","Felicie","Felície","Felicita","Ferdinanda","Fidelie","Filipa","Filoména","Flavie","Flora","Flóra","Florentina","Florentýna","Františka","Frída","Gabriela","Gaja","Gajana","Galina","Garika","Gema","Geralda","Geraldina","Gerarda","Gerardina","Gerda","Gerharda","Gertruda","Gilberta","Gina","Gisela","Gita","Gizela","Glorie","Gordana","Graciána","Gracie","Grácie","Gražina","Gréta","Griselda","Grizelda","Gudrun","Gustava","Gvendolina","Gvendolína","Halina","Hana","Háta","Havla","Heda","Hedvika","Heidrun","Helena","Helga","Herberta","Hermína","Herta","Hilda","Hortensie","Hortenzie","Horymíra","Hostimila","Hostimíra","Hostislava","Hvězdoslava","Hyacinta","Chranislava","Iboja","Ida","Ignácie","Ignáta","Ildika","Iljana","Ilona","Ilsa","Ilza","Ines","Inesa","Inéz","Ingeborg","Ingeborga","Ingrid","Ingrida","Inka","Irena","Iris","Irma","Isabela","Isidora","Isolda","Iva","Ivana","Iveta","Ivona","Izabela","Izidora","Izolda","Jadrana","Jadranka","Jakuba","Jakubka","Jana","Jarmila","Jarolíma","Jaromíra","Jaroslava","Jasmína","Jasna","Jasněna","Jelena","Jenovéfa","Jesika","Jindra","Jindřiška","Jiřina","Jitka","Johana","Jolana","Jolanta","Jordana","Jorga","Josefa","Josefína","Jovana","Jozefa","Jozefína","Judita","Juliana","Juliána","Julie","Justina","Justýna","Juta","Kamila","Karin","Karina","Karla","Karmela","Karmen","Karolina","Karolína","Kateřina","Katrin","Katrina","Kazi","Kazimíra","Kira","Klára","Klaudie","Klementina","Klementýna","Kleopatra","Klotylda","Koleta","Kolombína","Kolumbína","Konstance","Konstancie","Konsuela","Konzuela","Kora","Kordula","Korina","Kornélie","Krasava","Krasomila","Kristina","Kristýna","Kunhuta","Květa","Květoslava","Květuše","Lada","Ladislava","Larisa","Laura","Laurencie","Lea","Léda","Leila","Lejla","Lena","Lenka","Leokádie","Leona","Leonora","Leontina","Leontýna","Leopolda","Leopoldina","Leopoldýna","Leticie","Lia","Liana","Liběna","Libora","Liboslava","Libuše","Lidmila","Liliana","Lina","Linda","Livie","Ljuba","Lola","Loreta","Lorna","Lota","Lubomíra","Luboslava","Luciána","Lucie","Ludiše","Luďka","Ludmila","Ludomíra","Ludoslava","Ludvika","Ludvíka","Luisa","Lujza","Lukrécie","Lumíra","Lydie","Lýdie","Mabel","Mabela","Magda","Magdalena","Magdaléna","Mahulena","Maja","Mája","Malvína","Manon","Manona","Manuela","Marcela","Marcelína","Margit","Margita","Mariana","Marie","Marieta","Marika","Marilyn","Marina","Mariola","Marion","Marisa","Marita","Markéta","Marlena","Marta","Martina","Matylda","Maud","Maxima","Mečislava","Medea","Médea","Melánie","Melinda","Melisa","Melita","Mercedes","Michaela","Michala","Milada","Milana","Milena","Miloslava","Milred","Miluše","Mína","Mira","Mirabela","Miranda","Mirela","Miriam","Mirjam","Mirka","Miromila","Miroslava","Mnislava","Mona","Monika","Muriel","Muriela","Myrna","Naďa","Naděžda","Naneta","Narcisa","Natalie","Natálie","Nataša","Neda","Nela","Nevena","Nika","Niké","Nikodéma","Nikol","Nikola","Nila","Nina","Noema","Noemi","Nona","Nora","Norberta","Norma","Odeta","Ofélie","Oktavie","Oktávie","Oldřiška","Olga","Oliva","Olivie","Olympie","Ondřejka","Otakara","Otilie","Otýlie","Oxana","Palmira","Pamela","Paskala","Patricie","Pavla","Pavlína","Pelagie","Penelopa","Perla","Persida","Perzida","Petra","Petrana","Petronela","Petronila","Petruše","Petula","Pilar","Polyxena","Pravdomila","Pravomila","Pravoslav","Pravoslava","Priscila","Priska","Prokopa","Přibyslava","Radana","Radimíra","Radislava","Radka","Radmila","Radomila","Radomíra","Radoslava","Radovana","Radslava","Rafaela","Ráchel","Raisa","Rajsa","Ramona","Rastislava","Rebeka","Regina","Regína","Renata","Renáta","René","Ria","Riana","Richarda","Rina","Rita","Roberta","Robina","Romana","Rosa","Rosalinda","Rosamunda","Rosana","Rostislava","Rovena","Roxana","Róza","Rozálie","Rozalinda","Rozamunda","Rozana","Rozina","Rozita","Rozvita","Rudolfa","Rudolfina","Rudolfína","Rut","Rút","Růžena","Řehořka","Sabina","Sabrina","Salomea","Salomena","Samuela","Sandra","Sára","Saskia","Saskie","Saxona","Selena","Selma","Senta","Serafína","Serena","Scholastika","Sibyla","Sidonie","Silvána","Silvie","Simeona","Simona","Skarlet","Skarleta","Slavěna","Slávka","Slavomila","Slavomíra","Soběslava","Sofie","Sofronie","Solveig","Solveiga","Soňa","Sotira","Stanislava","Stáza","Stela","Svatava","Svatoslava","Světla","Světlana","Světluše","Sylva","Sylvie","Sylvie","Šárka","Šarlota","Šimona","Štěpána","Štěpánka","Tamara","Táňa","Taťána","Tea","Tekla","Teodora","Teodozie","Teofila","Tereza","Terezie","Thea","Theodora","Theodosie","Theofila","Tomáška","Toska","Ulrika","Una","Uršula","Václava","Valburga","Valdemara","Valentina","Valentýna","Valerie","Valérie","Vanda","Vanesa","Věduna","Veleslava","Velislava","Věnceslava","Vendelína","Vendula","Vendulka","Věnka","Venuše","Věra","Verona","Veronika","Věroslava","Věslava","Vesna","Viktorie","Viléma","Vilemína","Vilma","Vincencie","Viola","Violeta","Virginie","Virgínie","Víta","Vítězslava","Viviana","Vladana","Vladěna","Vladimíra","Vladislava","Vlasta","Vlastimila","Vlastimíra","Vlastislava","Vojmíra","Vojslava","Vojtěška","Voršila","Vratislava","Xaverie","Xenie","Zaida","Zaira","Zbyhněva","Zbyňka","Zbyslava","Zbyška","Zdena","Zdenka","Zdeňka","Zdeslava","Zdislava","Zenobie","Zina","Zinaida","Zita","Zlata","Zlatomíra","Zlatuše","Zoe","Zoja","Zora","Zoroslava","Zuzana","Zvonimíra","Žakelina","Žakelína","Žaneta","Ždana","Želimíra","Želislava","Želmíra","Žitomíra","Žitoslava","Živa","Živana","Žofie"]})(l0n);var c0n=l0n.exports,u0n={exports:{}};(function(t){t.exports=["Abadon","Abdon","Ábel","Abelard","Abraham","Abrahám","Absolon","Absolón","Adalbert","Adam","Adin","Adolf","Adrian","Adrián","Agaton","Achil","Achiles","Alan","Alban","Albert","Albín","Albrecht","Aldo","Alen","Aleš","Alexandr","Alexej","Alfons","Alfréd","Alois","Alojz","Alva","Alvar","Alvin","Amadeus","Amand","Amát","Ambrož","Amos","Ámos","Anastáz","Anatol","Anděl","Andělín","Andrej","Anselm","Antal","Antonín","Aram","Ariel","Aristid","Arkád","Armand","Armin","Arne","Arnold","Arnošt","Áron","Árón","Arpád","Arsen","Artur","Artuš","Arzen","Atanas","Atanáš","Atila","August","Augustin","Augustýn","Aurel","Aurelián","Axel","Baltazar","Barnabáš","Bartoloměj","Basil","Bazil","Beatus","Bedřich","Benedikt","Benjamin","Benjamín","Bernard","Bertold","Bertram","Bivoj","Blahomil","Blahomír","Blahoslav","Blažej","Bohdan","Bohuchval","Bohumil","Bohumír","Bohun","Bohuslav","Bohuš","Bojan","Bolemír","Boleslav","Bonifác","Borek","Boris","Borislav","Bořek","Bořislav","Bořivoj","Božetěch","Božidar","Božislav","Branimír","Branislav","Bratislav","Bret","Brian","Brit","Bronislav","Bruno","Břetislav","Budimír","Budislav","Budivoj","Cecil","Cedrik","Celestin","Celestýn","César","Cézar","Ctibor","Ctirad","Ctislav","Cyprián","Cyril","Čeněk","Čestmír","Čistoslav","Dag","Dalibor","Dalimil","Dalimír","Damián","Dan","Daniel","Darek","Darius","David","Denis","Děpold","Dětmar","Dětřich","Dezider","Dimitrij","Dino","Dionýz","Dionýzos","Diviš","Dluhoš","Dobromil","Dobromír","Dobroslav","Dominik","Donald","Donát","Dorian","Dorián","Drahomil","Drahomír","Drahoň","Drahoslav","Drahoš","Drahotín","Drahutin","Dušan","Edgar","Edmond","Edmund","Eduard","Edvard","Edvin","Edvín","Egmont","Egon","Eliáš","Elizej","Elizeus","Elmar","Elvis","Emanuel","Emanuel","Emerich","Emil","Emilián","Engelbert","Erazim","Erazmus","Erhard","Erich","Erik","Ernest","Ernst","Ervín","Eugen","Eusebius","Evald","Evan","Evarist","Evžen","Ezechiel","Ezra","Fabián","Faust","Faustin","Faustýn","Fedor","Felicián","Felix","Ferdinand","Fidel","Fidelius","Filemon","Filibert","Filip","Filomen","Flavián","Flavius","Florentin","Florentýn","Florián","Fortunát","Fráňa","Franc","František","Fridolín","Gabin","Gabriel","Gál","Garik","Gaston","Gedeon","Gejza","Genadij","Gerald","Gerard","Gerazim","Gerhard","Géza","Gilbert","Gleb","Glen","Gorazd","Gordon","Gothard","Gracián","Grant","Gunter","Gűnter","Gustav","Hanuš","Harald","Harold","Haštal","Havel","Helmut","Herbert","Herman","Heřman","Hilar","Hilarius","Hjalmar","Homér","Honor","Honorius","Horác","Horst","Horymír","Hostimil","Hostimír","Hostislav","Hostivít","Hovard","Hubert","Hugo","Hvězdoslav","Hyacint","Hynek","Hypolit","Chrabroš","Chraniboj","Chranibor","Chranislav","Chrudoš","Chval","Ignác","Ignát","Igor","Ilja","Inocenc","Irenej","Ireneus","Irvin","Isidor","Ivan","Ivar","Ivo","Ivor","Izaiáš","Izák","Izidor","Izmael","Jacek","Jáchym","Jakub","Jan","Jarmil","Jarolím","Jaromil","Jaromír","Jaroslav","Jason","Jasoň","Jeremiáš","Jeroným","Jiljí","Jimram","Jindřich","Jiří","Job","Joel","Jonáš","Jonatan","Jonathan","Jordan","Josef","Jošt","Jozef","Jozue","Juda","Julián","Julius","Justin","Justýn","Kajetán","Kamil","Karel","Kasián","Kastor","Kašpar","Kazimír","Kilián","Kim","Klaudián","Klaudius","Klement","Kliment","Knut","Koloman","Kolombín","Kolumbán","Kolumbín","Konrád","Konstantin","Konstantýn","Kornel","Kornelius","Kosma","Kosmas","Krasomil","Krasoslav","Kristián","Kryšpín","Kryštof","Křesomysl","Křišťan","Kurt","Květoň","Květoslav","Květoš","Kvido","Ladislav","Lambert","Lars","Laurenc","Lazar","Leander","Leandr","Leo","Leodegar","Leon","Leonard","Leonid","Leontýn","Leopold","Leoš","Lešek","Lev","Libor","Liboslav","Lionel","Livius","Lorenc","Lotar","Lothar","Lubomír","Lubor","Luboslav","Luboš","Lucián","Lucius","Luděk","Ludivoj","Ludomír","Ludoslav","Ludvík","Lukáš","Lukrecius","Lumír","Lutibor","Lutobor","Magnus","Makar","Manfred","Manfréd","Mansvet","Manuel","Marcel","Marek","Marian","Marián","Marin","Mario","Marius","Martin","Matěj","Matouš","Matyáš","Max","Maxim","Maximilián","Maxmilián","Mečislav","Medard","Melichar","Merlin","Mervin","Metod","Metoděj","Michael","Michal","Mikoláš","Mikuláš","Milan","Milíč","Milík","Milivoj","Miloň","Milorad","Miloslav","Miloš","Milota","Milouš","Milovan","Milovín","Milutín","Mirek","Mirko","Miromil","Miron","Miroslav","Mirtil","Mlad","Mladen","Mnata","Mnislav","Modest","Mojmír","Mojžíš","Morgan","Moric","Moris","Mořic","Mstislav","Myron","Myrtil","Napoleon","Narcis","Natan","Natanael","Nathan","Nathanael","Něhoslav","Neklan","Nepomuk","Nezamysl","Nikita","Nikodém","Nikola","Nikolas","Norbert","Norman","Odolen","Odon","Oktavián","Oktavius","Olaf","Olbram","Oldřich","Oleg","Oliver","Omar","Ondřej","Orest","Oskar","Osvald","Ota","Otakar","Otmar","Oto","Otokar","Otomar","Ovidius","Palmiro","Pankrác","Pantaleon","Paris","Parsival","Paskal","Patrik","Pavel","Pavlín","Pelhřim","Perikles","Petr","Petronius","Pius","Platon","Platón","Polykarp","Pravdomil","Pravomil","Prokop","Prosper","Přemysl","Přibyslav","Radan","Radegast","Radek","Radhost","Radim","Radimír","Radislav","Radivoj","Radko","Radmil","Radomil","Radomír","Radoslav","Radoš","Radovan","Radúz","Radvan","Rafael","Raimund","Rainald","Rainer","Rainhard","Rainold","Rajko","Ralf","Ramon","Randolf","Ranek","Ranko","Rastislav","Ratibor","Ratmír","Redmond","Reginald","Remig","Remus","Renát","René","Richard","Robert","Robin","Robinson","Rodan","Roderik","Rodrigo","Roger","Roch","Roland","Rolf","Roman","Romeo","Romuald","Romul","Romulus","Ronald","Rostislav","Ruben","Rudolf","Rufus","Rupert","Ruprecht","Ruslan","Řehoř","Sába","Sámo","Samson","Samuel","Saturnin","Saul","Sáva","Sebastian","Sebastián","Sebestian","Sedrik","Serafín","Serenus","Sergej","Servác","Severín","Sidon","Sigfríd","Silvan","Silván","Silvestr","Silvius","Simeon","Simon","Sinkler","Sixt","Sixtus","Slávek","Slaviboj","Slavibor","Slavoboj","Slavoj","Slavomil","Slavomír","Smil","Soběslav","Sokrat","Soter","Spytihněv","Stanimír","Stanislav","Stojan","Stojmír","Svatoboj","Svatobor","Svatomír","Svatopluk","Svatoslav","Sven","Svetozar","Šalamoun","Šalomoun","Šavel","Šebastián","Šimon","Šťasta","Štefan","Štěpán","Tadeáš","Tankred","Taras","Teobald","Teodor","Teodorik","Teodoz","Teofan","Teofil","Terenc","Terencius","Theobald","Theodor","Theodorik","Theofan","Theofil","Tiber","Tiberius","Tibor","Tiburcius","Tichomil","Tichomír","Tichon","Timon","Timotej","Timoteus","Timur","Titus","Tobiáš","Tomáš","Tomislav","Tor","Torkvát","Torsten","Tristan","Udo","Ulrich","Upton","Urban","Uve","Václav","Vadim","Valdemar","Valentin","Valentýn","Valerián","Valter","Valtr","Vasil","Vavřinec","Veleslav","Velimír","Velislav","Věnceslav","Vendelín","Věnek","Verner","Věroslav","Vidor","Viktor","Viktorin","Viktorín","Vilém","Vilibald","Vilmar","Vincenc","Virgil","Virgin","Vít","Vítězslav","Vitold","Vítoslav","Vivian","Vladan","Vladimír","Vladislav","Vladivoj","Vlastimil","Vlastimír","Vlastislav","Vlk","Vojen","Vojmil","Vojmír","Vojslav","Vojtěch","Vok","Volfgang","Vratislav","Vsevolod","Všeboj","Všebor","Všerad","Všeslav","Xaver","Xaverius","Záboj","Zachar","Zachariáš","Záviš","Zbislav","Zbyhněv","Zbyněk","Zbyslav","Zbyšek","Zdeněk","Zderad","Zdeslav","Zdík","Zdirad","Zdislav","Zeno","Zenon","Zikmund","Zlatan","Zlatko","Zlatomír","Zoltán","Zoran","Zoroslav","Zosim","Zvonimír","Žarko","Ždan","Želibor","Želimír","Želislav","Želmír","Žitomír","Žitoslav","Živan"]})(u0n);var d0n=u0n.exports;const qNa=c0n,YNa=d0n;var JNa=qNa.concat(YNa),h0n={exports:{}};(function(t){t.exports=["Adamová","Adamcová","Adámková","Albrechtová","Ambrožová","Andělová","Andrlová","Antošová","Bajerová","Balážová","Balcarová","Balogová","Balounová","Baráková","Baranová","Barešová","Bártová","Bartáková","Bartoňová","Bartošová","Bartošková","Bartůňková","Baštová","Bauerová","Bayerová","Bažantová","Bečková","Bečvářová","Bednářová","Bednaříková","Bělohlávková","Bendová","Benešová","Beranová","Beránková","Bergrová","Berková","Berkyová","Bernardová","Bezděková","Bílková","Bílá","Bínová","Bittnerová","Blahová","Bláhová","Blažková","Blechová","Bobková","Bočková","Boháčová","Boháčková","Böhmová","Borovičková","Boučková","Boudová","Boušková","Brabcová","Brabencová","Bradová","Bradáčová","Braunová","Brázdová","Brázdilová","Brejchová","Březinová","Břízová","Brožová","Brožková","Brychtová","Bubeníková","Bučková","Buchtová","Burdová","Burešová","Burianová","Buriánková","Byrtusová","Čadová","Cahová","Čápová","Čapková","Čechová","Čejková","Čermáková","Černíková","Černochová","Černohorská","Černá","Červeňáková","Červenková","Červená","Červinková","Chaloupková","Chalupová","Charvátová","Chládková","Chlupová","Chmelařová","Chmelíková","Chovancová","Chromá","Chudobová","Chvátalová","Chvojková","Chytilová","Cibulková","Čiháková","Cihlářová","Císařová","Čížková","Čonková","Coufalová","Čurdová","Danková","Danilová","Danišová","Davidová","Dědková","Demetrová","Dittrichová","Divišová","Dlouhá","Dobešová","Dobiášová","Dobrovolná","Dočekalová","Dočkalová","Dohnalová","Dokoupilová","Dolečková","Dolejšová","Dolejší","Doležalová","Doleželová","Doskočilová","Dostálová","Doubková","Doubravová","Doušová","Drábková","Drozdová","Dubská","Duchoňová","Dudová","Dudková","Dufková","Dunková","Dušková","Dvořáčková","Dvořáková","Dvorská","Eliášová","Erbenová","Fabiánová","Fantová","Farkašová","Fejfarová","Fenclová","Ferencová","Ferková","Fialová","Fiedlerová","Filipová","Fischerová","Fišerová","Floriánová","Fojtíková","Foltýnová","Formanová","Formánková","Fořtová","Fousková","Francová","Franková","Franková","Fridrichová","Frydrychová","Fuchsová","Fučíková","Fuksová","Gáborová","Gabrielová","Gajdošová","Gažiová","Gottwaldová","Gregorová","Grubrová","Grundzová","Grygarová","Hájková","Hajná","Hálová","Hamplová","Hánová","Hanáčková","Hanáková","Hanousková","Hanusová","Hanušová","Hanzalová","Hanzlová","Hanzlíková","Hartmanová","Hašková","Havlová","Havelková","Havlíčková","Havlíková","Havránková","Heczková","Hegerová","Hejdová","Hejduková","Hejlová","Hejnová","Hendrychová","Hermanová","Heřmanová","Heřmánková","Hladíková","Hladká","Hlaváčová","Hlaváčková","Hlavatá","Hlávková","Hloušková","Hoffmannová","Hofmanová","Holanová","Holasová","Holcová","Holečková","Holíková","Holoubková","Holubová","Holá","Homolová","Homolková","Horová","Horáčková","Horáková","Hořejší","Horký","Horňáková","Horníčková","Horníková","Horská","Horvátová","Horváthová","Hošková","Houdková","Houšková","Hovorková","Hrabalová","Hrabovská","Hradecká","Hradilová","Hrbáčková","Hrbková","Hrdinová","Hrdličková","Hrdá","Hrnčířová","Hrochová","Hromádková","Hronová","Hrubešová","Hrubá","Hrušková","Hrůzová","Hubáčková","Hudcová","Hudečková","Hůlková","Humlová","Husáková","Hušková","Hýblová","Hynková","Jahodová","Jakešová","Jaklová","Jakoubková","Jakubcová","Janáčková","Janáková","Janatová","Jančová","Jančíková","Jandová","Janečková","Janečková","Janíčková","Janíková","Janků","Janotová","Janoušková","Janovská","Jansová","Jánská","Janů","Jarešová","Jarošová","Jašková","Javůrková","Jechová","Jedličková","Jelenová","Jelínková","Jeníčková","Jeřábková","Ježová","Ježková","Jílková","Jindrová","Jírová","Jiráková","Jiránková","Jirásková","Jiříková","Jirková","Jirků","Jiroušková","Jirsová","Johnová","Jonášová","Junková","Jurčíková","Jurečková","Juřicová","Juříková","Kabátová","Kačírková","Kadeřábková","Kadlecová","Kafková","Kaisrová","Kalová","Kalábová","Kalašová","Kalinová","Kalivodová","Kalousová","Kalousková","Kameníková","Kaňová","Káňová","Kaňková","Kantorová","Kaplanová","Karasová","Karásková","Karbanová","Karlová","Karlíková","Kasalová","Kašíková","Kašparová","Kašpárková","Kavková","Kazdová","Kindlová","Klečková","Kleinová","Klementová","Klímová","Klimentová","Klimešová","Kloučková","Kloudová","Knapová","Knotková","Kochová","Kočí","Kociánová","Kocmanová","Kocourková","Kohoutová","Kohoutková","Koláčková","Kolářová","Kolaříková","Kolková","Kolmanová","Komárková","Komínková","Konečná","Koníčková","Kopalová","Kopečková","Kopecká","Kopečná","Kopřivová","Korbelová","Kořínková","Kosová","Kosíková","Kosinová","Košťálová","Kostková","Kotasová","Kotková","Kotlárová","Kotrbová","Koubová","Koubková","Koudelová","Koudelková","Koukalová","Kouřilová","Koutná","Kováčová","Kovářová","Kovaříková","Kováříková","Kozáková","Kozlová","Krajíčková","Králová","Králíčková","Králíková","Krátká","Kratochvílová","Krausová","Krčmářová","Křečková","Krejčová","Krejčíková","Krejčířová","Křenková","Krištofová","Křivánková","Křížová","Křížková","Kropáčková","Kroupová","Krupová","Krupičková","Krupková","Kubová","Kubánková","Kubátová","Kubcová","Kubelková","Kubešová","Kubicová","Kubíčková","Kubíková","Kubínová","Kubišová","Kučová","Kučerová","Kuchařová","Kuchtová","Kudláčková","Kudrnová","Kuklová","Kulhánková","Kulhavá","Kuncová","Kunešová","Kupcová","Kupková","Kurková","Kuželová","Kvapilová","Kvasničková","Kynclová","Kyselová","Lacinová","Lacková","Lakatošová","Landová","Langová","Langrová","Langrová","Látalová","Lavičková","Le","Lebedová","Levá","Líbalová","Linhartová","Lišková","Lorencová","Loudová","Ludvíková","Lukáčová","Lukášová","Lukášková","Lukešová","Macáková","Macková","Machová","Máchová","Machačová","Macháčová","Macháčková","Machalová","Machálková","Macurová","Majerová","Malečková","Málková","Malíková","Malinová","Malá","Maňáková","Marečková","Marková","Marešová","Maříková","Maršálková","Maršíková","Martincová","Martinková","Martínková","Mašková","Masopustová","Matějíčková","Matějková","Matoušová","Matoušková","Matulová","Matušková","Matyášová","Matysová","Maxová","Mayerová","Mazánková","Medková","Melicharová","Menclová","Menšíková","Mertová","Michalová","Michalcová","Michálková","Michalíková","Michnová","Mičková","Miková","Míková","Mikešová","Miková","Mikulová","Mikulášková","Minářová","Minaříková","Mirgová","Mládková","Mlčochová","Mlejnková","Mojžíšová","Mokrá","Molnárová","Moravcová","Morávková","Motlová","Motyčková","Moučková","Moudrá","Mráčková","Mrázová","Mrázková","Mrkvičková","Muchová","Müllerová","Műllerová","Musilová","Mužíková","Myšková","Nagyová","Najmanová","Navrátilová","Nečasová","Nedbalová","Nedomová","Nedvědová","Nejedlá","Němcová","Němečková","Nešporová","Nesvadbová","Neubauerová","Neumanová","Neumannová","Nguyenová","Nguyen vanová","Nosková","Nováčková","Nováková","Novosadová","Novotná","Nová","Odehnalová","Oláhová","Olivová","Ondrová","Ondráčková","Orságová","Otáhalová","Palečková","Pánková","Papežová","Pařízková","Pašková","Pátková","Patočková","Paulová","Pavlová","Pavelková","Pavelková","Pavlasová","Pavlicová","Pavlíčková","Pavlíková","Pavlů","Pazderová","Pechová","Pechová","Pecháčková","Pecková","Pekařová","Pekárková","Pelcová","Pelikánová","Peřinová","Pernicová","Peroutková","Pešková","Pešková","Peštová","Peterková","Petrová","Petráková","Petrášová","Petříčková","Petříková","Petrů","Pham","Píchová","Pilařová","Pilátová","Píšová","Pivoňková","Plačková","Plachá","Plšková","Pluhařová","Podzimková","Pohlová","Pokorná","Poláčková","Poláchová","Poláková","Polanská","Polášková","Polívková","Popelková","Pospíchalová","Pospíšilová","Potůčková","Pourová","Prachařová","Prášková","Pražáková","Prchalová","Přibylová","Příhodová","Přikrylová","Procházková","Prokešová","Prokopová","Prošková","Provazníková","Průchová","Průšová","Pšeničková","Ptáčková","Rácová","Radová","Raková","Rambousková","Rašková","Ratajová","Řeháčková","Řeháková","Řehořová","Remešová","Řezáčová","Rezková","Řezníčková","Richtrová","Richtrová","Říhová","Roubalová","Rousová","Rozsypalová","Rudolfová","Růžková","Růžičková","Rybová","Rybářová","Rýdlová","Ryšavá","Sadílková","Šafářová","Šafaříková","Šafránková","Šálková","Samková","Šandová","Šašková","Schejbalová","Schmidtová","Schneidrová","Schwarzová","Šebková","Šebelová","Šebestová","Šedová","Šedivá","Sedláčková","Sedláková","Sedlářová","Sehnalová","Seidlová","Seifertová","Sekaninová","Semerádová","Šenková","Šestáková","Ševčíková","Severová","Sikorová","Šilhavá","Šímová","Šimáčková","Šimáková","Šimánková","Šimčíková","Šimečková","Šimková","Šimonová","Šimůnková","Šindelářová","Šindlerová","Šípová","Šípková","Šírová","Široká","Šišková","Siváková","Skácelová","Skalová","Skálová","Skalická","Sklenářová","Škodová","Skopalová","Skořepová","Škrabalová","Skřivánková","Slabá","Sládková","Sladká","Slámová","Slaninová","Slavíčková","Slavíková","Šlechtová","Slezáková","Slováčková","Slováková","Sluková","Smejkalová","Šmejkalová","Smékalová","Šmerdová","Smetanová","Šmídová","Smolová","Smolíková","Smolková","Smrčková","Smržová","Smutná","Šnajdrová","Sobková","Sobotková","Sochorová","Sojková","Sokolová","Šolcová","Sommrová","Součková","Soukupová","Sovová","Špačková","Spáčilová","Špičková","Šplíchalová","Spurná","Šrámková","Srbová","Staňková","Stárková","Stará","Šťastná","Štefanová","Štefková","Šteflová","Stehlíková","Steinerová","Stejskalová","Štěpánová","Štěpánková","Štěrbová","Stiborová","Stoklasová","Straková","Stránská","Strejčková","Strnadová","Strouhalová","Stuchlíková","Studená","Studničková","Stupková","Šubrtová","Suchánková","Suchomelová","Suchá","Suková","Šulcová","Šustrová","Švábová","Svačinová","Švandová","Švarcová","Svatoňová","Svatošová","Švecová","Švehlová","Švejdová","Švestková","Světlíková","Svitáková","Svobodová","Svozilová","Sýkorová","Synková","Syrová","Táborská","Tancošová","Teplá","Tesařová","Tichá","Tomanová","Tománková","Tomášová","Tomášková","Tomečková","Tomková","Tomešová","Tóthová","Tranová","Trávníčková","Trčková","Třísková","Trnková","Trojanová","Truhlářová","Tučková","Tůmová","Turečková","Turková","Tvrdíková","Tvrdá","Uhrová","Uhlířová","Ulrichová","Urbanová","Urbancová","Urbánková","Vacková","Váchová","Václavková","Václavíková","Vaculíková","Vágnerová","Valová","Valášková","Válková","Valentová","Valešová","Váňová","Vančurová","Vaněčková","Vaňková","Vaníčková","Vargová","Vašáková","Vašková","Vašíčková","Vávrová","Vavříková","Večeřová","Vejvodová","Vernerová","Veselá","Veverková","Víchová","Vilímková","Vinšová","Víšková","Vítová","Vitásková","Vítková","Vlachová","Vlasáková","Vlčková","Vlková","Vobořilová","Vodáková","Vodičková","Vodrážková","Vojáčková","Vojtová","Vojtěchová","Vojtková","Vojtíšková","Vokounová","Volková","Volfová","Volná","Vondrová","Vondráčková","Vondráková","Voráčková","Vorlová","Voříšková","Vorlíčková","Votavová","Votrubová","Vrabcová","Vránová","Vrbová","Vrzalová","Vybíralová","Vydrová","Vymazalová","Vyskočilová","Vysloužilová","Wagnerová","Waltrová","Webrová","Weissová","Winklerová","Wolfová","Zábranská","Žáčková","Zachová","Zahrádková","Zahradníková","Zajícová","Zajíčková","Žáková","Zálešáková","Zámečníková","Zapletalová","Zárubová","Zatloukalová","Zavadilová","Zavřelová","Zbořilová","Žďárská","Zdražilová","Zedníková","Zelenková","Zelená","Zelinková","Zemanová","Zemánková","Žemličková","Zezulová","Žídková","Žigová","Zíková","Zikmundová","Zimová","Žižková","Zlámalová","Zoubková","Zouharová","Žůrková","Zvěřinová"]})(h0n);var f0n=h0n.exports,p0n={exports:{}};(function(t){t.exports=["Adam","Adamec","Adámek","Albrecht","Ambrož","Anděl","Andrle","Antoš","Bajer","Baláž","Balcar","Balog","Baloun","Barák","Baran","Bareš","Bárta","Barták","Bartoň","Bartoš","Bartošek","Bartůněk","Bašta","Bauer","Bayer","Bažant","Bečka","Bečvář","Bednář","Bednařík","Bělohlávek","Benda","Beneš","Beran","Beránek","Berger","Berka","Berky","Bernard","Bezděk","Bílek","Bílý","Bína","Bittner","Blaha","Bláha","Blažek","Blecha","Bobek","Boček","Boháč","Boháček","Böhm","Borovička","Bouček","Bouda","Bouška","Brabec","Brabenec","Brada","Bradáč","Braun","Brázda","Brázdil","Brejcha","Březina","Bříza","Brož","Brožek","Brychta","Bubeník","Buček","Buchta","Burda","Bureš","Burian","Buriánek","Byrtus","Čada","Caha","Čáp","Čapek","Čech","Čejka","Čermák","Černík","Černoch","Černohorský","Černý","Červeňák","Červenka","Červený","Červinka","Chaloupka","Chalupa","Charvát","Chládek","Chlup","Chmelař","Chmelík","Chovanec","Chromý","Chudoba","Chvátal","Chvojka","Chytil","Cibulka","Čihák","Cihlář","Císař","Čížek","Čonka","Coufal","Čurda","Daněk","Daniel","Daniš","David","Dědek","Demeter","Dittrich","Diviš","Dlouhý","Dobeš","Dobiáš","Dobrovolný","Dočekal","Dočkal","Dohnal","Dokoupil","Doleček","Dolejš","Dolejší","Doležal","Doležel","Doskočil","Dostál","Doubek","Doubrava","Douša","Drábek","Drozd","Dubský","Duchoň","Duda","Dudek","Dufek","Dunka","Dušek","Dvořáček","Dvořák","Dvorský","Eliáš","Erben","Fabián","Fanta","Farkaš","Fejfar","Fencl","Ferenc","Ferko","Fiala","Fiedler","Filip","Fischer","Fišer","Florián","Fojtík","Foltýn","Forman","Formánek","Fořt","Fousek","Franc","Franěk","Frank","Fridrich","Frydrych","Fuchs","Fučík","Fuksa","Gábor","Gabriel","Gajdoš","Gaži","Gottwald","Gregor","Gruber","Grundza","Grygar","Hájek","Hajný","Hála","Hampl","Hána","Hanáček","Hanák","Hanousek","Hanus","Hanuš","Hanzal","Hanzl","Hanzlík","Hartman","Hašek","Havel","Havelka","Havlíček","Havlík","Havránek","Heczko","Heger","Hejda","Hejduk","Hejl","Hejna","Hendrych","Herman","Heřman","Heřmánek","Hladík","Hladký","Hlaváč","Hlaváček","Hlavatý","Hlávka","Hloušek","Hoffmann","Hofman","Holan","Holas","Holec","Holeček","Holík","Holoubek","Holub","Holý","Homola","Homolka","Hora","Horáček","Horák","Hořejší","Horký","Horňák","Horníček","Horník","Horský","Horvát","Horváth","Hošek","Houdek","Houška","Hovorka","Hrabal","Hrabovský","Hradecký","Hradil","Hrbáček","Hrbek","Hrdina","Hrdlička","Hrdý","Hrnčíř","Hroch","Hromádka","Hron","Hrubeš","Hrubý","Hruška","Hrůza","Hubáček","Hudec","Hudeček","Hůlka","Huml","Husák","Hušek","Hýbl","Hynek","Jahoda","Jakeš","Jakl","Jakoubek","Jakubec","Janáček","Janák","Janata","Janča","Jančík","Janda","Janeček","Janečka","Janíček","Janík","Janků","Janota","Janoušek","Janovský","Jansa","Jánský","Janů","Jareš","Jaroš","Jašek","Javůrek","Jech","Jedlička","Jelen","Jelínek","Jeníček","Jeřábek","Jež","Ježek","Jílek","Jindra","Jíra","Jirák","Jiránek","Jirásek","Jiřík","Jirka","Jirků","Jiroušek","Jirsa","John","Jonáš","Junek","Jurčík","Jurečka","Juřica","Juřík","Kabát","Kačírek","Kadeřábek","Kadlec","Kafka","Kaiser","Kala","Kaláb","Kalaš","Kalina","Kalivoda","Kalous","Kalousek","Kameník","Kaňa","Káňa","Kaňka","Kantor","Kaplan","Karas","Karásek","Karban","Karel","Karlík","Kasal","Kašík","Kašpar","Kašpárek","Kavka","Kazda","Kindl","Klečka","Klein","Klement","Klíma","Kliment","Klimeš","Klouček","Klouda","Knap","Knotek","Koch","Kočí","Kocián","Kocman","Kocourek","Kohout","Kohoutek","Koláček","Kolář","Kolařík","Kolek","Kolman","Komárek","Komínek","Konečný","Koníček","Kopal","Kopeček","Kopecký","Kopečný","Kopřiva","Korbel","Kořínek","Kos","Kosík","Kosina","Košťál","Kostka","Kotas","Kotek","Kotlár","Kotrba","Kouba","Koubek","Koudela","Koudelka","Koukal","Kouřil","Koutný","Kováč","Kovář","Kovařík","Kovářík","Kozák","Kozel","Krajíček","Král","Králíček","Králík","Krátký","Kratochvíl","Kraus","Krčmář","Křeček","Krejčí","Krejčík","Krejčíř","Křenek","Krištof","Křivánek","Kříž","Křížek","Kropáček","Kroupa","Krupa","Krupička","Krupka","Kuba","Kubánek","Kubát","Kubec","Kubelka","Kubeš","Kubica","Kubíček","Kubík","Kubín","Kubiš","Kuča","Kučera","Kuchař","Kuchta","Kudláček","Kudrna","Kukla","Kulhánek","Kulhavý","Kunc","Kuneš","Kupec","Kupka","Kurka","Kužel","Kvapil","Kvasnička","Kyncl","Kysela","Lacina","Lacko","Lakatoš","Landa","Lang","Langer","Langr","Látal","Lavička","Le","Lebeda","Levý","Líbal","Linhart","Liška","Lorenc","Louda","Ludvík","Lukáč","Lukáš","Lukášek","Lukeš","Macák","Macek","Mach","Mácha","Machač","Macháč","Macháček","Machala","Machálek","Macura","Majer","Maleček","Málek","Malík","Malina","Malý","Maňák","Mareček","Marek","Mareš","Mařík","Maršálek","Maršík","Martinec","Martinek","Martínek","Mašek","Masopust","Matějíček","Matějka","Matouš","Matoušek","Matula","Matuška","Matyáš","Matys","Maxa","Mayer","Mazánek","Medek","Melichar","Mencl","Menšík","Merta","Michal","Michalec","Michálek","Michalík","Michna","Mička","Mika","Míka","Mikeš","Miko","Mikula","Mikulášek","Minář","Minařík","Mirga","Mládek","Mlčoch","Mlejnek","Mojžíš","Mokrý","Molnár","Moravec","Morávek","Motl","Motyčka","Moučka","Moudrý","Mráček","Mráz","Mrázek","Mrkvička","Mucha","Müller","Műller","Musil","Mužík","Myška","Nagy","Najman","Navrátil","Nečas","Nedbal","Nedoma","Nedvěd","Nejedlý","Němec","Němeček","Nešpor","Nesvadba","Neubauer","Neuman","Neumann","Nguyen","Nguyen van","Nosek","Nováček","Novák","Novosad","Novotný","Nový","Odehnal","Oláh","Oliva","Ondra","Ondráček","Orság","Otáhal","Paleček","Pánek","Papež","Pařízek","Pašek","Pátek","Patočka","Paul","Pavel","Pavelek","Pavelka","Pavlas","Pavlica","Pavlíček","Pavlík","Pavlů","Pazdera","Pech","Pecha","Pecháček","Pecka","Pekař","Pekárek","Pelc","Pelikán","Peřina","Pernica","Peroutka","Pešek","Peška","Pešta","Peterka","Petr","Petrák","Petráš","Petříček","Petřík","Petrů","Pham","Pícha","Pilař","Pilát","Píša","Pivoňka","Plaček","Plachý","Plšek","Pluhař","Podzimek","Pohl","Pokorný","Poláček","Polách","Polák","Polanský","Polášek","Polívka","Popelka","Pospíchal","Pospíšil","Potůček","Pour","Prachař","Prášek","Pražák","Prchal","Přibyl","Příhoda","Přikryl","Procházka","Prokeš","Prokop","Prošek","Provazník","Průcha","Průša","Pšenička","Ptáček","Rác","Rada","Rak","Rambousek","Raška","Rataj","Řeháček","Řehák","Řehoř","Remeš","Řezáč","Rezek","Řezníček","Richter","Richtr","Říha","Roubal","Rous","Rozsypal","Rudolf","Růžek","Růžička","Ryba","Rybář","Rýdl","Ryšavý","Sadílek","Šafář","Šafařík","Šafránek","Šálek","Samek","Šanda","Šašek","Schejbal","Schmidt","Schneider","Schwarz","Šebek","Šebela","Šebesta","Šeda","Šedivý","Sedláček","Sedlák","Sedlář","Sehnal","Seidl","Seifert","Sekanina","Semerád","Šenk","Šesták","Ševčík","Severa","Sikora","Šilhavý","Šíma","Šimáček","Šimák","Šimánek","Šimčík","Šimeček","Šimek","Šimon","Šimůnek","Šindelář","Šindler","Šíp","Šípek","Šír","Široký","Šiška","Sivák","Skácel","Skala","Skála","Skalický","Sklenář","Škoda","Skopal","Skořepa","Škrabal","Skřivánek","Slabý","Sládek","Sladký","Sláma","Slanina","Slavíček","Slavík","Šlechta","Slezák","Slováček","Slovák","Sluka","Smejkal","Šmejkal","Smékal","Šmerda","Smetana","Šmíd","Smola","Smolík","Smolka","Smrčka","Smrž","Smutný","Šnajdr","Sobek","Sobotka","Sochor","Sojka","Sokol","Šolc","Sommer","Souček","Soukup","Sova","Špaček","Spáčil","Špička","Šplíchal","Spurný","Šrámek","Srb","Staněk","Stárek","Starý","Šťastný","Štefan","Štefek","Štefl","Stehlík","Steiner","Stejskal","Štěpán","Štěpánek","Štěrba","Stibor","Stoklasa","Straka","Stránský","Strejček","Strnad","Strouhal","Stuchlík","Studený","Studnička","Stupka","Šubrt","Suchánek","Suchomel","Suchý","Suk","Šulc","Šustr","Šváb","Svačina","Švanda","Švarc","Svatoň","Svatoš","Švec","Švehla","Švejda","Švestka","Světlík","Sviták","Svoboda","Svozil","Sýkora","Synek","Syrový","Táborský","Tancoš","Teplý","Tesař","Tichý","Toman","Tománek","Tomáš","Tomášek","Tomeček","Tomek","Tomeš","Tóth","Tran","Trávníček","Trčka","Tříska","Trnka","Trojan","Truhlář","Tuček","Tůma","Tureček","Turek","Tvrdík","Tvrdý","Uher","Uhlíř","Ulrich","Urban","Urbanec","Urbánek","Vacek","Vácha","Václavek","Václavík","Vaculík","Vágner","Vala","Valášek","Válek","Valenta","Valeš","Váňa","Vančura","Vaněček","Vaněk","Vaníček","Varga","Vašák","Vašek","Vašíček","Vávra","Vavřík","Večeřa","Vejvoda","Verner","Veselý","Veverka","Vícha","Vilímek","Vinš","Víšek","Vít","Vitásek","Vítek","Vlach","Vlasák","Vlček","Vlk","Vobořil","Vodák","Vodička","Vodrážka","Vojáček","Vojta","Vojtěch","Vojtek","Vojtíšek","Vokoun","Volek","Volf","Volný","Vondra","Vondráček","Vondrák","Voráček","Vorel","Voříšek","Vorlíček","Votava","Votruba","Vrabec","Vrána","Vrba","Vrzal","Vybíral","Vydra","Vymazal","Vyskočil","Vysloužil","Wagner","Walter","Weber","Weiss","Winkler","Wolf","Zábranský","Žáček","Zach","Zahrádka","Zahradník","Zajíc","Zajíček","Žák","Zálešák","Zámečník","Zapletal","Záruba","Zatloukal","Zavadil","Zavřel","Zbořil","Žďárský","Zdražil","Zedník","Zelenka","Zelený","Zelinka","Zeman","Zemánek","Žemlička","Zezula","Žídek","Žiga","Zíka","Zikmund","Zima","Žižka","Zlámal","Zoubek","Zouhar","Žůrek","Zvěřina"]})(p0n);var m0n=p0n.exports;const ZNa=f0n,XNa=m0n;var eIa=ZNa.concat(XNa),g0n={exports:{}};(function(t){t.exports=["Ing.","Mgr.","JUDr.","MUDr."]})(g0n);var tIa=g0n.exports,v0n={exports:{}};(function(t){t.exports=["Phd."]})(v0n);var nIa=v0n.exports,A0n={exports:{}};(function(t){t.exports={descriptor:["Lead","Senior","Direct","Corporate","Dynamic","Future","Product","National","Regional","District","Central","Global","Customer","Investor","Dynamic","International","Legacy","Forward","Internal","Human","Chief","Principal"],level:["Solutions","Program","Brand","Security","Research","Marketing","Directives","Implementation","Integration","Functionality","Response","Paradigm","Tactics","Identity","Markets","Group","Division","Applications","Optimization","Operations","Infrastructure","Intranet","Communications","Web","Branding","Quality","Assurance","Mobility","Accounts","Data","Creative","Configuration","Accountability","Interactions","Factors","Usability","Metrics"],job:["Supervisor","Associate","Executive","Liason","Officer","Manager","Engineer","Specialist","Director","Coordinator","Administrator","Architect","Analyst","Designer","Planner","Orchestrator","Technician","Developer","Producer","Consultant","Assistant","Facilitator","Agent","Representative","Strategist"]}})(A0n);var rIa=A0n.exports,y0n={exports:{}};(function(t){t.exports=["#{prefix} #{male_first_name} #{male_last_name}","#{prefix} #{female_first_name} #{female_last_name}","#{male_first_name} #{male_last_name} #{suffix}","#{female_first_name} #{female_last_name} #{suffix}","#{male_first_name} #{male_last_name}","#{male_first_name} #{male_last_name}","#{male_first_name} #{male_last_name}","#{female_first_name} #{female_last_name}","#{female_first_name} #{female_last_name}","#{female_first_name} #{female_last_name}"]})(y0n);var iIa=y0n.exports;(function(t){var e={};t.exports=e,e.first_name=JNa,e.last_name=eIa,e.male_first_name=d0n,e.female_first_name=c0n,e.male_last_name=m0n,e.female_last_name=f0n,e.prefix=tIa,e.suffix=nIa,e.title=rIa,e.name=iIa})(s0n);var aIa=s0n.exports,b0n={exports:{}},x0n={exports:{}};(function(t){t.exports=["601 ### ###","737 ### ###","736 ### ###","### ### ###","+420 ### ### ###","00420 ### ### ###"]})(x0n);var oIa=x0n.exports;(function(t){var e={};t.exports=e,e.formats=oIa})(b0n);var sIa=b0n.exports,E0n={exports:{}},S0n={exports:{}};(function(t){t.exports={wide:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],wide_context:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],abbr:["Led","Úno","Bře","Dub","Kvě","Čer","Črc","Srp","Zář","Říj","Lis","Pro"],abbr_context:["Led","Úno","Bře","Dub","Kvě","Čer","Črc","Srp","Zář","Říj","Lis","Pro"]}})(S0n);var lIa=S0n.exports,w0n={exports:{}};(function(t){t.exports={wide:["Pondělí","Úterý","Středa","čtvrtek","Pátek","Sobota","Neděle"],wide_context:["Pondělí","Úterý","Středa","čtvrtek","Pátek","Sobota","Neděle"],abbr:["Po","Út","St","čt","Pá","So","Ne"],abbr_context:["Po","Út","St","čt","Pá","So","Ne"]}})(w0n);var cIa=w0n.exports;(function(t){var e={};t.exports=e,e.month=lIa,e.weekday=cIa})(E0n);var uIa=E0n.exports;(function(t){var e={};t.exports=e,e.title="Czech",e.address=LNa,e.company=zNa,e.internet=KNa,e.lorem=QNa,e.name=aIa,e.phone_number=sIa,e.date=uIa})(Ovn);var dIa=Ovn.exports,_0n={exports:{}},T0n={exports:{}},C0n={exports:{}};(function(t){t.exports=["Nord","Ost","West","Süd","Neu","Alt","Bad"]})(C0n);var hIa=C0n.exports,k0n={exports:{}};(function(t){t.exports=["stadt","dorf","land","scheid","burg"]})(k0n);var fIa=k0n.exports,R0n={exports:{}};(function(t){t.exports=["Ägypten","Äquatorialguinea","Äthiopien","Österreich","Afghanistan","Albanien","Algerien","Amerikanisch-Samoa","Amerikanische Jungferninseln","Andorra","Angola","Anguilla","Antarktis","Antigua und Barbuda","Argentinien","Armenien","Aruba","Aserbaidschan","Australien","Bahamas","Bahrain","Bangladesch","Barbados","Belarus","Belgien","Belize","Benin","die Bermudas","Bhutan","Bolivien","Bosnien und Herzegowina","Botsuana","Bouvetinsel","Brasilien","Britische Jungferninseln","Britisches Territorium im Indischen Ozean","Brunei Darussalam","Bulgarien","Burkina Faso","Burundi","Chile","China","Cookinseln","Costa Rica","Dänemark","Demokratische Republik Kongo","Demokratische Volksrepublik Korea","Deutschland","Dominica","Dominikanische Republik","Dschibuti","Ecuador","El Salvador","Eritrea","Estland","Färöer","Falklandinseln","Fidschi","Finnland","Frankreich","Französisch-Guayana","Französisch-Polynesien","Französische Gebiete im südlichen Indischen Ozean","Gabun","Gambia","Georgien","Ghana","Gibraltar","Grönland","Grenada","Griechenland","Guadeloupe","Guam","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Heard und McDonaldinseln","Honduras","Hongkong","Indien","Indonesien","Irak","Iran","Irland","Island","Israel","Italien","Jamaika","Japan","Jemen","Jordanien","Jugoslawien","Kaimaninseln","Kambodscha","Kamerun","Kanada","Kap Verde","Kasachstan","Katar","Kenia","Kirgisistan","Kiribati","Kleinere amerikanische Überseeinseln","Kokosinseln","Kolumbien","Komoren","Kongo","Kroatien","Kuba","Kuwait","Laos","Lesotho","Lettland","Libanon","Liberia","Libyen","Liechtenstein","Litauen","Luxemburg","Macau","Madagaskar","Malawi","Malaysia","Malediven","Mali","Malta","ehemalige jugoslawische Republik Mazedonien","Marokko","Marshallinseln","Martinique","Mauretanien","Mauritius","Mayotte","Mexiko","Mikronesien","Monaco","Mongolei","Montserrat","Mosambik","Myanmar","Nördliche Marianen","Namibia","Nauru","Nepal","Neukaledonien","Neuseeland","Nicaragua","Niederländische Antillen","Niederlande","Niger","Nigeria","Niue","Norfolkinsel","Norwegen","Oman","Osttimor","Pakistan","Palau","Panama","Papua-Neuguinea","Paraguay","Peru","Philippinen","Pitcairninseln","Polen","Portugal","Puerto Rico","Réunion","Republik Korea","Republik Moldau","Ruanda","Rumänien","Russische Föderation","São Tomé und Príncipe","Südafrika","Südgeorgien und Südliche Sandwichinseln","Salomonen","Sambia","Samoa","San Marino","Saudi-Arabien","Schweden","Schweiz","Senegal","Seychellen","Sierra Leone","Simbabwe","Singapur","Slowakei","Slowenien","Somalien","Spanien","Sri Lanka","St. Helena","St. Kitts und Nevis","St. Lucia","St. Pierre und Miquelon","St. Vincent und die Grenadinen","Sudan","Surinam","Svalbard und Jan Mayen","Swasiland","Syrien","Türkei","Tadschikistan","Taiwan","Tansania","Thailand","Togo","Tokelau","Tonga","Trinidad und Tobago","Tschad","Tschechische Republik","Tunesien","Turkmenistan","Turks- und Caicosinseln","Tuvalu","Uganda","Ukraine","Ungarn","Uruguay","Usbekistan","Vanuatu","Vatikanstadt","Venezuela","Vereinigte Arabische Emirate","Vereinigte Staaten","Vereinigtes Königreich","Vietnam","Wallis und Futuna","Weihnachtsinsel","Westsahara","Zentralafrikanische Republik","Zypern"]})(R0n);var pIa=R0n.exports,M0n={exports:{}};(function(t){t.exports=["Ackerweg","Adalbert-Stifter-Str.","Adalbertstr.","Adolf-Baeyer-Str.","Adolf-Kaschny-Str.","Adolf-Reichwein-Str.","Adolfsstr.","Ahornweg","Ahrstr.","Akazienweg","Albert-Einstein-Str.","Albert-Schweitzer-Str.","Albertus-Magnus-Str.","Albert-Zarthe-Weg","Albin-Edelmann-Str.","Albrecht-Haushofer-Str.","Aldegundisstr.","Alexanderstr.","Alfred-Delp-Str.","Alfred-Kubin-Str.","Alfred-Stock-Str.","Alkenrather Str.","Allensteiner Str.","Alsenstr.","Alt Steinbücheler Weg","Alte Garten","Alte Heide","Alte Landstr.","Alte Ziegelei","Altenberger Str.","Altenhof","Alter Grenzweg","Altstadtstr.","Am Alten Gaswerk","Am Alten Schafstall","Am Arenzberg","Am Benthal","Am Birkenberg","Am Blauen Berg","Am Borsberg","Am Brungen","Am Büchelter Hof","Am Buttermarkt","Am Ehrenfriedhof","Am Eselsdamm","Am Falkenberg","Am Frankenberg","Am Gesundheitspark","Am Gierlichshof","Am Graben","Am Hagelkreuz","Am Hang","Am Heidkamp","Am Hemmelrather Hof","Am Hofacker","Am Hohen Ufer","Am Höllers Eck","Am Hühnerberg","Am Jägerhof","Am Junkernkamp","Am Kemperstiegel","Am Kettnersbusch","Am Kiesberg","Am Klösterchen","Am Knechtsgraben","Am Köllerweg","Am Köttersbach","Am Kreispark","Am Kronefeld","Am Küchenhof","Am Kühnsbusch","Am Lindenfeld","Am Märchen","Am Mittelberg","Am Mönchshof","Am Mühlenbach","Am Neuenhof","Am Nonnenbruch","Am Plattenbusch","Am Quettinger Feld","Am Rosenhügel","Am Sandberg","Am Scherfenbrand","Am Schokker","Am Silbersee","Am Sonnenhang","Am Sportplatz","Am Stadtpark","Am Steinberg","Am Telegraf","Am Thelenhof","Am Vogelkreuz","Am Vogelsang","Am Vogelsfeldchen","Am Wambacher Hof","Am Wasserturm","Am Weidenbusch","Am Weiher","Am Weingarten","Am Werth","Amselweg","An den Irlen","An den Rheinauen","An der Bergerweide","An der Dingbank","An der Evangelischen Kirche","An der Evgl. Kirche","An der Feldgasse","An der Fettehenne","An der Kante","An der Laach","An der Lehmkuhle","An der Lichtenburg","An der Luisenburg","An der Robertsburg","An der Schmitten","An der Schusterinsel","An der Steinrütsch","An St. Andreas","An St. Remigius","Andreasstr.","Ankerweg","Annette-Kolb-Str.","Apenrader Str.","Arnold-Ohletz-Str.","Atzlenbacher Str.","Auerweg","Auestr.","Auf dem Acker","Auf dem Blahnenhof","Auf dem Bohnbüchel","Auf dem Bruch","Auf dem End","Auf dem Forst","Auf dem Herberg","Auf dem Lehn","Auf dem Stein","Auf dem Weierberg","Auf dem Weiherhahn","Auf den Reien","Auf der Donnen","Auf der Grieße","Auf der Ohmer","Auf der Weide","Auf'm Berg","Auf'm Kamp","Augustastr.","August-Kekulé-Str.","A.-W.-v.-Hofmann-Str.","Bahnallee","Bahnhofstr.","Baltrumstr.","Bamberger Str.","Baumberger Str.","Bebelstr.","Beckers Kämpchen","Beerenstr.","Beethovenstr.","Behringstr.","Bendenweg","Bensberger Str.","Benzstr.","Bergische Landstr.","Bergstr.","Berliner Platz","Berliner Str.","Bernhard-Letterhaus-Str.","Bernhard-Lichtenberg-Str.","Bernhard-Ridder-Str.","Bernsteinstr.","Bertha-Middelhauve-Str.","Bertha-von-Suttner-Str.","Bertolt-Brecht-Str.","Berzeliusstr.","Bielertstr.","Biesenbach","Billrothstr.","Birkenbergstr.","Birkengartenstr.","Birkenweg","Bismarckstr.","Bitterfelder Str.","Blankenburg","Blaukehlchenweg","Blütenstr.","Boberstr.","Böcklerstr.","Bodelschwinghstr.","Bodestr.","Bogenstr.","Bohnenkampsweg","Bohofsweg","Bonifatiusstr.","Bonner Str.","Borkumstr.","Bornheimer Str.","Borsigstr.","Borussiastr.","Bracknellstr.","Brahmsweg","Brandenburger Str.","Breidenbachstr.","Breslauer Str.","Bruchhauser Str.","Brückenstr.","Brucknerstr.","Brüder-Bonhoeffer-Str.","Buchenweg","Bürgerbuschweg","Burgloch","Burgplatz","Burgstr.","Burgweg","Bürriger Weg","Burscheider Str.","Buschkämpchen","Butterheider Str.","Carl-Duisberg-Platz","Carl-Duisberg-Str.","Carl-Leverkus-Str.","Carl-Maria-von-Weber-Platz","Carl-Maria-von-Weber-Str.","Carlo-Mierendorff-Str.","Carl-Rumpff-Str.","Carl-von-Ossietzky-Str.","Charlottenburger Str.","Christian-Heß-Str.","Claasbruch","Clemens-Winkler-Str.","Concordiastr.","Cranachstr.","Dahlemer Str.","Daimlerstr.","Damaschkestr.","Danziger Str.","Debengasse","Dechant-Fein-Str.","Dechant-Krey-Str.","Deichtorstr.","Dhünnberg","Dhünnstr.","Dianastr.","Diedenhofener Str.","Diepental","Diepenthaler Str.","Dieselstr.","Dillinger Str.","Distelkamp","Dohrgasse","Domblick","Dönhoffstr.","Dornierstr.","Drachenfelsstr.","Dr.-August-Blank-Str.","Dresdener Str.","Driescher Hecke","Drosselweg","Dudweilerstr.","Dünenweg","Dünfelder Str.","Dünnwalder Grenzweg","Düppeler Str.","Dürerstr.","Dürscheider Weg","Düsseldorfer Str.","Edelrather Weg","Edmund-Husserl-Str.","Eduard-Spranger-Str.","Ehrlichstr.","Eichenkamp","Eichenweg","Eidechsenweg","Eifelstr.","Eifgenstr.","Eintrachtstr.","Elbestr.","Elisabeth-Langgässer-Str.","Elisabethstr.","Elisabeth-von-Thadden-Str.","Elisenstr.","Elsa-Brändström-Str.","Elsbachstr.","Else-Lasker-Schüler-Str.","Elsterstr.","Emil-Fischer-Str.","Emil-Nolde-Str.","Engelbertstr.","Engstenberger Weg","Entenpfuhl","Erbelegasse","Erftstr.","Erfurter Str.","Erich-Heckel-Str.","Erich-Klausener-Str.","Erich-Ollenhauer-Str.","Erlenweg","Ernst-Bloch-Str.","Ernst-Ludwig-Kirchner-Str.","Erzbergerstr.","Eschenallee","Eschenweg","Esmarchstr.","Espenweg","Euckenstr.","Eulengasse","Eulenkamp","Ewald-Flamme-Str.","Ewald-Röll-Str.","Fährstr.","Farnweg","Fasanenweg","Faßbacher Hof","Felderstr.","Feldkampstr.","Feldsiefer Weg","Feldsiefer Wiesen","Feldstr.","Feldtorstr.","Felix-von-Roll-Str.","Ferdinand-Lassalle-Str.","Fester Weg","Feuerbachstr.","Feuerdornweg","Fichtenweg","Fichtestr.","Finkelsteinstr.","Finkenweg","Fixheider Str.","Flabbenhäuschen","Flensburger Str.","Fliederweg","Florastr.","Florianweg","Flotowstr.","Flurstr.","Föhrenweg","Fontanestr.","Forellental","Fortunastr.","Franz-Esser-Str.","Franz-Hitze-Str.","Franz-Kail-Str.","Franz-Marc-Str.","Freiburger Str.","Freiheitstr.","Freiherr-vom-Stein-Str.","Freudenthal","Freudenthaler Weg","Fridtjof-Nansen-Str.","Friedenberger Str.","Friedensstr.","Friedhofstr.","Friedlandstr.","Friedlieb-Ferdinand-Runge-Str.","Friedrich-Bayer-Str.","Friedrich-Bergius-Platz","Friedrich-Ebert-Platz","Friedrich-Ebert-Str.","Friedrich-Engels-Str.","Friedrich-List-Str.","Friedrich-Naumann-Str.","Friedrich-Sertürner-Str.","Friedrichstr.","Friedrich-Weskott-Str.","Friesenweg","Frischenberg","Fritz-Erler-Str.","Fritz-Henseler-Str.","Fröbelstr.","Fürstenbergplatz","Fürstenbergstr.","Gabriele-Münter-Str.","Gartenstr.","Gebhardstr.","Geibelstr.","Gellertstr.","Georg-von-Vollmar-Str.","Gerhard-Domagk-Str.","Gerhart-Hauptmann-Str.","Gerichtsstr.","Geschwister-Scholl-Str.","Gezelinallee","Gierener Weg","Ginsterweg","Gisbert-Cremer-Str.","Glücksburger Str.","Gluckstr.","Gneisenaustr.","Goetheplatz","Goethestr.","Golo-Mann-Str.","Görlitzer Str.","Görresstr.","Graebestr.","Graf-Galen-Platz","Gregor-Mendel-Str.","Greifswalder Str.","Grillenweg","Gronenborner Weg","Große Kirchstr.","Grunder Wiesen","Grundermühle","Grundermühlenhof","Grundermühlenweg","Grüner Weg","Grunewaldstr.","Grünstr.","Günther-Weisenborn-Str.","Gustav-Freytag-Str.","Gustav-Heinemann-Str.","Gustav-Radbruch-Str.","Gut Reuschenberg","Gutenbergstr.","Haberstr.","Habichtgasse","Hafenstr.","Hagenauer Str.","Hahnenblecher","Halenseestr.","Halfenleimbach","Hallesche Str.","Halligstr.","Hamberger Str.","Hammerweg","Händelstr.","Hannah-Höch-Str.","Hans-Arp-Str.","Hans-Gerhard-Str.","Hans-Sachs-Str.","Hans-Schlehahn-Str.","Hans-von-Dohnanyi-Str.","Hardenbergstr.","Haselweg","Hauptstr.","Haus-Vorster-Str.","Hauweg","Havelstr.","Havensteinstr.","Haydnstr.","Hebbelstr.","Heckenweg","Heerweg","Hegelstr.","Heidberg","Heidehöhe","Heidestr.","Heimstättenweg","Heinrich-Böll-Str.","Heinrich-Brüning-Str.","Heinrich-Claes-Str.","Heinrich-Heine-Str.","Heinrich-Hörlein-Str.","Heinrich-Lübke-Str.","Heinrich-Lützenkirchen-Weg","Heinrichstr.","Heinrich-Strerath-Str.","Heinrich-von-Kleist-Str.","Heinrich-von-Stephan-Str.","Heisterbachstr.","Helenenstr.","Helmestr.","Hemmelrather Weg","Henry-T.-v.-Böttinger-Str.","Herderstr.","Heribertstr.","Hermann-Ehlers-Str.","Hermann-Hesse-Str.","Hermann-König-Str.","Hermann-Löns-Str.","Hermann-Milde-Str.","Hermann-Nörrenberg-Str.","Hermann-von-Helmholtz-Str.","Hermann-Waibel-Str.","Herzogstr.","Heymannstr.","Hindenburgstr.","Hirzenberg","Hitdorfer Kirchweg","Hitdorfer Str.","Höfer Mühle","Höfer Weg","Hohe Str.","Höhenstr.","Höltgestal","Holunderweg","Holzer Weg","Holzer Wiesen","Hornpottweg","Hubertusweg","Hufelandstr.","Hufer Weg","Humboldtstr.","Hummelsheim","Hummelweg","Humperdinckstr.","Hüscheider Gärten","Hüscheider Str.","Hütte","Ilmstr.","Im Bergischen Heim","Im Bruch","Im Buchenhain","Im Bühl","Im Burgfeld","Im Dorf","Im Eisholz","Im Friedenstal","Im Frohental","Im Grunde","Im Hederichsfeld","Im Jücherfeld","Im Kalkfeld","Im Kirberg","Im Kirchfeld","Im Kreuzbruch","Im Mühlenfeld","Im Nesselrader Kamp","Im Oberdorf","Im Oberfeld","Im Rosengarten","Im Rottland","Im Scheffengarten","Im Staderfeld","Im Steinfeld","Im Weidenblech","Im Winkel","Im Ziegelfeld","Imbach","Imbacher Weg","Immenweg","In den Blechenhöfen","In den Dehlen","In der Birkenau","In der Dasladen","In der Felderhütten","In der Hartmannswiese","In der Höhle","In der Schaafsdellen","In der Wasserkuhl","In der Wüste","In Holzhausen","Insterstr.","Jacob-Fröhlen-Str.","Jägerstr.","Jahnstr.","Jakob-Eulenberg-Weg","Jakobistr.","Jakob-Kaiser-Str.","Jenaer Str.","Johannes-Baptist-Str.","Johannes-Dott-Str.","Johannes-Popitz-Str.","Johannes-Wislicenus-Str.","Johannisburger Str.","Johann-Janssen-Str.","Johann-Wirtz-Weg","Josefstr.","Jüch","Julius-Doms-Str.","Julius-Leber-Str.","Kaiserplatz","Kaiserstr.","Kaiser-Wilhelm-Allee","Kalkstr.","Kämpchenstr.","Kämpenwiese","Kämper Weg","Kamptalweg","Kanalstr.","Kandinskystr.","Kantstr.","Kapellenstr.","Karl-Arnold-Str.","Karl-Bosch-Str.","Karl-Bückart-Str.","Karl-Carstens-Ring","Karl-Friedrich-Goerdeler-Str.","Karl-Jaspers-Str.","Karl-König-Str.","Karl-Krekeler-Str.","Karl-Marx-Str.","Karlstr.","Karl-Ulitzka-Str.","Karl-Wichmann-Str.","Karl-Wingchen-Str.","Käsenbrod","Käthe-Kollwitz-Str.","Katzbachstr.","Kerschensteinerstr.","Kiefernweg","Kieler Str.","Kieselstr.","Kiesweg","Kinderhausen","Kleiberweg","Kleine Kirchstr.","Kleingansweg","Kleinheider Weg","Klief","Kneippstr.","Knochenbergsweg","Kochergarten","Kocherstr.","Kockelsberg","Kolberger Str.","Kolmarer Str.","Kölner Gasse","Kölner Str.","Kolpingstr.","Königsberger Platz","Konrad-Adenauer-Platz","Köpenicker Str.","Kopernikusstr.","Körnerstr.","Köschenberg","Köttershof","Kreuzbroicher Str.","Kreuzkamp","Krummer Weg","Kruppstr.","Kuhlmannweg","Kump","Kumper Weg","Kunstfeldstr.","Küppersteger Str.","Kursiefen","Kursiefer Weg","Kurtekottenweg","Kurt-Schumacher-Ring","Kyllstr.","Langenfelder Str.","Längsleimbach","Lärchenweg","Legienstr.","Lehner Mühle","Leichlinger Str.","Leimbacher Hof","Leinestr.","Leineweberstr.","Leipziger Str.","Lerchengasse","Lessingstr.","Libellenweg","Lichstr.","Liebigstr.","Lindenstr.","Lingenfeld","Linienstr.","Lippe","Löchergraben","Löfflerstr.","Loheweg","Lohrbergstr.","Lohrstr.","Löhstr.","Lortzingstr.","Lötzener Str.","Löwenburgstr.","Lucasstr.","Ludwig-Erhard-Platz","Ludwig-Girtler-Str.","Ludwig-Knorr-Str.","Luisenstr.","Lupinenweg","Lurchenweg","Lützenkirchener Str.","Lycker Str.","Maashofstr.","Manforter Str.","Marc-Chagall-Str.","Maria-Dresen-Str.","Maria-Terwiel-Str.","Marie-Curie-Str.","Marienburger Str.","Mariendorfer Str.","Marienwerderstr.","Marie-Schlei-Str.","Marktplatz","Markusweg","Martin-Buber-Str.","Martin-Heidegger-Str.","Martin-Luther-Str.","Masurenstr.","Mathildenweg","Maurinusstr.","Mauspfad","Max-Beckmann-Str.","Max-Delbrück-Str.","Max-Ernst-Str.","Max-Holthausen-Platz","Max-Horkheimer-Str.","Max-Liebermann-Str.","Max-Pechstein-Str.","Max-Planck-Str.","Max-Scheler-Str.","Max-Schönenberg-Str.","Maybachstr.","Meckhofer Feld","Meisenweg","Memelstr.","Menchendahler Str.","Mendelssohnstr.","Merziger Str.","Mettlacher Str.","Metzer Str.","Michaelsweg","Miselohestr.","Mittelstr.","Mohlenstr.","Moltkestr.","Monheimer Str.","Montanusstr.","Montessoriweg","Moosweg","Morsbroicher Str.","Moselstr.","Moskauer Str.","Mozartstr.","Mühlenweg","Muhrgasse","Muldestr.","Mülhausener Str.","Mülheimer Str.","Münsters Gäßchen","Münzstr.","Müritzstr.","Myliusstr.","Nachtigallenweg","Nauener Str.","Neißestr.","Nelly-Sachs-Str.","Netzestr.","Neuendriesch","Neuenhausgasse","Neuenkamp","Neujudenhof","Neukronenberger Str.","Neustadtstr.","Nicolai-Hartmann-Str.","Niederblecher","Niederfeldstr.","Nietzschestr.","Nikolaus-Groß-Str.","Nobelstr.","Norderneystr.","Nordstr.","Ober dem Hof","Obere Lindenstr.","Obere Str.","Oberölbach","Odenthaler Str.","Oderstr.","Okerstr.","Olof-Palme-Str.","Ophovener Str.","Opladener Platz","Opladener Str.","Ortelsburger Str.","Oskar-Moll-Str.","Oskar-Schlemmer-Str.","Oststr.","Oswald-Spengler-Str.","Otto-Dix-Str.","Otto-Grimm-Str.","Otto-Hahn-Str.","Otto-Müller-Str.","Otto-Stange-Str.","Ottostr.","Otto-Varnhagen-Str.","Otto-Wels-Str.","Ottweilerstr.","Oulustr.","Overfeldweg","Pappelweg","Paracelsusstr.","Parkstr.","Pastor-Louis-Str.","Pastor-Scheibler-Str.","Pastorskamp","Paul-Klee-Str.","Paul-Löbe-Str.","Paulstr.","Peenestr.","Pescher Busch","Peschstr.","Pestalozzistr.","Peter-Grieß-Str.","Peter-Joseph-Lenné-Str.","Peter-Neuenheuser-Str.","Petersbergstr.","Peterstr.","Pfarrer-Jekel-Str.","Pfarrer-Klein-Str.","Pfarrer-Röhr-Str.","Pfeilshofstr.","Philipp-Ott-Str.","Piet-Mondrian-Str.","Platanenweg","Pommernstr.","Porschestr.","Poststr.","Potsdamer Str.","Pregelstr.","Prießnitzstr.","Pützdelle","Quarzstr.","Quettinger Str.","Rat-Deycks-Str.","Rathenaustr.","Ratherkämp","Ratiborer Str.","Raushofstr.","Regensburger Str.","Reinickendorfer Str.","Renkgasse","Rennbaumplatz","Rennbaumstr.","Reuschenberger Str.","Reusrather Str.","Reuterstr.","Rheinallee","Rheindorfer Str.","Rheinstr.","Rhein-Wupper-Platz","Richard-Wagner-Str.","Rilkestr.","Ringstr.","Robert-Blum-Str.","Robert-Koch-Str.","Robert-Medenwald-Str.","Rolandstr.","Romberg","Röntgenstr.","Roonstr.","Ropenstall","Ropenstaller Weg","Rosenthal","Rostocker Str.","Rotdornweg","Röttgerweg","Rückertstr.","Rudolf-Breitscheid-Str.","Rudolf-Mann-Platz","Rudolf-Stracke-Str.","Ruhlachplatz","Ruhlachstr.","Rüttersweg","Saalestr.","Saarbrücker Str.","Saarlauterner Str.","Saarstr.","Salamanderweg","Samlandstr.","Sanddornstr.","Sandstr.","Sauerbruchstr.","Schäfershütte","Scharnhorststr.","Scheffershof","Scheidemannstr.","Schellingstr.","Schenkendorfstr.","Schießbergstr.","Schillerstr.","Schlangenhecke","Schlebuscher Heide","Schlebuscher Str.","Schlebuschrath","Schlehdornstr.","Schleiermacherstr.","Schloßstr.","Schmalenbruch","Schnepfenflucht","Schöffenweg","Schöllerstr.","Schöne Aussicht","Schöneberger Str.","Schopenhauerstr.","Schubertplatz","Schubertstr.","Schulberg","Schulstr.","Schumannstr.","Schwalbenweg","Schwarzastr.","Sebastianusweg","Semmelweisstr.","Siebelplatz","Siemensstr.","Solinger Str.","Sonderburger Str.","Spandauer Str.","Speestr.","Sperberweg","Sperlingsweg","Spitzwegstr.","Sporrenberger Mühle","Spreestr.","St. Ingberter Str.","Starenweg","Stauffenbergstr.","Stefan-Zweig-Str.","Stegerwaldstr.","Steglitzer Str.","Steinbücheler Feld","Steinbücheler Str.","Steinstr.","Steinweg","Stephan-Lochner-Str.","Stephanusstr.","Stettiner Str.","Stixchesstr.","Stöckenstr.","Stralsunder Str.","Straßburger Str.","Stresemannplatz","Strombergstr.","Stromstr.","Stüttekofener Str.","Sudestr.","Sürderstr.","Syltstr.","Talstr.","Tannenbergstr.","Tannenweg","Taubenweg","Teitscheider Weg","Telegrafenstr.","Teltower Str.","Tempelhofer Str.","Theodor-Adorno-Str.","Theodor-Fliedner-Str.","Theodor-Gierath-Str.","Theodor-Haubach-Str.","Theodor-Heuss-Ring","Theodor-Storm-Str.","Theodorstr.","Thomas-Dehler-Str.","Thomas-Morus-Str.","Thomas-von-Aquin-Str.","Tönges Feld","Torstr.","Treptower Str.","Treuburger Str.","Uhlandstr.","Ulmenweg","Ulmer Str.","Ulrichstr.","Ulrich-von-Hassell-Str.","Umlag","Unstrutstr.","Unter dem Schildchen","Unterölbach","Unterstr.","Uppersberg","Van\\'t-Hoff-Str.","Veit-Stoß-Str.","Vereinsstr.","Viktor-Meyer-Str.","Vincent-van-Gogh-Str.","Virchowstr.","Voigtslach","Volhardstr.","Völklinger Str.","Von-Brentano-Str.","Von-Diergardt-Str.","Von-Eichendorff-Str.","Von-Ketteler-Str.","Von-Knoeringen-Str.","Von-Pettenkofer-Str.","Von-Siebold-Str.","Wacholderweg","Waldstr.","Walter-Flex-Str.","Walter-Hempel-Str.","Walter-Hochapfel-Str.","Walter-Nernst-Str.","Wannseestr.","Warnowstr.","Warthestr.","Weddigenstr.","Weichselstr.","Weidenstr.","Weidfeldstr.","Weiherfeld","Weiherstr.","Weinhäuser Str.","Weißdornweg","Weißenseestr.","Weizkamp","Werftstr.","Werkstättenstr.","Werner-Heisenberg-Str.","Werrastr.","Weyerweg","Widdauener Str.","Wiebertshof","Wiehbachtal","Wiembachallee","Wiesdorfer Platz","Wiesenstr.","Wilhelm-Busch-Str.","Wilhelm-Hastrich-Str.","Wilhelm-Leuschner-Str.","Wilhelm-Liebknecht-Str.","Wilhelmsgasse","Wilhelmstr.","Willi-Baumeister-Str.","Willy-Brandt-Ring","Winand-Rossi-Str.","Windthorststr.","Winkelweg","Winterberg","Wittenbergstr.","Wolf-Vostell-Str.","Wolkenburgstr.","Wupperstr.","Wuppertalstr.","Wüstenhof","Yitzhak-Rabin-Str.","Zauberkuhle","Zedernweg","Zehlendorfer Str.","Zehntenweg","Zeisigweg","Zeppelinstr.","Zschopaustr.","Zum Claashäuschen","Zündhütchenweg","Zur Alten Brauerei","Zur alten Fabrik"]})(M0n);var mIa=M0n.exports,N0n={exports:{}};(function(t){t.exports=["###","##","#","##a","##b","##c"]})(N0n);var gIa=N0n.exports,I0n={exports:{}};(function(t){t.exports=["Apt. ###","Zimmer ###","# OG"]})(I0n);var vIa=I0n.exports,P0n={exports:{}};(function(t){t.exports=["#####","#####"]})(P0n);var AIa=P0n.exports,O0n={exports:{}};(function(t){t.exports=["Baden-Württemberg","Bayern","Berlin","Brandenburg","Bremen","Hamburg","Hessen","Mecklenburg-Vorpommern","Niedersachsen","Nordrhein-Westfalen","Rheinland-Pfalz","Saarland","Sachsen","Sachsen-Anhalt","Schleswig-Holstein","Thüringen"]})(O0n);var yIa=O0n.exports,L0n={exports:{}};(function(t){t.exports=["BW","BY","BE","BB","HB","HH","HE","MV","NI","NW","RP","SL","SN","ST","SH","TH"]})(L0n);var bIa=L0n.exports,B0n={exports:{}};(function(t){t.exports=["#{city_prefix} #{Name.first_name}#{city_suffix}","#{city_prefix} #{Name.first_name}","#{Name.first_name}#{city_suffix}","#{Name.last_name}#{city_suffix}"]})(B0n);var xIa=B0n.exports,D0n={exports:{}};(function(t){t.exports=["#{street_root}"]})(D0n);var EIa=D0n.exports,$0n={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})($0n);var SIa=$0n.exports,F0n={exports:{}};(function(t){t.exports=["Deutschland"]})(F0n);var wIa=F0n.exports;(function(t){var e={};t.exports=e,e.city_prefix=hIa,e.city_suffix=fIa,e.country=pIa,e.street_root=mIa,e.building_number=gIa,e.secondary_address=vIa,e.postcode=AIa,e.state=yIa,e.state_abbr=bIa,e.city=xIa,e.street_name=EIa,e.street_address=SIa,e.default_country=wIa})(T0n);var _Ia=T0n.exports,j0n={exports:{}},H0n={exports:{}};(function(t){t.exports=["GmbH","AG","Gruppe","KG","GmbH & Co. KG","UG","OHG"]})(H0n);var TIa=H0n.exports,U0n={exports:{}};(function(t){t.exports=["GmbH","AG","Gruppe","KG","GmbH & Co. KG","UG","OHG"]})(U0n);var CIa=U0n.exports,z0n={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} und #{Name.last_name}"]})(z0n);var kIa=z0n.exports;(function(t){var e={};t.exports=e,e.suffix=TIa,e.legal_form=CIa,e.name=kIa})(j0n);var RIa=j0n.exports,G0n={exports:{}},V0n={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(V0n);var MIa=V0n.exports,K0n={exports:{}};(function(t){t.exports=["com","info","name","net","org","de","ch"]})(K0n);var NIa=K0n.exports;(function(t){var e={};t.exports=e,e.free_email=MIa,e.domain_suffix=NIa})(G0n);var IIa=G0n.exports,W0n={exports:{}},Q0n={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(Q0n);var PIa=Q0n.exports;(function(t){var e={};t.exports=e,e.words=PIa})(W0n);var OIa=W0n.exports,q0n={exports:{}},Y0n={exports:{}};(function(t){t.exports=["Aaron","Abdul","Abdullah","Adam","Adrian","Adriano","Ahmad","Ahmed","Ahmet","Alan","Albert","Alessandro","Alessio","Alex","Alexander","Alfred","Ali","Amar","Amir","Amon","Andre","Andreas","Andrew","Angelo","Ansgar","Anthony","Anton","Antonio","Arda","Arian","Armin","Arne","Arno","Arthur","Artur","Arved","Arvid","Ayman","Baran","Baris","Bastian","Batuhan","Bela","Ben","Benedikt","Benjamin","Bennet","Bennett","Benno","Bent","Berat","Berkay","Bernd","Bilal","Bjarne","Björn","Bo","Boris","Brandon","Brian","Bruno","Bryan","Burak","Calvin","Can","Carl","Carlo","Carlos","Caspar","Cedric","Cedrik","Cem","Charlie","Chris","Christian","Christiano","Christoph","Christopher","Claas","Clemens","Colin","Collin","Conner","Connor","Constantin","Corvin","Curt","Damian","Damien","Daniel","Danilo","Danny","Darian","Dario","Darius","Darren","David","Davide","Davin","Dean","Deniz","Dennis","Denny","Devin","Diego","Dion","Domenic","Domenik","Dominic","Dominik","Dorian","Dustin","Dylan","Ecrin","Eddi","Eddy","Edgar","Edwin","Efe","Ege","Elia","Eliah","Elias","Elijah","Emanuel","Emil","Emilian","Emilio","Emir","Emirhan","Emre","Enes","Enno","Enrico","Eren","Eric","Erik","Etienne","Fabian","Fabien","Fabio","Fabrice","Falk","Felix","Ferdinand","Fiete","Filip","Finlay","Finley","Finn","Finnley","Florian","Francesco","Franz","Frederic","Frederick","Frederik","Friedrich","Fritz","Furkan","Fynn","Gabriel","Georg","Gerrit","Gian","Gianluca","Gino","Giuliano","Giuseppe","Gregor","Gustav","Hagen","Hamza","Hannes","Hanno","Hans","Hasan","Hassan","Hauke","Hendrik","Hennes","Henning","Henri","Henrick","Henrik","Henry","Hugo","Hussein","Ian","Ibrahim","Ilias","Ilja","Ilyas","Immanuel","Ismael","Ismail","Ivan","Iven","Jack","Jacob","Jaden","Jakob","Jamal","James","Jamie","Jan","Janek","Janis","Janne","Jannek","Jannes","Jannik","Jannis","Jano","Janosch","Jared","Jari","Jarne","Jarno","Jaron","Jason","Jasper","Jay","Jayden","Jayson","Jean","Jens","Jeremias","Jeremie","Jeremy","Jermaine","Jerome","Jesper","Jesse","Jim","Jimmy","Joe","Joel","Joey","Johann","Johannes","John","Johnny","Jon","Jona","Jonah","Jonas","Jonathan","Jonte","Joost","Jordan","Joris","Joscha","Joschua","Josef","Joseph","Josh","Joshua","Josua","Juan","Julian","Julien","Julius","Juri","Justin","Justus","Kaan","Kai","Kalle","Karim","Karl","Karlo","Kay","Keanu","Kenan","Kenny","Keno","Kerem","Kerim","Kevin","Kian","Kilian","Kim","Kimi","Kjell","Klaas","Klemens","Konrad","Konstantin","Koray","Korbinian","Kurt","Lars","Lasse","Laurence","Laurens","Laurenz","Laurin","Lean","Leander","Leandro","Leif","Len","Lenn","Lennard","Lennart","Lennert","Lennie","Lennox","Lenny","Leo","Leon","Leonard","Leonardo","Leonhard","Leonidas","Leopold","Leroy","Levent","Levi","Levin","Lewin","Lewis","Liam","Lian","Lias","Lino","Linus","Lio","Lion","Lionel","Logan","Lorenz","Lorenzo","Loris","Louis","Luan","Luc","Luca","Lucas","Lucian","Lucien","Ludwig","Luis","Luiz","Luk","Luka","Lukas","Luke","Lutz","Maddox","Mads","Magnus","Maik","Maksim","Malik","Malte","Manuel","Marc","Marcel","Marco","Marcus","Marek","Marian","Mario","Marius","Mark","Marko","Markus","Marlo","Marlon","Marten","Martin","Marvin","Marwin","Mateo","Mathis","Matis","Mats","Matteo","Mattes","Matthias","Matthis","Matti","Mattis","Maurice","Max","Maxim","Maximilian","Mehmet","Meik","Melvin","Merlin","Mert","Michael","Michel","Mick","Miguel","Mika","Mikail","Mike","Milan","Milo","Mio","Mirac","Mirco","Mirko","Mohamed","Mohammad","Mohammed","Moritz","Morten","Muhammed","Murat","Mustafa","Nathan","Nathanael","Nelson","Neo","Nevio","Nick","Niclas","Nico","Nicolai","Nicolas","Niels","Nikita","Niklas","Niko","Nikolai","Nikolas","Nils","Nino","Noah","Noel","Norman","Odin","Oke","Ole","Oliver","Omar","Onur","Oscar","Oskar","Pascal","Patrice","Patrick","Paul","Peer","Pepe","Peter","Phil","Philip","Philipp","Pierre","Piet","Pit","Pius","Quentin","Quirin","Rafael","Raik","Ramon","Raphael","Rasmus","Raul","Rayan","René","Ricardo","Riccardo","Richard","Rick","Rico","Robert","Robin","Rocco","Roman","Romeo","Ron","Ruben","Ryan","Said","Salih","Sam","Sami","Sammy","Samuel","Sandro","Santino","Sascha","Sean","Sebastian","Selim","Semih","Shawn","Silas","Simeon","Simon","Sinan","Sky","Stefan","Steffen","Stephan","Steve","Steven","Sven","Sönke","Sören","Taha","Tamino","Tammo","Tarik","Tayler","Taylor","Teo","Theo","Theodor","Thies","Thilo","Thomas","Thorben","Thore","Thorge","Tiago","Til","Till","Tillmann","Tim","Timm","Timo","Timon","Timothy","Tino","Titus","Tizian","Tjark","Tobias","Tom","Tommy","Toni","Tony","Torben","Tore","Tristan","Tyler","Tyron","Umut","Valentin","Valentino","Veit","Victor","Viktor","Vin","Vincent","Vito","Vitus","Wilhelm","Willi","William","Willy","Xaver","Yannic","Yannick","Yannik","Yannis","Yasin","Youssef","Yunus","Yusuf","Yven","Yves","Ömer"]})(Y0n);var LIa=Y0n.exports,J0n={exports:{}};(function(t){t.exports=["Aaliyah","Abby","Abigail","Ada","Adelina","Adriana","Aileen","Aimee","Alana","Alea","Alena","Alessa","Alessia","Alexa","Alexandra","Alexia","Alexis","Aleyna","Alia","Alica","Alice","Alicia","Alina","Alisa","Alisha","Alissa","Aliya","Aliyah","Allegra","Alma","Alyssa","Amalia","Amanda","Amelia","Amelie","Amina","Amira","Amy","Ana","Anabel","Anastasia","Andrea","Angela","Angelina","Angelique","Anja","Ann","Anna","Annabel","Annabell","Annabelle","Annalena","Anne","Anneke","Annelie","Annemarie","Anni","Annie","Annika","Anny","Anouk","Antonia","Arda","Ariana","Ariane","Arwen","Ashley","Asya","Aurelia","Aurora","Ava","Ayleen","Aylin","Ayse","Azra","Betty","Bianca","Bianka","Caitlin","Cara","Carina","Carla","Carlotta","Carmen","Carolin","Carolina","Caroline","Cassandra","Catharina","Catrin","Cecile","Cecilia","Celia","Celina","Celine","Ceyda","Ceylin","Chantal","Charleen","Charlotta","Charlotte","Chayenne","Cheyenne","Chiara","Christin","Christina","Cindy","Claire","Clara","Clarissa","Colleen","Collien","Cora","Corinna","Cosima","Dana","Daniela","Daria","Darleen","Defne","Delia","Denise","Diana","Dilara","Dina","Dorothea","Ecrin","Eda","Eileen","Ela","Elaine","Elanur","Elea","Elena","Eleni","Eleonora","Eliana","Elif","Elina","Elisa","Elisabeth","Ella","Ellen","Elli","Elly","Elsa","Emelie","Emely","Emilia","Emilie","Emily","Emma","Emmely","Emmi","Emmy","Enie","Enna","Enya","Esma","Estelle","Esther","Eva","Evelin","Evelina","Eveline","Evelyn","Fabienne","Fatima","Fatma","Felicia","Felicitas","Felina","Femke","Fenja","Fine","Finia","Finja","Finnja","Fiona","Flora","Florentine","Francesca","Franka","Franziska","Frederike","Freya","Frida","Frieda","Friederike","Giada","Gina","Giulia","Giuliana","Greta","Hailey","Hana","Hanna","Hannah","Heidi","Helen","Helena","Helene","Helin","Henriette","Henrike","Hermine","Ida","Ilayda","Imke","Ina","Ines","Inga","Inka","Irem","Isa","Isabel","Isabell","Isabella","Isabelle","Ivonne","Jacqueline","Jamie","Jamila","Jana","Jane","Janin","Janina","Janine","Janna","Janne","Jara","Jasmin","Jasmina","Jasmine","Jella","Jenna","Jennifer","Jenny","Jessica","Jessy","Jette","Jil","Jill","Joana","Joanna","Joelina","Joeline","Joelle","Johanna","Joleen","Jolie","Jolien","Jolin","Jolina","Joline","Jona","Jonah","Jonna","Josefin","Josefine","Josephin","Josephine","Josie","Josy","Joy","Joyce","Judith","Judy","Jule","Julia","Juliana","Juliane","Julie","Julienne","Julika","Julina","Juna","Justine","Kaja","Karina","Karla","Karlotta","Karolina","Karoline","Kassandra","Katarina","Katharina","Kathrin","Katja","Katrin","Kaya","Kayra","Kiana","Kiara","Kim","Kimberley","Kimberly","Kira","Klara","Korinna","Kristin","Kyra","Laila","Lana","Lara","Larissa","Laura","Laureen","Lavinia","Lea","Leah","Leana","Leandra","Leann","Lee","Leila","Lena","Lene","Leni","Lenia","Lenja","Lenya","Leona","Leoni","Leonie","Leonora","Leticia","Letizia","Levke","Leyla","Lia","Liah","Liana","Lili","Lilia","Lilian","Liliana","Lilith","Lilli","Lillian","Lilly","Lily","Lina","Linda","Lindsay","Line","Linn","Linnea","Lisa","Lisann","Lisanne","Liv","Livia","Liz","Lola","Loreen","Lorena","Lotta","Lotte","Louisa","Louise","Luana","Luca","Lucia","Lucie","Lucienne","Lucy","Luisa","Luise","Luka","Luna","Luzie","Lya","Lydia","Lyn","Lynn","Madeleine","Madita","Madleen","Madlen","Magdalena","Maike","Mailin","Maira","Maja","Malena","Malia","Malin","Malina","Mandy","Mara","Marah","Mareike","Maren","Maria","Mariam","Marie","Marieke","Mariella","Marika","Marina","Marisa","Marissa","Marit","Marla","Marleen","Marlen","Marlena","Marlene","Marta","Martha","Mary","Maryam","Mathilda","Mathilde","Matilda","Maxi","Maxima","Maxine","Maya","Mayra","Medina","Medine","Meike","Melanie","Melek","Melike","Melina","Melinda","Melis","Melisa","Melissa","Merle","Merve","Meryem","Mette","Mia","Michaela","Michelle","Mieke","Mila","Milana","Milena","Milla","Mina","Mira","Miray","Miriam","Mirja","Mona","Monique","Nadine","Nadja","Naemi","Nancy","Naomi","Natalia","Natalie","Nathalie","Neele","Nela","Nele","Nelli","Nelly","Nia","Nicole","Nika","Nike","Nikita","Nila","Nina","Nisa","Noemi","Nora","Olivia","Patricia","Patrizia","Paula","Paulina","Pauline","Penelope","Philine","Phoebe","Pia","Rahel","Rania","Rebecca","Rebekka","Riana","Rieke","Rike","Romina","Romy","Ronja","Rosa","Rosalie","Ruby","Sabrina","Sahra","Sally","Salome","Samantha","Samia","Samira","Sandra","Sandy","Sanja","Saphira","Sara","Sarah","Saskia","Selin","Selina","Selma","Sena","Sidney","Sienna","Silja","Sina","Sinja","Smilla","Sofia","Sofie","Sonja","Sophia","Sophie","Soraya","Stefanie","Stella","Stephanie","Stina","Sude","Summer","Susanne","Svea","Svenja","Sydney","Tabea","Talea","Talia","Tamara","Tamia","Tamina","Tanja","Tara","Tarja","Teresa","Tessa","Thalea","Thalia","Thea","Theresa","Tia","Tina","Tomke","Tuana","Valentina","Valeria","Valerie","Vanessa","Vera","Veronika","Victoria","Viktoria","Viola","Vivian","Vivien","Vivienne","Wibke","Wiebke","Xenia","Yara","Yaren","Yasmin","Ylvi","Ylvie","Yvonne","Zara","Zehra","Zeynep","Zoe","Zoey","Zoé"]})(J0n);var BIa=J0n.exports,Z0n={exports:{}};(function(t){t.exports=["Aaron","Abdul","Abdullah","Adam","Adrian","Adriano","Ahmad","Ahmed","Ahmet","Alan","Albert","Alessandro","Alessio","Alex","Alexander","Alfred","Ali","Amar","Amir","Amon","Andre","Andreas","Andrew","Angelo","Ansgar","Anthony","Anton","Antonio","Arda","Arian","Armin","Arne","Arno","Arthur","Artur","Arved","Arvid","Ayman","Baran","Baris","Bastian","Batuhan","Bela","Ben","Benedikt","Benjamin","Bennet","Bennett","Benno","Bent","Berat","Berkay","Bernd","Bilal","Bjarne","Björn","Bo","Boris","Brandon","Brian","Bruno","Bryan","Burak","Calvin","Can","Carl","Carlo","Carlos","Caspar","Cedric","Cedrik","Cem","Charlie","Chris","Christian","Christiano","Christoph","Christopher","Claas","Clemens","Colin","Collin","Conner","Connor","Constantin","Corvin","Curt","Damian","Damien","Daniel","Danilo","Danny","Darian","Dario","Darius","Darren","David","Davide","Davin","Dean","Deniz","Dennis","Denny","Devin","Diego","Dion","Domenic","Domenik","Dominic","Dominik","Dorian","Dustin","Dylan","Ecrin","Eddi","Eddy","Edgar","Edwin","Efe","Ege","Elia","Eliah","Elias","Elijah","Emanuel","Emil","Emilian","Emilio","Emir","Emirhan","Emre","Enes","Enno","Enrico","Eren","Eric","Erik","Etienne","Fabian","Fabien","Fabio","Fabrice","Falk","Felix","Ferdinand","Fiete","Filip","Finlay","Finley","Finn","Finnley","Florian","Francesco","Franz","Frederic","Frederick","Frederik","Friedrich","Fritz","Furkan","Fynn","Gabriel","Georg","Gerrit","Gian","Gianluca","Gino","Giuliano","Giuseppe","Gregor","Gustav","Hagen","Hamza","Hannes","Hanno","Hans","Hasan","Hassan","Hauke","Hendrik","Hennes","Henning","Henri","Henrick","Henrik","Henry","Hugo","Hussein","Ian","Ibrahim","Ilias","Ilja","Ilyas","Immanuel","Ismael","Ismail","Ivan","Iven","Jack","Jacob","Jaden","Jakob","Jamal","James","Jamie","Jan","Janek","Janis","Janne","Jannek","Jannes","Jannik","Jannis","Jano","Janosch","Jared","Jari","Jarne","Jarno","Jaron","Jason","Jasper","Jay","Jayden","Jayson","Jean","Jens","Jeremias","Jeremie","Jeremy","Jermaine","Jerome","Jesper","Jesse","Jim","Jimmy","Joe","Joel","Joey","Johann","Johannes","John","Johnny","Jon","Jona","Jonah","Jonas","Jonathan","Jonte","Joost","Jordan","Joris","Joscha","Joschua","Josef","Joseph","Josh","Joshua","Josua","Juan","Julian","Julien","Julius","Juri","Justin","Justus","Kaan","Kai","Kalle","Karim","Karl","Karlo","Kay","Keanu","Kenan","Kenny","Keno","Kerem","Kerim","Kevin","Kian","Kilian","Kim","Kimi","Kjell","Klaas","Klemens","Konrad","Konstantin","Koray","Korbinian","Kurt","Lars","Lasse","Laurence","Laurens","Laurenz","Laurin","Lean","Leander","Leandro","Leif","Len","Lenn","Lennard","Lennart","Lennert","Lennie","Lennox","Lenny","Leo","Leon","Leonard","Leonardo","Leonhard","Leonidas","Leopold","Leroy","Levent","Levi","Levin","Lewin","Lewis","Liam","Lian","Lias","Lino","Linus","Lio","Lion","Lionel","Logan","Lorenz","Lorenzo","Loris","Louis","Luan","Luc","Luca","Lucas","Lucian","Lucien","Ludwig","Luis","Luiz","Luk","Luka","Lukas","Luke","Lutz","Maddox","Mads","Magnus","Maik","Maksim","Malik","Malte","Manuel","Marc","Marcel","Marco","Marcus","Marek","Marian","Mario","Marius","Mark","Marko","Markus","Marlo","Marlon","Marten","Martin","Marvin","Marwin","Mateo","Mathis","Matis","Mats","Matteo","Mattes","Matthias","Matthis","Matti","Mattis","Maurice","Max","Maxim","Maximilian","Mehmet","Meik","Melvin","Merlin","Mert","Michael","Michel","Mick","Miguel","Mika","Mikail","Mike","Milan","Milo","Mio","Mirac","Mirco","Mirko","Mohamed","Mohammad","Mohammed","Moritz","Morten","Muhammed","Murat","Mustafa","Nathan","Nathanael","Nelson","Neo","Nevio","Nick","Niclas","Nico","Nicolai","Nicolas","Niels","Nikita","Niklas","Niko","Nikolai","Nikolas","Nils","Nino","Noah","Noel","Norman","Odin","Oke","Ole","Oliver","Omar","Onur","Oscar","Oskar","Pascal","Patrice","Patrick","Paul","Peer","Pepe","Peter","Phil","Philip","Philipp","Pierre","Piet","Pit","Pius","Quentin","Quirin","Rafael","Raik","Ramon","Raphael","Rasmus","Raul","Rayan","René","Ricardo","Riccardo","Richard","Rick","Rico","Robert","Robin","Rocco","Roman","Romeo","Ron","Ruben","Ryan","Said","Salih","Sam","Sami","Sammy","Samuel","Sandro","Santino","Sascha","Sean","Sebastian","Selim","Semih","Shawn","Silas","Simeon","Simon","Sinan","Sky","Stefan","Steffen","Stephan","Steve","Steven","Sven","Sönke","Sören","Taha","Tamino","Tammo","Tarik","Tayler","Taylor","Teo","Theo","Theodor","Thies","Thilo","Thomas","Thorben","Thore","Thorge","Tiago","Til","Till","Tillmann","Tim","Timm","Timo","Timon","Timothy","Tino","Titus","Tizian","Tjark","Tobias","Tom","Tommy","Toni","Tony","Torben","Tore","Tristan","Tyler","Tyron","Umut","Valentin","Valentino","Veit","Victor","Viktor","Vin","Vincent","Vito","Vitus","Wilhelm","Willi","William","Willy","Xaver","Yannic","Yannick","Yannik","Yannis","Yasin","Youssef","Yunus","Yusuf","Yven","Yves","Ömer","Aaliyah","Abby","Abigail","Ada","Adelina","Adriana","Aileen","Aimee","Alana","Alea","Alena","Alessa","Alessia","Alexa","Alexandra","Alexia","Alexis","Aleyna","Alia","Alica","Alice","Alicia","Alina","Alisa","Alisha","Alissa","Aliya","Aliyah","Allegra","Alma","Alyssa","Amalia","Amanda","Amelia","Amelie","Amina","Amira","Amy","Ana","Anabel","Anastasia","Andrea","Angela","Angelina","Angelique","Anja","Ann","Anna","Annabel","Annabell","Annabelle","Annalena","Anne","Anneke","Annelie","Annemarie","Anni","Annie","Annika","Anny","Anouk","Antonia","Arda","Ariana","Ariane","Arwen","Ashley","Asya","Aurelia","Aurora","Ava","Ayleen","Aylin","Ayse","Azra","Betty","Bianca","Bianka","Caitlin","Cara","Carina","Carla","Carlotta","Carmen","Carolin","Carolina","Caroline","Cassandra","Catharina","Catrin","Cecile","Cecilia","Celia","Celina","Celine","Ceyda","Ceylin","Chantal","Charleen","Charlotta","Charlotte","Chayenne","Cheyenne","Chiara","Christin","Christina","Cindy","Claire","Clara","Clarissa","Colleen","Collien","Cora","Corinna","Cosima","Dana","Daniela","Daria","Darleen","Defne","Delia","Denise","Diana","Dilara","Dina","Dorothea","Ecrin","Eda","Eileen","Ela","Elaine","Elanur","Elea","Elena","Eleni","Eleonora","Eliana","Elif","Elina","Elisa","Elisabeth","Ella","Ellen","Elli","Elly","Elsa","Emelie","Emely","Emilia","Emilie","Emily","Emma","Emmely","Emmi","Emmy","Enie","Enna","Enya","Esma","Estelle","Esther","Eva","Evelin","Evelina","Eveline","Evelyn","Fabienne","Fatima","Fatma","Felicia","Felicitas","Felina","Femke","Fenja","Fine","Finia","Finja","Finnja","Fiona","Flora","Florentine","Francesca","Franka","Franziska","Frederike","Freya","Frida","Frieda","Friederike","Giada","Gina","Giulia","Giuliana","Greta","Hailey","Hana","Hanna","Hannah","Heidi","Helen","Helena","Helene","Helin","Henriette","Henrike","Hermine","Ida","Ilayda","Imke","Ina","Ines","Inga","Inka","Irem","Isa","Isabel","Isabell","Isabella","Isabelle","Ivonne","Jacqueline","Jamie","Jamila","Jana","Jane","Janin","Janina","Janine","Janna","Janne","Jara","Jasmin","Jasmina","Jasmine","Jella","Jenna","Jennifer","Jenny","Jessica","Jessy","Jette","Jil","Jill","Joana","Joanna","Joelina","Joeline","Joelle","Johanna","Joleen","Jolie","Jolien","Jolin","Jolina","Joline","Jona","Jonah","Jonna","Josefin","Josefine","Josephin","Josephine","Josie","Josy","Joy","Joyce","Judith","Judy","Jule","Julia","Juliana","Juliane","Julie","Julienne","Julika","Julina","Juna","Justine","Kaja","Karina","Karla","Karlotta","Karolina","Karoline","Kassandra","Katarina","Katharina","Kathrin","Katja","Katrin","Kaya","Kayra","Kiana","Kiara","Kim","Kimberley","Kimberly","Kira","Klara","Korinna","Kristin","Kyra","Laila","Lana","Lara","Larissa","Laura","Laureen","Lavinia","Lea","Leah","Leana","Leandra","Leann","Lee","Leila","Lena","Lene","Leni","Lenia","Lenja","Lenya","Leona","Leoni","Leonie","Leonora","Leticia","Letizia","Levke","Leyla","Lia","Liah","Liana","Lili","Lilia","Lilian","Liliana","Lilith","Lilli","Lillian","Lilly","Lily","Lina","Linda","Lindsay","Line","Linn","Linnea","Lisa","Lisann","Lisanne","Liv","Livia","Liz","Lola","Loreen","Lorena","Lotta","Lotte","Louisa","Louise","Luana","Luca","Lucia","Lucie","Lucienne","Lucy","Luisa","Luise","Luka","Luna","Luzie","Lya","Lydia","Lyn","Lynn","Madeleine","Madita","Madleen","Madlen","Magdalena","Maike","Mailin","Maira","Maja","Malena","Malia","Malin","Malina","Mandy","Mara","Marah","Mareike","Maren","Maria","Mariam","Marie","Marieke","Mariella","Marika","Marina","Marisa","Marissa","Marit","Marla","Marleen","Marlen","Marlena","Marlene","Marta","Martha","Mary","Maryam","Mathilda","Mathilde","Matilda","Maxi","Maxima","Maxine","Maya","Mayra","Medina","Medine","Meike","Melanie","Melek","Melike","Melina","Melinda","Melis","Melisa","Melissa","Merle","Merve","Meryem","Mette","Mia","Michaela","Michelle","Mieke","Mila","Milana","Milena","Milla","Mina","Mira","Miray","Miriam","Mirja","Mona","Monique","Nadine","Nadja","Naemi","Nancy","Naomi","Natalia","Natalie","Nathalie","Neele","Nela","Nele","Nelli","Nelly","Nia","Nicole","Nika","Nike","Nikita","Nila","Nina","Nisa","Noemi","Nora","Olivia","Patricia","Patrizia","Paula","Paulina","Pauline","Penelope","Philine","Phoebe","Pia","Rahel","Rania","Rebecca","Rebekka","Riana","Rieke","Rike","Romina","Romy","Ronja","Rosa","Rosalie","Ruby","Sabrina","Sahra","Sally","Salome","Samantha","Samia","Samira","Sandra","Sandy","Sanja","Saphira","Sara","Sarah","Saskia","Selin","Selina","Selma","Sena","Sidney","Sienna","Silja","Sina","Sinja","Smilla","Sofia","Sofie","Sonja","Sophia","Sophie","Soraya","Stefanie","Stella","Stephanie","Stina","Sude","Summer","Susanne","Svea","Svenja","Sydney","Tabea","Talea","Talia","Tamara","Tamia","Tamina","Tanja","Tara","Tarja","Teresa","Tessa","Thalea","Thalia","Thea","Theresa","Tia","Tina","Tomke","Tuana","Valentina","Valeria","Valerie","Vanessa","Vera","Veronika","Victoria","Viktoria","Viola","Vivian","Vivien","Vivienne","Wibke","Wiebke","Xenia","Yara","Yaren","Yasmin","Ylvi","Ylvie","Yvonne","Zara","Zehra","Zeynep","Zoe","Zoey","Zoé"]})(Z0n);var DIa=Z0n.exports,X0n={exports:{}};(function(t){t.exports=["Abel","Abicht","Abraham","Abramovic","Abt","Achilles","Achkinadze","Ackermann","Adam","Adams","Ade","Agostini","Ahlke","Ahrenberg","Ahrens","Aigner","Albert","Albrecht","Alexa","Alexander","Alizadeh","Allgeyer","Amann","Amberg","Anding","Anggreny","Apitz","Arendt","Arens","Arndt","Aryee","Aschenbroich","Assmus","Astafei","Auer","Axmann","Baarck","Bachmann","Badane","Bader","Baganz","Bahl","Bak","Balcer","Balck","Balkow","Balnuweit","Balzer","Banse","Barr","Bartels","Barth","Barylla","Baseda","Battke","Bauer","Bauermeister","Baumann","Baumeister","Bauschinger","Bauschke","Bayer","Beavogui","Beck","Beckel","Becker","Beckmann","Bedewitz","Beele","Beer","Beggerow","Beh","Behr","Behrenbruch","Belz","Bender","Benecke","Benner","Benninger","Benzing","Berends","Berger","Berner","Berning","Bertenbreiter","Best","Bethke","Betz","Beushausen","Beutelspacher","Beyer","Biba","Bichler","Bickel","Biedermann","Bieler","Bielert","Bienasch","Bienias","Biesenbach","Bigdeli","Birkemeyer","Bittner","Blank","Blaschek","Blassneck","Bloch","Blochwitz","Blockhaus","Blum","Blume","Bock","Bode","Bogdashin","Bogenrieder","Bohge","Bolm","Borgschulze","Bork","Bormann","Bornscheuer","Borrmann","Borsch","Boruschewski","Bos","Bosler","Bourrouag","Bouschen","Boxhammer","Boyde","Bozsik","Brand","Brandenburg","Brandis","Brandt","Brauer","Braun","Brehmer","Breitenstein","Bremer","Bremser","Brenner","Brettschneider","Breu","Breuer","Briesenick","Bringmann","Brinkmann","Brix","Broening","Brosch","Bruckmann","Bruder","Bruhns","Brunner","Bruns","Bräutigam","Brömme","Brüggmann","Buchholz","Buchrucker","Buder","Bultmann","Bunjes","Burger","Burghagen","Burkhard","Burkhardt","Burmeister","Busch","Buschbaum","Busemann","Buss","Busse","Bussmann","Byrd","Bäcker","Böhm","Bönisch","Börgeling","Börner","Böttner","Büchele","Bühler","Büker","Büngener","Bürger","Bürklein","Büscher","Büttner","Camara","Carlowitz","Carlsohn","Caspari","Caspers","Chapron","Christ","Cierpinski","Clarius","Cleem","Cleve","Co","Conrad","Cordes","Cornelsen","Cors","Cotthardt","Crews","Cronjäger","Crosskofp","Da","Dahm","Dahmen","Daimer","Damaske","Danneberg","Danner","Daub","Daubner","Daudrich","Dauer","Daum","Dauth","Dautzenberg","De","Decker","Deckert","Deerberg","Dehmel","Deja","Delonge","Demut","Dengler","Denner","Denzinger","Derr","Dertmann","Dethloff","Deuschle","Dieckmann","Diedrich","Diekmann","Dienel","Dies","Dietrich","Dietz","Dietzsch","Diezel","Dilla","Dingelstedt","Dippl","Dittmann","Dittmar","Dittmer","Dix","Dobbrunz","Dobler","Dohring","Dolch","Dold","Dombrowski","Donie","Doskoczynski","Dragu","Drechsler","Drees","Dreher","Dreier","Dreissigacker","Dressler","Drews","Duma","Dutkiewicz","Dyett","Dylus","Dächert","Döbel","Döring","Dörner","Dörre","Dück","Eberhard","Eberhardt","Ecker","Eckhardt","Edorh","Effler","Eggenmueller","Ehm","Ehmann","Ehrig","Eich","Eifert","Einert","Eisenlauer","Ekpo","Elbe","Eleyth","Elss","Emert","Emmelmann","Ender","Engel","Engelen","Engelmann","Eplinius","Erdmann","Erhardt","Erlei","Erm","Ernst","Ertl","Erwes","Esenwein","Esser","Evers","Everts","Ewald","Fahner","Faller","Falter","Farber","Fassbender","Faulhaber","Fehrig","Feld","Felke","Feller","Fenner","Fenske","Feuerbach","Fietz","Figl","Figura","Filipowski","Filsinger","Fincke","Fink","Finke","Fischer","Fitschen","Fleischer","Fleischmann","Floder","Florczak","Flore","Flottmann","Forkel","Forst","Frahmeke","Frank","Franke","Franta","Frantz","Franz","Franzis","Franzmann","Frauen","Frauendorf","Freigang","Freimann","Freimuth","Freisen","Frenzel","Frey","Fricke","Fried","Friedek","Friedenberg","Friedmann","Friedrich","Friess","Frisch","Frohn","Frosch","Fuchs","Fuhlbrügge","Fusenig","Fust","Förster","Gaba","Gabius","Gabler","Gadschiew","Gakstädter","Galander","Gamlin","Gamper","Gangnus","Ganzmann","Garatva","Gast","Gastel","Gatzka","Gauder","Gebhardt","Geese","Gehre","Gehrig","Gehring","Gehrke","Geiger","Geisler","Geissler","Gelling","Gens","Gerbennow","Gerdel","Gerhardt","Gerschler","Gerson","Gesell","Geyer","Ghirmai","Ghosh","Giehl","Gierisch","Giesa","Giesche","Gilde","Glatting","Goebel","Goedicke","Goldbeck","Goldfuss","Goldkamp","Goldkühle","Goller","Golling","Gollnow","Golomski","Gombert","Gotthardt","Gottschalk","Gotz","Goy","Gradzki","Graf","Grams","Grasse","Gratzky","Grau","Greb","Green","Greger","Greithanner","Greschner","Griem","Griese","Grimm","Gromisch","Gross","Grosser","Grossheim","Grosskopf","Grothaus","Grothkopp","Grotke","Grube","Gruber","Grundmann","Gruning","Gruszecki","Gröss","Grötzinger","Grün","Grüner","Gummelt","Gunkel","Gunther","Gutjahr","Gutowicz","Gutschank","Göbel","Göckeritz","Göhler","Görlich","Görmer","Götz","Götzelmann","Güldemeister","Günther","Günz","Gürbig","Haack","Haaf","Habel","Hache","Hackbusch","Hackelbusch","Hadfield","Hadwich","Haferkamp","Hahn","Hajek","Hallmann","Hamann","Hanenberger","Hannecker","Hanniske","Hansen","Hardy","Hargasser","Harms","Harnapp","Harter","Harting","Hartlieb","Hartmann","Hartwig","Hartz","Haschke","Hasler","Hasse","Hassfeld","Haug","Hauke","Haupt","Haverney","Heberstreit","Hechler","Hecht","Heck","Hedermann","Hehl","Heidelmann","Heidler","Heinemann","Heinig","Heinke","Heinrich","Heinze","Heiser","Heist","Hellmann","Helm","Helmke","Helpling","Hengmith","Henkel","Hennes","Henry","Hense","Hensel","Hentel","Hentschel","Hentschke","Hepperle","Herberger","Herbrand","Hering","Hermann","Hermecke","Herms","Herold","Herrmann","Herschmann","Hertel","Herweg","Herwig","Herzenberg","Hess","Hesse","Hessek","Hessler","Hetzler","Heuck","Heydemüller","Hiebl","Hildebrand","Hildenbrand","Hilgendorf","Hillard","Hiller","Hingsen","Hingst","Hinrichs","Hirsch","Hirschberg","Hirt","Hodea","Hoffman","Hoffmann","Hofmann","Hohenberger","Hohl","Hohn","Hohnheiser","Hold","Holdt","Holinski","Holl","Holtfreter","Holz","Holzdeppe","Holzner","Hommel","Honz","Hooss","Hoppe","Horak","Horn","Horna","Hornung","Hort","Howard","Huber","Huckestein","Hudak","Huebel","Hugo","Huhn","Hujo","Huke","Huls","Humbert","Huneke","Huth","Häber","Häfner","Höcke","Höft","Höhne","Hönig","Hördt","Hübenbecker","Hübl","Hübner","Hügel","Hüttcher","Hütter","Ibe","Ihly","Illing","Isak","Isekenmeier","Itt","Jacob","Jacobs","Jagusch","Jahn","Jahnke","Jakobs","Jakubczyk","Jambor","Jamrozy","Jander","Janich","Janke","Jansen","Jarets","Jaros","Jasinski","Jasper","Jegorov","Jellinghaus","Jeorga","Jerschabek","Jess","John","Jonas","Jossa","Jucken","Jung","Jungbluth","Jungton","Just","Jürgens","Kaczmarek","Kaesmacher","Kahl","Kahlert","Kahles","Kahlmeyer","Kaiser","Kalinowski","Kallabis","Kallensee","Kampf","Kampschulte","Kappe","Kappler","Karhoff","Karrass","Karst","Karsten","Karus","Kass","Kasten","Kastner","Katzinski","Kaufmann","Kaul","Kausemann","Kawohl","Kazmarek","Kedzierski","Keil","Keiner","Keller","Kelm","Kempe","Kemper","Kempter","Kerl","Kern","Kesselring","Kesselschläger","Kette","Kettenis","Keutel","Kick","Kiessling","Kinadeter","Kinzel","Kinzy","Kirch","Kirst","Kisabaka","Klaas","Klabuhn","Klapper","Klauder","Klaus","Kleeberg","Kleiber","Klein","Kleinert","Kleininger","Kleinmann","Kleinsteuber","Kleiss","Klemme","Klimczak","Klinger","Klink","Klopsch","Klose","Kloss","Kluge","Kluwe","Knabe","Kneifel","Knetsch","Knies","Knippel","Knobel","Knoblich","Knoll","Knorr","Knorscheidt","Knut","Kobs","Koch","Kochan","Kock","Koczulla","Koderisch","Koehl","Koehler","Koenig","Koester","Kofferschlager","Koha","Kohle","Kohlmann","Kohnle","Kohrt","Koj","Kolb","Koleiski","Kolokas","Komoll","Konieczny","Konig","Konow","Konya","Koob","Kopf","Kosenkow","Koster","Koszewski","Koubaa","Kovacs","Kowalick","Kowalinski","Kozakiewicz","Krabbe","Kraft","Kral","Kramer","Krauel","Kraus","Krause","Krauspe","Kreb","Krebs","Kreissig","Kresse","Kreutz","Krieger","Krippner","Krodinger","Krohn","Krol","Kron","Krueger","Krug","Kruger","Krull","Kruschinski","Krämer","Kröckert","Kröger","Krüger","Kubera","Kufahl","Kuhlee","Kuhnen","Kulimann","Kulma","Kumbernuss","Kummle","Kunz","Kupfer","Kupprion","Kuprion","Kurnicki","Kurrat","Kurschilgen","Kuschewitz","Kuschmann","Kuske","Kustermann","Kutscherauer","Kutzner","Kwadwo","Kähler","Käther","Köhler","Köhrbrück","Köhre","Kölotzei","König","Köpernick","Köseoglu","Kúhn","Kúhnert","Kühn","Kühnel","Kühnemund","Kühnert","Kühnke","Küsters","Küter","Laack","Lack","Ladewig","Lakomy","Lammert","Lamos","Landmann","Lang","Lange","Langfeld","Langhirt","Lanig","Lauckner","Lauinger","Laurén","Lausecker","Laux","Laws","Lax","Leberer","Lehmann","Lehner","Leibold","Leide","Leimbach","Leipold","Leist","Leiter","Leiteritz","Leitheim","Leiwesmeier","Lenfers","Lenk","Lenz","Lenzen","Leo","Lepthin","Lesch","Leschnik","Letzelter","Lewin","Lewke","Leyckes","Lg","Lichtenfeld","Lichtenhagen","Lichtl","Liebach","Liebe","Liebich","Liebold","Lieder","Lienshöft","Linden","Lindenberg","Lindenmayer","Lindner","Linke","Linnenbaum","Lippe","Lipske","Lipus","Lischka","Lobinger","Logsch","Lohmann","Lohre","Lohse","Lokar","Loogen","Lorenz","Losch","Loska","Lott","Loy","Lubina","Ludolf","Lufft","Lukoschek","Lutje","Lutz","Löser","Löwa","Lübke","Maak","Maczey","Madetzky","Madubuko","Mai","Maier","Maisch","Malek","Malkus","Mallmann","Malucha","Manns","Manz","Marahrens","Marchewski","Margis","Markowski","Marl","Marner","Marquart","Marschek","Martel","Marten","Martin","Marx","Marxen","Mathes","Mathies","Mathiszik","Matschke","Mattern","Matthes","Matula","Mau","Maurer","Mauroff","May","Maybach","Mayer","Mebold","Mehl","Mehlhorn","Mehlorn","Meier","Meisch","Meissner","Meloni","Melzer","Menga","Menne","Mensah","Mensing","Merkel","Merseburg","Mertens","Mesloh","Metzger","Metzner","Mewes","Meyer","Michallek","Michel","Mielke","Mikitenko","Milde","Minah","Mintzlaff","Mockenhaupt","Moede","Moedl","Moeller","Moguenara","Mohr","Mohrhard","Molitor","Moll","Moller","Molzan","Montag","Moormann","Mordhorst","Morgenstern","Morhelfer","Moritz","Moser","Motchebon","Motzenbbäcker","Mrugalla","Muckenthaler","Mues","Muller","Mulrain","Mächtig","Mäder","Möcks","Mögenburg","Möhsner","Möldner","Möllenbeck","Möller","Möllinger","Mörsch","Mühleis","Müller","Münch","Nabein","Nabow","Nagel","Nannen","Nastvogel","Nau","Naubert","Naumann","Ne","Neimke","Nerius","Neubauer","Neubert","Neuendorf","Neumair","Neumann","Neupert","Neurohr","Neuschwander","Newton","Ney","Nicolay","Niedermeier","Nieklauson","Niklaus","Nitzsche","Noack","Nodler","Nolte","Normann","Norris","Northoff","Nowak","Nussbeck","Nwachukwu","Nytra","Nöh","Oberem","Obergföll","Obermaier","Ochs","Oeser","Olbrich","Onnen","Ophey","Oppong","Orth","Orthmann","Oschkenat","Osei","Osenberg","Ostendarp","Ostwald","Otte","Otto","Paesler","Pajonk","Pallentin","Panzig","Paschke","Patzwahl","Paukner","Peselman","Peter","Peters","Petzold","Pfeiffer","Pfennig","Pfersich","Pfingsten","Pflieger","Pflügner","Philipp","Pichlmaier","Piesker","Pietsch","Pingpank","Pinnock","Pippig","Pitschugin","Plank","Plass","Platzer","Plauk","Plautz","Pletsch","Plotzitzka","Poehn","Poeschl","Pogorzelski","Pohl","Pohland","Pohle","Polifka","Polizzi","Pollmächer","Pomp","Ponitzsch","Porsche","Porth","Poschmann","Poser","Pottel","Prah","Prange","Prediger","Pressler","Preuk","Preuss","Prey","Priemer","Proske","Pusch","Pöche","Pöge","Raabe","Rabenstein","Rach","Radtke","Rahn","Ranftl","Rangen","Ranz","Rapp","Rath","Rau","Raubuch","Raukuc","Rautenkranz","Rehwagen","Reiber","Reichardt","Reichel","Reichling","Reif","Reifenrath","Reimann","Reinberg","Reinelt","Reinhardt","Reinke","Reitze","Renk","Rentz","Renz","Reppin","Restle","Restorff","Retzke","Reuber","Reumann","Reus","Reuss","Reusse","Rheder","Rhoden","Richards","Richter","Riedel","Riediger","Rieger","Riekmann","Riepl","Riermeier","Riester","Riethmüller","Rietmüller","Rietscher","Ringel","Ringer","Rink","Ripken","Ritosek","Ritschel","Ritter","Rittweg","Ritz","Roba","Rockmeier","Rodehau","Rodowski","Roecker","Roggatz","Rohländer","Rohrer","Rokossa","Roleder","Roloff","Roos","Rosbach","Roschinsky","Rose","Rosenauer","Rosenbauer","Rosenthal","Rosksch","Rossberg","Rossler","Roth","Rother","Ruch","Ruckdeschel","Rumpf","Rupprecht","Ruth","Ryjikh","Ryzih","Rädler","Räntsch","Rödiger","Röse","Röttger","Rücker","Rüdiger","Rüter","Sachse","Sack","Saflanis","Sagafe","Sagonas","Sahner","Saile","Sailer","Salow","Salzer","Salzmann","Sammert","Sander","Sarvari","Sattelmaier","Sauer","Sauerland","Saumweber","Savoia","Scc","Schacht","Schaefer","Schaffarzik","Schahbasian","Scharf","Schedler","Scheer","Schelk","Schellenbeck","Schembera","Schenk","Scherbarth","Scherer","Schersing","Scherz","Scheurer","Scheuring","Scheytt","Schielke","Schieskow","Schildhauer","Schilling","Schima","Schimmer","Schindzielorz","Schirmer","Schirrmeister","Schlachter","Schlangen","Schlawitz","Schlechtweg","Schley","Schlicht","Schlitzer","Schmalzle","Schmid","Schmidt","Schmidtchen","Schmitt","Schmitz","Schmuhl","Schneider","Schnelting","Schnieder","Schniedermeier","Schnürer","Schoberg","Scholz","Schonberg","Schondelmaier","Schorr","Schott","Schottmann","Schouren","Schrader","Schramm","Schreck","Schreiber","Schreiner","Schreiter","Schroder","Schröder","Schuermann","Schuff","Schuhaj","Schuldt","Schult","Schulte","Schultz","Schultze","Schulz","Schulze","Schumacher","Schumann","Schupp","Schuri","Schuster","Schwab","Schwalm","Schwanbeck","Schwandke","Schwanitz","Schwarthoff","Schwartz","Schwarz","Schwarzer","Schwarzkopf","Schwarzmeier","Schwatlo","Schweisfurth","Schwennen","Schwerdtner","Schwidde","Schwirkschlies","Schwuchow","Schäfer","Schäffel","Schäffer","Schäning","Schöckel","Schönball","Schönbeck","Schönberg","Schönebeck","Schönenberger","Schönfeld","Schönherr","Schönlebe","Schötz","Schüler","Schüppel","Schütz","Schütze","Seeger","Seelig","Sehls","Seibold","Seidel","Seiders","Seigel","Seiler","Seitz","Semisch","Senkel","Sewald","Siebel","Siebert","Siegling","Sielemann","Siemon","Siener","Sievers","Siewert","Sihler","Sillah","Simon","Sinnhuber","Sischka","Skibicki","Sladek","Slotta","Smieja","Soboll","Sokolowski","Soller","Sollner","Sommer","Somssich","Sonn","Sonnabend","Spahn","Spank","Spelmeyer","Spiegelburg","Spielvogel","Spinner","Spitzmüller","Splinter","Sporrer","Sprenger","Spöttel","Stahl","Stang","Stanger","Stauss","Steding","Steffen","Steffny","Steidl","Steigauf","Stein","Steinecke","Steinert","Steinkamp","Steinmetz","Stelkens","Stengel","Stengl","Stenzel","Stepanov","Stephan","Stern","Steuk","Stief","Stifel","Stoll","Stolle","Stolz","Storl","Storp","Stoutjesdijk","Stratmann","Straub","Strausa","Streck","Streese","Strege","Streit","Streller","Strieder","Striezel","Strogies","Strohschank","Strunz","Strutz","Stube","Stöckert","Stöppler","Stöwer","Stürmer","Suffa","Sujew","Sussmann","Suthe","Sutschet","Swillims","Szendrei","Sören","Sürth","Tafelmeier","Tang","Tasche","Taufratshofer","Tegethof","Teichmann","Tepper","Terheiden","Terlecki","Teufel","Theele","Thieke","Thimm","Thiomas","Thomas","Thriene","Thränhardt","Thust","Thyssen","Thöne","Tidow","Tiedtke","Tietze","Tilgner","Tillack","Timmermann","Tischler","Tischmann","Tittman","Tivontschik","Tonat","Tonn","Trampeli","Trauth","Trautmann","Travan","Treff","Tremmel","Tress","Tsamonikian","Tschiers","Tschirch","Tuch","Tucholke","Tudow","Tuschmo","Tächl","Többen","Töpfer","Uhlemann","Uhlig","Uhrig","Uibel","Uliczka","Ullmann","Ullrich","Umbach","Umlauft","Umminger","Unger","Unterpaintner","Urban","Urbaniak","Urbansky","Urhig","Vahlensieck","Van","Vangermain","Vater","Venghaus","Verniest","Verzi","Vey","Viellehner","Vieweg","Voelkel","Vogel","Vogelgsang","Vogt","Voigt","Vokuhl","Volk","Volker","Volkmann","Von","Vona","Vontein","Wachenbrunner","Wachtel","Wagner","Waibel","Wakan","Waldmann","Wallner","Wallstab","Walter","Walther","Walton","Walz","Wanner","Wartenberg","Waschbüsch","Wassilew","Wassiluk","Weber","Wehrsen","Weidlich","Weidner","Weigel","Weight","Weiler","Weimer","Weis","Weiss","Weller","Welsch","Welz","Welzel","Weniger","Wenk","Werle","Werner","Werrmann","Wessel","Wessinghage","Weyel","Wezel","Wichmann","Wickert","Wiebe","Wiechmann","Wiegelmann","Wierig","Wiese","Wieser","Wilhelm","Wilky","Will","Willwacher","Wilts","Wimmer","Winkelmann","Winkler","Winter","Wischek","Wischer","Wissing","Wittich","Wittl","Wolf","Wolfarth","Wolff","Wollenberg","Wollmann","Woytkowska","Wujak","Wurm","Wyludda","Wölpert","Wöschler","Wühn","Wünsche","Zach","Zaczkiewicz","Zahn","Zaituc","Zandt","Zanner","Zapletal","Zauber","Zeidler","Zekl","Zender","Zeuch","Zeyen","Zeyhle","Ziegler","Zimanyi","Zimmer","Zimmermann","Zinser","Zintl","Zipp","Zipse","Zschunke","Zuber","Zwiener","Zümsande","Östringer","Überacker"]})(X0n);var $Ia=X0n.exports,eAn={exports:{}};(function(t){t.exports=["Hr.","Fr.","Dr.","Prof. Dr."]})(eAn);var FIa=eAn.exports,tAn={exports:{}};(function(t){t.exports=["zu","von","vom","von der"]})(tAn);var jIa=tAn.exports,nAn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{nobility_title_prefix} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(nAn);var HIa=nAn.exports;(function(t){var e={};t.exports=e,e.male_first_name=LIa,e.female_first_name=BIa,e.first_name=DIa,e.last_name=$Ia,e.prefix=FIa,e.nobility_title_prefix=jIa,e.name=HIa})(q0n);var UIa=q0n.exports,rAn={exports:{}},iAn={exports:{}};(function(t){t.exports=["(0###) #########","(0####) #######","+49-###-#######","+49-####-########"]})(iAn);var zIa=iAn.exports;(function(t){var e={};t.exports=e,e.formats=zIa})(rAn);var GIa=rAn.exports,aAn={exports:{}},oAn={exports:{}};(function(t){t.exports=["+49-1##-#######","+49-1###-########"]})(oAn);var VIa=oAn.exports;(function(t){var e={};t.exports=e,e.formats=VIa})(aAn);var KIa=aAn.exports,sAn={exports:{}},lAn={exports:{}};(function(t){t.exports={wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],wide_context:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],abbr:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],abbr_context:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}})(lAn);var WIa=lAn.exports,cAn={exports:{}};(function(t){t.exports={wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],wide_context:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],abbr:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],abbr_context:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]}})(cAn);var QIa=cAn.exports;(function(t){var e={};t.exports=e,e.month=WIa,e.weekday=QIa})(sAn);var qIa=sAn.exports;(function(t){var e={};t.exports=e,e.title="German",e.address=_Ia,e.company=RIa,e.internet=IIa,e.lorem=OIa,e.name=UIa,e.phone_number=GIa,e.cell_phone=KIa,e.date=qIa})(_0n);var YIa=_0n.exports,uAn={exports:{}},dAn={exports:{}},hAn={exports:{}};(function(t){t.exports=["Ägypten","Äquatorialguinea","Äthiopien","Österreich","Afghanistan","Albanien","Algerien","Amerikanisch-Samoa","Amerikanische Jungferninseln","Andorra","Angola","Anguilla","Antarktis","Antigua und Barbuda","Argentinien","Armenien","Aruba","Aserbaidschan","Australien","Bahamas","Bahrain","Bangladesch","Barbados","Belarus","Belgien","Belize","Benin","die Bermudas","Bhutan","Bolivien","Bosnien und Herzegowina","Botsuana","Bouvetinsel","Brasilien","Britische Jungferninseln","Britisches Territorium im Indischen Ozean","Brunei Darussalam","Bulgarien","Burkina Faso","Burundi","Chile","China","Cookinseln","Costa Rica","Dänemark","Demokratische Republik Kongo","Demokratische Volksrepublik Korea","Deutschland","Dominica","Dominikanische Republik","Dschibuti","Ecuador","El Salvador","Eritrea","Estland","Färöer","Falklandinseln","Fidschi","Finnland","Frankreich","Französisch-Guayana","Französisch-Polynesien","Französische Gebiete im südlichen Indischen Ozean","Gabun","Gambia","Georgien","Ghana","Gibraltar","Grönland","Grenada","Griechenland","Guadeloupe","Guam","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Heard und McDonaldinseln","Honduras","Hongkong","Indien","Indonesien","Irak","Iran","Irland","Island","Israel","Italien","Jamaika","Japan","Jemen","Jordanien","Jugoslawien","Kaimaninseln","Kambodscha","Kamerun","Kanada","Kap Verde","Kasachstan","Katar","Kenia","Kirgisistan","Kiribati","Kleinere amerikanische Überseeinseln","Kokosinseln","Kolumbien","Komoren","Kongo","Kroatien","Kuba","Kuwait","Laos","Lesotho","Lettland","Libanon","Liberia","Libyen","Liechtenstein","Litauen","Luxemburg","Macau","Madagaskar","Malawi","Malaysia","Malediven","Mali","Malta","ehemalige jugoslawische Republik Mazedonien","Marokko","Marshallinseln","Martinique","Mauretanien","Mauritius","Mayotte","Mexiko","Mikronesien","Monaco","Mongolei","Montserrat","Mosambik","Myanmar","Nördliche Marianen","Namibia","Nauru","Nepal","Neukaledonien","Neuseeland","Nicaragua","Niederländische Antillen","Niederlande","Niger","Nigeria","Niue","Norfolkinsel","Norwegen","Oman","Osttimor","Pakistan","Palau","Panama","Papua-Neuguinea","Paraguay","Peru","Philippinen","Pitcairninseln","Polen","Portugal","Puerto Rico","Réunion","Republik Korea","Republik Moldau","Ruanda","Rumänien","Russische Föderation","São Tomé und Príncipe","Südafrika","Südgeorgien und Südliche Sandwichinseln","Salomonen","Sambia","Samoa","San Marino","Saudi-Arabien","Schweden","Schweiz","Senegal","Seychellen","Sierra Leone","Simbabwe","Singapur","Slowakei","Slowenien","Somalien","Spanien","Sri Lanka","St. Helena","St. Kitts und Nevis","St. Lucia","St. Pierre und Miquelon","St. Vincent und die Grenadinen","Sudan","Surinam","Svalbard und Jan Mayen","Swasiland","Syrien","Türkei","Tadschikistan","Taiwan","Tansania","Thailand","Togo","Tokelau","Tonga","Trinidad und Tobago","Tschad","Tschechische Republik","Tunesien","Turkmenistan","Turks- und Caicosinseln","Tuvalu","Uganda","Ukraine","Ungarn","Uruguay","Usbekistan","Vanuatu","Vatikanstadt","Venezuela","Vereinigte Arabische Emirate","Vereinigte Staaten","Vereinigtes Königreich","Vietnam","Wallis und Futuna","Weihnachtsinsel","Westsahara","Zentralafrikanische Republik","Zypern"]})(hAn);var JIa=hAn.exports,fAn={exports:{}};(function(t){t.exports=["Ahorn","Ahorngasse (St. Andrä)","Alleestraße (Poysbrunn)","Alpenlandstraße","Alte Poststraße","Alte Ufergasse","Am Kronawett (Hagenbrunn)","Am Mühlwasser","Am Rebenhang","Am Sternweg","Anton Wildgans-Straße","Auer-von-Welsbach-Weg","Auf der Stift","Aufeldgasse","Bahngasse","Bahnhofstraße","Bahnstraße (Gerhaus)","Basteigasse","Berggasse","Bergstraße","Birkenweg","Blasiussteig","Blattur","Bruderhofgasse","Brunnelligasse","Bühelweg","Darnautgasse","Donaugasse","Dorfplatz (Haselbach)","Dr.-Oberreiter-Straße","Dr.Karl Holoubek-Str.","Drautal Bundesstraße","Dürnrohrer Straße","Ebenthalerstraße","Eckgrabenweg","Erlenstraße","Erlenweg","Eschenweg","Etrichgasse","Fassergasse","Feichteggerwiese","Feld-Weg","Feldgasse","Feldstapfe","Fischpointweg","Flachbergstraße","Flurweg","Franz Schubert-Gasse","Franz-Schneeweiß-Weg","Franz-von-Assisi-Straße","Fritz-Pregl-Straße","Fuchsgrubenweg","Födlerweg","Föhrenweg","Fünfhaus (Paasdorf)","Gabelsbergerstraße","Gartenstraße","Geigen","Geigergasse","Gemeindeaugasse","Gemeindeplatz","Georg-Aichinger-Straße","Glanfeldbachweg","Graben (Burgauberg)","Grub","Gröretgasse","Grünbach","Gösting","Hainschwang","Hans-Mauracher-Straße","Hart","Teichstraße","Hauptplatz","Hauptstraße","Heideweg","Heinrich Landauer Gasse","Helenengasse","Hermann von Gilmweg","Hermann-Löns-Gasse","Herminengasse","Hernstorferstraße","Hirsdorf","Hochfeistritz","Hochhaus Neue Donau","Hof","Hussovits Gasse","Höggen","Hütten","Janzgasse","Jochriemgutstraße","Johann-Strauß-Gasse","Julius-Raab-Straße","Kahlenberger Straße","Karl Kraft-Straße","Kegelprielstraße","Keltenberg-Eponaweg","Kennedybrücke","Kerpelystraße","Kindergartenstraße","Kinderheimgasse","Kirchenplatz","Kirchweg","Klagenfurter Straße","Klamm","Kleinbaumgarten","Klingergasse","Koloniestraße","Konrad-Duden-Gasse","Krankenhausstraße","Kubinstraße","Köhldorfergasse","Lackenweg","Lange Mekotte","Leifling","Leopold Frank-Straße (Pellendorf)","Lerchengasse (Pirka)","Lichtensternsiedlung V","Lindenhofstraße","Lindenweg","Luegstraße","Maierhof","Malerweg","Mitterweg","Mittlere Hauptstraße","Moosbachgasse","Morettigasse","Musikpavillon Riezlern","Mühlboden","Mühle","Mühlenweg","Neustiftgasse","Niederegg","Niedergams","Nordwestbahnbrücke","Oberbödenalm","Obere Berggasse","Oedt","Am Färberberg","Ottogasse","Paul Peters-Gasse","Perspektivstraße","Poppichl","Privatweg","Prixgasse","Pyhra","Radetzkystraße","Raiden","Reichensteinstraße","Reitbauernstraße","Reiterweg","Reitschulgasse","Ringweg","Rupertistraße","Römerstraße","Römerweg","Sackgasse","Schaunbergerstraße","Schloßweg","Schulgasse (Langeck)","Schönholdsiedlung","Seeblick","Seestraße","Semriacherstraße","Simling","Sipbachzeller Straße","Sonnenweg","Spargelfeldgasse","Spiesmayrweg","Sportplatzstraße","St.Ulrich","Steilmannstraße","Steingrüneredt","Strassfeld","Straßerau","Stöpflweg","Stüra","Taferngasse","Tennweg","Thomas Koschat-Gasse","Tiroler Straße","Torrogasse","Uferstraße (Schwarzau am Steinfeld)","Unterdörfl","Unterer Sonnrainweg","Verwaltersiedlung","Waldhang","Wasen","Weidenstraße","Weiherweg","Wettsteingasse","Wiener Straße","Windisch","Zebragasse","Zellerstraße","Ziehrerstraße","Zulechnerweg","Zwergjoch","Ötzbruck"]})(fAn);var ZIa=fAn.exports,pAn={exports:{}};(function(t){t.exports=["###","##","#","##a","##b","##c"]})(pAn);var XIa=pAn.exports,mAn={exports:{}};(function(t){t.exports=["Apt. ###","Zimmer ###","# OG"]})(mAn);var e3a=mAn.exports,gAn={exports:{}};(function(t){t.exports=["####"]})(gAn);var t3a=gAn.exports,vAn={exports:{}};(function(t){t.exports=["Burgenland","Kärnten","Niederösterreich","Oberösterreich","Salzburg","Steiermark","Tirol","Vorarlberg","Wien"]})(vAn);var n3a=vAn.exports,AAn={exports:{}};(function(t){t.exports=["Bgld.","Ktn.","NÖ","OÖ","Sbg.","Stmk.","T","Vbg.","W"]})(AAn);var r3a=AAn.exports,yAn={exports:{}};(function(t){t.exports=["Aigen im Mühlkreis","Allerheiligen bei Wildon","Altenfelden","Arriach","Axams","Baumgartenberg","Bergern im Dunkelsteinerwald","Berndorf bei Salzburg","Bregenz","Breitenbach am Inn","Deutsch-Wagram","Dienten am Hochkönig","Dietach","Dornbirn","Dürnkrut","Eben im Pongau","Ebenthal in Kärnten","Eichgraben","Eisenstadt","Ellmau","Feistritz am Wechsel","Finkenberg","Fiss","Frantschach-St. Gertraud","Fritzens","Gams bei Hieflau","Geiersberg","Graz","Großhöflein","Gößnitz","Hartl","Hausleiten","Herzogenburg","Hinterhornbach","Hochwolkersdorf","Ilz","Ilztal","Innerbraz","Innsbruck","Itter","Jagerberg","Jeging","Johnsbach","Johnsdorf-Brunn","Jungholz","Kindberg","Kirchdorf am Inn","Klagenfurt","Kottes-Purk","Krumau am Kamp","Krumbach","Lavamünd","Lech","Linz","Ludesch","Lödersdorf","Marbach an der Donau","Mattsee","Mautern an der Donau","Mauterndorf","Mitterbach am Erlaufsee","Neudorf bei Passail","Neudorf bei Staatz","Neukirchen an der Enknach","Neustift an der Lafnitz","Niederleis","Oberndorf in Tirol","Oberstorcha","Oberwaltersdorf","Oed-Oehling","Ort im Innkreis","Pilgersdorf","Pitschgau","Pollham","Preitenegg","Purbach am Neusiedler See","Rabenwald","Raiding","Rastenfeld","Ratten","Rettenegg","Salzburg","Sankt Johann im Saggautal","St. Peter am Kammersberg","St. Pölten","St. Veit an der Glan","Taxenbach","Tragwein","Trebesing","Trieben","Turnau","Ungerdorf","Unterauersbach","Unterstinkenbrunn","Untertilliach","Uttendorf","Vals","Velden am Wörther See","Viehhofen","Villach","Vitis","Waidhofen an der Thaya","Waldkirchen am Wesen","Weißkirchen an der Traun","Wien","Wimpassing im Schwarzatale","Ybbs an der Donau","Ybbsitz","Yspertal","Zeillern","Zell am Pettenfirst","Zell an der Pram","Zerlach","Zwölfaxing","Öblarn","Übelbach","Überackern","Übersaxen","Übersbach"]})(yAn);var i3a=yAn.exports,bAn={exports:{}};(function(t){t.exports=["#{city_name}"]})(bAn);var a3a=bAn.exports,xAn={exports:{}};(function(t){t.exports=["#{street_root}"]})(xAn);var o3a=xAn.exports,EAn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(EAn);var s3a=EAn.exports,SAn={exports:{}};(function(t){t.exports=["Österreich"]})(SAn);var l3a=SAn.exports;(function(t){var e={};t.exports=e,e.country=JIa,e.street_root=ZIa,e.building_number=XIa,e.secondary_address=e3a,e.postcode=t3a,e.state=n3a,e.state_abbr=r3a,e.city_name=i3a,e.city=a3a,e.street_name=o3a,e.street_address=s3a,e.default_country=l3a})(dAn);var c3a=dAn.exports,wAn={exports:{}},_An={exports:{}};(function(t){t.exports=["GmbH","AG","Gruppe","KG","GmbH & Co. KG","UG","OHG"]})(_An);var u3a=_An.exports,TAn={exports:{}};(function(t){t.exports=["GmbH","AG","Gruppe","KG","GmbH & Co. KG","UG","OHG"]})(TAn);var d3a=TAn.exports,CAn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} und #{Name.last_name}"]})(CAn);var h3a=CAn.exports;(function(t){var e={};t.exports=e,e.suffix=u3a,e.legal_form=d3a,e.name=h3a})(wAn);var f3a=wAn.exports,kAn={exports:{}},RAn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(RAn);var p3a=RAn.exports,MAn={exports:{}};(function(t){t.exports=["com","info","name","net","org","de","ch","at"]})(MAn);var m3a=MAn.exports;(function(t){var e={};t.exports=e,e.free_email=p3a,e.domain_suffix=m3a})(kAn);var g3a=kAn.exports,NAn={exports:{}},IAn={exports:{}};(function(t){t.exports=["Aaron","Abdul","Abdullah","Adam","Adrian","Adriano","Ahmad","Ahmed","Ahmet","Alan","Albert","Alessandro","Alessio","Alex","Alexander","Alfred","Ali","Amar","Amir","Amon","Andre","Andreas","Andrew","Angelo","Ansgar","Anthony","Anton","Antonio","Arda","Arian","Armin","Arne","Arno","Arthur","Artur","Arved","Arvid","Ayman","Baran","Baris","Bastian","Batuhan","Bela","Ben","Benedikt","Benjamin","Bennet","Bennett","Benno","Bent","Berat","Berkay","Bernd","Bilal","Bjarne","Björn","Bo","Boris","Brandon","Brian","Bruno","Bryan","Burak","Calvin","Can","Carl","Carlo","Carlos","Caspar","Cedric","Cedrik","Cem","Charlie","Chris","Christian","Christiano","Christoph","Christopher","Claas","Clemens","Colin","Collin","Conner","Connor","Constantin","Corvin","Curt","Damian","Damien","Daniel","Danilo","Danny","Darian","Dario","Darius","Darren","David","Davide","Davin","Dean","Deniz","Dennis","Denny","Devin","Diego","Dion","Domenic","Domenik","Dominic","Dominik","Dorian","Dustin","Dylan","Ecrin","Eddi","Eddy","Edgar","Edwin","Efe","Ege","Elia","Eliah","Elias","Elijah","Emanuel","Emil","Emilian","Emilio","Emir","Emirhan","Emre","Enes","Enno","Enrico","Eren","Eric","Erik","Etienne","Fabian","Fabien","Fabio","Fabrice","Falk","Felix","Ferdinand","Fiete","Filip","Finlay","Finley","Finn","Finnley","Florian","Francesco","Franz","Frederic","Frederick","Frederik","Friedrich","Fritz","Furkan","Fynn","Gabriel","Georg","Gerrit","Gian","Gianluca","Gino","Giuliano","Giuseppe","Gregor","Gustav","Hagen","Hamza","Hannes","Hanno","Hans","Hasan","Hassan","Hauke","Hendrik","Hennes","Henning","Henri","Henrick","Henrik","Henry","Hugo","Hussein","Ian","Ibrahim","Ilias","Ilja","Ilyas","Immanuel","Ismael","Ismail","Ivan","Iven","Jack","Jacob","Jaden","Jakob","Jamal","James","Jamie","Jan","Janek","Janis","Janne","Jannek","Jannes","Jannik","Jannis","Jano","Janosch","Jared","Jari","Jarne","Jarno","Jaron","Jason","Jasper","Jay","Jayden","Jayson","Jean","Jens","Jeremias","Jeremie","Jeremy","Jermaine","Jerome","Jesper","Jesse","Jim","Jimmy","Joe","Joel","Joey","Johann","Johannes","John","Johnny","Jon","Jona","Jonah","Jonas","Jonathan","Jonte","Joost","Jordan","Joris","Joscha","Joschua","Josef","Joseph","Josh","Joshua","Josua","Juan","Julian","Julien","Julius","Juri","Justin","Justus","Kaan","Kai","Kalle","Karim","Karl","Karlo","Kay","Keanu","Kenan","Kenny","Keno","Kerem","Kerim","Kevin","Kian","Kilian","Kim","Kimi","Kjell","Klaas","Klemens","Konrad","Konstantin","Koray","Korbinian","Kurt","Lars","Lasse","Laurence","Laurens","Laurenz","Laurin","Lean","Leander","Leandro","Leif","Len","Lenn","Lennard","Lennart","Lennert","Lennie","Lennox","Lenny","Leo","Leon","Leonard","Leonardo","Leonhard","Leonidas","Leopold","Leroy","Levent","Levi","Levin","Lewin","Lewis","Liam","Lian","Lias","Lino","Linus","Lio","Lion","Lionel","Logan","Lorenz","Lorenzo","Loris","Louis","Luan","Luc","Luca","Lucas","Lucian","Lucien","Ludwig","Luis","Luiz","Luk","Luka","Lukas","Luke","Lutz","Maddox","Mads","Magnus","Maik","Maksim","Malik","Malte","Manuel","Marc","Marcel","Marco","Marcus","Marek","Marian","Mario","Marius","Mark","Marko","Markus","Marlo","Marlon","Marten","Martin","Marvin","Marwin","Mateo","Mathis","Matis","Mats","Matteo","Mattes","Matthias","Matthis","Matti","Mattis","Maurice","Max","Maxim","Maximilian","Mehmet","Meik","Melvin","Merlin","Mert","Michael","Michel","Mick","Miguel","Mika","Mikail","Mike","Milan","Milo","Mio","Mirac","Mirco","Mirko","Mohamed","Mohammad","Mohammed","Moritz","Morten","Muhammed","Murat","Mustafa","Nathan","Nathanael","Nelson","Neo","Nevio","Nick","Niclas","Nico","Nicolai","Nicolas","Niels","Nikita","Niklas","Niko","Nikolai","Nikolas","Nils","Nino","Noah","Noel","Norman","Odin","Oke","Ole","Oliver","Omar","Onur","Oscar","Oskar","Pascal","Patrice","Patrick","Paul","Peer","Pepe","Peter","Phil","Philip","Philipp","Pierre","Piet","Pit","Pius","Quentin","Quirin","Rafael","Raik","Ramon","Raphael","Rasmus","Raul","Rayan","René","Ricardo","Riccardo","Richard","Rick","Rico","Robert","Robin","Rocco","Roman","Romeo","Ron","Ruben","Ryan","Said","Salih","Sam","Sami","Sammy","Samuel","Sandro","Santino","Sascha","Sean","Sebastian","Selim","Semih","Shawn","Silas","Simeon","Simon","Sinan","Sky","Stefan","Steffen","Stephan","Steve","Steven","Sven","Sönke","Sören","Taha","Tamino","Tammo","Tarik","Tayler","Taylor","Teo","Theo","Theodor","Thies","Thilo","Thomas","Thorben","Thore","Thorge","Tiago","Til","Till","Tillmann","Tim","Timm","Timo","Timon","Timothy","Tino","Titus","Tizian","Tjark","Tobias","Tom","Tommy","Toni","Tony","Torben","Tore","Tristan","Tyler","Tyron","Umut","Valentin","Valentino","Veit","Victor","Viktor","Vin","Vincent","Vito","Vitus","Wilhelm","Willi","William","Willy","Xaver","Yannic","Yannick","Yannik","Yannis","Yasin","Youssef","Yunus","Yusuf","Yven","Yves","Ömer","Aaliyah","Abby","Abigail","Ada","Adelina","Adriana","Aileen","Aimee","Alana","Alea","Alena","Alessa","Alessia","Alexa","Alexandra","Alexia","Alexis","Aleyna","Alia","Alica","Alice","Alicia","Alina","Alisa","Alisha","Alissa","Aliya","Aliyah","Allegra","Alma","Alyssa","Amalia","Amanda","Amelia","Amelie","Amina","Amira","Amy","Ana","Anabel","Anastasia","Andrea","Angela","Angelina","Angelique","Anja","Ann","Anna","Annabel","Annabell","Annabelle","Annalena","Anne","Anneke","Annelie","Annemarie","Anni","Annie","Annika","Anny","Anouk","Antonia","Arda","Ariana","Ariane","Arwen","Ashley","Asya","Aurelia","Aurora","Ava","Ayleen","Aylin","Ayse","Azra","Betty","Bianca","Bianka","Caitlin","Cara","Carina","Carla","Carlotta","Carmen","Carolin","Carolina","Caroline","Cassandra","Catharina","Catrin","Cecile","Cecilia","Celia","Celina","Celine","Ceyda","Ceylin","Chantal","Charleen","Charlotta","Charlotte","Chayenne","Cheyenne","Chiara","Christin","Christina","Cindy","Claire","Clara","Clarissa","Colleen","Collien","Cora","Corinna","Cosima","Dana","Daniela","Daria","Darleen","Defne","Delia","Denise","Diana","Dilara","Dina","Dorothea","Ecrin","Eda","Eileen","Ela","Elaine","Elanur","Elea","Elena","Eleni","Eleonora","Eliana","Elif","Elina","Elisa","Elisabeth","Ella","Ellen","Elli","Elly","Elsa","Emelie","Emely","Emilia","Emilie","Emily","Emma","Emmely","Emmi","Emmy","Enie","Enna","Enya","Esma","Estelle","Esther","Eva","Evelin","Evelina","Eveline","Evelyn","Fabienne","Fatima","Fatma","Felicia","Felicitas","Felina","Femke","Fenja","Fine","Finia","Finja","Finnja","Fiona","Flora","Florentine","Francesca","Franka","Franziska","Frederike","Freya","Frida","Frieda","Friederike","Giada","Gina","Giulia","Giuliana","Greta","Hailey","Hana","Hanna","Hannah","Heidi","Helen","Helena","Helene","Helin","Henriette","Henrike","Hermine","Ida","Ilayda","Imke","Ina","Ines","Inga","Inka","Irem","Isa","Isabel","Isabell","Isabella","Isabelle","Ivonne","Jacqueline","Jamie","Jamila","Jana","Jane","Janin","Janina","Janine","Janna","Janne","Jara","Jasmin","Jasmina","Jasmine","Jella","Jenna","Jennifer","Jenny","Jessica","Jessy","Jette","Jil","Jill","Joana","Joanna","Joelina","Joeline","Joelle","Johanna","Joleen","Jolie","Jolien","Jolin","Jolina","Joline","Jona","Jonah","Jonna","Josefin","Josefine","Josephin","Josephine","Josie","Josy","Joy","Joyce","Judith","Judy","Jule","Julia","Juliana","Juliane","Julie","Julienne","Julika","Julina","Juna","Justine","Kaja","Karina","Karla","Karlotta","Karolina","Karoline","Kassandra","Katarina","Katharina","Kathrin","Katja","Katrin","Kaya","Kayra","Kiana","Kiara","Kim","Kimberley","Kimberly","Kira","Klara","Korinna","Kristin","Kyra","Laila","Lana","Lara","Larissa","Laura","Laureen","Lavinia","Lea","Leah","Leana","Leandra","Leann","Lee","Leila","Lena","Lene","Leni","Lenia","Lenja","Lenya","Leona","Leoni","Leonie","Leonora","Leticia","Letizia","Levke","Leyla","Lia","Liah","Liana","Lili","Lilia","Lilian","Liliana","Lilith","Lilli","Lillian","Lilly","Lily","Lina","Linda","Lindsay","Line","Linn","Linnea","Lisa","Lisann","Lisanne","Liv","Livia","Liz","Lola","Loreen","Lorena","Lotta","Lotte","Louisa","Louise","Luana","Luca","Lucia","Lucie","Lucienne","Lucy","Luisa","Luise","Luka","Luna","Luzie","Lya","Lydia","Lyn","Lynn","Madeleine","Madita","Madleen","Madlen","Magdalena","Maike","Mailin","Maira","Maja","Malena","Malia","Malin","Malina","Mandy","Mara","Marah","Mareike","Maren","Maria","Mariam","Marie","Marieke","Mariella","Marika","Marina","Marisa","Marissa","Marit","Marla","Marleen","Marlen","Marlena","Marlene","Marta","Martha","Mary","Maryam","Mathilda","Mathilde","Matilda","Maxi","Maxima","Maxine","Maya","Mayra","Medina","Medine","Meike","Melanie","Melek","Melike","Melina","Melinda","Melis","Melisa","Melissa","Merle","Merve","Meryem","Mette","Mia","Michaela","Michelle","Mieke","Mila","Milana","Milena","Milla","Mina","Mira","Miray","Miriam","Mirja","Mona","Monique","Nadine","Nadja","Naemi","Nancy","Naomi","Natalia","Natalie","Nathalie","Neele","Nela","Nele","Nelli","Nelly","Nia","Nicole","Nika","Nike","Nikita","Nila","Nina","Nisa","Noemi","Nora","Olivia","Patricia","Patrizia","Paula","Paulina","Pauline","Penelope","Philine","Phoebe","Pia","Rahel","Rania","Rebecca","Rebekka","Riana","Rieke","Rike","Romina","Romy","Ronja","Rosa","Rosalie","Ruby","Sabrina","Sahra","Sally","Salome","Samantha","Samia","Samira","Sandra","Sandy","Sanja","Saphira","Sara","Sarah","Saskia","Selin","Selina","Selma","Sena","Sidney","Sienna","Silja","Sina","Sinja","Smilla","Sofia","Sofie","Sonja","Sophia","Sophie","Soraya","Stefanie","Stella","Stephanie","Stina","Sude","Summer","Susanne","Svea","Svenja","Sydney","Tabea","Talea","Talia","Tamara","Tamia","Tamina","Tanja","Tara","Tarja","Teresa","Tessa","Thalea","Thalia","Thea","Theresa","Tia","Tina","Tomke","Tuana","Valentina","Valeria","Valerie","Vanessa","Vera","Veronika","Victoria","Viktoria","Viola","Vivian","Vivien","Vivienne","Wibke","Wiebke","Xenia","Yara","Yaren","Yasmin","Ylvi","Ylvie","Yvonne","Zara","Zehra","Zeynep","Zoe","Zoey","Zoé"]})(IAn);var v3a=IAn.exports,PAn={exports:{}};(function(t){t.exports=["Abel","Abicht","Abraham","Abramovic","Abt","Achilles","Achkinadze","Ackermann","Adam","Adams","Ade","Agostini","Ahlke","Ahrenberg","Ahrens","Aigner","Albert","Albrecht","Alexa","Alexander","Alizadeh","Allgeyer","Amann","Amberg","Anding","Anggreny","Apitz","Arendt","Arens","Arndt","Aryee","Aschenbroich","Assmus","Astafei","Auer","Axmann","Baarck","Bachmann","Badane","Bader","Baganz","Bahl","Bak","Balcer","Balck","Balkow","Balnuweit","Balzer","Banse","Barr","Bartels","Barth","Barylla","Baseda","Battke","Bauer","Bauermeister","Baumann","Baumeister","Bauschinger","Bauschke","Bayer","Beavogui","Beck","Beckel","Becker","Beckmann","Bedewitz","Beele","Beer","Beggerow","Beh","Behr","Behrenbruch","Belz","Bender","Benecke","Benner","Benninger","Benzing","Berends","Berger","Berner","Berning","Bertenbreiter","Best","Bethke","Betz","Beushausen","Beutelspacher","Beyer","Biba","Bichler","Bickel","Biedermann","Bieler","Bielert","Bienasch","Bienias","Biesenbach","Bigdeli","Birkemeyer","Bittner","Blank","Blaschek","Blassneck","Bloch","Blochwitz","Blockhaus","Blum","Blume","Bock","Bode","Bogdashin","Bogenrieder","Bohge","Bolm","Borgschulze","Bork","Bormann","Bornscheuer","Borrmann","Borsch","Boruschewski","Bos","Bosler","Bourrouag","Bouschen","Boxhammer","Boyde","Bozsik","Brand","Brandenburg","Brandis","Brandt","Brauer","Braun","Brehmer","Breitenstein","Bremer","Bremser","Brenner","Brettschneider","Breu","Breuer","Briesenick","Bringmann","Brinkmann","Brix","Broening","Brosch","Bruckmann","Bruder","Bruhns","Brunner","Bruns","Bräutigam","Brömme","Brüggmann","Buchholz","Buchrucker","Buder","Bultmann","Bunjes","Burger","Burghagen","Burkhard","Burkhardt","Burmeister","Busch","Buschbaum","Busemann","Buss","Busse","Bussmann","Byrd","Bäcker","Böhm","Bönisch","Börgeling","Börner","Böttner","Büchele","Bühler","Büker","Büngener","Bürger","Bürklein","Büscher","Büttner","Camara","Carlowitz","Carlsohn","Caspari","Caspers","Chapron","Christ","Cierpinski","Clarius","Cleem","Cleve","Co","Conrad","Cordes","Cornelsen","Cors","Cotthardt","Crews","Cronjäger","Crosskofp","Da","Dahm","Dahmen","Daimer","Damaske","Danneberg","Danner","Daub","Daubner","Daudrich","Dauer","Daum","Dauth","Dautzenberg","De","Decker","Deckert","Deerberg","Dehmel","Deja","Delonge","Demut","Dengler","Denner","Denzinger","Derr","Dertmann","Dethloff","Deuschle","Dieckmann","Diedrich","Diekmann","Dienel","Dies","Dietrich","Dietz","Dietzsch","Diezel","Dilla","Dingelstedt","Dippl","Dittmann","Dittmar","Dittmer","Dix","Dobbrunz","Dobler","Dohring","Dolch","Dold","Dombrowski","Donie","Doskoczynski","Dragu","Drechsler","Drees","Dreher","Dreier","Dreissigacker","Dressler","Drews","Duma","Dutkiewicz","Dyett","Dylus","Dächert","Döbel","Döring","Dörner","Dörre","Dück","Eberhard","Eberhardt","Ecker","Eckhardt","Edorh","Effler","Eggenmueller","Ehm","Ehmann","Ehrig","Eich","Eifert","Einert","Eisenlauer","Ekpo","Elbe","Eleyth","Elss","Emert","Emmelmann","Ender","Engel","Engelen","Engelmann","Eplinius","Erdmann","Erhardt","Erlei","Erm","Ernst","Ertl","Erwes","Esenwein","Esser","Evers","Everts","Ewald","Fahner","Faller","Falter","Farber","Fassbender","Faulhaber","Fehrig","Feld","Felke","Feller","Fenner","Fenske","Feuerbach","Fietz","Figl","Figura","Filipowski","Filsinger","Fincke","Fink","Finke","Fischer","Fitschen","Fleischer","Fleischmann","Floder","Florczak","Flore","Flottmann","Forkel","Forst","Frahmeke","Frank","Franke","Franta","Frantz","Franz","Franzis","Franzmann","Frauen","Frauendorf","Freigang","Freimann","Freimuth","Freisen","Frenzel","Frey","Fricke","Fried","Friedek","Friedenberg","Friedmann","Friedrich","Friess","Frisch","Frohn","Frosch","Fuchs","Fuhlbrügge","Fusenig","Fust","Förster","Gaba","Gabius","Gabler","Gadschiew","Gakstädter","Galander","Gamlin","Gamper","Gangnus","Ganzmann","Garatva","Gast","Gastel","Gatzka","Gauder","Gebhardt","Geese","Gehre","Gehrig","Gehring","Gehrke","Geiger","Geisler","Geissler","Gelling","Gens","Gerbennow","Gerdel","Gerhardt","Gerschler","Gerson","Gesell","Geyer","Ghirmai","Ghosh","Giehl","Gierisch","Giesa","Giesche","Gilde","Glatting","Goebel","Goedicke","Goldbeck","Goldfuss","Goldkamp","Goldkühle","Goller","Golling","Gollnow","Golomski","Gombert","Gotthardt","Gottschalk","Gotz","Goy","Gradzki","Graf","Grams","Grasse","Gratzky","Grau","Greb","Green","Greger","Greithanner","Greschner","Griem","Griese","Grimm","Gromisch","Gross","Grosser","Grossheim","Grosskopf","Grothaus","Grothkopp","Grotke","Grube","Gruber","Grundmann","Gruning","Gruszecki","Gröss","Grötzinger","Grün","Grüner","Gummelt","Gunkel","Gunther","Gutjahr","Gutowicz","Gutschank","Göbel","Göckeritz","Göhler","Görlich","Görmer","Götz","Götzelmann","Güldemeister","Günther","Günz","Gürbig","Haack","Haaf","Habel","Hache","Hackbusch","Hackelbusch","Hadfield","Hadwich","Haferkamp","Hahn","Hajek","Hallmann","Hamann","Hanenberger","Hannecker","Hanniske","Hansen","Hardy","Hargasser","Harms","Harnapp","Harter","Harting","Hartlieb","Hartmann","Hartwig","Hartz","Haschke","Hasler","Hasse","Hassfeld","Haug","Hauke","Haupt","Haverney","Heberstreit","Hechler","Hecht","Heck","Hedermann","Hehl","Heidelmann","Heidler","Heinemann","Heinig","Heinke","Heinrich","Heinze","Heiser","Heist","Hellmann","Helm","Helmke","Helpling","Hengmith","Henkel","Hennes","Henry","Hense","Hensel","Hentel","Hentschel","Hentschke","Hepperle","Herberger","Herbrand","Hering","Hermann","Hermecke","Herms","Herold","Herrmann","Herschmann","Hertel","Herweg","Herwig","Herzenberg","Hess","Hesse","Hessek","Hessler","Hetzler","Heuck","Heydemüller","Hiebl","Hildebrand","Hildenbrand","Hilgendorf","Hillard","Hiller","Hingsen","Hingst","Hinrichs","Hirsch","Hirschberg","Hirt","Hodea","Hoffman","Hoffmann","Hofmann","Hohenberger","Hohl","Hohn","Hohnheiser","Hold","Holdt","Holinski","Holl","Holtfreter","Holz","Holzdeppe","Holzner","Hommel","Honz","Hooss","Hoppe","Horak","Horn","Horna","Hornung","Hort","Howard","Huber","Huckestein","Hudak","Huebel","Hugo","Huhn","Hujo","Huke","Huls","Humbert","Huneke","Huth","Häber","Häfner","Höcke","Höft","Höhne","Hönig","Hördt","Hübenbecker","Hübl","Hübner","Hügel","Hüttcher","Hütter","Ibe","Ihly","Illing","Isak","Isekenmeier","Itt","Jacob","Jacobs","Jagusch","Jahn","Jahnke","Jakobs","Jakubczyk","Jambor","Jamrozy","Jander","Janich","Janke","Jansen","Jarets","Jaros","Jasinski","Jasper","Jegorov","Jellinghaus","Jeorga","Jerschabek","Jess","John","Jonas","Jossa","Jucken","Jung","Jungbluth","Jungton","Just","Jürgens","Kaczmarek","Kaesmacher","Kahl","Kahlert","Kahles","Kahlmeyer","Kaiser","Kalinowski","Kallabis","Kallensee","Kampf","Kampschulte","Kappe","Kappler","Karhoff","Karrass","Karst","Karsten","Karus","Kass","Kasten","Kastner","Katzinski","Kaufmann","Kaul","Kausemann","Kawohl","Kazmarek","Kedzierski","Keil","Keiner","Keller","Kelm","Kempe","Kemper","Kempter","Kerl","Kern","Kesselring","Kesselschläger","Kette","Kettenis","Keutel","Kick","Kiessling","Kinadeter","Kinzel","Kinzy","Kirch","Kirst","Kisabaka","Klaas","Klabuhn","Klapper","Klauder","Klaus","Kleeberg","Kleiber","Klein","Kleinert","Kleininger","Kleinmann","Kleinsteuber","Kleiss","Klemme","Klimczak","Klinger","Klink","Klopsch","Klose","Kloss","Kluge","Kluwe","Knabe","Kneifel","Knetsch","Knies","Knippel","Knobel","Knoblich","Knoll","Knorr","Knorscheidt","Knut","Kobs","Koch","Kochan","Kock","Koczulla","Koderisch","Koehl","Koehler","Koenig","Koester","Kofferschlager","Koha","Kohle","Kohlmann","Kohnle","Kohrt","Koj","Kolb","Koleiski","Kolokas","Komoll","Konieczny","Konig","Konow","Konya","Koob","Kopf","Kosenkow","Koster","Koszewski","Koubaa","Kovacs","Kowalick","Kowalinski","Kozakiewicz","Krabbe","Kraft","Kral","Kramer","Krauel","Kraus","Krause","Krauspe","Kreb","Krebs","Kreissig","Kresse","Kreutz","Krieger","Krippner","Krodinger","Krohn","Krol","Kron","Krueger","Krug","Kruger","Krull","Kruschinski","Krämer","Kröckert","Kröger","Krüger","Kubera","Kufahl","Kuhlee","Kuhnen","Kulimann","Kulma","Kumbernuss","Kummle","Kunz","Kupfer","Kupprion","Kuprion","Kurnicki","Kurrat","Kurschilgen","Kuschewitz","Kuschmann","Kuske","Kustermann","Kutscherauer","Kutzner","Kwadwo","Kähler","Käther","Köhler","Köhrbrück","Köhre","Kölotzei","König","Köpernick","Köseoglu","Kúhn","Kúhnert","Kühn","Kühnel","Kühnemund","Kühnert","Kühnke","Küsters","Küter","Laack","Lack","Ladewig","Lakomy","Lammert","Lamos","Landmann","Lang","Lange","Langfeld","Langhirt","Lanig","Lauckner","Lauinger","Laurén","Lausecker","Laux","Laws","Lax","Leberer","Lehmann","Lehner","Leibold","Leide","Leimbach","Leipold","Leist","Leiter","Leiteritz","Leitheim","Leiwesmeier","Lenfers","Lenk","Lenz","Lenzen","Leo","Lepthin","Lesch","Leschnik","Letzelter","Lewin","Lewke","Leyckes","Lg","Lichtenfeld","Lichtenhagen","Lichtl","Liebach","Liebe","Liebich","Liebold","Lieder","Lienshöft","Linden","Lindenberg","Lindenmayer","Lindner","Linke","Linnenbaum","Lippe","Lipske","Lipus","Lischka","Lobinger","Logsch","Lohmann","Lohre","Lohse","Lokar","Loogen","Lorenz","Losch","Loska","Lott","Loy","Lubina","Ludolf","Lufft","Lukoschek","Lutje","Lutz","Löser","Löwa","Lübke","Maak","Maczey","Madetzky","Madubuko","Mai","Maier","Maisch","Malek","Malkus","Mallmann","Malucha","Manns","Manz","Marahrens","Marchewski","Margis","Markowski","Marl","Marner","Marquart","Marschek","Martel","Marten","Martin","Marx","Marxen","Mathes","Mathies","Mathiszik","Matschke","Mattern","Matthes","Matula","Mau","Maurer","Mauroff","May","Maybach","Mayer","Mebold","Mehl","Mehlhorn","Mehlorn","Meier","Meisch","Meissner","Meloni","Melzer","Menga","Menne","Mensah","Mensing","Merkel","Merseburg","Mertens","Mesloh","Metzger","Metzner","Mewes","Meyer","Michallek","Michel","Mielke","Mikitenko","Milde","Minah","Mintzlaff","Mockenhaupt","Moede","Moedl","Moeller","Moguenara","Mohr","Mohrhard","Molitor","Moll","Moller","Molzan","Montag","Moormann","Mordhorst","Morgenstern","Morhelfer","Moritz","Moser","Motchebon","Motzenbbäcker","Mrugalla","Muckenthaler","Mues","Muller","Mulrain","Mächtig","Mäder","Möcks","Mögenburg","Möhsner","Möldner","Möllenbeck","Möller","Möllinger","Mörsch","Mühleis","Müller","Münch","Nabein","Nabow","Nagel","Nannen","Nastvogel","Nau","Naubert","Naumann","Ne","Neimke","Nerius","Neubauer","Neubert","Neuendorf","Neumair","Neumann","Neupert","Neurohr","Neuschwander","Newton","Ney","Nicolay","Niedermeier","Nieklauson","Niklaus","Nitzsche","Noack","Nodler","Nolte","Normann","Norris","Northoff","Nowak","Nussbeck","Nwachukwu","Nytra","Nöh","Oberem","Obergföll","Obermaier","Ochs","Oeser","Olbrich","Onnen","Ophey","Oppong","Orth","Orthmann","Oschkenat","Osei","Osenberg","Ostendarp","Ostwald","Otte","Otto","Paesler","Pajonk","Pallentin","Panzig","Paschke","Patzwahl","Paukner","Peselman","Peter","Peters","Petzold","Pfeiffer","Pfennig","Pfersich","Pfingsten","Pflieger","Pflügner","Philipp","Pichlmaier","Piesker","Pietsch","Pingpank","Pinnock","Pippig","Pitschugin","Plank","Plass","Platzer","Plauk","Plautz","Pletsch","Plotzitzka","Poehn","Poeschl","Pogorzelski","Pohl","Pohland","Pohle","Polifka","Polizzi","Pollmächer","Pomp","Ponitzsch","Porsche","Porth","Poschmann","Poser","Pottel","Prah","Prange","Prediger","Pressler","Preuk","Preuss","Prey","Priemer","Proske","Pusch","Pöche","Pöge","Raabe","Rabenstein","Rach","Radtke","Rahn","Ranftl","Rangen","Ranz","Rapp","Rath","Rau","Raubuch","Raukuc","Rautenkranz","Rehwagen","Reiber","Reichardt","Reichel","Reichling","Reif","Reifenrath","Reimann","Reinberg","Reinelt","Reinhardt","Reinke","Reitze","Renk","Rentz","Renz","Reppin","Restle","Restorff","Retzke","Reuber","Reumann","Reus","Reuss","Reusse","Rheder","Rhoden","Richards","Richter","Riedel","Riediger","Rieger","Riekmann","Riepl","Riermeier","Riester","Riethmüller","Rietmüller","Rietscher","Ringel","Ringer","Rink","Ripken","Ritosek","Ritschel","Ritter","Rittweg","Ritz","Roba","Rockmeier","Rodehau","Rodowski","Roecker","Roggatz","Rohländer","Rohrer","Rokossa","Roleder","Roloff","Roos","Rosbach","Roschinsky","Rose","Rosenauer","Rosenbauer","Rosenthal","Rosksch","Rossberg","Rossler","Roth","Rother","Ruch","Ruckdeschel","Rumpf","Rupprecht","Ruth","Ryjikh","Ryzih","Rädler","Räntsch","Rödiger","Röse","Röttger","Rücker","Rüdiger","Rüter","Sachse","Sack","Saflanis","Sagafe","Sagonas","Sahner","Saile","Sailer","Salow","Salzer","Salzmann","Sammert","Sander","Sarvari","Sattelmaier","Sauer","Sauerland","Saumweber","Savoia","Scc","Schacht","Schaefer","Schaffarzik","Schahbasian","Scharf","Schedler","Scheer","Schelk","Schellenbeck","Schembera","Schenk","Scherbarth","Scherer","Schersing","Scherz","Scheurer","Scheuring","Scheytt","Schielke","Schieskow","Schildhauer","Schilling","Schima","Schimmer","Schindzielorz","Schirmer","Schirrmeister","Schlachter","Schlangen","Schlawitz","Schlechtweg","Schley","Schlicht","Schlitzer","Schmalzle","Schmid","Schmidt","Schmidtchen","Schmitt","Schmitz","Schmuhl","Schneider","Schnelting","Schnieder","Schniedermeier","Schnürer","Schoberg","Scholz","Schonberg","Schondelmaier","Schorr","Schott","Schottmann","Schouren","Schrader","Schramm","Schreck","Schreiber","Schreiner","Schreiter","Schroder","Schröder","Schuermann","Schuff","Schuhaj","Schuldt","Schult","Schulte","Schultz","Schultze","Schulz","Schulze","Schumacher","Schumann","Schupp","Schuri","Schuster","Schwab","Schwalm","Schwanbeck","Schwandke","Schwanitz","Schwarthoff","Schwartz","Schwarz","Schwarzer","Schwarzkopf","Schwarzmeier","Schwatlo","Schweisfurth","Schwennen","Schwerdtner","Schwidde","Schwirkschlies","Schwuchow","Schäfer","Schäffel","Schäffer","Schäning","Schöckel","Schönball","Schönbeck","Schönberg","Schönebeck","Schönenberger","Schönfeld","Schönherr","Schönlebe","Schötz","Schüler","Schüppel","Schütz","Schütze","Seeger","Seelig","Sehls","Seibold","Seidel","Seiders","Seigel","Seiler","Seitz","Semisch","Senkel","Sewald","Siebel","Siebert","Siegling","Sielemann","Siemon","Siener","Sievers","Siewert","Sihler","Sillah","Simon","Sinnhuber","Sischka","Skibicki","Sladek","Slotta","Smieja","Soboll","Sokolowski","Soller","Sollner","Sommer","Somssich","Sonn","Sonnabend","Spahn","Spank","Spelmeyer","Spiegelburg","Spielvogel","Spinner","Spitzmüller","Splinter","Sporrer","Sprenger","Spöttel","Stahl","Stang","Stanger","Stauss","Steding","Steffen","Steffny","Steidl","Steigauf","Stein","Steinecke","Steinert","Steinkamp","Steinmetz","Stelkens","Stengel","Stengl","Stenzel","Stepanov","Stephan","Stern","Steuk","Stief","Stifel","Stoll","Stolle","Stolz","Storl","Storp","Stoutjesdijk","Stratmann","Straub","Strausa","Streck","Streese","Strege","Streit","Streller","Strieder","Striezel","Strogies","Strohschank","Strunz","Strutz","Stube","Stöckert","Stöppler","Stöwer","Stürmer","Suffa","Sujew","Sussmann","Suthe","Sutschet","Swillims","Szendrei","Sören","Sürth","Tafelmeier","Tang","Tasche","Taufratshofer","Tegethof","Teichmann","Tepper","Terheiden","Terlecki","Teufel","Theele","Thieke","Thimm","Thiomas","Thomas","Thriene","Thränhardt","Thust","Thyssen","Thöne","Tidow","Tiedtke","Tietze","Tilgner","Tillack","Timmermann","Tischler","Tischmann","Tittman","Tivontschik","Tonat","Tonn","Trampeli","Trauth","Trautmann","Travan","Treff","Tremmel","Tress","Tsamonikian","Tschiers","Tschirch","Tuch","Tucholke","Tudow","Tuschmo","Tächl","Többen","Töpfer","Uhlemann","Uhlig","Uhrig","Uibel","Uliczka","Ullmann","Ullrich","Umbach","Umlauft","Umminger","Unger","Unterpaintner","Urban","Urbaniak","Urbansky","Urhig","Vahlensieck","Van","Vangermain","Vater","Venghaus","Verniest","Verzi","Vey","Viellehner","Vieweg","Voelkel","Vogel","Vogelgsang","Vogt","Voigt","Vokuhl","Volk","Volker","Volkmann","Von","Vona","Vontein","Wachenbrunner","Wachtel","Wagner","Waibel","Wakan","Waldmann","Wallner","Wallstab","Walter","Walther","Walton","Walz","Wanner","Wartenberg","Waschbüsch","Wassilew","Wassiluk","Weber","Wehrsen","Weidlich","Weidner","Weigel","Weight","Weiler","Weimer","Weis","Weiss","Weller","Welsch","Welz","Welzel","Weniger","Wenk","Werle","Werner","Werrmann","Wessel","Wessinghage","Weyel","Wezel","Wichmann","Wickert","Wiebe","Wiechmann","Wiegelmann","Wierig","Wiese","Wieser","Wilhelm","Wilky","Will","Willwacher","Wilts","Wimmer","Winkelmann","Winkler","Winter","Wischek","Wischer","Wissing","Wittich","Wittl","Wolf","Wolfarth","Wolff","Wollenberg","Wollmann","Woytkowska","Wujak","Wurm","Wyludda","Wölpert","Wöschler","Wühn","Wünsche","Zach","Zaczkiewicz","Zahn","Zaituc","Zandt","Zanner","Zapletal","Zauber","Zeidler","Zekl","Zender","Zeuch","Zeyen","Zeyhle","Ziegler","Zimanyi","Zimmer","Zimmermann","Zinser","Zintl","Zipp","Zipse","Zschunke","Zuber","Zwiener","Zümsande","Östringer","Überacker"]})(PAn);var A3a=PAn.exports,OAn={exports:{}};(function(t){t.exports=["Dr.","Prof. Dr."]})(OAn);var y3a=OAn.exports,LAn={exports:{}};(function(t){t.exports=["zu","von","vom","von der"]})(LAn);var b3a=LAn.exports,BAn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{nobility_title_prefix} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}"]})(BAn);var x3a=BAn.exports;(function(t){var e={};t.exports=e,e.first_name=v3a,e.last_name=A3a,e.prefix=y3a,e.nobility_title_prefix=b3a,e.name=x3a})(NAn);var E3a=NAn.exports,DAn={exports:{}},$An={exports:{}};(function(t){t.exports=["01 #######","01#######","+43-1-#######","+431#######","0#### ####","0#########","+43-####-####","+43 ########"]})($An);var S3a=$An.exports;(function(t){var e={};t.exports=e,e.formats=S3a})(DAn);var w3a=DAn.exports,FAn={exports:{}},jAn={exports:{}};(function(t){t.exports=["+43-6##-#######","06##-########","+436#########","06##########"]})(jAn);var _3a=jAn.exports;(function(t){var e={};t.exports=e,e.formats=_3a})(FAn);var T3a=FAn.exports;(function(t){var e={};t.exports=e,e.title="German (Austria)",e.address=c3a,e.company=f3a,e.internet=g3a,e.name=E3a,e.phone_number=w3a,e.cell_phone=T3a})(uAn);var C3a=uAn.exports,HAn={exports:{}},UAn={exports:{}},zAn={exports:{}};(function(t){t.exports=["CH","CH","CH","DE","AT","US","LI","US","HK","VN"]})(zAn);var k3a=zAn.exports,GAn={exports:{}};(function(t){t.exports=["1###","2###","3###","4###","5###","6###","7###","8###","9###"]})(GAn);var R3a=GAn.exports,VAn={exports:{}};(function(t){t.exports=["Aargau","Appenzell Ausserrhoden","Appenzell Innerrhoden","Basel-Land","Basel-Stadt","Bern","Freiburg","Genf","Glarus","Graubünden","Jura","Luzern","Neuenburg","Nidwalden","Obwalden","St. Gallen","Schaffhausen","Schwyz","Solothurn","Tessin","Thurgau","Uri","Waadt","Wallis","Zug","Zürich"]})(VAn);var M3a=VAn.exports,KAn={exports:{}};(function(t){t.exports=["AG","AR","AI","BL","BS","BE","FR","GE","GL","GR","JU","LU","NE","NW","OW","SG","SH","SZ","SO","TI","TG","UR","VD","VS","ZG","ZH"]})(KAn);var N3a=KAn.exports,WAn={exports:{}};(function(t){t.exports=["Aarau","Adliswil","Allschwil","Arbon","Baar","Baden","Basel","Bellinzona","Bern","Biel/Bienne","Binningen","Brig-Glis","Bulle","Burgdorf","Bülach","Carouge","Cham","Chur","Dietikon","Dübendorf","Einsiedeln","Emmen","Frauenfeld","Freiburg","Freienbach","Genf","Glarus Nord","Gossau","Grenchen","Herisau","Horgen","Horw","Illnau-Effretikon","Kloten","Kreuzlingen","Kriens","Köniz","Küsnacht","La Chaux-de-Fonds","Lancy","Langenthal","Lausanne","Liestal","Locarno","Lugano","Luzern","Lyss","Martigny","Meilen","Mendrisio","Meyrin","Monthey","Montreux","Morges","Muri bei Bern","Muttenz","Neuenburg","Nyon","Oftringen","Olten","Onex","Opfikon","Ostermundigen","Pratteln","Pully","Rapperswil-Jona","Regensdorf","Reinach","Renens","Rheinfelden","Richterswil","Riehen","Schaffhausen","Schlieren","Schwyz","Siders","Sitten","Solothurn","St. Gallen","Steffisburg","Stäfa","Thalwil","Thun","Thônex","Uster","Val-de-Ruz","Vernier","Versoix","Vevey","Volketswil","Wallisellen","Wettingen","Wetzikon","Wil","Winterthur","Wohlen","Wädenswil","Yverdon-les-Bains","Zug","Zürich"]})(WAn);var I3a=WAn.exports,QAn={exports:{}};(function(t){t.exports=["#{city_name}"]})(QAn);var P3a=QAn.exports,qAn={exports:{}};(function(t){t.exports=["Schweiz"]})(qAn);var O3a=qAn.exports;(function(t){var e={};t.exports=e,e.country_code=k3a,e.postcode=R3a,e.state=M3a,e.state_abbr=N3a,e.city_name=I3a,e.city=P3a,e.default_country=O3a})(UAn);var L3a=UAn.exports,YAn={exports:{}},JAn={exports:{}};(function(t){t.exports=["AG","GmbH","und Söhne","und Partner","& Co.","Gruppe","LLC","Inc."]})(JAn);var B3a=JAn.exports,ZAn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} und #{Name.last_name}"]})(ZAn);var D3a=ZAn.exports;(function(t){var e={};t.exports=e,e.suffix=B3a,e.name=D3a})(YAn);var $3a=YAn.exports,XAn={exports:{}},e1n={exports:{}};(function(t){t.exports=["com","net","biz","ch","de","li","at","ch","ch"]})(e1n);var F3a=e1n.exports;(function(t){var e={};t.exports=e,e.domain_suffix=F3a})(XAn);var j3a=XAn.exports,t1n={exports:{}},n1n={exports:{}};(function(t){t.exports=["Adolf","Adrian","Agnes","Alain","Albert","Alberto","Aldo","Alex","Alexander","Alexandre","Alfons","Alfred","Alice","Alois","André","Andrea","Andreas","Angela","Angelo","Anita","Anna","Anne","Anne-Marie","Annemarie","Antoine","Anton","Antonio","Armin","Arnold","Arthur","Astrid","Barbara","Beat","Beatrice","Beatrix","Bernadette","Bernard","Bernhard","Bettina","Brigitta","Brigitte","Bruno","Carlo","Carmen","Caroline","Catherine","Chantal","Charles","Charlotte","Christa","Christian","Christiane","Christina","Christine","Christoph","Christophe","Claire","Claude","Claudia","Claudine","Claudio","Corinne","Cornelia","Daniel","Daniela","Daniele","Danielle","David","Denis","Denise","Didier","Dieter","Dominik","Dominique","Dora","Doris","Edgar","Edith","Eduard","Edwin","Eliane","Elisabeth","Elsa","Elsbeth","Emil","Enrico","Eric","Erica","Erich","Erika","Ernst","Erwin","Esther","Eugen","Eva","Eveline","Evelyne","Fabienne","Felix","Ferdinand","Florence","Francesco","Francis","Franco","François","Françoise","Frank","Franz","Franziska","Frédéric","Fredy","Fridolin","Friedrich","Fritz","Gabriel","Gabriela","Gabrielle","Georg","Georges","Gérald","Gérard","Gerhard","Gertrud","Gianni","Gilbert","Giorgio","Giovanni","Gisela","Giuseppe","Gottfried","Guido","Guy","Hanna","Hans","Hans-Peter","Hans-Rudolf","Hans-Ulrich","Hansjörg","Hanspeter","Hansruedi","Hansueli","Harry","Heidi","Heinrich","Heinz","Helen","Helena","Helene","Helmut","Henri","Herbert","Hermann","Hildegard","Hubert","Hugo","Ingrid","Irene","Iris","Isabelle","Jacqueline","Jacques","Jakob","Jan","Janine","Jean","Jean-Claude","Jean-Daniel","Jean-François","Jean-Jacques","Jean-Louis","Jean-Luc","Jean-Marc","Jean-Marie","Jean-Paul","Jean-Pierre","Johann","Johanna","Johannes","John","Jolanda","Jörg","Josef","Joseph","Josette","Josiane","Judith","Julia","Jürg","Karin","Karl","Katharina","Klaus","Konrad","Kurt","Laura","Laurence","Laurent","Leo","Liliane","Liselotte","Louis","Luca","Luigi","Lukas","Lydia","Madeleine","Maja","Manfred","Manuel","Manuela","Marc","Marcel","Marco","Margrit","Margrith","Maria","Marianne","Mario","Marion","Markus","Marlène","Marlies","Marlis","Martha","Martin","Martina","Martine","Massimo","Matthias","Maurice","Max","Maya","Michael","Michel","Michele","Micheline","Monica","Monika","Monique","Myriam","Nadia","Nadja","Nathalie","Nelly","Nicolas","Nicole","Niklaus","Norbert","Olivier","Oskar","Otto","Paola","Paolo","Pascal","Patricia","Patrick","Paul","Peter","Petra","Philipp","Philippe","Pia","Pierre","Pierre-Alain","Pierre-André","Pius","Priska","Rainer","Raymond","Regina","Regula","Reinhard","Remo","Renata","Renate","Renato","Rene","René","Reto","Richard","Rita","Robert","Roberto","Roger","Roland","Rolf","Roman","Rosa","Rosemarie","Rosmarie","Rudolf","Ruedi","Ruth","Sabine","Samuel","Sandra","Sandro","Serge","Silvia","Silvio","Simon","Simone","Sonia","Sonja","Stefan","Stephan","Stéphane","Stéphanie","Susanna","Susanne","Suzanne","Sylvia","Sylvie","Theo","Theodor","Therese","Thomas","Toni","Ueli","Ulrich","Urs","Ursula","Verena","Véronique","Victor","Viktor","Vreni","Walter","Werner","Willi","Willy","Wolfgang","Yolande","Yves","Yvette","Yvonne"]})(n1n);var H3a=n1n.exports,r1n={exports:{}};(function(t){t.exports=["Ackermann","Aebi","Albrecht","Ammann","Amrein","Arnold","Bachmann","Bader","Bär","Bättig","Bauer","Baumann","Baumgartner","Baur","Beck","Benz","Berger","Bernasconi","Betschart","Bianchi","Bieri","Blaser","Blum","Bolliger","Bosshard","Braun","Brun","Brunner","Bucher","Bühler","Bühlmann","Burri","Christen","Egger","Egli","Eichenberger","Erni","Ernst","Eugster","Fankhauser","Favre","Fehr","Felber","Felder","Ferrari","Fischer","Flückiger","Forster","Frei","Frey","Frick","Friedli","Fuchs","Furrer","Gasser","Geiger","Gerber","Gfeller","Giger","Gloor","Graf","Grob","Gross","Gut","Haas","Häfliger","Hafner","Hartmann","Hasler","Hauser","Hermann","Herzog","Hess","Hirt","Hodel","Hofer","Hoffmann","Hofmann","Hofstetter","Hotz","Huber","Hug","Hunziker","Hürlimann","Imhof","Isler","Iten","Jäggi","Jenni","Jost","Kägi","Kaiser","Kälin","Käser","Kaufmann","Keller","Kern","Kessler","Knecht","Koch","Kohler","Kuhn","Küng","Kunz","Lang","Lanz","Lehmann","Leu","Leunberger","Lüscher","Lustenberger","Lüthi","Lutz","Mäder","Maier","Marti","Martin","Maurer","Mayer","Meier","Meili","Meister","Merz","Mettler","Meyer","Michel","Moser","Müller","Näf","Ott","Peter","Pfister","Portmann","Probst","Rey","Ritter","Roos","Roth","Rüegg","Schäfer","Schaller","Schär","Schärer","Schaub","Scheidegger","Schenk","Scherrer","Schlatter","Schmid","Schmidt","Schneider","Schnyder","Schoch","Schuler","Schumacher","Schürch","Schwab","Schwarz","Schweizer","Seiler","Senn","Sidler","Siegrist","Sigrist","Spörri","Stadelmann","Stalder","Staub","Stauffer","Steffen","Steiger","Steiner","Steinmann","Stettler","Stocker","Stöckli","Stucki","Studer","Stutz","Suter","Sutter","Tanner","Thommen","Tobler","Vogel","Vogt","Wagner","Walder","Walter","Weber","Wegmann","Wehrli","Weibel","Wenger","Wettstein","Widmer","Winkler","Wirth","Wirz","Wolf","Wüthrich","Wyss","Zbinden","Zehnder","Ziegler","Zimmermann","Zingg","Zollinger","Zürcher"]})(r1n);var U3a=r1n.exports,i1n={exports:{}};(function(t){t.exports=["Hr.","Fr.","Dr."]})(i1n);var z3a=i1n.exports,a1n={exports:{}};(function(t){t.exports=["#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}"]})(a1n);var G3a=a1n.exports;(function(t){var e={};t.exports=e,e.first_name=H3a,e.last_name=U3a,e.prefix=z3a,e.name=G3a})(t1n);var V3a=t1n.exports,o1n={exports:{}},s1n={exports:{}};(function(t){t.exports=["0800 ### ###","0800 ## ## ##","0## ### ## ##","0## ### ## ##","+41 ## ### ## ##","0900 ### ###","076 ### ## ##","+4178 ### ## ##","0041 79 ### ## ##"]})(s1n);var K3a=s1n.exports;(function(t){var e={};t.exports=e,e.formats=K3a})(o1n);var W3a=o1n.exports;(function(t){var e={};t.exports=e,e.title="German (Switzerland)",e.address=L3a,e.company=$3a,e.internet=j3a,e.name=V3a,e.phone_number=W3a})(HAn);var Q3a=HAn.exports,l1n={exports:{}},c1n={exports:{}},u1n={exports:{}};(function(t){t.exports=["North","East","West","South","New","Lake","Port"]})(u1n);var q3a=u1n.exports,d1n={exports:{}};(function(t){t.exports=["town","ton","land","ville","berg","burgh","borough","bury","view","port","mouth","stad","furt","chester","mouth","fort","haven","side","shire"]})(d1n);var Y3a=d1n.exports,J3a=["Abilene","Akron","Alafaya","Alameda","Albany","Albany","Albany","Albuquerque","Alexandria","Alexandria","Alhambra","Aliso Viejo","Allen","Allentown","Aloha","Alpharetta","Altadena","Altamonte Springs","Altoona","Amarillo","Ames","Anaheim","Anchorage","Anderson","Ankeny","Ann Arbor","Annandale","Antelope","Antioch","Apex","Apopka","Apple Valley","Apple Valley","Appleton","Arcadia","Arden-Arcade","Arecibo","Arlington","Arlington","Arlington","Arlington Heights","Arvada","Ashburn","Asheville","Aspen Hill","Atascocita","Athens-Clarke County","Atlanta","Attleboro","Auburn","Auburn","Augusta-Richmond County","Aurora","Aurora","Austin","Avondale","Azusa","Bakersfield","Baldwin Park","Baltimore","Barnstable Town","Bartlett","Bartlett","Baton Rouge","Battle Creek","Bayamon","Bayonne","Baytown","Beaumont","Beaumont","Beavercreek","Beaverton","Bedford","Bel Air South","Bell Gardens","Belleville","Bellevue","Bellevue","Bellflower","Bellingham","Bend","Bentonville","Berkeley","Berwyn","Bethesda","Bethlehem","Billings","Biloxi","Binghamton","Birmingham","Bismarck","Blacksburg","Blaine","Bloomington","Bloomington","Bloomington","Blue Springs","Boca Raton","Boise City","Bolingbrook","Bonita Springs","Bossier City","Boston","Bothell","Boulder","Bountiful","Bowie","Bowling Green","Boynton Beach","Bozeman","Bradenton","Brandon","Brentwood","Brentwood","Bridgeport","Bristol","Brockton","Broken Arrow","Brookhaven","Brookline","Brooklyn Park","Broomfield","Brownsville","Bryan","Buckeye","Buena Park","Buffalo","Buffalo Grove","Burbank","Burien","Burke","Burleson","Burlington","Burlington","Burnsville","Caguas","Caldwell","Camarillo","Cambridge","Camden","Canton","Cape Coral","Carlsbad","Carmel","Carmichael","Carolina","Carrollton","Carson","Carson City","Cary","Casa Grande","Casas Adobes","Casper","Castle Rock","Castro Valley","Catalina Foothills","Cathedral City","Catonsville","Cedar Hill","Cedar Park","Cedar Rapids","Centennial","Centreville","Ceres","Cerritos","Champaign","Chandler","Chapel Hill","Charleston","Charleston","Charlotte","Charlottesville","Chattanooga","Cheektowaga","Chesapeake","Chesterfield","Cheyenne","Chicago","Chico","Chicopee","Chino","Chino Hills","Chula Vista","Cicero","Cincinnati","Citrus Heights","Clarksville","Clearwater","Cleveland","Cleveland","Cleveland Heights","Clifton","Clovis","Coachella","Coconut Creek","Coeur d'Alene","College Station","Collierville","Colorado Springs","Colton","Columbia","Columbia","Columbia","Columbus","Columbus","Columbus","Commerce City","Compton","Concord","Concord","Concord","Conroe","Conway","Coon Rapids","Coral Gables","Coral Springs","Corona","Corpus Christi","Corvallis","Costa Mesa","Council Bluffs","Country Club","Covina","Cranston","Cupertino","Cutler Bay","Cuyahoga Falls","Cypress","Dale City","Dallas","Daly City","Danbury","Danville","Danville","Davenport","Davie","Davis","Dayton","Daytona Beach","DeKalb","DeSoto","Dearborn","Dearborn Heights","Decatur","Decatur","Deerfield Beach","Delano","Delray Beach","Deltona","Denton","Denver","Des Moines","Des Plaines","Detroit","Diamond Bar","Doral","Dothan","Downers Grove","Downey","Draper","Dublin","Dublin","Dubuque","Duluth","Dundalk","Dunwoody","Durham","Eagan","East Hartford","East Honolulu","East Lansing","East Los Angeles","East Orange","East Providence","Eastvale","Eau Claire","Eden Prairie","Edina","Edinburg","Edmond","El Cajon","El Centro","El Dorado Hills","El Monte","El Paso","Elgin","Elizabeth","Elk Grove","Elkhart","Ellicott City","Elmhurst","Elyria","Encinitas","Enid","Enterprise","Erie","Escondido","Euclid","Eugene","Euless","Evanston","Evansville","Everett","Everett","Fairfield","Fairfield","Fall River","Fargo","Farmington","Farmington Hills","Fayetteville","Fayetteville","Federal Way","Findlay","Fishers","Flagstaff","Flint","Florence-Graham","Florin","Florissant","Flower Mound","Folsom","Fond du Lac","Fontana","Fort Collins","Fort Lauderdale","Fort Myers","Fort Pierce","Fort Smith","Fort Wayne","Fort Worth","Fountain Valley","Fountainebleau","Framingham","Franklin","Frederick","Freeport","Fremont","Fresno","Frisco","Fullerton","Gainesville","Gaithersburg","Galveston","Garden Grove","Gardena","Garland","Gary","Gastonia","Georgetown","Germantown","Gilbert","Gilroy","Glen Burnie","Glendale","Glendale","Glendora","Glenview","Goodyear","Grand Forks","Grand Island","Grand Junction","Grand Prairie","Grand Rapids","Grapevine","Great Falls","Greeley","Green Bay","Greensboro","Greenville","Greenville","Greenwood","Gresham","Guaynabo","Gulfport","Hacienda Heights","Hackensack","Haltom City","Hamilton","Hammond","Hampton","Hanford","Harlingen","Harrisburg","Harrisonburg","Hartford","Hattiesburg","Haverhill","Hawthorne","Hayward","Hemet","Hempstead","Henderson","Hendersonville","Hesperia","Hialeah","Hicksville","High Point","Highland","Highlands Ranch","Hillsboro","Hilo","Hoboken","Hoffman Estates","Hollywood","Homestead","Honolulu","Hoover","Houston","Huntersville","Huntington","Huntington Beach","Huntington Park","Huntsville","Hutchinson","Idaho Falls","Independence","Indianapolis","Indio","Inglewood","Iowa City","Irondequoit","Irvine","Irving","Jackson","Jackson","Jacksonville","Jacksonville","Janesville","Jefferson City","Jeffersonville","Jersey City","Johns Creek","Johnson City","Joliet","Jonesboro","Joplin","Jupiter","Jurupa Valley","Kalamazoo","Kannapolis","Kansas City","Kansas City","Kearny","Keller","Kendale Lakes","Kendall","Kenner","Kennewick","Kenosha","Kent","Kentwood","Kettering","Killeen","Kingsport","Kirkland","Kissimmee","Knoxville","Kokomo","La Crosse","La Habra","La Mesa","La Mirada","Lacey","Lafayette","Lafayette","Laguna Niguel","Lake Charles","Lake Elsinore","Lake Forest","Lake Havasu City","Lake Ridge","Lakeland","Lakeville","Lakewood","Lakewood","Lakewood","Lakewood","Lakewood","Lancaster","Lancaster","Lansing","Laredo","Largo","Las Cruces","Las Vegas","Lauderhill","Lawrence","Lawrence","Lawrence","Lawton","Layton","League City","Lee's Summit","Leesburg","Lehi","Lehigh Acres","Lenexa","Levittown","Levittown","Lewisville","Lexington-Fayette","Lincoln","Lincoln","Linden","Little Rock","Littleton","Livermore","Livonia","Lodi","Logan","Lombard","Lompoc","Long Beach","Longmont","Longview","Lorain","Los Angeles","Louisville/Jefferson County","Loveland","Lowell","Lubbock","Lynchburg","Lynn","Lynwood","Macon-Bibb County","Madera","Madison","Madison","Malden","Manchester","Manhattan","Mansfield","Mansfield","Manteca","Maple Grove","Margate","Maricopa","Marietta","Marysville","Mayaguez","McAllen","McKinney","McLean","Medford","Medford","Melbourne","Memphis","Menifee","Mentor","Merced","Meriden","Meridian","Mesa","Mesquite","Metairie","Methuen Town","Miami","Miami Beach","Miami Gardens","Middletown","Middletown","Midland","Midland","Midwest City","Milford","Millcreek","Milpitas","Milwaukee","Minneapolis","Minnetonka","Minot","Miramar","Mishawaka","Mission","Mission Viejo","Missoula","Missouri City","Mobile","Modesto","Moline","Monroe","Montebello","Monterey Park","Montgomery","Moore","Moreno Valley","Morgan Hill","Mount Pleasant","Mount Prospect","Mount Vernon","Mountain View","Muncie","Murfreesboro","Murray","Murrieta","Nampa","Napa","Naperville","Nashua","Nashville-Davidson","National City","New Bedford","New Braunfels","New Britain","New Brunswick","New Haven","New Orleans","New Rochelle","New York","Newark","Newark","Newark","Newport Beach","Newport News","Newton","Niagara Falls","Noblesville","Norfolk","Normal","Norman","North Bethesda","North Charleston","North Highlands","North Las Vegas","North Lauderdale","North Little Rock","North Miami","North Miami Beach","North Port","North Richland Hills","Norwalk","Norwalk","Novato","Novi","O'Fallon","Oak Lawn","Oak Park","Oakland","Oakland Park","Ocala","Oceanside","Odessa","Ogden","Oklahoma City","Olathe","Olympia","Omaha","Ontario","Orange","Orem","Orland Park","Orlando","Oro Valley","Oshkosh","Overland Park","Owensboro","Oxnard","Palatine","Palm Bay","Palm Beach Gardens","Palm Coast","Palm Desert","Palm Harbor","Palm Springs","Palmdale","Palo Alto","Paradise","Paramount","Parker","Parma","Pasadena","Pasadena","Pasco","Passaic","Paterson","Pawtucket","Peabody","Pearl City","Pearland","Pembroke Pines","Pensacola","Peoria","Peoria","Perris","Perth Amboy","Petaluma","Pflugerville","Pharr","Philadelphia","Phoenix","Pico Rivera","Pine Bluff","Pine Hills","Pinellas Park","Pittsburg","Pittsburgh","Pittsfield","Placentia","Plainfield","Plainfield","Plano","Plantation","Pleasanton","Plymouth","Pocatello","Poinciana","Pomona","Pompano Beach","Ponce","Pontiac","Port Arthur","Port Charlotte","Port Orange","Port St. Lucie","Portage","Porterville","Portland","Portland","Portsmouth","Potomac","Poway","Providence","Provo","Pueblo","Quincy","Racine","Raleigh","Rancho Cordova","Rancho Cucamonga","Rancho Palos Verdes","Rancho Santa Margarita","Rapid City","Reading","Redding","Redlands","Redmond","Redondo Beach","Redwood City","Reno","Renton","Reston","Revere","Rialto","Richardson","Richland","Richmond","Richmond","Rio Rancho","Riverside","Riverton","Riverview","Roanoke","Rochester","Rochester","Rochester Hills","Rock Hill","Rockford","Rocklin","Rockville","Rockwall","Rocky Mount","Rogers","Rohnert Park","Rosemead","Roseville","Roseville","Roswell","Roswell","Round Rock","Rowland Heights","Rowlett","Royal Oak","Sacramento","Saginaw","Salem","Salem","Salina","Salinas","Salt Lake City","Sammamish","San Angelo","San Antonio","San Bernardino","San Bruno","San Buenaventura (Ventura)","San Clemente","San Diego","San Francisco","San Jacinto","San Jose","San Juan","San Leandro","San Luis Obispo","San Marcos","San Marcos","San Mateo","San Rafael","San Ramon","San Tan Valley","Sandy","Sandy Springs","Sanford","Santa Ana","Santa Barbara","Santa Clara","Santa Clarita","Santa Cruz","Santa Fe","Santa Maria","Santa Monica","Santa Rosa","Santee","Sarasota","Savannah","Sayreville","Schaumburg","Schenectady","Scottsdale","Scranton","Seattle","Severn","Shawnee","Sheboygan","Shoreline","Shreveport","Sierra Vista","Silver Spring","Simi Valley","Sioux City","Sioux Falls","Skokie","Smyrna","Smyrna","Somerville","South Bend","South Gate","South Hill","South Jordan","South San Francisco","South Valley","South Whittier","Southaven","Southfield","Sparks","Spokane","Spokane Valley","Spring","Spring Hill","Spring Valley","Springdale","Springfield","Springfield","Springfield","Springfield","Springfield","St. Charles","St. Clair Shores","St. Cloud","St. Cloud","St. George","St. Joseph","St. Louis","St. Louis Park","St. Paul","St. Peters","St. Petersburg","Stamford","State College","Sterling Heights","Stillwater","Stockton","Stratford","Strongsville","Suffolk","Sugar Land","Summerville","Sunnyvale","Sunrise","Sunrise Manor","Surprise","Syracuse","Tacoma","Tallahassee","Tamarac","Tamiami","Tampa","Taunton","Taylor","Taylorsville","Temecula","Tempe","Temple","Terre Haute","Texas City","The Hammocks","The Villages","The Woodlands","Thornton","Thousand Oaks","Tigard","Tinley Park","Titusville","Toledo","Toms River","Tonawanda","Topeka","Torrance","Town 'n' Country","Towson","Tracy","Trenton","Troy","Troy","Trujillo Alto","Tuckahoe","Tucson","Tulare","Tulsa","Turlock","Tuscaloosa","Tustin","Twin Falls","Tyler","Union City","Union City","University","Upland","Urbana","Urbandale","Utica","Vacaville","Valdosta","Vallejo","Vancouver","Victoria","Victorville","Vineland","Virginia Beach","Visalia","Vista","Waco","Waipahu","Waldorf","Walnut Creek","Waltham","Warner Robins","Warren","Warwick","Washington","Waterbury","Waterloo","Watsonville","Waukegan","Waukesha","Wauwatosa","Wellington","Wesley Chapel","West Allis","West Babylon","West Covina","West Des Moines","West Hartford","West Haven","West Jordan","West Lafayette","West New York","West Palm Beach","West Sacramento","West Seneca","West Valley City","Westfield","Westland","Westminster","Westminster","Weston","Weymouth Town","Wheaton","Wheaton","White Plains","Whittier","Wichita","Wichita Falls","Wilmington","Wilmington","Wilson","Winston-Salem","Woodbury","Woodland","Worcester","Wylie","Wyoming","Yakima","Yonkers","Yorba Linda","York","Youngstown","Yuba City","Yucaipa","Yuma"],h1n={exports:{}};(function(t){t.exports=["Avon","Bedfordshire","Berkshire","Borders","Buckinghamshire","Cambridgeshire"]})(h1n);var Z3a=h1n.exports,f1n={exports:{}};(function(t){t.exports=["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica (the territory South of 60 deg S)","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Bouvet Island (Bouvetoya)","Brazil","British Indian Ocean Territory (Chagos Archipelago)","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Cook Islands","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Faroe Islands","Falkland Islands (Malvinas)","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Holy See (Vatican City State)","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Democratic People's Republic of Korea","Republic of Korea","Kuwait","Kyrgyz Republic","Lao People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libyan Arab Jamahiriya","Liechtenstein","Lithuania","Luxembourg","Macao","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands Antilles","Netherlands","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Palestinian Territory","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn Islands","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saint Barthelemy","Saint Helena","Saint Kitts and Nevis","Saint Lucia","Saint Martin","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia (Slovak Republic)","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","Spain","Sri Lanka","Sudan","Suriname","Svalbard & Jan Mayen Islands","Swaziland","Sweden","Switzerland","Syrian Arab Republic","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","United States Minor Outlying Islands","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands, British","Virgin Islands, U.S.","Wallis and Futuna","Western Sahara","Yemen","Zambia","Zimbabwe"]})(f1n);var X3a=f1n.exports,p1n={exports:{}};(function(t){t.exports=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]})(p1n);var e5a=p1n.exports,m1n={exports:{}};(function(t){t.exports=["BGD","BEL","BFA","BGR","BIH","BRB","WLF","BLM","BMU","BRN","BOL","BHR","BDI","BEN","BTN","JAM","BVT","BWA","WSM","BES","BRA","BHS","JEY","BLR","BLZ","RUS","RWA","SRB","TLS","REU","TKM","TJK","ROU","TKL","GNB","GUM","GTM","SGS","GRC","GNQ","GLP","JPN","GUY","GGY","GUF","GEO","GRD","GBR","GAB","SLV","GIN","GMB","GRL","GIB","GHA","OMN","TUN","JOR","HRV","HTI","HUN","HKG","HND","HMD","VEN","PRI","PSE","PLW","PRT","SJM","PRY","IRQ","PAN","PYF","PNG","PER","PAK","PHL","PCN","POL","SPM","ZMB","ESH","EST","EGY","ZAF","ECU","ITA","VNM","SLB","ETH","SOM","ZWE","SAU","ESP","ERI","MNE","MDA","MDG","MAF","MAR","MCO","UZB","MMR","MLI","MAC","MNG","MHL","MKD","MUS","MLT","MWI","MDV","MTQ","MNP","MSR","MRT","IMN","UGA","TZA","MYS","MEX","ISR","FRA","IOT","SHN","FIN","FJI","FLK","FSM","FRO","NIC","NLD","NOR","NAM","VUT","NCL","NER","NFK","NGA","NZL","NPL","NRU","NIU","COK","XKX","CIV","CHE","COL","CHN","CMR","CHL","CCK","CAN","COG","CAF","COD","CZE","CYP","CXR","CRI","CUW","CPV","CUB","SWZ","SYR","SXM","KGZ","KEN","SSD","SUR","KIR","KHM","KNA","COM","STP","SVK","KOR","SVN","PRK","KWT","SEN","SMR","SLE","SYC","KAZ","CYM","SGP","SWE","SDN","DOM","DMA","DJI","DNK","VGB","DEU","YEM","DZA","USA","URY","MYT","UMI","LBN","LCA","LAO","TUV","TWN","TTO","TUR","LKA","LIE","LVA","TON","LTU","LUX","LBR","LSO","THA","ATF","TGO","TCD","TCA","LBY","VAT","VCT","ARE","AND","ATG","AFG","AIA","VIR","ISL","IRN","ARM","ALB","AGO","ATA","ASM","ARG","AUS","AUT","ABW","IND","ALA","AZE","IRL","IDN","UKR","QAT","MOZ"]})(m1n);var t5a=m1n.exports,g1n={exports:{}};(function(t){t.exports=["#####","####","###"]})(g1n);var n5a=g1n.exports,v1n={exports:{}};(function(t){t.exports=["Alley","Avenue","Branch","Bridge","Brook","Brooks","Burg","Burgs","Bypass","Camp","Canyon","Cape","Causeway","Center","Centers","Circle","Circles","Cliff","Cliffs","Club","Common","Corner","Corners","Course","Court","Courts","Cove","Coves","Creek","Crescent","Crest","Crossing","Crossroad","Curve","Dale","Dam","Divide","Drive","Drive","Drives","Estate","Estates","Expressway","Extension","Extensions","Fall","Falls","Ferry","Field","Fields","Flat","Flats","Ford","Fords","Forest","Forge","Forges","Fork","Forks","Fort","Freeway","Garden","Gardens","Gateway","Glen","Glens","Green","Greens","Grove","Groves","Harbor","Harbors","Haven","Heights","Highway","Hill","Hills","Hollow","Inlet","Inlet","Island","Island","Islands","Islands","Isle","Isle","Junction","Junctions","Key","Keys","Knoll","Knolls","Lake","Lakes","Land","Landing","Lane","Light","Lights","Loaf","Lock","Locks","Locks","Lodge","Lodge","Loop","Mall","Manor","Manors","Meadow","Meadows","Mews","Mill","Mills","Mission","Mission","Motorway","Mount","Mountain","Mountain","Mountains","Mountains","Neck","Orchard","Oval","Overpass","Park","Parks","Parkway","Parkways","Pass","Passage","Path","Pike","Pine","Pines","Place","Plain","Plains","Plains","Plaza","Plaza","Point","Points","Port","Port","Ports","Ports","Prairie","Prairie","Radial","Ramp","Ranch","Rapid","Rapids","Rest","Ridge","Ridges","River","Road","Road","Roads","Roads","Route","Row","Rue","Run","Shoal","Shoals","Shore","Shores","Skyway","Spring","Springs","Springs","Spur","Spurs","Square","Square","Squares","Squares","Station","Station","Stravenue","Stravenue","Stream","Stream","Street","Street","Streets","Summit","Summit","Terrace","Throughway","Trace","Track","Trafficway","Trail","Trail","Tunnel","Tunnel","Turnpike","Turnpike","Underpass","Union","Unions","Valley","Valleys","Via","Viaduct","View","Views","Village","Village","Villages","Ville","Vista","Vista","Walk","Walks","Wall","Way","Ways","Well","Wells"]})(v1n);var r5a=v1n.exports,A1n={exports:{}};(function(t){t.exports=["Apt. ###","Suite ###"]})(A1n);var i5a=A1n.exports,y1n={exports:{}};(function(t){t.exports=["#####","#####-####"]})(y1n);var a5a=y1n.exports,b1n={exports:{}};(function(t){t.exports=["#####","#####-####"]})(b1n);var o5a=b1n.exports,x1n={exports:{}};(function(t){t.exports=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]})(x1n);var s5a=x1n.exports,E1n={exports:{}};(function(t){t.exports=["AL","AK","AZ","AR","CA","CO","CT","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]})(E1n);var l5a=E1n.exports,S1n={exports:{}};(function(t){t.exports=["Pacific/Midway","Pacific/Pago_Pago","Pacific/Honolulu","America/Juneau","America/Los_Angeles","America/Tijuana","America/Denver","America/Phoenix","America/Chihuahua","America/Mazatlan","America/Chicago","America/Regina","America/Mexico_City","America/Mexico_City","America/Monterrey","America/Guatemala","America/New_York","America/Indiana/Indianapolis","America/Bogota","America/Lima","America/Lima","America/Halifax","America/Caracas","America/La_Paz","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Guyana","America/Godthab","Atlantic/South_Georgia","Atlantic/Azores","Atlantic/Cape_Verde","Europe/Dublin","Europe/London","Europe/Lisbon","Europe/London","Africa/Casablanca","Africa/Monrovia","Etc/UTC","Europe/Belgrade","Europe/Bratislava","Europe/Budapest","Europe/Ljubljana","Europe/Prague","Europe/Sarajevo","Europe/Skopje","Europe/Warsaw","Europe/Zagreb","Europe/Brussels","Europe/Copenhagen","Europe/Madrid","Europe/Paris","Europe/Amsterdam","Europe/Berlin","Europe/Berlin","Europe/Rome","Europe/Stockholm","Europe/Vienna","Africa/Algiers","Europe/Bucharest","Africa/Cairo","Europe/Helsinki","Europe/Kiev","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Vilnius","Europe/Athens","Europe/Istanbul","Europe/Minsk","Asia/Jerusalem","Africa/Harare","Africa/Johannesburg","Europe/Moscow","Europe/Moscow","Europe/Moscow","Asia/Kuwait","Asia/Riyadh","Africa/Nairobi","Asia/Baghdad","Asia/Tehran","Asia/Muscat","Asia/Muscat","Asia/Baku","Asia/Tbilisi","Asia/Yerevan","Asia/Kabul","Asia/Yekaterinburg","Asia/Karachi","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kathmandu","Asia/Dhaka","Asia/Dhaka","Asia/Colombo","Asia/Almaty","Asia/Novosibirsk","Asia/Rangoon","Asia/Bangkok","Asia/Bangkok","Asia/Jakarta","Asia/Krasnoyarsk","Asia/Shanghai","Asia/Chongqing","Asia/Hong_Kong","Asia/Urumqi","Asia/Kuala_Lumpur","Asia/Singapore","Asia/Taipei","Australia/Perth","Asia/Irkutsk","Asia/Ulaanbaatar","Asia/Seoul","Asia/Tokyo","Asia/Tokyo","Asia/Tokyo","Asia/Yakutsk","Australia/Darwin","Australia/Adelaide","Australia/Melbourne","Australia/Melbourne","Australia/Sydney","Australia/Brisbane","Australia/Hobart","Asia/Vladivostok","Pacific/Guam","Pacific/Port_Moresby","Asia/Magadan","Asia/Magadan","Pacific/Noumea","Pacific/Fiji","Asia/Kamchatka","Pacific/Majuro","Pacific/Auckland","Pacific/Auckland","Pacific/Tongatapu","Pacific/Fakaofo","Pacific/Apia"]})(S1n);var c5a=S1n.exports,w1n={exports:{}};(function(t){t.exports=["#{city_prefix} #{Name.first_name}#{city_suffix}","#{city_prefix} #{Name.first_name}","#{Name.first_name}#{city_suffix}","#{Name.last_name}#{city_suffix}"]})(w1n);var u5a=w1n.exports,_1n={exports:{}};(function(t){t.exports=["#{Name.first_name} #{street_suffix}","#{Name.last_name} #{street_suffix}"]})(_1n);var d5a=_1n.exports,T1n={exports:{}};(function(t){t.exports=["#{building_number} #{street_name}"]})(T1n);var h5a=T1n.exports,C1n={exports:{}};(function(t){t.exports=["United States of America"]})(C1n);var f5a=C1n.exports,k1n={exports:{}};(function(t){t.exports=["North","East","South","West","Northeast","Northwest","Southeast","Southwest"]})(k1n);var p5a=k1n.exports,R1n={exports:{}};(function(t){t.exports=["N","E","S","W","NE","NW","SE","SW"]})(R1n);var m5a=R1n.exports;(function(t){var e={};t.exports=e,e.city_prefix=q3a,e.city_suffix=Y3a,e.city_name=J3a,e.county=Z3a,e.country=X3a,e.country_code=e5a,e.country_code_alpha_3=t5a,e.building_number=n5a,e.street_suffix=r5a,e.secondary_address=i5a,e.postcode=a5a,e.postcode_by_state=o5a,e.state=s5a,e.state_abbr=l5a,e.time_zone=c5a,e.city=u5a,e.street_name=d5a,e.street_address=h5a,e.default_country=f5a,e.direction=p5a,e.direction_abbr=m5a})(c1n);var g5a=c1n.exports,M1n={exports:{}},N1n={exports:{}};(function(t){t.exports=["Affenpinscher","Afghan Hound","Aidi","Airedale Terrier","Akbash","Akita","Alano Español","Alapaha Blue Blood Bulldog","Alaskan Husky","Alaskan Klee Kai","Alaskan Malamute","Alopekis","Alpine Dachsbracke","American Bulldog","American Bully","American Cocker Spaniel","American English Coonhound","American Foxhound","American Hairless Terrier","American Pit Bull Terrier","American Staffordshire Terrier","American Water Spaniel","Andalusian Hound","Anglo-Français de Petite Vénerie","Appenzeller Sennenhund","Ariegeois","Armant","Armenian Gampr dog","Artois Hound","Australian Cattle Dog","Australian Kelpie","Australian Shepherd","Australian Stumpy Tail Cattle Dog","Australian Terrier","Austrian Black and Tan Hound","Austrian Pinscher","Azawakh","Bakharwal dog","Banjara Hound","Barbado da Terceira","Barbet","Basenji","Basque Shepherd Dog","Basset Artésien Normand","Basset Bleu de Gascogne","Basset Fauve de Bretagne","Basset Hound","Bavarian Mountain Hound","Beagle","Beagle-Harrier","Belgian Shepherd","Bearded Collie","Beauceron","Bedlington Terrier","Bergamasco Shepherd","Berger Picard","Bernese Mountain Dog","Bhotia","Bichon Frisé","Billy","Black and Tan Coonhound","Black Norwegian Elkhound","Black Russian Terrier","Black Mouth Cur","Bloodhound","Blue Lacy","Blue Picardy Spaniel","Bluetick Coonhound","Boerboel","Bohemian Shepherd","Bolognese","Border Collie","Border Terrier","Borzoi","Bosnian Coarse-haired Hound","Boston Terrier","Bouvier des Ardennes","Bouvier des Flandres","Boxer","Boykin Spaniel","Bracco Italiano","Braque d'Auvergne","Braque de l'Ariège","Braque du Bourbonnais","Braque Francais","Braque Saint-Germain","Briard","Briquet Griffon Vendéen","Brittany","Broholmer","Bruno Jura Hound","Brussels Griffon","Bucovina Shepherd Dog","Bull Arab","Bull Terrier","Bulldog","Bullmastiff","Bully Kutta","Burgos Pointer","Cairn Terrier","Campeiro Bulldog","Canaan Dog","Canadian Eskimo Dog","Cane Corso","Cane di Oropa","Cane Paratore","Cantabrian Water Dog","Can de Chira","Cão da Serra de Aires","Cão de Castro Laboreiro","Cão de Gado Transmontano","Cão Fila de São Miguel","Cardigan Welsh Corgi","Carea Castellano Manchego","Carolina Dog","Carpathian Shepherd Dog","Catahoula Leopard Dog","Catalan Sheepdog","Caucasian Shepherd Dog","Cavalier King Charles Spaniel","Central Asian Shepherd Dog","Cesky Fousek","Cesky Terrier","Chesapeake Bay Retriever","Chien Français Blanc et Noir","Chien Français Blanc et Orange","Chien Français Tricolore","Chihuahua","Chilean Terrier","Chinese Chongqing Dog","Chinese Crested Dog","Chinook","Chippiparai","Chongqing dog","Chortai","Chow Chow","Cimarrón Uruguayo","Cirneco dell'Etna","Clumber Spaniel","Colombian fino hound","Coton de Tulear","Cretan Hound","Croatian Sheepdog","Curly-Coated Retriever","Cursinu","Czechoslovakian Wolfdog","Dachshund","Dalmatian","Dandie Dinmont Terrier","Danish-Swedish Farmdog","Denmark Feist","Dingo","Doberman Pinscher","Dogo Argentino","Dogo Guatemalteco","Dogo Sardesco","Dogue Brasileiro","Dogue de Bordeaux","Drentse Patrijshond","Drever","Dunker","Dutch Shepherd","Dutch Smoushond","East Siberian Laika","East European Shepherd","English Cocker Spaniel","English Foxhound","English Mastiff","English Setter","English Shepherd","English Springer Spaniel","English Toy Terrier","Entlebucher Mountain Dog","Estonian Hound","Estrela Mountain Dog","Eurasier","Field Spaniel","Fila Brasileiro","Finnish Hound","Finnish Lapphund","Finnish Spitz","Flat-Coated Retriever","French Bulldog","French Spaniel","Galgo Español","Galician Shepherd Dog","Garafian Shepherd","Gascon Saintongeois","Georgian Shepherd","German Hound","German Longhaired Pointer","German Pinscher","German Roughhaired Pointer","German Shepherd Dog","German Shorthaired Pointer","German Spaniel","German Spitz","German Wirehaired Pointer","Giant Schnauzer","Glen of Imaal Terrier","Golden Retriever","Gończy Polski","Gordon Setter","Grand Anglo-Français Blanc et Noir","Grand Anglo-Français Blanc et Orange","Grand Anglo-Français Tricolore","Grand Basset Griffon Vendéen","Grand Bleu de Gascogne","Grand Griffon Vendéen","Great Dane","Greater Swiss Mountain Dog","Greek Harehound","Greek Shepherd","Greenland Dog","Greyhound","Griffon Bleu de Gascogne","Griffon Fauve de Bretagne","Griffon Nivernais","Gull Dong","Gull Terrier","Hällefors Elkhound","Hamiltonstövare","Hanover Hound","Harrier","Havanese","Hierran Wolfdog","Hokkaido","Hovawart","Huntaway","Hygen Hound","Ibizan Hound","Icelandic Sheepdog","Indian pariah dog","Indian Spitz","Irish Red and White Setter","Irish Setter","Irish Terrier","Irish Water Spaniel","Irish Wolfhound","Istrian Coarse-haired Hound","Istrian Shorthaired Hound","Italian Greyhound","Jack Russell Terrier","Jagdterrier","Japanese Chin","Japanese Spitz","Japanese Terrier","Jindo","Jonangi","Kai Ken","Kaikadi","Kangal Shepherd Dog","Kanni","Karakachan dog","Karelian Bear Dog","Kars","Karst Shepherd","Keeshond","Kerry Beagle","Kerry Blue Terrier","King Charles Spaniel","King Shepherd","Kintamani","Kishu","Kokoni","Kombai","Komondor","Kooikerhondje","Koolie","Koyun dog","Kromfohrländer","Kuchi","Kuvasz","Labrador Retriever","Lagotto Romagnolo","Lakeland Terrier","Lancashire Heeler","Landseer","Lapponian Herder","Large Münsterländer","Leonberger","Levriero Sardo","Lhasa Apso","Lithuanian Hound","Löwchen","Lupo Italiano","Mackenzie River Husky","Magyar agár","Mahratta Greyhound","Maltese","Manchester Terrier","Maremmano-Abruzzese Sheepdog","McNab dog","Miniature American Shepherd","Miniature Bull Terrier","Miniature Fox Terrier","Miniature Pinscher","Miniature Schnauzer","Molossus of Epirus","Montenegrin Mountain Hound","Mountain Cur","Mountain Feist","Mucuchies","Mudhol Hound","Mudi","Neapolitan Mastiff","New Guinea Singing Dog","New Zealand Heading Dog","Newfoundland","Norfolk Terrier","Norrbottenspets","Northern Inuit Dog","Norwegian Buhund","Norwegian Elkhound","Norwegian Lundehund","Norwich Terrier","Nova Scotia Duck Tolling Retriever","Old Croatian Sighthound","Old Danish Pointer","Old English Sheepdog","Old English Terrier","Olde English Bulldogge","Otterhound","Pachon Navarro","Pampas Deerhound","Paisley Terrier","Papillon","Parson Russell Terrier","Pastore della Lessinia e del Lagorai","Patagonian Sheepdog","Patterdale Terrier","Pekingese","Pembroke Welsh Corgi","Perro Majorero","Perro de Pastor Mallorquin","Perro de Presa Canario","Perro de Presa Mallorquin","Peruvian Inca Orchid","Petit Basset Griffon Vendéen","Petit Bleu de Gascogne","Phalène","Pharaoh Hound","Phu Quoc Ridgeback","Picardy Spaniel","Plummer Terrier","Plott Hound","Podenco Canario","Podenco Valenciano","Pointer","Poitevin","Polish Greyhound","Polish Hound","Polish Lowland Sheepdog","Polish Tatra Sheepdog","Pomeranian","Pont-Audemer Spaniel","Poodle","Porcelaine","Portuguese Podengo","Portuguese Pointer","Portuguese Water Dog","Posavac Hound","Pražský Krysařík","Pshdar Dog","Pudelpointer","Pug","Puli","Pumi","Pungsan Dog","Pyrenean Mastiff","Pyrenean Mountain Dog","Pyrenean Sheepdog","Rafeiro do Alentejo","Rajapalayam","Rampur Greyhound","Rat Terrier","Ratonero Bodeguero Andaluz","Ratonero Mallorquin","Ratonero Murciano de Huerta","Ratonero Valenciano","Redbone Coonhound","Rhodesian Ridgeback","Romanian Mioritic Shepherd Dog","Romanian Raven Shepherd Dog","Rottweiler","Rough Collie","Russian Spaniel","Russian Toy","Russo-European Laika","Saarloos Wolfdog","Sabueso Español","Saint Bernard","Saint Hubert Jura Hound","Saint-Usuge Spaniel","Saluki","Samoyed","Sapsali","Sarabi dog","Šarplaninac","Schapendoes","Schillerstövare","Schipperke","Schweizer Laufhund","Schweizerischer Niederlaufhund","Scottish Deerhound","Scottish Terrier","Sealyham Terrier","Segugio dell'Appennino","Segugio Italiano","Segugio Maremmano","Seppala Siberian Sleddog","Serbian Hound","Serbian Tricolour Hound","Serrano Bulldog","Shar Pei","Shetland Sheepdog","Shiba Inu","Shih Tzu","Shikoku","Shiloh Shepherd","Siberian Husky","Silken Windhound","Silky Terrier","Sinhala Hound","Skye Terrier","Sloughi","Slovakian Wirehaired Pointer","Slovenský Cuvac","Slovenský Kopov","Smalandstövare","Small Greek domestic dog","Small Münsterländer","Smooth Collie","Smooth Fox Terrier","Soft-Coated Wheaten Terrier","South Russian Ovcharka","Spanish Mastiff","Spanish Water Dog","Spinone Italiano","Sporting Lucas Terrier","Sardinian Shepherd Dog","Stabyhoun","Staffordshire Bull Terrier","Standard Schnauzer","Stephens Stock","Styrian Coarse-haired Hound","Sussex Spaniel","Swedish Elkhound","Swedish Lapphund","Swedish Vallhund","Swedish White Elkhound","Taigan","Taiwan Dog","Tamaskan Dog","Teddy Roosevelt Terrier","Telomian","Tenterfield Terrier","Terrier Brasileiro","Thai Bangkaew Dog","Thai Ridgeback","Tibetan Mastiff","Tibetan Spaniel","Tibetan Terrier","Tornjak","Tosa","Toy Fox Terrier","Toy Manchester Terrier","Transylvanian Hound","Treeing Cur","Treeing Feist","Treeing Tennessee Brindle","Treeing Walker Coonhound","Trigg Hound","Tyrolean Hound","Vikhan","Villano de Las Encartaciones","Villanuco de Las Encartaciones","Vizsla","Volpino Italiano","Weimaraner","Welsh Sheepdog","Welsh Springer Spaniel","Welsh Terrier","West Highland White Terrier","West Siberian Laika","Westphalian Dachsbracke","Wetterhoun","Whippet","White Shepherd","White Swiss Shepherd Dog","Wire Fox Terrier","Wirehaired Pointing Griffon","Wirehaired Vizsla","Xiasi Dog","Xoloitzcuintli","Yakutian Laika","Yorkshire Terrier"]})(N1n);var v5a=N1n.exports,I1n={exports:{}};(function(t){t.exports=["Abyssinian","American Bobtail","American Curl","American Shorthair","American Wirehair","Balinese","Bengal","Birman","Bombay","British Shorthair","Burmese","Chartreux","Chausie","Cornish Rex","Devon Rex","Donskoy","Egyptian Mau","Exotic Shorthair","Havana","Highlander","Himalayan","Japanese Bobtail","Korat","Kurilian Bobtail","LaPerm","Maine Coon","Manx","Minskin","Munchkin","Nebelung","Norwegian Forest Cat","Ocicat","Ojos Azules","Oriental","Persian","Peterbald","Pixiebob","Ragdoll","Russian Blue","Savannah","Scottish Fold","Selkirk Rex","Serengeti","Siberian","Siamese","Singapura","Snowshoe","Sokoke","Somali","Sphynx","Thai","Tonkinese","Toyger","Turkish Angora","Turkish Van"]})(I1n);var A5a=I1n.exports,P1n={exports:{}};(function(t){t.exports=["Viper Adder","Common adder","Death Adder","Desert death adder","Horned adder","Long-nosed adder","Many-horned adder","Mountain adder","Mud adder","Namaqua dwarf adder","Nightingale adder","Peringuey's adder","Puff adder","African puff adder","Rhombic night adder","Sand adder","Dwarf sand adder","Namib dwarf sand adder","Water adder","Aesculapian snake","Anaconda","Bolivian anaconda","De Schauensee's anaconda","Green anaconda","Yellow anaconda","Arafura file snake","Asp","European asp","Egyptian asp","African beaked snake","Ball Python","Bird snake","Black-headed snake","Mexican black kingsnake","Black rat snake","Black snake","Red-bellied black snake","Blind snake","Brahminy blind snake","Texas blind snake","Western blind snake","Boa","Abaco Island boa","Amazon tree boa","Boa constrictor","Cuban boa","Dumeril's boa","Dwarf boa","Emerald tree boa","Hogg Island boa","Jamaican boa","Madagascar ground boa","Madagascar tree boa","Puerto Rican boa","Rainbow boa","Red-tailed boa","Rosy boa","Rubber boa","Sand boa","Tree boa","Boiga","Boomslang","Brown snake","Eastern brown snake","Bull snake","Bushmaster","Dwarf beaked snake","Rufous beaked snake","Canebrake","Cantil","Cascabel","Cat-eyed snake","Banded cat-eyed snake","Green cat-eyed snake","Cat snake","Andaman cat snake","Beddome's cat snake","Dog-toothed cat snake","Forsten's cat snake","Gold-ringed cat snake","Gray cat snake","Many-spotted cat snake","Tawny cat snake","Chicken snake","Coachwhip snake","Cobra","Andaman cobra","Arabian cobra","Asian cobra","Banded water cobra","Black-necked cobra","Black-necked spitting cobra","Black tree cobra","Burrowing cobra","Cape cobra","Caspian cobra","Congo water cobra","Common cobra","Eastern water cobra","Egyptian cobra","Equatorial spitting cobra","False cobra","False water cobra","Forest cobra","Gold tree cobra","Indian cobra","Indochinese spitting cobra","Javan spitting cobra","King cobra","Mandalay cobra","Mozambique spitting cobra","North Philippine cobra","Nubian spitting cobra","Philippine cobra","Red spitting cobra","Rinkhals cobra","Shield-nosed cobra","Sinai desert cobra","Southern Indonesian spitting cobra","Southern Philippine cobra","Southwestern black spitting cobra","Snouted cobra","Spectacled cobra","Spitting cobra","Storm water cobra","Thai cobra","Taiwan cobra","Zebra spitting cobra","Collett's snake","Congo snake","Copperhead","American copperhead","Australian copperhead","Coral snake","Arizona coral snake","Beddome's coral snake","Brazilian coral snake","Cape coral snake","Harlequin coral snake","High Woods coral snake","Malayan long-glanded coral snake","Texas Coral Snake","Western coral snake","Corn snake","South eastern corn snake","Cottonmouth","Crowned snake","Cuban wood snake","Eastern hognose snake","Egg-eater","Eastern coral snake","Fer-de-lance","Fierce snake","Fishing snake","Flying snake","Golden tree snake","Indian flying snake","Moluccan flying snake","Ornate flying snake","Paradise flying snake","Twin-Barred tree snake","Banded Flying Snake","Fox snake, three species of Pantherophis","Forest flame snake","Garter snake","Checkered garter snake","Common garter snake","San Francisco garter snake","Texas garter snake","Cape gopher snake","Grass snake","Green snake","Rough green snake","Smooth green snake","Ground snake","Common ground snake","Three-lined ground snake","Western ground snake","Habu","Hognose snake","Blonde hognose snake","Dusty hognose snake","Eastern hognose snake","Jan's hognose snake","Giant Malagasy hognose snake","Mexican hognose snake","South American hognose snake","Hundred pacer","Ikaheka snake","Indigo snake","Jamaican Tree Snake","Keelback","Asian keelback","Assam keelback","Black-striped keelback","Buff striped keelback","Burmese keelback","Checkered keelback","Common keelback","Hill keelback","Himalayan keelback","Khasi Hills keelback","Modest keelback","Nicobar Island keelback","Nilgiri keelback","Orange-collared keelback","Red-necked keelback","Sikkim keelback","Speckle-bellied keelback","White-lipped keelback","Wynaad keelback","Yunnan keelback","King brown","King cobra","King snake","California kingsnake","Desert kingsnake","Grey-banded kingsnake","North eastern king snake","Prairie kingsnake","Scarlet kingsnake","Speckled kingsnake","Krait","Banded krait","Blue krait","Black krait","Burmese krait","Ceylon krait","Indian krait","Lesser black krait","Malayan krait","Many-banded krait","Northeastern hill krait","Red-headed krait","Sind krait","Large shield snake","Lancehead","Common lancehead","Lora","Grey Lora","Lyre snake","Baja California lyresnake","Central American lyre snake","Texas lyre snake","Eastern lyre snake","Machete savane","Mamba","Black mamba","Green mamba","Eastern green mamba","Western green mamba","Mamushi","Mangrove snake","Milk snake","Moccasin snake","Montpellier snake","Mud snake","Eastern mud snake","Western mud snake","Mussurana","Night snake","Cat-eyed night snake","Texas night snake","Nichell snake","Narrowhead Garter Snake","Nose-horned viper","Rhinoceros viper","Vipera ammodytes","Parrot snake","Mexican parrot snake","Patchnose snake","Perrotet's shieldtail snake","Pine snake","Pipe snake","Asian pipe snake","Dwarf pipe snake","Red-tailed pipe snake","Python","African rock python","Amethystine python","Angolan python","Australian scrub python","Ball python","Bismarck ringed python","Black headed python","Blood python","Boelen python","Borneo short-tailed python","Bredl's python","Brown water python","Burmese python","Calabar python","Western carpet python","Centralian carpet python","Coastal carpet python","Inland carpet python","Jungle carpet python","New Guinea carpet python","Northwestern carpet python","Southwestern carpet python","Children's python","Dauan Island water python","Desert woma python","Diamond python","Flinders python","Green tree python","Halmahera python","Indian python","Indonesian water python","Macklot's python","Mollucan python","Oenpelli python","Olive python","Papuan python","Pygmy python","Red blood python","Reticulated python","Kayaudi dwarf reticulated python","Selayer reticulated python","Rough-scaled python","Royal python","Savu python","Spotted python","Stimson's python","Sumatran short-tailed python","Tanimbar python","Timor python","Wetar Island python","White-lipped python","Brown white-lipped python","Northern white-lipped python","Southern white-lipped python","Woma python","Western woma python","Queen snake","Racer","Bimini racer","Buttermilk racer","Eastern racer","Eastern yellowbelly sad racer","Mexican racer","Southern black racer","Tan racer","West Indian racer","Raddysnake","Southwestern blackhead snake","Rat snake","Baird's rat snake","Beauty rat snake","Great Plains rat snake","Green rat snake","Japanese forest rat snake","Japanese rat snake","King rat snake","Mandarin rat snake","Persian rat snake","Red-backed rat snake","Twin-spotted rat snake","Yellow-striped rat snake","Manchurian Black Water Snake","Rattlesnake","Arizona black rattlesnake","Aruba rattlesnake","Chihuahuan ridge-nosed rattlesnake","Coronado Island rattlesnake","Durango rock rattlesnake","Dusky pigmy rattlesnake","Eastern diamondback rattlesnake","Grand Canyon rattlesnake","Great Basin rattlesnake","Hopi rattlesnake","Lance-headed rattlesnake","Long-tailed rattlesnake","Massasauga rattlesnake","Mexican green rattlesnake","Mexican west coast rattlesnake","Midget faded rattlesnake","Mojave rattlesnake","Northern black-tailed rattlesnake","Oaxacan small-headed rattlesnake","Rattler","Red diamond rattlesnake","Southern Pacific rattlesnake","Southwestern speckled rattlesnake","Tancitaran dusky rattlesnake","Tiger rattlesnake","Timber rattlesnake","Tropical rattlesnake","Twin-spotted rattlesnake","Uracoan rattlesnake","Western diamondback rattlesnake","Ribbon snake","Rinkhals","River jack","Sea snake","Annulated sea snake","Beaked sea snake","Dubois's sea snake","Hardwicke's sea snake","Hook Nosed Sea Snake","Olive sea snake","Pelagic sea snake","Stoke's sea snake","Yellow-banded sea snake","Yellow-bellied sea snake","Yellow-lipped sea snake","Shield-tailed snake","Sidewinder","Colorado desert sidewinder","Mojave desert sidewinder","Sonoran sidewinder","Small-eyed snake","Smooth snake","Brazilian smooth snake","European smooth snake","Stiletto snake","Striped snake","Japanese striped snake","Sunbeam snake","Taipan","Central ranges taipan","Coastal taipan","Inland taipan","Paupan taipan","Tentacled snake","Tic polonga","Tiger snake","Chappell Island tiger snake","Common tiger snake","Down's tiger snake","Eastern tiger snake","King Island tiger snake","Krefft's tiger snake","Peninsula tiger snake","Tasmanian tiger snake","Western tiger snake","Tigre snake","Tree snake","Blanding's tree snake","Blunt-headed tree snake","Brown tree snake","Long-nosed tree snake","Many-banded tree snake","Northern tree snake","Trinket snake","Black-banded trinket snake","Twig snake","African twig snake","Twin Headed King Snake","Titanboa","Urutu","Vine snake","Asian Vine Snake, Whip Snake","American Vine Snake","Mexican vine snake","Viper","Asp viper","Bamboo viper","Bluntnose viper","Brazilian mud Viper","Burrowing viper","Bush viper","Great Lakes bush viper","Hairy bush viper","Nitsche's bush viper","Rough-scaled bush viper","Spiny bush viper","Carpet viper","Crossed viper","Cyclades blunt-nosed viper","Eyelash viper","False horned viper","Fea's viper","Fifty pacer","Gaboon viper","Hognosed viper","Horned desert viper","Horned viper","Jumping viper","Kaznakov's viper","Leaf-nosed viper","Leaf viper","Levant viper","Long-nosed viper","McMahon's viper","Mole viper","Nose-horned viper","Rhinoceros viper","Vipera ammodytes","Palestine viper","Pallas' viper","Palm viper","Amazonian palm viper","Black-speckled palm-pitviper","Eyelash palm-pitviper","Green palm viper","Mexican palm-pitviper","Guatemalan palm viper","Honduran palm viper","Siamese palm viper","Side-striped palm-pitviper","Yellow-lined palm viper","Pit viper","Banded pitviper","Bamboo pitviper","Barbour's pit viper","Black-tailed horned pit viper","Bornean pitviper","Brongersma's pitviper","Brown spotted pitviper[4]","Cantor's pitviper","Elegant pitviper","Eyelash pit viper","Fan-Si-Pan horned pitviper","Flat-nosed pitviper","Godman's pit viper","Green tree pit viper","Habu pit viper","Hagen's pitviper","Horseshoe pitviper","Jerdon's pitviper","Kanburian pit viper","Kaulback's lance-headed pitviper","Kham Plateau pitviper","Large-eyed pitviper","Malabar rock pitviper","Malayan pit viper","Mangrove pit viper","Mangshan pitviper","Motuo bamboo pitviper","Nicobar bamboo pitviper","Philippine pitviper","Pointed-scaled pit viper[5]","Red-tailed bamboo pitviper","Schultze's pitviper","Stejneger's bamboo pitviper","Sri Lankan pit viper","Temple pit viper","Tibetan bamboo pitviper","Tiger pit viper","Undulated pit viper","Wagler's pit viper","Wirot's pit viper","Portuguese viper","Saw-scaled viper","Schlegel's viper","Sedge viper","Sharp-nosed viper","Snorkel viper","Temple viper","Tree viper","Chinese tree viper","Guatemalan tree viper","Hutton's tree viper","Indian tree viper","Large-scaled tree viper","Malcolm's tree viper","Nitsche's tree viper","Pope's tree viper","Rough-scaled tree viper","Rungwe tree viper","Sumatran tree viper","White-lipped tree viper","Ursini's viper","Western hog-nosed viper","Wart snake","Water moccasin","Water snake","Bocourt's water snake","Northern water snake","Whip snake","Long-nosed whip snake","Wolf snake","African wolf snake","Barred wolf snake","Worm snake","Common worm snake","Longnosed worm snake","Wutu","Yarara","Zebra snake"]})(P1n);var y5a=P1n.exports,O1n={exports:{}};(function(t){t.exports=["American Albino","Abaco Barb","Abtenauer","Abyssinian","Aegidienberger","Akhal-Teke","Albanian Horse","Altai Horse","Altèr Real","American Cream Draft","American Indian Horse","American Paint Horse","American Quarter Horse","American Saddlebred","American Warmblood","Andalusian Horse","Andravida Horse","Anglo-Arabian","Anglo-Arabo-Sardo","Anglo-Kabarda","Appaloosa","AraAppaloosa","Arabian Horse","Ardennes Horse","Arenberg-Nordkirchen","Argentine Criollo","Asian wild Horse","Assateague Horse","Asturcón","Augeron","Australian Brumby","Australian Draught Horse","Australian Stock Horse","Austrian Warmblood","Auvergne Horse","Auxois","Azerbaijan Horse","Azteca Horse","Baise Horse","Bale","Balearic Horse","Balikun Horse","Baluchi Horse","Banker Horse","Barb Horse","Bardigiano","Bashkir Curly","Basque Mountain Horse","Bavarian Warmblood","Belgian Half-blood","Belgian Horse","Belgian Warmblood ","Bhutia Horse","Black Forest Horse","Blazer Horse","Boerperd","Borana","Boulonnais Horse","Brabant","Brandenburger","Brazilian Sport Horse","Breton Horse","Brumby","Budyonny Horse","Burguete Horse","Burmese Horse","Byelorussian Harness Horse","Calabrese Horse","Camargue Horse","Camarillo White Horse","Campeiro","Campolina","Canadian Horse","Canadian Pacer","Carolina Marsh Tacky","Carthusian Horse","Caspian Horse","Castilian Horse","Castillonnais","Catria Horse","Cavallo Romano della Maremma Laziale","Cerbat Mustang","Chickasaw Horse","Chilean Corralero","Choctaw Horse","Cleveland Bay","Clydesdale Horse","Cob","Coldblood Trotter","Colonial Spanish Horse","Colorado Ranger","Comtois Horse","Corsican Horse","Costa Rican Saddle Horse","Cretan Horse","Criollo Horse","Croatian Coldblood","Cuban Criollo","Cumberland Island Horse","Curly Horse","Czech Warmblood","Daliboz","Danish Warmblood","Danube Delta Horse","Dole Gudbrandsdal","Don","Dongola Horse","Draft Trotter","Dutch Harness Horse","Dutch Heavy Draft","Dutch Warmblood","Dzungarian Horse","East Bulgarian","East Friesian Horse","Estonian Draft","Estonian Horse","Falabella","Faroese","Finnhorse","Fjord Horse","Fleuve","Florida Cracker Horse","Foutanké","Frederiksborg Horse","Freiberger","French Trotter","Friesian Cross","Friesian Horse","Friesian Sporthorse","Furioso-North Star","Galiceño","Galician Pony","Gelderland Horse","Georgian Grande Horse","German Warmblood","Giara Horse","Gidran","Groningen Horse","Gypsy Horse","Hackney Horse","Haflinger","Hanoverian Horse","Heck Horse","Heihe Horse","Henson Horse","Hequ Horse","Hirzai","Hispano-Bretón","Holsteiner Horse","Horro","Hungarian Warmblood","Icelandic Horse","Iomud","Irish Draught","Irish Sport Horse sometimes called Irish Hunter","Italian Heavy Draft","Italian Trotter","Jaca Navarra","Jeju Horse","Jutland Horse","Kabarda Horse","Kafa","Kaimanawa Horses","Kalmyk Horse","Karabair","Karabakh Horse","Karachai Horse","Karossier","Kathiawari","Kazakh Horse","Kentucky Mountain Saddle Horse","Kiger Mustang","Kinsky Horse","Kisber Felver","Kiso Horse","Kladruber","Knabstrupper","Konik","Kundudo","Kustanair","Kyrgyz Horse","Latvian Horse","Lipizzan","Lithuanian Heavy Draught","Lokai","Losino Horse","Lusitano","Lyngshest","M'Bayar","M'Par","Mallorquín","Malopolski","Mangalarga","Mangalarga Marchador","Maremmano","Marismeño Horse","Marsh Tacky","Marwari Horse","Mecklenburger","Međimurje Horse","Menorquín","Mérens Horse","Messara Horse","Metis Trotter","Mezőhegyesi Sport Horse","Miniature Horse","Misaki Horse","Missouri Fox Trotter","Monchina","Mongolian Horse","Mongolian Wild Horse","Monterufolino","Morab","Morgan Horse","Mountain Pleasure Horse","Moyle Horse","Murakoz Horse","Murgese","Mustang Horse","Namib Desert Horse","Nangchen Horse","National Show Horse","Nez Perce Horse","Nivernais Horse","Nokota Horse","Noma","Nonius Horse","Nooitgedachter","Nordlandshest","Noriker Horse","Norman Cob","North American Single-Footer Horse","North Swedish Horse","Norwegian Coldblood Trotter","Norwegian Fjord","Novokirghiz","Oberlander Horse","Ogaden","Oldenburg Horse","Orlov trotter","Ostfriesen","Paint","Pampa Horse","Paso Fino","Pentro Horse","Percheron","Persano Horse","Peruvian Paso","Pintabian","Pleven Horse","Poitevin Horse","Posavac Horse","Pottok","Pryor Mountain Mustang","Przewalski's Horse","Pura Raza Española","Purosangue Orientale","Qatgani","Quarab","Quarter Horse","Racking Horse","Retuerta Horse","Rhenish German Coldblood","Rhinelander Horse","Riwoche Horse","Rocky Mountain Horse","Romanian Sporthorse","Rottaler","Russian Don","Russian Heavy Draft","Russian Trotter","Saddlebred","Salerno Horse","Samolaco Horse","San Fratello Horse","Sarcidano Horse","Sardinian Anglo-Arab","Schleswig Coldblood","Schwarzwälder Kaltblut","Selale","Sella Italiano","Selle Français","Shagya Arabian","Shan Horse","Shire Horse","Siciliano Indigeno","Silesian Horse","Sokolsky Horse","Sorraia","South German Coldblood","Soviet Heavy Draft","Spanish Anglo-Arab","Spanish Barb","Spanish Jennet Horse","Spanish Mustang","Spanish Tarpan","Spanish-Norman Horse","Spiti Horse","Spotted Saddle Horse","Standardbred Horse","Suffolk Punch","Swedish Ardennes","Swedish coldblood trotter","Swedish Warmblood","Swiss Warmblood","Taishū Horse","Takhi","Tawleed","Tchernomor","Tennessee Walking Horse","Tersk Horse","Thoroughbred","Tiger Horse","Tinker Horse","Tolfetano","Tori Horse","Trait Du Nord","Trakehner","Tsushima","Tuigpaard","Ukrainian Riding Horse","Unmol Horse","Uzunyayla","Ventasso Horse","Virginia Highlander","Vlaamperd","Vladimir Heavy Draft","Vyatka","Waler","Waler Horse","Walkaloosa","Warlander","Warmblood","Welsh Cob","Westphalian Horse","Wielkopolski","Württemberger","Xilingol Horse","Yakutian Horse","Yili Horse","Yonaguni Horse","Zaniskari","Žemaitukas","Zhemaichu","Zweibrücker"]})(O1n);var b5a=O1n.exports,L1n={exports:{}};(function(t){t.exports=["Blue Whale","Fin Whale","Sei Whale","Sperm Whale","Bryde’s whale","Omura’s whale","Humpback whale","Long-Beaked Common Dolphin","Short-Beaked Common Dolphin","Bottlenose Dolphin","Indo-Pacific Bottlenose Dolphin","Northern Rightwhale Dolphin","Southern Rightwhale Dolphin","Tucuxi","Costero","Indo-Pacific Hump-backed Dolphin","Chinese White Dolphin","Atlantic Humpbacked Dolphin","Atlantic Spotted Dolphin","Clymene Dolphin","Pantropical Spotted Dolphin","Spinner Dolphin","Striped Dolphin","Rough-Toothed Dolphin","Chilean Dolphin","Commerson’s Dolphin","Heaviside’s Dolphin","Hector’s Dolphin","Risso’s Dolphin","Fraser’s Dolphin","Atlantic White-Sided Dolphin","Dusky Dolphin","Hourglass Dolphin","Pacific White-Sided Dolphin","Peale’s Dolphin","White-Beaked Dolphin","Australian Snubfin Dolphin","Irrawaddy Dolphin","Melon-headed Whale","Killer Whale (Orca)","Pygmy Killer Whale","False Killer Whale","Long-finned Pilot Whale","Short-finned Pilot Whale","Guiana Dolphin","Burrunan Dolphin","Australian humpback Dolphin","Amazon River Dolphin","Chinese River Dolphin","Ganges River Dolphin","La Plata Dolphin","Southern Bottlenose Whale","Longman's Beaked Whale","Arnoux's Beaked Whale"]})(L1n);var x5a=L1n.exports,B1n={exports:{}};(function(t){t.exports=["American","American Chinchilla","American Fuzzy Lop","American Sable","Argente Brun","Belgian Hare","Beveren","Blanc de Hotot","Britannia Petite","Californian","Champagne D’Argent","Checkered Giant","Cinnamon","Crème D’Argent","Dutch","Dwarf Hotot","English Angora","English Lop","English Spot","Flemish Giant","Florida White","French Angora","French Lop","Giant Angora","Giant Chinchilla","Harlequin","Havana","Himalayan","Holland Lop","Jersey Wooly","Lilac","Lionhead","Mini Lop","Mini Rex","Mini Satin","Netherland Dwarf","New Zealand","Palomino","Polish","Rex","Rhinelander","Satin","Satin Angora","Silver","Silver Fox","Silver Marten","Standard Chinchilla","Tan","Thrianta"]})(B1n);var E5a=B1n.exports,D1n={exports:{}};(function(t){t.exports=["Acacia-ants","Acorn-plum gall","Aerial yellowjacket","Africanized honey bee","Allegheny mound ant","Almond stone wasp","Ant","Arboreal ant","Argentine ant","Asian paper wasp","Baldfaced hornet","Bee","Bigheaded ant","Black and yellow mud dauber","Black carpenter ant","Black imported fire ant","Blue horntail woodwasp","Blue orchard bee","Braconid wasp","Bumble bee","Carpenter ant","Carpenter wasp","Chalcid wasp","Cicada killer","Citrus blackfly parasitoid","Common paper wasp","Crazy ant","Cuckoo wasp","Cynipid gall wasp","Eastern Carpenter bee","Eastern yellowjacket","Elm sawfly","Encyrtid wasp","Erythrina gall wasp","Eulophid wasp","European hornet","European imported fire ant","False honey ant","Fire ant","Forest bachac","Forest yellowjacket","German yellowjacket","Ghost ant","Giant ichneumon wasp","Giant resin bee","Giant wood wasp","Golden northern bumble bee","Golden paper wasp","Gouty oak gall","Grass Carrying Wasp","Great black wasp","Great golden digger wasp","Hackberry nipple gall parasitoid","Honey bee","Horned oak gall","Horse guard wasp","Horse guard wasp","Hunting wasp","Ichneumonid wasp","Keyhole wasp","Knopper gall","Large garden bumble bee","Large oak-apple gall","Leafcutting bee","Little fire ant","Little yellow ant","Long-horned bees","Long-legged ant","Macao paper wasp","Mallow bee","Marble gall","Mossyrose gall wasp","Mud-daubers","Multiflora rose seed chalcid","Oak apple gall wasp","Oak rough bulletgall wasp","Oak saucer gall","Oak shoot sawfly","Odorous house ant","Orange-tailed bumble bee","Orangetailed potter wasp","Oriental chestnut gall wasp","Paper wasp","Pavement ant","Pigeon tremex","Pip gall wasp","Prairie yellowjacket","Pteromalid wasp","Pyramid ant","Raspberry Horntail","Red ant","Red carpenter ant","Red harvester ant","Red imported fire ant","Red wasp","Red wood ant","Red-tailed wasp","Reddish carpenter ant","Rough harvester ant","Sawfly parasitic wasp","Scale parasitoid","Silky ant","Sirex woodwasp","Siricid woodwasp","Smaller yellow ant","Southeastern blueberry bee","Southern fire ant","Southern yellowjacket","Sphecid wasp","Stony gall","Sweat bee","Texas leafcutting ant","Tiphiid wasp","Torymid wasp","Tramp ant","Valentine ant","Velvet ant","Vespid wasp","Weevil parasitoid","Western harvester ant","Western paper wasp","Western thatching ant","Western yellowjacket","White-horned horntail","Willow shoot sawfly","Woodwasp","Wool sower gall maker","Yellow and black potter wasp","Yellow Crazy Ant","Yellow-horned horntail"]})(D1n);var S5a=D1n.exports,$1n={exports:{}};(function(t){t.exports=["Giant panda","Spectacled bear","Sun bear","Sloth bear","American black bear","Asian black bear","Brown bear","Polar bear"]})($1n);var w5a=$1n.exports,F1n={exports:{}};(function(t){t.exports=["Asiatic Lion","Barbary Lion","West African Lion","Northeast Congo Lion","Masai Lion","Transvaal lion","Cape lion"]})(F1n);var _5a=F1n.exports,j1n={exports:{}};(function(t){t.exports=["Aberdeen Angus","Abergele","Abigar","Abondance","Abyssinian Shorthorned Zebu","Aceh","Achham","Adamawa","Adaptaur","Afar","Africangus","Afrikaner","Agerolese","Alambadi","Alatau","Albanian","Albera","Alderney","Alentejana","Aleutian wild cattle","Aliad Dinka","Alistana-Sanabresa","Allmogekor","Alur","American","American Angus","American Beef Friesian","American Brown Swiss","American Milking Devon","American White Park","Amerifax","Amrit Mahal","Amsterdam Island cattle","Anatolian Black","Andalusian Black","Andalusian Blond","Andalusian Grey","Angeln","Angoni","Ankina","Ankole","Ankole-Watusi","Aracena","Arado","Argentine Criollo","Argentine Friesian","Armorican","Arouquesa","Arsi","Asturian Mountain","Asturian Valley","Aubrac","Aulie-Ata","Aure et Saint-Girons","Australian Braford","Australian Brangus","Australian Charbray","Australian Friesian Sahiwal","Australian Lowline","Australian Milking Zebu","Australian Shorthorn","Austrian Simmental","Austrian Yellow","Avétonou","Avileña-Negra Ibérica","Aweil Dinka","Ayrshire","Azaouak","Azebuado","Azerbaijan Zebu","Azores","Bedit","Breed","Bachaur cattle","Baherie cattle","Bakosi cattle","Balancer","Baoule","Bargur cattle","Barrosã","Barzona","Bazadaise","Beef Freisian","Beefalo","Beefmaker","Beefmaster","Begayt","Belgian Blue","Belgian Red","Belgian Red Pied","Belgian White-and-Red","Belmont Red","Belted Galloway","Bernese","Berrenda cattle","Betizu","Bianca Modenese","Blaarkop","Black Angus","Black Baldy","Black Hereford","Blanca Cacereña","Blanco Orejinegro BON","Blonde d'Aquitaine","Blue Albion","Blue Grey","Bohuskulla","Bonsmara","Boran","Boškarin","Braford","Brahman","Brahmousin","Brangus","Braunvieh","Brava","British White","British Friesian","Brown Carpathian","Brown Caucasian","Brown Swiss","Bue Lingo","Burlina","Buša cattle","Butana cattle","Bushuyev","Cedit","Breed","Cachena","Caldelana","Camargue","Campbell Island cattle","Canadian Speckle Park","Canadienne","Canaria","Canchim","Caracu","Cárdena Andaluza","Carinthian Blondvieh","Carora","Charbray","Charolais","Chateaubriand","Chiangus","Chianina","Chillingham cattle","Chinese Black Pied","Cholistani","Coloursided White Back","Commercial","Corriente","Corsican cattle","Costeño con Cuernos","Crioulo Lageano","Dedit","Breed","Dajal","Dangi cattle","Danish Black-Pied","Danish Jersey","Danish Red","Deep Red cattle","Deoni","Devon","Dexter cattle","Dhanni","Doayo cattle","Doela","Drakensberger","Dølafe","Droughtmaster","Dulong'","Dutch Belted","Dutch Friesian","Dwarf Lulu","Eedit","Breed","East Anatolian Red","Eastern Finncattle","Eastern Red Polled","Enderby Island cattle","English Longhorn","Ennstaler Bergscheck","Estonian Holstein","Estonian Native","Estonian Red cattle","Évolène cattle","Fedit","Breed","Fēng Cattle","Finnish Ayrshire","Finncattle","Finnish Holstein-Friesian","Fjäll","Fleckvieh","Florida Cracker cattle","Fogera","French Simmental","Fribourgeoise","Friesian Red and White","Fulani Sudanese","Gedit","Breed","Galician Blond","Galloway cattle","Gangatiri","Gaolao","Garvonesa","Gascon cattle","Gelbvieh","Georgian Mountain cattle","German Angus","German Black Pied cattle","German Black Pied Dairy","German Red Pied","Gir","Glan cattle","Gloucester","Gobra","Greek Shorthorn","Greek Steppe","Greyman cattle","Gudali","Guernsey cattle","Guzerá","Hedit","Breed","Hallikar4","Hanwoo","Hariana cattle","Hartón del Valle","Harzer Rotvieh","Hays Converter","Heck cattle","Hereford","Herens","Hybridmaster","Highland cattle","Hinterwald","Holando-Argentino","Holstein Friesian cattle","Horro","Huáng Cattle","Hungarian Grey","Iedit","Breed","Iberian cattle","Icelandic","Illawarra cattle","Improved Red and White","Indo-Brazilian","Irish Moiled","Israeli Holstein","Israeli Red","Istoben cattle","Istrian cattle","Jedit","Breed","Jamaica Black","Jamaica Hope","Jamaica Red","Japanese Brown","Jarmelista","Javari cattle","Jersey cattle","Jutland cattle","Kedit","Breed","Kabin Buri cattle","Kalmyk cattle","Kangayam","Kankrej","Kamphaeng Saen cattle","Karan Swiss","Kasaragod Dwarf cattle","Kathiawadi","Kazakh Whiteheaded","Kenana cattle","Kenkatha cattle","Kerry cattle","Kherigarh","Khillari cattle","Kholomogory","Korat Wagyu","Kostroma cattle","Krishna Valley cattle","Kuri","Kurgan cattle","Ledit","Breed","La Reina cattle","Lakenvelder cattle","Lampurger","Latvian Blue","Latvian Brown","Latvian Danish Red","Lebedyn","Levantina","Limia cattle","Limousin","Limpurger","Lincoln Red","Lineback","Lithuanian Black-and-White","Lithuanian Light Grey","Lithuanian Red","Lithuanian White-Backed","Lohani cattle","Lourdais","Lucerna cattle","Luing","Medit","Breed","Madagascar Zebu","Madura","Maine-Anjou","Malnad Gidda","Malvi","Mandalong Special","Mantequera Leonesa","Maramureş Brown","Marchigiana","Maremmana","Marinhoa","Maronesa","Masai","Mashona","Menorquina","Mertolenga","Meuse-Rhine-Issel","Mewati","Milking Shorthorn","Minhota","Mirandesa","Mirkadim","Mocăniţă","Mollie","Monchina","Mongolian","Montbéliarde","Morucha","Muturu","Murboden","Murnau-Werdenfels","Murray Grey","Nedit","Breed","Nagori","N'Dama","Negra Andaluza","Nelore","Nguni","Nimari","Normande","North Bengal Grey","Northern Finncattle","Northern Shorthorn","Norwegian Red","Oedit]","Breed","Ongole","Original Simmental","Pedit","Breed","Pajuna","Palmera","Pantaneiro","Parda Alpina","Parthenaise","Pasiega","Pembroke","Philippine Native","Pie Rouge des Plaines","Piedmontese cattle","Pineywoods","Pinzgauer","Pirenaica","Podolac","Podolica","Polish Black-and-White","Polish Red","Polled Hereford","Poll Shorthorn","Polled Shorthorn","Ponwar","Preta","Punganur","Pulikulam","Pustertaler Sprinzen","Qedit","Breed","Qinchaun","Queensland Miniature Boran","Redit","Breed","Ramo Grande","Randall","Raramuri Criollo","Rathi","Rätisches Grauvieh","Raya","Red Angus","Red Brangus","Red Chittagong","Red Fulani","Red Gorbatov","Red Holstein","Red Kandhari","Red Mingrelian","Red Poll","Red Polled Østland","Red Sindhi","Retinta","Riggit Galloway","Ringamåla","Rohjan","Romagnola","Romanian Bălţata","Romanian Steppe Gray","Romosinuano","Russian Black Pied","RX3","Sedit","Breed","Sahiwal","Salers","Salorn","Sanga","Sanhe","Santa Cruz","Santa Gertrudis","Sayaguesa","Schwyz","Selembu","Senepol","Serbian Pied","Serbian Steppe","Sheko","Shetland","Shorthorn","Siboney de Cuba","Simbrah","Simford","Simmental","Siri","South Devon","Spanish Fighting Bull","Speckle Park","Square Meater","Sussex","Swedish Friesian","Swedish Polled","Swedish Red Pied","Swedish Red Polled","Swedish Red-and-White","Tedit","Breed","Tabapuã","Tarentaise","Tasmanian Grey","Tauros","Telemark","Texas Longhorn","Texon","Thai Black","Thai Fighting Bull","Thai Friesian","Thai Milking Zebu","Tharparkar","Tswana","Tudanca","Tuli","Tulim","Turkish Grey Steppe","Tux-Zillertal","Tyrol Grey","Uedit","Breed","Umblachery","Ukrainian Grey","Vedit","Breed","Valdostana Castana","Valdostana Pezzata Nera","Valdostana Pezzata Rossa","Väneko","Vaynol","Vechur8","Vestland Fjord","Vestland Red Polled","Vianesa","Volinian Beef","Vorderwald","Vosgienne","Wedit","Breed","Wagyu","Waguli","Wangus","Welsh Black","Western Finncattle","White Cáceres","White Fulani","White Lamphun","White Park","Whitebred Shorthorn","Xedit","Breed","Xingjiang Brown","Yedit","Breed","Yakutian","Yanbian","Yanhuang","Yurino","Zedit","Breed","Żubroń","Zebu"]})(j1n);var T5a=j1n.exports,H1n={exports:{}};(function(t){t.exports=["Red-throated Loon","Arctic Loon","Pacific Loon","Common Loon","Yellow-billed Loon","Least Grebe","Pied-billed Grebe","Horned Grebe","Red-necked Grebe","Eared Grebe","Western Grebe","Clark's Grebe","Yellow-nosed Albatross","Shy Albatross","Black-browed Albatross","Wandering Albatross","Laysan Albatross","Black-footed Albatross","Short-tailed Albatross","Northern Fulmar","Herald Petrel","Murphy's Petrel","Mottled Petrel","Black-capped Petrel","Cook's Petrel","Stejneger's Petrel","White-chinned Petrel","Streaked Shearwater","Cory's Shearwater","Pink-footed Shearwater","Flesh-footed Shearwater","Greater Shearwater","Wedge-tailed Shearwater","Buller's Shearwater","Sooty Shearwater","Short-tailed Shearwater","Manx Shearwater","Black-vented Shearwater","Audubon's Shearwater","Little Shearwater","Wilson's Storm-Petrel","White-faced Storm-Petrel","European Storm-Petrel","Fork-tailed Storm-Petrel","Leach's Storm-Petrel","Ashy Storm-Petrel","Band-rumped Storm-Petrel","Wedge-rumped Storm-Petrel","Black Storm-Petrel","Least Storm-Petrel","White-tailed Tropicbird","Red-billed Tropicbird","Red-tailed Tropicbird","Masked Booby","Blue-footed Booby","Brown Booby","Red-footed Booby","Northern Gannet","American White Pelican","Brown Pelican","Brandt's Cormorant","Neotropic Cormorant","Double-crested Cormorant","Great Cormorant","Red-faced Cormorant","Pelagic Cormorant","Anhinga","Magnificent Frigatebird","Great Frigatebird","Lesser Frigatebird","American Bittern","Yellow Bittern","Least Bittern","Great Blue Heron","Great Egret","Chinese Egret","Little Egret","Western Reef-Heron","Snowy Egret","Little Blue Heron","Tricolored Heron","Reddish Egret","Cattle Egret","Green Heron","Black-crowned Night-Heron","Yellow-crowned Night-Heron","White Ibis","Scarlet Ibis","Glossy Ibis","White-faced Ibis","Roseate Spoonbill","Jabiru","Wood Stork","Black Vulture","Turkey Vulture","California Condor","Greater Flamingo","Black-bellied Whistling-Duck","Fulvous Whistling-Duck","Bean Goose","Pink-footed Goose","Greater White-fronted Goose","Lesser White-fronted Goose","Emperor Goose","Snow Goose","Ross's Goose","Canada Goose","Brant","Barnacle Goose","Mute Swan","Trumpeter Swan","Tundra Swan","Whooper Swan","Muscovy Duck","Wood Duck","Gadwall","Falcated Duck","Eurasian Wigeon","American Wigeon","American Black Duck","Mallard","Mottled Duck","Spot-billed Duck","Blue-winged Teal","Cinnamon Teal","Northern Shoveler","White-cheeked Pintail","Northern Pintail","Garganey","Baikal Teal","Green-winged Teal","Canvasback","Redhead","Common Pochard","Ring-necked Duck","Tufted Duck","Greater Scaup","Lesser Scaup","Steller's Eider","Spectacled Eider","King Eider","Common Eider","Harlequin Duck","Labrador Duck","Surf Scoter","White-winged Scoter","Black Scoter","Oldsquaw","Bufflehead","Common Goldeneye","Barrow's Goldeneye","Smew","Hooded Merganser","Common Merganser","Red-breasted Merganser","Masked Duck","Ruddy Duck","Osprey","Hook-billed Kite","Swallow-tailed Kite","White-tailed Kite","Snail Kite","Mississippi Kite","Bald Eagle","White-tailed Eagle","Steller's Sea-Eagle","Northern Harrier","Sharp-shinned Hawk","Cooper's Hawk","Northern Goshawk","Crane Hawk","Gray Hawk","Common Black-Hawk","Harris's Hawk","Roadside Hawk","Red-shouldered Hawk","Broad-winged Hawk","Short-tailed Hawk","Swainson's Hawk","White-tailed Hawk","Zone-tailed Hawk","Red-tailed Hawk","Ferruginous Hawk","Rough-legged Hawk","Golden Eagle","Collared Forest-Falcon","Crested Caracara","Eurasian Kestrel","American Kestrel","Merlin","Eurasian Hobby","Aplomado Falcon","Gyrfalcon","Peregrine Falcon","Prairie Falcon","Plain Chachalaca","Chukar","Himalayan Snowcock","Gray Partridge","Ring-necked Pheasant","Ruffed Grouse","Sage Grouse","Spruce Grouse","Willow Ptarmigan","Rock Ptarmigan","White-tailed Ptarmigan","Blue Grouse","Sharp-tailed Grouse","Greater Prairie-chicken","Lesser Prairie-chicken","Wild Turkey","Mountain Quail","Scaled Quail","California Quail","Gambel's Quail","Northern Bobwhite","Montezuma Quail","Yellow Rail","Black Rail","Corn Crake","Clapper Rail","King Rail","Virginia Rail","Sora","Paint-billed Crake","Spotted Rail","Purple Gallinule","Azure Gallinule","Common Moorhen","Eurasian Coot","American Coot","Limpkin","Sandhill Crane","Common Crane","Whooping Crane","Double-striped Thick-knee","Northern Lapwing","Black-bellied Plover","European Golden-Plover","American Golden-Plover","Pacific Golden-Plover","Mongolian Plover","Collared Plover","Snowy Plover","Wilson's Plover","Common Ringed Plover","Semipalmated Plover","Piping Plover","Little Ringed Plover","Killdeer","Mountain Plover","Eurasian Dotterel","Eurasian Oystercatcher","American Oystercatcher","Black Oystercatcher","Black-winged Stilt","Black-necked Stilt","American Avocet","Northern Jacana","Common Greenshank","Greater Yellowlegs","Lesser Yellowlegs","Marsh Sandpiper","Spotted Redshank","Wood Sandpiper","Green Sandpiper","Solitary Sandpiper","Willet","Wandering Tattler","Gray-tailed Tattler","Common Sandpiper","Spotted Sandpiper","Terek Sandpiper","Upland Sandpiper","Little Curlew","Eskimo Curlew","Whimbrel","Bristle-thighed Curlew","Far Eastern Curlew","Slender-billed Curlew","Eurasian Curlew","Long-billed Curlew","Black-tailed Godwit","Hudsonian Godwit","Bar-tailed Godwit","Marbled Godwit","Ruddy Turnstone","Black Turnstone","Surfbird","Great Knot","Red Knot","Sanderling","Semipalmated Sandpiper","Western Sandpiper","Red-necked Stint","Little Stint","Temminck's Stint","Long-toed Stint","Least Sandpiper","White-rumped Sandpiper","Baird's Sandpiper","Pectoral Sandpiper","Sharp-tailed Sandpiper","Purple Sandpiper","Rock Sandpiper","Dunlin","Curlew Sandpiper","Stilt Sandpiper","Spoonbill Sandpiper","Broad-billed Sandpiper","Buff-breasted Sandpiper","Ruff","Short-billed Dowitcher","Long-billed Dowitcher","Jack Snipe","Common Snipe","Pin-tailed Snipe","Eurasian Woodcock","American Woodcock","Wilson's Phalarope","Red-necked Phalarope","Red Phalarope","Oriental Pratincole","Great Skua","South Polar Skua","Pomarine Jaeger","Parasitic Jaeger","Long-tailed Jaeger","Laughing Gull","Franklin's Gull","Little Gull","Black-headed Gull","Bonaparte's Gull","Heermann's Gull","Band-tailed Gull","Black-tailed Gull","Mew Gull","Ring-billed Gull","California Gull","Herring Gull","Yellow-legged Gull","Thayer's Gull","Iceland Gull","Lesser Black-backed Gull","Slaty-backed Gull","Yellow-footed Gull","Western Gull","Glaucous-winged Gull","Glaucous Gull","Great Black-backed Gull","Sabine's Gull","Black-legged Kittiwake","Red-legged Kittiwake","Ross's Gull","Ivory Gull","Gull-billed Tern","Caspian Tern","Royal Tern","Elegant Tern","Sandwich Tern","Roseate Tern","Common Tern","Arctic Tern","Forster's Tern","Least Tern","Aleutian Tern","Bridled Tern","Sooty Tern","Large-billed Tern","White-winged Tern","Whiskered Tern","Black Tern","Brown Noddy","Black Noddy","Black Skimmer","Dovekie","Common Murre","Thick-billed Murre","Razorbill","Great Auk","Black Guillemot","Pigeon Guillemot","Long-billed Murrelet","Marbled Murrelet","Kittlitz's Murrelet","Xantus's Murrelet","Craveri's Murrelet","Ancient Murrelet","Cassin's Auklet","Parakeet Auklet","Least Auklet","Whiskered Auklet","Crested Auklet","Rhinoceros Auklet","Atlantic Puffin","Horned Puffin","Tufted Puffin","Rock Dove","Scaly-naped Pigeon","White-crowned Pigeon","Red-billed Pigeon","Band-tailed Pigeon","Oriental Turtle-Dove","European Turtle-Dove","Eurasian Collared-Dove","Spotted Dove","White-winged Dove","Zenaida Dove","Mourning Dove","Passenger Pigeon","Inca Dove","Common Ground-Dove","Ruddy Ground-Dove","White-tipped Dove","Key West Quail-Dove","Ruddy Quail-Dove","Budgerigar","Monk Parakeet","Carolina Parakeet","Thick-billed Parrot","White-winged Parakeet","Red-crowned Parrot","Common Cuckoo","Oriental Cuckoo","Black-billed Cuckoo","Yellow-billed Cuckoo","Mangrove Cuckoo","Greater Roadrunner","Smooth-billed Ani","Groove-billed Ani","Barn Owl","Flammulated Owl","Oriental Scops-Owl","Western Screech-Owl","Eastern Screech-Owl","Whiskered Screech-Owl","Great Horned Owl","Snowy Owl","Northern Hawk Owl","Northern Pygmy-Owl","Ferruginous Pygmy-Owl","Elf Owl","Burrowing Owl","Mottled Owl","Spotted Owl","Barred Owl","Great Gray Owl","Long-eared Owl","Short-eared Owl","Boreal Owl","Northern Saw-whet Owl","Lesser Nighthawk","Common Nighthawk","Antillean Nighthawk","Common Pauraque","Common Poorwill","Chuck-will's-widow","Buff-collared Nightjar","Whip-poor-will","Jungle Nightjar","Black Swift","White-collared Swift","Chimney Swift","Vaux's Swift","White-throated Needletail","Common Swift","Fork-tailed Swift","White-throated Swift","Antillean Palm Swift","Green Violet-ear","Green-breasted Mango","Broad-billed Hummingbird","White-eared Hummingbird","Xantus's Hummingbird","Berylline Hummingbird","Buff-bellied Hummingbird","Cinnamon Hummingbird","Violet-crowned Hummingbird","Blue-throated Hummingbird","Magnificent Hummingbird","Plain-capped Starthroat","Bahama Woodstar","Lucifer Hummingbird","Ruby-throated Hummingbird","Black-chinned Hummingbird","Anna's Hummingbird","Costa's Hummingbird","Calliope Hummingbird","Bumblebee Hummingbird","Broad-tailed Hummingbird","Rufous Hummingbird","Allen's Hummingbird","Elegant Trogon","Eared Trogon","Hoopoe","Ringed Kingfisher","Belted Kingfisher","Green Kingfisher","Eurasian Wryneck","Lewis's Woodpecker","Red-headed Woodpecker","Acorn Woodpecker","Gila Woodpecker","Golden-fronted Woodpecker","Red-bellied Woodpecker","Williamson's Sapsucker","Yellow-bellied Sapsucker","Red-naped Sapsucker","Red-breasted Sapsucker","Great Spotted Woodpecker","Ladder-backed Woodpecker","Nuttall's Woodpecker","Downy Woodpecker","Hairy Woodpecker","Strickland's Woodpecker","Red-cockaded Woodpecker","White-headed Woodpecker","Three-toed Woodpecker","Black-backed Woodpecker","Northern Flicker","Gilded Flicker","Pileated Woodpecker","Ivory-billed Woodpecker","Northern Beardless-Tyrannulet","Greenish Elaenia","Caribbean Elaenia","Tufted Flycatcher","Olive-sided Flycatcher","Greater Pewee","Western Wood-Pewee","Eastern Wood-Pewee","Yellow-bellied Flycatcher","Acadian Flycatcher","Alder Flycatcher","Willow Flycatcher","Least Flycatcher","Hammond's Flycatcher","Dusky Flycatcher","Gray Flycatcher","Pacific-slope Flycatcher","Cordilleran Flycatcher","Buff-breasted Flycatcher","Black Phoebe","Eastern Phoebe","Say's Phoebe","Vermilion Flycatcher","Dusky-capped Flycatcher","Ash-throated Flycatcher","Nutting's Flycatcher","Great Crested Flycatcher","Brown-crested Flycatcher","La Sagra's Flycatcher","Great Kiskadee","Sulphur-bellied Flycatcher","Variegated Flycatcher","Tropical Kingbird","Couch's Kingbird","Cassin's Kingbird","Thick-billed Kingbird","Western Kingbird","Eastern Kingbird","Gray Kingbird","Loggerhead Kingbird","Scissor-tailed Flycatcher","Fork-tailed Flycatcher","Rose-throated Becard","Masked Tityra","Brown Shrike","Loggerhead Shrike","Northern Shrike","White-eyed Vireo","Thick-billed Vireo","Bell's Vireo","Black-capped Vireo","Gray Vireo","Yellow-throated Vireo","Plumbeous Vireo","Cassin's Vireo","Blue-headed Vireo","Hutton's Vireo","Warbling Vireo","Philadelphia Vireo","Red-eyed Vireo","Yellow-green Vireo","Black-whiskered Vireo","Yucatan Vireo","Gray Jay","Steller's Jay","Blue Jay","Green Jay","Brown Jay","Florida Scrub-Jay","Island Scrub-Jay","Western Scrub-Jay","Mexican Jay","Pinyon Jay","Clark's Nutcracker","Black-billed Magpie","Yellow-billed Magpie","Eurasian Jackdaw","American Crow","Northwestern Crow","Tamaulipas Crow","Fish Crow","Chihuahuan Raven","Common Raven","Sky Lark","Horned Lark","Purple Martin","Cuban Martin","Gray-breasted Martin","Southern Martin","Brown-chested Martin","Tree Swallow","Violet-green Swallow","Bahama Swallow","Northern Rough-winged Swallow","Bank Swallow","Cliff Swallow","Cave Swallow","Barn Swallow","Common House-Martin","Carolina Chickadee","Black-capped Chickadee","Mountain Chickadee","Mexican Chickadee","Chestnut-backed Chickadee","Boreal Chickadee","Gray-headed Chickadee","Bridled Titmouse","Oak Titmouse","Juniper Titmouse","Tufted Titmouse","Verdin","Bushtit","Red-breasted Nuthatch","White-breasted Nuthatch","Pygmy Nuthatch","Brown-headed Nuthatch","Brown Creeper","Cactus Wren","Rock Wren","Canyon Wren","Carolina Wren","Bewick's Wren","House Wren","Winter Wren","Sedge Wren","Marsh Wren","American Dipper","Red-whiskered Bulbul","Golden-crowned Kinglet","Ruby-crowned Kinglet","Middendorff's Grasshopper-Warbler","Lanceolated Warbler","Wood Warbler","Dusky Warbler","Arctic Warbler","Blue-gray Gnatcatcher","California Gnatcatcher","Black-tailed Gnatcatcher","Black-capped Gnatcatcher","Narcissus Flycatcher","Mugimaki Flycatcher","Red-breasted Flycatcher","Siberian Flycatcher","Gray-spotted Flycatcher","Asian Brown Flycatcher","Siberian Rubythroat","Bluethroat","Siberian Blue Robin","Red-flanked Bluetail","Northern Wheatear","Stonechat","Eastern Bluebird","Western Bluebird","Mountain Bluebird","Townsend's Solitaire","Veery","Gray-cheeked Thrush","Bicknell's Thrush","Swainson's Thrush","Hermit Thrush","Wood Thrush","Eurasian Blackbird","Eyebrowed Thrush","Dusky Thrush","Fieldfare","Redwing","Clay-colored Robin","White-throated Robin","Rufous-backed Robin","American Robin","Varied Thrush","Aztec Thrush","Wrentit","Gray Catbird","Black Catbird","Northern Mockingbird","Bahama Mockingbird","Sage Thrasher","Brown Thrasher","Long-billed Thrasher","Bendire's Thrasher","Curve-billed Thrasher","California Thrasher","Crissal Thrasher","Le Conte's Thrasher","Blue Mockingbird","European Starling","Crested Myna","Siberian Accentor","Yellow Wagtail","Citrine Wagtail","Gray Wagtail","White Wagtail","Black-backed Wagtail","Tree Pipit","Olive-backed Pipit","Pechora Pipit","Red-throated Pipit","American Pipit","Sprague's Pipit","Bohemian Waxwing","Cedar Waxwing","Gray Silky-flycatcher","Phainopepla","Olive Warbler","Bachman's Warbler","Blue-winged Warbler","Golden-winged Warbler","Tennessee Warbler","Orange-crowned Warbler","Nashville Warbler","Virginia's Warbler","Colima Warbler","Lucy's Warbler","Crescent-chested Warbler","Northern Parula","Tropical Parula","Yellow Warbler","Chestnut-sided Warbler","Magnolia Warbler","Cape May Warbler","Black-throated Blue Warbler","Yellow-rumped Warbler","Black-throated Gray Warbler","Golden-cheeked Warbler","Black-throated Green Warbler","Townsend's Warbler","Hermit Warbler","Blackburnian Warbler","Yellow-throated Warbler","Grace's Warbler","Pine Warbler","Kirtland's Warbler","Prairie Warbler","Palm Warbler","Bay-breasted Warbler","Blackpoll Warbler","Cerulean Warbler","Black-and-white Warbler","American Redstart","Prothonotary Warbler","Worm-eating Warbler","Swainson's Warbler","Ovenbird","Northern Waterthrush","Louisiana Waterthrush","Kentucky Warbler","Connecticut Warbler","Mourning Warbler","MacGillivray's Warbler","Common Yellowthroat","Gray-crowned Yellowthroat","Hooded Warbler","Wilson's Warbler","Canada Warbler","Red-faced Warbler","Painted Redstart","Slate-throated Redstart","Fan-tailed Warbler","Golden-crowned Warbler","Rufous-capped Warbler","Yellow-breasted Chat","Bananaquit","Hepatic Tanager","Summer Tanager","Scarlet Tanager","Western Tanager","Flame-colored Tanager","Stripe-headed Tanager","White-collared Seedeater","Yellow-faced Grassquit","Black-faced Grassquit","Olive Sparrow","Green-tailed Towhee","Spotted Towhee","Eastern Towhee","Canyon Towhee","California Towhee","Abert's Towhee","Rufous-winged Sparrow","Cassin's Sparrow","Bachman's Sparrow","Botteri's Sparrow","Rufous-crowned Sparrow","Five-striped Sparrow","American Tree Sparrow","Chipping Sparrow","Clay-colored Sparrow","Brewer's Sparrow","Field Sparrow","Worthen's Sparrow","Black-chinned Sparrow","Vesper Sparrow","Lark Sparrow","Black-throated Sparrow","Sage Sparrow","Lark Bunting","Savannah Sparrow","Grasshopper Sparrow","Baird's Sparrow","Henslow's Sparrow","Le Conte's Sparrow","Nelson's Sharp-tailed Sparrow","Saltmarsh Sharp-tailed Sparrow","Seaside Sparrow","Fox Sparrow","Song Sparrow","Lincoln's Sparrow","Swamp Sparrow","White-throated Sparrow","Harris's Sparrow","White-crowned Sparrow","Golden-crowned Sparrow","Dark-eyed Junco","Yellow-eyed Junco","McCown's Longspur","Lapland Longspur","Smith's Longspur","Chestnut-collared Longspur","Pine Bunting","Little Bunting","Rustic Bunting","Yellow-breasted Bunting","Gray Bunting","Pallas's Bunting","Reed Bunting","Snow Bunting","McKay's Bunting","Crimson-collared Grosbeak","Northern Cardinal","Pyrrhuloxia","Yellow Grosbeak","Rose-breasted Grosbeak","Black-headed Grosbeak","Blue Bunting","Blue Grosbeak","Lazuli Bunting","Indigo Bunting","Varied Bunting","Painted Bunting","Dickcissel","Bobolink","Red-winged Blackbird","Tricolored Blackbird","Tawny-shouldered Blackbird","Eastern Meadowlark","Western Meadowlark","Yellow-headed Blackbird","Rusty Blackbird","Brewer's Blackbird","Common Grackle","Boat-tailed Grackle","Great-tailed Grackle","Shiny Cowbird","Bronzed Cowbird","Brown-headed Cowbird","Black-vented Oriole","Orchard Oriole","Hooded Oriole","Streak-backed Oriole","Spot-breasted Oriole","Altamira Oriole","Audubon's Oriole","Baltimore Oriole","Bullock's Oriole","Scott's Oriole","Common Chaffinch","Brambling","Gray-crowned Rosy-Finch","Black Rosy-Finch","Brown-capped Rosy-Finch","Pine Grosbeak","Common Rosefinch","Purple Finch","Cassin's Finch","House Finch","Red Crossbill","White-winged Crossbill","Common Redpoll","Hoary Redpoll","Eurasian Siskin","Pine Siskin","Lesser Goldfinch","Lawrence's Goldfinch","American Goldfinch","Oriental Greenfinch","Eurasian Bullfinch","Evening Grosbeak","Hawfinch","House Sparrow","Eurasian Tree Sparrow"]})(H1n);var C5a=H1n.exports,U1n={exports:{}};(function(t){t.exports=["Grass carp","Peruvian anchoveta","Silver carp","Common carp","Asari,","Japanese littleneck,","Filipino Venus,","Japanese cockle,","Alaska pollock","Nile tilapia","Whiteleg shrimp","Bighead carp","Skipjack tuna","Catla","Crucian carp","Atlantic salmon","Atlantic herring","Chub mackerel","Rohu","Yellowfin tuna","Japanese anchovy","Largehead hairtail","Atlantic cod","European pilchard","Capelin","Jumbo flying squid","Milkfish","Atlantic mackerel","Rainbow trout","Araucanian herring","Wuchang bream","Gulf menhaden","Indian oil sardine","Black carp","European anchovy","Northern snakehead","Pacific cod","Pacific saury","Pacific herring","Bigeye tuna","Chilean jack mackerel","Yellow croaker","Haddock","Gazami crab","Amur catfish","Japanese common catfish","European sprat","Pink salmon","Mrigal carp","Channel catfish","Blood cockle","Blue whiting","Hilsa shad","Daggertooth pike conger","California pilchard","Cape horse mackerel","Pacific anchoveta","Japanese flying squid","Pollock","Chinese softshell turtle","Kawakawa","Indian mackerel","Asian swamp eel","Argentine hake","Short mackerel","Southern rough shrimp","Southern African anchovy","Pond loach","Iridescent shark","Mandarin fish","Chinese perch","Nile perch","Round sardinella","Japanese pilchard","Bombay-duck","Yellowhead catfish","Korean bullhead","Narrow-barred Spanish mackerel","Albacore","Madeiran sardinella","Bonga shad","Silver cyprinid","Nile tilapia","Longtail tuna","Atlantic menhaden","North Pacific hake","Atlantic horse mackerel","Japanese jack mackerel","Pacific thread herring","Bigeye scad","Yellowstripe scad","Chum salmon","Blue swimming crab","Pacific sand lance","Pacific sandlance","Goldstripe sardinella"]})(U1n);var k5a=U1n.exports,z1n={exports:{}};(function(t){t.exports=["Alligator mississippiensis","Chinese Alligator","Black Caiman","Broad-snouted Caiman","Spectacled Caiman","Yacare Caiman","Cuvier’s Dwarf Caiman","Schneider’s Smooth-fronted Caiman","African Slender-snouted Crocodile","American Crocodile","Australian Freshwater Crocodile","Cuban Crocodile","Dwarf Crocodile","Morelet’s Crocodile","Mugger Crocodile","New Guinea Freshwater Crocodile","Nile Crocodile","West African Crocodile","Orinoco Crocodile","Philippine Crocodile","Saltwater Crocodile","Siamese Crocodile","Gharial","Tomistoma"]})(z1n);var R5a=z1n.exports,G1n={exports:{}};(function(t){t.exports=["dog","cat","snake","bear","lion","cetacean","insect","crocodilia","cow","bird","fish","rabbit","horse"]})(G1n);var M5a=G1n.exports;(function(t){var e={};t.exports=e,e.dog=v5a,e.cat=A5a,e.snake=y5a,e.horse=b5a,e.cetacean=x5a,e.rabbit=E5a,e.insect=S5a,e.bear=w5a,e.lion=_5a,e.cow=T5a,e.bird=C5a,e.fish=k5a,e.crocodilia=R5a,e.type=M5a})(M1n);var N5a=M1n.exports,V1n={exports:{}},K1n={exports:{}};(function(t){t.exports=["Inc","and Sons","LLC","Group"]})(K1n);var I5a=K1n.exports,W1n={exports:{}};(function(t){t.exports=["Adaptive","Advanced","Ameliorated","Assimilated","Automated","Balanced","Business-focused","Centralized","Cloned","Compatible","Configurable","Cross-group","Cross-platform","Customer-focused","Customizable","Decentralized","De-engineered","Devolved","Digitized","Distributed","Diverse","Down-sized","Enhanced","Enterprise-wide","Ergonomic","Exclusive","Expanded","Extended","Face to face","Focused","Front-line","Fully-configurable","Function-based","Fundamental","Future-proofed","Grass-roots","Horizontal","Implemented","Innovative","Integrated","Intuitive","Inverse","Managed","Mandatory","Monitored","Multi-channelled","Multi-lateral","Multi-layered","Multi-tiered","Networked","Object-based","Open-architected","Open-source","Operative","Optimized","Optional","Organic","Organized","Persevering","Persistent","Phased","Polarised","Pre-emptive","Proactive","Profit-focused","Profound","Programmable","Progressive","Public-key","Quality-focused","Reactive","Realigned","Re-contextualized","Re-engineered","Reduced","Reverse-engineered","Right-sized","Robust","Seamless","Secured","Self-enabling","Sharable","Stand-alone","Streamlined","Switchable","Synchronised","Synergistic","Synergized","Team-oriented","Total","Triple-buffered","Universal","Up-sized","Upgradable","User-centric","User-friendly","Versatile","Virtual","Visionary","Vision-oriented"]})(W1n);var P5a=W1n.exports,Q1n={exports:{}};(function(t){t.exports=["24 hour","24/7","3rd generation","4th generation","5th generation","6th generation","actuating","analyzing","asymmetric","asynchronous","attitude-oriented","background","bandwidth-monitored","bi-directional","bifurcated","bottom-line","clear-thinking","client-driven","client-server","coherent","cohesive","composite","context-sensitive","contextually-based","content-based","dedicated","demand-driven","didactic","directional","discrete","disintermediate","dynamic","eco-centric","empowering","encompassing","even-keeled","executive","explicit","exuding","fault-tolerant","foreground","fresh-thinking","full-range","global","grid-enabled","heuristic","high-level","holistic","homogeneous","human-resource","hybrid","impactful","incremental","intangible","interactive","intermediate","leading edge","local","logistical","maximized","methodical","mission-critical","mobile","modular","motivating","multimedia","multi-state","multi-tasking","national","needs-based","neutral","next generation","non-volatile","object-oriented","optimal","optimizing","radical","real-time","reciprocal","regional","responsive","scalable","secondary","solution-oriented","stable","static","systematic","systemic","system-worthy","tangible","tertiary","transitional","uniform","upward-trending","user-facing","value-added","web-enabled","well-modulated","zero administration","zero defect","zero tolerance"]})(Q1n);var O5a=Q1n.exports,q1n={exports:{}};(function(t){t.exports=["ability","access","adapter","algorithm","alliance","analyzer","application","approach","architecture","archive","artificial intelligence","array","attitude","benchmark","budgetary management","capability","capacity","challenge","circuit","collaboration","complexity","concept","conglomeration","contingency","core","customer loyalty","database","data-warehouse","definition","emulation","encoding","encryption","extranet","firmware","flexibility","focus group","forecast","frame","framework","function","functionalities","Graphic Interface","groupware","Graphical User Interface","hardware","help-desk","hierarchy","hub","implementation","info-mediaries","infrastructure","initiative","installation","instruction set","interface","internet solution","intranet","knowledge user","knowledge base","local area network","leverage","matrices","matrix","methodology","middleware","migration","model","moderator","monitoring","moratorium","neural-net","open architecture","open system","orchestration","paradigm","parallelism","policy","portal","pricing structure","process improvement","product","productivity","project","projection","protocol","secured line","service-desk","software","solution","standardization","strategy","structure","success","superstructure","support","synergy","system engine","task-force","throughput","time-frame","toolset","utilisation","website","workforce"]})(q1n);var L5a=q1n.exports,Y1n={exports:{}};(function(t){t.exports=["implement","utilize","integrate","streamline","optimize","evolve","transform","embrace","enable","orchestrate","leverage","reinvent","aggregate","architect","enhance","incentivize","morph","empower","envisioneer","monetize","harness","facilitate","seize","disintermediate","synergize","strategize","deploy","brand","grow","target","syndicate","synthesize","deliver","mesh","incubate","engage","maximize","benchmark","expedite","reintermediate","whiteboard","visualize","repurpose","innovate","scale","unleash","drive","extend","engineer","revolutionize","generate","exploit","transition","e-enable","iterate","cultivate","matrix","productize","redefine","recontextualize"]})(Y1n);var B5a=Y1n.exports,J1n={exports:{}};(function(t){t.exports=["clicks-and-mortar","value-added","vertical","proactive","robust","revolutionary","scalable","leading-edge","innovative","intuitive","strategic","e-business","mission-critical","sticky","one-to-one","24/7","end-to-end","global","B2B","B2C","granular","frictionless","virtual","viral","dynamic","24/365","best-of-breed","killer","magnetic","bleeding-edge","web-enabled","interactive","dot-com","sexy","back-end","real-time","efficient","front-end","distributed","seamless","extensible","turn-key","world-class","open-source","cross-platform","cross-media","synergistic","bricks-and-clicks","out-of-the-box","enterprise","integrated","impactful","wireless","transparent","next-generation","cutting-edge","user-centric","visionary","customized","ubiquitous","plug-and-play","collaborative","compelling","holistic","rich"]})(J1n);var D5a=J1n.exports,Z1n={exports:{}};(function(t){t.exports=["synergies","web-readiness","paradigms","markets","partnerships","infrastructures","platforms","initiatives","channels","eyeballs","communities","ROI","solutions","e-tailers","e-services","action-items","portals","niches","technologies","content","vortals","supply-chains","convergence","relationships","architectures","interfaces","e-markets","e-commerce","systems","bandwidth","infomediaries","models","mindshare","deliverables","users","schemas","networks","applications","metrics","e-business","functionalities","experiences","web services","methodologies","blockchains"]})(Z1n);var $5a=Z1n.exports,X1n={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} and #{Name.last_name}"]})(X1n);var F5a=X1n.exports;(function(t){var e={};t.exports=e,e.suffix=I5a,e.adjective=P5a,e.descriptor=O5a,e.noun=L5a,e.bs_verb=B5a,e.bs_adjective=D5a,e.bs_noun=$5a,e.name=F5a})(V1n);var j5a=V1n.exports,eyn={exports:{}},tyn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(tyn);var H5a=tyn.exports,nyn={exports:{}};(function(t){t.exports=["example.org","example.com","example.net"]})(nyn);var U5a=nyn.exports,ryn={exports:{}};(function(t){t.exports=["com","biz","info","name","net","org"]})(ryn);var z5a=ryn.exports,iyn={exports:{}};(function(t){t.exports=["0therplanet_128.jpg","1markiz_128.jpg","2fockus_128.jpg","8d3k_128.jpg","91bilal_128.jpg","9lessons_128.jpg","AM_Kn2_128.jpg","AlbertoCococi_128.jpg","BenouarradeM_128.jpg","BillSKenney_128.jpg","BrianPurkiss_128.jpg","BroumiYoussef_128.jpg","BryanHorsey_128.jpg","Chakintosh_128.jpg","ChrisFarina78_128.jpg","Elt_n_128.jpg","GavicoInd_128.jpg","HenryHoffman_128.jpg","IsaryAmairani_128.jpg","Karimmove_128.jpg","LucasPerdidao_128.jpg","ManikRathee_128.jpg","RussellBishop_128.jpg","S0ufi4n3_128.jpg","SULiik_128.jpg","Shriiiiimp_128.jpg","Silveredge9_128.jpg","Skyhartman_128.jpg","SlaapMe_128.jpg","Stievius_128.jpg","Talbi_ConSept_128.jpg","VMilescu_128.jpg","VinThomas_128.jpg","YoungCutlass_128.jpg","ZacharyZorbas_128.jpg","_dwite__128.jpg","_kkga_128.jpg","_pedropinho_128.jpg","_ragzor_128.jpg","_scottburgess_128.jpg","_shahedk_128.jpg","_victa_128.jpg","_vojto_128.jpg","_williamguerra_128.jpg","_yardenoon_128.jpg","a1chapone_128.jpg","a_brixen_128.jpg","a_harris88_128.jpg","aaronalfred_128.jpg","aaroni_128.jpg","aaronkwhite_128.jpg","abdots_128.jpg","abdulhyeuk_128.jpg","abdullindenis_128.jpg","abelcabans_128.jpg","abotap_128.jpg","abovefunction_128.jpg","adamawesomeface_128.jpg","adammarsbar_128.jpg","adamnac_128.jpg","adamsxu_128.jpg","adellecharles_128.jpg","ademilter_128.jpg","adhamdannaway_128.jpg","adhiardana_128.jpg","adityasutomo_128.jpg","adobi_128.jpg","adrienths_128.jpg","aeon56_128.jpg","afusinatto_128.jpg","agromov_128.jpg","agustincruiz_128.jpg","ah_lice_128.jpg","ahmadajmi_128.jpg","ahmetalpbalkan_128.jpg","ahmetsulek_128.jpg","aiiaiiaii_128.jpg","ainsleywagon_128.jpg","aio____128.jpg","airskylar_128.jpg","aislinnkelly_128.jpg","ajaxy_ru_128.jpg","aka_james_128.jpg","akashsharma39_128.jpg","akmalfikri_128.jpg","akmur_128.jpg","al_li_128.jpg","alagoon_128.jpg","alan_zhang__128.jpg","albertaugustin_128.jpg","alecarpentier_128.jpg","aleclarsoniv_128.jpg","aleinadsays_128.jpg","alek_djuric_128.jpg","aleksitappura_128.jpg","alessandroribe_128.jpg","alevizio_128.jpg","alexandermayes_128.jpg","alexivanichkin_128.jpg","algunsanabria_128.jpg","allagringaus_128.jpg","allfordesign_128.jpg","allthingssmitty_128.jpg","alsobrooks_128.jpg","alterchuca_128.jpg","aluisio_azevedo_128.jpg","alxleroydeval_128.jpg","alxndrustinov_128.jpg","amandabuzard_128.jpg","amanruzaini_128.jpg","amayvs_128.jpg","amywebbb_128.jpg","anaami_128.jpg","anasnakawa_128.jpg","anatolinicolae_128.jpg","andrea211087_128.jpg","andreas_pr_128.jpg","andresdjasso_128.jpg","andresenfredrik_128.jpg","andrewabogado_128.jpg","andrewarrow_128.jpg","andrewcohen_128.jpg","andrewofficer_128.jpg","andyisonline_128.jpg","andysolomon_128.jpg","andytlaw_128.jpg","angelceballos_128.jpg","angelcolberg_128.jpg","angelcreative_128.jpg","anjhero_128.jpg","ankitind_128.jpg","anoff_128.jpg","anthonysukow_128.jpg","antjanus_128.jpg","antongenkin_128.jpg","antonyryndya_128.jpg","antonyzotov_128.jpg","aoimedia_128.jpg","apriendeau_128.jpg","arashmanteghi_128.jpg","areandacom_128.jpg","areus_128.jpg","ariffsetiawan_128.jpg","ariil_128.jpg","arindam__128.jpg","arishi__128.jpg","arkokoley_128.jpg","aroon_sharma_128.jpg","arpitnj_128.jpg","artd_sign_128.jpg","artem_kostenko_128.jpg","arthurholcombe1_128.jpg","artvavs_128.jpg","ashernatali_128.jpg","ashocka18_128.jpg","atanism_128.jpg","atariboy_128.jpg","ateneupopular_128.jpg","attacks_128.jpg","aviddayentonbay_128.jpg","axel_128.jpg","badlittleduck_128.jpg","bagawarman_128.jpg","baires_128.jpg","balakayuriy_128.jpg","balintorosz_128.jpg","baliomega_128.jpg","baluli_128.jpg","bargaorobalo_128.jpg","barputro_128.jpg","bartjo_128.jpg","bartoszdawydzik_128.jpg","bassamology_128.jpg","batsirai_128.jpg","baumann_alex_128.jpg","baumannzone_128.jpg","bboy1895_128.jpg","bcrad_128.jpg","begreative_128.jpg","belyaev_rs_128.jpg","benefritz_128.jpg","benjamin_knight_128.jpg","bennyjien_128.jpg","benoitboucart_128.jpg","bereto_128.jpg","bergmartin_128.jpg","bermonpainter_128.jpg","bertboerland_128.jpg","besbujupi_128.jpg","beshur_128.jpg","betraydan_128.jpg","beweinreich_128.jpg","bfrohs_128.jpg","bighanddesign_128.jpg","bigmancho_128.jpg","billyroshan_128.jpg","bistrianiosip_128.jpg","blakehawksworth_128.jpg","blakesimkins_128.jpg","bluefx__128.jpg","bluesix_128.jpg","bobbytwoshoes_128.jpg","bobwassermann_128.jpg","bolzanmarco_128.jpg","borantula_128.jpg","borges_marcos_128.jpg","bowbrick_128.jpg","boxmodel_128.jpg","bpartridge_128.jpg","bradenhamm_128.jpg","brajeshwar_128.jpg","brandclay_128.jpg","brandonburke_128.jpg","brandonflatsoda_128.jpg","brandonmorreale_128.jpg","brenmurrell_128.jpg","brenton_clarke_128.jpg","bruno_mart_128.jpg","brunodesign1206_128.jpg","bryan_topham_128.jpg","bu7921_128.jpg","bublienko_128.jpg","buddhasource_128.jpg","buleswapnil_128.jpg","bungiwan_128.jpg","buryaknick_128.jpg","buzzusborne_128.jpg","byrnecore_128.jpg","byryan_128.jpg","cadikkara_128.jpg","calebjoyce_128.jpg","calebogden_128.jpg","canapud_128.jpg","carbontwelve_128.jpg","carlfairclough_128.jpg","carlosblanco_eu_128.jpg","carlosgavina_128.jpg","carlosjgsousa_128.jpg","carlosm_128.jpg","carlyson_128.jpg","caseycavanagh_128.jpg","caspergrl_128.jpg","catadeleon_128.jpg","catarino_128.jpg","cboller1_128.jpg","cbracco_128.jpg","ccinojasso1_128.jpg","cdavis565_128.jpg","cdharrison_128.jpg","ceekaytweet_128.jpg","cemshid_128.jpg","cggaurav_128.jpg","chaabane_wail_128.jpg","chacky14_128.jpg","chadami_128.jpg","chadengle_128.jpg","chaensel_128.jpg","chandlervdw_128.jpg","chanpory_128.jpg","charlesrpratt_128.jpg","charliecwaite_128.jpg","charliegann_128.jpg","chatyrko_128.jpg","cherif_b_128.jpg","chris_frees_128.jpg","chris_witko_128.jpg","chrismj83_128.jpg","chrisslowik_128.jpg","chrisstumph_128.jpg","christianoliff_128.jpg","chrisvanderkooi_128.jpg","ciaranr_128.jpg","cicerobr_128.jpg","claudioguglieri_128.jpg","cloudstudio_128.jpg","clubb3rry_128.jpg","cocolero_128.jpg","codepoet_ru_128.jpg","coderdiaz_128.jpg","codysanfilippo_128.jpg","cofla_128.jpg","colgruv_128.jpg","colirpixoil_128.jpg","collegeman_128.jpg","commadelimited_128.jpg","conspirator_128.jpg","constantx_128.jpg","coreyginnivan_128.jpg","coreyhaggard_128.jpg","coreyweb_128.jpg","craigelimeliah_128.jpg","craighenneberry_128.jpg","craigrcoles_128.jpg","creartinc_128.jpg","croakx_128.jpg","curiousoffice_128.jpg","curiousonaut_128.jpg","cybind_128.jpg","cynthiasavard_128.jpg","cyril_gaillard_128.jpg","d00maz_128.jpg","d33pthought_128.jpg","d_kobelyatsky_128.jpg","d_nny_m_cher_128.jpg","dactrtr_128.jpg","dahparra_128.jpg","dallasbpeters_128.jpg","damenleeturks_128.jpg","danillos_128.jpg","daniloc_128.jpg","danmartin70_128.jpg","dannol_128.jpg","danpliego_128.jpg","danro_128.jpg","dansowter_128.jpg","danthms_128.jpg","danvernon_128.jpg","danvierich_128.jpg","darcystonge_128.jpg","darylws_128.jpg","davecraige_128.jpg","davidbaldie_128.jpg","davidcazalis_128.jpg","davidhemphill_128.jpg","davidmerrique_128.jpg","davidsasda_128.jpg","dawidwu_128.jpg","daykiine_128.jpg","dc_user_128.jpg","dcalonaci_128.jpg","ddggccaa_128.jpg","de_ascanio_128.jpg","deeenright_128.jpg","demersdesigns_128.jpg","denisepires_128.jpg","depaulawagner_128.jpg","derekcramer_128.jpg","derekebradley_128.jpg","derienzo777_128.jpg","desastrozo_128.jpg","designervzm_128.jpg","dev_essentials_128.jpg","devankoshal_128.jpg","deviljho__128.jpg","devinhalladay_128.jpg","dgajjar_128.jpg","dgclegg_128.jpg","dhilipsiva_128.jpg","dhoot_amit_128.jpg","dhooyenga_128.jpg","dhrubo_128.jpg","diansigitp_128.jpg","dicesales_128.jpg","diesellaws_128.jpg","digitalmaverick_128.jpg","dimaposnyy_128.jpg","dingyi_128.jpg","divya_128.jpg","dixchen_128.jpg","djsherman_128.jpg","dmackerman_128.jpg","dmitriychuta_128.jpg","dnezkumar_128.jpg","dnirmal_128.jpg","donjain_128.jpg","doooon_128.jpg","doronmalki_128.jpg","dorphern_128.jpg","dotgridline_128.jpg","dparrelli_128.jpg","dpmachado_128.jpg","dreizle_128.jpg","drewbyreese_128.jpg","dshster_128.jpg","dss49_128.jpg","dudestein_128.jpg","duivvv_128.jpg","dutchnadia_128.jpg","dvdwinden_128.jpg","dzantievm_128.jpg","ecommerceil_128.jpg","eddiechen_128.jpg","edgarchris99_128.jpg","edhenderson_128.jpg","edkf_128.jpg","edobene_128.jpg","eduardostuart_128.jpg","ehsandiary_128.jpg","eitarafa_128.jpg","el_fuertisimo_128.jpg","elbuscainfo_128.jpg","elenadissi_128.jpg","elisabethkjaer_128.jpg","elliotlewis_128.jpg","elliotnolten_128.jpg","embrcecreations_128.jpg","emileboudeling_128.jpg","emmandenn_128.jpg","emmeffess_128.jpg","emsgulam_128.jpg","enda_128.jpg","enjoythetau_128.jpg","enricocicconi_128.jpg","envex_128.jpg","ernestsemerda_128.jpg","erwanhesry_128.jpg","estebanuribe_128.jpg","eugeneeweb_128.jpg","evandrix_128.jpg","evanshajed_128.jpg","exentrich_128.jpg","eyronn_128.jpg","fabbianz_128.jpg","fabbrucci_128.jpg","faisalabid_128.jpg","falconerie_128.jpg","falling_soul_128.jpg","falvarad_128.jpg","felipeapiress_128.jpg","felipecsl_128.jpg","ffbel_128.jpg","finchjke_128.jpg","findingjenny_128.jpg","fiterik_128.jpg","fjaguero_128.jpg","flashmurphy_128.jpg","flexrs_128.jpg","foczzi_128.jpg","fotomagin_128.jpg","fran_mchamy_128.jpg","francis_vega_128.jpg","franciscoamk_128.jpg","frankiefreesbie_128.jpg","fronx_128.jpg","funwatercat_128.jpg","g3d_128.jpg","gaborenton_128.jpg","gabrielizalo_128.jpg","gabrielrosser_128.jpg","ganserene_128.jpg","garand_128.jpg","gauchomatt_128.jpg","gauravjassal_128.jpg","gavr1l0_128.jpg","gcmorley_128.jpg","gearpixels_128.jpg","geneseleznev_128.jpg","geobikas_128.jpg","geran7_128.jpg","geshan_128.jpg","giancarlon_128.jpg","gipsy_raf_128.jpg","giuliusa_128.jpg","gizmeedevil1991_128.jpg","gkaam_128.jpg","gmourier_128.jpg","goddardlewis_128.jpg","gofrasdesign_128.jpg","gojeanyn_128.jpg","gonzalorobaina_128.jpg","grahamkennery_128.jpg","greenbes_128.jpg","gregkilian_128.jpg","gregrwilkinson_128.jpg","gregsqueeb_128.jpg","grrr_nl_128.jpg","gseguin_128.jpg","gt_128.jpg","gu5taf_128.jpg","guiiipontes_128.jpg","guillemboti_128.jpg","guischmitt_128.jpg","gusoto_128.jpg","h1brd_128.jpg","hafeeskhan_128.jpg","hai_ninh_nguyen_128.jpg","haligaliharun_128.jpg","hanna_smi_128.jpg","happypeter1983_128.jpg","harry_sistalam_128.jpg","haruintesettden_128.jpg","hasslunsford_128.jpg","haydn_woods_128.jpg","helderleal_128.jpg","hellofeverrrr_128.jpg","her_ruu_128.jpg","herbigt_128.jpg","herkulano_128.jpg","hermanobrother_128.jpg","herrhaase_128.jpg","heycamtaylor_128.jpg","heyimjuani_128.jpg","heykenneth_128.jpg","hfalucas_128.jpg","hgharrygo_128.jpg","hiemil_128.jpg","hjartstrorn_128.jpg","hoangloi_128.jpg","holdenweb_128.jpg","homka_128.jpg","horaciobella_128.jpg","hota_v_128.jpg","hsinyo23_128.jpg","hugocornejo_128.jpg","hugomano_128.jpg","iamgarth_128.jpg","iamglimy_128.jpg","iamjdeleon_128.jpg","iamkarna_128.jpg","iamkeithmason_128.jpg","iamsteffen_128.jpg","id835559_128.jpg","idiot_128.jpg","iduuck_128.jpg","ifarafonow_128.jpg","igorgarybaldi_128.jpg","illyzoren_128.jpg","ilya_pestov_128.jpg","imammuht_128.jpg","imcoding_128.jpg","imomenui_128.jpg","imsoper_128.jpg","increase_128.jpg","incubo82_128.jpg","instalox_128.jpg","ionuss_128.jpg","ipavelek_128.jpg","iqbalperkasa_128.jpg","iqonicd_128.jpg","irae_128.jpg","isaacfifth_128.jpg","isacosta_128.jpg","ismail_biltagi_128.jpg","isnifer_128.jpg","itolmach_128.jpg","itsajimithing_128.jpg","itskawsar_128.jpg","itstotallyamy_128.jpg","ivanfilipovbg_128.jpg","j04ntoh_128.jpg","j2deme_128.jpg","j_drake__128.jpg","jackiesaik_128.jpg","jacksonlatka_128.jpg","jacobbennett_128.jpg","jagan123_128.jpg","jakemoore_128.jpg","jamiebrittain_128.jpg","janpalounek_128.jpg","jarjan_128.jpg","jarsen_128.jpg","jasonmarkjones_128.jpg","javorszky_128.jpg","jay_wilburn_128.jpg","jayphen_128.jpg","jayrobinson_128.jpg","jcubic_128.jpg","jedbridges_128.jpg","jefffis_128.jpg","jeffgolenski_128.jpg","jehnglynn_128.jpg","jennyshen_128.jpg","jennyyo_128.jpg","jeremery_128.jpg","jeremiaha_128.jpg","jeremiespoken_128.jpg","jeremymouton_128.jpg","jeremyshimko_128.jpg","jeremyworboys_128.jpg","jerrybai1907_128.jpg","jervo_128.jpg","jesseddy_128.jpg","jffgrdnr_128.jpg","jghyllebert_128.jpg","jimmuirhead_128.jpg","jitachi_128.jpg","jjshaw14_128.jpg","jjsiii_128.jpg","jlsolerdeltoro_128.jpg","jm_denis_128.jpg","jmfsocial_128.jpg","jmillspaysbills_128.jpg","jnmnrd_128.jpg","joannefournier_128.jpg","joaoedumedeiros_128.jpg","jodytaggart_128.jpg","joe_black_128.jpg","joelcipriano_128.jpg","joelhelin_128.jpg","joemdesign_128.jpg","joetruesdell_128.jpg","joeymurdah_128.jpg","johannesneu_128.jpg","johncafazza_128.jpg","johndezember_128.jpg","johnriordan_128.jpg","johnsmithagency_128.jpg","joki4_128.jpg","jomarmen_128.jpg","jonathansimmons_128.jpg","jonkspr_128.jpg","jonsgotwood_128.jpg","jordyvdboom_128.jpg","joreira_128.jpg","josecarlospsh_128.jpg","josemarques_128.jpg","josep_martins_128.jpg","josevnclch_128.jpg","joshaustin_128.jpg","joshhemsley_128.jpg","joshmedeski_128.jpg","joshuaraichur_128.jpg","joshuasortino_128.jpg","jpenico_128.jpg","jpscribbles_128.jpg","jqiuss_128.jpg","juamperro_128.jpg","juangomezw_128.jpg","juanmamartinez_128.jpg","juaumlol_128.jpg","judzhin_miles_128.jpg","justinrgraham_128.jpg","justinrhee_128.jpg","justinrob_128.jpg","justme_timothyg_128.jpg","jwalter14_128.jpg","jydesign_128.jpg","kaelifa_128.jpg","kalmerrautam_128.jpg","kamal_chaneman_128.jpg","kanickairaj_128.jpg","kapaluccio_128.jpg","karalek_128.jpg","karlkanall_128.jpg","karolkrakowiak__128.jpg","karsh_128.jpg","karthipanraj_128.jpg","kaspernordkvist_128.jpg","katiemdaly_128.jpg","kaysix_dizzy_128.jpg","kazaky999_128.jpg","kennyadr_128.jpg","kerem_128.jpg","kerihenare_128.jpg","keryilmaz_128.jpg","kevinjohndayy_128.jpg","kevinoh_128.jpg","kevka_128.jpg","keyuri85_128.jpg","kianoshp_128.jpg","kijanmaharjan_128.jpg","kikillo_128.jpg","kimcool_128.jpg","kinday_128.jpg","kirangopal_128.jpg","kiwiupover_128.jpg","kkusaa_128.jpg","klefue_128.jpg","klimmka_128.jpg","knilob_128.jpg","kohette_128.jpg","kojourin_128.jpg","kolage_128.jpg","kolmarlopez_128.jpg","kolsvein_128.jpg","konus_128.jpg","koridhandy_128.jpg","kosmar_128.jpg","kostaspt_128.jpg","krasnoukhov_128.jpg","krystalfister_128.jpg","kucingbelang4_128.jpg","kudretkeskin_128.jpg","kuldarkalvik_128.jpg","kumarrajan12123_128.jpg","kurafire_128.jpg","kurtinc_128.jpg","kushsolitary_128.jpg","kvasnic_128.jpg","ky_128.jpg","kylefoundry_128.jpg","kylefrost_128.jpg","laasli_128.jpg","lanceguyatt_128.jpg","langate_128.jpg","larrybolt_128.jpg","larrygerard_128.jpg","laurengray_128.jpg","lawlbwoy_128.jpg","layerssss_128.jpg","leandrovaranda_128.jpg","lebinoclard_128.jpg","lebronjennan_128.jpg","leehambley_128.jpg","leeiio_128.jpg","leemunroe_128.jpg","leonfedotov_128.jpg","lepetitogre_128.jpg","lepinski_128.jpg","levisan_128.jpg","lewisainslie_128.jpg","lhausermann_128.jpg","liminha_128.jpg","lingeswaran_128.jpg","linkibol_128.jpg","linux29_128.jpg","lisovsky_128.jpg","llun_128.jpg","lmjabreu_128.jpg","loganjlambert_128.jpg","logorado_128.jpg","lokesh_coder_128.jpg","lonesomelemon_128.jpg","longlivemyword_128.jpg","looneydoodle_128.jpg","lososina_128.jpg","louis_currie_128.jpg","low_res_128.jpg","lowie_128.jpg","lu4sh1i_128.jpg","ludwiczakpawel_128.jpg","luxe_128.jpg","lvovenok_128.jpg","m4rio_128.jpg","m_kalibry_128.jpg","ma_tiax_128.jpg","mactopus_128.jpg","macxim_128.jpg","madcampos_128.jpg","madebybrenton_128.jpg","madebyvadim_128.jpg","madewulf_128.jpg","madshensel_128.jpg","madysondesigns_128.jpg","magoo04_128.jpg","magugzbrand2d_128.jpg","mahdif_128.jpg","mahmoudmetwally_128.jpg","maikelk_128.jpg","maiklam_128.jpg","malgordon_128.jpg","malykhinv_128.jpg","mandalareopens_128.jpg","manekenthe_128.jpg","mangosango_128.jpg","manigm_128.jpg","marakasina_128.jpg","marciotoledo_128.jpg","marclgonzales_128.jpg","marcobarbosa_128.jpg","marcomano__128.jpg","marcoramires_128.jpg","marcusgorillius_128.jpg","markjenkins_128.jpg","marklamb_128.jpg","markolschesky_128.jpg","markretzloff_128.jpg","markwienands_128.jpg","marlinjayakody_128.jpg","marosholly_128.jpg","marrimo_128.jpg","marshallchen__128.jpg","martinansty_128.jpg","martip07_128.jpg","mashaaaaal_128.jpg","mastermindesign_128.jpg","matbeedotcom_128.jpg","mateaodviteza_128.jpg","matkins_128.jpg","matt3224_128.jpg","mattbilotti_128.jpg","mattdetails_128.jpg","matthewkay__128.jpg","mattlat_128.jpg","mattsapii_128.jpg","mauriolg_128.jpg","maximseshuk_128.jpg","maximsorokin_128.jpg","maxlinderman_128.jpg","maz_128.jpg","mbilalsiddique1_128.jpg","mbilderbach_128.jpg","mcflydesign_128.jpg","mds_128.jpg","mdsisto_128.jpg","meelford_128.jpg","megdraws_128.jpg","mekal_128.jpg","meln1ks_128.jpg","melvindidit_128.jpg","mfacchinello_128.jpg","mgonto_128.jpg","mhaligowski_128.jpg","mhesslow_128.jpg","mhudobivnik_128.jpg","michaelabehsera_128.jpg","michaelbrooksjr_128.jpg","michaelcolenso_128.jpg","michaelcomiskey_128.jpg","michaelkoper_128.jpg","michaelmartinho_128.jpg","michalhron_128.jpg","michigangraham_128.jpg","michzen_128.jpg","mighty55_128.jpg","miguelkooreman_128.jpg","miguelmendes_128.jpg","mikaeljorhult_128.jpg","mikebeecham_128.jpg","mikemai2awesome_128.jpg","millinet_128.jpg","mirfanqureshi_128.jpg","missaaamy_128.jpg","mizhgan_128.jpg","mizko_128.jpg","mkginfo_128.jpg","mocabyte_128.jpg","mohanrohith_128.jpg","moscoz_128.jpg","motionthinks_128.jpg","moynihan_128.jpg","mr_shiznit_128.jpg","mr_subtle_128.jpg","mrebay007_128.jpg","mrjamesnoble_128.jpg","mrmartineau_128.jpg","mrxloka_128.jpg","mslarkina_128.jpg","msveet_128.jpg","mtolokonnikov_128.jpg","mufaddal_mw_128.jpg","mugukamil_128.jpg","muridrahhal_128.jpg","muringa_128.jpg","murrayswift_128.jpg","mutlu82_128.jpg","mutu_krish_128.jpg","mvdheuvel_128.jpg","mwarkentin_128.jpg","myastro_128.jpg","mylesb_128.jpg","mymyboy_128.jpg","n1ght_coder_128.jpg","n3dmax_128.jpg","n_tassone_128.jpg","nacho_128.jpg","naitanamoreno_128.jpg","namankreative_128.jpg","nandini_m_128.jpg","nasirwd_128.jpg","nastya_mane_128.jpg","nateschulte_128.jpg","nathalie_fs_128.jpg","naupintos_128.jpg","nbirckel_128.jpg","nckjrvs_128.jpg","necodymiconer_128.jpg","nehfy_128.jpg","nellleo_128.jpg","nelshd_128.jpg","nelsonjoyce_128.jpg","nemanjaivanovic_128.jpg","nepdud_128.jpg","nerdgr8_128.jpg","nerrsoft_128.jpg","nessoila_128.jpg","netonet_il_128.jpg","newbrushes_128.jpg","nfedoroff_128.jpg","nickfratter_128.jpg","nicklacke_128.jpg","nicolai_larsen_128.jpg","nicolasfolliot_128.jpg","nicoleglynn_128.jpg","nicollerich_128.jpg","nilshelmersson_128.jpg","nilshoenson_128.jpg","ninjad3m0_128.jpg","nitinhayaran_128.jpg","nomidesigns_128.jpg","normanbox_128.jpg","notbadart_128.jpg","noufalibrahim_128.jpg","noxdzine_128.jpg","nsamoylov_128.jpg","ntfblog_128.jpg","nutzumi_128.jpg","nvkznemo_128.jpg","nwdsha_128.jpg","nyancecom_128.jpg","oaktreemedia_128.jpg","okandungel_128.jpg","okansurreel_128.jpg","okcoker_128.jpg","oksanafrewer_128.jpg","okseanjay_128.jpg","oktayelipek_128.jpg","olaolusoga_128.jpg","olgary_128.jpg","omnizya_128.jpg","ooomz_128.jpg","operatino_128.jpg","opnsrce_128.jpg","orkuncaylar_128.jpg","oscarowusu_128.jpg","oskamaya_128.jpg","oskarlevinson_128.jpg","osmanince_128.jpg","osmond_128.jpg","ostirbu_128.jpg","osvaldas_128.jpg","otozk_128.jpg","ovall_128.jpg","overcloacked_128.jpg","overra_128.jpg","panchajanyag_128.jpg","panghal0_128.jpg","patrickcoombe_128.jpg","paulfarino_128.jpg","pcridesagain_128.jpg","peachananr_128.jpg","pechkinator_128.jpg","peejfancher_128.jpg","pehamondello_128.jpg","perfectflow_128.jpg","perretmagali_128.jpg","petar_prog_128.jpg","petebernardo_128.jpg","peter576_128.jpg","peterlandt_128.jpg","petrangr_128.jpg","phillapier_128.jpg","picard102_128.jpg","pierre_nel_128.jpg","pierrestoffe_128.jpg","pifagor_128.jpg","pixage_128.jpg","plasticine_128.jpg","plbabin_128.jpg","pmeissner_128.jpg","polarity_128.jpg","ponchomendivil_128.jpg","poormini_128.jpg","popey_128.jpg","posterjob_128.jpg","praveen_vijaya_128.jpg","prheemo_128.jpg","primozcigler_128.jpg","prinzadi_128.jpg","privetwagner_128.jpg","prrstn_128.jpg","psaikali_128.jpg","psdesignuk_128.jpg","puzik_128.jpg","pyronite_128.jpg","quailandquasar_128.jpg","r_garcia_128.jpg","r_oy_128.jpg","rachelreveley_128.jpg","rahmeen_128.jpg","ralph_lam_128.jpg","ramanathan_pdy_128.jpg","randomlies_128.jpg","rangafangs_128.jpg","raphaelnikson_128.jpg","raquelwilson_128.jpg","ratbus_128.jpg","rawdiggie_128.jpg","rdbannon_128.jpg","rdsaunders_128.jpg","reabo101_128.jpg","reetajayendra_128.jpg","rehatkathuria_128.jpg","reideiredale_128.jpg","renbyrd_128.jpg","rez___a_128.jpg","ricburton_128.jpg","richardgarretts_128.jpg","richwild_128.jpg","rickdt_128.jpg","rickyyean_128.jpg","rikas_128.jpg","ripplemdk_128.jpg","rmlewisuk_128.jpg","rob_thomas10_128.jpg","robbschiller_128.jpg","robergd_128.jpg","robinclediere_128.jpg","robinlayfield_128.jpg","robturlinckx_128.jpg","rodnylobos_128.jpg","rohixx_128.jpg","romanbulah_128.jpg","roxanejammet_128.jpg","roybarberuk_128.jpg","rpatey_128.jpg","rpeezy_128.jpg","rtgibbons_128.jpg","rtyukmaev_128.jpg","rude_128.jpg","ruehldesign_128.jpg","runningskull_128.jpg","russell_baylis_128.jpg","russoedu_128.jpg","ruzinav_128.jpg","rweve_128.jpg","ryandownie_128.jpg","ryanjohnson_me_128.jpg","ryankirkman_128.jpg","ryanmclaughlin_128.jpg","ryhanhassan_128.jpg","ryuchi311_128.jpg","s4f1_128.jpg","saarabpreet_128.jpg","sachacorazzi_128.jpg","sachingawas_128.jpg","safrankov_128.jpg","sainraja_128.jpg","salimianoff_128.jpg","salleedesign_128.jpg","salvafc_128.jpg","samgrover_128.jpg","samihah_128.jpg","samscouto_128.jpg","samuelkraft_128.jpg","sandywoodruff_128.jpg","sangdth_128.jpg","santi_urso_128.jpg","saschadroste_128.jpg","saschamt_128.jpg","sasha_shestakov_128.jpg","saulihirvi_128.jpg","sawalazar_128.jpg","sawrb_128.jpg","sbtransparent_128.jpg","scips_128.jpg","scott_riley_128.jpg","scottfeltham_128.jpg","scottgallant_128.jpg","scottiedude_128.jpg","scottkclark_128.jpg","scrapdnb_128.jpg","sdidonato_128.jpg","sebashton_128.jpg","sementiy_128.jpg","serefka_128.jpg","sergeyalmone_128.jpg","sergeysafonov_128.jpg","sethlouey_128.jpg","seyedhossein1_128.jpg","sgaurav_baghel_128.jpg","shadeed9_128.jpg","shalt0ni_128.jpg","shaneIxD_128.jpg","shanehudson_128.jpg","sharvin_128.jpg","shesgared_128.jpg","shinze_128.jpg","shoaib253_128.jpg","shojberg_128.jpg","shvelo96_128.jpg","silv3rgvn_128.jpg","silvanmuhlemann_128.jpg","simobenso_128.jpg","sindresorhus_128.jpg","sircalebgrove_128.jpg","skkirilov_128.jpg","slowspock_128.jpg","smaczny_128.jpg","smalonso_128.jpg","smenov_128.jpg","snowshade_128.jpg","snowwrite_128.jpg","sokaniwaal_128.jpg","solid_color_128.jpg","souperphly_128.jpg","souuf_128.jpg","sovesove_128.jpg","soyjavi_128.jpg","spacewood__128.jpg","spbroma_128.jpg","spedwig_128.jpg","sprayaga_128.jpg","sreejithexp_128.jpg","ssbb_me_128.jpg","ssiskind_128.jpg","sta1ex_128.jpg","stalewine_128.jpg","stan_128.jpg","stayuber_128.jpg","stefanotirloni_128.jpg","stefanozoffoli_128.jpg","stefooo_128.jpg","stefvdham_128.jpg","stephcoue_128.jpg","sterlingrules_128.jpg","stevedesigner_128.jpg","steynviljoen_128.jpg","strikewan_128.jpg","stushona_128.jpg","sulaqo_128.jpg","sunlandictwin_128.jpg","sunshinedgirl_128.jpg","superoutman_128.jpg","supervova_128.jpg","supjoey_128.jpg","suprb_128.jpg","sur4dye_128.jpg","surgeonist_128.jpg","suribbles_128.jpg","svenlen_128.jpg","swaplord_128.jpg","sweetdelisa_128.jpg","switmer777_128.jpg","swooshycueb_128.jpg","sydlawrence_128.jpg","syropian_128.jpg","tanveerrao_128.jpg","taybenlor_128.jpg","taylorling_128.jpg","tbakdesigns_128.jpg","teddyzetterlund_128.jpg","teeragit_128.jpg","tereshenkov_128.jpg","terpimost_128.jpg","terrorpixel_128.jpg","terryxlife_128.jpg","teylorfeliz_128.jpg","tgerken_128.jpg","tgormtx_128.jpg","thaisselenator__128.jpg","thaodang17_128.jpg","thatonetommy_128.jpg","the_purplebunny_128.jpg","the_winslet_128.jpg","thedamianhdez_128.jpg","thedjpetersen_128.jpg","thehacker_128.jpg","thekevinjones_128.jpg","themadray_128.jpg","themikenagle_128.jpg","themrdave_128.jpg","theonlyzeke_128.jpg","therealmarvin_128.jpg","thewillbeard_128.jpg","thiagovernetti_128.jpg","thibaut_re_128.jpg","thierrykoblentz_128.jpg","thierrymeier__128.jpg","thimo_cz_128.jpg","thinkleft_128.jpg","thomasgeisen_128.jpg","thomasschrijer_128.jpg","timgthomas_128.jpg","timmillwood_128.jpg","timothycd_128.jpg","timpetricola_128.jpg","tjrus_128.jpg","to_soham_128.jpg","tobysaxon_128.jpg","toddrew_128.jpg","tom_even_128.jpg","tomas_janousek_128.jpg","tonymillion_128.jpg","traneblow_128.jpg","travis_arnold_128.jpg","travishines_128.jpg","tristanlegros_128.jpg","trubeatto_128.jpg","trueblood_33_128.jpg","tumski_128.jpg","tur8le_128.jpg","turkutuuli_128.jpg","tweetubhai_128.jpg","twittypork_128.jpg","txcx_128.jpg","uberschizo_128.jpg","ultragex_128.jpg","umurgdk_128.jpg","unterdreht_128.jpg","urrutimeoli_128.jpg","uxalex_128.jpg","uxpiper_128.jpg","uxward_128.jpg","vanchesz_128.jpg","vaughanmoffitt_128.jpg","vc27_128.jpg","vicivadeline_128.jpg","victorDubugras_128.jpg","victor_haydin_128.jpg","victordeanda_128.jpg","victorerixon_128.jpg","victorquinn_128.jpg","victorstuber_128.jpg","vigobronx_128.jpg","vijaykarthik_128.jpg","vikashpathak18_128.jpg","vikasvinfotech_128.jpg","vimarethomas_128.jpg","vinciarts_128.jpg","vitor376_128.jpg","vitorleal_128.jpg","vivekprvr_128.jpg","vj_demien_128.jpg","vladarbatov_128.jpg","vladimirdevic_128.jpg","vladyn_128.jpg","vlajki_128.jpg","vm_f_128.jpg","vocino_128.jpg","vonachoo_128.jpg","vovkasolovev_128.jpg","vytautas_a_128.jpg","waghner_128.jpg","wake_gs_128.jpg","we_social_128.jpg","wearesavas_128.jpg","weavermedia_128.jpg","webtanya_128.jpg","weglov_128.jpg","wegotvices_128.jpg","wesleytrankin_128.jpg","wikiziner_128.jpg","wiljanslofstra_128.jpg","wim1k_128.jpg","wintopia_128.jpg","woodsman001_128.jpg","woodydotmx_128.jpg","wtrsld_128.jpg","xadhix_128.jpg","xalionmalik_128.jpg","xamorep_128.jpg","xiel_128.jpg","xilantra_128.jpg","xravil_128.jpg","xripunov_128.jpg","xtopherpaul_128.jpg","y2graphic_128.jpg","yalozhkin_128.jpg","yassiryahya_128.jpg","yayteejay_128.jpg","yecidsm_128.jpg","yehudab_128.jpg","yesmeck_128.jpg","yigitpinarbasi_128.jpg","zackeeler_128.jpg","zaki3d_128.jpg","zauerkraut_128.jpg","zforrester_128.jpg","zvchkelly_128.jpg"]})(iyn);var G5a=iyn.exports;(function(t){var e={};t.exports=e,e.free_email=H5a,e.example_email=U5a,e.domain_suffix=z5a,e.avatar_uri=G5a})(eyn);var V5a=eyn.exports,ayn={exports:{}},oyn={exports:{}};(function(t){t.exports=["utf8_unicode_ci","utf8_general_ci","utf8_bin","ascii_bin","ascii_general_ci","cp1250_bin","cp1250_general_ci"]})(oyn);var K5a=oyn.exports,syn={exports:{}};(function(t){t.exports=["id","title","name","email","phone","token","group","category","password","comment","avatar","status","createdAt","updatedAt"]})(syn);var W5a=syn.exports,lyn={exports:{}};(function(t){t.exports=["InnoDB","MyISAM","MEMORY","CSV","BLACKHOLE","ARCHIVE"]})(lyn);var Q5a=lyn.exports,cyn={exports:{}};(function(t){t.exports=["int","varchar","text","date","datetime","tinyint","time","timestamp","smallint","mediumint","bigint","decimal","float","double","real","bit","boolean","serial","blob","binary","enum","set","geometry","point"]})(cyn);var q5a=cyn.exports;(function(t){var e={};t.exports=e,e.collation=K5a,e.column=W5a,e.engine=Q5a,e.type=q5a})(ayn);var Y5a=ayn.exports,uyn={exports:{}},dyn={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(dyn);var J5a=dyn.exports,hyn={exports:{}};(function(t){t.exports=["abbas","abduco","abeo","abscido","absconditus","absens","absorbeo","absque","abstergo","absum","abundans","abutor","accedo","accendo","acceptus","accipio","accommodo","accusator","acer","acerbitas","acervus","acidus","acies","acquiro","acsi","adamo","adaugeo","addo","adduco","ademptio","adeo","adeptio","adfectus","adfero","adficio","adflicto","adhaero","adhuc","adicio","adimpleo","adinventitias","adipiscor","adiuvo","administratio","admiratio","admitto","admoneo","admoveo","adnuo","adopto","adsidue","adstringo","adsuesco","adsum","adulatio","adulescens","adultus","aduro","advenio","adversus","advoco","aedificium","aeger","aegre","aegrotatio","aegrus","aeneus","aequitas","aequus","aer","aestas","aestivus","aestus","aetas","aeternus","ager","aggero","aggredior","agnitio","agnosco","ago","ait","aiunt","alienus","alii","alioqui","aliqua","alius","allatus","alo","alter","altus","alveus","amaritudo","ambitus","ambulo","amicitia","amiculum","amissio","amita","amitto","amo","amor","amoveo","amplexus","amplitudo","amplus","ancilla","angelus","angulus","angustus","animadverto","animi","animus","annus","anser","ante","antea","antepono","antiquus","aperio","aperte","apostolus","apparatus","appello","appono","appositus","approbo","apto","aptus","apud","aqua","ara","aranea","arbitro","arbor","arbustum","arca","arceo","arcesso","arcus","argentum","argumentum","arguo","arma","armarium","armo","aro","ars","articulus","artificiose","arto","arx","ascisco","ascit","asper","aspicio","asporto","assentator","astrum","atavus","ater","atqui","atrocitas","atrox","attero","attollo","attonbitus","auctor","auctus","audacia","audax","audentia","audeo","audio","auditor","aufero","aureus","auris","aurum","aut","autem","autus","auxilium","avaritia","avarus","aveho","averto","avoco","baiulus","balbus","barba","bardus","basium","beatus","bellicus","bellum","bene","beneficium","benevolentia","benigne","bestia","bibo","bis","blandior","bonus","bos","brevis","cado","caecus","caelestis","caelum","calamitas","calcar","calco","calculus","callide","campana","candidus","canis","canonicus","canto","capillus","capio","capitulus","capto","caput","carbo","carcer","careo","caries","cariosus","caritas","carmen","carpo","carus","casso","caste","casus","catena","caterva","cattus","cauda","causa","caute","caveo","cavus","cedo","celebrer","celer","celo","cena","cenaculum","ceno","censura","centum","cerno","cernuus","certe","certo","certus","cervus","cetera","charisma","chirographum","cibo","cibus","cicuta","cilicium","cimentarius","ciminatio","cinis","circumvenio","cito","civis","civitas","clam","clamo","claro","clarus","claudeo","claustrum","clementia","clibanus","coadunatio","coaegresco","coepi","coerceo","cogito","cognatus","cognomen","cogo","cohaero","cohibeo","cohors","colligo","colloco","collum","colo","color","coma","combibo","comburo","comedo","comes","cometes","comis","comitatus","commemoro","comminor","commodo","communis","comparo","compello","complectus","compono","comprehendo","comptus","conatus","concedo","concido","conculco","condico","conduco","confero","confido","conforto","confugo","congregatio","conicio","coniecto","conitor","coniuratio","conor","conqueror","conscendo","conservo","considero","conspergo","constans","consuasor","contabesco","contego","contigo","contra","conturbo","conventus","convoco","copia","copiose","cornu","corona","corpus","correptius","corrigo","corroboro","corrumpo","coruscus","cotidie","crapula","cras","crastinus","creator","creber","crebro","credo","creo","creptio","crepusculum","cresco","creta","cribro","crinis","cruciamentum","crudelis","cruentus","crur","crustulum","crux","cubicularis","cubitum","cubo","cui","cuius","culpa","culpo","cultellus","cultura","cum","cunabula","cunae","cunctatio","cupiditas","cupio","cuppedia","cupressus","cur","cura","curatio","curia","curiositas","curis","curo","curriculum","currus","cursim","curso","cursus","curto","curtus","curvo","curvus","custodia","damnatio","damno","dapifer","debeo","debilito","decens","decerno","decet","decimus","decipio","decor","decretum","decumbo","dedecor","dedico","deduco","defaeco","defendo","defero","defessus","defetiscor","deficio","defigo","defleo","defluo","defungo","degenero","degero","degusto","deinde","delectatio","delego","deleo","delibero","delicate","delinquo","deludo","demens","demergo","demitto","demo","demonstro","demoror","demulceo","demum","denego","denique","dens","denuncio","denuo","deorsum","depereo","depono","depopulo","deporto","depraedor","deprecator","deprimo","depromo","depulso","deputo","derelinquo","derideo","deripio","desidero","desino","desipio","desolo","desparatus","despecto","despirmatio","infit","inflammatio","paens","patior","patria","patrocinor","patruus","pauci","paulatim","pauper","pax","peccatus","pecco","pecto","pectus","pecunia","pecus","peior","pel","ocer","socius","sodalitas","sol","soleo","solio","solitudo","solium","sollers","sollicito","solum","solus","solutio","solvo","somniculosus","somnus","sonitus","sono","sophismata","sopor","sordeo","sortitus","spargo","speciosus","spectaculum","speculum","sperno","spero","spes","spiculum","spiritus","spoliatio","sponte","stabilis","statim","statua","stella","stillicidium","stipes","stips","sto","strenuus","strues","studio","stultus","suadeo","suasoria","sub","subito","subiungo","sublime","subnecto","subseco","substantia","subvenio","succedo","succurro","sufficio","suffoco","suffragium","suggero","sui","sulum","sum","summa","summisse","summopere","sumo","sumptus","supellex","super","suppellex","supplanto","suppono","supra","surculus","surgo","sursum","suscipio","suspendo","sustineo","suus","synagoga","tabella","tabernus","tabesco","tabgo","tabula","taceo","tactus","taedium","talio","talis","talus","tam","tamdiu","tamen","tametsi","tamisium","tamquam","tandem","tantillus","tantum","tardus","tego","temeritas","temperantia","templum","temptatio","tempus","tenax","tendo","teneo","tener","tenuis","tenus","tepesco","tepidus","ter","terebro","teres","terga","tergeo","tergiversatio","tergo","tergum","termes","terminatio","tero","terra","terreo","territo","terror","tersus","tertius","testimonium","texo","textilis","textor","textus","thalassinus","theatrum","theca","thema","theologus","thermae","thesaurus","thesis","thorax","thymbra","thymum","tibi","timidus","timor","titulus","tolero","tollo","tondeo","tonsor","torqueo","torrens","tot","totidem","toties","totus","tracto","trado","traho","trans","tredecim","tremo","trepide","tres","tribuo","tricesimus","triduana","triginta","tripudio","tristis","triumphus","trucido","truculenter","tubineus","tui","tum","tumultus","tunc","turba","turbo","turpe","turpis","tutamen","tutis","tyrannus","uberrime","ubi","ulciscor","ullus","ulterius","ultio","ultra","umbra","umerus","umquam","una","unde","undique","universe","unus","urbanus","urbs","uredo","usitas","usque","ustilo","ustulo","usus","uter","uterque","utilis","utique","utor","utpote","utrimque","utroque","utrum","uxor","vaco","vacuus","vado","vae","valde","valens","valeo","valetudo","validus","vallum","vapulus","varietas","varius","vehemens","vel","velociter","velum","velut","venia","venio","ventito","ventosus","ventus","venustas","ver","verbera","verbum","vere","verecundia","vereor","vergo","veritas","vero","versus","verto","verumtamen","verus","vesco","vesica","vesper","vespillo","vester","vestigium","vestrum","vetus","via","vicinus","vicissitudo","victoria","victus","videlicet","video","viduata","viduo","vigilo","vigor","vilicus","vilis","vilitas","villa","vinco","vinculum","vindico","vinitor","vinum","vir","virga","virgo","viridis","viriliter","virtus","vis","viscus","vita","vitiosus","vitium","vito","vivo","vix","vobis","vociferor","voco","volaticus","volo","volubilis","voluntarius","volup","volutabrum","volva","vomer","vomica","vomito","vorago","vorax","voro","vos","votum","voveo","vox","vulariter","vulgaris","vulgivagus","vulgo","vulgus","vulnero","vulnus","vulpes","vulticulus","vultuosus","xiphias"]})(hyn);var Z5a=hyn.exports;(function(t){var e={};t.exports=e,e.words=J5a,e.supplemental=Z5a})(uyn);var X5a=uyn.exports,fyn={exports:{}},pyn={exports:{}};(function(t){t.exports=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric","Stephen","Andrew","Raymond","Gregory","Joshua","Jerry","Dennis","Walter","Patrick","Peter","Harold","Douglas","Henry","Carl","Arthur","Ryan","Roger","Joe","Juan","Jack","Albert","Jonathan","Justin","Terry","Gerald","Keith","Samuel","Willie","Ralph","Lawrence","Nicholas","Roy","Benjamin","Bruce","Brandon","Adam","Harry","Fred","Wayne","Billy","Steve","Louis","Jeremy","Aaron","Randy","Howard","Eugene","Carlos","Russell","Bobby","Victor","Martin","Ernest","Phillip","Todd","Jesse","Craig","Alan","Shawn","Clarence","Sean","Philip","Chris","Johnny","Earl","Jimmy","Antonio","Danny","Bryan","Tony","Luis","Mike","Stanley","Leonard","Nathan","Dale","Manuel","Rodney","Curtis","Norman","Allen","Marvin","Vincent","Glenn","Jeffery","Travis","Jeff","Chad","Jacob","Lee","Melvin","Alfred","Kyle","Francis","Bradley","Jesus","Herbert","Frederick","Ray","Joel","Edwin","Don","Eddie","Ricky","Troy","Randall","Barry","Alexander","Bernard","Mario","Leroy","Francisco","Marcus","Micheal","Theodore","Clifford","Miguel","Oscar","Jay","Jim","Tom","Calvin","Alex","Jon","Ronnie","Bill","Lloyd","Tommy","Leon","Derek","Warren","Darrell","Jerome","Floyd","Leo","Alvin","Tim","Wesley","Gordon","Dean","Greg","Jorge","Dustin","Pedro","Derrick","Dan","Lewis","Zachary","Corey","Herman","Maurice","Vernon","Roberto","Clyde","Glen","Hector","Shane","Ricardo","Sam","Rick","Lester","Brent","Ramon","Charlie","Tyler","Gilbert","Gene","Marc","Reginald","Ruben","Brett","Angel","Nathaniel","Rafael","Leslie","Edgar","Milton","Raul","Ben","Chester","Cecil","Duane","Franklin","Andre","Elmer","Brad","Gabriel","Ron","Mitchell","Roland","Arnold","Harvey","Jared","Adrian","Karl","Cory","Claude","Erik","Darryl","Jamie","Neil","Jessie","Christian","Javier","Fernando","Clinton","Ted","Mathew","Tyrone","Darren","Lonnie","Lance","Cody","Julio","Kelly","Kurt","Allan","Nelson","Guy","Clayton","Hugh","Max","Dwayne","Dwight","Armando","Felix","Jimmie","Everett","Jordan","Ian","Wallace","Ken","Bob","Jaime","Casey","Alfredo","Alberto","Dave","Ivan","Johnnie","Sidney","Byron","Julian","Isaac","Morris","Clifton","Willard","Daryl","Ross","Virgil","Andy","Marshall","Salvador","Perry","Kirk","Sergio","Marion","Tracy","Seth","Kent","Terrance","Rene","Eduardo","Terrence","Enrique","Freddie","Wade","Austin","Stuart","Fredrick","Arturo","Alejandro","Jackie","Joey","Nick","Luther","Wendell","Jeremiah","Evan","Julius","Dana","Donnie","Otis","Shannon","Trevor","Oliver","Luke","Homer","Gerard","Doug","Kenny","Hubert","Angelo","Shaun","Lyle","Matt","Lynn","Alfonso","Orlando","Rex","Carlton","Ernesto","Cameron","Neal","Pablo","Lorenzo","Omar","Wilbur","Blake","Grant","Horace","Roderick","Kerry","Abraham","Willis","Rickey","Jean","Ira","Andres","Cesar","Johnathan","Malcolm","Rudolph","Damon","Kelvin","Rudy","Preston","Alton","Archie","Marco","Wm","Pete","Randolph","Garry","Geoffrey","Jonathon","Felipe","Bennie","Gerardo","Ed","Dominic","Robin","Loren","Delbert","Colin","Guillermo","Earnest","Lucas","Benny","Noel","Spencer","Rodolfo","Myron","Edmund","Garrett","Salvatore","Cedric","Lowell","Gregg","Sherman","Wilson","Devin","Sylvester","Kim","Roosevelt","Israel","Jermaine","Forrest","Wilbert","Leland","Simon","Guadalupe","Clark","Irving","Carroll","Bryant","Owen","Rufus","Woodrow","Sammy","Kristopher","Mack","Levi","Marcos","Gustavo","Jake","Lionel","Marty","Taylor","Ellis","Dallas","Gilberto","Clint","Nicolas","Laurence","Ismael","Orville","Drew","Jody","Ervin","Dewey","Al","Wilfred","Josh","Hugo","Ignacio","Caleb","Tomas","Sheldon","Erick","Frankie","Stewart","Doyle","Darrel","Rogelio","Terence","Santiago","Alonzo","Elias","Bert","Elbert","Ramiro","Conrad","Pat","Noah","Grady","Phil","Cornelius","Lamar","Rolando","Clay","Percy","Dexter","Bradford","Merle","Darin","Amos","Terrell","Moses","Irvin","Saul","Roman","Darnell","Randal","Tommie","Timmy","Darrin","Winston","Brendan","Toby","Van","Abel","Dominick","Boyd","Courtney","Jan","Emilio","Elijah","Cary","Domingo","Santos","Aubrey","Emmett","Marlon","Emanuel","Jerald","Edmond"]})(pyn);var ePa=pyn.exports,myn={exports:{}};(function(t){t.exports=["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna","Rebecca","Virginia","Kathleen","Pamela","Martha","Debra","Amanda","Stephanie","Carolyn","Christine","Marie","Janet","Catherine","Frances","Ann","Joyce","Diane","Alice","Julie","Heather","Teresa","Doris","Gloria","Evelyn","Jean","Cheryl","Mildred","Katherine","Joan","Ashley","Judith","Rose","Janice","Kelly","Nicole","Judy","Christina","Kathy","Theresa","Beverly","Denise","Tammy","Irene","Jane","Lori","Rachel","Marilyn","Andrea","Kathryn","Louise","Sara","Anne","Jacqueline","Wanda","Bonnie","Julia","Ruby","Lois","Tina","Phyllis","Norma","Paula","Diana","Annie","Lillian","Emily","Robin","Peggy","Crystal","Gladys","Rita","Dawn","Connie","Florence","Tracy","Edna","Tiffany","Carmen","Rosa","Cindy","Grace","Wendy","Victoria","Edith","Kim","Sherry","Sylvia","Josephine","Thelma","Shannon","Sheila","Ethel","Ellen","Elaine","Marjorie","Carrie","Charlotte","Monica","Esther","Pauline","Emma","Juanita","Anita","Rhonda","Hazel","Amber","Eva","Debbie","April","Leslie","Clara","Lucille","Jamie","Joanne","Eleanor","Valerie","Danielle","Megan","Alicia","Suzanne","Michele","Gail","Bertha","Darlene","Veronica","Jill","Erin","Geraldine","Lauren","Cathy","Joann","Lorraine","Lynn","Sally","Regina","Erica","Beatrice","Dolores","Bernice","Audrey","Yvonne","Annette","June","Samantha","Marion","Dana","Stacy","Ana","Renee","Ida","Vivian","Roberta","Holly","Brittany","Melanie","Loretta","Yolanda","Jeanette","Laurie","Katie","Kristen","Vanessa","Alma","Sue","Elsie","Beth","Jeanne","Vicki","Carla","Tara","Rosemary","Eileen","Terri","Gertrude","Lucy","Tonya","Ella","Stacey","Wilma","Gina","Kristin","Jessie","Natalie","Agnes","Vera","Willie","Charlene","Bessie","Delores","Melinda","Pearl","Arlene","Maureen","Colleen","Allison","Tamara","Joy","Georgia","Constance","Lillie","Claudia","Jackie","Marcia","Tanya","Nellie","Minnie","Marlene","Heidi","Glenda","Lydia","Viola","Courtney","Marian","Stella","Caroline","Dora","Jo","Vickie","Mattie","Terry","Maxine","Irma","Mabel","Marsha","Myrtle","Lena","Christy","Deanna","Patsy","Hilda","Gwendolyn","Jennie","Nora","Margie","Nina","Cassandra","Leah","Penny","Kay","Priscilla","Naomi","Carole","Brandy","Olga","Billie","Dianne","Tracey","Leona","Jenny","Felicia","Sonia","Miriam","Velma","Becky","Bobbie","Violet","Kristina","Toni","Misty","Mae","Shelly","Daisy","Ramona","Sherri","Erika","Katrina","Claire","Lindsey","Lindsay","Geneva","Guadalupe","Belinda","Margarita","Sheryl","Cora","Faye","Ada","Natasha","Sabrina","Isabel","Marguerite","Hattie","Harriet","Molly","Cecilia","Kristi","Brandi","Blanche","Sandy","Rosie","Joanna","Iris","Eunice","Angie","Inez","Lynda","Madeline","Amelia","Alberta","Genevieve","Monique","Jodi","Janie","Maggie","Kayla","Sonya","Jan","Lee","Kristine","Candace","Fannie","Maryann","Opal","Alison","Yvette","Melody","Luz","Susie","Olivia","Flora","Shelley","Kristy","Mamie","Lula","Lola","Verna","Beulah","Antoinette","Candice","Juana","Jeannette","Pam","Kelli","Hannah","Whitney","Bridget","Karla","Celia","Latoya","Patty","Shelia","Gayle","Della","Vicky","Lynne","Sheri","Marianne","Kara","Jacquelyn","Erma","Blanca","Myra","Leticia","Pat","Krista","Roxanne","Angelica","Johnnie","Robyn","Francis","Adrienne","Rosalie","Alexandra","Brooke","Bethany","Sadie","Bernadette","Traci","Jody","Kendra","Jasmine","Nichole","Rachael","Chelsea","Mable","Ernestine","Muriel","Marcella","Elena","Krystal","Angelina","Nadine","Kari","Estelle","Dianna","Paulette","Lora","Mona","Doreen","Rosemarie","Angel","Desiree","Antonia","Hope","Ginger","Janis","Betsy","Christie","Freda","Mercedes","Meredith","Lynette","Teri","Cristina","Eula","Leigh","Meghan","Sophia","Eloise","Rochelle","Gretchen","Cecelia","Raquel","Henrietta","Alyssa","Jana","Kelley","Gwen","Kerry","Jenna","Tricia","Laverne","Olive","Alexis","Tasha","Silvia","Elvira","Casey","Delia","Sophie","Kate","Patti","Lorena","Kellie","Sonja","Lila","Lana","Darla","May","Mindy","Essie","Mandy","Lorene","Elsa","Josefina","Jeannie","Miranda","Dixie","Lucia","Marta","Faith","Lela","Johanna","Shari","Camille","Tami","Shawna","Elisa","Ebony","Melba","Ora","Nettie","Tabitha","Ollie","Jaime","Winifred","Kristie"]})(myn);var tPa=myn.exports,gyn={exports:{}};(function(t){t.exports=["Aaliyah","Aaron","Abagail","Abbey","Abbie","Abbigail","Abby","Abdiel","Abdul","Abdullah","Abe","Abel","Abelardo","Abigail","Abigale","Abigayle","Abner","Abraham","Ada","Adah","Adalberto","Adaline","Adam","Adan","Addie","Addison","Adela","Adelbert","Adele","Adelia","Adeline","Adell","Adella","Adelle","Aditya","Adolf","Adolfo","Adolph","Adolphus","Adonis","Adrain","Adrian","Adriana","Adrianna","Adriel","Adrien","Adrienne","Afton","Aglae","Agnes","Agustin","Agustina","Ahmad","Ahmed","Aida","Aidan","Aiden","Aileen","Aimee","Aisha","Aiyana","Akeem","Al","Alaina","Alan","Alana","Alanis","Alanna","Alayna","Alba","Albert","Alberta","Albertha","Alberto","Albin","Albina","Alda","Alden","Alec","Aleen","Alejandra","Alejandrin","Alek","Alena","Alene","Alessandra","Alessandro","Alessia","Aletha","Alex","Alexa","Alexander","Alexandra","Alexandre","Alexandrea","Alexandria","Alexandrine","Alexandro","Alexane","Alexanne","Alexie","Alexis","Alexys","Alexzander","Alf","Alfonso","Alfonzo","Alford","Alfred","Alfreda","Alfredo","Ali","Alia","Alice","Alicia","Alisa","Alisha","Alison","Alivia","Aliya","Aliyah","Aliza","Alize","Allan","Allen","Allene","Allie","Allison","Ally","Alphonso","Alta","Althea","Alva","Alvah","Alvena","Alvera","Alverta","Alvina","Alvis","Alyce","Alycia","Alysa","Alysha","Alyson","Alysson","Amalia","Amanda","Amani","Amara","Amari","Amaya","Amber","Ambrose","Amelia","Amelie","Amely","America","Americo","Amie","Amina","Amir","Amira","Amiya","Amos","Amparo","Amy","Amya","Ana","Anabel","Anabelle","Anahi","Anais","Anastacio","Anastasia","Anderson","Andre","Andreane","Andreanne","Andres","Andrew","Andy","Angel","Angela","Angelica","Angelina","Angeline","Angelita","Angelo","Angie","Angus","Anibal","Anika","Anissa","Anita","Aniya","Aniyah","Anjali","Anna","Annabel","Annabell","Annabelle","Annalise","Annamae","Annamarie","Anne","Annetta","Annette","Annie","Ansel","Ansley","Anthony","Antoinette","Antone","Antonetta","Antonette","Antonia","Antonietta","Antonina","Antonio","Antwan","Antwon","Anya","April","Ara","Araceli","Aracely","Arch","Archibald","Ardella","Arden","Ardith","Arely","Ari","Ariane","Arianna","Aric","Ariel","Arielle","Arjun","Arlene","Arlie","Arlo","Armand","Armando","Armani","Arnaldo","Arne","Arno","Arnold","Arnoldo","Arnulfo","Aron","Art","Arthur","Arturo","Arvel","Arvid","Arvilla","Aryanna","Asa","Asha","Ashlee","Ashleigh","Ashley","Ashly","Ashlynn","Ashton","Ashtyn","Asia","Assunta","Astrid","Athena","Aubree","Aubrey","Audie","Audra","Audreanne","Audrey","August","Augusta","Augustine","Augustus","Aurelia","Aurelie","Aurelio","Aurore","Austen","Austin","Austyn","Autumn","Ava","Avery","Avis","Axel","Ayana","Ayden","Ayla","Aylin","Baby","Bailee","Bailey","Barbara","Barney","Baron","Barrett","Barry","Bart","Bartholome","Barton","Baylee","Beatrice","Beau","Beaulah","Bell","Bella","Belle","Ben","Benedict","Benjamin","Bennett","Bennie","Benny","Benton","Berenice","Bernadette","Bernadine","Bernard","Bernardo","Berneice","Bernhard","Bernice","Bernie","Berniece","Bernita","Berry","Bert","Berta","Bertha","Bertram","Bertrand","Beryl","Bessie","Beth","Bethany","Bethel","Betsy","Bette","Bettie","Betty","Bettye","Beulah","Beverly","Bianka","Bill","Billie","Billy","Birdie","Blair","Blaise","Blake","Blanca","Blanche","Blaze","Bo","Bobbie","Bobby","Bonita","Bonnie","Boris","Boyd","Brad","Braden","Bradford","Bradley","Bradly","Brady","Braeden","Brain","Brandi","Brando","Brandon","Brandt","Brandy","Brandyn","Brannon","Branson","Brant","Braulio","Braxton","Brayan","Breana","Breanna","Breanne","Brenda","Brendan","Brenden","Brendon","Brenna","Brennan","Brennon","Brent","Bret","Brett","Bria","Brian","Briana","Brianne","Brice","Bridget","Bridgette","Bridie","Brielle","Brigitte","Brionna","Brisa","Britney","Brittany","Brock","Broderick","Brody","Brook","Brooke","Brooklyn","Brooks","Brown","Bruce","Bryana","Bryce","Brycen","Bryon","Buck","Bud","Buddy","Buford","Bulah","Burdette","Burley","Burnice","Buster","Cade","Caden","Caesar","Caitlyn","Cale","Caleb","Caleigh","Cali","Calista","Callie","Camden","Cameron","Camila","Camilla","Camille","Camren","Camron","Camryn","Camylle","Candace","Candelario","Candice","Candida","Candido","Cara","Carey","Carissa","Carlee","Carleton","Carley","Carli","Carlie","Carlo","Carlos","Carlotta","Carmel","Carmela","Carmella","Carmelo","Carmen","Carmine","Carol","Carolanne","Carole","Carolina","Caroline","Carolyn","Carolyne","Carrie","Carroll","Carson","Carter","Cary","Casandra","Casey","Casimer","Casimir","Casper","Cassandra","Cassandre","Cassidy","Cassie","Catalina","Caterina","Catharine","Catherine","Cathrine","Cathryn","Cathy","Cayla","Ceasar","Cecelia","Cecil","Cecile","Cecilia","Cedrick","Celestine","Celestino","Celia","Celine","Cesar","Chad","Chadd","Chadrick","Chaim","Chance","Chandler","Chanel","Chanelle","Charity","Charlene","Charles","Charley","Charlie","Charlotte","Chase","Chasity","Chauncey","Chaya","Chaz","Chelsea","Chelsey","Chelsie","Chesley","Chester","Chet","Cheyanne","Cheyenne","Chloe","Chris","Christ","Christa","Christelle","Christian","Christiana","Christina","Christine","Christop","Christophe","Christopher","Christy","Chyna","Ciara","Cicero","Cielo","Cierra","Cindy","Citlalli","Clair","Claire","Clara","Clarabelle","Clare","Clarissa","Clark","Claud","Claude","Claudia","Claudie","Claudine","Clay","Clemens","Clement","Clementina","Clementine","Clemmie","Cleo","Cleora","Cleta","Cletus","Cleve","Cleveland","Clifford","Clifton","Clint","Clinton","Clotilde","Clovis","Cloyd","Clyde","Coby","Cody","Colby","Cole","Coleman","Colin","Colleen","Collin","Colt","Colten","Colton","Columbus","Concepcion","Conner","Connie","Connor","Conor","Conrad","Constance","Constantin","Consuelo","Cooper","Cora","Coralie","Corbin","Cordelia","Cordell","Cordia","Cordie","Corene","Corine","Cornelius","Cornell","Corrine","Cortez","Cortney","Cory","Coty","Courtney","Coy","Craig","Crawford","Creola","Cristal","Cristian","Cristina","Cristobal","Cristopher","Cruz","Crystal","Crystel","Cullen","Curt","Curtis","Cydney","Cynthia","Cyril","Cyrus","Dagmar","Dahlia","Daija","Daisha","Daisy","Dakota","Dale","Dallas","Dallin","Dalton","Damaris","Dameon","Damian","Damien","Damion","Damon","Dan","Dana","Dandre","Dane","D'angelo","Dangelo","Danial","Daniela","Daniella","Danielle","Danika","Dannie","Danny","Dante","Danyka","Daphne","Daphnee","Daphney","Darby","Daren","Darian","Dariana","Darien","Dario","Darion","Darius","Darlene","Daron","Darrel","Darrell","Darren","Darrick","Darrin","Darrion","Darron","Darryl","Darwin","Daryl","Dashawn","Dasia","Dave","David","Davin","Davion","Davon","Davonte","Dawn","Dawson","Dax","Dayana","Dayna","Dayne","Dayton","Dean","Deangelo","Deanna","Deborah","Declan","Dedric","Dedrick","Dee","Deion","Deja","Dejah","Dejon","Dejuan","Delaney","Delbert","Delfina","Delia","Delilah","Dell","Della","Delmer","Delores","Delpha","Delphia","Delphine","Delta","Demarco","Demarcus","Demario","Demetris","Demetrius","Demond","Dena","Denis","Dennis","Deon","Deondre","Deontae","Deonte","Dereck","Derek","Derick","Deron","Derrick","Deshaun","Deshawn","Desiree","Desmond","Dessie","Destany","Destin","Destinee","Destiney","Destini","Destiny","Devan","Devante","Deven","Devin","Devon","Devonte","Devyn","Dewayne","Dewitt","Dexter","Diamond","Diana","Dianna","Diego","Dillan","Dillon","Dimitri","Dina","Dino","Dion","Dixie","Dock","Dolly","Dolores","Domenic","Domenica","Domenick","Domenico","Domingo","Dominic","Dominique","Don","Donald","Donato","Donavon","Donna","Donnell","Donnie","Donny","Dora","Dorcas","Dorian","Doris","Dorothea","Dorothy","Dorris","Dortha","Dorthy","Doug","Douglas","Dovie","Doyle","Drake","Drew","Duane","Dudley","Dulce","Duncan","Durward","Dustin","Dusty","Dwight","Dylan","Earl","Earlene","Earline","Earnest","Earnestine","Easter","Easton","Ebba","Ebony","Ed","Eda","Edd","Eddie","Eden","Edgar","Edgardo","Edison","Edmond","Edmund","Edna","Eduardo","Edward","Edwardo","Edwin","Edwina","Edyth","Edythe","Effie","Efrain","Efren","Eileen","Einar","Eino","Eladio","Elaina","Elbert","Elda","Eldon","Eldora","Eldred","Eldridge","Eleanora","Eleanore","Eleazar","Electa","Elena","Elenor","Elenora","Eleonore","Elfrieda","Eli","Elian","Eliane","Elias","Eliezer","Elijah","Elinor","Elinore","Elisa","Elisabeth","Elise","Eliseo","Elisha","Elissa","Eliza","Elizabeth","Ella","Ellen","Ellie","Elliot","Elliott","Ellis","Ellsworth","Elmer","Elmira","Elmo","Elmore","Elna","Elnora","Elody","Eloisa","Eloise","Elouise","Eloy","Elroy","Elsa","Else","Elsie","Elta","Elton","Elva","Elvera","Elvie","Elvis","Elwin","Elwyn","Elyse","Elyssa","Elza","Emanuel","Emelia","Emelie","Emely","Emerald","Emerson","Emery","Emie","Emil","Emile","Emilia","Emiliano","Emilie","Emilio","Emily","Emma","Emmalee","Emmanuel","Emmanuelle","Emmet","Emmett","Emmie","Emmitt","Emmy","Emory","Ena","Enid","Enoch","Enola","Enos","Enrico","Enrique","Ephraim","Era","Eriberto","Eric","Erica","Erich","Erick","Ericka","Erik","Erika","Erin","Erling","Erna","Ernest","Ernestina","Ernestine","Ernesto","Ernie","Ervin","Erwin","Eryn","Esmeralda","Esperanza","Esta","Esteban","Estefania","Estel","Estell","Estella","Estelle","Estevan","Esther","Estrella","Etha","Ethan","Ethel","Ethelyn","Ethyl","Ettie","Eudora","Eugene","Eugenia","Eula","Eulah","Eulalia","Euna","Eunice","Eusebio","Eva","Evalyn","Evan","Evangeline","Evans","Eve","Eveline","Evelyn","Everardo","Everett","Everette","Evert","Evie","Ewald","Ewell","Ezekiel","Ezequiel","Ezra","Fabian","Fabiola","Fae","Fannie","Fanny","Fatima","Faustino","Fausto","Favian","Fay","Faye","Federico","Felicia","Felicita","Felicity","Felipa","Felipe","Felix","Felton","Fermin","Fern","Fernando","Ferne","Fidel","Filiberto","Filomena","Finn","Fiona","Flavie","Flavio","Fleta","Fletcher","Flo","Florence","Florencio","Florian","Florida","Florine","Flossie","Floy","Floyd","Ford","Forest","Forrest","Foster","Frances","Francesca","Francesco","Francis","Francisca","Francisco","Franco","Frank","Frankie","Franz","Fred","Freda","Freddie","Freddy","Frederic","Frederick","Frederik","Frederique","Fredrick","Fredy","Freeda","Freeman","Freida","Frida","Frieda","Friedrich","Fritz","Furman","Gabe","Gabriel","Gabriella","Gabrielle","Gaetano","Gage","Gail","Gardner","Garett","Garfield","Garland","Garnet","Garnett","Garret","Garrett","Garrick","Garrison","Garry","Garth","Gaston","Gavin","Gay","Gayle","Gaylord","Gene","General","Genesis","Genevieve","Gennaro","Genoveva","Geo","Geoffrey","George","Georgette","Georgiana","Georgianna","Geovanni","Geovanny","Geovany","Gerald","Geraldine","Gerard","Gerardo","Gerda","Gerhard","Germaine","German","Gerry","Gerson","Gertrude","Gia","Gianni","Gideon","Gilbert","Gilberto","Gilda","Giles","Gillian","Gina","Gino","Giovani","Giovanna","Giovanni","Giovanny","Gisselle","Giuseppe","Gladyce","Gladys","Glen","Glenda","Glenna","Glennie","Gloria","Godfrey","Golda","Golden","Gonzalo","Gordon","Grace","Gracie","Graciela","Grady","Graham","Grant","Granville","Grayce","Grayson","Green","Greg","Gregg","Gregoria","Gregorio","Gregory","Greta","Gretchen","Greyson","Griffin","Grover","Guadalupe","Gudrun","Guido","Guillermo","Guiseppe","Gunnar","Gunner","Gus","Gussie","Gust","Gustave","Guy","Gwen","Gwendolyn","Hadley","Hailee","Hailey","Hailie","Hal","Haleigh","Haley","Halie","Halle","Hallie","Hank","Hanna","Hannah","Hans","Hardy","Harley","Harmon","Harmony","Harold","Harrison","Harry","Harvey","Haskell","Hassan","Hassie","Hattie","Haven","Hayden","Haylee","Hayley","Haylie","Hazel","Hazle","Heath","Heather","Heaven","Heber","Hector","Heidi","Helen","Helena","Helene","Helga","Hellen","Helmer","Heloise","Henderson","Henri","Henriette","Henry","Herbert","Herman","Hermann","Hermina","Herminia","Herminio","Hershel","Herta","Hertha","Hester","Hettie","Hilario","Hilbert","Hilda","Hildegard","Hillard","Hillary","Hilma","Hilton","Hipolito","Hiram","Hobart","Holden","Hollie","Hollis","Holly","Hope","Horace","Horacio","Hortense","Hosea","Houston","Howard","Howell","Hoyt","Hubert","Hudson","Hugh","Hulda","Humberto","Hunter","Hyman","Ian","Ibrahim","Icie","Ida","Idell","Idella","Ignacio","Ignatius","Ike","Ila","Ilene","Iliana","Ima","Imani","Imelda","Immanuel","Imogene","Ines","Irma","Irving","Irwin","Isaac","Isabel","Isabell","Isabella","Isabelle","Isac","Isadore","Isai","Isaiah","Isaias","Isidro","Ismael","Isobel","Isom","Israel","Issac","Itzel","Iva","Ivah","Ivory","Ivy","Izabella","Izaiah","Jabari","Jace","Jacey","Jacinthe","Jacinto","Jack","Jackeline","Jackie","Jacklyn","Jackson","Jacky","Jaclyn","Jacquelyn","Jacques","Jacynthe","Jada","Jade","Jaden","Jadon","Jadyn","Jaeden","Jaida","Jaiden","Jailyn","Jaime","Jairo","Jakayla","Jake","Jakob","Jaleel","Jalen","Jalon","Jalyn","Jamaal","Jamal","Jamar","Jamarcus","Jamel","Jameson","Jamey","Jamie","Jamil","Jamir","Jamison","Jammie","Jan","Jana","Janae","Jane","Janelle","Janessa","Janet","Janice","Janick","Janie","Janis","Janiya","Jannie","Jany","Jaquan","Jaquelin","Jaqueline","Jared","Jaren","Jarod","Jaron","Jarred","Jarrell","Jarret","Jarrett","Jarrod","Jarvis","Jasen","Jasmin","Jason","Jasper","Jaunita","Javier","Javon","Javonte","Jay","Jayce","Jaycee","Jayda","Jayde","Jayden","Jaydon","Jaylan","Jaylen","Jaylin","Jaylon","Jayme","Jayne","Jayson","Jazlyn","Jazmin","Jazmyn","Jazmyne","Jean","Jeanette","Jeanie","Jeanne","Jed","Jedediah","Jedidiah","Jeff","Jefferey","Jeffery","Jeffrey","Jeffry","Jena","Jenifer","Jennie","Jennifer","Jennings","Jennyfer","Jensen","Jerad","Jerald","Jeramie","Jeramy","Jerel","Jeremie","Jeremy","Jermain","Jermaine","Jermey","Jerod","Jerome","Jeromy","Jerrell","Jerrod","Jerrold","Jerry","Jess","Jesse","Jessica","Jessie","Jessika","Jessy","Jessyca","Jesus","Jett","Jettie","Jevon","Jewel","Jewell","Jillian","Jimmie","Jimmy","Jo","Joan","Joana","Joanie","Joanne","Joannie","Joanny","Joany","Joaquin","Jocelyn","Jodie","Jody","Joe","Joel","Joelle","Joesph","Joey","Johan","Johann","Johanna","Johathan","John","Johnathan","Johnathon","Johnnie","Johnny","Johnpaul","Johnson","Jolie","Jon","Jonas","Jonatan","Jonathan","Jonathon","Jordan","Jordane","Jordi","Jordon","Jordy","Jordyn","Jorge","Jose","Josefa","Josefina","Joseph","Josephine","Josh","Joshua","Joshuah","Josiah","Josiane","Josianne","Josie","Josue","Jovan","Jovani","Jovanny","Jovany","Joy","Joyce","Juana","Juanita","Judah","Judd","Jude","Judge","Judson","Judy","Jules","Julia","Julian","Juliana","Julianne","Julie","Julien","Juliet","Julio","Julius","June","Junior","Junius","Justen","Justice","Justina","Justine","Juston","Justus","Justyn","Juvenal","Juwan","Kacey","Kaci","Kacie","Kade","Kaden","Kadin","Kaela","Kaelyn","Kaia","Kailee","Kailey","Kailyn","Kaitlin","Kaitlyn","Kale","Kaleb","Kaleigh","Kaley","Kali","Kallie","Kameron","Kamille","Kamren","Kamron","Kamryn","Kane","Kara","Kareem","Karelle","Karen","Kari","Kariane","Karianne","Karina","Karine","Karl","Karlee","Karley","Karli","Karlie","Karolann","Karson","Kasandra","Kasey","Kassandra","Katarina","Katelin","Katelyn","Katelynn","Katharina","Katherine","Katheryn","Kathleen","Kathlyn","Kathryn","Kathryne","Katlyn","Katlynn","Katrina","Katrine","Kattie","Kavon","Kay","Kaya","Kaycee","Kayden","Kayla","Kaylah","Kaylee","Kayleigh","Kayley","Kayli","Kaylie","Kaylin","Keagan","Keanu","Keara","Keaton","Keegan","Keeley","Keely","Keenan","Keira","Keith","Kellen","Kelley","Kelli","Kellie","Kelly","Kelsi","Kelsie","Kelton","Kelvin","Ken","Kendall","Kendra","Kendrick","Kenna","Kennedi","Kennedy","Kenneth","Kennith","Kenny","Kenton","Kenya","Kenyatta","Kenyon","Keon","Keshaun","Keshawn","Keven","Kevin","Kevon","Keyon","Keyshawn","Khalid","Khalil","Kian","Kiana","Kianna","Kiara","Kiarra","Kiel","Kiera","Kieran","Kiley","Kim","Kimberly","King","Kip","Kira","Kirk","Kirsten","Kirstin","Kitty","Kobe","Koby","Kody","Kolby","Kole","Korbin","Korey","Kory","Kraig","Kris","Krista","Kristian","Kristin","Kristina","Kristofer","Kristoffer","Kristopher","Kristy","Krystal","Krystel","Krystina","Kurt","Kurtis","Kyla","Kyle","Kylee","Kyleigh","Kyler","Kylie","Kyra","Lacey","Lacy","Ladarius","Lafayette","Laila","Laisha","Lamar","Lambert","Lamont","Lance","Landen","Lane","Laney","Larissa","Laron","Larry","Larue","Laura","Laurel","Lauren","Laurence","Lauretta","Lauriane","Laurianne","Laurie","Laurine","Laury","Lauryn","Lavada","Lavern","Laverna","Laverne","Lavina","Lavinia","Lavon","Lavonne","Lawrence","Lawson","Layla","Layne","Lazaro","Lea","Leann","Leanna","Leanne","Leatha","Leda","Lee","Leif","Leila","Leilani","Lela","Lelah","Leland","Lelia","Lempi","Lemuel","Lenna","Lennie","Lenny","Lenora","Lenore","Leo","Leola","Leon","Leonard","Leonardo","Leone","Leonel","Leonie","Leonor","Leonora","Leopold","Leopoldo","Leora","Lera","Lesley","Leslie","Lesly","Lessie","Lester","Leta","Letha","Letitia","Levi","Lew","Lewis","Lexi","Lexie","Lexus","Lia","Liam","Liana","Libbie","Libby","Lila","Lilian","Liliana","Liliane","Lilla","Lillian","Lilliana","Lillie","Lilly","Lily","Lilyan","Lina","Lincoln","Linda","Lindsay","Lindsey","Linnea","Linnie","Linwood","Lionel","Lisa","Lisandro","Lisette","Litzy","Liza","Lizeth","Lizzie","Llewellyn","Lloyd","Logan","Lois","Lola","Lolita","Loma","Lon","London","Lonie","Lonnie","Lonny","Lonzo","Lora","Loraine","Loren","Lorena","Lorenz","Lorenza","Lorenzo","Lori","Lorine","Lorna","Lottie","Lou","Louie","Louisa","Lourdes","Louvenia","Lowell","Loy","Loyal","Loyce","Lucas","Luciano","Lucie","Lucienne","Lucile","Lucinda","Lucio","Lucious","Lucius","Lucy","Ludie","Ludwig","Lue","Luella","Luigi","Luis","Luisa","Lukas","Lula","Lulu","Luna","Lupe","Lura","Lurline","Luther","Luz","Lyda","Lydia","Lyla","Lynn","Lyric","Lysanne","Mabel","Mabelle","Mable","Mac","Macey","Maci","Macie","Mack","Mackenzie","Macy","Madaline","Madalyn","Maddison","Madeline","Madelyn","Madelynn","Madge","Madie","Madilyn","Madisen","Madison","Madisyn","Madonna","Madyson","Mae","Maegan","Maeve","Mafalda","Magali","Magdalen","Magdalena","Maggie","Magnolia","Magnus","Maia","Maida","Maiya","Major","Makayla","Makenna","Makenzie","Malachi","Malcolm","Malika","Malinda","Mallie","Mallory","Malvina","Mandy","Manley","Manuel","Manuela","Mara","Marc","Marcel","Marcelina","Marcelino","Marcella","Marcelle","Marcellus","Marcelo","Marcia","Marco","Marcos","Marcus","Margaret","Margarete","Margarett","Margaretta","Margarette","Margarita","Marge","Margie","Margot","Margret","Marguerite","Maria","Mariah","Mariam","Marian","Mariana","Mariane","Marianna","Marianne","Mariano","Maribel","Marie","Mariela","Marielle","Marietta","Marilie","Marilou","Marilyne","Marina","Mario","Marion","Marisa","Marisol","Maritza","Marjolaine","Marjorie","Marjory","Mark","Markus","Marlee","Marlen","Marlene","Marley","Marlin","Marlon","Marques","Marquis","Marquise","Marshall","Marta","Martin","Martina","Martine","Marty","Marvin","Mary","Maryam","Maryjane","Maryse","Mason","Mateo","Mathew","Mathias","Mathilde","Matilda","Matilde","Matt","Matteo","Mattie","Maud","Maude","Maudie","Maureen","Maurice","Mauricio","Maurine","Maverick","Mavis","Max","Maxie","Maxime","Maximilian","Maximillia","Maximillian","Maximo","Maximus","Maxine","Maxwell","May","Maya","Maybell","Maybelle","Maye","Maymie","Maynard","Mayra","Mazie","Mckayla","Mckenna","Mckenzie","Meagan","Meaghan","Meda","Megane","Meggie","Meghan","Mekhi","Melany","Melba","Melisa","Melissa","Mellie","Melody","Melvin","Melvina","Melyna","Melyssa","Mercedes","Meredith","Merl","Merle","Merlin","Merritt","Mertie","Mervin","Meta","Mia","Micaela","Micah","Michael","Michaela","Michale","Micheal","Michel","Michele","Michelle","Miguel","Mikayla","Mike","Mikel","Milan","Miles","Milford","Miller","Millie","Milo","Milton","Mina","Minerva","Minnie","Miracle","Mireille","Mireya","Misael","Missouri","Misty","Mitchel","Mitchell","Mittie","Modesta","Modesto","Mohamed","Mohammad","Mohammed","Moises","Mollie","Molly","Mona","Monica","Monique","Monroe","Monserrat","Monserrate","Montana","Monte","Monty","Morgan","Moriah","Morris","Mortimer","Morton","Mose","Moses","Moshe","Mossie","Mozell","Mozelle","Muhammad","Muriel","Murl","Murphy","Murray","Mustafa","Mya","Myah","Mylene","Myles","Myra","Myriam","Myrl","Myrna","Myron","Myrtice","Myrtie","Myrtis","Myrtle","Nadia","Nakia","Name","Nannie","Naomi","Naomie","Napoleon","Narciso","Nash","Nasir","Nat","Natalia","Natalie","Natasha","Nathan","Nathanael","Nathanial","Nathaniel","Nathen","Nayeli","Neal","Ned","Nedra","Neha","Neil","Nelda","Nella","Nelle","Nellie","Nels","Nelson","Neoma","Nestor","Nettie","Neva","Newell","Newton","Nia","Nicholas","Nicholaus","Nichole","Nick","Nicklaus","Nickolas","Nico","Nicola","Nicolas","Nicole","Nicolette","Nigel","Nikita","Nikki","Nikko","Niko","Nikolas","Nils","Nina","Noah","Noble","Noe","Noel","Noelia","Noemi","Noemie","Noemy","Nola","Nolan","Nona","Nora","Norbert","Norberto","Norene","Norma","Norris","Norval","Norwood","Nova","Novella","Nya","Nyah","Nyasia","Obie","Oceane","Ocie","Octavia","Oda","Odell","Odessa","Odie","Ofelia","Okey","Ola","Olaf","Ole","Olen","Oleta","Olga","Olin","Oliver","Ollie","Oma","Omari","Omer","Ona","Onie","Opal","Ophelia","Ora","Oral","Oran","Oren","Orie","Orin","Orion","Orland","Orlando","Orlo","Orpha","Orrin","Orval","Orville","Osbaldo","Osborne","Oscar","Osvaldo","Oswald","Oswaldo","Otha","Otho","Otilia","Otis","Ottilie","Ottis","Otto","Ova","Owen","Ozella","Pablo","Paige","Palma","Pamela","Pansy","Paolo","Paris","Parker","Pascale","Pasquale","Pat","Patience","Patricia","Patrick","Patsy","Pattie","Paul","Paula","Pauline","Paxton","Payton","Pearl","Pearlie","Pearline","Pedro","Peggie","Penelope","Percival","Percy","Perry","Pete","Peter","Petra","Peyton","Philip","Phoebe","Phyllis","Pierce","Pierre","Pietro","Pink","Pinkie","Piper","Polly","Porter","Precious","Presley","Preston","Price","Prince","Princess","Priscilla","Providenci","Prudence","Queen","Queenie","Quentin","Quincy","Quinn","Quinten","Quinton","Rachael","Rachel","Rachelle","Rae","Raegan","Rafael","Rafaela","Raheem","Rahsaan","Rahul","Raina","Raleigh","Ralph","Ramiro","Ramon","Ramona","Randal","Randall","Randi","Randy","Ransom","Raoul","Raphael","Raphaelle","Raquel","Rashad","Rashawn","Rasheed","Raul","Raven","Ray","Raymond","Raymundo","Reagan","Reanna","Reba","Rebeca","Rebecca","Rebeka","Rebekah","Reece","Reed","Reese","Regan","Reggie","Reginald","Reid","Reilly","Reina","Reinhold","Remington","Rene","Renee","Ressie","Reta","Retha","Retta","Reuben","Reva","Rex","Rey","Reyes","Reymundo","Reyna","Reynold","Rhea","Rhett","Rhianna","Rhiannon","Rhoda","Ricardo","Richard","Richie","Richmond","Rick","Rickey","Rickie","Ricky","Rico","Rigoberto","Riley","Rita","River","Robb","Robbie","Robert","Roberta","Roberto","Robin","Robyn","Rocio","Rocky","Rod","Roderick","Rodger","Rodolfo","Rodrick","Rodrigo","Roel","Rogelio","Roger","Rogers","Rolando","Rollin","Roma","Romaine","Roman","Ron","Ronaldo","Ronny","Roosevelt","Rory","Rosa","Rosalee","Rosalia","Rosalind","Rosalinda","Rosalyn","Rosamond","Rosanna","Rosario","Roscoe","Rose","Rosella","Roselyn","Rosemarie","Rosemary","Rosendo","Rosetta","Rosie","Rosina","Roslyn","Ross","Rossie","Rowan","Rowena","Rowland","Roxane","Roxanne","Roy","Royal","Royce","Rozella","Ruben","Rubie","Ruby","Rubye","Rudolph","Rudy","Rupert","Russ","Russel","Russell","Rusty","Ruth","Ruthe","Ruthie","Ryan","Ryann","Ryder","Rylan","Rylee","Ryleigh","Ryley","Sabina","Sabrina","Sabryna","Sadie","Sadye","Sage","Saige","Sallie","Sally","Salma","Salvador","Salvatore","Sam","Samanta","Samantha","Samara","Samir","Sammie","Sammy","Samson","Sandra","Sandrine","Sandy","Sanford","Santa","Santiago","Santina","Santino","Santos","Sarah","Sarai","Sarina","Sasha","Saul","Savanah","Savanna","Savannah","Savion","Scarlett","Schuyler","Scot","Scottie","Scotty","Seamus","Sean","Sebastian","Sedrick","Selena","Selina","Selmer","Serena","Serenity","Seth","Shad","Shaina","Shakira","Shana","Shane","Shanel","Shanelle","Shania","Shanie","Shaniya","Shanna","Shannon","Shanny","Shanon","Shany","Sharon","Shaun","Shawn","Shawna","Shaylee","Shayna","Shayne","Shea","Sheila","Sheldon","Shemar","Sheridan","Sherman","Sherwood","Shirley","Shyann","Shyanne","Sibyl","Sid","Sidney","Sienna","Sierra","Sigmund","Sigrid","Sigurd","Silas","Sim","Simeon","Simone","Sincere","Sister","Skye","Skyla","Skylar","Sofia","Soledad","Solon","Sonia","Sonny","Sonya","Sophia","Sophie","Spencer","Stacey","Stacy","Stan","Stanford","Stanley","Stanton","Stefan","Stefanie","Stella","Stephan","Stephania","Stephanie","Stephany","Stephen","Stephon","Sterling","Steve","Stevie","Stewart","Stone","Stuart","Summer","Sunny","Susan","Susana","Susanna","Susie","Suzanne","Sven","Syble","Sydnee","Sydney","Sydni","Sydnie","Sylvan","Sylvester","Sylvia","Tabitha","Tad","Talia","Talon","Tamara","Tamia","Tania","Tanner","Tanya","Tara","Taryn","Tate","Tatum","Tatyana","Taurean","Tavares","Taya","Taylor","Teagan","Ted","Telly","Terence","Teresa","Terrance","Terrell","Terrence","Terrill","Terry","Tess","Tessie","Tevin","Thad","Thaddeus","Thalia","Thea","Thelma","Theo","Theodora","Theodore","Theresa","Therese","Theresia","Theron","Thomas","Thora","Thurman","Tia","Tiana","Tianna","Tiara","Tierra","Tiffany","Tillman","Timmothy","Timmy","Timothy","Tina","Tito","Titus","Tobin","Toby","Tod","Tom","Tomas","Tomasa","Tommie","Toney","Toni","Tony","Torey","Torrance","Torrey","Toy","Trace","Tracey","Tracy","Travis","Travon","Tre","Tremaine","Tremayne","Trent","Trenton","Tressa","Tressie","Treva","Trever","Trevion","Trevor","Trey","Trinity","Trisha","Tristian","Tristin","Triston","Troy","Trudie","Trycia","Trystan","Turner","Twila","Tyler","Tyra","Tyree","Tyreek","Tyrel","Tyrell","Tyrese","Tyrique","Tyshawn","Tyson","Ubaldo","Ulices","Ulises","Una","Unique","Urban","Uriah","Uriel","Ursula","Vada","Valentin","Valentina","Valentine","Valerie","Vallie","Van","Vance","Vanessa","Vaughn","Veda","Velda","Vella","Velma","Velva","Vena","Verda","Verdie","Vergie","Verla","Verlie","Vern","Verna","Verner","Vernice","Vernie","Vernon","Verona","Veronica","Vesta","Vicenta","Vicente","Vickie","Vicky","Victor","Victoria","Vida","Vidal","Vilma","Vince","Vincent","Vincenza","Vincenzo","Vinnie","Viola","Violet","Violette","Virgie","Virgil","Virginia","Virginie","Vita","Vito","Viva","Vivian","Viviane","Vivianne","Vivien","Vivienne","Vladimir","Wade","Waino","Waldo","Walker","Wallace","Walter","Walton","Wanda","Ward","Warren","Watson","Wava","Waylon","Wayne","Webster","Weldon","Wellington","Wendell","Wendy","Werner","Westley","Weston","Whitney","Wilber","Wilbert","Wilburn","Wiley","Wilford","Wilfred","Wilfredo","Wilfrid","Wilhelm","Wilhelmine","Will","Willa","Willard","William","Willie","Willis","Willow","Willy","Wilma","Wilmer","Wilson","Wilton","Winfield","Winifred","Winnifred","Winona","Winston","Woodrow","Wyatt","Wyman","Xander","Xavier","Xzavier","Yadira","Yasmeen","Yasmin","Yasmine","Yazmin","Yesenia","Yessenia","Yolanda","Yoshiko","Yvette","Yvonne","Zachariah","Zachary","Zachery","Zack","Zackary","Zackery","Zakary","Zander","Zane","Zaria","Zechariah","Zelda","Zella","Zelma","Zena","Zetta","Zion","Zita","Zoe","Zoey","Zoie","Zoila","Zola","Zora","Zula"]})(gyn);var nPa=gyn.exports,vyn={exports:{}};(function(t){t.exports=["Abbott","Abernathy","Abshire","Adams","Altenwerth","Anderson","Ankunding","Armstrong","Auer","Aufderhar","Bahringer","Bailey","Balistreri","Barrows","Bartell","Bartoletti","Barton","Bashirian","Batz","Bauch","Baumbach","Bayer","Beahan","Beatty","Bechtelar","Becker","Bednar","Beer","Beier","Berge","Bergnaum","Bergstrom","Bernhard","Bernier","Bins","Blanda","Blick","Block","Bode","Boehm","Bogan","Bogisich","Borer","Bosco","Botsford","Boyer","Boyle","Bradtke","Brakus","Braun","Breitenberg","Brekke","Brown","Bruen","Buckridge","Carroll","Carter","Cartwright","Casper","Cassin","Champlin","Christiansen","Cole","Collier","Collins","Conn","Connelly","Conroy","Considine","Corkery","Cormier","Corwin","Cremin","Crist","Crona","Cronin","Crooks","Cruickshank","Cummerata","Cummings","Dach","D'Amore","Daniel","Dare","Daugherty","Davis","Deckow","Denesik","Dibbert","Dickens","Dicki","Dickinson","Dietrich","Donnelly","Dooley","Douglas","Doyle","DuBuque","Durgan","Ebert","Effertz","Emard","Emmerich","Erdman","Ernser","Fadel","Fahey","Farrell","Fay","Feeney","Feest","Feil","Ferry","Fisher","Flatley","Frami","Franecki","Friesen","Fritsch","Funk","Gaylord","Gerhold","Gerlach","Gibson","Gislason","Gleason","Gleichner","Glover","Goldner","Goodwin","Gorczany","Gottlieb","Goyette","Grady","Graham","Grant","Green","Greenfelder","Greenholt","Grimes","Gulgowski","Gusikowski","Gutkowski","Gutmann","Haag","Hackett","Hagenes","Hahn","Haley","Halvorson","Hamill","Hammes","Hand","Hane","Hansen","Harber","Harris","Hartmann","Harvey","Hauck","Hayes","Heaney","Heathcote","Hegmann","Heidenreich","Heller","Herman","Hermann","Hermiston","Herzog","Hessel","Hettinger","Hickle","Hilll","Hills","Hilpert","Hintz","Hirthe","Hodkiewicz","Hoeger","Homenick","Hoppe","Howe","Howell","Hudson","Huel","Huels","Hyatt","Jacobi","Jacobs","Jacobson","Jakubowski","Jaskolski","Jast","Jenkins","Jerde","Johns","Johnson","Johnston","Jones","Kassulke","Kautzer","Keebler","Keeling","Kemmer","Kerluke","Kertzmann","Kessler","Kiehn","Kihn","Kilback","King","Kirlin","Klein","Kling","Klocko","Koch","Koelpin","Koepp","Kohler","Konopelski","Koss","Kovacek","Kozey","Krajcik","Kreiger","Kris","Kshlerin","Kub","Kuhic","Kuhlman","Kuhn","Kulas","Kunde","Kunze","Kuphal","Kutch","Kuvalis","Labadie","Lakin","Lang","Langosh","Langworth","Larkin","Larson","Leannon","Lebsack","Ledner","Leffler","Legros","Lehner","Lemke","Lesch","Leuschke","Lind","Lindgren","Littel","Little","Lockman","Lowe","Lubowitz","Lueilwitz","Luettgen","Lynch","Macejkovic","MacGyver","Maggio","Mann","Mante","Marks","Marquardt","Marvin","Mayer","Mayert","McClure","McCullough","McDermott","McGlynn","McKenzie","McLaughlin","Medhurst","Mertz","Metz","Miller","Mills","Mitchell","Moen","Mohr","Monahan","Moore","Morar","Morissette","Mosciski","Mraz","Mueller","Muller","Murazik","Murphy","Murray","Nader","Nicolas","Nienow","Nikolaus","Nitzsche","Nolan","Oberbrunner","O'Connell","O'Conner","O'Hara","O'Keefe","O'Kon","Okuneva","Olson","Ondricka","O'Reilly","Orn","Ortiz","Osinski","Pacocha","Padberg","Pagac","Parisian","Parker","Paucek","Pfannerstill","Pfeffer","Pollich","Pouros","Powlowski","Predovic","Price","Prohaska","Prosacco","Purdy","Quigley","Quitzon","Rath","Ratke","Rau","Raynor","Reichel","Reichert","Reilly","Reinger","Rempel","Renner","Reynolds","Rice","Rippin","Ritchie","Robel","Roberts","Rodriguez","Rogahn","Rohan","Rolfson","Romaguera","Roob","Rosenbaum","Rowe","Ruecker","Runolfsdottir","Runolfsson","Runte","Russel","Rutherford","Ryan","Sanford","Satterfield","Sauer","Sawayn","Schaden","Schaefer","Schamberger","Schiller","Schimmel","Schinner","Schmeler","Schmidt","Schmitt","Schneider","Schoen","Schowalter","Schroeder","Schulist","Schultz","Schumm","Schuppe","Schuster","Senger","Shanahan","Shields","Simonis","Sipes","Skiles","Smith","Smitham","Spencer","Spinka","Sporer","Stamm","Stanton","Stark","Stehr","Steuber","Stiedemann","Stokes","Stoltenberg","Stracke","Streich","Stroman","Strosin","Swaniawski","Swift","Terry","Thiel","Thompson","Tillman","Torp","Torphy","Towne","Toy","Trantow","Tremblay","Treutel","Tromp","Turcotte","Turner","Ullrich","Upton","Vandervort","Veum","Volkman","Von","VonRueden","Waelchi","Walker","Walsh","Walter","Ward","Waters","Watsica","Weber","Wehner","Weimann","Weissnat","Welch","West","White","Wiegand","Wilderman","Wilkinson","Will","Williamson","Willms","Windler","Wintheiser","Wisoky","Wisozk","Witting","Wiza","Wolf","Wolff","Wuckert","Wunsch","Wyman","Yost","Yundt","Zboncak","Zemlak","Ziemann","Zieme","Zulauf"]})(vyn);var rPa=vyn.exports,Ayn={exports:{}};(function(t){t.exports=["Female","Male"]})(Ayn);var iPa=Ayn.exports,yyn={exports:{}};(function(t){t.exports=["Asexual","Female to male trans man","Female to male transgender man","Female to male transsexual man","F2M","Gender neutral","Hermaphrodite","Intersex man","Intersex person","Intersex woman","Male to female trans woman","Male to female transgender woman","Male to female transsexual woman","Man","M2F","Polygender","T* man","T* woman","Two* person","Two-spirit person","Woman","Agender","Androgyne","Androgynes","Androgynous","Bigender","Cis","Cis Female","Cis Male","Cis Man","Cis Woman","Cisgender","Cisgender Female","Cisgender Male","Cisgender Man","Cisgender Woman","Female to Male","FTM","Gender Fluid","Gender Nonconforming","Gender Questioning","Gender Variant","Genderqueer","Intersex","Male to Female","MTF","Neither","Neutrois","Non-binary","Other","Pangender","Trans","Trans Female","Trans Male","Trans Man","Trans Person","Trans*Female","Trans*Male","Trans*Man","Trans*Person","Trans*Woman","Transexual","Transexual Female","Transexual Male","Transexual Man","Transexual Person","Transexual Woman","Transgender Female","Transgender Person","Transmasculine","Two-spirit"]})(yyn);var aPa=yyn.exports,byn={exports:{}};(function(t){t.exports=["Mr.","Mrs.","Ms.","Miss","Dr."]})(byn);var oPa=byn.exports,xyn={exports:{}};(function(t){t.exports=["Jr.","Sr.","I","II","III","IV","V","MD","DDS","PhD","DVM"]})(xyn);var sPa=xyn.exports,Eyn={exports:{}};(function(t){t.exports={descriptor:["Lead","Senior","Direct","Corporate","Dynamic","Future","Product","National","Regional","District","Central","Global","Customer","Investor","Dynamic","International","Legacy","Forward","Internal","Human","Chief","Principal"],level:["Solutions","Program","Brand","Security","Research","Marketing","Directives","Implementation","Integration","Functionality","Response","Paradigm","Tactics","Identity","Markets","Group","Division","Applications","Optimization","Operations","Infrastructure","Intranet","Communications","Web","Branding","Quality","Assurance","Mobility","Accounts","Data","Creative","Configuration","Accountability","Interactions","Factors","Usability","Metrics"],job:["Supervisor","Associate","Executive","Liaison","Officer","Manager","Engineer","Specialist","Director","Coordinator","Administrator","Architect","Analyst","Designer","Planner","Orchestrator","Technician","Developer","Producer","Consultant","Assistant","Facilitator","Agent","Representative","Strategist"]}})(Eyn);var lPa=Eyn.exports,Syn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name} #{suffix}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(Syn);var cPa=Syn.exports;(function(t){var e={};t.exports=e,e.male_first_name=ePa,e.female_first_name=tPa,e.first_name=nPa,e.last_name=rPa,e.binary_gender=iPa,e.gender=aPa,e.prefix=oPa,e.suffix=sPa,e.title=lPa,e.name=cPa})(fyn);var uPa=fyn.exports,wyn={exports:{}},_yn={exports:{}};(function(t){t.exports=["!##-!##-####","(!##) !##-####","1-!##-!##-####","!##.!##.####","!##-!##-####","(!##) !##-####","1-!##-!##-####","!##.!##.####","!##-!##-#### x###","(!##) !##-#### x###","1-!##-!##-#### x###","!##.!##.#### x###","!##-!##-#### x####","(!##) !##-#### x####","1-!##-!##-#### x####","!##.!##.#### x####","!##-!##-#### x#####","(!##) !##-#### x#####","1-!##-!##-#### x#####","!##.!##.#### x#####"]})(_yn);var dPa=_yn.exports;(function(t){var e={};t.exports=e,e.formats=dPa})(wyn);var hPa=wyn.exports,Tyn={exports:{}},Cyn={exports:{}};(function(t){t.exports=["###-###-####","(###) ###-####","1-###-###-####","###.###.####"]})(Cyn);var fPa=Cyn.exports;(function(t){var e={};t.exports=e,e.formats=fPa})(Tyn);var pPa=Tyn.exports,kyn={exports:{}},Ryn={exports:{}};(function(t){t.exports=["1234-2121-1221-1211","1212-1221-1121-1234","1211-1221-1234-2201","1228-1221-1221-1431"]})(Ryn);var mPa=Ryn.exports,Myn={exports:{}};(function(t){t.exports=["2011-10-12","2012-11-12","2015-11-11","2013-9-12"]})(Myn);var gPa=Myn.exports,Nyn={exports:{}};(function(t){t.exports=["visa","mastercard","americanexpress","discover"]})(Nyn);var vPa=Nyn.exports;(function(t){var e={};t.exports=e,e.credit_card_numbers=mPa,e.credit_card_expiry_dates=gPa,e.credit_card_types=vPa})(kyn);var APa=kyn.exports,Iyn={exports:{}},Pyn={exports:{}};(function(t){t.exports=["red","green","blue","yellow","purple","mint green","teal","white","black","orange","pink","grey","maroon","violet","turquoise","tan","sky blue","salmon","plum","orchid","olive","magenta","lime","ivory","indigo","gold","fuchsia","cyan","azure","lavender","silver"]})(Pyn);var yPa=Pyn.exports,Oyn={exports:{}};(function(t){t.exports=["Books","Movies","Music","Games","Electronics","Computers","Home","Garden","Tools","Grocery","Health","Beauty","Toys","Kids","Baby","Clothing","Shoes","Jewelery","Sports","Outdoors","Automotive","Industrial"]})(Oyn);var bPa=Oyn.exports,Lyn={exports:{}};(function(t){t.exports={adjective:["Small","Ergonomic","Rustic","Intelligent","Gorgeous","Incredible","Fantastic","Practical","Sleek","Awesome","Generic","Handcrafted","Handmade","Licensed","Refined","Unbranded","Tasty"],material:["Steel","Wooden","Concrete","Plastic","Cotton","Granite","Rubber","Metal","Soft","Fresh","Frozen"],product:["Chair","Car","Computer","Keyboard","Mouse","Bike","Ball","Gloves","Pants","Shirt","Table","Shoes","Hat","Towels","Soap","Tuna","Chicken","Fish","Cheese","Bacon","Pizza","Salad","Sausages","Chips"]}})(Lyn);var xPa=Lyn.exports,Byn={exports:{}};(function(t){t.exports=["Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support","The automobile layout consists of a front-engine design, with transaxle-type transmissions mounted at the rear of the engine and four wheel drive","New ABC 13 9370, 13.3, 5th Gen CoreA5-8250U, 8GB RAM, 256GB SSD, power UHD Graphics, OS 10 Home, OS Office A & J 2016","The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality","The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design","The Nagasaki Lander is the trademarked name of several series of Nagasaki sport bikes, that started with the 1984 ABC800J","The Football Is Good For Training And Recreational Purposes","Carbonite web goalkeeper gloves are ergonomically designed to give easy fit","Boston's most advanced compression wear technology increases muscle oxygenation, stabilizes active muscles","New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart","The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients","Andy shoes are designed to keeping in mind durability as well as trends, the most stylish range of shoes & sandals"]})(Byn);var EPa=Byn.exports;(function(t){var e={};t.exports=e,e.color=yPa,e.department=bPa,e.product_name=xPa,e.product_description=EPa})(Iyn);var SPa=Iyn.exports,Dyn={exports:{}},$yn={exports:{}};(function(t){t.exports=["ants","bats","bears","bees","birds","buffalo","cats","chickens","cattle","dogs","dolphins","ducks","elephants","fishes","foxes","frogs","geese","goats","horses","kangaroos","lions","monkeys","owls","oxen","penguins","people","pigs","rabbits","sheep","tigers","whales","wolves","zebras","banshees","crows","black cats","chimeras","ghosts","conspirators","dragons","dwarves","elves","enchanters","exorcists","sons","foes","giants","gnomes","goblins","gooses","griffins","lycanthropes","nemesis","ogres","oracles","prophets","sorcerors","spiders","spirits","vampires","warlocks","vixens","werewolves","witches","worshipers","zombies","druids"]})($yn);var wPa=$yn.exports,Fyn={exports:{}};(function(t){t.exports=["#{Address.state} #{creature}"]})(Fyn);var _Pa=Fyn.exports;(function(t){var e={};t.exports=e,e.creature=wPa,e.name=_Pa})(Dyn);var TPa=Dyn.exports,jyn={exports:{}},Hyn={exports:{}};(function(t){t.exports=["TCP","HTTP","SDD","RAM","GB","CSS","SSL","AGP","SQL","FTP","PCI","AI","ADP","RSS","XML","EXE","COM","HDD","THX","SMTP","SMS","USB","PNG","SAS","IB","SCSI","JSON","XSS","JBOD"]})(Hyn);var CPa=Hyn.exports,Uyn={exports:{}};(function(t){t.exports=["auxiliary","primary","back-end","digital","open-source","virtual","cross-platform","redundant","online","haptic","multi-byte","bluetooth","wireless","1080p","neural","optical","solid state","mobile"]})(Uyn);var kPa=Uyn.exports,zyn={exports:{}};(function(t){t.exports=["driver","protocol","bandwidth","panel","microchip","program","port","card","array","interface","system","sensor","firewall","hard drive","pixel","alarm","feed","monitor","application","transmitter","bus","circuit","capacitor","matrix"]})(zyn);var RPa=zyn.exports,Gyn={exports:{}};(function(t){t.exports=["back up","bypass","hack","override","compress","copy","navigate","index","connect","generate","quantify","calculate","synthesize","input","transmit","program","reboot","parse"]})(Gyn);var MPa=Gyn.exports,Vyn={exports:{}};(function(t){t.exports=["backing up","bypassing","hacking","overriding","compressing","copying","navigating","indexing","connecting","generating","quantifying","calculating","synthesizing","transmitting","programming","parsing"]})(Vyn);var NPa=Vyn.exports,Kyn={exports:{}};(function(t){t.exports=["If we {{verb}} the {{noun}}, we can get to the {{abbreviation}} {{noun}} through the {{adjective}} {{abbreviation}} {{noun}}!","We need to {{verb}} the {{adjective}} {{abbreviation}} {{noun}}!","Try to {{verb}} the {{abbreviation}} {{noun}}, maybe it will {{verb}} the {{adjective}} {{noun}}!","You can't {{verb}} the {{noun}} without {{ingverb}} the {{adjective}} {{abbreviation}} {{noun}}!","Use the {{adjective}} {{abbreviation}} {{noun}}, then you can {{verb}} the {{adjective}} {{noun}}!","The {{abbreviation}} {{noun}} is down, {{verb}} the {{adjective}} {{noun}} so we can {{verb}} the {{abbreviation}} {{noun}}!","{{ingverb}} the {{noun}} won't do anything, we need to {{verb}} the {{adjective}} {{abbreviation}} {{noun}}!","I'll {{verb}} the {{adjective}} {{abbreviation}} {{noun}}, that should {{noun}} the {{abbreviation}} {{noun}}!"]})(Kyn);var IPa=Kyn.exports;(function(t){var e={};t.exports=e,e.abbreviation=CPa,e.adjective=kPa,e.noun=RPa,e.verb=MPa,e.ingverb=NPa,e.phrase=IPa})(jyn);var PPa=jyn.exports,Wyn={exports:{}},Qyn={exports:{}};(function(t){t.exports=["Redhold","Treeflex","Trippledex","Kanlam","Bigtax","Daltfresh","Toughjoyfax","Mat Lam Tam","Otcom","Tres-Zap","Y-Solowarm","Tresom","Voltsillam","Biodex","Greenlam","Viva","Matsoft","Temp","Zoolab","Subin","Rank","Job","Stringtough","Tin","It","Home Ing","Zamit","Sonsing","Konklab","Alpha","Latlux","Voyatouch","Alphazap","Holdlamis","Zaam-Dox","Sub-Ex","Quo Lux","Bamity","Ventosanzap","Lotstring","Hatity","Tempsoft","Overhold","Fixflex","Konklux","Zontrax","Tampflex","Span","Namfix","Transcof","Stim","Fix San","Sonair","Stronghold","Fintone","Y-find","Opela","Lotlux","Ronstring","Zathin","Duobam","Keylex"]})(Qyn);var OPa=Qyn.exports,qyn={exports:{}};(function(t){t.exports=["0.#.#","0.##","#.##","#.#","#.#.#"]})(qyn);var LPa=qyn.exports,Yyn={exports:{}};(function(t){t.exports=["#{Name.name}","#{Company.name}"]})(Yyn);var BPa=Yyn.exports;(function(t){var e={};t.exports=e,e.name=OPa,e.version=LPa,e.author=BPa})(Wyn);var DPa=Wyn.exports,Jyn={exports:{}},Zyn={exports:{}};(function(t){t.exports=["Checking","Savings","Money Market","Investment","Home Loan","Credit Card","Auto Loan","Personal Loan"]})(Zyn);var $Pa=Zyn.exports,Xyn={exports:{}};(function(t){t.exports=["deposit","withdrawal","payment","invoice"]})(Xyn);var FPa=Xyn.exports,ebn={exports:{}};(function(t){t.exports={"UAE Dirham":{code:"AED",symbol:""},Afghani:{code:"AFN",symbol:"؋"},Lek:{code:"ALL",symbol:"Lek"},"Armenian Dram":{code:"AMD",symbol:""},"Netherlands Antillian Guilder":{code:"ANG",symbol:"ƒ"},Kwanza:{code:"AOA",symbol:""},"Argentine Peso":{code:"ARS",symbol:"$"},"Australian Dollar":{code:"AUD",symbol:"$"},"Aruban Guilder":{code:"AWG",symbol:"ƒ"},"Azerbaijanian Manat":{code:"AZN",symbol:"ман"},"Convertible Marks":{code:"BAM",symbol:"KM"},"Barbados Dollar":{code:"BBD",symbol:"$"},Taka:{code:"BDT",symbol:""},"Bulgarian Lev":{code:"BGN",symbol:"лв"},"Bahraini Dinar":{code:"BHD",symbol:""},"Burundi Franc":{code:"BIF",symbol:""},"Bermudian Dollar (customarily known as Bermuda Dollar)":{code:"BMD",symbol:"$"},"Brunei Dollar":{code:"BND",symbol:"$"},"Boliviano boliviano":{code:"BOB",symbol:"Bs"},"Brazilian Real":{code:"BRL",symbol:"R$"},"Bahamian Dollar":{code:"BSD",symbol:"$"},Pula:{code:"BWP",symbol:"P"},"Belarussian Ruble":{code:"BYR",symbol:"p."},"Belize Dollar":{code:"BZD",symbol:"BZ$"},"Canadian Dollar":{code:"CAD",symbol:"$"},"Congolese Franc":{code:"CDF",symbol:""},"Swiss Franc":{code:"CHF",symbol:"CHF"},"Chilean Peso":{code:"CLP",symbol:"$"},"Yuan Renminbi":{code:"CNY",symbol:"¥"},"Colombian Peso":{code:"COP",symbol:"$"},"Costa Rican Colon":{code:"CRC",symbol:"₡"},"Cuban Peso":{code:"CUP",symbol:"₱"},"Cuban Peso Convertible":{code:"CUC",symbol:"$"},"Cape Verde Escudo":{code:"CVE",symbol:""},"Czech Koruna":{code:"CZK",symbol:"Kč"},"Djibouti Franc":{code:"DJF",symbol:""},"Danish Krone":{code:"DKK",symbol:"kr"},"Dominican Peso":{code:"DOP",symbol:"RD$"},"Algerian Dinar":{code:"DZD",symbol:""},Kroon:{code:"EEK",symbol:""},"Egyptian Pound":{code:"EGP",symbol:"£"},Nakfa:{code:"ERN",symbol:""},"Ethiopian Birr":{code:"ETB",symbol:""},Euro:{code:"EUR",symbol:"€"},"Fiji Dollar":{code:"FJD",symbol:"$"},"Falkland Islands Pound":{code:"FKP",symbol:"£"},"Pound Sterling":{code:"GBP",symbol:"£"},Lari:{code:"GEL",symbol:""},Cedi:{code:"GHS",symbol:""},"Gibraltar Pound":{code:"GIP",symbol:"£"},Dalasi:{code:"GMD",symbol:""},"Guinea Franc":{code:"GNF",symbol:""},Quetzal:{code:"GTQ",symbol:"Q"},"Guyana Dollar":{code:"GYD",symbol:"$"},"Hong Kong Dollar":{code:"HKD",symbol:"$"},Lempira:{code:"HNL",symbol:"L"},"Croatian Kuna":{code:"HRK",symbol:"kn"},Gourde:{code:"HTG",symbol:""},Forint:{code:"HUF",symbol:"Ft"},Rupiah:{code:"IDR",symbol:"Rp"},"New Israeli Sheqel":{code:"ILS",symbol:"₪"},"Bhutanese Ngultrum":{code:"BTN",symbol:"Nu"},"Indian Rupee":{code:"INR",symbol:"₹"},"Iraqi Dinar":{code:"IQD",symbol:""},"Iranian Rial":{code:"IRR",symbol:"﷼"},"Iceland Krona":{code:"ISK",symbol:"kr"},"Jamaican Dollar":{code:"JMD",symbol:"J$"},"Jordanian Dinar":{code:"JOD",symbol:""},Yen:{code:"JPY",symbol:"¥"},"Kenyan Shilling":{code:"KES",symbol:""},Som:{code:"KGS",symbol:"лв"},Riel:{code:"KHR",symbol:"៛"},"Comoro Franc":{code:"KMF",symbol:""},"North Korean Won":{code:"KPW",symbol:"₩"},Won:{code:"KRW",symbol:"₩"},"Kuwaiti Dinar":{code:"KWD",symbol:""},"Cayman Islands Dollar":{code:"KYD",symbol:"$"},Tenge:{code:"KZT",symbol:"лв"},Kip:{code:"LAK",symbol:"₭"},"Lebanese Pound":{code:"LBP",symbol:"£"},"Sri Lanka Rupee":{code:"LKR",symbol:"₨"},"Liberian Dollar":{code:"LRD",symbol:"$"},"Lithuanian Litas":{code:"LTL",symbol:"Lt"},"Latvian Lats":{code:"LVL",symbol:"Ls"},"Libyan Dinar":{code:"LYD",symbol:""},"Moroccan Dirham":{code:"MAD",symbol:""},"Moldovan Leu":{code:"MDL",symbol:""},"Malagasy Ariary":{code:"MGA",symbol:""},Denar:{code:"MKD",symbol:"ден"},Kyat:{code:"MMK",symbol:""},Tugrik:{code:"MNT",symbol:"₮"},Pataca:{code:"MOP",symbol:""},Ouguiya:{code:"MRO",symbol:""},"Mauritius Rupee":{code:"MUR",symbol:"₨"},Rufiyaa:{code:"MVR",symbol:""},Kwacha:{code:"MWK",symbol:""},"Mexican Peso":{code:"MXN",symbol:"$"},"Malaysian Ringgit":{code:"MYR",symbol:"RM"},Metical:{code:"MZN",symbol:"MT"},Naira:{code:"NGN",symbol:"₦"},"Cordoba Oro":{code:"NIO",symbol:"C$"},"Norwegian Krone":{code:"NOK",symbol:"kr"},"Nepalese Rupee":{code:"NPR",symbol:"₨"},"New Zealand Dollar":{code:"NZD",symbol:"$"},"Rial Omani":{code:"OMR",symbol:"﷼"},Balboa:{code:"PAB",symbol:"B/."},"Nuevo Sol":{code:"PEN",symbol:"S/."},Kina:{code:"PGK",symbol:""},"Philippine Peso":{code:"PHP",symbol:"Php"},"Pakistan Rupee":{code:"PKR",symbol:"₨"},Zloty:{code:"PLN",symbol:"zł"},Guarani:{code:"PYG",symbol:"Gs"},"Qatari Rial":{code:"QAR",symbol:"﷼"},"New Leu":{code:"RON",symbol:"lei"},"Serbian Dinar":{code:"RSD",symbol:"Дин."},"Russian Ruble":{code:"RUB",symbol:"руб"},"Rwanda Franc":{code:"RWF",symbol:""},"Saudi Riyal":{code:"SAR",symbol:"﷼"},"Solomon Islands Dollar":{code:"SBD",symbol:"$"},"Seychelles Rupee":{code:"SCR",symbol:"₨"},"Sudanese Pound":{code:"SDG",symbol:""},"Swedish Krona":{code:"SEK",symbol:"kr"},"Singapore Dollar":{code:"SGD",symbol:"$"},"Saint Helena Pound":{code:"SHP",symbol:"£"},Leone:{code:"SLL",symbol:""},"Somali Shilling":{code:"SOS",symbol:"S"},"Surinam Dollar":{code:"SRD",symbol:"$"},Dobra:{code:"STN",symbol:"Db"},"El Salvador Colon":{code:"SVC",symbol:"₡"},"Syrian Pound":{code:"SYP",symbol:"£"},Lilangeni:{code:"SZL",symbol:""},Baht:{code:"THB",symbol:"฿"},Somoni:{code:"TJS",symbol:""},Manat:{code:"TMT",symbol:""},"Tunisian Dinar":{code:"TND",symbol:""},"Pa'anga":{code:"TOP",symbol:""},"Turkish Lira":{code:"TRY",symbol:"₺"},"Trinidad and Tobago Dollar":{code:"TTD",symbol:"TT$"},"New Taiwan Dollar":{code:"TWD",symbol:"NT$"},"Tanzanian Shilling":{code:"TZS",symbol:""},Hryvnia:{code:"UAH",symbol:"₴"},"Uganda Shilling":{code:"UGX",symbol:""},"US Dollar":{code:"USD",symbol:"$"},"Peso Uruguayo":{code:"UYU",symbol:"$U"},"Uzbekistan Sum":{code:"UZS",symbol:"лв"},"Bolivar Fuerte":{code:"VEF",symbol:"Bs"},Dong:{code:"VND",symbol:"₫"},Vatu:{code:"VUV",symbol:""},Tala:{code:"WST",symbol:""},"CFA Franc BEAC":{code:"XAF",symbol:""},Silver:{code:"XAG",symbol:""},Gold:{code:"XAU",symbol:""},"Bond Markets Units European Composite Unit (EURCO)":{code:"XBA",symbol:""},"European Monetary Unit (E.M.U.-6)":{code:"XBB",symbol:""},"European Unit of Account 9(E.U.A.-9)":{code:"XBC",symbol:""},"European Unit of Account 17(E.U.A.-17)":{code:"XBD",symbol:""},"East Caribbean Dollar":{code:"XCD",symbol:"$"},SDR:{code:"XDR",symbol:""},"UIC-Franc":{code:"XFU",symbol:""},"CFA Franc BCEAO":{code:"XOF",symbol:""},Palladium:{code:"XPD",symbol:""},"CFP Franc":{code:"XPF",symbol:""},Platinum:{code:"XPT",symbol:""},"Codes specifically reserved for testing purposes":{code:"XTS",symbol:""},"Yemeni Rial":{code:"YER",symbol:"﷼"},Rand:{code:"ZAR",symbol:"R"},"Lesotho Loti":{code:"LSL",symbol:""},"Namibia Dollar":{code:"NAD",symbol:"N$"},"Zambian Kwacha":{code:"ZMK",symbol:""},"Zimbabwe Dollar":{code:"ZWL",symbol:""}}})(ebn);var jPa=ebn.exports,tbn={exports:{}},nbn={exports:{}};(function(t){t.exports=["4###########L","4###-####-####-###L"]})(nbn);var HPa=nbn.exports,rbn={exports:{}};(function(t){t.exports=["5[1-5]##-####-####-###L","6771-89##-####-###L"]})(rbn);var UPa=rbn.exports,ibn={exports:{}};(function(t){t.exports=["6011-####-####-###L","65##-####-####-###L","64[4-9]#-####-####-###L","6011-62##-####-####-###L","65##-62##-####-####-###L","64[4-9]#-62##-####-####-###L"]})(ibn);var zPa=ibn.exports,abn={exports:{}};(function(t){t.exports=["34##-######-####L","37##-######-####L"]})(abn);var GPa=abn.exports,obn={exports:{}};(function(t){t.exports=["30[0-5]#-######-###L","36##-######-###L","54##-####-####-###L"]})(obn);var VPa=obn.exports,sbn={exports:{}};(function(t){t.exports=["3528-####-####-###L","3529-####-####-###L","35[3-8]#-####-####-###L"]})(sbn);var KPa=sbn.exports,lbn={exports:{}};(function(t){t.exports=["6759-####-####-###L","6759-####-####-####-#L","6759-####-####-####-##L"]})(lbn);var WPa=lbn.exports,cbn={exports:{}};(function(t){t.exports=["6767-####-####-###L","6767-####-####-####-#L","6767-####-####-####-##L"]})(cbn);var QPa=cbn.exports,ubn={exports:{}};(function(t){t.exports=["5018-#{4}-#{4}-#{3}L","5020-#{4}-#{4}-#{3}L","5038-#{4}-#{4}-#{3}L","5893-#{4}-#{4}-#{3}L","6304-#{4}-#{4}-#{3}L","6759-#{4}-#{4}-#{3}L","676[1-3]-####-####-###L","5018#{11,15}L","5020#{11,15}L","5038#{11,15}L","5893#{11,15}L","6304#{11,15}L","6759#{11,15}L","676[1-3]#{11,15}L"]})(ubn);var qPa=ubn.exports,dbn={exports:{}};(function(t){t.exports=["6304###########L","6706###########L","6771###########L","6709###########L","6304#########{5,6}L","6706#########{5,6}L","6771#########{5,6}L","6709#########{5,6}L"]})(dbn);var YPa=dbn.exports,hbn={exports:{}};(function(t){t.exports=["63[7-9]#-####-####-###L"]})(hbn);var JPa=hbn.exports;(function(t){var e={};t.exports=e,e.visa=HPa,e.mastercard=UPa,e.discover=zPa,e.american_express=GPa,e.diners_club=VPa,e.jcb=KPa,e.switch=WPa,e.solo=QPa,e.maestro=qPa,e.laser=YPa,e.instapayment=JPa})(tbn);var ZPa=tbn.exports;(function(t){var e={};t.exports=e,e.account_type=$Pa,e.transaction_type=FPa,e.currency=jPa,e.credit_card=ZPa})(Jyn);var XPa=Jyn.exports,fbn={exports:{}},pbn={exports:{}};(function(t){t.exports={wide:["January","February","March","April","May","June","July","August","September","October","November","December"],wide_context:["January","February","March","April","May","June","July","August","September","October","November","December"],abbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],abbr_context:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}})(pbn);var eOa=pbn.exports,mbn={exports:{}};(function(t){t.exports={wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],wide_context:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbr_context:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}})(mbn);var tOa=mbn.exports;(function(t){var e={};t.exports=e,e.month=eOa,e.weekday=tOa})(fbn);var nOa=fbn.exports,gbn={exports:{}},vbn={exports:{}};(function(t){t.exports=["/Applications","/bin","/boot","/boot/defaults","/dev","/etc","/etc/defaults","/etc/mail","/etc/namedb","/etc/periodic","/etc/ppp","/home","/home/user","/home/user/dir","/lib","/Library","/lost+found","/media","/mnt","/net","/Network","/opt","/opt/bin","/opt/include","/opt/lib","/opt/sbin","/opt/share","/private","/private/tmp","/private/var","/proc","/rescue","/root","/sbin","/selinux","/srv","/sys","/System","/tmp","/Users","/usr","/usr/X11R6","/usr/bin","/usr/include","/usr/lib","/usr/libdata","/usr/libexec","/usr/local/bin","/usr/local/src","/usr/obj","/usr/ports","/usr/sbin","/usr/share","/usr/src","/var","/var/log","/var/mail","/var/spool","/var/tmp","/var/yp"]})(vbn);var rOa=vbn.exports,Abn={exports:{}};(function(t){t.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana"},"application/3gpp-ims+xml":{source:"iana"},"application/a2l":{source:"iana"},"application/activemessage":{source:"iana"},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana"},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",extensions:["atomsvc"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana"},"application/bacnet-xdd+zip":{source:"iana"},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana"},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana"},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/cbor":{source:"iana"},"application/ccmp+xml":{source:"iana"},"application/ccxml+xml":{source:"iana",extensions:["ccxml"]},"application/cdfx+xml":{source:"iana"},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana"},"application/cellml+xml":{source:"iana"},"application/cfw":{source:"iana"},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana"},"application/coap-group+json":{source:"iana",compressible:!0},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana"},"application/cpl+xml":{source:"iana"},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana"},"application/cstadata+xml":{source:"iana"},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",extensions:["mdp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana"},"application/dicom":{source:"iana"},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/docbook+xml":{source:"apache",extensions:["dbk"]},"application/dskpp+xml":{source:"iana"},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/emergencycalldata.comment+xml":{source:"iana"},"application/emergencycalldata.deviceinfo+xml":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana"},"application/emergencycalldata.serviceinfo+xml":{source:"iana"},"application/emergencycalldata.subscriberinfo+xml":{source:"iana"},"application/emma+xml":{source:"iana",extensions:["emma"]},"application/emotionml+xml":{source:"iana"},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana"},"application/epub+zip":{source:"iana",extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana"},"application/fits":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1,extensions:["woff"]},"application/font-woff2":{compressible:!1,extensions:["woff2"]},"application/framework-attributes+xml":{source:"iana"},"application/gml+xml":{source:"apache",extensions:["gml"]},"application/gpx+xml":{source:"apache",extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1},"application/h224":{source:"iana"},"application/held+xml":{source:"iana"},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana"},"application/ibe-pkg-reply+xml":{source:"iana"},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana"},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana"},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana"},"application/kpml-response+xml":{source:"iana"},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana"},"application/lost+xml":{source:"iana",extensions:["lostxml"]},"application/lostsync+xml":{source:"iana"},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",extensions:["mads"]},"application/manifest+json":{charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",extensions:["mathml"]},"application/mathml-content+xml":{source:"iana"},"application/mathml-presentation+xml":{source:"iana"},"application/mbms-associated-procedure-description+xml":{source:"iana"},"application/mbms-deregister+xml":{source:"iana"},"application/mbms-envelope+xml":{source:"iana"},"application/mbms-msk+xml":{source:"iana"},"application/mbms-msk-response+xml":{source:"iana"},"application/mbms-protection-description+xml":{source:"iana"},"application/mbms-reception-report+xml":{source:"iana"},"application/mbms-register+xml":{source:"iana"},"application/mbms-register-response+xml":{source:"iana"},"application/mbms-schedule+xml":{source:"iana"},"application/mbms-user-service-description+xml":{source:"iana"},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana"},"application/media_control+xml":{source:"iana"},"application/mediaservercontrol+xml":{source:"iana",extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",extensions:["metalink"]},"application/metalink4+xml":{source:"iana",extensions:["meta4"]},"application/mets+xml":{source:"iana",extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mods+xml":{source:"iana",extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana"},"application/mrb-publish+xml":{source:"iana"},"application/msc-ivr+xml":{source:"iana"},"application/msc-mixer+xml":{source:"iana"},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mxf":{source:"iana",extensions:["mxf"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana"},"application/news-groupinfo":{source:"iana"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana"},"application/nss":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p2p-overlay+xml":{source:"iana"},"application/parityfec":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana"},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana"},"application/pidf-diff+xml":{source:"iana"},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",extensions:["pls"]},"application/poc-settings+xml":{source:"iana"},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/provenance+xml":{source:"iana"},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.hpub+zip":{source:"iana"},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana"},"application/pskc+xml":{source:"iana",extensions:["pskcxml"]},"application/qsig":{source:"iana"},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf"]},"application/reginfo+xml":{source:"iana",extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",extensions:["rld"]},"application/rfc+xml":{source:"iana"},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana"},"application/rls-services+xml":{source:"iana",extensions:["rs"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana"},"application/samlmetadata+xml":{source:"iana"},"application/sbml+xml":{source:"iana",extensions:["sbml"]},"application/scaip+xml":{source:"iana"},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/sep+xml":{source:"iana"},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",extensions:["shf"]},"application/sieve":{source:"iana"},"application/simple-filter+xml":{source:"iana"},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",extensions:["srx"]},"application/spirits-event+xml":{source:"iana"},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",extensions:["grxml"]},"application/sru+xml":{source:"iana",extensions:["sru"]},"application/ssdl+xml":{source:"apache",extensions:["ssdl"]},"application/ssml+xml":{source:"iana",extensions:["ssml"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/tei+xml":{source:"iana",extensions:["tei","teicorpus"]},"application/thraud+xml":{source:"iana",extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/ttml+xml":{source:"iana"},"application/tve-trigger":{source:"iana"},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana"},"application/urc-ressheet+xml":{source:"iana"},"application/urc-targetdesc+xml":{source:"iana"},"application/urc-uisocketdesc+xml":{source:"iana"},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana"},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.3gpp-prose+xml":{source:"iana"},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana"},"application/vnd.3gpp.bsf+xml":{source:"iana"},"application/vnd.3gpp.mid-call+xml":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana"},"application/vnd.3gpp.srvcc-info+xml":{source:"iana"},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana"},"application/vnd.3gpp.ussd+xml":{source:"iana"},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana"},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",extensions:["mpkg"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avistar+xml":{source:"iana"},"application/vnd.balsamiq.bmml+xml":{source:"iana"},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.biopax.rdf+xml":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",extensions:["cdxml"]},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana"},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",extensions:["wbs"]},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana"},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana"},"application/vnd.cybank":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume-movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana"},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana"},"application/vnd.dvb.notif-container+xml":{source:"iana"},"application/vnd.dvb.notif-generic+xml":{source:"iana"},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana"},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana"},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana"},"application/vnd.dvb.notif-init+xml":{source:"iana"},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana"},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana"},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.eszigno3+xml":{source:"iana",extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana"},"application/vnd.etsi.asic-e+zip":{source:"iana"},"application/vnd.etsi.asic-s+zip":{source:"iana"},"application/vnd.etsi.cug+xml":{source:"iana"},"application/vnd.etsi.iptvcommand+xml":{source:"iana"},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana"},"application/vnd.etsi.iptvprofile+xml":{source:"iana"},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana"},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana"},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana"},"application/vnd.etsi.iptvservice+xml":{source:"iana"},"application/vnd.etsi.iptvsync+xml":{source:"iana"},"application/vnd.etsi.iptvueprofile+xml":{source:"iana"},"application/vnd.etsi.mcid+xml":{source:"iana"},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana"},"application/vnd.etsi.pstn+xml":{source:"iana"},"application/vnd.etsi.sci+xml":{source:"iana"},"application/vnd.etsi.simservs+xml":{source:"iana"},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana"},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eudora.data":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana"},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana"},"application/vnd.gov.sk.e-form+zip":{source:"iana"},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana"},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana"},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana"},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana"},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana"},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana"},"application/vnd.iptc.g2.newsitem+xml":{source:"iana"},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana"},"application/vnd.iptc.g2.packageitem+xml":{source:"iana"},"application/vnd.iptc.g2.planningitem+xml":{source:"iana"},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las.las+xml":{source:"iana",extensions:["lasxml"]},"application/vnd.liberty-request+xml":{source:"iana"},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",extensions:["lbe"]},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana"},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana"},"application/vnd.marlin.drm.conftoken+xml":{source:"iana"},"application/vnd.marlin.drm.license+xml":{source:"iana"},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana"},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana"},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana"},"application/vnd.ms-printing.printticket+xml":{source:"apache"},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana"},"application/vnd.nokia.iptv.config+xml":{source:"iana"},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana"},"application/vnd.nokia.landmarkcollection+xml":{source:"iana"},"application/vnd.nokia.n-gage.ac+xml":{source:"iana"},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana"},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana"},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana"},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana"},"application/vnd.oipf.dae.xhtml+xml":{source:"iana"},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana"},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana"},"application/vnd.oipf.spdlist+xml":{source:"iana"},"application/vnd.oipf.ueprofile+xml":{source:"iana"},"application/vnd.oipf.userprofile+xml":{source:"iana"},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana"},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana"},"application/vnd.oma.bcast.imd+xml":{source:"iana"},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana"},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana"},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana"},"application/vnd.oma.bcast.sprov+xml":{source:"iana"},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana"},"application/vnd.oma.cab-feature-handler+xml":{source:"iana"},"application/vnd.oma.cab-pcc+xml":{source:"iana"},"application/vnd.oma.cab-subs-invite+xml":{source:"iana"},"application/vnd.oma.cab-user-prefs+xml":{source:"iana"},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana"},"application/vnd.oma.group-usage-list+xml":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana"},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana"},"application/vnd.oma.poc.final-report+xml":{source:"iana"},"application/vnd.oma.poc.groups+xml":{source:"iana"},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana"},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana"},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana"},"application/vnd.oma.xcap-directory+xml":{source:"iana"},"application/vnd.omads-email+xml":{source:"iana"},"application/vnd.omads-file+xml":{source:"iana"},"application/vnd.omads-folder+xml":{source:"iana"},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana"},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml-template":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"apache",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml-template":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"apache",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml-template":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"apache",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana"},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana"},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana"},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana"},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana"},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos+xml":{source:"iana"},"application/vnd.paos.xml":{source:"apache"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana"},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana"},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana"},"application/vnd.radisys.msml+xml":{source:"iana"},"application/vnd.radisys.msml-audit+xml":{source:"iana"},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana"},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana"},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana"},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana"},"application/vnd.radisys.msml-conf+xml":{source:"iana"},"application/vnd.radisys.msml-dialog+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana"},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.software602.filler.form+xml":{source:"iana"},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana"},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana"},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana"},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.tmd.mediaflex.api+xml":{source:"iana"},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana"},"application/vnd.wv.ssp+xml":{source:"iana"},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana"},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",extensions:["zaz"]},"application/voicexml+xml":{source:"iana",extensions:["vxml"]},"application/vq-rtcpxr":{source:"iana"},"application/watcherinfo+xml":{source:"iana"},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-otf":{source:"apache",compressible:!0,extensions:["otf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-ttf":{source:"apache",compressible:!0,extensions:["ttf","ttc"]},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"apache",extensions:["der","crt","pem"]},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana"},"application/xaml+xml":{source:"apache",extensions:["xaml"]},"application/xcap-att+xml":{source:"iana"},"application/xcap-caps+xml":{source:"iana"},"application/xcap-diff+xml":{source:"iana",extensions:["xdf"]},"application/xcap-el+xml":{source:"iana"},"application/xcap-error+xml":{source:"iana"},"application/xcap-ns+xml":{source:"iana"},"application/xcon-conference-info+xml":{source:"iana"},"application/xcon-conference-info-diff+xml":{source:"iana"},"application/xenc+xml":{source:"iana",extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache"},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana"},"application/xmpp+xml":{source:"iana"},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",extensions:["xpl"]},"application/xslt+xml":{source:"iana",extensions:["xslt"]},"application/xspf+xml":{source:"apache",extensions:["xspf"]},"application/xv+xml":{source:"iana",extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yin+xml":{source:"iana",extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana"},"audio/3gpp2":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana"},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana"},"audio/mp4":{source:"iana",compressible:!1,extensions:["mp4a","m4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tone":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/opentype":{compressible:!0,extensions:["otf"]},"image/bmp":{source:"apache",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/fits":{source:"iana"},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jp2":{source:"iana"},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jpm":{source:"iana"},"image/jpx":{source:"iana"},"image/ktx":{source:"iana",extensions:["ktx"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana"},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana"},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/tiff-fx":{source:"iana"},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana"},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana"},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana"},"image/vnd.valve.source.texture":{source:"iana"},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana"},"image/webp":{source:"apache",extensions:["webp"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana"},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana"},"message/global-delivery-status":{source:"iana"},"message/global-disposition-notification":{source:"iana"},"message/global-headers":{source:"iana"},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana"},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/vnd.collada+xml":{source:"iana",extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana"},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana"},"model/vnd.parasolid.transmit.binary":{source:"iana"},"model/vnd.parasolid.transmit.text":{source:"iana"},"model/vnd.valve.source.compiled-map":{source:"iana"},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana"},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana"},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana",compressible:!1},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fwdred":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/hjson":{extensions:["hjson"]},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{extensions:["less"]},"text/markdown":{source:"iana"},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["markdown","md","mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"apache"},"video/3gpp":{source:"apache",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"apache"},"video/3gpp2":{source:"apache",extensions:["3g2"]},"video/bmpeg":{source:"apache"},"video/bt656":{source:"apache"},"video/celb":{source:"apache"},"video/dv":{source:"apache"},"video/h261":{source:"apache",extensions:["h261"]},"video/h263":{source:"apache",extensions:["h263"]},"video/h263-1998":{source:"apache"},"video/h263-2000":{source:"apache"},"video/h264":{source:"apache",extensions:["h264"]},"video/h264-rcdo":{source:"apache"},"video/h264-svc":{source:"apache"},"video/jpeg":{source:"apache",extensions:["jpgv"]},"video/jpeg2000":{source:"apache"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/mj2":{source:"apache",extensions:["mj2","mjp2"]},"video/mp1s":{source:"apache"},"video/mp2p":{source:"apache"},"video/mp2t":{source:"apache",extensions:["ts"]},"video/mp4":{source:"apache",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"apache"},"video/mpeg":{source:"apache",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"apache"},"video/mpv":{source:"apache"},"video/nv":{source:"apache"},"video/ogg":{source:"apache",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"apache"},"video/pointer":{source:"apache"},"video/quicktime":{source:"apache",compressible:!1,extensions:["qt","mov"]},"video/raw":{source:"apache"},"video/rtp-enc-aescm128":{source:"apache"},"video/rtx":{source:"apache"},"video/smpte292m":{source:"apache"},"video/ulpfec":{source:"apache"},"video/vc1":{source:"apache"},"video/vnd.cctv":{source:"apache"},"video/vnd.dece.hd":{source:"apache",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"apache",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"apache"},"video/vnd.dece.pd":{source:"apache",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"apache",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"apache",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"apache"},"video/vnd.directv.mpeg-tts":{source:"apache"},"video/vnd.dlna.mpeg-tts":{source:"apache"},"video/vnd.dvb.file":{source:"apache",extensions:["dvb"]},"video/vnd.fvt":{source:"apache",extensions:["fvt"]},"video/vnd.hns.video":{source:"apache"},"video/vnd.iptvforum.1dparityfec-1010":{source:"apache"},"video/vnd.iptvforum.1dparityfec-2005":{source:"apache"},"video/vnd.iptvforum.2dparityfec-1010":{source:"apache"},"video/vnd.iptvforum.2dparityfec-2005":{source:"apache"},"video/vnd.iptvforum.ttsavc":{source:"apache"},"video/vnd.iptvforum.ttsmpeg2":{source:"apache"},"video/vnd.motorola.video":{source:"apache"},"video/vnd.motorola.videop":{source:"apache"},"video/vnd.mpegurl":{source:"apache",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"apache",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"apache"},"video/vnd.nokia.videovoip":{source:"apache"},"video/vnd.objectvideo":{source:"apache"},"video/vnd.sealed.mpeg1":{source:"apache"},"video/vnd.sealed.mpeg4":{source:"apache"},"video/vnd.sealed.swf":{source:"apache"},"video/vnd.sealedmedia.softseal.mov":{source:"apache"},"video/vnd.uvvu.mp4":{source:"apache",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"apache",extensions:["viv"]},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})(Abn);var iOa=Abn.exports;(function(t){var e={};t.exports=e,e.directoryPaths=rOa,e.mimeTypes=iOa})(gbn);var aOa=gbn.exports,ybn={exports:{}},bbn={exports:{}};(function(t){t.exports=["Aston Martin","Audi","Bentley","BMW","Bugatti","Cadillac","Chevrolet","Chrysler","Dodge","Ferrari","Fiat","Ford","Honda","Hyundai","Jaguar","Jeep","Kia","Lamborghini","Land Rover","Maserati","Mazda","Mercedes Benz","Mini","Nissan","Polestar","Porsche","Rolls Royce","Smart","Tesla","Toyota","Volkswagen","Volvo"]})(bbn);var oOa=bbn.exports,xbn={exports:{}};(function(t){t.exports=["Fiesta","Focus","Taurus","Mustang","Explorer","Expedition","F-150","Model T","Ranchero","Volt","Cruze","Malibu","Impala","Camaro","Corvette","Colorado","Silverado","El Camino","CTS","XTS","ATS","Escalade","Alpine","Charger","LeBaron","PT Cruiser","Challenger","Durango","Grand Caravan","Wrangler","Grand Cherokee","Roadster","Model S","Model 3","Camry","Prius","Land Cruiser","Accord","Civic","Element","Sentra","Altima","A8","A4","Beetle","Jetta","Golf","911","Spyder","Countach","Mercielago","Aventador","1","2","Fortwo","V90","XC90","CX-9"]})(xbn);var sOa=xbn.exports,Ebn={exports:{}};(function(t){t.exports=["Cargo Van","Convertible","Coupe","Crew Cab Pickup","Extended Cab Pickup","Hatchback","Minivan","Passenger Van","SUV","Sedan","Wagon"]})(Ebn);var lOa=Ebn.exports,Sbn={exports:{}};(function(t){t.exports=["Diesel","Electric","Gasoline","Hybrid"]})(Sbn);var cOa=Sbn.exports,wbn={exports:{}};(function(t){t.exports=["Adventure Road Bicycle","BMX Bicycle","City Bicycle","Cruiser Bicycle","Cyclocross Bicycle","Dual-Sport Bicycle","Fitness Bicycle","Flat-Foot Comfort Bicycle","Folding Bicycle","Hybrid Bicycle","Mountain Bicycle","Recumbent Bicycle","Road Bicycle","Tandem Bicycle","Touring Bicycle","Track/Fixed-Gear Bicycle","Triathlon/Time Trial Bicycle","Tricycle"]})(wbn);var uOa=wbn.exports;(function(t){var e={};t.exports=e,e.manufacturer=oOa,e.model=sOa,e.type=lOa,e.fuel=cOa,e.bicycle=uOa})(ybn);var dOa=ybn.exports,_bn={exports:{}},Tbn={exports:{}};(function(t){t.exports=["Rock","Metal","Pop","Electronic","Folk","World","Country","Jazz","Funk","Soul","Hip Hop","Classical","Latin","Reggae","Stage And Screen","Blues","Non Music","Rap"]})(Tbn);var hOa=Tbn.exports;(function(t){var e={};t.exports=e,e.genre=hOa})(_bn);var fOa=_bn.exports;(function(t){var e={};t.exports=e,e.title="English",e.separator=" & ",e.address=g5a,e.animal=N5a,e.company=j5a,e.internet=V5a,e.database=Y5a,e.lorem=X5a,e.name=uPa,e.phone_number=hPa,e.cell_phone=pPa,e.business=APa,e.commerce=SPa,e.team=TPa,e.hacker=PPa,e.app=DPa,e.finance=XPa,e.date=nOa,e.system=aOa,e.vehicle=dOa,e.music=fOa})(l1n);var pOa=l1n.exports,Cbn={exports:{}},kbn={exports:{}},Rbn={exports:{}};(function(t){t.exports=["William","Jack","Oliver","Joshua","Thomas","Lachlan","Cooper","Noah","Ethan","Lucas","James","Samuel","Jacob","Liam","Alexander","Benjamin","Max","Isaac","Daniel","Riley","Ryan","Charlie","Tyler","Jake","Matthew","Xavier","Harry","Jayden","Nicholas","Harrison","Levi","Luke","Adam","Henry","Aiden","Dylan","Oscar","Michael","Jackson","Logan","Joseph","Blake","Nathan","Connor","Elijah","Nate","Archie","Bailey","Marcus","Cameron","Jordan","Zachary","Caleb","Hunter","Ashton","Toby","Aidan","Hayden","Mason","Hamish","Edward","Angus","Eli","Sebastian","Christian","Patrick","Andrew","Anthony","Luca","Kai","Beau","Alex","George","Callum","Finn","Zac","Mitchell","Jett","Jesse","Gabriel","Leo","Declan","Charles","Jasper","Jonathan","Aaron","Hugo","David","Christopher","Chase","Owen","Justin","Ali","Darcy","Lincoln","Cody","Phoenix","Sam","John","Joel","Isabella","Ruby","Chloe","Olivia","Charlotte","Mia","Lily","Emily","Ella","Sienna","Sophie","Amelia","Grace","Ava","Zoe","Emma","Sophia","Matilda","Hannah","Jessica","Lucy","Georgia","Sarah","Abigail","Zara","Eva","Scarlett","Jasmine","Chelsea","Lilly","Ivy","Isla","Evie","Isabelle","Maddison","Layla","Summer","Annabelle","Alexis","Elizabeth","Bella","Holly","Lara","Madison","Alyssa","Maya","Tahlia","Claire","Hayley","Imogen","Jade","Ellie","Sofia","Addison","Molly","Phoebe","Alice","Savannah","Gabriella","Kayla","Mikayla","Abbey","Eliza","Willow","Alexandra","Poppy","Samantha","Stella","Amy","Amelie","Anna","Piper","Gemma","Isabel","Victoria","Stephanie","Caitlin","Heidi","Paige","Rose","Amber","Audrey","Claudia","Taylor","Madeline","Angelina","Natalie","Charli","Lauren","Ashley","Violet","Mackenzie","Abby","Skye","Lillian","Alana","Lola","Leah","Eve","Kiara"]})(Rbn);var mOa=Rbn.exports,Mbn={exports:{}};(function(t){t.exports=["Smith","Jones","Williams","Brown","Wilson","Taylor","Johnson","White","Martin","Anderson","Thompson","Nguyen","Thomas","Walker","Harris","Lee","Ryan","Robinson","Kelly","King","Davis","Wright","Evans","Roberts","Green","Hall","Wood","Jackson","Clarke","Patel","Khan","Lewis","James","Phillips","Mason","Mitchell","Rose","Davies","Rodriguez","Cox","Alexander","Garden","Campbell","Johnston","Moore","Smyth","O'neill","Doherty","Stewart","Quinn","Murphy","Graham","Mclaughlin","Hamilton","Murray","Hughes","Robertson","Thomson","Scott","Macdonald","Reid","Clark","Ross","Young","Watson","Paterson","Morrison","Morgan","Griffiths","Edwards","Rees","Jenkins","Owen","Price","Moss","Richards","Abbott","Adams","Armstrong","Bahringer","Bailey","Barrows","Bartell","Bartoletti","Barton","Bauch","Baumbach","Bayer","Beahan","Beatty","Becker","Beier","Berge","Bergstrom","Bode","Bogan","Borer","Bosco","Botsford","Boyer","Boyle","Braun","Bruen","Carroll","Carter","Cartwright","Casper","Cassin","Champlin","Christiansen","Cole","Collier","Collins","Connelly","Conroy","Corkery","Cormier","Corwin","Cronin","Crooks","Cruickshank","Cummings","D'amore","Daniel","Dare","Daugherty","Dickens","Dickinson","Dietrich","Donnelly","Dooley","Douglas","Doyle","Durgan","Ebert","Emard","Emmerich","Erdman","Ernser","Fadel","Fahey","Farrell","Fay","Feeney","Feil","Ferry","Fisher","Flatley","Gibson","Gleason","Glover","Goldner","Goodwin","Grady","Grant","Greenfelder","Greenholt","Grimes","Gutmann","Hackett","Hahn","Haley","Hammes","Hand","Hane","Hansen","Harber","Hartmann","Harvey","Hayes","Heaney","Heathcote","Heller","Hermann","Hermiston","Hessel","Hettinger","Hickle","Hill","Hills","Hoppe","Howe","Howell","Hudson","Huel","Hyatt","Jacobi","Jacobs","Jacobson","Jerde","Johns","Keeling","Kemmer","Kessler","Kiehn","Kirlin","Klein","Koch","Koelpin","Kohler","Koss","Kovacek","Kreiger","Kris","Kuhlman","Kuhn","Kulas","Kunde","Kutch","Lakin","Lang","Langworth","Larkin","Larson","Leannon","Leffler","Little","Lockman","Lowe","Lynch","Mann","Marks","Marvin","Mayer","Mccullough","Mcdermott","Mckenzie","Miller","Mills","Monahan","Morissette","Mueller","Muller","Nader","Nicolas","Nolan","O'connell","O'conner","O'hara","O'keefe","Olson","O'reilly","Parisian","Parker","Quigley","Reilly","Reynolds","Rice","Ritchie","Rohan","Rolfson","Rowe","Russel","Rutherford","Sanford","Sauer","Schmidt","Schmitt","Schneider","Schroeder","Schultz","Shields","Smitham","Spencer","Stanton","Stark","Stokes","Swift","Tillman","Towne","Tremblay","Tromp","Turcotte","Turner","Walsh","Walter","Ward","Waters","Weber","Welch","West","Wilderman","Wilkinson","Williamson","Windler","Wolf"]})(Mbn);var gOa=Mbn.exports;(function(t){var e={};t.exports=e,e.first_name=mOa,e.last_name=gOa})(kbn);var vOa=kbn.exports,Nbn={exports:{}},Ibn={exports:{}};(function(t){t.exports=["Pty Ltd","and Sons","Corp","Group","Brothers","Partners"]})(Ibn);var AOa=Ibn.exports;(function(t){var e={};t.exports=e,e.suffix=AOa})(Nbn);var yOa=Nbn.exports,Pbn={exports:{}},Obn={exports:{}};(function(t){t.exports=["com.au","com","net.au","net","org.au","org"]})(Obn);var bOa=Obn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=bOa})(Pbn);var xOa=Pbn.exports,Lbn={exports:{}},Bbn={exports:{}};(function(t){t.exports=["NSW","QLD","NT","SA","WA","TAS","ACT","VIC"]})(Bbn);var EOa=Bbn.exports,Dbn={exports:{}};(function(t){t.exports=["New South Wales","Queensland","Northern Territory","South Australia","Western Australia","Tasmania","Australian Capital Territory","Victoria"]})(Dbn);var SOa=Dbn.exports,$bn={exports:{}};(function(t){t.exports=["####"]})($bn);var wOa=$bn.exports,Fbn={exports:{}};(function(t){t.exports=["####","###","##"]})(Fbn);var _Oa=Fbn.exports,jbn={exports:{}};(function(t){t.exports=["Avenue","Boulevard","Circle","Circuit","Court","Crescent","Crest","Drive","Estate Dr","Grove","Hill","Island","Junction","Knoll","Lane","Loop","Mall","Manor","Meadow","Mews","Parade","Parkway","Pass","Place","Plaza","Ridge","Road","Run","Square","Station St","Street","Summit","Terrace","Track","Trail","View Rd","Way"]})(jbn);var TOa=jbn.exports,Hbn={exports:{}};(function(t){t.exports=["Australia"]})(Hbn);var COa=Hbn.exports;(function(t){var e={};t.exports=e,e.state_abbr=EOa,e.state=SOa,e.postcode=wOa,e.building_number=_Oa,e.street_suffix=TOa,e.default_country=COa})(Lbn);var kOa=Lbn.exports,Ubn={exports:{}},zbn={exports:{}};(function(t){t.exports=["0# #### ####","+61 # #### ####","04## ### ###","+61 4## ### ###"]})(zbn);var ROa=zbn.exports;(function(t){var e={};t.exports=e,e.formats=ROa})(Ubn);var MOa=Ubn.exports;(function(t){var e={};t.exports=e,e.title="English (Australia)",e.name=vOa,e.company=yOa,e.internet=xOa,e.address=kOa,e.phone_number=MOa})(Cbn);var NOa=Cbn.exports,Gbn={exports:{}},Vbn={exports:{}},Kbn={exports:{}};(function(t){t.exports=["Charlotte","Ava","Chloe","Emily","Olivia","Zoe","Lily","Sophie","Amelia","Sofia","Ella","Isabella","Ruby","Sienna","Mia+3","Grace","Emma","Ivy","Layla","Abigail","Isla","Hannah","Zara","Lucy","Evie","Annabelle","Madison","Alice","Georgia","Maya","Madeline","Audrey","Scarlett","Isabelle","Chelsea","Mila","Holly","Indiana","Poppy","Harper","Sarah","Alyssa","Jasmine","Imogen","Hayley","Pheobe","Eva","Evelyn","Mackenzie","Ayla","Oliver","Jack","Jackson","William","Ethan","Charlie","Lucas","Cooper","Lachlan","Noah","Liam","Alexander","Max","Isaac","Thomas","Xavier","Oscar","Benjamin","Aiden","Mason","Samuel","James","Levi","Riley","Harrison","Ryan","Henry","Jacob","Joshua","Leo","Zach","Harry","Hunter","Flynn","Archie","Tyler","Elijah","Hayden","Jayden","Blake","Archer","Ashton","Sebastian","Zachery","Lincoln","Mitchell","Luca","Nathan","Kai","Connor","Tom","Nigel","Matt","Sean"]})(Kbn);var IOa=Kbn.exports,Wbn={exports:{}};(function(t){t.exports=["Smith","Jones","Williams","Brown","Wilson","Taylor","Morton","White","Martin","Anderson","Thompson","Nguyen","Thomas","Walker","Harris","Lee","Ryan","Robinson","Kelly","King","Rausch","Ridge","Connolly","LeQuesne"]})(Wbn);var POa=Wbn.exports,Qbn={exports:{}};(function(t){t.exports=["Bazza","Bluey","Davo","Johno","Shano","Shazza"]})(Qbn);var OOa=Qbn.exports;(function(t){var e={};t.exports=e,e.first_name=IOa,e.last_name=POa,e.ocker_first_name=OOa})(Vbn);var LOa=Vbn.exports,qbn={exports:{}},Ybn={exports:{}};(function(t){t.exports=["Pty Ltd","and Sons","Corp","Group","Brothers","Partners"]})(Ybn);var BOa=Ybn.exports;(function(t){var e={};t.exports=e,e.suffix=BOa})(qbn);var DOa=qbn.exports,Jbn={exports:{}},Zbn={exports:{}};(function(t){t.exports=["com.au","com","net.au","net","org.au","org"]})(Zbn);var $Oa=Zbn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=$Oa})(Jbn);var FOa=Jbn.exports,Xbn={exports:{}},exn={exports:{}};(function(t){t.exports=["Ramsay Street","Bonnie Doon","Cavill Avenue","Queen Street"]})(exn);var jOa=exn.exports,txn={exports:{}};(function(t){t.exports=["#{street_root}"]})(txn);var HOa=txn.exports,nxn={exports:{}};(function(t){t.exports=["Bondi","Burleigh Heads","Carlton","Fitzroy","Fremantle","Glenelg","Manly","Noosa","Stones Corner","St Kilda","Surry Hills","Yarra Valley"]})(nxn);var UOa=nxn.exports,rxn={exports:{}};(function(t){t.exports=["#{city_prefix}"]})(rxn);var zOa=rxn.exports,ixn={exports:{}};(function(t){t.exports=["NSW","QLD","NT","SA","WA","TAS","ACT","VIC"]})(ixn);var GOa=ixn.exports,axn={exports:{}};(function(t){t.exports=["South East Queensland","Wide Bay Burnett","Margaret River","Port Pirie","Gippsland","Elizabeth","Barossa"]})(axn);var VOa=axn.exports,oxn={exports:{}};(function(t){t.exports=["New South Wales","Queensland","Northern Territory","South Australia","Western Australia","Tasmania","Australian Capital Territory","Victoria"]})(oxn);var KOa=oxn.exports,sxn={exports:{}};(function(t){t.exports=["0###","2###","3###","4###","5###","6###","7###"]})(sxn);var WOa=sxn.exports,lxn={exports:{}};(function(t){t.exports=["####","###","##"]})(lxn);var QOa=lxn.exports,cxn={exports:{}};(function(t){t.exports=["Avenue","Boulevard","Circle","Circuit","Court","Crescent","Crest","Drive","Estate Dr","Grove","Hill","Island","Junction","Knoll","Lane","Loop","Mall","Manor","Meadow","Mews","Parade","Parkway","Pass","Place","Plaza","Ridge","Road","Run","Square","Station St","Street","Summit","Terrace","Track","Trail","View Rd","Way"]})(cxn);var qOa=cxn.exports,uxn={exports:{}};(function(t){t.exports=["Australia"]})(uxn);var YOa=uxn.exports;(function(t){var e={};t.exports=e,e.street_root=jOa,e.street_name=HOa,e.city_prefix=UOa,e.city=zOa,e.state_abbr=GOa,e.region=VOa,e.state=KOa,e.postcode=WOa,e.building_number=QOa,e.street_suffix=qOa,e.default_country=YOa})(Xbn);var JOa=Xbn.exports,dxn={exports:{}},hxn={exports:{}};(function(t){t.exports=["0# #### ####","+61 # #### ####","04## ### ###","+61 4## ### ###"]})(hxn);var ZOa=hxn.exports;(function(t){var e={};t.exports=e,e.formats=ZOa})(dxn);var XOa=dxn.exports;(function(t){var e={};t.exports=e,e.title="English (Australia Ocker)",e.name=LOa,e.company=DOa,e.internet=FOa,e.address=JOa,e.phone_number=XOa})(Gbn);var e4a=Gbn.exports,fxn={exports:{}},pxn={exports:{}},mxn={exports:{}};(function(t){t.exports=["Boot","I","Nu","Nur","Tu","Um","a","becoose-a","boot","bork","burn","chuuses","cumplete-a","cun","cunseqooences","curcoomstunces","dee","deeslikes","denuoonceeng","desures","du","eccuoont","ectooel","edfuntege-a","efueeds","egeeen","ell","ere-a","feend","foolt","frum","geefe-a","gesh","greet","heem","heppeeness","hes","hoo","hoomun","idea","ifer","in","incuoonter","injuy","itselff","ixcept","ixemple-a","ixerceese-a","ixpleeen","ixplurer","ixpuoond","ixtremely","knoo","lebureeuoos","lufes","meestekee","mester-booeelder","moost","mun","nu","nut","oobteeen","oocceseeunelly","ooccoor","ooff","oone-a","oor","peeen","peeenffool","physeecel","pleesoore-a","poorsooe-a","poorsooes","preeesing","prucoore-a","prudooces","reeght","reshunelly","resooltunt","sume-a","teecheengs","teke-a","thees","thet","thuse-a","treefiel","troot","tu","tueel","und","undertekes","unnuyeeng","uny","unyune-a","us","veell","veet","ves","vheech","vhu","yuoo","zee","zeere-a"]})(mxn);var t4a=mxn.exports;(function(t){var e={};t.exports=e,e.words=t4a})(pxn);var n4a=pxn.exports;(function(t){var e={};t.exports=e,e.title="English (Bork)",e.lorem=n4a})(fxn);var r4a=fxn.exports,gxn={exports:{}},vxn={exports:{}},Axn={exports:{}};(function(t){t.exports=["Alberta","British Columbia","Manitoba","New Brunswick","Newfoundland and Labrador","Nova Scotia","Northwest Territories","Nunavut","Ontario","Prince Edward Island","Quebec","Saskatchewan","Yukon"]})(Axn);var i4a=Axn.exports,yxn={exports:{}};(function(t){t.exports=["AB","BC","MB","NB","NL","NS","NU","NT","ON","PE","QC","SK","YT"]})(yxn);var a4a=yxn.exports,bxn={exports:{}};(function(t){t.exports=["Canada"]})(bxn);var o4a=bxn.exports,xxn={exports:{}};(function(t){t.exports=["A#? #?#","B#? #?#","C#? #?#","E#? #?#","G#? #?#","H#? #?#","J#? #?#","K#? #?#","L#? #?#","M#? #?#","N#? #?#","P#? #?#","R#? #?#","S#? #?#","T#? #?#","V#? #?#","X#? #?#","Y#? #?#"]})(xxn);var s4a=xxn.exports;(function(t){var e={};t.exports=e,e.state=i4a,e.state_abbr=a4a,e.default_country=o4a,e.postcode=s4a})(vxn);var l4a=vxn.exports,Exn={exports:{}},Sxn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.ca","hotmail.com"]})(Sxn);var c4a=Sxn.exports,wxn={exports:{}};(function(t){t.exports=["ca","com","biz","info","name","net","org"]})(wxn);var u4a=wxn.exports;(function(t){var e={};t.exports=e,e.free_email=c4a,e.domain_suffix=u4a})(Exn);var d4a=Exn.exports,_xn={exports:{}},Txn={exports:{}};(function(t){t.exports=["!##-!##-####","(!##)!##-####","!##.!##.####","1-!##-###-####","!##-!##-#### x###","(!##)!##-#### x###","1-!##-!##-#### x###","!##.!##.#### x###","!##-!##-#### x####","(!##)!##-#### x####","1-!##-!##-#### x####","!##.!##.#### x####","!##-!##-#### x#####","(!##)!##-#### x#####","1-!##-!##-#### x#####","!##.!##.#### x#####"]})(Txn);var h4a=Txn.exports;(function(t){var e={};t.exports=e,e.formats=h4a})(_xn);var f4a=_xn.exports;(function(t){var e={};t.exports=e,e.title="English (Canada)",e.address=l4a,e.internet=d4a,e.phone_number=f4a})(gxn);var p4a=gxn.exports,Cxn={exports:{}},kxn={exports:{}},Rxn={exports:{}};(function(t){t.exports=["Avon","Bedfordshire","Berkshire","Borders","Buckinghamshire","Cambridgeshire","Central","Cheshire","Cleveland","Clwyd","Cornwall","County Antrim","County Armagh","County Down","County Fermanagh","County Londonderry","County Tyrone","Cumbria","Derbyshire","Devon","Dorset","Dumfries and Galloway","Durham","Dyfed","East Sussex","Essex","Fife","Gloucestershire","Grampian","Greater Manchester","Gwent","Gwynedd County","Hampshire","Herefordshire","Hertfordshire","Highlands and Islands","Humberside","Isle of Wight","Kent","Lancashire","Leicestershire","Lincolnshire","Lothian","Merseyside","Mid Glamorgan","Norfolk","North Yorkshire","Northamptonshire","Northumberland","Nottinghamshire","Oxfordshire","Powys","Rutland","Shropshire","Somerset","South Glamorgan","South Yorkshire","Staffordshire","Strathclyde","Suffolk","Surrey","Tayside","Tyne and Wear","Warwickshire","West Glamorgan","West Midlands","West Sussex","West Yorkshire","Wiltshire","Worcestershire"]})(Rxn);var m4a=Rxn.exports,Mxn={exports:{}};(function(t){t.exports=["England","Scotland","Wales","Northern Ireland"]})(Mxn);var g4a=Mxn.exports,Nxn={exports:{}};(function(t){t.exports=["England","Scotland","Wales","Northern Ireland"]})(Nxn);var v4a=Nxn.exports,Ixn={exports:{}};(function(t){t.exports=["??# #??","??## #??"]})(Ixn);var A4a=Ixn.exports;(function(t){var e={};t.exports=e,e.county=m4a,e.uk_country=g4a,e.default_country=v4a,e.postcode=A4a})(kxn);var y4a=kxn.exports,Pxn={exports:{}},Oxn={exports:{}};(function(t){t.exports=["co.uk","com","biz","info","name"]})(Oxn);var b4a=Oxn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=b4a})(Pxn);var x4a=Pxn.exports,Lxn={exports:{}},Bxn={exports:{}};(function(t){t.exports=["01#### #####","01### ######","01#1 ### ####","011# ### ####","02# #### ####","03## ### ####","055 #### ####","056 #### ####","0800 ### ####","08## ### ####","09## ### ####","016977 ####","01### #####","0500 ######","0800 ######"]})(Bxn);var E4a=Bxn.exports;(function(t){var e={};t.exports=e,e.formats=E4a})(Lxn);var S4a=Lxn.exports,Dxn={exports:{}},$xn={exports:{}};(function(t){t.exports=["074## ######","075## ######","076## ######","077## ######","078## ######","079## ######"]})($xn);var w4a=$xn.exports;(function(t){var e={};t.exports=e,e.formats=w4a})(Dxn);var _4a=Dxn.exports;(function(t){var e={};t.exports=e,e.title="English (Great Britain)",e.address=y4a,e.internet=x4a,e.phone_number=S4a,e.cell_phone=_4a})(Cxn);var T4a=Cxn.exports,Fxn={exports:{}},jxn={exports:{}},Hxn={exports:{}};(function(t){t.exports=["Carlow","Cavan","Clare","Cork","Donegal","Dublin","Galway","Kerry","Kildare","Kilkenny","Laois","Leitrim","Limerick","Longford","Louth","Mayo","Meath","Monaghan","Offaly","Roscommon","Sligo","Tipperary","Waterford","Westmeath","Wexford","Wicklow"]})(Hxn);var C4a=Hxn.exports,Uxn={exports:{}};(function(t){t.exports=["Ireland"]})(Uxn);var k4a=Uxn.exports;(function(t){var e={};t.exports=e,e.county=C4a,e.default_country=k4a})(jxn);var R4a=jxn.exports,zxn={exports:{}},Gxn={exports:{}};(function(t){t.exports=["ie","com","net","info","eu"]})(Gxn);var M4a=Gxn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=M4a})(zxn);var N4a=zxn.exports,Vxn={exports:{}},Kxn={exports:{}};(function(t){t.exports=["01 #######","021 #######","022 #######","023 #######","024 #######","025 #######","026 #######","027 #######","028 #######","029 #######","0402 #######","0404 #######","041 #######","042 #######","043 #######","044 #######","045 #######","046 #######","047 #######","049 #######","0504 #######","0505 #######","051 #######","052 #######","053 #######","056 #######","057 #######","058 #######","059 #######","061 #######","062 #######","063 #######","064 #######","065 #######","066 #######","067 #######","068 #######","069 #######","071 #######","074 #######","090 #######","091 #######","093 #######","094 #######","095 #######","096 #######","097 #######","098 #######","099 #######"]})(Kxn);var I4a=Kxn.exports;(function(t){var e={};t.exports=e,e.formats=I4a})(Vxn);var P4a=Vxn.exports,Wxn={exports:{}},Qxn={exports:{}};(function(t){t.exports=["082 ### ####","083 ### ####","085 ### ####","086 ### ####","087 ### ####","089 ### ####"]})(Qxn);var O4a=Qxn.exports;(function(t){var e={};t.exports=e,e.formats=O4a})(Wxn);var L4a=Wxn.exports;(function(t){var e={};t.exports=e,e.title="English (Ireland)",e.address=R4a,e.internet=N4a,e.phone_number=P4a,e.cell_phone=L4a})(Fxn);var B4a=Fxn.exports,qxn={exports:{}},Yxn={exports:{}},Jxn={exports:{}};(function(t){t.exports=["Aadrika","Aanandinii","Aaratrika","Aarya","Arya","Aashritha","Aatmaja","Atmaja","Abhaya","Adwitiya","Agrata","Ahilya","Ahalya","Aishani","Akshainie","Akshata","Akshita","Akula","Ambar","Amodini","Amrita","Amritambu","Anala","Anamika","Ananda","Anandamayi","Ananta","Anila","Anjali","Anjushri","Anjushree","Annapurna","Anshula","Anuja","Anusuya","Anasuya","Anasooya","Anwesha","Apsara","Aruna","Asha","Aasa","Aasha","Aslesha","Atreyi","Atreyee","Avani","Abani","Avantika","Ayushmati","Baidehi","Vaidehi","Bala","Baala","Balamani","Basanti","Vasanti","Bela","Bhadra","Bhagirathi","Bhagwanti","Bhagwati","Bhamini","Bhanumati","Bhaanumati","Bhargavi","Bhavani","Bhilangana","Bilwa","Bilva","Buddhana","Chakrika","Chanda","Chandi","Chandni","Chandini","Chandani","Chandra","Chandira","Chandrabhaga","Chandrakala","Chandrakin","Chandramani","Chandrani","Chandraprabha","Chandraswaroopa","Chandravati","Chapala","Charumati","Charvi","Chatura","Chitrali","Chitramala","Chitrangada","Daksha","Dakshayani","Damayanti","Darshwana","Deepali","Dipali","Deeptimoyee","Deeptimayee","Devangana","Devani","Devasree","Devi","Daevi","Devika","Daevika","Dhaanyalakshmi","Dhanalakshmi","Dhana","Dhanadeepa","Dhara","Dharani","Dharitri","Dhatri","Diksha","Deeksha","Divya","Draupadi","Dulari","Durga","Durgeshwari","Ekaparnika","Elakshi","Enakshi","Esha","Eshana","Eshita","Gautami","Gayatri","Geeta","Geetanjali","Gitanjali","Gemine","Gemini","Girja","Girija","Gita","Hamsini","Harinakshi","Harita","Heema","Himadri","Himani","Hiranya","Indira","Jaimini","Jaya","Jyoti","Jyotsana","Kali","Kalinda","Kalpana","Kalyani","Kama","Kamala","Kamla","Kanchan","Kanishka","Kanti","Kashyapi","Kumari","Kumuda","Lakshmi","Laxmi","Lalita","Lavanya","Leela","Lila","Leela","Madhuri","Malti","Malati","Mandakini","Mandaakin","Mangala","Mangalya","Mani","Manisha","Manjusha","Meena","Mina","Meenakshi","Minakshi","Menka","Menaka","Mohana","Mohini","Nalini","Nikita","Ojaswini","Omana","Oormila","Urmila","Opalina","Opaline","Padma","Parvati","Poornima","Purnima","Pramila","Prasanna","Preity","Prema","Priya","Priyala","Pushti","Radha","Rageswari","Rageshwari","Rajinder","Ramaa","Rati","Rita","Rohana","Rukhmani","Rukmin","Rupinder","Sanya","Sarada","Sharda","Sarala","Sarla","Saraswati","Sarisha","Saroja","Shakti","Shakuntala","Shanti","Sharmila","Shashi","Shashikala","Sheela","Shivakari","Shobhana","Shresth","Shresthi","Shreya","Shreyashi","Shridevi","Shrishti","Shubha","Shubhaprada","Siddhi","Sitara","Sloka","Smita","Smriti","Soma","Subhashini","Subhasini","Sucheta","Sudeva","Sujata","Sukanya","Suma","Suma","Sumitra","Sunita","Suryakantam","Sushma","Swara","Swarnalata","Sweta","Shwet","Tanirika","Tanushree","Tanushri","Tanushri","Tanya","Tara","Trisha","Uma","Usha","Vaijayanti","Vaijayanthi","Baijayanti","Vaishvi","Vaishnavi","Vaishno","Varalakshmi","Vasudha","Vasundhara","Veda","Vedanshi","Vidya","Vimala","Vrinda","Vrund","Aadi","Aadidev","Aadinath","Aaditya","Aagam","Aagney","Aamod","Aanandaswarup","Anand Swarup","Aanjaneya","Anjaneya","Aaryan","Aryan","Aatmaj","Aatreya","Aayushmaan","Aayushman","Abhaidev","Abhaya","Abhirath","Abhisyanta","Acaryatanaya","Achalesvara","Acharyanandana","Acharyasuta","Achintya","Achyut","Adheesh","Adhiraj","Adhrit","Adikavi","Adinath","Aditeya","Aditya","Adityanandan","Adityanandana","Adripathi","Advaya","Agasti","Agastya","Agneya","Aagneya","Agnimitra","Agniprava","Agnivesh","Agrata","Ajit","Ajeet","Akroor","Akshaj","Akshat","Akshayakeerti","Alok","Aalok","Amaranaath","Amarnath","Amaresh","Ambar","Ameyatma","Amish","Amogh","Amrit","Anaadi","Anagh","Anal","Anand","Aanand","Anang","Anil","Anilaabh","Anilabh","Anish","Ankal","Anunay","Anurag","Anuraag","Archan","Arindam","Arjun","Arnesh","Arun","Ashlesh","Ashok","Atmanand","Atmananda","Avadhesh","Baalaaditya","Baladitya","Baalagopaal","Balgopal","Balagopal","Bahula","Bakula","Bala","Balaaditya","Balachandra","Balagovind","Bandhu","Bandhul","Bankim","Bankimchandra","Bhadrak","Bhadraksh","Bhadran","Bhagavaan","Bhagvan","Bharadwaj","Bhardwaj","Bharat","Bhargava","Bhasvan","Bhaasvan","Bhaswar","Bhaaswar","Bhaumik","Bhaves","Bheeshma","Bhisham","Bhishma","Bhima","Bhoj","Bhramar","Bhudev","Bhudeva","Bhupati","Bhoopati","Bhoopat","Bhupen","Bhushan","Bhooshan","Bhushit","Bhooshit","Bhuvanesh","Bhuvaneshwar","Bilva","Bodhan","Brahma","Brahmabrata","Brahmanandam","Brahmaanand","Brahmdev","Brajendra","Brajesh","Brijesh","Birjesh","Budhil","Chakor","Chakradhar","Chakravartee","Chakravarti","Chanakya","Chaanakya","Chandak","Chandan","Chandra","Chandraayan","Chandrabhan","Chandradev","Chandraketu","Chandramauli","Chandramohan","Chandran","Chandranath","Chapal","Charak","Charuchandra","Chaaruchandra","Charuvrat","Chatur","Chaturaanan","Chaturbhuj","Chetan","Chaten","Chaitan","Chetanaanand","Chidaakaash","Chidaatma","Chidambar","Chidambaram","Chidananda","Chinmayanand","Chinmayananda","Chiranjeev","Chiranjeeve","Chitraksh","Daiwik","Daksha","Damodara","Dandak","Dandapaani","Darshan","Datta","Dayaamay","Dayamayee","Dayaananda","Dayaanidhi","Kin","Deenabandhu","Deepan","Deepankar","Dipankar","Deependra","Dipendra","Deepesh","Dipesh","Deeptanshu","Deeptendu","Diptendu","Deeptiman","Deeptimoy","Deeptimay","Dev","Deb","Devadatt","Devagya","Devajyoti","Devak","Devdan","Deven","Devesh","Deveshwar","Devi","Devvrat","Dhananjay","Dhanapati","Dhanpati","Dhanesh","Dhanu","Dhanvin","Dharmaketu","Dhruv","Dhyanesh","Dhyaneshwar","Digambar","Digambara","Dinakar","Dinkar","Dinesh","Divaakar","Divakar","Deevakar","Divjot","Dron","Drona","Dwaipayan","Dwaipayana","Eekalabya","Ekalavya","Ekaksh","Ekaaksh","Ekaling","Ekdant","Ekadant","Gajaadhar","Gajadhar","Gajbaahu","Gajabahu","Ganak","Ganaka","Ganapati","Gandharv","Gandharva","Ganesh","Gangesh","Garud","Garuda","Gati","Gatik","Gaurang","Gauraang","Gauranga","Gouranga","Gautam","Gautama","Goutam","Ghanaanand","Ghanshyam","Ghanashyam","Giri","Girik","Girika","Girindra","Giriraaj","Giriraj","Girish","Gopal","Gopaal","Gopi","Gopee","Gorakhnath","Gorakhanatha","Goswamee","Goswami","Gotum","Gautam","Govinda","Gobinda","Gudakesha","Gudakesa","Gurdev","Guru","Hari","Harinarayan","Harit","Himadri","Hiranmay","Hiranmaya","Hiranya","Inder","Indra","Indra","Jagadish","Jagadisha","Jagathi","Jagdeep","Jagdish","Jagmeet","Jahnu","Jai","Javas","Jay","Jitendra","Jitender","Jyotis","Kailash","Kama","Kamalesh","Kamlesh","Kanak","Kanaka","Kannan","Kannen","Karan","Karthik","Kartik","Karunanidhi","Kashyap","Kiran","Kirti","Keerti","Krishna","Krishnadas","Krishnadasa","Kumar","Lai","Lakshman","Laxman","Lakshmidhar","Lakshminath","Lal","Laal","Mahendra","Mohinder","Mahesh","Maheswar","Mani","Manik","Manikya","Manoj","Marut","Mayoor","Meghnad","Meghnath","Mohan","Mukesh","Mukul","Nagabhushanam","Nanda","Narayan","Narendra","Narinder","Naveen","Navin","Nawal","Naval","Nimit","Niranjan","Nirbhay","Niro","Param","Paramartha","Pran","Pranay","Prasad","Prathamesh","Prayag","Prem","Puneet","Purushottam","Rahul","Raj","Rajan","Rajendra","Rajinder","Rajiv","Rakesh","Ramesh","Rameshwar","Ranjit","Ranjeet","Ravi","Ritesh","Rohan","Rohit","Rudra","Sachin","Sameer","Samir","Sanjay","Sanka","Sarvin","Satish","Satyen","Shankar","Shantanu","Shashi","Sher","Shiv","Siddarth","Siddhran","Som","Somu","Somnath","Subhash","Subodh","Suman","Suresh","Surya","Suryakant","Suryakanta","Sushil","Susheel","Swami","Swapnil","Tapan","Tara","Tarun","Tej","Tejas","Trilochan","Trilochana","Trilok","Trilokesh","Triloki","Triloki Nath","Trilokanath","Tushar","Udai","Udit","Ujjawal","Ujjwal","Umang","Upendra","Uttam","Vasudev","Vasudeva","Vedang","Vedanga","Vidhya","Vidur","Vidhur","Vijay","Vimal","Vinay","Vishnu","Bishnu","Vishwamitra","Vyas","Yogendra","Yoginder","Yogesh"]})(Jxn);var D4a=Jxn.exports,Zxn={exports:{}};(function(t){t.exports=["Abbott","Achari","Acharya","Adiga","Agarwal","Ahluwalia","Ahuja","Arora","Asan","Bandopadhyay","Banerjee","Bharadwaj","Bhat","Butt","Bhattacharya","Bhattathiri","Chaturvedi","Chattopadhyay","Chopra","Desai","Deshpande","Devar","Dhawan","Dubashi","Dutta","Dwivedi","Embranthiri","Ganaka","Gandhi","Gill","Gowda","Guha","Guneta","Gupta","Iyer","Iyengar","Jain","Jha","Johar","Joshi","Kakkar","Kaniyar","Kapoor","Kaul","Kaur","Khan","Khanna","Khatri","Kocchar","Mahajan","Malik","Marar","Menon","Mehra","Mehrotra","Mishra","Mukhopadhyay","Nayar","Naik","Nair","Nambeesan","Namboothiri","Nehru","Pandey","Panicker","Patel","Patil","Pilla","Pillai","Pothuvaal","Prajapat","Rana","Reddy","Saini","Sethi","Shah","Sharma","Shukla","Singh","Sinha","Somayaji","Tagore","Talwar","Tandon","Trivedi","Varrier","Varma","Varman","Verma"]})(Zxn);var $4a=Zxn.exports;(function(t){var e={};t.exports=e,e.first_name=D4a,e.last_name=$4a})(Yxn);var F4a=Yxn.exports,Xxn={exports:{}},eEn={exports:{}};(function(t){t.exports=["### ###"]})(eEn);var j4a=eEn.exports,tEn={exports:{}};(function(t){t.exports=["Andaman and Nicobar Islands","Andra Pradesh","Arunachal Pradesh","Assam","Bihar","Chandigarh","Chhattisgarh","Dadar and Nagar Haveli","Daman and Diu","Delhi","Goa","Gujarat","Haryana","Himachal Pradesh","Jammu and Kashmir","Jharkhand","Karnataka","Kerala","Lakshadweep","Madya Pradesh","Maharashtra","Manipur","Meghalaya","Mizoram","Nagaland","Odisha","Pondicherr","Punjab","Rajasthan","Sikkim","Tamil Nadu","Telangana","Tripura","Uttar Pradesh","Uttarakhand","West Bengal"]})(tEn);var H4a=tEn.exports,nEn={exports:{}};(function(t){t.exports=["AN","AP","AR","AS","BR","CH","CG","DN","DD","DL","GA","GJ","HR","HP","JK","JH","KA","KL","LD","MP","MH","MN","ML","MZ","NL","OD","PY","PB","RJ","SK","TN","TS","TR","UP","UK","WB"]})(nEn);var U4a=nEn.exports,rEn={exports:{}};(function(t){t.exports=["India","Indian Republic","Bharat","Hindustan"]})(rEn);var z4a=rEn.exports;(function(t){var e={};t.exports=e,e.postcode=j4a,e.state=H4a,e.state_abbr=U4a,e.default_country=z4a})(Xxn);var G4a=Xxn.exports,iEn={exports:{}},aEn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.co.in","hotmail.com"]})(aEn);var V4a=aEn.exports,oEn={exports:{}};(function(t){t.exports=["in","com","biz","info","name","net","org","co.in"]})(oEn);var K4a=oEn.exports;(function(t){var e={};t.exports=e,e.free_email=V4a,e.domain_suffix=K4a})(iEn);var W4a=iEn.exports,sEn={exports:{}},lEn={exports:{}};(function(t){t.exports=["Pvt Ltd","Limited","Ltd","and Sons","Corp","Group","Brothers"]})(lEn);var Q4a=lEn.exports;(function(t){var e={};t.exports=e,e.suffix=Q4a})(sEn);var q4a=sEn.exports,cEn={exports:{}},uEn={exports:{}};(function(t){t.exports=["+919##-###-####","+919#########","+91-9##-#######","+918##-###-####","+918#########","+91-8##-#######","+917##-###-####","+917#########","+91-7##-#######","+916##-###-####","+916#########","+91-6##-#######"]})(uEn);var Y4a=uEn.exports;(function(t){var e={};t.exports=e,e.formats=Y4a})(cEn);var J4a=cEn.exports;(function(t){var e={};t.exports=e,e.title="English (India)",e.name=F4a,e.address=G4a,e.internet=W4a,e.company=q4a,e.phone_number=J4a})(qxn);var Z4a=qxn.exports,dEn={exports:{}},hEn={exports:{}},fEn={exports:{}};(function(t){t.exports=["com","us","biz","info","name","net","org"]})(fEn);var X4a=fEn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=X4a})(hEn);var eLa=hEn.exports,pEn={exports:{}},mEn={exports:{}};(function(t){t.exports=["United States","United States of America","USA"]})(mEn);var tLa=mEn.exports,gEn={exports:{}};(function(t){t.exports={AK:{min:99501,max:99950},AL:{min:35004,max:36925},AR:{min:71601,max:72959},AZ:{min:85001,max:86556},CA:{min:90001,max:96162},CO:{min:80001,max:81658},CT:{min:6001,max:6389},DC:{min:20001,max:20039},DE:{min:19701,max:19980},FL:{min:32004,max:34997},GA:{min:30001,max:31999},HI:{min:96701,max:96898},IA:{min:50001,max:52809},ID:{min:83201,max:83876},IL:{min:60001,max:62999},IN:{min:46001,max:47997},KS:{min:66002,max:67954},KY:{min:40003,max:42788},LA:{min:70001,max:71232},MA:{min:1001,max:2791},MD:{min:20331,max:20331},ME:{min:3901,max:4992},MI:{min:48001,max:49971},MN:{min:55001,max:56763},MO:{min:63001,max:65899},MS:{min:38601,max:39776},MT:{min:59001,max:59937},NC:{min:27006,max:28909},ND:{min:58001,max:58856},NE:{min:68001,max:68118},NH:{min:3031,max:3897},NJ:{min:7001,max:8989},NM:{min:87001,max:88441},NV:{min:88901,max:89883},NY:{min:6390,max:6390},OH:{min:43001,max:45999},OK:{min:73001,max:73199},OR:{min:97001,max:97920},PA:{min:15001,max:19640},PR:{min:0,max:0},RI:{min:2801,max:2940},SC:{min:29001,max:29948},SD:{min:57001,max:57799},TN:{min:37010,max:38589},TX:{min:73301,max:73301},UT:{min:84001,max:84784},VA:{min:20040,max:20041},VT:{min:5001,max:5495},WA:{min:98001,max:99403},WI:{min:53001,max:54990},WV:{min:24701,max:26886},WY:{min:82001,max:83128}}})(gEn);var nLa=gEn.exports;(function(t){var e={};t.exports=e,e.default_country=tLa,e.postcode_by_state=nLa})(pEn);var rLa=pEn.exports,vEn={exports:{}},AEn={exports:{}};(function(t){t.exports=["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","276","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","330","331","334","336","337","339","347","351","352","360","361","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","434","435","440","443","445","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","540","541","551","557","559","561","562","563","564","567","570","571","573","574","580","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","630","631","636","641","646","650","651","660","661","662","667","678","682","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","727","731","732","734","737","740","754","757","760","763","765","770","772","773","774","775","781","785","786","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","828","830","831","832","835","843","845","847","848","850","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","928","931","936","937","940","941","947","949","952","954","956","959","970","971","972","973","975","978","979","980","984","985","989"]})(AEn);var iLa=AEn.exports,yEn={exports:{}};(function(t){t.exports=["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","276","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","330","331","334","336","337","339","347","351","352","360","361","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","434","435","440","443","445","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","540","541","551","557","559","561","562","563","564","567","570","571","573","574","580","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","630","631","636","641","646","650","651","660","661","662","667","678","682","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","727","731","732","734","737","740","754","757","760","763","765","770","772","773","774","775","781","785","786","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","828","830","831","832","835","843","845","847","848","850","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","928","931","936","937","940","941","947","949","952","954","956","959","970","971","972","973","975","978","979","980","984","985","989"]})(yEn);var aLa=yEn.exports;(function(t){var e={};t.exports=e,e.area_code=iLa,e.exchange_code=aLa})(vEn);var oLa=vEn.exports;(function(t){var e={};t.exports=e,e.title="English (United States)",e.internet=eLa,e.address=rLa,e.phone_number=oLa})(dEn);var sLa=dEn.exports,bEn={exports:{}},xEn={exports:{}},EEn={exports:{}};(function(t){t.exports=["#{city_prefix}"]})(EEn);var lLa=EEn.exports,SEn={exports:{}};(function(t){t.exports=["Polokwane","Johannesburg","Pretoria","Tshwane","Durban","Pietermaritzburg","Nelspruit","Cape Town","Stellenbosch","Port Elizabeth","East London","Kimberley","Rustenburg","Bloemfontein "]})(SEn);var cLa=SEn.exports,wEn={exports:{}};(function(t){t.exports=["South Africa","The Republic of South Africa","SA","South Africa"]})(wEn);var uLa=wEn.exports,_En={exports:{}};(function(t){t.exports=["#####","####"]})(_En);var dLa=_En.exports,TEn={exports:{}};(function(t){t.exports=["Limpopo","Gauteng","Free State,","North West","Northern Cape","Western Cape,","KwaZulu-Natal","Mpumalanga","Eastern Cape"]})(TEn);var hLa=TEn.exports;(function(t){var e={};t.exports=e,e.city=lLa,e.city_prefix=cLa,e.default_country=uLa,e.postcode=dLa,e.state=hLa})(xEn);var fLa=xEn.exports,CEn={exports:{}},kEn={exports:{}};(function(t){t.exports=["co.za","com","org.za","info","net.za"]})(kEn);var pLa=kEn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=pLa})(CEn);var mLa=CEn.exports,REn={exports:{}},MEn={exports:{}};(function(t){t.exports=["#{first_name} #{last_name}","#{last_name} #{first_name}"]})(MEn);var gLa=MEn.exports,NEn={exports:{}};(function(t){t.exports=["James","John","Robert","Michael","William","David","Richard","Thomas","Charles","Christopher","Daniel","Dante","Paul","Mark","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Albert","Alfred","Kevin","Jason","Matthew","Gary","Timothy","Frank","Eric","Stephen","Andrew","Raymond","Greg","Joshua","Jerry","Dennis","Peter","Henry","Carl","Arthur","Ryan","Roger","Joe","Juan","Jonathan","Justin","Terry","Gerald","Keith","Samuel","Willie","Ralph","Roy","Brandon","Adam","Harry","Wayne","Billy","Steve","Louis","Jeremy","Howard","Eugene","Carlos","Russell","Bobby","Victor","Martin","Ernest","Phillip","Craig","Alan","Shawn","Sean","Philip","Chris","Johnny","Earl","Jimmy","Bryan","Tony","Luis","Mike","Stanley","Leonard","Nathan","Dale","Manuel","Rodney","Curtis","Norman","Allen","Marvin","Vincent","Glenn","Travis","Jacob","Kyle","Francis","Bradley","Joel","Edwin","Eddie","Barry","Alexander","Bernard","Marcus","Micheal","Theodore","Clifford","Miguel","Oscar","Jay","Jim","Tom","Calvin","Alex","Jon","Ronnie","Bill","Lloyd","Tommy","Leon","Derek","Warren","Darrell","Jerome","Leo","Tim","Wesley","Gordon","Dean","Greg","Jorge","Dustin","Derrick","Dan","Herman","Glen","Shane","Rick","Brent","Tyler","Marc","Ruben","Brett","Nathaniel","Rafael","Leslie","Edgar","Raul","Ben","Chester","Cecil","Duane","Franklin","Andre","Elmer","Brad","Gabriel","Ron","Mitchell","Roland","Arnold","Harvey","Jared","Adrian","Karl","Cory","Claude","Erik","Darryl","Jamie","Neil","Jessie","Christian","Ted","Mathew","Tyrone","Darren","Kurt","Allan","Guy","Max","Dwayne","Ian","Ken","Bob","Dave","Ivan","Johnnie","Sid","Sidney","Byron","Julian","Morris","Clifton","Willard","Daryl","Ross","Andy","Kirk","Terrence","Fred","Freddie","Wade","Stuart","Joey","Nick","Julius","Trevor","Luke","Gerard","Hubert","Shaun","Matt","Cameron","Neal","Wilbur","Grant","Jean","Johnathan","Rudolph","Rudy","Marco","Garry","Bennie","Ed","Colin","Earnest","Lucas","Benny","Noel","Garrett","Gregg","Devin","Kim","Simon","Rufus","Clint","Josh","Hugo","Erick","Frankie","Stewart","Terence","Conrad","Percy","Tommie","Jan"]})(NEn);var vLa=NEn.exports,IEn={exports:{}};(function(t){t.exports=["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Susan","Margaret","Dorothy","Lisa","Karen","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna","Rebecca","Kathleen","Amanda","Stephanie","Carolyn","Christine","Marie","Janet","Catherine","Ann","Joyce","Diane","Alice","Julie","Heather","Teresa","Evelyn","Cheryl","Katherine","Joan","Ashley","Judith","Rose","Janice","Kelly","Nicole","Judy","Christina","Kathy","Theresa","Beverly","Denise","Tammy","Irene","Jane","Lori","Rachel","Marilyn","Andrea","Kathryn","Louise","Sara","Anne","Jacqueline","Julia","Tina","Paula","Diana","Annie","Lillian","Emily","Robin","Rita","Tracy","Edna","Tiffany","Carmen","Cindy","Edith","Kim","Sherry","Shannon","Ethel","Ellen","Elaine","Charlotte","Monica","Pauline","Emma","Juanita","Anita","Rhonda","Hazel","Amber","Debbie","Clara","Lucille","Joanne","Eleanor","Megan","Alicia","Suzanne","Michele","Gail","Geraldine","Lauren","Cathy","Joann","Lorraine","Lynn","Erica","Beatrice","Bernice","Audrey","Yvonne","Annette","Samantha","Dana","Stacy","Ana","Renee","Ida","Vivian","Roberta","Melanie","Yolanda","Jeanette","Katie","Kristen","Vanessa","Alma","Sue","Elsie","Beth","Jeanne","Vicki","Carla","Tara","Rosemary","Eileen","Lucy","Stacey","Wilma","Gina","Kristin","Jessie","Natalie","Charlene","Melinda","Maureen","Colleen","Allison","Tamara","Joy","Claudia","Jackie","Marcia","Tanya","Nellie","Marlene","Heidi","Glenda","Lydia","Viola","Courtney","Marian","Stella","Caroline","Vickie","Maxine","Irma","Christy","Deanna","Hilda","Jennie","Nora","Nina","Cassandra","Leah","Priscilla","Carole","Olga","Billie","Dianne","Tracey","Leona","Jenny","Felicia","Sonia","Kristina","Shelly","Sherri","Erika","Katrina","Claire","Lindsay","Belinda","Margarita","Sheryl","Natasha","Molly","Cecilia","Kristi","Brandi","Blanche","Sandy","Rosie","Joanna","Iris","Eunice","Angie","Lynda","Madeline","Amelia","Monique","Maggie","Kayla","Sonya","Jan","Lee","Kristine","Candace","Alison","Yvette","Melody","Olivia","Kristy","Antoinette","Candice","Bridget","Karla","Celia","Gayle","Vicky","Lynne","Sheri","Marianne","Kara","Jacquelyn","Erma","Leticia","Krista","Roxanne","Robyn","Rosalie","Alexandra","Brooke","Bethany","Bernadette","Traci","Nichole","Krystal","Angelina","Nadine","Estelle","Dianna","Rosemarie","Desiree","Lynette","Cristina","Leigh","Meghan","Eloise","Rochelle","Jana","Gwen","Kerry","Jenna","Tricia","Laverne","Alexis","Tasha","Kellie","Sonja","Mandy","Lorene","Elsa","Camille","Tami","Elisa","Kristie"]})(IEn);var ALa=IEn.exports,PEn={exports:{}};(function(t){t.exports=["Rapulane","Nthabiseng","Kopano","Mpho","Lungelo","Ziyanda","Nqobile","Monde","Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Susan","Margaret","Dorothy","Lisa","Karen","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna","Rebecca","Kathleen","Amanda","Stephanie","Carolyn","Christine","Marie","Janet","Catherine","Ann","Joyce","Diane","Alice","Julie","Heather","Teresa","Evelyn","Cheryl","Katherine","Joan","Ashley","Judith","Rose","Janice","Kelly","Nicole","Judy","Christina","Kathy","Theresa","Beverly","Denise","Tammy","Irene","Jane","Lori","Rachel","Marilyn","Andrea","Kathryn","Louise","Sara","Anne","Jacqueline","Julia","Tina","Paula","Diana","Annie","Lillian","Emily","Robin","Rita","Tracy","Edna","Tiffany","Carmen","Cindy","Edith","Kim","Sherry","Shannon","Ethel","Ellen","Elaine","Charlotte","Monica","Pauline","Emma","Juanita","Anita","Rhonda","Hazel","Amber","Debbie","Clara","Lucille","Joanne","Eleanor","Megan","Alicia","Suzanne","Michele","Gail","Geraldine","Lauren","Cathy","Joann","Lorraine","Lynn","Erica","Beatrice","Bernice","Audrey","Yvonne","Annette","Samantha","Dana","Stacy","Ana","Renee","Ida","Vivian","Roberta","Melanie","Yolanda","Jeanette","Katie","Kristen","Vanessa","Alma","Sue","Elsie","Beth","Jeanne","Vicki","Carla","Tara","Rosemary","Eileen","Lucy","Stacey","Wilma","Gina","Kristin","Jessie","Natalie","Charlene","Melinda","Maureen","Colleen","Allison","Tamara","Joy","Claudia","Jackie","Marcia","Tanya","Nellie","Marlene","Heidi","Glenda","Lydia","Viola","Courtney","Marian","Stella","Caroline","Vickie","Maxine","Irma","Christy","Deanna","Hilda","Jennie","Nora","Nina","Cassandra","Leah","Priscilla","Carole","Olga","Billie","Dianne","Tracey","Leona","Jenny","Felicia","Sonia","Kristina","Shelly","Sherri","Erika","Katrina","Claire","Lindsay","Belinda","Margarita","Sheryl","Natasha","Molly","Cecilia","Kristi","Brandi","Blanche","Sandy","Rosie","Joanna","Iris","Eunice","Angie","Lynda","Madeline","Amelia","Monique","Maggie","Kayla","Sonya","Jan","Lee","Kristine","Candace","Alison","Yvette","Melody","Olivia","Kristy","Antoinette","Candice","Bridget","Karla","Celia","Gayle","Vicky","Lynne","Sheri","Marianne","Kara","Jacquelyn","Erma","Leticia","Krista","Roxanne","Robyn","Rosalie","Alexandra","Brooke","Bethany","Bernadette","Traci","Nichole","Krystal","Angelina","Nadine","Estelle","Dianna","Rosemarie","Desiree","Lynette","Cristina","Leigh","Meghan","Eloise","Rochelle","Jana","Gwen","Kerry","Jenna","Tricia","Laverne","Alexis","Tasha","Kellie","Sonja","Mandy","Lorene","Elsa","Camille","Tami","Elisa","Kristie","James","John","Robert","Michael","William","David","Richard","Thomas","Charles","Christopher","Daniel","Dante","Paul","Mark","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Albert","Alfred","Kevin","Jason","Matthew","Gary","Timothy","Frank","Eric","Stephen","Andrew","Raymond","Greg","Joshua","Jerry","Dennis","Peter","Henry","Carl","Arthur","Ryan","Roger","Joe","Juan","Jonathan","Justin","Terry","Gerald","Keith","Samuel","Willie","Ralph","Roy","Brandon","Adam","Harry","Wayne","Billy","Steve","Louis","Jeremy","Howard","Eugene","Carlos","Russell","Bobby","Victor","Martin","Ernest","Phillip","Craig","Alan","Shawn","Sean","Philip","Chris","Johnny","Earl","Jimmy","Bryan","Tony","Luis","Mike","Stanley","Leonard","Nathan","Dale","Manuel","Rodney","Curtis","Norman","Allen","Marvin","Vincent","Glenn","Travis","Jacob","Kyle","Francis","Bradley","Joel","Edwin","Eddie","Barry","Alexander","Bernard","Marcus","Micheal","Theodore","Clifford","Miguel","Oscar","Jay","Jim","Tom","Calvin","Alex","Jon","Ronnie","Bill","Lloyd","Tommy","Leon","Derek","Warren","Darrell","Jerome","Leo","Tim","Wesley","Gordon","Dean","Greg","Jorge","Dustin","Derrick","Dan","Herman","Glen","Shane","Rick","Brent","Tyler","Marc","Ruben","Brett","Nathaniel","Rafael","Leslie","Edgar","Raul","Ben","Chester","Cecil","Duane","Franklin","Andre","Elmer","Brad","Gabriel","Ron","Mitchell","Roland","Arnold","Harvey","Jared","Adrian","Karl","Cory","Claude","Erik","Darryl","Jamie","Neil","Jessie","Christian","Ted","Mathew","Tyrone","Darren","Kurt","Allan","Guy","Max","Dwayne","Ian","Ken","Bob","Dave","Ivan","Johnnie","Sid","Sidney","Byron","Julian","Morris","Clifton","Willard","Daryl","Ross","Andy","Kirk","Terrence","Fred","Freddie","Wade","Stuart","Joey","Nick","Julius","Trevor","Luke","Gerard","Hubert","Shaun","Matt","Cameron","Neal","Wilbur","Grant","Jean","Johnathan","Rudolph","Rudy","Marco","Garry","Bennie","Ed","Colin","Earnest","Lucas","Benny","Noel","Garrett","Gregg","Devin","Kim","Simon","Rufus","Clint","Josh","Hugo","Erick","Frankie","Stewart","Terence","Conrad","Percy","Tommie","Jan"]})(PEn);var yLa=PEn.exports,OEn={exports:{}};(function(t){t.exports=["Dlamini","Zulu","Mabunda","Makhanya","Khoza","Zuma","Zondi","Abbott","Adams","Anderson","Adcock","Ashley","Amla","Baloyi","Bailey","Barrows","Barton","Berge","Bernhard","Bernier","Boyle","Braun","Blanckenberg","Brekke","Brown","Bruen","Bacher","Boucher","Bromfield","Benjamin","Bongo","Bhana","Bhengu","Carter","Cameron","Champlin","Collins","Cullinan","Chetty","Cook","Connelly","Crooks","Cummings","Cassim","Dube","Dhlamini","Daniel","Davis","Dower","Dixon","Dickinson","Douglas","Deane","Ebert","Elworthy","Feest","Fuller","Fish","Fisher","Fichardt","Govender","Gupta","Gandhi","Gibson","Gibbs","Gleason","Goonam","Gordhan","Goodwin","Grady","Graham","Grant","Green","Greenholt","Grimes","Hlongwane","Harris","Hall","Horne","Harvey","Hearne","Heller","Herzog","Hudson","Hlatshwayo","Hitchinson","Hathorn","Hayworth","Henderson","Jacobs","Jacobson","Johnson","Johnston","Jones","Joseph","Kalyan","Kathrada","King","Klusener","Klein","Keith","Kennedy","Kuhn","Khumalu","Khoza","Kunene","Kempis","Kemp","Kubheka","Khuzwayo","Linsey","Lowe","Letsoalo","Mhlanga","Mabaso","Mazibuko","Moosa","Mhlongo","Mahlangu","Markham","Mansell","Marvin","Mayer","Mbatha","Maseko","Milton","Mkhize","Moses","McKenzie","McMillan","McLaren","McLean","Miller","Mills","Mitchell","Mchunu","Munsamy","Mnisi","Moen","Motaung","Mudau","Mohr","Monahan","Moore","Moosa","Moonsamy","Mphahlele","Morar","Molefe","Mthembu","Muller","Murray","Moloi","Mofokeng","Modise","Mtshali","Mathebula","Mthethwa","Maluleke","Mokwena","Motloung","Mahabeer","Mngomezulu","Nolan","Nair","Ndlovu","Nkosi","Ngcobo","Ngwenya","Ntuli","Nxumalo","Ngubane","Nhlapo","Ndaba","Nkomo","Oliphant","Ochse","O'Linn","Patel","Parker","Parkin","Pillay","Parnell","Peterson","Procter","Poore","Pollock","Powell","Price","Prince","Pithey","Reilly","Reid","Rowe","Roberts","Richards","Richardson","Schmidt","Schultz","Stewart","Symcox","Smith","Stokes","Sinclair","Singh","Shongwe","Sibiya","Schwarz","Snooke","Sithole","Terry","Thompson","Tromp","Tuckett","Taylor","Tsabalala","Wesley","Walsh","Weber","Weimann","Willoughby","White","Welch","West","Williamson","Ziemann","Albertyn","Bosman","Bester","Truter","Tsotetsi","Prinsloo","van Niekerk","Zimmerman","Venter","van den Berg","Xaba","Zulu","Zungu","Zuma","Zwane"]})(OEn);var bLa=OEn.exports;(function(t){var e={};t.exports=e,e.name=gLa,e.male_first_name=vLa,e.female_first_name=ALa,e.first_name=yLa,e.last_name=bLa})(REn);var xLa=REn.exports,LEn={exports:{}},BEn={exports:{}};(function(t){t.exports=["10","11","12","13","14","15","16","17","18","21","22","23","24","27","28","31","32","33","34","35","36","39","40","41","42","43","44","45","46","47","48","49","51","53","54","56","57","58"]})(BEn);var ELa=BEn.exports,DEn={exports:{}};(function(t){t.exports=["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","276","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","330","331","334","336","337","339","347","351","352","360","361","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","434","435","440","443","445","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","540","541","551","557","559","561","562","563","564","567","570","571","573","574","580","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","630","631","636","641","646","650","651","660","661","662","667","678","682","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","727","731","732","734","737","740","754","757","760","763","765","770","772","773","774","775","781","785","786","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","828","830","831","832","835","843","845","847","848","850","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","928","931","936","937","940","941","947","949","952","954","956","959","970","971","972","973","975","978","979","980","984","985","989"]})(DEn);var SLa=DEn.exports,$En={exports:{}};(function(t){t.exports=["(0##) ### ####","0## ### ####","+27 ## ### ####","01# ### #####","02# ### #####","03# ### #####","04# ### #####","05# ### #####","0800 ### ###","0860 ### ###","01#########","01# ########"]})($En);var wLa=$En.exports;(function(t){var e={};t.exports=e,e.area_code=ELa,e.exchange_code=SLa,e.formats=wLa})(LEn);var _La=LEn.exports,FEn={exports:{}},jEn={exports:{}};(function(t){t.exports=["+2760 ### ####","+2761 ### ####","+2763 ### ####","+2772 ### ####","+2773 ### ####","+2774 ### ####","+2776 ### ####","+2779 ### ####","+2781 ### ####","+2782 ### ####","+2783 ### ####","+2784 ### ####","082 ### ####","084 ### ####","083 ### ####","065 ### ####","082#######","082 #######"]})(jEn);var TLa=jEn.exports;(function(t){var e={};t.exports=e,e.formats=TLa})(FEn);var CLa=FEn.exports,HEn={exports:{}},UEn={exports:{}};(function(t){t.exports=["Pty Ltd","Ltd","CC"]})(UEn);var kLa=UEn.exports;(function(t){var e={};t.exports=e,e.suffix=kLa})(HEn);var RLa=HEn.exports;(function(t){var e={};t.exports=e,e.title="English (South Africa)",e.address=fLa,e.internet=mLa,e.name=xLa,e.phone_number=_La,e.cell_phone=CLa,e.company=RLa})(bEn);var MLa=bEn.exports,zEn={exports:{}},GEn={exports:{}},VEn={exports:{}};(function(t){t.exports=["Parla","Telde","Baracaldo","San Fernando","Torrevieja","Lugo","Santiago de Compostela","Gerona","Cáceres","Lorca","Coslada","Talavera de la Reina","El Puerto de Santa María","Cornellá de Llobregat","Avilés","Palencia","Gecho","Orihuela","Pontevedra","Pozuelo de Alarcón","Toledo","El Ejido","Guadalajara","Gandía","Ceuta","Ferrol","Chiclana de la Frontera","Manresa","Roquetas de Mar","Ciudad Real","Rubí","Benidorm","San Sebastían de los Reyes","Ponferrada","Zamora","Alcalá de Guadaira","Fuengirola","Mijas","Sanlúcar de Barrameda","La Línea de la Concepción","Majadahonda","Sagunto","El Prat de LLobregat","Viladecans","Linares","Alcoy","Irún","Estepona","Torremolinos","Rivas-Vaciamadrid","Molina de Segura","Paterna","Granollers","Santa Lucía de Tirajana","Motril","Cerdañola del Vallés","Arrecife","Segovia","Torrelavega","Elda","Mérida","Ávila","Valdemoro","Cuenta","Collado Villalba","Benalmádena","Mollet del Vallés","Puertollano","Madrid","Barcelona","Valencia","Sevilla","Zaragoza","Málaga","Murcia","Palma de Mallorca","Las Palmas de Gran Canaria","Bilbao","Córdoba","Alicante","Valladolid","Vigo","Gijón","Hospitalet de LLobregat","La Coruña","Granada","Vitoria","Elche","Santa Cruz de Tenerife","Oviedo","Badalona","Cartagena","Móstoles","Jerez de la Frontera","Tarrasa","Sabadell","Alcalá de Henares","Pamplona","Fuenlabrada","Almería","San Sebastián","Leganés","Santander","Burgos","Castellón de la Plana","Alcorcón","Albacete","Getafe","Salamanca","Huelva","Logroño","Badajoz","San Cristróbal de la Laguna","León","Tarragona","Cádiz","Lérida","Marbella","Mataró","Dos Hermanas","Santa Coloma de Gramanet","Jaén","Algeciras","Torrejón de Ardoz","Orense","Alcobendas","Reus","Calahorra","Inca"]})(VEn);var NLa=VEn.exports,KEn={exports:{}};(function(t){t.exports=["Afganistán","Albania","Argelia","Andorra","Angola","Argentina","Armenia","Aruba","Australia","Austria","Azerbayán","Bahamas","Barein","Bangladesh","Barbados","Bielorusia","Bélgica","Belice","Bermuda","Bután","Bolivia","Bosnia Herzegovina","Botswana","Brasil","Bulgaria","Burkina Faso","Burundi","Camboya","Camerún","Canada","Cabo Verde","Islas Caimán","Chad","Chile","China","Isla de Navidad","Colombia","Comodos","Congo","Costa Rica","Costa de Marfil","Croacia","Cuba","Chipre","República Checa","Dinamarca","Dominica","República Dominicana","Ecuador","Egipto","El Salvador","Guinea Ecuatorial","Eritrea","Estonia","Etiopía","Islas Faro","Fiji","Finlandia","Francia","Gabón","Gambia","Georgia","Alemania","Ghana","Grecia","Groenlandia","Granada","Guadalupe","Guam","Guatemala","Guinea","Guinea-Bisau","Guayana","Haiti","Honduras","Hong Kong","Hungria","Islandia","India","Indonesia","Iran","Irak","Irlanda","Italia","Jamaica","Japón","Jordania","Kazajistan","Kenia","Kiribati","Corea","Kuwait","Letonia","Líbano","Liberia","Liechtenstein","Lituania","Luxemburgo","Macao","Macedonia","Madagascar","Malawi","Malasia","Maldivas","Mali","Malta","Martinica","Mauritania","Méjico","Micronesia","Moldavia","Mónaco","Mongolia","Montenegro","Montserrat","Marruecos","Mozambique","Namibia","Nauru","Nepal","Holanda","Nueva Zelanda","Nicaragua","Niger","Nigeria","Noruega","Omán","Pakistan","Panamá","Papúa Nueva Guinea","Paraguay","Perú","Filipinas","Poland","Portugal","Puerto Rico","Rusia","Ruanda","Samoa","San Marino","Santo Tomé y Principe","Arabia Saudí","Senegal","Serbia","Seychelles","Sierra Leona","Singapur","Eslovaquia","Eslovenia","Somalia","España","Sri Lanka","Sudán","Suriname","Suecia","Suiza","Siria","Taiwan","Tajikistan","Tanzania","Tailandia","Timor-Leste","Togo","Tonga","Trinidad y Tobago","Tunez","Turquia","Uganda","Ucrania","Emiratos Árabes Unidos","Reino Unido","Estados Unidos de América","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"]})(KEn);var ILa=KEn.exports,WEn={exports:{}};(function(t){t.exports=[" s/n.",", #",", ##"," #"," ##"]})(WEn);var PLa=WEn.exports,QEn={exports:{}};(function(t){t.exports=["Aldea","Apartamento","Arrabal","Arroyo","Avenida","Bajada","Barranco","Barrio","Bloque","Calle","Calleja","Camino","Carretera","Caserio","Colegio","Colonia","Conjunto","Cuesta","Chalet","Edificio","Entrada","Escalinata","Explanada","Extramuros","Extrarradio","Ferrocarril","Glorieta","Gran Subida","Grupo","Huerta","Jardines","Lado","Lugar","Manzana","Masía","Mercado","Monte","Muelle","Municipio","Parcela","Parque","Partida","Pasaje","Paseo","Plaza","Poblado","Polígono","Prolongación","Puente","Puerta","Quinta","Ramal","Rambla","Rampa","Riera","Rincón","Ronda","Rua","Salida","Sector","Sección","Senda","Solar","Subida","Terrenos","Torrente","Travesía","Urbanización","Vía","Vía Pública"]})(QEn);var OLa=QEn.exports,qEn={exports:{}};(function(t){t.exports=["Esc. ###","Puerta ###"]})(qEn);var LLa=qEn.exports,YEn={exports:{}};(function(t){t.exports=["#####"]})(YEn);var BLa=YEn.exports,JEn={exports:{}};(function(t){t.exports=["Álava","Albacete","Alicante","Almería","Asturias","Ávila","Badajoz","Barcelona","Burgos","Cantabria","Castellón","Ciudad Real","Cuenca","Cáceres","Cádiz","Córdoba","Gerona","Granada","Guadalajara","Guipúzcoa","Huelva","Huesca","Islas Baleares","Jaén","La Coruña","La Rioja","Las Palmas","León","Lugo","lérida","Madrid","Murcia","Málaga","Navarra","Orense","Palencia","Pontevedra","Salamanca","Santa Cruz de Tenerife","Segovia","Sevilla","Soria","Tarragona","Teruel","Toledo","Valencia","Valladolid","Vizcaya","Zamora","Zaragoza"]})(JEn);var DLa=JEn.exports,ZEn={exports:{}};(function(t){t.exports=["Andalucía","Aragón","Principado de Asturias","Baleares","Canarias","Cantabria","Castilla-La Mancha","Castilla y León","Cataluña","Comunidad Valenciana","Extremadura","Galicia","La Rioja","Comunidad de Madrid","Navarra","País Vasco","Región de Murcia"]})(ZEn);var $La=ZEn.exports,XEn={exports:{}};(function(t){t.exports=["And","Ara","Ast","Bal","Can","Cbr","Man","Leo","Cat","Com","Ext","Gal","Rio","Mad","Nav","Vas","Mur"]})(XEn);var FLa=XEn.exports,eSn={exports:{}};(function(t){t.exports=["Pacífico/Midway","Pacífico/Pago_Pago","Pacífico/Honolulu","America/Juneau","America/Los_Angeles","America/Tijuana","America/Denver","America/Phoenix","America/Chihuahua","America/Mazatlan","America/Chicago","America/Regina","America/Mexico_City","America/Mexico_City","America/Monterrey","America/Guatemala","America/New_York","America/Indiana/Indianapolis","America/Bogota","America/Lima","America/Lima","America/Halifax","America/Caracas","America/La_Paz","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Guyana","America/Godthab","Atlantic/South_Georgia","Atlantic/Azores","Atlantic/Cape_Verde","Europa/Dublin","Europa/London","Europa/Lisbon","Europa/London","Africa/Casablanca","Africa/Monrovia","Etc/UTC","Europa/Belgrade","Europa/Bratislava","Europa/Budapest","Europa/Ljubljana","Europa/Prague","Europa/Sarajevo","Europa/Skopje","Europa/Warsaw","Europa/Zagreb","Europa/Brussels","Europa/Copenhagen","Europa/Madrid","Europa/Paris","Europa/Amsterdam","Europa/Berlin","Europa/Berlin","Europa/Rome","Europa/Stockholm","Europa/Vienna","Africa/Algiers","Europa/Bucharest","Africa/Cairo","Europa/Helsinki","Europa/Kiev","Europa/Riga","Europa/Sofia","Europa/Tallinn","Europa/Vilnius","Europa/Athens","Europa/Istanbul","Europa/Minsk","Asia/Jerusalen","Africa/Harare","Africa/Johannesburg","Europa/Moscú","Europa/Moscú","Europa/Moscú","Asia/Kuwait","Asia/Riyadh","Africa/Nairobi","Asia/Baghdad","Asia/Tehran","Asia/Muscat","Asia/Muscat","Asia/Baku","Asia/Tbilisi","Asia/Yerevan","Asia/Kabul","Asia/Yekaterinburg","Asia/Karachi","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kathmandu","Asia/Dhaka","Asia/Dhaka","Asia/Colombo","Asia/Almaty","Asia/Novosibirsk","Asia/Rangoon","Asia/Bangkok","Asia/Bangkok","Asia/Jakarta","Asia/Krasnoyarsk","Asia/Shanghai","Asia/Chongqing","Asia/Hong_Kong","Asia/Urumqi","Asia/Kuala_Lumpur","Asia/Singapore","Asia/Taipei","Australia/Perth","Asia/Irkutsk","Asia/Ulaanbaatar","Asia/Seoul","Asia/Tokyo","Asia/Tokyo","Asia/Tokyo","Asia/Yakutsk","Australia/Darwin","Australia/Adelaide","Australia/Melbourne","Australia/Melbourne","Australia/Sydney","Australia/Brisbane","Australia/Hobart","Asia/Vladivostok","Pacífico/Guam","Pacífico/Port_Moresby","Asia/Magadan","Asia/Magadan","Pacífico/Noumea","Pacífico/Fiji","Asia/Kamchatka","Pacífico/Majuro","Pacífico/Auckland","Pacífico/Auckland","Pacífico/Tongatapu","Pacífico/Fakaofo","Pacífico/Apia"]})(eSn);var jLa=eSn.exports,tSn={exports:{}};(function(t){t.exports=["#{city_prefix}"]})(tSn);var HLa=tSn.exports,nSn={exports:{}};(function(t){t.exports=["#{street_suffix} #{Name.first_name}","#{street_suffix} #{Name.first_name} #{Name.last_name}"]})(nSn);var ULa=nSn.exports,rSn={exports:{}};(function(t){t.exports=["#{street_name}#{building_number}","#{street_name}#{building_number} #{secondary_address}"]})(rSn);var zLa=rSn.exports,iSn={exports:{}};(function(t){t.exports=["España"]})(iSn);var GLa=iSn.exports;(function(t){var e={};t.exports=e,e.city_prefix=NLa,e.country=ILa,e.building_number=PLa,e.street_suffix=OLa,e.secondary_address=LLa,e.postcode=BLa,e.province=DLa,e.state=$La,e.state_abbr=FLa,e.time_zone=jLa,e.city=HLa,e.street_name=ULa,e.street_address=zLa,e.default_country=GLa})(GEn);var VLa=GEn.exports,aSn={exports:{}},oSn={exports:{}};(function(t){t.exports=["S.L.","e Hijos","S.A.","Hermanos"]})(oSn);var KLa=oSn.exports,sSn={exports:{}};(function(t){t.exports=["habilidad","acceso","adaptador","algoritmo","alianza","analista","aplicación","enfoque","arquitectura","archivo","inteligencia artificial","array","actitud","medición","gestión presupuestaria","capacidad","desafío","circuito","colaboración","complejidad","concepto","conglomeración","contingencia","núcleo","fidelidad","base de datos","data-warehouse","definición","emulación","codificar","encriptar","extranet","firmware","flexibilidad","focus group","previsión","base de trabajo","función","funcionalidad","Interfaz Gráfica","groupware","Interfaz gráfico de usuario","hardware","Soporte","jerarquía","conjunto","implementación","infraestructura","iniciativa","instalación","conjunto de instrucciones","interfaz","intranet","base del conocimiento","red de area local","aprovechar","matrices","metodologías","middleware","migración","modelo","moderador","monitorizar","arquitectura abierta","sistema abierto","orquestar","paradigma","paralelismo","política","portal","estructura de precios","proceso de mejora","producto","productividad","proyecto","proyección","protocolo","línea segura","software","solución","estandardización","estrategia","estructura","éxito","superestructura","soporte","sinergia","mediante","marco de tiempo","caja de herramientas","utilización","website","fuerza de trabajo"]})(sSn);var WLa=sSn.exports,lSn={exports:{}};(function(t){t.exports=["24 horas","24/7","3rd generación","4th generación","5th generación","6th generación","analizada","asimétrica","asíncrona","monitorizada por red","bidireccional","bifurcada","generada por el cliente","cliente servidor","coherente","cohesiva","compuesto","sensible al contexto","basado en el contexto","basado en contenido","dedicada","generado por la demanda","didactica","direccional","discreta","dinámica","potenciada","acompasada","ejecutiva","explícita","tolerante a fallos","innovadora","amplio ábanico","global","heurística","alto nivel","holística","homogénea","hibrida","incremental","intangible","interactiva","intermedia","local","logística","maximizada","metódica","misión crítica","móbil","modular","motivadora","multimedia","multiestado","multitarea","nacional","basado en necesidades","neutral","nueva generación","no-volátil","orientado a objetos","óptima","optimizada","radical","tiempo real","recíproca","regional","escalable","secundaria","orientada a soluciones","estable","estatica","sistemática","sistémica","tangible","terciaria","transicional","uniforme","valor añadido","vía web","defectos cero","tolerancia cero"]})(lSn);var QLa=lSn.exports,cSn={exports:{}};(function(t){t.exports=["Adaptativo","Avanzado","Asimilado","Automatizado","Equilibrado","Centrado en el negocio","Centralizado","Clonado","Compatible","Configurable","Multi grupo","Multi plataforma","Centrado en el usuario","Configurable","Descentralizado","Digitalizado","Distribuido","Diverso","Reducido","Mejorado","Para toda la empresa","Ergonómico","Exclusivo","Expandido","Extendido","Cara a cara","Enfocado","Totalmente configurable","Fundamental","Orígenes","Horizontal","Implementado","Innovador","Integrado","Intuitivo","Inverso","Gestionado","Obligatorio","Monitorizado","Multi canal","Multi lateral","Multi capa","En red","Orientado a objetos","Open-source","Operativo","Optimizado","Opcional","Orgánico","Organizado","Perseverando","Persistente","en fases","Polarizado","Pre-emptivo","Proactivo","Enfocado a benficios","Profundo","Programable","Progresivo","Public-key","Enfocado en la calidad","Reactivo","Realineado","Re-contextualizado","Re-implementado","Reducido","Ingeniería inversa","Robusto","Fácil","Seguro","Auto proporciona","Compartible","Intercambiable","Sincronizado","Orientado a equipos","Total","Universal","Mejorado","Actualizable","Centrado en el usuario","Amigable","Versatil","Virtual","Visionario"]})(cSn);var qLa=cSn.exports,uSn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name} y #{Name.last_name}","#{Name.last_name} #{Name.last_name} #{suffix}","#{Name.last_name}, #{Name.last_name} y #{Name.last_name} Asociados"]})(uSn);var YLa=uSn.exports;(function(t){var e={};t.exports=e,e.suffix=KLa,e.noun=WLa,e.descriptor=QLa,e.adjective=qLa,e.name=YLa})(aSn);var JLa=aSn.exports,dSn={exports:{}},hSn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(hSn);var ZLa=hSn.exports,fSn={exports:{}};(function(t){t.exports=["com","es","info","com.es","org"]})(fSn);var XLa=fSn.exports;(function(t){var e={};t.exports=e,e.free_email=ZLa,e.domain_suffix=XLa})(dSn);var eBa=dSn.exports,pSn={exports:{}},mSn={exports:{}};(function(t){t.exports=["Adán","Agustín","Alberto","Alejandro","Alfonso","Alfredo","Andrés","Antonio","Armando","Arturo","Benito","Benjamín","Bernardo","Carlos","César","Claudio","Clemente","Cristián","Cristóbal","Daniel","David","Diego","Eduardo","Emilio","Enrique","Ernesto","Esteban","Federico","Felipe","Fernando","Francisco","Gabriel","Gerardo","Germán","Gilberto","Gonzalo","Gregorio","Guillermo","Gustavo","Hernán","Homero","Horacio","Hugo","Ignacio","Jacobo","Jaime","Javier","Jerónimo","Jesús","Joaquín","Jorge","Jorge Luis","José","José Eduardo","José Emilio","José Luis","José María","Juan","Juan Carlos","Julio","Julio César","Lorenzo","Lucas","Luis","Luis Miguel","Manuel","Marco Antonio","Marcos","Mariano","Mario","Martín","Mateo","Miguel","Miguel Ángel","Nicolás","Octavio","Óscar","Pablo","Patricio","Pedro","Rafael","Ramiro","Ramón","Raúl","Ricardo","Roberto","Rodrigo","Rubén","Salvador","Samuel","Sancho","Santiago","Sergio","Teodoro","Timoteo","Tomás","Vicente","Víctor","Adela","Adriana","Alejandra","Alicia","Amalia","Ana","Ana Luisa","Ana María","Andrea","Anita","Ángela","Antonia","Ariadna","Barbara","Beatriz","Berta","Blanca","Caridad","Carla","Carlota","Carmen","Carolina","Catalina","Cecilia","Clara","Claudia","Concepción","Conchita","Cristina","Daniela","Débora","Diana","Dolores","Lola","Dorotea","Elena","Elisa","Eloisa","Elsa","Elvira","Emilia","Esperanza","Estela","Ester","Eva","Florencia","Francisca","Gabriela","Gloria","Graciela","Guadalupe","Guillermina","Inés","Irene","Isabel","Isabela","Josefina","Juana","Julia","Laura","Leonor","Leticia","Lilia","Lorena","Lourdes","Lucía","Luisa","Luz","Magdalena","Manuela","Marcela","Margarita","María","María del Carmen","María Cristina","María Elena","María Eugenia","María José","María Luisa","María Soledad","María Teresa","Mariana","Maricarmen","Marilú","Marisol","Marta","Mayte","Mercedes","Micaela","Mónica","Natalia","Norma","Olivia","Patricia","Pilar","Ramona","Raquel","Rebeca","Reina","Rocío","Rosa","Rosalia","Rosario","Sara","Silvia","Sofía","Soledad","Sonia","Susana","Teresa","Verónica","Victoria","Virginia","Yolanda"]})(mSn);var tBa=mSn.exports,gSn={exports:{}};(function(t){t.exports=["Abeyta","Abrego","Abreu","Acevedo","Acosta","Acuña","Adame","Adorno","Agosto","Aguayo","Aguilar","Aguilera","Aguirre","Alanis","Alaníz","Alarcón","Alba","Alcalá","Alcántar","Alcaraz","Alejandro","Alemán","Alfaro","Alicea","Almanza","Almaráz","Almonte","Alonso","Alonzo","Altamirano","Alva","Alvarado","Álvarez","Amador","Amaya","Anaya","Anguiano","Angulo","Aparicio","Apodaca","Aponte","Aragón","Araña","Aranda","Arce","Archuleta","Arellano","Arenas","Arevalo","Argüello","Arias","Armas","Armendáriz","Armenta","Armijo","Arredondo","Arreola","Arriaga","Arroyo","Arteaga","Atencio","Ávalos","Ávila","Avilés","Ayala","Baca","Badillo","Báez","Baeza","Bahena","Balderas","Ballesteros","Banda","Bañuelos","Barajas","Barela","Barragán","Barraza","Barrera","Barreto","Barrientos","Barrios","Batista","Becerra","Beltrán","Benavides","Benavídez","Benítez","Bermúdez","Bernal","Berríos","Betancourt","Blanco","Bonilla","Borrego","Botello","Bravo","Briones","Briseño","Brito","Bueno","Burgos","Bustamante","Bustos","Caballero","Cabán","Cabrera","Cadena","Caldera","Calderón","Calvillo","Camacho","Camarillo","Campos","Canales","Candelaria","Cano","Cantú","Caraballo","Carbajal","Cárdenas","Cardona","Carmona","Carranza","Carrasco","Carrasquillo","Carreón","Carrera","Carrero","Carrillo","Carrión","Carvajal","Casanova","Casares","Casarez","Casas","Casillas","Castañeda","Castellanos","Castillo","Castro","Cavazos","Cazares","Ceballos","Cedillo","Ceja","Centeno","Cepeda","Cerda","Cervantes","Cervántez","Chacón","Chapa","Chavarría","Chávez","Cintrón","Cisneros","Collado","Collazo","Colón","Colunga","Concepción","Contreras","Cordero","Córdova","Cornejo","Corona","Coronado","Corral","Corrales","Correa","Cortés","Cortéz","Cotto","Covarrubias","Crespo","Cruz","Cuellar","Curiel","Dávila","de Anda","de Jesús","Delacrúz","Delafuente","Delagarza","Delao","Delapaz","Delarosa","Delatorre","Deleón","Delgadillo","Delgado","Delrío","Delvalle","Díaz","Domínguez","Duarte","Dueñas","Durán","Echevarría","Elizondo","Enríquez","Escalante","Escamilla","Escobar","Escobedo","Esparza","Espinal","Espino","Espinosa","Espinoza","Esquibel","Esquivel","Estévez","Estrada","Fajardo","Farías","Feliciano","Fernández","Ferrer","Fierro","Figueroa","Flores","Flórez","Fonseca","Frías","Fuentes","Gaitán","Galarza","Galindo","Gallardo","Gallegos","Galván","Gálvez","Gamboa","Gámez","Gaona","Garay","García","Garibay","Garica","Garrido","Garza","Gastélum","Gaytán","Gil","Girón","Godínez","Godoy","Gómez","González","Gracia","Granado","Granados","Griego","Grijalva","Guajardo","Guardado","Guerra","Guerrero","Guevara","Guillén","Gurule","Gutiérrez","Guzmán","Haro","Henríquez","Heredia","Hernández","Herrera","Hidalgo","Hinojosa","Holguín","Huerta","Hurtado","Ibarra","Iglesias","Irizarry","Jaime","Jaimes","Jáquez","Jaramillo","Jasso","Jiménez","Juárez","Jurado","Laboy","Lara","Laureano","Leal","Lebrón","Ledesma","Leiva","Lemus","León","Lerma","Leyva","Limón","Linares","Lira","Llamas","Loera","Lomeli","Longoria","López","Lovato","Loya","Lozada","Lozano","Lucero","Lucio","Luevano","Lugo","Luna","Macías","Madera","Madrid","Madrigal","Maestas","Magaña","Malave","Maldonado","Manzanares","Mares","Marín","Márquez","Marrero","Marroquín","Martínez","Mascareñas","Mata","Mateo","Matías","Matos","Maya","Mayorga","Medina","Medrano","Mejía","Meléndez","Melgar","Mena","Menchaca","Méndez","Mendoza","Menéndez","Meraz","Mercado","Merino","Mesa","Meza","Miramontes","Miranda","Mireles","Mojica","Molina","Mondragón","Monroy","Montalvo","Montañez","Montaño","Montemayor","Montenegro","Montero","Montes","Montéz","Montoya","Mora","Morales","Moreno","Mota","Moya","Munguía","Muñiz","Muñoz","Murillo","Muro","Nájera","Naranjo","Narváez","Nava","Navarrete","Navarro","Nazario","Negrete","Negrón","Nevárez","Nieto","Nieves","Niño","Noriega","Núñez","Ocampo","Ocasio","Ochoa","Ojeda","Olivares","Olivárez","Olivas","Olivera","Olivo","Olmos","Olvera","Ontiveros","Oquendo","Ordóñez","Orellana","Ornelas","Orosco","Orozco","Orta","Ortega","Ortiz","Osorio","Otero","Ozuna","Pabón","Pacheco","Padilla","Padrón","Páez","Pagan","Palacios","Palomino","Palomo","Pantoja","Paredes","Parra","Partida","Patiño","Paz","Pedraza","Pedroza","Pelayo","Peña","Perales","Peralta","Perea","Pérez","Pichardo","Piña","Pineda","Pizarro","Polanco","Ponce","Porras","Portillo","Posada","Prado","Preciado","Prieto","Puente","Puga","Pulido","Quesada","Quezada","Quiñones","Quiñónez","Quintana","Quintanilla","Quintero","Quiróz","Rael","Ramírez","Ramos","Rangel","Rascón","Raya","Razo","Regalado","Rendón","Rentería","Reséndez","Reyes","Reyna","Reynoso","Rico","Rincón","Riojas","Ríos","Rivas","Rivera","Rivero","Robledo","Robles","Rocha","Rodarte","Rodríguez","Rojas","Rojo","Roldán","Rolón","Romero","Romo","Roque","Rosado","Rosales","Rosario","Rosas","Roybal","Rubio","Ruelas","Ruíz","Saavedra","Sáenz","Saiz","Salas","Salazar","Salcedo","Salcido","Saldaña","Saldivar","Salgado","Salinas","Samaniego","Sanabria","Sánchez","Sandoval","Santacruz","Santana","Santiago","Santillán","Sarabia","Sauceda","Saucedo","Sedillo","Segovia","Segura","Sepúlveda","Serna","Serrano","Serrato","Sevilla","Sierra","Sisneros","Solano","Solís","Soliz","Solorio","Solorzano","Soria","Sosa","Sotelo","Soto","Suárez","Tafoya","Tamayo","Tamez","Tapia","Tejada","Tejeda","Téllez","Tello","Terán","Terrazas","Tijerina","Tirado","Toledo","Toro","Torres","Tórrez","Tovar","Trejo","Treviño","Trujillo","Ulibarri","Ulloa","Urbina","Ureña","Urías","Uribe","Urrutia","Vaca","Valadez","Valdés","Valdez","Valdivia","Valencia","Valentín","Valenzuela","Valladares","Valle","Vallejo","Valles","Valverde","Vanegas","Varela","Vargas","Vázquez","Vega","Vela","Velasco","Velásquez","Velázquez","Vélez","Véliz","Venegas","Vera","Verdugo","Verduzco","Vergara","Viera","Vigil","Villa","Villagómez","Villalobos","Villalpando","Villanueva","Villarreal","Villaseñor","Villegas","Yáñez","Ybarra","Zambrano","Zamora","Zamudio","Zapata","Zaragoza","Zarate","Zavala","Zayas","Zelaya","Zepeda","Zúñiga"]})(gSn);var nBa=gSn.exports,vSn={exports:{}};(function(t){t.exports=["Josep","Ángel","Daniel","Manuel","Pedro","Salvador","Rubén","Iván","Miguel","Jorge","Sergi","Josep","Ricardo","Carles","Jordi","Manuel"]})(vSn);var rBa=vSn.exports,ASn={exports:{}};(function(t){t.exports=["Marta","Andrea","Ana","Anni","Laura","Maica","Laura","Lorena","Matilde","Jennifer","Roser"]})(ASn);var iBa=ASn.exports,ySn={exports:{}};(function(t){t.exports=["Sr.","Sra.","Sta."]})(ySn);var aBa=ySn.exports,bSn={exports:{}};(function(t){t.exports=["Jr.","Sr.","I","II","III","IV","V","MD","DDS","PhD","DVM"]})(bSn);var oBa=bSn.exports,xSn={exports:{}};(function(t){t.exports={descriptor:["Jefe","Senior","Directo","Corporativo","Dinánmico","Futuro","Producto","Nacional","Regional","Distrito","Central","Global","Cliente","Inversor","International","Heredado","Adelante","Interno","Humano","Gerente","Director"],level:["Soluciones","Programa","Marca","Seguridada","Investigación","Marketing","Normas","Implementación","Integración","Funcionalidad","Respuesta","Paradigma","Tácticas","Identidad","Mercados","Grupo","División","Aplicaciones","Optimización","Operaciones","Infraestructura","Intranet","Comunicaciones","Web","Calidad","Seguro","Mobilidad","Cuentas","Datos","Creativo","Configuración","Contabilidad","Interacciones","Factores","Usabilidad","Métricas"],job:["Supervisor","Asociado","Ejecutivo","Relacciones","Oficial","Gerente","Ingeniero","Especialista","Director","Coordinador","Administrador","Arquitecto","Analista","Diseñador","Planificador","Técnico","Funcionario","Desarrollador","Productor","Consultor","Asistente","Facilitador","Agente","Representante","Estratega"]}})(xSn);var sBa=xSn.exports,ESn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name} #{last_name}","#{first_name} #{last_name} #{last_name}","#{first_name} #{last_name} #{last_name}","#{first_name} #{last_name} #{last_name}","#{first_name} #{last_name} #{last_name}"]})(ESn);var lBa=ESn.exports;(function(t){var e={};t.exports=e,e.first_name=tBa,e.last_name=nBa,e.male_first_name=rBa,e.female_first_name=iBa,e.prefix=aBa,e.suffix=oBa,e.title=sBa,e.name=lBa})(pSn);var cBa=pSn.exports,SSn={exports:{}},wSn={exports:{}};(function(t){t.exports=["9##-###-###","9##.###.###","9## ### ###","9########"]})(wSn);var uBa=wSn.exports;(function(t){var e={};t.exports=e,e.formats=uBa})(SSn);var dBa=SSn.exports,_Sn={exports:{}},TSn={exports:{}};(function(t){t.exports=["6##-###-###","6##.###.###","6## ### ###","6########"]})(TSn);var hBa=TSn.exports;(function(t){var e={};t.exports=e,e.formats=hBa})(_Sn);var fBa=_Sn.exports,CSn={exports:{}},kSn={exports:{}};(function(t){t.exports=["Rojo","Azul","Negro","Gris","Blanco","Amarillo","Verde","Morado","Violeta"]})(kSn);var pBa=kSn.exports,RSn={exports:{}};(function(t){t.exports=["Librería","Deportes","Videojuegos","Electrónica","Moda","Joyería","Marroquinería","Juguetería","Mascotas","Bebes","Bricolaje","Informática","Salud","Parafarmacia","Papelería","Cine","Música","Hogar","Decoración"]})(RSn);var mBa=RSn.exports,MSn={exports:{}};(function(t){t.exports={adjective:["Pequeño","Ergonómico","Rústico","Inteligente","Increible","Fantástico","Práctico","Sorprendente","Genérico","Artesanal","Hecho a mano","Guapo","Guapa","Refinado","Sabroso"],material:["Acero","Madera","Plástico","Algodón","Granito","Metal","Ladrillo","Hormigon"],product:["Silla","Coche","Ordenador","Teclado","Raton","Bicicleta","Pelota","Guantes","Pantalones","Camiseta","Mesa","Zapatos","Gorro","Toallas","Sopa","Atún","Pollo","Pescado","Queso","Bacon","Pizza","Ensalada","Salchichas","Patatas fritas"]}})(MSn);var gBa=MSn.exports;(function(t){var e={};t.exports=e,e.color=pBa,e.department=mBa,e.product_name=gBa})(CSn);var vBa=CSn.exports;(function(t){var e={};t.exports=e,e.title="Spanish",e.address=VLa,e.company=JLa,e.internet=eBa,e.name=cBa,e.phone_number=dBa,e.cell_phone=fBa,e.commerce=vBa})(zEn);var ABa=zEn.exports,NSn={exports:{}},ISn={exports:{}},PSn={exports:{}};(function(t){t.exports=["Aarón","Abraham","Adán","Agustín","Alan","Alberto","Alejandro","Alexander","Alexis","Alfonso","Alfredo","Andrés","Ángel Daniel","Ángel Gabriel","Antonio","Armando","Arturo","Axel","Benito","Benjamín","Bernardo","Brandon","Brayan","Carlos","César","Claudio","Clemente","Cristian","Cristobal","Damián","Daniel","David","Diego","Eduardo","Elías","Emiliano","Emilio","Emilio","Emmanuel","Enrique","Erick","Ernesto","Esteban","Federico","Felipe","Fernando","Fernando Javier","Francisco","Francisco Javier","Gabriel","Gael","Gerardo","Germán","Gilberto","Gonzalo","Gregorio","Guillermo","Gustavo","Hernán","Homero","Horacio","Hugo","Ignacio","Iker","Isaac","Isaias","Israel","Ivan","Jacobo","Jaime","Javier","Jerónimo","Jesús","Joaquín","Jorge","Jorge Luis","José","José Antonio","Jose Daniel","José Eduardo","José Emilio","José Luis","José María","José Miguel","Juan","Juan Carlos","Juan Manuel","Juan Pablo","Julio","Julio César","Kevin","Leonardo","Lorenzo","Lucas","Luis","Luis Ángel","Luis Fernando","Luis Gabino","Luis Miguel","Manuel","Marco Antonio","Marcos","Mariano","Mario","Martín","Mateo","Matías","Mauricio","Maximiliano","Miguel","Miguel Ángel","Nicolás","Octavio","Óscar","Pablo","Patricio","Pedro","Rafael","Ramiro","Ramón","Raúl","Ricardo","Roberto","Rodrigo","Rubén","Salvador","Samuel","Sancho","Santiago","Saúl","Sebastian","Sergio","Tadeo","Teodoro","Timoteo","Tomás","Uriel","Vicente","Víctor","Victor Manuel","Adriana","Alejandra","Alicia","Amalia","Ana","Ana Luisa","Ana María","Andrea","Ángela","Anita","Antonia","Araceli","Ariadna","Barbara","Beatriz","Berta","Blanca","Caridad","Carla","Carlota","Carmen","Carolina","Catalina","Cecilia","Clara","Claudia","Concepción","Conchita","Cristina","Daniela","Débora","Diana","Dolores","Dorotea","Elena","Elisa","Elizabeth","Eloisa","Elsa","Elvira","Emilia","Esperanza","Estela","Ester","Eva","Florencia","Francisca","Gabriela","Gloria","Graciela","Guadalupe","Guillermina","Inés","Irene","Isabel","Isabela","Josefina","Juana","Julia","Laura","Leonor","Leticia","Lilia","Lola","Lorena","Lourdes","Lucia","Luisa","Luz","Magdalena","Manuela","Marcela","Margarita","María","María Cristina","María de Jesús","María de los Ángeles","María del Carmen","María Elena","María Eugenia","María Guadalupe","María José","María Luisa","María Soledad","María Teresa","Mariana","Maricarmen","Marilu","Marisol","Marta","Mayte","Mercedes","Micaela","Mónica","Natalia","Norma","Olivia","Patricia","Pilar","Ramona","Raquel","Rebeca","Reina","Rocio","Rosa","Rosa María","Rosalia","Rosario","Sara","Silvia","Sofia","Soledad","Sonia","Susana","Teresa","Verónica","Victoria","Virginia","Xochitl","Yolanda","Abigail","Abril","Adela","Alexa","Alondra Romina","Ana Sofía","Ana Victoria","Camila","Carolina","Daniela","Dulce María","Emily","Esmeralda","Estefanía","Evelyn","Fatima","Ivanna","Jazmin","Jennifer","Jimena","Julieta","Kimberly","Liliana","Lizbeth","María Fernanda","Melany","Melissa","Miranda","Monserrat","Naomi","Natalia","Nicole","Paola","Paulina","Regina","Renata","Valentina","Valeria","Vanessa","Ximena","Ximena Guadalupe","Yamileth","Yaretzi","Zoe"]})(PSn);var yBa=PSn.exports,OSn={exports:{}};(function(t){t.exports=["Abeyta","Abrego","Abreu","Acevedo","Acosta","Acuña","Adame","Adorno","Agosto","Aguayo","Águilar","Aguilera","Aguirre","Alanis","Alaniz","Alarcón","Alba","Alcala","Alcántar","Alcaraz","Alejandro","Alemán","Alfaro","Alicea","Almanza","Almaraz","Almonte","Alonso","Alonzo","Altamirano","Alva","Alvarado","Alvarez","Amador","Amaya","Anaya","Anguiano","Angulo","Aparicio","Apodaca","Aponte","Aragón","Aranda","Araña","Arce","Archuleta","Arellano","Arenas","Arevalo","Arguello","Arias","Armas","Armendáriz","Armenta","Armijo","Arredondo","Arreola","Arriaga","Arroyo","Arteaga","Atencio","Ávalos","Ávila","Avilés","Ayala","Baca","Badillo","Báez","Baeza","Bahena","Balderas","Ballesteros","Banda","Bañuelos","Barajas","Barela","Barragán","Barraza","Barrera","Barreto","Barrientos","Barrios","Batista","Becerra","Beltrán","Benavides","Benavídez","Benítez","Bermúdez","Bernal","Berríos","Bétancourt","Blanco","Bonilla","Borrego","Botello","Bravo","Briones","Briseño","Brito","Bueno","Burgos","Bustamante","Bustos","Caballero","Cabán","Cabrera","Cadena","Caldera","Calderón","Calvillo","Camacho","Camarillo","Campos","Canales","Candelaria","Cano","Cantú","Caraballo","Carbajal","Cardenas","Cardona","Carmona","Carranza","Carrasco","Carrasquillo","Carreón","Carrera","Carrero","Carrillo","Carrion","Carvajal","Casanova","Casares","Casárez","Casas","Casillas","Castañeda","Castellanos","Castillo","Castro","Cavazos","Cazares","Ceballos","Cedillo","Ceja","Centeno","Cepeda","Cerda","Cervantes","Cervántez","Chacón","Chapa","Chavarría","Chávez","Cintrón","Cisneros","Collado","Collazo","Colón","Colunga","Concepción","Contreras","Cordero","Córdova","Cornejo","Corona","Coronado","Corral","Corrales","Correa","Cortés","Cortez","Cotto","Covarrubias","Crespo","Cruz","Cuellar","Curiel","Dávila","de Anda","de Jesús","Delacrúz","Delafuente","Delagarza","Delao","Delapaz","Delarosa","Delatorre","Deleón","Delgadillo","Delgado","Delrío","Delvalle","Díaz","Domínguez","Domínquez","Duarte","Dueñas","Duran","Echevarría","Elizondo","Enríquez","Escalante","Escamilla","Escobar","Escobedo","Esparza","Espinal","Espino","Espinosa","Espinoza","Esquibel","Esquivel","Estévez","Estrada","Fajardo","Farías","Feliciano","Fernández","Ferrer","Fierro","Figueroa","Flores","Flórez","Fonseca","Franco","Frías","Fuentes","Gaitán","Galarza","Galindo","Gallardo","Gallegos","Galván","Gálvez","Gamboa","Gamez","Gaona","Garay","García","Garibay","Garica","Garrido","Garza","Gastélum","Gaytán","Gil","Girón","Godínez","Godoy","Gollum","Gómez","Gonzales","González","Gracia","Granado","Granados","Griego","Grijalva","Guajardo","Guardado","Guerra","Guerrero","Guevara","Guillen","Gurule","Gutiérrez","Guzmán","Haro","Henríquez","Heredia","Hernádez","Hernandes","Hernández","Herrera","Hidalgo","Hinojosa","Holguín","Huerta","Huixtlacatl","Hurtado","Ibarra","Iglesias","Irizarry","Jaime","Jaimes","Jáquez","Jaramillo","Jasso","Jiménez","Jimínez","Juárez","Jurado","Kadar rodriguez","Kamal","Kamat","Kanaria","Kanea","Kanimal","Kano","Kanzaki","Kaplan","Kara","Karam","Karan","Kardache soto","Karem","Karen","Khalid","Kindelan","Koenig","Korta","Korta hernandez","Kortajarena","Kranz sans","Krasnova","Krauel natera","Kuzmina","Kyra","Laboy","Lara","Laureano","Leal","Lebrón","Ledesma","Leiva","Lemus","León","Lerma","Leyva","Limón","Linares","Lira","Llamas","Loera","Lomeli","Longoria","López","Lovato","Loya","Lozada","Lozano","Lucero","Lucio","Luevano","Lugo","Luna","Macías","Madera","Madrid","Madrigal","Maestas","Magaña","Malave","Maldonado","Manzanares","Mares","Marín","Márquez","Marrero","Marroquín","Martínez","Mascareñas","Mata","Mateo","Matías","Matos","Maya","Mayorga","Medina","Medrano","Mejía","Meléndez","Melgar","Mena","Menchaca","Méndez","Mendoza","Menéndez","Meraz","Mercado","Merino","Mesa","Meza","Miramontes","Miranda","Mireles","Mojica","Molina","Mondragón","Monroy","Montalvo","Montañez","Montaño","Montemayor","Montenegro","Montero","Montes","Montez","Montoya","Mora","Morales","Moreno","Mota","Moya","Munguía","Muñiz","Muñoz","Murillo","Muro","Nájera","Naranjo","Narváez","Nava","Navarrete","Navarro","Nazario","Negrete","Negrón","Nevárez","Nieto","Nieves","Niño","Noriega","Núñez","Ñañez","Ocampo","Ocasio","Ochoa","Ojeda","Olivares","Olivárez","Olivas","Olivera","Olivo","Olmos","Olvera","Ontiveros","Oquendo","Ordóñez","Orellana","Ornelas","Orosco","Orozco","Orta","Ortega","Ortiz","Osorio","Otero","Ozuna","Pabón","Pacheco","Padilla","Padrón","Páez","Pagan","Palacios","Palomino","Palomo","Pantoja","Paredes","Parra","Partida","Patiño","Paz","Pedraza","Pedroza","Pelayo","Peña","Perales","Peralta","Perea","Peres","Pérez","Pichardo","Pineda","Piña","Pizarro","Polanco","Ponce","Porras","Portillo","Posada","Prado","Preciado","Prieto","Puente","Puga","Pulido","Quesada","Quevedo","Quezada","Quinta","Quintairos","Quintana","Quintanilla","Quintero","Quintero cruz","Quintero de la cruz","Quiñones","Quiñónez","Quiros","Quiroz","Rael","Ramírez","Ramón","Ramos","Rangel","Rascón","Raya","Razo","Regalado","Rendón","Rentería","Reséndez","Reyes","Reyna","Reynoso","Rico","Rincón","Riojas","Ríos","Rivas","Rivera","Rivero","Robledo","Robles","Rocha","Rodarte","Rodrígez","Rodríguez","Rodríquez","Rojas","Rojo","Roldán","Rolón","Romero","Romo","Roque","Rosado","Rosales","Rosario","Rosas","Roybal","Rubio","Ruelas","Ruiz","Saavedra","Sáenz","Saiz","Salas","Salazar","Salcedo","Salcido","Saldaña","Saldivar","Salgado","Salinas","Samaniego","Sanabria","Sanches","Sánchez","Sandoval","Santacruz","Santana","Santiago","Santillán","Sarabia","Sauceda","Saucedo","Sedillo","Segovia","Segura","Sepúlveda","Serna","Serrano","Serrato","Sevilla","Sierra","Sisneros","Solano","Solís","Soliz","Solorio","Solorzano","Soria","Sosa","Sotelo","Soto","Suárez","Tafoya","Tamayo","Tamez","Tapia","Tejada","Tejeda","Téllez","Tello","Terán","Terrazas","Tijerina","Tirado","Toledo","Toro","Torres","Tórrez","Tovar","Trejo","Treviño","Trujillo","Ulibarri","Ulloa","Urbina","Ureña","Urías","Uribe","Urrutia","Vaca","Valadez","Valdés","Valdez","Valdivia","Valencia","Valentín","Valenzuela","Valladares","Valle","Vallejo","Valles","Valverde","Vanegas","Varela","Vargas","Vásquez","Vázquez","Vega","Vela","Velasco","Velásquez","Velázquez","Vélez","Véliz","Venegas","Vera","Verdugo","Verduzco","Vergara","Viera","Vigil","Villa","Villagómez","Villalobos","Villalpando","Villanueva","Villareal","Villarreal","Villaseñor","Villegas","Xacon","Xairo Belmonte","Xana","Xenia","Xiana","Xicoy","Yago","Yami","Yanes","Yáñez","Ybarra","Yebra","Yunta","Zabaleta","Zamarreno","Zamarripa","Zambrana","Zambrano","Zamora","Zamudio","Zapata","Zaragoza","Zarate","Zavala","Zayas","Zelaya","Zepeda","Zúñiga"]})(OSn);var bBa=OSn.exports,LSn={exports:{}};(function(t){t.exports=["Sr.","Sra.","Sta."]})(LSn);var xBa=LSn.exports,BSn={exports:{}};(function(t){t.exports=["Jr.","Sr.","I","II","III","IV","V","MD","DDS","PhD","DVM","Ing.","Lic.","Dr.","Mtro."]})(BSn);var EBa=BSn.exports,DSn={exports:{}};(function(t){t.exports={descriptor:["Jefe","Senior","Directo","Corporativo","Dinánmico","Futuro","Producto","Nacional","Regional","Distrito","Central","Global","Cliente","Inversor","International","Heredado","Adelante","Interno","Humano","Gerente","SubGerente","Director"],level:["Soluciones","Programa","Marca","Seguridad","Investigación","Marketing","Normas","Implementación","Integración","Funcionalidad","Respuesta","Paradigma","Tácticas","Identidad","Mercados","Grupo","División","Aplicaciones","Optimización","Operaciones","Infraestructura","Intranet","Comunicaciones","Web","Calidad","Seguro","Mobilidad","Cuentas","Datos","Creativo","Configuración","Contabilidad","Interacciones","Factores","Usabilidad","Métricas"],job:["Supervisor","Asociado","Ejecutivo","Relacciones","Oficial","Gerente","Ingeniero","Especialista","Director","Coordinador","Administrador","Arquitecto","Analista","Diseñador","Planificador","Técnico","Funcionario","Desarrollador","Productor","Consultor","Asistente","Facilitador","Agente","Representante","Estratega","Scrum Master","Scrum Owner","Product Owner","Scrum Developer"]}})(DSn);var SBa=DSn.exports,$Sn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name} #{last_name}","#{first_name} #{last_name} de #{last_name}","#{suffix} #{first_name} #{last_name} #{last_name}","#{first_name} #{last_name} #{last_name}","#{first_name} #{last_name} #{last_name}"]})($Sn);var wBa=$Sn.exports;(function(t){var e={};t.exports=e,e.first_name=yBa,e.last_name=bBa,e.prefix=xBa,e.suffix=EBa,e.title=SBa,e.name=wBa})(ISn);var _Ba=ISn.exports,FSn={exports:{}},jSn={exports:{}};(function(t){t.exports=["Aguascalientes","Apodaca","Buenavista","Campeche","Cancún","Cárdenas","Celaya","Chalco","Chetumal","Chicoloapan","Chignahuapan","Chihuahua","Chilpancingo","Chimalhuacán","Ciudad Acuña","Ciudad de México","Ciudad del Carmen","Ciudad López Mateos","Ciudad Madero","Ciudad Obregón","Ciudad Valles","Ciudad Victoria","Coatzacoalcos","Colima-Villa de Álvarez","Comitán de Dominguez","Córdoba","Cuautitlán Izcalli","Cuautla","Cuernavaca","Culiacán","Delicias","Durango","Ensenada","Fresnillo","General Escobedo","Gómez Palacio","Guadalajara","Guadalupe","Guanajuato","Guaymas","Hermosillo","Hidalgo del Parral","Iguala","Irapuato","Ixtapaluca","Jiutepec","Juárez","La Laguna","La Paz","La Piedad-Pénjamo","León","Los Cabos","Los Mochis","Manzanillo","Matamoros","Mazatlán","Mérida","Mexicali","Minatitlán","Miramar","Monclova","Monclova-Frontera","Monterrey","Morelia","Naucalpan de Juárez","Navojoa","Nezahualcóyotl","Nogales","Nuevo Laredo","Oaxaca","Ocotlán","Ojo de agua","Orizaba","Pachuca","Piedras Negras","Poza Rica","Puebla","Puerto Vallarta","Querétaro","Reynosa-Río Bravo","Rioverde-Ciudad Fernández","Salamanca","Saltillo","San Cristobal de las Casas","San Francisco Coacalco","San Francisco del Rincón","San Juan Bautista Tuxtepec","San Juan del Río","San Luis Potosí-Soledad","San Luis Río Colorado","San Nicolás de los Garza","San Pablo de las Salinas","San Pedro Garza García","Santa Catarina","Soledad de Graciano Sánchez","Tampico-Pánuco","Tapachula","Tecomán","Tehuacán","Tehuacán","Tehuantepec-Salina Cruz","Tepexpan","Tepic","Tetela de Ocampo","Texcoco de Mora","Tijuana","Tlalnepantla","Tlaquepaque","Tlaxcala-Apizaco","Toluca","Tonalá","Torreón","Tula","Tulancingo","Tulancingo de Bravo","Tuxtla Gutiérrez","Uruapan","Uruapan del Progreso","Valle de México","Veracruz","Villa de Álvarez","Villa Nicolás Romero","Villahermosa","Xalapa","Zacatecas-Guadalupe","Zacatlan","Zacatzingo","Zamora-Jacona","Zapopan","Zitacuaro"]})(jSn);var TBa=jSn.exports,HSn={exports:{}};(function(t){t.exports=["town","ton","land","ville","berg","burgh","borough","bury","view","port","mouth","stad","furt","chester","mouth","fort","haven","side","shire"]})(HSn);var CBa=HSn.exports,USn={exports:{}};(function(t){t.exports=["Afganistán","Albania","Argelia","Andorra","Angola","Argentina","Armenia","Aruba","Australia","Austria","Azerbayán","Bahamas","Barein","Bangladesh","Barbados","Bielorusia","Bélgica","Belice","Bermuda","Bután","Bolivia","Bosnia Herzegovina","Botswana","Brasil","Bulgaria","Burkina Faso","Burundi","Camboya","Camerún","Canada","Cabo Verde","Islas Caimán","Chad","Chile","China","Isla de Navidad","Colombia","Comodos","Congo","Costa Rica","Costa de Marfil","Croacia","Cuba","Chipre","República Checa","Dinamarca","Dominica","República Dominicana","Ecuador","Egipto","El Salvador","Guinea Ecuatorial","Eritrea","Estonia","Etiopía","Islas Faro","Fiji","Finlandia","Francia","Gabón","Gambia","Georgia","Alemania","Ghana","Grecia","Groenlandia","Granada","Guadalupe","Guam","Guatemala","Guinea","Guinea-Bisau","Guayana","Haiti","Honduras","Hong Kong","Hungria","Islandia","India","Indonesia","Iran","Irak","Irlanda","Italia","Jamaica","Japón","Jordania","Kazajistan","Kenia","Kiribati","Corea","Kuwait","Letonia","Líbano","Liberia","Liechtenstein","Lituania","Luxemburgo","Macao","Macedonia","Madagascar","Malawi","Malasia","Maldivas","Mali","Malta","Martinica","Mauritania","México","Micronesia","Moldavia","Mónaco","Mongolia","Montenegro","Montserrat","Marruecos","Mozambique","Namibia","Nauru","Nepal","Holanda","Nueva Zelanda","Nicaragua","Niger","Nigeria","Noruega","Omán","Pakistan","Panamá","Papúa Nueva Guinea","Paraguay","Perú","Filipinas","Poland","Portugal","Puerto Rico","Rusia","Ruanda","Samoa","San Marino","Santo Tomé y Principe","Arabia Saudí","Senegal","Serbia","Seychelles","Sierra Leona","Singapur","Eslovaquia","Eslovenia","Somalia","España","Sri Lanka","Sudán","Suriname","Suecia","Suiza","Siria","Taiwan","Tajikistan","Tanzania","Tailandia","Timor-Leste","Togo","Tonga","Trinidad y Tobago","Tunez","Turquia","Uganda","Ucrania","Emiratos Árabes Unidos","Reino Unido","Estados Unidos de América","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"]})(USn);var kBa=USn.exports,zSn={exports:{}};(function(t){t.exports=[" s/n.",", #",", ##"," #"," ##"," ###"," ####"]})(zSn);var RBa=zSn.exports,GSn={exports:{}};(function(t){t.exports=["Aldea","Apartamento","Arrabal","Arroyo","Avenida","Bajada","Barranco","Barrio","Bloque","Calle","Calleja","Camino","Carretera","Caserio","Colegio","Colonia","Conjunto","Cuesta","Chalet","Edificio","Entrada","Escalinata","Explanada","Extramuros","Extrarradio","Ferrocarril","Glorieta","Gran Subida","Grupo","Huerta","Jardines","Lado","Lugar","Manzana","Masía","Mercado","Monte","Muelle","Municipio","Parcela","Parque","Partida","Pasaje","Paseo","Plaza","Poblado","Polígono","Prolongación","Puente","Puerta","Quinta","Ramal","Rambla","Rampa","Riera","Rincón","Ronda","Rua","Salida","Sector","Sección","Senda","Solar","Subida","Terrenos","Torrente","Travesía","Urbanización","Vía","Vía Pública"]})(GSn);var MBa=GSn.exports,VSn={exports:{}};(function(t){t.exports=["Esc. ###","Puerta ###","Edificio #"]})(VSn);var NBa=VSn.exports,KSn={exports:{}};(function(t){t.exports=["#####"]})(KSn);var IBa=KSn.exports,WSn={exports:{}};(function(t){t.exports=["Aguascalientes","Baja California Norte","Baja California Sur","Estado de México","Campeche","Chiapas","Chihuahua","Coahuila","Colima","Durango","Guanajuato","Guerrero","Hidalgo","Jalisco","Michoacan","Morelos","Nayarit","Nuevo León","Oaxaca","Puebla","Querétaro","Quintana Roo","San Luis Potosí","Sinaloa","Sonora","Tabasco","Tamaulipas","Tlaxcala","Veracruz","Yucatán","Zacatecas"]})(WSn);var PBa=WSn.exports,QSn={exports:{}};(function(t){t.exports=["AS","BC","BS","CC","CS","CH","CL","CM","DF","DG","GT","GR","HG","JC","MC","MN","MS","NT","NL","OC","PL","QT","QR","SP","SL","SR","TC","TS","TL","VZ","YN","ZS"]})(QSn);var OBa=QSn.exports,qSn={exports:{}};(function(t){t.exports=["Pacífico/Midway","Pacífico/Pago_Pago","Pacífico/Honolulu","America/Juneau","America/Los_Angeles","America/Tijuana","America/Denver","America/Phoenix","America/Chihuahua","America/Mazatlan","America/Chicago","America/Regina","America/Mexico_City","America/Monterrey","America/Guatemala","America/New_York","America/Indiana/Indianapolis","America/Bogota","America/Lima","America/Lima","America/Halifax","America/Caracas","America/La_Paz","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Guyana","America/Godthab","Atlantic/South_Georgia","Atlantic/Azores","Atlantic/Cape_Verde","Europa/Dublin","Europa/London","Europa/Lisbon","Europa/London","Africa/Casablanca","Africa/Monrovia","Etc/UTC","Europa/Belgrade","Europa/Bratislava","Europa/Budapest","Europa/Ljubljana","Europa/Prague","Europa/Sarajevo","Europa/Skopje","Europa/Warsaw","Europa/Zagreb","Europa/Brussels","Europa/Copenhagen","Europa/Madrid","Europa/Paris","Europa/Amsterdam","Europa/Berlin","Europa/Berlin","Europa/Rome","Europa/Stockholm","Europa/Vienna","Africa/Algiers","Europa/Bucharest","Africa/Cairo","Europa/Helsinki","Europa/Kiev","Europa/Riga","Europa/Sofia","Europa/Tallinn","Europa/Vilnius","Europa/Athens","Europa/Istanbul","Europa/Minsk","Asia/Jerusalen","Africa/Harare","Africa/Johannesburg","Europa/Moscú","Europa/Moscú","Europa/Moscú","Asia/Kuwait","Asia/Riyadh","Africa/Nairobi","Asia/Baghdad","Asia/Tehran","Asia/Muscat","Asia/Muscat","Asia/Baku","Asia/Tbilisi","Asia/Yerevan","Asia/Kabul","Asia/Yekaterinburg","Asia/Karachi","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kathmandu","Asia/Dhaka","Asia/Dhaka","Asia/Colombo","Asia/Almaty","Asia/Novosibirsk","Asia/Rangoon","Asia/Bangkok","Asia/Bangkok","Asia/Jakarta","Asia/Krasnoyarsk","Asia/Shanghai","Asia/Chongqing","Asia/Hong_Kong","Asia/Urumqi","Asia/Kuala_Lumpur","Asia/Singapore","Asia/Taipei","Australia/Perth","Asia/Irkutsk","Asia/Ulaanbaatar","Asia/Seoul","Asia/Tokyo","Asia/Tokyo","Asia/Tokyo","Asia/Yakutsk","Australia/Darwin","Australia/Adelaide","Australia/Melbourne","Australia/Melbourne","Australia/Sydney","Australia/Brisbane","Australia/Hobart","Asia/Vladivostok","Pacífico/Guam","Pacífico/Port_Moresby","Asia/Magadan","Asia/Magadan","Pacífico/Noumea","Pacífico/Fiji","Asia/Kamchatka","Pacífico/Majuro","Pacífico/Auckland","Pacífico/Auckland","Pacífico/Tongatapu","Pacífico/Fakaofo","Pacífico/Apia"]})(qSn);var LBa=qSn.exports,YSn={exports:{}};(function(t){t.exports=["#{city_prefix}"]})(YSn);var BBa=YSn.exports,JSn={exports:{}};(function(t){t.exports=["20 de Noviembre","Cinco de Mayo","Cuahutemoc","Manzanares","Donceles","Francisco I. Madero","Juárez","Repúplica de Cuba","Repúplica de Chile","Repúplica de Argentina","Repúplica de Uruguay","Isabel la Católica","Izazaga","Eje Central","Eje 6","Eje 5","La viga","Aniceto Ortega","Miguel Ángel de Quevedo","Amores","Coyoacán","Coruña","Batalla de Naco","La otra banda","Piedra del Comal","Balcón de los edecanes","Barrio la Lonja","Jicolapa","Zacatlán","Zapata","Polotitlan","Calimaya","Flor Marina","Flor Solvestre","San Miguel","Naranjo","Cedro","Jalisco","Avena"]})(JSn);var DBa=JSn.exports,ZSn={exports:{}};(function(t){t.exports=["#{street_suffix} #{Name.first_name}","#{street_suffix} #{Name.first_name} #{Name.last_name}","#{street_suffix} #{street}","#{street_suffix} #{street}","#{street_suffix} #{street}","#{street_suffix} #{street}"]})(ZSn);var $Ba=ZSn.exports,XSn={exports:{}};(function(t){t.exports=["#{street_name}#{building_number}","#{street_name}#{building_number} #{secondary_address}"]})(XSn);var FBa=XSn.exports,ewn={exports:{}};(function(t){t.exports=["México"]})(ewn);var jBa=ewn.exports;(function(t){var e={};t.exports=e,e.city_prefix=TBa,e.city_suffix=CBa,e.country=kBa,e.building_number=RBa,e.street_suffix=MBa,e.secondary_address=NBa,e.postcode=IBa,e.state=PBa,e.state_abbr=OBa,e.time_zone=LBa,e.city=BBa,e.street=DBa,e.street_name=$Ba,e.street_address=FBa,e.default_country=jBa})(FSn);var HBa=FSn.exports,twn={exports:{}},nwn={exports:{}};(function(t){t.exports=["S.L.","e Hijos","S.A.","Hermanos"]})(nwn);var UBa=nwn.exports,rwn={exports:{}};(function(t){t.exports=["Adaptativo","Avanzado","Asimilado","Automatizado","Equilibrado","Centrado en el negocio","Centralizado","Clonado","Compatible","Configurable","Multi grupo","Multi plataforma","Centrado en el usuario","Configurable","Descentralizado","Digitalizado","Distribuido","Diverso","Reducido","Mejorado","Para toda la empresa","Ergonomico","Exclusivo","Expandido","Extendido","Cara a cara","Enfocado","Totalmente configurable","Fundamental","Orígenes","Horizontal","Implementado","Innovador","Integrado","Intuitivo","Inverso","Gestionado","Obligatorio","Monitorizado","Multi canal","Multi lateral","Multi capa","En red","Orientado a objetos","Open-source","Operativo","Optimizado","Opcional","Organico","Organizado","Perseverando","Persistente","en fases","Polarizado","Pre-emptivo","Proactivo","Enfocado a benficios","Profundo","Programable","Progresivo","Public-key","Enfocado en la calidad","Reactivo","Realineado","Re-contextualizado","Re-implementado","Reducido","Ingenieria inversa","Robusto","Fácil","Seguro","Auto proporciona","Compartible","Intercambiable","Sincronizado","Orientado a equipos","Total","Universal","Mejorado","Actualizable","Centrado en el usuario","Amigable","Versatil","Virtual","Visionario"]})(rwn);var zBa=rwn.exports,iwn={exports:{}};(function(t){t.exports=["24 horas","24/7","3rd generación","4th generación","5th generación","6th generación","analizada","asimétrica","asíncrona","monitorizada por red","bidireccional","bifurcada","generada por el cliente","cliente servidor","coherente","cohesiva","compuesto","sensible al contexto","basado en el contexto","basado en contenido","dedicada","generado por la demanda","didactica","direccional","discreta","dinámica","potenciada","acompasada","ejecutiva","explícita","tolerante a fallos","innovadora","amplio ábanico","global","heurística","alto nivel","holística","homogénea","hibrida","incremental","intangible","interactiva","intermedia","local","logística","maximizada","metódica","misión crítica","móbil","modular","motivadora","multimedia","multiestado","multitarea","nacional","basado en necesidades","neutral","nueva generación","no-volátil","orientado a objetos","óptima","optimizada","radical","tiempo real","recíproca","regional","escalable","secundaria","orientada a soluciones","estable","estatica","sistemática","sistémica","tangible","terciaria","transicional","uniforme","valor añadido","vía web","defectos cero","tolerancia cero"]})(iwn);var GBa=iwn.exports,awn={exports:{}};(function(t){t.exports=["habilidad","acceso","adaptador","algoritmo","alianza","analista","aplicación","enfoque","arquitectura","archivo","inteligencia artificial","array","actitud","medición","gestión presupuestaria","capacidad","desafío","circuito","colaboración","complejidad","concepto","conglomeración","contingencia","núcleo","fidelidad","base de datos","data-warehouse","definición","emulación","codificar","encriptar","extranet","firmware","flexibilidad","focus group","previsión","base de trabajo","función","funcionalidad","Interfaz Gráfica","groupware","Interfaz gráfico de usuario","hardware","Soporte","jerarquía","conjunto","implementación","infraestructura","iniciativa","instalación","conjunto de instrucciones","interfaz","intranet","base del conocimiento","red de area local","aprovechar","matrices","metodologías","middleware","migración","modelo","moderador","monitorizar","arquitectura abierta","sistema abierto","orquestar","paradigma","paralelismo","política","portal","estructura de precios","proceso de mejora","producto","productividad","proyecto","proyección","protocolo","línea segura","software","solución","estandardización","estrategia","estructura","éxito","superestructura","soporte","sinergia","mediante","marco de tiempo","caja de herramientas","utilización","website","fuerza de trabajo"]})(awn);var VBa=awn.exports,own={exports:{}};(function(t){t.exports=["poner en práctica","utilizar","integrar","racionalizar","optimizar","evolucionar","transformar","abrazar","habilitar","orquestar","apalancamiento","reinventar","agregado","arquitecto","mejorar","incentivar","transformarse","empoderar","Envisioneer","monetizar","arnés","facilitar","aprovechar","desintermediar","sinergia","estrategias","desplegar","marca","crecer","objetivo","sindicato","sintetizar","entregue","malla","incubar","enganchar","maximizar","punto de referencia","acelerar","reintermediate","pizarra","visualizar","reutilizar","innovar","escala","desatar","conducir","extender","ingeniero","revolucionar","generar","explotar","transición","e-enable","repetir","cultivar","matriz","productize","redefinir","recontextualizar"]})(own);var KBa=own.exports,swn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name} y #{Name.last_name}","#{Name.last_name} #{Name.last_name} #{suffix}","#{Name.last_name}, #{Name.last_name} y #{Name.last_name} Asociados"]})(swn);var WBa=swn.exports,lwn={exports:{}};(function(t){t.exports=["Clics y mortero","Valor añadido","Vertical","Proactivo","Robusto","Revolucionario","Escalable","De vanguardia","Innovador","Intuitivo","Estratégico","E-business","Misión crítica","Pegajosa","Doce y cincuenta y nueve de la noche","24/7","De extremo a extremo","Global","B2B","B2C","Granular","Fricción","Virtual","Viral","Dinámico","24/365","Mejor de su clase","Asesino","Magnética","Filo sangriento","Habilitado web","Interactiva","Punto com","Sexy","Back-end","Tiempo real","Eficiente","Frontal","Distribuida","Sin costura","Extensible","Llave en mano","Clase mundial","Código abierto","Multiplataforma","Cross-media","Sinérgico","ladrillos y clics","Fuera de la caja","Empresa","Integrado","Impactante","Inalámbrico","Transparente","Próxima generación","Innovador","User-centric","Visionario","A medida","Ubicua","Enchufa y juega","Colaboración","Convincente","Holístico","Ricos"]})(lwn);var QBa=lwn.exports,cwn={exports:{}};(function(t){t.exports=["sinergias","web-readiness","paradigmas","mercados","asociaciones","infraestructuras","plataformas","iniciativas","canales","ojos","comunidades","ROI","soluciones","minoristas electrónicos","e-servicios","elementos de acción","portales","nichos","tecnologías","contenido","vortales","cadenas de suministro","convergencia","relaciones","arquitecturas","interfaces","mercados electrónicos","e-commerce","sistemas","ancho de banda","infomediarios","modelos","Mindshare","entregables","usuarios","esquemas","redes","aplicaciones","métricas","e-business","funcionalidades","experiencias","servicios web","metodologías"]})(cwn);var qBa=cwn.exports;(function(t){var e={};t.exports=e,e.suffix=UBa,e.adjective=zBa,e.descriptor=GBa,e.noun=VBa,e.bs_verb=KBa,e.name=WBa,e.bs_adjective=QBa,e.bs_noun=qBa})(twn);var YBa=twn.exports,uwn={exports:{}},dwn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com","nearbpo.com","corpfolder.com"]})(dwn);var JBa=dwn.exports,hwn={exports:{}};(function(t){t.exports=["com","mx","info","com.mx","org","gob.mx"]})(hwn);var ZBa=hwn.exports;(function(t){var e={};t.exports=e,e.free_email=JBa,e.domain_suffix=ZBa})(uwn);var XBa=uwn.exports,fwn={exports:{}},pwn={exports:{}};(function(t){t.exports=["5###-###-###","5##.###.###","5## ### ###","5########"]})(pwn);var eDa=pwn.exports;(function(t){var e={};t.exports=e,e.formats=eDa})(fwn);var tDa=fwn.exports,mwn={exports:{}},gwn={exports:{}};(function(t){t.exports=["5##-###-###","5##.###.###","5## ### ###","5########"]})(gwn);var nDa=gwn.exports;(function(t){var e={};t.exports=e,e.formats=nDa})(mwn);var rDa=mwn.exports,vwn={exports:{}},Awn={exports:{}};(function(t){t.exports=["Abacalero","Abacería","Abacero","Abacial","Abaco","Abacora","Abacorar","Abad","Abada","Abadejo","Abadengo","Abadernar","Abadesa","Abadí","Abadía","Abadiado","Abadiato","Abajadero","Abajamiento","Abajar","Abajeño","Abajera","Abajo","Abalada","Abalanzar","Abalar","Abalaustrado","Abaldonadamente","Abaldonamiento","Bastonada","Bastonazo","Bastoncillo","Bastonear","Bastonero","Bástulo","Basura","Basural","Basurear","Basurero","Bata","Batacazo","Batahola","Batalán","Batalla","Batallador","Batallar","Batallaroso","Batallola","Batallón","Batallona","Batalloso","Batán","Batanar","Batanear","Batanero","Batanga","Bataola","Batata","Batatazo","Batato","Batavia","Bátavo","Batayola","Batazo","Bate","Batea","Bateador","Bateaguas","Cenagar","Cenagoso","Cenal","Cenaoscuras","Ceñar","Cenata","Cenca","Cencapa","Cencellada","Cenceñada","Cenceño","Cencero","Cencerra","Cencerrada","Cencerrado","Cencerrear","Cencerreo","Cencerril","Cencerrillas","Cencerro","Cencerrón","Cencha","Cencido","Cencío","Cencivera","Cenco","Cencuate","Cendal","Cendalí","Céndea","Cendolilla","Cendra","Cendrada","Cendradilla","Cendrado","Cendrar","Cendrazo","Cenefa","Cenegar","Ceneque","Cenero","Cenestesia","Desceñir","Descensión","Descenso","Descentrado","Descentralización","Descentralizador","Descentralizar","Descentrar","Descepar","Descerar","Descercado","Descercador","Descercar","Descerco","Descerebración","Descerebrado","Descerebrar","Descerezar","Descerrajado","Descerrajadura","Descerrajar","Descerrar","Descerrumarse","Descervigamiento","Descervigar","Deschapar","Descharchar","Deschavetado","Deschavetarse","Deschuponar","Descifrable","Descifrador","Desciframiento","Descifrar","Descifre","Descimbramiento","Descimbrar","Engarbarse","Engarberar","Engarbullar","Engarce","Engarfiar","Engargantadura","Engargantar","Engargante","Engargolado","Engargolar","Engaritar","Engarmarse","Engarnio","Engarrafador","Engarrafar","Engarrar","Engarro","Engarronar","Engarrotar","Engarzador","Engarzadura","Engarzar","Engasgarse","Engastador","Engastadura","Engastar","Engaste","Ficción","Fice","Ficha","Fichaje","Fichar","Fichero","Ficoideo","Ficticio","Fidalgo","Fidecomiso","Fidedigno","Fideero","Fideicomisario","Fideicomiso","Fideicomitente","Fideísmo","Fidelidad","Fidelísimo","Fideo","Fido","Fiducia","Geminación","Geminado","Geminar","Géminis","Gémino","Gemíparo","Gemiquear","Gemiqueo","Gemir","Gemología","Gemológico","Gemólogo","Gemonias","Gemoso","Gemoterapia","Gen","Genciana","Gencianáceo","Gencianeo","Gendarme","Gendarmería","Genealogía","Genealógico","Genealogista","Genearca","Geneático","Generable","Generación","Generacional","Generador","General","Generala","Generalato","Generalidad","Generalísimo","Incordio","Incorporación","Incorporal","Incorporalmente","Incorporar","Incorporeidad","Incorpóreo","Incorporo","Incorrección","Incorrectamente","Incorrecto","Incorregibilidad","Incorregible","Incorregiblemente","Incorrupción","Incorruptamente","Incorruptibilidad","Incorruptible","Incorrupto","Incrasar","Increado","Incredibilidad","Incrédulamente","Incredulidad","Incrédulo","Increíble","Increíblemente","Incrementar","Incremento","Increpación","Increpador","Increpar","Incriminación","Incriminar","Incristalizable","Incruentamente","Incruento","Incrustación"]})(Awn);var iDa=Awn.exports;(function(t){var e={};t.exports=e,e.words=iDa})(vwn);var aDa=vwn.exports,ywn={exports:{}},bwn={exports:{}};(function(t){t.exports=["rojo","verde","azul","amarillo","morado","Menta verde","teal","blanco","negro","Naranja","Rosa","gris","marrón","violeta","turquesa","tan","cielo azul","salmón","ciruela","orquídea","aceituna","magenta","Lima","marfil","índigo","oro","fucsia","cian","azul","lavanda","plata"]})(bwn);var oDa=bwn.exports,xwn={exports:{}};(function(t){t.exports=["Libros","Películas","Música","Juegos","Electrónica","Ordenadores","Hogar","Jardín","Herramientas","Ultramarinos","Salud","Belleza","Juguetes","Kids","Baby","Ropa","Zapatos","Joyería","Deportes","Aire libre","Automoción","Industrial"]})(xwn);var sDa=xwn.exports,Ewn={exports:{}};(function(t){t.exports={adjective:["Pequeño","Ergonómico","Rústico","Inteligente","Gorgeous","Increíble","Fantástico","Práctica","Elegante","Increíble","Genérica","Artesanal","Hecho a mano","Licencia","Refinado","Sin marca","Sabrosa"],material:["Acero","Madera","Hormigón","Plástico","Cotton","Granito","Caucho","Metal","Soft","Fresco","Frozen"],product:["Presidente","Auto","Computadora","Teclado","Ratón","Bike","Pelota","Guantes","Pantalones","Camisa","Mesa","Zapatos","Sombrero","Toallas","Jabón","Tuna","Pollo","Pescado","Queso","Tocino","Pizza","Ensalada","Embutidos"]}})(Ewn);var lDa=Ewn.exports;(function(t){var e={};t.exports=e,e.color=oDa,e.department=sDa,e.product_name=lDa})(ywn);var cDa=ywn.exports,Swn={exports:{}},wwn={exports:{}};(function(t){t.exports=["hormigas","murciélagos","osos","abejas","pájaros","búfalo","gatos","pollos","ganado","perros","delfines","patos","elefantes","peces","zorros","ranas","gansos","cabras","caballos","canguros","leones","monos","búhos","bueyes","pingüinos","pueblo","cerdos","conejos","ovejas","tigres","ballenas","lobos","cebras","almas en pena","cuervos","gatos negros","quimeras","fantasmas","conspiradores","dragones","enanos","duendes","encantadores","exorcistas","hijos","enemigos","gigantes","gnomos","duendes","gansos","grifos","licántropos","némesis","ogros","oráculos","profetas","hechiceros","arañas","espíritus","vampiros","brujos","zorras","hombres lobo","brujas","adoradores","zombies","druidas"]})(wwn);var uDa=wwn.exports,_wn={exports:{}};(function(t){t.exports=["#{Address.state} #{creature}"]})(_wn);var dDa=_wn.exports;(function(t){var e={};t.exports=e,e.creature=uDa,e.name=dDa})(Swn);var hDa=Swn.exports;(function(t){var e={};t.exports=e,e.title="Spanish (Mexico)",e.separator=" & ",e.name=_Ba,e.address=HBa,e.company=YBa,e.internet=XBa,e.phone_number=tDa,e.cell_phone=rDa,e.lorem=aDa,e.commerce=cDa,e.team=hDa})(NSn);var fDa=NSn.exports,Twn={exports:{}},Cwn={exports:{}},kwn={exports:{}};(function(t){t.exports=["צפון","מזרח","מערב","דרום"]})(kwn);var pDa=kwn.exports,Rwn={exports:{}};(function(t){t.exports=["","חדשה","עלית"]})(Rwn);var mDa=Rwn.exports,Mwn={exports:{}};(function(t){t.exports=["Not relevant for Israel"]})(Mwn);var gDa=Mwn.exports,Nwn={exports:{}};(function(t){t.exports=["אוגנדה","אוזבקיסטאן","אוסטריה","אוסטרליה","אוקראינה","אורוגואי","אזרביג'אן","איטליה","איי הבהאמס","איי מרשל","איי סיישל","איי קוק","איי שלמה","איסלנד","איראן","אירלנד","אל סלבדור","אלבניה","אנגולה","אנדורה","אנטיגואהברבודה","אסוואטיני","אסטוניה","אקוואדור","ארגנטינה","אריתריאה","ארמניה","ארצות הברית","אתיופיה","בולגריה","בוליביה","בוסניה הרצגובינה","בורונדי","בורקינה פסו","בחריין","בלארוס","בלגיה","בליז","בנין","ברבדוס","ברזיל","בריטניה","ג'מאיקה","גאבון","גאנה","גואטמלה","גויאנה","גיאורגיה","גינאה","גינאה המשוונית","גינאהביסאו","גמביה","גרמניה","גרנדה","דומיניקה","דנמרק","דרום אפריקה","דרום סודאן","האיטי","הודו","הולנד","הונגריה","הונדורס","הרפובליקה הדומיניקנית","הרפובליקה הדמוקרטית של קונגו","ואטיקאןהכס הקדוש","ויטנאם","ונואטו","ונצואלה","זימבאבווה","זמביה","חוף השנהב (קוט דיוואר)","טג'קיסטאן","טובלו","טוגו","טונגה","טייואן","טנזניה","טרינידד וטובגו","יוון","יפן","ירדן","לאוס רפובליקה דמוקרטית עממית","לבנון","לוקסמבורג","לטביה","ליבריה","ליטא","ליכטנשטיין","לסוטו","מאוריטניה","מאוריציוס","מאלי","מאע׳׳מ אמירויות ערביות מאוחדות","מדגסקר","מוזמביק","מולדובה","מונגוליה","מונטנגרו","מונקו","מזרח טימור","מיאנמר","מיקרונזיה","מכסיקו","מלאווי","מלטה","מצרים","מקדוניה","מרוקו","נאורו","נורבגיה","ניגריה","ניו זילנד","ניז'ר","ניקרגואה","נמיביה","נפאל","סאו תומה ופרינציפה","סורינם","סט' וינסנט והגרנדינים","סט' לוציה","סט' קיטס ונביס","סיירה ליאונה","סין","סינגפור","סלובניה","סלובקיה","סמואה","סן מרינו","סנגל","ספרד","סרביה","סרי לנקה","עומאן","פולין","פורטוגל","פיג'י","פיליפינים","פינלנד","פלאו","פנמה","פפואה ניו גיני","פרגוואי","פרו","צ'אד","צ'ילה","צ'כיה","צרפת","קובה","קולומביה","קומורוס","קונגו","קוסטה ריקה","קוריאה","קזחסטאן","קטר","קייפ ורדה","קירגיסטאן","קיריבטי","קמבודיה","קמרון","קנדה","קניה","קפריסין","קרואטיה","רואנדה","רומניה","רוסיה","רפובליקה מרכז אפריקנית","שבדיה","שווייץ","תאילנד","תוניסיה","תורכיה","תורכמניסטאן"]})(Nwn);var vDa=Nwn.exports,Iwn={exports:{}};(function(t){t.exports=[""]})(Iwn);var ADa=Iwn.exports,Pwn={exports:{}};(function(t){t.exports=["BGD","BEL","BFA","BGR","BIH","BRB","WLF","BLM","BMU","BRN","BOL","BHR","BDI","BEN","BTN","JAM","BVT","BWA","WSM","BES","BRA","BHS","JEY","BLR","BLZ","RUS","RWA","SRB","TLS","REU","TKM","TJK","ROU","TKL","GNB","GUM","GTM","SGS","GRC","GNQ","GLP","JPN","GUY","GGY","GUF","GEO","GRD","GBR","GAB","SLV","GIN","GMB","GRL","GIB","GHA","OMN","TUN","JOR","HRV","HTI","HUN","HKG","HND","HMD","VEN","PRI","PSE","PLW","PRT","SJM","PRY","IRQ","PAN","PYF","PNG","PER","PAK","PHL","PCN","POL","SPM","ZMB","ESH","EST","EGY","ZAF","ECU","ITA","VNM","SLB","ETH","SOM","ZWE","SAU","ESP","ERI","MNE","MDA","MDG","MAF","MAR","MCO","UZB","MMR","MLI","MAC","MNG","MHL","MKD","MUS","MLT","MWI","MDV","MTQ","MNP","MSR","MRT","IMN","UGA","TZA","MYS","MEX","ISR","FRA","IOT","SHN","FIN","FJI","FLK","FSM","FRO","NIC","NLD","NOR","NAM","VUT","NCL","NER","NFK","NGA","NZL","NPL","NRU","NIU","COK","XKX","CIV","CHE","COL","CHN","CMR","CHL","CCK","CAN","COG","CAF","COD","CZE","CYP","CXR","CRI","CUW","CPV","CUB","SWZ","SYR","SXM","KGZ","KEN","SSD","SUR","KIR","KHM","KNA","COM","STP","SVK","KOR","SVN","PRK","KWT","SEN","SMR","SLE","SYC","KAZ","CYM","SGP","SWE","SDN","DOM","DMA","DJI","DNK","VGB","DEU","YEM","DZA","USA","URY","MYT","UMI","LBN","LCA","LAO","TUV","TWN","TTO","TUR","LKA","LIE","LVA","TON","LTU","LUX","LBR","LSO","THA","ATF","TGO","TCD","TCA","LBY","VAT","VCT","ARE","AND","ATG","AFG","AIA","VIR","ISL","IRN","ARM","ALB","AGO","ATA","ASM","ARG","AUS","AUT","ABW","IND","ALA","AZE","IRL","IDN","UKR","QAT","MOZ"]})(Pwn);var yDa=Pwn.exports,Own={exports:{}};(function(t){t.exports=["###","##","#"]})(Own);var bDa=Own.exports,Lwn={exports:{}};(function(t){t.exports=["Alley","Avenue","Branch","Bridge","Brook","Brooks","Burg","Burgs","Bypass","Camp","Canyon","Cape","Causeway","Center","Centers","Circle","Circles","Cliff","Cliffs","Club","Common","Corner","Corners","Course","Court","Courts","Cove","Coves","Creek","Crescent","Crest","Crossing","Crossroad","Curve","Dale","Dam","Divide","Drive","Drive","Drives","Estate","Estates","Expressway","Extension","Extensions","Fall","Falls","Ferry","Field","Fields","Flat","Flats","Ford","Fords","Forest","Forge","Forges","Fork","Forks","Fort","Freeway","Garden","Gardens","Gateway","Glen","Glens","Green","Greens","Grove","Groves","Harbor","Harbors","Haven","Heights","Highway","Hill","Hills","Hollow","Inlet","Inlet","Island","Island","Islands","Islands","Isle","Isle","Junction","Junctions","Key","Keys","Knoll","Knolls","Lake","Lakes","Land","Landing","Lane","Light","Lights","Loaf","Lock","Locks","Locks","Lodge","Lodge","Loop","Mall","Manor","Manors","Meadow","Meadows","Mews","Mill","Mills","Mission","Mission","Motorway","Mount","Mountain","Mountain","Mountains","Mountains","Neck","Orchard","Oval","Overpass","Park","Parks","Parkway","Parkways","Pass","Passage","Path","Pike","Pine","Pines","Place","Plain","Plains","Plains","Plaza","Plaza","Point","Points","Port","Port","Ports","Ports","Prairie","Prairie","Radial","Ramp","Ranch","Rapid","Rapids","Rest","Ridge","Ridges","River","Road","Road","Roads","Roads","Route","Row","Rue","Run","Shoal","Shoals","Shore","Shores","Skyway","Spring","Springs","Springs","Spur","Spurs","Square","Square","Squares","Squares","Station","Station","Stravenue","Stravenue","Stream","Stream","Street","Street","Streets","Summit","Summit","Terrace","Throughway","Trace","Track","Trafficway","Trail","Trail","Tunnel","Tunnel","Turnpike","Turnpike","Underpass","Union","Unions","Valley","Valleys","Via","Viaduct","View","Views","Village","Village","Villages","Ville","Vista","Vista","Walk","Walks","Wall","Way","Ways","Well","Wells"]})(Lwn);var xDa=Lwn.exports,Bwn={exports:{}};(function(t){t.exports=["# דירה","## דירה","# חדר","## חדר"]})(Bwn);var EDa=Bwn.exports,Dwn={exports:{}};(function(t){t.exports=["#####","#######"]})(Dwn);var SDa=Dwn.exports,$wn={exports:{}};(function(t){t.exports=["#####","#######"]})($wn);var wDa=$wn.exports,Fwn={exports:{}};(function(t){t.exports=["חיפה","רמת הגולן","הגדה המערבית","שומרון","השרון","יהודה","הנגב","השפלה","הערבה"]})(Fwn);var _Da=Fwn.exports,jwn={exports:{}};(function(t){t.exports=["AL","AK","AZ","AR","CA","CO","CT","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]})(jwn);var TDa=jwn.exports,Hwn={exports:{}};(function(t){t.exports=["Pacific/Midway","Pacific/Pago_Pago","Pacific/Honolulu","America/Juneau","America/Los_Angeles","America/Tijuana","America/Denver","America/Phoenix","America/Chihuahua","America/Mazatlan","America/Chicago","America/Regina","America/Mexico_City","America/Mexico_City","America/Monterrey","America/Guatemala","America/New_York","America/Indiana/Indianapolis","America/Bogota","America/Lima","America/Lima","America/Halifax","America/Caracas","America/La_Paz","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Guyana","America/Godthab","Atlantic/South_Georgia","Atlantic/Azores","Atlantic/Cape_Verde","Europe/Dublin","Europe/London","Europe/Lisbon","Europe/London","Africa/Casablanca","Africa/Monrovia","Etc/UTC","Europe/Belgrade","Europe/Bratislava","Europe/Budapest","Europe/Ljubljana","Europe/Prague","Europe/Sarajevo","Europe/Skopje","Europe/Warsaw","Europe/Zagreb","Europe/Brussels","Europe/Copenhagen","Europe/Madrid","Europe/Paris","Europe/Amsterdam","Europe/Berlin","Europe/Berlin","Europe/Rome","Europe/Stockholm","Europe/Vienna","Africa/Algiers","Europe/Bucharest","Africa/Cairo","Europe/Helsinki","Europe/Kiev","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Vilnius","Europe/Athens","Europe/Istanbul","Europe/Minsk","Asia/Jerusalem","Africa/Harare","Africa/Johannesburg","Europe/Moscow","Europe/Moscow","Europe/Moscow","Asia/Kuwait","Asia/Riyadh","Africa/Nairobi","Asia/Baghdad","Asia/Tehran","Asia/Muscat","Asia/Muscat","Asia/Baku","Asia/Tbilisi","Asia/Yerevan","Asia/Kabul","Asia/Yekaterinburg","Asia/Karachi","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kolkata","Asia/Kathmandu","Asia/Dhaka","Asia/Dhaka","Asia/Colombo","Asia/Almaty","Asia/Novosibirsk","Asia/Rangoon","Asia/Bangkok","Asia/Bangkok","Asia/Jakarta","Asia/Krasnoyarsk","Asia/Shanghai","Asia/Chongqing","Asia/Hong_Kong","Asia/Urumqi","Asia/Kuala_Lumpur","Asia/Singapore","Asia/Taipei","Australia/Perth","Asia/Irkutsk","Asia/Ulaanbaatar","Asia/Seoul","Asia/Tokyo","Asia/Tokyo","Asia/Tokyo","Asia/Yakutsk","Australia/Darwin","Australia/Adelaide","Australia/Melbourne","Australia/Melbourne","Australia/Sydney","Australia/Brisbane","Australia/Hobart","Asia/Vladivostok","Pacific/Guam","Pacific/Port_Moresby","Asia/Magadan","Asia/Magadan","Pacific/Noumea","Pacific/Fiji","Asia/Kamchatka","Pacific/Majuro","Pacific/Auckland","Pacific/Auckland","Pacific/Tongatapu","Pacific/Fakaofo","Pacific/Apia"]})(Hwn);var CDa=Hwn.exports,Uwn={exports:{}};(function(t){t.exports=["#{city_prefix} #{Name.first_name}#{Name.last_name}","#{city_prefix} #{Name.first_name}","#{Name.first_name}#{city_suffix}","#{Name.last_name}#{city_suffix}"]})(Uwn);var kDa=Uwn.exports,zwn={exports:{}};(function(t){t.exports=["#{Name.first_name} #{street_suffix}","#{Name.last_name} #{street_suffix}"]})(zwn);var RDa=zwn.exports,Gwn={exports:{}};(function(t){t.exports=["#{building_number} #{street_name}"]})(Gwn);var MDa=Gwn.exports,Vwn={exports:{}};(function(t){t.exports=["מדינת ישראל"]})(Vwn);var NDa=Vwn.exports,Kwn={exports:{}};(function(t){t.exports=["צפון","מזרח","דרום","מערב","צפון מזרח","צפון מערב","דרום מזרח","דרום מערב"]})(Kwn);var IDa=Kwn.exports,Wwn={exports:{}};(function(t){t.exports=["N","E","S","W","NE","NW","SE","SW"]})(Wwn);var PDa=Wwn.exports;(function(t){var e={};t.exports=e,e.city_prefix=pDa,e.city_suffix=mDa,e.county=gDa,e.country=vDa,e.country_code=ADa,e.country_code_alpha_3=yDa,e.building_number=bDa,e.street_suffix=xDa,e.secondary_address=EDa,e.postcode=SDa,e.postcode_by_state=wDa,e.state=_Da,e.state_abbr=TDa,e.time_zone=CDa,e.city=kDa,e.street_name=RDa,e.street_address=MDa,e.default_country=NDa,e.direction=IDa,e.direction_abbr=PDa})(Cwn);var ODa=Cwn.exports,Qwn={exports:{}},qwn={exports:{}};(function(t){t.exports=["לורם","איפסום","דולור","סיט","אמט","קונסקטורר","אדיפיסינג","אלית","צש","בליא","מנסוטו","צמלח","לביקו","ננבי","צמוקו","בלוקריה","שיצמה","ברורק","נולום","ארווס","סאפיאן","פוסיליס","קוויס","אקווזמן","קוואזי","במר","מודוף","אודיפו","בלאסטיק","מונופץ","קליר","בנפת","נפקט","למסון","בלרק","וענוף","קוואזי","במר","מודוף","אודיפו","בלאסטיק","מונופץ","קליר","בנפת","נפקט","למסון","בלרק","וענוף","לפרומי","בלוף","קינץ","תתיח","לרעח","לת","צשחמי","צש","בליא","מנסוטו","צמלח","לביקו","ננבי","צמוקו","בלוקריה","שיצמה","ברורק","סחטיר","בלובק","תצטנפל","בלינדו","למרקל","אס","לכימפו","דול","צוט","ומעיוט","לפתיעם","ברשג","ולתיעם","גדדיש","קוויז","דומור","ליאמום","בלינך","רוגצה","לפמעט","מוסן","מנת","הועניב","היושבב","שערש","שמחויט","שלושע","ותלברו","חשלו","שעותלשך","וחאית","נובש","ערששף","זותה","מנק","הבקיץ","אפאח","דלאמת","יבש","כאנה","ניצאחו","נמרגי","שהכים","תוק","הדש","שנרא","התידם","הכייר","וק","קולהע","צופעט","למרקוח","איבן","איף","ברומץ","כלרשט","מיחוצים","קלאצי","סחטיר","בלובק","תצטנפל","בלינדו","למרקל","אס","לכימפו","דול","צוט","ומעיוט","","לפתיעם","ברשג","","ולתיעם","גדדיש","קוויז","דומור","ליאמום","בלינך","רוגצה","לפמעט","נולום","ארווס","סאפיאן","","פוסיליס","קוויס","אקווזמן","קוואזי","במר","מודוף","אודיפו","בלאסטיק","מונופץ","קליר","בנפת","נפקט","למסון","בלרק","","וענוף","לפרומי","בלוף","קינץ","תתיח","לרעח","לת","צשחמי","נולום","ארווס","סאפיאן","","פוסיליס","קוויס","אקווזמן","לורם","איפסום","דולור","סיט","אמט","לורם","איפסום","דולור","סיט","אמט","קונסקטורר","אדיפיסינג","אלית","סת","אלמנקום","ניסי","נון","ניבאה","דס","איאקוליס","וולופטה","דיאם","וסטיבולום","אט","דולור","קראס","אגת","לקטוס","וואל","אאוגו","וסטיבולום","סוליסי","טידום","בעליק","קונדימנטום","קורוס","בליקרה","נונסטי","קלובר","בריקנה","סטום","לפריקך","תצטריק","לרטי"]})(qwn);var LDa=qwn.exports,Ywn={exports:{}};(function(t){t.exports=["abbas","abduco","abeo","abscido","absconditus","absens","absorbeo","absque","abstergo","absum","abundans","abutor","accedo","accendo","acceptus","accipio","accommodo","accusator","acer","acerbitas","acervus","acidus","acies","acquiro","acsi","adamo","adaugeo","addo","adduco","ademptio","adeo","adeptio","adfectus","adfero","adficio","adflicto","adhaero","adhuc","adicio","adimpleo","adinventitias","adipiscor","adiuvo","administratio","admiratio","admitto","admoneo","admoveo","adnuo","adopto","adsidue","adstringo","adsuesco","adsum","adulatio","adulescens","adultus","aduro","advenio","adversus","advoco","aedificium","aeger","aegre","aegrotatio","aegrus","aeneus","aequitas","aequus","aer","aestas","aestivus","aestus","aetas","aeternus","ager","aggero","aggredior","agnitio","agnosco","ago","ait","aiunt","alienus","alii","alioqui","aliqua","alius","allatus","alo","alter","altus","alveus","amaritudo","ambitus","ambulo","amicitia","amiculum","amissio","amita","amitto","amo","amor","amoveo","amplexus","amplitudo","amplus","ancilla","angelus","angulus","angustus","animadverto","animi","animus","annus","anser","ante","antea","antepono","antiquus","aperio","aperte","apostolus","apparatus","appello","appono","appositus","approbo","apto","aptus","apud","aqua","ara","aranea","arbitro","arbor","arbustum","arca","arceo","arcesso","arcus","argentum","argumentum","arguo","arma","armarium","armo","aro","ars","articulus","artificiose","arto","arx","ascisco","ascit","asper","aspicio","asporto","assentator","astrum","atavus","ater","atqui","atrocitas","atrox","attero","attollo","attonbitus","auctor","auctus","audacia","audax","audentia","audeo","audio","auditor","aufero","aureus","auris","aurum","aut","autem","autus","auxilium","avaritia","avarus","aveho","averto","avoco","baiulus","balbus","barba","bardus","basium","beatus","bellicus","bellum","bene","beneficium","benevolentia","benigne","bestia","bibo","bis","blandior","bonus","bos","brevis","cado","caecus","caelestis","caelum","calamitas","calcar","calco","calculus","callide","campana","candidus","canis","canonicus","canto","capillus","capio","capitulus","capto","caput","carbo","carcer","careo","caries","cariosus","caritas","carmen","carpo","carus","casso","caste","casus","catena","caterva","cattus","cauda","causa","caute","caveo","cavus","cedo","celebrer","celer","celo","cena","cenaculum","ceno","censura","centum","cerno","cernuus","certe","certo","certus","cervus","cetera","charisma","chirographum","cibo","cibus","cicuta","cilicium","cimentarius","ciminatio","cinis","circumvenio","cito","civis","civitas","clam","clamo","claro","clarus","claudeo","claustrum","clementia","clibanus","coadunatio","coaegresco","coepi","coerceo","cogito","cognatus","cognomen","cogo","cohaero","cohibeo","cohors","colligo","colloco","collum","colo","color","coma","combibo","comburo","comedo","comes","cometes","comis","comitatus","commemoro","comminor","commodo","communis","comparo","compello","complectus","compono","comprehendo","comptus","conatus","concedo","concido","conculco","condico","conduco","confero","confido","conforto","confugo","congregatio","conicio","coniecto","conitor","coniuratio","conor","conqueror","conscendo","conservo","considero","conspergo","constans","consuasor","contabesco","contego","contigo","contra","conturbo","conventus","convoco","copia","copiose","cornu","corona","corpus","correptius","corrigo","corroboro","corrumpo","coruscus","cotidie","crapula","cras","crastinus","creator","creber","crebro","credo","creo","creptio","crepusculum","cresco","creta","cribro","crinis","cruciamentum","crudelis","cruentus","crur","crustulum","crux","cubicularis","cubitum","cubo","cui","cuius","culpa","culpo","cultellus","cultura","cum","cunabula","cunae","cunctatio","cupiditas","cupio","cuppedia","cupressus","cur","cura","curatio","curia","curiositas","curis","curo","curriculum","currus","cursim","curso","cursus","curto","curtus","curvo","curvus","custodia","damnatio","damno","dapifer","debeo","debilito","decens","decerno","decet","decimus","decipio","decor","decretum","decumbo","dedecor","dedico","deduco","defaeco","defendo","defero","defessus","defetiscor","deficio","defigo","defleo","defluo","defungo","degenero","degero","degusto","deinde","delectatio","delego","deleo","delibero","delicate","delinquo","deludo","demens","demergo","demitto","demo","demonstro","demoror","demulceo","demum","denego","denique","dens","denuncio","denuo","deorsum","depereo","depono","depopulo","deporto","depraedor","deprecator","deprimo","depromo","depulso","deputo","derelinquo","derideo","deripio","desidero","desino","desipio","desolo","desparatus","despecto","despirmatio","infit","inflammatio","paens","patior","patria","patrocinor","patruus","pauci","paulatim","pauper","pax","peccatus","pecco","pecto","pectus","pecunia","pecus","peior","pel","ocer","socius","sodalitas","sol","soleo","solio","solitudo","solium","sollers","sollicito","solum","solus","solutio","solvo","somniculosus","somnus","sonitus","sono","sophismata","sopor","sordeo","sortitus","spargo","speciosus","spectaculum","speculum","sperno","spero","spes","spiculum","spiritus","spoliatio","sponte","stabilis","statim","statua","stella","stillicidium","stipes","stips","sto","strenuus","strues","studio","stultus","suadeo","suasoria","sub","subito","subiungo","sublime","subnecto","subseco","substantia","subvenio","succedo","succurro","sufficio","suffoco","suffragium","suggero","sui","sulum","sum","summa","summisse","summopere","sumo","sumptus","supellex","super","suppellex","supplanto","suppono","supra","surculus","surgo","sursum","suscipio","suspendo","sustineo","suus","synagoga","tabella","tabernus","tabesco","tabgo","tabula","taceo","tactus","taedium","talio","talis","talus","tam","tamdiu","tamen","tametsi","tamisium","tamquam","tandem","tantillus","tantum","tardus","tego","temeritas","temperantia","templum","temptatio","tempus","tenax","tendo","teneo","tener","tenuis","tenus","tepesco","tepidus","ter","terebro","teres","terga","tergeo","tergiversatio","tergo","tergum","termes","terminatio","tero","terra","terreo","territo","terror","tersus","tertius","testimonium","texo","textilis","textor","textus","thalassinus","theatrum","theca","thema","theologus","thermae","thesaurus","thesis","thorax","thymbra","thymum","tibi","timidus","timor","titulus","tolero","tollo","tondeo","tonsor","torqueo","torrens","tot","totidem","toties","totus","tracto","trado","traho","trans","tredecim","tremo","trepide","tres","tribuo","tricesimus","triduana","triginta","tripudio","tristis","triumphus","trucido","truculenter","tubineus","tui","tum","tumultus","tunc","turba","turbo","turpe","turpis","tutamen","tutis","tyrannus","uberrime","ubi","ulciscor","ullus","ulterius","ultio","ultra","umbra","umerus","umquam","una","unde","undique","universe","unus","urbanus","urbs","uredo","usitas","usque","ustilo","ustulo","usus","uter","uterque","utilis","utique","utor","utpote","utrimque","utroque","utrum","uxor","vaco","vacuus","vado","vae","valde","valens","valeo","valetudo","validus","vallum","vapulus","varietas","varius","vehemens","vel","velociter","velum","velut","venia","venio","ventito","ventosus","ventus","venustas","ver","verbera","verbum","vere","verecundia","vereor","vergo","veritas","vero","versus","verto","verumtamen","verus","vesco","vesica","vesper","vespillo","vester","vestigium","vestrum","vetus","via","vicinus","vicissitudo","victoria","victus","videlicet","video","viduata","viduo","vigilo","vigor","vilicus","vilis","vilitas","villa","vinco","vinculum","vindico","vinitor","vinum","vir","virga","virgo","viridis","viriliter","virtus","vis","viscus","vita","vitiosus","vitium","vito","vivo","vix","vobis","vociferor","voco","volaticus","volo","volubilis","voluntarius","volup","volutabrum","volva","vomer","vomica","vomito","vorago","vorax","voro","vos","votum","voveo","vox","vulariter","vulgaris","vulgivagus","vulgo","vulgus","vulnero","vulnus","vulpes","vulticulus","vultuosus","xiphias"]})(Ywn);var BDa=Ywn.exports;(function(t){var e={};t.exports=e,e.words=LDa,e.supplemental=BDa})(Qwn);var DDa=Qwn.exports,Jwn={exports:{}},Zwn={exports:{}};(function(t){t.exports=["אביאל","אביגדור","אביה","אביחי","אבינועם","אביעד","אבירם","אבירן","אבישי","אביתר","אברהם","אבשלום","אגם","אדיר","אדם","אדר","אהוד","אהרון","אוהד","אופיר","אופק","אור","אורי","אוריאל","אוריה","אורן","אושרי","אחיה","אייל","איל","אילון","אילן","אימרי","איתי","איתם","איתמר","איתן","אלדד","אלדר","אלון","אלחי","אלחנן","אליאב","אליאור","אליאס","אליה","אליהו","אלימלך","אליסף","אלירז","אלירן","אלישיב","אלישמע","אלישע","אלכס","אלכסנדר","אלמוג","אלעד","אלקנה","אלרועי","אמור","אמיר","אמיתי","אמנון","אסיף","אסף","אפיק","אפרים","אראל","ארבל","ארז","ארטיום","ארי","אריאל","אריה","ארנון","ארתור","אשד","אשל","אשר","בארי","בועז","בן אל","בן ציון","בניה","בנימין","בצלאל","בר","בראל","ברוך","ברי","ברק","גד","גדעון","גוון","ג'וי","גולן","ג'ון","גוני","גור","גורן","גיא","גיורא","גיל","גילי","גל","גלבוע","גלעד","גפן","דביר","דגן","דוד","דולב","דור","דורון","דן","דני","דניאל","דקל","דרור","הדר","הוד","הלל","הראל","ולדימיר","זאב","זבולון","זוהר","זיו","חביב","חגי","חושן","חי","חיים","חמי","חן","חנוך","חנן","חסד","טל","טנא","יאיר","יאן","יגאל","יגל","ידיד","ידידיה","יהב","יהודה","יהונתן","יהורם","יהושע","יהל","יהלום","יהלי","יואב","יואל","יובל","יוגב","יוחאי","יונתן","יוסף","יורם","יותם","יחזקאל","ים","ינון","יניב","יעקב","יפתח","יצחק","יקיר","ירדן","ירון","יריב","ישי","ישראל","יששכר","יאיר","יאן","יגאל","יגל","ידיד","ידידיה","יהב","יהודה","יהונתן","יהורם","יהושע","יהל","יהלום","יהלי","יואב","יואל","יובל","יוגב","יוחאי","יונתן","יוסף","יורם","יותם","יחזקאל","ים","ינון","יניב","יעקב","יפתח","יצחק","יקיר","ירדן","ירון","יריב","ישי","ישראל","יששכר","כוכב","כליל","כפיר","כרם","כרמי","כרמל","לב","לביא","לוטם","לוטן","לוי","לי","ליאון","ליאור","ליאל","ליאם","לידור","ליעד","ליר","לירוי","לירון","לירז","לירן","מאור","מאיר","מגל","מור","מורן","מיטב","מיכאל","מירן","מלאכי","מנחם","מנשה","מעיין","מרדכי","משה","מתן","נבו","נדב","נהוראי","נוב","נוי","נועם","נח","נחשון","נטע","ניב","ניסן","ניצן","ניקולס","ניר","ניתאי","נמרוד","נפתלי","נרי","נריה","נתיב","נתן","נתנאל","סביון","סהר","סול","סטפן","סיני","סער","סרגיי","סשה","סתיו","עברי","עדי","עדן","עודד","עוז","עוזיה","עומר","עומרי","עופר","עופרי","עידו","עידן","עילאי","עלי","עמוס","עמיחי","עמית","עמנואל","עקיבא","ערן","פלא","פלג","צבי","צדק","צוף","צוק","צור","צח","צחי","ציון","צליל","קסם","ראובן","ראם","רביב","רביד","רגב","רון","רוני","רועי","רותם","רז","ריי","רימון","רם","רן","רעי","רפאל","שאול","שגב","שגיא","שובל","שוהם","שחף","שחק","שחר","שי","שי לי","שילה","שיר","שלום","שלומי","שלמה","שמאי","שמואל","שמחה","שמעון","שקד","שרון","תבור","תו","תום","תומר","תיאו","תמיר"]})(Zwn);var Xwn=Zwn.exports,e_n={exports:{}};(function(t){t.exports=["אביב","אביבית","אביגיל","אביה","אביטל","אבישג","אגם","אדווה","אדל","אדר","אהבה","אודיה","אודליה","אווה","אופיר","אופירה","אופל","אופק","אור","אביגיל","אורטל","אורי","אוריה","אורית","אורלי","אושרי","איב","איה","איילה","איילת","אילנה","אילנית","אימרי","אירית","אלה","אלומה","אליאנה","אליה","אלין","אלינור","אליענה","אלירז","אלישבע","אלכס","אלמוג","אמונה","אמור","אן","אנאבל","אנה","אסיף","אסנת","אסתר","אפיק","אפריל","אפרת","אראלה","ארבל","אריאל","אריאלה","אריאנה","ארייה","בארי","בל","בלה","בר","ברית","ברקת","בת","בת אל","בת חן","בת שבע","בתיה","גאיה","גבריאל","גבריאלה","גוון","ג'וי","ג'ון","גוני","גורן","גיל","גילי","גילת","גל","גלי","גליה","גלית","גפן","דבורה","דגן","דגנית","דור","דורון","דורין","דורית","דיאנה","דינה","דליה","דנה","דניאל","דניאלה","דנית","דפנה","דקל","דקלה","הגר","הדס","הדסה","הדר","הודיה","הילה","הלל","ויויאן","ויטה","ויקטוריה","ורד","זהבה","זוהר","זיו","חגית","חושן","חיננית","חירות","חמוטל","חן","חנה","חנית","טובה","טופז","טל","טלי","טליה","טנא","יהב","יהודית","יהל","יהלום","יהלי","יובל","יודפת","יוכבד","יוליה","יונית","יונת","ים","ימית","יסכה","יסמין","יעל","יעלה","יערה","יפה","יפית","יפעת","ירדן","כוכב","כליל","כרם","כרמי","כרמית","כרמל","לאה","לבנה","לוטם","לוטן","לוסי","לי","ליאור","ליאורה","ליאל","ליאם","ליאן","ליאת","ליב","ליבי","לידור","ליה","ליהיא","ליזה","ליטל","לילי","ליליה","לילך","לימור","ליעד","ליר","לירון","לירז","לירן","לשם","מאור","מאי","מאיה","מגי","מגל","מור","מוריה","מורן","מיה","מיטב","מיטל","מיכאל","מיכאלה","מיכל","מיקה","מירן","מלכה","מעיין","מצדה","מרב","מריה","מרים","מרינה","מתנה","מתת","נאוה","נגה","נוי","נויה","נועה","נועם","נופר","נורית","נטלי","נטע","נטעלי","ניב","נילי","נינט","ניצן","נעמה","נעמי","נרי","נריה","סביון","סהר","סול","סופיה","סיגלית","סיון","סמדר","ספיר","סשה","סתיו","עדי","עדן","עדנה","עומר","עופרי","עיינה","עינב","עינת","עלמא","עלמה","עמית","עמליה","עמנואל","ענבל","ענבר","ענהאל","ענת","עפרה","ערגה","פלג","צאלה","צוף","צופיה","צליל","צמרת","קורין","קורל","קטיה","קליה","קמה","קסם","קסניה","קרן","קשת","רביד","רבקה","רויטל","רוית","רומי","רון","רונהלי","רוני","רונית","רות","רותם","רז","רחל","ריטה","רימון","רינת","רננה","רעות","שגב","שגית","שובל","שוהם","שולמית","שונית","שושנה","שחף","שחר","שי","שי לי","שיר","שיראל","שירה","שירז","שירי","שלהבת","שלומית","שלי","שמחה","שמרית","שני","שקד","שקמה","שרה","שרון","שרית","תאיר","תאנה","תבור","תהילה","תו","תום","תומר","תכלת","תלמה","תמר","תמרה","תפארת","תקווה"]})(e_n);var t_n=e_n.exports,n_n={exports:{}};(function(t){var e=Xwn,n=t_n,r=[];e.forEach(function(a){r.push(a)}),n.forEach(function(a){r.push(a)}),t.exports=r.sort()})(n_n);var $Da=n_n.exports,r_n={exports:{}};(function(t){t.exports=["עברות","אביב","אביבי","אביגור","אבידור","אבידן","אביטל","אבינועם","אבינר","אבינרי","אביעד","אביעזר","אבירם","אבישי","אבישר","אביתר","אבן","אבן זהב","אבן חן","אבן צור","אבן שושן","אבנון","אבני","אבניאל","אבנר","אבנרי","אברהם","אברהמי","אברון","אבריאל","אגוז","אגוזי","אגמון","אגרון","אדוני","אדיב","אדירי","אדם","אדמון","אדמוני","אדר","אהרוני","אהרן","אוהד","און","אופיר","אופק","אור","אורון","אוריאל","אוריה","אוריון","אוריין","אורן","אזרחי","אחז","אחיטוב","אחרון","אייל","איילון","אילון","אילן","אילני","אילת","איש כסית","איששלום","איתם","איתן","אלדד","אלדד","אלדן","אלול","אלון","אלוני","אלוף","אלחנני","אליאב","אליהו","אליעז","אליעזר","אליצור","אליקים","אלישיב","אלמגור","אלמוג","אלעד","אלעזר","אלרום","אלרון","אמיר","אמית","אמיתי","אנקורי","אסא","אסיא","אסיף","אסף","אפעל","אפק","אפרת","אראל","ארבל","ארגוב","ארגמן","ארד","ארדון","ארוך","ארז","ארזי","אריאב","אריאל","אריאלי","ארידור","אריה","אריכא","ארם","ארמוני","ארנון","ארצי","אשבל","אשד","אשור","אשכול","אשכנזי","אשל","אשר","אשרי","אשרת","אתגר","אתר","אתרוג","ב׳׳ק","באב׳׳ד","באר","בארי","בבלי","בהט","בוצר","בורר","בחור","ביצור","בית הלחמי","בית יוסף","בית לחם","בכור","בן","בן אברהם","בן אליעזר","בן אמוץ","בן ארי","בן אריה","בן ארצי","בן אשר","בן ברוך","בן ברק","בן גל","בן גרא","בן דב","בן דוד","בן דור","בן דיין","בן זאב","בן זכאי","בן זקן","בן חור","בן חיים","בן חנן","בן חנניה","בן יהודה","בן יעקב","בן יצחק","בן ישי","בן ישראל","בן מלך","בן מנחם","בן נון","בן נחום","בן נר","בן נתן","בן עמי","בן ענת","בן פורת","בן צבי","בן צור","בן ציון","בן ראובן","בן שאול","בן שחר","בן שלום","בן שמחון","בן שמעון","בןגוריון","בןחורין","בןמאיר","בןסירה","בןתור","בנאי","משפחת בנאי","בנטוב","בנימין","בנימיני","בצלאל","בר","בר אור","בר גיורא","בר זוהר","בר יהודה","בר יעקב","בר נתן","בר שלום","בראון","בראילן","ברהלל","בריוסף","ברלב","ברעוז","בראל","ברוך","ברוש","ברושי","ברזילי","ברזל","ברטוב","ברטל","ברנע","ברעם","ברק","ברקאי","ברקין","ברקן","ברקת","בשן","גאון","גבאי","גביש","גבע","גבעול","גבעון","גבעתי","גבתון","גד","גדות","גדיש","גדליה","גדרון","גודר","גולן","גונן","גופר","גור אריה","גוריון","גורלי","גורן","גושן","גזית","גיא","גידור","גיל","גילון","גילת","גינוסר","גינת","גינתון","גל","גלבוע","גליל","גלילי","גלעד","גלעדי","גלרון","גמזו","גמליאל","גנור","גפן","גפני","גרא","גרינבלט","גרנות","גרשון","גת","דביר","דברת","דגן","דגני","דוד","דוידי","דולב","דור","דורי","דותן","דן","דניאלי","דקל","דר","דרומי","דרור","דרורי","דשא","הדס","הדר","הלוי","הללי","המאירי","הנגבי","העצני","הר נוי","הר שפי","הראבן","הראבן","הראובני","הראל","הרטוב","הרפז","הררי","הללי","המאירי","הנגבי","העצני","הר נוי","הר שפי","הראבן","הראבן","הראובני","הראל","הרטוב","הרפז","הררי","וילנאי","ורד","ורדי","ורדימון","זזאב","זאבי","זבולון","זהבי","זוהר","זורע","זיו","זיואב","זכאי","זכות","זכריה","זמורה","זמיר","זמר","זמרי","זעירא","זק","זק׳׳ש","זר","זר","זרובבל","זרטל","חדש","חובה","חורש","חזן","חזני","חזקיה","חי","חייט","חיים","חכם","חלד","חלמיש","חן","חנוך","חנוכה","חנני","חסון","חסיד","חפץ","חפר","חץ","חצור","חצרוני","חרובי","חרותי","חריף","חרל׳׳פ","חרמון","חרמוני","חת","טבת","טוביה","טלמור","טלשיר","יאיר","יבין","יגור","ידיד","ידין","ידעיה","יהב","יהודאי","יהודה","יהושע","יהלום","יובל","יוגב","יוטבת","יונה","יוסף","יושע","יחזקאל","יחיאל","יכין","ימיני","ינון","יניב","יעקבי","יער","יערי","יפה","יפרח","יפת","יצחק","יצחקי","יקיר","ירדני","ירוחם","ירום","ירון","ירושלמי","יריב","ירקוני","ישורון","ישי","ישר","ישראל","ישראלי","יששכר","כהן","משפחות כהן","משפחת כהןסקלי","כוכבי","כנען","כנעני","כנר","כספי","כפיר","כפרי","כרמון","כרמי","כרמל","כרמלי","לאור","לב","לב ארי","לבבי","לביא","לבנון","לבני","לבנת","להב","להבי","לוטם","לוטן","לוי (יהדות)","לוי (שם משפחה)","לוי נחום","לויתן","לחמן","ליאור","לידור","ליטאי","לימור","ליש","לשם","מאור","מאיר","מאירי","מגד","מגל","מואב","מוקד","מוקדי","מורג","מוריה","מורשת","מזא׳׳ה","מזור","מזל","מזר","מאיר מיבר","מיכה","מילוא","מישורי","מלכה","מלכי","מלמד","מנור","מנחם","מנשה","מעוז","מעיין","מעייני","מערבי","מרגליות","מרגלית","מרגנית","מרום","מרון","מרידור","משה","משולח","משיח","משעול","משעל","משען","משעני","מתניה","מתתיהו","נאור","נאמן","נבון","נגבי","נוב","נווה","נוימרק","נועם","נוריאל","נחום","נחושתן","נחשון","ניב","ניסני","ניצן","נמרי","נסים","נץ","נריה","נשר","נשרי","נתיב","נתן","נתנאל","נתניהו","סבוראי","סביר","סגל","סדן","סהר","סופר","סימן טוב","סיני","סכנין","סלע","סמדר","סנונית","סעד","סער","ספיר","סתוי","סתיו","עברון","עברי","עדיני","עדר","עובד","עובדיה","עובדיהו","עוגן","עוז","עוזר","עומר","עופר","עופרים","עזוז","עזריאל","עזריה","עזרתי","עידן","עילם","עינב","עמוס","עמיאל","עמיקם","עמיר","עמירן","עמית","עמרמי","ענבל","ענבר","עסיס","עפרת","עצמון","ערד","ערמון","ערן","עשת","פאר","פדהצור","פולני","פורת","פז","פלאי","פלד","פלס","פניני","פסח","פרג","פרוש","פרח","פרי","פריגת","פרימור","פרץ","פת","צבר","צדוק","צדקה","צדקיהו","צוק","צור","צורי","צוריאל","צורף","צידון","צמח","צפיר","צפריר","קדמון","קדמי","קדר","קדרון","קהת","קורח","קורן","קטן","קידר","קינן","קיסרי","קישון","קם","קמה","קמחי","קנר","קנת","קצב","קצין","קציר","קשת","קשתי","ראובני","רבי","רביב","רביד","רגב","רהב","רוגל","רווה","רווח","רוח","רום","רועה","רז","רזיאל","רחמים","רכס","רם","רמון","רמז","רמתי","רן","רענן","רשף","שאול","שאולי","שאלתיאל","שבח","שביב","שבת","שבתאי","שבתי","שגב","שגיא","שדה","שדר","שוב","שובל","שוהם","שוחט","שומרון","שוער","שופט","שור","שורק","שושן","שושני","שחור","שחורי","שחל","שחם","שחף","שחק","שחר","שילה","שילוח","שילון","שילוני","שיר","שיש","שלג","שלו","שלום","שלומי","שלח","שלם","שלמון","שם אור","שםטוב","שמואל","שמואלי","שמחון","שמחוני","שמחי","שמעון","שמרון","שמש (שם משפחה)","שמשון","שמשוני","שמשי","שנהר","שני","שנער","שער","שפיר","שפע","שץ","שקד","שקדי","שקלים","שרביט","שרון","שרוני","שריג","שריד","שריף","שריר","ששון","תאומים","תאני","תבור","תבורי","תגר","תדמור","תומר","תורן","תירוש","תל צור","תלם","תמוז","תמיר","תמרי","תקווה","תקוע","תרשיש","תשבי"]})(r_n);var FDa=r_n.exports,i_n={exports:{}};(function(t){t.exports=["Asexual","Female to male trans man","Female to male transgender man","Female to male transsexual man","F2M","Gender neutral","Hermaphrodite","Intersex man","Intersex person","Intersex woman","Male to female trans woman","Male to female transgender woman","Male to female transsexual woman","Man","M2F","Polygender","T* man","T* woman","Two* person","Two-spirit person","Woman","Agender","Androgyne","Androgynes","Androgynous","Bigender","Cis","Cis Female","Cis Male","Cis Man","Cis Woman","Cisgender","Cisgender Female","Cisgender Male","Cisgender Man","Cisgender Woman","Female to Male","FTM","Gender Fluid","Gender Nonconforming","Gender Questioning","Gender Variant","Genderqueer","Intersex","Male to Female","MTF","Neither","Neutrois","Non-binary","Other","Pangender","Trans","Trans Female","Trans Male","Trans Man","Trans Person","Trans*Female","Trans*Male","Trans*Man","Trans*Person","Trans*Woman","Transexual","Transexual Female","Transexual Male","Transexual Man","Transexual Person","Transexual Woman","Transgender Female","Transgender Person","Transmasculine","Two-spirit"]})(i_n);var jDa=i_n.exports,a_n={exports:{}};(function(t){t.exports=["Mr.","Mrs.","Ms.","Miss","Dr."]})(a_n);var HDa=a_n.exports,o_n={exports:{}};(function(t){t.exports=["Jr.","Sr.","I","II","III","IV","V","MD","DDS","PhD","DVM"]})(o_n);var UDa=o_n.exports,s_n={exports:{}};(function(t){t.exports={descriptor:["Lead","Senior","Direct","Corporate","Dynamic","Future","Product","National","Regional","District","Central","Global","Customer","Investor","Dynamic","International","Legacy","Forward","Internal","Human","Chief","Principal"],level:["Solutions","Program","Brand","Security","Research","Marketing","Directives","Implementation","Integration","Functionality","Response","Paradigm","Tactics","Identity","Markets","Group","Division","Applications","Optimization","Operations","Infrastructure","Intranet","Communications","Web","Branding","Quality","Assurance","Mobility","Accounts","Data","Creative","Configuration","Accountability","Interactions","Factors","Usability","Metrics"],job:["Supervisor","Associate","Executive","Liaison","Officer","Manager","Engineer","Specialist","Director","Coordinator","Administrator","Architect","Analyst","Designer","Planner","Orchestrator","Technician","Developer","Producer","Consultant","Assistant","Facilitator","Agent","Representative","Strategist"]}})(s_n);var zDa=s_n.exports,l_n={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name} #{suffix}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(l_n);var GDa=l_n.exports;(function(t){var e={};t.exports=e,e.male_first_name=Xwn,e.female_first_name=t_n,e.first_name=$Da,e.last_name=FDa,e.gender=jDa,e.prefix=HDa,e.suffix=UDa,e.title=zDa,e.name=GDa})(Jwn);var VDa=Jwn.exports,c_n={exports:{}},u_n={exports:{}};(function(t){t.exports=["!##-!##-####","(!##) !##-####","1-!##-!##-####","!##.!##.####","!##-!##-####","(!##) !##-####","1-!##-!##-####","!##.!##.####","!##-!##-#### x###","(!##) !##-#### x###","1-!##-!##-#### x###","!##.!##.#### x###","!##-!##-#### x####","(!##) !##-#### x####","1-!##-!##-#### x####","!##.!##.#### x####","!##-!##-#### x#####","(!##) !##-#### x#####","1-!##-!##-#### x#####","!##.!##.#### x#####"]})(u_n);var KDa=u_n.exports;(function(t){var e={};t.exports=e,e.formats=KDa})(c_n);var WDa=c_n.exports,d_n={exports:{}},h_n={exports:{}};(function(t){t.exports=["###-###-####","(###)-##-###-####","+(###)-##-###-####","+###-##-###-####","1-###-###-####","### ### ####"]})(h_n);var QDa=h_n.exports;(function(t){var e={};t.exports=e,e.formats=QDa})(d_n);var qDa=d_n.exports,f_n={exports:{}},p_n={exports:{}};(function(t){t.exports=["אדום","ירוק","כחול","צהוב","סגול","ירוק מנטה","ירוק כחלחל","לבן","שחור","כתום","ורוד","אפור","חוּם עֲרמוֹנִי","סָגוֹל","טורקיז","שזוף","שמים כחולים","סלמון","שזיף","סחלב","זית","מגנטה","ליים","שנהב","אינדיגו","זהב","ורוד פוקסיה","טורקיז","צבע תכלת","לבנדר","כסף"]})(p_n);var YDa=p_n.exports,m_n={exports:{}};(function(t){t.exports=["ספרים","סרטים","מוסיקה","משחקים","מכשירי חשמל","מחשבים","בית","גן","כלים","מכולת","בריאות","יופי","צעצועים","ילדים","תִינוֹק","ביגוד","נעליים","תכשיטים","ספורט","מחוץ לבית","רכב","תעשייתי"]})(m_n);var JDa=m_n.exports,g_n={exports:{}};(function(t){t.exports={adjective:["קטן","ארגונומי","כפרי","אינטליגנטי","מאוד יפה","מדהים","פנטסטי","מעשי","מלוטש","מדהים","גנרית","עבודת יד","עבודת יד","מורשה","מְזוּקָק","לא ממותג","טעים"],material:["פלדה","עץ","בטון","פלסטי","כותנה","גרניט","גומי","מתכת","רך","צַח","קפוא"],product:["כיסא","אוטו","מחשב","מקלדת","עכבר","אופניים","כדור","כפפות","מכנסיים","חולצה","שולחן","נעליים","כובע","מגבות","סבון","טונה","עוף","דג","גבינה","בייקון","פיצה","סלט","נקניקיות","צ'יפס"]}})(g_n);var ZDa=g_n.exports,v_n={exports:{}};(function(t){t.exports=["כסא מנהלים ארגונומי מרופד בעור שחור מלוכדות ובמושב ובגב מרופד PVC לנוחות ותמיכה לאורך כל היום","מערך הרכב מורכב מעיצוב מנוע קדמי, עם תיבות הילוכים מסוג ציר טרנסוולר המותקנות בחלק האחורי של המנוע והנעה עם ארבעה גלגלים","חדש ABC 13 9370, 13.3, דור 5 CoreA5-8250U, 8GB RAM, 256GB SSD, כוח UHD גרפיקה, OS 10 Home, OS Office A & J 2016","מקלדת מייפל גיימינג דקה ופשוטה מבית Dev Byte מגיעה עם גוף אלגנטי ותאורת RGB LED בגוון 7 צבעים לפונקציונליות חכמה","אפולוטק B340 הוא עכבר אלחוטי במחיר סביר עם קישוריות אמינה, חיי סוללה של 12 חודשים ועיצוב מודרני","נאגסאקי לנדר הוא השם המסחרי המסחרי של מספר סדרות של אופני ספורט נגסאקי, שהחלו ב- ABC800J משנת 1984","הכדורגל טוב לאימונים ולמטרות פנאי","כפפות שוער רשת קרבוניט מעוצבות באופן ארגונומי בכדי להעניק התאמה קלה","טכנולוגיית שחיקת הדחיסה המתקדמת ביותר של בוסטון מגבירה את החמצון בשרירים, מייצבת שרירים פעילים","מגוון חדש של חולצות רשמיות מעוצבות תוך התחשבות בך. עם התאמות ועיצוב שיגרמו לך להתבלט","המגוון היפה של תפוח נטורל שיש בו שילוב מרגש של מרכיבים טבעיים. עם הטוב של 100% מרכיבים טבעיים","נעלי אנדי נועדו לזכור עמידות כמו גם טרנדים, מגוון הנעליים והסנדלים המסוגננים ביותר"]})(v_n);var XDa=v_n.exports;(function(t){var e={};t.exports=e,e.color=YDa,e.department=JDa,e.product_name=ZDa,e.product_description=XDa})(f_n);var e6a=f_n.exports,A_n={exports:{}},y_n={exports:{}};(function(t){t.exports={wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],wide_context:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],abbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],abbr_context:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}})(y_n);var t6a=y_n.exports,b_n={exports:{}};(function(t){t.exports={wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","שבת"],wide_context:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","שבת"],abbr:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],abbr_context:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"]}})(b_n);var n6a=b_n.exports;(function(t){var e={};t.exports=e,e.month=t6a,e.weekday=n6a})(A_n);var r6a=A_n.exports,x_n={exports:{}},E_n={exports:{}};(function(t){t.exports=["רוק","רוק מטאלי","פופ","אלקטרוני","עממית","עולם","קאנטרי","ג'אז","פאנק","נשמה","היפ הופ","קלאסית","לטינית","רגאיי","במה ומסך","בלוז","לא מוסיקה","ראפ"]})(E_n);var i6a=E_n.exports;(function(t){var e={};t.exports=e,e.genre=i6a})(x_n);var a6a=x_n.exports;(function(t){var e={};t.exports=e,e.title="Hebrew",e.separator="ו ",e.address=ODa,e.lorem=DDa,e.name=VDa,e.phone_number=WDa,e.cell_phone=qDa,e.commerce=e6a,e.date=r6a,e.music=a6a})(Twn);var o6a=Twn.exports,S_n={exports:{}},w_n={exports:{}},__n={exports:{}};(function(t){t.exports=["علی","حسن","محمد","مهدی","مسعود","دانیال","سجاد","امیر","رضا","مازیار","مهیار","محمدرضا","فرهاد","افشین","مهرداد","مهراد","کیانوش","کیوان","کامران","مهران","سروش","سامان","هادی","همایون","ایمان","رامین","رامتین","امین","سپهر","سهیل","عرفان","جواد","نیما","پرهام","میلاد","شایان","شهاب","کاوه","بهمن","سیاوش","سعید","امید","حسین","سینا","مهدیار","صدرا","عباس","امیرسینا","نوید","پیمان","پژمان","مجید","حمید","وحید","علیرضا","آیدین","آرمان","امیرحسین","آرین","کسرا","جمشید","فریبرز","قاسم","صمد","حامد","فرزاد","فریدون","فربد","فرگام","یاسین","آرش","آرمین","شهروز"]})(__n);var s6a=__n.exports,T_n={exports:{}};(function(t){t.exports=["مریم","نازنین","غزاله","محدثه","بهناز","زینب","کیمیا","سوسن","لاله","آنا","آناهیتا","آنیتا","آرمیتا","آتوسا","آیدا","بنفشه","بهار","بیتا","پارمیس","پریناز","پریسا","پرنیان","سارا","پگاه","ترانه","چکاوک","دریا","درسا","فرشته","ملیسا","ملیکا","رویا","زیبا","یاسمن","سپیده","سمیرا","سیما","شادی","هانیه","شهرزاد","شکوه","سمیه","شهلا","شیدا","شیوا","فرانک","فرزانه","فرناز","فریبا","فریماه","کتایون","گلاره","گیتی","گیسو","مروارید","مهرناز","مهسا","مینا","مینو","مهوش","میترا","نگین","نگار","نیلوفر","رز","هلیا","هستی"]})(T_n);var l6a=T_n.exports,C_n={exports:{}};(function(t){t.exports=["آبان دخت","آبتین","آتوسا","آفر","آفره دخت","آذرنوش‌","آذین","آراه","آرزو","آرش","آرتین","آرتام","آرتمن","آرشام","آرمان","آرمین","آرمیتا","آریا فر","آریا","آریا مهر","آرین","آزاده","آزرم","آزرمدخت","آزیتا","آناهیتا","آونگ","آهو","آیدا","اختر","ارد","اردشیر","اردوان","ارژن","ارژنگ","ارسلان","ارغوان","ارمغان","ارنواز","اروانه","استر","اسفندیار","اشکان","اشکبوس","افسانه","افسون","افشین","امید","آنوشا","انوشروان","اورنگ","اوژن","اوستا","اهورا","ایاز","ایران","ایراندخت","ایرج","ایزدیار","بابک","باپوک","باربد","بارمان","بامداد","بامشاد","بانو","بختیار","برانوش","بردیا","برزو","برزویه","برزین","برمک","بزرگمهر","بنفشه","بوژان","بویان","بهار","بهارک","بهاره","بهتاش","بهداد","بهرام","بهدیس","بهرخ","بهرنگ","بهروز","بهزاد","بهشاد","بهمن","بهناز","بهنام","بهنود","بهنوش","بیتا","بیژن","پارسا","پاکان","پاکتن","پاکدخت","پانته آ","پدرام","پرتو","پرشنگ","پرتو","پرستو","پرویز","پردیس","پرهام","پژمان","پژوا","پرنیا","پشنگ","پروانه","پروین","پری","پریچهر","پریدخت","پریسا","پرناز","پریوش","پریا","پوپک","پوران","پوراندخت","پوریا","پولاد","پویا","پونه","پیام","پیروز","پیمان","تابان","تاباندخت","تاجی","تارا","تاویار","ترانه","تناز","توران","توراندخت","تورج","تورتک","توفان","توژال","تیر داد","تینا","تینو","جابان","جامین","جاوید","جریره","جمشید","جوان","جویا","جهان","جهانبخت","جهانبخش","جهاندار","جهانگیر","جهان بانو","جهاندخت","جهان ناز","جیران","چابک","چالاک","چاوش","چوبین","چهرزاد","خاوردخت","خداداد","خدایار","خرم","خرمدخت","خسرو","خشایار","خورشید","دادمهر","دارا","داراب","داریا","داریوش","دانوش","داور‌","دایان","دریا","دل آرا","دل آویز","دلارام","دل انگیز","دلبر","دلبند","دلربا","دلشاد","دلکش","دلناز","دلنواز","دورشاسب","دنیا","دیااکو","دیانوش","دیبا","دیبا دخت","رابو","رابین","رادبانو","رادمان","رازبان","راژانه","راسا","رامتین","رامش","رامشگر","رامونا","رامیار","رامیلا","رامین","راویار","رژینا","رخپاک","رخسار","رخشانه","رخشنده","رزمیار","رستم","رکسانا","روبینا","رودابه","روزبه","روشنک","روناک","رهام","رهی","ریبار","راسپینا","زادبخت","زاد به","زاد چهر","زاد فر","زال","زادماسب","زاوا","زردشت","زرنگار","زری","زرین","زرینه","زمانه","زونا","زیبا","زیبار","زیما","زینو","ژاله","ژالان","ژیار","ژینا","ژیوار","سارا","سارک","سارنگ","ساره","ساسان","ساغر","سام","سامان","سانا","ساناز","سانیار","ساویز","ساهی","ساینا","سایه","سپنتا","سپند","سپهر","سپهرداد","سپیدار","سپید بانو","سپیده","ستاره","ستی","سرافراز","سرور","سروش","سرور","سوبا","سوبار","سنبله","سودابه","سوری","سورن","سورنا","سوزان","سوزه","سوسن","سومار","سولان","سولماز","سوگند","سهراب","سهره","سهند","سیامک","سیاوش","سیبوبه ‌","سیما","سیمدخت","سینا","سیمین","سیمین دخت","شاپرک","شادی","شادمهر","شاران","شاهپور","شاهدخت","شاهرخ","شاهین","شاهیندخت","شایسته","شباهنگ","شب بو","شبدیز","شبنم","شراره","شرمین","شروین","شکوفه","شکفته","شمشاد","شمین","شوان","شمیلا","شورانگیز","شوری","شهاب","شهبار","شهباز","شهبال","شهپر","شهداد","شهرآرا","شهرام","شهربانو","شهرزاد","شهرناز","شهرنوش","شهره","شهریار","شهرزاد","شهلا","شهنواز","شهین","شیبا","شیدا","شیده","شیردل","شیرزاد","شیرنگ","شیرو","شیرین دخت","شیما","شینا","شیرین","شیوا","طوس","طوطی","طهماسب","طهمورث","غوغا","غنچه","فتانه","فدا","فراز","فرامرز","فرانک","فراهان","فربد","فربغ","فرجاد","فرخ","فرخ پی","فرخ داد","فرخ رو","فرخ زاد","فرخ لقا","فرخ مهر","فرداد","فردیس","فرین","فرزاد","فرزام","فرزان","فرزانه","فرزین","فرشاد","فرشته","فرشید","فرمان","فرناز","فرنگیس","فرنود","فرنوش","فرنیا","فروتن","فرود","فروز","فروزان","فروزش","فروزنده","فروغ","فرهاد","فرهنگ","فرهود","فربار","فریبا","فرید","فریدخت","فریدون","فریمان","فریناز","فرینوش","فریوش","فیروز","فیروزه","قابوس","قباد","قدسی","کابان","کابوک","کارا","کارو","کاراکو","کامبخت","کامبخش","کامبیز","کامجو","کامدین","کامران","کامراوا","کامک","کامنوش","کامیار","کانیار","کاووس","کاوه","کتایون","کرشمه","کسری","کلاله","کمبوجیه","کوشا","کهبد","کهرام","کهزاد","کیارش","کیان","کیانا","کیانچهر","کیاندخت","کیانوش","کیاوش","کیخسرو","کیقباد","کیکاووس","کیوان","کیوان دخت","کیومرث","کیهان","کیاندخت","کیهانه","گرد آفرید","گردان","گرشا","گرشاسب","گرشین","گرگین","گزل","گشتاسب","گشسب بانو","گل","گل آذین","گل آرا‌","گلاره","گل افروز","گلاله","گل اندام","گلاویز","گلباد","گلبار","گلبام","گلبان","گلبانو","گلبرگ","گلبو","گلبهار","گلبیز","گلپاره","گلپر","گلپری","گلپوش","گل پونه","گلچین","گلدخت","گلدیس","گلربا","گلرخ","گلرنگ","گلرو","گلشن","گلریز","گلزاد","گلزار","گلسا","گلشید","گلنار","گلناز","گلنسا","گلنواز","گلنوش","گلی","گودرز","گوماتو","گهر چهر","گوهر ناز","گیتی","گیسو","گیلدا","گیو","لادن","لاله","لاله رخ","لاله دخت","لبخند","لقاء","لومانا","لهراسب","مارال","ماری","مازیار","ماکان","مامک","مانا","ماندانا","مانوش","مانی","مانیا","ماهان","ماهاندخت","ماه برزین","ماه جهان","ماهچهر","ماهدخت","ماهور","ماهرخ","ماهزاد","مردآویز","مرداس","مرزبان","مرمر","مریم","مزدک","مژده","مژگان","مستان","مستانه","مشکاندخت","مشکناز","مشکین دخت","منیژه","منوچهر","مهبانو","مهبد","مه داد","مهتاب","مهدیس","مه جبین","مه دخت","مهر آذر","مهر آرا","مهر آسا","مهر آفاق","مهر افرین","مهرآب","مهرداد","مهر افزون","مهرام","مهران","مهراندخت","مهراندیش","مهرانفر","مهرانگیز","مهرداد","مهر دخت","مهرزاده ‌","مهرناز","مهرنوش","مهرنکار","مهرنیا","مهروز","مهری","مهریار","مهسا","مهستی","مه سیما","مهشاد","مهشید","مهنام","مهناز","مهنوش","مهوش","مهیار","مهین","مهین دخت","میترا","میخک","مینا","مینا دخت","مینو","مینودخت","مینو فر","نادر","ناز آفرین","نازبانو","نازپرور","نازچهر","نازفر","نازلی","نازی","نازیدخت","نامور","ناهید","ندا","نرسی","نرگس","نرمک","نرمین","نریمان","نسترن","نسرین","نسرین دخت","نسرین نوش","نکیسا","نگار","نگاره","نگارین","نگین","نوا","نوش","نوش آذر","نوش آور","نوشا","نوش آفرین","نوشدخت","نوشروان","نوشفر","نوشناز","نوشین","نوید","نوین","نوین دخت","نیشا","نیک بین","نیک پی","نیک چهر","نیک خواه","نیکداد","نیکدخت","نیکدل","نیکزاد","نیلوفر","نیما","وامق","ورجاوند","وریا","وشمگیر","وهرز","وهسودان","ویدا","ویس","ویشتاسب","ویگن","هژیر","هخامنش","هیربد","هرمز","همایون","هما","همادخت","همدم","همراز","همراه","هنگامه","هوتن","هور","هورتاش","هورچهر","هورداد","هوردخت","هورزاد","هورمند","هوروش","هوشنگ","هوشیار","هومان","هومن","هونام","هویدا","هیتاسب","هیرمند","هیما","هیوا","یادگار","یاسمن","یاشار","یاور","یزدان","یگانه","یوشیتا"]})(C_n);var c6a=C_n.exports,k_n={exports:{}};(function(t){t.exports=["عارف","عاشوری","عالی","عبادی","عبدالکریمی","عبدالملکی","عراقی","عزیزی","عصار","عقیلی","علم","علم‌الهدی","علی عسگری","علی‌آبادی","علیا","علی‌پور","علی‌زمانی","عنایت","غضنفری","غنی","فارسی","فاطمی","فانی","فتاحی","فرامرزی","فرج","فرشیدورد","فرمانفرمائیان","فروتن","فرهنگ","فریاد","فنایی","فنی‌زاده","فولادوند","فهمیده","قاضی","قانعی","قانونی","قمیشی","قنبری","قهرمان","قهرمانی","قهرمانیان","قهستانی","کاشی","کاکاوند","کامکار","کاملی","کاویانی","کدیور","کردبچه","کرمانی","کریمی","کلباسی","کمالی","کوشکی","کهنمویی","کیان","کیانی (نام خانوادگی)","کیمیایی","گل محمدی","گلپایگانی","گنجی","لاجوردی","لاچینی","لاهوتی","لنکرانی","لوکس","مجاهد","مجتبایی","مجتبوی","مجتهد شبستری","مجتهدی","مجرد","محجوب","محجوبی","محدثی","محمدرضایی","محمدی","مددی","مرادخانی","مرتضوی","مستوفی","مشا","مصاحب","مصباح","مصباح‌زاده","مطهری","مظفر","معارف","معروف","معین","مفتاح","مفتح","مقدم","ملایری","ملک","ملکیان","منوچهری","موحد","موسوی","موسویان","مهاجرانی","مهدی‌پور","میرباقری","میردامادی","میرزاده","میرسپاسی","میزبانی","ناظری","نامور","نجفی","ندوشن","نراقی","نعمت‌زاده","نقدی","نقیب‌زاده","نواب","نوبخت","نوبختی","نهاوندی","نیشابوری","نیلوفری","واثقی","واعظ","واعظ‌زاده","واعظی","وکیلی","هاشمی","هاشمی رفسنجانی","هاشمیان","هامون","هدایت","هراتی","هروی","همایون","همت","همدانی","هوشیار","هومن","یاحقی","یادگار","یثربی","یلدا"]})(k_n);var u6a=k_n.exports,R_n={exports:{}};(function(t){t.exports=["آقای","خانم","دکتر"]})(R_n);var d6a=R_n.exports,M_n={exports:{}};(function(t){t.exports={descriptor:["رهبر","ارشد","مستقیم","پویا","آینده","محصول","ملی","منطقه","ناحیه","مرکزی","جهانی","مشتری","سرمایه گذار","بین المللی","میراث","داخلی","انسان","رئیس","مدیر اصلی"],level:["راه حل ها","برنامه","نام تجاری","امنیت","پژوهش","بازار یابی","رهنمود","پیاده سازی","ادغام","عملکرد","واکنش","الگو","تدابیر","شناسایی","بازارها","گروه ها","بخش","برنامه های کاربردی","بهينه سازي","عملیات","زیر ساخت","اینترانت","ارتباطات","وب","کیفیت","اطمینان","پویایی","حساب ها","داده ها","خلاقیت","پیکربندی","مسئوليت","فعل و انفعالات","عوامل","قابلیت استفاده","معیار"],job:["کارگر ساده","سرپرست کارگاه","ناظر","مهندس پروژه","کارفرما","مدیر","سرپرست","اموردفتری","کارمند","مسئول","مدیرعامل","رئیس هیئت مدیره","عضو هیئت مدیره","کارشناس","مربی","مدرس","منشی","فروشنده","متصدی","تکنسین","استادکار","نصاب","حسابدار","راننده","نگهبان","رئیس","مهندس","مدیرفروش","کارشناس فنی","مسئول فنی","کارگر فنی","بازاریاب","کارپرداز","خدمتگزار"]}})(M_n);var h6a=M_n.exports;(function(t){var e={};t.exports=e,e.male_first_name=s6a,e.female_first_name=l6a,e.first_name=c6a,e.last_name=u6a,e.prefix=d6a,e.title=h6a})(w_n);var f6a=w_n.exports,N_n={exports:{}},I_n={exports:{}};(function(t){t.exports=["##","#"]})(I_n);var p6a=I_n.exports,P_n={exports:{}};(function(t){t.exports=["خیابان","کوچه","بن بست","بلوار"]})(P_n);var m6a=P_n.exports,O_n={exports:{}};(function(t){t.exports=["واحد #","# طبقه"]})(O_n);var g6a=O_n.exports,L_n={exports:{}};(function(t){t.exports=["#####-#####"]})(L_n);var v6a=L_n.exports,B_n={exports:{}};(function(t){t.exports=["آذربایجان شرقی","آذربایجان غربی","اردبیل","اصفهان","البرز","ایلام","بوشهر","تهران","چهارمحال و بختیاری","خراسان جنوبی","خراسان رضوی","خراسان شمالی","خوزستان","زنجان","سمنان","سیستان و بلوچستان","فارس","قزوین","قم","کردستان","کرمان","کرمانشاه","کهگیلویه و بویراحمد","گلستان","گیلان","لرستان","مازندران","مرکزی","هرمزگان","همدان","یزد"]})(B_n);var A6a=B_n.exports,D_n={exports:{}};(function(t){t.exports=["تهران","مشهد","اصفهان","کرج","تبریز","شیراز","اهواز","قم","کرمانشاه","ارومیه","رشت","زاهدان","کرمان","اراک","همدان","یزد","اردبیل","بندرعباس","اسلام‌شهر","زنجان","قزوین","سنندج","خرم‌آباد","گرگان","ساری","ملارد","قدس","کاشان","گلستان","شهریار","دزفول","خمینی‌شهر","بروجرد","نیشابور","سبزوار","نجف‌آباد","آمل","بابل","ورامین","آبادان","پاکدشت","خوی","ساوه","بجنورد","قائم‌شهر","بوشهر","قرچک","سیرجان","بیرجند","ایلام"]})(D_n);var y6a=D_n.exports,$_n={exports:{}};(function(t){t.exports=["#{city_name}"]})($_n);var b6a=$_n.exports,F_n={exports:{}};(function(t){t.exports=["آزادی","آفریقا","آذربایجان","حقانی","امیرکبیر","اجاره دار","اقبال لاهوری","ابوذر","قدس","سباری","فاطمی","مالک اشتر","نیایش","دیباجی","واعظی","دستغیب","موحد دانش","کارگر شمالی","استاد قریب","یادگار امام","دکتر چمران","رسالت","سمیه","شهید مطهری","هویزه","دماوند","توحید","ستارخان","کارون","استادمعین","رامین","اندرزگو"]})(F_n);var x6a=F_n.exports,j_n={exports:{}};(function(t){t.exports=["#{street_prefix} #{street_suffix}"]})(j_n);var E6a=j_n.exports,H_n={exports:{}};(function(t){t.exports=["#{street_name}, پلاک #{building_number}","#{street_name}, #{street_name}, پلاک #{building_number}"]})(H_n);var S6a=H_n.exports,U_n={exports:{}};(function(t){t.exports=["ایران"]})(U_n);var w6a=U_n.exports,z_n={exports:{}};(function(t){t.exports=["شمال","شرق","غرب","جنوب","جدید","جزیره"]})(z_n);var _6a=z_n.exports,G_n={exports:{}};(function(t){t.exports=["روستا","شهر","دهکده","بندر","دژ","بندرگاه","ناحیه"]})(G_n);var T6a=G_n.exports,V_n={exports:{}};(function(t){t.exports=["چین","هند","ایالات متحده آمریکا","اندونزی","برزیل","بنگلادش","روسیه","ژاپن","پاکستان","ویتنام","نیجریه","مکزیک","اتیوپی","آلمان","فیلیپین","تایلند","جمهوری دموکراتیک کنگو","میانمار","بریتانیا","فرانسه","ترکیه","ایران","مصر","کره جنوبی","ایتالیا","تانزانیا","کلمبیا","اسپانیا","اوکراین","کنیا","کانادا","آفریقای جنوبی","لهستان","اوگاندا","آرژانتین","ازبکستان","پرو","نپال","ونزوئلا","مالزی","کره شمالی","استرالیا","غنا","سودان","مراکش","تایوان","الجزایر","موزامبیک","ماداگاسکار","رومانی","قزاقستان","آنگولا","عراق","سریلانکا","کامرون","عربستان سعودی","شیلی","هلند","ساحل عاج","کامبوج","افغانستان","یمن","اکوادور","بورکینافاسو","زامبیا","سنگال","مالاوی","گینه","پرتغال","جمهوری چک","کوبا","بلژیک","سوئد","سوریه","بلاروس","سوئیس","بولیوی","یونان","جمهوری دومینیکن","هائیتی","نیجر","جمهوری آذربایجان","امارات متحده عربی","گواتمالا","رواندا","چاد","مجارستان","بوروندی","پاپوآ گینه نو","تونس","زیمبابوه","هنگ کنگ","اتریش","بنین","هندوراس","اسرائیل","سومالی","سنگاپور","لائوس","مالی","پاراگوئه","نیکاراگوئه","اریتره","جمهوری کنگو","دانمارک","السالوادور","اسلواکی","نروژ","فنلاند","توگو","بلغارستان","نیوزیلند","کویت","قرقیزستان","ترکمنستان","کاستاریکا","تاجیکستان","سیرالئون","جمهوری ایرلند","جمهوری آفریقای مرکزی","گرجستان","اردن","کرواسی","صربستان","اروگوئه","لیبی","پاناما","بوسنی و هرزگوین","لبنان","لیتوانی","قطر","ارمنستان","لیبریا","موریتانی","بوتسوانا","پورتوریکو","جامائیکا","مولداوی","آلبانی","مغولستان","اردن","لتونی","عمان","جمهوری مقدونیه","اسلوونی","نامیبیا","لسوتو","کوزوو","گامبیا","بحرین","استونی","موریس","گینه بیسائو","گابن","ترینیداد و توباگو","قبرس","اسواتینی","تیمور شرقی","ماکائو","نوار غزه","پادشاهی بوتان","فیجی","گویان","جیبوتی","مونتهنگرو","کومور","لوکزامبورگ","برونئی","جزایر سلیمان","باهاما","کیپ ورد","گینه استوایی","مالت","ایسلند","سورینام","مالدیو","صحرای غربی","باربادوس","بلیز","پلینزی فرانسه","وانواتو","کالدونیای جدید","سنت لوسیا","کوراسائو","گوآم","گرنادا","سنت وینسنت و گرنادینها","جرسی","سائوتومه و پرنسیپ","موناکو","آروبا","جزایر ویرجین ایالات متحده","ساموآ","جزیره من","تونگا","سیشل","جزایر کیمن","جزایر ماریانای شمالی","برمودا","آندورا","لیختناشتاین","جزایر فارو","گرنزی","آنتیگوا و باربودا","گرینلند","دومینیکا","سنت مارتین","سان مارینو","سنت کیتس و نویس","ساموای آمریکا","سنت مارتین","ایالات فدرال میکرونزی","جزایر ویرجین انگلستان","جبل طارق","جزایر مارشال","پالائو","کیریباتی","جزایر کوک","آنگویلا","جزایر فالکلند","جزایر تورکس و کایکوس","مونتسرات","تووالو","سنت پیر و ماژلان","والیس و فوتونا","واتیکان","سینت هلینا","سوالبارد","جزیره نورفولک","نیووی","توکلائو","جزایر پیتکرن"]})(V_n);var C6a=V_n.exports,K_n={exports:{}};(function(t){t.exports=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]})(K_n);var k6a=K_n.exports;(function(t){var e={};t.exports=e,e.building_number=p6a,e.street_prefix=m6a,e.secondary_address=g6a,e.postcode=v6a,e.state=A6a,e.city_name=y6a,e.city=b6a,e.street_suffix=x6a,e.street_name=E6a,e.street_address=S6a,e.default_country=w6a,e.city_prefix=_6a,e.city_suffix=T6a,e.country=C6a,e.country_code=k6a})(N_n);var R6a=N_n.exports,W_n={exports:{}},Q_n={exports:{}};(function(t){t.exports=["021 ### #####","031 ### #####","041 ### #####","045 ### #####","061 ### #####","051 ### #####","058 ### #####","028 ### #####","026 ### #####","044 ### #####","024 ### #####","023 ### #####","076 ### #####","+98 21 ### #####"]})(Q_n);var M6a=Q_n.exports;(function(t){var e={};t.exports=e,e.formats=M6a})(W_n);var N6a=W_n.exports,q_n={exports:{}},Y_n={exports:{}};(function(t){t.exports=["لورم","ایپسوم","متن","ساختگی","با،","تولید","سادگی","نامفهوم،","از","صنعت","چاپ","و با","استفاده","از","طراحان","گرافیک","است","چاپگرها","و متون","بلکه","روزنامه.","و مجله","در","ستون","و سطر","آنچنان","که،","لازم","است","و برای","شرایط","فعلی","تکنولوژی","مورد نیاز","و کاربردهای","متنوع","با هدف","بهبود","ابزارهای کاربردی","می باشد","کتابهای","زیادی","در","شصت و سه درصد","گذشته","حال","و آینده","شناخت","فراوان","جامعه","و","متخصصان","را","می طلبد","تا با،","نرم افزارها","شناخت","بیشتری را","برای","طراحان","رایانه ای","علی الخصوص ","طراحان خلاقی","و فرهنگ پیشرو","در زبان فارسی ","ایجاد","کرد","در این صورت","می توان","امید","داشت","که","تمام","و دشواری","موجود","در","ارائه","راهکارها","و","شرایط","سخت","تایپ","به پایان"," و زمان","مورد نیاز","شامل","حروفچینی","دستاوردهای","اصلی","و","جوابگوی","سوالات","پیوسته","اهل","دنیای","موجود","طراحی","اساسا","مورد","استفاده","قرار گیرد"]})(Y_n);var I6a=Y_n.exports;(function(t){var e={};t.exports=e,e.words=I6a})(q_n);var P6a=q_n.exports,J_n={exports:{}},Z_n={exports:{}};(function(t){t.exports=["0912 ### ####","0911 ### ####","0919 ### ####","0917 ### ####","0920 ### ####","0921 ### ####","0936 ### ####","0937 ### ####","0938 ### ####","0939 ### ####","0935 ### ####","0933 ### ####","0901 ### ####","0902 ### ####","0903 ### ####","0904 ### ####","0905 ### ####"]})(Z_n);var O6a=Z_n.exports;(function(t){var e={};t.exports=e,e.formats=O6a})(J_n);var L6a=J_n.exports,X_n={exports:{}},eTn={exports:{}};(function(t){t.exports={wide:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],wide_context:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],abbr:["فرو","ارد","خرد","تیر","مرد","شهر","مهر","آبا","آذر","دی","بهم","اسف"],abbr_context:["فرو","ارد","خرد","تیر","مرد","شهر","مهر","آبا","آذر","دی","بهم","اسف"]}})(eTn);var B6a=eTn.exports,tTn={exports:{}};(function(t){t.exports={wide:["شنبه","یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پتچشنبه","جمعه"],wide_context:["شنبه","یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پتچشنبه","جمعه"],abbr:["ش","ی","د","س","چ","پ","ج"],abbr_context:["ش","ی","د","س","چ","پ","ج"]}})(tTn);var D6a=tTn.exports;(function(t){var e={};t.exports=e,e.month=B6a,e.weekday=D6a})(X_n);var $6a=X_n.exports,nTn={exports:{}},rTn={exports:{}};(function(t){t.exports=["شورولت","کادیلاک","فورد","کرایسلر","دوج","جیپ","تسلا","تویوتا","هوندا","نیسان","آٔ‌ئودی","مرسدس بنز","بی ام و","ولکس واگن","پورشه","جگوار","استون مارتین","لندرور","بنتلی","مینی","رولز رویس","فیات","لامبورگینی","مازراتی","فراری","بوگاتی","کیا","هیوندای"]})(rTn);var F6a=rTn.exports,iTn={exports:{}};(function(t){t.exports=["فیستا","فوکوس","تاروس","موستانگ","اکسپلورر","کروز","مالیبو","ایمپالا","کامارو","کروت","کولورادو","سیلورادو","اسکالید","آلپاین","چارجر","چلنجر","رانگلر","گرند چروکی","رودستر","کمری","پریوس","لندکروزر","آکورد","سیویک","المنت","سنترا","آلتیما","یبتل","جتا","گلف","911","اسپایدر","کونتاچ","مورسیه لاگو","اونتادور"]})(iTn);var j6a=iTn.exports,aTn={exports:{}};(function(t){t.exports=["ون","کوپه","پیکاپ","مینی ون","ون مسافرتی","شاسی بلند","سدان","استیشن"]})(aTn);var H6a=aTn.exports,oTn={exports:{}};(function(t){t.exports=["دیزل","الکتریکی","بنزین","هیبرید"]})(oTn);var U6a=oTn.exports;(function(t){var e={};t.exports=e,e.manufacturer=F6a,e.model=j6a,e.type=H6a,e.fuel=U6a})(nTn);var z6a=nTn.exports,sTn={exports:{}},lTn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(lTn);var G6a=lTn.exports,cTn={exports:{}};(function(t){t.exports=["example.org","example.com","example.net"]})(cTn);var V6a=cTn.exports,uTn={exports:{}};(function(t){t.exports=["com","ir","info","net","org"]})(uTn);var K6a=uTn.exports;(function(t){var e={};t.exports=e,e.free_email=G6a,e.example_email=V6a,e.domain_suffix=K6a})(sTn);var W6a=sTn.exports,dTn={exports:{}},hTn={exports:{}};(function(t){t.exports=["قرمز","سبز","آبی","زرد","بنفش","فیروزه ای","سفید","سیاه","قهوه ای","نارنجی","صورتی","خاکستری","خرمایی","آبی آسمانی","ارغوانی","زیتونی","نیلی","طلایی","لاجوردی","نقره ای"]})(hTn);var Q6a=hTn.exports,fTn={exports:{}};(function(t){t.exports=["کتاب ها","فیلم ها","موزیک","بازی ها","الکترونیک","رایانه","خانه","باغ","ابزار","خواربار","سلامتی","زیبایی","اسباب بازی","بچه ها","بچه","تن پوش","کفش","زیور آلات","ورزش ها","بیرون از خانه","اتومبیل","صنعتی"]})(fTn);var q6a=fTn.exports,pTn={exports:{}};(function(t){t.exports={adjective:["کوچک","ارگونومیک","باهوش","جذاب","باور نکردنی","خارق العاده","کاربردی","براق","عالی","معمولی","دست ساز","لطیف","بدون محدودیت","خوش طعم"],material:["استیل","چوبی","بتنی","پلاستیکی","کتان","گرانیتی","فلزی","نرم","تازه","یخ زده"],product:["صندلی","ماشین","کامپیوتر","کیبورد","ماوس","دوچرخه","توپ","دستکش","شلوار","پیراهن","میز","کفش","کلاه","حوله","صابون","تن ماهی","مرغ","ماهی","پنیر","بیکن","پیتزا","سالاد","سوسیس","چیپس"]}})(pTn);var Y6a=pTn.exports;(function(t){var e={};t.exports=e,e.color=Q6a,e.department=q6a,e.product_name=Y6a})(dTn);var J6a=dTn.exports,mTn={exports:{}},gTn={exports:{}};(function(t){t.exports=["کارخانه","و پسران","شرکت با مسئولیت محدود","گروه"]})(gTn);var Z6a=gTn.exports,vTn={exports:{}};(function(t){t.exports=["انطباقی","پیشرفته","بهبود یافته","جذب شده","خودکار","متعادل","متمرکز بر تجارت","متمرکز","کلون شده","سازگار","قابل تنظیم","گروه متقابل","متمرکز بر مشتری","قابل تنظیم","غیر متمرکز","مهندسی شده","دیجیتالی شده","توزیع شده","گوناگون","کوچک شده","پیشرفته","ارگونومیک","انحصاری","منبسط","تمدید شده","رو در رو","متمرکز شده","خط مقدم","کاملاً قابل تنظیم","مبتنی بر عملکرد","اساسی","ضد آینده","افقی","پیاده سازی شده","خلاقانه","یکپارچه","شهودی","معکوس","اجباری","نظارت شده","چند کاناله","چند جانبی","متن باز","عملیاتی","بهینه شده","اختیاری","ارگانیک","سازمان یافته","پشتکار","مداوم","درجه","قطبی","فعال","متمرکز بر سود","ژرف","قابل برنامه ریزی","ترقی خواه","متمرکز بر کیفیت","واکنش گرا","تصحیح شده","رکود","مهندسی معکوس","قدرتمند","بدون درز","امن","خود توانمندی","همه کاره","مجازی","بینایی"]})(vTn);var X6a=vTn.exports,ATn={exports:{}};(function(t){t.exports=["24 ساعت","24/7","نسل سوم","نسل چهارم","نسل پنجم","نسل ششم","تجزیه و تحلیل","نامتقارن","ناهمگام","نگرش محور","پس زمینه","پهنای باند پایش","دو جهته","دوتایی","روشن اندیشی","مشتری محور","سرویس دهنده مشتری","منسجم","مرکب","حساس به متن","مبتنی بر متن","مبتنی بر محتوا","اختصاصی","تقاضا محور","اموزشی","جهت دار","گسسته","بی تفاوت","پویا","محیط زیست","توانمند سازی","اجرایی","صریح","خطاپذيری","پیش زمینه","پایدار","ثابت","سیستمی","شایسته سیستم","محسوس","انتقالی","یکسان","روند رو به بالا","تحمل صفر"]})(ATn);var e8a=ATn.exports,yTn={exports:{}};(function(t){t.exports=["توانایی","دسترسی","آداپتور","الگوریتم","اتحاد","تحلیلگر","کاربرد","رویکرد","معماری","بایگانی","هوش مصنوعی","آرایه","نگرش","معیار","مدیریت بودجه","قابلیت","ظرفیت","چالش","جریان","همکاری","پیچیدگی","مفهوم","اجتماع","احتمالی","هسته","بانک اطلاعاتی","پایگاه داده تحلیلی","تعریف","شبیه سازی","رمزگذاری","اکسترانت","سیستم عامل","انعطاف پذیری","نیروی کار"]})(yTn);var t8a=yTn.exports,bTn={exports:{}};(function(t){t.exports=["پیاده سازی","استفاده","ادغام","ساده سازی","بهینه سازی","تبدیل","پذیرفتن","فعال کردن","نفوذ کردن","اختراع دوباره","تجمیع","معماری","تحریک کردن","مورف","قدرت دادن","پیش بینی کننده","کسب درآمد","مهار","تسهیل کردن","تصاحب کردن","بی تفاوت","هم افزایی","استراتژی کردن","استقرار","نام تجاری","رشد کردن","هدف"]})(bTn);var n8a=bTn.exports,xTn={exports:{}};(function(t){t.exports=["ارزش افزوده","عمودی","فعال","قدرتمند","انقلابی","مقیاس پذیر","پیشرو","خلاقانه","شهودی","راهبردی","تجارت الکترونیکی","ماموریت بحرانی","چسبنده","یک به یک","24/7","جهانی","دانه ای","بدون اصطکاک","مجازی","ویروسی","پویا","24/365","مغناطیسی","عقب","موثر","توزیع شده","بدون درز","قابل توسعه","کلاس جهانی","متن باز","هم افزایی","بینایی","سفارشی","مبتنی بر همکاری","متقاعد کننده","جامع","پولدار"]})(xTn);var r8a=xTn.exports,ETn={exports:{}};(function(t){t.exports=["هم افزایی","بازارها","شراکت","زیرساخت ها","پلتفرم","ابتکار عمل","کانال ها","اجتماعات","راه حل ها","خدمات الکترونیکی","موارد عملی","پورتال ها","سوله","فن آوری ها","محتوا","زنجیره تامین","همگرایی","روابط","معماری","رابط ها","بازارهای الکترونیکی","تجارت الکترونیک","سیستم ها","پهنای باند","مدل ها","ذهنیت","تحویل دادنی ها","کاربران","شبکه ها","برنامه های کاربردی","تجارت الکترونیکی","ویژگی ها","تجربیات","روش شناسی","بلاکچین"]})(ETn);var i8a=ETn.exports,STn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} و #{Name.last_name}"]})(STn);var a8a=STn.exports;(function(t){var e={};t.exports=e,e.suffix=Z6a,e.adjective=X6a,e.descriptor=e8a,e.noun=t8a,e.bs_verb=n8a,e.bs_adjective=r8a,e.bs_noun=i8a,e.name=a8a})(mTn);var o8a=mTn.exports,wTn={exports:{}},_Tn={exports:{}};(function(t){t.exports=["پس انداز","سرمایه گذاری","وام مسکن","کارت اعتباری","وام خودرو","وام شخصی"]})(_Tn);var s8a=_Tn.exports,TTn={exports:{}};(function(t){t.exports=["سپرده","برداشت از حساب","پرداخت","صورتحساب"]})(TTn);var l8a=TTn.exports,CTn={exports:{}};(function(t){t.exports={"درهم امارات":{code:"AED",symbol:""},افغانی:{code:"AFN",symbol:"؋"},"پزو آرژانتین":{code:"ARS",symbol:"$"},"دلار استرالیا":{code:"AUD",symbol:"$"},"مانات آذربایجان":{code:"AZN",symbol:"ман"},"دلار کانادا":{code:"CAD",symbol:"$"},"فرانک سوئیس":{code:"CHF",symbol:"CHF"},"کرون چک":{code:"CZK",symbol:"Kč"},کرون:{code:"EEK",symbol:""},"دینار عراق":{code:"IQD",symbol:""},"ریال ایران":{code:"IRR",symbol:"﷼"},"کرون ایسلند":{code:"ISK",symbol:"kr"},"دینار اردن":{code:"JOD",symbol:""},ین:{code:"JPY",symbol:"¥"},"دینار کویت":{code:"KWD",symbol:""},"دینار لیبی":{code:"LYD",symbol:""},"درهم مراکش":{code:"MAD",symbol:""},"روپی نپال":{code:"NPR",symbol:"₨"},"ریال عمان":{code:"OMR",symbol:"﷼"},"پزو فیلیپین":{code:"PHP",symbol:"Php"},"روپی پاکستان":{code:"PKR",symbol:"₨"},"ریال قطر":{code:"QAR",symbol:"﷼"},"روبل روسیه":{code:"RUB",symbol:"руб"},"ریال عربستان":{code:"SAR",symbol:"﷼"},"پوند سودان":{code:"SDG",symbol:""},"کرون سوئد":{code:"SEK",symbol:"kr"},"دلار سنگاپور":{code:"SGD",symbol:"$"}}})(CTn);var c8a=CTn.exports,kTn={exports:{}},RTn={exports:{}};(function(t){t.exports=["4###########L","4###-####-####-###L"]})(RTn);var u8a=RTn.exports,MTn={exports:{}};(function(t){t.exports=["5[1-5]##-####-####-###L","6771-89##-####-###L"]})(MTn);var d8a=MTn.exports;(function(t){var e={};t.exports=e,e.visa=u8a,e.mastercard=d8a})(kTn);var h8a=kTn.exports;(function(t){var e={};t.exports=e,e.account_type=s8a,e.transaction_type=l8a,e.currency=c8a,e.credit_card=h8a})(wTn);var f8a=wTn.exports;(function(t){var e={};t.exports=e,e.title="Farsi",e.name=f6a,e.address=R6a,e.phone_number=N6a,e.lorem=P6a,e.cell_phone=L6a,e.date=$6a,e.vehicle=z6a,e.internet=W6a,e.commerce=J6a,e.company=o8a,e.finance=f8a})(S_n);var p8a=S_n.exports,NTn={exports:{}},ITn={exports:{}},PTn={exports:{}};(function(t){t.exports=["Aleksi","Antero","Antti","Ari","Eero","Ensio","Erik","Erkki","Hannu","Heikki","Henrik","Ilmari","Jaakko","Janne","Jari","Johannes","Juha","Juhani","Juho","Jukka","Kalervo","Kalevi","Kari","Kristian","Lauri","Markku","Marko","Markus","Martti","Matias","Matti","Mika","Mikael","Mikko","Olavi","Oskari","Pekka","Pentti","Petri","Petteri","Sakari","Sami","Seppo","Tapani","Tapio","Timo","Tuomas","Valtteri","Veikko","Ville"]})(PTn);var m8a=PTn.exports,OTn={exports:{}};(function(t){t.exports=["Aino","Anja","Anna","Anne","Anneli","Annikki","Eeva","Elina","Elisabet","Emilia","Eveliina","Hanna","Hannele","Helena","Inkeri","Irmeli","Johanna","Kaarina","Karoliina","Katariina","Kristiina","Kyllikki","Laura","Leena","Liisa","Maarit","Maija","Mari","Maria","Marika","Marja","Marjatta","Minna","Orvokki","Pauliina","Pirjo","Pirkko","Päivi","Riitta","Ritva","Sari","Satu","Sinikka","Sofia","Susanna","Tarja","Tellervo","Tiina","Tuula","Tuulikki"]})(OTn);var g8a=OTn.exports,LTn={exports:{}};(function(t){t.exports=["Aleksi","Antero","Antti","Ari","Eero","Ensio","Erik","Erkki","Hannu","Heikki","Henrik","Ilmari","Jaakko","Janne","Jari","Johannes","Juha","Juhani","Juho","Jukka","Kalervo","Kalevi","Kari","Kristian","Lauri","Markku","Marko","Markus","Martti","Matias","Matti","Mika","Mikael","Mikko","Olavi","Oskari","Pekka","Pentti","Petri","Petteri","Sakari","Sami","Seppo","Tapani","Tapio","Timo","Tuomas","Valtteri","Veikko","Ville","Aino","Anja","Anna","Anne","Anneli","Annikki","Eeva","Elina","Elisabet","Emilia","Eveliina","Hanna","Hannele","Helena","Inkeri","Irmeli","Johanna","Kaarina","Karoliina","Katariina","Kristiina","Kyllikki","Laura","Leena","Liisa","Maarit","Maija","Mari","Maria","Marika","Marja","Marjatta","Minna","Orvokki","Pauliina","Pirjo","Pirkko","Päivi","Riitta","Ritva","Sari","Satu","Sinikka","Sofia","Susanna","Tarja","Tellervo","Tiina","Tuula","Tuulikki"]})(LTn);var v8a=LTn.exports,BTn={exports:{}};(function(t){t.exports=["Aaltonen","Ahonen","Anttila","Hakala","Heikkilä","Heikkinen","Heinonen","Hiltunen","Hirvonen","Hämäläinen","Jokinen","Järvinen","Kallio","Karjalainen","Kinnunen","Koivisto","Korhonen","Koskinen","Laakso","Laaksonen","Lahtinen","Laine","Laitinen","Lehtinen","Lehto","Lehtonen","Leinonen","Leppänen","Manninen","Mattila","Miettinen","Mustonen","Mäkelä","Mäkinen","Niemi","Nieminen","Ojala","Pitkänen","Rantanen","Räsänen","Saarinen","Salminen","Salo","Salonen","Savolainen","Toivonen","Tuominen","Turunen","Virtanen","Väisänen"]})(BTn);var A8a=BTn.exports,DTn={exports:{}};(function(t){t.exports=["#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(DTn);var y8a=DTn.exports;(function(t){var e={};t.exports=e,e.male_first_name=m8a,e.female_first_name=g8a,e.first_name=v8a,e.last_name=A8a,e.name=y8a})(ITn);var b8a=ITn.exports;(function(t){var e={};t.exports=e,e.title="Finnish",e.name=b8a})(NTn);var x8a=NTn.exports,$Tn={exports:{}},FTn={exports:{}},jTn={exports:{}};(function(t){t.exports=["####","###","##","#"]})(jTn);var E8a=jTn.exports,HTn={exports:{}};(function(t){t.exports=["Allée","Voie","Rue","Avenue","Boulevard","Quai","Passage","Impasse","Place"]})(HTn);var S8a=HTn.exports,UTn={exports:{}};(function(t){t.exports=["Apt. ###","# étage"]})(UTn);var w8a=UTn.exports,zTn={exports:{}};(function(t){t.exports=["#####"]})(zTn);var _8a=zTn.exports,GTn={exports:{}};(function(t){t.exports=["Alsace","Aquitaine","Auvergne","Basse-Normandie","Bourgogne","Bretagne","Centre","Champagne-Ardenne","Corse","Franche-Comté","Haute-Normandie","Île-de-France","Languedoc-Roussillon","Limousin","Lorraine","Midi-Pyrénées","Nord-Pas-de-Calais","Pays de la Loire","Picardie","Poitou-Charentes","Provence-Alpes-Côte d'Azur","Rhône-Alpes"]})(GTn);var T8a=GTn.exports,VTn={exports:{}};(function(t){t.exports=["Aix-en-Provence","Ajaccio","Amiens","Angers","Antibes","Antony","Argenteuil","Asnières-sur-Seine","Aubervilliers","Aulnay-sous-Bois","Avignon","Beauvais","Besançon","Béziers","Bordeaux","Boulogne-Billancourt","Bourges","Brest","Caen","Calais","Cannes","Cayenne","Cergy","Chambéry","Champigny-sur-Marne","Cholet","Clermont-Ferrand","Clichy","Colmar","Colombes","Courbevoie","Créteil","Dijon","Drancy","Dunkerque","Fort-de-France","Grenoble","Hyères","Issy-les-Moulineaux","Ivry-sur-Seine","La Rochelle","La Seyne-sur-Mer","Le Havre","Le Mans","Le Tampon","Les Abymes","Levallois-Perret","Lille","Limoges","Lorient","Lyon","Marseille","Mérignac","Metz","Montauban","Montpellier","Montreuil","Mulhouse","Nancy","Nanterre","Nantes","Neuilly-sur-Seine","Nice","Nîmes","Niort","Noisy-le-Grand","Orléans","Paris","Pau","Perpignan","Pessac","Poitiers","Quimper","Reims","Rennes","Roubaix","Rouen","Rueil-Malmaison","Saint-Denis","Saint-Denis","Saint-Étienne","Saint-Maur-des-Fossés","Saint-Nazaire","Saint-Paul","Saint-Pierre","Saint-Quentin","Sarcelles","Strasbourg","Toulon","Toulouse","Tourcoing","Tours","Troyes","Valence","Vénissieux","Versailles","Villejuif","Villeneuve-d'Ascq","Villeurbanne","Vitry-sur-Seine"]})(VTn);var C8a=VTn.exports,KTn={exports:{}};(function(t){t.exports=["#{city_name}"]})(KTn);var k8a=KTn.exports,WTn={exports:{}};(function(t){t.exports=["Afghanistan","Albanie","Algérie","Andorre","Angola","Antigua-et-Barbuda","Argentine","Arménie","Australie","Autriche","Azerbaïdjan","Bahamas","Bahreïn","Bangladesh","Barbade","Biélorussie","Belgique","Belize","Bénin","Bhoutan","Bolivie","Bosnie-Herzégovine","Botswana","Brésil","Brunei","Bulgarie","Burkina Faso","Burundi","Cambodge","Cameroun","Canada","Cap-Vert","République centrafricaine","Tchad","Chili","Chine","Colombie","Comores","Costa Rica","Côte d’Ivoire","Croatie","Cuba","Chypre","République tchèque","République démocratique du Congo","Danemark","Djibouti","Dominique","République dominicaine","Timor oriental","Équateur","Égypte","Salvador","Guinée équatoriale","Érythrée","Estonie","Éthiopie","Fidji","Finlande","France","Gabon","Gambie","Géorgie","Allemagne","Ghana","Grèce","Grenade","Guatemala","Guinée","Guinée-Bissau","Guyane","Haïti","Honduras","Hongrie","Islande","Inde","Indonésie","Iran","Irak","Irlande","Israël","Italie","Jamaïque","Japon","Jordan","Kazakhstan","Kenya","Kiribati","Koweït","Kirghizistan","Laos","Lettonie","Liban","Lesotho","Liberia","Libye","Liechtenstein","Lituanie","Luxembourg","Madagascar","Malawi","Malaisie","Maldives","Mali","Malte","Îles Marshall","Mauritanie","Maurice","Mexique","Micronésie","Moldavie","Monaco","Mongolie","Monténégro","Maroc","Mozambique","Birmanie","Namibie","Nauru","Népal","Pays-Bas","Nouvelle-Zélande","Nicaragua","Niger","Nigeria","Corée du Nord","Norvège","Oman","Pakistan","Palau","Panama","Papouasie-Nouvelle-Guinée","Paraguay","Pérou","Philippines","Pologne","Portugal","Qatar","République du Congo","Macédoine","Roumanie","Russie","Rwanda","Saint-Christophe-et-Niévès","Sainte-Lucie","Saint-Vincent-et-les-Grenadines","Samoa","Saint-Marin","São Tomé-et-Principe","Arabie saoudite","Sénégal","Serbie","Seychelles","Sierra Leone","Singapour","Slovaquie","Slovénie","Îles Salomon","Somalie","Afrique du Sud","Corée du Sud","Soudan du Sud","Espagne","Sri Lanka","Soudan","Suriname","Swaziland","Suède","Suisse","Syrie","Tadjikistan","Tanzanie","Thaïlande","Togo","Tonga","Trinité-et-Tobago","Tunisie","Turquie","Turkménistan","Tuvalu","Ouganda","Ukraine","Émirats arabes unis","Royaume-Uni","États-Unis","Uruguay","Ouzbékistan","Vanuatu","Venezuela","Viêt Nam","Yémen","Zambie","Zimbabwe"]})(WTn);var R8a=WTn.exports,QTn={exports:{}};(function(t){t.exports=["de l'Abbaye","Adolphe Mille","d'Alésia","d'Argenteuil","d'Assas","du Bac","de Paris","La Boétie","Bonaparte","de la Bûcherie","de Caumartin","Charlemagne","du Chat-qui-Pêche","de la Chaussée-d'Antin","du Dahomey","Dauphine","Delesseux","du Faubourg Saint-Honoré","du Faubourg-Saint-Denis","de la Ferronnerie","des Francs-Bourgeois","des Grands Augustins","de la Harpe","du Havre","de la Huchette","Joubert","Laffitte","Lepic","des Lombards","Marcadet","Molière","Monsieur-le-Prince","de Montmorency","Montorgueil","Mouffetard","de Nesle","Oberkampf","de l'Odéon","d'Orsel","de la Paix","des Panoramas","Pastourelle","Pierre Charron","de la Pompe","de Presbourg","de Provence","de Richelieu","de Rivoli","des Rosiers","Royale","d'Abbeville","Saint-Honoré","Saint-Bernard","Saint-Denis","Saint-Dominique","Saint-Jacques","Saint-Séverin","des Saussaies","de Seine","de Solférino","Du Sommerard","de Tilsitt","Vaneau","de Vaugirard","de la Victoire","Zadkine"]})(QTn);var M8a=QTn.exports,qTn={exports:{}};(function(t){t.exports=["#{street_prefix} #{street_suffix}"]})(qTn);var N8a=qTn.exports,YTn={exports:{}};(function(t){t.exports=["#{building_number} #{street_name}"]})(YTn);var I8a=YTn.exports,JTn={exports:{}};(function(t){t.exports=["France"]})(JTn);var P8a=JTn.exports;(function(t){var e={};t.exports=e,e.building_number=E8a,e.street_prefix=S8a,e.secondary_address=w8a,e.postcode=_8a,e.state=T8a,e.city_name=C8a,e.city=k8a,e.country=R8a,e.street_suffix=M8a,e.street_name=N8a,e.street_address=I8a,e.default_country=P8a})(FTn);var O8a=FTn.exports,ZTn={exports:{}},XTn={exports:{}};(function(t){t.exports=["SARL","SA","EURL","SAS","SEM","SCOP","GIE","EI"]})(XTn);var L8a=XTn.exports,e2n={exports:{}};(function(t){t.exports=["Adaptive","Advanced","Ameliorated","Assimilated","Automated","Balanced","Business-focused","Centralized","Cloned","Compatible","Configurable","Cross-group","Cross-platform","Customer-focused","Customizable","Decentralized","De-engineered","Devolved","Digitized","Distributed","Diverse","Down-sized","Enhanced","Enterprise-wide","Ergonomic","Exclusive","Expanded","Extended","Face to face","Focused","Front-line","Fully-configurable","Function-based","Fundamental","Future-proofed","Grass-roots","Horizontal","Implemented","Innovative","Integrated","Intuitive","Inverse","Managed","Mandatory","Monitored","Multi-channelled","Multi-lateral","Multi-layered","Multi-tiered","Networked","Object-based","Open-architected","Open-source","Operative","Optimized","Optional","Organic","Organized","Persevering","Persistent","Phased","Polarised","Pre-emptive","Proactive","Profit-focused","Profound","Programmable","Progressive","Public-key","Quality-focused","Reactive","Realigned","Re-contextualized","Re-engineered","Reduced","Reverse-engineered","Right-sized","Robust","Seamless","Secured","Self-enabling","Sharable","Stand-alone","Streamlined","Switchable","Synchronised","Synergistic","Synergized","Team-oriented","Total","Triple-buffered","Universal","Up-sized","Upgradable","User-centric","User-friendly","Versatile","Virtual","Visionary","Vision-oriented"]})(e2n);var B8a=e2n.exports,t2n={exports:{}};(function(t){t.exports=["24 hour","24/7","3rd generation","4th generation","5th generation","6th generation","actuating","analyzing","asymmetric","asynchronous","attitude-oriented","background","bandwidth-monitored","bi-directional","bifurcated","bottom-line","clear-thinking","client-driven","client-server","coherent","cohesive","composite","context-sensitive","contextually-based","content-based","dedicated","demand-driven","didactic","directional","discrete","disintermediate","dynamic","eco-centric","empowering","encompassing","even-keeled","executive","explicit","exuding","fault-tolerant","foreground","fresh-thinking","full-range","global","grid-enabled","heuristic","high-level","holistic","homogeneous","human-resource","hybrid","impactful","incremental","intangible","interactive","intermediate","leading edge","local","logistical","maximized","methodical","mission-critical","mobile","modular","motivating","multimedia","multi-state","multi-tasking","national","needs-based","neutral","next generation","non-volatile","object-oriented","optimal","optimizing","radical","real-time","reciprocal","regional","responsive","scalable","secondary","solution-oriented","stable","static","systematic","systemic","system-worthy","tangible","tertiary","transitional","uniform","upward-trending","user-facing","value-added","web-enabled","well-modulated","zero administration","zero defect","zero tolerance"]})(t2n);var D8a=t2n.exports,n2n={exports:{}};(function(t){t.exports=["ability","access","adapter","algorithm","alliance","analyzer","application","approach","architecture","archive","artificial intelligence","array","attitude","benchmark","budgetary management","capability","capacity","challenge","circuit","collaboration","complexity","concept","conglomeration","contingency","core","customer loyalty","database","data-warehouse","definition","emulation","encoding","encryption","extranet","firmware","flexibility","focus group","forecast","frame","framework","function","functionalities","Graphic Interface","groupware","Graphical User Interface","hardware","help-desk","hierarchy","hub","implementation","info-mediaries","infrastructure","initiative","installation","instruction set","interface","internet solution","intranet","knowledge user","knowledge base","local area network","leverage","matrices","matrix","methodology","middleware","migration","model","moderator","monitoring","moratorium","neural-net","open architecture","open system","orchestration","paradigm","parallelism","policy","portal","pricing structure","process improvement","product","productivity","project","projection","protocol","secured line","service-desk","software","solution","standardization","strategy","structure","success","superstructure","support","synergy","system engine","task-force","throughput","time-frame","toolset","utilisation","website","workforce"]})(n2n);var $8a=n2n.exports,r2n={exports:{}};(function(t){t.exports=["implement","utilize","integrate","streamline","optimize","evolve","transform","embrace","enable","orchestrate","leverage","reinvent","aggregate","architect","enhance","incentivize","morph","empower","envisioneer","monetize","harness","facilitate","seize","disintermediate","synergize","strategize","deploy","brand","grow","target","syndicate","synthesize","deliver","mesh","incubate","engage","maximize","benchmark","expedite","reintermediate","whiteboard","visualize","repurpose","innovate","scale","unleash","drive","extend","engineer","revolutionize","generate","exploit","transition","e-enable","iterate","cultivate","matrix","productize","redefine","recontextualize"]})(r2n);var F8a=r2n.exports,i2n={exports:{}};(function(t){t.exports=["clicks-and-mortar","value-added","vertical","proactive","robust","revolutionary","scalable","leading-edge","innovative","intuitive","strategic","e-business","mission-critical","sticky","one-to-one","24/7","end-to-end","global","B2B","B2C","granular","frictionless","virtual","viral","dynamic","24/365","best-of-breed","killer","magnetic","bleeding-edge","web-enabled","interactive","dot-com","sexy","back-end","real-time","efficient","front-end","distributed","seamless","extensible","turn-key","world-class","open-source","cross-platform","cross-media","synergistic","bricks-and-clicks","out-of-the-box","enterprise","integrated","impactful","wireless","transparent","next-generation","cutting-edge","user-centric","visionary","customized","ubiquitous","plug-and-play","collaborative","compelling","holistic","rich"]})(i2n);var j8a=i2n.exports,a2n={exports:{}};(function(t){t.exports=["synergies","web-readiness","paradigms","markets","partnerships","infrastructures","platforms","initiatives","channels","eyeballs","communities","ROI","solutions","e-tailers","e-services","action-items","portals","niches","technologies","content","vortals","supply-chains","convergence","relationships","architectures","interfaces","e-markets","e-commerce","systems","bandwidth","infomediaries","models","mindshare","deliverables","users","schemas","networks","applications","metrics","e-business","functionalities","experiences","web services","methodologies"]})(a2n);var H8a=a2n.exports,o2n={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name} et #{Name.last_name}"]})(o2n);var U8a=o2n.exports;(function(t){var e={};t.exports=e,e.suffix=L8a,e.adjective=B8a,e.descriptor=D8a,e.noun=$8a,e.bs_verb=F8a,e.bs_adjective=j8a,e.bs_noun=H8a,e.name=U8a})(ZTn);var z8a=ZTn.exports,s2n={exports:{}},l2n={exports:{}};(function(t){t.exports=["gmail.com","yahoo.fr","hotmail.fr"]})(l2n);var G8a=l2n.exports,c2n={exports:{}};(function(t){t.exports=["com","fr","eu","info","name","net","org"]})(c2n);var V8a=c2n.exports;(function(t){var e={};t.exports=e,e.free_email=G8a,e.domain_suffix=V8a})(s2n);var K8a=s2n.exports,u2n={exports:{}},d2n={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(d2n);var W8a=d2n.exports;(function(t){var e={};t.exports=e,e.words=W8a})(u2n);var Q8a=u2n.exports,h2n={exports:{}},f2n=["Abdonie","Abeline","Abigaelle","Abigaïl","Acacie","Acanthe","Adalbaude","Adalsinde","Adegrine","Adélaïde","Adèle","Adélie","Adeline","Adeltrude","Adolphie","Adonise","Adrastée","Adrehilde","Adrienne","Agathe","Agilberte","Aglaé","Agnane","Agneflète","Agnès","Agrippine","Aimée","Alaine","Alaïs","Albane","Albérade","Alberte","Alcidie","Alcine","Alcyone","Aldegonde","Aleth","Alexandrine","Alexanne","Alexine","Alice","Aliénor","Aliette","Aline","Alix","Alizé","Aloïse","Aloyse","Alphonsine","Althée","Amaliane","Amalthée","Amande","Amandine","Amante","Amarande","Amaranthe","Amaryllis","Ambre","Ambroisie","Améliane","Amélie","Ameline","Améthyste","Aminte","Anaëlle","Anaïs","Anastasie","Anatolie","Anceline","Andrée","Anémone","Angadrême","Angèle","Angeline","Angélina","Angélique","Angilberte","Anicée","Anicette","Annabelle","Anne","Annette","Annonciade","Ansberte","Anstrudie","Anthelmette","Antigone","Antoinette","Antonine","Aphélie","Apolline","Aquiline","Arabelle","Arcadie","Archange","Argine","Ariane","Aricie","Ariel","Arielle","Arlette","Armance","Armande","Armandine","Armeline","Armide","Armelle","Armine","Arnaude","Arsènie","Arsinoé","Artémis","Arthurine","Asceline","Ascension","Assomption","Astarté","Astérie","Astrée","Astride","Athalie","Athanasie","Athénaïs","Athina","Aube","Aubertine","Aude","Audeline","Audrey","Augustine","Aure","Aurélie","Aurélienne","Aurelle","Auriane","Aurore","Auxane","Aveline","Avigaëlle","Avoye","Axeline","Axelle","Aymardine","Aymonde","Azalée","Azélie","Azeline","Barbe","Basilisse","Bathilde","Béatrice","Bénédicte","Bérangère","Bernadette","Berthe","Bertille","Betty","Beuve","Blanche","Blandine","Brigitte","Brunehaut","Brunehilde","Camille","Capucine","Carine","Caroline","Cassandre","Catherine","Cécile","Céleste","Célestine","Céline","Chantal","Charlaine","Charline","Charlotte","Chloé","Christelle","Christiane","Christine","Claire","Clara","Claude","Claudine","Clarisse","Clélie","Clémence","Clémentine","Clio","Clotilde","Coline","Conception","Constance","Coralie","Coraline","Corentine","Corinne","Cyrielle","Danielle","Daphné","Débora","Delphine","Denise","Diane","Dieudonnée","Dominique","Doriane","Dorine","Dorothée","Douce","Édith","Edmée","Éléonore","Éliane","Élia","Élisabeth","Élise","Ella","Élodie","Éloïse","Elsa","Émeline","Émérance","Émérencie","Émilie","Emma","Emmanuelle","Emmelie","Ernestine","Esther","Estelle","Eudoxie","Eugénie","Eulalie","Euphrasie","Eusébie","Évangéline","Eva","Ève","Évelyne","Fanny","Fantine","Faustine","Félicie","Frédérique","Flavie","Fleur","Flore","Florence","Florie","Fortunée","France","Francette","Francia","Françoise","Francine","Gabrielle","Gaëlle","Garance","Geneviève","Georgette","Gerberge","Germaine","Gertrude","Gisèle","Guenièvre","Guilhemine","Guillemette","Gustavine","Gwenaëlle","Hélène","Héloïse","Henriette","Hermine","Hippolyte","Honorine","Hortense","Huguette","Inès","Irène","Irina","Iris","Isabeau","Isabelle","Iseult","Ismérie","Jacinthe","Jacqueline","Jade","Janine","Jeanne","Jeanne d’Arc","Jehanne","Jocelyne","Joëlle","Joséphine","Judith","Julia","Julie","Juliette","Justine","Laura","Laurane","Laure","Laureline","Laurence","Laurène","Lauriane","Laurine","Léa","Léna","Léopoldine","Léonie","Léonne","Lorraine","Lucie","Lucienne","Lucille","Ludivine","Lydie","Mégane","Madeleine","Magali","Maguelone","Mahaut","Mallaury","Manon","Marceline","Margot","Marguerite","Marianne","Marie","Marine","Marion","Marlène","Marthe","Martine","Mathilde","Maud","Maureen","Mauricette","Maxellende","Maxime","Mélanie","Mélissa","Mélissandre","Mélisande","Mélodie","Michèle","Mireille","Miriam","Moïsette","Monique","Morgane","Muriel","Mylène","Nadège","Nadine","Nathalie","Nicole","Nine","Noëlle","Noémie","Océane","Odette","Odile","Olive","Olympe","Ombline","Ophélie","Oriande","Oriane","Orlane","Ozanne","Pascale","Paule","Paulette","Pauline","Priscille","Pécine","Pélagie","Pénélope","Perrine","Pétronille","Philippine","Philomène","Philothée","Primerose","Prudence","Pulchérie","Quentine","Quiéta","Quintia","Rachel","Raphaëlle","Raymonde","Rebecca","Régine","Reine","Réjeanne","Renée","Rita","Rolande","Romane","Rosalie","Rose","Roseline","Sabine","Salomé","Sandra","Sandrine","Sarah","Scholastique","Ségolène","Séverine","Sibylle","Simone","Sixtine","Solange","Soline","Sophie","Stéphanie","Suzanne","Suzon","Sylviane","Sylvie","Swassane","Tatiana","Thaïs","Théodora","Thérèse","Tiphaine","Ursule","Valentine","Valérie","Véronique","Victoire","Vinciane","Violette","Virginie","Viviane","Xavière","Yolande","Ysaline","Yseult","Yvette","Yvonne","Zoé","Zoéva"],p2n=["Aaron","Abdon","Abel","Abélard","Abelin","Abondance","Abraham","Absalon","Acace","Achaire","Achille","Adalard","Adalbald","Adalbéron","Adalbert","Adalric","Adam","Adegrin","Adel","Adelin","Adelphe","Adenet","Adéodat","Adhémar","Adjutor","Adolphe","Adonis","Adrien","Agapet","Agathange","Agathon","Agilbert","Agnan","Agrippin","Aimable","Aimé","Alain","Alban","Albéric","Albert","Alcibiade","Alcide","Alcime","Aldonce","Aldric","Aleaume","Alexandre","Alexis","Alix","Alliaume","Almine","Almire","Aloïs","Alphée","Alphonse","Alpinien","Alverède","Amalric","Amandin","Amant","Ambroise","Amédée","Amélien","Amiel","Amour","Anaël","Anastase","Anatole","Ancelin","Andéol","Andoche","André","Ange","Angilbe","Angilran","Angoustan","Anicet","Anne","Annibal","Ansbert","Anselme","Anthelme","Antide","Antoine","Antonin","Apollinaire","Aquilin","Arcade","Archambaud","Archange","Archibald","Arian","Ariel","Ariste","Aristide","Armand","Armel","Armin","Arnould","Arnaud","Arolde","Arsène","Arsinoé","Arthaud","Arthème","Arthur","Ascelin","Athanase","Aubry","Audebert","Audouin","Audran","Auguste","Aurèle","Aurian","Auxence","Axel","Aymard","Aymeric","Aymon","Balthazar","Baptiste","Barnabé","Barthélemy","Bartimée","Basile","Bastien","Baudouin","Bénigne","Benjamin","Benoît","Béranger","Bérard","Bernard","Bertrand","Blaise","Bohémond","Bon","Boniface","Bouchard","Briac","Brice","Brieuc","Bruno","Calixte","Camélien","Camille","Camillien","Candide","Caribert","Carloman","Cassandre","Cassien","Cédric","Céleste","Célestin","Célien","Césaire","César","Charles","Charlemagne","Childebert","Chilpéric","Chrétien","Christian","Christodule","Christophe","Chrysole","Chrysostome","Clarence","Claude","Claudien","Cléandre","Clément","Cléry","Clotaire","Clovis","Colin","Côme","Constance","Constant","Constantin","Corentin","Cyprien","Cyriaque","Cyrille","Damien","Daniel","David","Delphin","Denis","Désiré","Didier","Dieudonné","Dimitri","Dominique","Dorian","Edgard","Edmond","Édouard","Éleuthère","Élie","Élisée","Élzéar","Émeric","Émile","Emmanuel","Enguerrand","Épiphane","Éric","Ernest","Étienne","Eubert","Eudes","Eudoxe","Eugène","Eusèbe","Eustache","Évariste","Évrard","Fabien","Fabrice","Falba","Fantin","Félicité","Félix","Ferdinand","Fiacre","Fidèle","Firmin","Flavien","Flodoard","Florent,","Florestan","Florian","Fortuné","Foulques","Francisque","François","Frédéric","Fulbert","Fulcran","Fulgence","Gabin","Gabriel","Gaël","Garnier","Gaston","Gaspar","Gaspard","Gatien","Gaud","Gautier","Gédéon","Geoffroy","Georges","Géraud","Gérard","Gerbert","Germain","Gervais","Ghislain","Gilbert","Gilles","Girart","Gislebert","Gondebaud","Gonthier","Gontran","Gonzague","Grégoire","Guérin","Gui","Guillaume","Gustave","Guy","Guyot","Hardouin","Hector","Hédelin","Hélier","Henri","Herbert","Herluin","Hervé","Hilaire","Hildebert","Hincmar","Hippolyte","Honoré","Hubert","Hugues","Innocent","Isabeau","Isidore","Jacques","Japhet","Jason","Jean","Jeannel","Jeannot","Jérémie","Jérôme","Joachim","Joanny","Job","Jocelyn","Joël","Johan","Jonas","Jonathan","Joseph","Josse","Josselin","Jourdain","Jude","Judicaël","Jules","Julien","Juste","Justin","Lambert","Landry","Laurent","Lazare","Léandre","Léon","Léonard","Léopold","Leu","Leufroy","Libère","Liétald","Lionel","Loïc","Longin","Lorrain","Lothaire","Louis","Loup","Luc","Lucas","Lucien","Ludolphe","Ludovic","Macaire","Malo","Mamert","Manassé","Marc","Marceau","Marcel","Marcelin","Marius","Martial","Martin","Mathurin","Matthias","Matthieu","Maugis","Maurice","Maxence","Maxime","Maximilien","Mayeul","Médéric","Melchior","Mence","Merlin","Mérovée","Michaël","Michel","Moïse","Morgan","Nathan","Nathanaël","Narcisse","Naudet","Néhémie","Nestor","Nicéphore","Nicolas","Noé","Noël","Norbert","Normand","Octave","Odilon","Odon","Oger","Olivier","Oury","Pacôme","Palémon","Parfait","Pascal","Paterne","Patrice","Paul","Pépin","Perceval","Philémon","Philibert","Philippe","Philothée","Pie","Pierre","Pierrick","Prosper","Quentin","Raoul","Raphaël","Raymond","Régis","Réjean","Rémi","Renaud","René","Reybaud","Richard","Robert","Roch","Rodolphe","Rodrigue","Roger","Roland","Romain","Romuald","Roméo","Ronan","Roselin","Rachid","Salomon","Samuel","Sauveur","Savin","Savinien","Scholastique","Sébastien","Séraphin","Serge","Séverin","Sidoine","Sigebert","Sigismond","Silvère","Simon","Sixte","Stanislas","Stéphane","Sylvain","Sylvestre","Tancrède","Tanguy","Taurin","Théodore","Théodose","Théophile","Théophraste","Thibault","Thibert","Thierry","Thomas","Timoléon","Timothée","Titien","Tonnin","Toussaint","Trajan","Tristan","Turold","Tim","Ulysse","Urbain","Valentin","Valère","Valéry","Venance","Venceslas","Vianney","Victor","Victorien","Victorin","Vigile","Vincent","Vital","Vivien","Waleran","Wandrille","Xavier","Xénophon","Yves","Yoann","Zacharie","Zaché","Zéphirin"],q8a=f2n,Y8a=p2n,J8a=q8a.concat(Y8a),m2n={exports:{}};(function(t){t.exports=["Martin","Bernard","Dubois","Thomas","Robert","Richard","Petit","Durand","Leroy","Moreau","Simon","Laurent","Lefebvre","Michel","Garcia","David","Bertrand","Roux","Vincent","Fournier","Morel","Girard","Andre","Lefevre","Mercier","Dupont","Lambert","Bonnet","Francois","Martinez","Legrand","Garnier","Faure","Rousseau","Blanc","Guerin","Muller","Henry","Roussel","Nicolas","Perrin","Morin","Mathieu","Clement","Gauthier","Dumont","Lopez","Fontaine","Chevalier","Robin","Masson","Sanchez","Gerard","Nguyen","Boyer","Denis","Lemaire","Duval","Joly","Gautier","Roger","Roche","Roy","Noel","Meyer","Lucas","Meunier","Jean","Perez","Marchand","Dufour","Blanchard","Marie","Barbier","Brun","Dumas","Brunet","Schmitt","Leroux","Colin","Fernandez","Pierre","Renard","Arnaud","Rolland","Caron","Aubert","Giraud","Leclerc","Vidal","Bourgeois","Renaud","Lemoine","Picard","Gaillard","Philippe","Leclercq","Lacroix","Fabre","Dupuis","Olivier","Rodriguez","Da silva","Hubert","Louis","Charles","Guillot","Riviere","Le gall","Guillaume","Adam","Rey","Moulin","Gonzalez","Berger","Lecomte","Menard","Fleury","Deschamps","Carpentier","Julien","Benoit","Paris","Maillard","Marchal","Aubry","Vasseur","Le roux","Renault","Jacquet","Collet","Prevost","Poirier","Charpentier","Royer","Huet","Baron","Dupuy","Pons","Paul","Laine","Carre","Breton","Remy","Schneider","Perrot","Guyot","Barre","Marty","Cousin"]})(m2n);var Z8a=m2n.exports,g2n={exports:{}};(function(t){t.exports=["M","Mme","Mlle","Dr","Prof"]})(g2n);var X8a=g2n.exports,v2n={exports:{}};(function(t){t.exports={job:["Superviseur","Executif","Manager","Ingenieur","Specialiste","Directeur","Coordinateur","Administrateur","Architecte","Analyste","Designer","Technicien","Developpeur","Producteur","Consultant","Assistant","Agent","Stagiaire"]}})(v2n);var e9a=v2n.exports,A2n={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name}","#{last_name} #{first_name}"]})(A2n);var t9a=A2n.exports;(function(t){var e={};t.exports=e,e.first_name=J8a,e.male_first_name=p2n,e.female_first_name=f2n,e.last_name=Z8a,e.prefix=X8a,e.title=e9a,e.name=t9a})(h2n);var n9a=h2n.exports,y2n={exports:{}},b2n={exports:{}};(function(t){t.exports=["01########","02########","03########","04########","05########","06########","07########","+33 1########","+33 2########","+33 3########","+33 4########","+33 5########","+33 6########","+33 7########"]})(b2n);var r9a=b2n.exports;(function(t){var e={};t.exports=e,e.formats=r9a})(y2n);var i9a=y2n.exports,x2n={exports:{}},E2n={exports:{}};(function(t){t.exports={wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],wide_context:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],abbr:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],abbr_context:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."]}})(E2n);var a9a=E2n.exports,S2n={exports:{}};(function(t){t.exports={wide:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],wide_context:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],abbr:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],abbr_context:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]}})(S2n);var o9a=S2n.exports;(function(t){var e={};t.exports=e,e.month=a9a,e.weekday=o9a})(x2n);var s9a=x2n.exports;(function(t){var e={};t.exports=e,e.title="French",e.address=O8a,e.company=z8a,e.internet=K8a,e.lorem=Q8a,e.name=n9a,e.phone_number=i9a,e.date=s9a})($Tn);var l9a=$Tn.exports,w2n={exports:{}},_2n={exports:{}},T2n={exports:{}};(function(t){t.exports=["A#? #?#","B#? #?#","C#? #?#","E#? #?#","G#? #?#","H#? #?#","J#? #?#","K#? #?#","L#? #?#","M#? #?#","N#? #?#","P#? #?#","R#? #?#","S#? #?#","T#? #?#","V#? #?#","X#? #?#","Y#? #?#"]})(T2n);var c9a=T2n.exports,C2n={exports:{}};(function(t){t.exports=["Alberta","Colombie-Britannique","Manitoba","Nouveau-Brunswick","Terre-Neuve-et-Labrador","Nouvelle-Écosse","Territoires du Nord-Ouest","Nunavut","Ontario","Île-du-Prince-Édouard","Québec","Saskatchewan","Yukon"]})(C2n);var u9a=C2n.exports,k2n={exports:{}};(function(t){t.exports=["AB","BC","MB","NB","NL","NS","NU","NT","ON","PE","QC","SK","YK"]})(k2n);var d9a=k2n.exports,R2n={exports:{}};(function(t){t.exports=["Canada"]})(R2n);var h9a=R2n.exports;(function(t){var e={};t.exports=e,e.postcode=c9a,e.state=u9a,e.state_abbr=d9a,e.default_country=h9a})(_2n);var f9a=_2n.exports,M2n={exports:{}},N2n={exports:{}};(function(t){t.exports=["gmail.com","yahoo.ca","hotmail.com"]})(N2n);var p9a=N2n.exports,I2n={exports:{}};(function(t){t.exports=["qc.ca","ca","com","biz","info","name","net","org"]})(I2n);var m9a=I2n.exports;(function(t){var e={};t.exports=e,e.free_email=p9a,e.domain_suffix=m9a})(M2n);var g9a=M2n.exports,P2n={exports:{}},O2n={exports:{}};(function(t){t.exports=["### ###-####","1 ### ###-####","### ###-####, poste ###"]})(O2n);var v9a=O2n.exports;(function(t){var e={};t.exports=e,e.formats=v9a})(P2n);var A9a=P2n.exports;(function(t){var e={};t.exports=e,e.title="French (Canada)",e.address=f9a,e.internet=g9a,e.phone_number=A9a})(w2n);var y9a=w2n.exports,L2n={exports:{}},B2n={exports:{}},D2n={exports:{}};(function(t){t.exports=["CH"]})(D2n);var b9a=D2n.exports,$2n={exports:{}};(function(t){t.exports=["#{city_name}"]})($2n);var x9a=$2n.exports,F2n={exports:{}};(function(t){t.exports=["Aarau","Adliswil","Aesch","Affoltern am Albis","Aigle","Allschwil","Altdorf","Altstätten","Amriswil","Appenzell","Arbon","Arlesheim","Arosa","Arth","Baar","Baden","Bassersdorf","Bellinzone","Belp","Berne","Berthoud","Bienne","Binningen","Birsfelden","Brigue-Glis","Brugg","Buchs","Bulle","Bussigny","Bâle","Bülach","Carouge","Cham","Chiasso","Chêne-Bougeries","Coire","Crissier","Davos","Delémont","Dietikon","Dübendorf","Ebikon","Einsiedeln","Emmen","Flawil","Frauenfeld","Freienbach","Fribourg","Genève","Gland","Glaris Centre","Glaris Nord","Gossau","Granges","Herisau","Hinwil","Horgen","Horw","Illnau-Effretikon","Interlaken","Ittigen","Kloten","Kreuzlingen","Kriens","Köniz","Küsnacht","La Chaux-de-Fonds","La Neuveville","La Tour-de-Peilz","Lancy","Langenthal","Lausanne","Le Grand-Saconnex","Le Locle","Lenzbourg","Liestal","Locarno","Lucerne","Lugano","Lyss","Martigny","Meilen","Mendrisio","Meyrin","Monthey","Montreux","Morat","Morges","Moutier","Muri bei Bern","Muttenz","Männedorf","Möhlin","Münchenbuchsee","Münchenstein","Münsingen","Neuchâtel","Neuhausen am Rheinfall","Nyon","Oberwil","Oftringen","Olten","Onex","Opfikon","Ostermundigen","Payerne","Peseux","Pfäffikon","Plan-les-Ouates","Poliez-Pittet","Porrentruy","Pratteln","Prilly","Pully","Rapperswil-Jona","Regensdorf","Reinach","Renens","Rheinfelden","Richterswil","Riehen","Risch-Rotkreuz","Romanshorn","Rorschach","Rüti","Saint-Gall","Saint-Moritz","Sarnen","Schaffhouse","Schlieren","Schwytz","Sierre","Sion","Soleure","Spiez","Spreitenbach","Stans","Steffisburg","Steinhausen","Stäfa","Suhr","Sursee","Thalwil","Thoune","Thônex","Urdorf","Uster","Uzwil","Vernier","Versoix","Vevey","Veyrier","Villars-sur-Glâne","Viège","Volketswil","Wallisellen","Weinfelden","Wettingen","Wetzikon","Wil","Winterthour","Wohlen","Worb","Wädenswil","Yverdon-les-Bains","Zermatt","Zofingue","Zollikofen","Zollikon","Zoug","Zuchwil","Zurich","Écublens"]})(F2n);var E9a=F2n.exports,j2n={exports:{}};(function(t){t.exports=["Suisse"]})(j2n);var S9a=j2n.exports,H2n={exports:{}};(function(t){t.exports=["1###","2###","3###","4###","5###","6###","7###","8###","9###"]})(H2n);var w9a=H2n.exports,U2n={exports:{}};(function(t){t.exports=["Argovie","Appenzell Rhodes-Intérieures","Appenzell Rhodes-Extérieures","Bâle-Ville","Bâle-Campagne","Berne","Fribourg","Genève","Glaris","Grisons","Jura","Lucerne","Neuchâtel","Nidwald","Obwald","Schaffhouse","Schwyt","Soleure","Saint-Gall","Thurgovie","Tessin","Uri","Valai","Vaud","Zoug","Zurich"]})(U2n);var _9a=U2n.exports;(function(t){var e={};t.exports=e,e.country_code=b9a,e.city=x9a,e.city_name=E9a,e.default_country=S9a,e.postcode=w9a,e.state=_9a})(B2n);var T9a=B2n.exports,z2n={exports:{}},G2n={exports:{}};(function(t){t.exports=["com","net","biz","ch","ch","ch"]})(G2n);var C9a=G2n.exports;(function(t){var e={};t.exports=e,e.domain_suffix=C9a})(z2n);var k9a=z2n.exports,V2n={exports:{}},K2n={exports:{}};(function(t){t.exports=["0800 ### ###","0800 ## ## ##","0## ### ## ##","0## ### ## ##","+41 ## ### ## ##","0900 ### ###","076 ### ## ##","079 ### ## ##","078 ### ## ##","+4176 ### ## ##","+4178 ### ## ##","+4179 ### ## ##","0041 76 ### ## ##","0041 78 ### ## ##","0041 79 ### ## ##"]})(K2n);var R9a=K2n.exports;(function(t){var e={};t.exports=e,e.formats=R9a})(V2n);var M9a=V2n.exports;(function(t){var e={};t.exports=e,e.title="French (Switzerland)",e.address=T9a,e.internet=k9a,e.phone_number=M9a})(L2n);var N9a=L2n.exports,W2n={exports:{}},Q2n={exports:{}},q2n={exports:{}};(function(t){t.exports=["აგული","აგუნა","ადოლა","ავთანდილ","ავთო","აკაკი","აკო","ალეკო","ალექსანდრე","ალექსი","ალიო","ამირან","ანა","ანანო","ანზორ","ანნა","ანუკა","ანუკი","არჩილ","ასკილა","ასლანაზ","აჩიკო","ბადრი","ბაია","ბარბარე","ბაქარ","ბაჩა","ბაჩანა","ბაჭუა","ბაჭუკი","ბახვა","ბელა","ბერა","ბერდია","ბესიკ","ბესიკ","ბესო","ბექა","ბიძინა","ბიჭიკო","ბოჩია","ბოცო","ბროლა","ბუბუ","ბუდუ","ბუხუტი","გაგა","გაგი","გახა","გეგა","გეგი","გედია","გელა","გენადი","გვადი","გვანცა","გვანჯი","გვიტია","გვრიტა","გია","გიგა","გიგი","გიგილო","გიგლა","გიგოლი","გივი","გივიკო","გიორგი","გოგი","გოგიტა","გოგიჩა","გოგოთურ","გოგოლა","გოდერძი","გოლა","გოჩა","გრიგოლ","გუგა","გუგუ","გუგულა","გუგული","გუგუნა","გუკა","გულარისა","გულვარდი","გულვარდისა","გულთამზე","გულია","გულიკო","გულისა","გულნარა","გურამ","დავით","დალი","დარეჯან","დიანა","დიმიტრი","დოდო","დუტუ","ეთერ","ეთო","ეკა","ეკატერინე","ელგუჯა","ელენა","ელენე","ელზა","ელიკო","ელისო","ემზარ","ეშხა","ვალენტინა","ვალერი","ვანო","ვაჟა","ვაჟა","ვარდო","ვარსკვლავისა","ვასიკო","ვასილ","ვატო","ვახო","ვახტანგ","ვენერა","ვერა","ვერიკო","ზაზა","ზაირა","ზაურ","ზეზვა","ზვიად","ზინა","ზოია","ზუკა","ზურა","ზურაბ","ზურია","ზურიკო","თაზო","თათა","თათია","თათული","თაია","თაკო","თალიკო","თამაზ","თამარ","თამარა","თამთა","თამთიკე","თამი","თამილა","თამრიკო","თამრო","თამუნა","თამჩო","თანანა","თანდილა","თაყა","თეა","თებრონე","თეიმურაზ","თემურ","თენგიზ","თენგო","თეონა","თიკა","თიკო","თიკუნა","თინა","თინათინ","თინიკო","თმაგიშერა","თორნიკე","თუთა","თუთია","ია","იათამზე","იამზე","ივანე","ივერი","ივქირიონ","იზოლდა","ილია","ილიკო","იმედა","ინგა","იოსებ","ირაკლი","ირინა","ირინე","ირინკა","ირმა","იური","კაკო","კალე","კატო","კახა","კახაბერ","კეკელა","კესანე","კესო","კვირია","კიტა","კობა","კოკა","კონსტანტინე","კოსტა","კოტე","კუკური","ლადო","ლალი","ლამაზა","ლამარა","ლამზირა","ლაშა","ლევან","ლეილა","ლელა","ლენა","ლერწამისა","ლექსო","ლია","ლიანა","ლიზა","ლიზიკო","ლილე","ლილი","ლილიკო","ლომია","ლუიზა","მაგული","მადონა","მათიკო","მაია","მაიკო","მაისა","მაკა","მაკო","მაკუნა","მალხაზ","მამამზე","მამია","მამისა","მამისთვალი","მამისიმედი","მამუკა","მამულა","მანანა","მანჩო","მარადი","მარი","მარია","მარიამი","მარიკა","მარინა","მარინე","მარიტა","მაყვალა","მაყვალა","მაშიკო","მაშო","მაცაცო","მგელია","მგელიკა","მედეა","მეკაშო","მელანო","მერაბ","მერი","მეტია","მზაღო","მზევინარ","მზეთამზე","მზეთვალა","მზეონა","მზექალა","მზეხა","მზეხათუნი","მზია","მზირა","მზისადარ","მზისთანადარი","მზიულა","მთვარისა","მინდია","მიშა","მიშიკო","მიხეილ","მნათობი","მნათობისა","მოგელი","მონავარდისა","მურმან","მუხრან","ნაზი","ნაზიკო","ნათელა","ნათია","ნაირა","ნანა","ნანი","ნანიკო","ნანუკა","ნანული","ნარგიზი","ნასყიდა","ნატალია","ნატო","ნელი","ნენე","ნესტან","ნია","ნიაკო","ნიკა","ნიკოლოზ","ნინა","ნინაკა","ნინი","ნინიკო","ნინო","ნინუკა","ნინუცა","ნოდარ","ნოდო","ნონა","ნორა","ნუგზარ","ნუგო","ნუკა","ნუკი","ნუკრი","ნუნუ","ნუნუ","ნუნუკა","ნუცა","ნუცი","ოთარ","ოთია","ოთო","ომარ","ორბელ","ოტია","ოქროპირ","პაატა","პაპუნა","პატარკაცი","პატარქალი","პეპელა","პირვარდისა","პირიმზე","ჟამიერა","ჟამიტა","ჟამუტა","ჟუჟუნა","რამაზ","რევაზ","რეზი","რეზო","როზა","რომან","რუსკა","რუსუდან","საბა","სალი","სალომე","სანათა","სანდრო","სერგო","სესია","სეხნია","სვეტლანა","სიხარულა","სოსო","სოფიკო","სოფიო","სოფო","სულა","სულიკო","ტარიელ","ტასიკო","ტასო","ტატიანა","ტატო","ტეტია","ტურია","უმანკო","უტა","უჩა","ფაქიზო","ფაცია","ფეფელა","ფეფენა","ფეფიკო","ფეფო","ფოსო","ფოფო","ქაბატო","ქავთარი","ქალია","ქართლოს","ქეთათო","ქეთევან","ქეთი","ქეთინო","ქეთო","ქველი","ქიტესა","ქიშვარდი","ქობული","ქრისტესია","ქტისტეფორე","ქურციკა","ღარიბა","ღვთისავარი","ღვთისია","ღვთისო","ღვინია","ღუღუნა","ყაითამზა","ყაყიტა","ყვარყვარე","ყიასა","შაბური","შაკო","შალვა","შალიკო","შანშე","შარია","შაქარა","შაქრო","შოთა","შორენა","შოშია","შუქია","ჩიორა","ჩიტო","ჩიტო","ჩოყოლა","ცაგო","ცაგული","ცანგალა","ცარო","ცაცა","ცაცო","ციალა","ციკო","ცინარა","ცირა","ცისანა","ცისია","ცისკარა","ცისკარი","ცისმარა","ცისმარი","ციური","ციცი","ციცია","ციცინო","ცოტნე","ცოქალა","ცუცა","ცხვარი","ძაბული","ძამისა","ძაღინა","ძიძია","წათე","წყალობა","ჭაბუკა","ჭიაბერ","ჭიკჭიკა","ჭიჭია","ჭიჭიკო","ჭოლა","ხათუნა","ხარება","ხატია","ხახულა","ხახუტა","ხეჩუა","ხვიჩა","ხიზანა","ხირხელა","ხობელასი","ხოხია","ხოხიტა","ხუტა","ხუცია","ჯაბა","ჯავახი","ჯარჯი","ჯემალ","ჯონდო","ჯოტო","ჯუბი","ჯულიეტა","ჯუმბერ","ჰამლეტ"]})(q2n);var I9a=q2n.exports,Y2n={exports:{}};(function(t){t.exports=["აბაზაძე","აბაშიძე","აბრამაშვილი","აბუსერიძე","აბშილავა","ავაზნელი","ავალიშვილი","ამილახვარი","ანთაძე","ასლამაზიშვილი","ასპანიძე","აშკარელი","ახალბედაშვილი","ახალკაცი","ახვლედიანი","ბარათაშვილი","ბარდაველიძე","ბახტაძე","ბედიანიძე","ბერიძე","ბერუაშვილი","ბეჟანიშვილი","ბოგველიშვილი","ბოტკოველი","გაბრიჩიძე","გაგნიძე","გამრეკელი","გელაშვილი","გზირიშვილი","გიგაური","გურამიშვილი","გურგენიძე","დადიანი","დავითიშვილი","დათუაშვილი","დარბაისელი","დეკანოიძე","დვალი","დოლაბერიძე","ედიშერაშვილი","ელიზბარაშვილი","ელიოზაშვილი","ერისთავი","ვარამაშვილი","ვარდიაშვილი","ვაჩნაძე","ვარდანიძე","ველიაშვილი","ველიჯანაშვილი","ზარანდია","ზარიძე","ზედგინიძე","ზუბიაშვილი","თაბაგარი","თავდგირიძე","თათარაშვილი","თამაზაშვილი","თამარაშვილი","თაქთაქიშვილი","თაყაიშვილი","თბილელი","თუხარელი","იაშვილი","იგითხანიშვილი","ინასარიძე","იშხნელი","კანდელაკი","კაცია","კერესელიძე","კვირიკაშვილი","კიკნაძე","კლდიაშვილი","კოვზაძე","კოპაძე","კოპტონაშვილი","კოშკელაშვილი","ლაბაძე","ლეკიშვილი","ლიქოკელი","ლოლაძე","ლურსმანაშვილი","მაისურაძე","მარტოლეკი","მაღალაძე","მახარაშვილი","მგალობლიშვილი","მეგრელიშვილი","მელაშვილი","მელიქიძე","მერაბიშვილი","მეფარიშვილი","მუჯირი","მჭედლიძე","მხეიძე","ნათაძე","ნაჭყებია","ნოზაძე","ოდიშვილი","ონოფრიშვილი","პარეხელაშვილი","პეტრიაშვილი","სააკაძე","სააკაშვილი","საგინაშვილი","სადუნიშვილი","საძაგლიშვილი","სებისკვერიძე","სეთური","სუთიაშვილი","სულაშვილი","ტაბაღუა","ტყეშელაშვილი","ულუმბელაშვილი","უნდილაძე","ქავთარაძე","ქართველიშვილი","ყაზბეგი","ყაუხჩიშვილი","შავლაშვილი","შალიკაშვილი","შონია","ჩიბუხაშვილი","ჩიხრაძე","ჩიქოვანი","ჩუბინიძე","ჩოლოყაშვილი","ჩოხელი","ჩხვიმიანი","ცალუღელაშვილი","ცაძიკიძე","ციციშვილი","ციხელაშვილი","ციხისთავი","ცხოვრებაძე","ცხომარია","წამალაიძე","წერეთელი","წიკლაური","წიფურია","ჭაბუკაშვილი","ჭავჭავაძე","ჭანტურია","ჭარელიძე","ჭიორელი","ჭუმბურიძე","ხაბაზი","ხარაძე","ხარატიშვილი","ხარატასშვილი","ხარისჭირაშვილი","ხარხელაური","ხაშმელაშვილი","ხეთაგური","ხიზამბარელი","ხიზანიშვილი","ხიმშიაშვილი","ხოსრუაშვილი","ხოჯივანიშვილი","ხუციშვილი","ჯაბადარი","ჯავახი","ჯავახიშვილი","ჯანელიძე","ჯაფარიძე","ჯაყელი","ჯაჯანიძე","ჯვარელია","ჯინიუზაშვილი","ჯუღაშვილი"]})(Y2n);var P9a=Y2n.exports,J2n={exports:{}};(function(t){t.exports=["ბ-ნი","ბატონი","ქ-ნი","ქალბატონი"]})(J2n);var O9a=J2n.exports,Z2n={exports:{}};(function(t){t.exports={descriptor:["გენერალური","მთავარი","სტაჟიორ","უმცროსი","ყოფილი","წამყვანი"],level:["აღრიცხვების","ბრენდინგის","ბრენიდს","ბუღალტერიის","განყოფილების","გაყიდვების","გუნდის","დახმარების","დიზაინის","თავდაცვის","ინფორმაციის","კვლევების","კომუნიკაციების","მარკეტინგის","ოპერაციათა","ოპტიმიზაციების","პიარ","პროგრამის","საქმეთა","ტაქტიკური","უსაფრთხოების","ფინანსთა","ქსელის","ხარისხის","ჯგუფის"],job:["აგენტი","ადვოკატი","ადმინისტრატორი","არქიტექტორი","ასისტენტი","აღმასრულებელი დირექტორი","დეველოპერი","დეკანი","დიზაინერი","დირექტორი","ელექტრიკოსი","ექსპერტი","ინჟინერი","იურისტი","კონსტრუქტორი","კონსულტანტი","კოორდინატორი","ლექტორი","მასაჟისტი","მემანქანე","მენეჯერი","მძღოლი","მწვრთნელი","ოპერატორი","ოფიცერი","პედაგოგი","პოლიციელი","პროგრამისტი","პროდიუსერი","პრორექტორი","ჟურნალისტი","რექტორი","სპეციალისტი","სტრატეგისტი","ტექნიკოსი","ფოტოგრაფი","წარმომადგენელი"]}})(Z2n);var L9a=Z2n.exports,X2n={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}"]})(X2n);var B9a=X2n.exports;(function(t){var e={};t.exports=e,e.first_name=I9a,e.last_name=P9a,e.prefix=O9a,e.title=L9a,e.name=B9a})(Q2n);var D9a=Q2n.exports,eCn={exports:{}},tCn={exports:{}};(function(t){t.exports=["ახალი","ძველი","ზემო","ქვემო"]})(tCn);var $9a=tCn.exports,nCn={exports:{}};(function(t){t.exports=["სოფელი","ძირი","სკარი","დაბა"]})(nCn);var F9a=nCn.exports,rCn={exports:{}};(function(t){t.exports=["#{city_prefix} #{Name.first_name}#{city_suffix}","#{city_prefix} #{Name.first_name}","#{Name.first_name}#{city_suffix}","#{Name.first_name}#{city_suffix}","#{Name.last_name}#{city_suffix}","#{Name.last_name}#{city_suffix}"]})(rCn);var j9a=rCn.exports,iCn={exports:{}};(function(t){t.exports=["ავსტრალია","ავსტრია","ავღანეთი","აზავადი","აზერბაიჯანი","აზიაში","აზიის","ალბანეთი","ალჟირი","ამაღლება და ტრისტანი-და-კუნია","ამერიკის ვირჯინიის კუნძულები","ამერიკის სამოა","ამერიკის შეერთებული შტატები","ამერიკის","ანგილია","ანგოლა","ანდორა","ანტიგუა და ბარბუდა","არაბეთის საემიროები","არაბთა გაერთიანებული საამიროები","არაბული ქვეყნების ლიგის","არგენტინა","არუბა","არცნობილი ქვეყნების სია","აფრიკაში","აფრიკაშია","აღდგომის კუნძული","აღმ. ტიმორი","აღმოსავლეთი აფრიკა","აღმოსავლეთი ტიმორი","აშშ","აშშ-ის ვირჯინის კუნძულები","ახალი ზელანდია","ახალი კალედონია","ბანგლადეში","ბარბადოსი","ბაჰამის კუნძულები","ბაჰრეინი","ბელარუსი","ბელგია","ბელიზი","ბენინი","ბერმუდა","ბერმუდის კუნძულები","ბოლივია","ბოსნია და ჰერცეგოვინა","ბოტსვანა","ბრაზილია","ბრიტანეთის ვირჯინიის კუნძულები","ბრიტანეთის ვირჯინის კუნძულები","ბრიტანეთის ინდოეთის ოკეანის ტერიტორია","ბრუნეი","ბულგარეთი","ბურკინა ფასო","ბურკინა-ფასო","ბურუნდი","ბჰუტანი","გაბონი","გაერთიანებული სამეფო","გაეროს","გაიანა","გამბია","განა","გერმანია","გვადელუპა","გვატემალა","გვინეა","გვინეა-ბისაუ","გიბრალტარი","გრენადა","გრენლანდია","გუამი","დამოკიდებული ტერ.","დამოკიდებული ტერიტორია","დამოკიდებული","დანია","დასავლეთი აფრიკა","დასავლეთი საჰარა","დიდი ბრიტანეთი","დომინიკა","დომინიკელთა რესპუბლიკა","ეგვიპტე","ევროკავშირის","ევროპასთან","ევროპაშია","ევროპის ქვეყნები","ეთიოპია","ეკვადორი","ეკვატორული გვინეა","ეპარსეს კუნძული","ერაყი","ერიტრეა","ესპანეთი","ესპანეთის სუვერენული ტერიტორიები","ესტონეთი","ეშმორის და კარტიეს კუნძულები","ვანუატუ","ვატიკანი","ვენესუელა","ვიეტნამი","ზამბია","ზიმბაბვე","თურქეთი","თურქმენეთი","იამაიკა","იან მაიენი","იაპონია","იემენი","ინდოეთი","ინდონეზია","იორდანია","ირანი","ირლანდია","ისლანდია","ისრაელი","იტალია","კაბო-ვერდე","კაიმანის კუნძულები","კამბოჯა","კამერუნი","კანადა","კანარის კუნძულები","კარიბის ზღვის","კატარი","კენია","კვიპროსი","კინგმენის რიფი","კირიბატი","კლიპერტონი","კოლუმბია","კომორი","კომორის კუნძულები","კონგოს დემოკრატიული რესპუბლიკა","კონგოს რესპუბლიკა","კორეის რესპუბლიკა","კოსტა-რიკა","კოტ-დ’ივუარი","კუბა","კუკის კუნძულები","ლაოსი","ლატვია","ლესოთო","ლიბანი","ლიბერია","ლიბია","ლიტვა","ლიხტენშტაინი","ლუქსემბურგი","მადაგასკარი","მადეირა","მავრიკი","მავრიტანია","მაიოტა","მაკაო","მაკედონია","მალავი","მალაიზია","მალდივი","მალდივის კუნძულები","მალი","მალტა","მაროკო","მარტინიკა","მარშალის კუნძულები","მარჯნის ზღვის კუნძულები","მელილია","მექსიკა","მიანმარი","მიკრონეზია","მიკრონეზიის ფედერაციული შტატები","მიმდებარე კუნძულები","მოზამბიკი","მოლდოვა","მონაკო","მონსერატი","მონღოლეთი","ნამიბია","ნაურუ","ნაწილობრივ აფრიკაში","ნეპალი","ნიგერი","ნიგერია","ნიდერლანდი","ნიდერლანდის ანტილები","ნიკარაგუა","ნიუე","ნორვეგია","ნორფოლკის კუნძული","ოკეანეთის","ოკეანიას","ომანი","პაკისტანი","პალაუ","პალესტინა","პალმირა (ატოლი)","პანამა","პანტელერია","პაპუა-ახალი გვინეა","პარაგვაი","პერუ","პიტკერნის კუნძულები","პოლონეთი","პორტუგალია","პრინც-ედუარდის კუნძული","პუერტო-რიკო","რეუნიონი","როტუმა","რუანდა","რუმინეთი","რუსეთი","საბერძნეთი","სადავო ტერიტორიები","სალვადორი","სამოა","სამხ. კორეა","სამხრეთ ამერიკაშია","სამხრეთ ამერიკის","სამხრეთ აფრიკის რესპუბლიკა","სამხრეთი აფრიკა","სამხრეთი გეორგია და სამხრეთ სენდვიჩის კუნძულები","სამხრეთი სუდანი","სან-მარინო","სან-ტომე და პრინსიპი","საუდის არაბეთი","საფრანგეთი","საფრანგეთის გვიანა","საფრანგეთის პოლინეზია","საქართველო","საჰარის არაბთა დემოკრატიული რესპუბლიკა","სეიშელის კუნძულები","სენ-ბართელმი","სენ-მარტენი","სენ-პიერი და მიკელონი","სენეგალი","სენტ-ვინსენტი და გრენადინები","სენტ-კიტსი და ნევისი","სენტ-ლუსია","სერბეთი","სეუტა","სვაზილენდი","სვალბარდი","სიერა-ლეონე","სინგაპური","სირია","სლოვაკეთი","სლოვენია","სოკოტრა","სოლომონის კუნძულები","სომალი","სომალილენდი","სომხეთი","სუდანი","სუვერენული სახელმწიფოები","სურინამი","ტაივანი","ტაილანდი","ტანზანია","ტაჯიკეთი","ტერიტორიები","ტერქსისა და კაიკოსის კუნძულები","ტოგო","ტოკელაუ","ტონგა","ტრანსკონტინენტური ქვეყანა","ტრინიდადი და ტობაგო","ტუვალუ","ტუნისი","უგანდა","უზბეკეთი","უკრაინა","უნგრეთი","უოლისი და ფუტუნა","ურუგვაი","ფარერის კუნძულები","ფილიპინები","ფინეთი","ფიჯი","ფოლკლენდის კუნძულები","ქვეყნები","ქოქოსის კუნძულები","ქუვეითი","ღაზის სექტორი","ყაზახეთი","ყირგიზეთი","შვედეთი","შვეიცარია","შობის კუნძული","შრი-ლანკა","ჩადი","ჩერნოგორია","ჩეჩნეთის რესპუბლიკა იჩქერია","ჩეხეთი","ჩილე","ჩინეთი","ჩრდ. კორეა","ჩრდილოეთ ამერიკის","ჩრდილოეთ მარიანას კუნძულები","ჩრდილოეთი აფრიკა","ჩრდილოეთი კორეა","ჩრდილოეთი მარიანას კუნძულები","ცენტრალური აფრიკა","ცენტრალური აფრიკის რესპუბლიკა","წევრები","წმინდა ელენე","წმინდა ელენეს კუნძული","ხორვატია","ჯერსი","ჯიბუტი","ჰავაი","ჰაიტი","ჰერდი და მაკდონალდის კუნძულები","ჰონდურასი","ჰონკონგი"]})(iCn);var H9a=iCn.exports,aCn={exports:{}};(function(t){t.exports=["###","##","#"]})(aCn);var U9a=aCn.exports,oCn={exports:{}};(function(t){t.exports=["გამზ.","გამზირი","ქ.","ქუჩა","ჩიხი","ხეივანი"]})(oCn);var z9a=oCn.exports,sCn={exports:{}};(function(t){t.exports=["კორპ. ##","შენობა ###"]})(sCn);var G9a=sCn.exports,lCn={exports:{}};(function(t){t.exports=["01##"]})(lCn);var V9a=lCn.exports,cCn={exports:{}};(function(t){t.exports=["აბასთუმანი","აბაშა","ადიგენი","ამბროლაური","ანაკლია","ასპინძა","ახალგორი","ახალქალაქი","ახალციხე","ახმეტა","ბათუმი","ბაკურიანი","ბაღდათი","ბახმარო","ბოლნისი","ბორჯომი","გარდაბანი","გონიო","გორი","გრიგოლეთი","გუდაური","გურჯაანი","დედოფლისწყარო","დმანისი","დუშეთი","ვანი","ზესტაფონი","ზუგდიდი","თბილისი","თეთრიწყარო","თელავი","თერჯოლა","თიანეთი","კასპი","კვარიათი","კიკეთი","კოჯორი","ლაგოდეხი","ლანჩხუთი","ლენტეხი","მარნეული","მარტვილი","მესტია","მცხეთა","მწვანე კონცხი","ნინოწმინდა","ოზურგეთი","ონი","რუსთავი","საგარეჯო","საგურამო","საირმე","სამტრედია","სარფი","საჩხერე","სენაკი","სიღნაღი","სტეფანწმინდა","სურამი","ტაბახმელა","ტყიბული","ურეკი","ფოთი","ქარელი","ქედა","ქობულეთი","ქუთაისი","ყვარელი","შუახევი","ჩაქვი","ჩოხატაური","ცაგერი","ცხოროჭყუ","წავკისი","წალენჯიხა","წალკა","წაღვერი","წეროვანი","წნორი","წყალტუბო","წყნეთი","ჭიათურა","ხარაგაული","ხაშური","ხელვაჩაური","ხობი","ხონი","ხულო"]})(cCn);var K9a=cCn.exports,uCn={exports:{}};(function(t){t.exports=["აბაშიძის","აბესაძის","აბულაძის","აგლაძის","ადლერის","ავიაქიმიის","ავლაბრის","ათარბეგოვის","ათონელის","ალავერდოვის","ალექსიძის","ალილუევის","ალმასიანის","ამაღლების","ამირეჯიბის","ანაგის","ანდრონიკაშვილის","ანთელავას","ანჯაფარიძის","არაგვის","არდონის","არეშიძის","ასათიანის","ასკურავას","ასლანიდის","ატენის","აფხაზი","აღმაშენებლის","ახალშენის","ახვლედიანის","ბააზოვის","ბაბისხევის","ბაბუშკინის","ბაგრატიონის","ბალანჩივაძეების","ბალანჩივაძის","ბალანჩინის","ბალმაშევის","ბარამიძის","ბარნოვის","ბაშალეიშვილის","ბევრეთის","ბელინსკის","ბელოსტოკის","ბენაშვილის","ბეჟანიშვილის","ბერიძის","ბოლქვაძის","ბოცვაძის","ბოჭორიშვილის","ბოჭორიძის","ბუაჩიძის","ბუდაპეშტის","ბურკიაშვილის","ბურძგლას","გაბესკირიას","გაგარინის","გაზაფხულის","გამრეკელის","გამსახურდიას","გარეჯელის","გეგეჭკორის","გედაურის","გელოვანი","გელოვანის","გერცენის","გლდანის","გოგებაშვილის","გოგიბერიძის","გოგოლის","გონაშვილის","გორგასლის","გრანელის","გრიზოდუბოვას","გრინევიცკის","გრომოვას","გრუზინსკის","გუდიაშვილის","გულრიფშის","გულუას","გურამიშვილის","გურგენიძის","დადიანის","დავითაშვილის","დამაკავშირებელი","დარიალის","დედოფლისწყაროს","დეპუტატის","დიდგორის","დიდი","დიდუბის","დიუმას","დიღმის","დიღომში","დოლიძის","დუნდუას","დურმიშიძის","ელიავას","ენგელსის","ენგურის","ეპისკოპოსის","ერისთავი","ერისთავის","ვაზისუბნის","ვაკელის","ვართაგავას","ვატუტინის","ვაჩნაძის","ვაცეკის","ვეკუას","ვეშაპურის","ვირსალაძის","ვოლოდარსკის","ვორონინის","ზაარბრიუკენის","ზაზიაშვილის","ზაზიშვილის","ზაკომოლდინის","ზანდუკელის","ზაქარაიას","ზაქარიაძის","ზახაროვის","ზაჰესის","ზნაურის","ზურაბაშვილის","ზღვის","თაბუკაშვილის","თავაძის","თავისუფლების","თამარაშვილის","თაქთაქიშვილის","თბილელის","თელიას","თორაძის","თოფურიძის","იალბუზის","იამანიძის","იაშვილის","იბერიის","იერუსალიმის","ივანიძის","ივერიელის","იზაშვილის","ილურიძის","იმედაშვილის","იმედაძის","იმედის","ინანიშვილის","ინგოროყვას","ინდუსტრიალიზაციის","ინჟინრის","ინწკირველის","ირბახის","ირემაშვილის","ისაკაძის","ისპასჰანლის","იტალიის","იუნკერთა","კათალიკოსის","კაიროს","კაკაბაძის","კაკაბეთის","კაკლიანის","კალანდაძის","კალიაევის","კალინინის","კამალოვის","კამოს","კაშენის","კახოვკის","კედიას","კელაპტრიშვილის","კერესელიძის","კეცხოველის","კიბალჩიჩის","კიკნაძის","კიროვის","კობარეთის","კოლექტივიზაციის","კოლმეურნეობის","კოლხეთის","კომკავშირის","კომუნისტური","კონსტიტუციის","კოოპერაციის","კოსტავას","კოტეტიშვილის","კოჩეტკოვის","კოჯრის","კრონშტადტის","კროპოტკინის","კრუპსკაიას","კუიბიშევის","კურნატოვსკის","კურტანოვსკის","კუტუზოვის","ლაღიძის","ლელაშვილის","ლენინაშენის","ლენინგრადის","ლენინის","ლენის","ლეონიძის","ლვოვის","ლორთქიფანიძის","ლოტკინის","ლუბლიანის","ლუბოვსკის","ლუნაჩარსკის","ლუქსემბურგის","მაგნიტოგორსკის","მაზნიაშვილის","მაისურაძის","მამარდაშვილის","მამაცაშვილის","მანაგაძის","მანჯგალაძის","მარის","მარუაშვილის","მარქსის","მარჯანის","მატროსოვის","მაჭავარიანი","მახალდიანის","მახარაძის","მებაღიშვილის","მეგობრობის","მელაანის","მერკვილაძის","მესხიას","მესხის","მეტეხის","მეტრეველი","მეჩნიკოვის","მთავარანგელოზის","მიასნიკოვის","მილორავას","მიმინოშვილის","მიროტაძის","მიქატაძის","მიქელაძის","მონტინის","მორეტის","მოსკოვის","მრევლიშვილის","მუშკორის","მუჯირიშვილის","მშვიდობის","მცხეთის","ნადირაძის","ნაკაშიძის","ნარიმანოვის","ნასიძის","ნაფარეულის","ნეკრასოვის","ნიაღვრის","ნინიძის","ნიშნიანიძის","ობოლაძის","ონიანის","ოჟიოს","ორახელაშვილის","ორბელიანის","ორჯონიკიძის","ოქტომბრის","ოცდაექვსი","პავლოვის","პარალელურის","პარიზის","პეკინის","პეროვსკაიას","პეტეფის","პიონერის","პირველი","პისარევის","პლეხანოვის","პრავდის","პროლეტარიატის","ჟელიაბოვის","ჟვანიას","ჟორდანიას","ჟღენტი","ჟღენტის","რადიანის","რამიშვილი","რასკოვას","რენინგერის","რინგის","რიჟინაშვილის","რობაქიძის","რობესპიერის","რუსის","რუხაძის","რჩეულიშვილის","სააკაძის","საბადურის","საბაშვილის","საბურთალოს","საბჭოს","საგურამოს","სამრეკლოს","სამღერეთის","სანაკოევის","სარაჯიშვილის","საჯაიას","სევასტოპოლის","სერგი","სვანიძის","სვერდლოვის","სტახანოვის","სულთნიშნის","სურგულაძის","სხირტლაძის","ტაბიძის","ტატიშვილის","ტელმანის","ტერევერკოს","ტეტელაშვილის","ტოვსტონოგოვის","ტოროშელიძის","ტრაქტორის","ტრიკოტაჟის","ტურბინის","უბილავას","უბინაშვილის","უზნაძის","უკლებას","ულიანოვის","ურიდიას","ფაბრიციუსის","ფაღავას","ფერისცვალების","ფიგნერის","ფიზკულტურის","ფიოლეტოვის","ფიფიების","ფოცხიშვილის","ქართველიშვილის","ქართლელიშვილის","ქინქლაძის","ქიქოძის","ქსოვრელის","ქუთათელაძის","ქუთათელის","ქურდიანის","ღოღობერიძის","ღუდუშაურის","ყავლაშვილის","ყაზბეგის","ყარყარაშვილის","ყიფიანის","ყუშიტაშვილის","შანიძის","შარტავას","შატილოვის","შაუმიანის","შენგელაიას","შერვაშიძის","შეროზიას","შირშოვის","შმიდტის","შრომის","შუშინის","შჩორსის","ჩალაუბნის","ჩანტლაძის","ჩაპაევის","ჩაჩავას","ჩელუსკინელების","ჩერნიახოვსკის","ჩერქეზიშვილი","ჩერქეზიშვილის","ჩვიდმეტი","ჩიტაიას","ჩიტაძის","ჩიქვანაიას","ჩიქობავას","ჩიხლაძის","ჩოდრიშვილის","ჩოლოყაშვილის","ჩუღურეთის","ცაბაძის","ცაგარელის","ცეტკინის","ცინცაძის","ცისკარიშვილის","ცურტაველის","ცქიტიშვილის","ცხაკაიას","ძმობის","ძნელაძის","წერეთლის","წითელი","წითელწყაროს","წინამძღვრიშვილის","წულაძის","წულუკიძის","ჭაბუკიანის","ჭავჭავაძის","ჭანტურიას","ჭოველიძის","ჭონქაძის","ჭყონდიდელის","ხანძთელის","ხვამლის","ხვინგიას","ხვიჩიას","ხიმშიაშვილის","ხმელნიცკის","ხორნაბუჯის","ხრამჰესის","ხუციშვილის","ჯავახიშვილის","ჯაფარიძის","ჯიბლაძის","ჯორჯიაშვილის"]})(uCn);var W9a=uCn.exports,dCn={exports:{}};(function(t){t.exports=["#{street_title} #{street_suffix}"]})(dCn);var Q9a=dCn.exports,hCn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(hCn);var q9a=hCn.exports,fCn={exports:{}};(function(t){t.exports=["საქართველო"]})(fCn);var Y9a=fCn.exports;(function(t){var e={};t.exports=e,e.city_prefix=$9a,e.city_suffix=F9a,e.city=j9a,e.country=H9a,e.building_number=U9a,e.street_suffix=z9a,e.secondary_address=G9a,e.postcode=V9a,e.city_name=K9a,e.street_title=W9a,e.street_name=Q9a,e.street_address=q9a,e.default_country=Y9a})(eCn);var J9a=eCn.exports,pCn={exports:{}},mCn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","posta.ge"]})(mCn);var Z9a=mCn.exports,gCn={exports:{}};(function(t){t.exports=["ge","com","net","org","com.ge","org.ge"]})(gCn);var X9a=gCn.exports;(function(t){var e={};t.exports=e,e.free_email=Z9a,e.domain_suffix=X9a})(pCn);var e$a=pCn.exports,vCn={exports:{}},ACn={exports:{}};(function(t){t.exports=["შპს","სს","ააიპ","სსიპ"]})(ACn);var t$a=ACn.exports,yCn={exports:{}};(function(t){t.exports=["ჯგუფი","და კომპანია","სტუდია","გრუპი"]})(yCn);var n$a=yCn.exports,bCn={exports:{}};(function(t){t.exports=["#{prefix} #{Name.first_name}","#{prefix} #{Name.last_name}","#{prefix} #{Name.last_name} #{suffix}","#{prefix} #{Name.first_name} #{suffix}","#{prefix} #{Name.last_name}-#{Name.last_name}"]})(bCn);var r$a=bCn.exports;(function(t){var e={};t.exports=e,e.prefix=t$a,e.suffix=n$a,e.name=r$a})(vCn);var i$a=vCn.exports,xCn={exports:{}},ECn={exports:{}};(function(t){t.exports=["5##-###-###","5########","5## ## ## ##","5## ######","5## ### ###","995 5##-###-###","995 5########","995 5## ## ## ##","995 5## ######","995 5## ### ###","+995 5##-###-###","+995 5########","+995 5## ## ## ##","+995 5## ######","+995 5## ### ###","(+995) 5##-###-###","(+995) 5########","(+995) 5## ## ## ##","(+995) 5## ######","(+995) 5## ### ###"]})(ECn);var a$a=ECn.exports;(function(t){var e={};t.exports=e,e.formats=a$a})(xCn);var o$a=xCn.exports,SCn={exports:{}},wCn={exports:{}};(function(t){t.exports=["(+995 32) 2-##-##-##","032-2-##-##-##","032-2-######","032-2-###-###","032 2 ## ## ##","032 2 ######","2 ## ## ##","2######","2 ### ###"]})(wCn);var s$a=wCn.exports;(function(t){var e={};t.exports=e,e.formats=s$a})(SCn);var l$a=SCn.exports;(function(t){var e={};t.exports=e,e.title="Georgian",e.separator=" და ",e.name=D9a,e.address=J9a,e.internet=e$a,e.company=i$a,e.phone_number=o$a,e.cell_phone=l$a})(W2n);var c$a=W2n.exports,_Cn={exports:{}},TCn={exports:{}},CCn={exports:{}};(function(t){t.exports=["Հյուսիսային","Արևելյան","Արևմտյան","Հարավային","Նոր"]})(CCn);var u$a=CCn.exports,kCn={exports:{}};(function(t){t.exports=["ակերտ","աշեն","աշատ"]})(kCn);var d$a=kCn.exports,RCn={exports:{}};(function(t){t.exports=["ԱՄՆ","Ադրբեջան","Ալբանիա","Ալժիր","Ամերիկյան Սամոա","Ամերիկյան Վիրջինյան կղզիներ","Անգիլիա","Անգոլա","Անդորրա","Անտիգուա և Բարբուդա","Ավստրալիա","Ավստրիա","Արգենտինա","Արուբա","Արցախի Հանրապետություն","Արևելյան Թիմոր","Աֆղանստան","Բահամներ","Բահրեյն","Բանգլադեշ","Բարբադոս","Բելառուս","Բելիզ","Բենին","Բերմուդա","Բոլիվիա","Բոսնիա և Հերցեգովինա","Բոտսվանա","Բութան","Բուլղարիա","Բուրկինա Ֆասո","Բուրունդի","Բրազիլիա","Բրիտանական Վիրջինյան Կղզիներ","Բրունեյ","Գաբոն","Գամբիա","Գայանա","Գերմանիա","Գերնսի","Գուամ","Գվատեմալա","Գվինեա","Գվինեա-Բիսաու","Գրենադա","Դանիա","Դոմինիկա","Դոմինիկյան Հանրապետություն","Եգիպտոս","Եթովպիա","Եմեն","Զամբիա","Զիմբաբվե","Էկվադոր","Էստոնիա","Էրիտրեա","Թաիլանդ","Թայվան","Թըրքս և Կայկոս կղզիներ","Թունիս","Թուրքիա","Թուրքմենստան","Ինդոնեզիա","Իռլանդիա","Իսլանդիա","Իսպանիա","Իսրայել","Իտալիա","Իրան","Իրաք","Լաոս","Լատվիա","Լեհաստան","Լեսոթո","Լիբանան","Լիբերիա","Լիբիա","Լիխտենշտայն","Լիտվա","Լյուքսեմբուրգ","Խորվաթիա","Կաբո Վերդե","Կամբոջա","Կամերուն","Կայմանյան կղզիներ","Կանադա","Կատար","Կենտրոնաաֆրիկյան Հանրապետություն","Կիպրոս","Կիրիբատի","Կոլումբիա","Կոմորներ","Կոնգոյի Հանրապետություն","ԿոնգոյիԴեմոկրատական Հանրապետություն ԿԴՀ","Կոստա Ռիկա","Կոտ դ'Իվուար","Կուբա","Կուկի կղզիներ","Հայաստան","Հայիթի","Հասարակածային Գվինեա","Հարավային Կորեա","Հարավաֆրիկյան Հանրապետություն","Հյուսիսային Կորեա","Հյուսիսային Մակեդոնիա","Հյուսիսային Մարիանյան կղզիներ","Հնդկաստան","Հոնդուրաս","Հոնկոնգ","Հորդանան","Հունաստան","Հունգարիա","Ղազախստան","Ղրղզստան","Ճամայկա","Ճապոնիա","ՄԱԷ","ՄԹ","Մադագասկար","Մալայզիա","Մալավի","Մալդիվներ","Մալթա","Մալի","Մակաու","Մայոտ","Մավրիկիոս","Մավրիտանիա","Մարշալյան կղզիներ","Մարոկկո","Մեն կղզի","Մեքսիկա","Միկրոնեզիա","Մյանմա","Մոզամբիկ","Մոլդովա","Մոնակո","Մոնղոլիա","Մոնտսերատ","Նամիբիա","Նաուրու","Նեպալ","Նիգեր","Նիգերիա","Նիդերլանդյան Անտիլներ","Նիդերլանդներ","Նիկարագուա","Նիուե","Նոր Զելանդիա","Նոր Կալեդոնիա","Նորվեգիա","Նորֆոլք կղզի","Շվեդիա","Շվեյցարիա","Շրի Լանկա","Ուգանդա","Ուզբեկստան","Ուկրաինա","Ուոլիս և Ֆուտունա","Ուրուգվայ","Չադ","Չեխիա","Չեռնոգորիա","Չիլի","Չինաստան","Պալաու","Պակիստան","Պաղեստին","Պանամա","Պապուա Նոր Գվինեա","Պարագվայ","Պերու","Պորտուգալիա","Պուերտո Ռիկո","Ջերսի","Ջիբութի","Ջիբրալթար","Ռուանդա","Ռումինիա","Ռուսաստան","Սալվադոր","Սահրավիա","Սամոա","Սան Մարինո","Սան Տոմե և Պրինսիպի","Սաուդյան Արաբիա","Սեյշելներ","Սեն Մարտեն (Ֆրանսիական Անտիլներ)","Սենեգալ","Սենտ Լյուսիա","Սենտ Կիտս և Նևիս","Սենտ Պիեռ և Միկելոն","Սենտ Վինսենտ և Գրենադիներ","Սերբիա","Սիեռա Լեոնե","Սինգապուր","Սիրիա","Սլովակիա","Սլովենիա","Սողոմոնյան Կղզիներ","Սոմալիա","Սուդան","Սուրբ Բարդուղիմեոսի կղզի","Սուրբ Հեղինեի կղզի","Սուրինամ","Սվազիլենդ","Վանուատու","Վատիկան","Վենեսուելա","Վիետնամ","Վրաստան","Տանզանիա","Տաջիկստան","Տոգո","Տոկելաու","Տոնգա","Տուվալու","Տրինիդադ Տոբագո","Փիթքերն կղզիներ","Քենիա","Քուվեյթ","Օման","Ֆարերյան կղզիներ","Ֆիլիպիններ","Ֆինլանդիա","Ֆիջի","Ֆոլկլենդյան կղզիներ","Ֆրանսիա","Ֆրանսիական Պոլինեզիա"]})(RCn);var h$a=RCn.exports,MCn={exports:{}};(function(t){t.exports=["###","###/#","##","##/#","#","#/#"]})(MCn);var f$a=MCn.exports,NCn={exports:{}};(function(t){t.exports=[" փողոց"," պողոտա"]})(NCn);var p$a=NCn.exports,ICn={exports:{}};(function(t){t.exports=["Բն. ###","Տուն ###"]})(ICn);var m$a=ICn.exports,PCn={exports:{}};(function(t){t.exports=["Արագածոտն","Արարատ","Արմավիր","Գեղարքունիք","Կոտայք","Լոռի","Շիրակ","Սյունիք","Տավուշ","Վայոց ձոր","Երևան","Ստեփանակերտ","Ասկերան","Հադրութ","Մարտակերտ","Մարտունի","Շահումյան","Շուշի","Քաշաթաղ"]})(PCn);var g$a=PCn.exports,OCn={exports:{}};(function(t){t.exports=["#{city_prefix} #{Name.last_name}","#{Name.last_name}#{city_suffix}"]})(OCn);var v$a=OCn.exports,LCn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{street_suffix}"]})(LCn);var A$a=LCn.exports,BCn={exports:{}};(function(t){t.exports=["#{address.street_name} #{address.building_number}"]})(BCn);var y$a=BCn.exports,DCn={exports:{}};(function(t){t.exports=["Արցախի Հանրապետություն"]})(DCn);var b$a=DCn.exports,$Cn={exports:{}};(function(t){t.exports=["Հյուսիսային","Արևելյան","Հարավային","Արևմտյան","Հյուսիսարևելյան","Հյուսիսարևմտյան","Հարավարևելյան","Հարավարևմտյան"]})($Cn);var x$a=$Cn.exports;(function(t){var e={};t.exports=e,e.city_prefix=u$a,e.city_suffix=d$a,e.country=h$a,e.building_number=f$a,e.street_suffix=p$a,e.secondary_address=m$a,e.state=g$a,e.city=v$a,e.street_name=A$a,e.street_address=y$a,e.default_country=b$a,e.direction=x$a})(TCn);var E$a=TCn.exports,FCn={exports:{}},jCn={exports:{}};(function(t){t.exports=["com","biz","info","name","net","org","am"]})(jCn);var S$a=jCn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=S$a})(FCn);var w$a=FCn.exports,HCn={exports:{}},UCn={exports:{}};(function(t){t.exports=["տարի","որ","փոխեց","ամեն","ինչ","կենցաղից","մինչև","համաշխարհային","տնտեսություն","մի","քանի","շաբաթում","բնականոն","դարձնելով","այն","դեռ","երեկ","անհնար","էր","թվում","ը","շատերի","համար","կմնա","որպես","անտեսանելի","աղետի","խստագույն","սահմանափակումների","մարդկային","կորուստների","և","գործազրկության","Տարեսկզբին","չինական","Վուհանի","շուկայում","ենթադրաբար","չղջիկից","մարդուն","փոխանցված","վիրուսն","ապացուցեց","տեխնոլոգիական","նվաճումների","հասած","մարդկությունը","դեռևս","շատ","բան","չգիտի","իր","սեփական","առողջության","բնության","ու","դրա","հետ","հարաբերությունների","մասին","Գարնանը","երբ","վիրուսը","կաթվածահար","արեց","կյանքը","գրեթե","ողջ","աշխարհում","Հռոմի","կաթոլիկ","եկեղեցու","առաջնորդն","հավատացյալ","հոտին","դիմեց","աղոթքով","տարվա","ընթացքում","շատերն","էին","հիշում","մեջբերում","Մենք","առաջ","էինք","շարժվում","գլխապտույտ","արագությամբ","վստահ","ուժեղ","ենք","կարող","անել","կամենանք","Ձգտելով","անձնական","բարեկեցության","մենք","թույլ","տալիս","մեզ","տարվել","նյութականով","վազում","շահի","ետևից","չէին","կանգնեցնում","մեր","շուրջ","մոլեգնող","պատերազմներն","անարդարությունը","ոչ","էլ","աղքատների","օգնություն","աղերսող","ձայնն","լսում","շարունակում","ընթացքը","չնայելով","բանի","առողջ","մնալ","հիվանդ","հայտարարել","պապը","Անտեսանելի","առեղծվածային","մեկ","տարում","խլեց","ավելի","քան","միլիոն","հազար","մարդու","կյանք","վարակվեցին","միլիոնից","ավելին","վարակվածներից","յուրաքանչյուր","չորրորդը","մոտ","միլիոնը","այս","պահին","պայքարում","է","հիվանդության","դեմ","մարդ","գտնվում","ծայրահեղ","ծանր","վիճակում","Եվ","եթե","տարեսկզբին","որոշ","պետություններ","պարծենալ","իրենց","առողջապահական","համակարգերով","նորագույն","տեխնոլոգիաներով","ապա","համավարակից","հետո","ակնհայտ","դարձավ","անկախ","բյուջի","չափից","հնարավորություններից","հարուստ","թե","աղքատ","բոլորն","են","նույն","նավակում","նույնքան","անպաշտպան"]})(UCn);var _$a=UCn.exports;(function(t){var e={};t.exports=e,e.words=_$a})(HCn);var T$a=HCn.exports,zCn={exports:{}},GCn={exports:{}};(function(t){t.exports=["Դավիթ","Նարեկ","Ալեքս","Տիգրան","Հայկ","Գոռ","Արթուր","Արմեն","Մարկ","Էրիկ","Արամ","Սամվել","Արման","Ալեն","Աշոտ","Արեն","Գագիկ","Դանիել","Արեգ","Ռոբերտ","Արտյոմ","Արսեն","Միքայել","Սարգիս","Հովհաննես","Վահե","Կարեն","Գևորգ","Լևոն","Վարդան","Ռուբեն","Սուրեն","Հակոբ","Մհեր","Անդրանիկ","Ավետ","Գրիգոր","Ռաֆայել","Ալեքսանդր","Մոնթե","Հարություն","Էդուարդ","Ալբերտ","Գարիկ","Համլետ"]})(GCn);var C$a=GCn.exports,VCn={exports:{}};(function(t){t.exports=["Մարիա","Նարե","Մանե","Մարի","Մարիամ","Անի","Անգելինա","Անահիտ","Էլեն","Միլենա","Եվա","Աննա","Արփի","Գայանե","Լիլիթ","Մերի","Վիկտորյա","Արինա","Յանա","Սոնա","Նատալի","Գոհար","Հասմիկ","Սոֆի","Էմիլի","Սուսաննա","Արևիկ","Կարինե","Լյուսի","Արիանա","Տաթև","Լիկա","Ռուզաննա","Լիլի","Սոֆյա","Անուշ","Էլինա","Սառա","Նանե","Էվա","Լիանա","Մոնիկա","Կարինա","Լիա","Նարինե","Լուսինե"]})(VCn);var k$a=VCn.exports,KCn={exports:{}};(function(t){t.exports=["Մարիա","Նարե","Մանե","Մարի","Մարիամ","Անի","Անգելինա","Անահիտ","Էլեն","Միլենա","Եվա","Աննա","Արփի","Գայանե","Լիլիթ","Մերի","Վիկտորյա","Արինա","Յանա","Սոնա","Նատալի","Գոհար","Հասմիկ","Սոֆի","Էմիլի","Սուսաննա","Արևիկ","Կարինե","Լյուսի","Արիանա","Տաթև","Լիկա","Ռուզաննա","Լիլի","Սոֆյա","Անուշ","Էլինա","Սառա","Նանե","Էվա","Լիանա","Մոնիկա","Կարինա","Լիա","Նարինե","Լուսինե","Դավիթ","Նարեկ","Ալեքս","Տիգրան","Հայկ","Գոռ","Արթուր","Արմեն","Մարկ","Էրիկ","Արամ","Սամվել","Արման","Ալեն","Աշոտ","Արեն","Գագիկ","Դանիել","Արեգ","Ռոբերտ","Արտյոմ","Արսեն","Միքայել","Սարգիս","Հովհաննես","Վահե","Կարեն","Գևորգ","Լևոն","Վարդան","Ռուբեն","Սուրեն","Հակոբ","Մհեր","Անդրանիկ","Ավետ","Գրիգոր","Ռաֆայել","Ալեքսանդր","Մոնթե","Հարություն","Էդուարդ","Ալբերտ","Գարիկ","Համլետ"]})(KCn);var R$a=KCn.exports,WCn={exports:{}};(function(t){t.exports=["Հարությունյան","Սարգսյան","Հովհաննիսյան","Հովհաննիսյան","Սարգսյան","Հարությունյան","Գրիգորյան","Խաչատրյան","Խաչատրյան","Գրիգորյան","Հակոբյան","Հակոբյան","Վարդանյան","Պետրոսյան","Կարապետյան","Գևորգյան","Գևորգյան","Վարդանյան","Պետրոսյան","Կարապետյան","Մկրտչյան","Մկրտչյան","Ղազարյան","Ղազարյան","Մանուկյան","Մանուկյան","Պողոսյան","Ավետիսյան","Ավետիսյան","Պողոսյան","Մարտիրոսյան","Սահակյան","Սահակյան","Մարտիրոսյան","Դավթյան","Առաքելյան","Մարգարյան","Մարգարյան","Գալստյան","Բաղդասարյան","Առաքելյան","Դավթյան","Ստեփանյան","Գալստյան","Հայրապետյան","Հայրապետյան","Սիմոնյան","Ավագյան","Գասպարյան","Սիմոնյան","Մուրադյան","Մուրադյան","Ավագյան","Գասպարյան","Բաղդասարյան","Ստեփանյան","Ասատրյան","Հովսեփյան","Աբրահամյան","Աբրահամյան","Զաքարյան","Մելքոնյան","Մելքոնյան","Ալեքսանյան","Մխիթարյան","Ասատրյան","Բարսեղյան","Մովսիսյան","Կիրակոսյան","Կիրակոսյան","Եղիազարյան","Բաբայան","Հովսեփյան","Մնացականյան","Թադևոսյան","Զաքարյան","Մինասյան","Մխիթարյան","Բաբայան","Բարսեղյան","Ալեքսանյան","Համբարձումյան","Մովսիսյան","Եղիազարյան","Համբարձումյան","Թադևոսյան","Այվազյան","Այվազյան","Գաբրիելյան","Ներսիսյան","Մնացականյան","Մովսիսյան"]})(WCn);var M$a=WCn.exports,QCn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name} #{suffix}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(QCn);var N$a=QCn.exports;(function(t){var e={};t.exports=e,e.male_first_name=C$a,e.female_first_name=k$a,e.first_name=R$a,e.last_name=M$a,e.name=N$a})(zCn);var I$a=zCn.exports,qCn={exports:{}},YCn={exports:{}};(function(t){t.exports=["+374 ## ######","+374 ### #####"]})(YCn);var P$a=YCn.exports;(function(t){var e={};t.exports=e,e.formats=P$a})(qCn);var O$a=qCn.exports,JCn={exports:{}},ZCn={exports:{}};(function(t){t.exports=["կարմիր","կանաչ","կապույտ","դեղին","մանուշակագույն","սպիտակ","սև","նարնջագույն","վարդագույն","մոխրագույն","երկնագույն","ոսկեգույն"]})(ZCn);var L$a=ZCn.exports;(function(t){var e={};t.exports=e,e.color=L$a})(JCn);var B$a=JCn.exports,XCn={exports:{}},ekn={exports:{}};(function(t){t.exports={wide:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],abbr:["Հնվ","Փտր","Մրտ","Ապր","Մյս","Հնս","Հլս","Օգս","Սպտ","Հկտ","Նմբ","Դկտ"]}})(ekn);var D$a=ekn.exports,tkn={exports:{}};(function(t){t.exports={wide:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"],abbr:["կրկ","երկ","երք","չրք","հնգ","ուրբ","շբթ"]}})(tkn);var $$a=tkn.exports;(function(t){var e={};t.exports=e,e.month=D$a,e.weekday=$$a})(XCn);var F$a=XCn.exports;(function(t){var e={};t.exports=e,e.title="Armenian",e.separator=" և ",e.address=E$a,e.internet=w$a,e.lorem=T$a,e.name=I$a,e.phone_number=O$a,e.commerce=B$a,e.date=F$a})(_Cn);var j$a=_Cn.exports,nkn={exports:{}},rkn={exports:{}},ikn={exports:{}};(function(t){t.exports=["Afganistan","Albanija","Alžir","Američka Samoa","Andora","Angola","Anguila","Antarktika","Antigua i Barbuda","Argentina","Armenija","Aruba","Australija","Austrija","Azerbajdžan","Bahami","Bahrein","Bangladeš","Barbados","Bjelorusija","Belgija","Belize","Benin","Bermuda","Butan","Bolivija","Bonaire","Bosna i Hercegovina","Bocvana","Otok Bouvet","Brazil","Bruneji","Bugarska","Burikina Faso","Burundi","Kambodža","Kameron","Kanada","Zelenortska Republika","Kajmanski Otoci","Srednjoafrička Republika","Čad","Čile","Kina","Božićni Otoci","Keeling Otoci","Kolumbija","Komori","Kongo","Demokratska Republika Kongo","Cookovi Otoci","Kostarika","Hrvatska","Kuba","Curacao","Cipar","Češka","Obala Bjelokosti","Danska","Džibuti","Dominika","Dominikanska Republika","Ekvador","Egipat","Salvador","Ekvatorijalna Gvineja","Eritreja","Estonija","Etiopija","Falkandski Otoci","Farski Otoci","Fidži","Finska","Francuska","Francuska Gvajana","Francuska Polinezija","Južni Francuski Teritoriji","Gabon","Gambija","Gruzija","Njemačka","Gana","Gibraltar","Grčka","Grenland","Grenada","Guadelupe","Guam","Guatemala","Guernsey","Gvineja","Gvineja Bisau","Gvajana","Haiti","Otok Heard i McDonald Otoci","Vatikan","Honduras","Hong Kong","Mađarska","Island","Indija","Indonezija","Iran","Irak","Irska","Isle of Man","Izrael","Italija","Jamajka","Japan","Jersey","Jordan","Kazahstan","Kenija","Kiribati","DNR Koreja","Rebublika Koreja","Kuvajt","Krigistan","Laos","Latvija","Libanon","Lesoto","Liberija","Libija","Lihtenštajn","Litva","Luksmburg","Makao","Makedonija","Madagaskar","Malavi","Malezija","Maldivi","Mali","Malta","Maršalovi","Martinik","Mauritanija","Mauricius","Mayotte","Meksiko","Mikronezija","Moldavija","Monako","Mongolija","Crna Gora","Monteserat","Maroko","Mozambik","Mjanmar","Namibija","Nauru","Nepal","Nizozemska","Nova Kaledonija","Novi Zeland","Nikaragva","Niger","Nigerija","Niue","Norfolk","Sjeverni Marijanski Otoci","Norveška","Oman","Pakistan","Palau","Palestina","Panama","Papua Nova Gvineja","Paragvaj","Peur","Filipini","Pitcairn","Poljska","Protugal","Portoriko","Katar","Rumunjska","Ruska Federacija","Ruanda","Reunion","Sveti Bartolomej","Sveta Helena","Sveti Kitts i Nevis","Sveta Lucija","Sveti Martin (fr.dio)","Sveti Petar i Miquelon","Sveti Vincent i Grenadini","Samoa","San Marino","Sveti Toma i Princip","Saudijska Arabija","Senegal","Srbija","Sejšeli","Siera Leone","Singapur","Sveti Martin (niz.dio)","Slovačka","Slovenija","Salomoski Otoci","Somalija","Južna Afrika","Južna Georgia i južni Sandwich","Južni Sudan","Španjolska","Šri Lanka","Sudan","Surinam","Svalvard i Jan Mayen","Swaziland","Švedska","Švicarska","Sirija","Tajvan","Tadžikistan","Tanaznija","Tajland","Istočni Timor","Togo","Tokelau","Tonga","Trinidad i Tobago","Tunis","Turska","Turkmenistan","Otoci Turks i Caicos","Tuvalu","Uganda","Ukrajina","Ujedinjeni Arapski Emirati ","Ujedinjeno Kraljevstvo","Sjedinjenje Američke Države","Urugvaj","Uzbekistan","Vanuatu","Venezuela","Vietnam","Britanski Djevičanski Otoci","Američki Djevičanski Otoci","Wallis i Futuna","Zapadna Sahara","Jemen","Zambija","Zimbabve"]})(ikn);var H$a=ikn.exports,akn={exports:{}};(function(t){t.exports=["#","##","###"]})(akn);var U$a=akn.exports,okn={exports:{}};(function(t){t.exports=["Kat #","Stan ##"]})(okn);var z$a=okn.exports,skn={exports:{}};(function(t){t.exports=["#####"]})(skn);var G$a=skn.exports,lkn={exports:{}};(function(t){t.exports=["Pacifik/Midway","Pacifik/Pago_Pago","Pacifik/Honolulu","Amerika/Juneau","Amerika/Los_Angeles","Amerika/Tijuana","Amerika/Denver","Amerika/Phoenix","Amerika/Chihuahua","Amerika/Mazatlan","Amerika/Chicago","Amerika/Regina","Amerika/Mexico_City","Amerika/Monterrey","Amerika/Guatemala","Amerika/New_York","Amerika/Indiana/Indianapolis","Amerika/Bogota","Amerika/Lima","Amerika/Lima","Amerika/Halifax","Amerika/Caracas","Amerika/La_Paz","Amerika/Santiago","Amerika/St_Johns","Amerika/Sao_Paulo","Amerika/Argentina/Buenos_Aires","Amerika/Guyana","Amerika/Godthab","Atlantik/South_Georgia","Atlantik/Azori","Atlantik/Cape_Verde","Europa/Dublin","Europa/London","Europa/Lisbon","Europa/London","Africa/Casablanca","Africa/Monrovia","Etc/UTC","Europa/Beograd","Europa/Bratislava","Europa/Budapest","Europa/Ljubljana","Europa/Prague","Europa/Sarajevo","Europa/Skopje","Europa/Varšava","Europa/Zagreb","Europa/Brussels","Europa/Copenhagen","Europa/Madrid","Europa/Paris","Europa/Amsterdam","Europa/Berlin","Europa/Rim","Europa/Stockholm","Europa/Beč","Africa/Alžir","Europa/Bukurešt","Africa/Kairo","Europa/Helsinki","Europa/Kiev","Europa/Riga","Europa/Sofia","Europa/Tallinn","Europa/Vilnius","Europa/Atena","Europa/Istanbul","Europa/Minsk","Azija/Jeruzalem","Africa/Harare","Africa/Johannesburg","Europa/Moskva","Azija/Kuwait","Azija/Riyadh","Africa/Nairobi","Azija/Baghdad","Azija/Tehran","Azija/Muscat","Azija/Baku","Azija/Tbilisi","Azija/Yerevan","Azija/Kabul","Azija/Yekaterinburg","Azija/Karachi","Azija/Tashkent","Azija/Kolkata","Azija/Kathmandu","Azija/Dhaka","Azija/Colombo","Azija/Almaty","Azija/Novosibirsk","Azija/Rangoon","Azija/Bangkok","Azija/Jakarta","Azija/Krasnoyarsk","Azija/Shanghai","Azija/Chongqing","Azija/Hong_Kong","Azija/Urumqi","Azija/Kuala_Lumpur","Azija/Singapore","Azija/Taipei","Australia/Perth","Azija/Irkutsk","Azija/Ulaanbaatar","Azija/Seoul","Azija/Tokyo","Azija/Yakutsk","Australia/Darwin","Australia/Adelaide","Australia/Melbourne","Australia/Sydney","Australia/Brisbane","Australia/Hobart","Azija/Vladivostok","Pacifik/Guam","Pacifik/Port_Moresby","Azija/Magadan","Pacifik/Noumea","Pacifik/Fiji","Azija/Kamchatka","Pacifik/Majuro","Pacifik/Auckland","Pacifik/Tongatapu","Pacifik/Fakaofo","Pacifik/Apia"]})(lkn);var V$a=lkn.exports,ckn={exports:{}};(function(t){t.exports=["Bakar","Beli Manastir","Belišće","Benkovac","Biograd na Moru","Bjelovar","Buje","Buzet","Čabar","Čakovec","Čazma","Cres","Crikvenica","Daruvar","Delnice","Donja Stubica","Donji Miholjac","Drniš","Dubrovnik","Duga Resa","Dugo Selo","Đakovo","Đurđevac","Garešnica","Glina","Gospić","Grubišno Polje","Hrvatska Kostajnica","Hvar","Ilok","Imotski","Ivanec","Ivanić-Grad","Jastrebarsko","Karlovac","Kastav","Kaštela","Klanjec","Knin","Komiža","Koprivnica","Korčula","Kraljevica","Krapina","Križevci","Krk","Kutina","Kutjevo","Labin","Lepoglava","Lipik","Ludbreg","Makarska","Mali Lošinj","Metković","Mursko Središce","Našice","Nin","Nova Gradiška","Novalja","Novi Marof","Novi Vinodolski","Novigrad-Cittanova","Novska","Obrovac","Ogulin","Omiš","Opatija","Opuzen","Orahovica","Oroslavje","Osijek","Otočac","Otok","Ozalj","Pag","Pakrac","Pazin","Petrinja","Pleternica","Ploče","Popovača","Poreč","Požega","Pregrada","Prelog","Pula","Rab","Rijeka","Rovinj","Samobor","Senj","Šibenik","Sinj","Sisak","Skradin","Slatina","Slavonski Brod","Slunj","Solin","Split","Stari Grad","Supetar","Sveta Nedelja","Sveti Ivan Zelina","Trilj","Trogir","Umag","Valpovo","Varaždin","Varaždinske Toplice","Velika Gorica","Vinkovci","Virovitica","Vis","Vodice","Vodnjan","Vrbovec","Vrbovsko","Vrgorac","Vrlika","Vukovar","Zabok","Zadar","Zagreb","Zaprešic","Zlatar","Županja"]})(ckn);var K$a=ckn.exports,ukn={exports:{}};(function(t){t.exports=["#{city_name}"]})(ukn);var W$a=ukn.exports,dkn={exports:{}};(function(t){t.exports=["Adolfa Waldingera","Alanska","Aljmaška","Andrije Hebranga","Andrije Kačića Miošića","Andrije Mohorovičića","Ante Paradžika","Antuna Branka Šimića","Antuna Kanižlića","Antuna Mihanovića","Antunovačka","Bakarska","Banjalučka","Banova","Bapska","Baranjska","Bartula Kašića","Bartula Kašića","Baščanska","Bele Bartoka","Belišćanska","Belomanastirska","Bihaćka","Bilogorska","Biogradska","Biokovska","Biševska","Bjelolasička","Bjelovarska","Bogdanovačka","Bokokotorska","Bosanska","Bračka","Branka Radičevića","Brijunska","Brodska","Brune Bjelinskog","Buzetska","Cara Hadrijana","Cara Hadrijana","Ćelijska","Christiana Monspergera","Ćićarijska","Ciglarska","Creska","Crikvenička","Crkvena","Cvjetkova","Cvjetna","Čvrsnička","Đakovačka","Đakovština","Daljska","Dalmatinska","Danice Pinterović","Daruvarska","Delnička","Diljska","Dinka Šimunovića","Dobriše Cesarića","Donjodravska obala","Dragutina Domjanića","Dragutina Neumana","Drniška","Dubrovačka","Dugog otoka","Erdutska","Esperantska","Eugena Kumičića","Europska avenija","Europska avenija","Fakultetska","Ferde Livadića","Franje Antuna Blažića","Franje Krežme","Franje Kuhača","Franje Markovića","Franje Muckea","Franjevačka","Frankopanska","Fruškogorska","Gluha","Gorička","Gornjodravska obala","Gospićka","Gradačka","Grgura Čevapovića","Hercegovačka","Hrvatske Republike","Huge Conrada Hötzendorfa","Humska","Hvarska","Ilirska","Imotska","Istarska","Ivana Adamovića","Ivana Gorana Kovačića","Ivana Gundulića","Ivana Zajca","Ivane Brlić- Mažuranić","Ivanovačka","Ivanščice","Ive Tijardovića","Izidora Kršnjavoga","Jahorinska","Jankovačka","Josipa Andrića","Josipa Bösendorfera","Josipa Huttlera","Josipa Jurja Strossmayera","Josipa Reihl Kira","Jovana Gojkovića","Južno predgrađe","Kalnička","Kamila Firingera","Kapelska","Kaptolska","Kapucinska","Kardinala Alojzija Stepinca","Kardinala Alozija Stepinca","Kaštelanska","Klanac","Kneza Borne","Kneza Trpimira","Kneza Trpimira","Kninska","Kolodvorska","Kopačevska","Koprivnička","Korčulanska","Kordunska","Kornatska","Kozjačka","Krajna","Kralja Petra Svačića","Kralja Zvonimira","Krčka","Križevačka","Krndije","Krstova","Ksavera Šandora Gjalskog","Kutinska","Kvarnerska","Labinska","Lađarska","Laslovačka","Lastovska","Lavoslava Ružičke","Ledine","Lička","Lipička","Livadska","Ljubljanska","Ljudevita Posavskog","Lokrumska","Lopudska","Lorenza Jägera","Lošinjska","Lovranska","Lučki prilaz","Lugovi","Maceljska","Makarska","Marijana Lanosovića","Marjanska","Martina Divalta","Matije Antuna Reljkovića","Matije Gupca","Matije Petra Katančića","Medulinska","Miholjačka","Mije Kišpatića","Milutina Milankovića","Mlinska","Mljetska","Moslavačka","Mosorska","Mostarska","Motovunska","Murterska","Naselje Antuna Gustava Matoša","Naselje Miroslava Krleže","Naselje Stanka Vraza","Naselje Viševica","Naselje Vladimira Nazora","Našička","Našičko naselje","Nemetin","Nikole Šubića Zrinskog","Novogradiška","Nuštarska","Olibska","Olimpije","Opatijska","Orahovička","Orebićka","Otokara Keršovanija","Paklenička","Pakračka","Palagruška","Palićka","Pampas","Papuk gore","Park kneza Branimira","Park kralja Petra Krešimira IV","Park kraljice Katarine Kosača","Paška","Pašmanska","Pavla Pejačevića","Pazinska","Pelješačka","Perivoj kralja Tomislava","Peručka","Piranska","Platačka","Pleternička","Plitvička","Plješevička","Podgoračka","Podravska","Podvinje","Poljski put I","Porečka","Požeška","Prenjska","Prijedorska","Primorska","Prolaz Ante Slavičeka","Prolaz Carla Bende","Prolaz Josipa Leovića","Prolaz Julija Benešića","Prolaz Julija Knifera","Prolaz kod Snježne Gospe","Prolaz Lorenza Jägera","Prolaz Matice Hrvatske","Prolaz Radoslava Bačića","Prolaz Vanje Radauša","Prominska","Psunjska","Pulska","Rapska","Rastanci","Reisnerova","Reisnerova","Retfala nova","Ribarska","Riječka","Risnjačka","Rovinjska","Ruđera Boškovića","Ružina","Šamačka","Šandora Petofia","Sarajevska","Šarengradska","Sarvaška","Senjska","Šetalište kardinala Franje Šepera","Šetalište kardinala Franje Šepera","Šetalište Petra Preradovića","Šetalište Vjekoslava Hengla","Šibenska","Silvija Strahimira Kranjčevića","Širokobriješka","Sisačka","Sjenjak","Školska","Skopska","Slatinska","Slavonska","Slaz","Šlep u luci","Sljemenska","Snježnička","Šokačka","Solarski trg","Šoltanska","Splavarska","Splitska","Srijemska","Stadionsko naselje","Starigradska","Štitarska","Stjepana Radića","Stonska","Strma","Subotička","Šumska","Sunčana","Sv. Ane","Sv. Petka","Sv. Roka","Svetog Leopolda Bogdana Mandića","Svilajska","Tadije Smičiklasa","Tina Ujevića","Tovarnička","Travna","Trg Ante Starčevića","Trg Augusta Šenoe","Trg bana Josipa Jelačića","Trg Franje baruna Trenka","Trg hrvatskih branitelja","Trg Josifa Runjanina","Trg Jurja Križanića","Trg Lava Mirskog","Trg Lavoslava Ružičke","Trg Ljudevita Gaja","Trg Nikole Tesle","Trg Pape Ivana Pavla II","Trg slobode","Trg sv. Trojstva","Trg Vatroslava Lisinskog","Trogirska","Trpanjska","Tvornička","Učka","Ugljanska","Umaška","Valpovačka","Varaždinska","Vatrogasna","Vatroslava Jagića","Velaluška","Velebitska","Vidove gore","Vijenac Augusta Cesarca","Vijenac Dinare","Vijenac Gorana Zobundžije","Vijenac Ivana Česmičkog","Vijenac Ivana Mažuranića","Vijenac Ivana Meštrovića","Vijenac Jakova Gotovca","Vijenac Josipa Kozarca","Vijenac Ljube Babića","Vijenac Medvednice","Vijenac Murse","Vijenac Paje Kolarića","Vijenac Petrove gore","Vijenac Slavka Kolara","Vijenac Vlahe Bukovca","Vilajska","Vinkovačka cesta","Vinogradska","Virovitička","Virska","Viška","Vjekoslava Klaića","Vjenceslava Novaka","Vladimira Preloga","Vladimira Vidrića","Vlašićka","Voćarska","Voćarska ","Voćinska","Vodenička","Vranska","Vratnička","Vrbik","Vrt Jagode Truhelke","Vrtna","Vukovarska cesta","Vukovarska cesta","Woodrowa Wilsona","Zadarska","Zagorska","Zagrebačka","Zaostroška","Zeleno polje","Zlarinska","Zrinjevac","Zrinske gore","Žumberačka","Županijska","Zvečevska"]})(dkn);var Q$a=dkn.exports,hkn={exports:{}};(function(t){t.exports=["#{street}"]})(hkn);var q$a=hkn.exports,fkn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(fkn);var Y$a=fkn.exports,pkn={exports:{}};(function(t){t.exports=["Hrvatska"]})(pkn);var J$a=pkn.exports;(function(t){var e={};t.exports=e,e.country=H$a,e.building_number=U$a,e.secondary_address=z$a,e.postcode=G$a,e.time_zone=V$a,e.city_name=K$a,e.city=W$a,e.street=Q$a,e.street_name=q$a,e.street_address=Y$a,e.default_country=J$a})(rkn);var Z$a=rkn.exports,mkn={exports:{}},gkn={exports:{}};(function(t){t.exports=["gmail.com","hrnet.hr","mailhr.hr"]})(gkn);var X$a=gkn.exports,vkn={exports:{}};(function(t){t.exports=["hr","com","net","eu","org"]})(vkn);var e7a=vkn.exports;(function(t){var e={};t.exports=e,e.free_email=X$a,e.domain_suffix=e7a})(mkn);var t7a=mkn.exports,Akn={exports:{}},ykn={exports:{}};(function(t){t.exports=["Adi","Ado","Andel","Andelin","Andelko","Andelo","Andi","Andras","Andrej","Andrija","Andro","Anko","Ante","Antek","Antonin","Antonio","Antun","Bela","Belimir","Berti","Boris","Borko","Borna","Božidar","Branimir","Bruno","Časlav","Dado","Damil","Damir","Danijel","Dario","Darko","David","Davor","Davorin","Domagoj","Donat","Dražen","Držimir","Držislav","Dubravko","Duje","Dujo","Emil","Emilijan","Erik","Fabijan","Filip","Franjo","Gaj","Gašpar","Goran","Gordan","Gradimir","Grga","Grgo","Grgur","Gvozden","Hrvoj","Hrvoje","Ico","Igor","Ilija","Ilko","Ino","Ivan","Ive","Ivek","Ivica","Ivo","Jadran","Jadranko","Jadro","Jakov","Jan","Janko","Jasen","Jasenko","Josip","Joško","Joso","Joža","Jože","Krešimir","Kristijan","Kruno","Krunoslav","Ladislav","Ljudevit","Lucijan","Luka","Marin","Marko","Martin","Matan","Mate","Matej","Matija","Matko","Mato","Mihael","Milan","Mile","Milivoj","Miljenko","Mimo","Miran","Mirko","Miro","Mislav","Mladen","Nedjeljko","Neven","Nikola","Nino","Ozren","Pavel","Pepo","Pero","Petar","Pravdan","Rino","Robert","Roberto","Robi","Roko","Sanjin","Saša","Slavek","Slaven","Slavko","Srećko","Stanko","Štef","Stipan","Stipe","Stjepan","Stribor","Svebor","Tihomir","Toma","Tome","Tomislav","Tomo","Tonči","Tone","Toni","Tonko","Trpimir","Trpko","Tvrtko","Valentin","Vanja","Vatroslav","Vedran","Velimir","Vijeko","Vjekoslav","Vjenceslav","Vladek","Vladislav","Vlado","Vlatko","Zdenko","Zdravko","Željko","Zoltan","Zrinislav","Zrinko","Zvonimir"]})(ykn);var n7a=ykn.exports,bkn={exports:{}};(function(t){t.exports=["Ada","Adina","Adriana","Adrijana","Agata","Alemka","Alenka","Alisa","Alka","Alma","Amalija","Ana","Ančica","Anamarija","Anastazija","Anci","Anči","Ancica","Anda","Anđela","Anđelika","Anđelina","Andi","Andrea","Andreja","Andrina","Anesa","Aneta","Ani","Anica","Anja","Anka","Antea","Antonija","Asija","Asja","Bara","Barbara","Barica","Beata","Bela","Biserka","Borka","Borna","Božena","Božica","Branimira","Branka","Brankica","Brigita","Dada","Dagmar","Dalibora","Daliborka","Danica","Danijela","Danka","Dara","Darinka","Dea","Ðina","Dona","Donka","Dora","Dorana","Dorica","Draga","Ela","Eli","Elka","Evelin","Ina","Inga","Inge","Inja","Inka","Ita","Iva","Ivančica","Ivanka","Ivica","Ivna","Jagica","Jana","Janica","Janka","Jasna","Jela","Jelica","Ješa","Kata","Kate","Katica","Katija","Katina","Kika","Lara","Laura","Lea","Lela","Lena","Leona","Lola","Maca","Magda","Maja","Majda","Manda","Mara","Mare","Marena","Marica","Marta","Maša","Mica","Mika","Mila","Milica","Milka","Mima","Mina","Mira","Mirka","Naja","Nana","Natalija","Nataša","Natka","Neda","Nela","Neli","Nena","Nera","Nesa","Neva","Nevenka","Nina","Nuša","Paulina","Pava","Pave","Pavica","Rajna","Rija","Rina","Ružica","Staša","Tasa","Teja","Tija","Tijana","Tina","Tončica","Tonija","Tonka","Vala","Valera","Vali","Vela","Velana","Velina","Vera","Verica","Vinka","Zlatica","Zlatka","Darija","Darina","Divna","Donata","Doroteja","Dragica","Dubravka","Dunja","Ðurda","Edita","Elena","Ema","Eva","Gabrijela","Goranka","Gordana","Grozdana","Helena","Hrvojka","Ira","Irena","Irma","Ivana","Jadranka","Jaga","Jasmina","Josipa","Karmela","Katarina","Kristina","Leda","Leonida","Lidija","Ljiljana","Ljubica","Lovorka","Lucija","Magdalena","Marija","Marijana","Marina","Martina","Miranda","Mirna","Monika","Nada","Nadalina","Nedjeljka","Nevena","Nora","Paula","Petra","Renata","Romana","Rosana","Ruža","Sanja","Silvija","Slavica","Snježana","Tereza","Tomislava","Valentina","Valerija","Vedrana","Velimira","Veronika","Vesna","Vladimira","Zdenka","Zdeslava","Zlata","Adi","Ado","Andel","Andelin","Andelko","Andelo","Andi","Andras","Andrej","Andrija","Andro","Anko","Ante","Antek","Antonin","Antonio","Antun","Bela","Belimir","Berti","Boris","Borko","Borna","Božidar","Branimir","Bruno","Časlav","Dado","Damil","Damir","Danijel","Dario","Darko","David","Davor","Davorin","Domagoj","Donat","Dražen","Držimir","Držislav","Dubravko","Duje","Dujo","Emil","Emilijan","Erik","Fabijan","Filip","Franjo","Gaj","Gašpar","Goran","Gordan","Gradimir","Grga","Grgo","Grgur","Gvozden","Hrvoj","Hrvoje","Ico","Igor","Ilija","Ilko","Ino","Ivan","Ive","Ivek","Ivica","Ivo","Jadran","Jadranko","Jadro","Jakov","Jan","Janko","Jasen","Jasenko","Josip","Joško","Joso","Joža","Jože","Krešimir","Kristijan","Kruno","Krunoslav","Ladislav","Ljudevit","Lucijan","Luka","Marin","Marko","Martin","Matan","Mate","Matej","Matija","Matko","Mato","Mihael","Milan","Mile","Milivoj","Miljenko","Mimo","Miran","Mirko","Miro","Mislav","Mladen","Nedjeljko","Neven","Nikola","Nino","Ozren","Pavel","Pepo","Pero","Petar","Pravdan","Rino","Robert","Roberto","Robi","Roko","Sanjin","Saša","Slavek","Slaven","Slavko","Srećko","Stanko","Štef","Stipan","Stipe","Stjepan","Stribor","Svebor","Tihomir","Toma","Tome","Tomislav","Tomo","Tonči","Tone","Toni","Tonko","Trpimir","Trpko","Tvrtko","Valentin","Vanja","Vatroslav","Vedran","Velimir","Vijeko","Vjekoslav","Vjenceslav","Vladek","Vladislav","Vlado","Vlatko","Zdenko","Zdravko","Željko","Zoltan","Zrinislav","Zrinko","Zvonimir"]})(bkn);var r7a=bkn.exports,xkn={exports:{}};(function(t){t.exports=["Ada","Adina","Adriana","Adrijana","Agata","Alemka","Alenka","Alisa","Alka","Alma","Amalija","Ana","Ančica","Anamarija","Anastazija","Anci","Anči","Ancica","Anda","Anđela","Anđelika","Anđelina","Andi","Andrea","Andreja","Andrina","Anesa","Aneta","Ani","Anica","Anja","Anka","Antea","Antonija","Asija","Asja","Bara","Barbara","Barica","Beata","Bela","Biserka","Borka","Borna","Božena","Božica","Branimira","Branka","Brankica","Brigita","Dada","Dagmar","Dalibora","Daliborka","Danica","Danijela","Danka","Dara","Darinka","Dea","Ðina","Dona","Donka","Dora","Dorana","Dorica","Draga","Ela","Eli","Elka","Evelin","Ina","Inga","Inge","Inja","Inka","Ita","Iva","Ivančica","Ivanka","Ivica","Ivna","Jagica","Jana","Janica","Janka","Jasna","Jela","Jelica","Ješa","Kata","Kate","Katica","Katija","Katina","Kika","Lara","Laura","Lea","Lela","Lena","Leona","Lola","Maca","Magda","Maja","Majda","Manda","Mara","Mare","Marena","Marica","Marta","Maša","Mica","Mika","Mila","Milica","Milka","Mima","Mina","Mira","Mirka","Naja","Nana","Natalija","Nataša","Natka","Neda","Nela","Neli","Nena","Nera","Nesa","Neva","Nevenka","Nina","Nuša","Paulina","Pava","Pave","Pavica","Rajna","Rija","Rina","Ružica","Staša","Tasa","Teja","Tija","Tijana","Tina","Tončica","Tonija","Tonka","Vala","Valera","Vali","Vela","Velana","Velina","Vera","Verica","Vinka","Zlatica","Zlatka","Darija","Darina","Divna","Donata","Doroteja","Dragica","Dubravka","Dunja","Ðurda","Edita","Elena","Ema","Eva","Gabrijela","Goranka","Gordana","Grozdana","Helena","Hrvojka","Ira","Irena","Irma","Ivana","Jadranka","Jaga","Jasmina","Josipa","Karmela","Katarina","Kristina","Leda","Leonida","Lidija","Ljiljana","Ljubica","Lovorka","Lucija","Magdalena","Marija","Marijana","Marina","Martina","Miranda","Mirna","Monika","Nada","Nadalina","Nedjeljka","Nevena","Nora","Paula","Petra","Renata","Romana","Rosana","Ruža","Sanja","Silvija","Slavica","Snježana","Tereza","Tomislava","Valentina","Valerija","Vedrana","Velimira","Veronika","Vesna","Vladimira","Zdenka","Zdeslava","Zlata"]})(xkn);var i7a=xkn.exports,Ekn={exports:{}};(function(t){t.exports=["Abadžić","Abadžija","Abazi","Abdulahi","Abdulić","Abdurahmanović","Abebe","Abel","Abfal","Abičić","Abičić-Tomac","Abjanić","Abjanović","Abrahamski","Abramić","Abramović","Abrecht","Abrić","Abrišin","Abrlić","Abu El Saoud","Ackermann","Ač","Ačai","Ačaji","Ačanski","Ačić","Ačimović","Ačkar","Aćimov","Aćimović","Adam","Adam Perl","Adamček","Adamčević","Adamec","Adamić","Adamko","Adamović","Adašević","Adelsberger","Ademi","Ademović","Adjić","Adjulović","Adler","Adlešić","Ador","Adrić","Adžaga","Adžaip","Adžamić","Adžić","Adžidović","Adžija","Adžijević","Ađaip","Ađajip","Ađamić","Ađanski","Ađić","Ađin","Ađulović","Afrić","Ag","Agami","Agatić","Agbaba","Ageljić","Agh","Agičić","Agić","Agoč","Agostini","Agotić","Agović","Ahić","Ahmedbašić","Ahmetbašić","Ahmeti","Ahmetović","Ahmetspahić","Ahmić","Ajdari","Ajdišek","Ajdovac","Ajduk","Ajduković","Ajfrid","Ajh","Ajhart","Ajhenberger","Ajhinberger","Ajhinger","Ajhler","Ajhner","Ajhorn","Ajkić","Ajro","Ajtlbez","Ajtman","Ajzele","Ajzeli","Akerman","Akik","Akmadžić","Akrap","Aksentijević","Akšamović","AkšamovićAndrić","Al Khamis","Al Laham","Al Younis","Alaber","Alaber Milić","Aladenić","Aladić","AladićLjubišić","Aladrović","Aladžić","Alagić","Alaica","Alaica Vlasalija","Alajbeg","Alajica","Alapović","Alavanja","Alavuk","Alberković","Albert","Albini","Albrecht","Albreht","Albreht Mihaljević","Alduk","Alebić","Alegić","Aleksa","Aleksandrov","Aleksi","Aleksić","Aleksin","Alempić","Alerić","Alfeldi","Alfermann","Alfort","Alibašić","Alibegović","AlibegovićVašanda","Aličić","Alić","AlićPartić","Alidi","Alih","Alija","Alikavazović","Alili","Alilović","Alimanović","Alimehaj","Alimović","Aliti","Alkaz","Alkhamis","Alković","Almadi","Almaši","Alošinac","Alpeza","Alšić","AlšićMatković","Alt","Alt Higeli","Altmann","Aluga","Alukić","Alvadj","Alvadžić","Alvađ","Aljija","Aman","Aman Krnjajić","Amanović","Ambreuš","Ambrinac","Ambroš","Ambrozić","Ambrožić","Ambruš","Ambrušić","Ambruž","Ament","Ameti","Amić","Amidžić","Amiti","Amrein","Amst","Amšlinger","Anastasović","Ancić","Ančić","Andabak","Andabak Fernandez","Andabaka","Andačić","Andel","Andelfinger","Andelić","Anderluch","Andić","Andjal","Andl","Andoči","Andonovski","Andračenko","Andračić","Andraković","Andraković Štefanac","Andraš","Andrašec","Andrašek","Andrašev","Andrašević","Andraši","Andrašić","Andrašić Živalj","Andrečenko","Andrejek","Andrejev","Andrejević","Andreković","Andres","Andri","Andričević","Andričić","Andrić","Andrić Blažević","Andrić Karavidić","Andrić Knežević","Andrić Tomašević","Andrijanić","Andrijašević","Andrijević","Andrijin","Andrik","Andrin","Andrišek","Andrišić","Andriška","Andrlon","Andročec","Androić","Androjić","Androš","Androšević","Androšević Plevnik","Andrušić","Andučić","Andžaković","Anđal","Anđan","Anđel","Anđelić","Anđelković","Anđić","Anđić Grubešić","Anetić","Angalt","Angebrandt","Angirević","Angster","Aničić","Aničić Viviora","Anić","AnićČabai","AnićIvičić","AnićKaliger","AnićTot","Anitić","Anlauf-Raizner","Anočić","Anočić Valentić","Antal","Antal-Meničanin","Antalašić","Antaruk","Antičević","Antić","Antinac","Antolašić","Antolić","Antolković","Antolović","Antoljak","Anton","Antoni","Antonić","Antonijević","Antonina","Antoniutti","Antonović","Antoš","Antrit","Antukić","Antunić","Antunković","Antunov","Antunović","Anušić","Apalović","Apari","Apati","Apatić","Apčag","Apel","Apro","Arab","Arabadžić","Arabašić","Arači","Aračić","Aralica","Arambašić","Aranbašić","Aranđelović","Arap","Arapović","Arbanas","Arbutina","Arc","Ardalić","Arežina","Arhanić","Arić","Arlavi","Arlov","Arlović","Arman","Armbrust","Arnaut","Arnautović","Arnold","Arnuš","Arpaši","Arsenić","Arsenović","Arsić","Arsov","Arsoy","Artić","Artuković","Aručaj","Arvaj","Arvanitakos","Arz","Arzenšek","Asan","Asanov","Asanović","Asentić","Asić","Askočenski","Aslanidis","Astaloš","Asztalos","Ašađanin","Aščić","AščićLuketina","Ašenbrener","Ašimi","Ašner","Ašner-Boli","Ašperger","Ašvanj","Ašvanji","Atalić","Atanacković","Atanasovski","Atlagić","Atlašević","Atlija","Atmadžić","Atvalić","Aubelj","Aubrecht","Aubreht","Augustić","Augustin","Augustinov","Augustinović","Augustinović Baronji","Auguštanec","Auguštin","Ausec","Ausman","Ausmann","Aust","Aušperger","Avdagić","Avdaković","Avdejev","Avdičević","Avdić","Avdija","Avi","Avlijaš","Avramek","Avramoski","Avramović","Avrelio","Avsec","Axmann","Azap","Azapović","Azaševac","Azenić","Azenić Mikulić","Azinić","Azinović","Aziri","Aždajić","Ažić","AžićVargaš","Babac","Babaj","Babaja","Babajić","Baban","Babatz","Babel","Babi","Babičković","Babić","BabićKrižić","Babić Matovinović","Babić Romić","Babić Štern","Babijanski","Babin","Babli","Babli Šandor","Babočai","Babogredac","Babok","Baborac","Baboselac","Baboš","Babović","Babunović","Baburić","Bacalo","Bacanović","Bacelj","Bach","Bachert","Bachmann","Bacho","Backo","Bač","Bača","Bačak","Bačani","Bačarko","Baček","Bačelić","Bačelić Medić","Bačić","Bačić Panić","Bačinski","Bačko","Bačkonja","Bačković","Bačlija","Bačmaga","Bačun","Bačvanin","Bačvanin-Balog","Baćak","Baćani","Baći","Baćin","Baćinac","Badanjak","Badanjek","Bader","Badinsky","Badjuk","Badnjević","Badovinac","Badovinac-Golinac","Badurina","Badža","Badžek","Bađari","Bađun","Bagarić","Bagarić Barišić","Bagić","Baginac","Baglama","Bago","Bagudić","Bahat","Bahert","Bahmajer","Bahmet","Bahović","Bahun","Baić","Bainhart","Bajac","Bajak","Bajakić","Bajalo","Bajamić","Bajan","Bajčetić","Bajči","Bajčinovci","Bajer","Bajer-Vitner","Bajerle","Bajević","Bajhard","Bajhardt","Bajhart","Bajić","Bajinac","Bajkovec","Bajović","Bajraktarević","Bajraktari","Bajram","Bajrami","Bajramović","Bajrektarević","Bajrić","Bajs","Bajs-Jovanović","Bajsić","Bajsman","Bajt","Bajtal","Bajtl","Bajto","Bajus","Bajušić","Bajz","Bak","Baka","Bakač","Bakai","Bakaj","Bakaran","Bakarec","Bakarić","Baketa","Baketarić","Baki","Bakić","Bakija","Baklaić","Bako","Bakoš","Bakota","Baković","Baković Kanižaj","Bakran","Baksa","Baksa-Aćimović","Bakša","Bakula","Bakunić","Bala","Balaban","Balabanić","Balač","Balać","Balai","Balaić","Balaj","Balajić","Balaković","Balanže","Balas","Balaš","Balašević","Balaško","Balašković","Balat","Balatinac","Balaton","Balaž","Balažev","Balažević","Balaži","Balažić","Balažinec","Balčak","Baldasari","Balekić","Balen","Balen-Domazetović","Balent","Balentić","Balentović","Baleta","Balev","Bali","Baliban","Balicki","Baličević","Balić","BalićViola","Balići","Baligač","Balihodžić","Balikić","Baliko","Balinčić","Balind","Balinović","Balint","Balkić","Balković","Balle","Baller","Balliet","Balog","BalogŠandor","Balogh","Baloković","Balonek","Balonek-Nikolić","Balošić","Balta","Balta-Koller","Baltić","Baltin","Balukčić","Baljak","Bambir","Ban","Ban-Ogrin","Bana","Banac","Banai","Banaj","Banaji","Banak","Bančević","Bančić","Banda","Bandalo","Bandić","BandićŠtimac","Bandjak","Bandl","Bando","Bandov","Bandur","Banek","Baneka","Banfi","Banfić","Bango","Baniček","Baničin","Banić","BanićJokić","Bank","Banov","Banovac","Banović","Banožić","Banja","Banjac","Banjan","Banjanac","Banjanin","Banjari","Banjeglav","Banjeglav-Polgar","Banjeglavić","Baotić","BaotićĐaković","Baraban","Baraban-Glavaš","Baraban-Jurišić","Barabaš","BarabašSeršić","Barac","Barač","Barači","Baračkov","Barać","Barać Ključanin","Barak","Baraković","Baran","Baranašić","Baranić","Baranović","Baranj","Baranja","Baranjac","Baranjec","Baranji","Barat","Barbarić","BarbarićŠehić","Barberić","Barbić","Barbir","Barbirović","Barbulović","Barčan","Barčanac","Barčić","Bardak","Bardek","Bardić","Bardy","Bare","Bareš","Barešić","Baretta","Baričak","Baričević","Baričević Moher","Baričević Nađ","Baričjak","Barić","Barićević","Barinić","Barisić","Barišić","Barišić Dugonjić","Barišić Đurić","Barišić Jaman","Barišić Joskić","Barišin","Barišin-Margaretić","Barjaktarević","Barjaktarić","Barjaktarović","Barkić","Barković","Barleković","Barlović","Barna","Barnjak","Baro","Baroka","Baronica","Baronji","Baronji-Zoltan","Barošević","Barović","Bart","Barta","Bartanić","Bartek","Bartok","Bartolac","Bartolec","Bartolić","BartolićBošnjak","Bartoloti","Bartolotti","Bartolov","Bartolović","Bartoluci","Bartoš","Bartovski","Bartowski","Bartsch","Bartula","Bartulac","Bartulić","Bartulin","Bartulović","BartulovićFranković","BartulovićIvanović","Barudžija","Barukčić","Barun","Barun-Petrović","Barunović","Barušić","Barut","Basa","Basar","Basar-Klapec","Basarić","Basić","Basrak","Bassi","Basta","Basta-Glavaš","Bastajić","Bastalić","Bastijan","Baša","Bašan","Bašek","Bašica","Bašić","BašićKljajić","BašićKunce","Baškarić","Bašnec","Baštijan","Bašura","Bašurić","Bat","Batai","Batalo","Batarilo","BatariloĆerdić","Batarilo-Ismailji","Batas","Batina","Batina-Lemund","Batina-Maksimović","Batinac","Batinić","BatinićŠantić","Batistuta","Batki","Batković","Batljan","Batnožić","Bato","Batona","Bator","Batorek","Batori","Batos","Batovanja","Batrac","Batranović","Batrenik","Batrljan","Batrnek","Batrović","Baturina","Bauer","Bauer-Jurić","Bauernfrajnd","Bauernfreund","Bauković","Baum","Bauman","Baumgartner","Baumgertner","Baumholc","Baumstark","Baus","Baus-Mucić","BausŽiga","Bausch","Bayer","Bayer-Stojanović","Bazijanac","Bazikić","Bazina","Baznik","Bazsika","Bažaj","Bažant","Baždar","Bažok","Beara","Beatović","Beck-Pavlović","Bečaj","Bečanović","Bečarević","Bečeheli-Matijašec","Bečirspahić","Bečka","Bečvardi","Bećarević","Bećvardi","Bednaić","Bednajić","Bednar","Bednjanić","Bedžula","Beđan","Begaj","Beganaj","Beganović","Begonja","Begovac","BegovićMitar","Behadžić","Beissmann","Bek-Kohajda","Bekavac","Bekavac-Dugandžić","Beketinac","Bekina","Bektaš","Bekvalac","Bela","Belac","Belačić","Beladović","Belaj","Belajac","Belajdžić","Belajević","Belak","Belan","Belančić","Belanović","Belanji","Belas","Belašić","Belavić","Belcar","Belenzada","Belina","Bellian","BellianŠčekić","Belobradić","Belobrajdić","Belovari","Belščak","Belunjak","Belvanović","Beljac","Beljak","Beljakov","Beljan","Benac","Benaček","Benak","Benaković","Benašić","BenašićPavlović","Bencak","Bencarić","Benchaim","Benčina","Benda","Bendelja","Bendra","Beneta","BenićKapraljević","BenkoĐaković","BenkotićObradović","Benkovac","Bennani","Benja","Benjak","Berač","Beraj","Berak","Beraković","Beram","Beranić","Beranović","Berda","Berdalović","Berdica","Beretovac","Berger-Mihajlović","Bergman","Bergmann","Beribak","Berka","Berke-Maričić","Berlančić","Bermanec","Bernadić","Bernardić","Bernardis","Bernatović","Bernhard","Bernhard-Zajac","Bernhardt","Bernvald","Bernwald","Beronja","Berta","Bertagnin","Bertalan","Bertalanić","Bertanjoli","Bertolan","Bervida","Besednjak","Beslema","Bestvina","Bestvina-Koller","Bešlaga","BešlićFauth","Beštijanek","Bevanda","Bevrnja","Bezik-Haric","Bezjak","Bezmarević","Bežan","Bibanović","Bicsany","Bičak","Bičanić","Bičanji","Bićan","Bićanić","Biderman","Bidlingmaier","Bigava","Biglbauer","Biglebauer","Bihar","Bijader","Bijelica","Bijuklija","Bikadi","Biketa","BikićMrazović","Bilac","Bilač","Bilać","Bilali","Bilan","Bilandžić","BilandžićVukovac","Bilandžija","Bilandžija-Peranović","Bilanđija","Bilanoska","Bilanoski","Bilanović","Bilaver","BilićMartinčević","BilićSubašić","Bilmajer","Bilogravić","Bilokapić","Bilopavlović","Biljak","Biljan","Biljanović","Biljanovski","Bingula","Bionda","Birač","Birać","Birka","Birkaš","Birkenmayer","Birnbaum","Biro-Datković","Bisaga","Bisaha","Bisatzky","Bistrica","Bistrican","Biščanić","Bišćan","Bišćanić","BiškićMerkaš","Bitanga","Bitunjac","Biuklija","Bizacki","Bizacky","Bizjak","Bizjan","Bižaca","Bjelac","Bjelajac","Bjelanović","Bjelica","BjelićFlaake","Bjelka","Bjelobaba","Bjelokapić","Bjeljac","Bježančević","Blače","Blaće","Blagajac","Blagec","Blago","Blagojević","BlagojevićDamašek","BlagojevićGulaš","Blagojevski","Blagović","BlagovićDžakić","Blagus","Blaguški","Blaha","Blanda","Blank","Blanuša","Blaščanin","Blaškić","Blaško","Blaško-Vidosavljević","Blašković","BlaškovićKokeza","Blatančić","Blatnik","Blazević","Blazi","Blažanin","Blažanović","BlažanovićMatijević","Blažej","Blažek","Blažeka","Blažeković","Blaženčić","Blaženović","Blažeski","Blažetić","Blažetin","Blažev","Blaževac","Blažević","BlaževićGaćeša","BlaževićMešter","BlaževićPoč","BlaževićPrgomet","Blaževski","Blažičević","Blažić","Blažićević","Blažina","Blažinac","Blažinčić","Blažinić","Blažinkov","Blažon","Blažoti","Bliznac","Bliznac-Jelčić","Bluha","Bobalić","Boban","Bobera","Bobeta","Bobinac","Boboćanin","Bobonja","Bobovčan","Boca","Bocka","Bockovac","Bockovac-Kunštek","Boczka","Bočanji","Bočina","Bočkai","Bočkaj","Bočkinac","Boćan","Boda","Bodakoš","Bodalec","Bodiroga","Bodražić","BodrožićDžakić","Boduljak","Bodza","Bođanac","Bogadi","Bogar","Bogataj","Bogati","Bogatić","Bogatin","Bogatirov","Bogavac","Bogdan","Bogdan-Rudeš","Bogdan-Trnka","Bogdanić","Bogdanović","Bognar","Bognar-Miletić","Bogojevac","Bogosanović","Bogosavljević","Bohaček","Bohak","Bohalj","Bojanc","Bojanić","BojanićČalić","Bojanin","Bojanović","Bojat","Boka","Bokan","Bokanović","Bokonja","Bokovac","Bolanča","Bolarić","Boldižar","Bolf-Kovačić","Bolkovac","Bolmanac","Bolmanović","Boloban","Bolot-Salaj","Bolozan","Bolta","Boltadžija","Boltađija","Bolvanac","Bolvar","Bolvari","Boljevac","Boljkovac","Bomeštar","Bonjaj","Boras","Boras-Pintar","Borbaš","Borda","Borevac","Borgudan","Borjan","Borjanić","BorojevićCrevar","Boromisa","Boroša","Borota","Borovac","Borovička","Borovićka","Borozan","Borščak","Borzan","Bosak","Bosanac","Bosanac-Balašević","Bosanac-Hummel","Bosanac-Wilhelm","Bosančić","Bosanić","Bosankić","Bosiljevac","Bosjak","Bosnar","Boščanin","Bošćak","Bošnjak","BošnjakĆirić","BošnjakĐerfi","Bošnjak-Franjo","Bošnjak-Klečina","Bošnjak-Krajšić","Bošnjak-Mikulić","Bošnjak-Pleškov","Bošnjak-Vadkerti","Bošnjaković","BošnjakovićGrgić","BošnjakovićHolik","BošnjakovićZakanji","BošnjakovićZetl","Bota","Botkuljak","Boussa","Bozalo","Bozaroski","Božac","Božak","Božanović","Božičanin","BožićErkalović","BožićKrstanović","Božićek-Panić","Božidar","Božika","BožinovićMađor","Božinovska","Božučanin","Brabec","Brač","Bračevac","Bračevac-Belaj","Bračić","BračićDevald","Bračko","Bračun","Brać","Bradač","Bradarić","BradarićKalkan","Bradašević","Bradašić","Bradek","Bradičić","Bradić","Bradvica","Bradvić","Brađašev","Brađić","Brahaj","Braić","Brainović","Brajčinović","Brajdić","Brajenović","Brajić","Brajinović","Brajko","Brajković","BrajkovićCulek","BrajkovićVican","Brajnović","Brajović","Brajtenbah","Brakić","Bralić","Bralo","Bralj","Brana","Brandafi","Brandalik","Brandeis","Brandeker","Brandibur","Brandić","Brandis","Brandt","Branežac","Branilović","Brankov","Branković","Braović","Braš","Brašnić","BrašnićAdžić","BrašnićEži","Brataljenović","Bratanović","Bratec","Bratelj","Bratić","Bratonja","Bratoš","Bratuševac","Braun","Bravić","Braz","Brazda","Brazdil","Brazzi","Brčina","Brdar","Brdarić","Brđanin","BreberićBradić","Breberina","Bredak","Breitenbach","Brekalo","Breljak","Brenđan","Breskovac","Brestovac","Breščaković","Brezak","Brezenjački","Brezinšak","Brezinščak","Brezinšćak","Brezničar","Brezovac","Brezovnjački","Brežnjak","Brijaček","Brijader","Brindza","Brinjak","Brisuda","Briševac","Brizgala","Brižan","Brkan","Brkanić","BrkanićNekić","Brkanović","BrkićBlažeković","Brkinjač","Brkljač","Brkljačić","BrkovićKrpan","Brlas","Brljačić","Brna","Brnada","Brnadić","Brnas","BrnićLevada","Brnjak","Brnjevarac","Brnjica","Brodar","Brodarac","Brodarić","Brodnjan","Brođanac","Bršadinac","Brtan","Brubnjak","Brumen-Stanojlović","Brumerček-Lukačević","Bruneta","Brunjai","Brunjai-Hihlik","Brusač","Brzaj","Brzica","Brženac","Bubalo","Bubalović","Buban","Bubanović","Bubanj","Bucalo","Bucha","Buchwald","Bucifal","Bučan","Bučanac","Bučanin","Bučanović","BučevićKeran","Bučkalović","Bućan","Bućkalović","Budač","Budai","Budaić","Budaija","Budak","Budalić","Budano","Budija","Budimac","Budimčić-Kovačević","Budimir-Bračevac","Budimir-Pacek","Budimir-Selina","Budimir-Varžić","Budimirac","Budimlija","Budiša","Budrovac","BudrovacŽivić","Budulica","Budžaki","BuđićHalas","Bugarić","Bugarin","Bugarinović","Bugarski","Buha","Buhač","Buhajčuk","Buhinjak","Buinac","Buinjac","Bujadinović","Bujak","Bujan","Bujanović","Bujda","Bujela","Bukal","Bukalo","Bukarica","BukićMilardović","Buklijaš","Bukna","Bukovac","Bukovčak","Bukta","Bukumira","Bukva","Bukvašević","Bukvica","BukvićŠpika","Bula","Bulaić","Bulaja","Bulajić","Bulaku","Bulat","Bulatović","Buletinac","Bulka","Bulka-Barišić","Buljan","Buljanović","Buljat","Buljeta","Buljubašić","BuljubašićDakić","BuljubašićKuzmanović","Bumbak","Bumbar","Bunardžija","Bunarđija","Bunarkić","Bundalo","Buneta","Bunoza","Buntak","Bunjac","Bunjaković","Bunjaku","Bunjevac","Bunjevac-Došen","Bunjevac-Milivojević","Bunjevac-Turalija","Bura","Buranji","Buratović","Burazer","Burazer-Turko","Burazin","Burazor","Burcar","Burcar-Keri","Burcsa","Burča","Burda","Burdina","Burđak","Burian","Burijan","Burivoda","Burja","Burjan","Burnać","Bursać","Burza","Busak","Busanić","Buschbacher","Buschman","Buslaver","Buša","Bušbaher","Bušbaher-Oberkirš","Bušetinčan","Bušljeta","Bušpanović","Butifar","Butina","Butinar","Butorac","Butorajac","Butraković","Butulija","Buturac","Buzadžić","Buzaši","Buzina","Buzinac","Buzjak","Bužalja","Bužančić","Bužanec","Bužanić","Bužbaher","Bužonja","Bužonja-Bodiš","Cabadaj","Cabuha","Cabunac","Cacaj","Cacciamani","Cader","Cafuk","Cafuta","Caga","Cahunek","Cajner","Cajzler","Cakić","Cako","Caktaš","Camai","Candl","Canecki","Cangajst","Cangl","Canjko","Canjko-Novak","Canjuga","Capan","Capek","Capić","Car","Carbone","Carek","Carette","Carević","Carić","Carin","Cartl","Catania","Cats","Cavrić","Cazi","CebićMarković","Cecelja","Cehmajster","Celan","Celjak","Cembauer","Cenbauer","Centa","Cepanec","Ceranić","Cerenko-Maletić","Cergnar","Ceribašić","Cerjak","Cerjan","Ceronja","Cerovac","Cerovečki-Marijić","Cesar","Cesarec","Cestar","Cetina","Cezar","Cezner-Bačić","Chadima","Cibula","Cicak","Cickai","Cickaj","Cickaji","Cicvara","Cicvarić","Cigan","Ciganek","Ciganović","Ciganjik","Cigula","Cikač","Cikoja","Cikota","Cikovac","Cimaš","Cimerman","Cimeša","Cimperšak","Cincar","Cinna","Cipan","Cipar","Ciprijanović","Ciprovac","Cirak","Ciraki","Cirbaj","Civaj","Civalj","Cmiljanić","Cmrečak","Cmrečnjak","Coha","Colarić","Colnarić","Conway","Conjar","Copak","Cota","Crepulja","Crevar","Crljenica","Crnac","Crnadak","Crnajlov","Crnčan","Crnobrnja","Crnobrnja-Bošnjak","Crnobrnja-Vincetić","Crnogaj","Crnogaj-Kozari","Crnogorac","Crnoja","Crnojevac","Crnokraka","Crnomarić","Crnomarković","Crnjac","Crnjak","Crnjaković","Crnjanović","Crnjanski","Crvenka","Csapo","Csicska","Csorba","Csordas","Cugovčan","Culek-Sudar","Culifaj","Culjak","Cunjak","Curač","Cuvaj","Cvančić","Cvelbar","Cvetanić","Cvetanović","Cvetanovski","Cvetanovski-Bundalo","Cvetičan","Cvetičanin","Cvidrak","Cvijančević","Cvijanović","Cvitan","Cvitanović","Cvitanušić","CvitkovićBocka","Cvjetićanin","Cvrtak","Cvrtila","Cvrtnjak","Czersky Hafner","Czickai","Czulan","Čabai","Čabaj","Čabaj-Adam","Čabarkapa","Čabraja","Čabrajac","Čabrić","Čabrilo","Čabro","Čačić","ČačićArapović","ČačićČasar","Čačija","Čačija-Dombik","Čačilo","Čačinović","Čačković","Čačulović","Čaće","Čaćija","Čadek","Čadeš","Čađavčan","Čađo","Čagalj","Čaglić","Čagljević","Čaić","Čajan","Čajić","Čajka","Čajko","Čajkovac","Čajkušić","Čajlaković","Čajo","Čakalić","Čakalo","Čakar","Čakardić","Čakarević","Čakarić","Čakarun","Čakić","Čaklović","Čakmak","Čakvari","Čaldarević","Čale","Čaleta","Čalić","Čališ","Čalo","ČaloČirjak","Čaloš","Čalošević","Čalović","Čalušić","Čaljkušić","ČaljkušićForgić","Čamagajevac","Čamber","Čamdžić","Čamić","Čamilović","Čampara","Čanačić","Čanadi","Čanadić","ČanadićFrelih","Čanadžija","Čanaglić","Čanak","Čanaki","Čanakin","Čančar","Čanda","Čandrlić","ČandrlićDankoš","ČandrlićFalajdžić","ČandrlićMesarić","Čango","Čanić","Čanović","Čanžar","Čanji","Čapai","Čapalija","Čapalski","Čapelj","Čapin","Čaplar","Čapo","Čapo-Milenić","Čar","Čarap","Čarapar","Čarapić","Čarapović","ČarapovićRanogajec","Čardžić","Čarnohorski","Časar","Časar-Lakatoš","Čataj","Čatalinac","Čati-Sabo","Čatić","Čatipović","Čatoš","Čatović","Čauš","Čaušević","Čaušić","Čaut","Čavajda","Čavala","Čavalić","Čavar","Čavara","Čavarović","Čavarušić","Čavčić","Čavić","Čavka","Čavka-Kakaš","Čavlek","Čavlina","Čavlović","Čavrag","Čavužić","Čečavac","Čečura","Čegar","Čehajić","Čehobašić","Čehumbašić","Čeika","Čejka","Čelan","Čelant","Čelar","Čelebija","Čeleda","ČelikovićCvidrak","Čelna","Čeljuska","Čeman","Čemerika","Čenaj","Čenan","Čendak","Čengija","Čeprnja","Čeran","Čerba","Čergar","Čeri-Varga","Čerina","Čerkašin","Černava","Černoga","Černjanski","Černjava","Čertan","Červenjak","Češljar","Češnjaj","Čevrljaković","Čibarić","Čiča","Čičak","ČičinĆapin","Čička","Čičmak","Čičovački","Čičovački-Buzatović","Čikaj","Čikara","Čikvar","Čimbora","Čimbura","Činčak","Činčurak","Činčurak-Kovač","Čipan","Čipanj","Čipanj-Banja","Čirjak","Čisar","Čitari","Čivčija","Čizmadija","Čizmar","Čizmar-Tormaš","Čizmarević","Čizmazija","Čizmešija","Čižmarević","Čižmešija","Čmarec","Čmelak","Čobanović","Čočaj","Čoćaj","Čogelja","Čohodar","Čoka","Čokaš","Čokljat","Čokonai","Čolak","Čolaković","Čolina","Čonda","ČondićBijader","Čonka","ČontošBalog","Čorak","ČorakŠebetić","Čoralić","Čorapović","Čorba","Čorda","Čordaš","Čordašev","Čordašić","Čorluka","Čortan","Čota","Čotar","Čotra","Čovran","Črešnjovnjak","Čubela","Čubra","Čučak","Čudina","Čugalj","Čugura","Čuha","Čuka","Čukalevski","Čukanec","ČukićAladrović","Čukman","Čular","Čulibrk-Walch","Čulin-Lazić","Čulina","Čuljak","Čuljat","Čupurdija","Čuraj","Čurar","Čurčija","Čurila","Čurman","Čustonja","Čutoraš","Čutura","Čuturaš","Čuturilo-Petrač","Čuvalo","Čvagić","Čvangić","Čvarak","Čvarković","Čvorak","Ćaćić","Ćaćulović","Ćajić","Ćakić","Ćale","Ćaleta","Ćalić","Ćališ","Ćalošević","Ćalušić","Ćamili","Ćano","Ćapin","Ćaran","Ćatić","ĆatićKopf","Ćavar","Ćavara","Ćavarović","Ćehajić","Ćelap","Ćemalović","Ćemalović Tompa","Ćenan","Ćeran","Ćerluka","Ćibarić","Ćika","ĆirićLitobac","Ćiško Anić","Ćoja","Ćojbašić","Ćora","Ćorak","Ćoralić","Ćoranov","Ćorda","Ćorluka","ĆosićMihaljević","ĆovićRadojčić","Ćubela","Ćuća","Ćudina","Ćulina","Ćupurdija","Ćuraj","Ćurak","Ćurčija","ĆurićBatić","Ćuruvija","Ćuti Ivanković","Dabac","Dabčević","Dabić","Dabnjak","Dabo","Dabović","Dacić","Dačić","Dadasović","Dadić","DadićFabijanić","Dado","Dafish","Dagen","Dajč","Dajčman","Dajić","Dajnek","Daka","Dakić","DakićKožić","Dako","Daković","Daku","Dalić","Dalip","Dalipi","Dalleaste","Dalmatin","Dalšašo","Damašek","Damiani","Damijanić","Damijanović","Damjanić","Damjanov","Damjanović","Damjenić","Damljanović","Damm","Dananić","Dančo","Dandić","Danenhauer","Dani","Daničić","Danić","Danilčević","Danilović","Dankić","Danko","Dankoš","Danojević","Danojlić","Danji","Darabošić","Daražac","Daraždi","Daraži","Dardai","Dardalić","Dardić","Darić","Darojković","Daskalov","Daskalova","Dasović","Dašić","Datković","Dautbegović","Dautović","David","David Tomaz","Davidović","DavidovićAmić","Davorija","Day","De Angelis","De Brabander","De Conceicao","De La Fosse","De Maio","De Marco","Deak","Dean","Deanković","Deanović","Debelak","Debelja","Debeljački","Debeljak","DebićPavlica","Degač","Degoricija","Dejak","Dejanović","Dekan","Dekanić","Dekany","Dekanj","Deklman","Dela","Delač","Delagić","DelagićKušec","Delalić","Delalle","Delaš","Delbianco","Delbijanko","Delbjanko","Delibašić","DelićBrzica","Delija","Delimar","Delizvani","Deljak","Deljak Franjo","Demetar","Demhart","Demše Plavšić","Denac","Dengoricija","Denša","Dera","Deran","Dernaj","Dernej Janković","Dernik Katalin","Desančić","Desaty","Deskar","Desnica","Despot Slade","Devald","DevčićKatić","Devernaj","Devetak","Devetak Prokeš","Dežmarić","Di Carlo","DidovićJančo","Digula","Digula Biljak","Dijak","Dijaković","Dijanić","Dijanović","Dijkgraaf Larson","Dimjašević","Dimnjašević","Dimovska","Diniz De Carvalho","Dinjar","Divac","Divald","Divić Čanić","Divjak","Divjanović","Divljaković","Dizanov","Dizdar","Dizdarević","Djak","Djak Skeledžija","Djaković","Djambo","Djanić","Djanija","Djapić","Djekanović","Dješka","Djetka","Djetvai","Djeveljekaj","Djevenica","Djomlija","Djurasek","DjurdjevićSanela","Djurita","Dlab","Dmejhal","Dobaj","Dobaj Ristić","Dobo Tivadar","Dobra","Dobranić","Dobraš","Dobreta","Dobričanin","Dobrić Vizentaner","Dobrinić Bogdanović","Dobrosavljević","Dobroslovački","Dobrota","Dobrovac","Dobrovoljac","Dobrovšak","Dobsai","Dočaj","Dofatić","Dogan","Dohnal","Dokletal","Dokmanac","Dokmanović","Doknjaš","Dokonal","Dokoza","Dokšanović","Dolaček","Dolački","Dolančić","DolančićBabić","Dolanski","Doležal","Dolinac","Doljan","Doljanac","Doljanin","Doljankić","Doma","Domac","Domačinović","Domaćinović","Domančić","Domanovac","Domazet","Domazet Bezmalinović","DomazetŠimica","Domazetović","Dombaj","DomesČamagajevac","Domijan","Domjan","DomjanićRuff","Domjanović","Domladovec","Domladovec Ljikar","Domljan","Domnjak","Domorad","Domožvai","Domša","Donard","Doppelhammer","Dopsai","Dopsaj","Dopša","Dora","Dorčak","Dori Vukas","DorićRapaić","Dorinka","Dorman","Dornštauder","Dornjak","Dorušak","DorušakŠeper","Dostal","Dostan","Doša","Došan","Došljanović","Dotlić Plessa","Dovčak","Dovozalović","Dozan","Doža","Drabek","Drabek Milekić","Drač","Drača","Dračić","Dragalić","Draganić","Draganović","Dragaš","Dragčević","Dragelj","Drager","Dragičević","Dragić","Dragila","Dragin","Draginić","Dragišić","Dragojević","Dragojlov","Dragojlović","Dragoljević","Dragomir","Dragomirović","Dragosavac","Dragosavljević","Dragović","DragovićKovač","DragovićZafred","Dragovoljnović","Dragozet","Dragšić","Draguljić","Dragun","Dragunić","Dragušica","Dragušić","Dragušin","Drahokoupil","Drahotuski","Drahotusky","Drakčić","Drakić","Drako","Draksler","Drakšić","Drakulić","Drakulić Karač","Dralić","Dramac","Dramlić","Drapela","Drapela Maravić","Draščić","Drašinac","Drašinac Kurtagić","Drašković","Dravec","Dravinac","Dravinski","Dravoj","Dražan","Draženović","DraženovićPuhar","Dražetić","Dražić","Drča","Drda","Drenovac","Drenjačević","Drenjanac","Drenjančević","Drenjančević Cigler","Drenjančević Perić","Drežnjak","Drga","Drgalić","Drinovac","Drinjak","Drljača","Drljača Božić","Drljanac","Drljepan","Drnasin","Drobac","Drobila","Drobina","Drobnjak","Droca","Drokan","Dropulja","Drpa","Druhar","Družianić","Družijanić","Drvenica","Drvenkar","Držaić","Držajić","Držaljević","Držanić","Dubac","Duba ađ","Dubaić","Dubičanac","Dubovečak","Dubravac","Dubravčić","Dubravec","Dubravkić","Dubroja","Duda","Dudarin","Dudas","Dudaš","Dudašek","Dudjak","Dugac","Dugački","Dugaja","Dugalić","DugalićDelimar","Dugančić","Dugandžić","Dugandžija","Duganđić","Duganđija","Dugina","Dugošija","Duhaček","Dujak","Dujaković","Dujan","Dujanović","DujmovićAquaro","Duka","Dukanović","Dukarić","DukarićPetriš","DukarićSenaši","Dukmanić","Dukovac","Dulemba","Dumančić","Dumandžić","DumenčićBauer","DumenčićJanson","Dunai","Dunaj","Dunjak","Dupan","Dupca","Dupljak","Duraković","Duran","Duranović","Duspara","Dusparić","Dušak","Dušanek","Dušanić","Dutina","Duvančić","Duvnjak","DuvnjakČuljak","Duvnjak Jović","Duvnjak Starčević","Duždagić","Dvizac","Dvojak","Dvorščak","Dvoršćak","Dvoržak","Dvoržak Butković","Džaferovski","Džafić","Džafran","Džaić","Džaja","Džajić","Džaka","Džakić","Džakmić","Džakula","Džal","Džalo","Džalto","Džambas","Džambić","Džambo","Džananović","Džanić","Džanija","Džankić","Džanko","Džapo","Dželadini","Dželajlija","Dželalija","Dželalija Kovačić","Džidžora","Džijan","Džodanović","Džopalić","Đaferi","Đaferovski","Đafić","Đafran","Đaić","Đajić","ĐajićFel","Đakalović","Đakovac","Đaković","Đakulović","Đalić","ĐalićKovačević","Đambić","Đambo","Đana","Đanić","Đanija","Đaniš","Đanković","Đapić","Đebnar","Đekemati","Đelagić","ĐelagićPetek","Đelatović","Đenadić","Đenadija","Đenovljanović","Đerdak","Đeri Krpan","Đeri Sabo","Đermanović","Đetvai","Đetvaj","Đida","Đidara","Điđura","Đipalo Ban","Đipanov","Đogaš","Đomlija","ĐonlagićPrutki","Đopa","Đopar","Đordan","Đošanović","Đuđar","Đuđik Kućan","Đukanović","Đukarić","Đula","Đulabić","Đulinac","Đumija","Đumlija","Đunda","Đunđa","Đuračić","Đurački","ĐuračkiĆosić","Đuračković","Đurak","Đurak Kapetanović","Đuraki","Đurakić","Đuraković","Đuran","Đuranić","Đuranović","Đuras","Đurasek","Đurasević","Đurasinović","Đurasov","Đurasović","Đurašević","Đurašić","Đurašin","Đurašinović","Đurčak","Đurčanski","Đurčianski","Đurđan","Đurđanović","ĐurđevićFabijanić","ĐurđevićMaršić","Đurica","ĐuričićTabaček","ĐurićIvandija","Đurinovac","Đurinjak","Đurita","Đurkan","Đurkas","Đuza","Eberhardt","Eckhard","Eckhardt","Egredžija","Ehman","EiseleŽampach","Ekart","Ekštajn","El Aydy","El Ayedi","El Hag Hassan","Elaković","Elezaj","Eliaš","Elijaš","Elkaz","Elkazović","Elmazovski","Eljuga","Eman","EmićTomac","Emrulai","Engelage","Engelhart","Engelman","Erak","Ercegovac","Ercegovac Jagnjić","Erdutac","Eremija","Ergarac","Ergeđija","Ergelašević","Erhard","Erhardt","Erjavac","Erkalović","Erkapić","Erkapić Maksimović","Erkman","Erman","Erman Vlahović","Erniša","Erslan","Ervačić","Ervaćanin","Esterajher","Etemaj","Eustahio","Ezgeta","Fabčić","Fabekovac","Faber","Fabian","Fabijan","Fabijanac","Fabijančić","Fabijanec","Fabijanić","Fabijanović","Fabik","Fabing","Fabing Megan","Fabjan","Fabo","Faboš","Fabric","Fabrični","Fabulić","Faculjak","Fačko","Faddi","Faddy","Fadi","Fadi Oršić","Fadiga","Fadljević","Fafanđel","Fahham","Faić","Fais","Faist","Faith","Faj","Fajdetić","Fajdić","Fajfer","Fajl","Fajn","Fajrer","Fajt","Fak","Faktor","Faktorik","Falamić","Falanić","Falašta","Faledžić","Faler","Falica","Fališevac","Faller","Faltum","Fanali Gudelj","Fančović","Fanta","Fanton","Fapal","Fapali","Fara","Farac","Faraga","Farago","Faraho","Farčić","FarčićDori","Farkaš","FarkašMiketek","Farkaševac","Farkašić","Faslija","Fašeljak","Fašing","Fatić","Fatušić","Faubel","Faukal","Faussner","Fazekaš","FazekašMilanović","Fazikaš","Fazlić","Fazlija","Fazliji","Fažon","Feglain","Feher Belaj","Feher Delaš","Fehervari","Fehervary","FehirČandrlja","Fejzaj","Fekete Kramar","Fekete Pavković","Feketija","Fekonja","Felcan","Feldvari","Feldvary","FelendešPajcur","Feletar","Felja","Feratović","Ferčak","Ferenac","Ferenčak","Ferenđa","Ferhatović","Ferinac","Ferjanić","Fernandez","Fetahi","Fiala","Fiala Brig","Fica","FicaŠmit","Fijačko","Fijala","FijanŠkrbić","Fila","Fila Paciorek","Filak","Filakov","Filakov Bolšec","Filaković","FiličićParipović","Filipan","Filipašić","FilipovićKerhat","Filisar","Filjak","Findžanović","Fingernagel","Finta","Fintajz","Firanj","Firi Vidaković","Fischbach","Fischbach Novaković","Fistanić","Fišbah","Flac","Flach","Flačer","Flajc","Flajs","Flajšaker","Flajšek","Flajšer","Flam","Flaman","Flanjak","Flaško","Flatscher","Flauder","Flegar","Flegarić","Fletko Vrućina","Flisak","Fliszar","Floreani","Florian","Florijan","Florijančić","Fluhar","Fodora","Fogadić","Foldvary","Folivarski","Forbah","ForgićPolaček","Forgomba","Forjan","Forjanić","Formbaher","Fotak","Fraj","Frajlić","Frajman","Frajman Jakšić","Frajmund","Frajt","Frajtag","Fran","Franc","Francem","Francetić","Francezi","Franchomme Strepački","Francišković","Franculić","Francuz","Francuzović","Frančak","Frančešević","Frančić","Frančina","Franek","Frangeš","Franić","Frank","Frank Peko","Frankić","Franković","Franolić","Franotović","Franov","Franović","Frant","Franz","Franjčević","Franjec","Franjetić","Franjičević","FranjičevićGašparac","Franjić","FranjićAbramić","FranjićAdrić","FranjićBartolović","FranjićGrgić","FranjićZelić","Franjin","Franjišić","Franjkić","Franjković","Franjo","Fras","Fratrić","Fratrović","Frauenheim","Frazi","Freitag","Fričan","Frigan","Frtalj","Fučkalo","Fučkar","Fućkar","Fuga","Fulanović","Funarić","Funda","Fundak","Funtak","Funjak","Furda","Furdi Valkai","Furgala","FurgalaŠuper","Furjan","Furlan","Fury Marković","Fuštar","Futak","Fužinato","Gabaj","Gabajček","Gabela","Gabelica","Gabelić","Gaberšek","Gabina","Gabor","Gabori","Gaborović","Gabrić","Gabud","Gača","Gačanović","Gačar","Gačić","Gačina","Gačpar","Gaća","Gaće","GaćeŠobat","Gaćeša","Gaćina","Gaćinović","Gadanac","Gado","Gadža","Gadžić","Gađa","Gafuri","Gages","Gagić","Gagro","Gagula","Gagulić","Gaić","Gajari","Gajčević","Gajčić","Gajdašević","Gajdašić","Gajdek","Gajdoš","Gajdošik","Gajec","Gajer","Gajger","Gajgić","GajgićMatić","Gajić","GajićGrac","GajićLukin","GajićPope","Gajnok","Gajs","Gajski","Gajšek","Gajtan","Gajvaronski","Gajzer","Gajzinger","Gajzler","Gakić","Gal","Galac","Galamboš","Galba","Gale","Galeković","Galenić","Galešić","Galeta","Galetić","Galgoci","Gali","Galic","Galičić","Galić","GalićBotić","GalićSubašić","Galijašević","Galin","Galinac","Galinec","Galinović","Galiot","Galir","Galkovski","Gall","Gallo","Galo","Galonja","Galošević","Galovac","Galović","Galunić","Galušić","Galjar","Galjer","Gambiraža","Gambiroža","Gamilar","Gamma","Gamoš","Gams","Ganić","Gansberger","Gantar","Gantner","Ganz","GanzŽuparić","Ganzberger","Garac","Garacki","Garača","Garačić","Garai","Garaj","Garajski","Garašić","Garc","Gardaš","GardašKovačić","Gardašanić","Gardijan","Gardilo","Gardlik","Gardlo","Garić","Garmaz","Garonja","Gartner","Garvanović","Gas","Gashi","Gasparović","Gašić","Gašo","Gašpar","Gašparac","Gašparček","Gašparević","Gašparić","GašparićMeter","Gašparlin","Gašparović","Gašpert","Gašpić","GašpićVrtarić","Gatara","Gati","Gaube","Gaukler","Gavenda","Gavić","Gavlek","Gavlik","Gavljak","Gavra","Gavran","Gavranić","Gavranović","Gavranović Vilić","Gavrić","Gavrilović","Gavrovski","Gazdag","Gazdek","Gazdić","Gazdik","Gazdik Ivančić","Gazibara","Gazibarić","Gazić","Gazilj","Gaža","Gažić","Gažo","Gebaj","Gebhardt","Gecan","Gegenbauer","Geiersbach","Gelemanović","Genda","Generalić","GeneralićČok","Genjega","Gerard","Gerard Špišić","Gerasimenko","Gerbač","Gerencser Đelatović","Gerendaj","Gerhard","Gerhardt","Gernhardt","Gerovac","Gerovac Vuković","Geršak","Gerštmajer","Gerštmajer Zelember","Getoš Magdić","Getto Šmit Strapač","Giba","Giber Janša","Gibičar","Gidija","Gilman","Giljanović","Giordani","Gispert Nicolau","Gita","Gitta","Gizešan","Gjaić","Gjalić","Gjelatović","Gjuračić","Gjurakić","Gjurgjan","Gjurinovac","Glad","Gladić","Gladoić","Gladović","Glamočić","Glamuzina","Glas","Glas Puškadija","Glasenhardt","Glaser","Glasnović","Glasovac","Glaurdić","Glavač","Glavačević","Glavačić","Glavačko","Glavak","Glavan","Glavaš","GlavašKonja","GlavašKul","GlavašLilion","GlavašLukić","GlavašNikolić","GlavašObrovac","Glavašević","Glavašić","Glavaški","Glavati","Glavica","Glavić","Glavina","Glavinac","Glavinić","Glavočević","Glavota","Glavurdić","Glazer","Glibanović","Glibanski","Glibota","Gliesmann","Gliša","Glištra","Glogač","Glova","Gluaković","Glück Krstanović","Glück Radičević","Gluhak","Gluhaković","Gluhalić","Glumac","Glumpak","Glušac","Gluvak","Gluvaković","Gljiva","Gljivica","Gmajnić","Gmaz","Gnand Mijatović","Gnant","Gnjaić","Gnjajić","Gnjatović","Gočal","Goda","Godan","Godanj","Godar","Gogojak","Gogolak","Gogoljak","Gogoljak Kesić","Gojaković","Gojtan","Golemac","GolićRonta","GolićSamaržija","Golinac","Goll Barić","Golub Kostolanović","Golubar","Golubovac","Goluska","Goluška","Goluža","Goluža Gregačević","Goljak","Goljevački","Goman","Gombai","Gombaj","Gombar","Gombarović","Gombay","Gongeta","Gorela","Gorenac","Gorenjak","Gorera","Goreta","Gorgioska","Goričanec","Gorjan","Gorjanac","Gorjanac Mitoš","Gorjanc","Gorjanski","Goronja","Gorša","Goršak","Goršćak","Goruševska","Gostić Manojlović","Gošak","Gotal","Gotovac","Gotvald","Gounaris Sučić","Govedarica","Grabar","Grabarić","Grabež","Grabić","Grablović","Grabovac","Grabovački","Grabovčić","Grabović","Grabrovec","Grabrović","GrabrovićBabić","Grabundžija","Grabus","Grabusin","Grac","Gracek","Gracel","Gracer","Gracin","Gračak","Gračan","Gračanić","Gračanin","GradŠtanac","Gradaščević","Gradečak","Gradečak Erdeljić","Gradeček","Gradička","Gradić","Gradinščak","Gradinjan","Gradišar","Gradištanac","Gradvol","Gradvol Krmpotić","Graf","Grafina","Grah","Grahovac","Grahovac Bister","Grahovac Cvenić","Grajner","Gramec","Granat","Granc","Grančić","Grandić","Grandl","Granić","Granoša","Graora","Graovac","Graša","Grašar","Grašarević","Grašić","Grašo","Gratz","Grba","Grbac","Grbac Budin","Grbačić","Grbavac","Grbavica","Grbeša","Grbeša Petrinšak","Grđan","Grebenar","GrebenarŽarmen","Gregačević","Greganić","Greganić Ternaj","Greganović","Gregić Njirjak","Gregorac","Gregoran","Gregoraš","Gregorka","Gregoršanec","Greguraš","Greif Pađen","Grejza","Grekša","Greman","Grgac","Grgačević","Grgan","Grganić","Grganović","Grgas","Grgat","Grgesina","GrgićBabić","GrgićBošnjak","GrgićĐaković","GrgićIvanković","GrgićMarinov","GrgićRajič","GrgićTadić","Grginac","Griesbacher","Grinvald Greganić","Grisbaher","Griva","Grizak","Grizbaher","Grizbaher Subašić","GrizeljŠarčević","Grladinović","Grlica","GrljušićKrampač","Grmoja","Grmuša","Grnja","Grokša","Groman","Grošeta","Grozaj","Grozdanić","Grozdanović","Groznica","Grubač","Grubačević","Grubanović","Grubeša","GrubešićBarbir","Grubina","Grubiša","GrubišićMarković","GrujićTomas","Grunbaum","Grünthaler","Grunwald","Grünwald","Gržan","Guba","Gubeljak","Guberac","Guberina","Gubiani","Gubica","Gubina","Gucunja","Gudinjacki","Guja","Gujaš","Gulam","Gulam Kramarić","Gulaš","Guldan","Gulija","Guljaš","Guljašević","Gumbarević","Gumbas","Guncinam","Gunjača","Gusak","Gushani","Gušani","Gutal","Gutrovac","Guzina","Gužvanj","Gužvinac","Gvajdek","Gvozdanić","Gvozdanović","Gyana","Gyerdak","Gyetvaj","Haas","Habacht Žitnjak","Habada","Haban","Habčak","Habdija","Habek","Habel","Haber","Haber Kiš","Habi","Habib","Habibović","Habicht","Habijan","Habijanec","Habjan","Habjanec","Habjanić","Habjanović","Habl","HabrkaŠimleša","Habschied","Habuda","Habuda Sabo","Habud tanić","Habula","Habulin","Habulinec","Habus","Habuš","HabušOršić","Hac","Hacek","Hack","Hackenberger","Hackenberger Kosturović","Hackenberger Kutuzović","Haček","Hadeljan","Hader","Hadler","Hadrović","Hadzima","Hadži Sejdić","Hadžiahmetović","Hadžiavdić","Hadžibeganović","Hadžibegović","Hadžić","HadžićBošnjaković","Hadžihajdarević","Hadžihaskić","Hadžisejdić","Hađa","Hađalić","Hađikan","Hafner","Hager","Haierbacher","Haj Barakat","Hajba","Hajberger","Hajc","Hajcman","Hajdarević","Hajdari","Hajdarović","Hajden","Hajdić","Hajdin","Hajdinger","Hajdinjak","Hajdu","Hajduk","Hajduković","Hajdžanović","Hajec","Hajek","Hajić","Hajling","Hajmiler","Hajnal","Hajnc","Hajncl","Hajne","Hajnić","Hajoš","Hajpek","Hajrić","Hajrović","Hajsek","Hajtfogl","Hajtl","Hajzelman","Hak","Hakenberger","Halači","Halak","Halapa","Halapir","Halar","Halas","Halasz","Halaši","Halauš","Halavanja","Halavuk","Halbauer","Halec","Haler","Halilović","Haliti","Halitović","Haller","Halt","Halter","Halter Dumančić","Haludek","Halupka","Halusek","Halužan","Halvaks","Ham","Ham Tintor","Hamacher","Haman","Hamarić","Hamaš","Hamberger","Hamdan","Hamer","Hamidi","Hamidović","Hamilton","Hamiti","Hamm","Hampovčan","Hampshire","Hamunajec","Hamzić","Han","Han Pilko","Hanaček","Hanaftaler","Hanak","Hanc","Hancock","Handanović","Handel Lešić","Handraka","Handžić","Hanđal","Haner","Hange","Hangel","Hango","Haničar","Hanić","Hanih","Hanih Falamić","Hanižar","Hanižjar","Hanižjar Berlančić","Hanković","Hanner","Hannich","Hansko","Hanulak","Hanuljak","Hanzen","Hanzer","Hanzl","Hanzlić","Hanž","Hanžek","Hanžić","Hap","Harač","Harambašić","Haramija","Haramina","Haramustek","Harangoza","Harangozi","Harangozo","Harapin","Harasti","Harauzek","Harc","Harci","Harcz","Harča","Hardi","Hardt","Hardy","Harhaj","Haring","Harinski","Harjač","Harjung","Harkanovac","Harmath","Harmina","Harmunt","Harnoš","Haršanji","Harth","Hartl","Hartman","Hartmann","Harun","Harvanček","Hary","Has","Has Schon","Hasan","Hasanac","Hasanbašić","Hasančević","Hasanica","Hasanović","Hasenauer","Hasenay","Hasenbah","Hasić","Hasija","Hasijak","Haslah","Hasnaš","Hašai","Hašček","Hašimi","Hašperger","Hašpraj","Hat","Hata","Hatlak","Hatnik","Hatta","Hatvalić","Hatwagner","Haubrich","Haubrih","Haudek","Hauer","Haumüller","Haupert","Hauptman","Hauselmann","Hauser","Hauska","Hausknecht","Hausman","Hausmaninger","Haussler","Hauzer","Havel","Havelka","Havić","Havidić","Havlek","Havliček","Havliček Babić","Havoić","Havoj","Havojić","Havranek","Hazenauer","Hazenštaub","Hazler","Haznadar","Hazurović","Hebrang","HedlŠubarić","Heđa","Heganović","Heged Kranjčević","Heiman","Heimann","Heinzelman","Heinzelman Kožul","Heinzelmann","Heitzman","Heizelmann","Heka","Heka Marek","Hekman","Helajz","Helebrant","Hell Kurevija","Hemar","Heneka","Henizelman","Herak","Heralić","Herbay","Hercegovac","Hercigonja","Herega","Herjavec","Herjavec Karalić","Herkovac","Herman","Herman Patajac","Hermanić","Hermann","Hermanović","Hermanutz","Hertarić","Heška","Hezajz","Hidanović","Hidošan","Hidošanin","Hihlik Babić","Hilak","Himelrajh","Hinek Zagorščak","Hipp Rausch","Hirnštajn","Hirštajn","Hirštajn Maćo","Hižman","Hlaban","Hlad","Hladek","Hladki","Hlaj","Hlapčić","Hlapec","Hlasni","Hlatki","Hlavač","Hlavaček","Hlavati","Hlavsa","Hlevnjak","Hlubna","Hmelik Bogdan","Hmelina","Hmeljina","Hmura","Hnačuk","Hnatek","Hnatešen","Hočevar","Hodak","Hodak Ninković","Hodan","Hodanovac","Hodanji","Hodap","Hodovanj","Hoffman","Hofmajer Marinković","Hofman","Hofšauer","HohošBabić","Hojsak","Hokman","Hoksa","Holas","Holenda","HoličekŽanko","Holiga","Holjevac","Homa","Homan","Homan Krtić","Homanović","Homolka","Homotar","Hompas","Hora","Hora Jakobčin","Horaček","Horački","Horak","Horjan","Hornjak","Horonitz Stanić","Horvat","Horvat Fabijan","Horvat Hrvoj","Horvat Katalin","Horvat Smeška","Horvatek","Horvath","Horvatiček","Horvatić","Horvatin","Horvatinović","HorvatinovićMalčić","Horvatović","HorvatovićKrstevski","Hosak","Hosi Tomac","HosinovićGlavaški","Hosman","Hossain","Houra","Hovanček","Hovanček Bura","Hovanjec","Hovanjek","Hoymar","Hozijan","Hozjan","Hoža","Hrala","Hranić","Hranilović","Hranueli","Hranj","Hranjec","Hrastinski","Hrastov","Hrastović","Hrašovec","Hrbak","Hrčak","Hrčka","Hrdelja","Hrdlitschka","Hrđavec","Hrenovac","HrešićDubaić","Hrga","Hrgota","Hribar","Hrkač","Hrkać","Hrkalović","Hrnjak","Hrnjkaš","Hromatko","Hrovat","Hrpka","Hrsan","Hršak","Hruba","Hrubenja","Hrupački","Hrustanović","Hruška","Hruškar","Hrvačić","Hrvat","Hrvatin","Hrženjak","Hržica","Hržina","Huba","Hubak","Hubalek","Hucika","Hudoletnjak","Hufnagel","Huhn Gašpar","Huhoja","Hujak","Hulak","Hulala","Humbal","Hunjadi","Hunjak","Hurban","Husagh","Husaina","Husajina","Husak","Husaković","HusakovićHodžić","Husanović","Husar","Husarek","Husnjak","Huszar","Hušnjak","Huzanić","Huzjak","Hvalec","Hvasta","Hvastek","Hvizdak","Hyka","Ibrahimbegović","Ibrahimpašić","Ibranović","Idžanović","Igalac","Igali","Igladić","Ignac","Ignjac","Ignjačić","Ignjatić","Ignjatović","IgnjatovićVračić","Iharoš","Iharoši","Ihas","Ihasz","Ihaz","Ikač","Ikasović","Ikervari","Ikica","Ilak","Ilakovac","Ilakovac Hercog","Ilančić","Ilanić","IlešŠandor","Ilibašić","IlićKapelac","IlićPočučak","IlićPuharić","IlićSolar","Ilija","Ilijaš","Ilijašev","Ilijašević","Ilijavec","Ilin Romanik","Ilovača","Iljazi","Iljazović","IljazovićIlias","IljazovićLindinger","Iljevac","Imamović","Inotai","Ipša","Iraček","Irha","Isabegović","Isajlović","Isaković","Isanović","Ismaili","Ismailji","Išasegi","Išpanov","Išpanović","Išpiranović","Ištoka","Ištvan","Ištvanfi","Ištvanić","Ištvanović","Ivaci","Ivačić","Ivakić","Ivaković","Ivan","Ivanac","Ivanagić","Ivančan","Ivančević","Ivančić","Ivančik","Ivančok","Ivanćević","Ivanda","Ivandić","Ivandija","Ivanek","Ivanetić","Ivanfi","Ivanić","Ivaniš","Ivanišević","Ivanišić","Ivanko","Ivankov","Ivanković","IvankovićBon","IvankovićGrgić","IvankovićStanojević","Ivanov","Ivanova","Ivanovac","Ivanović","IvanovićIžaković","IvanovićPugin","Ivanovski","Ivanšić","Ivanuš","Ivanušec","Ivanušić","Ivanjko","Ivas","Ivaščenko","Ivašković","Ivatin","Ivica","IvićLončar","Ivkovac","IvkovićCickaj","IvkovićPavić","IvkovićSvetina","Ivoševac","Ivšak","Ivšan","IvšićŠlezak","Izairi","Iža","Ižak","Ižaković","IžakovićArtuković","Jabuka","Jacek","Jackanić","Jacoby","Jačka","Jaćimović","Jadadić","Jadan","Jadek","Jadić","Jadrešin","Jadro","Jaganjac","Jagar","Jagarčec","Jagarić","Jagarinec","Jagatić","Jager","Jagetić","Jagica","Jagić","Jagnjić","Jagodić","Jagodin","Jagorinac","Jagrić","Jagunić","Jagustin","Jagušić","Jahaj","Jahić","Jahn","Jajalo","Jajčan","Jajčanin","Jajčinović","Jajetić","Jajić","Jajiš","Jakab","Jakabfi","Jakarić","Jakelić","JakelićŠklebek","Jakeljić","Jakešević","Jakić","Jakim","Jakimov","Jakišić","Jaklić","Jaklin","Jakljević","Jako","Jakob","Jakobčin","Jakobek","Jakobfi","Jakobi","Jakobljević","Jakobovac","Jakobović","Jakofi","Jakolić","Jakopanec","Jakopčić","Jakopec","Jakopiček","Jakopić","Jakoplić","Jakopović","Jakoša","Jakovac","Jakovčević","Jakovčić","Jakovetić","Jakovina","Jakovljević","JakovljevićČrep","Jakovović","Jaksić","Jakša","Jakšetić","Jakšić","JakšićBanjac","JakšićMaček","Jakubec","Jakubovski","Jakulj","Jakumetović","Jakupec","Jakus","Jakuš","JakušMejarec","Jalovičar","Jalšovec","Jalšovečki","Jalžabetić","Jalžbetić","Jalžetić","Jaman","Jaman Barišić","Jaman Galeković","Jambor","Jambrec","Jambrečina","Jambrek","Jambreković","Jambrešić","Jambrošić","Jambrović","Jambrušić","Jamičić","Jamić","Jamnić","Jamuljak","Jan","Janas","Janc","Jancer","Jančarević","Jančec","Janči","Jančić","Jančiga","Jančiga Jakšić","Jančijev","Jančik","Jančikić","Jančo","Jančula","Jančuljak","Janda","Jandračić","Jandrejčić","Jandrić","Jandrijević","Jandrlić","Jandrok","Jandrok Nadj","JandrokŠkugor","Janeček Legradić","Janečić","Janega","Janeković","Janes","Janeska","Janeski","Janeš","JanešTabain","Janevski","Janger","Jani","Janičar","Janiček","Janičijević","Janić","Janićijević","Janka","JankićRalić","Janković","JankovićBešlić","JankovićŠlang","JankovićVidović","Jankovitch","Jankucić","Jano","Janoš","Janošević","JanoševićFranz","Janoši","Janoši Malčić","JanošiŠariri","Janoška","Janović","Janson","Janša","Jantolek Jakšić","Jantoš","Jantošek","Jantošik","Jantula","Janus","Januš","Januško","Januzović","Janz","Janžek","Janžić","Janjac","Janjanin","Janjatović","Janješić","Janjiček","Janjić","JanjićRaiz","Janjiš","Janjošić","Janjušević","Janjušić","Japarić","Japec","Japić","Japunčić","Japundža","Japundžić","Japunđa","Jarabek","Jaramaz","Jarčević","Jardin","Jarebić","Jarić","Jarmek","Jarnec","Jarnević","Jarnjević","Jaroš","Jasenica","Jasenković","Jasenovčanin","Jasenović","JasenovićUtassy","Jasić","Jasnić","Jaša","Jaščur","Jašek","Jašić","Jašinski","Jauch","Jauernig","Jauh","Jauk","Jauševac","Javor","Javor Akik","Javorček","Javorina","Javorović","Jazavac","Jazbec","Jazbinšek","Jazić","JazićDafish","JazićVincer","Jazvac","Jazvanac","Jazvić","Jazvin","Jazvinšak","Jazvo","Jažić","Jedinak","Jedlička","Jednašić","Jedvaj","Jedvajić","Jeger Semialjac","Jelača","Jelačić","Jelaković","Jelaska","Jelaš","Jelavić","Jelečanin","JelenićNikićAccardi","Jelica","JelićBergman","Jelisavac","Jelovac","Jelovina","Jembrišak","Jenkač","Jerab","Jerabek","Jerant","Jeremijaš","Jerman","Jermatski","Jeuša","Jezeraškić","Ježovita","Jina","Jindra","JindraČupić","Johan","Johanović","Joka","Jokanović","Jona","Jonaš","Jordanova","Jordanović","JosićKajzerić","JosipovićPongrac","Jostiak","Jošavac","Jotanović","Jovan","Jovančević","Jovandić","Jovandžikov","Jovandžikova","Jovanić","Jovanovac","Jovanović","JovanovićFiličić","JovanovićŽuža","Jovanovska","Jovanovski","Jovanovski Vlaškalić","Jovašević","Jovičić Šovagović","Jovinac","Jozanović","Jozefčak","Jozepović Topalović","Jozipović Sudar","Jugovac","Juhas","Juhas Koler","Juhas Takač","Juhasz","Juhaz","Juka","Jukica","Jukopila","Jularić","JularićLadocki","Junačko","Junaković","Jung Lončarić","Juračić","Juraić","Jurajić","Jurak","Jurakić","Juran","Juranek","Juranić","Juras","Jurasović","Jurašek","Jurašković","Juratovac","Juratović","Jurca","JurčevićTrbara","JurčićGalović","Jurela","Jurenac","Jureša","Jureta","Jureta Hrganić","Juribašić","Juričan","JuričanŠimunek","JurićKuna","JurićMihačić","JurićNazifović","Jurićan","Jurina","Jurinjak","Juriša","Jurišaga","Jurišak","JurišićSpajić","Jurlina","Jurman","Jurmanović","Jutriša","Juvančić","Juzbaša","Kabashaj","Kabaš","Kabašaj","Kabić","Kablarević","Kacenberg","Kacenberger","Kaceski","Kačar","Kačarik","Kačavenda","Kači","Kačić","Kačunić","Kačunko","Kačunko Tomka","Kaćar","Kaćavenda","Kaćeri","Kaćunić","Kaćunko","Kadar","Kadežabek","Kadić","Kadlec","Kadlec Filipčić","Kadleček","Kadnar","Kadoić","Kadojić","Kadović","Kadri","Kadrić","Kafedžić","Kafon","Kahn","Kahrić","Kaič","Kaikčija","Kailer","Kainz","Kajan","Kajari","Kajba","Kajčevski","Kajčić","Kajević","Kajfeš","Kajgana","Kajganić","Kajganović","Kajgo","Kajičić","Kajić","Kajinić","Kajla","Kajmić","Kajpl","Kajtar","Kajtaz","Kajtazi","Kajunić","Kajušić","Kajzer","Kajzerić","Kakalicis","Kakarigi","Kakaš","Kaksa","Kakuk","Kalaba","Kalabić","Kalac","Kaladić","Kalafatić","Kalajdžić","Kalajdžija","Kalajžić","Kalaković","Kalamari","Kalamiza","Kalamut","Kalanj","Kalanjoš","Kalapoš","Kalauz","Kalazić","KalazićPeić","Kalčev","Kalčić","Kalea","Kaleb","Kalem","Kalember","Kalenić","Kalenik","Kalesić","Kalić","Kaliger","Kalinić","Kalinka","Kalinović","Kalinski","Kalivoda","Kalizan","Kalkan","Kalkan Bogdanović","Kalman","Kalmar","Kaloci","Kaloper","Kalozi","Kalozy","Kalpić","Kalthoff","Kaltnecker","Kaltneker","Kaluđer","Kaluđerović","Kaluđerski","Kalvarešin","Kamba","Kamber","Kamberović","Kamenar","Kamenarova","Kamenicki","Kamenički","Kamenić","KamenićSmrekar","Kamenko","Kamenov","Kamerer","Kaminski","Kammerer","Kamp","Kampić","Kan","Kanaet","Kanajet","Kandecki","Kandić","KandićSplavski","Kandrač","Kandrać","Kanđera","Kanić","Kanis","Kanisek","Kaniški","Kaniža","Kanižai","Kanižaj","Kanski","Kantar","Kantolić","Kantor","Kantor Fabulić","Kantor Hagen","Kanurić","Kanjo","Kap","Kapelac","Kapetan","Kapetančić","Kapetanović","Kapeter","Kapetinić","Kapić","Kapidžić","Kapisoda","Kapitanić","Kapitanović","Kapitanj","Kaplan","Kaplun","Kapoči","Kapor","Kaposta","Kapoši","Kapović","Kappelar","Kapraljević","Kaproncai","Kapronczai","Kapša","Kaptalan","Kaptein","Kaptolić","Kapular","Kapulica","Kapun","Kapusta","Kapuši","Kapušin","Karabegović","Karabojev","Karač","Karača","Karačić","Karačić Šoljić","Karačonji","Karadakova","Karadamis","Karadamis Kir","Karadža","Karadžić","Karaga","Karagača","Karagić","Karaica","Karaj","Karajčić","Karajko","Karajkov","Karajlović","Karak","Karakaš","KarakašPavić","Karalić","Karaman","Karamanović","Karamarko","Karamarko Radić","Karamarković","Karamatić","Karamatraković","Karan","Karančin","Karanov","Karanović","Karapandža","Karapetrić","KarapetrićDiklić","Karas","Karasek","Karasi","Karaševac","Karatović","Karaturović","Karaula","Karavidović","Karavla","Karavukovac","Kardaš","Kardinal","Kardo","Kardoš","Kardov","Kardum","Karežić","Karh","Karić","Karika","Karin","Karjaković","Karkić","Karl","Karl Fero","Karlak","Karlak Mahovlić","Karlica","Karliček","Karlić","Karlinski","Karloci","Karlović","Karlušić","Karnaš","Karner","Karnoš","Karoglan","Karol","Karoli","Karpati","Karpov","Karša","Karšaj","Karšić","Kartelo","Kary","Karzalko","Kasa","Kasabašić","Kasač","Kasak","Kasal","Kasalo","Kasalo Tomić","Kasalo Trajković","Kasami","Kasana","Kasap","Kasapović","Kasavica","Kaselj","Kaselj Varga","Kaser","Kassa","Kassak","Kasser","Kast","Kastel","Kastel Oravec","Kastner","Kastori","Kastratović","Kasum","Kasumović","Kasun","Kasunić","Kašanin","Kašerić","Kašić","Kašnik","Kaštel","Kaštelan","Kašuba","Kata","KataĐaković","Kataj","Katalenac","Katalenac Pirghaye","Katalenić","Katalin","Katalinić","Katana","Katanac","Katančić","Katanica","Katanić","KatanićPopović","Katarin","Katarina","Katarinček","Katarinić","Katava","Katavić","KatavićIvandić","KatavićŠimunić","Katičić","Katić","Katilović","Katinić","Katnić","Katoi","Katona","Katović","Katruša","Katruša Neziraj","Katulić","Katura","Katušić","Katušin","Kaucki","Kaucki Kelemen","Kaučić","Kaurić","Kaurin","Kaurinović","Kaurloto","Kauzlarić","Kavain","Kavaj","Kavali","Kavan","Kavčić","Kavedžić","Kavedžija","Kavelj","Kavgić","Kavicki","Kavran","Kavur","Kazalicki","Kazda","Kazenski","Kazimić","Kazimir","Kazimur","Kaznovac","Kažimir","Keceli Mesaroš","Kecman","Keča","Kečalović","Kedačić","Kefelja","Kegalj","Kekanović","Kela","Kelam","Kelava","Kelbas","Kelbasa","Kelbassa","Kelebarda","Kelebuda","Kelemović Kramer","Kelka","Kelrajter","Kemfelja","Kenda","Kenfelj Čajkovac","Kenfelja","Kenjvašo","Keran","Keranović","Kereši Bennani","Kereta","Kerhač","Kerhat","Kern Martinović","Kerovac","Kervarić","Kesak Ursić","Kešerac","Kešina","Keža","Khail Perasić","Khaznadar","Kichaz","Kickaz","Kihas","Kijac","Kijanica","Kikanović","Kilibarda","Kilmajer","Kinjerovac","Kirac","Kiraly","Kiralj","Kiralj Jarmek","Kirasić","Kirchbaumer","Kirchmayer","Kirčanski","Kireta","Kirhmajer","KirićJunačko","Kiridžija","Kisela","Kiselka","Kiseljak","KišKonja","Kišasondi","Kišćinal","Kišfalubac","Kišmartin","Kišpal","Kišpatić","Kitak","Kitak Borić","Kitak Volar","Kitanov","Kitanović","Kiternaš","Kizivat","Klaban","Klačić","Kladar","Kladarić","Kladarin","Kladnik","Klaiber","Klaić","Klajić","Klajn","Klajn Plavšić","Klajo","Klajzner","Klak","Klanac","Klanac Gyorgy","Klanac Kapša","KlanacŠestić","Klanfar","Klanica","Klanjšček","Klapan","Klapec","Klapirić","Klapka","Klapšić","Klaričić","Klarić","Klarić Kukuz","Klasan","Klasanović","Klasanović Dulić","Klasiček","Klasiček Bencetić","Klasić","KlasićGazibarić","Klasnetić","KlasnetićHyka","Klasović","Klašnja","Klaus","Klausz","Klauz","Klauznicer","Klečina","Klekar","Klepac","Kliba","Klika","Klimczak","Klipa","Klipanović","Klišanin","Klišanin Bogović","Klobučar","Klobučar Radl","Klobučar Vujnić","Kloda","Kloiber Rušanac","Klopan","Klopotan","Kljaić","Kljajić","Klječanin","Kljenak","Ključanin","Ključar","Ključarić","Ključarićek","Knajs","Knajz","Knall","Knapić","Knatek","Knauer","Knauff","KneževićBaić","KneževićFranciška","KneževićGado","KneževićMarinić","KnežićGalić","Kniha","Knjaz","Kobaš","KobašNola","Kobašević","Kobela","Kobeščak","Kobia","Kobija","Kobijak","Kobjak","Koceva","Koceva Komlenić","Koch Mađarić","Kocian","Kocifaj","Kocijan","Kocijančić","Kocijanović","Kockar","Kocman","Kocmanić","KocmanićParavac","Kočaj","Kočar","Kočevar","Kodba","Kodila","Kodrnja","Kodvanj","Kodžoman","Kofranek","Kogan","Kohajda","Kohari","Koharić","Kojadinović","Kojanić","Kojundžija","Kokalović","Kokanović","Kokanović Bartola","Kokar","Kokeza","Kokman","Kokolari","Kokoška","Kola","Kola Farkaš","Kolac","Kolaček","Kolačko","Kolak","KolakĐurinović","Kolaković","Kolar","Kolar Drvoderić","KolarŽižanović","Kolarac","Kolarec","Kolarec Marušić","Kolarević","KolarevićTrišler","Kolarić","KolarićBuconjić","KolarićVukotić","Kolarik","Kolat","Kolauti","Kolbas","Koldjeraj","Koldjeraj Pjetar","Kolđeraj","Kolegjeraj","Kolembus Oklobdžija","Kolenda","Kolendarić","Kolesar","Kolesarić","Koleszar","Koletar","Kolgjeraj","Kolhamer","KolhasČutura","KolićKovačić","Kollar","Kolman","Kolobara","Kolobarić","Koloda","Kolodvorska","Kolojeraj Pjetar","Kolomaz","Kolompar","Kolosar","Kolovrat","KolundžićRadić","Kolundžija","Kolutac","Koljan","Koljanin","Koljdjeraj","Koljđeraj","Komadina","Komak","Komanović","Komar","Komar Međugorac","Komarac","Komarčevski","Komarčić","Komarić","Komaromi","Komaromy","Komazec","Komendanović","Komesarović","Komijat","Komjetan","Komlenac","Komlenac Beloša","Komlenac Uglješić","KomnenićTuta","Kompanijec","Kompanović","Kompesak","Komušanac","Končalović","Končar","Končarević","Kondaš","Kondža","Kondža Staničić","Konopka","Konrad","Konstantinović","Konta","Kontak","Konti Jaman","Kontra","KontraČapo","Konja","Konjarević","Konjarik","Konjušak","Kopačević","Kopačin","Kopanec","Kopas","Kopasić","Kopčalić","Kopecki Balašević","Kopilaš","Kopjar","Kopljar","Koppola","Koprčina","Koprivanac","Koprivica","Koprivnjak","Korač","Korać","KoraćRedžepi","Korade","Korajac","Koralija","Koražija","Korbar","Korda","Korica","Korman","Kormanjec","Kormanjoš","Kornjača","Korodva","Koronsovac","Koroša","Korotaj","Korpak","Korpar","Korpaš","Korponja","Korša","Koruga","Korušac","Kosalec","Kosanović","Kosina","Kosorjanac","Kosovac","KosovićCrvenkova","Kostadinović","KostadinovićKelić","Kostanjevac","Kostanjevec","Kostelac","Kostenac","Kostolanović","Kostolanović Golub","Kostova","Koša","Košak","Košalin","Košanski","Košaroš","Koščak","Košćak","Košćalek Glavak","Koškan","Koškanac","Košta","Košturjak","Kotal","Kotarac","Kotarlić","Kotarski","Kotarščak","Kotiza","Kotolas","Kotorac","Kotrljanović","Kotromanović","Kotvas","Kovacs","Kovač","Kovač Asan","Kovač Grablović","Kovač Ištvan","Kovač Maratović","Kovač Marton","Kovač Retih","Kovač Slepčević","Kovač Svoboda","Kovač Šilipetar","Kovač Vajda","Kovač Vestemar","Kovač Zoltan","Kovačec","Kovaček","Kovačev","Kovačev Matijević","Kovačević","KovačevićArbanas","KovačevićDoroghy","KovačevićGradinščak","KovačevićGrgić","KovačevićLovač","KovačevićLujić","KovačevićSalaj","KovačevićTomić","KovačevićZec","Kovačić","KovačićFarkaš","KovačićLovrinčević","Kovačik","Kovačko","Kovalski","Kovalj","Kovanić","Kovanov","Kovanušić","Kovar","Kovats","Kovbanovski","Kovčalija","Kovjanić","KovjanićKreidl","Kozar","Kozarčanin","Kozarević","Kozari","Kozary","Kozbašić","Kozina","Kozjak","Kozjan","Kozlevčar","Kozlica","Kozma","Kozmar","Kozomara","Kožan","Kožar","Kožarić","Koželj Horvat","Kožoman","Krac","Kracl","Kračun","Kračunov","Kradija","Kradijan","Kraft","Kragl","Kragojević","Kragujević","Kragulj","Kraguljac","Krahovski","Krahulec","Kraiček","Krainović","Krajač","Krajačić","Krajcar","Krajčak","Krajček","Krajčik","Krajčinović","Krajina","Krajinović","Krajišnik","Krajlah","Krajner","Krajnović","Krajpl","Krajs","Krajšić","Krajter","Krajtner","Kraker","Kral","Kralik","Kralovec","Kralj","Kralj Vasilj","Kralja","Kraljčak","Kraljek","Kraljevački","Kraljević","Kraljević Čolić","Kraljević Seričević","Kraljevski","Kraljičak","Kraljić","Kraljik","Kraljik Kovačik","Kraljinović","Kramar","Kramarić","KramarićTariba","Kramer","Kraml","Krampač","Krampelj","Krancpiler","Kranic","Kranić","Kranželić","Kranjac","Kranjc","Kranjčec","Kranjčev","Kranjčev Lončar","Kranjčević","Kranjčić","Kranjec","Kranjski Belovljev","Krapić","Krasić","Krasniči","Krasnić","Krasnići","Krasnik","Krasniqi","Krasnodembsky","Krasulja","Kraš","Krašnjak","Kraštek","Kratil","Kratki","Kratković","Kratofil","Kratzl","Kraucider","Kraus","Kraus Lazić","Krausz","Krautsieder","Krauz","Kravat","Kravec","Kravoščanec","Kravski","Krbanja","Krbavac","Krčmar","Krčmarek","KrdoŠpanić","Kreča","Krečak","Kreća","Krejačić","Kremenjaš","Kremsher Babić","Kresoja","Kresonja","Kreštan","KretićMajer","Krga","Krga Božić","Krha","Krhač","Kričančić","Krička","Krička Mitrović","Krijak","Krijan","Krisbaher","Kristan","Kristman","Kriška","Krivaja","Krivak","Krivanek","Krivanek Spomenka","Krivda","Krivohlavek","Krivokapić","Krivokuća","Krivošija","Krizman","Krizmanić","Krizmanić Zaharov","Križaj","Križan","Križan Stanić","Križanac","Križanec","Križanić","Križanović","Križevac","Križman","Križnjak","Krka","Krkač","Krkalo","Krleska","Krleža","Krljan","Krljar","Krmpota","Krnatić","Krndija","Krneta","Krnjac","Krnjaić","Krnjajić","Krnjak","Krnjaković","Krnjeta","Kroato Vujčić","Krolo Stipan","Krompač","KrompačGolub","Krowas","Krpačić","Krpan","Krpan Trgovčević","Krpata","Krsmanović","Krstanović","KrstanovićIvšić","KrstanovićPočuča","Krsteska","Kršak","Kršan","Kršćanski","Kršinić Radaković","Krtalić","KrtićČejvan","Kručaj","Kruhonja","Kruljac","Krumenacher","Krumerac","Krupa","Krupeša","Krupeša Virag","Krupljan","Krupljanin","Krušarovski","Krvarić","Krvavac","Krvavica","Krzman","Krznar","Krznarić","Kšan","Kuba","Kubaček","Kubala","Kubanović","Kubaša","Kubat","Kubatka","Kubelka","Kubena","Kubica","Kubijak","Kubijan","Kubinac","Kubinčan","Kubjak","Kubula","Kučak","Kučan","Kučančanin","Kučanda","Kučandi","Kučans","Kučar","Kučara","Kučera","Kučica","Kučina","Kučinac","Kučinac Lacković","Kuća","Kućan","Kućančanin","Kućanda","Kućera","Kućina","Kućinac","Kudeljaš","Kudeljnjak","Kudlaček","Kudrna","Kuduz Vrdoljak","Kuhač","Kuhar","Kuharić","KuharićBučević","Kuharski","Kuhta","KuićVadlja","Kujadin","Kujavec","Kujavec Šljivac","Kujavić","Kujundžić Jamnić","Kujundžija","Kukanović","Kukavica","Kukina","Kukmanović","Kukoleča","Kukolj Malbaša","Kukrika","Kukučka","Kukuljica","Kukuružnjak","Kula","Kulačanin","Kulaš","KulašKnežević","Kulašinović","Kulbah","Kulčar","Kulešanin","Kulhanek","Kulhavi","KulišićLončarić","Kulovac","Kuljaj","Kuljak","Kumarić","Kumbara","Kumbrija","Kumparić","Kuna","Kunac","Kuncinam","Kunčak","Kundak","KunićBukovac","Kunišinac","Kunovac","Kunsabo","Kunzinam","Kupanovac","Kupčarić","Kupčarić Trcović","Kupčinovac","Kupina","Kuprešak","Kuprešak Paret","Kuprešanin","Kupreščanin","Kuragić","Kuraja","Kuralić","Kuran","Kuratko","Kuravica","Kurbalić","Kurbalija","Kurbanović","Kurbaša","Kurbatfinski","Kurcinak","Kurdija","Kurelac Karlak","Kurepa","Kurevija","Kuridža","Kurija","Kurikavčić","Kurina","Kurjačić","Kurjakov","Kurlagić","Kurman","Kuronja","Kurpez Vranković","Kursar","Kurtagić","Kurtak","Kurtanjek","Kuruc Sloboda","Kusalić","Kustura","Kusulja","Kusutra","Kušaković","Kušan","Kušica","KušićOmazić","Kutaši","Kuterovac","Kutjevac","Kutleša","Kutlija","Kutnaker","Kutnjak","Kuvač","Kuvačić","Kuveždan","Kuveždanin","Kuzma","KuzmaČordašić","Kuzman","Kuzmančević","Kuzmanić","KuzmanićŠarac","Kuzmanoski","Kuzmanović","KuzmanovićĐorđević","Kuzmanovski","Kužatko","Kvaček","Kvak","Kvaka","Kvakan","Kvakić","Kvas","Kvasina","Kvasnovski","Kvastek","Kvaternik","Kvorka","La Bruna","Labaj","Labak","Laban","Laban Ovčina","Labant","Labar","Labaš","Labavić","Labazan","Labo","Labor","Laboš","Labrović","Labrtić","Labudić","Labudović","Labuhar","Labus","Labuš","Lach","Lachner","Lacić","Lacko","Lacković","Lacmanović","Laco","Lacović","Laczo","Lač","Lačanin","Lačić","Lačman","Ladan","Ladenhauser","Ladenhauser Palijan","Ladić","Ladislaides","Ladišić","Ladnjak","Ladocki","Ladović","Lađarević","Lađaš Špoljarec","Lađević","Laferton","Laforza","Lagančić","Laganela","Laganela Keglević","Lagator","Lagetar","Lagumdžija","Lagundžija","Lah","Lahman Bennani","Lahner","Laister","Laitkam","Lajčak","Lajčo Paštrović","Lajdes","Lajdi","Lajforman","Lajić","Lajk","Lajko","Lajoroš","Lajoš","Lajtkam","Lajtkaum","Lajtman","Lajtner","Lakat","Lakatoš","Laketa","Laketić","Laki","Lakić","Lakićević","Laklija","Lakner","Lakota","Lakotić","Laković","Laksar","Laktić","Laletić","Lalić","Lalić Đurišić","Lalović","Lambreščak","Lamnek","Lamot","Lampek","Lampert","Lamza","Lamza Maronić","Lanc","Lančić","Landeka","Landekić","Landenbach","Landher","Landikušić","Landup","Lang","LangČulin","Lange","Langer","Lanko","Lanjoha","Lapac","Lapanović","Lapanje","Lapaš","Lapčević","Lapčić","Lapenda","Lapić","Lapis","Lapiš","Laptoš","Lapu","Larma","Lasić","Lasinger","Lasker","Lasković","Laslavić","Laslo","Laslo Gregov","Laslovski","Lasović","Lastavica","Lastavica Pantelić","Lastavić","Lastelić","Lastrić","Laszlo","Laszlo Szakary","Lašak","Laškai","Laškarin","Laštović","Laštre","Laštro","Latas","Latić","Latin","Latinčić","Latinović","Latinović Leleta","Latković","Latoš","Lauber","Lauc","Lauc Đaniš","Lauda","Lauda Ljubas","Laufer","Launek","Laurić","Laurović","Lauš","Laušević","Laušić","Laušin","Lautar","Lavada","Lavrek","Lavrnić","Lavrnja","Lavrov","Lay","Lazanin","Lazar","Lazar Korov","Lazarević","LazarevićParadžik","Lazarov","Lazendić","Lazič Švogor","Lazić","Lazić Gorjanski","Lazić Švogor","Lazović","Lažeta","Lebar","Lebinac","Ledenčan","Ledenčan Kuštro","Ledeničan","Ledinščak","Ledinšćak","Leđenac","Lefand","Legat","Legradi","Lehanka","Lehman","Lehmann","Lekaj","Leko Varoščić","Lekšan","Lelas","Lemaić","Lemajić","Lemal","Leman","Lenard","Lenardić","Lenardo","Lenart","Lenc Mandić","Lendarić","Lendvaj","Lengajić","Lengyel Komušanac","Lenhard","Lenhardt","Lenhart","Leovac","Lepac","Lepan","Lepoglavec","Lepoja","Lepoša","Leratić","Lesar","Lesica","Lesičak","Lesjak","Leskovac","Leskovar","Lešćan","Lešina","Leškovar","Lešnjak","Lešnjaković","Letica","Leutar","Leutarević","Levačić","Levak","Levaković","Levanić","Levar","Levnaić","Ležaić","Ležaja","Lichtenthal","Ličanin","Ličar","Ličina","Lidmila","Liermann","Liermann Zeljak","Ligda","Ligenza","Lihtental","Lijak","Likar","Likarić","Lilijan","Linarić","Lindeman","Linta","Lipanović","Lipar","Lipka","Lipnicki Krausen","Lipošćak","Lipovac","Lipovina","Liptak","Lisac","Lisak","Lisica","Lisičak","Lisjak","Lisjak Tvrdorijeka","Lisovac","Liščak","Lišćak","Liška","Litarac","Litarić","LitarićTešić","Litobac","Litra","Litva","Livada","Livaja","Livajić","Livančić","Livazović","Livnjak","Lizačić","Lizačić Vidaković","Lizak","Lizatović","Loboda","Loci Zvocak","Logara","Logarušić","Logožar","Lohajner","Loina","Loinjak","Lokas","Loknar","Lončar","Lončar Kurtović","Lončar Majer","Lončar Tumir","Lončar Vicković","Lončarek","Lončarević","Lončarić","Lončina","Lonjak","Lopar","Loparac","Lopatnik","Lordan","Loša","LošićKrizmanić","Lovač","Lovak","Lovaković","Lovas","Lovasić","Lovaszi","Lovaš","Lovenjak","Lovrenščak","Lovrić Ađić","Lovrić Bonaventura","Lovrić Kurbanović","Lovrić Rimac","Lovrić Varžić","Lozančić","Lozančić Bagarušić","Lozančić Bogarušić","Lozanov","Lozanović","Lozina","Lubar","Lubina","Lubina Jukić","Lucarić","LucićSavić","Lucijak","Lucijanić","Lučan","Lučevnjak","Ludaš","Ludban","Lugarić","Lugonja","Luka","Lukac","Lukac Jurić","Lukacs","Lukač","Lukaček","Lukačev","Lukačević","Lukačić","Lukačić Trifunović","Lukačin","Lukać","Lukaćević","Lukadinović","Lukanić","Lukanović","Lukarova Božičević","Lukašek","Lukavec","Lukavečki","Lukavski","Lukenda","Luketa","Luketina","LukićGaličić","LukićKovanović","LukićMiklaj","Lukićova","Lukinac","Lukjar","Lukman","Lukovica","Lukovnjak","LulićSlipac","Lusavec","Luščak","Lušćak","LušićMarić","Luthar","Lutterbach","Lužaić","Ljagajlo","Ljajić","Ljeljak Jurman","Ljesar","Ljeskovan","Ljevar","Ljevnaić","Ljikar","Ljiljak","Ljiljak Jurman","Ljiljan","Ljiljanić","Ljubanović","Ljubas","Ljubašćik","Ljubica","Ljubisavljević","Ljubljanović","Ljuma","Ljuma Ozeva","Ljušanin","Ljuština","Ljutak","Mabić","Macakanja","Macan","Macanga","Macanić","Macanović","Macašek","Maceković","Macele","Machiedo","Machulec","Machulec Gašić","Mack","Mack Savanović","Mackanić","Macko","Mackuljak","Macokatić","Macura","Mačak","Mačak Borš","Mačar","Mačaš","Mačašić","Maček","Mačešić","Mačik","Mačinković","Mačkić","Mačković","Mačvan","Maćaš","Maćašević","Maćešić","Maćo","Madajček","Madaras","Madarić","Madavić","Madecki","Madi","Madić","Madjar","Madjar Klaić","Madjarac","Madjarić","Madjerčić","Maduna","Madunić","MadunićFlauder","Madunović","MadunovićPavošević","Madžar","Madžarac","Madžarević","Madžarić","Madžić","Mađar","Mađar Babok","Mađarac","Mađarević","MađarevićKubatka","Mađarić","Mađer","Mađerčić","Mađerec","Mađerić","Mađura","Maganić","Maganjić","Magaš","Magazinović","Magda","Magdalenić","Magdić","Magdika","Magečić","Magić","Magjer","Magjer Veg","Maglaić","Maglajić","Maglica","Magličić","Maglić","Maglov","Magoči","Magoći","Magoš","Magovac","Magud","Magura","Magušić","MagušićDumančić","MagušićWilhelm","Magyar","Mahić","Mahmudi","Mahmutović","Mahnić","Mahovlić","Mahovne","Maić","Mainc","Maj","Majača","Majačić","Majbaum","Majcan","Majcan Korkutović","Majcen","Majcenić","Majcenović","Majdak","Majdančić","Majdandžić","MajdandžićLauc","Majdenić","Majdić","Majdiš","Majer","Majer Podgorski","Majera","Majerhof","Majerhoffer","Majerić","Majerski","Majerus","Majetić","MajetićCetina","Majhen","Majher","Majić","MajićMiholić","Majk","Majkić","Majksner","Majlinger","Majlinger Tanocki","Majnarić","Majnarić Prinčevac","Majnić","Majnik","Major","Major Hargita","Major Lukić","Majorić","Majoroš","Majpruz","Majsan","Majsen","Majski","Majsterić","Majstor","Majstorović","Majstorović Gusić","Majstorski","Majstrenko","Majstrović","Majtanić","Majurac","Majurec","Majzik","Majzl","Mak","Mak Horvat","Maka","Makaj","Makar","Makarčuk","Makarević","Makarević Stanojčić","Makarić","Makarijevska","Makarijevski","Makaro","Makarović","Makarum Pirić","Makarun","MakarunŠurina","Makek","Makević","Makić","Makijenko","Makir","Makiš","Makivić","Mako","Makonnen","Makoš","Makoter","Makov","Makovec","Maković","Maksić","Maksimović","Maksimovski","Makšan","Makšan Kramar","Makvić","Malacko","Malarić","Malbaša","Malbaša Varga","Malbašić","Malbašik","Malčić","Maldini","Malečić","Malek","Malekin","Maleković","Malenica","Malenica Dekany","Malenica Marić","Malenić","Malenjak","Maler","Maleš","Maleševac","Malešević","Malešić","Maleta","Maletić","Maletin","Maletović","Malević","Mali","Malić","Malidža","Maligec","Malijurek","Malinar","Malinić","MalinićUglik","Malinović","MalinovićBanaji","Mališ","Mališić","Malivojević","Malivuk","Malizani","Malkoč","Malkoć","Malković","Malnar","Malobabić","Malobović","Maloča","Malogorski","Maloić","Malojčić","Malounek","Malov","Malovan","Malovčak","Malović","Malovoz","Maltar","Maltašić","Malter","Malunjak","Malvić","Maljarić","Maljik","Maljković","MaljkovićBabić","MaljkovićKocevski","Maljur","Mamić","Mamilović","Mamlić","Mamula","Mamuzić","Mamužić","Manc","Mance","Manceta","Manci","Manczi","Mančić","Mandalić","Mandarić","MandarićKolarik","MandarićKurilj","Mandekić","Mandić","Mandir","Mandl","Mandrić","Mandunović","Mandura","Mandurić","Mandušić","Mandžukić","Manestar","Manfred","Mangold","Manić","Manislović","Mann","Mano","Manojlović","Manolio","Manović","Manzer","Manzin","Manjerović","Manjić","Manjok","Maoduš","Mar","Maračić","Maradin","Marak","Maraković","Maran","Maranić","Maras","Marasović","Maraš","Marašek","Maratović","Maravić","Marcić","Marcijuš","Marcikić","Marciuš","MarciušPap","Marczi","Marčec","Marček","Marčeta","Marčetić","Marčičević","Marčić","Marčićević","Marčik","Marčinko","Marčinković","Marčit","Marčok","Marđetko","Marek","Marek Ilić","Marelja","Marendić","Marenić","Marenjak","Mareš","Maretić","Marević","Margaretić","Margeta","Margetić","Margić","Margil","Margit","Margold","Margold Bubalović","Marguš","Maričak","Maričević","Maričić","Marić","MarićMalinić","Marićak","Marijan","Marijanac","Marijančević","Marijanov","Marijanović","MarijanovićZulim","Marijašević","Marijić","Marin","Marina","Marincel","Marincl","Marinclin","Marinčić","Marinić","Marinković","Marino","Marinov","Marinović","MarinovićČačić","MarinovićVlaičević","Marinjak","Marjanac","Marjančević","Marjančić","Marjanov","Marjanović","MarjanovićBaglama","MarjanovićMatić","MarjanovićZulim","MarjanovićZulin","Markač","Markafić","Markan","Markanović","Markanjević","Markasović","Markeljević","Markešić","Marketić","Marki","Markić","Markioli","Markiš","Marko","Markolin","Markoš","Markota","Markotić","Markov","Markovac","Markovanović","Markovčić","Marković","MarkovićBrunčić","MarkovićDudjak","MarkovićĐurin","MarkovićGjurin","MarkovićKovač","MarkovićMandić","MarkovićPernar","MarkovićŠarac","Markovinović","Markovski","Marks","Markser","Markulak","Markulić","Markulin","Markulinčić","Markulj","Markuljević","Markus","Markuš","Markušev","Markušić","Markuz","Marman","Marmeggi","MarmilićCezner","Marod","Marod Scheiber","Marodi","Marodt","Maroević","Marojević","Marokić","Maroković","Marolin","Marolt","Maronić","MaronićFischer","Maros","Maros Batinić","Maroslavac","Maroš","Maroševac","Marošević","Maroši","Marošičević","Marošićević","Marov","Marović","Marsenić","Marsić","Maršal","Maršalek","Maršanić","Maršhauzer","Maršić","Maršo","Mart","Martalić","Martan","Martić","Martin","Martin Rajher","Martinčević","MartinčevićDiačec","MartinčevićKučuk","MartinčevićMikić","Martinčić","Martinćević","Martinek","Martinić","Martinić Perljević","Martinko","Martinko Mrđa","Martinković","Martinov","Martinović","Martinović De Conceicao","MartinovićGrčić","MartinovićPlavšić","Martinuš","Martinušić","Martinjak","Martinjaš","Marton","Martynyuk","Marukić","Marulin","Maruna","Marunica","Marunić","Marunović","Marušić","MarušićHalači","Maržić","Mas","Masić","Maskarić","Maslać","Maslak","Maslarić","Masle","Maslić","Maslov","Maslovara","Masljak","Masnica","Masnić","Masnikosa","Masoničić","Mastanjević","Mastelica","Mastelić","Mašaberg","Mašala","Mašanović","Mašek","Mašić","Mašina","Maširević","Maškov","Mašojević","Mašović","Maštrović","Matačić","MatačićBrodić","Matagić","Mataija","Matais","Matajčević","Matajčić","Matajić","Matajs","Matajz","Matak","Mataković","Mataković Erl","Matan","Matana","Matančić","Matanić","Matanić Petkovski","Matanov","Matanov Bugarić","Matanovac","Matanović","Matas","Matasić","Matasović","Mataušek","Matavulj","Mataz","Mate","Mateašić","Matečko","Matej","Matejak","Matejašić","Matejčić","Matejić","Matek","Matekalo","Mateković","Mateljić","Materni","Mateša","Matešić","Matešković","Matezić","Matezović","Mati","Matics","Matiček","Matičević","Matičić","Matić","MatićMandić","MatićSinković","MatićSpremo","Matija","Matijačić","Matijaković","MatijakovićKrišto","Matijanić","Matijas","Matijaš","Matijašec","Matijašević","Matijašić","Matijaško","Matijatko","Matijevac","Matijević","Matin","Matišić","MatišićKučinić","Matiz","Matjačić","Matjaš","Matjašić","Matko","Matkov","Matkovček","Matković","MatkovićBatalija","MatkovićSubašić","Matkun","Matleković","Matok","Matokić","Matoković","Matorić","Matoš","Matoša","Matošević","Matošić","Matota","Matotek","Matoušek","Matovac","Matović","Matovina","Matovinović","Matrić","Mattei","Matthias","Matthies","Matthies Pepelko","Matulić","Matulin","Maturanac","Maturanec","Maturić","Matus","Matusina","Matusinović","Matuš","Matušenski","Matušin","Matuško","Matušković","Matuzalem","Matuzović","Matvij","Mauhar","Mauk","Mauker","Maul","Maurac","Maurer","Maurić","Maurović","Maurus","Mauser","Mautner","Mauzer","Mavračić","Mavrek","Mavretić","Mavričić","Mavrić","Mavrin","Mayer","Mayer Topalović","Mazalica","Mazalović","Mazanek","Mazić","Maznik","Mazur","Mažar","Mažar Falamić","Mažar Tomeš","Mažuran","Meandžija","Meašić","Meaški","Mecanov","Mecanov Pofuk","Mečanin","Mećava","MedačKraker","Medak","Medaković","Medančić","Medanić","Medarić","Medarski","Medenjak","Medinac","Medjugorac","Medovka","Medvar","Medvedarović","Medvedec Lazarevski","Međaković","Međugorac","Međurečan","Megdanac","Mehak","Mehak Lipanović","Mehanović","MehičićButina","Mejaš","Mejdanac","Mekanj","Mekinda","Mekovec De Carvalho","Mekovec Diniz De Carvalho","Melar","MelegešGamoš","Melmajer","Melman","Memešahović","Menalo","Mendaš","Meničanin","Menićanin","Menkovska","Menrat","Merčinac","Merda","Merkaš","Merunka","Mesar","Mesarek","Mesarić","Mesaroš","MesarošBelanji","MesarošŠandor","MesićMuharemi","Meszaroš","Mešanović","MeščićDziegielewska","MeštrovićJelačić","Metlagel","Mezak","Mezarić","Mezga","Meznarić","Mežnarić","Miačank","Micai","Michalek","Michels Andračić","Mickovska","Micudaj","Mičan","Mička","Mičuda","Mićan","Mićanović","Mićuda","Mifka","Migač","Mihačić","Mihailović","Mihajlov","Mihajlović","Mihalak","Mihalčić","Mihalec","Mihalek","Mihalic","Mihaliček","Mihalička","Mihalić","Mihalik","Mihalik Vidaček","Mihalina","Mihaly","Mihalj","Mihaljčević","Mihaljčić","Mihaljčuk","Mihaljec","Mihaljek","Mihaljenović","Mihaljev","Mihaljević","MihaljevićJurić","MihaljevićŽiroš","Mihaljić","Mihaljik","Mihaljinec","Mihanić","Mihnjak","Miholjac","Mijač","Mijačank","Mijačević","Mijaćank","Mijadinović","Mijadžiković","Mijailović","Mijajlović","Mijakić","Mijakovac","Mijaković","Mijalković","Mijaljević","Mijanović","Mijatov","Mijatović","MijatovićAlošinac","MijićBarišić","Mijota","Mika","Mikac","Mikač","Mikać","MikaćMlađen","Mikala","Mikan","Mikanovac","Mikanović","Mikašek","Mikašinović","MikešićMerda","Miketa","MikićGradaščević","MikićVučak","Mikinac","Mikla","Miklaj","Miklavčić","Mikloška","Mikodanić","Mikola","Mikolac","Mikolaš","Mikolašević","Miksa","Mikša","Mikula","Mikulan","Mikulandra","Mikulandra Tutavac","Mikulaš","Mikulica","MikulićBednar","Mikuša","Mikuška","Mikuta","Mila","Miladić","Miladinović","Milak","Milakić","Milaković","Milaković Španović","Milanko","Milankov","Milanković","Milanović","Milanovski","Milanovski Varga","Milardović","Milas","Milas Nađ","Milaščević","Milašević","Milašin","Milašinčić","Milašinović","Milat","Milat Lendić","Miler Kardinal","Mileta","MiličićJuhas","MilićGregoran","Milidrag","Milijašević","MilinkovićKalić","Milisav","Milisavljević","MilišićKovačević","Milla","Milobara","Milohanić","Milohnoja","Milojica","Miloknaja","Miloknoja","Miloloža","Milorad","Miloradović","Milosavčević","Milosavić","Milosavljević","MiloševićManojlović","Milovac","Milovanov","Milovanović","Miljački","Miljak","Miljaković","Miljan","Miljančić","Miljanović","MiljanovićŠpika","Miljatović","Mimica","Minarek","Minarik","MinkošBubalović","Mioca","Miodanić","Miodrag","Miodragović","Miranović","Mirjačić","Mirjanić","Mirkajlović","MirkovićStipanić","Mirosav","Mirosavljević","Miroslav","Misanović","Misarček","Mišak","Mišanec","Mišanović","Miščančuk Dugac","Mišeta","Miškatović","MiškovićKlarić","Mišljenac","Mištrafović","Mišura","Mitanović","MitanovićGotić","Mitar","Mitermajer","Miterman","Mitka","Mitrekanić","Mitrina","Mittermann","Mizdrak","Mjeda","Mlačić","Mladenović","Mladina","Mladinov","Mlađenović","Mlakar","Mlakić","Mlikota","Mlinac","Mlinaček","Mlinar","Mlinarec","Mlinarević","Mlinarić","Mlinarik","Mlinarik Alimehaj","Mocnaj","Močilac","Močilnikar","Mofardin","Mogušar","Moharić","Moharoš","Mohila","Mohnacki","Moka","Mokran","Moldovan","Molnar","Molnar Toriž","Molodova","Morača","Morača Crnogorac","Morava","Moravac","Moravec","Moravek","Morgental","Morina","Morman","Morman Lukavec","Moro Vladić","Morovičan","Morvai","Morvat","Moržan","Moržanj","Moskalj","Moslavac","Mostarčić","Mostečak","Mostina","Mošnja","Moštak","Mračkovski","Mrak","MrakŠimenić","Mrakodolac","Mraković","Mraović","Mrastinski Jurčec","Mravec","Mravinac","Mravlinčić","Mravunac","Mraz","Mrazik","Mrazović","Mrčela","Mrdalj","Mrdeša","Mrdeža","Mrdjanović","Mrđa","Mrđan","Mrđanović","Mrekaj","Mrganić","Mrkalj","Mrkela","Mrkobrad","Mrkonja","Mrkota","Mrla","Mrmak","Mrnjavčić","Mrša","Mršak","Mršinjak","Mršo Stančić","Mrva","Mrvaljević","Mrzljak","Mrzljak Rado","Mržljak","Muačević","Muaremi","Mucafir","Mucak","Mucalj","Mucavac","Muchaus","MucićMak","Mučalović","Muha","Muhadri","Muhar","Muharemi","Muharemović","Mujadin","Mujagić","Mujakić","Mujaković","Mujanović","Mujarić","Mujkanović","Muk Vida","Mulac","Mulalić","Mulle ranješ","Muljaić","Muljajić","Munćan","Munda","Mundinac","Munđar","Munikravić","Munkačević","Munkaš","Muradbašić","Muraja","Murat","Murati","Muratović","Murgaš","Muržanj","Musa","Musa Balaš","Musa Korov","Musija","Muslija","MusovićJakovljević","Mustač","Mustać","Mustafa","Mustafić","Mustafov","Mustak","Mustapić","Mušac","Mušanić","Mušanović","Mušija","Mušnjak","Muštran","Mušura","Mutabožić","Mutaja","Mutapčić","Mutavdžić","Mutavdžija","Mutavđić","Mutnjaković","Mutzhaus","Mužar","Muždeka","Muženjak","Nacl","Nača","Nad","Nadalin","Nadarević","Nadašdi","Nadaši","Nadić","Nadj","Nadoveza","Nadžvegi","Nađ","NađMihaljević","NađPejaković","NađRađago","Nađorđ","Nađpal","Nađpalfi","Nađsombat","Nađvegi","Nagj","Naglav","Naglav Faisz","Naglav Hardt","Naglić","Nago","Nagy","Nagy Milošević","Nagypalfi","Nagyszombat","Nagyszombaty","NagyszombatyŠarić","Nagyvegi","Nagyy","Najbauer","Najcer","Najcer Bračevac","Najdanović","Najduček","Najduk","Najev","Najman","Najvirt","Nakani","Nakić","Nako","Nalčić","Naletilić","Nalio","Nalo","Namestnik","Namjesnik","Namjesnik Skender","Namjestnik","Nanaić","Nanaj","Nanay","Nanik","Nappholz","Narančić","Narandža","Narandžić","Naranđa","Narenđa","Nasić","Nategov","Natić","Natran","Naumov","Naumovska","Naumovski","Naumovski Bogdanović","NaumovskiČizmar","Navijalić","Navratil","Nazarević","Nazibegović","Nazifović","Nećak","Nedjeljkov Stambolija","Nedoklan","Negovanović","Nelken Bestvina","Nemčanin","Nemet Ivanović","Nemet Marković","Nemet Petriševac","Nemet Radvanji","NemetŠestak","Nenadić","Nenadov","Nenadović","Neogradi","Neral","Neralić","Neretljak","Nesladek","Nestorović Tavić","Nesvanulica","Netroufal","Neuman","Nevajdić","Nevidal","Nevidal Kraljević","Nezaj","Neziraj","Neznanović","Niedoba","Nikačević","NikićČakar","Niklaj","Nikola","NikolaŽaper","Nikolandić","Nikolaš","Nikolašević","Nikolaus","NikolićKovačić","NikolićOdak","Nikolin Horvat","Nikolin Tormaš","Nikolovska","Nikoljačić","Ništ Kokolari","Nižalek","Nižman","Nogalo","Nonveiller Kovač","Nosal","Nospak","Notta","Novačić","Novački","Novak","Novak Belić","Novak Kovač","Novak Lukadinović","Novak Mehić","Novaković","NovakovićGrčić","NovakovićReininger","Novalić","Novina","NovkovićNarančić","Novogradac","Novogradac Kater","Novogradec","Novogradić","Novoselac","NovoselićKazimić","NovoselićNovak","Novota","Nowosadek","Nožina","Numanović","Nuspahić","Nussgraber","Nyarko","Njari","Njary","Njegovan","Njegovanović","Njirjak","Obad","Obad Omeragić","Obadić","Obajdin","Obermajer","Oberman","Oberman Sebenji","Oblačić","Oblak","Obradović","ObradovićViland","Obranić","Obrdalj","Obrežanac","Obrovac","Obšivač","Obućina","Očanček","Očurščak","Očuršćak","Odak","Odak Peran","Odak Smodlaka","Odavić","Odenvald","Odobaša","Odobašić","Odža","Ofentavšek","Ogar","Ognjan","Ognjanovac","Ognjanović","Ojvan","Okanović","Oklobdžija","Okmažić","Okovacki","Okreša","Okštajner","Olah","Olajos","Olajoš","Olbina","Olbina Borić","Olivari","Olman","Oljača","Omanović","Omazić","Omeragić","OmeragićGatara","Omerašević","Omerbašić","OmerbašićŠišić","Ondrašek","Opačak","Opačak Fidel","Opačak Marković","Opačić","OpačićMatijević","Opalić","Opančar","Opat","Opraus","Oprea","Opselka","Opšivač","Opua","Opuvačić","Orak","Oravec","Orban","Orbanić","Ordanić","Orđan","Orehovac","Orešan","Oreščanin","Orgonaš","Orgulan","Orlovac","Ormanac","Orobabić","Orsag","Oršanić","Oršanski","Osbah","Osekovac","Osenjački","Osička","Oslanski","Osmak","Osmakčić","Osman","Osmanagić","Osmanhodžić","Osmani","Osmanlić","Osmanović","Osonjački","Ososlija","Osrečak","Osrečak Hranj","Ostajmer","Osterkamp","Osthajmer","OstojićVukelja","Ostopanj","Ostrijaš","Ostrman","Ostroman","Osvadić","Osvald","Oswald","Ošap","Ošapić","Ošlaj","Oštarjaš","Otartić","Oterbajn","Otrbajn","Ovad","Ovčar","Ovčar Mabić","Ovčarić","Ovčarik","Ovčina","Ovuka","Owais","Ozanjak","Ozdanovac","Ozimec Rikardo","Ozuška","Ožanić","Ožuška","Ožvald","Ožvalt","Ožvatić","Pacanović","Pacek","Pacek Dokuš","Pacher","Pacić","Paciorek","Pacl","Pacovski","Pacovski Erhard","Pačar","Pačarek","Pačarić","PačarićKulešević","Paći","Padar","Padežanin","Padjen","Padoš","Padovan","Padrov","Pađan","Pađen","Pađen Farkaš","Paestka","Page Holmes","Pahanić","Pahčainović","Pahert","Pahić","Pahl","Paić","Pajančić","PajančićBrkić","Pajazetović","Pajc","Pajcur","Pajčić","Pajčin","Pajdić","Pajer","Pajeska","Pajeska Kornel","Pajestka","Pajestka Mihajlović","Pajić","Pajković","Pajkurić","Pajnić","Pajor","Pajrok","Pajtak","Pajtel","Pajtl","Pajtler","Pajur","Pakasin","Pakić","Pakozdi","Pakšec","Pakši","Pakšić","Pal","Palaček","Palada","Palagyi","Palahinjak","Palaić","Palamaš","Palanac","Palančević","Palandžić","Palašić","Palašti","Palatinuš","Palcer","Palčec","Palčić","Palčok","Paleček","Palfi","Palian","Palić","Palijan","Palinić","Palinkaš","PalinkašŠćurla","Palir","Pališ","Paliž","PaližToth","Palko","PalkoČongor","Palla","Palm","Paloc","Palocz","Paloh","Paloš","Palošić","Palovčik","Paluch","Paluh","Paljević","Paljić","Paljušić","Pamer","Pamić","Pamper","Panak","Pancer","Pancić","Pančić","PančićRuška","Pančiško","Pandi","Pandl","Pandur","Pandurević","Pandurić","PandurićKlusko","Pandurović","Pandža","Pandža Babić","Pandžić","Panđa","Panđić","Panella","Panežić","Panico","Panić","PanićBoromisa","Panišić","Pankarić","Panker","Panković","Panović","Panta","Pantelić","Pantelinac","Pantić","Pantner","Pantoš","Panjak","Panjaković","Panjičanin","Panjičko","Panjkov","Panjković","Pap","Papa","Papac","Papak","PapateodoroŠkorić","Papazović","Papeš","Papež","Papić","PapićHerceg","Papišta","Papo","Paponja","Papp","Papratović","Paprić","Papšić","Papučić","Papuga","Par","Parabak","Parabucki","Parač","Parać","Paradinović","Paradžik","Paradžiković","Parađ","Parađiković","Parađina","Paraga","Paragi","Paragović","Paranos","Parat","Paravac","Paravinja","Parčetić","Pardon","Parezanović","Parežanin","Parić","Paripović","Paris","Park Yong","Parlić","Parlov","Parmačević","Paroški","Parsaee","Partić","Partlić","Parun","Pasa","Pasanović","Pasariček","Pasarić","Paska","Paska Katić","Pasler","Passalis","Past","Pastar","Pasti","Pastor","Pastorćić","Pastović","Pastuhović","Pastulović","Pastuović","Pastva","Pastvečka","Pastvečko","Pasza","Pasztor","Pašagić","Pašajlić","Pašalić","Pašić","Paškov","Paškuljević","PaškuljevićTurniški","Paškvan","Pašti","Pašul","Pašuld","Patača","Patačić","Patafta","Patai","Pataj","Patajac","Pataki","Pataran","Patarčić","Patarich","Patarić","Paternoga","Patila","Patkanj","Patko","Patkoš","Patković","Patoki","Patriarch","Patrlj Popović","Patron","Patrun","Patzl","Paudenović","Pauk","Pauković","Paulaj","Paulay","Paulić","Paulik","Paulini","Paulinić","Paulović","Paulus","Paun","Pauna","Paunković","Paunović","Paurević","Paurić","Paus","Paušak","Paušković","Pauzar","Pauzer","Pavasović","Pavec","Pavela","Pavela Bartol","Pavelić","PavelićPišl","Pavelik","Pavelja","Paver","Pavešić","Pavetić","PavetićHodak","Pavičevac","Pavičević","Pavičić","PavičićPribisalić","PavičićZegnal","Pavić","PavićNikolić","PavićPavlović","Pavićević","Pavin","Pavišević","Pavišić","Pavitović","Pavkov","Pavkov Mehandžić","Pavković","Pavlačić","Pavlak","Pavlak Milić","Pavlečić","Pavlek","Pavleković","Pavlešić","Pavletić","Pavlic","Pavlica","Pavličević","Pavličić","Pavlić","Pavlićević","Pavlik","Pavlinek","Pavlinić","Pavlinović","Pavlinušić","Pavlišak","Pavlošić","Pavlov","Pavlović","PavlovićPrekrat","Pavlovsky","Pavlus","Pavljuk","Pavoković","Pavor","Pavošev","Pavošević","PavoševićKrstanović","PavoševićMatijević","Pavrlišak","Pavrlišek","Pavšić","Pavuna","Payerl","PayerlČikara","Payeska","Pazaver","Pazman","Pazmanj","Pažanin","Pažin","Peaković","Pecarski","Pecelja","Pecolaj","Pecollaj","Pečar","Pečenka","Pečujlija","Pečvarac","Pećanac","Pećar","Pećina","Pećušak","Pehar","Peharda","Peharda Božić","Peica","Pejak","Pejakić","Pejaković","Pejanović","Pejazić","PejićBrezak","Pekanov","Pekanović","Pekar","Pekarik","Peko Lončar","Peko Santo","PelešBračun","Pelikan","Pelivan","Pelivanović","PelivanovićVidaković","Peljhan","Pena","Penava","Penavić","Penavin","Penga","Penzar","Penjašković","Peradenić","Peradić","Peradinović","Perajica","Perajin","Perak","Perak Kučinac","Peraković","Peran","Peranec","Peranić","PeranićPrgomet","Peranović","Perasić","Perasović","Pereža","Perhat","Perica","Perija","Periša","Perja","Perjavica","Perkatlić","PerkovićVirovac","PerkušićKomlenac","Pernar","Pernarčić","PeroševićSilađi","Perša","Pervan","Peša","Pešikan","Pešorda","Peštaj","Peštalić","Peštanac","Petak","PetakŠimunović","Petaković","Petanović","Petanjak","Petarac","Petelka","Peterka","Peternai","Petkovska","Petlovac","Petljanski","Petnjarić","PetnjarićKalić","Petovar","Petovari","Petrač","PetračOžeg","Petrak","Petranović","PetranovićCvenić","Petraš","Petrašević","Petrijevčanin","Petrina","PetrinaŠlihgar","Petrinšak","Petrinja","Petrinjac","Petrinjak","Petriševac","PetrlićStrugačevac","Petrošanec","Petrošanec Pišl","Petrov Vondrak","Petrovac","PetrovićPavlović","Peurača","Pfaf","Pfajfer","Pfann","Piacentini","Pichler Milaković","Pichler Sajler","Pifat","Pigac","Piha","Pijanović","Pijevac","Piknjač","Pikulska Pervan","Pilanović","Pilarić","Pilat","Pilav","Pilgermajer","Pilgermajer Dugalić","Pilgermayer","Pilicar","Piližota","Pilnaček","Pilja","Piljaš","Pinčar","Pintar","Pintar Kerovec","Pintarić","Pinter Franjić","PinjušićBabel","Pipaš","Piplica","Pirak","Pisačić","Pisar","Pisarević","Piskač","Piskać","Piščak","Pišćak","Piškorjanac","Pitinac","Pitomac","Pitra","Pivac","Pivač","PivačZeko","Pivar","Pivaš","Pivašević","PivićKovačević","Pivovariček","Pivovarić","Pjanić","Pjevac","Pjevač","Pjevačević","Plac","Placento","Plaček Bereš","Plačko","Plahinek","Plahinek Jurišić","Plahutnik","Plančak","Plander","Planinac","Planinc","Planinić","Plankar","Plano","Plantak","Plantek","Plantić","Plantosar","Plasaj","Plasajac","Plasajec","Plaskur","Plastić","Plaščak","Plaščak Kukučka","Plaščar","Plaščević","Plašćak","Platiša","Platužić","Platz","Plaušić","Plavac","Plavanac","Plavčić","Plavec","Plaveković","Plavljanić","Plavotić","Plavša","Plavšić","Plavšin","Plazanić","Plazanjić","Plazibat","Plazibat Brodarac","Plazonić","Plazonja","Plazonjić","Plažanin","Plečaš","Plećaš","Plemenitaš","Plenča","Plentaj","Plestenjak","Pleša","Pleška","Pletikapić","Plevnik Cvitanušić","Plevnik Dobravec","Ploskonka","Plukavec","Plužarić","PlužarićBaranja","Pljukavec","Pljuskovac","Pnjak","Poc Kovač","Pocrnja","Počanin","Počijak","Počuča","Počuća","Podbarac","Podgajac","Podgajac Albrecht","Podgorac","Podgoračan","Podgorščak","Podgoršćak","Podhraški","Podkrajac","Podlavicki","Podmanicki","Podmanicky","Podnar","Podoljak","Podpadac","Podravac","Podraza","Podrumac","Podunajec","Podunavac","Pogač","Pogačić","Pohiba","Poka","Pokas","Pokaz","Poklar","Pokrajac","Pokrajčić","Pokrivač","Pokrivka","Pokšiva","Polaček","Polak","Polanc","Polančec","Polanec","Polanščak","Poldrugač","Polerman","Polešak","Poletar","Polgar","Polimac","Polimanac","Pollak","Pollak Haring","Pollak Seričević","Polman","Polovina","Polšak","Poljak","Poljak Meković","Poljak Tibor","Poljaković","Poljančec","Poljanik","Poljarević","Poljičak","Pomarčinović","Pongrac","Pongračić","PongračićHorvat","PongračićPejić","Ponikvar","Ponka","Ponjavić","Popadić","Popara","Poparić","Popijač","Popinjač","Poplaša","Poplašen","Popovac","PopovićBasta","PopovićLubina","PopovićSenaši","Popržan","Porga","Poropat","Portnar","Posavac","Posavac Kunovac","Posavčević","Posavec","Posavec Jakobović","Posavec Kovač","Posavec Tušek","Posavi","Pospihalj","Pospišilova","Poša","Poštaš","Potalec","Potfay","Potkonjak","Potkonjak Rakinić","Potkovac","Potkozarac","Potkrajac","Potnar","Potnar Mijić","Potočar","Potočnjak","Poturak","Poturica","Povarnik","Považanj","Povoljnjak","Pozderac","Poznan","Poznanović","PoznićGorjanac","Pozsar","Požar","Požarnik","Požega","Požežanac","Požgain","Požgain Antolović","Požgaj","Požgaj Vinčić","Požnjak","Požnjak Vukovac","Pračić","Prađeno","Prah","Prahin","Praiz","Prajiz","Prakatur","Prakljačić","Pralas","Pralica","Pralija","Praljak","Prančević","Prangart","Pranić","Prankić","Pranješ","Pranjić","Pranjković","Praskalo","Prašnički","Prašnikar","Prašnjak","Pratljačić","Pratnemer","Pravdić","Pravdić Jurišić","Pravica","Pražak","Prebiračević","Prečanica","Predmerski Iharoš","Predovan","Predragović","Predrevac","Predrijevac","Preglej Kovačević","Prekačin","Prekodravac","Prekpalaj","Prekpaljaj","Prekrat","Prekratić","Preksavec","Preloščan","Prendaj","Prenkpalaj","Preradović","Presečan","Presnac","Prespjanin","Prespljanin","Prevendar","Prgomelja","Prgomet Selak","Prhal","Pribanić","Pribisalić","Prica","Prijatelj","Priman","Primorac","Prinčevac","Priselac","Pristav","Pristavnik","Pristojak","Prisuda","Pritisanac","Pritišanac","Privara","Prka","Prkačin","Prnjat","Procaj","Prodan","Prodanić","Prodanović","Prohaska","ProkešGracek","Prokuplja","Proleta","Prološčić Ćaleta","Prološčić Polovina","Prosan","Prostran","Protrka","Prpić Križevac","Prskalo","Prša","Prša Lučenčić","Prtenjača","Prtoljan","Prusac","Prusina","Pružinac","Prvonožac","Psotka","Pšag","Pšak","Pšenica","Ptičar","Ptičar Balajić","Puač","PuačMatešić","Puača","Pualić","Pucan","Pucar","Pucarević","Pucarin","Pucarin Kojić","Pudar","Pudža","Puđa","Pufler Sajler","Pugar Vajdić","Puhač","Puhali","Puhalo","Puhalović","Puhanić","Puhar","Puharić","Pukljak","Puktalović","Pulitika","Pulver Polimac","Pulja","Puljak","Puljek Salai","Punčikar","Punda","Pungrčar","Pupavac","Pupovac","Pupovac Fodor","Purar","Pureta","Purgar","Purgar Kalamari","Purgarić","Purkar","Purkat","Pustai","Pustaj","Pustaji","Pušac","Pušač","Pušelja","PušeljićŠimica","Pušenjak","Pušeta","Puškadija","Puškar","Puškarčuk","Puškarić","Putar","Putarić","Puvača","Puvalić","Puzavac","Pycha","Qenaj","Quast","Rab","Rab Guljaš","Rabac Knezović","Rabađija","Rabar","Rabbi","Rabbi Kalman","Rabel","Rabi","Rabić","Rabl","Rabljenović","Raboteg","Rac","Rac Sabo","Raca","Racić","Rack","Racko","Racz","Raček","Račić","Račimorski","Rački","Računica","Radačić","RadačićBosilj","Radak","Radaković","RadakovićMatovina","Radaljac Jurkin","Radan","Radan Dukić","Radanić","Radanović","RadanovićAmšlinger","RadanovićGrgurić","Radaš","Radašinović","Radat","Rade","Radeka","Radelić","Radeljak","Radeljić","Radenić","Radenković","Radešić","Radetić","Radičanin","Radičev","Radičević","Radičić","Radić","RadićBenki","RadićBilin","RadićČuti","RadićPechaček","RadićPocrnić","RadićStrižak","Radićanin","Radigović","Radijevac","Radiković","Radin","Radinčić","Radinković","Radinovac","Radinović","Radinski","Radiša","Radišević","Radišić","Radivoj","Radivojac","Radivojčević","Radivojević","Radko","Radl","Radl Barjaktarić","Radl Humer","Radlović","Radljević","Radman","Radman Dijkgraaf","Radman Meić","Radmanić","Radmanovac","Radmanović","Radmilović","Radnić","Rado","Radočaj","Radoćaj","Radoja","Radojčić","Radojčin","Radojević","RadojevićBačun","Radojica","Radojković","Radolić","Radolović","Radomirović","Radonić","RadonićVesel","Radonjić","Rados","Radosavac","Radosavljević","Radoš","RadošČatak","Radošević","Radošić","Radotić","Radovac","Radovančević","Radovanić","Radovanović","RadovanovićMiodragović","RadovanovićPetarac","Radović","Radujko","Radujković","Raduka","Radulić","Radulović","RadulovićBrdar","Radun","Radunković","Radunović","Radusin","Radusinović","Radušić","Radvanji","Radzira","Rađa","Rađan","Rađenović","Rafaj","Rafajac","Raff","Rago","Raguš","Raguz","Raguž","RagužBošnjak","RagužLučić","RagužPelić","Raich","Raič","RaičNowosadek","Raičević","Raičković","Raić","Raihl Kir","Railić","Raiz","Raizner","Rajačić","Rajaković","Rajc","Rajci","Rajčan","Rajčanji","Rajčevac","Rajčević","Rajčić","Rajda","Rajh","Rajher","Rajhl","Rajič","Rajić","Rajki","Rajkov","Rajkov Schleininger","Rajkovača","Rajkovačić","Rajković","RajkovićŠpoljarić","Rajle","Rajlić","Rajman","Rajndl","Rajndl Zubčić","Rajnić","Rajninger","Rajnović","Rajs","Rajs Ažić","Rajsz","Rajš","Rajšel","Rajšić","Rajtek","Rajter","Rajter Antić","Rajter Obrovac","Rajzl","Rak","Rak Kovač","RakŠtrbac","Rakanović","Rakarić","Rakas","Rakazović","Raketić","Rakić","Rakin","Rakin Hečko","Rakinić","Rakipi","Rakipović","RakipovićStojanović","Rakitić","Rakitničan","Rakitovac","Rakmić","Raknić","Rako","Rakocija","Rakočević","Rakonca","Rakonić","Rakovac","Raković","Rakušić","Ralašić","Ralbovski","Ralević","Ralić","RalićPopović","Rališ","Rall","Raljević","Raljić","Ramač","Rambusek","Ramčić","Ramić","Ramljak","Rancinger","Rančak","Rančić","Rančilović","Randović","Randunković","Ranđelović","Rangelov","Ranisavljević","Rank","Ranković","Ranogajac","Ranogajec","Ranogajec Böhm","Raos","Rap","Rapaić","Rapajić","Rapan","Rapčak","Rapić","Rasić","Rasonja","Raspasović","Raspopović","Raspor","Raspudić","RaspudićBrekalo","Rastić","Rastija","Rastovac","Rastović","Rastovski","Raščan","Raščanac","Raščanec","Raščanin","Rašeta","Rašetić","Rašić","Raškaj","Rašković","Rašljanin","Rašo","Rašperger","Raštegorac","Rat","Ratajac","Ratajec","Ratar","Ratić","RatićReinspach","Ratinčević","Ratkaj","Ratkajec","Ratko","Ratkovčić","Ratković","Rattinger","Rauch","Raucher","Raucher Josić","Rauher","Raumberger","Rausavljević","Rausch","Rausnitz","Rauš","Raušenberger","Raušević","Rauški","Raužan","RaužanŠibalić","Ravas","Ravlić","RavlićVrbešić","Ravlija","Ravnjak","Razer","Razić","Razl","Razman","Razum","Razumović","Ražić","Ražnatović","Reaček","Reba","Rebrača","Rebrina","Rebrna","Rebronja","Rebula","Rečica","RečićDraksler","Reder Vladić","Redžep Borak","Redžepagić","Ređa","Regajs","Regeljac","Rehak","Rehner Samardžić","Reinhardt","Reinspach","Reintebach","Reitenbach","Rekaš","Reksa","Relatić","Relja","Reljac","Reljan","Reljanović","Remaj","Remenar","Remeta","Remžgar","Remžgar Adam","Renčar","RennichČajko","Rennich Sabri","Repac","Repajić","Repalust","Repar","Repija","Repinac","Repka","Resan","Resanović","Resele Podnar","Resiga","Rešetar","Rešetar Rudić","Rešetarović","Reškovac","Reštar","Retkovac","Revald","Reveland","Revelant","Rezo Bošnjak","Režnjak","Riba","Ribar","Ribar Fekete","Ribarić","RibićGreganić","Rica","Richard","Ridgaser","Rigljan Stanisavljević","Rigo Blažević","Rigo Katanić","Rigo Mihajlović","Rihard","Rihart","Rihtarić","Rikanović","Rimac","RimacČota","Rimac Drlje","Rimai","Rimaj","Rimar","RipićMarjanović","Ristova","Rittgasser","Ritza","Rizvanović","Rkman","Rnjak","Robak","Ročoska","Rodjak","Rođak","Rođaković","Rogač","Rogalo","Rogan","Rogar","Rogić Janković","Rogina","Roglić Stanković","Rogoz Katić","RogozŠola","Rogulja","Rohaček","Roksandić","RoksandićKrižan","Roland","Romac","Roman","Romanić","Romanik","Romanović","Romanjek","Romanjik","Romštajn","RončevićMarković","Rončka","Ronta","Rora","Rorbaher","Rosandić","Rosani","RosoČajo","Rostaš","Roškar","Roško Vrtarić","Rošta","Roterbauer","Rothenbacher","Rothenhausler","Rozmajer","Rozman","Roža","Rožac","Rožajac","Roždijevac","Rožina","Rožman","Rožmarić","Ruda","Rudan","Rudar","Rudaš","Rudinski Grginac","Rudinski Mijatović","Rudman","Rudnjak","Rudvald","RuffŠarić","Rugole Car","Rugole Kocijan","Rujevčan","Rukavina","Rukavina Dobrišek","Rukovanski","Rukovanjski","Ruman","Rumbak","Rumbak Vajak","RumićBogdan","Rumora","Rumštajn","Runac","Runjak","Rupaner","Rupar","Rusan","Ruseva","Rusjan","Rušak","Rušanac","Rušanoski","Ruška","Ruška Krljar","Rušnjak","Rutar","Ružak","Ružanić","Ružička","Ružman","Sabadi","Sabadoš","Sabadžija","Sabelja","Sabić","Sablić","Sabljak","Sabljar","Sabljarić","Sabljić","Sabljić Talucci","Sabljo","Sabo","Sabo Hamidović","Sabočan","Sabočanac","Sabok","Sabol","Sabolčec","Sabolčić","Sabolek","Sabolek Tegzeš","Sabolić","Sabolović","Sabolski","Saborčić","Sabov","Sabow","Sabri","Saček","Sačer","Sačer Grgić","Saćer","Sadaić","Sadiki","Sadiković","Sadiku","Sadlek","Sadović","Sadžak","SadžakovićMatak","Safić","Safkin","Saftić","Sagadi","Sagadin","Sagaj","Saher","Sahula","Saić","Sailović","Saiti","Sajc","Sajda","Sajdl","Sajenković","Sajer","Sajfert","Sajko","Sajler","Sajlović","Sajter","Sak","Sak Bosnar","Sak Vitić","Sakač","Sakačić","Sakal","Sakić","Sakoman","Saković","SakovićVajzenbach","Sakradžija","Saks","Saksinger","Salai","Salaić","Salaj","Salaji","Salajić","Salak","Salak Tonhajzer","Salamaha","Salamon","Salamun","Salapić","Salaški","Salatić","Salčinović","Saler","Salha","Salić","Salihi","Salihović","Salijević","Salimović","Salinger","Salitrežić","Salkanović","Salkić","Salma","Salmadić","Saloki","Salonja","Salopek","Salopek Kotromanović","SalopekŽiha","Saljihi","Saljiji","Samac","Samac Katruša","Samarčić","Samardžić","SamardžićIlić","Samardžija","Samardžija Momčilović","Samarđić","Samarđija","Samaržija","Sambol","Sambolec","Samir","Samohod","Samohodaj","Samson","Sancin","Sandić","Sandukčić","Sanela Milanković","Sanić","Sanković","Sanseović","SanseovićZorica","Santaj","Santin","Santini","Santl","Santo","Santoši","Santovac","Santovac Livada","Santrač","Santrić","Santruček","Santucho Pejin","Sanjarić","Sapanjoš","Saplaić","Sarač","Saraga","Sarajlić","Sarajlija","Sarap","Sarapa","Saratlija","Saravanja","Sardelić","Sarić","SarićŠpiranović","Sarijević","Sarka","Sarkanjac","Sarkić","Sarta","Sarvaš","Sas","Sasi","Sastić","Satek","Satler","Satner","Sauer","Sauerborn","Sauerborn Dorić","Saulić","Sauter","Savadinović","Savanović","Savatić","Savatović","Savelić","Saveljev","Saveljić","Saver","Savevska","Savevski","Savičić","Savić","SavićDrašković","SavićPayerl","SavićTanacković","Savićević","Savin","Savković","Savova Peček","Savović","Scarpa","Scarpa Bugarić","Schapringer","Schasche","Schatzl","Schatzl Bakarec","Scheidsach","Scheimann","Schermann","Schmidt Korman","Schnalzer","Schönhof Kovačević","Schonschadowski","Schornavache","Schteigmajer","Schuessler Mandić","Schumacher","Schutzbach","Schwaller","Schwarzl","Schweizer Nađ","Sebal","Sebauer","Sečak","Sečan","Sečujac","Sedak","Sedarević","Sedlaček","Sedlan","Sedlan König","Sedlar","Sedmak","Segetlija","Sekač","Sekalec","Sekanić","Sekanović","Sekošan","Sekovanić","SekovanićCincar","Sekula","Selak","Selak Zeljko","Selaković","Selan","Selar","Selec Grejza","SelešiĐurica","SelićGnjaić","Seligman","Selman","Selmani","Seljaković","Seljmani","Seman","Semeljac","Semeljac Nikolić","Semialjac","Semijalac","Semijaljac","Senaši","Senčanin","Senčar","Senderak","Senđervari","Seničanin","Senohrabek","Senta","Sentivanac","Sentivanski","Sentkiralj","Sentkiralji","Serbedžija","Serdahelji","Serdar","Serdarević","Serdarušić","Seropian","Seropian Orkić","Ses Gado","Sesar","Sesvečan","Sesvečan Anić","Sesvećan","Sevald","Shala","Shamonky","Shaqiri","Siča","Sičaja","Sičajmov","Sičenica","Sigečan","Sigetac","Sigetlija","Sigurnjak","Sijarto","Sikirica","Sikora","Sikra","Sikra Golemac","Siladi","Siladji","Silađev","Silađi","Silajčik","Silajdžić","Silajdžija","Sildajev","Silika","Silvaš","Silvaši","Siljan","Siljanoska","Siljanoski","Simanić","Simatović","Simjanovski","Sinanović","Sinrajh","Sintai","Sinjaković","Siracki Kopić","Sireta","Sirotanović","SirotanovićŠipoš","Sirovica","Sirovina","Sisan","Sita","Sitar","Sitarić","Sitaš","Sivak","Sjauš","Skakić","SkakićBegić","Skala","Skaličić","Skandović","Skelac","Skeledžija","Skeleđija","Skenderija","Skitarelić","Sklabinski","Sklenar","SkokićAzenić","SkokićVučak","Skopalj","Skopljak","Skorupa","Skorupan","Skračić","Skroban","Skroza","Skukan","Skular","Skupnjak","Slabak","Slabinac","Slačanac","Sladaković","Slade","Sladić","Sladin","Sladoja","Sladojević","Sladović","Slakić","Slaković","Slam","Slamek","Slamić","Slanina","Slaninka","Slanovic","Slanovic Kuzmanović","Slanović","Slatina","Slatinac","Slatki","Slaver","Slavica","Slaviček","Slavić","Slavićek","Slavik","Slavinac","Slavković","Slavnić","Slavnović","Slavujević","Slavulj","Slavuljica","Slipac","SliškovićBartoloti","Slivac","Slivar","Slivka","Slivonja","Sloboda","Slobodan","Slobodjanac","Slobođan","Slobođanac","Slogar","Slokan","Slonka","Slonja","Slota","Slovaček","Sluganović","Slukan","Slutaj","Smaić","Smailbegović","Smajić","Smajlović","Smajo","Smakaj","Smažil","Smeška","Smetanin","Smiljan","Smiljanec","Smiljanić","Smješka","Smodlaka","Smolka","Smoljak","Smoljan","Smoljanac","Smoljanec","Smoljanić","Smoljanović","Smrčak","Smrekar","Sobačić","Sobonja","Sočivica","Sodar","Softa","Softa Majer","Soka","Sokač","SokačBalog","SokačConway","Sokačić","Sokać","Sokol Konrad","Sokolar","SokolićBilandžić","SokolićMihalak","Solak","Solanović","Solanjski","Solar","Soldan","Soldat","Soldo Pastar","Soleša","Solga","Solina","Solona","Solonja","Sombathelji","Somborac","Somljačan","Somolanji","Somrak","Sonnenfeld Kadlec","Sontacchi","Soon Han Soo","Sopjanac","Sopka","Sopta","Sosa","Sotinac","Sotirovska","Sovar","Sovina","Spaček","Spahić","Spahija","Spaić","Spajić","Spaqi","Spasenović","Spasenovska","Spasenovski","Spasić","Spasojević","Spasovski","Splavski","Spoljarić","Sprečaković","Sraga","Sraka","Srakić","Srb Petrinšak","Srbljanin","Srbljanović","Srdanović","Srdar","Srdarević","Srđak","Sremac","Srijemac","Srimac","Srmljanin","Srpak","Srša","Sršan","SršićKovač","Stadler","Stajević","Stajić","Stajin","Stajki","Stajković","Stakić","Staklarević","Staklenac","Stakor","Staković","Stamatoski","Stambolija","Stamenić","Stamenković","Stamenkovski","Stamičar","Stanar","Stanarević","Stančer","Stančić","Stančin","Stančirević","Stande","Stanečić","Stanek","Stanešić","Stanglmayr","Staničić","Stanić","StanićKmoniček","StanićRešicki","StanićŠtampek","Stanimijić","Stanimirović","Stanisavljević","Stanislav","Staniša","Stanišić","Stanivuk","Stanivuković","Stankić","Stanko","Stanković","StankovićKuna","StankovićMarton","Stanojčić","Stanojević","Stanojevljević","Stanojlov","Stanojlović","StanojlovićBotić","Stantić","Stanulov","Stanušić","Stanjković","Staparac","Stapić","Starčević","StarčevićDuvnjak","StarčevićMatijaško","StarčevićŠkarica","Starćević","Starešina","Starijaš","Stark","Staščik","Stašćik","Stavrić","Stazić","Stažić","Stefan","Stefankov","Stefanov","Stefanović","Stefanovski","Stefanovski Šefer","Steiner Brezničar","Stepan","Stepanić","Stepanović","Sternad","Stevanović","Stijelja","Stipac","Stipan","Stipančević","Stipandić","Stipanić","Stipanov","Stipanović","StipićVarvodić","Stivaničević","Stjepan","Stjepanek","Stjepanić","Stjepanović","Stjepanovski","StjepićMandić","Stoisavljević","Stojačić","Stojadinov","Stojadinović","Stojak","Stojaković","Stojan","Stojanac","Stojančić","Stojanov","Stojanović","Stojanovski","Stojavić","Stojisavljević","StojkovićMarčetić","Stojmanović","StojnovićOpačić","Stojsavljević","Stokanov","Stokanović","Stokuća","Stolar","Stolla","Strabić","Stracenski","Strahija","Strahinec","Strahinić","Strahinjić","Strahonja","Strajinić","Strajlović","Strajnić","Strajnović","Straka","Strakoš","Stramput","Stranatić","Stranput","Stranski","Stranjak","Strapač","Strapko","Strašek","Straub","Stravka","Stražanac","Stražanček","Strbad","Strbat","Strehovac","Strepački","Strešnjak","Strganac","Strgar","Strikinac","Strinavić","Strižak","Strmota","Strnad","Strpčanin","Strsoglavec","Strugačevac","Strugalović","Strugar","Struhak","Strukar","Stubičan","Stubičar","Stučka","Stupalo","Stupar","Stuparić","Subanović","Subašić","Subatić","Subjak","Subota","Sucala Mateić","Suchanek","Sučija","Suda","Sudar","Sudarević","Sudarić","Suhalj","Suhanek","Suhina","Suhopoljac","Suk Lamot","Sukačić","Sukalić","SuknaićBrinzej","Sulejmani","Sulejmanović","Sulejmanovski","Sulemanoski","Sulimani","Suljagić","Suljkanović","Suman","Sumarev","Sumrak","Sunarić","Superina","Sureta","Surla","Surota","Surovac","Surovčak","Susetka","Suša","Sušac","Sušac Bubić","Sušac Gajić","Sušak","Sušanj","Sušenka","Sušjenka","Sutarić","Suvajac","Suvala","Suvalj","Suvalj Kušter","Suvaljko","Svalina","Svalina Seletković","Svatić","Svečnjak","SverićPtičar","Svetina","Svilanović","Svilar","Svinjarević","Svirac","Svirać","Svoboda","Svoboda Mitoš","Svorcan","Svoren Uzelac","Svraka","Svrakačić","Svrakić","Svrtan","Svržnjak","Svržnjak Capek","Szabo","Szantosy","Szellar","Szentkiraly","Szentkiralyi","Szikra","Szilagy","Szilagyi","Szilvaši","Szombathelyi","Šabaković","Šabalić","Šaban","Šabanagić","Šabani","Šabani Ljutvi","Šabanov","Šabanović","Šabarić","Šabić","ŠabićDumančić","Šabjan","Šac","Šacl","Šaćiri","Šadl","Šafar","Šafarić","Šafarik","Šafran","Šafranko","Šafranj","Šagi","Šagodić","Šagolj","Šagovac","Šahini","Šahinović","Šain","Šainović","Šajatović","Šajber","Šajbl","Šajdler","Šajer","Šajfar","Šajfar Knežević","Šajgaji","Šajgo","Šajh","Šajin","Šajinović","Šajkaš","Šajkunić","Šajkunović","Šajn","Šajnović","Šajtoš","Šajvan","Šaka","Šakač","Šakanović","Šakić","Šakota","Šakotić","Šala","Šalaj","Šalajić","ŠalajićVukić","Šalamon","Šalamun","Šalavarda","Šalavardić","Šaldić","Šalek","Šalić","Šalika Todorović","Šalindrija","Šalinović","Šalković","Šalov","Šalov Jovandžikov","Šalovac","Šamadan","Šamanović","Šambić","Šamija","Šamonik","Šamota","Šamšalović","Šamu","Šamukić","Šandor","Šandorka","Šandrk","Šandro","Šandrovčan","Šangut","Šanić","Šanko","Šanta","Šantak","Šantalab","Šantar","Šantavec","Šantek","Šantić","Šantor","Šantoši","Šanjug","Šapčanin","Šapić","Šapina","Šaponja","Šaponja Lekšan","Šaponjić","Šarabača","Šarabaća","Šarabok","Šarac","Šaravanja","Šarc","Šarčanin","Šarčević","Šarćević","Šardi","Šare","Šarec","Šarek","Šarengradac","Šaretović","Šargač","Šargavinski","Šargovinski","Šarić","ŠarićBisatzky","Šariri","Šarkez","Šarkezi","Šarko","ŠarlahČačić","Šarlija","Šaronić","Šarović","Šaruga","Šarvari","Šaš","Šaša","Šašek","Šašić","Šaško","Šašlić","Šašlin","Šašlin Stipan","Šašo","Šašvari","Šat","Šatara","Šatlan","Šatović","Šatrović","Šatvar","Šaula","Šaulić","Šavora","Ščavničar","Ščerbakov","Ščerbakova","Ščrbak","Ščukanec","Šćasni","Šćepančević","Šćetar","Šćetka","Šćrbak","Šćukanec","Šćurla","Šeat","Šeatović","ŠeatovićWranka","Šebalj","Šebjanić","Šegan","Šegavčić","Šegota","Šejatović","Šekerija","Šekularac","Šelaj","Šelja","Šencaj","Šenica","Šeničar","Šepac","Šeparević","Šeparović","Šepecan","Šeperac","Šepka","Šerbedžija","Šerbeđija","Šerega","Šereš Taslidžić","Šerf Kardov","Šerman","Šeruga","Šesta","Šestak","Šestan","Šestanović","Šestanj","Šeša","Šetka","Šetula","Ševarac","Ševerdija","Šibalić","Šibila","Šijačić","Šijak","Šijaković","Šijan","Šikac","Šikanja","Šiketanc","Šikman","Šilac","Šilipetar","Šilovinac","Šiljak","Šiljak Trifunović","Šimac","Šimak","Šimanovac","Šimanović","Šimara","Šimašek","Šimatić","Šimatović","ŠimenićKovač","ŠimetićHajberger","ŠimićBogdanović","ŠimićŠebalj","Šimleša","Šimlješa","Šimonka","Šimpraga","Šimudvarac Travica","Šimulija","ŠimunićGašpar","ŠimunovićUljarević","Šimurda","Šimurina","Šinka","Šipalo","Šipek Kraševac","Šipka","Šiplika","Šipoc Princhausz","Šiprak","Šiptar","Šipura","Šira","Širac","Širajčić","Šišan","ŠiškićŠpanjević","Šišljagić","Šišuljak","Šivak","Škala","Škalec","Škalic","Škalić","Škamrala","Škara","Škare","Škarica","Škarica Jovkov","Škaričić","Škarić","Škaro","Škaurin","Škergat","Škerlak","Škeva","Škiljaica","Škiljan","Škoda","Školar","Školka","Školka Banović","Školopija","Škorak","Škorjanc","Škorjanec","Škorvaga","Škraba","Škrabak","Škrabić","Škrapec","Škrapić","Škrbac","Škrilac","Škrinar","Škrinjar","Škrinjarić","Škrinjarić Cincar","Škrljac","Škrnjug Majer","Škrobar","Škrpan","Škulac","Škuranec","Škurla","Škvarić","Šlageter","Šlang","Šlanković","Šlat","Šlezak","Šlibar","Šlingar","Šlogar","Šlopar","Šljivac","Šmaguc","Šmaholc","Šmajdek","Šmajzl","Šmital","Šmudla","Šnajdar","Šnajder","Šnajder Kuburić","Šnajkart","Šnalcer","Šnauc","Šnurkar","Šobačić","Šobak","Šoban","Šoban Božić","Šobar","Šobat","Šobota","Šodolovac","Šoja","Šoja Rikert","Šojat","Šokac","Šokčić Matković","Šokman","Šola","Šolaja","Šolak","Šolak Petković","Šolta","Šolja","Šoljan","Šoma","Šomođvarac","Šomoljanski","Šomorja","Šoponjaj","Šorak","Šorda","Šorman","Šormaz","Šormaz Mitrović","Šorša","Šostar","Šostarec","Šostarko","Šoša","Šoštar","Šoštarec","Šoštarek","Šoštarić","ŠoštarićVarga","Šoštarko","Šota","Šotanji","Šotman","Šotra","Šovag","Šovagović","Šovakov","Špac","Špajh","Špajzer","Špalat","Špalj","Špandler","Španiček","Španić","Španiel","Španović","Španjević","ŠpanjevićBukarica","Španjić","Šparavec","Špehar","Špelac","Šperac","Šperanda","Šperjak","Špernoga","Špernjak","Špica","Špičak","Špika","Špika Polić","Špiljak","Špionjak","Špionjak Marić","Špiranec","Špiranović","ŠpiranovićKanižaj","Šplajt","Špoljar","Špoljar Bosanac","Špoljarec","Špoljarević","ŠpoljarevićTurk","Špoljarić","ŠpoljarićJelić","ŠpoljarićPerhat","ŠpoljarićZlatić","Špoljarinec","Šprajcer","Špralja","Špringer Kovačević","Špringer Margetić","Špringman","Šrajber","Šrajer","Šrajer Hacker","Šrajner","Šram","Šramek","Štaba","ŠtabaŽulj","Štabek","Štadler","Štagljar","Štainer","Štajdohar","Štajduar","Štajduhar","Štajenbrikner","Štajerac","Štajfer","Štajhofer","Štajmaher","Štajmec","Štajnbrikner","Štajnbrinker","Štajner","Štajner Mehičić","Štajnfeld","Štakić","ŠtakićBruić","Štakor","Štalman","Štamberger","Štambuk","Štampalija","Štampar","Štampek","Štampf","Štampfer","Štancer Radić","Štanfel","Štangl","Štargl","Štark","Štasni","Štasny","Štaub","Štaubringer","Štefan","Štefan Ivanišić","Štefan Stipić","Štefanac","Štefančić","Štefanec","Štefanek","Štefanić","Štefanko","Štefanović","Štefičar","Štegmajer","Štembergar","Štepanko","Šteta","Štetka","Štifan","Štimac","Štimac Glaser","Štimac Popić","Štirjan","Štoka","Štokan","Štokbauer","Štola","Štolba","Štolfa","Štorat","Štrajbl","Štrak","Štrak Grgić","Štrasser","Štraub","Štraus","Štrbac","Štrbac Tišma","Štrbenac","Štrekelj Pađen","Štriga","Štrigar","Štrkalj","Štroliga","Štromar","Štuka","Štula","Štulac","Štulina","Šturman","Šuba","Šubara","Šubarić","Šubaša","Šućura","Šuflaj","Šugar","Šugarić","Šuica","Šujica","Šukunda","Šukurma","Šulava","Šulhof Jagodić","Šulina","Šulmajster","Šulovnjak","Šuljak","Šuman","Šumanovac","Šumanović","Šumar","Šumiga","Šumrada","Šunalić","Šunda","Šundalić","Šuniga","Šunjara","Šunjerga","Šupljika","Šuprina","Šuprna","Šura","Šurina","Šurjan","Šurlan","Šustar","Šusterajter","Šuša","Šušak","Šušak Bagarić","Šušnjar","Šušnjara","Šuštar","Šuta","Šutak","Šutak Kosić","Šutalo","Šutalo Ibrahimpašić","Šuvak","Šuvakov","Šuvaković","Šuvarić","ŠuveljakŽuljević","Švab","Švabe","Švabel","Švabelj","Švabić","Švacov","Švaganović","Švagelj","Švager","Švajbert","Švajcer","Švajger","Švajgert","Švajhofer","Švajnbert","Švaljek","Švarc","Švarcer","Švarcmajer","Švarić","Švegar","Švenda","Švetak","Švigač","Švonja","Švraka","Tabaček","Tabain","Tabak","Tabaković","Tabor","Tabori","Taborin","Tabula","Tacko","Tačković","Tadej","Tadić","TadićĆavar","TadićMatić","Tadija","Tadijan","Tadijanov","Tadijanović","Tagliber","Tagliber Modrić","Tahić","Tahiri","Tahirović","Tahler","Tahtler","Tairi","Tajfl","Tajhman","Tajhman Polgar","Tajić","Tajmer","Tajs","Tajz","Takacz","Takač","Takać","Takalić","Takaro","Takov","Talafuk","Talaja","Talajić","Talan","Talapka","Talapko","Talas","Talavanić","Taler","Taletović","Talić","Talijan","Talijanac","Taloš","Talpai","Talvizer","Tamaš","Tambolaš","Tame","Tame Ivaković","Tamindžić","Tanacković","Tanasić","Tanasijević","Tanasković","Tanazović","Tančak","Tančik","Tandara","Tandarić","Tanevska","Tanevski","Tanić","Tankosić","Tanocki","Tanović","Tanurdžić","Tanžera","Tanjer","Tanjga","Tapšanj","Tapšanji","Tar","Taraba","Tarabarić","Taradan","Taradi","Tarakčija","Tarandek","Tarandžić","Taranić","TaranićVagner","Taraš","Tarbuk","TarbukČivić","Tarcal","Tardik","Tarđanin","Targuš","Tariba","Tarle","Tarlošy","Tarnai","Tarnaj","Tarodi","Tasić","Taslak","Taslidžić","Tasovski","Tassone","Tašković","Tatai","Tataj","Tataji","Tatalović","Tatar","Tatarević","Tatarin","Tatarko","Tatarović","Tatić","Tatomir","Tatomirović","Taus","Taušan","Tauzović","Tavas","Taves","Tavić","Tavra","Tavrić","Tegeltija","Tekavčić","Telak","Telarović","Telebar","Telenta","Telišman Krha","Temaj","Teneta","Tenžera","Teofanović","Tepavac","Ternaj","Teskač","Teskera","Tesla","Tešanac","Tešankić","Tešanov","Tešanović","Tešija","Tettmann","Teufel Damjanov","Tevanović","Than","Thellman","Thiel Manfred","Thomajer","Thomas Majdenić","Tiban","Tibinac","Tibljaš","Tibor Kovač","Tiborc Juriša","Tica","Tičac","Tičak","Tićak","Tidlačka","Tiervald","Tierwald","Tigandžin","Tijan","Tijanić","Tijardović","Tikas","Tilman","Tilman Crnov","Timar","Timarac","Timarić","Tinaher","Tipura","Tirvald","Tirvald Vrhovski","Tisai","Tisaj","Tisanić","Tissauer","Tišljar","Tišljarić","Tišma","Tišma Radmanić","Tivadar","Tivanovac","Tkačuk","Tkalac","Tkalčec","Tkalčević","Tkalčić","TkalčićDulić","Tkalec","Tkalec Povoljnjak","Tobijas","Tobijaš","Todanović","Todorovska","Togonal","Tojaga","Tojagić","Tojzan","Toka","Tokai","Tokalić","TokićMajstorović","Tolmačević","Tolnai","Tolnaj","TolušićLacković","Toljan","Toljanić","Tomac","Tomaić","Tomakić","Tomaković","Tomala","Toman","Tomanček","Tomanić","Tomanović","Tomas","Tomasić","Tomasino","Tomasović","Tomasy","Tomaš","Tomašegović","Tomašek","Tomašev","Tomašević","TomaševićGregorović","TomaševićRigo","Tomaši","Tomašić","Tomašićević","Tomaško","Tomašković","Tomaz","TomićGotal","TomićMartinović","TomićObrdalj","TomićSablić","Tominac","Tomka","Tomljanović","Tompa","Tomrecaj","Tončalek","Tonkovac","Topal","Topalić","Topalov","Topalović","Toplak","Topolovac","Topolovčan","Torbarina","Torbica","Tordinac","Torijanac","Torjanac","Torlaković","Torloina","Tormaš","Toskova","Toša","Toša Berečić","Tošanović","Tot Antal","Tot Kaša","Tot Marčik","Tota","Totaj","Totarvaj","Toth Tucak","TotićMatess","Totman","Tovarloža","Tovarović","Tovjanin","Trac","Traffa","Traic","Traičevska","Traičevski","Trajanoski","Trajanović","Trajanovski","Trajber","Trajković","Traljić","Tram","Tramišak","Tramošljanin","Tramposch","Trampus","Tramšek","Trančar","Tratnjak","Trauber","Travančić","Travica","Trazer","Trbara","Trboglav","Trčak","Trčak Ocvirek","Trenka","Trepač","TrepšićBašić","Tresiglavić","Treskanica","Treskavica","Tresoglavić","Tretinjak","Tribuljak","Tripolski Kovačević","Triva","Trivanović","Trkulja","Trlaja","Trlajić","Trnka","Trnjanov","Trobonjača","Troha","Trojan","Trplan","Trputac","Trstenjački","Trstenjak","Trtanj","Trtica","Trubelja","Trubeljak","Truhan","Truhar","Trupeljak","Trupina","Trvalovski","Tuba","Tubanović","Tubanski","Tubanjski","Tucak","Tucak Roguljić","Tucaković","Tučanac","Tučkar","Tudaković","Tudja","Tuđan","Tuđman","Tukara","Tukera","Tuksar","Tulla","Tuma","Tuma Pavlov","Tumbas","Tumpa","Tunanović","Tunkova","Tunja","Tupeljak","Turajlić","Turalija","Turčan","Turda","Turibak","Turičar","Turina","Turina Lončar","Turinski Lazić","Turjak","TurjakČebohin","Turkalj","Turkalj Topal","TurkovićGibanjek","Turnadžić","Turšćak","Turza","Tustonja","Tuškan","Tuškanović","Tušla","Tuta","Tutavac","Tuzlak","Tuzlak Kurtović","Tvarog","Tvrdoreka","Tvrdorjeka","Ubavić","Ubavin","Ucal","Udarević","UdovićLazarević","Udvardi","Udvari","Ugarak","Ugarčić","UgarčićHardi","Ugarković","UgarkovićBiškup","Uglarik","Ugljanac","Ugljar","Ugljarević","Uglješa","Ugrai","Ugrica","Ugrina","Ujhazi","Ujvari","Ujvari Čeh","Ujvary Cseh","Ukaj","Ukmar","Ukropina","UlakovićVojinović","Ulanicki","Uldrijan","Ulman","Uljarević","Umiljanović","Umolac","Unčanin","Ungar","Unterajner","Uranić","Uranjek","Uranjek Varga","Urban","Urban Hering","Urbanek","Urbanović","Urbanovski","Urbanovsky","Urmanac","Ursa","UrsićMolnar","Uršanić","Urtajl","Urukalo","Ustalić","Ušak","Ušćebrka","Uštar","Uštipak","Utješanović","UtrobičićRanđelović","Uvalić","Uvanović","Uzelac","Užanicki","Užanicky","Užanitski","Užar","Užarević","UžarevićTodorović","Vaci","Vaci Lajoš","Vacić","Vacka","Vačora","Vačora Sapanjoš","Vadas","Vadaski","Vadla","Vadlja","Vadnjak","Vađon","Vagenhofer","Vagner","Vagroš","Vahala","Vahl","Vaht","Vaip","Vajagić","Vajak","Vajda","Vajda Mlinaček","Vajdička","Vajdić","Vajdlih","Vajgert","Vajić","Vajing","Vajlandić","Vajler","Vajn","Vajnand","Vajnberger","Vajngerl","Vajngli","Vajnper","Vajs","Vajsenbek","Vajtner","Vajzenbach","Vajzenbac lić","Vajzer","Vakanjac","Vakareskov","Vakoš","Vakula","Val","Valašek","Valcer","Valdec","Valdin","Valečić","Valek","Valenčak","Valenčić","ValenčićBrkić","Valent","Valenta","Valentak","Valenteković","Valentić","ValentićButković","ValentićJasnić","ValentićVukadinović","Valentin","Valentinčić","Valer","Valeri","Valerie","Valešić","Valetić","Valić","ValićMarjanac","Validžić","ValidžićHalak","Valiđić","Valinčić","Valkai","Valkovac","Valković","Valo","Valović","Valpovac","Valter","Valušek","Valjak","ValjakŠtrbac","Valjan","Valjavec","Valjetić","Valjin","Valjkovac","Vampatić","Vampola","Vampovac","Vampula","Vampula Larma","Van","Van Der Linde","Van Genderen","Van Hemert","Van Meijeren","Vancaš","Vanče","Vanček","Vančevski","Vančić","Vančura","Vandić","Vandža","Vanđa","Vanek","Vanevska","Vanevski","Vangelovska","Vangelovski","Vaniček","Vanišević","VanišićPanico","Vanko","Vanković","Vanstone Josipović","Vanstone Mrdeša","Vanjek","Vanjevac","Varadi","Varaždinac","Varda","Vardić","Vareha","Varenica","Varenina","Varešanović","Vareško","Varevac","Varezić","Varga","Varga Betz","Varga Kojić","Varga Kučić","Varga Ljubić","Varganović","Vargaš","Vargek","Vargić","Vargović","Varhold","Varičak","Varjačić","Varkonji","Varlam","Varmuža","Varnai","Varnica","Varošanac","Varoščić","Varšava","Vartušek","Varvir","Varvodić","Varzić","VarzićPavković","Varžić","VaržićBiuklia","VaržićBiuklija","Vasić","VasićĐokić","Vasilić","Vasilijević","Vasilj","Vasiljev","Vasiljević","Vasiljevska","Vasiljevski","Vasko Osim","Vaskrsić","Vasquez","Vastl","Vasung","Vaš","Vašadi","Vašalić","Vašanda","Vašarević","Vašarhelji","Vašaš","Vašek","Vaška","Vaškaj","Vaštag","Vatavuk","Vatovec","Vaupotić","Vavan","Vavetić","Vavidec","Vavra","Vavrikov","Vavroš","Vavžek","Vavžik","Vazdar","Važanić","Važić","Včeva","Vdoviak","Vdovjak","Večanin","Večenaj","Večerina","Vedernjak","Vegar","Vehabović","Veizenbach","Veka","VekićKljaić","Vela","Velat","Veledar","Veličan","Velikanović","Velikinac","Veljanov","Veljanova","Veljanović","Veman","Vemenac","Venžera","Veraja","Verhas","Verhas Alt","Verhaz","Veriga","Verinac","Verkman","Vernački","Vernath","Veršanski","Verzak","VesanovićDvornik","VeselicaČatipović","Veselovac","Vestemar","Vešara","Vešligaj","Veverka","Vezaj","Vezmar","Vezmarović","Viandt","Vice Trlaja","Vichta","Vida","Vidaček","Vidačić","Vidak","Vidakovic","Vidaković","VidakovićBošnjak","VidakovićRomanić","Vidakušić","Vidanec","Vidanović","Vidas","Videčak","Videćak","Viderščak","Videršćak","Vidlak","Vidmar","Vidosavljević","VidošićStrugačevac","VidovićMikac","Vidra","Vidrač","Vidranski","VidranskiŠkorić","Vidranjski","Viduka","Vigand","Viharev Balaić","Vihovanec","Vihta","Vijačkić","Vijant","Vijevac","Vila","Vilagoš","Vilajtović","Viland","Vilanj","Vilenica","Vileta","Viljanac","Viljevac","Vinaj","Vinarić","Vinceljak","Vincenc Spasovski","VincetićSkroban","Vinčak","VinkeševićRadić","Vinketa","Vinogradac","Vinogradac Andraković","Viola","Viola Franz","Virag","ViragŠandor","VirgejĐurašević","Virovac","Visak","Vislavski","Višekruna","Vištica","Vitanović","Vitas","Vitman","Vittman","Viviora","Viviora Rous","Vivjora","Vizentaner","Vizentaner Lendić","Vizjak","Vještica","Vladetić","Vladić","Vladika","Vladimir","Vladisavljević","Vladova","Vladović","Vladušić","Vlah","Vlahek","Vlahinja","Vlaho","Vlahović","Vlahušić","Vlaičević","Vlainić","VlainićVorih","Vlaisavljević","Vlajčić","Vlajić","Vlajinić","Vlajkov","Vlajnić","Vlajsović","Vlaović","Vlasalija","Vlastelić","Vlašić","Vlaškalić","Vlaškovac","Vlatković","Vočanec","Voćanec","Vodanović","Vodeničar","Vodopija","Vođinac","VogronićOpačić","Vojaković","VojakovićFingler","Vojanić","Volak","Volar","Volarev","Volarević","Volarić","Volfand","Vončina","Vondra","Vondrak","Vonjak","Vorkapić","Vosab","Vošanović","Vovra","Vrabac","Vrabec","Vrabel","Vračar","Vračarić","Vračević","Vračić","Vrag","Vragolović","Vragović","Vrajić","Vran","Vranaričić","Vrančić","Vrandečić","Vraneš","Vranešević","Vranešić","Vranić","Vranka","Vrankić","Vranković","Vranović","Vranješ","VranješBrković","VranješMiličić","VranješMilošević","Vranješević","Vranjić","Vranjković","VranjkovićĆenan","VranjkovićKnežević","Vrapčenjak","Vratarić","Vratović","Vrban","Vrban Ružić","Vrbanac","Vrbanc","Vrbanec","Vrbanek","Vrbanić","Vrbanus","Vrbanjac","Vrbas","Vrbaslija","Vrbaški","Vrbica","Vrca","Vrcan","Vrdoljak","Vrđuka","Vrebac","Vrekalić","Vrekalović","Vrga","Vrhar","Vrhovac","Vrkljan","Vrlika","Vrlja","Vrljičak","Vrpoljac","Vrsajković","Vrselja","Vrtačnik","Vrtar","Vrtarić","VrtarićDubrović","VrtarićSabljo","Vrućina","Vučak","Vučak Grunbaum","Vučanović","Vučevac","Vučkovac","Vudrag","Vudrag Buljević","Vudrak","VugdelijaŽižić","Vuglač","Vuica","Vujaklija","Vujaklija Crnomarković","Vujaković","Vujanac","Vujanić","Vujanović","Vujasenović","Vujasin","Vujasinović","Vujatović","Vujeva","Vujica","Vujnovac","Vuka","Vukadin","Vukadin Markulinčić","Vukadin Romić","Vukadinović","Vukajlić","Vukajlija","Vukajlović","Vukalović","Vukaljević","Vukanović","Vukas","Vukasović","VukasovićLončar","VukasovićPejković","Vukašinac","Vukašinec","Vukašinović","Vukelja","Vukman","Vukmanić","Vukmanov","Vukmanović","Vukmirica","Vukobradović","Vukobrat","Vukobratović","Vukoja","Vukoja Matanović","Vukoja Pavličić","Vukojevac","VukojevićBabić","VukojevićTomašić","Vukomanović","Vukosav","Vukosavljević","Vukovac","VukovićDijanović","VukovićMihalić","Vukovljak Kralj","Vuksan","Vuksanić","VuksanićPuljek","Vuksanović","VukšićMihaljević","Vulama","Vuleta","Vuleta Blažević","Vunak","Vunjak","Vuradin","Vurdelja","Wagner","Waldman","Walkiewicz","Walleitner","Waller","Walter","Walz","Walzak","Washington","Wastl","Wayn","Wdoviak","Wdowiak","Wedral","Weigand","Weinand","Werkmann","Wershansky","Wertag","Westermajer","Wiedman","Wiessentaner","Wilhelm Vrbanić","Wilhem Arsić","Wolf Tucaković","Yahia","Yakub","Ylmaz","Zabjan","Zabludski","Zaboš","Zabrdac","Začek","Zadković","Zadnik","Zadol","Zadravec","Zadrić","Zadro","Zafred","Zagorac","Zagorčak","Zagorec","Zagorščak","Zagoršćak","Zagoršek","Zagrajski","Zagvozda","Zagvozda Grahovac","Zaharčev","Zaharov","Zahatek","Zahiri","Zahirović","ZahirovićPoslon","Zahiti","Zahn","Zahora","Zaibet","Zaić","Zajac","Zajačko","Zajček","Zajec","Zajic","Zajic Stojanović","Zajkić","Zajović","Zakany","Zakanj","Zakanji","Zake","Zakić","Zaklan","Zaklanac","Zaklanović","Zaković","Zakšek","Zakupski","Zalaj","Zalaji","Zalar","Zalezina","Zaleznik","Zaležak","Zalogar","Zaloscer","Zalović","Zamaklar","Zambo","Zamečnik","Zamolinski","Zamulinski","Zamuljinski","Zandt","Zaneti","Zaneti Suzić","Zanoški","Zanze","Zanjaši","Zaoral","Zapalac","Zaputil","Zaračko","Zaradić","Zarecki","Zarev","Zarić","Zarka","Zarli","Zaspan","Zaterini","Zatezalo","Zatko","Zattherini","Zavacki","Zavada","Zavagni","Zavišić","Zavođa","Zavor","Zavorski","Završki","Zbanatski","Zbodulja","Zdarilek","Zdelar","Zdelar Anočić","Zdelar Ivić","Zdeličan","Zdenčan","Zdenčanović","Zdilar","Zdjelar","Zdjelar Czigler","Zdjelar Jusup","Zdjelarević","Zdravčević","ZdravčevićVrkić","Zdravković","Zeba","Zec Serdar","Zechmajster","Zegnal","Zekan","ZekićSušac","Zeko Pivač","Zelenika","Zelenka","Zelenjak","ZelićŽeravica","Zelinac","Zeljak","Zeman","Zemljak","Zemljak Spechtenhauser","Zenhausern","Zenuta","Zetaić","Zetajić","Zezula","Zglavnik","Zgonjanin","Zgrablić","Zibar","Zidar","Zidar Milić","Zidarević","Zidarić","Zijan","Zima","Zimaj","Zimmerman","Zimmermann","Zimonja","Zinaić","ZinaićBlažinkov","Zinajić","Zita","Zjakić","Zjalić","Zlatanović","Zlatar","Zlatarek","Zlatarević","Zlatarić","Zlatić","ZlatićKavgić","Zlatković","Zlatović","Zlatunić","Zlokapa","Zlokolica","Zlosa","Zlovarić","Zmaić","Zmajić","Zmajšek","Znaor","Znika","Zobenica","Zobundžija","Zolaj","Zolaji","Zolota","Zoraj","Zoraja","Zorbas","Zorbaz","Zorica","Zorman","Zoroja","Zovak","Zovo Susak","Zrakić","Zrinščak","Zrmanjac","Zrna","Zrno Dimnjašević","Zuanović","Zubac","Zubac Ištuk","Zubaj","Zubak","Zuban","Zubonja","Zukan","Zulbari","Zundanović","Zurak","Zurapović","Zuščak","Zušćak","Zuzjak","Zuzjak Novak","Zvanić","Zvardon","Zvekan","Zvekanov","Zvekanović","Zveržina","Zvocak","Zvonar","Zvonarek","Zvonarević","Zvonarić","Žabarović","Žabčić","Žabić","Žaček","Žada","Žadanji","Žagač","Žagar","Žagarac","Žagarova","Žago","Žaja","Žajdlik","Žajlik","Žaki","Žaknić","Žakula","Žalac","Žalako","Žalik","Žalonkin","Žampak","Žanić","Žanija","Žanko","Žaper","Žaper Radičević","Žarak","Žarić","Žarko","Žarković","ŽarkovićMaršal","Ždrale","Žeđa","Žegarac","Žegura Schonberger","Želka","Željeznak","Željeznjak","Žemla","Žerav","Žeravica","Žeravica Lang","Žerjav","Žganec","Žganjar","Žganjer","Žgela","Žgrabljić","Žibrat","Židar","Žido Lazarević","Žigman","Žiha","Žilavec","Žiljak","Žindarec","Žipac","Žiraj","ŽirošTatalović","Žiška","Žitnjak","Živadinović","Živaković","ŽivakovićKerže","Živalj","Živaljić","Živanić","Živanov","Živanović","Živičnjak","ŽivićĆojbašić","ŽivkovićUbavin","Žiža","Žižek","Žižanović","ŽižanovićŠahini","ŽižićAbramović","Žmegač","Žnidarec","Žnidarić","Žnidaršić","Žohar","Žolja","Žonka","Žulj Raštegorac","ŽuljevićGrafina","Žuna","Žuna Pfeiffer","Župan","Župan Perasić","Župančić","Županić","Županović","Župarić","Žurga","Žuro Tijardović","Žuvela","Žuža","Žužak","Žužanić","ŽužanićKlapan","Žvab"]})(Ekn);var a7a=Ekn.exports,Skn={exports:{}};(function(t){t.exports=["g.","gđa.","gđa.","gđa","dr."]})(Skn);var o7a=Skn.exports,wkn={exports:{}};(function(t){t.exports=["dipl.oecc","dipl.ing"]})(wkn);var s7a=wkn.exports,_kn={exports:{}};(function(t){t.exports={descriptor:["Glavni","Senior","Korporativni","Nacionalni","Regionalni","Okružni","Središnji","Globalni","Međunarodni","Operativni"],level:["programski","brand","sigurnosni","marketing","implementacijski","integracijski","funkcionalni","tržišni","grupni","aplikacijski","optimizacijski","operativni","infrastrukturni","komercijalni","prodajni","web","financijski","podatkovni","logistički","kreativni","računovodstveni","financijski"],job:["voditelj","suradnik","službenik","menadžer","inženjer","specijalist","direktor","koordinator","administrator","arhitekt","analist","dizajner","planer","ekspert","savjetnik","organizator","tehničar","konzultant","asistent","agent","predstavnik","referent","strateg"]}})(_kn);var l7a=_kn.exports,Tkn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name}, #{suffix}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(Tkn);var c7a=Tkn.exports;(function(t){var e={};t.exports=e,e.male_first_name=n7a,e.first_name=r7a,e.female_first_name=i7a,e.last_name=a7a,e.prefix=o7a,e.suffix=s7a,e.title=l7a,e.name=c7a})(Akn);var u7a=Akn.exports,Ckn={exports:{}},kkn={exports:{}};(function(t){t.exports=["### ###","### ###","### ###","### ### ####","+385 ## ### ###","00385 ## ### ###"]})(kkn);var d7a=kkn.exports;(function(t){var e={};t.exports=e,e.formats=d7a})(Ckn);var cNt=Ckn.exports,Rkn={exports:{}},Mkn={exports:{}};(function(t){t.exports={wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"],wide_context:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"],abbr:["sij","vel","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],abbr_context:["sij","vel","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"]}})(Mkn);var h7a=Mkn.exports,Nkn={exports:{}};(function(t){t.exports={wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],wide_context:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],abbr:["ned","pon","uto","sri","čet","pet","sub"],abbr_context:["ned","pon","uto","sri","čet","pet","sub"]}})(Nkn);var f7a=Nkn.exports;(function(t){var e={};t.exports=e,e.month=h7a,e.weekday=f7a})(Rkn);var p7a=Rkn.exports;(function(t){var e={};t.exports=e,e.title="Hrvatski",e.address=Z$a,e.internet=t7a,e.name=u7a,e.phone_number=cNt,e.cell_phone=cNt,e.date=p7a})(nkn);var m7a=nkn.exports,Ikn={exports:{}},Pkn={exports:{}},Okn={exports:{}};(function(t){t.exports=["##","#"]})(Okn);var g7a=Okn.exports,Lkn={exports:{}};(function(t){t.exports=["#####"]})(Lkn);var v7a=Lkn.exports,Bkn={exports:{}};(function(t){t.exports=["Aceh","Sumatera Utara","Sumatera Barat","Jambi","Bangka Belitung","Riau","Kepulauan Riau","Bengkulu","Sumatera Selatan","Lampung","Banten","DKI Jakarta","Jawa Barat","Jawa Tengah","Jawa Timur","Nusa Tenggara Timur","DI Yogyakarta","Bali","Nusa Tenggara Barat","Kalimantan Barat","Kalimantan Tengah","Kalimantan Selatan","Kalimantan Timur","Kalimantan Utara","Sulawesi Selatan","Sulawesi Utara","Gorontalo","Sulawesi Tengah","Sulawesi Barat","Sulawesi Tenggara","Maluku","Maluku Utara","Papua Barat","Papua"]})(Bkn);var A7a=Bkn.exports,Dkn={exports:{}};(function(t){t.exports=["Airmadidi","Ampana","Amurang","Andolo","Banggai","Bantaeng","Barru","Bau-Bau","Benteng","Bitung","Bolaang Uki","Boroko","Bulukumba","Bungku","Buol","Buranga","Donggala","Enrekang","Gorontalo","Jeneponto","Kawangkoan","Kendari","Kolaka","Kotamobagu","Kota Raha","Kwandang","Lasusua","Luwuk","Majene","Makale","Makassar","Malili","Mamasa","Mamuju","Manado","Marisa","Maros","Masamba","Melonguane","Ondong Siau","Palopo","Palu","Pangkajene","Pare-Pare","Parigi","Pasangkayu","Pinrang","Polewali","Poso","Rantepao","Ratahan","Rumbia","Sengkang","Sidenreng","Sigi Biromaru","Sinjai","Sunggu Minasa","Suwawa","Tahuna","Takalar","Tilamuta","Toli Toli","Tomohon","Tondano","Tutuyan","Unaaha","Wangi Wangi","Wanggudu","Watampone","Watan Soppeng","Ambarawa","Anyer","Bandung","Bangil","Banjar (Jawa Barat)","Banjarnegara","Bangkalan","Bantul","Banyumas","Banyuwangi","Batang","Batu","Bekasi","Blitar","Blora","Bogor","Bojonegoro","Bondowoso","Boyolali","Bumiayu","Brebes","Caruban","Cianjur","Ciamis","Cibinong","Cikampek","Cikarang","Cilacap","Cilegon","Cirebon","Demak","Depok","Garut","Gresik","Indramayu","Jakarta","Jember","Jepara","Jombang","Kajen","Karanganyar","Kebumen","Kediri","Kendal","Kepanjen","Klaten","Pelabuhan Ratu","Kraksaan","Kudus","Kuningan","Lamongan","Lumajang","Madiun","Magelang","Magetan","Majalengka","Malang","Mojokerto","Mojosari","Mungkid","Ngamprah","Nganjuk","Ngawi","Pacitan","Pamekasan","Pandeglang","Pare","Pati","Pasuruan","Pekalongan","Pemalang","Ponorogo","Probolinggo","Purbalingga","Purwakarta","Purwodadi","Purwokerto","Purworejo","Rangkasbitung","Rembang","Salatiga","Sampang","Semarang","Serang","Sidayu","Sidoarjo","Singaparna","Situbondo","Slawi","Sleman","Soreang","Sragen","Subang","Sukabumi","Sukoharjo","Sumber","Sumedang","Sumenep","Surabaya","Surakarta","Tasikmalaya","Tangerang","Tangerang Selatan","Tegal","Temanggung","Tigaraksa","Trenggalek","Tuban","Tulungagung","Ungaran","Wates","Wlingi","Wonogiri","Wonosari","Wonosobo","Yogyakarta","Atambua","Baa","Badung","Bajawa","Bangli","Bima","Denpasar","Dompu","Ende","Gianyar","Kalabahi","Karangasem","Kefamenanu","Klungkung","Kupang","Labuhan Bajo","Larantuka","Lewoleba","Maumere","Mataram","Mbay","Negara","Praya","Raba","Ruteng","Selong","Singaraja","Soe","Sumbawa Besar","Tabanan","Taliwang","Tambolaka","Tanjung","Waibakul","Waikabubak","Waingapu","Denpasar","Negara,Bali","Singaraja","Tabanan","Bangli"]})(Dkn);var y7a=Dkn.exports,$kn={exports:{}};(function(t){t.exports=["#{city_name}"]})($kn);var b7a=$kn.exports,Fkn={exports:{}};(function(t){t.exports=["Ds.","Dk.","Gg.","Jln.","Jr.","Kpg.","Ki.","Psr."]})(Fkn);var x7a=Fkn.exports,jkn={exports:{}};(function(t){t.exports=["#{street_prefix} #{Name.first_name}","#{street_prefix} #{Name.last_name}"]})(jkn);var E7a=jkn.exports,Hkn={exports:{}};(function(t){t.exports=["#{street_name} no #{building_number}"]})(Hkn);var S7a=Hkn.exports,Ukn={exports:{}};(function(t){t.exports=["Indonesia"]})(Ukn);var w7a=Ukn.exports;(function(t){var e={};t.exports=e,e.building_number=g7a,e.postcode=v7a,e.state=A7a,e.city_name=y7a,e.city=b7a,e.street_prefix=x7a,e.street_name=E7a,e.street_address=S7a,e.default_country=w7a})(Pkn);var _7a=Pkn.exports,zkn={exports:{}},Gkn={exports:{}};(function(t){t.exports=["PT","CV","UD","PD","Perum"]})(Gkn);var T7a=Gkn.exports,Vkn={exports:{}};(function(t){t.exports=["(Persero) Tbk","Tbk"]})(Vkn);var C7a=Vkn.exports,Kkn={exports:{}};(function(t){t.exports=["#{prefix} #{Name.last_name}","#{Name.last_name} #{suffix}","#{prefix} #{Name.last_name} #{suffix}"]})(Kkn);var k7a=Kkn.exports;(function(t){var e={};t.exports=e,e.prefix=T7a,e.suffix=C7a,e.name=k7a})(zkn);var R7a=zkn.exports,Wkn={exports:{}},Qkn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","gmail.co.id","yahoo.co.id"]})(Qkn);var M7a=Qkn.exports,qkn={exports:{}};(function(t){t.exports=["com","net","org","asia","tv","biz","info","in","name","co","ac.id","sch.id","go.id","mil.id","co.id","or.id","web.id","my.id","biz.id","desa.id"]})(qkn);var N7a=qkn.exports;(function(t){var e={};t.exports=e,e.free_email=M7a,e.domain_suffix=N7a})(Wkn);var I7a=Wkn.exports,Ykn={exports:{}},Jkn={exports:{}};(function(t){t.exports={wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],wide_context:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],abbr:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ags","Sep","Okt","Nov","Des"],abbr_context:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ags","Sep","Okt","Nov","Des"]}})(Jkn);var P7a=Jkn.exports,Zkn={exports:{}};(function(t){t.exports={wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],wide_context:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],abbr:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbr_context:["Min","Sen","Sel","Rab","Kam","Jum","Sab"]}})(Zkn);var O7a=Zkn.exports;(function(t){var e={};t.exports=e,e.month=P7a,e.weekday=O7a})(Ykn);var L7a=Ykn.exports,Xkn={exports:{}},eRn={exports:{}};(function(t){t.exports=["Abyasa","Ade","Adhiarja","Adiarja","Adika","Adikara","Adinata","Aditya","Agus","Ajiman","Ajimat","Ajimin","Ajiono","Akarsana","Alambana","Among","Anggabaya","Anom","Argono","Aris","Arta","Artanto","Artawan","Arsipatra","Asirwada","Asirwanda","Aslijan","Asmadi","Asman","Asmianto","Asmuni","Aswani","Atma","Atmaja","Bagas","Bagiya","Bagus","Bagya","Bahuraksa","Bahuwarna","Bahuwirya","Bajragin","Bakda","Bakiadi","Bakianto","Bakidin","Bakijan","Bakiman","Bakiono","Bakti","Baktiadi","Baktianto","Baktiono","Bala","Balamantri","Balangga","Balapati","Balidin","Balijan","Bambang","Banara","Banawa","Banawi","Bancar","Budi","Cagak","Cager","Cahyadi","Cahyanto","Cahya","Cahyo","Cahyono","Caket","Cakrabirawa","Cakrabuana","Cakrajiya","Cakrawala","Cakrawangsa","Candra","Chandra","Candrakanta","Capa","Caraka","Carub","Catur","Caturangga","Cawisadi","Cawisono","Cawuk","Cayadi","Cecep","Cemani","Cemeti","Cemplunk","Cengkal","Cengkir","Dacin","Dadap","Dadi","Dagel","Daliman","Dalimin","Daliono","Damar","Damu","Danang","Daniswara","Danu","Danuja","Dariati","Darijan","Darimin","Darmaji","Darman","Darmana","Darmanto","Darsirah","Dartono","Daru","Daruna","Daryani","Dasa","Digdaya","Dimas","Dimaz","Dipa","Dirja","Drajat","Dwi","Dono","Dodo","Edi","Eka","Elon","Eluh","Eman","Emas","Embuh","Emong","Empluk","Endra","Enteng","Estiawan","Estiono","Eko","Edi","Edison","Edward","Elvin","Erik","Emil","Ega","Emin","Eja","Gada","Gadang","Gading","Gaduh","Gaiman","Galak","Galang","Galar","Galih","Galiono","Galuh","Galur","Gaman","Gamani","Gamanto","Gambira","Gamblang","Ganda","Gandewa","Gandi","Gandi","Ganep","Gangsa","Gangsar","Ganjaran","Gantar","Gara","Garan","Garang","Garda","Gatot","Gatra","Ghani","Gibran","Gilang","Hairyanto","Hardana","Hardi","Harimurti","Harja","Harjasa","Harjaya","Harjo","Harsana","Harsanto","Harsaya","Hartaka","Hartana","Harto","Hasta","Heru","Himawan","Hadi","Halim","Hasim","Hasan","Hendra","Hendri","Heryanto","Hamzah","Hari","Imam","Indra","Irwan","Irsad","Ikhsan","Irfan","Ian","Ibrahim","Ibrani","Ismail","Irnanto","Ilyas","Ibun","Ivan","Ikin","Ihsan","Jabal","Jaeman","Jaga","Jagapati","Jagaraga","Jail","Jaiman","Jaka","Jarwa","Jarwadi","Jarwi","Jasmani","Jaswadi","Jati","Jatmiko","Jaya","Jayadi","Jayeng","Jinawi","Jindra","Joko","Jumadi","Jumari","Jamal","Jamil","Jais","Jefri","Johan","Jono","Kacung","Kajen","Kambali","Kamidin","Kariman","Karja","Karma","Karman","Karna","Karsa","Karsana","Karta","Kasiran","Kasusra","Kawaca","Kawaya","Kayun","Kemba","Kenari","Kenes","Kuncara","Kunthara","Kusuma","Kadir","Kala","Kalim","Kurnia","Kanda","Kardi","Karya","Kasim","Kairav","Kenzie","Kemal","Kamal","Koko","Labuh","Laksana","Lamar","Lanang","Langgeng","Lanjar","Lantar","Lega","Legawa","Lembah","Liman","Limar","Luhung","Lukita","Luluh","Lulut","Lurhur","Luwar","Luwes","Latif","Lasmanto","Lukman","Luthfi","Leo","Luis","Lutfan","Lasmono","Laswi","Mahesa","Makara","Makuta","Manah","Maras","Margana","Mariadi","Marsudi","Martaka","Martana","Martani","Marwata","Maryadi","Maryanto","Mitra","Mujur","Mulya","Mulyanto","Mulyono","Mumpuni","Muni","Mursita","Murti","Mustika","Maman","Mahmud","Mahdi","Mahfud","Malik","Muhammad","Mustofa","Marsito","Mursinin","Nalar","Naradi","Nardi","Niyaga","Nrima","Nugraha","Nyana","Narji","Nasab","Nasrullah","Nasim","Najib","Najam","Nyoman","Olga","Ozy","Omar","Opan","Oskar","Oman","Okto","Okta","Opung","Paiman","Panca","Pangeran","Pangestu","Pardi","Parman","Perkasa","Praba","Prabu","Prabawa","Prabowo","Prakosa","Pranata","Pranawa","Prasetya","Prasetyo","Prayitna","Prayoga","Prayogo","Purwadi","Purwa","Purwanto","Panji","Pandu","Paiman","Prima","Putu","Raden","Raditya","Raharja","Rama","Rangga","Reksa","Respati","Rusman","Rosman","Rahmat","Rahman","Rendy","Reza","Rizki","Ridwan","Rudi","Raden","Radit","Radika","Rafi","Rafid","Raihan","Salman","Saadat","Saiful","Surya","Slamet","Samsul","Soleh","Simon","Sabar","Sabri","Sidiq","Satya","Setya","Saka","Sakti","Taswir","Tedi","Teddy","Taufan","Taufik","Tomi","Tasnim","Teguh","Tasdik","Timbul","Tirta","Tirtayasa","Tri","Tugiman","Umar","Usman","Uda","Umay","Unggul","Utama","Umaya","Upik","Viktor","Vino","Vinsen","Vero","Vega","Viman","Virman","Wahyu","Wira","Wisnu","Wadi","Wardi","Warji","Waluyo","Wakiman","Wage","Wardaya","Warsa","Warsita","Warta","Wasis","Wawan","Xanana","Yahya","Yusuf","Yosef","Yono","Yoga"]})(eRn);var B7a=eRn.exports,tRn={exports:{}};(function(t){t.exports=["Adriansyah","Ardianto","Anggriawan","Ahmad","Adhitama","Abiputra","Antoni","Alamsyah","Airlangga","Abimanyu","Agustian","Arifin","Ardana","Aswandi","Budiman","Budiyanto","Bagaskara","Damanik","Darmawan","Dirgantara","Darojat","Firmansyah","Firgantoro","Fabian","Febian","Faresta","Gunarto","Gunawan","Hardiansyah","Habibi","Hakim","Halim","Haryanto","Hidayat","Hidayanto","Hutagalung","Hutapea","Hutasoit","Himawan","Hermawan","Herlambang","Handoko","Haikal","Irawan","Iswahyudi","Irfandi","Kuswoyo","Januar","Jailani","Kurniawan","Kusumo","Latupono","Lazuardi","Lesmana","Maheswara","Mahendra","Mustofa","Mansur","Mandala","Megantara","Maulana","Maryadi","Mangunsong","Manullang","Marpaung","Marbun","Mahardika","Narpati","Natsir","Nugroho","Najmudin","Nashiruddin","Nainggolan","Nababan","Napitupulu","Nugraha","Nanda","Oktavian","Oktovian","Pangestu","Putra","Pranowo","Prabowo","Pratama","Prasetya","Prasetyo","Pradana","Pradipta","Prakasa","Permadi","Prasasta","Prayoga","Perdana","Purnawarman","Purnama","Purwadi","Ramadan","Rajasa","Rajata","Rendra","Rayhan","Rahardian","Saptono","Santoso","Saputra","Saefullah","Setiawan","Suryono","Suwarno","Siregar","Sihombing","Salahudin","Sihombing","Samosir","Saragih","Sihotang","Simanjuntak","Sinaga","Simbolon","Sitompul","Sitorus","Sirait","Siregar","Situmorang","Syahreza","Sabian","Satria","Supriyanto","Sudrajat","Tampubolon","Thamrin","Tamba","Tarihoran","Utama","Uwais","Wahyudin","Waluyo","Wibowo","Winarno","Wibisono","Wijaya","Widodo","Wacana","Waskita","Wasita","Wicaksono","Wardana","Yulianto","Yanuar","Yudhistira","Zulkarnain"]})(tRn);var D7a=tRn.exports,nRn={exports:{}};(function(t){t.exports=["Ade","Agnes","Ajeng","Amalia","Anita","Ayu","Aisyah","Ana","Ami","Ani","Azalea","Aurora","Alika","Anastasia","Amelia","Almira","Agustina","Aulia","Anggun","Bella","Betania","Belinda","Citra","Cindy","Chelsea","Clara","Cornelia","Cinta","Cinthia","Ciaobella","Cici","Carla","Calista","Devi","Dewi","Dian","Diah","Diana","Dina","Dinda","Dalima","Dwi","Dyah","Ditya","Eka","Eva","Endah","Elisa","Eli","Ella","Ellis","Elma","Elvina","Fitria","Fitriani","Febi","Faizah","Farah","Farhunnisa","Fathonah","Febrina","Febriana","Fitri","Fara","Gabriella","Gasti","Gawati","Genta","Ghaliyati","Gina","Gilda","Ganesha","Gadis","Halima","Hesti","Hilda","Hafshah","Hamima","Hana","Hani","Hasna","Humaira","Ika","Indah","Intan","Irma","Icha","Ida","Ifa","Ilsa","Ina","Ira","Iriana","Irawati","Indira","Jamalia","Janet","Jane","Julia","Juli","Jessica","Jasmin","Jelita","Kamaria","Kamila","Kani","Karen","Karimah","Kartika","Kasiyah","Keisha","Kezia","Kiandra","Kayla","Kania","Kirana","Lala","Lalita","Latika","Laila","Laras","Lidya","Lili","Lintang","Lestari","Linda","Laksita","Maria","Mala","Maya","Maida","Maimunah","Melinda","Mila","Mutia","Michelle","Malika","Melani","Nadia","Nadine","Nabila","Natalia","Novi","Nova","Nurul","Nilam","Najwa","Nada","Naura","Nur","Novita","Nimas","Noviana","Olivia","Ophelia","Oni","Oliva","Padma","Putri","Paramita","Paris","Patricia","Paulin","Puput","Puji","Pia","Puspa","Puti","Putri","Padmi","Puspita","Pratiwi","Prita","Qori","Queen","Ratih","Ratna","Restu","Rini","Rika","Rina","Rahayu","Rahmi","Rachel","Rahmi","Raisa","Raina","Rahmawati","Retno","Ria","Rosalina","Rita","Rosa","Sarah","Sari","Siti","Siska","Suci","Syahrini","Septi","Sadina","Safina","Sakura","Salimah","Salwa","Salsabila","Samiah","Shania","Sabrina","Silvia","Shakila","Sintia","Sartika","Safira","Sasha","Sherly","Talia","Tami","Tira","Tiara","Titin","Tania","Tina","Tantri","Tari","Titi","Tri","Tsabita","Uchita","Unjani","Ulya","Uli","Ulva","Umi","Usyi","Vanya","Vanesa","Vivi","Vera","Vicky","Victoria","Violet","Vania","Winda","Widya","Wulan","Wirda","Wani","Wulandari","Yani","Yessi","Yulia","Yuliana","Yuni","Yunita","Yance","Zahra","Zalindra","Zaenab","Zulfa","Zizi","Zulaikha","Zamira","Zelda","Zelaya"]})(nRn);var $7a=nRn.exports,rRn={exports:{}};(function(t){t.exports=["Agustina","Andriani","Anggraini","Aryani","Astuti","Ananda","Anandya","Azzahra","Aqila","Amanta","Afifah","Ardiyanti","Andini","Aurelia","Aryanti","Azizah","Anjani","Damayanti","Elvina","Fujiati","Farida","Fathina","Fernanda","Febrianti","Handayani","Hassanah","Hartati","Hasanah","Haryanti","Hariyah","Hastuti","Halimah","Harini","Juwita","Jelita","Kusmawati","Kuswandari","Kusuma","Kahyang","Laksmiwati","Laksita","Lestari","Lailasari","Leilani","Mandasari","Mardhiyah","Mayasari","Melani","Mulyani","Maryati","Mahestri","Maharani","Maheswari","Melinda","Mustika","Nurdiyanti","Novitasari","Nuraini","Nasyidah","Nasyiah","Namaga","Nathania","Nurlaela","Ningrum","Palastri","Pudjiastuti","Puspasari","Puspita","Purwanti","Pratiwi","Purnawati","Pertiwi","Permata","Prastuti","Padmasari","Putri","Purnama","Rahmawati","Rahayu","Riyanti","Rahimah","Ramadhani","Rachmawati","Suartini","Sudiati","Suryatmi","Susanti","Safitri","Salsabilla","Salma","Saputri","Saraswati","Oktaviani","Utami","Usamah","Usada","Uyainah","Yuniar","Yuliarti","Yulianti","Yolanda","Wahyuni","Wijayanti","Widiastuti","Winarsih","Wulandari","Wastuti","Zulaika","Zahrah"]})(rRn);var F7a=rRn.exports,iRn={exports:{}};(function(t){t.exports=[]})(iRn);var j7a=iRn.exports,aRn={exports:{}};(function(t){t.exports=["S.Ked","S.Gz","S.Pt","S.IP","S.E.I","S.E.","S.Kom","S.H.","S.T.","S.Pd","S.Psi","S.I.Kom","S.Sos","S.Farm","M.M.","M.Kom.","M.TI.","M.Pd","M.Farm","M.Ak"]})(aRn);var H7a=aRn.exports,oRn={exports:{}};(function(t){t.exports=["#{male_first_name} #{male_last_name}","#{male_last_name} #{male_first_name}","#{male_first_name} #{male_first_name} #{male_last_name}","#{female_first_name} #{female_last_name}","#{female_first_name} #{male_last_name}","#{female_last_name} #{female_first_name}","#{female_first_name} #{female_first_name} #{female_last_name}"]})(oRn);var U7a=oRn.exports;(function(t){var e={};t.exports=e,e.male_first_name=B7a,e.male_last_name=D7a,e.female_first_name=$7a,e.female_last_name=F7a,e.prefix=j7a,e.suffix=H7a,e.name=U7a})(Xkn);var z7a=Xkn.exports,sRn={exports:{}},lRn={exports:{}};(function(t){t.exports=["02# #### ###","02## #### ###","03## #### ###","04## #### ###","05## #### ###","06## #### ###","07## #### ###","09## #### ###","02# #### ####","02## #### ####","03## #### ####","04## #### ####","05## #### ####","06## #### ####","07## #### ####","09## #### ####","08## ### ###","08## #### ###","08## #### ####","(+62) 8## ### ###","(+62) 2# #### ###","(+62) 2## #### ###","(+62) 3## #### ###","(+62) 4## #### ###","(+62) 5## #### ###","(+62) 6## #### ###","(+62) 7## #### ###","(+62) 8## #### ###","(+62) 9## #### ###","(+62) 2# #### ####","(+62) 2## #### ####","(+62) 3## #### ####","(+62) 4## #### ####","(+62) 5## #### ####","(+62) 6## #### ####","(+62) 7## #### ####","(+62) 8## #### ####","(+62) 9## #### ####"]})(lRn);var G7a=lRn.exports;(function(t){var e={};t.exports=e,e.formats=G7a})(sRn);var V7a=sRn.exports;(function(t){var e={};t.exports=e,e.title="Indonesia",e.address=_7a,e.company=R7a,e.internet=I7a,e.date=L7a,e.name=z7a,e.phone_number=V7a})(Ikn);var K7a=Ikn.exports,cRn={exports:{}},uRn={exports:{}},dRn={exports:{}};(function(t){t.exports=["San","Borgo","Sesto","Quarto","Settimo"]})(dRn);var W7a=dRn.exports,hRn={exports:{}};(function(t){t.exports=["a mare","lido","ligure","del friuli","salentino","calabro","veneto","nell'emilia","umbro","laziale","terme","sardo"]})(hRn);var Q7a=hRn.exports,q7a=["Agliè","Andezeno","Barbania","Brosso","Buriasco","Caluso","Cantoira","Carmagnola","Cavour","Chiaverano","Ciconio","Coazze","Cumiana","Feletto","Front","Giaveno","Grugliasco","Lauriano","Locana","Lusigliè","Mathi","Mompantero","Nichelino","Novalesa","Oulx","Perrero","Pinerolo","Pomaretto","Pramollo","Quassolo","Rivara","Rondissone","Rueglio","Santena","Sparone","Usseaux","Varisella","Vidracco","Vinovo","Volvera","Balocco","Campertogno","Cervatto","Cravagliana","Formigliana","Lamporo","Moncrivello","Pila","Rassa","Rossa","Scopa","Valduggia","Vocca","Biandrate","Briona","Comignago","Galliate","Invorio","Mezzomerico","Pisano","Sillavengo","Terdobbiate","Vinzaglio","Alto","Barge","Benevello","Bosia","Brondello","Canosio","Cartignano","Castino","Cervere","Clavesana","Demonte","Envie","Frassino","Gorzegno","Isasca","Macra","Marmora","Montanera","Murello","Nucetto","Pagno","Peveragno","Pocapaglia","Revello","Robilante","Roddi","Saliceto","Sanfrè","Sinio","Treiso","Venasca","Vignolo","Albugnano","Bruno","Canelli","Castell'Alfero","Coazzolo","Cortazzone","Fontanile","Maretto","Monale","Quaranti","Scurzolengo","Tigliole","Viale","Balzola","Bosio","Carezzano","Casasco","Cereseto","Dernice","Frugarolo","Giarole","Lerma","Molare","Montaldeo","Mornese","Ottiglio","Pasturana","Prasco","Rivarone","Solero","Terruggia","Trisobbio","Villalvernia","Bioglio","Camburzano","Cerrione","Donato","Magnano","Mottalciata","Piedicavallo","Pray","Tollegno","Verrone","Lessona","Baceno","Bognanco","Caprezzo","Crodo","Ghiffa","Macugnaga","Miazzina","Omegna","Premia","Trasquera","Allein","Avise","Brissogne","Chamois","Cogne","Etroubles","Gressan","Issime","Morgex","Pollein","Quart","Saint-Denis","Saint-Rhémy-en-Bosses","Valpelline","Villeneuve","Azzate","Besnate","Bregano","Brusimpiano","Caravate","Castelseprio","Clivio","Cugliate-Fabiasco","Dumenza","Gemonio","Inarzo","Luino","Marnate","Morazzone","Saltrio","Ternate","Albiolo","Barni","Bregnano","Cabiate","Carbonate","Cavargna","Dizzasco","Faloppio","Guanzate","Lasnigo","Luisago","Moltrasio","Musso","Pigra","Pusiano","Schignano","Torno","Zelbio","Aprica","Caiolo","Chiavenna","Dazio","Gordona","Livigno","Morbegno","Poggiridenti","Sernio","Tartano","Valdidentro","Abbiategrasso","Binasco","Buscate","Carpiano","Cisliano","Corsico","Gaggiano","Inzago","Magenta","Melzo","Nosate","Pantigliate","Rescaldina","Sedriano","Tribiano","Vignate","Albino","Ardesio","Barbata","Bossico","Brumano","Capizzone","Cerete","Colzate","Cusio","Fontanella","Gandosso","Gorno","Lallio","Martinengo","Mozzo","Pagazzano","Parzanica","Piazzatorre","Pradalunga","Ranica","Rovetta","Selvino","Sovere","Taleggio","Valbondione","Valtorta","Viadanica","Zogno","Acquafredda","Artogne","Berlingo","Botticino","Breno","Calvisano","Castelcovati","Cellatica","Cigole","Cologne","Edolo","Gambara","Gottolengo","Iseo","Lograto","Maclodio","Manerbio","Milzano","Muscoline","Odolo","Ospitaletto","Passirano","Poncarale","Preseglie","Sellero","Sulzano","Trenzano","Piancogno","Barbianello","Borgarello","Calvignano","Casteggio","Cervesina","Copiano","Fortunago","Garlasco","Langosco","Lungavilla","Menconico","Nicorvo","Retorbido","Rosasco","Sommo","Vidigulfo","Zerbo","Azzanello","Capergnanica","Castelleone","Crema","Fiesco","Grontardo","Montodine","Pandino","Ricengo","Soresina","Tornata","Voltido","Casalromano","Commessaggio","Gonzaga","Marmirolo","Ostiglia","Quistello","Sabbioneta","Viadana","Barzago","Bulciago","Casatenovo","Cremeno","Erve","Merate","Morterone","Pagnona","Premana","Sirtori","Valmadrera","Codogno","Galgagnano","Maccastorna","Meleti","Sordio","Barlassina","Briosco","Concorezzo","Lesmo","Renate","Triuggio","Caponago","Avelengo","Brennero","Castelbello-Ciardes","Dobbiaco","Gais","Laion","Luson","Merano","Naz-Sciaves","Plaus","Rasun-Anterselva","Scena","Stelvio","Tirolo","Vandoies","Vipiteno","Andalo","Bieno","Caldes","Capriana","Cavareno","Cis","Dambel","Fierozzo","Giustino","Lavis","Massimeno","Mezzolombardo","Nogaredo","Pinzolo","Ronzone","Sanzeno","Sover","Storo","Terragnolo","Trambileno","Vignola-Falesina","Altavalle","Novella","Belfiore","Buttapietra","Concamarise","Garda","Legnago","Oppeano","Roncà","Sommacampagna","Trevenzuolo","Zevio","Altissimo","Breganze","Caltrano","Castegnero","Creazzo","Gallio","Longare","Montegaldella","Orgiano","Roana","Santorso","Solagna","Trissino","Villaverla","Valbrenta","Gosaldo","Sospirolo","Casier","Codognè","Fontanelle","Loria","Montebelluna","Paese","Preganziol","Sarmede","Vedelago","Cavarzere","Eraclea","Martellago","Pianiga","Spinea","Agna","Barbona","Campodarsego","Cartura","Conselve","Gazzo","Loreggia","Monselice","Ponso","Saccolongo","Stanghella","Tribano","Vigonza","Calto","Ceneselli","Gaiba","Melara","Rosolina","Villadose","Artegna","Bordano","Cassacco","Comeglians","Enemonzo","Grimacco","Mortegliano","Pagnacco","Pontebba","Premariacco","Ravascletto","Rigolato","Sedegliano","Talmassons","Torreano","Varmo","Sappada","Monfalcone","Turriaco","Brugnera","Claut","Fontanafredda","Porcia","Spilimbergo","Airole","Bajardo","Castellaro","Chiusavecchia","Dolcedo","Ospedaletti","Pontedassio","Sanremo","Triora","Vessalico","Arnasco","Bormida","Ceriale","Giustenice","Mallare","Nasino","Pallare","Roccavignale","Stellanello","Vendone","Bogliasco","Carasco","Cogoleto","Fontanigorda","Lorsica","Mignanego","Rapallo","Rovegno","Torriglia","Zoagli","Framura","Pignone","Zignago","Bobbio","Cerignale","Gazzola","Rottofreno","Zerba","Bore","Compiano","Fontevivo","Palanzano","Terenzo","Varsi","Brescello","Castellarano","Gattatico","Poviglio","Toano","Bomporto","Fanano","Maranello","Montefiorino","Polinago","Sestola","Argelato","Camugnano","Fontanelice","Marzabotto","Valsamoggia","Comacchio","Tresignana","Conselice","Cesena","Modigliana","Sarsina","Gemmano","Saludecio","Pennabilli","Comano","Montignoso","Zeri","Capannori","Massarosa","Pietrasanta","Agliana","Montale","Uzzano","Empoli","Impruneta","Pelago","Signa","Capoliveri","Piombino","Bientina","Cascina","Montescudaio","Ponsacco","Vicopisano","Bucine","Lucignano","Monteriggioni","Poggibonsi","Sinalunga","Campagnatico","Gavorrano","Pitigliano","Montemurlo","Bettona","Collazzone","Gubbio","Norcia","Pietralunga","Sigillo","Trevi","Allerona","Baschi","Guardea","Narni","Porano","Fermignano","Lunano","Montefelcino","Petriano","Sassofeltrio","Vallefoglia","Camerano","Corinaldo","Jesi","Montemarciano","Polverigi","Staffolo","Caldarola","Colmurano","Gagliole","Montecassiano","Muccia","Sarnano","Urbisaglia","Castignano","Force","Montegallo","Ripatransone","Altidona","Grottazzolina","Montegranaro","Ortezzano","Smerillo","Bomarzo","Capranica","Corchiano","Graffignano","Monterosi","Proceno","Tuscania","Vetralla","Amatrice","Cantalice","Collegiove","Cottanello","Leonessa","Montebuono","Selci","Vacone","Ariccia","Canterano","Ciciliano","Formello","Gorga","Licenza","Mentana","Moricone","Nettuno","Pomezia","Saracinesco","Vallepietra","Zagarolo","Fiumicino","Pontinia","Sabaudia","Terracina","Alvito","Arnara","Casalattico","Ceccano","Esperia","Fontechiari","Morolo","Picinisco","Ripi","Settefrati","Terelle","Vallerotonda","Aielli","Barete","Calascio","Capistrello","Castellafiume","Introdacqua","Navelli","Ortucchio","Pescina","Rivisondoli","Scoppito","Trasacco","Arsita","Campli","Cermignano","Cortino","Notaresco","Alanno","Civitaquana","Farindola","Nocciano","Picciano","Salle","Vicoli","Atessa","Casacanditella","Castelguidone","Crecchio","Fraine","Gessopalena","Lentella","Monteferrante","Orsogna","Palombaro","Poggiofiorito","Roccamontepiano","Tollo","Vacri","Fallo","Casacalenda","Guardiaregia","Lucito","Monacilioni","Oratino","Portocannone","Roccavivara","Tavenna","Ururi","Filignano","Macchiagodena","Pescolanciano","Roccamandolfi","Venafro","Aversa","Capodrise","Casaluce","Ciorlano","Francolise","Liberi","Parete","Pratella","Succivo","Casapesenna","Arpaia","Bucciano","Castelpagano","Circello","Forchia","Montesarchio","Paupisi","Puglianello","Vitulano","Arzano","Caivano","Casamarciano","Cicciano","Frattamaggiore","Liveri","Nola","Portici","Ercolano","Saviano","Andretta","Baiano","Calitri","Castelfranci","Domicella","Gesualdo","Lapio","Mercogliano","Montella","Nusco","Quadrelle","Senerchia","Sturno","Torrioni","Venticano","Agropoli","Aquara","Battipaglia","Caggiano","Cannalonga","Ceraso","Corbara","Futani","Laurito","Montecorice","Padula","Perito","Polla","Ravello","Rofrano","Sapri","Serramezzana","Torchiara","Valva","Apricena","Carlantino","Faeto","Manfredonia","Serracapriola","Vieste","Alberobello","Bitonto","Conversano","Molfetta","Putignano","Turi","Crispiano","Laterza","Massafra","Palagianello","Cisternino","Oria","Alliste","Collepasso","Diso","Giurdignano","Lizzanello","Melendugno","Neviano","Palmariggi","Ruffano","Seclì","Sternatia","Taviano","Ugento","Presicce-Acquarica","Trani","Armento","Baragiano","Calvera","Castelmezzano","Fardella","Latronico","Marsicovetere","Montemilone","Picerno","Rapolla","Rotonda","Spinoso","Trecchina","Ginestra","Calciano","Garaguso","Pomarico","Tursi","Aieta","Amendolara","Bocchigliero","Campana","Castrolibero","Cerisano","Cleto","Diamante","Fuscaldo","Lattarico","Maierà","Marzi","Mottafollone","Panettieri","Pietrafitta","Rose","Scigliano","Verbicaro","Amaroni","Belcastro","Conflenti","Decollatura","Girifalco","Maida","Montauro","Petrizzi","Squillace","Zagarise","Bagaladi","Bovalino","Canolo","Ciminà","Delianuova","Giffone","Maropati","Monasterace","Platì","Roghudi","Seminara","Stignano","Carfizzi","Mesoraca","Strongoli","Briatico","Dinami","Filogaso","Limbadi","Nicotera","Ricadi","Spadola","Vazzano","Calatafimi-Segesta","Gibellina","Poggioreale","Vita","Aliminusa","Bisacquino","Caltavuturo","Castelbuono","Cinisi","Lascari","Montelepre","Roccamena","Trabia","Villabate","Antillo","Castell'Umberto","Falcone","Frazzanò","Graniti","Limina","Mandanici","Mistretta","Patti","Roccafiorita","Savoca","Tortorici","Venetico","Bivona","Cammarata","Comitini","Montallegro","Ravanusa","Bompensiere","Gela","Mussomeli","Sommatino","Assoro","Cerami","Pietraperzia","Calatabiano","Linguaglossa","Mineo","Pedara","Sant'Alfio","Vizzini","Comiso","Buccheri","Floridia","Pachino","Aggius","Banari","Bono","Buddusò","Cargeghe","Cossoine","Ittireddu","Mara","Nule","Osilo","Pattada","Romana","Sennori","Torralba","Telti","Stintino","Atzara","Bitti","Dorgali","Gairo","Irgoli","Loculi","Mamoiada","Olzai","Orgosolo","Osidda","Posada","Sorgono","Tonara","Urzulei","Quartucciu","Albagiara","Assolo","Bidonì","Cuglieri","Gonnostramatza","Mogoro","Nurachi","Paulilatino","Seneghe","Simala","Sorradile","Uras","Siapiccia","Laconi","Suni","Barrali","Carbonia","Dolianova","Esterzili","Gergei","Gonnesa","Iglesias","Monastir","Nurallao","Ortacesus","Portoscuso","Santadi","Senorbì","Setzu","Silius","Tuili","Villacidro","Villaperuccio","Villaspeciosa"],fRn={exports:{}};(function(t){t.exports=["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antartide (territori a sud del 60° parallelo)","Antigua e Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Bielorussia","Belgio","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia e Herzegovina","Botswana","Bouvet Island (Bouvetoya)","Brasile","Territorio dell'arcipelago indiano","Isole Vergini Britanniche","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambogia","Cameroon","Canada","Capo Verde","Isole Cayman","Repubblica Centrale Africana","Chad","Cile","Cina","Isola di Pasqua","Isola di Cocos (Keeling)","Colombia","Comoros","Congo","Isole Cook","Costa Rica","Costa d'Avorio","Croazia","Cuba","Cipro","Repubblica Ceca","Danimarca","Gibuti","Repubblica Dominicana","Equador","Egitto","El Salvador","Guinea Equatoriale","Eritrea","Estonia","Etiopia","Isole Faroe","Isole Falkland (Malvinas)","Fiji","Finlandia","Francia","Guyana Francese","Polinesia Francese","Territori Francesi del sud","Gabon","Gambia","Georgia","Germania","Ghana","Gibilterra","Grecia","Groenlandia","Grenada","Guadalupa","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Città del Vaticano","Honduras","Hong Kong","Ungheria","Islanda","India","Indonesia","Iran","Iraq","Irlanda","Isola di Man","Israele","Italia","Giamaica","Giappone","Jersey","Giordania","Kazakhstan","Kenya","Kiribati","Korea","Kuwait","Republicca Kirgiza","Repubblica del Laos","Latvia","Libano","Lesotho","Liberia","Libyan Arab Jamahiriya","Liechtenstein","Lituania","Lussemburgo","Macao","Macedonia","Madagascar","Malawi","Malesia","Maldive","Mali","Malta","Isole Marshall","Martinica","Mauritania","Mauritius","Mayotte","Messico","Micronesia","Moldova","Principato di Monaco","Mongolia","Montenegro","Montserrat","Marocco","Mozambico","Myanmar","Namibia","Nauru","Nepal","Antille Olandesi","Olanda","Nuova Caledonia","Nuova Zelanda","Nicaragua","Niger","Nigeria","Niue","Isole Norfolk","Northern Mariana Islands","Norvegia","Oman","Pakistan","Palau","Palestina","Panama","Papua Nuova Guinea","Paraguay","Peru","Filippine","Pitcairn Islands","Polonia","Portogallo","Porto Rico","Qatar","Reunion","Romania","Russia","Rwanda","San Bartolomeo","Sant'Elena","Saint Kitts and Nevis","Saint Lucia","Saint Martin","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Arabia Saudita","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovenia","Isole Solomon","Somalia","Sud Africa","Georgia del sud e South Sandwich Islands","Spagna","Sri Lanka","Sudan","Suriname","Svalbard & Jan Mayen Islands","Swaziland","Svezia","Svizzera","Siria","Taiwan","Tajikistan","Tanzania","Tailandia","Timor-Leste","Togo","Tokelau","Tonga","Trinidad e Tobago","Tunisia","Turchia","Turkmenistan","Isole di Turks and Caicos","Tuvalu","Uganda","Ucraina","Emirati Arabi Uniti","Regno Unito","Stati Uniti d'America","United States Minor Outlying Islands","Isole Vergini Statunitensi","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Wallis and Futuna","Western Sahara","Yemen","Zambia","Zimbabwe"]})(fRn);var Y7a=fRn.exports,pRn={exports:{}};(function(t){t.exports=["###","##","#"]})(pRn);var J7a=pRn.exports,mRn={exports:{}};(function(t){t.exports=["Piazza","Strada","Via","Borgo","Contrada","Rotonda","Incrocio"]})(mRn);var Z7a=mRn.exports,gRn={exports:{}};(function(t){t.exports=["Appartamento ##","Piano #"]})(gRn);var X7a=gRn.exports,vRn={exports:{}};(function(t){t.exports=["#####"]})(vRn);var eFa=vRn.exports,ARn={exports:{}};(function(t){t.exports=["Agrigento","Alessandria","Ancona","Aosta","Arezzo","Ascoli Piceno","Asti","Avellino","Bari","Barletta-Andria-Trani","Belluno","Benevento","Bergamo","Biella","Bologna","Bolzano","Brescia","Brindisi","Cagliari","Caltanissetta","Campobasso","Carbonia-Iglesias","Caserta","Catania","Catanzaro","Chieti","Como","Cosenza","Cremona","Crotone","Cuneo","Enna","Fermo","Ferrara","Firenze","Foggia","Forlì-Cesena","Frosinone","Genova","Gorizia","Grosseto","Imperia","Isernia","La Spezia","L'Aquila","Latina","Lecce","Lecco","Livorno","Lodi","Lucca","Macerata","Mantova","Massa-Carrara","Matera","Messina","Milano","Modena","Monza e della Brianza","Napoli","Novara","Nuoro","Olbia-Tempio","Oristano","Padova","Palermo","Parma","Pavia","Perugia","Pesaro e Urbino","Pescara","Piacenza","Pisa","Pistoia","Pordenone","Potenza","Prato","Ragusa","Ravenna","Reggio Calabria","Reggio Emilia","Rieti","Rimini","Roma","Rovigo","Salerno","Medio Campidano","Sassari","Savona","Siena","Siracusa","Sondrio","Taranto","Teramo","Terni","Torino","Ogliastra","Trapani","Trento","Treviso","Trieste","Udine","Varese","Venezia","Verbano-Cusio-Ossola","Vercelli","Verona","Vibo Valentia","Vicenza","Viterbo"]})(ARn);var tFa=ARn.exports,yRn={exports:{}};(function(t){t.exports=["AG","AL","AN","AO","AR","AP","AT","AV","BA","BT","BL","BN","BG","BI","BO","BZ","BS","BR","CA","CL","CB","CI","CE","CT","CZ","CH","CO","CS","CR","KR","CN","EN","FM","FE","FI","FG","FC","FR","GE","GO","GR","IM","IS","SP","AQ","LT","LE","LC","LI","LO","LU","MC","MN","MS","MT","ME","MI","MO","MB","NA","NO","NU","OT","OR","PD","PA","PR","PV","PG","PU","PE","PC","PI","PT","PN","PZ","PO","RG","RA","RC","RE","RI","RN","RM","RO","SA","VS","SS","SV","SI","SR","SO","TA","TE","TR","TO","OG","TP","TN","TV","TS","UD","VA","VE","VB","VC","VR","VV","VI","VT"]})(yRn);var nFa=yRn.exports,bRn={exports:{}};(function(t){t.exports=["#{city_prefix} #{Name.first_name} #{city_suffix}","#{city_prefix} #{Name.first_name}","#{Name.first_name} #{city_suffix}","#{Name.last_name} #{city_suffix}"]})(bRn);var rFa=bRn.exports,xRn={exports:{}};(function(t){t.exports=["#{street_suffix} #{Name.first_name}","#{street_suffix} #{Name.last_name}"]})(xRn);var iFa=xRn.exports,ERn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}","#{street_name} #{building_number}, #{secondary_address}"]})(ERn);var aFa=ERn.exports,SRn={exports:{}};(function(t){t.exports=["Italia"]})(SRn);var oFa=SRn.exports;(function(t){var e={};t.exports=e,e.city_prefix=W7a,e.city_suffix=Q7a,e.city_name=q7a,e.country=Y7a,e.building_number=J7a,e.street_suffix=Z7a,e.secondary_address=X7a,e.postcode=eFa,e.state=tFa,e.state_abbr=nFa,e.city=rFa,e.street_name=iFa,e.street_address=aFa,e.default_country=oFa})(uRn);var sFa=uRn.exports,wRn={exports:{}},_Rn={exports:{}};(function(t){t.exports=["SPA","e figli","Group","s.r.l."]})(_Rn);var lFa=_Rn.exports,TRn={exports:{}};(function(t){t.exports=["Abilità","Access","Adattatore","Algoritmo","Alleanza","Analizzatore","Applicazione","Approccio","Architettura","Archivio","Intelligenza artificiale","Array","Attitudine","Benchmark","Capacità","Sfida","Circuito","Collaborazione","Complessità","Concetto","Conglomerato","Contingenza","Core","Database","Data-warehouse","Definizione","Emulazione","Codifica","Criptazione","Firmware","Flessibilità","Previsione","Frame","framework","Funzione","Funzionalità","Interfaccia grafica","Hardware","Help-desk","Gerarchia","Hub","Implementazione","Infrastruttura","Iniziativa","Installazione","Set di istruzioni","Interfaccia","Soluzione internet","Intranet","Conoscenza base","Matrici","Matrice","Metodologia","Middleware","Migrazione","Modello","Moderazione","Monitoraggio","Moratoria","Rete","Architettura aperta","Sistema aperto","Orchestrazione","Paradigma","Parallelismo","Policy","Portale","Struttura di prezzo","Prodotto","Produttività","Progetto","Proiezione","Protocollo","Servizio clienti","Software","Soluzione","Standardizzazione","Strategia","Struttura","Successo","Sovrastruttura","Supporto","Sinergia","Task-force","Finestra temporale","Strumenti","Utilizzazione","Sito web","Forza lavoro"]})(TRn);var cFa=TRn.exports,CRn={exports:{}};(function(t){t.exports=["adattiva","avanzata","migliorata","assimilata","automatizzata","bilanciata","centralizzata","compatibile","configurabile","cross-platform","decentralizzata","digitalizzata","distribuita","piccola","ergonomica","esclusiva","espansa","estesa","configurabile","fondamentale","orizzontale","implementata","innovativa","integrata","intuitiva","inversa","gestita","obbligatoria","monitorata","multi-canale","multi-laterale","open-source","operativa","ottimizzata","organica","persistente","polarizzata","proattiva","programmabile","progressiva","reattiva","riallineata","ricontestualizzata","ridotta","robusta","sicura","condivisibile","stand-alone","switchabile","sincronizzata","sinergica","totale","universale","user-friendly","versatile","virtuale","visionaria"]})(CRn);var uFa=CRn.exports,kRn={exports:{}};(function(t){t.exports=["24 ore","24/7","terza generazione","quarta generazione","quinta generazione","sesta generazione","asimmetrica","asincrona","background","bi-direzionale","biforcata","bottom-line","coerente","coesiva","composita","sensibile al contesto","basta sul contesto","basata sul contenuto","dedicata","didattica","direzionale","discreta","dinamica","eco-centrica","esecutiva","esplicita","full-range","globale","euristica","alto livello","olistica","omogenea","ibrida","impattante","incrementale","intangibile","interattiva","intermediaria","locale","logistica","massimizzata","metodica","mission-critical","mobile","modulare","motivazionale","multimedia","multi-tasking","nazionale","neutrale","nextgeneration","non-volatile","object-oriented","ottima","ottimizzante","radicale","real-time","reciproca","regionale","responsiva","scalabile","secondaria","stabile","statica","sistematica","sistemica","tangibile","terziaria","uniforme","valore aggiunto"]})(kRn);var dFa=kRn.exports,RRn={exports:{}};(function(t){t.exports=["partnerships","comunità","ROI","soluzioni","e-services","nicchie","tecnologie","contenuti","supply-chains","convergenze","relazioni","architetture","interfacce","mercati","e-commerce","sistemi","modelli","schemi","reti","applicazioni","metriche","e-business","funzionalità","esperienze","webservices","metodologie"]})(RRn);var hFa=RRn.exports,MRn={exports:{}};(function(t){t.exports=["implementate","utilizzo","integrate","ottimali","evolutive","abilitate","reinventate","aggregate","migliorate","incentivate","monetizzate","sinergizzate","strategiche","deploy","marchi","accrescitive","target","sintetizzate","spedizioni","massimizzate","innovazione","guida","estensioni","generate","exploit","transizionali","matrici","ricontestualizzate"]})(MRn);var fFa=MRn.exports,NRn={exports:{}};(function(t){t.exports=["valore aggiunto","verticalizzate","proattive","forti","rivoluzionari","scalabili","innovativi","intuitivi","strategici","e-business","mission-critical","24/7","globali","B2B","B2C","granulari","virtuali","virali","dinamiche","magnetiche","web","interattive","sexy","back-end","real-time","efficienti","front-end","distributivi","estensibili","mondiali","open-source","cross-platform","sinergiche","out-of-the-box","enterprise","integrate","di impatto","wireless","trasparenti","next-generation","cutting-edge","visionari","plug-and-play","collaborative","olistiche","ricche"]})(NRn);var pFa=NRn.exports,IRn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name} #{suffix}","#{Name.last_name}, #{Name.last_name} e #{Name.last_name} #{suffix}"]})(IRn);var mFa=IRn.exports;(function(t){var e={};t.exports=e,e.suffix=lFa,e.noun=cFa,e.descriptor=uFa,e.adjective=dFa,e.bs_noun=hFa,e.bs_verb=fFa,e.bs_adjective=pFa,e.name=mFa})(wRn);var gFa=wRn.exports,PRn={exports:{}},ORn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com","email.it","libero.it","yahoo.it"]})(ORn);var vFa=ORn.exports,LRn={exports:{}};(function(t){t.exports=["com","com","com","net","org","it","it","it"]})(LRn);var AFa=LRn.exports;(function(t){var e={};t.exports=e,e.free_email=vFa,e.domain_suffix=AFa})(PRn);var yFa=PRn.exports,BRn={exports:{}},DRn={exports:{}};(function(t){t.exports=["Abaco","Abbondanzio","Abbondio","Abdone","Abelardo","Abele","Abenzio","Abibo","Abramio","Abramo","Acacio","Acario","Accursio","Achille","Acilio","Aciscolo","Acrisio","Adalardo","Adalberto","Adalfredo","Adalgiso","Adalrico","Adamo","Addo","Adelardo","Adelberto","Adelchi","Adelfo","Adelgardo","Adelmo","Adeodato","Adolfo","Adone","Adriano","Adrione","Afro","Agabio","Agamennone","Agapito","Agazio","Agenore","Agesilao","Agostino","Agrippa","Aiace","Aidano","Aimone","Aladino","Alamanno","Alano","Alarico","Albano","Alberico","Alberto","Albino","Alboino","Albrico","Alceo","Alceste","Alcibiade","Alcide","Alcino","Aldo","Aldobrando","Aleandro","Aleardo","Aleramo","Alessandro","Alessio","Alfio","Alfonso","Alfredo","Algiso","Alighiero","Almerigo","Almiro","Aloisio","Alvaro","Alviero","Alvise","Amabile","Amadeo","Amando","Amanzio","Amaranto","Amato","Amatore","Amauri","Ambrogio","Ambrosiano","Amedeo","Amelio","Amerigo","Amico","Amilcare","Amintore","Amleto","Amone","Amore","Amos","Ampelio","Anacleto","Andrea","Angelo","Aniceto","Aniello","Annibale","Ansaldo","Anselmo","Ansovino","Antelmo","Antero","Antimo","Antino","Antioco","Antonello","Antonio","Apollinare","Apollo","Apuleio","Aquilino","Araldo","Aratone","Arcadio","Archimede","Archippo","Arcibaldo","Ardito","Arduino","Aresio","Argimiro","Argo","Arialdo","Ariberto","Ariele","Ariosto","Aris","Aristarco","Aristeo","Aristide","Aristione","Aristo","Aristofane","Aristotele","Armando","Arminio","Arnaldo","Aronne","Arrigo","Arturo","Ascanio","Asdrubale","Asimodeo","Assunto","Asterio","Astianatte","Ataleo","Atanasio","Athos","Attila","Attilano","Attilio","Auberto","Audace","Augusto","Aureliano","Aurelio","Auro","Ausilio","Averardo","Azeglio","Azelio","Bacco","Baldassarre","Balderico","Baldo","Baldomero","Baldovino","Barbarigo","Bardo","Bardomiano","Barnaba","Barsaba","Barsimeo","Bartolo","Bartolomeo","Basileo","Basilio","Bassiano","Bastiano","Battista","Beato","Bellino","Beltramo","Benedetto","Beniamino","Benigno","Benito","Benvenuto","Berardo","Berengario","Bernardo","Beronico","Bertoldo","Bertolfo","Biagio","Bibiano","Bindo","Bino","Birino","Bonagiunta","Bonaldo","Bonaventura","Bonavita","Bonifacio","Bonito","Boris","Bortolo","Brancaleone","Brando","Bruno","Bruto","Caino","Caio","Calanico","Calcedonio","Callisto","Calogero","Camillo","Candido","Cantidio","Canziano","Carlo","Carmelo","Carmine","Caronte","Carponio","Casimiro","Cassiano","Cassio","Casto","Cataldo","Catullo","Cecco","Cecilio","Celso","Cesare","Cesario","Cherubino","Chiaffredo","Cino","Cipriano","Cirano","Ciriaco","Cirillo","Cirino","Ciro","Clarenzio","Claudio","Cleandro","Clemente","Cleonico","Climaco","Clinio","Clodomiro","Clodoveo","Colmanno","Colmazio","Colombano","Colombo","Concetto","Concordio","Corbiniano","Coreno","Coriolano","Cornelio","Coronato","Corrado","Cosimo","Cosma","Costante","Costantino","Costanzo","Cremenzio","Crescente","Crescenzio","Crespignano","Crispino","Cristaldo","Cristiano","Cristoforo","Crocefisso","Cuniberto","Cupido","Daciano","Dacio","Dagoberto","Dalmazio","Damaso","Damiano","Damocle","Daniele","Danilo","Danio","Dante","Dario","Davide","Davino","Decimo","Delfino","Demetrio","Democrito","Demostene","Deodato","Desiderato","Desiderio","Didimo","Diego","Dino","Diocleziano","Diodoro","Diogene","Diomede","Dione","Dionigi","Dionisio","Divo","Dodato","Domenico","Domezio","Domiziano","Donatello","Donato","Doriano","Doroteo","Duccio","Duilio","Durante","Eberardo","Ecclesio","Edgardo","Edilberto","Edmondo","Edoardo","Efisio","Efrem","Egeo","Egidio","Eginardo","Egisto","Eleuterio","Elia","Eliano","Elifio","Eligio","Elio","Eliodoro","Eliseo","Elita","Elmo","Elogio","Elpidio","Elvezio","Elvino","Emanuele","Emidio","Emiliano","Emilio","Emmerico","Empirio","Endrigo","Enea","Enecone","Ennio","Enrico","Enzo","Eraclide","Eraldo","Erardo","Erasmo","Erberto","Ercolano","Ercole","Erenia","Eriberto","Erico","Ermanno","Ermenegildo","Ermes","Ermete","Ermilo","Erminio","Ernesto","Eros","Esaù","Esuperio","Eterie","Ettore","Euclide","Eufebio","Eufemio","Eufronio","Eugenio","Eusebio","Euseo","Eustorgio","Eustosio","Eutalio","Evaldo","Evandro","Evaristo","Evasio","Everardo","Evidio","Evodio","Evremondo","Ezechiele","Ezio","Fabiano","Fabio","Fabrizio","Famiano","Fausto","Fazio","Fedele","Federico","Fedro","Felice","Feliciano","Ferdinando","Fermiano","Fermo","Fernando","Ferruccio","Festo","Fidenziano","Fidenzio","Filiberto","Filippo","Filomeno","Fiorenziano","Fiorenzo","Flaviano","Flavio","Fleano","Floriano","Folco","Fortunato","Fosco","Francesco","Franco","Frido","Frontiniano","Fulberto","Fulgenzio","Fulvio","Furio","Furseo","Fuscolo","Gabino","Gabriele","Gaetano","Gaglioffo","Gaio","Galdino","Galeazzo","Galileo","Gallicano","Gandolfo","Garimberto","Gaspare","Gastone","Gaudenzio","Gaudino","Gautiero","Gavino","Gedeone","Geminiano","Generoso","Genesio","Gennaro","Gentile","Genziano","Gerardo","Gerasimo","Geremia","Gerino","Germano","Gerolamo","Geronimo","Geronzio","Gervasio","Gesualdo","Gherardo","Giacinto","Giacobbe","Giacomo","Giadero","Giambattista","Gianbattista","Giancarlo","Giandomenico","Gianfranco","Gianluca","Gianluigi","Gianmarco","Gianmaria","Gianmario","Gianni","Gianpaolo","Gianpiero","Gianpietro","Gianuario","Giasone","Gilberto","Gildo","Gillo","Gineto","Gino","Gioacchino","Giobbe","Gioberto","Giocondo","Gioele","Giona","Gionata","Giordano","Giorgio","Giosuè","Giosuele","Giotto","Giovanni","Giove","Gioventino","Giovenzio","Girardo","Girolamo","Giuda","Giuliano","Giulio","Giuseppe","Giustiniano","Giusto","Glauco","Goffredo","Golia","Gomberto","Gondulfo","Gonerio","Gonzaga","Gordiano","Gosto","Gottardo","Graciliano","Grato","Graziano","Gregorio","Grimaldo","Gualberto","Gualtiero","Guelfo","Guerrino","Guglielmo","Guiberto","Guido","Guiscardo","Gumesindo","Gustavo","Iacopo","Iacopone","Iago","Icaro","Icilio","Ido","Iginio","Igino","Ignazio","Igor","Ilario","Ildebrando","Ildefonso","Illidio","Illuminato","Immacolato","Indro","Innocente","Innocenzo","Iorio","Ippocrate","Ippolito","Ireneo","Isacco","Isaia","Ischirione","Isidoro","Ismaele","Italo","Ivan","Ivano","Ivanoe","Ivo","Ivone","Ladislao","Lamberto","Lancilotto","Landolfo","Lanfranco","Lapo","Laurentino","Lauriano","Lautone","Lavinio","Lazzaro","Leandro","Leo","Leonardo","Leone","Leonida","Leonio","Leonzio","Leopardo","Leopoldo","Letterio","Liberato","Liberatore","Liberio","Libero","Liberto","Liborio","Lidio","Lieto","Lino","Lisandro","Livino","Livio","Lodovico","Loreno","Lorenzo","Loris","Luca","Luciano","Lucio","Ludano","Ludovico","Luigi","Macario","Maccabeo","Maffeo","Maggiorino","Magno","Maiorico","Malco","Mamante","Mancio","Manetto","Manfredo","Manilio","Manlio","Mansueto","Manuele","Marcello","Marciano","Marco","Mariano","Marino","Mario","Marolo","Martino","Marzio","Massimiliano","Massimo","Matroniano","Matteo","Mattia","Maurilio","Maurizio","Mauro","Medardo","Medoro","Melanio","Melchiade","Melchiorre","Melezio","Menardo","Menelao","Meneo","Mennone","Mercurio","Metello","Metrofane","Michelangelo","Michele","Milo","Minervino","Mirco","Mirko","Mirocleto","Misaele","Modesto","Monaldo","Monitore","Moreno","Mosè","Muziano","Namazio","Napoleone","Narciso","Narseo","Narsete","Natale","Nazario","Nazzareno","Nazzaro","Neopolo","Neoterio","Nereo","Neri","Nestore","Nicarete","Nicea","Niceforo","Niceto","Nicezio","Nico","Nicodemo","Nicola","Nicolò","Niniano","Nino","Noè","Norberto","Nostriano","Nunzio","Oddone","Oderico","Odidone","Odorico","Olimpio","Olindo","Oliviero","Omar","Omero","Onesto","Onofrio","Onorino","Onorio","Orazio","Orenzio","Oreste","Orfeo","Orio","Orlando","Oronzo","Orsino","Orso","Ortensio","Oscar","Osmondo","Osvaldo","Otello","Ottaviano","Ottavio","Ottone","Ovidio","Paciano","Pacifico","Pacomio","Palatino","Palladio","Pammachio","Pancario","Pancrazio","Panfilo","Pantaleo","Pantaleone","Paolo","Pardo","Paride","Parmenio","Pasquale","Paterniano","Patrizio","Patroclo","Pauside","Peleo","Pellegrino","Pericle","Perseo","Petronio","Pierangelo","Piergiorgio","Pierluigi","Piermarco","Piero","Piersilvio","Pietro","Pio","Pippo","Placido","Platone","Plinio","Plutarco","Polidoro","Polifemo","Pollione","Pompeo","Pomponio","Ponziano","Ponzio","Porfirio","Porziano","Postumio","Prassede","Priamo","Primo","Prisco","Privato","Procopio","Prospero","Protasio","Proteo","Prudenzio","Publio","Pupolo","Pusicio","Quarto","Quasimodo","Querano","Quintiliano","Quintilio","Quintino","Quinziano","Quinzio","Quirino","Radolfo","Raffaele","Raide","Raimondo","Rainaldo","Ramiro","Raniero","Ranolfo","Reginaldo","Regolo","Remigio","Remo","Remondo","Renato","Renzo","Respicio","Ricario","Riccardo","Richelmo","Rinaldo","Rino","Robaldo","Roberto","Rocco","Rodiano","Rodolfo","Rodrigo","Rolando","Rolfo","Romano","Romeo","Romero","Romoaldo","Romolo","Romualdo","Rosario","Rubiano","Rufino","Rufo","Ruggero","Ruperto","Rutilo","Sabato","Sabazio","Sabele","Sabino","Saffiro","Saffo","Saladino","Salomè","Salomone","Salustio","Salvatore","Salvo","Samuele","Sandro","Sansone","Sante","Santo","Sapiente","Sarbello","Saturniano","Saturnino","Saul","Saverio","Savino","Sebastiano","Secondiano","Secondo","Semplicio","Sempronio","Senesio","Senofonte","Serafino","Serapione","Sergio","Servidio","Serviliano","Sesto","Settimio","Settimo","Severiano","Severino","Severo","Sico","Sicuro","Sidonio","Sigfrido","Sigismondo","Silvano","Silverio","Silvestro","Silvio","Simeone","Simone","Sinesio","Sinfronio","Sireno","Siriano","Siricio","Sirio","Siro","Sisto","Soccorso","Socrate","Solocone","Sostene","Sosteneo","Sostrato","Spano","Spartaco","Speranzio","Stanislao","Stefano","Stiliano","Stiriaco","Surano","Sviturno","Taddeo","Taide","Tammaro","Tancredi","Tarcisio","Tarso","Taziano","Tazio","Telchide","Telemaco","Temistocle","Teobaldo","Teodoro","Teodosio","Teodoto","Teogene","Terenzio","Terzo","Tesauro","Tesifonte","Tibaldo","Tiberio","Tiburzio","Ticone","Timoteo","Tirone","Tito","Tiziano","Tizio","Tobia","Tolomeo","Tommaso","Torquato","Tosco","Tranquillo","Tristano","Tulliano","Tullio","Turi","Turibio","Tussio","Ubaldo","Ubertino","Uberto","Ugo","Ugolino","Uguccione","Ulberto","Ulderico","Ulfo","Ulisse","Ulpiano","Ulrico","Ulstano","Ultimo","Umberto","Umile","Uranio","Urbano","Urdino","Uriele","Ursicio","Ursino","Ursmaro","Valente","Valentino","Valeriano","Valerico","Valerio","Valfredo","Valfrido","Valtena","Valter","Varo","Vasco","Vedasto","Velio","Venanzio","Venceslao","Venerando","Venerio","Ventura","Venustiano","Venusto","Verano","Verecondo","Verenzio","Verulo","Vespasiano","Vezio","Vidiano","Vidone","Vilfredo","Viliberto","Vincenzo","Vindonio","Vinebaldo","Vinfrido","Vinicio","Virgilio","Virginio","Virone","Viscardo","Vitale","Vitalico","Vito","Vittore","Vittoriano","Vittorio","Vivaldo","Viviano","Vladimiro","Vodingo","Volfango","Vulmaro","Vulpiano","Walter","Zabedeo","Zaccaria","Zaccheo","Zanobi","Zefiro","Zena","Zenaide","Zenebio","Zeno","Zenobio","Zenone","Zetico","Zoilo","Zosimo"]})(DRn);var bFa=DRn.exports,$Rn={exports:{}};(function(t){t.exports=["Abbondanza","Acilia","Ada","Adalberta","Adalgisa","Addolorata","Adelaide","Adelasia","Adele","Adelina","Adina","Adria","Adriana","Agape","Agata","Agnese","Agostina","Aida","Alba","Alberta","Albina","Alcina","Alda","Alessandra","Alessia","Alfonsa","Alfreda","Alice","Alida","Alina","Allegra","Alma","Altea","Amalia","Amanda","Amata","Ambra","Amelia","Amina","Anastasia","Anatolia","Ancilla","Andromeda","Angela","Angelica","Anita","Anna","Annabella","Annagrazia","Annamaria","Annunziata","Antea","Antigone","Antonella","Antonia","Apollina","Apollonia","Appia","Arabella","Argelia","Arianna","Armida","Artemisa","Asella","Asia","Assunta","Astrid","Atanasia","Aurelia","Aurora","Ausilia","Ausiliatrice","Ave","Aza","Azelia","Azzurra","Babila","Bambina","Barbara","Bartolomea","Basilia","Bassilla","Batilda","Beata","Beatrice","Belina","Benedetta","Beniamina","Benigna","Benvenuta","Berenice","Bernadetta","Betta","Bianca","Bibiana","Bice","Brigida","Brigitta","Bruna","Brunilde","Calogera","Calpurnia","Camelia","Camilla","Candida","Capitolina","Carina","Carla","Carlotta","Carmela","Carmen","Carola","Carolina","Casilda","Casimira","Cassandra","Cassiopea","Catena","Caterina","Cecilia","Celeste","Celinia","Chiara","Cinzia","Cirilla","Clara","Claudia","Clelia","Clemenzia","Cleo","Cleofe","Cleopatra","Cloe","Clorinda","Cointa","Colomba","Concetta","Consolata","Cora","Cordelia","Corinna","Cornelia","Cosima","Costanza","Crescenzia","Cristiana","Cristina","Crocefissa","Cronida","Cunegonda","Cuzia","Dafne","Dalida","Dalila","Damiana","Daniela","Daria","Deanna","Debora","Degna","Delfina","Delia","Delinda","Delizia","Demetria","Deodata","Desdemona","Desiderata","Devota","Diamante","Diana","Dianora","Diletta","Dina","Diodata","Dionisia","Doda","Dolores","Domenica","Donata","Donatella","Donna","Dora","Dorotea","Druina","Dulina","Ebe","Edda","Edelberga","Editta","Edvige","Egizia","Egle","Elaide","Elda","Elena","Eleonora","Elettra","Eliana","Elide","Elimena","Elisa","Elisabetta","Elisea","Ella","Eloisa","Elsa","Elvia","Elvira","Emanuela","Emilia","Emiliana","Emma","Enimia","Enrica","Eracla","Ermelinda","Ermenegarda","Ermenegilda","Erminia","Ernesta","Ersilia","Esmeralda","Estella","Ester","Esterina","Eufemia","Eufrasia","Eugenia","Eulalia","Euridice","Eusebia","Eutalia","Eva","Evangelina","Evelina","Fabiana","Fabiola","Fatima","Fausta","Federica","Fedora","Felicia","Felicita","Fernanda","Fiammetta","Filippa","Filomena","Fiordaliso","Fiore","Fiorella","Fiorenza","Flaminia","Flavia","Flaviana","Flora","Floriana","Floridia","Florina","Foca","Fortunata","Fosca","Franca","Francesca","Fulvia","Gabriella","Gaia","Galatea","Gaudenzia","Gelsomina","Geltrude","Gemma","Generosa","Genesia","Genoveffa","Germana","Gertrude","Ghita","Giacinta","Giada","Gigliola","Gilda","Giliola","Ginevra","Gioacchina","Gioconda","Gioia","Giorgia","Giovanna","Gisella","Giuditta","Giulia","Giuliana","Giulitta","Giuseppa","Giuseppina","Giusta","Glenda","Gloria","Godeberta","Godiva","Grazia","Graziana","Graziella","Greta","Griselda","Guenda","Guendalina","Gundelinda","Ianira","Ida","Idea","Iginia","Ilaria","Ilda","Ildegarda","Ildegonda","Ileana","Ilenia","Ilia","Ilva","Imelda","Immacolata","Incoronata","Ines","Innocenza","Iolanda","Iole","Iona","Ione","Ionne","Irene","Iride","Iris","Irma","Irmina","Isa","Isabella","Iside","Isidora","Isotta","Italia","Ivetta","Lara","Laura","Lavinia","Lea","Leda","Lelia","Lena","Leonia","Leonilda","Leontina","Letizia","Lia","Liana","Liberata","Liboria","Licia","Lidania","Lidia","Liliana","Linda","Lisa","Livia","Liviana","Lodovica","Loredana","Lorella","Lorena","Lorenza","Loretta","Loriana","Luana","Luce","Lucia","Luciana","Lucilla","Lucrezia","Ludovica","Luigia","Luisa","Luminosa","Luna","Macaria","Maddalena","Mafalda","Magda","Maida","Manuela","Mara","Marana","Marcella","Mareta","Margherita","Maria","Marianna","Marica","Mariella","Marilena","Marina","Marinella","Marinetta","Marisa","Marita","Marta","Martina","Maruta","Marzia","Massima","Matilde","Maura","Melania","Melissa","Melitina","Menodora","Mercede","Messalina","Mia","Michela","Milena","Mimma","Mina","Minerva","Minervina","Miranda","Mirella","Miriam","Mirta","Moira","Monica","Morena","Morgana","Nadia","Natalia","Natalina","Neiva","Nerea","Nicla","Nicoletta","Nilde","Nina","Ninfa","Nives","Noemi","Norina","Norma","Novella","Nuccia","Nunziata","Odetta","Odilia","Ofelia","Olga","Olimpia","Olinda","Olivia","Oliviera","Ombretta","Ondina","Onesta","Onorata","Onorina","Orchidea","Oriana","Orietta","Ornella","Orsola","Orsolina","Ortensia","Osanna","Otilia","Ottilia","Palladia","Palmazio","Palmira","Pamela","Paola","Patrizia","Pelagia","Penelope","Perla","Petronilla","Pia","Piera","Placida","Polissena","Porzia","Prisca","Priscilla","Proserpina","Prospera","Prudenzia","Quartilla","Quieta","Quiteria","Rachele","Raffaella","Rainelda","Rebecca","Regina","Renata","Riccarda","Rina","Rita","Roberta","Romana","Romilda","Romina","Romola","Rosa","Rosalia","Rosalinda","Rosamunda","Rosanna","Rosita","Rosmunda","Rossana","Rossella","Rufina","Saba","Sabina","Sabrina","Samanta","Samona","Sandra","Santina","Sara","Savina","Scolastica","Sebastiana","Seconda","Secondina","Sefora","Selene","Selvaggia","Semiramide","Serafina","Serena","Severa","Sibilla","Sidonia","Silvana","Silvia","Simona","Simonetta","Siria","Smeralda","Soave","Sofia","Sofronia","Solange","Sonia","Speranza","Stefania","Stella","Susanna","Sveva","Tabita","Tamara","Tarquinia","Tarsilla","Taziana","Tea","Tecla","Telica","Teodata","Teodolinda","Teodora","Teresa","Teudosia","Tina","Tiziana","Tosca","Trasea","Tullia","Ugolina","Ulfa","Uliva","Unna","Vala","Valentina","Valeria","Valeriana","Vanda","Vanessa","Vanna","Venera","Veneranda","Venere","Venusta","Vera","Verdiana","Verena","Veriana","Veridiana","Veronica","Viliana","Vilma","Vincenza","Viola","Violante","Virginia","Vissia","Vittoria","Viviana","Wanda","Zabina","Zaira","Zama","Zanita","Zarina","Zelinda","Zenobia","Zita","Zoe","Zosima"]})($Rn);var xFa=$Rn.exports,FRn={exports:{}};(function(t){t.exports=["Abaco","Abbondanzio","Abbondio","Abdone","Abelardo","Abele","Abenzio","Abibo","Abramio","Abramo","Acacio","Acario","Accursio","Achille","Acilio","Aciscolo","Acrisio","Adalardo","Adalberto","Adalfredo","Adalgiso","Adalrico","Adamo","Addo","Adelardo","Adelberto","Adelchi","Adelfo","Adelgardo","Adelmo","Adeodato","Adolfo","Adone","Adriano","Adrione","Afro","Agabio","Agamennone","Agapito","Agazio","Agenore","Agesilao","Agostino","Agrippa","Aiace","Aidano","Aimone","Aladino","Alamanno","Alano","Alarico","Albano","Alberico","Alberto","Albino","Alboino","Albrico","Alceo","Alceste","Alcibiade","Alcide","Alcino","Aldo","Aldobrando","Aleandro","Aleardo","Aleramo","Alessandro","Alessio","Alfio","Alfonso","Alfredo","Algiso","Alighiero","Almerigo","Almiro","Aloisio","Alvaro","Alviero","Alvise","Amabile","Amadeo","Amando","Amanzio","Amaranto","Amato","Amatore","Amauri","Ambrogio","Ambrosiano","Amedeo","Amelio","Amerigo","Amico","Amilcare","Amintore","Amleto","Amone","Amore","Amos","Ampelio","Anacleto","Andrea","Angelo","Aniceto","Aniello","Annibale","Ansaldo","Anselmo","Ansovino","Antelmo","Antero","Antimo","Antino","Antioco","Antonello","Antonio","Apollinare","Apollo","Apuleio","Aquilino","Araldo","Aratone","Arcadio","Archimede","Archippo","Arcibaldo","Ardito","Arduino","Aresio","Argimiro","Argo","Arialdo","Ariberto","Ariele","Ariosto","Aris","Aristarco","Aristeo","Aristide","Aristione","Aristo","Aristofane","Aristotele","Armando","Arminio","Arnaldo","Aronne","Arrigo","Arturo","Ascanio","Asdrubale","Asimodeo","Assunto","Asterio","Astianatte","Ataleo","Atanasio","Athos","Attila","Attilano","Attilio","Auberto","Audace","Augusto","Aureliano","Aurelio","Auro","Ausilio","Averardo","Azeglio","Azelio","Bacco","Baldassarre","Balderico","Baldo","Baldomero","Baldovino","Barbarigo","Bardo","Bardomiano","Barnaba","Barsaba","Barsimeo","Bartolo","Bartolomeo","Basileo","Basilio","Bassiano","Bastiano","Battista","Beato","Bellino","Beltramo","Benedetto","Beniamino","Benigno","Benito","Benvenuto","Berardo","Berengario","Bernardo","Beronico","Bertoldo","Bertolfo","Biagio","Bibiano","Bindo","Bino","Birino","Bonagiunta","Bonaldo","Bonaventura","Bonavita","Bonifacio","Bonito","Boris","Bortolo","Brancaleone","Brando","Bruno","Bruto","Caino","Caio","Calanico","Calcedonio","Callisto","Calogero","Camillo","Candido","Cantidio","Canziano","Carlo","Carmelo","Carmine","Caronte","Carponio","Casimiro","Cassiano","Cassio","Casto","Cataldo","Catullo","Cecco","Cecilio","Celso","Cesare","Cesario","Cherubino","Chiaffredo","Cino","Cipriano","Cirano","Ciriaco","Cirillo","Cirino","Ciro","Clarenzio","Claudio","Cleandro","Clemente","Cleonico","Climaco","Clinio","Clodomiro","Clodoveo","Colmanno","Colmazio","Colombano","Colombo","Concetto","Concordio","Corbiniano","Coreno","Coriolano","Cornelio","Coronato","Corrado","Cosimo","Cosma","Costante","Costantino","Costanzo","Cremenzio","Crescente","Crescenzio","Crespignano","Crispino","Cristaldo","Cristiano","Cristoforo","Crocefisso","Cuniberto","Cupido","Daciano","Dacio","Dagoberto","Dalmazio","Damaso","Damiano","Damocle","Daniele","Danilo","Danio","Dante","Dario","Davide","Davino","Decimo","Delfino","Demetrio","Democrito","Demostene","Deodato","Desiderato","Desiderio","Didimo","Diego","Dino","Diocleziano","Diodoro","Diogene","Diomede","Dione","Dionigi","Dionisio","Divo","Dodato","Domenico","Domezio","Domiziano","Donatello","Donato","Doriano","Doroteo","Duccio","Duilio","Durante","Eberardo","Ecclesio","Edgardo","Edilberto","Edmondo","Edoardo","Efisio","Efrem","Egeo","Egidio","Eginardo","Egisto","Eleuterio","Elia","Eliano","Elifio","Eligio","Elio","Eliodoro","Eliseo","Elita","Elmo","Elogio","Elpidio","Elvezio","Elvino","Emanuele","Emidio","Emiliano","Emilio","Emmerico","Empirio","Endrigo","Enea","Enecone","Ennio","Enrico","Enzo","Eraclide","Eraldo","Erardo","Erasmo","Erberto","Ercolano","Ercole","Erenia","Eriberto","Erico","Ermanno","Ermenegildo","Ermes","Ermete","Ermilo","Erminio","Ernesto","Eros","Esa�","Esuperio","Eterie","Ettore","Euclide","Eufebio","Eufemio","Eufronio","Eugenio","Eusebio","Euseo","Eustorgio","Eustosio","Eutalio","Evaldo","Evandro","Evaristo","Evasio","Everardo","Evidio","Evodio","Evremondo","Ezechiele","Ezio","Fabiano","Fabio","Fabrizio","Famiano","Fausto","Fazio","Fedele","Federico","Fedro","Felice","Feliciano","Ferdinando","Fermiano","Fermo","Fernando","Ferruccio","Festo","Fidenziano","Fidenzio","Filiberto","Filippo","Filomeno","Fiorenziano","Fiorenzo","Flaviano","Flavio","Fleano","Floriano","Folco","Fortunato","Fosco","Francesco","Franco","Frido","Frontiniano","Fulberto","Fulgenzio","Fulvio","Furio","Furseo","Fuscolo","Gabino","Gabriele","Gaetano","Gaglioffo","Gaio","Galdino","Galeazzo","Galileo","Gallicano","Gandolfo","Garimberto","Gaspare","Gastone","Gaudenzio","Gaudino","Gautiero","Gavino","Gedeone","Geminiano","Generoso","Genesio","Gennaro","Gentile","Genziano","Gerardo","Gerasimo","Geremia","Gerino","Germano","Gerolamo","Geronimo","Geronzio","Gervasio","Gesualdo","Gherardo","Giacinto","Giacobbe","Giacomo","Giadero","Giambattista","Gianbattista","Giancarlo","Giandomenico","Gianfranco","Gianluca","Gianluigi","Gianmarco","Gianmaria","Gianmario","Gianni","Gianpaolo","Gianpiero","Gianpietro","Gianuario","Giasone","Gilberto","Gildo","Gillo","Gineto","Gino","Gioacchino","Giobbe","Gioberto","Giocondo","Gioele","Giona","Gionata","Giordano","Giorgio","Giosu�","Giosuele","Giotto","Giovanni","Giove","Gioventino","Giovenzio","Girardo","Girolamo","Giuda","Giuliano","Giulio","Giuseppe","Giustiniano","Giusto","Glauco","Goffredo","Golia","Gomberto","Gondulfo","Gonerio","Gonzaga","Gordiano","Gosto","Gottardo","Graciliano","Grato","Graziano","Gregorio","Grimaldo","Gualberto","Gualtiero","Guelfo","Guerrino","Guglielmo","Guiberto","Guido","Guiscardo","Gumesindo","Gustavo","Iacopo","Iacopone","Iago","Icaro","Icilio","Ido","Iginio","Igino","Ignazio","Igor","Ilario","Ildebrando","Ildefonso","Illidio","Illuminato","Immacolato","Indro","Innocente","Innocenzo","Iorio","Ippocrate","Ippolito","Ireneo","Isacco","Isaia","Ischirione","Isidoro","Ismaele","Italo","Ivan","Ivano","Ivanoe","Ivo","Ivone","Ladislao","Lamberto","Lancilotto","Landolfo","Lanfranco","Lapo","Laurentino","Lauriano","Lautone","Lavinio","Lazzaro","Leandro","Leo","Leonardo","Leone","Leonida","Leonio","Leonzio","Leopardo","Leopoldo","Letterio","Liberato","Liberatore","Liberio","Libero","Liberto","Liborio","Lidio","Lieto","Lino","Lisandro","Livino","Livio","Lodovico","Loreno","Lorenzo","Loris","Luca","Luciano","Lucio","Ludano","Ludovico","Luigi","Macario","Maccabeo","Maffeo","Maggiorino","Magno","Maiorico","Malco","Mamante","Mancio","Manetto","Manfredo","Manilio","Manlio","Mansueto","Manuele","Marcello","Marciano","Marco","Mariano","Marino","Mario","Marolo","Martino","Marzio","Massimiliano","Massimo","Matroniano","Matteo","Mattia","Maurilio","Maurizio","Mauro","Medardo","Medoro","Melanio","Melchiade","Melchiorre","Melezio","Menardo","Menelao","Meneo","Mennone","Mercurio","Metello","Metrofane","Michelangelo","Michele","Milo","Minervino","Mirco","Mirko","Mirocleto","Misaele","Modesto","Monaldo","Monitore","Moreno","Mos�","Muziano","Namazio","Napoleone","Narciso","Narseo","Narsete","Natale","Nazario","Nazzareno","Nazzaro","Neopolo","Neoterio","Nereo","Neri","Nestore","Nicarete","Nicea","Niceforo","Niceto","Nicezio","Nico","Nicodemo","Nicola","Nicol�","Niniano","Nino","No�","Norberto","Nostriano","Nunzio","Oddone","Oderico","Odidone","Odorico","Olimpio","Olindo","Oliviero","Omar","Omero","Onesto","Onofrio","Onorino","Onorio","Orazio","Orenzio","Oreste","Orfeo","Orio","Orlando","Oronzo","Orsino","Orso","Ortensio","Oscar","Osmondo","Osvaldo","Otello","Ottaviano","Ottavio","Ottone","Ovidio","Paciano","Pacifico","Pacomio","Palatino","Palladio","Pammachio","Pancario","Pancrazio","Panfilo","Pantaleo","Pantaleone","Paolo","Pardo","Paride","Parmenio","Pasquale","Paterniano","Patrizio","Patroclo","Pauside","Peleo","Pellegrino","Pericle","Perseo","Petronio","Pierangelo","Piergiorgio","Pierluigi","Piermarco","Piero","Piersilvio","Pietro","Pio","Pippo","Placido","Platone","Plinio","Plutarco","Polidoro","Polifemo","Pollione","Pompeo","Pomponio","Ponziano","Ponzio","Porfirio","Porziano","Postumio","Prassede","Priamo","Primo","Prisco","Privato","Procopio","Prospero","Protasio","Proteo","Prudenzio","Publio","Pupolo","Pusicio","Quarto","Quasimodo","Querano","Quintiliano","Quintilio","Quintino","Quinziano","Quinzio","Quirino","Radolfo","Raffaele","Raide","Raimondo","Rainaldo","Ramiro","Raniero","Ranolfo","Reginaldo","Regolo","Remigio","Remo","Remondo","Renato","Renzo","Respicio","Ricario","Riccardo","Richelmo","Rinaldo","Rino","Robaldo","Roberto","Rocco","Rodiano","Rodolfo","Rodrigo","Rolando","Rolfo","Romano","Romeo","Romero","Romoaldo","Romolo","Romualdo","Rosario","Rubiano","Rufino","Rufo","Ruggero","Ruperto","Rutilo","Sabato","Sabazio","Sabele","Sabino","Saffiro","Saffo","Saladino","Salom�","Salomone","Salustio","Salvatore","Salvo","Samuele","Sandro","Sansone","Sante","Santo","Sapiente","Sarbello","Saturniano","Saturnino","Saul","Saverio","Savino","Sebastiano","Secondiano","Secondo","Semplicio","Sempronio","Senesio","Senofonte","Serafino","Serapione","Sergio","Servidio","Serviliano","Sesto","Settimio","Settimo","Severiano","Severino","Severo","Sico","Sicuro","Sidonio","Sigfrido","Sigismondo","Silvano","Silverio","Silvestro","Silvio","Simeone","Simone","Sinesio","Sinfronio","Sireno","Siriano","Siricio","Sirio","Siro","Sisto","Soccorso","Socrate","Solocone","Sostene","Sosteneo","Sostrato","Spano","Spartaco","Speranzio","Stanislao","Stefano","Stiliano","Stiriaco","Surano","Sviturno","Taddeo","Taide","Tammaro","Tancredi","Tarcisio","Tarso","Taziano","Tazio","Telchide","Telemaco","Temistocle","Teobaldo","Teodoro","Teodosio","Teodoto","Teogene","Terenzio","Terzo","Tesauro","Tesifonte","Tibaldo","Tiberio","Tiburzio","Ticone","Timoteo","Tirone","Tito","Tiziano","Tizio","Tobia","Tolomeo","Tommaso","Torquato","Tosco","Tranquillo","Tristano","Tulliano","Tullio","Turi","Turibio","Tussio","Ubaldo","Ubertino","Uberto","Ugo","Ugolino","Uguccione","Ulberto","Ulderico","Ulfo","Ulisse","Ulpiano","Ulrico","Ulstano","Ultimo","Umberto","Umile","Uranio","Urbano","Urdino","Uriele","Ursicio","Ursino","Ursmaro","Valente","Valentino","Valeriano","Valerico","Valerio","Valfredo","Valfrido","Valtena","Valter","Varo","Vasco","Vedasto","Velio","Venanzio","Venceslao","Venerando","Venerio","Ventura","Venustiano","Venusto","Verano","Verecondo","Verenzio","Verulo","Vespasiano","Vezio","Vidiano","Vidone","Vilfredo","Viliberto","Vincenzo","Vindonio","Vinebaldo","Vinfrido","Vinicio","Virgilio","Virginio","Virone","Viscardo","Vitale","Vitalico","Vito","Vittore","Vittoriano","Vittorio","Vivaldo","Viviano","Vladimiro","Vodingo","Volfango","Vulmaro","Vulpiano","Walter","Zabedeo","Zaccaria","Zaccheo","Zanobi","Zefiro","Zena","Zenaide","Zenebio","Zeno","Zenobio","Zenone","Zetico","Zoilo","Zosimo","Abbondanza","Acilia","Ada","Adalberta","Adalgisa","Addolorata","Adelaide","Adelasia","Adele","Adelina","Adina","Adria","Adriana","Agape","Agata","Agnese","Agostina","Aida","Alba","Alberta","Albina","Alcina","Alda","Alessandra","Alessia","Alfonsa","Alfreda","Alice","Alida","Alina","Allegra","Alma","Altea","Amalia","Amanda","Amata","Ambra","Amelia","Amina","Anastasia","Anatolia","Ancilla","Andromeda","Angela","Angelica","Anita","Anna","Annabella","Annagrazia","Annamaria","Annunziata","Antea","Antigone","Antonella","Antonia","Apollina","Apollonia","Appia","Arabella","Argelia","Arianna","Armida","Artemisa","Asella","Asia","Assunta","Astrid","Atanasia","Aurelia","Aurora","Ausilia","Ausiliatrice","Ave","Aza","Azelia","Azzurra","Babila","Bambina","Barbara","Bartolomea","Basilia","Bassilla","Batilda","Beata","Beatrice","Belina","Benedetta","Beniamina","Benigna","Benvenuta","Berenice","Bernadetta","Betta","Bianca","Bibiana","Bice","Brigida","Brigitta","Bruna","Brunilde","Calogera","Calpurnia","Camelia","Camilla","Candida","Capitolina","Carina","Carla","Carlotta","Carmela","Carmen","Carola","Carolina","Casilda","Casimira","Cassandra","Cassiopea","Catena","Caterina","Cecilia","Celeste","Celinia","Chiara","Cinzia","Cirilla","Clara","Claudia","Clelia","Clemenzia","Cleo","Cleofe","Cleopatra","Cloe","Clorinda","Cointa","Colomba","Concetta","Consolata","Cora","Cordelia","Corinna","Cornelia","Cosima","Costanza","Crescenzia","Cristiana","Cristina","Crocefissa","Cronida","Cunegonda","Cuzia","Dafne","Dalida","Dalila","Damiana","Daniela","Daria","Deanna","Debora","Degna","Delfina","Delia","Delinda","Delizia","Demetria","Deodata","Desdemona","Desiderata","Devota","Diamante","Diana","Dianora","Diletta","Dina","Diodata","Dionisia","Doda","Dolores","Domenica","Donata","Donatella","Donna","Dora","Dorotea","Druina","Dulina","Ebe","Edda","Edelberga","Editta","Edvige","Egizia","Egle","Elaide","Elda","Elena","Eleonora","Elettra","Eliana","Elide","Elimena","Elisa","Elisabetta","Elisea","Ella","Eloisa","Elsa","Elvia","Elvira","Emanuela","Emilia","Emiliana","Emma","Enimia","Enrica","Eracla","Ermelinda","Ermenegarda","Ermenegilda","Erminia","Ernesta","Ersilia","Esmeralda","Estella","Ester","Esterina","Eufemia","Eufrasia","Eugenia","Eulalia","Euridice","Eusebia","Eutalia","Eva","Evangelina","Evelina","Fabiana","Fabiola","Fatima","Fausta","Federica","Fedora","Felicia","Felicita","Fernanda","Fiammetta","Filippa","Filomena","Fiordaliso","Fiore","Fiorella","Fiorenza","Flaminia","Flavia","Flaviana","Flora","Floriana","Floridia","Florina","Foca","Fortunata","Fosca","Franca","Francesca","Fulvia","Gabriella","Gaia","Galatea","Gaudenzia","Gelsomina","Geltrude","Gemma","Generosa","Genesia","Genoveffa","Germana","Gertrude","Ghita","Giacinta","Giada","Gigliola","Gilda","Giliola","Ginevra","Gioacchina","Gioconda","Gioia","Giorgia","Giovanna","Gisella","Giuditta","Giulia","Giuliana","Giulitta","Giuseppa","Giuseppina","Giusta","Glenda","Gloria","Godeberta","Godiva","Grazia","Graziana","Graziella","Greta","Griselda","Guenda","Guendalina","Gundelinda","Ianira","Ida","Idea","Iginia","Ilaria","Ilda","Ildegarda","Ildegonda","Ileana","Ilenia","Ilia","Ilva","Imelda","Immacolata","Incoronata","Ines","Innocenza","Iolanda","Iole","Iona","Ione","Ionne","Irene","Iride","Iris","Irma","Irmina","Isa","Isabella","Iside","Isidora","Isotta","Italia","Ivetta","Lara","Laura","Lavinia","Lea","Leda","Lelia","Lena","Leonia","Leonilda","Leontina","Letizia","Lia","Liana","Liberata","Liboria","Licia","Lidania","Lidia","Liliana","Linda","Lisa","Livia","Liviana","Lodovica","Loredana","Lorella","Lorena","Lorenza","Loretta","Loriana","Luana","Luce","Lucia","Luciana","Lucilla","Lucrezia","Ludovica","Luigia","Luisa","Luminosa","Luna","Macaria","Maddalena","Mafalda","Magda","Maida","Manuela","Mara","Marana","Marcella","Mareta","Margherita","Maria","Marianna","Marica","Mariella","Marilena","Marina","Marinella","Marinetta","Marisa","Marita","Marta","Martina","Maruta","Marzia","Massima","Matilde","Maura","Melania","Melissa","Melitina","Menodora","Mercede","Messalina","Mia","Michela","Milena","Mimma","Mina","Minerva","Minervina","Miranda","Mirella","Miriam","Mirta","Moira","Monica","Morena","Morgana","Nadia","Natalia","Natalina","Neiva","Nerea","Nicla","Nicoletta","Nilde","Nina","Ninfa","Nives","Noemi","Norina","Norma","Novella","Nuccia","Nunziata","Odetta","Odilia","Ofelia","Olga","Olimpia","Olinda","Olivia","Oliviera","Ombretta","Ondina","Onesta","Onorata","Onorina","Orchidea","Oriana","Orietta","Ornella","Orsola","Orsolina","Ortensia","Osanna","Otilia","Ottilia","Palladia","Palmazio","Palmira","Pamela","Paola","Patrizia","Pelagia","Penelope","Perla","Petronilla","Pia","Piera","Placida","Polissena","Porzia","Prisca","Priscilla","Proserpina","Prospera","Prudenzia","Quartilla","Quieta","Quiteria","Rachele","Raffaella","Rainelda","Rebecca","Regina","Renata","Riccarda","Rina","Rita","Roberta","Romana","Romilda","Romina","Romola","Rosa","Rosalia","Rosalinda","Rosamunda","Rosanna","Rosita","Rosmunda","Rossana","Rossella","Rufina","Saba","Sabina","Sabrina","Samanta","Samona","Sandra","Santina","Sara","Savina","Scolastica","Sebastiana","Seconda","Secondina","Sefora","Selene","Selvaggia","Semiramide","Serafina","Serena","Severa","Sibilla","Sidonia","Silvana","Silvia","Simona","Simonetta","Siria","Smeralda","Soave","Sofia","Sofronia","Solange","Sonia","Speranza","Stefania","Stella","Susanna","Sveva","Tabita","Tamara","Tarquinia","Tarsilla","Taziana","Tea","Tecla","Telica","Teodata","Teodolinda","Teodora","Teresa","Teudosia","Tina","Tiziana","Tosca","Trasea","Tullia","Ugolina","Ulfa","Uliva","Unna","Vala","Valentina","Valeria","Valeriana","Vanda","Vanessa","Vanna","Venera","Veneranda","Venere","Venusta","Vera","Verdiana","Verena","Veriana","Veridiana","Veronica","Viliana","Vilma","Vincenza","Viola","Violante","Virginia","Vissia","Vittoria","Viviana","Wanda","Zabina","Zaira","Zama","Zanita","Zarina","Zelinda","Zenobia","Zita","Zoe","Zosima"]})(FRn);var EFa=FRn.exports,jRn={exports:{}};(function(t){t.exports=["Abate","Abbate","Abbondanza","Abbrescia","Accardi","Accardo","Accurso","Aceto","Acquadro","Acquaviva","Acquistapace","Adami","Adamo","Addari","Addis","Adragna","Affinito","Agnello","Agostinelli","Agostini","Agresta","Aiello","Alaimo","Albanese","Albano","Alberti","Alcamo","Alessandrini","Alessi","Alfano","Alfieri","Alivernini","Allegretti","Aloi","Altieri","Amabile","Amadori","Amato","Ambrosini","Ambrosino","Ambrosio","Amendola","Amerio","Amici","Amico","Ammoscato","Amoroso","Amoruso","Ancona","Andreoli","Andrisani","Anelli","Angeletti","Angeli","Angelini","Angeloni","Angelucci","Annunziata","Anselmi","Anselmo","Antenucci","Antezza","Antonacci","Antonelli","Antonini","Antonucci","Anzalone","Apicella","Aprile","Aquino","Aramini","Arcangeli","Arena","Argenio","Argento","Argiolas","Artioli","Asaro","Ascione","Astolfi","Atzeni","Atzori","Avallone","Avola","Azara","Babini","Bacci","Baggio","Baiocco","Balboni","Baldacci","Baldassarre","Baldi","Baldini","Baldo","Balducci","Balestra","Balistreri","Ballarin","Balsamo","Balzano","Bandini","Bani","Baraldi","Barbagallo","Barbarossa","Barbarulo","Barbato","Barbera","Barberi","Barberis","Barbero","Barbieri","Barbiero","Barile","Barillà","Barletta","Barone","Baroni","Barra","Barreca","Barresi","Barretta","Barsotti","Bartoli","Bartolini","Bartolomei","Bartolucci","Basile","Bassani","Bassi","Basso","Battaglia","Battista","Battisti","Battistini","Bedini","Belli","Bellini","Bellomo","Bellotti","Bellucci","Belmonte","Belotti","Beltrame","Beltrami","Belvisi","Benatti","Benedetti","Benedetto","Benetti","Benigni","Benini","Bennardo","Bentivoglio","Benvenuti","Benvenuto","Berardi","Beretta","Bergamasco","Bergamini","Bernabei","Bernardi","Bernardini","Bernasconi","Bertaccini","Bertani","Bertelli","Berti","Bertini","Berto","Bertolini","Bertolussi","Beso","Betti","Bevilacqua","Biagetti","Biagi","Biagini","Bianc","Biancheri","Bianchetti","Bianchi","Bianchini","Bianco","Biasci","Biccari","Biggi","Bindi","Bini","Bionaz","Biondi","Bisconti","Bisio","Bizzarri","Blanc","Blasi","Bocchi","Boccia","Bodini","Boffa","Boi","Bologna","Bonanni","Bonanno","Bonato","Bonazzi","Bonelli","Bonetti","Bongiorno","Bongiovanni","Boni","Bonifazi","Bonini","Bono","Bonomi","Bonomo","Bordoni","Borelli","Borghi","Borgia","Borrelli","Bortolin","Bortoluzzi","Bortot","Boscaino","Boschetti","Boschi","Bosco","Boscolo","Bosi","Botta","Bove","Bovolenta","Bozzi","Bozzo","Braia","Brambilla","Branca","Brandi","Bresciani","Bressan","Briano","Brigandì","Brignone","Brizzi","Brogi","Brumat","Brunelli","Brunetti","Bruni","Bruno","Bruschi","Bruzzone","Buccheri","Bucci","Bulgarelli","Buongiorno","Buonomo","Burgio","Butera","Buzzi","Cabras","Caccamo","Caccavo","Cacciapuoti","Cacciatore","Cadoni","Caforio","Caggiano","Caiazza","Caiazzo","Calabrese","Calabria","Calabrò","Calafiore","Calandro","Calì","Califano","Callegari","Calligaris","Calò","Camilli","Cammarata","Cammisa","Campagna","Campana","Campanella","Campanile","Campanini","Campisi","Campo","Campoli","Campus","Canale","Cancelliere","Cancellieri","Candela","Candido","Canepa","Cangiano","Canino","Cannas","Cannata","Cannella","Cannone","Canova","Cantagallo","Cantoni","Canu","Capannolo","Capasso","Capecchi","Capelli","Capitani","Capizzi","Capoccia","Capocotta","Capogna","Capone","Caporaso","Cappai","Cappelletti","Cappelli","Cappello","Cappiello","Capponi","Capraro","Capriotti","Capuano","Caputo","Cara","Caracciolo","Caradonna","Carbon","Carbone","Carboni","Cardella","Cardia","Cardinale","Cardinali","Cardini","Cardone","Carè","Careddu","Carella","Caretti","Caricari","Carini","Carletti","Carli","Carlini","Carlino","Carloni","Carlotti","Carlucci","Carminati","Carnevale","Carnovale","Carollo","Carosi","Carrara","Carraro","Carrieri","Carriero","Carrozza","Carrozzo","Carrus","Carta","Caruso","Carvelli","Casadei","Casadio","Casagrande","Casale","Casali","Casano","Casavecchia","Cascio","Cascone","Casella","Caselli","Caserta","Casini","Casolaro","Cassano","Castagna","Castaldi","Castaldo","Castellana","Castellani","Castellano","Castelli","Castiello","Castiglioni","Casu","Casula","Catalano","Cataldi","Cataldo","Catania","Catanzaro","Catarsi","Catellani","Caterino","Cattaneo","Cattani","Cavaliere","Cavalieri","Cavallari","Cavallaro","Cavalli","Cavallini","Cavallo","Cavriani","Ceccarelli","Ceccarini","Cecchetti","Cecchi","Cecchini","Cecere","Celano","Celentano","Celeste","Celi","Celli","Cellini","Cenni","Centofanti","Cerise","Cerrani","Cerrato","Cerri","Cerullo","Cerutti","Cesaretti","Cherchi","Cherubini","Chessa","Chessari","Chiacchio","Chianese","Chiaravalle","Chiavacci","Chilà","Chimenti","Chiodi","Chirico","Ciaccio","Ciacio","Ciampa","Cianci","Ciani","Ciavarella","Cicala","Cicatiello","Ciccarelli","Cicchetti","Ciccone","Cifarelli","Cilli","Cimmino","Cinelli","Cingolani","Cini","Cioffi","Cioni","Ciotola","Ciotti","Cipolla","Cipollaro","Cipolletta","Cipriani","Cipriano","Cirelli","Cirillo","Citro","Cittadino","Ciuffetelli","Ciuffreda","Ciulla","Clemente","Coccia","Cocco","Cola","Colangelo","Colantuono","Colella","Coletta","Colombo","Colonna","Colucci","Comito","Como","Concas","Conforti","Congiu","Coniglio","Consiglio","Cont","Conte","Conti","Contini","Contu","Coppola","Corazza","Cordioli","Coretti","Corona","Corradi","Corradini","Corrado","Corrao","Correale","Corridori","Corsi","Corsini","Corso","Cortese","Cortesi","Corti","Cortinovis","Cosentino","Coslovich","Cossu","Costa","Costantin","Costantini","Costantino","Costanza","Costanzo","Cottone","Coviello","Cozzani","Cozzi","Cozzolino","Crea","Cremona","Cremonesi","Crepaldi","Crescenzi","Crespi","Crevatin","Crimi","Crippa","Crisafulli","Criscenti","Crisci","Criscione","Crispino","Cristiano","Cristofaro","Critelli","Croce","Cruciani","Cruciata","Cucchiara","Cucciniello","Cuomo","Curci","Curcio","Curreli","Cusimano","Cusumano","Cuzzocrea","D'Agostino","D'Aleo","D'Alessandro","D'Alessio","D'Amato","D'Ambrosio","D'Amico","D'Amore","D'Andrea","D'Angeli","D'Angelo","D'Anna","D'Argenio","D'Avino","D'Elia","D'Errico","D'Incà","D'Ippolito","D'Onofrio","D'Orazio","D'Urso","Da Rold","Daidone","Dal Farra","Dalmasso","Damiani","Damiano","Damico","Daniele","Dante","Dattilo","Davoli","De Angelis","De Biase","De Blasi","De Bona","De Bonis","De Candido","De Carlo","De Carolis","De Chiara","De Cicco","De Col","De Cristofaro","De Falco","De Fazio","De Feo","De Filippis","De Filippo","De Giorgi","De Giorgio","De Gregorio","De Lorenzo","De Luca","De Lucia","De Maio","De Marco","De Maria","De Martino","De Masi","De Meo","De Napoli","De Palma","De Rosa","De Rossi","De Salvo","De Sanctis","De Santis","De Simone","De Stefano","De Vita","De Vito","Degano","Degrassi","Deiana","Del Bianco","Del Gaudio","Del Monte","Del Prete","Del Vecchio","Delfino","Dell'Amico","Delle Monache","Delogu","Demontis","Demurtas","Denaro","Denti","Deriu","Desiderio","Desogus","Destro","Di Bari","Di Battista","Di Bella","Di Benedetto","Di Biase","Di Blasi","Di Caccamo","Di Carlo","Di Cesare","Di Ciocco","Di Costanzo","Di Dio","Di Domenico","Di Donato","Di Fazio","Di Felice","Di Fiore","Di Francesco","Di Franco","Di Gaetano","Di Gennaro","Di Giacomo","Di Giorgio","Di Giovanni","Di Girolamo","Di Giuseppe","Di Gregorio","Di Grezia","Di Iorio","Di Lascio","Di Lecce","Di Liberto","Di Lorenzo","Di Luca","Di Maggio","Di Maio","Di Marco","Di Maria","Di Marino","Di Maro","Di Martino","Di Marzio","Di Matteo","Di Mauro","Di Michele","Di Nardo","Di Natale","Di Palma","Di Paola","Di Paolo","Di Pasquale","Di Pede","Di Pietro","Di Rocco","Di Salvo","Di Santo","Di Sarno","Di Somma","Di Stefano","Di Tommaso","Di Tullio","Di Vita","Diamanti","Diana","Dini","Dionisi","Distefano","Dodaro","Dolce","Dolci","Dominici","Donati","Donato","Donda","Doria","Doro","Doronzo","Drago","Dragone","Dragoni","Duca","Ducci","Durante","Dutto","Egger","Elia","Eligibile","Epifani","Ercoli","Ermini","Errante","Errera","Errichiello","Errico","Esposito","Evangelista","Evangelisti","Evola","Fabbri","Fabbricatore","Fabbro","Fabiani","Fabiano","Fabris","Fabrizi","Fabrizio","Fadda","Falbo","Falchi","Falcioni","Falco","Falcone","Falzone","Fanara","Fancello","Fanelli","Fantini","Fantozzi","Faraci","Faraone","Farella","Farin","Farina","Farris","Fasano","Fasoli","Fava","Favara","Favaro","Favero","Favre","Fazio","Fedele","Federici","Federico","Feleppa","Felici","Feliziani","Femina","Ferilli","Ferluga","Ferracuti","Ferraiuolo","Ferrando","Ferrante","Ferranti","Ferrara","Ferrari","Ferrarini","Ferrario","Ferraris","Ferraro","Ferrarotti","Ferreri","Ferrero","Ferretti","Ferri","Ferrigno","Ferrini","Ferro","Ferroni","Festa","Festuccia","Fichera","Fierro","Filice","Filippi","Filippini","Filipponi","Fini","Finocchiaro","Finotti","Fior","Fioravanti","Fiore","Fiorelli","Fiorentini","Fiorentino","Fiorenza","Fioretti","Fiori","Fiorillo","Fiorini","Fiorucci","Fischetti","Flacco","Flore","Floridia","Florio","Floris","Foglia","Fois","Fonda","Fontana","Fonti","Forconi","Forgione","Forlani","Formica","Fornara","Forte","Fortugno","Fortunato","Foschi","Foti","Francesca","Franceschi","Franceschini","Francesconi","Francese","Franchi","Franchini","Franco","Franzè","Franzoni","Frasca","Fratello","Fratti","Frau","Frezza","Frigerio","Frigo","Fucci","Fumagalli","Fumarola","Fuoco","Furlan","Furno","Fusaro","Fusco","Gabriele","Gabrielli","Gaddini","Gagliano","Gagliardi","Galante","Galasso","Galati","Galeazzi","Galli","Gallo","Galluzzo","Gamba","Gamberini","Gambino","Gamper","Gandolfo","Gangemi","Garau","Garavaglia","Gargiulo","Garifo","Garofalo","Gaspari","Gasparini","Gasser","Gatta","Gatti","Gatto","Gaudiano","Gazzola","Gemma","Genchi","Genna","Gennaro","Genovese","Gentile","Gentili","Gerace","Geraci","Germani","Gervasi","Ghilardi","Giacalone","Giaccio","Giachi","Giacomelli","Giampaoli","Giampaolo","Giannelli","Giannetti","Gianni","Giannini","Giannone","Giannotti","Gianotti","Giansante","Giardina","Giardini","Gigli","Giglio","Gigliotti","Gioacchini","Gioia","Giordani","Giordano","Giorgetti","Giorgi","Giorgio","Giovannelli","Giovannetti","Giovannini","Giovinazzo","Girardi","Giraudo","Girone","Giudice","Giuffrida","Giugliano","Giuliani","Giuliano","Giunta","Giusti","Giustra","Gobbi","Golinelli","Gori","Govoni","Granà","Granata","Granato","Grande","Grandi","Grange","Grassi","Grasso","Gravina","Graziani","Graziano","Greco","Gregori","Greppi","Grieco","Grilli","Grillo","Grimaldi","Grossi","Grosso","Gruber","Gruppuso","Gualtieri","Guarino","Guarneri","Guarnieri","Guastella","Guastone","Guerra","Guerrieri","Guerriero","Guerrini","Guglielmi","Guida","Guidetti","Guidi","Guido","Guidotti","Gulino","Gullì","Gurrieri","Gusmeroli","Hofer","Huber","Iacolare","Iacono","Iacovino","Iacovone","Iandolo","Iannaccone","Iannello","Ianni","Iannone","Iannucci","Iaria","Iazzetta","Ierardi","Iezzi","Impellizzeri","Improta","Indelicato","Ingrassia","Ingrosso","Innocenti","Inzerillo","Iodice","Iorio","Iotti","Iovino","Ippoliti","Ippolito","Iuliano","Izzi","Izzo","Kofler","La Barbera","La Malfa","La Manna","La Monaca","La Monica","La Porta","La Rocca","La Rosa","La Sala","La Torre","Labate","Laezza","Laganà","Lai","Lamacchia","Lamberti","Lana","Landi","Lanteri","Lanza","Lari","Latini","Latorre","Lattanzi","Lauri","Lavecchia","Lazzari","Lazzarini","Lazzaro","Leale","Lecca","Ledda","Leggio","Lelli","Lentini","Lenzi","Leo","Leonardi","Leoncini","Leone","Leonetti","Leoni","Leopardi","Lepore","Lezzi","Liberati","Librizzi","Licata","Liccardo","Licciardello","Licitra","Ligorio","Liguori","Liotta","Lipari","Lippi","Lippolis","Lisi","Litterio","Liuzzi","Liverani","Lo Bianco","Lo Cascio","Lo Giudice","Lo Iacono","Lo Piccolo","Lo Pinto","Lo Presti","Locatelli","Locci","Loddo","Lodi","Loffredo","Loi","Loiacono","Lolli","Lombardi","Lombardini","Lombardo","Lonardi","Longhi","Longo","Longobardi","Lopez","Lorenzini","Loreti","Loreto","Lori","Lorusso","Lotito","Lotti","Lovato","Luca","Lucarelli","Lucarini","Lucchese","Lucchesi","Luchetti","Luchini","Lucia","Luciani","Luciano","Lucidi","Luconi","Lugli","Luise","Luongo","Lupi","Lupica","Lupo","Luppi","Luppino","Luzi","Luzzi","Macaluso","Macchi","Macchia","Macrì","Madonna","Maffei","Maggi","Maggiani","Maggio","Maggiore","Magi","Magliocco","Magnani","Magno","Maiello","Mainardi","Maio","Maione","Mair","Malagoli","Malaspina","Malatesta","Malavasi","Malerba","Malizia","Maltese","Manca","Mancinelli","Mancini","Mancino","Mancuso","Manetti","Manfredi","Mangano","Mangione","Manica","Manicone","Maniscalco","Manna","Mannino","Manno","Manti","Mantovani","Manzella","Manzi","Manzo","Maragno","Marangi","Marangon","Marangoni","Marani","Marano","Marcelli","Marcello","Marchesan","Marchese","Marchesi","Marchesini","Marchetti","Marchetto","Marchi","Marchini","Marciano","Marcianò","Marcon","Marconi","Marcovecchio","Marcucci","Marega","Marelli","Maresca","Margiotta","Mari","Marian","Mariani","Mariano","Marinelli","Marini","Marino","Marinucci","Mariotti","Mariucci","Marone","Marongiu","Marotta","Marra","Marras","Marrazzo","Marrone","Marsella","Marsili","Martelli","Martellucci","Martina","Martinelli","Martines","Martini","Martino","Martorana","Martucci","Marzano","Marzi","Marziali","Marzocchi","Masala","Mascia","Masciandaro","Mascolo","Masi","Masia","Masiero","Massa","Massari","Massaro","Massimi","Mastrogiacomo","Mastroianni","Mastronardi","Mastropietro","Masucci","Matarazzo","Matera","Matranga","Matta","Mattei","Matteucci","Mattia","Mattioli","Maugeri","Mauri","Maurizi","Mauro","Mautone","Mazza","Mazzanti","Mazzarella","Mazzaro","Mazzei","Mazzeo","Mazzi","Mazzini","Mazzocchi","Mazzola","Mazzoleno","Mazzone","Mazzoni","Mazzotta","Mazzotti","Mecca","Medeot","Medici","Medugno","Megna","Melandri","Mele","Meli","Melillo","Melis","Meloni","Memoli","Mencarelli","Menconi","Menegatti","Mengoni","Menna","Menozzi","Meo","Mercuri","Mercurio","Mereu","Merli","Merlo","Merola","Messana","Messina","Micco","Miccoli","Miceli","Micheletti","Michelucci","Micillo","Migliaccio","Miglio","Migliore","Mignogna","Milan","Milani","Milano","Milazzo","Milella","Militello","Minelli","Mingarelli","Minniti","Miotto","Mirabella","Mistretta","Moccia","Modica","Moffa","Molinari","Molinaro","Mollica","Molteni","Monaci","Monaco","Monni","Montagna","Montagner","Montalbano","Montalto","Montanari","Montanaro","Montefusco","Monteleone","Montemurro","Monterosso","Montesano","Monti","Monticelli","Mora","Morabito","Morandi","Moras","Mordenti","Morelli","Morello","Moretti","Moretto","Morgante","Mori","Moriconi","Morini","Moro","Moroni","Morra","Morreale","Morri","Morrone","Mosca","Moscato","Moser","Mosti","Motisi","Motta","Mottola","Mulas","Mulè","Munaro","Mura","Muratore","Murgia","Murolo","Murru","Murtas","Musella","Musso","Musumeci","Nanni","Napoletano","Napoli","Napolitano","Nappi","Narcisi","Narciso","Nardi","Natale","Natali","Nava","Navarra","Nazzaro","Negri","Neri","Nesti","Nicastro","Niccolai","Nicoletti","Nicolini","Nicolò","Nicolosi","Nicosia","Nicotra","Nieddu","Nigro","Nobile","Nobili","Nocentini","Nocera","Nocerino","Nota","Notaro","Noto","Novelli","Novello","Nucci","Nucera","Nuzzo","Occhipinti","Oggiano","Oliva","Oliveri","Olivi","Olivieri","Oliviero","Olla","Orefice","Orlandi","Orlando","Orrù","Orsini","Ortenzi","Ortolani","Ostuni","Ottaviani","Ottaviano","Ottonello","Pace","Paci","Pacifici","Pacifico","Pacini","Padovan","Padula","Paganelli","Pagani","Pagano","Pagliai","Pagliuca","Pala","Paladini","Palano","Palazzi","Palazzo","Palazzolo","Palermo","Palla","Palladino","Pallotta","Palma","Palmeri","Palmieri","Palmisani","Palmisano","Palombi","Palombo","Palumbo","Panaro","Pandolfi","Panetta","Pani","Panico","Pantano","Panza","Panzeri","Paola","Paolella","Paoletti","Paoli","Paolicelli","Paolillo","Paolini","Paolino","Paolucci","Paone","Paonessa","Papa","Papaleo","Papapietro","Papini","Pappalardo","Paradiso","Pardini","Parente","Pariggiano","Paris","Parise","Parisi","Parodi","Parrinello","Parrino","Pascale","Pascali","Pascarella","Pascucci","Pasini","Pasqua","Pasquali","Pasquini","Passarelli","Passeri","Passero","Passuello","Pastore","Pastorelli","Pastorino","Patanè","Patriarca","Patrone","Patruno","Patti","Pau","Pavan","Pavani","Pavone","Peaquin","Pece","Pecora","Pecoraro","Pecorella","Pedone","Pedrazzini","Pedroni","Pedrotti","Pellecchia","Pellegrini","Pellegrino","Pellicano","Pellicanò","Pellitteri","Peluso","Penna","Pennestrì","Penzo","Pepe","Perego","Perilli","Perin","Perini","Perna","Peroni","Perotti","Perra","Perri","Perrini","Perrone","Perrotta","Perugini","Peruzzi","Pesaresi","Pesce","Pession","Petito","Petralia","Petrarca","Petrella","Petrelli","Petrini","Petrone","Petronio","Petrucci","Pezzella","Pezzi","Piacentini","Piana","Pianese","Pianigiani","Piazza","Piazzolla","Pibiri","Pica","Picariello","Picchi","Piccinini","Piccione","Picco","Piccoli","Piccolo","Pichler","Pieri","Pierini","Pierro","Piga","Pignatelli","Pilato","Pili","Pillitteri","Pinardi","Pini","Pinna","Pinto","Pintus","Pipitone","Piras","Pircher","Piredda","Pirone","Pirrello","Pirrone","Pisani","Pisano","Pischedda","Pisciotta","Piscitelli","Piscopo","Pisu","Pittalis","Pitzalis","Piva","Pivetta","Pizzi","Pizzimenti","Pizzitola","Pizzo","Pizzuti","Platania","Poggi","Poggio","Polese","Poletti","Poli","Polidori","Polimeno","Politi","Polito","Polizzi","Pollina","Polverino","Pompei","Pompili","Pompilio","Ponti","Porcari","Porcu","Postiglione","Potenza","Pozzi","Pozzo","Pratesi","Praticò","Prato","Prencipe","Prete","Preziosi","Principato","Prisco","Privitera","Procopio","Proietti","Provenzano","Puca","Pucci","Puccio","Puddu","Puggioni","Pugliese","Pugliesi","Puglisi","Puleo","Putzolu","Quaglia","Quaranta","Quarta","Quinto","Raffa","Rago","Ragone","Ragusa","Raimondi","Raimondo","Rallo","Rambaldi","Ramella","Rampazzo","Randazzo","Raneri","Ranieri","Raniolo","Ranucci","Rapisarda","Rapuano","Ratti","Rauso","Ravaioli","Re","Rea","Reale","Recchia","Redaelli","Reina","Renda","Renna","Renzi","Repetto","Restivo","Riccardi","Ricci","Ricciardi","Riccio","Riccobono","Ridolfi","Riggi","Riggio","Righetti","Righi","Rigoni","Rinaldi","Riolo","Riparbelli","Riva","Rizza","Rizzi","Rizzo","Roberti","Rocca","Rocchi","Rocco","Rodigari","Rogolino","Rollo","Romagnoli","Romanelli","Romani","Romaniello","Romanini","Romano","Romeo","Rondinone","Rondoni","Rosa","Rosati","Rosi","Ross","Rosselli","Rosset","Rossetti","Rossi","Rossini","Rosso","Rota","Rotolo","Rotondo","Rotundo","Ruberto","Rubino","Rucco","Ruggeri","Ruggieri","Ruggiero","Ruotolo","Rusciano","Russo","Saba","Sabatini","Sabatino","Sabato","Sabbatini","Sabia","Sabino","Sacchet","Sacchetti","Sacchi","Sacco","Saccone","Saia","Sala","Saladino","Salamone","Salatiello","Salemi","Salemme","Salerno","Salierno","Salis","Salomone","Salvadori","Salvati","Salvatore","Salvatori","Salvi","Salvucci","Salzano","Sammartano","Sammartino","Sanfilippo","Sanna","Sannino","Sansone","Santamaria","Santangelo","Santarelli","Santarossa","Santarsia","Santarsiero","Santi","Santilli","Santinelli","Santini","Santo","Santoni","Santori","Santoro","Santucci","Sapienza","Saponaro","Saporito","Saracino","Sardella","Sardina","Sarnataro","Sarti","Sartor","Sartori","Sassano","Sassi","Sasso","Satta","Savini","Savoca","Savoia","Sbrana","Scaglione","Scala","Scalia","Scalise","Scalzo","Scano","Scanu","Scarano","Scardino","Scarpa","Scarpellini","Scherini","Schettino","Schiavi","Schiavo","Schiavon","Schiavone","Schifano","Schillaci","Schirru","Sciacca","Scocco","Scognamiglio","Scopece","Scorza","Scotti","Scrofani","Scuderi","Sebastiani","Secchi","Secci","Sechi","Semeraro","Semprini","Senatore","Sepe","Serafini","Serafino","Serena","Sergi","Serpa","Serr","Serra","Sessa","Sestito","Severi","Severino","Sevi","Sforza","Siciliano","Signorelli","Signorile","Signorini","Siino","Silenzi","Silvestri","Silvestrini","Silvestro","Simeoli","Simeone","Simeoni","Simeti","Simoncelli","Simone","Simonetti","Simoni","Simonini","Simula","Sini","Sinopoli","Siracusa","Siragusa","Siri","Soccorsi","Sodano","Soldati","Solinas","Sorbello","Sorce","Soro","Sorrentino","Sottile","Spada","Spadafora","Spadaro","Spadoni","Spagnolo","Spagnuolo","Spano","Spanò","Spanu","Sparacino","Spataro","Speranza","Spiga","Spina","Spinelli","Spizzirri","Stabile","Staffieri","Stanzione","Stefani","Stella","Stigliano","Storti","Strano","Sucameli","Sucera","Surace","Suriano","Tacconi","Taddei","Tagliabue","Tagliaferri","Talarico","Tallarico","Tallone","Tamburini","Tammaro","Tanzi","Taormina","Tarantino","Tarquini","Tartamella","Tassi","Tassinari","Tasso","Tassone","Tataranni","Tavani","Tedde","Tedeschi","Tedesco","Telesca","Terenzi","Teresi","Terlizzi","Termine","Terzi","Terzo","Tesi","Testa","Tiano","Tiberti","Tilotta","Tiozzo","Tirelli","Tirri","Todaro","Tofani","Toldo","Tolomeo","Tolu","Tomaselli","Tomasello","Tomasi","Tomassoni","Tomei","Tommasi","Tonelli","Tonini","Torchia","Torchio","Tornatore","Torre","Torresi","Torri","Torrisi","Tortora","Tortorici","Toscano","Tosi","Totaro","Toti","Toto","Traini","Tralli","Trapani","Travaglini","Traverso","Tretola","Trevisan","Triolo","Tripodi","Troisi","Trombetta","Trovato","Tucci","Tuccillo","Tufano","Tufo","Tumbarello","Tumino","Turchi","Turco","Ugolini","Urbano","Urso","Usai","Vacca","Vaccari","Vaccaro","Vailati","Valente","Valenti","Valentini","Valentino","Valenza","Valeri","Valle","Valletta","Valli","Vallone","Valsecchi","Vanni","Vannini","Varriale","Vascotto","Vassallo","Vecchi","Vella","Venezia","Ventimiglia","Ventura","Venturelli","Venturi","Venturini","Vercesi","Verde","Verme","Veronese","Vezzoli","Viale","Vianello","Vicari","Vichi","Vicinanza","Vicini","Vierin","Villa","Villani","Villari","Vincenzi","Vinci","Viola","Violante","Violi","Virgilio","Visani","Viscò","Visconti","Visentin","Visintin","Vita","Vitale","Vitali","Viti","Vitiello","Vittori","Viviani","Vizziello","Volpe","Volpi","Vuillermoz","Zaccaria","Zaccaro","Zagaria","Zago","Zambon","Zamboni","Zambuto","Zampieri","Zanatta","Zanella","Zanelli","Zanetta","Zanetti","Zani","Zanon","Zanotti","Zappacosta","Zappalà","Zappia","Zedda","Zeni","Zennaro","Zingaretti","Zito","Zollo","Zordan","Zotti","Zucca","Zuliani","Zullo","Zumbo","Zunino"]})(jRn);var SFa=jRn.exports,HRn={exports:{}};(function(t){t.exports=["Sig.","Dott.","Dr.","Ing."]})(HRn);var wFa=HRn.exports,URn={exports:{}};(function(t){t.exports=[]})(URn);var _Fa=URn.exports,zRn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(zRn);var TFa=zRn.exports;(function(t){var e={};t.exports=e,e.male_first_name=bFa,e.female_first_name=xFa,e.first_name=EFa,e.last_name=SFa,e.prefix=wFa,e.suffix=_Fa,e.name=TFa})(BRn);var CFa=BRn.exports,GRn={exports:{}},VRn={exports:{}};(function(t){t.exports=["+## ### ## ## ####","+## ## #######","+## ## ########","+## ### #######","+## ### ########","+## #### #######","+## #### ########","0## ### ####","+39 0## ### ###","3## ### ###","+39 3## ### ###"]})(VRn);var kFa=VRn.exports;(function(t){var e={};t.exports=e,e.formats=kFa})(GRn);var RFa=GRn.exports;(function(t){var e={};t.exports=e,e.title="Italian",e.address=sFa,e.company=gFa,e.internet=yFa,e.name=CFa,e.phone_number=RFa})(cRn);var MFa=cRn.exports,KRn={exports:{}},WRn={exports:{}},QRn={exports:{}};(function(t){t.exports=["###-####"]})(QRn);var NFa=QRn.exports,qRn={exports:{}};(function(t){t.exports=["北海道","青森県","岩手県","宮城県","秋田県","山形県","福島県","茨城県","栃木県","群馬県","埼玉県","千葉県","東京都","神奈川県","新潟県","富山県","石川県","福井県","山梨県","長野県","岐阜県","静岡県","愛知県","三重県","滋賀県","京都府","大阪府","兵庫県","奈良県","和歌山県","鳥取県","島根県","岡山県","広島県","山口県","徳島県","香川県","愛媛県","高知県","福岡県","佐賀県","長崎県","熊本県","大分県","宮崎県","鹿児島県","沖縄県"]})(qRn);var IFa=qRn.exports,YRn={exports:{}};(function(t){t.exports=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47"]})(YRn);var PFa=YRn.exports,JRn={exports:{}};(function(t){t.exports=["北","東","西","南","新","湖","港"]})(JRn);var OFa=JRn.exports,ZRn={exports:{}};(function(t){t.exports=["市","区","町","村"]})(ZRn);var LFa=ZRn.exports,XRn={exports:{}};(function(t){t.exports=["#{city_prefix}#{Name.first_name}#{city_suffix}","#{Name.first_name}#{city_suffix}","#{city_prefix}#{Name.last_name}#{city_suffix}","#{Name.last_name}#{city_suffix}"]})(XRn);var BFa=XRn.exports,eMn={exports:{}};(function(t){t.exports=["アフリカ","南極大陸","アジア","ヨーロッパ","北アメリカ","南アメリカ","南極","北極","アフガニスタン","アルバニア","アルジェリア","アメリカ","米国","アンゴラ","アルゼンチン","オーストラリア","濠洲","オーストリア","バハマ","バーレーン","バングラデシュ","バルバドス","ベルギー","ベリーズ","ブータン","ボリビア","ボスニヤ・","ヘルツェゴビナ","ボツワナ","ブラジル","ブルネイ","ブルガリア","カンボジア","カメルーン","カナダ","中央アフリカ","チャド","チリ","中国","コロンビア","コンゴ","コスタリカ","クロアチア","キューバ","キプロス","チェコ","デンマーク","ドミニカ共和国","エクアドル","エジプト","エルサルバドル","赤道ギニア","エストニア","エチオピア","フィジー","フィンランド","フランス","ガンビア","ドイツ","ガーナ","英国","イギリス","ギリシャ","グリーンランド","グレナダ","グアテマラ","ギニア","ガイヤナ","ハイチ","オランダ","ホンジェラス","香港","ハンガリー","アイスランド","インド","インドネシア","イラン","イラク","アイルランド","イスラエル","イタリア","ジャマイカ","日本","ヨルダン","ケニア","コソボ","クウェート","ラオス","ラトビア","レバノン","リベリア","リビア","リトアニア","ルクセンブルク","マカオ","マダガスカル","マラウィ","マレーシア","マルタ","モルジブ","モーリシャス","メキシコ","モルドバ","モナコ","蒙古","モンゴル","モロッコ","モザンビーク","ミャンマー","ナミビア","ネパール","ニューギニア","ニュージーランド","ニカラグア","ナイジェリア","北朝鮮","ノルウェー","オーマン","パキスタン","パレスチナ","パナマ","パプアニューギニア","パラグアイ","ペルー","フィリピン","ポーランド","ポルトガル","カタール","ルーマニア","ロシア","ルワンダ","サウジアラビア","スコットランド","セネガル","セイシェル","シンガポール","スロバキア","スロベニア","ソロモン諸島","ソマリア","南アフリカ","韓国","スペイン","スリランカ","スーダン","スウェーデン","スイス","シリア","タヒチ","台湾","タンザニア","タイ","トリニダード・トバゴ","チュニジア","トルコ","ウガンダ","ウクライナ","アラブ首長国連邦","ウルグアイ","バチカン","ベネズエラ","ベトナム","ウェールズ","イエメン","ザイール","ザンビア","ジンバブエ"]})(eMn);var DFa=eMn.exports,tMn={exports:{}};(function(t){t.exports=["#{Name.first_name}#{street_suffix}","#{Name.last_name}#{street_suffix}"]})(tMn);var $Fa=tMn.exports;(function(t){var e={};t.exports=e,e.postcode=NFa,e.state=IFa,e.state_abbr=PFa,e.city_prefix=OFa,e.city_suffix=LFa,e.city=BFa,e.country=DFa,e.street_name=$Fa})(WRn);var FFa=WRn.exports,nMn={exports:{}},rMn={exports:{}};(function(t){t.exports=["0####-#-####","0###-##-####","0##-###-####","0#-####-####"]})(rMn);var jFa=rMn.exports;(function(t){var e={};t.exports=e,e.formats=jFa})(nMn);var HFa=nMn.exports,iMn={exports:{}},aMn={exports:{}};(function(t){t.exports=["090-####-####","080-####-####","070-####-####"]})(aMn);var UFa=aMn.exports;(function(t){var e={};t.exports=e,e.formats=UFa})(iMn);var zFa=iMn.exports,oMn={exports:{}},sMn={exports:{}};(function(t){t.exports=["佐藤","鈴木","高橋","田中","渡辺","伊藤","山本","中村","小林","加藤","吉田","山田","佐々木","山口","斎藤","松本","井上","木村","林","清水"]})(sMn);var GFa=sMn.exports,lMn={exports:{}};(function(t){t.exports=["大翔","蓮","颯太","樹","大和","陽翔","陸斗","太一","海翔","蒼空","翼","陽菜","結愛","結衣","杏","莉子","美羽","結菜","心愛","愛菜","美咲"]})(lMn);var VFa=lMn.exports,cMn={exports:{}};(function(t){t.exports=["#{last_name} #{first_name}"]})(cMn);var KFa=cMn.exports;(function(t){var e={};t.exports=e,e.last_name=GFa,e.first_name=VFa,e.name=KFa})(oMn);var WFa=oMn.exports,uMn={exports:{}},dMn={exports:{}};(function(t){t.exports=["つぎつぎ","薬","当て字","しょくん","間隔","飽くまでも","あびる","雇用","かんどうする","じじょでん","超音波","じゅうどう","面","先週","しょうがっこう","避ける","ふそく","まぎらす","閉める","たまご","こわす","底","〜亭","しゃくや","しゃっか","ひきざん","割り箸","こうぞく","果てる","つなひき","漂う","漠然","しょうりゃく","減俸","さいぼう","さいほう","平安","封筒","旧姓","よわよわしい","味噌","ぼきん","くつじょく","絹糸","ちきゅう","かぜ","半額","かんそく","ぶん","ふん","たれる","廉価","ずいぶん","屈む","かんりょうてき","すんか","殻","擬装","うえる","たいさ","あつい","げいひんかん","洋服","大丈夫","察知","しえんする","仕方がない","徳川","ちらかす","こくふくする","ぶそう","こうつう","逆","馬鹿馬鹿しい","切迫","不健康","学院","都合","備える","へいがい","はじめて","輸出","迷路","母","ひかくする","はなぢ","はなじ","むこう","ねんじゅう","自宅","誘惑","ちえん","太る","ちかく","奴ら","堀川","ちがい","たいこうする","運ぶ","独裁","はっぽう","とちょう","先ず","はんそう","せいじょう","しょうじょう","かんじる","体重","上手","原油","ざぜん","既に","華やか","仕事","あらす","ゆるむ","きょうどう","開閉","悲しみ","しゃこ","ねばり","ようい","おりめ","伐採","牛乳","秘める","右翼","伝統","きひん","やさしい","ほ","警官","左手","全日本","むぜい","ごふく","かいたく","撃つ","しあとるし","シアトルし","ちょさくけん","じぎする","譜面","貫く","約する","提案する","哀れむ","迷子","きょうき","ごうけん","せんたくする","しゅしょう","江戸","狂う","助手","新婚旅行","検査","色々","かぶしきしじょう","桜色","普及","零す","ししょく","きゅうりょう","おんとう","しょうゆ","没落","人性","けいかん","電話","お盆","きいろ","やしなう","鍋","遮断","かわかす","寮生","面積","とうき","ふくへい","ないしょばなし","不思議","この頃","おかね","殺人者","かいぞく","歯を磨く","店","はなはだ","フランス語","評価","九日","さいばん","推奨","出版","恨み","気持ちいい","黙る","はりい","凝固","傑作","魅力","ぐん","右利き","まほうつかい","復旧","かくじっけん","じきしょうそう","あれる","きょうはんしゃ","たいりく","げんめつ","俵","むらさきいろ","病床","米兵","まつり","塾生","親切","めいがら","核実験","なおさら","魔術","がいよう","かんぜん","せいかん","果樹","〜系","ほにゅうびん","じょうだん","賢明","みなと","もはん","こうちょく","泳ぐ","重い","日没","碁","かつ","どうけつ","近視","配慮","のき","入江","とめる","暇","書き方","胃","りょうど","難しい","浮世絵","喜劇","とうさん","はんだんする","こうせい","大仏","揺さぶる","いじん","機嫌","黒板","えきびょう","妥協する","つうやく","乗せる","けしき","床","品詞","消す","金縛り","じゅうらい","急騰","十台","窓","雑音","きょだい","鈍器","禍根","かたみち","山葵","店舗","渦巻き","おととい","いっさくじつ","救急車","馬","ころす","ぼくし","せっぷく","たて","おどろく","やさい","じぞう","こはん","いく","自立","かっこう","脱税","始まる","学者","かい","ひきさく","長唄","下着","よくげつ","休日","以下","廃墟","部首","壊す","むく","委員","待合","頂く","よぼう","壮年","斬殺","ちゅうもんする","じっかん","境","施行","つく","活用","ぶき","かいじゅう","人口","ぼうず","そあく","むぼう","白菊","りゃくず","汚す","すいせん","あらそう","高値","あう","せいしん","指紋","超〜","うえる","つまる","靖国神社","とりあえず","とふ","たくす","じょうじゅん","羊毛","浅い","閉じる","戦没","あっとうする","ひがい","量","じょうき","誤用","ほうせき","つばさ","号","けいむしょ","電源","勇気","ふかさ","はだか","たいやく","きょうしつ","退く","さきまわり","こうおつ","無糖","ふさい","とくに","めいし","みつ","ほんらい","まもる","あつかい","日欧","天井","みさき","おきゃくさん","にんい","きょうかい","いつ頃","かん","しきもう","特殊","同僚","血液","じぶん","しょうかする","礎","みなもと","軒","ぶっきょう","しずむ","たらす","憂い","総括","もうす","暴力","しばふ","いたずら","米国","魔法","ことばつき","窒息","唄う","金","きもち","誓い","どろ","話","奇襲","巡回","失う","隆起","投資","芽","あくれい","奉仕","ひんきゃく","ひんかく","まつ","せんりゅう","だいどころ","いう","こいぬ","なんべい","さくにゅう","フランス人","きげんご","こくみん","交錯","好き","一文字","ほうげん","地面","だくりゅう","見当たる","浸す","あしくび","弱虫","送る","遺失","あおい","ちあん","宜しく","あらあらしい","かおつき","かちゅう","がんばる","芸者","陳列室","弥生","明治","めいしょ","ごじゅう","済ます","無駄","終点","ぞくご","掛ける","ほうしゅう","騎兵","液体","下さい","けいじばん","杏","合う","疾走","りゅうこうご","出かける","はちまき","手作り","れつあく","うんがいい","はちのす","ハチのす","色盲","形","希望する","こうせい","いちだい","春休み","縛る","金星","そんざい","防犯","大尉","老齢","差し上げる","犠牲","にる","問題","双","安泰","せんじょうざい","継承","かんしん","丼","ざんぴん","そだてる","たつ","不可欠","報じる","抑制","けいけんしゃ","きょうふ","せいぞう","きんく"]})(dMn);var QFa=dMn.exports,hMn={exports:{}};(function(t){t.exports=["おどりば","料理人","いち","やぶれる","辞儀する","逮捕","色彩","妻","きづく","はきだす","歯","憶測","すむ","墨","胃腸","駆け出す","栞","ふゆかい","豪華","写す","むちつじょ","ごらく","可愛い","ふじょ","でんせんびょう","いちにち","ついたち","彼女","ひめさま","解説","すいがら","約","並","こっせつ","あらじお","あらしお","書架","勝手","ぎせい","こくひん","嫌","博物館","しんし","帳簿","初めに","空き瓶","ふてい","見返す","ほんるいだ","さわ","悪気","ほんそう","謙虚","耐火","ぼうりょく","潔い","けす","締まる","ちょうりょく","のうし","暴走","華道","基盤","廃棄","かざる","くら","氏名","がぞう","ふきつ","こうばん","かんさい","ひとごみ","構える","たす","とむ","すみ","めいよ","帝","かんえん","たび","模型","冬休み","誇張","何千","そうだん","しっぷう","はやて","ほどう","敵","ひふ","火","壁","弱点","かいそく","没頭","貴賓","さいげつ","盛り上がる","柱","ひはん","輪郭","こづつみ","扇","性病","濃紺","洗浄剤","舞踏","つぎ","しめる","延長","しつ","ざせき","もくひょう","宝くじ","劣悪","はなみ","同音異義語","たいほう","慶弔","疎外","れいてん","死ぬ","さと","煩い","携帯","かいせい","哺育","敬語","とうとい","とうひょうする","頑張れ","れいせい","蛇","いしゃりょう","アメリカ製","光年","社員","もよう","ぎゃくしゅう","甲乙","ふくし","へいせい","てんのう","年次","二巻","がくふ","しどう","よすみ","おおごえ","かつぐ","地下街","はくじん","間接","せっとく","つうこん","びんぼう","川底","こうえん","うごき","六","乾燥","洗濯屋","なぞ","ふじん","対応","順序","首","むれる","しめる","移す","分ける","しょうげき","ぎょうし","あまい","じょうきゅう","たんれん","かけこむ","素材","受付","いままで","りょこう","満潮","もちいる","あわれ","賀状","詰め込む","数える","ずいじ","いっぱく","聴者","そうぐう","とうさく","思い遣り","鋭い","貞操","原因","象牙","歌謡","会議","待遇","なかよし","おなか","りりしい","おおちがい","賛成","奔放","非難","ようじ","錯乱","じこ","前","累進","緊張する","ぎじゅく","うち","悪霊","枢軸","子守歌","りゅうき","雄犬","みずいろ","大間違い","走り回る","そんけい","しっぺい","てんし","病院","残業","ひんしつ","けんしゅうせい","椅子","いさぎよい","枕","墓","洗剤","たいがい","じしょ","副大統領","瞬く","ふじ山","ふくせん","漬物","はんけん","愛する","ねんがん","ねんじ","いきどおり","おとこのこ","仁","鶴","施設","請ける","拒否","うみ","移譲","溶岩","性格","じしん","裏口","ふたたび","猿真似","しめらせる","みき","つぐなう","しんじゅく","こせき","よくあつ","懇談","指定する","専門","一生","平壌","滝","じどうし","着く","泥棒","構え","きじゅつ","しょひょう","貨幣","好奇心","皇太子妃","かいほうする","主に","背広","ちんみ","よそく","なつかしい","がんい","ちょうしゃ","無敵","所","だいがくいんせい","左右","のむ","愛国心","桑原","どうはんする","いっかい","なみだ","くまもとけん","主観的","普段","こころみる","ふくぶくろ","てんぷく","せいめい","はなのあな","みぎて","親子丼","反則","しゅうり","かくにん","生える","けむし","すける","のぞいて","和尚","えんちょうする","こうとう","なげすてる","なまけもの","あい","きとく","審判","怖い","こたえる","比較","ゆにゅう","曲","ちんもく","破産","迫る","あわ","辛子","糸","早々","運命","錠","のうみん","夏","野獣","試験","数詞","毎日","ぎせいしゃ","よくし","せん","おろし","ゆれる","いし","える","ごらん","ばい","たい","拘置","うらぎり","競艇","かぐ","悔しい","にゅうせき","ために","ふうふ","ちょうせん","破壊","困難","まんえつ","移動","しあつ","あまる","香り","いなか","通す","ほうき","栄誉","ちめいてき","おとろえる","いしずえ","知り合い","貨物船","酸っぱい","めいわくめーる","めいわくメール","とうほう","てら","ぜんにほん","七つ","暗い","てのこう","しんぞう","仰々しい","さんぎょう","公共","年額","かわさき","日刊","ちょう","縮小","いっこ","不況","人柄","はい","原潜","つみ","かんかつ","ぞうえん","雑費","おくれる","面倒臭い","しょうじょう","たおす","順番","天皇","しゅいん","動揺","乙","さわやか","とう","望み","一人娘","かく","かど","ねんがじょう","ちょくせつ","せんじょう","燃やす","ふかのう","買い物","風潮","沖縄","いか","こうくうぼかん","かくれる","きぼうする","媒介","れいぞうこ","冷酷","紛らわしい","せんげん","家具","繁茂","なさけない","きずつく","空き缶","禅寺","大文字","火葬","雰囲気","化粧","忍者","ふんしゃ","限る","ちゅうとはんぱ","はずかしめる","何度","風船","こうぎょう","かくしゅう","しりつ","こい","あがる","教える","程","忘れ物","襲撃","かいころく","月刊","となえる","せんのう","営業中","ながさき","げんまい","二つ","髪の毛","ろくおん","匿名","高瀬","しききん","ふかぶん","怒鳴る","福祉","あさねぼう","りゃくご","しざい","運","力","ねばる","つくる","わかめ","おうしゅう","やすい","え","かせぎ","あらかじめ","かんせつ","恥ずかしがる","焦がす","はいき","はかる","図説","どうめい","ようじ","ふねんごみ","ふねんゴミ","鎮める","しゅくん"]})(hMn);var qFa=hMn.exports;(function(t){var e={};t.exports=e,e.words=QFa,e.supplemental=qFa})(uMn);var YFa=uMn.exports;(function(t){var e={};t.exports=e,e.title="Japanese",e.address=FFa,e.phone_number=HFa,e.cell_phone=zFa,e.name=WFa,e.lorem=YFa})(KRn);var JFa=KRn.exports,fMn={exports:{}},pMn={exports:{}},mMn={exports:{}};(function(t){t.exports=["###-###","#####"]})(mMn);var ZFa=mMn.exports,gMn={exports:{}};(function(t){t.exports=["강원","경기","경남","경북","광주","대구","대전","부산","서울","울산","인천","전남","전북","제주","충남","충북","세종"]})(gMn);var XFa=gMn.exports,vMn={exports:{}};(function(t){t.exports=["강원","경기","경남","경북","광주","대구","대전","부산","서울","울산","인천","전남","전북","제주","충남","충북","세종"]})(vMn);var eja=vMn.exports,AMn={exports:{}};(function(t){t.exports=["구","시","군"]})(AMn);var tja=AMn.exports,yMn={exports:{}};(function(t){t.exports=["강릉","양양","인제","광주","구리","부천","밀양","통영","창원","거창","고성","양산","김천","구미","영주","광산","남","북","고창","군산","남원","동작","마포","송파","용산","부평","강화","수성"]})(yMn);var nja=yMn.exports,bMn={exports:{}};(function(t){t.exports=["#{city_name}#{city_suffix}"]})(bMn);var rja=bMn.exports,xMn={exports:{}};(function(t){t.exports=["상계","화곡","신정","목","잠실","면목","주안","안양","중","정왕","구로","신월","연산","부평","창","만수","중계","검단","시흥","상도","방배","장유","상","광명","신길","행신","대명","동탄"]})(xMn);var ija=xMn.exports,EMn={exports:{}};(function(t){t.exports=["읍","면","동"]})(EMn);var aja=EMn.exports,SMn={exports:{}};(function(t){t.exports=["#{street_root}#{street_suffix}"]})(SMn);var oja=SMn.exports;(function(t){var e={};t.exports=e,e.postcode=ZFa,e.state=XFa,e.state_abbr=eja,e.city_suffix=tja,e.city_name=nja,e.city=rja,e.street_root=ija,e.street_suffix=aja,e.street_name=oja})(pMn);var sja=pMn.exports,wMn={exports:{}},_Mn={exports:{}};(function(t){t.exports=["0#-#####-####","0##-###-####","0##-####-####"]})(_Mn);var lja=_Mn.exports;(function(t){var e={};t.exports=e,e.formats=lja})(wMn);var cja=wMn.exports,TMn={exports:{}},CMn={exports:{}};(function(t){t.exports=["연구소","게임즈","그룹","전자","물산","코리아"]})(CMn);var uja=CMn.exports,kMn={exports:{}};(function(t){t.exports=["주식회사","한국"]})(kMn);var dja=kMn.exports,RMn={exports:{}};(function(t){t.exports=["#{prefix} #{Name.first_name}","#{Name.first_name} #{suffix}"]})(RMn);var hja=RMn.exports;(function(t){var e={};t.exports=e,e.suffix=uja,e.prefix=dja,e.name=hja})(TMn);var fja=TMn.exports,MMn={exports:{}},NMn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.co.kr","hanmail.net","naver.com"]})(NMn);var pja=NMn.exports,IMn={exports:{}};(function(t){t.exports=["co.kr","com","biz","info","ne.kr","net","or.kr","org"]})(IMn);var mja=IMn.exports;(function(t){var e={};t.exports=e,e.free_email=pja,e.domain_suffix=mja})(MMn);var gja=MMn.exports,PMn={exports:{}},OMn={exports:{}};(function(t){t.exports=["국가는","법률이","정하는","바에","의하여","재외국민을","보호할","의무를","진다.","모든","국민은","신체의","자유를","가진다.","국가는","전통문화의","계승·발전과","민족문화의","창달에","노력하여야","한다.","통신·방송의","시설기준과","신문의","기능을","보장하기","위하여","필요한","사항은","법률로","정한다.","헌법에","의하여","체결·공포된","조약과","일반적으로","승인된","국제법규는","국내법과","같은","효력을","가진다.","다만,","현행범인인","경우와","장기","3년","이상의","형에","해당하는","죄를","범하고","도피","또는","증거인멸의","염려가","있을","때에는","사후에","영장을","청구할","수","있다.","저작자·발명가·과학기술자와","예술가의","권리는","법률로써","보호한다.","형사피고인은","유죄의","판결이","확정될","때까지는","무죄로","추정된다.","모든","국민은","행위시의","법률에","의하여","범죄를","구성하지","아니하는","행위로","소추되지","아니하며,","동일한","범죄에","대하여","거듭","처벌받지","아니한다.","국가는","평생교육을","진흥하여야","한다.","모든","국민은","사생활의","비밀과","자유를","침해받지","아니한다.","의무교육은","무상으로","한다.","저작자·발명가·과학기술자와","예술가의","권리는","법률로써","보호한다.","국가는","모성의","보호를","위하여","노력하여야","한다.","헌법에","의하여","체결·공포된","조약과","일반적으로","승인된","국제법규는","국내법과","같은","효력을","가진다."]})(OMn);var vja=OMn.exports;(function(t){var e={};t.exports=e,e.words=vja})(PMn);var Aja=PMn.exports,LMn={exports:{}},BMn={exports:{}};(function(t){t.exports=["김","이","박","최","정","강","조","윤","장","임","오","한","신","서","권","황","안","송","류","홍","유","전","양","고","문","손","배","백","허","노","심","하","주","구","곽","성","차","우","진","민","나","지","엄","변","채","원","방","천","공","현","함","여","염","석","추","도","소","설","선","마","길","연","위","표","명","기","반","라","왕","금","옥","육","인","맹","제","모","남","탁","국","어","경","은","편","용","예","봉","사","부","황","가","복","태","목","형","피","두","감","호","제","음","빈","동","온","사","시","범","선","좌","팽","승","간","상","갈","서","단","견","당"]})(BMn);var yja=BMn.exports,DMn={exports:{}};(function(t){t.exports=["서연","민서","서현","지우","서윤","지민","수빈","하은","예은","윤서","민준","지후","지훈","준서","현우","예준","건우","현준","민재","우진","은주","서준","도윤","시우","주원","하준","지호","준우","도현","선우","서진","연우","유준","정우","승우","승현","시윤","준혁","은우","지환","승민","유찬","윤우","민성","준영","시후","진우","지원","수현","재윤","시현","동현","수호","태윤","민규","재원","한결","민우","재민","은찬","윤호","시원","이준","민찬","지안","시온","성민","준호","승준","성현","이안","현서","재현","하율","지한","우빈","태민","지성","예성","민호","태현","지율","민혁","서우","성준","은호","규민","정민","윤성","윤재","하람","하진","민석","준수","은성","태양","예찬","준희","도훈","하민","준성","지완","현수","승원","강민","정현","우주","태준","승호","주호","성빈","주안","도영","우현","민수","건희","주환","하랑","다온","정훈","원준","시율","시훈","지오","민기","현민","시완","경민","서율","현성","승윤","주영","동하","태훈","민건","도율","동건","재훈","태영","호준","승빈","가온","재준","시환","세현","태경","이현","도원","도경","정후","현진","재영","정원","서후","현승","찬영","라온","영준","상현","범준","온유","승훈","성윤","재하","로운","주혁","찬우","이든","연준","하윤","우성","동윤","성훈","승재","찬희","지혁","건호","세준","동욱","태율","수민","태호","유건","승찬","도하","윤찬","단우","태우","현호","윤후","현빈","시안","재우","준석","지운","주현","형준","연호","효준","재혁","성우","규빈","주완","주한","동우","하늘","수혁","재희","시헌","상윤","우찬","유빈","진호","유현","석현","우영","준형","도연","유진","서원","지용","용준","규현","준후","동준","은율","도준","호진","강현","태인","진혁","상우","우준","은준","승후","시호","지웅","승환","은혁","동훈","유민","하온","성원","도진","승주","영민","대현","종현","세훈","도겸","서호","현석","신우","재호","준현","원우","강우","승유","상민","태환","은수","선호","준원","민결","정빈","태오","동혁","영우","아인","유안","동규","진서","태성","유성","혜성","요한","성진","여준","윤건","인우","태건","주형","우혁","희찬","한율","하성","준범","찬민","정호","윤수","민제","성호","인성","건후","경준","희준","상준","승혁","재이","태원","준민","재율","민승","태웅","채민","한울","승헌","재성","시준","진영","환희","선율","세윤","호연","승기","세진","성재","태하","주성","호영","가람","다원","찬율","현규","규원","이한","연후","현욱","준하","시영","희성","정윤","진욱","지윤","창민","지온","지섭","해준","정환","건율","은재","찬혁","동연","유하","노아","성찬","세민","서빈","우석","영훈","도형","준기","윤준","지석","로이","인호","은후","명준","상훈","기현","재형","아준","해성","민후","진성","주하","시언","시형","상원","태연","도건","재인","준휘","동민","한준","기범","다니","주헌","재용","수환","태규","선재","영재","영진","주찬","지수","동호","우재","승범","동원","한별","건영","승연","도헌","한솔","유담","예건","은결","민율","민욱","지헌","석준","준모","현재","이수","리안","재범","재환","찬유","호윤","해솔","태희","건하","상혁","성욱","영찬","동환","진원","하빈","준환","재욱","경훈","준상","서하","연수","하루","예담","수찬","강준","도균","태이","형우","승규","재빈","종혁","도운","근우","찬호","윤혁","유신","리우","범수","동주","혁준","찬빈","한빈","태빈","창현","성주","지현","이찬","유승","은규","연재","희재","태완","수영","병준","동휘","세영","태욱","의준","관우","성환","재연","재경","민영","윤석","대한","선준","지유","지욱","은석","성연","경빈","정욱","한서","보겸","인준","윤제","도빈","준용","규진","희원","주언","다율","성하","영광","현중","종윤","형진","채훈","정혁","태형","준오","진수","승진","유겸","찬서","종민","영빈","의찬","승하","종우","유환","희수","호성","태헌","채우","재헌","원재","석민","경원","승리","강희","상욱","민형","용현","범진","민섭","준이","서안","명진","예훈","시혁","상진","영현","원석","승수","우민","현태","도담","정연","이삭","형주","미르","대윤","로하","정인","용우","유호","태균","건민","요셉","기훈","영웅","지홍","종원","선후","동후","태겸","종훈","유한","제민","준표","원빈","보성","인서","동희","의진","준규","리한","재후","혜준","경호","진현","현도","찬솔","호현","다현","동균","원호","재웅","세인","하겸","제이","민겸","진석","승욱","동근","다훈","형민","동영","대호","기윤","지승","슬우","해찬","대영","강윤","서한","동진","진후","정진","윤상","영서","민균","재승","정준","세찬","규태","민국","우림","경환","우솔","의현","대성","도엽","근호","효재","다민","효민","민철","예승","준엽","어진","승언","하원","두현","지형","성율","채운","진형","대원","정수","시하","도은","용진","주빈","제현","태진","범서","건형","해인","로건","민교","혁진","수인","슬찬","영호","하엘","정운","경현","세환","태산","아론","선민","준섭","태후","은유","기찬","승엽","선규","다빈","태주","기태","채환","제윤","승완","무진","정재","수안","진규","시유","용재","현웅","기준","윤오","우리","태은","수한","석훈","석원","로빈","다엘","세원","채윤","원진","태혁","재아","규연","한빛","필립","성혁","재완","제하","선빈","세빈","윤기","이레","인혁","주훈","광현","도혁","재진","보민","진하","동빈","병찬","효성","성규","채준","승효","시진","승한","시운","원영","리호","강빈","강호","성운","유석","채호","다겸","종호","채원","이도","범석","현종","성수","도언","민하","석진","건욱","상연","건휘","한성","효원","믿음","도우","규호","선웅","태유","강산","도환","선유","형석","정헌","현기","용민","태수","하담","무성","희승","리온","서훈","용훈","대훈","루이","이환","동화","경태","이담","강인","유근","영후","찬휘","래원","채현","무빈","민근","희우","하음","민상","윤민","현찬","경록","찬웅","지상","상호","서찬","루다","하영","찬형","효찬","희윤","영인","규성","예현","정한","현율","지효","상빈","채완","사무","경찬","솔민","서형","태서","동율","재홍","은기","승운","은총","윤환","주용","서환","용찬","진환","세연","누리","진율","원희","기원","인후","태강","준식","민권","세호","병현","재서","윤빈","인수","호빈","세종","신후","효빈","서인","대연","우형","마루","태용","주윤","수완","보현","경모","희건","영주","장우","석우","강유","영석","정안","동해","동찬","휘성","규범","영환","호재","상헌","병훈","현오","동은","용하","광민","인규","명재","인찬","세웅","진모","도한","성은","도완","중현","대경","리오","대환","해민","민솔","민구","이솔","윤겸","다윤","채율","인하","동완","경수","수오","찬욱","태온","태운","리환","승건","재석","재유","해온","호민","용빈","태한","연성","도후","기주","다인","서혁","예강","홍준","지찬","대희","강훈","이건","현후","장현","레오","호찬","이서","주연","진유","해원","동헌","시찬","성후","종하","근영","제원","세혁","예한","태랑","이루","준명","무경","시연","진웅","찬규","은상","성모","현동","원혁","용호","동엽","상후","규환","대건","루하","재겸","건웅","지빈","해윤","하운","호원","현제","석빈","제우","휘준","기환","규담","경진","치우","민환","세헌","제훈","장원","해담","서온","현식","휘찬","예환","동재","창우","준아","해진","준한","재휘","이헌","준재","기민","영욱","진오","로한","윤형","상율","강후","석주","세율","하승","하울","명훈","한겸","창희","태림","찬이","세온","지범","성범","서완","원찬","정찬","민식","동인","범규","영수","준경","민용","유노","원규","규하","창준","하임","현섭","민범","민종","도휘","강율","현모","리후","우경","규영","상엽","은택","송현","윤하","승제","가을","다운","형찬","혁주","종찬","훈민","윤태","석영","윤규","승휘","도유","재찬","형빈","찬준","석호","우람","요엘","태범","무겸","희상","준빈","은빈","기성","다솔","사랑","준연","진명","세하","다윗","형욱","용주","종빈","호수","윤섭","진용","재익","창빈","소율","수원","지태","해율","동운","재운","강혁","권우","기영","리원","창훈","선욱","민중","세한","재한","종욱","윤승","동한","성용","은섭","라윤","승희","종인","수하","화랑","하언","승표","소망","준열","태휘","하경","승용","유섭","민강","민강","래현","한음","라현","한영","수겸","석환","동률","형규","예율","이언","윤슬","병우","연석","우겸","수형","준선","규찬","일우","제영","제희","승율","민주","태정","병민","진헌","다한","라엘","남규","윤진","태리","재상","정완","찬수","진솔","수연","운찬","호경","주은","건률","경윤","지명","성제","로아","예안","은오","준홍","권율","지산","태석","효승","병윤","연서","유원","가빈","보검","이산","준승","건아","건이","민진","용성","예온","유상","범찬","병호","명현","남우","문성","동권","주승","규혁","승오","효석","병주","호승","백호","유태","남준","주엽","상범","강찬","승모","대겸","유수","지언","원율","태언","성균","승균","라율","희민","예람","한주","한선","무현","수윤","정규","시욱","찬진","태섭","의성","민현","승철","희율","현택","유완","보석","태승","별하","영운","종환","이룸","태근","지담","은겸","찬현","현채","해든","보승","정율","찬열","경률","찬주","문수","은서","아성","한민","현겸","성일","신혁","종연","바다","동언","로윤","종범","석찬","무영","호석","루빈","다호","아민","재오","병욱","기웅","하균","호건","한희","형서","경우","신유","은률","석희","민유","에녹","수범","유주","진표","우승","보경","산하","승태","담우","우연","경서","주율","태일","재은","수성","하현","성헌","아진","동수","현근","건혁","준일","리현","명규","아람","효진","준태","한승","수훈","채성","상운","성태","부건","찬용","하림","순우","제준","병헌","찬후","민창","우정","명호","경욱","이겸","예하","이재","윤도","현구","신율","다올","루한","영하","민관","정효","규헌","나율","연욱","기백","준협","동유","형원","은솔","수용","리건","윤철","여름","기호","상은","라원","용수","철민","휘서","재건","주명","영원","모건","우섭","성한","도민","민오","근형","정주","주열","태린","종석","시열","예겸","재정","윤영","래오","채빈","우인","지인","해강","윤식","서언","보근","준화","도일","용희","건오","채혁","희제","교빈","부겸","태관","명우","세운","희태","시한","창윤","희서","진한","규한","대규","진홍","기연","윤결","윤범","우제","율찬","승화","병규","용석","예호","정범","하선","관호","명성","장호","도아","기문","노엘","태권","찬슬","명환","찬슬","성엽","승일","영윤","장훈","창호","루안","호림","준헌","세중","문규","정석","재선","건준","찬윤","서휘","주민","두영","힘찬","연승","정하","대웅","효근","오현","정희","용원","세형","희철","한이","원기","윤솔","연오","종수","종서","푸름","시오","정모","동국","수홍","유재","종헌","승택","장혁","다준","한규","준겸","태곤","동기","선오","승안","영록","예서","영제","선진","용환","래온","성철","단율","리암","현일","연제","성근","혜찬","병진","진섭","남현","재권","경석","정엽","희범","수아","라준","신욱","서헌","윤구","승열","해랑","주석","명근","재엽","원형","명찬","명수","기율","테오","유온","담현","나단","준구","도희","재강","하린","순호","노을","우용","성웅","찬하","수헌","원태","범주","종은","건일","희도","예일","근후","준의","명민","제연","소명","은표","준교","정웅","호정","동관","우담","진희","부경","이원","설민","한진","가율","영도","경재","현명","시경","태선","치원","은제","도규","용욱","무준","현희","동석","담율","정무","은교","해승","소울","영기","유비","현솔","기우","원민","상언","기쁨","휘영","환준","재효","다성","주오","병건","예권","은환","서로","남훈","인환","상규","본준","찬양","도근","도욱","율호","제호","두원","재언","재명","범희","주온","서범","석윤","세범","우철","효건","재근","백현","기혁","혜민","익현","덕현","치훈","태홍","현철","예섭","선균","아윤","은민","진훈","철우","정근","무건","영건","재열","인석","홍석","용화","현범","강한","신영","채범","희망","오성","명석","창욱","영채","치현","윤종","재중","상희","대은","승겸","연찬","충현","현균","혁민","승영","이랑","예닮","기량","광호","효인","제아","인영","효섭","경도","학준","찬성","송민","서유","원후","예원","혁찬","지음","민웅","문기","규형","제율","관영","인태","윤채","상수","동명","윤택","이엘","영규","정명","효우","기정","평안","채헌","강은","이완","정태","제혁","종건","중원","수종","한수","원서","에이","정서","동아","의겸","설우","현담","서웅","윤한","시아","서영","종후","제성","선혁","승권","홍민","윤현","연진","요섭","세용","병철","서겸","희주","명원","성문","창환","정섭","동성","솔찬","제형","유솔","치호","선제","치호","찬홍","기석","유솔","종진","다울","시웅","승채","기용","윤모","재림","시은","태화","태식","아율","강욱","인재","재균","용범","성휘","경한","제후","바울","한비","재백","가원","승조","성록","주노","창수","로원","하륜","성완","산희","지강","치윤","예범","범기","율빈","루오","종운","지황","본우","상유","강모","우열","예중","평강","주상","영균","정흠","석규","대혁","규동","은철","홍기","호세","진구","성열","효상","원일","제이","여민","선용","상명","상효","지영","도협","용운","상협","형근","현교","형호","용규","이강","광희","나엘","가현","한슬","근혁","병수","경완","영범","택연","준언","지건","우원","희섭","유강","승은","두연","반석","모세","기완","경주","윤권","리완","은중","은산","은중","규완","준택","기욱","강연","유범","호근","준학","종화","율하","건도","창혁","규상","영성","용휘","권희","요환","다함","승학","무결","인철","경인","부성","동경","교현","새벽","영태","루아","규준","호율","용후","건태","호용","성언","다빛","백준","성희","주경","관희","종휘","은강","이람","찬일","한유","율희","찬의","동섭","기헌","휘승","예후","호균","선홍","지훤","동일","현용","종성","소원","유로","상영","로현","윤원","창진","이룬","현상","교준","구현","승구","문경","제인","상화","윤중","준효","준건","바론","오윤","경섭","무열","화평","우창","나루","남호","경율","산들","제욱","예근","우태","에릭","율민","진휘","이정","정음","준익","운호","범근","중호","민엽","효제","율민","예헌","에릭","준익","이정","민엽","강휘","그루","승록","준율","우신","현덕","호인","건용","건주","두호","택현","태상","하주","규석","우상","강건","천우","성국","한얼","지서","인욱","우종","이선","현유","형섭","상휘","성오","도호","하리","명서","도권","준완","진운","현조","훈석","명균","차민","성식","찬석","여찬","찬울","종한","세욱","환이","정균","진민","앤드","성인","은휼","강원","현세","호겸","은식","경탁","해수","의재","병관","하연","예석","유인","효담","리윤","병권","권호","규선","동형","한률","의연","재규","은효","현탁","서경","루민","휘원","민태","건모","태안","영일","현영","다혁","성영","서균","진건","율원","정용","혁수","보윤","환호","휘윤","인범","남윤","원섭","남윤","대용","찬승","효범","성택","원섭","서담","호형","산호","호선","의석","라운","규인","형식","창연","명섭","국현","채진","예빈","유철","준철","이로","가민","호태","창범","은범","호중","서주","대헌","윤근","인겸","홍재","성효","홍찬","이진","솔빈","건유","창규","하솔","석범","서욱","보규","아현","승지","무혁","동오","승온","다건","진기","원종","원겸","성무","채하","희권","다움","산이","혁빈","환서","희담","도열","광훈","우수","지백","현이","단유","휘수","성유","라호","교진","마음","나우","영한","해일","민한","상하","훈희","한경","호범","용기","대진","의담","예랑","유영","명철","휘재","찬식","선엽","서용","효신","혁재","민세","해리","재광","지솔","휘건","의빈","영헌","대우","채영","한중","진태","이연","두진","건빈","제환","정기","대휘","남혁","경규","재학","희온","성화","제헌","영권","휘상","래윤","익준","성률","라임","조이","기하","원경","성권","규식","유혁","태풍","해건","주우","규람","우린","재온","예종","민선","유천","의선","현무","유림","하건","부민","다을","루카","초원","재문","문찬","대율","태종","효중","용태","세완","현선","태광","상록","윤담","연웅","도성","선중","상인","한샘","상재","경헌","카이","상일","찬오","성안","현주","원식","의영","영조","재화","광수","주선","시엘","원상","해밀","규림","종율","차윤","재관","관후","철현","조슈","유지","기담","의민","현건","현창","로준","문혁","교민","인섭","규안","푸른","대운","중혁","동범","승협","드림","류하","나로","동효","무찬","시울","동겸","여훈","동범","규서","원중","여울","두환","서홍","금성","용건","경일","휘민","리하","헌재","상철","희창","웅찬","승관","의정","운성","건규","용대","자윤","지구","희락","온율","상경","원욱","경근","솔우","휘연","병재","찬원","순혁","한길","담희","예윤","강석","철호","창성","강률","문석","우택","홍주","유일","호산","명관","리준","호열","동열","종선","인기","치영","보람","오름","찬범","보담","순범","세움","성광","서희","영철","완희","성결","태령","유엘","호담","케빈","경운","경택","호은","은종","비오","성관","형윤","한석","로희","명건","승아","해빈","영근","유권","희강","은태","규보","강이","형선","기동","규보","형선","원용","나라","창하","은태","세주","이음","해람","아빈","찬기","제용","기은","진교","류현","세강","의윤","권민","희웅","성겸","형기","차율","광재","광진","하라","택민","대준","승교","대욱","조영","경덕","성경","호철","희진","윤동","견우","화준","재안","대수","의서","은현","세건","의환","이우","근태","경후","용선","경식","민택","희영","정식","건무","홍빈","동협","순찬","승보","제승","해환","희석","라이","진겸","민조","알렉","두준","해영","수진","라울","나현","승인","태검","평화","규언","창영","혜강","휘경","하유","대승","루호","인선","벤자","우식","상기","종명","성보","창용","루현","조은","성건","용제","수웅","채욱","조한","영선","보건","은별","회준","채웅","범호","남기","보건","수언","무율","라일","준회","은별","진효","재국","근원","경하","남경","진온","규승","자운","진완","정의","준안","제경","종희","호제","원택","슬옹","희중","진선","건훈","영승","헌우","건효","정언","재동","민훈","수열","레이","우건","규도","여원","규남","효서","병서","로율","브라","인율","대균","혁규","남율","승렬","유우","율건","성배","윤교","효영","민홍","규은","대근","준근","병국","영탁","예완","수근","창인","루리","이율","종규","알렉","희훈","종완","상건","현보","선윤","대찬","정택","휘겸","관용","하서","재일","자민","소민","창석","윤창","경무","조엘","상오","희겸","순민","이훈","루원","준유","찬종","대형","휘진","기빈","기수","경은","선주","권준","승배","경은","순민","현결","인교","대형","휘진","채건","영식","윤표","시민","석재","효겸","단후","동익","경목","연태","나무","영상","명기","정오","채오","경오","이래","태찬","예인","희현","강운","주진","성중","용은","바름","상용","선하","선명","희동","규온","유정","병희","유창","택준","선일","라함","다헌","한호","진재","윤학","영택","재령","해우","재황","동선","대엽","영휘","찬엽","레온","태기","서강","찬별","라훈","태효","준세","나준","이호","지광","설호","성필","승필","은조","다일","강일","근석","서오","주엘","하이","두희","우선","보빈","창주","진리","우중","성지","하다","필준","훈서","유래","라익","경필","정제","권영","기승","영대","나혁","준보","원하","학현","아서","훈서","학현","유래","영대","장희","아서","여명","재신","래호","욱진","경범","철희","강진","유마","다우","정휘","필규","구윤","용연","하을","치후","민률","대인","운혁","홍규","진엽","병선","해서","재덕","명주","유은","선휘","아랑","경표","겨울","희운","학윤","백찬","병율","신호","영완","유훈","현윤","보배","유종","용인","슬기","찬경","자현","중훈","세담","경철","중기","신원","근휘","기명","성표","채형","조셉","해주","록희","찬중","형록","수창","제웅","미루","나훈","건수","병석","승종","천희","혜승","리율","헌준","종엽","승비","범식","석형","도흔","승섭","명제","치민","본율","정협","철웅","예솔","찬결","강재","도안","남주","조운","기륜","근희","하일","현묵","철환","준웅","도안","관형","현표","린우","벼리","준웅","은탁","하일","영신","창근","재담","철환","저스","조운","자훈","진철","태의","근희","규희","기륜","기택","광명","병후","선교","주왕","초인","로훈","진범","경남","원정","준솔","규섭","효종","루희","노율","규열","홍현","정철","승석","민산","온우","유택","아원","정록","서백","택윤","중민","근하","근찬","용한","준찬","성룡","강륜","나겸","라언","서정","한웅","지만","성온","두산","윤강","성구","중한","세창","늘찬","문영","철수","예우","경배","리훈","성목","대민","래인","태평","제이","웅빈","헨리","이윤","보준","로은","민경","순율","현학","성도","승룡","서린","경대","형철","배성","그린","영화","권률","축복","단희","근수","빛찬","용혁","병하","승룡","용혁","서린","충민","소담","광휘","진협","종준","성익","인한","강온","재의","유록","제완","호서","환성","가헌","재모","혜율","의건","영오","선기","휘담","대유","충만","지노","성렬","형택","운서","장환","준행","기선","성래","영섭","대일","주아","승익","송주","보영","선형","기서","채정","기남","홍진","은엽","시명","규정","원균","성묵","보원","이섭","현송","신형","종오","순후","담호","윤홍","근민","태익","한검","신웅","종문","희용","태구","이석","창휘","장민","보권","유선","은광","휼","희람","겸희","의주","성아","보명","회윤","중우","래이","후성","경연","부현","상권","한열","희호","남건","문호","인오","순형","동렬","상태","재필","광원","경동","평온","신현","루카","다하","나온","다하","성학","다진","재필","건화","시몬","승곤","창헌","형태","두형","단하","루카","평온","창엽","이룩","홍윤","상태","성흠","아담","경동","태신","재륜","원근","이빈","순규","광준","세휘","루니","하록","이영","민설","새힘","태중","세일","세광","율기","정목","용헌","이혁","웅재","차빈","오율","천호","혜원","광일","종태","영은","대선","하석","송윤","현률","은진","정일","은한","승래","경돈","윤산","승서","연택","경래","두경","효윤","수일","민표","우엽","지흠","선모","우근","효주","용근","정건","인택","도명","회성","치헌","광영","세희","본혁","민휘","에반","겨운","구준","이경","승명","보율","원범","로휘","신재","지휼","재철","유단","한세","강수","형훈","정유","유단","명선","세희","정유","하론","보율","신재","용균","찬익","도결","승형","아섬","효식","인용","나윤","진식","범우","민곤","건엽","경묵","정겸","라빈","승률","세명","희종","리언","준제","하훈","송우","경선","세정","정은","예주","우서","현배","세은","송준","성조","리찬","일환","상목","율우","은원","크리","완우","영율","규화","차현","민희","승회","유리","유휘","이주","보선","범모","겸재","소중","욱현","데이","찬훈","주담","아일","찬재","선구","관율","근서","래훈","학민","강헌","대홍","호동","관유","예운","기열","보결","회찬","성동","창재","현목","정래","으뜸","성덕","래건","신희","한들","중건","창대","호령","상환","창건","보훈","무근","범성","창은","종국","형건","경륜","민광"]})(DMn);var bja=DMn.exports,$Mn={exports:{}};(function(t){t.exports=["#{last_name} #{first_name}"]})($Mn);var xja=$Mn.exports;(function(t){var e={};t.exports=e,e.last_name=yja,e.first_name=bja,e.name=xja})(LMn);var Eja=LMn.exports;(function(t){var e={};t.exports=e,e.title="Korean",e.address=sja,e.phone_number=cja,e.company=fja,e.internet=gja,e.lorem=Aja,e.name=Eja})(fMn);var Sja=fMn.exports,FMn={exports:{}},jMn={exports:{}},HMn={exports:{}};(function(t){t.exports=["Fet","Gjes","Høy","Inn","Fager","Lille","Lo","Mal","Nord","Nær","Sand","Sme","Stav","Stor","Tand","Ut","Vest"]})(HMn);var wja=HMn.exports,UMn={exports:{}};(function(t){t.exports=["berg","borg","by","bø","dal","eid","fjell","fjord","foss","grunn","hamn","havn","helle","mark","nes","odden","sand","sjøen","stad","strand","strøm","sund","vik","vær","våg","ø","øy","ås"]})(UMn);var _ja=UMn.exports,zMn={exports:{}};(function(t){t.exports=["Øvre","Nedre","Søndre","Gamle","Østre","Vestre"]})(zMn);var Tja=zMn.exports,GMn={exports:{}};(function(t){t.exports=["Eike","Bjørke","Gran","Vass","Furu","Litj","Lille","Høy","Fosse","Elve","Ku","Konvall","Soldugg","Hestemyr","Granitt","Hegge","Rogne","Fiol","Sol","Ting","Malm","Klokker","Preste","Dam","Geiterygg","Bekke","Berg","Kirke","Kors","Bru","Blåveis","Torg","Sjø"]})(GMn);var Cja=GMn.exports,VMn={exports:{}};(function(t){t.exports=["alléen","bakken","berget","bråten","eggen","engen","ekra","faret","flata","gata","gjerdet","grenda","gropa","hagen","haugen","havna","holtet","høgda","jordet","kollen","kroken","lia","lunden","lyngen","løkka","marka","moen","myra","plassen","ringen","roa","røa","skogen","skrenten","spranget","stien","stranda","stubben","stykket","svingen","tjernet","toppen","tunet","vollen","vika","åsen"]})(VMn);var kja=VMn.exports,KMn={exports:{}};(function(t){t.exports=["sgate","svei","s Gate","s Vei","gata","veien"]})(KMn);var Rja=KMn.exports,WMn={exports:{}};(function(t){t.exports=["#","##"]})(WMn);var Mja=WMn.exports,QMn={exports:{}};(function(t){t.exports=["Leil. ###","Oppgang A","Oppgang B"]})(QMn);var Nja=QMn.exports,qMn={exports:{}};(function(t){t.exports=["####","####","####","0###"]})(qMn);var Ija=qMn.exports,YMn={exports:{}};(function(t){t.exports=[""]})(YMn);var Pja=YMn.exports,JMn={exports:{}};(function(t){t.exports=["#{city_root}#{city_suffix}"]})(JMn);var Oja=JMn.exports,ZMn={exports:{}};(function(t){t.exports=["#{street_root}#{street_suffix}","#{street_prefix} #{street_root}#{street_suffix}","#{Name.first_name}#{common_street_suffix}","#{Name.last_name}#{common_street_suffix}"]})(ZMn);var Lja=ZMn.exports,XMn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(XMn);var Bja=XMn.exports,eNn={exports:{}};(function(t){t.exports=["Norge"]})(eNn);var Dja=eNn.exports;(function(t){var e={};t.exports=e,e.city_root=wja,e.city_suffix=_ja,e.street_prefix=Tja,e.street_root=Cja,e.street_suffix=kja,e.common_street_suffix=Rja,e.building_number=Mja,e.secondary_address=Nja,e.postcode=Ija,e.state=Pja,e.city=Oja,e.street_name=Lja,e.street_address=Bja,e.default_country=Dja})(jMn);var $ja=jMn.exports,tNn={exports:{}},nNn={exports:{}};(function(t){t.exports=["Gruppen","AS","ASA","BA","RFH","og Sønner"]})(nNn);var Fja=nNn.exports,rNn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} og #{Name.last_name}"]})(rNn);var jja=rNn.exports;(function(t){var e={};t.exports=e,e.suffix=Fja,e.name=jja})(tNn);var Hja=tNn.exports,iNn={exports:{}},aNn={exports:{}};(function(t){t.exports=["no","com","net","org"]})(aNn);var Uja=aNn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=Uja})(iNn);var zja=iNn.exports,oNn={exports:{}},sNn={exports:{}};(function(t){t.exports=["Emma","Sara","Thea","Ida","Julie","Nora","Emilie","Ingrid","Hanna","Maria","Sofie","Anna","Malin","Amalie","Vilde","Frida","Andrea","Tuva","Victoria","Mia","Karoline","Mathilde","Martine","Linnea","Marte","Hedda","Marie","Helene","Silje","Leah","Maja","Elise","Oda","Kristine","Aurora","Kaja","Camilla","Mari","Maren","Mina","Selma","Jenny","Celine","Eline","Sunniva","Natalie","Tiril","Synne","Sandra","Madeleine","Markus","Mathias","Kristian","Jonas","Andreas","Alexander","Martin","Sander","Daniel","Magnus","Henrik","Tobias","Kristoffer","Emil","Adrian","Sebastian","Marius","Elias","Fredrik","Thomas","Sondre","Benjamin","Jakob","Oliver","Lucas","Oskar","Nikolai","Filip","Mats","William","Erik","Simen","Ole","Eirik","Isak","Kasper","Noah","Lars","Joakim","Johannes","Håkon","Sindre","Jørgen","Herman","Anders","Jonathan","Even","Theodor","Mikkel","Aksel"]})(sNn);var Gja=sNn.exports,lNn={exports:{}};(function(t){t.exports=["Emma","Sara","Thea","Ida","Julie","Nora","Emilie","Ingrid","Hanna","Maria","Sofie","Anna","Malin","Amalie","Vilde","Frida","Andrea","Tuva","Victoria","Mia","Karoline","Mathilde","Martine","Linnea","Marte","Hedda","Marie","Helene","Silje","Leah","Maja","Elise","Oda","Kristine","Aurora","Kaja","Camilla","Mari","Maren","Mina","Selma","Jenny","Celine","Eline","Sunniva","Natalie","Tiril","Synne","Sandra","Madeleine"]})(lNn);var Vja=lNn.exports,cNn={exports:{}};(function(t){t.exports=["Markus","Mathias","Kristian","Jonas","Andreas","Alexander","Martin","Sander","Daniel","Magnus","Henrik","Tobias","Kristoffer","Emil","Adrian","Sebastian","Marius","Elias","Fredrik","Thomas","Sondre","Benjamin","Jakob","Oliver","Lucas","Oskar","Nikolai","Filip","Mats","William","Erik","Simen","Ole","Eirik","Isak","Kasper","Noah","Lars","Joakim","Johannes","Håkon","Sindre","Jørgen","Herman","Anders","Jonathan","Even","Theodor","Mikkel","Aksel"]})(cNn);var Kja=cNn.exports,uNn={exports:{}};(function(t){t.exports=["Johansen","Hansen","Andersen","Kristiansen","Larsen","Olsen","Solberg","Andresen","Pedersen","Nilsen","Berg","Halvorsen","Karlsen","Svendsen","Jensen","Haugen","Martinsen","Eriksen","Sørensen","Johnsen","Myhrer","Johannessen","Nielsen","Hagen","Pettersen","Bakke","Skuterud","Løken","Gundersen","Strand","Jørgensen","Kvarme","Røed","Sæther","Stensrud","Moe","Kristoffersen","Jakobsen","Holm","Aas","Lie","Moen","Andreassen","Vedvik","Nguyen","Jacobsen","Torgersen","Ruud","Krogh","Christiansen","Bjerke","Aalerud","Borge","Sørlie","Berge","Østli","Ødegård","Torp","Henriksen","Haukelidsæter","Fjeld","Danielsen","Aasen","Fredriksen","Dahl","Berntsen","Arnesen","Wold","Thoresen","Solheim","Skoglund","Bakken","Amundsen","Solli","Smogeli","Kristensen","Glosli","Fossum","Evensen","Eide","Carlsen","Østby","Vegge","Tangen","Smedsrud","Olstad","Lunde","Kleven","Huseby","Bjørnstad","Ryan","Rasmussen","Nygård","Nordskaug","Nordby","Mathisen","Hopland","Gran","Finstad","Edvardsen"]})(uNn);var Wja=uNn.exports,dNn={exports:{}};(function(t){t.exports=["Dr.","Prof."]})(dNn);var Qja=dNn.exports,hNn={exports:{}};(function(t){t.exports=["Jr.","Sr.","I","II","III","IV","V"]})(hNn);var qja=hNn.exports,fNn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name} #{suffix}","#{feminine_name} #{feminine_name} #{last_name}","#{masculine_name} #{masculine_name} #{last_name}","#{first_name} #{last_name} #{last_name}","#{first_name} #{last_name}"]})(fNn);var Yja=fNn.exports;(function(t){var e={};t.exports=e,e.first_name=Gja,e.female_first_name=Vja,e.male_first_name=Kja,e.last_name=Wja,e.prefix=Qja,e.suffix=qja,e.name=Yja})(oNn);var Jja=oNn.exports,pNn={exports:{}},mNn={exports:{}};(function(t){t.exports=["########","## ## ## ##","### ## ###","+47 ## ## ## ##"]})(mNn);var Zja=mNn.exports;(function(t){var e={};t.exports=e,e.formats=Zja})(pNn);var Xja=pNn.exports;(function(t){var e={};t.exports=e,e.title="Norwegian",e.address=$ja,e.company=Hja,e.internet=zja,e.name=Jja,e.phone_number=Xja})(FMn);var eHa=FMn.exports,gNn={exports:{}},vNn={exports:{}},ANn={exports:{}};(function(t){t.exports=["Aarav","Ajita","Amit","Amita","Amrit","Arijit","Ashmi","Asmita","Bibek","Bijay","Bikash","Bina","Bishal","Bishnu","Buddha","Deepika","Dipendra","Gagan","Ganesh","Khem","Krishna","Laxmi","Manisha","Nabin","Nikita","Niraj","Nischal","Padam","Pooja","Prabin","Prakash","Prashant","Prem","Purna","Rajendra","Rajina","Raju","Rakesh","Ranjan","Ratna","Sagar","Sandeep","Sanjay","Santosh","Sarita","Shilpa","Shirisha","Shristi","Siddhartha","Subash","Sumeet","Sunita","Suraj","Susan","Sushant"]})(ANn);var tHa=ANn.exports,yNn={exports:{}};(function(t){t.exports=["Adhikari","Aryal","Baral","Basnet","Bastola","Basynat","Bhandari","Bhattarai","Chettri","Devkota","Dhakal","Dongol","Ghale","Gurung","Gyawali","Hamal","Jung","KC","Kafle","Karki","Khadka","Koirala","Lama","Limbu","Magar","Maharjan","Niroula","Pandey","Pradhan","Rana","Raut","Sai","Shai","Shakya","Sherpa","Shrestha","Subedi","Tamang","Thapa"]})(yNn);var nHa=yNn.exports;(function(t){var e={};t.exports=e,e.first_name=tHa,e.last_name=nHa})(vNn);var rHa=vNn.exports,bNn={exports:{}},xNn={exports:{}};(function(t){t.exports=[0]})(xNn);var iHa=xNn.exports,ENn={exports:{}};(function(t){t.exports=["Baglung","Banke","Bara","Bardiya","Bhaktapur","Bhojupu","Chitwan","Dailekh","Dang","Dhading","Dhankuta","Dhanusa","Dolakha","Dolpha","Gorkha","Gulmi","Humla","Ilam","Jajarkot","Jhapa","Jumla","Kabhrepalanchok","Kalikot","Kapilvastu","Kaski","Kathmandu","Lalitpur","Lamjung","Manang","Mohottari","Morang","Mugu","Mustang","Myagdi","Nawalparasi","Nuwakot","Palpa","Parbat","Parsa","Ramechhap","Rauswa","Rautahat","Rolpa","Rupandehi","Sankhuwasabha","Sarlahi","Sindhuli","Sindhupalchok","Sunsari","Surket","Syangja","Tanahu","Terhathum"]})(ENn);var aHa=ENn.exports,SNn={exports:{}};(function(t){t.exports=["Bhaktapur","Biratnagar","Birendranagar","Birgunj","Butwal","Damak","Dharan","Gaur","Gorkha","Hetauda","Itahari","Janakpur","Kathmandu","Lahan","Nepalgunj","Pokhara"]})(SNn);var oHa=SNn.exports,wNn={exports:{}};(function(t){t.exports=["Nepal"]})(wNn);var sHa=wNn.exports;(function(t){var e={};t.exports=e,e.postcode=iHa,e.state=aHa,e.city=oHa,e.default_country=sHa})(bNn);var lHa=bNn.exports,_Nn={exports:{}},TNn={exports:{}};(function(t){t.exports=["worldlink.com.np","gmail.com","yahoo.com","hotmail.com"]})(TNn);var cHa=TNn.exports,CNn={exports:{}};(function(t){t.exports=["np","com","info","net","org"]})(CNn);var uHa=CNn.exports;(function(t){var e={};t.exports=e,e.free_email=cHa,e.domain_suffix=uHa})(_Nn);var dHa=_Nn.exports,kNn={exports:{}},RNn={exports:{}};(function(t){t.exports=["Pvt Ltd","Group","Ltd","Limited"]})(RNn);var hHa=RNn.exports;(function(t){var e={};t.exports=e,e.suffix=hHa})(kNn);var fHa=kNn.exports,MNn={exports:{}},NNn={exports:{}};(function(t){t.exports=["##-#######","+977-#-#######","+977########"]})(NNn);var pHa=NNn.exports;(function(t){var e={};t.exports=e,e.formats=pHa})(MNn);var mHa=MNn.exports;(function(t){var e={};t.exports=e,e.title="Nepalese",e.name=rHa,e.address=lHa,e.internet=dHa,e.company=fHa,e.phone_number=mHa})(gNn);var gHa=gNn.exports,INn={exports:{}},PNn={exports:{}},ONn={exports:{}};(function(t){t.exports=["Aagte","Aal","Aalden","Aals","Aalst","Aalsum","Aanschot","Aarden","Aarle","Abbe","Abbegea","Abben","Abbestede","Abcoven","Absdale","Abts","Acht","Achter","Achterste","Achtmaal","Achttien","Acquoy","Aduard","Aduarder","Aekinga","Aerde","Aerden","Aerdt","Afferden","Aijen","Akersloot","Akker","Akkerput","Akkrun","Akmarijp","Aldeboarn","Aldegae","Aldtsjerk","Aling","Alkmaar","Allersma","Allinga","Almere","Alphen","Altena","Alteveer","Alting","Altweert","Alverna","Ameide","Amerika","Amerongen","Ammerstol","Ams","Amster","Andel","Angeren","Anholt","Anjum","Anke","Ankum","Anna","Annendaal","Anneville","Anreep","Ansen","Apeldoorn","Apen","Appel","Appen","Arcen","Archem","Arendnest","Arensge","Arkens","Armweide","Arnhem","Arnoud","Arriën","Arriër","Arum","Arwerd","Asch","Asenray","Asperen","Asschat","Assel","Asselt","Assen","Asten","Atze","Augs","Averlo","Avest","Azelo","Azewijn","Ba","Baaium","Baak","Baaks","Baal","Baamsum","Baan","Baard","Baarder","Baarle","Baarlo","Baars","Baarschot","Baexem","Baflo","Bahr","Bakel","Bakelse","Bakertand","Bakke","Bakkerom","Balgoij","Balinge","Ballast","Balleman","Ballum","Balma","Bane","Bankert","Bantega","Bare","Bargebek","Barlage","Barlaque","Barlo","Barnflair","Barrier","Bars","Basse","Basser","Baten","Bath","Bathmen","Bavinkel","Bazuin","Bears","Beckum","Bedaf","Bedum","Beekb","Beekkant","Beemdkant","Beemte","Beertsen","Beerze","Beerzer","Beesd","Beetgum","Beetgumer","Behelp","Beilen","Beinum","Beke","Beldert","Belgen","Belgeren","Belt","Belvert","Bemmel","Bemmer","Benderse","Beneden","Benne","Bennekom","Bent","Bente","Benthem","Berg","Bergakker","Bergen","Bergens","Bergerden","Bergharen","Berghem","Berghum","Bergstoep","Berik","Beringe","Berk","Berke","Berken","Berkt","Berlicum","Bern","Besse","Besthmen","Beswerd","Bethlehem","Beugt","Beuke","Beun","Beusb","Beusichem","Bever","Bidding","Biert","Bierum","Biessum","Biest","Biezen","Bigge","Bijster","Bijsteren","Billing","Bilt","Bingerden","Bisselt","Bissen","Blaker","Blaricum","Blauhûs","Blauw","Blauwe","Blauwen","Bleijen","Bleijs","Blekslage","Blenkert","Blerick","Blessum","Blije","Blijham","Blijnse","Blok","Blokken","Blokum","Boazum","Boberden","Bocholtz","Bocht","Boeiink","Boek","Boekel","Boekelo","Boekelte","Boekend","Boer","Boerakker","Boerelaan","Boeren","Boerengat","Boerenhol","Boerhaar","Boijl","Boks","Boksum","Bokt","Bollinga","Bols","Bolst","Bolt","Bommerig","Bong","Bonkwert","Bonner","Bonrepas","Bontebok","Boomen","Boord","Borger","Borgharen","Borgs","Borgweg","Borkel","Borkeld","Born","Borne","Borneo","Bornwird","Bos","Boschkens","Bosje","Bosjes","Boskamp","Boskant","Boskoop","Boslust","Bosschen","Bosscher","Bosven","Boter","Botshoofd","Boukoul","Bourtange","Boven","Bovenstad","Boxtel","Braak","Braamt","Brabander","Brakel","Brand","Brande","Brandt","Brantgum","Breda","Brede","Bree","Breede","Breedeweg","Breehees","Breezand","Brem","Breskens","Breugel","Breukele","Breyvin","Brielle","Brigdamme","Brij","Brillerij","Briltil","Brinkmans","Britsum","Britswert","Broek","Broekens","Broekkant","Brommelen","Brons","Bruchem","Bruggen","Brugger","Bruil","Bruinisse","Bruister","Brumhold","Brunssum","Brunsting","Bruntinge","Buchten","Buggenum","Buis","Buiten","Bulkenaar","Bult","Bultinge","Bunne","Bunnik","Burdaard","Burger","Burgh","Burgt","Burgum","Burgwerd","Burstum","Burum","Bussel","Busselte","Busser","Buttinge","Buurtje","Cadier","Cadzand","Calfven","Calslagen","Caluna","Camerig","Capelle","Carnisse","Cartils","Castelré","Castenray","Castert","Castricum","Catsop","Chaam","Clinge","Coevorden","Colmont","Cornjum","Cornwerd","Cottessen","Crapoel","Crau","Crix","Crob","Croy","Culemborg","Daarle","Dale","Dalem","Dalen","Daler","Dalerend","Dalerpeel","Dallinge","Damwâld","Daniken","Darp","Dassemus","Dearsum","Dedgum","Deelen","Deelse","Deelshurk","Deense","Deest","Deil","Deinum","Dekes","Dekkers","Del","Delden","Delf","Delft","Dellen","Delwijnen","Demen","Den ","Deursen","Deuteren","Deventer","Dieden","Diemen","Diepen","Diependal","Diepswal","Diermen","Dieskant","Dieteren","Diever","Dijken","Dijker","Dijkster","Dijkwel","Dintelsas","Dinther","Dintherse","Diphoorn","Dirkshorn","Dis","Diunt","Doenrade","Does","Doeveren","Doezum","Doijum","Dokkum","Doldersum","Dom","Dommelen","Donderen","Dongen","Donia","Doniaga","Donzel","Dood","Doodstil","Doon","Doorn","Doornen","Doornik","Doorning","Doorwerth","Doosje","Dorkwerd","Dorst","Dorther","Douverge","Douwen","Draai","Drachten","Dreischor","Drie","Drieboere","Driehuis","Driene","Dries","Driewegen","Driezum","Drieën","Drijber","Drimmelen","Drogeham","Drogt","Dronrijp","Dronten","Druif","Drunen","Druten","Drylts","Duifhuis","Duinen","Duiven","Duizel","Duizend","Dulder","Dunsborg","Dussen","Duur","Duurends","Eagum","Earnewâld","Easterein","Eastermar","Easthim","Echt","Echten","Echtener","Echter","Eder","Eede","Eefsele","Eekt","Eekwerd","Eelde","Eelen","Eems","Eemster","Eemten","Een","Eenigen","Eenrum","Eenum","Eerde","Eersel","Eerste","Ees","Eesterga","Effen","Egchel","Egede","Egmond","Egypte","Eikelen","Eikelhof","Eimeren","Eindewege","Eindje","Ekamp","Elde","Elden","Eldik","Eldrik","Elft","Elkerzee","Ellemeet","Eller","Ellerhei","Ellersing","Elsen","Elshof","Elspeet","Elst","Elsteren","Elzet","Emmeloord","Emmen","Empel","Endepoel","Eng","Enge","Engel","Engelbert","Engelen","Engelum","Englum","Engwegen","Engwierum","Enk","Enschedé","Enspijk","Enumatil","Enzelens","Eper","Eppen","Erichem","Erlecom","Ermelo","Ermer","Escharen","Eschoten","Espelo","Essen","Etenaken","Etzenrade","Eursing","Eursinge","Euverem","Ever","Everd","Everlo","Everse","Ewer","Ewinkel","Exmorra","Eygels","Eyser","Ezinge","Ezuma","Faan","Falom","Farmsum","Fatum","Feerwerd","Fel","Ferwert","Fiemel","Fijfhûs","Finke","Finkum","Flieren","Flânsum","Fokkers","Follega","Folsgeare","Formerum","Fort","Fortmond","Foudgum","Fraamklap","Frankhuis","Frankrijk","Fransum","Friens","Frytum","Fûns","Gaag","Gaanderen","Gaar","Gaast","Gaasten","Gaastmar","Gaete","Gagel","Galder","Gameren","Gammelke","Ganzert","Gapinge","Garminge","Garnwerd","Garre","Garrels","Garst","Garyp","Gassel","Gasthuis","Gawege","Gebergte","Geefs","Geen","Geer","Gees","Geeuwen","Geffen","Gelders","Gelderse","Geleen","Gelkenes","Gellicum","Gemaal","Gement","Gemert","Gemonde","Gendt","Geneijgen","Genen","Gening","Genne","Gennep","Genooi","Gerheggen","Gerner","Gersloot","Gerven","Gerwen","Geulhem","Gever","Geverik","Gewande","Giers","Giessen","Gietelo","Giethmen","Giethoorn","Gijbe","Gijsselte","Gijzel","Gilze","Ginkel","Ginnum","Glaner","Goaiïngea","Godlinze","Goes","Goilberd","Goirle","Goldhoorn","Gooium","Goor","Gorinchem","Gorp","Gortel","Gouda","Gouderak","Goudseweg","Goënga","Graaf","Graauw","Gracht","Graet","Graf","Grafwegen","Gras","Graspeel","Graszode","Grathem","Grauwe","Grave","Grazen","Greonterp","Greup","Griete","Grijps","Grits","Groe","Groede","Groen","Groenekan","Groeneweg","Groenlo","Groep","Groes","Groessen","Groet","Groeve","Groeze","Gron","Groot","Groote","Grote","Grotel","Grou","Gytsjerk","Haaften","Haag","Haagje","Haaks","Haakswold","Haalderen","Haalweide","Haamstede","Haandrik","Haar","Haarlem","Haarsteeg","Haart","Haelen","Haerst","Hagestein","Haiink","Halder","Haler","Half","Halfmijl","Halfweg","Halle","Haller","Hallum","Halte","Halvink","Hamrik","Hamshorn","Handel","Hane","Hank","Hankate","Hansweert","Hantum","Hantumer","Harculo","Harde","Hardinx","Haren","Harener","Haring","Harke","Harkema","Harl","Harles","Harpel","Harre","Harse","Harskamp","Harssens","Hartwerd","Haspel","Hasselt","Hasselter","Hatte","Hattem","Hauwert","Havelt","Havelte","Hayum","Haze","Hazenhurk","Hazennest","Heaburgen","Hedel","Hedik","Heech","Heegher","Heek","Heelsum","Heems","Heemstede","Heenweg","Heer","Heerde","Heere","Heeren","Heers","Hees","Heesakker","Heesbeen","Heesboom","Heesch","Heesselt","Heet","Heezeren","Hefswal","Hegge","Hei","Heiakker","Heibloem","Heid","Heide","Heidekant","Heiden","Heier","Heihoefke","Heij","Heijen","Heikant","Heikantse","Heille","Heine","Heioord","Heister","Heitrak","Hekel","Hekkum","Hel","Helden","Helkant","Hell","Helle","Hellegat","Hellen","Hellevoet","Helling","Hellouw","Helwerd","Hemert","Hemrik","Hendrik","Henge","Herfte","Herike","Herk","Herken","Hermalen","Hernen","Herpen","Herpt","Hersel","Hersend","Hert","Herten","Hertme","Herveld","Herwen","Herwijnen","Herxen","Hesens","Hespe","Hessum","Heugde","Heukelom","Heukelum","Heult","Heumen","Heure","Heurne","Heusden","Heuvel","Heuvels","Heuveltje","Hexel","Heze","Hiaure","Hichtum","Hidaard","Hien","Hierden","Hieslum","Hijken","Hijum","Hilaard","Hilakker","Hild","Hill","Hilte","Hilversum","Hinnaard","Hintham","Hitsertse","Hodenpijl","Hoef","Hoefkens","Hoek","Hoekdries","Hoekelum","Hoekens","Hoekje","Hoeks","Hoekske","Hoetmans","Hoeve","Hoeven","Hoeves","Hoge","Hogert","Hogeweg","Holker","Hollum","Holm","Holset","Holsloot","Holst","Holt","Holte","Holten","Holter","Holthe","Holtien","Holtinge","Holtum","Holwerd","Holwierde","Holwinde","Hommelse","Hommert","Hommerts","Honderd","Honds","Hondsrug","Hongerige","Honthem","Hoog","Hoogcruts","Hooge","Hoogehaar","Hoogen","Hoogeweg","Hooghalen","Hoogmade","Hoogmeien","Hoogwatum","Hool","Hoon","Hoonte","Hoorn","Hoornder","Hoptille","Horck","Horick","Horn","Horssen","Horsten","Horzik","Hout","Houterd","Houtgoor","Houthei","Houthem","Houw","Houwer","Hugten","Huij","Huinen","Huinerwal","Huis","Huissen","Huize","Huizinge","Hul","Huls","Hulsen","Hulst","Hulten","Hultje","Humcoven","Hunnecum","Hunsel","Hupsel","Hurkske","Hurpesch","Hutten","Huurne","Höchte","Höfke","Húns","Idaerd","Idserda","Idsken","Idzegea","Iens","IJmuiden","IJpe","IJpelo","IJsselham","IJzen","IJzeren","IJzerlo","Illik","Indoornik","Ingwert","Inia","Itens","Itteren","Jaars","Jammer","Jannum","Jellum","Jelsum","Jeth","Jipsing","Jirnsum","Jislum","Jisp","Jistrum","Jonas","Jonen","Jonkers","Jorwert","Joure","Jous","Jousterp","Jouswerd","Jouwer","Jubbega","Jukwerd","Junne","Jutryp","Kaag","Kaakhorn","Kaard","Kaarschot","Kaat","Kade","Kadoelen","Kalis","Kalteren","Kameren","Kamp","Kampen","Kamper","Kamperei","Kampers","Kamperzee","Kantens","Kantje","Kapel","Kapelle","Kapolder","Kappert","Karre","Kasen","Kasteren","Kater","Katerveer","Kathagen","Katlijk","Kats","Katwijk","Kaumes","Kavel","Kaweide","Kedichem","Keegen","Keent","Keersop","Keinsmer","Keizers","Kekerdom","Kelmond","Kelpen","Kempkens","Kerk","Kerken","Kerkhof","Kerkrade","Kerkwerve","Keske","Kessel","Kesseleik","Ketting","Keulse","Keunen","Keup","Keuter","Kibbel","Kiel","Kiester","Kievit","Kijf","Kijfwaard","Kijkuit","Kilder","Kille","Kimswerd","Kinderbos","Kink","Kinnum","Kipper","Klaaswaal","Kladde","Klaren","Klatering","Klef","Klei","Klein","Kleinder","Kleine","Kleinge","Klem","Kletter","Klevers","Klispoel","Klomp","Klooster","Klosse","Klösse","Knaphof","Knegsel","Knipe","Knol","Knolle","Knuiters","Koedood","Koehool","Koekange","Koekanger","Koekoek","Koel","Koevering","Kokkelert","Kolder","Kolhol","Kolhorn","Kolk","Kollum","Kolonie","Kommer","Konings","Koog","Kooi","Kooldert","Kopaf","Korhorn","Korn","Kornhorn","Kort","Korte","Korteraar","Korteven","Kortgene","Kostvlies","Koude","Kouden","Koudhoorn","Koulen","Kraan","Kraanven","Kraats","Krabben","Krachtig","Kranen","Krassum","Kreek","Kreielt","Kreijel","Kreijl","Krewerd","Krim","Krimpen","Krol","Kruin","Kruishaar","Kruispunt","Kruisweg","Kuikhorne","Kuiks","Kuinre","Kuitaart","Kuivezand","Kulert","Kulsdom","Kunrade","Kutt","Kuundert","Kuzemer","Kwaal","Kwakel","Kwakkel","Kwartier","Kûkherne","Laag","Laaghalen","Laaghaler","Laak","Laaksum","Laan","Lage","Lagekant","Lageweg","Lakei","Laker","Lalle","Lammer","Lammerweg","Lamperen","Landerum","Landsrade","Lang","Lange","Langeraar","Langerak","Langereit","Lank","Lankes","Laren","Laskwerd","Lattrop","Laude","Lauwer","Ledeacker","Leeg","Leegte","Leek","Leem","Leen","Leens","Leensel","Leermens","Leersum","Leeuw","Leeuwerik","Leeuwte","Lege","Legert","Leiden","Leimuiden","Leker","Lekker","Lelystad","Lemel","Lemele","Lemmer","Lemselo","Lengel","Lent","Lenthe","Leons","Lerop","Lethe","Lettele","Leuke","Leunen","Leur","Leusden","Leutes","Leuth","Leuven","Leuvenum","Leveroy","Lexmond","Lhee","Lichtaard","Lichtmis","Liefkens","Liempde","Lienden","Lier","Lieren","Lierop","Lies","Lievelde","Lieving","Lijnden","Limbricht","Limmen","Linde","Lingsfort","Lintelo","Lintvelde","Lioessens","Lippen","Lith","Lithoijen","Lobith","Loc","Locht","Loenen","Loer","Loete","Logt","Loil","Lollum","Lomm","Lonneker","Loo","Loobrink","Loofaert","Looi","Looien","Look","Loon","Loons","Loonse","Looveer","Loppersum","Lovendaal","Loveren","Loënga","Lubbinge","Luchen","Luchten","Luissel","Luitert","Lula","Lunen","Lunteren","Lunters","Lutjegast","Lutjerijp","Lutke","Lutkepost","Lutten","Lutter","Lytse","Lytshuzen","Maagd","Maaijkant","Maalb","Maaldrift","Maalstede","Maar","Maarn","Maars","Maarssen","Maasband","Maasbree","Maaskant","Maat","Maatsehei","Macharen","Made","Magele","Magrette","Makkum","Mal","Malden","Mallem","Mamelis","Manen","Mantgum","Mantinge","Maren","Maria","Maris","Mark","Markvelde","Marle","Marrum","Mars","Marssum","Marsum","Martens","Marum","Mataram","Maten","Mathijs","Maurik","Maxet","Medemblik","Medevoort","Medler","Meed","Meeden","Meele","Meemortel","Meene","Meer","Meeren","Meern","Meerten","Meerven","Meerwijck","Megelsum","Megen","Meije","Meijel","Melick","Melis","Melissant","Menaldum","Mensinge","Menzel","Meppen","Merkel","Merm","Merselo","Merum","Mesch","Meteren","Metsla","Midbuul","Midde","Middel","Middelijk","Midden","Middenhof","Midlaren","Midlum","Mids","Midwolde","Miedum","Mildert","Milheeze","Mill","Mils","Milschot","Minkeloos","Mispel","Moddergat","Moer","Moeren","Moerslag","Moespot","Molembaix","Molenbaan","Molenbelt","Molengat","Molenhof","Molenperk","Molenrij","Molenstad","Molkwar","Monster","Montfort","Mook","Moord","Moorsel","Morige","Morra","Mortel","Mosbulten","Mosik","Moskou","Mosse","Mossel","Most","Muggenhol","Muis","Muizenhol","Mulderij","Mullegen","Munneke","Munnekens","Munniken","Munte","Murns","Mussel","Mûnein","Naarder","Nabbegat","Nagel","Nansum","Napels","Natten","Neder","Nederbiel","Neer","Neerijnen","Neeritter","Neerloon","Neerst","Negen","Nekke","Nergena","Nia","Nie","Niebert","Niehove","Nier","Niersen","Niesoord","Nieuw","Nieuwaal","Nieuwe","Nieuwer","Nieuwklap","Nieuwkoop","Nieuwolda","Nieuwstad","Niftrik","Nijega","Nijehaske","Nijesyl","Nijken","Nijkerker","Nijlân","Nijmegen","Nijnsel","Nijrees","Nijstad","Nijve","Nispense","Noardein","Noenes","Nolde","Noord","Noorden","Noorder","Noordhorn","Noordink","Noordkant","Noordse","Notendaal","Notsel","Noukoop","Nuenen","Nuijen","Nuil","Nuis","Nunhem","Nunspeet","Nuth","Obbicht","Ock","Oegst","Oekel","Oeken","Oele","Oensel","Oentsjerk","Oerle","Oete","Oever","Offinga","Ofwegen","Ohé;","Oijen","Oirlo","Oirs","Okswerd","Olde","Oldehove","Oldemarkt","Olden","Oldeneel","Oldenhave","Oldeouwer","Oldörp","Olen","Oler","Oling","Olterterp","Ommel","Ommen","Ommeren","Onder","Onna","Onsenoort","Onstwedde","Ooij","Ooijen","Oost","Oostappen","Ooste","Ooster","Oosterend","Oosterens","Oosterhof","Oosterik","Oosternie","Oosternij","Oosterse","Oosterzee","Oosthem","Oostindië","Oostrum","Oostum","Oostwold","Oostzaan","Op","Opende","Ophemert","Ophuis","Opijnen","Opmeeden","Opper","Opperdoes","Opperduit","Opwetten","Opwierde","Oranje","Orvelte","Osen","Oshaar","Ospel","Ossen","Ossenisse","Ostaaijen","Osterbos","Othene","Otterlo","Ottersum","Ou","OuBildt","Oude","Oudega","Oudehaske","Oudehorne","Ouden","Oudenrijn","Ouder","Oudeschip","Oudleusen","Oukoop","OuLeede","OuLeije","OuPolder","OuSchouw","OuStaten","OuStee","OuStoof","OuStrumpt","OuWaranda","Ouwer","OuWillem","Ouwster","Oventje","Over","Overa","Overakker","Overbiel","Overeys","Overgeul","Overheek","Overschot","Overval","Overwater","Paal","Paarde","Paarlo","Paauwen","Paddepoel","Padhuis","Paesens","Palestina","Pallert","Pandgat","Panheel","Pann","Pannerden","Papen","Papenveer","Park","Parrega","Partij","Pasop","Patrijzen","Peebos","Peelkant","Peij","Peizerweg","Pelikaan","Pepinus","Pernis","Pers","Pesaken","Peters","Petten","Piaam","Pieperij","Piepert","Piershil","Pieter","Pikesyl","Piksen","Pingjum","Pinkeveer","Pitteperk","Plaat","Plaats","Plak","Plantage","Plas","Plat","Plein","Poffert","Polen","Polle","Pollen","Ponte","Poonhaven","Poppen","Posterenk","Posthoorn","Pot","Praets","Prickart","Puiflijk","Punt","Purmer","Purmerend","Puth","Putse","Putten","Putters","Pyramide","Raai","Raak","Raam","Raar","Raard","Raayen","Raerd","Rakens","Rakt","Rand","Rande","Randen","Ranum","Raren","Rasquert","Ratte","Ravensgat","Reahûs","Rechteren","Rectum","Reduzum","Reeth","Reidswal","Reitsum","Remswerd","Renesse","Renkum","Renneborg","Rens","Respel","Ressen","Reters","Reth","Reuth","Reutje","Reuzen","Rewert","Rhaan","Rheder","Rhee","Rhenoy","Rhoon","Ridder","Riel","Rien","Riet","Rietven","Rijckholt","Rijen","Rijke","Rijkel","Rijker","Rijlst","Rijnsater","Rijsb","Rijsoord","Rijt","Rijtjes","Ril","Rimpelt","Rink","Rips","Rith","Ritsuma","Roeke","Roekel","Roelage","Roels","Roermond","Roeven","Roggel","Rohel","Rolaf","Roligt","Rollecate","Rolpaal","Rome","Rond","Ronduite","Rood","Roodehaan","Rooden","Roond","Roosteren","Rooth","Ropta","Roskam","Rothem","Rott","Rotte","Rotter","Rotting","Rottum","Rozendaal","Rucphen","Ruif","Ruigen","Ruigezand","Ruimel","Ruinen","Ruischer","Ruiten","Rukven","Rullen","Rumpt","Rund","Rusven","Rut","Ryptsjerk","Rytseterp","Saaksum","Saaxum","Salverd","Sandebuur","Santfort","Santpoort","Sasput","Sauwerd","Schaa","Schaaphok","Schaaps","Schadron","Schafelt","Schaft","Schagen","Schager","Schandelo","Schans","Schapers","Scharen","Scharne","Scharster","Schatkuil","Schaveren","Scheemder","Schelf","Schellach","Schelm","Schettens","Schey","Schieven","Schijf","Schijndel","Schillers","Schimmert","Schin","Schinnen","Schippers","School","Schoon","Schoonen","Schoor","Schoorl","Schoot","Schore","Schoter","Schotters","Schouw","Schouwen","Schouwer","Schraard","Schrap","Schuilen","Schuring","Schuwacht","Sebalde","Seerijp","Sell","Selmien","Selwerd","Seroos","Seters","Sibbe","Siberië","Siegers","Simpel","Sinouts","Sinsel","Sint","Sion","Sittard","Sjunga","Skarl","Skillaerd","Skou","Skrins","Skyldum","Slee","Sleen","Slegge","Slek","Slichten","Sliffert","Slijkwell","Slikken","Sloot","Sluis","Smakt","Smal","Smalle","Smeerling","Smelbrêge","Smele","Smilde","Smits","Sneek","Sneiders","Snelle","Sneps","Snikzwaag","Snipperij","Snoden","Soeter","Solwerd","Someren","Sopsum","Spaanrijt","Spaanse","Spaken","Spannen","Spannum","Spears","Spek","Spekklef","Spekt","Speuld","Speurgt","Spier","Spijk","Spik","Spits","Spoolde","Spoor","Sprang","Sprundel","Spurkt","Stad","Stadterij","Starten","Stations","Staverden","Stedum","Steeg","Steegh","Steel","Steen","Steenkamp","Steenoven","Steenpaal","Steensel","Steenvak","Stegen","Steger","Stegeren","Stein","Sterken","Sterre","Steurgat","Stevens","Stevert","Stiem","Stiens","Stitswerd","Stobben","Stokhem","Stokkelen","Stokkum","Stokske","Stokt","Stolpen","Stomme","Stoof","Stork","Stouten","Stox","Strand","Straten","Strateris","Streek","Strepen","Streukel","Strij","Strijen","Strijp","Stroet","Stroo","Stroopuit","Strubben","Strucht","Strype","Stuw","Sumar","Sumarre","Surhuizum","Susteren","Suttum","Suwâld","Swaenwert","Swalmen","Sweik","Syt","Sânfurd","Taarlo","Teeffelen","Teije","Teijl","Telgt","Tempel","Ter","Terband","Terblijt","Terdiek","Tereyken","Tergêft","Terhagen","Terheijl","Terherne","Terkaple","Terlet","Terlinden","Termaar","Termoors","Termunten","Termunter","Ternaard","Teroele","Terover","Tersoal","Tervaten","Tervoorst","Tervoort","Terwispel","Terwolde","Terziet","Teuge","Theetuin","Themaat","Tholen","Thull","Thuserhof","Tibma","Tiel","Tielse","Tiggelt","Tijnje","Tike","Til","Timmer","Tippe","Tjaard","Tjams","Tjerkwerd","Tjoene","Tolbert","Tolkamer","Tommel","Tongeren","Tongerlo","Tonsel","Toom","Toornwerd","Top","Toren","Toterfout","Toven","Tragel","Tranendal","Trege","Trent","Tricht","Triemen","Trimpert","Trintelen","Tritzum","Tronde","Trophorne","Trutjes","Tuil","Tull","Tungelroy","Turns","Tusschen","Tuut","Tuuthees","Twee","Tweedeweg","TweeTol","Twekkelo","Twello","Twijzel","Twijzeler","Twisk","Tynaarlo","Tytsjerk","Ubach","Ubbena","Ubber","Uddel","Uffelsen","Uffelte","Uit","Uiter","Uithoorn","Uitwierde","Ulfter","Ulicoten","Ulrum","Ulsda","Ulvend","Unga","Uppel","Usquert","Usselo","Vaals","Vaar","Vaarle","Vaart","Vaesrade","Valk","Valken","Valom","Valsteeg","Varik","Varsen","Varssel","Vebenabos","Vecht","Veecaten","Veele","Veeler","Veen","Veenhof","Veenhoop","Veenhuis","Veere","Veessen","Veghel","Veld","Veldbraak","Velde","Velden","Veldhuis","Veldzicht","Velp","Velsen","Veluwe","Vemde","Ven","Venbe","Vene","Venekoten","Venlo","Venne","Venray","Venweg","Vergelt","Verloren","Vessem","Vestjens","Vet","Vetterik","Veulen","Vianen","Viel","Vier","Vierhuis","Vijcie","Vijf","Vilgert","Vilsteren","Vilt","Vink","Vinkel","Vinken","Vinkepas","Vis","Visschers","Vissers","Vlaas","Vlake","Vlas","Vledder","Vleet","Vleuten","Vlie","Vliegert","Vlieghuis","Vlijmen","Vliss","Vlist","Vlodrop","Vloei","Vloet","Vlootkant","Vogelfort","Volthe","Voor","Voorne","Voorrijp","Voorst","Voorstad","Voorste","Voorster","Voort","Voortje","Voorweg","Vorchten","Vorst","Vorsten","Voske","Voskuil","Vosse","Vossebelt","Vosselen","Vossen","Voulwames","Vrachelen","Vragender","Vredepeel","Vree","Vries","Vriezen","Vrij","Vrijhoeve","Vrilk","Vroe","Vroelen","Vuile","Vuilpan","Vuren","Waaksens","Waal","Waar","Waard","Waarde","Waarden","Waarder","Waatskamp","Wachtum","Waddinx","Wadway","Wadwerd","Wagen","Waije","Walder","Walik","Walsert","Wammert","Wanneper","Wanroij","Wapen","Wapse","Wapser","Warf","Warffum","Warfster","Warmen","Warmond","Warnia","Warstiens","Warten","Waspik","Water","Wateren","Waterkant","Waterop","Waterval","Waver","Weakens","Wedde","Wedder","Wee","Weeg","Weende","Weerd","Weerdinge","Weere","Weert","Weerwille","Wehe","Wehl","Weidum","Weij","Weijer","Weijpoort","Weilens","Weimeren","Weipoort","Weite","Weitemans","Weiwerd","Wekerom","Wele","Wells","Welsum","Wely","Wenum","Weper","Wercheren","Weren","Wergea","Werk","Wernhouts","Wesch","Wessing","Wessinge","West","Westeneng","Wester","Westerein","Westerlee","Westernie","Westerse","Westhim","Westlaren","Westmaas","Westrik","Wetering","Wetsens","Weurt","Wevers","Weverslo","Wezel","Wezep","Wezup","Wezuper","Wielder","Wieler","Wielse","Wiene","Wierren","Wierum","Wiesel","Wieuwens","Wijchen","Wijnaldum","Wijnb","Wijnje","Wijster","Wijthmen","Wijzend","Wilderhof","Wildert","Wilgen","Wilp","Wils","Wilsum","Winde","Windraak","Winkel","Winkels","Winssen","Winsum","Wintelre","Winthagen","Wirdum","Wisse","Wissel","Wissen","Witharen","Withuis","Witman","Witmarsum","Witrijt","Witte","Wittelte","Witten","Wiuwert","Wjelsryp","Woerd","Woerdense","Woezik","Wognum","Wolfers","Wolfhaag","Wolfhagen","Wolfheze","Wolfs","Wolfshuis","Wolling","Wolsum","Wommels","Wonne","Wons","Woord","Wopereis","Wordragen","Wormer","Worsum","Woubrugge","Wouwse","Wulpenbek","Wyns","Wytgaard","Wâldsein","Wânswert","Yerseke","Yndyk","Zaamslag","Zaarvlaas","Zalk","Zand","Zande","Zandfort","Zandkant","Zandoerle","Zandplaat","Zandpol","Zandput","Zandvoort","Zee","Zeegat","Zeegse","Zeerijp","Zeesse","Zegge","Zeijen","Zeijer","Zeist","Zelder","Zelen","Zelt","Zenderen","Zethuis","Zeven","Zevenhuis","Zierikzee","Zieuwent","Zijder","Zijdewind","Zijp","Zijper","Zijtaart","Zilven","Zinkweg","Zittard","Zoeke","Zoelen","Zoelmond","Zoerte","Zoeter","Zoggel","Zomerven","Zond","Zorgvlied","Zoutkamp","Zuid","Zuider","Zuidhorn","Zuidlaren","Zuidwolde","Zuidzande","Zuidzijde","Zuilichem","Zundert","Zurich","Zutphen","Zuuk","Zwaag","Zwager","Zwanegat","Zwart","Zwarte","Zweek","Zwiggelte","Zwijn","Zwinderen","Zwolle"]})(ONn);var vHa=ONn.exports,LNn={exports:{}};(function(t){t.exports=[" aan de IJssel"," aan de Rijn","ambacht","beek","berg","bergen","bosch","broek","brug","buren","burg","buurt","dam","dijk","dijke","donk","dorp","eind","enmaes","gat","geest","heide","hoek","horst","hout","hoven","huizen","ingen","kerk","laar","land","meer","recht","schoten","sluis","stroom","swaerd","veen","veld","vliet","weer","wier","wijk","woud","woude","zijl",""]})(LNn);var AHa=LNn.exports,BNn={exports:{}};(function(t){t.exports=["#{city_prefix}#{city_suffix}","#{city_prefix}"]})(BNn);var yHa=BNn.exports,DNn={exports:{}};(function(t){t.exports=["Afghanistan","Akrotiri","Albanië","Algerije","Amerikaanse Maagdeneilanden","Amerikaans-Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua en Barbuda","Argentinië","Armenië","Aruba","Ashmore and Cartier Islands","Atlantic Ocean","Australië","Azerbeidzjan","Bahama's","Bahrein","Bangladesh","Barbados","Belarus","België","Belize","Benin","Bermuda","Bhutan","Bolivië","Bosnië-Herzegovina","Botswana","Bouvet Island","Brazilië","British Indian Ocean Territory","Britse Maagdeneilanden","Brunei","Bulgarije","Burkina Faso","Burundi","Cambodja","Canada","Caymaneilanden","Centraal-Afrikaanse Republiek","Chili","China","Christmas Island","Clipperton Island","Cocos (Keeling) Islands","Colombia","Comoren (Unie)","Congo (Democratische Republiek)","Congo (Volksrepubliek)","Cook","Coral Sea Islands","Costa Rica","Cuba","Cyprus","Denemarken","Dhekelia","Djibouti","Dominica","Dominicaanse Republiek","Duitsland","Ecuador","Egypte","El Salvador","Equatoriaal-Guinea","Eritrea","Estland","Ethiopië","European Union","Falkland","Faroe Islands","Fiji","Filipijnen","Finland","Frankrijk","Frans-Polynesië","Gabon","Gambia","Gaza Strip","Georgië","Ghana","Gibraltar","Grenada","Griekenland","Groenland","Guam","Guatemala","Guernsey","Guinea","Guinee-Bissau","Guyana","Haïti","Heard Island and McDonald Islands","Vaticaanstad","Honduras","Hongarije","Hongkong","Ierland","IJsland","India","Indonesië","Irak","Iran","Isle of Man","Israël","Italië","Ivoorkust","Jamaica","Jan Mayen","Japan","Jemen","Jersey","Jordanië","Kaapverdië","Kameroen","Kazachstan","Kenia","Kirgizstan","Kiribati","Koeweit","Kroatië","Laos","Lesotho","Letland","Libanon","Liberia","Libië","Liechtenstein","Litouwen","Luxemburg","Macao","Macedonië","Madagaskar","Malawi","Maldiven","Maleisië","Mali","Malta","Marokko","Marshall Islands","Mauritanië","Mauritius","Mayotte","Mexico","Micronesië","Moldavië","Monaco","Mongolië","Montenegro","Montserrat","Mozambique","Myanmar","Namibië","Nauru","Navassa Island","Nederland","Aruba","St. Maarten","Curacao","Nepal","Ngwane","Nicaragua","Nieuw-Caledonië","Nieuw-Zeeland","Niger","Nigeria","Niue","Noordelijke Marianen","Noord-Korea","Noorwegen","Norfolk Island","Oekraïne","Oezbekistan","Oman","Oostenrijk","Pakistan","Palau","Panama","Papoea-Nieuw-Guinea","Paracel Islands","Paraguay","Peru","Pitcairn","Polen","Portugal","Puerto Rico","Qatar","Roemenië","Rusland","Rwanda","Saint Helena","Saint Lucia","Saint Vincent en de Grenadines","Saint-Pierre en Miquelon","Salomon","Samoa","San Marino","São Tomé en Principe","Saudi-Arabië","Senegal","Servië","Seychellen","Sierra Leone","Singapore","Sint-Kitts en Nevis","Slovenië","Slowakije","Soedan","Somalië","South Georgia and the South Sandwich Islands","Southern Ocean","Spanje","Spratly Islands","Sri Lanka","Suriname","Svalbard","Syrië","Tadzjikistan","Taiwan","Tanzania","Thailand","Timor Leste","Togo","Tokelau","Tonga","Trinidad en Tobago","Tsjaad","Tsjechië","Tunesië","Turkije","Turkmenistan","Turks-en Caicoseilanden","Tuvalu","Uganda","Uruguay","Vanuatu","Venezuela","Verenigd Koninkrijk","Verenigde Arabische Emiraten","Verenigde Staten van Amerika","Vietnam","Wake Island","Wallis en Futuna","Wereld","West Bank","Westelijke Sahara","Zambia","Zimbabwe","Zuid-Afrika","Zuid-Korea","Zweden","Zwitserland"]})(DNn);var bHa=DNn.exports,$Nn={exports:{}};(function(t){t.exports=["#","##","###","###a","###b","###c","### I","### II","### III"]})($Nn);var xHa=$Nn.exports,FNn={exports:{}};(function(t){t.exports=["straat","laan","weg","plantsoen","park","gracht","dijk"]})(FNn);var EHa=FNn.exports,jNn={exports:{}};(function(t){t.exports=["1 hoog","2 hoog","3 hoog","3 hoog achter"]})(jNn);var SHa=jNn.exports,HNn={exports:{}};(function(t){t.exports=["#{Name.first_name}#{street_suffix}","#{Name.last_name}#{street_suffix}"]})(HNn);var wHa=HNn.exports,UNn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(UNn);var _Ha=UNn.exports,zNn={exports:{}};(function(t){t.exports=["#### ??"]})(zNn);var THa=zNn.exports,GNn={exports:{}};(function(t){t.exports=["Noord-Holland","Zuid-Holland","Utrecht","Zeeland","Overijssel","Gelderland","Drenthe","Friesland","Groningen","Noord-Brabant","Limburg","Flevoland"]})(GNn);var CHa=GNn.exports,VNn={exports:{}};(function(t){t.exports=["Nederland"]})(VNn);var kHa=VNn.exports;(function(t){var e={};t.exports=e,e.city_prefix=vHa,e.city_suffix=AHa,e.city=yHa,e.country=bHa,e.building_number=xHa,e.street_suffix=EHa,e.secondary_address=SHa,e.street_name=wHa,e.street_address=_Ha,e.postcode=THa,e.state=CHa,e.default_country=kHa})(PNn);var RHa=PNn.exports,KNn={exports:{}},WNn={exports:{}};(function(t){t.exports=["rood","groen","blauw","koningblauw","geel","purper","muntgroen","groenblauw","wit","zwart","oranje","roze","grijs","donkergrijs","oker","terracotta","kastanjebruin","paars","turkoois","bruin","hemelsblauw","zalmroze","oudroze","appelgroen","levend wit","olijfgroen","magenta","limoen","ivoor","indigo","goud","fuchsia","cyaan","azuurblauw","lavendel","zilver"]})(WNn);var MHa=WNn.exports,QNn={exports:{}};(function(t){t.exports=["Boeken","Films","Muziek","Spelletjes","Elektronica","Computers","Huis","Tuin","Gereedschap","Kruiden","Gezondheid","Beauty","Speelgoed","Kinderen","Baby","Kleding","Schoenen","Sieraden","Sport","Verzorging","Auto","Industrieel"]})(QNn);var NHa=QNn.exports,qNn={exports:{}};(function(t){t.exports={adjective:["Klein","Ergonomisch","Rustiek","Intelligent","Prachtig","Ongelooflijk","Fantastisch","Praktisch","Slank","Geweldig","Algemeen","Handgemaakt","Ambachtelijk","Artistiek","Verantwoord","Uitgekiend","Zeldzaam","Verfijnd","Merkloos","Smakelijk"],material:["Staal","Glazen","Wollen","Houten","Beton","Plastic","Katoenen","Granieten","Rubberen","IJzeren","Zachte","Verse","Bevroren"],product:["Stoel","Auto","Computer","Toetsenbord","Muis","Fiets","Bal","Handschoenen","Broek","Shirt","Tafel","Bijzettafeltje","Boekenkast","Kaasschaaf","Leunstoel","Poef","Hangmat","Trui","Schoenen","Hoed","Handdoeken","Zeep","Tonijn","Kip","Vis","Kaas","Spek","Pizza","Salade","Worstjes","Chips"]}})(qNn);var IHa=qNn.exports;(function(t){var e={};t.exports=e,e.color=MHa,e.department=NHa,e.product_name=IHa})(KNn);var PHa=KNn.exports,YNn={exports:{}},JNn={exports:{}};(function(t){t.exports=["BV","V.O.F.","Groep","NV","Bedrijf","en Zonen","Combinatie"]})(JNn);var OHa=JNn.exports;(function(t){var e={};t.exports=e,e.suffix=OHa})(YNn);var LHa=YNn.exports,ZNn={exports:{}},XNn={exports:{}};(function(t){t.exports={wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],wide_context:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],abbr:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],abbr_context:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"]}})(XNn);var BHa=XNn.exports,eIn={exports:{}};(function(t){t.exports={wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],wide_context:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],abbr:["zo","ma","di","wo","do","vr","za"],abbr_context:["zo","ma","di","wo","do","vr","za"]}})(eIn);var DHa=eIn.exports;(function(t){var e={};t.exports=e,e.month=BHa,e.weekday=DHa})(ZNn);var $Ha=ZNn.exports,tIn={exports:{}},nIn={exports:{}};(function(t){t.exports=["ondersteunende","primaire","onderliggende","digitale","open source","virtuele","cross-platform","overtollige","online","haptische","multi-byte","Bluetooth","draadloze","minuscule","neurale","optische","solid state","mobiele","cruciale","kostbare","verwaarloosde","smakelijke"]})(nIn);var FHa=nIn.exports,rIn={exports:{}};(function(t){t.exports=["driver","protocol","bandbreedte","paneel","microchip","programma","port","kaart","array","verbinding","draad","stekker","systeem","sensor","firewall","harde schijf","pixel","alarm","voeding","monitor","toepassing","zender","bus","stroomkring","condensator","matrix"]})(rIn);var jHa=rIn.exports,iIn={exports:{}};(function(t){t.exports=["back-uppen","omzeilen","hacken","overschrijven","samenpersen","kopiëren","navigeren","indexeren","aansluiten","genereren","kwantificeren","berekenen","samenstellen","invoeren","verzenden","programmeren","herstarten","ontleden","in stukjes snijden","analyseren"]})(iIn);var HHa=iIn.exports,aIn={exports:{}};(function(t){t.exports=["Als we de {{noun}} {{verb}}, dan kunnen we naar de {{abbreviation}} {{noun}} via de {{adjective}} {{abbreviation}} {{noun}}!","We moeten de {{adjective}} {{abbreviation}} {{noun}} {{verb}}!","Probeer om de {{abbreviation}} {{noun}} te {{verb}}, misschien gaat dat de {{adjective}} {{noun}} {{verb}}!","Je kan de {{noun}} niet {{verb}} zonder de {{adjective}} {{abbreviation}} {{noun}} te {{verb}}!","Gebruik de {{adjective}} {{abbreviation}} {{noun}}, dan kan je de {{adjective}} {{noun}} {{verb}}!","De {{abbreviation}} {{noun}} ligt eruit, jullie moeten de {{adjective}} {{noun}} {{verb}} zodat we de {{abbreviation}} {{noun}} kunnen {{verb}}!","Het maakt niet uit of we de {{noun}} {{verb}}, we moeten de {{adjective}} {{abbreviation}} {{noun}} {{verb}}!","Ik ga de {{adjective}} {{abbreviation}} {{noun}} {{verb}}, dat zou de {{noun}} moeten {{verb}}!"]})(aIn);var UHa=aIn.exports;(function(t){var e={};t.exports=e,e.adjective=FHa,e.noun=jHa,e.verb=HHa,e.phrase=UHa})(tIn);var zHa=tIn.exports,oIn={exports:{}},sIn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(sIn);var GHa=sIn.exports,lIn={exports:{}};(function(t){t.exports=["nl","com","net","org","eu"]})(lIn);var VHa=lIn.exports;(function(t){var e={};t.exports=e,e.free_email=GHa,e.domain_suffix=VHa})(oIn);var KHa=oIn.exports,cIn={exports:{}},uIn={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(uIn);var WHa=uIn.exports;(function(t){var e={};t.exports=e,e.words=WHa})(cIn);var QHa=cIn.exports,dIn={exports:{}},hIn={exports:{}};(function(t){t.exports=["Yarah","Vere","Siënna","Sanna","Salomë","Roxy","Nela","Myra","Liene","Lia","Kayleigh","Kaylee","Kato","Florence","Eefje","Dieke","Zeyneb","Wende","Vienna","Melisa","Maaike","Lova","Lilian","Juno","Joanna","Jesslyn","Jaelynn","Gioia","Claire","Alma","Aliya","Alisa","Zofia","Vivian","Nowi","Noami","Milana","Marlie","Macy","Maan","Lorena","Liselotte","Lien","Laure","Laila","Kim","Khadija","Joya","Jacoba","Gigi","Wilhelmina","Vivienne","Rose","Rana","Milly","Michelle","Marrit","Malou","Jaimy","Gaia","Fayen","Fabiënne","Eveline","Daisy","Babette","Aaltje","Scottie","Nomi","Mathilde","Linne","Laurie","Kyara","Jalou","Iva","Inara","Grace","Emmy","Elle","Diana","Céline","Selena","Safiya","Quinty","Oliwia","Nadine","Meghan","Marwa","Jada","Ines","Fardau","Eliana","Carmen","Ayana","Asya","Annabel","Amara","Alexandra","Rachel","Melissa","Melina","Luus","Jayda","Jacky","Eleonora","Asiya","Annemijn","Sare","Ninthe","Nena","Melody","Kira","Jasmine","Imani","Hira","Elynn","Dominique","Ashley","Aleyna","Pola","Noë","Lisanne","Lilou","Kiara","Jette","Jess","Isabeau","Floortje","Fiep","Fieke","Femm","Famke","Chelsey","Amelie","Vanessa","Skye","Sienna","Safa","Lydia","Esma","Daantje","Catharina","Carlijn","Asel","Amaya","Amalia","Ada","Zahra","Tirza","Nikkie","Mirre","Mayra","Lenne","Jule","Jana","Farah","Defne","Ariana","Yenthe","Renske","Medina","Liliana","Kenza","Jazz","Esra","Emilie","Dua","Chloe","Abby","Selma","Maren","Jolijn","Febe","Elodie","Djenna","Diede","Cataleya","Aliyah","Aisha","Teddy","Nika","Myla","Izzy","Dewi","Mirte","Mikki","Kensi","Karlijn","Jazzlynn","Imke","Eleanor","Wies","Thirza","Safae","Meyra","Lune","Jazzlyn","Faya","Arya","Nadia","Puk","Oumayra","Lois","Josefien","Vive","Fayenne","Celine","Nynke","Loes","Danique","Aurora","Angelina","Alya","Abigail","Tara","Quinn","Meike","Maartje","Jolien","Selina","Phileine","Miley","Lexie","Florine","Coco","Britt","Alyssa","Yasmine","Sammie","Nila","Lucie","Eef","Bella","Aylin","Ziva","Neeltje","Jesslynn","Jente","Jara","Bobbie","Yinthe","Megan","Freya","Donna","Alice","Milena","Joëlle","Jenna","Evelien","Nisa","Lott","Loa","Daphne","Dani","Maysa","Hidaya","Hayley","Gwen","Esther","Elize","Dana","Maxime","Madelief","Keet","Jip","Ize","Noëlla","Layla","Hendrika","Hafsa","Giulia","Eliza","Bowie","Marly","Linn","Jane","Filou","Zuzanna","Leyla","Fatima","Evie","Marley","Kyra","Hanne","Jailey","Ise","Adriana","Liza","Doris","Dina","Amina","Mina","Aaliyah","Romee","Pippa","Juliette","Alicia","Merle","Lea","Elina","Sena","Flore","Riley","Nour","Lizz","Jessie","Cornelia","Beau","Valerie","Silke","Valentina","Loua","Vieve","Vesper","Ruby","Nienke","Jula","Azra","Myrthe","Soof","Juliëtte","Lexi","Davina","Liya","Yasmin","Esmée","Amelia","Niene","Mette","Ela","Aimée","Joy","Ilse","Zeynep","Yfke","Elizabeth","Mare","Isra","Helena","Stella","Jinthe","Meryem","Janna","Isabelle","Maja","Lieve","Yuna","Pien","Faye","Pleun","Noortje","Janne","Novi","Ava","Sterre","Maeve","Elisabeth","Bibi","Ayla","Liyana","Mae","Leah","Marie","Juna","Lucy","Josephine","Victoria","Indy","Maryam","Jaylinn","Zoey","Rosie","Mira","Nore","Jinte","Zara","Bente","Senna","Pip","Alina","Féline","Aya","Anouk","Amélie","Lou","Nine","Jet","Robin","Nikki","June","Fem","Demi","Mirthe","Lana","Noëlle","Lise","Lilly","Jackie","Benthe","Bobbi","Fiene","Elisa","Maya","Jade","Emilia","Elif","Romy","Lot","Jolie","Guusje","Mara","Kate","Marit","Nola","Louise","Lola","Laura","Iris","Philou","Tessa","Inaya","Elise","Eline","Sam","Evy","Johanna","Femke","Charlie","Livia","Rosalie","Suus","Sanne","Fay","Fenne","Linde","Isabel","Puck","Lize","Rosa","Amira","Lily","Naomi","Lizzy","Liva","Juul","Jill","Hanna","Floor","Amber","Suze","Veerle","Merel","Anne","Cato","Charlotte","Kiki","Lena","Ivy","Feline","Jasmijn","Liz","Elena","Maria","Norah","Lara","Fien","Isabella","Luna","Amy","Sophia","Hailey","Bo","Vera","Julie","Lisa","Esmee","Noa","Ella","Lina","Mia","Sofia","Loïs","Hannah","Roos","Emily","Isa","Fenna","Elin","Fleur","Lynn","Sarah","Nova","Nina","Maud","Sofie","Milou","Lauren","Lotte","Eva","Noor","Liv","Yara","Olivia","Lieke","Nora","Saar","Evi","Anna","Sara","Tess","Julia","Zoë","Sophie","Mila","Emma"]})(hIn);var qHa=hIn.exports,fIn={exports:{}};(function(t){t.exports=["Amber","Anna","Anne","Anouk","Bas","Bram","Britt","Daan","Emma","Eva","Femke","Finn","Fleur","Iris","Isa","Jan","Jasper","Jayden","Jesse","Johannes","Julia","Julian","Kevin","Lars","Lieke","Lisa","Lotte","Lucas","Luuk","Maud","Max","Mike","Milan","Nick","Niels","Noa","Rick","Roos","Ruben","Sander","Sanne","Sem","Sophie","Stijn","Sven","Thijs","Thijs","Thomas","Tim","Tom"]})(fIn);var YHa=fIn.exports,pIn={exports:{}};(function(t){t.exports=["van","van de","van den","van 't","van het","de","den"]})(pIn);var JHa=pIn.exports,mIn={exports:{}};(function(t){t.exports=["Bakker","Beek","Berg","Boer","Bos","Bosch","Brink","Broek","Brouwer","Bruin","Dam","Dekker","Dijk","Dijkstra","Graaf","Groot","Haan","Hendriks","Heuvel","Hoek","Jacobs","Jansen","Janssen","Jong","Klein","Kok","Koning","Koster","Leeuwen","Linden","Maas","Meer","Meijer","Mulder","Peters","Ruiter","Schouten","Smit","Smits","Stichting","Veen","Ven","Vermeulen","Visser","Vliet","Vos","Vries","Wal","Willems","Wit"]})(mIn);var ZHa=mIn.exports,gIn={exports:{}};(function(t){t.exports=["Tymon","Steven","Semih","Seff","Sabir","Nico","Naoufal","Nadir","Mirza","Miguel","Manoah","Kenji","Kenan","Joseph","Jordy","Jeppe","Diego","Coen","Can","Bentley","Yasin","Tomas","Sjoerd","Savi","Safouane","Raphaël","Mas","Maes","Louie","Karam","John","Jelmer","Jayvano","Hein","Giel","Emin","Deen","Badr","Arda","Umut","Teunis","Silas","Rayen","Nikodem","Mex","Marius","Kayden","Jidde","Glenn","Frederik","Foss","Finnley","Ensar","Duco","Dies","Brenn","Yousef","Siep","Rohan","Osman","Nox","Natan","Mathijs","Marley","Jaxon","Jairo","Jaimy","Eray","Don","Chase","Bruno","Brian","Anton","Xander","Senne","Reza","Oliwier","Mitch","Krijn","Jorrit","Jimi","Dominik","Devin","Tobin","Stefan","Jakob","Igor","Giovanni","Dylano","Armin","Adrian","Youp","Sebas","Sander","Robert","Nils","Mozes","Micah","Menno","Jaylano","Ilias","Freek","Flip","Dion","Christopher","Ahmet","Yassir","Yannick","Valentino","Samuël","Noam","Mylan","Kenzo","Jona","Danilo","Bowie","Zain","Wolf","Thije","Theo","Mylo","Matz","Lieuwe","Joes","Jacobus","Idris","Gideon","Bruce","Abdullah","Zef","Viktor","Seb","Rover","Raphael","Kacper","Josh","Jeremiah","Deniz","Aleksander","Zev","Yves","Viggo","Naoufel","Matthew","Keano","Jaylen","Bo","Bjorn","Anouar","Abraham","Storm","Martin","Manu","Jefta","Djayden","Benyamin","Benja","Ahmad","Nino","Malik","Junayd","Isa","Finley","Ayman","Zeyd","Yassine","Sev","Rico","Mels","Maximilian","Leendert","Kick","Enzo","Sjors","Silvan","Peter","Otto","Milano","Marijn","Javi","Yahya","Wes","Toon","Tommy","Loet","Leonardo","Len","Kaan","Dax","Davy","Adriaan","Thiago","Mustafa","Merijn","Kerem","Johan","Isaiah","Bryan","Bastiaan","Axel","Toby","Thom","Noan","Marcus","Ismail","Davi","Bodi","Tieme","Ole","Nout","Musa","Moussa","Luciano","Liyam","Kyano","Dorian","Bradley","Wouter","Siebe","Ralph","Quin","Fender","Arie","Albert","Zion","Wessel","Rick","Miles","Mahir","Mads","Klaas","Flynn","Dexx","Anthony","Tristan","Mink","Mehmet","Maas","Lyam","Jorn","Joost","Christian","Alparslan","Tyler","Maher","Jakub","Alan","William","Rafaël","Jur","Jimmy","George","Christiaan","Brandon","Ace","Tibbe","Sebastian","Lorenzo","Bilal","Teije","Joe","Michael","Louay","Lou","Levy","Kevin","Isaac","Ilay","Harvey","Davey","Younes","Xem","Tycho","Seppe","Riv","Marinus","Maarten","Ayoub","Ahmed","Tuur","Tijmen","Kjeld","Fynn","Frenkie","Dante","Ayaz","Abe","Jackson","Bart","Xavier","Ted","Sebastiaan","Safouan","Midas","Gabriël","Fos","Douwe","Boet","Berend","Yassin","Rowan","Revi","Maurits","Marcel","Ivo","Eli","Shane","Rein","Muhammad","Lennox","Ivar","Huub","Tijs","Matthias","Juda","Dave","Antoni","Damin","Colin","Zakaria","Vincent","Sverre","Mik","Lennon","Donny","Thijn","Novan","Mart","Bob","Senna","Olaf","Mohammad","Julan","Riff","Jaivey","Collin","Nouri","Noël","Ferre","Mert","Boas","Sten","Gabriel","Pelle","Mark","Leo","Rafael","Oskar","Naud","Aras","Sami","Kasper","Jop","Ethan","Dirk","Bodhi","Eden","Bobby","Jordan","Ivan","Vinz","Twan","Odin","Manuel","Jesper","Scott","Raff","Luke","Brent","Zayd","Sil","Miran","Charlie","Amin","Valentijn","Eymen","Jules","Kees","Jayce","Matteo","Chris","Quinten","Mateo","Lux","Justin","Joey","Jay","Ayden","Laurens","Luka","Joah","Gerrit","Evan","Ben","Jari","Mika","Kian","Ian","Ilyas","Jort","Mike","Maxim","Ibrahim","Vigo","Victor","Louis","Jayson","Florian","Youssef","Vic","Raf","Filip","Yusuf","Timo","Vik","Micha","Matthijs","Lasse","Faas","Riley","Mace","Daniel","Jamie","Fabian","Nick","Muhammed","Luc","Imran","Joël","Niels","Philip","Milo","Lewis","Wout","Leon","Joas","Jasper","Seth","Omar","Koen","Julius","Beau","Rens","Mayson","Kay","Hamza","Daley","Robin","Nolan","Cornelis","Bas","Lukas","Jonathan","Jonas","Ali","Ravi","Hendrik","Sef","Lex","Thijmen","Damian","Arthur","Aron","Emir","Jonah","Ãmer","Jelte","Melle","Jacob","Alex","Jim","Elijah","Stef","Kaj","Johannes","Jelle","Joris","Jip","Aaron","Loek","Logan","Lev","Dylan","Simon","Kyan","Sep","Moos","Felix","Job","Elias","Ezra","Oscar","Casper","Duuk","Sepp","Pieter","Rayan","Aiden","Joshua","Dean","Niek","Lenn","Tygo","Jake","Stan","Kai","Roan","Mick","Mohammed","Dani","Nathan","Oliver","Alexander","Mohamed","Hidde","Samuel","Zayn","Amir","Xavi","Jurre","Boris","Senn","Jason","Pepijn","Quinn","Pim","Jace","Jax","Tijn","Tim","Willem","Jaxx","Otis","Fedde","Tom","Owen","Ryan","Tobias","Floris","Abel","Jayden","Sven","Morris","Cas","Ties","Daniël","Joep","Jan","Jens","Vince","Dex","Ruben","Olivier","Guus","Thijs","Stijn","Jack","David","Teun","Hugo","Mats","Gijs","Lars","Luca","Siem","Mason","Julian","Boaz","Benjamin","Thomas","Max","Adam","Jesse","Mees","Sam","Noud","Bram","Luuk","Milan","James","Liam","Finn","Sem","Levi","Lucas","Daan","Noah"]})(gIn);var XHa=gIn.exports,vIn={exports:{}};(function(t){t.exports=["Dhr.","Mevr. Dr.","Bsc","Msc","Prof."]})(vIn);var eUa=vIn.exports,AIn={exports:{}};(function(t){t.exports=["Jr.","Sr.","I","II","III","IV","V"]})(AIn);var tUa=AIn.exports,yIn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name} #{suffix}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{tussenvoegsel} #{last_name}","#{first_name} #{tussenvoegsel} #{last_name}"]})(yIn);var nUa=yIn.exports;(function(t){var e={};t.exports=e,e.female_first_name=qHa,e.first_name=YHa,e.tussenvoegsel=JHa,e.last_name=ZHa,e.male_first_name=XHa,e.prefix=eUa,e.suffix=tUa,e.name=nUa})(dIn);var rUa=dIn.exports,bIn={exports:{}},xIn={exports:{}};(function(t){t.exports=["(####) ######","##########","06########","06 #### ####"]})(xIn);var iUa=xIn.exports;(function(t){var e={};t.exports=e,e.formats=iUa})(bIn);var aUa=bIn.exports;(function(t){var e={};t.exports=e,e.title="Dutch",e.address=RHa,e.commerce=PHa,e.company=LHa,e.date=$Ha,e.hacker=zHa,e.internet=KHa,e.lorem=QHa,e.name=rUa,e.phone_number=aUa})(INn);var oUa=INn.exports,EIn={exports:{}},SIn={exports:{}},wIn={exports:{}};(function(t){t.exports=["'s Herenelderen","'s-Gravenvoeren","'s-Gravenwezel","Aaigem","Aalbeke","Aalst","Aalst","Aalter","Aarschot","Aarsele","Aartrijke","Aartselaar","Achel","Adegem","Adinkerke","Afsnee","Alken","Alsemberg","Alveringem","Antwerpen","Anzegem","Appels","Appelterre-Eichem","Ardooie","Arendonk","As","Aspelare","Asper","Asse","Assebroek","Assenede","Assent","Astene","Attenhoven","Attenrode-Wever","Avekapelle","Avelgem","Averbode","Baaigem","Baal","Baardegem","Baarle-Hertog","Baasrode","Bachte-Maria-Leerne","Balegem","Balen","Bambrugge","Bassevelde","Batsheers","Bavegem","Bavikhove","Bazel","Beek","Beerlegem","Beernem","Beerse","Beersel","Beerst","Beert","Beervelde","Beerzel","Begijnendijk","Beigem","Bekegem","Bekkerzeel","Bekkevoort","Bellegem","Bellem","Bellingen","Belsele","Berbroek","Berchem","Berchem","Berendrecht-Zandvliet-Lillo","Berg","Berg","Beringen","Berlaar","Berlare","Berlingen","Bertem","Beselare","Betekom","Bevel","Bever","Bevere","Beveren","Beveren","Beveren","Beveren","Beverlo","Beverst","Bierbeek","Bikschote","Bilzen","Binderveld","Binkom","Bissegem","Blaasveld","Blanden","Blankenberge","Bocholt","Boechout","Boekhout","Boekhoute","Boezinge","Bogaarden","Bommershoven","Bonheiden","Booischot","Booitshoeke","Boom","Boorsem","Boortmeerbeek","Borchtlombeek","Borgerhout","Borgloon","Borlo","Bornem","Borsbeek","Borsbeke","Bossuit","Bost","Bottelare","Boutersem","Bouwel","Bovekerke","Brasschaat","Brecht","Bredene","Bree","Breendonk","Brielen","Broechem","Broekom","Brugge","Brussegem","Brustem","Budingen","Buggenhout","Buizingen","Buken","Bulskamp","Bunsbeek","Burcht","Burst","Buvingen","Dadizele","Daknam","Damme","De Klinge","De Moeren","De Panne","De Pinte","Deerlijk","Deftinge","Deinze","Denderbelle","Denderhoutem","Denderleeuw","Dendermonde","Denderwindeke","Dentergem","Dessel","Desselgem","Destelbergen","Desteldonk","Deurle","Deurne","Deurne","Diegem","Diepenbeek","Diest","Diets-Heur","Dikkebus","Dikkele","Dikkelvenne","Diksmuide","Dilbeek","Dilsen","Doel","Donk","Dormaal","Dranouter","Drieslinter","Drogenbos","Drongen","Dudzele","Duffel","Duisburg","Duras","Dworp","Edegem","Edelare","Eeklo","Eernegem","Egem","Eggewaartskapelle","Eigenbilzen","Eindhout","Eine","Eisden","Eke","Ekeren","Eksaarde","Eksel","Elen","Elene","Elewijt","Eliksem","Elingen","Ellikom","Elsegem","Elst","Elverdinge","Elversele","Emblem","Emelgem","Ename","Engelmanshoven","Eppegem","Erembodegem","Erondegem","Erpe","Erps-Kwerps","Ertvelde","Erwetegem","Esen","Essen","Essene","Etikhove","Ettelgem","Everbeek","Everberg","Evergem","Ezemaal","Gaasbeek","Galmaarden","Gavere","Geel","Geetbets","Gelinden","Gellik","Gelrode","Geluveld","Geluwe","Genk","Genoelselderen","Gent","Gentbrugge","Geraardsbergen","Gerdingen","Gestel","Gierle","Gijverinkhove","Gijzegem","Gijzelbrechtegem","Gijzenzele","Gingelom","Gistel","Gits","Glabbeek-Zuurbemde","Godveerdegem","Goeferdinge","Goetsenhoven","Gontrode","Gooik","Gors-Opleeuw","Gorsem","Gotem","Gottem","Grammene","Grazen","Grembergen","Grimbergen","Grimminge","Grobbendonk","Groot-Bijgaarden","Groot-Gelmen","Groot-Loon","Grote-Brogel","Grote-Spouwen","Grotenberge","Gruitrode","Guigoven","Gullegem","Gutschoven","Haacht","Haaltert","Haasdonk","Haasrode","Hakendover","Halen","Hallaar","Halle","Halle","Halle-Booienhoven","Halmaal","Hamme","Hamme","Hamont","Handzame","Hansbeke","Harelbeke","Hasselt","Hechtel","Heers","Hees","Heestert","Heffen","Heikruis","Heindonk","Heist","Heist-op-den-Berg","Hekelgem","Heks","Helchteren","Heldergem","Helen-Bos","Helkijn","Hemelveerdegem","Hemiksem","Hendrieken","Henis","Heppen","Herderen","Herdersem","Herent","Herentals","Herenthout","Herfelingen","Herk-de-Stad","Herne","Herselt","Herstappe","Herten","Hertsberge","Herzele","Heule","Heurne","Heusden","Heusden","Hever","Heverlee","Hillegem","Hingene","Hoboken","Hoegaarden","Hoeilaart","Hoeke","Hoelbeek","Hoeleden","Hoepertingen","Hoeselt","Hoevenen","Hofstade","Hofstade","Hollebeke","Holsbeek","Hombeek","Hooglede","Hoogstade","Hoogstraten","Horpmaal","Houtave","Houtem","Houthalen","Houthulst","Houtvenne","Houwaart","Hove","Huise","Huizingen","Huldenberg","Hulshout","Hulste","Humbeek","Hundelgem","Ichtegem","Iddergem","Idegem","Ieper","Impe","Ingelmunster","Ingooigem","Itegem","Itterbeek","Izegem","Izenberge","Jabbeke","Jesseren","Jeuk","Kaaskerke","Kachtem","Kaggevinne","Kalken","Kallo","Kalmthout","Kampenhout","Kanegem","Kanne","Kapelle-op-den-Bos","Kapellen","Kapellen","Kaprijke","Kaster","Kasterlee","Kaulille","Keerbergen","Keiem","Kemmel","Kemzeke","Kerkhove","Kerkom","Kerkom-bij-Sint-Truiden","Kerksken","Kermt","Kerniel","Kersbeek-Miskom","Kessel","Kessel-Lo","Kessenich","Kester","Kieldrecht","Kinrooi","Klein-Gelmen","Kleine-Brogel","Kleine-Spouwen","Klemskerke","Klerken","Kluizen","Knesselare","Knokke","Kobbegem","Koekelare","Koersel","Koksijde","Koningshooikt","Koninksem","Kontich","Kooigem","Koolkerke","Koolskamp","Korbeek-Dijle","Korbeek-Lo","Kortemark","Kortenaken","Kortenberg","Kortessem","Kortijs","Kortrijk","Kortrijk-Dutsel","Kozen","Kraainem","Krombeke","Kruibeke","Kruishoutem","Kumtich","Kuringen","Kuttekoven","Kuurne","Kwaadmechelen","Kwaremont","Laar","Laarne","Lampernisse","Lanaken","Landegem","Landen","Landskouter","Langdorp","Langemark","Lanklaar","Lapscheure","Lauw","Lauwe","Lebbeke","Lede","Ledeberg","Ledegem","Leefdaal","Leerbeek","Leest","Leeuwergem","Leffinge","Leisele","Leke","Lembeek","Lembeke","Lemberge","Lendelede","Leopoldsburg","Letterhoutem","Leupegem","Leut","Leuven","Lichtaart","Lichtervelde","Liedekerke","Lieferinge","Lier","Liezele","Lille","Linden","Linkebeek","Linkhout","Lint","Lippelo","Lissewege","Lo","Lochristi","Loenhout","Loker","Lokeren","Loksbergen","Lombardsijde","Lommel","Londerzeel","Loonbeek","Loppem","Lot","Lotenhulle","Lovendegem","Lovenjoel","Lubbeek","Lummen","Maarke-Kerkem","Maaseik","Machelen","Machelen","Mal","Maldegem","Malderen","Mannekensvere","Mariakerke","Mariekerke","Marke","Markegem","Martenslinde","Massemen","Massenhoven","Mater","Mazenzele","Mechelen","Mechelen-Bovelingen","Mechelen-aan-de-Maas","Meensel-Kiezegem","Meer","Meerbeek","Meerbeke","Meerdonk","Meerhout","Meerle","Meeswijk","Meetkerke","Meeuwen","Meigem","Meilegem","Meise","Melden","Meldert","Meldert","Meldert","Melkwezer","Melle","Melsbroek","Melsele","Melsen","Membruggen","Mendonk","Menen","Merchtem","Mere","Merelbeke","Merendree","Merkem","Merksem","Merksplas","Mesen","Mespelare","Messelbroek","Mettekoven","Meulebeke","Michelbeke","Middelburg","Middelkerke","Mielen-boven-Aalst","Millen","Minderhout","Moelingen","Moen","Moerbeke","Moerbeke","Moere","Moerkerke","Moerzeke","Mol","Molenbeek-Wersbeek","Molenbeersel","Molenstede","Mollem","Montenaken","Moorsel","Moorsele","Moorslede","Moortsele","Mopertingen","Moregem","Morkhoven","Mortsel","Muizen","Muizen","Mullem","Munkzwalm","Munsterbilzen","Munte","Nazareth","Nederboelare","Nederbrakel","Nederename","Nederhasselt","Nederokkerzeel","Nederzwalm-Hermelgem","Neerglabbeek","Neerharen","Neerhespen","Neerijse","Neerlanden","Neerlinter","Neeroeteren","Neerpelt","Neerrepen","Neervelp","Neerwinden","Neigem","Nerem","Nevele","Niel","Niel-bij-As","Niel-bij-Sint-Truiden","Nieuwenhove","Nieuwenrode","Nieuwerkerken","Nieuwerkerken","Nieuwkapelle","Nieuwkerke","Nieuwkerken-Waas","Nieuwmunster","Nieuwpoort","Nieuwrode","Nijlen","Ninove","Nokere","Noorderwijk","Noordschote","Nossegem","Nukerke","Oedelem","Oekene","Oelegem","Oeren","Oeselgem","Oetingen","Oevel","Okegem","Olen","Olmen","Olsene","Onkerzele","Onze-Lieve-Vrouw-Lombeek","Onze-Lieve-Vrouw-Waver","Ooigem","Ooike","Oombergen","Oorbeek","Oordegem","Oostakker","Oostduinkerke","Oosteeklo","Oostende","Oosterzele","Oostham","Oostkamp","Oostkerke","Oostkerke","Oostmalle","Oostnieuwkerke","Oostrozebeke","Oostvleteren","Oostwinkel","Opbrakel","Opdorp","Opglabbeek","Opgrimbie","Ophasselt","Opheers","Ophoven","Opitter","Oplinter","Opoeteren","Oppuurs","Opvelp","Opwijk","Ordingen","Orsmaal-Gussenhoven","Otegem","Ottenburg","Ottergem","Oud-Heverlee","Oud-Turnhout","Oudegem","Oudekapelle","Oudenaarde","Oudenaken","Oudenburg","Outer","Outgaarden","Outrijve","Ouwegem","Overboelare","Overhespen","Overijse","Overmere","Overpelt","Overrepen","Overwinden","Paal","Pamel","Parike","Passendale","Paulatem","Peer","Pellenberg","Pepingen","Perk","Pervijze","Petegem-aan-de-Leie","Petegem-aan-de-Schelde","Peutie","Piringen","Pittem","Poederlee","Poeke","Poelkapelle","Poesele","Pollare","Pollinkhove","Poperinge","Poppel","Proven","Pulderbos","Pulle","Putte","Puurs","Ramsdonk","Ramsel","Ramskapelle","Ramskapelle","Ransberg","Ranst","Ravels","Reet","Rekem","Rekkem","Relegem","Remersdaal","Reninge","Reningelst","Reppel","Ressegem","Retie","Riemst","Rijkel","Rijkevorsel","Rijkhoven","Rijmenam","Riksingen","Rillaar","Roborst","Roesbrugge-Haringe","Roeselare","Roksem","Rollegem","Rollegem-Kapelle","Romershoven","Ronse","Ronsele","Roosbeek","Rosmeer","Rotem","Rotselaar","Rozebeke","Ruddervoorde","Ruien","Ruisbroek","Ruisbroek","Ruiselede","Rukkelingen-Loon","Rumbeke","Rummen","Rumsdorp","Rumst","Runkelen","Rupelmonde","Rutten","Schaffen","Schalkhoven","Schelderode","Scheldewindeke","Schelle","Schellebelle","Schendelbeke","Schepdaal","Scherpenheuvel","Schilde","Schoonaarde","Schore","Schorisse","Schoten","Schriek","Schuiferskapelle","Schulen","Semmerzake","Serskamp","Sijsele","Sinaai","Sint-Agatha-Rode","Sint-Amands","Sint-Amandsberg","Sint-Andries","Sint-Antelinks","Sint-Baafs-Vijve","Sint-Blasius-Boekel","Sint-Denijs","Sint-Denijs-Boekel","Sint-Denijs-Westrem","Sint-Eloois-Vijve","Sint-Eloois-Winkel","Sint-Genesius-Rode","Sint-Gillis-Waas","Sint-Gillis-bij-Dendermonde","Sint-Goriks-Oudenhove","Sint-Huibrechts-Hern","Sint-Huibrechts-Lille","Sint-Jacobskapelle","Sint-Jan","Sint-Jan-in-Eremo","Sint-Job-in-'t-Goor","Sint-Joris","Sint-Joris","Sint-Joris-Weert","Sint-Joris-Winge","Sint-Katelijne-Waver","Sint-Katherina-Lombeek","Sint-Kornelis-Horebeke","Sint-Kruis","Sint-Kruis-Winkel","Sint-Kwintens-Lennik","Sint-Lambrechts-Herk","Sint-Laureins","Sint-Laureins-Berchem","Sint-Lenaarts","Sint-Lievens-Esse","Sint-Lievens-Houtem","Sint-Margriete","Sint-Margriete-Houtem","Sint-Maria-Horebeke","Sint-Maria-Latem","Sint-Maria-Lierde","Sint-Maria-Oudenhove","Sint-Martens-Bodegem","Sint-Martens-Latem","Sint-Martens-Leerne","Sint-Martens-Lennik","Sint-Martens-Lierde","Sint-Martens-Voeren","Sint-Michiels","Sint-Niklaas","Sint-Pauwels","Sint-Pieters-Kapelle","Sint-Pieters-Kapelle","Sint-Pieters-Leeuw","Sint-Pieters-Rode","Sint-Pieters-Voeren","Sint-Rijkers","Sint-Stevens-Woluwe","Sint-Truiden","Sint-Ulriks-Kapelle","Sleidinge","Slijpe","Sluizen","Smeerebbe-Vloerzegem","Smetlede","Snaaskerke","Snellegem","Spalbeek","Spiere","Stabroek","Staden","Stalhille","Stavele","Steendorp","Steenhuffel","Steenhuize-Wijnhuize","Steenkerke","Steenokkerzeel","Stekene","Stene","Sterrebeek","Stevoort","Stokkem","Stokrooie","Strijpen","Strijtem","Strombeek-Bever","Stuivekenskerke","Temse","Teralfene","Terhagen","Ternat","Tervuren","Tessenderlo","Testelt","Teuven","Tiegem","Tielen","Tielrode","Tielt","Tielt","Tienen","Tildonk","Tisselt","Tollembeek","Tongeren","Tongerlo","Tongerlo","Torhout","Tremelo","Turnhout","Uikhoven","Uitbergen","Uitkerke","Ulbeek","Ursel","Vaalbeek","Val-Meer","Varendonk","Varsenare","Vechmaal","Veerle","Veldegem","Veldwezelt","Velm","Veltem-Beisem","Velzeke-Ruddershove","Verrebroek","Vertrijk","Veulen","Veurne","Viane","Vichte","Viersel","Vilvoorde","Vinderhoute","Vinkem","Vinkt","Vissenaken","Vladslo","Vlamertinge","Vlekkem","Vlezenbeek","Vliermaal","Vliermaalroot","Vlierzele","Vlijtingen","Vlimmeren","Vlissegem","Volkegem","Vollezele","Voorde","Voormezele","Voort","Vorselaar","Vorsen","Vorst","Vosselaar","Vosselare","Vossem","Vrasene","Vremde","Vreren","Vroenhoven","Vucht","Vurste","Waanrode","Waarbeke","Waardamme","Waarloos","Waarmaarde","Waarschoot","Waasmont","Waasmunster","Wachtebeke","Wakken","Walem","Walsbets","Walshoutem","Waltwilder","Wambeek","Wange","Wannegem-Lede","Wanzele","Waregem","Waterland-Oudeman","Watervliet","Watou","Webbekom","Wechelderzande","Weelde","Weerde","Weert","Welden","Welle","Wellen","Wemmel","Wenduine","Werchter","Werken","Werm","Wervik","Wespelaar","Westende","Westerlo","Westkapelle","Westkerke","Westmalle","Westmeerbeek","Westouter","Westrem","Westrozebeke","Westvleteren","Wetteren","Wevelgem","Wezemaal","Wezembeek-Oppem","Wezeren","Wichelen","Widooie","Wiekevorst","Wielsbeke","Wieze","Wijchmaal","Wijer","Wijgmaal","Wijnegem","Wijshagen","Wijtschate","Wilderen","Willebringen","Willebroek","Wilrijk","Wilsele","Wilskerke","Wimmertingen","Wingene","Winksele","Wintershoven","Woesten","Wolvertem","Wommelgem","Wommersom","Wondelgem","Wontergem","Wortegem","Wortel","Woubrechtegem","Woumen","Wulpen","Wulvergem","Wulveringem","Wuustwezel","Zaffelare","Zandbergen","Zande","Zandhoven","Zandvoorde","Zandvoorde","Zarlardinge","Zarren","Zaventem","Zedelgem","Zegelsem","Zele","Zelem","Zellik","Zelzate","Zemst","Zepperen","Zerkegem","Zevekote","Zeveneken","Zeveren","Zevergem","Zichem","Zichen-Zussen-Bolder","Zillebeke","Zingem","Zoerle-Parwijs","Zoersel","Zolder","Zomergem","Zonhoven","Zonnebeke","Zonnegem","Zottegem","Zoutenaaie","Zoutleeuw","Zuidschote","Zuienkerke","Zulte","Zulzeke","Zutendaal","Zwevegem","Zwevezele","Zwijnaarde","Zwijndrecht"]})(wIn);var sUa=wIn.exports,_In={exports:{}};(function(t){t.exports=["gem","tem","vijve","zele"]})(_In);var lUa=_In.exports,TIn={exports:{}};(function(t){t.exports=["#","##","###","###a","###b","###c"]})(TIn);var cUa=TIn.exports,CIn={exports:{}};(function(t){t.exports=["straat","laan","weg","dreef","plein","park"]})(CIn);var uUa=CIn.exports,kIn={exports:{}};(function(t){t.exports=["1e verdieping","2e verdieping","3e verdieping"]})(kIn);var dUa=kIn.exports,RIn={exports:{}};(function(t){t.exports=["####"]})(RIn);var hUa=RIn.exports,MIn={exports:{}};(function(t){t.exports=["West-Vlaanderen","Oost-Vlaanderen","Vlaams-Brabant","Antwerpen","Limburg","Brussel"]})(MIn);var fUa=MIn.exports,NIn={exports:{}};(function(t){t.exports=["WVL","OVL","VBR","ANT","LIM","BRU"]})(NIn);var pUa=NIn.exports,IIn={exports:{}};(function(t){t.exports=["#{city_prefix}","#{city_prefix}#{city_suffix}"]})(IIn);var mUa=IIn.exports,PIn={exports:{}};(function(t){t.exports=["#{Name.first_name}#{street_suffix}","#{Name.last_name}#{street_suffix}"]})(PIn);var gUa=PIn.exports,OIn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(OIn);var vUa=OIn.exports,LIn={exports:{}};(function(t){t.exports=["België"]})(LIn);var AUa=LIn.exports;(function(t){var e={};t.exports=e,e.city_prefix=sUa,e.city_suffix=lUa,e.building_number=cUa,e.street_suffix=uUa,e.secondary_address=dUa,e.postcode=hUa,e.state=fUa,e.state_abbr=pUa,e.city=mUa,e.street_name=gUa,e.street_address=vUa,e.default_country=AUa})(SIn);var yUa=SIn.exports,BIn={exports:{}},DIn={exports:{}};(function(t){t.exports=["NV","BVBA","CVBA","VZW"]})(DIn);var bUa=DIn.exports;(function(t){var e={};t.exports=e,e.suffix=bUa})(BIn);var xUa=BIn.exports,$In={exports:{}},FIn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com","skynet.be"]})(FIn);var EUa=FIn.exports,jIn={exports:{}};(function(t){t.exports=["be","brussels","vlaanderen","com","net","org"]})(jIn);var SUa=jIn.exports;(function(t){var e={};t.exports=e,e.free_email=EUa,e.domain_suffix=SUa})($In);var wUa=$In.exports,HIn={exports:{}},UIn={exports:{}};(function(t){t.exports=["Lucas","Liam","Louis","Noah","Lars","Arthur","Mathis","Kobe","Wout","Milan","Alexander","Daan","Adam","Vince","Jules","Victor","Finn","Stan","Leon","Seppe","Senne","Thomas","Mats","Robbe","Matteo","Ferre","Nathan","Warre","Jasper","Vic","Elias","Tuur","Lowie","Mauro","Maxim","Ruben","Rune","Mohamed","Simon","Rayan","Lukas","Lander","Xander","Emiel","Siebe","Jonas","Sam","Luca","Arne","Cas","Felix","Jack","Mathias","Jayden","Quinten","Tibo","Lewis","Sem","Maxime","Viktor","Emile","Sander","Aaron","Oscar","Bas","Niels","Jef","Nand","Lou","Tristan","Gust","David","Brent","Jelle","Lenn","Miel","Wannes","Gilles","Jarne","Alex","Imran","Lennert","Milo","Jens","Matthias","Dries","Axel","Juul","Hamza","Ilias","Thibo","Nicolas","Bent","Jesse","Bram","Maurice","Ilyas","Gabriel","Robin","Kasper","Emma","Louise","Marie","Elise","Noor","Ella","Julie","Lotte","Lore","Fien","Lena","Mila","Olivia","Amber","Anna","Elena","Hanne","Laura","Charlotte","Lina","Nina","Fleur","Lisa","Nora","Juliette","Luna","Amelie","Kato","Sara","Febe","Axelle","Janne","Eline","Helena","Noa","Camille","Roos","Lily","Jade","Nore","Jana","Manon","Sarah","Liv","Amélie","Lara","Mona","Alice","Tess","Kaat","Femke","Aya","Eva","Lien","Bo","Zoe","Oona","Sofia","Leonie","Linde","Jolien","Fran","Pauline","Laure","Merel","Marthe","Sam","Yana","Renée","Paulien","Margot","Yasmine","Ines","Elisa","Emily","Maya","Floor","Amy","Lize","Amina","Lucie","Julia","Lise","Hailey","Hannah","Alicia","Norah","Margaux","Lieze","Sien","Zoë","Inaya","Aline","Amira","Victoria","Flore","Lana","Sterre","Maud","Chloe"]})(UIn);var _Ua=UIn.exports,zIn={exports:{}};(function(t){t.exports=["Claes","Claeys","Declerck","Declercq","Decock","Decoster","Desmet","Devos","Dewilde","Gielen","Goossens","Hermans","Jacobs","Janssen","Janssens","Lemmens","Maes","Martens","Mertens","Michiels","Peeters","Smet","Smets","Thijs","Vandamme","Vandenberghe","Vandenbroeck","Vandevelde","Verhaeghe","Verstraete","Willems","Wouters"]})(zIn);var TUa=zIn.exports,GIn={exports:{}};(function(t){t.exports=["Dr.","Ir.","Ing.","Prof."]})(GIn);var CUa=GIn.exports,VIn={exports:{}};(function(t){t.exports=["MBA","Phd."]})(VIn);var kUa=VIn.exports,KIn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name} #{suffix}","#{first_name} #{last_name}","#{first_name} #{last_name}"]})(KIn);var RUa=KIn.exports;(function(t){var e={};t.exports=e,e.first_name=_Ua,e.last_name=TUa,e.prefix=CUa,e.suffix=kUa,e.name=RUa})(HIn);var MUa=HIn.exports,WIn={exports:{}},QIn={exports:{}};(function(t){t.exports=["###/######","###/## ## ##","### ## ## ##","###/### ###","##########","04##/### ###","04## ## ## ##","00324 ## ## ##","+324 ## ## ## ##"]})(QIn);var NUa=QIn.exports;(function(t){var e={};t.exports=e,e.formats=NUa})(WIn);var IUa=WIn.exports;(function(t){var e={};t.exports=e,e.title="Dutch (Belgium)",e.address=yUa,e.company=xUa,e.internet=wUa,e.name=MUa,e.phone_number=IUa})(EIn);var PUa=EIn.exports,qIn={exports:{}},YIn={exports:{}},OUa=["Ada","Adelajda","Agata","Agnieszka","Agrypina","Aida","Aleksandra","Alicja","Alina","Amanda","Anastazja","Angela","Andżelika","Angelina","Anna","Hanna","Antonina","Ariadna","Aurora","Barbara","Beatrycze","Berta","Brygida","Kamila","Karolina","Karolina","Kornelia","Katarzyna","Cecylia","Karolina","Chloe","Krystyna","Klara","Klaudia","Klementyna","Konstancja","Koralia","Daria","Diana","Dina","Dorota","Edyta","Eleonora","Eliza","Elżbieta","Izabela","Elwira","Emilia","Estera","Eudoksja","Eudokia","Eugenia","Ewa","Ewelina","Ferdynanda","Florencja","Franciszka","Gabriela","Gertruda","Gloria","Gracja","Jadwiga","Helena","Henryka","Nadzieja","Ida","Ilona","Helena","Irena","Irma","Izabela","Izolda","Jakubina","Joanna","Janina","Żaneta","Joanna","Ginewra","Józefina","Judyta","Julia","Julia","Julita","Justyna","Kira","Cyra","Kleopatra","Larysa","Laura","Laurencja","Laurentyna","Lea","Leila","Eleonora","Liliana","Lilianna","Lilia","Lilla","Liza","Eliza","Laura","Ludwika","Luiza","Łucja","Lucja","Lidia","Amabela","Magdalena","Malwina","Małgorzata","Greta","Marianna","Maryna","Marta","Martyna","Maria","Matylda","Maja","Maja","Melania","Michalina","Monika","Nadzieja","Noemi","Natalia","Nikola","Nina","Olga","Olimpia","Oliwia","Ofelia","Patrycja","Paula","Pelagia","Penelopa","Filipa","Paulina","Rachela","Rebeka","Regina","Renata","Rozalia","Róża","Roksana","Rufina","Ruta","Sabina","Sara","Serafina","Sybilla","Sylwia","Zofia","Stella","Stefania","Zuzanna","Tamara","Tacjana","Tekla","Teodora","Teresa","Walentyna","Waleria","Wanesa","Wiara","Weronika","Wiktoria","Wirginia","Bibiana","Bibianna","Wanda","Wilhelmina","Ksawera","Ksenia","Zoe"],LUa=["Aaron","Abraham","Adam","Adrian","Atanazy","Agaton","Alan","Albert","Aleksander","Aleksy","Alfred","Alwar","Ambroży","Anatol","Andrzej","Antoni","Apollinary","Apollo","Arkady","Arkadiusz","Archibald","Arystarch","Arnold","Arseniusz","Artur","August","Baldwin","Bazyli","Benedykt","Beniamin","Bernard","Bertrand","Bertram","Borys","Brajan","Bruno","Cezary","Cecyliusz","Karol","Krystian","Krzysztof","Klarencjusz","Klaudiusz","Klemens","Konrad","Konstanty","Konstantyn","Kornel","Korneliusz","Korneli","Cyryl","Cyrus","Damian","Daniel","Dariusz","Dawid","Dionizy","Demetriusz","Dominik","Donald","Dorian","Edgar","Edmund","Edward","Edwin","Efrem","Efraim","Eliasz","Eleazar","Emil","Emanuel","Erast","Ernest","Eugeniusz","Eustracjusz","Fabian","Feliks","Florian","Franciszek","Fryderyk","Gabriel","Gedeon","Galfryd","Jerzy","Gerald","Gerazym","Gilbert","Gonsalwy","Grzegorz","Gwido","Harald","Henryk","Herbert","Herman","Hilary","Horacy","Hubert","Hugo","Ignacy","Igor","Hilarion","Innocenty","Hipolit","Ireneusz","Erwin","Izaak","Izajasz","Izydor","Jakub","Jeremi","Jeremiasz","Hieronim","Gerald","Joachim","Jan","Janusz","Jonatan","Józef","Jozue","Julian","Juliusz","Justyn","Kalistrat","Kazimierz","Wawrzyniec","Laurenty","Laurencjusz","Łazarz","Leon","Leonard","Leonid","Leon","Ludwik","Łukasz","Lucjan","Magnus","Makary","Marceli","Marek","Marcin","Mateusz","Maurycy","Maksym","Maksymilian","Michał","Miron","Modest","Mojżesz","Natan","Natanael","Nazariusz","Nazary","Nestor","Mikołaj","Nikodem","Olaf","Oleg","Oliwier","Onufry","Orestes","Oskar","Ansgary","Osmund","Pankracy","Pantaleon","Patryk","Patrycjusz","Patrycy","Paweł","Piotr","Filemon","Filip","Platon","Polikarp","Porfiry","Porfiriusz","Prokles","Prokul","Prokop","Kwintyn","Randolf","Rafał","Rajmund","Reginald","Rajnold","Ryszard","Robert","Roderyk","Roger","Roland","Roman","Romeo","Reginald","Rudolf","Samson","Samuel","Salwator","Sebastian","Serafin","Sergiusz","Seweryn","Zygmunt","Sylwester","Szymon","Salomon","Spirydion","Stanisław","Szczepan","Stefan","Terencjusz","Teodor","Tomasz","Tymoteusz","Tobiasz","Walenty","Walentyn","Walerian","Walery","Wiktor","Wincenty","Witalis","Włodzimierz","Władysław","Błażej","Walter","Walgierz","Wacław","Wilfryd","Wilhelm","Ksawery","Ksenofont","Jerzy","Zachariasz","Zachary"],BUa=OUa,DUa=LUa,$Ua=BUa.concat(DUa),JIn={exports:{}};(function(t){t.exports=["Adamczak","Adamczyk","Adamek","Adamiak","Adamiec","Adamowicz","Adamski","Adamus","Aleksandrowicz","Andrzejczak","Andrzejewski","Antczak","Augustyn","Augustyniak","Bagiński","Balcerzak","Banach","Banasiak","Banasik","Banaś","Baran","Baranowski","Barański","Bartczak","Bartkowiak","Bartnik","Bartosik","Bednarczyk","Bednarek","Bednarski","Bednarz","Białas","Białek","Białkowski","Biedrzyński","Bielak","Bielawski","Bielecki","Bielski","Bieniek","Biernacki","Biernat","Bieńkowski","Bilski","Bober","Bochenek","Bogucki","Bogusz","Borek","Borkowski","Borowiec","Borowski","Bożek","Broda","Brzeziński","Brzozowski","Buczek","Buczkowski","Buczyński","Budziński","Budzyński","Bujak","Bukowski","Burzyński","Bąk","Bąkowski","Błaszczak","Błaszczyk","Cebula","Chmiel","Chmielewski","Chmura","Chojnacki","Chojnowski","Cholewa","Chrzanowski","Chudzik","Cichocki","Cichoń","Cichy","Ciesielski","Cieśla","Cieślak","Cieślik","Ciszewski","Cybulski","Cygan","Czaja","Czajka","Czajkowski","Czapla","Czarnecki","Czech","Czechowski","Czekaj","Czerniak","Czerwiński","Czyż","Czyżewski","Dec","Dobosz","Dobrowolski","Dobrzyński","Domagała","Domański","Dominiak","Drabik","Drozd","Drozdowski","Drzewiecki","Dróżdż","Dubiel","Duda","Dudek","Dudziak","Dudzik","Dudziński","Duszyński","Dziedzic","Dziuba","Dąbek","Dąbkowski","Dąbrowski","Dębowski","Dębski","Długosz","Falkowski","Fijałkowski","Filipek","Filipiak","Filipowicz","Flak","Flis","Florczak","Florek","Frankowski","Frąckowiak","Frączek","Frątczak","Furman","Gadomski","Gajda","Gajewski","Gaweł","Gawlik","Gawron","Gawroński","Gałka","Gałązka","Gil","Godlewski","Golec","Gołąb","Gołębiewski","Gołębiowski","Grabowski","Graczyk","Grochowski","Grudzień","Gruszczyński","Gruszka","Grzegorczyk","Grzelak","Grzesiak","Grzesik","Grześkowiak","Grzyb","Grzybowski","Grzywacz","Gutowski","Guzik","Gwoździk","Gwóźdź","Góra","Góral","Górecki","Górka","Górniak","Górny","Górski","Gąsior","Gąsiorowski","Głogowski","Głowacki","Głąb","Hajduk","Herman","Iwanowski","Iwański","Izdebski","Jabłoński","Jackowski","Jagielski","Jagiełło","Jagodziński","Jakubiak","Jakubowski","Janas","Janiak","Janicki","Janik","Janiszewski","Jankowiak","Jankowski","Janowski","Janus","Janusz","Januszewski","Jaros","Jarosz","Jarząbek","Jasiński","Jastrzębski","Jaworski","Jaśkiewicz","Jezierski","Jurek","Jurkiewicz","Jurkowski","Juszczak","Jóźwiak","Jóźwik","Jędrzejczak","Jędrzejczyk","Jędrzejewski","Kacprzak","Kaczmarczyk","Kaczmarek","Kaczmarski","Kaczor","Kaczorowski","Kaczyński","Kaleta","Kalinowski","Kalisz","Kamiński","Kania","Kaniewski","Kapusta","Karaś","Karczewski","Karpiński","Karwowski","Kasperek","Kasprzak","Kasprzyk","Kaszuba","Kawa","Kawecki","Kałuża","Kaźmierczak","Kiełbasa","Kisiel","Kita","Klimczak","Klimek","Kmiecik","Kmieć","Knapik","Kobus","Kogut","Kolasa","Komorowski","Konieczna","Konieczny","Konopka","Kopczyński","Koper","Kopeć","Korzeniowski","Kos","Kosiński","Kosowski","Kostecki","Kostrzewa","Kot","Kotowski","Kowal","Kowalczuk","Kowalczyk","Kowalewski","Kowalik","Kowalski","Koza","Kozak","Kozieł","Kozioł","Kozłowski","Kołakowski","Kołodziej","Kołodziejczyk","Kołodziejski","Krajewski","Krakowiak","Krawczyk","Krawiec","Kruk","Krukowski","Krupa","Krupiński","Kruszewski","Krysiak","Krzemiński","Krzyżanowski","Król","Królikowski","Książek","Kubacki","Kubiak","Kubica","Kubicki","Kubik","Kuc","Kucharczyk","Kucharski","Kuchta","Kuciński","Kuczyński","Kujawa","Kujawski","Kula","Kulesza","Kulig","Kulik","Kuliński","Kurek","Kurowski","Kuś","Kwaśniewski","Kwiatkowski","Kwiecień","Kwieciński","Kędzierski","Kędziora","Kępa","Kłos","Kłosowski","Lach","Laskowski","Lasota","Lech","Lenart","Lesiak","Leszczyński","Lewandowski","Lewicki","Leśniak","Leśniewski","Lipiński","Lipka","Lipski","Lis","Lisiecki","Lisowski","Maciejewski","Maciąg","Mackiewicz","Madej","Maj","Majcher","Majchrzak","Majewski","Majka","Makowski","Malec","Malicki","Malinowski","Maliszewski","Marchewka","Marciniak","Marcinkowski","Marczak","Marek","Markiewicz","Markowski","Marszałek","Marzec","Masłowski","Matusiak","Matuszak","Matuszewski","Matysiak","Mazur","Mazurek","Mazurkiewicz","Maćkowiak","Małecki","Małek","Maślanka","Michalak","Michalczyk","Michalik","Michalski","Michałek","Michałowski","Mielczarek","Mierzejewski","Mika","Miklaś","Mikołajczak","Mikołajczyk","Mikulski","Milczarek","Milewski","Miller","Misiak","Misztal","Miśkiewicz","Modzelewski","Molenda","Morawski","Motyka","Mroczek","Mroczkowski","Mrozek","Mróz","Mucha","Murawski","Musiał","Muszyński","Młynarczyk","Napierała","Nawrocki","Nawrot","Niedziela","Niedzielski","Niedźwiecki","Niemczyk","Niemiec","Niewiadomski","Noga","Nowacki","Nowaczyk","Nowak","Nowakowski","Nowicki","Nowiński","Olczak","Olejniczak","Olejnik","Olszewski","Orzechowski","Orłowski","Osiński","Ossowski","Ostrowski","Owczarek","Paczkowski","Pająk","Pakuła","Palacz","Paluch","Panek","Partyka","Pasternak","Paszkowski","Pawelec","Pawlak","Pawlicki","Pawlik","Pawlikowski","Pawłowski","Pałka","Piasecki","Piechota","Pieczek","Piekarski","Pietras","Pietruszka","Pietrzak","Pietrzyk","Pilarski","Pilch","Piotrowicz","Piotrowski","Piwowarczyk","Piórkowski","Piątek","Piątkowski","Piłat","Pluta","Podgórski","Polak","Popławski","Porębski","Prokop","Prus","Przybylski","Przybysz","Przybył","Przybyła","Ptak","Puchalski","Pytel","Płonka","Raczyński","Radecki","Radomski","Rak","Rakowski","Ratajczak","Robak","Rogala","Rogalski","Rogowski","Rojek","Romanowski","Rosa","Rosiak","Rosiński","Ruciński","Rudnicki","Rudziński","Rudzki","Rusin","Rutkowski","Rybak","Rybarczyk","Rybicki","Rzepka","Różański","Różycki","Sadowski","Sawicki","Serafin","Siedlecki","Sienkiewicz","Sieradzki","Sikora","Sikorski","Sitek","Siwek","Skalski","Skiba","Skibiński","Skoczylas","Skowron","Skowronek","Skowroński","Skrzypczak","Skrzypek","Skóra","Smoliński","Sobczak","Sobczyk","Sobieraj","Sobolewski","Socha","Sochacki","Sokołowski","Sokół","Sosnowski","Sowa","Sowiński","Sołtys","Sołtysiak","Sroka","Stachowiak","Stachowicz","Stachura","Stachurski","Stanek","Staniszewski","Stanisławski","Stankiewicz","Stasiak","Staszewski","Stawicki","Stec","Stefaniak","Stefański","Stelmach","Stolarczyk","Stolarski","Strzelczyk","Strzelecki","Stępień","Stępniak","Surma","Suski","Szafrański","Szatkowski","Szczepaniak","Szczepanik","Szczepański","Szczerba","Szcześniak","Szczygieł","Szczęsna","Szczęsny","Szeląg","Szewczyk","Szostak","Szulc","Szwarc","Szwed","Szydłowski","Szymański","Szymczak","Szymczyk","Szymkowiak","Szyszka","Sławiński","Słowik","Słowiński","Tarnowski","Tkaczyk","Tokarski","Tomala","Tomaszewski","Tomczak","Tomczyk","Tomys","Tracz","Trojanowski","Trzciński","Trzeciak","Turek","Twardowski","Urban","Urbanek","Urbaniak","Urbanowicz","Urbańczyk","Urbański","Walczak","Walkowiak","Warchoł","Wasiak","Wasilewski","Wawrzyniak","Wesołowski","Wieczorek","Wierzbicki","Wilczek","Wilczyński","Wilk","Winiarski","Witczak","Witek","Witkowski","Wiącek","Więcek","Więckowski","Wiśniewski","Wnuk","Wojciechowski","Wojtas","Wojtasik","Wojtczak","Wojtkowiak","Wolak","Woliński","Wolny","Wolski","Woś","Woźniak","Wrona","Wroński","Wróbel","Wróblewski","Wypych","Wysocki","Wyszyński","Wójcicki","Wójcik","Wójtowicz","Wąsik","Wąsowski","Węgrzyn","Włodarczyk","Włodarski","Zaborowski","Zabłocki","Zagórski","Zając","Zajączkowski","Zakrzewski","Zalewski","Zaremba","Zarzycki","Zaręba","Zawada","Zawadzki","Zdunek","Zieliński","Zielonka","Ziółkowski","Zięba","Ziętek","Zwoliński","Zych","Zygmunt","Łapiński","Łuczak","Łukasiewicz","Łukasik","Łukaszewski","Śliwa","Śliwiński","Ślusarczyk","Świderski","Świerczyński","Świątek","Żak","Żebrowski","Żmuda","Żuk","Żukowski","Żurawski","Żurek","Żyła"]})(JIn);var FUa=JIn.exports,ZIn={exports:{}};(function(t){t.exports=["Pan","Pani"]})(ZIn);var jUa=ZIn.exports,XIn={exports:{}};(function(t){t.exports={descriptor:["Lead","Senior","Direct","Corporate","Dynamic","Future","Product","National","Regional","District","Central","Global","Customer","Investor","Dynamic","International","Legacy","Forward","Internal","Human","Chief","Principal"],level:["Solutions","Program","Brand","Security","Research","Marketing","Directives","Implementation","Integration","Functionality","Response","Paradigm","Tactics","Identity","Markets","Group","Division","Applications","Optimization","Operations","Infrastructure","Intranet","Communications","Web","Branding","Quality","Assurance","Mobility","Accounts","Data","Creative","Configuration","Accountability","Interactions","Factors","Usability","Metrics"],job:["Supervisor","Associate","Executive","Liaison","Officer","Manager","Engineer","Specialist","Director","Coordinator","Administrator","Architect","Analyst","Designer","Planner","Orchestrator","Technician","Developer","Producer","Consultant","Assistant","Facilitator","Agent","Representative","Strategist"]}})(XIn);var HUa=XIn.exports,e3n={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}"]})(e3n);var UUa=e3n.exports;(function(t){var e={};t.exports=e,e.first_name=$Ua,e.last_name=FUa,e.prefix=jUa,e.title=HUa,e.name=UUa})(YIn);var zUa=YIn.exports,t3n={exports:{}},n3n={exports:{}};(function(t){t.exports=["Afganistan","Albania","Algieria","Andora","Angola","Antigua i Barbuda","Arabia Saudyjska","Argentyna","Armenia","Australia","Austria","Azerbejdżan","Bahamy","Bahrajn","Bangladesz","Barbados","Belgia","Belize","Benin","Bhutan","Białoruś","Birma","Boliwia","Sucre","Bośnia i Hercegowina","Botswana","Brazylia","Brunei","Bułgaria","Burkina Faso","Burundi","Chile","Chiny","Chorwacja","Cypr","Czad","Czarnogóra","Czechy","Dania","Demokratyczna Republika Konga","Dominika","Dominikana","Dżibuti","Egipt","Ekwador","Erytrea","Estonia","Etiopia","Fidżi","Filipiny","Finlandia","Francja","Gabon","Gambia","Ghana","Grecja","Grenada","Gruzja","Gujana","Gwatemala","Gwinea","Gwinea Bissau","Gwinea Równikowa","Haiti","Hiszpania","Holandia","Haga","Honduras","Indie","Indonezja","Irak","Iran","Irlandia","Islandia","Izrael","Jamajka","Japonia","Jemen","Jordania","Kambodża","Kamerun","Kanada","Katar","Kazachstan","Kenia","Kirgistan","Kiribati","Kolumbia","Komory","Kongo","Korea Południowa","Korea Północna","Kostaryka","Kuba","Kuwejt","Laos","Lesotho","Liban","Liberia","Libia","Liechtenstein","Litwa","Luksemburg","Łotwa","Macedonia","Madagaskar","Malawi","Malediwy","Malezja","Mali","Malta","Maroko","Mauretania","Mauritius","Meksyk","Mikronezja","Mołdawia","Monako","Mongolia","Mozambik","Namibia","Nauru","Nepal","Niemcy","Niger","Nigeria","Nikaragua","Norwegia","Nowa Zelandia","Oman","Pakistan","Palau","Panama","Papua-Nowa Gwinea","Paragwaj","Peru","Polska","322 575","Portugalia","Republika Południowej Afryki","Republika Środkowoafrykańska","Republika Zielonego Przylądka","Rosja","Rumunia","Rwanda","Saint Kitts i Nevis","Saint Lucia","Saint Vincent i Grenadyny","Salwador","Samoa","San Marino","Senegal","Serbia","Seszele","Sierra Leone","Singapur","Słowacja","Słowenia","Somalia","Sri Lanka","Stany Zjednoczone","Suazi","Sudan","Sudan Południowy","Surinam","Syria","Szwajcaria","Szwecja","Tadżykistan","Tajlandia","Tanzania","Timor Wschodni","Togo","Tonga","Trynidad i Tobago","Tunezja","Turcja","Turkmenistan","Tuvalu","Funafuti","Uganda","Ukraina","Urugwaj","Uzbekistan","Vanuatu","Watykan","Wenezuela","Węgry","Wielka Brytania","Wietnam","Włochy","Wybrzeże Kości Słoniowej","Wyspy Marshalla","Wyspy Salomona","Wyspy Świętego Tomasza i Książęca","Zambia","Zimbabwe","Zjednoczone Emiraty Arabskie"]})(n3n);var GUa=n3n.exports,r3n={exports:{}};(function(t){t.exports=["#####","####","###"]})(r3n);var VUa=r3n.exports,i3n={exports:{}};(function(t){t.exports=["ul.","al."]})(i3n);var KUa=i3n.exports,a3n={exports:{}};(function(t){t.exports=["Apt. ###","Suite ###"]})(a3n);var WUa=a3n.exports,o3n={exports:{}};(function(t){t.exports=["##-###"]})(o3n);var QUa=o3n.exports,s3n={exports:{}};(function(t){t.exports=["Dolnośląskie","Kujawsko-pomorskie","Lubelskie","Lubuskie","Łódzkie","Małopolskie","Mazowieckie","Opolskie","Podkarpackie","Podlaskie","Pomorskie","Śląskie","Świętokrzyskie","Warmińsko-mazurskie","Wielkopolskie","Zachodniopomorskie"]})(s3n);var qUa=s3n.exports,l3n={exports:{}};(function(t){t.exports=["DŚ","KP","LB","LS","ŁD","MP","MZ","OP","PK","PL","PM","ŚL","ŚK","WM","WP","ZP"]})(l3n);var YUa=l3n.exports,c3n={exports:{}};(function(t){t.exports=["Aleksandrów Kujawski","Aleksandrów Łódzki","Alwernia","Andrychów","Annopol","Augustów","Babimost","Baborów","Baranów Sandomierski","Barcin","Barczewo","Bardo","Barlinek","Bartoszyce","Barwice","Bełchatów","Bełżyce","Będzin","Biała","Biała Piska","Biała Podlaska","Biała Rawska","Białobrzegi","Białogard","Biały Bór","Białystok","Biecz","Bielawa","Bielsk Podlaski","Bielsko-Biała","Bieruń","Bierutów","Bieżuń","Biłgoraj","Biskupiec","Bisztynek","Blachownia","Błaszki","Błażowa","Błonie","Bobolice","Bobowa","Bochnia","Bodzentyn","Bogatynia","Boguchwała","Boguszów-Gorce","Bojanowo","Bolesławiec","Bolków","Borek Wielkopolski","Borne Sulinowo","Braniewo","Brańsk","Brodnica","Brok","Brusy","Brwinów","Brzeg","Brzeg Dolny","Brzesko","Brzeszcze","Brześć Kujawski","Brzeziny","Brzostek","Brzozów","Buk","Bukowno","Busko-Zdrój","Bychawa","Byczyna","Bydgoszcz","Bystrzyca Kłodzka","Bytom","Bytom Odrzański","Bytów","Cedynia","Chełm","Chełmek","Chełmno","Chełmża","Chęciny","Chmielnik","Chocianów","Chociwel","Chodecz","Chodzież","Chojna","Chojnice","Chojnów","Choroszcz","Chorzele","Chorzów","Choszczno","Chrzanów","Ciechanowiec","Ciechanów","Ciechocinek","Cieszanów","Cieszyn","Ciężkowice","Cybinka","Czaplinek","Czarna Białostocka","Czarna Woda","Czarne","Czarnków","Czchów","Czechowice-Dziedzice","Czeladź","Czempiń","Czerniejewo","Czersk","Czerwieńsk","Czerwionka-Leszczyny","Częstochowa","Człopa","Człuchów","Czyżew","Ćmielów","Daleszyce","Darłowo","Dąbie","Dąbrowa Białostocka","Dąbrowa Górnicza","Dąbrowa Tarnowska","Debrzno","Dębica","Dęblin","Dębno","Dobczyce","Dobiegniew","Dobra (powiat łobeski)","Dobra (powiat turecki)","Dobre Miasto","Dobrodzień","Dobrzany","Dobrzyń nad Wisłą","Dolsk","Drawno","Drawsko Pomorskie","Drezdenko","Drobin","Drohiczyn","Drzewica","Dukla","Duszniki-Zdrój","Dynów","Działdowo","Działoszyce","Działoszyn","Dzierzgoń","Dzierżoniów","Dziwnów","Elbląg","Ełk","Frampol","Frombork","Garwolin","Gąbin","Gdańsk","Gdynia","Giżycko","Glinojeck","Gliwice","Głogów","Głogów Małopolski","Głogówek","Głowno","Głubczyce","Głuchołazy","Głuszyca","Gniew","Gniewkowo","Gniezno","Gogolin","Golczewo","Goleniów","Golina","Golub-Dobrzyń","Gołańcz","Gołdap","Goniądz","Gorlice","Gorzów Śląski","Gorzów Wielkopolski","Gostynin","Gostyń","Gościno","Gozdnica","Góra","Góra Kalwaria","Górowo Iławeckie","Górzno","Grabów nad Prosną","Grajewo","Grodków","Grodzisk Mazowiecki","Grodzisk Wielkopolski","Grójec","Grudziądz","Grybów","Gryfice","Gryfino","Gryfów Śląski","Gubin","Hajnówka","Halinów","Hel","Hrubieszów","Iława","Iłowa","Iłża","Imielin","Inowrocław","Ińsko","Iwonicz-Zdrój","Izbica Kujawska","Jabłonowo Pomorskie","Janikowo","Janowiec Wielkopolski","Janów Lubelski","Jarocin","Jarosław","Jasień","Jasło","Jastarnia","Jastrowie","Jastrzębie-Zdrój","Jawor","Jaworzno","Jaworzyna Śląska","Jedlicze","Jedlina-Zdrój","Jedwabne","Jelcz-Laskowice","Jelenia Góra","Jeziorany","Jędrzejów","Jordanów","Józefów (powiat biłgorajski)","Józefów (powiat otwocki)","Jutrosin","Kalety","Kalisz","Kalisz Pomorski","Kalwaria Zebrzydowska","Kałuszyn","Kamienna Góra","Kamień Krajeński","Kamień Pomorski","Kamieńsk","Kańczuga","Karczew","Kargowa","Karlino","Karpacz","Kartuzy","Katowice","Kazimierz Dolny","Kazimierza Wielka","Kąty Wrocławskie","Kcynia","Kędzierzyn-Koźle","Kępice","Kępno","Kętrzyn","Kęty","Kielce","Kietrz","Kisielice","Kleczew","Kleszczele","Kluczbork","Kłecko","Kłobuck","Kłodawa","Kłodzko","Knurów","Knyszyn","Kobylin","Kobyłka","Kock","Kolbuszowa","Kolno","Kolonowskie","Koluszki","Kołaczyce","Koło","Kołobrzeg","Koniecpol","Konin","Konstancin-Jeziorna","Konstantynów Łódzki","Końskie","Koprzywnica","Korfantów","Koronowo","Korsze","Kosów Lacki","Kostrzyn","Kostrzyn nad Odrą","Koszalin","Kościan","Kościerzyna","Kowal","Kowalewo Pomorskie","Kowary","Koziegłowy","Kozienice","Koźmin Wielkopolski","Kożuchów","Kórnik","Krajenka","Kraków","Krapkowice","Krasnobród","Krasnystaw","Kraśnik","Krobia","Krosno","Krosno Odrzańskie","Krośniewice","Krotoszyn","Kruszwica","Krynica Morska","Krynica-Zdrój","Krynki","Krzanowice","Krzepice","Krzeszowice","Krzywiń","Krzyż Wielkopolski","Książ Wielkopolski","Kudowa-Zdrój","Kunów","Kutno","Kuźnia Raciborska","Kwidzyn","Lądek-Zdrój","Legionowo","Legnica","Lesko","Leszno","Leśna","Leśnica","Lewin Brzeski","Leżajsk","Lębork","Lędziny","Libiąż","Lidzbark","Lidzbark Warmiński","Limanowa","Lipiany","Lipno","Lipsk","Lipsko","Lubaczów","Lubań","Lubartów","Lubawa","Lubawka","Lubień Kujawski","Lubin","Lublin","Lubliniec","Lubniewice","Lubomierz","Luboń","Lubraniec","Lubsko","Lwówek","Lwówek Śląski","Łabiszyn","Łańcut","Łapy","Łasin","Łask","Łaskarzew","Łaszczów","Łaziska Górne","Łazy","Łeba","Łęczna","Łęczyca","Łęknica","Łobez","Łobżenica","Łochów","Łomianki","Łomża","Łosice","Łowicz","Łódź","Łuków","Maków Mazowiecki","Maków Podhalański","Malbork","Małogoszcz","Małomice","Margonin","Marki","Maszewo","Miasteczko Śląskie","Miastko","Michałowo","Miechów","Miejska Górka","Mielec","Mieroszów","Mieszkowice","Międzybórz","Międzychód","Międzylesie","Międzyrzec Podlaski","Międzyrzecz","Międzyzdroje","Mikołajki","Mikołów","Mikstat","Milanówek","Milicz","Miłakowo","Miłomłyn","Miłosław","Mińsk Mazowiecki","Mirosławiec","Mirsk","Mława","Młynary","Mogielnica","Mogilno","Mońki","Morąg","Mordy","Moryń","Mosina","Mrągowo","Mrocza","Mszana Dolna","Mszczonów","Murowana Goślina","Muszyna","Mysłowice","Myszków","Myszyniec","Myślenice","Myślibórz","Nakło nad Notecią","Nałęczów","Namysłów","Narol","Nasielsk","Nekla","Nidzica","Niemcza","Niemodlin","Niepołomice","Nieszawa","Nisko","Nowa Dęba","Nowa Ruda","Nowa Sarzyna","Nowa Sól","Nowe","Nowe Brzesko","Nowe Miasteczko","Nowe Miasto Lubawskie","Nowe Miasto nad Pilicą","Nowe Skalmierzyce","Nowe Warpno","Nowogard","Nowogrodziec","Nowogród","Nowogród Bobrzański","Nowy Dwór Gdański","Nowy Dwór Mazowiecki","Nowy Sącz","Nowy Staw","Nowy Targ","Nowy Tomyśl","Nowy Wiśnicz","Nysa","Oborniki","Oborniki Śląskie","Obrzycko","Odolanów","Ogrodzieniec","Okonek","Olecko","Olesno","Oleszyce","Oleśnica","Olkusz","Olsztyn","Olsztynek","Olszyna","Oława","Opalenica","Opatów","Opoczno","Opole","Opole Lubelskie","Orneta","Orzesze","Orzysz","Osieczna","Osiek","Ostrołęka","Ostroróg","Ostrowiec Świętokrzyski","Ostróda","Ostrów Lubelski","Ostrów Mazowiecka","Ostrów Wielkopolski","Ostrzeszów","Ośno Lubuskie","Oświęcim","Otmuchów","Otwock","Ozimek","Ozorków","Ożarów","Ożarów Mazowiecki","Pabianice","Paczków","Pajęczno","Pakość","Parczew","Pasłęk","Pasym","Pelplin","Pełczyce","Piaseczno","Piaski","Piastów","Piechowice","Piekary Śląskie","Pieniężno","Pieńsk","Pieszyce","Pilawa","Pilica","Pilzno","Piła","Piława Górna","Pińczów","Pionki","Piotrków Kujawski","Piotrków Trybunalski","Pisz","Piwniczna-Zdrój","Pleszew","Płock","Płońsk","Płoty","Pniewy","Pobiedziska","Poddębice","Podkowa Leśna","Pogorzela","Polanica-Zdrój","Polanów","Police","Polkowice","Połaniec","Połczyn-Zdrój","Poniatowa","Poniec","Poręba","Poznań","Prabuty","Praszka","Prochowice","Proszowice","Prószków","Pruchnik","Prudnik","Prusice","Pruszcz Gdański","Pruszków","Przasnysz","Przecław","Przedbórz","Przedecz","Przemków","Przemyśl","Przeworsk","Przysucha","Pszczyna","Pszów","Puck","Puławy","Pułtusk","Puszczykowo","Pyrzyce","Pyskowice","Pyzdry","Rabka-Zdrój","Raciąż","Racibórz","Radków","Radlin","Radłów","Radom","Radomsko","Radomyśl Wielki","Radymno","Radziejów","Radzionków","Radzymin","Radzyń Chełmiński","Radzyń Podlaski","Rajgród","Rakoniewice","Raszków","Rawa Mazowiecka","Rawicz","Recz","Reda","Rejowiec Fabryczny","Resko","Reszel","Rogoźno","Ropczyce","Różan","Ruciane-Nida","Ruda Śląska","Rudnik nad Sanem","Rumia","Rybnik","Rychwał","Rydułtowy","Rydzyna","Ryglice","Ryki","Rymanów","Ryn","Rypin","Rzepin","Rzeszów","Rzgów","Sandomierz","Sanok","Sejny","Serock","Sędziszów","Sędziszów Małopolski","Sępopol","Sępólno Krajeńskie","Sianów","Siechnice","Siedlce","Siemianowice Śląskie","Siemiatycze","Sieniawa","Sieradz","Sieraków","Sierpc","Siewierz","Skalbmierz","Skała","Skarszewy","Skaryszew","Skarżysko-Kamienna","Skawina","Skępe","Skierniewice","Skoczów","Skoki","Skórcz","Skwierzyna","Sława","Sławków","Sławno","Słomniki","Słubice","Słupca","Słupsk","Sobótka","Sochaczew","Sokołów Małopolski","Sokołów Podlaski","Sokółka","Solec Kujawski","Sompolno","Sopot","Sosnowiec","Sośnicowice","Stalowa Wola","Starachowice","Stargard Szczeciński","Starogard Gdański","Stary Sącz","Staszów","Stawiski","Stawiszyn","Stąporków","Stęszew","Stoczek Łukowski","Stronie Śląskie","Strumień","Stryków","Strzegom","Strzelce Krajeńskie","Strzelce Opolskie","Strzelin","Strzelno","Strzyżów","Sucha Beskidzka","Suchań","Suchedniów","Suchowola","Sulechów","Sulejów","Sulejówek","Sulęcin","Sulmierzyce","Sułkowice","Supraśl","Suraż","Susz","Suwałki","Swarzędz","Syców","Szadek","Szamocin","Szamotuły","Szczawnica","Szczawno-Zdrój","Szczebrzeszyn","Szczecin","Szczecinek","Szczekociny","Szczucin","Szczuczyn","Szczyrk","Szczytna","Szczytno","Szepietowo","Szklarska Poręba","Szlichtyngowa","Szprotawa","Sztum","Szubin","Szydłowiec","Ścinawa","Ślesin","Śmigiel","Śrem","Środa Śląska","Środa Wielkopolska","Świątniki Górne","Świdnica","Świdnik","Świdwin","Świebodzice","Świebodzin","Świecie","Świeradów-Zdrój","Świerzawa","Świętochłowice","Świnoujście","Tarczyn","Tarnobrzeg","Tarnogród","Tarnowskie Góry","Tarnów","Tczew","Terespol","Tłuszcz","Tolkmicko","Tomaszów Lubelski","Tomaszów Mazowiecki","Toruń","Torzym","Toszek","Trzcianka","Trzciel","Trzcińsko-Zdrój","Trzebiatów","Trzebinia","Trzebnica","Trzemeszno","Tuchola","Tuchów","Tuczno","Tuliszków","Turek","Tuszyn","Twardogóra","Tychowo","Tychy","Tyczyn","Tykocin","Tyszowce","Ujazd","Ujście","Ulanów","Uniejów","Ustka","Ustroń","Ustrzyki Dolne","Wadowice","Wałbrzych","Wałcz","Warka","Warszawa","Warta","Wasilków","Wąbrzeźno","Wąchock","Wągrowiec","Wąsosz","Wejherowo","Węgliniec","Węgorzewo","Węgorzyno","Węgrów","Wiązów","Wieleń","Wielichowo","Wieliczka","Wieluń","Wieruszów","Więcbork","Wilamowice","Wisła","Witkowo","Witnica","Wleń","Władysławowo","Włocławek","Włodawa","Włoszczowa","Wodzisław Śląski","Wojcieszów","Wojkowice","Wojnicz","Wolbórz","Wolbrom","Wolin","Wolsztyn","Wołczyn","Wołomin","Wołów","Woźniki","Wrocław","Wronki","Września","Wschowa","Wyrzysk","Wysoka","Wysokie Mazowieckie","Wyszków","Wyszogród","Wyśmierzyce","Zabłudów","Zabrze","Zagórów","Zagórz","Zakliczyn","Zakopane","Zakroczym","Zalewo","Zambrów","Zamość","Zator","Zawadzkie","Zawichost","Zawidów","Zawiercie","Ząbki","Ząbkowice Śląskie","Zbąszynek","Zbąszyń","Zduny","Zduńska Wola","Zdzieszowice","Zelów","Zgierz","Zgorzelec","Zielona Góra","Zielonka","Ziębice","Złocieniec","Złoczew","Złotoryja","Złotów","Złoty Stok","Zwierzyniec","Zwoleń","Żabno","Żagań","Żarki","Żarów","Żary","Żelechów","Żerków","Żmigród","Żnin","Żory","Żukowo","Żuromin","Żychlin","Żyrardów","Żywiec"]})(c3n);var JUa=c3n.exports,u3n={exports:{}};(function(t){t.exports=["#{city_name}"]})(u3n);var ZUa=u3n.exports,d3n={exports:{}};(function(t){t.exports=["#{street_prefix} #{Name.last_name}"]})(d3n);var XUa=d3n.exports,h3n={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(h3n);var eza=h3n.exports,f3n={exports:{}};(function(t){t.exports=["Polska"]})(f3n);var tza=f3n.exports;(function(t){var e={};t.exports=e,e.country=GUa,e.building_number=VUa,e.street_prefix=KUa,e.secondary_address=WUa,e.postcode=QUa,e.state=qUa,e.state_abbr=YUa,e.city_name=JUa,e.city=ZUa,e.street_name=XUa,e.street_address=eza,e.default_country=tza})(t3n);var nza=t3n.exports,p3n={exports:{}},m3n={exports:{}};(function(t){t.exports=["Inc","and Sons","LLC","Group"]})(m3n);var rza=m3n.exports,g3n={exports:{}};(function(t){t.exports=["Adaptive","Advanced","Ameliorated","Assimilated","Automated","Balanced","Business-focused","Centralized","Cloned","Compatible","Configurable","Cross-group","Cross-platform","Customer-focused","Customizable","Decentralized","De-engineered","Devolved","Digitized","Distributed","Diverse","Down-sized","Enhanced","Enterprise-wide","Ergonomic","Exclusive","Expanded","Extended","Face to face","Focused","Front-line","Fully-configurable","Function-based","Fundamental","Future-proofed","Grass-roots","Horizontal","Implemented","Innovative","Integrated","Intuitive","Inverse","Managed","Mandatory","Monitored","Multi-channelled","Multi-lateral","Multi-layered","Multi-tiered","Networked","Object-based","Open-architected","Open-source","Operative","Optimized","Optional","Organic","Organized","Persevering","Persistent","Phased","Polarised","Pre-emptive","Proactive","Profit-focused","Profound","Programmable","Progressive","Public-key","Quality-focused","Reactive","Realigned","Re-contextualized","Re-engineered","Reduced","Reverse-engineered","Right-sized","Robust","Seamless","Secured","Self-enabling","Sharable","Stand-alone","Streamlined","Switchable","Synchronised","Synergistic","Synergized","Team-oriented","Total","Triple-buffered","Universal","Up-sized","Upgradable","User-centric","User-friendly","Versatile","Virtual","Visionary","Vision-oriented"]})(g3n);var iza=g3n.exports,v3n={exports:{}};(function(t){t.exports=["24 hour","24/7","3rd generation","4th generation","5th generation","6th generation","actuating","analyzing","asymmetric","asynchronous","attitude-oriented","background","bandwidth-monitored","bi-directional","bifurcated","bottom-line","clear-thinking","client-driven","client-server","coherent","cohesive","composite","context-sensitive","contextually-based","content-based","dedicated","demand-driven","didactic","directional","discrete","disintermediate","dynamic","eco-centric","empowering","encompassing","even-keeled","executive","explicit","exuding","fault-tolerant","foreground","fresh-thinking","full-range","global","grid-enabled","heuristic","high-level","holistic","homogeneous","human-resource","hybrid","impactful","incremental","intangible","interactive","intermediate","leading edge","local","logistical","maximized","methodical","mission-critical","mobile","modular","motivating","multimedia","multi-state","multi-tasking","national","needs-based","neutral","next generation","non-volatile","object-oriented","optimal","optimizing","radical","real-time","reciprocal","regional","responsive","scalable","secondary","solution-oriented","stable","static","systematic","systemic","system-worthy","tangible","tertiary","transitional","uniform","upward-trending","user-facing","value-added","web-enabled","well-modulated","zero administration","zero defect","zero tolerance"]})(v3n);var aza=v3n.exports,A3n={exports:{}};(function(t){t.exports=["ability","access","adapter","algorithm","alliance","analyzer","application","approach","architecture","archive","artificial intelligence","array","attitude","benchmark","budgetary management","capability","capacity","challenge","circuit","collaboration","complexity","concept","conglomeration","contingency","core","customer loyalty","database","data-warehouse","definition","emulation","encoding","encryption","extranet","firmware","flexibility","focus group","forecast","frame","framework","function","functionalities","Graphic Interface","groupware","Graphical User Interface","hardware","help-desk","hierarchy","hub","implementation","info-mediaries","infrastructure","initiative","installation","instruction set","interface","internet solution","intranet","knowledge user","knowledge base","local area network","leverage","matrices","matrix","methodology","middleware","migration","model","moderator","monitoring","moratorium","neural-net","open architecture","open system","orchestration","paradigm","parallelism","policy","portal","pricing structure","process improvement","product","productivity","project","projection","protocol","secured line","service-desk","software","solution","standardization","strategy","structure","success","superstructure","support","synergy","system engine","task-force","throughput","time-frame","toolset","utilisation","website","workforce"]})(A3n);var oza=A3n.exports,y3n={exports:{}};(function(t){t.exports=["implement","utilize","integrate","streamline","optimize","evolve","transform","embrace","enable","orchestrate","leverage","reinvent","aggregate","architect","enhance","incentivize","morph","empower","envisioneer","monetize","harness","facilitate","seize","disintermediate","synergize","strategize","deploy","brand","grow","target","syndicate","synthesize","deliver","mesh","incubate","engage","maximize","benchmark","expedite","reintermediate","whiteboard","visualize","repurpose","innovate","scale","unleash","drive","extend","engineer","revolutionize","generate","exploit","transition","e-enable","iterate","cultivate","matrix","productize","redefine","recontextualize"]})(y3n);var sza=y3n.exports,b3n={exports:{}};(function(t){t.exports=["clicks-and-mortar","value-added","vertical","proactive","robust","revolutionary","scalable","leading-edge","innovative","intuitive","strategic","e-business","mission-critical","sticky","one-to-one","24/7","end-to-end","global","B2B","B2C","granular","frictionless","virtual","viral","dynamic","24/365","best-of-breed","killer","magnetic","bleeding-edge","web-enabled","interactive","dot-com","sexy","back-end","real-time","efficient","front-end","distributed","seamless","extensible","turn-key","world-class","open-source","cross-platform","cross-media","synergistic","bricks-and-clicks","out-of-the-box","enterprise","integrated","impactful","wireless","transparent","next-generation","cutting-edge","user-centric","visionary","customized","ubiquitous","plug-and-play","collaborative","compelling","holistic","rich"]})(b3n);var lza=b3n.exports,x3n={exports:{}};(function(t){t.exports=["synergies","web-readiness","paradigms","markets","partnerships","infrastructures","platforms","initiatives","channels","eyeballs","communities","ROI","solutions","e-tailers","e-services","action-items","portals","niches","technologies","content","vortals","supply-chains","convergence","relationships","architectures","interfaces","e-markets","e-commerce","systems","bandwidth","infomediaries","models","mindshare","deliverables","users","schemas","networks","applications","metrics","e-business","functionalities","experiences","web services","methodologies"]})(x3n);var cza=x3n.exports,E3n={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} and #{Name.last_name}"]})(E3n);var uza=E3n.exports;(function(t){var e={};t.exports=e,e.suffix=rza,e.adjetive=iza,e.descriptor=aza,e.noun=oza,e.bs_verb=sza,e.bs_adjective=lza,e.bs_noun=cza,e.name=uza})(p3n);var dza=p3n.exports,S3n={exports:{}},w3n={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(w3n);var hza=w3n.exports,_3n={exports:{}};(function(t){t.exports=["com","pl","com.pl","net","org"]})(_3n);var fza=_3n.exports;(function(t){var e={};t.exports=e,e.free_email=hza,e.domain_suffix=fza})(S3n);var pza=S3n.exports,T3n={exports:{}},C3n={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(C3n);var mza=C3n.exports;(function(t){var e={};t.exports=e,e.words=mza})(T3n);var gza=T3n.exports,k3n={exports:{}},R3n={exports:{}};(function(t){t.exports=["12-###-##-##","13-###-##-##","14-###-##-##","15-###-##-##","16-###-##-##","17-###-##-##","18-###-##-##","22-###-##-##","23-###-##-##","24-###-##-##","25-###-##-##","29-###-##-##","32-###-##-##","33-###-##-##","34-###-##-##","41-###-##-##","42-###-##-##","43-###-##-##","44-###-##-##","46-###-##-##","48-###-##-##","52-###-##-##","54-###-##-##","55-###-##-##","56-###-##-##","58-###-##-##","59-###-##-##","61-###-##-##","62-###-##-##","63-###-##-##","65-###-##-##","67-###-##-##","68-###-##-##","71-###-##-##","74-###-##-##","75-###-##-##","76-###-##-##","77-###-##-##","81-###-##-##","82-###-##-##","83-###-##-##","84-###-##-##","85-###-##-##","86-###-##-##","87-###-##-##","89-###-##-##","91-###-##-##","94-###-##-##","95-###-##-##"]})(R3n);var vza=R3n.exports;(function(t){var e={};t.exports=e,e.formats=vza})(k3n);var Aza=k3n.exports,M3n={exports:{}},N3n={exports:{}};(function(t){t.exports=["50#-###-###","51#-###-###","53#-###-###","57#-###-###","60#-###-###","66#-###-###","69#-###-###","72#-###-###","73#-###-###","78#-###-###","79#-###-###","88#-###-###"]})(N3n);var yza=N3n.exports;(function(t){var e={};t.exports=e,e.formats=yza})(M3n);var bza=M3n.exports;(function(t){var e={};t.exports=e,e.title="Polish",e.name=zUa,e.address=nza,e.company=dza,e.internet=pza,e.lorem=gza,e.phone_number=Aza,e.cell_phone=bza})(qIn);var xza=qIn.exports,I3n={exports:{}},P3n={exports:{}},O3n={exports:{}};(function(t){t.exports=[]})(O3n);var Eza=O3n.exports,L3n={exports:{}};(function(t){t.exports=[" do Descoberto"," de Nossa Senhora"," do Norte"," do Sul"]})(L3n);var Sza=L3n.exports,B3n={exports:{}};(function(t){t.exports=["Afeganistão","Albânia","Algéria","Samoa","Andorra","Angola","Anguila","Antigua and Barbada","Argentina","Armênia","Aruba","Austrália","Áustria","Azerbaijão","Bahamas","Barém","Bangladesh","Barbados","Bélgica","Belize","Benin","Bermuda","Butão","Bolívia","Bôsnia","Botsuana","Ilha Bouvet","Brasil","Arquipélago de Chagos","Ilhas Virgens","Brunei","Bulgária","Burkina Faso","Burundi","Camboja","Camarões","Canadá","Cabo Verde","Ilhas Caiman","República da África Central","Chade","Chile","China","Ilha do Natal","Ilhas Cocos","Colômbia","Comores","Congo","Ilhas Cook","Costa Rica","Costa do Marfim","Croácia","Cuba","Chipre","República Tcheca","Dinamarca","Jibuti","Dominica","República Dominicana","Equador","Egito","El Salvador","Guiné Equatorial","Eritreia","Estônia","Etiópia","Ilhas Faroe","Malvinas","Fiji","Finlândia","França","Guiné Francesa","Polinésia Francesa","Gabão","Gâmbia","Georgia","Alemanha","Gana","Gibraltar","Grécia","Groelândia","Granada","Guadalupe","Guatemala","Guernesey","Guiné","Guiné-Bissau","Guiana","Haiti","Ilhas Heard e McDonald","Vaticano","Honduras","Hong Kong","Hungria","Islândia","Índia","Indonésia","Irã","Iraque","Irlanda","Ilha de Man","Israel","Itália","Jamaica","Japão","Jersey","Jordânia","Cazaquistão","Quênia","Quiribati","Coreia do Norte","Coreia do Sul","Kuwait","Quirguistão","Laos","Latvia","Líbano","Lesoto","Libéria","Líbia","Liechtenstein","Lituânia","Luxemburgo","Macao","Macedônia","Madagascar","Malawi","Malásia","Maldives","Mali","Malta","Ilhas Marshall","Martinica","Mauritânia","Maurícia","Maiote","México","Micronésia","Moldávia","Mônaco","Mongólia","Montenegro","Montserrat","Marrocos","Moçambique","Myanmar","Namibia","Nauru","Nepal","Antilhas Holandesas","Holanda","Nova Caledonia","Nova Zelândia","Nicarágua","Nigéria","Niue","Ilha Norfolk","Marianas Setentrionais","Noruega","Omã","Paquistão","Palau","Território da Palestina","Panamá","Papua-Nova Guiné","Paraguai","Peru","Filipinas","Polônia","Portugal","Porto Rico","Qatar","Romênia","Rússia","Ruanda","São Bartolomeu","Santa Helena","Santa Lúcia","São Martinho","São Pedro e Miquelão","São Vicente e Granadinas","Samoa","San Marino","Sao Tomé e Príncipe","Arábia Saudita","Senegal","Sérvia","Seicheles","Serra Leoa","Singapura","Eslováquia","Eslovênia","Ilhas Salomão","Somália","África do Sul","Ilhas Geórgia do Sul e Sandwich do Sul","Espanha","Sri Lanka","Sudão","Suriname","Ilhas Svalbard & Jan Mayen","Suazilândia","Suécia","Suíça","Síria","Taiwan","Tajiquistão","Tanzânia","Tailândia","Timor-Leste","Togo","Toquelau","Tonga","Trinidad e Tobago","Tunísia","Turquia","Turcomenistão","Turcas e Caicos","Tuvalu","Uganda","Ucrânia","Emirados Árabes Unidos","Reino Unido","Estados Unidos da América","Estados Unidos das Ilhas Virgens","Uruguai","Uzbequistão","Vanuatu","Venezuela","Vietnã","Wallis e Futuna","Iêmen","Zâmbia","Zimbábue"]})(B3n);var wza=B3n.exports,D3n={exports:{}};(function(t){t.exports=["#####","####","###"]})(D3n);var _za=D3n.exports,$3n={exports:{}};(function(t){t.exports=["Rua","Avenida","Travessa","Alameda","Marginal","Rodovia"]})($3n);var Tza=$3n.exports,F3n={exports:{}};(function(t){t.exports=["Apto. ###","Sobrado ##","Casa #","Lote ##","Quadra ##"]})(F3n);var Cza=F3n.exports,j3n={exports:{}};(function(t){t.exports=["#####-###"]})(j3n);var kza=j3n.exports,H3n={exports:{}};(function(t){t.exports=["Acre","Alagoas","Amapá","Amazonas","Bahia","Ceará","Distrito Federal","Espírito Santo","Goiás","Maranhão","Mato Grosso","Mato Grosso do Sul","Minas Gerais","Pará","Paraíba","Paraná","Pernambuco","Piauí","Rio de Janeiro","Rio Grande do Norte","Rio Grande do Sul","Rondônia","Roraima","Santa Catarina","São Paulo","Sergipe","Tocantins"]})(H3n);var Rza=H3n.exports,U3n={exports:{}};(function(t){t.exports=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"]})(U3n);var Mza=U3n.exports,z3n={exports:{}};(function(t){t.exports=["Brasil"]})(z3n);var Nza=z3n.exports;(function(t){var e={};t.exports=e,e.city_prefix=Eza,e.city_suffix=Sza,e.country=wza,e.building_number=_za,e.street_suffix=Tza,e.secondary_address=Cza,e.postcode=kza,e.state=Rza,e.state_abbr=Mza,e.default_country=Nza})(P3n);var Iza=P3n.exports,G3n={exports:{}},V3n={exports:{}};(function(t){t.exports=["S.A.","LTDA","EIRELI","e Associados","Comércio"]})(V3n);var Pza=V3n.exports,K3n={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} e #{Name.last_name}"]})(K3n);var Oza=K3n.exports;(function(t){var e={};t.exports=e,e.suffix=Pza,e.name=Oza})(G3n);var Lza=G3n.exports,W3n={exports:{}},Q3n={exports:{}};(function(t){t.exports=["amarelo","âmbar","ametista","azul","azul celeste","azul marinho","azul petróleo","açafrão","bordô","bronze","caramelo","castanho ","cenoura","cinza","cobre","coral","dourado","escarlate","esmeralda","ferrugem","fuligem","fúchsia","grená","índigo","jade","laranja","lilás","limão","madeira","magenta","marrom","ouro","pele","prata","preto","púrpura","rosa","roxo","salmão","turquesa","verde","verde lima","verde-azulado","vermelho","violeta"]})(Q3n);var Bza=Q3n.exports,q3n={exports:{}};(function(t){t.exports=["Livros","Filmes","Música","Jogos","Eletrônicos","Computadores","Casa","Jardim","Ferramentas","Mercearia","Saúde","Beleza","Brinquedos","Crianças","Bebê","Roupas","Sapatos","Jóias","Esportes","Turismo","Automotivo","Industrial"]})(q3n);var Dza=q3n.exports,Y3n={exports:{}};(function(t){t.exports={adjective:["Pequeno","Ergonômico","Rústico","Inteligente","Lindo","Incrível","Fantástico","Prático","Lustroso","Impressionante","Genérico","Feito à mão","Licenciado","Refinado","Sem marca","Gostoso"],material:["Aço","Madeira","Concreto","Plástico","Algodão","Granito","Borracha","Metal","Macio","Fresco","Congelado"],product:["Cadeira","Carro","Computador","Teclado","Mouse","Bicicleta","Bola","Luvas","Calças","Camiseta","Mesa","Sapatos","Chapéu","Toalhas","Sabonete","Atum","Frango","Peixe","Queijo","Bacon","Pizza","Salada","Salsicha","Salgadinhos"]}})(Y3n);var $za=Y3n.exports;(function(t){var e={};t.exports=e,e.color=Bza,e.department=Dza,e.product_name=$za})(W3n);var Fza=W3n.exports,J3n={exports:{}},Z3n={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com","live.com","bol.com.br"]})(Z3n);var jza=Z3n.exports,X3n={exports:{}};(function(t){t.exports=["br","com","biz","info","name","net","org"]})(X3n);var Hza=X3n.exports;(function(t){var e={};t.exports=e,e.free_email=jza,e.domain_suffix=Hza})(J3n);var Uza=J3n.exports,e5n={exports:{}},t5n={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(t5n);var zza=t5n.exports;(function(t){var e={};t.exports=e,e.words=zza})(e5n);var Gza=e5n.exports,n5n={exports:{}},r5n={exports:{}};(function(t){t.exports=["Alessandro","Alexandre","Anthony","Antônio","Arthur","Benjamin","Benício","Bernardo","Breno","Bryan","Caio","Calebe","Carlos","Cauã","César","Daniel","Danilo","Davi","Davi Lucca","Deneval","Eduardo","Elísio","Emanuel","Enzo","Enzo Gabriel","Fabiano","Fabrício","Feliciano","Felipe","Frederico","Fábio","Félix","Gabriel","Gael","Guilherme","Gustavo","Gúbio","Heitor","Henrique","Hugo","Hélio","Isaac","Joaquim","João","João Lucas","João Miguel","João Pedro","Júlio","Júlio César","Kléber","Ladislau","Leonardo","Lorenzo","Lucas","Lucca","Marcelo","Marcos","Matheus","Miguel","Murilo","Nataniel","Nicolas","Noah","Norberto","Pablo","Paulo","Pedro","Pedro Henrique","Pietro","Rafael","Raul","Ricardo","Roberto","Salvador","Samuel","Silas","Sirineu","Tertuliano","Théo","Vicente","Vitor","Víctor","Warley","Washington","Yago","Yango","Yuri","Ígor"]})(r5n);var Vza=r5n.exports,i5n={exports:{}};(function(t){t.exports=["Alessandra","Alice","Aline","Alícia","Ana Clara","Ana Júlia","Ana Laura","Ana Luiza","Antonella","Beatriz","Bruna","Carla","Cecília","Clara","Célia","Dalila","Eduarda","Elisa","Eloá","Emanuelly","Esther","Fabrícia","Felícia","Giovanna","Helena","Heloísa","Isabel","Isabela","Isabella","Isabelly","Isis","Janaína","Joana","Júlia","Karla","Lara","Larissa","Laura","Lavínia","Liz","Lorena","Lorraine","Luiza","Lívia","Maitê","Manuela","Marcela","Margarida","Maria","Maria Alice","Maria Cecília","Maria Clara","Maria Eduarda","Maria Helena","Maria Júlia","Maria Luiza","Mariana","Marina","Marli","Meire","Melissa","Morgana","Márcia","Mércia","Natália","Núbia","Ofélia","Paula","Rafaela","Rebeca","Roberta","Sara","Sarah","Sophia","Suélen","Sílvia","Talita","Valentina","Vitória","Yasmin"]})(i5n);var Kza=i5n.exports,a5n={exports:{}};(function(t){t.exports=["Alessandra","Alessandro","Alexandre","Alice","Aline","Alícia","Ana Clara","Ana Júlia","Ana Laura","Ana Luiza","Anthony","Antonella","Antônio","Arthur","Beatriz","Benjamin","Benício","Bernardo","Breno","Bruna","Bryan","Caio","Calebe","Carla","Carlos","Cauã","Cecília","Clara","Célia","César","Dalila","Daniel","Danilo","Davi","Davi Lucca","Deneval","Eduarda","Eduardo","Elisa","Eloá","Elísio","Emanuel","Emanuelly","Enzo","Enzo Gabriel","Esther","Fabiano","Fabrícia","Fabrício","Feliciano","Felipe","Felícia","Frederico","Fábio","Félix","Gabriel","Gael","Giovanna","Guilherme","Gustavo","Gúbio","Heitor","Helena","Heloísa","Henrique","Hugo","Hélio","Isaac","Isabel","Isabela","Isabella","Isabelly","Isadora","Isis","Janaína","Joana","Joaquim","João","João Lucas","João Miguel","João Pedro","Júlia","Júlio","Júlio César","Karla","Kléber","Ladislau","Lara","Larissa","Laura","Lavínia","Leonardo","Liz","Lorena","Lorenzo","Lorraine","Lucas","Lucca","Luiza","Lívia","Maitê","Manuela","Marcela","Marcelo","Marcos","Margarida","Maria","Maria Alice","Maria Cecília","Maria Clara","Maria Eduarda","Maria Helena","Maria Júlia","Maria Luiza","Mariana","Marina","Marli","Matheus","Meire","Melissa","Miguel","Morgana","Murilo","Márcia","Mércia","Nataniel","Natália","Nicolas","Noah","Norberto","Núbia","Ofélia","Pablo","Paula","Paulo","Pedro","Pedro Henrique","Pietro","Rafael","Rafaela","Raul","Rebeca","Ricardo","Roberta","Roberto","Salvador","Samuel","Sara","Sarah","Silas","Sirineu","Sophia","Suélen","Sílvia","Talita","Tertuliano","Théo","Valentina","Vicente","Vitor","Vitória","Víctor","Warley","Washington","Yago","Yango","Yasmin","Yuri","Ígor"]})(a5n);var Wza=a5n.exports,o5n={exports:{}};(function(t){t.exports=["Silva","Souza","Carvalho","Santos","Reis","Xavier","Franco","Braga","Macedo","Batista","Barros","Moraes","Costa","Pereira","Carvalho","Melo","Saraiva","Nogueira","Oliveira","Martins","Moreira","Albuquerque"]})(o5n);var Qza=o5n.exports,s5n={exports:{}};(function(t){t.exports=["Sr.","Sra.","Srta.","Dr.","Dra."]})(s5n);var qza=s5n.exports,l5n={exports:{}};(function(t){t.exports=["Jr.","Neto","Filho"]})(l5n);var Yza=l5n.exports;(function(t){var e={};t.exports=e,e.male_first_name=Vza,e.female_first_name=Kza,e.first_name=Wza,e.last_name=Qza,e.prefix=qza,e.suffix=Yza})(n5n);var Jza=n5n.exports,c5n={exports:{}},u5n={exports:{}};(function(t){t.exports=["(##) ####-####","+55 (##) ####-####","(##) #####-####"]})(u5n);var Zza=u5n.exports;(function(t){var e={};t.exports=e,e.formats=Zza})(c5n);var Xza=c5n.exports,d5n={exports:{}},h5n={exports:{}};(function(t){t.exports={wide:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],wide_context:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],abbr:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],abbr_context:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}})(h5n);var eGa=h5n.exports,f5n={exports:{}};(function(t){t.exports={wide:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],wide_context:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],abbr:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],abbr_context:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"]}})(f5n);var tGa=f5n.exports;(function(t){var e={};t.exports=e,e.month=eGa,e.weekday=tGa})(d5n);var nGa=d5n.exports;(function(t){var e={};t.exports=e,e.title="Portuguese (Brazil)",e.address=Iza,e.company=Lza,e.commerce=Fza,e.internet=Uza,e.lorem=Gza,e.name=Jza,e.phone_number=Xza,e.date=nGa})(I3n);var rGa=I3n.exports,p5n={exports:{}},m5n={exports:{}},g5n={exports:{}};(function(t){t.exports=["África do Sul","Áustria","Índia","Afeganistão","Albânia","Alemanha","Andorra","Angola","Anguila","Antárctida","Antígua e Barbuda","Antilhas Neerlandesas","Arábia Saudita","Argélia","Argentina","Arménia","Aruba","Austrália","Azerbaijão","Bélgica","Bósnia e Herzegovina","Baamas","Bangladeche","Barém","Barbados","Belize","Benim","Bermudas","Bielorrússia","Birmânia","Bolívia","Botsuana","Brasil","Brunei","Bulgária","Burúndi","Burquina Faso","Butão","Cabo Verde","Camarões","Camboja","Canadá","Catar","Cazaquistão","Chade","Chile","China","Chipre","Colômbia","Comores","Congo-Brazzaville","Congo-Kinshasa","Coreia do Norte","Coreia do Sul","Costa Rica","Costa do Marfim","Croácia","Cuba","Dinamarca","Domínica","Egipto","Emiratos Árabes Unidos","Equador","Eritreia","Eslováquia","Eslovénia","Espanha","Estónia","Estados Unidos","Etiópia","Faroé","Fiji","Filipinas","Finlândia","França","Gâmbia","Gabão","Gana","Geórgia","Geórgia do Sul e Sandwich do Sul","Gibraltar","Grécia","Granada","Gronelândia","Guadalupe","Guame","Guatemala","Guiana","Guiana Francesa","Guiné","Guiné Equatorial","Guiné-Bissau","Haiti","Honduras","Hong Kong","Hungria","Iémen","Ilha Bouvet","Ilha Norfolk","Ilha do Natal","Ilhas Caimão","Ilhas Cook","Ilhas Falkland","Ilhas Heard e McDonald","Ilhas Marshall","Ilhas Menores Distantes dos Estados Unidos","Ilhas Salomão","Ilhas Turcas e Caicos","Ilhas Virgens Americanas","Ilhas Virgens Britânicas","Ilhas dos Cocos","Indonésia","Irão","Iraque","Irlanda","Islândia","Israel","Itália","Jamaica","Japão","Jibuti","Jordânia","Jugoslávia","Kuwait","Líbano","Líbia","Laos","Lesoto","Letónia","Libéria","Listenstaine","Lituânia","Luxemburgo","México","Mónaco","Macau","Macedónia","Madagáscar","Malásia","Malávi","Maldivas","Mali","Malta","Marianas do Norte","Marrocos","Martinica","Maurícia","Mauritânia","Mayotte","Micronésia","Moçambique","Moldávia","Mongólia","Monserrate","Níger","Namíbia","Nauru","Nepal","Nicarágua","Nigéria","Niue","Noruega","Nova Caledónia","Nova Zelândia","Omã","Países Baixos","Palau","Panamá","Papua-Nova Guiné","Paquistão","Paraguai","Peru","Pitcairn","Polónia","Polinésia Francesa","Porto Rico","Portugal","Quénia","Quirguizistão","Quiribáti","Rússia","Reino Unido","República Centro-Africana","República Checa","República Dominicana","Reunião","Roménia","Ruanda","São Cristóvão e Neves","São Marinho","São Pedro e Miquelon","São Tomé e Príncipe","São Vicente e Granadinas","Síria","Salvador","Samoa","Samoa Americana","Santa Helena","Santa Lúcia","Sara Ocidental","Seicheles","Senegal","Serra Leoa","Singapura","Somália","Sri Lanca","Suécia","Suíça","Suazilândia","Sudão","Suriname","Svalbard e Jan Mayen","Tailândia","Taiwan","Tajiquistão","Tanzânia","Território Britânico do Oceano Índico","Territórios Austrais Franceses","Timor Leste","Togo","Tokelau","Tonga","Trindade e Tobago","Tunísia","Turquemenistão","Turquia","Tuvalu","Ucrânia","Uganda","Uruguai","Usbequistão","Vanuatu","Vaticano","Venezuela","Vietname","Wallis e Futuna","Zâmbia","Zimbabué"]})(g5n);var iGa=g5n.exports,v5n={exports:{}};(function(t){t.exports=["#{street_prefix} #{Name.first_name} #{Name.last_name}","N#","N##","N###","N###-#"]})(v5n);var aGa=v5n.exports,A5n={exports:{}};(function(t){t.exports=["####","###","##","#"]})(A5n);var oGa=A5n.exports,y5n={exports:{}};(function(t){t.exports=["Acesso","Alameda","Avenida","Azinhaga","Bairro","Beco","Calçada","Caminho","Escadas","Estrada","Jardim","Ladeira","Largo","Praça","Praceta","Quinta","Rua","Travessa","Urbanização","Viela"]})(y5n);var sGa=y5n.exports,b5n={exports:{}};(function(t){t.exports=["####-###"]})(b5n);var lGa=b5n.exports,x5n={exports:{}};(function(t){t.exports=[]})(x5n);var cGa=x5n.exports,E5n={exports:{}};(function(t){t.exports=["Abrantes","Agualva-Cacém","Águeda","Albufeira","Alcácer do Sal","Alcobaça","Alfena","Almada","Almeirim","Amadora","Amarante","Amora","Anadia","Angra do Heroísmo","Aveiro","Barcelos","Barreiro","Beja","Braga","Bragança","Caldas da Rainha","Câmara de Lobos","Caniço","Cantanhede","Cartaxo","Castelo Branco","Chaves","Coimbra","Costa da Caparica","Covilhã","Elvas","Entroncamento","Ermesinde","Esmoriz","Espinho","Esposende","Estarreja","Estremoz","Évora","Fafe","Faro","Fátima","Felgueiras","Fiães","Figueira da Foz","Freamunde","Funchal","Fundão","Gafanha da Nazaré","Gandra","Gondomar","Gouveia","Guarda","Guimarães","Horta","Ílhavo","Lagoa","Lagos","Lamego","Leiria","Lisbon","Lixa","Loulé","Loures","Lourosa","Macedo de Cavaleiros","Machico","Maia","Mangualde","Marco de Canaveses","Marinha Grande","Matosinhos","Mealhada","Mêda","Miranda do Douro","Mirandela","Montemor-o-Novo","Montijo","Moura","Odivelas","Olhão da Restauração","Oliveira de Azeméis","Oliveira do Bairro","Oliveira do Hospital","Ourém","Ovar","Paços de Ferreira","Paredes","Penafiel","Peniche","Peso da Régua","Pinhel","Pombal","Ponta Delgada","Ponte de Sor","Portalegre","Portimão","Porto","Póvoa de Santa Iria","Póvoa de Varzim","Praia da Vitória","Quarteira","Queluz","Rebordosa","Reguengos de Monsaraz","Ribeira Grande","Rio Maior","Rio Tinto","Sabugal","Sacavém","Santa Comba Dão","Santa Cruz","Santa Maria da Feira","Santana","Santarém","Santiago do Cacém","Santo Tirso","São João da Madeira","São Mamede de Infesta","São Salvador de Lordelo","Seia","Seixal","Serpa","Setúbal","Silves","Sines","Tarouca","Tavira","Tomar","Tondela","Torres Novas","Torres Vedras","Trancoso","Trofa","Valbom","Vale de Cambra","Valongo","Valpaços","Vendas Novas","Viana do Castelo","Vila Baleira (a.k.a. Porto Santo)","Vila do Conde","Vila Franca de Xira","Vila Nova de Famalicão","Vila Nova de Foz Côa","Vila Nova de Gaia","Vila Nova de Santo André","Vila Real","Vila Real de Santo António","Viseu","Vizela"]})(E5n);var uGa=E5n.exports,S5n={exports:{}};(function(t){t.exports=[]})(S5n);var dGa=S5n.exports,w5n={exports:{}};(function(t){t.exports=["#{city_name}"]})(w5n);var hGa=w5n.exports,_5n={exports:{}};(function(t){t.exports=["Norte","Este","Sul","Oeste","Nordeste","Noroeste","Sudeste","Sodoeste"]})(_5n);var fGa=_5n.exports,T5n={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(T5n);var pGa=T5n.exports,C5n={exports:{}};(function(t){t.exports=["Portugal"]})(C5n);var mGa=C5n.exports;(function(t){var e={};t.exports=e,e.country=iGa,e.street_name=aGa,e.building_number=oGa,e.street_prefix=sGa,e.postcode=lGa,e.city_prefix=cGa,e.city_name=uGa,e.city_suffix=dGa,e.city=hGa,e.direction=fGa,e.street_address=pGa,e.default_country=mGa})(m5n);var gGa=m5n.exports,k5n={exports:{}},R5n={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com","outlook.com","live.com","portugalmail.pt","mail.pt","sapo.pt","aeiou.pt"]})(R5n);var vGa=R5n.exports,M5n={exports:{}};(function(t){t.exports=["pt","gov.pt","com.pt","org.pt","eu","com","biz","info","name","net","org"]})(M5n);var AGa=M5n.exports;(function(t){var e={};t.exports=e,e.free_email=vGa,e.domain_suffix=AGa})(k5n);var yGa=k5n.exports,N5n={exports:{}},I5n={exports:{}};(function(t){t.exports=["Sr.","Dr.","Prof.","Eng.º"]})(I5n);var bGa=I5n.exports,P5n={exports:{}};(function(t){t.exports=["Afonso","Alexandre","André","Ângelo","António","Artur","Benjamim","Bernardo","Bruno","Carlos","César","Cristiano","Daniel","David","Dinis","Diogo","Duarte","Edgar","Eduardo","Elias","Emanuel","Fábio","Feliciano","Fernando","Filipe","Francisco","Frederico","Gabriel","Gaspar","Gil","Gonçalo","Guilherme","Gustavo","Hélio","Henrique","Hugo","Igor","Ígor","Isac","Ivan","Ivo","Jaime","João","Joaquim","Jorge","José","Josué","Júlio","Leandro","Leonardo","Lourenço","Lucas","Luís","Manel","Manuel","Marcelo","Marco","Marcos","Mário","Martim","Mateus","Matias","Mauro","Micael","Miguel","Moisés","Norberto","Nuno","Paulo","Pedro","Rafael","Raul","Renato","Ricardo","Roberto","Rodrigo","Romeu","Rúben","Rui","Salvador","Samuel","Sandro","Santiago","Sebastião","Sérgio","Simão","Tiago","Tomás","Tomé","Valentim","Valter","Vasco","Vicente","Vítor","Xavier"]})(P5n);var xGa=P5n.exports,O5n={exports:{}};(function(t){t.exports=["Sra.","Dra.","Prof.ª","Eng.ª"]})(O5n);var EGa=O5n.exports,L5n={exports:{}};(function(t){t.exports=["Adriana","Alexandra","Alice","Amélia","Ana","Ariana","Áurea","Aurora","Bárbara","Beatriz","Benedita","Bruna","Caetana","Camila","Carla","Carlota","Carminho","Carmo","Carolina","Catarina","Cecília","Célia","Clara","Constança","Daniela","Débora","Diana","Eduarda","Elisa","Ema","Emília","Érica","Eva","Fabiana","Filipa","Flor","Francisca","Frederica","Gabriela","Helena","Inês","Irina","Íris","Isabel","Jéssica","Joana","Júlia","Juliana","Julieta","Lara","Laura","Leonor","Letícia","Lia","Lorena","Luana","Luena","Luísa","Luna","Madalena","Mafalda","Mara","Márcia","Margarida","Maria","Mariana","Marta","Matilde","Melissa","Mia","Miriam","Natália","Nicole","Núria","Ofélia","Olívia","Paula","Pilar","Rafaela","Raquel","Rita","Rosa","Safira","Sara","Sílvia","Sofia","Soraia","Tatiana","Teresa","Valentina","Vânia","Vera","Vitória"]})(L5n);var SGa=L5n.exports,B5n={exports:{}};(function(t){t.exports=["Adriana","Afonso","Alexandra","Alexandre","Alice","Amélia","Ana","André","Ângelo","António","Ariana","Artur","Áurea","Aurora","Bárbara","Beatriz","Benedita","Benjamim","Bernardo","Bruna","Bruno","Caetana","Camila","Carla","Carlos","Carlota","Carminho","Carmo","Carolina","Catarina","Cecília","Célia","César","Clara","Constança","Cristiano","Daniel","Daniela","David","Débora","Diana","Dinis","Diogo","Duarte","Edgar","Eduarda","Eduardo","Elias","Elisa","Ema","Emanuel","Emília","Érica","Eva","Fabiana","Fábio","Feliciano","Fernando","Filipa","Filipe","Flor","Francisca","Francisco","Frederica","Frederico","Gabriel","Gabriela","Gaspar","Gil","Gonçalo","Guilherme","Gustavo","Helena","Hélio","Henrique","Hugo","Igor","Ígor","Inês","Irina","Íris","Isabel","Isac","Ivan","Ivo","Jaime","Jéssica","Joana","João","Joaquim","Jorge","José","Josué","Júlia","Juliana","Julieta","Júlio","Lara","Laura","Leandro","Leonardo","Leonor","Letícia","Lia","Lorena","Lourenço","Luana","Lucas","Luena","Luís","Luísa","Luna","Madalena","Mafalda","Manel","Manuel","Mara","Marcelo","Márcia","Marco","Marcos","Margarida","Maria","Mariana","Mário","Marta","Martim","Mateus","Matias","Matilde","Mauro","Melissa","Mia","Micael","Miguel","Miriam","Moisés","Natália","Nicole","Norberto","Nuno","Núria","Ofélia","Olívia","Paula","Paulo","Pedro","Pilar","Rafael","Rafaela","Raquel","Raul","Renato","Ricardo","Rita","Roberto","Rodrigo","Romeu","Rosa","Rúben","Rui","Safira","Salvador","Samuel","Sandro","Santiago","Sara","Sebastião","Sérgio","Sílvia","Simão","Sofia","Soraia","Tatiana","Teresa","Tiago","Tomás","Tomé","Valentim","Valentina","Valter","Vânia","Vasco","Vera","Vicente","Vítor","Vitória","Xavier"]})(B5n);var wGa=B5n.exports,D5n={exports:{}};(function(t){t.exports=["Abreu","Albuquerque","Almeida","Alves","Amaral","Amorim","Andrade","Anjos","Antunes","Araújo","Assunção","Azevedo","Baptista","Barbosa","Barros","Batista","Borges","Braga","Branco","Brito","Campos","Cardoso","Carneiro","Carvalho","Castro","Coelho","Correia","Costa","Cruz","Cunha","Domingues","Esteves","Faria","Fernandes","Ferreira","Figueiredo","Fonseca","Freitas","Garcia","Gaspar","Gomes","Gonçalves","Guerreiro","Henriques","Jesus","Leal","Leite","Lima","Lopes","Loureiro","Lourenço","Macedo","Machado","Magalhães","Maia","Marques","Martins","Matias","Matos","Melo","Mendes","Miranda","Monteiro","Morais","Moreira","Mota","Moura","Nascimento","Neto","Neves","Nobre","Nogueira","Nunes","Oliveira","Pacheco","Paiva","Pereira","Pinheiro","Pinho","Pinto","Pires","Ramos","Raposo","Reis","Ribeiro","Rocha","Rodrigues","Santos","Saraiva","Silva","Simões","Soares","Sousa","Sá","Tavares","Teixeira","Torres","Valente","Vaz","Vicente","Vieira"]})(D5n);var _Ga=D5n.exports,$5n={exports:{}};(function(t){t.exports=["#{female_prefix}","#{male_prefix}"]})($5n);var TGa=$5n.exports,F5n={exports:{}};(function(t){t.exports=[]})(F5n);var CGa=F5n.exports,j5n={exports:{}};(function(t){t.exports=["#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}","#{male_prefix} #{male_first_name} #{last_name}","#{female_prefix} #{female_first_name} #{last_name}"]})(j5n);var kGa=j5n.exports;(function(t){var e={};t.exports=e,e.male_prefix=bGa,e.male_first_name=xGa,e.female_prefix=EGa,e.female_first_name=SGa,e.first_name=wGa,e.last_name=_Ga,e.prefix=TGa,e.suffix=CGa,e.name=kGa})(N5n);var RGa=N5n.exports,H5n={exports:{}},U5n={exports:{}};(function(t){t.exports=["+351 2########","+351 3########","+351 91#######","+351 92#######","+351 93#######","+351 96#######"]})(U5n);var MGa=U5n.exports;(function(t){var e={};t.exports=e,e.formats=MGa})(H5n);var NGa=H5n.exports,z5n={exports:{}},G5n={exports:{}};(function(t){t.exports=["+351 91#######","+351 93#######","+351 96#######"]})(G5n);var IGa=G5n.exports;(function(t){var e={};t.exports=e,e.formats=IGa})(z5n);var PGa=z5n.exports,V5n={exports:{}},K5n={exports:{}};(function(t){t.exports=["vermelho","verde","azul","amarelo","roxo","branco","preto","laranja","rosa","cinzento","castanho","violeta","turquesa","bronzeado","salmão","ameixa","orquídea","magenta","lima","marfim","índigo","ouro","fúcsia","ciano","azure","lavanda","prata"]})(K5n);var OGa=K5n.exports,W5n={exports:{}};(function(t){t.exports=["Livros","Filmes","Música","Jogos","Electrónica","Computadores","Casa","Jardim","Ferramentas","Mercearia","Saúde","Beleza","Brinquedos","Crianças","Bebé","Roupas","Sapatos","Jóias","Desporto","Ar Livre","Automóveis","Industrial"]})(W5n);var LGa=W5n.exports,Q5n={exports:{}};(function(t){t.exports={adjective:["Pequeno","Ergonómico","Rústico","Inteligente","Linda","Incrível","Fantástico","Prático","Lustroso","Impressionante","Genérico","Artesanal","Feito à Mão","Licenciado","Refinado","Sem Marca","Saboroso"],material:["Aço","Madeira","Betão","Plástico","Algodão","Granito","Borracha","Metal","Suave","Fresco","Congelado"],product:["Cadeira","Carro","Computador","Teclado","Rato","Bicicleta","Bola","Luvas","Calças","Camisa","Mesa","Sapatos","Chapéu","Toalhas","Sabonete","Atum","Frango","Peixe","Queijo","Bacon","Pizza","Salada","Salsichas","Batatas Fritas"]}})(Q5n);var BGa=Q5n.exports;(function(t){var e={};t.exports=e,e.color=OGa,e.department=LGa,e.product_name=BGa})(V5n);var DGa=V5n.exports,q5n={exports:{}},Y5n={exports:{}};(function(t){t.exports={wide:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],abbr:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}})(Y5n);var $Ga=Y5n.exports,J5n={exports:{}};(function(t){t.exports={wide:["Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],abbr:["Seg","Ter","Qua","Qui","Sex","Sáb","Dom"]}})(J5n);var FGa=J5n.exports;(function(t){var e={};t.exports=e,e.month=$Ga,e.weekday=FGa})(q5n);var jGa=q5n.exports;(function(t){var e={};t.exports=e,e.title="Portuguese (Portugal)",e.address=gGa,e.internet=yGa,e.name=RGa,e.phone_number=NGa,e.cell_phone=PGa,e.commerce=DGa,e.date=jGa})(p5n);var HGa=p5n.exports,Z5n={exports:{}},X5n={exports:{}},ePn={exports:{}};(function(t){t.exports=["Bloc ##"]})(ePn);var UGa=ePn.exports,tPn={exports:{}};(function(t){t.exports=["București","Cluj-Napoca","Timișoara","Iași","Constanța","Craiova","Brașov","Galați","Ploiești","Oradea","Brăila","Arad","Pitești","Sibiu","Bacău","Târgu Mureș","Baia Mare","Buzău","Botoșani","Satu Mare","Râmnicu Vâlcea","Drobeta-Turnu Severin","Suceava","Piatra Neamț","Târgu Jiu","Târgoviște","Focșani","Bistrița","Reșița","Tulcea","Călărași","Alba Iulia","Giurgiu","Deva","Hunedoara","Zalău","Sfântu Gheorghe","Bârlad","Vaslui","1387","Slobozia","Turda","Mediaș","Voluntari","Lugoj","Medgidia","Onești","Miercurea Ciuc","Sighetu Marmației","Petroșani","Mangalia","Tecuci","Râmnicu Sărat","Pașcani","Dej","Reghin","Năvodari","Odorheiu Secuiesc","Câmpina","Mioveni","Câmpulung","Caracal","Săcele","Făgăraș","Fetești","Sighișoara","Borșa","Roșiorii de Vede","Curtea de Argeș","Sebeș","Huși","Fălticeni","Pantelimon","Oltenița","Turnu Măgurele","Caransebeș","Dorohoi","Rădăuți","Zărnești","Lupeni","Aiud","Petrila","Buftea","Moinești","Târnăveni","Câmpia Turzii","Popești-Leordeni","Gherla","Carei","Cugir","Blaj","Codlea","Comănești","Târgu Neamț","Motru","Târgu Secuiesc","Moreni","Gheorgheni","Băicoi","Orăștie","Salonta","Balș","Drăgășani","Băilești","Calafat","Filiași","Cernavodă","Câmpulung Moldovenesc","Breaza","Marghita","Baia Sprie","Luduș","Corabia","Adjud","Vișeu de Sus","Bragadiru","Bocșa","Râșnov","Urziceni","Pucioasa","Vatra Dornei","Cisnădie","Mizil","Toplița","Chitila","Șimleu Silvaniei","Buhuși","Vicovu de Sus","Zimnicea","Găești","Gura Humorului","Otopeni","Ocna Mureș","Avrig","Simeria","Pecica","Dăbuleni","Bolintin-Vale","Rovinari","Comarnic","Vălenii de Munte","Sânnicolau Mare","Dărmănești","Moldova Nouă","Târgu Lăpuș","Săcueni","Videle","Scornicești","Boldești-Scăeni","Sântana","Târgu Ocna","Măgurele","Călan","Beclean","Țăndărei","Sovata","Oravița","Jibou","Urlați","Hârlău","Beiuș","Ianca","Jimbolia","Topoloveni","Drăgănești-Olt","Sinaia","Nehoiu","Covasna","Negrești-Oaș","Strehaia","Dolhasca","Orșova","Valea lui Mihai","Murfatlar","Aleșd","Darabani","Cristuru Secuiesc","Flămânzi","Mărășești","Sângeorz-Băi","Liteni","Târgu Frumos","Titu","Hațeg","Oțelu Roșu","Ineu","Năsăud","Huedin","Odobești","Hârșova","Bumbești-Jiu","Seini","Salcea","Podu Iloaiei","Eforie","Uricani","Baraolt","Bușteni","Tășnad","Iernut","Agnita","Babadag","Băbeni","Târgu Cărbunești","Negrești","Recaș","Siret","Măcin","Chișineu-Criș","Plopeni","Mihăilești","Șomcuta Mare","Fieni","Întorsura Buzăului","Călimănești","Panciu","Nădlac","Zlatna","Pătârlagele","Cehu Silvaniei","Amara","Budești","Anina","Dumbrăveni","Câmpeni","Pogoanele","Tăuții-Măgherăuș","Tismana","Curtici","Techirghiol","Sărmașu","Vlăhița","Cajvana","Săveni","Segarcea","Pâncota","Răcari","Făget","Tălmaciu","Buziaș","Fundulea","Murgeni","Teiuș","Însurăței","Bicaz","Târgu Bujor","Ștei","Lehliu Gară","Horezu","Deta","Slănic","Piatra-Olt","Ardud","Bălan","Sebiș","Brezoi","Potcoava","Gătaia","Novaci","Miercurea Nirajului","Baia de Aramă","Copșa Mică","Vânju Mare","Sângeorgiu de Pădure","Geoagiu","Săliște","Ciacova","Rupea","Milișăuți","Isaccea","Abrud","Fierbinți-Târg","Cavnic","Săliștea de Sus","Băile Herculane","Bălcești","Berbești","Ghimbav","Predeal","Țicleni","Azuga","Aninoasa","Bucecea","Băile Olănești","Slănic Moldova","Miercurea Sibiului","Sulina","Baia de Arieș","Făurei","Ocna Sibiului","Bechet","Căzănești","Ocnele Mari","Berești","Borsec","Băile Govora","Vașcău","Nucet","Solca","Băile Tușnad"]})(tPn);var zGa=tPn.exports,nPn={exports:{}};(function(t){t.exports=["Alba","Arad","Arges","Bacau","Bihor","Bistrita-Nasaud","Botosani","Braila","Brasov","Bucuresti","Buzau","Calarasi","Caras-Severin","Cluj","Constanta","Covasna","Dambovita","Dolj","Galati","Giurgiu","Gorj","Harghita","Hunedoara","Ialomita","Iasi","Ilfov","Maramures","Mehedinti","Mures","Neamt","Olt","Prahova","Salaj","Satu-Mare","Sibiu","Suceava","Teleorman","Timis","Tulcea","Valcea","Vaslui","Vrancea"]})(nPn);var GGa=nPn.exports,rPn={exports:{}};(function(t){t.exports=["România"]})(rPn);var VGa=rPn.exports,iPn={exports:{}};(function(t){t.exports=["######"]})(iPn);var KGa=iPn.exports,aPn={exports:{}};(function(t){t.exports=["Ap. ##","Ap. ###"]})(aPn);var WGa=aPn.exports,oPn={exports:{}};(function(t){t.exports=["Alba","Arad","Arges","Bacau","Bihor","Bistrita-Nasaud","Botosani","Braila","Brasov","Bucuresti","Buzau","Calarasi","Caras-Severin","Cluj","Constanta","Covasna","Dambovita","Dolj","Galati","Giurgiu","Gorj","Harghita","Hunedoara","Ialomita","Iasi","Ilfov","Maramures","Mehedinti","Mures","Neamt","Olt","Prahova","Salaj","Satu-Mare","Sibiu","Suceava","Teleorman","Timis","Tulcea","Valcea","Vaslui","Vrancea"]})(oPn);var QGa=oPn.exports,sPn={exports:{}};(function(t){t.exports=["AB","AR","AG","BC","BH","BN","BT","BR","BV","B","BZ","CL","CS","CJ","CT","CV","DB","DJ","GL","GR","GJ","HR","HD","IL","IS","IF","MM","MH","MS","NT","OT","PH","SJ","SM","SB","SV","TR","TM","TL","VL","VS","VN"]})(sPn);var qGa=sPn.exports,lPn={exports:{}};(function(t){t.exports=["#{street_name}, #{building_number}, #{secondary_address}"]})(lPn);var YGa=lPn.exports,cPn={exports:{}};(function(t){t.exports=["#{street_suffix} #{streets}"]})(cPn);var JGa=cPn.exports,uPn={exports:{}};(function(t){t.exports=["Aleea","Bulevardul","Intrarea"]})(uPn);var ZGa=uPn.exports,dPn={exports:{}};(function(t){t.exports=["Capalna","Gheorghe Duca","Acvila","Lisabona","Campulung","Ilie Gurita","Succesului","Siret","Mihai Viteazul","Complexului","Chihlimbarului","Prahova","George Cosbuc","Bobalna","Eroina De La Jiu","Cucuzel Ion","Sergent Turturica","Timisul De Sus","Tuberozelor","Rulmentului","Soldat Polosca Tanase","Nabucului","Flautului","Poiana Codrului","Daia","Soldat Dima Dumitru","Bulandra Tony","Pastravilor","Eternitatii","Tufanilor","Discului","Garnitei","Costaforu","Aerogarii","Preluca","Delureni","Soldat Velicu Stefan","Ocalei","Calboranu George","Cercelus","Timocului","Alexandru Locusteanu","Pumnul Aron","Migdalului","Valului","Inginer Radu Elie","Cricovului","Mavrogheni","Bauxitei","Movilitei","Pictor Hentia Sava","Abus","Fieni","Zambetului","Izvorul Muresului","Rolei","Utiesului","Gheorghe Popescu","Radulescu Drumea","Sacele","Soimarestilor","Romeo","Voicesti","Carada Eugeniu","Barometrului","Tudorache Gheorghe","Morii","Jules Michelet","Nicolae G. Caranfil","Sergent Anghel Gheorghe","Reconstructiei","Vespasian","Tincani","Stirbei Voda","Ariesu Mare","Penelului","Piscul Vechi","Natiunile Unite","Doctor Tanasescu Ion","Stefan Greceanu","Banul Scarlat","Crinului","Domnita Florica","Plutonier Nita Ion","Soldat Ionita Stere","Rovine","Tropicelor","Matei Millo","Veronica Micle","Pictor Iser Iosif","Mitropolit Nifon","Locotenent Victor Manu","Studioului","Piatra Morii","Valea Lupului","Episcop Chesarie","Sergent Major Drag Marin","Bega","Dobrun","Fulgeresti"]})(dPn);var XGa=dPn.exports;(function(t){var e={};t.exports=e,e.building_number=UGa,e.city=zGa,e.county=GGa,e.default_country=VGa,e.postcode=KGa,e.secondary_address=WGa,e.state=QGa,e.state_abbr=qGa,e.street_address=YGa,e.street_name=JGa,e.street_suffix=ZGa,e.streets=XGa})(X5n);var eVa=X5n.exports,hPn={exports:{}},fPn={exports:{}};(function(t){t.exports=["0726######","0723######","0722######","0721######","0720######","0728######","0729######","0730######","0739######","0738######","0737######","0736######","0735######","0734######","0733######","0732######","0731######","0780######","0788######","0753######","0754######","0755######","0756######","0757######","0758######","0759######","0748######","0747######","0746######","0740######","0741######","0742######","0743######","0744######","0745######","0711######","0727######","0725######","0724######","0786######","0760######","0761######","0762######","0763######","0764######","0765######","0766######","0767######","0785######","0768######","0769######","0784######","0770######","0772######","0771######","0749######","0750######","0751######","0752######"]})(fPn);var tVa=fPn.exports;(function(t){var e={};t.exports=e,e.formats=tVa})(hPn);var nVa=hPn.exports,pPn={exports:{}},mPn={exports:{}};(function(t){t.exports={wide:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],wide_context:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],abbr:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],abbr_context:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"]}})(mPn);var rVa=mPn.exports,gPn={exports:{}};(function(t){t.exports={wide:["Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă","Duminică"],wide_context:["Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă","Duminică"],abbr:["Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă","Duminică"],abbr_context:["Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă","Duminică"]}})(gPn);var iVa=gPn.exports;(function(t){var e={};t.exports=e,e.month=rVa,e.weekday=iVa})(pPn);var aVa=pPn.exports,vPn={exports:{}},APn={exports:{}};(function(t){t.exports=["gmail.com","yahoo.com","hotmail.com"]})(APn);var oVa=APn.exports,yPn={exports:{}};(function(t){t.exports=["com","biz","info","name","net","org","ro","com.ro","org.ro","tm.ro","store.ro","info.ro","nom.ro","nt.ro","firm.ro","www.ro","arts.ro","rec.ro"]})(yPn);var sVa=yPn.exports;(function(t){var e={};t.exports=e,e.free_email=oVa,e.domain_suffix=sVa})(vPn);var lVa=vPn.exports,bPn={exports:{}},xPn={exports:{}};(function(t){t.exports=["Achim","Adam","Adelin","Adonis","Adrian","Adi","Agnos","Albert","Alex","Alexandru","Alexe","Aleodor","Alin","Alistar","Amedeu","Amza","Anatolie","Andrei","Angel","Anghel","Antim","Anton","Antonie","Antoniu","Arian","Aristide","Arsenie","Augustin","Aurel","Aurelian","Aurică","Avram","Axinte","Barbu","Bartolomeu","Basarab","Bănel","Bebe","Beniamin","Benone","Bernard","Bogdan","Brăduț","Bucur","Caius","Camil","Cantemir","Carol","Casian","Cazimir","Călin","Cătălin","Cedrin","Cezar","Ciprian","Claudiu","Codin","Codrin","Codruț","Cornel","Corneliu","Corvin","Constantin","Cosmin","Costache","Costel","Costin","Crin","Cristea","Cristian","Cristobal","Cristofor","Dacian","Damian","Dan","Daniel","Darius","David","Decebal","Denis","Dinu","Dominic","Dorel","Dorian","Dorin","Dorinel","Doru","Dragoș","Ducu","Dumitru","Edgar","Edmond","Eduard","Eftimie","Emil","Emilian","Emanoil","Emanuel","Emanuil","Eremia","Eric","Ernest","Eugen","Eusebiu","Eustațiu","Fabian","Felix","Filip","Fiodor","Flaviu","Florea","Florentin","Florian","Florin","Francisc","Frederic","Gabi","Gabriel","Gelu","George","Georgel","Georgian","Ghenadie","Gheorghe","Gheorghiță","Ghiță","Gică","Gicu","Giorgian","Grațian","Gregorian","Grigore","Haralamb","Haralambie","Horațiu","Horea","Horia","Iacob","Iancu","Ianis","Ieremia","Ilarie","Ilarion","Ilie","Inocențiu","Ioan","Ion","Ionel","Ionică","Ionuț","Iosif","Irinel","Iulian","Iuliu","Iurie","Iustin","Iustinian","Ivan","Jan","Jean","Jenel","Ladislau","Lascăr","Laurențiu","Laurian","Lazăr","Leonard","Leontin","Lică","Liviu","Lorin","Luca","Lucențiu","Lucian","Lucrețiu","Ludovic","Manole","Marcel","Marcu","Marian","Marin","Marius","Martin","Matei","Maxim","Maximilian","Mădălin","Mihai","Mihail","Mihnea","Mircea","Miron","Mitică","Mitruț","Mugur","Mugurel","Nae","Narcis","Nechifor","Nelu","Nichifor","Nicoară","Nicodim","Nicolae","Nicolaie","Nicu","Nicuță","Niculiță","Nicușor","Norbert","Norman","Octav","Octavian","Octaviu","Olimpian","Olimpiu","Oliviu","Ovidiu","Pamfil","Panait","Panagachie","Paul","Pavel","Pătru","Petre","Petrică","Petrișor","Petru","Petruț","Pompiliu","Radu","Rafael","Rareș","Raul","Răducu","Răzvan","Relu","Remus","Robert","Romeo","Romulus","Sabin","Sandu","Sava","Sebastian","Sergiu","Sever","Severin","Silvian","Silviu","Simi","Simion","Sinică","Sorin","Stan","Stancu","Stelian","Sandu","Șerban","Ștefan","Teodor","Teofil","Teohari","Theodor","Tiberiu","Timotei","Titus","Todor","Toma","Traian","Tudor","Valentin","Valeriu","Valter","Vasile","Vasilică","Veniamin","Vicențiu","Victor","Vincențiu","Viorel","Visarion","Vlad","Vladimir","Vlaicu","Voicu","Zamfir","Zeno"]})(xPn);var cVa=xPn.exports,EPn={exports:{}};(function(t){t.exports=["Ada","Adela","Adelaida","Adelina","Adina","Adriana","Agata","Aglaia","Agripina","Aida","Alberta","Albertina","Alexandra","Alexandrina","Alida","Alina","Alice","Alis","Alma","Amalia","Amelia","Amanda","Ana","Anabela","Anaida","Anamaria","Anastasia","Anca","Ancuța","Anda","Andra","Andrada","Andreea","Anemona","Aneta","Angela","Anghelina","Anica","Anișoara","Antoaneta","Antonia","Antonela","Anuța","Ariadna","Ariana","Arina","Aristița","Artemisa","Astrid","Atena","Augustina","Aura","Aurelia","Aureliana","Aurica","Aurora","Beatrice","Betina","Bianca","Blanduzia","Bogdana","Brândușa","Camelia","Carina","Carla","Carmen","Carmina","Carolina","Casandra","Casiana","Caterina","Catinca","Catrina","Catrinel","Cătălina","Cecilia","Celia","Cerasela","Cezara","Cipriana","Clara","Clarisa","Claudia","Clementina","Cleopatra","Codrina","Codruța","Constantina","Constanța","Consuela","Coralia","Corina","Cornelia","Cosmina","Crenguța","Crina","Cristina","Daciana","Dafina","Daiana","Dalia","Dana","Daniela","Daria","Dariana","Delia","Demetra","Denisa","Despina","Diana","Dida","Didina","Dimitrina","Dina","Dochia","Doina","Domnica","Dora","Doriana","Dorina","Dorli","Draga","Dumitra","Dumitrana","Ecaterina","Eftimia","Elena","Eleonora","Eliana","Elisabeta","Elisaveta","Eliza","Elodia","Elvira","Emilia","Emanuela","Erica","Estera","Eufrosina","Eugenia","Eusebia","Eva","Evanghelina","Evelina","Fabia","Fabiana","Felicia","Filofteia","Fiona","Flavia","Floare","Floarea","Flora","Floriana","Florica","Florina","Florentina","Florența","Francesca","Frusina","Gabriela","Geanina","Gențiana","Georgeta","Georgia","Georgiana","Geta","Gherghina","Gianina","Gina","Giorgiana","Grațiana","Grațiela","Hortensia","Henrieta","Heracleea","Iasmina","Ica","Ileana","Ilinca","Ilona","Ina","Ioana","Ioanina","Iolanda","Ionela","Ionelia","Iosefina","Irina","Iridenta","Iris","Isabela","Iulia","Iuliana","Iustina","Ivona","Izabela","Jana","Janeta","Janina","Jasmina","Jeana","Julia","Julieta","Larisa","Laura","Laurenția","Lavinia","Lăcrămioara","Leana","Lelia","Leontina","Leopoldina","Letiția","Lia","Liana","Lidia","Ligia","Lili","Liliana","Lioara","Livia","Loredana","Lorelei","Lorena","Luana","Lucia","Luciana","Lucreția","Ludovica","Ludmila","Luiza","Luminița","Magdalena","Maia","Manuela","Mara","Marcela","Marga","Margareta","Marcheta","Maria","Mariana","Maricica","Marilena","Marina","Marinela","Marioara","Marta","Matilda","Malvina","Mădălina","Mălina","Mărioara","Măriuca","Melania","Melina","Mihaela","Milena","Mina","Minodora","Mioara","Mirabela","Mirela","Mirona","Miruna","Mona","Monalisa","Monica","Nadia","Narcisa","Natalia","Natașa","Noemi","Nicoleta","Niculina","Nidia","Nora","Norica","Oana","Octavia","Octaviana","Ofelia","Olga","Olimpia","Olivia","Ortansa","Otilia","Ozana","Pamela","Paraschiva","Paula","Paulica","Paulina","Patricia","Petronela","Petruța","Pompilia","Profira","Rada","Rafila","Raluca","Ramona","Rebeca","Renata","Rica","Roberta","Robertina","Rodica","Romanița","Romina","Roza","Rozalia","Roxana","Roxelana","Ruxanda","Ruxandra","Sabina","Sabrina","Safta","Salomea","Sanda","Saveta","Savina","Sânziana","Semenica","Severina","Sidonia","Silvia","Silvana","Silviana","Simina","Simona","Smaranda","Sofia","Sonia","Sorana","Sorina","Speranța","Stana","Stanca","Stela","Steliana","Steluța","Suzana","Svetlana","Ștefana","Ștefania","Tamara","Tania","Tatiana","Teea","Teodora","Teodosia","Teona","Tiberia","Timea","Tinca","Tincuța","Tudora","Tudorița","Tudosia","Valentina","Valeria","Vanesa","Varvara","Vasilica","Venera","Vera","Veronica","Veta","Vicenția","Victoria","Violeta","Viorela","Viorica","Virginia","Viviana","Voichița","Xenia","Zaharia","Zamfira","Zaraza","Zenobia","Zenovia","Zina","Zoe"]})(EPn);var uVa=EPn.exports,SPn={exports:{}};(function(t){t.exports=["Achim","Adam","Albu","Aldea","Alexa","Alexandrescu","Alexandru","Alexe","Andrei","Anghel","Antal","Anton","Apostol","Ardelean","Ardeleanu","Avram","Baciu","Badea","Balan","Balint","Banica","Banu","Barbu","Barbulescu","Bejan","Biro","Blaga","Boboc","Bodea","Bogdan","Bota","Botezatu","Bratu","Bucur","Buda","Bunea","Burlacu","Calin","Catana","Cazacu","Chiriac","Chirila","Chirita","Chis","Chivu","Ciobanu","Ciocan","Cojocaru","Coman","Constantin","Constantinescu","Cornea","Cosma","Costache","Costea","Costin","Covaci","Cozma","Craciun","Cretu","Crisan","Cristea","Cristescu","Croitoru","Cucu","Damian","Dan","Danciu","Danila","Dascalu","David","Diaconescu","Diaconu","Dima","Dinca","Dinu","Dobre","Dobrescu","Dogaru","Dragan","Draghici","Dragoi","Dragomir","Dumitrache","Dumitrascu","Dumitrescu","Dumitriu","Dumitru","Duta","Enache","Ene","Farcas","Filimon","Filip","Florea","Florescu","Fodor","Fratila","Gabor","Gal","Ganea","Gavrila","Georgescu","Gheorghe","Gheorghita","Gheorghiu","Gherman","Ghita","Giurgiu","Grecu","Grigoras","Grigore","Grigorescu","Grosu","Groza","Horvath","Iacob","Iancu","Ichim","Ignat","Ilie","Iliescu","Ion","Ionescu","Ionita","Iordache","Iorga","Iosif","Irimia","Ispas","Istrate","Ivan","Ivascu","Kiss","Kovacs","Lazar","Luca","Lungu","Lupu","Macovei","Maftei","Man","Manea","Manolache","Manole","Marcu","Marginean","Marian","Marin","Marinescu","Martin","Mateescu","Matei","Maxim","Mazilu","Micu","Mihai","Mihaila","Mihailescu","Mihalache","Mihalcea","Milea","Militaru","Mircea","Mirea","Miron","Miu","Mocanu","Moga","Moise","Moldovan","Moldoveanu","Molnar","Morar","Moraru","Muntean","Munteanu","Muresan","Musat","Nagy","Nastase","Neacsu","Neagoe","Neagu","Neamtu","Nechita","Necula","Nedelcu","Negoita","Negrea","Negru","Nemes","Nica","Nicoara","Nicolae","Nicolescu","Niculae","Niculescu","Nistor","Nita","Nitu","Oancea","Olariu","Olaru","Oltean","Olteanu","Oprea","Opris","Paduraru","Pana","Panait","Paraschiv","Parvu","Pasca","Pascu","Patrascu","Paun","Pavel","Petcu","Peter","Petre","Petrea","Petrescu","Pintea","Pintilie","Pirvu","Pop","Popa","Popescu","Popovici","Preda","Prodan","Puiu","Radoi","Radu","Radulescu","Roman","Rosca","Rosu","Rotaru","Rus","Rusu","Sabau","Sandor","Sandu","Sarbu","Sava","Savu","Serban","Sima","Simion","Simionescu","Simon","Sirbu","Soare","Solomon","Staicu","Stan","Stanciu","Stancu","Stanescu","Stefan","Stefanescu","Stoian","Stoica","Stroe","Suciu","Szabo","Szasz","Szekely","Tamas","Tanase","Tataru","Teodorescu","Toader","Toma","Tomescu","Toth","Trandafir","Trif","Trifan","Tudor","Tudorache","Tudose","Turcu","Ungureanu","Ursu","Vaduva","Varga","Vasile","Vasilescu","Vasiliu","Veres","Vintila","Visan","Vlad","Voicu","Voinea","Zaharia","Zamfir"]})(SPn);var dVa=SPn.exports,wPn={exports:{}};(function(t){t.exports=["Dl","Dna","Dra"]})(wPn);var hVa=wPn.exports,_Pn={exports:{}};(function(t){t.exports=["Jr.","Sr."]})(_Pn);var fVa=_Pn.exports,TPn={exports:{}};(function(t){t.exports=["#{male_first_name} #{last_name}","#{male_first_name} #{last_name}","#{male_first_name} #{last_name}","#{male_first_name} #{last_name}","#{male_first_name} #{last_name}","#{male_first_name} #{last_name}","#{last_name} #{male_first_name}","#{last_name} #{male_first_name}","#{last_name} #{male_first_name}","#{last_name} #{male_first_name}","#{last_name} #{male_first_name}","#{last_name} #{male_first_name}","#{prefix} #{male_first_name} #{last_name}","#{prefix} #{male_first_name} #{last_name}","#{prefix} #{male_first_name} #{last_name}","#{male_first_name} #{last_name}, #{suffix}","#{prefix} #{male_first_name} #{last_name}, #{suffix}","#{female_first_name} #{last_name}","#{female_first_name} #{last_name}","#{female_first_name} #{last_name}","#{female_first_name} #{last_name}","#{female_first_name} #{last_name}","#{female_first_name} #{last_name}","#{last_name} #{female_first_name}","#{last_name} #{female_first_name}","#{last_name} #{female_first_name}","#{last_name} #{female_first_name}","#{last_name} #{female_first_name}","#{last_name} #{female_first_name}","#{prefix} #{female_first_name} #{last_name}","#{prefix} #{female_first_name} #{last_name}","#{prefix} #{female_first_name} #{last_name}"]})(TPn);var pVa=TPn.exports;(function(t){var e={};t.exports=e,e.male_first_name=cVa,e.female_first_name=uVa,e.last_name=dVa,e.prefix=hVa,e.suffix=fVa,e.name=pVa})(bPn);var mVa=bPn.exports,CPn={exports:{}},kPn={exports:{}};(function(t){t.exports=["021######","031######","0258######","0358######","0257######","0357######","0248######","0348######","0234######","0334######","0259######","0359######","0263######","0363######","0231######","0331######","0239######","0339######","0268######","0368######","0238######","0338######","0242######","0342######","0255######","0355######","0264######","0364######","0241######","0341######","0267######","0367######","0245######","0345######","0251######","0351######","0236######","0336######","0246######","0346######","0253######","0353######","0266######","0366######","0254######","0354######","0243######","0343######","0232######","0332######","0262######","0362######","0252######","0352######","0265######","0365######","0233######","0333######","0249######","0349######","0244######","0344######","0260######","0360######","0261######","0361######","0269######","0369######","0230######","0330######","0247######","0347######","0256######","0356######","0240######","0340######","0250######","0350######","0235######","0335######","0237######","0337######"]})(kPn);var gVa=kPn.exports;(function(t){var e={};t.exports=e,e.formats=gVa})(CPn);var vVa=CPn.exports;(function(t){var e={};t.exports=e,e.title="Romanian",e.address=eVa,e.cell_phone=nVa,e.date=aVa,e.internet=lVa,e.name=mVa,e.phone_number=vVa})(Z5n);var AVa=Z5n.exports,RPn={exports:{}},MPn={exports:{}},NPn={exports:{}};(function(t){t.exports=["Австралия","Австрия","Азербайджан","Албания","Алжир","Американское Самоа (не признана)","Ангилья","Ангола","Андорра","Антарктика (не признана)","Антигуа и Барбуда","Антильские Острова (не признана)","Аомынь (не признана)","Аргентина","Армения","Афганистан","Багамские Острова","Бангладеш","Барбадос","Бахрейн","Беларусь","Белиз","Бельгия","Бенин","Болгария","Боливия","Босния и Герцеговина","Ботсвана","Бразилия","Бруней","Буркина-Фасо","Бурунди","Бутан","Вануату","Ватикан","Великобритания","Венгрия","Венесуэла","Восточный Тимор","Вьетнам","Габон","Гаити","Гайана","Гамбия","Гана","Гваделупа (не признана)","Гватемала","Гвиана (не признана)","Гвинея","Гвинея-Бисау","Германия","Гондурас","Гренада","Греция","Грузия","Дания","Джибути","Доминика","Доминиканская Республика","Египет","Замбия","Зимбабве","Израиль","Индия","Индонезия","Иордания","Ирак","Иран","Ирландия","Исландия","Испания","Италия","Йемен","Кабо-Верде","Казахстан","Камбоджа","Камерун","Канада","Катар","Кения","Кипр","Кирибати","Китай","Колумбия","Коморские Острова","Конго","Демократическая Республика","Корея (Северная)","Корея (Южная)","Косово","Коста-Рика","Кот-д'Ивуар","Куба","Кувейт","Кука острова","Кыргызстан","Лаос","Латвия","Лесото","Либерия","Ливан","Ливия","Литва","Лихтенштейн","Люксембург","Маврикий","Мавритания","Мадагаскар","Македония","Малави","Малайзия","Мали","Мальдивы","Мальта","Маршалловы Острова","Мексика","Микронезия","Мозамбик","Молдова","Монако","Монголия","Марокко","Мьянма","Намибия","Науру","Непал","Нигер","Нигерия","Нидерланды","Никарагуа","Новая Зеландия","Норвегия","Объединенные Арабские Эмираты","Оман","Пакистан","Палау","Панама","Папуа — Новая Гвинея","Парагвай","Перу","Польша","Португалия","Республика Конго","Россия","Руанда","Румыния","Сальвадор","Самоа","Сан-Марино","Сан-Томе и Принсипи","Саудовская Аравия","Свазиленд","Сейшельские острова","Сенегал","Сент-Винсент и Гренадины","Сент-Киттс и Невис","Сент-Люсия","Сербия","Сингапур","Сирия","Словакия","Словения","Соединенные Штаты Америки","Соломоновы Острова","Сомали","Судан","Суринам","Сьерра-Леоне","Таджикистан","Таиланд","Тайвань (не признана)","Тамил-Илам (не признана)","Танзания","Тёркс и Кайкос (не признана)","Того","Токелау (не признана)","Тонга","Тринидад и Тобаго","Тувалу","Тунис","Турецкая Республика Северного Кипра (не признана)","Туркменистан","Турция","Уганда","Узбекистан","Украина","Уругвай","Фарерские Острова (не признана)","Фиджи","Филиппины","Финляндия","Франция","Французская Полинезия (не признана)","Хорватия","Центральноафриканская Республика","Чад","Черногория","Чехия","Чили","Швейцария","Швеция","Шри-Ланка","Эквадор","Экваториальная Гвинея","Эритрея","Эстония","Эфиопия","Южно-Африканская Республика","Ямайка","Япония"]})(NPn);var yVa=NPn.exports,IPn={exports:{}};(function(t){t.exports=["###"]})(IPn);var bVa=IPn.exports,PPn={exports:{}};(function(t){t.exports=["ул.","улица","проспект","пр.","площадь","пл."]})(PPn);var xVa=PPn.exports,OPn={exports:{}};(function(t){t.exports=["кв. ###"]})(OPn);var EVa=OPn.exports,LPn={exports:{}};(function(t){t.exports=["######"]})(LPn);var SVa=LPn.exports,BPn={exports:{}};(function(t){t.exports=["Республика Адыгея","Республика Башкортостан","Республика Бурятия","Республика Алтай Республика Дагестан","Республика Ингушетия","Кабардино-Балкарская Республика","Республика Калмыкия","Республика Карачаево-Черкессия","Республика Карелия","Республика Коми","Республика Марий Эл","Республика Мордовия","Республика Саха (Якутия)","Республика Северная Осетия-Алания","Республика Татарстан","Республика Тыва","Удмуртская Республика","Республика Хакасия","Чувашская Республика","Алтайский край","Краснодарский край","Красноярский край","Приморский край","Ставропольский край","Хабаровский край","Амурская область","Архангельская область","Астраханская область","Белгородская область","Брянская область","Владимирская область","Волгоградская область","Вологодская область","Воронежская область","Ивановская область","Иркутская область","Калиниградская область","Калужская область","Камчатская область","Кемеровская область","Кировская область","Костромская область","Курганская область","Курская область","Ленинградская область","Липецкая область","Магаданская область","Московская область","Мурманская область","Нижегородская область","Новгородская область","Новосибирская область","Омская область","Оренбургская область","Орловская область","Пензенская область","Пермская область","Псковская область","Ростовская область","Рязанская область","Самарская область","Саратовская область","Сахалинская область","Свердловская область","Смоленская область","Тамбовская область","Тверская область","Томская область","Тульская область","Тюменская область","Ульяновская область","Челябинская область","Читинская область","Ярославская область","Еврейская автономная область","Агинский Бурятский авт. округ","Коми-Пермяцкий автономный округ","Корякский автономный округ","Ненецкий автономный округ","Таймырский (Долгано-Ненецкий) автономный округ","Усть-Ордынский Бурятский автономный округ","Ханты-Мансийский автономный округ","Чукотский автономный округ","Эвенкийский автономный округ","Ямало-Ненецкий автономный округ","Чеченская Республика"]})(BPn);var wVa=BPn.exports,DPn={exports:{}};(function(t){t.exports=["Советская","Молодежная","Центральная","Школьная","Новая","Садовая","Лесная","Набережная","Ленина","Мира","Октябрьская","Зеленая","Комсомольская","Заречная","Первомайская","Гагарина","Полевая","Луговая","Пионерская","Кирова","Юбилейная","Северная","Пролетарская","Степная","Пушкина","Калинина","Южная","Колхозная","Рабочая","Солнечная","Железнодорожная","Восточная","Заводская","Чапаева","Нагорная","Строителей","Береговая","Победы","Горького","Кооперативная","Красноармейская","Совхозная","Речная","Школьный","Спортивная","Озерная","Строительная","Парковая","Чкалова","Мичурина","Подгорная","Дружбы","Почтовая","Партизанская","Вокзальная","Лермонтова","Свободы","Дорожная","Дачная","Маяковского","Западная","Фрунзе","Дзержинского","Московская","Свердлова","Некрасова","Гоголя","Красная","Трудовая","Шоссейная","Чехова","Коммунистическая","Труда","Комарова","Матросова","Островского","Сосновая","Клубная","Куйбышева","Крупской","Березовая","Карла Маркса","8 Марта","Больничная","Садовый","Интернациональная","Суворова","Цветочная","Трактовая","Ломоносова","Горная","Космонавтов","Энергетиков","Шевченко","Весенняя","Механизаторов","Коммунальная","Лесной","40 лет Победы","Майская"]})(DPn);var _Va=DPn.exports,$Pn={exports:{}};(function(t){t.exports=["Москва","Владимир","Санкт-Петербург","Новосибирск","Екатеринбург","Нижний Новгород","Самара","Казань","Омск","Челябинск","Ростов-на-Дону","Уфа","Волгоград","Пермь","Красноярск","Воронеж","Саратов","Краснодар","Тольятти","Ижевск","Барнаул","Ульяновск","Тюмень","Иркутск","Владивосток","Ярославль","Хабаровск","Махачкала","Оренбург","Новокузнецк","Томск","Кемерово","Рязань","Астрахань","Пенза","Липецк","Тула","Киров","Чебоксары","Курск","Брянск","Магнитогорск","Иваново","Тверь","Ставрополь","Белгород","Сочи"]})($Pn);var TVa=$Pn.exports,FPn={exports:{}};(function(t){t.exports=["#{Address.city_name}"]})(FPn);var CVa=FPn.exports,jPn={exports:{}};(function(t){t.exports=["#{street_suffix} #{Address.street_title}","#{Address.street_title} #{street_suffix}"]})(jPn);var kVa=jPn.exports,HPn={exports:{}};(function(t){t.exports=["#{street_name}, #{building_number}"]})(HPn);var RVa=HPn.exports,UPn={exports:{}};(function(t){t.exports=["Россия"]})(UPn);var MVa=UPn.exports;(function(t){var e={};t.exports=e,e.country=yVa,e.building_number=bVa,e.street_suffix=xVa,e.secondary_address=EVa,e.postcode=SVa,e.state=wVa,e.street_title=_Va,e.city_name=TVa,e.city=CVa,e.street_name=kVa,e.street_address=RVa,e.default_country=MVa})(MPn);var NVa=MPn.exports,zPn={exports:{}},GPn={exports:{}};(function(t){t.exports=["yandex.ru","ya.ru","mail.ru","gmail.com","yahoo.com","hotmail.com"]})(GPn);var IVa=GPn.exports,VPn={exports:{}};(function(t){t.exports=["com","ru","info","рф","net","org"]})(VPn);var PVa=VPn.exports;(function(t){var e={};t.exports=e,e.free_email=IVa,e.domain_suffix=PVa})(zPn);var OVa=zPn.exports,KPn={exports:{}},WPn={exports:{}};(function(t){t.exports=["а","административных","активизации","активности","активом","актуальность","анализа","базы","богатый","в","важную","важные","влечёт","внедрения","воздействия","всего","выбранный","вызывает","выполнять","высокотехнологичная","высшего","гражданского","дальнейшее","дальнейших","демократической","деятельности","для","другой","же","за","забывать","зависит","задания","задач","задача","занимаемых","значение","значимость","значительной","и","играет","идейные","изменений","инновационный","интересный","информационно-пропогандистское","кадров","кадровой","качества","качественно","количественный","консультация","концепция","кругу","курс","массового","материально-технической","место","мира","модели","модель","модернизации","на","намеченных","нами","направлений","напрямую","нас","настолько","насущным","национальный","начало","нашей","не","новая","новых","обеспечение","обеспечивает","образом","обуславливает","обучения","общества","общественной","обществом","однако","определения","опыт","организации","организационной","особенности","от","отметить","отношении","оценить","очевидна","плановых","по","повседневная","повседневной","повышение","повышению","подготовке","позволяет","позиции","показывает","понимание","порядка","последовательного","поставленных","постоянное","постоянный","потребностям","поэтапного","правительством","практика","предложений","предпосылки","представляет","прежде","принимаемых","принципов","проблем","проверки","прогресса","прогрессивного","проект","профессионального","процесс","путь","работы","равным","развития","различных","разнообразный","разработке","рамки","реализация","ресурсосберегающих","роль","рост","с","систему","системы","следует","сложившаяся","собой","современного","создаёт","создание","сознания","сомнений","соображения","соответствующей","соответствующих","социально-ориентированный","социально-экономическое","специалистов","способствует","степени","стороны","структура","структуры","существующий","сущности","сфера","также","таким","технологий","требует","укрепления","управление","уровня","условий","уточнения","участия","участниками","финансовых","форм","формировании","формированию","формирования","целесообразности","что","шагов","широким","широкому","экономической","эксперимент","этих"]})(WPn);var LVa=WPn.exports;(function(t){var e={};t.exports=e,e.words=LVa})(KPn);var BVa=KPn.exports,QPn={exports:{}},qPn={exports:{}};(function(t){t.exports=["Анна","Алёна","Алевтина","Александра","Алина","Алла","Анастасия","Ангелина","Анжела","Анжелика","Антонида","Антонина","Анфиса","Арина","Валентина","Валерия","Варвара","Василиса","Вера","Вероника","Виктория","Галина","Дарья","Евгения","Екатерина","Елена","Елизавета","Жанна","Зинаида","Зоя","Ирина","Кира","Клавдия","Ксения","Лариса","Лидия","Любовь","Людмила","Маргарита","Марина","Мария","Надежда","Наталья","Нина","Оксана","Ольга","Раиса","Регина","Римма","Светлана","София","Таисия","Тамара","Татьяна","Ульяна","Юлия"]})(qPn);var DVa=qPn.exports,YPn={exports:{}};(function(t){t.exports=["Смирнова","Иванова","Кузнецова","Попова","Соколова","Лебедева","Козлова","Новикова","Морозова","Петрова","Волкова","Соловьева","Васильева","Зайцева","Павлова","Семенова","Голубева","Виноградова","Богданова","Воробьева","Федорова","Михайлова","Беляева","Тарасова","Белова","Комарова","Орлова","Киселева","Макарова","Андреева","Ковалева","Ильина","Гусева","Титова","Кузьмина","Кудрявцева","Баранова","Куликова","Алексеева","Степанова","Яковлева","Сорокина","Сергеева","Романова","Захарова","Борисова","Королева","Герасимова","Пономарева","Григорьева","Лазарева","Медведева","Ершова","Никитина","Соболева","Рябова","Полякова","Цветкова","Данилова","Жукова","Фролова","Журавлева","Николаева","Крылова","Максимова","Сидорова","Осипова","Белоусова","Федотова","Дорофеева","Егорова","Матвеева","Боброва","Дмитриева","Калинина","Анисимова","Петухова","Антонова","Тимофеева","Никифорова","Веселова","Филиппова","Маркова","Большакова","Суханова","Миронова","Ширяева","Александрова","Коновалова","Шестакова","Казакова","Ефимова","Денисова","Громова","Фомина","Давыдова","Мельникова","Щербакова","Блинова","Колесникова","Карпова","Афанасьева","Власова","Маслова","Исакова","Тихонова","Аксенова","Гаврилова","Родионова","Котова","Горбунова","Кудряшова","Быкова","Зуева","Третьякова","Савельева","Панова","Рыбакова","Суворова","Абрамова","Воронова","Мухина","Архипова","Трофимова","Мартынова","Емельянова","Горшкова","Чернова","Овчинникова","Селезнева","Панфилова","Копылова","Михеева","Галкина","Назарова","Лобанова","Лукина","Белякова","Потапова","Некрасова","Хохлова","Жданова","Наумова","Шилова","Воронцова","Ермакова","Дроздова","Игнатьева","Савина","Логинова","Сафонова","Капустина","Кириллова","Моисеева","Елисеева","Кошелева","Костина","Горбачева","Орехова","Ефремова","Исаева","Евдокимова","Калашникова","Кабанова","Носкова","Юдина","Кулагина","Лапина","Прохорова","Нестерова","Харитонова","Агафонова","Муравьева","Ларионова","Федосеева","Зимина","Пахомова","Шубина","Игнатова","Филатова","Крюкова","Рогова","Кулакова","Терентьева","Молчанова","Владимирова","Артемьева","Гурьева","Зиновьева","Гришина","Кононова","Дементьева","Ситникова","Симонова","Мишина","Фадеева","Комиссарова","Мамонтова","Носова","Гуляева","Шарова","Устинова","Вишнякова","Евсеева","Лаврентьева","Брагина","Константинова","Корнилова","Авдеева","Зыкова","Бирюкова","Шарапова","Никонова","Щукина","Дьячкова","Одинцова","Сазонова","Якушева","Красильникова","Гордеева","Самойлова","Князева","Беспалова","Уварова","Шашкова","Бобылева","Доронина","Белозерова","Рожкова","Самсонова","Мясникова","Лихачева","Бурова","Сысоева","Фомичева","Русакова","Стрелкова","Гущина","Тетерина","Колобова","Субботина","Фокина","Блохина","Селиверстова","Пестова","Кондратьева","Силина","Меркушева","Лыткина","Турова"]})(YPn);var $Va=YPn.exports,JPn={exports:{}};(function(t){t.exports=["Александровна","Алексеевна","Альбертовна","Анатольевна","Андреевна","Антоновна","Аркадьевна","Арсеньевна","Артёмовна","Борисовна","Вадимовна","Валентиновна","Валерьевна","Васильевна","Викторовна","Витальевна","Владимировна","Владиславовна","Вячеславовна","Геннадьевна","Георгиевна","Германовна","Григорьевна","Данииловна","Денисовна","Дмитриевна","Евгеньевна","Егоровна","Ивановна","Игнатьевна","Игоревна","Ильинична","Константиновна","Лаврентьевна","Леонидовна","Макаровна","Максимовна","Матвеевна","Михайловна","Никитична","Николаевна","Олеговна","Романовна","Семёновна","Сергеевна","Станиславовна","Степановна","Фёдоровна","Эдуардовна","Юрьевна","Ярославовна"]})(JPn);var FVa=JPn.exports,ZPn={exports:{}};(function(t){t.exports=["Александр","Алексей","Альберт","Анатолий","Андрей","Антон","Аркадий","Арсений","Артём","Борис","Вадим","Валентин","Валерий","Василий","Виктор","Виталий","Владимир","Владислав","Вячеслав","Геннадий","Георгий","Герман","Григорий","Даниил","Денис","Дмитрий","Евгений","Егор","Иван","Игнатий","Игорь","Илья","Константин","Лаврентий","Леонид","Лука","Макар","Максим","Матвей","Михаил","Никита","Николай","Олег","Роман","Семён","Сергей","Станислав","Степан","Фёдор","Эдуард","Юрий","Ярослав"]})(ZPn);var jVa=ZPn.exports,XPn={exports:{}};(function(t){t.exports=["Смирнов","Иванов","Кузнецов","Попов","Соколов","Лебедев","Козлов","Новиков","Морозов","Петров","Волков","Соловьев","Васильев","Зайцев","Павлов","Семенов","Голубев","Виноградов","Богданов","Воробьев","Федоров","Михайлов","Беляев","Тарасов","Белов","Комаров","Орлов","Киселев","Макаров","Андреев","Ковалев","Ильин","Гусев","Титов","Кузьмин","Кудрявцев","Баранов","Куликов","Алексеев","Степанов","Яковлев","Сорокин","Сергеев","Романов","Захаров","Борисов","Королев","Герасимов","Пономарев","Григорьев","Лазарев","Медведев","Ершов","Никитин","Соболев","Рябов","Поляков","Цветков","Данилов","Жуков","Фролов","Журавлев","Николаев","Крылов","Максимов","Сидоров","Осипов","Белоусов","Федотов","Дорофеев","Егоров","Матвеев","Бобров","Дмитриев","Калинин","Анисимов","Петухов","Антонов","Тимофеев","Никифоров","Веселов","Филиппов","Марков","Большаков","Суханов","Миронов","Ширяев","Александров","Коновалов","Шестаков","Казаков","Ефимов","Денисов","Громов","Фомин","Давыдов","Мельников","Щербаков","Блинов","Колесников","Карпов","Афанасьев","Власов","Маслов","Исаков","Тихонов","Аксенов","Гаврилов","Родионов","Котов","Горбунов","Кудряшов","Быков","Зуев","Третьяков","Савельев","Панов","Рыбаков","Суворов","Абрамов","Воронов","Мухин","Архипов","Трофимов","Мартынов","Емельянов","Горшков","Чернов","Овчинников","Селезнев","Панфилов","Копылов","Михеев","Галкин","Назаров","Лобанов","Лукин","Беляков","Потапов","Некрасов","Хохлов","Жданов","Наумов","Шилов","Воронцов","Ермаков","Дроздов","Игнатьев","Савин","Логинов","Сафонов","Капустин","Кириллов","Моисеев","Елисеев","Кошелев","Костин","Горбачев","Орехов","Ефремов","Исаев","Евдокимов","Калашников","Кабанов","Носков","Юдин","Кулагин","Лапин","Прохоров","Нестеров","Харитонов","Агафонов","Муравьев","Ларионов","Федосеев","Зимин","Пахомов","Шубин","Игнатов","Филатов","Крюков","Рогов","Кулаков","Терентьев","Молчанов","Владимиров","Артемьев","Гурьев","Зиновьев","Гришин","Кононов","Дементьев","Ситников","Симонов","Мишин","Фадеев","Комиссаров","Мамонтов","Носов","Гуляев","Шаров","Устинов","Вишняков","Евсеев","Лаврентьев","Брагин","Константинов","Корнилов","Авдеев","Зыков","Бирюков","Шарапов","Никонов","Щукин","Дьячков","Одинцов","Сазонов","Якушев","Красильников","Гордеев","Самойлов","Князев","Беспалов","Уваров","Шашков","Бобылев","Доронин","Белозеров","Рожков","Самсонов","Мясников","Лихачев","Буров","Сысоев","Фомичев","Русаков","Стрелков","Гущин","Тетерин","Колобов","Субботин","Фокин","Блохин","Селиверстов","Пестов","Кондратьев","Силин","Меркушев","Лыткин","Туров"]})(XPn);var HVa=XPn.exports,eOn={exports:{}};(function(t){t.exports=["Александрович","Алексеевич","Альбертович","Анатольевич","Андреевич","Антонович","Аркадьевич","Арсеньевич","Артёмович","Борисович","Вадимович","Валентинович","Валерьевич","Васильевич","Викторович","Витальевич","Владимирович","Владиславович","Вячеславович","Геннадьевич","Георгиевич","Германович","Григорьевич","Даниилович","Денисович","Дмитриевич","Евгеньевич","Егорович","Иванович","Игнатьевич","Игоревич","Ильич","Константинович","Лаврентьевич","Леонидович","Лукич","Макарович","Максимович","Матвеевич","Михайлович","Никитич","Николаевич","Олегович","Романович","Семёнович","Сергеевич","Станиславович","Степанович","Фёдорович","Эдуардович","Юрьевич","Ярославович"]})(eOn);var UVa=eOn.exports,tOn={exports:{}};(function(t){t.exports=["#{male_first_name} #{male_last_name}","#{male_last_name} #{male_first_name}","#{male_first_name} #{male_middle_name} #{male_last_name}","#{male_last_name} #{male_first_name} #{male_middle_name}","#{female_first_name} #{female_last_name}","#{female_last_name} #{female_first_name}","#{female_first_name} #{female_middle_name} #{female_last_name}","#{female_last_name} #{female_first_name} #{female_middle_name}"]})(tOn);var zVa=tOn.exports,nOn={exports:{}};(function(t){t.exports=[]})(nOn);var GVa=nOn.exports,rOn={exports:{}};(function(t){t.exports=[]})(rOn);var VVa=rOn.exports,iOn={exports:{}};(function(t){t.exports={descriptor:["Ведущий","Генеральный","Главный","Глобальный","Международный","Национальный","Областной","Районный","Региональный","Центральный"],level:["интеграционный","логистический","маркетинговый","оптимизационный","страховой","функциональный","коммуникационный","операционный"],job:["агент","администратор","аналитик","архитектор","дизайнер","инженер","консультант","координатор","менеджер","планировщик","помощник","разработчик","руководитель","сотрудник","специалист","техник"]}})(iOn);var KVa=iOn.exports;(function(t){var e={};t.exports=e,e.female_first_name=DVa,e.female_last_name=$Va,e.female_middle_name=FVa,e.male_first_name=jVa,e.male_last_name=HVa,e.male_middle_name=UVa,e.name=zVa,e.prefix=GVa,e.suffix=VVa,e.title=KVa})(QPn);var WVa=QPn.exports,aOn={exports:{}},oOn={exports:{}};(function(t){t.exports=["(9##)###-##-##"]})(oOn);var QVa=oOn.exports;(function(t){var e={};t.exports=e,e.formats=QVa})(aOn);var qVa=aOn.exports,sOn={exports:{}},lOn={exports:{}};(function(t){t.exports=["красный","зеленый","синий","желтый","багровый","мятный","зеленовато-голубой","белый","черный","оранжевый","розовый","серый","красно-коричневый","фиолетовый","бирюзовый","желто-коричневый","небесно голубой","оранжево-розовый","темно-фиолетовый","орхидный","оливковый","пурпурный","лимонный","кремовый","сине-фиолетовый","золотой","красно-пурпурный","голубой","лазурный","лиловый","серебряный"]})(lOn);var YVa=lOn.exports,cOn={exports:{}};(function(t){t.exports=["Книги","Фильмы","музыка","игры","Электроника","компьютеры","Дом","садинструмент","Бакалея","здоровье","красота","Игрушки","детское","для малышей","Одежда","обувь","украшения","Спорт","туризм","Автомобильное","Галантерея","Меха","Пряжа","промышленное"]})(cOn);var JVa=cOn.exports,uOn={exports:{}};(function(t){t.exports={adjective:["Маленький","Эргономичный","Грубый","Интеллектуальный","Великолепный","Невероятный","Свободный","Большой","Фантастический","Практичный","Лоснящийся","Потрясающий"],material:["Стальной","Деревянный","Бетонный","Пластиковый","Хлопковый","Гранитный","Кожанный","Неодимовый","Меховой","Натуральный","Резиновый"],product:["Стул","Автомобиль","Компьютер","Берет","Кулон","Стол","Свитер","Ремень","Ножницы","Носки","Майка","Кепка","Куртка","Плащ","Сабо","Шарф","Клатч","Кошелек","Портмоне","Ботинок"]}})(uOn);var ZVa=uOn.exports;(function(t){var e={};t.exports=e,e.color=YVa,e.department=JVa,e.product_name=ZVa})(sOn);var XVa=sOn.exports,dOn={exports:{}},hOn={exports:{}};(function(t){t.exports=["ИП","ООО","ЗАО","ОАО","ПАО","НКО","ТСЖ","ОП"]})(hOn);var eKa=hOn.exports,fOn={exports:{}};(function(t){t.exports=["Снаб","Торг","Пром","Трейд","Сбыт"]})(fOn);var tKa=fOn.exports,pOn={exports:{}};(function(t){t.exports=["#{prefix} #{Name.female_first_name}","#{prefix} #{Name.male_first_name}","#{prefix} #{Name.male_last_name}","#{prefix} #{suffix}#{suffix}","#{prefix} #{suffix}#{suffix}#{suffix}","#{prefix} #{Address.city_name}#{suffix}","#{prefix} #{Address.city_name}#{suffix}#{suffix}","#{prefix} #{Address.city_name}#{suffix}#{suffix}#{suffix}"]})(pOn);var nKa=pOn.exports;(function(t){var e={};t.exports=e,e.prefix=eKa,e.suffix=tKa,e.name=nKa})(dOn);var rKa=dOn.exports,mOn={exports:{}},gOn={exports:{}};(function(t){t.exports={wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"],wide_context:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],abbr:["янв.","февр.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],abbr_context:["янв.","февр.","марта","апр.","мая","июня","июля","авг.","сент.","окт.","нояб.","дек."]}})(gOn);var iKa=gOn.exports,vOn={exports:{}};(function(t){t.exports={wide:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],wide_context:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],abbr:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],abbr_context:["вс","пн","вт","ср","чт","пт","сб"]}})(vOn);var aKa=vOn.exports;(function(t){var e={};t.exports=e,e.month=iKa,e.weekday=aKa})(mOn);var oKa=mOn.exports,AOn={exports:{}},yOn={exports:{}};(function(t){t.exports=["БИОС","Гб","ИИ","ОС","ОЗУ","ПО","СУБД","ХЗ","ЭВМ","HTTP","SDD","CSS","SSL","AGP","FTP","PCI","ADP","RSS","XML","EXE","COM","НМЖД","ПЗУ","SMTP","SMS","USB","PNG","SAS","JSON","XSS"]})(yOn);var sKa=yOn.exports,bOn={exports:{}};(function(t){t.exports=["вспомогательный","основной","внутренний","цифровой","свободно-распростроняемый","виртуальный","кросс-платформенный","излишний","онлайн","сенсорный","многобайтный","беспроводной","1080-пиксельный","нейронный","оптический","твердотельный","мобильный"]})(bOn);var lKa=bOn.exports,xOn={exports:{}};(function(t){t.exports=["драйвер","протокол","ограничитель","интерфейс","микрочип","код","парсер","сокет","кортеж","порт","ключ","массив","интерфейс","объект","сенсор","брандмауэр","винчестер","пиксель","механизм сигнализации","поглотитель","монитор","продукт","передатчик","блок разведения","канал","конденсатор","оператор"]})(xOn);var cKa=xOn.exports,EOn={exports:{}};(function(t){t.exports=["сохранить","обойти","взломать","переопределить","сжать","зашифровать","импортировать","экспортировать","копировать","навигировать","индексировать","соединить","генерировать","распарсить","квантифицировать","вычислить","синтезировать","ввести","передать","запрограммировать","перезагрузить","разобрать"]})(EOn);var uKa=EOn.exports,SOn={exports:{}};(function(t){t.exports=["резервное копирование","обход","архивирование","взлом","шифрование","переопределение","сжатие","скачивание","копирование","навигация","индексирование","соединение","генерация","определение количества","вычисление","синтез","передача","программирование","разбор"]})(SOn);var dKa=SOn.exports,wOn={exports:{}};(function(t){t.exports=["Чтобы {{verb}} {{noun}}, мы можем получить {{abbreviation}} {{noun}} через {{adjective}} {{abbreviation}} {{noun}}!","Необходимо {{verb}} {{adjective}} {{abbreviation}} {{noun}}!","Попробуйте {{verb}} {{abbreviation}} {{noun}}, возможно это позволит {{verb}} {{adjective}} {{noun}}!","Вы не можете {{verb}} {{noun}}, требуется {{ingverb}} или {{ingverb}}!","Используйте {{adjective}} {{abbreviation}} {{noun}}, для того чтобы {{verb}} {{adjective}} {{noun}}!","{{abbreviation}} {{noun}} недоступен, требуется {{verb}} {{adjective}} {{noun}}, чтобы мы могли {{verb}} {{abbreviation}} {{noun}}!","{{ingverb}} не работает, попробуйте {{verb}} {{adjective}} {{abbreviation}} {{noun}}!","Я планирую {{verb}} {{adjective}} {{abbreviation}} {{noun}}, это должно помочь {{verb}} {{abbreviation}} {{noun}}!"]})(wOn);var hKa=wOn.exports;(function(t){var e={};t.exports=e,e.abbreviation=sKa,e.adjective=lKa,e.noun=cKa,e.verb=uKa,e.ingverb=dKa,e.phrase=hKa})(AOn);var fKa=AOn.exports;(function(t){var e={};t.exports=e,e.title="Russian",e.separator=" и ",e.address=NVa,e.internet=OVa,e.lorem=BVa,e.name=WVa,e.phone_number=qVa,e.commerce=XVa,e.company=rKa,e.date=oKa,e.hacker=fKa})(RPn);var pKa=RPn.exports,_On={exports:{}},TOn={exports:{}},COn={exports:{}};(function(t){t.exports=["North","East","West","South","New","Lake","Port"]})(COn);var mKa=COn.exports,kOn={exports:{}};(function(t){t.exports=["town","ton","land","ville","berg","burgh","borough","bury","view","port","mouth","stad","furt","chester","mouth","fort","haven","side","shire"]})(kOn);var gKa=kOn.exports,ROn={exports:{}};(function(t){t.exports=["Afganistan","Afgánsky islamský štát","Albánsko","Albánska republika","Alžírsko","Alžírska demokratická ľudová republika","Andorra","Andorrské kniežatsvo","Angola","Angolská republika","Antigua a Barbuda","Antigua a Barbuda","Argentína","Argentínska republika","Arménsko","Arménska republika","Austrália","Austrálsky zväz","Azerbajdžan","Azerbajdžanská republika","Bahamy","Bahamské spoločenstvo","Bahrajn","Bahrajnské kráľovstvo","Bangladéš","Bangladéšska ľudová republika","Barbados","Barbados","Belgicko","Belgické kráľovstvo","Belize","Belize","Benin","Beninská republika","Bhután","Bhutánske kráľovstvo","Bielorusko","Bieloruská republika","Bolívia","Bolívijská republika","Bosna a Hercegovina","Republika Bosny a Hercegoviny","Botswana","Botswanská republika","Brazília","Brazílska federatívna republika","Brunej","Brunejský sultanát","Bulharsko","Bulharská republika","Burkina Faso","Burkina Faso","Burundi","Burundská republika","Cyprus","Cyperská republika","Čad","Republika Čad","Česko","Česká republika","Čína","Čínska ľudová republika","Dánsko","Dánsko kráľovstvo","Dominika","Spoločenstvo Dominika","Dominikánska republika","Dominikánska republika","Džibutsko","Džibutská republika","Egypt","Egyptská arabská republika","Ekvádor","Ekvádorská republika","Eritrea","Eritrejský štát","Estónsko","Estónska republika","Etiópia","Etiópska federatívna demokratická republika","Fidži","Republika ostrovy Fidži","Filipíny","Filipínska republika","Fínsko","Fínska republika","Francúzsko","Francúzska republika","Gabon","Gabonská republika","Gambia","Gambijská republika","Ghana","Ghanská republika","Grécko","Helénska republika","Grenada","Grenada","Gruzínsko","Gruzínsko","Guatemala","Guatemalská republika","Guinea","Guinejská republika","Guinea-Bissau","Republika Guinea-Bissau","Guayana","Guayanská republika","Haiti","Republika Haiti","Holandsko","Holandské kráľovstvo","Honduras","Honduraská republika","Chile","Čílska republika","Chorvátsko","Chorvátska republika","India","Indická republika","Indonézia","Indonézska republika","Irak","Iracká republika","Irán","Iránska islamská republika","Island","Islandská republika","Izrael","Štát Izrael","Írsko","Írska republika","Jamajka","Jamajka","Japonsko","Japonsko","Jemen","Jemenská republika","Jordánsko","Jordánske hášimovské kráľovstvo","Južná Afrika","Juhoafrická republika","Kambodža","Kambodžské kráľovstvo","Kamerun","Kamerunská republika","Kanada","Kanada","Kapverdy","Kapverdská republika","Katar","Štát Katar","Kazachstan","Kazašská republika","Keňa","Kenská republika","Kirgizsko","Kirgizská republika","Kiribati","Kiribatská republika","Kolumbia","Kolumbijská republika","Komory","Komorská únia","Kongo","Konžská demokratická republika",'Kongo ("Brazzaville")',"Konžská republika",'Kórea ("Južná")',"Kórejská republika",'Kórea ("Severná")',"Kórejská ľudovodemokratická republika","Kostarika","Kostarická republika","Kuba","Kubánska republika","Kuvajt","Kuvajtský štát","Laos","Laoská ľudovodemokratická republika","Lesotho","Lesothské kráľovstvo","Libanon","Libanonská republika","Libéria","Libérijská republika","Líbya","Líbyjská arabská ľudová socialistická džamáhírija","Lichtenštajnsko","Lichtenštajnské kniežatstvo","Litva","Litovská republika","Lotyšsko","Lotyšská republika","Luxembursko","Luxemburské veľkovojvodstvo","Macedónsko","Macedónska republika","Madagaskar","Madagaskarská republika","Maďarsko","Maďarská republika","Malajzia","Malajzia","Malawi","Malawijská republika","Maldivy","Maldivská republika","Mali","Malijská republika","Malta","Malta","Maroko","Marocké kráľovstvo","Marshallove ostrovy","Republika Marshallových ostrovy","Mauritánia","Mauritánska islamská republika","Maurícius","Maurícijská republika","Mexiko","Spojené štáty mexické","Mikronézia","Mikronézske federatívne štáty","Mjanmarsko","Mjanmarský zväz","Moldavsko","Moldavská republika","Monako","Monacké kniežatstvo","Mongolsko","Mongolsko","Mozambik","Mozambická republika","Namíbia","Namíbijská republika","Nauru","Naurská republika","Nemecko","Nemecká spolková republika","Nepál","Nepálske kráľovstvo","Niger","Nigerská republika","Nigéria","Nigérijská federatívna republika","Nikaragua","Nikaragujská republika","Nový Zéland","Nový Zéland","Nórsko","Nórske kráľovstvo","Omán","Ománsky sultanát","Pakistan","Pakistanská islamská republika","Palau","Palauská republika","Panama","Panamská republika","Papua-Nová Guinea","Nezávislý štát Papua-Nová Guinea","Paraguaj","Paraguajská republika","Peru","Peruánska republika","Pobrežie Slonoviny","Republika Pobrežie Slonoviny","Poľsko","Poľská republika","Portugalsko","Portugalská republika","Rakúsko","Rakúska republika","Rovníková Guinea","Republika Rovníková Guinea","Rumunsko","Rumunsko","Rusko","Ruská federácia","Rwanda","Rwandská republika","Salvádor","Salvádorská republika","Samoa","Nezávislý štát Samoa","San Maríno","Sanmarínska republika","Saudská Arábia","Kráľovstvo Saudskej Arábie","Senegal","Senegalská republika","Seychely","Seychelská republika","Sierra Leone","Republika Sierra Leone","Singapur","Singapurska republika","Slovensko","Slovenská republika","Slovinsko","Slovinská republika","Somálsko","Somálska demokratická republika","Spojené arabské emiráty","Spojené arabské emiráty","Spojené štáty americké","Spojené štáty americké","Srbsko a Čierna Hora","Srbsko a Čierna Hora","Srí Lanka","Demokratická socialistická republika Srí Lanka","Stredoafrická republika","Stredoafrická republika","Sudán","Sudánska republika","Surinam","Surinamská republika","Svazijsko","Svazijské kráľovstvo","Svätá Lucia","Svätá Lucia","Svätý Krištof a Nevis","Federácia Svätý Krištof a Nevis","Sv. Tomáš a Princov Ostrov","Demokratická republika Svätý Tomáš a Princov Ostrov","Sv. Vincent a Grenadíny","Svätý Vincent a Grenadíny","Sýria","Sýrska arabská republika","Šalamúnove ostrovy","Šalamúnove ostrovy","Španielsko","Španielske kráľovstvo","Švajčiarsko","Švajčiarska konfederácia","Švédsko","Švédske kráľovstvo","Tadžikistan","Tadžická republika","Taliansko","Talianska republika","Tanzánia","Tanzánijská zjednotená republika","Thajsko","Thajské kráľovstvo","Togo","Tožská republika","Tonga","Tonžské kráľovstvo","Trinidad a Tobago","Republika Trinidad a Tobago","Tunisko","Tuniská republika","Turecko","Turecká republika","Turkménsko","Turkménsko","Tuvalu","Tuvalu","Uganda","Ugandská republika","Ukrajina","Uruguaj","Uruguajská východná republika","Uzbekistan","Vanuatu","Vanuatská republika","Vatikán","Svätá Stolica","Veľká Británia","Spojené kráľovstvo Veľkej Británie a Severného Írska","Venezuela","Venezuelská bolívarovská republika","Vietnam","Vietnamská socialistická republika","Východný Timor","Demokratická republika Východný Timor","Zambia","Zambijská republika","Zimbabwe","Zimbabwianska republika"]})(ROn);var vKa=ROn.exports,MOn={exports:{}};(function(t){t.exports=["#","##","###"]})(MOn);var AKa=MOn.exports,NOn={exports:{}};(function(t){t.exports=["Apt. ###","Suite ###"]})(NOn);var yKa=NOn.exports,IOn={exports:{}};(function(t){t.exports=["#####","### ##","## ###"]})(IOn);var bKa=IOn.exports,POn={exports:{}};(function(t){t.exports=[]})(POn);var xKa=POn.exports,OOn={exports:{}};(function(t){t.exports=[]})(OOn);var EKa=OOn.exports,LOn={exports:{}};(function(t){t.exports=["Bánovce nad Bebravou","Banská Bystrica","Banská Štiavnica","Bardejov","Bratislava I","Bratislava II","Bratislava III","Bratislava IV","Bratislava V","Brezno","Bytča","Čadca","Detva","Dolný Kubín","Dunajská Streda","Galanta","Gelnica","Hlohovec","Humenné","Ilava","Kežmarok","Komárno","Košice I","Košice II","Košice III","Košice IV","Košice-okolie","Krupina","Kysucké Nové Mesto","Levice","Levoča","Liptovský Mikuláš","Lučenec","Malacky","Martin","Medzilaborce","Michalovce","Myjava","Námestovo","Nitra","Nové Mesto n.Váhom","Nové Zámky","Partizánske","Pezinok","Piešťany","Poltár","Poprad","Považská Bystrica","Prešov","Prievidza","Púchov","Revúca","Rimavská Sobota","Rožňava","Ružomberok","Sabinov","Šaľa","Senec","Senica","Skalica","Snina","Sobrance","Spišská Nová Ves","Stará Ľubovňa","Stropkov","Svidník","Topoľčany","Trebišov","Trenčín","Trnava","Turčianske Teplice","Tvrdošín","Veľký Krtíš","Vranov nad Topľou","Žarnovica","Žiar nad Hronom","Žilina","Zlaté Moravce","Zvolen"]})(LOn);var SKa=LOn.exports,BOn={exports:{}};(function(t){t.exports=["#{city_name}"]})(BOn);var wKa=BOn.exports,DOn={exports:{}};(function(t){t.exports=["Adámiho","Ahoj","Albína Brunovského","Albrechtova","Alejová","Alešova","Alibernetová","Alžbetínska","Alžbety Gwerkovej","Ambroseho","Ambrušova","Americká","Americké námestie","Americké námestie","Andreja Mráza","Andreja Plávku","Andrusovova","Anenská","Anenská","Antolská","Astronomická","Astrová","Azalková","Azovská","Babuškova","Bachova","Bajkalská","Bajkalská","Bajkalská","Bajkalská","Bajkalská","Bajkalská","Bajzova","Bancíkovej","Banícka","Baníkova","Banskobystrická","Banšelova","Bardejovská","Bartókova","Bartoňova","Bartoškova","Baštová","Bazová","Bažantia","Beblavého","Beckovská","Bedľová","Belániková","Belehradská","Belinského","Belopotockého","Beňadická","Bencúrova","Benediktiho","Beniakova","Bernolákova","Beskydská","Betliarska","Bezručova","Biela","Bielkova","Björnsonova","Blagoevova","Blatnická","Blumentálska","Blyskáčová","Bočná","Bohrova","Bohúňova","Bojnická","Borodáčova","Borská","Bosákova","Botanická","Bottova","Boženy Němcovej","Bôrik","Bradáčova","Bradlianska","Brančská","Bratská","Brestová","Brezovská","Briežky","Brnianska","Brodná","Brodská","Broskyňová","Břeclavská","Budatínska","Budatínska","Budatínska","Búdkova  cesta","Budovateľská","Budyšínska","Budyšínska","Buková","Bukureštská","Bulharská","Bulíkova","Bystrého","Bzovícka","Cablkova","Cesta na Červený most","Cesta na Červený most","Cesta na Senec","Cikkerova","Cintorínska","Cintulova","Cukrová","Cyrilova","Čajakova","Čajkovského","Čaklovská","Čalovská","Čapajevova","Čapkova","Čárskeho","Čavojského","Čečinová","Čelakovského","Čerešňová","Černyševského","Červeňova","Česká","Československých par","Čipkárska","Čmelíkova","Čmeľovec","Čulenova","Daliborovo námestie","Dankovského","Dargovská","Ďatelinová","Daxnerovo námestie","Devínska cesta","Dlhé diely I.","Dlhé diely II.","Dlhé diely III.","Dobrovičova","Dobrovičova","Dobrovského","Dobšinského","Dohnalova","Dohnányho","Doležalova","Dolná","Dolnozemská cesta","Domkárska","Domové role","Donnerova","Donovalova","Dostojevského rad","Dr. Vladimíra Clemen","Drevená","Drieňová","Drieňová","Drieňová","Drotárska cesta","Drotárska cesta","Drotárska cesta","Družicová","Družstevná","Dubnická","Dubová","Dúbravská cesta","Dudova","Dulovo námestie","Dulovo námestie","Dunajská","Dvořákovo nábrežie","Edisonova","Einsteinova","Elektrárenská","Exnárova","F. Kostku","Fadruszova","Fajnorovo nábrežie","Fándlyho","Farebná","Farská","Farského","Fazuľová","Fedinova","Ferienčíkova","Fialkové údolie","Fibichova","Filiálne nádražie","Flöglova","Floriánske námestie","Fraňa Kráľa","Francisciho","Francúzskych partizá","Františkánska","Františkánske námest","Furdekova","Furdekova","Gabčíkova","Gagarinova","Gagarinova","Gagarinova","Gajova","Galaktická","Galandova","Gallova","Galvaniho","Gašparíkova","Gaštanová","Gavlovičova","Gemerská","Gercenova","Gessayova","Gettingová","Godrova","Gogoľova","Goláňova","Gondova","Goralská","Gorazdova","Gorkého","Gregorovej","Grösslingova","Gruzínska","Gunduličova","Gusevova","Haanova","Haburská","Halašova","Hálkova","Hálova","Hamuliakova","Hanácka","Handlovská","Hany Meličkovej","Harmanecká","Hasičská","Hattalova","Havlíčkova","Havrania","Haydnova","Herlianska","Herlianska","Heydukova","Hlaváčikova","Hlavatého","Hlavné námestie","Hlboká cesta","Hlboká cesta","Hlivová","Hlučínska","Hodálova","Hodžovo námestie","Holekova","Holíčska","Hollého","Holubyho","Hontianska","Horárska","Horné Židiny","Horská","Horská","Hrad","Hradné údolie","Hrachová","Hraničná","Hrebendova","Hríbová","Hriňovská","Hrobákova","Hrobárska","Hroboňova","Hudecova","Humenské námestie","Hummelova","Hurbanovo námestie","Hurbanovo námestie","Hviezdoslavovo námes","Hýrošova","Chalupkova","Chemická","Chlumeckého","Chorvátska","Chorvátska","Iľjušinova","Ilkovičova","Inovecká","Inovecká","Iskerníková","Ivana Horvátha","Ivánska cesta","J.C.Hronského","Jabloňová","Jadrová","Jakabova","Jakubovo námestie","Jamnického","Jána Stanislava","Janáčkova","Jančova","Janíkove role","Jankolova","Jánošíkova","Jánoškova","Janotova","Jánska","Jantárová cesta","Jarabinková","Jarná","Jaroslavova","Jarošova","Jaseňová","Jasná","Jasovská","Jastrabia","Jašíkova","Javorinská","Javorová","Jazdecká","Jedlíkova","Jégého","Jelačičova","Jelenia","Jesenná","Jesenského","Jiráskova","Jiskrova","Jozefská","Junácka","Jungmannova","Jurigovo námestie","Jurovského","Jurská","Justičná","K lomu","K Železnej studienke","Kalinčiakova","Kamenárska","Kamenné námestie","Kapicova","Kapitulská","Kapitulský dvor","Kapucínska","Kapušianska","Karadžičova","Karadžičova","Karadžičova","Karadžičova","Karloveská","Karloveské rameno","Karpatská","Kašmírska","Kaštielska","Kaukazská","Kempelenova","Kežmarské námestie","Kladnianska","Klariská","Kláštorská","Klatovská","Klatovská","Klemensova","Klincová","Klobučnícka","Klokočova","Kľukatá","Kmeťovo námestie","Koceľova","Kočánkova","Kohútova","Kolárska","Kolískova","Kollárovo námestie","Kollárovo námestie","Kolmá","Komárňanská","Komárnická","Komárnická","Komenského námestie","Kominárska","Komonicová","Konopná","Konvalinková","Konventná","Kopanice","Kopčianska","Koperníkova","Korabinského","Koreničova","Kostlivého","Kostolná","Košická","Košická","Košická","Kováčska","Kovorobotnícka","Kozia","Koziarka","Kozmonautická","Krajná","Krakovská","Kráľovské údolie","Krasinského","Kraskova","Krásna","Krásnohorská","Krasovského","Krátka","Krčméryho","Kremnická","Kresánkova","Krivá","Križkova","Krížna","Krížna","Krížna","Krížna","Krmanova","Krompašská","Krupinská","Krupkova","Kubániho","Kubínska","Kuklovská","Kukučínova","Kukuričná","Kulíškova","Kultúrna","Kupeckého","Kúpeľná","Kutlíkova","Kutuzovova","Kuzmányho","Kvačalova","Kvetná","Kýčerského","Kyjevská","Kysucká","Laborecká","Lackova","Ladislava Sáru","Ľadová","Lachova","Ľaliová","Lamačská cesta","Lamačská cesta","Lamanského","Landererova","Langsfeldova","Ľanová","Laskomerského","Laučekova","Laurinská","Lazaretská","Lazaretská","Legerského","Legionárska","Legionárska","Lehockého","Lehockého","Lenardova","Lermontovova","Lesná","Leškova","Letecká","Letisko M.R.Štefánik","Letná","Levárska","Levická","Levočská","Lidická","Lietavská","Lichardova","Lipová","Lipovinová","Liptovská","Listová","Líščie nivy","Líščie údolie","Litovská","Lodná","Lombardiniho","Lomonosovova","Lopenícka","Lovinského","Ľubietovská","Ľubinská","Ľubľanská","Ľubochnianska","Ľubovnianska","Lúčna","Ľudové námestie","Ľudovíta Fullu","Luhačovická","Lužická","Lužná","Lýcejná","Lykovcová","M. Hella","Magnetová","Macharova","Majakovského","Majerníkova","Májkova","Májová","Makovického","Malá","Malé pálenisko","Malinová","Malý Draždiak","Malý trh","Mamateyova","Mamateyova","Mánesovo námestie","Mariánska","Marie Curie-Sklodows","Márie Medveďovej","Markova","Marótyho","Martákovej","Martinčekova","Martinčekova","Martinengova","Martinská","Mateja Bela","Matejkova","Matičná","Matúšova","Medená","Medzierka","Medzilaborecká","Merlotová","Mesačná","Mestská","Meteorová","Metodova","Mickiewiczova","Mierová","Michalská","Mikovíniho","Mikulášska","Miletičova","Miletičova","Mišíkova","Mišíkova","Mišíkova","Mliekárenská","Mlynarovičova","Mlynská dolina","Mlynská dolina","Mlynská dolina","Mlynské luhy","Mlynské nivy","Mlynské nivy","Mlynské nivy","Mlynské nivy","Mlynské nivy","Mlyny","Modranská","Mojmírova","Mokráň záhon","Mokrohájska cesta","Moldavská","Molecova","Moravská","Moskovská","Most SNP","Mostová","Mošovského","Motýlia","Moyzesova","Mozartova","Mraziarenská","Mudroňova","Mudroňova","Mudroňova","Muchovo námestie","Murgašova","Muškátová","Muštová","Múzejná","Myjavská","Mýtna","Mýtna","Na Baránku","Na Brezinách","Na Hrebienku","Na Kalvárii","Na Kampárke","Na kopci","Na križovatkách","Na lánoch","Na paši","Na piesku","Na Riviére","Na Sitine","Na Slavíne","Na stráni","Na Štyridsiatku","Na úvrati","Na vŕšku","Na výslní","Nábělkova","Nábrežie arm. gen. L","Nábrežná","Nad Dunajom","Nad lomom","Nad lúčkami","Nad lúčkami","Nad ostrovom","Nad Sihoťou","Námestie 1. mája","Námestie Alexandra D","Námestie Biely kríž","Námestie Hraničiarov","Námestie Jána Pavla","Námestie Ľudovíta Št","Námestie Martina Ben","Nám. M.R.Štefánika","Námestie slobody","Námestie slobody","Námestie SNP","Námestie SNP","Námestie sv. Františ","Narcisová","Nedbalova","Nekrasovova","Neronetová","Nerudova","Nevädzová","Nezábudková","Niťová","Nitrianska","Nížinná","Nobelova","Nobelovo námestie","Nová","Nová Rožňavská","Novackého","Nové pálenisko","Nové záhrady I","Nové záhrady II","Nové záhrady III","Nové záhrady IV","Nové záhrady V","Nové záhrady VI","Nové záhrady VII","Novinárska","Novobanská","Novohradská","Novosvetská","Novosvetská","Novosvetská","Obežná","Obchodná","Očovská","Odbojárov","Odborárska","Odborárske námestie","Odborárske námestie","Ohnicová","Okánikova","Okružná","Olbrachtova","Olejkárska","Ondavská","Ondrejovova","Oravská","Orechová cesta","Orechový rad","Oriešková","Ormisova","Osadná","Ostravská","Ostredková","Osuského","Osvetová","Otonelská","Ovručská","Ovsištské námestie","Pajštúnska","Palackého","Palárikova","Palárikova","Pálavská","Palisády","Palisády","Palisády","Palkovičova","Panenská","Pankúchova","Panónska cesta","Panská","Papánkovo námestie","Papraďová","Páričkova","Parková","Partizánska","Pasienky","Paulínyho","Pavlovičova","Pavlovova","Pavlovská","Pažického","Pažítková","Pečnianska","Pernecká","Pestovateľská","Peterská","Petzvalova","Pezinská","Piesočná","Piešťanská","Pifflova","Pilárikova","Pionierska","Pivoňková","Planckova","Planét","Plátenícka","Pluhová","Plynárenská","Plzenská","Pobrežná","Pod Bôrikom","Pod Kalváriou","Pod lesom","Pod Rovnicami","Pod vinicami","Podhorského","Podjavorinskej","Podlučinského","Podniková","Podtatranského","Pohronská","Polárna","Poloreckého","Poľná","Poľská","Poludníková","Porubského","Poštová","Považská","Povraznícka","Povraznícka","Pražská","Predstaničné námesti","Prepoštská","Prešernova","Prešovská","Prešovská","Prešovská","Pri Bielom kríži","Pri dvore","Pri Dynamitke","Pri Habánskom mlyne","Pri hradnej studni","Pri seči","Pri Starej Prachárni","Pri Starom háji","Pri Starom Mýte","Pri strelnici","Pri Suchom mlyne","Pri zvonici","Pribinova","Pribinova","Pribinova","Pribišova","Pribylinská","Priečna","Priekopy","Priemyselná","Priemyselná","Prievozská","Prievozská","Prievozská","Príkopova","Primaciálne námestie","Prístav","Prístavná","Prokofievova","Prokopa Veľkého","Prokopova","Prúdová","Prvosienková","Púpavová","Pustá","Puškinova","Račianska","Račianska","Račianske mýto","Radarová","Rádiová","Radlinského","Radničná","Radničné námestie","Radvanská","Rajská","Raketová","Rákosová","Rastislavova","Rázusovo nábrežie","Repná","Rešetkova","Revolučná","Révová","Revúcka","Rezedová","Riazanská","Riazanská","Ribayová","Riečna","Rigeleho","Rízlingová","Riznerova","Robotnícka","Romanova","Röntgenova","Rosná","Rovná","Rovniankova","Rovníková","Rozmarínová","Rožňavská","Rožňavská","Rožňavská","Rubinsteinova","Rudnayovo námestie","Rumančeková","Rusovská cesta","Ružičková","Ružinovská","Ružinovská","Ružinovská","Ružomberská","Ružová dolina","Ružová dolina","Rybárska brána","Rybné námestie","Rýdziková","Sabinovská","Sabinovská","Sad Janka Kráľa","Sadová","Sartorisova","Sasinkova","Seberíniho","Sečovská","Sedlárska","Sedmokrásková","Segnerova","Sekulská","Semianova","Senická","Senná","Schillerova","Schody pri starej vo","Sibírska","Sienkiewiczova","Silvánska","Sinokvetná","Skalická cesta","Skalná","Sklenárova","Sklenárska","Sládkovičova","Sladová","Slávičie údolie","Slavín","Slepá","Sliačska","Sliezska","Slivková","Slnečná","Slovanská","Slovinská","Slovnaftská","Slowackého","Smetanova","Smikova","Smolenická","Smolnícka","Smrečianska","Soferove schody","Socháňova","Sokolská","Solivarská","Sološnická","Somolického","Somolického","Sosnová","Spišská","Spojná","Spoločenská","Sputniková","Sreznevského","Srnčia","Stachanovská","Stálicová","Staničná","Stará Černicová","Stará Ivánska cesta","Stará Prievozská","Stará Vajnorská","Stará vinárska","Staré Grunty","Staré ihrisko","Staré záhrady","Starhradská","Starohájska","Staromestská","Staroturský chodník","Staviteľská","Stodolova","Stoklasová","Strakova","Strážnická","Strážny dom","Strečnianska","Stredná","Strelecká","Strmá cesta","Strojnícka","Stropkovská","Struková","Studená","Stuhová","Súbežná","Súhvezdná","Suché mýto","Suchohradská","Súkennícka","Súľovská","Sumbalova","Súmračná","Súťažná","Svätého Vincenta","Svätoplukova","Svätoplukova","Svätovojtešská","Svetlá","Svíbová","Svidnícka","Svoradova","Svrčia","Syslia","Šafárikovo námestie","Šafárikovo námestie","Šafránová","Šagátova","Šalviová","Šancová","Šancová","Šancová","Šancová","Šándorova","Šarišská","Šášovská","Šaštínska","Ševčenkova","Šintavská","Šípková","Škarniclova","Školská","Škovránčia","Škultétyho","Šoltésovej","Špieszova","Špitálska","Športová","Šrobárovo námestie","Šťastná","Štedrá","Štefánikova","Štefánikova","Štefánikova","Štefanovičova","Štefunkova","Štetinova","Štiavnická","Štúrova","Štyndlova","Šulekova","Šulekova","Šulekova","Šumavská","Šuňavcova","Šustekova","Švabinského","Tabaková","Tablicova","Táborská","Tajovského","Tallerova","Tehelná","Technická","Tekovská","Telocvičná","Tematínska","Teplická","Terchovská","Teslova","Tetmayerova","Thurzova","Tichá","Tilgnerova","Timravina","Tobrucká","Tokajícka","Tolstého","Tománkova","Tomášikova","Tomášikova","Tomášikova","Tomášikova","Tomášikova","Topoľčianska","Topoľová","Továrenská","Trebišovská","Trebišovská","Trebišovská","Trenčianska","Treskoňova","Trnavská cesta","Trnavská cesta","Trnavská cesta","Trnavská cesta","Trnavská cesta","Trnavské mýto","Tŕňová","Trojdomy","Tučkova","Tupolevova","Turbínova","Turčianska","Turnianska","Tvarožkova","Tylova","Tyršovo nábrežie","Údernícka","Údolná","Uhorková","Ukrajinská","Ulica 29. augusta","Ulica 29. augusta","Ulica 29. augusta","Ulica 29. augusta","Ulica Imricha Karvaš","Ulica Jozefa Krónera","Ulica Viktora Tegelh","Úprkova","Úradnícka","Uránová","Urbánkova","Ursínyho","Uršulínska","Úzka","V záhradách","Vajanského nábrežie","Vajnorská","Vajnorská","Vajnorská","Vajnorská","Vajnorská","Vajnorská","Vajnorská","Vajnorská","Vajnorská","Valašská","Valchárska","Vansovej","Vápenná","Varínska","Varšavská","Varšavská","Vavilovova","Vavrínova","Vazovova","Včelárska","Velehradská","Veltlínska","Ventúrska","Veterná","Veternicová","Vetvová","Viedenská cesta","Viedenská cesta","Vietnamská","Vígľašská","Vihorlatská","Viktorínova","Vilová","Vincenta Hložníka","Vínna","Vlastenecké námestie","Vlčkova","Vlčkova","Vlčkova","Vodný vrch","Votrubova","Vrábeľská","Vrakunská cesta","Vranovská","Vretenová","Vrchná","Vrútocká","Vyhliadka","Vyhnianska cesta","Vysoká","Vyšehradská","Vyšná","Wattova","Wilsonova","Wolkrova","Za Kasárňou","Za sokolovňou","Za Stanicou","Za tehelňou","Záborského","Zadunajská cesta","Záhorácka","Záhradnícka","Záhradnícka","Záhradnícka","Záhradnícka","Záhrebská","Záhrebská","Zálužická","Zámocká","Zámocké schody","Zámočnícka","Západná","Západný rad","Záporožská","Zátišie","Závodníkova","Zelená","Zelinárska","Zimná","Zlaté piesky","Zlaté schody","Znievska","Zohorská","Zochova","Zrinského","Zvolenská","Žabí majer","Žabotova","Žehrianska","Železná","Železničiarska","Žellova","Žiarska","Židovská","Žilinská","Žilinská","Živnostenská","Žižkova","Župné námestie"]})(DOn);var _Ka=DOn.exports,$On={exports:{}};(function(t){t.exports=["#{street}"]})($On);var TKa=$On.exports,FOn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(FOn);var CKa=FOn.exports,jOn={exports:{}};(function(t){t.exports=["Slovensko"]})(jOn);var kKa=jOn.exports;(function(t){var e={};t.exports=e,e.city_prefix=mKa,e.city_suffix=gKa,e.country=vKa,e.building_number=AKa,e.secondary_address=yKa,e.postcode=bKa,e.state=xKa,e.state_abbr=EKa,e.city_name=SKa,e.city=wKa,e.street=_Ka,e.street_name=TKa,e.street_address=CKa,e.default_country=kKa})(TOn);var RKa=TOn.exports,HOn={exports:{}},UOn={exports:{}};(function(t){t.exports=["s.r.o.","a.s.","v.o.s."]})(UOn);var MKa=UOn.exports,zOn={exports:{}};(function(t){t.exports=["Adaptive","Advanced","Ameliorated","Assimilated","Automated","Balanced","Business-focused","Centralized","Cloned","Compatible","Configurable","Cross-group","Cross-platform","Customer-focused","Customizable","Decentralized","De-engineered","Devolved","Digitized","Distributed","Diverse","Down-sized","Enhanced","Enterprise-wide","Ergonomic","Exclusive","Expanded","Extended","Face to face","Focused","Front-line","Fully-configurable","Function-based","Fundamental","Future-proofed","Grass-roots","Horizontal","Implemented","Innovative","Integrated","Intuitive","Inverse","Managed","Mandatory","Monitored","Multi-channelled","Multi-lateral","Multi-layered","Multi-tiered","Networked","Object-based","Open-architected","Open-source","Operative","Optimized","Optional","Organic","Organized","Persevering","Persistent","Phased","Polarised","Pre-emptive","Proactive","Profit-focused","Profound","Programmable","Progressive","Public-key","Quality-focused","Reactive","Realigned","Re-contextualized","Re-engineered","Reduced","Reverse-engineered","Right-sized","Robust","Seamless","Secured","Self-enabling","Sharable","Stand-alone","Streamlined","Switchable","Synchronised","Synergistic","Synergized","Team-oriented","Total","Triple-buffered","Universal","Up-sized","Upgradable","User-centric","User-friendly","Versatile","Virtual","Visionary","Vision-oriented"]})(zOn);var NKa=zOn.exports,GOn={exports:{}};(function(t){t.exports=["24 hour","24/7","3rd generation","4th generation","5th generation","6th generation","actuating","analyzing","asymmetric","asynchronous","attitude-oriented","background","bandwidth-monitored","bi-directional","bifurcated","bottom-line","clear-thinking","client-driven","client-server","coherent","cohesive","composite","context-sensitive","contextually-based","content-based","dedicated","demand-driven","didactic","directional","discrete","disintermediate","dynamic","eco-centric","empowering","encompassing","even-keeled","executive","explicit","exuding","fault-tolerant","foreground","fresh-thinking","full-range","global","grid-enabled","heuristic","high-level","holistic","homogeneous","human-resource","hybrid","impactful","incremental","intangible","interactive","intermediate","leading edge","local","logistical","maximized","methodical","mission-critical","mobile","modular","motivating","multimedia","multi-state","multi-tasking","national","needs-based","neutral","next generation","non-volatile","object-oriented","optimal","optimizing","radical","real-time","reciprocal","regional","responsive","scalable","secondary","solution-oriented","stable","static","systematic","systemic","system-worthy","tangible","tertiary","transitional","uniform","upward-trending","user-facing","value-added","web-enabled","well-modulated","zero administration","zero defect","zero tolerance"]})(GOn);var IKa=GOn.exports,VOn={exports:{}};(function(t){t.exports=["ability","access","adapter","algorithm","alliance","analyzer","application","approach","architecture","archive","artificial intelligence","array","attitude","benchmark","budgetary management","capability","capacity","challenge","circuit","collaboration","complexity","concept","conglomeration","contingency","core","customer loyalty","database","data-warehouse","definition","emulation","encoding","encryption","extranet","firmware","flexibility","focus group","forecast","frame","framework","function","functionalities","Graphic Interface","groupware","Graphical User Interface","hardware","help-desk","hierarchy","hub","implementation","info-mediaries","infrastructure","initiative","installation","instruction set","interface","internet solution","intranet","knowledge user","knowledge base","local area network","leverage","matrices","matrix","methodology","middleware","migration","model","moderator","monitoring","moratorium","neural-net","open architecture","open system","orchestration","paradigm","parallelism","policy","portal","pricing structure","process improvement","product","productivity","project","projection","protocol","secured line","service-desk","software","solution","standardization","strategy","structure","success","superstructure","support","synergy","system engine","task-force","throughput","time-frame","toolset","utilisation","website","workforce"]})(VOn);var PKa=VOn.exports,KOn={exports:{}};(function(t){t.exports=["implement","utilize","integrate","streamline","optimize","evolve","transform","embrace","enable","orchestrate","leverage","reinvent","aggregate","architect","enhance","incentivize","morph","empower","envisioneer","monetize","harness","facilitate","seize","disintermediate","synergize","strategize","deploy","brand","grow","target","syndicate","synthesize","deliver","mesh","incubate","engage","maximize","benchmark","expedite","reintermediate","whiteboard","visualize","repurpose","innovate","scale","unleash","drive","extend","engineer","revolutionize","generate","exploit","transition","e-enable","iterate","cultivate","matrix","productize","redefine","recontextualize"]})(KOn);var OKa=KOn.exports,WOn={exports:{}};(function(t){t.exports=["clicks-and-mortar","value-added","vertical","proactive","robust","revolutionary","scalable","leading-edge","innovative","intuitive","strategic","e-business","mission-critical","sticky","one-to-one","24/7","end-to-end","global","B2B","B2C","granular","frictionless","virtual","viral","dynamic","24/365","best-of-breed","killer","magnetic","bleeding-edge","web-enabled","interactive","dot-com","sexy","back-end","real-time","efficient","front-end","distributed","seamless","extensible","turn-key","world-class","open-source","cross-platform","cross-media","synergistic","bricks-and-clicks","out-of-the-box","enterprise","integrated","impactful","wireless","transparent","next-generation","cutting-edge","user-centric","visionary","customized","ubiquitous","plug-and-play","collaborative","compelling","holistic","rich","synergies","web-readiness","paradigms","markets","partnerships","infrastructures","platforms","initiatives","channels","eyeballs","communities","ROI","solutions","e-tailers","e-services","action-items","portals","niches","technologies","content","vortals","supply-chains","convergence","relationships","architectures","interfaces","e-markets","e-commerce","systems","bandwidth","infomediaries","models","mindshare","deliverables","users","schemas","networks","applications","metrics","e-business","functionalities","experiences","web services","methodologies"]})(WOn);var LKa=WOn.exports,QOn={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name} #{suffix}","#{Name.man_last_name} a #{Name.man_last_name} #{suffix}"]})(QOn);var BKa=QOn.exports;(function(t){var e={};t.exports=e,e.suffix=MKa,e.adjective=NKa,e.descriptor=IKa,e.noun=PKa,e.bs_verb=OKa,e.bs_noun=LKa,e.name=BKa})(HOn);var DKa=HOn.exports,qOn={exports:{}},YOn={exports:{}};(function(t){t.exports=["gmail.com","zoznam.sk","azet.sk"]})(YOn);var $Ka=YOn.exports,JOn={exports:{}};(function(t){t.exports=["sk","com","net","eu","org"]})(JOn);var FKa=JOn.exports;(function(t){var e={};t.exports=e,e.free_email=$Ka,e.domain_suffix=FKa})(qOn);var jKa=qOn.exports,ZOn={exports:{}},XOn={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(XOn);var HKa=XOn.exports;(function(t){var e={};t.exports=e,e.words=HKa})(ZOn);var UKa=ZOn.exports,e4n={exports:{}},t4n={exports:{}};(function(t){t.exports=["Drahoslav","Severín","Alexej","Ernest","Rastislav","Radovan","Dobroslav","Dalibor","Vincent","Miloš","Timotej","Gejza","Bohuš","Alfonz","Gašpar","Emil","Erik","Blažej","Zdenko","Dezider","Arpád","Valentín","Pravoslav","Jaromír","Roman","Matej","Frederik","Viktor","Alexander","Radomír","Albín","Bohumil","Kazimír","Fridrich","Radoslav","Tomáš","Alan","Branislav","Bruno","Gregor","Vlastimil","Boleslav","Eduard","Jozef","Víťazoslav","Blahoslav","Beňadik","Adrián","Gabriel","Marián","Emanuel","Miroslav","Benjamín","Hugo","Richard","Izidor","Zoltán","Albert","Igor","Július","Aleš","Fedor","Rudolf","Valér","Marcel","Ervín","Slavomír","Vojtech","Juraj","Marek","Jaroslav","Žigmund","Florián","Roland","Pankrác","Servác","Bonifác","Svetozár","Bernard","Júlia","Urban","Dušan","Viliam","Ferdinand","Norbert","Róbert","Medard","Zlatko","Anton","Vasil","Vít","Adolf","Vratislav","Alfréd","Alojz","Ján","Tadeáš","Ladislav","Peter","Pavol","Miloslav","Prokop","Cyril","Metod","Patrik","Oliver","Ivan","Kamil","Henrich","Drahomír","Bohuslav","Iľja","Daniel","Vladimír","Jakub","Krištof","Ignác","Gustáv","Jerguš","Dominik","Oskar","Vavrinec","Ľubomír","Mojmír","Leonard","Tichomír","Filip","Bartolomej","Ľudovít","Samuel","Augustín","Belo","Oleg","Bystrík","Ctibor","Ľudomil","Konštantín","Ľuboslav","Matúš","Móric","Ľuboš","Ľubor","Vladislav","Cyprián","Václav","Michal","Jarolím","Arnold","Levoslav","František","Dionýz","Maximilián","Koloman","Boris","Lukáš","Kristián","Vendelín","Sergej","Aurel","Demeter","Denis","Hubert","Karol","Imrich","René","Bohumír","Teodor","Tibor","Maroš","Martin","Svätopluk","Stanislav","Leopold","Eugen","Félix","Klement","Kornel","Milan","Vratko","Ondrej","Andrej","Edmund","Oldrich","Oto","Mikuláš","Ambróz","Radúz","Bohdan","Adam","Štefan","Dávid","Silvester"]})(t4n);var zKa=t4n.exports,n4n={exports:{}};(function(t){t.exports=["Alexandra","Karina","Daniela","Andrea","Antónia","Bohuslava","Dáša","Malvína","Kristína","Nataša","Bohdana","Drahomíra","Sára","Zora","Tamara","Ema","Tatiana","Erika","Veronika","Agáta","Dorota","Vanda","Zoja","Gabriela","Perla","Ida","Liana","Miloslava","Vlasta","Lívia","Eleonóra","Etela","Romana","Zlatica","Anežka","Bohumila","Františka","Angela","Matilda","Svetlana","Ľubica","Alena","Soňa","Vieroslava","Zita","Miroslava","Irena","Milena","Estera","Justína","Dana","Danica","Jela","Jaroslava","Jarmila","Lea","Anastázia","Galina","Lesana","Hermína","Monika","Ingrida","Viktória","Blažena","Žofia","Sofia","Gizela","Viola","Gertrúda","Zina","Júlia","Juliana","Želmíra","Ela","Vanesa","Iveta","Vilma","Petronela","Žaneta","Xénia","Karolína","Lenka","Laura","Stanislava","Margaréta","Dobroslava","Blanka","Valéria","Paulína","Sidónia","Adriána","Beáta","Petra","Melánia","Diana","Berta","Patrícia","Lujza","Amália","Milota","Nina","Margita","Kamila","Dušana","Magdaléna","Oľga","Anna","Hana","Božena","Marta","Libuša","Božidara","Dominika","Hortenzia","Jozefína","Štefánia","Ľubomíra","Zuzana","Darina","Marcela","Milica","Elena","Helena","Lýdia","Anabela","Jana","Silvia","Nikola","Ružena","Nora","Drahoslava","Linda","Melinda","Rebeka","Rozália","Regína","Alica","Marianna","Miriama","Martina","Mária","Jolana","Ľudomila","Ľudmila","Olympia","Eugénia","Ľuboslava","Zdenka","Edita","Michaela","Stela","Viera","Natália","Eliška","Brigita","Valentína","Terézia","Vladimíra","Hedviga","Uršuľa","Alojza","Kvetoslava","Sabína","Dobromila","Klára","Simona","Aurélia","Denisa","Renáta","Irma","Agnesa","Klaudia","Alžbeta","Elvíra","Cecília","Emília","Katarína","Henrieta","Bibiána","Barbora","Marína","Izabela","Hilda","Otília","Lucia","Branislava","Bronislava","Ivica","Albína","Kornélia","Sláva","Slávka","Judita","Dagmara","Adela","Nadežda","Eva","Filoména","Ivana","Milada"]})(n4n);var GKa=n4n.exports,r4n={exports:{}};(function(t){t.exports=["Antal","Babka","Bahna","Bahno","Baláž","Baran","Baranka","Bartovič","Bartoš","Bača","Bernolák","Beňo","Bicek","Bielik","Blaho","Bondra","Bosák","Boška","Brezina","Bukovský","Chalupka","Chudík","Cibula","Cibulka","Cibuľa","Cyprich","Cíger","Danko","Daňko","Daňo","Debnár","Dej","Dekýš","Doležal","Dočolomanský","Droppa","Dubovský","Dudek","Dula","Dulla","Dusík","Dvonč","Dzurjanin","Dávid","Fabian","Fabián","Fajnor","Farkašovský","Fico","Filc","Filip","Finka","Ftorek","Gašpar","Gašparovič","Gocník","Gregor","Greguš","Grznár","Hablák","Habšuda","Halda","Haluška","Halák","Hanko","Hanzal","Haščák","Heretik","Hečko","Hlaváček","Hlinka","Holub","Holuby","Hossa","Hoza","Hraško","Hric","Hrmo","Hrušovský","Huba","Ihnačák","Janeček","Janoška","Jantošovič","Janík","Janček","Jedľovský","Jendek","Jonata","Jurina","Jurkovič","Jurík","Jánošík","Kafenda","Kaliský","Karul","Keníž","Klapka","Kmeť","Kolesár","Kollár","Kolnik","Kolník","Kolár","Korec","Kostka","Kostrec","Kováč","Kováčik","Koza","Kočiš","Krajíček","Krajči","Krajčo","Krajčovič","Krajčír","Králik","Krúpa","Kubík","Kyseľ","Kállay","Labuda","Lepšík","Lipták","Lisický","Lubina","Lukáč","Lupták","Líška","Madej","Majeský","Malachovský","Malíšek","Mamojka","Marcinko","Marián","Masaryk","Maslo","Matiaško","Medveď","Melcer","Mečiar","Michalík","Mihalik","Mihál","Mihálik","Mikloško","Mikulík","Mikuš","Mikúš","Milota","Mináč","Mišík","Mojžiš","Mokroš","Mora","Moravčík","Mydlo","Nemec","Nitra","Novák","Obšut","Ondruš","Otčenáš","Pauko","Pavlikovský","Pavúk","Pašek","Paška","Paško","Pelikán","Petrovický","Petruška","Peško","Plch","Plekanec","Podhradský","Podkonický","Poliak","Pupák","Rak","Repiský","Romančík","Rus","Ružička","Rybníček","Rybár","Rybárik","Samson","Sedliak","Senko","Sklenka","Skokan","Skutecký","Slašťan","Sloboda","Slobodník","Slota","Slovák","Smrek","Stodola","Straka","Strnisko","Svrbík","Sámel","Sýkora","Tatar","Tatarka","Tatár","Tatárka","Thomka","Tomeček","Tomka","Tomko","Truben","Turčok","Uram","Urblík","Vajcík","Vajda","Valach","Valachovič","Valent","Valuška","Vanek","Vesel","Vicen","Višňovský","Vlach","Vojtek","Vydarený","Zajac","Zima","Zimka","Záborský","Zúbrik","Čapkovič","Čaplovič","Čarnogurský","Čierny","Čobrda","Ďaďo","Ďurica","Ďuriš","Šidlo","Šimonovič","Škriniar","Škultéty","Šmajda","Šoltés","Šoltýs","Štefan","Štefanka","Šulc","Šurka","Švehla","Šťastný"]})(r4n);var VKa=r4n.exports,i4n={exports:{}};(function(t){t.exports=["Antalová","Babková","Bahnová","Balážová","Baranová","Baranková","Bartovičová","Bartošová","Bačová","Bernoláková","Beňová","Biceková","Bieliková","Blahová","Bondrová","Bosáková","Bošková","Brezinová","Bukovská","Chalupková","Chudíková","Cibulová","Cibulková","Cyprichová","Cígerová","Danková","Daňková","Daňová","Debnárová","Dejová","Dekýšová","Doležalová","Dočolomanská","Droppová","Dubovská","Dudeková","Dulová","Dullová","Dusíková","Dvončová","Dzurjaninová","Dávidová","Fabianová","Fabiánová","Fajnorová","Farkašovská","Ficová","Filcová","Filipová","Finková","Ftoreková","Gašparová","Gašparovičová","Gocníková","Gregorová","Gregušová","Grznárová","Habláková","Habšudová","Haldová","Halušková","Haláková","Hanková","Hanzalová","Haščáková","Heretiková","Hečková","Hlaváčeková","Hlinková","Holubová","Holubyová","Hossová","Hozová","Hrašková","Hricová","Hrmová","Hrušovská","Hubová","Ihnačáková","Janečeková","Janošková","Jantošovičová","Janíková","Jančeková","Jedľovská","Jendeková","Jonatová","Jurinová","Jurkovičová","Juríková","Jánošíková","Kafendová","Kaliská","Karulová","Kenížová","Klapková","Kmeťová","Kolesárová","Kollárová","Kolniková","Kolníková","Kolárová","Korecová","Kostkaová","Kostrecová","Kováčová","Kováčiková","Kozová","Kočišová","Krajíčeková","Krajčová","Krajčovičová","Krajčírová","Králiková","Krúpová","Kubíková","Kyseľová","Kállayová","Labudová","Lepšíková","Liptáková","Lisická","Lubinová","Lukáčová","Luptáková","Líšková","Madejová","Majeská","Malachovská","Malíšeková","Mamojková","Marcinková","Mariánová","Masaryková","Maslová","Matiašková","Medveďová","Melcerová","Mečiarová","Michalíková","Mihaliková","Mihálová","Miháliková","Miklošková","Mikulíková","Mikušová","Mikúšová","Milotová","Mináčová","Mišíková","Mojžišová","Mokrošová","Morová","Moravčíková","Mydlová","Nemcová","Nováková","Obšutová","Ondrušová","Otčenášová","Pauková","Pavlikovská","Pavúková","Pašeková","Pašková","Pelikánová","Petrovická","Petrušková","Pešková","Plchová","Plekanecová","Podhradská","Podkonická","Poliaková","Pupáková","Raková","Repiská","Romančíková","Rusová","Ružičková","Rybníčeková","Rybárová","Rybáriková","Samsonová","Sedliaková","Senková","Sklenková","Skokanová","Skutecká","Slašťanová","Slobodová","Slobodníková","Slotová","Slováková","Smreková","Stodolová","Straková","Strnisková","Svrbíková","Sámelová","Sýkorová","Tatarová","Tatarková","Tatárová","Tatárkaová","Thomková","Tomečeková","Tomková","Trubenová","Turčoková","Uramová","Urblíková","Vajcíková","Vajdová","Valachová","Valachovičová","Valentová","Valušková","Vaneková","Veselová","Vicenová","Višňovská","Vlachová","Vojteková","Vydarená","Zajacová","Zimová","Zimková","Záborská","Zúbriková","Čapkovičová","Čaplovičová","Čarnogurská","Čierná","Čobrdová","Ďaďová","Ďuricová","Ďurišová","Šidlová","Šimonovičová","Škriniarová","Škultétyová","Šmajdová","Šoltésová","Šoltýsová","Štefanová","Štefanková","Šulcová","Šurková","Švehlová","Šťastná"]})(i4n);var KKa=i4n.exports,a4n={exports:{}};(function(t){t.exports=["Ing.","Mgr.","JUDr.","MUDr."]})(a4n);var WKa=a4n.exports,o4n={exports:{}};(function(t){t.exports=["Phd."]})(o4n);var QKa=o4n.exports,s4n={exports:{}};(function(t){t.exports={descriptor:["Lead","Senior","Direct","Corporate","Dynamic","Future","Product","National","Regional","District","Central","Global","Customer","Investor","Dynamic","International","Legacy","Forward","Internal","Human","Chief","Principal"],level:["Solutions","Program","Brand","Security","Research","Marketing","Directives","Implementation","Integration","Functionality","Response","Paradigm","Tactics","Identity","Markets","Group","Division","Applications","Optimization","Operations","Infrastructure","Intranet","Communications","Web","Branding","Quality","Assurance","Mobility","Accounts","Data","Creative","Configuration","Accountability","Interactions","Factors","Usability","Metrics"],job:["Supervisor","Associate","Executive","Liaison","Officer","Manager","Engineer","Specialist","Director","Coordinator","Administrator","Architect","Analyst","Designer","Planner","Orchestrator","Technician","Developer","Producer","Consultant","Assistant","Facilitator","Agent","Representative","Strategist"]}})(s4n);var qKa=s4n.exports,l4n={exports:{}};(function(t){t.exports=["#{prefix} #{male_first_name} #{male_last_name}","#{prefix} #{female_first_name} #{female_last_name}","#{male_first_name} #{male_last_name} #{suffix}","#{female_first_name} #{female_last_name} #{suffix}","#{male_first_name} #{male_last_name}","#{male_first_name} #{male_last_name}","#{male_first_name} #{male_last_name}","#{female_first_name} #{female_last_name}","#{female_first_name} #{female_last_name}","#{female_first_name} #{female_last_name}"]})(l4n);var YKa=l4n.exports;(function(t){var e={};t.exports=e,e.male_first_name=zKa,e.female_first_name=GKa,e.male_last_name=VKa,e.female_last_name=KKa,e.prefix=WKa,e.suffix=QKa,e.title=qKa,e.name=YKa})(e4n);var JKa=e4n.exports,c4n={exports:{}},u4n={exports:{}};(function(t){t.exports=["09## ### ###","0## #### ####","0# #### ####","+421 ### ### ###"]})(u4n);var ZKa=u4n.exports;(function(t){var e={};t.exports=e,e.formats=ZKa})(c4n);var XKa=c4n.exports;(function(t){var e={};t.exports=e,e.title="Slovakian",e.address=RKa,e.company=DKa,e.internet=jKa,e.lorem=UKa,e.name=JKa,e.phone_number=XKa})(_On);var eWa=_On.exports,d4n={exports:{}},h4n={exports:{}},f4n={exports:{}};(function(t){t.exports=["Söder","Norr","Väst","Öster","Aling","Ar","Av","Bo","Br","Bå","Ek","En","Esk","Fal","Gäv","Göte","Ha","Helsing","Karl","Krist","Kram","Kung","Kö","Lyck","Ny"]})(f4n);var tWa=f4n.exports,p4n={exports:{}};(function(t){t.exports=["stad","land","sås","ås","holm","tuna","sta","berg","löv","borg","mora","hamn","fors","köping","by","hult","torp","fred","vik"]})(p4n);var nWa=p4n.exports,m4n={exports:{}};(function(t){t.exports=["Ryssland","Kanada","Kina","USA","Brasilien","Australien","Indien","Argentina","Kazakstan","Algeriet","DR Kongo","Danmark","Färöarna","Grönland","Saudiarabien","Mexiko","Indonesien","Sudan","Libyen","Iran","Mongoliet","Peru","Tchad","Niger","Angola","Mali","Sydafrika","Colombia","Etiopien","Bolivia","Mauretanien","Egypten","Tanzania","Nigeria","Venezuela","Namibia","Pakistan","Moçambique","Turkiet","Chile","Zambia","Marocko","Västsahara","Burma","Afghanistan","Somalia","Centralafrikanska republiken","Sydsudan","Ukraina","Botswana","Madagaskar","Kenya","Frankrike","Franska Guyana","Jemen","Thailand","Spanien","Turkmenistan","Kamerun","Papua Nya Guinea","Sverige","Uzbekistan","Irak","Paraguay","Zimbabwe","Japan","Tyskland","Kongo","Finland","Malaysia","Vietnam","Norge","Svalbard","Jan Mayen","Elfenbenskusten","Polen","Italien","Filippinerna","Ecuador","Burkina Faso","Nya Zeeland","Gabon","Guinea","Storbritannien","Ghana","Rumänien","Laos","Uganda","Guyana","Oman","Vitryssland","Kirgizistan","Senegal","Syrien","Kambodja","Uruguay","Tunisien","Surinam","Nepal","Bangladesh","Tadzjikistan","Grekland","Nicaragua","Eritrea","Nordkorea","Malawi","Benin","Honduras","Liberia","Bulgarien","Kuba","Guatemala","Island","Sydkorea","Ungern","Portugal","Jordanien","Serbien","Azerbajdzjan","Österrike","Förenade Arabemiraten","Tjeckien","Panama","Sierra Leone","Irland","Georgien","Sri Lanka","Litauen","Lettland","Togo","Kroatien","Bosnien och Hercegovina","Costa Rica","Slovakien","Dominikanska republiken","Bhutan","Estland","Danmark","Färöarna","Grönland","Nederländerna","Schweiz","Guinea-Bissau","Taiwan","Moldavien","Belgien","Lesotho","Armenien","Albanien","Salomonöarna","Ekvatorialguinea","Burundi","Haiti","Rwanda","Makedonien","Djibouti","Belize","Israel","El Salvador","Slovenien","Fiji","Kuwait","Swaziland","Timor-Leste","Montenegro","Bahamas","Vanuatu","Qatar","Gambia","Jamaica","Kosovo","Libanon","Cypern","Brunei","Trinidad och Tobago","Kap Verde","Samoa","Luxemburg","Komorerna","Mauritius","São Tomé och Príncipe","Kiribati","Dominica","Tonga","Mikronesiens federerade stater","Singapore","Bahrain","Saint Lucia","Andorra","Palau","Seychellerna","Antigua och Barbuda","Barbados","Saint Vincent och Grenadinerna","Grenada","Malta","Maldiverna","Saint Kitts och Nevis","Marshallöarna","Liechtenstein","San Marino","Tuvalu","Nauru","Monaco","Vatikanstaten"]})(m4n);var rWa=m4n.exports,g4n={exports:{}};(function(t){t.exports=["s Väg","s Gata"]})(g4n);var iWa=g4n.exports,v4n={exports:{}};(function(t){t.exports=["Västra","Östra","Norra","Södra","Övre","Undre"]})(v4n);var aWa=v4n.exports,A4n={exports:{}};(function(t){t.exports=["Björk","Järnvägs","Ring","Skol","Skogs","Ny","Gran","Idrotts","Stor","Kyrk","Industri","Park","Strand","Skol","Trädgård","Ängs","Kyrko","Villa","Ek","Kvarn","Stations","Back","Furu","Gen","Fabriks","Åker","Bäck","Asp"]})(A4n);var oWa=A4n.exports,y4n={exports:{}};(function(t){t.exports=["vägen","gatan","gränden","gärdet","allén"]})(y4n);var sWa=y4n.exports,b4n={exports:{}};(function(t){t.exports=["Blekinge","Dalarna","Gotland","Gävleborg","Göteborg","Halland","Jämtland","Jönköping","Kalmar","Kronoberg","Norrbotten","Skaraborg","Skåne","Stockholm","Södermanland","Uppsala","Värmland","Västerbotten","Västernorrland","Västmanland","Älvsborg","Örebro","Östergötland"]})(b4n);var lWa=b4n.exports,x4n={exports:{}};(function(t){t.exports=["#{city_prefix}#{city_suffix}"]})(x4n);var cWa=x4n.exports,E4n={exports:{}};(function(t){t.exports=["#{street_root}#{street_suffix}","#{street_prefix} #{street_root}#{street_suffix}","#{Name.first_name}#{common_street_suffix}","#{Name.last_name}#{common_street_suffix}"]})(E4n);var uWa=E4n.exports,S4n={exports:{}};(function(t){t.exports=["#####"]})(S4n);var dWa=S4n.exports,w4n={exports:{}};(function(t){t.exports=["###","##","#"]})(w4n);var hWa=w4n.exports,_4n={exports:{}};(function(t){t.exports=["Lgh. ###","Hus ###"]})(_4n);var fWa=_4n.exports,T4n={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(T4n);var pWa=T4n.exports,C4n={exports:{}};(function(t){t.exports=["Sverige"]})(C4n);var mWa=C4n.exports;(function(t){var e={};t.exports=e,e.city_prefix=tWa,e.city_suffix=nWa,e.country=rWa,e.common_street_suffix=iWa,e.street_prefix=aWa,e.street_root=oWa,e.street_suffix=sWa,e.state=lWa,e.city=cWa,e.street_name=uWa,e.postcode=dWa,e.building_number=hWa,e.secondary_address=fWa,e.street_address=pWa,e.default_country=mWa})(h4n);var gWa=h4n.exports,k4n={exports:{}},R4n={exports:{}};(function(t){t.exports=["Gruppen","AB","HB","Group","Investment","Kommanditbolag","Aktiebolag"]})(R4n);var vWa=R4n.exports,M4n={exports:{}};(function(t){t.exports=["#{Name.last_name} #{suffix}","#{Name.last_name}-#{Name.last_name}","#{Name.last_name}, #{Name.last_name} #{suffix}"]})(M4n);var AWa=M4n.exports;(function(t){var e={};t.exports=e,e.suffix=vWa,e.name=AWa})(k4n);var yWa=k4n.exports,N4n={exports:{}},I4n={exports:{}};(function(t){t.exports=["se","nu","info","com","org"]})(I4n);var bWa=I4n.exports;(function(t){var e={};t.exports=e,e.domain_suffix=bWa})(N4n);var xWa=N4n.exports,P4n={exports:{}},O4n={exports:{}};(function(t){t.exports=["Astrid","Anna","Alice","Amanda","Ann","Agneta","Anette","Anneli","Alexandra","Agnes","Anne","Alva","Alma","Angelica","Ann-Marie","Maria","Margareta","Elisabeth","Eva","Birgitta","Kristina","Karin","Elisabet","Marie","Lotta","Ronja","Veronica"]})(O4n);var EWa=O4n.exports,L4n={exports:{}};(function(t){t.exports=["Erik","Lars","Karl","Anders","Per","Johan","Nils","Lennart","Emil","Hans"]})(L4n);var SWa=L4n.exports,B4n={exports:{}};(function(t){t.exports=["Johansson","Andersson","Karlsson","Nilsson","Eriksson","Larsson","Olsson","Persson","Svensson","Gustafsson"]})(B4n);var wWa=B4n.exports,D4n={exports:{}};(function(t){t.exports=["Dr.","Prof.","PhD."]})(D4n);var _Wa=D4n.exports,$4n={exports:{}};(function(t){t.exports={descriptor:["Lead","Senior","Direct","Corporate","Dynamic","Future","Product","National","Regional","District","Central","Global","Customer","Investor","Dynamic","International","Legacy","Forward","Internal","Human","Chief","Principal"],level:["Solutions","Program","Brand","Security","Research","Marketing","Directives","Implementation","Integration","Functionality","Response","Paradigm","Tactics","Identity","Markets","Group","Division","Applications","Optimization","Operations","Infrastructure","Intranet","Communications","Web","Branding","Quality","Assurance","Mobility","Accounts","Data","Creative","Configuration","Accountability","Interactions","Factors","Usability","Metrics"],job:["Supervisor","Associate","Executive","Liaison","Officer","Manager","Engineer","Specialist","Director","Coordinator","Administrator","Architect","Analyst","Designer","Planner","Orchestrator","Technician","Developer","Producer","Consultant","Assistant","Facilitator","Agent","Representative","Strategist"]}})($4n);var TWa=$4n.exports,F4n={exports:{}};(function(t){t.exports=["#{first_name_women} #{last_name}","#{first_name_men} #{last_name}","#{first_name_women} #{last_name}","#{first_name_men} #{last_name}","#{first_name_women} #{last_name}","#{first_name_men} #{last_name}","#{prefix} #{first_name_men} #{last_name}","#{prefix} #{first_name_women} #{last_name}"]})(F4n);var CWa=F4n.exports;(function(t){var e={};t.exports=e,e.first_name_women=EWa,e.first_name_men=SWa,e.last_name=wWa,e.prefix=_Wa,e.title=TWa,e.name=CWa})(P4n);var kWa=P4n.exports,j4n={exports:{}},H4n={exports:{}};(function(t){t.exports=["####-#####","####-######"]})(H4n);var RWa=H4n.exports;(function(t){var e={};t.exports=e,e.formats=RWa})(j4n);var MWa=j4n.exports,U4n={exports:{}},z4n={exports:{}};(function(t){t.exports=[56,62,59]})(z4n);var NWa=z4n.exports,G4n={exports:{}};(function(t){t.exports=["#{common_cell_prefix}-###-####"]})(G4n);var IWa=G4n.exports;(function(t){var e={};t.exports=e,e.common_cell_prefix=NWa,e.formats=IWa})(U4n);var PWa=U4n.exports,V4n={exports:{}},K4n={exports:{}};(function(t){t.exports=["vit","silver","grå","svart","röd","grön","blå","gul","lila","indigo","guld","brun","rosa","purpur","korall"]})(K4n);var OWa=K4n.exports,W4n={exports:{}};(function(t){t.exports=["Böcker","Filmer","Musik","Spel","Elektronik","Datorer","Hem","Trädgård","Verktyg","Livsmedel","Hälsa","Skönhet","Leksaker","Klädsel","Skor","Smycken","Sport"]})(W4n);var LWa=W4n.exports,Q4n={exports:{}};(function(t){t.exports={adjective:["Liten","Ergonomisk","Robust","Intelligent","Söt","Otrolig","Fantastisk","Praktisk","Slimmad","Grym"],material:["Stål","Metall","Trä","Betong","Plast","Bomull","Granit","Gummi","Latex"],product:["Stol","Bil","Dator","Handskar","Byxor","Skjorta","Bord","Skor","Hatt"]}})(Q4n);var BWa=Q4n.exports;(function(t){var e={};t.exports=e,e.color=OWa,e.department=LWa,e.product_name=BWa})(V4n);var DWa=V4n.exports,q4n={exports:{}},Y4n={exports:{}};(function(t){t.exports=["IF","FF","BK","HK","AIF","SK","FC","SK","BoIS","FK","BIS","FIF","IK"]})(Y4n);var $Wa=Y4n.exports,J4n={exports:{}};(function(t){t.exports=["#{Address.city} #{suffix}"]})(J4n);var FWa=J4n.exports;(function(t){var e={};t.exports=e,e.suffix=$Wa,e.name=FWa})(q4n);var jWa=q4n.exports,Z4n={exports:{}},X4n={exports:{}};(function(t){t.exports={wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],abbr:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"]}})(X4n);var HWa=X4n.exports,eLn={exports:{}};(function(t){t.exports={wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],abbr:["sön","mån","tis","ons","tor","fre","lör"]}})(eLn);var UWa=eLn.exports;(function(t){var e={};t.exports=e,e.month=HWa,e.weekday=UWa})(Z4n);var zWa=Z4n.exports;(function(t){var e={};t.exports=e,e.title="Swedish",e.address=gWa,e.company=yWa,e.internet=xWa,e.name=kWa,e.phone_number=MWa,e.cell_phone=PWa,e.commerce=DWa,e.team=jWa,e.date=zWa})(d4n);var GWa=d4n.exports,tLn={exports:{}},nLn={exports:{}},rLn={exports:{}};(function(t){t.exports=["Adana","Adıyaman","Afyon","Ağrı","Amasya","Ankara","Antalya","Artvin","Aydın","Balıkesir","Bilecik","Bingöl","Bitlis","Bolu","Burdur","Bursa","Çanakkale","Çankırı","Çorum","Denizli","Diyarbakır","Edirne","Elazığ","Erzincan","Erzurum","Eskişehir","Gaziantep","Giresun","Gümüşhane","Hakkari","Hatay","Isparta","İçel (Mersin)","İstanbul","İzmir","Kars","Kastamonu","Kayseri","Kırklareli","Kırşehir","Kocaeli","Konya","Kütahya","Malatya","Manisa","K.maraş","Mardin","Muğla","Muş","Nevşehir","Niğde","Ordu","Rize","Sakarya","Samsun","Siirt","Sinop","Sivas","Tekirdağ","Tokat","Trabzon","Tunceli","Şanlıurfa","Uşak","Van","Yozgat","Zonguldak","Aksaray","Bayburt","Karaman","Kırıkkale","Batman","Şırnak","Bartın","Ardahan","Iğdır","Yalova","Karabük","Kilis","Osmaniye","Düzce"]})(rLn);var VWa=rLn.exports,iLn={exports:{}};(function(t){t.exports=["Atatürk Bulvarı","Alparslan Türkeş Bulvarı","Ali Çetinkaya Caddesi","Tevfik Fikret Caddesi","Kocatepe Caddesi","İsmet Paşa Caddesi","30 Ağustos Caddesi","İsmet Attila Caddesi","Namık Kemal Caddesi","Lütfi Karadirek Caddesi","Sarıkaya Caddesi","Yunus Emre Sokak","Dar Sokak","Fatih Sokak ","Harman Yolu Sokak ","Ergenekon Sokak  ","Ülkü Sokak","Sağlık Sokak","Okul Sokak","Harman Altı Sokak","Kaldırım Sokak","Mevlana Sokak","Gül Sokak","Sıran Söğüt Sokak","Güven Yaka Sokak","Saygılı Sokak","Menekşe Sokak","Dağınık Evler Sokak","Sevgi Sokak","Afyon Kaya Sokak","Oğuzhan Sokak","İbn-i Sina Sokak","Okul Sokak","Bahçe Sokak","Köypınar Sokak","Kekeçoğlu Sokak","Barış Sokak","Bayır Sokak","Kerimoğlu Sokak","Nalbant Sokak","Bandak Sokak"]})(iLn);var KWa=iLn.exports,aLn={exports:{}};(function(t){t.exports=["Afganistan","Almanya","Amerika Birleşik Devletleri","Amerikan Samoa","Andorra","Angola","Anguilla, İngiltere","Antigua ve Barbuda","Arjantin","Arnavutluk","Aruba, Hollanda","Avustralya","Avusturya","Azerbaycan","Bahama Adaları","Bahreyn","Bangladeş","Barbados","Belçika","Belize","Benin","Bermuda, İngiltere","Beyaz Rusya","Bhutan","Birleşik Arap Emirlikleri","Birmanya (Myanmar)","Bolivya","Bosna Hersek","Botswana","Brezilya","Brunei","Bulgaristan","Burkina Faso","Burundi","Cape Verde","Cayman Adaları, İngiltere","Cebelitarık, İngiltere","Cezayir","Christmas Adası , Avusturalya","Cibuti","Çad","Çek Cumhuriyeti","Çin","Danimarka","Doğu Timor","Dominik Cumhuriyeti","Dominika","Ekvator","Ekvator Ginesi","El Salvador","Endonezya","Eritre","Ermenistan","Estonya","Etiyopya","Fas","Fiji","Fildişi Sahili","Filipinler","Filistin","Finlandiya","Folkland Adaları, İngiltere","Fransa","Fransız Guyanası","Fransız Güney Eyaletleri (Kerguelen Adaları)","Fransız Polinezyası","Gabon","Galler","Gambiya","Gana","Gine","Gine-Bissau","Grenada","Grönland","Guadalup, Fransa","Guam, Amerika","Guatemala","Guyana","Güney Afrika","Güney Georgia ve Güney Sandviç Adaları, İngiltere","Güney Kıbrıs Rum Yönetimi","Güney Kore","Gürcistan H","Haiti","Hırvatistan","Hindistan","Hollanda","Hollanda Antilleri","Honduras","Irak","İngiltere","İran","İrlanda","İspanya","İsrail","İsveç","İsviçre","İtalya","İzlanda","Jamaika","Japonya","Johnston Atoll, Amerika","K.K.T.C.","Kamboçya","Kamerun","Kanada","Kanarya Adaları","Karadağ","Katar","Kazakistan","Kenya","Kırgızistan","Kiribati","Kolombiya","Komorlar","Kongo","Kongo Demokratik Cumhuriyeti","Kosova","Kosta Rika","Kuveyt","Kuzey İrlanda","Kuzey Kore","Kuzey Maryana Adaları","Küba","Laos","Lesotho","Letonya","Liberya","Libya","Liechtenstein","Litvanya","Lübnan","Lüksemburg","Macaristan","Madagaskar","Makau (Makao)","Makedonya","Malavi","Maldiv Adaları","Malezya","Mali","Malta","Marşal Adaları","Martinik, Fransa","Mauritius","Mayotte, Fransa","Meksika","Mısır","Midway Adaları, Amerika","Mikronezya","Moğolistan","Moldavya","Monako","Montserrat","Moritanya","Mozambik","Namibia","Nauru","Nepal","Nijer","Nijerya","Nikaragua","Niue, Yeni Zelanda","Norveç","Orta Afrika Cumhuriyeti","Özbekistan","Pakistan","Palau Adaları","Palmyra Atoll, Amerika","Panama","Papua Yeni Gine","Paraguay","Peru","Polonya","Portekiz","Porto Riko, Amerika","Reunion, Fransa","Romanya","Ruanda","Rusya Federasyonu","Saint Helena, İngiltere","Saint Martin, Fransa","Saint Pierre ve Miquelon, Fransa","Samoa","San Marino","Santa Kitts ve Nevis","Santa Lucia","Santa Vincent ve Grenadinler","Sao Tome ve Principe","Senegal","Seyşeller","Sırbistan","Sierra Leone","Singapur","Slovakya","Slovenya","Solomon Adaları","Somali","Sri Lanka","Sudan","Surinam","Suriye","Suudi Arabistan","Svalbard, Norveç","Svaziland","Şili","Tacikistan","Tanzanya","Tayland","Tayvan","Togo","Tonga","Trinidad ve Tobago","Tunus","Turks ve Caicos Adaları, İngiltere","Tuvalu","Türkiye","Türkmenistan","Uganda","Ukrayna","Umman","Uruguay","Ürdün","Vallis ve Futuna, Fransa","Vanuatu","Venezuela","Vietnam","Virgin Adaları, Amerika","Virgin Adaları, İngiltere","Wake Adaları, Amerika","Yemen","Yeni Kaledonya, Fransa","Yeni Zelanda","Yunanistan","Zambiya","Zimbabve"]})(aLn);var WWa=aLn.exports,oLn={exports:{}};(function(t){t.exports=["#####"]})(oLn);var QWa=oLn.exports,sLn={exports:{}};(function(t){t.exports=["Türkiye"]})(sLn);var qWa=sLn.exports,lLn={exports:{}};(function(t){t.exports=["###","##","#","##a","##b","##c"]})(lLn);var YWa=lLn.exports,cLn={exports:{}};(function(t){t.exports=["#{street_root}"]})(cLn);var JWa=cLn.exports,uLn={exports:{}};(function(t){t.exports=["#{street_name} #{building_number}"]})(uLn);var ZWa=uLn.exports;(function(t){var e={};t.exports=e,e.city=VWa,e.street_root=KWa,e.country=WWa,e.postcode=QWa,e.default_country=qWa,e.building_number=YWa,e.street_name=JWa,e.street_address=ZWa})(nLn);var XWa=nLn.exports,dLn={exports:{}},hLn={exports:{}};(function(t){t.exports=["com.tr","com","biz","info","name","gov.tr"]})(hLn);var eQa=hLn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=eQa})(dLn);var tQa=dLn.exports,fLn={exports:{}},pLn={exports:{}};(function(t){t.exports=["alias","consequatur","aut","perferendis","sit","voluptatem","accusantium","doloremque","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","et","quasi","architecto","beatae","vitae","dicta","sunt","explicabo","aspernatur","aut","odit","aut","fugit","sed","quia","consequuntur","magni","dolores","eos","qui","ratione","voluptatem","sequi","nesciunt","neque","dolorem","ipsum","quia","dolor","sit","amet","consectetur","adipisci","velit","sed","quia","non","numquam","eius","modi","tempora","incidunt","ut","labore","et","dolore","magnam","aliquam","quaerat","voluptatem","ut","enim","ad","minima","veniam","quis","nostrum","exercitationem","ullam","corporis","nemo","enim","ipsam","voluptatem","quia","voluptas","sit","suscipit","laboriosam","nisi","ut","aliquid","ex","ea","commodi","consequatur","quis","autem","vel","eum","iure","reprehenderit","qui","in","ea","voluptate","velit","esse","quam","nihil","molestiae","et","iusto","odio","dignissimos","ducimus","qui","blanditiis","praesentium","laudantium","totam","rem","voluptatum","deleniti","atque","corrupti","quos","dolores","et","quas","molestias","excepturi","sint","occaecati","cupiditate","non","provident","sed","ut","perspiciatis","unde","omnis","iste","natus","error","similique","sunt","in","culpa","qui","officia","deserunt","mollitia","animi","id","est","laborum","et","dolorum","fuga","et","harum","quidem","rerum","facilis","est","et","expedita","distinctio","nam","libero","tempore","cum","soluta","nobis","est","eligendi","optio","cumque","nihil","impedit","quo","porro","quisquam","est","qui","minus","id","quod","maxime","placeat","facere","possimus","omnis","voluptas","assumenda","est","omnis","dolor","repellendus","temporibus","autem","quibusdam","et","aut","consequatur","vel","illum","qui","dolorem","eum","fugiat","quo","voluptas","nulla","pariatur","at","vero","eos","et","accusamus","officiis","debitis","aut","rerum","necessitatibus","saepe","eveniet","ut","et","voluptates","repudiandae","sint","et","molestiae","non","recusandae","itaque","earum","rerum","hic","tenetur","a","sapiente","delectus","ut","aut","reiciendis","voluptatibus","maiores","doloribus","asperiores","repellat"]})(pLn);var nQa=pLn.exports;(function(t){var e={};t.exports=e,e.words=nQa})(fLn);var rQa=fLn.exports,mLn={exports:{}},gLn={exports:{}};(function(t){t.exports=["392","510","512","522","562","564","592","594","800","811","822","850","888","898","900","322","416","272","472","382","358","312","242","478","466","256","266","378","488","458","228","426","434","374","248","224","286","376","364","258","412","380","284","424","446","442","222","342","454","456","438","326","476","246","216","212","232","344","370","338","474","366","352","318","288","386","348","262","332","274","422","236","482","324","252","436","384","388","452","328","464","264","362","484","368","346","414","486","282","356","462","428","276","432","226","354","372"]})(gLn);var iQa=gLn.exports,vLn={exports:{}};(function(t){t.exports=["+90-###-###-##-##","+90-###-###-#-###"]})(vLn);var aQa=vLn.exports;(function(t){var e={};t.exports=e,e.area_code=iQa,e.formats=aQa})(mLn);var oQa=mLn.exports,ALn={exports:{}},yLn={exports:{}};(function(t){t.exports=["+90-53#-###-##-##","+90-54#-###-##-##","+90-55#-###-##-##","+90-50#-###-##-##"]})(yLn);var sQa=yLn.exports;(function(t){var e={};t.exports=e,e.formats=sQa})(ALn);var lQa=ALn.exports,bLn={exports:{}},xLn={exports:{}};(function(t){t.exports=["Abay","Abidin","Acar","Acun","Adem","Adil","Adnân","Afşin","Affan","Afi","Agâh","Ahmet","Ahsen","Akalp","Akbatur","Akın","Akın Alp","Akıner","Aktekin","Aktimur","Ali","Alican","Alişan","Alişir","Alp","Alparslan","Alpay","Alper","Alperen","Alphan","Altan","Altemur","Âmir","Ammâr","Ata","Atalay","Atâullah","Avşar","Aykan","Ayvaz","Anıl","Ant","Arda","Arif","Arslan","Asım","Asil","Aşkın","Atakan","Atıf","Atilla","Avni","Aydemir","Aydın","Ayhan","Aykut","Aytaç","Aytekin","Aytuğ","Azer","Aziz","Azizhan","Azmi","Babacan","Barın","Battal","Behram","Behzat","Bekir","Bektaş","Bera","Berkan","Berkin","Beşer","Baha","Bahadır","Bahri","Bahtiyar","Bâki","Barış","Barkın","Barlas","Bartu","Batu","Batuhan","Batur","Baturalp","Baykal","Bayram","Bedir","Bedirhan","Bedreddin","Bedri","Behçet","Behiç","Behlül","Behzat","Bekir","Bera","Berat","Berk","Berkay","Besim","Beşir","Bilâl","Birol","Bora","Buğra","Bulut","Burak","Burhan","Bülent","Bünyamin","Cafer","Cahid","Can","Canalp","Cândar","Caner","Cankan","Cavid","Celal","Celâleddin","Celasun","Celil","Cem","Cemal","Cemali","Cemil","Cenk","Cevat","Cevahir","Ceyhun","Cezmi","Cihan","Coşkun","Coşkuner","Cumhur","Cübeyr","Cüneyt","Cezmi","Cihad","Cihangir","Civan","Cihanşah","Çağan","Çağatay","Çağdaş","Çağlar","Çağrı","Çağrıhan","Çelen","Çelik","Çetin","Çetinel","Çetiner","Dağhan","Dâver","Davud","Demiralp","Demirhan","Denizalp","Devran","Dikmen","Dilaver","Dildâr","Dilhan","Dinç","Dâver","Derviş","Dilhan","Dinçer","Direnç","Doğan","Doğanay","Doğaner","Doğu","Dora","Durmuş","Dündar","Ebuzer","Ecevit","Ecmel","Ediz","Efe","Efsun","Egemen","Ekrem","Elgin","Emin","Emir","Emrah","Emre","Emrullah","Ender","Enderun","Enes","Engin","Enis","Ensar","Enver","Eralp","Eray","Erberk","Ercan","Ercüment","Erçin","Erda","Erdal","Erdem","Erdinç","Erel","Eren","Ergin","Ergün","Ergüner","Erhan","Erkâm","Erkân","Erman","Erol","Ersin","Erşan","Ertan","Ertuğrul","Esat","Eşref","Ethem","Evren","Ecehan","Ecmel","Ecvet","Ede","Edhem","Efken","Eflah","Ekmel","Elvan","Emced","Emir","Evran","Eymen","Eyüp","Ezrak","Fadıl","Fahrettin","Fahri","Faik","Faris","Faruk","Fatih","Faysal","Fazıl","Fehmi","Ferda","Ferdi","Ferhat","Ferhan","Ferhat","Ferit","Feridun","Ferruh","Fevzi","Feyyaz","Feyzullah","Fikret","Fikri","Fuat","Furkân","Fazlı","Fâlih","Faris","Fasih","Fatin","Fazullah","Feda","Fedai","Feramuz","Feramuş","Ferhan","Ferman","Ferruh","Fuzuli","Gaffar","Gazanfer","Gencer","Gökalp","Gökben","Gökmen","Gönenç","Görkem","Gülhan","Gültekin","Günay","Güner","Göngör","Gürdal","Gürhan","Gürkan","Gürol","Gürsel","Güven","Güvenalp","Gazi","Gevheri","Gıyas","Giray","Gürbüz","Habib","Hâdi","Hafız","Hakan","Hakkı","Haldun","Halit","Halil","Halim","Hâlis","Haluk","Hamdi","Hami","Hamit","Hamza","Harun","Hasan","Haşim","Haşmet","Hayati","Haydar","Hazar","Hıfzı","Hikmet","Hilmi","Himmet","Hulki","Hulusi","Hurşit","Hüma","Hürkan","Hüsamettin","Hüseyin","Hüsnü","Hüsrev","Habbab","Habil","Hacib","Hafi","Hafid","Hakem","Haki","Hamdullah","Hammâd","Hanefi","Hani","Haseki","Hasibi","Hasin","Hâtem","Hattâb","Hatip","Hayali","Haşim","Hazım","Hızır","Hicabi","Himmet","Hişam","Hud","Huzeyfe","Hüccet","Hüdâvendigâr","Hüdayi","Hümayun","Hüsameddin","Ilgın","Işıner","Itri","İbrahim","İdris","İhsan","İkbal","İlbey","İlhami","İlhan","İlkay","İlker","İlyas","İrfan","İsmail","İsmet","İzzettin","İzzet","İhvan","İkrime","Kadir","Kadrican","Kağan","Kamber","Kâmil","Karahan","Kayaalp","Kâzım","Kemâl","Kemalettin","Kenan","Kerami","Kerem","Kerim","Koray","Korkut","Köksal","Kubat","Kubilay","Kutbettin","Kürşad","Kabil","Kadem","Kadı","Kalender","Kamran","Kasım","Keleş","Keramet","Kerami","Keremşah","Keşşaf","Kuddusi","Lamih","Latif","Levent","Lütfullah","Lütfi","Maad","Mahir","Mahmut","Mahzun","Maksud","Mansur","Mazhar","Mehmet","Melih","Melikşah","Memduh","Mert","Mesut","Mete","Metin","Mevlüt","Mithat","Muammer","Muaviye","Muhammed","Muharrem","Muhsin","Muhyiddin","Mukadder","Murat","Musa","Mustafa","Muzaffer","Müfid","Müjdat","Mümtaz","Münir","Mestan","Mir","Miraç","Mirkelam","Mirza","Misbah","Muaz","Muhtar","Muhterem","Muhteşem","Muktedi","Muktedir","Muktefi","Muslih","Mutahhar","Mutasım","Muteber","Mutemed","Muttalib","Mükerrem","Müren","Müşir","Müzdad","Nabi","Naci","Nadi","Nadir","Nafiz","Nahid","Nahil","Nail","Naim","Namık","Nasrullah","Nazım","Nazif","Nazmi","Necat","Necati","Necdet","Necib","Necmettin","Nedim","Nejat","Nesim","Neşet","Nevzat","Nihat","Niyazi","Nizamettin","Numan","Nurettin","Nurullah","Nusret","Oğuz","Oğuzhan","Okan","Oktay","Onur","Orhan","Osman","Ozan","Ömer","Önder","Özcan","Özden","Özer","Özgür","Özhan","Özkan","Payidar","Pertev","Perver","Peyami","Raci","Rafet","Rahim","Rahmi","Raif","Rakıp","Ramazan","Ramiz","Rasim","Raşit","Rauf","Recai","Recep","Refik","Reha","Remzi","Resûl","Reşat","Rıdvan","Rıfat","Rıfkı","Rıza","Rüçhan","Rükneddin","Rüştü","Refah","Refet","Reis","Resül","Rifat","Rüçhan","Sabri","Sacid","Sadberk","Sadettin","Sadık","Sadi","Sadri","Sadullah","Safa","Saffet","Said","Saim","Sâkıp","Salih","Salim","Samed","Sami","Samih","Samim","Savaş","Seçkin","Sedat","Sefer","Selahattin","Selami","Selçuk","Selim","Semih","Serbülent","Sergen","Serhat","Sermet","Sertaç","Server","Settar","Seyfettin","Seyfi","Seyfullah","Seyyit","Sıdkı","Sırrı","Sinan","Suat","Subhi","Sudi","Sururi","Süheyl","Süleyman","Şaban","Şadan","Şahap","Şahin","Şahsuvar","Şakir","Şamil","Şayan","Şefik","Şemsi","Şener","Şenol","Şerafettin","Şeref","Şerif","Şevket","Şevki","Şinasi","Şükrü","Şahinalp","Şahsüvar","Şâfi","Şarani","Şecaeddin","Şehlevent","Şemsi","Şeyban","Şihab","Şihabeddin","Şir","Taceddin","Tahir","Tahsin","Taib","Talat","Talay","Talha","Talip","Tamer","Taner","Tanju","Tarık","Tarkan","Taşkın","Tayfun","Tayyar","Tekin","Tekinalp","Temel","Teoman","Tevfik","Tevhid","Tezcan","Tezel","Tınas","Timur","Tolga","Tolunay","Tufan","Tugay","Tuğrul","Tuğtekin","Tuhfe","Tunahan","Tunç","Tunçer","Turan","Turgay","Turgut","Tümer","Türkay","Türkeş","Türker","Ufuk","Uğur","Ukbe","Ulvi","Umur","Umuralp","Umut","Usame","Utku","Ülgen","Ülker","Ümit","Ünal","Üzeyir","Vahâ","Vahdet","Vahid","Valid","Vecdi","Vedat","Vefa","Vefik","Vehbi","Veli","Veysel","Veysi","Volkan","Yağız","Yahya","Yalçın","Yalgın","Yaman","Yasin","Yaşar","Yavuz","Yekta","Yener","Yetkin","Yıldırım","Yılmaz","Yiğit","Yunus","Yusuf","Yüce","Yücel","Yüksel","Yümni","Zafer","Zâhit","Zekeriyyâ","Zeyd","Zihnî","Ziyâd","Zülfikâr","Zâfir","Zamir","Zekai","Zeynel","Ziver","Ziya","Ziyad","Zübeyr"]})(xLn);var cQa=xLn.exports,ELn={exports:{}};(function(t){t.exports=["Abendam","Açela","Açelya","Açılay","Adel","Adelya","Adile","Afitap","Afra","Ağça","Ahenk","Ahlem","Alisa","Almila","Alvina","Amelya","Amara","Andaç","Anar","Anise","Anita","Anka","Alpike","Altın","Arın","Arya","Asuela","Aslım","Ayren","Aykal","Aysar","Ayşıl","Bade","Bağdagül","Balın","Bediz","Bedran","Behrem","Belçim","Belma","Beltun","Belemir","Benice","Benli","Berceste","Berçin","Berinay","Berran","Berre","Berva","Besra","Çağıl","Cangül","Cannur","Cansel","Cansın","Canel","Ceren","Ceyda","Cilvenaz","Ceylinaz","Ceylin","Ceyla","Ceylan","Çağla","Çeşminaz","Çıgıl","Çiçek","Çilay","Çiler","Çimen","Çise","Çişem","Çisil","Damla","Defne","Demet","Deniz","Derya","Destan","Deste","Didem","Dilan","Dilara","Dilay","Diler","Dilhan","Dilek","Dilruba","Döndü","Duygu","Dünya","Dürdane","Dürriye","Dicle","Dolunay","Destan","Derin","Diclehan","Dilberay","Ebru","Ece","Eda","Ekin","Ela","Elçin","Elif","Elmas","Elvan","Emel","Emine","Enise","Esen","Eser","Esin","Esmeray","Eylül","Evşen","Eftalya","Ecem","Eyşan","Fadime","Fahriye","Fahrünissa","Fatma","Fatoş","Fazilet","Fehime","Ferah","Feray","Ferda","Feride","Feriha","Feyza","Fidan","Figen","Fikriye","Filiz","Firdevs","Fulya","Fuldem","Fulden","Funda","Füruzan","Füsun","Füreyya","Gamze","Gaye","Gizem","Gonca","Gökben","Gökçe","Gökşin","Gönül","Gözde","Güher","Gül","Gülbahar","Gülben","Gülçin","Güldem","Gülden","Güldeste","Gülen","Gülşen","Gülgün","Gülnaz","Gülpembe","Gülriz","Gülsen","Günay","Güneş","Güner","Güngör","Güniz","Günsel","Günseli","Gürcan","Güven","Göknur","Günnur","Hale","Handan","Hande","Hayal","Hayat","Hazan","Hilal","Hülya","Hümeyra","Hüner","Ilgın","Işık","Işıl","Işılay","Işın","Itır","İclal","İdil","İffet","İkbal","İlayda","İlkben","İlke","İlknur","İlksen","İlkyaz","İmge","İmran","İnci","İpek","İrem","İzel","Yaprak","Yasemin","Yağmur","Yelda","Yeliz","Yeşim","Yıldız","Yonca","Yosun","Jale","Julide","Kader","Kadriye","Kamelya","Kamile","Kamuran","Kevser","Kumru","Kısmet","Kıymet","Kiraz","Lale","Lamia","Latife","Leman","Lemide","Lerzan","Leyla","Lida","Mehtap","Melda","Melek","Melike","Melis","Melisa","Melodi","Meltem","Meral","Meriç","Merih","Merve","Meryem","Mihriban","Mine","Miray","Müesser","Münevver","Müge","Müjde","Müjgan","Mukaddes","Mısra","Nalan","Naz","Nazan","Nazlı","Necla","Nehir","Nergis","Neslişah","Nesrin","Nevin","Nevra","Nida","Nigar","Nihal","Nihan","Nil","Nilgün","Nisa","Nisan","Nükhet","Nur","Nural","Nuran","Nurgül","Nursel","Nurseli","Okşan","Olcay","Oya","Öykü","Özden","Özge","Özlem","Özlen","Öznur","Parla","Pakize","Pelin","Pelinsu","Pembe","Peri","Perihan","Perran","Pervin","Petek","Pınar","Piraye","Rabia","Rahime","Rahşan","Rana","Rengin","Reyhan","Rezzan","Rüya","Ruhsar","Sanem","Seçil","Seda","Sedef","Seden","Seher","Selda","Selen","Selin","Selma","Selvi","Sema","Semra","Senay","Serap","Sertap","Seren","Serin","Serpil","Sevda","Sevgi","Sevil","Sevim","Sevinç","Sevtap","Seval","Sıla","Sibel","Simge","Sinem","Songül","Su","Sunay","Suzan","Şebnem","Şehrazat","Şelale","Şenay","Şengül","Şennur","Şermin","Şeyda","Şeyma","Şevval","Şiir","Şule","Tanyeli","Tezer","Tuğba","Turna","Tutku","Tülay","Tülin","Türkan","Tunay","Utku","Ulus","Uhra","Uygu","Ulviye","Ülfet","Ülker","Ülkü","Ümmiye","Ümran","Ünsel","Ünseli","Vahide","Verda","Vesile","Vicdan","Vildan","Vuslat","Yaprak","Yasemin","Yağmur","Yelda","Yeliz","Yeşim","Yıldız","Yonca","Yosun","Zahide","Zehra","Zekiye","Zerrin","Zeynep","Zübeyde","Zühal","Zülal","Züleyha","Zeliha","Zümrüt"]})(ELn);var uQa=ELn.exports,SLn={exports:{}};(function(t){t.exports=["Aba","Abak","Abaka","Abakan","Abakay","Abar","Abay","Abı","Abılay","Abluç","Abşar","Açığ","Açık","Açuk","Adalan","Adaldı","Adalmış","Adar","Adaş","Adberilgen","Adıgüzel","Adık","Adıkutlu","Adıkutlutaş","Adlı","Adlıbeğ","Adraman","Adsız","Afşar","Afşın","Ağabay","Ağakağan","Ağalak","Ağlamış","Ak","Akaş","Akata","Akbaş","Akbay","Akboğa","Akbörü","Akbudak","Akbuğra","Akbulak","Akça","Akçakoca","Akçora","Akdemir","Akdoğan","Akı","Akıbudak","Akım","Akın","Akınçı","Akkun","Akkunlu","Akkurt","Akkuş","Akpıra","Aksungur","Aktan","Al","Ala","Alaban","Alabörü","Aladağ","Aladoğan","Alakurt","Alayunt","Alayuntlu","Aldemir","Aldıgerey","Aldoğan","Algu","Alımga","Alka","Alkabölük","Alkaevli","Alkan","Alkaşı","Alkış","Alp","Alpagut","Alpamış","Alparsbeğ","Alparslan","Alpata","Alpay","Alpaya","Alpaykağan","Alpbamsı","Alpbilge","Alpdirek","Alpdoğan","Alper","Alperen","Alpertunga","Alpgerey","Alpış","Alpilig","Alpkara","Alpkutlu","Alpkülük","Alpşalçı","Alptegin","Alptuğrul","Alptunga","Alpturan","Alptutuk","Alpuluğ","Alpurungu","Alpurungututuk","Alpyörük","Altan","Altankağan","Altankan","Altay","Altın","Altınkağan","Altınkan","Altınoba","Altıntamgan","Altıntamgantarkan","Altıntarkan","Altıntay","Altmışkara","Altuga","Amaç","Amrak","Amul","Ançuk","Andarıman","Anıl","Ant","Apa","Apak","Apatarkan","Aprançur","Araboğa","Arademir","Aral","Arbay","Arbuz","Arçuk","Ardıç","Argıl","Argu","Argun","Arı","Arıboğa","Arık","Arıkağan","Arıkdoruk","Arınç","Arkın","Arkış","Armağan","Arnaç","Arpat","Arsal","Arsıl","Arslan","Arslanargun","Arslanbörü","Arslansungur","Arslantegin","Arslanyabgu","Arşun","Artıınal","Artuk","Artukaç","Artut","Aruk","Asartegin","Asığ","Asrı","Asuğ","Aşan","Aşanboğa","Aşantuğrul","Aşantudun","Aşıkbulmuş","Aşkın","Aştaloğul","Aşuk","Ataç","Atakağan","Atakan","Atalan","Ataldı","Atalmış","Ataman","Atasagun","Atasu","Atberilgen","Atıgay","Atıkutlu","Atıkutlutaş","Atıla","Atılgan","Atım","Atımer","Atış","Atlı","Atlıbeğ","Atlıkağan","Atmaca","Atsız","Atunçu","Avar","Avluç","Avşar","Ay","Ayaçı","Ayas","Ayaş","Ayaz","Aybalta","Ayban","Aybars","Aybeğ","Aydarkağan","Aydemir","Aydın","Aydınalp","Aydoğan","Aydoğdu","Aydoğmuş","Aygırak","Ayıtmış","Ayız","Ayızdağ","Aykağan","Aykan","Aykurt","Ayluç","Ayluçtarkan","Ayma","Ayruk","Aysılığ","Aytak","Ayyıldız","Azak","Azban","Azgan","Azganaz","Azıl","Babır","Babur","Baçara","Baççayman","Baçman","Badabul","Badruk","Badur","Bağa","Bağaalp","Bağaışbara","Bağan","Bağaşatulu","Bağatarkan","Bağatengrikağan","Bağatur","Bağaturçigşi","Bağaturgerey","Bağaturipi","Bağatursepi","Bağış","Bağtaş","Bakağul","Bakır","Bakırsokum","Baksı","Bakşı","Balaban","Balaka","Balakatay","Balamır","Balçar","Baldu","Balkık","Balta","Baltacı","Baltar","Baltır","Baltur","Bamsı","Bangu","Barak","Baraktöre","Baran","Barbeğ","Barboğa","Barbol","Barbulsun","Barça","Barçadoğdu","Barçadoğmuş","Barçadurdu","Barçadurmuş","Barçan","Barçatoyun","Bardıbay","Bargan","Barımtay","Barın","Barkan","Barkdoğdu","Barkdoğmuş","Barkdurdu","Barkdurmuş","Barkın","Barlas","Barlıbay","Barmaklak","Barmaklı","Barman","Bars","Barsbeğ","Barsboğa","Barsgan","Barskan","Barsurungu","Bartu","Basademir","Basan","Basanyalavaç","Basar","Basat","Baskın","Basmıl","Bastı","Bastuğrul","Basu","Basut","Başak","Başbuğ","Başçı","Başgan","Başkırt","Başkurt","Baştar","Batrak","Batu","Batuk","Batur","Baturalp","Bay","Bayançar","Bayankağan","Bayat","Bayazıt","Baybars","Baybayık","Baybiçen","Bayboğa","Baybora","Baybüre","Baydar","Baydemir","Baydur","Bayık","Bayınçur","Bayındır","Baykal","Baykara","Baykoca","Baykuzu","Baymünke","Bayna","Baynal","Baypüre","Bayrı","Bayraç","Bayrak","Bayram","Bayrın","Bayruk","Baysungur","Baytara","Baytaş","Bayunçur","Bayur","Bayurku","Bayutmuş","Bayuttu","Bazır","Beçeapa","Beçkem","Beğ","Beğarslan","Beğbars","Beğbilgeçikşin","Beğboğa","Beğçur","Beğdemir","Beğdilli","Beğdurmuş","Beğkulu","Beğtaş","Beğtegin","Beğtüzün","Begi","Begil","Begine","Begitutuk","Beglen","Begni","Bek","Bekazıl","Bekbekeç","Bekeç","Bekeçarslan","Bekeçarslantegin","Bekeçtegin","Beker","Beklemiş","Bektür","Belçir","Belek","Belgi","Belgüc","Beltir","Bengi","Bengü","Benlidemir","Berdibeğ","Berendey","Bergü","Berginsenge","Berk","Berke","Berkiş","Berkyaruk","Bermek","Besentegin","Betemir","Beyizçi","Beyrek","Beyrem","Bıçkı","Bıçkıcı","Bıdın","Bıtaybıkı","Bıtrı","Biçek","Bilge","Bilgebayunçur","Bilgebeğ","Bilgeçikşin","Bilgeışbara","Bilgeışbaratamgan","Bilgekağan","Bilgekan","Bilgekutluk","Bilgekülüçur","Bilgetaçam","Bilgetamgacı","Bilgetardu","Bilgetegin","Bilgetonyukuk","Bilgez","Bilgiç","Bilgin","Bilig","Biligköngülsengün","Bilik","Binbeği","Bindir","Boğa","Boğaç","Boğaçuk","Boldaz","Bolmuş","Bolsun","Bolun","Boncuk","Bongul","Bongulboğa","Bora","Boran","Borçul","Borlukçu","Bornak","Boyan","Boyankulu","Boylabağa","Boylabağatarkan","Boylakutlutarkan","Bozan","Bozbörü","Bozdoğan","Bozkurt","Bozkuş","Bozok","Bögde","Böge","Bögü","Bökde","Bökde","Böke","Bölen","Bölükbaşı","Bönek","Bönge","Börü","Börübars","Börüsengün","Börteçine","Buçan","Buçur","Budağ","Budak","Budunlu","Buğday","Buğra","Buğrakarakağan","Bukak","Bukaktutuk","Bulaçapan","Bulak","Bulan","Buldur","Bulgak","Bulmaz","Bulmuş","Buluç","Buluğ","Buluk","Buluş","Bulut","Bumın","Bunsuz","Burçak","Burguçan","Burkay","Burslan","Burulday","Burulgu","Burunduk","Buşulgan","Butak","Butuk","Buyan","Buyançuk","Buyandemir","Buyankara","Buyat","Buyraç","Buyruç","Buyruk","Buzaç","Buzaçtutuk","Büdüs","Büdüstudun","Bügü","Bügdüz","Bügdüzemen","Büge","Büğübilge","Bükdüz","Büke","Bükebuyraç","Bükebuyruç","Bükey","Büktegin","Büküşboğa","Bümen","Bünül","Büre","Bürgüt","Bürkek","Bürküt","Bürlük","Cebe","Ceyhun","Cılasun","Çaba","Çabdar","Çablı","Çabuş","Çağan","Çağatay","Çağlar","Çağlayan","Çağrı","Çağrıbeğ","Çağrıtegin","Çağru","Çalapkulu","Çankız","Çemen","Çemgen","Çeykün","Çıngır","Çiçek","Çiçem","Çiğdem","Çilenti","Çimen","Çobulmak","Çocukbörü","Çokramayul","Çolman","Çolpan","Çölü","Damla","Deniz","Dilek","Diri","Dizik","Duru","Dururbunsuz","Duygu","Ebin","Ebkızı","Ebren","Edil","Ediz","Egemen","Eğrim","Ekeç","Ekim","Ekin","Elkin","Elti","Engin","Erdem","Erdeni","Erdeniözük","Erdenikatun","Erentüz","Ergene","Ergenekatun","Erinç","Erke","Ermen","Erten","Ertenözük","Esen","Esenbike","Eser","Esin","Etil","Evin","Eyiz","Gelin","Gelincik","Gökbörü","Gökçe","Gökçegöl","Gökçen","Gökçiçek","Gökşin","Gönül","Görün","Gözde","Gülegen","Gülemen","Güler","Gülümser","Gümüş","Gün","Günay","Günçiçek","Gündoğdu","Gündoğmuş","Güneş","Günyaruk","Gürbüz","Güvercin","Güzey","Işığ","Işık","Işıl","Işılay","Ila","Ilaçın","Ilgın","Inanç","Irmak","Isığ","Isık","Iyık","Iyıktağ","İdil","İkeme","İkiçitoyun","İlbilge","İldike","İlgegü","İmrem","İnci","İnç","İrinç","İrinçköl","İrtiş","İtil","Kancı","Kançı","Kapgar","Karaca","Karaça","Karak","Kargılaç","Karlıgaç","Katun","Katunkız","Kayacık","Kayaçık","Kayça","Kaynak","Kazanç","Kazkatun","Kekik","Keklik","Kepez","Kesme","Keyken","Kezlik","Kımız","Kımızın","Kımızalma","Kımızalmıla","Kırçiçek","Kırgavul","Kırlangıç","Kıvanç","Kıvılcım","Kızdurmuş","Kızılalma"]})(SLn);var dQa=SLn.exports,wLn={exports:{}};(function(t){t.exports=["Abacı","Abadan","Aclan","Adal","Adan","Adıvar","Akal","Akan","Akar ","Akay","Akaydın","Akbulut","Akgül","Akışık","Akman","Akyürek","Akyüz","Akşit","Alnıaçık","Alpuğan","Alyanak","Arıcan","Arslanoğlu","Atakol","Atan","Avan","Ayaydın","Aybar","Aydan","Aykaç","Ayverdi","Ağaoğlu","Aşıkoğlu","Babacan","Babaoğlu","Bademci","Bakırcıoğlu","Balaban","Balcı","Barbarosoğlu","Baturalp","Baykam","Başoğlu","Berberoğlu","Beşerler","Beşok","Biçer","Bolatlı","Dalkıran","Dağdaş","Dağlaroğlu","Demirbaş","Demirel","Denkel","Dizdar ","Doğan ","Durak ","Durmaz","Duygulu","Düşenkalkar","Egeli","Ekici","Ekşioğlu","Eliçin","Elmastaşoğlu","Elçiboğa","Erbay","Erberk","Erbulak","Erdoğan","Erez","Erginsoy","Erkekli","Eronat","Ertepınar","Ertürk","Erçetin","Evliyaoğlu","Gönültaş","Gümüşpala","Günday","Gürmen","Hakyemez","Hamzaoğlu","Ilıcalı","Kahveci","Kaplangı","Karabulut","Karaböcek","Karadaş","Karaduman","Karaer","Kasapoğlu","Kavaklıoğlu","Kaya ","Keseroğlu","Keçeci","Kılıççı","Kıraç ","Kocabıyık","Korol","Koyuncu","Koç","Koçoğlu","Koçyiğit","Kuday","Kulaksızoğlu","Kumcuoğlu","Kunt","Kunter","Kurutluoğlu","Kutlay","Kuzucu","Körmükçü","Köybaşı","Köylüoğlu","Küçükler","Limoncuoğlu","Mayhoş","Menemencioğlu","Mertoğlu","Nalbantoğlu","Nebioğlu","Numanoğlu","Okumuş","Okur","Oraloğlu","Orbay","Ozansoy","Paksüt","Pekkan","Pektemek","Polat","Poyrazoğlu","Poçan","Sadıklar","Samancı","Sandalcı","Sarıoğlu","Saygıner","Sepetçi","Sezek","Sinanoğlu","Solmaz","Sözeri","Süleymanoğlu","Tahincioğlu","Tanrıkulu","Tazegül","Taşlı","Taşçı","Tekand","Tekelioğlu","Tokatlıoğlu","Tokgöz","Topaloğlu","Topçuoğlu","Toraman","Tunaboylu","Tunçeri","Tuğlu","Tuğluk","Türkdoğan","Türkyılmaz","Tütüncü","Tüzün","Uca","Uluhan","Velioğlu","Yalçın","Yazıcı","Yetkiner","Yeşilkaya","Yıldırım ","Yıldızoğlu","Yılmazer","Yorulmaz","Çamdalı","Çapanoğlu","Çatalbaş","Çağıran","Çetin","Çetiner","Çevik","Çörekçi","Önür","Örge","Öymen","Özberk","Özbey","Özbir","Özdenak","Özdoğan","Özgörkey","Özkara","Özkök ","Öztonga","Öztuna"]})(wLn);var hQa=wLn.exports,_Ln={exports:{}};(function(t){t.exports=["Bay","Bayan","Dr.","Prof. Dr."]})(_Ln);var fQa=_Ln.exports,TLn={exports:{}};(function(t){t.exports=["#{prefix} #{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{first_name} #{last_name}","#{male_first_name} #{last_name}","#{female_first_name} #{last_name}"]})(TLn);var pQa=TLn.exports;(function(t){var e={};t.exports=e,e.male_first_name=cQa,e.female_first_name=uQa,e.first_name=dQa,e.last_name=hQa,e.prefix=fQa,e.name=pQa})(bLn);var mQa=bLn.exports;(function(t){var e={};t.exports=e,e.title="Turkish",e.address=XWa,e.internet=tQa,e.lorem=rQa,e.phone_number=oQa,e.cell_phone=lQa,e.name=mQa})(tLn);var gQa=tLn.exports,CLn={exports:{}},kLn={exports:{}},RLn={exports:{}};(function(t){t.exports=["Австралія","Австрія","Азербайджан","Албанія","Алжир","Ангола","Андорра","Антигуа і Барбуда","Аргентина","Афганістан","Багамські Острови","Бангладеш","Барбадос","Бахрейн","Беліз","Бельгія","Бенін","Білорусь","Болгарія","Болівія","Боснія і Герцеговина","Ботсвана","Бразилія","Бруней","Буркіна-Фасо","Бурунді","Бутан","В’єтнам","Вануату","Ватикан","Велика Британія","Венесуела","Вірменія","Габон","Гаїті","Гайана","Гамбія","Гана","Гватемала","Гвінея","Гвінея-Бісау","Гондурас","Гренада","Греція","Грузія","Данія","Демократична Республіка Конго","Джибуті","Домініка","Домініканська Республіка","Еквадор","Екваторіальна Гвінея","Еритрея","Естонія","Ефіопія","Єгипет","Ємен","Замбія","Зімбабве","Ізраїль","Індія","Індонезія","Ірак","Іран","Ірландія","Ісландія","Іспанія","Італія","Йорданія","Кабо-Верде","Казахстан","Камбоджа","Камерун","Канада","Катар","Кенія","Киргизстан","Китай","Кіпр","Кірибаті","Колумбія","Коморські Острови","Конго","Коста-Рика","Кот-д’Івуар","Куба","Кувейт","Лаос","Латвія","Лесото","Литва","Ліберія","Ліван","Лівія","Ліхтенштейн","Люксембург","Маврикій","Мавританія","Мадаґаскар","Македонія","Малаві","Малайзія","Малі","Мальдіви","Мальта","Марокко","Маршаллові Острови","Мексика","Мозамбік","Молдова","Монако","Монголія","Намібія","Науру","Непал","Нігер","Нігерія","Нідерланди","Нікарагуа","Німеччина","Нова Зеландія","Норвегія","Об’єднані Арабські Емірати","Оман","Пакистан","Палау","Панама","Папуа-Нова Гвінея","Парагвай","Перу","Південна Корея","Південний Судан","Південно-Африканська Республіка","Північна Корея","Польща","Португалія","Російська Федерація","Руанда","Румунія","Сальвадор","Самоа","Сан-Марино","Сан-Томе і Принсіпі","Саудівська Аравія","Свазіленд","Сейшельські Острови","Сенеґал","Сент-Вінсент і Гренадини","Сент-Кітс і Невіс","Сент-Люсія","Сербія","Сирія","Сінгапур","Словаччина","Словенія","Соломонові Острови","Сомалі","Судан","Суринам","Східний Тимор","США","Сьєрра-Леоне","Таджикистан","Таїланд","Танзанія","Того","Тонга","Тринідад і Тобаго","Тувалу","Туніс","Туреччина","Туркменістан","Уганда","Угорщина","Узбекистан","Україна","Уругвай","Федеративні Штати Мікронезії","Фіджі","Філіппіни","Фінляндія","Франція","Хорватія","Центральноафриканська Республіка","Чад","Чехія","Чилі","Чорногорія","Швейцарія","Швеція","Шрі-Ланка","Ямайка","Японія"]})(RLn);var vQa=RLn.exports,MLn={exports:{}};(function(t){t.exports=["#","##","###"]})(MLn);var AQa=MLn.exports,NLn={exports:{}};(function(t){t.exports=["вул.","вулиця","пр.","проспект","пл.","площа","пров.","провулок"]})(NLn);var yQa=NLn.exports,ILn={exports:{}};(function(t){t.exports=["майдан"]})(ILn);var bQa=ILn.exports,PLn={exports:{}};(function(t){t.exports=["кв. ###"]})(PLn);var xQa=PLn.exports,OLn={exports:{}};(function(t){t.exports=["#####"]})(OLn);var EQa=OLn.exports,LLn={exports:{}};(function(t){t.exports=["АР Крим","Вінницька область","Волинська область","Дніпропетровська область","Донецька область","Житомирська область","Закарпатська область","Запорізька область","Івано-Франківська область","Київська область","Кіровоградська область","Луганська область","Львівська область","Миколаївська область","Одеська область","Полтавська область","Рівненська область","Сумська область","Тернопільська область","Харківська область","Херсонська область","Хмельницька область","Черкаська область","Чернівецька область","Чернігівська область","Київ","Севастополь"]})(LLn);var SQa=LLn.exports,BLn={exports:{}};(function(t){t.exports=["Зелена","Молодіжна","Городоцька","Стрийська","Вузька","Нижанківського","Староміська","Ліста","Вічева","Брюховичів","Винників","Рудного","Коліївщини"]})(BLn);var wQa=BLn.exports,DLn={exports:{}};(function(t){t.exports=["Алчевськ","Артемівськ","Бердичів","Бердянськ","Біла Церква","Бровари","Вінниця","Горлівка","Дніпродзержинськ","Дніпропетровськ","Донецьк","Євпаторія","Єнакієве","Житомир","Запоріжжя","Івано-Франківськ","Ізмаїл","Кам’янець-Подільський","Керч","Київ","Кіровоград","Конотоп","Краматорськ","Красний Луч","Кременчук","Кривий Ріг","Лисичанськ","Луганськ","Луцьк","Львів","Макіївка","Маріуполь","Мелітополь","Миколаїв","Мукачеве","Нікополь","Одеса","Олександрія","Павлоград","Полтава","Рівне","Севастополь","Сєвєродонецьк","Сімферополь","Слов’янськ","Суми","Тернопіль","Ужгород","Умань","Харків","Херсон","Хмельницький","Черкаси","Чернівці","Чернігів","Шостка","Ялта"]})(DLn);var _Qa=DLn.exports,$Ln={exports:{}};(function(t){t.exports=["#{city_name}","#{city_prefix} #{Name.male_first_name}"]})($Ln);var TQa=$Ln.exports,FLn={exports:{}};(function(t){t.exports=["Південний","Північний","Східний","Західний"]})(FLn);var CQa=FLn.exports,jLn={exports:{}};(function(t){t.exports=["град"]})(jLn);var kQa=jLn.exports,HLn={exports:{}};(function(t){t.exports=["#{street_prefix} #{Address.street_title}","#{Address.street_title} #{street_suffix}"]})(HLn);var RQa=HLn.exports,ULn={exports:{}};(function(t){t.exports=["#{street_name}, #{building_number}"]})(ULn);var MQa=ULn.exports,zLn={exports:{}};(function(t){t.exports=["Україна"]})(zLn);var NQa=zLn.exports;(function(t){var e={};t.exports=e,e.country=vQa,e.building_number=AQa,e.street_prefix=yQa,e.street_suffix=bQa,e.secondary_address=xQa,e.postcode=EQa,e.state=SQa,e.street_title=wQa,e.city_name=_Qa,e.city=TQa,e.city_prefix=CQa,e.city_suffix=kQa,e.street_name=RQa,e.street_address=MQa,e.default_country=NQa})(kLn);var IQa=kLn.exports,GLn={exports:{}},VLn={exports:{}};(function(t){t.exports=["ТОВ","ПАТ","ПрАТ","ТДВ","КТ","ПТ","ДП","ФОП"]})(VLn);var PQa=VLn.exports,KLn={exports:{}};(function(t){t.exports=["Постач","Торг","Пром","Трейд","Збут"]})(KLn);var OQa=KLn.exports,WLn={exports:{}};(function(t){t.exports=["#{prefix} #{Name.female_first_name}","#{prefix} #{Name.male_first_name}","#{prefix} #{Name.male_last_name}","#{prefix} #{suffix}#{suffix}","#{prefix} #{suffix}#{suffix}#{suffix}","#{prefix} #{Address.city_name}#{suffix}","#{prefix} #{Address.city_name}#{suffix}#{suffix}","#{prefix} #{Address.city_name}#{suffix}#{suffix}#{suffix}"]})(WLn);var LQa=WLn.exports;(function(t){var e={};t.exports=e,e.prefix=PQa,e.suffix=OQa,e.name=LQa})(GLn);var BQa=GLn.exports,QLn={exports:{}},qLn={exports:{}};(function(t){t.exports=["ukr.net","ex.ua","e-mail.ua","i.ua","meta.ua","yandex.ua","gmail.com"]})(qLn);var DQa=qLn.exports,YLn={exports:{}};(function(t){t.exports=["cherkassy.ua","cherkasy.ua","ck.ua","cn.ua","com.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","donetsk.ua","dp.ua","if.ua","in.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","ks.ua","lg.ua","lt.ua","lugansk.ua","lutsk.ua","lutsk.net","lviv.ua","mk.ua","net.ua","nikolaev.ua","od.ua","odessa.ua","org.ua","pl.ua","pl.ua","poltava.ua","rovno.ua","rv.ua","sebastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","ua","uz.ua","uzhgorod.ua","vinnica.ua","vn.ua","volyn.net","volyn.ua","yalta.ua","zaporizhzhe.ua","zhitomir.ua","zp.ua","zt.ua","укр"]})(YLn);var $Qa=YLn.exports;(function(t){var e={};t.exports=e,e.free_email=DQa,e.domain_suffix=$Qa})(QLn);var FQa=QLn.exports,JLn={exports:{}},ZLn={exports:{}};(function(t){t.exports=["Августин","Аврелій","Адам","Адріян","Азарій","Алевтин","Альберт","Анастас","Анастасій","Анатолій","Андрій","Антін","Антон","Антоній","Аркадій","Арсен","Арсеній","Артем","Архип","Аскольд","Афанасій","Біломир","Білослав","Богдан","Божемир","Божен","Болеслав","Боримир","Боримисл","Борис","Борислав","Братимир","Братислав","Братомил","Братослав","Брячислав","Будимир","Буйтур","Буревіст","В’ячеслав","Вадим","Валентин","Валерій","Василь","Велемир","Віктор","Віталій","Влад","Владислав","Володимир","Володислав","Всевлад","Всеволод","Всеслав","Гаврило","Гарнослав","Геннадій","Георгій","Герасим","Гліб","Гнат","Гордій","Горимир","Горислав","Градимир","Григорій","Далемир","Данило","Дарій","Даромир","Денис","Дмитро","Добромир","Добромисл","Доброслав","Євген","Єремій","Захар","Захарій","Зборислав","Звенигор","Звенимир","Звенислав","Земислав","Зеновій","Зиновій","Злат","Златомир","Зоремир","Зореслав","Зорян","Іван","Ігор","Ізяслав","Ілля","Кий","Корнелій","Корнилій","Корнило","Корній","Костянтин","Кузьма","Лаврентій","Лаврін","Лад","Ладислав","Ладо","Ладомир","Левко","Листвич","Лук’ян","Любодар","Любозар","Любомир","Макар","Максим","Мар’ян","Маркіян","Марко","Матвій","Мечислав","Микита","Микола","Мирон","Мирослав","Михайло","Мстислав","Мусій","Назар","Назарій","Натан","Немир","Нестор","Олег","Олександр","Олексій","Олелько","Олесь","Омелян","Орест","Орхип","Остап","Охрім","Павло","Панас","Пантелеймон","Петро","Пилип","Подолян","Потап","Радим","Радимир","Ратибор","Ратимир","Родіон","Родослав","Роксолан","Роман","Ростислав","Руслан","Святополк","Святослав","Семибор","Сергій","Синьоок","Славолюб","Славомир","Славута","Сніжан","Сологуб","Станіслав","Степан","Стефаній","Стожар","Тарас","Тиміш","Тимофій","Тихон","Тур","Устим","Хвалимир","Хорив","Чорнота","Щастислав","Щек","Юліан","Юрій","Юхим","Ян","Ярема","Яровид","Яромил","Яромир","Ярополк","Ярослав"]})(ZLn);var jQa=ZLn.exports,XLn={exports:{}};(function(t){t.exports=["Адамович","Азарович","Алевтинович","Альбертович","Анастасович","Анатолійович","Андрійович","Антонович","Аркадійович","Арсенійович","Арсенович","Артемович","Архипович","Аскольдович","Афанасійович","Білославович","Богданович","Божемирович","Боженович","Болеславович","Боримирович","Борисович","Бориславович","Братиславович","В’ячеславович","Вадимович","Валентинович","Валерійович","Васильович","Вікторович","Віталійович","Владиславович","Володимирович","Всеволодович","Всеславович","Гаврилович","Герасимович","Георгійович","Гнатович","Гордійович","Григорійович","Данилович","Даромирович","Денисович","Дмитрович","Добромирович","Доброславович","Євгенович","Захарович","Захарійович","Збориславович","Звенимирович","Звениславович","Зеновійович","Зиновійович","Златомирович","Зореславович","Іванович","Ігорович","Ізяславович","Корнелійович","Корнилович","Корнійович","Костянтинович","Лаврентійович","Любомирович","Макарович","Максимович","Маркович","Маркіянович","Матвійович","Мечиславович","Микитович","Миколайович","Миронович","Мирославович","Михайлович","Мстиславович","Назарович","Назарійович","Натанович","Немирович","Несторович","Олегович","Олександрович","Олексійович","Олелькович","Омелянович","Орестович","Орхипович","Остапович","Охрімович","Павлович","Панасович","Пантелеймонович","Петрович","Пилипович","Радимирович","Радимович","Родіонович","Романович","Ростиславович","Русланович","Святославович","Сергійович","Славутович","Станіславович","Степанович","Стефанович","Тарасович","Тимофійович","Тихонович","Устимович","Юрійович","Юхимович","Ярославович"]})(XLn);var HQa=XLn.exports,eBn={exports:{}};(function(t){t.exports=["Андрухович","Бабух","Балабан","Балабух","Балакун","Балицький","Бамбула","Бандера","Барановський","Бачей","Башук","Бердник","Білич","Бондаренко","Борецький","Боровський","Борочко","Боярчук","Брицький","Бурмило","Бутько","Василин","Василишин","Васильківський","Вергун","Вередун","Верещук","Витребенько","Вітряк","Волощук","Гайдук","Гайовий","Гайчук","Галаєнко","Галатей","Галаціон","Гаман","Гамула","Ганич","Гарай","Гарун","Гладківський","Гладух","Глинський","Гнатишин","Гойко","Головець","Горбач","Гордійчук","Горовий","Городоцький","Гречко","Григоришин","Гриневецький","Гриневський","Гришко","Громико","Данилишин","Данилко","Демків","Демчишин","Дзюб’як","Дзюба","Дідух","Дмитришин","Дмитрук","Довгалевський","Дурдинець","Євенко","Євпак","Ємець","Єрмак","Забіла","Зварич","Зінкевич","Зленко","Іванишин","Іванів","Іванців","Калач","Кандиба","Карпух","Каськів","Кивач","Коваленко","Ковальський","Коломієць","Коман","Компанієць","Кононець","Кордун","Корецький","Корнїйчук","Коров’як","Коцюбинський","Кулинич","Кульчицький","Лагойда","Лазірко","Лановий","Латаний","Латанський","Лахман","Левадовський","Ликович","Линдик","Ліхно","Лобачевський","Ломовий","Луговий","Луцький","Луцьків","Лученко","Лучко","Лютий","Лящук","Магера","Мазайло","Мазило","Мазун","Майборода","Майстренко","Маковецький","Малкович","Мамій","Маринич","Марієвський","Марків","Махно","Миклашевський","Миклухо","Милославський","Михайлюк","Міняйло","Могилевський","Москаль","Москалюк","Мотрієнко","Негода","Ногачевський","Опенько","Осадко","Павленко","Павлишин","Павлів","Пагутяк","Паламарчук","Палій","Паращук","Пасічник","Пендик","Петик","Петлюра","Петренко","Петрин","Петришин","Петрів","Плаксій","Погиба","Поліщук","Пономарів","Поривай","Поривайло","Потебенько","Потоцький","Пригода","Приймак","Притула","Прядун","Розпутній","Романишин","Романів","Ромей","Роменець","Ромочко","Савицький","Саєнко","Свидригайло","Семеночко","Семещук","Сердюк","Силецький","Сідлецький","Сідляк","Сірко","Скиба","Скоропадський","Слободян","Сосюра","Сплюх","Спотикач","Стахів","Степанець","Стецьків","Стигайло","Сторожук","Сторчак","Стоян","Сучак","Сушко","Тарасюк","Тиндарей","Ткаченко","Третяк","Троян","Трублаєвський","Трясило","Трясун","Уманець","Унич","Усич","Федоришин","Хитрово","Цимбалістий","Цушко","Червоній","Шамрило","Шевченко","Шестак","Шиндарей","Шиян","Шкараба","Шудрик","Шумило","Шупик","Шухевич","Щербак","Юрчишин","Юхно","Ющик","Ющук","Яворівський","Яловий","Ялюк","Янюк","Ярмак","Яцишин","Яцьків","Ящук"]})(eBn);var UQa=eBn.exports,tBn={exports:{}};(function(t){t.exports=["Аврелія","Аврора","Агапія","Агата","Агафія","Агнеса","Агнія","Агрипина","Ада","Аделаїда","Аделіна","Адріана","Азалія","Алевтина","Аліна","Алла","Альбіна","Альвіна","Анастасія","Анастасія","Анатолія","Ангеліна","Анжела","Анна","Антонида","Антоніна","Антонія","Анфіса","Аполлінарія","Аполлонія","Аркадія","Артемія","Афанасія","Білослава","Біляна","Благовіста","Богдана","Богуслава","Божена","Болеслава","Борислава","Броніслава","В’ячеслава","Валентина","Валерія","Варвара","Василина","Вікторія","Вілена","Віленіна","Віліна","Віола","Віолетта","Віра","Віргінія","Віта","Віталіна","Влада","Владислава","Власта","Всеслава","Галина","Ганна","Гелена","Далеслава","Дана","Дарина","Дарислава","Діана","Діяна","Добринка","Добромила","Добромира","Добромисла","Доброслава","Долеслава","Доляна","Жанна","Жозефіна","Забава","Звенислава","Зінаїда","Злата","Зореслава","Зорина","Зоряна","Зоя","Іванна","Ілона","Інна","Іннеса","Ірина","Ірма","Калина","Каріна","Катерина","Квітка","Квітослава","Клавдія","Крентта","Ксенія","Купава","Лада","Лариса","Леся","Ликера","Лідія","Лілія","Любава","Любислава","Любов","Любомила","Любомира","Люборада","Любослава","Людмила","Людомила","Майя","Мальва","Мар’яна","Марина","Марічка","Марія","Марта","Меланія","Мечислава","Милодара","Милослава","Мирослава","Мілана","Мокрина","Мотря","Мстислава","Надія","Наталія","Неля","Немира","Ніна","Огняна","Оксана","Олександра","Олена","Олеся","Ольга","Ореста","Орина","Орислава","Орися","Оріяна","Павліна","Палажка","Пелагея","Пелагія","Поліна","Поляна","Потішана","Радміла","Радослава","Раїна","Раїса","Роксолана","Ромена","Ростислава","Руслана","Світлана","Святослава","Слава","Сміяна","Сніжана","Соломія","Соня","Софія","Станислава","Сюзана","Таїсія","Тамара","Тетяна","Устина","Фаїна","Февронія","Федора","Феодосія","Харитина","Христина","Христя","Юліанна","Юлія","Юстина","Юхима","Юхимія","Яна","Ярина","Ярослава"]})(tBn);var zQa=tBn.exports,nBn={exports:{}};(function(t){t.exports=["Адамівна","Азарівна","Алевтинівна","Альбертівна","Анастасівна","Анатоліївна","Андріївна","Антонівна","Аркадіївна","Арсенівна","Арсеніївна","Артемівна","Архипівна","Аскольдівна","Афанасіївна","Білославівна","Богданівна","Божемирівна","Боженівна","Болеславівна","Боримирівна","Борисівна","Бориславівна","Братиславівна","В’ячеславівна","Вадимівна","Валентинівна","Валеріївна","Василівна","Вікторівна","Віталіївна","Владиславівна","Володимирівна","Всеволодівна","Всеславівна","Гаврилівна","Гарасимівна","Георгіївна","Гнатівна","Гордіївна","Григоріївна","Данилівна","Даромирівна","Денисівна","Дмитрівна","Добромирівна","Доброславівна","Євгенівна","Захарівна","Захаріївна","Збориславівна","Звенимирівна","Звениславівна","Зеновіївна","Зиновіївна","Златомирівна","Зореславівна","Іванівна","Ігорівна","Ізяславівна","Корнеліївна","Корнилівна","Корніївна","Костянтинівна","Лаврентіївна","Любомирівна","Макарівна","Максимівна","Марківна","Маркіянівна","Матвіївна","Мечиславівна","Микитівна","Миколаївна","Миронівна","Мирославівна","Михайлівна","Мстиславівна","Назарівна","Назаріївна","Натанівна","Немирівна","Несторівна","Олегівна","Олександрівна","Олексіївна","Олельківна","Омелянівна","Орестівна","Орхипівна","Остапівна","Охрімівна","Павлівна","Панасівна","Пантелеймонівна","Петрівна","Пилипівна","Радимирівна","Радимівна","Родіонівна","Романівна","Ростиславівна","Русланівна","Святославівна","Сергіївна","Славутівна","Станіславівна","Степанівна","Стефаніївна","Тарасівна","Тимофіївна","Тихонівна","Устимівна","Юріївна","Юхимівна","Ярославівна"]})(nBn);var GQa=nBn.exports,rBn={exports:{}};(function(t){t.exports=["Андрухович","Бабух","Балабан","Балабуха","Балакун","Балицька","Бамбула","Бандера","Барановська","Бачей","Башук","Бердник","Білич","Бондаренко","Борецька","Боровська","Борочко","Боярчук","Брицька","Бурмило","Бутько","Василишина","Васильківська","Вергун","Вередун","Верещук","Витребенько","Вітряк","Волощук","Гайдук","Гайова","Гайчук","Галаєнко","Галатей","Галаціон","Гаман","Гамула","Ганич","Гарай","Гарун","Гладківська","Гладух","Глинська","Гнатишина","Гойко","Головець","Горбач","Гордійчук","Горова","Городоцька","Гречко","Григоришина","Гриневецька","Гриневська","Гришко","Громико","Данилишина","Данилко","Демків","Демчишина","Дзюб’як","Дзюба","Дідух","Дмитришина","Дмитрук","Довгалевська","Дурдинець","Євенко","Євпак","Ємець","Єрмак","Забіла","Зварич","Зінкевич","Зленко","Іванишина","Калач","Кандиба","Карпух","Кивач","Коваленко","Ковальська","Коломієць","Коман","Компанієць","Кононець","Кордун","Корецька","Корнїйчук","Коров’як","Коцюбинська","Кулинич","Кульчицька","Лагойда","Лазірко","Ланова","Латан","Латанська","Лахман","Левадовська","Ликович","Линдик","Ліхно","Лобачевська","Ломова","Лугова","Луцька","Луцьків","Лученко","Лучко","Люта","Лящук","Магера","Мазайло","Мазило","Мазун","Майборода","Майстренко","Маковецька","Малкович","Мамій","Маринич","Марієвська","Марків","Махно","Миклашевська","Миклухо","Милославська","Михайлюк","Міняйло","Могилевська","Москаль","Москалюк","Мотрієнко","Негода","Ногачевська","Опенько","Осадко","Павленко","Павлишина","Павлів","Пагутяк","Паламарчук","Палій","Паращук","Пасічник","Пендик","Петик","Петлюра","Петренко","Петрина","Петришина","Петрів","Плаксій","Погиба","Поліщук","Пономарів","Поривай","Поривайло","Потебенько","Потоцька","Пригода","Приймак","Притула","Прядун","Розпутня","Романишина","Ромей","Роменець","Ромочко","Савицька","Саєнко","Свидригайло","Семеночко","Семещук","Сердюк","Силецька","Сідлецька","Сідляк","Сірко","Скиба","Скоропадська","Слободян","Сосюра","Сплюха","Спотикач","Степанець","Стигайло","Сторожук","Сторчак","Стоян","Сучак","Сушко","Тарасюк","Тиндарей","Ткаченко","Третяк","Троян","Трублаєвська","Трясило","Трясун","Уманець","Унич","Усич","Федоришина","Цушко","Червоній","Шамрило","Шевченко","Шестак","Шиндарей","Шиян","Шкараба","Шудрик","Шумило","Шупик","Шухевич","Щербак","Юрчишина","Юхно","Ющик","Ющук","Яворівська","Ялова","Ялюк","Янюк","Ярмак","Яцишина","Яцьків","Ящук"]})(rBn);var VQa=rBn.exports,iBn={exports:{}};(function(t){t.exports=["Пан","Пані"]})(iBn);var KQa=iBn.exports,aBn={exports:{}};(function(t){t.exports=["проф.","доц.","докт. пед. наук","докт. політ. наук","докт. філол. наук","докт. філос. наук","докт. і. наук","докт. юрид. наук","докт. техн. наук","докт. психол. наук","канд. пед. наук","канд. політ. наук","канд. філол. наук","канд. філос. наук","канд. і. наук","канд. юрид. наук","канд. техн. наук","канд. психол. наук"]})(aBn);var WQa=aBn.exports,oBn={exports:{}};(function(t){t.exports={descriptor:["Головний","Генеральний","Провідний","Національний","Регіональний","Обласний","Районний","Глобальний","Міжнародний","Центральний"],level:["маркетинговий","оптимізаційний","страховий","функціональний","інтеграційний","логістичний"],job:["інженер","агент","адміністратор","аналітик","архітектор","дизайнер","керівник","консультант","координатор","менеджер","планувальник","помічник","розробник","спеціаліст","співробітник","технік"]}})(oBn);var QQa=oBn.exports,sBn={exports:{}};(function(t){t.exports=["#{male_first_name} #{male_last_name}","#{male_last_name} #{male_first_name}","#{male_first_name} #{male_middle_name} #{male_last_name}","#{male_last_name} #{male_first_name} #{male_middle_name}","#{female_first_name} #{female_last_name}","#{female_last_name} #{female_first_name}","#{female_first_name} #{female_middle_name} #{female_last_name}","#{female_last_name} #{female_first_name} #{female_middle_name}"]})(sBn);var qQa=sBn.exports;(function(t){var e={};t.exports=e,e.male_first_name=jQa,e.male_middle_name=HQa,e.male_last_name=UQa,e.female_first_name=zQa,e.female_middle_name=GQa,e.female_last_name=VQa,e.prefix=KQa,e.suffix=WQa,e.title=QQa,e.name=qQa})(JLn);var YQa=JLn.exports,lBn={exports:{}},cBn={exports:{}};(function(t){t.exports=["(044) ###-##-##","(050) ###-##-##","(063) ###-##-##","(066) ###-##-##","(073) ###-##-##","(091) ###-##-##","(092) ###-##-##","(093) ###-##-##","(094) ###-##-##","(095) ###-##-##","(096) ###-##-##","(097) ###-##-##","(098) ###-##-##","(099) ###-##-##"]})(cBn);var JQa=cBn.exports;(function(t){var e={};t.exports=e,e.formats=JQa})(lBn);var ZQa=lBn.exports;(function(t){var e={};t.exports=e,e.title="Ukrainian",e.address=IQa,e.company=BQa,e.internet=FQa,e.name=YQa,e.phone_number=ZQa})(CLn);var XQa=CLn.exports,uBn={exports:{}},dBn={exports:{}},hBn={exports:{}};(function(t){t.exports=["An Giang","Bà Rịa-Vũng Tàu","Bạc Liêu","Bắc Kạn","Bắc Giang","Bắc Ninh","Bến Tre","Bình Dương","Bình Định","Bình Phước","Bình Thuận","Cà Mau","Cao Bằng","Cần Thơ","Đà Nẵng","Đắk Lắk","Đắk Nông","Điện Biên","Đồng Nai","Đồng Tháp","Gia Lai","Hà Giang","Hà Nam","Hà Nội","Hà Tĩnh","Hải Dương","Hải Phòng","Hậu Giang","Hòa Bình","TP. Hồ Chí Minh","Hưng Yên","Khánh Hoà","Kiên Giang","Kon Tum","Lai Châu","Lạng Sơn","Lào Cai","Lâm Đồng","Long An","Nam Định","Nghệ An","Ninh Bình","Ninh Thuận","Phú Thọ","Phú Yên","Quảng Bình","Quảng Nam","Quảng Ngãi","Quảng Ninh","Quảng Trị","Sóc Trăng","Sơn La","Tây Ninh","Thái Bình","Thái Nguyên","Thanh Hoá","Thừa Thiên-Huế","Tiền Giang","Trà Vinh","Tuyên Quang","Vĩnh Long","Vĩnh Phúc","Yên Bái"]})(hBn);var eqa=hBn.exports,fBn={exports:{}};(function(t){t.exports=["#{city_root}"]})(fBn);var tqa=fBn.exports,pBn={exports:{}};(function(t){t.exports=["Việt Nam"]})(pBn);var nqa=pBn.exports,mBn={exports:{}};(function(t){t.exports=["#####"]})(mBn);var rqa=mBn.exports,gBn={exports:{}};(function(t){t.exports=["Afghanistan","Ai Cập","Albania","Algérie","Andorra","Angola","Vương quốc Liên hiệp Anh và Bắc Ireland","Antigua và Barbuda","Áo","Ả Rập Xê Út","Argentina","Armenia","Azerbaijan","Ấn Độ","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belize","Bénin","Bhutan","Bỉ","Bolivia","Bosna và Hercegovina","Botswana","Bồ Đào Nha","Bờ Biển Ngà","Brasil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Các Tiểu Vương quốc Ả Rập Thống nhất","Cameroon","Campuchia","Canada","Chile","Colombia","Comoros","Cộng hòa Congo","Cộng hòa Dân chủ Congo","Costa Rica","Croatia","Cuba","Djibouti","Dominica","Cộng hòa Dominica","Đan Mạch","Đông Timor","Đức","Ecuador","El Salvador","Eritrea","Estonia","Ethiopia","Fiji","Gabon","Gambia","Ghana","Grenada","Gruzia","Guatemala","Guiné-Bissau","Guinea Xích Đạo","Guinée","Guyana","Haiti","Hà Lan","Hàn Quốc","Hoa Kỳ","Honduras","Hungary","Hy Lạp","Iceland","Indonesia","Iran","Iraq","Ireland","Israel","Jamaica","Jordan","Kazakhstan","Kenya","Kiribati","Kosovo","Kuwait","Kyrgyzstan","Lào","Latvia","Lesotho","Liban","Liberia","Libya","Liechtenstein","Litva","Luxembourg","Macedonia","Madagascar","Malaysia","Mali","Malta","Maroc","Quần đảo Marshall","Mauritanie","Mauritius","México","Micronesia","Moldova","Monaco","Mông Cổ","Montenegro","Mozambique","Myanmar","Namibia","Nam Sudan","Nam Phi","Nauru","Na Uy","Nepal","New Zealand","Nicaragua","Niger","Nigeria","Nga","Nhật Bản","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Pháp","Phần Lan","Philippines","Qatar","România","Rwanda","Saint Kitts và Nevis","Saint Lucia","Saint Vincent và Grenadines","Samoa","San Marino","São Tomé và Príncipe","Séc","Sénégal","Serbia","Seychelles","Sierra Leone","Singapore","Síp","Slovakia","Slovenia","Solomon","Somalia","Sri Lanka","Sudan","Suriname","Swaziland","Syria","Tajikistan","Tanzania","Tây Ban Nha","Tchad","Thái Lan","Thổ Nhĩ Kỳ","Thụy Điển","Thụy Sĩ","Togo","Tonga","Triều Tiên","Trinidad và Tobago","Trung Quốc","Trung Phi","Tunisia","Turkmenistan","Tuvalu","Úc","Uganda","Ukraina","Uruguay","Uzbekistan","Vanuatu","Vatican","Venezuela","Việt Nam","Ý","Yemen","Zambia","Zimbabwe"]})(gBn);var iqa=gBn.exports;(function(t){var e={};t.exports=e,e.city_root=eqa,e.city=tqa,e.default_country=nqa,e.postcode=rqa,e.country=iqa})(dBn);var aqa=dBn.exports,vBn={exports:{}},ABn={exports:{}};(function(t){t.exports=["com","net","info","vn","com.vn"]})(ABn);var oqa=ABn.exports;(function(t){var e={};t.exports=e,e.domain_suffix=oqa})(vBn);var sqa=vBn.exports,yBn={exports:{}},bBn={exports:{}};(function(t){t.exports=["02# #### ####","02## #### ####"]})(bBn);var lqa=bBn.exports;(function(t){var e={};t.exports=e,e.formats=lqa})(yBn);var cqa=yBn.exports,xBn={exports:{}},EBn={exports:{}};(function(t){t.exports=["03# ### ####","05# ### ####","07# ### ####","08# ### ####","09# ### ####"]})(EBn);var uqa=EBn.exports;(function(t){var e={};t.exports=e,e.formats=uqa})(xBn);var dqa=xBn.exports,SBn={exports:{}},wBn=["An Bình","An Di","An Hạ","An Hằng","An Khê","An Nhiên","An Nhàn","Anh Chi","Anh Hương","Anh Mai","Anh Phương","Anh Thi","Anh Thy","Anh Thơ","Anh Thư","Anh Thảo","Anh Vũ","Anh Ðào","Ban Mai","Bình Minh","Bình Yên","Bích Chiêu","Bích Châu","Bích Duyên","Bích Hiền","Bích Huệ","Bích Hà","Bích Hạnh","Bích Hải","Bích Hảo","Bích Hậu","Bích Hằng","Bích Hồng","Bích Hợp","Bích Lam","Bích Liên","Bích Loan","Bích Nga","Bích Ngà","Bích Ngân","Bích Ngọc","Bích Như","Bích Phượng","Bích Quyên","Bích Quân","Bích San","Bích Thoa","Bích Thu","Bích Thảo","Bích Thủy","Bích Trang","Bích Trâm","Bích Ty","Bích Vân","Bích Ðiệp","Bích Ðào","Băng Băng","Băng Tâm","Bạch Cúc","Bạch Hoa","Bạch Kim","Bạch Liên","Bạch Loan","Bạch Mai","Bạch Quỳnh","Bạch Trà","Bạch Tuyết","Bạch Vân","Bạch Yến","Bảo Anh","Bảo Bình","Bảo Châu","Bảo Huệ","Bảo Hà","Bảo Hân","Bảo Lan","Bảo Lễ","Bảo Ngọc","Bảo Phương","Bảo Quyên","Bảo Quỳnh","Bảo Thoa","Bảo Thúy","Bảo Tiên","Bảo Trâm","Bảo Trân","Bảo Trúc","Bảo Uyên","Bảo Vy","Bảo Vân","Bội Linh","Cam Thảo","Chi Lan","Chi Mai","Chiêu Dương","Cát Cát","Cát Linh","Cát Ly","Cát Tiên","Cát Tường","Cẩm Hiền","Cẩm Hường","Cẩm Hạnh","Cẩm Linh","Cẩm Liên","Cẩm Ly","Cẩm Nhi","Cẩm Nhung","Cẩm Thúy","Cẩm Tú","Cẩm Vân","Cẩm Yến","Di Nhiên","Diên Vỹ","Diễm Chi","Diễm Châu","Diễm Hương","Diễm Hạnh","Diễm Hằng","Diễm Khuê","Diễm Kiều","Diễm Liên","Diễm Lộc","Diễm My","Diễm Phúc","Diễm Phương","Diễm Phước","Diễm Phượng","Diễm Quyên","Diễm Quỳnh","Diễm Thúy","Diễm Thư","Diễm Thảo","Diễm Trang","Diễm Trinh","Diễm Uyên","Diệp Anh","Diệp Vy","Diệu Anh","Diệu Hiền","Diệu Hoa","Diệu Huyền","Diệu Hương","Diệu Hạnh","Diệu Hằng","Diệu Hồng","Diệu Lan","Diệu Linh","Diệu Loan","Diệu Nga","Diệu Ngà","Diệu Ngọc","Diệu Nương","Diệu Thiện","Diệu Thúy","Diệu Vân","Diệu Ái","Duy Hạnh","Duy Mỹ","Duy Uyên","Duyên Hồng","Duyên My","Duyên Mỹ","Duyên Nương","Dã Lan","Dã Lâm","Dã Thảo","Dạ Hương","Dạ Lan","Dạ Nguyệt","Dạ Thi","Dạ Thảo","Dạ Yến","Gia Hân","Gia Khanh","Gia Linh","Gia Nhi","Gia Quỳnh","Giang Thanh","Giang Thiên","Giao Hưởng","Giao Kiều","Giao Linh","Giáng Ngọc","Giáng Tiên","Giáng Uyên","Hiếu Giang","Hiếu Hạnh","Hiếu Khanh","Hiếu Minh","Hiền Chung","Hiền Hòa","Hiền Mai","Hiền Nhi","Hiền Nương","Hiền Thục","Hiểu Lam","Hiểu Vân","Hoa Liên","Hoa Lý","Hoa Thiên","Hoa Tiên","Hoa Tranh","Hoài An","Hoài Giang","Hoài Hương","Hoài Phương","Hoài Thương","Hoài Trang","Hoài Vỹ","Hoàn Châu","Hoàn Vi","Hoàng Cúc","Hoàng Hà","Hoàng Kim","Hoàng Lan","Hoàng Mai","Hoàng Miên","Hoàng Nguyên","Hoàng Oanh","Hoàng Sa","Hoàng Thư","Hoàng Xuân","Hoàng Yến","Hoạ Mi","Huyền Anh","Huyền Diệu","Huyền Linh","Huyền Ngọc","Huyền Nhi","Huyền Thoại","Huyền Thư","Huyền Trang","Huyền Trâm","Huyền Trân","Huệ An","Huệ Hương","Huệ Hồng","Huệ Lan","Huệ Linh","Huệ Lâm","Huệ My","Huệ Phương","Huệ Thương","Huệ Ân","Huỳnh Anh","Hà Giang","Hà Liên","Hà Mi","Hà My","Hà Nhi","Hà Phương","Hà Thanh","Hà Tiên","Hàm Duyên","Hàm Nghi","Hàm Thơ","Hàm Ý","Hương Chi","Hương Giang","Hương Lan","Hương Liên","Hương Ly","Hương Lâm","Hương Mai","Hương Nhi","Hương Thu","Hương Thảo","Hương Thủy","Hương Tiên","Hương Trang","Hương Trà","Hương Xuân","Hướng Dương","Hạ Băng","Hạ Giang","Hạ Phương","Hạ Tiên","Hạ Uyên","Hạ Vy","Hạc Cúc","Hạnh Chi","Hạnh Dung","Hạnh Linh","Hạnh My","Hạnh Nga","Hạnh Nhơn","Hạnh Phương","Hạnh San","Hạnh Thảo","Hạnh Trang","Hạnh Vi","Hải Anh","Hải Châu","Hải Duyên","Hải Dương","Hải Miên","Hải My","Hải Mỹ","Hải Ngân","Hải Nhi","Hải Phương","Hải Phượng","Hải San","Hải Sinh","Hải Thanh","Hải Thảo","Hải Thụy","Hải Uyên","Hải Vy","Hải Vân","Hải Yến","Hải Ân","Hải Ðường","Hảo Nhi","Hằng Anh","Hằng Nga","Họa Mi","Hồ Diệp","Hồng Anh","Hồng Bạch Thảo","Hồng Châu","Hồng Diễm","Hồng Giang","Hồng Hoa","Hồng Hà","Hồng Hạnh","Hồng Khanh","Hồng Khuê","Hồng Khôi","Hồng Linh","Hồng Liên","Hồng Lâm","Hồng Mai","Hồng Nga","Hồng Ngân","Hồng Ngọc","Hồng Nhung","Hồng Như","Hồng Nhạn","Hồng Oanh","Hồng Phúc","Hồng Phương","Hồng Quế","Hồng Thu","Hồng Thúy","Hồng Thư","Hồng Thảo","Hồng Thắm","Hồng Thủy","Hồng Trúc","Hồng Tâm","Hồng Vân","Hồng Xuân","Hồng Ðiệp","Hồng Ðào","Hồng Đăng","Khiết Linh","Khiết Tâm","Khuê Trung","Khánh Chi","Khánh Giang","Khánh Giao","Khánh Huyền","Khánh Hà","Khánh Hằng","Khánh Linh","Khánh Ly","Khánh Mai","Khánh My","Khánh Ngân","Khánh Ngọc","Khánh Quyên","Khánh Quỳnh","Khánh Thủy","Khánh Trang","Khánh Vi","Khánh Vy","Khánh Vân","Khúc Lan","Khả Khanh","Khả Tú","Khả Ái","Khải Ca","Khải Hà","Khải Tâm","Kim Anh","Kim Chi","Kim Cương","Kim Dung","Kim Duyên","Kim Hoa","Kim Hương","Kim Khanh","Kim Khuyên","Kim Khánh","Kim Lan","Kim Liên","Kim Loan","Kim Ly","Kim Mai","Kim Ngân","Kim Ngọc","Kim Oanh","Kim Phượng","Kim Quyên","Kim Sa","Kim Thanh","Kim Thoa","Kim Thu","Kim Thy","Kim Thông","Kim Thư","Kim Thảo","Kim Thủy","Kim Trang","Kim Tuyến","Kim Tuyết","Kim Tuyền","Kim Xuyến","Kim Xuân","Kim Yến","Kim Ánh","Kim Đan","Kiết Hồng","Kiết Trinh","Kiều Anh","Kiều Diễm","Kiều Dung","Kiều Giang","Kiều Hoa","Kiều Hạnh","Kiều Khanh","Kiều Loan","Kiều Mai","Kiều Minh","Kiều Mỹ","Kiều Nga","Kiều Nguyệt","Kiều Nương","Kiều Thu","Kiều Trang","Kiều Trinh","Kỳ Anh","Kỳ Diệu","Kỳ Duyên","Lam Giang","Lam Hà","Lam Khê","Lam Ngọc","Lam Tuyền","Lan Anh","Lan Chi","Lan Hương","Lan Khuê","Lan Ngọc","Lan Nhi","Lan Phương","Lan Thương","Lan Trúc","Lan Vy","Linh Chi","Linh Châu","Linh Duyên","Linh Giang","Linh Hà","Linh Lan","Linh Nhi","Linh Phương","Linh Phượng","Linh San","Linh Trang","Linh Ðan","Liên Chi","Liên Hoa","Liên Hương","Liên Như","Liên Phương","Liên Trân","Liễu Oanh","Loan Châu","Ly Châu","Lâm Nhi","Lâm Oanh","Lâm Tuyền","Lâm Uyên","Lê Quỳnh","Lưu Ly","Lệ Băng","Lệ Chi","Lệ Giang","Lệ Hoa","Lệ Huyền","Lệ Khanh","Lệ Nga","Lệ Nhi","Lệ Quyên","Lệ Quân","Lệ Thanh","Lệ Thu","Lệ Thủy","Lộc Uyên","Lộc Uyển","Lục Bình","Mai Anh","Mai Chi","Mai Châu","Mai Hiền","Mai Hà","Mai Hương","Mai Hạ","Mai Khanh","Mai Khôi","Mai Lan","Mai Linh","Mai Liên","Mai Loan","Mai Ly","Mai Nhi","Mai Phương","Mai Quyên","Mai Thanh","Mai Thu","Mai Thy","Mai Thảo","Mai Trinh","Mai Tâm","Mai Vy","Minh An","Minh Châu","Minh Duyên","Minh Hiền","Minh Huyền","Minh Huệ","Minh Hà","Minh Hương","Minh Hạnh","Minh Hằng","Minh Hồng","Minh Khai","Minh Khuê","Minh Loan","Minh Minh","Minh Nguyệt","Minh Ngọc","Minh Nhi","Minh Như","Minh Phương","Minh Phượng","Minh Thu","Minh Thúy","Minh Thư","Minh Thương","Minh Thảo","Minh Thủy","Minh Trang","Minh Tuyết","Minh Tuệ","Minh Tâm","Minh Uyên","Minh Vy","Minh Xuân","Minh Yến","Minh Đan","Mậu Xuân","Mộc Miên","Mộng Hoa","Mộng Hương","Mộng Hằng","Mộng Lan","Mộng Liễu","Mộng Nguyệt","Mộng Nhi","Mộng Quỳnh","Mộng Thi","Mộng Thu","Mộng Tuyền","Mộng Vi","Mộng Vy","Mộng Vân","Mộng Ðiệp","Mỹ Anh","Mỹ Diễm","Mỹ Dung","Mỹ Duyên","Mỹ Hiệp","Mỹ Hoàn","Mỹ Huyền","Mỹ Huệ","Mỹ Hường","Mỹ Hạnh","Mỹ Khuyên","Mỹ Kiều","Mỹ Lan","Mỹ Loan","Mỹ Lệ","Mỹ Lợi","Mỹ Nga","Mỹ Ngọc","Mỹ Nhi","Mỹ Nhân","Mỹ Nương","Mỹ Phương","Mỹ Phượng","Mỹ Phụng","Mỹ Thuần","Mỹ Thuận","Mỹ Trang","Mỹ Trâm","Mỹ Tâm","Mỹ Uyên","Mỹ Vân","Mỹ Xuân","Mỹ Yến","Nghi Dung","Nghi Minh","Nghi Xuân","Nguyên Hồng","Nguyên Thảo","Nguyết Ánh","Nguyệt Anh","Nguyệt Cát","Nguyệt Cầm","Nguyệt Hà","Nguyệt Hồng","Nguyệt Lan","Nguyệt Minh","Nguyệt Nga","Nguyệt Quế","Nguyệt Uyển","Nguyệt Ánh","Ngân Anh","Ngân Hà","Ngân Thanh","Ngân Trúc","Ngọc Anh","Ngọc Bích","Ngọc Cầm","Ngọc Diệp","Ngọc Dung","Ngọc Hiền","Ngọc Hoa","Ngọc Hoan","Ngọc Hoàn","Ngọc Huyền","Ngọc Huệ","Ngọc Hà","Ngọc Hân","Ngọc Hạ","Ngọc Hạnh","Ngọc Hằng","Ngọc Khanh","Ngọc Khuê","Ngọc Khánh","Ngọc Lam","Ngọc Lan","Ngọc Linh","Ngọc Liên","Ngọc Loan","Ngọc Ly","Ngọc Lâm","Ngọc Lý","Ngọc Lệ","Ngọc Mai","Ngọc Nhi","Ngọc Nữ","Ngọc Oanh","Ngọc Phụng","Ngọc Quyên","Ngọc Quế","Ngọc Quỳnh","Ngọc San","Ngọc Sương","Ngọc Thi","Ngọc Thy","Ngọc Thơ","Ngọc Trinh","Ngọc Trâm","Ngọc Tuyết","Ngọc Tâm","Ngọc Tú","Ngọc Uyên","Ngọc Uyển","Ngọc Vy","Ngọc Vân","Ngọc Yến","Ngọc Ái","Ngọc Ánh","Ngọc Ðiệp","Ngọc Ðàn","Ngọc Ðào","Nhan Hồng","Nhã Hương","Nhã Hồng","Nhã Khanh","Nhã Lý","Nhã Mai","Nhã Sương","Nhã Thanh","Nhã Trang","Nhã Trúc","Nhã Uyên","Nhã Yến","Nhã Ý","Như Anh","Như Bảo","Như Hoa","Như Hảo","Như Hồng","Như Loan","Như Mai","Như Ngà","Như Ngọc","Như Phương","Như Quân","Như Quỳnh","Như Thảo","Như Trân","Như Tâm","Như Ý","Nhất Thương","Nhật Dạ","Nhật Hà","Nhật Hạ","Nhật Lan","Nhật Linh","Nhật Lệ","Nhật Mai","Nhật Phương","Nhật Ánh","Oanh Thơ","Oanh Vũ","Phi Khanh","Phi Nhung","Phi Nhạn","Phi Phi","Phi Phượng","Phong Lan","Phương An","Phương Anh","Phương Chi","Phương Châu","Phương Diễm","Phương Dung","Phương Giang","Phương Hiền","Phương Hoa","Phương Hạnh","Phương Lan","Phương Linh","Phương Liên","Phương Loan","Phương Mai","Phương Nghi","Phương Ngọc","Phương Nhi","Phương Nhung","Phương Phương","Phương Quyên","Phương Quân","Phương Quế","Phương Quỳnh","Phương Thanh","Phương Thi","Phương Thùy","Phương Thảo","Phương Thủy","Phương Trang","Phương Trinh","Phương Trà","Phương Trâm","Phương Tâm","Phương Uyên","Phương Yến","Phước Bình","Phước Huệ","Phượng Bích","Phượng Liên","Phượng Loan","Phượng Lệ","Phượng Nga","Phượng Nhi","Phượng Tiên","Phượng Uyên","Phượng Vy","Phượng Vũ","Phụng Yến","Quế Anh","Quế Chi","Quế Linh","Quế Lâm","Quế Phương","Quế Thu","Quỳnh Anh","Quỳnh Chi","Quỳnh Dao","Quỳnh Dung","Quỳnh Giang","Quỳnh Giao","Quỳnh Hoa","Quỳnh Hà","Quỳnh Hương","Quỳnh Lam","Quỳnh Liên","Quỳnh Lâm","Quỳnh Nga","Quỳnh Ngân","Quỳnh Nhi","Quỳnh Nhung","Quỳnh Như","Quỳnh Phương","Quỳnh Sa","Quỳnh Thanh","Quỳnh Thơ","Quỳnh Tiên","Quỳnh Trang","Quỳnh Trâm","Quỳnh Vân","Sao Băng","Sao Mai","Song Kê","Song Lam","Song Oanh","Song Thư","Sông Hà","Sông Hương","Sơn Ca","Sơn Tuyền","Sương Sương","Thanh Bình","Thanh Dân","Thanh Giang","Thanh Hiếu","Thanh Hiền","Thanh Hoa","Thanh Huyền","Thanh Hà","Thanh Hương","Thanh Hường","Thanh Hạnh","Thanh Hảo","Thanh Hằng","Thanh Hồng","Thanh Kiều","Thanh Lam","Thanh Lan","Thanh Loan","Thanh Lâm","Thanh Mai","Thanh Mẫn","Thanh Nga","Thanh Nguyên","Thanh Ngân","Thanh Ngọc","Thanh Nhung","Thanh Nhàn","Thanh Nhã","Thanh Phương","Thanh Thanh","Thanh Thiên","Thanh Thu","Thanh Thúy","Thanh Thư","Thanh Thảo","Thanh Thủy","Thanh Trang","Thanh Trúc","Thanh Tuyết","Thanh Tuyền","Thanh Tâm","Thanh Uyên","Thanh Vy","Thanh Vân","Thanh Xuân","Thanh Yến","Thanh Đan","Thi Cầm","Thi Ngôn","Thi Thi","Thi Xuân","Thi Yến","Thiên Di","Thiên Duyên","Thiên Giang","Thiên Hà","Thiên Hương","Thiên Khánh","Thiên Kim","Thiên Lam","Thiên Lan","Thiên Mai","Thiên Mỹ","Thiên Nga","Thiên Nương","Thiên Phương","Thiên Thanh","Thiên Thêu","Thiên Thư","Thiên Thảo","Thiên Trang","Thiên Tuyền","Thiếu Mai","Thiều Ly","Thiện Mỹ","Thiện Tiên","Thu Duyên","Thu Giang","Thu Hiền","Thu Hoài","Thu Huyền","Thu Huệ","Thu Hà","Thu Hậu","Thu Hằng","Thu Hồng","Thu Linh","Thu Liên","Thu Loan","Thu Mai","Thu Minh","Thu Nga","Thu Nguyệt","Thu Ngà","Thu Ngân","Thu Ngọc","Thu Nhiên","Thu Oanh","Thu Phong","Thu Phương","Thu Phượng","Thu Sương","Thu Thuận","Thu Thảo","Thu Thủy","Thu Trang","Thu Việt","Thu Vân","Thu Vọng","Thu Yến","Thuần Hậu","Thy Khanh","Thy Oanh","Thy Trúc","Thy Vân","Thái Chi","Thái Hà","Thái Hồng","Thái Lan","Thái Lâm","Thái Thanh","Thái Thảo","Thái Tâm","Thái Vân","Thùy Anh","Thùy Dung","Thùy Dương","Thùy Giang","Thùy Linh","Thùy Mi","Thùy My","Thùy Nhi","Thùy Như","Thùy Oanh","Thùy Uyên","Thùy Vân","Thúy Anh","Thúy Diễm","Thúy Hiền","Thúy Huyền","Thúy Hà","Thúy Hương","Thúy Hường","Thúy Hạnh","Thúy Hằng","Thúy Kiều","Thúy Liên","Thúy Liễu","Thúy Loan","Thúy Mai","Thúy Minh","Thúy My","Thúy Nga","Thúy Ngà","Thúy Ngân","Thúy Ngọc","Thúy Phượng","Thúy Quỳnh","Thúy Vi","Thúy Vy","Thúy Vân","Thơ Thơ","Thư Lâm","Thư Sương","Thương Huyền","Thương Nga","Thương Thương","Thường Xuân","Thạch Thảo","Thảo Hương","Thảo Hồng","Thảo Linh","Thảo Ly","Thảo Mai","Thảo My","Thảo Nghi","Thảo Nguyên","Thảo Nhi","Thảo Quyên","Thảo Tiên","Thảo Trang","Thảo Uyên","Thảo Vy","Thảo Vân","Thục Anh","Thục Khuê","Thục Nhi","Thục Oanh","Thục Quyên","Thục Trang","Thục Trinh","Thục Tâm","Thục Uyên","Thục Vân","Thục Ðoan","Thục Ðào","Thục Ðình","Thụy Du","Thụy Khanh","Thụy Linh","Thụy Lâm","Thụy Miên","Thụy Nương","Thụy Trinh","Thụy Trâm","Thụy Uyên","Thụy Vân","Thụy Ðào","Thủy Hằng","Thủy Hồng","Thủy Linh","Thủy Minh","Thủy Nguyệt","Thủy Quỳnh","Thủy Tiên","Thủy Trang","Thủy Tâm","Tinh Tú","Tiên Phương","Tiểu Mi","Tiểu My","Tiểu Quỳnh","Trang Anh","Trang Linh","Trang Nhã","Trang Tâm","Trang Ðài","Triều Nguyệt","Triều Thanh","Triệu Mẫn","Trung Anh","Trà Giang","Trà My","Trâm Anh","Trâm Oanh","Trân Châu","Trúc Chi","Trúc Lam","Trúc Lan","Trúc Linh","Trúc Liên","Trúc Loan","Trúc Ly","Trúc Lâm","Trúc Mai","Trúc Phương","Trúc Quân","Trúc Quỳnh","Trúc Vy","Trúc Vân","Trúc Ðào","Trúc Đào","Trầm Hương","Tuyết Anh","Tuyết Băng","Tuyết Chi","Tuyết Hoa","Tuyết Hân","Tuyết Hương","Tuyết Hồng","Tuyết Lan","Tuyết Loan","Tuyết Lâm","Tuyết Mai","Tuyết Nga","Tuyết Nhi","Tuyết Nhung","Tuyết Oanh","Tuyết Thanh","Tuyết Trinh","Tuyết Trầm","Tuyết Tâm","Tuyết Vy","Tuyết Vân","Tuyết Xuân","Tuyền Lâm","Tuệ Lâm","Tuệ Mẫn","Tuệ Nhi","Tâm Hiền","Tâm Hạnh","Tâm Hằng","Tâm Khanh","Tâm Linh","Tâm Nguyên","Tâm Nguyệt","Tâm Nhi","Tâm Như","Tâm Thanh","Tâm Trang","Tâm Ðoan","Tâm Đan","Tùng Linh","Tùng Lâm","Tùng Quân","Tùy Anh","Tùy Linh","Tú Anh","Tú Ly","Tú Nguyệt","Tú Quyên","Tú Quỳnh","Tú Sương","Tú Trinh","Tú Tâm","Tú Uyên","Túy Loan","Tường Chinh","Tường Vi","Tường Vy","Tường Vân","Tịnh Lâm","Tịnh Nhi","Tịnh Như","Tịnh Tâm","Tịnh Yên","Tố Loan","Tố Nga","Tố Nhi","Tố Quyên","Tố Tâm","Tố Uyên","Từ Dung","Từ Ân","Uyên Minh","Uyên My","Uyên Nhi","Uyên Phương","Uyên Thi","Uyên Thy","Uyên Thơ","Uyên Trâm","Uyên Vi","Uyển Khanh","Uyển My","Uyển Nghi","Uyển Nhi","Uyển Nhã","Uyển Như","Vi Quyên","Vinh Diệu","Việt Hà","Việt Hương","Việt Khuê","Việt Mi","Việt Nga","Việt Nhi","Việt Thi","Việt Trinh","Việt Tuyết","Việt Yến","Vy Lam","Vy Lan","Vàng Anh","Vành Khuyên","Vân Anh","Vân Chi","Vân Du","Vân Hà","Vân Hương","Vân Khanh","Vân Khánh","Vân Linh","Vân Ngọc","Vân Nhi","Vân Phi","Vân Phương","Vân Quyên","Vân Quỳnh","Vân Thanh","Vân Thúy","Vân Thường","Vân Tiên","Vân Trang","Vân Trinh","Vũ Hồng","Xuyến Chi","Xuân Bảo","Xuân Dung","Xuân Hiền","Xuân Hoa","Xuân Hân","Xuân Hương","Xuân Hạnh","Xuân Lan","Xuân Linh","Xuân Liễu","Xuân Loan","Xuân Lâm","Xuân Mai","Xuân Nghi","Xuân Ngọc","Xuân Nhi","Xuân Nhiên","Xuân Nương","Xuân Phương","Xuân Phượng","Xuân Thanh","Xuân Thu","Xuân Thảo","Xuân Thủy","Xuân Trang","Xuân Tâm","Xuân Uyên","Xuân Vân","Xuân Yến","Xuân xanh","Yên Bằng","Yên Mai","Yên Nhi","Yên Ðan","Yên Đan","Yến Anh","Yến Hồng","Yến Loan","Yến Mai","Yến My","Yến Nhi","Yến Oanh","Yến Phương","Yến Phượng","Yến Thanh","Yến Thảo","Yến Trang","Yến Trinh","Yến Trâm","Yến Ðan","Ái Hồng","Ái Khanh","Ái Linh","Ái Nhi","Ái Nhân","Ái Thi","Ái Thy","Ái Vân","Ánh Dương","Ánh Hoa","Ánh Hồng","Ánh Linh","Ánh Lệ","Ánh Mai","Ánh Nguyệt","Ánh Ngọc","Ánh Thơ","Ánh Trang","Ánh Tuyết","Ánh Xuân","Ðan Khanh","Ðan Quỳnh","Đan Thu","Ðinh Hương","Ðoan Thanh","Ðoan Trang","Ðài Trang","Ðông Nghi","Ðông Nhi","Ðông Trà","Ðông Tuyền","Ðông Vy","Ðông Ðào","Ðồng Dao","Ý Bình","Ý Lan","Ý Nhi","Đan Linh","Đan Quỳnh","Đan Thanh","Đan Thu","Đan Thư","Đan Tâm","Đinh Hương","Đoan Thanh","Đoan Trang","Đài Trang","Đông Nghi","Đông Trà","Đông Tuyền","Đông Vy","Đơn Thuần","Đức Hạnh","Ấu Lăng"],_Bn=["An Cơ","An Khang","Ân Lai","An Nam","An Nguyên","An Ninh","An Tâm","Ân Thiện","An Tường","Anh Ðức","Anh Dũng","Anh Duy","Anh Hoàng","Anh Khải","Anh Khoa","Anh Khôi","Anh Minh","Anh Quân","Anh Quốc","Anh Sơn","Anh Tài","Anh Thái","Anh Tú","Anh Tuấn","Anh Tùng","Anh Việt","Anh Vũ","Bá Cường","Bá Kỳ","Bá Lộc","Bá Long","Bá Phước","Bá Thành","Bá Thiện","Bá Thịnh","Bá Thúc","Bá Trúc","Bá Tùng","Bách Du","Bách Nhân","Bằng Sơn","Bảo An","Bảo Bảo","Bảo Chấn","Bảo Ðịnh","Bảo Duy","Bảo Giang","Bảo Hiển","Bảo Hoa","Bảo Hoàng","Bảo Huy","Bảo Huynh","Bảo Huỳnh","Bảo Khánh","Bảo Lâm","Bảo Long","Bảo Pháp","Bảo Quốc","Bảo Sơn","Bảo Thạch","Bảo Thái","Bảo Tín","Bảo Toàn","Bích Nhã","Bình An","Bình Dân","Bình Ðạt","Bình Ðịnh","Bình Dương","Bình Hòa","Bình Minh","Bình Nguyên","Bình Quân","Bình Thuận","Bình Yên","Bửu Chưởng","Bửu Diệp","Bữu Toại","Cảnh Tuấn","Cao Kỳ","Cao Minh","Cao Nghiệp","Cao Nguyên","Cao Nhân","Cao Phong","Cao Sĩ","Cao Sơn","Cao Sỹ","Cao Thọ","Cao Tiến","Cát Tường","Cát Uy","Chấn Hùng","Chấn Hưng","Chấn Phong","Chánh Việt","Chế Phương","Chí Anh","Chí Bảo","Chí Công","Chí Dũng","Chí Giang","Chí Hiếu","Chí Khang","Chí Khiêm","Chí Kiên","Chí Nam","Chí Sơn","Chí Thanh","Chí Thành","Chiến Thắng","Chiêu Minh","Chiêu Phong","Chiêu Quân","Chính Tâm","Chính Thuận","Chính Trực","Chuẩn Khoa","Chung Thủy","Công Án","Công Ân","Công Bằng","Công Giang","Công Hải","Công Hào","Công Hậu","Công Hiếu","Công Hoán","Công Lập","Công Lộc","Công Luận","Công Luật","Công Lý","Công Phụng","Công Sinh","Công Sơn","Công Thành","Công Tráng","Công Tuấn","Cường Dũng","Cương Nghị","Cương Quyết","Cường Thịnh","Ðắc Cường","Ðắc Di","Ðắc Lộ","Ðắc Lực","Ðắc Thái","Ðắc Thành","Ðắc Trọng","Ðại Dương","Ðại Hành","Ðại Ngọc","Ðại Thống","Dân Hiệp","Dân Khánh","Ðan Quế","Ðan Tâm","Ðăng An","Ðăng Ðạt","Ðăng Khánh","Ðăng Khoa","Đăng Khương","Ðăng Minh","Đăng Quang","Danh Nhân","Danh Sơn","Danh Thành","Danh Văn","Ðạt Dũng","Ðạt Hòa","Ðình Chiểu","Ðình Chương","Ðình Cường","Ðình Diệu","Ðình Ðôn","Ðình Dương","Ðình Hảo","Ðình Hợp","Ðình Kim","Ðinh Lộc","Ðình Lộc","Ðình Luận","Ðịnh Lực","Ðình Nam","Ðình Ngân","Ðình Nguyên","Ðình Nhân","Ðình Phú","Ðình Phúc","Ðình Quảng","Ðình Sang","Ðịnh Siêu","Ðình Thắng","Ðình Thiện","Ðình Toàn","Ðình Trung","Ðình Tuấn","Ðoàn Tụ","Ðồng Bằng","Ðông Dương","Ðông Hải","Ðồng Khánh","Ðông Nguyên","Ðông Phong","Ðông Phương","Ðông Quân","Ðông Sơn","Ðức Ân","Ðức Anh","Ðức Bằng","Ðức Bảo","Ðức Bình","Ðức Chính","Ðức Duy","Ðức Giang","Ðức Hải","Ðức Hạnh","Đức Hòa","Ðức Hòa","Ðức Huy","Ðức Khải","Ðức Khang","Ðức Khiêm","Ðức Kiên","Ðức Long","Ðức Mạnh","Ðức Minh","Ðức Nhân","Ðức Phi","Ðức Phong","Ðức Phú","Ðức Quang","Ðức Quảng","Ðức Quyền","Ðức Siêu","Ðức Sinh","Ðức Tài","Ðức Tâm","Ðức Thắng","Ðức Thành","Ðức Thọ","Ðức Toàn","Ðức Toản","Ðức Trí","Ðức Trung","Ðức Tuấn","Ðức Tuệ","Ðức Tường","Dũng Trí","Dũng Việt","Dương Anh","Dương Khánh","Duy An","Duy Bảo","Duy Cẩn","Duy Cường","Duy Hải","Duy Hiền","Duy Hiếu","Duy Hoàng","Duy Hùng","Duy Khang","Duy Khánh","Duy Khiêm","Duy Kính","Duy Luận","Duy Mạnh","Duy Minh","Duy Ngôn","Duy Nhượng","Duy Quang","Duy Tâm","Duy Tân","Duy Thạch","Duy Thắng","Duy Thanh","Duy Thành","Duy Thông","Duy Tiếp","Duy Tuyền","Gia Ân","Gia Anh","Gia Bạch","Gia Bảo","Gia Bình","Gia Cần","Gia Cẩn","Gia Cảnh","Gia Ðạo","Gia Ðức","Gia Hiệp","Gia Hòa","Gia Hoàng","Gia Huấn","Gia Hùng","Gia Hưng","Gia Huy","Gia Khánh","Gia Khiêm","Gia Kiên","Gia Kiệt","Gia Lập","Gia Minh","Gia Nghị","Gia Phong","Gia Phúc","Gia Phước","Gia Thiện","Gia Thịnh","Gia Uy","Gia Vinh","Giang Lam","Giang Nam","Giang Sơn","Giang Thiên","Hà Hải","Hải Bằng","Hải Bình","Hải Ðăng","Hải Dương","Hải Giang","Hải Hà","Hải Long","Hải Lý","Hải Nam","Hải Nguyên","Hải Phong","Hải Quân","Hải Sơn","Hải Thụy","Hán Lâm","Hạnh Tường","Hào Nghiệp","Hạo Nhiên","Hiền Minh","Hiệp Dinh","Hiệp Hà","Hiệp Hào","Hiệp Hiền","Hiệp Hòa","Hiệp Vũ","Hiếu Dụng","Hiếu Học","Hiểu Lam","Hiếu Liêm","Hiếu Nghĩa","Hiếu Phong","Hiếu Thông","Hồ Bắc","Hồ Nam","Hòa Bình","Hòa Giang","Hòa Hiệp","Hòa Hợp","Hòa Lạc","Hòa Thái","Hoài Bắc","Hoài Nam","Hoài Phong","Hoài Thanh","Hoài Tín","Hoài Trung","Hoài Việt","Hoài Vỹ","Hoàn Kiếm","Hoàn Vũ","Hoàng Ân","Hoàng Duệ","Hoàng Dũng","Hoàng Giang","Hoàng Hải","Hoàng Hiệp","Hoàng Khải","Hoàng Khang","Hoàng Khôi","Hoàng Lâm","Hoàng Linh","Hoàng Long","Hoàng Minh","Hoàng Mỹ","Hoàng Nam","Hoàng Ngôn","Hoàng Phát","Hoàng Quân","Hoàng Thái","Hoàng Việt","Hoàng Xuân","Hồng Ðăng","Hồng Đức","Hồng Giang","Hồng Lân","Hồng Liêm","Hồng Lĩnh","Hồng Minh","Hồng Nhật","Hồng Nhuận","Hồng Phát","Hồng Quang","Hồng Quý","Hồng Sơn","Hồng Thịnh","Hồng Thụy","Hồng Việt","Hồng Vinh","Huân Võ","Hùng Anh","Hùng Cường","Hưng Ðạo","Hùng Dũng","Hùng Ngọc","Hùng Phong","Hùng Sơn","Hùng Thịnh","Hùng Tường","Hướng Bình","Hướng Dương","Hướng Thiện","Hướng Tiền","Hữu Bào","Hữu Bảo","Hữu Bình","Hữu Canh","Hữu Cảnh","Hữu Châu","Hữu Chiến","Hữu Cương","Hữu Cường","Hữu Ðạt","Hữu Ðịnh","Hữu Hạnh","Hữu Hiệp","Hữu Hoàng","Hữu Hùng","Hữu Khang","Hữu Khanh","Hữu Khoát","Hữu Khôi","Hữu Long","Hữu Lương","Hữu Minh","Hữu Nam","Hữu Nghị","Hữu Nghĩa","Hữu Phước","Hữu Tài","Hữu Tâm","Hữu Tân","Hữu Thắng","Hữu Thiện","Hữu Thọ","Hữu Thống","Hữu Thực","Hữu Toàn","Hữu Trác","Hữu Trí","Hữu Trung","Hữu Từ","Hữu Tường","Hữu Vĩnh","Hữu Vượng","Huy Anh","Huy Chiểu","Huy Hà","Huy Hoàng","Huy Kha","Huy Khánh","Huy Khiêm","Huy Lĩnh","Huy Phong","Huy Quang","Huy Thành","Huy Thông","Huy Trân","Huy Tuấn","Huy Tường","Huy Việt","Huy Vũ","Khắc Anh","Khắc Công","Khắc Dũng","Khắc Duy","Khắc Kỷ","Khắc Minh","Khắc Ninh","Khắc Thành","Khắc Triệu","Khắc Trọng","Khắc Tuấn","Khắc Việt","Khắc Vũ","Khải Ca","Khải Hòa","Khai Minh","Khải Tâm","Khải Tuấn","Khang Kiện","Khánh An","Khánh Bình","Khánh Ðan","Khánh Duy","Khánh Giang","Khánh Hải","Khánh Hòa","Khánh Hoàn","Khánh Hoàng","Khánh Hội","Khánh Huy","Khánh Minh","Khánh Nam","Khánh Văn","Khoa Trưởng","Khôi Nguyên","Khởi Phong","Khôi Vĩ","Khương Duy","Khuyến Học","Kiên Bình","Kiến Bình","Kiên Cường","Kiến Ðức","Kiên Giang","Kiên Lâm","Kiên Trung","Kiến Văn","Kiệt Võ","Kim Ðan","Kim Hoàng","Kim Long","Kim Phú","Kim Sơn","Kim Thịnh","Kim Thông","Kim Toàn","Kim Vượng","Kỳ Võ","Lạc Nhân","Lạc Phúc","Lâm Ðồng","Lâm Dũng","Lam Giang","Lam Phương","Lâm Trường","Lâm Tường","Lâm Viên","Lâm Vũ","Lập Nghiệp","Lập Thành","Liên Kiệt","Long Giang","Long Quân","Long Vịnh","Lương Quyền","Lương Tài","Lương Thiện","Lương Tuyền","Mạnh Cương","Mạnh Cường","Mạnh Ðình","Mạnh Dũng","Mạnh Hùng","Mạnh Nghiêm","Mạnh Quỳnh","Mạnh Tấn","Mạnh Thắng","Mạnh Thiện","Mạnh Trình","Mạnh Trường","Mạnh Tuấn","Mạnh Tường","Minh Ân","Minh Anh","Minh Cảnh","Minh Dân","Minh Ðan","Minh Danh","Minh Ðạt","Minh Ðức","Minh Dũng","Minh Giang","Minh Hải","Minh Hào","Minh Hiên","Minh Hiếu","Minh Hòa","Minh Hoàng","Minh Huấn","Minh Hùng","Minh Hưng","Minh Huy","Minh Hỷ","Minh Khang","Minh Khánh","Minh Khiếu","Minh Khôi","Minh Kiệt","Minh Kỳ","Minh Lý","Minh Mẫn","Minh Nghĩa","Minh Nhân","Minh Nhật","Minh Nhu","Minh Quân","Minh Quang","Minh Quốc","Minh Sơn","Minh Tân","Minh Thạc","Minh Thái","Minh Thắng","Minh Thiện","Minh Thông","Minh Thuận","Minh Tiến","Minh Toàn","Minh Trí","Minh Triết","Minh Triệu","Minh Trung","Minh Tú","Minh Tuấn","Minh Vu","Minh Vũ","Minh Vương","Mộng Giác","Mộng Hoàn","Mộng Lâm","Mộng Long","Nam An","Nam Dương","Nam Hải","Nam Hưng","Nam Lộc","Nam Nhật","Nam Ninh","Nam Phi","Nam Phương","Nam Sơn","Nam Thanh","Nam Thông","Nam Tú","Nam Việt","Nghị Lực","Nghị Quyền","Nghĩa Dũng","Nghĩa Hòa","Ngọc Ẩn","Ngọc Cảnh","Ngọc Cường","Ngọc Danh","Ngọc Ðoàn","Ngọc Dũng","Ngọc Hải","Ngọc Hiển","Ngọc Huy","Ngọc Khang","Ngọc Khôi","Ngọc Khương","Ngọc Lai","Ngọc Lân","Ngọc Minh","Ngọc Ngạn","Ngọc Quang","Ngọc Sơn","Ngọc Thạch","Ngọc Thiện","Ngọc Thọ","Ngọc Thuận","Ngọc Tiển","Ngọc Trụ","Ngọc Tuấn","Nguyên Bảo","Nguyên Bổng","Nguyên Ðan","Nguyên Giang","Nguyên Giáp","Nguyễn Hải An","Nguyên Hạnh","Nguyên Khang","Nguyên Khôi","Nguyên Lộc","Nguyên Nhân","Nguyên Phong","Nguyên Sử","Nguyên Văn","Nhân Nguyên","Nhân Sâm","Nhân Từ","Nhân Văn","Nhật Bảo Long","Nhật Dũng","Nhật Duy","Nhật Hòa","Nhật Hoàng","Nhật Hồng","Nhật Hùng","Nhật Huy","Nhật Khương","Nhật Minh","Nhật Nam","Nhật Quân","Nhật Quang","Nhật Quốc","Nhật Tấn","Nhật Thịnh","Nhất Tiến","Nhật Tiến","Như Khang","Niệm Nhiên","Phi Cường","Phi Ðiệp","Phi Hải","Phi Hoàng","Phi Hùng","Phi Long","Phi Nhạn","Phong Châu","Phong Dinh","Phong Ðộ","Phú Ân","Phú Bình","Phú Hải","Phú Hiệp","Phú Hùng","Phú Hưng","Phú Thịnh","Phú Thọ","Phú Thời","Phúc Cường","Phúc Ðiền","Phúc Duy","Phúc Hòa","Phúc Hưng","Phúc Khang","Phúc Lâm","Phục Lễ","Phúc Nguyên","Phúc Sinh","Phúc Tâm","Phúc Thịnh","Phụng Việt","Phước An","Phước Lộc","Phước Nguyên","Phước Nhân","Phước Sơn","Phước Thiện","Phượng Long","Phương Nam","Phương Phi","Phương Thể","Phương Trạch","Phương Triều","Quân Dương","Quang Anh","Quang Bửu","Quảng Ðại","Quang Danh","Quang Ðạt","Quảng Ðạt","Quang Ðức","Quang Dũng","Quang Dương","Quang Hà","Quang Hải","Quang Hòa","Quang Hùng","Quang Hưng","Quang Hữu","Quang Huy","Quang Khải","Quang Khanh","Quang Lâm","Quang Lân","Quang Linh","Quang Lộc","Quang Minh","Quang Nhân","Quang Nhật","Quang Ninh","Quang Sáng","Quang Tài","Quang Thạch","Quang Thái","Quang Thắng","Quang Thiên","Quang Thịnh","Quảng Thông","Quang Thuận","Quang Triều","Quang Triệu","Quang Trọng","Quang Trung","Quang Trường","Quang Tú","Quang Tuấn","Quang Vinh","Quang Vũ","Quang Xuân","Quốc Anh","Quốc Bảo","Quốc Bình","Quốc Ðại","Quốc Ðiền","Quốc Hải","Quốc Hạnh","Quốc Hiền","Quốc Hiển","Quốc Hòa","Quốc Hoài","Quốc Hoàng","Quốc Hùng","Quốc Hưng","Quốc Huy","Quốc Khánh","Quốc Mạnh","Quốc Minh","Quốc Mỹ","Quốc Phong","Quốc Phương","Quốc Quân","Quốc Quang","Quốc Quý","Quốc Thắng","Quốc Thành","Quốc Thiện","Quốc Thịnh","Quốc Thông","Quốc Tiến","Quốc Toản","Quốc Trụ","Quốc Trung","Quốc Trường","Quốc Tuấn","Quốc Văn","Quốc Việt","Quốc Vinh","Quốc Vũ","Quý Khánh","Quý Vĩnh","Quyết Thắng","Sĩ Hoàng","Sơn Dương","Sơn Giang","Sơn Hà","Sơn Hải","Sơn Lâm","Sơn Quân","Sơn Quyền","Sơn Trang","Sơn Tùng","Song Lam","Sỹ Ðan","Sỹ Hoàng","Sỹ Phú","Sỹ Thực","Tạ Hiền","Tài Ðức","Tài Nguyên","Tâm Thiện","Tân Bình","Tân Ðịnh","Tấn Dũng","Tấn Khang","Tấn Lợi","Tân Long","Tấn Nam","Tấn Phát","Tân Phước","Tấn Sinh","Tấn Tài","Tân Thành","Tấn Thành","Tấn Trình","Tấn Trương","Tất Bình","Tất Hiếu","Tất Hòa","Thạch Sơn","Thạch Tùng","Thái Bình","Thái Ðức","Thái Dương","Thái Duy","Thái Hòa","Thái Minh","Thái Nguyên","Thái San","Thái Sang","Thái Sơn","Thái Tân","Thái Tổ","Thắng Cảnh","Thắng Lợi","Thăng Long","Thành An","Thành Ân","Thành Châu","Thành Công","Thành Danh","Thanh Ðạo","Thành Ðạt","Thành Ðệ","Thanh Ðoàn","Thành Doanh","Thanh Hải","Thanh Hào","Thanh Hậu","Thành Hòa","Thanh Huy","Thành Khiêm","Thanh Kiên","Thanh Liêm","Thành Lợi","Thanh Long","Thành Long","Thanh Minh","Thành Nguyên","Thành Nhân","Thanh Phi","Thanh Phong","Thành Phương","Thanh Quang","Thành Sang","Thanh Sơn","Thanh Thế","Thanh Thiên","Thành Thiện","Thanh Thuận","Thành Tín","Thanh Tịnh","Thanh Toàn","Thanh Toản","Thanh Trung","Thành Trung","Thanh Tú","Thanh Tuấn","Thanh Tùng","Thanh Việt","Thanh Vinh","Thành Vinh","Thanh Vũ","Thành Ý","Thất Cương","Thất Dũng","Thất Thọ","Thế An","Thế Anh","Thế Bình","Thế Dân","Thế Doanh","Thế Dũng","Thế Duyệt","Thế Huấn","Thế Hùng","Thế Lâm","Thế Lực","Thế Minh","Thế Năng","Thế Phúc","Thế Phương","Thế Quyền","Thế Sơn","Thế Trung","Thế Tường","Thế Vinh","Thiên An","Thiên Ân","Thiện Ân","Thiên Bửu","Thiên Ðức","Thiện Ðức","Thiện Dũng","Thiện Giang","Thiên Hưng","Thiện Khiêm","Thiên Lạc","Thiện Luân","Thiên Lương","Thiện Lương","Thiên Mạnh","Thiện Minh","Thiện Ngôn","Thiên Phú","Thiện Phước","Thiện Sinh","Thiện Tâm","Thiện Thanh","Thiện Tính","Thiên Trí","Thiếu Anh","Thiệu Bảo","Thiếu Cường","Thịnh Cường","Thời Nhiệm","Thông Ðạt","Thông Minh","Thống Nhất","Thông Tuệ","Thụ Nhân","Thu Sinh","Thuận Anh","Thuận Hòa","Thuận Phong","Thuận Phương","Thuận Thành","Thuận Toàn","Thượng Cường","Thượng Khang","Thường Kiệt","Thượng Liệt","Thượng Năng","Thượng Nghị","Thượng Thuật","Thường Xuân","Thụy Du","Thụy Long","Thụy Miên","Thụy Vũ","Tích Ðức","Tích Thiện","Tiến Ðức","Tiến Dũng","Tiền Giang","Tiến Hiệp","Tiến Hoạt","Tiến Võ","Tiểu Bảo","Toàn Thắng","Tôn Lễ","Trí Dũng","Trí Hào","Trí Hùng","Trí Hữu","Trí Liên","Trí Minh","Trí Thắng","Trí Tịnh","Triển Sinh","Triệu Thái","Triều Thành","Trọng Chính","Trọng Dũng","Trọng Duy","Trọng Hà","Trọng Hiếu","Trọng Hùng","Trọng Khánh","Trọng Kiên","Trọng Nghĩa","Trọng Nhân","Trọng Tấn","Trọng Trí","Trọng Tường","Trọng Việt","Trọng Vinh","Trúc Cương","Trúc Sinh","Trung Anh","Trung Chính","Trung Chuyên","Trung Ðức","Trung Dũng","Trung Hải","Trung Hiếu","Trung Kiên","Trung Lực","Trung Nghĩa","Trung Nguyên","Trung Nhân","Trung Thành","Trung Thực","Trung Việt","Trường An","Trường Chinh","Trường Giang","Trường Hiệp","Trường Kỳ","Trường Liên","Trường Long","Trường Nam","Trường Nhân","Trường Phát","Trường Phu","Trường Phúc","Trường Sa","Trường Sinh","Trường Sơn","Trường Thành","Trường Vinh","Trường Vũ","Từ Ðông","Tuấn Anh","Tuấn Châu","Tuấn Chương","Tuấn Ðức","Tuấn Dũng","Tuấn Hải","Tuấn Hoàng","Tuấn Hùng","Tuấn Khải","Tuấn Khanh","Tuấn Khoan","Tuấn Kiệt","Tuấn Linh","Tuấn Long","Tuấn Minh","Tuấn Ngọc","Tuấn Sĩ","Tuấn Sỹ","Tuấn Tài","Tuấn Thành","Tuấn Trung","Tuấn Tú","Tuấn Việt","Tùng Anh","Tùng Châu","Tùng Lâm","Tùng Linh","Tùng Minh","Tùng Quang","Tường Anh","Tường Lâm","Tường Lân","Tường Lĩnh","Tường Minh","Tường Nguyên","Tường Phát","Tường Vinh","Tuyền Lâm","Uy Phong","Uy Vũ","Vạn Hạnh","Vạn Lý","Văn Minh","Vân Sơn","Vạn Thắng","Vạn Thông","Văn Tuyển","Viễn Cảnh","Viễn Ðông","Viễn Phương","Viễn Thông","Việt An","Việt Anh","Việt Chính","Việt Cương","Việt Cường","Việt Dũng","Việt Dương","Việt Duy","Việt Hải","Việt Hoàng","Việt Hồng","Việt Hùng","Việt Huy","Việt Khải","Việt Khang","Việt Khoa","Việt Khôi","Việt Long","Việt Ngọc","Viết Nhân","Việt Nhân","Việt Phong","Việt Phương","Việt Quốc","Việt Quyết","Viết Sơn","Việt Sơn","Viết Tân","Việt Thái","Việt Thắng","Việt Thanh","Việt Thông","Việt Thương","Việt Tiến","Việt Võ","Vĩnh Ân","Vinh Diệu","Vĩnh Hải","Vĩnh Hưng","Vĩnh Long","Vĩnh Luân","Vinh Quốc","Vĩnh Thọ","Vĩnh Thụy","Vĩnh Toàn","Vũ Anh","Vũ Minh","Vương Gia","Vương Triều","Vương Triệu","Vương Việt","Xuân An","Xuân Bình","Xuân Cao","Xuân Cung","Xuân Hàm","Xuân Hãn","Xuân Hiếu","Xuân Hòa","Xuân Huy","Xuân Khoa","Xuân Kiên","Xuân Lạc","Xuân Lộc","Xuân Minh","Xuân Nam","Xuân Ninh","Xuân Phúc","Xuân Quân","Xuân Quý","Xuân Sơn","Xuân Thái","Xuân Thiện","Xuân Thuyết","Xuân Trung","Xuân Trường","Xuân Tường","Xuân Vũ","Yên Bằng","Yên Bình","Yên Sơn"],TBn={exports:{}};(function(t){t.exports=["Phạm","Nguyễn","Trần","Lê","Lý","Hoàng","Phan","Vũ","Tăng","Đặng","Bùi","Đỗ","Hồ","Ngô","Dương","Đào","Đoàn","Vương","Trịnh","Đinh","Lâm","Phùng","Mai","Tô","Trương","Hà"]})(TBn);var hqa=TBn.exports;const fqa=wBn,pqa=_Bn;var mqa=fqa.concat(pqa),CBn={exports:{}};(function(t){t.exports=["#{male_first_name} #{last_name}","#{female_first_name} #{last_name}","#{first_name} #{last_name}"]})(CBn);var gqa=CBn.exports;(function(t){var e={};t.exports=e,e.female_first_name=wBn,e.male_first_name=_Bn,e.last_name=hqa,e.first_name=mqa,e.name=gqa})(SBn);var vqa=SBn.exports,kBn={exports:{}},RBn={exports:{}};(function(t){t.exports=["Công ty","Cty TNHH","Cty","Cửa hàng","Trung tâm","Chi nhánh"]})(RBn);var Aqa=RBn.exports,MBn={exports:{}};(function(t){t.exports=["#{prefix} #{Name.last_name}"]})(MBn);var yqa=MBn.exports;(function(t){var e={};t.exports=e,e.prefix=Aqa,e.name=yqa})(kBn);var bqa=kBn.exports,NBn={exports:{}},IBn={exports:{}};(function(t){t.exports=["đã","đang","ừ","ờ","á","không","biết","gì","hết","đâu","nha","thế","thì","là","đánh","đá","đập","phá","viết","vẽ","tô","thuê","mướn","mượn","mua","một","hai","ba","bốn","năm","sáu","bảy","tám","chín","mười","thôi","việc","nghỉ","làm","nhà","cửa","xe","đạp","ác","độc","khoảng","khoan","thuyền","tàu","bè","lầu","xanh","đỏ","tím","vàng","kim","chỉ","khâu","may","vá","em","anh","yêu","thương","thích","con","cái","bàn","ghế","tủ","quần","áo","nón","dép","giày","lỗi","được","ghét","giết","chết","hết","tôi","bạn","tui","trời","trăng","mây","gió","máy","hàng","hóa","leo","núi","bơi","biển","chìm","xuồng","nước","ngọt","ruộng","đồng","quê","hương"]})(IBn);var xqa=IBn.exports;(function(t){var e={};t.exports=e,e.words=xqa})(NBn);var Eqa=NBn.exports,PBn={exports:{}},OBn={exports:{}};(function(t){t.exports={wide:["Tháng Giêng","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"],wide_context:["Tháng Giêng","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"],abbr:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],abbr_context:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"]}})(OBn);var Sqa=OBn.exports,LBn={exports:{}};(function(t){t.exports={wide:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"],wide_context:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"],abbr:["CN","T2","T3","T4","T5","T6","T7"],abbr_context:["C.Nhật","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]}})(LBn);var wqa=LBn.exports;(function(t){var e={};t.exports=e,e.month=Sqa,e.weekday=wqa})(PBn);var _qa=PBn.exports;(function(t){var e={};t.exports=e,e.title="Vietnamese",e.address=aqa,e.internet=sqa,e.phone_number=cqa,e.cell_phone=dqa,e.name=vqa,e.company=bqa,e.lorem=Eqa,e.date=_qa})(uBn);var Tqa=uBn.exports,BBn={exports:{}},DBn={exports:{}},$Bn={exports:{}};(function(t){t.exports=["长","上","南","西","北","诸","宁","珠","武","衡","成","福","厦","贵","吉","海","太","济","安","吉","包"]})($Bn);var Cqa=$Bn.exports,FBn={exports:{}};(function(t){t.exports=["沙市","京市","宁市","安市","乡县","海市","码市","汉市","阳市","都市","州市","门市","阳市","口市","原市","南市","徽市","林市","头市"]})(FBn);var kqa=FBn.exports,jBn={exports:{}};(function(t){t.exports=["#####","####","###","##","#"]})(jBn);var Rqa=jBn.exports,HBn={exports:{}};(function(t){t.exports=["巷","街","路","桥","侬","旁","中心","栋"]})(HBn);var Mqa=HBn.exports,UBn={exports:{}};(function(t){t.exports=["######"]})(UBn);var Nqa=UBn.exports,zBn={exports:{}};(function(t){t.exports=["北京市","上海市","天津市","重庆市","黑龙江省","吉林省","辽宁省","内蒙古","河北省","新疆","甘肃省","青海省","陕西省","宁夏","河南省","山东省","山西省","安徽省","湖北省","湖南省","江苏省","四川省","贵州省","云南省","广西省","西藏","浙江省","江西省","广东省","福建省","台湾省","海南省","香港","澳门"]})(zBn);var Iqa=zBn.exports,GBn={exports:{}};(function(t){t.exports=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","黔","滇","桂","藏","浙","赣","粤","闽","台","琼","港","澳"]})(GBn);var Pqa=GBn.exports,VBn={exports:{}};(function(t){t.exports=["#{city_prefix}#{city_suffix}"]})(VBn);var Oqa=VBn.exports,KBn={exports:{}};(function(t){t.exports=["#{Name.last_name}#{street_suffix}"]})(KBn);var Lqa=KBn.exports,WBn={exports:{}};(function(t){t.exports=["#{street_name}#{building_number}号"]})(WBn);var Bqa=WBn.exports,QBn={exports:{}};(function(t){t.exports=["中国"]})(QBn);var Dqa=QBn.exports;(function(t){var e={};t.exports=e,e.city_prefix=Cqa,e.city_suffix=kqa,e.building_number=Rqa,e.street_suffix=Mqa,e.postcode=Nqa,e.state=Iqa,e.state_abbr=Pqa,e.city=Oqa,e.street_name=Lqa,e.street_address=Bqa,e.default_country=Dqa})(DBn);var $qa=DBn.exports,qBn={exports:{}},YBn={exports:{}};(function(t){t.exports=["绍齐","博文","梓晨","胤祥","瑞霖","明哲","天翊","凯瑞","健雄","耀杰","潇然","子涵","越彬","钰轩","智辉","致远","俊驰","雨泽","烨磊","晟睿","文昊","修洁","黎昕","远航","旭尧","鸿涛","伟祺","荣轩","越泽","浩宇","瑾瑜","皓轩","擎苍","擎宇","志泽","子轩","睿渊","弘文","哲瀚","雨泽","楷瑞","建辉","晋鹏","天磊","绍辉","泽洋","鑫磊","鹏煊","昊强","伟宸","博超","君浩","子骞","鹏涛","炎彬","鹤轩","越彬","风华","靖琪","明辉","伟诚","明轩","健柏","修杰","志泽","弘文","峻熙","嘉懿","煜城","懿轩","烨伟","苑博","伟泽","熠彤","鸿煊","博涛","烨霖","烨华","煜祺","智宸","正豪","昊然","明杰","立诚","立轩","立辉","峻熙","弘文","熠彤","鸿煊","烨霖","哲瀚","鑫鹏","昊天","思聪","展鹏","笑愚","志强","炫明","雪松","思源","智渊","思淼","晓啸","天宇","浩然","文轩","鹭洋","振家","乐驹","晓博","文博","昊焱","立果","金鑫","锦程","嘉熙","鹏飞","子默","思远","浩轩","语堂","聪健","明","文","果","思","鹏","驰","涛","琪","浩","航","彬"]})(YBn);var Fqa=YBn.exports,JBn={exports:{}};(function(t){t.exports=["王","李","张","刘","陈","杨","黄","吴","赵","周","徐","孙","马","朱","胡","林","郭","何","高","罗","郑","梁","谢","宋","唐","许","邓","冯","韩","曹","曾","彭","萧","蔡","潘","田","董","袁","于","余","叶","蒋","杜","苏","魏","程","吕","丁","沈","任","姚","卢","傅","钟","姜","崔","谭","廖","范","汪","陆","金","石","戴","贾","韦","夏","邱","方","侯","邹","熊","孟","秦","白","江","阎","薛","尹","段","雷","黎","史","龙","陶","贺","顾","毛","郝","龚","邵","万","钱","严","赖","覃","洪","武","莫","孔"]})(JBn);var jqa=JBn.exports,ZBn={exports:{}};(function(t){t.exports=["#{first_name}#{last_name}"]})(ZBn);var Hqa=ZBn.exports;(function(t){var e={};t.exports=e,e.first_name=Fqa,e.last_name=jqa,e.name=Hqa})(qBn);var Uqa=qBn.exports,XBn={exports:{}},eDn={exports:{}};(function(t){t.exports=["0##-########","0###-########","1##########"]})(eDn);var zqa=eDn.exports;(function(t){var e={};t.exports=e,e.formats=zqa})(XBn);var Gqa=XBn.exports;(function(t){var e={};t.exports=e,e.title="Chinese",e.address=$qa,e.name=Uqa,e.phone_number=Gqa})(BBn);var Vqa=BBn.exports,tDn={exports:{}},nDn={exports:{}},rDn={exports:{}};(function(t){t.exports=["臺北","新北","桃園","臺中","臺南","高雄","基隆","新竹","嘉義","苗栗","彰化","南投","雲林","屏東","宜蘭","花蓮","臺東","澎湖","金門","連江"]})(rDn);var Kqa=rDn.exports,iDn={exports:{}};(function(t){t.exports=["縣","市"]})(iDn);var Wqa=iDn.exports,aDn={exports:{}};(function(t){t.exports=["####","###","##","#"]})(aDn);var Qqa=aDn.exports,oDn={exports:{}};(function(t){t.exports=["街","路","北路","南路","東路","西路"]})(oDn);var qqa=oDn.exports,sDn={exports:{}};(function(t){t.exports=["######"]})(sDn);var Yqa=sDn.exports,lDn={exports:{}};(function(t){t.exports=["福建省","台灣省"]})(lDn);var Jqa=lDn.exports,cDn={exports:{}};(function(t){t.exports=["北","新北","桃","中","南","高","基","竹市","嘉市","竹縣","苗","彰","投","雲","嘉縣","宜","花","東","澎","金","馬"]})(cDn);var Zqa=cDn.exports,uDn={exports:{}};(function(t){t.exports=["#{city_prefix}#{city_suffix}"]})(uDn);var Xqa=uDn.exports,dDn={exports:{}};(function(t){t.exports=["#{Name.last_name}#{street_suffix}"]})(dDn);var eYa=dDn.exports,hDn={exports:{}};(function(t){t.exports=["#{street_name}#{building_number}號"]})(hDn);var tYa=hDn.exports,fDn={exports:{}};(function(t){t.exports=["Taiwan (R.O.C.)"]})(fDn);var nYa=fDn.exports;(function(t){var e={};t.exports=e,e.city_prefix=Kqa,e.city_suffix=Wqa,e.building_number=Qqa,e.street_suffix=qqa,e.postcode=Yqa,e.state=Jqa,e.state_abbr=Zqa,e.city=Xqa,e.street_name=eYa,e.street_address=tYa,e.default_country=nYa})(nDn);var rYa=nDn.exports,pDn={exports:{}},mDn={exports:{}};(function(t){t.exports=["紹齊","博文","梓晨","胤祥","瑞霖","明哲","天翊","凱瑞","健雄","耀傑","瀟然","子涵","越彬","鈺軒","智輝","致遠","俊馳","雨澤","燁磊","晟睿","文昊","修潔","黎昕","遠航","旭堯","鴻濤","偉祺","榮軒","越澤","浩宇","瑾瑜","皓軒","擎蒼","擎宇","志澤","子軒","睿淵","弘文","哲瀚","雨澤","楷瑞","建輝","晉鵬","天磊","紹輝","澤洋","鑫磊","鵬煊","昊強","偉宸","博超","君浩","子騫","鵬濤","炎彬","鶴軒","越彬","風華","靖琪","明輝","偉誠","明軒","健柏","修傑","志澤","弘文","峻熙","嘉懿","煜城","懿軒","燁偉","苑博","偉澤","熠彤","鴻煊","博濤","燁霖","燁華","煜祺","智宸","正豪","昊然","明杰","立誠","立軒","立輝","峻熙","弘文","熠彤","鴻煊","燁霖","哲瀚","鑫鵬","昊天","思聰","展鵬","笑愚","志強","炫明","雪松","思源","智淵","思淼","曉嘯","天宇","浩然","文軒","鷺洋","振家","樂駒","曉博","文博","昊焱","立果","金鑫","錦程","嘉熙","鵬飛","子默","思遠","浩軒","語堂","聰健"]})(mDn);var iYa=mDn.exports,gDn={exports:{}};(function(t){t.exports=["王","李","張","劉","陳","楊","黃","吳","趙","週","徐","孫","馬","朱","胡","林","郭","何","高","羅","鄭","梁","謝","宋","唐","許","鄧","馮","韓","曹","曾","彭","蕭","蔡","潘","田","董","袁","於","餘","葉","蔣","杜","蘇","魏","程","呂","丁","沈","任","姚","盧","傅","鐘","姜","崔","譚","廖","範","汪","陸","金","石","戴","賈","韋","夏","邱","方","侯","鄒","熊","孟","秦","白","江","閻","薛","尹","段","雷","黎","史","龍","陶","賀","顧","毛","郝","龔","邵","萬","錢","嚴","賴","覃","洪","武","莫","孔"]})(gDn);var aYa=gDn.exports,vDn={exports:{}};(function(t){t.exports=["#{first_name}#{last_name}"]})(vDn);var oYa=vDn.exports;(function(t){var e={};t.exports=e,e.first_name=iYa,e.last_name=aYa,e.name=oYa})(pDn);var sYa=pDn.exports,ADn={exports:{}},yDn={exports:{}};(function(t){t.exports=["0#-#######","02-########","09##-######"]})(yDn);var lYa=yDn.exports;(function(t){var e={};t.exports=e,e.formats=lYa})(ADn);var cYa=ADn.exports;(function(t){var e={};t.exports=e,e.title="Chinese (Taiwan)",e.address=rYa,e.name=sYa,e.phone_number=cYa})(tDn);var uYa=tDn.exports;(function(t){t.az=FMa,t.ar=ENa,t.cz=dIa,t.de=YIa,t.de_AT=C3a,t.de_CH=Q3a,t.en=pOa,t.en_AU=NOa,t.en_AU_ocker=e4a,t.en_BORK=r4a,t.en_CA=p4a,t.en_GB=T4a,t.en_IE=B4a,t.en_IND=Z4a,t.en_US=sLa,t.en_ZA=MLa,t.es=ABa,t.es_MX=fDa,t.he=o6a,t.fa=p8a,t.fi=x8a,t.fr=l9a,t.fr_CA=y9a,t.fr_CH=N9a,t.ge=c$a,t.hy=j$a,t.hr=m7a,t.id_ID=K7a,t.it=MFa,t.ja=JFa,t.ko=Sja,t.nb_NO=eHa,t.ne=gHa,t.nl=oUa,t.nl_BE=PUa,t.pl=xza,t.pt_BR=rGa,t.pt_PT=HGa,t.ro=AVa,t.ru=pKa,t.sk=eWa,t.sv=GWa,t.tr=gQa,t.uk=XQa,t.vi=Tqa,t.zh_CN=Vqa,t.zh_TW=uYa})(hgn);(function(t){var e=tMa,n=new e({locales:hgn});t.exports=n})(ugn);var dYa=ugn.exports;const hYa=Li(dYa),fYa=(t=100)=>{const e=[];return[...Array(t).keys()].forEach((r,a)=>{const o={item:`item ${a+1}`,value:hYa.commerce.product()};e.push(o)}),e},bDn="ProgressBar";fYa(100);const xDn="/assets/tableNodata-807e046f.svg",EDn="/assets/tableNodata-4a8097c4.webp",y9=t=>{const[e,n]=Y.useState(!1),{textToCopy:r}=t,a=()=>{gN(r).then(()=>{n(!0),setTimeout(()=>{n(!1)},2e3)})};return E.jsx(_n,{tooltip:e?q.COPIED:q.COPY,onClick:a,children:e?E.jsx(Qfn,{}):E.jsx(zG,{})})},pYa=ERa(()=>({list:{overflow:"hidden auto !important"}}));function mYa(t){const{progressBarData:e,column:n,value:r}=t,a=Ft.find(e,{dataKey:n.dataKey}),o=r/a.value*100;return E.jsx(wYt,{variant:"determinate",color:o>0?"success":"inherit",value:o})}function gYa({isAction:t,actionComponent:e,index:n,style:r,data:{columns:a,items:o},rowSize:s,resizeColumns:l,rowRender:c=[],setColumnSelect:u,tableRowClickHandler:d,activeRow:h,progressBarData:f,tableColumnWidth:p,isCopyColumnValue:m}){const[g,v]=Y.useState(!1),[A,y]=Y.useState(""),S=o[n],x=(C,R)=>{var I;const k=Ft.isArray(S)?S[R]:S[C.dataKey];if(k===!0)return"true";if(k===!1)return"false";if(k==null)return"-";const P=C.positive?"postiveValue":"",N=C.negative?"negativeValue":"",L=k>0?P:k<0&&N||"";return C.positive||C.negative||C!=null&&C.format||C!=null&&C.type?E.jsxs("span",{className:`${L} progressBar`,children:[(C==null?void 0:C.type)===bDn&&E.jsx(mYa,{column:C,value:k,progressBarData:f}),C!=null&&C.format?(I=Number.parseFloat(k))==null?void 0:I.toFixed((C==null?void 0:C.format)||""):k]}):k},w=C=>{var I,b;C.preventDefault();const R=C.target,k=(R==null?void 0:R.getAttribute("data-value"))||"";y(k),gN(k).then(()=>{v(!0),setTimeout(()=>{v(!1)},2e3)});let P;((I=R==null?void 0:R.firstChild)==null?void 0:I.nodeName)==="SPAN"?P=(b=R==null?void 0:R.parentElement)==null?void 0:b.innerHTML:P=R.innerHTML;const N=C.clientY,L=C.clientX;if(P&&(R==null?void 0:R.nodeName)==="DIV"){u({cellCopyValue:P,contextTop:N,contextLeft:L});const T=document.getElementById("cell-value-context-menu"),M=document.createEvent("MouseEvents");M.initEvent("mousedown",!0,!0),T==null||T.dispatchEvent(M)}},_=()=>{d&&d(S)};return E.jsxs(Mx,{component:"div",style:r,onClick:_,className:`${h&&S[h==null?void 0:h.key]===(h==null?void 0:h.value)&&"active"}`,children:[a.map((C,R)=>{var N,L,I,b;const k=(N=Ft.filter(c,{dataKey:C.dataKey})[0])==null?void 0:N.func;let P="";return C!=null&&C.align?P=`${C==null?void 0:C.align}`:C.numeric?P="right":P="left",E.jsxs(mv,{component:"div",variant:"body",align:P,style:{height:s,width:l[R]||C.width||p[R]||200,display:C!=null&&C.hide?"none":"block"},scope:"col",onContextMenu:w,className:m?"copyColumnValue":"",children:[k?k(S,C,n):x(C,R),m&&!Ft.isEmpty((L=x(C,R))==null?void 0:L.toString())&&E.jsx(_n,{onClick:w,"data-value":x(C,R),className:"copyCellValueBtn",tooltip:g&&A===((I=x(C,R))==null?void 0:I.toString())?q.COPIED:q.COPY,children:g&&A===((b=x(C,R))==null?void 0:b.toString())?E.jsx(Qfn,{}):E.jsx(zG,{})})]},`${R+R}`)}),t&&E.jsx(mv,{component:"div",variant:"body",className:"actionColumn",style:{height:s},children:E.jsx("div",{className:"tableAction",children:e&&e(S)})},S.id)]},n)}const vYa=gCa((t,e,n)=>({columns:e,classes:t,items:n}));function tf(t){var Be;const{data:e,columns:n,isAction:r,actionComponent:a,loading:o,rowSize:s,actionColumnName:l,rowRender:c,bodyHeight:u,theme:d,strippedTable:h=!1,onItemsSort:f,sortBy:p,sortOrder:m,tableRowClickHandler:g,activeRow:v,repeatItem:A,isChainlinkJob:y,tableColumnWidth:S=[],isSendDataList:x,isQueryBot:w,isCopyColumnValue:_,nonSortableColumns:C,dragEnabled:R=!0,customNoDataFoundText:k}=t,[P,N]=ke.useState("ASC"),[L,I]=ke.useState({cellCopyValue:"",cellModalVisible:!1,contextTop:0,contextLeft:0}),[b,T]=ke.useState({}),{cellCopyValue:M,cellModalVisible:D,contextTop:B,contextLeft:j}=L,H=k1a(M),[U,$]=ke.useState(""),[z,Z]=ke.useState(""),K=pYa(),Q=vYa(K,n,e),{chartBackground:ee,useImgColors:X}=_p(),te=xo(),J=X&&vN(((Be=te==null?void 0:te.location)==null?void 0:Be.pathname)||"")&&!w,ie=(()=>{const ze=(ye,me)=>{let le=0;return Ft.forEach(ye,pe=>{le+=pe[me]}),le},je=Ft.map(n,(ye,me)=>{if(ye.type===bDn)return{dataKey:ye.dataKey,value:ze(e,me)}});return Ft.compact(je)})(),he=(ze,je,ye)=>{f?f(je,ye):(N(U===je&&P==="ASC"?"DESC":"ASC"),$(je))};function de(ze,je){if(!(ze!=null&&ze.length))return[];const ye=(ze==null?void 0:ze.map((me,le)=>[me,le]))||[];return ye==null||ye.sort((me,le)=>{const pe=je(me[0],le[0]);return pe!==0?pe:me[1]-le[1]}),(ye==null?void 0:ye.map(me=>me[0]))||[]}function ce(ze,je,ye){const me=Ft.isArray(ze)?Ft.findIndex(n,{dataKey:ye}):ye;return je[me]<ze[me]?-1:je[me]>ze[me]?1:0}function Ee(ze,je){return ze==="DESC"?(ye,me)=>ce(ye,me,je):(ye,me)=>-ce(ye,me,je)}const Me=()=>{const ze=de(Q.items,Ee(m||P,p||U));return Q.items=ze,O0a(Q==null?void 0:Q.items),Q};return Y.useEffect(()=>{H&&Z(H)},[M]),E.jsxs(E.Fragment,{children:[E.jsx(wRa,{theme:d,strippedTable:h,rowSize:s,$useImgColors:J,className:h?"strippedTable":"defaultTable nodrag",$chartBackground:ee,children:E.jsxs(Mte,{component:"div",children:[E.jsx(dEe,{component:"div",children:E.jsx(SRa,{dragEnabled:R,classes:K,columns:n,showContentPopularity:!0,isAction:!y&&r,actionColumnName:l,onRequestSort:he,order:m||P,orderBy:p||U,resizeColumns:b,setResizeColumns:T,tableColumnWidth:S,nonSortableColumns:C})}),E.jsxs(uEe,{component:"div",style:{height:u||"100%"},children:[o&&E.jsx(Jfn,{skeletonHeight:s,repeatItem:Number(u||A)}),!o&&(e==null?void 0:e.length)===0?y?E.jsx("div",{style:{textAlign:"center",marginTop:"20px"},children:q.NO_QUERY_FOUND}):E.jsx(cgn,{className:"emptyBlock",style:{height:u||"100%"},children:E.jsxs("div",{className:"emptyContent",children:[E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:EDn}),E.jsx("img",{src:xDn,alt:"error-icon"})]}),E.jsxs("div",{className:"text",children:[E.jsx(cg,{className:"infoIcon"}),k||q.NO_DATA_FOUND]})]})}):!o&&E.jsx("div",{style:{height:u||"100%"},children:E.jsx(Kmn,{children:ze=>E.jsx(Wmn,{className:`tableBody ${K.list}`,height:ze.height,width:ze.width,itemCount:(e==null?void 0:e.length)||0,itemSize:s,itemKey:e==null?void 0:e.createdAt,itemData:Me(),children:je=>gYa({...je,isAction:r,actionComponent:a,rowSize:s,rowRender:c,resizeColumns:b,setColumnSelect:I,columnSelectObj:L,tableRowClickHandler:g,activeRow:v,progressBarData:ie,tableColumnWidth:S,isSendDataList:x,isCopyColumnValue:_})},e==null?void 0:e.createdAt)})})]})]})}),E.jsx(lE,{open:!!(B&&j),onClose:()=>{I({contextTop:0,contextLeft:0})},anchorReference:"anchorPosition",anchorPosition:(B&&j)!==0?{top:B,left:j}:void 0,children:E.jsx(Dn,{onClick:()=>{I({...L,cellModalVisible:!0,contextTop:0,contextLeft:0})},sx:{fontSize:12},children:q.VIEW_EXPANDED_VALUE})}),E.jsx(lf,{title:"View",visible:D,maxWidth:"sm",onClose:()=>{I({cellModalVisible:!1,cellCopyValue:null,contextTop:0,contextLeft:0})},children:E.jsxs(_Ra,{children:[E.jsx("div",{className:"copyButton",children:E.jsx(y9,{textToCopy:z})}),E.jsx("div",{className:"contentText",dangerouslySetInnerHTML:{__html:M}})]})})]})}function AYa({columns:t,rowCount:e,isRunning:n,queryError:r,data:a,tableHeight:o,tableFields:s=[],isPreview:l,isExplore:c=!1,isQueryBot:u=!1,isDashboardPreview:d=!1,savedQueryId:h}){const f=xo(),p=X_e(t,a),m=()=>{const v=[];if(a!=null&&a.length&&(t!=null&&t.length)){const A=t==null?void 0:t.map(y=>y==null?void 0:y.fieldName);v==null||v.push(A),v.push(...a)}};if(Y.useEffect(()=>{Ft.isEmpty(a)||m()},[t,a]),r)return E.jsxs(E.Fragment,{children:[E.jsx(Vc,{title:r,children:r}),l&&!c&&E.jsx("p",{children:q.CLICK_CONFIGURE})]});if(Ft.isEmpty(a)&&!n)return E.jsxs(E.Fragment,{children:[E.jsx(Vc,{title:q.CHART_NO_DATA_TEXT,isDashboardPreview:d,handleDataEmptyClick:()=>h&&(f==null?void 0:f.push(tr.queriesPath(h))),emptyDataMessage:q.CHART_NO_DATA_SUBTEXT,children:q.CHART_NO_DATA_TEXT}),l&&!c&&E.jsx("p",{children:q.CLICK_CONFIGURE})]});if(e===void 0)return null;const g=()=>t==null?void 0:t.map((v,A)=>{const y=s[A];return{label:(y==null?void 0:y.title)||v.fieldName,dataKey:v.fieldName,fieldName:(y==null?void 0:y.title)||v.fieldName,hide:y==null?void 0:y.hideColumn,align:y==null?void 0:y.align,positive:y==null?void 0:y.positive,negative:y==null?void 0:y.negative,type:y==null?void 0:y.type,format:y==null?void 0:y.format}});return E.jsx(tf,{data:a,columns:g(),isAction:!1,loading:!!n,rowSize:44,bodyHeight:o,strippedTable:!0,tableColumnWidth:p,isQueryBot:u,isCopyColumnValue:!0})}const TP=ke.memo(AYa);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var dKe=function(t,e){return dKe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},dKe(t,e)};function nn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");dKe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var yYa=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),bYa=function(){function t(){this.browser=new yYa,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),eB=new bYa;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(eB.wxa=!0,eB.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?eB.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(eB.node=!0,eB.svgSupported=!0):xYa(navigator.userAgent,eB);function xYa(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),s&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var l=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const ls=eB;var Kat=12,SDn="sans-serif",CP=Kat+"px "+SDn,EYa=20,SYa=100,wYa="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _Ya(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-EYa)/SYa;e[r]=a}return e}var TYa=_Ya(wYa),Bw={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=Bw.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||CP),t.measureText(n);n=n||"",r=r||CP;var o=/(\d+)px/.exec(r),s=o&&+o[1]||Kat,l=0;if(r.indexOf("mono")>=0)l=s*n.length;else for(var c=0;c<n.length;c++){var u=TYa[n[c]];l+=u==null?s:u*s}return{width:l}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function wDn(t){for(var e in Bw)t[e]&&(Bw[e]=t[e])}var _Dn=Zx(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),TDn=Zx(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),kV=Object.prototype.toString,PTe=Array.prototype,CYa=PTe.forEach,kYa=PTe.filter,Wat=PTe.slice,RYa=PTe.map,uNt=(function(){}).constructor,Cde=uNt?uNt.prototype:null,Qat="__proto__",MYa=2311;function qat(){return MYa++}function OTe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ji(t){if(t==null||typeof t!="object")return t;var e=t,n=kV.call(t);if(n==="[object Array]"){if(!cH(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=ji(t[r])}}else if(TDn[n]){if(!cH(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!_Dn[n]&&!cH(t)&&!X6(t)){e={};for(var s in t)t.hasOwnProperty(s)&&s!==Qat&&(e[s]=ji(t[s]))}return e}function Ra(t,e,n){if(!Ci(e)||!Ci(t))return n?ji(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==Qat){var a=t[r],o=e[r];Ci(o)&&Ci(a)&&!Tn(o)&&!Tn(a)&&!X6(o)&&!X6(a)&&!hKe(o)&&!hKe(a)&&!cH(o)&&!cH(a)?Ra(a,o,n):(n||!(r in t))&&(t[r]=ji(e[r]))}return t}function LTe(t,e){for(var n=t[0],r=1,a=t.length;r<a;r++)n=Ra(n,t[r],e);return n}function An(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Qat&&(t[n]=e[n]);return t}function bi(t,e,n){for(var r=bo(e),a=0;a<r.length;a++){var o=r[a];(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var NYa=Bw.createCanvas;function za(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function Yat(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function Vd(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var o=r[a];o!=="constructor"&&(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}else bi(t,e,n)}function ug(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function Ie(t,e,n){if(t&&e)if(t.forEach&&t.forEach===CYa)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function Rn(t,e,n){if(!t)return[];if(!e)return BTe(t);if(t.map&&t.map===RYa)return t.map(e,n);for(var r=[],a=0,o=t.length;a<o;a++)r.push(e.call(n,t[a],a,t));return r}function Zx(t,e,n,r){if(t&&e){for(var a=0,o=t.length;a<o;a++)n=e.call(r,n,t[a],a,t);return n}}function ll(t,e,n){if(!t)return[];if(!e)return BTe(t);if(t.filter&&t.filter===kYa)return t.filter(e,n);for(var r=[],a=0,o=t.length;a<o;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function CDn(t,e,n){if(t&&e){for(var r=0,a=t.length;r<a;r++)if(e.call(n,t[r],r,t))return t[r]}}function bo(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function IYa(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(Wat.call(arguments)))}}var Cr=Cde&&ai(Cde.bind)?Cde.call.bind(Cde.bind):IYa;function fa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Wat.call(arguments)))}}function Tn(t){return Array.isArray?Array.isArray(t):kV.call(t)==="[object Array]"}function ai(t){return typeof t=="function"}function vr(t){return typeof t=="string"}function T1e(t){return kV.call(t)==="[object String]"}function cs(t){return typeof t=="number"}function Ci(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function hKe(t){return!!_Dn[kV.call(t)]}function W0(t){return!!TDn[kV.call(t)]}function X6(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Joe(t){return t.colorStops!=null}function kDn(t){return t.image!=null}function RDn(t){return kV.call(t)==="[object RegExp]"}function rz(t){return t!==t}function gp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function pa(t,e){return t??e}function Aw(t,e,n){return t??e??n}function BTe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Wat.apply(t,e)}function DTe(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Tv(t,e){if(!t)throw new Error(e)}function _x(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var MDn="__ec_primitive__";function Xne(t){t[MDn]=!0}function cH(t){return t[MDn]}var PYa=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return bo(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),NDn=typeof Map=="function";function OYa(){return NDn?new Map:new PYa}var IDn=function(){function t(e){var n=Tn(e);this.data=OYa();var r=this;e instanceof t?e.each(a):e&&Ie(e,a);function a(o,s){n?r.set(o,s):r.set(s,o)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return NDn?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Ur(t){return new IDn(t)}function ere(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function Zoe(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&An(n,e),n}function Jat(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Dr(t,e){return t.hasOwnProperty(e)}function jd(){}var hee=180/Math.PI;const LYa=Object.freeze(Object.defineProperty({__proto__:null,HashMap:IDn,RADIAN_TO_DEGREE:hee,assert:Tv,bind:Cr,clone:ji,concatArray:ere,createCanvas:NYa,createHashMap:Ur,createObject:Zoe,curry:fa,defaults:bi,disableUserSelect:Jat,each:Ie,eqNaN:rz,extend:An,filter:ll,find:CDn,guid:qat,hasOwn:Dr,indexOf:za,inherits:Yat,isArray:Tn,isArrayLike:ug,isBuiltInObject:hKe,isDom:X6,isFunction:ai,isGradientObject:Joe,isImagePatternObject:kDn,isNumber:cs,isObject:Ci,isPrimitive:cH,isRegExp:RDn,isString:vr,isStringSafe:T1e,isTypedArray:W0,keys:bo,logError:OTe,map:Rn,merge:Ra,mergeAll:LTe,mixin:Vd,noop:jd,normalizeCssArray:DTe,reduce:Zx,retrieve:gp,retrieve2:pa,retrieve3:Aw,setAsPrimitive:Xne,slice:BTe,trim:_x},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var fKe=function(t,e){return fKe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},fKe(t,e)};function Qc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");fKe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function yO(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Jg(t,e){return t[0]=e[0],t[1]=e[1],t}function k2(t){return[t[0],t[1]]}function PDn(t,e,n){return t[0]=e,t[1]=n,t}function pKe(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function C1e(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Y3(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function tre(t){return Math.sqrt(Zat(t))}var BYa=tre;function Zat(t){return t[0]*t[0]+t[1]*t[1]}var DYa=Zat;function $Ya(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function FYa(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function jYa(t,e){return t[0]*e[0]+t[1]*e[1]}function fee(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b9(t,e){var n=tre(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function k1e(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var zR=k1e;function ODn(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var M5=ODn;function HYa(t,e){return t[0]=-e[0],t[1]=-e[1],t}function pee(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function om(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function GR(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function VR(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const UYa=Object.freeze(Object.defineProperty({__proto__:null,add:pKe,applyTransform:om,clone:k2,copy:Jg,create:yO,dist:zR,distSquare:M5,distance:k1e,distanceSquare:ODn,div:FYa,dot:jYa,len:tre,lenSquare:Zat,length:BYa,lengthSquare:DYa,lerp:pee,max:VR,min:GR,mul:$Ya,negate:HYa,normalize:b9,scale:fee,scaleAndAdd:C1e,set:PDn,sub:Y3},Symbol.toStringTag,{value:"Module"}));var q$=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),zYa=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new q$(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,o=r-this._x,s=a-this._y;this._x=r,this._y=a,n.drift(o,s,e),this.handler.dispatchToElement(new q$(n,e),"drag",e.event);var l=this.handler.findHover(r,a,n).target,c=this._dropTarget;this._dropTarget=l,n!==l&&(c&&l!==c&&this.handler.dispatchToElement(new q$(c,e),"dragleave",e.event),l&&l!==c&&this.handler.dispatchToElement(new q$(l,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new q$(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new q$(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const GYa=zYa;var VYa=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var s=this._$eventProcessor;n!=null&&s&&s.normalizeQuery&&(n=s.normalizeQuery(n)),o[e]||(o[e]=[]);for(var l=0;l<o[e].length;l++)if(o[e][l].h===r)return this;var c={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},u=o[e].length-1,d=o[e][u];return d&&d.callAtLast?o[e].splice(u,0,c):o[e].push(c),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],o=0,s=r[e].length;o<s;o++)r[e][o].h!==n&&a.push(r[e][o]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],o=this._$eventProcessor;if(a)for(var s=n.length,l=a.length,c=0;c<l;c++){var u=a[c];if(!(o&&o.filter&&u.query!=null&&!o.filter(e,u.query)))switch(s){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],o=this._$eventProcessor;if(a)for(var s=n.length,l=n[s-1],c=a.length,u=0;u<c;u++){var d=a[u];if(!(o&&o.filter&&d.query!=null&&!o.filter(e,d.query)))switch(s){case 0:d.h.call(l);break;case 1:d.h.call(l,n[0]);break;case 2:d.h.call(l,n[0],n[1]);break;default:d.h.apply(l,n.slice(1,s-1));break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},t}();const SE=VYa;var KYa=Math.log(2);function mKe(t,e,n,r,a,o){var s=r+"-"+a,l=t.length;if(o.hasOwnProperty(s))return o[s];if(e===1){var c=Math.round(Math.log((1<<l)-1&~a)/KYa);return t[n][c]}for(var u=r|1<<n,d=n+1;r&1<<d;)d++;for(var h=0,f=0,p=0;f<l;f++){var m=1<<f;m&a||(h+=(p%2?-1:1)*t[n][f]*mKe(t,e-1,d,u,a|m,o),p++)}return o[s]=h,h}function dNt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=mKe(n,8,0,0,0,r);if(a!==0){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)o[l]==null&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*mKe(n,7,s===0?1:0,1<<s,1<<l,r)/a*e[s];return function(c,u,d){var h=u*o[6]+d*o[7]+1;c[0]=(u*o[0]+d*o[1]+o[2])/h,c[1]=(u*o[3]+d*o[4]+o[5])/h}}}var hNt="___zrEVENTSAVED",_De=[];function WYa(t,e,n,r,a){return gKe(_De,e,r,a,!0)&&gKe(t,n,_De[0],_De[1])}function gKe(t,e,n,r,a){if(e.getBoundingClientRect&&ls.domSupported&&!LDn(e)){var o=e[hNt]||(e[hNt]={}),s=QYa(e,o),l=qYa(s,o,a);if(l)return l(t,n,r),!0}return!1}function QYa(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],o=0;o<4;o++){var s=document.createElement("div"),l=s.style,c=o%2,u=(o>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",a[u]+":0",r[1-c]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(s),n.push(s)}return n}function qYa(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],o=e.srcCoords,s=[],l=[],c=!0,u=0;u<4;u++){var d=t[u].getBoundingClientRect(),h=2*u,f=d.left,p=d.top;s.push(f,p),c=c&&o&&f===o[h]&&p===o[h+1],l.push(t[u].offsetLeft,t[u].offsetTop)}return c&&a?a:(e.srcCoords=s,e[r]=n?dNt(l,s):dNt(s,l))}function LDn(t){return t.nodeName.toUpperCase()==="CANVAS"}var YYa=/([&<>"'])/g,JYa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function w0(t){return t==null?"":(t+"").replace(YYa,function(e,n){return JYa[n]})}var ZYa=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,TDe=[],XYa=ls.browser.firefox&&+ls.browser.version.split(".")[0]<39;function vKe(t,e,n,r){return n=n||{},r?fNt(t,e,n):XYa&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):fNt(t,e,n),n}function fNt(t,e,n){if(ls.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(LDn(t)){var o=t.getBoundingClientRect();n.zrX=r-o.left,n.zrY=a-o.top;return}else if(gKe(TDe,t,r,a)){n.zrX=TDe[0],n.zrY=TDe[1];return}}n.zrX=n.zrY=0}function Xat(t){return t||window.event}function Jb(t,e,n){if(e=Xat(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var s=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];s&&vKe(t,s,e,n)}else{vKe(t,e,e,n);var o=eJa(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var l=e.button;return e.which==null&&l!==void 0&&ZYa.test(e.type)&&(e.which=l&1?1:l&2?3:l&4?2:0),e}function eJa(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*a*o}function AKe(t,e,n,r){t.addEventListener(e,n,r)}function tJa(t,e,n,r){t.removeEventListener(e,n,r)}var MM=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function pNt(t){return t.which===2||t.which===3}var nJa=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var o={points:[],touches:[],target:n,event:e},s=0,l=a.length;s<l;s++){var c=a[s],u=vKe(r,c,{});o.points.push([u.zrX,u.zrY]),o.touches.push(c)}this._track.push(o)}},t.prototype._recognize=function(e){for(var n in CDe)if(CDe.hasOwnProperty(n)){var r=CDe[n](this._track,e);if(r)return r}},t}();function mNt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function rJa(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var CDe={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var o=mNt(r)/mNt(a);!isFinite(o)&&(o=1),e.pinchScale=o;var s=rJa(r);return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function r1(){return[1,0,0,1,0,0]}function Xoe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function $Te(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function R2(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],s=e[1]*n[2]+e[3]*n[3],l=e[0]*n[4]+e[2]*n[5]+e[4],c=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=o,t[3]=s,t[4]=l,t[5]=c,t}function Dw(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function bO(t,e,n,r){r===void 0&&(r=[0,0]);var a=e[0],o=e[2],s=e[4],l=e[1],c=e[3],u=e[5],d=Math.sin(n),h=Math.cos(n);return t[0]=a*h+l*d,t[1]=-a*d+l*h,t[2]=o*h+c*d,t[3]=-o*d+h*c,t[4]=h*(s-r[0])+d*(u-r[1])+r[0],t[5]=h*(u-r[1])-d*(s-r[0])+r[1],t}function FTe(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function x9(t,e){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],c=n*s-o*r;return c?(c=1/c,t[0]=s*c,t[1]=-o*c,t[2]=-r*c,t[3]=n*c,t[4]=(r*l-s*a)*c,t[5]=(o*a-n*l)*c,t):null}function BDn(t){var e=r1();return $Te(e,t),e}const iJa=Object.freeze(Object.defineProperty({__proto__:null,clone:BDn,copy:$Te,create:r1,identity:Xoe,invert:x9,mul:R2,rotate:bO,scale:FTe,translate:Dw},Symbol.toStringTag,{value:"Module"}));var aJa=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var o=1-a;e.x=o*n.x+a*r.x,e.y=o*n.y+a*r.y},t}();const Oa=aJa;var kde=Math.min,Rde=Math.max,M4=new Oa,N4=new Oa,I4=new Oa,P4=new Oa,Rq=new Oa,Mq=new Oa,oJa=function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=kde(e.x,this.x),r=kde(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Rde(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Rde(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,o=r1();return Dw(o,o,[-n.x,-n.y]),FTe(o,o,[r,a]),Dw(o,o,[e.x,e.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,o=r.x+r.width,s=r.y,l=r.y+r.height,c=e.x,u=e.x+e.width,d=e.y,h=e.y+e.height,f=!(o<c||u<a||l<d||h<s);if(n){var p=1/0,m=0,g=Math.abs(o-c),v=Math.abs(u-a),A=Math.abs(l-d),y=Math.abs(h-s),S=Math.min(g,v),x=Math.min(A,y);o<c||u<a?S>m&&(m=S,g<v?Oa.set(Mq,-g,0):Oa.set(Mq,v,0)):S<p&&(p=S,g<v?Oa.set(Rq,g,0):Oa.set(Rq,-v,0)),l<d||h<s?x>m&&(m=x,A<y?Oa.set(Mq,0,-A):Oa.set(Mq,0,y)):S<p&&(p=S,A<y?Oa.set(Rq,0,A):Oa.set(Rq,0,-y))}return n&&Oa.copy(n,f?Rq:Mq),f},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],o=r[3],s=r[4],l=r[5];e.x=n.x*a+s,e.y=n.y*o+l,e.width=n.width*a,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}M4.x=I4.x=n.x,M4.y=P4.y=n.y,N4.x=P4.x=n.x+n.width,N4.y=I4.y=n.y+n.height,M4.transform(r),P4.transform(r),N4.transform(r),I4.transform(r),e.x=kde(M4.x,N4.x,I4.x,P4.x),e.y=kde(M4.y,N4.y,I4.y,P4.y);var c=Rde(M4.x,N4.x,I4.x,P4.x),u=Rde(M4.y,N4.y,I4.y,P4.y);e.width=c-e.x,e.height=u-e.y},t}();const Da=oJa;var DDn="silent";function sJa(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:lJa}}function lJa(){MM(this.event)}var cJa=function(t){Qc(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(SE),Nq=function(){function t(e,n){this.x=e,this.y=n}return t}(),uJa=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],kDe=new Da(0,0,0,0),$Dn=function(t){Qc(e,t);function e(n,r,a,o,s){var l=t.call(this)||this;return l._hovered=new Nq(0,0),l.storage=n,l.painter=r,l.painterRoot=o,l._pointerSize=s,a=a||new cJa,l.proxy=null,l.setHandlerProxy(a),l._draggingMgr=new GYa(l),l}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Ie(uJa,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,o=FDn(this,r,a),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var c=this._hovered=o?new Nq(r,a):this.findHover(r,a),u=c.target,d=this.proxy;d.setCursor&&d.setCursor(u?u.cursor:"default"),l&&u!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),u&&u!==l&&this.dispatchToElement(c,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Nq(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var s="on"+r,l=sJa(r,n,a);o&&(o[s]&&(l.cancelBubble=!!o[s].call(o,l)),o.trigger(r,l),o=o.__hostTarget?o.__hostTarget:o.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(r,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){typeof c[s]=="function"&&c[s].call(c,l),c.trigger&&c.trigger(r,l)}))}},e.prototype.findHover=function(n,r,a){var o=this.storage.getDisplayList(),s=new Nq(n,r);if(gNt(o,s,n,r,a),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,u=c/2,d=new Da(n-u,r-u,c,c),h=o.length-1;h>=0;h--){var f=o[h];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(kDe.copy(f.getBoundingRect()),f.transform&&kDe.applyTransform(f.transform),kDe.intersect(d)&&l.push(f))}if(l.length)for(var p=4,m=Math.PI/12,g=Math.PI*2,v=0;v<u;v+=p)for(var A=0;A<g;A+=m){var y=n+v*Math.cos(A),S=r+v*Math.sin(A);if(gNt(l,s,y,S,a),s.target)return s}}return s},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new nJa);var a=this._gestureMgr;r==="start"&&a.clear();var o=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),o){var s=o.type;n.gestureEvent=s;var l=new Nq;l.target=o.target,this.dispatchToElement(l,s,o.event)}},e}(SE);Ie(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){$Dn.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=FDn(this,n,r),o,s;if((t!=="mouseup"||!a)&&(o=this.findHover(n,r),s=o.target),t==="mousedown")this._downEl=s,this._downPoint=[e.zrX,e.zrY],this._upEl=s;else if(t==="mouseup")this._upEl=s;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||zR(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,t,e)}});function dJa(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var s=r.getClipPath();if(s&&!s.contain(e,n))return!1}r.silent&&(a=!0);var l=r.__hostTarget;r=l||r.parent}return a?DDn:!0}return!1}function gNt(t,e,n,r,a){for(var o=t.length-1;o>=0;o--){var s=t[o],l=void 0;if(s!==a&&!s.ignore&&(l=dJa(s,n,r))&&(!e.topTarget&&(e.topTarget=s),l!==DDn)){e.target=s;break}}}function FDn(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const hJa=$Dn;var jDn=32,Iq=7;function fJa(t){for(var e=0;t>=jDn;)e|=t&1,t>>=1;return t+e}function vNt(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;pJa(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function pJa(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function ANt(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var o=t[r],s=e,l=r,c;s<l;)c=s+l>>>1,a(o,t[c])<0?l=c:s=c+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function RDe(t,e,n,r,a,o){var s=0,l=0,c=1;if(o(t,e[n+a])>0){for(l=r-a;c<l&&o(t,e[n+a+c])>0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=a,c+=a}else{for(l=a+1;c<l&&o(t,e[n+a-c])<=0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l);var u=s;s=a-c,c=a-u}for(s++;s<c;){var d=s+(c-s>>>1);o(t,e[n+d])>0?s=d+1:c=d}return c}function MDe(t,e,n,r,a,o){var s=0,l=0,c=1;if(o(t,e[n+a])<0){for(l=a+1;c<l&&o(t,e[n+a-c])<0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l);var u=s;s=a-c,c=a-u}else{for(l=r-a;c<l&&o(t,e[n+a+c])>=0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=a,c+=a}for(s++;s<c;){var d=s+(c-s>>>1);o(t,e[n+d])<0?c=d:s=d+1}return c}function mJa(t,e){var n=Iq,r,a,o=0,s=[];r=[],a=[];function l(p,m){r[o]=p,a[o]=m,o+=1}function c(){for(;o>1;){var p=o-2;if(p>=1&&a[p-1]<=a[p]+a[p+1]||p>=2&&a[p-2]<=a[p]+a[p-1])a[p-1]<a[p+1]&&p--;else if(a[p]>a[p+1])break;d(p)}}function u(){for(;o>1;){var p=o-2;p>0&&a[p-1]<a[p+1]&&p--,d(p)}}function d(p){var m=r[p],g=a[p],v=r[p+1],A=a[p+1];a[p]=g+A,p===o-3&&(r[p+1]=r[p+2],a[p+1]=a[p+2]),o--;var y=MDe(t[v],t,m,g,0,e);m+=y,g-=y,g!==0&&(A=RDe(t[m+g-1],t,v,A,A-1,e),A!==0&&(g<=A?h(m,g,v,A):f(m,g,v,A)))}function h(p,m,g,v){var A=0;for(A=0;A<m;A++)s[A]=t[p+A];var y=0,S=g,x=p;if(t[x++]=t[S++],--v===0){for(A=0;A<m;A++)t[x+A]=s[y+A];return}if(m===1){for(A=0;A<v;A++)t[x+A]=t[S+A];t[x+v]=s[y];return}for(var w=n,_,C,R;;){_=0,C=0,R=!1;do if(e(t[S],s[y])<0){if(t[x++]=t[S++],C++,_=0,--v===0){R=!0;break}}else if(t[x++]=s[y++],_++,C=0,--m===1){R=!0;break}while((_|C)<w);if(R)break;do{if(_=MDe(t[S],s,y,m,0,e),_!==0){for(A=0;A<_;A++)t[x+A]=s[y+A];if(x+=_,y+=_,m-=_,m<=1){R=!0;break}}if(t[x++]=t[S++],--v===0){R=!0;break}if(C=RDe(s[y],t,S,v,0,e),C!==0){for(A=0;A<C;A++)t[x+A]=t[S+A];if(x+=C,S+=C,v-=C,v===0){R=!0;break}}if(t[x++]=s[y++],--m===1){R=!0;break}w--}while(_>=Iq||C>=Iq);if(R)break;w<0&&(w=0),w+=2}if(n=w,n<1&&(n=1),m===1){for(A=0;A<v;A++)t[x+A]=t[S+A];t[x+v]=s[y]}else{if(m===0)throw new Error;for(A=0;A<m;A++)t[x+A]=s[y+A]}}function f(p,m,g,v){var A=0;for(A=0;A<v;A++)s[A]=t[g+A];var y=p+m-1,S=v-1,x=g+v-1,w=0,_=0;if(t[x--]=t[y--],--m===0){for(w=x-(v-1),A=0;A<v;A++)t[w+A]=s[A];return}if(v===1){for(x-=m,y-=m,_=x+1,w=y+1,A=m-1;A>=0;A--)t[_+A]=t[w+A];t[x]=s[S];return}for(var C=n;;){var R=0,k=0,P=!1;do if(e(s[S],t[y])<0){if(t[x--]=t[y--],R++,k=0,--m===0){P=!0;break}}else if(t[x--]=s[S--],k++,R=0,--v===1){P=!0;break}while((R|k)<C);if(P)break;do{if(R=m-MDe(s[S],t,p,m,m-1,e),R!==0){for(x-=R,y-=R,m-=R,_=x+1,w=y+1,A=R-1;A>=0;A--)t[_+A]=t[w+A];if(m===0){P=!0;break}}if(t[x--]=s[S--],--v===1){P=!0;break}if(k=v-RDe(t[y],s,0,v,v-1,e),k!==0){for(x-=k,S-=k,v-=k,_=x+1,w=S+1,A=0;A<k;A++)t[_+A]=s[w+A];if(v<=1){P=!0;break}}if(t[x--]=t[y--],--m===0){P=!0;break}C--}while(R>=Iq||k>=Iq);if(P)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),v===1){for(x-=m,y-=m,_=x+1,w=y+1,A=m-1;A>=0;A--)t[_+A]=t[w+A];t[x]=s[S]}else{if(v===0)throw new Error;for(w=x-(v-1),A=0;A<v;A++)t[w+A]=s[A]}}return{mergeRuns:c,forceMergeRuns:u,pushRun:l}}function qme(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var o=0;if(a<jDn){o=vNt(t,n,r,e),ANt(t,n,r,n+o,e);return}var s=mJa(t,e),l=fJa(a);do{if(o=vNt(t,n,r,e),o<l){var c=a;c>l&&(c=l),ANt(t,n,n+c,n+o,e),o=c}s.pushRun(n,o),s.mergeRuns(),a-=o,n+=o}while(a!==0);s.forceMergeRuns()}}var _y=1,MZ=2,fF=4,yNt=!1;function NDe(){yNt||(yNt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bNt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var gJa=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bNt}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,o=n.length;a<o;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,qme(r,bNt)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var o=a,s=e;o;)o.parent=s,o.updateTransform(),n.push(o),s=o,o=o.getClipPath()}if(e.childrenRef){for(var l=e.childrenRef(),c=0;c<l.length;c++){var u=l[c];e.__dirty&&(u.__dirty|=_y),this._updateAndAddDisplayable(u,n,r)}e.__dirty=0}else{var d=e;n&&n.length?d.__clipPaths=n:d.__clipPaths&&d.__clipPaths.length>0&&(d.__clipPaths=[]),isNaN(d.z)&&(NDe(),d.z=0),isNaN(d.z2)&&(NDe(),d.z2=0),isNaN(d.zlevel)&&(NDe(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,n,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,n,r);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=za(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const vJa=gJa;var HDn;HDn=ls.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const yKe=HDn;var Yme={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Yme.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Yme.bounceIn(t*2)*.5:Yme.bounceOut(t*2-1)*.5+.5}};const UDn=Yme;var Mde=Math.pow,N5=Math.sqrt,R1e=1e-8,zDn=1e-4,xNt=N5(3),Nde=1/3,zT=yO(),ux=yO(),uH=yO();function J3(t){return t>-R1e&&t<R1e}function GDn(t){return t>R1e||t<-R1e}function ap(t,e,n,r,a){var o=1-a;return o*o*(o*t+3*a*e)+a*a*(a*r+3*o*n)}function ENt(t,e,n,r,a){var o=1-a;return 3*(((e-t)*o+2*(n-e)*a)*o+(r-n)*a*a)}function M1e(t,e,n,r,a,o){var s=r+3*(e-n)-t,l=3*(n-e*2+t),c=3*(e-t),u=t-a,d=l*l-3*s*c,h=l*c-9*s*u,f=c*c-3*l*u,p=0;if(J3(d)&&J3(h))if(J3(l))o[0]=0;else{var m=-c/l;m>=0&&m<=1&&(o[p++]=m)}else{var g=h*h-4*d*f;if(J3(g)){var v=h/d,m=-l/s+v,A=-v/2;m>=0&&m<=1&&(o[p++]=m),A>=0&&A<=1&&(o[p++]=A)}else if(g>0){var y=N5(g),S=d*l+1.5*s*(-h+y),x=d*l+1.5*s*(-h-y);S<0?S=-Mde(-S,Nde):S=Mde(S,Nde),x<0?x=-Mde(-x,Nde):x=Mde(x,Nde);var m=(-l-(S+x))/(3*s);m>=0&&m<=1&&(o[p++]=m)}else{var w=(2*d*l-3*s*h)/(2*N5(d*d*d)),_=Math.acos(w)/3,C=N5(d),R=Math.cos(_),m=(-l-2*C*R)/(3*s),A=(-l+C*(R+xNt*Math.sin(_)))/(3*s),k=(-l+C*(R-xNt*Math.sin(_)))/(3*s);m>=0&&m<=1&&(o[p++]=m),A>=0&&A<=1&&(o[p++]=A),k>=0&&k<=1&&(o[p++]=k)}}return p}function VDn(t,e,n,r,a){var o=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,l=3*e-3*t,c=0;if(J3(s)){if(GDn(o)){var u=-l/o;u>=0&&u<=1&&(a[c++]=u)}}else{var d=o*o-4*s*l;if(J3(d))a[0]=-o/(2*s);else if(d>0){var h=N5(d),u=(-o+h)/(2*s),f=(-o-h)/(2*s);u>=0&&u<=1&&(a[c++]=u),f>=0&&f<=1&&(a[c++]=f)}}return c}function kP(t,e,n,r,a,o){var s=(e-t)*a+t,l=(n-e)*a+e,c=(r-n)*a+n,u=(l-s)*a+s,d=(c-l)*a+l,h=(d-u)*a+u;o[0]=t,o[1]=s,o[2]=u,o[3]=h,o[4]=h,o[5]=d,o[6]=c,o[7]=r}function KDn(t,e,n,r,a,o,s,l,c,u,d){var h,f=.005,p=1/0,m,g,v,A;zT[0]=c,zT[1]=u;for(var y=0;y<1;y+=.05)ux[0]=ap(t,n,a,s,y),ux[1]=ap(e,r,o,l,y),v=M5(zT,ux),v<p&&(h=y,p=v);p=1/0;for(var S=0;S<32&&!(f<zDn);S++)m=h-f,g=h+f,ux[0]=ap(t,n,a,s,m),ux[1]=ap(e,r,o,l,m),v=M5(ux,zT),m>=0&&v<p?(h=m,p=v):(uH[0]=ap(t,n,a,s,g),uH[1]=ap(e,r,o,l,g),A=M5(uH,zT),g<=1&&A<p?(h=g,p=A):f*=.5);return d&&(d[0]=ap(t,n,a,s,h),d[1]=ap(e,r,o,l,h)),N5(p)}function AJa(t,e,n,r,a,o,s,l,c){for(var u=t,d=e,h=0,f=1/c,p=1;p<=c;p++){var m=p*f,g=ap(t,n,a,s,m),v=ap(e,r,o,l,m),A=g-u,y=v-d;h+=Math.sqrt(A*A+y*y),u=g,d=v}return h}function Yp(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function bKe(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function yJa(t,e,n,r,a){var o=t-2*e+n,s=2*(e-t),l=t-r,c=0;if(J3(o)){if(GDn(s)){var u=-l/s;u>=0&&u<=1&&(a[c++]=u)}}else{var d=s*s-4*o*l;if(J3(d)){var u=-s/(2*o);u>=0&&u<=1&&(a[c++]=u)}else if(d>0){var h=N5(d),u=(-s+h)/(2*o),f=(-s-h)/(2*o);u>=0&&u<=1&&(a[c++]=u),f>=0&&f<=1&&(a[c++]=f)}}return c}function WDn(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function nre(t,e,n,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(s-o)*r+o;a[0]=t,a[1]=o,a[2]=l,a[3]=l,a[4]=s,a[5]=n}function QDn(t,e,n,r,a,o,s,l,c){var u,d=.005,h=1/0;zT[0]=s,zT[1]=l;for(var f=0;f<1;f+=.05){ux[0]=Yp(t,n,a,f),ux[1]=Yp(e,r,o,f);var p=M5(zT,ux);p<h&&(u=f,h=p)}h=1/0;for(var m=0;m<32&&!(d<zDn);m++){var g=u-d,v=u+d;ux[0]=Yp(t,n,a,g),ux[1]=Yp(e,r,o,g);var p=M5(ux,zT);if(g>=0&&p<h)u=g,h=p;else{uH[0]=Yp(t,n,a,v),uH[1]=Yp(e,r,o,v);var A=M5(uH,zT);v<=1&&A<h?(u=v,h=A):d*=.5}}return c&&(c[0]=Yp(t,n,a,u),c[1]=Yp(e,r,o,u)),N5(h)}function bJa(t,e,n,r,a,o,s){for(var l=t,c=e,u=0,d=1/s,h=1;h<=s;h++){var f=h*d,p=Yp(t,n,a,f),m=Yp(e,r,o,f),g=p-l,v=m-c;u+=Math.sqrt(g*g+v*v),l=p,c=m}return u}var xJa=/cubic-bezier\(([0-9,\.e ]+)\)/;function eot(t){var e=t&&xJa.exec(t);if(e){var n=e[1].split(","),r=+_x(n[0]),a=+_x(n[1]),o=+_x(n[2]),s=+_x(n[3]);if(isNaN(r+a+o+s))return;var l=[];return function(c){return c<=0?0:c>=1?1:M1e(0,r,o,1,c,l)&&ap(0,a,s,1,l[0])}}}var EJa=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||jd,this.ondestroy=e.ondestroy||jd,this.onrestart=e.onrestart||jd,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,o=a/r;o<0&&(o=0),o=Math.min(o,1);var s=this.easingFunc,l=s?s(o):o;if(this.onframe(l),o===1)if(this.loop){var c=a%r;this._startTime=e-c,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ai(e)?e:UDn[e]||eot(e)},t}();const SJa=EJa;var qDn=function(){function t(e){this.value=e}return t}(),wJa=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new qDn(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),_Ja=function(){function t(e){this._list=new wJa,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,o=null;if(a[e]==null){var s=r.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var c=r.head;r.remove(c),delete a[c.key],o=c.value,this._lastRemovedEntry=c}l?l.value=n:l=new qDn(n),l.key=e,r.insertEntry(l),a[e]=l}return o},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const ese=_Ja;var SNt={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function yw(t){return t=Math.round(t),t<0?0:t>255?255:t}function TJa(t){return t=Math.round(t),t<0?0:t>360?360:t}function rre(t){return t<0?0:t>1?1:t}function IDe(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?yw(parseFloat(e)/100*255):yw(parseInt(e,10))}function ND(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?rre(parseFloat(e)/100):rre(parseFloat(e))}function PDe(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function Z3(t,e,n){return t+(e-t)*n}function Vb(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function xKe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var YDn=new ese(20),Ide=null;function Y$(t,e){Ide&&xKe(Ide,e),Ide=YDn.put(t,Ide||e.slice())}function j0(t,e){if(t){e=e||[];var n=YDn.get(t);if(n)return xKe(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in SNt)return xKe(e,SNt[r]),Y$(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){Vb(e,0,0,0,1);return}return Vb(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Y$(t,e),e}else if(a===7||a===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Vb(e,0,0,0,1);return}return Vb(e,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(r.slice(7),16)/255:1),Y$(t,e),e}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===a){var c=r.substr(0,s),u=r.substr(s+1,l-(s+1)).split(","),d=1;switch(c){case"rgba":if(u.length!==4)return u.length===3?Vb(e,+u[0],+u[1],+u[2],1):Vb(e,0,0,0,1);d=ND(u.pop());case"rgb":if(u.length>=3)return Vb(e,IDe(u[0]),IDe(u[1]),IDe(u[2]),u.length===3?d:ND(u[3])),Y$(t,e),e;Vb(e,0,0,0,1);return;case"hsla":if(u.length!==4){Vb(e,0,0,0,1);return}return u[3]=ND(u[3]),EKe(u,e),Y$(t,e),e;case"hsl":if(u.length!==3){Vb(e,0,0,0,1);return}return EKe(u,e),Y$(t,e),e;default:return}}Vb(e,0,0,0,1)}}function EKe(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=ND(t[1]),a=ND(t[2]),o=a<=.5?a*(r+1):a+r-a*r,s=a*2-o;return e=e||[],Vb(e,yw(PDe(s,o,n+1/3)*255),yw(PDe(s,o,n)*255),yw(PDe(s,o,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function CJa(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=o-a,l=(o+a)/2,c,u;if(s===0)c=0,u=0;else{l<.5?u=s/(o+a):u=s/(2-o-a);var d=((o-e)/6+s/2)/s,h=((o-n)/6+s/2)/s,f=((o-r)/6+s/2)/s;e===o?c=f-h:n===o?c=1/3+d-f:r===o&&(c=2/3+h-d),c<0&&(c+=1),c>1&&(c-=1)}var p=[c*360,u,l];return t[3]!=null&&p.push(t[3]),p}}function N1e(t,e){var n=j0(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return bw(n,n.length===4?"rgba":"rgb")}}function kJa(t){var e=j0(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function mee(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),a=Math.floor(r),o=Math.ceil(r),s=e[a],l=e[o],c=r-a;return n[0]=yw(Z3(s[0],l[0],c)),n[1]=yw(Z3(s[1],l[1],c)),n[2]=yw(Z3(s[2],l[2],c)),n[3]=rre(Z3(s[3],l[3],c)),n}}var RJa=mee;function tot(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),a=Math.floor(r),o=Math.ceil(r),s=j0(e[a]),l=j0(e[o]),c=r-a,u=bw([yw(Z3(s[0],l[0],c)),yw(Z3(s[1],l[1],c)),yw(Z3(s[2],l[2],c)),rre(Z3(s[3],l[3],c))],"rgba");return n?{color:u,leftIndex:a,rightIndex:o,value:r}:u}}var MJa=tot;function dH(t,e,n,r){var a=j0(t);if(t)return a=CJa(a),e!=null&&(a[0]=TJa(e)),n!=null&&(a[1]=ND(n)),r!=null&&(a[2]=ND(r)),bw(EKe(a),"rgba")}function ire(t,e){var n=j0(t);if(n&&e!=null)return n[3]=rre(e),bw(n,"rgba")}function bw(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function are(t,e){var n=j0(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function NJa(){return bw([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var wNt=new ese(100);function I1e(t){if(vr(t)){var e=wNt.get(t);return e||(e=N1e(t,-.1),wNt.put(t,e)),e}else if(Joe(t)){var n=An({},t);return n.colorStops=Rn(t.colorStops,function(r){return{offset:r.offset,color:N1e(r.color,-.1)}}),n}return t}const IJa=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:mee,fastMapToColor:RJa,lerp:tot,lift:N1e,liftColor:I1e,lum:are,mapToColor:MJa,modifyAlpha:ire,modifyHSL:dH,parse:j0,random:NJa,stringify:bw,toHex:kJa},Symbol.toStringTag,{value:"Module"}));var P1e=Math.round;function ore(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=j0(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var _Nt=1e-4;function X3(t){return t<_Nt&&t>-_Nt}function Pde(t){return P1e(t*1e3)/1e3}function SKe(t){return P1e(t*1e4)/1e4}function PJa(t){return"matrix("+Pde(t[0])+","+Pde(t[1])+","+Pde(t[2])+","+Pde(t[3])+","+SKe(t[4])+","+SKe(t[5])+")"}var OJa={left:"start",right:"end",center:"middle",middle:"middle"};function LJa(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function BJa(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function DJa(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function JDn(t){return t&&!!t.image}function $Ja(t){return t&&!!t.svgElement}function not(t){return JDn(t)||$Ja(t)}function ZDn(t){return t.type==="linear"}function XDn(t){return t.type==="radial"}function e6n(t){return t&&(t.type==="linear"||t.type==="radial")}function jTe(t){return"url(#"+t+")"}function t6n(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function n6n(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*hee,a=pa(t.scaleX,1),o=pa(t.scaleY,1),s=t.skewX||0,l=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),(a!==1||o!==1)&&c.push("scale("+a+","+o+")"),(s||l)&&c.push("skew("+P1e(s*hee)+"deg, "+P1e(l*hee)+"deg)"),c.join(" ")}var FJa=function(){return ls.hasGlobalWindow&&ai(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof gn<"u"?function(t){return gn.from(t).toString("base64")}:function(t){return null}}(),wKe=Array.prototype.slice;function mR(t,e,n){return(e-t)*n+t}function ODe(t,e,n,r){for(var a=e.length,o=0;o<a;o++)t[o]=mR(e[o],n[o],r);return t}function jJa(t,e,n,r){for(var a=e.length,o=a&&e[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<o;l++)t[s][l]=mR(e[s][l],n[s][l],r)}return t}function Ode(t,e,n,r){for(var a=e.length,o=0;o<a;o++)t[o]=e[o]+n[o]*r;return t}function TNt(t,e,n,r){for(var a=e.length,o=a&&e[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<o;l++)t[s][l]=e[s][l]+n[s][l]*r}return t}function HJa(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,o=Math.min(n,r),s=a[o-1]||{color:[0,0,0,0],offset:0},l=o;l<Math.max(n,r);l++)a.push({offset:s.offset,color:s.color.slice()})}function UJa(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var o=r.length,s=a.length;if(o!==s){var l=o>s;if(l)r.length=s;else for(var c=o;c<s;c++)r.push(n===1?a[c]:wKe.call(a[c]))}for(var u=r[0]&&r[0].length,c=0;c<r.length;c++)if(n===1)isNaN(r[c])&&(r[c]=a[c]);else for(var d=0;d<u;d++)isNaN(r[c][d])&&(r[c][d]=a[c][d])}}function gee(t){if(ug(t)){var e=t.length;if(ug(t[0])){for(var n=[],r=0;r<e;r++)n.push(wKe.call(t[r]));return n}return wKe.call(t)}return t}function Jme(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function zJa(t){return ug(t&&t[0])?2:1}var Lde=0,Zme=1,r6n=2,NZ=3,_Ke=4,TKe=5,CNt=6;function kNt(t){return t===_Ke||t===TKe}function Bde(t){return t===Zme||t===r6n}var Pq=[0,0,0,0],GJa=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,o=a.length,s=!1,l=CNt,c=n;if(ug(n)){var u=zJa(n);l=u,(u===1&&!cs(n[0])||u===2&&!cs(n[0][0]))&&(s=!0)}else if(cs(n)&&!rz(n))l=Lde;else if(vr(n))if(!isNaN(+n))l=Lde;else{var d=j0(n);d&&(c=d,l=NZ)}else if(Joe(n)){var h=An({},c);h.colorStops=Rn(n.colorStops,function(p){return{offset:p.offset,color:j0(p.color)}}),ZDn(n)?l=_Ke:XDn(n)&&(l=TKe),c=h}o===0?this.valType=l:(l!==this.valType||l===CNt)&&(s=!0),this.discrete=this.discrete||s;var f={time:e,value:c,rawValue:n,percent:0};return r&&(f.easing=r,f.easingFunc=ai(r)?r:UDn[r]||eot(r)),a.push(f),f},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(g,v){return g.time-v.time});for(var a=this.valType,o=r.length,s=r[o-1],l=this.discrete,c=Bde(a),u=kNt(a),d=0;d<o;d++){var h=r[d],f=h.value,p=s.value;h.percent=h.time/e,l||(c&&d!==o-1?UJa(f,p,a):u&&HJa(f.colorStops,p.colorStops))}if(!l&&a!==TKe&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var m=r[0].value,d=0;d<o;d++)a===Lde?r[d].additiveValue=r[d].value-m:a===NZ?r[d].additiveValue=Ode([],r[d].value,m,-1):Bde(a)&&(r[d].additiveValue=a===Zme?Ode([],r[d].value,m,-1):TNt([],r[d].value,m,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",o=this.valType,s=this.keyframes,l=s.length,c=this.propName,u=o===NZ,d,h=this._lastFr,f=Math.min,p,m;if(l===1)p=m=s[0];else{if(n<0)d=0;else if(n<this._lastFrP){var g=f(h+1,l-1);for(d=g;d>=0&&!(s[d].percent<=n);d--);d=f(d,l-2)}else{for(d=h;d<l&&!(s[d].percent>n);d++);d=f(d-1,l-2)}m=s[d+1],p=s[d]}if(p&&m){this._lastFr=d,this._lastFrP=n;var v=m.percent-p.percent,A=v===0?1:f((n-p.percent)/v,1);m.easingFunc&&(A=m.easingFunc(A));var y=r?this._additiveValue:u?Pq:e[c];if((Bde(o)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[c]=A<1?p.rawValue:m.rawValue;else if(Bde(o))o===Zme?ODe(y,p[a],m[a],A):jJa(y,p[a],m[a],A);else if(kNt(o)){var S=p[a],x=m[a],w=o===_Ke;e[c]={type:w?"linear":"radial",x:mR(S.x,x.x,A),y:mR(S.y,x.y,A),colorStops:Rn(S.colorStops,function(C,R){var k=x.colorStops[R];return{offset:mR(C.offset,k.offset,A),color:Jme(ODe([],C.color,k.color,A))}}),global:x.global},w?(e[c].x2=mR(S.x2,x.x2,A),e[c].y2=mR(S.y2,x.y2,A)):e[c].r=mR(S.r,x.r,A)}else if(u)ODe(y,p[a],m[a],A),r||(e[c]=Jme(y));else{var _=mR(p[a],m[a],A);r?this._additiveValue=_:e[c]=_}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===Lde?e[r]=e[r]+a:n===NZ?(j0(e[r],Pq),Ode(Pq,Pq,a,1),e[r]=Jme(Pq)):n===Zme?Ode(e[r],e[r],a,1):n===r6n&&TNt(e[r],e[r],a,1)},t}(),VJa=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){OTe("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,bo(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var o=this._tracks,s=0;s<r.length;s++){var l=r[s],c=o[l];if(!c){c=o[l]=new GJa(l);var u=void 0,d=this._getAdditiveTrack(l);if(d){var h=d.keyframes,f=h[h.length-1];u=f&&f.value,d.valType===NZ&&u&&(u=Jme(u))}else u=this._target[l];if(u==null)continue;e>0&&c.addKeyframe(0,gee(u),a),this._trackKeys.push(l)}c.addKeyframe(e,gee(n[l]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var o=r[a].getTrack(e);o&&(n=o)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var s=this._trackKeys[o],l=this._tracks[s],c=this._getAdditiveTrack(s),u=l.keyframes,d=u.length;if(l.prepare(a,c),l.needsAnimate())if(!this._allowDiscrete&&l.discrete){var h=u[d-1];h&&(n._target[l.propName]=h.rawValue),l.setFinished()}else r.push(l)}if(r.length||this._force){var f=new SJa({life:a,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var m=n._additiveAnimators;if(m){for(var g=!1,v=0;v<m.length;v++)if(m[v]._clip){g=!0;break}g||(n._additiveAnimators=null)}for(var v=0;v<r.length;v++)r[v].step(n._target,p);var A=n._onframeCbs;if(A)for(var v=0;v<A.length;v++)A[v](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Rn(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,o=0;o<e.length;o++){var s=r[e[o]];s&&!s.isFinished()&&(n?s.step(this._target,1):this._started===1&&s.step(this._target,0),s.setFinished())}for(var l=!0,o=0;o<a.length;o++)if(!r[a[o]].isFinished()){l=!1;break}return l&&this._abortedCallback(),l},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var o=n[a],s=this._tracks[o];if(!(!s||s.isFinished())){var l=s.keyframes,c=l[r?0:l.length-1];c&&(e[o]=gee(c.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||bo(e);for(var r=0;r<n.length;r++){var a=n[r],o=this._tracks[a];if(o){var s=o.keyframes;if(s.length>1){var l=s.pop();o.addKeyframe(l.time,e[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}();const rot=VJa;function ij(){return new Date().getTime()}var KJa=function(t){Qc(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=ij()-this._pausedTime,a=r-this._time,o=this._head;o;){var s=o.next,l=o.step(r,a);l&&(o.ondestroy(),this.removeClip(o)),o=s}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(yKe(r),!n._paused&&n.update())}yKe(r)},e.prototype.start=function(){this._running||(this._time=ij(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ij(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ij()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new rot(n,r.loop);return this.addAnimator(a),a},e}(SE);const WJa=KJa;var QJa=300,LDe=ls.domSupported,BDe=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Rn(t,function(a){var o=a.replace("mouse","pointer");return n.hasOwnProperty(o)?o:a});return{mouse:t,touch:e,pointer:r}}(),RNt={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},MNt=!1;function CKe(t){var e=t.pointerType;return e==="pen"||e==="touch"}function qJa(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function DDe(t){t&&(t.zrByTouch=!0)}function YJa(t,e){return Jb(t.dom,new JJa(t,e),!0)}function i6n(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var JJa=function(){function t(e,n){this.stopPropagation=jd,this.stopImmediatePropagation=jd,this.preventDefault=jd,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),OS={mousedown:function(t){t=Jb(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Jb(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Jb(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Jb(this.dom,t);var e=t.toElement||t.relatedTarget;i6n(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){MNt=!0,t=Jb(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){MNt||(t=Jb(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Jb(this.dom,t),DDe(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),OS.mousemove.call(this,t),OS.mousedown.call(this,t)},touchmove:function(t){t=Jb(this.dom,t),DDe(t),this.handler.processGesture(t,"change"),OS.mousemove.call(this,t)},touchend:function(t){t=Jb(this.dom,t),DDe(t),this.handler.processGesture(t,"end"),OS.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<QJa&&OS.click.call(this,t)},pointerdown:function(t){OS.mousedown.call(this,t)},pointermove:function(t){CKe(t)||OS.mousemove.call(this,t)},pointerup:function(t){OS.mouseup.call(this,t)},pointerout:function(t){CKe(t)||OS.mouseout.call(this,t)}};Ie(["click","dblclick","contextmenu"],function(t){OS[t]=function(e){e=Jb(this.dom,e),this.trigger(t,e)}});var kKe={pointermove:function(t){CKe(t)||kKe.mousemove.call(this,t)},pointerup:function(t){kKe.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function ZJa(t,e){var n=e.domHandlers;ls.pointerEventsSupported?Ie(BDe.pointer,function(r){Xme(e,r,function(a){n[r].call(t,a)})}):(ls.touchEventsSupported&&Ie(BDe.touch,function(r){Xme(e,r,function(a){n[r].call(t,a),qJa(e)})}),Ie(BDe.mouse,function(r){Xme(e,r,function(a){a=Xat(a),e.touching||n[r].call(t,a)})}))}function XJa(t,e){ls.pointerEventsSupported?Ie(RNt.pointer,n):ls.touchEventsSupported||Ie(RNt.mouse,n);function n(r){function a(o){o=Xat(o),i6n(t,o.target)||(o=YJa(t,o),e.domHandlers[r].call(t,o))}Xme(e,r,a,{capture:!0})}}function Xme(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,AKe(t.domTarget,e,n,r)}function $De(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&tJa(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var NNt=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),eZa=function(t){Qc(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new NNt(n,OS),LDe&&(a._globalHandlerScope=new NNt(document,kKe)),ZJa(a,a._localHandlerScope),a}return e.prototype.dispose=function(){$De(this._localHandlerScope),LDe&&$De(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,LDe&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?XJa(this,r):$De(r)}},e}(SE);const tZa=eZa;var a6n=1;ls.hasGlobalWindow&&(a6n=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var O1e=a6n,RKe=.4,MKe="#333",NKe="#ccc",nZa="#eee",INt=Xoe,PNt=5e-5;function O4(t){return t>PNt||t<-PNt}var L4=[],J$=[],FDe=r1(),jDe=Math.abs,rZa=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return O4(this.rotation)||O4(this.x)||O4(this.y)||O4(this.scaleX-1)||O4(this.scaleY-1)||O4(this.skewX)||O4(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(INt(r),this.invTransform=null);return}r=r||r1(),n?this.getLocalTransform(r):INt(r),e&&(n?R2(r,e,r):$Te(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(L4);var r=L4[0]<0?-1:1,a=L4[1]<0?-1:1,o=((L4[0]-r)*n+r)/L4[0]||0,s=((L4[1]-a)*n+a)/L4[1]||0;e[0]*=o,e[1]*=o,e[2]*=s,e[3]*=s}this.invTransform=this.invTransform||r1(),x9(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),o=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||r1(),R2(J$,e.invTransform,n),n=J$);var r=this.originX,a=this.originY;(r||a)&&(FDe[4]=r,FDe[5]=a,R2(J$,n,FDe),J$[4]-=r,J$[5]-=a,n=J$),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&om(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&om(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&jDe(e[0]-1)>1e-10&&jDe(e[3]-1)>1e-10?Math.sqrt(jDe(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){o6n(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,o=e.scaleX,s=e.scaleY,l=e.anchorX,c=e.anchorY,u=e.rotation||0,d=e.x,h=e.y,f=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||a||l||c){var m=r+l,g=a+c;n[4]=-m*o-f*g*s,n[5]=-g*s-p*m*o}else n[4]=n[5]=0;return n[0]=o,n[3]=s,n[1]=p*o,n[2]=f*s,u&&bO(n,n,u),n[4]+=r+d,n[5]+=a+h,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),nC=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function o6n(t,e){for(var n=0;n<nC.length;n++){var r=nC[n];t[r]=e[r]}}const KR=rZa;var ONt={};function Uy(t,e){e=e||CP;var n=ONt[e];n||(n=ONt[e]=new ese(500));var r=n.get(t);return r==null&&(r=Bw.measureText(t,e).width,n.put(t,r)),r}function LNt(t,e,n,r){var a=Uy(t,e),o=HTe(e),s=IZ(0,a,n),l=pF(0,o,r),c=new Da(s,l,a,o);return c}function tse(t,e,n,r){var a=((t||"")+"").split(`
`),o=a.length;if(o===1)return LNt(a[0],e,n,r);for(var s=new Da(0,0,0,0),l=0;l<a.length;l++){var c=LNt(a[l],e,n,r);l===0?s.copy(c):s.union(c)}return s}function IZ(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function pF(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function HTe(t){return Uy("国",t)}function $w(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function L1e(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,o=n.height,s=n.width,l=o/2,c=n.x,u=n.y,d="left",h="top";if(r instanceof Array)c+=$w(r[0],n.width),u+=$w(r[1],n.height),d=null,h=null;else switch(r){case"left":c-=a,u+=l,d="right",h="middle";break;case"right":c+=a+s,u+=l,h="middle";break;case"top":c+=s/2,u-=a,d="center",h="bottom";break;case"bottom":c+=s/2,u+=o+a,d="center";break;case"inside":c+=s/2,u+=l,d="center",h="middle";break;case"insideLeft":c+=a,u+=l,h="middle";break;case"insideRight":c+=s-a,u+=l,d="right",h="middle";break;case"insideTop":c+=s/2,u+=a,d="center";break;case"insideBottom":c+=s/2,u+=o-a,d="center",h="bottom";break;case"insideTopLeft":c+=a,u+=a;break;case"insideTopRight":c+=s-a,u+=a,d="right";break;case"insideBottomLeft":c+=a,u+=o-a,h="bottom";break;case"insideBottomRight":c+=s-a,u+=o-a,d="right",h="bottom";break}return t=t||{},t.x=c,t.y=u,t.align=d,t.verticalAlign=h,t}var HDe="__zr_normal__",UDe=nC.concat(["ignore"]),iZa=Zx(nC,function(t,e){return t[e]=!0,t},{ignore:!1}),Z$={},aZa=new Da(0,0,0,0),iot=function(){function t(e){this.id=qat(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,o=n.innerTransformable,s=void 0,l=void 0,c=!1;o.parent=a?this:null;var u=!1;if(o.copyTransform(n),r.position!=null){var d=aZa;r.layoutRect?d.copy(r.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Z$,r,d):L1e(Z$,r,d),o.x=Z$.x,o.y=Z$.y,s=Z$.align,l=Z$.verticalAlign;var h=r.origin;if(h&&r.rotation!=null){var f=void 0,p=void 0;h==="center"?(f=d.width*.5,p=d.height*.5):(f=$w(h[0],d.width),p=$w(h[1],d.height)),u=!0,o.originX=-o.x+f+(a?0:d.x),o.originY=-o.y+p+(a?0:d.y)}}r.rotation!=null&&(o.rotation=r.rotation);var m=r.offset;m&&(o.x+=m[0],o.y+=m[1],u||(o.originX=-m[0],o.originY=-m[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),A=void 0,y=void 0,S=void 0;g&&this.canBeInsideText()?(A=r.insideFill,y=r.insideStroke,(A==null||A==="auto")&&(A=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(A),S=!0)):(A=r.outsideFill,y=r.outsideStroke,(A==null||A==="auto")&&(A=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(A),S=!0)),A=A||"#000",(A!==v.fill||y!==v.stroke||S!==v.autoStroke||s!==v.align||l!==v.verticalAlign)&&(c=!0,v.fill=A,v.stroke=y,v.autoStroke=S,v.align=s,v.verticalAlign=l,n.setDefaultTextStyle(v)),n.__dirty|=_y,c&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?NKe:MKe},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&j0(n);r||(r=[255,255,255,1]);for(var a=r[3],o=this.__zr.isDarkMode(),s=0;s<3;s++)r[s]=r[s]*a+(o?0:255)*(1-a);return r[3]=1,bw(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},An(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(Ci(e))for(var r=e,a=bo(r),o=0;o<a.length;o++){var s=a[o];this.attrKV(s,e[s])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],o=a.__fromStateTransition;if(!(a.getLoop()||o&&o!==HDe)){var s=a.targetName,l=s?n[s]:n;a.saveTo(l)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,UDe)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var o=r[a];e[o]!=null&&!(o in n)&&(n[o]=this[o])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(HDe,!1,e)},t.prototype.useState=function(e,n,r,a){var o=e===HDe,s=this.hasState();if(!(!s&&o)){var l=this.currentStates,c=this.stateTransition;if(!(za(l,e)>=0&&(n||l.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!o){OTe("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(u);var d=!!(u&&u.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,n,!r&&!this.__inHover&&c&&c.duration>0,c);var h=this._textContent,f=this._textGuide;return h&&h.useState(e,n,r,d),f&&f.useState(e,n,r,d),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_y),u}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],o=this.currentStates,s=e.length,l=s===o.length;if(l){for(var c=0;c<s;c++)if(e[c]!==o[c]){l=!1;break}}if(l)return;for(var c=0;c<s;c++){var u=e[c],d=void 0;this.stateProxy&&(d=this.stateProxy(u,e)),d||(d=this.states[u]),d&&a.push(d)}var h=a[s-1],f=!!(h&&h.hoverLayer||r);f&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(a),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!n&&!this.__inHover&&m&&m.duration>0,m);var g=this._textContent,v=this._textGuide;g&&g.useStates(e,n,f),v&&v.useStates(e,n,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_y)}},t.prototype.isSilent=function(){for(var e=this.silent,n=this.parent;!e&&n;){if(n.silent){e=!0;break}n=n.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=za(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),o=za(a,e),s=za(a,n)>=0;o>=0?s?a.splice(o,1):a[o]=n:r&&!s&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var o=e[a];An(n,o),o.textConfig&&(r=r||{},An(r,o.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,o,s){var l=!(n&&a);n&&n.textConfig?(this.textConfig=An({},a?this.textConfig:r.textConfig),An(this.textConfig,n.textConfig)):l&&r.textConfig&&(this.textConfig=r.textConfig);for(var c={},u=!1,d=0;d<UDe.length;d++){var h=UDe[d],f=o&&iZa[h];n&&n[h]!=null?f?(u=!0,c[h]=n[h]):this[h]=n[h]:l&&r[h]!=null&&(f?(u=!0,c[h]=r[h]):this[h]=r[h])}if(!o)for(var d=0;d<this.animators.length;d++){var p=this.animators[d],m=p.targetName;p.getLoop()||p.__changeFinalValue(m?(n||r)[m]:n||r)}u&&this._transitionState(e,c,s)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;n!==e&&(n&&n!==e&&this.removeTextContent(),e.innerTransformable=new KR,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),An(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=_y;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this,o=new rot(a,n,r);return e&&(o.targetName=e),this.addAnimator(o,e),o},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var o=a.animators,s=za(o,e);s>=0&&o.splice(s,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,o=[],s=0;s<a;s++){var l=r[s];!e||e===l.scope?l.stop(n):o.push(l)}return this.animators=o,this},t.prototype.animateTo=function(e,n,r){zDe(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){zDe(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var o=zDe(this,n,r,a),s=0;s<o.length;s++)o[s].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=_y;function n(r,a,o,s){Object.defineProperty(e,r,{get:function(){if(!this[a]){var c=this[a]=[];l(this,c)}return this[a]},set:function(c){this[o]=c[0],this[s]=c[1],this[a]=c,l(this,c)}});function l(c,u){Object.defineProperty(u,0,{get:function(){return c[o]},set:function(d){c[o]=d}}),Object.defineProperty(u,1,{get:function(){return c[s]},set:function(d){c[s]=d}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();Vd(iot,SE);Vd(iot,KR);function zDe(t,e,n,r,a){n=n||{};var o=[];s6n(t,"",t,e,n,r,o,a);var s=o.length,l=!1,c=n.done,u=n.aborted,d=function(){l=!0,s--,s<=0&&(l?c&&c():u&&u())},h=function(){s--,s<=0&&(l?c&&c():u&&u())};s||c&&c(),o.length>0&&n.during&&o[0].during(function(m,g){n.during(g)});for(var f=0;f<o.length;f++){var p=o[f];d&&p.done(d),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function GDe(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function oZa(t){return ug(t[0])}function sZa(t,e,n){if(ug(e[n]))if(ug(t[n])||(t[n]=[]),W0(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),GDe(t[n],e[n],r))}else{var a=e[n],o=t[n],s=a.length;if(oZa(a))for(var l=a[0].length,c=0;c<s;c++)o[c]?GDe(o[c],a[c],l):o[c]=Array.prototype.slice.call(a[c]);else GDe(o,a,s);o.length=a.length}else t[n]=e[n]}function lZa(t,e){return t===e||ug(t)&&ug(e)&&cZa(t,e)}function cZa(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function s6n(t,e,n,r,a,o,s,l){for(var c=bo(r),u=a.duration,d=a.delay,h=a.additive,f=a.setToFinal,p=!Ci(o),m=t.animators,g=[],v=0;v<c.length;v++){var A=c[v],y=r[A];if(y!=null&&n[A]!=null&&(p||o[A]))if(Ci(y)&&!ug(y)&&!Joe(y)){if(e){l||(n[A]=y,t.updateDuringAnimation(e));continue}s6n(t,A,n[A],y,a,o&&o[A],s,l)}else g.push(A);else l||(n[A]=y,t.updateDuringAnimation(e),g.push(A))}var S=g.length;if(!h&&S)for(var x=0;x<m.length;x++){var w=m[x];if(w.targetName===e){var _=w.stopTracks(g);if(_){var C=za(m,w);m.splice(C,1)}}}if(a.force||(g=ll(g,function(N){return!lZa(r[N],n[N])}),S=g.length),S>0||a.force&&!s.length){var R=void 0,k=void 0,P=void 0;if(l){k={},f&&(R={});for(var x=0;x<S;x++){var A=g[x];k[A]=n[A],f?R[A]=r[A]:n[A]=r[A]}}else if(f){P={};for(var x=0;x<S;x++){var A=g[x];P[A]=gee(n[A]),sZa(n,r,A)}}var w=new rot(n,!1,!1,h?ll(m,function(L){return L.targetName===e}):null);w.targetName=e,a.scope&&(w.scope=a.scope),f&&R&&w.whenWithKeys(0,R,g),P&&w.whenWithKeys(0,P,g),w.whenWithKeys(u??500,l?k:r,g).delay(d||0),t.addAnimator(w,e),s.push(w)}}const l6n=iot;var c6n=function(t){Qc(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,o=a.indexOf(r);o>=0&&(a.splice(o,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=za(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,o=a[r];if(n&&n!==this&&n.parent!==this&&n!==o){a[r]=n,o.parent=null;var s=this.__zr;s&&o.removeSelfFromZr(s),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,o=za(a,n);return o<0?this:(a.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var o=n[a];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,o=0;o<a.length;o++){var s=a[o];n.call(r,s,o)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var o=this._children[a],s=n.call(r,o);o.isGroup&&!s&&o.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Da(0,0,0,0),a=n||this._children,o=[],s=null,l=0;l<a.length;l++){var c=a[l];if(!(c.ignore||c.invisible)){var u=c.getBoundingRect(),d=c.getLocalTransform(o);d?(Da.applyTransform(r,u,d),s=s||r.clone(),s.union(r)):(s=s||u.clone(),s.union(u))}}return s||r},e}(l6n);c6n.prototype.type="group";const ta=c6n;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var ege={},JB={};function uZa(t){delete JB[t]}function dZa(t){if(!t)return!1;if(typeof t=="string")return are(t,1)<RKe;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=are(e[a].color,1);return n/=r,n<RKe}return!1}var hZa=function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var o=new vJa,s=r.renderer||"canvas";ege[s]||(s=bo(ege)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var l=new ege[s](n,o,r,e),c=r.ssr||l.ssrOnly;this.storage=o,this.painter=l;var u=!ls.node&&!ls.worker&&!c?new tZa(l.getViewportRoot(),l.root):null,d=r.useCoarsePointer,h=d==null||d==="auto"?ls.touchEventsSupported:!!d,f=44,p;h&&(p=pa(r.pointerSize,f)),this.handler=new hJa(o,l,u,l.root,p),this.animation=new WJa({stage:{update:c?null:function(){return a._flush(!0)}}}),c||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=dZa(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var n,r=ij();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=ij();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof ta&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,uZa(this.id))},t}();function IKe(t,e){var n=new hZa(qat(),t,e);return JB[n.id]=n,n}function fZa(t){t.dispose()}function pZa(){for(var t in JB)JB.hasOwnProperty(t)&&JB[t].dispose();JB={}}function mZa(t){return JB[t]}function u6n(t,e){ege[t]=e}var PKe;function d6n(t){if(typeof PKe=="function")return PKe(t)}function h6n(t){PKe=t}var gZa="5.5.0";const vZa=Object.freeze(Object.defineProperty({__proto__:null,dispose:fZa,disposeAll:pZa,getElementSSRData:d6n,getInstance:mZa,init:IKe,registerPainter:u6n,registerSSRDataGetter:h6n,version:gZa},Symbol.toStringTag,{value:"Module"}));var BNt=1e-4,f6n=20;function AZa(t){return t.replace(/^\s+|\s+$/g,"")}function ol(t,e,n,r){var a=e[0],o=e[1],s=n[0],l=n[1],c=o-a,u=l-s;if(c===0)return u===0?s:(s+l)/2;if(r)if(c>0){if(t<=a)return s;if(t>=o)return l}else{if(t>=a)return s;if(t<=o)return l}else{if(t===a)return s;if(t===o)return l}return(t-a)/c*u+s}function lr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return vr(t)?AZa(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function fd(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),f6n),t=(+t).toFixed(e),n?t:+t}function Py(t){return t.sort(function(e,n){return e-n}),t}function ow(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return p6n(t)}function p6n(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,o=e.indexOf("."),s=o<0?0:a-1-o;return Math.max(0,s-r)}function aot(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),s=Math.min(Math.max(-a+o,0),20);return isFinite(s)?s:20}function yZa(t,e,n){if(!t[e])return 0;var r=m6n(t,n);return r[e]||0}function m6n(t,e){var n=Zx(t,function(p,m){return p+(isNaN(m)?0:m)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=Rn(t,function(p){return(isNaN(p)?0:p)/n*r*100}),o=r*100,s=Rn(a,function(p){return Math.floor(p)}),l=Zx(s,function(p,m){return p+m},0),c=Rn(a,function(p,m){return p-s[m]});l<o;){for(var u=Number.NEGATIVE_INFINITY,d=null,h=0,f=c.length;h<f;++h)c[h]>u&&(u=c[h],d=h);++s[d],c[d]=0,++l}return Rn(s,function(p){return p/r})}function bZa(t,e){var n=Math.max(ow(t),ow(e)),r=t+e;return n>f6n?r:fd(r,n)}var OKe=9007199254740991;function oot(t){var e=Math.PI*2;return(t%e+e)%e}function iz(t){return t>-BNt&&t<BNt}var xZa=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function qy(t){if(t instanceof Date)return t;if(vr(t)){var e=xZa.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function g6n(t){return Math.pow(10,UTe(t))}function UTe(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function sot(t,e){var n=UTe(t),r=Math.pow(10,n),a=t/r,o;return e?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,t=o*r,n>=-20?+t.toFixed(n<0?-n:0):t}function tge(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),a=+t[r-1],o=n-r;return o?a+o*(t[r]-a):a}function LKe(t){t.sort(function(c,u){return l(c,u,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var a=t[r].interval,o=t[r].close,s=0;s<2;s++)a[s]<=e&&(a[s]=e,o[s]=s?1:1-n),e=a[s],n=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;function l(c,u,d){return c.interval[d]<u.interval[d]||c.interval[d]===u.interval[d]&&(c.close[d]-u.close[d]===(d?-1:1)||!d&&l(c,u,1))}}function rC(t){var e=parseFloat(t);return e==t&&(e!==0||!vr(t)||t.indexOf("x")<=0)?e:NaN}function lot(t){return!isNaN(rC(t))}function v6n(){return Math.round(Math.random()*9)}function A6n(t,e){return e===0?t:A6n(e,t%e)}function DNt(t,e){return t==null?e:e==null?t:t*e/A6n(t,e)}function Zs(t){throw new Error(t)}function $Nt(t,e,n){return(e-t)*n+t}var y6n="series\0",b6n="\0_ec_\0";function Ql(t){return t instanceof Array?t:t==null?[]:[t]}function e8(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var FNt=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function RV(t){return Ci(t)&&!Tn(t)&&!(t instanceof Date)?t.value:t}function EZa(t){return Ci(t)&&!(t instanceof Array)}function x6n(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",o=n==="replaceAll";t=t||[],e=(e||[]).slice();var s=Ur();Ie(e,function(c,u){if(!Ci(c)){e[u]=null;return}});var l=SZa(t,s,n);return(r||a)&&wZa(l,t,s,e),r&&_Za(l,e),r||a?TZa(l,e,a):o&&CZa(l,e),kZa(l),l}function SZa(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var o=t[a];o&&o.id!=null&&e.set(o.id,a),r.push({existing:n==="replaceMerge"||sre(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function wZa(t,e,n,r){Ie(r,function(a,o){if(!(!a||a.id==null)){var s=vee(a.id),l=n.get(s);if(l!=null){var c=t[l];Tv(!c.newOption,'Duplicated option on id "'+s+'".'),c.newOption=a,c.existing=e[l],r[o]=null}}})}function _Za(t,e){Ie(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var o=t[a].existing;if(!t[a].newOption&&o&&(o.id==null||n.id==null)&&!sre(n)&&!sre(o)&&E6n("name",o,n)){t[a].newOption=n,e[r]=null;return}}})}function TZa(t,e,n){Ie(e,function(r){if(r){for(var a,o=0;(a=t[o])&&(a.newOption||sre(a.existing)||a.existing&&r.id!=null&&!E6n("id",r,a.existing));)o++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function CZa(t,e){Ie(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function kZa(t){var e=Ur();Ie(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),Ie(t,function(n){var r=n.newOption;Tv(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),Ie(t,function(n,r){var a=n.existing,o=n.newOption,s=n.keyInfo;if(Ci(o)){if(s.name=o.name!=null?vee(o.name):a?a.name:y6n+r,a)s.id=vee(a.id);else if(o.id!=null)s.id=vee(o.id);else{var l=0;do s.id="\0"+s.name+"\0"+l++;while(e.get(s.id))}e.set(s.id,n)}})}function E6n(t,e,n){var r=Lf(e[t],null),a=Lf(n[t],null);return r!=null&&a!=null&&r===a}function vee(t){return Lf(t,"")}function Lf(t,e){return t==null?e:vr(t)?t:cs(t)||T1e(t)?t+"":e}function cot(t){var e=t.name;return!!(e&&e.indexOf(y6n))}function sre(t){return t&&t.id!=null&&vee(t.id).indexOf(b6n)===0}function RZa(t){return b6n+t}function MZa(t,e,n){Ie(t,function(r){var a=r.newOption;Ci(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=NZa(e,a,r.existing,n))})}function NZa(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function IZa(t,e){var n={},r={};return a(t||[],n),a(e||[],r,n),[o(n),o(r)];function a(s,l,c){for(var u=0,d=s.length;u<d;u++){var h=Lf(s[u].seriesId,null);if(h==null)return;for(var f=Ql(s[u].dataIndex),p=c&&c[h],m=0,g=f.length;m<g;m++){var v=f[m];p&&p[v]?p[v]=null:(l[h]||(l[h]={}))[v]=1}}}function o(s,l){var c=[];for(var u in s)if(s.hasOwnProperty(u)&&s[u]!=null)if(l)c.push(+u);else{var d=o(s[u],!0);d.length&&c.push({seriesId:u,dataIndex:d})}return c}}function t8(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Tn(e.dataIndex)?Rn(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Tn(e.name)?Rn(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function ds(){var t="__ec_inner_"+PZa++;return function(e){return e[t]||(e[t]={})}}var PZa=v6n();function Aee(t,e,n){var r=uot(e,n),a=r.mainTypeSpecified,o=r.queryOptionMap,s=r.others,l=s,c=n?n.defaultMainType:null;return!a&&c&&o.set(c,{}),o.each(function(u,d){var h=nse(t,d,u,{useDefault:c===d,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});l[d+"Models"]=h.models,l[d+"Model"]=h.models[0]}),l}function uot(t,e){var n;if(vr(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=Ur(),o={},s=!1;return Ie(n,function(l,c){if(c==="dataIndex"||c==="dataIndexInside"){o[c]=l;return}var u=c.match(/^(\w+)(Index|Id|Name)$/)||[],d=u[1],h=(u[2]||"").toLowerCase();if(!(!d||!h||e&&e.includeMainTypes&&za(e.includeMainTypes,d)<0)){s=s||!!d;var f=a.get(d)||a.set(d,{});f[h]=l}}),{mainTypeSpecified:s,queryOptionMap:a,others:o}}var Qh={useDefault:!0,enableAll:!1,enableNone:!1},OZa={useDefault:!1,enableAll:!0,enableNone:!0};function nse(t,e,n,r){r=r||Qh;var a=n.index,o=n.id,s=n.name,l={models:null,specified:a!=null||o!=null||s!=null};if(!l.specified){var c=void 0;return l.models=r.useDefault&&(c=t.getComponent(e))?[c]:[],l}return a==="none"||a===!1?(Tv(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):(a==="all"&&(Tv(r.enableAll,'`"all"` is not a valid value on index option.'),a=o=s=null),l.models=t.queryComponents({mainType:e,index:a,id:o,name:s}),l)}function S6n(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function LZa(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function BZa(t){return t==="auto"?ls.domSupported?"html":"richText":t||"html"}function BKe(t,e){var n=Ur(),r=[];return Ie(t,function(a){var o=e(a);(n.get(o)||(r.push(o),n.set(o,[]))).push(a)}),{keys:r,buckets:n}}function w6n(t,e,n,r,a){var o=e==null||e==="auto";if(r==null)return r;if(cs(r)){var s=$Nt(n||0,r,a);return fd(s,o?Math.max(ow(n||0),ow(r)):e)}else{if(vr(r))return a<1?n:r;for(var l=[],c=n,u=r,d=Math.max(c?c.length:0,u.length),h=0;h<d;++h){var f=t.getDimensionInfo(h);if(f&&f.type==="ordinal")l[h]=(a<1&&c?c:u)[h];else{var p=c&&c[h]?c[h]:0,m=u[h],s=$Nt(p,m,a);l[h]=fd(s,o?Math.max(ow(p),ow(m)):e)}}return l}}var DZa=".",B4="___EC__COMPONENT__CONTAINER___",_6n="___EC__EXTENDED_CLASS___";function o2(t){var e={main:"",sub:""};if(t){var n=t.split(DZa);e.main=n[0]||"",e.sub=n[1]||""}return e}function $Za(t){Tv(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function FZa(t){return!!(t&&t[_6n])}function dot(t,e){t.$constructor=t,t.extend=function(n){var r=this,a;return jZa(r)?a=function(o){nn(s,o);function s(){return o.apply(this,arguments)||this}return s}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},Yat(a,this)),An(a.prototype,n),a[_6n]=!0,a.extend=this.extend,a.superCall=zZa,a.superApply=GZa,a.superClass=r,a}}function jZa(t){return ai(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function T6n(t,e){t.extend=e.extend}var HZa=Math.round(Math.random()*10);function UZa(t){var e=["__\0is_clz",HZa++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function zZa(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function GZa(t,e,n){return this.superClass.prototype[e].apply(t,n)}function zTe(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){$Za(a),r.prototype.type=a;var o=o2(a);if(!o.sub)e[o.main]=r;else if(o.sub!==B4){var s=n(o);s[o.sub]=r}}return r},t.getClass=function(r,a,o){var s=e[r];if(s&&s[B4]&&(s=a?s[a]:null),o&&!s)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return s},t.getClassesByMainType=function(r){var a=o2(r),o=[],s=e[a.main];return s&&s[B4]?Ie(s,function(l,c){c!==B4&&o.push(l)}):o.push(s),o},t.hasClass=function(r){var a=o2(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return Ie(e,function(a,o){r.push(o)}),r},t.hasSubTypes=function(r){var a=o2(r),o=e[a.main];return o&&o[B4]};function n(r){var a=e[r.main];return(!a||!a[B4])&&(a=e[r.main]={},a[B4]=!0),a}}function n8(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,o){for(var s={},l=0;l<t.length;l++){var c=t[l][1];if(!(a&&za(a,c)>=0||o&&za(o,c)<0)){var u=r.getShallow(c,e);u!=null&&(s[t[l][0]]=u)}}return s}}var VZa=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],KZa=n8(VZa),WZa=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return KZa(this,e,n)},t}(),DKe=new ese(50);function QZa(t){if(typeof t=="string"){var e=DKe.get(t);return e&&e.image}else return t}function hot(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var o=DKe.get(t),s={hostEl:n,cb:r,cbPayload:a};return o?(e=o.image,!GTe(e)&&o.pending.push(s)):(e=Bw.loadImage(t,jNt,jNt),e.__zrImageSrc=t,DKe.put(t,e.__cachedImgObj={image:e,pending:[s]})),e}else return t;else return e}function jNt(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function GTe(t){return t&&t.width&&t.height}var VDe=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function C6n(t,e,n,r,a){if(!e)return"";var o=(t+"").split(`
`);a=k6n(e,n,r,a);for(var s=0,l=o.length;s<l;s++)o[s]=R6n(o[s],a);return o.join(`
`)}function k6n(t,e,n,r){r=r||{};var a=An({},r);a.font=e,n=pa(n,"..."),a.maxIterations=pa(r.maxIterations,2);var o=a.minChar=pa(r.minChar,0);a.cnCharWidth=Uy("国",e);var s=a.ascCharWidth=Uy("a",e);a.placeholder=pa(r.placeholder,"");for(var l=t=Math.max(0,t-1),c=0;c<o&&l>=s;c++)l-=s;var u=Uy(n,e);return u>l&&(n="",u=0),l=t-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=l,a.containerWidth=t,a}function R6n(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var o=Uy(t,r);if(o<=n)return t;for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?qZa(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Uy(t,r)}return t===""&&(t=e.placeholder),t}function qZa(t,e,n,r){for(var a=0,o=0,s=t.length;o<s&&a<e;o++){var l=t.charCodeAt(o);a+=0<=l&&l<=127?n:r}return o}function YZa(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,o=n==="truncate",s=HTe(a),l=pa(e.lineHeight,s),c=!!e.backgroundColor,u=e.lineOverflow==="truncate",d=e.width,h;d!=null&&(n==="break"||n==="breakAll")?h=t?M6n(t,e.font,d,n==="breakAll",0).lines:[]:h=t?t.split(`
`):[];var f=h.length*l,p=pa(e.height,f);if(f>p&&u){var m=Math.floor(p/l);h=h.slice(0,m)}if(t&&o&&d!=null)for(var g=k6n(d,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<h.length;v++)h[v]=R6n(h[v],g);for(var A=p,y=0,v=0;v<h.length;v++)y=Math.max(Uy(h[v],a),y);d==null&&(d=y);var S=y;return r&&(A+=r[0]+r[2],S+=r[1]+r[3],d+=r[1]+r[3]),c&&(S=d),{lines:h,height:p,outerWidth:S,outerHeight:A,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:f,width:d}}var JZa=function(){function t(){}return t}(),HNt=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),ZZa=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function XZa(t,e){var n=new ZZa;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,a=e.height,o=e.overflow,s=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,l=VDe.lastIndex=0,c;(c=VDe.exec(t))!=null;){var u=c.index;u>l&&KDe(n,t.substring(l,u),e,s),KDe(n,c[2],e,s,c[1]),l=VDe.lastIndex}l<t.length&&KDe(n,t.substring(l,t.length),e,s);var d=[],h=0,f=0,p=e.padding,m=o==="truncate",g=e.lineOverflow==="truncate";function v(B,j,H){B.width=j,B.lineHeight=H,h+=H,f=Math.max(f,j)}e:for(var A=0;A<n.lines.length;A++){for(var y=n.lines[A],S=0,x=0,w=0;w<y.tokens.length;w++){var _=y.tokens[w],C=_.styleName&&e.rich[_.styleName]||{},R=_.textPadding=C.padding,k=R?R[1]+R[3]:0,P=_.font=C.font||e.font;_.contentHeight=HTe(P);var N=pa(C.height,_.contentHeight);if(_.innerHeight=N,R&&(N+=R[0]+R[2]),_.height=N,_.lineHeight=Aw(C.lineHeight,e.lineHeight,N),_.align=C&&C.align||e.align,_.verticalAlign=C&&C.verticalAlign||"middle",g&&a!=null&&h+_.lineHeight>a){w>0?(y.tokens=y.tokens.slice(0,w),v(y,x,S),n.lines=n.lines.slice(0,A+1)):n.lines=n.lines.slice(0,A);break e}var L=C.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")_.percentWidth=L,d.push(_),_.contentWidth=Uy(_.text,P);else{if(I){var b=C.backgroundColor,T=b&&b.image;T&&(T=QZa(T),GTe(T)&&(_.width=Math.max(_.width,T.width*N/T.height)))}var M=m&&r!=null?r-x:null;M!=null&&M<_.width?!I||M<k?(_.text="",_.width=_.contentWidth=0):(_.text=C6n(_.text,M-k,P,e.ellipsis,{minChar:e.truncateMinChar}),_.width=_.contentWidth=Uy(_.text,P)):_.contentWidth=Uy(_.text,P)}_.width+=k,x+=_.width,C&&(S=Math.max(S,_.lineHeight))}v(y,x,S)}n.outerWidth=n.width=pa(r,f),n.outerHeight=n.height=pa(a,h),n.contentHeight=h,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var A=0;A<d.length;A++){var _=d[A],D=_.percentWidth;_.width=parseInt(D,10)/100*n.width}return n}function KDe(t,e,n,r,a){var o=e==="",s=a&&n.rich[a]||{},l=t.lines,c=s.font||n.font,u=!1,d,h;if(r){var f=s.padding,p=f?f[1]+f[3]:0;if(s.width!=null&&s.width!=="auto"){var m=$w(s.width,r.width)+p;l.length>0&&m+r.accumWidth>r.width&&(d=e.split(`
`),u=!0),r.accumWidth=m}else{var g=M6n(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,h=g.linesWidths,d=g.lines}}else d=e.split(`
`);for(var v=0;v<d.length;v++){var A=d[v],y=new JZa;if(y.styleName=a,y.text=A,y.isLineHolder=!A&&!o,typeof s.width=="number"?y.width=s.width:y.width=h?h[v]:Uy(A,c),!v&&!u){var S=(l[l.length-1]||(l[0]=new HNt)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=y:(A||!x||o)&&S.push(y)}else l.push(new HNt([y]))}}function eXa(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var tXa=Zx(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function nXa(t){return eXa(t)?!!tXa[t]:!0}function M6n(t,e,n,r,a){for(var o=[],s=[],l="",c="",u=0,d=0,h=0;h<t.length;h++){var f=t.charAt(h);if(f===`
`){c&&(l+=c,d+=u),o.push(l),s.push(d),l="",c="",u=0,d=0;continue}var p=Uy(f,e),m=r?!1:!nXa(f);if(o.length?d+p>n:a+d+p>n){d?(l||c)&&(m?(l||(l=c,c="",u=0,d=u),o.push(l),s.push(d-u),c+=f,u+=p,l="",d=u):(c&&(l+=c,c="",u=0),o.push(l),s.push(d),l=f,d=p)):m?(o.push(c),s.push(u),c=f,u=p):(o.push(f),s.push(p));continue}d+=p,m?(c+=f,u+=p):(c&&(l+=c,c="",u=0),l+=f)}return!o.length&&!l&&(l=t,c="",u=0),c&&(l+=c),l&&(o.push(l),s.push(d)),o.length===1&&(d+=a),{accumWidth:d,lines:o,linesWidths:s}}var $Ke="__zr_style_"+Math.round(Math.random()*10),ID={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},VTe={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ID[$Ke]=!0;var UNt=["z","z2","invisible"],rXa=["invisible"],iXa=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=bo(n),a=0;a<r.length;a++){var o=r[a];o==="style"?this.useStyle(n[o]):t.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,a,o){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&aXa(this,n,r)||s&&!s[0]&&!s[3])return!1;if(a&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(o&&this.parent)for(var c=this.parent;c;){if(c.ignore)return!1;c=c.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),o=this.style,s=o.shadowBlur||0,l=o.shadowOffsetX||0,c=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Da(0,0,0,0)),r?Da.applyTransform(n,a,r):n.copy(a),(s||l||c)&&(n.width+=s*2+Math.abs(l),n.height+=s*2+Math.abs(c),n.x=Math.min(n.x,n.x+l-s),n.y=Math.min(n.y,n.y+c-s));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Da(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:An(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=MZ,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&MZ)},e.prototype.styleUpdated=function(){this.__dirty&=~MZ},e.prototype.createStyle=function(n){return Zoe(ID,n)},e.prototype.useStyle=function(n){n[$Ke]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[$Ke]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,UNt)},e.prototype._applyStateObj=function(n,r,a,o,s,l){t.prototype._applyStateObj.call(this,n,r,a,o,s,l);var c=!(r&&o),u;if(r&&r.style?s?o?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(u,r.style)):c&&(u=a.style),u)if(s){var d=this.style;if(this.style=this.createStyle(c?{}:d),c)for(var h=bo(d),f=0;f<h.length;f++){var p=h[f];p in u&&(u[p]=u[p],this.style[p]=d[p])}for(var m=bo(u),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(n,{style:u},l,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?rXa:UNt,f=0;f<g.length;f++){var p=g[f];r&&r[p]!=null?this[p]=r[p]:c&&a[p]!=null&&(this[p]=a[p])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var s=n[o];s.style&&(a=a||{},this._mergeStyle(a,s.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return An(n,r),n},e.prototype.getAnimationStyleProps=function(){return VTe},e.initDefaultProps=function(){var n=e.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=_y|MZ}(),e}(l6n),WDe=new Da(0,0,0,0),QDe=new Da(0,0,0,0);function aXa(t,e,n){return WDe.copy(t.getBoundingRect()),t.transform&&WDe.applyTransform(t.transform),QDe.width=e,QDe.height=n,!WDe.intersect(QDe)}const Xx=iXa;var zA=Math.min,GA=Math.max,qDe=Math.sin,YDe=Math.cos,D4=Math.PI*2,Dde=yO(),$de=yO(),Fde=yO();function KTe(t,e,n){if(t.length!==0){for(var r=t[0],a=r[0],o=r[0],s=r[1],l=r[1],c=1;c<t.length;c++)r=t[c],a=zA(a,r[0]),o=GA(o,r[0]),s=zA(s,r[1]),l=GA(l,r[1]);e[0]=a,e[1]=s,n[0]=o,n[1]=l}}function zNt(t,e,n,r,a,o){a[0]=zA(t,n),a[1]=zA(e,r),o[0]=GA(t,n),o[1]=GA(e,r)}var GNt=[],VNt=[];function oXa(t,e,n,r,a,o,s,l,c,u){var d=VDn,h=ap,f=d(t,n,a,s,GNt);c[0]=1/0,c[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<f;p++){var m=h(t,n,a,s,GNt[p]);c[0]=zA(m,c[0]),u[0]=GA(m,u[0])}f=d(e,r,o,l,VNt);for(var p=0;p<f;p++){var g=h(e,r,o,l,VNt[p]);c[1]=zA(g,c[1]),u[1]=GA(g,u[1])}c[0]=zA(t,c[0]),u[0]=GA(t,u[0]),c[0]=zA(s,c[0]),u[0]=GA(s,u[0]),c[1]=zA(e,c[1]),u[1]=GA(e,u[1]),c[1]=zA(l,c[1]),u[1]=GA(l,u[1])}function sXa(t,e,n,r,a,o,s,l){var c=WDn,u=Yp,d=GA(zA(c(t,n,a),1),0),h=GA(zA(c(e,r,o),1),0),f=u(t,n,a,d),p=u(e,r,o,h);s[0]=zA(t,a,f),s[1]=zA(e,o,p),l[0]=GA(t,a,f),l[1]=GA(e,o,p)}function lXa(t,e,n,r,a,o,s,l,c){var u=GR,d=VR,h=Math.abs(a-o);if(h%D4<1e-4&&h>1e-4){l[0]=t-n,l[1]=e-r,c[0]=t+n,c[1]=e+r;return}if(Dde[0]=YDe(a)*n+t,Dde[1]=qDe(a)*r+e,$de[0]=YDe(o)*n+t,$de[1]=qDe(o)*r+e,u(l,Dde,$de),d(c,Dde,$de),a=a%D4,a<0&&(a=a+D4),o=o%D4,o<0&&(o=o+D4),a>o&&!s?o+=D4:a<o&&s&&(a+=D4),s){var f=o;o=a,a=f}for(var p=0;p<o;p+=Math.PI/2)p>a&&(Fde[0]=YDe(p)*n+t,Fde[1]=qDe(p)*r+e,u(l,Fde,l),d(c,Fde,c))}var pc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$4=[],F4=[],Q_=[],gI=[],q_=[],Y_=[],JDe=Math.min,ZDe=Math.max,j4=Math.cos,H4=Math.sin,Pk=Math.abs,FKe=Math.PI,QI=FKe*2,XDe=typeof Float32Array<"u",Oq=[];function e6e(t){var e=Math.round(t/FKe*1e8)/1e8;return e%2*FKe}function fot(t,e){var n=e6e(t[0]);n<0&&(n+=QI);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=QI?a=n+QI:e&&n-a>=QI?a=n-QI:!e&&n>a?a=n+(QI-e6e(n-a)):e&&n<a&&(a=n-(QI-e6e(a-n))),t[0]=n,t[1]=a}var cXa=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=Pk(r/O1e/e)||0,this._uy=Pk(r/O1e/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(pc.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Pk(e-this._xi),a=Pk(n-this._yi),o=r>this._ux||a>this._uy;if(this.addData(pc.L,e,n),this._ctx&&o&&this._ctx.lineTo(e,n),o)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var s=r*r+a*a;s>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=s)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,o,s){return this._drawPendingPt(),this.addData(pc.C,e,n,r,a,o,s),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,o,s),this._xi=o,this._yi=s,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(pc.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,o,s){this._drawPendingPt(),Oq[0]=a,Oq[1]=o,fot(Oq,s),a=Oq[0],o=Oq[1];var l=o-a;return this.addData(pc.A,e,n,r,r,a,l,0,s?0:1),this._ctx&&this._ctx.arc(e,n,r,a,o,s),this._xi=j4(o)*r+e,this._yi=H4(o)*r+n,this},t.prototype.arcTo=function(e,n,r,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,o),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(pc.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(pc.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&XDe&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,o=0;o<n;o++)r+=e[o].len();XDe&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var o=0;o<n;o++)for(var s=e[o].data,l=0;l<s.length;l++)this.data[a++]=s[l];this._len=a},t.prototype.addData=function(e,n,r,a,o,s,l,c,u){if(this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var h=0;h<arguments.length;h++)d[this._len++]=arguments[h]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,XDe&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Q_[0]=Q_[1]=q_[0]=q_[1]=Number.MAX_VALUE,gI[0]=gI[1]=Y_[0]=Y_[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,o=0,s;for(s=0;s<this._len;){var l=e[s++],c=s===1;switch(c&&(n=e[s],r=e[s+1],a=n,o=r),l){case pc.M:n=a=e[s++],r=o=e[s++],q_[0]=a,q_[1]=o,Y_[0]=a,Y_[1]=o;break;case pc.L:zNt(n,r,e[s],e[s+1],q_,Y_),n=e[s++],r=e[s++];break;case pc.C:oXa(n,r,e[s++],e[s++],e[s++],e[s++],e[s],e[s+1],q_,Y_),n=e[s++],r=e[s++];break;case pc.Q:sXa(n,r,e[s++],e[s++],e[s],e[s+1],q_,Y_),n=e[s++],r=e[s++];break;case pc.A:var u=e[s++],d=e[s++],h=e[s++],f=e[s++],p=e[s++],m=e[s++]+p;s+=1;var g=!e[s++];c&&(a=j4(p)*h+u,o=H4(p)*f+d),lXa(u,d,h,f,p,m,g,q_,Y_),n=j4(m)*h+u,r=H4(m)*f+d;break;case pc.R:a=n=e[s++],o=r=e[s++];var v=e[s++],A=e[s++];zNt(a,o,a+v,o+A,q_,Y_);break;case pc.Z:n=a,r=o;break}GR(Q_,Q_,q_),VR(gI,gI,Y_)}return s===0&&(Q_[0]=Q_[1]=gI[0]=gI[1]=0),new Da(Q_[0],Q_[1],gI[0]-Q_[0],gI[1]-Q_[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,o=0,s=0,l=0,c=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,d=0,h=0,f=0;f<n;){var p=e[f++],m=f===1;m&&(o=e[f],s=e[f+1],l=o,c=s);var g=-1;switch(p){case pc.M:o=l=e[f++],s=c=e[f++];break;case pc.L:{var v=e[f++],A=e[f++],y=v-o,S=A-s;(Pk(y)>r||Pk(S)>a||f===n-1)&&(g=Math.sqrt(y*y+S*S),o=v,s=A);break}case pc.C:{var x=e[f++],w=e[f++],v=e[f++],A=e[f++],_=e[f++],C=e[f++];g=AJa(o,s,x,w,v,A,_,C,10),o=_,s=C;break}case pc.Q:{var x=e[f++],w=e[f++],v=e[f++],A=e[f++];g=bJa(o,s,x,w,v,A,10),o=v,s=A;break}case pc.A:var R=e[f++],k=e[f++],P=e[f++],N=e[f++],L=e[f++],I=e[f++],b=I+L;f+=1,m&&(l=j4(L)*P+R,c=H4(L)*N+k),g=ZDe(P,N)*JDe(QI,Math.abs(I)),o=j4(b)*P+R,s=H4(b)*N+k;break;case pc.R:{l=o=e[f++],c=s=e[f++];var T=e[f++],M=e[f++];g=T*2+M*2;break}case pc.Z:{var y=l-o,S=c-s;g=Math.sqrt(y*y+S*S),o=l,s=c;break}}g>=0&&(u[h++]=g,d+=g)}return this._pathLen=d,d},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,o=this._uy,s=this._len,l,c,u,d,h,f,p=n<1,m,g,v=0,A=0,y,S=0,x,w;if(!(p&&(this._pathSegLen||this._calculateLength(),m=this._pathSegLen,g=this._pathLen,y=n*g,!y)))e:for(var _=0;_<s;){var C=r[_++],R=_===1;switch(R&&(u=r[_],d=r[_+1],l=u,c=d),C!==pc.L&&S>0&&(e.lineTo(x,w),S=0),C){case pc.M:l=u=r[_++],c=d=r[_++],e.moveTo(u,d);break;case pc.L:{h=r[_++],f=r[_++];var k=Pk(h-u),P=Pk(f-d);if(k>a||P>o){if(p){var N=m[A++];if(v+N>y){var L=(y-v)/N;e.lineTo(u*(1-L)+h*L,d*(1-L)+f*L);break e}v+=N}e.lineTo(h,f),u=h,d=f,S=0}else{var I=k*k+P*P;I>S&&(x=h,w=f,S=I)}break}case pc.C:{var b=r[_++],T=r[_++],M=r[_++],D=r[_++],B=r[_++],j=r[_++];if(p){var N=m[A++];if(v+N>y){var L=(y-v)/N;kP(u,b,M,B,L,$4),kP(d,T,D,j,L,F4),e.bezierCurveTo($4[1],F4[1],$4[2],F4[2],$4[3],F4[3]);break e}v+=N}e.bezierCurveTo(b,T,M,D,B,j),u=B,d=j;break}case pc.Q:{var b=r[_++],T=r[_++],M=r[_++],D=r[_++];if(p){var N=m[A++];if(v+N>y){var L=(y-v)/N;nre(u,b,M,L,$4),nre(d,T,D,L,F4),e.quadraticCurveTo($4[1],F4[1],$4[2],F4[2]);break e}v+=N}e.quadraticCurveTo(b,T,M,D),u=M,d=D;break}case pc.A:var H=r[_++],U=r[_++],$=r[_++],z=r[_++],Z=r[_++],K=r[_++],Q=r[_++],ee=!r[_++],X=$>z?$:z,te=Pk($-z)>.001,J=Z+K,ne=!1;if(p){var N=m[A++];v+N>y&&(J=Z+K*(y-v)/N,ne=!0),v+=N}if(te&&e.ellipse?e.ellipse(H,U,$,z,Q,Z,J,ee):e.arc(H,U,X,Z,J,ee),ne)break e;R&&(l=j4(Z)*$+H,c=H4(Z)*z+U),u=j4(J)*$+H,d=H4(J)*z+U;break;case pc.R:l=u=r[_],c=d=r[_+1],h=r[_++],f=r[_++];var ie=r[_++],he=r[_++];if(p){var N=m[A++];if(v+N>y){var de=y-v;e.moveTo(h,f),e.lineTo(h+JDe(de,ie),f),de-=ie,de>0&&e.lineTo(h+ie,f+JDe(de,he)),de-=he,de>0&&e.lineTo(h+ZDe(ie-de,0),f+he),de-=ie,de>0&&e.lineTo(h,f+ZDe(he-de,0));break e}v+=N}e.rect(h,f,ie,he);break;case pc.Z:if(p){var N=m[A++];if(v+N>y){var L=(y-v)/N;e.lineTo(u*(1-L)+l*L,d*(1-L)+c*L);break e}v+=N}e.closePath(),u=l,d=c}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=pc,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const iC=cXa;function f3(t,e,n,r,a,o,s){if(a===0)return!1;var l=a,c=0,u=t;if(s>e+l&&s>r+l||s<e-l&&s<r-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t!==n)c=(e-r)/(t-n),u=(t*r-n*e)/(t-n);else return Math.abs(o-t)<=l/2;var d=c*o-s+u,h=d*d/(c*c+1);return h<=l/2*l/2}function uXa(t,e,n,r,a,o,s,l,c,u,d){if(c===0)return!1;var h=c;if(d>e+h&&d>r+h&&d>o+h&&d>l+h||d<e-h&&d<r-h&&d<o-h&&d<l-h||u>t+h&&u>n+h&&u>a+h&&u>s+h||u<t-h&&u<n-h&&u<a-h&&u<s-h)return!1;var f=KDn(t,e,n,r,a,o,s,l,u,d,null);return f<=h/2}function N6n(t,e,n,r,a,o,s,l,c){if(s===0)return!1;var u=s;if(c>e+u&&c>r+u&&c>o+u||c<e-u&&c<r-u&&c<o-u||l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u)return!1;var d=QDn(t,e,n,r,a,o,l,c,null);return d<=u/2}var KNt=Math.PI*2;function Oy(t){return t%=KNt,t<0&&(t+=KNt),t}var Lq=Math.PI*2;function dXa(t,e,n,r,a,o,s,l,c){if(s===0)return!1;var u=s;l-=t,c-=e;var d=Math.sqrt(l*l+c*c);if(d-u>n||d+u<n)return!1;if(Math.abs(r-a)%Lq<1e-4)return!0;if(o){var h=r;r=Oy(a),a=Oy(h)}else r=Oy(r),a=Oy(a);r>a&&(a+=Lq);var f=Math.atan2(c,l);return f<0&&(f+=Lq),f>=r&&f<=a||f+Lq>=r&&f+Lq<=a}function gR(t,e,n,r,a,o){if(o>e&&o>r||o<e&&o<r||r===e)return 0;var s=(o-e)/(r-e),l=r<e?1:-1;(s===1||s===0)&&(l=r<e?.5:-.5);var c=s*(n-t)+t;return c===a?1/0:c>a?l:0}var vI=iC.CMD,U4=Math.PI*2,hXa=1e-4;function fXa(t,e){return Math.abs(t-e)<hXa}var b0=[-1,-1,-1],ex=[-1,-1];function pXa(){var t=ex[0];ex[0]=ex[1],ex[1]=t}function mXa(t,e,n,r,a,o,s,l,c,u){if(u>e&&u>r&&u>o&&u>l||u<e&&u<r&&u<o&&u<l)return 0;var d=M1e(e,r,o,l,u,b0);if(d===0)return 0;for(var h=0,f=-1,p=void 0,m=void 0,g=0;g<d;g++){var v=b0[g],A=v===0||v===1?.5:1,y=ap(t,n,a,s,v);y<c||(f<0&&(f=VDn(e,r,o,l,ex),ex[1]<ex[0]&&f>1&&pXa(),p=ap(e,r,o,l,ex[0]),f>1&&(m=ap(e,r,o,l,ex[1]))),f===2?v<ex[0]?h+=p<e?A:-A:v<ex[1]?h+=m<p?A:-A:h+=l<m?A:-A:v<ex[0]?h+=p<e?A:-A:h+=l<p?A:-A)}return h}function gXa(t,e,n,r,a,o,s,l){if(l>e&&l>r&&l>o||l<e&&l<r&&l<o)return 0;var c=yJa(e,r,o,l,b0);if(c===0)return 0;var u=WDn(e,r,o);if(u>=0&&u<=1){for(var d=0,h=Yp(e,r,o,u),f=0;f<c;f++){var p=b0[f]===0||b0[f]===1?.5:1,m=Yp(t,n,a,b0[f]);m<s||(b0[f]<u?d+=h<e?p:-p:d+=o<h?p:-p)}return d}else{var p=b0[0]===0||b0[0]===1?.5:1,m=Yp(t,n,a,b0[0]);return m<s?0:o<e?p:-p}}function vXa(t,e,n,r,a,o,s,l){if(l-=e,l>n||l<-n)return 0;var c=Math.sqrt(n*n-l*l);b0[0]=-c,b0[1]=c;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=U4-1e-4){r=0,a=U4;var d=o?1:-1;return s>=b0[0]+t&&s<=b0[1]+t?d:0}if(r>a){var h=r;r=a,a=h}r<0&&(r+=U4,a+=U4);for(var f=0,p=0;p<2;p++){var m=b0[p];if(m+t>s){var g=Math.atan2(l,m),d=o?1:-1;g<0&&(g=U4+g),(g>=r&&g<=a||g+U4>=r&&g+U4<=a)&&(g>Math.PI/2&&g<Math.PI*1.5&&(d=-d),f+=d)}}return f}function I6n(t,e,n,r,a){for(var o=t.data,s=t.len(),l=0,c=0,u=0,d=0,h=0,f,p,m=0;m<s;){var g=o[m++],v=m===1;switch(g===vI.M&&m>1&&(n||(l+=gR(c,u,d,h,r,a))),v&&(c=o[m],u=o[m+1],d=c,h=u),g){case vI.M:d=o[m++],h=o[m++],c=d,u=h;break;case vI.L:if(n){if(f3(c,u,o[m],o[m+1],e,r,a))return!0}else l+=gR(c,u,o[m],o[m+1],r,a)||0;c=o[m++],u=o[m++];break;case vI.C:if(n){if(uXa(c,u,o[m++],o[m++],o[m++],o[m++],o[m],o[m+1],e,r,a))return!0}else l+=mXa(c,u,o[m++],o[m++],o[m++],o[m++],o[m],o[m+1],r,a)||0;c=o[m++],u=o[m++];break;case vI.Q:if(n){if(N6n(c,u,o[m++],o[m++],o[m],o[m+1],e,r,a))return!0}else l+=gXa(c,u,o[m++],o[m++],o[m],o[m+1],r,a)||0;c=o[m++],u=o[m++];break;case vI.A:var A=o[m++],y=o[m++],S=o[m++],x=o[m++],w=o[m++],_=o[m++];m+=1;var C=!!(1-o[m++]);f=Math.cos(w)*S+A,p=Math.sin(w)*x+y,v?(d=f,h=p):l+=gR(c,u,f,p,r,a);var R=(r-A)*x/S+A;if(n){if(dXa(A,y,x,w,w+_,C,e,R,a))return!0}else l+=vXa(A,y,x,w,w+_,C,R,a);c=Math.cos(w+_)*S+A,u=Math.sin(w+_)*x+y;break;case vI.R:d=c=o[m++],h=u=o[m++];var k=o[m++],P=o[m++];if(f=d+k,p=h+P,n){if(f3(d,h,f,h,e,r,a)||f3(f,h,f,p,e,r,a)||f3(f,p,d,p,e,r,a)||f3(d,p,d,h,e,r,a))return!0}else l+=gR(f,h,f,p,r,a),l+=gR(d,p,d,h,r,a);break;case vI.Z:if(n){if(f3(c,u,d,h,e,r,a))return!0}else l+=gR(c,u,d,h,r,a);c=d,u=h;break}}return!n&&!fXa(u,h)&&(l+=gR(c,u,d,h,r,a)||0),l!==0}function AXa(t,e,n){return I6n(t,0,!1,e,n)}function yXa(t,e,n,r){return I6n(t,e,!0,n,r)}var B1e=bi({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ID),bXa={style:bi({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},VTe.style)},t6e=nC.concat(["invisible","culling","z","z2","zlevel","parent"]),xXa=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(c){n.buildPath(c,n.shape)}),a.silent=!0;var o=a.style;for(var s in r)o[s]!==r[s]&&(o[s]=r[s]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var l=0;l<t6e.length;++l)a[t6e[l]]=this[t6e[l]];a.__dirty|=_y}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=bo(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var o=0;o<r.length;o++){var s=r[o],l=n[s];s==="style"?this.style?An(this.style,l):this.useStyle(l):s==="shape"?An(this.shape,l):t.prototype.attrKV.call(this,s,l)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(vr(n)){var r=are(n,0);return r>.5?MKe:r>.2?nZa:NKe}else if(n)return NKe}return MKe},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(vr(r)){var a=this.__zr,o=!!(a&&a.isDarkMode()),s=are(n,0)<RKe;if(o===s)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~fF},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new iC(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var s=this.path;(o||this.__dirty&fF)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),n=s.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){l.copy(n);var c=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;u=Math.max(u,d??4)}c>1e-10&&(l.width+=u/c,l.height+=u/c,l.x-=u/c/2,l.y-=u/c/2)}return l}return n},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),s=this.style;if(n=a[0],r=a[1],o.contain(n,r)){var l=this.path;if(this.hasStroke()){var c=s.lineWidth,u=s.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),yXa(l,c/u,n,r)))return!0}if(this.hasFill())return AXa(l,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=fF,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:An(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&fF)},e.prototype.createStyle=function(n){return Zoe(B1e,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=An({},this.shape))},e.prototype._applyStateObj=function(n,r,a,o,s,l){t.prototype._applyStateObj.call(this,n,r,a,o,s,l);var c=!(r&&o),u;if(r&&r.shape?s?o?u=r.shape:(u=An({},a.shape),An(u,r.shape)):(u=An({},o?this.shape:a.shape),An(u,r.shape)):c&&(u=a.shape),u)if(s){this.shape=An({},this.shape);for(var d={},h=bo(u),f=0;f<h.length;f++){var p=h[f];typeof u[p]=="object"?this.shape[p]=u[p]:d[p]=u[p]}this._transitionState(n,{shape:d},l)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var s=n[o];s.shape&&(a=a||{},this._mergeStyle(a,s.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return bXa},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(o){Qc(s,o);function s(l){var c=o.call(this,l)||this;return n.init&&n.init.call(c,l),c}return s.prototype.getDefaultStyle=function(){return ji(n.style)},s.prototype.getDefaultShape=function(){return ji(n.shape)},s}(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=_y|MZ|fF}(),e}(Xx);const no=xXa;var EXa=bi({strokeFirst:!0,font:CP,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},B1e),P6n=function(t){Qc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return Zoe(EXa,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=tse(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(Xx);P6n.prototype.type="tspan";const lre=P6n;var SXa=bi({x:0,y:0},ID),wXa={style:bi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},VTe.style)};function _Xa(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var O6n=function(t){Qc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return Zoe(SXa,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var o=_Xa(r.image)?r.image:this.__image;if(!o)return 0;var s=n==="width"?"height":"width",l=r[s];return l==null?o[n]:o[n]/o[s]*l},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return wXa},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Da(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Xx);O6n.prototype.type="image";const fm=O6n;function TXa(t,e){var n=e.x,r=e.y,a=e.width,o=e.height,s=e.r,l,c,u,d;a<0&&(n=n+a,a=-a),o<0&&(r=r+o,o=-o),typeof s=="number"?l=c=u=d=s:s instanceof Array?s.length===1?l=c=u=d=s[0]:s.length===2?(l=u=s[0],c=d=s[1]):s.length===3?(l=s[0],c=d=s[1],u=s[2]):(l=s[0],c=s[1],u=s[2],d=s[3]):l=c=u=d=0;var h;l+c>a&&(h=l+c,l*=a/h,c*=a/h),u+d>a&&(h=u+d,u*=a/h,d*=a/h),c+u>o&&(h=c+u,c*=o/h,u*=o/h),l+d>o&&(h=l+d,l*=o/h,d*=o/h),t.moveTo(n+l,r),t.lineTo(n+a-c,r),c!==0&&t.arc(n+a-c,r+c,c,-Math.PI/2,0),t.lineTo(n+a,r+o-u),u!==0&&t.arc(n+a-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+d,r+o),d!==0&&t.arc(n+d,r+o-d,d,Math.PI/2,Math.PI),t.lineTo(n,r+l),l!==0&&t.arc(n+l,r+l,l,Math.PI,Math.PI*1.5)}var aj=Math.round;function L6n(t,e,n){if(e){var r=e.x1,a=e.x2,o=e.y1,s=e.y2;t.x1=r,t.x2=a,t.y1=o,t.y2=s;var l=n&&n.lineWidth;return l&&(aj(r*2)===aj(a*2)&&(t.x1=t.x2=ZB(r,l,!0)),aj(o*2)===aj(s*2)&&(t.y1=t.y2=ZB(o,l,!0))),t}}function B6n(t,e,n){if(e){var r=e.x,a=e.y,o=e.width,s=e.height;t.x=r,t.y=a,t.width=o,t.height=s;var l=n&&n.lineWidth;return l&&(t.x=ZB(r,l,!0),t.y=ZB(a,l,!0),t.width=Math.max(ZB(r+o,l,!1)-t.x,o===0?0:1),t.height=Math.max(ZB(a+s,l,!1)-t.y,s===0?0:1)),t}}function ZB(t,e,n){if(!e)return t;var r=aj(t*2);return(r+aj(e))%2===0?r/2:(r+(n?1:-1))/2}var CXa=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),kXa={},D6n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new CXa},e.prototype.buildPath=function(n,r){var a,o,s,l;if(this.subPixelOptimize){var c=B6n(kXa,r,this.style);a=c.x,o=c.y,s=c.width,l=c.height,c.r=r.r,r=c}else a=r.x,o=r.y,s=r.width,l=r.height;r.r?TXa(n,r):n.rect(a,o,s,l)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(no);D6n.prototype.type="rect";const Zo=D6n;var WNt={fill:"#000"},QNt=2,RXa={style:bi({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},VTe.style)},$6n=function(t){Qc(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=WNt,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,IXa(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Da(0,0,0,0),r=this._children,a=[],o=null,s=0;s<r.length;s++){var l=r[s],c=l.getBoundingRect(),u=l.getLocalTransform(a);u?(n.copy(c),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||c.clone(),o.union(c))}this._rect=o||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||WNt},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,o=n.rich||a&&{};return An(n,r),a&&o?(this._mergeRich(o,a),n.rich=o):o&&(n.rich=o),n},e.prototype._mergeRich=function(n,r){for(var a=bo(r),o=0;o<a.length;o++){var s=a[o];n[s]=n[s]||{},An(n[s],r[s])}},e.prototype.getAnimationStyleProps=function(){return RXa},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||CP,a=n.padding,o=tIt(n),s=YZa(o,n),l=n6e(n),c=!!n.backgroundColor,u=s.outerHeight,d=s.outerWidth,h=s.contentWidth,f=s.lines,p=s.lineHeight,m=this._defaultStyle,g=n.x||0,v=n.y||0,A=n.align||m.align||"left",y=n.verticalAlign||m.verticalAlign||"top",S=g,x=pF(v,s.contentHeight,y);if(l||a){var w=IZ(g,d,A),_=pF(v,u,y);l&&this._renderBackground(n,n,w,_,d,u)}x+=p/2,a&&(S=eIt(g,A,a),y==="top"?x+=a[0]:y==="bottom"&&(x-=a[2]));for(var C=0,R=!1,k=XNt("fill"in n?n.fill:(R=!0,m.fill)),P=ZNt("stroke"in n?n.stroke:!c&&(!m.autoStroke||R)?(C=QNt,m.stroke):null),N=n.textShadowBlur>0,L=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),I=s.calculatedLineHeight,b=0;b<f.length;b++){var T=this._getOrCreateChild(lre),M=T.createStyle();T.useStyle(M),M.text=f[b],M.x=S,M.y=x,A&&(M.textAlign=A),M.textBaseline="middle",M.opacity=n.opacity,M.strokeFirst=!0,N&&(M.shadowBlur=n.textShadowBlur||0,M.shadowColor=n.textShadowColor||"transparent",M.shadowOffsetX=n.textShadowOffsetX||0,M.shadowOffsetY=n.textShadowOffsetY||0),M.stroke=P,M.fill=k,P&&(M.lineWidth=n.lineWidth||C,M.lineDash=n.lineDash,M.lineDashOffset=n.lineDashOffset||0),M.font=r,YNt(M,n),x+=p,L&&T.setBoundingRect(new Da(IZ(M.x,n.width,M.textAlign),pF(M.y,I,M.textBaseline),h,I))}},e.prototype._updateRichTexts=function(){var n=this.style,r=tIt(n),a=XZa(r,n),o=a.width,s=a.outerWidth,l=a.outerHeight,c=n.padding,u=n.x||0,d=n.y||0,h=this._defaultStyle,f=n.align||h.align,p=n.verticalAlign||h.verticalAlign,m=IZ(u,s,f),g=pF(d,l,p),v=m,A=g;c&&(v+=c[3],A+=c[0]);var y=v+o;n6e(n)&&this._renderBackground(n,n,m,g,s,l);for(var S=!!n.backgroundColor,x=0;x<a.lines.length;x++){for(var w=a.lines[x],_=w.tokens,C=_.length,R=w.lineHeight,k=w.width,P=0,N=v,L=y,I=C-1,b=void 0;P<C&&(b=_[P],!b.align||b.align==="left");)this._placeToken(b,n,R,A,N,"left",S),k-=b.width,N+=b.width,P++;for(;I>=0&&(b=_[I],b.align==="right");)this._placeToken(b,n,R,A,L,"right",S),k-=b.width,L-=b.width,I--;for(N+=(o-(N-v)-(y-L)-k)/2;P<=I;)b=_[P],this._placeToken(b,n,R,A,N+b.width/2,"center",S),N+=b.width,P++;A+=R}},e.prototype._placeToken=function(n,r,a,o,s,l,c){var u=r.rich[n.styleName]||{};u.text=n.text;var d=n.verticalAlign,h=o+a/2;d==="top"?h=o+n.height/2:d==="bottom"&&(h=o+a-n.height/2);var f=!n.isLineHolder&&n6e(u);f&&this._renderBackground(u,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,h-n.height/2,n.width,n.height);var p=!!u.backgroundColor,m=n.textPadding;m&&(s=eIt(s,l,m),h-=n.height/2-m[0]-n.innerHeight/2);var g=this._getOrCreateChild(lre),v=g.createStyle();g.useStyle(v);var A=this._defaultStyle,y=!1,S=0,x=XNt("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,A.fill)),w=ZNt("stroke"in u?u.stroke:"stroke"in r?r.stroke:!p&&!c&&(!A.autoStroke||y)?(S=QNt,A.stroke):null),_=u.textShadowBlur>0||r.textShadowBlur>0;v.text=n.text,v.x=s,v.y=h,_&&(v.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,v.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),v.textAlign=l,v.textBaseline="middle",v.font=n.font||CP,v.opacity=Aw(u.opacity,r.opacity,1),YNt(v,u),w&&(v.lineWidth=Aw(u.lineWidth,r.lineWidth,S),v.lineDash=pa(u.lineDash,r.lineDash),v.lineDashOffset=r.lineDashOffset||0,v.stroke=w),x&&(v.fill=x);var C=n.contentWidth,R=n.contentHeight;g.setBoundingRect(new Da(IZ(v.x,C,v.textAlign),pF(v.y,R,v.textBaseline),C,R))},e.prototype._renderBackground=function(n,r,a,o,s,l){var c=n.backgroundColor,u=n.borderWidth,d=n.borderColor,h=c&&c.image,f=c&&!h,p=n.borderRadius,m=this,g,v;if(f||n.lineHeight||u&&d){g=this._getOrCreateChild(Zo),g.useStyle(g.createStyle()),g.style.fill=null;var A=g.shape;A.x=a,A.y=o,A.width=s,A.height=l,A.r=p,g.dirtyShape()}if(f){var y=g.style;y.fill=c||null,y.fillOpacity=pa(n.fillOpacity,1)}else if(h){v=this._getOrCreateChild(fm),v.onload=function(){m.dirtyStyle()};var S=v.style;S.image=c.image,S.x=a,S.y=o,S.width=s,S.height=l}if(u&&d){var y=g.style;y.lineWidth=u,y.stroke=d,y.strokeOpacity=pa(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(g||v).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=Aw(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return j6n(n)&&(r=[n.fontStyle,n.fontWeight,F6n(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&_x(r)||n.textFont||n.font},e}(Xx),MXa={left:!0,right:1,center:1},NXa={top:1,bottom:1,middle:1},qNt=["fontStyle","fontWeight","fontSize","fontFamily"];function F6n(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Kat+"px":t+"px"}function YNt(t,e){for(var n=0;n<qNt.length;n++){var r=qNt[n],a=e[r];a!=null&&(t[r]=a)}}function j6n(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function IXa(t){return JNt(t),Ie(t.rich,JNt),t}function JNt(t){if(t){t.font=$6n.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||MXa[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||NXa[n]?n:"top";var r=t.padding;r&&(t.padding=DTe(t.padding))}}function ZNt(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function XNt(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function eIt(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function tIt(t){var e=t.text;return e!=null&&(e+=""),e}function n6e(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Jo=$6n;var ia=ds(),jKe=function(t,e,n,r){if(r){var a=ia(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",r.type==="group"&&r.traverse(function(o){var s=ia(o);s.seriesIndex=t,s.dataIndex=n,s.dataType=e,s.ssrType="chart"})}},nIt=1,rIt={},H6n=ds(),pot=ds(),mot=0,rse=1,WTe=2,Q0=["emphasis","blur","select"],cre=["normal","emphasis","blur","select"],MV=10,PXa=9,PD="highlight",nge="downplay",yee="select",rge="unselect",bee="toggleSelect";function X$(t){return t!=null&&t!=="none"}function QTe(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function U6n(t){QTe(t,"emphasis",WTe)}function z6n(t){t.hoverState===WTe&&QTe(t,"normal",mot)}function got(t){QTe(t,"blur",rse)}function G6n(t){t.hoverState===rse&&QTe(t,"normal",mot)}function OXa(t){t.selected=!0}function LXa(t){t.selected=!1}function iIt(t,e,n){e(t,n)}function AN(t,e,n){iIt(t,e,n),t.isGroup&&t.traverse(function(r){iIt(r,e,n)})}function D1e(t,e){switch(e){case"emphasis":t.hoverState=WTe;break;case"normal":t.hoverState=mot;break;case"blur":t.hoverState=rse;break;case"select":t.selected=!0}}function BXa(t,e,n,r){for(var a=t.style,o={},s=0;s<e.length;s++){var l=e[s],c=a[l];o[l]=c??(r&&r[l])}for(var s=0;s<t.animators.length;s++){var u=t.animators[s];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,e)}return o}function DXa(t,e,n,r){var a=n&&za(n,"select")>=0,o=!1;if(t instanceof no){var s=H6n(t),l=a&&s.selectFill||s.normalFill,c=a&&s.selectStroke||s.normalStroke;if(X$(l)||X$(c)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=An({},r),u=An({},u),u.fill=l):!X$(u.fill)&&X$(l)?(o=!0,r=An({},r),u=An({},u),u.fill=I1e(l)):!X$(u.stroke)&&X$(c)&&(o||(r=An({},r),u=An({},u)),u.stroke=I1e(c)),r.style=u}}if(r&&r.z2==null){o||(r=An({},r));var d=t.z2EmphasisLift;r.z2=t.z2+(d??MV)}return r}function $Xa(t,e,n){if(n&&n.z2==null){n=An({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??PXa)}return n}function FXa(t,e,n){var r=za(t.currentStates,e)>=0,a=t.style.opacity,o=r?null:BXa(t,["opacity"],e,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=An({},n),s=An({opacity:r?a:o.opacity*.1},s),n.style=s),n}function r6e(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return DXa(this,t,e,n);if(t==="blur")return FXa(this,t,n);if(t==="select")return $Xa(this,t,n)}return n}function r8(t){t.stateProxy=r6e;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=r6e),n&&(n.stateProxy=r6e)}function aIt(t,e){!Q6n(t,e)&&!t.__highByOuter&&AN(t,U6n)}function oIt(t,e){!Q6n(t,e)&&!t.__highByOuter&&AN(t,z6n)}function NM(t,e){t.__highByOuter|=1<<(e||0),AN(t,U6n)}function IM(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&AN(t,z6n)}function V6n(t){AN(t,got)}function vot(t){AN(t,G6n)}function K6n(t){AN(t,OXa)}function W6n(t){AN(t,LXa)}function Q6n(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function q6n(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,o){var s=pot(o),l=a==="series",c=l?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(u){G6n(u)}),l&&n.push(o)),s.isBlured=!1}),Ie(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function HKe(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function o(u,d){for(var h=0;h<d.length;h++){var f=u.getItemGraphicEl(d[h]);f&&vot(f)}}if(t!=null&&!(!e||e==="none")){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var c=[];a.eachSeries(function(u){var d=s===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var f=h&&l?h===l:d;if(!(n==="series"&&!d||n==="coordinateSystem"&&!f||e==="series"&&d)){var p=r.getViewOfSeriesModel(u);if(p.group.traverse(function(v){v.__highByOuter&&d&&e==="self"||got(v)}),ug(e))o(u.getData(),e);else if(Ci(e))for(var m=bo(e),g=0;g<m.length;g++)o(u.getData(m[g]),e[m[g]]);c.push(u),pot(u).isBlured=!0}}),a.eachComponent(function(u,d){if(u!=="series"){var h=r.getViewOfComponentModel(d);h&&h.toggleBlurSeries&&h.toggleBlurSeries(c,!0,a)}})}}function UKe(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){pot(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(o){got(o)})}}}function jXa(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var o=t8(a,e);o=(Tn(o)?o[0]:o)||0;var s=a.getItemGraphicEl(o);if(!s)for(var l=a.count(),c=0;!s&&c<l;)s=a.getItemGraphicEl(c++);if(s){var u=ia(s);HKe(r,u.focus,u.blurScope,n)}else{var d=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);d!=null&&HKe(r,d,h,n)}}}function Aot(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var o=r.getModel().getComponent(t,e);if(!o)return a;var s=r.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),c,u=0;u<l.length;u++)if(ia(l[u]).focus==="self"){c=!0;break}return{focusSelf:c,dispatchers:l}}function HXa(t,e,n){var r=ia(t),a=Aot(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=a.dispatchers,s=a.focusSelf;o?(s&&UKe(r.componentMainType,r.componentIndex,n),Ie(o,function(l){return aIt(l,e)})):(HKe(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&UKe(r.componentMainType,r.componentIndex,n),aIt(t,e))}function UXa(t,e,n){q6n(n);var r=ia(t),a=Aot(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?Ie(a,function(o){return oIt(o,e)}):oIt(t,e)}function zXa(t,e,n){if(GKe(e)){var r=e.dataType,a=t.getData(r),o=t8(a,e);Tn(o)||(o=[o]),t[e.type===bee?"toggleSelect":e.type===yee?"select":"unselect"](o,r)}}function sIt(t){var e=t.getAllData();Ie(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(o,s){t.isSelected(s,a)?K6n(o):W6n(o)})})}function GXa(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();Ie(r,function(a){a.data;var o=a.type,s=n.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:n.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function I5(t,e,n){XB(t,!0),AN(t,r8),zKe(t,e,n)}function VXa(t){XB(t,!1)}function bd(t,e,n,r){r?VXa(t):I5(t,e,n)}function zKe(t,e,n){var r=ia(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var lIt=["emphasis","blur","select"],KXa={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dg(t,e,n,r){n=n||"itemStyle";for(var a=0;a<lIt.length;a++){var o=lIt[a],s=e.getModel([o,n]),l=t.ensureState(o);l.style=r?r(s):s[KXa[n]]()}}function XB(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function ure(t){return!!(t&&t.__highDownDispatcher)}function WXa(t,e,n){var r=ia(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function QXa(t){var e=rIt[t];return e==null&&nIt<=32&&(e=rIt[t]=nIt++),e}function GKe(t){var e=t.type;return e===yee||e===rge||e===bee}function cIt(t){var e=t.type;return e===PD||e===nge}function qXa(t){var e=H6n(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var e7=iC.CMD,YXa=[[],[],[]],uIt=Math.sqrt,JXa=Math.atan2;function Y6n(t,e){if(e){var n=t.data,r=t.len(),a,o,s,l,c,u,d=e7.M,h=e7.C,f=e7.L,p=e7.R,m=e7.A,g=e7.Q;for(s=0,l=0;s<r;){switch(a=n[s++],l=s,o=0,a){case d:o=1;break;case f:o=1;break;case h:o=3;break;case g:o=2;break;case m:var v=e[4],A=e[5],y=uIt(e[0]*e[0]+e[1]*e[1]),S=uIt(e[2]*e[2]+e[3]*e[3]),x=JXa(-e[1]/S,e[0]/y);n[s]*=y,n[s++]+=v,n[s]*=S,n[s++]+=A,n[s++]*=y,n[s++]*=S,n[s++]+=x,n[s++]+=x,s+=2,l=s;break;case p:u[0]=n[s++],u[1]=n[s++],om(u,u,e),n[l++]=u[0],n[l++]=u[1],u[0]+=n[s++],u[1]+=n[s++],om(u,u,e),n[l++]=u[0],n[l++]=u[1]}for(c=0;c<o;c++){var w=YXa[c];w[0]=n[s++],w[1]=n[s++],om(w,w,e),n[l++]=w[0],n[l++]=w[1]}}t.increaseVersion()}}var i6e=Math.sqrt,jde=Math.sin,Hde=Math.cos,Bq=Math.PI;function dIt(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function VKe(t,e){return(t[0]*e[0]+t[1]*e[1])/(dIt(t)*dIt(e))}function hIt(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(VKe(t,e))}function fIt(t,e,n,r,a,o,s,l,c,u,d){var h=c*(Bq/180),f=Hde(h)*(t-n)/2+jde(h)*(e-r)/2,p=-1*jde(h)*(t-n)/2+Hde(h)*(e-r)/2,m=f*f/(s*s)+p*p/(l*l);m>1&&(s*=i6e(m),l*=i6e(m));var g=(a===o?-1:1)*i6e((s*s*(l*l)-s*s*(p*p)-l*l*(f*f))/(s*s*(p*p)+l*l*(f*f)))||0,v=g*s*p/l,A=g*-l*f/s,y=(t+n)/2+Hde(h)*v-jde(h)*A,S=(e+r)/2+jde(h)*v+Hde(h)*A,x=hIt([1,0],[(f-v)/s,(p-A)/l]),w=[(f-v)/s,(p-A)/l],_=[(-1*f-v)/s,(-1*p-A)/l],C=hIt(w,_);if(VKe(w,_)<=-1&&(C=Bq),VKe(w,_)>=1&&(C=0),C<0){var R=Math.round(C/Bq*1e6)/1e6;C=Bq*2+R%2*Bq}d.addData(u,y,S,s,l,x,C,h,o)}var ZXa=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,XXa=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function eeo(t){var e=new iC;if(!t)return e;var n=0,r=0,a=n,o=r,s,l=iC.CMD,c=t.match(ZXa);if(!c)return e;for(var u=0;u<c.length;u++){for(var d=c[u],h=d.charAt(0),f=void 0,p=d.match(XXa)||[],m=p.length,g=0;g<m;g++)p[g]=parseFloat(p[g]);for(var v=0;v<m;){var A=void 0,y=void 0,S=void 0,x=void 0,w=void 0,_=void 0,C=void 0,R=n,k=r,P=void 0,N=void 0;switch(h){case"l":n+=p[v++],r+=p[v++],f=l.L,e.addData(f,n,r);break;case"L":n=p[v++],r=p[v++],f=l.L,e.addData(f,n,r);break;case"m":n+=p[v++],r+=p[v++],f=l.M,e.addData(f,n,r),a=n,o=r,h="l";break;case"M":n=p[v++],r=p[v++],f=l.M,e.addData(f,n,r),a=n,o=r,h="L";break;case"h":n+=p[v++],f=l.L,e.addData(f,n,r);break;case"H":n=p[v++],f=l.L,e.addData(f,n,r);break;case"v":r+=p[v++],f=l.L,e.addData(f,n,r);break;case"V":r=p[v++],f=l.L,e.addData(f,n,r);break;case"C":f=l.C,e.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),n=p[v-2],r=p[v-1];break;case"c":f=l.C,e.addData(f,p[v++]+n,p[v++]+r,p[v++]+n,p[v++]+r,p[v++]+n,p[v++]+r),n+=p[v-2],r+=p[v-1];break;case"S":A=n,y=r,P=e.len(),N=e.data,s===l.C&&(A+=n-N[P-4],y+=r-N[P-3]),f=l.C,R=p[v++],k=p[v++],n=p[v++],r=p[v++],e.addData(f,A,y,R,k,n,r);break;case"s":A=n,y=r,P=e.len(),N=e.data,s===l.C&&(A+=n-N[P-4],y+=r-N[P-3]),f=l.C,R=n+p[v++],k=r+p[v++],n+=p[v++],r+=p[v++],e.addData(f,A,y,R,k,n,r);break;case"Q":R=p[v++],k=p[v++],n=p[v++],r=p[v++],f=l.Q,e.addData(f,R,k,n,r);break;case"q":R=p[v++]+n,k=p[v++]+r,n+=p[v++],r+=p[v++],f=l.Q,e.addData(f,R,k,n,r);break;case"T":A=n,y=r,P=e.len(),N=e.data,s===l.Q&&(A+=n-N[P-4],y+=r-N[P-3]),n=p[v++],r=p[v++],f=l.Q,e.addData(f,A,y,n,r);break;case"t":A=n,y=r,P=e.len(),N=e.data,s===l.Q&&(A+=n-N[P-4],y+=r-N[P-3]),n+=p[v++],r+=p[v++],f=l.Q,e.addData(f,A,y,n,r);break;case"A":S=p[v++],x=p[v++],w=p[v++],_=p[v++],C=p[v++],R=n,k=r,n=p[v++],r=p[v++],f=l.A,fIt(R,k,n,r,_,C,S,x,w,f,e);break;case"a":S=p[v++],x=p[v++],w=p[v++],_=p[v++],C=p[v++],R=n,k=r,n+=p[v++],r+=p[v++],f=l.A,fIt(R,k,n,r,_,C,S,x,w,f,e);break}}(h==="z"||h==="Z")&&(f=l.Z,e.addData(f),n=a,r=o),s=f}return e.toStatic(),e}var J6n=function(t){Qc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(no);function Z6n(t){return t.setData!=null}function X6n(t,e){var n=eeo(t),r=An({},e);return r.buildPath=function(a){if(Z6n(a)){a.setData(n.data);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=a;n.rebuildPath(o,1)}},r.applyTransform=function(a){Y6n(n,a),this.dirtyShape()},r}function e8n(t,e){return new J6n(X6n(t,e))}function teo(t,e){var n=X6n(t,e),r=function(a){Qc(o,a);function o(s){var l=a.call(this,s)||this;return l.applyTransform=n.applyTransform,l.buildPath=n.buildPath,l}return o}(J6n);return r}function neo(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var o=t[a];n.push(o.getUpdatedPathProxy(!0))}var s=new no(e);return s.createPathProxy(),s.buildPath=function(l){if(Z6n(l)){l.appendPath(n);var c=l.getContext();c&&l.rebuildPath(c,1)}},s}function yot(t,e){e=e||{};var n=new no;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Y6n(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var reo=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),t8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new reo},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(no);t8n.prototype.type="circle";const yN=t8n;var ieo=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),n8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new ieo},e.prototype.buildPath=function(n,r){var a=.5522848,o=r.cx,s=r.cy,l=r.rx,c=r.ry,u=l*a,d=c*a;n.moveTo(o-l,s),n.bezierCurveTo(o-l,s-d,o-u,s-c,o,s-c),n.bezierCurveTo(o+u,s-c,o+l,s-d,o+l,s),n.bezierCurveTo(o+l,s+d,o+u,s+c,o,s+c),n.bezierCurveTo(o-u,s+c,o-l,s+d,o-l,s),n.closePath()},e}(no);n8n.prototype.type="ellipse";const qTe=n8n;var r8n=Math.PI,a6e=r8n*2,z4=Math.sin,t7=Math.cos,aeo=Math.acos,Ug=Math.atan2,pIt=Math.abs,xee=Math.sqrt,PZ=Math.max,J_=Math.min,RS=1e-4;function oeo(t,e,n,r,a,o,s,l){var c=n-t,u=r-e,d=s-a,h=l-o,f=h*c-d*u;if(!(f*f<RS))return f=(d*(e-o)-h*(t-a))/f,[t+f*c,e+f*u]}function Ude(t,e,n,r,a,o,s){var l=t-n,c=e-r,u=(s?o:-o)/xee(l*l+c*c),d=u*c,h=-u*l,f=t+d,p=e+h,m=n+d,g=r+h,v=(f+m)/2,A=(p+g)/2,y=m-f,S=g-p,x=y*y+S*S,w=a-o,_=f*g-m*p,C=(S<0?-1:1)*xee(PZ(0,w*w*x-_*_)),R=(_*S-y*C)/x,k=(-_*y-S*C)/x,P=(_*S+y*C)/x,N=(-_*y+S*C)/x,L=R-v,I=k-A,b=P-v,T=N-A;return L*L+I*I>b*b+T*T&&(R=P,k=N),{cx:R,cy:k,x0:-d,y0:-h,x1:R*(a/w-1),y1:k*(a/w-1)}}function seo(t){var e;if(Tn(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function leo(t,e){var n,r=PZ(e.r,0),a=PZ(e.r0||0,0),o=r>0,s=a>0;if(!(!o&&!s)){if(o||(r=a,a=0),a>r){var l=r;r=a,a=l}var c=e.startAngle,u=e.endAngle;if(!(isNaN(c)||isNaN(u))){var d=e.cx,h=e.cy,f=!!e.clockwise,p=pIt(u-c),m=p>a6e&&p%a6e;if(m>RS&&(p=m),!(r>RS))t.moveTo(d,h);else if(p>a6e-RS)t.moveTo(d+r*t7(c),h+r*z4(c)),t.arc(d,h,r,c,u,!f),a>RS&&(t.moveTo(d+a*t7(u),h+a*z4(u)),t.arc(d,h,a,u,c,f));else{var g=void 0,v=void 0,A=void 0,y=void 0,S=void 0,x=void 0,w=void 0,_=void 0,C=void 0,R=void 0,k=void 0,P=void 0,N=void 0,L=void 0,I=void 0,b=void 0,T=r*t7(c),M=r*z4(c),D=a*t7(u),B=a*z4(u),j=p>RS;if(j){var H=e.cornerRadius;H&&(n=seo(H),g=n[0],v=n[1],A=n[2],y=n[3]);var U=pIt(r-a)/2;if(S=J_(U,A),x=J_(U,y),w=J_(U,g),_=J_(U,v),k=C=PZ(S,x),P=R=PZ(w,_),(C>RS||R>RS)&&(N=r*t7(u),L=r*z4(u),I=a*t7(c),b=a*z4(c),p<r8n)){var $=oeo(T,M,I,b,N,L,D,B);if($){var z=T-$[0],Z=M-$[1],K=N-$[0],Q=L-$[1],ee=1/z4(aeo((z*K+Z*Q)/(xee(z*z+Z*Z)*xee(K*K+Q*Q)))/2),X=xee($[0]*$[0]+$[1]*$[1]);k=J_(C,(r-X)/(ee+1)),P=J_(R,(a-X)/(ee-1))}}}if(!j)t.moveTo(d+T,h+M);else if(k>RS){var te=J_(A,k),J=J_(y,k),ne=Ude(I,b,T,M,r,te,f),ie=Ude(N,L,D,B,r,J,f);t.moveTo(d+ne.cx+ne.x0,h+ne.cy+ne.y0),k<C&&te===J?t.arc(d+ne.cx,h+ne.cy,k,Ug(ne.y0,ne.x0),Ug(ie.y0,ie.x0),!f):(te>0&&t.arc(d+ne.cx,h+ne.cy,te,Ug(ne.y0,ne.x0),Ug(ne.y1,ne.x1),!f),t.arc(d,h,r,Ug(ne.cy+ne.y1,ne.cx+ne.x1),Ug(ie.cy+ie.y1,ie.cx+ie.x1),!f),J>0&&t.arc(d+ie.cx,h+ie.cy,J,Ug(ie.y1,ie.x1),Ug(ie.y0,ie.x0),!f))}else t.moveTo(d+T,h+M),t.arc(d,h,r,c,u,!f);if(!(a>RS)||!j)t.lineTo(d+D,h+B);else if(P>RS){var te=J_(g,P),J=J_(v,P),ne=Ude(D,B,N,L,a,-J,f),ie=Ude(T,M,I,b,a,-te,f);t.lineTo(d+ne.cx+ne.x0,h+ne.cy+ne.y0),P<R&&te===J?t.arc(d+ne.cx,h+ne.cy,P,Ug(ne.y0,ne.x0),Ug(ie.y0,ie.x0),!f):(J>0&&t.arc(d+ne.cx,h+ne.cy,J,Ug(ne.y0,ne.x0),Ug(ne.y1,ne.x1),!f),t.arc(d,h,a,Ug(ne.cy+ne.y1,ne.cx+ne.x1),Ug(ie.cy+ie.y1,ie.cx+ie.x1),f),te>0&&t.arc(d+ie.cx,h+ie.cy,te,Ug(ie.y1,ie.x1),Ug(ie.y0,ie.x0),!f))}else t.lineTo(d+D,h+B),t.arc(d,h,a,u,c,f)}t.closePath()}}}var ceo=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),i8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new ceo},e.prototype.buildPath=function(n,r){leo(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(no);i8n.prototype.type="sector";const q0=i8n;var ueo=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),a8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new ueo},e.prototype.buildPath=function(n,r){var a=r.cx,o=r.cy,s=Math.PI*2;n.moveTo(a+r.r,o),n.arc(a,o,r.r,0,s,!1),n.moveTo(a+r.r0,o),n.arc(a,o,r.r0,0,s,!0)},e}(no);a8n.prototype.type="ring";const ise=a8n;function deo(t,e,n,r){var a=[],o=[],s=[],l=[],c,u,d,h;if(r){d=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,p=t.length;f<p;f++)GR(d,d,t[f]),VR(h,h,t[f]);GR(d,d,r[0]),VR(h,h,r[1])}for(var f=0,p=t.length;f<p;f++){var m=t[f];if(n)c=t[f?f-1:p-1],u=t[(f+1)%p];else if(f===0||f===p-1){a.push(k2(t[f]));continue}else c=t[f-1],u=t[f+1];Y3(o,u,c),fee(o,o,e);var g=k1e(m,c),v=k1e(m,u),A=g+v;A!==0&&(g/=A,v/=A),fee(s,o,-g),fee(l,o,v);var y=pKe([],m,s),S=pKe([],m,l);r&&(VR(y,y,d),GR(y,y,h),VR(S,S,d),GR(S,S,h)),a.push(y),a.push(S)}return n&&a.push(a.shift()),a}function o8n(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var o=deo(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(n?s:s-1);l++){var c=o[l*2],u=o[l*2+1],d=a[(l+1)%s];t.bezierCurveTo(c[0],c[1],u[0],u[1],d[0],d[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var l=1,h=a.length;l<h;l++)t.lineTo(a[l][0],a[l][1])}n&&t.closePath()}}var heo=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),s8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new heo},e.prototype.buildPath=function(n,r){o8n(n,r,!0)},e}(no);s8n.prototype.type="polygon";const Y0=s8n;var feo=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),l8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new feo},e.prototype.buildPath=function(n,r){o8n(n,r,!1)},e}(no);l8n.prototype.type="polyline";const aA=l8n;var peo={},meo=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),c8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new meo},e.prototype.buildPath=function(n,r){var a,o,s,l;if(this.subPixelOptimize){var c=L6n(peo,r,this.style);a=c.x1,o=c.y1,s=c.x2,l=c.y2}else a=r.x1,o=r.y1,s=r.x2,l=r.y2;var u=r.percent;u!==0&&(n.moveTo(a,o),u<1&&(s=a*(1-u)+s*u,l=o*(1-u)+l*u),n.lineTo(s,l))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(no);c8n.prototype.type="line";const vp=c8n;var kA=[],geo=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function mIt(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?ENt:ap)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?ENt:ap)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?bKe:Yp)(t.x1,t.cpx1,t.x2,e),(n?bKe:Yp)(t.y1,t.cpy1,t.y2,e)]}var u8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new geo},e.prototype.buildPath=function(n,r){var a=r.x1,o=r.y1,s=r.x2,l=r.y2,c=r.cpx1,u=r.cpy1,d=r.cpx2,h=r.cpy2,f=r.percent;f!==0&&(n.moveTo(a,o),d==null||h==null?(f<1&&(nre(a,c,s,f,kA),c=kA[1],s=kA[2],nre(o,u,l,f,kA),u=kA[1],l=kA[2]),n.quadraticCurveTo(c,u,s,l)):(f<1&&(kP(a,c,d,s,f,kA),c=kA[1],d=kA[2],s=kA[3],kP(o,u,h,l,f,kA),u=kA[1],h=kA[2],l=kA[3]),n.bezierCurveTo(c,u,d,h,s,l)))},e.prototype.pointAt=function(n){return mIt(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=mIt(this.shape,n,!0);return b9(r,r)},e}(no);u8n.prototype.type="bezier-curve";const ase=u8n;var veo=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),d8n=function(t){Qc(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new veo},e.prototype.buildPath=function(n,r){var a=r.cx,o=r.cy,s=Math.max(r.r,0),l=r.startAngle,c=r.endAngle,u=r.clockwise,d=Math.cos(l),h=Math.sin(l);n.moveTo(d*s+a,h*s+o),n.arc(a,o,s,l,c,!u)},e}(no);d8n.prototype.type="arc";const YTe=d8n;var Aeo=function(t){Qc(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],o=0;o<a.length;o++)a[o].buildPath(n,a[o].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),no.prototype.getBoundingRect.call(this)},e}(no);const JTe=Aeo;var yeo=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}();const h8n=yeo;var beo=function(t){Qc(e,t);function e(n,r,a,o,s,l){var c=t.call(this,s)||this;return c.x=n??0,c.y=r??0,c.x2=a??1,c.y2=o??0,c.type="linear",c.global=l||!1,c}return e}(h8n);const NV=beo;var xeo=function(t){Qc(e,t);function e(n,r,a,o,s){var l=t.call(this,o)||this;return l.x=n??.5,l.y=r??.5,l.r=a??.5,l.type="radial",l.global=s||!1,l}return e}(h8n);const bot=xeo;var G4=[0,0],V4=[0,0],zde=new Oa,Gde=new Oa,Eeo=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Oa;for(var r=0;r<2;r++)this._axes[r]=new Oa;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,o=e.x,s=e.y,l=o+e.width,c=s+e.height;if(r[0].set(o,s),r[1].set(l,s),r[2].set(l,c),r[3].set(o,c),n)for(var u=0;u<4;u++)r[u].transform(n);Oa.sub(a[0],r[1],r[0]),Oa.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,a=!n;return zde.set(1/0,1/0),Gde.set(0,0),!this._intersectCheckOneSide(this,e,zde,Gde,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,zde,Gde,a,-1)&&(r=!1,a)||a||Oa.copy(n,r?zde:Gde),r},t.prototype._intersectCheckOneSide=function(e,n,r,a,o,s){for(var l=!0,c=0;c<2;c++){var u=this._axes[c];if(this._getProjMinMaxOnAxis(c,e._corners,G4),this._getProjMinMaxOnAxis(c,n._corners,V4),G4[1]<V4[0]||G4[0]>V4[1]){if(l=!1,o)return l;var d=Math.abs(V4[0]-G4[1]),h=Math.abs(G4[0]-V4[1]);Math.min(d,h)>a.len()&&(d<h?Oa.scale(a,u,-d*s):Oa.scale(a,u,h*s))}else if(r){var d=Math.abs(V4[0]-G4[1]),h=Math.abs(G4[0]-V4[1]);Math.min(d,h)<r.len()&&(d<h?Oa.scale(r,u,d*s):Oa.scale(r,u,-h*s))}}return l},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],o=this._origin,s=n[0].dot(a)+o[e],l=s,c=s,u=1;u<n.length;u++){var d=n[u].dot(a)+o[e];l=Math.min(d,l),c=Math.max(d,c)}r[0]=l,r[1]=c},t}();const $1e=Eeo;var Seo=[],weo=function(t){Qc(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Da(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],o=a.getBoundingRect().clone();a.needLocalTransform()&&o.applyTransform(a.getLocalTransform(Seo)),n.union(o)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(a[0],a[1]))for(var s=0;s<this._displayables.length;s++){var l=this._displayables[s];if(l.contain(n,r))return!0}return!1},e}(Xx);const f8n=weo;var p8n=ds();function IV(t,e,n,r,a){var o;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();o=s&&s.animation}var l=e&&e.isAnimationEnabled(),c=t==="update";if(l){var u=void 0,d=void 0,h=void 0;r?(u=pa(r.duration,200),d=pa(r.easing,"cubicOut"),h=0):(u=e.getShallow(c?"animationDurationUpdate":"animationDuration"),d=e.getShallow(c?"animationEasingUpdate":"animationEasing"),h=e.getShallow(c?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(d=o.easing),o.delay!=null&&(h=o.delay)),ai(h)&&(h=h(n,a)),ai(u)&&(u=u(n));var f={duration:u||0,delay:h,easing:d};return f}else return null}function xot(t,e,n,r,a,o,s){var l=!1,c;ai(a)?(s=o,o=a,a=null):Ci(a)&&(o=a.cb,s=a.during,l=a.isFrom,c=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var d=IV(t,r,a,u?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(d&&d.duration>0){var h=d.duration,f=d.delay,p=d.easing,m={duration:h,delay:f||0,easing:p,done:o,force:!!o||!!s,setToFinal:!u,scope:t,during:s};l?e.animateFrom(n,m):e.animateTo(n,m)}else e.stopAnimation(),!l&&e.attr(n),s&&s(1),o&&o()}function vs(t,e,n,r,a,o){xot("update",t,e,n,r,a,o)}function Kc(t,e,n,r,a,o){xot("enter",t,e,n,r,a,o)}function hH(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function RP(t,e,n,r,a,o){hH(t)||xot("leave",t,e,n,r,a,o)}function gIt(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),RP(t,{style:{opacity:0}},e,n,r)}function dre(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||gIt(a,e,n,r)}):gIt(t,e,n,r)}function Fw(t){p8n(t).oldStyle=t.style}function _eo(t){return p8n(t).oldStyle}var F1e=Math.max,j1e=Math.min,KKe={};function m8n(t){return no.extend(t)}var Teo=teo;function g8n(t,e){return Teo(t,e)}function wE(t,e){KKe[t]=e}function ZTe(t){if(KKe.hasOwnProperty(t))return KKe[t]}function ose(t,e,n,r){var a=e8n(t,e);return n&&(r==="center"&&(n=v8n(n,a.getBoundingRect())),Sot(a,n)),a}function Eot(t,e,n){var r=new fm({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var o={width:a.width,height:a.height};r.setStyle(v8n(e,o))}}});return r}function v8n(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var o=t.x+t.width/2,s=t.y+t.height/2;return{x:o-r/2,y:s-a/2,width:r,height:a}}var Ty=neo;function Sot(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function az(t,e){return L6n(t,t,{lineWidth:e}),t}function Ceo(t){return B6n(t.shape,t.shape,t.style),t}var ige=ZB;function P5(t,e){for(var n=Xoe([]);t&&t!==e;)R2(n,t.getLocalTransform(),n),t=t.parent;return n}function xw(t,e,n){return e&&!ug(e)&&(e=KR.getLocalTransform(e)),n&&(e=x9([],e)),om([],t,e)}function XTe(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),o=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return o=xw(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function vIt(t){return!t.isGroup}function keo(t){return t.shape!=null}function sse(t,e,n){if(!t||!e)return;function r(s){var l={};return s.traverse(function(c){vIt(c)&&c.anid&&(l[c.anid]=c)}),l}function a(s){var l={x:s.x,y:s.y,rotation:s.rotation};return keo(s)&&(l.shape=An({},s.shape)),l}var o=r(t);e.traverse(function(s){if(vIt(s)&&s.anid){var l=o[s.anid];if(l){var c=a(s);s.attr(a(l)),vs(s,c,n,ia(s).dataIndex)}}})}function wot(t,e){return Rn(t,function(n){var r=n[0];r=F1e(r,e.x),r=j1e(r,e.x+e.width);var a=n[1];return a=F1e(a,e.y),a=j1e(a,e.y+e.height),[r,a]})}function A8n(t,e){var n=F1e(t.x,e.x),r=j1e(t.x+t.width,e.x+e.width),a=F1e(t.y,e.y),o=j1e(t.y+t.height,e.y+e.height);if(r>=n&&o>=a)return{x:n,y:a,width:r-n,height:o-a}}function PV(t,e,n){var r=An({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),bi(a,n),new fm(r)):ose(t.replace("path://",""),r,n,"center")}function OZ(t,e,n,r,a){for(var o=0,s=a[a.length-1];o<a.length;o++){var l=a[o];if(y8n(t,e,n,r,l[0],l[1],s[0],s[1]))return!0;s=l}}function y8n(t,e,n,r,a,o,s,l){var c=n-t,u=r-e,d=s-a,h=l-o,f=o6e(d,h,c,u);if(Reo(f))return!1;var p=t-a,m=e-o,g=o6e(p,m,c,u)/f;if(g<0||g>1)return!1;var v=o6e(p,m,d,h)/f;return!(v<0||v>1)}function o6e(t,e,n,r){return t*r-n*e}function Reo(t){return t<=1e-6&&t>=-1e-6}function OV(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=vr(e)?{formatter:e}:e,o=n.mainType,s=n.componentIndex,l={componentType:o,name:r,$vars:["name"]};l[o+"Index"]=s;var c=t.formatterParamsExtra;c&&Ie(bo(c),function(d){Dr(l,d)||(l[d]=c[d],l.$vars.push(d))});var u=ia(t.el);u.componentMainType=o,u.componentIndex=s,u.tooltipConfig={name:r,option:bi({content:r,formatterParams:l},a)}}function AIt(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function xO(t,e){if(t)if(Tn(t))for(var n=0;n<t.length;n++)AIt(t[n],e);else AIt(t,e)}wE("circle",yN);wE("ellipse",qTe);wE("sector",q0);wE("ring",ise);wE("polygon",Y0);wE("polyline",aA);wE("rect",Zo);wE("line",vp);wE("bezierCurve",ase);wE("arc",YTe);const E9=Object.freeze(Object.defineProperty({__proto__:null,Arc:YTe,BezierCurve:ase,BoundingRect:Da,Circle:yN,CompoundPath:JTe,Ellipse:qTe,Group:ta,Image:fm,IncrementalDisplayable:f8n,Line:vp,LinearGradient:NV,OrientedBoundingRect:$1e,Path:no,Point:Oa,Polygon:Y0,Polyline:aA,RadialGradient:bot,Rect:Zo,Ring:ise,Sector:q0,Text:Jo,applyTransform:xw,clipPointsByRect:wot,clipRectByRect:A8n,createIcon:PV,extendPath:g8n,extendShape:m8n,getShapeClass:ZTe,getTransform:P5,groupTransition:sse,initProps:Kc,isElementRemoved:hH,lineLineIntersect:y8n,linePolygonIntersect:OZ,makeImage:Eot,makePath:ose,mergePath:Ty,registerShape:wE,removeElement:RP,removeElementWithFadeOut:dre,resizePath:Sot,setTooltipConfig:OV,subPixelOptimize:ige,subPixelOptimizeLine:az,subPixelOptimizeRect:Ceo,transformDirection:XTe,traverseElements:xO,updateProps:vs},Symbol.toStringTag,{value:"Module"}));var e2e={};function b8n(t,e){for(var n=0;n<Q0.length;n++){var r=Q0[n],a=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=a}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function WKe(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,o=t.labelDimIndex,s=e.normal,l;r&&(l=r.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),n!=null?{interpolatedValue:n}:null)),l==null&&(l=ai(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var c={normal:l},u=0;u<Q0.length;u++){var d=Q0[u],h=e[d];c[d]=pa(r?r.getFormattedLabel(a,d,null,o,h&&h.get("formatter")):null,l)}return c}function hg(t,e,n,r){n=n||e2e;for(var a=t instanceof Jo,o=!1,s=0;s<cre.length;s++){var l=e[cre[s]];if(l&&l.getShallow("show")){o=!0;break}}var c=a?t:t.getTextContent();if(o){a||(c||(c=new Jo,t.setTextContent(c)),t.stateProxy&&(c.stateProxy=t.stateProxy));var u=WKe(n,e),d=e.normal,h=!!d.getShallow("show"),f=yc(d,r&&r.normal,n,!1,!a);f.text=u.normal,a||t.setTextConfig(H1e(d,n,!1));for(var s=0;s<Q0.length;s++){var p=Q0[s],l=e[p];if(l){var m=c.ensureState(p),g=!!pa(l.getShallow("show"),h);if(g!==h&&(m.ignore=!g),m.style=yc(l,r&&r[p],n,!0,!a),m.style.text=u[p],!a){var v=t.ensureState(p);v.textConfig=H1e(l,n,!0)}}}c.silent=!!d.getShallow("silent"),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!h,c.useStyle(f),c.dirty(),n.enableTextSetter&&(LV(c).setLabelText=function(A){var y=WKe(n,e,A);b8n(c,y)})}else c&&(c.ignore=!0);t.dirty()}function Cp(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Q0.length;r++){var a=Q0[r];n[a]=t.getModel([a,e])}return n}function yc(t,e,n,r,a){var o={};return Meo(o,t,n,r,a),e&&An(o,e),o}function H1e(t,e,n){e=e||{};var r={},a,o=t.getShallow("rotate"),s=pa(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),l!=null&&(r.offset=l),o!=null&&(o*=Math.PI/180,r.rotation=o),s!=null&&(r.distance=s),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function Meo(t,e,n,r,a){n=n||e2e;var o=e.ecModel,s=o&&o.option.textStyle,l=Neo(e),c;if(l){c={};for(var u in l)if(l.hasOwnProperty(u)){var d=e.getModel(["rich",u]);EIt(c[u]={},d,s,n,r,a,!1,!0)}}c&&(t.rich=c);var h=e.get("overflow");h&&(t.overflow=h);var f=e.get("minMargin");f!=null&&(t.margin=f),EIt(t,e,s,n,r,a,!0,!1)}function Neo(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||e2e).rich;if(n){e=e||{};for(var r=bo(n),a=0;a<r.length;a++){var o=r[a];e[o]=1}}t=t.parentModel}return e}var yIt=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bIt=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],xIt=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function EIt(t,e,n,r,a,o,s,l){n=!a&&n||e2e;var c=r&&r.inheritColor,u=e.getShallow("color"),d=e.getShallow("textBorderColor"),h=pa(e.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(c?u=c:u=null),(d==="inherit"||d==="auto")&&(c?d=c:d=null),o||(u=u||n.color,d=d||n.textBorderColor),u!=null&&(t.fill=u),d!=null&&(t.stroke=d);var f=pa(e.getShallow("textBorderWidth"),n.textBorderWidth);f!=null&&(t.lineWidth=f);var p=pa(e.getShallow("textBorderType"),n.textBorderType);p!=null&&(t.lineDash=p);var m=pa(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!a&&h==null&&!l&&(h=r&&r.defaultOpacity),h!=null&&(t.opacity=h),!a&&!o&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<yIt.length;g++){var v=yIt[g],A=pa(e.getShallow(v),n[v]);A!=null&&(t[v]=A)}for(var g=0;g<bIt.length;g++){var v=bIt[g],A=e.getShallow(v);A!=null&&(t[v]=A)}if(t.verticalAlign==null){var y=e.getShallow("baseline");y!=null&&(t.verticalAlign=y)}if(!s||!r.disableBox){for(var g=0;g<xIt.length;g++){var v=xIt[g],A=e.getShallow(v);A!=null&&(t[v]=A)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&c&&(t.backgroundColor=c),(t.borderColor==="auto"||t.borderColor==="inherit")&&c&&(t.borderColor=c)}}function _ot(t,e){var n=e&&e.getModel("textStyle");return _x([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var LV=ds();function x8n(t,e,n,r){if(t){var a=LV(t);a.prevValue=a.value,a.value=n;var o=e.normal;a.valueAnimation=o.get("valueAnimation"),a.valueAnimation&&(a.precision=o.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}function E8n(t,e,n,r,a){var o=LV(t);if(!o.valueAnimation||o.prevValue===o.value)return;var s=o.defaultInterpolatedText,l=pa(o.interpolatedValue,o.prevValue),c=o.value;function u(d){var h=w6n(n,o.precision,l,c,d);o.interpolatedValue=d===1?null:h;var f=WKe({labelDataIndex:e,labelFetcher:a,defaultText:s?s(h):h+""},o.statesModels,h);b8n(t,f)}t.percent=0,(o.prevValue==null?Kc:vs)(t,{percent:1},r,e,null,u)}var Ieo=["textStyle","color"],s6e=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],l6e=new Jo,Peo=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(Ieo):null)},t.prototype.getFont=function(){return _ot({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<s6e.length;r++)n[s6e[r]]=this.getShallow(s6e[r]);return l6e.useStyle(n),l6e.update(),l6e.getBoundingRect()},t}();const Oeo=Peo;var S8n=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Leo=n8(S8n),Beo=function(){function t(){}return t.prototype.getLineStyle=function(e){return Leo(this,e)},t}(),w8n=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Deo=n8(w8n),$eo=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return Deo(this,e,n)},t}(),S9=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){Ra(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var o=this.parentModel;o&&(a=o.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,o=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(ji(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ls.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();dot(S9);UZa(S9);Vd(S9,Beo);Vd(S9,$eo);Vd(S9,WZa);Vd(S9,Oeo);const Kl=S9;var Feo=Math.round(Math.random()*10);function BV(t){return[t||"",Feo++].join("_")}function jeo(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=o2(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var o=o2(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](r))}return a}}function Heo(t,e){t.topologicalTravel=function(o,s,l,c){if(!o.length)return;var u=n(s),d=u.graph,h=u.noEntryList,f={};for(Ie(o,function(y){f[y]=!0});h.length;){var p=h.pop(),m=d[p],g=!!f[p];g&&(l.call(c,p,m.originalDeps.slice()),delete f[p]),Ie(m.successor,g?A:v)}Ie(f,function(){var y="";throw new Error(y)});function v(y){d[y].entryCount--,d[y].entryCount===0&&h.push(y)}function A(y){f[y]=!0,v(y)}};function n(o){var s={},l=[];return Ie(o,function(c){var u=r(s,c),d=u.originalDeps=e(c),h=a(d,o);u.entryCount=h.length,u.entryCount===0&&l.push(c),Ie(h,function(f){za(u.predecessor,f)<0&&u.predecessor.push(f);var p=r(s,f);za(p.successor,f)<0&&p.successor.push(c)})}),{graph:s,noEntryList:l}}function r(o,s){return o[s]||(o[s]={predecessor:[],successor:[]}),o[s]}function a(o,s){var l=[];return Ie(o,function(c){za(s,c)>=0&&l.push(c)}),l}}function EO(t,e){return Ra(Ra({},t,!0),e,!0)}const Ueo={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},zeo={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var U1e="ZH",Tot="EN",fH=Tot,age={},Cot={},_8n=ls.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||fH).toUpperCase();return t.indexOf(U1e)>-1?U1e:fH}():fH;function kot(t,e){t=t.toUpperCase(),Cot[t]=new Kl(e),age[t]=e}function Geo(t){if(vr(t)){var e=age[t.toUpperCase()]||{};return t===U1e||t===Tot?ji(e):Ra(ji(e),ji(age[fH]),!1)}else return Ra(ji(t),ji(age[fH]),!1)}function QKe(t){return Cot[t]}function Veo(){return Cot[fH]}kot(Tot,Ueo);kot(U1e,zeo);var Rot=1e3,Mot=Rot*60,Eee=Mot*60,yx=Eee*24,SIt=yx*365,LZ={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Vde="{yyyy}-{MM}-{dd}",wIt={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vde,hour:Vde+" "+LZ.hour,minute:Vde+" "+LZ.minute,second:Vde+" "+LZ.second,millisecond:LZ.none},c6e=["year","month","day","hour","minute","second","millisecond"],T8n=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function x0(t,e){return t+="","0000".substr(0,e-t.length)+t}function pH(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Keo(t){return t===pH(t)}function Weo(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function lse(t,e,n,r){var a=qy(t),o=a[Not(n)](),s=a[mH(n)]()+1,l=Math.floor((s-1)/3)+1,c=a[t2e(n)](),u=a["get"+(n?"UTC":"")+"Day"](),d=a[hre(n)](),h=(d-1)%12+1,f=a[n2e(n)](),p=a[r2e(n)](),m=a[i2e(n)](),g=r instanceof Kl?r:QKe(r||_8n)||Veo(),v=g.getModel("time"),A=v.get("month"),y=v.get("monthAbbr"),S=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,x0(o%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,A[s-1]).replace(/{MMM}/g,y[s-1]).replace(/{MM}/g,x0(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,x0(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,x0(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,x0(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,x0(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,x0(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,x0(m,3)).replace(/{S}/g,m+"")}function Qeo(t,e,n,r,a){var o=null;if(vr(n))o=n;else if(ai(n))o=n(t.value,e,{level:t.level});else{var s=An({},LZ);if(t.level>0)for(var l=0;l<c6e.length;++l)s[c6e[l]]="{primary|"+s[c6e[l]]+"}";var c=n?n.inherit===!1?n:bi(n,s):s,u=C8n(t.value,a);if(c[u])o=c[u];else if(c.inherit){for(var d=T8n.indexOf(u),l=d-1;l>=0;--l)if(c[u]){o=c[u];break}o=o||s.none}if(Tn(o)){var h=t.level==null?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return lse(new Date(t.value),o,a,r)}function C8n(t,e){var n=qy(t),r=n[mH(e)]()+1,a=n[t2e(e)](),o=n[hre(e)](),s=n[n2e(e)](),l=n[r2e(e)](),c=n[i2e(e)](),u=c===0,d=u&&l===0,h=d&&s===0,f=h&&o===0,p=f&&a===1,m=p&&r===1;return m?"year":p?"month":f?"day":h?"hour":d?"minute":u?"second":"millisecond"}function _It(t,e,n){var r=cs(t)?qy(t):t;switch(e=e||C8n(t,n),e){case"year":return r[Not(n)]();case"half-year":return r[mH(n)]()>=6?1:0;case"quarter":return Math.floor((r[mH(n)]()+1)/4);case"month":return r[mH(n)]();case"day":return r[t2e(n)]();case"half-day":return r[hre(n)]()/24;case"hour":return r[hre(n)]();case"minute":return r[n2e(n)]();case"second":return r[r2e(n)]();case"millisecond":return r[i2e(n)]()}}function Not(t){return t?"getUTCFullYear":"getFullYear"}function mH(t){return t?"getUTCMonth":"getMonth"}function t2e(t){return t?"getUTCDate":"getDate"}function hre(t){return t?"getUTCHours":"getHours"}function n2e(t){return t?"getUTCMinutes":"getMinutes"}function r2e(t){return t?"getUTCSeconds":"getSeconds"}function i2e(t){return t?"getUTCMilliseconds":"getMilliseconds"}function qeo(t){return t?"setUTCFullYear":"setFullYear"}function k8n(t){return t?"setUTCMonth":"setMonth"}function R8n(t){return t?"setUTCDate":"setDate"}function M8n(t){return t?"setUTCHours":"setHours"}function N8n(t){return t?"setUTCMinutes":"setMinutes"}function I8n(t){return t?"setUTCSeconds":"setSeconds"}function P8n(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Yeo(t,e,n,r,a,o,s,l){var c=new Jo({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:o,overflow:s?"truncate":null,lineHeight:l}});return c.getBoundingRect()}function Iot(t){if(!lot(t))return vr(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Pot(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var w9=DTe;function qKe(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(d){return d&&_x(d)?d:"-"}function o(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var s=e==="time",l=t instanceof Date;if(s||l){var c=s?qy(t):t;if(isNaN(+c)){if(l)return"-"}else return lse(c,r,n)}if(e==="ordinal")return T1e(t)?a(t):cs(t)&&o(t)?t+"":"-";var u=rC(t);return o(u)?Iot(u):T1e(t)?a(t):typeof t=="boolean"?t+"":"-"}var TIt=["a","b","c","d","e","f","g"],u6e=function(t,e){return"{"+t+(e??"")+"}"};function Oot(t,e,n){Tn(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var s=TIt[o];t=t.replace(u6e(s),u6e(s,0))}for(var l=0;l<r;l++)for(var c=0;c<a.length;c++){var u=e[l][a[c]];t=t.replace(u6e(TIt[c],l),n?w0(u):u)}return t}function Jeo(t,e,n){return Ie(e,function(r,a){t=t.replace("{"+a+"}",n?w0(r):r)}),t}function O8n(t,e){var n=vr(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+w0(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+w0(r)+";"+(e||"")+'"></span>';var s=n.markerId||"markerX";return{renderMode:o,content:"{"+s+"|}  ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Zeo(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
yyyy`);var r=qy(e),a=n?"getUTC":"get",o=r[a+"FullYear"](),s=r[a+"Month"]()+1,l=r[a+"Date"](),c=r[a+"Hours"](),u=r[a+"Minutes"](),d=r[a+"Seconds"](),h=r[a+"Milliseconds"]();return t=t.replace("MM",x0(s,2)).replace("M",s).replace("yyyy",o).replace("yy",x0(o%100+"",2)).replace("dd",x0(l,2)).replace("d",l).replace("hh",x0(c,2)).replace("h",c).replace("mm",x0(u,2)).replace("m",u).replace("ss",x0(d,2)).replace("s",d).replace("SSS",x0(h,3)),t}function Xeo(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function i8(t,e){return e=e||"transparent",vr(t)?t:Ci(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function z1e(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var oge=Ie,L8n=["left","right","top","bottom","width","height"],eD=[["width","left","right"],["height","top","bottom"]];function Lot(t,e,n,r,a){var o=0,s=0;r==null&&(r=1/0),a==null&&(a=1/0);var l=0;e.eachChild(function(c,u){var d=c.getBoundingRect(),h=e.childAt(u+1),f=h&&h.getBoundingRect(),p,m;if(t==="horizontal"){var g=d.width+(f?-f.x+d.x:0);p=o+g,p>r||c.newline?(o=0,p=g,s+=l+n,l=d.height):l=Math.max(l,d.height)}else{var v=d.height+(f?-f.y+d.y:0);m=s+v,m>a||c.newline?(o+=l+n,s=0,m=v,l=d.width):l=Math.max(l,d.width)}c.newline||(c.x=o,c.y=s,c.markRedraw(),t==="horizontal"?o=p+n:s=m+n)})}var OD=Lot;fa(Lot,"vertical");fa(Lot,"horizontal");function eto(t,e,n){var r=e.width,a=e.height,o=lr(t.left,r),s=lr(t.top,a),l=lr(t.right,r),c=lr(t.bottom,a);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.right)))&&(l=r),(isNaN(s)||isNaN(parseFloat(t.top)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=a),n=w9(n||0),{width:Math.max(l-o-n[1]-n[3],0),height:Math.max(c-s-n[0]-n[2],0)}}function nf(t,e,n){n=w9(n||0);var r=e.width,a=e.height,o=lr(t.left,r),s=lr(t.top,a),l=lr(t.right,r),c=lr(t.bottom,a),u=lr(t.width,r),d=lr(t.height,a),h=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-l-f-o),isNaN(d)&&(d=a-c-h-s),p!=null&&(isNaN(u)&&isNaN(d)&&(p>r/a?u=r*.8:d=a*.8),isNaN(u)&&(u=p*d),isNaN(d)&&(d=u/p)),isNaN(o)&&(o=r-l-u-f),isNaN(s)&&(s=a-c-d-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(t.top||t.bottom){case"middle":case"center":s=a/2-d/2-n[0];break;case"bottom":s=a-d-h;break}o=o||0,s=s||0,isNaN(u)&&(u=r-f-o-(l||0)),isNaN(d)&&(d=a-h-s-(c||0));var m=new Da(o+n[3],s+n[0],u,d);return m.margin=n,m}function a2e(t,e,n,r,a,o){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],c=a&&a.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!s&&!l)return!1;var u;if(c==="raw")u=t.type==="group"?new Da(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();u=u.clone(),u.applyTransform(d)}var h=nf(bi({width:u.width,height:u.height},e),n,r),f=s?h.x-u.x:0,p=l?h.y-u.y:0;return c==="raw"?(o.x=f,o.y=p):(o.x+=f,o.y+=p),o===t&&t.markRedraw(),!0}function tto(t,e){return t[eD[e][0]]!=null||t[eD[e][1]]!=null&&t[eD[e][2]]!=null}function fre(t){var e=t.layoutMode||t.constructor.layoutMode;return Ci(e)?e:e?{type:e}:null}function MP(t,e,n){var r=n&&n.ignoreSize;!Tn(r)&&(r=[r,r]);var a=s(eD[0],0),o=s(eD[1],1);u(eD[0],t,a),u(eD[1],t,o);function s(d,h){var f={},p=0,m={},g=0,v=2;if(oge(d,function(S){m[S]=t[S]}),oge(d,function(S){l(e,S)&&(f[S]=m[S]=e[S]),c(f,S)&&p++,c(m,S)&&g++}),r[h])return c(e,d[1])?m[d[2]]=null:c(e,d[2])&&(m[d[1]]=null),m;if(g===v||!p)return m;if(p>=v)return f;for(var A=0;A<d.length;A++){var y=d[A];if(!l(f,y)&&l(t,y)){f[y]=t[y];break}}return f}function l(d,h){return d.hasOwnProperty(h)}function c(d,h){return d[h]!=null&&d[h]!=="auto"}function u(d,h,f){oge(d,function(p){h[p]=f[p]})}}function DV(t){return B8n({},t)}function B8n(t,e){return e&&t&&oge(L8n,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var nto=ds(),$V=function(t){nn(e,t);function e(n,r,a){var o=t.call(this,n,r,a)||this;return o.uid=BV("ec_cpt_model"),o}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=fre(this),o=a?DV(n):{},s=r.getTheme();Ra(n,s.get(this.mainType)),Ra(n,this.getDefaultOption()),a&&MP(n,o,a)},e.prototype.mergeOption=function(n,r){Ra(this.option,n,!0);var a=fre(this);a&&MP(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!FZa(n))return n.defaultOption;var r=nto(this);if(!r.defaultOption){for(var a=[],o=n;o;){var s=o.prototype.defaultOption;s&&a.push(s),o=o.superClass}for(var l={},c=a.length-1;c>=0;c--)l=Ra(l,a[c],!0);r.defaultOption=l}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",o=n+"Id";return nse(this.ecModel,n,{index:this.get(a,!0),id:this.get(o,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(Kl);T6n($V,Kl);zTe($V);jeo($V);Heo($V,rto);function rto(t){var e=[];return Ie($V.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=Rn(e,function(n){return o2(n).main}),t!=="dataset"&&za(e,"dataset")<=0&&e.unshift("dataset"),e}const Fo=$V;var D8n="";typeof navigator<"u"&&(D8n=navigator.platform||"");var n7="rgba(0, 0, 0, 0.2)";const ito={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:n7,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:n7,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:n7,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:n7,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:n7,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:n7,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:D8n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var $8n=Ur(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_E="original",Cv="arrayRows",TE="objectRows",CC="keyedColumns",O5="typedArray",F8n="unknown",M2="column",FV="row",jm={Must:1,Might:2,Not:3},j8n=ds();function ato(t){j8n(t).datasetMap=Ur()}function H8n(t,e,n){var r={},a=Dot(e);if(!a||!t)return r;var o=[],s=[],l=e.ecModel,c=j8n(l).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,d,h;t=t.slice(),Ie(t,function(g,v){var A=Ci(g)?g:t[v]={name:g};A.type==="ordinal"&&d==null&&(d=v,h=m(A)),r[A.name]=[]});var f=c.get(u)||c.set(u,{categoryWayDim:h,valueWayDim:0});Ie(t,function(g,v){var A=g.name,y=m(g);if(d==null){var S=f.valueWayDim;p(r[A],S,y),p(s,S,y),f.valueWayDim+=y}else if(d===v)p(r[A],0,y),p(o,0,y);else{var S=f.categoryWayDim;p(r[A],S,y),p(s,S,y),f.categoryWayDim+=y}});function p(g,v,A){for(var y=0;y<A;y++)g.push(v+y)}function m(g){var v=g.dimsDef;return v?v.length:1}return o.length&&(r.itemName=o),s.length&&(r.seriesName=s),r}function Bot(t,e,n){var r={},a=Dot(t);if(!a)return r;var o=e.sourceFormat,s=e.dimensionsDefine,l;(o===TE||o===CC)&&Ie(s,function(d,h){(Ci(d)?d.name:d)==="name"&&(l=h)});var c=function(){for(var d={},h={},f=[],p=0,m=Math.min(5,n);p<m;p++){var g=z8n(e.data,o,e.seriesLayoutBy,s,e.startIndex,p);f.push(g);var v=g===jm.Not;if(v&&d.v==null&&p!==l&&(d.v=p),(d.n==null||d.n===d.v||!v&&f[d.n]===jm.Not)&&(d.n=p),A(d)&&f[d.n]!==jm.Not)return d;v||(g===jm.Might&&h.v==null&&p!==l&&(h.v=p),(h.n==null||h.n===h.v)&&(h.n=p))}function A(y){return y.v!=null&&y.n!=null}return A(d)?d:A(h)?h:null}();if(c){r.value=[c.v];var u=l??c.n;r.itemName=[u],r.seriesName=[u]}return r}function Dot(t){var e=t.get("data",!0);if(!e)return nse(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Qh).models[0]}function oto(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:nse(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Qh).models}function U8n(t,e){return z8n(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function z8n(t,e,n,r,a,o){var s,l=5;if(W0(t))return jm.Not;var c,u;if(r){var d=r[o];Ci(d)?(c=d.name,u=d.type):vr(d)&&(c=d)}if(u!=null)return u==="ordinal"?jm.Must:jm.Not;if(e===Cv){var h=t;if(n===FV){for(var f=h[o],p=0;p<(f||[]).length&&p<l;p++)if((s=x(f[a+p]))!=null)return s}else for(var p=0;p<h.length&&p<l;p++){var m=h[a+p];if(m&&(s=x(m[o]))!=null)return s}}else if(e===TE){var g=t;if(!c)return jm.Not;for(var p=0;p<g.length&&p<l;p++){var v=g[p];if(v&&(s=x(v[c]))!=null)return s}}else if(e===CC){var A=t;if(!c)return jm.Not;var f=A[c];if(!f||W0(f))return jm.Not;for(var p=0;p<f.length&&p<l;p++)if((s=x(f[p]))!=null)return s}else if(e===_E)for(var y=t,p=0;p<y.length&&p<l;p++){var v=y[p],S=RV(v);if(!Tn(S))return jm.Not;if((s=x(S[o]))!=null)return s}function x(w){var _=vr(w);if(w!=null&&isFinite(w)&&w!=="")return _?jm.Might:jm.Not;if(_&&w!=="-")return jm.Must}return jm.Not}var YKe=Ur();function sto(t,e){Tv(YKe.get(t)==null&&e),YKe.set(t,e)}function lto(t,e,n){var r=YKe.get(e);if(!r)return n;var a=r(t);return a?n.concat(a):n}var CIt=ds(),cto=ds(),$ot=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=Ql(this.get("color",!0)),o=this.get("colorLayer",!0);return G8n(this,CIt,a,o,e,n,r)},t.prototype.clearColorPalette=function(){dto(this,CIt)},t}();function JKe(t,e,n,r){var a=Ql(t.get(["aria","decal","decals"]));return G8n(t,cto,a,null,e,n,r)}function uto(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function G8n(t,e,n,r,a,o,s){o=o||t;var l=e(o),c=l.paletteIdx||0,u=l.paletteNameMap=l.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var d=s==null||!r?n:uto(r,s);if(d=d||n,!(!d||!d.length)){var h=d[c];return a&&(u[a]=h),l.paletteIdx=(c+1)%d.length,h}}function dto(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Kde,Dq,kIt,RIt="\0_ec_inner",hto=1,V8n=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,o,s,l){o=o||{},this.option=null,this._theme=new Kl(o),this._locale=new Kl(s),this._optionManager=l},e.prototype.setOption=function(n,r,a){var o=IIt(r);this._optionManager.setOption(n,a,o),this._resetOption(null,o)},e.prototype.resetOption=function(n,r){return this._resetOption(n,IIt(r))},e.prototype._resetOption=function(n,r){var a=!1,o=this._optionManager;if(!n||n==="recreate"){var s=o.mountOption(n==="recreate");!this.option||n==="recreate"?kIt(this,s):(this.restoreData(),this._mergeOption(s,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=o.getTimelineOption(this);l&&(a=!0,this._mergeOption(l,r))}if(!n||n==="recreate"||n==="media"){var c=o.getMediaOption(this);c.length&&Ie(c,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,o=this._componentsMap,s=this._componentsCount,l=[],c=Ur(),u=r&&r.replaceMergeMainTypeMap;ato(this),Ie(n,function(h,f){h!=null&&(Fo.hasClass(f)?f&&(l.push(f),c.set(f,!0)):a[f]=a[f]==null?ji(h):Ra(a[f],h,!0))}),u&&u.each(function(h,f){Fo.hasClass(f)&&!c.get(f)&&(l.push(f),c.set(f,!0))}),Fo.topologicalTravel(l,Fo.getAllClassMainTypes(),d,this);function d(h){var f=lto(this,h,Ql(n[h])),p=o.get(h),m=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=x6n(p,f,m);MZa(g,h,Fo),a[h]=null,o.set(h,null),s.set(h,0);var v=[],A=[],y=0,S;Ie(g,function(x,w){var _=x.existing,C=x.newOption;if(!C)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var R=h==="series",k=Fo.getClass(h,x.keyInfo.subType,!R);if(!k)return;if(h==="tooltip"){if(S)return;S=!0}if(_&&_.constructor===k)_.name=x.keyInfo.name,_.mergeOption(C,this),_.optionUpdated(C,!1);else{var P=An({componentIndex:w},x.keyInfo);_=new k(C,this,this,P),An(_,P),x.brandNew&&(_.__requireNewView=!0),_.init(C,this,this),_.optionUpdated(null,!0)}}_?(v.push(_.option),A.push(_),y++):(v.push(void 0),A.push(void 0))},this),a[h]=v,o.set(h,A),s.set(h,y),h==="series"&&Kde(this)}this._seriesIndices||Kde(this)},e.prototype.getOption=function(){var n=ji(this.option);return Ie(n,function(r,a){if(Fo.hasClass(a)){for(var o=Ql(r),s=o.length,l=!1,c=s-1;c>=0;c--)o[c]&&!sre(o[c])?l=!0:(o[c]=null,!l&&s--);o.length=s,n[a]=o}}),delete n[RIt],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var o=a[r||0];if(o)return o;if(r==null){for(var s=0;s<a.length;s++)if(a[s])return a[s]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,o=n.id,s=n.name,l=this._componentsMap.get(r);if(!l||!l.length)return[];var c;return a!=null?(c=[],Ie(Ql(a),function(u){l[u]&&c.push(l[u])})):o!=null?c=MIt("id",o,l):s!=null?c=MIt("name",s,l):c=ll(l,function(u){return!!u}),NIt(c,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,o=l(r),s=o?this.queryComponents(o):ll(this._componentsMap.get(a),function(u){return!!u});return c(NIt(s,n));function l(u){var d=a+"Index",h=a+"Id",f=a+"Name";return u&&(u[d]!=null||u[h]!=null||u[f]!=null)?{mainType:a,index:u[d],id:u[h],name:u[f]}:null}function c(u){return n.filter?ll(u,n.filter):u}},e.prototype.eachComponent=function(n,r,a){var o=this._componentsMap;if(ai(n)){var s=r,l=n;o.each(function(h,f){for(var p=0;h&&p<h.length;p++){var m=h[p];m&&l.call(s,f,m,m.componentIndex)}})}else for(var c=vr(n)?o.get(n):Ci(n)?this.findComponents(n):null,u=0;c&&u<c.length;u++){var d=c[u];d&&r.call(a,d,d.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Lf(n,null);return ll(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return ll(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return ll(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){Dq(this),Ie(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];n.call(r,o,a)},this)},e.prototype.eachRawSeries=function(n,r){Ie(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){Dq(this),Ie(this._seriesIndices,function(o){var s=this._componentsMap.get("series")[o];s.subType===n&&r.call(a,s,o)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return Ie(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return Dq(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){Dq(this);var a=[];Ie(this._seriesIndices,function(o){var s=this._componentsMap.get("series")[o];n.call(r,s,o)&&a.push(o)},this),this._seriesIndices=a,this._seriesIndicesMap=Ur(a)},e.prototype.restoreData=function(n){Kde(this);var r=this._componentsMap,a=[];r.each(function(o,s){Fo.hasClass(s)&&a.push(s)}),Fo.topologicalTravel(a,Fo.getAllClassMainTypes(),function(o){Ie(r.get(o),function(s){s&&(o!=="series"||!fto(s,n))&&s.restoreData()})})},e.internalField=function(){Kde=function(n){var r=n._seriesIndices=[];Ie(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=Ur(r)},Dq=function(n){},kIt=function(n,r){n.option={},n.option[RIt]=hto,n._componentsMap=Ur({series:[]}),n._componentsCount=Ur();var a=r.aria;Ci(a)&&a.enabled==null&&(a.enabled=!0),pto(r,n._theme.option),Ra(r,ito,!1),n._mergeOption(r,null)}}(),e}(Kl);function fto(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function pto(t,e){var n=t.color&&!t.colorLayer;Ie(e,function(r,a){a==="colorLayer"&&n||Fo.hasClass(a)||(typeof r=="object"?t[a]=t[a]?Ra(t[a],r,!1):ji(r):t[a]==null&&(t[a]=r))})}function MIt(t,e,n){if(Tn(e)){var r=Ur();return Ie(e,function(o){if(o!=null){var s=Lf(o,null);s!=null&&r.set(o,!0)}}),ll(n,function(o){return o&&r.get(o[t])})}else{var a=Lf(e,null);return ll(n,function(o){return o&&a!=null&&o[t]===a})}}function NIt(t,e){return e.hasOwnProperty("subType")?ll(t,function(n){return n&&n.subType===e.subType}):t}function IIt(t){var e=Ur();return t&&Ie(Ql(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Vd(V8n,$ot);const K8n=V8n;var mto=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gto=function(){function t(e){Ie(mto,function(n){this[n]=Cr(e[n],e)},this)}return t}();const W8n=gto;var d6e={},vto=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];Ie(d6e,function(a,o){var s=a.create(e,n);r=r.concat(s||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){Ie(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){d6e[e]=n},t.get=function(e){return d6e[e]},t}();const jV=vto;var Ato=/^(min|max)?(.+)$/,yto=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(Ie(Ql(e.series),function(s){s&&s.data&&W0(s.data)&&Xne(s.data)}),Ie(Ql(e.dataset),function(s){s&&s.source&&W0(s.source)&&Xne(s.source)})),e=ji(e);var a=this._optionBackup,o=bto(e,n,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],ji(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=ji(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var c=0,u=a.length;c<u;c++)xto(a[c].query,n,r)&&s.push(c);return!s.length&&o&&(s=[-1]),s.length&&!Sto(s,this._currentMediaIndices)&&(l=Rn(s,function(d){return ji(d===-1?o.option:a[d].option)})),this._currentMediaIndices=s,l},t}();function bto(t,e,n){var r=[],a,o,s=t.baseOption,l=t.timeline,c=t.options,u=t.media,d=!!t.media,h=!!(c||l||s&&s.timeline);s?(o=s,o.timeline||(o.timeline=l)):((h||d)&&(t.options=t.media=null),o=t),d&&Tn(u)&&Ie(u,function(p){p&&p.option&&(p.query?r.push(p):a||(a=p))}),f(o),Ie(c,function(p){return f(p)}),Ie(r,function(p){return f(p.option)});function f(p){Ie(e,function(m){m(p,n)})}return{baseOption:o,timelineOptions:c||[],mediaDefault:a,mediaList:r}}function xto(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return Ie(t,function(o,s){var l=s.match(Ato);if(!(!l||!l[1]||!l[2])){var c=l[1],u=l[2].toLowerCase();Eto(r[u],o,c)||(a=!1)}}),a}function Eto(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function Sto(t,e){return t.join(",")===e.join(",")}const wto=yto;var uS=Ie,pre=Ci,PIt=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function h6e(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=PIt.length;n<r;n++){var a=PIt[n],o=e.normal,s=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?Ra(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),s&&s[a]&&(t[a]=t[a]||{},t[a].emphasis?Ra(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function tv(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,bi(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function BZ(t){tv(t,"itemStyle"),tv(t,"lineStyle"),tv(t,"areaStyle"),tv(t,"label"),tv(t,"labelLine"),tv(t,"upperLabel"),tv(t,"edgeLabel")}function $h(t,e){var n=pre(t)&&t[e],r=pre(n)&&n.textStyle;if(r)for(var a=0,o=FNt.length;a<o;a++){var s=FNt[a];r.hasOwnProperty(s)&&(n[s]=r[s])}}function Zb(t){t&&(BZ(t),$h(t,"label"),t.emphasis&&$h(t.emphasis,"label"))}function _to(t){if(pre(t)){h6e(t),BZ(t),$h(t,"label"),$h(t,"upperLabel"),$h(t,"edgeLabel"),t.emphasis&&($h(t.emphasis,"label"),$h(t.emphasis,"upperLabel"),$h(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(h6e(e),Zb(e));var n=t.markLine;n&&(h6e(n),Zb(n));var r=t.markArea;r&&Zb(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var o=t.links||t.edges;if(o&&!W0(o))for(var s=0;s<o.length;s++)Zb(o[s]);Ie(t.categories,function(u){BZ(u)})}if(a&&!W0(a))for(var s=0;s<a.length;s++)Zb(a[s]);if(e=t.markPoint,e&&e.data)for(var l=e.data,s=0;s<l.length;s++)Zb(l[s]);if(n=t.markLine,n&&n.data)for(var c=n.data,s=0;s<c.length;s++)Tn(c[s])?(Zb(c[s][0]),Zb(c[s][1])):Zb(c[s]);t.type==="gauge"?($h(t,"axisLabel"),$h(t,"title"),$h(t,"detail")):t.type==="treemap"?(tv(t.breadcrumb,"itemStyle"),Ie(t.levels,function(u){BZ(u)})):t.type==="tree"&&BZ(t.leaves)}}function Ok(t){return Tn(t)?t:t?[t]:[]}function OIt(t){return(Tn(t)?t[0]:t)||{}}function Tto(t,e){uS(Ok(t.series),function(r){pre(r)&&_to(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),uS(n,function(r){uS(Ok(t[r]),function(a){a&&($h(a,"axisLabel"),$h(a.axisPointer,"label"))})}),uS(Ok(t.parallel),function(r){var a=r&&r.parallelAxisDefault;$h(a,"axisLabel"),$h(a&&a.axisPointer,"label")}),uS(Ok(t.calendar),function(r){tv(r,"itemStyle"),$h(r,"dayLabel"),$h(r,"monthLabel"),$h(r,"yearLabel")}),uS(Ok(t.radar),function(r){$h(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),uS(Ok(t.geo),function(r){pre(r)&&(Zb(r),uS(Ok(r.regions),function(a){Zb(a)}))}),uS(Ok(t.timeline),function(r){Zb(r),tv(r,"label"),tv(r,"itemStyle"),tv(r,"controlStyle",!0);var a=r.data;Tn(a)&&Ie(a,function(o){Ci(o)&&(tv(o,"label"),tv(o,"itemStyle"))})}),uS(Ok(t.toolbox),function(r){tv(r,"iconStyle"),uS(r.feature,function(a){tv(a,"iconStyle")})}),$h(OIt(t.axisPointer),"label"),$h(OIt(t.tooltip).axisPointer,"label")}function Cto(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function kto(t,e,n,r){for(var a=e.split(","),o=t,s,l=0;l<a.length-1;l++)s=a[l],o[s]==null&&(o[s]={}),o=o[s];(r||o[a[l]]==null)&&(o[a[l]]=n)}function LIt(t){t&&Ie(Rto,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Rto=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Mto=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],f6e=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function $q(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<f6e.length;n++){var r=f6e[n][1],a=f6e[n][0];e[r]!=null&&(e[a]=e[r])}}function BIt(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function DIt(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Nto(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Q8n(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Q8n(t[n].children,e)}function q8n(t,e){Tto(t,e),t.series=Ql(t.series),Ie(t.series,function(n){if(Ci(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),BIt(n.label);var a=n.data;if(a&&!W0(a))for(var o=0;o<a.length;o++)BIt(a[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var s=Cto(n,"pointer.color");s!=null&&kto(n,"itemStyle.color",s)}else if(r==="bar"){$q(n),$q(n.backgroundStyle),$q(n.emphasis);var a=n.data;if(a&&!W0(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&($q(a[o]),$q(a[o]&&a[o].emphasis))}else if(r==="sunburst"){var l=n.highlightPolicy;l&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=l)),DIt(n),Q8n(n.data,DIt)}else r==="graph"||r==="sankey"?Nto(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&bi(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),LIt(n)}}),t.dataRange&&(t.visualMap=t.dataRange),Ie(Mto,function(n){var r=t[n];r&&(Tn(r)||(r=[r]),Ie(r,function(a){LIt(a)}))})}function Ito(t){var e=Ur();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),o=n.getData(),s={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!s.stackedDimension||!(s.isStackedByIndex||s.stackedByDimension))return;a.length&&o.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(s)}}),e.each(Pto)}function Pto(t){Ie(t,function(e,n){var r=[],a=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],s=e.data,l=e.isStackedByIndex,c=e.seriesModel.get("stackStrategy")||"samesign";s.modify(o,function(u,d,h){var f=s.get(e.stackedDimension,h);if(isNaN(f))return a;var p,m;l?m=s.getRawIndex(h):p=s.get(e.stackedByDimension,h);for(var g=NaN,v=n-1;v>=0;v--){var A=t[v];if(l||(m=A.data.rawIndexOf(A.stackedByDimension,p)),m>=0){var y=A.data.getByRawIndex(A.stackResultDimension,m);if(c==="all"||c==="positive"&&y>0||c==="negative"&&y<0||c==="samesign"&&f>=0&&y>0||c==="samesign"&&f<=0&&y<0){f=bZa(f,y),g=y;break}}}return r[0]=f,r[1]=g,r})})}var o2e=function(){function t(e){this.data=e.data||(e.sourceFormat===CC?{}:[]),this.sourceFormat=e.sourceFormat||F8n,this.seriesLayoutBy=e.seriesLayoutBy||M2,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&U8n(this,r)===jm.Must&&(a.type="ordinal")}}return t}();function Fot(t){return t instanceof o2e}function ZKe(t,e,n){n=n||Y8n(t);var r=e.seriesLayoutBy,a=Lto(t,n,r,e.sourceHeader,e.dimensions),o=new o2e({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ji(e)});return o}function jot(t){return new o2e({data:t,sourceFormat:W0(t)?O5:_E})}function Oto(t){return new o2e({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:ji(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Y8n(t){var e=F8n;if(W0(t))e=O5;else if(Tn(t)){t.length===0&&(e=Cv);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(Tn(a)||W0(a)){e=Cv;break}else if(Ci(a)){e=TE;break}}}}else if(Ci(t)){for(var o in t)if(Dr(t,o)&&ug(t[o])){e=CC;break}}return e}function Lto(t,e,n,r,a){var o,s;if(!t)return{dimensionsDefine:$It(a),startIndex:s,dimensionsDetectedCount:o};if(e===Cv){var l=t;r==="auto"||r==null?FIt(function(u){u!=null&&u!=="-"&&(vr(u)?s==null&&(s=1):s=0)},n,l,10):s=cs(r)?r:r?1:0,!a&&s===1&&(a=[],FIt(function(u,d){a[d]=u!=null?u+"":""},n,l,1/0)),o=a?a.length:n===FV?l.length:l[0]?l[0].length:null}else if(e===TE)a||(a=Bto(t));else if(e===CC)a||(a=[],Ie(t,function(u,d){a.push(d)}));else if(e===_E){var c=RV(t[0]);o=Tn(c)&&c.length||1}return{startIndex:s,dimensionsDefine:$It(a),dimensionsDetectedCount:o}}function Bto(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return bo(n)}function $It(t){if(t){var e=Ur();return Rn(t,function(n,r){n=Ci(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var o=e.get(a.name);return o?a.name+="-"+o.count++:e.set(a.name,{count:1}),a})}}function FIt(t,e,n,r){if(e===FV)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var o=n[0]||[],a=0;a<o.length&&a<r;a++)t(o[a],a)}function J8n(t){var e=t.sourceFormat;return e===TE||e===CC}var K4,W4,Q4,jIt,HIt,Z8n=function(){function t(e,n){var r=Fot(e)?e:jot(e);this._source=r;var a=this._data=r.data;r.sourceFormat===O5&&(this._offset=0,this._dimSize=n,this._data=a),HIt(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;HIt=function(s,l,c){var u=c.sourceFormat,d=c.seriesLayoutBy,h=c.startIndex,f=c.dimensionsDefine,p=jIt[Hot(u,d)];if(An(s,p),u===O5)s.getItem=n,s.count=a,s.fillStorage=r;else{var m=X8n(u,d);s.getItem=Cr(m,null,l,h,f);var g=e9n(u,d);s.count=Cr(g,null,l,h,f)}};var n=function(s,l){s=s-this._offset,l=l||[];for(var c=this._data,u=this._dimSize,d=u*s,h=0;h<u;h++)l[h]=c[d+h];return l},r=function(s,l,c,u){for(var d=this._data,h=this._dimSize,f=0;f<h;f++){for(var p=u[f],m=p[0]==null?1/0:p[0],g=p[1]==null?-1/0:p[1],v=l-s,A=c[f],y=0;y<v;y++){var S=d[y*h+f];A[s+y]=S,S<m&&(m=S),S>g&&(g=S)}p[0]=m,p[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};jIt=(e={},e[Cv+"_"+M2]={pure:!0,appendData:o},e[Cv+"_"+FV]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[TE]={pure:!0,appendData:o},e[CC]={pure:!0,appendData:function(s){var l=this._data;Ie(s,function(c,u){for(var d=l[u]||(l[u]=[]),h=0;h<(c||[]).length;h++)d.push(c[h])})}},e[_E]={appendData:o},e[O5]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},e);function o(s){for(var l=0;l<s.length;l++)this._data.push(s[l])}}(),t}(),UIt=function(t,e,n,r){return t[r]},Dto=(K4={},K4[Cv+"_"+M2]=function(t,e,n,r){return t[r+e]},K4[Cv+"_"+FV]=function(t,e,n,r,a){r+=e;for(var o=a||[],s=t,l=0;l<s.length;l++){var c=s[l];o[l]=c?c[r]:null}return o},K4[TE]=UIt,K4[CC]=function(t,e,n,r,a){for(var o=a||[],s=0;s<n.length;s++){var l=n[s].name,c=t[l];o[s]=c?c[r]:null}return o},K4[_E]=UIt,K4);function X8n(t,e){var n=Dto[Hot(t,e)];return n}var zIt=function(t,e,n){return t.length},$to=(W4={},W4[Cv+"_"+M2]=function(t,e,n){return Math.max(0,t.length-e)},W4[Cv+"_"+FV]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},W4[TE]=zIt,W4[CC]=function(t,e,n){var r=n[0].name,a=t[r];return a?a.length:0},W4[_E]=zIt,W4);function e9n(t,e){var n=$to[Hot(t,e)];return n}var p6e=function(t,e,n){return t[e]},Fto=(Q4={},Q4[Cv]=p6e,Q4[TE]=function(t,e,n){return t[n]},Q4[CC]=p6e,Q4[_E]=function(t,e,n){var r=RV(t);return r instanceof Array?r[e]:r},Q4[O5]=p6e,Q4);function t9n(t){var e=Fto[t];return e}function Hot(t,e){return t===Cv?t+"_"+e:t}function oz(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),o=a.getSource().sourceFormat;if(n!=null){var s=t.getDimensionIndex(n),l=a.getDimensionProperty(s);return t9n(o)(r,s,l)}else{var c=r;return o===_E&&(c=RV(r)),c}}}}var jto=/\{@(.+?)\}/g,Uot=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),o=r.getRawIndex(e),s=r.getName(e),l=r.getRawDataItem(e),c=r.getItemVisual(e,"style"),u=c&&c[r.getItemVisual(e,"drawType")||"fill"],d=c&&c.stroke,h=this.mainType,f=h==="series",p=r.userOutput&&r.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:s,dataIndex:o,data:l,dataType:n,value:a,color:u,borderColor:d,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,o,s){n=n||"normal";var l=this.getData(r),c=this.getDataParams(e,r);if(s&&(c.value=s.interpolatedValue),a!=null&&Tn(c.value)&&(c.value=c.value[a]),!o){var u=l.getItemModel(e);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(ai(o))return c.status=n,c.dimensionIndex=a,o(c);if(vr(o)){var d=Oot(o,c);return d.replace(jto,function(h,f){var p=f.length,m=f;m.charAt(0)==="["&&m.charAt(p-1)==="]"&&(m=+m.slice(1,p-1));var g=oz(l,e,m);if(s&&Tn(s.interpolatedValue)){var v=l.getDimensionIndex(m);v>=0&&(g=s.interpolatedValue[v])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,n){return oz(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function GIt(t){var e,n;return Ci(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function See(t){return new Hto(t)}var Hto=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var s=d(this._modBy),l=this._modDataCount||0,c=d(e&&e.modBy),u=e&&e.modDataCount||0;(s!==c||l!==u)&&(o="reset");function d(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||o==="reset")&&(this._dirty=!1,h=this._doReset(r)),this._modBy=c,this._modDataCount=u;var f=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,m=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(h||p<m)){var g=this._progress;if(Tn(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],p,m,c,u);else this._doProgress(g,p,m,c,u)}this._dueIndex=m;var A=this._settedOutputEnd!=null?this._settedOutputEnd:m;this._outputDueEnd=A}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,o){VIt.reset(n,r,a,o),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:VIt.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Tn(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),VIt=function(){var t,e,n,r,a,o={reset:function(c,u,d,h){e=c,t=u,n=d,r=h,a=Math.ceil(r/n),o.next=n>1&&r>0?l:s}};return o;function s(){return e<t?e++:null}function l(){var c=e%a*n+Math.ceil(e/a),u=e>=t?null:c<r?c:e;return e++,u}}();function L5(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!cs(t)&&t!=null&&t!=="-"&&(t=+qy(t)),t==null||t===""?NaN:+t)}var Uto=Ur({number:function(t){return parseFloat(t)},time:function(t){return+qy(t)},trim:function(t){return vr(t)?_x(t):t}});function n9n(t){return Uto.get(t)}var r9n={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},zto=function(){function t(e,n){if(!cs(n)){var r="";Zs(r)}this._opFn=r9n[e],this._rvalFloat=rC(n)}return t.prototype.evaluate=function(e){return cs(e)?this._opFn(e,this._rvalFloat):this._opFn(rC(e),this._rvalFloat)},t}(),i9n=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=cs(e)?e:rC(e),a=cs(n)?n:rC(n),o=isNaN(r),s=isNaN(a);if(o&&(r=this._incomparable),s&&(a=this._incomparable),o&&s){var l=vr(e),c=vr(n);l&&(r=c?e:0),c&&(a=l?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t}(),Gto=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=rC(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=rC(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function Vto(t,e){return t==="eq"||t==="ne"?new Gto(t==="eq",e):Dr(r9n,t)?new zto(t,e):null}var Kto=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return L5(e,n)},t}();function Wto(t,e){var n=new Kto,r=t.data,a=n.sourceFormat=t.sourceFormat,o=t.startIndex,s="";t.seriesLayoutBy!==M2&&Zs(s);var l=[],c={},u=t.dimensionsDefine;if(u)Ie(u,function(g,v){var A=g.name,y={index:v,name:A,displayName:g.displayName};if(l.push(y),A!=null){var S="";Dr(c,A)&&Zs(S),c[A]=y}});else for(var d=0;d<t.dimensionsDetectedCount;d++)l.push({index:d});var h=X8n(a,M2);e.__isBuiltIn&&(n.getRawDataItem=function(g){return h(r,o,l,g)},n.getRawData=Cr(Qto,null,t)),n.cloneRawData=Cr(qto,null,t);var f=e9n(a,M2);n.count=Cr(f,null,r,o,l);var p=t9n(a);n.retrieveValue=function(g,v){var A=h(r,o,l,g);return m(A,v)};var m=n.retrieveValueFromItem=function(g,v){if(g!=null){var A=l[v];if(A)return p(g,v,A.name)}};return n.getDimensionInfo=Cr(Yto,null,l,c),n.cloneAllDimensionInfo=Cr(Jto,null,l),n}function Qto(t){var e=t.sourceFormat;if(!zot(e)){var n="";Zs(n)}return t.data}function qto(t){var e=t.sourceFormat,n=t.data;if(!zot(e)){var r="";Zs(r)}if(e===Cv){for(var a=[],o=0,s=n.length;o<s;o++)a.push(n[o].slice());return a}else if(e===TE){for(var a=[],o=0,s=n.length;o<s;o++)a.push(An({},n[o]));return a}}function Yto(t,e,n){if(n!=null){if(cs(n)||!isNaN(n)&&!Dr(e,n))return t[n];if(Dr(e,n))return e[n]}}function Jto(t){return ji(t)}var a9n=Ur();function Zto(t){t=ji(t);var e=t.type,n="";e||Zs(n);var r=e.split(":");r.length!==2&&Zs(n);var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,a9n.set(e,t)}function Xto(t,e,n){var r=Ql(t),a=r.length,o="";a||Zs(o);for(var s=0,l=a;s<l;s++){var c=r[s];e=eno(c,e),s!==l-1&&(e.length=Math.max(e.length,1))}return e}function eno(t,e,n,r){var a="";e.length||Zs(a),Ci(t)||Zs(a);var o=t.type,s=a9n.get(o);s||Zs(a);var l=Rn(e,function(u){return Wto(u,s)}),c=Ql(s.transform({upstream:l[0],upstreamList:l,config:ji(t.config)}));return Rn(c,function(u,d){var h="";Ci(u)||Zs(h),u.data||Zs(h);var f=Y8n(u.data);zot(f)||Zs(h);var p,m=e[0];if(m&&d===0&&!u.dimensions){var g=m.startIndex;g&&(u.data=m.data.slice(0,g).concat(u.data)),p={seriesLayoutBy:M2,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else p={seriesLayoutBy:M2,sourceHeader:0,dimensions:u.dimensions};return ZKe(u.data,p,null)})}function zot(t){return t===Cv||t===TE}var s2e="undefined",tno=typeof Uint32Array===s2e?Array:Uint32Array,nno=typeof Uint16Array===s2e?Array:Uint16Array,o9n=typeof Int32Array===s2e?Array:Int32Array,KIt=typeof Float64Array===s2e?Array:Float64Array,s9n={float:KIt,int:o9n,ordinal:Array,number:Array,time:KIt},m6e;function Fq(t){return t>65535?tno:nno}function r7(){return[1/0,-1/0]}function rno(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function WIt(t,e,n,r,a){var o=s9n[n||"float"];if(a){var s=t[e],l=s&&s.length;if(l!==r){for(var c=new o(r),u=0;u<l;u++)c[u]=s[u];t[e]=c}}else t[e]=new o(r)}var ino=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ur()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),o=this.defaultDimValueGetter=m6e[a.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],J8n(a),this._dimensions=Rn(n,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,o=r.get(e);if(o!=null){if(a[o].type===n)return o}else o=a.length;return a[o]={type:n},r.set(e,o),this._chunks[o]=new s9n[n||"float"](this._rawCount),this._rawExtent[o]=r7(),o},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],o=this._rawExtent,s=a.ordinalOffset||0,l=r.length;s===0&&(o[e]=r7());for(var c=o[e],u=s;u<l;u++){var d=r[u]=n.parseAndCollect(r[u]);isNaN(d)||(c[0]=Math.min(d,c[0]),c[1]=Math.max(d,c[1]))}a.ordinalMeta=n,a.ordinalOffset=l,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=this.count(),c=l+Math.max(e.length,n||0),u=0;u<o;u++){var d=a[u];WIt(r,u,d.type,c,!0)}for(var h=[],f=l;f<c;f++)for(var p=f-l,m=0;m<o;m++){var d=a[m],g=m6e.arrayRows.call(this,e[p]||h,d.property,p,m);r[m][f]=g;var v=s[m];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=c,{start:l,end:c}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,o=this._chunks,s=this._dimensions,l=s.length,c=this._rawExtent,u=Rn(s,function(y){return y.property}),d=0;d<l;d++){var h=s[d];c[d]||(c[d]=r7()),WIt(o,d,h.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,o,c);else for(var f=[],p=e;p<n;p++){f=a.getItem(p,f);for(var m=0;m<l;m++){var g=o[m],v=this._dimValueGetter(f,u[m],p,m);g[p]=v;var A=c[m];v<A[0]&&(A[0]=v),v>A[1]&&(A[1]=v)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var o=0;o<this._dimensions.length;o++)a.push(o)}else a=e;for(var o=0,s=a.length;o<s;o++)r.push(this.get(a[o],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,o=this.count();a<o;a++){var s=this.get(e,a);isNaN(s)||(r+=s)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,s){return o-s}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,o=this._count-1;a<=o;){var s=(a+o)/2|0;if(n[s]<e)a=s+1;else if(n[s]>e)o=s-1;else return s}return-1},t.prototype.indicesOfNearest=function(e,n,r){var a=this._chunks,o=a[e],s=[];if(!o)return s;r==null&&(r=1/0);for(var l=1/0,c=-1,u=0,d=0,h=this.count();d<h;d++){var f=this.getRawIndex(d),p=n-o[f],m=Math.abs(p);m<=r&&((m<l||m===l&&p>=0&&c<0)&&(l=m,c=p,u=0),p===c&&(s[u++]=d))}return s.length=u,s},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var o=0;o<a;o++)e[o]=n[o]}else e=new r(n.buffer,0,a)}else{var r=Fq(this._rawCount);e=new r(this.count());for(var o=0;o<e.length;o++)e[o]=o}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),o=Fq(r._rawCount),s=new o(a),l=[],c=e.length,u=0,d=e[0],h=r._chunks,f=0;f<a;f++){var p=void 0,m=r.getRawIndex(f);if(c===0)p=n(f);else if(c===1){var g=h[d][m];p=n(g,f)}else{for(var v=0;v<c;v++)l[v]=h[e[v]][m];l[v]=f,p=n.apply(null,l)}p&&(s[u++]=m)}return u<a&&(r._indices=s),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=bo(e),o=a.length;if(!o)return this;var s=n.count(),l=Fq(n._rawCount),c=new l(s),u=0,d=a[0],h=e[d][0],f=e[d][1],p=n._chunks,m=!1;if(!n._indices){var g=0;if(o===1){for(var v=p[a[0]],A=0;A<r;A++){var y=v[A];(y>=h&&y<=f||isNaN(y))&&(c[u++]=g),g++}m=!0}else if(o===2){for(var v=p[a[0]],S=p[a[1]],x=e[a[1]][0],w=e[a[1]][1],A=0;A<r;A++){var y=v[A],_=S[A];(y>=h&&y<=f||isNaN(y))&&(_>=x&&_<=w||isNaN(_))&&(c[u++]=g),g++}m=!0}}if(!m)if(o===1)for(var A=0;A<s;A++){var C=n.getRawIndex(A),y=p[a[0]][C];(y>=h&&y<=f||isNaN(y))&&(c[u++]=C)}else for(var A=0;A<s;A++){for(var R=!0,C=n.getRawIndex(A),k=0;k<o;k++){var P=a[k],y=p[P][C];(y<e[P][0]||y>e[P][1])&&(R=!1)}R&&(c[u++]=n.getRawIndex(A))}return u<s&&(n._indices=c),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,o=[],s=n.length,l=e.count(),c=[],u=e._rawExtent,d=0;d<n.length;d++)u[n[d]]=r7();for(var h=0;h<l;h++){for(var f=e.getRawIndex(h),p=0;p<s;p++)c[p]=a[n[p]][f];c[s]=h;var m=r&&r.apply(null,c);if(m!=null){typeof m!="object"&&(o[0]=m,m=o);for(var d=0;d<m.length;d++){var g=n[d],v=m[d],A=u[g],y=a[g];y&&(y[f]=v),v<A[0]&&(A[0]=v),v>A[1]&&(A[1]=v)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,o=a[e],s=this.count(),l=0,c=Math.floor(1/n),u=this.getRawIndex(0),d,h,f,p=new(Fq(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));p[l++]=u;for(var m=1;m<s-1;m+=c){for(var g=Math.min(m+c,s-1),v=Math.min(m+c*2,s),A=(v+g)/2,y=0,S=g;S<v;S++){var x=this.getRawIndex(S),w=o[x];isNaN(w)||(y+=w)}y/=v-g;var _=m,C=Math.min(m+c,s),R=m-1,k=o[u];d=-1,f=_;for(var P=-1,N=0,S=_;S<C;S++){var x=this.getRawIndex(S),w=o[x];if(isNaN(w)){N++,P<0&&(P=x);continue}h=Math.abs((R-A)*(w-k)-(R-S)*(y-k)),h>d&&(d=h,f=x)}N>0&&N<C-_&&(p[l++]=Math.min(P,f),f=Math.max(P,f)),p[l++]=f,u=f}return p[l++]=this.getRawIndex(s-1),r._count=l,r._indices=p,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,a){for(var o=this.clone([e],!0),s=o._chunks,l=[],c=Math.floor(1/n),u=s[e],d=this.count(),h=o._rawExtent[e]=r7(),f=new(Fq(this._rawCount))(Math.ceil(d/c)),p=0,m=0;m<d;m+=c){c>d-m&&(c=d-m,l.length=c);for(var g=0;g<c;g++){var v=this.getRawIndex(m+g);l[g]=u[v]}var A=r(l),y=this.getRawIndex(Math.min(m+a(l,A)||0,d-1));u[y]=A,A<h[0]&&(h[0]=A),A>h[1]&&(h[1]=A),f[p++]=y}return o._count=p,o._indices=f,o._updateGetRawIdx(),o},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,o=0,s=this.count();o<s;o++){var l=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(a[e[0]][l],o);break;case 2:n(a[e[0]][l],a[e[1]][l],o);break;default:for(var c=0,u=[];c<r;c++)u[c]=a[e[c]][l];u[c]=o,n.apply(null,u)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=r7();if(!n)return r;var a=this.count(),o=!this._indices,s;if(o)return this._rawExtent[e].slice();if(s=this._extent[e],s)return s.slice();s=r;for(var l=s[0],c=s[1],u=0;u<a;u++){var d=this.getRawIndex(u),h=n[d];h<l&&(l=h),h>c&&(c=h)}return s=[l,c],this._extent[e]=s,s},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,o=0;o<a.length;o++)r.push(a[o][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,o=e&&Zx(e,function(l,c){return l[c]=!0,l},{});if(o)for(var s=0;s<a.length;s++)r._chunks[s]=o[s]?rno(a[s]):a[s];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ji(this._extent),e._rawExtent=ji(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,a,o){return L5(n[o],this._dimensions[o])}m6e={arrayRows:e,objectRows:function(n,r,a,o){return L5(n[r],this._dimensions[o])},keyedColumns:e,original:function(n,r,a,o){var s=n&&(n.value==null?n:n.value);return L5(s instanceof Array?s[o]:s,this._dimensions[o])},typedArray:function(n,r,a,o){return n[o]}}}(),t}();const XKe=ino;var l9n=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,o;if(Wde(e)){var s=e,l=void 0,c=void 0,u=void 0;if(r){var d=n[0];d.prepareSource(),u=d.getSource(),l=u.data,c=u.sourceFormat,o=[d._getVersionSign()]}else l=s.get("data",!0),c=W0(l)?O5:_E,o=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},p=pa(h.seriesLayoutBy,f.seriesLayoutBy)||null,m=pa(h.sourceHeader,f.sourceHeader),g=pa(h.dimensions,f.dimensions),v=p!==f.seriesLayoutBy||!!m!=!!f.sourceHeader||g;a=v?[ZKe(l,{seriesLayoutBy:p,sourceHeader:m,dimensions:g},c)]:[]}else{var A=e;if(r){var y=this._applyTransform(n);a=y.sourceList,o=y.upstreamSignList}else{var S=A.get("source",!0);a=[ZKe(S,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(a,o)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var o="";e.length!==1&&qIt(o)}var s,l=[],c=[];return Ie(e,function(u){u.prepareSource();var d=u.getSource(a||0),h="";a!=null&&!d&&qIt(h),l.push(d),c.push(u._getVersionSign())}),r?s=Xto(r,l,{datasetIndex:n.componentIndex}):a!=null&&(s=[Oto(l[0])]),{sourceList:s,upstreamSignList:c}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,o=this._storeList,s=o[a];s||(s=o[a]={});var l=s[r];if(!l){var c=this._getUpstreamSourceManagers()[0];Wde(this._sourceHost)&&c?l=c._innerGetDataStore(e,n,r):(l=new XKe,l.initData(new Z8n(n,e.length),e)),s[r]=l}return l},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Wde(e)){var n=Dot(e);return n?[n.getSourceManager()]:[]}else return Rn(oto(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(Wde(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=e;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),a=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t}();function QIt(t){var e=t.option.transform;e&&Xne(t.option.transform)}function Wde(t){return t.mainType==="series"}function qIt(t){throw new Error(t)}var c9n="line-height:1";function u9n(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",o=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+w0(r+"")+"px;color:"+w0(n)+";font-weight:"+w0(a+""),valueStyle:"font-size:"+w0(s+"")+"px;color:"+w0(o)+";font-weight:"+w0(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:l}}}var ano=[0,10,20,30],ono=["",`
`,`

`,`


`];function kp(t,e){return e.type=t,e}function eWe(t){return t.type==="section"}function d9n(t){return eWe(t)?sno:lno}function h9n(t){if(eWe(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Ie(t.blocks,function(a){var o=h9n(a);o>=e&&(e=o+ +(r&&(!o||eWe(a)&&!a.noHeader)))}),e}return 0}function sno(t,e,n,r){var a=e.noHeader,o=cno(h9n(e)),s=[],l=e.blocks||[];Tv(!l||Tn(l)),l=l||[];var c=t.orderMode;if(e.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Dr(u,c)){var d=new i9n(u[c],null);l.sort(function(m,g){return d.evaluate(m.sortParam,g.sortParam)})}else c==="seriesDesc"&&l.reverse()}Ie(l,function(m,g){var v=e.valueFormatter,A=d9n(m)(v?An(An({},t),{valueFormatter:v}):t,m,g>0?o.html:0,r);A!=null&&s.push(A)});var h=t.renderMode==="richText"?s.join(o.richText):tWe(s.join(""),a?n:o.html);if(a)return h;var f=qKe(e.header,"ordinal",t.useUTC),p=u9n(r,t.renderMode).nameStyle;return t.renderMode==="richText"?f9n(t,f,p)+o.richText+h:tWe('<div style="'+p+";"+c9n+';">'+w0(f)+"</div>"+h,n)}function lno(t,e,n,r){var a=t.renderMode,o=e.noName,s=e.noValue,l=!e.markerType,c=e.name,u=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(x){return x=Tn(x)?x:[x],Rn(x,function(w,_){return qKe(w,Tn(p)?p[_]:p,u)})};if(!(o&&s)){var h=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=o?"":qKe(c,"ordinal",u),p=e.valueType,m=s?[]:d(e.value,e.dataIndex),g=!l||!o,v=!l&&o,A=u9n(r,a),y=A.nameStyle,S=A.valueStyle;return a==="richText"?(l?"":h)+(o?"":f9n(t,f,y))+(s?"":hno(t,m,g,v,S)):tWe((l?"":h)+(o?"":uno(f,!l,y))+(s?"":dno(m,g,v,S)),n)}}function YIt(t,e,n,r,a,o){if(t){var s=d9n(t),l={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return s(l,t,0,o)}}function cno(t){return{html:ano[t],richText:ono[t]}}function tWe(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+c9n+';">'+t+n+"</div>"}function uno(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+w0(t)+"</span>"}function dno(t,e,n,r){var a=n?"10px":"20px",o=e?"float:right;margin-left:"+a:"";return t=Tn(t)?t:[t],'<span style="'+o+";"+r+'">'+Rn(t,function(s){return w0(s)}).join("&nbsp;&nbsp;")+"</span>"}function f9n(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function hno(t,e,n,r,a){var o=[a],s=r?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Tn(e)?e.join("  "):e,o)}function p9n(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return i8(r)}function m9n(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var g6e=function(){function t(){this.richTextStyles={},this._nextStyleNameId=v6n()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var a=r==="richText"?this._generateStyleName():null,o=O8n({color:n,type:e,renderMode:r,markerId:a});return vr(o)?o:(this.richTextStyles[a]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};Tn(n)?Ie(n,function(o){return An(r,o)}):An(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t}();function g9n(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),o=a.mapDimensionsAll("defaultedTooltip"),s=o.length,l=e.getRawValue(n),c=Tn(l),u=p9n(e,n),d,h,f,p;if(s>1||c&&!s){var m=fno(l,e,n,o,u);d=m.inlineValues,h=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(s){var g=a.getDimensionInfo(o[0]);p=d=oz(a,n,o[0]),h=g.type}else p=d=c?l[0]:l;var v=cot(e),A=v&&e.name||"",y=a.getName(n),S=r?A:y;return kp("section",{header:A,noHeader:r||!v,sortParam:p,blocks:[kp("nameValue",{markerType:"item",markerColor:u,name:S,noName:!_x(S),value:d,valueType:h,dataIndex:n})].concat(f||[])})}function fno(t,e,n,r,a){var o=e.getData(),s=Zx(t,function(h,f,p){var m=o.getDimensionInfo(p);return h=h||m&&m.tooltip!==!1&&m.displayName!=null},!1),l=[],c=[],u=[];r.length?Ie(r,function(h){d(oz(o,n,h),h)}):Ie(t,d);function d(h,f){var p=o.getDimensionInfo(f);!p||p.otherDims.tooltip===!1||(s?u.push(kp("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:h,valueType:p.type})):(l.push(h),c.push(p.type)))}return{inlineValues:l,inlineValueTypes:c,blocks:u}}var AI=ds();function Qde(t,e){return t.getName(e)||t.getId(e)}var sge="__universalTransitionEnabled",l2e=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=See({count:mno,reset:gno}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var o=AI(this).sourceManager=new l9n(this);o.prepareSource();var s=this.getInitialData(n,a);ZIt(s,this),this.dataTask.context.data=s,AI(this).dataBeforeProcessed=s,JIt(this),this._initSelectedMapFromData(s)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=fre(this),o=a?DV(n):{},s=this.subType;Fo.hasClass(s)&&(s+="Series"),Ra(n,r.getTheme().get(this.subType)),Ra(n,this.getDefaultOption()),e8(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&MP(n,o,a)},e.prototype.mergeOption=function(n,r){n=Ra(this.option,n,!0),this.fillDataTextStyle(n.data);var a=fre(this);a&&MP(this.option,n,a);var o=AI(this).sourceManager;o.dirty(),o.prepareSource();var s=this.getInitialData(n,r);ZIt(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,AI(this).dataBeforeProcessed=s,JIt(this),this._initSelectedMapFromData(s)},e.prototype.fillDataTextStyle=function(n){if(n&&!W0(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&e8(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=nWe(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return AI(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=nWe(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}AI(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Ur(n)},e.prototype.getSourceManager=function(){return AI(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return AI(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,a){return g9n({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(ls.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var o=this.ecModel,s=$ot.prototype.getColorFromPalette.call(this,n,r,a);return s||(s=o.getColorFromPalette(n,r,a)),s},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var o=this.option.selectedMode,s=this.getData(r);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l<n.length;l++){var c=n[l],u=Qde(s,c);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],o=0;o<n.length;o++)a[0]=n[o],this.isSelected(n[o],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=bo(n),a=[],o=0;o<r.length;o++){var s=n[r[o]];s>=0&&a.push(s)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(r);return(a==="all"||a[Qde(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[sge])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,o,s=this.option,l=s.selectedMode,c=r.length;if(!(!l||!c)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){Ci(s.selectedMap)||(s.selectedMap={});for(var u=s.selectedMap,d=0;d<c;d++){var h=r[d],f=Qde(n,h);u[f]=!0,this._selectedDataIndicesMap[f]=n.getRawIndex(h)}}else if(l==="single"||l===!0){var p=r[c-1],f=Qde(n,p);s.selectedMap=(a={},a[f]=!0,a),this._selectedDataIndicesMap=(o={},o[f]=n.getRawIndex(p),o)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var o=n.getRawDataItem(a);o&&o.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return Fo.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(Fo);Vd(l2e,Uot);Vd(l2e,$ot);T6n(l2e,Fo);function JIt(t){var e=t.name;cot(t)||(t.name=pno(t)||e)}function pno(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return Ie(n,function(a){var o=e.getDimensionInfo(a);o.displayName&&r.push(o.displayName)}),r.join(" ")}function mno(t){return t.model.getRawData().count()}function gno(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),vno}function vno(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ZIt(t,e){Ie(ere(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,fa(Ano,e))})}function Ano(t,e){var n=nWe(t);return n&&n.setOutputEnd((e||this).count()),e}function nWe(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}const Oc=l2e;var Got=function(){function t(){this.group=new ta,this.uid=BV("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();dot(Got);zTe(Got);const Au=Got;function HV(){var t=ds();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,o=!!n.progressiveRender,s=n.large=!!(r&&r.large),l=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==s||o!==l)&&"reset"}}var v9n=ds(),yno=HV(),Vot=function(){function t(){this.group=new ta,this.uid=BV("viewChart"),this.renderTask=See({plan:bno,reset:xno}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.highlight=function(e,n,r,a){var o=e.getData(a&&a.dataType);o&&e3t(o,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var o=e.getData(a&&a.dataType);o&&e3t(o,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){xO(this.group,e)},t.markUpdateMethod=function(e,n){v9n(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function XIt(t,e,n){t&&ure(t)&&(e==="emphasis"?NM:IM)(t,n)}function e3t(t,e,n){var r=t8(t,e),a=e&&e.highlightKey!=null?QXa(e.highlightKey):null;r!=null?Ie(Ql(r),function(o){XIt(t.getItemGraphicEl(o),n,a)}):t.eachItemGraphicEl(function(o){XIt(o,n,a)})}dot(Vot);zTe(Vot);function bno(t){return yno(t.model)}function xno(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,o=e.pipelineContext.progressiveRender,s=t.view,l=a&&v9n(a).updateMethod,c=o?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](e,n,r,a),Eno[c]}var Eno={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const ql=Vot;var G1e="\0__throttleOriginMethod",t3t="\0__throttleRate",n3t="\0__throttleType";function c2e(t,e,n){var r,a=0,o=0,s=null,l,c,u,d;e=e||0;function h(){o=new Date().getTime(),s=null,t.apply(c,u||[])}var f=function(){for(var p=[],m=0;m<arguments.length;m++)p[m]=arguments[m];r=new Date().getTime(),c=this,u=p;var g=d||e,v=d||n;d=null,l=r-(v?a:o)-g,clearTimeout(s),v?s=setTimeout(h,g):l>=0?h():s=setTimeout(h,-l),a=r};return f.clear=function(){s&&(clearTimeout(s),s=null)},f.debounceNextCall=function(p){d=p},f}function UV(t,e,n,r){var a=t[e];if(a){var o=a[G1e]||a,s=a[n3t],l=a[t3t];if(l!==n||s!==r){if(n==null||!r)return t[e]=o;a=t[e]=c2e(o,n,r==="debounce"),a[G1e]=o,a[n3t]=r,a[t3t]=n}return a}}function mre(t,e){var n=t[e];n&&n[G1e]&&(n.clear&&n.clear(),t[e]=n[G1e])}var r3t=ds(),i3t={itemStyle:n8(w8n,!0),lineStyle:n8(S8n,!0)},Sno={lineStyle:"stroke",itemStyle:"fill"};function A9n(t,e){var n=t.visualStyleMapper||i3t[e];return n||(console.warn("Unknown style type '"+e+"'."),i3t.itemStyle)}function y9n(t,e){var n=t.visualDrawType||Sno[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var wno={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),o=A9n(t,r),s=o(a),l=a.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=y9n(t,r),u=s[c],d=ai(u)?u:null,h=s.fill==="auto"||s.stroke==="auto";if(!s[c]||d||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());s[c]||(s[c]=f,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ai(s.fill)?f:s.fill,s.stroke=s.stroke==="auto"||ai(s.stroke)?f:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!e.isSeriesFiltered(t)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,m){var g=t.getDataParams(m),v=An({},s);v[c]=d(g),p.setItemVisual(m,"style",v)}}}},jq=new Kl,_no={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=A9n(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){jq.option=c[r];var u=a(jq),d=s.ensureUniqueItemVisual(l,"style");An(d,u),jq.option.decal&&(s.setItemVisual(l,"decal",jq.option.decal),jq.option.decal.dirty=!0),o in u&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Tno={performRawSeries:!0,overallReset:function(t){var e=Ur();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,o=e.get(a);o||(o={},e.set(a,o)),r3t(n).scope=o}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},o=n.getData(),s=r3t(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=y9n(n,l);o.each(function(u){var d=o.getRawIndex(u);a[d]=u}),r.each(function(u){var d=a[u],h=o.getItemVisual(d,"colorFromPalette");if(h){var f=o.ensureUniqueItemVisual(d,"style"),p=r.getName(u)||u+"",m=r.count();f[c]=n.getColorFromPalette(p,s,m)}})}})}},qde=Math.PI;function Cno(t,e){e=e||{},bi(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ta,r=new Zo({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new Jo({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new Zo({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var s;return e.showSpinner&&(s=new YTe({shape:{startAngle:-qde/2,endAngle:-qde/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:qde*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:qde*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=a.getBoundingRect().width,c=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-c*2-(e.showSpinner&&l?10:0)-l)/2-(e.showSpinner&&l?0:5+l/2)+(e.showSpinner?0:l/2)+(l?0:c),d=t.getHeight()/2;e.showSpinner&&s.setShape({cx:u,cy:d}),o.setShape({x:u-c,y:d-c,width:c*2,height:c*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var kno=function(){function t(e,n,r,a){this._stageTaskMap=Ur(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,o=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,s=o?r.step:null,l=a&&a.modDataCount,c=l!=null?Math.ceil(l/s):null;return{step:s,modBy:c,modDataCount:l}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),o=a.count(),s=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,l=e.get("large")&&o>=e.get("largeThreshold"),c=e.get("progressiveChunkMode")==="mod"?o:null;e.pipelineContext=r.context={progressiveRender:s,modDataCount:c,large:l}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=Ur();e.eachSeries(function(a){var o=a.getProgressive(),s=a.uid;r.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;Ie(this._allHandlers,function(a){var o=e.get(a.uid)||e.set(a.uid,{}),s="";Tv(!(a.reset&&a.overallReset),s),a.reset&&this._createSeriesStageTask(a,o,n,r),a.overallReset&&this._createOverallStageTask(a,o,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var o=e.renderTask,s=o.context;s.model=n,s.ecModel=r,s.api=a,o.__block=!e.incrementalPrepareRender,this._pipe(n,o)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var o=!1,s=this;Ie(e,function(c,u){if(!(a.visualType&&a.visualType!==c.visualType)){var d=s._stageTaskMap.get(c.uid),h=d.seriesTaskMap,f=d.overallTask;if(f){var p,m=f.agentStubMap;m.each(function(v){l(a,v)&&(v.dirty(),p=!0)}),p&&f.dirty(),s.updatePayload(f,r);var g=s.getPerformArgs(f,a.block);m.each(function(v){v.perform(g)}),f.perform(g)&&(o=!0)}else h&&h.each(function(v,A){l(a,v)&&v.dirty();var y=s.getPerformArgs(v,a.block);y.skip=!c.performRawSeries&&n.isSeriesFiltered(v.context.model),s.updatePayload(v,r),v.perform(y)&&(o=!0)})}});function l(c,u){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var o=this,s=n.seriesTaskMap,l=n.seriesTaskMap=Ur(),c=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(d):c?r.eachRawSeriesByType(c,d):u&&u(r,a).each(d);function d(h){var f=h.uid,p=l.set(f,s&&s.get(f)||See({plan:Pno,reset:Ono,count:Bno}));p.context={model:h,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(h,p)}},t.prototype._createOverallStageTask=function(e,n,r,a){var o=this,s=n.overallTask=n.overallTask||See({reset:Rno});s.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:o};var l=s.agentStubMap,c=s.agentStubMap=Ur(),u=e.seriesType,d=e.getTargetSeries,h=!0,f=!1,p="";Tv(!e.createOnAllSeries,p),u?r.eachRawSeriesByType(u,m):d?d(r,a).each(m):(h=!1,Ie(r.getSeries(),m));function m(g){var v=g.uid,A=c.set(v,l&&l.get(v)||(f=!0,See({reset:Mno,onDirty:Ino})));A.context={model:g,overallProgress:h},A.agent=s,A.__block=h,o._pipe(g,A)}f&&s.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return ai(e)&&(e={overallReset:e,seriesType:Dno(e)}),e.uid=BV("stageHandler"),n&&(e.visualType=n),e},t}();function Rno(t){t.overallReset(t.ecModel,t.api,t.payload)}function Mno(t){return t.overallProgress&&Nno}function Nno(){this.agent.dirty(),this.getDownstream().dirty()}function Ino(){this.agent&&this.agent.dirty()}function Pno(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Ono(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ql(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Rn(e,function(n,r){return b9n(r)}):Lno}var Lno=b9n(0);function b9n(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var o=e.start;o<e.end;o++)a.dataEach(r,o);else a&&a.progress&&a.progress(e,r)}}function Bno(t){return t.data.count()}function Dno(t){V1e=null;try{t(gre,x9n)}catch{}return V1e}var gre={},x9n={},V1e;E9n(gre,K8n);E9n(x9n,W8n);gre.eachSeriesByType=gre.eachRawSeriesByType=function(t){V1e=t};gre.eachComponent=function(t){t.mainType==="series"&&t.subType&&(V1e=t.subType)};function E9n(t,e){for(var n in e.prototype)t[n]=jd}const S9n=kno;var a3t=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const $no={color:a3t,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],a3t]};var c0="#B9B8CE",o3t="#100C2A",Yde=function(){return{axisLine:{lineStyle:{color:c0}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},s3t=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],w9n={darkMode:!0,color:s3t,backgroundColor:o3t,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:c0}},textStyle:{color:c0},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:c0}},dataZoom:{borderColor:"#71708A",textStyle:{color:c0},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:c0}},timeline:{lineStyle:{color:c0},label:{color:c0},controlStyle:{color:c0,borderColor:c0}},calendar:{itemStyle:{color:o3t},dayLabel:{color:c0},monthLabel:{color:c0},yearLabel:{color:c0}},timeAxis:Yde(),logAxis:Yde(),valueAxis:Yde(),categoryAxis:Yde(),line:{symbol:"circle"},graph:{color:s3t},gauge:{title:{color:c0},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:c0},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};w9n.categoryAxis.splitLine.show=!1;const Fno=w9n;var jno=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(vr(e)){var o=o2(e);n.mainType=o.main||null,n.subType=o.sub||null}else{var s=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};Ie(e,function(c,u){for(var d=!1,h=0;h<s.length;h++){var f=s[h],p=u.lastIndexOf(f);if(p>0&&p===u.length-f.length){var m=u.slice(0,p);m!=="data"&&(n.mainType=m,n[f.toLowerCase()]=c,d=!0)}}l.hasOwnProperty(u)&&(r[u]=c,d=!0),d||(a[u]=c)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,o=r.packedEvent,s=r.model,l=r.view;if(!s||!l)return!0;var c=n.cptQuery,u=n.dataQuery;return d(c,s,"mainType")&&d(c,s,"subType")&&d(c,s,"index","componentIndex")&&d(c,s,"name")&&d(c,s,"id")&&d(u,o,"name")&&d(u,o,"dataIndex")&&d(u,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(e,n.otherQuery,a,o));function d(h,f,p,m){return h[p]==null||f[m||p]===h[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),rWe=["symbol","symbolSize","symbolRotate","symbolOffset"],l3t=rWe.concat(["symbolKeepAspect"]),Hno={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},o=!1,s=0;s<rWe.length;s++){var l=rWe[s],c=t.get(l);ai(c)?(o=!0,a[l]=c):r[l]=c}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(An({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var u=bo(a);function d(h,f){for(var p=t.getRawValue(f),m=t.getDataParams(f),g=0;g<u.length;g++){var v=u[g];h.setItemVisual(f,v,a[v](p,m))}}return{dataEach:o?d:null}}},Uno={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,o){for(var s=a.getItemModel(o),l=0;l<l3t.length;l++){var c=l3t[l],u=s.getShallow(c,!0);u!=null&&a.setItemVisual(o,c,u)}}return{dataEach:n.hasItemOption?r:null}}};function Kot(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function cse(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function _9n(t,e,n,r){switch(n){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break}}function T9n(t,e){function n(r,a){var o=[];return r.eachComponent({mainType:"series",subType:t,query:a},function(s){o.push(s.seriesIndex)}),o}Ie([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(a,o,s){a=An({},a),s.dispatchAction(An(a,{type:r[1],seriesIndex:n(o,a)}))})})}function i7(t,e,n,r,a){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(s){for(var l=s.seriesIndex,c=s.option.selectedMap,u=a.selected,d=0;d<u.length;d++)if(u[d].seriesIndex===l){var h=s.getData(),f=t8(h,a.fromActionPayload);n.trigger(o,{type:o,seriesId:s.id,name:Tn(f)?h.getName(f[0]):h.getName(f),selected:vr(c)?c:An({},c)})}})}function zno(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(i7("map","selectchanged",e,a,r),i7("pie","selectchanged",e,a,r)):r.fromAction==="select"?(i7("map","selected",e,a,r),i7("pie","selected",e,a,r)):r.fromAction==="unselect"&&(i7("map","unselected",e,a,r),i7("pie","unselected",e,a,r))})}function tD(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var Gno=Math.round(Math.random()*9),Vno=typeof Object.defineProperty=="function",Kno=function(){function t(){this._id="__ec_inner_"+Gno++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return Vno?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();const Wno=Kno;var Qno=no.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+a,r+o),t.lineTo(n-a,r+o),t.closePath()}}),qno=no.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+a,r),t.lineTo(n,r+o),t.lineTo(n-a,r),t.closePath()}}),Yno=no.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,o=Math.max(a,e.height),s=a/2,l=s*s/(o-s),c=r-o+s+l,u=Math.asin(l/s),d=Math.cos(u)*s,h=Math.sin(u),f=Math.cos(u),p=s*.6,m=s*.7;t.moveTo(n-d,c+l),t.arc(n,c,s,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(n+d-h*p,c+l+f*p,n,r-m,n,r),t.bezierCurveTo(n,r-m,n-d+h*p,c+l+f*p,n-d,c+l),t.closePath()}}),Jno=no.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,o=e.y,s=r/3*2;t.moveTo(a,o),t.lineTo(a+s,o+n),t.lineTo(a,o+n/4*3),t.lineTo(a-s,o+n),t.lineTo(a,o),t.closePath()}}),Zno={line:vp,rect:Zo,roundRect:Zo,square:Zo,circle:yN,diamond:qno,pin:Yno,arrow:Jno,triangle:Qno},Xno={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var o=Math.min(n,r);a.x=t,a.y=e,a.width=o,a.height=o},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},K1e={};Ie(Zno,function(t,e){K1e[e]=new t});var ero=no.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=L1e(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=K1e[r];a||(r="rect",a=K1e[r]),Xno[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function tro(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function vh(t,e,n,r,a,o,s){var l=t.indexOf("empty")===0;l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var c;return t.indexOf("image://")===0?c=Eot(t.slice(8),new Da(e,n,r,a),s?"center":"cover"):t.indexOf("path://")===0?c=ose(t.slice(7),{},new Da(e,n,r,a),s?"center":"cover"):c=new ero({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),c.__isEmptyBrush=l,c.setColor=tro,o&&c.setColor(o),c}function zV(t){return Tn(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function _9(t,e){if(t!=null)return Tn(t)||(t=[t,t]),[lr(t[0],e[0])||0,lr(pa(t[1],t[0]),e[1])||0]}function nD(t){return isFinite(t)}function nro(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,o=e.y==null?0:e.y,s=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,o=o*n.height+n.y,s=s*n.height+n.y),r=nD(r)?r:0,a=nD(a)?a:1,o=nD(o)?o:0,s=nD(s)?s:0;var l=t.createLinearGradient(r,o,a,s);return l}function rro(t,e,n){var r=n.width,a=n.height,o=Math.min(r,a),s=e.x==null?.5:e.x,l=e.y==null?.5:e.y,c=e.r==null?.5:e.r;e.global||(s=s*r+n.x,l=l*a+n.y,c=c*o),s=nD(s)?s:.5,l=nD(l)?l:.5,c=c>=0&&nD(c)?c:.5;var u=t.createRadialGradient(s,l,0,s,l,c);return u}function iWe(t,e,n){for(var r=e.type==="radial"?rro(t,e,n):nro(t,e,n),a=e.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}function iro(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Jde(t){return parseInt(t,10)}function oj(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var l=document.defaultView.getComputedStyle(t);return(t[a]||Jde(l[r])||Jde(t.style[r]))-(Jde(l[o])||0)-(Jde(l[s])||0)|0}function aro(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:cs(t)?[t]:Tn(t)?t:null}function Wot(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&aro(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=Rn(n,function(o){return o/a}),r/=a)}return[n,r]}var oro=new iC(!0);function W1e(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function c3t(t){return typeof t=="string"&&t!=="none"}function Q1e(t){var e=t.fill;return e!=null&&e!=="none"}function u3t(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function d3t(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function aWe(t,e,n){var r=hot(e.image,e.__image,n);if(GTe(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*hee),o.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(o)}return a}}function sro(t,e,n,r){var a,o=W1e(n),s=Q1e(n),l=n.strokePercent,c=l<1,u=!e.path;(!e.silent||c)&&u&&e.createPathProxy();var d=e.path||oro,h=e.__dirty;if(!r){var f=n.fill,p=n.stroke,m=s&&!!f.colorStops,g=o&&!!p.colorStops,v=s&&!!f.image,A=o&&!!p.image,y=void 0,S=void 0,x=void 0,w=void 0,_=void 0;(m||g)&&(_=e.getBoundingRect()),m&&(y=h?iWe(t,f,_):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(S=h?iWe(t,p,_):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),v&&(x=h||!e.__canvasFillPattern?aWe(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),A&&(w=h||!e.__canvasStrokePattern?aWe(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),m?t.fillStyle=y:v&&(x?t.fillStyle=x:s=!1),g?t.strokeStyle=S:A&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();d.setScale(C[0],C[1],e.segmentIgnoreThreshold);var R,k;t.setLineDash&&n.lineDash&&(a=Wot(e),R=a[0],k=a[1]);var P=!0;(u||h&fF)&&(d.setDPR(t.dpr),c?d.setContext(null):(d.setContext(t),P=!1),d.reset(),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),P&&d.rebuildPath(t,c?l:1),R&&(t.setLineDash(R),t.lineDashOffset=k),r||(n.strokeFirst?(o&&d3t(t,n),s&&u3t(t,n)):(s&&u3t(t,n),o&&d3t(t,n))),R&&t.setLineDash([])}function lro(t,e,n){var r=e.__image=hot(n.image,e.__image,e,e.onload);if(!(!r||!GTe(r))){var a=n.x||0,o=n.y||0,s=e.getWidth(),l=e.getHeight(),c=r.width/r.height;if(s==null&&l!=null?s=l*c:l==null&&s!=null?l=s/c:s==null&&l==null&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,d=n.sy||0;t.drawImage(r,u,d,n.sWidth,n.sHeight,a,o,s,l)}else if(n.sx&&n.sy){var u=n.sx,d=n.sy,h=s-u,f=l-d;t.drawImage(r,u,d,h,f,a,o,s,l)}else t.drawImage(r,a,o,s,l)}}function cro(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||CP,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,s=void 0;t.setLineDash&&n.lineDash&&(r=Wot(e),o=r[0],s=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=s),n.strokeFirst?(W1e(n)&&t.strokeText(a,n.x,n.y),Q1e(n)&&t.fillText(a,n.x,n.y)):(Q1e(n)&&t.fillText(a,n.x,n.y),W1e(n)&&t.strokeText(a,n.x,n.y)),o&&t.setLineDash([])}}var h3t=["shadowBlur","shadowOffsetX","shadowOffsetY"],f3t=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function C9n(t,e,n,r,a){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){WA(t,a),o=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?ID.opacity:s}(r||e.blend!==n.blend)&&(o||(WA(t,a),o=!0),t.globalCompositeOperation=e.blend||ID.blend);for(var l=0;l<h3t.length;l++){var c=h3t[l];(r||e[c]!==n[c])&&(o||(WA(t,a),o=!0),t[c]=t.dpr*(e[c]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(WA(t,a),o=!0),t.shadowColor=e.shadowColor||ID.shadowColor),o}function p3t(t,e,n,r,a){var o=vre(e,a.inHover),s=r?null:n&&vre(n,a.inHover)||{};if(o===s)return!1;var l=C9n(t,o,s,r,a);if((r||o.fill!==s.fill)&&(l||(WA(t,a),l=!0),c3t(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==s.stroke)&&(l||(WA(t,a),l=!0),c3t(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==s.opacity)&&(l||(WA(t,a),l=!0),t.globalAlpha=o.opacity==null?1:o.opacity),e.hasStroke()){var c=o.lineWidth,u=c/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(l||(WA(t,a),l=!0),t.lineWidth=u)}for(var d=0;d<f3t.length;d++){var h=f3t[d],f=h[0];(r||o[f]!==s[f])&&(l||(WA(t,a),l=!0),t[f]=o[f]||h[1])}return l}function uro(t,e,n,r,a){return C9n(t,vre(e,a.inHover),n&&vre(n,a.inHover),r,a)}function k9n(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function dro(t,e,n){for(var r=!1,a=0;a<t.length;a++){var o=t[a];r=r||o.isZeroArea(),k9n(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function hro(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var m3t=1,g3t=2,v3t=3,A3t=4;function fro(t){var e=Q1e(t),n=W1e(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function WA(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function vre(t,e){return e&&t.__hoverStyle||t.style}function Qot(t,e){rD(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function rD(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~_y,e.__isRendered=!1;return}var o=e.__clipPaths,s=n.prevElClipPaths,l=!1,c=!1;if((!s||iro(o,s))&&(s&&s.length&&(WA(t,n),t.restore(),c=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(WA(t,n),t.save(),dro(o,t,n),l=!0),n.prevElClipPaths=o),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(c=l=!0);var d=e instanceof no&&e.autoBatch&&fro(e.style);l||hro(a,u.transform)?(WA(t,n),k9n(t,e)):d||WA(t,n);var h=vre(e,n.inHover);e instanceof no?(n.lastDrawType!==m3t&&(c=!0,n.lastDrawType=m3t),p3t(t,e,u,c,n),(!d||!n.batchFill&&!n.batchStroke)&&t.beginPath(),sro(t,e,h,d),d&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof lre?(n.lastDrawType!==v3t&&(c=!0,n.lastDrawType=v3t),p3t(t,e,u,c,n),cro(t,e,h)):e instanceof fm?(n.lastDrawType!==g3t&&(c=!0,n.lastDrawType=g3t),uro(t,e,u,c,n),lro(t,e,h)):e.getTemporalDisplayables&&(n.lastDrawType!==A3t&&(c=!0,n.lastDrawType=A3t),pro(t,e,n)),d&&r&&WA(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function pro(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},s,l;for(s=e.getCursor(),l=r.length;s<l;s++){var c=r[s];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),rD(t,c,o,s===l-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),o.prevEl=c}for(var u=0,d=a.length;u<d;u++){var c=a[u];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),rD(t,c,o,u===d-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),o.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var v6e=new Wno,y3t=new ese(100),b3t=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function sz(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&v6e.delete(t);var o=v6e.get(t);if(o)return o;var s=bi(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});s.backgroundColor==="none"&&(s.backgroundColor=null);var l={repeat:"repeat"};return c(l),l.rotation=s.rotation,l.scaleX=l.scaleY=a?1:1/n,v6e.set(t,l),t.dirty=!1,l;function c(u){for(var d=[n],h=!0,f=0;f<b3t.length;++f){var p=s[b3t[f]];if(p!=null&&!Tn(p)&&!vr(p)&&!cs(p)&&typeof p!="boolean"){h=!1;break}d.push(p)}var m;if(h){m=d.join(",")+(a?"-svg":"");var g=y3t.get(m);g&&(a?u.svgElement=g:u.image=g)}var v=M9n(s.dashArrayX),A=mro(s.dashArrayY),y=R9n(s.symbol),S=gro(v),x=N9n(A),w=!a&&Bw.createCanvas(),_=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=k(),R;w&&(w.width=C.width*n,w.height=C.height*n,R=w.getContext("2d")),P(),h&&y3t.put(m,w||_),u.image=w,u.svgElement=_,u.svgWidth=C.width,u.svgHeight=C.height;function k(){for(var N=1,L=0,I=S.length;L<I;++L)N=DNt(N,S[L]);for(var b=1,L=0,I=y.length;L<I;++L)b=DNt(b,y[L].length);N*=b;var T=x*S.length*y.length;return{width:Math.max(1,Math.min(N,s.maxTileWidth)),height:Math.max(1,Math.min(T,s.maxTileHeight))}}function P(){R&&(R.clearRect(0,0,w.width,w.height),s.backgroundColor&&(R.fillStyle=s.backgroundColor,R.fillRect(0,0,w.width,w.height)));for(var N=0,L=0;L<A.length;++L)N+=A[L];if(N<=0)return;for(var I=-x,b=0,T=0,M=0;I<C.height;){if(b%2===0){for(var D=T/2%y.length,B=0,j=0,H=0;B<C.width*2;){for(var U=0,L=0;L<v[M].length;++L)U+=v[M][L];if(U<=0)break;if(j%2===0){var $=(1-s.symbolSize)*.5,z=B+v[M][j]*$,Z=I+A[b]*$,K=v[M][j]*s.symbolSize,Q=A[b]*s.symbolSize,ee=H/2%y[D].length;X(z,Z,K,Q,y[D][ee])}B+=v[M][j],++H,++j,j===v[M].length&&(j=0)}++M,M===v.length&&(M=0)}I+=A[b],++T,++b,b===A.length&&(b=0)}function X(te,J,ne,ie,he){var de=a?1:n,ce=vh(he,te*de,J*de,ne*de,ie*de,s.color,s.symbolKeepAspect);if(a){var Ee=r.painter.renderOneToVNode(ce);Ee&&_.children.push(Ee)}else Qot(R,ce)}}}}function R9n(t){if(!t||t.length===0)return[["rect"]];if(vr(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!vr(t[n])){e=!1;break}if(e)return R9n([t]);for(var r=[],n=0;n<t.length;++n)vr(t[n])?r.push([t[n]]):r.push(t[n]);return r}function M9n(t){if(!t||t.length===0)return[[0,0]];if(cs(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!cs(t[r])){n=!1;break}if(n)return M9n([t]);for(var a=[],r=0;r<t.length;++r)if(cs(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=Rn(t[r],function(l){return Math.ceil(l)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function mro(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(cs(t)){var e=Math.ceil(t);return[e,e]}var n=Rn(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function gro(t){return Rn(t,function(e){return N9n(e)})}function N9n(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function vro(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(s){var l=r.getItemVisual(s,"decal");if(l){var c=r.ensureUniqueItemVisual(s,"style");c.decal=sz(l,e)}});var a=r.getVisual("decal");if(a){var o=r.getVisual("style");o.decal=sz(a,e)}}})}var Aro=new SE;const LS=Aro;var I9n={};function yro(t,e){I9n[t]=e}function P9n(t){return I9n[t]}var bro="5.5.0",xro={zrender:"5.5.0"},Ero=1,Sro=800,wro=900,_ro=1e3,Tro=2e3,Cro=5e3,O9n=1e3,kro=1100,qot=2e3,L9n=3e3,Rro=4e3,u2e=4500,Mro=4600,Nro=5e3,Iro=6e3,B9n=7e3,D9n={PROCESSOR:{FILTER:_ro,SERIES_FILTER:Sro,STATISTIC:Cro},VISUAL:{LAYOUT:O9n,PROGRESSIVE_LAYOUT:kro,GLOBAL:qot,CHART:L9n,POST_CHART_LAYOUT:Mro,COMPONENT:Rro,BRUSH:Nro,CHART_ITEM:u2e,ARIA:Iro,DECAL:B9n}},zg="__flagInMainProcess",RA="__pendingUpdate",A6e="__needsUpdateStatus",x3t=/^[a-zA-Z0-9_]+$/,y6e="__connectUpdateStatus",E3t=0,Pro=1,Oro=2;function $9n(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return j9n(this,t,e)}}function F9n(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return j9n(this,t,e)}}function j9n(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),SE.prototype[e].apply(t,n)}var H9n=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(SE),U9n=H9n.prototype;U9n.on=F9n("on");U9n.off=F9n("off");var a7,b6e,Zde,yI,x6e,E6e,S6e,Hq,Uq,S3t,w3t,w6e,_3t,Xde,T3t,z9n,Bb,C3t,q1e=function(t){nn(e,t);function e(n,r,a){var o=t.call(this,new jno)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},vr(r)&&(r=G9n[r]),o._dom=n;var s="canvas",l="auto",c=!1;a.ssr&&h6n(function(f){var p=ia(f),m=p.dataIndex;if(m!=null){var g=Ur();return g.set("series_index",p.seriesIndex),g.set("data_index",m),p.ssrType&&g.set("ssr_type",p.ssrType),g}});var u=o._zr=IKe(n,{renderer:a.renderer||s,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:pa(a.useDirtyRect,c),useCoarsePointer:pa(a.useCoarsePointer,l),pointerSize:a.pointerSize});o._ssr=a.ssr,o._throttledZrFlush=c2e(Cr(u.flush,u),17),r=ji(r),r&&q8n(r,!0),o._theme=r,o._locale=Geo(a.locale||_8n),o._coordSysMgr=new jV;var d=o._api=T3t(o);function h(f,p){return f.__prio-p.__prio}return qme(J1e,h),qme(oWe,h),o._scheduler=new S9n(o,d,oWe,J1e),o._messageCenter=new H9n,o._initEvents(),o.resize=Cr(o.resize,o),u.animation.on("frame",o._onframe,o),S3t(u,o),w3t(u,o),Xne(o),o}return e.prototype._onframe=function(){if(!this._disposed){C3t(this);var n=this._scheduler;if(this[RA]){var r=this[RA].silent;this[zg]=!0;try{a7(this),yI.update.call(this,null,this[RA].updateParams)}catch(c){throw this[zg]=!1,this[RA]=null,c}this._zr.flush(),this[zg]=!1,this[RA]=null,Hq.call(this,r),Uq.call(this,r)}else if(n.unfinished){var a=Ero,o=this._model,s=this._api;n.unfinished=!1;do{var l=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),E6e(this,o),n.performVisualTasks(o),Xde(this,this._model,s,"remain",{}),a-=+new Date-l}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,a){if(!this[zg]){if(this._disposed){this.id;return}var o,s,l;if(Ci(r)&&(a=r.lazyUpdate,o=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[zg]=!0,!this._model||r){var c=new wto(this._api),u=this._theme,d=this._model=new K8n;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,u,this._locale,c)}this._model.setOption(n,{replaceMerge:s},sWe);var h={seriesTransition:l,optionChanged:!0};if(a)this[RA]={silent:o,updateParams:h},this[zg]=!1,this.getZr().wakeUp();else{try{a7(this),yI.update.call(this,null,h)}catch(f){throw this[RA]=null,this[zg]=!1,f}this._ssr||this._zr.flush(),this[RA]=null,this[zg]=!1,Hq.call(this,o),Uq.call(this,o)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ls.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(ls.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Ie(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,o=[],s=this;Ie(r,function(c){a.eachComponent({mainType:c},function(u){var d=s._componentsMap[u.__viewId];d.group.ignore||(o.push(d),d.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return Ie(o,function(c){c.group.ignore=!1}),l},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,o=Math.min,s=Math.max,l=1/0;if(Z1e[a]){var c=l,u=l,d=-l,h=-l,f=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();Ie(LD,function(S,x){if(S.group===a){var w=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(ji(n)),_=S.getDom().getBoundingClientRect();c=o(_.left,c),u=o(_.top,u),d=s(_.right,d),h=s(_.bottom,h),f.push({dom:w,left:_.left,top:_.top})}}),c*=p,u*=p,d*=p,h*=p;var m=d-c,g=h-u,v=Bw.createCanvas(),A=IKe(v,{renderer:r?"svg":"canvas"});if(A.resize({width:m,height:g}),r){var y="";return Ie(f,function(S){var x=S.left-c,w=S.top-u;y+='<g transform="translate('+x+","+w+')">'+S.dom+"</g>"}),A.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&A.painter.setBackgroundColor(n.connectedBackgroundColor),A.refreshImmediately(),A.painter.toDataURL()}else return n.connectedBackgroundColor&&A.add(new Zo({shape:{x:0,y:0,width:m,height:g},style:{fill:n.connectedBackgroundColor}})),Ie(f,function(S){var x=new fm({style:{x:S.left*p-c,y:S.top*p-u,image:S.dom}});A.add(x)}),A.refreshImmediately(),v.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return x6e(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return x6e(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,o,s=Aee(a,n);return Ie(s,function(l,c){c.indexOf("Models")>=0&&Ie(l,function(u){var d=u.coordinateSystem;if(d&&d.containPoint)o=o||!!d.containPoint(r);else if(c==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(o=o||h.containPoint(r,u))}},this)},this),!!o},e.prototype.getVisual=function(n,r){var a=this._model,o=Aee(a,n,{defaultMainType:"series"}),s=o.seriesModel,l=s.getData(),c=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?l.indexOfRawIndex(o.dataIndex):null;return c!=null?Kot(l,c,r):cse(l,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;Ie(Lro,function(r){var a=function(o){var s=n.getModel(),l=o.target,c,u=r==="globalout";if(u?c={}:l&&tD(l,function(m){var g=ia(m);if(g&&g.dataIndex!=null){var v=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return c=v&&v.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return c=An({},g.eventData),!0},!0),c){var d=c.componentType,h=c.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",h=c.seriesIndex);var f=d&&h!=null&&s.getComponent(d,h),p=f&&n[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];c.event=o,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:f,view:p},n.trigger(r,c)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),Ie(wee,function(r,a){n._messageCenter.on(a,function(o){this.trigger(a,o)},n)}),Ie(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),zno(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&S6n(this.getDom(),Jot,"");var r=this,a=r._api,o=r._model;Ie(r._componentsViews,function(s){s.dispose(o,a)}),Ie(r._chartsViews,function(s){s.dispose(o,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete LD[r.id]},e.prototype.resize=function(n){if(!this[zg]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),o=n&&n.silent;this[RA]&&(o==null&&(o=this[RA].silent),a=!0,this[RA]=null),this[zg]=!0;try{a&&a7(this),yI.update.call(this,{type:"resize",animation:An({duration:0},n&&n.animation)})}catch(s){throw this[zg]=!1,s}this[zg]=!1,Hq.call(this,o),Uq.call(this,o)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Ci(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!lWe[n]){var a=lWe[n](this._api,r),o=this._zr;this._loadingFX=a,o.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=An({},n);return r.type=wee[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Ci(r)||(r={silent:!!r}),!!Y1e[n.type]&&this._model){if(this[zg]){this._pendingActions.push(n);return}var a=r.silent;S6e.call(this,n,a);var o=r.flush;o?this._zr.flush():o!==!1&&ls.browser.weChat&&this._throttledZrFlush(),Hq.call(this,a),Uq.call(this,a)}},e.prototype.updateLabelLayout=function(){LS.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){a7=function(h){var f=h._scheduler;f.restorePipelines(h._model),f.prepareStageTasks(),b6e(h,!0),b6e(h,!1),f.plan()},b6e=function(h,f){for(var p=h._model,m=h._scheduler,g=f?h._componentsViews:h._chartsViews,v=f?h._componentsMap:h._chartsMap,A=h._zr,y=h._api,S=0;S<g.length;S++)g[S].__alive=!1;f?p.eachComponent(function(_,C){_!=="series"&&x(C)}):p.eachSeries(x);function x(_){var C=_.__requireNewView;_.__requireNewView=!1;var R="_ec_"+_.id+"_"+_.type,k=!C&&v[R];if(!k){var P=o2(_.type),N=f?Au.getClass(P.main,P.sub):ql.getClass(P.sub);k=new N,k.init(p,y),v[R]=k,g.push(k),A.add(k.group)}_.__viewId=k.__id=R,k.__alive=!0,k.__model=_,k.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!f&&m.prepareView(k,_,p,y)}for(var S=0;S<g.length;){var w=g[S];w.__alive?S++:(!f&&w.renderTask.dispose(),A.remove(w.group),w.dispose(p,y),g.splice(S,1),v[w.__id]===w&&delete v[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Zde=function(h,f,p,m,g){var v=h._model;if(v.setUpdatePayload(p),!m){Ie([].concat(h._componentsViews).concat(h._chartsViews),w);return}var A={};A[m+"Id"]=p[m+"Id"],A[m+"Index"]=p[m+"Index"],A[m+"Name"]=p[m+"Name"];var y={mainType:m,query:A};g&&(y.subType=g);var S=p.excludeSeriesId,x;S!=null&&(x=Ur(),Ie(Ql(S),function(_){var C=Lf(_,null);C!=null&&x.set(C,!0)})),v&&v.eachComponent(y,function(_){var C=x&&x.get(_.id)!=null;if(!C)if(cIt(p))if(_ instanceof Oc)p.type===PD&&!p.notBlur&&!_.get(["emphasis","disabled"])&&jXa(_,p,h._api);else{var R=Aot(_.mainType,_.componentIndex,p.name,h._api),k=R.focusSelf,P=R.dispatchers;p.type===PD&&k&&!p.notBlur&&UKe(_.mainType,_.componentIndex,h._api),P&&Ie(P,function(N){p.type===PD?NM(N):IM(N)})}else GKe(p)&&_ instanceof Oc&&(zXa(_,p,h._api),sIt(_),Bb(h))},h),v&&v.eachComponent(y,function(_){var C=x&&x.get(_.id)!=null;C||w(h[m==="series"?"_chartsMap":"_componentsMap"][_.__viewId])},h);function w(_){_&&_.__alive&&_[f]&&_[f](_.__model,v,h._api,p)}},yI={prepareAndUpdate:function(h){a7(this),yI.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,f){var p=this._model,m=this._api,g=this._zr,v=this._coordSysMgr,A=this._scheduler;if(p){p.setUpdatePayload(h),A.restoreData(p,h),A.performSeriesTasks(p),v.create(p,m),A.performDataProcessorTasks(p,h),E6e(this,p),v.update(p,m),n(p),A.performVisualTasks(p,h),w6e(this,p,m,h,f);var y=p.get("backgroundColor")||"transparent",S=p.get("darkMode");g.setBackgroundColor(y),S!=null&&S!=="auto"&&g.setDarkMode(S),LS.trigger("afterupdate",p,m)}},updateTransform:function(h){var f=this,p=this._model,m=this._api;if(p){p.setUpdatePayload(h);var g=[];p.eachComponent(function(A,y){if(A!=="series"){var S=f.getViewOfComponentModel(y);if(S&&S.__alive)if(S.updateTransform){var x=S.updateTransform(y,p,m,h);x&&x.update&&g.push(S)}else g.push(S)}});var v=Ur();p.eachSeries(function(A){var y=f._chartsMap[A.__viewId];if(y.updateTransform){var S=y.updateTransform(A,p,m,h);S&&S.update&&v.set(A.uid,1)}else v.set(A.uid,1)}),n(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0,dirtyMap:v}),Xde(this,p,m,h,{},v),LS.trigger("afterupdate",p,m)}},updateView:function(h){var f=this._model;f&&(f.setUpdatePayload(h),ql.markUpdateMethod(h,"updateView"),n(f),this._scheduler.performVisualTasks(f,h,{setDirty:!0}),w6e(this,f,this._api,h,{}),LS.trigger("afterupdate",f,this._api))},updateVisual:function(h){var f=this,p=this._model;p&&(p.setUpdatePayload(h),p.eachSeries(function(m){m.getData().clearAllVisual()}),ql.markUpdateMethod(h,"updateVisual"),n(p),this._scheduler.performVisualTasks(p,h,{visualType:"visual",setDirty:!0}),p.eachComponent(function(m,g){if(m!=="series"){var v=f.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,p,f._api,h)}}),p.eachSeries(function(m){var g=f._chartsMap[m.__viewId];g.updateVisual(m,p,f._api,h)}),LS.trigger("afterupdate",p,this._api))},updateLayout:function(h){yI.update.call(this,h)}},x6e=function(h,f,p,m){if(h._disposed){h.id;return}for(var g=h._model,v=h._coordSysMgr.getCoordinateSystems(),A,y=Aee(g,p),S=0;S<v.length;S++){var x=v[S];if(x[f]&&(A=x[f](g,y,m))!=null)return A}},E6e=function(h,f){var p=h._chartsMap,m=h._scheduler;f.eachSeries(function(g){m.updateStreamModes(g,p[g.__viewId])})},S6e=function(h,f){var p=this,m=this.getModel(),g=h.type,v=h.escapeConnect,A=Y1e[g],y=A.actionInfo,S=(y.update||"update").split(":"),x=S.pop(),w=S[0]!=null&&o2(S[0]);this[zg]=!0;var _=[h],C=!1;h.batch&&(C=!0,_=Rn(h.batch,function(b){return b=bi(An({},b),h),b.batch=null,b}));var R=[],k,P=GKe(h),N=cIt(h);if(N&&q6n(this._api),Ie(_,function(b){if(k=A.action(b,p._model,p._api),k=k||An({},b),k.type=y.event||k.type,R.push(k),N){var T=uot(h),M=T.queryOptionMap,D=T.mainTypeSpecified,B=D?M.keys()[0]:"series";Zde(p,x,b,B),Bb(p)}else P?(Zde(p,x,b,"series"),Bb(p)):w&&Zde(p,x,b,w.main,w.sub)}),x!=="none"&&!N&&!P&&!w)try{this[RA]?(a7(this),yI.update.call(this,h),this[RA]=null):yI[x].call(this,h)}catch(b){throw this[zg]=!1,b}if(C?k={type:y.event||g,escapeConnect:v,batch:R}:k=R[0],this[zg]=!1,!f){var L=this._messageCenter;if(L.trigger(k.type,k),P){var I={type:"selectchanged",escapeConnect:v,selected:GXa(m),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},Hq=function(h){for(var f=this._pendingActions;f.length;){var p=f.shift();S6e.call(this,p,h)}},Uq=function(h){!h&&this.trigger("updated")},S3t=function(h,f){h.on("rendered",function(p){f.trigger("rendered",p),h.animation.isFinished()&&!f[RA]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},w3t=function(h,f){h.on("mouseover",function(p){var m=p.target,g=tD(m,ure);g&&(HXa(g,p,f._api),Bb(f))}).on("mouseout",function(p){var m=p.target,g=tD(m,ure);g&&(UXa(g,p,f._api),Bb(f))}).on("click",function(p){var m=p.target,g=tD(m,function(y){return ia(y).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",A=ia(g);f._api.dispatchAction({type:v,dataType:A.dataType,dataIndexInside:A.dataIndex,seriesIndex:A.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(f){f.clearColorPalette()})}function r(h){var f=[],p=[],m=!1;if(h.eachComponent(function(y,S){var x=S.get("zlevel")||0,w=S.get("z")||0,_=S.getZLevelKey();m=m||!!_,(y==="series"?p:f).push({zlevel:x,z:w,idx:S.componentIndex,type:y,key:_})}),m){var g=f.concat(p),v,A;qme(g,function(y,S){return y.zlevel===S.zlevel?y.z-S.z:y.zlevel-S.zlevel}),Ie(g,function(y){var S=h.getComponent(y.type,y.idx),x=y.zlevel,w=y.key;v!=null&&(x=Math.max(v,x)),w?(x===v&&w!==A&&x++,A=w):A&&(x===v&&x++,A=""),v=x,S.setZLevel(x)})}}w6e=function(h,f,p,m,g){r(f),_3t(h,f,p,m,g),Ie(h._chartsViews,function(v){v.__alive=!1}),Xde(h,f,p,m,g),Ie(h._chartsViews,function(v){v.__alive||v.remove(f,p)})},_3t=function(h,f,p,m,g,v){Ie(v||h._componentsViews,function(A){var y=A.__model;u(y,A),A.render(y,f,p,m),l(y,A),d(y,A)})},Xde=function(h,f,p,m,g,v){var A=h._scheduler;g=An(g||{},{updatedSeries:f.getSeries()}),LS.trigger("series:beforeupdate",f,p,g);var y=!1;f.eachSeries(function(S){var x=h._chartsMap[S.__viewId];x.__alive=!0;var w=x.renderTask;A.updatePayload(w,m),u(S,x),v&&v.get(S.uid)&&w.dirty(),w.perform(A.getPerformArgs(w))&&(y=!0),x.group.silent=!!S.get("silent"),s(S,x),sIt(S)}),A.unfinished=y||A.unfinished,LS.trigger("series:layoutlabels",f,p,g),LS.trigger("series:transition",f,p,g),f.eachSeries(function(S){var x=h._chartsMap[S.__viewId];l(S,x),d(S,x)}),o(h,f),LS.trigger("series:afterupdate",f,p,g)},Bb=function(h){h[A6e]=!0,h.getZr().wakeUp()},C3t=function(h){h[A6e]&&(h.getZr().storage.traverse(function(f){hH(f)||a(f)}),h[A6e]=!1)};function a(h){for(var f=[],p=h.currentStates,m=0;m<p.length;m++){var g=p[m];g==="emphasis"||g==="blur"||g==="select"||f.push(g)}h.selected&&h.states.select&&f.push("select"),h.hoverState===WTe&&h.states.emphasis?f.push("emphasis"):h.hoverState===rse&&h.states.blur&&f.push("blur"),h.useStates(f)}function o(h,f){var p=h._zr,m=p.storage,g=0;m.traverse(function(v){v.isGroup||g++}),g>f.get("hoverLayerThreshold")&&!ls.node&&!ls.worker&&f.eachSeries(function(v){if(!v.preventUsingHoverLayer){var A=h._chartsMap[v.__viewId];A.__alive&&A.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,f){var p=h.get("blendMode")||null;f.eachRendered(function(m){m.isGroup||(m.style.blend=p)})}function l(h,f){if(!h.preventAutoZ){var p=h.get("z")||0,m=h.get("zlevel")||0;f.eachRendered(function(g){return c(g,p,m,-1/0),!0})}}function c(h,f,p,m){var g=h.getTextContent(),v=h.getTextGuideLine(),A=h.isGroup;if(A)for(var y=h.childrenRef(),S=0;S<y.length;S++)m=Math.max(c(y[S],f,p,m),m);else h.z=f,h.zlevel=p,m=Math.max(h.z2,m);if(g&&(g.z=f,g.zlevel=p,isFinite(m)&&(g.z2=m+2)),v){var x=h.textGuideLineConfig;v.z=f,v.zlevel=p,isFinite(m)&&(v.z2=m+(x&&x.showAbove?1:-1))}return m}function u(h,f){f.eachRendered(function(p){if(!hH(p)){var m=p.getTextContent(),g=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function d(h,f){var p=h.getModel("stateAnimation"),m=h.isAnimationEnabled(),g=p.get("duration"),v=g>0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;f.eachRendered(function(A){if(A.states&&A.states.emphasis){if(hH(A))return;if(A instanceof no&&qXa(A),A.__dirty){var y=A.prevStates;y&&A.useStates(y)}if(m){A.stateTransition=v;var S=A.getTextContent(),x=A.getTextGuideLine();S&&(S.stateTransition=v),x&&(x.stateTransition=v)}A.__dirty&&a(A)}})}T3t=function(h){return new(function(f){nn(p,f);function p(){return f!==null&&f.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(m){for(;m;){var g=m.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);m=m.parent}},p.prototype.enterEmphasis=function(m,g){NM(m,g),Bb(h)},p.prototype.leaveEmphasis=function(m,g){IM(m,g),Bb(h)},p.prototype.enterBlur=function(m){V6n(m),Bb(h)},p.prototype.leaveBlur=function(m){vot(m),Bb(h)},p.prototype.enterSelect=function(m){K6n(m),Bb(h)},p.prototype.leaveSelect=function(m){W6n(m),Bb(h)},p.prototype.getModel=function(){return h.getModel()},p.prototype.getViewOfComponentModel=function(m){return h.getViewOfComponentModel(m)},p.prototype.getViewOfSeriesModel=function(m){return h.getViewOfSeriesModel(m)},p}(W8n))(h)},z9n=function(h){function f(p,m){for(var g=0;g<p.length;g++){var v=p[g];v[y6e]=m}}Ie(wee,function(p,m){h._messageCenter.on(m,function(g){if(Z1e[h.group]&&h[y6e]!==E3t){if(g&&g.escapeConnect)return;var v=h.makeActionFromEvent(g),A=[];Ie(LD,function(y){y!==h&&y.group===h.group&&A.push(y)}),f(A,E3t),Ie(A,function(y){y[y6e]!==Pro&&y.dispatchAction(v)}),f(A,Oro)}})})}}(),e}(SE),Yot=q1e.prototype;Yot.on=$9n("on");Yot.off=$9n("off");Yot.one=function(t,e,n){var r=this;function a(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];e&&e.apply&&e.apply(this,o),r.off(t,a)}this.on.call(this,t,a,n)};var Lro=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Y1e={},wee={},oWe=[],sWe=[],J1e=[],G9n={},lWe={},LD={},Z1e={},Bro=+new Date-0,Dro=+new Date-0,Jot="_echarts_instance_";function $ro(t,e,n){var r=!(n&&n.ssr);if(r){var a=Zot(t);if(a)return a}var o=new q1e(t,e,n);return o.id="ec_"+Bro++,LD[o.id]=o,r&&S6n(t,Jot,o.id),z9n(o),LS.trigger("afterinit",o),o}function Fro(t){if(Tn(t)){var e=t;t=null,Ie(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+Dro++,Ie(e,function(n){n.group=t})}return Z1e[t]=!0,t}function V9n(t){Z1e[t]=!1}var jro=V9n;function Hro(t){vr(t)?t=LD[t]:t instanceof q1e||(t=Zot(t)),t instanceof q1e&&!t.isDisposed()&&t.dispose()}function Zot(t){return LD[LZa(t,Jot)]}function Uro(t){return LD[t]}function Xot(t,e){G9n[t]=e}function est(t){za(sWe,t)<0&&sWe.push(t)}function tst(t,e){nst(oWe,t,e,Tro)}function K9n(t){d2e("afterinit",t)}function W9n(t){d2e("afterupdate",t)}function d2e(t,e){LS.on(t,e)}function Zw(t,e,n){ai(e)&&(n=e,e="");var r=Ci(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!wee[e]&&(Tv(x3t.test(r)&&x3t.test(e)),Y1e[r]||(Y1e[r]={action:n,actionInfo:t}),wee[e]=r)}function Q9n(t,e){jV.register(t,e)}function zro(t){var e=jV.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function q9n(t,e){nst(J1e,t,e,O9n,"layout")}function SO(t,e){nst(J1e,t,e,L9n,"visual")}var k3t=[];function nst(t,e,n,r,a){if((ai(e)||Ci(e))&&(n=e,e=r),!(za(k3t,n)>=0)){k3t.push(n);var o=S9n.wrapStageHandler(n,a);o.__prio=e,o.__raw=n,t.push(o)}}function rst(t,e){lWe[t]=e}function Gro(t){wDn({createCanvas:t})}function Y9n(t,e,n){var r=P9n("registerMap");r&&r(t,e,n)}function Vro(t){var e=P9n("getMap");return e&&e(t)}var J9n=Zto;SO(qot,wno);SO(u2e,_no);SO(u2e,Tno);SO(qot,Hno);SO(u2e,Uno);SO(B9n,vro);est(q8n);tst(wro,Ito);rst("default",Cno);Zw({type:PD,event:PD,update:PD},jd);Zw({type:nge,event:nge,update:nge},jd);Zw({type:yee,event:yee,update:yee},jd);Zw({type:rge,event:rge,update:rge},jd);Zw({type:bee,event:bee,update:bee},jd);Xot("light",$no);Xot("dark",Fno);var Kro={},R3t=[],Wro={registerPreprocessor:est,registerProcessor:tst,registerPostInit:K9n,registerPostUpdate:W9n,registerUpdateLifecycle:d2e,registerAction:Zw,registerCoordinateSystem:Q9n,registerLayout:q9n,registerVisual:SO,registerTransform:J9n,registerLoading:rst,registerMap:Y9n,registerImpl:yro,PRIORITY:D9n,ComponentModel:Fo,ComponentView:Au,SeriesModel:Oc,ChartView:ql,registerComponentModel:function(t){Fo.registerClass(t)},registerComponentView:function(t){Au.registerClass(t)},registerSeriesModel:function(t){Oc.registerClass(t)},registerChartView:function(t){ql.registerClass(t)},registerSubTypeDefaulter:function(t,e){Fo.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){u6n(t,e)}};function qa(t){if(Tn(t)){Ie(t,function(e){qa(e)});return}za(R3t,t)>=0||(R3t.push(t),ai(t)&&(t={install:t}),t.install(Wro))}function zq(t){return t==null?0:t.length||1}function M3t(t){return t}var Qro=function(){function t(e,n,r,a,o,s){this._old=e,this._new=n,this._oldKeyGetter=r||M3t,this._newKeyGetter=a||M3t,this.context=o,this._diffModeMultiple=s==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),o=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var s=0;s<e.length;s++){var l=a[s],c=r[l],u=zq(c);if(u>1){var d=c.shift();c.length===1&&(r[l]=c[0]),this._update&&this._update(d,s)}else u===1?(r[l]=null,this._update&&this._update(c,s)):this._remove&&this._remove(s)}this._performRestAdd(o,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},o=[],s=[];this._initIndexMap(e,r,o,"_oldKeyGetter"),this._initIndexMap(n,a,s,"_newKeyGetter");for(var l=0;l<o.length;l++){var c=o[l],u=r[c],d=a[c],h=zq(u),f=zq(d);if(h>1&&f===1)this._updateManyToOne&&this._updateManyToOne(d,u),a[c]=null;else if(h===1&&f>1)this._updateOneToMany&&this._updateOneToMany(d,u),a[c]=null;else if(h===1&&f===1)this._update&&this._update(d,u),a[c]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(d,u),a[c]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(s,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],o=n[a],s=zq(o);if(s>1)for(var l=0;l<s;l++)this._add&&this._add(o[l]);else s===1&&this._add&&this._add(o);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var o=this._diffModeMultiple,s=0;s<e.length;s++){var l="_ec_"+this[a](e[s],s);if(o||(r[s]=l),!!n){var c=n[l],u=zq(c);u===0?(n[l]=s,o&&r.push(l)):u===1?n[l]=[c,s]:c.push(s)}}},t}();const PM=Qro;var qro=function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Yro(t,e){var n={},r=n.encode={},a=Ur(),o=[],s=[],l={};Ie(t.dimensions,function(f){var p=t.getDimensionInfo(f),m=p.coordDim;if(m){var g=p.coordDimIndex;_6e(r,m)[g]=f,p.isExtraCoord||(a.set(m,1),Jro(p.type)&&(o[0]=f),_6e(l,m)[g]=t.getDimensionIndex(p.name)),p.defaultTooltip&&s.push(f)}$8n.each(function(v,A){var y=_6e(r,A),S=p.otherDims[A];S!=null&&S!==!1&&(y[S]=p.name)})});var c=[],u={};a.each(function(f,p){var m=r[p];u[p]=m[0],c=c.concat(m)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=Rn(c,function(f){return t.getDimensionInfo(f).storeDimIndex}),n.encodeFirstDimNotExtra=u;var d=r.label;d&&d.length&&(o=d.slice());var h=r.tooltip;return h&&h.length?s=h.slice():s.length||(s=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=s,n.userOutput=new qro(l,e),n}function _6e(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function X1e(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Jro(t){return!(t==="ordinal"||t==="time")}var Zro=function(){function t(e){this.otherDims={},e!=null&&An(this,e)}return t}();const lge=Zro;var Xro=ds(),eio={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Z9n=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=t$n(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return pa(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=J8n(this.source),r=!n$n(e),a="",o=[],s=0,l=0;s<e;s++){var c=void 0,u=void 0,d=void 0,h=this.dimensions[l];if(h&&h.storeDimIndex===s)c=n?h.name:null,u=h.type,d=h.ordinalMeta,l++;else{var f=this.getSourceDimension(s);f&&(c=n?f.name:null,u=f.type)}o.push({property:c,type:u,ordinalMeta:d}),n&&c!=null&&(!h||!h.isCalculationCoord)&&(a+=r?c.replace(/\`/g,"`1").replace(/\$/g,"`2"):c),a+="$",a+=eio[u]||"f",d&&(a+=d.uid),a+="$"}var p=this.source,m=[p.seriesLayoutBy,p.startIndex,a].join("$$");return{dimensions:o,hash:m}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(a=o.name),r++;else{var s=this.getSourceDimension(n);s&&(a=s.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function X9n(t){return t instanceof Z9n}function e$n(t){for(var e=Ur(),n=0;n<(t||[]).length;n++){var r=t[n],a=Ci(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function t$n(t){var e=Xro(t);return e.dimNameMap||(e.dimNameMap=e$n(t.dimensionsDefine))}function n$n(t){return t>30}var Gq=Ci,bI=Rn,tio=typeof Int32Array>"u"?Array:Int32Array,nio="e\0\0",N3t=-1,rio=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],iio=["_approximateExtent"],I3t,ehe,Vq,Kq,T6e,the,C6e,aio=function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;X9n(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var o={},s=[],l={},c=!1,u={},d=0;d<r.length;d++){var h=r[d],f=vr(h)?new lge({name:h}):h instanceof lge?h:new lge(h),p=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=p,f.coordDimIndex=0);var m=f.otherDims=f.otherDims||{};s.push(p),o[p]=f,u[p]!=null&&(c=!0),f.createInvertedIndices&&(l[p]=[]),m.itemName===0&&(this._nameDimIdx=d),m.itemId===0&&(this._idDimIdx=d),a&&(f.storeDimIndex=d)}if(this.dimensions=s,this._dimInfos=o,this._initGetDimensionInfo(c),this.hostModel=n,this._invertedIndicesMap=l,this._dimOmitted){var g=this._dimIdxToName=Ur();Ie(s,function(v){g.set(o[v].storeDimIndex,v)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(cs(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,o;if(e instanceof XKe&&(o=e),!o){var s=this.dimensions,l=Fot(e)||ug(e)?new Z8n(e,s.length):e;o=new XKe;var c=bI(s,function(u){return{type:a._dimInfos[u].type,property:u}});o.initData(l,c,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=Yro(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n.length),a=r.start,o=r.end,s=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var l=a;l<o;l++){var c=l-a;this._nameList[l]=n[c],s&&C6e(this,l)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==O5&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,s=this._idList,l=a.getSource().sourceFormat,c=l===_E;if(c&&!a.pure)for(var u=[],d=e;d<n;d++){var h=a.getItem(d,u);if(!this.hasItemOption&&EZa(h)&&(this.hasItemOption=!0),h){var f=h.name;o[d]==null&&f!=null&&(o[d]=Lf(f,null));var p=h.id;s[d]==null&&p!=null&&(s[d]=Lf(p,null))}}if(this._shouldMakeIdFromName())for(var d=e;d<n;d++)C6e(this,d);I3t(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){Gq(e)?An(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Vq(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return ehe(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return Tn(e)?a.getValues(bI(e,function(o){return r._getStoreDimIndex(o)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e],a=r[n];return a==null||isNaN(a)?N3t:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){ai(e)&&(r=n,n=e,e=[]);var a=r||this,o=bI(Kq(e),this._getStoreDimIndex,this);this._store.each(o,a?Cr(n,a):n)},t.prototype.filterSelf=function(e,n,r){ai(e)&&(r=n,n=e,e=[]);var a=r||this,o=bI(Kq(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?Cr(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=bo(e);return Ie(a,function(o){var s=n._getStoreDimIndex(o);r[s]=e[o]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){ai(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var o=r||a||this,s=bI(Kq(e),this._getStoreDimIndex,this),l=the(this);return l._store=this._store.map(s,o?Cr(n,o):n),l},t.prototype.modify=function(e,n,r,a){var o=r||a||this,s=bI(Kq(e),this._getStoreDimIndex,this);this._store.modify(s,o?Cr(n,o):n)},t.prototype.downSample=function(e,n,r,a){var o=the(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),o},t.prototype.lttbDownSample=function(e,n){var r=the(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new Kl(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new PM(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return ehe(e,r)},function(r){return ehe(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},Gq(e)?An(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var o=a[n];return o==null&&(o=this.getVisual(n),Tn(o)?o=o.slice():Gq(o)&&(o=An({},o)),a[n]=o),o},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Gq(n)?An(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Gq(e)?An(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?An(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;jKe(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){Ie(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:bI(this.dimensions,this._getDimInfo,this),this.hostModel)),T6e(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];ai(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(BTe(arguments)))})},t.internalField=function(){I3t=function(e){var n=e._invertedIndicesMap;Ie(n,function(r,a){var o=e._dimInfos[a],s=o.ordinalMeta,l=e._store;if(s){r=n[a]=new tio(s.categories.length);for(var c=0;c<r.length;c++)r[c]=N3t;for(var c=0;c<l.count();c++)r[l.get(o.storeDimIndex,c)]=c}})},Vq=function(e,n,r){return Lf(e._getCategory(n,r),null)},ehe=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Vq(e,e._idDimIdx,n)),r==null&&(r=nio+n),r},Kq=function(e){return Tn(e)||(e=e!=null?[e]:[]),e},the=function(e){var n=new t(e._schema?e._schema:bI(e.dimensions,e._getDimInfo,e),e.hostModel);return T6e(n,e),n},T6e=function(e,n){Ie(rio.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,Ie(iio,function(r){e[r]=ji(n[r])}),e._calculationInfo=An({},n._calculationInfo)},C6e=function(e,n){var r=e._nameList,a=e._idList,o=e._nameDimIdx,s=e._idDimIdx,l=r[n],c=a[n];if(l==null&&o!=null&&(r[n]=l=Vq(e,o,n)),c==null&&s!=null&&(a[n]=c=Vq(e,s,n)),c==null&&l!=null){var u=e._nameRepeatCount,d=u[l]=(u[l]||0)+1;c=l,d>1&&(c+="__ec__"+d),a[n]=c}}}(),t}();const bv=aio;function oio(t,e){return GV(t,e).dimensions}function GV(t,e){Fot(t)||(t=jot(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=Ur(),o=[],s=lio(t,n,r,e.dimensionsCount),l=e.canOmitUnusedDimensions&&n$n(s),c=r===t.dimensionsDefine,u=c?t$n(t):e$n(r),d=e.encodeDefine;!d&&e.encodeDefaulter&&(d=e.encodeDefaulter(t,s));for(var h=Ur(d),f=new o9n(s),p=0;p<f.length;p++)f[p]=-1;function m(k){var P=f[k];if(P<0){var N=r[k],L=Ci(N)?N:{name:N},I=new lge,b=L.name;b!=null&&u.get(b)!=null&&(I.name=I.displayName=b),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var T=o.length;return f[k]=T,I.storeDimIndex=k,o.push(I),I}return o[P]}if(!l)for(var p=0;p<s;p++)m(p);h.each(function(k,P){var N=Ql(k).slice();if(N.length===1&&!vr(N[0])&&N[0]<0){h.set(P,!1);return}var L=h.set(P,[]);Ie(N,function(I,b){var T=vr(I)?u.get(I):I;T!=null&&T<s&&(L[b]=T,v(m(T),P,b))})});var g=0;Ie(n,function(k){var P,N,L,I;if(vr(k))P=k,I={};else{I=k,P=I.name;var b=I.ordinalMeta;I.ordinalMeta=null,I=An({},I),I.ordinalMeta=b,N=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var T=h.get(P);if(T!==!1){if(T=Ql(T),!T.length)for(var M=0;M<(N&&N.length||1);M++){for(;g<s&&m(g).coordDim!=null;)g++;g<s&&T.push(g++)}Ie(T,function(D,B){var j=m(D);if(c&&I.type!=null&&(j.type=I.type),v(bi(j,I),P,B),j.name==null&&N){var H=N[B];!Ci(H)&&(H={name:H}),j.name=j.displayName=H.name,j.defaultTooltip=H.defaultTooltip}L&&bi(j.otherDims,L)})}});function v(k,P,N){$8n.get(P)!=null?k.otherDims[P]=N:(k.coordDim=P,k.coordDimIndex=N,a.set(P,!0))}var A=e.generateCoord,y=e.generateCoordCount,S=y!=null;y=A?y||1:0;var x=A||"value";function w(k){k.name==null&&(k.name=k.coordDim)}if(l)Ie(o,function(k){w(k)}),o.sort(function(k,P){return k.storeDimIndex-P.storeDimIndex});else for(var _=0;_<s;_++){var C=m(_),R=C.coordDim;R==null&&(C.coordDim=cio(x,a,S),C.coordDimIndex=0,(!A||y<=0)&&(C.isExtraCoord=!0),y--),w(C),C.type==null&&(U8n(t,_)===jm.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return sio(o),new Z9n({source:t,dimensions:o,fullDimensionCount:s,dimensionOmitted:l})}function sio(t){for(var e=Ur(),n=0;n<t.length;n++){var r=t[n],a=r.name,o=e.get(a)||0;o>0&&(r.name=a+(o-1)),o++,e.set(a,o)}}function lio(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Ie(e,function(o){var s;Ci(o)&&(s=o.dimsDef)&&(a=Math.max(a,s.length))}),a}function cio(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var uio=function(){function t(e){this.coordSysDims=[],this.axisMap=Ur(),this.categoryAxisMap=Ur(),this.coordSysName=e}return t}();function dio(t){var e=t.get("coordinateSystem"),n=new uio(e),r=hio[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var hio={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",Qh).models[0],o=t.getReferringComponents("yAxis",Qh).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",o),o7(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),o7(o)&&(r.set("y",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",Qh).models[0];e.coordSysDims=["single"],n.set("single",a),o7(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",Qh).models[0],o=a.findAxisModel("radiusAxis"),s=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",s),o7(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),o7(s)&&(r.set("angle",s),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();Ie(o.parallelAxisIndex,function(l,c){var u=a.getComponent("parallelAxis",l),d=s[c];n.set(d,u),o7(u)&&(r.set(d,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=c))})}};function o7(t){return t.get("type")==="category"}function r$n(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,o,s,l;fio(e)?o=e:(s=e.schema,o=s.dimensions,l=e.store);var c=!!(t&&t.get("stack")),u,d,h,f;if(Ie(o,function(y,S){vr(y)&&(o[S]=y={name:y}),c&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!d&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(d=y))}),d&&!r&&!u&&(r=!0),d){h="__\0ecstackresult_"+t.id,f="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=d.coordDim,m=d.type,g=0;Ie(o,function(y){y.coordDim===p&&g++});var v={name:h,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},A={name:f,coordDim:f,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};s?(l&&(v.storeDimIndex=l.ensureCalculationDimension(f,m),A.storeDimIndex=l.ensureCalculationDimension(h,m)),s.appendCalculationDimension(v),s.appendCalculationDimension(A)):(o.push(v),o.push(A))}return{stackedDimension:d&&d.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:h}}function fio(t){return!X9n(t.schema)}function OM(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function ist(t,e){return OM(t,e)?t.getCalculationInfo("stackResultDimension"):e}function pio(t,e){var n=t.get("coordinateSystem"),r=jV.get(n),a;return e&&e.coordSysDims&&(a=Rn(e.coordSysDims,function(o){var s={name:o},l=e.axisMap.get(o);if(l){var c=l.get("type");s.type=X1e(c)}return s})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function mio(t,e,n){var r,a;return n&&Ie(t,function(o,s){var l=o.coordDim,c=n.categoryAxisMap.get(l);c&&(r==null&&(r=s),o.ordinalMeta=c.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function kC(t,e,n){n=n||{};var r=e.getSourceManager(),a,o=!1;t?(o=!0,a=jot(t)):(a=r.getSource(),o=a.sourceFormat===_E);var s=dio(e),l=pio(e,s),c=n.useEncodeDefaulter,u=ai(c)?c:c?fa(H8n,l,e):null,d={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=GV(a,d),f=mio(h.dimensions,n.createInvertedIndices,s),p=o?null:r.getSharedDataStore(h),m=r$n(e,{schema:h,store:p}),g=new bv(h,e);g.setCalculationInfo(m);var v=f!=null&&gio(a)?function(A,y,S,x){return x===f?S:this.defaultDimValueGetter(A,y,S,x)}:null;return g.hasItemOption=!1,g.initData(o?a:p,null,v),g}function gio(t){if(t.sourceFormat===_E){var e=vio(t.data||[]);return!Tn(RV(e))}}function vio(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var i$n=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();zTe(i$n);const bN=i$n;var Aio=0,yio=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Aio}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&Rn(r,bio);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!vr(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Ur(this.categories))},t}();function bio(t){return Ci(t)&&t.value!=null?t.value:t+""}const cWe=yio;function uWe(t){return t.type==="interval"||t.type==="log"}function xio(t,e,n,r){var a={},o=t[1]-t[0],s=a.interval=sot(o/e,!0);n!=null&&s<n&&(s=a.interval=n),r!=null&&s>r&&(s=a.interval=r);var l=a.intervalPrecision=a$n(s),c=a.niceTickExtent=[fd(Math.ceil(t[0]/s)*s,l),fd(Math.floor(t[1]/s)*s,l)];return Eio(c,t),a}function k6e(t){var e=Math.pow(10,UTe(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,fd(n*e)}function a$n(t){return ow(t)+2}function P3t(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Eio(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),P3t(t,0,e),P3t(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function h2e(t,e){return t>=e[0]&&t<=e[1]}function f2e(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function p2e(t,e){return t*(e[1]-e[0])+e[0]}var o$n=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new cWe({})),Tn(a)&&(a=new cWe({categories:Rn(a,function(o){return Ci(o)?o.value:o})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:vr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),h2e(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),f2e(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(p2e(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,c=Math.min(l,r.length);s<c;++s){var u=r[s];a[s]=u,o[u]=s}for(var d=0;s<l;++s){for(;o[d]!=null;)d++;a.push(d),o[d]=s}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(bN);bN.registerClass(o$n);const ast=o$n;var q4=fd,s$n=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return h2e(n,this._extent)},e.prototype.normalize=function(n){return f2e(n,this._extent)},e.prototype.scale=function(n){return p2e(n,this._extent)},e.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=a$n(n)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,o=this._niceExtent,s=this._intervalPrecision,l=[];if(!r)return l;var c=1e4;a[0]<o[0]&&(n?l.push({value:q4(o[0]-r,s)}):l.push({value:a[0]}));for(var u=o[0];u<=o[1]&&(l.push({value:u}),u=q4(u+r,s),u!==l[l.length-1].value);)if(l.length>c)return[];var d=l.length?l[l.length-1].value:o[1];return a[1]>d&&(n?l.push({value:q4(d+r,s)}):l.push({value:a[1]})),l},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],o=this.getExtent(),s=1;s<r.length;s++){for(var l=r[s],c=r[s-1],u=0,d=[],h=l.value-c.value,f=h/n;u<n-1;){var p=q4(c.value+(u+1)*f);p>o[0]&&p<o[1]&&d.push(p),u++}a.push(d)}return a},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=ow(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=q4(n.value,a,!0);return Iot(o)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var o=this._extent,s=o[1]-o[0];if(isFinite(s)){s<0&&(s=-s,o.reverse());var l=xio(o,n,r,a);this._intervalPrecision=l.intervalPrecision,this._interval=l.interval,this._niceExtent=l.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var s=this._interval;n.fixMin||(r[0]=q4(Math.floor(r[0]/s)*s)),n.fixMax||(r[1]=q4(Math.ceil(r[1]/s)*s))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(bN);bN.registerClass(s$n);const NP=s$n;var l$n=typeof Float32Array<"u",Sio=l$n?Float32Array:Array;function s2(t){return Tn(t)?l$n?new Float32Array(t):t:new Sio(t)}var dWe="__ec_stack_";function ost(t){return t.get("stack")||dWe+t.seriesIndex}function sst(t){return t.dim+t.index}function wio(t){var e=[],n=t.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),o=0;o<t.count;o++)e.push(bi({bandWidth:a,axisKey:r,stackId:dWe+o},t));for(var s=d$n(e),l=[],o=0;o<t.count;o++){var c=s[r][dWe+o];c.offsetCenter=c.offset+c.width/2,l.push(c)}return l}}function c$n(t,e){var n=[];return e.eachSeriesByType(t,function(r){p$n(r)&&n.push(r)}),n}function _io(t){var e={};Ie(t,function(c){var u=c.coordinateSystem,d=u.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var h=c.getData(),f=d.dim+"_"+d.index,p=h.getDimensionIndex(h.mapDimension(d.dim)),m=h.getStore(),g=0,v=m.count();g<v;++g){var A=m.get(p,g);e[f]?e[f].push(A):e[f]=[A]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(c,u){return c-u});for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=o===null?l:Math.min(o,l))}n[r]=o}}return n}function u$n(t){var e=_io(t),n=[];return Ie(t,function(r){var a=r.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent(),l;if(o.type==="category")l=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var c=o.dim+"_"+o.index,u=e[c],d=Math.abs(s[1]-s[0]),h=o.scale.getExtent(),f=Math.abs(h[1]-h[0]);l=u?d/f*u:d}else{var p=r.getData();l=Math.abs(s[1]-s[0])/p.count()}var m=lr(r.get("barWidth"),l),g=lr(r.get("barMaxWidth"),l),v=lr(r.get("barMinWidth")||(m$n(r)?.5:1),l),A=r.get("barGap"),y=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:m,barMaxWidth:g,barMinWidth:v,barGap:A,barCategoryGap:y,axisKey:sst(o),stackId:ost(r)})}),d$n(n)}function d$n(t){var e={};Ie(t,function(r,a){var o=r.axisKey,s=r.bandWidth,l=e[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=l.stacks;e[o]=l;var u=r.stackId;c[u]||l.autoWidthCount++,c[u]=c[u]||{width:0,maxWidth:0};var d=r.barWidth;d&&!c[u].width&&(c[u].width=d,d=Math.min(l.remainedWidth,d),l.remainedWidth-=d);var h=r.barMaxWidth;h&&(c[u].maxWidth=h);var f=r.barMinWidth;f&&(c[u].minWidth=f);var p=r.barGap;p!=null&&(l.gap=p);var m=r.barCategoryGap;m!=null&&(l.categoryGap=m)});var n={};return Ie(e,function(r,a){n[a]={};var o=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=bo(o).length;l=Math.max(35-c*4,15)+"%"}var u=lr(l,s),d=lr(r.gap,1),h=r.remainedWidth,f=r.autoWidthCount,p=(h-u)/(f+(f-1)*d);p=Math.max(p,0),Ie(o,function(A){var y=A.maxWidth,S=A.minWidth;if(A.width){var x=A.width;y&&(x=Math.min(x,y)),S&&(x=Math.max(x,S)),A.width=x,h-=x+d*x,f--}else{var x=p;y&&y<x&&(x=Math.min(y,h)),S&&S>x&&(x=S),x!==p&&(A.width=x,h-=x+d*x,f--)}}),p=(h-u)/(f+(f-1)*d),p=Math.max(p,0);var m=0,g;Ie(o,function(A,y){A.width||(A.width=p),g=A,m+=A.width*(1+d)}),g&&(m-=g.width*d);var v=-m/2;Ie(o,function(A,y){n[a][y]=n[a][y]||{bandWidth:s,offset:v,width:A.width},v+=A.width*(1+d)})}),n}function Tio(t,e,n){if(t&&e){var r=t[sst(e)];return r!=null&&n!=null?r[ost(n)]:r}}function h$n(t,e){var n=c$n(t,e),r=u$n(n);Ie(n,function(a){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),c=ost(a),u=r[sst(l)][c],d=u.offset,h=u.width;o.setLayout({bandWidth:u.bandWidth,offset:d,size:h})})}function f$n(t){return{seriesType:t,plan:HV(),reset:function(e){if(p$n(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),o=r.getOtherAxis(a),s=n.getDimensionIndex(n.mapDimension(o.dim)),l=n.getDimensionIndex(n.mapDimension(a.dim)),c=e.get("showBackground",!0),u=n.mapDimension(o.dim),d=n.getCalculationInfo("stackResultDimension"),h=OM(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),f=o.isHorizontal(),p=Cio(a,o),m=m$n(e),g=e.get("barMinHeight")||0,v=d&&n.getDimensionIndex(d),A=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(S,x){for(var w=S.count,_=m&&s2(w*3),C=m&&c&&s2(w*3),R=m&&s2(w),k=r.master.getRect(),P=f?k.width:k.height,N,L=x.getStore(),I=0;(N=S.next())!=null;){var b=L.get(h?v:s,N),T=L.get(l,N),M=p,D=void 0;h&&(D=+b-L.get(s,N));var B=void 0,j=void 0,H=void 0,U=void 0;if(f){var $=r.dataToPoint([b,T]);if(h){var z=r.dataToPoint([D,T]);M=z[0]}B=M,j=$[1]+y,H=$[0]-M,U=A,Math.abs(H)<g&&(H=(H<0?-1:1)*g)}else{var $=r.dataToPoint([T,b]);if(h){var z=r.dataToPoint([T,D]);M=z[1]}B=$[0]+y,j=M,H=A,U=$[1]-M,Math.abs(U)<g&&(U=(U<=0?-1:1)*g)}m?(_[I]=B,_[I+1]=j,_[I+2]=f?H:U,C&&(C[I]=f?k.x:B,C[I+1]=f?j:k.y,C[I+2]=P),R[N]=N):x.setItemLayout(N,{x:B,y:j,width:H,height:U}),I+=3}m&&x.setLayout({largePoints:_,largeDataIndices:R,largeBackgroundPoints:C,valueAxisHorizontal:f})}}}}}}function p$n(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function m$n(t){return t.pipelineContext&&t.pipelineContext.large}function Cio(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var kio=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},g$n=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return lse(n.value,wIt[Weo(pH(this._minLevelUnit))]||wIt.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var o=this.getSetting("useUTC"),s=this.getSetting("locale");return Qeo(n,r,a,s,o)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var o=this.getSetting("useUTC"),s=Lio(this._minLevelUnit,this._approxInterval,o,r);return a=a.concat(s),a.push({value:r[1],level:0}),a},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=yx,r[1]+=yx),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-yx}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var o=this._extent,s=o[1]-o[0];this._approxInterval=s/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var l=nhe.length,c=Math.min(kio(nhe,this._approxInterval,0,l),l-1);this._interval=nhe[c][1],this._minLevelUnit=nhe[Math.max(c-1,0)][0]},e.prototype.parse=function(n){return cs(n)?n:+qy(n)},e.prototype.contain=function(n){return h2e(this.parse(n),this._extent)},e.prototype.normalize=function(n){return f2e(this.parse(n),this._extent)},e.prototype.scale=function(n){return p2e(n,this._extent)},e.type="time",e}(NP),nhe=[["second",Rot],["minute",Mot],["hour",Eee],["quarter-day",Eee*6],["half-day",Eee*12],["day",yx*1.2],["half-week",yx*3.5],["week",yx*7],["month",yx*31],["quarter",yx*95],["half-year",SIt/2],["year",SIt]];function Rio(t,e,n,r){var a=qy(e),o=qy(n),s=function(m){return _It(a,m,r)===_It(o,m,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},u=function(){return c()&&s("day")},d=function(){return u()&&s("hour")},h=function(){return d()&&s("minute")},f=function(){return h()&&s("second")},p=function(){return f()&&s("millisecond")};switch(t){case"year":return l();case"month":return c();case"day":return u();case"hour":return d();case"minute":return h();case"second":return f();case"millisecond":return p()}}function Mio(t,e){return t/=yx,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Nio(t){var e=30*yx;return t/=e,t>6?6:t>3?3:t>2?2:1}function Iio(t){return t/=Eee,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function O3t(t,e){return t/=e?Mot:Rot,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Pio(t){return sot(t,!0)}function Oio(t,e,n){var r=new Date(t);switch(pH(e)){case"year":case"month":r[k8n(n)](0);case"day":r[R8n(n)](1);case"hour":r[M8n(n)](0);case"minute":r[N8n(n)](0);case"second":r[I8n(n)](0),r[P8n(n)](0)}return r.getTime()}function Lio(t,e,n,r){var a=1e4,o=T8n,s=0;function l(P,N,L,I,b,T,M){for(var D=new Date(N),B=N,j=D[I]();B<L&&B<=r[1];)M.push({value:B}),j+=P,D[b](j),B=D.getTime();M.push({value:B,notAdd:!0})}function c(P,N,L){var I=[],b=!N.length;if(!Rio(pH(P),r[0],r[1],n)){b&&(N=[{value:Oio(new Date(r[0]),P,n)},{value:r[1]}]);for(var T=0;T<N.length-1;T++){var M=N[T].value,D=N[T+1].value;if(M!==D){var B=void 0,j=void 0,H=void 0,U=!1;switch(P){case"year":B=Math.max(1,Math.round(e/yx/365)),j=Not(n),H=qeo(n);break;case"half-year":case"quarter":case"month":B=Nio(e),j=mH(n),H=k8n(n);break;case"week":case"half-week":case"day":B=Mio(e),j=t2e(n),H=R8n(n),U=!0;break;case"half-day":case"quarter-day":case"hour":B=Iio(e),j=hre(n),H=M8n(n);break;case"minute":B=O3t(e,!0),j=n2e(n),H=N8n(n);break;case"second":B=O3t(e,!1),j=r2e(n),H=I8n(n);break;case"millisecond":B=Pio(e),j=i2e(n),H=P8n(n);break}l(B,M,D,j,H,U,I),P==="year"&&L.length>1&&T===0&&L.unshift({value:L[0].value-B})}}for(var T=0;T<I.length;T++)L.push(I[T]);return I}}for(var u=[],d=[],h=0,f=0,p=0;p<o.length&&s++<a;++p){var m=pH(o[p]);if(Keo(o[p])){c(o[p],u[u.length-1]||[],d);var g=o[p+1]?pH(o[p+1]):null;if(m!==g){if(d.length){f=h,d.sort(function(P,N){return P.value-N.value});for(var v=[],A=0;A<d.length;++A){var y=d[A].value;(A===0||d[A-1].value!==y)&&(v.push(d[A]),y>=r[0]&&y<=r[1]&&h++)}var S=(r[1]-r[0])/e;if(h>S*1.5&&f>S/1.5||(u.push(v),h>S||t===o[p]))break}d=[]}}}for(var x=ll(Rn(u,function(P){return ll(P,function(N){return N.value>=r[0]&&N.value<=r[1]&&!N.notAdd})}),function(P){return P.length>0}),w=[],_=x.length-1,p=0;p<x.length;++p)for(var C=x[p],R=0;R<C.length;++R)w.push({value:C[R].value,level:_-p});w.sort(function(P,N){return P.value-N.value});for(var k=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&k.push(w[p]);return k}bN.registerClass(g$n);const v$n=g$n;var L3t=bN.prototype,_ee=NP.prototype,Bio=fd,Dio=Math.floor,$io=Math.ceil,rhe=Math.pow,dS=Math.log,lst=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new NP,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,o=r.getExtent(),s=_ee.getTicks.call(this,n);return Rn(s,function(l){var c=l.value,u=fd(rhe(this.base,c));return u=c===a[0]&&this._fixMin?ihe(u,o[0]):u,u=c===a[1]&&this._fixMax?ihe(u,o[1]):u,{value:u}},this)},e.prototype.setExtent=function(n,r){var a=dS(this.base);n=dS(Math.max(0,n))/a,r=dS(Math.max(0,r))/a,_ee.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=L3t.getExtent.call(this);r[0]=rhe(n,r[0]),r[1]=rhe(n,r[1]);var a=this._originalScale,o=a.getExtent();return this._fixMin&&(r[0]=ihe(r[0],o[0])),this._fixMax&&(r[1]=ihe(r[1],o[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=dS(n[0])/dS(r),n[1]=dS(n[1])/dS(r),L3t.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var o=g6n(a),s=n/a*o;for(s<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var l=[fd($io(r[0]/o)*o),fd(Dio(r[1]/o)*o)];this._interval=o,this._niceExtent=l}},e.prototype.calcNiceExtent=function(n){_ee.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=dS(n)/dS(this.base),h2e(n,this._extent)},e.prototype.normalize=function(n){return n=dS(n)/dS(this.base),f2e(n,this._extent)},e.prototype.scale=function(n){return n=p2e(n,this._extent),rhe(this.base,n)},e.type="log",e}(bN),A$n=lst.prototype;A$n.getMinorTicks=_ee.getMinorTicks;A$n.getLabel=_ee.getLabel;function ihe(t,e){return Bio(t,ow(e))}bN.registerClass(lst);const Fio=lst;var jio=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=this._modelMinRaw=n.get("min",!0);ai(o)?this._modelMinNum=ahe(e,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=ahe(e,o));var s=this._modelMaxRaw=n.get("max",!0);if(ai(s)?this._modelMaxNum=ahe(e,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=ahe(e,s)),a)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),c=Tn(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[$w(c[0],1),$w(c[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=e?null:r-n||Math.abs(n),l=this._modelMinRaw==="dataMin"?n:this._modelMinNum,c=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=l!=null,d=c!=null;l==null&&(l=e?a?0:NaN:n-o[0]*s),c==null&&(c=e?a?a-1:NaN:r+o[1]*s),(l==null||!isFinite(l))&&(l=NaN),(c==null||!isFinite(c))&&(c=NaN);var h=rz(l)||rz(c)||e&&!a;this._needCrossZero&&(l>0&&c>0&&!u&&(l=0),l<0&&c<0&&!d&&(c=0));var f=this._determinedMin,p=this._determinedMax;return f!=null&&(l=f,u=!0),p!=null&&(c=p,d=!0),{min:l,max:c,minFixed:u,maxFixed:d,isBlank:h}},t.prototype.modifyDataMinMax=function(e,n){this[Uio[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=Hio[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),Hio={min:"_determinedMin",max:"_determinedMax"},Uio={min:"_dataMin",max:"_dataMax"};function y$n(t,e,n){var r=t.rawExtentInfo;return r||(r=new jio(t,e,n),t.rawExtentInfo=r,r)}function ahe(t,e){return e==null?null:rz(e)?NaN:t.parse(e)}function b$n(t,e){var n=t.type,r=y$n(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,o=r.max,s=e.ecModel;if(s&&n==="time"){var l=c$n("bar",s),c=!1;if(Ie(l,function(h){c=c||h.getBaseAxis()===e.axis}),c){var u=u$n(l),d=zio(a,o,e,u);a=d.min,o=d.max}}return{extent:[a,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function zio(t,e,n,r){var a=n.axis.getExtent(),o=a[1]-a[0],s=Tio(r,n.axis);if(s===void 0)return{min:t,max:e};var l=1/0;Ie(s,function(p){l=Math.min(p.offset,l)});var c=-1/0;Ie(s,function(p){c=Math.max(p.offset+p.width,c)}),l=Math.abs(l),c=Math.abs(c);var u=l+c,d=e-t,h=1-(l+c)/o,f=d/h-d;return e+=f*(c/u),t-=f*(l/u),{min:t,max:e}}function a8(t,e){var n=e,r=b$n(t,n),a=r.extent,o=n.get("splitNumber");t instanceof Fio&&(t.base=n.get("logBase"));var s=t.type,l=n.get("interval"),c=s==="interval"||s==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),l!=null&&t.setInterval&&t.setInterval(l)}function use(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new ast({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new v$n({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(bN.getClass(e)||NP)}}function Gio(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function dse(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(a,o){return t.scale.getFormattedLabel(a,o,r)}}(e):vr(e)?function(r){return function(a){var o=t.scale.getLabel(a),s=r.replace("{value}",o??"");return s}}(e):ai(e)?function(r){return function(a,o){return n!=null&&(o=a.value-n),r(cst(t,a),o,a.level!=null?{level:a.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function cst(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Vio(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,o=n.getExtent();n instanceof ast?a=n.count():(r=n.getTicks(),a=r.length);var s=t.getLabelModel(),l=dse(t),c,u=1;a>40&&(u=Math.ceil(a/40));for(var d=0;d<a;d+=u){var h=r?r[d]:{value:o[0]+d},f=l(h,d),p=s.getTextRect(f),m=Kio(p,s.get("rotate")||0);c?c.union(m):c=m}return c}}function Kio(t,e){var n=e*Math.PI/180,r=t.width,a=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),s=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),l=new Da(t.x,t.y,o,s);return l}function ust(t){var e=t.get("interval");return e??"auto"}function x$n(t){return t.type==="category"&&ust(t.getLabelModel())===0}function eye(t,e){var n={};return Ie(t.mapDimensionsAll(e),function(r){n[ist(t,r)]=!0}),bo(n)}function Wio(t,e,n){e&&Ie(eye(e,n),function(r){var a=e.getApproximateExtent(r);a[0]<t[0]&&(t[0]=a[0]),a[1]>t[1]&&(t[1]=a[1])})}var VV=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function Qio(t){return kC(null,t)}var qio={isDimensionStacked:OM,enableDataStack:r$n,getStackedDimension:ist};function Yio(t,e){var n=e;e instanceof Kl||(n=new Kl(e));var r=use(n);return r.setExtent(t[0],t[1]),a8(r,n),r}function Jio(t){Vd(t,VV)}function Zio(t,e){return e=e||{},yc(t,null,null,e.state!=="normal")}const Xio=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:oio,createList:Qio,createScale:Yio,createSymbol:vh,createTextStyle:Zio,dataStack:qio,enableHoverEmphasis:I5,getECData:ia,getLayoutRect:nf,mixinAxisModelCommonMethods:Jio},Symbol.toStringTag,{value:"Module"}));var eao=1e-8;function B3t(t,e){return Math.abs(t-e)<eao}function yB(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var o=1;o<t.length;o++){var s=t[o];r+=gR(a[0],a[1],s[0],s[1],e,n),a=s}var l=t[0];return(!B3t(a[0],l[0])||!B3t(a[1],l[1]))&&(r+=gR(a[0],a[1],l[0],l[1],e,n)),r!==0}var tao=[];function R6e(t,e){for(var n=0;n<t.length;n++)om(t[n],t[n],e)}function D3t(t,e,n,r){for(var a=0;a<t.length;a++){var o=t[a];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(GR(e,e,o),VR(n,n,o))}}function nao(t){for(var e=0,n=0,r=0,a=t.length,o=t[a-1][0],s=t[a-1][1],l=0;l<a;l++){var c=t[l][0],u=t[l][1],d=o*u-c*s;e+=d,n+=(o+c)*d,r+=(s+u)*d,o=c,s=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var E$n=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),$3t=function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t}(),F3t=function(){function t(e){this.type="linestring",this.points=e}return t}(),S$n=function(t){nn(e,t);function e(n,r,a){var o=t.call(this,n)||this;return o.type="geoJSON",o.geometries=r,o._center=a&&[a[0],a[1]],o}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,o=0;o<n.length;o++){var s=n[o],l=s.exterior,c=l&&l.length;c>a&&(r=s,a=c)}if(r)return nao(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],o=[-1/0,-1/0],s=this.geometries;return Ie(s,function(l){l.type==="polygon"?D3t(l.exterior,a,o,n):Ie(l.points,function(c){D3t(c,a,o,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(o[0])&&isFinite(o[1])||(a[0]=a[1]=o[0]=o[1]=0),r=new Da(a[0],a[1],o[0]-a[0],o[1]-a[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var o=0,s=a.length;o<s;o++){var l=a[o];if(l.type==="polygon"){var c=l.exterior,u=l.interiors;if(yB(c,n[0],n[1])){for(var d=0;d<(u?u.length:0);d++)if(yB(u[d],n[0],n[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(n,r,a,o){var s=this.getBoundingRect(),l=s.width/s.height;a?o||(o=a/l):a=l*o;for(var c=new Da(n,r,a,o),u=s.calculateTransform(c),d=this.geometries,h=0;h<d.length;h++){var f=d[h];f.type==="polygon"?(R6e(f.exterior,u),Ie(f.interiors,function(p){R6e(p,u)})):Ie(f.points,function(p){R6e(p,u)})}s=this._rect,s.copy(c),this._center=[s.x+s.width/2,s.y+s.height/2]},e.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new e(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e}(E$n),rao=function(t){nn(e,t);function e(n,r){var a=t.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],o=Xoe(tao),s=n;s&&!s.isGeoSVGGraphicRoot;)R2(o,s.getLocalTransform(),o),s=s.parent;return x9(o,o),om(a,a,o),a},e}(E$n);function iao(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return Ie(r,function(a){var o=a.geometry,s=o.encodeOffsets,l=o.coordinates;if(s)switch(o.type){case"LineString":o.coordinates=w$n(l,s,n);break;case"Polygon":M6e(l,s,n);break;case"MultiLineString":M6e(l,s,n);break;case"MultiPolygon":Ie(l,function(c,u){return M6e(c,s[u],n)})}}),e.UTF8Encoding=!1,e}function M6e(t,e,n){for(var r=0;r<t.length;r++)t[r]=w$n(t[r],e[r],n)}function w$n(t,e,n){for(var r=[],a=e[0],o=e[1],s=0;s<t.length;s+=2){var l=t.charCodeAt(s)-64,c=t.charCodeAt(s+1)-64;l=l>>1^-(l&1),c=c>>1^-(c&1),l+=a,c+=o,a=l,o=c,r.push([l/n,c/n])}return r}function hWe(t,e){return t=iao(t),Rn(ll(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,o=[];switch(a.type){case"Polygon":var s=a.coordinates;o.push(new $3t(s[0],s.slice(1)));break;case"MultiPolygon":Ie(a.coordinates,function(c){c[0]&&o.push(new $3t(c[0],c.slice(1)))});break;case"LineString":o.push(new F3t([a.coordinates]));break;case"MultiLineString":o.push(new F3t(a.coordinates))}var l=new S$n(r[e||"name"],o,r.cp);return l.properties=r,l})}const aao=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:OKe,asc:Py,getPercentWithPrecision:yZa,getPixelPrecision:aot,getPrecision:ow,getPrecisionSafe:p6n,isNumeric:lot,isRadianAroundZero:iz,linearMap:ol,nice:sot,numericToNumber:rC,parseDate:qy,quantile:tge,quantity:g6n,quantityExponent:UTe,reformIntervals:LKe,remRadian:oot,round:fd},Symbol.toStringTag,{value:"Module"})),oao=Object.freeze(Object.defineProperty({__proto__:null,format:lse,parse:qy},Symbol.toStringTag,{value:"Module"})),sao=Object.freeze(Object.defineProperty({__proto__:null,Arc:YTe,BezierCurve:ase,BoundingRect:Da,Circle:yN,CompoundPath:JTe,Ellipse:qTe,Group:ta,Image:fm,IncrementalDisplayable:f8n,Line:vp,LinearGradient:NV,Polygon:Y0,Polyline:aA,RadialGradient:bot,Rect:Zo,Ring:ise,Sector:q0,Text:Jo,clipPointsByRect:wot,clipRectByRect:A8n,createIcon:PV,extendPath:g8n,extendShape:m8n,getShapeClass:ZTe,getTransform:P5,initProps:Kc,makeImage:Eot,makePath:ose,mergePath:Ty,registerShape:wE,resizePath:Sot,updateProps:vs},Symbol.toStringTag,{value:"Module"})),lao=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Iot,capitalFirst:Xeo,encodeHTML:w0,formatTime:Zeo,formatTpl:Oot,getTextRect:Yeo,getTooltipMarker:O8n,normalizeCssArray:w9,toCamelCase:Pot,truncateText:C6n},Symbol.toStringTag,{value:"Module"})),cao=Object.freeze(Object.defineProperty({__proto__:null,bind:Cr,clone:ji,curry:fa,defaults:bi,each:Ie,extend:An,filter:ll,indexOf:za,inherits:Yat,isArray:Tn,isFunction:ai,isObject:Ci,isString:vr,map:Rn,merge:Ra,reduce:Zx},Symbol.toStringTag,{value:"Module"}));var Are=ds();function uao(t){return t.type==="category"?hao(t):pao(t)}function dao(t,e){return t.type==="category"?fao(t,e):{ticks:Rn(t.scale.getTicks(),function(n){return n.value})}}function hao(t){var e=t.getLabelModel(),n=_$n(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function _$n(t,e){var n=T$n(t,"labels"),r=ust(e),a=C$n(n,r);if(a)return a;var o,s;return ai(r)?o=M$n(t,r):(s=r==="auto"?mao(t):r,o=R$n(t,s)),k$n(n,r,{labels:o,labelCategoryInterval:s})}function fao(t,e){var n=T$n(t,"ticks"),r=ust(e),a=C$n(n,r);if(a)return a;var o,s;if((!e.get("show")||t.scale.isBlank())&&(o=[]),ai(r))o=M$n(t,r,!0);else if(r==="auto"){var l=_$n(t,t.getLabelModel());s=l.labelCategoryInterval,o=Rn(l.labels,function(c){return c.tickValue})}else s=r,o=R$n(t,s,!0);return k$n(n,r,{ticks:o,tickCategoryInterval:s})}function pao(t){var e=t.scale.getTicks(),n=dse(t);return{labels:Rn(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function T$n(t,e){return Are(t)[e]||(Are(t)[e]=[])}function C$n(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function k$n(t,e,n){return t.push({key:e,value:n}),n}function mao(t){var e=Are(t).autoInterval;return e??(Are(t).autoInterval=t.calculateCategoryInterval())}function gao(t){var e=vao(t),n=dse(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),s=a.count();if(o[1]-o[0]<1)return 0;var l=1;s>40&&(l=Math.max(1,Math.floor(s/40)));for(var c=o[0],u=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,p=0;c<=o[1];c+=l){var m=0,g=0,v=tse(n({value:c}),e.font,"center","top");m=v.width*1.3,g=v.height*1.3,f=Math.max(f,m,7),p=Math.max(p,g,7)}var A=f/d,y=p/h;isNaN(A)&&(A=1/0),isNaN(y)&&(y=1/0);var S=Math.max(0,Math.floor(Math.min(A,y))),x=Are(t.model),w=t.getExtent(),_=x.lastAutoInterval,C=x.lastTickCount;return _!=null&&C!=null&&Math.abs(_-S)<=1&&Math.abs(C-s)<=1&&_>S&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?S=_:(x.lastTickCount=s,x.lastAutoInterval=S,x.axisExtent0=w[0],x.axisExtent1=w[1]),S}function vao(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function R$n(t,e,n){var r=dse(t),a=t.scale,o=a.getExtent(),s=t.getLabelModel(),l=[],c=Math.max((e||0)+1,1),u=o[0],d=a.count();u!==0&&c>1&&d/c>2&&(u=Math.round(Math.ceil(u/c)*c));var h=x$n(t),f=s.get("showMinLabel")||h,p=s.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var m=u;m<=o[1];m+=c)g(m);p&&m-c!==o[1]&&g(o[1]);function g(v){var A={value:v};l.push(n?v:{formattedLabel:r(A),rawLabel:a.getLabel(A),tickValue:v})}return l}function M$n(t,e,n){var r=t.scale,a=dse(t),o=[];return Ie(r.getTicks(),function(s){var l=r.getLabel(s),c=s.value;e(s.value,l)&&o.push(n?c:{formattedLabel:a(s),rawLabel:l,tickValue:c})}),o}var j3t=[0,1],Aao=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return aot(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),H3t(r,a.count())),ol(e,j3t,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),H3t(r,a.count()));var o=ol(e,r,j3t,n);return this.scale.scale(o)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=dao(this,n),a=r.ticks,o=Rn(a,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return yao(this,o,s,e.clamp),o},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=Rn(r,function(o){return Rn(o,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return a},t.prototype.getViewLabels=function(){return uao(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(){return gao(this)},t}();function H3t(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function yao(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var o=t.getExtent(),s,l;if(a===1)e[0].coord=o[0],s=e[1]={coord:o[1]};else{var c=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/c;Ie(e,function(p){p.coord-=u/2});var d=t.scale.getExtent();l=1+d[1]-e[a-1].tickValue,s={coord:e[a-1].coord+u*l},e.push(s)}var h=o[0]>o[1];f(e[0].coord,o[0])&&(r?e[0].coord=o[0]:e.shift()),r&&f(o[0],e[0].coord)&&e.unshift({coord:o[0]}),f(o[1],s.coord)&&(r?s.coord=o[1]:e.pop()),r&&f(s.coord,o[1])&&e.push({coord:o[1]});function f(p,m){return p=fd(p),m=fd(m),h?p>m:p<m}}const CE=Aao;function bao(t){var e=Fo.extend(t);return Fo.registerClass(e),e}function xao(t){var e=Au.extend(t);return Au.registerClass(e),e}function Eao(t){var e=Oc.extend(t);return Oc.registerClass(e),e}function Sao(t){var e=ql.extend(t);return ql.registerClass(e),e}var Wq=Math.PI*2,Y4=iC.CMD,wao=["top","right","bottom","left"];function _ao(t,e,n,r,a){var o=n.width,s=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),a.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+s+e),a.set(0,1);break;case"left":r.set(n.x-e,n.y+s/2),a.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+s/2),a.set(1,0);break}}function Tao(t,e,n,r,a,o,s,l,c){s-=t,l-=e;var u=Math.sqrt(s*s+l*l);s/=u,l/=u;var d=s*n+t,h=l*n+e;if(Math.abs(r-a)%Wq<1e-4)return c[0]=d,c[1]=h,u-n;if(o){var f=r;r=Oy(a),a=Oy(f)}else r=Oy(r),a=Oy(a);r>a&&(a+=Wq);var p=Math.atan2(l,s);if(p<0&&(p+=Wq),p>=r&&p<=a||p+Wq>=r&&p+Wq<=a)return c[0]=d,c[1]=h,u-n;var m=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(a)+t,A=n*Math.sin(a)+e,y=(m-s)*(m-s)+(g-l)*(g-l),S=(v-s)*(v-s)+(A-l)*(A-l);return y<S?(c[0]=m,c[1]=g,Math.sqrt(y)):(c[0]=v,c[1]=A,Math.sqrt(S))}function tye(t,e,n,r,a,o,s,l){var c=a-t,u=o-e,d=n-t,h=r-e,f=Math.sqrt(d*d+h*h);d/=f,h/=f;var p=c*d+u*h,m=p/f;l&&(m=Math.min(Math.max(m,0),1)),m*=f;var g=s[0]=t+m*d,v=s[1]=e+m*h;return Math.sqrt((g-a)*(g-a)+(v-o)*(v-o))}function N$n(t,e,n,r,a,o,s){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var l=t+n,c=e+r,u=s[0]=Math.min(Math.max(a,t),l),d=s[1]=Math.min(Math.max(o,e),c);return Math.sqrt((u-a)*(u-a)+(d-o)*(d-o))}var FS=[];function Cao(t,e,n){var r=N$n(e.x,e.y,e.width,e.height,t.x,t.y,FS);return n.set(FS[0],FS[1]),r}function kao(t,e,n){for(var r=0,a=0,o=0,s=0,l,c,u=1/0,d=e.data,h=t.x,f=t.y,p=0;p<d.length;){var m=d[p++];p===1&&(r=d[p],a=d[p+1],o=r,s=a);var g=u;switch(m){case Y4.M:o=d[p++],s=d[p++],r=o,a=s;break;case Y4.L:g=tye(r,a,d[p],d[p+1],h,f,FS,!0),r=d[p++],a=d[p++];break;case Y4.C:g=KDn(r,a,d[p++],d[p++],d[p++],d[p++],d[p],d[p+1],h,f,FS),r=d[p++],a=d[p++];break;case Y4.Q:g=QDn(r,a,d[p++],d[p++],d[p],d[p+1],h,f,FS),r=d[p++],a=d[p++];break;case Y4.A:var v=d[p++],A=d[p++],y=d[p++],S=d[p++],x=d[p++],w=d[p++];p+=1;var _=!!(1-d[p++]);l=Math.cos(x)*y+v,c=Math.sin(x)*S+A,p<=1&&(o=l,s=c);var C=(h-v)*S/y+v;g=Tao(v,A,S,x,x+w,_,C,f,FS),r=Math.cos(x+w)*y+v,a=Math.sin(x+w)*S+A;break;case Y4.R:o=r=d[p++],s=a=d[p++];var R=d[p++],k=d[p++];g=N$n(o,s,R,k,h,f,FS);break;case Y4.Z:g=tye(r,a,o,s,h,f,FS,!0),r=o,a=s;break}g<u&&(u=g,n.set(FS[0],FS[1]))}return u}var sw=new Oa,Nc=new Oa,sh=new Oa,l2=new Oa,GT=new Oa;function U3t(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var a=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],s=a.candidates||wao,l=r.getBoundingRect().clone();l.applyTransform(r.getComputedTransform());var c=1/0,u=a.anchor,d=t.getComputedTransform(),h=d&&x9([],d),f=e.get("length2")||0;u&&sh.copy(u);for(var p=0;p<s.length;p++){var m=s[p];_ao(m,0,l,sw,l2),Oa.scaleAndAdd(Nc,sw,l2,f),Nc.transform(h);var g=t.getBoundingRect(),v=u?u.distance(Nc):t instanceof no?kao(Nc,t.path,sh):Cao(Nc,g,sh);v<c&&(c=v,Nc.transform(d),sh.transform(d),sh.toArray(o[0]),Nc.toArray(o[1]),sw.toArray(o[2]))}I$n(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var nye=[],E0=new Oa;function I$n(t,e){if(e<=180&&e>0){e=e/180*Math.PI,sw.fromArray(t[0]),Nc.fromArray(t[1]),sh.fromArray(t[2]),Oa.sub(l2,sw,Nc),Oa.sub(GT,sh,Nc);var n=l2.len(),r=GT.len();if(!(n<.001||r<.001)){l2.scale(1/n),GT.scale(1/r);var a=l2.dot(GT),o=Math.cos(e);if(o<a){var s=tye(Nc.x,Nc.y,sh.x,sh.y,sw.x,sw.y,nye,!1);E0.fromArray(nye),E0.scaleAndAdd(GT,s/Math.tan(Math.PI-e));var l=sh.x!==Nc.x?(E0.x-Nc.x)/(sh.x-Nc.x):(E0.y-Nc.y)/(sh.y-Nc.y);if(isNaN(l))return;l<0?Oa.copy(E0,Nc):l>1&&Oa.copy(E0,sh),E0.toArray(t[1])}}}}function Rao(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,sw.fromArray(t[0]),Nc.fromArray(t[1]),sh.fromArray(t[2]),Oa.sub(l2,Nc,sw),Oa.sub(GT,sh,Nc);var r=l2.len(),a=GT.len();if(!(r<.001||a<.001)){l2.scale(1/r),GT.scale(1/a);var o=l2.dot(e),s=Math.cos(n);if(o<s){var l=tye(Nc.x,Nc.y,sh.x,sh.y,sw.x,sw.y,nye,!1);E0.fromArray(nye);var c=Math.PI/2,u=Math.acos(GT.dot(e)),d=c+u-n;if(d>=c)Oa.copy(E0,sh);else{E0.scaleAndAdd(GT,l/Math.tan(Math.PI/2-d));var h=sh.x!==Nc.x?(E0.x-Nc.x)/(sh.x-Nc.x):(E0.y-Nc.y)/(sh.y-Nc.y);if(isNaN(h))return;h<0?Oa.copy(E0,Nc):h>1&&Oa.copy(E0,sh)}E0.toArray(t[1])}}}}function N6e(t,e,n,r){var a=n==="normal",o=a?t:t.ensureState(n);o.ignore=e;var s=r.get("smooth");s&&s===!0&&(s=.3),o.shape=o.shape||{},s>0&&(o.shape.smooth=s);var l=r.getModel("lineStyle").getLineStyle();a?t.useStyle(l):o.style=l}function Mao(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=zR(r[0],r[1]),o=zR(r[1],r[2]);if(!a||!o){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var s=Math.min(a,o)*n,l=pee([],r[1],r[0],s/a),c=pee([],r[1],r[2],s/o),u=pee([],l,c,.5);t.bezierCurveTo(l[0],l[1],l[0],l[1],u[0],u[1]),t.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var d=1;d<r.length;d++)t.lineTo(r[d][0],r[d][1])}function dst(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var o=e.normal,s=o.get("show"),l=a.ignore,c=0;c<cre.length;c++){var u=cre[c],d=e[u],h=u==="normal";if(d){var f=d.get("show"),p=h?l:pa(a.states[u]&&a.states[u].ignore,l);if(p||!pa(f,s)){var m=h?r:r&&r.states[u];m&&(m.ignore=!0),r&&N6e(r,!0,u,d);continue}r||(r=new aA,t.setTextGuideLine(r),!h&&(l||!s)&&N6e(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),N6e(r,!1,u,d)}}if(r){bi(r.style,n),r.style.fill=null;var g=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=g||!1,r.buildPath=Mao}}function hst(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Q0.length;r++){var a=Q0[r];n[a]=t.getModel([a,e])}return n}function P$n(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,o=a.getComputedTransform(),s=a.getBoundingRect(),l=!o||o[1]<1e-5&&o[2]<1e-5,c=a.style.margin||0,u=s.clone();u.applyTransform(o),u.x-=c/2,u.y-=c/2,u.width+=c,u.height+=c;var d=l?new $1e(s,o):null;e.push({label:a,labelLine:r.labelLine,rect:u,localRect:s,obb:d,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:o})}}return e}function O$n(t,e,n,r,a,o){var s=t.length;if(s<2)return;t.sort(function(R,k){return R.rect[e]-k.rect[e]});for(var l=0,c,u=!1,d=0,h=0;h<s;h++){var f=t[h],p=f.rect;c=p[e]-l,c<0&&(p[e]-=c,f.label[e]-=c,u=!0);var m=Math.max(-c,0);d+=m,l=p[e]+p[n]}d>0&&o&&w(-d/s,0,s);var g=t[0],v=t[s-1],A,y;S(),A<0&&_(-A,.8),y<0&&_(y,.8),S(),x(A,y,1),x(y,A,-1),S(),A<0&&C(-A),y<0&&C(y);function S(){A=g.rect[e]-r,y=a-v.rect[e]-v.rect[n]}function x(R,k,P){if(R<0){var N=Math.min(k,-R);if(N>0){w(N*P,0,s);var L=N+R;L<0&&_(-L*P,1)}else _(-R*P,1)}}function w(R,k,P){R!==0&&(u=!0);for(var N=k;N<P;N++){var L=t[N],I=L.rect;I[e]+=R,L.label[e]+=R}}function _(R,k){for(var P=[],N=0,L=1;L<s;L++){var I=t[L-1].rect,b=Math.max(t[L].rect[e]-I[e]-I[n],0);P.push(b),N+=b}if(N){var T=Math.min(Math.abs(R)/N,k);if(R>0)for(var L=0;L<s-1;L++){var M=P[L]*T;w(M,0,L+1)}else for(var L=s-1;L>0;L--){var M=P[L-1]*T;w(-M,L,s)}}}function C(R){var k=R<0?-1:1;R=Math.abs(R);for(var P=Math.ceil(R/(s-1)),N=0;N<s-1;N++)if(k>0?w(P,0,N+1):w(-P,s-N-1,s),R-=P,R<=0)return}return u}function Nao(t,e,n,r){return O$n(t,"x","width",e,n,r)}function L$n(t,e,n,r){return O$n(t,"y","height",e,n,r)}function B$n(t){var e=[];t.sort(function(g,v){return v.priority-g.priority});var n=new Da(0,0,0,0);function r(g){if(!g.ignore){var v=g.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}g.ignore=!0}for(var a=0;a<t.length;a++){var o=t[a],s=o.axisAligned,l=o.localRect,c=o.transform,u=o.label,d=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,f=!1,p=0;p<e.length;p++){var m=e[p];if(n.intersect(m.rect)){if(s&&m.axisAligned){f=!0;break}if(m.obb||(m.obb=new $1e(m.localRect,m.transform)),h||(h=new $1e(l,c)),h.intersect(m.obb)){f=!0;break}}}f?(r(u),d&&r(d)):(u.attr("ignore",o.defaultAttr.ignore),d&&d.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function Iao(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Pao(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Iao(r&&r.shape.points)}}var z3t=["align","verticalAlign","width","height","fontSize"],a0=new KR,I6e=ds(),Oao=ds();function ohe(t,e,n){for(var r=0;r<n.length;r++){var a=n[r];e[a]!=null&&(t[a]=e[a])}}var she=["x","y","rotation"],Lao=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,a,o){var s=a.style,l=a.__hostTarget,c=l.textConfig||{},u=a.getComputedTransform(),d=a.getBoundingRect().plain();Da.applyTransform(d,d,u),u?a0.setLocalTransform(u):(a0.x=a0.y=a0.rotation=a0.originX=a0.originY=0,a0.scaleX=a0.scaleY=1),a0.rotation=Oy(a0.rotation);var h=a.__hostTarget,f;if(h){f=h.getBoundingRect().plain();var p=h.getComputedTransform();Da.applyTransform(f,f,p)}var m=f&&h.getTextGuideLine();this._labelList.push({label:a,labelLine:m,seriesModel:r,dataIndex:e,dataType:n,layoutOption:o,computedLayoutOption:null,rect:d,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:m&&m.ignore,x:a0.x,y:a0.y,scaleX:a0.scaleX,scaleY:a0.scaleY,rotation:a0.rotation,style:{x:s.x,y:s.y,align:s.align,verticalAlign:s.verticalAlign,width:s.width,height:s.height,fontSize:s.fontSize},cursor:a.cursor,attachedPos:c.position,attachedRot:c.rotation}})},t.prototype.addLabelsOfSeries=function(e){var n=this;this._chartViewList.push(e);var r=e.__model,a=r.get("labelLayout");(ai(a)||bo(a).length)&&e.group.traverse(function(o){if(o.ignore)return!0;var s=o.getTextContent(),l=ia(o);s&&!s.disableLabelLayout&&n._addLabel(l.dataIndex,l.dataType,r,s,a)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function a(S,x){return function(){U3t(S,x)}}for(var o=0;o<this._labelList.length;o++){var s=this._labelList[o],l=s.label,c=l.__hostTarget,u=s.defaultAttr,d=void 0;ai(s.layoutOption)?d=s.layoutOption(Pao(s,c)):d=s.layoutOption,d=d||{},s.computedLayoutOption=d;var h=Math.PI/180;c&&c.setTextConfig({local:!1,position:d.x!=null||d.y!=null?null:u.attachedPos,rotation:d.rotate!=null?d.rotate*h:u.attachedRot,offset:[d.dx||0,d.dy||0]});var f=!1;if(d.x!=null?(l.x=lr(d.x,n),l.setStyle("x",0),f=!0):(l.x=u.x,l.setStyle("x",u.style.x)),d.y!=null?(l.y=lr(d.y,r),l.setStyle("y",0),f=!0):(l.y=u.y,l.setStyle("y",u.style.y)),d.labelLinePoints){var p=c.getTextGuideLine();p&&(p.setShape({points:d.labelLinePoints}),f=!1)}var m=I6e(l);m.needsUpdateLabelLine=f,l.rotation=d.rotate!=null?d.rotate*h:u.rotation,l.scaleX=u.scaleX,l.scaleY=u.scaleY;for(var g=0;g<z3t.length;g++){var v=z3t[g];l.setStyle(v,d[v]!=null?d[v]:u.style[v])}if(d.draggable){if(l.draggable=!0,l.cursor="move",c){var A=s.seriesModel;if(s.dataIndex!=null){var y=s.seriesModel.getData(s.dataType);A=y.getItemModel(s.dataIndex)}l.on("drag",a(c,A.getModel("labelLine")))}}else l.off("drag"),l.cursor=u.cursor}},t.prototype.layout=function(e){var n=e.getWidth(),r=e.getHeight(),a=P$n(this._labelList),o=ll(a,function(c){return c.layoutOption.moveOverlap==="shiftX"}),s=ll(a,function(c){return c.layoutOption.moveOverlap==="shiftY"});Nao(o,0,n),L$n(s,0,r);var l=ll(a,function(c){return c.layoutOption.hideOverlap});B$n(l)},t.prototype.processLabelsOverall=function(){var e=this;Ie(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,o=r.isAnimationEnabled();n.group.traverse(function(s){if(s.ignore&&!s.forceLabelAnimation)return!0;var l=!a,c=s.getTextContent();!l&&c&&(l=I6e(c).needsUpdateLabelLine),l&&e._updateLabelLine(s,r),o&&e._animateLabels(s,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),a=ia(e),o=a.dataIndex;if(r&&o!=null){var s=n.getData(a.dataType),l=s.getItemModel(o),c={},u=s.getItemVisual(o,"style");if(u){var d=s.getVisual("drawType");c.stroke=u[d]}var h=l.getModel("labelLine");dst(e,hst(l),c),U3t(e,h)}},t.prototype._animateLabels=function(e,n){var r=e.getTextContent(),a=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!hH(e))){var o=I6e(r),s=o.oldLayout,l=ia(e),c=l.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},d=n.getData(l.dataType);if(s){r.attr(s);var f=e.prevStates;f&&(za(f,"select")>=0&&r.attr(o.oldLayoutSelect),za(f,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),vs(r,u,n,c)}else if(r.attr(u),!LV(r).valueAnimation){var h=pa(r.style.opacity,1);r.style.opacity=0,Kc(r,{style:{opacity:h}},n,c)}if(o.oldLayout=u,r.states.select){var p=o.oldLayoutSelect={};ohe(p,u,she),ohe(p,r.states.select,she)}if(r.states.emphasis){var m=o.oldLayoutEmphasis={};ohe(m,u,she),ohe(m,r.states.emphasis,she)}E8n(r,c,d,n,n)}if(a&&!a.ignore&&!a.invisible){var o=Oao(a),s=o.oldLayout,g={points:a.shape.points};s?(a.attr({shape:s}),vs(a,{shape:g},n)):(a.setShape(g),a.style.strokePercent=0,Kc(a,{style:{strokePercent:1}},n)),o.oldLayout=g}},t}();const Bao=Lao;var P6e=ds();function Dao(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var a=P6e(n).labelManager;a||(a=P6e(n).labelManager=new Bao),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var a=P6e(n).labelManager;r.updatedSeries.forEach(function(o){a.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var O6e=Math.sin,L6e=Math.cos,D$n=Math.PI,J4=Math.PI*2,$ao=180/D$n,Fao=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,n){this._add("M",e,n)},t.prototype.lineTo=function(e,n){this._add("L",e,n)},t.prototype.bezierCurveTo=function(e,n,r,a,o,s){this._add("C",e,n,r,a,o,s)},t.prototype.quadraticCurveTo=function(e,n,r,a){this._add("Q",e,n,r,a)},t.prototype.arc=function(e,n,r,a,o,s){this.ellipse(e,n,r,r,0,a,o,s)},t.prototype.ellipse=function(e,n,r,a,o,s,l,c){var u=l-s,d=!c,h=Math.abs(u),f=X3(h-J4)||(d?u>=J4:-u>=J4),p=u>0?u%J4:u%J4+J4,m=!1;f?m=!0:X3(h)?m=!1:m=p>=D$n==!!d;var g=e+r*L6e(s),v=n+a*O6e(s);this._start&&this._add("M",g,v);var A=Math.round(o*$ao);if(f){var y=1/this._p,S=(d?1:-1)*(J4-y);this._add("A",r,a,A,1,+d,e+r*L6e(s+S),n+a*O6e(s+S)),y>.01&&this._add("A",r,a,A,0,+d,g,v)}else{var x=e+r*L6e(l),w=n+a*O6e(l);this._add("A",r,a,A,+m,+d,x,w)}},t.prototype.rect=function(e,n,r,a){this._add("M",e,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,n,r,a,o,s,l,c,u){for(var d=[],h=this._p,f=1;f<arguments.length;f++){var p=arguments[f];if(isNaN(p)){this._invalid=!0;return}d.push(Math.round(p*h)/h)}this._d.push(e+d.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();const $$n=Fao;var Tee="none",jao=Math.round;function Hao(t){var e=t.fill;return e!=null&&e!==Tee}function Uao(t){var e=t.stroke;return e!=null&&e!==Tee}var fWe=["lineCap","miterLimit","lineJoin"],zao=Rn(fWe,function(t){return"stroke-"+t.toLowerCase()});function Gao(t,e,n,r){var a=e.opacity==null?1:e.opacity;if(n instanceof fm){t("opacity",a);return}if(Hao(e)){var o=ore(e.fill);t("fill",o.color);var s=e.fillOpacity!=null?e.fillOpacity*o.opacity*a:o.opacity*a;(r||s<1)&&t("fill-opacity",s)}else t("fill",Tee);if(Uao(e)){var l=ore(e.stroke);t("stroke",l.color);var c=e.strokeNoScale?n.getLineScale():1,u=c?(e.lineWidth||0)/c:0,d=e.strokeOpacity!=null?e.strokeOpacity*l.opacity*a:l.opacity*a,h=e.strokeFirst;if((r||u!==1)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||d<1)&&t("stroke-opacity",d),e.lineDash){var f=Wot(n),p=f[0],m=f[1];p&&(m=jao(m||0),t("stroke-dasharray",p.join(",")),(m||r)&&t("stroke-dashoffset",m))}else r&&t("stroke-dasharray",Tee);for(var g=0;g<fWe.length;g++){var v=fWe[g];if(r||e[v]!==B1e[v]){var A=e[v]||B1e[v];A&&t(zao[g],A)}}}else r&&t("stroke",Tee)}var F$n="http://www.w3.org/2000/svg",j$n="http://www.w3.org/1999/xlink",Vao="http://www.w3.org/2000/xmlns/",Kao="http://www.w3.org/XML/1998/namespace",G3t="ecmeta_";function H$n(t){return document.createElementNS(F$n,t)}function Ap(t,e,n,r,a){return{tag:t,attrs:n||{},children:r,text:a,key:e}}function Wao(t,e){var n=[];if(e)for(var r in e){var a=e[r],o=r;a!==!1&&(a!==!0&&a!=null&&(o+='="'+a+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}function Qao(t){return"</"+t+">"}function fst(t,e){e=e||{};var n=e.newline?`
`:"";function r(a){var o=a.children,s=a.tag,l=a.attrs,c=a.text;return Wao(s,l)+(s!=="style"?w0(c):c||"")+(o?""+n+Rn(o,function(u){return r(u)}).join(n)+n:"")+Qao(s)}return r(t)}function qao(t,e,n){n=n||{};var r=n.newline?`
`:"",a=" {"+r,o=r+"}",s=Rn(bo(t),function(c){return c+a+Rn(bo(t[c]),function(u){return u+":"+t[c][u]+";"}).join(r)+o}).join(r),l=Rn(bo(e),function(c){return"@keyframes "+c+a+Rn(bo(e[c]),function(u){return u+a+Rn(bo(e[c][u]),function(d){var h=e[c][u][d];return d==="d"&&(h='path("'+h+'")'),d+":"+h+";"}).join(r)+o}).join(r)+o}).join(r);return!s&&!l?"":["<![CDATA[",s,l,"]]>"].join(r)}function pWe(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function V3t(t,e,n,r){return Ap("svg","root",{width:t,height:e,xmlns:F$n,"xmlns:xlink":j$n,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var Yao=0;function U$n(){return Yao++}var K3t={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tB="transform-origin";function Jao(t,e,n){var r=An({},t.shape);An(r,e),t.buildPath(n,r);var a=new $$n;return a.reset(t6n(t)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function Zao(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[tB]=n+"px "+r+"px")}var Xao={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function z$n(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function eoo(t,e,n){var r=t.shape.paths,a={},o,s;if(Ie(r,function(c){var u=pWe(n.zrId);u.animation=!0,m2e(c,{},u,!0);var d=u.cssAnims,h=u.cssNodes,f=bo(d),p=f.length;if(p){s=f[p-1];var m=d[s];for(var g in m){var v=m[g];a[g]=a[g]||{d:""},a[g].d+=v.d||""}for(var A in h){var y=h[A].animation;y.indexOf(s)>=0&&(o=y)}}}),!!o){e.d=!1;var l=z$n(a,n);return o.replace(s,l)}}function W3t(t){return vr(t)?K3t[t]?"cubic-bezier("+K3t[t]+")":eot(t)?t:"":""}function m2e(t,e,n,r){var a=t.animators,o=a.length,s=[];if(t instanceof JTe){var l=eoo(t,e,n);if(l)s.push(l);else if(!o)return}else if(!o)return;for(var c={},u=0;u<o;u++){var d=a[u],h=[d.getMaxTime()/1e3+"s"],f=W3t(d.getClip().easing),p=d.getDelay();f?h.push(f):h.push("linear"),p&&h.push(p/1e3+"s"),d.getLoop()&&h.push("infinite");var m=h.join(" ");c[m]=c[m]||[m,[]],c[m][1].push(d)}function g(y){var S=y[1],x=S.length,w={},_={},C={},R="animation-timing-function";function k(X,te,J){for(var ne=X.getTracks(),ie=X.getMaxTime(),he=0;he<ne.length;he++){var de=ne[he];if(de.needsAnimate()){var ce=de.keyframes,Ee=de.propName;if(J&&(Ee=J(Ee)),Ee)for(var Me=0;Me<ce.length;Me++){var Be=ce[Me],ze=Math.round(Be.time/ie*100)+"%",je=W3t(Be.easing),ye=Be.rawValue;(vr(ye)||cs(ye))&&(te[ze]=te[ze]||{},te[ze][Ee]=Be.rawValue,je&&(te[ze][R]=je))}}}}for(var P=0;P<x;P++){var N=S[P],L=N.targetName;L?L==="shape"&&k(N,_):!r&&k(N,w)}for(var I in w){var b={};o6n(b,t),An(b,w[I]);var T=n6n(b),M=w[I][R];C[I]=T?{transform:T}:{},Zao(C[I],b),M&&(C[I][R]=M)}var D,B=!0;for(var I in _){C[I]=C[I]||{};var j=!D,M=_[I][R];j&&(D=new iC);var H=D.len();D.reset(),C[I].d=Jao(t,_[I],D);var U=D.len();if(!j&&H!==U){B=!1;break}M&&(C[I][R]=M)}if(!B)for(var I in C)delete C[I].d;if(!r)for(var P=0;P<x;P++){var N=S[P],L=N.targetName;L==="style"&&k(N,C,function(ne){return Xao[ne]})}for(var $=bo(C),z=!0,Z,P=1;P<$.length;P++){var K=$[P-1],Q=$[P];if(C[K][tB]!==C[Q][tB]){z=!1;break}Z=C[K][tB]}if(z&&Z){for(var I in C)C[I][tB]&&delete C[I][tB];e[tB]=Z}if(ll($,function(X){return bo(C[X]).length>0}).length){var ee=z$n(C,n);return ee+" "+y[0]+" both"}}for(var v in c){var l=g(c[v]);l&&s.push(l)}if(s.length){var A=n.zrId+"-cls-"+U$n();n.cssNodes["."+A]={animation:s.join(",")},e.class=A}}function too(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};Q3t(r,e,n,!0)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=a.fill;if(!o){var s=t.style&&t.style.fill,l=t.states.select&&t.states.select.style&&t.states.select.style.fill,c=t.currentStates.indexOf("select")>=0&&l||s;c&&(o=I1e(c))}var u=a.lineWidth;if(u){var d=!a.strokeNoScale&&t.transform?t.transform[0]:1;u=u/d}var r={cursor:"pointer"};o&&(r.fill=o),a.stroke&&(r.stroke=a.stroke),u&&(r["stroke-width"]=u),Q3t(r,e,n,!0)}}function Q3t(t,e,n,r){var a=JSON.stringify(t),o=n.cssStyleCache[a];o||(o=n.zrId+"-cls-"+U$n(),n.cssStyleCache[a]=o,n.cssNodes["."+o+(r?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var yre=Math.round;function G$n(t){return t&&vr(t.src)}function V$n(t){return t&&ai(t.toDataURL)}function pst(t,e,n,r){Gao(function(a,o){var s=a==="fill"||a==="stroke";s&&e6n(o)?W$n(e,t,a,r):s&&not(o)?Q$n(n,t,a,r):s&&o==="none"?t[a]="transparent":t[a]=o},e,n,!1),loo(n,t,r)}function mst(t,e){var n=d6n(e);n&&(n.each(function(r,a){r!=null&&(t[(G3t+a).toLowerCase()]=r+"")}),e.isSilent()&&(t[G3t+"silent"]="true"))}function q3t(t){return X3(t[0]-1)&&X3(t[1])&&X3(t[2])&&X3(t[3]-1)}function noo(t){return X3(t[4])&&X3(t[5])}function gst(t,e,n){if(e&&!(noo(e)&&q3t(e))){var r=n?10:1e4;t.transform=q3t(e)?"translate("+yre(e[4]*r)/r+" "+yre(e[5]*r)/r+")":PJa(e)}}function Y3t(t,e,n){for(var r=t.points,a=[],o=0;o<r.length;o++)a.push(yre(r[o][0]*n)/n),a.push(yre(r[o][1]*n)/n);e.points=a.join(" ")}function J3t(t){return!t.smooth}function roo(t){var e=Rn(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var o=0;o<e.length;o++){var s=e[o],l=n[s[0]];l!=null&&(r[s[1]]=yre(l*a)/a)}}}var ioo={circle:[roo(["cx","cy","r"])],polyline:[Y3t,J3t],polygon:[Y3t,J3t]};function aoo(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function K$n(t,e){var n=t.style,r=t.shape,a=ioo[t.type],o={},s=e.animation,l="path",c=t.style.strokePercent,u=e.compress&&t6n(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](r))&&!(s&&aoo(t))&&!(c<1)){l=t.type;var d=Math.pow(10,u);a[0](r,o,d)}else{var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var f=t.path;h&&(f.beginPath(),t.buildPath(f,t.shape),t.pathUpdated());var p=f.getVersion(),m=t,g=m.__svgPathBuilder;(m.__svgPathVersion!==p||!g||c!==m.__svgPathStrokePercent)&&(g||(g=m.__svgPathBuilder=new $$n),g.reset(u),f.rebuildPath(g,c),g.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),o.d=g.getStr()}return gst(o,t.transform),pst(o,n,t,e),mst(o,t),e.animation&&m2e(t,o,e),e.emphasis&&too(t,o,e),Ap(l,t.id+"",o)}function ooo(t,e){var n=t.style,r=n.image;if(r&&!vr(r)&&(G$n(r)?r=r.src:V$n(r)&&(r=r.toDataURL())),!!r){var a=n.x||0,o=n.y||0,s=n.width,l=n.height,c={href:r,width:s,height:l};return a&&(c.x=a),o&&(c.y=o),gst(c,t.transform),pst(c,n,t,e),mst(c,t),e.animation&&m2e(t,c,e),Ap("image",t.id+"",c)}}function soo(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||CP,o=n.x||0,s=LJa(n.y||0,HTe(a),n.textBaseline),l=OJa[n.textAlign]||n.textAlign,c={"dominant-baseline":"central","text-anchor":l};if(j6n(n)){var u="",d=n.fontStyle,h=F6n(n.fontSize);if(!parseFloat(h))return;var f=n.fontFamily||SDn,p=n.fontWeight;u+="font-size:"+h+";font-family:"+f+";",d&&d!=="normal"&&(u+="font-style:"+d+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),c.style=u}else c.style="font: "+a;return r.match(/\s/)&&(c["xml:space"]="preserve"),o&&(c.x=o),s&&(c.y=s),gst(c,t.transform),pst(c,n,t,e),mst(c,t),e.animation&&m2e(t,c,e),Ap("text",t.id+"",c,void 0,r)}}function Z3t(t,e){if(t instanceof no)return K$n(t,e);if(t instanceof fm)return ooo(t,e);if(t instanceof lre)return soo(t,e)}function loo(t,e,n){var r=t.style;if(BJa(r)){var a=DJa(t),o=n.shadowCache,s=o[a];if(!s){var l=t.getGlobalScale(),c=l[0],u=l[1];if(!c||!u)return;var d=r.shadowOffsetX||0,h=r.shadowOffsetY||0,f=r.shadowBlur,p=ore(r.shadowColor),m=p.opacity,g=p.color,v=f/2/c,A=f/2/u,y=v+" "+A;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=Ap("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ap("feDropShadow","",{dx:d/c,dy:h/u,stdDeviation:y,"flood-color":g,"flood-opacity":m})]),o[a]=s}e.filter=jTe(s)}}function W$n(t,e,n,r){var a=t[n],o,s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(ZDn(a))o="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else if(XDn(a))o="radialGradient",s.cx=pa(a.x,.5),s.cy=pa(a.y,.5),s.r=pa(a.r,.5);else return;for(var l=a.colorStops,c=[],u=0,d=l.length;u<d;++u){var h=SKe(l[u].offset)*100+"%",f=l[u].color,p=ore(f),m=p.color,g=p.opacity,v={offset:h};v["stop-color"]=m,g<1&&(v["stop-opacity"]=g),c.push(Ap("stop",u+"",v))}var A=Ap(o,"",s,c),y=fst(A),S=r.gradientCache,x=S[y];x||(x=r.zrId+"-g"+r.gradientIdx++,S[y]=x,s.id=x,r.defs[x]=Ap(o,x,s,c)),e[n]=jTe(x)}function Q$n(t,e,n,r){var a=t.style[n],o=t.getBoundingRect(),s={},l=a.repeat,c=l==="no-repeat",u=l==="repeat-x",d=l==="repeat-y",h;if(JDn(a)){var f=a.imageWidth,p=a.imageHeight,m=void 0,g=a.image;if(vr(g)?m=g:G$n(g)?m=g.src:V$n(g)&&(m=g.toDataURL()),typeof Image>"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";Tv(f,v),Tv(p,v)}else if(f==null||p==null){var A=function(P,N){if(P){var L=P.elm,I=f||N.width,b=p||N.height;P.tag==="pattern"&&(u?(b=1,I/=o.width):d&&(I=1,b/=o.height)),P.attrs.width=I,P.attrs.height=b,L&&(L.setAttribute("width",I),L.setAttribute("height",b))}},y=hot(m,null,t,function(P){c||A(_,P),A(h,P)});y&&y.width&&y.height&&(f=f||y.width,p=p||y.height)}h=Ap("image","img",{href:m,width:f,height:p}),s.width=f,s.height=p}else a.svgElement&&(h=ji(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(h){var S,x;c?S=x=1:u?(x=1,S=s.width/o.width):d?(S=1,x=s.height/o.height):s.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(s.width=S),x!=null&&!isNaN(x)&&(s.height=x);var w=n6n(a);w&&(s.patternTransform=w);var _=Ap("pattern","",s,[h]),C=fst(_),R=r.patternCache,k=R[C];k||(k=r.zrId+"-p"+r.patternIdx++,R[C]=k,s.id=k,_=r.defs[k]=Ap("pattern",k,s,[h])),e[n]=jTe(k)}}function coo(t,e,n){var r=n.clipPathCache,a=n.defs,o=r[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var s={id:o};r[t.id]=o,a[o]=Ap("clipPath",o,s,[K$n(t,n)])}e["clip-path"]=jTe(o)}function X3t(t){return document.createTextNode(t)}function bB(t,e,n){t.insertBefore(e,n)}function e5t(t,e){t.removeChild(e)}function t5t(t,e){t.appendChild(e)}function q$n(t){return t.parentNode}function Y$n(t){return t.nextSibling}function B6e(t,e){t.textContent=e}var n5t=58,uoo=120,doo=Ap("","");function mWe(t){return t===void 0}function bT(t){return t!==void 0}function hoo(t,e,n){for(var r={},a=e;a<=n;++a){var o=t[a].key;o!==void 0&&(r[o]=a)}return r}function DZ(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function bre(t){var e,n=t.children,r=t.tag;if(bT(r)){var a=t.elm=H$n(r);if(vst(doo,t),Tn(n))for(e=0;e<n.length;++e){var o=n[e];o!=null&&t5t(a,bre(o))}else bT(t.text)&&!Ci(t.text)&&t5t(a,X3t(t.text))}else t.elm=X3t(t.text);return t.elm}function J$n(t,e,n,r,a){for(;r<=a;++r){var o=n[r];o!=null&&bB(t,bre(o),e)}}function rye(t,e,n,r){for(;n<=r;++n){var a=e[n];if(a!=null)if(bT(a.tag)){var o=q$n(a.elm);e5t(o,a.elm)}else e5t(t,a.elm)}}function vst(t,e){var n,r=e.elm,a=t&&t.attrs||{},o=e.attrs||{};if(a!==o){for(n in o){var s=o[n],l=a[n];l!==s&&(s===!0?r.setAttribute(n,""):s===!1?r.removeAttribute(n):n==="style"?r.style.cssText=s:n.charCodeAt(0)!==uoo?r.setAttribute(n,s):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(Vao,n,s):n.charCodeAt(3)===n5t?r.setAttributeNS(Kao,n,s):n.charCodeAt(5)===n5t?r.setAttributeNS(j$n,n,s):r.setAttribute(n,s))}for(n in a)n in o||r.removeAttribute(n)}}function foo(t,e,n){for(var r=0,a=0,o=e.length-1,s=e[0],l=e[o],c=n.length-1,u=n[0],d=n[c],h,f,p,m;r<=o&&a<=c;)s==null?s=e[++r]:l==null?l=e[--o]:u==null?u=n[++a]:d==null?d=n[--c]:DZ(s,u)?(mF(s,u),s=e[++r],u=n[++a]):DZ(l,d)?(mF(l,d),l=e[--o],d=n[--c]):DZ(s,d)?(mF(s,d),bB(t,s.elm,Y$n(l.elm)),s=e[++r],d=n[--c]):DZ(l,u)?(mF(l,u),bB(t,l.elm,s.elm),l=e[--o],u=n[++a]):(mWe(h)&&(h=hoo(e,r,o)),f=h[u.key],mWe(f)?bB(t,bre(u),s.elm):(p=e[f],p.tag!==u.tag?bB(t,bre(u),s.elm):(mF(p,u),e[f]=void 0,bB(t,p.elm,s.elm))),u=n[++a]);(r<=o||a<=c)&&(r>o?(m=n[c+1]==null?null:n[c+1].elm,J$n(t,m,n,a,c)):rye(t,e,r,o))}function mF(t,e){var n=e.elm=t.elm,r=t.children,a=e.children;t!==e&&(vst(t,e),mWe(e.text)?bT(r)&&bT(a)?r!==a&&foo(n,r,a):bT(a)?(bT(t.text)&&B6e(n,""),J$n(n,null,a,0,a.length-1)):bT(r)?rye(n,r,0,r.length-1):bT(t.text)&&B6e(n,""):t.text!==e.text&&(bT(r)&&rye(n,r,0,r.length-1),B6e(n,e.text)))}function poo(t,e){if(DZ(t,e))mF(t,e);else{var n=t.elm,r=q$n(n);bre(e),r!==null&&(bB(r,e.elm,Y$n(n)),rye(r,[t],0,0))}return e}var moo=0,goo=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=r5t(),this.configLayer=r5t(),this.storage=n,this._opts=r=An({},r),this.root=e,this._id="zr"+moo++,this._oldVNode=V3t(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=H$n("svg");vst(null,this._oldVNode),a.appendChild(o),e.appendChild(a)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",poo(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Z3t(e,pWe(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,o=pWe(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis;var s=[],l=this._bgVNode=voo(r,a,this._backgroundColor,o);l&&s.push(l);var c=e.compress?null:this._mainVNode=Ap("g","main",{},[]);this._paintList(n,o,c?c.children:s),c&&s.push(c);var u=Rn(bo(o.defs),function(f){return o.defs[f]});if(u.length&&s.push(Ap("defs","defs",{},u)),e.animation){var d=qao(o.cssNodes,o.cssAnims,{newline:!0});if(d){var h=Ap("style","stl",{},[],d);s.push(h)}}return V3t(r,a,s,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},fst(this.renderToVNode({animation:pa(e.cssAnimation,!0),emphasis:pa(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:pa(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,n,r){for(var a=e.length,o=[],s=0,l,c,u=0,d=0;d<a;d++){var h=e[d];if(!h.invisible){var f=h.__clipPaths,p=f&&f.length||0,m=c&&c.length||0,g=void 0;for(g=Math.max(p-1,m-1);g>=0&&!(f&&c&&f[g]===c[g]);g--);for(var v=m-1;v>g;v--)s--,l=o[s-1];for(var A=g+1;A<p;A++){var y={};coo(f[A],y,n);var S=Ap("g","clip-g-"+u++,y,[]);(l?l.children:r).push(S),o[s++]=S,l=S}c=f;var x=Z3t(h,n);x&&(l?l.children:r).push(x)}}},t.prototype.resize=function(e,n){var r=this._opts,a=this.root,o=this._viewport;if(e!=null&&(r.width=e),n!=null&&(r.height=n),a&&o&&(o.style.display="none",e=oj(a,0,r),n=oj(a,1,r),o.style.display=""),this._width!==e||this._height!==n){if(this._width=e,this._height=n,o){var s=o.style;s.width=e+"px",s.height=n+"px"}if(not(this._backgroundColor))this.refresh();else{var l=this._svgDom;l&&(l.setAttribute("width",e),l.setAttribute("height",n));var c=this._bgVNode&&this._bgVNode.elm;c&&(c.setAttribute("width",e),c.setAttribute("height",n))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var n=this.renderToString(),r="data:image/svg+xml;";return e?(n=FJa(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function r5t(t){return function(){}}function voo(t,e,n,r){var a;if(n&&n!=="none")if(a=Ap("rect","bg",{width:t,height:e,x:"0",y:"0"}),e6n(n))W$n({fill:n},a.attrs,"fill",r);else if(not(n))Q$n({style:{fill:n},dirty:jd,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",r);else{var o=ore(n),s=o.color,l=o.opacity;a.attrs.fill=s,l<1&&(a.attrs["fill-opacity"]=l)}return a}const Aoo=goo;function yoo(t){t.registerPainter("svg",Aoo)}function i5t(t,e,n){var r=Bw.createCanvas(),a=e.getWidth(),o=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=o*n,r}var boo=function(t){Qc(e,t);function e(n,r,a){var o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var s;a=a||O1e,typeof n=="string"?s=i5t(n,r,a):Ci(n)&&(s=n,n=s.id),o.id=n,o.dom=s;var l=s.style;return l&&(Jat(s),s.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),o.painter=r,o.dpr=a,o}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=i5t("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var s=[],l=this.maxRepaintRectCount,c=!1,u=new Da(0,0,0,0);function d(y){if(!(!y.isFinite()||y.isZero()))if(s.length===0){var S=new Da(0,0,0,0);S.copy(y),s.push(S)}else{for(var x=!1,w=1/0,_=0,C=0;C<s.length;++C){var R=s[C];if(R.intersect(y)){var k=new Da(0,0,0,0);k.copy(R),k.union(y),s[C]=k,x=!0;break}else if(c){u.copy(y),u.union(R);var P=y.width*y.height,N=R.width*R.height,L=u.width*u.height,I=L-P-N;I<w&&(w=I,_=C)}}if(c&&(s[_].union(y),x=!0),!x){var S=new Da(0,0,0,0);S.copy(y),s.push(S)}c||(c=s.length>=l)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var f=n[h];if(f){var p=f.shouldBePainted(a,o,!0,!0),m=f.__isRendered&&(f.__dirty&_y||!p)?f.getPrevPaintRect():null;m&&d(m);var g=p&&(f.__dirty&_y||!f.__isRendered)?f.getPaintRect():null;g&&d(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var f=r[h],p=f&&f.shouldBePainted(a,o,!0,!0);if(f&&(!p||!f.__zr)&&f.__isRendered){var m=f.getPrevPaintRect();m&&d(m)}}var v;do{v=!1;for(var h=0;h<s.length;){if(s[h].isZero()){s.splice(h,1);continue}for(var A=h+1;A<s.length;)s[h].intersect(s[A])?(v=!0,s[h].union(s[A]),s.splice(A,1)):A++;h++}}while(v);return this._paintRects=s,s},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,o=this.dom,s=o.style,l=this.domBack;s&&(s.width=n+"px",s.height=r+"px"),o.width=n*a,o.height=r*a,l&&(l.width=n*a,l.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var o=this.dom,s=this.ctx,l=o.width,c=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,d=this.lastFrameAlpha,h=this.dpr,f=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,l/h,c/h));var p=this.domBack;function m(g,v,A,y){if(s.clearRect(g,v,A,y),r&&r!=="transparent"){var S=void 0;if(Joe(r)){var x=r.global||r.__width===A&&r.__height===y;S=x&&r.__canvasGradient||iWe(s,r,{x:0,y:0,width:A,height:y}),r.__canvasGradient=S,r.__width=A,r.__height=y}else kDn(r)&&(r.scaleX=r.scaleX||h,r.scaleY=r.scaleY||h,S=aWe(s,r,{dirty:function(){f.setUnpainted(),f.painter.refresh()}}));s.save(),s.fillStyle=S||r,s.fillRect(g,v,A,y),s.restore()}u&&(s.save(),s.globalAlpha=d,s.drawImage(p,g,v,A,y),s.restore())}!a||u?m(0,0,l,c):a.length&&Ie(a,function(g){m(g.x*h,g.y*h,g.width*h,g.height*h)})},e}(SE);const D6e=boo;var a5t=1e5,Z4=314159,lhe=.01,xoo=.001;function Eoo(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Soo(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var woo=function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=An({},r||{}),this.dpr=r.devicePixelRatio||O1e,this._singleCanvas=o,this.root=e;var s=e.style;s&&(Jat(e),e.innerHTML=""),this.storage=n;var l=this._zlevelList;this._prevDisplayList=[];var c=this._layers;if(o){var d=e,h=d.width,f=d.height;r.width!=null&&(h=r.width),r.height!=null&&(f=r.height),this.dpr=r.devicePixelRatio||1,d.width=h*this.dpr,d.height=f*this.dpr,this._width=h,this._height=f;var p=new D6e(d,this,this.dpr);p.__builtin__=!0,p.initContext(),c[Z4]=p,p.zlevel=Z4,l.push(Z4),this._domRoot=e}else{this._width=oj(e,0,r),this._height=oj(e,1,r);var u=this._domRoot=Soo(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var o=0;o<a.length;o++){var s=a[o],l=this._layers[s];if(!l.__builtin__&&l.refresh){var c=o===0?this._backgroundColor:null;l.refresh(c)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,s=0;s<n;s++){var l=e[s];l.__inHover&&(r||(r=this._hoverlayer=this.getLayer(a5t)),o||(o=r.ctx,o.save()),rD(o,l,a,s===n-1))}o&&o.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(a5t)},t.prototype.paintOne=function(e,n){Qot(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,n,r),s=o.finished,l=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),l&&this._paintHoverList(e),s)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var c=this;yKe(function(){c._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Z4).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,o=[],s=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var c=this._zlevelList[l],u=this._layers[c];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var d=!0,h=!1,f=function(g){var v=o[g],A=v.ctx,y=s&&v.createRepaintRects(e,n,p._width,p._height),S=r?v.__startIndex:v.__drawIndex,x=!r&&v.incremental&&Date.now,w=x&&Date.now(),_=v.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,_,y);else if(S===v.__startIndex){var C=e[S];(!C.incremental||!C.notClear||r)&&v.clear(!1,_,y)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=v.__startIndex);var R,k=function(I){var b={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(R=S;R<v.__endIndex;R++){var T=e[R];if(T.__inHover&&(h=!0),a._doPaintEl(T,v,s,I,b,R===v.__endIndex-1),x){var M=Date.now()-w;if(M>15)break}}b.prevElClipPaths&&A.restore()};if(y)if(y.length===0)R=v.__endIndex;else for(var P=p.dpr,N=0;N<y.length;++N){var L=y[N];A.save(),A.beginPath(),A.rect(L.x*P,L.y*P,L.width*P,L.height*P),A.clip(),k(L),A.restore()}else A.save(),k(),A.restore();v.__drawIndex=R,v.__drawIndex<v.__endIndex&&(d=!1)},p=this,m=0;m<o.length;m++)f(m);return ls.wxa&&Ie(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:d,needsRefreshHover:h}},t.prototype._doPaintEl=function(e,n,r,a,o,s){var l=n.ctx;if(r){var c=e.getPaintRect();(!a||c&&c.intersect(a))&&(rD(l,e,o,s),e.setPrevPaintRect(c))}else rD(l,e,o,s)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Z4);var r=this._layers[e];return r||(r=new D6e("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?Ra(r,this._layerConfig[e],!0):this._layerConfig[e-lhe]&&Ra(r,this._layerConfig[e-lhe],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,o=a.length,s=this._domRoot,l=null,c=-1;if(!r[e]&&Eoo(n)){if(o>0&&e>a[0]){for(c=0;c<o-1&&!(a[c]<e&&a[c+1]>e);c++);l=r[a[c]]}if(a.splice(c+1,0,e),r[e]=n,!n.virtual)if(l){var u=l.dom;u.nextSibling?s.insertBefore(n.dom,u.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var o=r[a];e.call(n,this._layers[o],o)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var o=r[a],s=this._layers[o];s.__builtin__&&e.call(n,s,o)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var o=r[a],s=this._layers[o];s.__builtin__||e.call(n,s,o)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,f){h.__dirty=h.__used=!1});function n(h){o&&(o.__endIndex!==h&&(o.__dirty=!0),o.__endIndex=h)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0,l,c;for(c=0;c<e.length;c++){var a=e[c],u=a.zlevel,d=void 0;l!==u&&(l=u,s=0),a.incremental?(d=this.getLayer(u+xoo,this._needsManuallyCompositing),d.incremental=!0,s=1):d=this.getLayer(u+(s>0?lhe:0),this._needsManuallyCompositing),d.__builtin__||OTe("ZLevel "+u+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==c&&(d.__dirty=!0),d.__startIndex=c,d.incremental?d.__drawIndex=-1:d.__drawIndex=c,n(c),o=d),a.__dirty&_y&&!a.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(h,f){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ie(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?Ra(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===e||o===e+lhe){var s=this._layers[o];Ra(s,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(za(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,o=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=oj(o,0,a),n=oj(o,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var s in this._layers)this._layers.hasOwnProperty(s)&&this._layers[s].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Z4).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Z4].dom;var n=new D6e("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,o=n.dom.height;this.eachLayer(function(h){h.__builtin__?r.drawImage(h.dom,0,0,a,o):h.renderToCanvas&&(r.save(),h.renderToCanvas(r),r.restore())})}else for(var s={inHover:!1,viewWidth:this._width,viewHeight:this._height},l=this.storage.getDisplayList(!0),c=0,u=l.length;c<u;c++){var d=l[c];rD(r,d,s,c===u-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const _oo=woo;function Too(t){t.registerPainter("canvas",_oo)}var Coo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){return kC(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new ta,a=vh("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),s=this.getData().getVisual("symbolRotate"),l=o==="none"?"circle":o,c=n.itemHeight*.8,u=vh(l,(n.itemWidth-c)/2,(n.itemHeight-c)/2,c,c,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var d=n.iconRotate==="inherit"?s:n.iconRotate||0;return u.rotation=d*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),l.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Oc);const koo=Coo;function lz(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=oz(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var o=[],s=0;s<n.length;s++)o.push(oz(t,e,n[s]));return o.join(" ")}}function Z$n(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Tn(e))return e+"";for(var r=[],a=0;a<n.length;a++){var o=t.getDimensionIndex(n[a]);o>=0&&r.push(e[o])}return r.join(" ")}var Roo=function(t){nn(e,t);function e(n,r,a,o){var s=t.call(this)||this;return s.updateData(n,r,a,o),s}return e.prototype._createSymbol=function(n,r,a,o,s){this.removeAll();var l=vh(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=Moo,this._symbolType=n,this.add(l)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){NM(this.childAt(0))},e.prototype.downplay=function(){IM(this.childAt(0))},e.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},e.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},e.prototype.updateData=function(n,r,a,o){this.silent=!1;var s=n.getItemVisual(r,"symbol")||"circle",l=n.hostModel,c=e.getSymbolSize(n,r),u=s!==this._symbolType,d=o&&o.disableAnimation;if(u){var h=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,n,r,c,h)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:c[0]/2,scaleY:c[1]/2};d?f.attr(p):vs(f,p,l,r),Fw(f)}if(this._updateCommon(n,r,c,a,o),u){var f=this.childAt(0);if(!d){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Kc(f,p,l,r)}}d&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,a,o,s){var l=this.childAt(0),c=n.hostModel,u,d,h,f,p,m,g,v,A;if(o&&(u=o.emphasisItemStyle,d=o.blurItemStyle,h=o.selectItemStyle,f=o.focus,p=o.blurScope,g=o.labelStatesModels,v=o.hoverScale,A=o.cursorStyle,m=o.emphasisDisabled),!o||n.hasItemOption){var y=o&&o.itemModel?o.itemModel:n.getItemModel(r),S=y.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),d=y.getModel(["blur","itemStyle"]).getItemStyle(),f=S.get("focus"),p=S.get("blurScope"),m=S.get("disabled"),g=Cp(y),v=S.getShallow("scale"),A=y.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(x||0)*Math.PI/180||0);var w=_9(n.getItemVisual(r,"symbolOffset"),a);w&&(l.x=w[0],l.y=w[1]),A&&l.attr("cursor",A);var _=n.getItemVisual(r,"style"),C=_.fill;if(l instanceof fm){var R=l.style;l.useStyle(An({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},_))}else l.__isEmptyBrush?l.useStyle(An({},_)):l.useStyle(_),l.style.decal=null,l.setColor(C,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var k=n.getItemVisual(r,"liftZ"),P=this._z2;k!=null?P==null&&(this._z2=l.z2,l.z2+=k):P!=null&&(l.z2=P,this._z2=null);var N=s&&s.useNameLabel;hg(l,g,{labelFetcher:c,labelDataIndex:r,defaultText:L,inheritColor:C,defaultOpacity:_.opacity});function L(T){return N?n.getName(T):lz(n,T)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=l.ensureState("emphasis");I.style=u,l.ensureState("select").style=h,l.ensureState("blur").style=d;var b=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;I.scaleX=this._sizeX*b,I.scaleY=this._sizeY*b,this.setSymbolScale(1),bd(this,f,p,m)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,a){var o=this.childAt(0),s=ia(this).dataIndex,l=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var c=o.getTextContent();c&&RP(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){o.removeTextContent()}})}else o.removeTextContent();RP(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},e.getSymbolSize=function(n,r){return zV(n.getItemVisual(r,"symbolSize"))},e}(ta);function Moo(t,e){this.parent.drift(t,e)}const hse=Roo;function $6e(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function o5t(t){return t!=null&&!Ci(t)&&(t={isIgnore:t}),t||{}}function s5t(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Cp(e),cursorStyle:e.get("cursor")}}var Noo=function(){function t(e){this.group=new ta,this._SymbolCtor=e||hse}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=o5t(n);var r=this.group,a=e.hostModel,o=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=s5t(e),u={disableAnimation:l},d=n.getSymbolPoint||function(h){return e.getItemLayout(h)};o||r.removeAll(),e.diff(o).add(function(h){var f=d(h);if($6e(e,f,h,n)){var p=new s(e,h,c,u);p.setPosition(f),e.setItemGraphicEl(h,p),r.add(p)}}).update(function(h,f){var p=o.getItemGraphicEl(f),m=d(h);if(!$6e(e,m,h,n)){r.remove(p);return}var g=e.getItemVisual(h,"symbol")||"circle",v=p&&p.getSymbolType&&p.getSymbolType();if(!p||v&&v!==g)r.remove(p),p=new s(e,h,c,u),p.setPosition(m);else{p.updateData(e,h,c,u);var A={x:m[0],y:m[1]};l?p.attr(A):vs(p,A,a)}r.add(p),e.setItemGraphicEl(h,p)}).remove(function(h){var f=o.getItemGraphicEl(h);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=d,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var o=e._getSymbolPoint(a);r.setPosition(o),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=s5t(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=o5t(r);function a(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o<e.end;o++){var s=n.getItemLayout(o);if($6e(n,s,o,r)){var l=new this._SymbolCtor(n,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),n.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){xO(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},t}();const fse=Noo;function X$n(t,e,n){var r=t.getBaseAxis(),a=t.getOtherAxis(r),o=Ioo(a,n),s=r.dim,l=a.dim,c=e.mapDimension(l),u=e.mapDimension(s),d=l==="x"||l==="radius"?1:0,h=Rn(t.dimensions,function(m){return e.mapDimension(m)}),f=!1,p=e.getCalculationInfo("stackResultDimension");return OM(e,h[0])&&(f=!0,h[0]=p),OM(e,h[1])&&(f=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!f,valueDim:c,baseDim:u,baseDataOffset:d,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ioo(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:cs(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function e7n(t,e,n,r){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=t.valueStart);var o=t.baseDataOffset,s=[];return s[o]=n.get(t.baseDim,r),s[1-o]=a,e.dataToPoint(s)}function Poo(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Ooo(t,e,n,r,a,o,s,l){for(var c=Poo(t,e),u=[],d=[],h=[],f=[],p=[],m=[],g=[],v=X$n(a,e,s),A=t.getLayout("points")||[],y=e.getLayout("points")||[],S=0;S<c.length;S++){var x=c[S],w=!0,_=void 0,C=void 0;switch(x.cmd){case"=":_=x.idx*2,C=x.idx1*2;var R=A[_],k=A[_+1],P=y[C],N=y[C+1];(isNaN(R)||isNaN(k))&&(R=P,k=N),u.push(R,k),d.push(P,N),h.push(n[_],n[_+1]),f.push(r[C],r[C+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var L=x.idx,I=v.dataDimsForPoint,b=a.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);C=L*2,u.push(b[0],b[1]),d.push(y[C],y[C+1]);var T=e7n(v,a,e,L);h.push(T[0],T[1]),f.push(r[C],r[C+1]),g.push(e.getRawIndex(L));break;case"-":w=!1}w&&(p.push(x),m.push(m.length))}m.sort(function(K,Q){return g[K]-g[Q]});for(var M=u.length,D=s2(M),B=s2(M),j=s2(M),H=s2(M),U=[],S=0;S<m.length;S++){var $=m[S],z=S*2,Z=$*2;D[z]=u[Z],D[z+1]=u[Z+1],B[z]=d[Z],B[z+1]=d[Z+1],j[z]=h[Z],j[z+1]=h[Z+1],H[z]=f[Z],H[z+1]=f[Z+1],U[S]=p[$]}return{current:D,next:B,stackedOnCurrent:j,stackedOnNext:H,status:U}}var xI=Math.min,EI=Math.max;function BD(t,e){return isNaN(t)||isNaN(e)}function gWe(t,e,n,r,a,o,s,l,c){for(var u,d,h,f,p,m,g=n,v=0;v<r;v++){var A=e[g*2],y=e[g*2+1];if(g>=a||g<0)break;if(BD(A,y)){if(c){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](A,y),h=A,f=y;else{var S=A-u,x=y-d;if(S*S+x*x<.5){g+=o;continue}if(s>0){for(var w=g+o,_=e[w*2],C=e[w*2+1];_===A&&C===y&&v<r;)v++,w+=o,g+=o,_=e[w*2],C=e[w*2+1],A=e[g*2],y=e[g*2+1],S=A-u,x=y-d;var R=v+1;if(c)for(;BD(_,C)&&R<r;)R++,w+=o,_=e[w*2],C=e[w*2+1];var k=.5,P=0,N=0,L=void 0,I=void 0;if(R>=r||BD(_,C))p=A,m=y;else{P=_-u,N=C-d;var b=A-u,T=_-A,M=y-d,D=C-y,B=void 0,j=void 0;if(l==="x"){B=Math.abs(b),j=Math.abs(T);var H=P>0?1:-1;p=A-H*B*s,m=y,L=A+H*j*s,I=y}else if(l==="y"){B=Math.abs(M),j=Math.abs(D);var U=N>0?1:-1;p=A,m=y-U*B*s,L=A,I=y+U*j*s}else B=Math.sqrt(b*b+M*M),j=Math.sqrt(T*T+D*D),k=j/(j+B),p=A-P*s*(1-k),m=y-N*s*(1-k),L=A+P*s*k,I=y+N*s*k,L=xI(L,EI(_,A)),I=xI(I,EI(C,y)),L=EI(L,xI(_,A)),I=EI(I,xI(C,y)),P=L-A,N=I-y,p=A-P*B/j,m=y-N*B/j,p=xI(p,EI(u,A)),m=xI(m,EI(d,y)),p=EI(p,xI(u,A)),m=EI(m,xI(d,y)),P=A-p,N=y-m,L=A+P*j/B,I=y+N*j/B}t.bezierCurveTo(h,f,p,m,A,y),h=L,f=I}else t.lineTo(A,y)}u=A,d=y,g+=o}return v}var t7n=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Loo=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new t7n},e.prototype.buildPath=function(n,r){var a=r.points,o=0,s=a.length/2;if(r.connectNulls){for(;s>0&&BD(a[s*2-2],a[s*2-1]);s--);for(;o<s&&BD(a[o*2],a[o*2+1]);o++);}for(;o<s;)o+=gWe(n,a,o,s,s,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,o=a.data,s=iC.CMD,l,c,u=r==="x",d=[],h=0;h<o.length;){var f=o[h++],p=void 0,m=void 0,g=void 0,v=void 0,A=void 0,y=void 0,S=void 0;switch(f){case s.M:l=o[h++],c=o[h++];break;case s.L:if(p=o[h++],m=o[h++],S=u?(n-l)/(p-l):(n-c)/(m-c),S<=1&&S>=0){var x=u?(m-c)*S+c:(p-l)*S+l;return u?[n,x]:[x,n]}l=p,c=m;break;case s.C:p=o[h++],m=o[h++],g=o[h++],v=o[h++],A=o[h++],y=o[h++];var w=u?M1e(l,p,g,A,n,d):M1e(c,m,v,y,n,d);if(w>0)for(var _=0;_<w;_++){var C=d[_];if(C<=1&&C>=0){var x=u?ap(c,m,v,y,C):ap(l,p,g,A,C);return u?[n,x]:[x,n]}}l=A,c=y;break}}},e}(no),Boo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(t7n),n7n=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new Boo},e.prototype.buildPath=function(n,r){var a=r.points,o=r.stackedOnPoints,s=0,l=a.length/2,c=r.smoothMonotone;if(r.connectNulls){for(;l>0&&BD(a[l*2-2],a[l*2-1]);l--);for(;s<l&&BD(a[s*2],a[s*2+1]);s++);}for(;s<l;){var u=gWe(n,a,s,l,l,1,r.smooth,c,r.connectNulls);gWe(n,o,s+u-1,u,l,-1,r.stackedOnSmooth,c,r.connectNulls),s+=u+1,n.closePath()}},e}(no);function r7n(t,e,n,r,a){var o=t.getArea(),s=o.x,l=o.y,c=o.width,u=o.height,d=n.get(["lineStyle","width"])||2;s-=d/2,l-=d/2,c+=d,u+=d,c=Math.ceil(c),s!==Math.floor(s)&&(s=Math.floor(s),c++);var h=new Zo({shape:{x:s,y:l,width:c,height:u}});if(e){var f=t.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(h.shape.x+=c),h.shape.width=0):(m||(h.shape.y+=u),h.shape.height=0);var g=ai(a)?function(v){a(v,h)}:null;Kc(h,{shape:{width:c,height:u,x:s,y:l}},n,null,r,g)}return h}function i7n(t,e,n){var r=t.getArea(),a=fd(r.r0,1),o=fd(r.r,1),s=new q0({shape:{cx:fd(t.cx,1),cy:fd(t.cy,1),r0:a,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var l=t.getBaseAxis().dim==="angle";l?s.shape.endAngle=r.startAngle:s.shape.r=a,Kc(s,{shape:{endAngle:r.endAngle,r:o}},n)}return s}function pse(t,e,n,r,a){if(t){if(t.type==="polar")return i7n(t,e,n);if(t.type==="cartesian2d")return r7n(t,e,n,r,a)}else return null;return null}function T9(t,e){return t.type===e}function l5t(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function c5t(t){for(var e=1/0,n=1/0,r=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],l=t[o++];isNaN(s)||(e=Math.min(s,e),r=Math.max(s,r)),isNaN(l)||(n=Math.min(l,n),a=Math.max(l,a))}return[[e,n],[r,a]]}function u5t(t,e){var n=c5t(t),r=n[0],a=n[1],o=c5t(e),s=o[0],l=o[1];return Math.max(Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]),Math.abs(a[0]-l[0]),Math.abs(a[1]-l[1]))}function d5t(t){return cs(t)?t:t?.5:0}function Doo(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),a=s2(r*2),o=0;o<r;o++){var s=e7n(n,t,e,o);a[o*2]=s[0],a[o*2+1]=s[1]}return a}function SI(t,e,n,r){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,c=[],u=[],d=[],h=[];if(r){for(l=0;l<t.length;l+=2)!isNaN(t[l])&&!isNaN(t[l+1])&&h.push(t[l],t[l+1]);t=h}for(l=0;l<t.length-2;l+=2)switch(d[0]=t[l+2],d[1]=t[l+3],u[0]=t[l],u[1]=t[l+1],s.push(u[0],u[1]),n){case"end":c[o]=d[o],c[1-o]=u[1-o],s.push(c[0],c[1]);break;case"middle":var f=(u[o]+d[o])/2,p=[];c[o]=p[o]=f,c[1-o]=u[1-o],p[1-o]=d[1-o],s.push(c[0],c[1]),s.push(p[0],p[1]);break;default:c[o]=u[o],c[1-o]=d[1-o],s.push(c[0],c[1])}return s.push(t[l++],t[l++]),s}function $oo(t,e){var n=[],r=t.length,a,o;function s(d,h,f){var p=d.coord,m=(f-p)/(h.coord-p),g=tot(m,[d.color,h.color]);return{coord:f,color:g}}for(var l=0;l<r;l++){var c=t[l],u=c.coord;if(u<0)a=c;else if(u>e){o?n.push(s(o,c,e)):a&&n.push(s(a,c,0),s(a,c,e));break}else a&&(n.push(s(a,c,0)),a=null),n.push(c),o=c}return n}function Foo(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())&&e.type==="cartesian2d"){for(var a,o,s=r.length-1;s>=0;s--){var l=t.getDimensionInfo(r[s].dimension);if(a=l&&l.coordDim,a==="x"||a==="y"){o=r[s];break}}if(o){var c=e.getAxis(a),u=Rn(o.stops,function(S){return{coord:c.toGlobalCoord(c.dataToCoord(S.value)),color:S.color}}),d=u.length,h=o.outerColors.slice();d&&u[0].coord>u[d-1].coord&&(u.reverse(),h.reverse());var f=$oo(u,a==="x"?n.getWidth():n.getHeight()),p=f.length;if(!p&&d)return u[0].coord<0?h[1]?h[1]:u[d-1].color:h[0]?h[0]:u[0].color;var m=10,g=f[0].coord-m,v=f[p-1].coord+m,A=v-g;if(A<.001)return"transparent";Ie(f,function(S){S.offset=(S.coord-g)/A}),f.push({offset:p?f[p-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:h[0]||"transparent"});var y=new NV(0,0,0,0,f,!0);return y[a]=g,y[a+"2"]=v,y}}}function joo(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(a&&Hoo(o,e))){var s=e.mapDimension(o.dim),l={};return Ie(o.getViewLabels(),function(c){var u=o.scale.getRawOrdinalNumber(c.tickValue);l[u]=1}),function(c){return!l.hasOwnProperty(e.get(s,c))}}}}function Hoo(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),o=Math.max(1,Math.round(a/5)),s=0;s<a;s+=o)if(hse.getSymbolSize(e,s)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Uoo(t,e){return isNaN(t)||isNaN(e)}function zoo(t){for(var e=t.length/2;e>0&&Uoo(t[e*2-2],t[e*2-1]);e--);return e-1}function h5t(t,e){return[t[e*2],t[e*2+1]]}function Goo(t,e,n){for(var r=t.length/2,a=n==="x"?0:1,o,s,l=0,c=-1,u=0;u<r;u++)if(s=t[u*2+a],!(isNaN(s)||isNaN(t[u*2+1-a]))){if(u===0){o=s;continue}if(o<=e&&s>=e||o>=e&&s<=e){c=u;break}l=u,o=s}return{range:[l,c],t:(e-o)/(s-o)}}function a7n(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Q0.length;e++)if(t.get([Q0[e],"endLabel","show"]))return!0;return!1}function F6e(t,e,n,r){if(T9(e,"cartesian2d")){var a=r.getModel("endLabel"),o=a.get("valueAnimation"),s=r.getData(),l={lastFrameIndex:0},c=a7n(r)?function(p,m){t._endLabelOnDuring(p,m,s,l,o,a,e)}:null,u=e.getBaseAxis().isHorizontal(),d=r7n(e,n,r,function(){var p=t._endLabel;p&&n&&l.originalX!=null&&p.attr({x:l.originalX,y:l.originalY})},c);if(!r.get("clip",!0)){var h=d.shape,f=Math.max(h.width,h.height);u?(h.y-=f,h.height+=f*2):(h.x-=f,h.width+=f*2)}return c&&c(1,d),d}else return i7n(e,n,r)}function Voo(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,o=r?a?"right":"left":"center",s=r?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||s}}}var Koo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new ta,r=new fse;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},e.prototype.render=function(n,r,a){var o=this,s=n.coordinateSystem,l=this.group,c=n.getData(),u=n.getModel("lineStyle"),d=n.getModel("areaStyle"),h=c.getLayout("points")||[],f=s.type==="polar",p=this._coordSys,m=this._symbolDraw,g=this._polyline,v=this._polygon,A=this._lineGroup,y=!r.ssr&&n.get("animation"),S=!d.isEmpty(),x=d.get("origin"),w=X$n(s,c,x),_=S&&Doo(s,c,w),C=n.get("showSymbol"),R=n.get("connectNulls"),k=C&&!f&&joo(n,c,s),P=this._data;P&&P.eachItemGraphicEl(function(Q,ee){Q.__temp&&(l.remove(Q),P.setItemGraphicEl(ee,null))}),C||m.remove(),l.add(A);var N=f?!1:n.get("step"),L;s&&s.getArea&&n.get("clip",!0)&&(L=s.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=Foo(c,s,a)||c.getVisual("style")[c.getVisual("drawType")];if(!(g&&p.type===s.type&&N===this._step))C&&m.updateData(c,{isIgnore:k,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Q){return[h[Q*2],h[Q*2+1]]}}),y&&this._initSymbolLabelAnimation(c,s,L),N&&(h=SI(h,s,N,R),_&&(_=SI(_,s,N,R))),g=this._newPolyline(h),S?v=this._newPolygon(h,_):v&&(A.remove(v),v=this._polygon=null),f||this._initOrUpdateEndLabel(n,s,i8(I)),A.setClipPath(F6e(this,s,!0,n));else{S&&!v?v=this._newPolygon(h,_):v&&!S&&(A.remove(v),v=this._polygon=null),f||this._initOrUpdateEndLabel(n,s,i8(I));var b=A.getClipPath();if(b){var T=F6e(this,s,!1,n);Kc(b,{shape:T.shape},n)}else A.setClipPath(F6e(this,s,!0,n));C&&m.updateData(c,{isIgnore:k,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Q){return[h[Q*2],h[Q*2+1]]}}),(!l5t(this._stackedOnPoints,_)||!l5t(this._points,h))&&(y?this._doUpdateAnimation(c,_,s,a,N,x,R):(N&&(h=SI(h,s,N,R),_&&(_=SI(_,s,N,R))),g.setShape({points:h}),v&&v.setShape({points:h,stackedOnPoints:_})))}var M=n.getModel("emphasis"),D=M.get("focus"),B=M.get("blurScope"),j=M.get("disabled");if(g.useStyle(bi(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),dg(g,n,"lineStyle"),g.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var H=g.getState("emphasis").style;H.lineWidth=+g.style.lineWidth+1}ia(g).seriesIndex=n.seriesIndex,bd(g,D,B,j);var U=d5t(n.get("smooth")),$=n.get("smoothMonotone");if(g.setShape({smooth:U,smoothMonotone:$,connectNulls:R}),v){var z=c.getCalculationInfo("stackedOnSeries"),Z=0;v.useStyle(bi(d.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:c.getVisual("style").decal})),z&&(Z=d5t(z.get("smooth"))),v.setShape({smooth:U,stackedOnSmooth:Z,smoothMonotone:$,connectNulls:R}),dg(v,n,"areaStyle"),ia(v).seriesIndex=n.seriesIndex,bd(v,D,B,j)}var K=function(Q){o._changePolyState(Q)};c.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=c,this._coordSys=s,this._stackedOnPoints=_,this._points=h,this._step=N,this._valueOrigin=x,n.get("triggerLineEvent")&&(this.packEventData(n,g),v&&this.packEventData(n,v))},e.prototype.packEventData=function(n,r){ia(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,a,o){var s=n.getData(),l=t8(s,o);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),u=s.getItemGraphicEl(l);if(!u){var d=c[l*2],h=c[l*2+1];if(isNaN(d)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,h))return;var f=n.get("zlevel")||0,p=n.get("z")||0;u=new hse(s,l),u.x=d,u.y=h,u.setZ(f,p);var m=u.getSymbolPath().getTextContent();m&&(m.zlevel=f,m.z=p,m.z2=this._polyline.z2+1),u.__temp=!0,s.setItemGraphicEl(l,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ql.prototype.highlight.call(this,n,r,a,o)},e.prototype.downplay=function(n,r,a,o){var s=n.getData(),l=t8(s,o);if(this._changePolyState("normal"),l!=null&&l>=0){var c=s.getItemGraphicEl(l);c&&(c.__temp?(s.setItemGraphicEl(l,null),this.group.remove(c)):c.downplay())}else ql.prototype.downplay.call(this,n,r,a,o)},e.prototype._changePolyState=function(n){var r=this._polygon;D1e(this._polyline,n),r&&D1e(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Loo({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new n7n({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(n,r,a){var o,s,l=r.getBaseAxis(),c=l.inverse;r.type==="cartesian2d"?(o=l.isHorizontal(),s=!1):r.type==="polar"&&(o=l.dim==="angle",s=!0);var u=n.hostModel,d=u.get("animationDuration");ai(d)&&(d=d(null));var h=u.get("animationDelay")||0,f=ai(h)?h(null):h;n.eachItemGraphicEl(function(p,m){var g=p;if(g){var v=[p.x,p.y],A=void 0,y=void 0,S=void 0;if(a)if(s){var x=a,w=r.pointToCoord(v);o?(A=x.startAngle,y=x.endAngle,S=-w[1]/180*Math.PI):(A=x.r0,y=x.r,S=w[0])}else{var _=a;o?(A=_.x,y=_.x+_.width,S=p.x):(A=_.y+_.height,y=_.y,S=p.y)}var C=y===A?0:(S-A)/(y-A);c&&(C=1-C);var R=ai(h)?h(m):d*C+f,k=g.getSymbolPath(),P=k.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:R}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:R}),k.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var o=n.getModel("endLabel");if(a7n(n)){var s=n.getData(),l=this._polyline,c=s.getLayout("points");if(!c){l.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Jo({z2:200}),u.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var d=zoo(c);d>=0&&(hg(l,Cp(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:d,defaultText:function(h,f,p){return p!=null?Z$n(s,p):lz(s,h)},enableTextSetter:!0},Voo(o,r)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,a,o,s,l,c){var u=this._endLabel,d=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var h=a.getLayout("points"),f=a.hostModel,p=f.get("connectNulls"),m=l.get("precision"),g=l.get("distance")||0,v=c.getBaseAxis(),A=v.isHorizontal(),y=v.inverse,S=r.shape,x=y?A?S.x:S.y+S.height:A?S.x+S.width:S.y,w=(A?g:0)*(y?-1:1),_=(A?0:-g)*(y?-1:1),C=A?"x":"y",R=Goo(h,x,C),k=R.range,P=k[1]-k[0],N=void 0;if(P>=1){if(P>1&&!p){var L=h5t(h,k[0]);u.attr({x:L[0]+w,y:L[1]+_}),s&&(N=f.getRawValue(k[0]))}else{var L=d.getPointOn(x,C);L&&u.attr({x:L[0]+w,y:L[1]+_});var I=f.getRawValue(k[0]),b=f.getRawValue(k[1]);s&&(N=w6n(a,m,I,b,R.t))}o.lastFrameIndex=k[0]}else{var T=n===1||o.lastFrameIndex>0?k[0]:0,L=h5t(h,T);s&&(N=f.getRawValue(T)),u.attr({x:L[0]+w,y:L[1]+_})}if(s){var M=LV(u);typeof M.setLabelText=="function"&&M.setLabelText(N)}}},e.prototype._doUpdateAnimation=function(n,r,a,o,s,l,c){var u=this._polyline,d=this._polygon,h=n.hostModel,f=Ooo(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),p=f.current,m=f.stackedOnCurrent,g=f.next,v=f.stackedOnNext;if(s&&(p=SI(f.current,a,s,c),m=SI(f.stackedOnCurrent,a,s,c),g=SI(f.next,a,s,c),v=SI(f.stackedOnNext,a,s,c)),u5t(p,g)>3e3||d&&u5t(m,v)>3e3){u.stopAnimation(),u.setShape({points:g}),d&&(d.stopAnimation(),d.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=f.current,u.shape.points=p;var A={shape:{points:g}};f.current!==p&&(A.shape.__points=f.next),u.stopAnimation(),vs(u,A,h),d&&(d.setShape({points:p,stackedOnPoints:m}),d.stopAnimation(),vs(d,{shape:{stackedOnPoints:v}},h),u.shape.points!==d.shape.points&&(d.shape.points=u.shape.points));for(var y=[],S=f.status,x=0;x<S.length;x++){var w=S[x].cmd;if(w==="="){var _=n.getItemGraphicEl(S[x].idx1);_&&y.push({el:_,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){d&&d.dirtyShape();for(var C=u.shape.__points,R=0;R<y.length;R++){var k=y[R].el,P=y[R].ptIdx*2;k.x=C[P],k.y=C[P+1],k.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(o,s){o.__temp&&(r.remove(o),a.setItemGraphicEl(s,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(ql);const Woo=Koo;function mse(t,e){return{seriesType:t,plan:HV(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,o=n.pipelineContext,s=e||o.large;if(a){var l=Rn(a.dimensions,function(p){return r.mapDimension(p)}).slice(0,2),c=l.length,u=r.getCalculationInfo("stackResultDimension");OM(r,l[0])&&(l[0]=u),OM(r,l[1])&&(l[1]=u);var d=r.getStore(),h=r.getDimensionIndex(l[0]),f=r.getDimensionIndex(l[1]);return c&&{progress:function(p,m){for(var g=p.end-p.start,v=s&&s2(g*c),A=[],y=[],S=p.start,x=0;S<p.end;S++){var w=void 0;if(c===1){var _=d.get(h,S);w=a.dataToPoint(_,null,y)}else A[0]=d.get(h,S),A[1]=d.get(f,S),w=a.dataToPoint(A,null,y);s?(v[x++]=w[0],v[x++]=w[1]):m.setItemLayout(S,w.slice())}s&&m.setLayout("points",v)}}}}}}var Qoo={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,r=0;r<t.length;r++){var a=t[r],o=Math.abs(a);o>e&&(e=o,n=a)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},qoo=function(t){return Math.round(t.length/2)};function o7n(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),o=e.get("sampling"),s=e.coordinateSystem,l=a.count();if(l>10&&s.type==="cartesian2d"&&o){var c=s.getBaseAxis(),u=s.getOtherAxis(c),d=c.getExtent(),h=r.getDevicePixelRatio(),f=Math.abs(d[1]-d[0])*(h||1),p=Math.round(l/f);if(isFinite(p)&&p>1){o==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/p));var m=void 0;vr(o)?m=Qoo[o]:ai(o)&&(m=o),m&&e.setData(a.downSample(a.mapDimension(u.dim),1/p,m,qoo))}}}}}function Yoo(t){t.registerChartView(Woo),t.registerSeriesModel(koo),t.registerLayout(mse("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,o7n("line"))}var s7n=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return kC(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var o=this.coordinateSystem;if(o&&o.clampData){var s=o.clampData(n),l=o.dataToPoint(s);if(a)Ie(o.getAxes(),function(f,p){if(f.type==="category"&&r!=null){var m=f.getTicksCoords(),g=f.getTickModel().get("alignWithLabel"),v=s[p],A=r[p]==="x1"||r[p]==="y1";if(A&&!g&&(v+=1),m.length<2)return;if(m.length===2){l[p]=f.toGlobalCoord(f.getExtent()[A?1:0]);return}for(var y=void 0,S=void 0,x=1,w=0;w<m.length;w++){var _=m[w].coord,C=w===m.length-1?m[w-1].tickValue+x:m[w].tickValue;if(C===v){S=_;break}else if(C<v)y=_;else if(y!=null&&C>v){S=(_+y)/2;break}w===1&&(x=C-m[0].tickValue)}S==null&&(y?y&&(S=m[m.length-1].coord):S=m[0].coord),l[p]=f.toGlobalCoord(S)}});else{var c=this.getData(),u=c.getLayout("offset"),d=c.getLayout("size"),h=o.getBaseAxis().isHorizontal()?0:1;l[h]+=u+d/2}return l}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Oc);Oc.registerClass(s7n);const iye=s7n;var Joo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return kC(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=EO(iye.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(iye);const Zoo=Joo;var Xoo=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),eso=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new Xoo},e.prototype.buildPath=function(n,r){var a=r.cx,o=r.cy,s=Math.max(r.r0||0,0),l=Math.max(r.r,0),c=(l-s)*.5,u=s+c,d=r.startAngle,h=r.endAngle,f=r.clockwise,p=Math.PI*2,m=f?h-d<p:d-h<p;m||(d=h-(f?p:-p));var g=Math.cos(d),v=Math.sin(d),A=Math.cos(h),y=Math.sin(h);m?(n.moveTo(g*s+a,v*s+o),n.arc(g*u+a,v*u+o,c,-Math.PI+d,d,!f)):n.moveTo(g*l+a,v*l+o),n.arc(a,o,l,d,h,!f),n.arc(A*u+a,y*u+o,c,h-Math.PI*2,h-Math.PI,!f),s!==0&&n.arc(a,o,s,h,d,f)},e}(no);const aye=eso;function tso(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,o){var s=a.position;if(!s||s instanceof Array)return L1e(r,a,o);var l=t(s),c=a.distance!=null?a.distance:5,u=this.shape,d=u.cx,h=u.cy,f=u.r,p=u.r0,m=(f+p)/2,g=u.startAngle,v=u.endAngle,A=(g+v)/2,y=n?Math.abs(f-p)/2:0,S=Math.cos,x=Math.sin,w=d+f*S(g),_=h+f*x(g),C="left",R="top";switch(l){case"startArc":w=d+(p-c)*S(A),_=h+(p-c)*x(A),C="center",R="top";break;case"insideStartArc":w=d+(p+c)*S(A),_=h+(p+c)*x(A),C="center",R="bottom";break;case"startAngle":w=d+m*S(g)+che(g,c+y,!1),_=h+m*x(g)+uhe(g,c+y,!1),C="right",R="middle";break;case"insideStartAngle":w=d+m*S(g)+che(g,-c+y,!1),_=h+m*x(g)+uhe(g,-c+y,!1),C="left",R="middle";break;case"middle":w=d+m*S(A),_=h+m*x(A),C="center",R="middle";break;case"endArc":w=d+(f+c)*S(A),_=h+(f+c)*x(A),C="center",R="bottom";break;case"insideEndArc":w=d+(f-c)*S(A),_=h+(f-c)*x(A),C="center",R="top";break;case"endAngle":w=d+m*S(v)+che(v,c+y,!0),_=h+m*x(v)+uhe(v,c+y,!0),C="left",R="middle";break;case"insideEndAngle":w=d+m*S(v)+che(v,-c+y,!0),_=h+m*x(v)+uhe(v,-c+y,!0),C="right",R="middle";break;default:return L1e(r,a,o)}return r=r||{},r.x=w,r.y=_,r.align=C,r.verticalAlign=R,r}}function nso(t,e,n,r){if(cs(r)){t.setTextConfig({rotation:r});return}else if(Tn(e)){t.setTextConfig({rotation:0});return}var a=t.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(o+s)/2,c,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":c=l;break;case"startAngle":case"insideStartAngle":c=o;break;case"endAngle":case"insideEndAngle":c=s;break;default:t.setTextConfig({rotation:0});return}var d=Math.PI*1.5-c;u==="middle"&&d>Math.PI/2&&d<Math.PI*1.5&&(d-=Math.PI),t.setTextConfig({rotation:d})}function che(t,e,n){return e*Math.sin(t)*(n?-1:1)}function uhe(t,e,n){return e*Math.cos(t)*(n?1:-1)}function iD(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Tn(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Rn(r,function(o){return $w(o,a)})}}var j6e=Math.max,H6e=Math.min;function rso(t,e){var n=t.getArea&&t.getArea();if(T9(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var iso=function(t){nn(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,o){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var s=n.get("coordinateSystem");(s==="cartesian2d"||s==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,o))},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){xO(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,a,o){var s=this.group,l=n.getData(),c=this._data,u=n.coordinateSystem,d=u.getBaseAxis(),h;u.type==="cartesian2d"?h=d.isHorizontal():u.type==="polar"&&(h=d.dim==="angle");var f=n.isAnimationEnabled()?n:null,p=aso(n,u);p&&this._enableRealtimeSort(p,l,a);var m=n.get("clip",!0)||p,g=rso(u,l);s.removeClipPath();var v=n.get("roundCap",!0),A=n.get("showBackground",!0),y=n.getModel("backgroundStyle"),S=y.get("borderRadius")||0,x=[],w=this._backgroundEls,_=o&&o.isInitSort,C=o&&o.type==="changeAxisOrder";function R(N){var L=dhe[u.type](l,N),I=hso(u,h,L);return I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",S):I.setShape("cornerRadius",S),x[N]=I,I}l.diff(c).add(function(N){var L=l.getItemModel(N),I=dhe[u.type](l,N,L);if(A&&R(N),!(!l.hasValue(N)||!v5t[u.type](I))){var b=!1;m&&(b=f5t[u.type](g,I));var T=p5t[u.type](n,l,N,I,h,f,d.model,!1,v);p&&(T.forceLabelAnimation=!0),A5t(T,l,N,L,I,n,h,u.type==="polar"),_?T.attr({shape:I}):p?m5t(p,f,T,I,N,h,!1,!1):Kc(T,{shape:I},n,N),l.setItemGraphicEl(N,T),s.add(T),T.ignore=b}}).update(function(N,L){var I=l.getItemModel(N),b=dhe[u.type](l,N,I);if(A){var T=void 0;w.length===0?T=R(L):(T=w[L],T.useStyle(y.getItemStyle()),u.type==="cartesian2d"?T.setShape("r",S):T.setShape("cornerRadius",S),x[N]=T);var M=dhe[u.type](l,N),D=c7n(h,M,u);vs(T,{shape:D},f,N)}var B=c.getItemGraphicEl(L);if(!l.hasValue(N)||!v5t[u.type](b)){s.remove(B);return}var j=!1;if(m&&(j=f5t[u.type](g,b),j&&s.remove(B)),B?Fw(B):B=p5t[u.type](n,l,N,b,h,f,d.model,!!B,v),p&&(B.forceLabelAnimation=!0),C){var H=B.getTextContent();if(H){var U=LV(H);U.prevValue!=null&&(U.prevValue=U.value)}}else A5t(B,l,N,I,b,n,h,u.type==="polar");_?B.attr({shape:b}):p?m5t(p,f,B,b,N,h,!0,C):vs(B,{shape:b},n,N,null),l.setItemGraphicEl(N,B),B.ignore=j,s.add(B)}).remove(function(N){var L=c.getItemGraphicEl(N);L&&dre(L,n,N)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new ta);k.removeAll();for(var P=0;P<x.length;++P)k.add(x[P]);s.add(k),this._backgroundEls=x,this._data=l},e.prototype._renderLarge=function(n,r,a){this._clear(),b5t(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),b5t(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&pse(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var o=this;if(r.count()){var s=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var l=function(c){var u=r.getItemGraphicEl(c),d=u&&u.shape;return d&&Math.abs(s.isHorizontal()?d.height:d.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,l,s,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var o=[];return n.each(n.mapDimension(r.dim),function(s,l){var c=a(l);c=c??NaN,o.push({dataIndex:l,mappedValue:c,ordinalNumber:s})}),o.sort(function(s,l){return l.mappedValue-s.mappedValue}),{ordinalNumbers:Rn(o,function(s){return s.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var o=a.scale,s=n.mapDimension(a.dim),l=Number.MAX_VALUE,c=0,u=o.getOrdinalMeta().categories.length;c<u;++c){var d=n.rawIndexOf(s,o.getRawOrdinalNumber(c)),h=d<0?Number.MIN_VALUE:r(n.indexOfRawIndex(d));if(h>l)return!0;l=h}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,o=a.getExtent(),s=Math.max(0,o[0]),l=Math.min(o[1],a.getOrdinalMeta().categories.length-1);s<=l;++s)if(n.ordinalNumbers[s]!==a.getRawOrdinalNumber(s))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,o){if(this._isOrderChangedWithinSameData(n,r,a)){var s=this._dataSort(n,a,r);this._isOrderDifferentInView(s,a)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:s}))}},e.prototype._dispatchInitSort=function(n,r,a){var o=r.baseAxis,s=this._dataSort(n,o,function(l){return n.get(n.mapDimension(r.otherAxis.dim),l)});a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:s})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(o){dre(o,n,ia(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ql),f5t={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,o=t.y+t.height,s=j6e(e.x,t.x),l=H6e(e.x+e.width,a),c=j6e(e.y,t.y),u=H6e(e.y+e.height,o),d=l<s,h=u<c;return e.x=d&&s>a?l:s,e.y=h&&c>o?u:c,e.width=d?0:l-s,e.height=h?0:u-c,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),d||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var a=H6e(e.r,t.r),o=j6e(e.r0,t.r0);e.r=a,e.r0=o;var s=a-o<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return s}},p5t={cartesian2d:function(t,e,n,r,a,o,s,l,c){var u=new Zo({shape:An({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var d=u.shape,h=a?"height":"width";d[h]=0}return u},polar:function(t,e,n,r,a,o,s,l,c){var u=!a&&c?aye:q0,d=new u({shape:r,z2:1});d.name="item";var h=l7n(a);if(d.calculateTextPosition=tso(h,{isRoundCap:u===aye}),o){var f=d.shape,p=a?"r":"endAngle",m={};f[p]=a?r.r0:r.startAngle,m[p]=r[p],(l?vs:Kc)(d,{shape:m},o)}return d}};function aso(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function m5t(t,e,n,r,a,o,s,l){var c,u;o?(u={x:r.x,width:r.width},c={y:r.y,height:r.height}):(u={y:r.y,height:r.height},c={x:r.x,width:r.width}),l||(s?vs:Kc)(n,{shape:c},e,a,null);var d=e?t.baseAxis.model:null;(s?vs:Kc)(n,{shape:u},d,a)}function g5t(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var oso=["x","y","width","height"],sso=["cx","cy","r","startAngle","endAngle"],v5t={cartesian2d:function(t){return!g5t(t,oso)},polar:function(t){return!g5t(t,sso)}},dhe={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?cso(n,r):0,o=r.width>0?1:-1,s=r.height>0?1:-1;return{x:r.x+o*a/2,y:r.y+s*a/2,width:r.width-o*a,height:r.height-s*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function lso(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function l7n(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function A5t(t,e,n,r,a,o,s,l){var c=e.getItemVisual(n,"style");if(l){if(!o.get("roundCap")){var d=t.shape,h=iD(r.getModel("itemStyle"),d,!0);An(d,h),t.setShape(d)}}else{var u=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(c);var f=r.getShallow("cursor");f&&t.attr("cursor",f);var p=l?s?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":s?a.height>=0?"bottom":"top":a.width>=0?"right":"left",m=Cp(r);hg(t,m,{labelFetcher:o,labelDataIndex:n,defaultText:lz(o.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(l&&g){var v=r.get(["label","position"]);t.textConfig.inside=v==="middle"?!0:null,nso(t,v==="outside"?p:v,l7n(s),r.get(["label","rotate"]))}x8n(g,m,o.getRawValue(n),function(y){return Z$n(e,y)});var A=r.getModel(["emphasis"]);bd(t,A.get("focus"),A.get("blurScope"),A.get("disabled")),dg(t,r),lso(a)&&(t.style.fill="none",t.style.stroke="none",Ie(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function cso(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,o)}var uso=function(){function t(){}return t}(),y5t=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new uso},e.prototype.buildPath=function(n,r){for(var a=r.points,o=this.baseDimIdx,s=1-this.baseDimIdx,l=[],c=[],u=this.barWidth,d=0;d<a.length;d+=3)c[o]=u,c[s]=a[d+2],l[o]=a[d+o],l[s]=a[d+s],n.rect(l[0],l[1],c[0],c[1])},e}(no);function b5t(t,e,n,r){var a=t.getData(),o=a.getLayout("valueAxisHorizontal")?1:0,s=a.getLayout("largeDataIndices"),l=a.getLayout("size"),c=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var d=new y5t({shape:{points:u},incremental:!!r,silent:!0,z2:0});d.baseDimIdx=o,d.largeDataIndices=s,d.barWidth=l,d.useStyle(c.getItemStyle()),e.add(d),n&&n.push(d)}var h=new y5t({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=s,h.barWidth=l,e.add(h),h.useStyle(a.getVisual("style")),ia(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",x5t),h.on("mousemove",x5t)),n&&n.push(h)}var x5t=c2e(function(t){var e=this,n=dso(e,t.offsetX,t.offsetY);ia(e).dataIndex=n>=0?n:null},30,!1);function dso(t,e,n){for(var r=t.baseDimIdx,a=1-r,o=t.shape.points,s=t.largeDataIndices,l=[],c=[],u=t.barWidth,d=0,h=o.length/3;d<h;d++){var f=d*3;if(c[r]=u,c[a]=o[f+2],l[r]=o[f+r],l[a]=o[f+a],c[a]<0&&(l[a]+=c[a],c[a]=-c[a]),e>=l[0]&&e<=l[0]+c[0]&&n>=l[1]&&n<=l[1]+c[1])return s[d]}return-1}function c7n(t,e,n){if(T9(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),o=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:o.r0,r:t?a.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:Math.PI*2}}}function hso(t,e,n){var r=t.type==="polar"?q0:Zo;return new r({shape:c7n(e,n,t),silent:!0,z2:0})}const fso=iso;function pso(t){t.registerChartView(fso),t.registerSeriesModel(Zoo),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,fa(h$n,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,f$n("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,o7n("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var E5t=Math.PI*2,hhe=Math.PI/180;function u7n(t,e){return nf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function d7n(t,e){var n=u7n(t,e),r=t.get("center"),a=t.get("radius");Tn(a)||(a=[0,a]);var o=lr(n.width,e.getWidth()),s=lr(n.height,e.getHeight()),l=Math.min(o,s),c=lr(a[0],l/2),u=lr(a[1],l/2),d,h,f=t.coordinateSystem;if(f){var p=f.dataToPoint(r);d=p[0]||0,h=p[1]||0}else Tn(r)||(r=[r,r]),d=lr(r[0],o)+n.x,h=lr(r[1],s)+n.y;return{cx:d,cy:h,r0:c,r:u}}function mso(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),o=a.mapDimension("value"),s=u7n(r,n),l=d7n(r,n),c=l.cx,u=l.cy,d=l.r,h=l.r0,f=-r.get("startAngle")*hhe,p=r.get("endAngle"),m=r.get("padAngle")*hhe;p=p==="auto"?f-E5t:-p*hhe;var g=r.get("minAngle")*hhe,v=g+m,A=0;a.each(o,function(M){!isNaN(M)&&A++});var y=a.getSum(o),S=Math.PI/(y||A)*2,x=r.get("clockwise"),w=r.get("roseType"),_=r.get("stillShowZeroSum"),C=a.getDataExtent(o);C[0]=0;var R=x?1:-1,k=[f,p],P=R*m/2;fot(k,!x),f=k[0],p=k[1];var N=Math.abs(p-f),L=N,I=0,b=f;if(a.setLayout({viewRect:s,r:d}),a.each(o,function(M,D){var B;if(isNaN(M)){a.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:c,cy:u,r0:h,r:w?NaN:d});return}w!=="area"?B=y===0&&_?S:M*S:B=N/A,B<v?(B=v,L-=v):I+=M;var j=b+R*B,H=0,U=0;m>B?(H=b+R*B/2,U=H):(H=b+P,U=j-P),a.setItemLayout(D,{angle:B,startAngle:H,endAngle:U,clockwise:x,cx:c,cy:u,r0:h,r:w?ol(M,C,[h,d]):d}),b=j}),L<E5t&&A)if(L<=.001){var T=N/A;a.each(o,function(M,D){if(!isNaN(M)){var B=a.getItemLayout(D);B.angle=T;var j=0,H=0;T<m?(j=f+R*(D+1/2)*T,H=j):(j=f+R*D*T+P,H=f+R*(D+1)*T-P),B.startAngle=j,B.endAngle=H}})}else S=L/I,b=f,a.each(o,function(M,D){if(!isNaN(M)){var B=a.getItemLayout(D),j=B.angle===v?v:M*S,H=0,U=0;j<m?(H=b+R*j/2,U=H):(H=b+P,U=b+R*j-P),B.startAngle=H,B.endAngle=U,b+=R*j}})})}function gse(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=e.getData();a.filterSelf(function(o){for(var s=a.getName(o),l=0;l<r.length;l++)if(!r[l].isSelected(s))return!1;return!0})}}}}var gso=Math.PI/180;function S5t(t,e,n,r,a,o,s,l,c,u){if(t.length<2)return;function d(g){for(var v=g.rB,A=v*v,y=0;y<g.list.length;y++){var S=g.list[y],x=Math.abs(S.label.y-n),w=r+S.len,_=w*w,C=Math.sqrt((1-Math.abs(x*x/A))*_),R=e+(C+S.len2)*a,k=R-S.label.x,P=S.targetTextWidth-k*a;h7n(S,P,!0),S.label.x=R}}function h(g){for(var v={list:[],maxY:0},A={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var S=g[y],x=S.label.y>n?A:v,w=Math.abs(S.label.y-n);if(w>=x.maxY){var _=S.label.x-e-S.len2*a,C=r+S.len,R=Math.abs(_)<C?Math.sqrt(w*w/(1-_*_/C/C)):C;x.rB=R,x.maxY=w}x.list.push(S)}d(v),d(A)}for(var f=t.length,p=0;p<f;p++)if(t[p].position==="outer"&&t[p].labelAlignTo==="labelLine"){var m=t[p].label.x-u;t[p].linePoints[1][0]+=m,t[p].label.x=u}L$n(t,c,c+s)&&h(t)}function vso(t,e,n,r,a,o,s,l){for(var c=[],u=[],d=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<t.length;f++){var p=t[f].label;U6e(t[f])||(p.x<e?(d=Math.min(d,p.x),c.push(t[f])):(h=Math.max(h,p.x),u.push(t[f])))}for(var f=0;f<t.length;f++){var m=t[f];if(!U6e(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,g=m.linePoints,v=void 0;m.labelAlignTo==="edge"?p.x<e?v=g[2][0]-m.labelDistance-s-m.edgeDistance:v=s+a-m.edgeDistance-g[2][0]-m.labelDistance:m.labelAlignTo==="labelLine"?p.x<e?v=d-s-m.bleedMargin:v=s+a-h-m.bleedMargin:p.x<e?v=p.x-s-m.bleedMargin:v=s+a-p.x-m.bleedMargin,m.targetTextWidth=v,h7n(m,v)}}S5t(u,e,n,r,1,a,o,s,l,h),S5t(c,e,n,r,-1,a,o,s,l,d);for(var f=0;f<t.length;f++){var m=t[f];if(!U6e(m)&&m.linePoints){var p=m.label,g=m.linePoints,A=m.labelAlignTo==="edge",y=p.style.padding,S=y?y[1]+y[3]:0,x=p.style.backgroundColor?0:S,w=m.rect.width+x,_=g[1][0]-g[2][0];A?p.x<e?g[2][0]=s+m.edgeDistance+w+m.labelDistance:g[2][0]=s+a-m.edgeDistance-w-m.labelDistance:(p.x<e?g[2][0]=p.x+m.labelDistance:g[2][0]=p.x-m.labelDistance,g[1][0]=g[2][0]+_),g[1][1]=g[2][1]=p.y}}}function h7n(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,a=r.style,o=t.rect,s=a.backgroundColor,l=a.padding,c=l?l[1]+l[3]:0,u=a.overflow,d=o.width+(s?0:c);if(e<d||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-c);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",s)}else{var p=e-c,m=e<d?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",m)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function U6e(t){return t.position==="center"}function Aso(t){var e=t.getData(),n=[],r,a,o=!1,s=(t.get("minShowLabelAngle")||0)*gso,l=e.getLayout("viewRect"),c=e.getLayout("r"),u=l.width,d=l.x,h=l.y,f=l.height;function p(_){_.ignore=!0}function m(_){if(!_.ignore)return!0;for(var C in _.states)if(_.states[C].ignore===!1)return!0;return!1}e.each(function(_){var C=e.getItemGraphicEl(_),R=C.shape,k=C.getTextContent(),P=C.getTextGuideLine(),N=e.getItemModel(_),L=N.getModel("label"),I=L.get("position")||N.get(["emphasis","label","position"]),b=L.get("distanceToLabelLine"),T=L.get("alignTo"),M=lr(L.get("edgeDistance"),u),D=L.get("bleedMargin"),B=N.getModel("labelLine"),j=B.get("length");j=lr(j,u);var H=B.get("length2");if(H=lr(H,u),Math.abs(R.endAngle-R.startAngle)<s){Ie(k.states,p),k.ignore=!0,P&&(Ie(P.states,p),P.ignore=!0);return}if(m(k)){var U=(R.startAngle+R.endAngle)/2,$=Math.cos(U),z=Math.sin(U),Z,K,Q,ee;r=R.cx,a=R.cy;var X=I==="inside"||I==="inner";if(I==="center")Z=R.cx,K=R.cy,ee="center";else{var te=(X?(R.r+R.r0)/2*$:R.r*$)+r,J=(X?(R.r+R.r0)/2*z:R.r*z)+a;if(Z=te+$*3,K=J+z*3,!X){var ne=te+$*(j+c-R.r),ie=J+z*(j+c-R.r),he=ne+($<0?-1:1)*H,de=ie;T==="edge"?Z=$<0?d+M:d+u-M:Z=he+($<0?-b:b),K=de,Q=[[te,J],[ne,ie],[he,de]]}ee=X?"center":T==="edge"?$>0?"right":"left":$>0?"left":"right"}var ce=Math.PI,Ee=0,Me=L.get("rotate");if(cs(Me))Ee=Me*(ce/180);else if(I==="center")Ee=0;else if(Me==="radial"||Me===!0){var Be=$<0?-U+ce:-U;Ee=Be}else if(Me==="tangential"&&I!=="outside"&&I!=="outer"){var ze=Math.atan2($,z);ze<0&&(ze=ce*2+ze);var je=z>0;je&&(ze=ce+ze),Ee=ze-ce}if(o=!!Ee,k.x=Z,k.y=K,k.rotation=Ee,k.setStyle({verticalAlign:"middle"}),X){k.setStyle({align:ee});var le=k.states.select;le&&(le.x+=k.x,le.y+=k.y)}else{var ye=k.getBoundingRect().clone();ye.applyTransform(k.getComputedTransform());var me=(k.style.margin||0)+2.1;ye.y-=me/2,ye.height+=me,n.push({label:k,labelLine:P,position:I,len:j,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new Oa($,z),linePoints:Q,textAlign:ee,labelDistance:b,labelAlignTo:T,edgeDistance:M,bleedMargin:D,rect:ye,unconstrainedWidth:ye.width,labelStyleWidth:k.style.width})}C.setTextConfig({inside:X})}}),!o&&t.get("avoidLabelOverlap")&&vso(n,r,a,c,u,f,d,h);for(var g=0;g<n.length;g++){var v=n[g],A=v.label,y=v.labelLine,S=isNaN(A.x)||isNaN(A.y);if(A){A.setStyle({align:v.textAlign}),S&&(Ie(A.states,p),A.ignore=!0);var x=A.states.select;x&&(x.x+=A.x,x.y+=A.y)}if(y){var w=v.linePoints;S||!w?(Ie(y.states,p),y.ignore=!0):(I$n(w,v.minTurnAngle),Rao(w,v.surfaceNormal,v.maxSurfaceAngle),y.setShape({points:w}),A.__hostTarget.textGuideLineConfig={anchor:new Oa(w[0][0],w[0][1])})}}}var yso=function(t){nn(e,t);function e(n,r,a){var o=t.call(this)||this;o.z2=2;var s=new Jo;return o.setTextContent(s),o.updateData(n,r,a,!0),o}return e.prototype.updateData=function(n,r,a,o){var s=this,l=n.hostModel,c=n.getItemModel(r),u=c.getModel("emphasis"),d=n.getItemLayout(r),h=An(iD(c.getModel("itemStyle"),d,!0),d);if(isNaN(h.startAngle)){s.setShape(h);return}if(o){s.setShape(h);var f=l.getShallow("animationType");l.ecModel.ssr?(Kc(s,{scaleX:0,scaleY:0},l,{dataIndex:r,isFrom:!0}),s.originX=h.cx,s.originY=h.cy):f==="scale"?(s.shape.r=d.r0,Kc(s,{shape:{r:d.r}},l,r)):a!=null?(s.setShape({startAngle:a,endAngle:a}),Kc(s,{shape:{startAngle:d.startAngle,endAngle:d.endAngle}},l,r)):(s.shape.endAngle=d.startAngle,vs(s,{shape:{endAngle:d.endAngle}},l,r))}else Fw(s),vs(s,{shape:h},l,r);s.useStyle(n.getItemVisual(r,"style")),dg(s,c);var p=(d.startAngle+d.endAngle)/2,m=l.get("selectedOffset"),g=Math.cos(p)*m,v=Math.sin(p)*m,A=c.getShallow("cursor");A&&s.attr("cursor",A),this._updateLabel(l,n,r),s.ensureState("emphasis").shape=An({r:d.r+(u.get("scale")&&u.get("scaleSize")||0)},iD(u.getModel("itemStyle"),d)),An(s.ensureState("select"),{x:g,y:v,shape:iD(c.getModel(["select","itemStyle"]),d)}),An(s.ensureState("blur"),{shape:iD(c.getModel(["blur","itemStyle"]),d)});var y=s.getTextGuideLine(),S=s.getTextContent();y&&An(y.ensureState("select"),{x:g,y:v}),An(S.ensureState("select"),{x:g,y:v}),bd(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r,a){var o=this,s=r.getItemModel(a),l=s.getModel("labelLine"),c=r.getItemVisual(a,"style"),u=c&&c.fill,d=c&&c.opacity;hg(o,Cp(s),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:d,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var h=o.getTextContent();o.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var f=n.get(["label","position"]);if(f!=="outside"&&f!=="outer")o.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new aA,this.setTextGuideLine(p)),dst(this,hst(s),{stroke:u,opacity:Aw(l.get(["lineStyle","opacity"]),d,1)})}},e}(q0),bso=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a,o){var s=n.getData(),l=this._data,c=this.group,u;if(!l&&s.count()>0){for(var d=s.getItemLayout(0),h=1;isNaN(d&&d.startAngle)&&h<s.count();++h)d=s.getItemLayout(h);d&&(u=d.startAngle)}if(this._emptyCircleSector&&c.remove(this._emptyCircleSector),s.count()===0&&n.get("showEmptyCircle")){var f=new q0({shape:d7n(n,a)});f.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,c.add(f)}s.diff(l).add(function(p){var m=new yso(s,p,u);s.setItemGraphicEl(p,m),c.add(m)}).update(function(p,m){var g=l.getItemGraphicEl(m);g.updateData(s,p,u),g.off("click"),c.add(g),s.setItemGraphicEl(p,g)}).remove(function(p){var m=l.getItemGraphicEl(p);dre(m,n,p)}).execute(),Aso(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=s)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var a=r.getData(),o=a.getItemLayout(0);if(o){var s=n[0]-o.cx,l=n[1]-o.cy,c=Math.sqrt(s*s+l*l);return c<=o.r&&c>=o.r0}},e.type="pie",e}(ql);const xso=bso;function KV(t,e,n){e=Tn(e)&&{coordDimensions:e}||An({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=GV(r,e).dimensions,o=new bv(a,t);return o.initData(r,n),o}var Eso=function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t}();const vse=Eso;var Sso=ds(),wso=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vse(Cr(this.getData,this),Cr(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return KV(this,{coordDimensions:["value"],encodeDefaulter:fa(Bot,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=Sso(r),o=a.seats;if(!o){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),o=a.seats=m6n(s,r.hostModel.get("percentPrecision"))}var l=t.prototype.getDataParams.call(this,n);return l.percent=o[n]||0,l.$vars.push("percent"),l},e.prototype._defaultLabelLine=function(n){e8(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Oc);const _so=wso;function Tso(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(a){var o=r.mapDimension("value"),s=r.get(o,a);return!(cs(s)&&!isNaN(s)&&s<0)})}}}function Cso(t){t.registerChartView(xso),t.registerSeriesModel(_so),T9n("pie",t.registerAction),t.registerLayout(fa(mso,"pie")),t.registerProcessor(gse("pie")),t.registerProcessor(Tso("pie"))}var kso=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return kC(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Oc);const Rso=kso;var f7n=4,Mso=function(){function t(){}return t}(),Nso=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new Mso},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var a=r.points,o=r.size,s=this.symbolProxy,l=s.shape,c=n.getContext?n.getContext():n,u=c&&o[0]<f7n,d=this.softClipShape,h;if(u){this._ctx=c;return}for(this._ctx=null,h=this._off;h<a.length;){var f=a[h++],p=a[h++];isNaN(f)||isNaN(p)||d&&!d.contain(f,p)||(l.x=f-o[0]/2,l.y=p-o[1]/2,l.width=o[0],l.height=o[1],s.buildPath(n,l,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,o=this._ctx,s=this.softClipShape,l;if(o){for(l=this._off;l<r.length;){var c=r[l++],u=r[l++];isNaN(c)||isNaN(u)||s&&!s.contain(c,u)||o.fillRect(c-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=l,this.notClear=!0)}},e.prototype.findDataIndex=function(n,r){for(var a=this.shape,o=a.points,s=a.size,l=Math.max(s[0],4),c=Math.max(s[1],4),u=o.length/2-1;u>=0;u--){var d=u*2,h=o[d]-l/2,f=o[d+1]-c/2;if(n>=h&&r>=f&&n<=h+l&&r<=f+c)return u}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=a[0],r=a[1],o.contain(n,r)){var s=this.hoverDataIdx=this.findDataIndex(n,r);return s>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,o=r.size,s=o[0],l=o[1],c=1/0,u=1/0,d=-1/0,h=-1/0,f=0;f<a.length;){var p=a[f++],m=a[f++];c=Math.min(p,c),d=Math.max(p,d),u=Math.min(m,u),h=Math.max(m,h)}n=this._rect=new Da(c-s/2,u-l/2,d-c+s,h-u+l)}return n},e}(no),Iso=function(){function t(){this.group=new ta}return t.prototype.updateData=function(e,n){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,n)},t.prototype.updateLayout=function(e){var n=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,o=r.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}r.setShape("points",n),r.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,n,r){var a=this._newAdded[0],o=n.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,c=new Float32Array(l+o.length);c.set(s),c.set(o,l),a.endIndex=e.end,a.setShape({points:c})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:o}),this._setCommon(u,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new Nso({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,n,r){var a=n.hostModel;r=r||{};var o=n.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=r.clipShape||null,e.symbolProxy=vh(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var s=e.shape.size[0]<f7n;e.useStyle(a.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var l=n.getVisual("style"),c=l&&l.fill;c&&e.setColor(c);var u=ia(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(d){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const Pso=Iso;var Oso=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=n.getData(),s=this._updateSymbolDraw(o,n);s.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,a){var o=n.getData(),s=this._updateSymbolDraw(o,n);s.incrementalPrepareUpdate(o),this._finished=!1},e.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,a){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var s=mse("").reset(n,r,a);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,o=r.pipelineContext,s=o.large;return(!a||s!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=s?new Pso:new fse,this._isLargeDraw=s,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ql);const Lso=Oso;var Bso=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Fo);const Dso=Bso;var vWe=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qh).models[0]},e.type="cartesian2dAxis",e}(Fo);Vd(vWe,VV);var p7n={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},$so=Ra({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},p7n),Ast=Ra({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},p7n),Fso=Ra({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ast),jso=bi({logBase:10},Ast);const m7n={category:$so,value:Ast,time:Fso,log:jso};var Hso={value:1,category:1,time:1,log:1};function cz(t,e,n,r){Ie(Hso,function(a,o){var s=Ra(Ra({},m7n[o],!0),r,!0),l=function(c){nn(u,c);function u(){var d=c!==null&&c.apply(this,arguments)||this;return d.type=e+"Axis."+o,d}return u.prototype.mergeDefaultAndTheme=function(d,h){var f=fre(this),p=f?DV(d):{},m=h.getTheme();Ra(d,m.get(o+"Axis")),Ra(d,this.getDefaultOption()),d.type=w5t(d),f&&MP(d,p,f)},u.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=cWe.createByAxisModel(this))},u.prototype.getCategories=function(d){var h=this.option;if(h.type==="category")return d?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+o,u.defaultOption=s,u}(n);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(e+"Axis",w5t)}function w5t(t){return t.type||(t.data?"category":"value")}var Uso=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return Rn(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ll(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}();const zso=Uso;var AWe=["x","y"];function _5t(t){return t.type==="interval"||t.type==="time"}var Gso=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=AWe,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!_5t(n)||!_5t(r))){var a=n.getExtent(),o=r.getExtent(),s=this.dataToPoint([a[0],o[0]]),l=this.dataToPoint([a[1],o[1]]),c=a[1]-a[0],u=o[1]-o[0];if(!(!c||!u)){var d=(l[0]-s[0])/c,h=(l[1]-s[1])/u,f=s[0]-a[0]*d,p=s[1]-o[0]*h,m=this._transform=[d,0,0,h,f,p];this._invTransform=x9([],m)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),o=this.dataToPoint(r),s=this.getArea(),l=new Da(a[0],a[1],o[0]-a[0],o[1]-a[1]);return s.intersect(l)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var o=n[0],s=n[1];if(this._transform&&o!=null&&isFinite(o)&&s!=null&&isFinite(s))return om(a,n,this._transform);var l=this.getAxis("x"),c=this.getAxis("y");return a[0]=l.toGlobalCoord(l.dataToCoord(o,r)),a[1]=c.toGlobalCoord(c.dataToCoord(s,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,s=a.getExtent(),l=o.getExtent(),c=a.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r[1]=Math.min(Math.max(Math.min(l[0],l[1]),u),Math.max(l[0],l[1])),r},e.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return om(a,n,this._invTransform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(n[0]),r),a[1]=s.coordToData(s.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,s=Math.min(a[0],a[1])-n,l=Math.max(r[0],r[1])-o+n,c=Math.max(a[0],a[1])-s+n;return new Da(o,s,l,c)},e}(zso),Vso=function(t){nn(e,t);function e(n,r,a,o,s){var l=t.call(this,n,r,a)||this;return l.index=0,l.type=o||"value",l.position=s||"bottom",l}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(CE);const Kso=Vso;function yWe(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,c=s?"onZero":l,u=a.dim,d=r.getRect(),h=[d.x,d.x+d.width,d.y,d.y+d.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,m=u==="x"?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));m[f.onZero]=Math.max(Math.min(g,m[1]),m[0])}o.position=[u==="y"?m[f[c]]:h[0],u==="x"?m[f[c]]:h[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=s?m[f[l]]-m[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),gp(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var A=e.get(["axisLabel","rotate"]);return o.labelRotate=c==="top"?-A:A,o.z2=1,o}function T5t(t){return t.get("coordinateSystem")==="cartesian2d"}function C5t(t){var e={xAxisModel:null,yAxisModel:null};return Ie(e,function(n,r){var a=r.replace(/Model$/,""),o=t.getReferringComponents(a,Qh).models[0];e[r]=o}),e}var z6e=Math.log;function g7n(t,e,n){var r=NP.prototype,a=r.getTicks.call(n),o=r.getTicks.call(n,!0),s=a.length-1,l=r.getInterval.call(n),c=b$n(t,e),u=c.extent,d=c.fixMin,h=c.fixMax;if(t.type==="log"){var f=z6e(t.base);u=[z6e(u[0])/f,z6e(u[1])/f]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:s,fixMin:d,fixMax:h});var p=r.getExtent.call(t);d&&(u[0]=p[0]),h&&(u[1]=p[1]);var m=r.getInterval.call(t),g=u[0],v=u[1];if(d&&h)m=(v-g)/s;else if(d)for(v=u[0]+m*s;v<u[1]&&isFinite(v)&&isFinite(u[1]);)m=k6e(m),v=u[0]+m*s;else if(h)for(g=u[1]-m*s;g>u[0]&&isFinite(g)&&isFinite(u[0]);)m=k6e(m),g=u[1]-m*s;else{var A=t.getTicks().length-1;A>s&&(m=k6e(m));var y=m*s;v=Math.ceil(u[1]/m)*m,g=fd(v-y),g<0&&u[0]>=0?(g=0,v=fd(y)):v>0&&u[1]<=0&&(v=0,g=-fd(y))}var S=(a[0].value-o[0].value)/l,x=(a[s].value-o[s].value)/l;r.setExtent.call(t,g+m*S,v+m*x),r.setInterval.call(t,m),(S||x)&&r.setNiceExtent.call(t,g+m,v-m)}var Wso=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=AWe,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(s){var l,c=bo(s),u=c.length;if(u){for(var d=[],h=u-1;h>=0;h--){var f=+c[h],p=s[f],m=p.model,g=p.scale;uWe(g)&&m.get("alignTicks")&&m.get("interval")==null?d.push(p):(a8(g,m),uWe(g)&&(l=p))}d.length&&(l||(l=d.pop(),a8(l.scale,l.model)),Ie(d,function(v){g7n(v.scale,v.model,l.scale)}))}}a(r.x),a(r.y);var o={};Ie(r.x,function(s){k5t(r,"y",s,o)}),Ie(r.y,function(s){k5t(r,"x",s,o)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=e.getBoxLayoutParams(),o=!r&&e.get("containLabel"),s=nf(a,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),o&&(Ie(l,function(u){if(!u.model.get(["axisLabel","inside"])){var d=Vio(u);if(d){var h=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);s[h]-=d[h]+f,u.position==="top"?s.y+=d.height+f:u.position==="left"&&(s.x+=d.width+f)}}}),c()),Ie(this._coordsList,function(u){u.calcAffineTransform()});function c(){Ie(l,function(u){var d=u.isHorizontal(),h=d?[0,s.width]:[0,s.height],f=u.inverse?1:0;u.setExtent(h[f],h[1-f]),Qso(u,d?s.x:s.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}Ci(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===e||o[a].getAxis("y").index===n)return o[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",Qh).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",Qh).models[0],o=e.gridModel,s=this._coordsList,l,c;if(n)l=n.coordinateSystem,za(s,l)<0&&(l=null);else if(r&&a)l=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)c=this.getAxis("x",r.componentIndex);else if(a)c=this.getAxis("y",a.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(l=this._coordsList[0])}return{cartesian:l,axis:c}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,o=this,s={left:!1,right:!1,top:!1,bottom:!1},l={x:{},y:{}},c={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!c.x||!c.y){this._axesMap={},this._axesList=[];return}this._axesMap=l,Ie(l.x,function(d,h){Ie(l.y,function(f,p){var m="x"+h+"y"+p,g=new Gso(m);g.master=a,g.model=e,a._coordsMap[m]=g,a._coordsList.push(g),g.addAxis(d),g.addAxis(f)})});function u(d){return function(h,f){if(G6e(h,e)){var p=h.get("position");d==="x"?p!=="top"&&p!=="bottom"&&(p=s.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=s.left?"right":"left"),s[p]=!0;var m=new Kso(d,use(h),[0,0],h.get("type"),p),g=m.type==="category";m.onBand=g&&h.get("boundaryGap"),m.inverse=h.get("inverse"),h.axis=m,m.model=h,m.grid=o,m.index=f,o._axesList.push(m),l[d][f]=m,c[d]++}}}},t.prototype._updateScale=function(e,n){Ie(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),e.eachSeries(function(a){if(T5t(a)){var o=C5t(a),s=o.xAxisModel,l=o.yAxisModel;if(!G6e(s,n)||!G6e(l,n))return;var c=this.getCartesian(s.componentIndex,l.componentIndex),u=a.getData(),d=c.getAxis("x"),h=c.getAxis("y");r(u,d),r(u,h)}},this);function r(a,o){Ie(eye(a,o.dim),function(s){o.scale.unionExtentFromData(a,s)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return Ie(this.getCartesians(),function(a){var o=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),s=a.getOtherAxis(o);za(n,o)<0&&n.push(o),za(r,s)<0&&r.push(s)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,o){var s=new t(a,e,n);s.name="grid_"+o,s.resize(a,n,!0),a.coordinateSystem=s,r.push(s)}),e.eachSeries(function(a){if(T5t(a)){var o=C5t(a),s=o.xAxisModel,l=o.yAxisModel,c=s.getCoordSysModel(),u=c.coordinateSystem;a.coordinateSystem=u.getCartesian(s.componentIndex,l.componentIndex)}}),r},t.dimensions=AWe,t}();function G6e(t,e){return t.getCoordSysModel()===e}function k5t(t,e,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var a=t[e],o,s=n.model,l=s.get(["axisLine","onZero"]),c=s.get(["axisLine","onZeroAxisIndex"]);if(!l)return;if(c!=null)R5t(a[c])&&(o=a[c]);else for(var u in a)if(a.hasOwnProperty(u)&&R5t(a[u])&&!r[d(a[u])]){o=a[u];break}o&&(r[d(o)]=!0);function d(h){return h.dim+"_"+h.index}}function R5t(t){return t&&t.type!=="category"&&t.type!=="time"&&Gio(t)}function Qso(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}const qso=Wso;var e5=Math.PI,DD=function(){function t(e,n){this.group=new ta,this.opt=n,this.axisModel=e,bi(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new ta({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!M5t[e]},t.prototype.add=function(e){M5t[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=oot(n-e),o,s;return iz(a)?(s=r>0?"top":"bottom",o="center"):iz(a-e5)?(s=r>0?"bottom":"top",o="center"):(s="middle",a>0&&a<e5?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:s}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),M5t={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var o=e.axis.getExtent(),s=r.transform,l=[o[0],0],c=[o[1],0],u=l[0]>c[0];s&&(om(l,l,s),om(c,c,s));var d=An({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new vp({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});az(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=e.get(["axisLine","symbol"]);if(f!=null){var p=e.get(["axisLine","symbolSize"]);vr(f)&&(f=[f,f]),(vr(p)||cs(p))&&(p=[p,p]);var m=_9(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];Ie([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(A,y){if(f[y]!=="none"&&f[y]!=null){var S=vh(f[y],-g/2,-v/2,g,v,d.stroke,!0),x=A.r+A.offset,w=u?c:l;S.attr({rotation:A.rotate,x:w[0]+x*Math.cos(t.rotation),y:w[1]-x*Math.sin(t.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(t,e,n,r){var a=Zso(n,r,e,t),o=elo(n,r,e,t);if(Jso(e,o,a),Xso(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var s=P$n(Rn(o,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));B$n(s)}},axisName:function(t,e,n,r){var a=gp(t.axisName,e.get("name"));if(a){var o=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,u=e.axis.getExtent(),d=u[0]>u[1]?-1:1,h=[o==="start"?u[0]-d*c:o==="end"?u[1]+d*c:(u[0]+u[1])/2,I5t(o)?t.labelOffset+s*c:0],f,p=e.get("nameRotate");p!=null&&(p=p*e5/180);var m;I5t(o)?f=DD.innerTextLayout(t.rotation,p??t.rotation,s):(f=Yso(t.rotation,o,p||0,u),m=t.axisNameAvailableWidth,m!=null&&(m=Math.abs(m/Math.sin(f.rotation)),!isFinite(m)&&(m=null)));var g=l.getFont(),v=e.get("nameTruncate",!0)||{},A=v.ellipsis,y=gp(t.nameTruncateMaxWidth,v.maxWidth,m),S=new Jo({x:h[0],y:h[1],rotation:f.rotation,silent:DD.isLabelSilent(e),style:yc(l,{text:a,font:g,overflow:"truncate",width:y,ellipsis:A,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||f.textAlign,verticalAlign:l.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(OV({el:S,componentModel:e,itemName:a}),S.__fullText=a,S.anid="name",e.get("triggerEvent")){var x=DD.makeAxisEventDataBase(e);x.targetType="axisName",x.name=a,ia(S).eventData=x}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function Yso(t,e,n,r){var a=oot(n-t),o,s,l=r[0]>r[1],c=e==="start"&&!l||e!=="start"&&l;return iz(a-e5/2)?(s=c?"bottom":"top",o="center"):iz(a-e5*1.5)?(s=c?"top":"bottom",o="center"):(s="middle",a<e5*1.5&&a>e5/2?o=c?"left":"right":o=c?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:s}}function Jso(t,e,n){if(!x$n(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],s=e[1],l=e[e.length-1],c=e[e.length-2],u=n[0],d=n[1],h=n[n.length-1],f=n[n.length-2];r===!1?(Db(o),Db(u)):N5t(o,s)&&(r?(Db(s),Db(d)):(Db(o),Db(u))),a===!1?(Db(l),Db(h)):N5t(c,l)&&(a?(Db(c),Db(f)):(Db(l),Db(h)))}}function Db(t){t&&(t.ignore=!0)}function N5t(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=Xoe([]);return bO(a,a,-t.rotation),n.applyTransform(R2([],a,t.getLocalTransform())),r.applyTransform(R2([],a,e.getLocalTransform())),n.intersect(r)}}function I5t(t){return t==="middle"||t==="center"}function v7n(t,e,n,r,a){for(var o=[],s=[],l=[],c=0;c<t.length;c++){var u=t[c].coord;s[0]=u,s[1]=0,l[0]=u,l[1]=n,e&&(om(s,s,e),om(l,l,e));var d=new vp({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:r,z2:2,autoBatch:!0,silent:!0});az(d.shape,d.style.lineWidth),d.anid=a+"_"+t[c].tickValue,o.push(d)}return o}function Zso(t,e,n,r){var a=n.axis,o=n.getModel("axisTick"),s=o.get("show");if(s==="auto"&&r.handleAutoShown&&(s=r.handleAutoShown("axisTick")),!(!s||a.scale.isBlank())){for(var l=o.getModel("lineStyle"),c=r.tickDirection*o.get("length"),u=a.getTicksCoords(),d=v7n(u,e.transform,c,bi(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<d.length;h++)t.add(d[h]);return d}}function Xso(t,e,n,r){var a=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),c=r*o.get("length"),u=bi(l.getLineStyle(),bi(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var h=v7n(s[d],e.transform,c,u,"minorticks_"+d),f=0;f<h.length;f++)t.add(h[f])}}function elo(t,e,n,r){var a=n.axis,o=gp(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||a.scale.isBlank())){var s=n.getModel("axisLabel"),l=s.get("margin"),c=a.getViewLabels(),u=(gp(r.labelRotate,s.get("rotate"))||0)*e5/180,d=DD.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),f=[],p=DD.isLabelSilent(n),m=n.get("triggerEvent");return Ie(c,function(g,v){var A=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,y=g.formattedLabel,S=g.rawLabel,x=s;if(h&&h[A]){var w=h[A];Ci(w)&&w.textStyle&&(x=new Kl(w.textStyle,s,n.ecModel))}var _=x.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(A),R=x.getShallow("align",!0)||d.textAlign,k=pa(x.getShallow("alignMinLabel",!0),R),P=pa(x.getShallow("alignMaxLabel",!0),R),N=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||d.textVerticalAlign,L=pa(x.getShallow("verticalAlignMinLabel",!0),N),I=pa(x.getShallow("verticalAlignMaxLabel",!0),N),b=new Jo({x:C,y:r.labelOffset+r.labelDirection*l,rotation:d.rotation,silent:p,z2:10+(g.level||0),style:yc(x,{text:y,align:v===0?k:v===c.length-1?P:R,verticalAlign:v===0?L:v===c.length-1?I:N,fill:ai(_)?_(a.type==="category"?S:a.type==="value"?A+"":A,v):_})});if(b.anid="label_"+A,m){var T=DD.makeAxisEventDataBase(n);T.targetType="axisLabel",T.value=S,T.tickIndex=v,a.type==="category"&&(T.dataIndex=A),ia(b).eventData=T}e.add(b),b.updateTransform(),f.push(b),t.add(b),b.decomposeTransform()}),f}}const LM=DD;function tlo(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return nlo(n,t,e),n.seriesInvolved&&ilo(n,t),n}function nlo(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),o=a.get("link",!0)||[],s=[];Ie(n.getCoordinateSystems(),function(l){if(!l.axisPointerEnabled)return;var c=xre(l.model),u=t.coordSysAxesInfo[c]={};t.coordSysMap[c]=l;var d=l.model,h=d.getModel("tooltip",r);if(Ie(l.getAxes(),fa(g,!1,null)),l.getTooltipAxes&&r&&h.get("show")){var f=h.get("trigger")==="axis",p=h.get(["axisPointer","type"])==="cross",m=l.getTooltipAxes(h.get(["axisPointer","axis"]));(f||p)&&Ie(m.baseAxes,fa(g,p?"cross":!0,f)),p&&Ie(m.otherAxes,fa(g,"cross",!1))}function g(v,A,y){var S=y.model.getModel("axisPointer",a),x=S.get("show");if(!(!x||x==="auto"&&!v&&!bWe(S))){A==null&&(A=S.get("triggerTooltip")),S=v?rlo(y,h,a,e,v,A):S;var w=S.get("snap"),_=S.get("triggerEmphasis"),C=xre(y.model),R=A||w||y.type==="category",k=t.axesInfo[C]={key:C,axis:y,coordSys:l,axisPointerModel:S,triggerTooltip:A,triggerEmphasis:_,involveSeries:R,snap:w,useHandle:bWe(S),seriesModels:[],linkGroup:null};u[C]=k,t.seriesInvolved=t.seriesInvolved||R;var P=alo(o,y);if(P!=null){var N=s[P]||(s[P]={axesInfo:{}});N.axesInfo[C]=k,N.mapper=o[P].mapper,k.linkGroup=N}}}})}function rlo(t,e,n,r,a,o){var s=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],c={};Ie(l,function(f){c[f]=ji(s.get(f))}),c.snap=t.type!=="category"&&!!o,s.get("type")==="cross"&&(c.type="line");var u=c.label||(c.label={});if(u.show==null&&(u.show=!1),a==="cross"){var d=s.get(["label","show"]);if(u.show=d??!0,!o){var h=c.lineStyle=s.get("crossStyle");h&&bi(u,h.textStyle)}}return t.model.getModel("axisPointer",new Kl(c,n,r))}function ilo(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||Ie(t.coordSysAxesInfo[xre(r.model)],function(s){var l=s.axis;r.getAxis(l.dim)===l&&(s.seriesModels.push(n),s.seriesDataCount==null&&(s.seriesDataCount=0),s.seriesDataCount+=n.getData().count())})})}function alo(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var o=t[a]||{};if(V6e(o[r+"AxisId"],n.id)||V6e(o[r+"AxisIndex"],n.componentIndex)||V6e(o[r+"AxisName"],n.name))return a}}function V6e(t,e){return t==="all"||Tn(t)&&za(t,e)>=0||t===e}function olo(t){var e=yst(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,o=n.get("status"),s=n.get("value");s!=null&&(s=r.parse(s));var l=bWe(n);o==null&&(a.status=l?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(s==null||s>c[1])&&(s=c[1]),s<c[0]&&(s=c[0]),a.value=s,l&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function yst(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[xre(t)]}function slo(t){var e=yst(t);return e&&e.axisPointerModel}function bWe(t){return!!t.get(["handle","show"])}function xre(t){return t.type+"||"+t.id}var P5t={},llo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,o){this.axisPointerClass&&olo(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,o){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var s=slo(n);s?(this._axisPointer||(this._axisPointer=new o)).render(n,s,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){P5t[n]=r},e.getAxisPointerClass=function(n){return n&&P5t[n]},e.type="axis",e}(Au);const C9=llo;var xWe=ds();function A7n(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),c=r.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var d=l.length,h=xWe(t).splitAreaColors,f=Ur(),p=0;if(h)for(var m=0;m<u.length;m++){var g=h.get(u[m].tickValue);if(g!=null){p=(g+(d-1)*m)%d;break}}var v=a.toGlobalCoord(u[0].coord),A=s.getAreaStyle();l=Tn(l)?l:[l];for(var m=1;m<u.length;m++){var y=a.toGlobalCoord(u[m].coord),S=void 0,x=void 0,w=void 0,_=void 0;a.isHorizontal()?(S=v,x=c.y,w=y-S,_=c.height,v=S+w):(S=c.x,x=v,w=c.width,_=y-x,v=x+_);var C=u[m-1].tickValue;C!=null&&f.set(C,p),e.add(new Zo({anid:C!=null?"area_"+C:null,shape:{x:S,y:x,width:w,height:_},style:bi({fill:l[p]},A),autoBatch:!0,silent:!0})),p=(p+1)%d}xWe(t).splitAreaColors=f}}}function y7n(t){xWe(t).splitAreaColors=null}var clo=["axisLine","axisTickLabel","axisName"],ulo=["splitArea","splitLine","minorSplitLine"],b7n=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,o){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new ta,this.group.add(this._axisGroup),!!n.get("show")){var l=n.getCoordSysModel(),c=yWe(l,n),u=new LM(n,An({handleAutoShown:function(h){for(var f=l.coordinateSystem.getCartesians(),p=0;p<f.length;p++)if(uWe(f[p].getOtherAxis(n.axis).scale))return!0;return!1}},c));Ie(clo,u.add,u),this._axisGroup.add(u.getGroup()),Ie(ulo,function(h){n.get([h,"show"])&&dlo[h](this,this._axisGroup,n,l)},this);var d=o&&o.type==="changeAxisOrder"&&o.isInitSort;d||sse(s,this._axisGroup,n),t.prototype.render.call(this,n,r,a,o)}},e.prototype.remove=function(){y7n(this)},e.type="cartesianAxis",e}(C9),dlo={splitLine:function(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=Tn(l)?l:[l];for(var c=r.coordinateSystem.getRect(),u=a.isHorizontal(),d=0,h=a.getTicksCoords({tickModel:o}),f=[],p=[],m=s.getLineStyle(),g=0;g<h.length;g++){var v=a.toGlobalCoord(h[g].coord);u?(f[0]=v,f[1]=c.y,p[0]=v,p[1]=c.y+c.height):(f[0]=c.x,f[1]=v,p[0]=c.x+c.width,p[1]=v);var A=d++%l.length,y=h[g].tickValue,S=new vp({anid:y!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:bi({stroke:l[A]},m),silent:!0});az(S.shape,m.lineWidth),e.add(S)}}},minorSplitLine:function(t,e,n,r){var a=n.axis,o=n.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=r.coordinateSystem.getRect(),c=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var d=[],h=[],f=s.getLineStyle(),p=0;p<u.length;p++)for(var m=0;m<u[p].length;m++){var g=a.toGlobalCoord(u[p][m].coord);c?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var v=new vp({anid:"minor_line_"+u[p][m].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:f,silent:!0});az(v.shape,f.lineWidth),e.add(v)}},splitArea:function(t,e,n,r){A7n(t,e,n,r)}},x7n=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(b7n),hlo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=x7n.type,n}return e.type="yAxis",e}(b7n),flo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Zo({shape:n.coordinateSystem.getRect(),style:bi({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Au),O5t={offset:0};function E7n(t){t.registerComponentView(flo),t.registerComponentModel(Dso),t.registerCoordinateSystem("cartesian2d",qso),cz(t,"x",vWe,O5t),cz(t,"y",vWe,O5t),t.registerComponentView(x7n),t.registerComponentView(hlo),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function plo(t){qa(E7n),t.registerSeriesModel(Rso),t.registerChartView(Lso),t.registerLayout(mse("scatter"))}function mlo(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],a=e.coordinateSystem;if(a){var o=a.getIndicatorAxes();Ie(o,function(s,l){n.each(n.mapDimension(o[l].dim),function(c,u){r[u]=r[u]||[];var d=a.dataToPoint(c,l);r[u][l]=L5t(d)?d:B5t(a)})}),n.each(function(s){var l=CDn(r[s],function(c){return L5t(c)})||B5t(a);r[s].push(l.slice()),n.setItemLayout(s,r[s])})}})}function L5t(t){return!isNaN(t[0])&&!isNaN(t[1])}function B5t(t){return[t.cx,t.cy]}function glo(t){var e=t.polar;if(e){Tn(e)||(e=[e]);var n=[];Ie(e,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],Tn(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}Ie(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var vlo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=n.coordinateSystem,s=this.group,l=n.getData(),c=this._data;function u(f,p){var m=f.getItemVisual(p,"symbol")||"circle";if(m!=="none"){var g=zV(f.getItemVisual(p,"symbolSize")),v=vh(m,-1,-1,2,2),A=f.getItemVisual(p,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:A*Math.PI/180||0}),v}}function d(f,p,m,g,v,A){m.removeAll();for(var y=0;y<p.length-1;y++){var S=u(g,v);S&&(S.__dimIdx=y,f[y]?(S.setPosition(f[y]),E9[A?"initProps":"updateProps"](S,{x:p[y][0],y:p[y][1]},n,v)):S.setPosition(p[y]),m.add(S))}}function h(f){return Rn(f,function(p){return[o.cx,o.cy]})}l.diff(c).add(function(f){var p=l.getItemLayout(f);if(p){var m=new Y0,g=new aA,v={shape:{points:p}};m.shape.points=h(p),g.shape.points=h(p),Kc(m,v,n,f),Kc(g,v,n,f);var A=new ta,y=new ta;A.add(g),A.add(m),A.add(y),d(g.shape.points,p,y,l,f,!0),l.setItemGraphicEl(f,A)}}).update(function(f,p){var m=c.getItemGraphicEl(p),g=m.childAt(0),v=m.childAt(1),A=m.childAt(2),y={shape:{points:l.getItemLayout(f)}};y.shape.points&&(d(g.shape.points,y.shape.points,A,l,f,!1),Fw(v),Fw(g),vs(g,y,n),vs(v,y,n),l.setItemGraphicEl(f,m))}).remove(function(f){s.remove(c.getItemGraphicEl(f))}).execute(),l.eachItemGraphicEl(function(f,p){var m=l.getItemModel(p),g=f.childAt(0),v=f.childAt(1),A=f.childAt(2),y=l.getItemVisual(p,"style"),S=y.fill;s.add(f),g.useStyle(bi(m.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),dg(g,m,"lineStyle"),dg(v,m,"areaStyle");var x=m.getModel("areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty();v.ignore=w,Ie(["emphasis","select","blur"],function(R){var k=m.getModel([R,"areaStyle"]),P=k.isEmpty()&&k.parentModel.isEmpty();v.ensureState(R).ignore=P&&w}),v.useStyle(bi(x.getAreaStyle(),{fill:S,opacity:.7,decal:y.decal}));var _=m.getModel("emphasis"),C=_.getModel("itemStyle").getItemStyle();A.eachChild(function(R){if(R instanceof fm){var k=R.style;R.useStyle(An({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},y))}else R.useStyle(y),R.setColor(S),R.style.strokeNoScale=!0;var P=R.ensureState("emphasis");P.style=ji(C);var N=l.getStore().get(l.getDimensionIndex(R.__dimIdx),p);(N==null||isNaN(N))&&(N=""),hg(R,Cp(m),{labelFetcher:l.hostModel,labelDataIndex:p,labelDimIndex:R.__dimIdx,defaultText:N,inheritColor:S,defaultOpacity:y.opacity})}),bd(f,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=l},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(ql);const Alo=vlo;var ylo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vse(Cr(this.getData,this),Cr(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return KV(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,a){var o=this.getData(),s=this.coordinateSystem,l=s.getIndicatorAxes(),c=this.getData().getName(n),u=c===""?this.name:c,d=p9n(this,n);return kp("section",{header:u,sortBlocks:!0,blocks:Rn(l,function(h){var f=o.get(o.mapDimension(h.dim),n);return kp("nameValue",{markerType:"subItem",markerColor:d,name:h.name,value:f,sortParam:f})})})},e.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,o=r.getValues(Rn(a.dimensions,function(u){return r.mapDimension(u)}),n),s=0,l=o.length;s<l;s++)if(!isNaN(o[s])){var c=a.getIndicatorAxes();return a.coordToPoint(c[s].dataToCoord(o[s]),s)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Oc);const blo=ylo;var Qq=m7n.value;function fhe(t,e){return bi({show:e},t)}var xlo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),c=this.get("axisName"),u=this.get(["axisName","show"]),d=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),f=this.get("triggerEvent"),p=Rn(this.get("indicator")||[],function(m){m.max!=null&&m.max>0&&!m.min?m.min=0:m.min!=null&&m.min<0&&!m.max&&(m.max=0);var g=c;m.color!=null&&(g=bi({color:m.color},c));var v=Ra(ji(m),{boundaryGap:n,splitNumber:r,scale:a,axisLine:o,axisTick:s,axisLabel:l,name:m.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:f},!1);if(vr(d)){var A=v.name;v.name=d.replace("{value}",A??"")}else ai(d)&&(v.name=d(v.name,v));var y=new Kl(v,null,this.ecModel);return Vd(y,VV.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ra({lineStyle:{color:"#bbb"}},Qq.axisLine),axisLabel:fhe(Qq.axisLabel,!1),axisTick:fhe(Qq.axisTick,!1),splitLine:fhe(Qq.splitLine,!0),splitArea:fhe(Qq.splitArea,!0),indicator:[]},e}(Fo);const Elo=xlo;var Slo=["axisLine","axisTickLabel","axisName"],wlo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=this.group;o.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),o=Rn(a,function(s){var l=s.model.get("showName")?s.name:"",c=new LM(s.model,{axisName:l,position:[r.cx,r.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return c});Ie(o,function(s){Ie(Slo,s.add,s),this.group.add(s.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var o=n.get("shape"),s=n.getModel("splitLine"),l=n.getModel("splitArea"),c=s.getModel("lineStyle"),u=l.getModel("areaStyle"),d=s.get("show"),h=l.get("show"),f=c.get("color"),p=u.get("color"),m=Tn(f)?f:[f],g=Tn(p)?p:[p],v=[],A=[];function y(T,M,D){var B=D%M.length;return T[B]=T[B]||[],B}if(o==="circle")for(var S=a[0].getTicksCoords(),x=r.cx,w=r.cy,_=0;_<S.length;_++){if(d){var C=y(v,m,_);v[C].push(new yN({shape:{cx:x,cy:w,r:S[_].coord}}))}if(h&&_<S.length-1){var C=y(A,g,_);A[C].push(new ise({shape:{cx:x,cy:w,r0:S[_].coord,r:S[_+1].coord}}))}}else for(var R,k=Rn(a,function(T,M){var D=T.getTicksCoords();return R=R==null?D.length-1:Math.min(D.length-1,R),Rn(D,function(B){return r.coordToPoint(B.coord,M)})}),P=[],_=0;_<=R;_++){for(var N=[],L=0;L<a.length;L++)N.push(k[L][_]);if(N[0]&&N.push(N[0].slice()),d){var C=y(v,m,_);v[C].push(new aA({shape:{points:N}}))}if(h&&P){var C=y(A,g,_-1);A[C].push(new Y0({shape:{points:N.concat(P)}}))}P=N.slice().reverse()}var I=c.getLineStyle(),b=u.getAreaStyle();Ie(A,function(T,M){this.group.add(Ty(T,{style:bi({stroke:"none",fill:g[M%g.length]},b),silent:!0}))},this),Ie(v,function(T,M){this.group.add(Ty(T,{style:bi({fill:"none",stroke:m[M%m.length]},I),silent:!0}))},this)},e.type="radar",e}(Au);const _lo=wlo;var Tlo=function(t){nn(e,t);function e(n,r,a){var o=t.call(this,n,r,a)||this;return o.type="value",o.angle=0,o.name="",o}return e}(CE);const Clo=Tlo;var klo=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=Rn(e.getIndicatorModels(),function(a,o){var s="indicator_"+o,l=new Clo(s,new NP);return l.name=a.get("name"),l.model=a,a.axis=l,this.dimensions.push(s),l},this),this.resize(e,r)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(e),n)},t.prototype.coordToPoint=function(e,n){var r=this._indicatorAxes[n],a=r.angle,o=this.cx+e*Math.cos(a),s=this.cy-e*Math.sin(a);return[o,s]},t.prototype.pointToData=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var o=Math.atan2(-r,n),s=1/0,l,c=-1,u=0;u<this._indicatorAxes.length;u++){var d=this._indicatorAxes[u],h=Math.abs(o-d.angle);h<s&&(l=d,c=u,s=h)}return[c,+(l&&l.coordToData(a))]},t.prototype.resize=function(e,n){var r=e.get("center"),a=n.getWidth(),o=n.getHeight(),s=Math.min(a,o)/2;this.cx=lr(r[0],a),this.cy=lr(r[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");(vr(l)||cs(l))&&(l=[0,l]),this.r0=lr(l[0],s),this.r=lr(l[1],s),Ie(this._indicatorAxes,function(c,u){c.setExtent(this.r0,this.r);var d=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;d=Math.atan2(Math.sin(d),Math.cos(d)),c.angle=d},this)},t.prototype.update=function(e,n){var r=this._indicatorAxes,a=this._model;Ie(r,function(l){l.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(l,c){if(!(l.get("coordinateSystem")!=="radar"||e.getComponent("radar",l.get("radarIndex"))!==a)){var u=l.getData();Ie(r,function(d){d.scale.unionExtentFromData(u,u.mapDimension(d.dim))})}},this);var o=a.get("splitNumber"),s=new NP;s.setExtent(0,o),s.setInterval(1),Ie(r,function(l,c){g7n(l.scale,l.model,s)})},t.prototype.convertToPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(a){var o=new t(a,e,n);r.push(o),a.coordinateSystem=o}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},t.dimensions=[],t}();const Rlo=klo;function Mlo(t){t.registerCoordinateSystem("radar",Rlo),t.registerComponentModel(Elo),t.registerComponentView(_lo),t.registerVisual({seriesType:"radar",reset:function(e){var n=e.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function Nlo(t){qa(Mlo),t.registerChartView(Alo),t.registerSeriesModel(blo),t.registerLayout(mlo),t.registerProcessor(gse("radar")),t.registerPreprocessor(glo)}var D5t="\0_ec_interaction_mutex";function Ilo(t,e,n){var r=bst(t);r[e]=n}function Plo(t,e,n){var r=bst(t),a=r[e];a===n&&(r[e]=null)}function $5t(t,e){return!!bst(t)[e]}function bst(t){return t[D5t]||(t[D5t]={})}Zw({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},jd);var Olo=function(t){nn(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var a=Cr(r._mousedownHandler,r),o=Cr(r._mousemoveHandler,r),s=Cr(r._mouseupHandler,r),l=Cr(r._mousewheelHandler,r),c=Cr(r._pinchHandler,r);return r.enable=function(u,d){this.disable(),this._opt=bi(ji(d)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",a),n.on("mousemove",o),n.on("mouseup",s)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",l),n.on("pinch",c))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",o),n.off("mouseup",s),n.off("mousewheel",l),n.off("pinch",c)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(n){this.pointerChecker=n},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!pNt(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,o=n.offsetY;this.pointerChecker&&this.pointerChecker(n,a,o)&&(this._x=a,this._y=o,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!cge("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||$5t(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,o=this._x,s=this._y,l=r-o,c=a-s;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&MM(n.event),S7n(this,"pan","moveOnMouseMove",n,{dx:l,dy:c,oldX:o,oldY:s,newX:r,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){pNt(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=cge("zoomOnMouseWheel",n,this._opt),a=cge("moveOnMouseWheel",n,this._opt),o=n.wheelDelta,s=Math.abs(o),l=n.offsetX,c=n.offsetY;if(!(o===0||!r&&!a)){if(r){var u=s>3?1.4:s>1?1.2:1.1,d=o>0?u:1/u;K6e(this,"zoom","zoomOnMouseWheel",n,{scale:d,originX:l,originY:c,isAvailableBehavior:null})}if(a){var h=Math.abs(o),f=(o>0?1:-1)*(h>3?.4:h>1?.15:.05);K6e(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:f,originX:l,originY:c,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!$5t(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;K6e(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(SE);function K6e(t,e,n,r,a){t.pointerChecker&&t.pointerChecker(r,a.originX,a.originY)&&(MM(r.event),S7n(t,e,n,r,a))}function S7n(t,e,n,r,a){a.isAvailableBehavior=Cr(cge,null,n,r),t.trigger(e,a)}function cge(t,e,n){var r=n[t];return!t||r&&(!vr(r)||e.event[r+"Key"])}const Ase=Olo;function xst(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function Est(t,e,n,r){var a=t.target,o=t.zoomLimit,s=t.zoom=t.zoom||1;if(s*=e,o){var l=o.min||0,c=o.max||1/0;s=Math.max(Math.min(c,s),l)}var u=s/t.zoom;t.zoom=s,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var Llo={axisPointer:1,tooltip:1,brush:1};function g2e(t,e,n){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!Llo.hasOwnProperty(r.mainType)&&a&&a.model!==n}function w7n(t){if(vr(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var W6e,oye={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},F5t=bo(oye),sye={"alignment-baseline":"textBaseline","stop-color":"stopColor"},j5t=bo(sye),Blo=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=w7n(e);this._defsUsePending=[];var a=new ta;this._root=a;var o=[],s=r.getAttribute("viewBox")||"",l=parseFloat(r.getAttribute("width")||n.width),c=parseFloat(r.getAttribute("height")||n.height);isNaN(l)&&(l=null),isNaN(c)&&(c=null),Z1(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,o,null,!1,!1),u=u.nextSibling;Flo(this._defs,this._defsUsePending),this._defsUsePending=[];var d,h;if(s){var f=v2e(s);f.length>=4&&(d={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(d&&l!=null&&c!=null&&(h=T7n(d,{x:0,y:0,width:l,height:c}),!n.ignoreViewBox)){var p=a;a=new ta,a.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return!n.ignoreRootClip&&l!=null&&c!=null&&a.setClipPath(new Zo({shape:{x:0,y:0,width:l,height:c}})),{root:a,width:l,height:c,viewBoxRect:d,viewBoxTransform:h,named:o}},t.prototype._parseNode=function(e,n,r,a,o,s){var l=e.nodeName.toLowerCase(),c,u=a;if(l==="defs"&&(o=!0),l==="text"&&(s=!0),l==="defs"||l==="switch")c=n;else{if(!o){var d=W6e[l];if(d&&Dr(W6e,l)){c=d.call(this,e,n);var h=e.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:l,el:c};r.push(f),l==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:l,el:c});n.add(c)}}var p=H5t[l];if(p&&Dr(H5t,l)){var m=p.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=m)}}if(c&&c.isGroup)for(var v=e.firstChild;v;)v.nodeType===1?this._parseNode(v,c,r,u,o,s):v.nodeType===3&&s&&this._parseText(v,c),v=v.nextSibling},t.prototype._parseText=function(e,n){var r=new lre({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});$b(n,r),Z1(e,r,this._defsUsePending,!1,!1),Dlo(r,n);var a=r.style,o=a.fontSize;o&&o<9&&(a.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var s=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=s;var l=r.getBoundingRect();return this._textX+=l.width,n.add(r),r},t.internalField=function(){W6e={g:function(e,n){var r=new ta;return $b(n,r),Z1(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new Zo;return $b(n,r),Z1(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,n){var r=new yN;return $b(n,r),Z1(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,n){var r=new vp;return $b(n,r),Z1(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,n){var r=new qTe;return $b(n,r),Z1(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,n){var r=e.getAttribute("points"),a;r&&(a=G5t(r));var o=new Y0({shape:{points:a||[]},silent:!0});return $b(n,o),Z1(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,n){var r=e.getAttribute("points"),a;r&&(a=G5t(r));var o=new aA({shape:{points:a||[]},silent:!0});return $b(n,o),Z1(e,o,this._defsUsePending,!1,!1),o},image:function(e,n){var r=new fm;return $b(n,r),Z1(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,n){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",s=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(a)+parseFloat(s);var l=new ta;return $b(n,l),Z1(e,l,this._defsUsePending,!1,!0),l},tspan:function(e,n){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var o=e.getAttribute("dx")||"0",s=e.getAttribute("dy")||"0",l=new ta;return $b(n,l),Z1(e,l,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(s),l},path:function(e,n){var r=e.getAttribute("d")||"",a=e8n(r);return $b(n,a),Z1(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),t}(),H5t={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),a=parseInt(t.getAttribute("y2")||"0",10),o=new NV(e,n,r,a);return U5t(t,o),z5t(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),a=new bot(e,n,r);return U5t(t,a),z5t(t,a),a}};function U5t(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function z5t(t,e){for(var n=t.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var o={};_7n(n,o,o);var s=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:s})}n=n.nextSibling}}function $b(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),bi(e.__inheritedStyle,t.__inheritedStyle))}function G5t(t){for(var e=v2e(t),n=[],r=0;r<e.length;r+=2){var a=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([a,o])}return n}function Z1(t,e,n,r,a){var o=e,s=o.__inheritedStyle=o.__inheritedStyle||{},l={};t.nodeType===1&&(Ulo(t,e),_7n(t,s,l),r||zlo(t,s,l)),o.style=o.style||{},s.fill!=null&&(o.style.fill=V5t(o,"fill",s.fill,n)),s.stroke!=null&&(o.style.stroke=V5t(o,"stroke",s.stroke,n)),Ie(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(c){s[c]!=null&&(o.style[c]=parseFloat(s[c]))}),Ie(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(c){s[c]!=null&&(o.style[c]=s[c])}),a&&(o.__selfStyle=l),s.lineDash&&(o.style.lineDash=Rn(v2e(s.lineDash),function(c){return parseFloat(c)})),(s.visibility==="hidden"||s.visibility==="collapse")&&(o.invisible=!0),s.display==="none"&&(o.ignore=!0)}function Dlo(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,a=r;!r||r==="auto"||r==="baseline"?a="alphabetic":r==="before-edge"||r==="text-before-edge"?a="top":r==="after-edge"||r==="text-after-edge"?a="bottom":(r==="central"||r==="mathematical")&&(a="middle"),t.style.textBaseline=a}var o=e.__inheritedStyle;if(o){var s=o.textAlign,l=s;s&&(s==="middle"&&(l="center"),t.style.textAlign=l)}}var $lo=/^url\(\s*#(.*?)\)/;function V5t(t,e,n,r){var a=n&&n.match($lo);if(a){var o=_x(a[1]);r.push([t,e,o]);return}return n==="none"&&(n=null),n}function Flo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var jlo=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v2e(t){return t.match(jlo)||[]}var Hlo=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Q6e=Math.PI/180;function Ulo(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(Hlo,function(h,f,p){return r.push(f,p),""});for(var o=r.length-1;o>0;o-=2){var s=r[o],l=r[o-1],c=v2e(s);switch(a=a||r1(),l){case"translate":Dw(a,a,[parseFloat(c[0]),parseFloat(c[1]||"0")]);break;case"scale":FTe(a,a,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case"rotate":bO(a,a,-parseFloat(c[0])*Q6e,[parseFloat(c[1]||"0"),parseFloat(c[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(c[0])*Q6e);R2(a,[1,0,u,1,0,0],a);break;case"skewY":var d=Math.tan(parseFloat(c[0])*Q6e);R2(a,[1,d,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(c[0]),a[1]=parseFloat(c[1]),a[2]=parseFloat(c[2]),a[3]=parseFloat(c[3]),a[4]=parseFloat(c[4]),a[5]=parseFloat(c[5]);break}}e.setLocalTransform(a)}}var K5t=/([^\s:;]+)\s*:\s*([^:;]+)/g;function _7n(t,e,n){var r=t.getAttribute("style");if(r){K5t.lastIndex=0;for(var a;(a=K5t.exec(r))!=null;){var o=a[1],s=Dr(oye,o)?oye[o]:null;s&&(e[s]=a[2]);var l=Dr(sye,o)?sye[o]:null;l&&(n[l]=a[2])}}}function zlo(t,e,n){for(var r=0;r<F5t.length;r++){var a=F5t[r],o=t.getAttribute(a);o!=null&&(e[oye[a]]=o)}for(var r=0;r<j5t.length;r++){var a=j5t[r],o=t.getAttribute(a);o!=null&&(n[sye[a]]=o)}}function T7n(t,e){var n=e.width/t.width,r=e.height/t.height,a=Math.min(n,r);return{scale:a,x:-(t.x+t.width/2)*a+(e.x+e.width/2),y:-(t.y+t.height/2)*a+(e.y+e.height/2)}}function Glo(t,e){var n=new Blo;return n.parse(t,e)}var Vlo=Ur(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Klo=function(){function t(e,n){this.type="geoSVG",this._usedGraphicMap=Ur(),this._freedGraphics=[],this._mapName=e,this._parsedXML=w7n(n)}return t.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=Qlo(e.named),r=n.regions,a=n.regionsMap;this._regions=r,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var n,r;try{n=e&&Glo(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Tv(r!=null)}catch(v){throw new Error(`Invalid svg format
`+v.message)}var a=new ta;a.add(r),a.isGeoSVGGraphicRoot=!0;var o=n.width,s=n.height,l=n.viewBoxRect,c=this._boundingRect;if(!c){var u=void 0,d=void 0,h=void 0,f=void 0;if(o!=null?(u=0,h=o):l&&(u=l.x,h=l.width),s!=null?(d=0,f=s):l&&(d=l.y,f=l.height),u==null||d==null){var p=r.getBoundingRect();u==null&&(u=p.x,h=p.width),d==null&&(d=p.y,f=p.height)}c=this._boundingRect=new Da(u,d,h,f)}if(l){var m=T7n(l,c);r.scaleX=r.scaleY=m.scale,r.x=m.x,r.y=m.y}a.setClipPath(new Zo({shape:c.plain()}));var g=[];return Ie(n.named,function(v){Vlo.get(v.svgNodeTagLower)!=null&&(g.push(v),Wlo(v.el))}),{root:a,boundingRect:c,named:g}},t.prototype.useGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(e,r),r)},t.prototype.freeGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);r&&(n.removeKey(e),this._freedGraphics.push(r))},t}();function Wlo(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function Qlo(t){var e=[],n=Ur();return Ie(t,function(r){if(r.namedFrom==null){var a=new rao(r.name,r.el);e.push(a),n.set(r.name,a)}}),{regions:e,regionsMap:n}}var EWe=[126,25],W5t="南海诸岛",nB=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var X4=0;X4<nB.length;X4++)for(var s7=0;s7<nB[X4].length;s7++)nB[X4][s7][0]/=10.5,nB[X4][s7][1]/=-10.5/.75,nB[X4][s7][0]+=EWe[0],nB[X4][s7][1]+=EWe[1];function qlo(t,e){if(t==="china"){for(var n=0;n<e.length;n++)if(e[n].name===W5t)return;e.push(new S$n(W5t,Rn(nB,function(r){return{type:"polygon",exterior:r}}),EWe))}}var Ylo={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Jlo(t,e){if(t==="china"){var n=Ylo[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),e.setCenter(r)}}}var Zlo=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Xlo(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Zlo[0]})}var eco="name",tco=function(){function t(e,n,r){this.type="geoJSON",this._parsedMap=Ur(),this._mapName=e,this._specialAreas=r,this._geoJSON=rco(n)}return t.prototype.load=function(e,n){n=n||eco;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:nco(a)})}var o=Ur(),s=[];return Ie(r.regions,function(l){var c=l.name;e&&Dr(e,c)&&(l=l.cloneShallow(c=e[c])),s.push(l),o.set(c,l)}),{regions:s,boundingRect:r.boundingRect||new Da(0,0,0,0),regionsMap:o}},t.prototype._parseToRegions=function(e){var n=this._mapName,r=this._geoJSON,a;try{a=r?hWe(r,e):[]}catch(o){throw new Error(`Invalid geoJson format
`+o.message)}return qlo(n,a),Ie(a,function(o){var s=o.name;Jlo(n,o),Xlo(n,o);var l=this._specialAreas&&this._specialAreas[s];l&&o.transformTo(l.left,l.top,l.width,l.height)},this),a},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function nco(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function rco(t){return vr(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var qq=Ur();const BM={registerMap:function(t,e,n){if(e.svg){var r=new Klo(t,e.svg);qq.set(t,r)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?n=e.specialAreas:a=e;var r=new tco(t,a,n);qq.set(t,r)}},getGeoResource:function(t){return qq.get(t)},getMapForUser:function(t){var e=qq.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,n){var r=qq.get(t);if(r)return r.load(e,n)}};var Sst=["rect","circle","line","ellipse","polygon","polyline","path"],ico=Ur(Sst),aco=Ur(Sst.concat(["g"])),oco=Ur(Sst.concat(["g"])),C7n=ds();function phe(t){var e=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(e.fill=n),e}function Q5t(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var sco=function(){function t(e){var n=new ta;this.uid=BV("ec_map_draw"),this._controller=new Ase(e.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new ta),n.add(this._svgGroup=new ta)}return t.prototype.draw=function(e,n,r,a,o){var s=e.mainType==="geo",l=e.getData&&e.getData();s&&n.eachComponent({mainType:"series",subType:"map"},function(A){!l&&A.getHostGeoModel()===e&&(l=A.getData())});var c=e.coordinateSystem,u=this._regionsGroup,d=this.group,h=c.getTransformInfo(),f=h.raw,p=h.roam,m=!u.childAt(0)||o;m?(d.x=p.x,d.y=p.y,d.scaleX=p.scaleX,d.scaleY=p.scaleY,d.dirty()):vs(d,p,e);var g=l&&l.getVisual("visualMeta")&&l.getVisual("visualMeta").length>0,v={api:r,geo:c,mapOrGeoModel:e,data:l,isVisualEncodedByVisualMap:g,isGeo:s,transformInfoRaw:f};c.resourceType==="geoJSON"?this._buildGeoJSON(v):c.resourceType==="geoSVG"&&this._buildSVG(v),this._updateController(e,n,r),this._updateMapSelectHandler(e,u,r,a)},t.prototype._buildGeoJSON=function(e){var n=this._regionsGroupByName=Ur(),r=Ur(),a=this._regionsGroup,o=e.transformInfoRaw,s=e.mapOrGeoModel,l=e.data,c=e.geo.projection,u=c&&c.stream;function d(p,m){return m&&(p=m(p)),p&&[p[0]*o.scaleX+o.x,p[1]*o.scaleY+o.y]}function h(p){for(var m=[],g=!u&&c&&c.project,v=0;v<p.length;++v){var A=d(p[v],g);A&&m.push(A)}return m}function f(p){return{shape:{points:h(p)}}}a.removeAll(),Ie(e.geo.regions,function(p){var m=p.name,g=n.get(m),v=r.get(m)||{},A=v.dataIdx,y=v.regionModel;g||(g=n.set(m,new ta),a.add(g),A=l?l.indexOfName(m):null,y=e.isGeo?s.getRegionModel(m):l?l.getItemModel(A):null,r.set(m,{dataIdx:A,regionModel:y}));var S=[],x=[];Ie(p.geometries,function(C){if(C.type==="polygon"){var R=[C.exterior].concat(C.interiors||[]);u&&(R=ePt(R,u)),Ie(R,function(P){S.push(new Y0(f(P)))})}else{var k=C.points;u&&(k=ePt(k,u,!0)),Ie(k,function(P){x.push(new aA(f(P)))})}});var w=d(p.getCenter(),c&&c.project);function _(C,R){if(C.length){var k=new JTe({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});g.add(k),q5t(e,k,A,y),Y5t(e,k,m,y,s,A,w),R&&(Q5t(k),Ie(k.states,Q5t))}}_(S),_(x,!0)}),n.each(function(p,m){var g=r.get(m),v=g.dataIdx,A=g.regionModel;J5t(e,p,m,A,s,v),Z5t(e,p,m,A,s),X5t(e,p,m,A,s)},this)},t.prototype._buildSVG=function(e){var n=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=Ur(),o=!1;Ie(this._svgGraphicRecord.named,function(s){var l=s.name,c=e.mapOrGeoModel,u=e.data,d=s.svgNodeTagLower,h=s.el,f=u?u.indexOfName(l):null,p=c.getRegionModel(l);if(ico.get(d)!=null&&h instanceof Xx&&q5t(e,h,f,p),h instanceof Xx&&(h.culling=!0),h.z2EmphasisLift=0,!s.namedFrom&&(oco.get(d)!=null&&Y5t(e,h,l,p,c,f,null),J5t(e,h,l,p,c,f),Z5t(e,h,l,p,c),aco.get(d)!=null)){var m=X5t(e,h,l,p,c);m==="self"&&(o=!0);var g=a.get(l)||a.set(l,[]);g.push(h)}},this),this._enableBlurEntireSVG(o,e)},t.prototype._enableBlurEntireSVG=function(e,n){if(e&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=r.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){r8(o);var s=o.ensureState("blur").style||{};s.opacity==null&&a!=null&&(s.opacity=a),o.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(e,n){if(e==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var o=a.get(e);return o?[o]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var n=BM.getGeoResource(e);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var n=BM.getGeoResource(e);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(e,n,r){var a=e.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=e.get("scaleLimit"),s.zoom=a.getZoom(),o.enable(e.get("roam")||!1);var l=e.mainType;function c(){var u={type:"geoRoam",componentType:l};return u[l+"Id"]=e.id,u}o.off("pan").on("pan",function(u){this._mouseDownFlag=!1,xst(s,u.dx,u.dy),r.dispatchAction(An(c(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Est(s,u.scale,u.originX,u.originY),r.dispatchAction(An(c(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(u,d,h){return a.containPoint([d,h])&&!g2e(u,r,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var n=e.getTextContent();n&&(n.ignore=C7n(n).ignore)})},t.prototype._updateMapSelectHandler=function(e,n,r,a){var o=this;n.off("mousedown"),n.off("click"),e.get("selectedMode")&&(n.on("mousedown",function(){o._mouseDownFlag=!0}),n.on("click",function(s){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},t}();function q5t(t,e,n,r){var a=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),s=r.getModel(["blur","itemStyle"]),l=r.getModel(["select","itemStyle"]),c=phe(a),u=phe(o),d=phe(l),h=phe(s),f=t.data;if(f){var p=f.getItemVisual(n,"style"),m=f.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(c.fill=p.fill),m&&(c.decal=sz(m,t.api))}e.setStyle(c),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=d,e.ensureState("blur").style=h,r8(e)}function Y5t(t,e,n,r,a,o,s){var l=t.data,c=t.isGeo,u=l&&isNaN(l.get(l.mapDimension("value"),o)),d=l&&l.getItemLayout(o);if(c||u||d&&d.showLabel){var h=c?n:o,f=void 0;(!l||o>=0)&&(f=a);var p=s?{normal:{align:"center",verticalAlign:"middle"}}:null;hg(e,Cp(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},p);var m=e.getTextContent();if(m&&(C7n(m).ignore=m.ignore,e.textConfig&&s)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(s[0]-g.x)/g.width*100+"%",(s[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function J5t(t,e,n,r,a,o){t.data?t.data.setItemGraphicEl(o,e):ia(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function Z5t(t,e,n,r,a){t.data||OV({el:e,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function X5t(t,e,n,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var o=r.getModel("emphasis"),s=o.get("focus");return bd(e,s,o.get("blurScope"),o.get("disabled")),t.isGeo&&WXa(e,a,n),s}function ePt(t,e,n){var r=[],a;function o(){a=[]}function s(){a.length&&(r.push(a),a=[])}var l=e({polygonStart:o,polygonEnd:s,lineStart:o,lineEnd:s,point:function(c,u){isFinite(c)&&isFinite(u)&&a.push([c,u])},sphere:function(){}});return!n&&l.polygonStart(),Ie(t,function(c){l.lineStart();for(var u=0;u<c.length;u++)l.point(c[u][0],c[u][1]);l.lineEnd()}),!n&&l.polygonEnd(),r}const k7n=sco;var lco=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,o){if(!(o&&o.type==="mapToggleSelect"&&o.from===this.uid)){var s=this.group;if(s.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===n.id){var l=this._mapDraw;l&&s.add(l.group)}else if(n.needsDrawMap){var l=this._mapDraw||new k7n(a);s.add(l.group),l.draw(n,r,a,this,o),this._mapDraw=l}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(n,r,a){var o=n.originalData,s=this.group;o.each(o.mapDimension("value"),function(l,c){if(!isNaN(l)){var u=o.getItemLayout(c);if(!(!u||!u.point)){var d=u.point,h=u.offset,f=new yN({style:{fill:n.getData().getVisual("style").fill},shape:{cx:d[0]+h*9,cy:d[1],r:3},silent:!0,z2:8+(h?0:MV+1)});if(!h){var p=n.mainSeries.getData(),m=o.getName(c),g=p.indexOfName(m),v=o.getItemModel(c),A=v.getModel("label"),y=p.getItemGraphicEl(g);hg(f,Cp(v),{labelFetcher:{getFormattedLabel:function(S,x){return n.getFormattedLabel(g,x)}},defaultText:m}),f.disableLabelAnimation=!0,A.get("position")||f.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(S){D1e(f,S)}}s.add(f)}}})},e.type="map",e}(ql);const cco=lco;var uco=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var a=this.getData().getName(r),o=this.coordinateSystem,s=o.getRegion(a);return s&&o.dataToPoint(s.getCenter())}},n}return e.prototype.getInitialData=function(n){for(var r=KV(this,{coordDimensions:["value"],encodeDefaulter:fa(Bot,this)}),a=Ur(),o=[],s=0,l=r.count();s<l;s++){var c=r.getName(s);a.set(c,!0)}var u=BM.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return Ie(u.regions,function(d){var h=d.name;a.get(h)||o.push(h)}),r.appendValues([],o),r},e.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},e.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},e.prototype.formatTooltip=function(n,r,a){for(var o=this.getData(),s=this.getRawValue(n),l=o.getName(n),c=this.seriesGroup,u=[],d=0;d<c.length;d++){var h=c[d].originalData.indexOfName(l),f=o.mapDimension("value");isNaN(c[d].originalData.get(f,h))||u.push(c[d].name)}return kp("section",{header:u.join(", "),noHeader:!u.length,blocks:[kp("nameValue",{name:l,value:s})]})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",a=vh(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return a.setStyle(n.itemStyle),a.style.stroke="none",r.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Oc);const dco=uco;function hco(t,e){var n={};return Ie(t,function(r){r.each(r.mapDimension("value"),function(a,o){var s="ec-"+r.getName(o);n[s]=n[s]||[],isNaN(a)||n[s].push(a)})}),t[0].map(t[0].mapDimension("value"),function(r,a){for(var o="ec-"+t[0].getName(a),s=0,l=1/0,c=-1/0,u=n[o].length,d=0;d<u;d++)l=Math.min(l,n[o][d]),c=Math.max(c,n[o][d]),s+=n[o][d];var h;return e==="min"?h=l:e==="max"?h=c:e==="average"?h=s/u:h=s,u===0?NaN:h})}function fco(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(e[a]=e[a]||[]).push(n)}),Ie(e,function(n,r){for(var a=hco(Rn(n,function(s){return s.getData()}),n[0].get("mapValueCalculation")),o=0;o<n.length;o++)n[o].originalData=n[o].getData();for(var o=0;o<n.length;o++)n[o].seriesGroup=n,n[o].needsDrawMap=o===0&&!n[o].getHostGeoModel(),n[o].setData(a.cloneShallow()),n[o].mainSeries=n[0]})}function pco(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||e[r])){var a={};Ie(n.seriesGroup,function(s){var l=s.coordinateSystem,c=s.originalData;s.get("showLegendSymbol")&&t.getComponent("legend")&&c.each(c.mapDimension("value"),function(u,d){var h=c.getName(d),f=l.getRegion(h);if(!(!f||isNaN(u))){var p=a[h]||0,m=l.dataToPoint(f.getCenter());a[h]=p+1,c.setItemLayout(d,{point:m,offset:p})}})});var o=n.getData();o.each(function(s){var l=o.getName(s),c=o.getItemLayout(s)||{};c.showLabel=!a[l],o.setItemLayout(s,c)}),e[r]=!0}})}var tPt=om,mco=function(t){nn(e,t);function e(n){var r=t.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new KR,r._rawTransformable=new KR,r.name=n,r}return e.prototype.setBoundingRect=function(n,r,a,o){return this._rect=new Da(n,r,a,o),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(n,r,a,o){this._transformTo(n,r,a,o),this._viewRect=new Da(n,r,a,o)},e.prototype._transformTo=function(n,r,a,o){var s=this.getBoundingRect(),l=this._rawTransformable;l.transform=s.calculateTransform(new Da(n,r,a,o));var c=l.parent;l.parent=null,l.decomposeTransform(),l.parent=c,this._updateTransform()},e.prototype.setCenter=function(n,r){n&&(this._center=[lr(n[0],r.getWidth()),lr(n[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,a=n.y+n.height/2;return[r,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,a=this.getDefaultCenter(),o=this.getCenter(),s=this.getZoom();o=om([],o,n),a=om([],a,n),r.originX=o[0],r.originY=o[1],r.x=a[0]-o[0],r.y=a[1]-o[1],r.scaleX=r.scaleY=s,this._updateTransform()},e.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),$Te(this.transform||(this.transform=[]),r.transform||r1()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],x9(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new KR;return a.transform=r.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},e.prototype.dataToPoint=function(n,r,a){var o=r?this._rawTransform:this.transform;return a=a||[],o?tPt(a,n,o):Jg(a,n)},e.prototype.pointToData=function(n){var r=this.invTransform;return r?tPt([],n,r):[n[0],n[1]]},e.prototype.convertToPixel=function(n,r,a){var o=nPt(r);return o===this?o.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var o=nPt(r);return o===this?o.pointToData(a):null},e.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},e.dimensions=["x","y"],e}(KR);function nPt(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const yse=mco;var gco={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},R7n=["lng","lat"],M7n=function(t){nn(e,t);function e(n,r,a){var o=t.call(this,n)||this;o.dimensions=R7n,o.type="geo",o._nameCoordMap=Ur(),o.map=r;var s=a.projection,l=BM.load(r,a.nameMap,a.nameProperty),c=BM.getGeoResource(r);o.resourceType=c?c.type:null;var u=o.regions=l.regions,d=gco[c.type];o._regionsMap=l.regionsMap,o.regions=l.regions,o.projection=s;var h;if(s)for(var f=0;f<u.length;f++){var p=u[f].getBoundingRect(s);h=h||p.clone(),h.union(p)}else h=l.boundingRect;return o.setBoundingRect(h.x,h.y,h.width,h.height),o.aspectScale=s?1:pa(a.aspectScale,d.aspectScale),o._invertLongitute=s?!1:d.invertLongitute,o}return e.prototype._transformTo=function(n,r,a,o){var s=this.getBoundingRect(),l=this._invertLongitute;s=s.clone(),l&&(s.y=-s.y-s.height);var c=this._rawTransformable;c.transform=s.calculateTransform(new Da(n,r,a,o));var u=c.parent;c.parent=null,c.decomposeTransform(),c.parent=u,l&&(c.scaleY=-c.scaleY),this._updateTransform()},e.prototype.getRegion=function(n){return this._regionsMap.get(n)},e.prototype.getRegionByCoord=function(n){for(var r=this.regions,a=0;a<r.length;a++){var o=r[a];if(o.type==="geoJSON"&&o.contain(n))return r[a]}},e.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},e.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},e.prototype.dataToPoint=function(n,r,a){if(vr(n)&&(n=this.getGeoCoord(n)),n){var o=this.projection;return o&&(n=o.project(n)),n&&this.projectedToPoint(n,r,a)}},e.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},e.prototype.pointToProjected=function(n){return t.prototype.pointToData.call(this,n)},e.prototype.projectedToPoint=function(n,r,a){return t.prototype.dataToPoint.call(this,n,r,a)},e.prototype.convertToPixel=function(n,r,a){var o=rPt(r);return o===this?o.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var o=rPt(r);return o===this?o.pointToData(a):null},e}(yse);Vd(M7n,yse);function rPt(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Qh).models[0]||{}).coordinateSystem:null}const iPt=M7n;function aPt(t,e){var n=t.get("boundingCoords");if(n!=null){var r=n[0],a=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var s=r[0],l=r[1],c=a[0],u=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var d=function(_,C,R,k){for(var P=R-_,N=k-C,L=0;L<=100;L++){var I=L/100,b=o.project([_+P*I,C+N*I]);GR(r,r,b),VR(a,a,b)}};d(s,l,c,l),d(c,l,c,u),d(c,u,s,u),d(s,u,c,l)}this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}}var h=this.getBoundingRect(),f=t.get("layoutCenter"),p=t.get("layoutSize"),m=e.getWidth(),g=e.getHeight(),v=h.width/h.height*this.aspectScale,A=!1,y,S;f&&p&&(y=[lr(f[0],m),lr(f[1],g)],S=lr(p,Math.min(m,g)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(S)&&(A=!0));var x;if(A)x={},v>1?(x.width=S,x.height=S/v):(x.height=S,x.width=S*v),x.y=y[1]-x.height/2,x.x=y[0]-x.width/2;else{var w=t.getBoxLayoutParams();w.aspect=v,x=nf(w,{width:m,height:g})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function vco(t,e){Ie(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var Aco=function(){function t(){this.dimensions=R7n}return t.prototype.create=function(e,n){var r=[];function a(s){return{nameProperty:s.get("nameProperty"),aspectScale:s.get("aspectScale"),projection:s.get("projection")}}e.eachComponent("geo",function(s,l){var c=s.get("map"),u=new iPt(c+l,c,An({nameMap:s.get("nameMap")},a(s)));u.zoomLimit=s.get("scaleLimit"),r.push(u),s.coordinateSystem=u,u.model=s,u.resize=aPt,u.resize(s,n)}),e.eachSeries(function(s){var l=s.get("coordinateSystem");if(l==="geo"){var c=s.get("geoIndex")||0;s.coordinateSystem=r[c]}});var o={};return e.eachSeriesByType("map",function(s){if(!s.getHostGeoModel()){var l=s.getMapType();o[l]=o[l]||[],o[l].push(s)}}),Ie(o,function(s,l){var c=Rn(s,function(d){return d.get("nameMap")}),u=new iPt(l,l,An({nameMap:LTe(c)},a(s[0])));u.zoomLimit=gp.apply(null,Rn(s,function(d){return d.get("scaleLimit")})),r.push(u),u.resize=aPt,u.resize(s[0],n),Ie(s,function(d){d.coordinateSystem=u,vco(u,d)})}),r},t.prototype.getFilledRegions=function(e,n,r,a){for(var o=(e||[]).slice(),s=Ur(),l=0;l<o.length;l++)s.set(o[l].name,o[l]);var c=BM.load(n,r,a);return Ie(c.regions,function(u){var d=u.name;!s.get(d)&&o.push({name:d})}),o},t}(),yco=new Aco;const N7n=yco;var bco=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,a){var o=BM.getGeoResource(n.map);if(o&&o.type==="geoJSON"){var s=n.itemStyle=n.itemStyle||{};"color"in s||(s.color="#eee")}this.mergeDefaultAndTheme(n,a),e8(n,"label",["show"])},e.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=N7n.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=Zx(r.regions||[],function(o,s){var l=s.name;return l&&(o.set(l,new Kl(s,n,n.ecModel)),s.selected&&(a[l]=!0)),o},Ur()),r.selectedMap||(r.selectedMap=a)},e.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new Kl(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(n,r){var a=this.getRegionModel(n),o=r==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),s={name:n};if(ai(o))return s.status=r,o(s);if(vr(o))return o.replace("{a}",n??"")},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.select=function(n){var r=this.option,a=r.selectedMode;if(a){a!=="multiple"&&(r.selectedMap=null);var o=r.selectedMap||(r.selectedMap={});o[n]=!0}},e.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},e.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},e.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Fo);const xco=bco;function oPt(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function wst(t,e,n,r){var a=t.getZoom(),o=t.getCenter(),s=e.zoom,l=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(e.dx!=null&&e.dy!=null&&(l[0]-=e.dx,l[1]-=e.dy,t.setCenter(oPt(t,l),r)),s!=null){if(n){var c=n.min||0,u=n.max||1/0;s=Math.max(Math.min(a*s,u),c)/a}t.scaleX*=s,t.scaleY*=s;var d=(e.originX-t.x)*(s-1),h=(e.originY-t.y)*(s-1);t.x-=d,t.y-=h,t.updateTransform(),t.setCenter(oPt(t,l),r),t.setZoom(s*a)}return{center:t.getCenter(),zoom:t.getZoom()}}var Eco=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return e.prototype.init=function(n,r){this._api=r},e.prototype.render=function(n,r,a,o){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new k7n(a));var s=this._mapDraw;s.draw(n,r,a,this,o),s.group.on("click",this._handleRegionClick,this),s.group.silent=n.get("silent"),this.group.add(s.group),this.updateSelectStatus(n,r,a)},e.prototype._handleRegionClick=function(n){var r;tD(n.target,function(a){return(r=ia(a).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(n,r,a){var o=this;this._mapDraw.group.traverse(function(s){var l=ia(s).eventData;if(l)return o._model.isSelected(l.name)?a.enterSelect(s):a.leaveSelect(s),!0})},e.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Au);const Sco=Eco;function wco(t,e,n){BM.registerMap(t,e,n)}function I7n(t){t.registerCoordinateSystem("geo",N7n),t.registerComponentModel(xco),t.registerComponentView(Sco),t.registerImpl("registerMap",wco),t.registerImpl("getMap",function(n){return BM.getMapForUser(n)});function e(n,r){r.update="geo:updateSelectStatus",t.registerAction(r,function(a,o){var s={},l=[];return o.eachComponent({mainType:"geo",query:a},function(c){c[n](a.name);var u=c.coordinateSystem;Ie(u.regions,function(h){s[h.name]=c.isSelected(h.name)||!1});var d=[];Ie(s,function(h,f){s[f]&&d.push(f)}),l.push({geoIndex:c.componentIndex,name:d})}),{selected:s,allSelected:l,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var o=n.componentType||"series";r.eachComponent({mainType:o,query:n},function(s){var l=s.coordinateSystem;if(l.type==="geo"){var c=wst(l,n,s.get("scaleLimit"),a);s.setCenter&&s.setCenter(c.center),s.setZoom&&s.setZoom(c.zoom),o==="series"&&Ie(s.seriesGroup,function(u){u.setCenter(c.center),u.setZoom(c.zoom)})}})})}function _co(t){qa(I7n),t.registerChartView(cco),t.registerSeriesModel(dco),t.registerLayout(pco),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,fco),T9n("map",t.registerAction)}function Tco(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[e],r,a;r=n.pop();)if(a=r.children,r.isExpand&&a.length)for(var o=a.length,s=o-1;s>=0;s--){var l=a[s];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:s,thread:null},n.push(l)}}function Cco(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,a=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){Mco(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=Nco(t,a,t.parentNode.hierNode.defaultAncestor||r[0],e)}function kco(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function sPt(t){return arguments.length?t:Oco}function $Z(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Rco(t,e){return nf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Mco(t){for(var e=t.children,n=e.length,r=0,a=0;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,a+=o.hierNode.change,r+=o.hierNode.shift+a}}function Nco(t,e,n,r){if(e){for(var a=t,o=t,s=o.parentNode.children[0],l=e,c=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier,h=l.hierNode.modifier;l=q6e(l),o=Y6e(o),l&&o;){a=q6e(a),s=Y6e(s),a.hierNode.ancestor=t;var f=l.hierNode.prelim+h-o.hierNode.prelim-u+r(l,o);f>0&&(Pco(Ico(l,t,n),t,f),u+=f,c+=f),h+=l.hierNode.modifier,u+=o.hierNode.modifier,c+=a.hierNode.modifier,d+=s.hierNode.modifier}l&&!q6e(a)&&(a.hierNode.thread=l,a.hierNode.modifier+=h-c),o&&!Y6e(s)&&(s.hierNode.thread=o,s.hierNode.modifier+=u-d,n=t)}return n}function q6e(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Y6e(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Ico(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function Pco(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function Oco(t,e){return t.parentNode===e.parentNode?1:2}var Lco=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),Bco=function(t){nn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lco},e.prototype.buildPath=function(n,r){var a=r.childPoints,o=a.length,s=r.parentPoint,l=a[0],c=a[o-1];if(o===1){n.moveTo(s[0],s[1]),n.lineTo(l[0],l[1]);return}var u=r.orient,d=u==="TB"||u==="BT"?0:1,h=1-d,f=lr(r.forkPosition,1),p=[];p[d]=s[d],p[h]=s[h]+(c[h]-s[h])*f,n.moveTo(s[0],s[1]),n.lineTo(p[0],p[1]),n.moveTo(l[0],l[1]),p[d]=l[d],n.lineTo(p[0],p[1]),p[d]=c[d],n.lineTo(p[0],p[1]),n.lineTo(c[0],c[1]);for(var m=1;m<o-1;m++){var g=a[m];n.moveTo(g[0],g[1]),p[d]=g[d],n.lineTo(p[0],p[1])}},e}(no),Dco=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new ta,n}return e.prototype.init=function(n,r){this._controller=new Ase(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(n,r,a){var o=n.getData(),s=n.layoutInfo,l=this._mainGroup,c=n.get("layout");c==="radial"?(l.x=s.x+s.width/2,l.y=s.y+s.height/2):(l.x=s.x,l.y=s.y),this._updateViewCoordSys(n,a),this._updateController(n,r,a);var u=this._data;o.diff(u).add(function(d){lPt(o,d)&&cPt(o,d,null,l,n)}).update(function(d,h){var f=u.getItemGraphicEl(h);if(!lPt(o,d)){f&&dPt(u,h,f,l,n);return}cPt(o,d,f,l,n)}).remove(function(d){var h=u.getItemGraphicEl(d);h&&dPt(u,d,h,l,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(d,h){d.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:h})})}),this._data=o},e.prototype._updateViewCoordSys=function(n,r){var a=n.getData(),o=[];a.each(function(h){var f=a.getItemLayout(h);f&&!isNaN(f.x)&&!isNaN(f.y)&&o.push([+f.x,+f.y])});var s=[],l=[];KTe(o,s,l);var c=this._min,u=this._max;l[0]-s[0]===0&&(s[0]=c?c[0]:s[0]-1,l[0]=u?u[0]:l[0]+1),l[1]-s[1]===0&&(s[1]=c?c[1]:s[1]-1,l[1]=u?u[1]:l[1]+1);var d=n.coordinateSystem=new yse;d.zoomLimit=n.get("scaleLimit"),d.setBoundingRect(s[0],s[1],l[0]-s[0],l[1]-s[1]),d.setCenter(n.get("center"),r),d.setZoom(n.get("zoom")),this.group.attr({x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY}),this._min=s,this._max=l},e.prototype._updateController=function(n,r,a){var o=this,s=this._controller,l=this._controllerHost,c=this.group;s.setPointerChecker(function(u,d,h){var f=c.getBoundingRect();return f.applyTransform(c.transform),f.contain(d,h)&&!g2e(u,a,n)}),s.enable(n.get("roam")),l.zoomLimit=n.get("scaleLimit"),l.zoom=n.coordinateSystem.getZoom(),s.off("pan").off("zoom").on("pan",function(u){xst(l,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Est(l,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(n),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),a=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(o,s){o.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var a=this._nodeScaleRatio,o=r.scaleX||1,s=r.getZoom(),l=(s-1)*a+1;return l/o},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(ql);function lPt(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function cPt(t,e,n,r,a){var o=!n,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),c=s.getVisual("style").fill,u=s.isExpand===!1&&s.children.length!==0?c:"#fff",d=t.tree.root,h=s.parentNode===d?s:s.parentNode||s,f=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,g=s.getLayout();o?(n=new hse(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,vs(n,{x:g.x,y:g.y},a);var v=n.getSymbolPath();if(a.get("layout")==="radial"){var A=d.children[0],y=A.getLayout(),S=A.children.length,x=void 0,w=void 0;if(g.x===y.x&&s.isExpand===!0&&A.children.length){var _={x:(A.children[0].getLayout().x+A.children[S-1].getLayout().x)/2,y:(A.children[0].getLayout().y+A.children[S-1].getLayout().y)/2};x=Math.atan2(_.y-y.y,_.x-y.x),x<0&&(x=Math.PI*2+x),w=_.x<y.x,w&&(x=x-Math.PI)}else x=Math.atan2(g.y-y.y,g.x-y.x),x<0&&(x=Math.PI*2+x),s.children.length===0||s.children.length!==0&&s.isExpand===!1?(w=g.x<y.x,w&&(x=x-Math.PI)):(w=g.x>y.x,w||(x=x-Math.PI));var C=w?"left":"right",R=l.getModel("label"),k=R.get("rotate"),P=k*(Math.PI/180),N=v.getTextContent();N&&(v.setTextConfig({position:R.get("position")||C,rotation:k==null?-x:P,origin:"center"}),N.setStyle("verticalAlign","middle"))}var L=l.get(["emphasis","focus"]),I=L==="relative"?ere(s.getAncestorsIndices(),s.getDescendantIndices()):L==="ancestor"?s.getAncestorsIndices():L==="descendant"?s.getDescendantIndices():null;I&&(ia(n).focus=I),$co(a,s,d,n,m,p,g,r),n.__edge&&(n.onHoverStateChange=function(b){if(b!=="blur"){var T=s.parentNode&&t.getItemGraphicEl(s.parentNode.dataIndex);T&&T.hoverState===rse||D1e(n.__edge,b)}})}function $co(t,e,n,r,a,o,s,l){var c=e.getModel(),u=t.get("edgeShape"),d=t.get("layout"),h=t.getOrient(),f=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),m=c.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new ase({shape:SWe(d,h,f,a,a)})),vs(g,{shape:SWe(d,h,f,o,s)},t));else if(u==="polyline"&&d==="orthogonal"&&e!==n&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var v=e.children,A=[],y=0;y<v.length;y++){var S=v[y].getLayout();A.push([S.x,S.y])}g||(g=r.__edge=new Bco({shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]],orient:h,forkPosition:p}})),vs(g,{shape:{parentPoint:[s.x,s.y],childPoints:A}},t)}g&&!(u==="polyline"&&!e.isExpand)&&(g.useStyle(bi({strokeNoScale:!0,fill:null},m)),dg(g,c,"lineStyle"),r8(g),l.add(g))}function uPt(t,e,n,r,a){var o=e.tree.root,s=P7n(o,t),l=s.source,c=s.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var d=e.getItemGraphicEl(l.dataIndex),h=d.__edge,f=u.__edge||(l.isExpand===!1||l.children.length===1?h:void 0),p=r.get("edgeShape"),m=r.get("layout"),g=r.get("orient"),v=r.get(["lineStyle","curveness"]);f&&(p==="curve"?RP(f,{shape:SWe(m,g,v,c,c),style:{opacity:0}},r,{cb:function(){n.remove(f)},removeOpt:a}):p==="polyline"&&r.get("layout")==="orthogonal"&&RP(f,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(f)},removeOpt:a}))}}function P7n(t,e){for(var n=e.parentNode===t?e:e.parentNode||e,r;r=n.getLayout(),r==null;)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:r}}function dPt(t,e,n,r,a){var o=t.tree.getNodeByDataIndex(e),s=t.tree.root,l=P7n(s,o).sourceLayout,c={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};RP(n,{x:l.x+1,y:l.y+1},a,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:c}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:c}),o.children.forEach(function(u){uPt(u,t,r,a,c)}),uPt(o,t,r,a,c)}function SWe(t,e,n,r,a){var o,s,l,c,u,d,h,f;if(t==="radial"){u=r.rawX,h=r.rawY,d=a.rawX,f=a.rawY;var p=$Z(u,h),m=$Z(u,h+(f-h)*n),g=$Z(d,f+(h-f)*n),v=$Z(d,f);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=r.x,h=r.y,d=a.x,f=a.y,(e==="LR"||e==="RL")&&(o=u+(d-u)*n,s=h,l=d+(u-d)*n,c=f),(e==="TB"||e==="BT")&&(o=u,s=h+(f-h)*n,l=d,c=f+(h-f)*n);return{x1:u,y1:h,x2:d,y2:f,cpx1:o,cpy1:s,cpx2:l,cpy2:c}}const Fco=Dco;var Bx=ds();function O7n(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,L7n(e,n,t),Ie(n,function(r){Ie(e.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,fa(jco,t))})}),e.wrapMethod("cloneShallow",fa(Uco,t)),Ie(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,fa(Hco,t))}),Tv(n[e.dataType]===e)}function jco(t,e){if(Vco(this)){var n=An({},Bx(this).datas);n[this.dataType]=e,L7n(e,n,t)}else _st(e,this.dataType,Bx(this).mainData,t);return e}function Hco(t,e){return t.struct&&t.struct.update(),e}function Uco(t,e){return Ie(Bx(e).datas,function(n,r){n!==e&&_st(n.cloneShallow(),r,e,t)}),e}function zco(t){var e=Bx(this).mainData;return t==null||e==null?e:Bx(e).datas[t]}function Gco(){var t=Bx(this).mainData;return t==null?[{data:t}]:Rn(bo(Bx(t).datas),function(e){return{type:e,data:Bx(t).datas[e]}})}function Vco(t){return Bx(t).mainData===t}function L7n(t,e,n){Bx(t).datas={},Ie(e,function(r,a){_st(r,a,t,n)})}function _st(t,e,n,r){Bx(n).datas[e]=t,Bx(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=zco,t.getLinkedDataAll=Gco}var Kco=function(){function t(e,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=n}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,n,r){ai(e)&&(r=n,n=e,e=null),e=e||{},vr(e)&&(e={order:e});var a=e.order||"preorder",o=this[e.attr||"children"],s;a==="preorder"&&(s=n.call(r,this));for(var l=0;!s&&l<o.length;l++)o[l].eachNode(e,n,r);a==="postorder"&&n.call(r,this)},t.prototype.updateDepthAndHeight=function(e){var n=0;this.depth=e;for(var r=0;r<this.children.length;r++){var a=this.children[r];a.updateDepthAndHeight(e+1),a.height>n&&(n=a.height)}this.height=n+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var n=0,r=this.children,a=r.length;n<a;n++){var o=r[n].getNodeById(e);if(o)return o}},t.prototype.contains=function(e){if(e===this)return!0;for(var n=0,r=this.children,a=r.length;n<a;n++){var o=r[n].contains(e);if(o)return o}},t.prototype.getAncestors=function(e){for(var n=[],r=e?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},t.prototype.getAncestorsIndices=function(){for(var e=[],n=this;n;)e.push(n.dataIndex),n=n.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(n){e.push(n.dataIndex)}),e},t.prototype.getValue=function(e){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,n)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,n=0;n<e.length;++n)if(e[n]===this)return n;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var n=e.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),Wco=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,n,r){this.root.eachNode(e,n,r)},t.prototype.getNodeByDataIndex=function(e){var n=this.data.getRawIndex(e);return this._nodes[n]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,n=this._nodes,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=e.count();r<a;r++)n[e.getRawIndex(r)].dataIndex=r},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var a=new t(n),o=[],s=1;l(e);function l(d,h){var f=d.value;s=Math.max(s,Tn(f)?f.length:1),o.push(d);var p=new Kco(Lf(d.name,""),a);h?Qco(p,h):a.root=p,a._nodes.push(p);var m=d.children;if(m)for(var g=0;g<m.length;g++)l(m[g],p)}a.root.updateDepthAndHeight(0);var c=GV(o,{coordDimensions:["value"],dimensionsCount:s}).dimensions,u=new bv(c,n);return u.initData(o),r&&r(u),O7n({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},t}();function Qco(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}const Tst=Wco;function Ere(t,e,n){if(t&&za(e,t.type)>=0){var r=n.getData().tree.root,a=t.targetNode;if(vr(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var o=t.targetNodeId;if(o!=null&&(a=r.getNodeById(o)))return{node:a}}}function B7n(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function Cst(t,e){var n=B7n(t);return za(n,e)>=0}function A2e(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var qco=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},o=new Kl(a,this,this.ecModel),s=Tst.createTree(r,this,l);function l(h){h.wrapMethod("getItemModel",function(f,p){var m=s.getNodeByDataIndex(p);return m&&m.children.length&&m.isExpand||(f.parentModel=o),f})}var c=0;s.eachNode("preorder",function(h){h.depth>c&&(c=h.depth)});var u=n.expandAndCollapse,d=u&&n.initialTreeDepth>=0?n.initialTreeDepth:c;return s.root.eachNode("preorder",function(h){var f=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=f&&f.collapsed!=null?!f.collapsed:h.depth<=d}),s.data},e.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.formatTooltip=function(n,r,a){for(var o=this.getData().tree,s=o.root.children[0],l=o.getNodeByDataIndex(n),c=l.getValue(),u=l.name;l&&l!==s;)u=l.parentNode.name+"."+u,l=l.parentNode;return kp("nameValue",{name:u,value:c,noValue:isNaN(c)||c==null})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=A2e(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Oc);const Yco=qco;function Jco(t,e,n){for(var r=[t],a=[],o;o=r.pop();)if(a.push(o),o.isExpand){var s=o.children;if(s.length)for(var l=0;l<s.length;l++)r.push(s[l])}for(;o=a.pop();)e(o,n)}function Yq(t,e){for(var n=[t],r;r=n.pop();)if(e(r),r.isExpand){var a=r.children;if(a.length)for(var o=a.length-1;o>=0;o--)n.push(a[o])}}function Zco(t,e){t.eachSeriesByType("tree",function(n){Xco(n,e)})}function Xco(t,e){var n=Rco(t,e);t.layoutInfo=n;var r=t.get("layout"),a=0,o=0,s=null;r==="radial"?(a=2*Math.PI,o=Math.min(n.height,n.width)/2,s=sPt(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(a=n.width,o=n.height,s=sPt());var l=t.getData().tree.root,c=l.children[0];if(c){Tco(l),Jco(c,Cco,s),l.hierNode.modifier=-c.hierNode.prelim,Yq(c,kco);var u=c,d=c,h=c;Yq(c,function(S){var x=S.getLayout().x;x<u.getLayout().x&&(u=S),x>d.getLayout().x&&(d=S),S.depth>h.depth&&(h=S)});var f=u===d?1:s(u,d)/2,p=f-u.getLayout().x,m=0,g=0,v=0,A=0;if(r==="radial")m=a/(d.getLayout().x+f+p),g=o/(h.depth-1||1),Yq(c,function(S){v=(S.getLayout().x+p)*m,A=(S.depth-1)*g;var x=$Z(v,A);S.setLayout({x:x.x,y:x.y,rawX:v,rawY:A},!0)});else{var y=t.getOrient();y==="RL"||y==="LR"?(g=o/(d.getLayout().x+f+p),m=a/(h.depth-1||1),Yq(c,function(S){A=(S.getLayout().x+p)*g,v=y==="LR"?(S.depth-1)*m:a-(S.depth-1)*m,S.setLayout({x:v,y:A},!0)})):(y==="TB"||y==="BT")&&(m=a/(d.getLayout().x+f+p),g=o/(h.depth-1||1),Yq(c,function(S){v=(S.getLayout().x+p)*m,A=y==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:v,y:A},!0)}))}}}function euo(t){t.eachSeriesByType("tree",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(a){var o=a.getModel(),s=o.getModel("itemStyle").getItemStyle(),l=n.ensureUniqueItemVisual(a.dataIndex,"style");An(l,s)})})}function tuo(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,o=r.getData().tree,s=o.getNodeByDataIndex(a);s.isExpand=!s.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var o=a.coordinateSystem,s=wst(o,e,void 0,r);a.setCenter&&a.setCenter(s.center),a.setZoom&&a.setZoom(s.zoom)})})}function nuo(t){t.registerChartView(Fco),t.registerSeriesModel(Yco),t.registerLayout(Zco),t.registerVisual(euo),tuo(t)}var hPt=["treemapZoomToNode","treemapRender","treemapMove"];function ruo(t){for(var e=0;e<hPt.length;e++)t.registerAction({type:hPt[e],update:"updateView"},jd);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},a);function a(o,s){var l=["treemapZoomToNode","treemapRootToNode"],c=Ere(n,l,o);if(c){var u=o.getViewRoot();u&&(n.direction=Cst(u,c.node)?"rollUp":"drillDown"),o.resetViewRoot(c.node)}}})}function D7n(t){var e=t.getData(),n=e.tree,r={};n.eachNode(function(a){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=JKe(t.ecModel,o.name||o.dataIndex+"",r);a.setVisual("decal",s)})}var iuo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return e.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};$7n(a);var o=n.levels||[],s=this.designatedVisualItemStyle={},l=new Kl({itemStyle:s},this,r);o=n.levels=auo(o,r);var c=Rn(o||[],function(h){return new Kl(h,l,r)},this),u=Tst.createTree(a,this,d);function d(h){h.wrapMethod("getItemModel",function(f,p){var m=u.getNodeByDataIndex(p),g=m?c[m.depth]:null;return f.parentModel=g||l,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,a){var o=this.getData(),s=this.getRawValue(n),l=o.getName(n);return kp("nameValue",{name:l,value:s})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=A2e(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},An(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Ur(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){D7n(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Oc);function $7n(t){var e=0;Ie(t.children,function(r){$7n(r);var a=r.value;Tn(a)&&(a=a[0]),e+=a});var n=t.value;Tn(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),Tn(t.value)?t.value[0]=n:t.value=n}function auo(t,e){var n=Ql(e.get("color")),r=Ql(e.get(["aria","decal","decals"]));if(n){t=t||[];var a,o;Ie(t,function(l){var c=new Kl(l),u=c.get("color"),d=c.get("decal");(c.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(c.get(["itemStyle","decal"])||d&&d!=="none")&&(o=!0)});var s=t[0]||(t[0]={});return a||(s.color=n.slice()),!o&&r&&(s.decal=r.slice()),t}}const ouo=iuo;var suo=8,fPt=8,J6e=5,luo=function(){function t(e){this.group=new ta,e.add(this.group)}return t.prototype.render=function(e,n,r,a){var o=e.getModel("breadcrumb"),s=this.group;if(s.removeAll(),!(!o.get("show")||!r)){var l=o.getModel("itemStyle"),c=o.getModel("emphasis"),u=l.getModel("textStyle"),d=c.getModel(["itemStyle","textStyle"]),h={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,h,u),this._renderContent(e,h,l,c,u,d,a),a2e(s,h.pos,h.box)}},t.prototype._prepare=function(e,n,r){for(var a=e;a;a=a.parentNode){var o=Lf(a.getModel().get("name"),""),s=r.getTextRect(o),l=Math.max(s.width+suo*2,n.emptyItemWidth);n.totalWidth+=l+fPt,n.renderList.push({node:a,text:o,width:l})}},t.prototype._renderContent=function(e,n,r,a,o,s,l){for(var c=0,u=n.emptyItemWidth,d=e.get(["breadcrumb","height"]),h=eto(n.pos,n.box),f=n.totalWidth,p=n.renderList,m=a.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var v=p[g],A=v.node,y=v.width,S=v.text;f>h.width&&(f-=y-u,y=u,S=null);var x=new Y0({shape:{points:cuo(c,0,y,d,g===p.length-1,g===0)},style:bi(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Jo({style:yc(o,{text:S})}),textConfig:{position:"inside"},z2:MV*1e4,onclick:fa(l,A)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=yc(s,{text:S}),x.ensureState("emphasis").style=m,bd(x,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(x),uuo(x,e,A),c+=y+fPt}},t.prototype.remove=function(){this.group.removeAll()},t}();function cuo(t,e,n,r,a,o){var s=[[a?t:t-J6e,e],[t+n,e],[t+n,e+r],[a?t:t-J6e,e+r]];return!o&&s.splice(2,0,[t+n+J6e,e+r/2]),!a&&s.push([t,e+r/2]),s}function uuo(t,e,n){ia(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&A2e(n,e)}}const duo=luo;var huo=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,a,o){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:a,easing:o}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,n=this._storage.length,r=function(){n--,n<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,o=this._storage.length;a<o;a++){var s=this._storage[a];s.el.animateTo(s.target,{duration:s.duration,delay:s.delay,easing:s.easing,setToFinal:!0,done:r,aborted:r})}return this},t}();function fuo(){return new huo}var wWe=ta,pPt=Zo,mPt=3,gPt="label",vPt="upperLabel",puo=MV*10,muo=MV*2,guo=MV*3,rB=n8([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),APt=function(t){var e=rB(t);return e.stroke=e.fill=e.lineWidth=null,e},lye=ds(),vuo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=Jq(),n}return e.prototype.render=function(n,r,a,o){var s=r.findComponents({mainType:"series",subType:"treemap",query:o});if(!(za(s,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var l=["treemapZoomToNode","treemapRootToNode"],c=Ere(o,l,n),u=o&&o.type,d=n.layoutInfo,h=!this._oldTree,f=this._storage,p=u==="treemapRootToNode"&&c&&f?{rootNodeGroup:f.nodeGroup[c.node.getRawIndex()],direction:o.direction}:null,m=this._giveContainerGroup(d),g=n.get("animation"),v=this._doRender(m,n,p);g&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(m,v,n,p):v.renderFinally(),this._resetController(a),this._renderBreadcrumb(n,a,c)}},e.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new wWe,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},e.prototype._doRender=function(n,r,a){var o=r.getData().tree,s=this._oldTree,l=Jq(),c=Jq(),u=this._storage,d=[];function h(v,A,y,S){return Auo(r,c,u,a,l,d,v,A,y,S)}p(o.root?[o.root]:[],s&&s.root?[s.root]:[],n,o===s||!s,0);var f=m(u);return this._oldTree=o,this._storage=c,{lastsForAnimation:l,willDeleteEls:f,renderFinally:g};function p(v,A,y,S,x){S?(A=v,Ie(v,function(C,R){!C.isRemoved()&&_(R,R)})):new PM(A,v,w,w).add(_).update(_).remove(fa(_,null)).execute();function w(C){return C.getId()}function _(C,R){var k=C!=null?v[C]:null,P=R!=null?A[R]:null,N=h(k,P,y,x);N&&p(k&&k.viewChildren||[],P&&P.viewChildren||[],N,S,x+1)}}function m(v){var A=Jq();return v&&Ie(v,function(y,S){var x=A[S];Ie(y,function(w){w&&(x.push(w),lye(w).willDelete=!0)})}),A}function g(){Ie(f,function(v){Ie(v,function(A){A.parent&&A.parent.remove(A)})}),Ie(d,function(v){v.invisible=!0,v.dirty()})}},e.prototype._doAnimation=function(n,r,a,o){var s=a.get("animationDurationUpdate"),l=a.get("animationEasing"),c=(ai(s)?0:s)||0,u=(ai(l)?null:l)||"cubicOut",d=fuo();Ie(r.willDeleteEls,function(h,f){Ie(h,function(p,m){if(!p.invisible){var g=p.parent,v,A=lye(g);if(o&&o.direction==="drillDown")v=g===o.rootNodeGroup?{shape:{x:0,y:0,width:A.nodeWidth,height:A.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,S=0;A.willDelete||(y=A.nodeWidth/2,S=A.nodeHeight/2),v=f==="nodeGroup"?{x:y,y:S,style:{opacity:0}}:{shape:{x:y,y:S,width:0,height:0},style:{opacity:0}}}v&&d.add(p,v,c,0,u)}})}),Ie(this._storage,function(h,f){Ie(h,function(p,m){var g=r.lastsForAnimation[f][m],v={};g&&(p instanceof ta?g.oldX!=null&&(v.x=p.x,v.y=p.y,p.x=g.oldX,p.y=g.oldY):(g.oldShape&&(v.shape=An({},p.shape),p.setShape(g.oldShape)),g.fadein?(p.setStyle("opacity",0),v.style={opacity:1}):p.style.opacity!==1&&(v.style={opacity:1})),d.add(p,v,c,0,u))})},this),this._state="animating",d.finished(Cr(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new Ase(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",Cr(this._onPan,this)),r.on("zoom",Cr(this._onZoom,this)));var a=new Da(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(o,s,l){return a.contain(s,l)})},e.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},e.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>mPt||Math.abs(n.dy)>mPt)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(n){var r=n.originX,a=n.originY;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Da(s.x,s.y,s.width,s.height),c=this.seriesModel.layoutInfo;r-=c.x,a-=c.y;var u=r1();Dw(u,u,[-r,-a]),FTe(u,u,[n.scale,n.scale]),Dw(u,u,[r,a]),l.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var s=r.findTarget(a.offsetX,a.offsetY);if(s){var l=s.node;if(l.getLayout().isLeafRoot)r._rootToNode(s);else if(o==="zoomToNode")r._zoomToNode(s);else if(o==="link"){var c=l.hostTree.data.getItemModel(l.dataIndex),u=c.get("link",!0),d=c.get("target",!0)||"blank";u&&z1e(u,d)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,a){var o=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new duo(this.group))).render(n,r,a.node,function(s){o._state!=="animating"&&(Cst(n.getViewRoot(),s)?o._rootToNode({node:s}):o._zoomToNode({node:s}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Jq(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype.findTarget=function(n,r){var a,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(s){var l=this._storage.background[s.getRawIndex()];if(l){var c=l.transformCoordToLocal(n,r),u=l.shape;if(u.x<=c[0]&&c[0]<=u.x+u.width&&u.y<=c[1]&&c[1]<=u.y+u.height)a={node:s,offsetX:c[0],offsetY:c[1]};else return!1}},this),a},e.type="treemap",e}(ql);function Jq(){return{nodeGroup:[],background:[],content:[]}}function Auo(t,e,n,r,a,o,s,l,c,u){if(!s)return;var d=s.getLayout(),h=t.getData(),f=s.getModel();if(h.setItemGraphicEl(s.dataIndex,null),!d||!d.isInView)return;var p=d.width,m=d.height,g=d.borderWidth,v=d.invisible,A=s.getRawIndex(),y=l&&l.getRawIndex(),S=s.viewChildren,x=d.upperHeight,w=S&&S.length,_=f.getModel("itemStyle"),C=f.getModel(["emphasis","itemStyle"]),R=f.getModel(["blur","itemStyle"]),k=f.getModel(["select","itemStyle"]),P=_.get("borderRadius")||0,N=Z("nodeGroup",wWe);if(!N)return;if(c.add(N),N.x=d.x||0,N.y=d.y||0,N.markRedraw(),lye(N).nodeWidth=p,lye(N).nodeHeight=m,d.isAboveViewRoot)return N;var L=Z("background",pPt,u,muo);L&&j(N,L,w&&d.upperLabelHeight);var I=f.getModel("emphasis"),b=I.get("focus"),T=I.get("blurScope"),M=I.get("disabled"),D=b==="ancestor"?s.getAncestorsIndices():b==="descendant"?s.getDescendantIndices():b;if(w)ure(N)&&XB(N,!1),L&&(XB(L,!M),h.setItemGraphicEl(s.dataIndex,L),zKe(L,D,T));else{var B=Z("content",pPt,u,guo);B&&H(N,B),L.disableMorphing=!0,L&&ure(L)&&XB(L,!1),XB(N,!M),h.setItemGraphicEl(s.dataIndex,N),zKe(N,D,T)}return N;function j(ee,X,te){var J=ia(X);if(J.dataIndex=s.dataIndex,J.seriesIndex=t.seriesIndex,X.setShape({x:0,y:0,width:p,height:m,r:P}),v)U(X);else{X.invisible=!1;var ne=s.getVisual("style"),ie=ne.stroke,he=APt(_);he.fill=ie;var de=rB(C);de.fill=C.get("borderColor");var ce=rB(R);ce.fill=R.get("borderColor");var Ee=rB(k);if(Ee.fill=k.get("borderColor"),te){var Me=p-2*g;$(X,ie,ne.opacity,{x:g,y:0,width:Me,height:x})}else X.removeTextContent();X.setStyle(he),X.ensureState("emphasis").style=de,X.ensureState("blur").style=ce,X.ensureState("select").style=Ee,r8(X)}ee.add(X)}function H(ee,X){var te=ia(X);te.dataIndex=s.dataIndex,te.seriesIndex=t.seriesIndex;var J=Math.max(p-2*g,0),ne=Math.max(m-2*g,0);if(X.culling=!0,X.setShape({x:g,y:g,width:J,height:ne,r:P}),v)U(X);else{X.invisible=!1;var ie=s.getVisual("style"),he=ie.fill,de=APt(_);de.fill=he,de.decal=ie.decal;var ce=rB(C),Ee=rB(R),Me=rB(k);$(X,he,ie.opacity,null),X.setStyle(de),X.ensureState("emphasis").style=ce,X.ensureState("blur").style=Ee,X.ensureState("select").style=Me,r8(X)}ee.add(X)}function U(ee){!ee.invisible&&o.push(ee)}function $(ee,X,te,J){var ne=f.getModel(J?vPt:gPt),ie=Lf(f.get("name"),null),he=ne.getShallow("show");hg(ee,Cp(f,J?vPt:gPt),{defaultText:he?ie:null,inheritColor:X,defaultOpacity:te,labelFetcher:t,labelDataIndex:s.dataIndex});var de=ee.getTextContent();if(de){var ce=de.style,Ee=DTe(ce.padding||0);J&&(ee.setTextConfig({layoutRect:J}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var Be=Math.max((J?J.width:ee.shape.width)-Ee[1]-Ee[3],0),ze=Math.max((J?J.height:ee.shape.height)-Ee[0]-Ee[2],0);(ce.width!==Be||ce.height!==ze)&&de.setStyle({width:Be,height:ze})},ce.truncateMinChar=2,ce.lineOverflow="truncate",z(ce,J,d);var Me=de.getState("emphasis");z(Me?Me.style:null,J,d)}}function z(ee,X,te){var J=ee?ee.text:null;if(!X&&te.isLeafRoot&&J!=null){var ne=t.get("drillDownIcon",!0);ee.text=ne?ne+" "+J:J}}function Z(ee,X,te,J){var ne=y!=null&&n[ee][y],ie=a[ee];return ne?(n[ee][y]=null,K(ie,ne)):v||(ne=new X,ne instanceof Xx&&(ne.z2=yuo(te,J)),Q(ie,ne)),e[ee][A]=ne}function K(ee,X){var te=ee[A]={};X instanceof wWe?(te.oldX=X.x,te.oldY=X.y):te.oldShape=An({},X.shape)}function Q(ee,X){var te=ee[A]={},J=s.parentNode,ne=X instanceof ta;if(J&&(!r||r.direction==="drillDown")){var ie=0,he=0,de=a.background[J.getRawIndex()];!r&&de&&de.oldShape&&(ie=de.oldShape.width,he=de.oldShape.height),ne?(te.oldX=0,te.oldY=he):te.oldShape={x:ie,y:he,width:0,height:0}}te.fadein=!ne}}function yuo(t,e){return t*puo+e}const buo=vuo;var Sre=Ie,xuo=Ci,cye=-1,kst=function(){function t(e){var n=e.mappingMethod,r=e.type,a=this.option=ji(e);this.type=r,this.mappingMethod=n,this._normalizeData=wuo[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],n==="piecewise"?(Z6e(a),Euo(a)):n==="category"?a.categories?Suo(a):Z6e(a,!0):(Tv(n!=="linear"||a.dataExtent),Z6e(a))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return Cr(this._normalizeData,this)},t.listVisualTypes=function(){return bo(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){Ci(e)?Ie(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var a,o=Tn(e)?[]:Ci(e)?{}:(a=!0,null);return t.eachVisual(e,function(s,l){var c=n.call(r,s,l);a?o=c:o[l]=c}),o},t.retrieveVisuals=function(e){var n={},r;return e&&Sre(t.visualHandlers,function(a,o){e.hasOwnProperty(o)&&(n[o]=e[o],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(Tn(e))e=e.slice();else if(xuo(e)){var n=[];Sre(e,function(r,a){n.push(a)}),e=n}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,n){return n==="color"?!!(e&&e.indexOf(n)===0):e===n},t.findPieceIndex=function(e,n,r){for(var a,o=1/0,s=0,l=n.length;s<l;s++){var c=n[s].value;if(c!=null){if(c===e||vr(c)&&c===e+"")return s;r&&f(c,s)}}for(var s=0,l=n.length;s<l;s++){var u=n[s],d=u.interval,h=u.close;if(d){if(d[0]===-1/0){if(ghe(h[1],e,d[1]))return s}else if(d[1]===1/0){if(ghe(h[0],d[0],e))return s}else if(ghe(h[0],d[0],e)&&ghe(h[1],e,d[1]))return s;r&&f(d[0],s),r&&f(d[1],s)}}if(r)return e===1/0?n.length-1:e===-1/0?0:a;function f(p,m){var g=Math.abs(p-e);g<o&&(o=g,a=m)}},t.visualHandlers={color:{applyVisual:Zq("color"),getColorMapper:function(){var e=this.option;return Cr(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),FZ.call(this,n)}:function(n,r,a){var o=!!a;return!r&&(n=this._normalizeData(n)),a=mee(n,e.parsedVisual,a),o?a:bw(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return bw(mee(e,this.option.parsedVisual),"rgba")},category:FZ,piecewise:function(e,n){var r=TWe.call(this,n);return r==null&&(r=bw(mee(e,this.option.parsedVisual),"rgba")),r},fixed:iB}},colorHue:mhe(function(e,n){return dH(e,n)}),colorSaturation:mhe(function(e,n){return dH(e,null,n)}),colorLightness:mhe(function(e,n){return dH(e,null,null,n)}),colorAlpha:mhe(function(e,n){return ire(e,n)}),decal:{applyVisual:Zq("decal"),_normalizedToVisual:{linear:null,category:FZ,piecewise:null,fixed:null}},opacity:{applyVisual:Zq("opacity"),_normalizedToVisual:_We([0,1])},liftZ:{applyVisual:Zq("liftZ"),_normalizedToVisual:{linear:iB,category:iB,piecewise:iB,fixed:iB}},symbol:{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("symbol",a)},_normalizedToVisual:{linear:yPt,category:FZ,piecewise:function(e,n){var r=TWe.call(this,n);return r==null&&(r=yPt.call(this,e)),r},fixed:iB}},symbolSize:{applyVisual:Zq("symbolSize"),_normalizedToVisual:_We([0,1])}},t}();function Euo(t){var e=t.pieceList;t.hasSpecialVisual=!1,Ie(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function Suo(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(Sre(e,function(s,l){n[s]=l}),!Tn(r)){var a=[];Ci(r)?Sre(r,function(s,l){var c=n[l];a[c??cye]=s}):a[cye]=r,r=F7n(t,a)}for(var o=e.length-1;o>=0;o--)r[o]==null&&(delete n[e[o]],e.pop())}function Z6e(t,e){var n=t.visual,r=[];Ci(n)?Sre(n,function(o){r.push(o)}):n!=null&&r.push(n);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(t.type)&&(r[1]=r[0]),F7n(t,r)}function mhe(t){return{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("color",t(n("color"),a))},_normalizedToVisual:_We([0,1])}}function yPt(t){var e=this.option.visual;return e[Math.round(ol(t,[0,1],[0,e.length-1],!0))]||{}}function Zq(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function FZ(t){var e=this.option.visual;return e[this.option.loop&&t!==cye?t%e.length:t]}function iB(){return this.option.visual[0]}function _We(t){return{linear:function(e){return ol(e,t,this.option.visual,!0)},category:FZ,piecewise:function(e,n){var r=TWe.call(this,n);return r==null&&(r=ol(e,t,this.option.visual,!0)),r},fixed:iB}}function TWe(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=kst.findPieceIndex(t,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function F7n(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=Rn(e,function(n){var r=j0(n);return r||[0,0,0,1]})),e}var wuo={linear:function(t){return ol(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=kst.findPieceIndex(t,e,!0);if(n!=null)return ol(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??cye},fixed:jd};function ghe(t,e,n){return t?e<=n:e<n}const ag=kst;var _uo="itemStyle",j7n=ds();const Tuo={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||H7n(n,{},t.getViewRoot().getAncestors(),t)}};function H7n(t,e,n,r){var a=t.getModel(),o=t.getLayout(),s=t.hostTree.data;if(!(!o||o.invisible||!o.isInView)){var l=a.getModel(_uo),c=Cuo(l,e,r),u=s.ensureUniqueItemVisual(t.dataIndex,"style"),d=l.get("borderColor"),h=l.get("borderColorSaturation"),f;h!=null&&(f=bPt(c),d=kuo(h,f)),u.stroke=d;var p=t.viewChildren;if(!p||!p.length)f=bPt(c),u.fill=f;else{var m=Ruo(t,a,o,l,c,p);Ie(p,function(g,v){if(g.depth>=n.length||g===n[g.depth]){var A=Muo(a,c,g,v,m,r);H7n(g,A,n,r)}})}}}function Cuo(t,e,n){var r=An({},e),a=n.designatedVisualItemStyle;return Ie(["color","colorAlpha","colorSaturation"],function(o){a[o]=e[o];var s=t.get(o);a[o]=null,s!=null&&(r[o]=s)}),r}function bPt(t){var e=X6e(t,"color");if(e){var n=X6e(t,"colorAlpha"),r=X6e(t,"colorSaturation");return r&&(e=dH(e,null,null,r)),n&&(e=ire(e,n)),e}}function kuo(t,e){return e!=null?dH(e,null,null,t):null}function X6e(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function Ruo(t,e,n,r,a,o){if(!(!o||!o.length)){var s=e8e(e,"color")||a.color!=null&&a.color!=="none"&&(e8e(e,"colorAlpha")||e8e(e,"colorSaturation"));if(s){var l=e.get("visualMin"),c=e.get("visualMax"),u=n.dataExtent.slice();l!=null&&l<u[0]&&(u[0]=l),c!=null&&c>u[1]&&(u[1]=c);var d=e.get("colorMappingBy"),h={type:s.name,dataExtent:u,visual:s.range};h.type==="color"&&(d==="index"||d==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var f=new ag(h);return j7n(f).drColorMappingBy=d,f}}}function e8e(t,e){var n=t.get(e);return Tn(n)&&n.length?{name:e,range:n}:null}function Muo(t,e,n,r,a,o){var s=An({},e);if(a){var l=a.type,c=l==="color"&&j7n(a).drColorMappingBy,u=c==="index"?r:c==="id"?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));s[l]=a.mapValueToVisual(u)}return s}var wre=Math.max,uye=Math.min,xPt=gp,Rst=Ie,U7n=["itemStyle","borderWidth"],Nuo=["itemStyle","gapWidth"],Iuo=["upperLabel","show"],Puo=["upperLabel","height"];const Ouo={seriesType:"treemap",reset:function(t,e,n,r){var a=n.getWidth(),o=n.getHeight(),s=t.option,l=nf(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),c=s.size||[],u=lr(xPt(l.width,c[0]),a),d=lr(xPt(l.height,c[1]),o),h=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],p=Ere(r,f,t),m=h==="treemapRender"||h==="treemapMove"?r.rootRect:null,g=t.getViewRoot(),v=B7n(g);if(h!=="treemapMove"){var A=h==="treemapZoomToNode"?juo(t,p,g,u,d):m?[m.width,m.height]:[u,d],y=s.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var S={squareRatio:s.squareRatio,sort:y,leafDepth:s.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:A[0],height:A[1],area:A[0]*A[1]};g.setLayout(x),z7n(g,S,!1,0),x=g.getLayout(),Rst(v,function(_,C){var R=(v[C+1]||g).getValue();_.setLayout(An({dataExtent:[R,R],borderWidth:0,upperHeight:0},x))})}var w=t.getData().tree.root;w.setLayout(Huo(l,m,p),!0),t.setLayoutInfo(l),G7n(w,new Da(-l.x,-l.y,a,o),v,g,0)}};function z7n(t,e,n,r){var a,o;if(!t.isRemoved()){var s=t.getLayout();a=s.width,o=s.height;var l=t.getModel(),c=l.get(U7n),u=l.get(Nuo)/2,d=V7n(l),h=Math.max(c,d),f=c-u,p=h-u;t.setLayout({borderWidth:c,upperHeight:h,upperLabelHeight:d},!0),a=wre(a-2*f,0),o=wre(o-f-p,0);var m=a*o,g=Luo(t,l,m,e,n,r);if(g.length){var v={x:f,y:p,width:a,height:o},A=uye(a,o),y=1/0,S=[];S.area=0;for(var x=0,w=g.length;x<w;){var _=g[x];S.push(_),S.area+=_.getLayout().area;var C=Fuo(S,A,e.squareRatio);C<=y?(x++,y=C):(S.area-=S.pop().getLayout().area,EPt(S,A,v,u,!1),A=uye(v.width,v.height),S.length=S.area=0,y=1/0)}if(S.length&&EPt(S,A,v,u,!0),!n){var R=l.get("childrenVisibleMin");R!=null&&m<R&&(n=!0)}for(var x=0,w=g.length;x<w;x++)z7n(g[x],e,n,r+1)}}}function Luo(t,e,n,r,a,o){var s=t.children||[],l=r.sort;l!=="asc"&&l!=="desc"&&(l=null);var c=r.leafDepth!=null&&r.leafDepth<=o;if(a&&!c)return t.viewChildren=[];s=ll(s,function(p){return!p.isRemoved()}),Duo(s,l);var u=$uo(e,s,l);if(u.sum===0)return t.viewChildren=[];if(u.sum=Buo(e,n,u.sum,l,s),u.sum===0)return t.viewChildren=[];for(var d=0,h=s.length;d<h;d++){var f=s[d].getValue()/u.sum*n;s[d].setLayout({area:f})}return c&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:u.dataExtent},!0),s}function Buo(t,e,n,r,a){if(!r)return n;for(var o=t.get("visibleMin"),s=a.length,l=s,c=s-1;c>=0;c--){var u=a[r==="asc"?s-c-1:c].getValue();u/n*e<o&&(l=c,n-=u)}return r==="asc"?a.splice(0,s-l):a.splice(l,s-l),n}function Duo(t,e){return e&&t.sort(function(n,r){var a=e==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return a===0?e==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:a}),t}function $uo(t,e,n){for(var r=0,a=0,o=e.length;a<o;a++)r+=e[a].getValue();var s=t.get("visualDimension"),l;return!e||!e.length?l=[NaN,NaN]:s==="value"&&n?(l=[e[e.length-1].getValue(),e[0].getValue()],n==="asc"&&l.reverse()):(l=[1/0,-1/0],Rst(e,function(c){var u=c.getValue(s);u<l[0]&&(l[0]=u),u>l[1]&&(l[1]=u)})),{sum:r,dataExtent:l}}function Fuo(t,e,n){for(var r=0,a=1/0,o=0,s=void 0,l=t.length;o<l;o++)s=t[o].getLayout().area,s&&(s<a&&(a=s),s>r&&(r=s));var c=t.area*t.area,u=e*e*n;return c?wre(u*r/c,c/(u*a)):1/0}function EPt(t,e,n,r,a){var o=e===n.width?0:1,s=1-o,l=["x","y"],c=["width","height"],u=n[l[o]],d=e?t.area/e:0;(a||d>n[c[s]])&&(d=n[c[s]]);for(var h=0,f=t.length;h<f;h++){var p=t[h],m={},g=d?p.getLayout().area/d:0,v=m[c[s]]=wre(d-2*r,0),A=n[l[o]]+n[c[o]]-u,y=h===f-1||A<g?A:g,S=m[c[o]]=wre(y-2*r,0);m[l[s]]=n[l[s]]+uye(r,v/2),m[l[o]]=u+uye(r,S/2),u+=y,p.setLayout(m,!0)}n[l[s]]+=d,n[c[s]]-=d}function juo(t,e,n,r,a){var o=(e||{}).node,s=[r,a];if(!o||o===n)return s;for(var l,c=r*a,u=c*t.option.zoomToNodeRatio;l=o.parentNode;){for(var d=0,h=l.children,f=0,p=h.length;f<p;f++)d+=h[f].getValue();var m=o.getValue();if(m===0)return s;u*=d/m;var g=l.getModel(),v=g.get(U7n),A=Math.max(v,V7n(g));u+=4*v*v+(3*v+A)*Math.pow(u,.5),u>OKe&&(u=OKe),o=l}u<c&&(u=c);var y=Math.pow(u/c,.5);return[r*y,a*y]}function Huo(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var a=n.node,o=a.getLayout();if(!o)return r;for(var s=[o.width/2,o.height/2],l=a;l;){var c=l.getLayout();s[0]+=c.x,s[1]+=c.y,l=l.parentNode}return{x:t.width/2-s[0],y:t.height/2-s[1]}}function G7n(t,e,n,r,a){var o=t.getLayout(),s=n[a],l=s&&s===t;if(!(s&&!l||a===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!l&&!e.intersect(o),isAboveViewRoot:l},!0);var c=new Da(e.x-o.x,e.y-o.y,e.width,e.height);Rst(t.viewChildren||[],function(u){G7n(u,c,n,r,a+1)})}}function V7n(t){return t.get(Iuo)?t.get(Puo):0}function Uuo(t){t.registerSeriesModel(ouo),t.registerChartView(buo),t.registerVisual(Tuo),t.registerLayout(Ouo),ruo(t)}function zuo(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getGraph(),o=a.data,s=r.mapArray(r.getName);o.filterSelf(function(l){var c=o.getItemModel(l),u=c.getShallow("category");if(u!=null){cs(u)&&(u=s[u]);for(var d=0;d<e.length;d++)if(!e[d].isSelected(u))return!1}return!0})})}function Guo(t){var e={};t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getData(),o={};r.each(function(s){var l=r.getName(s);o["ec-"+l]=s;var c=r.getItemModel(s),u=c.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(l,e)),r.setItemVisual(s,"style",u);for(var d=["symbol","symbolSize","symbolKeepAspect"],h=0;h<d.length;h++){var f=c.getShallow(d[h],!0);f!=null&&r.setItemVisual(s,d[h],f)}}),r.count()&&a.each(function(s){var l=a.getItemModel(s),c=l.getShallow("category");if(c!=null){vr(c)&&(c=o["ec-"+c]);var u=r.getItemVisual(c,"style"),d=a.ensureUniqueItemVisual(s,"style");An(d,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],f=0;f<h.length;f++)a.setItemVisual(s,h[f],r.getItemVisual(c,h[f]))}})})}function vhe(t){return t instanceof Array||(t=[t,t]),t}function Vuo(t){t.eachSeriesByType("graph",function(e){var n=e.getGraph(),r=e.getEdgeData(),a=vhe(e.get("edgeSymbol")),o=vhe(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",a&&a[0]),r.setVisual("toSymbol",a&&a[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(s){var l=r.getItemModel(s),c=n.getEdgeByIndex(s),u=vhe(l.getShallow("symbol",!0)),d=vhe(l.getShallow("symbolSize",!0)),h=l.getModel("lineStyle").getLineStyle(),f=r.ensureUniqueItemVisual(s,"style");switch(An(f,h),f.stroke){case"source":{var p=c.node1.getVisual("style");f.stroke=p&&p.fill;break}case"target":{var p=c.node2.getVisual("style");f.stroke=p&&p.fill;break}}u[0]&&c.setVisual("fromSymbol",u[0]),u[1]&&c.setVisual("toSymbol",u[1]),d[0]&&c.setVisual("fromSymbolSize",d[0]),d[1]&&c.setVisual("toSymbolSize",d[1])})})}var CWe="-->",y2e=function(t){return t.get("autoCurveness")||null},K7n=function(t,e){var n=y2e(t),r=20,a=[];if(cs(n))r=n;else if(Tn(n)){t.__curvenessList=n;return}e>r&&(r=e);var o=r%2?r+2:r+3;a=[];for(var s=0;s<o;s++)a.push((s%2?s+1:s)/10*(s%2?-1:1));t.__curvenessList=a},_re=function(t,e,n){var r=[t.id,t.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[n.uid,r,a].join(CWe)},W7n=function(t){var e=t.split(CWe);return[e[0],e[2],e[1]].join(CWe)},Kuo=function(t,e){var n=_re(t.node1,t.node2,e);return e.__edgeMap[n]},Wuo=function(t,e){var n=kWe(_re(t.node1,t.node2,e),e),r=kWe(_re(t.node2,t.node1,e),e);return n+r},kWe=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Quo(t){y2e(t)&&(t.__curvenessList=[],t.__edgeMap={},K7n(t))}function quo(t,e,n,r){if(y2e(n)){var a=_re(t,e,n),o=n.__edgeMap,s=o[W7n(a)];o[a]&&!s?o[a].isForward=!0:s&&o[a]&&(s.isForward=!0,o[a].isForward=!1),o[a]=o[a]||[],o[a].push(r)}}function Mst(t,e,n,r){var a=y2e(e),o=Tn(a);if(!a)return null;var s=Kuo(t,e);if(!s)return null;for(var l=-1,c=0;c<s.length;c++)if(s[c]===n){l=c;break}var u=Wuo(t,e);K7n(e,u),t.lineStyle=t.lineStyle||{};var d=_re(t.node1,t.node2,e),h=e.__curvenessList,f=o||u%2?0:1;if(s.isForward)return h[f+l];var p=W7n(d),m=kWe(p,e),g=h[l+m+f];return r?o?a&&a[0]===0?(m+f)%2?g:-g:((m%2?0:1)+f)%2?g:-g:(m+f)%2?g:-g:h[l+m+f]}function Q7n(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var n=t.getGraph();n.eachNode(function(r){var a=r.getModel();r.setLayout([+a.get("x"),+a.get("y")])}),Nst(n,t)}}function Nst(t,e){t.eachEdge(function(n,r){var a=Aw(n.getModel().get(["lineStyle","curveness"]),-Mst(n,e,r,!0),0),o=k2(n.node1.getLayout()),s=k2(n.node2.getLayout()),l=[o,s];+a&&l.push([(o[0]+s[0])/2-(o[1]-s[1])*a,(o[1]+s[1])/2-(s[0]-o[0])*a]),n.setLayout(l)})}function Yuo(t,e){t.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var o=n.getData(),s=[];Ie(a.dimensions,function(f){s=s.concat(o.mapDimensionsAll(f))});for(var l=0;l<o.count();l++){for(var c=[],u=!1,d=0;d<s.length;d++){var h=o.get(s[d],l);isNaN(h)||(u=!0),c.push(h)}u?o.setItemLayout(l,a.dataToPoint(c)):o.setItemLayout(l,[NaN,NaN])}Nst(o.graph,n)}else(!r||r==="none")&&Q7n(n)})}function jZ(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,a=e.getZoom(),o=(a-1)*n+1;return o/r}function HZ(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var SPt=Math.PI,t8e=[];function Ist(t,e,n,r){var a=t.coordinateSystem;if(!(a&&a.type!=="view")){var o=a.getBoundingRect(),s=t.getData(),l=s.graph,c=o.width/2+o.x,u=o.height/2+o.y,d=Math.min(o.width,o.height)/2,h=s.count();if(s.setLayout({cx:c,cy:u}),!!h){if(n){var f=a.pointToData(r),p=f[0],m=f[1],g=[p-c,m-u];b9(g,g),fee(g,g,d),n.setLayout([c+g[0],u+g[1]],!0);var v=t.get(["circular","rotateLabel"]);q7n(n,v,c,u)}Juo[e](t,l,s,d,c,u,h),l.eachEdge(function(A,y){var S=Aw(A.getModel().get(["lineStyle","curveness"]),Mst(A,t,y),0),x=k2(A.node1.getLayout()),w=k2(A.node2.getLayout()),_,C=(x[0]+w[0])/2,R=(x[1]+w[1])/2;+S&&(S*=3,_=[c*S+C*(1-S),u*S+R*(1-S)]),A.setLayout([x,w,_])})}}}var Juo={value:function(t,e,n,r,a,o,s){var l=0,c=n.getSum("value"),u=Math.PI*2/(c||s);e.eachNode(function(d){var h=d.getValue("value"),f=u*(c?h:1)/2;l+=f,d.setLayout([r*Math.cos(l)+a,r*Math.sin(l)+o]),l+=f})},symbolSize:function(t,e,n,r,a,o,s){var l=0;t8e.length=s;var c=jZ(t);e.eachNode(function(h){var f=HZ(h);isNaN(f)&&(f=2),f<0&&(f=0),f*=c;var p=Math.asin(f/2/r);isNaN(p)&&(p=SPt/2),t8e[h.dataIndex]=p,l+=p*2});var u=(2*SPt-l)/s/2,d=0;e.eachNode(function(h){var f=u+t8e[h.dataIndex];d+=f,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([r*Math.cos(d)+a,r*Math.sin(d)+o]),d+=f})}};function q7n(t,e,n,r){var a=t.getGraphicEl();if(a){var o=t.getModel(),s=o.get(["label","rotate"])||0,l=a.getSymbolPath();if(e){var c=t.getLayout(),u=Math.atan2(c[1]-r,c[0]-n);u<0&&(u=Math.PI*2+u);var d=c[0]<n;d&&(u=u-Math.PI);var h=d?"left":"right";l.setTextConfig({rotation:-u,position:h,origin:"center"});var f=l.ensureState("emphasis");An(f.textConfig||(f.textConfig={}),{position:h})}else l.setTextConfig({rotation:s*=Math.PI/180})}}function Zuo(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Ist(e,"symbolSize")})}var l7=C1e;function Xuo(t,e,n){for(var r=t,a=e,o=n.rect,s=o.width,l=o.height,c=[o.x+s/2,o.y+l/2],u=n.gravity==null?.1:n.gravity,d=0;d<r.length;d++){var h=r[d];h.p||(h.p=yO(s*(Math.random()-.5)+c[0],l*(Math.random()-.5)+c[1])),h.pp=k2(h.p),h.edges=null}var f=n.friction==null?.6:n.friction,p=f,m,g;return{warmUp:function(){p=f*.8},setFixed:function(v){r[v].fixed=!0},setUnfixed:function(v){r[v].fixed=!1},beforeStep:function(v){m=v},afterStep:function(v){g=v},step:function(v){m&&m(r,a);for(var A=[],y=r.length,S=0;S<a.length;S++){var x=a[S];if(!x.ignoreForceLayout){var w=x.n1,_=x.n2;Y3(A,_.p,w.p);var C=tre(A)-x.d,R=_.w/(w.w+_.w);isNaN(R)&&(R=0),b9(A,A),!w.fixed&&l7(w.p,w.p,A,R*C*p),!_.fixed&&l7(_.p,_.p,A,-(1-R)*C*p)}}for(var S=0;S<y;S++){var k=r[S];k.fixed||(Y3(A,c,k.p),l7(k.p,k.p,A,u*p))}for(var S=0;S<y;S++)for(var w=r[S],P=S+1;P<y;P++){var _=r[P];Y3(A,_.p,w.p);var C=tre(A);C===0&&(PDn(A,Math.random()-.5,Math.random()-.5),C=1);var N=(w.rep+_.rep)/C/C;!w.fixed&&l7(w.pp,w.pp,A,N),!_.fixed&&l7(_.pp,_.pp,A,-N)}for(var L=[],S=0;S<y;S++){var k=r[S];k.fixed||(Y3(L,k.p,k.pp),l7(k.p,k.p,L,p),Jg(k.pp,k.p))}p=p*.992;var I=p<.01;g&&g(r,a,I),v&&v(I)}}}function edo(t){t.eachSeriesByType("graph",function(e){var n=e.coordinateSystem;if(!(n&&n.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},a=e.getGraph(),o=a.data,s=a.edgeData,l=e.getModel("force"),c=l.get("initLayout");e.preservedPoints?o.each(function(S){var x=o.getId(S);o.setItemLayout(S,r[x]||[NaN,NaN])}):!c||c==="none"?Q7n(e):c==="circular"&&Ist(e,"value");var u=o.getDataExtent("value"),d=s.getDataExtent("value"),h=l.get("repulsion"),f=l.get("edgeLength"),p=Tn(h)?h:[h,h],m=Tn(f)?f:[f,f];m=[m[1],m[0]];var g=o.mapArray("value",function(S,x){var w=o.getItemLayout(x),_=ol(S,u,p);return isNaN(_)&&(_=(p[0]+p[1])/2),{w:_,rep:_,fixed:o.getItemModel(x).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),v=s.mapArray("value",function(S,x){var w=a.getEdgeByIndex(x),_=ol(S,d,m);isNaN(_)&&(_=(m[0]+m[1])/2);var C=w.getModel(),R=Aw(w.getModel().get(["lineStyle","curveness"]),-Mst(w,e,x,!0),0);return{n1:g[w.node1.dataIndex],n2:g[w.node2.dataIndex],d:_,curveness:R,ignoreForceLayout:C.get("ignoreForceLayout")}}),A=n.getBoundingRect(),y=Xuo(g,v,{rect:A,gravity:l.get("gravity"),friction:l.get("friction")});y.beforeStep(function(S,x){for(var w=0,_=S.length;w<_;w++)S[w].fixed&&Jg(S[w].p,a.getNodeByIndex(w).getLayout())}),y.afterStep(function(S,x,w){for(var _=0,C=S.length;_<C;_++)S[_].fixed||a.getNodeByIndex(_).setLayout(S[_].p),r[o.getId(_)]=S[_].p;for(var _=0,C=x.length;_<C;_++){var R=x[_],k=a.getEdgeByIndex(_),P=R.n1.p,N=R.n2.p,L=k.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Jg(L[0],P),Jg(L[1],N),+R.curveness&&(L[2]=[(P[0]+N[0])/2-(P[1]-N[1])*R.curveness,(P[1]+N[1])/2-(N[0]-P[0])*R.curveness]),k.setLayout(L)}}),e.forceLayout=y,e.preservedPoints=r,y.step()}else e.forceLayout=null})}function tdo(t,e,n){var r=An(t.getBoxLayoutParams(),{aspect:n});return nf(r,{width:e.getWidth(),height:e.getHeight()})}function ndo(t,e){var n=[];return t.eachSeriesByType("graph",function(r){var a=r.get("coordinateSystem");if(!a||a==="view"){var o=r.getData(),s=o.mapArray(function(v){var A=o.getItemModel(v);return[+A.get("x"),+A.get("y")]}),l=[],c=[];KTe(s,l,c),c[0]-l[0]===0&&(c[0]+=1,l[0]-=1),c[1]-l[1]===0&&(c[1]+=1,l[1]-=1);var u=(c[0]-l[0])/(c[1]-l[1]),d=tdo(r,e,u);isNaN(u)&&(l=[d.x,d.y],c=[d.x+d.width,d.y+d.height]);var h=c[0]-l[0],f=c[1]-l[1],p=d.width,m=d.height,g=r.coordinateSystem=new yse;g.zoomLimit=r.get("scaleLimit"),g.setBoundingRect(l[0],l[1],h,f),g.setViewRect(d.x,d.y,p,m),g.setCenter(r.get("center"),e),g.setZoom(r.get("zoom")),n.push(g)}}),n}var wPt=vp.prototype,n8e=ase.prototype,Y7n=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Y7n);function r8e(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var rdo=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Y7n},e.prototype.buildPath=function(n,r){r8e(r)?wPt.buildPath.call(this,n,r):n8e.buildPath.call(this,n,r)},e.prototype.pointAt=function(n){return r8e(this.shape)?wPt.pointAt.call(this,n):n8e.pointAt.call(this,n)},e.prototype.tangentAt=function(n){var r=this.shape,a=r8e(r)?[r.x2-r.x1,r.y2-r.y1]:n8e.tangentAt.call(this,n);return b9(a,a)},e}(no);const ido=rdo;var i8e=["fromSymbol","toSymbol"];function _Pt(t){return"_"+t+"Type"}function TPt(t,e,n){var r=e.getItemVisual(n,t);if(!r||r==="none")return r;var a=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),s=e.getItemVisual(n,t+"Offset"),l=e.getItemVisual(n,t+"KeepAspect"),c=zV(a),u=_9(s||0,c);return r+c+u+(o||"")+(l||"")}function CPt(t,e,n){var r=e.getItemVisual(n,t);if(!(!r||r==="none")){var a=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),s=e.getItemVisual(n,t+"Offset"),l=e.getItemVisual(n,t+"KeepAspect"),c=zV(a),u=_9(s||0,c),d=vh(r,-c[0]/2+u[0],-c[1]/2+u[1],c[0],c[1],null,l);return d.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,d.name=t,d}}function ado(t){var e=new ido({name:"line",subPixelOptimize:!0});return RWe(e.shape,t),e}function RWe(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var odo=function(t){nn(e,t);function e(n,r,a){var o=t.call(this)||this;return o._createLine(n,r,a),o}return e.prototype._createLine=function(n,r,a){var o=n.hostModel,s=n.getItemLayout(r),l=ado(s);l.shape.percent=0,Kc(l,{shape:{percent:1}},o,r),this.add(l),Ie(i8e,function(c){var u=CPt(c,n,r);this.add(u),this[_Pt(c)]=TPt(c,n,r)},this),this._updateCommonStl(n,r,a)},e.prototype.updateData=function(n,r,a){var o=n.hostModel,s=this.childOfName("line"),l=n.getItemLayout(r),c={shape:{}};RWe(c.shape,l),vs(s,c,o,r),Ie(i8e,function(u){var d=TPt(u,n,r),h=_Pt(u);if(this[h]!==d){this.remove(this.childOfName(u));var f=CPt(u,n,r);this.add(f)}this[h]=d},this),this._updateCommonStl(n,r,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(n,r,a){var o=n.hostModel,s=this.childOfName("line"),l=a&&a.emphasisLineStyle,c=a&&a.blurLineStyle,u=a&&a.selectLineStyle,d=a&&a.labelStatesModels,h=a&&a.emphasisDisabled,f=a&&a.focus,p=a&&a.blurScope;if(!a||n.hasItemOption){var m=n.getItemModel(r),g=m.getModel("emphasis");l=g.getModel("lineStyle").getLineStyle(),c=m.getModel(["blur","lineStyle"]).getLineStyle(),u=m.getModel(["select","lineStyle"]).getLineStyle(),h=g.get("disabled"),f=g.get("focus"),p=g.get("blurScope"),d=Cp(m)}var v=n.getItemVisual(r,"style"),A=v.stroke;s.useStyle(v),s.style.fill=null,s.style.strokeNoScale=!0,s.ensureState("emphasis").style=l,s.ensureState("blur").style=c,s.ensureState("select").style=u,Ie(i8e,function(_){var C=this.childOfName(_);if(C){C.setColor(A),C.style.opacity=v.opacity;for(var R=0;R<Q0.length;R++){var k=Q0[R],P=s.getState(k);if(P){var N=P.style||{},L=C.ensureState(k),I=L.style||(L.style={});N.stroke!=null&&(I[C.__isEmptyBrush?"stroke":"fill"]=N.stroke),N.opacity!=null&&(I.opacity=N.opacity)}}C.markRedraw()}},this);var y=o.getRawValue(r);hg(this,d,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(_,C){return o.getFormattedLabel(_,C,n.dataType)}},inheritColor:A||"#000",defaultOpacity:v.opacity,defaultText:(y==null?n.getName(r):isFinite(y)?fd(y):y)+""});var S=this.getTextContent();if(S){var x=d.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=x.get("position")||"middle";var w=x.get("distance");Tn(w)||(w=[w,w]),S.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),bd(this,f,p,h)},e.prototype.highlight=function(){NM(this)},e.prototype.downplay=function(){IM(this)},e.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},e.prototype.setLinePoints=function(n){var r=this.childOfName("line");RWe(r.shape,n),r.dirty()},e.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),a=n.childOfName("toSymbol"),o=n.getTextContent();if(!r&&!a&&(!o||o.ignore))return;for(var s=1,l=this.parent;l;)l.scaleX&&(s/=l.scaleX),l=l.parent;var c=n.childOfName("line");if(!this.__dirty&&!c.__dirty)return;var u=c.shape.percent,d=c.pointAt(0),h=c.pointAt(u),f=Y3([],h,d);b9(f,f);function p(P,N){var L=P.__specifiedRotation;if(L==null){var I=c.tangentAt(N);P.attr("rotation",(N===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else P.attr("rotation",L)}if(r&&(r.setPosition(d),p(r,0),r.scaleX=r.scaleY=s*u,r.markRedraw()),a&&(a.setPosition(h),p(a,1),a.scaleX=a.scaleY=s*u,a.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var m=void 0,g=void 0,v=o.__labelDistance,A=v[0]*s,y=v[1]*s,S=u/2,x=c.tangentAt(S),w=[x[1],-x[0]],_=c.pointAt(S);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var C=x[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var R=-Math.atan2(x[1],x[0]);h[0]<d[0]&&(R=Math.PI+R),o.rotation=R}var k=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":k=-y,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":k=y,g="top";break;default:k=0,g="middle"}switch(o.__position){case"end":o.x=f[0]*A+h[0],o.y=f[1]*y+h[1],m=f[0]>.8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":o.x=-f[0]*A+d[0],o.y=-f[1]*y+d[1],m=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=A*C+d[0],o.y=d[1]+k,m=x[0]<0?"right":"left",o.originX=-A*C,o.originY=-k;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=_[0],o.y=_[1]+k,m="center",o.originY=-k;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-A*C+h[0],o.y=h[1]+k,m=x[0]>=0?"right":"left",o.originX=A*C,o.originY=-k;break}o.scaleX=o.scaleY=s,o.setStyle({verticalAlign:o.__verticalAlign||g,align:o.__align||m})}},e}(ta);const Pst=odo;var sdo=function(){function t(e){this.group=new ta,this._LineCtor=e||Pst}return t.prototype.updateData=function(e){var n=this;this._progressiveEls=null;var r=this,a=r.group,o=r._lineData;r._lineData=e,o||a.removeAll();var s=kPt(e);e.diff(o).add(function(l){n._doAdd(e,l,s)}).update(function(l,c){n._doUpdate(o,e,c,l,s)}).remove(function(l){a.remove(o.getItemGraphicEl(l))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(n,r){n.updateLayout(e,r)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=kPt(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(l){!l.isGroup&&!ldo(l)&&(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=n.getItemLayout(a);if(a8e(o)){var s=new this._LineCtor(n,a,this._seriesScope);s.traverse(r),this.group.add(s),n.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){xO(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,n,r){var a=e.getItemLayout(n);if(a8e(a)){var o=new this._LineCtor(e,n,r);e.setItemGraphicEl(n,o),this.group.add(o)}},t.prototype._doUpdate=function(e,n,r,a,o){var s=e.getItemGraphicEl(r);if(!a8e(n.getItemLayout(a))){this.group.remove(s);return}s?s.updateData(n,a,o):s=new this._LineCtor(n,a,o),n.setItemGraphicEl(a,s),this.group.add(s)},t}();function ldo(t){return t.animators&&t.animators.length>0}function kPt(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Cp(e)}}function RPt(t){return isNaN(t[0])||isNaN(t[1])}function a8e(t){return t&&!RPt(t[0])&&!RPt(t[1])}const Ost=sdo;var o8e=[],s8e=[],l8e=[],c7=Yp,c8e=M5,MPt=Math.abs;function NPt(t,e,n){for(var r=t[0],a=t[1],o=t[2],s=1/0,l,c=n*n,u=.1,d=.1;d<=.9;d+=.1){o8e[0]=c7(r[0],a[0],o[0],d),o8e[1]=c7(r[1],a[1],o[1],d);var h=MPt(c8e(o8e,e)-c);h<s&&(s=h,l=d)}for(var f=0;f<32;f++){var p=l+u;s8e[0]=c7(r[0],a[0],o[0],l),s8e[1]=c7(r[1],a[1],o[1],l),l8e[0]=c7(r[0],a[0],o[0],p),l8e[1]=c7(r[1],a[1],o[1],p);var h=c8e(s8e,e)-c;if(MPt(h)<.01)break;var m=c8e(l8e,e)-c;u/=2,h<0?m>=0?l=l+u:l=l-u:m>=0?l=l-u:l=l+u}return l}function u8e(t,e){var n=[],r=nre,a=[[],[],[]],o=[[],[]],s=[];e/=2,t.eachEdge(function(l,c){var u=l.getLayout(),d=l.getVisual("fromSymbol"),h=l.getVisual("toSymbol");u.__original||(u.__original=[k2(u[0]),k2(u[1])],u[2]&&u.__original.push(k2(u[2])));var f=u.__original;if(u[2]!=null){if(Jg(a[0],f[0]),Jg(a[1],f[2]),Jg(a[2],f[1]),d&&d!=="none"){var p=HZ(l.node1),m=NPt(a,f[0],p*e);r(a[0][0],a[1][0],a[2][0],m,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],m,n),a[0][1]=n[3],a[1][1]=n[4]}if(h&&h!=="none"){var p=HZ(l.node2),m=NPt(a,f[1],p*e);r(a[0][0],a[1][0],a[2][0],m,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],m,n),a[1][1]=n[1],a[2][1]=n[2]}Jg(u[0],a[0]),Jg(u[1],a[2]),Jg(u[2],a[1])}else{if(Jg(o[0],f[0]),Jg(o[1],f[1]),Y3(s,o[1],o[0]),b9(s,s),d&&d!=="none"){var p=HZ(l.node1);C1e(o[0],o[0],s,p*e)}if(h&&h!=="none"){var p=HZ(l.node2);C1e(o[1],o[1],s,-p*e)}Jg(u[0],o[0]),Jg(u[1],o[1])}})}function IPt(t){return t.type==="view"}var cdo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){var a=new fse,o=new Ost,s=this.group;this._controller=new Ase(r.getZr()),this._controllerHost={target:s},s.add(a.group),s.add(o.group),this._symbolDraw=a,this._lineDraw=o,this._firstRender=!0},e.prototype.render=function(n,r,a){var o=this,s=n.coordinateSystem;this._model=n;var l=this._symbolDraw,c=this._lineDraw,u=this.group;if(IPt(s)){var d={x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY};this._firstRender?u.attr(d):vs(u,d,n)}u8e(n.getGraph(),jZ(n));var h=n.getData();l.updateData(h);var f=n.getEdgeData();c.updateData(f),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var p=n.forceLayout,m=n.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,m);var g=n.get("layout");h.graph.eachNode(function(S){var x=S.dataIndex,w=S.getGraphicEl(),_=S.getModel();if(w){w.off("drag").off("dragend");var C=_.get("draggable");C&&w.on("drag",function(k){switch(g){case"force":p.warmUp(),!o._layouting&&o._startForceLayoutIteration(p,m),p.setFixed(x),h.setItemLayout(x,[w.x,w.y]);break;case"circular":h.setItemLayout(x,[w.x,w.y]),S.setLayout({fixed:!0},!0),Ist(n,"symbolSize",S,[k.offsetX,k.offsetY]),o.updateLayout(n);break;case"none":default:h.setItemLayout(x,[w.x,w.y]),Nst(n.getGraph(),n),o.updateLayout(n);break}}).on("dragend",function(){p&&p.setUnfixed(x)}),w.setDraggable(C,!!_.get("cursor"));var R=_.get(["emphasis","focus"]);R==="adjacency"&&(ia(w).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var x=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(ia(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var v=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),A=h.getLayout("cx"),y=h.getLayout("cy");h.graph.eachNode(function(S){q7n(S,v,A,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(n,r){var a=this;(function o(){n.step(function(s){a.updateLayout(a._model),(a._layouting=!s)&&(r?a._layoutTimeout=setTimeout(o,16):o())})})()},e.prototype._updateController=function(n,r,a){var o=this,s=this._controller,l=this._controllerHost,c=this.group;if(s.setPointerChecker(function(u,d,h){var f=c.getBoundingRect();return f.applyTransform(c.transform),f.contain(d,h)&&!g2e(u,a,n)}),!IPt(n.coordinateSystem)){s.disable();return}s.enable(n.get("roam")),l.zoomLimit=n.get("scaleLimit"),l.zoom=n.coordinateSystem.getZoom(),s.off("pan").off("zoom").on("pan",function(u){xst(l,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Est(l,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(),u8e(n.getGraph(),jZ(n)),o._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=jZ(n);r.eachItemGraphicEl(function(o,s){o&&o.setSymbolScale(a)})},e.prototype.updateLayout=function(n){u8e(n.getGraph(),jZ(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(ql);const udo=cdo;function u7(t){return"_EC_"+t}var ddo=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,n){e=e==null?""+n:""+e;var r=this._nodesMap;if(!r[u7(e)]){var a=new aB(e,n);return a.hostGraph=this,this.nodes.push(a),r[u7(e)]=a,a}},t.prototype.getNodeByIndex=function(e){var n=this.data.getRawIndex(e);return this.nodes[n]},t.prototype.getNodeById=function(e){return this._nodesMap[u7(e)]},t.prototype.addEdge=function(e,n,r){var a=this._nodesMap,o=this._edgesMap;if(cs(e)&&(e=this.nodes[e]),cs(n)&&(n=this.nodes[n]),e instanceof aB||(e=a[u7(e)]),n instanceof aB||(n=a[u7(n)]),!(!e||!n)){var s=e.id+"-"+n.id,l=new J7n(e,n,r);return l.hostGraph=this,this._directed&&(e.outEdges.push(l),n.inEdges.push(l)),e.edges.push(l),e!==n&&n.edges.push(l),this.edges.push(l),o[s]=l,l}},t.prototype.getEdgeByIndex=function(e){var n=this.edgeData.getRawIndex(e);return this.edges[n]},t.prototype.getEdge=function(e,n){e instanceof aB&&(e=e.id),n instanceof aB&&(n=n.id);var r=this._edgesMap;return this._directed?r[e+"-"+n]:r[e+"-"+n]||r[n+"-"+e]},t.prototype.eachNode=function(e,n){for(var r=this.nodes,a=r.length,o=0;o<a;o++)r[o].dataIndex>=0&&e.call(n,r[o],o)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,a=r.length,o=0;o<a;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&e.call(n,r[o],o)},t.prototype.breadthFirstTraverse=function(e,n,r,a){if(n instanceof aB||(n=this._nodesMap[u7(n)]),!!n){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!e.call(a,n,null))for(var l=[n];l.length;)for(var c=l.shift(),u=c[o],s=0;s<u.length;s++){var d=u[s],h=d.node1===c?d.node2:d.node1;if(!h.__visited){if(e.call(a,h,c))return;l.push(h),h.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,n=this.edgeData,r=this.nodes,a=this.edges,o=0,s=r.length;o<s;o++)r[o].dataIndex=-1;for(var o=0,s=e.count();o<s;o++)r[e.getRawIndex(o)].dataIndex=o;n.filterSelf(function(l){var c=a[n.getRawIndex(l)];return c.node1.dataIndex>=0&&c.node2.dataIndex>=0});for(var o=0,s=a.length;o<s;o++)a[o].dataIndex=-1;for(var o=0,s=n.count();o<s;o++)a[n.getRawIndex(o)].dataIndex=o},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,a=0;a<n.length;a++)e.addNode(n[a].id,n[a].dataIndex);for(var a=0;a<r.length;a++){var o=r[a];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),aB=function(){function t(e,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=n??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=Ur(),n=Ur(),r=0;r<this.edges.length;r++){var a=this.edges[r];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var o=[a.node1],s=[a.node2],l=0;l<o.length;){var c=o[l];l++,n.set(c.dataIndex,!0);for(var u=0;u<c.inEdges.length;u++)e.set(c.inEdges[u].dataIndex,!0),o.push(c.inEdges[u].node1)}for(l=0;l<s.length;){var d=s[l];l++,n.set(d.dataIndex,!0);for(var u=0;u<d.outEdges.length;u++)e.set(d.outEdges[u].dataIndex,!0),s.push(d.outEdges[u].node2)}}}return{edge:e.keys(),node:n.keys()}},t}(),J7n=function(){function t(e,n,r){this.dataIndex=-1,this.node1=e,this.node2=n,this.dataIndex=r??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=Ur(),n=Ur();e.set(this.dataIndex,!0);for(var r=[this.node1],a=[this.node2],o=0;o<r.length;){var s=r[o];o++,n.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(o=0;o<a.length;){var c=a[o];o++,n.set(c.dataIndex,!0);for(var l=0;l<c.outEdges.length;l++)e.set(c.outEdges[l].dataIndex,!0),a.push(c.outEdges[l].node2)}return{edge:e.keys(),node:n.keys()}},t}();function Z7n(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Vd(aB,Z7n("hostGraph","data"));Vd(J7n,Z7n("hostGraph","edgeData"));const hdo=ddo;function X7n(t,e,n,r,a){for(var o=new hdo(r),s=0;s<t.length;s++)o.addNode(gp(t[s].id,t[s].name,s),s);for(var l=[],c=[],u=0,s=0;s<e.length;s++){var d=e[s],h=d.source,f=d.target;o.addEdge(h,f,u)&&(c.push(d),l.push(gp(Lf(d.id,null),h+" > "+f)),u++)}var p=n.get("coordinateSystem"),m;if(p==="cartesian2d"||p==="polar")m=kC(t,n);else{var g=jV.get(p),v=g?g.dimensions||[]:[];za(v,"value")<0&&v.concat(["value"]);var A=GV(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;m=new bv(A,n),m.initData(t)}var y=new bv(["value"],n);return y.initData(c,l),a&&a(m,y),O7n({mainData:m,struct:o,structAttr:"graph",datas:{node:m,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var fdo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new vse(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(n){t.prototype.mergeDefaultAndTheme.apply(this,arguments),e8(n,"edgeLabel",["show"])},e.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],o=n.data||n.nodes||[],s=this;if(o&&a){Quo(this);var l=X7n(o,a,this,!0,c);return Ie(l.edges,function(u){quo(u.node1,u.node2,this,u.dataIndex)},this),l.data}function c(u,d){u.wrapMethod("getItemModel",function(m){var g=s._categoriesModels,v=m.getShallow("category"),A=g[v];return A&&(A.parentModel=m.parentModel,m.parentModel=A),m});var h=Kl.prototype.getModel;function f(m,g){var v=h.call(this,m,g);return v.resolveParentPath=p,v}d.wrapMethod("getItemModel",function(m){return m.resolveParentPath=p,m.getModel=f,m});function p(m){if(m&&(m[0]==="label"||m[1]==="label")){var g=m.slice();return m[0]==="label"?g[0]="edgeLabel":m[1]==="label"&&(g[1]="edgeLabel"),g}return m}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var o=this.getData(),s=this.getDataParams(n,a),l=o.graph.getEdgeByIndex(n),c=o.getName(l.node1.dataIndex),u=o.getName(l.node2.dataIndex),d=[];return c!=null&&d.push(c),u!=null&&d.push(u),kp("nameValue",{name:d.join(" > "),value:s.value,noValue:s.value==null})}var h=g9n({series:this,dataIndex:n,multipleSeries:r});return h},e.prototype._updateCategoriesData=function(){var n=Rn(this.option.categories||[],function(a){return a.value!=null?a:An({value:0},a)}),r=new bv(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Oc);const pdo=fdo;var mdo={type:"graphRoam",event:"graphRoam",update:"none"};function gdo(t){t.registerChartView(udo),t.registerSeriesModel(pdo),t.registerProcessor(zuo),t.registerVisual(Guo),t.registerVisual(Vuo),t.registerLayout(Yuo),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Zuo),t.registerLayout(edo),t.registerCoordinateSystem("graphView",{dimensions:yse.dimensions,create:ndo}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},jd),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},jd),t.registerAction(mdo,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(a){var o=a.coordinateSystem,s=wst(o,e,void 0,r);a.setCenter&&a.setCenter(s.center),a.setZoom&&a.setZoom(s.zoom)})})}var vdo=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),Ado=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new vdo},e.prototype.buildPath=function(n,r){var a=Math.cos,o=Math.sin,s=r.r,l=r.width,c=r.angle,u=r.x-a(c)*l*(l>=s/3?1:2),d=r.y-o(c)*l*(l>=s/3?1:2);c=r.angle-Math.PI/2,n.moveTo(u,d),n.lineTo(r.x+a(c)*l,r.y+o(c)*l),n.lineTo(r.x+a(r.angle)*s,r.y+o(r.angle)*s),n.lineTo(r.x-a(c)*l,r.y-o(c)*l),n.lineTo(u,d)},e}(no);const ydo=Ado;function bdo(t,e){var n=t.get("center"),r=e.getWidth(),a=e.getHeight(),o=Math.min(r,a),s=lr(n[0],e.getWidth()),l=lr(n[1],e.getHeight()),c=lr(t.get("radius"),o/2);return{cx:s,cy:l,r:c}}function Ahe(t,e){var n=t==null?"":t+"";return e&&(vr(e)?n=e.replace("{value}",n):ai(e)&&(n=e(t))),n}var xdo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),s=bdo(n,a);this._renderMain(n,r,a,o,s),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,a,o,s){var l=this.group,c=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,d=-n.get("endAngle")/180*Math.PI,h=n.getModel("axisLine"),f=h.get("roundCap"),p=f?aye:q0,m=h.get("show"),g=h.getModel("lineStyle"),v=g.get("width"),A=[u,d];fot(A,!c),u=A[0],d=A[1];for(var y=d-u,S=u,x=[],w=0;m&&w<o.length;w++){var _=Math.min(Math.max(o[w][0],0),1);d=u+y*_;var C=new p({shape:{startAngle:S,endAngle:d,cx:s.cx,cy:s.cy,clockwise:c,r0:s.r-v,r:s.r},silent:!0});C.setStyle({fill:o[w][1]}),C.setStyle(g.getLineStyle(["color","width"])),x.push(C),S=d}x.reverse(),Ie(x,function(k){return l.add(k)});var R=function(k){if(k<=0)return o[0][1];var P;for(P=0;P<o.length;P++)if(o[P][0]>=k&&(P===0?0:o[P-1][0])<k)return o[P][1];return o[P-1][1]};this._renderTicks(n,r,a,R,s,u,d,c,v),this._renderTitleAndDetail(n,r,a,R,s),this._renderAnchor(n,s),this._renderPointer(n,r,a,R,s,u,d,c,v)},e.prototype._renderTicks=function(n,r,a,o,s,l,c,u,d){for(var h=this.group,f=s.cx,p=s.cy,m=s.r,g=+n.get("min"),v=+n.get("max"),A=n.getModel("splitLine"),y=n.getModel("axisTick"),S=n.getModel("axisLabel"),x=n.get("splitNumber"),w=y.get("splitNumber"),_=lr(A.get("length"),m),C=lr(y.get("length"),m),R=l,k=(c-l)/x,P=k/w,N=A.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),I=A.get("distance"),b,T,M=0;M<=x;M++){if(b=Math.cos(R),T=Math.sin(R),A.get("show")){var D=I?I+d:d,B=new vp({shape:{x1:b*(m-D)+f,y1:T*(m-D)+p,x2:b*(m-_-D)+f,y2:T*(m-_-D)+p},style:N,silent:!0});N.stroke==="auto"&&B.setStyle({stroke:o(M/x)}),h.add(B)}if(S.get("show")){var D=S.get("distance")+I,j=Ahe(fd(M/x*(v-g)+g),S.get("formatter")),H=o(M/x),U=b*(m-_-D)+f,$=T*(m-_-D)+p,z=S.get("rotate"),Z=0;z==="radial"?(Z=-R+2*Math.PI,Z>Math.PI/2&&(Z+=Math.PI)):z==="tangential"?Z=-R-Math.PI/2:cs(z)&&(Z=z*Math.PI/180),Z===0?h.add(new Jo({style:yc(S,{text:j,x:U,y:$,verticalAlign:T<-.8?"top":T>.8?"bottom":"middle",align:b<-.4?"left":b>.4?"right":"center"},{inheritColor:H}),silent:!0})):h.add(new Jo({style:yc(S,{text:j,x:U,y:$,verticalAlign:"middle",align:"center"},{inheritColor:H}),silent:!0,originX:U,originY:$,rotation:Z}))}if(y.get("show")&&M!==x){var D=y.get("distance");D=D?D+d:d;for(var K=0;K<=w;K++){b=Math.cos(R),T=Math.sin(R);var Q=new vp({shape:{x1:b*(m-D)+f,y1:T*(m-D)+p,x2:b*(m-C-D)+f,y2:T*(m-C-D)+p},silent:!0,style:L});L.stroke==="auto"&&Q.setStyle({stroke:o((M+K/w)/x)}),h.add(Q),R+=P}R-=P}else R+=k}},e.prototype._renderPointer=function(n,r,a,o,s,l,c,u,d){var h=this.group,f=this._data,p=this._progressEls,m=[],g=n.get(["pointer","show"]),v=n.getModel("progress"),A=v.get("show"),y=n.getData(),S=y.mapDimension("value"),x=+n.get("min"),w=+n.get("max"),_=[x,w],C=[l,c];function R(P,N){var L=y.getItemModel(P),I=L.getModel("pointer"),b=lr(I.get("width"),s.r),T=lr(I.get("length"),s.r),M=n.get(["pointer","icon"]),D=I.get("offsetCenter"),B=lr(D[0],s.r),j=lr(D[1],s.r),H=I.get("keepAspect"),U;return M?U=vh(M,B-b/2,j-T,b,T,null,H):U=new ydo({shape:{angle:-Math.PI/2,width:b,r:T,x:B,y:j}}),U.rotation=-(N+Math.PI/2),U.x=s.cx,U.y=s.cy,U}function k(P,N){var L=v.get("roundCap"),I=L?aye:q0,b=v.get("overlap"),T=b?v.get("width"):d/y.count(),M=b?s.r-T:s.r-(P+1)*T,D=b?s.r:s.r-P*T,B=new I({shape:{startAngle:l,endAngle:N,cx:s.cx,cy:s.cy,clockwise:u,r0:M,r:D}});return b&&(B.z2=w-y.get(S,P)%w),B}(A||g)&&(y.diff(f).add(function(P){var N=y.get(S,P);if(g){var L=R(P,l);Kc(L,{rotation:-((isNaN(+N)?C[0]:ol(N,_,C,!0))+Math.PI/2)},n),h.add(L),y.setItemGraphicEl(P,L)}if(A){var I=k(P,l),b=v.get("clip");Kc(I,{shape:{endAngle:ol(N,_,C,b)}},n),h.add(I),jKe(n.seriesIndex,y.dataType,P,I),m[P]=I}}).update(function(P,N){var L=y.get(S,P);if(g){var I=f.getItemGraphicEl(N),b=I?I.rotation:l,T=R(P,b);T.rotation=b,vs(T,{rotation:-((isNaN(+L)?C[0]:ol(L,_,C,!0))+Math.PI/2)},n),h.add(T),y.setItemGraphicEl(P,T)}if(A){var M=p[N],D=M?M.shape.endAngle:l,B=k(P,D),j=v.get("clip");vs(B,{shape:{endAngle:ol(L,_,C,j)}},n),h.add(B),jKe(n.seriesIndex,y.dataType,P,B),m[P]=B}}).execute(),y.each(function(P){var N=y.getItemModel(P),L=N.getModel("emphasis"),I=L.get("focus"),b=L.get("blurScope"),T=L.get("disabled");if(g){var M=y.getItemGraphicEl(P),D=y.getItemVisual(P,"style"),B=D.fill;if(M instanceof fm){var j=M.style;M.useStyle(An({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},D))}else M.useStyle(D),M.type!=="pointer"&&M.setColor(B);M.setStyle(N.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",o(ol(y.get(S,P),_,[0,1],!0))),M.z2EmphasisLift=0,dg(M,N),bd(M,I,b,T)}if(A){var H=m[P];H.useStyle(y.getItemVisual(P,"style")),H.setStyle(N.getModel(["progress","itemStyle"]).getItemStyle()),H.z2EmphasisLift=0,dg(H,N),bd(H,I,b,T)}}),this._progressEls=m)},e.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),o=a.get("show");if(o){var s=a.get("size"),l=a.get("icon"),c=a.get("offsetCenter"),u=a.get("keepAspect"),d=vh(l,r.cx-s/2+lr(c[0],r.r),r.cy-s/2+lr(c[1],r.r),s,s,null,u);d.z2=a.get("showAbove")?1:0,d.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(d)}},e.prototype._renderTitleAndDetail=function(n,r,a,o,s){var l=this,c=n.getData(),u=c.mapDimension("value"),d=+n.get("min"),h=+n.get("max"),f=new ta,p=[],m=[],g=n.isAnimationEnabled(),v=n.get(["pointer","showAbove"]);c.diff(this._data).add(function(A){p[A]=new Jo({silent:!0}),m[A]=new Jo({silent:!0})}).update(function(A,y){p[A]=l._titleEls[y],m[A]=l._detailEls[y]}).execute(),c.each(function(A){var y=c.getItemModel(A),S=c.get(u,A),x=new ta,w=o(ol(S,[d,h],[0,1],!0)),_=y.getModel("title");if(_.get("show")){var C=_.get("offsetCenter"),R=s.cx+lr(C[0],s.r),k=s.cy+lr(C[1],s.r),P=p[A];P.attr({z2:v?0:2,style:yc(_,{x:R,y:k,text:c.getName(A),align:"center",verticalAlign:"middle"},{inheritColor:w})}),x.add(P)}var N=y.getModel("detail");if(N.get("show")){var L=N.get("offsetCenter"),I=s.cx+lr(L[0],s.r),b=s.cy+lr(L[1],s.r),T=lr(N.get("width"),s.r),M=lr(N.get("height"),s.r),D=n.get(["progress","show"])?c.getItemVisual(A,"style").fill:w,P=m[A],B=N.get("formatter");P.attr({z2:v?0:2,style:yc(N,{x:I,y:b,text:Ahe(S,B),width:isNaN(T)?null:T,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:D})}),x8n(P,{normal:N},S,function(H){return Ahe(H,B)}),g&&E8n(P,A,c,n,{getFormattedLabel:function(H,U,$,z,Z,K){return Ahe(K?K.interpolatedValue:S,B)}}),x.add(P)}f.add(x)}),this.group.add(f),this._titleEls=p,this._detailEls=m},e.type="gauge",e}(ql);const Edo=xdo;var Sdo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return e.prototype.getInitialData=function(n,r){return KV(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Oc);const wdo=Sdo;function _do(t){t.registerChartView(Edo),t.registerSeriesModel(wdo)}var Tdo=["itemStyle","opacity"],Cdo=function(t){nn(e,t);function e(n,r){var a=t.call(this)||this,o=a,s=new aA,l=new Jo;return o.setTextContent(l),a.setTextGuideLine(s),a.updateData(n,r,!0),a}return e.prototype.updateData=function(n,r,a){var o=this,s=n.hostModel,l=n.getItemModel(r),c=n.getItemLayout(r),u=l.getModel("emphasis"),d=l.get(Tdo);d=d??1,a||Fw(o),o.useStyle(n.getItemVisual(r,"style")),o.style.lineJoin="round",a?(o.setShape({points:c.points}),o.style.opacity=0,Kc(o,{style:{opacity:d}},s,r)):vs(o,{style:{opacity:d},shape:{points:c.points}},s,r),dg(o,l),this._updateLabel(n,r),bd(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r){var a=this,o=this.getTextGuideLine(),s=a.getTextContent(),l=n.hostModel,c=n.getItemModel(r),u=n.getItemLayout(r),d=u.label,h=n.getItemVisual(r,"style"),f=h.fill;hg(s,Cp(c),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:h.opacity,defaultText:n.getName(r)},{normal:{align:d.textAlign,verticalAlign:d.verticalAlign}}),a.setTextConfig({local:!0,inside:!!d.inside,insideStroke:f,outsideFill:f});var p=d.linePoints;o.setShape({points:p}),a.textGuideLineConfig={anchor:p?new Oa(p[0][0],p[0][1]):null},vs(s,{style:{x:d.x,y:d.y}},l,r),s.attr({rotation:d.rotation,originX:d.x,originY:d.y,z2:10}),dst(a,hst(c),{stroke:f})},e}(Y0),kdo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a){var o=n.getData(),s=this._data,l=this.group;o.diff(s).add(function(c){var u=new Cdo(o,c);o.setItemGraphicEl(c,u),l.add(u)}).update(function(c,u){var d=s.getItemGraphicEl(u);d.updateData(o,c),l.add(d),o.setItemGraphicEl(c,d)}).remove(function(c){var u=s.getItemGraphicEl(c);dre(u,n,c)}).execute(),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ql);const Rdo=kdo;var Mdo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vse(Cr(this.getData,this),Cr(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return KV(this,{coordDimensions:["value"],encodeDefaulter:fa(Bot,this)})},e.prototype._defaultLabelLine=function(n){e8(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.prototype.getDataParams=function(n){var r=this.getData(),a=t.prototype.getDataParams.call(this,n),o=r.mapDimension("value"),s=r.getSum(o);return a.percent=s?+(r.get(o,n)/s*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Oc);const Ndo=Mdo;function Ido(t,e){return nf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Pdo(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(c){return c}),a=[],o=e==="ascending",s=0,l=t.count();s<l;s++)a[s]=s;return ai(e)?a.sort(e):e!=="none"&&a.sort(function(c,u){return o?r[c]-r[u]:r[u]-r[c]}),a}function Odo(t){var e=t.hostModel,n=e.get("orient");t.each(function(r){var a=t.getItemModel(r),o=a.getModel("label"),s=o.get("position"),l=a.getModel("labelLine"),c=t.getItemLayout(r),u=c.points,d=s==="inner"||s==="inside"||s==="center"||s==="insideLeft"||s==="insideRight",h,f,p,m;if(d)s==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,h="left"):s==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,h="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),m=[[f,p],[f,p]];else{var g=void 0,v=void 0,A=void 0,y=void 0,S=l.get("length");s==="left"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,A=g-S,f=A-5,h="right"):s==="right"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,A=g+S,f=A+5,h="left"):s==="top"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,y=v-S,p=y-5,h="center"):s==="bottom"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,y=v+S,p=y+5,h="center"):s==="rightTop"?(g=n==="horizontal"?u[3][0]:u[1][0],v=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(y=v-S,p=y-5,h="center"):(A=g+S,f=A+5,h="top")):s==="rightBottom"?(g=u[2][0],v=u[2][1],n==="horizontal"?(y=v+S,p=y+5,h="center"):(A=g+S,f=A+5,h="bottom")):s==="leftTop"?(g=u[0][0],v=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(y=v-S,p=y-5,h="center"):(A=g-S,f=A-5,h="right")):s==="leftBottom"?(g=n==="horizontal"?u[1][0]:u[3][0],v=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(y=v+S,p=y+5,h="center"):(A=g-S,f=A-5,h="right")):(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,n==="horizontal"?(y=v+S,p=y+5,h="center"):(A=g+S,f=A+5,h="left")),n==="horizontal"?(A=g,f=A):(y=v,p=y),m=[[g,v],[A,y]]}c.label={linePoints:m,x:f,y:p,verticalAlign:"middle",textAlign:h,inside:d}})}function Ldo(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),o=n.get("sort"),s=Ido(n,e),l=n.get("orient"),c=s.width,u=s.height,d=Pdo(r,o),h=s.x,f=s.y,p=l==="horizontal"?[lr(n.get("minSize"),u),lr(n.get("maxSize"),u)]:[lr(n.get("minSize"),c),lr(n.get("maxSize"),c)],m=r.getDataExtent(a),g=n.get("min"),v=n.get("max");g==null&&(g=Math.min(m[0],0)),v==null&&(v=m[1]);var A=n.get("funnelAlign"),y=n.get("gap"),S=l==="horizontal"?c:u,x=(S-y*(r.count()-1))/r.count(),w=function(b,T){if(l==="horizontal"){var M=r.get(a,b)||0,D=ol(M,[g,v],p,!0),B=void 0;switch(A){case"top":B=f;break;case"center":B=f+(u-D)/2;break;case"bottom":B=f+(u-D);break}return[[T,B],[T,B+D]]}var j=r.get(a,b)||0,H=ol(j,[g,v],p,!0),U;switch(A){case"left":U=h;break;case"center":U=h+(c-H)/2;break;case"right":U=h+c-H;break}return[[U,T],[U+H,T]]};o==="ascending"&&(x=-x,y=-y,l==="horizontal"?h+=c:f+=u,d=d.reverse());for(var _=0;_<d.length;_++){var C=d[_],R=d[_+1],k=r.getItemModel(C);if(l==="horizontal"){var P=k.get(["itemStyle","width"]);P==null?P=x:(P=lr(P,c),o==="ascending"&&(P=-P));var N=w(C,h),L=w(R,h+P);h+=P+y,r.setItemLayout(C,{points:N.concat(L.slice().reverse())})}else{var I=k.get(["itemStyle","height"]);I==null?I=x:(I=lr(I,u),o==="ascending"&&(I=-I));var N=w(C,f),L=w(R,f+I);f+=I+y,r.setItemLayout(C,{points:N.concat(L.slice().reverse())})}}Odo(r)})}function Bdo(t){t.registerChartView(Rdo),t.registerSeriesModel(Ndo),t.registerLayout(Ldo),t.registerProcessor(gse("funnel"))}var Ddo=.3,$do=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new ta,n._initialized=!1,n}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(n,r,a,o){this._progressiveEls=null;var s=this._dataGroup,l=n.getData(),c=this._data,u=n.coordinateSystem,d=u.dimensions,h=OPt(n);l.diff(c).add(f).update(p).remove(m).execute();function f(v){var A=PPt(l,s,v,d,u);d8e(A,l,v,h)}function p(v,A){var y=c.getItemGraphicEl(A),S=eFn(l,v,d,u);l.setItemGraphicEl(v,y),vs(y,{shape:{points:S}},n,v),Fw(y),d8e(y,l,v,h)}function m(v){var A=c.getItemGraphicEl(v);s.remove(A)}if(!this._initialized){this._initialized=!0;var g=Fdo(u,n,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(g)}this._data=l},e.prototype.incrementalPrepareRender=function(n,r,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(n,r,a){for(var o=r.getData(),s=r.coordinateSystem,l=s.dimensions,c=OPt(r),u=this._progressiveEls=[],d=n.start;d<n.end;d++){var h=PPt(o,this._dataGroup,d,l,s);h.incremental=!0,d8e(h,o,d,c),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(ql);function Fdo(t,e,n){var r=t.model,a=t.getRect(),o=new Zo({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),s=r.get("layout")==="horizontal"?"width":"height";return o.setShape(s,0),Kc(o,{shape:{width:a.width,height:a.height}},e,n),o}function eFn(t,e,n,r){for(var a=[],o=0;o<n.length;o++){var s=n[o],l=t.get(t.mapDimension(s),e);jdo(l,r.getAxis(s).type)||a.push(r.dataToPoint(l,s))}return a}function PPt(t,e,n,r,a){var o=eFn(t,n,r,a),s=new aA({shape:{points:o},z2:10});return e.add(s),t.setItemGraphicEl(n,s),s}function OPt(t){var e=t.get("smooth",!0);return e===!0&&(e=Ddo),e=rC(e),rz(e)&&(e=0),{smooth:e}}function d8e(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var a=e.getItemModel(n),o=a.getModel("emphasis");dg(t,a,"lineStyle"),bd(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function jdo(t,e){return e==="category"?t==null:t==null||isNaN(t)}const Hdo=$do;var Udo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.getInitialData=function(n,r){return kC(null,this,{useEncodeDefaulter:Cr(zdo,null,this)})},e.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,a=this.getData(),o=[];return r.eachActiveState(a,function(s,l){n===s&&o.push(a.getRawIndex(l))}),o},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Oc);function zdo(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Ie(e.dimensions,function(r){var a=Gdo(r);n[r]=a}),n}}function Gdo(t){return+t.replace("dim","")}const Vdo=Udo;var Kdo=["lineStyle","opacity"],Wdo={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(a,o){n.eachActiveState(o,function(s,l){var c=r[s];if(s==="normal"&&o.hasItemOption){var u=o.getItemModel(l).get(Kdo,!0);u!=null&&(c=u)}var d=o.ensureUniqueItemVisual(l,"style");d.opacity=c},a.start,a.end)}}}};const Qdo=Wdo;function qdo(t){Ydo(t),Jdo(t)}function Ydo(t){if(!t.parallel){var e=!1;Ie(t.series,function(n){n&&n.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function Jdo(t){var e=Ql(t.parallelAxis);Ie(e,function(n){if(Ci(n)){var r=n.parallelIndex||0,a=Ql(t.parallel)[r];a&&a.parallelAxisDefault&&Ra(n,a.parallelAxisDefault,!1)}})}var Zdo=5,Xdo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this._model=n,this._api=a,this._handlers||(this._handlers={},Ie(eho,function(o,s){a.getZr().on(s,this._handlers[s]=Cr(o,this))},this)),UV(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(n,r){mre(this,"_throttledDispatchExpand"),Ie(this._handlers,function(a,o){r.getZr().off(o,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},e.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(An({type:"parallelAxisExpand"},n))},e.type="parallel",e}(Au),eho={mousedown:function(t){h8e(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(h8e(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>Zdo)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!h8e(this,"mousemove"))){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function h8e(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const tho=Xdo;var nho=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(n){var r=this.option;n&&Ra(r,n,!0),this._initDimensions()},e.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(n){Ie(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},e.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=ll(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);Ie(a,function(o){n.push("dim"+o.get("dim")),r.push(o.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Fo);const rho=nho;var iho=function(t){nn(e,t);function e(n,r,a,o,s){var l=t.call(this,n,r,a)||this;return l.type=o||"value",l.axisIndex=s,l}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(CE);const aho=iho;function k9(t,e,n,r,a,o){t=t||0;var s=n[1]-n[0];if(a!=null&&(a=d7(a,[0,s])),o!=null&&(o=Math.max(o,a??0)),r==="all"){var l=Math.abs(e[1]-e[0]);l=d7(l,[0,s]),a=o=d7(l,[a,o]),r=0}e[0]=d7(e[0],n),e[1]=d7(e[1],n);var c=f8e(e,r);e[r]+=t;var u=a||0,d=n.slice();c.sign<0?d[0]+=u:d[1]-=u,e[r]=d7(e[r],d);var h;return h=f8e(e,r),a!=null&&(h.sign!==c.sign||h.span<a)&&(e[1-r]=e[r]+c.sign*a),h=f8e(e,r),o!=null&&h.span>o&&(e[1-r]=e[r]+h.sign*o),e}function f8e(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function d7(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var p8e=Ie,tFn=Math.min,nFn=Math.max,LPt=Math.floor,oho=Math.ceil,BPt=fd,sho=Math.PI,lho=function(){function t(e,n,r){this.type="parallel",this._axesMap=Ur(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var a=e.dimensions,o=e.parallelAxisIndex;p8e(a,function(s,l){var c=o[l],u=n.getComponent("parallelAxis",c),d=this._axesMap.set(s,new aho(s,use(u),[0,0],u.get("type"),c)),h=d.type==="category";d.onBand=h&&u.get("boundaryGap"),d.inverse=u.get("inverse"),u.axis=d,d.model=u,d.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,n){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,o=n.pixelDimIndex,s=e[1-o],l=e[o];return s>=r&&s<=r+n.axisLength&&l>=a&&l<=a+n.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,n){n.eachSeries(function(r){if(e.contains(r,n)){var a=r.getData();p8e(this.dimensions,function(o){var s=this._axesMap.get(o);s.scale.unionExtentFromData(a,a.mapDimension(o)),a8(s.scale,s.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=nf(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,n=this._rect,r=["x","y"],a=["width","height"],o=e.get("layout"),s=o==="horizontal"?0:1,l=n[a[s]],c=[0,l],u=this.dimensions.length,d=yhe(e.get("axisExpandWidth"),c),h=yhe(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>h&&h>1&&d>0&&l>0,p=e.get("axisExpandWindow"),m;if(p)m=yhe(p[1]-p[0],c),p[1]=p[0]+m;else{m=yhe(d*(h-1),c);var g=e.get("axisExpandCenter")||LPt(u/2);p=[d*g-m/2],p[1]=p[0]+m}var v=(l-m)/(u-h);v<3&&(v=0);var A=[LPt(BPt(p[0]/d,1))+1,oho(BPt(p[1]/d,1))-1],y=v/d*p[0];return{layout:o,pixelDimIndex:s,layoutBase:n[r[s]],layoutLength:l,axisBase:n[r[1-s]],axisLength:n[a[1-s]],axisExpandable:f,axisExpandWidth:d,axisCollapseWidth:v,axisExpandWindow:p,axisCount:u,winInnerIndices:A,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var e=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),o=a.layout;n.each(function(s){var l=[0,a.axisLength],c=s.inverse?1:0;s.setExtent(l[c],l[1-c])}),p8e(r,function(s,l){var c=(a.axisExpandable?uho:cho)(l,a),u={horizontal:{x:c.position,y:a.axisLength},vertical:{x:0,y:c.position}},d={horizontal:sho/2,vertical:0},h=[u[o].x+e.x,u[o].y+e.y],f=d[o],p=r1();bO(p,p,f),Dw(p,p,h),this._axesLayout[s]={position:h,rotation:f,transform:p,axisNameAvailableWidth:c.axisNameAvailableWidth,axisLabelShow:c.axisLabelShow,nameTruncateMaxWidth:c.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e),n)},t.prototype.eachActiveState=function(e,n,r,a){r==null&&(r=0),a==null&&(a=e.count());var o=this._axesMap,s=this.dimensions,l=[],c=[];Ie(s,function(v){l.push(e.mapDimension(v)),c.push(o.get(v).model)});for(var u=this.hasAxisBrushed(),d=r;d<a;d++){var h=void 0;if(!u)h="normal";else{h="active";for(var f=e.getValues(l,d),p=0,m=s.length;p<m;p++){var g=c[p].getActiveState(f[p]);if(g==="inactive"){h="inactive";break}}}n(h,d)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,n=this._axesMap,r=!1,a=0,o=e.length;a<o;a++)n.get(e[a]).model.getActiveState()!=="normal"&&(r=!0);return r},t.prototype.axisCoordToPoint=function(e,n){var r=this._axesLayout[n];return xw([e,0],r.transform)},t.prototype.getAxisLayout=function(e){return ji(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,a=n.axisExpandWindow.slice(),o=a[1]-a[0],s=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var l=e[r]-n.layoutBase-n.axisExpandWindow0Pos,c,u="slide",d=n.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),f=h[0]!=null;if(d)f&&d&&l<o*h[0]?(u="jump",c=l-o*h[2]):f&&d&&l>o*(1-h[0])?(u="jump",c=l-o*(1-h[2])):(c=l-o*h[1])>=0&&(c=l-o*(1-h[1]))<=0&&(c=0),c*=n.axisExpandWidth/d,c?k9(c,a,s,"all"):u="none";else{var p=a[1]-a[0],m=s[1]*l/p;a=[nFn(0,m-p/2)],a[1]=tFn(s[1],a[0]+p),a[0]=a[1]-p}return{axisExpandWindow:a,behavior:u}},t}();function yhe(t,e){return tFn(nFn(t,e[0]),e[1])}function cho(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function uho(t,e){var n=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,o=e.axisCollapseWidth,s=e.winInnerIndices,l,c=o,u=!1,d;return t<s[0]?(l=t*o,d=o):t<=s[1]?(l=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],c=r,u=!0):(l=n-(a-1-t)*o,d=o),{position:l,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:d}}const dho=lho;function hho(t,e){var n=[];return t.eachComponent("parallel",function(r,a){var o=new dho(r,t,e);o.name="parallel_"+a,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var a=r.getReferringComponents("parallel",Qh).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var fho={create:hho};const pho=fho;var rFn=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return e.prototype.getAreaSelectStyle=function(){return n8([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=ji(n);if(r)for(var a=r.length-1;a>=0;a--)Py(r[a])},e.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var o=0,s=r.length;o<s;o++)if(r[o][0]<=n&&n<=r[o][1])return"active";return"inactive"},e}(Fo);Vd(rFn,VV);const DPt=rFn;var o8=!0,Tre=Math.min,uz=Math.max,mho=Math.pow,gho=1e4,vho=6,Aho=6,$Pt="globalPan",yho={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bho={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},FPt={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},xho=0,Eho=function(t){nn(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new ta,r._uid="brushController_"+xho++,Ie(Rho,function(a,o){this._handlers[o]=Cr(a,this)},r),r}return e.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},e.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||Ilo(r,$Pt,this._uid),Ie(this._handlers,function(a,o){r.on(o,a)}),this._brushType=n.brushType,this._brushOption=Ra(ji(FPt),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;Plo(n,$Pt,this._uid),Ie(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};Ie(n,function(a){r[a.panelId]=ji(a)})}else this._panels=null;return this},e.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(n){n=Rn(n,function(f){return Ra(ji(FPt),f,!0)});var r="\0-brush-index-",a=this._covers,o=this._covers=[],s=this,l=this._creatingCover;return new PM(a,n,u,c).add(d).update(d).remove(h).execute(),this;function c(f,p){return(f.id!=null?f.id:r+p)+"-"+f.brushType}function u(f,p){return c(f.__brushOption,p)}function d(f,p){var m=n[f];if(p!=null&&a[p]===l)o[f]=a[p];else{var g=o[f]=p!=null?(a[p].__brushOption=m,a[p]):aFn(s,iFn(s,m));Lst(s,g)}}function h(f){a[f]!==l&&s.group.remove(a[f])}},e.prototype.unmount=function(){return this.enableBrush(!1),MWe(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(SE);function iFn(t,e){var n=b2e[e.brushType].createCover(t,e);return n.__brushOption=e,sFn(n,e),t.group.add(n),n}function aFn(t,e){var n=Bst(e);return n.endCreating&&(n.endCreating(t,e),sFn(e,e.__brushOption)),e}function oFn(t,e){var n=e.__brushOption;Bst(e).updateCoverShape(t,e,n.range,n)}function sFn(t,e){var n=e.z;n==null&&(n=gho),t.traverse(function(r){r.z=n,r.z2=n})}function Lst(t,e){Bst(e).updateCommon(t,e),oFn(t,e)}function Bst(t){return b2e[t.__brushOption.brushType]}function Dst(t,e,n){var r=t._panels;if(!r)return o8;var a,o=t._transform;return Ie(r,function(s){s.isTargetByCursor(e,n,o)&&(a=s)}),a}function lFn(t,e){var n=t._panels;if(!n)return o8;var r=e.__brushOption.panelId;return r!=null?n[r]:o8}function MWe(t){var e=t._covers,n=e.length;return Ie(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function s8(t,e){var n=Rn(t._covers,function(r){var a=r.__brushOption,o=ji(a.range);return{brushType:a.brushType,panelId:a.panelId,range:o}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Sho(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],a=n[0]-r[0],o=n[1]-r[1],s=mho(a*a+o*o,.5);return s>vho}function cFn(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function uFn(t,e,n,r){var a=new ta;return a.add(new Zo({name:"main",style:$st(n),silent:!0,draggable:!0,cursor:"move",drift:fa(jPt,t,e,a,["n","s","w","e"]),ondragend:fa(s8,e,{isEnd:!0})})),Ie(r,function(o){a.add(new Zo({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:fa(jPt,t,e,a,o),ondragend:fa(s8,e,{isEnd:!0})}))}),a}function dFn(t,e,n,r){var a=r.brushStyle.lineWidth||0,o=uz(a,Aho),s=n[0][0],l=n[1][0],c=s-a/2,u=l-a/2,d=n[0][1],h=n[1][1],f=d-o+a/2,p=h-o+a/2,m=d-s,g=h-l,v=m+a,A=g+a;Lk(t,e,"main",s,l,m,g),r.transformable&&(Lk(t,e,"w",c,u,o,A),Lk(t,e,"e",f,u,o,A),Lk(t,e,"n",c,u,v,o),Lk(t,e,"s",c,p,v,o),Lk(t,e,"nw",c,u,o,o),Lk(t,e,"ne",f,u,o,o),Lk(t,e,"sw",c,p,o,o),Lk(t,e,"se",f,p,o,o))}function NWe(t,e){var n=e.__brushOption,r=n.transformable,a=e.childAt(0);a.useStyle($st(n)),a.attr({silent:!r,cursor:r?"move":"default"}),Ie([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var s=e.childOfName(o.join("")),l=o.length===1?IWe(t,o[0]):_ho(t,o);s&&s.attr({silent:!r,invisible:!r,cursor:r?bho[l]+"-resize":null})})}function Lk(t,e,n,r,a,o,s){var l=e.childOfName(n);l&&l.setShape(Cho(Fst(t,e,[[r,a],[r+o,a+s]])))}function $st(t){return bi({strokeNoScale:!0},t.brushStyle)}function hFn(t,e,n,r){var a=[Tre(t,n),Tre(e,r)],o=[uz(t,n),uz(e,r)];return[[a[0],o[0]],[a[1],o[1]]]}function who(t){return P5(t.group)}function IWe(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=XTe(n[e],who(t));return r[a]}function _ho(t,e){var n=[IWe(t,e[0]),IWe(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function jPt(t,e,n,r,a,o){var s=n.__brushOption,l=t.toRectRange(s.range),c=fFn(e,a,o);Ie(r,function(u){var d=yho[u];l[d[0]][d[1]]+=c[d[0]]}),s.range=t.fromRectRange(hFn(l[0][0],l[1][0],l[0][1],l[1][1])),Lst(e,n),s8(e,{isEnd:!1})}function Tho(t,e,n,r){var a=e.__brushOption.range,o=fFn(t,n,r);Ie(a,function(s){s[0]+=o[0],s[1]+=o[1]}),Lst(t,e),s8(t,{isEnd:!1})}function fFn(t,e,n){var r=t.group,a=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function Fst(t,e,n){var r=lFn(t,e);return r&&r!==o8?r.clipPath(n,t._transform):ji(n)}function Cho(t){var e=Tre(t[0][0],t[1][0]),n=Tre(t[0][1],t[1][1]),r=uz(t[0][0],t[1][0]),a=uz(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:a-n}}function kho(t,e,n){if(!(!t._brushType||Mho(t,e.offsetX,e.offsetY))){var r=t._zr,a=t._covers,o=Dst(t,e,n);if(!t._dragging)for(var s=0;s<a.length;s++){var l=a[s].__brushOption;if(o&&(o===o8||l.panelId===o.panelId)&&b2e[l.brushType].contain(a[s],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function PWe(t){var e=t.event;e.preventDefault&&e.preventDefault()}function OWe(t,e,n){return t.childOfName("main").contain(e,n)}function pFn(t,e,n,r){var a=t._creatingCover,o=t._creatingPanel,s=t._brushOption,l;if(t._track.push(n.slice()),Sho(t)||a){if(o&&!a){s.brushMode==="single"&&MWe(t);var c=ji(s);c.brushType=HPt(c.brushType,o),c.panelId=o===o8?null:o.panelId,a=t._creatingCover=iFn(t,c),t._covers.push(a)}if(a){var u=b2e[HPt(t._brushType,o)],d=a.__brushOption;d.range=u.getCreatingRange(Fst(t,a,t._track)),r&&(aFn(t,a),u.updateCommon(t,a)),oFn(t,a),l={isEnd:r}}}else r&&s.brushMode==="single"&&s.removeOnClick&&Dst(t,e,n)&&MWe(t)&&(l={isEnd:r,removeOnClick:!0});return l}function HPt(t,e){return t==="auto"?e.defaultBrushType:t}var Rho={mousedown:function(t){if(this._dragging)UPt(this,t);else if(!t.target||!t.target.draggable){PWe(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=Dst(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(kho(this,t,r),this._dragging){PWe(t);var a=pFn(this,t,r,!1);a&&s8(this,a)}},mouseup:function(t){UPt(this,t)}};function UPt(t,e){if(t._dragging){PWe(e);var n=e.offsetX,r=e.offsetY,a=t.group.transformCoordToLocal(n,r),o=pFn(t,e,a,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&s8(t,o)}}function Mho(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var b2e={lineX:zPt(0),lineY:zPt(1),rect:{createCover:function(t,e){function n(r){return r}return uFn({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=cFn(t);return hFn(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){dFn(t,e,n,r)},updateCommon:NWe,contain:OWe},polygon:{createCover:function(t,e){var n=new ta;return n.add(new aA({name:"main",style:$st(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Y0({name:"main",draggable:!0,drift:fa(Tho,t,e),ondragend:fa(s8,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:Fst(t,e,n)})},updateCommon:NWe,contain:OWe}};function zPt(t){return{createCover:function(e,n){return uFn({toRectRange:function(r){var a=[r,[0,100]];return t&&a.reverse(),a},fromRectRange:function(r){return r[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=cFn(e),r=Tre(n[0][t],n[1][t]),a=uz(n[0][t],n[1][t]);return[r,a]},updateCoverShape:function(e,n,r,a){var o,s=lFn(e,n);if(s!==o8&&s.getLinearBrushOtherExtent)o=s.getLinearBrushOtherExtent(t);else{var l=e._zr;o=[0,[l.getWidth(),l.getHeight()][1-t]]}var c=[r,o];t&&c.reverse(),dFn(e,n,c,a)},updateCommon:NWe,contain:OWe}}const jst=Eho;function mFn(t){return t=Hst(t),function(e){return wot(e,t)}}function gFn(t,e){return t=Hst(t),function(n){var r=e??n,a=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(a||0)]}}function vFn(t,e,n){var r=Hst(t);return function(a,o){return r.contain(o[0],o[1])&&!g2e(a,e,n)}}function Hst(t){return Da.create(t)}var Nho=["axisLine","axisTickLabel","axisName"],Iho=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){t.prototype.init.apply(this,arguments),(this._brushController=new jst(r.getZr())).on("brush",Cr(this._onBrush,this))},e.prototype.render=function(n,r,a,o){if(!Pho(n,r,o)){this.axisModel=n,this.api=a,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new ta,this.group.add(this._axisGroup),!!n.get("show")){var l=Lho(n,r),c=l.coordinateSystem,u=n.getAreaSelectStyle(),d=u.width,h=n.axis.dim,f=c.getAxisLayout(h),p=An({strokeContainThreshold:d},f),m=new LM(n,p);Ie(Nho,m.add,m),this._axisGroup.add(m.getGroup()),this._refreshBrushController(p,u,n,l,d,a),sse(s,this._axisGroup,n)}}},e.prototype._refreshBrushController=function(n,r,a,o,s,l){var c=a.axis.getExtent(),u=c[1]-c[0],d=Math.min(30,Math.abs(u)*.1),h=Da.create({x:c[0],y:-s/2,width:u,height:s});h.x-=d,h.width+=2*d,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:mFn(h),isTargetByCursor:vFn(h,l,o),getLinearBrushOtherExtent:gFn(h,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Oho(a))},e.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,o=a.axis,s=Rn(r,function(l){return[o.coordToData(l.range[0],!0),o.coordToData(l.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:s})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Au);function Pho(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function Oho(t){var e=t.axis;return Rn(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function Lho(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const Bho=Iho;var Dho={type:"axisAreaSelect",event:"axisAreaSelected"};function $ho(t){t.registerAction(Dho,function(e,n){n.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,n){n.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Fho={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function AFn(t){t.registerComponentView(tho),t.registerComponentModel(rho),t.registerCoordinateSystem("parallel",pho),t.registerPreprocessor(qdo),t.registerComponentModel(DPt),t.registerComponentView(Bho),cz(t,"parallel",DPt,Fho),$ho(t)}function jho(t){qa(AFn),t.registerChartView(Hdo),t.registerSeriesModel(Vdo),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Qdo)}var Hho=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),Uho=function(t){nn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Hho},e.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},e.prototype.highlight=function(){NM(this)},e.prototype.downplay=function(){IM(this)},e}(no),zho=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return e.prototype.render=function(n,r,a){var o=this,s=n.getGraph(),l=this.group,c=n.layoutInfo,u=c.width,d=c.height,h=n.getData(),f=n.getData("edge"),p=n.get("orient");this._model=n,l.removeAll(),l.x=c.x,l.y=c.y,s.eachEdge(function(m){var g=new Uho,v=ia(g);v.dataIndex=m.dataIndex,v.seriesIndex=n.seriesIndex,v.dataType="edge";var A=m.getModel(),y=A.getModel("lineStyle"),S=y.get("curveness"),x=m.node1.getLayout(),w=m.node1.getModel(),_=w.get("localX"),C=w.get("localY"),R=m.node2.getLayout(),k=m.node2.getModel(),P=k.get("localX"),N=k.get("localY"),L=m.getLayout(),I,b,T,M,D,B,j,H;g.shape.extent=Math.max(1,L.dy),g.shape.orient=p,p==="vertical"?(I=(_!=null?_*u:x.x)+L.sy,b=(C!=null?C*d:x.y)+x.dy,T=(P!=null?P*u:R.x)+L.ty,M=N!=null?N*d:R.y,D=I,B=b*(1-S)+M*S,j=T,H=b*S+M*(1-S)):(I=(_!=null?_*u:x.x)+x.dx,b=(C!=null?C*d:x.y)+L.sy,T=P!=null?P*u:R.x,M=(N!=null?N*d:R.y)+L.ty,D=I*(1-S)+T*S,B=b,j=I*S+T*(1-S),H=M),g.setShape({x1:I,y1:b,x2:T,y2:M,cpx1:D,cpy1:B,cpx2:j,cpy2:H}),g.useStyle(y.getItemStyle()),GPt(g.style,p,m);var U=""+A.get("value"),$=Cp(A,"edgeLabel");hg(g,$,{labelFetcher:{getFormattedLabel:function(K,Q,ee,X,te,J){return n.getFormattedLabel(K,Q,"edge",X,Aw(te,$.normal&&$.normal.get("formatter"),U),J)}},labelDataIndex:m.dataIndex,defaultText:U}),g.setTextConfig({position:"inside"});var z=A.getModel("emphasis");dg(g,A,"lineStyle",function(K){var Q=K.getItemStyle();return GPt(Q,p,m),Q}),l.add(g),f.setItemGraphicEl(m.dataIndex,g);var Z=z.get("focus");bd(g,Z==="adjacency"?m.getAdjacentDataIndices():Z==="trajectory"?m.getTrajectoryDataIndices():Z,z.get("blurScope"),z.get("disabled"))}),s.eachNode(function(m){var g=m.getLayout(),v=m.getModel(),A=v.get("localX"),y=v.get("localY"),S=v.getModel("emphasis"),x=new Zo({shape:{x:A!=null?A*u:g.x,y:y!=null?y*d:g.y,width:g.dx,height:g.dy},style:v.getModel("itemStyle").getItemStyle(),z2:10});hg(x,Cp(v),{labelFetcher:{getFormattedLabel:function(_,C){return n.getFormattedLabel(_,C,"node")}},labelDataIndex:m.dataIndex,defaultText:m.id}),x.disableLabelAnimation=!0,x.setStyle("fill",m.getVisual("color")),x.setStyle("decal",m.getVisual("style").decal),dg(x,v),l.add(x),h.setItemGraphicEl(m.dataIndex,x),ia(x).dataType="node";var w=S.get("focus");bd(x,w==="adjacency"?m.getAdjacentDataIndices():w==="trajectory"?m.getTrajectoryDataIndices():w,S.get("blurScope"),S.get("disabled"))}),h.eachItemGraphicEl(function(m,g){var v=h.getItemModel(g);v.get("draggable")&&(m.drift=function(A,y){o._focusAdjacencyDisabled=!0,this.shape.x+=A,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:h.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/d})},m.ondragend=function(){o._focusAdjacencyDisabled=!1},m.draggable=!0,m.cursor="move")}),!this._data&&n.isAnimationEnabled()&&l.setClipPath(Gho(l.getBoundingRect(),n,function(){l.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(ql);function GPt(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");vr(r)&&vr(a)&&(t.fill=new NV(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function Gho(t,e,n){var r=new Zo({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Kc(r,{shape:{width:t.width+20}},e,n),r}const Vho=zho;var Kho=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){var a=n.edges||n.links,o=n.data||n.nodes,s=n.levels;this.levelModels=[];for(var l=this.levelModels,c=0;c<s.length;c++)s[c].depth!=null&&s[c].depth>=0&&(l[s[c].depth]=new Kl(s[c],this,r));if(o&&a){var u=X7n(o,a,this,!0,d);return u.data}function d(h,f){h.wrapMethod("getItemModel",function(p,m){var g=p.parentModel,v=g.getData().getItemLayout(m);if(v){var A=v.depth,y=g.levelModels[A];y&&(p.parentModel=y)}return p}),f.wrapMethod("getItemModel",function(p,m){var g=p.parentModel,v=g.getGraph().getEdgeByIndex(m),A=v.node1.getLayout();if(A){var y=A.depth,S=g.levelModels[y];S&&(p.parentModel=S)}return p})}},e.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,o=a[n];o.localX=r[0],o.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,a){function o(p){return isNaN(p)||p==null}if(a==="edge"){var s=this.getDataParams(n,a),l=s.data,c=s.value,u=l.source+" -- "+l.target;return kp("nameValue",{name:u,value:c,noValue:o(c)})}else{var d=this.getGraph().getNodeByIndex(n),h=d.getLayout().value,f=this.getDataParams(n,a).data.name;return kp("nameValue",{name:f!=null?f+"":null,value:h,noValue:o(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(n,r){var a=t.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(n),s=o.getLayout().value;a.value=s}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Oc);const Who=Kho;function Qho(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),o=qho(n,e);n.layoutInfo=o;var s=o.width,l=o.height,c=n.getGraph(),u=c.nodes,d=c.edges;Jho(u);var h=ll(u,function(g){return g.getLayout().value===0}),f=h.length!==0?0:n.get("layoutIterations"),p=n.get("orient"),m=n.get("nodeAlign");Yho(u,d,r,a,s,l,f,p,m)})}function qho(t,e){return nf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Yho(t,e,n,r,a,o,s,l,c){Zho(t,e,n,a,o,l,c),nfo(t,e,o,a,r,s,l),dfo(t,l)}function Jho(t){Ie(t,function(e){var n=B5(e.outEdges,dye),r=B5(e.inEdges,dye),a=e.getValue()||0,o=Math.max(n,r,a);e.setLayout({value:o},!0)})}function Zho(t,e,n,r,a,o,s){for(var l=[],c=[],u=[],d=[],h=0,f=0;f<e.length;f++)l[f]=1;for(var f=0;f<t.length;f++)c[f]=t[f].inEdges.length,c[f]===0&&u.push(t[f]);for(var p=-1;u.length;){for(var m=0;m<u.length;m++){var g=u[m],v=g.hostGraph.data.getRawDataItem(g.dataIndex),A=v.depth!=null&&v.depth>=0;A&&v.depth>p&&(p=v.depth),g.setLayout({depth:A?v.depth:h},!0),o==="vertical"?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var S=g.outEdges[y],x=e.indexOf(S);l[x]=0;var w=S.node2,_=t.indexOf(w);--c[_]===0&&d.indexOf(w)<0&&d.push(w)}}++h,u=d,d=[]}for(var f=0;f<l.length;f++)if(l[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=p>h-1?p:h-1;s&&s!=="left"&&Xho(t,s,o,C);var R=o==="vertical"?(a-n)/C:(r-n)/C;tfo(t,R,o)}function yFn(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function Xho(t,e,n,r){if(e==="right"){for(var a=[],o=t,s=0;o.length;){for(var l=0;l<o.length;l++){var c=o[l];c.setLayout({skNodeHeight:s},!0);for(var u=0;u<c.inEdges.length;u++){var d=c.inEdges[u];a.indexOf(d.node1)<0&&a.push(d.node1)}}o=a,a=[],++s}Ie(t,function(h){yFn(h)||h.setLayout({depth:Math.max(0,r-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&efo(t,r)}function efo(t,e){Ie(t,function(n){!yFn(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function tfo(t,e,n){Ie(t,function(r){var a=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function nfo(t,e,n,r,a,o,s){var l=rfo(t,s);ifo(l,e,n,r,a,s),m8e(l,a,n,r,s);for(var c=1;o>0;o--)c*=.99,afo(l,c,s),m8e(l,a,n,r,s),ufo(l,c,s),m8e(l,a,n,r,s)}function rfo(t,e){var n=[],r=e==="vertical"?"y":"x",a=BKe(t,function(o){return o.getLayout()[r]});return a.keys.sort(function(o,s){return o-s}),Ie(a.keys,function(o){n.push(a.buckets.get(o))}),n}function ifo(t,e,n,r,a,o){var s=1/0;Ie(t,function(l){var c=l.length,u=0;Ie(l,function(h){u+=h.getLayout().value});var d=o==="vertical"?(r-(c-1)*a)/u:(n-(c-1)*a)/u;d<s&&(s=d)}),Ie(t,function(l){Ie(l,function(c,u){var d=c.getLayout().value*s;o==="vertical"?(c.setLayout({x:u},!0),c.setLayout({dx:d},!0)):(c.setLayout({y:u},!0),c.setLayout({dy:d},!0))})}),Ie(e,function(l){var c=+l.getValue()*s;l.setLayout({dy:c},!0)})}function m8e(t,e,n,r,a){var o=a==="vertical"?"x":"y";Ie(t,function(s){s.sort(function(g,v){return g.getLayout()[o]-v.getLayout()[o]});for(var l,c,u,d=0,h=s.length,f=a==="vertical"?"dx":"dy",p=0;p<h;p++)c=s[p],u=d-c.getLayout()[o],u>0&&(l=c.getLayout()[o]+u,a==="vertical"?c.setLayout({x:l},!0):c.setLayout({y:l},!0)),d=c.getLayout()[o]+c.getLayout()[f]+e;var m=a==="vertical"?r:n;if(u=d-e-m,u>0){l=c.getLayout()[o]-u,a==="vertical"?c.setLayout({x:l},!0):c.setLayout({y:l},!0),d=l;for(var p=h-2;p>=0;--p)c=s[p],u=c.getLayout()[o]+c.getLayout()[f]+e-d,u>0&&(l=c.getLayout()[o]-u,a==="vertical"?c.setLayout({x:l},!0):c.setLayout({y:l},!0)),d=c.getLayout()[o]}})}function afo(t,e,n){Ie(t.slice().reverse(),function(r){Ie(r,function(a){if(a.outEdges.length){var o=B5(a.outEdges,ofo,n)/B5(a.outEdges,dye);if(isNaN(o)){var s=a.outEdges.length;o=s?B5(a.outEdges,sfo,n)/s:0}if(n==="vertical"){var l=a.getLayout().x+(o-IP(a,n))*e;a.setLayout({x:l},!0)}else{var c=a.getLayout().y+(o-IP(a,n))*e;a.setLayout({y:c},!0)}}})})}function ofo(t,e){return IP(t.node2,e)*t.getValue()}function sfo(t,e){return IP(t.node2,e)}function lfo(t,e){return IP(t.node1,e)*t.getValue()}function cfo(t,e){return IP(t.node1,e)}function IP(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function dye(t){return t.getValue()}function B5(t,e,n){for(var r=0,a=t.length,o=-1;++o<a;){var s=+e(t[o],n);isNaN(s)||(r+=s)}return r}function ufo(t,e,n){Ie(t,function(r){Ie(r,function(a){if(a.inEdges.length){var o=B5(a.inEdges,lfo,n)/B5(a.inEdges,dye);if(isNaN(o)){var s=a.inEdges.length;o=s?B5(a.inEdges,cfo,n)/s:0}if(n==="vertical"){var l=a.getLayout().x+(o-IP(a,n))*e;a.setLayout({x:l},!0)}else{var c=a.getLayout().y+(o-IP(a,n))*e;a.setLayout({y:c},!0)}}})})}function dfo(t,e){var n=e==="vertical"?"x":"y";Ie(t,function(r){r.outEdges.sort(function(a,o){return a.node2.getLayout()[n]-o.node2.getLayout()[n]}),r.inEdges.sort(function(a,o){return a.node1.getLayout()[n]-o.node1.getLayout()[n]})}),Ie(t,function(r){var a=0,o=0;Ie(r.outEdges,function(s){s.setLayout({sy:a},!0),a+=s.getLayout().dy}),Ie(r.inEdges,function(s){s.setLayout({ty:o},!0),o+=s.getLayout().dy})})}function hfo(t){t.eachSeriesByType("sankey",function(e){var n=e.getGraph(),r=n.nodes,a=n.edges;if(r.length){var o=1/0,s=-1/0;Ie(r,function(l){var c=l.getLayout().value;c<o&&(o=c),c>s&&(s=c)}),Ie(r,function(l){var c=new ag({type:"color",mappingMethod:"linear",dataExtent:[o,s],visual:e.get("color")}),u=c.mapValueToVisual(l.getLayout().value),d=l.getModel().get(["itemStyle","color"]);d!=null?(l.setVisual("color",d),l.setVisual("style",{fill:d})):(l.setVisual("color",u),l.setVisual("style",{fill:u}))})}a.length&&Ie(a,function(l){var c=l.getModel().get("lineStyle");l.setVisual("style",c)})})}function ffo(t){t.registerChartView(Vho),t.registerSeriesModel(Who),t.registerLayout(Qho),t.registerVisual(hfo),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var bFn=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),s=a.get("type"),l=o.get("type"),c;s==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),c=!0):l==="category"?(e.layout="vertical",r=o.getOrdinalMeta(),c=!0):e.layout=e.layout||"horizontal";var u=["x","y"],d=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[d],f=u[1-d],p=[a,o],m=p[d].get("type"),g=p[1-d].get("type"),v=e.data;if(v&&c){var A=[];Ie(v,function(x,w){var _;Tn(x)?(_=x.slice(),x.unshift(w)):Tn(x.value)?(_=An({},x),_.value=_.value.slice(),x.value.unshift(w)):_=x,A.push(_)}),e.data=A}var y=this.defaultValueDimensions,S=[{name:h,type:X1e(m),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:X1e(g),dimsDef:y.slice()}];return KV(this,{coordDimensions:S,dimensionsCount:y.length+1,encodeDefaulter:fa(H8n,S,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),xFn=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Oc);Vd(xFn,bFn,!0);const pfo=xFn;var mfo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=n.getData(),s=this.group,l=this._data;this._data||s.removeAll();var c=n.get("layout")==="horizontal"?1:0;o.diff(l).add(function(u){if(o.hasValue(u)){var d=o.getItemLayout(u),h=VPt(d,o,u,c,!0);o.setItemGraphicEl(u,h),s.add(h)}}).update(function(u,d){var h=l.getItemGraphicEl(d);if(!o.hasValue(u)){s.remove(h);return}var f=o.getItemLayout(u);h?(Fw(h),EFn(f,h,o,u)):h=VPt(f,o,u,c),s.add(h),o.setItemGraphicEl(u,h)}).remove(function(u){var d=l.getItemGraphicEl(u);d&&s.remove(d)}).execute(),this._data=o},e.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(o){o&&r.remove(o)})},e.type="boxplot",e}(ql),gfo=function(){function t(){}return t}(),vfo=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new gfo},e.prototype.buildPath=function(n,r){var a=r.points,o=0;for(n.moveTo(a[o][0],a[o][1]),o++;o<4;o++)n.lineTo(a[o][0],a[o][1]);for(n.closePath();o<a.length;o++)n.moveTo(a[o][0],a[o][1]),o++,n.lineTo(a[o][0],a[o][1])},e}(no);function VPt(t,e,n,r,a){var o=t.ends,s=new vfo({shape:{points:a?Afo(o,r,t):o}});return EFn(t,s,e,n,a),s}function EFn(t,e,n,r,a){var o=n.hostModel,s=E9[a?"initProps":"updateProps"];s(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=n.getItemModel(r),c=l.getModel("emphasis");dg(e,l),bd(e,c.get("focus"),c.get("blurScope"),c.get("disabled"))}function Afo(t,e,n){return Rn(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}const yfo=mfo;var Cee=Ie;function bfo(t){var e=xfo(t);Cee(e,function(n){var r=n.seriesModels;r.length&&(Efo(n),Cee(r,function(a,o){Sfo(a,n.boxOffsetList[o],n.boxWidthList[o])}))})}function xfo(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),o=za(n,a);o<0&&(o=n.length,n[o]=a,e[o]={axis:a,seriesModels:[]}),e[o].seriesModels.push(r)}),e}function Efo(t){var e=t.axis,n=t.seriesModels,r=n.length,a=t.boxWidthList=[],o=t.boxOffsetList=[],s=[],l;if(e.type==="category")l=e.getBandWidth();else{var c=0;Cee(n,function(m){c=Math.max(c,m.getData().count())});var u=e.getExtent();l=Math.abs(u[1]-u[0])/c}Cee(n,function(m){var g=m.get("boxWidth");Tn(g)||(g=[g,g]),s.push([lr(g[0],l)||0,lr(g[1],l)||0])});var d=l*.8-2,h=d/r*.3,f=(d-h*(r-1))/r,p=f/2-d/2;Cee(n,function(m,g){o.push(p),p+=h+f,a.push(Math.min(Math.max(f,s[g][0]),s[g][1]))})}function Sfo(t,e,n){var r=t.coordinateSystem,a=t.getData(),o=n/2,s=t.get("layout")==="horizontal"?0:1,l=1-s,c=["x","y"],u=a.mapDimension(c[s]),d=a.mapDimensionsAll(c[l]);if(u==null||d.length<5)return;for(var h=0;h<a.count();h++){var f=a.get(u,h),p=S(f,d[2],h),m=S(f,d[0],h),g=S(f,d[1],h),v=S(f,d[3],h),A=S(f,d[4],h),y=[];x(y,g,!1),x(y,v,!0),y.push(m,g,A,v),w(y,m),w(y,A),w(y,p),a.setItemLayout(h,{initBaseline:p[l],ends:y})}function S(_,C,R){var k=a.get(C,R),P=[];P[s]=_,P[l]=k;var N;return isNaN(_)||isNaN(k)?N=[NaN,NaN]:(N=r.dataToPoint(P),N[s]+=e),N}function x(_,C,R){var k=C.slice(),P=C.slice();k[s]+=o,P[s]-=o,R?_.push(k,P):_.push(P,k)}function w(_,C){var R=C.slice(),k=C.slice();R[s]-=o,k[s]+=o,_.push(R,k)}}function wfo(t,e){e=e||{};for(var n=[],r=[],a=e.boundIQR,o=a==="none"||a===0,s=0;s<t.length;s++){var l=Py(t[s].slice()),c=tge(l,.25),u=tge(l,.5),d=tge(l,.75),h=l[0],f=l[l.length-1],p=(a??1.5)*(d-c),m=o?h:Math.max(h,c-p),g=o?f:Math.min(f,d+p),v=e.itemNameFormatter,A=ai(v)?v({value:s}):vr(v)?v.replace("{value}",s+""):s+"";n.push([A,m,c,u,d,g]);for(var y=0;y<l.length;y++){var S=l[y];if(S<m||S>g){var x=[A,S];r.push(x)}}}return{boxData:n,outliers:r}}var _fo={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==Cv){var r="";Zs(r)}var a=wfo(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Tfo(t){t.registerSeriesModel(pfo),t.registerChartView(yfo),t.registerLayout(bfo),t.registerTransform(_fo)}var Cfo=["color","borderColor"],kfo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},e.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},e.prototype.incrementalRender=function(n,r,a,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){xO(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,o=this.group,s=r.getLayout("isSimpleBox"),l=n.get("clip",!0),c=n.coordinateSystem,u=c.getArea&&c.getArea();this._data||o.removeAll(),r.diff(a).add(function(d){if(r.hasValue(d)){var h=r.getItemLayout(d);if(l&&KPt(u,h))return;var f=g8e(h,d,!0);Kc(f,{shape:{points:h.ends}},n,d),v8e(f,r,d,s),o.add(f),r.setItemGraphicEl(d,f)}}).update(function(d,h){var f=a.getItemGraphicEl(h);if(!r.hasValue(d)){o.remove(f);return}var p=r.getItemLayout(d);if(l&&KPt(u,p)){o.remove(f);return}f?(vs(f,{shape:{points:p.ends}},n,d),Fw(f)):f=g8e(p),v8e(f,r,d,s),o.add(f),r.setItemGraphicEl(d,f)}).remove(function(d){var h=a.getItemGraphicEl(d);h&&o.remove(h)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),WPt(n,this.group);var r=n.get("clip",!0)?pse(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),o=a.getLayout("isSimpleBox"),s;(s=n.next())!=null;){var l=a.getItemLayout(s),c=g8e(l);v8e(c,a,s,o),c.incremental=!0,this.group.add(c),this._progressiveEls.push(c)}},e.prototype._incrementalRenderLarge=function(n,r){WPt(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(n){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(ql),Rfo=function(){function t(){}return t}(),Mfo=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Rfo},e.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},e}(no);function g8e(t,e,n){var r=t.ends;return new Mfo({shape:{points:n?Nfo(r,t):r},z2:100})}function KPt(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function v8e(t,e,n,r){var a=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,dg(t,a)}function Nfo(t,e){return Rn(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var Ifo=function(){function t(){}return t}(),A8e=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Ifo},e.prototype.buildPath=function(n,r){for(var a=r.points,o=0;o<a.length;)if(this.__sign===a[o++]){var s=a[o++];n.moveTo(s,a[o++]),n.lineTo(s,a[o++])}else o+=3},e}(no);function WPt(t,e,n,r){var a=t.getData(),o=a.getLayout("largePoints"),s=new A8e({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(s);var l=new A8e({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(l);var c=new A8e({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(c),y8e(1,s,t),y8e(-1,l,t),y8e(0,c,t),r&&(s.incremental=!0,l.incremental=!0),n&&n.push(s,l)}function y8e(t,e,n,r){var a=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(a=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(Cfo);e.useStyle(o),e.style.fill=null,e.style.stroke=a}const Pfo=kfo;var SFn=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(n,r,a){var o=r.getItemLayout(n);return o&&a.rect(o.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Oc);Vd(SFn,bFn,!0);const Ofo=SFn;function Lfo(t){!t||!Tn(t.series)||Ie(t.series,function(e){Ci(e)&&e.type==="k"&&(e.type="candlestick")})}var Bfo=["itemStyle","borderColor"],Dfo=["itemStyle","borderColor0"],$fo=["itemStyle","borderColorDoji"],Ffo=["itemStyle","color"],jfo=["itemStyle","color0"],Hfo={seriesType:"candlestick",plan:HV(),performRawSeries:!0,reset:function(t,e){function n(o,s){return s.get(o>0?Ffo:jfo)}function r(o,s){return s.get(o===0?$fo:o>0?Bfo:Dfo)}if(!e.isSeriesFiltered(t)){var a=t.pipelineContext.large;return!a&&{progress:function(o,s){for(var l;(l=o.next())!=null;){var c=s.getItemModel(l),u=s.getItemLayout(l).sign,d=c.getItemStyle();d.fill=n(u,c),d.stroke=r(u,c)||d.fill;var h=s.ensureUniqueItemVisual(l,"style");An(h,d)}}}}}};const Ufo=Hfo;var zfo={seriesType:"candlestick",plan:HV(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=Gfo(t,n),a=0,o=1,s=["x","y"],l=n.getDimensionIndex(n.mapDimension(s[a])),c=Rn(n.mapDimensionsAll(s[o]),n.getDimensionIndex,n),u=c[0],d=c[1],h=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),l<0||c.length<4)return;return{progress:t.pipelineContext.large?m:p};function p(g,v){for(var A,y=v.getStore();(A=g.next())!=null;){var S=y.get(l,A),x=y.get(u,A),w=y.get(d,A),_=y.get(h,A),C=y.get(f,A),R=Math.min(x,w),k=Math.max(x,w),P=D(R,S),N=D(k,S),L=D(_,S),I=D(C,S),b=[];B(b,N,0),B(b,P,1),b.push(H(I),H(N),H(L),H(P));var T=v.getItemModel(A),M=!!T.get(["itemStyle","borderColorDoji"]);v.setItemLayout(A,{sign:QPt(y,A,x,w,d,M),initBaseline:x>w?N[o]:P[o],ends:b,brushRect:j(_,C,S)})}function D(U,$){var z=[];return z[a]=$,z[o]=U,isNaN($)||isNaN(U)?[NaN,NaN]:e.dataToPoint(z)}function B(U,$,z){var Z=$.slice(),K=$.slice();Z[a]=ige(Z[a]+r/2,1,!1),K[a]=ige(K[a]-r/2,1,!0),z?U.push(Z,K):U.push(K,Z)}function j(U,$,z){var Z=D(U,z),K=D($,z);return Z[a]-=r/2,K[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:K[1]-Z[1]}}function H(U){return U[a]=ige(U[a],1),U}}function m(g,v){for(var A=s2(g.count*4),y=0,S,x=[],w=[],_,C=v.getStore(),R=!!t.get(["itemStyle","borderColorDoji"]);(_=g.next())!=null;){var k=C.get(l,_),P=C.get(u,_),N=C.get(d,_),L=C.get(h,_),I=C.get(f,_);if(isNaN(k)||isNaN(L)||isNaN(I)){A[y++]=NaN,y+=3;continue}A[y++]=QPt(C,_,P,N,d,R),x[a]=k,x[o]=L,S=e.dataToPoint(x,null,w),A[y++]=S?S[0]:NaN,A[y++]=S?S[1]:NaN,x[o]=I,S=e.dataToPoint(x,null,w),A[y++]=S?S[1]:NaN}v.setLayout("largePoints",A)}}};function QPt(t,e,n,r,a,o){var s;return n>r?s=-1:n<r?s=1:s=o?0:e>0?t.get(a,e-1)<=r?1:-1:1,s}function Gfo(t,e){var n=t.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),o=lr(pa(t.get("barMaxWidth"),a),a),s=lr(pa(t.get("barMinWidth"),1),a),l=t.get("barWidth");return l!=null?lr(l,a):Math.max(Math.min(a/2,o),s)}const Vfo=zfo;function Kfo(t){t.registerChartView(Pfo),t.registerSeriesModel(Ofo),t.registerPreprocessor(Lfo),t.registerVisual(Ufo),t.registerLayout(Vfo)}function qPt(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?n:null,fill:e.brushType==="fill"?n:null}})})}var Wfo=function(t){nn(e,t);function e(n,r){var a=t.call(this)||this,o=new hse(n,r),s=new ta;return a.add(o),a.add(s),a.updateData(n,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,o=n.rippleNumber,s=this.childAt(1),l=0;l<o;l++){var c=vh(r,-1,-1,2,2,a);c.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-l/o*n.period+n.effectOffset;c.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),c.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),s.add(c)}qPt(s,n)},e.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,a=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],s=0;s<o.length;s++){var l=o[s];if(r[l]!==n[l]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}qPt(a,n)},e.prototype.highlight=function(){NM(this)},e.prototype.downplay=function(){IM(this)},e.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},e.prototype.updateData=function(n,r){var a=this,o=n.hostModel;this.childAt(0).updateData(n,r);var s=this.childAt(1),l=n.getItemModel(r),c=n.getItemVisual(r,"symbol"),u=zV(n.getItemVisual(r,"symbolSize")),d=n.getItemVisual(r,"style"),h=d&&d.fill,f=l.getModel("emphasis");s.setScale(u),s.traverse(function(v){v.setStyle("fill",h)});var p=_9(n.getItemVisual(r,"symbolOffset"),u);p&&(s.x=p[0],s.y=p[1]);var m=n.getItemVisual(r,"symbolRotate");s.rotation=(m||0)*Math.PI/180||0;var g={};g.showEffectOn=o.get("showEffectOn"),g.rippleScale=l.get(["rippleEffect","scale"]),g.brushType=l.get(["rippleEffect","brushType"]),g.period=l.get(["rippleEffect","period"])*1e3,g.effectOffset=r/n.count(),g.z=o.getShallow("z")||0,g.zlevel=o.getShallow("zlevel")||0,g.symbolType=c,g.color=h,g.rippleEffectColor=l.get(["rippleEffect","color"]),g.rippleNumber=l.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(v){v==="emphasis"?g.showEffectOn!=="render"&&a.startEffectAnimation(g):v==="normal"&&g.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=g,bd(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},e.prototype.fadeOut=function(n){n&&n()},e}(ta);const Qfo=Wfo;var qfo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._symbolDraw=new fse(Qfo)},e.prototype.render=function(n,r,a){var o=n.getData(),s=this._symbolDraw;s.updateData(o,{clipShape:this._getClipShape(n)}),this.group.add(s.group)},e.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},e.prototype.updateTransform=function(n,r,a){var o=n.getData();this.group.dirty();var s=mse("").reset(n,r,a);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=BDn(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(ql);const Yfo=qfo;var Jfo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return kC(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Oc);const Zfo=Jfo;function Xfo(t){t.registerChartView(Yfo),t.registerSeriesModel(Zfo),t.registerLayout(mse("effectScatter"))}var epo=function(t){nn(e,t);function e(n,r,a){var o=t.call(this)||this;return o.add(o.createLine(n,r,a)),o._updateEffectSymbol(n,r),o}return e.prototype.createLine=function(n,r,a){return new Pst(n,r,a)},e.prototype._updateEffectSymbol=function(n,r){var a=n.getItemModel(r),o=a.getModel("effect"),s=o.get("symbolSize"),l=o.get("symbol");Tn(s)||(s=[s,s]);var c=n.getItemVisual(r,"style"),u=o.get("color")||c&&c.stroke,d=this.childAt(1);this._symbolType!==l&&(this.remove(d),d=vh(l,-.5,-.5,1,1,u),d.z2=100,d.culling=!0,this.add(d)),d&&(d.setStyle("shadowColor",u),d.setStyle(o.getItemStyle(["color"])),d.scaleX=s[0],d.scaleY=s[1],d.setColor(u),this._symbolType=l,this._symbolScale=s,this._updateEffectAnimation(n,o,r))},e.prototype._updateEffectAnimation=function(n,r,a){var o=this.childAt(1);if(o){var s=n.getItemLayout(a),l=r.get("period")*1e3,c=r.get("loop"),u=r.get("roundTrip"),d=r.get("constantSpeed"),h=gp(r.get("delay"),function(p){return p/n.count()*l/3});if(o.ignore=!0,this._updateAnimationPoints(o,s),d>0&&(l=this._getLineLength(o)/d*1e3),l!==this._period||c!==this._loop||u!==this._roundTrip){o.stopAnimation();var f=void 0;ai(h)?f=h(a):f=h,o.__t>0&&(f=-l*o.__t),this._animateSymbol(o,l,f,c,u)}this._period=l,this._loop=c,this._roundTrip=u}},e.prototype._animateSymbol=function(n,r,a,o,s){if(r>0){n.__t=0;var l=this,c=n.animate("",o).when(s?r*2:r,{__t:s?2:1}).delay(a).during(function(){l._updateSymbolPosition(n)});o||c.done(function(){l.remove(n)}),c.start()}},e.prototype._getLineLength=function(n){return zR(n.__p1,n.__cp1)+zR(n.__cp1,n.__p2)},e.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},e.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,o=n.__cp1,s=n.__t<1?n.__t:2-n.__t,l=[n.x,n.y],c=l.slice(),u=Yp,d=bKe;l[0]=u(r[0],o[0],a[0],s),l[1]=u(r[1],o[1],a[1],s);var h=n.__t<1?d(r[0],o[0],a[0],s):d(a[0],o[0],r[0],1-s),f=n.__t<1?d(r[1],o[1],a[1],s):d(a[1],o[1],r[1],1-s);n.rotation=-Math.atan2(f,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=zR(c,l)*1.05,s===1&&(l[0]=c[0]+(l[0]-c[0])/2,l[1]=c[1]+(l[1]-c[1])/2)):n.__lastT===1?n.scaleY=2*zR(r,l):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=l[0],n.y=l[1]},e.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var a=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,a,r)},e}(ta);const wFn=epo;var tpo=function(t){nn(e,t);function e(n,r,a){var o=t.call(this)||this;return o._createPolyline(n,r,a),o}return e.prototype._createPolyline=function(n,r,a){var o=n.getItemLayout(r),s=new aA({shape:{points:o}});this.add(s),this._updateCommonStl(n,r,a)},e.prototype.updateData=function(n,r,a){var o=n.hostModel,s=this.childAt(0),l={shape:{points:n.getItemLayout(r)}};vs(s,l,o,r),this._updateCommonStl(n,r,a)},e.prototype._updateCommonStl=function(n,r,a){var o=this.childAt(0),s=n.getItemModel(r),l=a&&a.emphasisLineStyle,c=a&&a.focus,u=a&&a.blurScope,d=a&&a.emphasisDisabled;if(!a||n.hasItemOption){var h=s.getModel("emphasis");l=h.getModel("lineStyle").getLineStyle(),d=h.get("disabled"),c=h.get("focus"),u=h.get("blurScope")}o.useStyle(n.getItemVisual(r,"style")),o.style.fill=null,o.style.strokeNoScale=!0;var f=o.ensureState("emphasis");f.style=l,bd(this,c,u,d)},e.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},e}(ta);const _Fn=tpo;var npo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return e.prototype.createLine=function(n,r,a){return new _Fn(n,r,a)},e.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var a=[0],o=0,s=1;s<r.length;s++){var l=r[s-1],c=r[s];o+=zR(l,c),a.push(o)}if(o===0){this._length=0;return}for(var s=0;s<a.length;s++)a[s]/=o;this._offsets=a,this._length=o},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,a=this._points,o=this._offsets,s=a.length;if(o){var l=this._lastFrame,c;if(r<this._lastFramePercent){var u=Math.min(l+1,s-1);for(c=u;c>=0&&!(o[c]<=r);c--);c=Math.min(c,s-2)}else{for(c=l;c<s&&!(o[c]>r);c++);c=Math.min(c-1,s-2)}var d=(r-o[c])/(o[c+1]-o[c]),h=a[c],f=a[c+1];n.x=h[0]*(1-d)+d*f[0],n.y=h[1]*(1-d)+d*f[1];var p=n.__t<1?f[0]-h[0]:h[0]-f[0],m=n.__t<1?f[1]-h[1]:h[1]-f[1];n.rotation=-Math.atan2(m,p)-Math.PI/2,this._lastFrame=c,this._lastFramePercent=r,n.ignore=!1}},e}(wFn);const rpo=npo;var ipo=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),apo=function(t){nn(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ipo},e.prototype.buildPath=function(n,r){var a=r.segs,o=r.curveness,s;if(r.polyline)for(s=this._off;s<a.length;){var l=a[s++];if(l>0){n.moveTo(a[s++],a[s++]);for(var c=1;c<l;c++)n.lineTo(a[s++],a[s++])}}else for(s=this._off;s<a.length;){var u=a[s++],d=a[s++],h=a[s++],f=a[s++];if(n.moveTo(u,d),o>0){var p=(u+h)/2-(d-f)*o,m=(d+f)/2-(h-u)*o;n.quadraticCurveTo(p,m,h,f)}else n.lineTo(h,f)}this.incremental&&(this._off=s,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var a=this.shape,o=a.segs,s=a.curveness,l=this.style.lineWidth;if(a.polyline)for(var c=0,u=0;u<o.length;){var d=o[u++];if(d>0)for(var h=o[u++],f=o[u++],p=1;p<d;p++){var m=o[u++],g=o[u++];if(f3(h,f,m,g,l,n,r))return c}c++}else for(var c=0,u=0;u<o.length;){var h=o[u++],f=o[u++],m=o[u++],g=o[u++];if(s>0){var v=(h+m)/2-(f-g)*s,A=(f+g)/2-(m-h)*s;if(N6n(h,f,v,A,m,g,l,n,r))return c}else if(f3(h,f,m,g,l,n,r))return c;c++}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=a[0],r=a[1],o.contain(n,r)){var s=this.hoverDataIdx=this.findDataIndex(n,r);return s>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,o=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<a.length;){var d=a[u++],h=a[u++];o=Math.min(d,o),l=Math.max(d,l),s=Math.min(h,s),c=Math.max(h,c)}n=this._rect=new Da(o,s,l,c)}return n},e}(no),opo=function(){function t(){this.group=new ta}return t.prototype.updateData=function(e){this._clear();var n=this._create();n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,n){var r=this._newAdded[0],a=n.getLayout("linesPoints"),o=r&&r.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),r.setShape({segs:l})}else{this._newAdded=[];var c=this._create();c.incremental=!0,c.setShape({segs:a}),this._setCommon(c,n),c.__startIndex=e.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new apo({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,n,r){var a=n.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=n.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var s=ia(e);s.seriesIndex=a.seriesIndex,e.on("mousemove",function(l){s.dataIndex=null;var c=e.hoverDataIdx;c>0&&(s.dataIndex=c+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const spo=opo;var lpo={seriesType:"lines",plan:HV(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(a,o){var s=[];if(r){var l=void 0,c=a.end-a.start;if(n){for(var u=0,d=a.start;d<a.end;d++)u+=t.getLineCoordsCount(d);l=new Float32Array(c+u*2)}else l=new Float32Array(c*4);for(var h=0,f=[],d=a.start;d<a.end;d++){var p=t.getLineCoords(d,s);n&&(l[h++]=p);for(var m=0;m<p;m++)f=e.dataToPoint(s[m],!1,f),l[h++]=f[0],l[h++]=f[1]}o.setLayout("linesPoints",l)}else for(var d=a.start;d<a.end;d++){var g=o.getItemModel(d),p=t.getLineCoords(d,s),v=[];if(n)for(var A=0;A<p;A++)v.push(e.dataToPoint(s[A]));else{v[0]=e.dataToPoint(s[0]),v[1]=e.dataToPoint(s[1]);var y=g.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(d,v)}}}}}};const TFn=lpo;var cpo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=n.getData(),s=this._updateLineDraw(o,n),l=n.get("zlevel"),c=n.get(["effect","trailLength"]),u=a.getZr(),d=u.painter.getType()==="svg";d||u.painter.getLayer(l).clear(!0),this._lastZlevel!=null&&!d&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&c>0&&(d||u.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(c/10+.9,1),0)})),s.updateData(o);var h=n.get("clip",!0)&&pse(n.coordinateSystem,!1,n);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=l,this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,a){var o=n.getData(),s=this._updateLineDraw(o,n);s.incrementalPrepareUpdate(o),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},e.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},e.prototype.updateTransform=function(n,r,a){var o=n.getData(),s=n.pipelineContext;if(!this._finished||s.large||s.progressiveRender)return{update:!0};var l=TFn.reset(n,r,a);l.progress&&l.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,o=this._showEffect(r),s=!!r.get("polyline"),l=r.pipelineContext,c=l.large;return(!a||o!==this._hasEffet||s!==this._isPolyline||c!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=c?new spo:new Ost(s?o?rpo:_Fn:o?wFn:Pst),this._hasEffet=o,this._isPolyline=s,this._isLargeDraw=c),this.group.add(a.group),a},e.prototype._showEffect=function(n){return!!n.get(["effect","show"])},e.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.type="lines",e}(ql);const upo=cpo;var dpo=typeof Uint32Array>"u"?Array:Uint32Array,hpo=typeof Float64Array>"u"?Array:Float64Array;function YPt(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Rn(e,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),LTe([a,n[0],n[1]])}))}var fpo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.init=function(n){n.data=n.data||[],YPt(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(n){if(YPt(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=ere(this._flatCoords,r.flatCoords),this._flatCoordsOffset=ere(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},e.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},e.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],o=this._flatCoordsOffset[n*2+1],s=0;s<o;s++)r[s]=r[s]||[],r[s][0]=this._flatCoords[a+s*2],r[s][1]=this._flatCoords[a+s*2+1];return o}else{for(var l=this._getCoordsFromItemModel(n),s=0;s<l.length;s++)r[s]=r[s]||[],r[s][0]=l[s][0],r[s][1]=l[s][1];return l.length}},e.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),cs(n[0])){for(var a=n.length,o=new dpo(a),s=new hpo(a),l=0,c=0,u=0,d=0;d<a;){u++;var h=n[d++];o[c++]=l+r,o[c++]=h;for(var f=0;f<h;f++){var p=n[d++],m=n[d++];s[l++]=p,s[l++]=m}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,c),flatCoords:s,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},e.prototype.getInitialData=function(n,r){var a=new bv(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(o,s,l,c){if(o instanceof Array)return NaN;a.hasItemOption=!0;var u=o.value;if(u!=null)return u instanceof Array?u[c]:u}),a},e.prototype.formatTooltip=function(n,r,a){var o=this.getData(),s=o.getItemModel(n),l=s.get("name");if(l)return l;var c=s.get("fromName"),u=s.get("toName"),d=[];return c!=null&&d.push(c),u!=null&&d.push(u),kp("nameValue",{name:d.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Oc);const ppo=fpo;function bhe(t){return t instanceof Array||(t=[t,t]),t}var mpo={seriesType:"lines",reset:function(t){var e=bhe(t.get("symbol")),n=bhe(t.get("symbolSize")),r=t.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(o,s){var l=o.getItemModel(s),c=bhe(l.getShallow("symbol",!0)),u=bhe(l.getShallow("symbolSize",!0));c[0]&&o.setItemVisual(s,"fromSymbol",c[0]),c[1]&&o.setItemVisual(s,"toSymbol",c[1]),u[0]&&o.setItemVisual(s,"fromSymbolSize",u[0]),u[1]&&o.setItemVisual(s,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const gpo=mpo;function vpo(t){t.registerChartView(upo),t.registerSeriesModel(ppo),t.registerLayout(TFn),t.registerVisual(gpo)}var Apo=256,ypo=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Bw.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,a,o,s){var l=this._getBrush(),c=this._getGradient(o,"inRange"),u=this._getGradient(o,"outOfRange"),d=this.pointSize+this.blurSize,h=this.canvas,f=h.getContext("2d"),p=e.length;h.width=n,h.height=r;for(var m=0;m<p;++m){var g=e[m],v=g[0],A=g[1],y=g[2],S=a(y);f.globalAlpha=S,f.drawImage(l,v-d,A-d)}if(!h.width||!h.height)return h;for(var x=f.getImageData(0,0,h.width,h.height),w=x.data,_=0,C=w.length,R=this.minOpacity,k=this.maxOpacity,P=k-R;_<C;){var S=w[_+3]/256,N=Math.floor(S*(Apo-1))*4;if(S>0){var L=s(S)?c:u;S>0&&(S=S*P+R),w[_++]=L[N],w[_++]=L[N+1],w[_++]=L[N+2],w[_++]=L[N+3]*S*256}else _+=4}return f.putImageData(x,0,0),h},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Bw.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},t.prototype._getGradient=function(e,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],s=0,l=0;l<256;l++)e[n](l/255,!0,o),a[s++]=o[0],a[s++]=o[1],a[s++]=o[2],a[s++]=o[3];return a},t}();const bpo=ypo;function xpo(t,e,n){var r=t[1]-t[0];e=Rn(e,function(s){return{interval:[(s.interval[0]-t[0])/r,(s.interval[1]-t[0])/r]}});var a=e.length,o=0;return function(s){var l;for(l=o;l<a;l++){var c=e[l].interval;if(c[0]<=s&&s<=c[1]){o=l;break}}if(l===a)for(l=o-1;l>=0;l--){var c=e[l].interval;if(c[0]<=s&&s<=c[1]){o=l;break}}return l>=0&&l<a&&n[l]}}function Epo(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(r){return r>=e[0]&&r<=e[1]}}function JPt(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Spo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o;r.eachComponent("visualMap",function(l){l.eachTargetSeries(function(c){c===n&&(o=l)})}),this._progressiveEls=null,this.group.removeAll();var s=n.coordinateSystem;s.type==="cartesian2d"||s.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):JPt(s)&&this._renderOnGeo(s,n,o,a)},e.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,a,o){var s=r.coordinateSystem;s&&(JPt(s)?this.render(r,a,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,o,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){xO(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,a,o,s){var l=n.coordinateSystem,c=T9(l,"cartesian2d"),u,d,h,f;if(c){var p=l.getAxis("x"),m=l.getAxis("y");u=p.getBandWidth()+.5,d=m.getBandWidth()+.5,h=p.scale.getExtent(),f=m.scale.getExtent()}for(var g=this.group,v=n.getData(),A=n.getModel(["emphasis","itemStyle"]).getItemStyle(),y=n.getModel(["blur","itemStyle"]).getItemStyle(),S=n.getModel(["select","itemStyle"]).getItemStyle(),x=n.get(["itemStyle","borderRadius"]),w=Cp(n),_=n.getModel("emphasis"),C=_.get("focus"),R=_.get("blurScope"),k=_.get("disabled"),P=c?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],N=a;N<o;N++){var L=void 0,I=v.getItemVisual(N,"style");if(c){var b=v.get(P[0],N),T=v.get(P[1],N);if(isNaN(v.get(P[2],N))||isNaN(b)||isNaN(T)||b<h[0]||b>h[1]||T<f[0]||T>f[1])continue;var M=l.dataToPoint([b,T]);L=new Zo({shape:{x:M[0]-u/2,y:M[1]-d/2,width:u,height:d},style:I})}else{if(isNaN(v.get(P[1],N)))continue;L=new Zo({z2:1,shape:l.dataToRect([v.get(P[0],N)]).contentShape,style:I})}if(v.hasItemOption){var D=v.getItemModel(N),B=D.getModel("emphasis");A=B.getModel("itemStyle").getItemStyle(),y=D.getModel(["blur","itemStyle"]).getItemStyle(),S=D.getModel(["select","itemStyle"]).getItemStyle(),x=D.get(["itemStyle","borderRadius"]),C=B.get("focus"),R=B.get("blurScope"),k=B.get("disabled"),w=Cp(D)}L.shape.r=x;var j=n.getRawValue(N),H="-";j&&j[2]!=null&&(H=j[2]+""),hg(L,w,{labelFetcher:n,labelDataIndex:N,defaultOpacity:I.opacity,defaultText:H}),L.ensureState("emphasis").style=A,L.ensureState("blur").style=y,L.ensureState("select").style=S,bd(L,C,R,k),L.incremental=s,s&&(L.states.emphasis.hoverLayer=!0),g.add(L),v.setItemGraphicEl(N,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(n,r,a,o){var s=a.targetVisuals.inRange,l=a.targetVisuals.outOfRange,c=r.getData(),u=this._hmLayer||this._hmLayer||new bpo;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var d=n.getViewRect().clone(),h=n.getRoamTransform();d.applyTransform(h);var f=Math.max(d.x,0),p=Math.max(d.y,0),m=Math.min(d.width+d.x,o.getWidth()),g=Math.min(d.height+d.y,o.getHeight()),v=m-f,A=g-p,y=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],S=c.mapArray(y,function(C,R,k){var P=n.dataToPoint([C,R]);return P[0]-=f,P[1]-=p,P.push(k),P}),x=a.getExtent(),w=a.type==="visualMap.continuous"?Epo(x,a.option.range):xpo(x,a.getPieceList(),a.option.selected);u.update(S,v,A,s.color.getNormalizer(),{inRange:s.color.getColorMapper(),outOfRange:l.color.getColorMapper()},w);var _=new fm({style:{width:v,height:A,x:f,y:p,image:u.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(ql);const wpo=Spo;var _po=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return kC(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=jV.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Oc);const Tpo=_po;function Cpo(t){t.registerChartView(wpo),t.registerSeriesModel(Tpo)}var kpo=["itemStyle","borderWidth"],ZPt=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],b8e=new yN,Rpo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=this.group,s=n.getData(),l=this._data,c=n.coordinateSystem,u=c.getBaseAxis(),d=u.isHorizontal(),h=c.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:c,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:d,valueDim:ZPt[+d],categoryDim:ZPt[1-+d]};s.diff(l).add(function(m){if(s.hasValue(m)){var g=eOt(s,m),v=XPt(s,m,g,f),A=tOt(s,f,v);s.setItemGraphicEl(m,A),o.add(A),rOt(A,f,v)}}).update(function(m,g){var v=l.getItemGraphicEl(g);if(!s.hasValue(m)){o.remove(v);return}var A=eOt(s,m),y=XPt(s,m,A,f),S=IFn(s,y);v&&S!==v.__pictorialShapeStr&&(o.remove(v),s.setItemGraphicEl(m,null),v=null),v?Bpo(v,f,y):v=tOt(s,f,y,!0),s.setItemGraphicEl(m,v),v.__pictorialSymbolMeta=y,o.add(v),rOt(v,f,y)}).remove(function(m){var g=l.getItemGraphicEl(m);g&&nOt(l,m,g.__pictorialSymbolMeta.animationModel,g)}).execute();var p=n.get("clip",!0)?pse(n.coordinateSystem,!1,n):null;return p?o.setClipPath(p):o.removeClipPath(),this._data=s,this.group},e.prototype.remove=function(n,r){var a=this.group,o=this._data;n.get("animation")?o&&o.eachItemGraphicEl(function(s){nOt(o,ia(s).dataIndex,n,s)}):a.removeAll()},e.type="pictorialBar",e}(ql);function XPt(t,e,n,r){var a=t.getItemLayout(e),o=n.get("symbolRepeat"),s=n.get("symbolClip"),l=n.get("symbolPosition")||"start",c=n.get("symbolRotate"),u=(c||0)*Math.PI/180||0,d=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:d,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Mpo(n,o,a,r,f),Npo(t,e,a,o,s,f.boundingLength,f.pxSign,d,r,f),Ipo(n,f.symbolScale,u,r,f);var p=f.symbolSize,m=_9(n.get("symbolOffset"),p);return Ppo(n,p,a,o,s,m,l,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Mpo(t,e,n,r,a){var o=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[o.wh]<=0),d;if(Tn(s)){var h=[x8e(l,s[0])-c,x8e(l,s[1])-c];h[1]<h[0]&&h.reverse(),d=h[u]}else s!=null?d=x8e(l,s)-c:e?d=r.coordSysExtent[o.index][u]-c:d=n[o.wh];a.boundingLength=d,e&&(a.repeatCutLength=n[o.wh]),a.pxSign=d>0?1:-1}function x8e(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Npo(t,e,n,r,a,o,s,l,c,u){var d=c.valueDim,h=c.categoryDim,f=Math.abs(n[h.wh]),p=t.getItemVisual(e,"symbolSize"),m;Tn(p)?m=p.slice():p==null?m=["100%","100%"]:m=[p,p],m[h.index]=lr(m[h.index],f),m[d.index]=lr(m[d.index],r?f:Math.abs(o)),u.symbolSize=m;var g=u.symbolScale=[m[0]/l,m[1]/l];g[d.index]*=(c.isHorizontal?-1:1)*s}function Ipo(t,e,n,r,a){var o=t.get(kpo)||0;o&&(b8e.attr({scaleX:e[0],scaleY:e[1],rotation:n}),b8e.updateTransform(),o/=b8e.getLineScale(),o*=e[r.valueDim.index]),a.valueLineWidth=o||0}function Ppo(t,e,n,r,a,o,s,l,c,u,d,h){var f=d.categoryDim,p=d.valueDim,m=h.pxSign,g=Math.max(e[p.index]+l,0),v=g;if(r){var A=Math.abs(c),y=gp(t.get("symbolMargin"),"15%")+"",S=!1;y.lastIndexOf("!")===y.length-1&&(S=!0,y=y.slice(0,y.length-1));var x=lr(y,e[p.index]),w=Math.max(g+x*2,0),_=S?0:x*2,C=lot(r),R=C?r:iOt((A+_)/w),k=A-R*g;x=k/2/(S?R:Math.max(R-1,1)),w=g+x*2,_=S?0:x*2,!C&&r!=="fixed"&&(R=u?iOt((Math.abs(u)+_)/w):0),v=R*w-_,h.repeatTimes=R,h.symbolMargin=x}var P=m*(v/2),N=h.pathPosition=[];N[f.index]=n[f.wh]/2,N[p.index]=s==="start"?P:s==="end"?c-P:c/2,o&&(N[0]+=o[0],N[1]+=o[1]);var L=h.bundlePosition=[];L[f.index]=n[f.xy],L[p.index]=n[p.xy];var I=h.barRectShape=An({},n);I[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(N[p.index]+P)),I[f.wh]=n[f.wh];var b=h.clipShape={};b[f.xy]=-n[f.xy],b[f.wh]=d.ecSize[f.wh],b[p.xy]=0,b[p.wh]=n[p.wh]}function CFn(t){var e=t.symbolPatternSize,n=vh(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function kFn(t,e,n,r){var a=t.__pictorialBundle,o=n.symbolSize,s=n.valueLineWidth,l=n.pathPosition,c=e.valueDim,u=n.repeatTimes||0,d=0,h=o[e.valueDim.index]+s+n.symbolMargin*2;for(Ust(t,function(g){g.__pictorialAnimationIndex=d,g.__pictorialRepeatTimes=u,d<u?gH(g,null,m(d),n,r):gH(g,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(g)}),d++});d<u;d++){var f=CFn(n);f.__pictorialAnimationIndex=d,f.__pictorialRepeatTimes=u,a.add(f);var p=m(d);gH(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(g){var v=l.slice(),A=n.pxSign,y=g;return(n.symbolRepeatDirection==="start"?A>0:A<0)&&(y=u-1-g),v[c.index]=h*(y-u/2+.5)+l[c.index],{x:v[0],y:v[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function RFn(t,e,n,r){var a=t.__pictorialBundle,o=t.__pictorialMainPath;o?gH(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=CFn(n),a.add(o),gH(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function MFn(t,e,n){var r=An({},e.barRectShape),a=t.__pictorialBarRect;a?gH(a,null,{shape:r},e,n):(a=t.__pictorialBarRect=new Zo({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,t.add(a))}function NFn(t,e,n,r){if(n.symbolClip){var a=t.__pictorialClipPath,o=An({},n.clipShape),s=e.valueDim,l=n.animationModel,c=n.dataIndex;if(a)vs(a,{shape:o},l,c);else{o[s.wh]=0,a=new Zo({shape:o}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[s.wh]=n.clipShape[s.wh],E9[r?"updateProps":"initProps"](a,{shape:u},l,c)}}}function eOt(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Opo,n.isAnimationEnabled=Lpo,n}function Opo(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Lpo(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function tOt(t,e,n,r){var a=new ta,o=new ta;return a.add(o),a.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?kFn(a,e,n):RFn(a,e,n),MFn(a,n,r),NFn(a,e,n,r),a.__pictorialShapeStr=IFn(t,n),a.__pictorialSymbolMeta=n,a}function Bpo(t,e,n){var r=n.animationModel,a=n.dataIndex,o=t.__pictorialBundle;vs(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?kFn(t,e,n,!0):RFn(t,e,n,!0),MFn(t,n,!0),NFn(t,e,n,!0)}function nOt(t,e,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var o=[];Ust(r,function(s){o.push(s)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Ie(o,function(s){RP(s,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function IFn(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Ust(t,e,n){Ie(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function gH(t,e,n,r,a,o){e&&t.attr(e),r.symbolClip&&!a?n&&t.attr(n):n&&E9[a?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function rOt(t,e,n){var r=n.dataIndex,a=n.itemModel,o=a.getModel("emphasis"),s=o.getModel("itemStyle").getItemStyle(),l=a.getModel(["blur","itemStyle"]).getItemStyle(),c=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),d=o.get("focus"),h=o.get("blurScope"),f=o.get("scale");Ust(t,function(g){if(g instanceof fm){var v=g.style;g.useStyle(An({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},n.style))}else g.useStyle(n.style);var A=g.ensureState("emphasis");A.style=s,f&&(A.scaleX=g.scaleX*1.1,A.scaleY=g.scaleY*1.1),g.ensureState("blur").style=l,g.ensureState("select").style=c,u&&(g.cursor=u),g.z2=n.z2});var p=e.valueDim.posDesc[+(n.boundingLength>0)],m=t.__pictorialBarRect;m.ignoreClip=!0,hg(m,Cp(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:lz(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),bd(t,d,h,o.get("disabled"))}function iOt(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const Dpo=Rpo;var $po=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return e.prototype.getInitialData=function(n){return n.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=EO(iye.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(iye);const Fpo=$po;function jpo(t){t.registerChartView(Dpo),t.registerSeriesModel(Fpo),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,fa(h$n,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,f$n("pictorialBar"))}var Hpo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return e.prototype.render=function(n,r,a){var o=n.getData(),s=this,l=this.group,c=n.getLayerSeries(),u=o.getLayout("layoutInfo"),d=u.rect,h=u.boundaryGap;l.x=0,l.y=d.y+h[0];function f(v){return v.name}var p=new PM(this._layersSeries||[],c,f,f),m=[];p.add(Cr(g,this,"add")).update(Cr(g,this,"update")).remove(Cr(g,this,"remove")).execute();function g(v,A,y){var S=s._layers;if(v==="remove"){l.remove(S[A]);return}for(var x=[],w=[],_,C=c[A].indices,R=0;R<C.length;R++){var k=o.getItemLayout(C[R]),P=k.x,N=k.y0,L=k.y;x.push(P,N),w.push(P,N+L),_=o.getItemVisual(C[R],"style")}var I,b=o.getItemLayout(C[0]),T=n.getModel("label"),M=T.get("margin"),D=n.getModel("emphasis");if(v==="add"){var B=m[A]=new ta;I=new n7n({shape:{points:x,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),B.add(I),l.add(B),n.isAnimationEnabled()&&I.setClipPath(Upo(I.getBoundingRect(),n,function(){I.removeClipPath()}))}else{var B=S[y];I=B.childAt(0),l.add(B),m[A]=B,vs(I,{shape:{points:x,stackedOnPoints:w}},n),Fw(I)}hg(I,Cp(n),{labelDataIndex:C[R-1],defaultText:o.getName(C[R-1]),inheritColor:_.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var j=I.getTextContent();j&&(j.x=b.x-M,j.y=b.y0+b.y/2),I.useStyle(_),o.setItemGraphicEl(A,I),dg(I,n),bd(I,D.get("focus"),D.get("blurScope"),D.get("disabled"))}this._layersSeries=c,this._layers=m},e.type="themeRiver",e}(ql);function Upo(t,e,n){var r=new Zo({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Kc(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}const zpo=Hpo;var E8e=2,Gpo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vse(Cr(this.getData,this),Cr(this.getRawData,this))},e.prototype.fixData=function(n){var r=n.length,a={},o=BKe(n,function(f){return a.hasOwnProperty(f[0]+"")||(a[f[0]+""]=-1),f[2]}),s=[];o.buckets.each(function(f,p){s.push({name:p,dataList:f})});for(var l=s.length,c=0;c<l;++c){for(var u=s[c].name,d=0;d<s[c].dataList.length;++d){var h=s[c].dataList[d][0]+"";a[h]=c}for(var h in a)a.hasOwnProperty(h)&&a[h]!==c&&(a[h]=c,n[r]=[h,0,u],r++)}return n},e.prototype.getInitialData=function(n,r){for(var a=this.getReferringComponents("singleAxis",Qh).models[0],o=a.get("type"),s=ll(n.data,function(m){return m[2]!==void 0}),l=this.fixData(s||[]),c=[],u=this.nameMap=Ur(),d=0,h=0;h<l.length;++h)c.push(l[h][E8e]),u.get(l[h][E8e])||(u.set(l[h][E8e],d),d++);var f=GV(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:X1e(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new bv(f,this);return p.initData(l),p},e.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),a=[],o=0;o<r;++o)a[o]=o;var s=n.mapDimension("single"),l=BKe(a,function(u){return n.get("name",u)}),c=[];return l.buckets.each(function(u,d){u.sort(function(h,f){return n.get(s,h)-n.get(s,f)}),c.push({name:d,indices:u})}),c},e.prototype.getAxisTooltipData=function(n,r,a){Tn(n)||(n=n?[n]:[]);for(var o=this.getData(),s=this.getLayerSeries(),l=[],c=s.length,u,d=0;d<c;++d){for(var h=Number.MAX_VALUE,f=-1,p=s[d].indices.length,m=0;m<p;++m){var g=o.get(n[0],s[d].indices[m]),v=Math.abs(g-r);v<=h&&(u=g,h=v,f=s[d].indices[m])}l.push(f)}return{dataIndices:l,nestestValue:u}},e.prototype.formatTooltip=function(n,r,a){var o=this.getData(),s=o.getName(n),l=o.get(o.mapDimension("value"),n);return kp("nameValue",{name:s,value:l})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Oc);const Vpo=Gpo;function Kpo(t,e){t.eachSeriesByType("themeRiver",function(n){var r=n.getData(),a=n.coordinateSystem,o={},s=a.getRect();o.rect=s;var l=n.get("boundaryGap"),c=a.getAxis();if(o.boundaryGap=l,c.orient==="horizontal"){l[0]=lr(l[0],s.height),l[1]=lr(l[1],s.height);var u=s.height-l[0]-l[1];aOt(r,n,u)}else{l[0]=lr(l[0],s.width),l[1]=lr(l[1],s.width);var d=s.width-l[0]-l[1];aOt(r,n,d)}r.setLayout("layoutInfo",o)})}function aOt(t,e,n){if(t.count())for(var r=e.coordinateSystem,a=e.getLayerSeries(),o=t.mapDimension("single"),s=t.mapDimension("value"),l=Rn(a,function(v){return Rn(v.indices,function(A){var y=r.dataToPoint(t.get(o,A));return y[1]=t.get(s,A),y})}),c=Wpo(l),u=c.y0,d=n/c.max,h=a.length,f=a[0].indices.length,p,m=0;m<f;++m){p=u[m]*d,t.setItemLayout(a[0].indices[m],{layerIndex:0,x:l[0][m][0],y0:p,y:l[0][m][1]*d});for(var g=1;g<h;++g)p+=l[g-1][m][1]*d,t.setItemLayout(a[g].indices[m],{layerIndex:g,x:l[g][m][0],y0:p,y:l[g][m][1]*d})}}function Wpo(t){for(var e=t.length,n=t[0].length,r=[],a=[],o=0,s=0;s<n;++s){for(var l=0,c=0;c<e;++c)l+=t[c][s][1];l>o&&(o=l),r.push(l)}for(var u=0;u<n;++u)a[u]=(o-r[u])/2;o=0;for(var d=0;d<n;++d){var h=r[d]+a[d];h>o&&(o=h)}return{y0:a,max:o}}function Qpo(t){t.registerChartView(zpo),t.registerSeriesModel(Vpo),t.registerLayout(Kpo),t.registerProcessor(gse("themeRiver"))}var qpo=2,Ypo=4,Jpo=function(t){nn(e,t);function e(n,r,a,o){var s=t.call(this)||this;s.z2=qpo,s.textConfig={inside:!0},ia(s).seriesIndex=r.seriesIndex;var l=new Jo({z2:Ypo,silent:n.getModel().get(["label","silent"])});return s.setTextContent(l),s.updateData(!0,n,r,a,o),s}return e.prototype.updateData=function(n,r,a,o,s){this.node=r,r.piece=this,a=a||this._seriesModel,o=o||this._ecModel;var l=this;ia(l).dataIndex=r.dataIndex;var c=r.getModel(),u=c.getModel("emphasis"),d=r.getLayout(),h=An({},d);h.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var p=r.getVisual("decal");p&&(f.decal=sz(p,s));var m=iD(c.getModel("itemStyle"),h,!0);An(h,m),Ie(Q0,function(y){var S=l.ensureState(y),x=c.getModel([y,"itemStyle"]);S.style=x.getItemStyle();var w=iD(x,h);w&&(S.shape=w)}),n?(l.setShape(h),l.shape.r=d.r0,Kc(l,{shape:{r:d.r}},a,r.dataIndex)):(vs(l,{shape:h},a),Fw(l)),l.useStyle(f),this._updateLabel(a);var g=c.getShallow("cursor");g&&l.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=o||this._ecModel;var v=u.get("focus"),A=v==="ancestor"?r.getAncestorsIndices():v==="descendant"?r.getDescendantIndices():v;bd(this,A,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),o=a.getModel("label"),s=this.node.getLayout(),l=s.endAngle-s.startAngle,c=(s.startAngle+s.endAngle)/2,u=Math.cos(c),d=Math.sin(c),h=this,f=h.getTextContent(),p=this.node.dataIndex,m=o.get("minAngle")/180*Math.PI,g=o.get("show")&&!(m!=null&&Math.abs(l)<m);f.ignore=!g,Ie(cre,function(A){var y=A==="normal"?a.getModel("label"):a.getModel([A,"label"]),S=A==="normal",x=S?f:f.ensureState(A),w=n.getFormattedLabel(p,A);S&&(w=w||r.node.name),x.style=yc(y,{},null,A!=="normal",!0),w&&(x.style.text=w);var _=y.get("show");_!=null&&!S&&(x.ignore=!_);var C=v(y,"position"),R=S?h:h.states[A],k=R.style.fill;R.textConfig={outsideFill:y.get("color")==="inherit"?k:null,inside:C!=="outside"};var P,N=v(y,"distance")||0,L=v(y,"align"),I=v(y,"rotate"),b=Math.PI*.5,T=Math.PI*1.5,M=Oy(I==="tangential"?Math.PI/2-c:c),D=M>b&&!iz(M-b)&&M<T;C==="outside"?(P=s.r+N,L=D?"right":"left"):!L||L==="center"?(l===2*Math.PI&&s.r0===0?P=0:P=(s.r+s.r0)/2,L="center"):L==="left"?(P=s.r0+N,L=D?"right":"left"):L==="right"&&(P=s.r-N,L=D?"left":"right"),x.style.align=L,x.style.verticalAlign=v(y,"verticalAlign")||"middle",x.x=P*u+s.cx,x.y=P*d+s.cy;var B=0;I==="radial"?B=Oy(-c)+(D?Math.PI:0):I==="tangential"?B=Oy(Math.PI/2-c)+(D?Math.PI:0):cs(I)&&(B=I*Math.PI/180),x.rotation=Oy(B)});function v(A,y){var S=A.get(y);return S??o.get(y)}f.dirtyStyle()},e}(q0);const oOt=Jpo;var LWe="sunburstRootToNode",sOt="sunburstHighlight",Zpo="sunburstUnhighlight";function Xpo(t){t.registerAction({type:LWe,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,o){var s=Ere(e,[LWe],a);if(s){var l=a.getViewRoot();l&&(e.direction=Cst(l,s.node)?"rollUp":"drillDown"),a.resetViewRoot(s.node)}}}),t.registerAction({type:sOt,update:"none"},function(e,n,r){e=An({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(o){var s=Ere(e,[sOt],o);s&&(e.dataIndex=s.node.dataIndex)}r.dispatchAction(An(e,{type:"highlight"}))}),t.registerAction({type:Zpo,update:"updateView"},function(e,n,r){e=An({},e),r.dispatchAction(An(e,{type:"downplay"}))})}var emo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,o){var s=this;this.seriesModel=n,this.api=a,this.ecModel=r;var l=n.getData(),c=l.tree.root,u=n.getViewRoot(),d=this.group,h=n.get("renderLabelForZeroData"),f=[];u.eachNode(function(y){f.push(y)});var p=this._oldChildren||[];m(f,p),A(c,u),this._initEvents(),this._oldChildren=f;function m(y,S){if(y.length===0&&S.length===0)return;new PM(S,y,x,x).add(w).update(w).remove(fa(w,null)).execute();function x(_){return _.getId()}function w(_,C){var R=_==null?null:y[_],k=C==null?null:S[C];g(R,k)}}function g(y,S){if(!h&&y&&!y.getValue()&&(y=null),y!==c&&S!==c){if(S&&S.piece)y?(S.piece.updateData(!1,y,n,r,a),l.setItemGraphicEl(y.dataIndex,S.piece)):v(S);else if(y){var x=new oOt(y,n,r,a);d.add(x),l.setItemGraphicEl(y.dataIndex,x)}}}function v(y){y&&y.piece&&(d.remove(y.piece),y.piece=null)}function A(y,S){S.depth>0?(s.virtualPiece?s.virtualPiece.updateData(!1,y,n,r,a):(s.virtualPiece=new oOt(y,n,r,a),d.add(s.virtualPiece)),S.piece.off("click"),s.virtualPiece.on("click",function(x){s._rootToNode(S.parentNode)})):s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,o=n.seriesModel.getViewRoot();o.eachNode(function(s){if(!a&&s.piece&&s.piece===r.target){var l=s.getModel().get("nodeClick");if(l==="rootToNode")n._rootToNode(s);else if(l==="link"){var c=s.getModel(),u=c.get("link");if(u){var d=c.get("target",!0)||"_blank";z1e(u,d)}}a=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:LWe,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var a=r.getData(),o=a.getItemLayout(0);if(o){var s=n[0]-o.cx,l=n[1]-o.cy,c=Math.sqrt(s*s+l*l);return c<=o.r&&c>=o.r0}},e.type="sunburst",e}(ql);const tmo=emo;var nmo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};PFn(a);var o=this._levelModels=Rn(n.levels||[],function(c){return new Kl(c,this,r)},this),s=Tst.createTree(a,this,l);function l(c){c.wrapMethod("getItemModel",function(u,d){var h=s.getNodeByDataIndex(d),f=o[h.depth];return f&&(u.parentModel=f),u})}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=A2e(a,this),r},e.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){D7n(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Oc);function PFn(t){var e=0;Ie(t.children,function(r){PFn(r);var a=r.value;Tn(a)&&(a=a[0]),e+=a});var n=t.value;Tn(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),Tn(t.value)?t.value[0]=n:t.value=n}const rmo=nmo;var lOt=Math.PI/180;function imo(t,e,n){e.eachSeriesByType(t,function(r){var a=r.get("center"),o=r.get("radius");Tn(o)||(o=[0,o]),Tn(a)||(a=[a,a]);var s=n.getWidth(),l=n.getHeight(),c=Math.min(s,l),u=lr(a[0],s),d=lr(a[1],l),h=lr(o[0],c/2),f=lr(o[1],c/2),p=-r.get("startAngle")*lOt,m=r.get("minAngle")*lOt,g=r.getData().tree.root,v=r.getViewRoot(),A=v.depth,y=r.get("sort");y!=null&&OFn(v,y);var S=0;Ie(v.children,function(M){!isNaN(M.getValue())&&S++});var x=v.getValue(),w=Math.PI/(x||S)*2,_=v.depth>0,C=v.height-(_?-1:1),R=(f-h)/(C||1),k=r.get("clockwise"),P=r.get("stillShowZeroSum"),N=k?1:-1,L=function(M,D){if(M){var B=D;if(M!==g){var j=M.getValue(),H=x===0&&P?w:j*w;H<m&&(H=m),B=D+N*H;var U=M.depth-A-(_?-1:1),$=h+R*U,z=h+R*(U+1),Z=r.getLevelModel(M);if(Z){var K=Z.get("r0",!0),Q=Z.get("r",!0),ee=Z.get("radius",!0);ee!=null&&(K=ee[0],Q=ee[1]),K!=null&&($=lr(K,c/2)),Q!=null&&(z=lr(Q,c/2))}M.setLayout({angle:H,startAngle:D,endAngle:B,clockwise:k,cx:u,cy:d,r0:$,r:z})}if(M.children&&M.children.length){var X=0;Ie(M.children,function(te){X+=L(te,D+X)})}return B-D}};if(_){var I=h,b=h+R,T=Math.PI*2;g.setLayout({angle:T,startAngle:p,endAngle:p+T,clockwise:k,cx:u,cy:d,r0:I,r:b})}L(v,p)})}function OFn(t,e){var n=t.children||[];t.children=amo(n,e),n.length&&Ie(t.children,function(r){OFn(r,e)})}function amo(t,e){if(ai(e)){var n=Rn(t,function(a,o){var s=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return s}},index:o}});return n.sort(function(a,o){return e(a.params,o.params)}),Rn(n,function(a){return t[a.index]})}else{var r=e==="asc";return t.sort(function(a,o){var s=(a.getValue()-o.getValue())*(r?1:-1);return s===0?(a.dataIndex-o.dataIndex)*(r?-1:1):s})}}function omo(t){var e={};function n(r,a,o){for(var s=r;s&&s.depth>1;)s=s.parentNode;var l=a.getColorFromPalette(s.name||s.dataIndex+"",e);return r.depth>1&&vr(l)&&(l=N1e(l,(r.depth-1)/(o-1)*.5)),l}t.eachSeriesByType("sunburst",function(r){var a=r.getData(),o=a.tree;o.eachNode(function(s){var l=s.getModel(),c=l.getModel("itemStyle").getItemStyle();c.fill||(c.fill=n(s,r,o.root.height));var u=a.ensureUniqueItemVisual(s.dataIndex,"style");An(u,c)})})}function smo(t){t.registerChartView(tmo),t.registerSeriesModel(rmo),t.registerLayout(fa(imo,"sunburst")),t.registerProcessor(fa(gse,"sunburst")),t.registerVisual(omo),Xpo(t)}var cOt={color:"fill",borderColor:"stroke"},lmo={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},aM=ds(),cmo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(n,r){return kC(null,this)},e.prototype.getDataParams=function(n,r,a){var o=t.prototype.getDataParams.call(this,n,r);return a&&(o.info=aM(a).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Oc);const umo=cmo;function dmo(t,e){return e=e||[0,0],Rn(["x","y"],function(n,r){var a=this.getAxis(n),o=e[r],s=t[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s))},this)}function hmo(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Cr(dmo,t)}}}function fmo(t,e){return e=e||[0,0],Rn([0,1],function(n){var r=e[n],a=t[n]/2,o=[],s=[];return o[n]=r-a,s[n]=r+a,o[1-n]=s[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(s)[n])},this)}function pmo(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(n){return t.dataToPoint(n)},size:Cr(fmo,t)}}}function mmo(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function gmo(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Cr(mmo,t)}}}function vmo(t,e){return e=e||[0,0],Rn(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",o=this[a](),s=e[r],l=t[r]/2,c=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(s-l)-o.dataToCoord(s+l));return n==="Angle"&&(c=c*Math.PI/180),c},this)}function Amo(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(a){var o=e.dataToRadius(a[0]),s=n.dataToAngle(a[1]),l=t.coordToPoint([o,s]);return l.push(o,s*Math.PI/180),l},size:Cr(vmo,t)}}}function ymo(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return t.dataToPoint(r,a)}}}}function LFn(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||Dr(t,"text")))}function BFn(t,e,n){var r=t,a,o,s;if(e==="text")s=r;else{s={},Dr(r,"text")&&(s.text=r.text),Dr(r,"rich")&&(s.rich=r.rich),Dr(r,"textFill")&&(s.fill=r.textFill),Dr(r,"textStroke")&&(s.stroke=r.textStroke),Dr(r,"fontFamily")&&(s.fontFamily=r.fontFamily),Dr(r,"fontSize")&&(s.fontSize=r.fontSize),Dr(r,"fontStyle")&&(s.fontStyle=r.fontStyle),Dr(r,"fontWeight")&&(s.fontWeight=r.fontWeight),o={type:"text",style:s,silent:!0},a={};var l=Dr(r,"textPosition");n?a.position=l?r.textPosition:"inside":l&&(a.position=r.textPosition),Dr(r,"textPosition")&&(a.position=r.textPosition),Dr(r,"textOffset")&&(a.offset=r.textOffset),Dr(r,"textRotation")&&(a.rotation=r.textRotation),Dr(r,"textDistance")&&(a.distance=r.textDistance)}return uOt(s,t),Ie(s.rich,function(c){uOt(c,c)}),{textConfig:a,textContent:o}}function uOt(t,e){e&&(e.font=e.textFont||e.font,Dr(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Dr(e,"textAlign")&&(t.align=e.textAlign),Dr(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Dr(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Dr(e,"textWidth")&&(t.width=e.textWidth),Dr(e,"textHeight")&&(t.height=e.textHeight),Dr(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Dr(e,"textPadding")&&(t.padding=e.textPadding),Dr(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Dr(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Dr(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Dr(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Dr(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Dr(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Dr(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function dOt(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";hOt(r,e);var s=r.textFill==null;return a?s&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(s&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Ie(e.rich,function(l){hOt(l,l)}),r}function hOt(t,e){e&&(Dr(e,"fill")&&(t.textFill=e.fill),Dr(e,"stroke")&&(t.textStroke=e.fill),Dr(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Dr(e,"font")&&(t.font=e.font),Dr(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Dr(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Dr(e,"fontSize")&&(t.fontSize=e.fontSize),Dr(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Dr(e,"align")&&(t.textAlign=e.align),Dr(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Dr(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Dr(e,"width")&&(t.textWidth=e.width),Dr(e,"height")&&(t.textHeight=e.height),Dr(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Dr(e,"padding")&&(t.textPadding=e.padding),Dr(e,"borderColor")&&(t.textBorderColor=e.borderColor),Dr(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Dr(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Dr(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Dr(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Dr(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Dr(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Dr(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Dr(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Dr(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Dr(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var DFn={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},fOt=bo(DFn);Zx(nC,function(t,e){return t[e]=1,t},{});nC.join(", ");var hye=["","style","shape","extra"],dz=ds();function zst(t,e,n,r,a){var o=t+"Animation",s=IV(t,r,a)||{},l=dz(e).userDuring;return s.duration>0&&(s.during=l?Cr(wmo,{el:e,userDuring:l}):null,s.setToFinal=!0,s.scope=t),An(s,n[o]),s}function uge(t,e,n,r){r=r||{};var a=r.dataIndex,o=r.isInit,s=r.clearStyle,l=n.isAnimationEnabled(),c=dz(t),u=e.style;c.userDuring=e.during;var d={},h={};if(Tmo(t,e,h),mOt("shape",e,h),mOt("extra",e,h),!o&&l&&(_mo(t,e,d),pOt("shape",t,e,d),pOt("extra",t,e,d),Cmo(t,e,u,d)),h.style=u,bmo(t,h,s),Emo(t,e),l)if(o){var f={};Ie(hye,function(m){var g=m?e[m]:e;g&&g.enterFrom&&(m&&(f[m]=f[m]||{}),An(m?f[m]:f,g.enterFrom))});var p=zst("enter",t,e,n,a);p.duration>0&&t.animateFrom(f,p)}else xmo(t,e,a||0,n,d);$Fn(t,e),u?t.dirty():t.markRedraw()}function $Fn(t,e){for(var n=dz(t).leaveToProps,r=0;r<hye.length;r++){var a=hye[r],o=a?e[a]:e;o&&o.leaveTo&&(n||(n=dz(t).leaveToProps={}),a&&(n[a]=n[a]||{}),An(a?n[a]:n,o.leaveTo))}}function x2e(t,e,n,r){if(t){var a=t.parent,o=dz(t).leaveToProps;if(o){var s=zst("update",t,e,n,0);s.done=function(){a.remove(t),r&&r()},t.animateTo(o,s)}else a.remove(t),r&&r()}}function $D(t){return t==="all"}function bmo(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var a=t.animators,o=0;o<a.length;o++){var s=a[o];s.targetName==="style"&&s.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function xmo(t,e,n,r,a){if(a){var o=zst("update",t,e,r,n);o.duration>0&&t.animateFrom(a,o)}}function Emo(t,e){Dr(e,"silent")&&(t.silent=e.silent),Dr(e,"ignore")&&(t.ignore=e.ignore),t instanceof Xx&&Dr(e,"invisible")&&(t.invisible=e.invisible),t instanceof no&&Dr(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var lT={},Smo={setTransform:function(t,e){return lT.el[t]=e,this},getTransform:function(t){return lT.el[t]},setShape:function(t,e){var n=lT.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=lT.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=lT.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=lT.el.style;if(e)return e[t]},setExtra:function(t,e){var n=lT.el.extra||(lT.el.extra={});return n[t]=e,this},getExtra:function(t){var e=lT.el.extra;if(e)return e[t]}};function wmo(){var t=this,e=t.el;if(e){var n=dz(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}lT.el=e,r(Smo)}}function pOt(t,e,n,r){var a=n[t];if(a){var o=e[t],s;if(o){var l=n.transition,c=a.transition;if(c)if(!s&&(s=r[t]={}),$D(c))An(s,o);else for(var u=Ql(c),d=0;d<u.length;d++){var h=u[d],f=o[h];s[h]=f}else if($D(l)||za(l,t)>=0){!s&&(s=r[t]={});for(var p=bo(o),d=0;d<p.length;d++){var h=p[d],f=o[h];kmo(a[h],f)&&(s[h]=f)}}}}}function mOt(t,e,n){var r=e[t];if(r)for(var a=n[t]={},o=bo(r),s=0;s<o.length;s++){var l=o[s];a[l]=gee(r[l])}}function _mo(t,e,n){for(var r=e.transition,a=$D(r)?nC:Ql(r||[]),o=0;o<a.length;o++){var s=a[o];if(!(s==="style"||s==="shape"||s==="extra")){var l=t[s];n[s]=l}}}function Tmo(t,e,n){for(var r=0;r<fOt.length;r++){var a=fOt[r],o=DFn[a],s=e[a];s&&(n[o[0]]=s[0],n[o[1]]=s[1])}for(var r=0;r<nC.length;r++){var l=nC[r];e[l]!=null&&(n[l]=e[l])}}function Cmo(t,e,n,r){if(n){var a=t.style,o;if(a){var s=n.transition,l=e.transition;if(s&&!$D(s)){var c=Ql(s);!o&&(o=r.style={});for(var u=0;u<c.length;u++){var d=c[u],h=a[d];o[d]=h}}else if(t.getAnimationStyleProps&&($D(l)||$D(s)||za(l,"style")>=0)){var f=t.getAnimationStyleProps(),p=f?f.style:null;if(p){!o&&(o=r.style={});for(var m=bo(n),u=0;u<m.length;u++){var d=m[u];if(p[d]){var h=a[d];o[d]=h}}}}}}}function kmo(t,e){return ug(t)?t!==e:t!=null&&isFinite(t)}var FFn=ds(),Rmo=["percent","easing","shape","style","extra"];function jFn(t){t.stopAnimation("keyframe"),t.attr(FFn(t))}function fye(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(Tn(e)){Ie(e,function(l){fye(t,l,n)});return}var r=e.keyframes,a=e.duration;if(n&&a==null){var o=IV("enter",n,0);a=o&&o.duration}if(!(!r||!a)){var s=FFn(t);Ie(hye,function(l){if(!(l&&!t[l])){var c;r.sort(function(u,d){return u.percent-d.percent}),Ie(r,function(u){var d=t.animators,h=l?u[l]:u;if(h){var f=bo(h);if(l||(f=ll(f,function(g){return za(Rmo,g)<0})),!!f.length){c||(c=t.animate(l,e.loop,!0),c.scope="keyframe");for(var p=0;p<d.length;p++)d[p]!==c&&d[p].targetName===c.targetName&&d[p].stopTracks(f);l&&(s[l]=s[l]||{});var m=l?s[l]:s;Ie(f,function(g){m[g]=((l?t[l]:t)||{})[g]}),c.whenWithKeys(a*u.percent,h,f,u.easing)}}}),c&&c.delay(e.delay||0).duration(a).start(e.easing)}})}}}var oM="emphasis",t5="normal",Gst="blur",Vst="select",PP=[t5,oM,Gst,Vst],S8e={normal:["itemStyle"],emphasis:[oM,"itemStyle"],blur:[Gst,"itemStyle"],select:[Vst,"itemStyle"]},w8e={normal:["label"],emphasis:[oM,"label"],blur:[Gst,"label"],select:[Vst,"label"]},Mmo=["x","y"],Nmo="e\0\0",Fb={normal:{},emphasis:{},blur:{},select:{}},Imo={cartesian2d:hmo,geo:pmo,single:gmo,polar:Amo,calendar:ymo};function BWe(t){return t instanceof no}function DWe(t){return t instanceof Xx}function Pmo(t,e){e.copyTransform(t),DWe(e)&&DWe(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,BWe(e)&&BWe(t)&&e.setShape(t.shape))}var Omo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,o){this._progressiveEls=null;var s=this._data,l=n.getData(),c=this.group,u=gOt(n,l,r,a);s||c.removeAll(),l.diff(s).add(function(h){_8e(a,null,h,u(h,o),n,c,l)}).remove(function(h){var f=s.getItemGraphicEl(h);f&&x2e(f,aM(f).option,n)}).update(function(h,f){var p=s.getItemGraphicEl(f);_8e(a,p,h,u(h,o),n,c,l)}).execute();var d=n.get("clip",!0)?pse(n.coordinateSystem,!1,n):null;d?c.setClipPath(d):c.removeClipPath(),this._data=l},e.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(n,r,a,o,s){var l=r.getData(),c=gOt(r,l,a,o),u=this._progressiveEls=[];function d(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var h=n.start;h<n.end;h++){var f=_8e(null,null,h,c(h,s),r,this.group,l);f&&(f.traverse(d),u.push(f))}},e.prototype.eachRendered=function(n){xO(this._progressiveEls||this.group,n)},e.prototype.filterForExposedEvent=function(n,r,a,o){var s=r.element;if(s==null||a.name===s)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===s)return!0;return!1},e.type="custom",e}(ql);const Lmo=Omo;function Kst(t){var e=t.type,n;if(e==="path"){var r=t.shape,a=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=zFn(r);n=ose(o,null,a,r.layout||"center"),aM(n).customPathData=o}else if(e==="image")n=new fm({}),aM(n).customImagePath=t.style.image;else if(e==="text")n=new Jo({});else if(e==="group")n=new ta;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var s=ZTe(e);if(!s){var l="";Zs(l)}n=new s}return aM(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function Wst(t,e,n,r,a,o,s){jFn(e);var l=a&&a.normal.cfg;l&&e.setTextConfig(l),r&&r.transition==null&&(r.transition=Mmo);var c=r&&r.style;if(c){if(e.type==="text"){var u=c;Dr(u,"textFill")&&(u.fill=u.textFill),Dr(u,"textStroke")&&(u.stroke=u.textStroke)}var d=void 0,h=BWe(e)?c.decal:null;t&&h&&(h.dirty=!0,d=sz(h,t)),c.__decalPattern=d}if(DWe(e)&&c){var d=c.__decalPattern;d&&(c.decal=d)}uge(e,r,o,{dataIndex:n,isInit:s,clearStyle:!0}),fye(e,r.keyframeAnimation,o)}function HFn(t,e,n,r,a){var o=e.isGroup?null:e,s=a&&a[t].cfg;if(o){var l=o.ensureState(t);if(r===!1){var c=o.getState(t);c&&(c.style=null)}else l.style=r||null;s&&(l.textConfig=s),r8(o)}}function Bmo(t,e,n){if(!t.isGroup){var r=t,a=n.currentZ,o=n.currentZLevel;r.z=a,r.zlevel=o;var s=e.z2;s!=null&&(r.z2=s||0);for(var l=0;l<PP.length;l++)Dmo(r,e,PP[l])}}function Dmo(t,e,n){var r=n===t5,a=r?e:pye(e,n),o=a?a.z2:null,s;o!=null&&(s=r?t:t.ensureState(n),s.z2=o||0)}function gOt(t,e,n,r){var a=t.get("renderItem"),o=t.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):Imo[o.type](o));for(var l=bi({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:_,ordinalRawValue:w,styleEmphasis:C,visual:P,barLayout:N,currentSeriesIndices:L,font:I},s.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:$mo(t.getData())},u,d,h={},f={},p={},m={},g=0;g<PP.length;g++){var v=PP[g];p[v]=t.getModel(S8e[v]),m[v]=t.getModel(w8e[v])}function A(b){return b===u?d||(d=e.getItemModel(b)):e.getItemModel(b)}function y(b,T){return e.hasItemOption?b===u?h[T]||(h[T]=A(b).getModel(S8e[T])):A(b).getModel(S8e[T]):p[T]}function S(b,T){return e.hasItemOption?b===u?f[T]||(f[T]=A(b).getModel(w8e[T])):A(b).getModel(w8e[T]):m[T]}return function(b,T){return u=b,d=null,h={},f={},a&&a(bi({dataIndexInside:b,dataIndex:e.getRawIndex(b),actionType:T?T.type:null},c),l)};function x(b,T){return T==null&&(T=u),e.getStore().get(e.getDimensionIndex(b||0),T)}function w(b,T){T==null&&(T=u),b=b||0;var M=e.getDimensionInfo(b);if(!M){var D=e.getDimensionIndex(b);return D>=0?e.getStore().get(D,T):void 0}var B=e.get(M.name,T),j=M&&M.ordinalMeta;return j?j.categories[B]:B}function _(b,T){T==null&&(T=u);var M=e.getItemVisual(T,"style"),D=M&&M.fill,B=M&&M.opacity,j=y(T,t5).getItemStyle();D!=null&&(j.fill=D),B!=null&&(j.opacity=B);var H={inheritColor:vr(D)?D:"#000"},U=S(T,t5),$=yc(U,null,H,!1,!0);$.text=U.getShallow("show")?pa(t.getFormattedLabel(T,t5),lz(e,T)):null;var z=H1e(U,H,!1);return k(b,j),j=dOt(j,$,z),b&&R(j,b),j.legacy=!0,j}function C(b,T){T==null&&(T=u);var M=y(T,oM).getItemStyle(),D=S(T,oM),B=yc(D,null,null,!0,!0);B.text=D.getShallow("show")?Aw(t.getFormattedLabel(T,oM),t.getFormattedLabel(T,t5),lz(e,T)):null;var j=H1e(D,null,!0);return k(b,M),M=dOt(M,B,j),b&&R(M,b),M.legacy=!0,M}function R(b,T){for(var M in T)Dr(T,M)&&(b[M]=T[M])}function k(b,T){b&&(b.textFill&&(T.textFill=b.textFill),b.textPosition&&(T.textPosition=b.textPosition))}function P(b,T){if(T==null&&(T=u),Dr(cOt,b)){var M=e.getItemVisual(T,"style");return M?M[cOt[b]]:null}if(Dr(lmo,b))return e.getItemVisual(T,b)}function N(b){if(o.type==="cartesian2d"){var T=o.getBaseAxis();return wio(bi({axis:T},b))}}function L(){return n.getCurrentSeriesIndices()}function I(b){return _ot(b,n)}}function $mo(t){var e={};return Ie(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,o=e[a]=e[a]||[];o[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}function _8e(t,e,n,r,a,o,s){if(!r){o.remove(e);return}var l=Qst(t,e,n,r,a,o);return l&&s.setItemGraphicEl(n,l),l&&bd(l,r.focus,r.blurScope,r.emphasisDisabled),l}function Qst(t,e,n,r,a,o){var s=-1,l=e;e&&UFn(e,r,a)&&(s=za(o.childrenRef(),e),e=null);var c=!e,u=e;u?u.clearStates():(u=Kst(r),l&&Pmo(l,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Fb.normal.cfg=Fb.normal.conOpt=Fb.emphasis.cfg=Fb.emphasis.conOpt=Fb.blur.cfg=Fb.blur.conOpt=Fb.select.cfg=Fb.select.conOpt=null,Fb.isLegacy=!1,jmo(u,n,r,a,c,Fb),Fmo(u,n,r,a,c),Wst(t,u,n,r,Fb,a,c),Dr(r,"info")&&(aM(u).info=r.info);for(var d=0;d<PP.length;d++){var h=PP[d];if(h!==t5){var f=pye(r,h),p=qst(r,f,h);HFn(h,u,f,p,Fb)}}return Bmo(u,r,a),r.type==="group"&&Hmo(t,u,n,r,a),s>=0?o.replaceAt(u,s):o.add(u),u}function UFn(t,e,n){var r=aM(t),a=e.type,o=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&Vmo(o)&&zFn(o)!==r.customPathData||a==="image"&&Dr(s,"image")&&s.image!==r.customImagePath}function Fmo(t,e,n,r,a){var o=n.clipPath;if(o===!1)t&&t.getClipPath()&&t.removeClipPath();else if(o){var s=t.getClipPath();s&&UFn(s,o,r)&&(s=null),s||(s=Kst(o),t.setClipPath(s)),Wst(null,s,e,o,null,r,a)}}function jmo(t,e,n,r,a,o){if(!t.isGroup){vOt(n,null,o),vOt(n,oM,o);var s=o.normal.conOpt,l=o.emphasis.conOpt,c=o.blur.conOpt,u=o.select.conOpt;if(s!=null||l!=null||u!=null||c!=null){var d=t.getTextContent();if(s===!1)d&&t.removeTextContent();else{s=o.normal.conOpt=s||{type:"text"},d?d.clearStates():(d=Kst(s),t.setTextContent(d)),Wst(null,d,e,s,null,r,a);for(var h=s&&s.style,f=0;f<PP.length;f++){var p=PP[f];if(p!==t5){var m=o[p].conOpt;HFn(p,d,m,qst(s,m,p),null)}}h?d.dirty():d.markRedraw()}}}}function vOt(t,e,n){var r=e?pye(t,e):t,a=e?qst(t,r,oM):t.style,o=t.type,s=r?r.textConfig:null,l=t.textContent,c=l?e?pye(l,e):l:null;if(a&&(n.isLegacy||LFn(a,o,!!s,!!c))){n.isLegacy=!0;var u=BFn(a,o,!e);!s&&u.textConfig&&(s=u.textConfig),!c&&u.textContent&&(c=u.textContent)}if(!e&&c){var d=c;!d.type&&(d.type="text")}var h=e?n[e]:n.normal;h.cfg=s,h.conOpt=c}function pye(t,e){return e?t?t[e]:null:t}function qst(t,e,n){var r=e&&e.style;return r==null&&n===oM&&t&&(r=t.styleEmphasis),r}function Hmo(t,e,n,r,a){var o=r.children,s=o?o.length:0,l=r.$mergeChildren,c=l==="byName"||r.diffChildrenByName,u=l===!1;if(!(!s&&!c&&!u)){if(c){zmo({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:a,group:e});return}u&&e.removeAll();for(var d=0;d<s;d++){var h=o[d],f=e.childAt(d);h?(h.ignore==null&&(h.ignore=!1),Qst(t,f,n,h,a,e)):f.ignore=!0}for(var p=e.childCount()-1;p>=d;p--){var m=e.childAt(p);Umo(e,m,a)}}}function Umo(t,e,n){e&&x2e(e,aM(t).option,n)}function zmo(t){new PM(t.oldChildren,t.newChildren,AOt,AOt,t).add(yOt).update(yOt).remove(Gmo).execute()}function AOt(t,e){var n=t&&t.name;return n??Nmo+e}function yOt(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,a=e!=null?n.oldChildren[e]:null;Qst(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function Gmo(t){var e=this.context,n=e.oldChildren[t];n&&x2e(n,aM(n).option,e.seriesModel)}function zFn(t){return t&&(t.pathData||t.d)}function Vmo(t){return t&&(Dr(t,"pathData")||Dr(t,"d"))}function Kmo(t){t.registerChartView(Lmo),t.registerSeriesModel(umo)}var xB=ds(),bOt=ji,T8e=Cr,Wmo=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,a){var o=n.get("value"),s=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===o&&this._lastStatus===s)){this._lastValue=o,this._lastStatus=s;var l=this._group,c=this._handle;if(!s||s==="hide"){l&&l.hide(),c&&c.hide();return}l&&l.show(),c&&c.show();var u={};this.makeElOption(u,o,e,n,r);var d=u.graphicKey;d!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=d;var h=this._moveAnimation=this.determineAnimation(e,n);if(!l)l=this._group=new ta,this.createPointerEl(l,u,e,n),this.createLabelEl(l,u,e,n),r.getZr().add(l);else{var f=fa(xOt,n,h);this.updatePointerEl(l,u,f),this.updateLabelEl(l,u,f,n)}SOt(l,n,!0),this._renderHandle(o)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),a=e.axis,o=a.type==="category",s=n.get("snap");if(!s&&!o)return!1;if(r==="auto"||r==null){var l=this.animationThreshold;if(o&&a.getBandWidth()>l)return!0;if(s){var c=yst(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/c>l}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,a,o){},t.prototype.createPointerEl=function(e,n,r,a){var o=n.pointer;if(o){var s=xB(e).pointerEl=new E9[o.type](bOt(n.pointer));e.add(s)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var o=xB(e).labelEl=new Jo(bOt(n.label));e.add(o),EOt(o,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=xB(e).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,a){var o=xB(e).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),EOt(o,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,o=n.getModel("handle"),s=n.get("status");if(!o.get("show")||!s||s==="hide"){a&&r.remove(a),this._handle=null;return}var l;this._handle||(l=!0,a=this._handle=PV(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){MM(u.event)},onmousedown:T8e(this._onHandleDragMove,this,0,0),drift:T8e(this._onHandleDragMove,this),ondragend:T8e(this._onHandleDragEnd,this)}),r.add(a)),SOt(a,n,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=o.get("size");Tn(c)||(c=[c,c]),a.scaleX=c[0]/2,a.scaleY=c[1]/2,UV(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,l)}},t.prototype._moveHandleToValue=function(e,n){xOt(this._axisPointerModel,!n&&this._moveAnimation,this._handle,C8e(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(C8e(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(C8e(a)),xB(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),mre(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function xOt(t,e,n,r){GFn(xB(n).lastProp,r)||(xB(n).lastProp=r,e?vs(n,r,t):(n.stopAnimation(),n.attr(r)))}function GFn(t,e){if(Ci(t)&&Ci(e)){var n=!0;return Ie(e,function(r,a){n=n&&GFn(t[a],r)}),!!n}else return t===e}function EOt(t,e){t[e.get(["label","show"])?"show":"hide"]()}function C8e(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function SOt(t,e,n){var r=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),a!=null&&(o.zlevel=a),o.silent=n)})}const Yst=Wmo;function Jst(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function VFn(t,e,n,r,a){var o=n.get("value"),s=KFn(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=w9(l.get("padding")||0),u=l.getFont(),d=tse(s,u),h=a.position,f=d.width+c[1]+c[3],p=d.height+c[0]+c[2],m=a.align;m==="right"&&(h[0]-=f),m==="center"&&(h[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(h[1]-=p),g==="middle"&&(h[1]-=p/2),Qmo(h,f,p,r);var v=l.get("backgroundColor");(!v||v==="auto")&&(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:yc(l,{text:s,font:u,fill:l.getTextColor(),padding:c,backgroundColor:v}),z2:10}}function Qmo(t,e,n,r){var a=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function KFn(t,e,n,r,a){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:a.precision}),s=a.formatter;if(s){var l={value:cst(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Ie(r,function(c){var u=n.getSeriesByIndex(c.seriesIndex),d=c.dataIndexInside,h=u&&u.getDataParams(d);h&&l.seriesData.push(h)}),vr(s)?o=s.replace("{value}",o):ai(s)&&(o=s(l))}return o}function Zst(t,e,n){var r=r1();return bO(r,r,n.rotation),Dw(r,r,n.position),xw([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function WFn(t,e,n,r,a,o){var s=LM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),VFn(e,r,a,o,{position:Zst(r.axis,t,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function Xst(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function QFn(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function wOt(t,e,n,r,a,o){return{cx:t,cy:e,r0:n,r,startAngle:a,endAngle:o,clockwise:!0}}var qmo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,o,s){var l=a.axis,c=l.grid,u=o.get("type"),d=_Ot(c,l).getOtherAxis(l).getGlobalExtent(),h=l.toGlobalCoord(l.dataToCoord(r,!0));if(u&&u!=="none"){var f=Jst(o),p=Ymo[u](l,h,d);p.style=f,n.graphicKey=p.type,n.pointer=p}var m=yWe(c.model,a);WFn(r,n,m,a,o,s)},e.prototype.getHandleTransform=function(n,r,a){var o=yWe(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var s=Zst(r.axis,n,o);return{x:s[0],y:s[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,o){var s=a.axis,l=s.grid,c=s.getGlobalExtent(!0),u=_Ot(l,s).getOtherAxis(s).getGlobalExtent(),d=s.dim==="x"?0:1,h=[n.x,n.y];h[d]+=r[d],h[d]=Math.min(c[1],h[d]),h[d]=Math.max(c[0],h[d]);var f=(u[1]+u[0])/2,p=[f,f];p[d]=h[d];var m=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:n.rotation,cursorPoint:p,tooltipOption:m[d]}},e}(Yst);function _Ot(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Ymo={line:function(t,e,n){var r=Xst([e,n[0]],[e,n[1]],TOt(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:QFn([e-r/2,n[0]],[r,a],TOt(t))}}};function TOt(t){return t.dim==="x"?0:1}const Jmo=qmo;var Zmo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Fo);const Xmo=Zmo;var WR=ds(),ego=Ie;function qFn(t,e,n){if(!ls.node){var r=e.getZr();WR(r).records||(WR(r).records={}),tgo(r,e);var a=WR(r).records[t]||(WR(r).records[t]={});a.handler=n}}function tgo(t,e){if(WR(t).initialized)return;WR(t).initialized=!0,n("click",fa(COt,"click")),n("mousemove",fa(COt,"mousemove")),n("globalout",rgo);function n(r,a){t.on(r,function(o){var s=igo(e);ego(WR(t).records,function(l){l&&a(l,o,s.dispatchAction)}),ngo(s.pendings,e)})}}function ngo(t,e){var n=t.showTip.length,r=t.hideTip.length,a;n?a=t.showTip[n-1]:r&&(a=t.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function rgo(t,e,n){t.handler("leave",null,n)}function COt(t,e,n,r){e.handler(t,n,r)}function igo(t){var e={showTip:[],hideTip:[]},n=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function $We(t,e){if(!ls.node){var n=e.getZr(),r=(WR(n).records||{})[t];r&&(WR(n).records[t]=null)}}var ago=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=r.getComponent("tooltip"),s=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";qFn("axisPointer",a,function(l,c,u){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&u({type:"updateAxisPointer",currTrigger:l,x:c&&c.offsetX,y:c&&c.offsetY})})},e.prototype.remove=function(n,r){$We("axisPointer",r)},e.prototype.dispose=function(n,r){$We("axisPointer",r)},e.type="axisPointer",e}(Au);const ogo=ago;function YFn(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var o=a.getData(),s=t8(o,t);if(s==null||s<0||Tn(s))return{point:[]};var l=o.getItemGraphicEl(s),c=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(s)||[];else if(c&&c.dataToPoint)if(t.isStacked){var u=c.getBaseAxis(),d=c.getOtherAxis(u),h=d.dim,f=u.dim,p=h==="x"||h==="radius"?1:0,m=o.mapDimension(f),g=[];g[p]=o.get(m,s),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(g)||[]}else n=c.dataToPoint(o.getValues(Rn(c.dimensions,function(A){return o.mapDimension(A)}),s))||[];else if(l){var v=l.getBoundingRect().clone();v.applyTransform(l.transform),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:l}}var kOt=ds();function sgo(t,e,n){var r=t.currTrigger,a=[t.x,t.y],o=t,s=t.dispatchAction||Cr(n.dispatchAction,n),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){dge(a)&&(a=YFn({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var c=dge(a),u=o.axesInfo,d=l.axesInfo,h=r==="leave"||dge(a),f={},p={},m={list:[],map:{}},g={showPointer:fa(cgo,p),showTooltip:fa(ugo,m)};Ie(l.coordSysMap,function(A,y){var S=c||A.containPoint(a);Ie(l.coordSysAxesInfo[y],function(x,w){var _=x.axis,C=pgo(u,x);if(!h&&S&&(!u||C)){var R=C&&C.value;R==null&&!c&&(R=_.pointToData(a)),R!=null&&ROt(x,R,g,!1,f)}})});var v={};return Ie(d,function(A,y){var S=A.linkGroup;S&&!p[y]&&Ie(S.axesInfo,function(x,w){var _=p[w];if(x!==A&&_){var C=_.value;S.mapper&&(C=A.axis.scale.parse(S.mapper(C,MOt(x),MOt(A)))),v[A.key]=C}})}),Ie(v,function(A,y){ROt(d[y],A,g,!0,f)}),dgo(p,d,f),hgo(m,a,t,s),fgo(d,s,n),f}}function ROt(t,e,n,r,a){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var s=lgo(e,t),l=s.payloadBatch,c=s.snapToValue;l[0]&&a.seriesIndex==null&&An(a,l[0]),!r&&t.snap&&o.containData(c)&&c!=null&&(e=c),n.showPointer(t,e,l),n.showTooltip(t,s,c)}}function lgo(t,e){var n=e.axis,r=n.dim,a=t,o=[],s=Number.MAX_VALUE,l=-1;return Ie(e.seriesModels,function(c,u){var d=c.getData().mapDimensionsAll(r),h,f;if(c.getAxisTooltipData){var p=c.getAxisTooltipData(d,t,n);f=p.dataIndices,h=p.nestestValue}else{if(f=c.getData().indicesOfNearest(d[0],t,n.type==="category"?.5:null),!f.length)return;h=c.getData().get(d[0],f[0])}if(!(h==null||!isFinite(h))){var m=t-h,g=Math.abs(m);g<=s&&((g<s||m>=0&&l<0)&&(s=g,l=m,a=h,o.length=0),Ie(f,function(v){o.push({seriesIndex:c.seriesIndex,dataIndexInside:v,dataIndex:c.getData().getRawIndex(v)})}))}}),{payloadBatch:o,snapToValue:a}}function cgo(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function ugo(t,e,n,r){var a=n.payloadBatch,o=e.axis,s=o.model,l=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var c=e.coordSys.model,u=xre(c),d=t.map[u];d||(d=t.map[u]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},t.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function dgo(t,e,n){var r=n.axesInfo=[];Ie(e,function(a,o){var s=a.axisPointerModel.option,l=t[o];l?(!a.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!a.useHandle&&(s.status="hide"),s.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:s.value})})}function hgo(t,e,n,r){if(dge(e)||!t.list.length){r({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function fgo(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",o=kOt(r)[a]||{},s=kOt(r)[a]={};Ie(t,function(u,d){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&Ie(h.seriesDataIndices,function(f){var p=f.seriesIndex+" | "+f.dataIndex;s[p]=f})});var l=[],c=[];Ie(o,function(u,d){!s[d]&&c.push(u)}),Ie(s,function(u,d){!o[d]&&l.push(u)}),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function pgo(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function MOt(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function dge(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function bse(t){C9.registerAxisPointerClass("CartesianAxisPointer",Jmo),t.registerComponentModel(Xmo),t.registerComponentView(ogo),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!Tn(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=tlo(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sgo)}function mgo(t){qa(E7n),qa(bse)}var ggo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,o,s){var l=a.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var c=l.polar,u=c.getOtherAxis(l),d=u.getExtent(),h=l.dataToCoord(r),f=o.get("type");if(f&&f!=="none"){var p=Jst(o),m=Ago[f](l,c,h,d);m.style=p,n.graphicKey=m.type,n.pointer=m}var g=o.get(["label","margin"]),v=vgo(r,a,o,c,g);VFn(n,a,o,s,v)},e}(Yst);function vgo(t,e,n,r,a){var o=e.axis,s=o.dataToCoord(t),l=r.getAngleAxis().getExtent()[0];l=l/180*Math.PI;var c=r.getRadiusAxis().getExtent(),u,d,h;if(o.dim==="radius"){var f=r1();bO(f,f,l),Dw(f,f,[r.cx,r.cy]),u=xw([s,-a],f);var p=e.getModel("axisLabel").get("rotate")||0,m=LM.innerTextLayout(l,p*Math.PI/180,-1);d=m.textAlign,h=m.textVerticalAlign}else{var g=c[1];u=r.coordToPoint([g+a,s]);var v=r.cx,A=r.cy;d=Math.abs(u[0]-v)/g<.3?"center":u[0]>v?"left":"right",h=Math.abs(u[1]-A)/g<.3?"middle":u[1]>A?"top":"bottom"}return{position:u,align:d,verticalAlign:h}}var Ago={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:Xst(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var a=Math.max(1,t.getBandWidth()),o=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:wOt(e.cx,e.cy,r[0],r[1],(-n-a/2)*o,(-n+a/2)*o)}:{type:"Sector",shape:wOt(e.cx,e.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const ygo=ggo;var bgo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Fo);const xgo=bgo;var elt=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qh).models[0]},e.type="polarAxis",e}(Fo);Vd(elt,VV);var Ego=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}(elt),Sgo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}(elt),tlt=function(t){nn(e,t);function e(n,r){return t.call(this,"radius",n,r)||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e}(CE);tlt.prototype.dataToRadius=CE.prototype.dataToCoord;tlt.prototype.radiusToData=CE.prototype.coordToData;const wgo=tlt;var _go=ds(),nlt=function(t){nn(e,t);function e(n,r){return t.call(this,"angle",n,r||[0,360])||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,o=a.getExtent(),s=a.count();if(o[1]-o[0]<1)return 0;var l=o[0],c=n.dataToCoord(l+1)-n.dataToCoord(l),u=Math.abs(c),d=tse(l==null?"":l+"",r.getFont(),"center","top"),h=Math.max(d.height,7),f=h/u;isNaN(f)&&(f=1/0);var p=Math.max(0,Math.floor(f)),m=_go(n.model),g=m.lastAutoInterval,v=m.lastTickCount;return g!=null&&v!=null&&Math.abs(g-p)<=1&&Math.abs(v-s)<=1&&g>p?p=g:(m.lastTickCount=s,m.lastAutoInterval=p),p},e}(CE);nlt.prototype.dataToAngle=CE.prototype.dataToCoord;nlt.prototype.angleToData=CE.prototype.coordToData;const Tgo=nlt;var JFn=["radius","angle"],Cgo=function(){function t(e){this.dimensions=JFn,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new wgo,this._angleAxis=new Tgo,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var n=this.pointToCoord(e);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var n="_"+e+"Axis";return this[n]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&n.push(r),a.scale.type===e&&n.push(a),n},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var n=this._angleAxis;return e===n?this._radiusAxis:n},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var n=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},t.prototype.dataToPoint=function(e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],n),this._angleAxis.dataToAngle(e[1],n)])},t.prototype.pointToData=function(e,n){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},t.prototype.pointToCoord=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),o=a.getExtent(),s=Math.min(o[0],o[1]),l=Math.max(o[0],o[1]);a.inverse?s=l-360:l=s+360;var c=Math.sqrt(n*n+r*r);n/=c,r/=c;for(var u=Math.atan2(-r,n)/Math.PI*180,d=u<s?1:-1;u<s||u>l;)u+=d*360;return[c,u]},t.prototype.coordToPoint=function(e){var n=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,o=-Math.sin(r)*n+this.cy;return[a,o]},t.prototype.getArea=function(){var e=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*o,endAngle:-a[1]*o,clockwise:e.inverse,contain:function(s,l){var c=s-this.cx,u=l-this.cy,d=c*c+u*u-1e-4,h=this.r,f=this.r0;return d<=h*h&&d>=f*f}}},t.prototype.convertToPixel=function(e,n,r){var a=NOt(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=NOt(n);return a===this?this.pointToData(r):null},t}();function NOt(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const kgo=Cgo;function Rgo(t,e,n){var r=e.get("center"),a=n.getWidth(),o=n.getHeight();t.cx=lr(r[0],a),t.cy=lr(r[1],o);var s=t.getRadiusAxis(),l=Math.min(a,o)/2,c=e.get("radius");c==null?c=[0,"100%"]:Tn(c)||(c=[0,c]);var u=[lr(c[0],l),lr(c[1],l)];s.inverse?s.setExtent(u[1],u[0]):s.setExtent(u[0],u[1])}function Mgo(t,e){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(l){if(l.coordinateSystem===n){var c=l.getData();Ie(eye(c,"radius"),function(u){a.scale.unionExtentFromData(c,u)}),Ie(eye(c,"angle"),function(u){r.scale.unionExtentFromData(c,u)})}}),a8(r.scale,r.model),a8(a.scale,a.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),s=360/r.scale.count();r.inverse?o[1]+=s:o[1]-=s,r.setExtent(o[0],o[1])}}function Ngo(t){return t.mainType==="angleAxis"}function IOt(t,e){var n;if(t.type=e.get("type"),t.scale=use(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),Ngo(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),a=(n=e.get("endAngle"))!==null&&n!==void 0?n:r+(t.inverse?-360:360);t.setExtent(r,a)}e.axis=t,t.model=e}var Igo={dimensions:JFn,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,a){var o=new kgo(a+"");o.update=Mgo;var s=o.getRadiusAxis(),l=o.getAngleAxis(),c=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");IOt(s,c),IOt(l,u),Rgo(o,r,e),n.push(o),r.coordinateSystem=o,o.model=r}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",Qh).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const Pgo=Igo;var Ogo=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xhe(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),a=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function Ehe(t){var e=t.getRadiusAxis();return e.inverse?0:1}function POt(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var Lgo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,o=a.polar,s=o.getRadiusAxis().getExtent(),l=a.getTicksCoords(),c=a.getMinorTicksCoords(),u=Rn(a.getViewLabels(),function(d){d=ji(d);var h=a.scale,f=h.type==="ordinal"?h.getRawOrdinalNumber(d.tickValue):d.tickValue;return d.coord=a.dataToCoord(f),d});POt(u),POt(l),Ie(Ogo,function(d){n.get([d,"show"])&&(!a.scale.isBlank()||d==="axisLine")&&Bgo[d](this.group,n,o,l,c,s,u)},this)}},e.type="angleAxis",e}(C9),Bgo={axisLine:function(t,e,n,r,a,o){var s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),c=Math.PI/180,u=l.getExtent(),d=Ehe(n),h=d?0:1,f,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";o[h]===0?f=new E9[p]({shape:{cx:n.cx,cy:n.cy,r:o[d],startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):f=new ise({shape:{cx:n.cx,cy:n.cy,r:o[d],r0:o[h]},style:s.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,t.add(f)},axisTick:function(t,e,n,r,a,o){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),c=o[Ehe(n)],u=Rn(r,function(d){return new vp({shape:xhe(n,[c,c+l],d.coord)})});t.add(Ty(u,{style:bi(s.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,a,o){if(a.length){for(var s=e.getModel("axisTick"),l=e.getModel("minorTick"),c=(s.get("inside")?-1:1)*l.get("length"),u=o[Ehe(n)],d=[],h=0;h<a.length;h++)for(var f=0;f<a[h].length;f++)d.push(new vp({shape:xhe(n,[u,u+c],a[h][f].coord)}));t.add(Ty(d,{style:bi(l.getModel("lineStyle").getLineStyle(),bi(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,a,o,s){var l=e.getCategories(!0),c=e.getModel("axisLabel"),u=c.get("margin"),d=e.get("triggerEvent");Ie(s,function(h,f){var p=c,m=h.tickValue,g=o[Ehe(n)],v=n.coordToPoint([g+u,h.coord]),A=n.cx,y=n.cy,S=Math.abs(v[0]-A)/g<.3?"center":v[0]>A?"left":"right",x=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";if(l&&l[m]){var w=l[m];Ci(w)&&w.textStyle&&(p=new Kl(w.textStyle,c,c.ecModel))}var _=new Jo({silent:LM.isLabelSilent(e),style:yc(p,{x:v[0],y:v[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:S,verticalAlign:x})});if(t.add(_),d){var C=LM.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=h.rawLabel,ia(_).eventData=C}},this)},splitLine:function(t,e,n,r,a,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],h=0;h<r.length;h++){var f=u++%c.length;d[f]=d[f]||[],d[f].push(new vp({shape:xhe(n,o,r[h].coord)}))}for(var h=0;h<d.length;h++)t.add(Ty(d[h],{style:bi({stroke:c[h%c.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,a,o){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<a.length;u++)for(var d=0;d<a[u].length;d++)c.push(new vp({shape:xhe(n,o,a[u][d].coord)}));t.add(Ty(c,{style:l.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,a,o){if(r.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],h=Math.PI/180,f=-r[0].coord*h,p=Math.min(o[0],o[1]),m=Math.max(o[0],o[1]),g=e.get("clockwise"),v=1,A=r.length;v<=A;v++){var y=v===A?r[0].coord:r[v].coord,S=u++%c.length;d[S]=d[S]||[],d[S].push(new q0({shape:{cx:n.cx,cy:n.cy,r0:p,r:m,startAngle:f,endAngle:-y*h,clockwise:g},silent:!0})),f=-y*h}for(var v=0;v<d.length;v++)t.add(Ty(d[v],{style:bi({fill:c[v%c.length]},l.getAreaStyle()),silent:!0}))}}};const Dgo=Lgo;var $go=["axisLine","axisTickLabel","axisName"],Fgo=["splitLine","splitArea","minorSplitLine"],jgo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=this._axisGroup,o=this._axisGroup=new ta;this.group.add(o);var s=n.axis,l=s.polar,c=l.getAngleAxis(),u=s.getTicksCoords(),d=s.getMinorTicksCoords(),h=c.getExtent()[0],f=s.getExtent(),p=Ugo(l,n,h),m=new LM(n,p);Ie($go,m.add,m),o.add(m.getGroup()),sse(a,o,n),Ie(Fgo,function(g){n.get([g,"show"])&&!s.scale.isBlank()&&Hgo[g](this.group,n,l,h,f,u,d)},this)}},e.type="radiusAxis",e}(C9),Hgo={splitLine:function(t,e,n,r,a,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),u=0,d=n.getAngleAxis(),h=Math.PI/180,f=d.getExtent(),p=Math.abs(f[1]-f[0])===360?"Circle":"Arc";c=c instanceof Array?c:[c];for(var m=[],g=0;g<o.length;g++){var v=u++%c.length;m[v]=m[v]||[],m[v].push(new E9[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[g].coord,0),startAngle:-f[0]*h,endAngle:-f[1]*h,clockwise:d.inverse}}))}for(var g=0;g<m.length;g++)t.add(Ty(m[g],{style:bi({stroke:c[g%c.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,a,o,s){if(s.length){for(var l=e.getModel("minorSplitLine"),c=l.getModel("lineStyle"),u=[],d=0;d<s.length;d++)for(var h=0;h<s[d].length;h++)u.push(new yN({shape:{cx:n.cx,cy:n.cy,r:s[d][h].coord}}));t.add(Ty(u,{style:bi({fill:null},c.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,a,o){if(o.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],h=o[0].coord,f=1;f<o.length;f++){var p=u++%c.length;d[p]=d[p]||[],d[p].push(new q0({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=o[f].coord}for(var f=0;f<d.length;f++)t.add(Ty(d[f],{style:bi({fill:c[f%c.length]},l.getAreaStyle()),silent:!0}))}}};function Ugo(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const zgo=jgo;function ZFn(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function XFn(t,e){return e.dim+t.model.componentIndex}function Ggo(t,e,n){var r={},a=Vgo(ll(e.getSeriesByType(t),function(o){return!e.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(o){if(o.coordinateSystem.type==="polar"){var s=o.getData(),l=o.coordinateSystem,c=l.getBaseAxis(),u=XFn(l,c),d=ZFn(o),h=a[u][d],f=h.offset,p=h.width,m=l.getOtherAxis(c),g=o.coordinateSystem.cx,v=o.coordinateSystem.cy,A=o.get("barMinHeight")||0,y=o.get("barMinAngle")||0;r[d]=r[d]||[];for(var S=s.mapDimension(m.dim),x=s.mapDimension(c.dim),w=OM(s,S),_=c.dim!=="radius"||!o.get("roundCap",!0),C=m.dataToCoord(0),R=0,k=s.count();R<k;R++){var P=s.get(S,R),N=s.get(x,R),L=P>=0?"p":"n",I=C;w&&(r[d][N]||(r[d][N]={p:C,n:C}),I=r[d][N][L]);var b=void 0,T=void 0,M=void 0,D=void 0;if(m.dim==="radius"){var B=m.dataToCoord(P)-C,j=c.dataToCoord(N);Math.abs(B)<A&&(B=(B<0?-1:1)*A),b=I,T=I+B,M=j-f,D=M-p,w&&(r[d][N][L]=T)}else{var H=m.dataToCoord(P,_)-C,U=c.dataToCoord(N);Math.abs(H)<y&&(H=(H<0?-1:1)*y),b=U+f,T=b+p,M=I,D=I+H,w&&(r[d][N][L]=D)}s.setItemLayout(R,{cx:g,cy:v,r0:b,r:T,startAngle:-M*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:M>=D})}}})}function Vgo(t){var e={};Ie(t,function(r,a){var o=r.getData(),s=r.coordinateSystem,l=s.getBaseAxis(),c=XFn(s,l),u=l.getExtent(),d=l.type==="category"?l.getBandWidth():Math.abs(u[1]-u[0])/o.count(),h=e[c]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;e[c]=h;var p=ZFn(r);f[p]||h.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var m=lr(r.get("barWidth"),d),g=lr(r.get("barMaxWidth"),d),v=r.get("barGap"),A=r.get("barCategoryGap");m&&!f[p].width&&(m=Math.min(h.remainedWidth,m),f[p].width=m,h.remainedWidth-=m),g&&(f[p].maxWidth=g),v!=null&&(h.gap=v),A!=null&&(h.categoryGap=A)});var n={};return Ie(e,function(r,a){n[a]={};var o=r.stacks,s=r.bandWidth,l=lr(r.categoryGap,s),c=lr(r.gap,1),u=r.remainedWidth,d=r.autoWidthCount,h=(u-l)/(d+(d-1)*c);h=Math.max(h,0),Ie(o,function(g,v){var A=g.maxWidth;A&&A<h&&(A=Math.min(A,u),g.width&&(A=Math.min(A,g.width)),u-=A,g.width=A,d--)}),h=(u-l)/(d+(d-1)*c),h=Math.max(h,0);var f=0,p;Ie(o,function(g,v){g.width||(g.width=h),p=g,f+=g.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;Ie(o,function(g,v){n[a][v]=n[a][v]||{offset:m,width:g.width},m+=g.width*(1+c)})}),n}var Kgo={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Wgo={splitNumber:5},Qgo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="polar",e}(Au);function qgo(t){qa(bse),C9.registerAxisPointerClass("PolarAxisPointer",ygo),t.registerCoordinateSystem("polar",Pgo),t.registerComponentModel(xgo),t.registerComponentView(Qgo),cz(t,"angle",Ego,Kgo),cz(t,"radius",Sgo,Wgo),t.registerComponentView(Dgo),t.registerComponentView(zgo),t.registerLayout(fa(Ggo,"bar"))}function FWe(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,a={},o=r.position,s=r.orient,l=n.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};a.position=[s==="vertical"?u.vertical[o]:c[0],s==="horizontal"?u.horizontal[o]:c[3]];var d={horizontal:0,vertical:1};a.rotation=Math.PI/2*d[s];var h={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=h[o],t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),gp(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var f=e.rotate;return f==null&&(f=t.get(["axisLabel","rotate"])),a.labelRotation=o==="top"?-f:f,a.z2=1,a}var Ygo=["axisLine","axisTickLabel","axisName"],Jgo=["splitArea","splitLine"],Zgo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return e.prototype.render=function(n,r,a,o){var s=this.group;s.removeAll();var l=this._axisGroup;this._axisGroup=new ta;var c=FWe(n),u=new LM(n,c);Ie(Ygo,u.add,u),s.add(this._axisGroup),s.add(u.getGroup()),Ie(Jgo,function(d){n.get([d,"show"])&&Xgo[d](this,this.group,this._axisGroup,n)},this),sse(l,this._axisGroup,n),t.prototype.render.call(this,n,r,a,o)},e.prototype.remove=function(){y7n(this)},e.type="singleAxis",e}(C9),Xgo={splitLine:function(t,e,n,r){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var c=s.get("width"),u=r.coordinateSystem.getRect(),d=a.isHorizontal(),h=[],f=0,p=a.getTicksCoords({tickModel:o}),m=[],g=[],v=0;v<p.length;++v){var A=a.toGlobalCoord(p[v].coord);d?(m[0]=A,m[1]=u.y,g[0]=A,g[1]=u.y+u.height):(m[0]=u.x,m[1]=A,g[0]=u.x+u.width,g[1]=A);var y=new vp({shape:{x1:m[0],y1:m[1],x2:g[0],y2:g[1]},silent:!0});az(y.shape,c);var S=f++%l.length;h[S]=h[S]||[],h[S].push(y)}for(var x=s.getLineStyle(["color"]),v=0;v<h.length;++v)e.add(Ty(h[v],{style:bi({stroke:l[v%l.length]},x),silent:!0}))}},splitArea:function(t,e,n,r){A7n(t,n,r,r)}};const evo=Zgo;var ejn=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Fo);Vd(ejn,VV.prototype);const k8e=ejn;var tvo=function(t){nn(e,t);function e(n,r,a,o,s){var l=t.call(this,n,r,a)||this;return l.type=o||"value",l.position=s||"bottom",l}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},e}(CE);const nvo=tvo;var tjn=["single"],rvo=function(){function t(e,n,r){this.type="single",this.dimension="single",this.dimensions=tjn,this.axisPointerEnabled=!0,this.model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var a=this.dimension,o=new nvo(a,use(e),[0,0],e.get("type"),e.get("position")),s=o.type==="category";o.onBand=s&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},t.prototype.update=function(e,n){e.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();Ie(a.mapDimensionsAll(this.dimension),function(o){this._axis.scale.unionExtentFromData(a,o)},this),a8(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,n){this._rect=nf({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,n=this._axis,r=n.isHorizontal(),a=r?[0,e.width]:[0,e.height],o=n.inverse?1:0;n.setExtent(a[o],a[1-o]),this._updateAxisTransform(n,r?e.x:e.y)},t.prototype._updateAxisTransform=function(e,n){var r=e.getExtent(),a=r[0]+r[1],o=e.isHorizontal();e.toGlobalCoord=o?function(s){return s+n}:function(s){return a-s+n},e.toLocalCoord=o?function(s){return s-n}:function(s){return a-s+n}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(e){var n=this.getRect(),r=this.getAxis(),a=r.orient;return a==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=n.y&&e[1]<=n.y+n.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=n.y&&e[0]<=n.y+n.height},t.prototype.pointToData=function(e){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var n=this.getAxis(),r=this.getRect(),a=[],o=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+e)),a[1-o]=o===0?r.y+r.height/2:r.x+r.width/2,a},t.prototype.convertToPixel=function(e,n,r){var a=OOt(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=OOt(n);return a===this?this.pointToData(r):null},t}();function OOt(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function ivo(t,e){var n=[];return t.eachComponent("singleAxis",function(r,a){var o=new rvo(r,t,e);o.name="single_"+a,o.resize(r,e),r.coordinateSystem=o,n.push(o)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",Qh).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var avo={create:ivo,dimensions:tjn};const ovo=avo;var LOt=["x","y"],svo=["width","height"],lvo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,o,s){var l=a.axis,c=l.coordinateSystem,u=R8e(c,1-mye(l)),d=c.dataToPoint(r)[0],h=o.get("type");if(h&&h!=="none"){var f=Jst(o),p=cvo[h](l,d,u);p.style=f,n.graphicKey=p.type,n.pointer=p}var m=FWe(a);WFn(r,n,m,a,o,s)},e.prototype.getHandleTransform=function(n,r,a){var o=FWe(r,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var s=Zst(r.axis,n,o);return{x:s[0],y:s[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,o){var s=a.axis,l=s.coordinateSystem,c=mye(s),u=R8e(l,c),d=[n.x,n.y];d[c]+=r[c],d[c]=Math.min(u[1],d[c]),d[c]=Math.max(u[0],d[c]);var h=R8e(l,1-c),f=(h[1]+h[0])/2,p=[f,f];return p[c]=d[c],{x:d[0],y:d[1],rotation:n.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e}(Yst),cvo={line:function(t,e,n){var r=Xst([e,n[0]],[e,n[1]],mye(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:QFn([e-r/2,n[0]],[r,a],mye(t))}}};function mye(t){return t.isHorizontal()?0:1}function R8e(t,e){var n=t.getRect();return[n[LOt[e]],n[LOt[e]]+n[svo[e]]]}const uvo=lvo;var dvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(Au);function hvo(t){qa(bse),C9.registerAxisPointerClass("SingleAxisPointer",uvo),t.registerComponentView(dvo),t.registerComponentView(evo),t.registerComponentModel(k8e),cz(t,"single",k8e,k8e.defaultOption),t.registerCoordinateSystem("single",ovo)}var fvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,a){var o=DV(n);t.prototype.init.apply(this,arguments),BOt(n,o)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),BOt(this.option,n)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Fo);function BOt(t,e){var n=t.cellSize,r;Tn(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=Rn([0,1],function(o){return tto(e,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});MP(t,e,{type:"box",ignoreSize:a})}const pvo=fvo;var mvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var o=this.group;o.removeAll();var s=n.coordinateSystem,l=s.getRangeInfo(),c=s.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,l,o),this._renderLines(n,l,c,o),this._renderYearText(n,l,c,o),this._renderMonthText(n,u,c,o),this._renderWeekText(n,u,l,c,o)},e.prototype._renderDayRect=function(n,r,a){for(var o=n.coordinateSystem,s=n.getModel("itemStyle").getItemStyle(),l=o.getCellWidth(),c=o.getCellHeight(),u=r.start.time;u<=r.end.time;u=o.getNextNDay(u,1).time){var d=o.dataToRect([u],!1).tl,h=new Zo({shape:{x:d[0],y:d[1],width:l,height:c},cursor:"default",style:s});a.add(h)}},e.prototype._renderLines=function(n,r,a,o){var s=this,l=n.coordinateSystem,c=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),d=c.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=r.start,f=0;h.time<=r.end.time;f++){m(h.formatedDate),f===0&&(h=l.getDateInfo(r.start.y+"-"+r.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=l.getDateInfo(p)}m(l.getNextNDay(r.end.time,1).formatedDate);function m(g){s._firstDayOfMonth.push(l.getDateInfo(g)),s._firstDayPoints.push(l.dataToRect([g],!1).tl);var v=s._getLinePointsOfOneWeek(n,g,a);s._tlpoints.push(v[0]),s._blpoints.push(v[v.length-1]),u&&s._drawSplitline(v,c,o)}u&&this._drawSplitline(s._getEdgesPoints(s._tlpoints,d,a),c,o),u&&this._drawSplitline(s._getEdgesPoints(s._blpoints,d,a),c,o)},e.prototype._getEdgesPoints=function(n,r,a){var o=[n[0].slice(),n[n.length-1].slice()],s=a==="horizontal"?0:1;return o[0][s]=o[0][s]-r/2,o[1][s]=o[1][s]+r/2,o},e.prototype._drawSplitline=function(n,r,a){var o=new aA({z2:20,shape:{points:n},style:r});a.add(o)},e.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var o=n.coordinateSystem,s=o.getDateInfo(r),l=[],c=0;c<7;c++){var u=o.getNextNDay(s.time,c),d=o.dataToRect([u.time],!1);l[2*u.day]=d.tl,l[2*u.day+1]=d[a==="horizontal"?"bl":"tr"]}return l},e.prototype._formatterLabel=function(n,r){return vr(n)&&n?Jeo(n,r):ai(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,a,o,s){var l=r[0],c=r[1],u=["center","bottom"];o==="bottom"?(c+=s,u=["center","top"]):o==="left"?l-=s:o==="right"?(l+=s,u=["center","top"]):c-=s;var d=0;return(o==="left"||o==="right")&&(d=Math.PI/2),{rotation:d,x:l,y:c,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(n,r,a,o){var s=n.getModel("yearLabel");if(s.get("show")){var l=s.get("margin"),c=s.get("position");c||(c=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],d=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,p={top:[d,u[f][1]],bottom:[d,u[1-f][1]],left:[u[1-f][0],h],right:[u[f][0],h]},m=r.start.y;+r.end.y>+r.start.y&&(m=m+"-"+r.end.y);var g=s.get("formatter"),v={start:r.start.y,end:r.end.y,nameMap:m},A=this._formatterLabel(g,v),y=new Jo({z2:30,style:yc(s,{text:A})});y.attr(this._yearTextPositionControl(y,p[c],a,c,l)),o.add(y)}},e.prototype._monthTextPositionControl=function(n,r,a,o,s){var l="left",c="top",u=n[0],d=n[1];return a==="horizontal"?(d=d+s,r&&(l="center"),o==="start"&&(c="bottom")):(u=u+s,r&&(c="middle"),o==="start"&&(l="right")),{x:u,y:d,align:l,verticalAlign:c}},e.prototype._renderMonthText=function(n,r,a,o){var s=n.getModel("monthLabel");if(s.get("show")){var l=s.get("nameMap"),c=s.get("margin"),u=s.get("position"),d=s.get("align"),h=[this._tlpoints,this._blpoints];(!l||vr(l))&&(l&&(r=QKe(l)||r),l=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,p=a==="horizontal"?0:1;c=u==="start"?-c:c;for(var m=d==="center",g=0;g<h[f].length-1;g++){var v=h[f][g].slice(),A=this._firstDayOfMonth[g];if(m){var y=this._firstDayPoints[g];v[p]=(y[p]+h[0][g+1][p])/2}var S=s.get("formatter"),x=l[+A.m-1],w={yyyy:A.y,yy:(A.y+"").slice(2),MM:A.m,M:+A.m,nameMap:x},_=this._formatterLabel(S,w),C=new Jo({z2:30,style:An(yc(s,{text:_}),this._monthTextPositionControl(v,m,a,u,c))});o.add(C)}}},e.prototype._weekTextPositionControl=function(n,r,a,o,s){var l="center",c="middle",u=n[0],d=n[1],h=a==="start";return r==="horizontal"?(u=u+o+(h?1:-1)*s[0]/2,l=h?"right":"left"):(d=d+o+(h?1:-1)*s[1]/2,c=h?"bottom":"top"),{x:u,y:d,align:l,verticalAlign:c}},e.prototype._renderWeekText=function(n,r,a,o,s){var l=n.getModel("dayLabel");if(l.get("show")){var c=n.coordinateSystem,u=l.get("position"),d=l.get("nameMap"),h=l.get("margin"),f=c.getFirstDayOfWeek();if(!d||vr(d)){d&&(r=QKe(d)||r);var p=r.get(["time","dayOfWeekShort"]);d=p||Rn(r.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var m=c.getNextNDay(a.end.time,7-a.lweek).time,g=[c.getCellWidth(),c.getCellHeight()];h=lr(h,Math.min(g[1],g[0])),u==="start"&&(m=c.getNextNDay(a.start.time,-(7+a.fweek)).time,h=-h);for(var v=0;v<7;v++){var A=c.getNextNDay(m,v),y=c.dataToRect([A.time],!1).center,S=v;S=Math.abs((v+f)%7);var x=new Jo({z2:30,style:An(yc(l,{text:d[S]}),this._weekTextPositionControl(y,o,u,h,g))});s.add(x)}}},e.type="calendar",e}(Au);const gvo=mvo;var M8e=864e5,vvo=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(e){e=qy(e);var n=e.getFullYear(),r=e.getMonth()+1,a=r<10?"0"+r:""+r,o=e.getDate(),s=o<10?"0"+o:""+o,l=e.getDay();return l=Math.abs((l+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:s,day:l,time:e.getTime(),formatedDate:n+"-"+a+"-"+s,date:e}},t.prototype.getNextNDay=function(e,n){return n=n||0,n===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+n),this.getDateInfo(e))},t.prototype.update=function(e,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.getCellSize().slice(),s=this._model.getBoxLayoutParams(),l=this._orient==="horizontal"?[r,7]:[7,r];Ie([0,1],function(h){d(o,h)&&(s[a[h]]=o[h]*l[h])});var c={width:n.getWidth(),height:n.getHeight()},u=this._rect=nf(s,c);Ie([0,1],function(h){d(o,h)||(o[h]=u[a[h]]/l[h])});function d(h,f){return h[f]!=null&&h[f]!=="auto"}this._sw=o[0],this._sh=o[1]},t.prototype.dataToPoint=function(e,n){Tn(e)&&(e=e[0]),n==null&&(n=!0);var r=this.getDateInfo(e),a=this._rangeInfo,o=r.formatedDate;if(n&&!(r.time>=a.start.time&&r.time<a.end.time+M8e))return[NaN,NaN];var s=r.day,l=this._getRangeInfo([a.start.time,o]).nthWeek;return this._orient==="vertical"?[this._rect.x+s*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]},t.prototype.pointToData=function(e){var n=this.pointToDate(e);return n&&n.time},t.prototype.dataToRect=function(e,n){var r=this.dataToPoint(e,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},t.prototype.pointToDate=function(e){var n=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,a):this._getDateByWeeksAndDay(n,r-1,a)},t.prototype.convertToPixel=function(e,n,r){var a=DOt(n);return a===this?a.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=DOt(n);return a===this?a.pointToData(r):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),n;if(Tn(e)&&e.length===1&&(e=e[0]),Tn(e))n=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),o=a.date;o.setMonth(o.getMonth()+1);var s=this.getNextNDay(o,-1);n=[a.formatedDate,s.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return e;var l=this._getRangeInfo(n);return l.start.time>l.end.time&&n.reverse(),n},t.prototype._getRangeInfo=function(e){var n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/M8e)-Math.floor(n[0].time/M8e)+1,o=new Date(n[0].time),s=o.getDate(),l=n[1].date.getDate();o.setDate(s+a-1);var c=o.getDate();if(c!==l)for(var u=o.getTime()-n[1].time>0?1:-1;(c=o.getDate())!==l&&(o.getTime()-n[1].time)*u>0;)a-=u,o.setDate(c-u);var d=Math.floor((a+n[0].day+6)/7),h=r?-d+1:d-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:d,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(e,n,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&n<a.fweek||e===a.weeks&&n>a.lweek)return null;var o=(e-1)*7-a.fweek+n,s=new Date(a.start.time);return s.setDate(+a.start.d+o),this.getDateInfo(s)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(a){var o=new t(a);r.push(o),a.coordinateSystem=o}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function DOt(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}const Avo=vvo;function yvo(t){t.registerComponentModel(pvo),t.registerComponentView(gvo),t.registerCoordinateSystem("calendar",Avo)}function bvo(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function $Ot(t,e){var n;return Ie(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function xvo(t,e,n){var r=An({},n),a=t[e],o=n.$action||"merge";o==="merge"?a?(Ra(a,r,!0),MP(a,r,{ignoreSize:!0}),B8n(n,a),She(n,a),She(n,a,"shape"),She(n,a,"style"),She(n,a,"extra"),n.clipPath=a.clipPath):t[e]=r:o==="replace"?t[e]=r:o==="remove"&&a&&(t[e]=null)}var njn=["transition","enterFrom","leaveTo"],Evo=njn.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function She(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?njn:Evo,a=0;a<r.length;a++){var o=r[a];t[o]==null&&e[o]!=null&&(t[o]=e[o])}}function Svo(t,e){if(t&&(t.hv=e.hv=[$Ot(e,["left","right"]),$Ot(e,["top","bottom"])],t.type==="group")){var n=t,r=e;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var wvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return e.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,r),this.option.elements=a},e.prototype.optionUpdated=function(n,r){var a=this.option,o=(r?a:n).elements,s=a.elements=r?[]:a.elements,l=[];this._flatten(o,l,null);var c=x6n(s,l,"normalMerge"),u=this._elOptionsToUpdate=[];Ie(c,function(d,h){var f=d.newOption;f&&(u.push(f),bvo(d,f),xvo(s,h,f),Svo(s[h],f))},this),a.elements=ll(s,function(d){return d&&delete d.$action,d!=null})},e.prototype._flatten=function(n,r,a){Ie(n,function(o){if(o){a&&(o.parentOption=a),r.push(o);var s=o.children;s&&s.length&&this._flatten(s,r,o),delete o.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e}(Fo),FOt={path:null,compoundPath:null,group:ta,image:fm,text:Jo},tx=ds(),_vo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._elMap=Ur()},e.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},e.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,o=this.group,s=n.get("z"),l=n.get("zlevel");Ie(r,function(c){var u=Lf(c.id,null),d=u!=null?a.get(u):null,h=Lf(c.parentId,null),f=h!=null?a.get(h):o,p=c.type,m=c.style;p==="text"&&m&&c.hv&&c.hv[1]&&(m.textVerticalAlign=m.textBaseline=m.verticalAlign=m.align=null);var g=c.textContent,v=c.textConfig;if(m&&LFn(m,p,!!v,!!g)){var A=BFn(m,p,!0);!v&&A.textConfig&&(v=c.textConfig=A.textConfig),!g&&A.textContent&&(g=A.textContent)}var y=Tvo(c),S=c.$action||"merge",x=S==="merge",w=S==="replace";if(x){var _=!d,C=d;_?C=jOt(u,f,c.type,a):(C&&(tx(C).isNew=!1),jFn(C)),C&&(uge(C,y,n,{isInit:_}),HOt(C,c,s,l))}else if(w){hge(d,c,a,n);var R=jOt(u,f,c.type,a);R&&(uge(R,y,n,{isInit:!0}),HOt(R,c,s,l))}else S==="remove"&&($Fn(d,c),hge(d,c,a,n));var k=a.get(u);if(k&&g)if(x){var P=k.getTextContent();P?P.attr(g):k.setTextContent(new Jo(g))}else w&&k.setTextContent(new Jo(g));if(k){var N=c.clipPath;if(N){var L=N.type,I=void 0,_=!1;if(x){var b=k.getClipPath();_=!b||tx(b).type!==L,I=_?jWe(L):b}else w&&(_=!0,I=jWe(L));k.setClipPath(I),uge(I,N,n,{isInit:_}),fye(I,N.keyframeAnimation,n)}var T=tx(k);k.setTextConfig(v),T.option=c,Cvo(k,n,c),OV({el:k,componentModel:n,itemName:k.name,itemTooltipOption:c.tooltip}),fye(k,c.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var a=n.option.elements,o=this.group,s=this._elMap,l=r.getWidth(),c=r.getHeight(),u=["x","y"],d=0;d<a.length;d++){var h=a[d],f=Lf(h.id,null),p=f!=null?s.get(f):null;if(!(!p||!p.isGroup)){var m=p.parent,g=m===o,v=tx(p),A=tx(m);v.width=lr(v.option.width,g?l:A.width)||0,v.height=lr(v.option.height,g?c:A.height)||0}}for(var d=a.length-1;d>=0;d--){var h=a[d],f=Lf(h.id,null),p=f!=null?s.get(f):null;if(p){var m=p.parent,A=tx(m),y=m===o?{width:l,height:c}:{width:A.width,height:A.height},S={},x=a2e(p,h,y,null,{hv:h.hv,boundingMode:h.bounding},S);if(!tx(p).isNew&&x){for(var w=h.transition,_={},C=0;C<u.length;C++){var R=u[C],k=S[R];w&&($D(w)||za(w,R)>=0)?_[R]=k:p[R]=k}vs(p,_,n,0)}else p.attr(S)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){hge(a,tx(a).option,r,n._lastGraphicModel)}),this._elMap=Ur()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Au);function jWe(t){var e=Dr(FOt,t)?FOt[t]:ZTe(t),n=new e({});return tx(n).type=t,n}function jOt(t,e,n,r){var a=jWe(n);return e.add(a),r.set(t,a),tx(a).id=t,tx(a).isNew=!0,a}function hge(t,e,n,r){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(o){hge(o,e,n,r)}),x2e(t,e,r),n.removeKey(tx(t).id))}function HOt(t,e,n,r){t.isGroup||Ie([["cursor",Xx.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var o=a[0];Dr(e,o)?t[o]=pa(e[o],a[1]):t[o]==null&&(t[o]=a[1])}),Ie(bo(e),function(a){if(a.indexOf("on")===0){var o=e[a];t[a]=ai(o)?o:null}}),Dr(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function Tvo(t){return t=An({},t),Ie(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(L8n),function(e){delete t[e]}),t}function Cvo(t,e,n){var r=ia(t).eventData;!t.silent&&!t.ignore&&!r&&(r=ia(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function kvo(t){t.registerComponentModel(wvo),t.registerComponentView(_vo),t.registerPreprocessor(function(e){var n=e.graphic;Tn(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var UOt=["x","y","radius","angle","single"],Rvo=["cartesian2d","polar","singleAxis"];function Mvo(t){var e=t.get("coordinateSystem");return za(Rvo,e)>=0}function n5(t){return t+"Axis"}function Nvo(t,e){var n=Ur(),r=[],a=Ur();t.eachComponent({mainType:"dataZoom",query:e},function(d){a.get(d.uid)||l(d)});var o;do o=!1,t.eachComponent("dataZoom",s);while(o);function s(d){!a.get(d.uid)&&c(d)&&(l(d),o=!0)}function l(d){a.set(d.uid,!0),r.push(d),u(d)}function c(d){var h=!1;return d.eachTargetAxis(function(f,p){var m=n.get(f);m&&m[p]&&(h=!0)}),h}function u(d){d.eachTargetAxis(function(h,f){(n.get(h)||n.set(h,[]))[f]=!0})}return r}function rjn(t){var e=t.ecModel,n={infoList:[],infoMap:Ur()};return t.eachTargetAxis(function(r,a){var o=e.getComponent(n5(r),a);if(o){var s=o.getCoordSysModel();if(s){var l=s.uid,c=n.infoMap.get(l);c||(c={model:s,axisModels:[]},n.infoList.push(c),n.infoMap.set(l,c)),c.axisModels.push(o)}}}),n}var N8e=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),Ivo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,a){var o=zOt(n);this.settledOption=o,this.mergeDefaultAndTheme(n,a),this._doInit(o)},e.prototype.mergeOption=function(n){var r=zOt(n);Ra(this.option,n,!0),Ra(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;Ie([["start","startValue"],["end","endValue"]],function(o,s){this._rangePropMode[s]==="value"&&(r[o[0]]=a[o[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Ur(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return Ie(UOt,function(a){var o=this.getReferringComponents(n5(a),OZa);if(o.specified){r=!0;var s=new N8e;Ie(o.models,function(l){s.add(l.componentIndex)}),n.set(a,s)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,o=!0;if(o){var s=r==="vertical"?"y":"x",l=a.findComponents({mainType:s+"Axis"});c(l,s)}if(o){var l=a.findComponents({mainType:"singleAxis",filter:function(d){return d.get("orient",!0)===r}});c(l,"single")}function c(u,d){var h=u[0];if(h){var f=new N8e;if(f.add(h.componentIndex),n.set(d,f),o=!1,d==="x"||d==="y"){var p=h.getReferringComponents("grid",Qh).models[0];p&&Ie(u,function(m){h.componentIndex!==m.componentIndex&&p===m.getReferringComponents("grid",Qh).models[0]&&f.add(m.componentIndex)})}}}o&&Ie(UOt,function(u){if(o){var d=a.findComponents({mainType:n5(u),filter:function(f){return f.get("type",!0)==="category"}});if(d[0]){var h=new N8e;h.add(d[0].componentIndex),n.set(u,h),o=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");Ie([["start","startValue"],["end","endValue"]],function(o,s){var l=n[o[0]]!=null,c=n[o[1]]!=null;l&&!c?r[s]="percent":!l&&c?r[s]="value":a?r[s]=a[s]:l&&(r[s]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(n5(r),a))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,o){Ie(a.indexList,function(s){n.call(r,o,s)})})},e.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(n5(n),r)},e.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;Ie([["start","startValue"],["end","endValue"]],function(o){(n[o[0]]!=null||n[o[1]]!=null)&&(r[o[0]]=a[o[0]]=n[o[0]],r[o[1]]=a[o[1]]=n[o[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;Ie(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),o=0;o<a.length;o++)for(var s=a[o],l=this._targetAxisInfoMap.get(s),c=0;c<l.indexList.length;c++){var u=this.getAxisProxy(s,l.indexList[c]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Fo);function zOt(t){var e={};return Ie(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}const Cre=Ivo;var Pvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(Cre);const Ovo=Pvo;var Lvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,o){this.dataZoomModel=n,this.ecModel=r,this.api=a},e.type="dataZoom",e}(Au);const rlt=Lvo;var Bvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(rlt);const Dvo=Bvo;var gF=Ie,GOt=Py,$vo=function(){function t(e,n,r,a){this._dimName=e,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(Mvo(n)){var r=n5(this._dimName),a=n.getReferringComponents(r,Qh).models[0];a&&this._axisIndex===a.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return ji(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],c=[],u;gF(["start","end"],function(f,p){var m=e[f],g=e[f+"Value"];o[p]==="percent"?(m==null&&(m=s[p]),g=a.parse(ol(m,s,n))):(u=!0,g=g==null?n[p]:a.parse(g),m=ol(g,n,s)),c[p]=g==null||isNaN(g)?n[p]:g,l[p]=m==null||isNaN(m)?s[p]:m}),GOt(c),GOt(l);var d=this._minMaxSpan;u?h(c,l,n,s,!1):h(l,c,s,n,!0);function h(f,p,m,g,v){var A=v?"Span":"ValueSpan";k9(0,f,m,"all",d["min"+A],d["max"+A]);for(var y=0;y<2;y++)p[y]=ol(f[y],m,g,!0),v&&(p[y]=a.parse(p[y]))}return{valueWindow:c,percentWindow:l}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=Fvo(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),o=e.get("filterMode"),s=this._valueWindow;if(o==="none")return;gF(a,function(c){var u=c.getData(),d=u.mapDimensionsAll(r);if(d.length){if(o==="weakFilter"){var h=u.getStore(),f=Rn(d,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var m,g,v,A=0;A<d.length;A++){var y=h.get(f[A],p),S=!isNaN(y),x=y<s[0],w=y>s[1];if(S&&!x&&!w)return!0;S&&(v=!0),x&&(m=!0),w&&(g=!0)}return v&&m&&g})}else gF(d,function(p){if(o==="empty")c.setData(u=u.map(p,function(g){return l(g)?g:NaN}));else{var m={};m[p]=s,u.selectRange(m)}});gF(d,function(p){u.setApproximateExtent(s,p)})}});function l(c){return c>=s[0]&&c<=s[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;gF(["min","max"],function(a){var o=n.get(a+"Span"),s=n.get(a+"ValueSpan");s!=null&&(s=this.getAxisModel().axis.scale.parse(s)),s!=null?o=ol(r[0]+s,r,[0,100],!0):o!=null&&(s=ol(o,[0,100],r,!0)-r[0]),e[a+"Span"]=o,e[a+"ValueSpan"]=s},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=aot(r,[0,500]);a=Math.min(a,20);var o=e.axis.scale.rawExtentInfo;n[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(a)),o.freeze()}},t}();function Fvo(t,e,n){var r=[1/0,-1/0];gF(n,function(s){Wio(r,s.getData(),e)});var a=t.getAxisModel(),o=y$n(a.axis.scale,a,r).calculate();return[o.min,o.max]}const jvo=$vo;var Hvo={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(s,l){var c=t.getComponent(n5(s),l);a(s,l,c,o)})})}e(function(a,o,s,l){s.__dzAxisProxy=null});var n=[];e(function(a,o,s,l){s.__dzAxisProxy||(s.__dzAxisProxy=new jvo(a,o,l,t),n.push(s.__dzAxisProxy))});var r=Ur();return Ie(n,function(a){Ie(a.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),o=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};const Uvo=Hvo;function zvo(t){t.registerAction("dataZoom",function(e,n){var r=Nvo(n,e);Ie(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var VOt=!1;function ilt(t){VOt||(VOt=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Uvo),zvo(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Gvo(t){t.registerComponentModel(Ovo),t.registerComponentView(Dvo),ilt(t)}var dx=function(){function t(){}return t}(),ijn={};function vF(t,e){ijn[t]=e}function ajn(t){return ijn[t]}var Vvo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;Ie(this.option.feature,function(r,a){var o=ajn(a);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(n)),Ra(r,o.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Fo);const Kvo=Vvo;function Wvo(t,e,n){var r=e.getBoxLayoutParams(),a=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},s=nf(r,o,a);OD(e.get("orient"),t,e.get("itemGap"),s.width,s.height),a2e(t,r,o,a)}function ojn(t,e){var n=w9(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Zo({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var Qvo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a,o){var s=this.group;if(s.removeAll(),!n.get("show"))return;var l=+n.get("itemSize"),c=n.get("orient")==="vertical",u=n.get("feature")||{},d=this._features||(this._features={}),h=[];Ie(u,function(m,g){h.push(g)}),new PM(this._featureNames||[],h).add(f).update(f).remove(fa(f,null)).execute(),this._featureNames=h;function f(m,g){var v=h[m],A=h[g],y=u[v],S=new Kl(y,n,n.ecModel),x;if(o&&o.newTitle!=null&&o.featureName===v&&(y.title=o.newTitle),v&&!A){if(qvo(v))x={onclick:S.option.onclick,featureName:v};else{var w=ajn(v);if(!w)return;x=new w}d[v]=x}else if(x=d[A],!x)return;x.uid=BV("toolbox-feature"),x.model=S,x.ecModel=r,x.api=a;var _=x instanceof dx;if(!v&&A){_&&x.dispose&&x.dispose(r,a);return}if(!S.get("show")||_&&x.unusable){_&&x.remove&&x.remove(r,a);return}p(S,x,v),S.setIconStatus=function(C,R){var k=this.option,P=this.iconPaths;k.iconStatus=k.iconStatus||{},k.iconStatus[C]=R,P[C]&&(R==="emphasis"?NM:IM)(P[C])},x instanceof dx&&x.render&&x.render(S,r,a,o)}function p(m,g,v){var A=m.getModel("iconStyle"),y=m.getModel(["emphasis","iconStyle"]),S=g instanceof dx&&g.getIcons?g.getIcons():m.get("icon"),x=m.get("title")||{},w,_;vr(S)?(w={},w[v]=S):w=S,vr(x)?(_={},_[v]=x):_=x;var C=m.iconPaths={};Ie(w,function(R,k){var P=PV(R,{},{x:-l/2,y:-l/2,width:l,height:l});P.setStyle(A.getItemStyle());var N=P.ensureState("emphasis");N.style=y.getItemStyle();var L=new Jo({style:{text:_[k],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:_ot({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},r)},ignore:!0});P.setTextContent(L),OV({el:P,componentModel:n,itemName:k,formatterParamsExtra:{title:_[k]}}),P.__title=_[k],P.on("mouseover",function(){var I=y.getItemStyle(),b=c?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),P.setTextConfig({position:y.get("textPosition")||b}),L.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",k])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(m.get(["iconStatus",k])==="emphasis"?NM:IM)(P),s.add(P),P.on("click",Cr(g.onclick,g,r,a,k)),C[k]=P})}Wvo(s,n,a),s.add(ojn(s.getBoundingRect(),n)),c||s.eachChild(function(m){var g=m.__title,v=m.ensureState("emphasis"),A=v.textConfig||(v.textConfig={}),y=m.getTextContent(),S=y&&y.ensureState("emphasis");if(S&&!ai(S)&&g){var x=S.style||(S.style={}),w=tse(g,Jo.makeFont(x)),_=m.x+s.x,C=m.y+s.y+l,R=!1;C+w.height>a.getHeight()&&(A.position="top",R=!0);var k=R?-5-w.height:l+10;_+w.width/2>a.getWidth()?(A.position=["100%",k],x.align="right"):_-w.width/2<0&&(A.position=[0,k],x.align="left")}})},e.prototype.updateView=function(n,r,a,o){Ie(this._features,function(s){s instanceof dx&&s.updateView&&s.updateView(s.model,r,a,o)})},e.prototype.remove=function(n,r){Ie(this._features,function(a){a instanceof dx&&a.remove&&a.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){Ie(this._features,function(a){a instanceof dx&&a.dispose&&a.dispose(n,r)})},e.type="toolbox",e}(Au);function qvo(t){return t.indexOf("my")===0}const Yvo=Qvo;var Jvo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var a=this.model,o=a.get("name")||n.get("title.0.text")||"echarts",s=r.getZr().painter.getType()==="svg",l=s?"svg":a.get("type",!0)||"png",c=r.getConnectedDataURL({type:l,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ls.browser;if(ai(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var d=document.createElement("a");d.download=o+"."+l,d.target="_blank",d.href=c;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||s){var f=c.split(","),p=f[0].indexOf("base64")>-1,m=s?decodeURIComponent(f[1]):f[1];p&&(m=window.atob(m));var g=o+"."+l;if(window.navigator.msSaveOrOpenBlob){for(var v=m.length,A=new Uint8Array(v);v--;)A[v]=m.charCodeAt(v);var y=new Blob([A]);window.navigator.msSaveOrOpenBlob(y,g)}else{var S=document.createElement("iframe");document.body.appendChild(S);var x=S.contentWindow,w=x.document;w.open("image/svg+xml","replace"),w.write(m),w.close(),x.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(S)}}else{var _=a.get("lang"),C='<body style="margin:0;"><img src="'+c+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',R=window.open();R.document.write(C),R.document.title=o}},e.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(dx);const Zvo=Jvo;var KOt="__ec_magicType_stack__",Xvo=[["line","bar"],["stack"]],e0o=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return Ie(n.get("type"),function(o){r[o]&&(a[o]=r[o])}),a},e.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(n,r,a){var o=this.model,s=o.get(["seriesIndex",a]);if(WOt[a]){var l={series:[]},c=function(h){var f=h.subType,p=h.id,m=WOt[a](f,p,h,o);m&&(bi(m,h.option),l.series.push(m));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var v=g.getAxesByScale("ordinal")[0];if(v){var A=v.dim,y=A+"Axis",S=h.getReferringComponents(y,Qh).models[0],x=S.componentIndex;l[y]=l[y]||[];for(var w=0;w<=x;w++)l[y][x]=l[y][x]||{};l[y][x].boundaryGap=a==="bar"}}};Ie(Xvo,function(h){za(h,a)>=0&&Ie(h,function(f){o.setIconStatus(f,"normal")})}),o.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},c);var u,d=a;a==="stack"&&(u=Ra({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",a])!=="emphasis"&&(d="tiled")),r.dispatchAction({type:"changeMagicType",currentType:d,newOption:l,newTitle:u,featureName:"magicType"})}},e}(dx),WOt={line:function(t,e,n,r){if(t==="bar")return Ra({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if(t==="line")return Ra({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var a=n.get("stack")===KOt;if(t==="line"||t==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Ra({id:e,stack:a?"":KOt},r.get(["option","stack"])||{},!0)}};Zw({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const t0o=e0o;var E2e=new Array(60).join("-"),hz="	";function n0o(t){var e={},n=[],r=[];return t.eachRawSeries(function(a){var o=a.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var s=o.getBaseAxis();if(s.type==="category"){var l=s.dim+"_"+s.index;e[l]||(e[l]={categoryAxis:s,valueAxis:o.getOtherAxis(s),series:[]},r.push({axisDim:s.dim,axisIndex:s.index})),e[l].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function r0o(t){var e=[];return Ie(t,function(n,r){var a=n.categoryAxis,o=n.valueAxis,s=o.dim,l=[" "].concat(Rn(n.series,function(p){return p.name})),c=[a.model.getCategories()];Ie(n.series,function(p){var m=p.getRawData();c.push(p.getRawData().mapArray(m.mapDimension(s),function(g){return g}))});for(var u=[l.join(hz)],d=0;d<c[0].length;d++){for(var h=[],f=0;f<c.length;f++)h.push(c[f][d]);u.push(h.join(hz))}e.push(u.join(`
`))}),e.join(`

`+E2e+`

`)}function i0o(t){return Rn(t,function(e){var n=e.getRawData(),r=[e.name],a=[];return n.each(n.dimensions,function(){for(var o=arguments.length,s=arguments[o-1],l=n.getName(s),c=0;c<o-1;c++)a[c]=arguments[c];r.push((l?l+hz:"")+a.join(hz))}),r.join(`
`)}).join(`

`+E2e+`

`)}function a0o(t){var e=n0o(t);return{value:ll([r0o(e.seriesGroupByCategoryAxis),i0o(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`

`+E2e+`

`),meta:e.meta}}function gye(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o0o(t){var e=t.slice(0,t.indexOf(`
`));if(e.indexOf(hz)>=0)return!0}var HWe=new RegExp("["+hz+"]+","g");function s0o(t){for(var e=t.split(/\n+/g),n=gye(e.shift()).split(HWe),r=[],a=Rn(n,function(c){return{name:c,data:[]}}),o=0;o<e.length;o++){var s=gye(e[o]).split(HWe);r.push(s.shift());for(var l=0;l<s.length;l++)a[l]&&(a[l].data[o]=s[l])}return{series:a,categories:r}}function l0o(t){for(var e=t.split(/\n+/g),n=gye(e.shift()),r=[],a=0;a<e.length;a++){var o=gye(e[a]);if(o){var s=o.split(HWe),l="",c=void 0,u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),r[a]={name:l,value:[]},c=r[a].value):c=r[a]=[];for(var d=0;d<s.length;d++)c.push(+s[d]);c.length===1&&(u?r[a].value=c[0]:r[a]=c[0])}}return{name:n,data:r}}function c0o(t,e){var n=t.split(new RegExp(`
*`+E2e+`
*`,"g")),r={series:[]};return Ie(n,function(a,o){if(o0o(a)){var s=s0o(a),l=e[o],c=l.axisDim+"Axis";l&&(r[c]=r[c]||[],r[c][l.axisIndex]={data:s.categories},r.series=r.series.concat(s.series))}else{var s=l0o(a);r.series.push(s)}}),r}var u0o=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),o=this.model;this._dom&&a.removeChild(this._dom);var s=document.createElement("div");s.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",s.style.backgroundColor=o.get("backgroundColor")||"#fff";var l=document.createElement("h4"),c=o.get("lang")||[];l.innerHTML=c[0]||o.get("title"),l.style.cssText="margin:10px 20px",l.style.color=o.get("textColor");var u=document.createElement("div"),d=document.createElement("textarea");u.style.cssText="overflow:auto";var h=o.get("optionToContent"),f=o.get("contentToOption"),p=a0o(n);if(ai(h)){var m=h(r.getOption());vr(m)?u.innerHTML=m:X6(m)&&u.appendChild(m)}else{d.readOnly=o.get("readOnly");var g=d.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=o.get("textColor"),g.borderColor=o.get("textareaBorderColor"),g.backgroundColor=o.get("textareaColor"),d.value=p.value,u.appendChild(d)}var v=p.meta,A=document.createElement("div");A.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),x=document.createElement("div");y+=";background-color:"+o.get("buttonColor"),y+=";color:"+o.get("buttonTextColor");var w=this;function _(){a.removeChild(s),w._dom=null}AKe(S,"click",_),AKe(x,"click",function(){if(f==null&&h!=null||f!=null&&h==null){_();return}var C;try{ai(f)?C=f(u,r.getOption()):C=c0o(d.value,v)}catch(R){throw _(),new Error("Data view format error "+R)}C&&r.dispatchAction({type:"changeDataView",newOption:C}),_()}),S.innerHTML=c[1],x.innerHTML=c[2],x.style.cssText=S.style.cssText=y,!o.get("readOnly")&&A.appendChild(x),A.appendChild(S),s.appendChild(l),s.appendChild(u),s.appendChild(A),u.style.height=a.clientHeight-80+"px",a.appendChild(s),this._dom=s},e.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(dx);function d0o(t,e){return Rn(t,function(n,r){var a=e&&e[r];if(Ci(a)&&!Tn(a)){var o=Ci(n)&&!Tn(n);o||(n={value:n});var s=a.name!=null&&n.name==null;return n=bi(n,a),s&&delete n.name,n}else return n})}Zw({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];Ie(t.newOption.series,function(r){var a=e.getSeriesByName(r.name)[0];if(!a)n.push(An({type:"scatter"},r));else{var o=a.get("data");n.push({name:r.name,data:d0o(r.data,o)})}}),e.mergeOption(bi({series:n},t.newOption))});const h0o=u0o;var sjn=Ie,ljn=ds();function f0o(t,e){var n=alt(t);sjn(e,function(r,a){for(var o=n.length-1;o>=0;o--){var s=n[o];if(s[a])break}if(o<0){var l=t.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(l){var c=l.getPercentRange();n[0][a]={dataZoomId:a,start:c[0],end:c[1]}}}}),n.push(e)}function p0o(t){var e=alt(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return sjn(n,function(a,o){for(var s=e.length-1;s>=0;s--)if(a=e[s][o],a){r[o]=a;break}}),r}function m0o(t){ljn(t).snapshots=null}function g0o(t){return alt(t).length}function alt(t){var e=ljn(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var v0o=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){m0o(n),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(dx);Zw({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const A0o=v0o;var y0o=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],b0o=function(){function t(e,n,r){var a=this;this._targetInfoList=[];var o=QOt(n,e);Ie(x0o,function(s,l){(!r||!r.include||za(r.include,l)>=0)&&s(o,a._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,a,o){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var s=I8e[r.brushType](0,o,a);r.__rangeOffset={offset:ZOt[r.brushType](s.values,r.range,[1,1]),xyMinMax:s.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){Ie(e,function(a){var o=this.findTargetInfo(a,n);o&&o!==!0&&Ie(o.coordSyses,function(s){var l=I8e[a.brushType](1,s,a.range,!0);r(a,l.values,s,n)})},this)},t.prototype.setInputRanges=function(e,n){Ie(e,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var o=I8e[r.brushType](0,a.coordSys,r.coordRange),s=r.__rangeOffset;r.range=s?ZOt[r.brushType](o.values,s.offset,E0o(o.xyMinMax,s.xyMinMax)):o.values}},this)},t.prototype.makePanelOpts=function(e,n){return Rn(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:mFn(a),isTargetByCursor:vFn(a,e,r.coordSysModel),getLinearBrushOtherExtent:gFn(a)}})},t.prototype.controlSeries=function(e,n,r){var a=this.findTargetInfo(e,r);return a===!0||a&&za(a.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,a=QOt(n,e),o=0;o<r.length;o++){var s=r[o],l=e.panelId;if(l){if(s.panelId===l)return s}else for(var c=0;c<qOt.length;c++)if(qOt[c](a,s))return s}return!0},t}();function UWe(t){return t[0]>t[1]&&t.reverse(),t}function QOt(t,e){return Aee(t,e,{includeMainTypes:y0o})}var x0o={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,a=t.gridModels,o=Ur(),s={},l={};!n&&!r&&!a||(Ie(n,function(c){var u=c.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),Ie(r,function(c){var u=c.axis.grid.model;o.set(u.id,u),l[u.id]=!0}),Ie(a,function(c){o.set(c.id,c),s[c.id]=!0,l[c.id]=!0}),o.each(function(c){var u=c.coordinateSystem,d=[];Ie(u.getCartesians(),function(h,f){(za(n,h.getAxis("x").model)>=0||za(r,h.getAxis("y").model)>=0)&&d.push(h)}),e.push({panelId:"grid--"+c.id,gridModel:c,coordSysModel:c,coordSys:d[0],coordSyses:d,getPanelRect:YOt.grid,xAxisDeclared:s[c.id],yAxisDeclared:l[c.id]})}))},geo:function(t,e){Ie(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:YOt.geo})})}},qOt=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,a=t.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],YOt={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(P5(t)),e}},I8e={lineX:fa(JOt,0),lineY:fa(JOt,1),rect:function(t,e,n,r){var a=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),s=[UWe([a[0],o[0]]),UWe([a[1],o[1]])];return{values:s,xyMinMax:s}},polygon:function(t,e,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],o=Rn(n,function(s){var l=t?e.pointToData(s,r):e.dataToPoint(s,r);return a[0][0]=Math.min(a[0][0],l[0]),a[1][0]=Math.min(a[1][0],l[1]),a[0][1]=Math.max(a[0][1],l[0]),a[1][1]=Math.max(a[1][1],l[1]),l});return{values:o,xyMinMax:a}}};function JOt(t,e,n,r){var a=n.getAxis(["x","y"][t]),o=UWe(Rn([0,1],function(l){return e?a.coordToData(a.toLocalCoord(r[l]),!0):a.toGlobalCoord(a.dataToCoord(r[l]))})),s=[];return s[t]=o,s[1-t]=[NaN,NaN],{values:o,xyMinMax:s}}var ZOt={lineX:fa(XOt,0),lineY:fa(XOt,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Rn(t,function(r,a){return[r[0]-n[0]*e[a][0],r[1]-n[1]*e[a][1]]})}};function XOt(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function E0o(t,e){var n=e4t(t),r=e4t(e),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function e4t(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const olt=b0o;var zWe=Ie,S0o=RZa("toolbox-dataZoom_"),w0o=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a,o){this._brushController||(this._brushController=new jst(a.getZr()),this._brushController.on("brush",Cr(this._onBrush,this)).mount()),C0o(n,r,this,o,a),T0o(n,r)},e.prototype.onclick=function(n,r,a){_0o[a].call(this)},e.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},o=this.ecModel;this._brushController.updateCovers([]);var s=new olt(slt(this.model),o,{include:["grid"]});s.matchOutputRanges(r,o,function(u,d,h){if(h.type==="cartesian2d"){var f=u.brushType;f==="rect"?(l("x",h,d[0]),l("y",h,d[1])):l({lineX:"x",lineY:"y"}[f],h,d)}}),f0o(o,a),this._dispatchZoomAction(a);function l(u,d,h){var f=d.getAxis(u),p=f.model,m=c(u,p,o),g=m.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=k9(0,h.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),m&&(a[m.id]={dataZoomId:m.id,startValue:h[0],endValue:h[1]})}function c(u,d,h){var f;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var m=p.getAxisModel(u,d.componentIndex);m&&(f=p)}),f}},e.prototype._dispatchZoomAction=function(n){var r=[];zWe(n,function(a,o){r.push(ji(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(dx),_0o={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(p0o(this.ecModel))}};function slt(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function T0o(t,e){t.setIconStatus("back",g0o(e)>1?"emphasis":"normal")}function C0o(t,e,n,r,a){var o=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var s=new olt(slt(t),e,{include:["grid"]}),l=s.makePanelOpts(a,function(c){return c.xAxisDeclared&&!c.yAxisDeclared?"lineX":!c.xAxisDeclared&&c.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(l).enableBrush(o&&l.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}sto("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!e||e.get(n)==null)return;var r=e.getModel(n),a=[],o=slt(r),s=Aee(t,o);zWe(s.xAxisModels,function(c){return l(c,"xAxis","xAxisIndex")}),zWe(s.yAxisModels,function(c){return l(c,"yAxis","yAxisIndex")});function l(c,u,d){var h=c.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:S0o+u+h};f[d]=h,a.push(f)}return a});const k0o=w0o;function R0o(t){t.registerComponentModel(Kvo),t.registerComponentView(Yvo),vF("saveAsImage",Zvo),vF("magicType",t0o),vF("dataView",h0o),vF("dataZoom",k0o),vF("restore",A0o),qa(Gvo)}var M0o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Fo);const N0o=M0o;function cjn(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function ujn(t){if(ls.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var djn=ujn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),I0o=ujn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function hjn(t,e){if(!t)return e;e=Pot(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function P0o(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var O0o=hjn(I0o,"transition"),llt=hjn(djn,"transform"),L0o="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ls.transform3dSupported?"will-change:transform;":"");function B0o(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function D0o(t,e,n){if(!vr(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=i8(e);var o=B0o(n),s=Math.max(Math.round(a)*1.5,6),l="",c=llt+":",u;za(["left","right"],o)>-1?(l+="top:50%",c+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var d=u*Math.PI/180,h=s+a,f=h*Math.abs(Math.cos(d))+h*Math.abs(Math.sin(d)),p=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-h)/2)*100)/100;l+=";"+o+":-"+p+"px";var m=e+" solid "+a+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+m,"border-right:"+m,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function $0o(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,a="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,a+=ls.transformSupported?","+llt+r:",left"+r+",top"+r),O0o+":"+a}function t4t(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ls.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var o=ls.transform3dSupported,s="translate"+(o?"3d":"")+"("+r+","+a+(o?",0":"")+")";return n?"top:0;left:0;"+llt+":"+s+";":[["top",0],["left",0],[djn,s]]}function F0o(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),Ie(["decoration","align"],function(c){var u=t.get(c);u&&e.push("text-"+c+":"+u)}),e.join(";")}function j0o(t,e,n){var r=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),c=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),d=t.getModel("textStyle"),h=m9n(t,"html"),f=c+"px "+u+"px "+s+"px "+l;return r.push("box-shadow:"+f),e&&a&&r.push($0o(a,n)),o&&r.push("background-color:"+o),Ie(["width","color","radius"],function(p){var m="border-"+p,g=Pot(m),v=t.get(g);v!=null&&r.push(m+":"+v+(p==="color"?"":"px"))}),r.push(F0o(d)),h!=null&&r.push("padding:"+w9(h).join("px ")+"px"),r.join(";")+";"}function n4t(t,e,n,r,a){var o=e&&e.painter;if(n){var s=o&&o.getViewportRoot();s&&WYa(t,s,n,r,a)}else{t[0]=r,t[1]=a;var l=o&&o.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var H0o=function(){function t(e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ls.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=e.getZr(),o=n.appendTo,s=o&&(vr(o)?document.querySelector(o):X6(o)?o:ai(o)&&o(e.getDom()));n4t(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),(s||e.getDom()).appendChild(r),this._api=e,this._container=s;var l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(c){if(c=c||window.event,!l._enterable){var u=a.handler,d=a.painter.getViewportRoot();Jb(d,c,!0),u.dispatch("mousemove",c)}},r.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var n=this._api.getDom(),r=P0o(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,o=this._styleCoord;r.innerHTML?a.cssText=L0o+j0o(e,!this._firstShow,this._longHide)+t4t(o[0],o[1],!0)+("border-color:"+i8(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,a,o){var s=this.el;if(e==null){s.innerHTML="";return}var l="";if(vr(o)&&r.get("trigger")==="item"&&!cjn(r)&&(l=D0o(r,a,o)),vr(e))s.innerHTML=e+l;else if(e){s.innerHTML="",Tn(e)||(e=[e]);for(var c=0;c<e.length;c++)X6(e[c])&&e[c].parentNode!==s&&s.appendChild(e[c]);if(l&&s.childNodes.length){var u=document.createElement("div");u.innerHTML=l,s.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,n){var r=this._styleCoord;if(n4t(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,o=t4t(r[0],r[1]);Ie(o,function(s){a[s[0]]=s[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",ls.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Cr(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}();const U0o=H0o;var z0o=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),i4t(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,a,o){var s=this;Ci(e)&&Zs(""),this.el&&this._zr.remove(this.el);var l=r.getModel("textStyle");this.el=new Jo({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:l.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:m9n(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),Ie(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){s.el.style[u]=r.get(u)}),Ie(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){s.el.style[u]=l.get(u)||0}),this._zr.add(this.el);var c=this;this.el.on("mouseover",function(){c._enterable&&(clearTimeout(c._hideTimeout),c._show=!0),c._inContent=!0}),this.el.on("mouseout",function(){c._enterable&&c._show&&c.hideLater(c._hideDelay),c._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=r4t(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var a=this._styleCoord;i4t(a,this._zr,e,n),e=a[0],n=a[1];var o=r.style,s=qI(o.borderWidth||0),l=r4t(o);r.x=e+s+l.left,r.y=n+s+l.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Cr(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function qI(t){return Math.max(0,t)}function r4t(t){var e=qI(t.shadowBlur||0),n=qI(t.shadowOffsetX||0),r=qI(t.shadowOffsetY||0);return{left:qI(e-n),right:qI(e+n),top:qI(e-r),bottom:qI(e+r)}}function i4t(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const G0o=z0o;var V0o=new Zo({shape:{x:-1,y:-1,width:2,height:2}}),K0o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(ls.node||!r.getDom())){var a=n.getComponent("tooltip"),o=this._renderMode=BZa(a.get("renderMode"));this._tooltipContent=o==="richText"?new G0o(r):new U0o(r,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(n,r,a){if(!(ls.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?UV(this,"_updatePosition",50,"fixRate"):mre(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");qFn("itemTooltip",this._api,Cr(function(a,o,s){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(o,s):a==="leave"&&this._hide(s))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&s.manuallyShowTip(n,r,a,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,a,o){if(!(o.from===this.uid||ls.node||!a.getDom())){var s=a4t(o,a);this._ticket="";var l=o.dataByCoordSys,c=Y0o(o,r,a);if(c){var u=c.el.getBoundingRect().clone();u.applyTransform(c.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:c.el,position:o.position,positionDefault:"bottom"},s)}else if(o.tooltip&&o.x!=null&&o.y!=null){var d=V0o;d.x=o.x,d.y=o.y,d.update(),ia(d).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:d},s)}else if(l)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:l,tooltipOption:o.tooltipOption},s);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,o))return;var h=YFn(o,r),f=h.point[0],p=h.point[1];f!=null&&p!=null&&this._tryShow({offsetX:f,offsetY:p,target:h.el,position:o.position,positionDefault:"bottom"},s)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},s))}},e.prototype.manuallyHideTip=function(n,r,a,o){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(a4t(o,a))},e.prototype._manuallyAxisShowTip=function(n,r,a,o){var s=o.seriesIndex,l=o.dataIndex,c=r.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||c==null)){var u=r.getSeriesByIndex(s);if(u){var d=u.getData(),h=Xq([d.getItemModel(l),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:o.position}),!0}}},e.prototype._tryShow=function(n,r){var a=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var s=n.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,n);else if(a){var l=ia(a);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,u;tD(a,function(d){if(ia(d).dataIndex!=null)return c=d,!0;if(ia(d).tooltipConfig!=null)return u=d,!0},!0),c?this._showSeriesItemTooltip(n,c,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Cr(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,o=this._tooltipModel,s=[r.offsetX,r.offsetY],l=Xq([r.tooltipOption],o),c=this._renderMode,u=[],d=kp("section",{blocks:[],noHeader:!0}),h=[],f=new g6e;Ie(n,function(y){Ie(y.dataByAxis,function(S){var x=a.getComponent(S.axisDim+"Axis",S.axisIndex),w=S.value;if(!(!x||w==null)){var _=KFn(w,x.axis,a,S.seriesDataIndices,S.valueLabelOpt),C=kp("section",{header:_,noHeader:!_x(_),sortBlocks:!0,blocks:[]});d.blocks.push(C),Ie(S.seriesDataIndices,function(R){var k=a.getSeriesByIndex(R.seriesIndex),P=R.dataIndexInside,N=k.getDataParams(P);if(!(N.dataIndex<0)){N.axisDim=S.axisDim,N.axisIndex=S.axisIndex,N.axisType=S.axisType,N.axisId=S.axisId,N.axisValue=cst(x.axis,{value:w}),N.axisValueLabel=_,N.marker=f.makeTooltipMarker("item",i8(N.color),c);var L=GIt(k.formatTooltip(P,!0,null)),I=L.frag;if(I){var b=Xq([k],o).get("valueFormatter");C.blocks.push(b?An({valueFormatter:b},I):I)}L.text&&h.push(L.text),u.push(N)}})}})}),d.blocks.reverse(),h.reverse();var p=r.position,m=l.get("order"),g=YIt(d,f,c,m,a.get("useUTC"),l.get("textStyle"));g&&h.unshift(g);var v=c==="richText"?`

`:"<br/>",A=h.join(v);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(l,p,s[0],s[1],this._tooltipContent,u):this._showTooltipContent(l,A,u,Math.random()+"",s[0],s[1],p,null,f)})},e.prototype._showSeriesItemTooltip=function(n,r,a){var o=this._ecModel,s=ia(r),l=s.seriesIndex,c=o.getSeriesByIndex(l),u=s.dataModel||c,d=s.dataIndex,h=s.dataType,f=u.getData(h),p=this._renderMode,m=n.positionDefault,g=Xq([f.getItemModel(d),u,c&&(c.coordinateSystem||{}).model],this._tooltipModel,m?{position:m}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var A=u.getDataParams(d,h),y=new g6e;A.marker=y.makeTooltipMarker("item",i8(A.color),p);var S=GIt(u.formatTooltip(d,!1,h)),x=g.get("order"),w=g.get("valueFormatter"),_=S.frag,C=_?YIt(w?An({valueFormatter:w},_):_,y,p,x,o.get("useUTC"),g.get("textStyle")):S.text,R="item_"+u.name+"_"+d;this._showOrMove(g,function(){this._showTooltipContent(g,C,A,R,n.offsetX,n.offsetY,n.position,n.target,y)}),a({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:l,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,a){var o=ia(r),s=o.tooltipConfig,l=s.option||{};if(vr(l)){var c=l;l={content:c,formatter:c}}var u=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&u.push(d),u.push({formatter:l.content});var h=n.positionDefault,f=Xq(u,this._tooltipModel,h?{position:h}:null),p=f.get("content"),m=Math.random()+"",g=new g6e;this._showOrMove(f,function(){var v=ji(f.get("formatterParams")||{});this._showTooltipContent(f,p,v,m,n.offsetX,n.offsetY,n.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,o,s,l,c,u,d){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var h=this._tooltipContent;h.setEnterable(n.get("enterable"));var f=n.get("formatter");c=c||n.get("position");var p=r,m=this._getNearestPoint([s,l],a,n.get("trigger"),n.get("borderColor")),g=m.color;if(f)if(vr(f)){var v=n.ecModel.get("useUTC"),A=Tn(a)?a[0]:a,y=A&&A.axisType&&A.axisType.indexOf("time")>=0;p=f,y&&(p=lse(A.axisValue,p,v)),p=Oot(p,a,!0)}else if(ai(f)){var S=Cr(function(x,w){x===this._ticket&&(h.setContent(w,d,n,g,c),this._updatePosition(n,c,s,l,h,a,u))},this);this._ticket=o,p=f(a,o,S)}else p=f;h.setContent(p,d,n,g,c),h.show(n,g),this._updatePosition(n,c,s,l,h,a,u)}},e.prototype._getNearestPoint=function(n,r,a,o){if(a==="axis"||Tn(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!Tn(r))return{color:o||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,o,s,l,c){var u=this._api.getWidth(),d=this._api.getHeight();r=r||n.get("position");var h=s.getSize(),f=n.get("align"),p=n.get("verticalAlign"),m=c&&c.getBoundingRect().clone();if(c&&m.applyTransform(c.transform),ai(r)&&(r=r([a,o],l,s.el,m,{viewSize:[u,d],contentSize:h.slice()})),Tn(r))a=lr(r[0],u),o=lr(r[1],d);else if(Ci(r)){var g=r;g.width=h[0],g.height=h[1];var v=nf(g,{width:u,height:d});a=v.x,o=v.y,f=null,p=null}else if(vr(r)&&c){var A=q0o(r,m,h,n.get("borderWidth"));a=A[0],o=A[1]}else{var A=W0o(a,o,s,u,d,f?null:20,p?null:20);a=A[0],o=A[1]}if(f&&(a-=o4t(f)?h[0]/2:f==="right"?h[0]:0),p&&(o-=o4t(p)?h[1]/2:p==="bottom"?h[1]:0),cjn(n)){var A=Q0o(a,o,s,u,d);a=A[0],o=A[1]}s.moveTo(a,o)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,o=this._cbParamsList,s=!!a&&a.length===n.length;return s&&Ie(a,function(l,c){var u=l.dataByAxis||[],d=n[c]||{},h=d.dataByAxis||[];s=s&&u.length===h.length,s&&Ie(u,function(f,p){var m=h[p]||{},g=f.seriesDataIndices||[],v=m.seriesDataIndices||[];s=s&&f.value===m.value&&f.axisType===m.axisType&&f.axisId===m.axisId&&g.length===v.length,s&&Ie(g,function(A,y){var S=v[y];s=s&&A.seriesIndex===S.seriesIndex&&A.dataIndex===S.dataIndex}),o&&Ie(f.seriesDataIndices,function(A){var y=A.seriesIndex,S=r[y],x=o[y];S&&x&&x.data!==S.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){ls.node||!r.getDom()||(mre(this,"_updatePosition"),this._tooltipContent.dispose(),$We("itemTooltip",r))},e.type="tooltip",e}(Au);function Xq(t,e,n){var r=e.ecModel,a;n?(a=new Kl(n,r,r),a=new Kl(e.option,a,r)):a=e;for(var o=t.length-1;o>=0;o--){var s=t[o];s&&(s instanceof Kl&&(s=s.get("tooltip",!0)),vr(s)&&(s={formatter:s}),s&&(a=new Kl(s,a,r)))}return a}function a4t(t,e){return t.dispatchAction||Cr(e.dispatchAction,e)}function W0o(t,e,n,r,a,o,s){var l=n.getSize(),c=l[0],u=l[1];return o!=null&&(t+c+o+2>r?t-=c+o:t+=o),s!=null&&(e+u+s>a?e-=u+s:e+=s),[t,e]}function Q0o(t,e,n,r,a){var o=n.getSize(),s=o[0],l=o[1];return t=Math.min(t+s,r)-s,e=Math.min(e+l,a)-l,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function q0o(t,e,n,r){var a=n[0],o=n[1],s=Math.ceil(Math.SQRT2*r)+8,l=0,c=0,u=e.width,d=e.height;switch(t){case"inside":l=e.x+u/2-a/2,c=e.y+d/2-o/2;break;case"top":l=e.x+u/2-a/2,c=e.y-o-s;break;case"bottom":l=e.x+u/2-a/2,c=e.y+d+s;break;case"left":l=e.x-a-s,c=e.y+d/2-o/2;break;case"right":l=e.x+u+s,c=e.y+d/2-o/2}return[l,c]}function o4t(t){return t==="center"||t==="middle"}function Y0o(t,e,n){var r=uot(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var o=nse(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),s=o.models[0];if(s){var l=n.getViewOfComponentModel(s),c;if(l.group.traverse(function(u){var d=ia(u).tooltipConfig;if(d&&d.name===t.name)return c=u,!0}),c)return{componentMainType:a,componentIndex:s.componentIndex,el:c}}}}const J0o=K0o;function Z0o(t){qa(bse),t.registerComponentModel(N0o),t.registerComponentView(J0o),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},jd),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},jd)}var X0o=["rect","polygon","keep","clear"];function eAo(t,e){var n=Ql(t?t.brush:[]);if(n.length){var r=[];Ie(n,function(c){var u=c.hasOwnProperty("toolbox")?c.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=t&&t.toolbox;Tn(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var o=a.feature||(a.feature={}),s=o.brush||(o.brush={}),l=s.type||(s.type=[]);l.push.apply(l,r),tAo(l),e&&!l.length&&l.push.apply(l,X0o)}}function tAo(t){var e={};Ie(t,function(n){e[n]=1}),t.length=0,Ie(e,function(n,r){t.push(r)})}var s4t=Ie;function l4t(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function GWe(t,e,n){var r={};return s4t(e,function(o){var s=r[o]=a();s4t(t[o],function(l,c){if(ag.isValidType(c)){var u={type:c,visual:l};n&&n(u,o),s[c]=new ag(u),c==="opacity"&&(u=ji(u),u.type="colorAlpha",s.__hidden.__alphaForOpacity=new ag(u))}})}),r;function a(){var o=function(){};o.prototype.__hidden=o.prototype;var s=new o;return s}}function fjn(t,e,n){var r;Ie(n,function(a){e.hasOwnProperty(a)&&l4t(e[a])&&(r=!0)}),r&&Ie(n,function(a){e.hasOwnProperty(a)&&l4t(e[a])?t[a]=ji(e[a]):delete t[a]})}function nAo(t,e,n,r,a,o){var s={};Ie(t,function(h){var f=ag.prepareVisualTypes(e[h]);s[h]=f});var l;function c(h){return Kot(n,l,h)}function u(h,f){_9n(n,l,h,f)}o==null?n.each(d):n.each([o],d);function d(h,f){l=o==null?h:f;var p=n.getRawDataItem(l);if(!(p&&p.visualMap===!1))for(var m=r.call(a,h),g=e[m],v=s[m],A=0,y=v.length;A<y;A++){var S=v[A];g[S]&&g[S].applyVisual(h,c,u)}}}function rAo(t,e,n,r){var a={};return Ie(t,function(o){var s=ag.prepareVisualTypes(e[o]);a[o]=s}),{progress:function(s,l){var c;r!=null&&(c=l.getDimensionIndex(r));function u(w){return Kot(l,h,w)}function d(w,_){_9n(l,h,w,_)}for(var h,f=l.getStore();(h=s.next())!=null;){var p=l.getRawDataItem(h);if(!(p&&p.visualMap===!1))for(var m=r!=null?f.get(c,h):h,g=n(m),v=e[g],A=a[g],y=0,S=A.length;y<S;y++){var x=A[y];v[x]&&v[x].applyVisual(m,u,d)}}}}}function iAo(t){var e=t.brushType,n={point:function(r){return c4t[e].point(r,n,t)},rect:function(r){return c4t[e].rect(r,n,t)}};return n}var c4t={lineX:u4t(0),lineY:u4t(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&yB(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var a=t.x,o=t.y,s=t.width,l=t.height,c=r[0];if(yB(r,a,o)||yB(r,a+s,o)||yB(r,a,o+l)||yB(r,a+s,o+l)||Da.create(t).contain(c[0],c[1])||OZ(a,o,a+s,o,r)||OZ(a,o,a,o+l,r)||OZ(a+s,o,a+s,o+l,r)||OZ(a,o+l,a+s,o+l,r))return!0}}};function u4t(t){var e=["x","y"],n=["width","height"];return{point:function(r,a,o){if(r){var s=o.range,l=r[t];return eY(l,s)}},rect:function(r,a,o){if(r){var s=o.range,l=[r[e[t]],r[e[t]]+r[n[t]]];return l[1]<l[0]&&l.reverse(),eY(l[0],s)||eY(l[1],s)||eY(s[0],l)||eY(s[1],l)}}}}function eY(t,e){return e[0]<=t&&t<=e[1]}var d4t=["inBrush","outOfBrush"],P8e="__ecBrushSelect",VWe="__ecInBrushSelectEvent";function pjn(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new olt(e.option,t);n.setInputRanges(e.areas,t)})}function aAo(t,e,n){var r=[],a,o;t.eachComponent({mainType:"brush"},function(s){n&&n.type==="takeGlobalCursor"&&s.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),pjn(t),t.eachComponent({mainType:"brush"},function(s,l){var c={brushId:s.id,brushIndex:l,brushName:s.name,areas:ji(s.areas),selected:[]};r.push(c);var u=s.option,d=u.brushLink,h=[],f=[],p=[],m=!1;l||(a=u.throttleType,o=u.throttleDelay);var g=Rn(s.areas,function(w){var _=cAo[w.brushType],C=bi({boundingRect:_?_(w):void 0},w);return C.selectors=iAo(C),C}),v=GWe(s.option,d4t,function(w){w.mappingMethod="fixed"});Tn(d)&&Ie(d,function(w){h[w]=1});function A(w){return d==="all"||!!h[w]}function y(w){return!!w.length}t.eachSeries(function(w,_){var C=p[_]=[];w.subType==="parallel"?S(w,_):x(w,_,C)});function S(w,_){var C=w.coordinateSystem;m=m||C.hasAxisBrushed(),A(_)&&C.eachActiveState(w.getData(),function(R,k){R==="active"&&(f[k]=1)})}function x(w,_,C){if(!(!w.brushSelector||lAo(s,_))&&(Ie(g,function(k){s.brushTargetManager.controlSeries(k,w,t)&&C.push(k),m=m||y(C)}),A(_)&&y(C))){var R=w.getData();R.each(function(k){h4t(w,C,R,k)&&(f[k]=1)})}}t.eachSeries(function(w,_){var C={seriesId:w.id,seriesIndex:_,seriesName:w.name,dataIndex:[]};c.selected.push(C);var R=p[_],k=w.getData(),P=A(_)?function(N){return f[N]?(C.dataIndex.push(k.getRawIndex(N)),"inBrush"):"outOfBrush"}:function(N){return h4t(w,R,k,N)?(C.dataIndex.push(k.getRawIndex(N)),"inBrush"):"outOfBrush"};(A(_)?m:y(R))&&nAo(d4t,v,k,P)})}),oAo(e,a,o,r,n)}function oAo(t,e,n,r,a){if(a){var o=t.getZr();if(!o[VWe]){o[P8e]||(o[P8e]=sAo);var s=UV(o,P8e,n,e);s(t,r)}}}function sAo(t,e){if(!t.isDisposed()){var n=t.getZr();n[VWe]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[VWe]=!1}}function h4t(t,e,n,r){for(var a=0,o=e.length;a<o;a++){var s=e[a];if(t.brushSelector(r,n,s.selectors,s))return!0}}function lAo(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(Tn(n)?za(n,e)<0:e!==n)}var cAo={rect:function(t){return f4t(t.range)},polygon:function(t){for(var e,n=t.range,r=0,a=n.length;r<a;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&f4t(e)}};function f4t(t){return new Da(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var uAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new jst(r.getZr())).on("brush",Cr(this._onBrush,this)).mount()},e.prototype.render=function(n,r,a,o){this.model=n,this._updateController(n,r,a,o)},e.prototype.updateTransform=function(n,r,a,o){pjn(r),this._updateController(n,r,a,o)},e.prototype.updateVisual=function(n,r,a,o){this.updateTransform(n,r,a,o)},e.prototype.updateView=function(n,r,a,o){this._updateController(n,r,a,o)},e.prototype._updateController=function(n,r,a,o){(!o||o.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:ji(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:ji(a),$from:r})},e.type="brush",e}(Au);const dAo=uAo;var hAo="#ddd",fAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return e.prototype.optionUpdated=function(n,r){var a=this.option;!r&&fjn(a,n,["inBrush","outOfBrush"]);var o=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:hAo},o.hasOwnProperty("liftZ")||(o.liftZ=5)},e.prototype.setAreas=function(n){n&&(this.areas=Rn(n,function(r){return p4t(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=p4t(this.option,n),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Fo);function p4t(t,e){return Ra({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Kl(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const pAo=fAo;var mAo=["rect","polygon","lineX","lineY","keep","clear"],gAo=function(t){nn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a){var o,s,l;r.eachComponent({mainType:"brush"},function(c){o=c.brushType,s=c.brushOption.brushMode||"single",l=l||!!c.areas.length}),this._brushType=o,this._brushMode=s,Ie(n.get("type",!0),function(c){n.setIconStatus(c,(c==="keep"?s==="multiple":c==="clear"?l:c===o)?"emphasis":"normal")})},e.prototype.updateView=function(n,r,a){this.render(n,r,a)},e.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return Ie(n.get("type",!0),function(o){r[o]&&(a[o]=r[o])}),a},e.prototype.onclick=function(n,r,a){var o=this._brushType,s=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?o:o===a?!1:a,brushMode:a==="keep"?s==="multiple"?"single":"multiple":s}})},e.getDefaultOption=function(n){var r={show:!0,type:mAo.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(dx);const vAo=gAo;function AAo(t){t.registerComponentView(dAo),t.registerComponentModel(pAo),t.registerPreprocessor(eAo),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,aAo),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},jd),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},jd),vF("brush",vAo)}var yAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Fo),bAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var o=this.group,s=n.getModel("textStyle"),l=n.getModel("subtextStyle"),c=n.get("textAlign"),u=pa(n.get("textBaseline"),n.get("textVerticalAlign")),d=new Jo({style:yc(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),h=d.getBoundingRect(),f=n.get("subtext"),p=new Jo({style:yc(l,{text:f,fill:l.getTextColor(),y:h.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),m=n.get("link"),g=n.get("sublink"),v=n.get("triggerEvent",!0);d.silent=!m&&!v,p.silent=!g&&!v,m&&d.on("click",function(){z1e(m,"_"+n.get("target"))}),g&&p.on("click",function(){z1e(g,"_"+n.get("subtarget"))}),ia(d).eventData=ia(p).eventData=v?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(d),f&&o.add(p);var A=o.getBoundingRect(),y=n.getBoxLayoutParams();y.width=A.width,y.height=A.height;var S=nf(y,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?S.x+=S.width:c==="center"&&(S.x+=S.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),o.x=S.x,o.y=S.y,o.markRedraw();var x={align:c,verticalAlign:u};d.setStyle(x),p.setStyle(x),A=o.getBoundingRect();var w=S.margin,_=n.getItemStyle(["color","opacity"]);_.fill=n.get("backgroundColor");var C=new Zo({shape:{x:A.x-w[3],y:A.y-w[0],width:A.width+w[1]+w[3],height:A.height+w[0]+w[2],r:n.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});o.add(C)}},e.type="title",e}(Au);function xAo(t){t.registerComponentModel(yAo),t.registerComponentView(bAo)}var EAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(n){this.option.autoPlay=!!n},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,o=this._names=[],s;a==="category"?(s=[],Ie(r,function(u,d){var h=Lf(RV(u),""),f;Ci(u)?(f=ji(u),f.value=d):f=d,s.push(f),o.push(h)})):s=r;var l={category:"ordinal",time:"time",value:"number"}[a]||"number",c=this._data=new bv([{name:"value",type:l}],this);c.initData(s,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Fo);const m4t=EAo;var mjn=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline.slider",e.defaultOption=EO(m4t.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(m4t);Vd(mjn,Uot.prototype);const SAo=mjn;var wAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(Au);const _Ao=wAo;var TAo=function(t){nn(e,t);function e(n,r,a,o){var s=t.call(this,n,r,a)||this;return s.type=o||"value",s}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(CE);const CAo=TAo;var O8e=Math.PI,g4t=ds(),kAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.api=r},e.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var o=this._layout(n,a),s=this._createGroup("_mainGroup"),l=this._createGroup("_labelGroup"),c=this._axis=this._createAxis(o,n);n.formatTooltip=function(u){var d=c.scale.getLabel({value:u});return kp("nameValue",{noName:!0,value:d})},Ie(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](o,s,c,n)},this),this._renderAxisLabel(o,l,c,n),this._position(o,n)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(n,r){var a=n.get(["label","position"]),o=n.get("orient"),s=MAo(n,r),l;a==null||a==="auto"?l=o==="horizontal"?s.y+s.height/2<r.getHeight()/2?"-":"+":s.x+s.width/2<r.getWidth()/2?"+":"-":vr(a)?l={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][a]:l=a;var c={horizontal:"center",vertical:l>=0||l==="+"?"left":"right"},u={horizontal:l>=0||l==="+"?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:O8e/2},h=o==="vertical"?s.height:s.width,f=n.getModel("controlStyle"),p=f.get("show",!0),m=p?f.get("itemSize"):0,g=p?f.get("itemGap"):0,v=m+g,A=n.get(["label","rotate"])||0;A=A*O8e/180;var y,S,x,w=f.get("position",!0),_=p&&f.get("showPlayBtn",!0),C=p&&f.get("showPrevBtn",!0),R=p&&f.get("showNextBtn",!0),k=0,P=h;w==="left"||w==="bottom"?(_&&(y=[0,0],k+=v),C&&(S=[k,0],k+=v),R&&(x=[P-m,0],P-=v)):(_&&(y=[P-m,0],P-=v),C&&(S=[0,0],k+=v),R&&(x=[P-m,0],P-=v));var N=[k,P];return n.get("inverse")&&N.reverse(),{viewRect:s,mainLength:h,orient:o,rotation:d[o],labelRotation:A,labelPosOpt:l,labelAlign:n.get(["label","align"])||c[o],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[o],playPosition:y,prevBtnPosition:S,nextBtnPosition:x,axisExtent:N,controlSize:m,controlGap:g}},e.prototype._position=function(n,r){var a=this._mainGroup,o=this._labelGroup,s=n.viewRect;if(n.orient==="vertical"){var l=r1(),c=s.x,u=s.y+s.height;Dw(l,l,[-c,-u]),bO(l,l,-O8e/2),Dw(l,l,[c,u]),s=s.clone(),s.applyTransform(l)}var d=y(s),h=y(a.getBoundingRect()),f=y(o.getBoundingRect()),p=[a.x,a.y],m=[o.x,o.y];m[0]=p[0]=d[0][0];var g=n.labelPosOpt;if(g==null||vr(g)){var v=g==="+"?0:1;S(p,h,d,1,v),S(m,f,d,1,1-v)}else{var v=g>=0?0:1;S(p,h,d,1,v),m[1]=p[1]+g}a.setPosition(p),o.setPosition(m),a.rotation=o.rotation=n.rotation,A(a),A(o);function A(x){x.originX=d[0][0]-x.x,x.originY=d[1][0]-x.y}function y(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function S(x,w,_,C,R){x[C]+=_[C][R]-w[C][R]}},e.prototype._createAxis=function(n,r){var a=r.getData(),o=r.get("axisType"),s=RAo(r,o);s.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var l=a.getDataExtent("value");s.setExtent(l[0],l[1]),s.calcNiceTicks();var c=new CAo("value",s,n.axisExtent,o);return c.model=r,c},e.prototype._createGroup=function(n){var r=this[n]=new ta;return this.group.add(r),r},e.prototype._renderAxisLine=function(n,r,a,o){var s=a.getExtent();if(o.get(["lineStyle","show"])){var l=new vp({shape:{x1:s[0],y1:0,x2:s[1],y2:0},style:An({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(l);var c=this._progressLine=new vp({shape:{x1:s[0],x2:this._currentPointer?this._currentPointer.x:s[0],y1:0,y2:0},style:bi({lineCap:"round",lineWidth:l.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(c)}},e.prototype._renderAxisTick=function(n,r,a,o){var s=this,l=o.getData(),c=a.scale.getTicks();this._tickSymbols=[],Ie(c,function(u){var d=a.dataToCoord(u.value),h=l.getItemModel(u.value),f=h.getModel("itemStyle"),p=h.getModel(["emphasis","itemStyle"]),m=h.getModel(["progress","itemStyle"]),g={x:d,y:0,onclick:Cr(s._changeTimeline,s,u.value)},v=v4t(h,f,r,g);v.ensureState("emphasis").style=p.getItemStyle(),v.ensureState("progress").style=m.getItemStyle(),I5(v);var A=ia(v);h.get("tooltip")?(A.dataIndex=u.value,A.dataModel=o):A.dataIndex=A.dataModel=null,s._tickSymbols.push(v)})},e.prototype._renderAxisLabel=function(n,r,a,o){var s=this,l=a.getLabelModel();if(l.get("show")){var c=o.getData(),u=a.getViewLabels();this._tickLabels=[],Ie(u,function(d){var h=d.tickValue,f=c.getItemModel(h),p=f.getModel("label"),m=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),v=a.dataToCoord(d.tickValue),A=new Jo({x:v,y:0,rotation:n.labelRotation-n.rotation,onclick:Cr(s._changeTimeline,s,h),silent:!1,style:yc(p,{text:d.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});A.ensureState("emphasis").style=yc(m),A.ensureState("progress").style=yc(g),r.add(A),I5(A),g4t(A).dataIndex=h,s._tickLabels.push(A)})}},e.prototype._renderControl=function(n,r,a,o){var s=n.controlSize,l=n.rotation,c=o.getModel("controlStyle").getItemStyle(),u=o.getModel(["emphasis","controlStyle"]).getItemStyle(),d=o.getPlayState(),h=o.get("inverse",!0);f(n.nextBtnPosition,"next",Cr(this._changeTimeline,this,h?"-":"+")),f(n.prevBtnPosition,"prev",Cr(this._changeTimeline,this,h?"+":"-")),f(n.playPosition,d?"stop":"play",Cr(this._handlePlayClick,this,!d),!0);function f(p,m,g,v){if(p){var A=$w(pa(o.get(["controlStyle",m+"BtnSize"]),s),s),y=[0,-A/2,A,A],S=NAo(o,m+"Icon",y,{x:p[0],y:p[1],originX:s/2,originY:0,rotation:v?-l:0,rectHover:!0,style:c,onclick:g});S.ensureState("emphasis").style=u,r.add(S),I5(S)}}},e.prototype._renderCurrentPointer=function(n,r,a,o){var s=o.getData(),l=o.getCurrentIndex(),c=s.getItemModel(l).getModel("checkpointStyle"),u=this,d={onCreate:function(h){h.draggable=!0,h.drift=Cr(u._handlePointerDrag,u),h.ondragend=Cr(u._handlePointerDragend,u),A4t(h,u._progressLine,l,a,o,!0)},onUpdate:function(h){A4t(h,u._progressLine,l,a,o)}};this._currentPointer=v4t(c,c,this._mainGroup,{},this._currentPointer,d)},e.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},e.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},e.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],o=this._axis,s=Py(o.getExtent().slice());a>s[1]&&(a=s[1]),a<s[0]&&(a=s[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var l=this._progressLine;l&&(l.shape.x2=a,l.dirty());var c=this._findNearestTick(a),u=this.model;(r||c!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(c)},e.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return xw(n,r,!0)},e.prototype._findNearestTick=function(n){var r=this.model.getData(),a=1/0,o,s=this._axis;return r.each(["value"],function(l,c){var u=s.dataToCoord(l),d=Math.abs(u-n);d<a&&(a=d,o=c)}),o},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},e.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,a=this._tickLabels;if(r)for(var o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",o<n);if(a)for(var o=0;o<a.length;o++)a&&a[o]&&a[o].toggleState("progress",g4t(a[o]).dataIndex<=n)},e.type="timeline.slider",e}(_Ao);function RAo(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new ast({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new v$n({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new NP}}function MAo(t,e){return nf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function NAo(t,e,n,r){var a=r.style,o=PV(t.get(["controlStyle",e]),r||{},new Da(n[0],n[1],n[2],n[3]));return a&&o.setStyle(a),o}function v4t(t,e,n,r,a,o){var s=e.get("color");if(a)a.setColor(s),n.add(a),o&&o.onUpdate(a);else{var l=t.get("symbol");a=vh(l,-1,-1,2,2,s),a.setStyle("strokeNoScale",!0),n.add(a),o&&o.onCreate(a)}var c=e.getItemStyle(["color"]);a.setStyle(c),r=Ra({rectHover:!0,z2:100},r,!0);var u=zV(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var d=_9(t.get("symbolOffset"),u);d&&(r.x=(r.x||0)+d[0],r.y=(r.y||0)+d[1]);var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function A4t(t,e,n,r,a,o){if(!t.dragging){var s=a.getModel("checkpointStyle"),l=r.dataToCoord(a.getData().get("value",n));if(o||!s.get("animation",!0))t.attr({x:l,y:0}),e&&e.attr({shape:{x2:l}});else{var c={duration:s.get("animationDuration",!0),easing:s.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:l,y:0},c),e&&e.animateTo({shape:{x2:l}},c)}}}const IAo=kAo;function PAo(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,n,r){var a=n.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),bi({currentIndex:a.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,n){var r=n.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function OAo(t){var e=t&&t.timeline;Tn(e)||(e=e?[e]:[]),Ie(e,function(n){n&&LAo(n)})}function LAo(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),y4t(t),EB(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});EB(r,"position")||(r.position=t.controlPosition),r.position==="none"&&!EB(r,"show")&&(r.show=!1,delete r.position),delete t.controlPosition}Ie(t.data||[],function(a){Ci(a)&&!Tn(a)&&(!EB(a,"value")&&EB(a,"name")&&(a.value=a.name),y4t(a))})}function y4t(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},a=r.normal||(r.normal={}),o={normal:1,emphasis:1};Ie(r,function(s,l){!o[l]&&!EB(a,l)&&(a[l]=s)}),n.label&&!EB(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function EB(t,e){return t.hasOwnProperty(e)}function BAo(t){t.registerComponentModel(SAo),t.registerComponentView(IAo),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),PAo(t),t.registerPreprocessor(OAo)}function clt(t,e){if(!t)return!1;for(var n=Tn(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function whe(t){e8(t,"label",["show"])}var _he=ds(),gjn=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._mergeOption(n,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(ls.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},e.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},e.prototype._mergeOption=function(n,r,a,o){var s=this.mainType;a||r.eachSeries(function(l){var c=l.get(this.mainType,!0),u=_he(l)[s];if(!c||!c.data){_he(l)[s]=null;return}u?u._mergeOption(c,r,!0):(o&&whe(c),Ie(c.data,function(d){d instanceof Array?(whe(d[0]),whe(d[1])):whe(d)}),u=this.createMarkerModelFromSeries(c,this,r),An(u,{mainType:this.mainType,seriesIndex:l.seriesIndex,name:l.name,createdBySelf:!0}),u.__hostSeries=l),_he(l)[s]=u},this)},e.prototype.formatTooltip=function(n,r,a){var o=this.getData(),s=this.getRawValue(n),l=o.getName(n);return kp("section",{header:this.name,blocks:[kp("nameValue",{name:l,value:s,noName:!l,noValue:s==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(n){this._data=n},e.getMarkerModelFromSeries=function(n,r){return _he(n)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Fo);Vd(gjn,Uot.prototype);const OP=gjn;var DAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(OP);const $Ao=DAo;function KWe(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function FAo(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function The(t,e,n,r,a,o){var s=[],l=OM(e,r),c=l?e.getCalculationInfo("stackResultDimension"):r,u=ult(e,c,t),d=e.indicesOfNearest(c,u)[0];s[a]=e.get(n,d),s[o]=e.get(c,d);var h=e.get(r,d),f=ow(e.get(r,d));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,h]}var L8e={min:fa(The,"min"),max:fa(The,"max"),average:fa(The,"average"),median:fa(The,"median")};function kre(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,a=r&&r.dimensions;if(!FAo(e)&&!Tn(e.coord)&&Tn(a)){var o=vjn(e,n,r,t);if(e=ji(e),e.type&&L8e[e.type]&&o.baseAxis&&o.valueAxis){var s=za(a,o.baseAxis.dim),l=za(a,o.valueAxis.dim),c=L8e[e.type](n,o.baseDataDim,o.valueDataDim,s,l);e.coord=c[0],e.value=c[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Tn(a))e.coord=[];else for(var u=e.coord,d=0;d<2;d++)L8e[u[d]]&&(u[d]=ult(n,n.mapDimension(a[d]),u[d]));return e}}function vjn(t,e,n,r){var a={};return t.valueIndex!=null||t.valueDim!=null?(a.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=n.getAxis(jAo(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function jAo(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function Rre(t,e){return t&&t.containData&&e.coord&&!KWe(e)?t.containData(e.coord):!0}function HAo(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!KWe(e)&&!KWe(n)?t.containZone(e.coord,n.coord):!0}function Ajn(t,e){return t?function(n,r,a,o){var s=o<2?n.coord&&n.coord[o]:n.value;return L5(s,e[o])}:function(n,r,a,o){return L5(n.value,e[o])}}function ult(t,e,n){if(n==="average"){var r=0,a=0;return t.each(e,function(o,s){isNaN(o)||(r+=o,a++)}),r/a}else return n==="median"?t.getMedian(e):t.getDataExtent(e)[n==="max"?1:0]}var B8e=ds(),UAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this.markerGroupMap=Ur()},e.prototype.render=function(n,r,a){var o=this,s=this.markerGroupMap;s.each(function(l){B8e(l).keep=!1}),r.eachSeries(function(l){var c=OP.getMarkerModelFromSeries(l,o.type);c&&o.renderSeries(l,c,r,a)}),s.each(function(l){!B8e(l).keep&&o.group.remove(l.group)})},e.prototype.markKeep=function(n){B8e(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var a=this;Ie(n,function(o){var s=OP.getMarkerModelFromSeries(o,a.type);if(s){var l=s.getData();l.eachItemGraphicEl(function(c){c&&(r?V6n(c):vot(c))})}})},e.type="marker",e}(Au);const dlt=UAo;function b4t(t,e,n){var r=e.coordinateSystem;t.each(function(a){var o=t.getItemModel(a),s,l=lr(o.get("x"),n.getWidth()),c=lr(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else if(e.getMarkerPosition)s=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(r){var u=t.get(r.dimensions[0],a),d=t.get(r.dimensions[1],a);s=r.dataToPoint([u,d])}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c),t.setItemLayout(a,s)})}var zAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(o){var s=OP.getMarkerModelFromSeries(o,"markPoint");s&&(b4t(s.getData(),o,a),this.markerGroupMap.get(o.id).updateLayout())},this)},e.prototype.renderSeries=function(n,r,a,o){var s=n.coordinateSystem,l=n.id,c=n.getData(),u=this.markerGroupMap,d=u.get(l)||u.set(l,new fse),h=GAo(s,n,r);r.setData(h),b4t(r.getData(),n,o),h.each(function(f){var p=h.getItemModel(f),m=p.getShallow("symbol"),g=p.getShallow("symbolSize"),v=p.getShallow("symbolRotate"),A=p.getShallow("symbolOffset"),y=p.getShallow("symbolKeepAspect");if(ai(m)||ai(g)||ai(v)||ai(A)){var S=r.getRawValue(f),x=r.getDataParams(f);ai(m)&&(m=m(S,x)),ai(g)&&(g=g(S,x)),ai(v)&&(v=v(S,x)),ai(A)&&(A=A(S,x))}var w=p.getModel("itemStyle").getItemStyle(),_=cse(c,"color");w.fill||(w.fill=_),h.setItemVisual(f,{symbol:m,symbolSize:g,symbolRotate:v,symbolOffset:A,symbolKeepAspect:y,style:w})}),d.updateData(h),this.group.add(d.group),h.eachItemGraphicEl(function(f){f.traverse(function(p){ia(p).dataModel=r})}),this.markKeep(d),d.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(dlt);function GAo(t,e,n){var r;t?r=Rn(t&&t.dimensions,function(l){var c=e.getData().getDimensionInfo(e.getData().mapDimension(l))||{};return An(An({},c),{name:l,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new bv(r,n),o=Rn(n.get("data"),fa(kre,e));t&&(o=ll(o,fa(Rre,t)));var s=Ajn(!!t,r);return a.initData(o,null,s),a}const VAo=zAo;function KAo(t){t.registerComponentModel($Ao),t.registerComponentView(VAo),t.registerPreprocessor(function(e){clt(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var WAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(OP);const QAo=WAo;var Che=ds(),qAo=function(t,e,n,r){var a=t.getData(),o;if(Tn(r))o=r;else{var s=r.type;if(s==="min"||s==="max"||s==="average"||s==="median"||r.xAxis!=null||r.yAxis!=null){var l=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)l=e.getAxis(r.yAxis!=null?"y":"x"),c=gp(r.yAxis,r.xAxis);else{var u=vjn(r,a,e,t);l=u.valueAxis;var d=ist(a,u.valueDataDim);c=ult(a,d,s)}var h=l.dim==="x"?0:1,f=1-h,p=ji(r),m={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,m.coord[f]=1/0;var g=n.get("precision");g>=0&&cs(c)&&(c=+c.toFixed(Math.min(g,20))),p.coord[h]=m.coord[h]=c,o=[p,m,{type:s,valueIndex:r.valueIndex,value:c}]}else o=[]}var v=[kre(t,o[0]),kre(t,o[1]),An({},o[2])];return v[2].type=v[2].type||null,Ra(v[2],v[0]),Ra(v[2],v[1]),v};function vye(t){return!isNaN(t)&&!isFinite(t)}function x4t(t,e,n,r){var a=1-t,o=r.dimensions[t];return vye(e[a])&&vye(n[a])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function YAo(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(x4t(1,n,r,t)||x4t(0,n,r,t)))return!0}return Rre(t,e[0])&&Rre(t,e[1])}function D8e(t,e,n,r,a){var o=r.coordinateSystem,s=t.getItemModel(e),l,c=lr(s.get("x"),a.getWidth()),u=lr(s.get("y"),a.getHeight());if(!isNaN(c)&&!isNaN(u))l=[c,u];else{if(r.getMarkerPosition)l=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=o.dimensions,h=t.get(d[0],e),f=t.get(d[1],e);l=o.dataToPoint([h,f])}if(T9(o,"cartesian2d")){var p=o.getAxis("x"),m=o.getAxis("y"),d=o.dimensions;vye(t.get(d[0],e))?l[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):vye(t.get(d[1],e))&&(l[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(c)||(l[0]=c),isNaN(u)||(l[1]=u)}t.setItemLayout(e,l)}var JAo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(o){var s=OP.getMarkerModelFromSeries(o,"markLine");if(s){var l=s.getData(),c=Che(s).from,u=Che(s).to;c.each(function(d){D8e(c,d,!0,o,a),D8e(u,d,!1,o,a)}),l.each(function(d){l.setItemLayout(d,[c.getItemLayout(d),u.getItemLayout(d)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},e.prototype.renderSeries=function(n,r,a,o){var s=n.coordinateSystem,l=n.id,c=n.getData(),u=this.markerGroupMap,d=u.get(l)||u.set(l,new Ost);this.group.add(d.group);var h=ZAo(s,n,r),f=h.from,p=h.to,m=h.line;Che(r).from=f,Che(r).to=p,r.setData(m);var g=r.get("symbol"),v=r.get("symbolSize"),A=r.get("symbolRotate"),y=r.get("symbolOffset");Tn(g)||(g=[g,g]),Tn(v)||(v=[v,v]),Tn(A)||(A=[A,A]),Tn(y)||(y=[y,y]),h.from.each(function(x){S(f,x,!0),S(p,x,!1)}),m.each(function(x){var w=m.getItemModel(x).getModel("lineStyle").getLineStyle();m.setItemLayout(x,[f.getItemLayout(x),p.getItemLayout(x)]),w.stroke==null&&(w.stroke=f.getItemVisual(x,"style").fill),m.setItemVisual(x,{fromSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(x,"symbolOffset"),fromSymbolRotate:f.getItemVisual(x,"symbolRotate"),fromSymbolSize:f.getItemVisual(x,"symbolSize"),fromSymbol:f.getItemVisual(x,"symbol"),toSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(x,"symbolOffset"),toSymbolRotate:p.getItemVisual(x,"symbolRotate"),toSymbolSize:p.getItemVisual(x,"symbolSize"),toSymbol:p.getItemVisual(x,"symbol"),style:w})}),d.updateData(m),h.line.eachItemGraphicEl(function(x){ia(x).dataModel=r,x.traverse(function(w){ia(w).dataModel=r})});function S(x,w,_){var C=x.getItemModel(w);D8e(x,w,_,n,o);var R=C.getModel("itemStyle").getItemStyle();R.fill==null&&(R.fill=cse(c,"color")),x.setItemVisual(w,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:pa(C.get("symbolOffset",!0),y[_?0:1]),symbolRotate:pa(C.get("symbolRotate",!0),A[_?0:1]),symbolSize:pa(C.get("symbolSize"),v[_?0:1]),symbol:pa(C.get("symbol",!0),g[_?0:1]),style:R})}this.markKeep(d),d.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(dlt);function ZAo(t,e,n){var r;t?r=Rn(t&&t.dimensions,function(u){var d=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return An(An({},d),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new bv(r,n),o=new bv(r,n),s=new bv([],n),l=Rn(n.get("data"),fa(qAo,e,t,n));t&&(l=ll(l,fa(YAo,t)));var c=Ajn(!!t,r);return a.initData(Rn(l,function(u){return u[0]}),null,c),o.initData(Rn(l,function(u){return u[1]}),null,c),s.initData(Rn(l,function(u){return u[2]})),s.hasItemOption=!0,{from:a,to:o,line:s}}const XAo=JAo;function e1o(t){t.registerComponentModel(QAo),t.registerComponentView(XAo),t.registerPreprocessor(function(e){clt(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var t1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(OP);const n1o=t1o;var khe=ds(),r1o=function(t,e,n,r){var a=r[0],o=r[1];if(!(!a||!o)){var s=kre(t,a),l=kre(t,o),c=s.coord,u=l.coord;c[0]=gp(c[0],-1/0),c[1]=gp(c[1],-1/0),u[0]=gp(u[0],1/0),u[1]=gp(u[1],1/0);var d=LTe([{},s,l]);return d.coord=[s.coord,l.coord],d.x0=s.x,d.y0=s.y,d.x1=l.x,d.y1=l.y,d}};function Aye(t){return!isNaN(t)&&!isFinite(t)}function E4t(t,e,n,r){var a=1-t;return Aye(e[a])&&Aye(n[a])}function i1o(t,e){var n=e.coord[0],r=e.coord[1],a={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return T9(t,"cartesian2d")?n&&r&&(E4t(1,n,r)||E4t(0,n,r))?!0:HAo(t,a,o):Rre(t,a)||Rre(t,o)}function S4t(t,e,n,r,a){var o=r.coordinateSystem,s=t.getItemModel(e),l,c=lr(s.get(n[0]),a.getWidth()),u=lr(s.get(n[1]),a.getHeight());if(!isNaN(c)&&!isNaN(u))l=[c,u];else{if(r.getMarkerPosition){var d=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),f=o.clampData(d),p=o.clampData(h),m=[];n[0]==="x0"?m[0]=f[0]>p[0]?h[0]:d[0]:m[0]=f[0]>p[0]?d[0]:h[0],n[1]==="y0"?m[1]=f[1]>p[1]?h[1]:d[1]:m[1]=f[1]>p[1]?d[1]:h[1],l=r.getMarkerPosition(m,n,!0)}else{var g=t.get(n[0],e),v=t.get(n[1],e),A=[g,v];o.clampData&&o.clampData(A,A),l=o.dataToPoint(A,!0)}if(T9(o,"cartesian2d")){var y=o.getAxis("x"),S=o.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);Aye(g)?l[0]=y.toGlobalCoord(y.getExtent()[n[0]==="x0"?0:1]):Aye(v)&&(l[1]=S.toGlobalCoord(S.getExtent()[n[1]==="y0"?0:1]))}isNaN(c)||(l[0]=c),isNaN(u)||(l[1]=u)}return l}var w4t=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],a1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(o){var s=OP.getMarkerModelFromSeries(o,"markArea");if(s){var l=s.getData();l.each(function(c){var u=Rn(w4t,function(h){return S4t(l,c,h,o,a)});l.setItemLayout(c,u);var d=l.getItemGraphicEl(c);d.setShape("points",u)})}},this)},e.prototype.renderSeries=function(n,r,a,o){var s=n.coordinateSystem,l=n.id,c=n.getData(),u=this.markerGroupMap,d=u.get(l)||u.set(l,{group:new ta});this.group.add(d.group),this.markKeep(d);var h=o1o(s,n,r);r.setData(h),h.each(function(f){var p=Rn(w4t,function(R){return S4t(h,f,R,n,o)}),m=s.getAxis("x").scale,g=s.getAxis("y").scale,v=m.getExtent(),A=g.getExtent(),y=[m.parse(h.get("x0",f)),m.parse(h.get("x1",f))],S=[g.parse(h.get("y0",f)),g.parse(h.get("y1",f))];Py(y),Py(S);var x=!(v[0]>y[1]||v[1]<y[0]||A[0]>S[1]||A[1]<S[0]),w=!x;h.setItemLayout(f,{points:p,allClipped:w});var _=h.getItemModel(f).getModel("itemStyle").getItemStyle(),C=cse(c,"color");_.fill||(_.fill=C,vr(_.fill)&&(_.fill=ire(_.fill,.4))),_.stroke||(_.stroke=C),h.setItemVisual(f,"style",_)}),h.diff(khe(d).data).add(function(f){var p=h.getItemLayout(f);if(!p.allClipped){var m=new Y0({shape:{points:p.points}});h.setItemGraphicEl(f,m),d.group.add(m)}}).update(function(f,p){var m=khe(d).data.getItemGraphicEl(p),g=h.getItemLayout(f);g.allClipped?m&&d.group.remove(m):(m?vs(m,{shape:{points:g.points}},r,f):m=new Y0({shape:{points:g.points}}),h.setItemGraphicEl(f,m),d.group.add(m))}).remove(function(f){var p=khe(d).data.getItemGraphicEl(f);d.group.remove(p)}).execute(),h.eachItemGraphicEl(function(f,p){var m=h.getItemModel(p),g=h.getItemVisual(p,"style");f.useStyle(h.getItemVisual(p,"style")),hg(f,Cp(m),{labelFetcher:r,labelDataIndex:p,defaultText:h.getName(p)||"",inheritColor:vr(g.fill)?ire(g.fill,1):"#000"}),dg(f,m),bd(f,null,null,m.get(["emphasis","disabled"])),ia(f).dataModel=r}),khe(d).data=h,d.group.silent=r.get("silent")||n.get("silent")},e.type="markArea",e}(dlt);function o1o(t,e,n){var r,a,o=["x0","y0","x1","y1"];if(t){var s=Rn(t&&t.dimensions,function(u){var d=e.getData(),h=d.getDimensionInfo(d.mapDimension(u))||{};return An(An({},h),{name:u,ordinalMeta:null})});a=Rn(o,function(u,d){return{name:u,type:s[d%2].type}}),r=new bv(a,n)}else a=[{name:"value",type:"float"}],r=new bv(a,n);var l=Rn(n.get("data"),fa(r1o,e,t,n));t&&(l=ll(l,fa(i1o,t)));var c=t?function(u,d,h,f){var p=u.coord[Math.floor(f/2)][f%2];return L5(p,a[f])}:function(u,d,h,f){return L5(u.value,a[f])};return r.initData(l,null,c),r.hasItemOption=!0,r}const s1o=a1o;function l1o(t){t.registerComponentModel(n1o),t.registerComponentView(s1o),t.registerPreprocessor(function(e){clt(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var c1o=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},u1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Tn(r)&&Ie(r,function(o,s){vr(o)&&(o={type:o}),r[s]=Ra(o,c1o(a,o.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var o=n[a].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(c){var u=c.name;a.push(u);var d;if(c.legendVisualProvider){var h=c.legendVisualProvider,f=h.getAllNames();n.isSeriesFiltered(c)||(a=a.concat(f)),f.length?r=r.concat(f):d=!0}else d=!0;d&&cot(c)&&r.push(c.name)}),this._availableNames=a;var o=this.get("data")||r,s=Ur(),l=Rn(o,function(c){return(vr(c)||cs(c))&&(c={name:c}),s.get(c.name)?null:(s.set(c.name,!0),new Kl(c,this,this.ecModel))},this);this._data=ll(l,function(c){return!!c})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var o=this._data;Ie(o,function(s){r[s.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;Ie(n,function(a){r[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;Ie(n,function(a){var o=a.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&za(this._availableNames,n)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Fo);const WWe=u1o;var h7=fa,QWe=Ie,Rhe=ta,d1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new Rhe),this.group.add(this._selectorGroup=new Rhe),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,a){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var c=n.get("selector",!0),u=n.get("selectorPosition",!0);c&&(!u||u==="auto")&&(u=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,a,c,l,u);var d=n.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},f=n.get("padding"),p=nf(d,h,f),m=this.layoutInner(n,s,p,o,c,u),g=nf(bi({width:m.width,height:m.height},d),h,f);this.group.x=g.x-m.x,this.group.y=g.y-m.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ojn(m,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,a,o,s,l,c){var u=this.getContentGroup(),d=Ur(),h=r.get("selectedMode"),f=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&f.push(p.id)}),QWe(r.getData(),function(p,m){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===`
`)){var v=new Rhe;v.newline=!0,u.add(v);return}var A=a.getSeriesByName(g)[0];if(!d.get(g))if(A){var y=A.getData(),S=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),w=y.getVisual("style"),_=this._createItem(A,g,m,p,r,n,S,w,x,h,o);_.on("click",h7(_4t,g,null,o,f)).on("mouseover",h7(qWe,A.name,null,o,f)).on("mouseout",h7(YWe,A.name,null,o,f)),a.ssr&&_.eachChild(function(C){var R=ia(C);R.seriesIndex=A.seriesIndex,R.dataIndex=m,R.ssrType="legend"}),d.set(g,!0)}else a.eachRawSeries(function(C){if(!d.get(g)&&C.legendVisualProvider){var R=C.legendVisualProvider;if(!R.containName(g))return;var k=R.indexOfName(g),P=R.getItemVisual(k,"style"),N=R.getItemVisual(k,"legendIcon"),L=j0(P.fill);L&&L[3]===0&&(L[3]=.2,P=An(An({},P),{fill:bw(L,"rgba")}));var I=this._createItem(C,g,m,p,r,n,{},P,N,h,o);I.on("click",h7(_4t,null,g,o,f)).on("mouseover",h7(qWe,null,g,o,f)).on("mouseout",h7(YWe,null,g,o,f)),a.ssr&&I.eachChild(function(b){var T=ia(b);T.seriesIndex=C.seriesIndex,T.dataIndex=m,T.ssrType="legend"}),d.set(g,!0)}},this)},this),s&&this._createSelector(s,r,o,l,c)},e.prototype._createSelector=function(n,r,a,o,s){var l=this.getSelectorGroup();QWe(n,function(u){var d=u.type,h=new Jo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect"})}});l.add(h);var f=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);hg(h,{normal:f,emphasis:p},{defaultText:u.title}),I5(h)})},e.prototype._createItem=function(n,r,a,o,s,l,c,u,d,h,f){var p=n.visualDrawType,m=s.get("itemWidth"),g=s.get("itemHeight"),v=s.isSelected(r),A=o.get("symbolRotate"),y=o.get("symbolKeepAspect"),S=o.get("icon");d=S||d||"roundRect";var x=h1o(d,o,c,u,p,v,f),w=new Rhe,_=o.getModel("textStyle");if(ai(n.getLegendIcon)&&(!S||S==="inherit"))w.add(n.getLegendIcon({itemWidth:m,itemHeight:g,icon:d,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var C=S==="inherit"&&n.getData().getVisual("symbol")?A==="inherit"?n.getData().getVisual("symbolRotate"):A:0;w.add(f1o({itemWidth:m,itemHeight:g,icon:d,iconRotate:C,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var R=l==="left"?m+5:-5,k=l,P=s.get("formatter"),N=r;vr(P)&&P?N=P.replace("{name}",r??""):ai(P)&&(N=P(r));var L=v?_.getTextColor():o.get("inactiveColor");w.add(new Jo({style:yc(_,{text:N,x:R,y:g/2,fill:L,align:k,verticalAlign:"middle"},{inheritColor:L})}));var I=new Zo({shape:w.getBoundingRect(),style:{fill:"transparent"}}),b=o.getModel("tooltip");return b.get("show")&&OV({el:I,componentModel:s,itemName:r,itemTooltipOption:b.option}),w.add(I),w.eachChild(function(T){T.silent=!0}),I.silent=!h,this.getContentGroup().add(w),I5(w),w.__legendDataIndex=a,w},e.prototype.layoutInner=function(n,r,a,o,s,l){var c=this.getContentGroup(),u=this.getSelectorGroup();OD(n.get("orient"),c,n.get("itemGap"),a.width,a.height);var d=c.getBoundingRect(),h=[-d.x,-d.y];if(u.markRedraw(),c.markRedraw(),s){OD("horizontal",u,n.get("selectorItemGap",!0));var f=u.getBoundingRect(),p=[-f.x,-f.y],m=n.get("selectorButtonGap",!0),g=n.getOrient().index,v=g===0?"width":"height",A=g===0?"height":"width",y=g===0?"y":"x";l==="end"?p[g]+=d[v]+m:h[g]+=f[v]+m,p[1-g]+=d[A]/2-f[A]/2,u.x=p[0],u.y=p[1],c.x=h[0],c.y=h[1];var S={x:0,y:0};return S[v]=d[v]+m+f[v],S[A]=Math.max(d[A],f[A]),S[y]=Math.min(0,f[y]+p[1-g]),S}else return c.x=h[0],c.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Au);function h1o(t,e,n,r,a,o,s){function l(v,A){v.lineWidth==="auto"&&(v.lineWidth=A.lineWidth>0?2:0),QWe(v,function(y,S){v[S]==="inherit"&&(v[S]=A[S])})}var c=e.getModel("itemStyle"),u=c.getItemStyle(),d=t.lastIndexOf("empty",0)===0?"fill":"stroke",h=c.getShallow("decal");u.decal=!h||h==="inherit"?r.decal:sz(h,s),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[d]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),l(u,r);var f=e.getModel("lineStyle"),p=f.getLineStyle();if(l(p,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),p.stroke==="auto"&&(p.stroke=r.fill),!o){var m=e.get("inactiveBorderWidth"),g=u[d];u.lineWidth=m==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=f.get("inactiveColor"),p.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function f1o(t){var e=t.icon||"roundRect",n=vh(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function _4t(t,e,n,r){YWe(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),qWe(t,e,n,r)}function yjn(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,a=e.length;r<a&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function qWe(t,e,n,r){yjn(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function YWe(t,e,n,r){yjn(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}const bjn=d1o;function p1o(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function tY(t,e,n){var r={},a=t==="toggleSelected",o;return n.eachComponent("legend",function(s){a&&o!=null?s[o?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?s[t]():(s[t](e.name),o=s.isSelected(e.name));var l=s.getData();Ie(l,function(c){var u=c.get("name");if(!(u===`
`||u==="")){var d=s.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&d:r[u]=d}})}),t==="allSelect"||t==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function m1o(t){t.registerAction("legendToggleSelect","legendselectchanged",fa(tY,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",fa(tY,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",fa(tY,"inverseSelect")),t.registerAction("legendSelect","legendselected",fa(tY,"select")),t.registerAction("legendUnSelect","legendunselected",fa(tY,"unSelect"))}function xjn(t){t.registerComponentModel(WWe),t.registerComponentView(bjn),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,p1o),t.registerSubTypeDefaulter("legend",function(){return"plain"}),m1o(t)}var g1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,a){var o=DV(n);t.prototype.init.call(this,n,r,a),T4t(this,n,o)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),T4t(this,this.option,n)},e.type="legend.scroll",e.defaultOption=EO(WWe.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(WWe);function T4t(t,e,n){var r=t.getOrient(),a=[1,1];a[r.index]=0,MP(e,n,{type:"box",ignoreSize:!!a})}const v1o=g1o;var C4t=ta,$8e=["width","height"],F8e=["x","y"],A1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new C4t),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new C4t)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,a,o,s,l,c){var u=this;t.prototype.renderInner.call(this,n,r,a,o,s,l,c);var d=this._controllerGroup,h=r.get("pageIconSize",!0),f=Tn(h)?h:[h,h];m("pagePrev",0);var p=r.getModel("pageTextStyle");d.add(new Jo({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1);function m(g,v){var A=g+"DataIndex",y=PV(r.get("pageIcons",!0)[r.getOrient().name][v],{onclick:Cr(u._pageGo,u,A,r,o)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=g,d.add(y)}},e.prototype.layoutInner=function(n,r,a,o,s,l){var c=this.getSelectorGroup(),u=n.getOrient().index,d=$8e[u],h=F8e[u],f=$8e[1-u],p=F8e[1-u];s&&OD("horizontal",c,n.get("selectorItemGap",!0));var m=n.get("selectorButtonGap",!0),g=c.getBoundingRect(),v=[-g.x,-g.y],A=ji(a);s&&(A[d]=a[d]-g[d]-m);var y=this._layoutContentAndController(n,o,A,u,d,f,p,h);if(s){if(l==="end")v[u]+=y[d]+m;else{var S=g[d]+m;v[u]-=S,y[h]-=S}y[d]+=g[d]+m,v[1-u]+=y[p]+y[f]/2-g[f]/2,y[f]=Math.max(y[f],g[f]),y[p]=Math.min(y[p],g[p]+v[1-u]),c.x=v[0],c.y=v[1],c.markRedraw()}return y},e.prototype._layoutContentAndController=function(n,r,a,o,s,l,c,u){var d=this.getContentGroup(),h=this._containerGroup,f=this._controllerGroup;OD(n.get("orient"),d,n.get("itemGap"),o?a.width:null,o?null:a.height),OD("horizontal",f,n.get("pageButtonItemGap",!0));var p=d.getBoundingRect(),m=f.getBoundingRect(),g=this._showController=p[s]>a[s],v=[-p.x,-p.y];r||(v[o]=d[u]);var A=[0,0],y=[-m.x,-m.y],S=pa(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var x=n.get("pageButtonPosition",!0);x==="end"?y[o]+=a[s]-m[s]:A[o]+=m[s]+S}y[1-o]+=p[l]/2-m[l]/2,d.setPosition(v),h.setPosition(A),f.setPosition(y);var w={x:0,y:0};if(w[s]=g?a[s]:p[s],w[l]=Math.max(p[l],m[l]),w[c]=Math.min(0,m[c]+y[1-o]),h.__rectSize=a[s],g){var _={x:0,y:0};_[s]=Math.max(a[s]-m[s]-S,0),_[l]=w[l],h.setClipPath(new Zo({shape:_})),h.__rectSize=_[s]}else f.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(n);return C.pageIndex!=null&&vs(d,{x:C.contentPosition[0],y:C.contentPosition[1]},g?n:null),this._updatePageInfoView(n,C),w},e.prototype._pageGo=function(n,r,a){var o=this._getPageInfo(r)[n];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;Ie(["pagePrev","pageNext"],function(d){var h=d+"DataIndex",f=r[h]!=null,p=a.childOfName(d);p&&(p.setStyle("fill",f?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=f?"pointer":"default")});var o=a.childOfName("pageText"),s=n.get("pageFormatter"),l=r.pageIndex,c=l!=null?l+1:0,u=r.pageCount;o&&s&&o.setStyle("text",vr(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",u==null?"":u+""):s({current:c,total:u}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,s=n.getOrient().index,l=$8e[s],c=F8e[s],u=this._findTargetItemIndex(r),d=a.children(),h=d[u],f=d.length,p=f?1:0,m={contentPosition:[a.x,a.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return m;var g=x(h);m.contentPosition[s]=-g.s;for(var v=u+1,A=g,y=g,S=null;v<=f;++v)S=x(d[v]),(!S&&y.e>A.s+o||S&&!w(S,A.s))&&(y.i>A.i?A=y:A=S,A&&(m.pageNextDataIndex==null&&(m.pageNextDataIndex=A.i),++m.pageCount)),y=S;for(var v=u-1,A=g,y=g,S=null;v>=-1;--v)S=x(d[v]),(!S||!w(y,S.s))&&A.i<y.i&&(y=A,m.pagePrevDataIndex==null&&(m.pagePrevDataIndex=A.i),++m.pageCount,++m.pageIndex),A=S;return m;function x(_){if(_){var C=_.getBoundingRect(),R=C[c]+_[c];return{s:R,e:R+C[l],i:_.__legendDataIndex}}}function w(_,C){return _.e>=C&&_.s<=C+o}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),o;return a.eachChild(function(s,l){var c=s.__legendDataIndex;o==null&&c!=null&&(o=l),c===n&&(r=l)}),r??o},e.type="legend.scroll",e}(bjn);const y1o=A1o;function b1o(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function x1o(t){qa(xjn),t.registerComponentModel(v1o),t.registerComponentView(y1o),b1o(t)}function E1o(t){qa(xjn),qa(x1o)}var S1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=EO(Cre.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Cre);const w1o=S1o;var hlt=ds();function _1o(t,e,n){hlt(t).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=n)})}function T1o(t,e){for(var n=hlt(t).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var o=r[a],s=n.get(o),l=s.dataZoomInfoMap;if(l){var c=e.uid,u=l.get(c);u&&(l.removeKey(c),l.keys().length||Ejn(n,s))}}}function Ejn(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function C1o(t,e){var n={model:e,containsPoint:fa(R1o,e),dispatchAction:fa(k1o,t),dataZoomInfoMap:null,controller:null},r=n.controller=new Ase(t.getZr());return Ie(["pan","zoom","scrollMove"],function(a){r.on(a,function(o){var s=[];n.dataZoomInfoMap.each(function(l){if(o.isAvailableBehavior(l.model.option)){var c=(l.getRange||{})[a],u=c&&c(l.dzReferCoordSysInfo,n.model.mainType,n.controller,o);!l.model.get("disabled",!0)&&u&&s.push({dataZoomId:l.model.id,start:u[0],end:u[1]})}}),s.length&&n.dispatchAction(s)})}),n}function k1o(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function R1o(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function M1o(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each(function(o){var s=o.model,l=s.get("disabled",!0)?!1:s.get("zoomLock",!0)?"move":!0;r[n+l]>r[n+e]&&(e=l),a=a&&s.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function N1o(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=hlt(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Ur());a.each(function(o){o.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var s=rjn(o);Ie(s.infoList,function(l){var c=l.model.uid,u=a.get(c)||a.set(c,C1o(n,l.model)),d=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ur());d.set(o.uid,{dzReferCoordSysInfo:l,model:o,getRange:null})})}),a.each(function(o){var s=o.controller,l,c=o.dataZoomInfoMap;if(c){var u=c.keys()[0];u!=null&&(l=c.get(u))}if(!l){Ejn(a,o);return}var d=M1o(c);s.enable(d.controlType,d.opt),s.setPointerChecker(o.containsPoint),UV(o,"dispatchAction",l.model.get("throttle",!0),"fixRate")})})}var I1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,a){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),_1o(a,n,{pan:Cr(j8e.pan,this),zoom:Cr(j8e.zoom,this),scrollMove:Cr(j8e.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){T1o(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(rlt),j8e={zoom:function(t,e,n,r){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=H8e[e](null,[r.originX,r.originY],s,n,t),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-c)*u+c,o[1]=(o[1]-c)*u+c;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(k9(0,o,[0,100],0,d.minSpan,d.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}},pan:k4t(function(t,e,n,r,a,o){var s=H8e[r]([o.oldX,o.oldY],[o.newX,o.newY],e,a,n);return s.signal*(t[1]-t[0])*s.pixel/s.pixelLength}),scrollMove:k4t(function(t,e,n,r,a,o){var s=H8e[r]([0,0],[o.scrollDelta,o.scrollDelta],e,a,n);return s.signal*(t[1]-t[0])*o.scrollDelta})};function k4t(t){return function(e,n,r,a){var o=this.range,s=o.slice(),l=e.axisModels[0];if(l){var c=t(s,l,e,n,r,a);if(k9(c,s,[0,100],"all"),this.range=s,o[0]!==s[0]||o[1]!==s[1])return s}}}var H8e={grid:function(t,e,n,r,a){var o=n.axis,s={},l=a.model.coordinateSystem.getRect();return t=t||[0,0],o.dim==="x"?(s.pixel=e[0]-t[0],s.pixelLength=l.width,s.pixelStart=l.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=l.height,s.pixelStart=l.y,s.signal=o.inverse?-1:1),s},polar:function(t,e,n,r,a){var o=n.axis,s={},l=a.model.coordinateSystem,c=l.getRadiusAxis().getExtent(),u=l.getAngleAxis().getExtent();return t=t?l.pointToCoord(t):[0,0],e=l.pointToCoord(e),n.mainType==="radiusAxis"?(s.pixel=e[0]-t[0],s.pixelLength=c[1]-c[0],s.pixelStart=c[0],s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=u[1]-u[0],s.pixelStart=u[0],s.signal=o.inverse?-1:1),s},singleAxis:function(t,e,n,r,a){var o=n.axis,s=a.model.coordinateSystem.getRect(),l={};return t=t||[0,0],o.orient==="horizontal"?(l.pixel=e[0]-t[0],l.pixelLength=s.width,l.pixelStart=s.x,l.signal=o.inverse?1:-1):(l.pixel=e[1]-t[1],l.pixelLength=s.height,l.pixelStart=s.y,l.signal=o.inverse?-1:1),l}};const P1o=I1o;function Sjn(t){ilt(t),t.registerComponentModel(w1o),t.registerComponentView(P1o),N1o(t)}var O1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=EO(Cre.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Cre);const L1o=O1o;var nY=Zo,R4t=7,B1o=1,U8e=30,D1o=7,rY="horizontal",M4t="vertical",$1o=5,F1o=["line","bar","candlestick","scatter"],j1o={easing:"cubicOut",duration:100,delay:0},H1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=Cr(this._onBrush,this),this._onBrushEnd=Cr(this._onBrushEnd,this)},e.prototype.render=function(n,r,a,o){if(t.prototype.render.apply(this,arguments),UV(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){mre(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new ta;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),o=a?D1o:0,s=this._findCoordRect(),l={width:r.getWidth(),height:r.getHeight()},c=this._orient===rY?{right:l.width-s.x-s.width,top:l.height-U8e-R4t-o,width:s.width,height:U8e}:{right:R4t,top:s.y,width:U8e,height:s.height},u=DV(n.option);Ie(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=c[h])});var d=nf(u,l);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===M4t&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),s=o&&o.get("inverse"),l=this._displayables.sliderGroup,c=(this._dataShadowInfo||{}).otherAxisInverse;l.attr(a===rY&&!s?{scaleY:c?1:-1,scaleX:1}:a===rY&&s?{scaleY:c?1:-1,scaleX:-1}:a===M4t&&!s?{scaleY:c?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:c?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([l]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,o=n.get("brushSelect");a.add(new nY({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var s=new nY({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Cr(this._onClickPanel,this)}),l=this.api.getZr();o?(s.on("mousedown",this._onBrushStart,this),s.cursor="crosshair",l.on("mousemove",this._onBrush),l.on("mouseup",this._onBrushEnd)):(l.off("mousemove",this._onBrush),l.off("mouseup",this._onBrushEnd)),a.add(s)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],o=n.series,s=o.getRawData(),l=o.getShadowDim&&o.getShadowDim(),c=l&&s.getDimensionInfo(l)?o.getShadowDim():n.otherDim;if(c==null)return;var u=this._shadowPolygonPts,d=this._shadowPolylinePts;if(s!==this._shadowData||c!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var h=s.getDataExtent(c),f=(h[1]-h[0])*.3;h=[h[0]-f,h[1]+f];var p=[0,r[1]],m=[0,r[0]],g=[[r[0],0],[0,0]],v=[],A=m[1]/(s.count()-1),y=0,S=Math.round(s.count()/r[0]),x;s.each([c],function(k,P){if(S>0&&P%S){y+=A;return}var N=k==null||isNaN(k)||k==="",L=N?0:ol(k,h,p,!0);N&&!x&&P?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!N&&x&&(g.push([y,0]),v.push([y,0])),g.push([y,L]),v.push([y,L]),y+=A,x=N}),u=this._shadowPolygonPts=g,d=this._shadowPolylinePts=v}this._shadowData=s,this._shadowDim=c,this._shadowSize=[r[0],r[1]];var w=this.dataZoomModel;function _(k){var P=w.getModel(k?"selectedDataBackground":"dataBackground"),N=new ta,L=new Y0({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new aA({shape:{points:d},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return N.add(L),N.add(I),N}for(var C=0;C<3;C++){var R=_(C===1);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,o=this.ecModel;return n.eachTargetAxis(function(s,l){var c=n.getAxisProxy(s,l).getTargetSeriesModels();Ie(c,function(u){if(!a&&!(r!==!0&&za(F1o,u.get("type"))<0)){var d=o.getComponent(n5(s),l).axis,h=U1o(s),f,p=u.coordinateSystem;h!=null&&p.getOtherAxis&&(f=p.getOtherAxis(d).inverse),h=u.getData().mapDimension(h),a={thisAxis:d,series:u,thisDim:s,otherDim:h,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],o=r.handleLabels=[null,null],s=this._displayables.sliderGroup,l=this._size,c=this.dataZoomModel,u=this.api,d=c.get("borderRadius")||0,h=c.get("brushSelect"),f=r.filler=new nY({silent:h,style:{fill:c.get("fillerColor")},textConfig:{position:"inside"}});s.add(f),s.add(new nY({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:l[0],height:l[1],r:d},style:{stroke:c.get("dataBackgroundColor")||c.get("borderColor"),lineWidth:B1o,fill:"rgba(0,0,0,0)"}})),Ie([0,1],function(S){var x=c.get("handleIcon");!K1e[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var w=vh(x,-1,0,2,2,null,!0);w.attr({cursor:N4t(this._orient),draggable:!0,drift:Cr(this._onDragMove,this,S),ondragend:Cr(this._onDragEnd,this),onmouseover:Cr(this._showDataInfo,this,!0),onmouseout:Cr(this._showDataInfo,this,!1),z2:5});var _=w.getBoundingRect(),C=c.get("handleSize");this._handleHeight=lr(C,this._size[1]),this._handleWidth=_.width/_.height*this._handleHeight,w.setStyle(c.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=c.getModel(["emphasis","handleStyle"]).getItemStyle(),I5(w);var R=c.get("handleColor");R!=null&&(w.style.fill=R),s.add(a[S]=w);var k=c.getModel("textStyle");n.add(o[S]=new Jo({silent:!0,invisible:!0,style:yc(k,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:k.getTextColor(),font:k.getFont()}),z2:10}))},this);var p=f;if(h){var m=lr(c.get("moveHandleSize"),l[1]),g=r.moveHandle=new Zo({style:c.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:l[1]-.5,height:m}}),v=m*.8,A=r.moveHandleIcon=vh(c.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);A.silent=!0,A.y=l[1]+m/2-.5,g.ensureState("emphasis").style=c.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(l[1]/2,Math.max(m,10));p=r.moveZone=new Zo({invisible:!0,shape:{y:l[1]-y,height:m+y}}),p.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),s.add(g),s.add(A),s.add(p)}p.attr({draggable:!0,cursor:N4t(this._orient),drift:Cr(this._onDragMove,this,"all"),ondragstart:Cr(this._showDataInfo,this,!0),ondragend:Cr(this._onDragEnd,this),onmouseover:Cr(this._showDataInfo,this,!0),onmouseout:Cr(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[ol(n[0],[0,100],r,!0),ol(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,o=this._handleEnds,s=this._getViewExtent(),l=a.findRepresentativeAxisProxy().getMinMaxSpan(),c=[0,100];k9(r,o,s,a.get("zoomLock")?"all":n,l.minSpan!=null?ol(l.minSpan,c,s,!0):null,l.maxSpan!=null?ol(l.maxSpan,c,s,!0):null);var u=this._range,d=this._range=Py([ol(o[0],s,c,!0),ol(o[1],s,c,!0)]);return!u||u[0]!==d[0]||u[1]!==d[1]},e.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,o=Py(a.slice()),s=this._size;Ie([0,1],function(p){var m=r.handles[p],g=this._handleHeight;m.attr({scaleX:g/2,scaleY:g/2,x:a[p]+(p?-1:1),y:s[1]/2-g/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:s[1]});var l={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(l),r.moveZone.setShape(l),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",l.x+l.width/2));for(var c=r.dataShadowSegs,u=[0,o[0],o[1],s[0]],d=0;d<c.length;d++){var h=c[d],f=h.getClipPath();f||(f=new Zo,h.setClipPath(f)),f.setShape({x:u[d],y:0,width:u[d+1]-u[d],height:s[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,o=a.handleLabels,s=this._orient,l=["",""];if(r.get("showDetail")){var c=r.findRepresentativeAxisProxy();if(c){var u=c.getAxisModel().axis,d=this._range,h=n?c.calculateDataWindow({start:d[0],end:d[1]}).valueWindow:c.getDataValueWindow();l=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var f=Py(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(m){var g=P5(a.handles[m].parent,this.group),v=XTe(m===0?"right":"left",g),A=this._handleWidth/2+$1o,y=xw([f[m]+(m===0?-A:A),this._size[1]/2],g);o[m].setStyle({x:y[0],y:y[1],verticalAlign:s===rY?"middle":v,align:s===rY?v:"center",text:l[m]})}},e.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,o=a.get("labelFormatter"),s=a.get("labelPrecision");(s==null||s==="auto")&&(s=r.getPixelPrecision());var l=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(s,20));return ai(o)?o(n,l):vr(o)?o.replace("{value}",l):l},e.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,a=r.handleLabels;a[0].attr("invisible",!n),a[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(n,r,a,o){this._dragging=!0,MM(o.event);var s=this._displayables.sliderGroup.getLocalTransform(),l=xw([r,a],s,!0),c=this._updateInterval(n,l[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),c&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var o=this._handleEnds,s=(o[0]+o[1])/2,l=this._updateInterval("all",a[0]-s);this._updateView(),l&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Oa(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(a.width)<5)){var s=this._getViewExtent(),l=[0,100];this._range=Py([ol(a.x,s,l,!0),ol(a.x+a.width,s,l,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(MM(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var a=this._displayables,o=this.dataZoomModel,s=a.brushRect;s||(s=a.brushRect=new nY({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(s)),s.attr("ignore",!1);var l=this._brushStart,c=this._displayables.sliderGroup,u=c.transformCoordToLocal(n,r),d=c.transformCoordToLocal(l.x,l.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),s.setShape({x:d[0],y:0,width:u[0]-d[0],height:h[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?j1o:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=rjn(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var o=this.api.getWidth(),s=this.api.getHeight();n={x:o*.2,y:s*.2,width:o*.6,height:s*.6}}return n},e.type="dataZoom.slider",e}(rlt);function U1o(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function N4t(t){return t==="vertical"?"ns-resize":"ew-resize"}const z1o=H1o;function wjn(t){t.registerComponentModel(L1o),t.registerComponentView(z1o),ilt(t)}function G1o(t){qa(Sjn),qa(wjn)}var V1o={get:function(t,e,n){var r=ji((K1o[t]||{})[e]);return n&&Tn(r)?r[r.length-1]:r}},K1o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const _jn=V1o;var I4t=ag.mapVisual,W1o=ag.eachVisual,Q1o=Tn,P4t=Ie,q1o=Py,Y1o=ol,J1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.optionUpdated=function(n,r){var a=this.option;!r&&fjn(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=Cr(n,this),this.controllerVisuals=GWe(this.option.controller,r,n),this.targetVisuals=GWe(this.option.target,r,n)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,o){r.push(o)}):r=Ql(n),r},e.prototype.eachTargetSeries=function(n,r){Ie(this.getTargetSeriesIndices(),function(a){var o=this.ecModel.getSeriesByIndex(a);o&&n.call(r,o)},this)},e.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},e.prototype.formatValueText=function(n,r,a){var o=this.option,s=o.precision,l=this.dataBound,c=o.formatter,u;a=a||["<",">"],Tn(n)&&(n=n.slice(),u=!0);var d=r?n:u?[h(n[0]),h(n[1])]:h(n);if(vr(c))return c.replace("{value}",u?d[0]:d).replace("{value2}",u?d[1]:d);if(ai(c))return u?c(n[0],n[1]):c(n);if(u)return n[0]===l[0]?a[0]+" "+d[1]:n[1]===l[1]?a[1]+" "+d[0]:d[0]+" - "+d[1];return d;function h(f){return f===l[0]?"min":f===l[1]?"max":(+f).toFixed(Math.min(s,20))}},e.prototype.resetExtent=function(){var n=this.option,r=q1o([n.min,n.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,o=a.length-1;o>=0;o--){var s=a[o],l=n.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),s=r.controller||(r.controller={});Ra(o,a),Ra(s,a);var l=this.isCategory();c.call(this,o),c.call(this,s),u.call(this,o,"inRange","outOfRange"),d.call(this,s);function c(h){Q1o(r.color)&&!h.inRange&&(h.inRange={color:r.color.slice().reverse()}),h.inRange=h.inRange||{color:n.get("gradientColor")}}function u(h,f,p){var m=h[f],g=h[p];m&&!g&&(g=h[p]={},P4t(m,function(v,A){if(ag.isValidType(A)){var y=_jn.get(A,"inactive",l);y!=null&&(g[A]=y,A==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function d(h){var f=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,p=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,m=this.get("inactiveColor"),g=this.getItemSymbol(),v=g||"roundRect";P4t(this.stateList,function(A){var y=this.itemSize,S=h[A];S||(S=h[A]={color:l?m:[m]}),S.symbol==null&&(S.symbol=f&&ji(f)||(l?v:[v])),S.symbolSize==null&&(S.symbolSize=p&&ji(p)||(l?y[0]:[y[0],y[0]])),S.symbol=I4t(S.symbol,function(_){return _==="none"?v:_});var x=S.symbolSize;if(x!=null){var w=-1/0;W1o(x,function(_){_>w&&(w=_)}),S.symbolSize=I4t(x,function(_){return Y1o(_,[0,w],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(n){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(n){return null},e.prototype.getVisualMeta=function(n){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Fo);const yye=J1o;var O4t=[20,140],Z1o=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=O4t[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=O4t[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Tn(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),Ie(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},e.prototype.getSelected=function(){var n=this.getExtent(),r=Py((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},e.prototype.getValueState=function(n){var r=this.option.range,a=this.getExtent();return(r[0]<=a[0]||r[0]<=n)&&(r[1]>=a[1]||n<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,c){n[0]<=l&&l<=n[1]&&o.push(c)},this),r.push({seriesId:a.id,dataIndex:o})},this),r},e.prototype.getVisualMeta=function(n){var r=L4t(this,"outOfRange",this.getExtent()),a=L4t(this,"inRange",this.option.range.slice()),o=[];function s(p,m){o.push({value:p,color:n(p,m)})}for(var l=0,c=0,u=a.length,d=r.length;c<d&&(!a.length||r[c]<=a[0]);c++)r[c]<a[l]&&s(r[c],"outOfRange");for(var h=1;l<u;l++,h=0)h&&o.length&&s(a[l],"outOfRange"),s(a[l],"inRange");for(var h=1;c<d;c++)(!a.length||a[a.length-1]<r[c])&&(h&&(o.length&&s(o[o.length-1].value,"outOfRange"),h=0),s(r[c],"outOfRange"));var f=o.length;return{stops:o,outerColors:[f?o[0].color:"transparent",f?o[f-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=EO(yye.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(yye);function L4t(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,a=(n[1]-n[0])/r,o=n[0],s=[],l=0;l<=r&&o<n[1];l++)s.push(o),o+=a;return s.push(n[1]),s}const X1o=Z1o;var eyo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r},e.prototype.render=function(n,r,a,o){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,a,o)},e.prototype.renderBackground=function(n){var r=this.visualMapModel,a=w9(r.get("padding")||0),o=n.getBoundingRect();n.add(new Zo({z2:-1,silent:!0,shape:{x:o.x-a[3],y:o.y-a[0],width:o.width+a[3]+a[1],height:o.height+a[0]+a[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(n,r,a){a=a||{};var o=a.forceState,s=this.visualMapModel,l={};if(r==="color"){var c=s.get("contentColor");l.color=c}function u(p){return l[p]}function d(p,m){l[p]=m}var h=s.controllerVisuals[o||s.getValueState(n)],f=ag.prepareVisualTypes(h);return Ie(f,function(p){var m=h[p];a.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",m=h.__alphaForOpacity),ag.dependsOn(p,r)&&m&&m.applyVisual(n,u,d)}),l[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;a2e(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(n,r,a,o){},e.type="visualMap",e}(Au);const Tjn=eyo;var B4t=[["left","right","width"],["top","bottom","height"]];function Cjn(t,e,n){var r=t.option,a=r.align;if(a!=null&&a!=="auto")return a;for(var o={width:e.getWidth(),height:e.getHeight()},s=r.orient==="horizontal"?1:0,l=B4t[s],c=[0,null,10],u={},d=0;d<3;d++)u[B4t[1-s][d]]=c[d],u[l[d]]=d===2?n[0]:r[l[d]];var h=[["x","width",3],["y","height",0]][s],f=nf(u,o,r.padding);return l[(f.margin[h[2]]||0)+f[h[0]]+f[h[1]]*.5<o[h[1]]*.5?0:1]}function fge(t,e){return Ie(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var cT=ol,tyo=Ie,D4t=Math.min,z8e=Math.max,nyo=12,ryo=6,iyo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return e.prototype.init=function(n,r){t.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=Cr(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Cr(this._hideIndicator,this)},e.prototype.doRender=function(n,r,a,o){(!o||o.type!=="selectDataRange"||o.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var a=n.get("text");this._renderEndsText(r,a,0),this._renderEndsText(r,a,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(n,r,a){if(r){var o=r[1-a];o=o!=null?o+"":"";var s=this.visualMapModel,l=s.get("textGap"),c=s.itemSize,u=this._shapes.mainGroup,d=this._applyTransform([c[0]/2,a===0?-l:c[1]+l],u),h=this._applyTransform(a===0?"bottom":"top",u),f=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Jo({style:yc(p,{x:d[0],y:d[1],verticalAlign:f==="horizontal"?"middle":h,align:f==="horizontal"?h:"center",text:o})}))}},e.prototype._renderBar=function(n){var r=this.visualMapModel,a=this._shapes,o=r.itemSize,s=this._orient,l=this._useHandle,c=Cjn(r,this.api,o),u=a.mainGroup=this._createBarGroup(c),d=new ta;u.add(d),d.add(a.outOfRange=$4t()),d.add(a.inRange=$4t(null,l?j4t(this._orient):null,Cr(this._dragHandle,this,"all",!1),Cr(this._dragHandle,this,"all",!0))),d.setClipPath(new Zo({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var h=r.textStyleModel.getTextRect("国"),f=z8e(h.width,h.height);l&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(r,u,0,o,f,s),this._createHandle(r,u,1,o,f,s)),this._createIndicator(r,u,o,f,s),n.add(u)},e.prototype._createHandle=function(n,r,a,o,s,l){var c=Cr(this._dragHandle,this,a,!1),u=Cr(this._dragHandle,this,a,!0),d=$w(n.get("handleSize"),o[0]),h=vh(n.get("handleIcon"),-d/2,-d/2,d,d,null,!0),f=j4t(this._orient);h.attr({cursor:f,draggable:!0,drift:c,ondragend:u,onmousemove:function(A){MM(A.event)}}),h.x=o[0]/2,h.useStyle(n.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),XB(h,!0),r.add(h);var p=this.visualMapModel.textStyleModel,m=new Jo({cursor:f,draggable:!0,drift:c,onmousemove:function(A){MM(A.event)},ondragend:u,style:yc(p,{x:0,y:0,text:""})});m.ensureState("blur").style={opacity:.1},m.stateTransition={duration:200},this.group.add(m);var g=[d,0],v=this._shapes;v.handleThumbs[a]=h,v.handleLabelPoints[a]=g,v.handleLabels[a]=m},e.prototype._createIndicator=function(n,r,a,o,s){var l=$w(n.get("indicatorSize"),a[0]),c=vh(n.get("indicatorIcon"),-l/2,-l/2,l,l,null,!0);c.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(c instanceof fm){var d=c.style;c.useStyle(An({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},u))}else c.useStyle(u);r.add(c);var h=this.visualMapModel.textStyleModel,f=new Jo({silent:!0,invisible:!0,style:yc(h,{x:0,y:0,text:""})});this.group.add(f);var p=[(s==="horizontal"?o/2:ryo)+a[0]/2,0],m=this._shapes;m.indicator=c,m.indicatorLabel=f,m.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(n,r,a,o){if(this._useHandle){if(this._dragging=!r,!r){var s=this._applyTransform([a,o],this._shapes.mainGroup,!0);this._updateInterval(n,s[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():F4t(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},e.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),a=n.getExtent(),o=[0,n.itemSize[1]];this._handleEnds=[cT(r[0],a,o,!0),cT(r[1],a,o,!0)]},e.prototype._updateInterval=function(n,r){r=r||0;var a=this.visualMapModel,o=this._handleEnds,s=[0,a.itemSize[1]];k9(r,o,s,n,0);var l=a.getExtent();this._dataInterval=[cT(o[0],s,l,!0),cT(o[1],s,l,!0)]},e.prototype._updateView=function(n){var r=this.visualMapModel,a=r.getExtent(),o=this._shapes,s=[0,r.itemSize[1]],l=n?s:this._handleEnds,c=this._createBarVisual(this._dataInterval,a,l,"inRange"),u=this._createBarVisual(a,a,s,"outOfRange");o.inRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(l,c)},e.prototype._createBarVisual=function(n,r,a,o){var s={forceState:o,convertOpacityToAlpha:!0},l=this._makeColorGradient(n,s),c=[this.getControllerVisual(n[0],"symbolSize",s),this.getControllerVisual(n[1],"symbolSize",s)],u=this._createBarPoints(a,c);return{barColor:new NV(0,0,0,1,l),barPoints:u,handlesColor:[l[0].color,l[l.length-1].color]}},e.prototype._makeColorGradient=function(n,r){var a=100,o=[],s=(n[1]-n[0])/a;o.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var l=1;l<a;l++){var c=n[0]+s*l;if(c>n[1])break;o.push({color:this.getControllerVisual(c,"color",r),offset:l/a})}return o.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),o},e.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},e.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new ta(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},e.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,o=this.visualMapModel,s=a.handleThumbs,l=a.handleLabels,c=o.itemSize,u=o.getExtent();tyo([0,1],function(d){var h=s[d];h.setStyle("fill",r.handlesColor[d]),h.y=n[d];var f=cT(n[d],[0,c[1]],u,!0),p=this.getControllerVisual(f,"symbolSize");h.scaleX=h.scaleY=p/c[0],h.x=c[0]-p/2;var m=xw(a.handleLabelPoints[d],P5(h,this.group));l[d].setStyle({x:m[0],y:m[1],text:o.formatValueText(this._dataInterval[d]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,a,o){var s=this.visualMapModel,l=s.getExtent(),c=s.itemSize,u=[0,c[1]],d=this._shapes,h=d.indicator;if(h){h.attr("invisible",!1);var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(n,"color",f),m=this.getControllerVisual(n,"symbolSize"),g=cT(n,l,u,!0),v=c[0]-m/2,A={x:h.x,y:h.y};h.y=g,h.x=v;var y=xw(d.indicatorLabelPoint,P5(h,this.group)),S=d.indicatorLabel;S.attr("invisible",!1);var x=this._applyTransform("left",d.mainGroup),w=this._orient,_=w==="horizontal";S.setStyle({text:(a||"")+s.formatValueText(r),verticalAlign:_?x:"middle",align:_?"center":x});var C={x:v,y:g,style:{fill:p}},R={style:{x:y[0],y:y[1]}};if(s.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var k={duration:100,easing:"cubicInOut",additive:!0};h.x=A.x,h.y=A.y,h.animateTo(C,k),S.animateTo(R,k)}else h.attr(C),S.attr(R);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var N=0;N<P.length;N++)this.api.enterBlur(P[N])}},e.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,o=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);o[1]=D4t(z8e(0,o[1]),a[1]),n._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=a[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(n,r){var a=this.visualMapModel,o=a.itemSize;if(a.option.hoverLink){var s=[0,o[1]],l=a.getExtent();n=D4t(z8e(s[0],n),s[1]);var c=ayo(a,l,s),u=[n-c,n+c],d=cT(n,s,l,!0),h=[cT(u[0],s,l,!0),cT(u[1],s,l,!0)];u[0]<s[0]&&(h[0]=-1/0),u[1]>s[1]&&(h[1]=1/0),r&&(h[0]===-1/0?this._showIndicator(d,h[1],"< ",c):h[1]===1/0?this._showIndicator(d,h[0],"> ",c):this._showIndicator(d,d,"≈ ",c));var f=this._hoverLinkDataIndices,p=[];(r||F4t(a))&&(p=this._hoverLinkDataIndices=a.findTargetDataIndices(h));var m=IZa(f,p);this._dispatchHighDown("downplay",fge(m[0],a)),this._dispatchHighDown("highlight",fge(m[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(tD(n.target,function(c){var u=ia(c);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(a)){var s=a.getData(r.dataType),l=s.getStore().get(o.getDataDimensionIndex(s),r.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},e.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a<r.length;a++)this.api.leaveBlur(r[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",fge(n,this.visualMapModel)),n.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(n,r,a,o){var s=P5(r,o?null:this.group);return Tn(n)?xw(n,s,a):XTe(n,s,a)},e.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Tjn);function $4t(t,e,n,r){return new Y0({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(a){MM(a.event)},ondragend:r})}function ayo(t,e,n){var r=nyo/2,a=t.get("hoverLinkDataSize");return a&&(r=cT(a,e,n,!0)/2),r}function F4t(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function j4t(t){return t==="vertical"?"ns-resize":"ew-resize"}const oyo=iyo;var syo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},lyo=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},cyo=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(r){var a=t.pipelineContext;!r.isTargetSeries(t)||a&&a.large||n.push(rAo(r.stateList,r.targetVisuals,Cr(r.getValueState,r),r.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var o=a.getVisualMeta(Cr(uyo,null,t,a))||{stops:[],outerColors:[]},s=a.getDataDimensionIndex(n);s>=0&&(o.dimension=s,r.push(o))}}),t.getData().setVisual("visualMeta",r)}}];function uyo(t,e,n,r){for(var a=e.targetVisuals[r],o=ag.prepareVisualTypes(a),s={color:cse(t.getData(),"color")},l=0,c=o.length;l<c;l++){var u=o[l],d=a[u==="opacity"?"__alphaForOpacity":u];d&&d.applyVisual(n,h,f)}return s.color;function h(p){return s[p]}function f(p,m){s[p]=m}}var H4t=Ie;function dyo(t){var e=t&&t.visualMap;Tn(e)||(e=e?[e]:[]),H4t(e,function(n){if(n){f7(n,"splitList")&&!f7(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Tn(r)&&H4t(r,function(a){Ci(a)&&(f7(a,"start")&&!f7(a,"min")&&(a.min=a.start),f7(a,"end")&&!f7(a,"max")&&(a.max=a.end))})}})}function f7(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var U4t=!1;function kjn(t){U4t||(U4t=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(syo,lyo),Ie(cyo,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(dyo))}function Rjn(t){t.registerComponentModel(X1o),t.registerComponentView(oyo),kjn(t)}var hyo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],fyo[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var o=this.option.categories;this.resetVisual(function(s,l){a==="categories"?(s.mappingMethod="category",s.categories=ji(o)):(s.dataExtent=this.getExtent(),s.mappingMethod="piecewise",s.pieceList=Rn(this._pieceList,function(c){return c=ji(c),l!=="inRange"&&(c.visual=null),c}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},a=ag.listVisualTypes(),o=this.isCategory();Ie(n.pieces,function(l){Ie(a,function(c){l.hasOwnProperty(c)&&(r[c]=1)})}),Ie(r,function(l,c){var u=!1;Ie(this.stateList,function(d){u=u||s(n,d,c)||s(n.target,d,c)},this),!u&&Ie(this.stateList,function(d){(n[d]||(n[d]={}))[c]=_jn.get(c,d==="inRange"?"active":"inactive",o)})},this);function s(l,c,u){return l&&l[c]&&l[c].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(n,r){var a=this.option,o=this._pieceList,s=(r?a:n).selected||{};if(a.selected=s,Ie(o,function(c,u){var d=this.getSelectedMapKey(c);s.hasOwnProperty(d)||(s[d]=!0)},this),a.selectedMode==="single"){var l=!1;Ie(o,function(c,u){var d=this.getSelectedMapKey(c);s[d]&&(l?s[d]=!1:l=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(n){this.option.selected=ji(n)},e.prototype.getValueState=function(n){var r=ag.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(o){var s=[],l=o.getData();l.each(this.getDataDimensionIndex(l),function(c,u){var d=ag.findPieceIndex(c,a);d===n&&s.push(u)},this),r.push({seriesId:o.id,dataIndex:s})},this),r},e.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],o=this;function s(d,h){var f=o.getRepresentValue({interval:d});h||(h=o.getValueState(f));var p=n(f,h);d[0]===-1/0?a[0]=p:d[1]===1/0?a[1]=p:r.push({value:d[0],color:p},{value:d[1],color:p})}var l=this._pieceList.slice();if(!l.length)l.push({interval:[-1/0,1/0]});else{var c=l[0].interval[0];c!==-1/0&&l.unshift({interval:[-1/0,c]}),c=l[l.length-1].interval[1],c!==1/0&&l.push({interval:[c,1/0]})}var u=-1/0;return Ie(l,function(d){var h=d.interval;h&&(h[0]>u&&s([u,h[0]],"outOfRange"),s(h.slice()),u=h[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=EO(yye.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(yye),fyo={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var o=(r[1]-r[0])/a;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var s=0,l=r[0];s<a;l+=o,s++){var c=s===a-1?r[1]:l+o;t.push({interval:[l,c],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),LKe(t),Ie(t,function(u,d){u.index=d,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;Ie(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),z4t(e,t)},pieces:function(t){var e=this.option;Ie(e.pieces,function(n,r){Ci(n)||(n={value:n});var a={text:"",index:r};if(n.label!=null&&(a.text=n.label),n.hasOwnProperty("value")){var o=a.value=n.value;a.interval=[o,o],a.close=[1,1]}else{for(var s=a.interval=[],l=a.close=[0,0],c=[1,0,1],u=[-1/0,1/0],d=[],h=0;h<2;h++){for(var f=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&s[h]==null;p++)s[h]=n[f[p]],l[h]=c[p],d[h]=p===2;s[h]==null&&(s[h]=u[h])}d[0]&&s[1]===1/0&&(l[0]=0),d[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(a.value=s[0])}a.visual=ag.retrieveVisuals(n),t.push(a)},this),z4t(e,t),LKe(t),Ie(t,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function z4t(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}const pyo=hyo;var myo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),o=r.textStyleModel,s=o.getFont(),l=o.getTextColor(),c=this._getItemAlign(),u=r.itemSize,d=this._getViewData(),h=d.endsText,f=gp(r.get("showLabel",!0),!h);h&&this._renderEndsText(n,h[0],u,f,c),Ie(d.viewPieceList,function(p){var m=p.piece,g=new ta;g.onclick=Cr(this._onItemClick,this,m),this._enableHoverLink(g,p.indexInModelPieceList);var v=r.getRepresentValue(m);if(this._createItemSymbol(g,v,[0,0,u[0],u[1]]),f){var A=this.visualMapModel.getValueState(v);g.add(new Jo({style:{x:c==="right"?-a:u[0]+a,y:u[1]/2,text:m.text,verticalAlign:"middle",align:c,font:s,fill:l,opacity:A==="outOfRange"?.5:1}}))}n.add(g)},this),h&&this._renderEndsText(n,h[1],u,f,c),OD(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},e.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(s){var l=a.visualMapModel;l.option.hoverLink&&a.api.dispatchAction({type:s,batch:fge(l.findTargetDataIndices(r),l)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return Cjn(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(n,r,a,o,s){if(r){var l=new ta,c=this.visualMapModel.textStyleModel;l.add(new Jo({style:yc(c,{x:o?s==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:o?s:"center",text:r})})),n.add(l)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=Rn(n.getPieceList(),function(l,c){return{piece:l,indexInModelPieceList:c}}),a=n.get("text"),o=n.get("orient"),s=n.get("inverse");return(o==="horizontal"?s:!s)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(n,r,a){n.add(vh(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,o=a.selectedMode;if(o){var s=ji(a.selected),l=r.getSelectedMapKey(n);o==="single"||o===!0?(s[l]=!0,Ie(s,function(c,u){s[u]=u===l})):s[l]=!s[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:s})}},e.type="visualMap.piecewise",e}(Tjn);const gyo=myo;function Mjn(t){t.registerComponentModel(pyo),t.registerComponentView(gyo),kjn(t)}function vyo(t){qa(Rjn),qa(Mjn)}var Ayo={label:{enabled:!0},decal:{show:!1}},G4t=ds(),yyo={};function byo(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=ji(Ayo);Ra(r.label,t.getLocaleModel().get("aria"),!1),Ra(n.option,r,!1),a(),o();function a(){var u=n.getModel("decal"),d=u.get("show");if(d){var h=Ur();t.eachSeries(function(f){if(!f.isColorBySeries()){var p=h.get(f.type);p||(p={},h.set(f.type,p)),G4t(f).scope=p}}),t.eachRawSeries(function(f){if(t.isSeriesFiltered(f))return;if(ai(f.enableAriaDecal)){f.enableAriaDecal();return}var p=f.getData();if(f.isColorBySeries()){var y=JKe(f.ecModel,f.name,yyo,t.getSeriesCount()),S=p.getVisual("decal");p.setVisual("decal",x(S,y))}else{var m=f.getRawData(),g={},v=G4t(f).scope;p.each(function(w){var _=p.getRawIndex(w);g[_]=w});var A=m.count();m.each(function(w){var _=g[w],C=m.getName(w)||w+"",R=JKe(f.ecModel,C,v,A),k=p.getItemVisual(_,"decal");p.setItemVisual(_,"decal",x(k,R))})}function x(w,_){var C=w?An(An({},_),w):_;return C.dirty=!0,C}})}}function o(){var u=t.getLocaleModel().get("aria"),d=n.getModel("label");if(d.option=bi(d.option,u),!!d.get("enabled")){var h=e.getZr().dom;if(d.get("description")){h.setAttribute("aria-label",d.get("description"));return}var f=t.getSeriesCount(),p=d.get(["data","maxCount"])||10,m=d.get(["series","maxCount"])||10,g=Math.min(f,m),v;if(!(f<1)){var A=l();if(A){var y=d.get(["general","withTitle"]);v=s(y,{title:A})}else v=d.get(["general","withoutTitle"]);var S=[],x=f>1?d.get(["series","multiple","prefix"]):d.get(["series","single","prefix"]);v+=s(x,{seriesCount:f}),t.eachSeries(function(R,k){if(k<g){var P=void 0,N=R.get("name"),L=N?"withName":"withoutName";P=f>1?d.get(["series","multiple",L]):d.get(["series","single",L]),P=s(P,{seriesId:R.seriesIndex,seriesName:R.get("name"),seriesType:c(R.subType)});var I=R.getData();if(I.count()>p){var b=d.get(["data","partialData"]);P+=s(b,{displayCnt:p})}else P+=d.get(["data","allData"]);for(var T=d.get(["data","separator","middle"]),M=d.get(["data","separator","end"]),D=[],B=0;B<I.count();B++)if(B<p){var j=I.getName(B),H=I.getValues(B),U=d.get(["data",j?"withName":"withoutName"]);D.push(s(U,{name:j,value:H.join(T)}))}P+=D.join(T)+M,S.push(P)}});var w=d.getModel(["series","multiple","separator"]),_=w.get("middle"),C=w.get("end");v+=S.join(_)+C,h.setAttribute("aria-label",v)}}}function s(u,d){if(!vr(u))return u;var h=u;return Ie(d,function(f,p){h=h.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),f)}),h}function l(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function c(u){var d=t.getLocaleModel().get(["series","typeNames"]);return d[u]||d.chart}}function xyo(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},Ie(["description","general","series","data"],function(n){e[n]!=null&&(e.label[n]=e[n])})}}function Eyo(t){t.registerPreprocessor(xyo),t.registerVisual(t.PRIORITY.VISUAL.ARIA,byo)}var V4t={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Syo=function(){function t(e){var n=this._condVal=vr(e)?new RegExp(e):RDn(e)?e:null;if(n==null){var r="";Zs(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return vr(n)?this._condVal.test(e):cs(n)?this._condVal.test(e+""):!1},t}(),wyo=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),_yo=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(!e[n].evaluate())return!1;return!0},t}(),Tyo=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(e[n].evaluate())return!0;return!1},t}(),Cyo=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),kyo=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=e?this.valueParser(r):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(e?a:r))return!1;return!0},t}();function flt(t,e){if(t===!0||t===!1){var n=new wyo;return n.value=t,n}var r="";return Njn(t)||Zs(r),t.and?K4t("and",t,e):t.or?K4t("or",t,e):t.not?Ryo(t,e):Myo(t,e)}function K4t(t,e,n){var r=e[t],a="";Tn(r)||Zs(a),r.length||Zs(a);var o=t==="and"?new _yo:new Tyo;return o.children=Rn(r,function(s){return flt(s,n)}),o.children.length||Zs(a),o}function Ryo(t,e){var n=t.not,r="";Njn(n)||Zs(r);var a=new Cyo;return a.child=flt(n,e),a.child||Zs(r),a}function Myo(t,e){for(var n="",r=e.prepareGetValue(t),a=[],o=bo(t),s=t.parser,l=s?n9n(s):null,c=0;c<o.length;c++){var u=o[c];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var d=Dr(V4t,u)?V4t[u]:u,h=t[u],f=l?l(h):h,p=Vto(d,f)||d==="reg"&&new Syo(f);p||Zs(n),a.push(p)}}a.length||Zs(n);var m=new kyo;return m.valueGetterParam=r,m.valueParser=l,m.getValue=e.getValue,m.subCondList=a,m}function Njn(t){return Ci(t)&&!ug(t)}var Nyo=function(){function t(e,n){this._cond=flt(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function Iyo(t,e){return new Nyo(t,e)}var Pyo={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=Iyo(t.config,{valueGetterAttrMap:Ur({dimension:!0}),prepareGetValue:function(l){var c="",u=l.dimension;Dr(l,"dimension")||Zs(c);var d=e.getDimensionInfo(u);return d||Zs(c),{dimIdx:d.index}},getValue:function(l){return e.retrieveValueFromItem(n,l.dimIdx)}}),a=[],o=0,s=e.count();o<s;o++)n=e.getRawDataItem(o),r.evaluate()&&a.push(n);return{data:a}}},Oyo={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",a=Ql(n);a.length||Zs(r);var o=[];Ie(a,function(d){var h=d.dimension,f=d.order,p=d.parser,m=d.incomparable;if(h==null&&Zs(r),f!=="asc"&&f!=="desc"&&Zs(r),m&&m!=="min"&&m!=="max"){var g="";Zs(g)}if(f!=="asc"&&f!=="desc"){var v="";Zs(v)}var A=e.getDimensionInfo(h);A||Zs(r);var y=p?n9n(p):null;p&&!y&&Zs(r),o.push({dimIdx:A.index,parser:y,comparator:new i9n(f,m)})});var s=e.sourceFormat;s!==Cv&&s!==TE&&Zs(r);for(var l=[],c=0,u=e.count();c<u;c++)l.push(e.getRawDataItem(c));return l.sort(function(d,h){for(var f=0;f<o.length;f++){var p=o[f],m=e.retrieveValueFromItem(d,p.dimIdx),g=e.retrieveValueFromItem(h,p.dimIdx);p.parser&&(m=p.parser(m),g=p.parser(g));var v=p.comparator.evaluate(m,g);if(v!==0)return v}return 0}),{data:l}}};function Lyo(t){t.registerTransform(Pyo),t.registerTransform(Oyo)}var Byo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,a){t.prototype.init.call(this,n,r,a),this._sourceManager=new l9n(this),QIt(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),QIt(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:M2},e}(Fo),Dyo=function(t){nn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(Au);function $yo(t){t.registerComponentModel(Byo),t.registerComponentView(Dyo)}var Z_=iC.CMD;function sj(t,e){return Math.abs(t-e)<1e-5}function JWe(t){var e=t.data,n=t.len(),r=[],a,o=0,s=0,l=0,c=0;function u(I,b){a&&a.length>2&&r.push(a),a=[I,b]}function d(I,b,T,M){sj(I,T)&&sj(b,M)||a.push(I,b,T,M,T,M)}function h(I,b,T,M,D,B){var j=Math.abs(b-I),H=Math.tan(j/4)*4/3,U=b<I?-1:1,$=Math.cos(I),z=Math.sin(I),Z=Math.cos(b),K=Math.sin(b),Q=$*D+T,ee=z*B+M,X=Z*D+T,te=K*B+M,J=D*H*U,ne=B*H*U;a.push(Q-J*z,ee+ne*$,X+J*K,te-ne*Z,X,te)}for(var f,p,m,g,v=0;v<n;){var A=e[v++],y=v===1;switch(y&&(o=e[v],s=e[v+1],l=o,c=s,(A===Z_.L||A===Z_.C||A===Z_.Q)&&(a=[l,c])),A){case Z_.M:o=l=e[v++],s=c=e[v++],u(l,c);break;case Z_.L:f=e[v++],p=e[v++],d(o,s,f,p),o=f,s=p;break;case Z_.C:a.push(e[v++],e[v++],e[v++],e[v++],o=e[v++],s=e[v++]);break;case Z_.Q:f=e[v++],p=e[v++],m=e[v++],g=e[v++],a.push(o+2/3*(f-o),s+2/3*(p-s),m+2/3*(f-m),g+2/3*(p-g),m,g),o=m,s=g;break;case Z_.A:var S=e[v++],x=e[v++],w=e[v++],_=e[v++],C=e[v++],R=e[v++]+C;v+=1;var k=!e[v++];f=Math.cos(C)*w+S,p=Math.sin(C)*_+x,y?(l=f,c=p,u(l,c)):d(o,s,f,p),o=Math.cos(R)*w+S,s=Math.sin(R)*_+x;for(var P=(k?-1:1)*Math.PI/2,N=C;k?N>R:N<R;N+=P){var L=k?Math.max(N+P,R):Math.min(N+P,R);h(N,L,S,x,w,_)}break;case Z_.R:l=o=e[v++],c=s=e[v++],f=l+e[v++],p=c+e[v++],u(f,c),d(f,c,f,p),d(f,p,l,p),d(l,p,l,c),d(l,c,f,c);break;case Z_.Z:a&&d(o,s,l,c),o=l,s=c;break}}return a&&a.length>2&&r.push(a),r}function ZWe(t,e,n,r,a,o,s,l,c,u){if(sj(t,n)&&sj(e,r)&&sj(a,s)&&sj(o,l)){c.push(s,l);return}var d=2/u,h=d*d,f=s-t,p=l-e,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var g=n-t,v=r-e,A=a-s,y=o-l,S=g*g+v*v,x=A*A+y*y;if(S<h&&x<h){c.push(s,l);return}var w=f*g+p*v,_=-f*A-p*y,C=S-w*w,R=x-_*_;if(C<h&&w>=0&&R<h&&_>=0){c.push(s,l);return}var k=[],P=[];kP(t,n,a,s,.5,k),kP(e,r,o,l,.5,P),ZWe(k[0],P[0],k[1],P[1],k[2],P[2],k[3],P[3],c,u),ZWe(k[4],P[4],k[5],P[5],k[6],P[6],k[7],P[7],c,u)}function Fyo(t,e){var n=JWe(t),r=[];e=e||1;for(var a=0;a<n.length;a++){var o=n[a],s=[],l=o[0],c=o[1];s.push(l,c);for(var u=2;u<o.length;){var d=o[u++],h=o[u++],f=o[u++],p=o[u++],m=o[u++],g=o[u++];ZWe(l,c,d,h,f,p,m,g,s,e),l=m,c=g}r.push(s)}return r}function Ijn(t,e,n){var r=t[e],a=t[1-e],o=Math.abs(r/a),s=Math.ceil(Math.sqrt(o*n)),l=Math.floor(n/s);l===0&&(l=1,s=n);for(var c=[],u=0;u<s;u++)c.push(l);var d=s*l,h=n-d;if(h>0)for(var u=0;u<h;u++)c[u%s]+=1;return c}function W4t(t,e,n){for(var r=t.r0,a=t.r,o=t.startAngle,s=t.endAngle,l=Math.abs(s-o),c=l*a,u=a-r,d=c>Math.abs(u),h=Ijn([c,u],d?0:1,e),f=(d?l:u)/h.length,p=0;p<h.length;p++)for(var m=(d?u:l)/h[p],g=0;g<h[p];g++){var v={};d?(v.startAngle=o+f*p,v.endAngle=o+f*(p+1),v.r0=r+m*g,v.r=r+m*(g+1)):(v.startAngle=o+m*g,v.endAngle=o+m*(g+1),v.r0=r+f*p,v.r=r+f*(p+1)),v.clockwise=t.clockwise,v.cx=t.cx,v.cy=t.cy,n.push(v)}}function jyo(t,e,n){for(var r=t.width,a=t.height,o=r>a,s=Ijn([r,a],o?0:1,e),l=o?"width":"height",c=o?"height":"width",u=o?"x":"y",d=o?"y":"x",h=t[l]/s.length,f=0;f<s.length;f++)for(var p=t[c]/s[f],m=0;m<s[f];m++){var g={};g[u]=f*h,g[d]=m*p,g[l]=h,g[c]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}function Q4t(t,e,n,r){return t*r-n*e}function Hyo(t,e,n,r,a,o,s,l){var c=n-t,u=r-e,d=s-a,h=l-o,f=Q4t(d,h,c,u);if(Math.abs(f)<1e-6)return null;var p=t-a,m=e-o,g=Q4t(p,m,d,h)/f;return g<0||g>1?null:new Oa(g*c+t,g*u+e)}function Uyo(t,e,n){var r=new Oa;Oa.sub(r,n,e),r.normalize();var a=new Oa;Oa.sub(a,t,e);var o=a.dot(r);return o}function p7(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function zyo(t,e,n){for(var r=t.length,a=[],o=0;o<r;o++){var s=t[o],l=t[(o+1)%r],c=Hyo(s[0],s[1],l[0],l[1],e.x,e.y,n.x,n.y);c&&a.push({projPt:Uyo(c,e,n),pt:c,idx:o})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(v,A){return v.projPt-A.projPt});var u=a[0],d=a[a.length-1];if(d.idx<u.idx){var h=u;u=d,d=h}for(var f=[u.pt.x,u.pt.y],p=[d.pt.x,d.pt.y],m=[f],g=[p],o=u.idx+1;o<=d.idx;o++)p7(m,t[o].slice());p7(m,p),p7(m,f);for(var o=d.idx+1;o<=u.idx+r;o++)p7(g,t[o%r].slice());return p7(g,f),p7(g,p),[{points:m},{points:g}]}function q4t(t){var e=t.points,n=[],r=[];KTe(e,n,r);var a=new Da(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=a.width,s=a.height,l=a.x,c=a.y,u=new Oa,d=new Oa;return o>s?(u.x=d.x=l+o/2,u.y=c,d.y=c+s):(u.y=d.y=c+s/2,u.x=l,d.x=l+o),zyo(e,u,d)}function bye(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),o=t(e);bye(t,o[0],a,r),bye(t,o[1],n-a,r)}return r}function Gyo(t,e){for(var n=[],r=0;r<e;r++)n.push(yot(t));return n}function Vyo(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Kyo(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function Wyo(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":jyo(r,e,n),a=Zo;break;case"sector":W4t(r,e,n),a=q0;break;case"circle":W4t({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=q0;break;default:var o=t.getComputedTransform(),s=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,l=Rn(Fyo(t.getUpdatedPathProxy(),s),function(A){return Kyo(A)}),c=l.length;if(c===0)bye(q4t,{points:l[0]},e,n);else if(c===e)for(var u=0;u<c;u++)n.push({points:l[u]});else{var d=0,h=Rn(l,function(A){var y=[],S=[];KTe(A,y,S);var x=(S[1]-y[1])*(S[0]-y[0]);return d+=x,{poly:A,area:x}});h.sort(function(A,y){return y.area-A.area});for(var f=e,u=0;u<c;u++){var p=h[u];if(f<=0)break;var m=u===c-1?f:Math.ceil(p.area/d*e);m<0||(bye(q4t,{points:p.poly},m,n),f-=m)}}a=Y0;break}if(!a)return Gyo(t,e);for(var g=[],u=0;u<n.length;u++){var v=new a;v.setShape(n[u]),Vyo(t,v),g.push(v)}return g}function Qyo(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var a=[],o=[],s=n<r?t:e,l=Math.min(n,r),c=Math.abs(r-n)/6,u=(l-2)/6,d=Math.ceil(c/u)+1,h=[s[0],s[1]],f=c,p=2;p<l;){var m=s[p-2],g=s[p-1],v=s[p++],A=s[p++],y=s[p++],S=s[p++],x=s[p++],w=s[p++];if(f<=0){h.push(v,A,y,S,x,w);continue}for(var _=Math.min(f,d-1)+1,C=1;C<=_;C++){var R=C/_;kP(m,v,y,x,R,a),kP(g,A,S,w,R,o),m=a[3],g=o[3],h.push(a[1],o[1],a[2],o[2],m,g),v=a[5],A=o[5],y=a[6],S=o[6]}f-=_-1}return s===t?[h,e]:[t,h]}function Y4t(t,e){for(var n=t.length,r=t[n-2],a=t[n-1],o=[],s=0;s<e.length;)o[s++]=r,o[s++]=a;return o}function qyo(t,e){for(var n,r,a,o=[],s=[],l=0;l<Math.max(t.length,e.length);l++){var c=t[l],u=e[l],d=void 0,h=void 0;c?u?(n=Qyo(c,u),d=n[0],h=n[1],r=d,a=h):(h=Y4t(a||c,c),d=c):(d=Y4t(r||u,u),h=u),o.push(d),s.push(h)}return[o,s]}function J4t(t){for(var e=0,n=0,r=0,a=t.length,o=0,s=a-2;o<a;s=o,o+=2){var l=t[s],c=t[s+1],u=t[o],d=t[o+1],h=l*d-u*c;e+=h,n+=(l+u)*h,r+=(c+d)*h}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function Yyo(t,e,n,r){for(var a=(t.length-2)/6,o=1/0,s=0,l=t.length,c=l-2,u=0;u<a;u++){for(var d=u*6,h=0,f=0;f<l;f+=2){var p=f===0?d:(d+f-2)%c+2,m=t[p]-n[0],g=t[p+1]-n[1],v=e[f]-r[0],A=e[f+1]-r[1],y=v-m,S=A-g;h+=y*y+S*S}h<o&&(o=h,s=u)}return s}function Jyo(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function Zyo(t,e,n,r){for(var a=[],o,s=0;s<t.length;s++){var l=t[s],c=e[s],u=J4t(l),d=J4t(c);o==null&&(o=u[2]<0!=d[2]<0);var h=[],f=[],p=0,m=1/0,g=[],v=l.length;o&&(l=Jyo(l));for(var A=Yyo(l,c,u,d)*6,y=v-2,S=0;S<y;S+=2){var x=(A+S)%y+2;h[S+2]=l[x]-u[0],h[S+3]=l[x+1]-u[1]}if(h[0]=l[A]-u[0],h[1]=l[A+1]-u[1],n>0)for(var w=r/n,_=-r/2;_<=r/2;_+=w){for(var C=Math.sin(_),R=Math.cos(_),k=0,S=0;S<l.length;S+=2){var P=h[S],N=h[S+1],L=c[S]-d[0],I=c[S+1]-d[1],b=L*R-I*C,T=L*C+I*R;g[S]=b,g[S+1]=T;var M=b-P,D=T-N;k+=M*M+D*D}if(k<m){m=k,p=_;for(var B=0;B<g.length;B++)f[B]=g[B]}}else for(var j=0;j<v;j+=2)f[j]=c[j]-d[0],f[j+1]=c[j+1]-d[1];a.push({from:h,to:f,fromCp:u,toCp:d,rotation:-p})}return a}function xye(t){return t.__isCombineMorphing}var Pjn="__mOriginal_";function Eye(t,e,n){var r=Pjn+e,a=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,s=n.after,l=n.before;t[e]=function(){var c=arguments,u;return l&&l.apply(this,c),o?u=o.apply(this,c):u=a.apply(this,c),s&&s.apply(this,c),u}}function kee(t,e){var n=Pjn+e;t[n]&&(t[e]=t[n],t[n]=null)}function Z4t(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;){var o=r[a],s=r[a+1];r[a++]=e[0]*o+e[2]*s+e[4],r[a++]=e[1]*o+e[3]*s+e[5]}}function Ojn(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=qyo(JWe(n),JWe(r)),o=a[0],s=a[1],l=t.getComputedTransform(),c=e.getComputedTransform();function u(){this.transform=null}l&&Z4t(o,l),c&&Z4t(s,c),Eye(e,"updateTransform",{replace:u}),e.transform=null;var d=Zyo(o,s,10,Math.PI),h=[];Eye(e,"buildPath",{replace:function(f){for(var p=e.__morphT,m=1-p,g=[],v=0;v<d.length;v++){var A=d[v],y=A.from,S=A.to,x=A.rotation*p,w=A.fromCp,_=A.toCp,C=Math.sin(x),R=Math.cos(x);pee(g,w,_,p);for(var k=0;k<y.length;k+=2){var P=y[k],N=y[k+1],L=S[k],I=S[k+1],b=P*m+L*p,T=N*m+I*p;h[k]=b*R-T*C+g[0],h[k+1]=b*C+T*R+g[1]}var M=h[0],D=h[1];f.moveTo(M,D);for(var k=2;k<y.length;){var L=h[k++],I=h[k++],B=h[k++],j=h[k++],H=h[k++],U=h[k++];M===L&&D===I&&B===H&&j===U?f.lineTo(H,U):f.bezierCurveTo(L,I,B,j,H,U),M=H,D=U}}}})}function plt(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;Ojn(t,e),e.__morphT=0;function o(){kee(e,"buildPath"),kee(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},bi({during:function(s){e.dirtyShape(),a&&a(s)},done:function(){o(),r&&r()}},n)),e}function Xyo(t,e,n,r,a,o){var s=16;t=a===n?0:Math.round(32767*(t-n)/(a-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var l=0,c,u=(1<<s)/2;u>0;u/=2){var d=0,h=0;(t&u)>0&&(d=1),(e&u)>0&&(h=1),l+=u*u*(3*d^h),h===0&&(d===1&&(t=u-1-t,e=u-1-e),c=t,t=e,e=c)}return l}function Sye(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,o=Rn(t,function(l){var c=l.getBoundingRect(),u=l.getComputedTransform(),d=c.x+c.width/2+(u?u[4]:0),h=c.y+c.height/2+(u?u[5]:0);return e=Math.min(d,e),n=Math.min(h,n),r=Math.max(d,r),a=Math.max(h,a),[d,h]}),s=Rn(o,function(l,c){return{cp:l,z:Xyo(l[0],l[1],e,n,r,a),path:t[c]}});return s.sort(function(l,c){return l.z-c.z}).map(function(l){return l.path})}function Ljn(t){return Wyo(t.path,t.count)}function XWe(){return{fromIndividuals:[],toIndividuals:[],count:0}}function ebo(t,e,n){var r=[];function a(w){for(var _=0;_<w.length;_++){var C=w[_];xye(C)?a(C.childrenRef()):C instanceof no&&r.push(C)}}a(t);var o=r.length;if(!o)return XWe();var s=n.dividePath||Ljn,l=s({path:e,count:o});if(l.length!==o)return console.error("Invalid morphing: unmatched splitted path"),XWe();r=Sye(r),l=Sye(l);for(var c=n.done,u=n.during,d=n.individualDelay,h=new KR,f=0;f<o;f++){var p=r[f],m=l[f];m.parent=e,m.copyTransform(h),d||Ojn(p,m)}e.__isCombineMorphing=!0,e.childrenRef=function(){return l};function g(w){for(var _=0;_<l.length;_++)l[_].addSelfToZr(w)}Eye(e,"addSelfToZr",{after:function(w){g(w)}}),Eye(e,"removeSelfFromZr",{after:function(w){for(var _=0;_<l.length;_++)l[_].removeSelfFromZr(w)}});function v(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,kee(e,"addSelfToZr"),kee(e,"removeSelfFromZr")}var A=l.length;if(d)for(var y=A,S=function(){y--,y===0&&(v(),c&&c())},f=0;f<A;f++){var x=d?bi({delay:(n.delay||0)+d(f,A,r[f],l[f]),done:S},n):n;plt(r[f],l[f],x)}else e.__morphT=0,e.animateTo({__morphT:1},bi({during:function(w){for(var _=0;_<A;_++){var C=l[_];C.__morphT=e.__morphT,C.dirtyShape()}u&&u(w)},done:function(){v();for(var w=0;w<t.length;w++)kee(t[w],"updateTransform");c&&c()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:r,toIndividuals:l,count:A}}function tbo(t,e,n){var r=e.length,a=[],o=n.dividePath||Ljn;function s(p){for(var m=0;m<p.length;m++){var g=p[m];xye(g)?s(g.childrenRef()):g instanceof no&&a.push(g)}}if(xye(t)){s(t.childrenRef());var l=a.length;if(l<r)for(var c=0,u=l;u<r;u++)a.push(yot(a[c++%l]));a.length=r}else{a=o({path:t,count:r});for(var d=t.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(d);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),XWe()}a=Sye(a),e=Sye(e);for(var h=n.individualDelay,u=0;u<r;u++){var f=h?bi({delay:(n.delay||0)+h(u,r,a[u],e[u])},n):n;plt(a[u],e[u],f)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function X4t(t){return Tn(t[0])}function eLt(t,e){for(var n=[],r=t.length,a=0;a<r;a++)n.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var o=e[a].length,s=void 0;for(s=0;s<o;s++)n[s%r].many.push(e[a][s])}for(var l=0,a=r-1;a>=0;a--)if(!n[a].many.length){var c=n[l].many;if(c.length<=1)if(l)l=0;else return n;var o=c.length,u=Math.ceil(o/2);n[a].many=c.slice(u,o),n[l].many=c.slice(0,u),l++}return n}var nbo={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var a=yot(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function G8e(t,e,n,r,a,o){if(!t.length||!e.length)return;var s=IV("update",r,a);if(!(s&&s.duration>0))return;var l=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},s),u,d;X4t(t)&&(u=t,d=e),X4t(e)&&(u=e,d=t);function h(A,y,S,x,w){var _=A.many,C=A.one;if(_.length===1&&!w){var R=y?_[0]:C,k=y?C:_[0];if(xye(R))h({many:[R],one:k},!0,S,x,!0);else{var P=l?bi({delay:l(S,x)},c):c;plt(R,k,P),o(R,k,R,k,P)}}else for(var N=bi({dividePath:nbo[n],individualDelay:l&&function(D,B,j,H){return l(D+S,x)}},c),L=y?ebo(_,C,N):tbo(C,_,N),I=L.fromIndividuals,b=L.toIndividuals,T=I.length,M=0;M<T;M++){var P=l?bi({delay:l(M,T)},c):c;o(I[M],b[M],y?_[M]:A.one,y?A.one:_[M],P)}}for(var f=u?u===t:t.length>e.length,p=u?eLt(d,u):eLt(f?e:t,[f?t:e]),m=0,g=0;g<p.length;g++)m+=p[g].many.length;for(var v=0,g=0;g<p.length;g++)h(p[g],f,v,m),v+=p[g].many.length}function oB(t){if(!t)return[];if(Tn(t)){for(var e=[],n=0;n<t.length;n++)e.push(oB(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof no&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var Bjn=1e4,rbo=0,tLt=1,nLt=2,ibo=ds();function abo(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var a=t.getDimensionInfo(n[r]);if(a&&a.otherDims[e]===0)return n[r]}}function obo(t,e,n){var r=t.getDimensionInfo(n),a=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return a&&a.categories[o]||o+""}}function rLt(t,e,n,r){var a=r?"itemChildGroupId":"itemGroupId",o=abo(t,a);if(o){var s=obo(t,e,o);return s}var l=t.getRawDataItem(e),c=r?"childGroupId":"groupId";if(l&&l[c])return l[c]+"";if(!r)return n||t.getId(e)}function iLt(t){var e=[];return Ie(t,function(n){var r=n.data,a=n.dataGroupId;if(!(r.count()>Bjn))for(var o=r.getIndices(),s=0;s<o.length;s++)e.push({data:r,groupId:rLt(r,s,a,!1),childGroupId:rLt(r,s,a,!0),divide:n.divide,dataIndex:s})}),e}function V8e(t,e,n){t.traverse(function(r){r instanceof no&&Kc(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function K8e(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function m7(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function sbo(t,e,n){var r=IV("update",n,e);r&&t.traverse(function(a){if(a instanceof Xx){var o=_eo(a);o&&a.animateFrom({style:o},r)}})}function lbo(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var a=t[r],o=e[r];if(a.data.getId(a.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function Djn(t,e,n){var r=iLt(t),a=iLt(e);function o(S,x,w,_,C){(w||S)&&x.animateFrom({style:w&&w!==S?An(An({},w.style),S.style):S.style},C)}var s=!1,l=rbo,c=Ur(),u=Ur();r.forEach(function(S){S.groupId&&c.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var d=0;d<a.length;d++){var h=a[d].groupId;if(u.get(h)){l=tLt;break}var f=a[d].childGroupId;if(f&&c.get(f)){l=nLt;break}}function p(S,x){return function(w){var _=w.data,C=w.dataIndex;return x?_.getId(C):S?l===tLt?w.childGroupId:w.groupId:l===nLt?w.childGroupId:w.groupId}}var m=lbo(r,a),g={};if(!m)for(var d=0;d<a.length;d++){var v=a[d],A=v.data.getItemGraphicEl(v.dataIndex);A&&(g[A.id]=!0)}function y(S,x){var w=r[x],_=a[S],C=_.data.hostModel,R=w.data.getItemGraphicEl(w.dataIndex),k=_.data.getItemGraphicEl(_.dataIndex);if(R===k){k&&sbo(k,_.dataIndex,C);return}R&&g[R.id]||k&&(m7(k),R?(m7(R),K8e(R),s=!0,G8e(oB(R),oB(k),_.divide,C,S,o)):V8e(k,C,S))}new PM(r,a,p(!0,m),p(!1,m),null,"multiple").update(y).updateManyToOne(function(S,x){var w=a[S],_=w.data,C=_.hostModel,R=_.getItemGraphicEl(w.dataIndex),k=ll(Rn(x,function(P){return r[P].data.getItemGraphicEl(r[P].dataIndex)}),function(P){return P&&P!==R&&!g[P.id]});R&&(m7(R),k.length?(Ie(k,function(P){m7(P),K8e(P)}),s=!0,G8e(oB(k),oB(R),w.divide,C,S,o)):V8e(R,C,w.dataIndex))}).updateOneToMany(function(S,x){var w=r[x],_=w.data.getItemGraphicEl(w.dataIndex);if(!(_&&g[_.id])){var C=ll(Rn(S,function(k){return a[k].data.getItemGraphicEl(a[k].dataIndex)}),function(k){return k&&k!==_}),R=a[S[0]].data.hostModel;C.length&&(Ie(C,function(k){return m7(k)}),_?(m7(_),K8e(_),s=!0,G8e(oB(_),oB(C),w.divide,R,S[0],o)):Ie(C,function(k){return V8e(k,R,S[0])}))}}).updateManyToMany(function(S,x){new PM(x,S,function(w){return r[w].data.getId(r[w].dataIndex)},function(w){return a[w].data.getId(a[w].dataIndex)}).update(function(w,_){y(S[w],x[_])}).execute()}).execute(),s&&Ie(e,function(S){var x=S.data,w=x.hostModel,_=w&&n.getViewOfSeriesModel(w),C=IV("update",w,0);_&&w.isAnimationEnabled()&&C&&C.duration>0&&_.group.traverse(function(R){R instanceof no&&!R.animators.length&&R.animateFrom({style:{opacity:0}},C)})})}function aLt(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function oLt(t){return Tn(t)?t.sort().join(","):t}function p3(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function cbo(t,e){var n=Ur(),r=Ur(),a=Ur();return Ie(t.oldSeries,function(o,s){var l=t.oldDataGroupIds[s],c=t.oldData[s],u=aLt(o),d=oLt(u);r.set(d,{dataGroupId:l,data:c}),Tn(u)&&Ie(u,function(h){a.set(h,{key:d,dataGroupId:l,data:c})})}),Ie(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),c=aLt(o),u=oLt(c),d=r.get(u);if(d)n.set(u,{oldSeries:[{dataGroupId:d.dataGroupId,divide:p3(d.data),data:d.data}],newSeries:[{dataGroupId:s,divide:p3(l),data:l}]});else if(Tn(c)){var h=[];Ie(c,function(m){var g=r.get(m);g.data&&h.push({dataGroupId:g.dataGroupId,divide:p3(g.data),data:g.data})}),h.length&&n.set(u,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:p3(l)}]})}else{var f=a.get(c);if(f){var p=n.get(f.key);p||(p={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:p3(f.data)}],newSeries:[]},n.set(f.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:p3(l)})}}}}),n}function sLt(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function ubo(t,e,n,r){var a=[],o=[];Ie(Ql(t.from),function(s){var l=sLt(e.oldSeries,s);l>=0&&a.push({dataGroupId:e.oldDataGroupIds[l],data:e.oldData[l],divide:p3(e.oldData[l]),groupIdDim:s.dimension})}),Ie(Ql(t.to),function(s){var l=sLt(n.updatedSeries,s);if(l>=0){var c=n.updatedSeries[l].getData();o.push({dataGroupId:e.oldDataGroupIds[l],data:c,divide:p3(c),groupIdDim:s.dimension})}}),a.length>0&&o.length>0&&Djn(a,o,r)}function dbo(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){Ie(Ql(r.seriesTransition),function(a){Ie(Ql(a.to),function(o){for(var s=r.updatedSeries,l=0;l<s.length;l++)(o.seriesIndex!=null&&o.seriesIndex===s[l].seriesIndex||o.seriesId!=null&&o.seriesId===s[l].id)&&(s[l][sge]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=ibo(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var o=r.seriesTransition;if(o)Ie(Ql(o),function(p){ubo(p,a,r,n)});else{var s=cbo(a,r);Ie(s.keys(),function(p){var m=s.get(p);Djn(m.oldSeries,m.newSeries,n)})}Ie(r.updatedSeries,function(p){p[sge]&&(p[sge]=!1)})}for(var l=e.getSeries(),c=a.oldSeries=[],u=a.oldDataGroupIds=[],d=a.oldData=[],h=0;h<l.length;h++){var f=l[h].getData();f.count()<Bjn&&(c.push(l[h]),u.push(l[h].get("dataGroupId")),d.push(f))}})}qa([Too]);qa([yoo]);qa([Yoo,pso,Cso,plo,Nlo,_co,nuo,Uuo,gdo,_do,Bdo,jho,ffo,Tfo,Kfo,Xfo,vpo,Cpo,jpo,Qpo,smo,Kmo]);qa(mgo);qa(qgo);qa(I7n);qa(hvo);qa(AFn);qa(yvo);qa(kvo);qa(R0o);qa(Z0o);qa(bse);qa(AAo);qa(xAo);qa(BAo);qa(KAo);qa(e1o);qa(l1o);qa(E1o);qa(G1o);qa(Sjn);qa(wjn);qa(vyo);qa(Rjn);qa(Mjn);qa(Eyo);qa(Lyo);qa($yo);qa(dbo);qa(Dao);const hbo=Object.freeze(Object.defineProperty({__proto__:null,Axis:CE,ChartView:ql,ComponentModel:Fo,ComponentView:Au,List:bv,Model:Kl,PRIORITY:D9n,SeriesModel:Oc,color:IJa,connect:Fro,dataTool:Kro,dependencies:xro,disConnect:jro,disconnect:V9n,dispose:Hro,env:ls,extendChartView:Sao,extendComponentModel:bao,extendComponentView:xao,extendSeriesModel:Eao,format:lao,getCoordinateSystemDimensions:zro,getInstanceByDom:Zot,getInstanceById:Uro,getMap:Vro,graphic:sao,helper:Xio,init:$ro,innerDrawElementOnCanvas:Qot,matrix:iJa,number:aao,parseGeoJSON:hWe,parseGeoJson:hWe,registerAction:Zw,registerCoordinateSystem:Q9n,registerLayout:q9n,registerLoading:rst,registerLocale:kot,registerMap:Y9n,registerPostInit:K9n,registerPostUpdate:W9n,registerPreprocessor:est,registerProcessor:tst,registerTheme:Xot,registerTransform:J9n,registerUpdateLifecycle:d2e,registerVisual:SO,setCanvasCreator:Gro,setPlatformAPI:wDn,throttle:c2e,time:oao,use:qa,util:cao,vector:UYa,version:bro,zrUtil:LYa,zrender:vZa},Symbol.toStringTag,{value:"Module"}));var FD={},D5={},$jn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1,n=function(){return"".concat(e++)};t.default=n})($jn);var S2e={},w2e={},mlt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,o=null;return function(){for(var s=this,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];clearTimeout(o),o=setTimeout(function(){r.apply(s,c)},a)}};t.default=e})(mlt);var N2={};Object.defineProperty(N2,"__esModule",{value:!0});N2.SizeSensorId=N2.SensorTabIndex=N2.SensorClassName=void 0;var fbo="size-sensor-id";N2.SizeSensorId=fbo;var pbo="size-sensor-object";N2.SensorClassName=pbo;var mbo="-1";N2.SensorTabIndex=mbo;Object.defineProperty(w2e,"__esModule",{value:!0});w2e.createSensor=void 0;var gbo=vbo(mlt),W8e=N2;function vbo(t){return t&&t.__esModule?t:{default:t}}var Abo=function(e,n){var r=void 0,a=[],o=function(){getComputedStyle(e).position==="static"&&(e.style.position="relative");var h=document.createElement("object");return h.onload=function(){h.contentDocument.defaultView.addEventListener("resize",s),s()},h.style.display="block",h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.height="100%",h.style.width="100%",h.style.overflow="hidden",h.style.pointerEvents="none",h.style.zIndex="-1",h.style.opacity="0",h.setAttribute("class",W8e.SensorClassName),h.setAttribute("tabindex",W8e.SensorTabIndex),h.type="text/html",e.appendChild(h),h.data="about:blank",h},s=(0,gbo.default)(function(){a.forEach(function(d){d(e)})}),l=function(h){r||(r=o()),a.indexOf(h)===-1&&a.push(h)},c=function(){r&&r.parentNode&&(r.contentDocument&&r.contentDocument.defaultView.removeEventListener("resize",s),r.parentNode.removeChild(r),e.removeAttribute(W8e.SizeSensorId),r=void 0,a=[],n&&n())},u=function(h){var f=a.indexOf(h);f!==-1&&a.splice(f,1),a.length===0&&r&&c()};return{element:e,bind:l,destroy:c,unbind:u}};w2e.createSensor=Abo;var _2e={};Object.defineProperty(_2e,"__esModule",{value:!0});_2e.createSensor=void 0;var ybo=N2,bbo=xbo(mlt);function xbo(t){return t&&t.__esModule?t:{default:t}}var Ebo=function(e,n){var r=void 0,a=[],o=(0,bbo.default)(function(){a.forEach(function(d){d(e)})}),s=function(){var h=new ResizeObserver(o);return h.observe(e),o(),h},l=function(h){r||(r=s()),a.indexOf(h)===-1&&a.push(h)},c=function(){r.disconnect(),a=[],r=void 0,e.removeAttribute(ybo.SizeSensorId),n&&n()},u=function(h){var f=a.indexOf(h);f!==-1&&a.splice(f,1),a.length===0&&r&&c()};return{element:e,bind:l,destroy:c,unbind:u}};_2e.createSensor=Ebo;Object.defineProperty(S2e,"__esModule",{value:!0});S2e.createSensor=void 0;var Sbo=w2e,wbo=_2e,_bo=typeof ResizeObserver<"u"?wbo.createSensor:Sbo.createSensor;S2e.createSensor=_bo;Object.defineProperty(D5,"__esModule",{value:!0});D5.removeSensor=D5.getSensor=D5.Sensors=void 0;var Tbo=kbo($jn),Cbo=S2e,eQe=N2;function kbo(t){return t&&t.__esModule?t:{default:t}}var vH={};D5.Sensors=vH;function Fjn(t){t&&vH[t]&&delete vH[t]}var Rbo=function(e){var n=e.getAttribute(eQe.SizeSensorId);if(n&&vH[n])return vH[n];var r=(0,Tbo.default)();e.setAttribute(eQe.SizeSensorId,r);var a=(0,Cbo.createSensor)(e,function(){return Fjn(r)});return vH[r]=a,a};D5.getSensor=Rbo;var Mbo=function(e){var n=e.element.getAttribute(eQe.SizeSensorId);e.destroy(),Fjn(n)};D5.removeSensor=Mbo;Object.defineProperty(FD,"__esModule",{value:!0});FD.ver=Hjn=FD.clear=jjn=FD.bind=void 0;var tQe=D5,Nbo=function(e,n){var r=(0,tQe.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},jjn=FD.bind=Nbo,Ibo=function(e){var n=(0,tQe.getSensor)(e);(0,tQe.removeSensor)(n)},Hjn=FD.clear=Ibo,Pbo="1.0.2";FD.ver=Pbo;function lLt(t,e){var n={};return e.forEach(function(r){n[r]=t[r]}),n}function Q8e(t){return typeof t=="function"}function Obo(t){return typeof t=="string"}var Lbo=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,a,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;a--!==0;){var s=o[a];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n};const g7=Li(Lbo);var Bbo=function(t){nA(e,t);function e(n){var r=t.call(this,n)||this;return r.echarts=n.echarts,r.ele=null,r.isInitialResize=!0,r}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(n){var r=this.props.shouldSetOption;if(!(Q8e(r)&&!r(n,this.props))){if(!g7(n.theme,this.props.theme)||!g7(n.opts,this.props.opts)||!g7(n.onEvents,this.props.onEvents)){this.dispose(),this.renderNewEcharts();return}var a=["option","notMerge","lazyUpdate","showLoading","loadingOption"];g7(lLt(this.props,a),lLt(n,a))||this.updateEChartsOption(),(!g7(n.style,this.props.style)||!g7(n.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},e.prototype.dispose=function(){if(this.ele){try{Hjn(this.ele)}catch(n){console.warn(n)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){var n=this,r=this.props,a=r.onEvents,o=r.onChartReady,s=this.updateEChartsOption();this.bindEvents(s,a||{}),Q8e(o)&&o(s),this.ele&&jjn(this.ele,function(){n.resize()})},e.prototype.bindEvents=function(n,r){function a(s,l){Obo(s)&&Q8e(l)&&n.on(s,function(c){l(c,n)})}for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&a(o,r[o])},e.prototype.updateEChartsOption=function(){var n=this.props,r=n.option,a=n.notMerge,o=a===void 0?!1:a,s=n.lazyUpdate,l=s===void 0?!1:s,c=n.showLoading,u=n.loadingOption,d=u===void 0?null:u,h=this.getEchartsInstance();return h.setOption(r,o,l),c?h.showLoading(d):h.hideLoading(),h},e.prototype.resize=function(){var n=this.getEchartsInstance();if(!this.isInitialResize)try{n.resize()}catch(r){console.warn(r)}this.isInitialResize=!1},e.prototype.render=function(){var n=this,r=this.props,a=r.style,o=r.className,s=o===void 0?"":o,l=cr({height:300},a);return ke.createElement("div",{ref:function(c){n.ele=c},style:l,className:"echarts-for-react "+s})},e}(Y.PureComponent),Dbo=function(t){nA(e,t);function e(n){var r=t.call(this,n)||this;return r.echarts=hbo,r}return e}(Bbo);const Ujn="/assets/configureChart-fd36f00f.png",$bo=t=>{var D,B,j;const{config:e,style:n,keyValue:r,isRunning:a,queryError:o,queryWarning:s,isPreview:l,type:c,isDashboardPreview:u=!1,chartName:d,isExplore:h=!1,showDelete:f,chartMetric:p,isQueryBot:m,showCounterMetric:g=!1,handleMetricChange:v,savedQueryId:A="",chartFields:y={},dashboardView:S=!1,isDataEmpty:x=!1}=t,w=Y.useRef(null),_=QM(),{chartBackground:C,useImgColors:R}=_p(),k=xo(),{metricEnabled:P}=y,{location:N}=k||{},L=R&&vN(((D=k==null?void 0:k.location)==null?void 0:D.pathname)||""),I=q1a(((B=k==null?void 0:k.location)==null?void 0:B.pathname)||""),b=eit();Y.useEffect(()=>{(()=>{const{current:U}=w;U&&(U.props.style?U.props.style.width="100vw":U.props={...U.props,style:{width:"100vw"}})})()},[]);const T=()=>{var Q,ee,X,te;const{current:H}=w,U=H.getEchartsInstance(),$=(Q=U==null?void 0:U._zr)==null?void 0:Q.painter,z=(ee=$==null?void 0:$.getRenderedCanvas())==null?void 0:ee.getContext("2d");if(L&&R&&!b&&!m){const J=z==null?void 0:z.createLinearGradient(0,0,0,U==null?void 0:U.getHeight());J==null||J.addColorStop(0,Jit(C==null?void 0:C[0])),J==null||J.addColorStop(1,qt.custom.black.A2),$==null||$.setBackgroundColor(J)}else $==null||$.setBackgroundColor(I?qt.custom.boxBg:qt.custom.thumbnailBg);const Z=U==null?void 0:U.getDataURL(),K=window.document.createElement("a");K.href=Z,K.download=a1e(d),(X=document==null?void 0:document.body)==null||X.appendChild(K),K==null||K.click(),$==null||$.setBackgroundColor("TRANSPARENT"),(te=document==null?void 0:document.body)==null||te.removeChild(K)};if(a)return l?E.jsx(oTe,{}):E.jsx(RTe,{dashboardView:S});if(o)return E.jsxs(E.Fragment,{children:[E.jsx(Vc,{title:o,children:o}),l&&!h&&E.jsx("p",{children:q.CLICK_CONFIGURE})]});if(!c)return E.jsx(sf,{imgPath:Ujn,title:q.PLEASE_CONFIGURE_VISUALIZATION,description:q.CONFIGURE_CHART_MESSAGE});if(x&&!a)return E.jsxs(E.Fragment,{children:[E.jsx(Vc,{title:q.CHART_NO_DATA_TEXT,isDashboardPreview:u,handleDataEmptyClick:()=>k==null?void 0:k.push(tr.queriesPath(A)),emptyDataMessage:q.CHART_NO_DATA_SUBTEXT,children:q.CHART_NO_DATA_TEXT}),l&&!h&&E.jsx("p",{children:q.CLICK_CONFIGURE})]});if(s)return E.jsxs("div",{className:"h-100 w-100",children:[E.jsx(Vmn,{title:s||q.PLEASE_CONFIGURE_CHART,children:s||q.PLEASE_CONFIGURE_CHART}),l&&!h&&E.jsx("p",{children:q.CLICK_CONFIGURE})]});const M=H=>{k.push(tr.queriesPath(H))};return E.jsxs(E.Fragment,{children:[!l&&!f&&E.jsxs(E.Fragment,{children:[u&&E.jsx(Pn,{label:q.VIEW_IN_EDITOR,children:E.jsx("button",{"aria-label":"open-editor",type:"button",onClick:()=>M(A),className:"openInEditorButton",children:E.jsx(oN,{})})}),E.jsx(Pn,{label:q.DOWNLOAD_AS_IMAGE,children:E.jsx("button",{"aria-label":"download-image",type:"button",onClick:()=>T(),className:"downloadAsImage",children:E.jsx(ize,{})})})]}),p&&!l&&!m&&g&&P&&!x&&E.jsxs("div",{className:"chartCounter",children:[E.jsx("h3",{children:p.value}),_!=null&&_.dashboardId&&N.pathname.includes("update")?E.jsxs("span",{className:`counterType ${(j=p==null?void 0:p.metric)==null?void 0:j.toLowerCase()}`,children:[Han((p==null?void 0:p.metric)||"SUM"),(p==null?void 0:p.metric)||"SUM"]}):E.jsx(MTe,{className:"metricDropdown",children:E.jsx(Ba,{value:(p==null?void 0:p.metric)||al.SUM,name:"metric",onChange:H=>v(H),MenuProps:{sx:{".MuiMenu-paper":{background:L&&(C==null?void 0:C[0])}}},children:am==null?void 0:am.map(H=>{var U;return E.jsx(Dn,{value:H==null?void 0:H.value,children:E.jsxs(NTe,{className:`counter ${(U=H==null?void 0:H.value)==null?void 0:U.toLowerCase()}`,children:[E.jsx("div",{className:"counterIcon",children:H.icon}),E.jsx("div",{className:"counterValue",children:H.label})]})},H==null?void 0:H.value)})})})]}),!x&&E.jsx(Dbo,{option:e,notMerge:!0,style:n,opts:{renderer:l?"svg":"canvas"},ref:w,className:m?"chartInQueryBot":""},r||"")]})},xse=ke.memo($bo),Fbo=(t,e)=>{const{xField:n,yField:r,seriesField:a,xAxisData:o,yAxisData:s,legendEnabled:l,sliderEnabled:c,...u}=e.fields||{},d={},h={};if(a)t==null||t.forEach(m=>{const g=m[n],v=m[r]||0,A=m[a];if(h[A]=[],!d[g])d[g]={[A]:v};else if(d[g][A]){const y=d[g][A];d[g][A]=Number(y)+Number(v)}else d[g][A]=v});else{const m=Object.keys(u).map(g=>u[g].value);t==null||t.forEach(g=>{const v=g[n],A=g[r]||0;if(h[r]=[],!d[v])d[v]={[r]:A};else if(d[v][r]){const y=d[v][r];d[v][r]=Number(y)+Number(A)}else d[v][r]=A;m==null||m.forEach(y=>{h[y]=[];const S=g[y]||0;if(d[v][y]){const x=d[v][y];d[v][y]=Number(x)+Number(S)}else d[v][y]=S})})}let f=d&&Object.keys(d);f=xdn(f);const p=h&&Object.keys(h);return f==null||f.forEach(m=>{const g=d[m];p==null||p.forEach(v=>{const A=v,y=h[A];if(g&&!g[A])y.push(0);else{const S=g&&g[A];y.push(S)}h[A]=[...y]})}),{xAxisLabels:f,seriesData:h}},jbo=(t,e,n,r,a)=>{var m,g;const{xField:o,seriesField:s,xAxisData:l,yAxisData:c,legendEnabled:u,sliderEnabled:d,...h}=e||{};let f=[];const p=(v,A)=>{const y=zme(v,A,r,a);return[{offset:0,color:y.color0},{offset:1,color:y.color1}]};return s?((m=Object.keys(t))==null||m.forEach((v,A)=>{const y={data:t[v],type:fZ[n],name:v,itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:p(fZ[n],A),global:!1}}};f.push(y)}),n===Ln.stacked_area_chart?(f=f==null?void 0:f.map(v=>({...v,areaStyle:{},stack:"all"})),f):(n===Ln.stacked_column_chart&&(f=f==null?void 0:f.map(v=>({...v,stack:"all"}))),f)):((g=Object.keys(h))==null||g.map((v,A)=>{var S,x,w,_,C,R;let y={};return typeof h[v]=="object"?y={name:(S=h[v])==null?void 0:S.value,data:t[(x=h[v])==null?void 0:x.value],type:eze[(w=h[v])==null?void 0:w.chartType],yAxisIndex:((_=h[v])==null?void 0:_.yAxisIndex)||"1",symbol:"none",itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:p(eze[(C=h[v])==null?void 0:C.chartType],A),global:!1}}}:y={name:h[v],data:t[h[v]],type:fZ[n],symbol:"none",itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:p(fZ[n],A),global:!1}}},(n===Ln.area_chart||((R=h[v])==null?void 0:R.chartType)===Ln.area_chart.replace("_chart",""))&&(y={...y,areaStyle:{}}),f.push(y),!0}),f)},Ese=({data:t,chartConfigurationData:e,isPreview:n=!1,isDashboardPreview:r=!1,isModalPreview:a=!1,customColor:o,dataframesObject:s,isQueryBot:l})=>{var L,I,b,T;const c=AE(),{xAxisLabels:u,seriesData:d}=Fbo(t,e),{fields:h,chartType:f}=e||{},{useImgColors:p,chartBackground:m}=o||{},g=p&&vN(((L=c==null?void 0:c.location)==null?void 0:L.pathname)||""),{xField:v,seriesField:A,xAxisData:y,yAxisData:S,legendEnabled:x,sliderEnabled:w,metricEnabled:_,...C}=h||{};if(f===Ln.scatter_chart||f===Ln.scatter_plot){const M={};let D=[];const B=[];t==null||t.forEach(U=>{D.push(U[v]),M[U[v]]=U[C==null?void 0:C.yField]}),D=xdn(D),D==null||D.forEach(U=>{U&&B.push([U,M[U]||0])}),B.unshift([v,C==null?void 0:C.yField]);const j=zme("scatter",0,l?!1:g,o),H={grid:n?{top:10,left:10,right:10,bottom:10}:{right:20,left:Number((S==null?void 0:S.spacing)||20),bottom:Number((y==null?void 0:y.spacing)||0)+(w&&!a&&!r?60:30),top:30,containLabel:!0},xAxis:{type:yha(D,h==null?void 0:h.xField),show:!n,splitLine:{show:!n,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5}},axisTick:{interval:"auto"},axisLine:{show:!0,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5}},name:g?"":(y==null?void 0:y.title)||(h==null?void 0:h.xField),nameGap:8,nameLocation:"center",nameTextStyle:{color:qt.custom.white.A1},axisLabel:{color:g?qt.custom.chartLabel:qt.custom.greyText.A2,formatter(U){var $;return($=hI(s,v))!=null&&$.includes("Time")||aR(U==null?void 0:U.toString())?Sf(U,y==null?void 0:y.dateFormat):!Number.isNaN(U)&&!qp(U)&&!fI(U)?y!=null&&y.unformatted?U:ev(U):y!=null&&y.unformatted?U:vy(U==null?void 0:U.toString(),5)},rotate:y!=null&&y.tickLayout?-y.tickLayout:0,margin:g?12:25,hideOverlap:!0}},yAxis:{axisTick:{show:!1},axisLine:{show:!1},show:!n,splitLine:{show:!n,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5}},axisLabel:{color:qt.custom.greyText.A2,formatter(U){var $;return($=hI(s,C==null?void 0:C.yField))!=null&&$.includes("Time")?Sf(U,y==null?void 0:y.dateFormat):aR(U==null?void 0:U.toString())?Sf(U,b$):!Number.isNaN(U)&&!qp(U)&&!fI(U)?S!=null&&S.unformatted?U:ev(U):S!=null&&S.unformatted?U:vy(U==null?void 0:U.toString(),5)},margin:g?12:25,hideOverlap:!0},name:g?"":(S==null?void 0:S.title)||(C==null?void 0:C.yField),nameGap:8,nameLocation:"center",verticalAlign:"middle",nameTextStyle:{color:qt.custom.white.A1}},tooltip:{show:!n,axisPointer:{type:"line",lineStyle:{type:"solid",color:g?qt.custom.white.A1:qt.custom.axisPointer}},backgroundColor:g?m[2]:qt.custom.dropdownBg,trigger:"axis",className:"eChartTooltip",borderWidth:0,appendToBody:!0,textStyle:{color:qt.custom.white.A11,fontSize:12,fontFamily:qt.typography.fontFamily,fontWeight:qt.custom.fontWeight.rg}},dataset:{source:B},legend:x&&{top:r&&"bottom",left:0,type:"scroll",show:!n,itemGap:15,textStyle:{color:qt.custom.white.A1}},series:[{symbolSize:10,itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:j==null?void 0:j.color0},{offset:1,color:j==null?void 0:j.color1}],global:!1}},type:"scatter",encode:{seriesName:C==null?void 0:C.yField}}],toolbox:{showTitle:!1}};return!n&&!r&&(H.dataZoom=w&&[{type:"slider",height:15,bottom:10,textStyle:{color:qt.custom.white.A11}},{type:"inside"}]),{config:H}}if(f===Ln.pie_chart){const M=t==null?void 0:t.map((B,j)=>{const H=zme("pie",j,l?!1:g,o);return{name:B[v],value:B[C.yField],itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:H==null?void 0:H.color0},{offset:1,color:H==null?void 0:H.color1}],global:!1}}}});return{config:{tooltip:{show:!n,trigger:"item",className:"eChartTooltip",borderWidth:0,appendToBody:!0,backgroundColor:g?m[2]:qt.custom.dropdownBg,textStyle:{color:qt.custom.white.A11,fontSize:12,fontFamily:qt.typography.fontFamily,fontWeight:qt.custom.fontWeight.rg}},legend:{top:r&&"bottom",left:0,type:"scroll",show:!n,itemGap:15,textStyle:{color:qt.custom.white.A1},padding:!r&&[0,80,0,0],pageIconColor:qt.custom.white.A2,pageIconInactiveColor:qt.custom.white.A3,pageTextStyle:{color:qt.custom.white.A2},formatter(B){var j;return(j=hI(s,v))!=null&&j.includes("Time")?Sf(B,y==null?void 0:y.dateFormat):aR(B==null?void 0:B.toString())?Sf(B,b$):!Number.isNaN(B)&&!qp(B)&&!fI(B)?S!=null&&S.unformatted?B:ev(B):S!=null&&S.unformatted?B:vy(B==null?void 0:B.toString(),10)}},series:[{type:"pie",radius:["40%","50%"],avoidLabelOverlap:!1,label:{show:g?!1:!n,formatter(B){var j,H;return((H=(j=B==null?void 0:B.data)==null?void 0:j.name)==null?void 0:H.length)>10?`${B.data.name.substring(0,10)}...`:B.data.name},color:g?qt.custom.white.A1:qt.custom.greyText.A2},data:M}],toolbox:!n&&!r&&{iconStyle:{borderColor:qt.custom.white.A2},showTitle:!1}}}}if(f===Ln.bar_chart){const M=[],D=[];t==null||t.forEach(H=>{M.push(H[v]),D.push(H[C==null?void 0:C.yField])});const B=zme("bar",1,l?!1:g,o);return{config:{grid:n?{top:10,left:10,right:10,bottom:10}:{right:20,left:Number((S==null?void 0:S.spacing)||20),bottom:Number((y==null?void 0:y.spacing)||20),top:30,containLabel:!0},tooltip:{show:!n,trigger:"item",className:"eChartTooltip",borderWidth:0,appendToBody:!0,backgroundColor:g?m[2]:qt.custom.dropdownBg,textStyle:{color:qt.custom.white.A11,fontSize:12,fontFamily:qt.typography.fontFamily,fontWeight:qt.custom.fontWeight.rg}},xAxis:{show:!n,splitLine:{show:!n,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?qt.custom.greyText.A2:qt.custom.chartGrid,opacity:.5}},axisTick:{interval:"auto"},axisLine:{show:!0,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5}},axisLabel:{color:g?qt.custom.chartLabel:qt.custom.greyText.A2,formatter(H){var U;return(U=hI(s,v))!=null&&U.includes("Time")?Sf(H,y==null?void 0:y.dateFormat):aR(H==null?void 0:H.toString())?Sf(H,b$):y!=null&&y.unformatted&&(y==null?void 0:y.tickLayout)===-45&&qp(H)?vy(H==null?void 0:H.toString(),5):!Number.isNaN(H)&&!qp(H)&&!fI(H)?y!=null&&y.unformatted?H:ev(H):y!=null&&y.unformatted?H:vy(H==null?void 0:H.toString(),5)},rotate:y!=null&&y.tickLayout?-y.tickLayout:0,margin:g?12:25,hideOverlap:!0},name:g?"":(y==null?void 0:y.title)||(h==null?void 0:h.xField),nameGap:8,nameLocation:"center",nameTextStyle:{color:qt.custom.white.A1}},yAxis:{type:"category",data:D,show:!n,axisTick:{show:!1},splitLine:{show:!n,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?qt.custom.greyText.A2:qt.custom.chartGrid,opacity:.5}},axisLine:{lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5},show:!n},axisLabel:{color:g?qt.custom.chartLabel:qt.custom.greyText.A2,formatter(H){var U;return(U=hI(s,C==null?void 0:C.yField))!=null&&U.includes("Time")?Sf(H,y==null?void 0:y.dateFormat):aR(H==null?void 0:H.toString())?Sf(H,b$):!Number.isNaN(H)&&!qp(H)&&!fI(H)?S!=null&&S.unformatted?H:ev(H):S!=null&&S.unformatted?H:vy(H==null?void 0:H.toString(),5)},hideOverlap:!0}},series:[{type:"bar",data:M,itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:B==null?void 0:B.color0},{offset:1,color:B==null?void 0:B.color1}],global:!1}}}]}}}let R;const k=(M,D,B)=>{if(M===0||M===1){const j=typeof D[B]=="object";return{name:g?"":j?(S==null?void 0:S.y1Title)||D[B].value:(S==null?void 0:S.title)||D[B],nameLocation:"center",nameGap:8,verticalAlign:"middle",nameTextStyle:{color:qt.custom.white.A1}}}return{}},P=((I=Object.keys(C))==null?void 0:I.map((M,D)=>({type:bha(t,C[M]),show:!n,position:D%2?"left":"right",splitLine:{show:!n,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5}},axisLine:{lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5},show:!n},axisTick:{interval:"auto"},axisLabel:{hideOverlap:!0,formatter(B){var j;return(j=hI(s,typeof C[M]=="object"?C[M].value:C[M]))!=null&&j.includes("Time")?Sf(B,""):aR(B==null?void 0:B.toString())?Sf(B,b$):!Number.isNaN(B)&&!qp(B)&&!fI(B)?S!=null&&S.unformatted?B:ev(B):S!=null&&S.unformatted?B:vy(B==null?void 0:B.toString(),5)},color:g?qt.custom.chartLabel:qt.custom.greyText.A2,margin:g?12:25},...k(D,C,M)})))||void 0;(P==null?void 0:P.length)===1?R={...P[0],position:((b=S==null?void 0:S.position)==null?void 0:b.toLowerCase())||"right"}:(P==null?void 0:P.length)>1&&(R=P);const N={grid:n?{top:10,left:10,right:10,bottom:10}:{right:20,left:Number((S==null?void 0:S.spacing)||20),bottom:Number((y==null?void 0:y.spacing)||0)+(w&&!a&&!r?60:30),top:30,containLabel:!0},legend:x&&{top:r&&"bottom",left:0,type:"scroll",show:!n,itemGap:15,textStyle:{color:qt.custom.white.A1},padding:!r&&[0,80,0,0],pageIconColor:qt.custom.white.A2,pageIconInactiveColor:qt.custom.white.A3,pageTextStyle:{color:qt.custom.white.A2}},tooltip:{axisPointer:{type:"line",lineStyle:{type:"solid",color:g?qt.custom.white.A1:qt.custom.axisPointer}},backgroundColor:g?m[2]:qt.custom.dropdownBg,show:!n,trigger:"axis",className:"eChartTooltip",borderWidth:0,appendToBody:!0,textStyle:{color:qt.custom.white.A11,fontSize:12,fontFamily:qt.typography.fontFamily,fontWeight:qt.custom.fontWeight.rg}},xAxis:{type:"category",data:u,show:!n,splitLine:{show:!n,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?qt.custom.greyText.A2:qt.custom.chartGrid,opacity:.5}},axisTick:{interval:"auto"},axisLine:{show:!0,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5}},axisLabel:{color:g?qt.custom.chartLabel:qt.custom.greyText.A2,formatter(M){var D;return(D=hI(s,v))!=null&&D.includes("Time")||["timestamp","date","time"].includes(v==null?void 0:v.toLowerCase())||aR(M==null?void 0:M.toString())?Sf(M,y==null?void 0:y.dateFormat):y!=null&&y.unformatted&&(y==null?void 0:y.tickLayout)===-45&&qp(M)?vy(M==null?void 0:M.toString(),5):!Number.isNaN(M)&&!qp(M)&&!fI(M)?y!=null&&y.unformatted?M:ev(M):y!=null&&y.unformatted?M:vy(M==null?void 0:M.toString(),5)},rotate:y!=null&&y.tickLayout?-y.tickLayout:0,margin:g?12:25,hideOverlap:!0},name:g?"":(y==null?void 0:y.title)||(h==null?void 0:h.xField),nameGap:8,nameLocation:"center",nameTextStyle:{color:qt.custom.white.A1}},yAxis:R||{type:"value",show:!n,position:((T=S==null?void 0:S.position)==null?void 0:T.toLowerCase())||"left",splitLine:{show:!n,lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?qt.custom.greyText.A2:qt.custom.chartGrid,opacity:.5}},axisLine:{lineStyle:{color:g?m[0]:qt.custom.chartGrid,stroke:g?m[0]:qt.custom.chartGrid,opacity:.5},show:!n},axisLabel:{color:g?qt.custom.chartLabel:qt.custom.greyText.A2,formatter(M){var D;return(D=hI(s,C.yField))!=null&&D.includes("Time")?Sf(M,y==null?void 0:y.dateFormat):aR(M==null?void 0:M.toString())?Sf(M,b$):!Number.isNaN(M)&&!qp(M)&&!fI(M)?S!=null&&S.unformatted?M:ev(M):S!=null&&S.unformatted?M:vy(M==null?void 0:M.toString(),5)},margin:g?12:25,hideOverlap:!0}},series:jbo(d,h,f,l?!1:g,o),toolbox:!n&&!r&&{iconStyle:{borderColor:qt.custom.white.A2},showTitle:!1}};return!n&&!a&&!r&&(N.dataZoom=w&&[{type:"slider",height:15,bottom:15,textStyle:{color:qt.custom.white.A11}},{type:"inside"}]),{config:N}},Hbo=t=>{var Me,Be;const{chartID:e,chartName:n,chartFields:r,isRunning:a,queryError:o,queryWarning:s,boxHeight:l,chartType:c,columns:u,counterFields:d,data:h,isPreview:f=!1,isDashboardPreview:p=!1,echartId:m,visualType:g=Di.GRAPH,isChartVis:v=!1,tableVisHeight:A=0,counterTooltipPlacement:y,showDelete:S=!1,dataframesObject:x={},isExplore:w=!1,isQueryBot:_=!1,showCounterMetric:C=!1,savedQueryId:R="",dashboardView:k=!1,counterRef:P,queryRefreshDetails:N}=t,L=Y.useRef(null),[I,b]=Y.useState(700),T=ufn(),M=Iit(),D=_p(),{useImgColors:B}=D||{},[j,H]=Y.useState(v&&A?A:180),U=wV(c).visualType,{queryData:$,lastRefreshTime:z,isRefreshViewLoading:Z}=N||{},{isMaterializedView:K,userId:Q}=$||{},ee=z&&q6(z);localStorage.getItem("userId");const X=ze=>v?(I<qt.breakpoints.values.sm?H(c===ii.table?190:162):I<qt.breakpoints.values.md&&H(c===ii.table?290:272),null):(H(ze),null),te=Y.useMemo(()=>({chartType:c,fields:r}),[c,r,B]),J=e==="chart-main"?M:te,ne=oha(u,h,J==null?void 0:J.fields);Y.useEffect(()=>{v&&A!==j&&H(A)},[A]),Y.useEffect(()=>{var je,ye;e==="chart-main"&&T&&a1a(te);const ze=((ye=(je=L==null?void 0:L.current)==null?void 0:je.parentElement)==null?void 0:ye.clientWidth)-50;b(ze)},[e,T]);const{metric:ie=al.SUM}=(r==null?void 0:r.yAxisData)||{},he=ze=>{var pe,Ne,_e,ue,se,oe;const je=((ue=(_e=(Ne=(pe=ze==null?void 0:ze.parentElement)==null?void 0:pe.parentElement)==null?void 0:Ne.parentElement)==null?void 0:_e.firstChild)==null?void 0:ue.clientHeight)||0,ye=ze==null?void 0:ze.getElementsByClassName("MuiTableHead-root"),me=ye&&((se=ye[0])==null?void 0:se.clientHeight)||0,le=((oe=ze==null?void 0:ze.parentElement)==null?void 0:oe.clientHeight)-(je+me-20);X(le)};Y.useEffect(()=>{g!==Di.GRAPH&&(l?X(l-140):he(L==null?void 0:L.current))},[l]);const de=q_e(u,h,{columnName:(Me=J==null?void 0:J.fields)==null?void 0:Me.yField}),ce=Y.useMemo(()=>de?Y_e(de.flat(),ie):null,[de,ie]),Ee=ze=>{var ye;const je={...r,yAxisData:{...r==null?void 0:r.yAxisData,metric:((ye=ze==null?void 0:ze.target)==null?void 0:ye.value)||al.SUM}};D_e(je)};return E.jsxs("div",{ref:L,className:`${f?"thumbnailChart":"chartsDisplay h-100 w-100"} ${_?"queryBortChatsDisplay":""}`,children:[Di.COUNTERCARD===U&&E.jsx(w1e,{queryError:o,data:h,columns:u,isRunning:a,counterFields:d,counterTooltipPlacement:y,isPreview:f,dataframesObject:x,isExplore:w,dashboardView:k,counterRef:P,isDashboardPreview:p,savedQueryId:R}),Di.TABLE===U&&E.jsx(TP,{columns:u,rowCount:0,queryError:o,data:h,tableHeight:j,isExplore:w,tableFields:d,isDashboardPreview:p,savedQueryId:R}),Di.GRAPH===U&&E.jsx(xse,{config:Ese({data:ne,chartConfigurationData:J,isPreview:f,isDashboardPreview:p,isModalPreview:!1,customColor:D,dataframesObject:x,isQueryBot:_}).config,chartFields:r,keyValue:m,style:{height:"100%",width:"100%"},isRunning:a,isPreview:f,isDashboardPreview:p,queryError:o,queryWarning:s,type:J.chartType,chartName:n,isExplore:w,showDelete:S,showCounterMetric:C,chartMetric:{value:ev(ce),title:XU((Be=te==null?void 0:te.fields)==null?void 0:Be.yField),metric:ie},handleMetricChange:Ee,isQueryBot:_,savedQueryId:R,dashboardView:k,isDataEmpty:Ft.isEmpty(h)}),p&&!a&&K&&ee&&E.jsxs("div",{className:"dashboardPreviewTag",children:[E.jsxs("div",{className:"chartTag timeTag",children:[ee," ",E.jsx($6,{})]}),E.jsx(Pn,{label:Z?q.REFRESHING:q.REFRESH_RESULTS,children:E.jsx("span",{children:E.jsx(_n,{onClick:ze=>{ze.stopPropagation(),V6($)},disabled:Z,className:"refreshBtn",children:Z?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(_v,{})})})})]})]})},l8=ke.memo(Hbo),zjn=t=>t===sp.markdown?"220px":"30px",Gjn=t=>{switch(t){case sp.header:return"100%";case sp.divider:return"100%";case sp.visual:return"34%";case sp.markdown:return"34%";default:return"unset"}},Vjn=gt.div`
  padding-top: ${t=>t.type==="dashboardHome"?"0px":"56px"};
  .overlayLoading {
    position: fixed;
  }
  .emptyDashboardBlock {
    padding-top: 120px;
    img {
      max-width: 75%;
      margin: 0 auto;
    }
  }
  .dashboardWrapper {
    .boxContent {
      .dashboardView {
        .chartBox {
          .chartInfo {
            padding-right: 120px;
          }
        }
      }
      .chartBox {
        border-radius: 8px;
        .downloadAsImage,
        .openInEditorButton,
        .openInVisualEditorIcon {
          opacity: 0;
        }
        &:hover {
          .downloadAsImage,
          .openInEditorButton,
          .openInVisualEditorIcon {
            opacity: 1;
          }
        }
      }
    }
  }
  .dashboardWrapperImg {
    background: #060119;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100%;
    position: relative;
    overflow: hidden;
    .dashboardImage {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: calc(100vh + 230px);
      img,
      canvas {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    &:after {
      content: '';
      position: absolute;
      top: calc(100vh + 200px);
      left: -30px;
      width: calc(100% + 60px);
      height: 60px;
      background: #060119;
      filter: blur(12px);
    }
    .MuiSkeleton-root {
      background: ${t=>{var e,n;return t.$chartBackground&&`linear-gradient(
        to right,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 35%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]}
      )`}} !important;
    }
    .mainContent {
      position: relative;
      z-index: 1;
    }
    .boxContent {
      padding: 0;
      background: transparent;
      box-shadow: unset;
      .dashboardViewPanel {
        background: ${t=>{var e;return t!=null&&t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[2]:"rgb(255 255 255 / 10%)"}};
        border-radius: 32px;
        border-top-left-radius: 0;
        padding: 16px;
        backdrop-filter: blur(8px);
      }
      .dashboardInfo {
        padding: ${t=>t!=null&&t.showSearchResultpanel?"60px 0 20px":"100px 0"};
        text-align: center;
        h2 {
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          font-size: ${t=>t.theme.custom.fontSize.font48};
          color: ${t=>t!=null&&t.$titleColor?t==null?void 0:t.$titleColor:t.theme.custom.white.A11};
          text-shadow: 0 0 15px rgb(0 0 0 / 60%);
          margin-bottom: 8px;
          word-break: break-word;
        }
        .searchBox {
          position: relative;
          .searchIcon {
            background-color: transparent;
          }
        }
      }
    }
    .addButton {
      text-align: right;
      margin-top: -24px;
      padding: 0 24px;
      position: relative;
      button {
        border: 0;
        height: 48px;
        width: 48px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: ${t=>{var e;return(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}};
        cursor: pointer;
        &:hover {
          color: ${t=>t.theme.custom.white.A1};
        }
        &:disabled {
          pointer-events: none !important;
        }
      }
    }
  }
  .topBarAction {
    .MuiIconButton-root {
      background: ${t=>t.theme.custom.secondaryBg};
      border: 0;
      box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    }
  }
  .openInEditorButton {
    top: -30px;
    right: 60px;
    &.notChart {
      top: 23px;
      right: 80px;
    }
  }
  .downloadAsImage {
    top: -30px;
    right: 90px;
    &.notChart {
      top: 23px;
      right: 110px;
    }
  }

  .boxContent {
    min-height: ${t=>t.height-24}px;
    ${t=>t.theme.breakpoints.down("sm")} {
      min-height: ${t=>t.height}px;
    }
  }

  .topBar {
    display: flex;
    margin-bottom: 16px;
    .topBarAction {
      flex: 0 0 340px;
      max-width: 340px;
      text-align: right;
    }
    .btnRow {
      display: flex;
      width: 100%;
      justify-content: flex-end;
      margin-top: 10px;
      .likeButton {
        margin-top: 2px;
        margin-right: 8px;
      }
      .btnBack {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
        border: 0;
      }
    }
  }
  .topBar .topBarHead {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    .topBarHeadTitle {
      flex: 1;
      overflow: hidden;
    }
    .isPublicCheck {
      border: 1px solid #675b8c;
      border-radius: 8px;
      &.disabled {
        cursor: not-allowed;
      }
      button {
        border: 0;
        &.MuiButton-containedPrimary:hover {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
        }
        &.MuiButton-containedSecondary {
          background: transparent;
        }
        + button {
          margin-left: 0;
          border-left: 1px solid #675b8c;
        }
      }
    }
    .MuiInputBase-root {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    }
    .topTitleInput {
      background: transparent;
      box-shadow: unset;
      border: 0.5px solid ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A11}};
    }
    .inputHelpText {
      right: 8px;
      top: 12px;
    }
  }
  .topBar .topBarHead h2 {
    margin-bottom: 0;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A3}};
    div {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  .topBar button + button {
    margin-left: 8px;
  }

  .tabButtonGroup {
    margin-bottom: 24px;
    .tabButton:not(:last-child) {
      margin-right: 24px;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .topBar.topBarResView {
      .topBarHead {
        opacity: 0;
      }
      .topBarHead h2,
      .topBarAction button:not(.backBtn) {
        display: none;
      }
    }
    .dashboardWrapper {
      .boxContent {
        .chartBox {
          .downloadAsImage,
          .openInEditorButton,
          .openInVisualEditorIcon {
            opacity: 1;
          }
        }
      }
    }
    .dashboardWrapperImg {
      .boxContent {
        .dashboardInfo {
          h2 {
            font-size: ${t=>t.theme.custom.fontSize.font30};
          }
        }
      }
      .addButton {
        display: none;
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .dashboardWrapperImg {
      .mainContent {
        padding: 12px;
      }
      .boxContent {
        .dashboardInfo {
          padding: 30px 0 20px;
          h2 {
            font-size: ${t=>t.theme.custom.fontSize.font26};
          }
        }
        .dashDescription {
          max-width: 100%;
          border-radius: 16px 16px 0 0;
          padding: 16px 16px 16px;
          &:after {
            display: none;
          }
        }
        .dashboardViewPanel {
          border-radius: 0 0 16px 16px;
          padding: 8px;
        }
      }
    }
  }
`,Ubo=gt.div`
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
  padding: 8px;
  border-radius: 8px;
  .selectFilter {
    flex: 0 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
  }
`,zbo=gt.div`
  position: relative;
  flex: 0 0 calc(100% - 42px);
  max-width: calc(100% - 42px);
  input.MuiOutlinedInput-input {
    padding-left: 35px !important;
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .searchIcon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    line-height: 1;
    z-index: 1;
  }
`,Kjn=gt.div`
  && {
    .strippedTable,
    .tableBody,
    .markdown {
      &::-webkit-scrollbar-track {
        background: ${t=>{var e;return t!=null&&t.$useImgColors?`${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}`:"#311E4D"}};
      }
      &::-webkit-scrollbar-thumb {
        background: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
        180deg,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
      )`:"linear-gradient(180deg, #715E94 -5.81%, #2C1B4B 111.4%), #22272F"}};
      }
    }
    .strippedTable {
      background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
        180deg,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
      )`}};
      .MuiTableBody-root .MuiTableRow-root:nth-child(odd) {
        background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[0])}};
      }
    }
    .MuiSkeleton-root {
      background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
        to right,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 35%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]}
      ) !important`}};
    }
    .counterWidget {
      .counterCard:before {
        opacity: ${t=>(t==null?void 0:t.$useImgColors)&&0};
      }
      .titleRow {
        .counterType {
          color: ${t=>(t==null?void 0:t.$useImgColors)&&t.theme.custom.white.A1};
          background: ${t=>(t==null?void 0:t.$useImgColors)&&"transparent"};
          border: ${t=>(t==null?void 0:t.$useImgColors)&&`1px solid ${t.theme.custom.white.A1}`};
        }
      }
    }
    .dashboardPreviewTag {
      .chartTag.timeTag {
        background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[2])}};
      }
    }
  }
  display: flex;
  position: relative;
  .panelLeft {
    flex: 1 1 0%;
  }

  .react-draggable-dragging {
    .react-resizable-handle {
      display: none;
    }
  }
  .react-grid-placeholder {
    left: 0px;
    min-width: ${t=>t.chartType==="table"?"50%":Gjn(t.itemType)};
    min-height: ${t=>t.itemType===sp.visual?"230px":zjn(t.itemType)};
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed #8178a9;
    margin-left: -10px;
    margin-right: 0px;
    .react-resizable-handle {
      display: none;
    }
  }
  &.createEditDashboard {
    .chartBox {
      .alertMessageBlock {
        .alertError {
          .emptyDataMsg {
            display: none;
          }
        }
      }
    }
  }
  .panelLeft {
    position: relative;
    .dashboardTitle {
      position: relative;
      padding: 60px 16px;
      .imgTitleInput {
        background: transparent;
        box-shadow: unset;
        .MuiOutlinedInput-input {
          padding: 0 50px 0 0;
          text-align: center;
          font-size: ${t=>t.theme.custom.fontSize.font48};
        }
      }
      .inputHelpText {
        right: 10px;
        top: 20px;
        color: ${t=>(t==null?void 0:t.$useImgColors)&&t.theme.custom.white.A1};
      }
      h2 {
        font-size: ${t=>t.theme.custom.fontSize.font48};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        color: ${t=>t==null?void 0:t.$titleColor};
        text-shadow: 0 0 15px rgb(0 0 0 / 60%);
        margin: 0;
        word-break: break-word;
        text-align: center;
      }
    }
    .imgBlockLoading {
      position: absolute;
      top: 0;
      width: 100%;
      height: 100%;
      z-index: 99;
    }
  }
  .panelLeft .gridLayout {
    background: ${t=>t.theme.custom.editorBg};
    border-radius: 4px;
    position: relative;
    min-height: ${t=>t.height-85}px;
    height: 100%;
    display: flex;
    flex-direction: column;
    .imgBlock {
      position: absolute;
      width: 100%;
      height: ${t=>t.height-85}px;
      overflow: hidden;
      // canvas {
      //   height: 0 !important;
      //   width: 0 !important;
      //   visibility: hidden;
      // }
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }
    .imgBlockLoading {
      height: ${t=>t.imgUrl?t.height-320:150}px;
    }
  }
  .panelLeft .gridLayout.dashboardViewSection {
    min-height: 60vh;
  }
  .panelLeft .gridLayout.dashboardViewSection,
  .panelLeft .gridLayout.dashboardViewSection .gridContainer {
    background: transparent;
    backdrop-filter: inherit;
  }

  .panelLeft .gridLayout.dashboardViewSection .gridContainer .chartBox:hover {
    background: ${t=>t.theme.custom.boxBg3};
  }

  .panelLeft .gridLayout .dragContainer {
    min-height: 100%;
  }

  .panelLeft .gridLayout .dragContainer .react-resizable-handle:after {
    border-right: 2px solid ${t=>t.theme.custom.white.A1};
    border-bottom: 2px solid ${t=>t.theme.custom.white.A1};
    width: 8px;
    height: 8px;
  }
  .panelLeft .chartBox {
    background: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
      180deg,
      ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%,
      ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100%
    ) !important`:t.theme.custom.boxBg3}};
    backdrop-filter: blur(100px);
    box-shadow: 4px 4px 32px
      ${t=>{var e;return t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]:"unset"}};
    border: 0;
  }
  .panelLeft .chartBox:hover {
    box-shadow: unset;
  }
  .panelLeft .chartBox {
    cursor: ${t=>(t.infoView,"move !important")};
  }

  .panelLeft .chartBox .chartImg .chart canvas {
    pointer-events: unset;
  }
  .panelRight {
    flex: 0 0 340px;
    max-width: 340px;
    padding: 0 8px 0 24px;
    align-self: flex-start;
    position: sticky;
    top: 0;
  }
  .panelRight .droppable-element .MuiTableBody-root > div {
    position: static !important;
  }
  .panelRight .chartBox {
    background: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
      180deg,
      ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%,
      ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100%
    ) !important`:t.theme.custom.thumbnailBg}};
    box-shadow: 0px 6px 30px rgb(0 0 0 / 30%);
  }
  .panelRight .chartBox .chartImg {
    background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
        180deg,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100%
      ) !important`}};
    overflow: hidden;
  }
  .panelRight .chartBox:hover,
  .panelRight .chartBox.active {
    transform: translateY(0);
  }
  .panelRight .chartList {
    margin-top: 10px;
    max-height: ${t=>t.infoView?600:t.height-195}px;
    overflow: auto;
  }

  .droppable-element .chartBox {
    cursor: move !important;
  }
  .droppable-element .chartImg {
    pointer-events: none;
  }
  .dashboardViewSection {
    .alertMessageBlock {
      cursor: pointer;
      img {
        pointer-events: none;
      }
    }

    .chartBox {
      cursor: default !important;
      .openInVisualEditorIcon {
        top: 23px;
        right: 50px;
      }
      .exploreIcon {
        top: 23px;
        right: 20px;
        svg {
          max-width: 15px;
        }
      }
    }
    .component:hover {
      border: none;
    }
    .react-resizable-handle {
      display: none;
    }
    .component div {
      cursor: pointer !important;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .panelRight {
      display: none;
    }
  }
`;gt.div`
  background-color: #060119;
  position: relative;
  min-height: ${t=>t.pageHeight?`${t.pageHeight}px`:"100vh"};
  display: flex;
  flex-direction: column;
  .dashboardWrapperImg {
    background: transparent;
    .dashboardViewLoading {
      height: 345px;
    }
    .mainContent {
      padding-top: 56px;
    }
    .boxContent {
      box-shadow: none;
    }
  }
`;const cLt=gt.div`
  background: ${t=>{var e;return t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[2]:"rgb(255 255 255 / 10%)"}};
  border-radius: 32px 32px 0 0;
  max-width: ${t=>t.$isZKPay?"100%":"512px"};
  padding: 32px 32px 16px;
  position: relative;
  margin: 0;
  backdrop-filter: blur(8px);

  /* Add condition to skip applying styles if $isZKPay is true */
  ${t=>{var e;return!t.$isZKPay&&`
    &:after {
      content: '';
      position: absolute;
      left: 100%;
      bottom: 0;
      width: 32px;
      height: 32px;
      background-image: radial-gradient(
        circle at 100% 0,
        transparent 0%,
        transparent 32px,
        ${t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[2]:"rgb(255 255 255 / 10%)"}
        32px
      );
      backdrop-filter: blur(8px);
    }
  `}}

  .zkETHDescriptionWrapper {
    max-width: 100%;
    .zkETHDescriptionText {
      font-family: Inter, sans-serif;
      background: transparent;
      padding: 0px 45px 0px 0px;
      width: ${t=>t.$isZKPay?"90%":"100%"};
      margin: ${t=>t.$isZKPay?"0 auto":""};
      resize: none;
      border: none;
      overflow: hidden auto;
      color: #e6e6e6;
      font-size: ${t=>t.$isZKPay?"14px":"12px"};
      text-align: ${t=>t.$isZKPay?"center":""};
    }
    .getStartedButton {
      margin-bottom: 30px;
      display: flex;
      flex-direction: row;
      justify-content: center;
      button {
        margin-top: 20px;
        padding-left: 45px;
        padding-right: 45px;
      }
    }
  }

  @media (max-width: 1000px) {
    &:after {
      display: ${t=>t.$isZKPay?"none":""};
    }
  }

  .listHead {
    margin-bottom: 16px;
    border-bottom: 1px solid ${t=>t.theme.custom.white.A6};
    display: flex;

    flex-direction: ${t=>t.$isZKPay?"row":"column"};
    justify-content: ${t=>t.$isZKPay?"center":""};
    h3 {
      position: relative;
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>t.$isZKPay?"20px":t.theme.custom.fontSize.font16};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
      padding-bottom: 16px;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      /* font-size: ${t=>t.$isZKPay?"16px":""}; */
      &:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 35px;
        background: ${t=>t.theme.custom.white.A11};
      }
    }
    .editbutton {
      height: 25px;
      width: 25px;
      margin-left: auto;
      box-shadow: unset;
    }
    .editTitle {
      padding-bottom: 5px;
      width: 100%;
      .titleInput {
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>t.theme.custom.fontSize.font16};
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
        box-shadow: unset;
        background: ${t=>{var e;return t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]:"transparent"}};
      }
      .inputHelpText {
        right: 7px;
        top: 10px;
      }
    }
  }
  .descriptiveText {
    .textContent {
      font-size: ${t=>t.theme.custom.fontSize.font12};
      color: ${t=>t.theme.custom.white.A11};
      border-radius: ${t=>t.isEditable?"8px":"0px"};
      padding: ${t=>t.isEditable?"8px 4px 0 16px":"8px 0 0 0"};
      background: ${t=>{var e;return t.isEditable?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]:"transparent"}};
      .textArea {
        min-height: 18px;
        max-height: 72px;
        padding-right: ${t=>!(t!=null&&t.isEditable)&&0} !important;
        &::-webkit-scrollbar-track {
          background: ${t=>{var e;return(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}};
        }
        &::-webkit-scrollbar-thumb {
          background: ${t=>{var e,n;return`linear-gradient(
              180deg,
              ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
              ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
            )`}};
        }
      }
    }
  }
`,Gbo=gt.div`
  height: 300px;
  .openInEditorButton,
  .downloadAsImage {
    display: none;
  }
  .counterWidget {
    .counterCard {
      padding: 10px 10px 10px 30px;
      &:before {
        opacity: ${t=>(t==null?void 0:t.$useImgColors)&&0};
      }
      .counterBody {
        text-align: left;
        .counterValue {
          font-size: ${t=>t.theme.custom.heading.h1};
        }
      }
    }
  }
  .dashboardPreviewTag {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 4px;
    .chartTag {
      font-size: ${t=>t.theme.custom.fontSize.font10};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      line-height: 12px;
      border-radius: 4px;
      padding: 4px 6px;
      white-space: nowrap;
      &.timeTag {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        line-height: 14px;
        background: ${t=>t.theme.custom.tags.A4};
        color: ${t=>t.theme.custom.white.A11};
        border: 1px solid ${t=>t.theme.custom.tags.bg5};
        svg {
          height: 14px;
        }
      }
    }
    button.refreshBtn {
      height: 20px;
      width: 20px;
      border: 0;
    }
  }
`;gt.div``;const Wjn=({name:t,widgetDescription:e,metadata:n,visualId:r,visualType:a,savedQueryId:o,isPreview:s=!0,dashboardView:l=!1,boxHeight:c,hideTooltip:u=!1,showDelete:d=!0,deleteChart:h,isDashboardPreview:f=!0,userId:p})=>{const[m,g]=Y.useState([]),v=ho(),A=Xga(),y=gO(),S=Kdn(),x=Doe()||"Query1",{chartBackground:w,useImgColors:_}=_p(),C=localStorage.getItem("userId")||"",R=qw(),[k,P]=Y.useState(!1);vga(),Y.useEffect(()=>(Ioe(r,o,a,n,v,!1),()=>{}),[r,o]);const{chartType:N}=n||{},L=Coe(o),[I,b]=Y.useState(!1),T=xo(),M=J=>{T.push(tr.queriesPath(J))},D=Y.useRef(null);let{data:B}=L||{};const{columns:j,error:H,message:U,warning:$,dataframesObject:z={},queryData:Z,lastRefreshTime:K,isRefreshViewLoading:Q=!1}=L||{},ee=()=>{var de;let J="";m.forEach(ce=>{J+=ce.join(","),J+=`
`});const ne=new Blob(["",J]),ie=window.URL.createObjectURL(new Blob([ne])),he=document.createElement("a");he.href=ie,he.setAttribute("download",`${a1e(t||x)}.csv`),document.body.appendChild(he),he.click(),(de=he==null?void 0:he.parentNode)==null||de.removeChild(he)},X=()=>{const J=[];if(B!=null&&B.length&&(j!=null&&j.length)){const ne=j==null?void 0:j.map((ie,he)=>{const de=y[he];return(de==null?void 0:de.title)||ie.fieldName});J==null||J.push(ne),S!=null&&S.length?J==null||J.push(...S):J==null||J.push(...B)}J!=null&&J.length&&g([...J])};Y.useEffect(()=>{j!=null&&j.length&&(B!=null&&B.length)&&X()},[j,B,y,S]);const te=()=>{D!=null&&D.current&&K2a(D==null?void 0:D.current,{backgroundColor:_?Jit(w[0]):qt.custom.thumbnailBg}).then(J=>{const ne=J.toDataURL("image/png"),ie=document.createElement("a");ie.href=ne,ie.download=a1e(t)||"counter.png",ie.click()}).catch(()=>{Kn(q.DOWNLOADING_FAILED)})};return A?E.jsx("div",{className:`${k?"no-drag":""}`,children:E.jsx(oTe,{visualType:a})}):E.jsxs("div",{className:`${k?"no-drag":""} chartBox`,children:[l&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"chartInfo",children:[E.jsx(Pn,{label:d?t:q.CLICK_TO_EDIT(t),children:d?E.jsx("span",{className:"chartName",children:t}):E.jsx(d1,{className:`chartName linkText ${C!==p?"disabled":""}`,to:tr.updateChart(r),children:t})}),d&&E.jsx("div",{onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:E.jsx(_n,{onClick:()=>{P(!1),h&&h(r)},tooltip:q.REMOVE,children:E.jsx(Wl,{})})})]}),!d&&!H&&!$&&E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:q.VIEW,children:E.jsx("button",{"aria-label":"download-image",type:"button",onClick:()=>b(!I),className:"downloadAsImage exploreIcon",children:E.jsx(wmi,{})})}),(a===ka.COUNTERCARD||a===ka.TABLE)&&E.jsx(Pn,{label:q.VIEW_QUERY,children:E.jsx("button",{"aria-label":"no-chart",type:"button",onClick:()=>M(o),className:"openInEditorButton notChart",children:E.jsx(oN,{})})}),a&&E.jsx(Pn,{label:q.CONFIGURE_VISUALIZATION,children:E.jsx("button",{"aria-label":"update chart",type:"button",onClick:()=>T.push(tr.updateChart(r)),className:"openInVisualEditorIcon",disabled:C!==p,children:E.jsx(x2,{})})}),a===ka.TABLE&&E.jsx(Pn,{label:q.DOWNLOAD_INVOICE,children:E.jsx("button",{"aria-label":"download-image",type:"button",onClick:ee,className:"downloadAsImage notChart",children:E.jsx(ize,{})})}),a===ka.COUNTERCARD&&E.jsx(Pn,{label:q.DOWNLOAD_INVOICE,children:E.jsx("button",{"aria-label":"download-image",type:"button",onClick:te,className:"downloadAsImage notChart",children:E.jsx(ize,{})})})]})]}),E.jsx("div",{className:"chartImg",children:E.jsx("div",{className:"chart",children:E.jsx(l8,{chartID:"chart-preview",echartId:`chart-preview-${r}`,chartFields:Ft.isEmpty(R)?n==null?void 0:n.fields:R,counterFields:n,isRunning:!B&&!H,queryError:H&&U,queryWarning:$&&U,chartType:N,visualType:a,chartName:t,visualId:r,columns:j,boxHeight:c,isPreview:s,isDashboardPreview:f,hideTooltip:u,dataframesObject:z,data:B,showDelete:d,isExplore:!0,showCounterMetric:!0,savedQueryId:o,counterRef:D,queryRefreshDetails:{queryData:Z,lastRefreshTime:K,isRefreshViewLoading:Q},dashboardView:l})})}),!l&&E.jsxs("div",{className:"chartInfo",children:[E.jsx(Pn,{label:t,children:E.jsx("span",{className:"chartName",children:t})}),E.jsx(Pn,{label:e,children:E.jsx("p",{className:"description",children:e})})]}),E.jsx(lf,{title:t,visible:I,onClose:()=>b(!I),className:"chartViewModal",children:E.jsx(Gbo,{$useImgColors:_,children:E.jsx(l8,{chartID:"chart-preview",echartId:`chart-preview-${r}`,chartFields:Ft.isEmpty(R)?n==null?void 0:n.fields:R,counterFields:n,isRunning:!B&&!H,queryError:H&&U,queryWarning:$&&U,chartType:N,visualType:a,visualId:r,chartName:t,columns:j,boxHeight:"1000px",isPreview:s,isDashboardPreview:f,hideTooltip:u,data:B,showDelete:d,showCounterMetric:!0,savedQueryId:o,dataframesObject:z,isChartVis:!0,tableVisHeight:252,counterTooltipPlacement:"bottom-start",queryRefreshDetails:{queryData:Z,lastRefreshTime:K,isRefreshViewLoading:Q},dashboardView:l})})})]})},uLt=t=>{var d;const{item:e,index:n,isLayoutEditable:r,preview:a=!1}=t,[o,s]=Y.useState(0),l=Y.useRef(null);Y.useLayoutEffect(()=>{if(l.current){const h=l.current;s((h==null?void 0:h.offsetHeight)||0)}},[l.current,e]);const c=Y.useMemo(()=>{var h,f,p;return((h=e.metadata)==null?void 0:h.chartType)===Di.TABLE.toLowerCase()?ka.TABLE:((f=e.metadata)==null?void 0:f.chartType)==="counter"?ka.COUNTERCARD:((p=e.metadata)==null?void 0:p.chartType)===Di.CARD.toLowerCase()?ka.CARD:ka.GRAPH},[o]),u=()=>e.h*dnt;return E.jsx(Woe,{boxHeight:u(),ref:l,className:`${((d=e==null?void 0:e.metadata)==null?void 0:d.chartType)||""} dashboardView`,"data-visualid":e==null?void 0:e.visualId,isLayoutEditable:r,children:E.jsx(Wjn,{name:e==null?void 0:e.name,widgetDescription:e==null?void 0:e.description,metadata:e==null?void 0:e.metadata,visualId:(e==null?void 0:e.visualId)||(e==null?void 0:e.id),visualType:c,boxHeight:o,savedQueryId:e==null?void 0:e.queryId,isPreview:a,hideTooltip:r,showDelete:r,dashboardView:!0,deleteChart:()=>j_e(e==null?void 0:e.i),userId:e==null?void 0:e.userId},n)},n)},dLt=["http","https","mailto","tel"];function Vbo(t){const e=(t||"").trim(),n=e.charAt(0);if(n==="#"||n==="/")return e;const r=e.indexOf(":");if(r===-1)return e;let a=-1;for(;++a<dLt.length;){const o=dLt[a];if(r===o.length&&e.slice(0,o.length).toLowerCase()===o)return e}return a=e.indexOf("?"),a!==-1&&r>a||(a=e.indexOf("#"),a!==-1&&r>a)?e:"javascript:void(0)"}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var Kbo=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)};const Wbo=Li(Kbo);function Ree(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?hLt(t.position):"start"in t||"end"in t?hLt(t):"line"in t||"column"in t?nQe(t):""}function nQe(t){return fLt(t&&t.line)+":"+fLt(t&&t.column)}function hLt(t){return nQe(t&&t.start)+"-"+nQe(t&&t.end)}function fLt(t){return t&&typeof t=="number"?t:1}class kE extends Error{constructor(e,n,r){const a=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const s=r.indexOf(":");s===-1?a[1]=r:(a[0]=r.slice(0,s),a[1]=r.slice(s+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=Ree(n)||"1:1",this.message=typeof e=="object"?e.message:e,this.stack="",typeof e=="object"&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=a[0],this.ruleId=a[1],this.file,this.actual,this.expected,this.url,this.note}}kE.prototype.file="";kE.prototype.name="";kE.prototype.reason="";kE.prototype.message="";kE.prototype.stack="";kE.prototype.fatal=null;kE.prototype.column=null;kE.prototype.line=null;kE.prototype.source=null;kE.prototype.ruleId=null;kE.prototype.position=null;const gT={basename:Qbo,dirname:qbo,extname:Ybo,join:Jbo,sep:"/"};function Qbo(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Sse(t);let n=0,r=-1,a=t.length,o;if(e===void 0||e.length===0||e.length>t.length){for(;a--;)if(t.charCodeAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let s=-1,l=e.length-1;for(;a--;)if(t.charCodeAt(a)===47){if(o){n=a+1;break}}else s<0&&(o=!0,s=a+1),l>-1&&(t.charCodeAt(a)===e.charCodeAt(l--)?l<0&&(r=a):(l=-1,r=s));return n===r?r=s:r<0&&(r=t.length),t.slice(n,r)}function qbo(t){if(Sse(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.charCodeAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.charCodeAt(0)===47?"/":".":e===1&&t.charCodeAt(0)===47?"//":t.slice(0,e)}function Ybo(t){Sse(t);let e=t.length,n=-1,r=0,a=-1,o=0,s;for(;e--;){const l=t.charCodeAt(e);if(l===47){if(s){r=e+1;break}continue}n<0&&(s=!0,n=e+1),l===46?a<0?a=e:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":t.slice(a,n)}function Jbo(...t){let e=-1,n;for(;++e<t.length;)Sse(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":Zbo(n)}function Zbo(t){Sse(t);const e=t.charCodeAt(0)===47;let n=Xbo(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.charCodeAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function Xbo(t,e){let n="",r=0,a=-1,o=0,s=-1,l,c;for(;++s<=t.length;){if(s<t.length)l=t.charCodeAt(s);else{if(l===47)break;l=47}if(l===47){if(!(a===s-1||o===1))if(a!==s-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=s,o=0;continue}}else if(n.length>0){n="",r=0,a=s,o=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(a+1,s):n=t.slice(a+1,s),r=s-a-1;a=s,o=0}else l===46&&o>-1?o++:o=-1}return n}function Sse(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const exo={cwd:txo};function txo(){return"/"}function rQe(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}function nxo(t){if(typeof t=="string")t=new URL(t);else if(!rQe(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return rxo(t)}function rxo(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.charCodeAt(n)===37&&e.charCodeAt(n+1)===50){const r=e.charCodeAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(e)}const q8e=["history","path","basename","stem","extname","dirname"];class Qjn{constructor(e){let n;e?typeof e=="string"||ixo(e)?n={value:e}:rQe(e)?n={path:e}:n=e:n={},this.data={},this.messages=[],this.history=[],this.cwd=exo.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<q8e.length;){const o=q8e[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)q8e.includes(a)||(this[a]=n[a])}get path(){return this.history[this.history.length-1]}set path(e){rQe(e)&&(e=nxo(e)),J8e(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return typeof this.path=="string"?gT.dirname(this.path):void 0}set dirname(e){pLt(this.basename,"dirname"),this.path=gT.join(e||"",this.basename)}get basename(){return typeof this.path=="string"?gT.basename(this.path):void 0}set basename(e){J8e(e,"basename"),Y8e(e,"basename"),this.path=gT.join(this.dirname||"",e)}get extname(){return typeof this.path=="string"?gT.extname(this.path):void 0}set extname(e){if(Y8e(e,"extname"),pLt(this.dirname,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gT.join(this.dirname,this.stem+(e||""))}get stem(){return typeof this.path=="string"?gT.basename(this.path,this.extname):void 0}set stem(e){J8e(e,"stem"),Y8e(e,"stem"),this.path=gT.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,n,r){const a=new kE(e,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}info(e,n,r){const a=this.message(e,n,r);return a.fatal=null,a}fail(e,n,r){const a=this.message(e,n,r);throw a.fatal=!0,a}}function Y8e(t,e){if(t&&t.includes(gT.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+gT.sep+"`")}function J8e(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function pLt(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function ixo(t){return Wbo(t)}function mLt(t){if(t)throw t}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var axo=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)};const oxo=Li(axo);var pge=Object.prototype.hasOwnProperty,qjn=Object.prototype.toString,gLt=Object.defineProperty,vLt=Object.getOwnPropertyDescriptor,ALt=function(e){return typeof Array.isArray=="function"?Array.isArray(e):qjn.call(e)==="[object Array]"},yLt=function(e){if(!e||qjn.call(e)!=="[object Object]")return!1;var n=pge.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&pge.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var a;for(a in e);return typeof a>"u"||pge.call(e,a)},bLt=function(e,n){gLt&&n.name==="__proto__"?gLt(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},xLt=function(e,n){if(n==="__proto__")if(pge.call(e,n)){if(vLt)return vLt(e,n).value}else return;return e[n]},sxo=function t(){var e,n,r,a,o,s,l=arguments[0],c=1,u=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(e=arguments[c],e!=null)for(n in e)r=xLt(l,n),a=xLt(e,n),l!==a&&(d&&a&&(yLt(a)||(o=ALt(a)))?(o?(o=!1,s=r&&ALt(r)?r:[]):s=r&&yLt(r)?r:{},bLt(l,{name:n,newValue:t(d,s,a)})):typeof a<"u"&&bLt(l,{name:n,newValue:a}));return l};const ELt=Li(sxo);function iQe(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function lxo(){const t=[],e={run:n,use:r};return e;function n(...a){let o=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...a);function l(c,...u){const d=t[++o];let h=-1;if(c){s(c);return}for(;++h<a.length;)(u[h]===null||u[h]===void 0)&&(u[h]=a[h]);a=u,d?cxo(d,l)(...u):s(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return t.push(a),e}}function cxo(t,e){let n;return r;function r(...s){const l=t.length>s.length;let c;l&&s.push(a);try{c=t.apply(this,s)}catch(u){const d=u;if(l&&n)throw d;return a(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,a):c instanceof Error?a(c):o(c))}function a(s,...l){n||(n=!0,e(s,...l))}function o(s){a(null,s)}}const uxo=Jjn().freeze(),Yjn={}.hasOwnProperty;function Jjn(){const t=lxo(),e=[];let n={},r,a=-1;return o.data=s,o.Parser=void 0,o.Compiler=void 0,o.freeze=l,o.attachers=e,o.use=c,o.parse=u,o.stringify=d,o.run=h,o.runSync=f,o.process=p,o.processSync=m,o;function o(){const g=Jjn();let v=-1;for(;++v<e.length;)g.use(...e[v]);return g.data(ELt(!0,{},n)),g}function s(g,v){return typeof g=="string"?arguments.length===2?(e9e("data",r),n[g]=v,o):Yjn.call(n,g)&&n[g]||null:g?(e9e("data",r),n=g,o):n}function l(){if(r)return o;for(;++a<e.length;){const[g,...v]=e[a];if(v[0]===!1)continue;v[0]===!0&&(v[0]=void 0);const A=g.call(o,...v);typeof A=="function"&&t.use(A)}return r=!0,a=Number.POSITIVE_INFINITY,o}function c(g,...v){let A;if(e9e("use",r),g!=null)if(typeof g=="function")w(g,...v);else if(typeof g=="object")Array.isArray(g)?x(g):S(g);else throw new TypeError("Expected usable value, not `"+g+"`");return A&&(n.settings=Object.assign(n.settings||{},A)),o;function y(_){if(typeof _=="function")w(_);else if(typeof _=="object")if(Array.isArray(_)){const[C,...R]=_;w(C,...R)}else S(_);else throw new TypeError("Expected usable value, not `"+_+"`")}function S(_){x(_.plugins),_.settings&&(A=Object.assign(A||{},_.settings))}function x(_){let C=-1;if(_!=null)if(Array.isArray(_))for(;++C<_.length;){const R=_[C];y(R)}else throw new TypeError("Expected a list of plugins, not `"+_+"`")}function w(_,C){let R=-1,k;for(;++R<e.length;)if(e[R][0]===_){k=e[R];break}k?(iQe(k[1])&&iQe(C)&&(C=ELt(!0,k[1],C)),k[1]=C):e.push([...arguments])}}function u(g){o.freeze();const v=iY(g),A=o.Parser;return Z8e("parse",A),SLt(A,"parse")?new A(String(v),v).parse():A(String(v),v)}function d(g,v){o.freeze();const A=iY(v),y=o.Compiler;return X8e("stringify",y),wLt(g),SLt(y,"compile")?new y(g,A).compile():y(g,A)}function h(g,v,A){if(wLt(g),o.freeze(),!A&&typeof v=="function"&&(A=v,v=void 0),!A)return new Promise(y);y(null,A);function y(S,x){t.run(g,iY(v),w);function w(_,C,R){C=C||g,_?x(_):S?S(C):A(null,C,R)}}}function f(g,v){let A,y;return o.run(g,v,S),_Lt("runSync","run",y),A;function S(x,w){mLt(x),A=w,y=!0}}function p(g,v){if(o.freeze(),Z8e("process",o.Parser),X8e("process",o.Compiler),!v)return new Promise(A);A(null,v);function A(y,S){const x=iY(g);o.run(o.parse(x),x,(_,C,R)=>{if(_||!C||!R)w(_);else{const k=o.stringify(C,R);k==null||(fxo(k)?R.value=k:R.result=k),w(_,R)}});function w(_,C){_||!C?S(_):y?y(C):v(null,C)}}}function m(g){let v;o.freeze(),Z8e("processSync",o.Parser),X8e("processSync",o.Compiler);const A=iY(g);return o.process(A,y),_Lt("processSync","process",v),A;function y(S){v=!0,mLt(S)}}}function SLt(t,e){return typeof t=="function"&&t.prototype&&(dxo(t.prototype)||e in t.prototype)}function dxo(t){let e;for(e in t)if(Yjn.call(t,e))return!0;return!1}function Z8e(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function X8e(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function e9e(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wLt(t){if(!iQe(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function _Lt(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function iY(t){return hxo(t)?t:new Qjn(t)}function hxo(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function fxo(t){return typeof t=="string"||oxo(t)}const pxo={};function mxo(t,e){const n=e||pxo,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Zjn(t,r,a)}function Zjn(t,e,n){if(gxo(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return TLt(t.children,e,n)}return Array.isArray(t)?TLt(t,e,n):""}function TLt(t,e,n){const r=[];let a=-1;for(;++a<t.length;)r[a]=Zjn(t[a],e,n);return r.join("")}function gxo(t){return!!(t&&typeof t=="object")}function zy(t,e,n,r){const a=t.length;let o=0,s;if(e<0?e=-e>a?0:a+e:e=e>a?a:e,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(e,n),t.splice(...s);else for(n&&t.splice(e,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}function hx(t,e){return t.length>0?(zy(t,t.length,0,e),t):e}const CLt={}.hasOwnProperty;function Xjn(t){const e={};let n=-1;for(;++n<t.length;)vxo(e,t[n]);return e}function vxo(t,e){let n;for(n in e){const a=(CLt.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let s;if(o)for(s in o){CLt.call(a,s)||(a[s]=[]);const l=o[s];Axo(a[s],Array.isArray(l)?l:l?[l]:[])}}}function Axo(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);zy(t,0,0,r)}const yxo=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,N0=wO(/[A-Za-z]/),gv=wO(/[\dA-Za-z]/),bxo=wO(/[#-'*+\--9=?A-Z^-~]/);function wye(t){return t!==null&&(t<32||t===127)}const aQe=wO(/\d/),xxo=wO(/[\dA-Fa-f]/),Exo=wO(/[!-/:-@[-`{-~]/);function Ha(t){return t!==null&&t<-2}function gu(t){return t!==null&&(t<0||t===32)}function Hs(t){return t===-2||t===-1||t===32}const T2e=wO(yxo),c8=wO(/\s/);function wO(t){return e;function e(n){return n!==null&&t.test(String.fromCharCode(n))}}function Al(t,e,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(c){return Hs(c)?(t.enter(n),l(c)):e(c)}function l(c){return Hs(c)&&o++<a?(t.consume(c),l):(t.exit(n),e(c))}}const Sxo={tokenize:wxo};function wxo(t){const e=t.attempt(this.parser.constructs.contentInitial,r,a);let n;return e;function r(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),Al(t,e,"linePrefix")}function a(l){return t.enter("paragraph"),o(l)}function o(l){const c=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(l)}function s(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return Ha(l)?(t.consume(l),t.exit("chunkText"),o):(t.consume(l),s)}}const _xo={tokenize:Txo},kLt={tokenize:Cxo};function Txo(t){const e=this,n=[];let r=0,a,o,s;return l;function l(S){if(r<n.length){const x=n[r];return e.containerState=x[1],t.attempt(x[0].continuation,c,u)(S)}return u(S)}function c(S){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,a&&y();const x=e.events.length;let w=x,_;for(;w--;)if(e.events[w][0]==="exit"&&e.events[w][1].type==="chunkFlow"){_=e.events[w][1].end;break}A(r);let C=x;for(;C<e.events.length;)e.events[C][1].end=Object.assign({},_),C++;return zy(e.events,w+1,0,e.events.slice(x)),e.events.length=C,u(S)}return l(S)}function u(S){if(r===n.length){if(!a)return f(S);if(a.currentConstruct&&a.currentConstruct.concrete)return m(S);e.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(kLt,d,h)(S)}function d(S){return a&&y(),A(r),f(S)}function h(S){return e.parser.lazy[e.now().line]=r!==n.length,s=e.now().offset,m(S)}function f(S){return e.containerState={},t.attempt(kLt,p,m)(S)}function p(S){return r++,n.push([e.currentConstruct,e.containerState]),f(S)}function m(S){if(S===null){a&&y(),A(0),t.consume(S);return}return a=a||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:a}),g(S)}function g(S){if(S===null){v(t.exit("chunkFlow"),!0),A(0),t.consume(S);return}return Ha(S)?(t.consume(S),v(t.exit("chunkFlow")),r=0,e.interrupt=void 0,l):(t.consume(S),g)}function v(S,x){const w=e.sliceStream(S);if(x&&w.push(null),S.previous=o,o&&(o.next=S),o=S,a.defineSkip(S.start),a.write(w),e.parser.lazy[S.start.line]){let _=a.events.length;for(;_--;)if(a.events[_][1].start.offset<s&&(!a.events[_][1].end||a.events[_][1].end.offset>s))return;const C=e.events.length;let R=C,k,P;for(;R--;)if(e.events[R][0]==="exit"&&e.events[R][1].type==="chunkFlow"){if(k){P=e.events[R][1].end;break}k=!0}for(A(r),_=C;_<e.events.length;)e.events[_][1].end=Object.assign({},P),_++;zy(e.events,R+1,0,e.events.slice(C)),e.events.length=_}}function A(S){let x=n.length;for(;x-- >S;){const w=n[x];e.containerState=w[1],w[0].exit.call(e,t)}n.length=S}function y(){a.write([null]),o=void 0,a=void 0,e.containerState._closeFlow=void 0}}function Cxo(t,e,n){return Al(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _ye(t){if(t===null||gu(t)||c8(t))return 1;if(T2e(t))return 2}function C2e(t,e,n){const r=[];let a=-1;for(;++a<t.length;){const o=t[a].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}const oQe={name:"attention",tokenize:Rxo,resolveAll:kxo};function kxo(t,e){let n=-1,r,a,o,s,l,c,u,d;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;c=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const h=Object.assign({},t[r][1].end),f=Object.assign({},t[n][1].start);RLt(h,-c),RLt(f,c),s={type:c>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},t[r][1].end)},l={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[n][1].start),end:f},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},a={type:c>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},l.end)},t[r][1].end=Object.assign({},s.start),t[n][1].start=Object.assign({},l.end),u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=hx(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=hx(u,[["enter",a,e],["enter",s,e],["exit",s,e],["enter",o,e]]),u=hx(u,C2e(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=hx(u,[["exit",o,e],["enter",l,e],["exit",l,e],["exit",a,e]]),t[n][1].end.offset-t[n][1].start.offset?(d=2,u=hx(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):d=0,zy(t,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function Rxo(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=_ye(r);let o;return s;function s(c){return o=c,t.enter("attentionSequence"),l(c)}function l(c){if(c===o)return t.consume(c),l;const u=t.exit("attentionSequence"),d=_ye(c),h=!d||d===2&&a||n.includes(c),f=!a||a===2&&d||n.includes(r);return u._open=!!(o===42?h:h&&(a||!f)),u._close=!!(o===42?f:f&&(d||!h)),e(c)}}function RLt(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const Mxo={name:"autolink",tokenize:Nxo};function Nxo(t,e,n){let r=0;return a;function a(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(p){return N0(p)?(t.consume(p),s):u(p)}function s(p){return p===43||p===45||p===46||gv(p)?(r=1,l(p)):u(p)}function l(p){return p===58?(t.consume(p),r=0,c):(p===43||p===45||p===46||gv(p))&&r++<32?(t.consume(p),l):(r=0,u(p))}function c(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||wye(p)?n(p):(t.consume(p),c)}function u(p){return p===64?(t.consume(p),d):bxo(p)?(t.consume(p),u):n(p)}function d(p){return gv(p)?h(p):n(p)}function h(p){return p===46?(t.consume(p),r=0,d):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):f(p)}function f(p){if((p===45||gv(p))&&r++<63){const m=p===45?f:h;return t.consume(p),m}return n(p)}}const wse={tokenize:Ixo,partial:!0};function Ixo(t,e,n){return r;function r(o){return Hs(o)?Al(t,a,"linePrefix")(o):a(o)}function a(o){return o===null||Ha(o)?e(o):n(o)}}const eHn={name:"blockQuote",tokenize:Pxo,continuation:{tokenize:Oxo},exit:Lxo};function Pxo(t,e,n){const r=this;return a;function a(s){if(s===62){const l=r.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),o}return n(s)}function o(s){return Hs(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function Oxo(t,e,n){const r=this;return a;function a(s){return Hs(s)?Al(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return t.attempt(eHn,e,n)(s)}}function Lxo(t){t.exit("blockQuote")}const tHn={name:"characterEscape",tokenize:Bxo};function Bxo(t,e,n){return r;function r(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),a}function a(o){return Exo(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}const MLt=document.createElement("i");function glt(t){const e="&"+t+";";MLt.innerHTML=e;const n=MLt.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}const nHn={name:"characterReference",tokenize:Dxo};function Dxo(t,e,n){const r=this;let a=0,o,s;return l;function l(h){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),c}function c(h){return h===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(h),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),o=31,s=gv,d(h))}function u(h){return h===88||h===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(h),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,s=xxo,d):(t.enter("characterReferenceValue"),o=7,s=aQe,d(h))}function d(h){if(h===59&&a){const f=t.exit("characterReferenceValue");return s===gv&&!glt(r.sliceSerialize(f))?n(h):(t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(h)&&a++<o?(t.consume(h),d):n(h)}}const NLt={tokenize:Fxo,partial:!0},ILt={name:"codeFenced",tokenize:$xo,concrete:!0};function $xo(t,e,n){const r=this,a={tokenize:w,partial:!0};let o=0,s=0,l;return c;function c(_){return u(_)}function u(_){const C=r.events[r.events.length-1];return o=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,l=_,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),d(_)}function d(_){return _===l?(s++,t.consume(_),d):s<3?n(_):(t.exit("codeFencedFenceSequence"),Hs(_)?Al(t,h,"whitespace")(_):h(_))}function h(_){return _===null||Ha(_)?(t.exit("codeFencedFence"),r.interrupt?e(_):t.check(NLt,g,x)(_)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),f(_))}function f(_){return _===null||Ha(_)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),h(_)):Hs(_)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Al(t,p,"whitespace")(_)):_===96&&_===l?n(_):(t.consume(_),f)}function p(_){return _===null||Ha(_)?h(_):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===null||Ha(_)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),h(_)):_===96&&_===l?n(_):(t.consume(_),m)}function g(_){return t.attempt(a,x,v)(_)}function v(_){return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),A}function A(_){return o>0&&Hs(_)?Al(t,y,"linePrefix",o+1)(_):y(_)}function y(_){return _===null||Ha(_)?t.check(NLt,g,x)(_):(t.enter("codeFlowValue"),S(_))}function S(_){return _===null||Ha(_)?(t.exit("codeFlowValue"),y(_)):(t.consume(_),S)}function x(_){return t.exit("codeFenced"),e(_)}function w(_,C,R){let k=0;return P;function P(T){return _.enter("lineEnding"),_.consume(T),_.exit("lineEnding"),N}function N(T){return _.enter("codeFencedFence"),Hs(T)?Al(_,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):L(T)}function L(T){return T===l?(_.enter("codeFencedFenceSequence"),I(T)):R(T)}function I(T){return T===l?(k++,_.consume(T),I):k>=s?(_.exit("codeFencedFenceSequence"),Hs(T)?Al(_,b,"whitespace")(T):b(T)):R(T)}function b(T){return T===null||Ha(T)?(_.exit("codeFencedFence"),C(T)):R(T)}}}function Fxo(t,e,n){const r=this;return a;function a(s){return s===null?n(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}const t9e={name:"codeIndented",tokenize:Hxo},jxo={tokenize:Uxo,partial:!0};function Hxo(t,e,n){const r=this;return a;function a(u){return t.enter("codeIndented"),Al(t,o,"linePrefix",4+1)(u)}function o(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?c(u):Ha(u)?t.attempt(jxo,s,c)(u):(t.enter("codeFlowValue"),l(u))}function l(u){return u===null||Ha(u)?(t.exit("codeFlowValue"),s(u)):(t.consume(u),l)}function c(u){return t.exit("codeIndented"),e(u)}}function Uxo(t,e,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):Ha(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a):Al(t,o,"linePrefix",4+1)(s)}function o(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(s):Ha(s)?a(s):n(s)}}const zxo={name:"codeText",tokenize:Kxo,resolve:Gxo,previous:Vxo};function Gxo(t){let e=t.length-4,n=3,r,a;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)a===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(a=r):(r===e||t[r][1].type==="lineEnding")&&(t[a][1].type="codeTextData",r!==a+2&&(t[a][1].end=t[r-1][1].end,t.splice(a+2,r-a-2),e-=r-a-2,r=a+2),a=void 0);return t}function Vxo(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kxo(t,e,n){let r=0,a,o;return s;function s(h){return t.enter("codeText"),t.enter("codeTextSequence"),l(h)}function l(h){return h===96?(t.consume(h),r++,l):(t.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),c):h===96?(o=t.enter("codeTextSequence"),a=0,d(h)):Ha(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||Ha(h)?(t.exit("codeTextData"),c(h)):(t.consume(h),u)}function d(h){return h===96?(t.consume(h),a++,d):a===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(o.type="codeTextData",u(h))}}function rHn(t){const e={};let n=-1,r,a,o,s,l,c,u;for(;++n<t.length;){for(;n in e;)n=e[n];if(r=t[n],n&&r[1].type==="chunkFlow"&&t[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,Wxo(t,n)),n=e[n],u=!0);else if(r[1]._container){for(o=n,a=void 0;o--&&(s=t[o],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(a&&(t[a][1].type="lineEndingBlank"),s[1].type="lineEnding",a=o);a&&(r[1].end=Object.assign({},t[a][1].start),l=t.slice(a,n),l.unshift(r),zy(t,a,n-a+1,l))}}return!u}function Wxo(t,e){const n=t[e][1],r=t[e][2];let a=e-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),l=s.events,c=[],u={};let d,h,f=-1,p=n,m=0,g=0;const v=[g];for(;p;){for(;t[++a][1]!==p;);o.push(a),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),h&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=n;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(g=f+1,v.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),f=v.length;f--;){const A=l.slice(v[f],v[f+1]),y=o.pop();c.unshift([y,y+A.length-1]),zy(t,y,2,A)}for(f=-1;++f<c.length;)u[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return u}const Qxo={tokenize:Jxo,resolve:Yxo},qxo={tokenize:Zxo,partial:!0};function Yxo(t){return rHn(t),t}function Jxo(t,e){let n;return r;function r(l){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?o(l):Ha(l)?t.check(qxo,s,o)(l):(t.consume(l),a)}function o(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function s(l){return t.consume(l),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Zxo(t,e,n){const r=this;return a;function a(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Al(t,o,"linePrefix")}function o(s){if(s===null||Ha(s))return n(s);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(s):t.interrupt(r.parser.constructs.flow,n,e)(s)}}function iHn(t,e,n,r,a,o,s,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return h;function h(A){return A===60?(t.enter(r),t.enter(a),t.enter(o),t.consume(A),t.exit(o),f):A===null||A===32||A===41||wye(A)?n(A):(t.enter(r),t.enter(s),t.enter(l),t.enter("chunkString",{contentType:"string"}),g(A))}function f(A){return A===62?(t.enter(o),t.consume(A),t.exit(o),t.exit(a),t.exit(r),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===62?(t.exit("chunkString"),t.exit(l),f(A)):A===null||A===60||Ha(A)?n(A):(t.consume(A),A===92?m:p)}function m(A){return A===60||A===62||A===92?(t.consume(A),p):p(A)}function g(A){return!d&&(A===null||A===41||gu(A))?(t.exit("chunkString"),t.exit(l),t.exit(s),t.exit(r),e(A)):d<u&&A===40?(t.consume(A),d++,g):A===41?(t.consume(A),d--,g):A===null||A===32||A===40||wye(A)?n(A):(t.consume(A),A===92?v:g)}function v(A){return A===40||A===41||A===92?(t.consume(A),g):g(A)}}function aHn(t,e,n,r,a,o){const s=this;let l=0,c;return u;function u(p){return t.enter(r),t.enter(a),t.consume(p),t.exit(a),t.enter(o),d}function d(p){return l>999||p===null||p===91||p===93&&!c||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(t.exit(o),t.enter(a),t.consume(p),t.exit(a),t.exit(r),e):Ha(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||Ha(p)||l++>999?(t.exit("chunkString"),d(p)):(t.consume(p),c||(c=!Hs(p)),p===92?f:h)}function f(p){return p===91||p===92||p===93?(t.consume(p),l++,h):h(p)}}function oHn(t,e,n,r,a,o){let s;return l;function l(f){return f===34||f===39||f===40?(t.enter(r),t.enter(a),t.consume(f),t.exit(a),s=f===40?41:f,c):n(f)}function c(f){return f===s?(t.enter(a),t.consume(f),t.exit(a),t.exit(r),e):(t.enter(o),u(f))}function u(f){return f===s?(t.exit(o),c(s)):f===null?n(f):Ha(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Al(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===s||f===null||Ha(f)?(t.exit("chunkString"),u(f)):(t.consume(f),f===92?h:d)}function h(f){return f===s||f===92?(t.consume(f),d):d(f)}}function Mee(t,e){let n;return r;function r(a){return Ha(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n=!0,r):Hs(a)?Al(t,r,n?"linePrefix":"lineSuffix")(a):e(a)}}function Ew(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xxo={name:"definition",tokenize:tEo},eEo={tokenize:nEo,partial:!0};function tEo(t,e,n){const r=this;let a;return o;function o(p){return t.enter("definition"),s(p)}function s(p){return aHn.call(r,t,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return a=Ew(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),c):n(p)}function c(p){return gu(p)?Mee(t,u)(p):u(p)}function u(p){return iHn(t,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return t.attempt(eEo,h,h)(p)}function h(p){return Hs(p)?Al(t,f,"whitespace")(p):f(p)}function f(p){return p===null||Ha(p)?(t.exit("definition"),r.parser.defined.push(a),e(p)):n(p)}}function nEo(t,e,n){return r;function r(l){return gu(l)?Mee(t,a)(l):n(l)}function a(l){return oHn(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return Hs(l)?Al(t,s,"whitespace")(l):s(l)}function s(l){return l===null||Ha(l)?e(l):n(l)}}const rEo={name:"hardBreakEscape",tokenize:iEo};function iEo(t,e,n){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),a}function a(o){return Ha(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}const aEo={name:"headingAtx",tokenize:sEo,resolve:oEo};function oEo(t,e){let n=t.length-2,r=3,a,o;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},o={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},zy(t,r,n-r+1,[["enter",a,e],["enter",o,e],["exit",o,e],["exit",a,e]])),t}function sEo(t,e,n){let r=0;return a;function a(d){return t.enter("atxHeading"),o(d)}function o(d){return t.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(t.consume(d),s):d===null||gu(d)?(t.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(t.enter("atxHeadingSequence"),c(d)):d===null||Ha(d)?(t.exit("atxHeading"),e(d)):Hs(d)?Al(t,l,"whitespace")(d):(t.enter("atxHeadingText"),u(d))}function c(d){return d===35?(t.consume(d),c):(t.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||gu(d)?(t.exit("atxHeadingText"),l(d)):(t.consume(d),u)}}const lEo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],PLt=["pre","script","style","textarea"],cEo={name:"htmlFlow",tokenize:fEo,resolveTo:hEo,concrete:!0},uEo={tokenize:mEo,partial:!0},dEo={tokenize:pEo,partial:!0};function hEo(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function fEo(t,e,n){const r=this;let a,o,s,l,c;return u;function u(z){return d(z)}function d(z){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(z),h}function h(z){return z===33?(t.consume(z),f):z===47?(t.consume(z),o=!0,g):z===63?(t.consume(z),a=3,r.interrupt?e:H):N0(z)?(t.consume(z),s=String.fromCharCode(z),v):n(z)}function f(z){return z===45?(t.consume(z),a=2,p):z===91?(t.consume(z),a=5,l=0,m):N0(z)?(t.consume(z),a=4,r.interrupt?e:H):n(z)}function p(z){return z===45?(t.consume(z),r.interrupt?e:H):n(z)}function m(z){const Z="CDATA[";return z===Z.charCodeAt(l++)?(t.consume(z),l===Z.length?r.interrupt?e:L:m):n(z)}function g(z){return N0(z)?(t.consume(z),s=String.fromCharCode(z),v):n(z)}function v(z){if(z===null||z===47||z===62||gu(z)){const Z=z===47,K=s.toLowerCase();return!Z&&!o&&PLt.includes(K)?(a=1,r.interrupt?e(z):L(z)):lEo.includes(s.toLowerCase())?(a=6,Z?(t.consume(z),A):r.interrupt?e(z):L(z)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):o?y(z):S(z))}return z===45||gv(z)?(t.consume(z),s+=String.fromCharCode(z),v):n(z)}function A(z){return z===62?(t.consume(z),r.interrupt?e:L):n(z)}function y(z){return Hs(z)?(t.consume(z),y):P(z)}function S(z){return z===47?(t.consume(z),P):z===58||z===95||N0(z)?(t.consume(z),x):Hs(z)?(t.consume(z),S):P(z)}function x(z){return z===45||z===46||z===58||z===95||gv(z)?(t.consume(z),x):w(z)}function w(z){return z===61?(t.consume(z),_):Hs(z)?(t.consume(z),w):S(z)}function _(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(t.consume(z),c=z,C):Hs(z)?(t.consume(z),_):R(z)}function C(z){return z===c?(t.consume(z),c=null,k):z===null||Ha(z)?n(z):(t.consume(z),C)}function R(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||gu(z)?w(z):(t.consume(z),R)}function k(z){return z===47||z===62||Hs(z)?S(z):n(z)}function P(z){return z===62?(t.consume(z),N):n(z)}function N(z){return z===null||Ha(z)?L(z):Hs(z)?(t.consume(z),N):n(z)}function L(z){return z===45&&a===2?(t.consume(z),M):z===60&&a===1?(t.consume(z),D):z===62&&a===4?(t.consume(z),U):z===63&&a===3?(t.consume(z),H):z===93&&a===5?(t.consume(z),j):Ha(z)&&(a===6||a===7)?(t.exit("htmlFlowData"),t.check(uEo,$,I)(z)):z===null||Ha(z)?(t.exit("htmlFlowData"),I(z)):(t.consume(z),L)}function I(z){return t.check(dEo,b,$)(z)}function b(z){return t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),T}function T(z){return z===null||Ha(z)?I(z):(t.enter("htmlFlowData"),L(z))}function M(z){return z===45?(t.consume(z),H):L(z)}function D(z){return z===47?(t.consume(z),s="",B):L(z)}function B(z){if(z===62){const Z=s.toLowerCase();return PLt.includes(Z)?(t.consume(z),U):L(z)}return N0(z)&&s.length<8?(t.consume(z),s+=String.fromCharCode(z),B):L(z)}function j(z){return z===93?(t.consume(z),H):L(z)}function H(z){return z===62?(t.consume(z),U):z===45&&a===2?(t.consume(z),H):L(z)}function U(z){return z===null||Ha(z)?(t.exit("htmlFlowData"),$(z)):(t.consume(z),U)}function $(z){return t.exit("htmlFlow"),e(z)}}function pEo(t,e,n){const r=this;return a;function a(s){return Ha(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}function mEo(t,e,n){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),t.attempt(wse,e,n)}}const gEo={name:"htmlText",tokenize:vEo};function vEo(t,e,n){const r=this;let a,o,s;return l;function l(H){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(H),c}function c(H){return H===33?(t.consume(H),u):H===47?(t.consume(H),w):H===63?(t.consume(H),S):N0(H)?(t.consume(H),R):n(H)}function u(H){return H===45?(t.consume(H),d):H===91?(t.consume(H),o=0,m):N0(H)?(t.consume(H),y):n(H)}function d(H){return H===45?(t.consume(H),p):n(H)}function h(H){return H===null?n(H):H===45?(t.consume(H),f):Ha(H)?(s=h,D(H)):(t.consume(H),h)}function f(H){return H===45?(t.consume(H),p):h(H)}function p(H){return H===62?M(H):H===45?f(H):h(H)}function m(H){const U="CDATA[";return H===U.charCodeAt(o++)?(t.consume(H),o===U.length?g:m):n(H)}function g(H){return H===null?n(H):H===93?(t.consume(H),v):Ha(H)?(s=g,D(H)):(t.consume(H),g)}function v(H){return H===93?(t.consume(H),A):g(H)}function A(H){return H===62?M(H):H===93?(t.consume(H),A):g(H)}function y(H){return H===null||H===62?M(H):Ha(H)?(s=y,D(H)):(t.consume(H),y)}function S(H){return H===null?n(H):H===63?(t.consume(H),x):Ha(H)?(s=S,D(H)):(t.consume(H),S)}function x(H){return H===62?M(H):S(H)}function w(H){return N0(H)?(t.consume(H),_):n(H)}function _(H){return H===45||gv(H)?(t.consume(H),_):C(H)}function C(H){return Ha(H)?(s=C,D(H)):Hs(H)?(t.consume(H),C):M(H)}function R(H){return H===45||gv(H)?(t.consume(H),R):H===47||H===62||gu(H)?k(H):n(H)}function k(H){return H===47?(t.consume(H),M):H===58||H===95||N0(H)?(t.consume(H),P):Ha(H)?(s=k,D(H)):Hs(H)?(t.consume(H),k):M(H)}function P(H){return H===45||H===46||H===58||H===95||gv(H)?(t.consume(H),P):N(H)}function N(H){return H===61?(t.consume(H),L):Ha(H)?(s=N,D(H)):Hs(H)?(t.consume(H),N):k(H)}function L(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(t.consume(H),a=H,I):Ha(H)?(s=L,D(H)):Hs(H)?(t.consume(H),L):(t.consume(H),b)}function I(H){return H===a?(t.consume(H),a=void 0,T):H===null?n(H):Ha(H)?(s=I,D(H)):(t.consume(H),I)}function b(H){return H===null||H===34||H===39||H===60||H===61||H===96?n(H):H===47||H===62||gu(H)?k(H):(t.consume(H),b)}function T(H){return H===47||H===62||gu(H)?k(H):n(H)}function M(H){return H===62?(t.consume(H),t.exit("htmlTextData"),t.exit("htmlText"),e):n(H)}function D(H){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),B}function B(H){return Hs(H)?Al(t,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):j(H)}function j(H){return t.enter("htmlTextData"),s(H)}}const vlt={name:"labelEnd",tokenize:SEo,resolveTo:EEo,resolveAll:xEo},AEo={tokenize:wEo},yEo={tokenize:_Eo},bEo={tokenize:TEo};function xEo(t){let e=-1;for(;++e<t.length;){const n=t[e][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(t.splice(e+1,n.type==="labelImage"?4:2),n.type="data",e++)}return t}function EEo(t,e){let n=t.length,r=0,a,o,s,l;for(;n--;)if(a=t[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;t[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(t[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const c={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[s][1].end)},d={type:"labelText",start:Object.assign({},t[o+r+2][1].end),end:Object.assign({},t[s-2][1].start)};return l=[["enter",c,e],["enter",u,e]],l=hx(l,t.slice(o+1,o+r+3)),l=hx(l,[["enter",d,e]]),l=hx(l,C2e(e.parser.constructs.insideSpan.null,t.slice(o+r+4,s-3),e)),l=hx(l,[["exit",d,e],t[s-2],t[s-1],["exit",u,e]]),l=hx(l,t.slice(s+1)),l=hx(l,[["exit",c,e]]),zy(t,o,t.length,l),t}function SEo(t,e,n){const r=this;let a=r.events.length,o,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return l;function l(f){return o?o._inactive?h(f):(s=r.parser.defined.includes(Ew(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelEnd"),c):n(f)}function c(f){return f===40?t.attempt(AEo,d,s?d:h)(f):f===91?t.attempt(yEo,d,s?u:h)(f):s?d(f):h(f)}function u(f){return t.attempt(bEo,d,h)(f)}function d(f){return e(f)}function h(f){return o._balanced=!0,n(f)}}function wEo(t,e,n){return r;function r(h){return t.enter("resource"),t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),a}function a(h){return gu(h)?Mee(t,o)(h):o(h)}function o(h){return h===41?d(h):iHn(t,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return gu(h)?Mee(t,c)(h):d(h)}function l(h){return n(h)}function c(h){return h===34||h===39||h===40?oHn(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function u(h){return gu(h)?Mee(t,d)(h):d(h)}function d(h){return h===41?(t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),t.exit("resource"),e):n(h)}}function _Eo(t,e,n){const r=this;return a;function a(l){return aHn.call(r,t,o,s,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(Ew(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(l):n(l)}function s(l){return n(l)}}function TEo(t,e,n){return r;function r(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),a}function a(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}const CEo={name:"labelStartImage",tokenize:kEo,resolveAll:vlt.resolveAll};function kEo(t,e,n){const r=this;return a;function a(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),o}function o(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):e(l)}}const REo={name:"labelStartLink",tokenize:MEo,resolveAll:vlt.resolveAll};function MEo(t,e,n){const r=this;return a;function a(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}const n9e={name:"lineEnding",tokenize:NEo};function NEo(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Al(t,e,"linePrefix")}}const mge={name:"thematicBreak",tokenize:IEo};function IEo(t,e,n){let r=0,a;return o;function o(u){return t.enter("thematicBreak"),s(u)}function s(u){return a=u,l(u)}function l(u){return u===a?(t.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||Ha(u))?(t.exit("thematicBreak"),e(u)):n(u)}function c(u){return u===a?(t.consume(u),r++,c):(t.exit("thematicBreakSequence"),Hs(u)?Al(t,l,"whitespace")(u):l(u))}}const PA={name:"list",tokenize:LEo,continuation:{tokenize:BEo},exit:$Eo},PEo={tokenize:FEo,partial:!0},OEo={tokenize:DEo,partial:!0};function LEo(t,e,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return l;function l(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:aQe(p)){if(r.containerState.type||(r.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(mge,n,u)(p):u(p);if(!r.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(p)}return n(p)}function c(p){return aQe(p)&&++s<10?(t.consume(p),c):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),u(p)):n(p)}function u(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,t.check(wse,r.interrupt?n:d,t.attempt(PEo,f,h))}function d(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function h(p){return Hs(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function BEo(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(wse,a,o);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Al(t,e,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!Hs(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(OEo,e,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Al(t,t.attempt(PA,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function DEo(t,e,n){const r=this;return Al(t,a,"listItemIndent",r.containerState.size+1);function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?e(o):n(o)}}function $Eo(t){t.exit(this.containerState.type)}function FEo(t,e,n){const r=this;return Al(t,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(o){const s=r.events[r.events.length-1];return!Hs(o)&&s&&s[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}const OLt={name:"setextUnderline",tokenize:HEo,resolveTo:jEo};function jEo(t,e){let n=t.length,r,a,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(a=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:Object.assign({},t[a][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[a][1].type="setextHeadingText",o?(t.splice(a,0,["enter",s,e]),t.splice(o+1,0,["exit",t[r][1],e]),t[r][1].end=Object.assign({},t[o][1].end)):t[r][1]=s,t.push(["exit",s,e]),t}function HEo(t,e,n){const r=this;let a;return o;function o(u){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(t.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return t.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(t.consume(u),l):(t.exit("setextHeadingLineSequence"),Hs(u)?Al(t,c,"lineSuffix")(u):c(u))}function c(u){return u===null||Ha(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}const UEo={tokenize:zEo};function zEo(t){const e=this,n=t.attempt(wse,r,t.attempt(this.parser.constructs.flowInitial,a,Al(t,t.attempt(this.parser.constructs.flow,a,t.attempt(Qxo,a)),"linePrefix")));return n;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function a(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const GEo={resolveAll:lHn()},VEo=sHn("string"),KEo=sHn("text");function sHn(t){return{tokenize:e,resolveAll:lHn(t==="text"?WEo:void 0)};function e(n){const r=this,a=this.parser.constructs[t],o=n.attempt(a,s,l);return s;function s(d){return u(d)?o(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),o(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const h=a[d];let f=-1;if(h)for(;++f<h.length;){const p=h[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function lHn(t){return e;function e(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return t?t(n,r):n}}function WEo(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],a=e.sliceStream(r);let o=a.length,s=-1,l=0,c;for(;o--;){const u=a[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(u===-2)c=!0,l++;else if(u!==-1){o++;break}}if(l){const u={type:n===t.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+o,_bufferIndex:o?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}function QEo(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},o=[];let s=[],l=[];const c={consume:y,enter:S,exit:x,attempt:C(w),check:C(_),interrupt:C(_,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:p,sliceSerialize:f,now:m,defineSkip:g,write:h};let d=e.tokenize.call(u,c);return e.resolveAll&&o.push(e),u;function h(N){return s=hx(s,N),v(),s[s.length-1]!==null?[]:(R(e,0),u.events=C2e(o,u.events,u),u.events)}function f(N,L){return YEo(p(N),L)}function p(N){return qEo(s,N)}function m(){const{line:N,column:L,offset:I,_index:b,_bufferIndex:T}=r;return{line:N,column:L,offset:I,_index:b,_bufferIndex:T}}function g(N){a[N.line]=N.column,P()}function v(){let N;for(;r._index<s.length;){const L=s[r._index];if(typeof L=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<L.length;)A(L.charCodeAt(r._bufferIndex));else A(L)}}function A(N){d=d(N)}function y(N){Ha(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,P()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=N}function S(N,L){const I=L||{};return I.type=N,I.start=m(),u.events.push(["enter",I,u]),l.push(I),I}function x(N){const L=l.pop();return L.end=m(),u.events.push(["exit",L,u]),L}function w(N,L){R(N,L.from)}function _(N,L){L.restore()}function C(N,L){return I;function I(b,T,M){let D,B,j,H;return Array.isArray(b)?$(b):"tokenize"in b?$([b]):U(b);function U(Q){return ee;function ee(X){const te=X!==null&&Q[X],J=X!==null&&Q.null,ne=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(J)?J:J?[J]:[]];return $(ne)(X)}}function $(Q){return D=Q,B=0,Q.length===0?M:z(Q[B])}function z(Q){return ee;function ee(X){return H=k(),j=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?K():Q.tokenize.call(L?Object.assign(Object.create(u),L):u,c,Z,K)(X)}}function Z(Q){return N(j,H),T}function K(Q){return H.restore(),++B<D.length?z(D[B]):M}}}function R(N,L){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&zy(u.events,L,u.events.length-L,N.resolve(u.events.slice(L),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function k(){const N=m(),L=u.previous,I=u.currentConstruct,b=u.events.length,T=Array.from(l);return{restore:M,from:b};function M(){r=N,u.previous=L,u.currentConstruct=I,u.events.length=b,l=T,P()}}function P(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function qEo(t,e){const n=e.start._index,r=e.start._bufferIndex,a=e.end._index,o=e.end._bufferIndex;let s;if(n===a)s=[t[n].slice(r,o)];else{if(s=t.slice(n,a),r>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}o>0&&s.push(t[a].slice(0,o))}return s}function YEo(t,e){let n=-1;const r=[];let a;for(;++n<t.length;){const o=t[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=e?" ":"	";break}case-1:{if(!e&&a)continue;s=" ";break}default:s=String.fromCharCode(o)}a=o===-2,r.push(s)}return r.join("")}const JEo={42:PA,43:PA,45:PA,48:PA,49:PA,50:PA,51:PA,52:PA,53:PA,54:PA,55:PA,56:PA,57:PA,62:eHn},ZEo={91:Xxo},XEo={[-2]:t9e,[-1]:t9e,32:t9e},eSo={35:aEo,42:mge,45:[OLt,mge],60:cEo,61:OLt,95:mge,96:ILt,126:ILt},tSo={38:nHn,92:tHn},nSo={[-5]:n9e,[-4]:n9e,[-3]:n9e,33:CEo,38:nHn,42:oQe,60:[Mxo,gEo],91:REo,92:[rEo,tHn],93:vlt,95:oQe,96:zxo},rSo={null:[oQe,GEo]},iSo={null:[42,95]},aSo={null:[]},oSo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:iSo,contentInitial:ZEo,disable:aSo,document:JEo,flow:eSo,flowInitial:XEo,insideSpan:rSo,string:tSo,text:nSo},Symbol.toStringTag,{value:"Module"}));function sSo(t){const n=Xjn([oSo,...(t||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(Sxo),document:a(_xo),flow:a(UEo),string:a(VEo),text:a(KEo)};return r;function a(o){return s;function s(l){return QEo(r,o,l)}}}const LLt=/[\0\t\n\r]/g;function lSo(){let t=1,e="",n=!0,r;return a;function a(o,s,l){const c=[];let u,d,h,f,p;for(o=e+o.toString(s),h=0,e="",n&&(o.charCodeAt(0)===65279&&h++,n=void 0);h<o.length;){if(LLt.lastIndex=h,u=LLt.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){e=o.slice(h);break}if(p===10&&h===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<f&&(c.push(o.slice(h,f)),t+=f-h),p){case 0:{c.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,c.push(-2);t++<d;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:r=!0,t=1}h=f+1}return l&&(r&&c.push(-5),e&&c.push(e),c.push(null)),c}}function cSo(t){for(;!rHn(t););return t}function cHn(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const uSo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uHn(t){return t.replace(uSo,dSo)}function dSo(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),o=a===120||a===88;return cHn(n.slice(o?2:1),o?16:10)}return glt(n)||t}const dHn={}.hasOwnProperty,hSo=function(t,e,n){return typeof e!="string"&&(n=e,e=void 0),fSo(n)(cSo(sSo(n).document().write(lSo()(t,e,!0))))};function fSo(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(je),autolinkProtocol:N,autolinkEmail:N,atxHeading:l(Ee),blockQuote:l(ne),characterEscape:N,characterReference:N,codeFenced:l(ie),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(ie,c),codeText:l(he,c),codeTextData:N,data:N,codeFlowValue:N,definition:l(de),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(ce),hardBreakEscape:l(Me),hardBreakTrailing:l(Me),htmlFlow:l(Be,c),htmlFlowData:N,htmlText:l(Be,c),htmlTextData:N,image:l(ze),label:c,link:l(je),listItem:l(me),listItemValue:m,listOrdered:l(ye,p),listUnordered:l(ye),paragraph:l(le),reference:K,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(Ee),strong:l(pe),thematicBreak:l(_e)},exit:{atxHeading:d(),atxHeadingSequence:C,autolink:d(),autolinkEmail:J,autolinkProtocol:te,blockQuote:d(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:X,codeFenced:d(y),codeFencedFence:A,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:L,codeIndented:d(S),codeText:d(D),codeTextData:L,data:L,definition:d(),definitionDestinationString:_,definitionLabelString:x,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(b),hardBreakTrailing:d(b),htmlFlow:d(T),htmlFlowData:L,htmlText:d(M),htmlTextData:L,image:d(j),label:U,labelText:H,lineEnding:I,link:d(B),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Q,resourceDestinationString:$,resourceTitleString:z,resource:Z,setextHeading:d(P),setextHeadingLineSequence:k,setextHeadingText:R,strong:d(),thematicBreak:d()}};hHn(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(ue){let se={type:"root",children:[]};const oe={stack:[se],tokenStack:[],config:e,enter:u,exit:h,buffer:c,resume:f,setData:o,getData:s},ge=[];let De=-1;for(;++De<ue.length;)if(ue[De][1].type==="listOrdered"||ue[De][1].type==="listUnordered")if(ue[De][0]==="enter")ge.push(De);else{const Fe=ge.pop();De=a(ue,Fe,De)}for(De=-1;++De<ue.length;){const Fe=e[ue[De][0]];dHn.call(Fe,ue[De][1].type)&&Fe[ue[De][1].type].call(Object.assign({sliceSerialize:ue[De][2].sliceSerialize},oe),ue[De][1])}if(oe.tokenStack.length>0){const Fe=oe.tokenStack[oe.tokenStack.length-1];(Fe[1]||BLt).call(oe,void 0,Fe[0])}for(se.position={start:wI(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:wI(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<e.transforms.length;)se=e.transforms[De](se)||se;return se}function a(ue,se,oe){let ge=se-1,De=-1,Fe=!1,Se,Xe,Oe,Ye;for(;++ge<=oe;){const mt=ue[ge];if(mt[1].type==="listUnordered"||mt[1].type==="listOrdered"||mt[1].type==="blockQuote"?(mt[0]==="enter"?De++:De--,Ye=void 0):mt[1].type==="lineEndingBlank"?mt[0]==="enter"&&(Se&&!Ye&&!De&&!Oe&&(Oe=ge),Ye=void 0):mt[1].type==="linePrefix"||mt[1].type==="listItemValue"||mt[1].type==="listItemMarker"||mt[1].type==="listItemPrefix"||mt[1].type==="listItemPrefixWhitespace"||(Ye=void 0),!De&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||De===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(Se){let ut=ge;for(Xe=void 0;ut--;){const lt=ue[ut];if(lt[1].type==="lineEnding"||lt[1].type==="lineEndingBlank"){if(lt[0]==="exit")continue;Xe&&(ue[Xe][1].type="lineEndingBlank",Fe=!0),lt[1].type="lineEnding",Xe=ut}else if(!(lt[1].type==="linePrefix"||lt[1].type==="blockQuotePrefix"||lt[1].type==="blockQuotePrefixWhitespace"||lt[1].type==="blockQuoteMarker"||lt[1].type==="listItemIndent"))break}Oe&&(!Xe||Oe<Xe)&&(Se._spread=!0),Se.end=Object.assign({},Xe?ue[Xe][1].start:mt[1].end),ue.splice(Xe||ge,0,["exit",Se,mt[2]]),ge++,oe++}mt[1].type==="listItemPrefix"&&(Se={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0},ue.splice(ge,0,["enter",Se,mt[2]]),ge++,oe++,Oe=void 0,Ye=!0)}}return ue[se][1]._spread=Fe,oe}function o(ue,se){n[ue]=se}function s(ue){return n[ue]}function l(ue,se){return oe;function oe(ge){u.call(this,ue(ge),ge),se&&se.call(this,ge)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(ue,se,oe){return this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([se,oe]),ue.position={start:wI(se.start)},ue}function d(ue){return se;function se(oe){ue&&ue.call(this,oe),h.call(this,oe)}}function h(ue,se){const oe=this.stack.pop(),ge=this.tokenStack.pop();if(ge)ge[0].type!==ue.type&&(se?se.call(this,ue,ge[0]):(ge[1]||BLt).call(this,ue,ge[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Ree({start:ue.start,end:ue.end})+"): it’s not open");return oe.position.end=wI(ue.end),oe}function f(){return mxo(this.stack.pop())}function p(){o("expectingFirstListItemValue",!0)}function m(ue){if(s("expectingFirstListItemValue")){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(ue),10),o("expectingFirstListItemValue")}}function g(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.lang=ue}function v(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.meta=ue}function A(){s("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function S(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.value=ue.replace(/(\r?\n|\r)$/g,"")}function x(ue){const se=this.resume(),oe=this.stack[this.stack.length-1];oe.label=se,oe.identifier=Ew(this.sliceSerialize(ue)).toLowerCase()}function w(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.title=ue}function _(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.url=ue}function C(ue){const se=this.stack[this.stack.length-1];if(!se.depth){const oe=this.sliceSerialize(ue).length;se.depth=oe}}function R(){o("setextHeadingSlurpLineEnding",!0)}function k(ue){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(ue).charCodeAt(0)===61?1:2}function P(){o("setextHeadingSlurpLineEnding")}function N(ue){const se=this.stack[this.stack.length-1];let oe=se.children[se.children.length-1];(!oe||oe.type!=="text")&&(oe=Ne(),oe.position={start:wI(ue.start)},se.children.push(oe)),this.stack.push(oe)}function L(ue){const se=this.stack.pop();se.value+=this.sliceSerialize(ue),se.position.end=wI(ue.end)}function I(ue){const se=this.stack[this.stack.length-1];if(s("atHardBreak")){const oe=se.children[se.children.length-1];oe.position.end=wI(ue.end),o("atHardBreak");return}!s("setextHeadingSlurpLineEnding")&&e.canContainEols.includes(se.type)&&(N.call(this,ue),L.call(this,ue))}function b(){o("atHardBreak",!0)}function T(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.value=ue}function M(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.value=ue}function D(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.value=ue}function B(){const ue=this.stack[this.stack.length-1];if(s("inReference")){const se=s("referenceType")||"shortcut";ue.type+="Reference",ue.referenceType=se,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;o("referenceType")}function j(){const ue=this.stack[this.stack.length-1];if(s("inReference")){const se=s("referenceType")||"shortcut";ue.type+="Reference",ue.referenceType=se,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;o("referenceType")}function H(ue){const se=this.sliceSerialize(ue),oe=this.stack[this.stack.length-2];oe.label=uHn(se),oe.identifier=Ew(se).toLowerCase()}function U(){const ue=this.stack[this.stack.length-1],se=this.resume(),oe=this.stack[this.stack.length-1];if(o("inReference",!0),oe.type==="link"){const ge=ue.children;oe.children=ge}else oe.alt=se}function $(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.url=ue}function z(){const ue=this.resume(),se=this.stack[this.stack.length-1];se.title=ue}function Z(){o("inReference")}function K(){o("referenceType","collapsed")}function Q(ue){const se=this.resume(),oe=this.stack[this.stack.length-1];oe.label=se,oe.identifier=Ew(this.sliceSerialize(ue)).toLowerCase(),o("referenceType","full")}function ee(ue){o("characterReferenceType",ue.type)}function X(ue){const se=this.sliceSerialize(ue),oe=s("characterReferenceType");let ge;oe?(ge=cHn(se,oe==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):ge=glt(se);const De=this.stack.pop();De.value+=ge,De.position.end=wI(ue.end)}function te(ue){L.call(this,ue);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(ue)}function J(ue){L.call(this,ue);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(ue)}function ne(){return{type:"blockquote",children:[]}}function ie(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function de(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function Ee(){return{type:"heading",depth:void 0,children:[]}}function Me(){return{type:"break"}}function Be(){return{type:"html",value:""}}function ze(){return{type:"image",title:null,url:"",alt:null}}function je(){return{type:"link",title:null,url:"",children:[]}}function ye(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function me(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function le(){return{type:"paragraph",children:[]}}function pe(){return{type:"strong",children:[]}}function Ne(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function wI(t){return{line:t.line,column:t.column,offset:t.offset}}function hHn(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?hHn(t,r):pSo(t,r)}}function pSo(t,e){let n;for(n in e)if(dHn.call(e,n)){if(n==="canContainEols"){const r=e[n];r&&t[n].push(...r)}else if(n==="transforms"){const r=e[n];r&&t[n].push(...r)}else if(n==="enter"||n==="exit"){const r=e[n];r&&Object.assign(t[n],r)}}}function BLt(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Ree({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Ree({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Ree({start:e.start,end:e.end})+") is still open")}function mSo(t){Object.assign(this,{Parser:n=>{const r=this.data("settings");return hSo(n,Object.assign({},r,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function gSo(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function vSo(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
`}]}function ASo(t,e){const n=e.value?e.value+`
`:"",r=e.lang?e.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,a={};r&&(a.className=["language-"+r]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return e.meta&&(o.data={meta:e.meta}),t.patch(e,o),o=t.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(e,o),o}function ySo(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function bSo(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function WV(t){const e=[];let n=-1,r=0,a=0;for(;++n<t.length;){const o=t.charCodeAt(n);let s="";if(o===37&&gv(t.charCodeAt(n+1))&&gv(t.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const l=t.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(s=String.fromCharCode(o,l),a=1):s="�"}else s=String.fromCharCode(o);s&&(e.push(t.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return e.join("")+t.slice(r)}function fHn(t,e){const n=String(e.identifier).toUpperCase(),r=WV(n.toLowerCase()),a=t.footnoteOrder.indexOf(n);let o;a===-1?(t.footnoteOrder.push(n),t.footnoteCounts[n]=1,o=t.footnoteOrder.length):(t.footnoteCounts[n]++,o=a+1);const s=t.footnoteCounts[n],l={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fn-"+r,id:t.clobberPrefix+"fnref-"+r+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)}function xSo(t,e){const n=t.footnoteById;let r=1;for(;r in n;)r++;const a=String(r);return n[a]={type:"footnoteDefinition",identifier:a,children:[{type:"paragraph",children:e.children}],position:e.position},fHn(t,{type:"footnoteReference",identifier:a,position:e.position})}function ESo(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function SSo(t,e){if(t.dangerous){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}return null}function pHn(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return{type:"text",value:"!["+e.alt+r};const a=t.all(e),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function wSo(t,e){const n=t.definition(e.identifier);if(!n)return pHn(t,e);const r={src:WV(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,a),t.applyData(e,a)}function _So(t,e){const n={src:WV(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function TSo(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function CSo(t,e){const n=t.definition(e.identifier);if(!n)return pHn(t,e);const r={href:WV(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,a),t.applyData(e,a)}function kSo(t,e){const n={href:WV(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function RSo(t,e,n){const r=t.all(e),a=n?MSo(n):mHn(e),o={},s=[];if(typeof e.checked=="boolean"){const d=r[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(a||l!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
`}),d.type==="element"&&d.tagName==="p"&&!a?s.push(...d.children):s.push(d)}const c=r[r.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:o,children:s};return t.patch(e,u),t.applyData(e,u)}function MSo(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=mHn(n[r])}return e}function mHn(t){const e=t.spread;return e??t.children.length>1}function NSo(t,e){const n={},r=t.all(e);let a=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++a<r.length;){const s=r[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,o),t.applyData(e,o)}function ISo(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function PSo(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function OSo(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const Alt=gHn("start"),ylt=gHn("end");function LSo(t){return{start:Alt(t),end:ylt(t)}}function gHn(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function BSo(t,e){const n=t.all(e),r=n.shift(),a=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},l=Alt(e.children[1]),c=ylt(e.children[e.children.length-1]);l.line&&c.line&&(s.position={start:l,end:c}),a.push(s)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(a,!0)};return t.patch(e,o),t.applyData(e,o)}function DSo(t,e,n){const r=n?n.children:void 0,o=(r?r.indexOf(e):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:e.children.length;let c=-1;const u=[];for(;++c<l;){const h=e.children[c],f={},p=s?s[c]:void 0;p&&(f.align=p);let m={type:"element",tagName:o,properties:f,children:[]};h&&(m.children=t.all(h),t.patch(h,m),m=t.applyData(e,m)),u.push(m)}const d={type:"element",tagName:"tr",properties:{},children:t.wrap(u,!0)};return t.patch(e,d),t.applyData(e,d)}function $So(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const DLt=9,$Lt=32;function FSo(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),a=0;const o=[];for(;r;)o.push(FLt(e.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(e);return o.push(FLt(e.slice(a),a>0,!1)),o.join("")}function FLt(t,e,n){let r=0,a=t.length;if(e){let o=t.codePointAt(r);for(;o===DLt||o===$Lt;)r++,o=t.codePointAt(r)}if(n){let o=t.codePointAt(a-1);for(;o===DLt||o===$Lt;)a--,o=t.codePointAt(a-1)}return a>r?t.slice(r,a):""}function jSo(t,e){const n={type:"text",value:FSo(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function HSo(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const USo={blockquote:gSo,break:vSo,code:ASo,delete:ySo,emphasis:bSo,footnoteReference:fHn,footnote:xSo,heading:ESo,html:SSo,imageReference:wSo,image:_So,inlineCode:TSo,linkReference:CSo,link:kSo,listItem:RSo,list:NSo,paragraph:ISo,root:PSo,strong:OSo,table:BSo,tableCell:$So,tableRow:DSo,text:jSo,thematicBreak:HSo,toml:Mhe,yaml:Mhe,definition:Mhe,footnoteDefinition:Mhe};function Mhe(){return null}const vHn=function(t){if(t==null)return KSo;if(typeof t=="string")return VSo(t);if(typeof t=="object")return Array.isArray(t)?zSo(t):GSo(t);if(typeof t=="function")return k2e(t);throw new Error("Expected function, string, or object as test")};function zSo(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=vHn(t[n]);return k2e(r);function r(...a){let o=-1;for(;++o<e.length;)if(e[o].call(this,...a))return!0;return!1}}function GSo(t){return k2e(e);function e(n){let r;for(r in t)if(n[r]!==t[r])return!1;return!0}}function VSo(t){return k2e(e);function e(n){return n&&n.type===t}}function k2e(t){return e;function e(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&t.call(this,n,...r))}}function KSo(){return!0}const WSo=!0,jLt=!1,QSo="skip",R2e=function(t,e,n,r){typeof e=="function"&&typeof n!="function"&&(r=n,n=e,e=null);const a=vHn(e),o=r?-1:1;s(t,void 0,[])();function s(l,c,u){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return h;function h(){let f=[],p,m,g;if((!e||a(l,c,u[u.length-1]||null))&&(f=qSo(n(l,u)),f[0]===jLt))return f;if(l.children&&f[0]!==QSo)for(m=(r?l.children.length:-1)+o,g=u.concat(l);m>-1&&m<l.children.length;){if(p=s(l.children[m],m,g)(),p[0]===jLt)return p;m=typeof p[1]=="number"?p[1]:m+o}return f}}};function qSo(t){return Array.isArray(t)?t:typeof t=="number"?[WSo,t]:[t]}const AHn=function(t,e,n,r){typeof e=="function"&&typeof n!="function"&&(r=n,n=e,e=null),R2e(t,e,a,r);function a(o,s){const l=s[s.length-1];return n(o,l?l.children.indexOf(o):null,l)}};function YSo(t){return!t||!t.position||!t.position.start||!t.position.start.line||!t.position.start.column||!t.position.end||!t.position.end.line||!t.position.end.column}const HLt={}.hasOwnProperty;function JSo(t){const e=Object.create(null);if(!t||!t.type)throw new Error("mdast-util-definitions expected node");return AHn(t,"definition",r=>{const a=ULt(r.identifier);a&&!HLt.call(e,a)&&(e[a]=r)}),n;function n(r){const a=ULt(r);return a&&HLt.call(e,a)?e[a]:null}}function ULt(t){return String(t||"").toUpperCase()}const Tye={}.hasOwnProperty;function ZSo(t,e){const n=e||{},r=n.allowDangerousHtml||!1,a={};return s.dangerous=r,s.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,s.footnoteLabel=n.footnoteLabel||"Footnotes",s.footnoteLabelTagName=n.footnoteLabelTagName||"h2",s.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},s.footnoteBackLabel=n.footnoteBackLabel||"Back to content",s.unknownHandler=n.unknownHandler,s.passThrough=n.passThrough,s.handlers={...USo,...n.handlers},s.definition=JSo(t),s.footnoteById=a,s.footnoteOrder=[],s.footnoteCounts={},s.patch=XSo,s.applyData=ewo,s.one=l,s.all=c,s.wrap=nwo,s.augment=o,AHn(t,"footnoteDefinition",u=>{const d=String(u.identifier).toUpperCase();Tye.call(a,d)||(a[d]=u)}),s;function o(u,d){if(u&&"data"in u&&u.data){const h=u.data;h.hName&&(d.type!=="element"&&(d={type:"element",tagName:"",properties:{},children:[]}),d.tagName=h.hName),d.type==="element"&&h.hProperties&&(d.properties={...d.properties,...h.hProperties}),"children"in d&&d.children&&h.hChildren&&(d.children=h.hChildren)}if(u){const h="type"in u?u:{position:u};YSo(h)||(d.position={start:Alt(h),end:ylt(h)})}return d}function s(u,d,h,f){return Array.isArray(h)&&(f=h,h={}),o(u,{type:"element",tagName:d,properties:h||{},children:f||[]})}function l(u,d){return yHn(s,u,d)}function c(u){return blt(s,u)}}function XSo(t,e){t.position&&(e.position=LSo(t))}function ewo(t,e){let n=e;if(t&&t.data){const r=t.data.hName,a=t.data.hChildren,o=t.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function yHn(t,e,n){const r=e&&e.type;if(!r)throw new Error("Expected node, got `"+e+"`");return Tye.call(t.handlers,r)?t.handlers[r](t,e,n):t.passThrough&&t.passThrough.includes(r)?"children"in e?{...e,children:blt(t,e)}:e:t.unknownHandler?t.unknownHandler(t,e,n):two(t,e)}function blt(t,e){const n=[];if("children"in e){const r=e.children;let a=-1;for(;++a<r.length;){const o=yHn(t,r[a],e);if(o){if(a&&r[a-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const s=o.children[0];s&&s.type==="text"&&(s.value=s.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function two(t,e){const n=e.data||{},r="value"in e&&!(Tye.call(n,"hProperties")||Tye.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:blt(t,e)};return t.patch(e,r),t.applyData(e,r)}function nwo(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
`});++r<t.length;)r&&n.push({type:"text",value:`
`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
`}),n}function rwo(t){const e=[];let n=-1;for(;++n<t.footnoteOrder.length;){const r=t.footnoteById[t.footnoteOrder[n]];if(!r)continue;const a=t.all(r),o=String(r.identifier).toUpperCase(),s=WV(o.toLowerCase());let l=0;const c=[];for(;++l<=t.footnoteCounts[o];){const h={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fnref-"+s+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:t.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&h.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(h)}const u=a[a.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const h=u.children[u.children.length-1];h&&h.type==="text"?h.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else a.push(...c);const d={type:"element",tagName:"li",properties:{id:t.clobberPrefix+"fn-"+s},children:t.wrap(a,!0)};t.patch(r,d),e.push(d)}if(e.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:t.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(t.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:t.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(e,!0)},{type:"text",value:`
`}]}}function bHn(t,e){const n=ZSo(t,e),r=n.one(t,null),a=rwo(n);return a&&r.children.push({type:"text",value:`
`},a),Array.isArray(r)?{type:"root",children:r}:r}const iwo=function(t,e){return t&&"run"in t?owo(t,e):swo(t||e)},awo=iwo;function owo(t,e){return(n,r,a)=>{t.run(bHn(n,e),r,o=>{a(o)})}}function swo(t){return e=>bHn(e,t)}let _se=class{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};_se.prototype.property={};_se.prototype.normal={};_se.prototype.space=null;function xHn(t,e){const n={},r={};let a=-1;for(;++a<t.length;)Object.assign(n,t[a].property),Object.assign(r,t[a].normal);return new _se(n,r,e)}function sQe(t){return t.toLowerCase()}let RE=class{constructor(e,n){this.property=e,this.attribute=n}};RE.prototype.space=null;RE.prototype.boolean=!1;RE.prototype.booleanish=!1;RE.prototype.overloadedBoolean=!1;RE.prototype.number=!1;RE.prototype.commaSeparated=!1;RE.prototype.spaceSeparated=!1;RE.prototype.commaOrSpaceSeparated=!1;RE.prototype.mustUseProperty=!1;RE.prototype.defined=!1;let lwo=0;const Ho=R9(),wf=R9(),EHn=R9(),Sr=R9(),Cu=R9(),AH=R9(),dy=R9();function R9(){return 2**++lwo}const lQe=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ho,booleanish:wf,commaOrSpaceSeparated:dy,commaSeparated:AH,number:Sr,overloadedBoolean:EHn,spaceSeparated:Cu},Symbol.toStringTag,{value:"Module"})),r9e=Object.keys(lQe);let xlt=class extends RE{constructor(e,n,r,a){let o=-1;if(super(e,n),zLt(this,"space",a),typeof r=="number")for(;++o<r9e.length;){const s=r9e[o];zLt(this,r9e[o],(r&lQe[s])===lQe[s])}}};xlt.prototype.defined=!0;function zLt(t,e,n){n&&(t[e]=n)}const cwo={}.hasOwnProperty;function QV(t){const e={},n={};let r;for(r in t.properties)if(cwo.call(t.properties,r)){const a=t.properties[r],o=new xlt(r,t.transform(t.attributes||{},r),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[sQe(r)]=r,n[sQe(o.attribute)]=r}return new _se(e,n,t.space)}const SHn=QV({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),wHn=QV({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _Hn(t,e){return e in t?t[e]:e}function THn(t,e){return _Hn(t,e.toLowerCase())}const CHn=QV({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:THn,properties:{xmlns:null,xmlnsXLink:null}}),kHn=QV({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:wf,ariaAutoComplete:null,ariaBusy:wf,ariaChecked:wf,ariaColCount:Sr,ariaColIndex:Sr,ariaColSpan:Sr,ariaControls:Cu,ariaCurrent:null,ariaDescribedBy:Cu,ariaDetails:null,ariaDisabled:wf,ariaDropEffect:Cu,ariaErrorMessage:null,ariaExpanded:wf,ariaFlowTo:Cu,ariaGrabbed:wf,ariaHasPopup:null,ariaHidden:wf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cu,ariaLevel:Sr,ariaLive:null,ariaModal:wf,ariaMultiLine:wf,ariaMultiSelectable:wf,ariaOrientation:null,ariaOwns:Cu,ariaPlaceholder:null,ariaPosInSet:Sr,ariaPressed:wf,ariaReadOnly:wf,ariaRelevant:null,ariaRequired:wf,ariaRoleDescription:Cu,ariaRowCount:Sr,ariaRowIndex:Sr,ariaRowSpan:Sr,ariaSelected:wf,ariaSetSize:Sr,ariaSort:null,ariaValueMax:Sr,ariaValueMin:Sr,ariaValueNow:Sr,ariaValueText:null,role:null}}),uwo=QV({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:THn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:AH,acceptCharset:Cu,accessKey:Cu,action:null,allow:null,allowFullScreen:Ho,allowPaymentRequest:Ho,allowUserMedia:Ho,alt:null,as:null,async:Ho,autoCapitalize:null,autoComplete:Cu,autoFocus:Ho,autoPlay:Ho,blocking:Cu,capture:null,charSet:null,checked:Ho,cite:null,className:Cu,cols:Sr,colSpan:null,content:null,contentEditable:wf,controls:Ho,controlsList:Cu,coords:Sr|AH,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ho,defer:Ho,dir:null,dirName:null,disabled:Ho,download:EHn,draggable:wf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ho,formTarget:null,headers:Cu,height:Sr,hidden:Ho,high:Sr,href:null,hrefLang:null,htmlFor:Cu,httpEquiv:Cu,id:null,imageSizes:null,imageSrcSet:null,inert:Ho,inputMode:null,integrity:null,is:null,isMap:Ho,itemId:null,itemProp:Cu,itemRef:Cu,itemScope:Ho,itemType:Cu,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ho,low:Sr,manifest:null,max:null,maxLength:Sr,media:null,method:null,min:null,minLength:Sr,multiple:Ho,muted:Ho,name:null,nonce:null,noModule:Ho,noValidate:Ho,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ho,optimum:Sr,pattern:null,ping:Cu,placeholder:null,playsInline:Ho,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ho,referrerPolicy:null,rel:Cu,required:Ho,reversed:Ho,rows:Sr,rowSpan:Sr,sandbox:Cu,scope:null,scoped:Ho,seamless:Ho,selected:Ho,shadowRootClonable:Ho,shadowRootDelegatesFocus:Ho,shadowRootMode:null,shape:null,size:Sr,sizes:null,slot:null,span:Sr,spellCheck:wf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Sr,step:null,style:null,tabIndex:Sr,target:null,title:null,translate:null,type:null,typeMustMatch:Ho,useMap:null,value:wf,width:Sr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Cu,axis:null,background:null,bgColor:null,border:Sr,borderColor:null,bottomMargin:Sr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ho,declare:Ho,event:null,face:null,frame:null,frameBorder:null,hSpace:Sr,leftMargin:Sr,link:null,longDesc:null,lowSrc:null,marginHeight:Sr,marginWidth:Sr,noResize:Ho,noHref:Ho,noShade:Ho,noWrap:Ho,object:null,profile:null,prompt:null,rev:null,rightMargin:Sr,rules:null,scheme:null,scrolling:wf,standby:null,summary:null,text:null,topMargin:Sr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Sr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ho,disableRemotePlayback:Ho,prefix:null,property:null,results:Sr,security:null,unselectable:null}}),dwo=QV({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_Hn,properties:{about:dy,accentHeight:Sr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Sr,amplitude:Sr,arabicForm:null,ascent:Sr,attributeName:null,attributeType:null,azimuth:Sr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Sr,by:null,calcMode:null,capHeight:Sr,className:Cu,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Sr,diffuseConstant:Sr,direction:null,display:null,dur:null,divisor:Sr,dominantBaseline:null,download:Ho,dx:null,dy:null,edgeMode:null,editable:null,elevation:Sr,enableBackground:null,end:null,event:null,exponent:Sr,externalResourcesRequired:null,fill:null,fillOpacity:Sr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:AH,g2:AH,glyphName:AH,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Sr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Sr,horizOriginX:Sr,horizOriginY:Sr,id:null,ideographic:Sr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Sr,k:Sr,k1:Sr,k2:Sr,k3:Sr,k4:Sr,kernelMatrix:dy,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Sr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Sr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Sr,overlineThickness:Sr,paintOrder:null,panose1:null,path:null,pathLength:Sr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Cu,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Sr,pointsAtY:Sr,pointsAtZ:Sr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dy,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dy,rev:dy,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dy,requiredFeatures:dy,requiredFonts:dy,requiredFormats:dy,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Sr,specularExponent:Sr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Sr,strikethroughThickness:Sr,string:null,stroke:null,strokeDashArray:dy,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Sr,strokeOpacity:Sr,strokeWidth:null,style:null,surfaceScale:Sr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dy,tabIndex:Sr,tableValues:null,target:null,targetX:Sr,targetY:Sr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dy,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Sr,underlineThickness:Sr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Sr,values:null,vAlphabetic:Sr,vMathematical:Sr,vectorEffect:null,vHanging:Sr,vIdeographic:Sr,version:null,vertAdvY:Sr,vertOriginX:Sr,vertOriginY:Sr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Sr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),hwo=/^data[-\w.:]+$/i,GLt=/-[a-z]/g,fwo=/[A-Z]/g;function pwo(t,e){const n=sQe(e);let r=e,a=RE;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hwo.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(GLt,gwo);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!GLt.test(o)){let s=o.replace(fwo,mwo);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}a=xlt}return new a(r,e)}function mwo(t){return"-"+t.toLowerCase()}function gwo(t){return t.charAt(1).toUpperCase()}const VLt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vwo=xHn([wHn,SHn,CHn,kHn,uwo],"html"),Awo=xHn([wHn,SHn,CHn,kHn,dwo],"svg"),ywo=function(t,e,n,r){typeof e=="function"&&typeof n!="function"&&(r=n,n=e,e=null),R2e(t,e,a,r);function a(o,s){const l=s[s.length-1];return n(o,l?l.children.indexOf(o):null,l)}};function bwo(t){if(t.allowedElements&&t.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(t.allowedElements||t.disallowedElements||t.allowElement)return e=>{ywo(e,"element",(n,r,a)=>{const o=a;let s;if(t.allowedElements?s=!t.allowedElements.includes(n.tagName):t.disallowedElements&&(s=t.disallowedElements.includes(n.tagName)),!s&&t.allowElement&&typeof r=="number"&&(s=!t.allowElement(n,r,o)),s&&typeof r=="number")return t.unwrapDisallowed&&n.children?o.children.splice(r,1,...n.children):o.children.splice(r,1),r})}}var RHn={exports:{}},Dc={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Elt=Symbol.for("react.element"),Slt=Symbol.for("react.portal"),M2e=Symbol.for("react.fragment"),N2e=Symbol.for("react.strict_mode"),I2e=Symbol.for("react.profiler"),P2e=Symbol.for("react.provider"),O2e=Symbol.for("react.context"),xwo=Symbol.for("react.server_context"),L2e=Symbol.for("react.forward_ref"),B2e=Symbol.for("react.suspense"),D2e=Symbol.for("react.suspense_list"),$2e=Symbol.for("react.memo"),F2e=Symbol.for("react.lazy"),Ewo=Symbol.for("react.offscreen"),MHn;MHn=Symbol.for("react.module.reference");function ME(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Elt:switch(t=t.type,t){case M2e:case I2e:case N2e:case B2e:case D2e:return t;default:switch(t=t&&t.$$typeof,t){case xwo:case O2e:case L2e:case F2e:case $2e:case P2e:return t;default:return e}}case Slt:return e}}}Dc.ContextConsumer=O2e;Dc.ContextProvider=P2e;Dc.Element=Elt;Dc.ForwardRef=L2e;Dc.Fragment=M2e;Dc.Lazy=F2e;Dc.Memo=$2e;Dc.Portal=Slt;Dc.Profiler=I2e;Dc.StrictMode=N2e;Dc.Suspense=B2e;Dc.SuspenseList=D2e;Dc.isAsyncMode=function(){return!1};Dc.isConcurrentMode=function(){return!1};Dc.isContextConsumer=function(t){return ME(t)===O2e};Dc.isContextProvider=function(t){return ME(t)===P2e};Dc.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Elt};Dc.isForwardRef=function(t){return ME(t)===L2e};Dc.isFragment=function(t){return ME(t)===M2e};Dc.isLazy=function(t){return ME(t)===F2e};Dc.isMemo=function(t){return ME(t)===$2e};Dc.isPortal=function(t){return ME(t)===Slt};Dc.isProfiler=function(t){return ME(t)===I2e};Dc.isStrictMode=function(t){return ME(t)===N2e};Dc.isSuspense=function(t){return ME(t)===B2e};Dc.isSuspenseList=function(t){return ME(t)===D2e};Dc.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===M2e||t===I2e||t===N2e||t===B2e||t===D2e||t===Ewo||typeof t=="object"&&t!==null&&(t.$$typeof===F2e||t.$$typeof===$2e||t.$$typeof===P2e||t.$$typeof===O2e||t.$$typeof===L2e||t.$$typeof===MHn||t.getModuleId!==void 0)};Dc.typeOf=ME;RHn.exports=Dc;var Swo=RHn.exports;const wwo=Li(Swo);function _wo(t){const e=t&&typeof t=="object"&&t.type==="text"?t.value||"":t;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}function Two(t){return t.join(" ").trim()}function KLt(t){const e=[],n=String(t||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(a,r).trim();(s||!o)&&e.push(s),a=r+1,r=n.indexOf(",",a)}return e}function NHn(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var wlt={exports:{}},WLt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Cwo=/\n/g,kwo=/^\s*/,Rwo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mwo=/^:\s*/,Nwo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Iwo=/^[;\s]*/,Pwo=/^\s+|\s+$/g,Owo=`
`,QLt="/",qLt="*",SB="",Lwo="comment",Bwo="declaration",Dwo=function(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function a(m){var g=m.match(Cwo);g&&(n+=g.length);var v=m.lastIndexOf(Owo);r=~v?m.length-v:r+m.length}function o(){var m={line:n,column:r};return function(g){return g.position=new s(m),u(),g}}function s(m){this.start=m,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;function l(m){var g=new Error(e.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=e.source,g.line=n,g.column=r,g.source=t,!e.silent)throw g}function c(m){var g=m.exec(t);if(g){var v=g[0];return a(v),t=t.slice(v.length),g}}function u(){c(kwo)}function d(m){var g;for(m=m||[];g=h();)g!==!1&&m.push(g);return m}function h(){var m=o();if(!(QLt!=t.charAt(0)||qLt!=t.charAt(1))){for(var g=2;SB!=t.charAt(g)&&(qLt!=t.charAt(g)||QLt!=t.charAt(g+1));)++g;if(g+=2,SB===t.charAt(g-1))return l("End of comment missing");var v=t.slice(2,g-2);return r+=2,a(v),t=t.slice(g),r+=2,m({type:Lwo,comment:v})}}function f(){var m=o(),g=c(Rwo);if(g){if(h(),!c(Mwo))return l("property missing ':'");var v=c(Nwo),A=m({type:Bwo,property:YLt(g[0].replace(WLt,SB)),value:v?YLt(v[0].replace(WLt,SB)):SB});return c(Iwo),A}}function p(){var m=[];d(m);for(var g;g=f();)g!==!1&&(m.push(g),d(m));return m}return u(),p()};function YLt(t){return t?t.replace(Pwo,SB):SB}var $wo=Dwo;function IHn(t,e){var n=null;if(!t||typeof t!="string")return n;for(var r,a=$wo(t),o=typeof e=="function",s,l,c=0,u=a.length;c<u;c++)r=a[c],s=r.property,l=r.value,o?e(s,l,r):l&&(n||(n={}),n[s]=l);return n}wlt.exports=IHn;wlt.exports.default=IHn;var Fwo=wlt.exports;const jwo=Li(Fwo),cQe={}.hasOwnProperty,Hwo=new Set(["table","thead","tbody","tfoot","tr"]);function PHn(t,e){const n=[];let r=-1,a;for(;++r<e.children.length;)a=e.children[r],a.type==="element"?n.push(Uwo(t,a,r,e)):a.type==="text"?(e.type!=="element"||!Hwo.has(e.tagName)||!_wo(a))&&n.push(a.value):a.type==="raw"&&!t.options.skipHtml&&n.push(a.value);return n}function Uwo(t,e,n,r){const a=t.options,o=a.transformLinkUri===void 0?Vbo:a.transformLinkUri,s=t.schema,l=e.tagName,c={};let u=s,d;if(s.space==="html"&&l==="svg"&&(u=Awo,t.schema=u),e.properties)for(d in e.properties)cQe.call(e.properties,d)&&Gwo(c,d,e.properties[d],t);(l==="ol"||l==="ul")&&t.listDepth++;const h=PHn(t,e);(l==="ol"||l==="ul")&&t.listDepth--,t.schema=s;const f=e.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=a.components&&cQe.call(a.components,l)?a.components[l]:l,m=typeof p=="string"||p===ke.Fragment;if(!wwo.isValidElementType(p))throw new TypeError(`Component for name \`${l}\` not defined or is not renderable`);if(c.key=n,l==="a"&&a.linkTarget&&(c.target=typeof a.linkTarget=="function"?a.linkTarget(String(c.href||""),e.children,typeof c.title=="string"?c.title:null):a.linkTarget),l==="a"&&o&&(c.href=o(String(c.href||""),e.children,typeof c.title=="string"?c.title:null)),!m&&l==="code"&&r.type==="element"&&r.tagName!=="pre"&&(c.inline=!0),!m&&(l==="h1"||l==="h2"||l==="h3"||l==="h4"||l==="h5"||l==="h6")&&(c.level=Number.parseInt(l.charAt(1),10)),l==="img"&&a.transformImageUri&&(c.src=a.transformImageUri(String(c.src||""),String(c.alt||""),typeof c.title=="string"?c.title:null)),!m&&l==="li"&&r.type==="element"){const g=zwo(e);c.checked=g&&g.properties?!!g.properties.checked:null,c.index=i9e(r,e),c.ordered=r.tagName==="ol"}return!m&&(l==="ol"||l==="ul")&&(c.ordered=l==="ol",c.depth=t.listDepth),(l==="td"||l==="th")&&(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),m||(c.isHeader=l==="th")),!m&&l==="tr"&&r.type==="element"&&(c.isHeader=r.tagName==="thead"),a.sourcePos&&(c["data-sourcepos"]=Wwo(f)),!m&&a.rawSourcePos&&(c.sourcePosition=e.position),!m&&a.includeElementIndex&&(c.index=i9e(r,e),c.siblingCount=i9e(r)),m||(c.node=e),h.length>0?ke.createElement(p,c,h):ke.createElement(p,c)}function zwo(t){let e=-1;for(;++e<t.children.length;){const n=t.children[e];if(n.type==="element"&&n.tagName==="input")return n}return null}function i9e(t,e){let n=-1,r=0;for(;++n<t.children.length&&t.children[n]!==e;)t.children[n].type==="element"&&r++;return r}function Gwo(t,e,n,r){const a=pwo(r.schema,e);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=a.commaSeparated?NHn(o):Two(o)),a.property==="style"&&typeof o=="string"&&(o=Vwo(o)),a.space&&a.property?t[cQe.call(VLt,a.property)?VLt[a.property]:a.property]=o:a.attribute&&(t[a.attribute]=o))}function Vwo(t){const e={};try{jwo(t,n)}catch{}return e;function n(r,a){const o=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;e[o.replace(/-([a-z])/g,Kwo)]=a}}function Kwo(t,e){return e.toUpperCase()}function Wwo(t){return[t.start.line,":",t.start.column,"-",t.end.line,":",t.end.column].map(String).join("")}const JLt={}.hasOwnProperty,Qwo="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nhe={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function OHn(t){for(const o in Nhe)if(JLt.call(Nhe,o)&&JLt.call(t,o)){const s=Nhe[o];console.warn(`[react-markdown] Warning: please ${s.to?`use \`${s.to}\` instead of`:"remove"} \`${o}\` (see <${Qwo}#${s.id}> for more info)`),delete Nhe[o]}const e=uxo().use(mSo).use(t.remarkPlugins||[]).use(awo,{...t.remarkRehypeOptions,allowDangerousHtml:!0}).use(t.rehypePlugins||[]).use(bwo,t),n=new Qjn;typeof t.children=="string"?n.value=t.children:t.children!==void 0&&t.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${t.children}\`)`);const r=e.runSync(e.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let a=ke.createElement(ke.Fragment,{},PHn({options:t,schema:vwo,listDepth:0},r));return t.className&&(a=ke.createElement("div",{className:t.className},a)),a}OHn.propTypes={children:kt.string,className:kt.string,allowElement:kt.func,allowedElements:kt.arrayOf(kt.string),disallowedElements:kt.arrayOf(kt.string),unwrapDisallowed:kt.bool,remarkPlugins:kt.arrayOf(kt.oneOfType([kt.object,kt.func,kt.arrayOf(kt.oneOfType([kt.bool,kt.string,kt.object,kt.func,kt.arrayOf(kt.any)]))])),rehypePlugins:kt.arrayOf(kt.oneOfType([kt.object,kt.func,kt.arrayOf(kt.oneOfType([kt.bool,kt.string,kt.object,kt.func,kt.arrayOf(kt.any)]))])),sourcePos:kt.bool,rawSourcePos:kt.bool,skipHtml:kt.bool,includeElementIndex:kt.bool,transformLinkUri:kt.oneOfType([kt.func,kt.bool]),linkTarget:kt.oneOfType([kt.func,kt.string]),transformImageUri:kt.func,components:kt.object};const qwo={tokenize:t_o,partial:!0},LHn={tokenize:n_o,partial:!0},BHn={tokenize:r_o,partial:!0},DHn={tokenize:i_o,partial:!0},Ywo={tokenize:a_o,partial:!0},$Hn={tokenize:Xwo,previous:jHn},FHn={tokenize:e_o,previous:HHn},xN={tokenize:Zwo,previous:UHn},RC={},Jwo={text:RC};let eL=48;for(;eL<123;)RC[eL]=xN,eL++,eL===58?eL=65:eL===91&&(eL=97);RC[43]=xN;RC[45]=xN;RC[46]=xN;RC[95]=xN;RC[72]=[xN,FHn];RC[104]=[xN,FHn];RC[87]=[xN,$Hn];RC[119]=[xN,$Hn];function Zwo(t,e,n){const r=this;let a,o;return s;function s(h){return!uQe(h)||!UHn.call(r,r.previous)||_lt(r.events)?n(h):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(h))}function l(h){return uQe(h)?(t.consume(h),l):h===64?(t.consume(h),c):n(h)}function c(h){return h===46?t.check(Ywo,d,u)(h):h===45||h===95||gv(h)?(o=!0,t.consume(h),c):d(h)}function u(h){return t.consume(h),a=!0,c}function d(h){return o&&a&&N0(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(h)):n(h)}}function Xwo(t,e,n){const r=this;return a;function a(s){return s!==87&&s!==119||!jHn.call(r,r.previous)||_lt(r.events)?n(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(qwo,t.attempt(LHn,t.attempt(BHn,o),n),n)(s))}function o(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function e_o(t,e,n){const r=this;let a="",o=!1;return s;function s(h){return(h===72||h===104)&&HHn.call(r,r.previous)&&!_lt(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),t.consume(h),l):n(h)}function l(h){if(N0(h)&&a.length<5)return a+=String.fromCodePoint(h),t.consume(h),l;if(h===58){const f=a.toLowerCase();if(f==="http"||f==="https")return t.consume(h),c}return n(h)}function c(h){return h===47?(t.consume(h),o?u:(o=!0,c)):n(h)}function u(h){return h===null||wye(h)||gu(h)||c8(h)||T2e(h)?n(h):t.attempt(LHn,t.attempt(BHn,d),n)(h)}function d(h){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(h)}}function t_o(t,e,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,t.consume(s),a):s===46&&r===3?(t.consume(s),o):n(s)}function o(s){return s===null?n(s):e(s)}}function n_o(t,e,n){let r,a,o;return s;function s(u){return u===46||u===95?t.check(DHn,c,l)(u):u===null||gu(u)||c8(u)||u!==45&&T2e(u)?c(u):(o=!0,t.consume(u),s)}function l(u){return u===95?r=!0:(a=r,r=void 0),t.consume(u),s}function c(u){return a||r||!o?n(u):e(u)}}function r_o(t,e){let n=0,r=0;return a;function a(s){return s===40?(n++,t.consume(s),a):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(DHn,e,o)(s):s===null||gu(s)||c8(s)?e(s):(t.consume(s),a)}function o(s){return s===41&&r++,t.consume(s),a}}function i_o(t,e,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(t.consume(l),r):l===38?(t.consume(l),o):l===93?(t.consume(l),a):l===60||l===null||gu(l)||c8(l)?e(l):n(l)}function a(l){return l===null||l===40||l===91||gu(l)||c8(l)?e(l):r(l)}function o(l){return N0(l)?s(l):n(l)}function s(l){return l===59?(t.consume(l),r):N0(l)?(t.consume(l),s):n(l)}}function a_o(t,e,n){return r;function r(o){return t.consume(o),a}function a(o){return gv(o)?n(o):e(o)}}function jHn(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||gu(t)}function HHn(t){return!N0(t)}function UHn(t){return!(t===47||uQe(t))}function uQe(t){return t===43||t===45||t===46||t===95||gv(t)}function _lt(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const o_o={tokenize:p_o,partial:!0};function s_o(){return{document:{91:{tokenize:d_o,continuation:{tokenize:h_o},exit:f_o}},text:{91:{tokenize:u_o},93:{add:"after",tokenize:l_o,resolveTo:c_o}}}}function l_o(t,e,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const c=r.events[a][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!s||!s._balanced)return n(c);const u=Ew(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),e(c))}}function c_o(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",a,e],["exit",a,e],["enter",o,e],["enter",s,e],["exit",s,e],["exit",o,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...l),t}function u_o(t,e,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return l;function l(h){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(t.enter("gfmFootnoteCallMarker"),t.consume(h),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",u)}function u(h){if(o>999||h===93&&!s||h===null||h===91||gu(h))return n(h);if(h===93){t.exit("chunkString");const f=t.exit("gfmFootnoteCallString");return a.includes(Ew(r.sliceSerialize(f)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(h)}return gu(h)||(s=!0),o++,t.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(t.consume(h),o++,u):u(h)}}function d_o(t,e,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,l;return c;function c(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):n(m)}function d(m){if(s>999||m===93&&!l||m===null||m===91||gu(m))return n(m);if(m===93){t.exit("chunkString");const g=t.exit("gfmFootnoteDefinitionLabelString");return o=Ew(r.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),f}return gu(m)||(l=!0),s++,t.consume(m),m===92?h:d}function h(m){return m===91||m===92||m===93?(t.consume(m),s++,d):d(m)}function f(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),a.includes(o)||a.push(o),Al(t,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return e(m)}}function h_o(t,e,n){return t.check(wse,e,t.attempt(o_o,e,n))}function f_o(t){t.exit("gfmFootnoteDefinition")}function p_o(t,e,n){const r=this;return Al(t,a,"gfmFootnoteDefinitionIndent",4+1);function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(o):n(o)}}function m_o(t){let n=(t||{}).singleTilde;const r={tokenize:o,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(s,l){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let u=c;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[c][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[c][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[c][1].start)},f=[["enter",d,l],["enter",s[u][1],l],["exit",s[u][1],l],["enter",h,l]],p=l.parser.constructs.insideSpan.null;p&&zy(f,f.length,0,C2e(p,s.slice(u+1,c),l)),zy(f,f.length,0,[["exit",h,l],["enter",s[c][1],l],["exit",s[c][1],l],["exit",d,l]]),zy(s,u-1,c-u+3,f),c=u+f.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function o(s,l,c){const u=this.previous,d=this.events;let h=0;return f;function f(m){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(m):(s.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const g=_ye(u);if(m===126)return h>1?c(m):(s.consume(m),h++,p);if(h<2&&!n)return c(m);const v=s.exit("strikethroughSequenceTemporary"),A=_ye(m);return v._open=!A||A===2&&!!g,v._close=!g||g===2&&!!A,l(m)}}}class g_o{constructor(){this.map=[]}add(e,n,r){v_o(this,e,n,r)}consume(e){if(this.map.sort((o,s)=>o[0]-s[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),e.length=this.map[n][0];r.push([...e]),e.length=0;let a=r.pop();for(;a;)e.push(...a),a=r.pop();this.map.length=0}}function v_o(t,e,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<t.map.length;){if(t.map[a][0]===e){t.map[a][1]+=n,t.map[a][2].push(...r);return}a+=1}t.map.push([e,n,r])}}function A_o(t,e){let n=!1;const r=[];for(;e<t.length;){const a=t[e];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}const y_o={flow:{null:{tokenize:b_o,resolveAll:x_o}}};function b_o(t,e,n){const r=this;let a=0,o=0,s;return l;function l(P){let N=r.events.length-1;for(;N>-1;){const b=r.events[N][1].type;if(b==="lineEnding"||b==="linePrefix")N--;else break}const L=N>-1?r.events[N][1].type:null,I=L==="tableHead"||L==="tableRow"?_:c;return I===_&&r.parser.lazy[r.now().line]?n(P):I(P)}function c(P){return t.enter("tableHead"),t.enter("tableRow"),u(P)}function u(P){return P===124||(s=!0,o+=1),d(P)}function d(P){return P===null?n(P):Ha(P)?o>1?(o=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),p):n(P):Hs(P)?Al(t,d,"whitespace")(P):(o+=1,s&&(s=!1,a+=1),P===124?(t.enter("tableCellDivider"),t.consume(P),t.exit("tableCellDivider"),s=!0,d):(t.enter("data"),h(P)))}function h(P){return P===null||P===124||gu(P)?(t.exit("data"),d(P)):(t.consume(P),P===92?f:h)}function f(P){return P===92||P===124?(t.consume(P),h):h(P)}function p(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(t.enter("tableDelimiterRow"),s=!1,Hs(P)?Al(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):m(P))}function m(P){return P===45||P===58?v(P):P===124?(s=!0,t.enter("tableCellDivider"),t.consume(P),t.exit("tableCellDivider"),g):w(P)}function g(P){return Hs(P)?Al(t,v,"whitespace")(P):v(P)}function v(P){return P===58?(o+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(P),t.exit("tableDelimiterMarker"),A):P===45?(o+=1,A(P)):P===null||Ha(P)?x(P):w(P)}function A(P){return P===45?(t.enter("tableDelimiterFiller"),y(P)):w(P)}function y(P){return P===45?(t.consume(P),y):P===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(P),t.exit("tableDelimiterMarker"),S):(t.exit("tableDelimiterFiller"),S(P))}function S(P){return Hs(P)?Al(t,x,"whitespace")(P):x(P)}function x(P){return P===124?m(P):P===null||Ha(P)?!s||a!==o?w(P):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(P)):w(P)}function w(P){return n(P)}function _(P){return t.enter("tableRow"),C(P)}function C(P){return P===124?(t.enter("tableCellDivider"),t.consume(P),t.exit("tableCellDivider"),C):P===null||Ha(P)?(t.exit("tableRow"),e(P)):Hs(P)?Al(t,C,"whitespace")(P):(t.enter("data"),R(P))}function R(P){return P===null||P===124||gu(P)?(t.exit("data"),C(P)):(t.consume(P),P===92?k:R)}function k(P){return P===92||P===124?(t.consume(P),R):R(P)}}function x_o(t,e){let n=-1,r=!0,a=0,o=[0,0,0,0],s=[0,0,0,0],l=!1,c=0,u,d,h;const f=new g_o;for(;++n<t.length;){const p=t[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(l=!1,c!==0&&(ZLt(f,e,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",u,e]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",d,e]])),a=m.type==="tableDelimiterRow"?2:d?3:1):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],h=Ihe(f,e,o,a,void 0,h),o=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],h=Ihe(f,e,o,a,void 0,h)),o=s,s=[o[1],n,0,0])):m.type==="tableHead"?(l=!0,c=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(c=n,o[1]!==0?(s[0]=s[1],h=Ihe(f,e,o,a,n,h)):s[1]!==0&&(h=Ihe(f,e,s,a,n,h)),a=0):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&ZLt(f,e,c,u,d),f.consume(e.events),n=-1;++n<e.events.length;){const p=e.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=A_o(e.events,n))}return t}function Ihe(t,e,n,r,a,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},AF(e.events,n[0])),t.add(n[0],0,[["exit",o,e]]));const c=AF(e.events,n[1]);if(o={type:s,start:Object.assign({},c),end:Object.assign({},c)},t.add(n[1],0,[["enter",o,e]]),n[2]!==0){const u=AF(e.events,n[2]),d=AF(e.events,n[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(t.add(n[2],0,[["enter",h,e]]),r!==2){const f=e.events[n[2]],p=e.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;t.add(m,g,[])}}t.add(n[3]+1,0,[["exit",h,e]])}return a!==void 0&&(o.end=Object.assign({},AF(e.events,a)),t.add(a,0,[["exit",o,e]]),o=void 0),o}function ZLt(t,e,n,r,a){const o=[],s=AF(e.events,n);a&&(a.end=Object.assign({},s),o.push(["exit",a,e])),r.end=Object.assign({},s),o.push(["exit",r,e]),t.add(n+1,0,o)}function AF(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const E_o={tokenize:w_o},S_o={text:{91:E_o}};function w_o(t,e,n){const r=this;return a;function a(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),o)}function o(c){return gu(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):n(c)}function l(c){return Ha(c)?e(c):Hs(c)?t.check({tokenize:__o},e,n)(c):n(c)}}function __o(t,e,n){return Al(t,r,"whitespace");function r(a){return a===null?n(a):e(a)}}function T_o(t){return Xjn([Jwo,s_o(),m_o(t),y_o,S_o])}function XLt(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(e);for(;a!==-1;)r++,a=n.indexOf(e,a+e.length);return r}function C_o(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const zHn=function(t){if(t==null)return N_o;if(typeof t=="string")return M_o(t);if(typeof t=="object")return Array.isArray(t)?k_o(t):R_o(t);if(typeof t=="function")return j2e(t);throw new Error("Expected function, string, or object as test")};function k_o(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=zHn(t[n]);return j2e(r);function r(...a){let o=-1;for(;++o<e.length;)if(e[o].call(this,...a))return!0;return!1}}function R_o(t){return j2e(e);function e(n){let r;for(r in t)if(n[r]!==t[r])return!1;return!0}}function M_o(t){return j2e(e);function e(n){return n&&n.type===t}}function j2e(t){return e;function e(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&t.call(this,n,...r))}}function N_o(){return!0}const I_o={}.hasOwnProperty,P_o=function(t,e,n,r){let a,o;typeof e=="string"||e instanceof RegExp?(o=[[e,n]],a=r):(o=e,a=n),a||(a={});const s=zHn(a.ignore||[]),l=O_o(o);let c=-1;for(;++c<l.length;)R2e(t,"text",u);return t;function u(h,f){let p=-1,m;for(;++p<f.length;){const g=f[p];if(s(g,m?m.children.indexOf(g):void 0,m))return;m=g}if(m)return d(h,f)}function d(h,f){const p=f[f.length-1],m=l[c][0],g=l[c][1];let v=0;const A=p.children.indexOf(h);let y=!1,S=[];m.lastIndex=0;let x=m.exec(h.value);for(;x;){const w=x.index,_={index:x.index,input:x.input,stack:[...f,h]};let C=g(...x,_);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C!==!1&&(v!==w&&S.push({type:"text",value:h.value.slice(v,w)}),Array.isArray(C)?S.push(...C):C&&S.push(C),v=w+x[0].length,y=!0),!m.global)break;x=m.exec(h.value)}return y?(v<h.value.length&&S.push({type:"text",value:h.value.slice(v)}),p.children.splice(A,1,...S)):S=[h],A+S.length}};function O_o(t){const e=[];if(typeof t!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(t)){let n=-1;for(;++n<t.length;)e.push([eBt(t[n][0]),tBt(t[n][1])])}else{let n;for(n in t)I_o.call(t,n)&&e.push([eBt(n),tBt(t[n])])}return e}function eBt(t){return typeof t=="string"?new RegExp(C_o(t),"g"):t}function tBt(t){return typeof t=="function"?t:()=>t}const a9e="phrasing",o9e=["autolink","link","image","label"],L_o={transforms:[U_o],enter:{literalAutolink:D_o,literalAutolinkEmail:s9e,literalAutolinkHttp:s9e,literalAutolinkWww:s9e},exit:{literalAutolink:H_o,literalAutolinkEmail:j_o,literalAutolinkHttp:$_o,literalAutolinkWww:F_o}},B_o={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:a9e,notInConstruct:o9e},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:a9e,notInConstruct:o9e},{character:":",before:"[ps]",after:"\\/",inConstruct:a9e,notInConstruct:o9e}]};function D_o(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function s9e(t){this.config.enter.autolinkProtocol.call(this,t)}function $_o(t){this.config.exit.autolinkProtocol.call(this,t)}function F_o(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.url="http://"+this.sliceSerialize(t)}function j_o(t){this.config.exit.autolinkEmail.call(this,t)}function H_o(t){this.exit(t)}function U_o(t){P_o(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,z_o],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,G_o]],{ignore:["link","linkReference"]})}function z_o(t,e,n,r,a){let o="";if(!GHn(a)||(/^w/i.test(e)&&(n=e+n,e="",o="http://"),!V_o(n)))return!1;const s=K_o(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:o+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function G_o(t,e,n,r){return!GHn(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function V_o(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function K_o(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const a=XLt(t,"(");let o=XLt(t,")");for(;r!==-1&&a>o;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[t,n]}function GHn(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||c8(n)||T2e(n))&&(!e||n!==47)}function VHn(t){return t.label||!t.identifier?t.label||"":uHn(t.identifier)}function W_o(t,e,n){const r=e.indexStack,a=t.children||[],o=e.createTracker(n),s=[];let l=-1;for(r.push(-1);++l<a.length;){const c=a[l];r[r.length-1]=l,s.push(o.move(e.handle(c,t,e,{before:`
`,after:`
`,...o.current()}))),c.type!=="list"&&(e.bulletLastUsed=void 0),l<a.length-1&&s.push(o.move(Q_o(c,a[l+1],t,e)))}return r.pop(),s.join("")}function Q_o(t,e,n,r){let a=r.join.length;for(;a--;){const o=r.join[a](t,e,n,r);if(o===!0||o===1)break;if(typeof o=="number")return`
`.repeat(1+o);if(o===!1)return`

<!---->

`}return`

`}const q_o=/\r?\n|\r/g;function Y_o(t,e){const n=[];let r=0,a=0,o;for(;o=q_o.exec(t);)s(t.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,a++;return s(t.slice(r)),n.join("");function s(l){n.push(e(l,a,!l))}}function KHn(t){if(!t._compiled){const e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function J_o(t,e){return nBt(t,e.inConstruct,!0)&&!nBt(t,e.notInConstruct,!1)}function nBt(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function WHn(t,e,n){const r=(n.before||"")+(e||"")+(n.after||""),a=[],o=[],s={};let l=-1;for(;++l<t.unsafe.length;){const d=t.unsafe[l];if(!J_o(t.stack,d))continue;const h=KHn(d);let f;for(;f=h.exec(r);){const p="before"in d||!!d.atBreak,m="after"in d,g=f.index+(p?f[1].length:0);a.includes(g)?(s[g].before&&!p&&(s[g].before=!1),s[g].after&&!m&&(s[g].after=!1)):(a.push(g),s[g]={before:p,after:m})}}a.sort(Z_o);let c=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(l=-1;++l<a.length;){const d=a[l];d<c||d>=u||d+1<u&&a[l+1]===d+1&&s[d].after&&!s[d+1].before&&!s[d+1].after||a[l-1]===d-1&&s[d].before&&!s[d-1].before&&!s[d-1].after||(c!==d&&o.push(rBt(r.slice(c,d),"\\")),c=d,/[!-/:-@[-`{-~]/.test(r.charAt(d))&&(!n.encode||!n.encode.includes(r.charAt(d)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(d).toString(16).toUpperCase()+";"),c++))}return o.push(rBt(r.slice(c,u),n.after)),o.join("")}function Z_o(t,e){return t-e}function rBt(t,e){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],a=[],o=t+e;let s=-1,l=0,c;for(;c=n.exec(o);)r.push(c.index);for(;++s<r.length;)l!==r[s]&&a.push(t.slice(l,r[s])),a.push("\\"),l=r[s];return a.push(t.slice(l)),a.join("")}function H2e(t){const e=t||{},n=e.now||{};let r=e.lineShift||0,a=n.line||1,o=n.column||1;return{move:c,current:s,shift:l};function s(){return{now:{line:a,column:o},lineShift:r}}function l(u){r+=u}function c(u){const d=u||"",h=d.split(/\r?\n|\r/g),f=h[h.length-1];return a+=h.length-1,o=h.length===1?o+f.length:1+f.length+r,d}}QHn.peek=cTo;function X_o(){return{enter:{gfmFootnoteDefinition:tTo,gfmFootnoteDefinitionLabelString:nTo,gfmFootnoteCall:aTo,gfmFootnoteCallString:oTo},exit:{gfmFootnoteDefinition:iTo,gfmFootnoteDefinitionLabelString:rTo,gfmFootnoteCall:lTo,gfmFootnoteCallString:sTo}}}function eTo(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:uTo,footnoteReference:QHn}}}function tTo(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function nTo(){this.buffer()}function rTo(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=Ew(this.sliceSerialize(t)).toLowerCase()}function iTo(t){this.exit(t)}function aTo(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function oTo(){this.buffer()}function sTo(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=Ew(this.sliceSerialize(t)).toLowerCase()}function lTo(t){this.exit(t)}function QHn(t,e,n,r){const a=H2e(r);let o=a.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return o+=a.move(WHn(n,VHn(t),{...a.current(),before:o,after:"]"})),l(),s(),o+=a.move("]"),o}function cTo(){return"["}function uTo(t,e,n,r){const a=H2e(r);let o=a.move("[^");const s=n.enter("footnoteDefinition"),l=n.enter("label");return o+=a.move(WHn(n,VHn(t),{...a.current(),before:o,after:"]"})),l(),o+=a.move("]:"+(t.children&&t.children.length>0?" ":"")),a.shift(4),o+=a.move(Y_o(W_o(t,n,a.current()),dTo)),s(),o}function dTo(t,e,n){return e===0?t:(n?"":"    ")+t}function qHn(t,e,n){const r=e.indexStack,a=t.children||[],o=[];let s=-1,l=n.before;r.push(-1);let c=e.createTracker(n);for(;++s<a.length;){const u=a[s];let d;if(r[r.length-1]=s,s+1<a.length){let h=e.handle.handlers[a[s+1].type];h&&h.peek&&(h=h.peek),d=h?h(a[s+1],t,e,{before:"",after:"",...c.current()}).charAt(0):""}else d=n.after;o.length>0&&(l==="\r"||l===`
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=e.createTracker(n),c.move(o.join(""))),o.push(c.move(e.handle(u,t,e,{...c.current(),before:l,after:d}))),l=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const hTo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];YHn.peek=vTo;const fTo={canContainEols:["delete"],enter:{strikethrough:mTo},exit:{strikethrough:gTo}},pTo={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hTo}],handlers:{delete:YHn}};function mTo(t){this.enter({type:"delete",children:[]},t)}function gTo(t){this.exit(t)}function YHn(t,e,n,r){const a=H2e(r),o=n.enter("strikethrough");let s=a.move("~~");return s+=qHn(t,n,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),o(),s}function vTo(){return"~"}JHn.peek=ATo;function JHn(t,e,n){let r=t.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],l=KHn(s);let c;if(s.atBreak)for(;c=l.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return a+r+a}function ATo(){return"`"}function yTo(t,e={}){const n=(e.align||[]).concat(),r=e.stringLength||xTo,a=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<t.length;){const m=[],g=[];let v=-1;for(t[u].length>c&&(c=t[u].length);++v<t[u].length;){const A=bTo(t[u][v]);if(e.alignDelimiters!==!1){const y=r(A);g[v]=y,(l[v]===void 0||y>l[v])&&(l[v]=y)}m.push(A)}o[u]=m,s[u]=g}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<c;)a[d]=iBt(n[d]);else{const m=iBt(n);for(;++d<c;)a[d]=m}d=-1;const h=[],f=[];for(;++d<c;){const m=a[d];let g="",v="";m===99?(g=":",v=":"):m===108?g=":":m===114&&(v=":");let A=e.alignDelimiters===!1?1:Math.max(1,l[d]-g.length-v.length);const y=g+"-".repeat(A)+v;e.alignDelimiters!==!1&&(A=g.length+A+v.length,A>l[d]&&(l[d]=A),f[d]=A),h[d]=y}o.splice(1,0,h),s.splice(1,0,f),u=-1;const p=[];for(;++u<o.length;){const m=o[u],g=s[u];d=-1;const v=[];for(;++d<c;){const A=m[d]||"";let y="",S="";if(e.alignDelimiters!==!1){const x=l[d]-(g[d]||0),w=a[d];w===114?y=" ".repeat(x):w===99?x%2?(y=" ".repeat(x/2+.5),S=" ".repeat(x/2-.5)):(y=" ".repeat(x/2),S=y):S=" ".repeat(x)}e.delimiterStart!==!1&&!d&&v.push("|"),e.padding!==!1&&!(e.alignDelimiters===!1&&A==="")&&(e.delimiterStart!==!1||d)&&v.push(" "),e.alignDelimiters!==!1&&v.push(y),v.push(A),e.alignDelimiters!==!1&&v.push(S),e.padding!==!1&&v.push(" "),(e.delimiterEnd!==!1||d!==c-1)&&v.push("|")}p.push(e.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return p.join(`
`)}function bTo(t){return t==null?"":String(t)}function xTo(t){return t.length}function iBt(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}const ETo={enter:{table:STo,tableData:aBt,tableHeader:aBt,tableRow:_To},exit:{codeText:TTo,table:wTo,tableData:l9e,tableHeader:l9e,tableRow:l9e}};function STo(t){const e=t._align;this.enter({type:"table",align:e.map(n=>n==="none"?null:n),children:[]},t),this.setData("inTable",!0)}function wTo(t){this.exit(t),this.setData("inTable")}function _To(t){this.enter({type:"tableRow",children:[]},t)}function l9e(t){this.exit(t)}function aBt(t){this.enter({type:"tableCell",children:[]},t)}function TTo(t){let e=this.resume();this.getData("inTable")&&(e=e.replace(/\\([\\|])/g,CTo));const n=this.stack[this.stack.length-1];n.value=e,this.exit(t)}function CTo(t,e){return e==="|"?e:t}function kTo(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,a=e.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:s,tableRow:l,tableCell:c,inlineCode:f}};function s(p,m,g,v){return u(d(p,g,v),p.align)}function l(p,m,g,v){const A=h(p,g,v),y=u([A]);return y.slice(0,y.indexOf(`
`))}function c(p,m,g,v){const A=g.enter("tableCell"),y=g.enter("phrasing"),S=qHn(p,g,{...v,before:o,after:o});return y(),A(),S}function u(p,m){return yTo(p,{align:m,alignDelimiters:r,padding:n,stringLength:a})}function d(p,m,g){const v=p.children;let A=-1;const y=[],S=m.enter("table");for(;++A<v.length;)y[A]=h(v[A],m,g);return S(),y}function h(p,m,g){const v=p.children;let A=-1;const y=[],S=m.enter("tableRow");for(;++A<v.length;)y[A]=c(v[A],p,m,g);return S(),y}function f(p,m,g){let v=JHn(p,m,g);return g.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function RTo(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function MTo(t){const e=t.options.listItemIndent||"tab";if(e===1||e==="1")return"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function NTo(t,e,n,r){const a=MTo(n);let o=n.bulletCurrent||RTo(n);e&&e.type==="list"&&e.ordered&&(o=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let s=o.length+1;(a==="tab"||a==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(s-o.length)),l.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(t,l.current()),d);return c(),u;function d(h,f,p){return f?(p?"":" ".repeat(s))+h:(p?o:o+" ".repeat(s-o.length))+h}}const ITo={exit:{taskListCheckValueChecked:oBt,taskListCheckValueUnchecked:oBt,paragraph:OTo}},PTo={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:LTo}};function oBt(t){const e=this.stack[this.stack.length-2];e.checked=t.type==="taskListCheckValueChecked"}function OTo(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const a=e.children;let o=-1,s;for(;++o<a.length;){const l=a[o];if(l.type==="paragraph"){s=l;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function LTo(t,e,n,r){const a=t.children[0],o=typeof t.checked=="boolean"&&a&&a.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",l=H2e(r);o&&l.move(s);let c=NTo(t,e,n,{...r,...l.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+s}}function BTo(){return[L_o,X_o(),fTo,ETo,ITo]}function DTo(t){return{extensions:[B_o,eTo(),pTo,kTo(t),PTo]}}function $To(t={}){const e=this.data();n("micromarkExtensions",T_o(t)),n("fromMarkdownExtensions",BTo()),n("toMarkdownExtensions",DTo(t));function n(r,a){(e[r]?e[r]:e[r]=[]).push(a)}}var Xw={};const FTo=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];Xw.REPLACEMENT_CHARACTER="�";Xw.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};Xw.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};Xw.isSurrogate=function(t){return t>=55296&&t<=57343};Xw.isSurrogatePair=function(t){return t>=56320&&t<=57343};Xw.getSurrogatePairCodePoint=function(t,e){return(t-55296)*1024+9216+e};Xw.isControlCodePoint=function(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159};Xw.isUndefinedCodePoint=function(t){return t>=64976&&t<=65007||FTo.indexOf(t)>-1};var Tlt={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const yF=Xw,c9e=Tlt,tL=yF.CODE_POINTS,jTo=65536;let HTo=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=jTo}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(yF.isSurrogatePair(n))return this.pos++,this._addGap(),yF.getSurrogatePairCodePoint(e,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,tL.EOF;return this._err(c9e.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,n){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,tL.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===tL.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===tL.CARRIAGE_RETURN?(this.skipNextNewLine=!0,tL.LINE_FEED):(this.skipNextNewLine=!1,yF.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===tL.LINE_FEED||e===tL.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){yF.isControlCodePoint(e)?this._err(c9e.controlCharacterInInputStream):yF.isUndefinedCodePoint(e)&&this._err(c9e.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var UTo=HTo,zTo=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const GTo=UTo,Hc=Xw,aD=zTo,Yn=Tlt,St=Hc.CODE_POINTS,nL=Hc.CODE_POINT_SEQUENCES,VTo={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},ZHn=1,XHn=2,eUn=4,KTo=ZHn|XHn|eUn,Fs="DATA_STATE",bF="RCDATA_STATE",UZ="RAWTEXT_STATE",oR="SCRIPT_DATA_STATE",tUn="PLAINTEXT_STATE",sBt="TAG_OPEN_STATE",lBt="END_TAG_OPEN_STATE",u9e="TAG_NAME_STATE",cBt="RCDATA_LESS_THAN_SIGN_STATE",uBt="RCDATA_END_TAG_OPEN_STATE",dBt="RCDATA_END_TAG_NAME_STATE",hBt="RAWTEXT_LESS_THAN_SIGN_STATE",fBt="RAWTEXT_END_TAG_OPEN_STATE",pBt="RAWTEXT_END_TAG_NAME_STATE",mBt="SCRIPT_DATA_LESS_THAN_SIGN_STATE",gBt="SCRIPT_DATA_END_TAG_OPEN_STATE",vBt="SCRIPT_DATA_END_TAG_NAME_STATE",ABt="SCRIPT_DATA_ESCAPE_START_STATE",yBt="SCRIPT_DATA_ESCAPE_START_DASH_STATE",hS="SCRIPT_DATA_ESCAPED_STATE",bBt="SCRIPT_DATA_ESCAPED_DASH_STATE",d9e="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Phe="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",xBt="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",EBt="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",SBt="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Bk="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",wBt="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",_Bt="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Ohe="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",TBt="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",X_="BEFORE_ATTRIBUTE_NAME_STATE",Lhe="ATTRIBUTE_NAME_STATE",h9e="AFTER_ATTRIBUTE_NAME_STATE",f9e="BEFORE_ATTRIBUTE_VALUE_STATE",Bhe="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Dhe="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",$he="ATTRIBUTE_VALUE_UNQUOTED_STATE",p9e="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",_I="SELF_CLOSING_START_TAG_STATE",aY="BOGUS_COMMENT_STATE",CBt="MARKUP_DECLARATION_OPEN_STATE",kBt="COMMENT_START_STATE",RBt="COMMENT_START_DASH_STATE",TI="COMMENT_STATE",MBt="COMMENT_LESS_THAN_SIGN_STATE",NBt="COMMENT_LESS_THAN_SIGN_BANG_STATE",IBt="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",PBt="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Fhe="COMMENT_END_DASH_STATE",jhe="COMMENT_END_STATE",OBt="COMMENT_END_BANG_STATE",LBt="DOCTYPE_STATE",Hhe="BEFORE_DOCTYPE_NAME_STATE",Uhe="DOCTYPE_NAME_STATE",BBt="AFTER_DOCTYPE_NAME_STATE",DBt="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",$Bt="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",m9e="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",g9e="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",v9e="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",FBt="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",jBt="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",HBt="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",oY="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",sY="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",A9e="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Dk="BOGUS_DOCTYPE_STATE",zhe="CDATA_SECTION_STATE",UBt="CDATA_SECTION_BRACKET_STATE",zBt="CDATA_SECTION_END_STATE",v7="CHARACTER_REFERENCE_STATE",GBt="NAMED_CHARACTER_REFERENCE_STATE",VBt="AMBIGUOS_AMPERSAND_STATE",KBt="NUMERIC_CHARACTER_REFERENCE_STATE",WBt="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",QBt="DECIMAL_CHARACTER_REFERENCE_START_STATE",qBt="HEXADEMICAL_CHARACTER_REFERENCE_STATE",YBt="DECIMAL_CHARACTER_REFERENCE_STATE",lY="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Wu(t){return t===St.SPACE||t===St.LINE_FEED||t===St.TABULATION||t===St.FORM_FEED}function Nee(t){return t>=St.DIGIT_0&&t<=St.DIGIT_9}function MS(t){return t>=St.LATIN_CAPITAL_A&&t<=St.LATIN_CAPITAL_Z}function sB(t){return t>=St.LATIN_SMALL_A&&t<=St.LATIN_SMALL_Z}function YI(t){return sB(t)||MS(t)}function y9e(t){return YI(t)||Nee(t)}function nUn(t){return t>=St.LATIN_CAPITAL_A&&t<=St.LATIN_CAPITAL_F}function rUn(t){return t>=St.LATIN_SMALL_A&&t<=St.LATIN_SMALL_F}function WTo(t){return Nee(t)||nUn(t)||rUn(t)}function gge(t){return t+32}function eh(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(t>>>10&1023|55296)+String.fromCharCode(56320|t&1023))}function CI(t){return String.fromCharCode(gge(t))}function JBt(t,e){const n=aD[++t];let r=++t,a=r+n-1;for(;r<=a;){const o=r+a>>>1,s=aD[o];if(s<e)r=o+1;else if(s>e)a=o-1;else return aD[o+n]}return-1}let NE=class OA{constructor(){this.preprocessor=new GTo,this.tokenQueue=[],this.allowCDATA=!1,this.state=Fs,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,n){this.active=!0,this.preprocessor.write(e,n)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:OA.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,n,r){let a=0,o=!0;const s=e.length;let l=0,c=n,u;for(;l<s;l++){if(l>0&&(c=this._consume(),a++),c===St.EOF){o=!1;break}if(u=e[l],c!==u&&(r||c!==gge(u))){o=!1;break}}if(!o)for(;a--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==nL.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==nL.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:OA.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:OA.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:OA.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:OA.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,n){this.currentCharacterToken={type:e,chars:n}}_createEOFToken(){this.currentToken={type:OA.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){OA.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(Yn.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===OA.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===OA.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(Yn.endTagWithAttributes),e.selfClosing&&this._err(Yn.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,n){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(e,n)}_emitCodePoint(e){let n=OA.CHARACTER_TOKEN;Wu(e)?n=OA.WHITESPACE_CHARACTER_TOKEN:e===St.NULL&&(n=OA.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,eh(e))}_emitSeveralCodePoints(e){for(let n=0;n<e.length;n++)this._emitCodePoint(e[n])}_emitChars(e){this._appendCharToCurrentCharacterToken(OA.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let n=null,r=1,a=JBt(0,e);for(this.tempBuff.push(e);a>-1;){const o=aD[a],s=o<KTo;s&&o&ZHn&&(n=o&XHn?[aD[++a],aD[++a]]:[aD[++a]],r=0);const c=this._consume();if(this.tempBuff.push(c),r++,c===St.EOF)break;s?a=o&eUn?JBt(a,c):-1:a=c===o?++a:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===Bhe||this.returnState===Dhe||this.returnState===$he}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===St.EQUALS_SIGN||y9e(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=eh(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[Fs](e){this.preprocessor.dropParsedChunk(),e===St.LESS_THAN_SIGN?this.state=sBt:e===St.AMPERSAND?(this.returnState=Fs,this.state=v7):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._emitCodePoint(e)):e===St.EOF?this._emitEOFToken():this._emitCodePoint(e)}[bF](e){this.preprocessor.dropParsedChunk(),e===St.AMPERSAND?(this.returnState=bF,this.state=v7):e===St.LESS_THAN_SIGN?this.state=cBt:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?this._emitEOFToken():this._emitCodePoint(e)}[UZ](e){this.preprocessor.dropParsedChunk(),e===St.LESS_THAN_SIGN?this.state=hBt:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?this._emitEOFToken():this._emitCodePoint(e)}[oR](e){this.preprocessor.dropParsedChunk(),e===St.LESS_THAN_SIGN?this.state=mBt:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?this._emitEOFToken():this._emitCodePoint(e)}[tUn](e){this.preprocessor.dropParsedChunk(),e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?this._emitEOFToken():this._emitCodePoint(e)}[sBt](e){e===St.EXCLAMATION_MARK?this.state=CBt:e===St.SOLIDUS?this.state=lBt:YI(e)?(this._createStartTagToken(),this._reconsumeInState(u9e)):e===St.QUESTION_MARK?(this._err(Yn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(aY)):e===St.EOF?(this._err(Yn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(Yn.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(Fs))}[lBt](e){YI(e)?(this._createEndTagToken(),this._reconsumeInState(u9e)):e===St.GREATER_THAN_SIGN?(this._err(Yn.missingEndTagName),this.state=Fs):e===St.EOF?(this._err(Yn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(Yn.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(aY))}[u9e](e){Wu(e)?this.state=X_:e===St.SOLIDUS?this.state=_I:e===St.GREATER_THAN_SIGN?(this.state=Fs,this._emitCurrentToken()):MS(e)?this.currentToken.tagName+=CI(e):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.tagName+=Hc.REPLACEMENT_CHARACTER):e===St.EOF?(this._err(Yn.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=eh(e)}[cBt](e){e===St.SOLIDUS?(this.tempBuff=[],this.state=uBt):(this._emitChars("<"),this._reconsumeInState(bF))}[uBt](e){YI(e)?(this._createEndTagToken(),this._reconsumeInState(dBt)):(this._emitChars("</"),this._reconsumeInState(bF))}[dBt](e){if(MS(e))this.currentToken.tagName+=CI(e),this.tempBuff.push(e);else if(sB(e))this.currentToken.tagName+=eh(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Wu(e)){this.state=X_;return}if(e===St.SOLIDUS){this.state=_I;return}if(e===St.GREATER_THAN_SIGN){this.state=Fs,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(bF)}}[hBt](e){e===St.SOLIDUS?(this.tempBuff=[],this.state=fBt):(this._emitChars("<"),this._reconsumeInState(UZ))}[fBt](e){YI(e)?(this._createEndTagToken(),this._reconsumeInState(pBt)):(this._emitChars("</"),this._reconsumeInState(UZ))}[pBt](e){if(MS(e))this.currentToken.tagName+=CI(e),this.tempBuff.push(e);else if(sB(e))this.currentToken.tagName+=eh(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Wu(e)){this.state=X_;return}if(e===St.SOLIDUS){this.state=_I;return}if(e===St.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Fs;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(UZ)}}[mBt](e){e===St.SOLIDUS?(this.tempBuff=[],this.state=gBt):e===St.EXCLAMATION_MARK?(this.state=ABt,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(oR))}[gBt](e){YI(e)?(this._createEndTagToken(),this._reconsumeInState(vBt)):(this._emitChars("</"),this._reconsumeInState(oR))}[vBt](e){if(MS(e))this.currentToken.tagName+=CI(e),this.tempBuff.push(e);else if(sB(e))this.currentToken.tagName+=eh(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Wu(e)){this.state=X_;return}else if(e===St.SOLIDUS){this.state=_I;return}else if(e===St.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Fs;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(oR)}}[ABt](e){e===St.HYPHEN_MINUS?(this.state=yBt,this._emitChars("-")):this._reconsumeInState(oR)}[yBt](e){e===St.HYPHEN_MINUS?(this.state=d9e,this._emitChars("-")):this._reconsumeInState(oR)}[hS](e){e===St.HYPHEN_MINUS?(this.state=bBt,this._emitChars("-")):e===St.LESS_THAN_SIGN?this.state=Phe:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?(this._err(Yn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[bBt](e){e===St.HYPHEN_MINUS?(this.state=d9e,this._emitChars("-")):e===St.LESS_THAN_SIGN?this.state=Phe:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.state=hS,this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?(this._err(Yn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=hS,this._emitCodePoint(e))}[d9e](e){e===St.HYPHEN_MINUS?this._emitChars("-"):e===St.LESS_THAN_SIGN?this.state=Phe:e===St.GREATER_THAN_SIGN?(this.state=oR,this._emitChars(">")):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.state=hS,this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?(this._err(Yn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=hS,this._emitCodePoint(e))}[Phe](e){e===St.SOLIDUS?(this.tempBuff=[],this.state=xBt):YI(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(SBt)):(this._emitChars("<"),this._reconsumeInState(hS))}[xBt](e){YI(e)?(this._createEndTagToken(),this._reconsumeInState(EBt)):(this._emitChars("</"),this._reconsumeInState(hS))}[EBt](e){if(MS(e))this.currentToken.tagName+=CI(e),this.tempBuff.push(e);else if(sB(e))this.currentToken.tagName+=eh(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Wu(e)){this.state=X_;return}if(e===St.SOLIDUS){this.state=_I;return}if(e===St.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Fs;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(hS)}}[SBt](e){Wu(e)||e===St.SOLIDUS||e===St.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Bk:hS,this._emitCodePoint(e)):MS(e)?(this.tempBuff.push(gge(e)),this._emitCodePoint(e)):sB(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(hS)}[Bk](e){e===St.HYPHEN_MINUS?(this.state=wBt,this._emitChars("-")):e===St.LESS_THAN_SIGN?(this.state=Ohe,this._emitChars("<")):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?(this._err(Yn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[wBt](e){e===St.HYPHEN_MINUS?(this.state=_Bt,this._emitChars("-")):e===St.LESS_THAN_SIGN?(this.state=Ohe,this._emitChars("<")):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.state=Bk,this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?(this._err(Yn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bk,this._emitCodePoint(e))}[_Bt](e){e===St.HYPHEN_MINUS?this._emitChars("-"):e===St.LESS_THAN_SIGN?(this.state=Ohe,this._emitChars("<")):e===St.GREATER_THAN_SIGN?(this.state=oR,this._emitChars(">")):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.state=Bk,this._emitChars(Hc.REPLACEMENT_CHARACTER)):e===St.EOF?(this._err(Yn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bk,this._emitCodePoint(e))}[Ohe](e){e===St.SOLIDUS?(this.tempBuff=[],this.state=TBt,this._emitChars("/")):this._reconsumeInState(Bk)}[TBt](e){Wu(e)||e===St.SOLIDUS||e===St.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?hS:Bk,this._emitCodePoint(e)):MS(e)?(this.tempBuff.push(gge(e)),this._emitCodePoint(e)):sB(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Bk)}[X_](e){Wu(e)||(e===St.SOLIDUS||e===St.GREATER_THAN_SIGN||e===St.EOF?this._reconsumeInState(h9e):e===St.EQUALS_SIGN?(this._err(Yn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Lhe):(this._createAttr(""),this._reconsumeInState(Lhe)))}[Lhe](e){Wu(e)||e===St.SOLIDUS||e===St.GREATER_THAN_SIGN||e===St.EOF?(this._leaveAttrName(h9e),this._unconsume()):e===St.EQUALS_SIGN?this._leaveAttrName(f9e):MS(e)?this.currentAttr.name+=CI(e):e===St.QUOTATION_MARK||e===St.APOSTROPHE||e===St.LESS_THAN_SIGN?(this._err(Yn.unexpectedCharacterInAttributeName),this.currentAttr.name+=eh(e)):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentAttr.name+=Hc.REPLACEMENT_CHARACTER):this.currentAttr.name+=eh(e)}[h9e](e){Wu(e)||(e===St.SOLIDUS?this.state=_I:e===St.EQUALS_SIGN?this.state=f9e:e===St.GREATER_THAN_SIGN?(this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Lhe)))}[f9e](e){Wu(e)||(e===St.QUOTATION_MARK?this.state=Bhe:e===St.APOSTROPHE?this.state=Dhe:e===St.GREATER_THAN_SIGN?(this._err(Yn.missingAttributeValue),this.state=Fs,this._emitCurrentToken()):this._reconsumeInState($he))}[Bhe](e){e===St.QUOTATION_MARK?this.state=p9e:e===St.AMPERSAND?(this.returnState=Bhe,this.state=v7):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentAttr.value+=Hc.REPLACEMENT_CHARACTER):e===St.EOF?(this._err(Yn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eh(e)}[Dhe](e){e===St.APOSTROPHE?this.state=p9e:e===St.AMPERSAND?(this.returnState=Dhe,this.state=v7):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentAttr.value+=Hc.REPLACEMENT_CHARACTER):e===St.EOF?(this._err(Yn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eh(e)}[$he](e){Wu(e)?this._leaveAttrValue(X_):e===St.AMPERSAND?(this.returnState=$he,this.state=v7):e===St.GREATER_THAN_SIGN?(this._leaveAttrValue(Fs),this._emitCurrentToken()):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentAttr.value+=Hc.REPLACEMENT_CHARACTER):e===St.QUOTATION_MARK||e===St.APOSTROPHE||e===St.LESS_THAN_SIGN||e===St.EQUALS_SIGN||e===St.GRAVE_ACCENT?(this._err(Yn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=eh(e)):e===St.EOF?(this._err(Yn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=eh(e)}[p9e](e){Wu(e)?this._leaveAttrValue(X_):e===St.SOLIDUS?this._leaveAttrValue(_I):e===St.GREATER_THAN_SIGN?(this._leaveAttrValue(Fs),this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInTag),this._emitEOFToken()):(this._err(Yn.missingWhitespaceBetweenAttributes),this._reconsumeInState(X_))}[_I](e){e===St.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInTag),this._emitEOFToken()):(this._err(Yn.unexpectedSolidusInTag),this._reconsumeInState(X_))}[aY](e){e===St.GREATER_THAN_SIGN?(this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.data+=Hc.REPLACEMENT_CHARACTER):this.currentToken.data+=eh(e)}[CBt](e){this._consumeSequenceIfMatch(nL.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=kBt):this._consumeSequenceIfMatch(nL.DOCTYPE_STRING,e,!1)?this.state=LBt:this._consumeSequenceIfMatch(nL.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=zhe:(this._err(Yn.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=aY):this._ensureHibernation()||(this._err(Yn.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(aY))}[kBt](e){e===St.HYPHEN_MINUS?this.state=RBt:e===St.GREATER_THAN_SIGN?(this._err(Yn.abruptClosingOfEmptyComment),this.state=Fs,this._emitCurrentToken()):this._reconsumeInState(TI)}[RBt](e){e===St.HYPHEN_MINUS?this.state=jhe:e===St.GREATER_THAN_SIGN?(this._err(Yn.abruptClosingOfEmptyComment),this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(TI))}[TI](e){e===St.HYPHEN_MINUS?this.state=Fhe:e===St.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=MBt):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.data+=Hc.REPLACEMENT_CHARACTER):e===St.EOF?(this._err(Yn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=eh(e)}[MBt](e){e===St.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=NBt):e===St.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(TI)}[NBt](e){e===St.HYPHEN_MINUS?this.state=IBt:this._reconsumeInState(TI)}[IBt](e){e===St.HYPHEN_MINUS?this.state=PBt:this._reconsumeInState(Fhe)}[PBt](e){e!==St.GREATER_THAN_SIGN&&e!==St.EOF&&this._err(Yn.nestedComment),this._reconsumeInState(jhe)}[Fhe](e){e===St.HYPHEN_MINUS?this.state=jhe:e===St.EOF?(this._err(Yn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(TI))}[jhe](e){e===St.GREATER_THAN_SIGN?(this.state=Fs,this._emitCurrentToken()):e===St.EXCLAMATION_MARK?this.state=OBt:e===St.HYPHEN_MINUS?this.currentToken.data+="-":e===St.EOF?(this._err(Yn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(TI))}[OBt](e){e===St.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Fhe):e===St.GREATER_THAN_SIGN?(this._err(Yn.incorrectlyClosedComment),this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(TI))}[LBt](e){Wu(e)?this.state=Hhe:e===St.GREATER_THAN_SIGN?this._reconsumeInState(Hhe):e===St.EOF?(this._err(Yn.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Hhe))}[Hhe](e){Wu(e)||(MS(e)?(this._createDoctypeToken(CI(e)),this.state=Uhe):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this._createDoctypeToken(Hc.REPLACEMENT_CHARACTER),this.state=Uhe):e===St.GREATER_THAN_SIGN?(this._err(Yn.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Fs):e===St.EOF?(this._err(Yn.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(eh(e)),this.state=Uhe))}[Uhe](e){Wu(e)?this.state=BBt:e===St.GREATER_THAN_SIGN?(this.state=Fs,this._emitCurrentToken()):MS(e)?this.currentToken.name+=CI(e):e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.name+=Hc.REPLACEMENT_CHARACTER):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=eh(e)}[BBt](e){Wu(e)||(e===St.GREATER_THAN_SIGN?(this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(nL.PUBLIC_STRING,e,!1)?this.state=DBt:this._consumeSequenceIfMatch(nL.SYSTEM_STRING,e,!1)?this.state=jBt:this._ensureHibernation()||(this._err(Yn.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Dk)))}[DBt](e){Wu(e)?this.state=$Bt:e===St.QUOTATION_MARK?(this._err(Yn.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=m9e):e===St.APOSTROPHE?(this._err(Yn.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=g9e):e===St.GREATER_THAN_SIGN?(this._err(Yn.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Dk))}[$Bt](e){Wu(e)||(e===St.QUOTATION_MARK?(this.currentToken.publicId="",this.state=m9e):e===St.APOSTROPHE?(this.currentToken.publicId="",this.state=g9e):e===St.GREATER_THAN_SIGN?(this._err(Yn.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Dk)))}[m9e](e){e===St.QUOTATION_MARK?this.state=v9e:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.publicId+=Hc.REPLACEMENT_CHARACTER):e===St.GREATER_THAN_SIGN?(this._err(Yn.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Fs):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=eh(e)}[g9e](e){e===St.APOSTROPHE?this.state=v9e:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.publicId+=Hc.REPLACEMENT_CHARACTER):e===St.GREATER_THAN_SIGN?(this._err(Yn.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Fs):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=eh(e)}[v9e](e){Wu(e)?this.state=FBt:e===St.GREATER_THAN_SIGN?(this.state=Fs,this._emitCurrentToken()):e===St.QUOTATION_MARK?(this._err(Yn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=oY):e===St.APOSTROPHE?(this._err(Yn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=sY):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Dk))}[FBt](e){Wu(e)||(e===St.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Fs):e===St.QUOTATION_MARK?(this.currentToken.systemId="",this.state=oY):e===St.APOSTROPHE?(this.currentToken.systemId="",this.state=sY):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Dk)))}[jBt](e){Wu(e)?this.state=HBt:e===St.QUOTATION_MARK?(this._err(Yn.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=oY):e===St.APOSTROPHE?(this._err(Yn.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=sY):e===St.GREATER_THAN_SIGN?(this._err(Yn.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Dk))}[HBt](e){Wu(e)||(e===St.QUOTATION_MARK?(this.currentToken.systemId="",this.state=oY):e===St.APOSTROPHE?(this.currentToken.systemId="",this.state=sY):e===St.GREATER_THAN_SIGN?(this._err(Yn.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Fs,this._emitCurrentToken()):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Dk)))}[oY](e){e===St.QUOTATION_MARK?this.state=A9e:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.systemId+=Hc.REPLACEMENT_CHARACTER):e===St.GREATER_THAN_SIGN?(this._err(Yn.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Fs):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=eh(e)}[sY](e){e===St.APOSTROPHE?this.state=A9e:e===St.NULL?(this._err(Yn.unexpectedNullCharacter),this.currentToken.systemId+=Hc.REPLACEMENT_CHARACTER):e===St.GREATER_THAN_SIGN?(this._err(Yn.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Fs):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=eh(e)}[A9e](e){Wu(e)||(e===St.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Fs):e===St.EOF?(this._err(Yn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Yn.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Dk)))}[Dk](e){e===St.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Fs):e===St.NULL?this._err(Yn.unexpectedNullCharacter):e===St.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[zhe](e){e===St.RIGHT_SQUARE_BRACKET?this.state=UBt:e===St.EOF?(this._err(Yn.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[UBt](e){e===St.RIGHT_SQUARE_BRACKET?this.state=zBt:(this._emitChars("]"),this._reconsumeInState(zhe))}[zBt](e){e===St.GREATER_THAN_SIGN?this.state=Fs:e===St.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(zhe))}[v7](e){this.tempBuff=[St.AMPERSAND],e===St.NUMBER_SIGN?(this.tempBuff.push(e),this.state=KBt):y9e(e)?this._reconsumeInState(GBt):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[GBt](e){const n=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[St.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===St.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Yn.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=VBt}[VBt](e){y9e(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=eh(e):this._emitCodePoint(e):(e===St.SEMICOLON&&this._err(Yn.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[KBt](e){this.charRefCode=0,e===St.LATIN_SMALL_X||e===St.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=WBt):this._reconsumeInState(QBt)}[WBt](e){WTo(e)?this._reconsumeInState(qBt):(this._err(Yn.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[QBt](e){Nee(e)?this._reconsumeInState(YBt):(this._err(Yn.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[qBt](e){nUn(e)?this.charRefCode=this.charRefCode*16+e-55:rUn(e)?this.charRefCode=this.charRefCode*16+e-87:Nee(e)?this.charRefCode=this.charRefCode*16+e-48:e===St.SEMICOLON?this.state=lY:(this._err(Yn.missingSemicolonAfterCharacterReference),this._reconsumeInState(lY))}[YBt](e){Nee(e)?this.charRefCode=this.charRefCode*10+e-48:e===St.SEMICOLON?this.state=lY:(this._err(Yn.missingSemicolonAfterCharacterReference),this._reconsumeInState(lY))}[lY](){if(this.charRefCode===St.NULL)this._err(Yn.nullCharacterReference),this.charRefCode=St.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Yn.characterReferenceOutsideUnicodeRange),this.charRefCode=St.REPLACEMENT_CHARACTER;else if(Hc.isSurrogate(this.charRefCode))this._err(Yn.surrogateCharacterReference),this.charRefCode=St.REPLACEMENT_CHARACTER;else if(Hc.isUndefinedCodePoint(this.charRefCode))this._err(Yn.noncharacterCharacterReference);else if(Hc.isControlCodePoint(this.charRefCode)||this.charRefCode===St.CARRIAGE_RETURN){this._err(Yn.controlCharacterReference);const e=VTo[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};NE.CHARACTER_TOKEN="CHARACTER_TOKEN";NE.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";NE.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";NE.START_TAG_TOKEN="START_TAG_TOKEN";NE.END_TAG_TOKEN="END_TAG_TOKEN";NE.COMMENT_TOKEN="COMMENT_TOKEN";NE.DOCTYPE_TOKEN="DOCTYPE_TOKEN";NE.EOF_TOKEN="EOF_TOKEN";NE.HIBERNATION_TOKEN="HIBERNATION_TOKEN";NE.MODE={DATA:Fs,RCDATA:bF,RAWTEXT:UZ,SCRIPT_DATA:oR,PLAINTEXT:tUn};NE.getTokenAttr=function(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null};var U2e=NE,e_={};const b9e=e_.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};e_.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};e_.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const Rr=e_.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};e_.SPECIAL_ELEMENTS={[b9e.HTML]:{[Rr.ADDRESS]:!0,[Rr.APPLET]:!0,[Rr.AREA]:!0,[Rr.ARTICLE]:!0,[Rr.ASIDE]:!0,[Rr.BASE]:!0,[Rr.BASEFONT]:!0,[Rr.BGSOUND]:!0,[Rr.BLOCKQUOTE]:!0,[Rr.BODY]:!0,[Rr.BR]:!0,[Rr.BUTTON]:!0,[Rr.CAPTION]:!0,[Rr.CENTER]:!0,[Rr.COL]:!0,[Rr.COLGROUP]:!0,[Rr.DD]:!0,[Rr.DETAILS]:!0,[Rr.DIR]:!0,[Rr.DIV]:!0,[Rr.DL]:!0,[Rr.DT]:!0,[Rr.EMBED]:!0,[Rr.FIELDSET]:!0,[Rr.FIGCAPTION]:!0,[Rr.FIGURE]:!0,[Rr.FOOTER]:!0,[Rr.FORM]:!0,[Rr.FRAME]:!0,[Rr.FRAMESET]:!0,[Rr.H1]:!0,[Rr.H2]:!0,[Rr.H3]:!0,[Rr.H4]:!0,[Rr.H5]:!0,[Rr.H6]:!0,[Rr.HEAD]:!0,[Rr.HEADER]:!0,[Rr.HGROUP]:!0,[Rr.HR]:!0,[Rr.HTML]:!0,[Rr.IFRAME]:!0,[Rr.IMG]:!0,[Rr.INPUT]:!0,[Rr.LI]:!0,[Rr.LINK]:!0,[Rr.LISTING]:!0,[Rr.MAIN]:!0,[Rr.MARQUEE]:!0,[Rr.MENU]:!0,[Rr.META]:!0,[Rr.NAV]:!0,[Rr.NOEMBED]:!0,[Rr.NOFRAMES]:!0,[Rr.NOSCRIPT]:!0,[Rr.OBJECT]:!0,[Rr.OL]:!0,[Rr.P]:!0,[Rr.PARAM]:!0,[Rr.PLAINTEXT]:!0,[Rr.PRE]:!0,[Rr.SCRIPT]:!0,[Rr.SECTION]:!0,[Rr.SELECT]:!0,[Rr.SOURCE]:!0,[Rr.STYLE]:!0,[Rr.SUMMARY]:!0,[Rr.TABLE]:!0,[Rr.TBODY]:!0,[Rr.TD]:!0,[Rr.TEMPLATE]:!0,[Rr.TEXTAREA]:!0,[Rr.TFOOT]:!0,[Rr.TH]:!0,[Rr.THEAD]:!0,[Rr.TITLE]:!0,[Rr.TR]:!0,[Rr.TRACK]:!0,[Rr.UL]:!0,[Rr.WBR]:!0,[Rr.XMP]:!0},[b9e.MATHML]:{[Rr.MI]:!0,[Rr.MO]:!0,[Rr.MN]:!0,[Rr.MS]:!0,[Rr.MTEXT]:!0,[Rr.ANNOTATION_XML]:!0},[b9e.SVG]:{[Rr.TITLE]:!0,[Rr.FOREIGN_OBJECT]:!0,[Rr.DESC]:!0}};const iUn=e_,Pr=iUn.TAG_NAMES,zc=iUn.NAMESPACES;function ZBt(t){switch(t.length){case 1:return t===Pr.P;case 2:return t===Pr.RB||t===Pr.RP||t===Pr.RT||t===Pr.DD||t===Pr.DT||t===Pr.LI;case 3:return t===Pr.RTC;case 6:return t===Pr.OPTION;case 8:return t===Pr.OPTGROUP}return!1}function QTo(t){switch(t.length){case 1:return t===Pr.P;case 2:return t===Pr.RB||t===Pr.RP||t===Pr.RT||t===Pr.DD||t===Pr.DT||t===Pr.LI||t===Pr.TD||t===Pr.TH||t===Pr.TR;case 3:return t===Pr.RTC;case 5:return t===Pr.TBODY||t===Pr.TFOOT||t===Pr.THEAD;case 6:return t===Pr.OPTION;case 7:return t===Pr.CAPTION;case 8:return t===Pr.OPTGROUP||t===Pr.COLGROUP}return!1}function Ghe(t,e){switch(t.length){case 2:if(t===Pr.TD||t===Pr.TH)return e===zc.HTML;if(t===Pr.MI||t===Pr.MO||t===Pr.MN||t===Pr.MS)return e===zc.MATHML;break;case 4:if(t===Pr.HTML)return e===zc.HTML;if(t===Pr.DESC)return e===zc.SVG;break;case 5:if(t===Pr.TABLE)return e===zc.HTML;if(t===Pr.MTEXT)return e===zc.MATHML;if(t===Pr.TITLE)return e===zc.SVG;break;case 6:return(t===Pr.APPLET||t===Pr.OBJECT)&&e===zc.HTML;case 7:return(t===Pr.CAPTION||t===Pr.MARQUEE)&&e===zc.HTML;case 8:return t===Pr.TEMPLATE&&e===zc.HTML;case 13:return t===Pr.FOREIGN_OBJECT&&e===zc.SVG;case 14:return t===Pr.ANNOTATION_XML&&e===zc.MATHML}return!1}let qTo=class{constructor(e,n){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(e){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){n=r;break}return n}_isInTemplate(){return this.currentTagName===Pr.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===zc.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,n){const r=this._indexOf(e);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,n){const r=this._indexOf(e)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===e&&r===zc.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Pr.H1||e===Pr.H2||e===Pr.H3||e===Pr.H4||e===Pr.H5||e===Pr.H6&&n===zc.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Pr.TD||e===Pr.TH&&n===zc.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Pr.TABLE&&this.currentTagName!==Pr.TEMPLATE&&this.currentTagName!==Pr.HTML||this.treeAdapter.getNamespaceURI(this.current)!==zc.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Pr.TBODY&&this.currentTagName!==Pr.TFOOT&&this.currentTagName!==Pr.THEAD&&this.currentTagName!==Pr.TEMPLATE&&this.currentTagName!==Pr.HTML||this.treeAdapter.getNamespaceURI(this.current)!==zc.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Pr.TR&&this.currentTagName!==Pr.TEMPLATE&&this.currentTagName!==Pr.HTML||this.treeAdapter.getNamespaceURI(this.current)!==zc.HTML;)this.pop()}remove(e){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===Pr.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let n=this._indexOf(e);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===Pr.HTML}hasInScope(e){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===e&&a===zc.HTML)return!0;if(Ghe(r,a))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const n=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((n===Pr.H1||n===Pr.H2||n===Pr.H3||n===Pr.H4||n===Pr.H5||n===Pr.H6)&&r===zc.HTML)return!0;if(Ghe(n,r))return!1}return!0}hasInListItemScope(e){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===e&&a===zc.HTML)return!0;if((r===Pr.UL||r===Pr.OL)&&a===zc.HTML||Ghe(r,a))return!1}return!0}hasInButtonScope(e){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===e&&a===zc.HTML)return!0;if(r===Pr.BUTTON&&a===zc.HTML||Ghe(r,a))return!1}return!0}hasInTableScope(e){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===zc.HTML){if(r===e)return!0;if(r===Pr.TABLE||r===Pr.TEMPLATE||r===Pr.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const n=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===zc.HTML){if(n===Pr.TBODY||n===Pr.THEAD||n===Pr.TFOOT)return!0;if(n===Pr.TABLE||n===Pr.HTML)return!1}}return!0}hasInSelectScope(e){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===zc.HTML){if(r===e)return!0;if(r!==Pr.OPTION&&r!==Pr.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;ZBt(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;QTo(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;ZBt(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};var YTo=qTo;const Vhe=3;let Clt=class JI{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const n=[];if(this.length>=Vhe){const r=this.treeAdapter.getAttrList(e).length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let s=this.length-1;s>=0;s--){const l=this.entries[s];if(l.type===JI.MARKER_ENTRY)break;const c=l.element,u=this.treeAdapter.getAttrList(c);this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===o&&u.length===r&&n.push({idx:s,attrs:u})}}return n.length<Vhe?[]:n}_ensureNoahArkCondition(e){const n=this._getNoahArkConditionCandidates(e);let r=n.length;if(r){const a=this.treeAdapter.getAttrList(e),o=a.length,s=Object.create(null);for(let l=0;l<o;l++){const c=a[l];s[c.name]=c.value}for(let l=0;l<o;l++)for(let c=0;c<r;c++){const u=n[c].attrs[l];if(s[u.name]!==u.value&&(n.splice(c,1),r--),n.length<Vhe)return}for(let l=r-1;l>=Vhe-1;l--)this.entries.splice(n[l].idx,1),this.length--}}insertMarker(){this.entries.push({type:JI.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:JI.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:JI.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===e){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===JI.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===JI.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===JI.ELEMENT_ENTRY&&r.element===e)return r}return null}};Clt.MARKER_ENTRY="MARKER_ENTRY";Clt.ELEMENT_ENTRY="ELEMENT_ENTRY";var JTo=Clt;let aUn=class{constructor(e){const n={},r=this._getOverriddenMethods(this,n);for(const a of Object.keys(r))typeof r[a]=="function"&&(n[a]=e[a],e[a]=r[a])}_getOverriddenMethods(){throw new Error("Not implemented")}};aUn.install=function(t,e,n){t.__mixins||(t.__mixins=[]);for(let a=0;a<t.__mixins.length;a++)if(t.__mixins[a].constructor===e)return t.__mixins[a];const r=new e(t,n);return t.__mixins.push(r),r};var EN=aUn;const ZTo=EN;let XTo=class extends ZTo{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,n){return{advance(){const r=this.pos+1,a=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),(a===`
`||a==="\r"&&this.html[r+1]!==`
`)&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const a=r-this.pos;e.lineStartPos-=a,e.droppedBufferSize+=a,e.offset=e.droppedBufferSize+this.pos}}}};var oUn=XTo;const XBt=EN,x9e=U2e,e2o=oUn;let t2o=class extends XBt{constructor(e){super(e),this.tokenizer=e,this.posTracker=XBt.install(e.preprocessor,e2o),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(e,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(a){n._createDoctypeToken.call(this,a),this.currentToken.location=e.ctLoc},_createCharacterToken(a,o){n._createCharacterToken.call(this,a,o),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(a){n._createAttr.call(this,a),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(a){n._leaveAttrName.call(this,a),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(a){n._leaveAttrValue.call(this,a),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const a=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=a.startLine,this.currentCharacterToken.location.endCol=a.startCol,this.currentCharacterToken.location.endOffset=a.startOffset),this.currentToken.type===x9e.EOF_TOKEN?(a.endLine=a.startLine,a.endCol=a.startCol,a.endOffset=a.startOffset):(a.endLine=e.posTracker.line,a.endCol=e.posTracker.col+1,a.endOffset=e.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const a=this.currentCharacterToken&&this.currentCharacterToken.location;a&&a.endOffset===-1&&(a.endLine=e.posTracker.line,a.endCol=e.posTracker.col,a.endOffset=e.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(x9e.MODE).forEach(a=>{const o=x9e.MODE[a];r[o]=function(s){e.ctLoc=e._getCurrentLocation(),n[o].call(this,s)}}),r}};var sUn=t2o;const n2o=EN;let r2o=class extends n2o{constructor(e,n){super(e),this.onItemPop=n.onItemPop}_getOverriddenMethods(e,n){return{pop(){e.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)e.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),n.remove.call(this,r)}}}};var i2o=r2o;const E9e=EN,eDt=U2e,a2o=sUn,o2o=i2o,s2o=e_,S9e=s2o.TAG_NAMES;let l2o=class extends E9e{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,n)}_setEndLocation(e,n){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&n.location){const a=n.location,o=this.treeAdapter.getTagName(e),s=n.type===eDt.END_TAG_TOKEN&&o===n.tagName,l={};s?(l.endTag=Object.assign({},a),l.endLine=a.endLine,l.endCol=a.endCol,l.endOffset=a.endOffset):(l.endLine=a.startLine,l.endCol=a.startCol,l.endOffset=a.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,l)}}_getOverriddenMethods(e,n){return{_bootstrap(r,a){n._bootstrap.call(this,r,a),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const o=E9e.install(this.tokenizer,a2o);e.posTracker=o.posTracker,E9e.install(this.openElements,o2o,{onItemPop:function(s){e._setEndLocation(s,e.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let a=this.openElements.stackTop;a>=0;a--)e._setEndLocation(this.openElements.items[a],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(e.currentToken=r,n._processToken.call(this,r),r.type===eDt.END_TAG_TOKEN&&(r.tagName===S9e.HTML||r.tagName===S9e.BODY&&this.openElements.hasInScope(S9e.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const s=this.openElements.items[o];if(this.treeAdapter.getTagName(s)===r.tagName){e._setEndLocation(s,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const a=this.treeAdapter.getChildNodes(this.document),o=a.length;for(let s=0;s<o;s++){const l=a[s];if(this.treeAdapter.isDocumentTypeNode(l)){this.treeAdapter.setNodeSourceCodeLocation(l,r.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,a){e.lastStartTagToken=r,n._appendElement.call(this,r,a)},_insertElement(r,a){e.lastStartTagToken=r,n._insertElement.call(this,r,a)},_insertTemplate(r){e.lastStartTagToken=r,n._insertTemplate.call(this,r);const a=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(a,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,a){n._appendCommentNode.call(this,r,a);const o=this.treeAdapter.getChildNodes(a),s=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(s,r.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const a=this._shouldFosterParentOnInsertion(),o=a&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,s=this.treeAdapter.getChildNodes(o),l=a&&e.lastFosterParentingLocation.beforeElement?s.indexOf(e.lastFosterParentingLocation.beforeElement)-1:s.length-1,c=s[l];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:d,endCol:h,endOffset:f}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:d,endCol:h,endOffset:f})}else this.treeAdapter.setNodeSourceCodeLocation(c,r.location)}}}};var c2o=l2o;const u2o=EN;let d2o=class extends u2o{constructor(e,n){super(e),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const n={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(e){return{_err(n){e._reportError(n)}}}};var klt=d2o;const h2o=klt,f2o=oUn,p2o=EN;let m2o=class extends h2o{constructor(e,n){super(e,n),this.posTracker=p2o.install(e,f2o),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};var g2o=m2o;const v2o=klt,A2o=g2o,y2o=EN;let b2o=class extends v2o{constructor(e,n){super(e,n);const r=y2o.install(e.preprocessor,A2o,n);this.posTracker=r.posTracker}};var x2o=b2o;const E2o=klt,S2o=x2o,w2o=sUn,tDt=EN;let _2o=class extends E2o{constructor(e,n){super(e,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,n){return{_bootstrap(r,a){n._bootstrap.call(this,r,a),tDt.install(this.tokenizer,S2o,e.opts),tDt.install(this.tokenizer,w2o)},_processInputToken(r){e.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,a){e.locBeforeToken=a&&a.beforeToken,e._reportError(r)}}}};var T2o=_2o,El={};const{DOCUMENT_MODE:C2o}=e_;El.createDocument=function(){return{nodeName:"#document",mode:C2o.NO_QUIRKS,childNodes:[]}};El.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};El.createElement=function(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}};El.createCommentNode=function(t){return{nodeName:"#comment",data:t,parentNode:null}};const lUn=function(t){return{nodeName:"#text",value:t,parentNode:null}},cUn=El.appendChild=function(t,e){t.childNodes.push(e),e.parentNode=t},k2o=El.insertBefore=function(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t};El.setTemplateContent=function(t,e){t.content=e};El.getTemplateContent=function(t){return t.content};El.setDocumentType=function(t,e,n,r){let a=null;for(let o=0;o<t.childNodes.length;o++)if(t.childNodes[o].nodeName==="#documentType"){a=t.childNodes[o];break}a?(a.name=e,a.publicId=n,a.systemId=r):cUn(t,{nodeName:"#documentType",name:e,publicId:n,systemId:r})};El.setDocumentMode=function(t,e){t.mode=e};El.getDocumentMode=function(t){return t.mode};El.detachNode=function(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}};El.insertText=function(t,e){if(t.childNodes.length){const n=t.childNodes[t.childNodes.length-1];if(n.nodeName==="#text"){n.value+=e;return}}cUn(t,lUn(e))};El.insertTextBefore=function(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=e:k2o(t,lUn(e),n)};El.adoptAttributes=function(t,e){const n=[];for(let r=0;r<t.attrs.length;r++)n.push(t.attrs[r].name);for(let r=0;r<e.length;r++)n.indexOf(e[r].name)===-1&&t.attrs.push(e[r])};El.getFirstChild=function(t){return t.childNodes[0]};El.getChildNodes=function(t){return t.childNodes};El.getParentNode=function(t){return t.parentNode};El.getAttrList=function(t){return t.attrs};El.getTagName=function(t){return t.tagName};El.getNamespaceURI=function(t){return t.namespaceURI};El.getTextNodeContent=function(t){return t.value};El.getCommentNodeContent=function(t){return t.data};El.getDocumentTypeNodeName=function(t){return t.name};El.getDocumentTypeNodePublicId=function(t){return t.publicId};El.getDocumentTypeNodeSystemId=function(t){return t.systemId};El.isTextNode=function(t){return t.nodeName==="#text"};El.isCommentNode=function(t){return t.nodeName==="#comment"};El.isDocumentTypeNode=function(t){return t.nodeName==="#documentType"};El.isElementNode=function(t){return!!t.tagName};El.setNodeSourceCodeLocation=function(t,e){t.sourceCodeLocation=e};El.getNodeSourceCodeLocation=function(t){return t.sourceCodeLocation};El.updateNodeSourceCodeLocation=function(t,e){t.sourceCodeLocation=Object.assign(t.sourceCodeLocation,e)};var R2o=function(e,n){return n=n||Object.create(null),[e,n].reduce((r,a)=>(Object.keys(a).forEach(o=>{r[o]=a[o]}),r),Object.create(null))},z2e={};const{DOCUMENT_MODE:A7}=e_,uUn="html",M2o="about:legacy-compat",N2o="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",dUn=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],I2o=dUn.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),P2o=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],hUn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],O2o=hUn.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function nDt(t){const e=t.indexOf('"')!==-1?"'":'"';return e+t+e}function rDt(t,e){for(let n=0;n<e.length;n++)if(t.indexOf(e[n])===0)return!0;return!1}z2e.isConforming=function(t){return t.name===uUn&&t.publicId===null&&(t.systemId===null||t.systemId===M2o)};z2e.getDocumentMode=function(t){if(t.name!==uUn)return A7.QUIRKS;const e=t.systemId;if(e&&e.toLowerCase()===N2o)return A7.QUIRKS;let n=t.publicId;if(n!==null){if(n=n.toLowerCase(),P2o.indexOf(n)>-1)return A7.QUIRKS;let r=e===null?I2o:dUn;if(rDt(n,r))return A7.QUIRKS;if(r=e===null?hUn:O2o,rDt(n,r))return A7.LIMITED_QUIRKS}return A7.NO_QUIRKS};z2e.serializeContent=function(t,e,n){let r="!DOCTYPE ";return t&&(r+=t),e?r+=" PUBLIC "+nDt(e):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+nDt(n)),r};var _O={};const w9e=U2e,Rlt=e_,Pa=Rlt.TAG_NAMES,Fm=Rlt.NAMESPACES,vge=Rlt.ATTRS,iDt={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},L2o="definitionurl",B2o="definitionURL",D2o={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},$2o={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Fm.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Fm.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Fm.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Fm.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Fm.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Fm.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Fm.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Fm.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Fm.XML},"xml:space":{prefix:"xml",name:"space",namespace:Fm.XML},xmlns:{prefix:"",name:"xmlns",namespace:Fm.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Fm.XMLNS}},F2o=_O.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},j2o={[Pa.B]:!0,[Pa.BIG]:!0,[Pa.BLOCKQUOTE]:!0,[Pa.BODY]:!0,[Pa.BR]:!0,[Pa.CENTER]:!0,[Pa.CODE]:!0,[Pa.DD]:!0,[Pa.DIV]:!0,[Pa.DL]:!0,[Pa.DT]:!0,[Pa.EM]:!0,[Pa.EMBED]:!0,[Pa.H1]:!0,[Pa.H2]:!0,[Pa.H3]:!0,[Pa.H4]:!0,[Pa.H5]:!0,[Pa.H6]:!0,[Pa.HEAD]:!0,[Pa.HR]:!0,[Pa.I]:!0,[Pa.IMG]:!0,[Pa.LI]:!0,[Pa.LISTING]:!0,[Pa.MENU]:!0,[Pa.META]:!0,[Pa.NOBR]:!0,[Pa.OL]:!0,[Pa.P]:!0,[Pa.PRE]:!0,[Pa.RUBY]:!0,[Pa.S]:!0,[Pa.SMALL]:!0,[Pa.SPAN]:!0,[Pa.STRONG]:!0,[Pa.STRIKE]:!0,[Pa.SUB]:!0,[Pa.SUP]:!0,[Pa.TABLE]:!0,[Pa.TT]:!0,[Pa.U]:!0,[Pa.UL]:!0,[Pa.VAR]:!0};_O.causesExit=function(t){const e=t.tagName;return e===Pa.FONT&&(w9e.getTokenAttr(t,vge.COLOR)!==null||w9e.getTokenAttr(t,vge.SIZE)!==null||w9e.getTokenAttr(t,vge.FACE)!==null)?!0:j2o[e]};_O.adjustTokenMathMLAttrs=function(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===L2o){t.attrs[e].name=B2o;break}};_O.adjustTokenSVGAttrs=function(t){for(let e=0;e<t.attrs.length;e++){const n=D2o[t.attrs[e].name];n&&(t.attrs[e].name=n)}};_O.adjustTokenXMLAttrs=function(t){for(let e=0;e<t.attrs.length;e++){const n=$2o[t.attrs[e].name];n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}};_O.adjustTokenSVGTagName=function(t){const e=F2o[t.tagName];e&&(t.tagName=e)};function H2o(t,e){return e===Fm.MATHML&&(t===Pa.MI||t===Pa.MO||t===Pa.MN||t===Pa.MS||t===Pa.MTEXT)}function U2o(t,e,n){if(e===Fm.MATHML&&t===Pa.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===vge.ENCODING){const a=n[r].value.toLowerCase();return a===iDt.TEXT_HTML||a===iDt.APPLICATION_XML}}return e===Fm.SVG&&(t===Pa.FOREIGN_OBJECT||t===Pa.DESC||t===Pa.TITLE)}_O.isIntegrationPoint=function(t,e,n,r){return!!((!r||r===Fm.HTML)&&U2o(t,e,n)||(!r||r===Fm.MATHML)&&H2o(t,e))};const Ot=U2e,z2o=YTo,aDt=JTo,G2o=c2o,V2o=T2o,oDt=EN,K2o=El,W2o=R2o,sDt=z2e,VT=_O,og=Tlt,Q2o=Xw,M9=e_,Te=M9.TAG_NAMES,Xi=M9.NAMESPACES,fUn=M9.ATTRS,q2o={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:K2o},pUn="hidden",Y2o=8,J2o=3,mUn="INITIAL_MODE",Mlt="BEFORE_HTML_MODE",G2e="BEFORE_HEAD_MODE",qV="IN_HEAD_MODE",gUn="IN_HEAD_NO_SCRIPT_MODE",V2e="AFTER_HEAD_MODE",I2="IN_BODY_MODE",Cye="TEXT_MODE",hv="IN_TABLE_MODE",vUn="IN_TABLE_TEXT_MODE",K2e="IN_CAPTION_MODE",Tse="IN_COLUMN_GROUP_MODE",Dx="IN_TABLE_BODY_MODE",DM="IN_ROW_MODE",W2e="IN_CELL_MODE",Nlt="IN_SELECT_MODE",Ilt="IN_SELECT_IN_TABLE_MODE",kye="IN_TEMPLATE_MODE",Plt="AFTER_BODY_MODE",Q2e="IN_FRAMESET_MODE",AUn="AFTER_FRAMESET_MODE",yUn="AFTER_AFTER_BODY_MODE",bUn="AFTER_AFTER_FRAMESET_MODE",Z2o={[Te.TR]:DM,[Te.TBODY]:Dx,[Te.THEAD]:Dx,[Te.TFOOT]:Dx,[Te.CAPTION]:K2e,[Te.COLGROUP]:Tse,[Te.TABLE]:hv,[Te.BODY]:I2,[Te.FRAMESET]:Q2e},X2o={[Te.CAPTION]:hv,[Te.COLGROUP]:hv,[Te.TBODY]:hv,[Te.TFOOT]:hv,[Te.THEAD]:hv,[Te.COL]:Tse,[Te.TR]:Dx,[Te.TD]:DM,[Te.TH]:DM},lDt={[mUn]:{[Ot.CHARACTER_TOKEN]:uY,[Ot.NULL_CHARACTER_TOKEN]:uY,[Ot.WHITESPACE_CHARACTER_TOKEN]:qs,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:cCo,[Ot.START_TAG_TOKEN]:uY,[Ot.END_TAG_TOKEN]:uY,[Ot.EOF_TOKEN]:uY},[Mlt]:{[Ot.CHARACTER_TOKEN]:Iee,[Ot.NULL_CHARACTER_TOKEN]:Iee,[Ot.WHITESPACE_CHARACTER_TOKEN]:qs,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:uCo,[Ot.END_TAG_TOKEN]:dCo,[Ot.EOF_TOKEN]:Iee},[G2e]:{[Ot.CHARACTER_TOKEN]:Pee,[Ot.NULL_CHARACTER_TOKEN]:Pee,[Ot.WHITESPACE_CHARACTER_TOKEN]:qs,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:Khe,[Ot.START_TAG_TOKEN]:hCo,[Ot.END_TAG_TOKEN]:fCo,[Ot.EOF_TOKEN]:Pee},[qV]:{[Ot.CHARACTER_TOKEN]:Oee,[Ot.NULL_CHARACTER_TOKEN]:Oee,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:Khe,[Ot.START_TAG_TOKEN]:em,[Ot.END_TAG_TOKEN]:N9,[Ot.EOF_TOKEN]:Oee},[gUn]:{[Ot.CHARACTER_TOKEN]:Lee,[Ot.NULL_CHARACTER_TOKEN]:Lee,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:Khe,[Ot.START_TAG_TOKEN]:pCo,[Ot.END_TAG_TOKEN]:mCo,[Ot.EOF_TOKEN]:Lee},[V2e]:{[Ot.CHARACTER_TOKEN]:Bee,[Ot.NULL_CHARACTER_TOKEN]:Bee,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:Khe,[Ot.START_TAG_TOKEN]:gCo,[Ot.END_TAG_TOKEN]:vCo,[Ot.EOF_TOKEN]:Bee},[I2]:{[Ot.CHARACTER_TOKEN]:Whe,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:rL,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:A1,[Ot.END_TAG_TOKEN]:Olt,[Ot.EOF_TOKEN]:Fk},[Cye]:{[Ot.CHARACTER_TOKEN]:LA,[Ot.NULL_CHARACTER_TOKEN]:LA,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:qs,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:qs,[Ot.END_TAG_TOKEN]:QCo,[Ot.EOF_TOKEN]:qCo},[hv]:{[Ot.CHARACTER_TOKEN]:jk,[Ot.NULL_CHARACTER_TOKEN]:jk,[Ot.WHITESPACE_CHARACTER_TOKEN]:jk,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:Llt,[Ot.END_TAG_TOKEN]:Blt,[Ot.EOF_TOKEN]:Fk},[vUn]:{[Ot.CHARACTER_TOKEN]:ako,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:iko,[Ot.COMMENT_TOKEN]:dY,[Ot.DOCTYPE_TOKEN]:dY,[Ot.START_TAG_TOKEN]:dY,[Ot.END_TAG_TOKEN]:dY,[Ot.EOF_TOKEN]:dY},[K2e]:{[Ot.CHARACTER_TOKEN]:Whe,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:rL,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:oko,[Ot.END_TAG_TOKEN]:sko,[Ot.EOF_TOKEN]:Fk},[Tse]:{[Ot.CHARACTER_TOKEN]:Rye,[Ot.NULL_CHARACTER_TOKEN]:Rye,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:lko,[Ot.END_TAG_TOKEN]:cko,[Ot.EOF_TOKEN]:Fk},[Dx]:{[Ot.CHARACTER_TOKEN]:jk,[Ot.NULL_CHARACTER_TOKEN]:jk,[Ot.WHITESPACE_CHARACTER_TOKEN]:jk,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:uko,[Ot.END_TAG_TOKEN]:dko,[Ot.EOF_TOKEN]:Fk},[DM]:{[Ot.CHARACTER_TOKEN]:jk,[Ot.NULL_CHARACTER_TOKEN]:jk,[Ot.WHITESPACE_CHARACTER_TOKEN]:jk,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:hko,[Ot.END_TAG_TOKEN]:fko,[Ot.EOF_TOKEN]:Fk},[W2e]:{[Ot.CHARACTER_TOKEN]:Whe,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:rL,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:pko,[Ot.END_TAG_TOKEN]:mko,[Ot.EOF_TOKEN]:Fk},[Nlt]:{[Ot.CHARACTER_TOKEN]:LA,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:xUn,[Ot.END_TAG_TOKEN]:EUn,[Ot.EOF_TOKEN]:Fk},[Ilt]:{[Ot.CHARACTER_TOKEN]:LA,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:gko,[Ot.END_TAG_TOKEN]:vko,[Ot.EOF_TOKEN]:Fk},[kye]:{[Ot.CHARACTER_TOKEN]:Whe,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:rL,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:Ako,[Ot.END_TAG_TOKEN]:yko,[Ot.EOF_TOKEN]:SUn},[Plt]:{[Ot.CHARACTER_TOKEN]:Mye,[Ot.NULL_CHARACTER_TOKEN]:Mye,[Ot.WHITESPACE_CHARACTER_TOKEN]:rL,[Ot.COMMENT_TOKEN]:lCo,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:bko,[Ot.END_TAG_TOKEN]:xko,[Ot.EOF_TOKEN]:cY},[Q2e]:{[Ot.CHARACTER_TOKEN]:qs,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:Eko,[Ot.END_TAG_TOKEN]:Sko,[Ot.EOF_TOKEN]:cY},[AUn]:{[Ot.CHARACTER_TOKEN]:qs,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:LA,[Ot.COMMENT_TOKEN]:ep,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:wko,[Ot.END_TAG_TOKEN]:_ko,[Ot.EOF_TOKEN]:cY},[yUn]:{[Ot.CHARACTER_TOKEN]:Age,[Ot.NULL_CHARACTER_TOKEN]:Age,[Ot.WHITESPACE_CHARACTER_TOKEN]:rL,[Ot.COMMENT_TOKEN]:cDt,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:Tko,[Ot.END_TAG_TOKEN]:Age,[Ot.EOF_TOKEN]:cY},[bUn]:{[Ot.CHARACTER_TOKEN]:qs,[Ot.NULL_CHARACTER_TOKEN]:qs,[Ot.WHITESPACE_CHARACTER_TOKEN]:rL,[Ot.COMMENT_TOKEN]:cDt,[Ot.DOCTYPE_TOKEN]:qs,[Ot.START_TAG_TOKEN]:Cko,[Ot.END_TAG_TOKEN]:qs,[Ot.EOF_TOKEN]:cY}};class eCo{constructor(e){this.options=W2o(q2o,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&oDt.install(this,G2o),this.options.onParseError&&oDt.install(this,V2o,{onParseError:this.options.onParseError})}parse(e){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),n}parseFragment(e,n){n||(n=this.treeAdapter.createElement(Te.TEMPLATE,Xi.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Xi.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===Te.TEMPLATE&&this._pushTmplInsertionMode(kye),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const a=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(a,o),o}_bootstrap(e,n){this.tokenizer=new Ot(this.options),this.stopped=!1,this.insertionMode=mUn,this.originalInsertionMode="",this.document=e,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new z2o(this.document,this.treeAdapter),this.activeFormattingElements=new aDt(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===Ot.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===Ot.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]===`
`)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==Xi.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,n){this._insertElement(e,Xi.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Cye}switchToPlaintextParsing(){this.insertionMode=Cye,this.originalInsertionMode=I2,this.tokenizer.state=Ot.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Te.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Xi.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===Te.TITLE||e===Te.TEXTAREA?this.tokenizer.state=Ot.MODE.RCDATA:e===Te.STYLE||e===Te.XMP||e===Te.IFRAME||e===Te.NOEMBED||e===Te.NOFRAMES||e===Te.NOSCRIPT?this.tokenizer.state=Ot.MODE.RAWTEXT:e===Te.SCRIPT?this.tokenizer.state=Ot.MODE.SCRIPT_DATA:e===Te.PLAINTEXT&&(this.tokenizer.state=Ot.MODE.PLAINTEXT)}}_setDocumentType(e){const n=e.name||"",r=e.publicId||"",a=e.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,a)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,e)}}_appendElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r)}_insertElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const n=this.treeAdapter.createElement(e,Xi.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(e){const n=this.treeAdapter.createElement(e.tagName,Xi.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Te.HTML,Xi.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,n){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,e.chars)}}_adoptNodes(e,n){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(e){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===Xi.HTML||this.treeAdapter.getTagName(n)===Te.ANNOTATION_XML&&r===Xi.MATHML&&e.type===Ot.START_TAG_TOKEN&&e.tagName===Te.SVG)return!1;const a=e.type===Ot.CHARACTER_TOKEN||e.type===Ot.NULL_CHARACTER_TOKEN||e.type===Ot.WHITESPACE_CHARACTER_TOKEN;return(e.type===Ot.START_TAG_TOKEN&&e.tagName!==Te.MGLYPH&&e.tagName!==Te.MALIGNMARK||a)&&this._isIntegrationPoint(n,Xi.MATHML)||(e.type===Ot.START_TAG_TOKEN||a)&&this._isIntegrationPoint(n,Xi.HTML)?!1:e.type!==Ot.EOF_TOKEN}_processToken(e){lDt[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){lDt[I2][e.type](this,e)}_processTokenInForeignContent(e){e.type===Ot.CHARACTER_TOKEN?Rko(this,e):e.type===Ot.NULL_CHARACTER_TOKEN?kko(this,e):e.type===Ot.WHITESPACE_CHARACTER_TOKEN?LA(this,e):e.type===Ot.COMMENT_TOKEN?ep(this,e):e.type===Ot.START_TAG_TOKEN?Mko(this,e):e.type===Ot.END_TAG_TOKEN&&Nko(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===Ot.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(og.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,n){const r=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return VT.isIntegrationPoint(r,a,o,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let n=e,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===aDt.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let a=n;a<e;a++)r=this.activeFormattingElements.entries[a],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=DM}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Te.P),this.openElements.popUntilTagNamePopped(Te.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,n=!1;e>=0;e--){let r=this.openElements.items[e];e===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const a=this.treeAdapter.getTagName(r),o=Z2o[a];if(o){this.insertionMode=o;break}else if(!n&&(a===Te.TD||a===Te.TH)){this.insertionMode=W2e;break}else if(!n&&a===Te.HEAD){this.insertionMode=qV;break}else if(a===Te.SELECT){this._resetInsertionModeForSelect(e);break}else if(a===Te.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(a===Te.HTML){this.insertionMode=this.headElement?V2e:G2e;break}else if(n){this.insertionMode=I2;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let n=e-1;n>0;n--){const r=this.openElements.items[n],a=this.treeAdapter.getTagName(r);if(a===Te.TEMPLATE)break;if(a===Te.TABLE){this.insertionMode=Ilt;return}}this.insertionMode=Nlt}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const n=this.treeAdapter.getTagName(e);return n===Te.TABLE||n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD||n===Te.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],a=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(a===Te.TEMPLATE&&o===Xi.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}else if(a===Te.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[n-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,e,n.beforeElement):this.treeAdapter.appendChild(n.parent,e)}_fosterParentText(e){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,e,n.beforeElement):this.treeAdapter.insertText(n.parent,e)}_isSpecialElement(e){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return M9.SPECIAL_ELEMENTS[r][n]}}var tCo=eCo;function nCo(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagName)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):NS(t,e),n}function rCo(t,e){let n=null;for(let r=t.openElements.stackTop;r>=0;r--){const a=t.openElements.items[r];if(a===e.element)break;t._isSpecialElement(a)&&(n=a)}return n||(t.openElements.popUntilElementPopped(e.element),t.activeFormattingElements.removeEntry(e)),n}function iCo(t,e,n){let r=e,a=t.openElements.getCommonAncestor(e);for(let o=0,s=a;s!==n;o++,s=a){a=t.openElements.getCommonAncestor(s);const l=t.activeFormattingElements.getElementEntry(s),c=l&&o>=J2o;!l||c?(c&&t.activeFormattingElements.removeEntry(l),t.openElements.remove(s)):(s=aCo(t,l),r===e&&(t.activeFormattingElements.bookmark=l),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(s,r),r=s)}return r}function aCo(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function oCo(t,e,n){if(t._isElementCausesFosterParenting(e))t._fosterParentElement(n);else{const r=t.treeAdapter.getTagName(e),a=t.treeAdapter.getNamespaceURI(e);r===Te.TEMPLATE&&a===Xi.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function sCo(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),a=n.token,o=t.treeAdapter.createElement(a.tagName,r,a.attrs);t._adoptNodes(e,o),t.treeAdapter.appendChild(e,o),t.activeFormattingElements.insertElementAfterBookmark(o,n.token),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,o)}function m3(t,e){let n;for(let r=0;r<Y2o&&(n=nCo(t,e),!!n);r++){const a=rCo(t,n);if(!a)break;t.activeFormattingElements.bookmark=n;const o=iCo(t,a,n.element),s=t.openElements.getCommonAncestor(n.element);t.treeAdapter.detachNode(o),oCo(t,s,o),sCo(t,a,n)}}function qs(){}function Khe(t){t._err(og.misplacedDoctype)}function ep(t,e){t._appendCommentNode(e,t.openElements.currentTmplContent||t.openElements.current)}function lCo(t,e){t._appendCommentNode(e,t.openElements.items[0])}function cDt(t,e){t._appendCommentNode(e,t.document)}function LA(t,e){t._insertCharacters(e)}function cY(t){t.stopped=!0}function cCo(t,e){t._setDocumentType(e);const n=e.forceQuirks?M9.DOCUMENT_MODE.QUIRKS:sDt.getDocumentMode(e);sDt.isConforming(e)||t._err(og.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=Mlt}function uY(t,e){t._err(og.missingDoctype,{beforeToken:!0}),t.treeAdapter.setDocumentMode(t.document,M9.DOCUMENT_MODE.QUIRKS),t.insertionMode=Mlt,t._processToken(e)}function uCo(t,e){e.tagName===Te.HTML?(t._insertElement(e,Xi.HTML),t.insertionMode=G2e):Iee(t,e)}function dCo(t,e){const n=e.tagName;(n===Te.HTML||n===Te.HEAD||n===Te.BODY||n===Te.BR)&&Iee(t,e)}function Iee(t,e){t._insertFakeRootElement(),t.insertionMode=G2e,t._processToken(e)}function hCo(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.HEAD?(t._insertElement(e,Xi.HTML),t.headElement=t.openElements.current,t.insertionMode=qV):Pee(t,e)}function fCo(t,e){const n=e.tagName;n===Te.HEAD||n===Te.BODY||n===Te.HTML||n===Te.BR?Pee(t,e):t._err(og.endTagWithoutMatchingOpenElement)}function Pee(t,e){t._insertFakeElement(Te.HEAD),t.headElement=t.openElements.current,t.insertionMode=qV,t._processToken(e)}function em(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.BASE||n===Te.BASEFONT||n===Te.BGSOUND||n===Te.LINK||n===Te.META?(t._appendElement(e,Xi.HTML),e.ackSelfClosing=!0):n===Te.TITLE?t._switchToTextParsing(e,Ot.MODE.RCDATA):n===Te.NOSCRIPT?t.options.scriptingEnabled?t._switchToTextParsing(e,Ot.MODE.RAWTEXT):(t._insertElement(e,Xi.HTML),t.insertionMode=gUn):n===Te.NOFRAMES||n===Te.STYLE?t._switchToTextParsing(e,Ot.MODE.RAWTEXT):n===Te.SCRIPT?t._switchToTextParsing(e,Ot.MODE.SCRIPT_DATA):n===Te.TEMPLATE?(t._insertTemplate(e,Xi.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=kye,t._pushTmplInsertionMode(kye)):n===Te.HEAD?t._err(og.misplacedStartTagForHeadElement):Oee(t,e)}function N9(t,e){const n=e.tagName;n===Te.HEAD?(t.openElements.pop(),t.insertionMode=V2e):n===Te.BODY||n===Te.BR||n===Te.HTML?Oee(t,e):n===Te.TEMPLATE&&t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagName!==Te.TEMPLATE&&t._err(og.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(Te.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t._popTmplInsertionMode(),t._resetInsertionMode()):t._err(og.endTagWithoutMatchingOpenElement)}function Oee(t,e){t.openElements.pop(),t.insertionMode=V2e,t._processToken(e)}function pCo(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.BASEFONT||n===Te.BGSOUND||n===Te.HEAD||n===Te.LINK||n===Te.META||n===Te.NOFRAMES||n===Te.STYLE?em(t,e):n===Te.NOSCRIPT?t._err(og.nestedNoscriptInHead):Lee(t,e)}function mCo(t,e){const n=e.tagName;n===Te.NOSCRIPT?(t.openElements.pop(),t.insertionMode=qV):n===Te.BR?Lee(t,e):t._err(og.endTagWithoutMatchingOpenElement)}function Lee(t,e){const n=e.type===Ot.EOF_TOKEN?og.openElementsLeftAfterEof:og.disallowedContentInNoscriptInHead;t._err(n),t.openElements.pop(),t.insertionMode=qV,t._processToken(e)}function gCo(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.BODY?(t._insertElement(e,Xi.HTML),t.framesetOk=!1,t.insertionMode=I2):n===Te.FRAMESET?(t._insertElement(e,Xi.HTML),t.insertionMode=Q2e):n===Te.BASE||n===Te.BASEFONT||n===Te.BGSOUND||n===Te.LINK||n===Te.META||n===Te.NOFRAMES||n===Te.SCRIPT||n===Te.STYLE||n===Te.TEMPLATE||n===Te.TITLE?(t._err(og.abandonedHeadElementChild),t.openElements.push(t.headElement),em(t,e),t.openElements.remove(t.headElement)):n===Te.HEAD?t._err(og.misplacedStartTagForHeadElement):Bee(t,e)}function vCo(t,e){const n=e.tagName;n===Te.BODY||n===Te.HTML||n===Te.BR?Bee(t,e):n===Te.TEMPLATE?N9(t,e):t._err(og.endTagWithoutMatchingOpenElement)}function Bee(t,e){t._insertFakeElement(Te.BODY),t.insertionMode=I2,t._processToken(e)}function rL(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function Whe(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function ACo(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function yCo(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}function bCo(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,Xi.HTML),t.insertionMode=Q2e)}function $k(t,e){t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._insertElement(e,Xi.HTML)}function xCo(t,e){t.openElements.hasInButtonScope(Te.P)&&t._closePElement();const n=t.openElements.currentTagName;(n===Te.H1||n===Te.H2||n===Te.H3||n===Te.H4||n===Te.H5||n===Te.H6)&&t.openElements.pop(),t._insertElement(e,Xi.HTML)}function uDt(t,e){t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._insertElement(e,Xi.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function ECo(t,e){const n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._insertElement(e,Xi.HTML),n||(t.formElement=t.openElements.current))}function SCo(t,e){t.framesetOk=!1;const n=e.tagName;for(let r=t.openElements.stackTop;r>=0;r--){const a=t.openElements.items[r],o=t.treeAdapter.getTagName(a);let s=null;if(n===Te.LI&&o===Te.LI?s=Te.LI:(n===Te.DD||n===Te.DT)&&(o===Te.DD||o===Te.DT)&&(s=o),s){t.openElements.generateImpliedEndTagsWithExclusion(s),t.openElements.popUntilTagNamePopped(s);break}if(o!==Te.ADDRESS&&o!==Te.DIV&&o!==Te.P&&t._isSpecialElement(a))break}t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._insertElement(e,Xi.HTML)}function wCo(t,e){t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._insertElement(e,Xi.HTML),t.tokenizer.state=Ot.MODE.PLAINTEXT}function _Co(t,e){t.openElements.hasInScope(Te.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Te.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,Xi.HTML),t.framesetOk=!1}function TCo(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(Te.A);n&&(m3(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,Xi.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function y7(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,Xi.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function CCo(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(Te.NOBR)&&(m3(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,Xi.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function dDt(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,Xi.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function kCo(t,e){t.treeAdapter.getDocumentMode(t.document)!==M9.DOCUMENT_MODE.QUIRKS&&t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._insertElement(e,Xi.HTML),t.framesetOk=!1,t.insertionMode=hv}function xF(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,Xi.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function RCo(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,Xi.HTML);const n=Ot.getTokenAttr(e,fUn.TYPE);(!n||n.toLowerCase()!==pUn)&&(t.framesetOk=!1),e.ackSelfClosing=!0}function hDt(t,e){t._appendElement(e,Xi.HTML),e.ackSelfClosing=!0}function MCo(t,e){t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._appendElement(e,Xi.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function NCo(t,e){e.tagName=Te.IMG,xF(t,e)}function ICo(t,e){t._insertElement(e,Xi.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Ot.MODE.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=Cye}function PCo(t,e){t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Ot.MODE.RAWTEXT)}function OCo(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Ot.MODE.RAWTEXT)}function fDt(t,e){t._switchToTextParsing(e,Ot.MODE.RAWTEXT)}function LCo(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,Xi.HTML),t.framesetOk=!1,t.insertionMode===hv||t.insertionMode===K2e||t.insertionMode===Dx||t.insertionMode===DM||t.insertionMode===W2e?t.insertionMode=Ilt:t.insertionMode=Nlt}function pDt(t,e){t.openElements.currentTagName===Te.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,Xi.HTML)}function mDt(t,e){t.openElements.hasInScope(Te.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,Xi.HTML)}function BCo(t,e){t.openElements.hasInScope(Te.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(Te.RTC),t._insertElement(e,Xi.HTML)}function DCo(t,e){t.openElements.hasInButtonScope(Te.P)&&t._closePElement(),t._insertElement(e,Xi.HTML)}function $Co(t,e){t._reconstructActiveFormattingElements(),VT.adjustTokenMathMLAttrs(e),VT.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,Xi.MATHML):t._insertElement(e,Xi.MATHML),e.ackSelfClosing=!0}function FCo(t,e){t._reconstructActiveFormattingElements(),VT.adjustTokenSVGAttrs(e),VT.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,Xi.SVG):t._insertElement(e,Xi.SVG),e.ackSelfClosing=!0}function jb(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,Xi.HTML)}function A1(t,e){const n=e.tagName;switch(n.length){case 1:n===Te.I||n===Te.S||n===Te.B||n===Te.U?y7(t,e):n===Te.P?$k(t,e):n===Te.A?TCo(t,e):jb(t,e);break;case 2:n===Te.DL||n===Te.OL||n===Te.UL?$k(t,e):n===Te.H1||n===Te.H2||n===Te.H3||n===Te.H4||n===Te.H5||n===Te.H6?xCo(t,e):n===Te.LI||n===Te.DD||n===Te.DT?SCo(t,e):n===Te.EM||n===Te.TT?y7(t,e):n===Te.BR?xF(t,e):n===Te.HR?MCo(t,e):n===Te.RB?mDt(t,e):n===Te.RT||n===Te.RP?BCo(t,e):n!==Te.TH&&n!==Te.TD&&n!==Te.TR&&jb(t,e);break;case 3:n===Te.DIV||n===Te.DIR||n===Te.NAV?$k(t,e):n===Te.PRE?uDt(t,e):n===Te.BIG?y7(t,e):n===Te.IMG||n===Te.WBR?xF(t,e):n===Te.XMP?PCo(t,e):n===Te.SVG?FCo(t,e):n===Te.RTC?mDt(t,e):n!==Te.COL&&jb(t,e);break;case 4:n===Te.HTML?ACo(t,e):n===Te.BASE||n===Te.LINK||n===Te.META?em(t,e):n===Te.BODY?yCo(t,e):n===Te.MAIN||n===Te.MENU?$k(t,e):n===Te.FORM?ECo(t,e):n===Te.CODE||n===Te.FONT?y7(t,e):n===Te.NOBR?CCo(t,e):n===Te.AREA?xF(t,e):n===Te.MATH?$Co(t,e):n===Te.MENU?DCo(t,e):n!==Te.HEAD&&jb(t,e);break;case 5:n===Te.STYLE||n===Te.TITLE?em(t,e):n===Te.ASIDE?$k(t,e):n===Te.SMALL?y7(t,e):n===Te.TABLE?kCo(t,e):n===Te.EMBED?xF(t,e):n===Te.INPUT?RCo(t,e):n===Te.PARAM||n===Te.TRACK?hDt(t,e):n===Te.IMAGE?NCo(t,e):n!==Te.FRAME&&n!==Te.TBODY&&n!==Te.TFOOT&&n!==Te.THEAD&&jb(t,e);break;case 6:n===Te.SCRIPT?em(t,e):n===Te.CENTER||n===Te.FIGURE||n===Te.FOOTER||n===Te.HEADER||n===Te.HGROUP||n===Te.DIALOG?$k(t,e):n===Te.BUTTON?_Co(t,e):n===Te.STRIKE||n===Te.STRONG?y7(t,e):n===Te.APPLET||n===Te.OBJECT?dDt(t,e):n===Te.KEYGEN?xF(t,e):n===Te.SOURCE?hDt(t,e):n===Te.IFRAME?OCo(t,e):n===Te.SELECT?LCo(t,e):n===Te.OPTION?pDt(t,e):jb(t,e);break;case 7:n===Te.BGSOUND?em(t,e):n===Te.DETAILS||n===Te.ADDRESS||n===Te.ARTICLE||n===Te.SECTION||n===Te.SUMMARY?$k(t,e):n===Te.LISTING?uDt(t,e):n===Te.MARQUEE?dDt(t,e):n===Te.NOEMBED?fDt(t,e):n!==Te.CAPTION&&jb(t,e);break;case 8:n===Te.BASEFONT?em(t,e):n===Te.FRAMESET?bCo(t,e):n===Te.FIELDSET?$k(t,e):n===Te.TEXTAREA?ICo(t,e):n===Te.TEMPLATE?em(t,e):n===Te.NOSCRIPT?t.options.scriptingEnabled?fDt(t,e):jb(t,e):n===Te.OPTGROUP?pDt(t,e):n!==Te.COLGROUP&&jb(t,e);break;case 9:n===Te.PLAINTEXT?wCo(t,e):jb(t,e);break;case 10:n===Te.BLOCKQUOTE||n===Te.FIGCAPTION?$k(t,e):jb(t,e);break;default:jb(t,e)}}function jCo(t){t.openElements.hasInScope(Te.BODY)&&(t.insertionMode=Plt)}function HCo(t,e){t.openElements.hasInScope(Te.BODY)&&(t.insertionMode=Plt,t._processToken(e))}function kI(t,e){const n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function UCo(t){const e=t.openElements.tmplCount>0,n=t.formElement;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(Te.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(Te.FORM):t.openElements.remove(n))}function zCo(t){t.openElements.hasInButtonScope(Te.P)||t._insertFakeElement(Te.P),t._closePElement()}function GCo(t){t.openElements.hasInListItemScope(Te.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(Te.LI),t.openElements.popUntilTagNamePopped(Te.LI))}function VCo(t,e){const n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function KCo(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function gDt(t,e){const n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function WCo(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(Te.BR),t.openElements.pop(),t.framesetOk=!1}function NS(t,e){const n=e.tagName;for(let r=t.openElements.stackTop;r>0;r--){const a=t.openElements.items[r];if(t.treeAdapter.getTagName(a)===n){t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilElementPopped(a);break}if(t._isSpecialElement(a))break}}function Olt(t,e){const n=e.tagName;switch(n.length){case 1:n===Te.A||n===Te.B||n===Te.I||n===Te.S||n===Te.U?m3(t,e):n===Te.P?zCo(t):NS(t,e);break;case 2:n===Te.DL||n===Te.UL||n===Te.OL?kI(t,e):n===Te.LI?GCo(t):n===Te.DD||n===Te.DT?VCo(t,e):n===Te.H1||n===Te.H2||n===Te.H3||n===Te.H4||n===Te.H5||n===Te.H6?KCo(t):n===Te.BR?WCo(t):n===Te.EM||n===Te.TT?m3(t,e):NS(t,e);break;case 3:n===Te.BIG?m3(t,e):n===Te.DIR||n===Te.DIV||n===Te.NAV||n===Te.PRE?kI(t,e):NS(t,e);break;case 4:n===Te.BODY?jCo(t):n===Te.HTML?HCo(t,e):n===Te.FORM?UCo(t):n===Te.CODE||n===Te.FONT||n===Te.NOBR?m3(t,e):n===Te.MAIN||n===Te.MENU?kI(t,e):NS(t,e);break;case 5:n===Te.ASIDE?kI(t,e):n===Te.SMALL?m3(t,e):NS(t,e);break;case 6:n===Te.CENTER||n===Te.FIGURE||n===Te.FOOTER||n===Te.HEADER||n===Te.HGROUP||n===Te.DIALOG?kI(t,e):n===Te.APPLET||n===Te.OBJECT?gDt(t,e):n===Te.STRIKE||n===Te.STRONG?m3(t,e):NS(t,e);break;case 7:n===Te.ADDRESS||n===Te.ARTICLE||n===Te.DETAILS||n===Te.SECTION||n===Te.SUMMARY||n===Te.LISTING?kI(t,e):n===Te.MARQUEE?gDt(t,e):NS(t,e);break;case 8:n===Te.FIELDSET?kI(t,e):n===Te.TEMPLATE?N9(t,e):NS(t,e);break;case 10:n===Te.BLOCKQUOTE||n===Te.FIGCAPTION?kI(t,e):NS(t,e);break;default:NS(t,e)}}function Fk(t,e){t.tmplInsertionModeStackTop>-1?SUn(t,e):t.stopped=!0}function QCo(t,e){e.tagName===Te.SCRIPT&&(t.pendingScript=t.openElements.current),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function qCo(t,e){t._err(og.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t._processToken(e)}function jk(t,e){const n=t.openElements.currentTagName;n===Te.TABLE||n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD||n===Te.TR?(t.pendingCharacterTokens=[],t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=vUn,t._processToken(e)):nx(t,e)}function YCo(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,Xi.HTML),t.insertionMode=K2e}function JCo(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,Xi.HTML),t.insertionMode=Tse}function ZCo(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(Te.COLGROUP),t.insertionMode=Tse,t._processToken(e)}function XCo(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,Xi.HTML),t.insertionMode=Dx}function eko(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(Te.TBODY),t.insertionMode=Dx,t._processToken(e)}function tko(t,e){t.openElements.hasInTableScope(Te.TABLE)&&(t.openElements.popUntilTagNamePopped(Te.TABLE),t._resetInsertionMode(),t._processToken(e))}function nko(t,e){const n=Ot.getTokenAttr(e,fUn.TYPE);n&&n.toLowerCase()===pUn?t._appendElement(e,Xi.HTML):nx(t,e),e.ackSelfClosing=!0}function rko(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,Xi.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function Llt(t,e){const n=e.tagName;switch(n.length){case 2:n===Te.TD||n===Te.TH||n===Te.TR?eko(t,e):nx(t,e);break;case 3:n===Te.COL?ZCo(t,e):nx(t,e);break;case 4:n===Te.FORM?rko(t,e):nx(t,e);break;case 5:n===Te.TABLE?tko(t,e):n===Te.STYLE?em(t,e):n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD?XCo(t,e):n===Te.INPUT?nko(t,e):nx(t,e);break;case 6:n===Te.SCRIPT?em(t,e):nx(t,e);break;case 7:n===Te.CAPTION?YCo(t,e):nx(t,e);break;case 8:n===Te.COLGROUP?JCo(t,e):n===Te.TEMPLATE?em(t,e):nx(t,e);break;default:nx(t,e)}}function Blt(t,e){const n=e.tagName;n===Te.TABLE?t.openElements.hasInTableScope(Te.TABLE)&&(t.openElements.popUntilTagNamePopped(Te.TABLE),t._resetInsertionMode()):n===Te.TEMPLATE?N9(t,e):n!==Te.BODY&&n!==Te.CAPTION&&n!==Te.COL&&n!==Te.COLGROUP&&n!==Te.HTML&&n!==Te.TBODY&&n!==Te.TD&&n!==Te.TFOOT&&n!==Te.TH&&n!==Te.THEAD&&n!==Te.TR&&nx(t,e)}function nx(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,t._processTokenInBodyMode(e),t.fosterParentingEnabled=n}function iko(t,e){t.pendingCharacterTokens.push(e)}function ako(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function dY(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)nx(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}function oko(t,e){const n=e.tagName;n===Te.CAPTION||n===Te.COL||n===Te.COLGROUP||n===Te.TBODY||n===Te.TD||n===Te.TFOOT||n===Te.TH||n===Te.THEAD||n===Te.TR?t.openElements.hasInTableScope(Te.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Te.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=hv,t._processToken(e)):A1(t,e)}function sko(t,e){const n=e.tagName;n===Te.CAPTION||n===Te.TABLE?t.openElements.hasInTableScope(Te.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Te.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=hv,n===Te.TABLE&&t._processToken(e)):n!==Te.BODY&&n!==Te.COL&&n!==Te.COLGROUP&&n!==Te.HTML&&n!==Te.TBODY&&n!==Te.TD&&n!==Te.TFOOT&&n!==Te.TH&&n!==Te.THEAD&&n!==Te.TR&&Olt(t,e)}function lko(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.COL?(t._appendElement(e,Xi.HTML),e.ackSelfClosing=!0):n===Te.TEMPLATE?em(t,e):Rye(t,e)}function cko(t,e){const n=e.tagName;n===Te.COLGROUP?t.openElements.currentTagName===Te.COLGROUP&&(t.openElements.pop(),t.insertionMode=hv):n===Te.TEMPLATE?N9(t,e):n!==Te.COL&&Rye(t,e)}function Rye(t,e){t.openElements.currentTagName===Te.COLGROUP&&(t.openElements.pop(),t.insertionMode=hv,t._processToken(e))}function uko(t,e){const n=e.tagName;n===Te.TR?(t.openElements.clearBackToTableBodyContext(),t._insertElement(e,Xi.HTML),t.insertionMode=DM):n===Te.TH||n===Te.TD?(t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(Te.TR),t.insertionMode=DM,t._processToken(e)):n===Te.CAPTION||n===Te.COL||n===Te.COLGROUP||n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD?t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=hv,t._processToken(e)):Llt(t,e)}function dko(t,e){const n=e.tagName;n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD?t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=hv):n===Te.TABLE?t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=hv,t._processToken(e)):(n!==Te.BODY&&n!==Te.CAPTION&&n!==Te.COL&&n!==Te.COLGROUP||n!==Te.HTML&&n!==Te.TD&&n!==Te.TH&&n!==Te.TR)&&Blt(t,e)}function hko(t,e){const n=e.tagName;n===Te.TH||n===Te.TD?(t.openElements.clearBackToTableRowContext(),t._insertElement(e,Xi.HTML),t.insertionMode=W2e,t.activeFormattingElements.insertMarker()):n===Te.CAPTION||n===Te.COL||n===Te.COLGROUP||n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD||n===Te.TR?t.openElements.hasInTableScope(Te.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Dx,t._processToken(e)):Llt(t,e)}function fko(t,e){const n=e.tagName;n===Te.TR?t.openElements.hasInTableScope(Te.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Dx):n===Te.TABLE?t.openElements.hasInTableScope(Te.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Dx,t._processToken(e)):n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD?(t.openElements.hasInTableScope(n)||t.openElements.hasInTableScope(Te.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Dx,t._processToken(e)):(n!==Te.BODY&&n!==Te.CAPTION&&n!==Te.COL&&n!==Te.COLGROUP||n!==Te.HTML&&n!==Te.TD&&n!==Te.TH)&&Blt(t,e)}function pko(t,e){const n=e.tagName;n===Te.CAPTION||n===Te.COL||n===Te.COLGROUP||n===Te.TBODY||n===Te.TD||n===Te.TFOOT||n===Te.TH||n===Te.THEAD||n===Te.TR?(t.openElements.hasInTableScope(Te.TD)||t.openElements.hasInTableScope(Te.TH))&&(t._closeTableCell(),t._processToken(e)):A1(t,e)}function mko(t,e){const n=e.tagName;n===Te.TD||n===Te.TH?t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=DM):n===Te.TABLE||n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD||n===Te.TR?t.openElements.hasInTableScope(n)&&(t._closeTableCell(),t._processToken(e)):n!==Te.BODY&&n!==Te.CAPTION&&n!==Te.COL&&n!==Te.COLGROUP&&n!==Te.HTML&&Olt(t,e)}function xUn(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.OPTION?(t.openElements.currentTagName===Te.OPTION&&t.openElements.pop(),t._insertElement(e,Xi.HTML)):n===Te.OPTGROUP?(t.openElements.currentTagName===Te.OPTION&&t.openElements.pop(),t.openElements.currentTagName===Te.OPTGROUP&&t.openElements.pop(),t._insertElement(e,Xi.HTML)):n===Te.INPUT||n===Te.KEYGEN||n===Te.TEXTAREA||n===Te.SELECT?t.openElements.hasInSelectScope(Te.SELECT)&&(t.openElements.popUntilTagNamePopped(Te.SELECT),t._resetInsertionMode(),n!==Te.SELECT&&t._processToken(e)):(n===Te.SCRIPT||n===Te.TEMPLATE)&&em(t,e)}function EUn(t,e){const n=e.tagName;if(n===Te.OPTGROUP){const r=t.openElements.items[t.openElements.stackTop-1],a=r&&t.treeAdapter.getTagName(r);t.openElements.currentTagName===Te.OPTION&&a===Te.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagName===Te.OPTGROUP&&t.openElements.pop()}else n===Te.OPTION?t.openElements.currentTagName===Te.OPTION&&t.openElements.pop():n===Te.SELECT&&t.openElements.hasInSelectScope(Te.SELECT)?(t.openElements.popUntilTagNamePopped(Te.SELECT),t._resetInsertionMode()):n===Te.TEMPLATE&&N9(t,e)}function gko(t,e){const n=e.tagName;n===Te.CAPTION||n===Te.TABLE||n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD||n===Te.TR||n===Te.TD||n===Te.TH?(t.openElements.popUntilTagNamePopped(Te.SELECT),t._resetInsertionMode(),t._processToken(e)):xUn(t,e)}function vko(t,e){const n=e.tagName;n===Te.CAPTION||n===Te.TABLE||n===Te.TBODY||n===Te.TFOOT||n===Te.THEAD||n===Te.TR||n===Te.TD||n===Te.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(Te.SELECT),t._resetInsertionMode(),t._processToken(e)):EUn(t,e)}function Ako(t,e){const n=e.tagName;if(n===Te.BASE||n===Te.BASEFONT||n===Te.BGSOUND||n===Te.LINK||n===Te.META||n===Te.NOFRAMES||n===Te.SCRIPT||n===Te.STYLE||n===Te.TEMPLATE||n===Te.TITLE)em(t,e);else{const r=X2o[n]||I2;t._popTmplInsertionMode(),t._pushTmplInsertionMode(r),t.insertionMode=r,t._processToken(e)}}function yko(t,e){e.tagName===Te.TEMPLATE&&N9(t,e)}function SUn(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(Te.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t._popTmplInsertionMode(),t._resetInsertionMode(),t._processToken(e)):t.stopped=!0}function bko(t,e){e.tagName===Te.HTML?A1(t,e):Mye(t,e)}function xko(t,e){e.tagName===Te.HTML?t.fragmentContext||(t.insertionMode=yUn):Mye(t,e)}function Mye(t,e){t.insertionMode=I2,t._processToken(e)}function Eko(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.FRAMESET?t._insertElement(e,Xi.HTML):n===Te.FRAME?(t._appendElement(e,Xi.HTML),e.ackSelfClosing=!0):n===Te.NOFRAMES&&em(t,e)}function Sko(t,e){e.tagName===Te.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagName!==Te.FRAMESET&&(t.insertionMode=AUn))}function wko(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.NOFRAMES&&em(t,e)}function _ko(t,e){e.tagName===Te.HTML&&(t.insertionMode=bUn)}function Tko(t,e){e.tagName===Te.HTML?A1(t,e):Age(t,e)}function Age(t,e){t.insertionMode=I2,t._processToken(e)}function Cko(t,e){const n=e.tagName;n===Te.HTML?A1(t,e):n===Te.NOFRAMES&&em(t,e)}function kko(t,e){e.chars=Q2o.REPLACEMENT_CHARACTER,t._insertCharacters(e)}function Rko(t,e){t._insertCharacters(e),t.framesetOk=!1}function Mko(t,e){if(VT.causesExit(e)&&!t.fragmentContext){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==Xi.HTML&&!t._isIntegrationPoint(t.openElements.current);)t.openElements.pop();t._processToken(e)}else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===Xi.MATHML?VT.adjustTokenMathMLAttrs(e):r===Xi.SVG&&(VT.adjustTokenSVGTagName(e),VT.adjustTokenSVGAttrs(e)),VT.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}function Nko(t,e){for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===Xi.HTML){t._processToken(e);break}if(t.treeAdapter.getTagName(r).toLowerCase()===e.tagName){t.openElements.popUntilElementPopped(r);break}}}const Iko=Li(tCo),wUn=_Un("start"),Pko=_Un("end");function _Un(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const Oko=function(t,e,n,r){typeof e=="function"&&typeof n!="function"&&(r=n,n=e,e=null),R2e(t,e,a,r);function a(o,s){const l=s[s.length-1];return n(o,l?l.children.indexOf(o):null,l)}};let Cse=class{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};Cse.prototype.property={};Cse.prototype.normal={};Cse.prototype.space=null;function TUn(t,e){const n={},r={};let a=-1;for(;++a<t.length;)Object.assign(n,t[a].property),Object.assign(r,t[a].normal);return new Cse(n,r,e)}function Mre(t){return t.toLowerCase()}let IE=class{constructor(e,n){this.property=e,this.attribute=n}};IE.prototype.space=null;IE.prototype.boolean=!1;IE.prototype.booleanish=!1;IE.prototype.overloadedBoolean=!1;IE.prototype.number=!1;IE.prototype.commaSeparated=!1;IE.prototype.spaceSeparated=!1;IE.prototype.commaOrSpaceSeparated=!1;IE.prototype.mustUseProperty=!1;IE.prototype.defined=!1;let Lko=0;const Uo=I9(),_f=I9(),CUn=I9(),wr=I9(),ku=I9(),yH=I9(),hy=I9();function I9(){return 2**++Lko}const dQe=Object.freeze(Object.defineProperty({__proto__:null,boolean:Uo,booleanish:_f,commaOrSpaceSeparated:hy,commaSeparated:yH,number:wr,overloadedBoolean:CUn,spaceSeparated:ku},Symbol.toStringTag,{value:"Module"})),_9e=Object.keys(dQe);let Dlt=class extends IE{constructor(e,n,r,a){let o=-1;if(super(e,n),vDt(this,"space",a),typeof r=="number")for(;++o<_9e.length;){const s=_9e[o];vDt(this,_9e[o],(r&dQe[s])===dQe[s])}}};Dlt.prototype.defined=!0;function vDt(t,e,n){n&&(t[e]=n)}const Bko={}.hasOwnProperty;function YV(t){const e={},n={};let r;for(r in t.properties)if(Bko.call(t.properties,r)){const a=t.properties[r],o=new Dlt(r,t.transform(t.attributes||{},r),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[Mre(r)]=r,n[Mre(o.attribute)]=r}return new Cse(e,n,t.space)}const kUn=YV({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),RUn=YV({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function MUn(t,e){return e in t?t[e]:e}function NUn(t,e){return MUn(t,e.toLowerCase())}const IUn=YV({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:NUn,properties:{xmlns:null,xmlnsXLink:null}}),PUn=YV({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:_f,ariaAutoComplete:null,ariaBusy:_f,ariaChecked:_f,ariaColCount:wr,ariaColIndex:wr,ariaColSpan:wr,ariaControls:ku,ariaCurrent:null,ariaDescribedBy:ku,ariaDetails:null,ariaDisabled:_f,ariaDropEffect:ku,ariaErrorMessage:null,ariaExpanded:_f,ariaFlowTo:ku,ariaGrabbed:_f,ariaHasPopup:null,ariaHidden:_f,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ku,ariaLevel:wr,ariaLive:null,ariaModal:_f,ariaMultiLine:_f,ariaMultiSelectable:_f,ariaOrientation:null,ariaOwns:ku,ariaPlaceholder:null,ariaPosInSet:wr,ariaPressed:_f,ariaReadOnly:_f,ariaRelevant:null,ariaRequired:_f,ariaRoleDescription:ku,ariaRowCount:wr,ariaRowIndex:wr,ariaRowSpan:wr,ariaSelected:_f,ariaSetSize:wr,ariaSort:null,ariaValueMax:wr,ariaValueMin:wr,ariaValueNow:wr,ariaValueText:null,role:null}}),Dko=YV({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:NUn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yH,acceptCharset:ku,accessKey:ku,action:null,allow:null,allowFullScreen:Uo,allowPaymentRequest:Uo,allowUserMedia:Uo,alt:null,as:null,async:Uo,autoCapitalize:null,autoComplete:ku,autoFocus:Uo,autoPlay:Uo,blocking:ku,capture:null,charSet:null,checked:Uo,cite:null,className:ku,cols:wr,colSpan:null,content:null,contentEditable:_f,controls:Uo,controlsList:ku,coords:wr|yH,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Uo,defer:Uo,dir:null,dirName:null,disabled:Uo,download:CUn,draggable:_f,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Uo,formTarget:null,headers:ku,height:wr,hidden:Uo,high:wr,href:null,hrefLang:null,htmlFor:ku,httpEquiv:ku,id:null,imageSizes:null,imageSrcSet:null,inert:Uo,inputMode:null,integrity:null,is:null,isMap:Uo,itemId:null,itemProp:ku,itemRef:ku,itemScope:Uo,itemType:ku,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Uo,low:wr,manifest:null,max:null,maxLength:wr,media:null,method:null,min:null,minLength:wr,multiple:Uo,muted:Uo,name:null,nonce:null,noModule:Uo,noValidate:Uo,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Uo,optimum:wr,pattern:null,ping:ku,placeholder:null,playsInline:Uo,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Uo,referrerPolicy:null,rel:ku,required:Uo,reversed:Uo,rows:wr,rowSpan:wr,sandbox:ku,scope:null,scoped:Uo,seamless:Uo,selected:Uo,shadowRootClonable:Uo,shadowRootDelegatesFocus:Uo,shadowRootMode:null,shape:null,size:wr,sizes:null,slot:null,span:wr,spellCheck:_f,src:null,srcDoc:null,srcLang:null,srcSet:null,start:wr,step:null,style:null,tabIndex:wr,target:null,title:null,translate:null,type:null,typeMustMatch:Uo,useMap:null,value:_f,width:wr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ku,axis:null,background:null,bgColor:null,border:wr,borderColor:null,bottomMargin:wr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Uo,declare:Uo,event:null,face:null,frame:null,frameBorder:null,hSpace:wr,leftMargin:wr,link:null,longDesc:null,lowSrc:null,marginHeight:wr,marginWidth:wr,noResize:Uo,noHref:Uo,noShade:Uo,noWrap:Uo,object:null,profile:null,prompt:null,rev:null,rightMargin:wr,rules:null,scheme:null,scrolling:_f,standby:null,summary:null,text:null,topMargin:wr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:wr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Uo,disableRemotePlayback:Uo,prefix:null,property:null,results:wr,security:null,unselectable:null}}),$ko=YV({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:MUn,properties:{about:hy,accentHeight:wr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:wr,amplitude:wr,arabicForm:null,ascent:wr,attributeName:null,attributeType:null,azimuth:wr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:wr,by:null,calcMode:null,capHeight:wr,className:ku,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:wr,diffuseConstant:wr,direction:null,display:null,dur:null,divisor:wr,dominantBaseline:null,download:Uo,dx:null,dy:null,edgeMode:null,editable:null,elevation:wr,enableBackground:null,end:null,event:null,exponent:wr,externalResourcesRequired:null,fill:null,fillOpacity:wr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:yH,g2:yH,glyphName:yH,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:wr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:wr,horizOriginX:wr,horizOriginY:wr,id:null,ideographic:wr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:wr,k:wr,k1:wr,k2:wr,k3:wr,k4:wr,kernelMatrix:hy,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:wr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:wr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:wr,overlineThickness:wr,paintOrder:null,panose1:null,path:null,pathLength:wr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ku,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:wr,pointsAtY:wr,pointsAtZ:wr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hy,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hy,rev:hy,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hy,requiredFeatures:hy,requiredFonts:hy,requiredFormats:hy,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:wr,specularExponent:wr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:wr,strikethroughThickness:wr,string:null,stroke:null,strokeDashArray:hy,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:wr,strokeOpacity:wr,strokeWidth:null,style:null,surfaceScale:wr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hy,tabIndex:wr,tableValues:null,target:null,targetX:wr,targetY:wr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hy,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:wr,underlineThickness:wr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:wr,values:null,vAlphabetic:wr,vMathematical:wr,vectorEffect:null,vHanging:wr,vIdeographic:wr,version:null,vertAdvY:wr,vertOriginX:wr,vertOriginY:wr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:wr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Fko=/^data[-\w.:]+$/i,ADt=/-[a-z]/g,jko=/[A-Z]/g;function Hko(t,e){const n=Mre(e);let r=e,a=IE;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fko.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(ADt,zko);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!ADt.test(o)){let s=o.replace(jko,Uko);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}a=Dlt}return new a(r,e)}function Uko(t){return"-"+t.toLowerCase()}function zko(t){return t.charAt(1).toUpperCase()}const Gko=TUn([RUn,kUn,IUn,PUn,Dko],"html"),Vko=TUn([RUn,kUn,IUn,PUn,$ko],"svg"),yDt=/[#.]/g;function Kko(t,e){const n=t||"",r={};let a=0,o,s;for(;a<n.length;){yDt.lastIndex=a;const l=yDt.exec(n),c=n.slice(a,l?l.index:n.length);c&&(o?o==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,a+=c.length),l&&(o=l[0],a++)}return{type:"element",tagName:s||e||"div",properties:r,children:[]}}function bDt(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}const Wko=new Set(["menu","submit","reset","button"]),hQe={}.hasOwnProperty;function OUn(t,e,n){const r=n&&Jko(n);return function(o,s,...l){let c=-1,u;if(o==null)u={type:"root",children:[]},l.unshift(s);else if(u=Kko(o,e),u.tagName=u.tagName.toLowerCase(),r&&hQe.call(r,u.tagName)&&(u.tagName=r[u.tagName]),Qko(s,u.tagName)){let d;for(d in s)hQe.call(s,d)&&qko(t,u.properties,d,s[d])}else l.unshift(s);for(;++c<l.length;)fQe(u.children,l[c]);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}}function Qko(t,e){return t==null||typeof t!="object"||Array.isArray(t)?!1:e==="input"||!t.type||typeof t.type!="string"?!0:"children"in t&&Array.isArray(t.children)?!1:e==="button"?Wko.has(t.type.toLowerCase()):!("value"in t)}function qko(t,e,n,r){const a=Hko(t,n);let o=-1,s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=bDt(r):a.commaSeparated?s=KLt(r):a.commaOrSpaceSeparated?s=bDt(KLt(r).join(" ")):s=xDt(a,a.property,r):Array.isArray(r)?s=r.concat():s=a.property==="style"?Yko(r):String(r);if(Array.isArray(s)){const l=[];for(;++o<s.length;)l[o]=xDt(a,a.property,s[o]);s=l}a.property==="className"&&Array.isArray(e.className)&&(s=e.className.concat(s)),e[a.property]=s}}function fQe(t,e){let n=-1;if(e!=null)if(typeof e=="string"||typeof e=="number")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(;++n<e.length;)fQe(t,e[n]);else if(typeof e=="object"&&"type"in e)e.type==="root"?fQe(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function xDt(t,e,n){if(typeof n=="string"){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(n===""||Mre(n)===Mre(e)))return!0}return n}function Yko(t){const e=[];let n;for(n in t)hQe.call(t,n)&&e.push([n,t[n]].join(": "));return e.join("; ")}function Jko(t){const e={};let n=-1;for(;++n<t.length;)e[t[n].toLowerCase()]=t[n];return e}const Zko=OUn(Gko,"div"),Xko=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],eRo=OUn(Vko,"g",Xko);let kse=class{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};kse.prototype.property={};kse.prototype.normal={};kse.prototype.space=null;function LUn(t,e){const n={},r={};let a=-1;for(;++a<t.length;)Object.assign(n,t[a].property),Object.assign(r,t[a].normal);return new kse(n,r,e)}function pQe(t){return t.toLowerCase()}let PE=class{constructor(e,n){this.property=e,this.attribute=n}};PE.prototype.space=null;PE.prototype.boolean=!1;PE.prototype.booleanish=!1;PE.prototype.overloadedBoolean=!1;PE.prototype.number=!1;PE.prototype.commaSeparated=!1;PE.prototype.spaceSeparated=!1;PE.prototype.commaOrSpaceSeparated=!1;PE.prototype.mustUseProperty=!1;PE.prototype.defined=!1;let tRo=0;const zo=P9(),Tf=P9(),BUn=P9(),_r=P9(),Ru=P9(),bH=P9(),fy=P9();function P9(){return 2**++tRo}const mQe=Object.freeze(Object.defineProperty({__proto__:null,boolean:zo,booleanish:Tf,commaOrSpaceSeparated:fy,commaSeparated:bH,number:_r,overloadedBoolean:BUn,spaceSeparated:Ru},Symbol.toStringTag,{value:"Module"})),T9e=Object.keys(mQe);let $lt=class extends PE{constructor(e,n,r,a){let o=-1;if(super(e,n),EDt(this,"space",a),typeof r=="number")for(;++o<T9e.length;){const s=T9e[o];EDt(this,T9e[o],(r&mQe[s])===mQe[s])}}};$lt.prototype.defined=!0;function EDt(t,e,n){n&&(t[e]=n)}const nRo={}.hasOwnProperty;function JV(t){const e={},n={};let r;for(r in t.properties)if(nRo.call(t.properties,r)){const a=t.properties[r],o=new $lt(r,t.transform(t.attributes||{},r),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[pQe(r)]=r,n[pQe(o.attribute)]=r}return new kse(e,n,t.space)}const DUn=JV({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$Un=JV({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function FUn(t,e){return e in t?t[e]:e}function jUn(t,e){return FUn(t,e.toLowerCase())}const HUn=JV({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:jUn,properties:{xmlns:null,xmlnsXLink:null}}),UUn=JV({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Tf,ariaAutoComplete:null,ariaBusy:Tf,ariaChecked:Tf,ariaColCount:_r,ariaColIndex:_r,ariaColSpan:_r,ariaControls:Ru,ariaCurrent:null,ariaDescribedBy:Ru,ariaDetails:null,ariaDisabled:Tf,ariaDropEffect:Ru,ariaErrorMessage:null,ariaExpanded:Tf,ariaFlowTo:Ru,ariaGrabbed:Tf,ariaHasPopup:null,ariaHidden:Tf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ru,ariaLevel:_r,ariaLive:null,ariaModal:Tf,ariaMultiLine:Tf,ariaMultiSelectable:Tf,ariaOrientation:null,ariaOwns:Ru,ariaPlaceholder:null,ariaPosInSet:_r,ariaPressed:Tf,ariaReadOnly:Tf,ariaRelevant:null,ariaRequired:Tf,ariaRoleDescription:Ru,ariaRowCount:_r,ariaRowIndex:_r,ariaRowSpan:_r,ariaSelected:Tf,ariaSetSize:_r,ariaSort:null,ariaValueMax:_r,ariaValueMin:_r,ariaValueNow:_r,ariaValueText:null,role:null}}),rRo=JV({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:jUn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bH,acceptCharset:Ru,accessKey:Ru,action:null,allow:null,allowFullScreen:zo,allowPaymentRequest:zo,allowUserMedia:zo,alt:null,as:null,async:zo,autoCapitalize:null,autoComplete:Ru,autoFocus:zo,autoPlay:zo,blocking:Ru,capture:null,charSet:null,checked:zo,cite:null,className:Ru,cols:_r,colSpan:null,content:null,contentEditable:Tf,controls:zo,controlsList:Ru,coords:_r|bH,crossOrigin:null,data:null,dateTime:null,decoding:null,default:zo,defer:zo,dir:null,dirName:null,disabled:zo,download:BUn,draggable:Tf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:zo,formTarget:null,headers:Ru,height:_r,hidden:zo,high:_r,href:null,hrefLang:null,htmlFor:Ru,httpEquiv:Ru,id:null,imageSizes:null,imageSrcSet:null,inert:zo,inputMode:null,integrity:null,is:null,isMap:zo,itemId:null,itemProp:Ru,itemRef:Ru,itemScope:zo,itemType:Ru,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:zo,low:_r,manifest:null,max:null,maxLength:_r,media:null,method:null,min:null,minLength:_r,multiple:zo,muted:zo,name:null,nonce:null,noModule:zo,noValidate:zo,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:zo,optimum:_r,pattern:null,ping:Ru,placeholder:null,playsInline:zo,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:zo,referrerPolicy:null,rel:Ru,required:zo,reversed:zo,rows:_r,rowSpan:_r,sandbox:Ru,scope:null,scoped:zo,seamless:zo,selected:zo,shadowRootClonable:zo,shadowRootDelegatesFocus:zo,shadowRootMode:null,shape:null,size:_r,sizes:null,slot:null,span:_r,spellCheck:Tf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_r,step:null,style:null,tabIndex:_r,target:null,title:null,translate:null,type:null,typeMustMatch:zo,useMap:null,value:Tf,width:_r,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ru,axis:null,background:null,bgColor:null,border:_r,borderColor:null,bottomMargin:_r,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:zo,declare:zo,event:null,face:null,frame:null,frameBorder:null,hSpace:_r,leftMargin:_r,link:null,longDesc:null,lowSrc:null,marginHeight:_r,marginWidth:_r,noResize:zo,noHref:zo,noShade:zo,noWrap:zo,object:null,profile:null,prompt:null,rev:null,rightMargin:_r,rules:null,scheme:null,scrolling:Tf,standby:null,summary:null,text:null,topMargin:_r,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_r,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:zo,disableRemotePlayback:zo,prefix:null,property:null,results:_r,security:null,unselectable:null}}),iRo=JV({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:FUn,properties:{about:fy,accentHeight:_r,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_r,amplitude:_r,arabicForm:null,ascent:_r,attributeName:null,attributeType:null,azimuth:_r,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_r,by:null,calcMode:null,capHeight:_r,className:Ru,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_r,diffuseConstant:_r,direction:null,display:null,dur:null,divisor:_r,dominantBaseline:null,download:zo,dx:null,dy:null,edgeMode:null,editable:null,elevation:_r,enableBackground:null,end:null,event:null,exponent:_r,externalResourcesRequired:null,fill:null,fillOpacity:_r,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bH,g2:bH,glyphName:bH,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_r,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_r,horizOriginX:_r,horizOriginY:_r,id:null,ideographic:_r,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_r,k:_r,k1:_r,k2:_r,k3:_r,k4:_r,kernelMatrix:fy,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_r,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_r,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_r,overlineThickness:_r,paintOrder:null,panose1:null,path:null,pathLength:_r,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ru,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_r,pointsAtY:_r,pointsAtZ:_r,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fy,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fy,rev:fy,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fy,requiredFeatures:fy,requiredFonts:fy,requiredFormats:fy,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_r,specularExponent:_r,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_r,strikethroughThickness:_r,string:null,stroke:null,strokeDashArray:fy,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_r,strokeOpacity:_r,strokeWidth:null,style:null,surfaceScale:_r,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fy,tabIndex:_r,tableValues:null,target:null,targetX:_r,targetY:_r,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fy,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_r,underlineThickness:_r,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_r,values:null,vAlphabetic:_r,vMathematical:_r,vectorEffect:null,vHanging:_r,vIdeographic:_r,version:null,vertAdvY:_r,vertOriginX:_r,vertOriginY:_r,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_r,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),aRo=/^data[-\w.:]+$/i,SDt=/-[a-z]/g,oRo=/[A-Z]/g;function sRo(t,e){const n=pQe(e);let r=e,a=PE;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aRo.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(SDt,cRo);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!SDt.test(o)){let s=o.replace(oRo,lRo);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}a=$lt}return new a(r,e)}function lRo(t){return"-"+t.toLowerCase()}function cRo(t){return t.charAt(1).toUpperCase()}const zUn=LUn([$Un,DUn,HUn,UUn,rRo],"html"),GUn=LUn([$Un,DUn,HUn,UUn,iRo],"svg");function uRo(t){const e=String(t),n=[],r=/\r?\n|\r/g;for(;r.test(e);)n.push(r.lastIndex);return n.push(e.length+1),{toPoint:a,toOffset:o};function a(s){let l=-1;if(typeof s=="number"&&s>-1&&s<n[n.length-1]){for(;++l<n.length;)if(n[l]>s)return{line:l+1,column:s-(l>0?n[l-1]:0)+1,offset:s}}return{line:void 0,column:void 0,offset:void 0}}function o(s){const l=s&&s.line,c=s&&s.column;if(typeof l=="number"&&typeof c=="number"&&!Number.isNaN(l)&&!Number.isNaN(c)&&l-1 in n){const u=(n[l-2]||0)+c-1||0;if(u>-1&&u<n[n.length-1])return u}return-1}}const dRo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},VUn={}.hasOwnProperty,hRo=Object.prototype;function fRo(t,e){const n=e||{};let r,a;return gRo(n)?(a=n,r={}):(a=n.file||void 0,r=n),Flt({schema:r.space==="svg"?GUn:zUn,file:a,verbose:r.verbose,location:!1},t)}function Flt(t,e){let n;switch(e.nodeName){case"#comment":{const r=e;return n={type:"comment",value:r.data},yge(t,r,n),n}case"#document":case"#document-fragment":{const r=e,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:KUn(t,e.childNodes),data:{quirksMode:a}},t.file&&t.location){const o=String(t.file),s=uRo(o),l=s.toPoint(0),c=s.toPoint(o.length);n.position={start:l,end:c}}return n}case"#documentType":{const r=e;return n={type:"doctype"},yge(t,r,n),n}case"#text":{const r=e;return n={type:"text",value:r.value},yge(t,r,n),n}default:return n=pRo(t,e),n}}function KUn(t,e){let n=-1;const r=[];for(;++n<e.length;)r[n]=Flt(t,e[n]);return r}function pRo(t,e){const n=t.schema;t.schema=e.namespaceURI===dRo.svg?GUn:zUn;let r=-1;const a={};for(;++r<e.attrs.length;){const l=e.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;VUn.call(hRo,c)||(a[c]=l.value)}const s=(t.schema.space==="svg"?eRo:Zko)(e.tagName,a,KUn(t,e.childNodes));if(yge(t,e,s),s.tagName==="template"){const l=e,c=l.sourceCodeLocation,u=c&&c.startTag&&lj(c.startTag),d=c&&c.endTag&&lj(c.endTag),h=Flt(t,l.content);u&&d&&t.file&&(h.position={start:u.end,end:d.start}),s.content=h}return t.schema=n,s}function yge(t,e,n){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&t.file){const r=mRo(t,n,e.sourceCodeLocation);r&&(t.location=!0,n.position=r)}}function mRo(t,e,n){const r=lj(n);if(e.type==="element"){const a=e.children[e.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),t.verbose){const o={};let s;if(n.attrs)for(s in n.attrs)VUn.call(n.attrs,s)&&(o[sRo(t.schema,s).property]=lj(n.attrs[s]));e.data={position:{opening:lj(n.startTag),closing:n.endTag?lj(n.endTag):null,properties:o}}}}return r}function lj(t){const e=wDt({line:t.startLine,column:t.startCol,offset:t.startOffset}),n=wDt({line:t.endLine,column:t.endCol,offset:t.endOffset});return e||n?{start:e,end:n}:void 0}function wDt(t){return t.line&&t.column?t:void 0}function gRo(t){return"messages"in t}class Rse{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}}Rse.prototype.property={};Rse.prototype.normal={};Rse.prototype.space=null;function WUn(t,e){const n={},r={};let a=-1;for(;++a<t.length;)Object.assign(n,t[a].property),Object.assign(r,t[a].normal);return new Rse(n,r,e)}function gQe(t){return t.toLowerCase()}let OE=class{constructor(e,n){this.property=e,this.attribute=n}};OE.prototype.space=null;OE.prototype.boolean=!1;OE.prototype.booleanish=!1;OE.prototype.overloadedBoolean=!1;OE.prototype.number=!1;OE.prototype.commaSeparated=!1;OE.prototype.spaceSeparated=!1;OE.prototype.commaOrSpaceSeparated=!1;OE.prototype.mustUseProperty=!1;OE.prototype.defined=!1;let vRo=0;const Go=O9(),Cf=O9(),QUn=O9(),Tr=O9(),Mu=O9(),xH=O9(),py=O9();function O9(){return 2**++vRo}const vQe=Object.freeze(Object.defineProperty({__proto__:null,boolean:Go,booleanish:Cf,commaOrSpaceSeparated:py,commaSeparated:xH,number:Tr,overloadedBoolean:QUn,spaceSeparated:Mu},Symbol.toStringTag,{value:"Module"})),C9e=Object.keys(vQe);class jlt extends OE{constructor(e,n,r,a){let o=-1;if(super(e,n),_Dt(this,"space",a),typeof r=="number")for(;++o<C9e.length;){const s=C9e[o];_Dt(this,C9e[o],(r&vQe[s])===vQe[s])}}}jlt.prototype.defined=!0;function _Dt(t,e,n){n&&(t[e]=n)}const ARo={}.hasOwnProperty;function ZV(t){const e={},n={};let r;for(r in t.properties)if(ARo.call(t.properties,r)){const a=t.properties[r],o=new jlt(r,t.transform(t.attributes||{},r),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[gQe(r)]=r,n[gQe(o.attribute)]=r}return new Rse(e,n,t.space)}const qUn=ZV({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),YUn=ZV({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function JUn(t,e){return e in t?t[e]:e}function ZUn(t,e){return JUn(t,e.toLowerCase())}const XUn=ZV({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ZUn,properties:{xmlns:null,xmlnsXLink:null}}),ezn=ZV({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Cf,ariaAutoComplete:null,ariaBusy:Cf,ariaChecked:Cf,ariaColCount:Tr,ariaColIndex:Tr,ariaColSpan:Tr,ariaControls:Mu,ariaCurrent:null,ariaDescribedBy:Mu,ariaDetails:null,ariaDisabled:Cf,ariaDropEffect:Mu,ariaErrorMessage:null,ariaExpanded:Cf,ariaFlowTo:Mu,ariaGrabbed:Cf,ariaHasPopup:null,ariaHidden:Cf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Mu,ariaLevel:Tr,ariaLive:null,ariaModal:Cf,ariaMultiLine:Cf,ariaMultiSelectable:Cf,ariaOrientation:null,ariaOwns:Mu,ariaPlaceholder:null,ariaPosInSet:Tr,ariaPressed:Cf,ariaReadOnly:Cf,ariaRelevant:null,ariaRequired:Cf,ariaRoleDescription:Mu,ariaRowCount:Tr,ariaRowIndex:Tr,ariaRowSpan:Tr,ariaSelected:Cf,ariaSetSize:Tr,ariaSort:null,ariaValueMax:Tr,ariaValueMin:Tr,ariaValueNow:Tr,ariaValueText:null,role:null}}),yRo=ZV({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ZUn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xH,acceptCharset:Mu,accessKey:Mu,action:null,allow:null,allowFullScreen:Go,allowPaymentRequest:Go,allowUserMedia:Go,alt:null,as:null,async:Go,autoCapitalize:null,autoComplete:Mu,autoFocus:Go,autoPlay:Go,blocking:Mu,capture:null,charSet:null,checked:Go,cite:null,className:Mu,cols:Tr,colSpan:null,content:null,contentEditable:Cf,controls:Go,controlsList:Mu,coords:Tr|xH,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Go,defer:Go,dir:null,dirName:null,disabled:Go,download:QUn,draggable:Cf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Go,formTarget:null,headers:Mu,height:Tr,hidden:Go,high:Tr,href:null,hrefLang:null,htmlFor:Mu,httpEquiv:Mu,id:null,imageSizes:null,imageSrcSet:null,inert:Go,inputMode:null,integrity:null,is:null,isMap:Go,itemId:null,itemProp:Mu,itemRef:Mu,itemScope:Go,itemType:Mu,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Go,low:Tr,manifest:null,max:null,maxLength:Tr,media:null,method:null,min:null,minLength:Tr,multiple:Go,muted:Go,name:null,nonce:null,noModule:Go,noValidate:Go,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Go,optimum:Tr,pattern:null,ping:Mu,placeholder:null,playsInline:Go,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Go,referrerPolicy:null,rel:Mu,required:Go,reversed:Go,rows:Tr,rowSpan:Tr,sandbox:Mu,scope:null,scoped:Go,seamless:Go,selected:Go,shadowRootClonable:Go,shadowRootDelegatesFocus:Go,shadowRootMode:null,shape:null,size:Tr,sizes:null,slot:null,span:Tr,spellCheck:Cf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Tr,step:null,style:null,tabIndex:Tr,target:null,title:null,translate:null,type:null,typeMustMatch:Go,useMap:null,value:Cf,width:Tr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Mu,axis:null,background:null,bgColor:null,border:Tr,borderColor:null,bottomMargin:Tr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Go,declare:Go,event:null,face:null,frame:null,frameBorder:null,hSpace:Tr,leftMargin:Tr,link:null,longDesc:null,lowSrc:null,marginHeight:Tr,marginWidth:Tr,noResize:Go,noHref:Go,noShade:Go,noWrap:Go,object:null,profile:null,prompt:null,rev:null,rightMargin:Tr,rules:null,scheme:null,scrolling:Cf,standby:null,summary:null,text:null,topMargin:Tr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Tr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Go,disableRemotePlayback:Go,prefix:null,property:null,results:Tr,security:null,unselectable:null}}),bRo=ZV({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:JUn,properties:{about:py,accentHeight:Tr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Tr,amplitude:Tr,arabicForm:null,ascent:Tr,attributeName:null,attributeType:null,azimuth:Tr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Tr,by:null,calcMode:null,capHeight:Tr,className:Mu,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Tr,diffuseConstant:Tr,direction:null,display:null,dur:null,divisor:Tr,dominantBaseline:null,download:Go,dx:null,dy:null,edgeMode:null,editable:null,elevation:Tr,enableBackground:null,end:null,event:null,exponent:Tr,externalResourcesRequired:null,fill:null,fillOpacity:Tr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:xH,g2:xH,glyphName:xH,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Tr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Tr,horizOriginX:Tr,horizOriginY:Tr,id:null,ideographic:Tr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Tr,k:Tr,k1:Tr,k2:Tr,k3:Tr,k4:Tr,kernelMatrix:py,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Tr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Tr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Tr,overlineThickness:Tr,paintOrder:null,panose1:null,path:null,pathLength:Tr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Mu,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Tr,pointsAtY:Tr,pointsAtZ:Tr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:py,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:py,rev:py,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:py,requiredFeatures:py,requiredFonts:py,requiredFormats:py,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Tr,specularExponent:Tr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Tr,strikethroughThickness:Tr,string:null,stroke:null,strokeDashArray:py,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Tr,strokeOpacity:Tr,strokeWidth:null,style:null,surfaceScale:Tr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:py,tabIndex:Tr,tableValues:null,target:null,targetX:Tr,targetY:Tr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:py,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Tr,underlineThickness:Tr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Tr,values:null,vAlphabetic:Tr,vMathematical:Tr,vectorEffect:null,vHanging:Tr,vIdeographic:Tr,version:null,vertAdvY:Tr,vertOriginX:Tr,vertOriginY:Tr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Tr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xRo=/^data[-\w.:]+$/i,TDt=/-[a-z]/g,ERo=/[A-Z]/g;function SRo(t,e){const n=gQe(e);let r=e,a=OE;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xRo.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(TDt,_Ro);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!TDt.test(o)){let s=o.replace(ERo,wRo);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}a=jlt}return new a(r,e)}function wRo(t){return"-"+t.toLowerCase()}function _Ro(t){return t.charAt(1).toUpperCase()}const TRo=WUn([YUn,qUn,XUn,ezn,yRo],"html"),tzn=WUn([YUn,qUn,XUn,ezn,bRo],"svg");function CRo(t){return t.join(" ").trim()}const nzn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},CDt={}.hasOwnProperty;function rzn(t,e){const n=e||{};function r(a,...o){let s=r.invalid;const l=r.handlers;if(a&&CDt.call(a,t)){const c=String(a[t]);s=CDt.call(l,c)?l[c]:r.unknown}if(s)return s.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const kRo={}.hasOwnProperty,izn=rzn("type",{handlers:{root:MRo,element:LRo,text:PRo,comment:ORo,doctype:IRo}});function RRo(t,e){const n=e&&typeof e=="object"?e.space:e;return izn(t,n==="svg"?tzn:TRo)}function MRo(t,e){const n={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Hlt(t.children,n,e),XV(t,n),n}function NRo(t,e){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Hlt(t.children,n,e),XV(t,n),n}function IRo(t){const e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return XV(t,e),e}function PRo(t){const e={nodeName:"#text",value:t.value,parentNode:void 0};return XV(t,e),e}function ORo(t){const e={nodeName:"#comment",data:t.value,parentNode:void 0};return XV(t,e),e}function LRo(t,e){const n=e;let r=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=tzn);const a=[];let o;if(t.properties){for(o in t.properties)if(o!=="children"&&kRo.call(t.properties,o)){const l=BRo(r,o,t.properties[o]);l&&a.push(l)}}const s={nodeName:t.tagName,tagName:t.tagName,attrs:a,namespaceURI:nzn[r.space],childNodes:[],parentNode:void 0};return s.childNodes=Hlt(t.children,s,r),XV(t,s),t.tagName==="template"&&t.content&&(s.content=NRo(t.content,r)),s}function BRo(t,e,n){const r=SRo(t,e);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?NHn(n):CRo(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=nzn[r.space]}return a}function Hlt(t,e,n){let r=-1;const a=[];if(t)for(;++r<t.length;){const o=izn(t[r],n);o.parentNode=e,a.push(o)}return a}function XV(t,e){const n=t.position;n&&n.start&&n.end&&(e.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const DRo=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],kDt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},$Ro="IN_TEMPLATE_MODE",FRo="DATA_STATE",jRo="CHARACTER_TOKEN",HRo="START_TAG_TOKEN",URo="END_TAG_TOKEN",zRo="COMMENT_TOKEN",GRo="DOCTYPE_TOKEN",VRo={sourceCodeLocationInfo:!0,scriptingEnabled:!1},azn=function(t,e,n){let r=-1;const a=new Iko(VRo),o=rzn("type",{handlers:{root:g,element:v,text:A,comment:S,doctype:y,raw:x},unknown:qRo});let s,l,c,u,d;if(JRo(e)&&(n=e,e=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=w;const h=fRo(YRo(t)?p():f(),e);if(s&&Oko(h,"comment",(C,R,k)=>{const P=C;if(P.value.stitch&&k!==null&&R!==null)return k.children[R]=P.value.stitch,R}),t.type!=="root"&&h.type==="root"&&h.children.length===1)return h.children[0];return h;function f(){const C={nodeName:"template",tagName:"template",attrs:[],namespaceURI:kDt.html,childNodes:[]},R={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:kDt.html,childNodes:[]},k={nodeName:"#document-fragment",childNodes:[]};if(a._bootstrap(R,C),a._pushTmplInsertionMode($Ro),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),l=a.tokenizer,!l)throw new Error("Expected `tokenizer`");return c=l.preprocessor,d=l.__mixins[0],u=d.posTracker,o(t),_(),a._adoptNodes(R.childNodes[0],k),k}function p(){const C=a.treeAdapter.createDocument();if(a._bootstrap(C,void 0),l=a.tokenizer,!l)throw new Error("Expected `tokenizer`");return c=l.preprocessor,d=l.__mixins[0],u=d.posTracker,o(t),_(),C}function m(C){let R=-1;if(C)for(;++R<C.length;)o(C[R])}function g(C){m(C.children)}function v(C){_(),a._processInputToken(KRo(C)),m(C.children),DRo.includes(C.tagName)||(_(),a._processInputToken(QRo(C)))}function A(C){_(),a._processInputToken({type:jRo,chars:C.value,location:cj(C)})}function y(C){_(),a._processInputToken({type:GRo,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:cj(C)})}function S(C){_(),a._processInputToken({type:zRo,data:C.value,location:cj(C)})}function x(C){const R=wUn(C),k=R.line||1,P=R.column||1,N=R.offset||0;if(!c)throw new Error("Expected `preprocessor`");if(!l)throw new Error("Expected `tokenizer`");if(!u)throw new Error("Expected `posTracker`");if(!d)throw new Error("Expected `locationTracker`");c.html=void 0,c.pos=-1,c.lastGapPos=-1,c.lastCharPos=-1,c.gapStack=[],c.skipNextNewLine=!1,c.lastChunkWritten=!1,c.endOfChunkHit=!1,u.isEol=!1,u.lineStartPos=-P+1,u.droppedBufferSize=N,u.offset=0,u.col=1,u.line=k,d.currentAttrLocation=void 0,d.ctLoc=cj(C),l.write(C.value),a._runParsingLoop(null),(l.state==="NAMED_CHARACTER_REFERENCE_STATE"||l.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(c.lastChunkWritten=!0,l[l.state](l._consume()))}function w(C){s=!0;let R;"children"in C?R={...C,children:azn({type:"root",children:C.children},e,n).children}:R={...C},S({type:"comment",value:{stitch:R}})}function _(){if(!l)throw new Error("Expected `tokenizer`");if(!u)throw new Error("Expected `posTracker`");const C=l.currentCharacterToken;C&&(C.location.endLine=u.line,C.location.endCol=u.col+1,C.location.endOffset=u.offset+1,a._processInputToken(C)),l.tokenQueue=[],l.state=FRo,l.returnState="",l.charRefCode=-1,l.tempBuff=[],l.lastStartTagName="",l.consumedAfterSnapshot=-1,l.active=!1,l.currentCharacterToken=void 0,l.currentToken=void 0,l.currentAttr=void 0}};function KRo(t){const e=Object.assign(cj(t));return e.startTag=Object.assign({},e),{type:HRo,tagName:t.tagName,selfClosing:!1,attrs:WRo(t),location:e}}function WRo(t){return RRo({tagName:t.tagName,type:"element",properties:t.properties,children:[]}).attrs}function QRo(t){const e=Object.assign(cj(t));return e.startTag=Object.assign({},e),{type:URo,tagName:t.tagName,attrs:[],location:e}}function qRo(t){throw new Error("Cannot compile `"+t.type+"` node")}function YRo(t){const e=t.type==="root"?t.children[0]:t;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName==="html"))}function cj(t){const e=wUn(t),n=Pko(t);return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function JRo(t){return!!(t&&!("message"in t&&"messages"in t))}function ZRo(t={}){return(e,n)=>azn(e,n,t)}var Ult={},XRo=As;Object.defineProperty(Ult,"__esModule",{value:!0});var ozn=Ult.default=void 0,eMo=XRo(Ps()),tMo=E;ozn=Ult.default=(0,eMo.default)((0,tMo.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const nMo=gt.div`
  cursor: ${t=>t.isLayoutEditable?"move":"pointer"};
  overflow: auto;
  width: 100%;
  height: 100%;
  background: ${t=>t.markdownBackground};
  padding: 0 8px;
  border-radius: 4px;
  a {
    color: ${t=>t.theme.custom.white.A1};
    text-shadow: none;
    &:hover {
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A8}};
      box-shadow: unset;
    }
  }
  .widgetActions {
    position: absolute;
    right: 5px;
    top: 5px;
    button {
      background: transparent;
      height: 24px;
      width: 24px;
      + button {
        margin-left: 8px;
      }
    }
  }
  .markdownContent {
    padding-top: 20px;
  }
`,rMo=gt.div`
  height: inherit;
  && textarea {
    border: 1px solid #fff;
    background: ${t=>t.markdownBackground};
  }
  && textarea:focus {
    border: 1px solid #fff;
  }
`,iMo=t=>{const{href:e,children:n}=t;return E.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:n})},aMo=({onChange:t,value:e,chartBackground:n,useImgColors:r})=>E.jsx(Ba,{value:e,onChange:t,children:cF.map(a=>{const o=r?`linear-gradient(
        180deg,
        ${n==null?void 0:n[0]} -40%,
        ${n==null?void 0:n[1]} 100%
      )`:a.value;return E.jsx(Dn,{value:a.label==="Background"?o:a.value,children:a.label},a.value)})}),oMo=t=>{var S,x,w,_;const{item:e,index:n,isLayoutEditable:r}=t,[a,o]=Y.useState(!1),s=Y.useRef(null),{chartBackground:l,useImgColors:c}=_p(),[u,d]=Y.useState(!1),[h,f]=Y.useState((S=e==null?void 0:e.metadata)==null?void 0:S.markdownText),[p,m]=Y.useState(((x=e==null?void 0:e.metadata)==null?void 0:x.markdownBackground)||cF[1].value);Y.useEffect(()=>{var R,k,P,N;const{current:C}=s;C&&(a&&r?(k=(R=C.parentElement)==null?void 0:R.classList)==null||k.add("editableGrid"):(N=(P=C.parentElement)==null?void 0:P.classList)==null||N.remove("editableGrid"))},[a]),Y.useEffect(()=>{var C;f((C=e==null?void 0:e.metadata)==null?void 0:C.markdownText)},[(w=e==null?void 0:e.metadata)==null?void 0:w.markdownText]),Y.useEffect(()=>{var C;m((C=e==null?void 0:e.metadata)==null?void 0:C.markdownBackground)},[(_=e==null?void 0:e.metadata)==null?void 0:_.markdownBackground]),Y.useEffect(()=>{var C,R;m(c?`linear-gradient(
        180deg,
        ${l==null?void 0:l[0]} -40%,
        ${l==null?void 0:l[1]} 100%
      )`||((C=e==null?void 0:e.metadata)==null?void 0:C.markdownBackground):cF[1].value||((R=e==null?void 0:e.metadata)==null?void 0:R.markdownBackground))},[c,l]),Z6(s,()=>{o(!1),a&&JX(e,{markdownText:h,markdownBackground:p})});const g=()=>{JX(e,{markdownText:h,markdownBackground:p})},v=()=>{o(!1),d(!1),j_e(e==null?void 0:e.i)},A=C=>{m(C.target.value)},y=C=>{const{value:R}=C.target;f(R)};return E.jsx(Woe,{"data-item":JSON.stringify(e),boxHeight:10,ref:s,isEditable:a,className:`dashboardView component ${a?"no-drag editable":""}`,"data-visualid":e.visualId,isLayoutEditable:r,children:E.jsx(Pat,{editMode:a,isFocused:!1,refPopoverMenu:s,isLayoutEditable:r,menuItems:[E.jsx(aMo,{onChange:A,value:p||cF[1].value,chartBackground:l,useImgColors:c})],children:a&&r?E.jsx(rMo,{onClick:()=>{var C,R,k;o(!0),(k=(R=(C=s.current)==null?void 0:C.parentElement)==null?void 0:R.classList)==null||k.add("editableGrid")},markdownBackground:p||cF[1].value,className:"markdown",children:E.jsx("textarea",{autoComplete:"off",value:h,onChange:C=>y(C),defaultValue:kEt,onKeyUp:g})}):E.jsxs(nMo,{isLayoutEditable:r,markdownBackground:p||cF[1].value,className:`${u?"no-drag":""} markdown`,children:[r&&E.jsxs("div",{onMouseOver:()=>d(!0),onMouseLeave:()=>d(!1),className:"widgetActions",children:[E.jsx(_n,{className:"infoButton",tooltip:q.INFO,onClick:()=>{d(!1),window.open(Fan,"_blank")},children:E.jsx(ozn,{})}),E.jsx(_n,{onClick:()=>{d(!1),o(!0)},className:"editbutton",tooltip:q.EDIT_MARKDOWN,children:E.jsx(gP,{})}),E.jsx(_n,{onClick:v,tooltip:q.REMOVE,children:E.jsx(Wl,{})})]}),E.jsx("div",{className:"markdownContent",children:E.jsx(OHn,{rehypePlugins:[ZRo],remarkPlugins:[$To],components:{a:iMo},children:h||kEt})})]})})},n)},sMo=ke.memo(oMo),lMo=gt.div`
  && {
    background-color: ${t=>t.theme.custom.thumbnailBg};
    min-height: 200px;
  }
  .componentContainer {
    min-height: 200px;
  }
`,cMo=t=>{const{item:e,index:n}=t;return E.jsx(Woe,{"data-item":JSON.stringify(e),boxHeight:40,className:"dashboardView-row no-drag","data-visualid":e.visualId,children:E.jsx(lMo,{})},n)},uMo={[sp.divider]:vEa,[sp.header]:SEa,[sp.visual]:uLt,[sp.chart]:uLt,[sp.row]:cMo,[sp.markdown]:sMo},szn=({item:t,index:e,isLayoutEditable:n,preview:r})=>{const a=t?uMo[(t==null?void 0:t.type)||sp.visual]:null;return a?E.jsx(a,{isLayoutEditable:n,item:t,index:e,preview:r}):null},dMo=f1e.WidthProvider(f1e.Responsive),hMo=({item:t,sizes:e,preview:n})=>{const[r,a]=Y.useState([]),[o,s]=Y.useState("md"),l=ke.useRef(!1),c=ho(),u=fV(),d=u&&Bn.useGetAllDashboardVisuals(u==null?void 0:u.id,c),{data:h}=d||{};Y.useEffect(()=>(l.current=!0,(async()=>{const v=await Yva(t,h);l.current&&a(v)})(),()=>{l.current=!1}),[t,h,c]);const f=()=>Ft.map(r,(g,v)=>E.jsx("div",{"data-grid":g,"data-item":JSON.stringify(g),children:E.jsx(szn,{isLayoutEditable:!1,item:g,index:v,preview:n})},v.toString())),p={...jan,...e},m=g=>{s(g)};return E.jsx(dMo,{layouts:{[o]:r},breakpoints:{lg:1200,md:900,sm:600,xs:0},cols:p,className:`${!Ft.isEmpty(r)&&"dragContainer"}`,onBreakpointChange:m,rowHeight:dnt,useCSSTransforms:!0,compactType:"vertical",preventCollision:!1,isBounded:!0,isDroppable:!1,isDraggable:!1,isResizable:!1,children:f()})},Nye=({src:t})=>{const e=t?`${t.replace(/\.[^/.]+$/,"")}.webp`:"",[n,r]=Y.useState(e),[a,o]=Y.useState(!1),s=()=>{r(t)};return Y.useEffect(()=>{!a&&e&&r(e)},[e]),Y.useEffect(()=>{const l=new Image;return l.src=t,l.onload=()=>{r(t),o(!0)},()=>{l.onload=null}},[t]),n!==""?E.jsx("img",{src:n,onError:s,alt:"dashboard-img",style:{filter:a?"blur(0)":"blur(8px)"}}):null},Mse=({handleClick:t,className:e,item:n,isSelected:r,isLoading:a,sizes:o,handleCallback:s,preview:l,thumbnailImage:c=!1,isDetailsScreen:u,isVisualPresent:d,windowWidth:h=0,isExplore:f=!1,isMyOrg:p=!1,isLoggedIn:m,userDetail:g,dashboardPreviewImg:v,isSetAsHome:A,setSlugModalOpen:y,isDashboardListModal:S})=>{const{id:x,name:w,description:_,tags:C,userId:R,metadata:k,visibility:P,slug:N}=n,{settings:L}=g||{},I=P===sr.public,b=typeof k=="string"?JSON.parse(k):{},{imgUrl:T}=(b==null?void 0:b.customImg)||{},M=L?JSON.parse(L):{},{dashboardHomeId:D}=M,B=AE(),{lg:j=4,md:H=4,sm:U=6,xs:$=12}=o||{},z=h<qt.breakpoints.values.md,Z=localStorage.getItem("userId")||"",K=()=>{B==null||B.push(m?tr.viewDashboard(x):tr.publicDashboard(N))},Q=u?E.jsx(Er,{item:!0,xs:12,children:E.jsx("div",{className:"chartImg",children:E.jsxs("div",{className:"thumbnailChart",children:[E.jsx(Ca,{width:"100%",height:100}),E.jsx(Ca,{width:"100%",height:50}),E.jsx(Ca,{width:"100%",height:90}),E.jsx(Ca,{width:"100%",height:50})]})})}):E.jsx(oTe,{}),ee=()=>{zne(Z,x,g,q.DASHBOARD_SET_AS_HOME_SUCCESS),Une({id:!0})},X=async()=>{await zne(Z,void 0,g,q.DASHBOARD_UNSET_AS_HOME_SUCCESS),Une({id:!1})},te=()=>P===sr.public?q.MY_PUBLIC_DASHBOARD:P===sr.subscription?q.MY_DASHBOARD_PRIVATE_TO_MY_ORG:P===sr.private?q.MY_PRIVATE_DASHBOARD:"",J=async()=>{await Mhn(N)===q.RESPONSE_SUCCESS_STATUS&&vit(!0)};return a?Q:E.jsx(Er,{item:!0,lg:j,md:H,sm:U,xs:$,children:E.jsxs(X0,{className:r&&!z?`${e} active ${d&&"disabled"}`:`${e} ${d&&"disabled"}`,onClick:()=>!d&&t&&t(n),onDoubleClick:()=>!d&&(B==null?void 0:B.push(tr.viewDashboard(x))),children:[d&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"pinTag",children:[E.jsx(vmi,{}),"Pinned"]}),E.jsx(_n,{tooltip:q.VIEW_DASHBOARD,onClick:ne=>{ne.stopPropagation(),window.open(tr.viewDashboard(x),"_blank")},className:"viewDashboardBtn",children:E.jsx(soe,{})})]}),v&&E.jsx("div",{className:"dashboardImage",children:E.jsx(Nye,{src:v})}),E.jsx("div",{className:`chartImg ${T?"imgUrl":""}`,children:c?E.jsxs(E.Fragment,{children:[E.jsx(Nye,{src:T||Bya}),T&&E.jsx("div",{className:"thumbnailSmall",children:E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:$ya}),E.jsx("img",{src:Dya,alt:"thumbnail-sm"})]})})]}):E.jsx(hMo,{item:n,sizes:o,preview:l})}),!l&&z&&E.jsxs("div",{className:"chartOverlayInfo",children:[E.jsx(Pn,{label:w,children:E.jsx("span",{className:"chartName",children:w})}),E.jsx("p",{className:"description",children:_}),E.jsx(Ov,{tags:C==null?void 0:C.slice(0,5)})]}),S&&E.jsxs("div",{className:"chartInfo",children:[E.jsx(Pn,{label:w,children:E.jsx("span",{className:"chartName",children:w})}),E.jsx("span",{className:"chartTag",children:te()})]}),!l&&(z?E.jsx("div",{className:"chartInfo mobileCardBottom",children:E.jsxs("div",{className:"chartButtonRow",children:[E.jsx(Jt,{onClick:K,variant:"contained",children:q.VIEW_DASHBOARD}),E.jsxs("div",{className:"chartButtonRowRight",children:[E.jsx(_n,{onClick:ne=>{ne.stopPropagation(),y&&y(!0)},tooltip:P===sr.public?q.PUBLISHED:q.SHARE,children:E.jsx(r9,{})}),!f&&!p&&E.jsx(Pn,{label:I&&q.PUBLISHED_VISUAL_DELETE_TEXT("Dashboard"),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:ne=>ne.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE("Dashboard"),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${w}'`),onConfirm:ne=>{ne.stopPropagation(),cVe(x,s,g)},disabled:I},"delete")})}),R===Z&&(D!==x||!A)&&T&&E.jsx(_n,{onClick:ee,tooltip:q.SET_AS_HOME_DASHBOARD,children:E.jsx(Ian,{})}),R===Z&&D===x&&A&&E.jsx(_n,{onClick:X,tooltip:q.UNSET_AS_HOME_DASHBOARD,children:E.jsx(Pan,{})}),f&&(n==null?void 0:n.userId)!==Z&&m&&E.jsx(_n,{tooltip:q.FORK_DASHBOARD,onClick:()=>J(),children:E.jsx(GG,{})})]})]})}):E.jsxs("div",{className:"chartInfo",children:[E.jsx(Pn,{label:w,children:E.jsx("span",{className:"chartName",children:w})}),E.jsx(Pn,{label:_,children:E.jsx("p",{className:"description",children:_})}),E.jsxs("div",{className:"actionRow",children:[(n==null?void 0:n.userId)===Z&&E.jsx("span",{className:"chartTag",children:te()}),!f&&!p&&E.jsx(Pn,{label:I&&q.PUBLISHED_VISUAL_DELETE_TEXT("Dashboard"),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:ne=>ne.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE("Dashboard"),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${w}'`),onConfirm:ne=>{ne.stopPropagation(),cVe(x,s,g)},disabled:I},"delete")})})]})]}))]})})},RDt=gt.div`
  .loadingBlock {
    z-index: 2;
  }
  label {
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .chartBox {
    position: relative;
    background: ${t=>t.theme.custom.thumbnailBg};
    border: 1px solid transparent;
    box-shadow: 0px 24px 70.9994px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
    color: inherit;
    &.disabled {
      cursor: not-allowed;
      &:hover {
        transform: translateY(0);
        border-color: transparent;
      }
      .chartImg,
      .chartInfo {
        opacity: 0.4;
      }
      .pinTag {
        display: inline-flex;
      }
    }
  }
  .viewDashboardBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    height: 26px;
    width: 26px;
  }
  .pinTag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: ${t=>t.theme.custom.primaryBg};
    border-radius: 4px;
    padding: 6px 8px;
    font-size: ${t=>t.theme.custom.fontSize.font10};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    color: #fff;
    display: none;
    align-items: center;
    z-index: 1;
    svg {
      margin-right: 5px;
    }
  }
  .chartBox:hover,
  .chartBox.active {
    transform: translateY(-10px);
    border: 1px solid ${t=>t.theme.custom.chartThumbnailActive};
    box-shadow: unset;
  }
  .chartBox .chartImg {
    text-align: center;
    background: ${t=>t.theme.custom.thumbnailImgBg};
    box-shadow: unset;
    height: 200px;
    position: relative;
    overflow: hidden;
    &.imgUrl {
      > img {
        object-fit: cover;
      }
    }
    .thumbnailSmall {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 100px;
      background: ${t=>t.theme.custom.thumbnailImgBg};
    }
  }
  .chartBox .chartImg img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
  .chartBox .chartInfo {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .chartName {
      font-size: ${t=>t.theme.custom.fontSize.font12};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      color: ${t=>t.theme.custom.white.A11};
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chartTag {
      background: ${t=>t.theme.custom.tags.bg4};
      color: ${t=>t.theme.custom.tags.A3};
      font-size: ${t=>t.theme.custom.fontSize.font8};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      line-height: 12px;
      border-radius: 4px;
      padding: 4px 6px;
      white-space: nowrap;
    }
    .MuiSkeleton-root {
      height: 20px !important;
    }
  }

  .chartBox.createNew {
    align-items: center;
    justify-content: center;
    min-height: 240px;
  }
  .chartBox.createNew .addIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    background: ${t=>t.theme.custom.primaryBg};
    border-radius: 4px;
    margin-bottom: 15px;
  }
  .chartBox.createNew .addIcon svg {
    height: 24px;
    width: 24px;
  }
  ${t=>t.theme.breakpoints.up("md")} {
    min-height: 525px;
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .chartBox.createNew {
      display: none;
    }
  }
`,fMo=gt.div`
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid ${t=>t.theme.custom.white.A6};
  h2 {
    margin-bottom: 0;
    flex: 1;
    ${t=>t.theme.breakpoints.down("sm")} {
      min-width: 50%;
    }
  }
  .dashboardModalHead {
    display: flex;
    align-items: flex-start;
  }
  ${t=>t.theme.breakpoints.down("md")} {
    flex-wrap: wrap;
    gap: 10px;
    h2 {
      font-size: 1rem;
    }
  }
`,pMo=gt.div`
  position: relative;
  width: 210px;
  margin-left: auto;
  .MuiOutlinedInput-root {
    border: 0.5px solid #675b8c;
  }
  input.MuiOutlinedInput-input {
    padding-right: 35px !important;
    font-size: ${t=>t.theme.custom.fontSize.font12};
    padding: 5px 16px;
  }
  .searchIcon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    line-height: 1;
  }
  .clearSearch {
    height: 16px;
    width: 16px;
    cursor: pointer;
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    margin-left: 0;
  }
`,Nse="/assets/emptyDashboard-a312b238.png",fz="/assets/emptyDashboard-d5ab94c8.webp",lzn=[{label:"Name",dataKey:"name",width:200},{label:"Description",dataKey:"description",width:300},{label:"Last Modified",dataKey:"modified",width:180},{label:"Tags",dataKey:"tags",width:300}],mMo=[{label:"User Name",dataKey:"userId",width:200},...lzn],gMo=[{i:"__dropping-elem__",isDraggable:!0,moved:!1,static:!1,x:0,y:0}],vMo=({xl:t=2,lg:e=2,md:n=3,sm:r=4,xs:a=6})=>E.jsx(Er,{item:!0,xl:t,lg:e,md:n,sm:r,xs:a,sx:{height:"100%"},children:E.jsxs("div",{className:"chartBox",children:[E.jsx("div",{className:"chartImg",children:E.jsx("div",{className:"thumbnailChart",children:E.jsx(Ca,{sx:{mx:"auto"},width:"90%",height:180})})}),E.jsxs("div",{className:"chartInfo",children:[E.jsx(Ca,{width:"80%",height:35}),E.jsx(Ca,{width:20,height:35})]})]})}),MDt=({size:t})=>{const e=Ft.range(t);return E.jsx(E.Fragment,{children:e.map(n=>E.jsx(vMo,{xl:4,lg:4,md:4,sm:6,xs:12},n))})},AMo=({open:t,visualId:e,handleClose:n,visualType:r,visual:a})=>{const o=ho(),[s,l]=Y.useState(!1),[c,u]=Y.useState([]),[d,h]=Y.useState(!0),[f,p]=Y.useState({pageNo:1,pageSize:6,searchPattern:"",scope:o?uv.private:uv.public,sortOrder:"DESC",sortBy:"modified"}),m=Co.stringify({...ef(f)}),{data:g,error:v}=Bn.useGetAllDashboard(m,o),A=g==null?void 0:g.content,{totalPages:y=0,totalElements:S=0,last:x=!1}=(g==null?void 0:g.pageable)||{},w=!A&&!v,_=xo(),C=Y.useRef(null),R=async j=>{l(!0),await _va(j,e,o,a,h),l(!1)},k=j=>{u([]),p({...f,pageNo:1,pageSize:6,searchPattern:j}),h(!0)},P=async j=>{h(!0);const{data:H}=await Bn.getDashboardVisualsContent(j,o);A&&h(!1);const U=Ft.map(H,z=>z.id);return!!e&&U.includes(e)};Y.useEffect(()=>{(async()=>{try{if(d){const H=await Promise.all((A==null?void 0:A.map(async U=>{const $=await P(U==null?void 0:U.id);return{...U,isVisualPresent:$}}))||[]);u(H)}}catch(H){console.error("Error fetching data:",H)}})()},[A,d]);const N=Y.useMemo(()=>{var j;return((j=c||[])==null?void 0:j.map(H=>E.jsx(Mse,{className:"chartBox",item:H,handleClick:R,isSelected:!1,preview:!0,thumbnailImage:!0,isDashboardListModal:!0,isVisualPresent:H.isVisualPresent,isLoggedIn:o,sizes:{lg:4,md:4,sm:6,xs:12}},H==null?void 0:H.id)))||[]},[c,e]),L=Ft.debounce(k,1e3),I=j=>{u([]),p({...f,pageNo:1,pageSize:j})},b=j=>{u([]),p({...f,pageNo:j})},T=()=>{Mva({...a,visualId:(a==null?void 0:a.id)||"",...gMo[0]}),_.push(Qt.newDashboard)},M=()=>{C.current&&(C.current.value=""),p(j=>({...j,pageNo:1,searchPattern:""})),h(!0)},D=()=>(A==null?void 0:A.length)===0&&!w?E.jsx(RDt,{children:E.jsx(Er,{container:!0,spacing:3,direction:"row",alignItems:"strech",children:E.jsx(sf,{title:f!=null&&f.searchPattern?q.NO_RESULT_FOUND_ON_FILTER:q.EMPTY_DASHBOARD_TITLE,imgPath:Nse,imgPathWebp:fz,className:"emptyBlock",children:!(f!=null&&f.searchPattern)&&E.jsx(Jt,{variant:"contained",color:"primary",onClick:T,children:q.CREATE_NEW_DASHBOARD})})})}):null,B=()=>(A==null?void 0:A.length)!==0?E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"dashboardListing",children:E.jsxs(RDt,{children:[s&&E.jsx("div",{className:"loadingBlock",children:E.jsx(Ep,{})}),E.jsxs(Er,{container:!0,spacing:3,direction:"row",alignItems:"strech",children:[w&&E.jsx(MDt,{size:6}),!w&&A&&(A==null?void 0:A.length)>0&&(N==null?void 0:N.length)!==(A==null?void 0:A.length)&&E.jsx(MDt,{size:6}),!w&&A&&(A==null?void 0:A.length)>0&&(N==null?void 0:N.length)===(A==null?void 0:A.length)&&N,!w&&A&&(A==null?void 0:A.length)>0&&(N==null?void 0:N.length)===(A==null?void 0:A.length)&&x&&E.jsx(Er,{item:!0,lg:4,md:4,sm:6,xs:12,children:E.jsxs(X0,{onClick:T,className:"chartBox createNew",children:[E.jsx("span",{className:"addIcon",children:E.jsx(ED,{})}),q.CREATE_NEW_DASHBOARD]})})]})]})}),(N==null?void 0:N.length)>0&&E.jsx(EE,{count:y||0,page:f.pageNo,onChange:b,onPageChange:b,onPageSizeChange:I,isGotoPage:!0,isPageSize:!0,totalElements:S||0,pageSize:f.pageSize,showFirstButton:!0,showLastButton:!0,defaultSize:6})]}):null;return E.jsxs(lf,{maxWidth:"md",title:"",visible:t,isHeader:!1,onClose:n,children:[E.jsxs(fMo,{children:[E.jsx("h2",{children:q.CHOOSE_DASHBOARD_TO_PIN(ka[r])}),E.jsx("div",{className:"dashboardModalHead",children:((c==null?void 0:c.length)||(f==null?void 0:f.searchPattern))&&E.jsxs(pMo,{children:[E.jsx(gr,{inputRef:C,name:"search",placeholder:q.SEARCH_ELIPSIS_CONTEXT(q.DASHBOARDS),onChange:j=>L(j.target.value),autoComplete:"off"}),E.jsx("span",{className:"searchIcon",children:f!=null&&f.searchPattern?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:M}):E.jsx(yv,{})})]})})]}),D(),B()]})},zlt=ke.memo(AMo),yMo=gt.div`
  && {
    margin-top: 8px;
    position: relative;
    display: inline-flex;
    align-items: center;
    background: ${t=>t.theme.custom.white.A4};
    color: ${t=>t.theme.custom.white.A11};
    border-radius: 8px;
    padding: 8px 8px 8px 12px;
    overflow: hidden;
  }
  && .infoIcon {
    font-size: 16px;
    margin-right: 8px;
    color: ${t=>t.theme.custom.pink};
  }
  &&:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: calc(100% - 12px);
    background: ${t=>t.theme.custom.pink};
  }
  &&:after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: calc(100% - 20px);
    background: ${t=>t.theme.custom.pink};
    filter: blur(10px);
  }
`;function fg({message:t,theme:e,body:n}){return E.jsxs(yMo,{className:"helpText",theme:e,children:[!n&&E.jsx(cg,{className:"infoIcon"}),n||t]})}const czn=gt.div`
  .visibilityCheck {
    margin-bottom: 20px;
    .label {
      color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A11}};
      font-size: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize.font14}};
      margin-bottom: 8px;
    }
    .isPublicCheck {
      border: 1px solid #675b8c;
      border-radius: 8px;
      &.disabled {
        cursor: not-allowed;
      }
      button {
        border: 0;
        &.MuiButton-containedPrimary:hover {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
        }
        &.MuiButton-containedSecondary {
          background: transparent;
        }
        + button {
          margin-left: 0;
          border-left: 1px solid #675b8c;
        }
      }
    }
  }
  .MuiFormControl-root {
    .MuiOutlinedInput-root {
      .MuiInputAdornment-root {
        background: transparent;
        .MuiIconButton-root {
          border: 0;
          height: 24px;
          width: 24px;
          box-shadow: unset;
        }
      }
    }
  }
  .btnRow {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
  }
`,q2e=({visual:t,visualType:e,open:n,handleClose:r})=>{var C;const{visibility:a,slug:o,id:s,queryId:l}=t||{},[c,u]=Y.useState(""),[d,h]=Y.useState(!1),[f,p]=Y.useState(!1),[m,g]=Y.useState(!1),v=cva()||a,A=Y.useRef(null),y=a===sr.public;Y.useEffect(()=>{if(n&&a===sr.public){const R=window.location.origin+tr.queriesSlug(l,o);u(R)}else u(""),p(!1),A.current=null},[n]);const S=R=>{switch(R){case sr.public:WLe(sr.public);break;case sr.private:WLe(sr.private);break;case sr.subscription:WLe(sr.subscription);break}},x=R=>{var N,L;const k=((L=(N=R==null?void 0:R.target)==null?void 0:N.value)==null?void 0:L.trim())||"",P=(k==null?void 0:k.length)>0&&Zit(k);g(P),k!==c&&u(k)},w=async()=>{h(!0),await vva(s,e,c)===q.RESPONSE_SUCCESS_STATUS&&r(),h(!1)};Y.useEffect(()=>()=>{u("")},[]);const _=()=>{gN(c).then(()=>{p(!0)})};return E.jsx(lf,{title:q.PUBLISH_WIDGET(ka[e]),visible:n,maxWidth:"sm",onClose:r,children:E.jsxs(czn,{children:[E.jsxs("div",{className:"visibilityCheck",children:[E.jsx("div",{className:"label",children:"Choose the visibility for your visual"}),E.jsxs(YH,{variant:"contained",className:`isPublicCheck ${a===sr.public&&"disabled"}`,children:[E.jsx(Jt,{variant:"contained",onClick:()=>{S(sr.private)},color:v===sr.public||v===sr.subscription?"secondary":"primary",disabled:a===sr.public,children:q.PRIVATE}),E.jsx(Jt,{variant:"contained",onClick:()=>{S(sr.subscription)},color:v===sr.subscription?"primary":"secondary",disabled:a===sr.public,children:q.PRIVATE_TO_MY_ORG}),E.jsx(Jt,{variant:"contained",onClick:()=>{S(sr.public)},color:v===sr.public?"primary":"secondary",children:q.PUBLIC})]})]}),v===(sr==null?void 0:sr.public)&&E.jsxs(E.Fragment,{children:[E.jsx(gr,{label:"Unique Visual Name",required:!0,placeholder:"Enter Unique Visual Name",ishelpertext:1,helperText:!y&&`${c==null?void 0:c.length}/${Qr}`,value:c,warningText:!y&&q.MAX_LENGTH_ERROR("slug name",Qr),hasMax:!0,maxValue:Qr,onChange:x,errorText:m&&q.SLUG_NAME_ERROR("Slug"),ref:A,inputProps:{readOnly:y},endAdornment:o?E.jsx(Kx,{position:"end",children:E.jsx(_n,{onClick:()=>window.open(window.location.origin+tr.queriesSlug(l,o),"_blank"),children:E.jsx(oN,{})})}):null}),y&&E.jsx(fg,{message:q.PUBLISHED_TEXT((C=ka[e])==null?void 0:C.toLowerCase())}),v===sr.public&&!y&&E.jsx(fg,{message:q.PUBLISH_CONFIRM_MESSAGE(ka[e])})]}),E.jsxs("div",{className:"btnRow",children:[E.jsx(Jt,{disabled:d,variant:"contained",color:"secondary",onClick:r,className:"formBtn cancel",children:q.CANCEL}),!y&&E.jsx(Jt,{disabled:(c==null?void 0:c.length)>=50||d||m||v===sr.public&&!(c!=null&&c.trim()),variant:"contained",color:"primary",onClick:w,className:"formBtn submit",children:d?E.jsx("img",{src:ws,alt:"loading",height:36}):q.SUBMIT}),y&&E.jsx(Jt,{type:"button",variant:"contained",color:"primary",onClick:_,children:f?q.COPIED:q.COPY_LINK})]})]})})};var Glt={},bMo=As;Object.defineProperty(Glt,"__esModule",{value:!0});var AQe=Glt.default=void 0,xMo=bMo(Ps()),EMo=E;AQe=Glt.default=(0,xMo.default)((0,EMo.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");var Vlt={},SMo=As;Object.defineProperty(Vlt,"__esModule",{value:!0});var bge=Vlt.default=void 0,wMo=SMo(Ps()),_Mo=E;bge=Vlt.default=(0,wMo.default)((0,_Mo.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarBorderOutlined");const TMo=gt.div`
  .popularityContainer {
    display: inline-block;
    border-radius: 5px;
    margin-bottom: ${t=>t.size==="md"?"0px":"8px"};
    margin-right: 10px;
    .MuiButtonBase-root {
      padding: 0;
      box-shadow: none;
      border: none;
      background: none !important;
      :hover {
        background: none !important;
      }
      .MuiSvgIcon-root {
        height: ${t=>t.size==="md"?"40px !important":"30px"};
        width: ${t=>t.size==="md"?"40px !important":"30px"};
      }
    }

    p {
      display: inline-block;
      margin-bottom: 0;
      color: ${t=>t.theme.custom.greyText.A13};
      font-weight: ${t=>t.theme.custom.fontWeight.rg} !important;
      font-size: ${t=>t.size==="lg"?"15px":""} !important;
      vertical-align: middle;
      padding-right: 7px;
    }
  }
`,Klt=({count:t,filled:e,onClick:n,size:r="lg"})=>{const a=ho(),[o,s]=Y.useState(2),[l,c]=Y.useState(e),[u,d]=Y.useState(t),[h,f]=Y.useState("");Y.useEffect(()=>{d(t),c(e)},[t,e]);let p=E.jsx(bge,{});const m=Ft.debounce(()=>{if(a===!1){co(!0);return}const A=!l;u!==void 0&&d(A?u+1:u-1),A===!1&&(p=E.jsx(bge,{}),s(2),f("")),c(A),n(A)},200),g=()=>s(0),v=()=>{s(1)};return o===0&&l===!1?p=E.jsx(AQe,{}):o===1&&l===!1?p=E.jsx(bge,{}):l&&(setTimeout(()=>{f("Unfavorite")},500),p=E.jsx(AQe,{})),E.jsx(TMo,{size:r,children:E.jsxs("div",{className:"popularityContainer",children:[E.jsx(Pn,{label:l===!1?"":h,children:E.jsx(_n,{onClick:m,onMouseEnter:g,onMouseLeave:v,children:p})}),E.jsx("p",{children:u})]})})};function CMo({chartDetails:t,isLoading:e,fieldError:n,isExplore:r=!1,handleCallback:a,onPopularityPress:o,likeCount:s,liked:l}){const{queryId:c,metadata:u,id:d,name:h,description:f,tags:p,visualType:m,userId:g,visibility:v}=t,A=Coe(c),{dataframesObject:y={},error:S,queryData:x,lastRefreshTime:w,isRefreshViewLoading:_=!1,data:C}=A,[R,k]=Y.useState(!1),{chartType:P,fields:N,...L}=u||{},I=xo(),b=ho(),T=C||[],M=Ft.isEmpty(A)||(A==null?void 0:A.isLoading),D=Ft.isEmpty(A)||(A==null?void 0:A.isLoading),B={...L},j=pV(),H=localStorage.getItem("userId"),U=(A==null?void 0:A.columns)||[],$=qw(),[z,Z]=Y.useState(!1),{isMaterializedView:K=!1}=x||{},Q=w&&q6(w);Y.useEffect(()=>{Eva()},[c]),Y.useEffect(()=>{A!=null&&A.error&&Sva(!1)},[A==null?void 0:A.error]);const ee=()=>E.jsxs("div",{className:"leftBlock",children:[E.jsx(Ca,{variant:"text",width:80,height:20}),E.jsx(Ca,{variant:"text",width:100,height:20}),E.jsx("div",{className:"user",children:E.jsx(Ca,{variant:"rectangular",width:50,height:50})}),E.jsx("h1",{className:"chartname",children:E.jsx(Ca,{variant:"text",width:300,height:50})}),E.jsxs("p",{children:[E.jsx(Ca,{width:400,height:20}),E.jsx(Ca,{width:400,height:20}),E.jsx(Ca,{width:400,height:20})]}),E.jsx("div",{className:"tagList",children:E.jsx(Ca,{variant:"rectangular",width:200,height:40})})]}),X=v===sr.public,te=async ne=>{await $_e(ne)===q.RESPONSE_SUCCESS_STATUS&&F_e(!0)},J=ne=>{j!=null&&j.id&&o&&o(ne,j==null?void 0:j.id)};return E.jsxs(Mya,{children:[E.jsxs(Er,{container:!0,spacing:3,direction:"row",justifyContent:"center",children:[E.jsx(Er,{item:!0,sm:5,xs:12,children:e?ee():E.jsxs("div",{className:"leftBlock",children:[E.jsxs("div",{className:"createdBy",children:[E.jsxs("div",{className:"topRow",children:[E.jsx("p",{children:q.CREATED_BY}),K&&!S&&Q&&!r&&E.jsxs("div",{className:"tagView",children:[E.jsxs("div",{className:"tag materializedTag",children:[q.MATERIALIZED_VIEW,E.jsx($mi,{})]}),E.jsxs("div",{className:"tag timeTag",children:[Q," ",E.jsx($6,{})]}),E.jsx(Pn,{label:_?q.REFRESHING:q.REFRESH_RESULTS,children:E.jsx("span",{children:E.jsx(_n,{onClick:ne=>{ne.stopPropagation(),V6(x)},disabled:_,children:_?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(_v,{})})})})]})]}),E.jsxs("div",{className:"user",children:[E.jsx("div",{className:"userImg",children:E.jsx("img",{src:g?Z_e(g):qfn,alt:"user"})}),E.jsx(Pn,{label:g,children:E.jsx("div",{className:"userName",children:E.jsx("span",{children:g})})})]})]}),E.jsx(Pn,{label:h,children:E.jsx("h1",{className:"chartname",children:h})}),E.jsx("div",{className:"tagList",children:(p==null?void 0:p.length)>0&&E.jsx(Ov,{tags:p})}),E.jsx("div",{className:"description",children:E.jsx("p",{children:E.jsx(Yfn,{text:f,textLength:ugi})})}),E.jsxs("div",{className:"buttonRow",children:[b&&E.jsx(Jt,{onClick:()=>k(!0),variant:"contained",disabled:(A==null?void 0:A.warning)||(A==null?void 0:A.error)||D||M,children:q.PIN_TO_DASHBOARD(ka[m]?ka[m]:"")}),(j==null?void 0:j.userId)===H&&!r&&E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:v===sr.public?q.PUBLISHED:q.PUBLISH(ka[m]),children:E.jsx("span",{children:E.jsx(_n,{onClick:()=>{Z(!0)},children:E.jsx(r9,{})})})}),E.jsx(q2e,{open:z,handleClose:()=>Z(!1),visualType:m,visual:t})]}),(j==null?void 0:j.userId)===H&&!r&&E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:X&&q.PUBLISHED_VISUAL_DELETE_TEXT(ka[m]),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:ne=>ne.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE(ka[m]),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${h}' `),description:q.DELETE_CHART_DESCRIPTION,onConfirm:ne=>{ne.stopPropagation(),QU(d,m,a,h)},disabled:X},"delete")})}),E.jsx(_n,{onClick:()=>{if(A!=null&&A.error){I.push(tr.queriesPath(c));return}I.push(tr.updateChart(d))},disabled:D||M,tooltip:q.EDIT_WIDGET(ka[m]),children:E.jsx(gP,{})})]}),(j==null?void 0:j.userId)!==H&&r&&b&&E.jsx(_n,{onClick:()=>(j==null?void 0:j.slug)&&te(j.slug),tooltip:q.FORK_VISUAL,disabled:(A==null?void 0:A.warning)||(A==null?void 0:A.error)||D||M,children:E.jsx(GG,{})})]})]})}),E.jsx(Er,{item:!0,sm:7,xs:12,children:E.jsxs("div",{className:"rightBlock",children:[r===!0&&E.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginRight:"5px"},children:E.jsx(Klt,{filled:l,count:s,onClick:J})}),E.jsx("div",{className:m===Di.COUNTERCARD?"card counterCard":"card",children:E.jsx(Nya,{className:"cardBody",onClick:()=>{A!=null&&A.error&&I.push(tr.queriesPath(c)),A!=null&&A.warning&&I.push(tr.updateChart(d))},style:{cursor:A!=null&&A.error||A!=null&&A.warning?"pointer":"default"},children:(t==null?void 0:t.visualType)!==Di.TABLE?E.jsx(l8,{echartId:`chart-preview-${O0.uuid()}`,chartID:"chart-preview",chartFields:Ft.isEmpty($)?N:$,isRunning:!C&&!S||e,queryError:(A==null?void 0:A.error)&&(A==null?void 0:A.message),queryWarning:n||(A==null?void 0:A.warning)&&(A==null?void 0:A.message),chartName:h,chartType:P,columns:U,data:T,visualType:m,counterFields:u,dataframesObject:y,isDetail:!0,isExplore:r,counterTooltipPlacement:"bottom-start",showCounterMetric:!0}):E.jsx(TP,{columns:U,rowCount:2,isExplore:r,isRunning:M||D||e,queryError:(A==null?void 0:A.error)&&(A==null?void 0:A.message),data:T,tableHeight:300,tableFields:B})})})]})})]}),R&&m&&E.jsx(zlt,{visualId:d,open:R,handleClose:()=>k(!1),visualType:m,visual:t})]})}const uzn=ke.memo(CMo);function dzn({chartName:t,chartDescription:e,metadata:n,handleClick:r,visualId:a,handleCallback:o,isSelected:s,queryId:l,visualType:c,tags:u=[],isExplore:d=!1,widget:h,userId:f,isPublic:p=!1}){const{chartType:m}=n,[g,v]=Y.useState(!1),A=Coe(l),{width:y}=Is(),S=xo(),x=y<qt.breakpoints.values.md,w=localStorage.getItem("userId"),_=ho(),C=qw(),[R,k]=Y.useState(!1),P=Ft.isEmpty(A)||(A==null?void 0:A.isLoading),N=Ft.isEmpty(A)||(A==null?void 0:A.isLoading),L=async Z=>{await $_e(Z)===q.RESPONSE_SUCCESS_STATUS&&F_e(!0)};Y.useEffect(()=>(l&&Ioe(a,l,c,n,_,d),()=>{}),[]);const{data:I,columns:b,error:T,message:M,warning:D,dataframesObject:B={},queryData:j,lastRefreshTime:H,isRefreshViewLoading:U=!1}=A||{},{isMaterializedView:$=!1}=j||{},z=H&&q6(H);return E.jsxs(E.Fragment,{children:[g&&m&&E.jsx(zlt,{visualId:a,open:g,visual:h,handleClose:()=>v(!1),visualType:c}),E.jsx(Er,{item:!0,lg:2,md:3,sm:6,xs:12,children:E.jsxs(X0,{className:s&&!x?"chartBox active":"chartBox",onClick:Z=>{Z.stopPropagation(),!x&&r(A)},children:[x&&E.jsxs("div",{className:"chartInfo",children:[E.jsx("div",{className:"chartBasicDetail",children:E.jsx(Pn,{label:t,children:E.jsx("span",{className:"chartName",children:t})})}),E.jsx(Ov,{tags:u})]}),E.jsx("div",{className:"chartImg",children:c!==Di.TABLE&&E.jsx("div",{className:"chart",children:E.jsx(l8,{chartID:"chart-preview",chartFields:Ft.isEmpty(C)?n==null?void 0:n.fields:C,isRunning:!I&&!T,queryError:T&&M,queryWarning:D&&M,chartType:m,columns:b,isPreview:!0,data:I,visualType:c,dataframesObject:B,counterFields:n,isExplore:d})})}),x?E.jsxs("div",{className:"chartInfo mobileCardBottom",children:[$&&!T&&z&&!d&&E.jsxs("div",{className:"chartTag timeTag",children:[z," ",E.jsx($6,{})]}),E.jsxs("div",{className:"chartButtonRow",children:[!T&&!D&&E.jsx(Jt,{variant:"contained",onClick:Z=>{Z.stopPropagation(),v(!0)},className:"pinBtn",disabled:P||N,children:q.PIN_TO_DASHBOARD(ka[c])}),E.jsxs("div",{className:"chartButtonRowRight",children:[$&&!T&&!d&&E.jsx(Pn,{label:U?q.REFRESHING:q.REFRESH_RESULTS,children:E.jsx("span",{children:E.jsx(_n,{onClick:Z=>{Z.stopPropagation(),V6(j)},disabled:U,children:U?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(_v,{})})})}),f===w&&!d&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:()=>{k(!0)},disabled:(h==null?void 0:h.visibility)===sr.public,children:E.jsx(r9,{})}),E.jsx(q2e,{open:R,handleClose:()=>k(!1),visualType:c,visual:h})]}),f===w&&!d&&E.jsx(_n,{onClick:Z=>{if(Z.stopPropagation(),T){S.push(tr.queriesPath(l));return}r(A),S.push(tr.updateChart(a))},children:E.jsx(gP,{})}),!d&&E.jsx(Pn,{label:p&&q.PUBLISHED_VISUAL_DELETE_TEXT(ka[c]),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:Z=>Z.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE(ka[c]),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${t}' `),description:q.DELETE_CHART_DESCRIPTION,onConfirm:Z=>{Z.stopPropagation(),QU(a,c,o,t)},disabled:p},"delete")})}),d&&f!==w&&!T&&!D&&_&&E.jsx(_n,{onClick:()=>(h==null?void 0:h.slug)&&L(h.slug),tooltip:q.FORK_VISUAL,disabled:P||N,children:E.jsx(GG,{})})]})]})]}):E.jsxs("div",{className:"chartInfo",children:[E.jsx(Pn,{label:t,children:E.jsx("span",{className:"chartName",children:t})}),E.jsx(Pn,{label:e,children:E.jsx("p",{className:"description",children:e})}),E.jsxs("div",{className:"actionRow",children:[f===w&&d&&E.jsxs("span",{className:"chartTag",children:["My ",ka[c]]}),$&&!T&&z&&!d&&E.jsxs("div",{className:"chartTag timeTag",style:{fontSize:"8px"},children:[z," ",E.jsx($6,{})]}),E.jsxs("div",{className:"actionBtn",children:[$&&!T&&z&&!d&&E.jsx(Pn,{label:U?q.REFRESHING:q.REFRESH_RESULTS,children:E.jsx("span",{children:E.jsx(_n,{onClick:Z=>{Z.stopPropagation(),V6(j)},disabled:U,children:U?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(_v,{})})})}),!d&&E.jsx(Pn,{label:p&&q.PUBLISHED_VISUAL_DELETE_TEXT(ka[c]),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:Z=>Z.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE(ka[c]),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${t}' `),description:q.DELETE_CHART_DESCRIPTION,onConfirm:Z=>{Z.stopPropagation(),QU(a,c,o,t)},disabled:p},"delete")})})]})]})]})]})})]})}const Wlt=gt.div`
  && {
    opacity: ${t=>t.disabled?.4:1};
  }
  .defaultTable {
    publishBtn {
      margin-right: 8px;
    }
  }
  &.droppableWidget {
    .chartBox {
      .emptyDataMsg {
        display: none;
      }
    }
    &:not(:first-child) {
      margin-top: 24px;
    }
  }

  && .listhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
  }

  .chartBox,
  .chart,
  .thumbnailChart {
    cursor: ${t=>t.disabled?"no-drop":"pointer"} !important;
  }
  &&.dashboardView {
    margin-top: 0;
  }
  &&.dashboardView .thumbnailChart,
  &&.dashboardView .chartsDisplay {
    height: ${t=>t.boxHeight?`${t.boxHeight-72}px`:"224px"} !important;
    padding: 8px;
  }
  &&.dashboardView .chartInfo {
    display: flex;
    padding-bottom: 0px;
    align-items: center;
    justify-content: space-between;
  }
  &&.dashboardView .chartBox:hover {
    transform: translateY(0);
  }
  label {
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .chartBox {
    background: ${t=>t.theme.custom.thumbnailBg};
    border: 1px solid transparent;
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
    color: inherit;
  }
  .thumbnailChart {
    height: 146px !important;
    text-align: center;
    p {
      font-size: ${t=>t.theme.custom.fontSize.font10};
    }
    h2 {
      font-size: ${t=>t.theme.custom.fontSize.font12};
    }
    .strippedTable {
      margin-top: 0;
      height: 100%;
    }
  }
  .thumbnailChart .alertMessageBlock {
    height: unset;
    padding: 8px;
    .alertError .msgBlock .message {
      -webkit-line-clamp: 1;
    }
  }
  .chartBox:hover,
  .chartBox.active {
    background: ${t=>t.theme.custom.thumbnailBgHover};
    border: 1px solid ${t=>t.theme.custom.chartThumbnailActive};
    box-shadow: unset;
    transform: translateY(-10px);
  }
  .chartBox .chartImg {
    cursor: pointer;
    box-shadow: unset;
    color: inherit;
  }
  .chartBox .chartImg.tableView {
    padding: 12px 12px 0 12px;
    .strippedTable {
      .copyCellValueBtn {
        display: none;
      }
    }
    p {
      text-align: center;
    }
  }
  .chartBox .chartImg .chart canvas {
    pointer-events: none;
    max-width: 100%;
  }
  .chartBox .chartInfo {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: ${t=>{var e;return t.$useImgColors&&`${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}
       !important`}};
    }
  }
  .chartBox .chartInfo .chartName {
    font-size: ${t=>t.theme.custom.fontSize.font12};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    color: ${t=>t.theme.custom.white.A11};
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chartBox .chartInfo .chartTag {
    background: ${t=>t.theme.custom.tags.bg4};
    color: ${t=>t.theme.custom.tags.A3};
    font-size: ${t=>t.theme.custom.fontSize.font8};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    line-height: 12px;
    border-radius: 4px;
    padding: 4px 6px;
    white-space: nowrap;
    &.timeTag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      line-height: 14px;
      background: ${t=>t.theme.custom.tags.A4};
      color: ${t=>t.theme.custom.white.A11};
      border: 1px solid ${t=>t.theme.custom.tags.bg5};
      font-size: ${t=>t.theme.custom.fontSize.font10};
      svg {
        height: 14px;
      }
      @media (min-width: 1200px) and (max-width: 1300px) {
        font-size: ${t=>t.theme.custom.fontSize.font8};
      }
    }
  }
  .chartBox .chartInfo .description {
    font-size: ${t=>t.theme.custom.fontSize.font12};
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .chartBox .chartInfo .actionRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    .actionBtn {
      margin-left: auto;
      button {
        height: 24px;
        width: 24px;
      }
      .deleteWidget {
        margin-left: 6px;
      }
    }
  }
  .chartBox .tableView .strippedTable {
    margin-top: 0;
    height: 180px;
  }
  .tableListView .MuiTableRow-root {
    cursor: pointer;
    .chartTag {
      .timeTag {
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        border-radius: 4px;
        padding: 4px 6px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        line-height: 14px;
        background: ${t=>t.theme.custom.tags.A4};
        color: ${t=>t.theme.custom.white.A11};
        border: 1px solid ${t=>t.theme.custom.tags.bg5};
        font-size: ${t=>t.theme.custom.fontSize.font10};
        svg {
          height: 14px;
        }
      }
      button {
        height: 20px;
        width: 20px;
        border: 0;
        margin-left: 4px;
        box-shadow: unset;
      }
    }
  }
  .loadingBlock {
    min-height: 280px;
    text-align: center;
    width: 100%;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .chartInfo.mobileCardBottom {
    background: radial-gradient(
          10.64% 15.13% at 97.13% 0%,
          rgba(196, 217, 255, 0.1) 0%,
          rgba(97, 155, 255, 0) 100%
        )
        /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,
      linear-gradient(
        276.24deg,
        rgba(196, 217, 255, 0.1) 4.06%,
        rgba(97, 155, 255, 0) 36.48%
      ),
      rgba(66, 79, 150, 0.2);
    .chartTag {
      align-self: flex-start;
    }
  }
  .chartButtonRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .pinBtn {
      padding: 6px;
    }
  }
  .chartButtonRow button + button {
    margin-left: 8px;
  }
  .chartButtonRow .chartButtonRowRight {
    display: flex;
    align-items: center;
    .publishBtn {
      margin-right: 8px;
    }
    .deleteWidget {
      margin-left: 8px;
    }
  }
  .chartButtonRow button {
    border-radius: 2px;
    height: 30px;
  }
  .chartButtonRow .chartButtonRowRight button {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    width: 30px;
    padding: 0;
    color: rgb(255 255 255 / 70%);
    svg {
      width: 14px;
      height: 14px;
    }
  }
  .chartBasicDetail {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  .chartBasicDetail .chartCreatedText {
    display: flex;
    flex-direction: column;
    line-height: 16px;
    text-align: right;
    font-size: ${t=>t.theme.custom.fontSize.font10};
    font-family: ${t=>t.theme.typography.fontFamily};
    font-weight: ${t=>t.theme.custom.fontWeight.rg};
    color: ${t=>t.theme.custom.greyText.A9};
    white-space: nowrap;
    margin-left: 10px;
    & span {
      text-transform: uppercase;
      font-size: ${t=>t.theme.custom.fontSize.font12};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
    }
  }
  .chartBox .chartInfo .chartBasicDetail .chartName {
    font-size: 16px;
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    color: ${t=>t.theme.custom.white.A1};
  }
  ${t=>t.theme.breakpoints.down("xl")} {
    .chartBox .chartInfo {
      padding: 8px;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .MuiGrid-container .MuiGrid-item .tableMobileCard:before {
      content: '';
      position: absolute;
      width: 3px;
      height: 100%;
      left: 0;
      top: 0;
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-4) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pink}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-3) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.mint}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-2) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.blue}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-1) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
    }
    .mobileChartsGrid {
      margin-top: -10px;
    }
    .chartBox:hover,
    .chartBox.active {
      transform: unset;
    }
    .chartBox .chartImg {
      height: 100%;
    }
    .chartBox .chartInfo .tagList {
      margin-top: 5px;
    }
  }
`;function hzn({tableName:t,tableDescription:e,metadata:n,handleClick:r,visualId:a,handleCallback:o,isSelected:s,queryId:l,visualType:c,tags:u=[],isPreview:d,widget:h,userId:f,isExplore:p=!1,isPublic:m=!1}){const g=Coe(l),{width:v}=Is(),[A,y]=Y.useState(!1),S=xo(),x=localStorage.getItem("userId"),w=ho(),[_,C]=Y.useState(!1);Y.useEffect(()=>(Ioe(a,l,c,n,w,p),()=>{}),[]);const{data:R,columns:k,error:P,message:N,queryData:L,lastRefreshTime:I,isRefreshViewLoading:b=!1}=g||{},{isMaterializedView:T=!1}=L||{},M=q6(I),{chartType:D,fields:B,...j}=n||{},H={...j},U=async $=>{await $_e($)===q.RESPONSE_SUCCESS_STATUS&&F_e(!0)};return E.jsxs(E.Fragment,{children:[A&&c&&E.jsx(zlt,{visual:h,visualId:a,open:A,handleClose:()=>y(!1),visualType:c}),E.jsx(Er,{item:!0,xl:4,lg:6,md:6,sm:6,xs:12,children:E.jsxs(X0,{className:s?"chartBox active":"chartBox",onClick:$=>{$.stopPropagation(),v>=qt.breakpoints.values.md&&r(g)},children:[v<qt.breakpoints.values.md&&E.jsxs("div",{className:"chartInfo",children:[E.jsx("div",{className:"chartBasicDetail",children:E.jsx(Pn,{label:t,children:E.jsx("span",{className:"chartName",children:t})})}),E.jsx(Ov,{tags:u})]}),E.jsx("div",{className:"chartImg tableView",children:E.jsx("div",{className:"chart",children:E.jsx(TP,{columns:k,rowCount:5,isRunning:!R&&!P,queryError:P&&N,data:R,tableHeight:150,tableFields:H,isPreview:d})})}),v<qt.breakpoints.values.md?E.jsxs("div",{className:"chartInfo mobileCardBottom",children:[T&&!P&&!p&&E.jsxs("div",{className:"chartTag timeTag",children:[M," ",E.jsx($6,{})]}),E.jsxs("div",{className:"chartButtonRow",children:[!P&&E.jsx(Jt,{variant:"contained",onClick:$=>{$.stopPropagation(),y(!0)},className:"pinBtn",disabled:!R,children:q.PIN_TO_DASHBOARD(ka[c])}),E.jsxs("div",{className:"chartButtonRowRight",children:[T&&!P&&E.jsx(Pn,{label:b?q.REFRESHING:q.REFRESH_RESULTS,children:E.jsx("span",{children:E.jsx(_n,{onClick:$=>{$.stopPropagation(),V6(L)},disabled:b,children:b?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(_v,{})})})}),f===x&&!p&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:()=>{C(!0)},disabled:(h==null?void 0:h.visibility)===sr.public,children:E.jsx(r9,{})}),E.jsx(q2e,{open:_,handleClose:()=>C(!1),visualType:c,visual:h})]}),f===x&&!p&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:$=>{if($.stopPropagation(),P){S.push(tr.queriesPath(l));return}r(g),S.push(tr.updateChart(a))},children:E.jsx(gP,{})}),E.jsx(Pn,{label:m&&q.PUBLISHED_VISUAL_DELETE_TEXT("Dataset"),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:$=>$.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE("Dataset"),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${t}' `),description:q.DELETE_CHART_DESCRIPTION,onConfirm:$=>{$.stopPropagation(),QU(a,c,o,t)},disabled:m},"delete")})})]}),p&&f!==x&&!P&&w&&E.jsx(_n,{onClick:()=>(h==null?void 0:h.slug)&&U(h.slug),tooltip:q.FORK_VISUAL,disabled:!R,children:E.jsx(GG,{})})]})]})]}):E.jsxs("div",{className:"chartInfo",children:[E.jsx(Pn,{label:t,children:E.jsx("span",{className:"chartName",children:t})}),E.jsx(Pn,{label:e,children:E.jsx("p",{className:"description",children:e})}),E.jsxs("div",{className:"actionRow",children:[f===x&&p&&E.jsxs("span",{className:"chartTag",children:["My ",ka[c]]}),T&&!P&&M&&!p&&E.jsxs("div",{className:"chartTag timeTag",children:[M," ",E.jsx($6,{})]}),E.jsxs("div",{className:"actionBtn",children:[T&&!P&&!p&&E.jsx(Pn,{label:b?q.REFRESHING:q.REFRESH_RESULTS,children:E.jsx("span",{children:E.jsx(_n,{onClick:$=>{$.stopPropagation(),V6(L)},disabled:b,children:b?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(_v,{})})})}),!p&&E.jsx(Pn,{label:m&&q.PUBLISHED_VISUAL_DELETE_TEXT("Dataset"),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:$=>$.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE(q.DATASET),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${t}' `),description:q.DELETE_CHART_DESCRIPTION,onConfirm:$=>{$.stopPropagation(),QU(a,c,o,t)},disabled:m},"delete")})})]})]})]})]})})]})}var Qlt={},kMo=As;Object.defineProperty(Qlt,"__esModule",{value:!0});var Y2e=Qlt.default=void 0,RMo=kMo(Ps()),MMo=E;Y2e=Qlt.default=(0,RMo.default)((0,MMo.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const fzn=[{label:"Name",dataKey:"name",width:200},{label:"Description",dataKey:"description",width:300},{label:"Type",dataKey:"type",width:180},{label:"Last Modified",dataKey:"modified",width:180},{label:"Tags",dataKey:"tags",width:300},{label:"Query Type",dataKey:"queryType",width:180}],NMo=[{label:"User Name",dataKey:"userId",width:200},...fzn.filter(t=>!["queryType"].includes(t.dataKey))],pzn=({content:t,isLoading:e=!1,onClick:n,handleCallback:r,handleSortBy:a,queryParams:o,selectedChartId:s,isExplore:l=!1})=>{const[c,u]=Y.useState(!1),d=R=>(R==null?void 0:R.name)||"",h=ho(),f=(R,k)=>{a(R==="type"?"visualType":R,k==="ASC"?"DESC":"ASC")},p=R=>{var P;if((R==null?void 0:R.visualType)!==Di.GRAPH)return((P=R==null?void 0:R.visualType)==null?void 0:P.toLowerCase())||"";let{metadata:k}=R;return k=T2(JSON.parse(k))||{},XU((k==null?void 0:k.chartType)||"")||""},m=({description:R=""})=>R,g=localStorage.getItem("userId"),v=()=>o!=null&&o.sortBy?o.sortBy==="visualType"?"type":o.sortBy:"",A=({modified:R})=>q6(R),y=({tags:R})=>(R==null?void 0:R.length)>0&&E.jsx(Ov,{tags:R}),S=R=>{n(R)},x=({queryId:R})=>{const k=Coe(R),{error:P,queryData:N,lastRefreshTime:L,isRefreshViewLoading:I=!1}=k||{},{isMaterializedView:b}=N||{},T=L&&q6(L);return E.jsx("div",{children:!P&&T&&!l&&E.jsx("div",{className:"chartTag refreshValue",children:b&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"tag timeTag",children:[T," ",E.jsx($6,{})]}),E.jsx(Pn,{label:I?q.REFRESHING:q.REFRESH_RESULTS,children:E.jsx("span",{children:E.jsx(_n,{onClick:M=>{M.stopPropagation(),V6(N)},disabled:I,children:I?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(_v,{})})})})]})})})},w=({userId:R})=>B1a(R),_=async R=>{await $_e(R)===q.RESPONSE_SUCCESS_STATUS&&F_e(!0)},C=R=>E.jsxs(E.Fragment,{children:[(R==null?void 0:R.userId)===g&&!l&&E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:(R==null?void 0:R.visibility)===sr.public?q.PUBLISHED:q.PUBLISH(ka[R==null?void 0:R.visualType]),children:E.jsx("span",{className:"publishBtn",children:E.jsx(_n,{onClick:k=>{k.stopPropagation(),u(!0)},children:E.jsx(r9,{})})})}),E.jsx(q2e,{open:c,handleClose:()=>u(!1),visualType:(R==null?void 0:R.visualType)||"",visual:R})]}),E.jsx(_n,{onClick:k=>{k.stopPropagation(),n(R)},tooltip:"View",children:E.jsx(Y2e,{})}),l&&(R==null?void 0:R.userId)!==g&&h&&E.jsx(_n,{onClick:()=>{R!=null&&R.slug&&_(R.slug)},tooltip:"Fork",children:E.jsx(GG,{})}),!l&&E.jsx(Pn,{label:R.visibility===sr.public&&q.PUBLISHED_VISUAL_DELETE_TEXT(ka[R==null?void 0:R.visualType]),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE(`${ka[R==null?void 0:R.visualType]}`),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${(R==null?void 0:R.name)||""}' ${(R==null?void 0:R.visualType)||""} `),description:q.DELETE_CHART_DESCRIPTION,onConfirm:k=>{k.stopPropagation(),QU(R.id,R.visualType,r,R==null?void 0:R.name)},disabled:R.visibility===sr.public},"expire")})})]});return E.jsx(tf,{data:t,columns:(o==null?void 0:o.activeTab)!=="explore"?fzn:NMo,isAction:!0,actionComponent:R=>C(R),actionColumnName:"Actions",rowRender:[{dataKey:"userId",func:w},{dataKey:"name",func:d},{dataKey:"modified",func:A},{dataKey:"tags",func:y},{dataKey:"description",func:m},{dataKey:"type",func:p},{dataKey:"queryType",func:x}],loading:e,rowSize:75,bodyHeight:300,onItemsSort:f,sortBy:v(),sortOrder:(o==null?void 0:o.sortOrder)||"",tableRowClickHandler:S,activeRow:{key:"id",value:s},nonSortableColumns:{tags:!0}})},IMo=t=>{const{setQueryParams:e,queryParams:n,isListView:r,handleSortBy:a,defaultPageSize:o,handleSelected:s}=t,l=xo(),c=ho(),u=pV(),[d,h]=Y.useState(null),[f,p]=Y.useState(void 0),{width:m}=Is(),g=Co.stringify({...ef(n)}),{data:v,mutate:A,error:y=void 0,isValidating:S}=Bn.getVisuals(g,c),x=!v&&!y||S,w=v==null?void 0:v.content,{totalPages:_=0,totalElements:C=0}=(v==null?void 0:v.pageable)||{};Y.useEffect(()=>{if(!Ft.isEmpty(w)){const T=w&&((w==null?void 0:w.find(D=>D.id===n.selected))||w[0]),M=T!=null&&T.metadata?T2(JSON.parse(T.metadata)):{};T&&jne({...T,metadata:M}),T&&h(T==null?void 0:T.id),T&&s(T==null?void 0:T.id)}},[w]);const R=async(T,M,D)=>{await jne({...T,metadata:M,resultState:D}),s(T==null?void 0:T.id)},k=()=>{h(null);const{numberOfElements:T=0,first:M=!1,number:D=0}=(v==null?void 0:v.pageable)||{};T===1&&!M&&e({...n,pageNo:D}),A&&A()},P=T=>{const{visualType:M,id:D}=T;let{metadata:B}=T;M!==Di.TABLE?B=T2(JSON.parse(B)):B=JSON.parse(B),B=B||{},R(T,B,{}),Lx(),h(D)},N=Y.useMemo(()=>w==null?void 0:w.map(T=>{let{metadata:M}=T;const{name:D,description:B,id:j,queryId:H,visualType:U,tags:$,userId:z,visibility:Z}=T;return U!==Di.TABLE?M=M&&T2(JSON.parse(M)):M=M&&JSON.parse(M),M=M||{},E.jsxs(ke.Fragment,{children:[U!==Di.TABLE&&E.jsx(dzn,{widget:T,userId:z,visualType:U||Di.GRAPH,chartName:D,chartDescription:B||"",metadata:M,visualId:j,tags:$,queryId:H,handleCallback:k,handleClick:K=>{if(K.error||Ft.isEmpty(K==null?void 0:K.data)){l.push(tr.queriesPath(H));return}if(K.warning){R(T,M,K),l.push(tr.updateChart(K.id));return}R(T,M,K),h(T==null?void 0:T.id),Lx()},isSelected:(T==null?void 0:T.id)===d,isPublic:Z===sr.public},j),U===Di.TABLE&&E.jsx(hzn,{widget:T,userId:z,visualType:U,tableName:T==null?void 0:T.name,tableDescription:(T==null?void 0:T.description)||"",metadata:M,visualId:j,queryId:H,tags:$,handleCallback:k,handleClick:K=>{if(K.error||Ft.isEmpty(K==null?void 0:K.data)){l.push(tr.queriesPath(H));return}if(K.warning){l.push(tr.updateChart(K.id));return}R(T,M,K),Lx(),h(T==null?void 0:T.id)},isSelected:(T==null?void 0:T.id)===d,isPreview:!0,isPublic:Z===sr.public},j)]},j)}),[w,d]);Y.useEffect(()=>()=>{uit()},[]),Y.useEffect(()=>{if(p(void 0),u!=null&&u.queryId){const{metadata:T,id:M,visualType:D,queryId:B}=u;Ioe(M,B,D||Di.GRAPH,T,c,!1)}},[u==null?void 0:u.queryId]);const L=T=>{e({...n,pageNo:T})},I=T=>{e({...n,pageNo:1,pageSize:T})},b=()=>{switch(xx[n==null?void 0:n.visualType]){case xx.TABLE:return{path:nTe,webPath:rTe};case xx.COUNTERCARD:return{path:iat,webPath:aat};default:return{path:Uoe,webPath:zoe}}};return E.jsxs(E.Fragment,{children:[m>=qt.breakpoints.values.md&&(N==null?void 0:N.length)!==0&&!y&&E.jsx(uzn,{isExplore:!1,fieldError:f,isLoading:x,chartDetails:u||{},handleCallback:k}),(N==null?void 0:N.length)===0&&!x&&!y&&E.jsx(sf,{title:!(n!=null&&n.searchKeyword)&&!(n!=null&&n.tagId)?q.EMPTY_WIDGET_TITLE(xx[n==null?void 0:n.visualType]):q.NO_RESULT_FOUND_ON_FILTER,imgPath:b().path,imgPathWebp:b().webPath,className:"emptyBlock",children:!(n!=null&&n.searchKeyword)&&!(n!=null&&n.tagId)&&E.jsx(d1,{to:tr.queriesPath("new?tabID=1"),children:E.jsx(Jt,{onClick:()=>Cit(!0),variant:"contained",color:"primary",children:q.CREATE_NEW_VISUALIZATION})})}),y&&!x&&E.jsx(Vc,{title:y,children:y}),!r&&x&&E.jsx("div",{className:"loadingBlock",children:E.jsx(Ep,{})}),(N==null?void 0:N.length)!==0&&!y&&E.jsx("div",{className:"chartListing",children:E.jsxs(Wlt,{children:[E.jsx(Er,{container:!0,spacing:{xs:2,xl:3},direction:"row",alignItems:"strech",className:"mobileChartsGrid",children:r?E.jsx(Er,{item:!0,lg:12,md:12,sm:12,xs:12,className:"tableListView",children:E.jsx(pzn,{content:w!=null&&w.length?w:[],onClick:P,handleCallback:k,isLoading:x,handleSortBy:a,queryParams:n,selectedChartId:d})}):N}),E.jsx(EE,{count:_,page:n.pageNo,onChange:L,onPageChange:L,onPageSizeChange:I,isGotoPage:!0,isPageSize:!0,totalElements:C,pageSize:n.pageSize,showFirstButton:!0,showLastButton:!0,defaultSize:o})]})})]})},NDt=gt.div`
  display: flex;
  .title {
    margin: 5px 5px 5px 0;
    display: block;
  }
  .tagList {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    position: relative;
    padding-right: 60px;
    .actionRow {
      position: absolute;
      top: 3px;
      right: 3px;
      .MuiIconButton-root {
        height: 24px;
        width: 24px;
        + .MuiIconButton-root {
          margin-left: 5px;
        }
      }
    }
  }
`,qlt=({resetTags:t,queryParams:e,onTagChange:n,popularTags:r,loading:a})=>E.jsx("div",{children:a?E.jsxs(NDt,{children:[E.jsx(Ca,{variant:"rectangular",width:80,height:25}),E.jsx(Ca,{variant:"rectangular",width:80,height:25,sx:{ml:1}}),E.jsx(Ca,{variant:"rectangular",width:80,height:25,sx:{ml:1}}),E.jsx(Ca,{variant:"rectangular",width:80,height:25,sx:{ml:1}}),E.jsx(Ca,{variant:"rectangular",width:80,height:25,sx:{ml:1}})]}):(r==null?void 0:r.length)>0&&E.jsxs(NDt,{children:[E.jsxs("span",{className:"title",children:[q.POPULAR_TAGS,":"]}),E.jsx(Ov,{displayMaxLength:10,hasMore:!0,tags:r||[],isRemovable:!1,activeTag:(e==null?void 0:e.tagId)||(e==null?void 0:e.tagValue),onClick:n,children:E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:t,children:E.jsx(_v,{})})})]})}),PMo=t=>{const{setQueryParams:e,queryParams:n,resetTags:r,chartsData:a,isListView:o,handleSortBy:s,onTagChange:l,defaultPageSize:c,handleSelected:u,mutate:d,chartsLoading:h=!1}=t,f=ho(),{data:p,error:m}=Bn.useGetPopularTags(Co.stringify({entityType:Awe.VISUAL_TAG_TYPE,visualType:n.visualType||Di.GRAPH}),f),g=!p&&!m,v=pV(),[A,y]=Y.useState(null),[S,x]=Y.useState(void 0),{width:w}=Is(),_=a==null?void 0:a.content,{totalPages:C=0,totalElements:R=0}=(a==null?void 0:a.pageable)||{};Y.useEffect(()=>{if(!Ft.isEmpty(_)){const M=_&&((_==null?void 0:_.find(B=>B.id===n.selected))||_[0]),D=M!=null&&M.metadata?T2(JSON.parse(M.metadata)):{};M&&jne({...M,metadata:D}),M&&y(M==null?void 0:M.id),M&&u(M==null?void 0:M.id)}},[_]);const k=(M,D,B)=>{jne({...M,metadata:D,resultState:B}),u(M==null?void 0:M.id)},P=()=>{y(null);const{numberOfElements:M=0,first:D=!1,number:B=0}=(a==null?void 0:a.pagebale)||{};M===1&&!D&&e({...n,pageNo:B}),d()},N=M=>{const{visualType:D,id:B}=M;let{metadata:j}=M;D!==Di.TABLE?j=T2(JSON.parse(j)):j=JSON.parse(j),j=j||{},k(M,j,{}),Lx(),y(B)},L=Y.useMemo(()=>_==null?void 0:_.map(M=>{let{metadata:D}=M;const{name:B,description:j,id:H,queryId:U,visualType:$,userId:z}=M;return $!==Di.TABLE?D=T2(JSON.parse(D)):D=JSON.parse(D),D=D||{},E.jsxs(ke.Fragment,{children:[$!==Di.TABLE&&E.jsx(dzn,{widget:M,visualType:$||Di.GRAPH,chartName:B,chartDescription:j||"",userId:z,metadata:D,visualId:H,queryId:U,handleCallback:P,isExplore:!0,handleClick:Z=>{Z.error||Z.warning||(k(M,D,Z),Lx(),y(M==null?void 0:M.id))},isSelected:(M==null?void 0:M.id)===A},H),$===Di.TABLE&&E.jsx(hzn,{widget:M,visualType:$,tableName:M==null?void 0:M.name,tableDescription:(M==null?void 0:M.description)||"",userId:z,metadata:D,visualId:H,queryId:U,handleCallback:P,handleClick:Z=>{Z.error||Z.warning||(k(M,D,Z),Lx(),y(M==null?void 0:M.id))},isSelected:(M==null?void 0:M.id)===A,isExplore:!0},H)]},H)}),[_,A]);Y.useEffect(()=>()=>{uit()},[]),Y.useEffect(()=>{if(x(void 0),v!=null&&v.queryId){const{metadata:M,id:D,visualType:B,queryId:j}=v;Ioe(D,j,B||Di.GRAPH,M,f)}},[v==null?void 0:v.queryId]);const I=M=>{e({...n,pageNo:M})},b=M=>{e({...n,pageNo:1,pageSize:M})},T=()=>{switch(xx[n==null?void 0:n.visualType]){case xx.TABLE:return{path:nTe,webPath:rTe};case xx.COUNTERCARD:return{path:iat,webPath:aat};default:return{path:Uoe,webPath:zoe}}};return E.jsxs(E.Fragment,{children:[w>=qt.breakpoints.values.md&&E.jsxs(E.Fragment,{children:[((L==null?void 0:L.length)||(n==null?void 0:n.tagValue)||(n==null?void 0:n.searchKeyword)||g)&&E.jsx(qlt,{popularTags:p,queryParams:n,loading:g,onTagChange:l,resetTags:r}),(L==null?void 0:L.length)!==0&&!m&&E.jsx(uzn,{fieldError:S,isLoading:h,chartDetails:v||{},handleCallback:P,isExplore:!1})]}),(L==null?void 0:L.length)===0&&!h&&!m&&E.jsx(sf,{title:!(n!=null&&n.searchKeyword)&&!(n!=null&&n.tagValue)?q.EMPTY_ORG_WIDGET_TITLE(xx[n==null?void 0:n.visualType]):q.NO_RESULT_FOUND_ON_FILTER,imgPath:T().path,imgPathWebp:T().webPath,className:"emptyBlock",children:!(n!=null&&n.searchKeyword)&&!(n!=null&&n.tagValue)&&f&&E.jsx(d1,{to:tr.queriesPath("new?tabID=1"),children:E.jsx(Jt,{variant:"contained",color:"primary",children:q.CREATE_NEW_VISUALIZATION})})}),m&&!h&&E.jsx(Vc,{title:m,children:m}),!o&&h&&E.jsx("div",{className:"loadingBlock",children:E.jsx(Ep,{})}),(L==null?void 0:L.length)!==0&&!m&&E.jsx("div",{className:"chartListing",children:E.jsxs(Wlt,{children:[E.jsx(Er,{container:!0,spacing:3,direction:"row",alignItems:"strech",className:"mobileChartsGrid",children:o?E.jsx(Er,{item:!0,lg:12,md:12,sm:12,xs:12,className:"tableListView",children:E.jsx(pzn,{content:_!=null&&_.length?_:[],onClick:N,handleCallback:P,isLoading:h,handleSortBy:s,queryParams:n,selectedChartId:A,isExplore:!0})}):L}),E.jsx(EE,{count:C||0,page:n.pageNo,onChange:I,onPageChange:I,onPageSizeChange:b,isGotoPage:!0,isPageSize:!0,totalElements:R||0,pageSize:n.pageSize,showFirstButton:!0,showLastButton:!0,defaultSize:c})]})})]})},OMo=gt.div`
  padding-top: 56px;
  .boxContent {
    min-height: ${t=>t.height-24}px;
    display: flex;
    flex-direction: column;
    .pageToolbar {
      .isRecentToggle {
        border: 1px solid #675b8c;
        border-radius: 8px;
        &.disabled {
          cursor: not-allowed;
        }
        button {
          border: 0;
          &.MuiButton-containedPrimary:hover {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
          }
          &.MuiButton-containedSecondary {
            background: transparent;
          }
          + button {
            margin-left: 0;
            border-left: 1px solid #675b8c;
          }
        }
      }
    }
    .filterToolbar {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      position: relative;
      .toggleBlock {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        .helpText {
          margin-top: 0;
        }
        .MuiButtonGroup-root {
          border: 1px solid #675b8c;
          border-radius: 8px;
          button {
            border: 0;
          }
          .MuiButton-containedPrimary:hover {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
          }
          .MuiButton-containedSecondary:hover {
            background: transparent;
          }
        }
      }
      .filterBlock {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-left: auto;

        button + button {
          margin-left: 0;
        }
      }
    }
    .filterToolbar,
    .responsiveFilter {
      .MuiFormControl-root {
        flex-direction: row;
        align-items: center;
        .formLabel {
          margin-bottom: 0;
          margin-right: 8px;
          &:after {
            content: ':';
          }
        }
        .MuiInputBase-root {
          border: 1px solid ${t=>t.theme.custom.greyText.A11};
          color: ${t=>t.theme.custom.white.A11};
          background: none;
          height: 36px;
          border-radius: 8px;
          backdrop-filter: none;
          width: 150px;
          &:hover {
            background: none;
            backdrop-filter: none;
          }
          .MuiOutlinedInput-input::placeholder {
            color: ${t=>t.theme.custom.white.A11};
            font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
          }
        }
      }
    }
    .tableFormRow {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.tableHoverBg}};
      border-radius: 8px;
      display: flex;
      align-items: center;
      padding: 0 30px;
      gap: 16px;
      .slugInput {
        line-height: 1;
        width: 400px;
        .inputHelpText {
          right: 6px;
          top: 14px;
        }
      }
      .formToggle {
        border: 1px solid #675b8c;
        border-radius: 8px;
        &.disabled {
          cursor: not-allowed;
        }
        button {
          border: 0;
          &.MuiButton-containedPrimary:hover {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
          }
          &.MuiButton-containedSecondary {
            background: transparent;
          }
          + button {
            margin-left: 0;
            border-left: 1px solid #675b8c;
          }
        }
      }
      .tableRowButtonGroup {
        button + button {
          margin-left: 12px;
        }
      }
    }
    .pageTitle {
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
    }
    ${t=>t.theme.breakpoints.down("md")} {
      .filterToolbar {
        .toggleBlock,
        .filterBlock {
          gap: 8px;
        }
      }
      .responsiveFilter {
        display: flex;
        gap: 8px;
        margin-top: 8px;
        justify-content: flex-end;
      }
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      min-height: ${t=>t.height}px;
      .filterToolbar {
        display: unset;
        .toggleBlock {
          .helpText {
            flex: 0 0 100%;
            max-width: 100%;
          }
        }
        .filterBlock {
          .resetBtn,
          .filterBtn {
            position: absolute;
            top: 0;
          }
          .resetBtn {
            right: 45px;
          }
          .filterBtn {
            right: 0;
          }
        }
      }
      .responsiveFilter {
        justify-content: flex-start;
        > div {
          flex: 1;
        }
        .MuiFormControl-root {
          flex-direction: column;
          align-items: unset;
          .formLabel {
            margin-bottom: 8px;
            margin-right: 0;
          }
          .MuiInputBase-root {
            width: 100%;
          }
        }
      }
    }
  }
  .boxContent .emptyBlock,
  .boxContent .loading {
    flex: 1;
  }
  .boxContent .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .queryPagePagination {
      margin: 0 50px;
    }
  }

  .searchQueries {
    border: ${t=>t.theme.custom.greyText.A11};
    color: white;
    border-radius: 5px;
    width: 250px;
    input {
      color: ${t=>t.theme.custom.greyText.A3};
      font-size: 13px;
      ::placeholder {
        color: ${t=>t.theme.custom.greyText.A3};
        font-size: 14px;
        opacity: 1; /* Firefox */
      }

      ::-ms-input-placeholder {
        /* Edge 12 -18 */
        color: ${t=>t.theme.custom.greyText.A3};
        font-size: 14px;
      }
    }
  }
`,Mvs=gt.div`
  && {
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
  }
  &&:hover {
    text-decoration: underline;
  }
`,yQe=gt(Dn)`
  display: flex;
  align-items: center;
  span {
    line-height: 1;
    margin-right: 5px;
    .MuiSvgIcon-root {
      font-size: 16px;
    }
  }
`,pz=({visibility:t="",onFilterChange:e,filterOption:n})=>E.jsx("div",{className:"widgetTypeFilter",children:E.jsx(Ba,{value:t,onChange:e,children:(n?kgi:rgi).map(r=>E.jsx(yQe,{value:r.value,children:r.label},r.value))})}),LMo=()=>{const[t,e]=Y.useState(!1),{height:n,headerHeight:r,width:a}=Is(),[o,s]=Y.useState(!1),l=xo(),{search:c}=Zh(),u=ho(),d=new URLSearchParams(c),h=Y.useRef(null),f=uva(),[p,m]=Y.useState(S5.trending),g=()=>s(!o),v=()=>{const te=d==null?void 0:d.get("activeTab"),J=d==null?void 0:d.get("visualType");if(!Ft.map(pZ,"value").includes(te))return Di.GRAPH;if(te===J||te==="subscription")return te;if(te!==J){const ie=Di[te]||Di.GRAPH,he=Di[J]||Di.GRAPH;return ie!==he?ie:he}return Di.GRAPH},A=()=>{const te=d==null?void 0:d.get("activeTab"),J=d==null?void 0:d.get("visualType");if(!Ft.map(pZ,"value").includes(J))return Di.GRAPH;if(te===J)return J;if(te!==J){const ie=Di[te]||Di.GRAPH,he=Di[J]||Di.GRAPH;return ie!==he?ie:he}return Di.GRAPH},y=B$(XL(a),(d==null?void 0:d.get("widgetTypeEnum"))||Di.GRAPH),S=()=>(d==null?void 0:d.get("activeTab"))===yT.myOrgVisuals?uv.subscription:uv.private,[x,w]=Y.useState({pageSize:d!=null&&d.get("pageSize")?Number(d==null?void 0:d.get("pageSize")):y,pageNo:d!=null&&d.get("pageNo")?Number(d==null?void 0:d.get("pageNo")):1,scope:S(),searchPattern:(d==null?void 0:d.get("searchPattern"))||"",tagValue:(d==null?void 0:d.get("tagValue"))||"",visualType:A(),widgetTypeEnum:A(),activeTab:v(),sortOrder:(d==null?void 0:d.get("sortOrder"))||"DESC",sortBy:(d==null?void 0:d.get("sortBy"))||"modified",selected:d==null?void 0:d.get("selected"),visibility:u?(d==null?void 0:d.get("visibility"))||"":sr.public});Y.useEffect(()=>{if(d==null||d.get("selected"),x){const te=Co.stringify({...ef(x)},{arrayFormat:"bracket"});l.push(`${Qt.charts}?${te}`)}},[x,p]);const _=d==null?void 0:d.get("isRun");Y.useEffect(()=>{_&&w(te=>({...te,activeTab:d==null?void 0:d.get("activeTab"),visualType:A(),widgetTypeEnum:A(),scope:S()}))},[_]),Y.useEffect(()=>{f&&w(te=>({...te,activeTab:Di.GRAPH,visualType:A(),widgetTypeEnum:A(),scope:uv.private,visibility:""}))},[f]);const C=(te,J)=>{te&&J&&w(ne=>({...ne,pageNo:1,sortOrder:J,sortBy:te}))},R=te=>{const{location:J}=window,ne=new URL(J);ne.searchParams.set("selected",te),window.history.pushState({},"",ne)},k=te=>{var ie;const J=(ie=te.target)==null?void 0:ie.value;jne(null);const ne={pageSize:B$(XL(a),Di.GRAPH),pageNo:1,activeTab:J,widgetTypeEnum:Di.GRAPH,visualType:Di.GRAPH,tagValue:"",searchPattern:"",sortBy:"modified",sortOrder:"DESC"};J===yT.myOrgVisuals?w(he=>({...he,...ne,scope:uv.subscription,visibility:sr.subscription})):J&&w(he=>({...he,...ne,pageSize:B$(XL(a),J),widgetTypeEnum:J,visualType:J,scope:uv.private,visibility:""})),h.current&&(h.current.value="")},P=te=>{var ne,ie;let J=((ie=(ne=te==null?void 0:te.target)==null?void 0:ne.value)==null?void 0:ie.trim())||"";J=J_e(J),w(he=>({...he,pageNo:1,searchPattern:J}))},N=()=>{const te=(x==null?void 0:x.visualType)||Di.GRAPH;x!=null&&x.tagValue&&w(J=>({...J,pageSize:B$(XL(a),te),pageNo:1,tagValue:""}))},L=WYt(P,200),I=n-r||500,b=Co.stringify({...ef(x)});let T,M,D,B,j=!1;const{data:H,mutate:U,error:$=void 0}=Bn.getVisuals(b,u);B=$,T=H,D=U,M=(T==null?void 0:T.content)||[],j=!H&&!B,Bn.getVisualsFilteredByMyLikes(u);const z=te=>{var ne;const J=(ne=te.target)==null?void 0:ne.value;w(ie=>({...ie,pageSize:B$(XL(a),J),pageNo:1,visualType:J,widgetTypeEnum:`${J}`,status:J,tagValue:""})),h.current&&(h.current.value="")},Z=te=>{const J=(x==null?void 0:x.visualType)||Di.GRAPH;w({...x,pageSize:B$(XL(a),J),pageNo:1,tagValue:x.tagValue===((te==null?void 0:te.tagValue)||(te==null?void 0:te.value))?"":(te==null?void 0:te.tagValue)||(te==null?void 0:te.value)})},K=()=>{h.current&&(h.current.value=""),w(te=>({...te,pageNo:1,searchPattern:""}))},Q=te=>{var ne;const J=((ne=te.target)==null?void 0:ne.value)||"";w(ie=>({...ie,pageNo:1,visibility:J}))};let ee,X="searchField";return a>qt.breakpoints.values.md?ee=E.jsxs(eC,{className:X,children:[E.jsx(gr,{inputRef:h,defaultValue:(x==null?void 0:x.searchPattern)||"",placeholder:q.FIND_BY_NAME,name:"input",onChange:L}),E.jsx("span",{className:"searchIcon",children:x.searchPattern===""?E.jsx(yv,{}):E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:K})})]}):a>=qt.breakpoints.values.sm?ee=E.jsxs(eC,{className:X,children:[E.jsx(gr,{inputRef:h,defaultValue:(x==null?void 0:x.searchPattern)||"",placeholder:q.FIND_BY_NAME,name:"input",onChange:L}),E.jsx("span",{className:"searchIcon",children:x.searchPattern===""?E.jsx(yv,{}):E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:K})})]}):ee=E.jsxs(Kfn,{className:`${o?"expand":""}`,children:[E.jsx(gr,{inputRef:h,defaultValue:(x==null?void 0:x.searchPattern)||"",placeholder:q.FIND_BY_NAME,name:"input",onChange:L}),E.jsx("button",{type:"button",className:"expandSearchIcon",onClick:g,children:x.searchPattern===""?E.jsx(yv,{}):E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:K})})]}),E.jsx(Y.Suspense,{fallback:as,children:E.jsx(X1a,{height:I,children:E.jsx("main",{className:"mainContent",children:E.jsxs("div",{className:"boxContent",children:[a<qt.breakpoints.values.md?E.jsx(Tp,{className:"pageMobileToolbar",children:E.jsxs("div",{className:"pageMobileTopBar",children:[E.jsxs(nat,{children:[E.jsx(Ba,{value:x.activeTab,onChange:k,children:sgi.map(te=>E.jsx(oH,{value:te.value,children:te.label},te.value))}),a>=qt.breakpoints.values.sm&&ee,![yT.myOrgVisuals].includes(x==null?void 0:x.activeTab)&&E.jsx(pz,{visibility:x==null?void 0:x.visibility,onFilterChange:Q})]}),E.jsxs(Wfn,{children:[E.jsxs("div",{className:"widgetTypeFilter",children:[E.jsxs("span",{children:[q.FILTER_BY," :"]}),E.jsx(Ba,{value:x.visualType,onChange:z,children:pZ.map(te=>E.jsxs(oH,{value:te.value,children:[E.jsx("span",{className:"icon",children:te.icon}),te.label]},te.value))})]}),E.jsxs(YH,{variant:"contained",className:"toggleViewMode",children:[E.jsx(Pn,{label:q.LIST_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!0)},variant:"contained",color:t?"primary":"secondary",children:E.jsx(gAe,{})})}),E.jsx(Pn,{label:q.GRID_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!1)},variant:"contained",color:t?"secondary":"primary",children:E.jsx(vAe,{})})})]}),a<qt.breakpoints.values.sm&&ee]})]})}):E.jsxs(Tp,{className:"pageToolbar",children:[E.jsxs(eA,{exclusive:!0,value:x.activeTab,onChange:k,children:[u&&E.jsx(Xs,{size:"small",className:"tabButton",value:Di.GRAPH,"aria-label":q.EXPLORE,children:q.MY_VISUALS}),u&&E.jsx(Xs,{size:"small",className:"tabButton",value:yT.myOrgVisuals,"aria-label":yT.myOrgVisuals,children:q.MY_ORG_VISUALS})]}),E.jsxs("div",{className:"toolbarRight",children:[ee,![yT.myOrgVisuals].includes(x==null?void 0:x.activeTab)&&E.jsx(pz,{visibility:x==null?void 0:x.visibility,onFilterChange:Q}),E.jsxs("div",{className:"widgetTypeFilter",children:[E.jsxs("span",{children:[q.FILTER_BY," :"]}),E.jsx(Ba,{value:x.visualType,onChange:z,children:pZ.map(te=>E.jsxs(oH,{value:te.value,children:[E.jsx("span",{className:"icon",children:te.icon}),te.label]},te.value))})]}),!Ft.isEmpty(M)&&E.jsxs(YH,{variant:"contained",className:"toggleViewMode",children:[E.jsx(Pn,{label:q.LIST_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!0)},variant:"contained",color:t?"primary":"secondary",children:E.jsx(gAe,{})})}),E.jsx(Pn,{label:q.GRID_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!1)},variant:"contained",color:t?"secondary":"primary",children:E.jsx(vAe,{})})})]})]})]}),(x==null?void 0:x.activeTab)==="GRAPH"&&E.jsx(IMo,{queryParams:x,setQueryParams:w,handleSelected:R,isListView:t,handleSortBy:C,defaultPageSize:y},"user_charts"),(x==null?void 0:x.activeTab)===yT.myOrgVisuals&&E.jsx(PMo,{chartsData:T,queryParams:x,setQueryParams:w,resetTags:N,isListView:t,handleSortBy:C,onTagChange:Z,mutate:D,handleSelected:R,defaultPageSize:y,chartsLoading:j})]})})})})};var Ylt={exports:{}},BMo=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"];Ylt.exports;(function(t){var e=BMo,n=Xy;t.exports=function(r,a,o){var s=r[a];if(s){var l=[];if(Object.keys(s).forEach(function(c){e.indexOf(c)===-1&&l.push(c)}),l.length)throw new Error("Prop "+a+" passed to "+o+". Has invalid keys "+l.join(", "))}},t.exports.isRequired=function(r,a,o){if(!r[a])throw new Error("Prop "+a+" passed to "+o+" is required");return t.exports(r,a,o)},t.exports.supportingArrays=n.oneOfType([n.arrayOf(t.exports),t.exports])})(Ylt);var DMo=Ylt.exports;const wB=Li(DMo);function mzn(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function gzn(t){function e(n){var r=this.constructor.getDerivedStateFromProps(t,n);return r??null}this.setState(e.bind(this))}function vzn(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}mzn.__suppressDeprecationWarning=!0;gzn.__suppressDeprecationWarning=!0;vzn.__suppressDeprecationWarning=!0;function $Mo(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var n=null,r=null,a=null;if(typeof e.componentWillMount=="function"?n="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?a="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(a="UNSAFE_componentWillUpdate"),n!==null||r!==null||a!==null){var o=t.displayName||t.name,s=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

`+o+" uses "+s+" but also contains the following legacy lifecycles:"+(n!==null?`
  `+n:"")+(r!==null?`
  `+r:"")+(a!==null?`
  `+a:"")+`

The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=mzn,e.componentWillReceiveProps=gzn),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=vzn;var l=e.componentDidUpdate;e.componentDidUpdate=function(u,d,h){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;l.call(this,u,d,f)}}return t}function Jlt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IDt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zlt(t,e,n){return e&&IDt(t.prototype,e),n&&IDt(t,n),t}function Azn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PDt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function k9e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?PDt(Object(n),!0).forEach(function(r){Azn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PDt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xlt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bQe(t,e)}function Iye(t){return Iye=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iye(t)}function bQe(t,e){return bQe=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},bQe(t,e)}function FMo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function EF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jMo(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:EF(t)}function ect(t){return function(){var e=Iye(t),n;if(FMo()){var r=Iye(this).constructor;n=Reflect.construct(e,arguments,r)}else n=e.apply(this,arguments);return jMo(this,n)}}var Nre=function(t){Xlt(n,t);var e=ect(n);function n(){return Jlt(this,n),e.apply(this,arguments)}return Zlt(n,[{key:"render",value:function(){var a=this.props,o=a.children,s=a.className,l=a.split,c=a.style,u=a.size,d=a.eleRef,h=["Pane",l,s],f={flex:1,position:"relative",outline:"none"};return u!==void 0&&(l==="vertical"?f.width=u:(f.height=u,f.display="flex"),f.flex="none"),f=Object.assign({},f,c||{}),ke.createElement("div",{ref:d,className:h.join(" "),style:f},o)}}]),n}(ke.PureComponent);Nre.propTypes={className:kt.string.isRequired,children:kt.node.isRequired,size:kt.oneOfType([kt.string,kt.number]),split:kt.oneOf(["vertical","horizontal"]),style:wB,eleRef:kt.func};Nre.defaultProps={};var yzn="Resizer",tct=function(t){Xlt(n,t);var e=ect(n);function n(){return Jlt(this,n),e.apply(this,arguments)}return Zlt(n,[{key:"render",value:function(){var a=this.props,o=a.className,s=a.onClick,l=a.onDoubleClick,c=a.onMouseDown,u=a.onTouchEnd,d=a.onTouchStart,h=a.resizerClassName,f=a.split,p=a.style,m=[h,f,o];return ke.createElement("span",{role:"presentation",className:m.join(" "),style:p,onMouseDown:function(v){return c(v)},onTouchStart:function(v){v.preventDefault(),d(v)},onTouchEnd:function(v){v.preventDefault(),u(v)},onClick:function(v){s&&(v.preventDefault(),s(v))},onDoubleClick:function(v){l&&(v.preventDefault(),l(v))}})}}]),n}(ke.Component);tct.propTypes={className:kt.string.isRequired,onClick:kt.func,onDoubleClick:kt.func,onMouseDown:kt.func.isRequired,onTouchStart:kt.func.isRequired,onTouchEnd:kt.func.isRequired,split:kt.oneOf(["vertical","horizontal"]),style:wB,resizerClassName:kt.string.isRequired};tct.defaultProps={resizerClassName:yzn};function ODt(t,e){if(t.selection)t.selection.empty();else try{e.getSelection().removeAllRanges()}catch{}}function LDt(t,e,n,r){if(typeof r=="number"){var a=typeof e=="number"?e:0,o=typeof n=="number"&&n>=0?n:1/0;return Math.max(a,Math.min(o,r))}return t!==void 0?t:e}function HMo(t){return ke.Children.toArray(t).filter(function(e){return e})}var aC=function(t){Xlt(n,t);var e=ect(n);function n(r){var a;Jlt(this,n),a=e.call(this,r),a.onMouseDown=a.onMouseDown.bind(EF(a)),a.onTouchStart=a.onTouchStart.bind(EF(a)),a.onMouseMove=a.onMouseMove.bind(EF(a)),a.onTouchMove=a.onTouchMove.bind(EF(a)),a.onMouseUp=a.onMouseUp.bind(EF(a));var o=r.size,s=r.defaultSize,l=r.minSize,c=r.maxSize,u=r.primary,d=o!==void 0?o:LDt(s,l,c,null);return a.state={active:!1,resized:!1,pane1Size:u==="first"?d:void 0,pane2Size:u==="second"?d:void 0,instanceProps:{size:o}},a}return Zlt(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(a){var o=Object.assign({},a,{touches:[{clientX:a.clientX,clientY:a.clientY}]});this.onTouchStart(o)}},{key:"onTouchStart",value:function(a){var o=this.props,s=o.allowResize,l=o.onDragStarted,c=o.split;if(s){ODt(document,window);var u=c==="vertical"?a.touches[0].clientX:a.touches[0].clientY;typeof l=="function"&&l(),this.setState({active:!0,position:u})}}},{key:"onMouseMove",value:function(a){var o=Object.assign({},a,{touches:[{clientX:a.clientX,clientY:a.clientY}]});this.onTouchMove(o)}},{key:"onTouchMove",value:function(a){var o=this.props,s=o.allowResize,l=o.maxSize,c=o.minSize,u=o.onChange,d=o.split,h=o.step,f=this.state,p=f.active,m=f.position;if(s&&p){ODt(document,window);var g=this.props.primary==="first",v=g?this.pane1:this.pane2,A=g?this.pane2:this.pane1;if(v){var y=v,S=A;if(y.getBoundingClientRect){var x=y.getBoundingClientRect().width,w=y.getBoundingClientRect().height,_=d==="vertical"?a.touches[0].clientX:a.touches[0].clientY,C=d==="vertical"?x:w,R=m-_;if(h){if(Math.abs(R)<h)return;R=~~(R/h)*h}var k=g?R:-R,P=parseInt(window.getComputedStyle(y).order),N=parseInt(window.getComputedStyle(S).order);P>N&&(k=-k);var L=l;if(l!==void 0&&l<=0){var I=this.splitPane;d==="vertical"?L=I.getBoundingClientRect().width+l:L=I.getBoundingClientRect().height+l}var b=C-k,T=m-R;b<c?b=c:l!==void 0&&b>L?b=L:this.setState({position:T,resized:!0}),u&&u(b),this.setState(Azn({draggedSize:b},g?"pane1Size":"pane2Size",b))}}}}},{key:"onMouseUp",value:function(){var a=this.props,o=a.allowResize,s=a.onDragFinished,l=this.state,c=l.active,u=l.draggedSize;o&&c&&(typeof s=="function"&&s(u),this.setState({active:!1}))}},{key:"render",value:function(){var a=this,o=this.props,s=o.allowResize,l=o.children,c=o.className,u=o.onResizerClick,d=o.onResizerDoubleClick,h=o.paneClassName,f=o.pane1ClassName,p=o.pane2ClassName,m=o.paneStyle,g=o.pane1Style,v=o.pane2Style,A=o.resizerClassName,y=o.resizerStyle,S=o.split,x=o.style,w=this.state,_=w.pane1Size,C=w.pane2Size,R=s?"":"disabled",k=A&&"".concat(A," ").concat(yzn),P=HMo(l),N=k9e({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},x);S==="vertical"?Object.assign(N,{flexDirection:"row",left:0,right:0}):Object.assign(N,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var L=["SplitPane",c,S,R],I=k9e({},m,{},g),b=k9e({},m,{},v),T=["Pane1",h,f].join(" "),M=["Pane2",h,p].join(" ");return ke.createElement("div",{className:L.join(" "),ref:function(B){a.splitPane=B},style:N},ke.createElement(Nre,{className:T,key:"pane1",eleRef:function(B){a.pane1=B},size:_,split:S,style:I},P[0]),ke.createElement(tct,{className:R,onClick:u,onDoubleClick:d,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:k,split:S,style:y||{}}),ke.createElement(Nre,{className:M,key:"pane2",eleRef:function(B){a.pane2=B},size:C,split:S,style:b},P[1]))}}],[{key:"getDerivedStateFromProps",value:function(a,o){return n.getSizeUpdate(a,o)}},{key:"getSizeUpdate",value:function(a,o){var s={},l=o.instanceProps;if(l.size===a.size&&a.size!==void 0)return{};var c=a.size!==void 0?a.size:LDt(a.defaultSize,a.minSize,a.maxSize,o.draggedSize);a.size!==void 0&&(s.draggedSize=c);var u=a.primary==="first";return s[u?"pane1Size":"pane2Size"]=c,s[u?"pane2Size":"pane1Size"]=void 0,s.instanceProps={size:a.size},s}}]),n}(ke.Component);aC.propTypes={allowResize:kt.bool,children:kt.arrayOf(kt.node).isRequired,className:kt.string,primary:kt.oneOf(["first","second"]),minSize:kt.oneOfType([kt.string,kt.number]),maxSize:kt.oneOfType([kt.string,kt.number]),defaultSize:kt.oneOfType([kt.string,kt.number]),size:kt.oneOfType([kt.string,kt.number]),split:kt.oneOf(["vertical","horizontal"]),onDragStarted:kt.func,onDragFinished:kt.func,onChange:kt.func,onResizerClick:kt.func,onResizerDoubleClick:kt.func,style:wB,resizerStyle:wB,paneClassName:kt.string,pane1ClassName:kt.string,pane2ClassName:kt.string,paneStyle:wB,pane1Style:wB,pane2Style:wB,resizerClassName:kt.string,step:kt.number};aC.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""};$Mo(aC);const UMo=gt.div`
  padding-top: 56px;
  .chartEditorInner {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.boxBg}};
    padding: 16px;
    box-shadow: 0px 10px 30px rgba(15, 24, 42, 0.51);
    border-radius: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: ${t=>t.height-24}px;
    ${t=>t.theme.breakpoints.down("sm")} {
      min-height: ${t=>t.height}px;
    }
  }
  .cutomiseVisualPanel {
    height: 100%;
    display: flex;
    flex-direction: column;
    .rightPane {
      flex: 1;
      overflow: hidden;
    }
  }
  .widgetFormBlock {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    padding: 20px;
    border-radius: 8px;
    margin-right: 8px;
    margin-bottom: 16px;
    .formTitle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
      font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
      button {
        height: 24px;
        width: 24px;
        &.btnActive {
          svg {
            transform: rotate(180deg);
          }
        }
        svg {
          max-width: 13px;
        }
      }
    }
    .formContent {
      margin-top: 16px;
    }
    .formField {
      &:not(:first-child) {
        margin-top: 16px;
      }
      .tagList {
        margin-top: 8px;
      }
    }
    .viewsInput {
      .MuiInputBase-root {
        .MuiOutlinedInput-input {
          padding-left: 0;
        }
        .MuiInputAdornment-root {
          min-width: unset;
          background: transparent;
          p {
            font-size: ${t=>t.theme.custom.fontSize.font12};
            color: ${t=>t.theme.custom.white.A11};
            opacity: 1;
          }
        }
      }
    }
    .autoRefreshToggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: ${t=>t.theme.custom.fontSize.font14};
      color: ${t=>t.theme.custom.white.A11};
      margin-top: 16px;
      .commonSwitch {
        .modelsToggle {
          top: unset;
          right: unset;
        }
      }
    }
  }
  .fieldLabel {
    display: inline-block;
    margin-bottom: 8px;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
  }
  .axisLabel {
    text-transform: capitalize;
  }
  .formGroupLabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
    .fieldLabel {
      margin-bottom: 0;
      white-space: nowrap;
    }
    .fieldTag {
      background: ${t=>t.theme.custom.tags.bg1};
      color: ${t=>t.theme.custom.violet};
      font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
      padding: 3px 6px;
      border-radius: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  .splitePane {
    position: relative;
    height: ${t=>t.height}px;
    .Pane {
      overflow: hidden;
      &.horizontal.Pane2 {
        padding-top: 8px;
      }
    }
  }
  .splitePane .chartEditorView > .Pane2 {
    overflow: hidden;
  }
  .leftPane {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    padding: 24px 7px 24px 24px;
    height: 100%;
    margin-right: 8px;
  }
  .rightPane {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    padding: 12px 8px 24px 24px;
    height: 100%;
    margin-right: 8px;
  }
  .leftPane .widgetEditorBlock,
  .rightPane .widgetEditorBlock .tabPanel {
    padding-right: 15px;
    height: 100%;
    overflow: auto;
    word-break: break-word;
  }
  .rightPane .widgetEditorBlock {
    display: flex;
    flex-direction: column;
    height: 100%;
    .materializedView {
      margin-top: 12px;
      button {
        padding: 3px 10px;
        height: 28px;
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
        .iconLeft {
          margin-right: 4px;
          svg {
            max-width: 16px;
          }
        }
      }
    }
  }
  .rightPane .contentInner .materialViewCheck {
    padding-right: 10px;
  }
  .rightPane .widgetEditorBlock .tabPanel {
    margin-top: 24px;
  }
  .topBar {
    display: flex;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 6px;
    .error {
      color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
      margin-left: 10px;
    }
    .editorBtn {
      position: relative;
      img {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
      }
      &.loading {
        .icon,
        .editorBtnText {
          visibility: hidden;
        }
      }
    }
  }
  .topBar .topBarHead {
    flex: 1;
    overflow: hidden;
    .topBarHeadTitle {
      margin-right: 10px;
      .MuiInputBase-root {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
      }
      .inputHelpText {
        top: 10px;
        right: 8px;
      }
    }
  }
  .topBar .topBarHead h2 {
    margin-bottom: 0;
    div {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  .topBar .topbarTaglist {
    flex: 0 0 100%;
    max-width: 100%;
    order: 1;
  }
  .topBar .tagList {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .box:not(:last-child),
  .formGroupBlock:not(:last-child) {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgb(247 247 249 / 6%);
  }
  .boxHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
  }
  .boxHead .collpaseIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.tableActionBg}};
    border-radius: 5px;
    cursor: pointer;
    border: 0;
    padding: 0;
  }
  .boxHead .collpaseIcon.open svg {
    transform: rotate(180deg);
  }
  ul.itemList {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  ul.itemList li + li {
    margin-top: 12px;
  }
  ul.itemList li {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.inputBg}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    backdrop-filter: blur(30px);
    border-radius: 8px;
    padding: 12px 16px;
    line-height: 1;
    display: flex;
    align-items: center;
  }
  ul.itemList li .left {
    flex: 1;
    padding-right: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  ul.itemList li .left .icon {
    margin-right: 12px;
  }
  ul.itemList li .left .fieldName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  ul.itemList li .right span {
    background: ${t=>t.theme.custom.tags.bg1};
    color: ${t=>t.theme.custom.violet};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
  }
  .formGroupBlock .groupTitle {
    color: ${t=>t.theme.custom.white.A11};
    display: inline-block;
    margin-bottom: 24px;
  }
  .formGroup label {
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
    margin-bottom: 12px;
  }
  .formGroup + .formGroup {
    margin-top: 24px;
  }
  .formGroup.remove {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    .MuiIconButton-root {
      height: 24px;
      width: 24px;
      svg {
        height: 10px;
        width: 10px;
      }
    }
  }
  .addSeriesButton {
    width: 100%;
    margin-top: 16px;
  }

  .chartPreview {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    border-radius: 8px;
    overflow: auto;
    width: 100%;
    margin-left: 8px;
    margin-bottom: 8px;
    .counterWidget {
      padding: 0;
      margin: -8px;
      height: calc(100% + 16px);
    }
    .chartsDisplay {
      padding: 8px;
      .downloadAsImage {
        top: 8px;
        right: 8px;
      }
    }
    .counterCard {
      background: transparent;
      .counterBody {
        text-align: left;
        padding: 0px 30px;
        .counterValue {
          font-size: ${t=>t.theme.custom.heading.h1};
        }
      }
    }
  }
  .visualViewPane {
    height: 100%;
  }
  .queryResult {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    margin-left: 8px;
    border-radius: 8px;
    padding: 0 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .queryResult .resultToolbar {
    padding: 0 8px;
    .mobileQueryToolbar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-left: auto;
      gap: 16px;
      .MuiButtonBase-root {
        font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
        padding-left: 0;
        padding-right: 0;
      }
    }
  }
  .queryResult .strippedTable {
    margin-top: 0;
  }
  .queryResult .resultToolbar div:empty {
    display: none;
  }
  p {
    -webkit-text-fill-color: inherit;
    opacity: 0.5;
  }
  .chartMenuButton {
    padding: 0 4px;
  }
  .mobileChartEditorWrapper,
  .datasetBtn {
    display: none;
  }
  .modelsToggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;
  }
  .fieldCheck .MuiButtonBase-root {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
  }
  .fieldCheck .MuiTypography-root {
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .desktopChartEditorWrapper {
      display: none;
    }
    .mobileChartEditorWrapper,
    .datasetBtn {
      display: block;
    }
    .mobileChartEditorWrapper .tabPanel {
      margin-top: 15px;
    }
    .mobileChartEditorWrapper .mobileDatasetPreview {
      position: relative;
      margin-bottom: 15px;
      .commonSwitch {
        position: absolute;
        right: 0;
      }
    }
    .mobileChartEditorWrapper .mobileDatasetPreview .chartPreview,
    .mobileChartEditorWrapper .mobileDatasetPreview .queryResult {
      margin: 0;
      height: 400px;
    }
    .mobileChartEditorWrapper
      .mobileDatasetPreview
      .chartPreview
      .chartsDisplay {
      padding-top: 35px;
      .downloadAsImage {
        top: 40px;
      }
    }
    .mobileChartEditorWrapper .mobileDatasetPreview .queryResult {
      padding-top: 35px;
    }
    .widgetFormBlock {
      margin-right: 0;
    }
    .widgetEditorBlock {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
      box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
      padding: 20px;
      border-radius: 8px;
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .topBar {
      .topBarHead {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
      }
    }
    .mobileChartEditorWrapper .mobileDatasetPreview .chartPreview,
    .mobileChartEditorWrapper .mobileDatasetPreview .queryResult {
      height: 300px;
    }
    .topBar {
      .topBarHead {
        flex: 0 0 100%;
        max-width: 100%;
      }
    }
  }
`;gt.div`
  a {
    color: ${t=>t.theme.custom.blueActive};
    &:hover {
      text-decoration: underline;
      color: ${t=>t.theme.custom.white.A11};
    }
  }
  .modalFooter {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
`;var mz={},nct={},bzn={exports:{}};(function(t,e){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var a=function(d,h,f){if(typeof d!="string"){a.original?a.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(f=h),a.modules[d]||(a.payloads[d]=f,a.modules[d]=null)};a.modules={},a.payloads={};var o=function(d,h,f){if(typeof h=="string"){var p=c(d,h);if(p!=null)return f&&f(),p}else if(Object.prototype.toString.call(h)==="[object Array]"){for(var m=[],g=0,v=h.length;g<v;++g){var A=c(d,h[g]);if(A==null&&s.original)return;m.push(A)}return f&&f.apply(null,m)||!0}},s=function(d,h){var f=o("",d,h);return f==null&&s.original?s.original.apply(this,arguments):f},l=function(d,h){if(h.indexOf("!")!==-1){var f=h.split("!");return l(d,f[0])+"!"+l(d,f[1])}if(h.charAt(0)=="."){var p=d.split("/").slice(0,-1).join("/");for(h=p+"/"+h;h.indexOf(".")!==-1&&m!=h;){var m=h;h=h.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return h},c=function(d,h){h=l(d,h);var f=a.modules[h];if(!f){if(f=a.payloads[h],typeof f=="function"){var p={},m={id:h,uri:"",exports:p,packaged:!0},g=function(A,y){return o(h,A,y)},v=f(g,p,m);p=v||m.exports,a.modules[h]=p,delete a.payloads[h]}f=a.modules[h]=p||f}return f};function u(d){var h=r;d&&(r[d]||(r[d]={}),h=r[d]),(!h.define||!h.define.packaged)&&(a.original=h.define,h.define=a,h.define.packaged=!0),(!h.require||!h.require.packaged)&&(s.original=h.require,h.require=s,h.require.packaged=!0)}u(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,a){function o(s,l,c){Object.defineProperty(s,l,{value:c,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||o(String.prototype,"startsWith",function(s,l){return l=l||0,this.lastIndexOf(s,l)===l}),String.prototype.endsWith||o(String.prototype,"endsWith",function(s,l){var c=this;(l===void 0||l>c.length)&&(l=c.length),l-=s.length;var u=c.indexOf(s,l);return u!==-1&&u===l}),String.prototype.repeat||o(String.prototype,"repeat",function(s){for(var l="",c=this;s>0;)s&1&&(l+=c),(s>>=1)&&(c+=c);return l}),String.prototype.includes||o(String.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Object.assign||(Object.assign=function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var l=Object(s),c=1;c<arguments.length;c++){var u=arguments[c];u!=null&&Object.keys(u).forEach(function(d){l[d]=u[d]})}return l}),Object.values||(Object.values=function(s){return Object.keys(s).map(function(l){return s[l]})}),Array.prototype.find||o(Array.prototype,"find",function(s){for(var l=this.length,c=arguments[1],u=0;u<l;u++){var d=this[u];if(s.call(c,d,u,this))return d}}),Array.prototype.findIndex||o(Array.prototype,"findIndex",function(s){for(var l=this.length,c=arguments[1],u=0;u<l;u++){var d=this[u];if(s.call(c,d,u,this))return u}}),Array.prototype.includes||o(Array.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Array.prototype.fill||o(Array.prototype,"fill",function(s){for(var l=this,c=l.length>>>0,u=arguments[1],d=u>>0,h=d<0?Math.max(c+d,0):Math.min(d,c),f=arguments[2],p=f===void 0?c:f>>0,m=p<0?Math.max(c+p,0):Math.min(p,c);h<m;)l[h]=s,h++;return l}),Array.of||o(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,a){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,a){r.deepCopy=function o(s){if(typeof s!="object"||!s)return s;var l;if(Array.isArray(s)){l=[];for(var c=0;c<s.length;c++)l[c]=o(s[c]);return l}if(Object.prototype.toString.call(s)!=="[object Object]")return s;l={};for(var c in s)l[c]=o(s[c]);return l}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,a){r.last=function(l){return l[l.length-1]},r.stringReverse=function(l){return l.split("").reverse().join("")},r.stringRepeat=function(l,c){for(var u="";c>0;)c&1&&(u+=l),(c>>=1)&&(l+=l);return u};var o=/^\s\s*/,s=/\s\s*$/;r.stringTrimLeft=function(l){return l.replace(o,"")},r.stringTrimRight=function(l){return l.replace(s,"")},r.copyObject=function(l){var c={};for(var u in l)c[u]=l[u];return c},r.copyArray=function(l){for(var c=[],u=0,d=l.length;u<d;u++)l[u]&&typeof l[u]=="object"?c[u]=this.copyObject(l[u]):c[u]=l[u];return c},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(l){for(var c={},u=0;u<l.length;u++)c[l[u]]=1;return c},r.createMap=function(l){var c=Object.create(null);for(var u in l)c[u]=l[u];return c},r.arrayRemove=function(l,c){for(var u=0;u<=l.length;u++)c===l[u]&&l.splice(u,1)},r.escapeRegExp=function(l){return l.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(l){return(""+l).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(l,c){var u=[];return l.replace(c,function(d){u.push({offset:arguments[arguments.length-2],length:d.length})}),u},r.deferredCall=function(l){var c=null,u=function(){c=null,l()},d=function(h){return d.cancel(),c=setTimeout(u,h||0),d};return d.schedule=d,d.call=function(){return this.cancel(),l(),d},d.cancel=function(){return clearTimeout(c),c=null,d},d.isPending=function(){return c},d},r.delayedCall=function(l,c){var u=null,d=function(){u=null,l()},h=function(f){u==null&&(u=setTimeout(d,f||c))};return h.delay=function(f){u&&clearTimeout(u),u=setTimeout(d,f||c)},h.schedule=h,h.call=function(){this.cancel(),l()},h.cancel=function(){u&&clearTimeout(u),u=null},h.isPending=function(){return u},h},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(l,c,u){return u&&l.codePointAt(c)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,a){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var o=typeof navigator=="object"?navigator:{},s=(/mac|win|linux/i.exec(o.platform)||["other"])[0].toLowerCase(),l=o.userAgent||"",c=o.appName||"";r.isWin=s=="win",r.isMac=s=="mac",r.isLinux=s=="linux",r.isIE=c=="Microsoft Internet Explorer"||c.indexOf("MSAppHost")>=0?parseFloat((l.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((l.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=l.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(l.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(l.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(l.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(l.split(" Edge/")[1])||void 0,r.isAIR=l.indexOf("AdobeAIR")>=0,r.isAndroid=l.indexOf("Android")>=0,r.isChromeOS=l.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(l)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,a){var o=n("./useragent"),s="http://www.w3.org/1999/xhtml";r.buildDom=function f(p,m,g){if(typeof p=="string"&&p){var v=document.createTextNode(p);return m&&m.appendChild(v),v}if(!Array.isArray(p))return p&&p.appendChild&&m&&m.appendChild(p),p;if(typeof p[0]!="string"||!p[0]){for(var A=[],y=0;y<p.length;y++){var S=f(p[y],m,g);S&&A.push(S)}return A}var x=document.createElement(p[0]),w=p[1],_=1;w&&typeof w=="object"&&!Array.isArray(w)&&(_=2);for(var y=_;y<p.length;y++)f(p[y],x,g);return _==2&&Object.keys(w).forEach(function(C){var R=w[C];C==="class"?x.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||C=="value"||C[0]=="$"?x[C]=R:C==="ref"?g&&(g[R]=x):C==="style"?typeof R=="string"&&(x.style.cssText=R):R!=null&&x.setAttribute(C,R)}),m&&m.appendChild(x),x},r.getDocumentHead=function(f){return f||(f=document),f.head||f.getElementsByTagName("head")[0]||f.documentElement},r.createElement=function(f,p){return document.createElementNS?document.createElementNS(p||s,f):document.createElement(f)},r.removeChildren=function(f){f.innerHTML=""},r.createTextNode=function(f,p){var m=p?p.ownerDocument:document;return m.createTextNode(f)},r.createFragment=function(f){var p=f?f.ownerDocument:document;return p.createDocumentFragment()},r.hasCssClass=function(f,p){var m=(f.className+"").split(/\s+/g);return m.indexOf(p)!==-1},r.addCssClass=function(f,p){r.hasCssClass(f,p)||(f.className+=" "+p)},r.removeCssClass=function(f,p){for(var m=f.className.split(/\s+/g);;){var g=m.indexOf(p);if(g==-1)break;m.splice(g,1)}f.className=m.join(" ")},r.toggleCssClass=function(f,p){for(var m=f.className.split(/\s+/g),g=!0;;){var v=m.indexOf(p);if(v==-1)break;g=!1,m.splice(v,1)}return g&&m.push(p),f.className=m.join(" "),g},r.setCssClass=function(f,p,m){m?r.addCssClass(f,p):r.removeCssClass(f,p)},r.hasCssString=function(f,p){var m=0,g;if(p=p||document,g=p.querySelectorAll("style")){for(;m<g.length;)if(g[m++].id===f)return!0}},r.removeElementById=function(f,p){p=p||document,p.getElementById(f)&&p.getElementById(f).remove()};var l,c=[];r.useStrictCSP=function(f){l=f,f==!1?u():c||(c=[])};function u(){var f=c;c=null,f&&f.forEach(function(p){d(p[0],p[1])})}function d(f,p,m){if(!(typeof document>"u")){if(c){if(m)u();else if(m===!1)return c.push([f,p])}if(!l){var g=m;!m||!m.getRootNode?g=document:(g=m.getRootNode(),(!g||g==m)&&(g=document));var v=g.ownerDocument||g;if(p&&r.hasCssString(p,g))return null;p&&(f+=`
/*# sourceURL=ace/css/`+p+" */");var A=r.createElement("style");A.appendChild(v.createTextNode(f)),p&&(A.id=p),g==v&&(g=r.getDocumentHead(v)),g.insertBefore(A,g.firstChild)}}}if(r.importCssString=d,r.importCssStylsheet=function(f,p){r.buildDom(["link",{rel:"stylesheet",href:f}],r.getDocumentHead(p))},r.scrollbarWidth=function(f){var p=r.createElement("ace_inner");p.style.width="100%",p.style.minWidth="0px",p.style.height="200px",p.style.display="block";var m=r.createElement("ace_outer"),g=m.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",m.appendChild(p);var v=f&&f.documentElement||document&&document.documentElement;if(!v)return 0;v.appendChild(m);var A=p.offsetWidth;g.overflow="scroll";var y=p.offsetWidth;return A===y&&(y=m.clientWidth),v.removeChild(m),A-y},r.computedStyle=function(f,p){return window.getComputedStyle(f,"")||{}},r.setStyle=function(f,p,m){f[p]!==m&&(f[p]=m)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=o.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,o.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var h=document.createElement("div");r.HI_DPI&&h.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!o.isEdge&&typeof h.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),h=null}r.HAS_CSS_TRANSFORMS?r.translate=function(f,p,m){f.style.transform="translate("+Math.round(p)+"px, "+Math.round(m)+"px)"}:r.translate=function(f,p,m){f.style.top=Math.round(m)+"px",f.style.left=Math.round(p)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,a){/*
* based on code from:
*
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/var o=n("./dom");r.get=function(s,l){var c=new XMLHttpRequest;c.open("GET",s,!0),c.onreadystatechange=function(){c.readyState===4&&l(c.responseText)},c.send(null)},r.loadScript=function(s,l){var c=o.getDocumentHead(),u=document.createElement("script");u.src=s,c.appendChild(u),u.onload=u.onreadystatechange=function(d,h){(h||!u.readyState||u.readyState=="loaded"||u.readyState=="complete")&&(u=u.onload=u.onreadystatechange=null,h||l())}},r.qualifyURL=function(s){var l=document.createElement("a");return l.href=s,l.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,a){r.inherits=function(o,s){o.super_=s,o.prototype=Object.create(s.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(o,s){for(var l in s)o[l]=s[l];return o},r.implement=function(o,s){r.mixin(o,s)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,a){var o={},s=function(){this.propagationStopped=!0},l=function(){this.defaultPrevented=!0};o._emit=o._dispatchEvent=function(c,u){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var d=this._eventRegistry[c]||[],h=this._defaultHandlers[c];if(!(!d.length&&!h)){(typeof u!="object"||!u)&&(u={}),u.type||(u.type=c),u.stopPropagation||(u.stopPropagation=s),u.preventDefault||(u.preventDefault=l),d=d.slice();for(var f=0;f<d.length&&(d[f](u,this),!u.propagationStopped);f++);if(h&&!u.defaultPrevented)return h(u,this)}},o._signal=function(c,u){var d=(this._eventRegistry||{})[c];if(d){d=d.slice();for(var h=0;h<d.length;h++)d[h](u,this)}},o.once=function(c,u){var d=this;if(this.on(c,function h(){d.off(c,h),u.apply(null,arguments)}),!u)return new Promise(function(h){u=h})},o.setDefaultHandler=function(c,u){var d=this._defaultHandlers;if(d||(d=this._defaultHandlers={_disabled_:{}}),d[c]){var h=d[c],f=d._disabled_[c];f||(d._disabled_[c]=f=[]),f.push(h);var p=f.indexOf(u);p!=-1&&f.splice(p,1)}d[c]=u},o.removeDefaultHandler=function(c,u){var d=this._defaultHandlers;if(d){var h=d._disabled_[c];if(d[c]==u)h&&this.setDefaultHandler(c,h.pop());else if(h){var f=h.indexOf(u);f!=-1&&h.splice(f,1)}}},o.on=o.addEventListener=function(c,u,d){this._eventRegistry=this._eventRegistry||{};var h=this._eventRegistry[c];return h||(h=this._eventRegistry[c]=[]),h.indexOf(u)==-1&&h[d?"unshift":"push"](u),u},o.off=o.removeListener=o.removeEventListener=function(c,u){this._eventRegistry=this._eventRegistry||{};var d=this._eventRegistry[c];if(d){var h=d.indexOf(u);h!==-1&&d.splice(h,1)}},o.removeAllListeners=function(c){c||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[c]=void 0),this._defaultHandlers&&(this._defaultHandlers[c]=void 0)},r.EventEmitter=o}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,a){r.reportError=function(s,l){var c=new Error(s);c.data=l,typeof console=="object"&&console.error&&console.error(c),setTimeout(function(){throw c})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,r,a){var o={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages"};r.defaultEnglishMessages=o}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,r,a){"no use strict";var o=n("./oop"),s=n("./event_emitter").EventEmitter,l=n("./report_error").reportError,c=n("./default_english_messages").defaultEnglishMessages,u={setOptions:function(m){Object.keys(m).forEach(function(g){this.setOption(g,m[g])},this)},getOptions:function(m){var g={};if(m)Array.isArray(m)||(g=m,m=Object.keys(g));else{var v=this.$options;m=Object.keys(v).filter(function(A){return!v[A].hidden})}return m.forEach(function(A){g[A]=this.getOption(A)},this),g},setOption:function(m,g){if(this["$"+m]!==g){var v=this.$options[m];if(!v)return d('misspelled option "'+m+'"');if(v.forwardTo)return this[v.forwardTo]&&this[v.forwardTo].setOption(m,g);v.handlesSet||(this["$"+m]=g),v&&v.set&&v.set.call(this,g)}},getOption:function(m){var g=this.$options[m];return g?g.forwardTo?this[g.forwardTo]&&this[g.forwardTo].getOption(m):g&&g.get?g.get.call(this):this["$"+m]:d('misspelled option "'+m+'"')}};function d(m){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var h,f,p=function(){function m(){this.$defaultOptions={},h=c,f="dollarSigns"}return m.prototype.defineOptions=function(g,v,A){return g.$options||(this.$defaultOptions[v]=g.$options={}),Object.keys(A).forEach(function(y){var S=A[y];typeof S=="string"&&(S={forwardTo:S}),S.name||(S.name=y),g.$options[S.name]=S,"initialValue"in S&&(g["$"+S.name]=S.initialValue)}),o.implement(g,u),this},m.prototype.resetOptions=function(g){Object.keys(g.$options).forEach(function(v){var A=g.$options[v];"value"in A&&g.setOption(v,A.value)})},m.prototype.setDefaultValue=function(g,v,A){if(!g){for(g in this.$defaultOptions)if(this.$defaultOptions[g][v])break;if(!this.$defaultOptions[g][v])return!1}var y=this.$defaultOptions[g]||(this.$defaultOptions[g]={});y[v]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,v,A):y[v].value=A)},m.prototype.setDefaultValues=function(g,v){Object.keys(v).forEach(function(A){this.setDefaultValue(g,A,v[A])},this)},m.prototype.setMessages=function(g,v){h=g,v&&v.placeholders&&(f=v.placeholders)},m.prototype.nls=function(g,v,A){h[g]||(d("No message found for the key '"+g+"' in the provided messages, trying to find a translation for the default string '"+v+"'."),h[v]||d("No message found for the default string '"+v+"' in the provided messages. Falling back to the default English message."));var y=h[g]||h[v]||v;return A&&(f==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function(S,x){return x=="$"?"$":A[x]})),f==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function(S,x){return A[x]}))),y},m}();p.prototype.warn=d,p.prototype.reportError=l,o.implement(p.prototype,s),r.AppConfig=p}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,a){a.exports=`.ace-tm .ace_gutter {
  background: #f0f0f0;
  color: #333;
}

.ace-tm .ace_print-margin {
  width: 1px;
  background: #e8e8e8;
}

.ace-tm .ace_fold {
    background-color: #6B72E6;
}

.ace-tm {
  background-color: #FFFFFF;
  color: black;
}

.ace-tm .ace_cursor {
  color: black;
}
        
.ace-tm .ace_invisible {
  color: rgb(191, 191, 191);
}

.ace-tm .ace_storage,
.ace-tm .ace_keyword {
  color: blue;
}

.ace-tm .ace_constant {
  color: rgb(197, 6, 11);
}

.ace-tm .ace_constant.ace_buildin {
  color: rgb(88, 72, 246);
}

.ace-tm .ace_constant.ace_language {
  color: rgb(88, 92, 246);
}

.ace-tm .ace_constant.ace_library {
  color: rgb(6, 150, 14);
}

.ace-tm .ace_invalid {
  background-color: rgba(255, 0, 0, 0.1);
  color: red;
}

.ace-tm .ace_support.ace_function {
  color: rgb(60, 76, 114);
}

.ace-tm .ace_support.ace_constant {
  color: rgb(6, 150, 14);
}

.ace-tm .ace_support.ace_type,
.ace-tm .ace_support.ace_class {
  color: rgb(109, 121, 222);
}

.ace-tm .ace_keyword.ace_operator {
  color: rgb(104, 118, 135);
}

.ace-tm .ace_string {
  color: rgb(3, 106, 7);
}

.ace-tm .ace_comment {
  color: rgb(76, 136, 107);
}

.ace-tm .ace_comment.ace_doc {
  color: rgb(0, 102, 255);
}

.ace-tm .ace_comment.ace_doc.ace_tag {
  color: rgb(128, 159, 191);
}

.ace-tm .ace_constant.ace_numeric {
  color: rgb(0, 0, 205);
}

.ace-tm .ace_variable {
  color: rgb(49, 132, 149);
}

.ace-tm .ace_xml-pe {
  color: rgb(104, 104, 91);
}

.ace-tm .ace_entity.ace_name.ace_function {
  color: #0000A2;
}


.ace-tm .ace_heading {
  color: rgb(12, 7, 255);
}

.ace-tm .ace_list {
  color:rgb(185, 6, 144);
}

.ace-tm .ace_meta.ace_tag {
  color:rgb(0, 22, 142);
}

.ace-tm .ace_string.ace_regex {
  color: rgb(255, 0, 0)
}

.ace-tm .ace_marker-layer .ace_selection {
  background: rgb(181, 213, 255);
}
.ace-tm.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px white;
}
.ace-tm .ace_marker-layer .ace_step {
  background: rgb(252, 255, 0);
}

.ace-tm .ace_marker-layer .ace_stack {
  background: rgb(164, 229, 101);
}

.ace-tm .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid rgb(192, 192, 192);
}

.ace-tm .ace_marker-layer .ace_active-line {
  background: rgba(0, 0, 0, 0.07);
}

.ace-tm .ace_gutter-active-line {
    background-color : #dcdcdc;
}

.ace-tm .ace_marker-layer .ace_selected-word {
  background: rgb(250, 250, 255);
  border: 1px solid rgb(200, 200, 250);
}

.ace-tm .ace_indent-guide {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}

.ace-tm .ace_indent-guide-active {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,a){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var o=n("../lib/dom");o.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,a){"no use strict";var o=n("./lib/lang"),s=n("./lib/net"),l=n("./lib/dom"),c=n("./lib/app_config").AppConfig;a.exports=r=new c;var u={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(p){if(!u.hasOwnProperty(p))throw new Error("Unknown config key: "+p);return u[p]},r.set=function(p,m){if(u.hasOwnProperty(p))u[p]=m;else if(this.setDefaultValue("",p,m)==!1)throw new Error("Unknown config key: "+p);p=="useStrictCSP"&&l.useStrictCSP(m)},r.all=function(){return o.copyObject(u)},r.$modes={},r.moduleUrl=function(p,m){if(u.$moduleUrls[p])return u.$moduleUrls[p];var g=p.split("/");m=m||g[g.length-2]||"";var v=m=="snippets"?"/":"-",A=g[g.length-1];if(m=="worker"&&v=="-"){var y=new RegExp("^"+m+"[\\-_]|[\\-_]"+m+"$","g");A=A.replace(y,"")}(!A||A==m)&&g.length>1&&(A=g[g.length-2]);var S=u[m+"Path"];return S==null?S=u.basePath:v=="/"&&(m=v=""),S&&S.slice(-1)!="/"&&(S+="/"),S+m+v+A+this.get("suffix")},r.setModuleUrl=function(p,m){return u.$moduleUrls[p]=m};var d=function(p,m){if(p==="ace/theme/textmate"||p==="./theme/textmate")return m(null,n("./theme/textmate"));if(h)return h(p,m);console.error("loader is not configured")},h;r.setLoader=function(p){h=p},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(p,m){var g;if(Array.isArray(p))var v=p[0],A=p[1];else if(typeof p=="string")var A=p;var y=function(S){if(S&&!r.$loading[A])return m&&m(S);if(r.$loading[A]||(r.$loading[A]=[]),r.$loading[A].push(m),!(r.$loading[A].length>1)){var x=function(){d(A,function(w,_){_&&(r.$loaded[A]=_),r._emit("load.module",{name:A,module:_});var C=r.$loading[A];r.$loading[A]=null,C.forEach(function(R){R&&R(_)})})};if(!r.get("packaged"))return x();s.loadScript(r.moduleUrl(A,v),x),f()}};if(r.dynamicModules[A])r.dynamicModules[A]().then(function(S){S.default?y(S.default):y(S)});else{try{g=this.$require(A)}catch{}y(g||r.$loaded[A])}},r.$require=function(p){if(typeof a.require=="function"){var m="require";return a[m](p)}},r.setModuleLoader=function(p,m){r.dynamicModules[p]=m};var f=function(){!u.basePath&&!u.workerPath&&!u.modePath&&!u.themePath&&!Object.keys(u.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),f=function(){})};r.version="1.35.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,a){n("./lib/fixoldbrowsers");var o=n("./config");o.setLoader(function(u,d){n([u],function(h){d(null,h)})});var s=function(){return this||typeof window<"u"&&window}();a.exports=function(u){o.init=l,o.$require=n,u.require=n},l(!0);function l(u){if(!(!s||!s.document)){o.set("packaged",u||n.packaged||a.packaged||s.define&&(void 0).packaged);var d={},h="",f=document.currentScript||document._currentScript,p=f&&f.ownerDocument||document;f&&f.src&&(h=f.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var m=p.getElementsByTagName("script"),g=0;g<m.length;g++){var v=m[g],A=v.src||v.getAttribute("src");if(A){for(var y=v.attributes,S=0,x=y.length;S<x;S++){var w=y[S];w.name.indexOf("data-ace-")===0&&(d[c(w.name.replace(/^data-ace-/,""))]=w.value)}var _=A.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);_&&(h=_[1])}}h&&(d.base=d.base||h,d.packaged=!0),d.basePath=d.base,d.workerPath=d.workerPath||d.base,d.modePath=d.modePath||d.base,d.themePath=d.themePath||d.base,delete d.base;for(var C in d)typeof d[C]<"u"&&o.set(C,d[C])}}function c(u){return u.replace(/-(.)/g,function(d,h){return h.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,a){var o=function(){function s(l,c,u,d){this.start={row:l,column:c},this.end={row:u,column:d}}return s.prototype.isEqual=function(l){return this.start.row===l.start.row&&this.end.row===l.end.row&&this.start.column===l.start.column&&this.end.column===l.end.column},s.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},s.prototype.contains=function(l,c){return this.compare(l,c)==0},s.prototype.compareRange=function(l){var c,u=l.end,d=l.start;return c=this.compare(u.row,u.column),c==1?(c=this.compare(d.row,d.column),c==1?2:c==0?1:0):c==-1?-2:(c=this.compare(d.row,d.column),c==-1?-1:c==1?42:0)},s.prototype.comparePoint=function(l){return this.compare(l.row,l.column)},s.prototype.containsRange=function(l){return this.comparePoint(l.start)==0&&this.comparePoint(l.end)==0},s.prototype.intersects=function(l){var c=this.compareRange(l);return c==-1||c==0||c==1},s.prototype.isEnd=function(l,c){return this.end.row==l&&this.end.column==c},s.prototype.isStart=function(l,c){return this.start.row==l&&this.start.column==c},s.prototype.setStart=function(l,c){typeof l=="object"?(this.start.column=l.column,this.start.row=l.row):(this.start.row=l,this.start.column=c)},s.prototype.setEnd=function(l,c){typeof l=="object"?(this.end.column=l.column,this.end.row=l.row):(this.end.row=l,this.end.column=c)},s.prototype.inside=function(l,c){return this.compare(l,c)==0?!(this.isEnd(l,c)||this.isStart(l,c)):!1},s.prototype.insideStart=function(l,c){return this.compare(l,c)==0?!this.isEnd(l,c):!1},s.prototype.insideEnd=function(l,c){return this.compare(l,c)==0?!this.isStart(l,c):!1},s.prototype.compare=function(l,c){return!this.isMultiLine()&&l===this.start.row?c<this.start.column?-1:c>this.end.column?1:0:l<this.start.row?-1:l>this.end.row?1:this.start.row===l?c>=this.start.column?0:-1:this.end.row===l?c<=this.end.column?0:1:0},s.prototype.compareStart=function(l,c){return this.start.row==l&&this.start.column==c?-1:this.compare(l,c)},s.prototype.compareEnd=function(l,c){return this.end.row==l&&this.end.column==c?1:this.compare(l,c)},s.prototype.compareInside=function(l,c){return this.end.row==l&&this.end.column==c?1:this.start.row==l&&this.start.column==c?-1:this.compare(l,c)},s.prototype.clipRows=function(l,c){if(this.end.row>c)var u={row:c+1,column:0};else if(this.end.row<l)var u={row:l,column:0};if(this.start.row>c)var d={row:c+1,column:0};else if(this.start.row<l)var d={row:l,column:0};return s.fromPoints(d||this.start,u||this.end)},s.prototype.extend=function(l,c){var u=this.compare(l,c);if(u==0)return this;if(u==-1)var d={row:l,column:c};else var h={row:l,column:c};return s.fromPoints(d||this.start,h||this.end)},s.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},s.prototype.isMultiLine=function(){return this.start.row!==this.end.row},s.prototype.clone=function(){return s.fromPoints(this.start,this.end)},s.prototype.collapseRows=function(){return this.end.column==0?new s(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new s(this.start.row,0,this.end.row,0)},s.prototype.toScreenRange=function(l){var c=l.documentToScreenPosition(this.start),u=l.documentToScreenPosition(this.end);return new s(c.row,c.column,u.row,u.column)},s.prototype.moveBy=function(l,c){this.start.row+=l,this.start.column+=c,this.end.row+=l,this.end.column+=c},s}();o.fromPoints=function(s,l){return new o(s.row,s.column,l.row,l.column)},o.comparePoints=function(s,l){return s.row-l.row||s.column-l.column},r.Range=o}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,a){for(var o=n("./oop"),s={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},l={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},c=0;c<10;c++)l["Digit"+c]=48+c,l["Numpad"+c]=96+c,s.PRINTABLE_KEYS[48+c]=""+c,s.FUNCTION_KEYS[96+c]="Numpad"+c;for(var c=65;c<91;c++){var u=String.fromCharCode(c+32);l["Key"+u.toUpperCase()]=c,s.PRINTABLE_KEYS[c]=u}for(var c=1;c<13;c++)l["F"+c]=111+c,s.FUNCTION_KEYS[111+c]="F"+c;var d={Shift:16,Control:17,Alt:18,Meta:224};for(var h in d)l[h]=l[h+"Left"]=l[h+"Right"]=d[h];r.$codeToKeyCode=l,s.PRINTABLE_KEYS[173]="-";for(var f in s.FUNCTION_KEYS){var p=s.FUNCTION_KEYS[f].toLowerCase();s[p]=parseInt(f,10)}for(var f in s.PRINTABLE_KEYS){var p=s.PRINTABLE_KEYS[f].toLowerCase();s[p]=parseInt(f,10)}o.mixin(s,s.MODIFIER_KEYS),o.mixin(s,s.PRINTABLE_KEYS),o.mixin(s,s.FUNCTION_KEYS),s.enter=s.return,s.escape=s.esc,s.del=s.delete,function(){for(var m=["cmd","ctrl","alt","shift"],g=Math.pow(2,m.length);g--;)s.KEY_MODS[g]=m.filter(function(v){return g&s.KEY_MODS[v]}).join("-")+"-"}(),s.KEY_MODS[0]="",s.KEY_MODS[-1]="input-",o.mixin(r,s),r.default=r,r.keyCodeToString=function(m){var g=s[m];return typeof g!="string"&&(g=String.fromCharCode(m)),g.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,a){var o=n("./keys"),s=n("./useragent"),l=null,c=0,u;function d(){u=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return u={passive:!1},!0}})}catch{}}function h(){return u==null&&d(),u}function f(S,x,w){this.elem=S,this.type=x,this.callback=w}f.prototype.destroy=function(){m(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var p=r.addListener=function(S,x,w,_){S.addEventListener(x,w,h()),_&&_.$toDestroy.push(new f(S,x,w))},m=r.removeListener=function(S,x,w){S.removeEventListener(x,w,h())};r.stopEvent=function(S){return r.stopPropagation(S),r.preventDefault(S),!1},r.stopPropagation=function(S){S.stopPropagation&&S.stopPropagation()},r.preventDefault=function(S){S.preventDefault&&S.preventDefault()},r.getButton=function(S){return S.type=="dblclick"?0:S.type=="contextmenu"||s.isMac&&S.ctrlKey&&!S.altKey&&!S.shiftKey?2:S.button},r.capture=function(S,x,w){var _=S&&S.ownerDocument||document;function C(R){x&&x(R),w&&w(R),m(_,"mousemove",x),m(_,"mouseup",C),m(_,"dragstart",C)}return p(_,"mousemove",x),p(_,"mouseup",C),p(_,"dragstart",C),C},r.addMouseWheelListener=function(S,x,w){p(S,"wheel",function(_){var C=.15,R=_.deltaX||0,k=_.deltaY||0;switch(_.deltaMode){case _.DOM_DELTA_PIXEL:_.wheelX=R*C,_.wheelY=k*C;break;case _.DOM_DELTA_LINE:var P=15;_.wheelX=R*P,_.wheelY=k*P;break;case _.DOM_DELTA_PAGE:var N=150;_.wheelX=R*N,_.wheelY=k*N;break}x(_)},w)},r.addMultiMouseDownListener=function(S,x,w,_,C){var R=0,k,P,N,L={2:"dblclick",3:"tripleclick",4:"quadclick"};function I(b){if(r.getButton(b)!==0?R=0:b.detail>1?(R++,R>4&&(R=1)):R=1,s.isIE){var T=Math.abs(b.clientX-k)>5||Math.abs(b.clientY-P)>5;(!N||T)&&(R=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},x[R-1]||600),R==1&&(k=b.clientX,P=b.clientY)}if(b._clicks=R,w[_]("mousedown",b),R>4)R=0;else if(R>1)return w[_](L[R],b)}Array.isArray(S)||(S=[S]),S.forEach(function(b){p(b,"mousedown",I,C)})};function g(S){return 0|(S.ctrlKey?1:0)|(S.altKey?2:0)|(S.shiftKey?4:0)|(S.metaKey?8:0)}r.getModifierString=function(S){return o.KEY_MODS[g(S)]};function v(S,x,w){var _=g(x);if(!w&&x.code&&(w=o.$codeToKeyCode[x.code]||w),!s.isMac&&l){if(x.getModifierState&&(x.getModifierState("OS")||x.getModifierState("Win"))&&(_|=8),l.altGr)if((3&_)!=3)l.altGr=0;else return;if(w===18||w===17){var C=x.location;if(w===17&&C===1)l[w]==1&&(c=x.timeStamp);else if(w===18&&_===3&&C===2){var R=x.timeStamp-c;R<50&&(l.altGr=!0)}}}if(w in o.MODIFIER_KEYS&&(w=-1),!(!_&&w===13&&x.location===3&&(S(x,_,-w),x.defaultPrevented))){if(s.isChromeOS&&_&8){if(S(x,_,w),x.defaultPrevented)return;_&=-9}return!_&&!(w in o.FUNCTION_KEYS)&&!(w in o.PRINTABLE_KEYS)?!1:S(x,_,w)}}r.addCommandKeyListener=function(S,x,w){var _=null;p(S,"keydown",function(C){l[C.keyCode]=(l[C.keyCode]||0)+1;var R=v(x,C,C.keyCode);return _=C.defaultPrevented,R},w),p(S,"keypress",function(C){_&&(C.ctrlKey||C.altKey||C.shiftKey||C.metaKey)&&(r.stopEvent(C),_=null)},w),p(S,"keyup",function(C){l[C.keyCode]=null},w),l||(A(),p(window,"focus",A))};function A(){l=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!s.isOldIE){var y=1;r.nextTick=function(S,x){x=x||window;var w="zero-timeout-message-"+y++,_=function(C){C.data==w&&(r.stopPropagation(C),m(x,"message",_),S())};p(x,"message",_),x.postMessage(w,"*")}}r.$idleBlocked=!1,r.onIdle=function(S,x){return setTimeout(function w(){r.$idleBlocked?setTimeout(w,100):S()},x)},r.$idleBlockId=null,r.blockIdle=function(S){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},S||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(S){setTimeout(S,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,a){var o;a.exports={lineMode:!1,pasteCancelled:function(){return o&&o>Date.now()-50?!0:o=!1},cancel:function(){o=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,r,a){var o=n("../lib/event"),s=n("../config").nls,l=n("../lib/useragent"),c=n("../lib/dom"),u=n("../lib/lang"),d=n("../clipboard"),h=l.isChrome<18,f=l.isIE,p=l.isChrome>63,m=400,g=n("../lib/keys"),v=g.KEY_MODS,A=l.isIOS,y=A?/\s/:/\n/,S=l.isMobile,x;x=function(w,_){var C=c.createElement("textarea");C.className="ace_text-input",C.setAttribute("wrap","off"),C.setAttribute("autocorrect","off"),C.setAttribute("autocapitalize","off"),C.setAttribute("spellcheck","false"),C.style.opacity="0",w.insertBefore(C,w.firstChild);var R=!1,k=!1,P=!1,N=!1,L="";S||(C.style.fontSize="1px");var I=!1,b=!1,T="",M=0,D=0,B=0,j=Number.MAX_SAFE_INTEGER,H=Number.MIN_SAFE_INTEGER,U=0;try{var $=document.activeElement===C}catch{}this.setNumberOfExtraLines=function(_e){if(j=Number.MAX_SAFE_INTEGER,H=Number.MIN_SAFE_INTEGER,_e<0){U=0;return}U=_e},this.setAriaOptions=function(_e){if(_e.activeDescendant?(C.setAttribute("aria-haspopup","true"),C.setAttribute("aria-autocomplete",_e.inline?"both":"list"),C.setAttribute("aria-activedescendant",_e.activeDescendant)):(C.setAttribute("aria-haspopup","false"),C.setAttribute("aria-autocomplete","both"),C.removeAttribute("aria-activedescendant")),_e.role&&C.setAttribute("role",_e.role),_e.setLabel){C.setAttribute("aria-roledescription",s("text-input.aria-roledescription","editor"));var ue="";if(_.$textInputAriaLabel&&(ue+="".concat(_.$textInputAriaLabel,", ")),_.session){var se=_.session.selection.cursor.row;ue+=s("text-input.aria-label","Cursor at row $0",[se+1])}C.setAttribute("aria-label",ue)}},this.setAriaOptions({role:"textbox"}),o.addListener(C,"blur",function(_e){b||(_.onBlur(_e),$=!1)},_),o.addListener(C,"focus",function(_e){if(!b){if($=!0,l.isEdge)try{if(!document.hasFocus())return}catch{}_.onFocus(_e),l.isEdge?setTimeout(Z):Z()}},_),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:_.renderer.enableKeyboardAccessibility}),L||p||this.$focusScroll=="browser")return C.focus({preventScroll:!0});var _e=C.style.top;C.style.position="fixed",C.style.top="0px";try{var ue=C.getBoundingClientRect().top!=0}catch{return}var se=[];if(ue)for(var oe=C.parentElement;oe&&oe.nodeType==1;)se.push(oe),oe.setAttribute("ace_nocontext","true"),!oe.parentElement&&oe.getRootNode?oe=oe.getRootNode().host:oe=oe.parentElement;C.focus({preventScroll:!0}),ue&&se.forEach(function(ge){ge.removeAttribute("ace_nocontext")}),setTimeout(function(){C.style.position="",C.style.top=="0px"&&(C.style.top=_e)},0)},this.blur=function(){C.blur()},this.isFocused=function(){return $},_.on("beforeEndOperation",function(){var _e=_.curOp,ue=_e&&_e.command&&_e.command.name;if(ue!="insertstring"){var se=ue&&(_e.docChanged||_e.selectionChanged);P&&se&&(T=C.value="",Be()),Z()}});var z=function(_e,ue){for(var se=ue,oe=1;oe<=_e-j&&oe<2*U+1;oe++)se+=_.session.getLine(_e-oe).length+1;return se},Z=A?function(_e){if(!(!$||R&&!_e||N)){_e||(_e="");var ue=`
 ab`+_e+`cde fg
`;ue!=C.value&&(C.value=T=ue);var se=4,oe=4+(_e.length||(_.selection.isEmpty()?0:1));(M!=se||D!=oe)&&C.setSelectionRange(se,oe),M=se,D=oe}}:function(){if(!(P||N)&&!(!$&&!X)){P=!0;var _e=0,ue=0,se="";if(_.session){var oe=_.selection,ge=oe.getRange(),De=oe.cursor.row;De===H+1?(j=H+1,H=j+2*U):De===j-1?(H=j-1,j=H-2*U):(De<j-1||De>H+1)&&(j=De>U?De-U:0,H=De>U?De+U:2*U);for(var Fe=[],Se=j;Se<=H;Se++)Fe.push(_.session.getLine(Se));if(se=Fe.join(`
`),_e=z(ge.start.row,ge.start.column),ue=z(ge.end.row,ge.end.column),ge.start.row<j){var Xe=_.session.getLine(j-1);_e=ge.start.row<j-1?0:_e,ue+=Xe.length+1,se=Xe+`
`+se}else if(ge.end.row>H){var Oe=_.session.getLine(H+1);ue=ge.end.row>H+1?Oe.length:ge.end.column,ue+=se.length+1,se=se+`
`+Oe}else S&&De>0&&(se=`
`+se,ue+=1,_e+=1);se.length>m&&(_e<m&&ue<m?se=se.slice(0,m):(se=`
`,_e==ue?_e=ue=0:(_e=0,ue=1)));var Ye=se+`

`;Ye!=T&&(C.value=T=Ye,M=D=Ye.length)}if(X&&(M=C.selectionStart,D=C.selectionEnd),D!=ue||M!=_e||C.selectionEnd!=D)try{C.setSelectionRange(_e,ue),M=_e,D=ue}catch{}P=!1}};this.resetSelection=Z,$&&_.onFocus();var K=function(_e){return _e.selectionStart===0&&_e.selectionEnd>=T.length&&_e.value===T&&T&&_e.selectionEnd!==D},Q=function(_e){P||(R?R=!1:K(C)?(_.selectAll(),Z()):S&&C.selectionStart!=M&&Z())},ee=null;this.setInputHandler=function(_e){ee=_e},this.getInputHandler=function(){return ee};var X=!1,te=function(_e,ue){if(X&&(X=!1),k)return Z(),_e&&_.onPaste(_e),k=!1,"";for(var se=C.selectionStart,oe=C.selectionEnd,ge=M,De=T.length-D,Fe=_e,Se=_e.length-se,Xe=_e.length-oe,Oe=0;ge>0&&T[Oe]==_e[Oe];)Oe++,ge--;for(Fe=Fe.slice(Oe),Oe=1;De>0&&T.length-Oe>M-1&&T[T.length-Oe]==_e[_e.length-Oe];)Oe++,De--;Se-=Oe-1,Xe-=Oe-1;var Ye=Fe.length-Oe+1;if(Ye<0&&(ge=-Ye,Ye=0),Fe=Fe.slice(0,Ye),!ue&&!Fe&&!Se&&!ge&&!De&&!Xe)return"";N=!0;var mt=!1;return l.isAndroid&&Fe==". "&&(Fe="  ",mt=!0),Fe&&!ge&&!De&&!Se&&!Xe||I?_.onTextInput(Fe):_.onTextInput(Fe,{extendLeft:ge,extendRight:De,restoreStart:Se,restoreEnd:Xe}),N=!1,T=_e,M=se,D=oe,B=Xe,mt?`
`:Fe},J=function(_e){if(P)return Me();if(_e&&_e.inputType){if(_e.inputType=="historyUndo")return _.execCommand("undo");if(_e.inputType=="historyRedo")return _.execCommand("redo")}var ue=C.value,se=te(ue,!0);(ue.length>m+100||y.test(se)||S&&M<1&&M==D)&&Z()},ne=function(_e,ue,se){var oe=_e.clipboardData||window.clipboardData;if(!(!oe||h)){var ge=f||se?"Text":"text/plain";try{return ue?oe.setData(ge,ue)!==!1:oe.getData(ge)}catch(De){if(!se)return ne(De,ue,!0)}}},ie=function(_e,ue){var se=_.getCopyText();if(!se)return o.preventDefault(_e);ne(_e,se)?(A&&(Z(se),R=se,setTimeout(function(){R=!1},10)),ue?_.onCut():_.onCopy(),o.preventDefault(_e)):(R=!0,C.value=se,C.select(),setTimeout(function(){R=!1,Z(),ue?_.onCut():_.onCopy()}))},he=function(_e){ie(_e,!0)},de=function(_e){ie(_e,!1)},ce=function(_e){var ue=ne(_e);d.pasteCancelled()||(typeof ue=="string"?(ue&&_.onPaste(ue,_e),l.isIE&&setTimeout(Z),o.preventDefault(_e)):(C.value="",k=!0))};o.addCommandKeyListener(C,function(_e,ue,se){if(!P)return _.onCommandKey(_e,ue,se)},_),o.addListener(C,"select",Q,_),o.addListener(C,"input",J,_),o.addListener(C,"cut",he,_),o.addListener(C,"copy",de,_),o.addListener(C,"paste",ce,_),(!("oncut"in C)||!("oncopy"in C)||!("onpaste"in C))&&o.addListener(w,"keydown",function(_e){if(!(l.isMac&&!_e.metaKey||!_e.ctrlKey))switch(_e.keyCode){case 67:de(_e);break;case 86:ce(_e);break;case 88:he(_e);break}},_);var Ee=function(_e){if(!(P||!_.onCompositionStart||_.$readOnly)&&(P={},!I)){_e.data&&(P.useTextareaForIME=!1),setTimeout(Me,0),_._signal("compositionStart"),_.on("mousedown",ze);var ue=_.getSelectionRange();ue.end.row=ue.start.row,ue.end.column=ue.start.column,P.markerRange=ue,P.selectionStart=M,_.onCompositionStart(P),P.useTextareaForIME?(T=C.value="",M=0,D=0):(C.msGetInputContext&&(P.context=C.msGetInputContext()),C.getInputContext&&(P.context=C.getInputContext()))}},Me=function(){if(!(!P||!_.onCompositionUpdate||_.$readOnly)){if(I)return ze();if(P.useTextareaForIME)_.onCompositionUpdate(C.value);else{var _e=C.value;te(_e),P.markerRange&&(P.context&&(P.markerRange.start.column=P.selectionStart=P.context.compositionStartOffset),P.markerRange.end.column=P.markerRange.start.column+D-P.selectionStart+B)}}},Be=function(_e){!_.onCompositionEnd||_.$readOnly||(P=!1,_.onCompositionEnd(),_.off("mousedown",ze),_e&&J())};function ze(){b=!0,C.blur(),C.focus(),b=!1}var je=u.delayedCall(Me,50).schedule.bind(null,null);function ye(_e){_e.keyCode==27&&C.value.length<C.selectionStart&&(P||(T=C.value),M=D=-1,Z()),je()}o.addListener(C,"compositionstart",Ee,_),o.addListener(C,"compositionupdate",Me,_),o.addListener(C,"keyup",ye,_),o.addListener(C,"keydown",je,_),o.addListener(C,"compositionend",Be,_),this.getElement=function(){return C},this.setCommandMode=function(_e){I=_e,C.readOnly=!1},this.setReadOnly=function(_e){I||(C.readOnly=_e)},this.setCopyWithEmptySelection=function(_e){},this.onContextMenu=function(_e){X=!0,Z(),_._emit("nativecontextmenu",{target:_,domEvent:_e}),this.moveToMouse(_e,!0)},this.moveToMouse=function(_e,ue){L||(L=C.style.cssText),C.style.cssText=(ue?"z-index:100000;":"")+(l.isIE?"opacity:0.1;":"")+"text-indent: -"+(M+D)*_.renderer.characterWidth*.5+"px;";var se=_.container.getBoundingClientRect(),oe=c.computedStyle(_.container),ge=se.top+(parseInt(oe.borderTopWidth)||0),De=se.left+(parseInt(se.borderLeftWidth)||0),Fe=se.bottom-ge-C.clientHeight-2,Se=function(Xe){c.translate(C,Xe.clientX-De-2,Math.min(Xe.clientY-ge-2,Fe))};Se(_e),_e.type=="mousedown"&&(_.renderer.$isMousePressed=!0,clearTimeout(me),l.isWin&&o.capture(_.container,Se,le))},this.onContextMenuClose=le;var me;function le(){clearTimeout(me),me=setTimeout(function(){L&&(C.style.cssText=L,L=""),_.renderer.$isMousePressed=!1,_.renderer.$keepTextAreaAtCursor&&_.renderer.$moveTextAreaToCursor()},0)}var pe=function(_e){_.textInput.onContextMenu(_e),le()};o.addListener(C,"mouseup",pe,_),o.addListener(C,"mousedown",function(_e){_e.preventDefault(),le()},_),o.addListener(_.renderer.scroller,"contextmenu",pe,_),o.addListener(C,"contextmenu",pe,_),A&&Ne(w,_,C);function Ne(_e,ue,se){var oe=null,ge=!1;se.addEventListener("keydown",function(Fe){oe&&clearTimeout(oe),ge=!0},!0),se.addEventListener("keyup",function(Fe){oe=setTimeout(function(){ge=!1},100)},!0);var De=function(Fe){if(document.activeElement===se&&!(ge||P||ue.$mouseHandler.isMousePressed)&&!R){var Se=se.selectionStart,Xe=se.selectionEnd,Oe=null,Ye=0;if(Se==0?Oe=g.up:Se==1?Oe=g.home:Xe>D&&T[Xe]==`
`?Oe=g.end:Se<M&&T[Se-1]==" "?(Oe=g.left,Ye=v.option):Se<M||Se==M&&D!=M&&Se==Xe?Oe=g.left:Xe>D&&T.slice(0,Xe).split(`
`).length>2?Oe=g.down:Xe>D&&T[Xe-1]==" "?(Oe=g.right,Ye=v.option):(Xe>D||Xe==D&&D!=M&&Se==Xe)&&(Oe=g.right),Se!==Xe&&(Ye|=v.shift),Oe){var mt=ue.onCommandKey({},Ye,Oe);if(!mt&&ue.commands){Oe=g.keyCodeToString(Oe);var ut=ue.commands.findKeyCommand(Ye,Oe);ut&&ue.execCommand(ut)}M=Se,D=Xe,Z("")}}};document.addEventListener("selectionchange",De),ue.on("destroy",function(){document.removeEventListener("selectionchange",De)})}this.destroy=function(){C.parentElement&&C.parentElement.removeChild(C)}},r.TextInput=x,r.$setUserAgentForTests=function(w,_){S=w,A=_}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,a){var o=n("../lib/useragent"),s=0,l=550,c=function(){function h(f){f.$clickSelection=null;var p=f.editor;p.setDefaultHandler("mousedown",this.onMouseDown.bind(f)),p.setDefaultHandler("dblclick",this.onDoubleClick.bind(f)),p.setDefaultHandler("tripleclick",this.onTripleClick.bind(f)),p.setDefaultHandler("quadclick",this.onQuadClick.bind(f)),p.setDefaultHandler("mousewheel",this.onMouseWheel.bind(f));var m=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];m.forEach(function(g){f[g]=this[g]},this),f.selectByLines=this.extendSelectionBy.bind(f,"getLineRange"),f.selectByWords=this.extendSelectionBy.bind(f,"getWordRange")}return h.prototype.onMouseDown=function(f){var p=f.inSelection(),m=f.getDocumentPosition();this.mousedownEvent=f;var g=this.editor,v=f.getButton();if(v!==0){var A=g.getSelectionRange(),y=A.isEmpty();(y||v==1)&&g.selection.moveToPosition(m),v==2&&(g.textInput.onContextMenu(f.domEvent),o.isMozilla||f.preventDefault());return}if(this.mousedownEvent.time=Date.now(),p&&!g.isFocused()&&(g.focus(),this.$focusTimeout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(f);return}return this.captureMouse(f),this.startSelect(m,f.domEvent._clicks>1),f.preventDefault()},h.prototype.startSelect=function(f,p){f=f||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var m=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?m.selection.selectToPosition(f):p||m.selection.moveToPosition(f),p||this.select(),m.setStyle("ace_selecting"),this.setState("select"))},h.prototype.select=function(){var f,p=this.editor,m=p.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(m);if(g==-1)f=this.$clickSelection.end;else if(g==1)f=this.$clickSelection.start;else{var v=d(this.$clickSelection,m);m=v.cursor,f=v.anchor}p.selection.setSelectionAnchor(f.row,f.column)}p.selection.selectToPosition(m),p.renderer.scrollCursorIntoView()},h.prototype.extendSelectionBy=function(f){var p,m=this.editor,g=m.renderer.screenToTextCoordinates(this.x,this.y),v=m.selection[f](g.row,g.column);if(this.$clickSelection){var A=this.$clickSelection.comparePoint(v.start),y=this.$clickSelection.comparePoint(v.end);if(A==-1&&y<=0)p=this.$clickSelection.end,(v.end.row!=g.row||v.end.column!=g.column)&&(g=v.start);else if(y==1&&A>=0)p=this.$clickSelection.start,(v.start.row!=g.row||v.start.column!=g.column)&&(g=v.end);else if(A==-1&&y==1)g=v.end,p=v.start;else{var S=d(this.$clickSelection,g);g=S.cursor,p=S.anchor}m.selection.setSelectionAnchor(p.row,p.column)}m.selection.selectToPosition(g),m.renderer.scrollCursorIntoView()},h.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},h.prototype.focusWait=function(){var f=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),p=Date.now();(f>s||p-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},h.prototype.onDoubleClick=function(f){var p=f.getDocumentPosition(),m=this.editor,g=m.session,v=g.getBracketRange(p);v?(v.isEmpty()&&(v.start.column--,v.end.column++),this.setState("select")):(v=m.selection.getWordRange(p.row,p.column),this.setState("selectByWords")),this.$clickSelection=v,this.select()},h.prototype.onTripleClick=function(f){var p=f.getDocumentPosition(),m=this.editor;this.setState("selectByLines");var g=m.getSelectionRange();g.isMultiLine()&&g.contains(p.row,p.column)?(this.$clickSelection=m.selection.getLineRange(g.start.row),this.$clickSelection.end=m.selection.getLineRange(g.end.row).end):this.$clickSelection=m.selection.getLineRange(p.row),this.select()},h.prototype.onQuadClick=function(f){var p=this.editor;p.selectAll(),this.$clickSelection=p.getSelectionRange(),this.setState("selectAll")},h.prototype.onMouseWheel=function(f){if(!f.getAccelKey()){f.getShiftKey()&&f.wheelY&&!f.wheelX&&(f.wheelX=f.wheelY,f.wheelY=0);var p=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var m=this.$lastScroll,g=f.domEvent.timeStamp,v=g-m.t,A=v?f.wheelX/v:m.vx,y=v?f.wheelY/v:m.vy;v<l&&(A=(A+m.vx)/2,y=(y+m.vy)/2);var S=Math.abs(A/y),x=!1;if(S>=1&&p.renderer.isScrollableBy(f.wheelX*f.speed,0)&&(x=!0),S<=1&&p.renderer.isScrollableBy(0,f.wheelY*f.speed)&&(x=!0),x)m.allowed=g;else if(g-m.allowed<l){var w=Math.abs(A)<=1.5*Math.abs(m.vx)&&Math.abs(y)<=1.5*Math.abs(m.vy);w?(x=!0,m.allowed=g):m.allowed=0}if(m.t=g,m.vx=A,m.vy=y,x)return p.renderer.scrollBy(f.wheelX*f.speed,f.wheelY*f.speed),f.stop()}},h}();c.prototype.selectEnd=c.prototype.selectByLinesEnd,c.prototype.selectAllEnd=c.prototype.selectByLinesEnd,c.prototype.selectByWordsEnd=c.prototype.selectByLinesEnd,r.DefaultHandlers=c;function u(h,f,p,m){return Math.sqrt(Math.pow(p-h,2)+Math.pow(m-f,2))}function d(h,f){if(h.start.row==h.end.row)var p=2*f.column-h.start.column-h.end.column;else if(h.start.row==h.end.row-1&&!h.start.column&&!h.end.column)var p=f.column-4;else var p=2*f.row-h.start.row-h.end.row;return p<0?{cursor:h.start,anchor:h.end}:{cursor:h.end,anchor:h.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,a){r.preventParentScroll=function(s){s.stopPropagation();var l=s.currentTarget,c=l.scrollHeight>l.clientHeight;c||s.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,a){var o=this&&this.__extends||function(){var g=function(v,A){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(y[x]=S[x])},g(v,A)};return function(v,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");g(v,A);function y(){this.constructor=v}v.prototype=A===null?Object.create(A):(y.prototype=A.prototype,new y)}}(),s=this&&this.__values||function(g){var v=typeof Symbol=="function"&&Symbol.iterator,A=v&&g[v],y=0;if(A)return A.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},l=n("./lib/dom");n("./lib/event");var c=n("./range").Range,u=n("./lib/scroll").preventParentScroll,d="ace_tooltip",h=function(){function g(v){this.isOpen=!1,this.$element=null,this.$parentNode=v}return g.prototype.$init=function(){return this.$element=l.createElement("div"),this.$element.className=d,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},g.prototype.getElement=function(){return this.$element||this.$init()},g.prototype.setText=function(v){this.getElement().textContent=v},g.prototype.setHtml=function(v){this.getElement().innerHTML=v},g.prototype.setPosition=function(v,A){this.getElement().style.left=v+"px",this.getElement().style.top=A+"px"},g.prototype.setClassName=function(v){l.addCssClass(this.getElement(),v)},g.prototype.setTheme=function(v){this.$element.className=d+" "+(v.isDark?"ace_dark ":"")+(v.cssClass||"")},g.prototype.show=function(v,A,y){v!=null&&this.setText(v),A!=null&&y!=null&&this.setPosition(A,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},g.prototype.hide=function(v){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=d,this.isOpen=!1)},g.prototype.getHeight=function(){return this.getElement().offsetHeight},g.prototype.getWidth=function(){return this.getElement().offsetWidth},g.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},g}(),f=function(){function g(){this.popups=[]}return g.prototype.addPopup=function(v){this.popups.push(v),this.updatePopups()},g.prototype.removePopup=function(v){var A=this.popups.indexOf(v);A!==-1&&(this.popups.splice(A,1),this.updatePopups())},g.prototype.updatePopups=function(){var v,A,y,S;this.popups.sort(function(L,I){return I.priority-L.priority});var x=[];try{for(var w=s(this.popups),_=w.next();!_.done;_=w.next()){var C=_.value,R=!0;try{for(var k=(y=void 0,s(x)),P=k.next();!P.done;P=k.next()){var N=P.value;if(this.doPopupsOverlap(N,C)){R=!1;break}}}catch(L){y={error:L}}finally{try{P&&!P.done&&(S=k.return)&&S.call(k)}finally{if(y)throw y.error}}R?x.push(C):C.hide()}}catch(L){v={error:L}}finally{try{_&&!_.done&&(A=w.return)&&A.call(w)}finally{if(v)throw v.error}}},g.prototype.doPopupsOverlap=function(v,A){var y=v.getElement().getBoundingClientRect(),S=A.getElement().getBoundingClientRect();return y.left<S.right&&y.right>S.left&&y.top<S.bottom&&y.bottom>S.top},g}(),p=new f;r.popupManager=p,r.Tooltip=h;var m=function(g){o(v,g);function v(A){A===void 0&&(A=document.body);var y=g.call(this,A)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var S=y.getElement();return S.style.whiteSpace="pre-wrap",S.style.pointerEvents="auto",S.addEventListener("mouseout",y.onMouseOut),S.tabIndex=-1,S.addEventListener("blur",(function(){S.contains(document.activeElement)||this.hide()}).bind(y)),S.addEventListener("wheel",u),y}return v.prototype.addToEditor=function(A){A.on("mousemove",this.onMouseMove),A.on("mousedown",this.hide),A.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},v.prototype.removeFromEditor=function(A){A.off("mousemove",this.onMouseMove),A.off("mousedown",this.hide),A.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},v.prototype.onMouseMove=function(A,y){this.lastEvent=A,this.lastT=Date.now();var S=y.$mouseHandler.isMousePressed;if(this.isOpen){var x=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(x.row,x.column)||S||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||S||(this.lastEvent=A,this.timeout=setTimeout(this.waitForHover,this.idleTime))},v.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var A=Date.now()-this.lastT;if(this.idleTime-A>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-A);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},v.prototype.isOutsideOfText=function(A){var y=A.editor,S=A.getDocumentPosition(),x=y.session.getLine(S.row);if(S.column==x.length){var w=y.renderer.pixelToScreenCoordinates(A.clientX,A.clientY),_=y.session.documentToScreenPosition(S.row,S.column);if(_.column!=w.column||_.row!=w.row)return!0}return!1},v.prototype.setDataProvider=function(A){this.$gatherData=A},v.prototype.showForRange=function(A,y,S,x){var w=10;if(!(x&&x!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var _=A.renderer;this.isOpen||(p.addPopup(this),this.$registerCloseEvents(),this.setTheme(_.theme)),this.isOpen=!0,this.addMarker(y,A.session),this.range=c.fromPoints(y.start,y.end);var C=_.textToScreenCoordinates(y.start.row,y.start.column),R=_.scroller.getBoundingClientRect();C.pageX<R.left&&(C.pageX=R.left);var k=this.getElement();k.innerHTML="",k.appendChild(S),k.style.maxHeight="",k.style.display="block";var P=k.clientHeight,N=k.clientWidth,L=window.innerHeight-C.pageY-_.lineHeight,I=!0;C.pageY-P<0&&C.pageY<L&&(I=!1),k.style.maxHeight=(I?C.pageY:L)-w+"px",k.style.top=I?"":C.pageY+_.lineHeight+"px",k.style.bottom=I?window.innerHeight-C.pageY+"px":"",k.style.left=Math.min(C.pageX,window.innerWidth-N-w)+"px"}},v.prototype.addMarker=function(A,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(A,"ace_highlight-marker","text")},v.prototype.hide=function(A){!A&&document.activeElement==this.getElement()||A&&A.target&&(A.type!="keydown"||A.ctrlKey||A.metaKey)&&this.$element.contains(A.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,p.removePopup(this)))},v.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},v.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},v.prototype.onMouseOut=function(A){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!A.relatedTarget||this.getElement().contains(A.relatedTarget)||A&&A.currentTarget.contains(A.relatedTarget)||A.relatedTarget.classList.contains("ace_content")||this.hide())},v}(h);r.HoverTooltip=m}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,r,a){var o=this&&this.__extends||function(){var p=function(m,g){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var y in A)Object.prototype.hasOwnProperty.call(A,y)&&(v[y]=A[y])},p(m,g)};return function(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");p(m,g);function v(){this.constructor=m}m.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),s=this&&this.__values||function(p){var m=typeof Symbol=="function"&&Symbol.iterator,g=m&&p[m],v=0;if(g)return g.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&v>=p.length&&(p=void 0),{value:p&&p[v++],done:!p}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},l=n("../lib/dom"),c=n("../lib/event"),u=n("../tooltip").Tooltip,d=n("../config").nls;function h(p){var m=p.editor,g=m.renderer.$gutterLayer,v=new f(m);p.editor.setDefaultHandler("guttermousedown",function(_){if(!(!m.isFocused()||_.getButton()!=0)){var C=g.getRegion(_);if(C!="foldWidgets"){var R=_.getDocumentPosition().row,k=m.session.selection;if(_.getShiftKey())k.selectTo(R,0);else{if(_.domEvent.detail==2)return m.selectAll(),_.preventDefault();p.$clickSelection=m.selection.getLineRange(R)}return p.setState("selectByLines"),p.captureMouse(_),_.preventDefault()}}});var A,y;function S(){var _=y.getDocumentPosition().row,C=m.session.getLength();if(_==C){var R=m.renderer.pixelToScreenCoordinates(0,y.y).row,k=y.$pos;if(R>m.session.documentToScreenRow(k.row,k.column))return x()}if(v.showTooltip(_),!!v.isOpen)if(m.on("mousewheel",x),p.$tooltipFollowsMouse)w(y);else{var P=y.getGutterRow(),N=g.$lines.get(P);if(N){var L=N.element.querySelector(".ace_gutter_annotation"),I=L.getBoundingClientRect(),b=v.getElement().style;b.left=I.right+"px",b.top=I.bottom+"px"}else w(y)}}function x(){A&&(A=clearTimeout(A)),v.isOpen&&(v.hideTooltip(),m.off("mousewheel",x))}function w(_){v.setPosition(_.x,_.y)}p.editor.setDefaultHandler("guttermousemove",function(_){var C=_.domEvent.target||_.domEvent.srcElement;if(l.hasCssClass(C,"ace_fold-widget"))return x();v.isOpen&&p.$tooltipFollowsMouse&&w(_),y=_,!A&&(A=setTimeout(function(){A=null,y&&!p.isMousePressed?S():x()},50))}),c.addListener(m.renderer.$gutter,"mouseout",function(_){y=null,!(!v.isOpen||A)&&(A=setTimeout(function(){A=null,x()},50))},m),m.on("changeSession",x),m.on("input",x)}r.GutterHandler=h;var f=function(p){o(m,p);function m(g){var v=p.call(this,g.container)||this;return v.editor=g,v}return m.prototype.setPosition=function(g,v){var A=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,S=this.getWidth(),x=this.getHeight();g+=15,v+=15,g+S>A&&(g-=g+S-A),v+x>y&&(v-=20+x),u.prototype.setPosition.call(this,g,v)},Object.defineProperty(m,"annotationLabels",{get:function(){return{error:{singular:d("gutter-tooltip.aria-label.error.singular","error"),plural:d("gutter-tooltip.aria-label.error.plural","errors")},warning:{singular:d("gutter-tooltip.aria-label.warning.singular","warning"),plural:d("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:d("gutter-tooltip.aria-label.info.singular","information message"),plural:d("gutter-tooltip.aria-label.info.plural","information messages")}}},enumerable:!1,configurable:!0}),m.prototype.showTooltip=function(g){var v=this.editor.renderer.$gutterLayer,A=v.$annotations[g],y;A?y={text:Array.from(A.text),type:Array.from(A.type)}:y={text:[],type:[]};var S=v.session.getFoldLine(g);if(S&&v.$showFoldedAnnotations){for(var x={error:[],warning:[],info:[]},w,_=g+1;_<=S.end.row;_++)if(v.$annotations[_])for(var C=0;C<v.$annotations[_].text.length;C++){var R=v.$annotations[_].type[C];if(x[R].push(v.$annotations[_].text[C]),R==="error"){w="error_fold";continue}if(R==="warning"){w="warning_fold";continue}}if(w==="error_fold"||w==="warning_fold"){var k="".concat(m.annotationsToSummaryString(x)," in folded code.");y.text.push(k),y.type.push(w)}}if(y.text.length===0)return this.hide();for(var P={error:[],warning:[],info:[]},N=v.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",_=0;_<y.text.length;_++){var L="<span class='ace_".concat(y.type[_]," ").concat(N,"' aria-label='").concat(m.annotationLabels[y.type[_].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[_]);P[y.type[_].replace("_fold","")].push(L)}var I=[].concat(P.error,P.warning,P.info).join("<br>");this.setHtml(I),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},m.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},m.annotationsToSummaryString=function(g){var v,A,y=[],S=["error","warning","info"];try{for(var x=s(S),w=x.next();!w.done;w=x.next()){var _=w.value;if(g[_].length){var C=g[_].length===1?m.annotationLabels[_].singular:m.annotationLabels[_].plural;y.push("".concat(g[_].length," ").concat(C))}}}catch(R){v={error:R}}finally{try{w&&!w.done&&(A=x.return)&&A.call(x)}finally{if(v)throw v.error}}return y.join(", ")},m}(u);r.GutterTooltip=f}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,a){var o=n("../lib/event"),s=n("../lib/useragent"),l=function(){function c(u,d){this.speed,this.wheelX,this.wheelY,this.domEvent=u,this.editor=d,this.x=this.clientX=u.clientX,this.y=this.clientY=u.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return c.prototype.stopPropagation=function(){o.stopPropagation(this.domEvent),this.propagationStopped=!0},c.prototype.preventDefault=function(){o.preventDefault(this.domEvent),this.defaultPrevented=!0},c.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},c.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},c.prototype.getGutterRow=function(){var u=this.getDocumentPosition().row,d=this.editor.session.documentToScreenRow(u,0),h=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return d-h},c.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var u=this.editor,d=u.getSelectionRange();if(d.isEmpty())this.$inSelection=!1;else{var h=this.getDocumentPosition();this.$inSelection=d.contains(h.row,h.column)}return this.$inSelection},c.prototype.getButton=function(){return o.getButton(this.domEvent)},c.prototype.getShiftKey=function(){return this.domEvent.shiftKey},c.prototype.getAccelKey=function(){return s.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},c}();r.MouseEvent=l}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,a){var o=n("../lib/dom"),s=n("../lib/event"),l=n("../lib/useragent"),c=200,u=200,d=5;function h(p){var m=p.editor,g=o.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent=" ";var v=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];v.forEach(function(z){p[z]=this[z]},this),m.on("mousedown",this.onMouseDown.bind(p));var A=m.container,y,S,x,w,_,C,R=0,k,P,N,L,I;this.onDragStart=function(z){if(this.cancelDrag||!A.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(z)},0),z.preventDefault()}_=m.getSelectionRange();var K=z.dataTransfer;K.effectAllowed=m.getReadOnly()?"copy":"copyMove",m.container.appendChild(g),K.setDragImage&&K.setDragImage(g,0,0),setTimeout(function(){m.container.removeChild(g)}),K.clearData(),K.setData("Text",m.session.getTextRange()),P=!0,this.setState("drag")},this.onDragEnd=function(z){if(A.draggable=!1,P=!1,this.setState(null),!m.getReadOnly()){var Z=z.dataTransfer.dropEffect;!k&&Z=="move"&&m.session.remove(m.getSelectionRange()),m.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(z){if(!(m.getReadOnly()||!U(z.dataTransfer)))return S=z.clientX,x=z.clientY,y||D(),R++,z.dataTransfer.dropEffect=k=$(z),s.preventDefault(z)},this.onDragOver=function(z){if(!(m.getReadOnly()||!U(z.dataTransfer)))return S=z.clientX,x=z.clientY,y||(D(),R++),j!==null&&(j=null),z.dataTransfer.dropEffect=k=$(z),s.preventDefault(z)},this.onDragLeave=function(z){if(R--,R<=0&&y)return B(),k=null,s.preventDefault(z)},this.onDrop=function(z){if(C){var Z=z.dataTransfer;if(P)switch(k){case"move":_.contains(C.row,C.column)?_={start:C,end:C}:_=m.moveText(_,C);break;case"copy":_=m.moveText(_,C,!0);break}else{var K=Z.getData("Text");_={start:C,end:m.session.insert(C,K)},m.focus(),k=null}return B(),s.preventDefault(z)}},s.addListener(A,"dragstart",this.onDragStart.bind(p),m),s.addListener(A,"dragend",this.onDragEnd.bind(p),m),s.addListener(A,"dragenter",this.onDragEnter.bind(p),m),s.addListener(A,"dragover",this.onDragOver.bind(p),m),s.addListener(A,"dragleave",this.onDragLeave.bind(p),m),s.addListener(A,"drop",this.onDrop.bind(p),m);function b(z,Z){var K=Date.now(),Q=!Z||z.row!=Z.row,ee=!Z||z.column!=Z.column;if(!L||Q||ee)m.moveCursorToPosition(z),L=K,I={x:S,y:x};else{var X=f(I.x,I.y,S,x);X>d?L=null:K-L>=u&&(m.renderer.scrollCursorIntoView(),L=null)}}function T(z,Z){var K=Date.now(),Q=m.renderer.layerConfig.lineHeight,ee=m.renderer.layerConfig.characterWidth,X=m.renderer.scroller.getBoundingClientRect(),te={x:{left:S-X.left,right:X.right-S},y:{top:x-X.top,bottom:X.bottom-x}},J=Math.min(te.x.left,te.x.right),ne=Math.min(te.y.top,te.y.bottom),ie={row:z.row,column:z.column};J/ee<=2&&(ie.column+=te.x.left<te.x.right?-3:2),ne/Q<=1&&(ie.row+=te.y.top<te.y.bottom?-1:1);var he=z.row!=ie.row,de=z.column!=ie.column,ce=!Z||z.row!=Z.row;he||de&&!ce?N?K-N>=c&&m.renderer.scrollCursorIntoView(ie):N=K:N=null}function M(){var z=C;C=m.renderer.screenToTextCoordinates(S,x),b(C,z),T(C,z)}function D(){_=m.selection.toOrientedRange(),y=m.session.addMarker(_,"ace_selection",m.getSelectionStyle()),m.clearSelection(),m.isFocused()&&m.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),M(),w=setInterval(M,20),R=0,s.addListener(document,"mousemove",H)}function B(){clearInterval(w),m.session.removeMarker(y),y=null,m.selection.fromOrientedRange(_),m.isFocused()&&!P&&m.$resetCursorStyle(),_=null,C=null,R=0,N=null,L=null,s.removeListener(document,"mousemove",H)}var j=null;function H(){j==null&&(j=setTimeout(function(){j!=null&&y&&B()},20))}function U(z){var Z=z.types;return!Z||Array.prototype.some.call(Z,function(K){return K=="text/plain"||K=="Text"})}function $(z){var Z=["copy","copymove","all","uninitialized"],K=["move","copymove","linkmove","all","uninitialized"],Q=l.isMac?z.altKey:z.ctrlKey,ee="uninitialized";try{ee=z.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return Q&&Z.indexOf(ee)>=0?X="copy":K.indexOf(ee)>=0?X="move":Z.indexOf(ee)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var p=Date.now()-this.mousedownEvent.time;p>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var p=this.editor.container;p.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(p){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var p=this.editor,m=p.container;m.draggable=!0,p.renderer.$cursorLayer.setBlinking(!1),p.setStyle("ace_dragging");var g=l.isWin?"default":"move";p.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(p){var m=this.editor.container;if(l.isIE&&this.state=="dragReady"){var g=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&m.dragDrop()}if(this.state==="dragWait"){var g=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(m.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(p){if(this.$dragEnabled){this.mousedownEvent=p;var m=this.editor,g=p.inSelection(),v=p.getButton(),A=p.domEvent.detail||1;if(A===1&&v===0&&g){if(p.editor.inMultiSelectMode&&(p.getAccelKey()||p.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=p.domEvent.target||p.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),m.getDragDelay()){if(l.isWebKit){this.cancelDrag=!0;var S=m.container;S.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(p,this.onMouseDrag.bind(this)),p.defaultPrevented=!0}}}}).call(h.prototype);function f(p,m,g,v){return Math.sqrt(Math.pow(g-p,2)+Math.pow(v-m,2))}r.DragdropHandler=h}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,a){var o=n("./mouse_event").MouseEvent,s=n("../lib/event"),l=n("../lib/dom");r.addTouchListeners=function(c,u){var d="scroll",h,f,p,m,g,v,A=0,y,S=0,x=0,w=0,_,C;function R(){var b=window.navigator&&window.navigator.clipboard,T=!1,M=function(){var B=u.getCopyText(),j=u.session.getUndoManager().hasUndo();C.replaceChild(l.buildDom(T?["span",!B&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],B&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],B&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],b&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],j&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),C.firstChild)},D=function(B){var j=B.target.getAttribute("action");if(j=="more"||!T)return T=!T,M();j=="paste"?b.readText().then(function(H){u.execCommand(j,H)}):j&&((j=="cut"||j=="copy")&&(b?b.writeText(u.getCopyText()):document.execCommand("copy")),u.execCommand(j)),C.firstChild.style.display="none",T=!1,j!="openCommandPalette"&&u.focus()};C=l.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(B){d="menu",B.stopPropagation(),B.preventDefault(),u.textInput.focus()},ontouchend:function(B){B.stopPropagation(),B.preventDefault(),D(B)},onclick:D},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],u.container)}function k(){C||R();var b=u.selection.cursor,T=u.renderer.textToScreenCoordinates(b.row,b.column),M=u.renderer.textToScreenCoordinates(0,0).pageX,D=u.renderer.scrollLeft,B=u.container.getBoundingClientRect();C.style.top=T.pageY-B.top-3+"px",T.pageX-B.left<B.width-70?(C.style.left="",C.style.right="10px"):(C.style.right="",C.style.left=M+D-B.left+"px"),C.style.display="",C.firstChild.style.display="none",u.on("input",P)}function P(b){C&&(C.style.display="none"),u.off("input",P)}function N(){g=null,clearTimeout(g);var b=u.selection.getRange(),T=b.contains(y.row,y.column);(b.isEmpty()||!T)&&(u.selection.moveToPosition(y),u.selection.selectWord()),d="wait",k()}function L(){g=null,clearTimeout(g),u.selection.moveToPosition(y);var b=S>=2?u.selection.getLineRange(y.row):u.session.getBracketRange(y);b&&!b.isEmpty()?u.selection.setRange(b):u.selection.selectWord(),d="wait"}s.addListener(c,"contextmenu",function(b){if(_){var T=u.textInput.getElement();T.focus()}},u),s.addListener(c,"touchstart",function(b){var T=b.touches;if(g||T.length>1){clearTimeout(g),g=null,p=-1,d="zoom";return}_=u.$mouseHandler.isMousePressed=!0;var M=u.renderer.layerConfig.lineHeight,D=u.renderer.layerConfig.lineHeight,B=b.timeStamp;m=B;var j=T[0],H=j.clientX,U=j.clientY;Math.abs(h-H)+Math.abs(f-U)>M&&(p=-1),h=b.clientX=H,f=b.clientY=U,x=w=0;var $=new o(b,u);if(y=$.getDocumentPosition(),B-p<500&&T.length==1&&!A)S++,b.preventDefault(),b.button=0,L();else{S=0;var z=u.selection.cursor,Z=u.selection.isEmpty()?z:u.selection.anchor,K=u.renderer.$cursorLayer.getPixelPosition(z,!0),Q=u.renderer.$cursorLayer.getPixelPosition(Z,!0),ee=u.renderer.scroller.getBoundingClientRect(),X=u.renderer.layerConfig.offset,te=u.renderer.scrollLeft,J=function(he,de){return he=he/D,de=de/M-.75,he*he+de*de};if(b.clientX<ee.left){d="zoom";return}var ne=J(b.clientX-ee.left-K.left+te,b.clientY-ee.top-K.top+X),ie=J(b.clientX-ee.left-Q.left+te,b.clientY-ee.top-Q.top+X);ne<3.5&&ie<3.5&&(d=ne>ie?"cursor":"anchor"),ie<3.5?d="anchor":ne<3.5?d="cursor":d="scroll",g=setTimeout(N,450)}p=B},u),s.addListener(c,"touchend",function(b){_=u.$mouseHandler.isMousePressed=!1,v&&clearInterval(v),d=="zoom"?(d="",A=0):g?(u.selection.moveToPosition(y),A=0,k()):d=="scroll"?(I(),P()):k(),clearTimeout(g),g=null},u),s.addListener(c,"touchmove",function(b){g&&(clearTimeout(g),g=null);var T=b.touches;if(!(T.length>1||d=="zoom")){var M=T[0],D=h-M.clientX,B=f-M.clientY;if(d=="wait")if(D*D+B*B>4)d="cursor";else return b.preventDefault();h=M.clientX,f=M.clientY,b.clientX=M.clientX,b.clientY=M.clientY;var j=b.timeStamp,H=j-m;if(m=j,d=="scroll"){var U=new o(b,u);U.speed=1,U.wheelX=D,U.wheelY=B,10*Math.abs(D)<Math.abs(B)&&(D=0),10*Math.abs(B)<Math.abs(D)&&(B=0),H!=0&&(x=D/H,w=B/H),u._emit("mousewheel",U),U.propagationStopped||(x=w=0)}else{var $=new o(b,u),z=$.getDocumentPosition();d=="cursor"?u.selection.moveCursorToPosition(z):d=="anchor"&&u.selection.setSelectionAnchor(z.row,z.column),u.renderer.scrollCursorIntoView(z),b.preventDefault()}}},u);function I(){A+=60,v=setInterval(function(){A--<=0&&(clearInterval(v),v=null),Math.abs(x)<.01&&(x=0),Math.abs(w)<.01&&(w=0),A<20&&(x=.9*x),A<20&&(w=.9*w);var b=u.session.getScrollTop();u.renderer.scrollBy(10*x,10*w),b==u.session.getScrollTop()&&(A=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,a){var o=n("../lib/event"),s=n("../lib/useragent"),l=n("./default_handlers").DefaultHandlers,c=n("./default_gutter_handler").GutterHandler,u=n("./mouse_event").MouseEvent,d=n("./dragdrop_handler").DragdropHandler,h=n("./touch_handler").addTouchListeners,f=n("../config"),p=function(){function m(g){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var v=this;this.editor=g,new l(this),new c(this),new d(this);var A=function(x){var w=!document.hasFocus||!document.hasFocus()||!g.isFocused()&&document.activeElement==(g.textInput&&g.textInput.getElement());w&&window.focus(),g.focus(),setTimeout(function(){g.isFocused()||g.focus()})},y=g.renderer.getMouseEventTarget();o.addListener(y,"click",this.onMouseEvent.bind(this,"click"),g),o.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),g),o.addMultiMouseDownListener([y,g.renderer.scrollBarV&&g.renderer.scrollBarV.inner,g.renderer.scrollBarH&&g.renderer.scrollBarH.inner,g.textInput&&g.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",g),o.addMouseWheelListener(g.container,this.onMouseWheel.bind(this,"mousewheel"),g),h(g.container,g);var S=g.renderer.$gutter;o.addListener(S,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),g),o.addListener(S,"click",this.onMouseEvent.bind(this,"gutterclick"),g),o.addListener(S,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),g),o.addListener(S,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),g),o.addListener(y,"mousedown",A,g),o.addListener(S,"mousedown",A,g),s.isIE&&g.renderer.scrollBarV&&(o.addListener(g.renderer.scrollBarV.element,"mousedown",A,g),o.addListener(g.renderer.scrollBarH.element,"mousedown",A,g)),g.on("mousemove",function(x){if(!(v.state||v.$dragDelay||!v.$dragEnabled)){var w=g.renderer.screenToTextCoordinates(x.x,x.y),_=g.session.selection.getRange(),C=g.renderer;!_.isEmpty()&&_.insideStart(w.row,w.column)?C.setCursorStyle("default"):C.setCursorStyle("")}},g)}return m.prototype.onMouseEvent=function(g,v){this.editor.session&&this.editor._emit(g,new u(v,this.editor))},m.prototype.onMouseMove=function(g,v){var A=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!A||!A.length||this.editor._emit(g,new u(v,this.editor))},m.prototype.onMouseWheel=function(g,v){var A=new u(v,this.editor);A.speed=this.$scrollSpeed*2,A.wheelX=v.wheelX,A.wheelY=v.wheelY,this.editor._emit(g,A)},m.prototype.setState=function(g){this.state=g},m.prototype.captureMouse=function(g,v){this.x=g.x,this.y=g.y,this.isMousePressed=!0;var A=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var S=this,x=function(k){if(k){if(s.isWebKit&&!k.which&&S.releaseMouse)return S.releaseMouse();S.x=k.clientX,S.y=k.clientY,v&&v(k),S.mouseEvent=new u(k,S.editor),S.$mouseMoved=!0}},w=function(k){A.off("beforeEndOperation",C),clearInterval(R),A.session&&_(),S[S.state+"End"]&&S[S.state+"End"](k),S.state="",S.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),S.$onCaptureMouseMove=S.releaseMouse=null,k&&S.onMouseEvent("mouseup",k),A.endOperation()},_=function(){S[S.state]&&S[S.state](),S.$mouseMoved=!1};if(s.isOldIE&&g.domEvent.type=="dblclick")return setTimeout(function(){w(g)});var C=function(k){S.releaseMouse&&A.curOp.command.name&&A.curOp.selectionChanged&&(S[S.state+"End"]&&S[S.state+"End"](),S.state="",S.releaseMouse())};A.on("beforeEndOperation",C),A.startOperation({command:{name:"mouse"}}),S.$onCaptureMouseMove=x,S.releaseMouse=o.capture(this.editor.container,x,w);var R=setInterval(_,20)},m.prototype.cancelContextMenu=function(){var g=(function(v){v&&v.domEvent&&v.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",g),v&&v.domEvent&&o.stopEvent(v.domEvent))}).bind(this);setTimeout(g,10),this.editor.on("nativecontextmenu",g)},m.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},m}();p.prototype.releaseMouse=null,f.defineOptions(p.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:s.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=p}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,a){var o=n("../lib/dom"),s=function(){function l(c){c.on("click",function(u){var d=u.getDocumentPosition(),h=c.session,f=h.getFoldAt(d.row,d.column,1);f&&(u.getAccelKey()?h.removeFold(f):h.expandFold(f),u.stop());var p=u.domEvent&&u.domEvent.target;p&&o.hasCssClass(p,"ace_inline_button")&&o.hasCssClass(p,"ace_toggle_wrap")&&(h.setOption("wrap",!h.getUseWrapMode()),c.renderer.scrollCursorIntoView())}),c.on("gutterclick",function(u){var d=c.renderer.$gutterLayer.getRegion(u);if(d=="foldWidgets"){var h=u.getDocumentPosition().row,f=c.session;f.foldWidgets&&f.foldWidgets[h]&&c.session.onFoldWidgetClick(h,u),c.isFocused()||c.focus(),u.stop()}}),c.on("gutterdblclick",function(u){var d=c.renderer.$gutterLayer.getRegion(u);if(d=="foldWidgets"){var h=u.getDocumentPosition().row,f=c.session,p=f.getParentFoldRangeData(h,!0),m=p.range||p.firstRange;if(m){h=m.start.row;var g=f.getFoldAt(h,f.getLine(h).length,1);g?f.removeFold(g):(f.addFold("...",m),c.renderer.scrollCursorIntoView({row:m.start.row,column:0}))}u.stop()}})}return l}();r.FoldHandler=s}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,a){var o=n("../lib/keys"),s=n("../lib/event"),l=function(){function c(u){this.$editor=u,this.$data={editor:u},this.$handlers=[],this.setDefaultHandler(u.commands)}return c.prototype.setDefaultHandler=function(u){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=u,this.addKeyboardHandler(u,0)},c.prototype.setKeyboardHandler=function(u){var d=this.$handlers;if(d[d.length-1]!=u){for(;d[d.length-1]&&d[d.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(d[d.length-1]);this.addKeyboardHandler(u,1)}},c.prototype.addKeyboardHandler=function(u,d){if(u){typeof u=="function"&&!u.handleKeyboard&&(u.handleKeyboard=u);var h=this.$handlers.indexOf(u);h!=-1&&this.$handlers.splice(h,1),d==null?this.$handlers.push(u):this.$handlers.splice(d,0,u),h==-1&&u.attach&&u.attach(this.$editor)}},c.prototype.removeKeyboardHandler=function(u){var d=this.$handlers.indexOf(u);return d==-1?!1:(this.$handlers.splice(d,1),u.detach&&u.detach(this.$editor),!0)},c.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},c.prototype.getStatusText=function(){var u=this.$data,d=u.editor;return this.$handlers.map(function(h){return h.getStatusText&&h.getStatusText(d,u)||""}).filter(Boolean).join(" ")},c.prototype.$callKeyboardHandlers=function(u,d,h,f){for(var p,m=!1,g=this.$editor.commands,v=this.$handlers.length;v--&&(p=this.$handlers[v].handleKeyboard(this.$data,u,d,h,f),!(!(!p||!p.command)&&(p.command=="null"?m=!0:m=g.exec(p.command,this.$editor,p.args,f),m&&f&&u!=-1&&p.passEvent!=!0&&p.command.passEvent!=!0&&s.stopEvent(f),m))););return!m&&u==-1&&(p={command:"insertstring"},m=g.exec("insertstring",this.$editor,d)),m&&this.$editor._signal&&this.$editor._signal("keyboardActivity",p),m},c.prototype.onCommandKey=function(u,d,h){var f=o.keyCodeToString(h);return this.$callKeyboardHandlers(d,f,h,u)},c.prototype.onTextInput=function(u){return this.$callKeyboardHandlers(-1,u)},c}();r.KeyBinding=l}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,a){var o=0,s=0,l=!1,c=!1,u=!1,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f=0,p=1,m=0,g=1,v=2,A=3,y=4,S=5,x=6,w=7,_=8,C=9,R=10,k=11,P=12,N=13,L=14,I=15,b=16,T=17,M=18,D=[M,M,M,M,M,M,M,M,M,x,S,x,_,S,M,M,M,M,M,M,M,M,M,M,M,M,M,M,S,S,S,x,_,y,y,k,k,k,y,y,y,y,y,R,C,R,C,C,v,v,v,v,v,v,v,v,v,v,C,y,y,y,y,y,y,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,y,y,y,y,y,y,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,y,y,y,y,M,M,M,M,M,M,S,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,C,y,k,k,k,k,y,y,y,y,m,y,y,M,y,y,k,k,v,v,y,m,y,y,y,v,m,y,y,y,y,y],B=[_,_,_,_,_,_,_,_,_,_,_,M,M,M,m,g,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,_,S,N,L,I,b,T,C,k,k,k,k,k,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,C,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,_];function j(z,Z,K,Q){var ee=o?h:d,X=null,te=null,J=null,ne=0,ie=null,he=null,de=-1,ce=null,Ee=null,Me=[];if(!Q)for(ce=0,Q=[];ce<K;ce++)Q[ce]=$(z[ce]);for(s=o,l=!1,c=!1,u=!1,Ee=0;Ee<K;Ee++){if(X=ne,Me[Ee]=te=U(z,Q,Me,Ee),ne=ee[X][te],ie=ne&240,ne&=15,Z[Ee]=J=ee[ne][5],ie>0)if(ie==16){for(ce=de;ce<Ee;ce++)Z[ce]=1;de=-1}else de=-1;if(he=ee[ne][6],he)de==-1&&(de=Ee);else if(de>-1){for(ce=de;ce<Ee;ce++)Z[ce]=J;de=-1}Q[Ee]==S&&(Z[Ee]=0),s|=J}if(u){for(ce=0;ce<K;ce++)if(Q[ce]==x){Z[ce]=o;for(var Be=ce-1;Be>=0&&Q[Be]==_;Be--)Z[Be]=o}}}function H(z,Z,K){if(!(s<z)){if(z==1&&o==p&&!c){K.reverse();return}for(var Q=K.length,ee=0,X,te,J,ne;ee<Q;){if(Z[ee]>=z){for(X=ee+1;X<Q&&Z[X]>=z;)X++;for(te=ee,J=X-1;te<J;te++,J--)ne=K[te],K[te]=K[J],K[J]=ne;ee=X}ee++}}}function U(z,Z,K,Q){var ee=Z[Q],X,te,J,ne;switch(ee){case m:case g:l=!1;case y:case A:return ee;case v:return l?A:v;case w:return l=!0,g;case _:return y;case C:return Q<1||Q+1>=Z.length||(X=K[Q-1])!=v&&X!=A||(te=Z[Q+1])!=v&&te!=A?y:(l&&(te=A),te==X?te:y);case R:return X=Q>0?K[Q-1]:S,X==v&&Q+1<Z.length&&Z[Q+1]==v?v:y;case k:if(Q>0&&K[Q-1]==v)return v;if(l)return y;for(ne=Q+1,J=Z.length;ne<J&&Z[ne]==k;)ne++;return ne<J&&Z[ne]==v?v:y;case P:for(J=Z.length,ne=Q+1;ne<J&&Z[ne]==P;)ne++;if(ne<J){var ie=z[Q],he=ie>=1425&&ie<=2303||ie==64286;if(X=Z[ne],he&&(X==g||X==w))return g}return Q<1||(X=Z[Q-1])==S?y:K[Q-1];case S:return l=!1,c=!0,o;case x:return u=!0,y;case N:case L:case b:case T:case I:l=!1;case M:return y}}function $(z){var Z=z.charCodeAt(0),K=Z>>8;return K==0?Z>191?m:D[Z]:K==5?/[\u0591-\u05f4]/.test(z)?g:m:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(z)?P:/[\u0660-\u0669\u066b-\u066c]/.test(z)?A:Z==1642?k:/[\u06f0-\u06f9]/.test(z)?v:w:K==32&&Z<=8287?B[Z&255]:K==254&&Z>=65136?w:y}r.L=m,r.R=g,r.EN=v,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(z,Z,K){if(z.length<2)return{};var Q=z.split(""),ee=new Array(Q.length),X=new Array(Q.length),te=[];o=K?p:f,j(Q,te,Q.length,Z);for(var J=0;J<ee.length;ee[J]=J,J++);H(2,te,ee),H(1,te,ee);for(var J=0;J<ee.length-1;J++)Z[J]===A?te[J]=r.AN:te[J]===g&&(Z[J]>w&&Z[J]<N||Z[J]===y||Z[J]===M)?te[J]=r.ON_R:J>0&&Q[J-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Q[J])&&(te[J-1]=te[J]=r.R_H,J++);Q[Q.length-1]===r.DOT&&(te[Q.length-1]=r.B),Q[0]==="‫"&&(te[0]=r.RLE);for(var J=0;J<ee.length;J++)X[J]=te[ee[J]];return{logicalFromVisual:ee,bidiLevels:X}},r.hasBidiCharacters=function(z,Z){for(var K=!1,Q=0;Q<z.length;Q++)Z[Q]=$(z.charAt(Q)),!K&&(Z[Q]==g||Z[Q]==w||Z[Q]==A)&&(K=!0);return K},r.getVisualFromLogicalIdx=function(z,Z){for(var K=0;K<Z.logicalFromVisual.length;K++)if(Z.logicalFromVisual[K]==z)return K;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,a){var o=n("./lib/bidiutil"),s=n("./lib/lang"),l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,c=function(){function u(d){this.session=d,this.bidiMap={},this.currentRow=null,this.bidiUtil=o,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=l.test(d.getValue())}return u.prototype.isBidiRow=function(d,h,f){return this.seenBidi?(d!==this.currentRow&&(this.currentRow=d,this.updateRowLine(h,f),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},u.prototype.onChange=function(d){this.seenBidi?this.currentRow=null:d.action=="insert"&&l.test(d.lines.join(`
`))&&(this.seenBidi=!0,this.currentRow=null)},u.prototype.getDocumentRow=function(){var d=0,h=this.session.$screenRowCache;if(h.length){var f=this.session.$getRowCacheIndex(h,this.currentRow);f>=0&&(d=this.session.$docRowCache[f])}return d},u.prototype.getSplitIndex=function(){var d=0,h=this.session.$screenRowCache;if(h.length)for(var f,p=this.session.$getRowCacheIndex(h,this.currentRow);this.currentRow-d>0&&(f=this.session.$getRowCacheIndex(h,this.currentRow-d-1),f===p);)p=f,d++;else d=this.currentRow;return d},u.prototype.updateRowLine=function(d,h){d===void 0&&(d=this.getDocumentRow());var f=d===this.session.getLength()-1,p=f?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(d),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var m=this.session.$wrapData[d];m&&(h===void 0&&(h=this.getSplitIndex()),h>0&&m.length?(this.wrapIndent=m.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=h<m.length?this.line.substring(m[h-1],m[h]):this.line.substring(m[m.length-1])):this.line=this.line.substring(0,m[h]),h==m.length&&(this.line+=this.showInvisibles?p:o.DOT))}else this.line+=this.showInvisibles?p:o.DOT;var g=this.session,v=0,A;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,S){return y==="	"||g.isFullWidth(y.charCodeAt(0))?(A=y==="	"?g.getScreenTabSize(S+v):2,v+=A-1,s.stringRepeat(o.DOT,A)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==o.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},u.prototype.updateBidiMap=function(){var d=[];o.hasBidiCharacters(this.line,d)||this.isRtlDir?this.bidiMap=o.doBidiReorder(this.line,d,this.isRtlDir):this.bidiMap={}},u.prototype.markAsDirty=function(){this.currentRow=null},u.prototype.updateCharacterWidths=function(d){if(this.characterWidth!==d.$characterSize.width){this.fontMetrics=d;var h=this.characterWidth=d.$characterSize.width,f=d.$measureCharWidth("ה");this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=h,this.charWidths[o.R]=this.charWidths[o.AN]=f,this.charWidths[o.R_H]=f*.45,this.charWidths[o.B]=this.charWidths[o.RLE]=0,this.currentRow=null}},u.prototype.setShowInvisibles=function(d){this.showInvisibles=d,this.currentRow=null},u.prototype.setEolChar=function(d){this.EOL=d},u.prototype.setContentWidth=function(d){this.contentWidth=d},u.prototype.isRtlLine=function(d){return this.$isRtl?!0:d!=null?this.session.getLine(d).charAt(0)==this.RLE:this.isRtlDir},u.prototype.setRtlDirection=function(d,h){for(var f=d.getCursorPosition(),p=d.selection.getSelectionAnchor().row;p<=f.row;p++)!h&&d.session.getLine(p).charAt(0)===d.session.$bidiHandler.RLE?d.session.doc.removeInLine(p,0,1):h&&d.session.getLine(p).charAt(0)!==d.session.$bidiHandler.RLE&&d.session.doc.insert({column:0,row:p},d.session.$bidiHandler.RLE)},u.prototype.getPosLeft=function(d){d-=this.wrapIndent;var h=this.line.charAt(0)===this.RLE?1:0,f=d>h?this.session.getOverwrite()?d:d-1:h,p=o.getVisualFromLogicalIdx(f,this.bidiMap),m=this.bidiMap.bidiLevels,g=0;!this.session.getOverwrite()&&d<=h&&m[p]%2!==0&&p++;for(var v=0;v<p;v++)g+=this.charWidths[m[v]];return!this.session.getOverwrite()&&d>h&&m[p]%2===0&&(g+=this.charWidths[m[p]]),this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(g+=this.rtlLineOffset),g},u.prototype.getSelections=function(d,h){var f=this.bidiMap,p=f.bidiLevels,m,g=[],v=0,A=Math.min(d,h)-this.wrapIndent,y=Math.max(d,h)-this.wrapIndent,S=!1,x=!1,w=0;this.wrapIndent&&(v+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var _,C=0;C<p.length;C++)_=f.logicalFromVisual[C],m=p[C],S=_>=A&&_<y,S&&!x?w=v:!S&&x&&g.push({left:w,width:v-w}),v+=this.charWidths[m],x=S;if(S&&C===p.length&&g.push({left:w,width:v-w}),this.isRtlDir)for(var R=0;R<g.length;R++)g[R].left+=this.rtlLineOffset;return g},u.prototype.offsetToCol=function(f){this.isRtlDir&&(f-=this.rtlLineOffset);var h=0,f=Math.max(f,0),p=0,m=0,g=this.bidiMap.bidiLevels,v=this.charWidths[g[m]];for(this.wrapIndent&&(f-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);f>p+v/2;){if(p+=v,m===g.length-1){v=0;break}v=this.charWidths[g[++m]]}return m>0&&g[m-1]%2!==0&&g[m]%2===0?(f<p&&m--,h=this.bidiMap.logicalFromVisual[m]):m>0&&g[m-1]%2===0&&g[m]%2!==0?h=1+(f>p?this.bidiMap.logicalFromVisual[m]:this.bidiMap.logicalFromVisual[m-1]):this.isRtlDir&&m===g.length-1&&v===0&&g[m-1]%2===0||!this.isRtlDir&&m===0&&g[m]%2!==0?h=1+this.bidiMap.logicalFromVisual[m]:(m>0&&g[m-1]%2!==0&&v!==0&&m--,h=this.bidiMap.logicalFromVisual[m]),h===0&&this.isRtlDir&&h++,h+this.wrapIndent},u}();r.BidiHandler=c}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,a){var o=n("./lib/oop"),s=n("./lib/lang"),l=n("./lib/event_emitter").EventEmitter,c=n("./range").Range,u=function(){function d(h){this.session=h,this.doc=h.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var f=this;this.cursor.on("change",function(p){f.$cursorChanged=!0,f.$silent||f._emit("changeCursor"),!f.$isEmpty&&!f.$silent&&f._emit("changeSelection"),!f.$keepDesiredColumnOnChange&&p.old.column!=p.value.column&&(f.$desiredColumn=null)}),this.anchor.on("change",function(){f.$anchorChanged=!0,!f.$isEmpty&&!f.$silent&&f._emit("changeSelection")})}return d.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},d.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},d.prototype.getCursor=function(){return this.lead.getPosition()},d.prototype.setAnchor=function(h,f){this.$isEmpty=!1,this.anchor.setPosition(h,f)},d.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},d.prototype.getSelectionLead=function(){return this.lead.getPosition()},d.prototype.isBackwards=function(){var h=this.anchor,f=this.lead;return h.row>f.row||h.row==f.row&&h.column>f.column},d.prototype.getRange=function(){var h=this.anchor,f=this.lead;return this.$isEmpty?c.fromPoints(f,f):this.isBackwards()?c.fromPoints(f,h):c.fromPoints(h,f)},d.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},d.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},d.prototype.setRange=function(h,f){var p=f?h.end:h.start,m=f?h.start:h.end;this.$setSelection(p.row,p.column,m.row,m.column)},d.prototype.$setSelection=function(h,f,p,m){if(!this.$silent){var g=this.$isEmpty,v=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(h,f),this.cursor.setPosition(p,m),this.$isEmpty=!c.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||g!=this.$isEmpty||v)&&this._emit("changeSelection")}},d.prototype.$moveSelection=function(h){var f=this.lead;this.$isEmpty&&this.setSelectionAnchor(f.row,f.column),h.call(this)},d.prototype.selectTo=function(h,f){this.$moveSelection(function(){this.moveCursorTo(h,f)})},d.prototype.selectToPosition=function(h){this.$moveSelection(function(){this.moveCursorToPosition(h)})},d.prototype.moveTo=function(h,f){this.clearSelection(),this.moveCursorTo(h,f)},d.prototype.moveToPosition=function(h){this.clearSelection(),this.moveCursorToPosition(h)},d.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},d.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},d.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},d.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},d.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},d.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},d.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},d.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},d.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},d.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},d.prototype.getWordRange=function(h,f){if(typeof f>"u"){var p=h||this.lead;h=p.row,f=p.column}return this.session.getWordRange(h,f)},d.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},d.prototype.selectAWord=function(){var h=this.getCursor(),f=this.session.getAWordRange(h.row,h.column);this.setSelectionRange(f)},d.prototype.getLineRange=function(h,f){var p=typeof h=="number"?h:this.lead.row,m,g=this.session.getFoldLine(p);return g?(p=g.start.row,m=g.end.row):m=p,f===!0?new c(p,0,m,this.session.getLine(m).length):new c(p,0,m+1,0)},d.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},d.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},d.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},d.prototype.wouldMoveIntoSoftTab=function(h,f,p){var m=h.column,g=h.column+f;return p<0&&(m=h.column-f,g=h.column),this.session.isTabStop(h)&&this.doc.getLine(h.row).slice(m,g).split(" ").length-1==f},d.prototype.moveCursorLeft=function(){var h=this.lead.getPosition(),f;if(f=this.session.getFoldAt(h.row,h.column,-1))this.moveCursorTo(f.start.row,f.start.column);else if(h.column===0)h.row>0&&this.moveCursorTo(h.row-1,this.doc.getLine(h.row-1).length);else{var p=this.session.getTabSize();this.wouldMoveIntoSoftTab(h,p,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-p):this.moveCursorBy(0,-1)}},d.prototype.moveCursorRight=function(){var h=this.lead.getPosition(),f;if(f=this.session.getFoldAt(h.row,h.column,1))this.moveCursorTo(f.end.row,f.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var p=this.session.getTabSize(),h=this.lead;this.wouldMoveIntoSoftTab(h,p,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,p):this.moveCursorBy(0,1)}},d.prototype.moveCursorLineStart=function(){var h=this.lead.row,f=this.lead.column,p=this.session.documentToScreenRow(h,f),m=this.session.screenToDocumentPosition(p,0),g=this.session.getDisplayLine(h,null,m.row,m.column),v=g.match(/^\s*/);v[0].length!=f&&!this.session.$useEmacsStyleLineStart&&(m.column+=v[0].length),this.moveCursorToPosition(m)},d.prototype.moveCursorLineEnd=function(){var h=this.lead,f=this.session.getDocumentLastRowColumnPosition(h.row,h.column);if(this.lead.column==f.column){var p=this.session.getLine(f.row);if(f.column==p.length){var m=p.search(/\s+$/);m>0&&(f.column=m)}}this.moveCursorTo(f.row,f.column)},d.prototype.moveCursorFileEnd=function(){var h=this.doc.getLength()-1,f=this.doc.getLine(h).length;this.moveCursorTo(h,f)},d.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},d.prototype.moveCursorLongWordRight=function(){var h=this.lead.row,f=this.lead.column,p=this.doc.getLine(h),m=p.substring(f);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var g=this.session.getFoldAt(h,f,1);if(g){this.moveCursorTo(g.end.row,g.end.column);return}if(this.session.nonTokenRe.exec(m)&&(f+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,m=p.substring(f)),f>=p.length){this.moveCursorTo(h,p.length),this.moveCursorRight(),h<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(m)&&(f+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(h,f)},d.prototype.moveCursorLongWordLeft=function(){var h=this.lead.row,f=this.lead.column,p;if(p=this.session.getFoldAt(h,f,-1)){this.moveCursorTo(p.start.row,p.start.column);return}var m=this.session.getFoldStringAt(h,f,-1);m==null&&(m=this.doc.getLine(h).substring(0,f));var g=s.stringReverse(m);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(g)&&(f-=this.session.nonTokenRe.lastIndex,g=g.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),f<=0){this.moveCursorTo(h,0),this.moveCursorLeft(),h>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(g)&&(f-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(h,f)},d.prototype.$shortWordEndIndex=function(h){var f=0,p,m=/\s/,g=this.session.tokenRe;if(g.lastIndex=0,this.session.tokenRe.exec(h))f=this.session.tokenRe.lastIndex;else{for(;(p=h[f])&&m.test(p);)f++;if(f<1){for(g.lastIndex=0;(p=h[f])&&!g.test(p);)if(g.lastIndex=0,f++,m.test(p))if(f>2){f--;break}else{for(;(p=h[f])&&m.test(p);)f++;if(f>2)break}}}return g.lastIndex=0,f},d.prototype.moveCursorShortWordRight=function(){var h=this.lead.row,f=this.lead.column,p=this.doc.getLine(h),m=p.substring(f),g=this.session.getFoldAt(h,f,1);if(g)return this.moveCursorTo(g.end.row,g.end.column);if(f==p.length){var v=this.doc.getLength();do h++,m=this.doc.getLine(h);while(h<v&&/^\s*$/.test(m));/^\s+/.test(m)||(m=""),f=0}var A=this.$shortWordEndIndex(m);this.moveCursorTo(h,f+A)},d.prototype.moveCursorShortWordLeft=function(){var h=this.lead.row,f=this.lead.column,p;if(p=this.session.getFoldAt(h,f,-1))return this.moveCursorTo(p.start.row,p.start.column);var m=this.session.getLine(h).substring(0,f);if(f===0){do h--,m=this.doc.getLine(h);while(h>0&&/^\s*$/.test(m));f=m.length,/\s+$/.test(m)||(m="")}var g=s.stringReverse(m),v=this.$shortWordEndIndex(g);return this.moveCursorTo(h,f-v)},d.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},d.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},d.prototype.moveCursorBy=function(h,f){var p=this.session.documentToScreenPosition(this.lead.row,this.lead.column),m;if(f===0&&(h!==0&&(this.session.$bidiHandler.isBidiRow(p.row,this.lead.row)?(m=this.session.$bidiHandler.getPosLeft(p.column),p.column=Math.round(m/this.session.$bidiHandler.charWidths[0])):m=p.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?p.column=this.$desiredColumn:this.$desiredColumn=p.column),h!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var g=this.session.lineWidgets[this.lead.row];h<0?h-=g.rowsAbove||0:h>0&&(h+=g.rowCount-(g.rowsAbove||0))}var v=this.session.screenToDocumentPosition(p.row+h,p.column,m);h!==0&&f===0&&v.row===this.lead.row&&(v.column,this.lead.column),this.moveCursorTo(v.row,v.column+f,f===0)},d.prototype.moveCursorToPosition=function(h){this.moveCursorTo(h.row,h.column)},d.prototype.moveCursorTo=function(h,f,p){var m=this.session.getFoldAt(h,f,1);m&&(h=m.start.row,f=m.start.column),this.$keepDesiredColumnOnChange=!0;var g=this.session.getLine(h);/[\uDC00-\uDFFF]/.test(g.charAt(f))&&g.charAt(f-1)&&(this.lead.row==h&&this.lead.column==f+1?f=f-1:f=f+1),this.lead.setPosition(h,f),this.$keepDesiredColumnOnChange=!1,p||(this.$desiredColumn=null)},d.prototype.moveCursorToScreen=function(h,f,p){var m=this.session.screenToDocumentPosition(h,f);this.moveCursorTo(m.row,m.column,p)},d.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},d.prototype.fromOrientedRange=function(h){this.setSelectionRange(h,h.cursor==h.start),this.$desiredColumn=h.desiredColumn||this.$desiredColumn},d.prototype.toOrientedRange=function(h){var f=this.getRange();return h?(h.start.column=f.start.column,h.start.row=f.start.row,h.end.column=f.end.column,h.end.row=f.end.row):h=f,h.cursor=this.isBackwards()?h.start:h.end,h.desiredColumn=this.$desiredColumn,h},d.prototype.getRangeOfMovements=function(h){var f=this.getCursor();try{h(this);var p=this.getCursor();return c.fromPoints(f,p)}catch{return c.fromPoints(f,f)}finally{this.moveCursorToPosition(f)}},d.prototype.toJSON=function(){if(this.rangeCount)var h=this.ranges.map(function(f){var p=f.clone();return p.isBackwards=f.cursor==f.start,p});else{var h=this.getRange();h.isBackwards=this.isBackwards()}return h},d.prototype.fromJSON=function(h){if(h.start==null)if(this.rangeList&&h.length>1){this.toSingleRange(h[0]);for(var f=h.length;f--;){var p=c.fromPoints(h[f].start,h[f].end);h[f].isBackwards&&(p.cursor=p.start),this.addRange(p,!0)}return}else h=h[0];this.rangeList&&this.toSingleRange(h),this.setSelectionRange(h,h.isBackwards)},d.prototype.isEqual=function(h){if((h.length||this.rangeCount)&&h.length!=this.rangeCount)return!1;if(!h.length||!this.ranges)return this.getRange().isEqual(h);for(var f=this.ranges.length;f--;)if(!this.ranges[f].isEqual(h[f]))return!1;return!0},d}();u.prototype.setSelectionAnchor=u.prototype.setAnchor,u.prototype.getSelectionAnchor=u.prototype.getAnchor,u.prototype.setSelectionRange=u.prototype.setRange,o.implement(u.prototype,l),r.Selection=u}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,a){var o=n("./lib/report_error").reportError,s=2e3,l=function(){function c(u){this.splitRegex,this.states=u,this.regExps={},this.matchMappings={};for(var d in this.states){for(var h=this.states[d],f=[],p=0,m=this.matchMappings[d]={defaultToken:"text"},g="g",v=[],A=0;A<h.length;A++){var y=h[A];if(y.defaultToken&&(m.defaultToken=y.defaultToken),y.caseInsensitive&&g.indexOf("i")===-1&&(g+="i"),y.unicode&&g.indexOf("u")===-1&&(g+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var S=y.regex,x=new RegExp("(?:("+S+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||x==1?y.token=y.token[0]:x-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:x-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(x>1?y.onMatch=this.$applyToken:y.onMatch=y.token),x>1&&(/\\\d/.test(y.regex)?S=y.regex.replace(/\\([0-9]+)/g,function(w,_){return"\\"+(parseInt(_,10)+p+1)}):(x=1,S=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&v.push(y)),m[p]=A,p+=x,f.push(S),y.onMatch||(y.onMatch=null)}}f.length||(m[0]=0,f.push("$")),v.forEach(function(w){w.splitRegex=this.createSplitterRegexp(w.regex,g)},this),this.regExps[d]=new RegExp("("+f.join(")|(")+")|($)",g)}}return c.prototype.$setMaxTokenCount=function(u){s=u|0},c.prototype.$applyToken=function(u){var d=this.splitRegex.exec(u).slice(1),h=this.token.apply(this,d);if(typeof h=="string")return[{type:h,value:u}];for(var f=[],p=0,m=h.length;p<m;p++)d[p]&&(f[f.length]={type:h[p],value:d[p]});return f},c.prototype.$arrayTokens=function(u){if(!u)return[];var d=this.splitRegex.exec(u);if(!d)return"text";for(var h=[],f=this.tokenArray,p=0,m=f.length;p<m;p++)d[p+1]&&(h[h.length]={type:f[p],value:d[p+1]});return h},c.prototype.removeCapturingGroups=function(u){var d=u.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(h,f){return f?"(?:":h});return d},c.prototype.createSplitterRegexp=function(u,d){if(u.indexOf("(?=")!=-1){var h=0,f=!1,p={};u.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(m,g,v,A,y,S){return f?f=y!="]":y?f=!0:A?(h==p.stack&&(p.end=S+1,p.stack=-1),h--):v&&(h++,v.length!=1&&(p.stack=h,p.start=S)),m}),p.end!=null&&/^\)*$/.test(u.substr(p.end))&&(u=u.substring(0,p.start)+u.substr(p.end))}return u.charAt(0)!="^"&&(u="^"+u),u.charAt(u.length-1)!="$"&&(u+="$"),new RegExp(u,(d||"").replace("g",""))},c.prototype.getLineTokens=function(u,d){if(d&&typeof d!="string"){var h=d.slice(0);d=h[0],d==="#tmp"&&(h.shift(),d=h.shift())}else var h=[];var f=d||"start",p=this.states[f];p||(f="start",p=this.states[f]);var m=this.matchMappings[f],g=this.regExps[f];g.lastIndex=0;for(var v,A=[],y=0,S=0,x={type:null,value:""};v=g.exec(u);){var w=m.defaultToken,_=null,C=v[0],R=g.lastIndex;if(R-C.length>y){var k=u.substring(y,R-C.length);x.type==w?x.value+=k:(x.type&&A.push(x),x={type:w,value:k})}for(var P=0;P<v.length-2;P++)if(v[P+1]!==void 0){_=p[m[P]],_.onMatch?w=_.onMatch(C,f,h,u):w=_.token,_.next&&(typeof _.next=="string"?f=_.next:f=_.next(f,h),p=this.states[f],p||(this.reportError("state doesn't exist",f),f="start",p=this.states[f]),m=this.matchMappings[f],y=R,g=this.regExps[f],g.lastIndex=R),_.consumeLineEnd&&(y=R);break}if(C){if(typeof w=="string")(!_||_.merge!==!1)&&x.type===w?x.value+=C:(x.type&&A.push(x),x={type:w,value:C});else if(w){x.type&&A.push(x),x={type:null,value:""};for(var P=0;P<w.length;P++)A.push(w[P])}}if(y==u.length)break;if(y=R,S++>s){for(S>2*u.length&&this.reportError("infinite loop with in ace tokenizer",{startState:d,line:u});y<u.length;)x.type&&A.push(x),x={value:u.substring(y,y+=500),type:"overflow"};f="start",h=[];break}}return x.type&&A.push(x),h.length>1&&h[0]!==f&&h.unshift("#tmp",f),{tokens:A,state:h.length?h:f}},c}();l.prototype.reportError=o,r.Tokenizer=l}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,a){var o=n("../lib/deep_copy").deepCopy,s;s=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(u,d){if(!d){for(var h in u)this.$rules[h]=u[h];return}for(var h in u){for(var f=u[h],p=0;p<f.length;p++){var m=f[p];(m.next||m.onMatch)&&(typeof m.next=="string"&&m.next.indexOf(d)!==0&&(m.next=d+m.next),m.nextState&&m.nextState.indexOf(d)!==0&&(m.nextState=d+m.nextState))}this.$rules[d+h]=f}},this.getRules=function(){return this.$rules},this.embedRules=function(u,d,h,f,p){var m=typeof u=="function"?new u().getRules():u;if(f)for(var g=0;g<f.length;g++)f[g]=d+f[g];else{f=[];for(var v in m)f.push(d+v)}if(this.addRules(m,d),h)for(var A=Array.prototype[p?"push":"unshift"],g=0;g<f.length;g++)A.apply(this.$rules[f[g]],o(h));this.$embeds||(this.$embeds=[]),this.$embeds.push(d)},this.getEmbeds=function(){return this.$embeds};var l=function(u,d){return(u!="start"||d.length)&&d.unshift(this.nextState,u),this.nextState},c=function(u,d){return d.shift(),d.shift()||"start"};this.normalizeRules=function(){var u=0,d=this.$rules;function h(f){var p=d[f];p.processed=!0;for(var m=0;m<p.length;m++){var g=p[m],v=null;Array.isArray(g)&&(v=g,g={}),!g.regex&&g.start&&(g.regex=g.start,g.next||(g.next=[]),g.next.push({defaultToken:g.token},{token:g.token+".end",regex:g.end||g.start,next:"pop"}),g.token=g.token+".start",g.push=!0);var A=g.next||g.push;if(A&&Array.isArray(A)){var y=g.stateName;y||(y=g.token,typeof y!="string"&&(y=y[0]||""),d[y]&&(y+=u++)),d[y]=A,g.next=y,h(y)}else A=="pop"&&(g.next=c);if(g.push&&(g.nextState=g.next||g.push,g.next=l,delete g.push),g.rules)for(var S in g.rules)d[S]?d[S].push&&d[S].push.apply(d[S],g.rules[S]):d[S]=g.rules[S];var x=typeof g=="string"?g:g.include;if(x&&(x==="$self"&&(x="start"),Array.isArray(x)?v=x.map(function(_){return d[_]}):v=d[x]),v){var w=[m,1].concat(v);g.noEscape&&(w=w.filter(function(_){return!_.next})),p.splice.apply(p,w),m--}g.keywordMap&&(g.token=this.createKeywordMapper(g.keywordMap,g.defaultToken||"text",g.caseInsensitive),delete g.defaultToken)}}Object.keys(d).forEach(h,this)},this.createKeywordMapper=function(u,d,h,f){var p=Object.create(null);return this.$keywordList=[],Object.keys(u).forEach(function(m){for(var g=u[m],v=g.split(f||"|"),A=v.length;A--;){var y=v[A];this.$keywordList.push(y),h&&(y=y.toLowerCase()),p[y]=m}},this),u=null,h?function(m){return p[m.toLowerCase()]||d}:function(m){return p[m]||d}},this.getKeywords=function(){return this.$keywords}}).call(s.prototype),r.TextHighlightRules=s}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,a){var o;o=function(){this.$behaviours={}},(function(){this.add=function(s,l,c){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[s]:this.$behaviours[s]={}}this.$behaviours[s][l]=c},this.addBehaviours=function(s){for(var l in s)for(var c in s[l])this.add(l,c,s[l][c])},this.remove=function(s){this.$behaviours&&this.$behaviours[s]&&delete this.$behaviours[s]},this.inherit=function(s,l){if(typeof s=="function")var c=new s().getBehaviours(l);else var c=s.getBehaviours(l);this.addBehaviours(c)},this.getBehaviours=function(s){if(s){for(var l={},c=0;c<s.length;c++)this.$behaviours[s[c]]&&(l[s[c]]=this.$behaviours[s[c]]);return l}else return this.$behaviours}}).call(o.prototype),r.Behaviour=o}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,a){var o=n("./range").Range,s=function(){function l(c,u,d){this.$session=c,this.$row=u,this.$rowTokens=c.getTokens(u);var h=c.getTokenAt(u,d);this.$tokenIndex=h?h.index:-1}return l.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},l.prototype.stepForward=function(){this.$tokenIndex+=1;for(var c;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,c||(c=this.$session.getLength()),this.$row>=c)return this.$row=c-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},l.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},l.prototype.getCurrentTokenRow=function(){return this.$row},l.prototype.getCurrentTokenColumn=function(){var c=this.$rowTokens,u=this.$tokenIndex,d=c[u].start;if(d!==void 0)return d;for(d=0;u>0;)u-=1,d+=c[u].value.length;return d},l.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},l.prototype.getCurrentTokenRange=function(){var c=this.$rowTokens[this.$tokenIndex],u=this.getCurrentTokenColumn();return new o(this.$row,u,this.$row,u+c.value.length)},l}();r.TokenIterator=s}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,a){var o=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator,c=n("../../lib/lang"),u=["text","paren.rparen","rparen","paren","punctuation.operator"],d=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],h,f={},p={'"':'"',"'":"'"},m=function(A){var y=-1;if(A.multiSelect&&(y=A.selection.index,f.rangeCount!=A.multiSelect.rangeCount&&(f={rangeCount:A.multiSelect.rangeCount})),f[y])return h=f[y];h=f[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(A,y,S,x){var w=A.end.row-A.start.row;return{text:S+y+x,selection:[0,A.start.column+1,w,A.end.column+(w?0:1)]}},v;v=function(A){A=A||{},this.add("braces","insertion",function(y,S,x,w,_){var C=x.getCursorPosition(),R=w.doc.getLine(C.row);if(_=="{"){m(x);var k=x.getSelectionRange(),P=w.doc.getTextRange(k),N=w.getTokenAt(C.row,C.column);if(P!==""&&P!=="{"&&x.getWrapBehavioursEnabled())return g(k,P,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var L=[/tag\-(?:open|name)/,/attribute\-name/];return L.some(function(j){return j.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[C.column-N.start-1]!=="$"?void 0:(v.recordAutoInsert(x,w,"}"),{text:"{}",selection:[1,1]})}else if(v.isSaneInsertion(x,w))return/[\]\}\)]/.test(R[C.column])||x.inMultiSelectMode||A.braces?(v.recordAutoInsert(x,w,"}"),{text:"{}",selection:[1,1]}):(v.recordMaybeInsert(x,w,"{"),{text:"{",selection:[1,1]})}else if(_=="}"){m(x);var I=R.substring(C.column,C.column+1);if(I=="}"){var b=w.$findOpeningBracket("}",{column:C.column+1,row:C.row});if(b!==null&&v.isAutoInsertedClosing(C,R,_))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(_==`
`||_==`\r
`){m(x);var T="";v.isMaybeInsertedClosing(C,R)&&(T=c.stringRepeat("}",h.maybeInsertedBrackets),v.clearMaybeInsertedClosing());var I=R.substring(C.column,C.column+1);if(I==="}"){var M=w.findMatchingBracket({row:C.row,column:C.column+1},"}");if(!M)return null;var D=this.$getIndent(w.getLine(M.row))}else if(T)var D=this.$getIndent(R);else{v.clearMaybeInsertedClosing();return}var B=D+w.getTabString();return{text:`
`+B+`
`+D+T,selection:[1,B.length,1,B.length]}}else v.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,S,x,w,_){var C=w.doc.getTextRange(_);if(!_.isMultiLine()&&C=="{"){m(x);var R=w.doc.getLine(_.start.row),k=R.substring(_.end.column,_.end.column+1);if(k=="}")return _.end.column++,_;h.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,S,x,w,_){if(_=="("){m(x);var C=x.getSelectionRange(),R=w.doc.getTextRange(C);if(R!==""&&x.getWrapBehavioursEnabled())return g(C,R,"(",")");if(v.isSaneInsertion(x,w))return v.recordAutoInsert(x,w,")"),{text:"()",selection:[1,1]}}else if(_==")"){m(x);var k=x.getCursorPosition(),P=w.doc.getLine(k.row),N=P.substring(k.column,k.column+1);if(N==")"){var L=w.$findOpeningBracket(")",{column:k.column+1,row:k.row});if(L!==null&&v.isAutoInsertedClosing(k,P,_))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,S,x,w,_){var C=w.doc.getTextRange(_);if(!_.isMultiLine()&&C=="("){m(x);var R=w.doc.getLine(_.start.row),k=R.substring(_.start.column+1,_.start.column+2);if(k==")")return _.end.column++,_}}),this.add("brackets","insertion",function(y,S,x,w,_){if(_=="["){m(x);var C=x.getSelectionRange(),R=w.doc.getTextRange(C);if(R!==""&&x.getWrapBehavioursEnabled())return g(C,R,"[","]");if(v.isSaneInsertion(x,w))return v.recordAutoInsert(x,w,"]"),{text:"[]",selection:[1,1]}}else if(_=="]"){m(x);var k=x.getCursorPosition(),P=w.doc.getLine(k.row),N=P.substring(k.column,k.column+1);if(N=="]"){var L=w.$findOpeningBracket("]",{column:k.column+1,row:k.row});if(L!==null&&v.isAutoInsertedClosing(k,P,_))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,S,x,w,_){var C=w.doc.getTextRange(_);if(!_.isMultiLine()&&C=="["){m(x);var R=w.doc.getLine(_.start.row),k=R.substring(_.start.column+1,_.start.column+2);if(k=="]")return _.end.column++,_}}),this.add("string_dquotes","insertion",function(y,S,x,w,_){var C=w.$mode.$quotes||p;if(_.length==1&&C[_]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(_)!=-1)return;m(x);var R=_,k=x.getSelectionRange(),P=w.doc.getTextRange(k);if(P!==""&&(P.length!=1||!C[P])&&x.getWrapBehavioursEnabled())return g(k,P,R,R);if(!P){var N=x.getCursorPosition(),L=w.doc.getLine(N.row),I=L.substring(N.column-1,N.column),b=L.substring(N.column,N.column+1),T=w.getTokenAt(N.row,N.column),M=w.getTokenAt(N.row,N.column+1);if(I=="\\"&&T&&/escape/.test(T.type))return null;var D=T&&/string|escape/.test(T.type),B=!M||/string|escape/.test(M.type),j;if(b==R)j=D!==B,j&&/string\.end/.test(M.type)&&(j=!1);else{if(D&&!B||D&&B)return null;var H=w.$mode.tokenRe;H.lastIndex=0;var U=H.test(I);H.lastIndex=0;var $=H.test(b),z=w.$mode.$pairQuotesAfter,Z=z&&z[R]&&z[R].test(I);if(!Z&&U||$||b&&!/[\s;,.})\]\\]/.test(b))return null;var K=L[N.column-2];if(I==R&&(K==R||H.test(K)))return null;j=!0}return{text:j?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,S,x,w,_){var C=w.$mode.$quotes||p,R=w.doc.getTextRange(_);if(!_.isMultiLine()&&C.hasOwnProperty(R)){m(x);var k=w.doc.getLine(_.start.row),P=k.substring(_.start.column+1,_.start.column+2);if(P==R)return _.end.column++,_}}),A.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,S,x,w,_){if(y==="doc-start"&&(_===`
`||_===`\r
`)&&x.selection.isEmpty()){var C=x.getCursorPosition(),R=w.doc.getLine(C.row),k=w.doc.getLine(C.row+1),P=this.$getIndent(R);if(/\s*\*/.test(k))return/^\s*\*/.test(R)?{text:_+P+"* ",selection:[1,3+P.length,1,3+P.length]}:{text:_+P+" * ",selection:[1,3+P.length,1,3+P.length]};if(/\/\*\*/.test(R.substring(0,C.column)))return{text:_+P+" * "+_+" "+P+"*/",selection:[1,4+P.length,1,4+P.length]}}})},v.isSaneInsertion=function(A,y){var S=A.getCursorPosition(),x=new l(y,S.row,S.column);if(!this.$matchTokenType(x.getCurrentToken()||"text",u)){if(/[)}\]]/.test(A.session.getLine(S.row)[S.column]))return!0;var w=new l(y,S.row,S.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",u))return!1}return x.stepForward(),x.getCurrentTokenRow()!==S.row||this.$matchTokenType(x.getCurrentToken()||"text",d)},v.$matchTokenType=function(A,y){return y.indexOf(A.type||A)>-1},v.recordAutoInsert=function(A,y,S){var x=A.getCursorPosition(),w=y.doc.getLine(x.row);this.isAutoInsertedClosing(x,w,h.autoInsertedLineEnd[0])||(h.autoInsertedBrackets=0),h.autoInsertedRow=x.row,h.autoInsertedLineEnd=S+w.substr(x.column),h.autoInsertedBrackets++},v.recordMaybeInsert=function(A,y,S){var x=A.getCursorPosition(),w=y.doc.getLine(x.row);this.isMaybeInsertedClosing(x,w)||(h.maybeInsertedBrackets=0),h.maybeInsertedRow=x.row,h.maybeInsertedLineStart=w.substr(0,x.column)+S,h.maybeInsertedLineEnd=w.substr(x.column),h.maybeInsertedBrackets++},v.isAutoInsertedClosing=function(A,y,S){return h.autoInsertedBrackets>0&&A.row===h.autoInsertedRow&&S===h.autoInsertedLineEnd[0]&&y.substr(A.column)===h.autoInsertedLineEnd},v.isMaybeInsertedClosing=function(A,y){return h.maybeInsertedBrackets>0&&A.row===h.maybeInsertedRow&&y.substr(A.column)===h.maybeInsertedLineEnd&&y.substr(0,A.column)==h.maybeInsertedLineStart},v.popAutoInsertedClosing=function(){h.autoInsertedLineEnd=h.autoInsertedLineEnd.substr(1),h.autoInsertedBrackets--},v.clearMaybeInsertedClosing=function(){h&&(h.maybeInsertedBrackets=0,h.maybeInsertedRow=-1)},o.inherits(v,s),r.CstyleBehaviour=v}),ace.define("ace/unicode",["require","exports","module"],function(n,r,a){for(var o=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],s=0,l=[],c=0;c<o.length;c+=2)l.push(s+=o[c]),o[c+1]&&l.push(45,s+=o[c+1]);r.wordChars=String.fromCharCode.apply(null,l)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,r,a){var o=n("../config"),s=n("../tokenizer").Tokenizer,l=n("./text_highlight_rules").TextHighlightRules,c=n("./behaviour/cstyle").CstyleBehaviour,u=n("../unicode"),d=n("../lib/lang"),h=n("../token_iterator").TokenIterator,f=n("../range").Range,p;p=function(){this.HighlightRules=l},(function(){this.$defaultBehaviour=new c,this.tokenRe=new RegExp("^["+u.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+u.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new s(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(m,g,v,A){var y=g.doc,S=!0,x=!0,w=1/0,_=g.getTabSize(),C=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var P=this.lineCommentStart.map(d.escapeRegExp).join("|"),R=this.lineCommentStart[0];else var P=d.escapeRegExp(this.lineCommentStart),R=this.lineCommentStart;P=new RegExp("^(\\s*)(?:"+P+") ?"),C=g.getUseSoftTabs();var I=function($,z){var Z=$.match(P);if(Z){var K=Z[1].length,Q=Z[0].length;!M($,K,Q)&&Z[0][Q-1]==" "&&Q--,y.removeInLine(z,K,Q)}},T=R+" ",L=function($,z){(!S||/\S/.test($))&&(M($,w,w)?y.insertInLine({row:z,column:w},T):y.insertInLine({row:z,column:w},R))},b=function($,z){return P.test($)},M=function($,z,Z){for(var K=0;z--&&$.charAt(z)==" ";)K++;if(K%_!=0)return!1;for(var K=0;$.charAt(Z++)==" ";)K++;return _>2?K%_!=_-1:K%_==0}}else{if(!this.blockComment)return!1;var R=this.blockComment.start,k=this.blockComment.end,P=new RegExp("^(\\s*)(?:"+d.escapeRegExp(R)+")"),N=new RegExp("(?:"+d.escapeRegExp(k)+")\\s*$"),L=function(j,H){b(j,H)||(!S||/\S/.test(j))&&(y.insertInLine({row:H,column:j.length},k),y.insertInLine({row:H,column:w},R))},I=function(j,H){var U;(U=j.match(N))&&y.removeInLine(H,j.length-U[0].length,j.length),(U=j.match(P))&&y.removeInLine(H,U[1].length,U[0].length)},b=function(j,H){if(P.test(j))return!0;for(var U=g.getTokens(H),$=0;$<U.length;$++)if(U[$].type==="comment")return!0}}function D(j){for(var H=v;H<=A;H++)j(y.getLine(H),H)}var B=1/0;D(function(j,H){var U=j.search(/\S/);U!==-1?(U<w&&(w=U),x&&!b(j,H)&&(x=!1)):B>j.length&&(B=j.length)}),w==1/0&&(w=B,S=!1,x=!1),C&&w%_!=0&&(w=Math.floor(w/_)*_),D(x?I:L)},this.toggleBlockComment=function(m,g,v,A){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var S=new h(g,A.row,A.column),x=S.getCurrentToken();g.selection;var w=g.selection.toOrientedRange(),_,C;if(x&&/comment/.test(x.type)){for(var R,k;x&&/comment/.test(x.type);){var P=x.value.indexOf(y.start);if(P!=-1){var N=S.getCurrentTokenRow(),L=S.getCurrentTokenColumn()+P;R=new f(N,L,N,L+y.start.length);break}x=S.stepBackward()}for(var S=new h(g,A.row,A.column),x=S.getCurrentToken();x&&/comment/.test(x.type);){var P=x.value.indexOf(y.end);if(P!=-1){var N=S.getCurrentTokenRow(),L=S.getCurrentTokenColumn()+P;k=new f(N,L,N,L+y.end.length);break}x=S.stepForward()}k&&g.remove(k),R&&(g.remove(R),_=R.start.row,C=-y.start.length)}else C=y.start.length,_=v.start.row,g.insert(v.end,y.end),g.insert(v.start,y.start);w.start.row==_&&(w.start.column+=C),w.end.row==_&&(w.end.column+=C),g.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(m,g,v){return this.$getIndent(g)},this.checkOutdent=function(m,g,v){return!1},this.autoOutdent=function(m,g,v){},this.$getIndent=function(m){return m.match(/^\s*/)[0]},this.createWorker=function(m){return null},this.createModeDelegates=function(m){this.$embeds=[],this.$modes={};for(var g in m)if(m[g]){var v=m[g],A=v.prototype.$id,y=o.$modes[A];y||(o.$modes[A]=y=new v),o.$modes[g]||(o.$modes[g]=y),this.$embeds.push(g),this.$modes[g]=y}for(var S=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],x=function(_){(function(C){var R=S[_],k=C[R];C[S[_]]=function(){return this.$delegator(R,arguments,k)}})(w)},w=this,g=0;g<S.length;g++)x(g)},this.$delegator=function(m,g,v){var A=g[0]||"start";if(typeof A!="string"){if(Array.isArray(A[2])){var y=A[2][A[2].length-1],S=this.$modes[y];if(S)return S[m].apply(S,[A[1]].concat([].slice.call(g,1)))}A=A[0]||"start"}for(var x=0;x<this.$embeds.length;x++)if(this.$modes[this.$embeds[x]]){var w=A.split(this.$embeds[x]);if(!w[0]&&w[1]){g[0]=w[1];var S=this.$modes[this.$embeds[x]];return S[m].apply(S,g)}}var _=v.apply(this,g);return v?_:void 0},this.transformAction=function(m,g,v,A,y){if(this.$behaviour){var S=this.$behaviour.getBehaviours();for(var x in S)if(S[x][g]){var w=S[x][g].apply(this,arguments);if(w)return w}}},this.getKeywords=function(m){if(!this.completionKeywords){var g=this.$tokenizer.rules,v=[];for(var A in g)for(var y=g[A],S=0,x=y.length;S<x;S++)if(typeof y[S].token=="string")/keyword|support|storage/.test(y[S].token)&&v.push(y[S].regex);else if(typeof y[S].token=="object"){for(var w=0,_=y[S].token.length;w<_;w++)if(/keyword|support|storage/.test(y[S].token[w])){var A=y[S].regex.match(/\(.+?\)/g)[w];v.push(A.substr(1,A.length-2))}}this.completionKeywords=v}return m?v.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(m,g,v,A){var y=this.$keywordList||this.$createKeywordList();return y.map(function(S){return{name:S,value:S,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(p.prototype),r.Mode=p}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,a){r.applyDelta=function(o,s,l){var c=s.start.row,u=s.start.column,d=o[c]||"";switch(s.action){case"insert":var h=s.lines;if(h.length===1)o[c]=d.substring(0,u)+s.lines[0]+d.substring(u);else{var f=[c,1].concat(s.lines);o.splice.apply(o,f),o[c]=d.substring(0,u)+o[c],o[c+s.lines.length-1]+=d.substring(u)}break;case"remove":var p=s.end.column,m=s.end.row;c===m?o[c]=d.substring(0,u)+d.substring(p):o.splice(c,m-c+1,d.substring(0,u)+o[m].substring(p));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,a){var o=n("./lib/oop"),s=n("./lib/event_emitter").EventEmitter,l=function(){function d(h,f,p){this.$onChange=this.onChange.bind(this),this.attach(h),typeof f!="number"?this.setPosition(f.row,f.column):this.setPosition(f,p)}return d.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},d.prototype.getDocument=function(){return this.document},d.prototype.onChange=function(h){if(!(h.start.row==h.end.row&&h.start.row!=this.row)&&!(h.start.row>this.row)){var f=u(h,{row:this.row,column:this.column},this.$insertRight);this.setPosition(f.row,f.column,!0)}},d.prototype.setPosition=function(h,f,p){var m;if(p?m={row:h,column:f}:m=this.$clipPositionToDocument(h,f),!(this.row==m.row&&this.column==m.column)){var g={row:this.row,column:this.column};this.row=m.row,this.column=m.column,this._signal("change",{old:g,value:m})}},d.prototype.detach=function(){this.document.off("change",this.$onChange)},d.prototype.attach=function(h){this.document=h||this.document,this.document.on("change",this.$onChange)},d.prototype.$clipPositionToDocument=function(h,f){var p={};return h>=this.document.getLength()?(p.row=Math.max(0,this.document.getLength()-1),p.column=this.document.getLine(p.row).length):h<0?(p.row=0,p.column=0):(p.row=h,p.column=Math.min(this.document.getLine(p.row).length,Math.max(0,f))),f<0&&(p.column=0),p},d}();l.prototype.$insertRight=!1,o.implement(l.prototype,s);function c(d,h,f){var p=f?d.column<=h.column:d.column<h.column;return d.row<h.row||d.row==h.row&&p}function u(d,h,f){var p=d.action=="insert",m=(p?1:-1)*(d.end.row-d.start.row),g=(p?1:-1)*(d.end.column-d.start.column),v=d.start,A=p?v:d.end;return c(h,v,f)?{row:h.row,column:h.column}:c(A,h,!f)?{row:h.row+m,column:h.column+(h.row==A.row?g:0)}:{row:v.row,column:v.column}}r.Anchor=l}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,r,a){var o=n("./lib/oop"),s=n("./apply_delta").applyDelta,l=n("./lib/event_emitter").EventEmitter,c=n("./range").Range,u=n("./anchor").Anchor,d=function(){function h(f){this.$lines=[""],f.length===0?this.$lines=[""]:Array.isArray(f)?this.insertMergedLines({row:0,column:0},f):this.insert({row:0,column:0},f)}return h.prototype.setValue=function(f){var p=this.getLength()-1;this.remove(new c(0,0,p,this.getLine(p).length)),this.insert({row:0,column:0},f||"")},h.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},h.prototype.createAnchor=function(f,p){return new u(this,f,p)},h.prototype.$detectNewLine=function(f){var p=f.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=p?p[1]:`
`,this._signal("changeNewLineMode")},h.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},h.prototype.setNewLineMode=function(f){this.$newLineMode!==f&&(this.$newLineMode=f,this._signal("changeNewLineMode"))},h.prototype.getNewLineMode=function(){return this.$newLineMode},h.prototype.isNewLine=function(f){return f==`\r
`||f=="\r"||f==`
`},h.prototype.getLine=function(f){return this.$lines[f]||""},h.prototype.getLines=function(f,p){return this.$lines.slice(f,p+1)},h.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},h.prototype.getLength=function(){return this.$lines.length},h.prototype.getTextRange=function(f){return this.getLinesForRange(f).join(this.getNewLineCharacter())},h.prototype.getLinesForRange=function(f){var p;if(f.start.row===f.end.row)p=[this.getLine(f.start.row).substring(f.start.column,f.end.column)];else{p=this.getLines(f.start.row,f.end.row),p[0]=(p[0]||"").substring(f.start.column);var m=p.length-1;f.end.row-f.start.row==m&&(p[m]=p[m].substring(0,f.end.column))}return p},h.prototype.insertLines=function(f,p){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(f,p)},h.prototype.removeLines=function(f,p){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(f,p)},h.prototype.insertNewLine=function(f){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(f,["",""])},h.prototype.insert=function(f,p){return this.getLength()<=1&&this.$detectNewLine(p),this.insertMergedLines(f,this.$split(p))},h.prototype.insertInLine=function(f,p){var m=this.clippedPos(f.row,f.column),g=this.pos(f.row,f.column+p.length);return this.applyDelta({start:m,end:g,action:"insert",lines:[p]},!0),this.clonePos(g)},h.prototype.clippedPos=function(f,p){var m=this.getLength();f===void 0?f=m:f<0?f=0:f>=m&&(f=m-1,p=void 0);var g=this.getLine(f);return p==null&&(p=g.length),p=Math.min(Math.max(p,0),g.length),{row:f,column:p}},h.prototype.clonePos=function(f){return{row:f.row,column:f.column}},h.prototype.pos=function(f,p){return{row:f,column:p}},h.prototype.$clipPosition=function(f){var p=this.getLength();return f.row>=p?(f.row=Math.max(0,p-1),f.column=this.getLine(p-1).length):(f.row=Math.max(0,f.row),f.column=Math.min(Math.max(f.column,0),this.getLine(f.row).length)),f},h.prototype.insertFullLines=function(f,p){f=Math.min(Math.max(f,0),this.getLength());var m=0;f<this.getLength()?(p=p.concat([""]),m=0):(p=[""].concat(p),f--,m=this.$lines[f].length),this.insertMergedLines({row:f,column:m},p)},h.prototype.insertMergedLines=function(f,p){var m=this.clippedPos(f.row,f.column),g={row:m.row+p.length-1,column:(p.length==1?m.column:0)+p[p.length-1].length};return this.applyDelta({start:m,end:g,action:"insert",lines:p}),this.clonePos(g)},h.prototype.remove=function(f){var p=this.clippedPos(f.start.row,f.start.column),m=this.clippedPos(f.end.row,f.end.column);return this.applyDelta({start:p,end:m,action:"remove",lines:this.getLinesForRange({start:p,end:m})}),this.clonePos(p)},h.prototype.removeInLine=function(f,p,m){var g=this.clippedPos(f,p),v=this.clippedPos(f,m);return this.applyDelta({start:g,end:v,action:"remove",lines:this.getLinesForRange({start:g,end:v})},!0),this.clonePos(g)},h.prototype.removeFullLines=function(f,p){f=Math.min(Math.max(0,f),this.getLength()-1),p=Math.min(Math.max(0,p),this.getLength()-1);var m=p==this.getLength()-1&&f>0,g=p<this.getLength()-1,v=m?f-1:f,A=m?this.getLine(v).length:0,y=g?p+1:p,S=g?0:this.getLine(y).length,x=new c(v,A,y,S),w=this.$lines.slice(f,p+1);return this.applyDelta({start:x.start,end:x.end,action:"remove",lines:this.getLinesForRange(x)}),w},h.prototype.removeNewLine=function(f){f<this.getLength()-1&&f>=0&&this.applyDelta({start:this.pos(f,this.getLine(f).length),end:this.pos(f+1,0),action:"remove",lines:["",""]})},h.prototype.replace=function(f,p){if(f instanceof c||(f=c.fromPoints(f.start,f.end)),p.length===0&&f.isEmpty())return f.start;if(p==this.getTextRange(f))return f.end;this.remove(f);var m;return p?m=this.insert(f.start,p):m=f.start,m},h.prototype.applyDeltas=function(f){for(var p=0;p<f.length;p++)this.applyDelta(f[p])},h.prototype.revertDeltas=function(f){for(var p=f.length-1;p>=0;p--)this.revertDelta(f[p])},h.prototype.applyDelta=function(f,p){var m=f.action=="insert";(m?f.lines.length<=1&&!f.lines[0]:!c.comparePoints(f.start,f.end))||(m&&f.lines.length>2e4?this.$splitAndapplyLargeDelta(f,2e4):(s(this.$lines,f,p),this._signal("change",f)))},h.prototype.$safeApplyDelta=function(f){var p=this.$lines.length;(f.action=="remove"&&f.start.row<p&&f.end.row<p||f.action=="insert"&&f.start.row<=p)&&this.applyDelta(f)},h.prototype.$splitAndapplyLargeDelta=function(f,p){for(var m=f.lines,g=m.length-p+1,v=f.start.row,A=f.start.column,y=0,S=0;y<g;y=S){S+=p-1;var x=m.slice(y,S);x.push(""),this.applyDelta({start:this.pos(v+y,A),end:this.pos(v+S,A=0),action:f.action,lines:x},!0)}f.lines=m.slice(y),f.start.row=v+y,f.start.column=A,this.applyDelta(f,!0)},h.prototype.revertDelta=function(f){this.$safeApplyDelta({start:this.clonePos(f.start),end:this.clonePos(f.end),action:f.action=="insert"?"remove":"insert",lines:f.lines.slice()})},h.prototype.indexToPosition=function(f,p){for(var m=this.$lines||this.getAllLines(),g=this.getNewLineCharacter().length,v=p||0,A=m.length;v<A;v++)if(f-=m[v].length+g,f<0)return{row:v,column:f+m[v].length+g};return{row:A-1,column:f+m[A-1].length+g}},h.prototype.positionToIndex=function(f,p){for(var m=this.$lines||this.getAllLines(),g=this.getNewLineCharacter().length,v=0,A=Math.min(f.row,m.length),y=p||0;y<A;++y)v+=m[y].length+g;return v+f.column},h.prototype.$split=function(f){return f.split(/\r\n|\r|\n/)},h}();d.prototype.$autoNewLine="",d.prototype.$newLineMode="auto",o.implement(d.prototype,l),r.Document=d}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,a){var o=n("./lib/oop"),s=n("./lib/event_emitter").EventEmitter,l=function(){function c(u,d){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=u;var h=this;this.$worker=function(){if(h.running){for(var f=new Date,p=h.currentLine,m=-1,g=h.doc,v=p;h.lines[p];)p++;var A=g.getLength(),y=0;for(h.running=!1;p<A;){h.$tokenizeRow(p),m=p;do p++;while(h.lines[p]);if(y++,y%5===0&&new Date-f>20){h.running=setTimeout(h.$worker,20);break}}h.currentLine=p,m==-1&&(m=p),v<=m&&h.fireUpdateEvent(v,m)}}}return c.prototype.setTokenizer=function(u){this.tokenizer=u,this.lines=[],this.states=[],this.start(0)},c.prototype.setDocument=function(u){this.doc=u,this.lines=[],this.states=[],this.stop()},c.prototype.fireUpdateEvent=function(u,d){var h={first:u,last:d};this._signal("update",{data:h})},c.prototype.start=function(u){this.currentLine=Math.min(u||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},c.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},c.prototype.$updateOnChange=function(u){var d=u.start.row,h=u.end.row-d;if(h===0)this.lines[d]=null;else if(u.action=="remove")this.lines.splice(d,h+1,null),this.states.splice(d,h+1,null);else{var f=Array(h+1);f.unshift(d,1),this.lines.splice.apply(this.lines,f),this.states.splice.apply(this.states,f)}this.currentLine=Math.min(d,this.currentLine,this.doc.getLength()),this.stop()},c.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},c.prototype.getTokens=function(u){return this.lines[u]||this.$tokenizeRow(u)},c.prototype.getState=function(u){return this.currentLine==u&&this.$tokenizeRow(u),this.states[u]||"start"},c.prototype.$tokenizeRow=function(u){var d=this.doc.getLine(u),h=this.states[u-1],f=this.tokenizer.getLineTokens(d,h,u);return this.states[u]+""!=f.state+""?(this.states[u]=f.state,this.lines[u+1]=null,this.currentLine>u+1&&(this.currentLine=u+1)):this.currentLine==u&&(this.currentLine=u+1),this.lines[u]=f.tokens},c.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},c}();o.implement(l.prototype,s),r.BackgroundTokenizer=l}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,a){var o=n("./lib/lang"),s=n("./range").Range,l=function(){function c(u,d,h){h===void 0&&(h="text"),this.setRegexp(u),this.clazz=d,this.type=h}return c.prototype.setRegexp=function(u){this.regExp+""!=u+""&&(this.regExp=u,this.cache=[])},c.prototype.update=function(u,d,h,f){if(this.regExp)for(var p=f.firstRow,m=f.lastRow,g={},v=p;v<=m;v++){var A=this.cache[v];A==null&&(A=o.getMatchOffsets(h.getLine(v),this.regExp),A.length>this.MAX_RANGES&&(A=A.slice(0,this.MAX_RANGES)),A=A.map(function(w){return new s(v,w.offset,v,w.offset+w.length)}),this.cache[v]=A.length?A:"");for(var y=A.length;y--;){var S=A[y].toScreenRange(h),x=S.toString();g[x]||(g[x]=!0,d.drawSingleLineMarker(u,S,this.clazz,f))}}},c}();l.prototype.MAX_RANGES=500,r.SearchHighlight=l}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,a){var o=function(){function w(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return w.prototype.addSession=function(_){this.$session=_},w.prototype.add=function(_,C,R){if(!this.$fromUndo&&_!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),C===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),_.id=this.$rev=++this.$maxRev}(_.action=="remove"||_.action=="insert")&&(this.$lastDelta=_),this.lastDeltas.push(_)}},w.prototype.addSelection=function(_,C){this.selections.push({value:_,rev:C||this.$rev})},w.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},w.prototype.markIgnored=function(_,C){C==null&&(C=this.$rev+1);for(var R=this.$undoStack,k=R.length;k--;){var P=R[k][0];if(P.id<=_)break;P.id<C&&(P.ignore=!0)}this.lastDeltas=null},w.prototype.getSelection=function(_,C){for(var R=this.selections,k=R.length;k--;){var P=R[k];if(P.rev<_)return C&&(P=R[k+1]),P}},w.prototype.getRevision=function(){return this.$rev},w.prototype.getDeltas=function(_,C){C==null&&(C=this.$rev+1);for(var R=this.$undoStack,k=null,P=0,N=R.length;N--;){var L=R[N][0];if(L.id<C&&!k&&(k=N+1),L.id<=_){P=N+1;break}}return R.slice(P,k)},w.prototype.getChangedRanges=function(_,C){C==null&&(C=this.$rev+1)},w.prototype.getChangedLines=function(_,C){C==null&&(C=this.$rev+1)},w.prototype.undo=function(_,C){this.lastDeltas=null;var R=this.$undoStack;if(s(R,R.length)){_||(_=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=R.pop(),P=null;return k&&(P=_.undoChanges(k,C),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,P}},w.prototype.redo=function(_,C){if(this.lastDeltas=null,_||(_=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);x(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var k=this.$redoStack.pop(),P=null;return k&&(P=_.redoChanges(k,C),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,P},w.prototype.$syncRev=function(){var _=this.$undoStack,C=_[_.length-1],R=C&&C[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},w.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},w.prototype.canUndo=function(){return this.$undoStack.length>0},w.prototype.canRedo=function(){return this.$redoStack.length>0},w.prototype.bookmark=function(_){_==null&&(_=this.$rev),this.mark=_},w.prototype.isAtBookmark=function(){return this.$rev===this.mark},w.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},w.prototype.fromJSON=function(_){this.reset(),this.$undoStack=_.$undoStack,this.$redoStack=_.$redoStack},w.prototype.$prettyPrint=function(_){return _?h(_):h(this.$undoStack)+`
---
`+h(this.$redoStack)},w}();o.prototype.hasUndo=o.prototype.canUndo,o.prototype.hasRedo=o.prototype.canRedo,o.prototype.isClean=o.prototype.isAtBookmark,o.prototype.markClean=o.prototype.bookmark;function s(w,_){for(var C=_;C--;){var R=w[C];if(R&&!R[0].ignore){for(;C<_-1;){var k=m(w[C],w[C+1]);w[C]=k[0],w[C+1]=k[1],C++}return!0}}}var l=n("./range").Range,c=l.comparePoints;l.comparePoints;function u(w){return{row:w.row,column:w.column}}function d(w){return{start:u(w.start),end:u(w.end),action:w.action,lines:w.lines.slice()}}function h(w){if(w=w||this,Array.isArray(w))return w.map(h).join(`
`);var _="";return w.action?(_=w.action=="insert"?"+":"-",_+="["+w.lines+"]"):w.value&&(Array.isArray(w.value)?_=w.value.map(f).join(`
`):_=f(w.value)),w.start&&(_+=f(w)),(w.id||w.rev)&&(_+="	("+(w.id||w.rev)+")"),_}function f(w){return w.start.row+":"+w.start.column+"=>"+w.end.row+":"+w.end.column}function p(w,_){var C=w.action=="insert",R=_.action=="insert";if(C&&R)if(c(_.start,w.end)>=0)v(_,w,-1);else if(c(_.start,w.start)<=0)v(w,_,1);else return null;else if(C&&!R)if(c(_.start,w.end)>=0)v(_,w,-1);else if(c(_.end,w.start)<=0)v(w,_,-1);else return null;else if(!C&&R)if(c(_.start,w.start)>=0)v(_,w,1);else if(c(_.start,w.start)<=0)v(w,_,1);else return null;else if(!C&&!R)if(c(_.start,w.start)>=0)v(_,w,1);else if(c(_.end,w.start)<=0)v(w,_,-1);else return null;return[_,w]}function m(w,_){for(var C=w.length;C--;)for(var R=0;R<_.length;R++)if(!p(w[C],_[R])){for(;C<w.length;){for(;R--;)p(_[R],w[C]);R=_.length,C++}return[w,_]}return w.selectionBefore=_.selectionBefore=w.selectionAfter=_.selectionAfter=null,[_,w]}function g(w,_){var C=w.action=="insert",R=_.action=="insert";if(C&&R)c(w.start,_.start)<0?v(_,w,1):v(w,_,1);else if(C&&!R)c(w.start,_.end)>=0?v(w,_,-1):(c(w.start,_.start)<=0||v(w,l.fromPoints(_.start,w.start),-1),v(_,w,1));else if(!C&&R)c(_.start,w.end)>=0?v(_,w,-1):(c(_.start,w.start)<=0||v(_,l.fromPoints(w.start,_.start),-1),v(w,_,1));else if(!C&&!R)if(c(_.start,w.end)>=0)v(_,w,-1);else if(c(_.end,w.start)<=0)v(w,_,-1);else{var k,P;return c(w.start,_.start)<0&&(k=w,w=y(w,_.start)),c(w.end,_.end)>0&&(P=y(w,_.end)),A(_.end,w.start,w.end,-1),P&&!k&&(w.lines=P.lines,w.start=P.start,w.end=P.end,P=w),[_,k,P].filter(Boolean)}return[_,w]}function v(w,_,C){A(w.start,_.start,_.end,C),A(w.end,_.start,_.end,C)}function A(w,_,C,R){w.row==(R==1?_:C).row&&(w.column+=R*(C.column-_.column)),w.row+=R*(C.row-_.row)}function y(w,_){var C=w.lines,R=w.end;w.end=u(_);var k=w.end.row-w.start.row,P=C.splice(k,C.length),N=k?_.column:_.column-w.start.column;C.push(P[0].substring(0,N)),P[0]=P[0].substr(N);var L={start:u(_),end:R,lines:P,action:w.action};return L}function S(w,_){_=d(_);for(var C=w.length;C--;){for(var R=w[C],k=0;k<R.length;k++){var P=R[k],N=g(P,_);_=N[0],N.length!=2&&(N[2]?(R.splice(k+1,1,N[1],N[2]),k++):N[1]||(R.splice(k,1),k--))}R.length||w.splice(C,1)}return w}function x(w,_){for(var C=0;C<_.length;C++)for(var R=_[C],k=0;k<R.length;k++)S(w,R[k])}r.UndoManager=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,a){var o=n("../range").Range,s=function(){function l(c,u){this.foldData=c,Array.isArray(u)?this.folds=u:u=this.folds=[u];var d=u[u.length-1];this.range=new o(u[0].start.row,u[0].start.column,d.end.row,d.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(h){h.setFoldLine(this)},this)}return l.prototype.shiftRow=function(c){this.start.row+=c,this.end.row+=c,this.folds.forEach(function(u){u.start.row+=c,u.end.row+=c})},l.prototype.addFold=function(c){if(c.sameRow){if(c.start.row<this.startRow||c.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(c),this.folds.sort(function(u,d){return-u.range.compareEnd(d.start.row,d.start.column)}),this.range.compareEnd(c.start.row,c.start.column)>0?(this.end.row=c.end.row,this.end.column=c.end.column):this.range.compareStart(c.end.row,c.end.column)<0&&(this.start.row=c.start.row,this.start.column=c.start.column)}else if(c.start.row==this.end.row)this.folds.push(c),this.end.row=c.end.row,this.end.column=c.end.column;else if(c.end.row==this.start.row)this.folds.unshift(c),this.start.row=c.start.row,this.start.column=c.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");c.foldLine=this},l.prototype.containsRow=function(c){return c>=this.start.row&&c<=this.end.row},l.prototype.walk=function(c,u,d){var h=0,f=this.folds,p,m,g,v=!0;u==null&&(u=this.end.row,d=this.end.column);for(var A=0;A<f.length;A++){if(p=f[A],m=p.range.compareStart(u,d),m==-1){c(null,u,d,h,v);return}if(g=c(null,p.start.row,p.start.column,h,v),g=!g&&c(p.placeholder,p.start.row,p.start.column,h),g||m===0)return;v=!p.sameRow,h=p.end.column}c(null,u,d,h,v)},l.prototype.getNextFoldTo=function(c,u){for(var d,h,f=0;f<this.folds.length;f++){if(d=this.folds[f],h=d.range.compareEnd(c,u),h==-1)return{fold:d,kind:"after"};if(h===0)return{fold:d,kind:"inside"}}return null},l.prototype.addRemoveChars=function(c,u,d){var h=this.getNextFoldTo(c,u),f,p;if(h){if(f=h.fold,h.kind=="inside"&&f.start.column!=u&&f.start.row!=c)window.console&&window.console.log(c,u,f);else if(f.start.row==c){p=this.folds;var m=p.indexOf(f);for(m===0&&(this.start.column+=d),m;m<p.length;m++){if(f=p[m],f.start.column+=d,!f.sameRow)return;f.end.column+=d}this.end.column+=d}}},l.prototype.split=function(c,u){var d=this.getNextFoldTo(c,u);if(!d||d.kind=="inside")return null;var h=d.fold,f=this.folds,p=this.foldData,m=f.indexOf(h),g=f[m-1];this.end.row=g.end.row,this.end.column=g.end.column,f=f.splice(m,f.length-m);var v=new l(p,f);return p.splice(p.indexOf(this)+1,0,v),v},l.prototype.merge=function(c){for(var u=c.folds,d=0;d<u.length;d++)this.addFold(u[d]);var h=this.foldData;h.splice(h.indexOf(c),1)},l.prototype.toString=function(){var c=[this.range.toString()+": ["];return this.folds.forEach(function(u){c.push("  "+u.toString())}),c.push("]"),c.join(`
`)},l.prototype.idxToPosition=function(c){for(var u=0,d=0;d<this.folds.length;d++){var h=this.folds[d];if(c-=h.start.column-u,c<0)return{row:h.start.row,column:h.start.column+c};if(c-=h.placeholder.length,c<0)return h.start;u=h.end.column}return{row:this.end.row,column:this.end.column+c}},l}();r.FoldLine=s}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,a){var o=n("./range").Range,s=o.comparePoints,l=function(){function c(){this.ranges=[],this.$bias=1}return c.prototype.pointIndex=function(u,d,h){for(var f=this.ranges,p=h||0;p<f.length;p++){var m=f[p],g=s(u,m.end);if(!(g>0)){var v=s(u,m.start);return g===0?d&&v!==0?-p-2:p:v>0||v===0&&!d?p:-p-1}}return-p-1},c.prototype.add=function(u){var d=!u.isEmpty(),h=this.pointIndex(u.start,d);h<0&&(h=-h-1);var f=this.pointIndex(u.end,d,h);return f<0?f=-f-1:f++,this.ranges.splice(h,f-h,u)},c.prototype.addList=function(u){for(var d=[],h=u.length;h--;)d.push.apply(d,this.add(u[h]));return d},c.prototype.substractPoint=function(u){var d=this.pointIndex(u);if(d>=0)return this.ranges.splice(d,1)},c.prototype.merge=function(){var u=[],d=this.ranges;d=d.sort(function(g,v){return s(g.start,v.start)});for(var h=d[0],f,p=1;p<d.length;p++){f=h,h=d[p];var m=s(f.end,h.start);m<0||m==0&&!f.isEmpty()&&!h.isEmpty()||(s(f.end,h.end)<0&&(f.end.row=h.end.row,f.end.column=h.end.column),d.splice(p,1),u.push(h),h=f,p--)}return this.ranges=d,u},c.prototype.contains=function(u,d){return this.pointIndex({row:u,column:d})>=0},c.prototype.containsPoint=function(u){return this.pointIndex(u)>=0},c.prototype.rangeAtPoint=function(u){var d=this.pointIndex(u);if(d>=0)return this.ranges[d]},c.prototype.clipRows=function(u,d){var h=this.ranges;if(h[0].start.row>d||h[h.length-1].start.row<u)return[];var f=this.pointIndex({row:u,column:0});f<0&&(f=-f-1);var p=this.pointIndex({row:d,column:0},f);p<0&&(p=-p-1);for(var m=[],g=f;g<p;g++)m.push(h[g]);return m},c.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},c.prototype.attach=function(u){this.session&&this.detach(),this.session=u,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},c.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},c.prototype.$onChange=function(u){for(var d=u.start,h=u.end,f=d.row,p=h.row,m=this.ranges,g=0,v=m.length;g<v;g++){var A=m[g];if(A.end.row>=f)break}if(u.action=="insert")for(var y=p-f,S=-d.column+h.column;g<v;g++){var A=m[g];if(A.start.row>f)break;if(A.start.row==f&&A.start.column>=d.column&&(A.start.column==d.column&&this.$bias<=0||(A.start.column+=S,A.start.row+=y)),A.end.row==f&&A.end.column>=d.column){if(A.end.column==d.column&&this.$bias<0)continue;A.end.column==d.column&&S>0&&g<v-1&&A.end.column>A.start.column&&A.end.column==m[g+1].start.column&&(A.end.column-=S),A.end.column+=S,A.end.row+=y}}else for(var y=f-p,S=d.column-h.column;g<v;g++){var A=m[g];if(A.start.row>p)break;A.end.row<p&&(f<A.end.row||f==A.end.row&&d.column<A.end.column)?(A.end.row=f,A.end.column=d.column):A.end.row==p?A.end.column<=h.column?(y||A.end.column>d.column)&&(A.end.column=d.column,A.end.row=d.row):(A.end.column+=S,A.end.row+=y):A.end.row>p&&(A.end.row+=y),A.start.row<p&&(f<A.start.row||f==A.start.row&&d.column<A.start.column)?(A.start.row=f,A.start.column=d.column):A.start.row==p?A.start.column<=h.column?(y||A.start.column>d.column)&&(A.start.column=d.column,A.start.row=d.row):(A.start.column+=S,A.start.row+=y):A.start.row>p&&(A.start.row+=y)}if(y!=0&&g<v)for(;g<v;g++){var A=m[g];A.start.row+=y,A.end.row+=y}},c}();l.prototype.comparePoints=s,r.RangeList=l}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,a){var o=this&&this.__extends||function(){var f=function(p,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(g[A]=v[A])},f(p,m)};return function(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");f(p,m);function g(){this.constructor=p}p.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}}(),s=n("../range_list").RangeList,l=function(f){o(p,f);function p(m,g){var v=f.call(this)||this;return v.foldLine=null,v.placeholder=g,v.range=m,v.start=m.start,v.end=m.end,v.sameRow=m.start.row==m.end.row,v.subFolds=v.ranges=[],v}return p.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},p.prototype.setFoldLine=function(m){this.foldLine=m,this.subFolds.forEach(function(g){g.setFoldLine(m)})},p.prototype.clone=function(){var m=this.range.clone(),g=new p(m,this.placeholder);return this.subFolds.forEach(function(v){g.subFolds.push(v.clone())}),g.collapseChildren=this.collapseChildren,g},p.prototype.addSubFold=function(m){if(!this.range.isEqual(m)){u(m,this.start);for(var S=m.start.row,x=m.start.column,g=0,v=-1;g<this.subFolds.length&&(v=this.subFolds[g].range.compare(S,x),v==1);g++);var A=this.subFolds[g],y=0;if(v==0){if(A.range.containsRange(m))return A.addSubFold(m);y=1}for(var S=m.range.end.row,x=m.range.end.column,w=g,v=-1;w<this.subFolds.length&&(v=this.subFolds[w].range.compare(S,x),v==1);w++);v==0&&w++;for(var _=this.subFolds.splice(g,w-g,m),C=v==0?_.length-1:_.length,R=y;R<C;R++)m.addSubFold(_[R]);return m.setFoldLine(this.foldLine),m}},p.prototype.restoreRange=function(m){return h(m,this.start)},p}(s);function c(f,p){f.row-=p.row,f.row==0&&(f.column-=p.column)}function u(f,p){c(f.start,p),c(f.end,p)}function d(f,p){f.row==0&&(f.column+=p.column),f.row+=p.row}function h(f,p){d(f.start,p),d(f.end,p)}r.Fold=l}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,r,a){var o=n("../range").Range,s=n("./fold_line").FoldLine,l=n("./fold").Fold,c=n("../token_iterator").TokenIterator,u=n("../mouse/mouse_event").MouseEvent;function d(){this.getFoldAt=function(h,f,p){var m=this.getFoldLine(h);if(!m)return null;for(var g=m.folds,v=0;v<g.length;v++){var A=g[v].range;if(A.contains(h,f)){if(p==1&&A.isEnd(h,f)&&!A.isEmpty())continue;if(p==-1&&A.isStart(h,f)&&!A.isEmpty())continue;return g[v]}}},this.getFoldsInRange=function(h){var f=h.start,p=h.end,m=this.$foldData,g=[];f.column+=1,p.column-=1;for(var v=0;v<m.length;v++){var A=m[v].range.compareRange(h);if(A!=2){if(A==-2)break;for(var y=m[v].folds,S=0;S<y.length;S++){var x=y[S];if(A=x.range.compareRange(h),A==-2)break;if(A==2)continue;if(A==42)break;g.push(x)}}}return f.column-=1,p.column+=1,g},this.getFoldsInRangeList=function(h){if(Array.isArray(h)){var f=[];h.forEach(function(p){f=f.concat(this.getFoldsInRange(p))},this)}else var f=this.getFoldsInRange(h);return f},this.getAllFolds=function(){for(var h=[],f=this.$foldData,p=0;p<f.length;p++)for(var m=0;m<f[p].folds.length;m++)h.push(f[p].folds[m]);return h},this.getFoldStringAt=function(h,f,p,m){if(m=m||this.getFoldLine(h),!m)return null;for(var g={end:{column:0}},v,A,y=0;y<m.folds.length;y++){A=m.folds[y];var S=A.range.compareEnd(h,f);if(S==-1){v=this.getLine(A.start.row).substring(g.end.column,A.start.column);break}else if(S===0)return null;g=A}return v||(v=this.getLine(A.start.row).substring(g.end.column)),p==-1?v.substring(0,f-g.end.column):p==1?v.substring(f-g.end.column):v},this.getFoldLine=function(h,f){var p=this.$foldData,m=0;for(f&&(m=p.indexOf(f)),m==-1&&(m=0),m;m<p.length;m++){var g=p[m];if(g.start.row<=h&&g.end.row>=h)return g;if(g.end.row>h)return null}return null},this.getNextFoldLine=function(h,f){var p=this.$foldData,m=0;for(f&&(m=p.indexOf(f)),m==-1&&(m=0),m;m<p.length;m++){var g=p[m];if(g.end.row>=h)return g}return null},this.getFoldedRowCount=function(h,f){for(var p=this.$foldData,m=f-h+1,g=0;g<p.length;g++){var v=p[g],A=v.end.row,y=v.start.row;if(A>=f){y<f&&(y>=h?m-=f-y:m=0);break}else A>=h&&(y>=h?m-=A-y:m-=A-h+1)}return m},this.$addFoldLine=function(h){return this.$foldData.push(h),this.$foldData.sort(function(f,p){return f.start.row-p.start.row}),h},this.addFold=function(h,f){var p=this.$foldData,m=!1,g;h instanceof l?g=h:(g=new l(f,h),g.collapseChildren=f.collapseChildren),this.$clipRangeToDocument(g.range);var v=g.start.row,A=g.start.column,y=g.end.row,S=g.end.column,x=this.getFoldAt(v,A,1),w=this.getFoldAt(y,S,-1);if(x&&w==x)return x.addSubFold(g);x&&!x.range.isStart(v,A)&&this.removeFold(x),w&&!w.range.isEnd(y,S)&&this.removeFold(w);var _=this.getFoldsInRange(g.range);_.length>0&&(this.removeFolds(_),g.collapseChildren||_.forEach(function(P){g.addSubFold(P)}));for(var C=0;C<p.length;C++){var R=p[C];if(y==R.start.row){R.addFold(g),m=!0;break}else if(v==R.end.row){if(R.addFold(g),m=!0,!g.sameRow){var k=p[C+1];if(k&&k.start.row==y){R.merge(k);break}}break}else if(y<=R.start.row)break}return m||(R=this.$addFoldLine(new s(this.$foldData,g))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:g,action:"add"}),g},this.addFolds=function(h){h.forEach(function(f){this.addFold(f)},this)},this.removeFold=function(h){var f=h.foldLine,p=f.start.row,m=f.end.row,g=this.$foldData,v=f.folds;if(v.length==1)g.splice(g.indexOf(f),1);else if(f.range.isEnd(h.end.row,h.end.column))v.pop(),f.end.row=v[v.length-1].end.row,f.end.column=v[v.length-1].end.column;else if(f.range.isStart(h.start.row,h.start.column))v.shift(),f.start.row=v[0].start.row,f.start.column=v[0].start.column;else if(h.sameRow)v.splice(v.indexOf(h),1);else{var A=f.split(h.start.row,h.start.column);v=A.folds,v.shift(),A.start.row=v[0].start.row,A.start.column=v[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(p,m):this.$updateRowLengthCache(p,m)),this.$modified=!0,this._signal("changeFold",{data:h,action:"remove"})},this.removeFolds=function(h){for(var f=[],p=0;p<h.length;p++)f.push(h[p]);f.forEach(function(m){this.removeFold(m)},this),this.$modified=!0},this.expandFold=function(h){this.removeFold(h),h.subFolds.forEach(function(f){h.restoreRange(f),this.addFold(f)},this),h.collapseChildren>0&&this.foldAll(h.start.row+1,h.end.row,h.collapseChildren-1),h.subFolds=[]},this.expandFolds=function(h){h.forEach(function(f){this.expandFold(f)},this)},this.unfold=function(h,f){var p,m;if(h==null)p=new o(0,0,this.getLength(),0),f==null&&(f=!0);else if(typeof h=="number")p=new o(h,0,h,this.getLine(h).length);else if("row"in h)p=o.fromPoints(h,h);else{if(Array.isArray(h))return m=[],h.forEach(function(v){m=m.concat(this.unfold(v))},this),m;p=h}m=this.getFoldsInRangeList(p);for(var g=m;m.length==1&&o.comparePoints(m[0].start,p.start)<0&&o.comparePoints(m[0].end,p.end)>0;)this.expandFolds(m),m=this.getFoldsInRangeList(p);if(f!=!1?this.removeFolds(m):this.expandFolds(m),g.length)return g},this.isRowFolded=function(h,f){return!!this.getFoldLine(h,f)},this.getRowFoldEnd=function(h,f){var p=this.getFoldLine(h,f);return p?p.end.row:h},this.getRowFoldStart=function(h,f){var p=this.getFoldLine(h,f);return p?p.start.row:h},this.getFoldDisplayLine=function(h,f,p,m,g){m==null&&(m=h.start.row),g==null&&(g=0),f==null&&(f=h.end.row),p==null&&(p=this.getLine(f).length);var v=this.doc,A="";return h.walk(function(y,S,x,w){if(!(S<m)){if(S==m){if(x<g)return;w=Math.max(g,w)}y!=null?A+=y:A+=v.getLine(S).substring(w,x)}},f,p),A},this.getDisplayLine=function(h,f,p,m){var g=this.getFoldLine(h);if(g)return this.getFoldDisplayLine(g,h,f,p,m);var v;return v=this.doc.getLine(h),v.substring(m||0,f||v.length)},this.$cloneFoldData=function(){var h=[];return h=this.$foldData.map(function(f){var p=f.folds.map(function(m){return m.clone()});return new s(h,p)}),h},this.toggleFold=function(h){var f=this.selection,p=f.getRange(),m,g;if(p.isEmpty()){var v=p.start;if(m=this.getFoldAt(v.row,v.column),m){this.expandFold(m);return}else(g=this.findMatchingBracket(v))?p.comparePoint(g)==1?p.end=g:(p.start=g,p.start.column++,p.end.column--):(g=this.findMatchingBracket({row:v.row,column:v.column+1}))?(p.comparePoint(g)==1?p.end=g:p.start=g,p.start.column++):p=this.getCommentFoldRange(v.row,v.column)||p}else{var A=this.getFoldsInRange(p);if(h&&A.length){this.expandFolds(A);return}else A.length==1&&(m=A[0])}if(m||(m=this.getFoldAt(p.start.row,p.start.column)),m&&m.range.toString()==p.toString()){this.expandFold(m);return}var y="...";if(!p.isMultiLine()){if(y=this.getTextRange(p),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,p)},this.getCommentFoldRange=function(h,f,p){var m=new c(this,h,f),g=m.getCurrentToken(),v=g&&g.type;if(g&&/^comment|string/.test(v)){v=v.match(/comment|string/)[0],v=="comment"&&(v+="|doc-start|\\.doc");var A=new RegExp(v),y=new o;if(p!=1){do g=m.stepBackward();while(g&&A.test(g.type));g=m.stepForward()}y.start.row=m.getCurrentTokenRow(),y.start.column=m.getCurrentTokenColumn()+g.value.length,m=new c(this,h,f);var S=this.getState(m.$row);if(p!=-1){var x=-1;do if(g=m.stepForward(),x==-1){var w=this.getState(m.$row);S.toString()!==w.toString()&&(x=m.$row)}else if(m.$row>x)break;while(g&&A.test(g.type));g=m.stepBackward()}else g=m.getCurrentToken();return y.end.row=m.getCurrentTokenRow(),y.end.column=m.getCurrentTokenColumn(),y}},this.foldAll=function(h,f,p,m){p==null&&(p=1e5);var g=this.foldWidgets;if(g){f=f||this.getLength(),h=h||0;for(var v=h;v<f;v++)if(g[v]==null&&(g[v]=this.getFoldWidget(v)),g[v]=="start"&&!(m&&!m(v))){var A=this.getFoldWidgetRange(v);A&&A.isMultiLine()&&A.end.row<=f&&A.start.row>=h&&(v=A.end.row,A.collapseChildren=p,this.addFold("...",A))}}},this.foldToLevel=function(h){for(this.foldAll();h-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var h=this;this.foldAll(null,null,null,function(f){for(var p=h.getTokens(f),m=0;m<p.length;m++){var g=p[m];if(!(g.type=="text"&&/^\s+$/.test(g.value)))return!!/comment/.test(g.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(h){if(!this.$foldStyles[h])throw new Error("invalid fold style: "+h+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=h){this.$foldStyle=h,h=="manual"&&this.unfold();var f=this.$foldMode;this.$setFolding(null),this.$setFolding(f)}},this.$setFolding=function(h){if(this.$foldMode!=h){if(this.$foldMode=h,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!h||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=h.getFoldWidget.bind(h,this,this.$foldStyle),this.getFoldWidgetRange=h.getFoldWidgetRange.bind(h,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(h,f){var p=this.foldWidgets;if(!p||f&&p[h])return{};for(var m=h-1,g;m>=0;){var v=p[m];if(v==null&&(v=p[m]=this.getFoldWidget(m)),v=="start"){var A=this.getFoldWidgetRange(m);if(g||(g=A),A&&A.end.row>=h)break}m--}return{range:m!==-1&&A,firstRange:g}},this.onFoldWidgetClick=function(h,f){f instanceof u&&(f=f.domEvent);var p={children:f.shiftKey,all:f.ctrlKey||f.metaKey,siblings:f.altKey},m=this.$toggleFoldWidget(h,p);if(!m){var g=f.target||f.srcElement;g&&/ace_fold-widget/.test(g.className)&&(g.className+=" ace_invalid")}},this.$toggleFoldWidget=function(h,f){if(this.getFoldWidget){var p=this.getFoldWidget(h),m=this.getLine(h),g=p==="end"?-1:1,v=this.getFoldAt(h,g===-1?0:m.length,g);if(v)return f.children||f.all?this.removeFold(v):this.expandFold(v),v;var A=this.getFoldWidgetRange(h,!0);if(A&&!A.isMultiLine()&&(v=this.getFoldAt(A.start.row,A.start.column,1),v&&A.isEqual(v.range)))return this.removeFold(v),v;if(f.siblings){var y=this.getParentFoldRangeData(h);if(y.range)var S=y.range.start.row+1,x=y.range.end.row;this.foldAll(S,x,f.all?1e4:0)}else f.children?(x=A?A.end.row:this.getLength(),this.foldAll(h+1,x,f.all?1e4:0)):A&&(f.all&&(A.collapseChildren=1e4),this.addFold("...",A));return A}},this.toggleFoldWidget=function(h){var f=this.selection.getCursor().row;f=this.getRowFoldStart(f);var p=this.$toggleFoldWidget(f,{});if(!p){var m=this.getParentFoldRangeData(f,!0);if(p=m.range||m.firstRange,p){f=p.start.row;var g=this.getFoldAt(f,this.getLine(f).length,1);g?this.removeFold(g):this.addFold("...",p)}}},this.updateFoldWidgets=function(h){var f=h.start.row,p=h.end.row-f;if(p===0)this.foldWidgets[f]=null;else if(h.action=="remove")this.foldWidgets.splice(f,p+1,null);else{var m=Array(p+1);m.unshift(f,1),this.foldWidgets.splice.apply(this.foldWidgets,m)}},this.tokenizerUpdateFoldWidgets=function(h){var f=h.data;f.first!=f.last&&this.foldWidgets.length>f.first&&this.foldWidgets.splice(f.first,this.foldWidgets.length)}}r.Folding=d}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,a){var o=n("../token_iterator").TokenIterator,s=n("../range").Range;function l(){this.findMatchingBracket=function(c,u){if(c.column==0)return null;var d=u||this.getLine(c.row).charAt(c.column-1);if(d=="")return null;var h=d.match(/([\(\[\{])|([\)\]\}])/);return h?h[1]?this.$findClosingBracket(h[1],c):this.$findOpeningBracket(h[2],c):null},this.getBracketRange=function(c){var u=this.getLine(c.row),d=!0,h,f=u.charAt(c.column-1),p=f&&f.match(/([\(\[\{])|([\)\]\}])/);if(p||(f=u.charAt(c.column),c={row:c.row,column:c.column+1},p=f&&f.match(/([\(\[\{])|([\)\]\}])/),d=!1),!p)return null;if(p[1]){var m=this.$findClosingBracket(p[1],c);if(!m)return null;h=s.fromPoints(c,m),d||(h.end.column++,h.start.column--),h.cursor=h.end}else{var m=this.$findOpeningBracket(p[2],c);if(!m)return null;h=s.fromPoints(m,c),d||(h.start.column++,h.end.column--),h.cursor=h.start}return h},this.getMatchingBracketRanges=function(c,u){var d=this.getLine(c.row),h=/([\(\[\{])|([\)\]\}])/,f=!u&&d.charAt(c.column-1),p=f&&f.match(h);if(p||(f=(u===void 0||u)&&d.charAt(c.column),c={row:c.row,column:c.column+1},p=f&&f.match(h)),!p)return null;var m=new s(c.row,c.column-1,c.row,c.column),g=p[1]?this.$findClosingBracket(p[1],c):this.$findOpeningBracket(p[2],c);if(!g)return[m];var v=new s(g.row,g.column,g.row,g.column+1);return[m,v]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(c,u,d){var h=this.$brackets[c],f=1,p=new o(this,u.row,u.column),m=p.getCurrentToken();if(m||(m=p.stepForward()),!!m){d||(d=new RegExp("(\\.?"+m.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var g=u.column-p.getCurrentTokenColumn()-2,v=m.value;;){for(;g>=0;){var A=v.charAt(g);if(A==h){if(f-=1,f==0)return{row:p.getCurrentTokenRow(),column:g+p.getCurrentTokenColumn()}}else A==c&&(f+=1);g-=1}do m=p.stepBackward();while(m&&!d.test(m.type));if(m==null)break;v=m.value,g=v.length-1}return null}},this.$findClosingBracket=function(c,u,d){var h=this.$brackets[c],f=1,p=new o(this,u.row,u.column),m=p.getCurrentToken();if(m||(m=p.stepForward()),!!m){d||(d=new RegExp("(\\.?"+m.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var g=u.column-p.getCurrentTokenColumn();;){for(var v=m.value,A=v.length;g<A;){var y=v.charAt(g);if(y==h){if(f-=1,f==0)return{row:p.getCurrentTokenRow(),column:g+p.getCurrentTokenColumn()}}else y==c&&(f+=1);g+=1}do m=p.stepForward();while(m&&!d.test(m.type));if(m==null)break;g=0}return null}},this.getMatchingTags=function(c){var u=new o(this,c.row,c.column),d=this.$findTagName(u);if(d){var h=u.stepBackward();return h.value==="<"?this.$findClosingTag(u,d):this.$findOpeningTag(u,d)}},this.$findTagName=function(c){var u=c.getCurrentToken(),d=!1,h=!1;if(u&&u.type.indexOf("tag-name")===-1)do h?u=c.stepBackward():u=c.stepForward(),u&&(u.value==="/>"?h=!0:u.type.indexOf("tag-name")!==-1&&(d=!0));while(u&&!d);return u},this.$findClosingTag=function(c,u){var d,h=u.value,f=u.value,p=0,m=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);u=c.stepForward();var g=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+u.value.length),v=!1;do{if(d=u,d.type.indexOf("tag-close")!==-1&&!v){var A=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);v=!0}if(u=c.stepForward(),u){if(u.value===">"&&!v){var A=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);v=!0}if(u.type.indexOf("tag-name")!==-1){if(h=u.value,f===h){if(d.value==="<")p++;else if(d.value==="</"&&(p--,p<0)){c.stepBackward();var y=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+2);u=c.stepForward();var S=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+u.value.length);if(u.type.indexOf("tag-close")===-1&&(u=c.stepForward()),u&&u.value===">")var x=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);else return}}}else if(f===h&&u.value==="/>"&&(p--,p<0))var y=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+2),S=y,x=S,A=new s(g.end.row,g.end.column,g.end.row,g.end.column+1)}}while(u&&p>=0);if(m&&A&&y&&x&&g&&S)return{openTag:new s(m.start.row,m.start.column,A.end.row,A.end.column),closeTag:new s(y.start.row,y.start.column,x.end.row,x.end.column),openTagName:g,closeTagName:S}},this.$findOpeningTag=function(c,u){var d=c.getCurrentToken(),h=u.value,f=0,p=c.getCurrentTokenRow(),m=c.getCurrentTokenColumn(),g=m+2,v=new s(p,m,p,g);c.stepForward();var A=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+u.value.length);if(u.type.indexOf("tag-close")===-1&&(u=c.stepForward()),!(!u||u.value!==">")){var y=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);c.stepBackward(),c.stepBackward();do if(u=d,p=c.getCurrentTokenRow(),m=c.getCurrentTokenColumn(),g=m+u.value.length,d=c.stepBackward(),u){if(u.type.indexOf("tag-name")!==-1){if(h===u.value)if(d.value==="<"){if(f++,f>0){var S=new s(p,m,p,g),x=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1);do u=c.stepForward();while(u&&u.value!==">");var w=new s(c.getCurrentTokenRow(),c.getCurrentTokenColumn(),c.getCurrentTokenRow(),c.getCurrentTokenColumn()+1)}}else d.value==="</"&&f--}else if(u.value==="/>"){for(var _=0,C=d;C;){if(C.type.indexOf("tag-name")!==-1&&C.value===h){f--;break}else if(C.value==="<")break;C=c.stepBackward(),_++}for(var R=0;R<_;R++)c.stepForward()}}while(d&&f<=0);if(x&&w&&v&&y&&S&&A)return{openTag:new s(x.start.row,x.start.column,w.end.row,w.end.column),closeTag:new s(v.start.row,v.start.column,y.end.row,y.end.column),openTagName:S,closeTagName:A}}}}r.BracketMatch=l}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,a){var o=n("./lib/oop"),s=n("./lib/lang"),l=n("./bidihandler").BidiHandler,c=n("./config"),u=n("./lib/event_emitter").EventEmitter,d=n("./selection").Selection,h=n("./mode/text").Mode,f=n("./range").Range,p=n("./document").Document,m=n("./background_tokenizer").BackgroundTokenizer,g=n("./search_highlight").SearchHighlight,v=n("./undomanager").UndoManager,A=function(){function N(L,I){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++N.$uid,this.$foldData.toString=function(){return this.join(`
`)},this.bgTokenizer=new m(new h().getTokenizer(),this);var b=this;this.bgTokenizer.on("update",function(T){b._signal("tokenizerUpdate",T)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof L!="object"||!L.getLine)&&(L=new p(L)),this.setDocument(L),this.selection=new d(this),this.$bidiHandler=new l(this),c.resetOptions(this),this.setMode(I),c._signal("session",this),this.destroyed=!1}return N.prototype.setDocument=function(L){this.doc&&this.doc.off("change",this.$onChange),this.doc=L,L.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},N.prototype.getDocument=function(){return this.doc},N.prototype.$resetRowCache=function(L){if(!L){this.$docRowCache=[],this.$screenRowCache=[];return}var I=this.$docRowCache.length,b=this.$getRowCacheIndex(this.$docRowCache,L)+1;I>b&&(this.$docRowCache.splice(b,I),this.$screenRowCache.splice(b,I))},N.prototype.$getRowCacheIndex=function(L,I){for(var b=0,T=L.length-1;b<=T;){var M=b+T>>1,D=L[M];if(I>D)b=M+1;else if(I<D)T=M-1;else return M}return b-1},N.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},N.prototype.onChangeFold=function(L){var I=L.data;this.$resetRowCache(I.start.row)},N.prototype.onChange=function(L){this.$modified=!0,this.$bidiHandler.onChange(L),this.$resetRowCache(L.start.row);var I=this.$updateInternalDataOnChange(L);!this.$fromUndo&&this.$undoManager&&(I&&I.length&&(this.$undoManager.add({action:"removeFolds",folds:I},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(L,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(L),this._signal("change",L)},N.prototype.setValue=function(L){this.doc.setValue(L),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},N.fromJSON=function(L){typeof L=="string"&&(L=JSON.parse(L));var I=new v;I.$undoStack=L.history.undo,I.$redoStack=L.history.redo,I.mark=L.history.mark,I.$rev=L.history.rev;var b=new N(L.value);return L.folds.forEach(function(T){b.addFold("...",f.fromPoints(T.start,T.end))}),b.setAnnotations(L.annotations),b.setBreakpoints(L.breakpoints),b.setMode(L.mode),b.setScrollLeft(L.scrollLeft),b.setScrollTop(L.scrollTop),b.setUndoManager(I),b.selection.fromJSON(L.selection),b},N.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(L){return L.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},N.prototype.toString=function(){return this.doc.getValue()},N.prototype.getSelection=function(){return this.selection},N.prototype.getState=function(L){return this.bgTokenizer.getState(L)},N.prototype.getTokens=function(L){return this.bgTokenizer.getTokens(L)},N.prototype.getTokenAt=function(L,I){var b=this.bgTokenizer.getTokens(L),T,M=0;if(I==null){var D=b.length-1;M=this.getLine(L).length}else for(var D=0;D<b.length&&(M+=b[D].value.length,!(M>=I));D++);return T=b[D],T?(T.index=D,T.start=M-T.value.length,T):null},N.prototype.setUndoManager=function(L){if(this.$undoManager=L,this.$informUndoManager&&this.$informUndoManager.cancel(),L){var I=this;L.addSession(this),this.$syncInformUndoManager=function(){I.$informUndoManager.cancel(),I.mergeUndoDeltas=!1},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},N.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},N.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},N.prototype.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):"	"},N.prototype.setUseSoftTabs=function(L){this.setOption("useSoftTabs",L)},N.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},N.prototype.setTabSize=function(L){this.setOption("tabSize",L)},N.prototype.getTabSize=function(){return this.$tabSize},N.prototype.isTabStop=function(L){return this.$useSoftTabs&&L.column%this.$tabSize===0},N.prototype.setNavigateWithinSoftTabs=function(L){this.setOption("navigateWithinSoftTabs",L)},N.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},N.prototype.setOverwrite=function(L){this.setOption("overwrite",L)},N.prototype.getOverwrite=function(){return this.$overwrite},N.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},N.prototype.addGutterDecoration=function(L,I){this.$decorations[L]||(this.$decorations[L]=""),this.$decorations[L]+=" "+I,this._signal("changeBreakpoint",{})},N.prototype.removeGutterDecoration=function(L,I){this.$decorations[L]=(this.$decorations[L]||"").replace(" "+I,""),this._signal("changeBreakpoint",{})},N.prototype.getBreakpoints=function(){return this.$breakpoints},N.prototype.setBreakpoints=function(L){this.$breakpoints=[];for(var I=0;I<L.length;I++)this.$breakpoints[L[I]]="ace_breakpoint";this._signal("changeBreakpoint",{})},N.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},N.prototype.setBreakpoint=function(L,I){I===void 0&&(I="ace_breakpoint"),I?this.$breakpoints[L]=I:delete this.$breakpoints[L],this._signal("changeBreakpoint",{})},N.prototype.clearBreakpoint=function(L){delete this.$breakpoints[L],this._signal("changeBreakpoint",{})},N.prototype.addMarker=function(L,I,b,T){var M=this.$markerId++,D={range:L,type:b||"line",renderer:typeof b=="function"?b:null,clazz:I,inFront:!!T,id:M};return T?(this.$frontMarkers[M]=D,this._signal("changeFrontMarker")):(this.$backMarkers[M]=D,this._signal("changeBackMarker")),M},N.prototype.addDynamicMarker=function(L,I){if(L.update){var b=this.$markerId++;return L.id=b,L.inFront=!!I,I?(this.$frontMarkers[b]=L,this._signal("changeFrontMarker")):(this.$backMarkers[b]=L,this._signal("changeBackMarker")),L}},N.prototype.removeMarker=function(L){var I=this.$frontMarkers[L]||this.$backMarkers[L];if(I){var b=I.inFront?this.$frontMarkers:this.$backMarkers;delete b[L],this._signal(I.inFront?"changeFrontMarker":"changeBackMarker")}},N.prototype.getMarkers=function(L){return L?this.$frontMarkers:this.$backMarkers},N.prototype.highlight=function(L){if(!this.$searchHighlight){var I=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(I)}this.$searchHighlight.setRegexp(L)},N.prototype.highlightLines=function(L,I,b,T){typeof I!="number"&&(b=I,I=L),b||(b="ace_step");var M=new f(L,0,I,1/0);return M.id=this.addMarker(M,b,"fullLine",T),M},N.prototype.setAnnotations=function(L){this.$annotations=L,this._signal("changeAnnotation",{})},N.prototype.getAnnotations=function(){return this.$annotations||[]},N.prototype.clearAnnotations=function(){this.setAnnotations([])},N.prototype.$detectNewLine=function(L){var I=L.match(/^.*?(\r?\n)/m);I?this.$autoNewLine=I[1]:this.$autoNewLine=`
`},N.prototype.getWordRange=function(L,I){var b=this.getLine(L),T=!1;if(I>0&&(T=!!b.charAt(I-1).match(this.tokenRe)),T||(T=!!b.charAt(I).match(this.tokenRe)),T)var M=this.tokenRe;else if(/^\s+$/.test(b.slice(I-1,I+1)))var M=/\s/;else var M=this.nonTokenRe;var D=I;if(D>0){do D--;while(D>=0&&b.charAt(D).match(M));D++}for(var B=I;B<b.length&&b.charAt(B).match(M);)B++;return new f(L,D,L,B)},N.prototype.getAWordRange=function(L,I){for(var b=this.getWordRange(L,I),T=this.getLine(b.end.row);T.charAt(b.end.column).match(/[ \t]/);)b.end.column+=1;return b},N.prototype.setNewLineMode=function(L){this.doc.setNewLineMode(L)},N.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},N.prototype.setUseWorker=function(L){this.setOption("useWorker",L)},N.prototype.getUseWorker=function(){return this.$useWorker},N.prototype.onReloadTokenizer=function(L){var I=L.data;this.bgTokenizer.start(I.first),this._signal("tokenizerUpdate",L)},N.prototype.setMode=function(L,I){if(L&&typeof L=="object"){if(L.getTokenizer)return this.$onChangeMode(L);var b=L,T=b.path}else T=L||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new h),this.$modes[T]&&!b){this.$onChangeMode(this.$modes[T]),I&&I();return}this.$modeId=T,c.loadModule(["mode",T],(function(M){if(this.$modeId!==T)return I&&I();this.$modes[T]&&!b?this.$onChangeMode(this.$modes[T]):M&&M.Mode&&(M=new M.Mode(b),b||(this.$modes[T]=M,M.$id=T),this.$onChangeMode(M)),I&&I()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},N.prototype.$onChangeMode=function(L,I){if(I||(this.$modeId=L.$id),this.$mode!==L){var b=this.$mode;this.$mode=L,this.$stopWorker(),this.$useWorker&&this.$startWorker();var T=L.getTokenizer();if(T.on!==void 0){var M=this.onReloadTokenizer.bind(this);T.on("update",M)}this.bgTokenizer.setTokenizer(T),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=L.tokenRe,this.nonTokenRe=L.nonTokenRe,I||(L.attachToSession&&L.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(L.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:b,mode:L}))}},N.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},N.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(L){c.warn("Could not load worker",L),this.$worker=null}},N.prototype.getMode=function(){return this.$mode},N.prototype.setScrollTop=function(L){this.$scrollTop===L||isNaN(L)||(this.$scrollTop=L,this._signal("changeScrollTop",L))},N.prototype.getScrollTop=function(){return this.$scrollTop},N.prototype.setScrollLeft=function(L){this.$scrollLeft===L||isNaN(L)||(this.$scrollLeft=L,this._signal("changeScrollLeft",L))},N.prototype.getScrollLeft=function(){return this.$scrollLeft},N.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},N.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var L=0;return this.lineWidgets.forEach(function(I){I&&I.screenWidth>L&&(L=I.screenWidth)}),this.lineWidgetWidth=L},N.prototype.$computeWidth=function(L){if(this.$modified||L){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var I=this.doc.getAllLines(),b=this.$rowLengthCache,T=0,M=0,D=this.$foldData[M],B=D?D.start.row:1/0,j=I.length,H=0;H<j;H++){if(H>B){if(H=D.end.row+1,H>=j)break;D=this.$foldData[M++],B=D?D.start.row:1/0}b[H]==null&&(b[H]=this.$getStringScreenWidth(I[H])[0]),b[H]>T&&(T=b[H])}this.screenWidth=T}},N.prototype.getLine=function(L){return this.doc.getLine(L)},N.prototype.getLines=function(L,I){return this.doc.getLines(L,I)},N.prototype.getLength=function(){return this.doc.getLength()},N.prototype.getTextRange=function(L){return this.doc.getTextRange(L||this.selection.getRange())},N.prototype.insert=function(L,I){return this.doc.insert(L,I)},N.prototype.remove=function(L){return this.doc.remove(L)},N.prototype.removeFullLines=function(L,I){return this.doc.removeFullLines(L,I)},N.prototype.undoChanges=function(L,I){if(L.length){this.$fromUndo=!0;for(var b=L.length-1;b!=-1;b--){var T=L[b];T.action=="insert"||T.action=="remove"?this.doc.revertDelta(T):T.folds&&this.addFolds(T.folds)}!I&&this.$undoSelect&&(L.selectionBefore?this.selection.fromJSON(L.selectionBefore):this.selection.setRange(this.$getUndoSelection(L,!0))),this.$fromUndo=!1}},N.prototype.redoChanges=function(L,I){if(L.length){this.$fromUndo=!0;for(var b=0;b<L.length;b++){var T=L[b];(T.action=="insert"||T.action=="remove")&&this.doc.$safeApplyDelta(T)}!I&&this.$undoSelect&&(L.selectionAfter?this.selection.fromJSON(L.selectionAfter):this.selection.setRange(this.$getUndoSelection(L,!1))),this.$fromUndo=!1}},N.prototype.setUndoSelect=function(L){this.$undoSelect=L},N.prototype.$getUndoSelection=function(L,I){function b(j){return I?j.action!=="insert":j.action==="insert"}for(var T,M,D=0;D<L.length;D++){var B=L[D];if(B.start){if(!T){b(B)?T=f.fromPoints(B.start,B.end):T=f.fromPoints(B.start,B.start);continue}b(B)?(M=B.start,T.compare(M.row,M.column)==-1&&T.setStart(M),M=B.end,T.compare(M.row,M.column)==1&&T.setEnd(M)):(M=B.start,T.compare(M.row,M.column)==-1&&(T=f.fromPoints(B.start,B.start)))}}return T},N.prototype.replace=function(L,I){return this.doc.replace(L,I)},N.prototype.moveText=function(L,I,b){var T=this.getTextRange(L),M=this.getFoldsInRange(L),D=f.fromPoints(I,I);if(!b){this.remove(L);var B=L.start.row-L.end.row,j=B?-L.end.column:L.start.column-L.end.column;j&&(D.start.row==L.end.row&&D.start.column>L.end.column&&(D.start.column+=j),D.end.row==L.end.row&&D.end.column>L.end.column&&(D.end.column+=j)),B&&D.start.row>=L.end.row&&(D.start.row+=B,D.end.row+=B)}if(D.end=this.insert(D.start,T),M.length){var H=L.start,U=D.start,B=U.row-H.row,j=U.column-H.column;this.addFolds(M.map(function(Z){return Z=Z.clone(),Z.start.row==H.row&&(Z.start.column+=j),Z.end.row==H.row&&(Z.end.column+=j),Z.start.row+=B,Z.end.row+=B,Z}))}return D},N.prototype.indentRows=function(L,I,b){b=b.replace(/\t/g,this.getTabString());for(var T=L;T<=I;T++)this.doc.insertInLine({row:T,column:0},b)},N.prototype.outdentRows=function(L){for(var I=L.collapseRows(),b=new f(0,0,0,0),T=this.getTabSize(),M=I.start.row;M<=I.end.row;++M){var D=this.getLine(M);b.start.row=M,b.end.row=M;for(var B=0;B<T&&D.charAt(B)==" ";++B);B<T&&D.charAt(B)=="	"?(b.start.column=B,b.end.column=B+1):(b.start.column=0,b.end.column=B),this.remove(b)}},N.prototype.$moveLines=function(L,I,b){if(L=this.getRowFoldStart(L),I=this.getRowFoldEnd(I),b<0){var T=this.getRowFoldStart(L+b);if(T<0)return 0;var M=T-L}else if(b>0){var T=this.getRowFoldEnd(I+b);if(T>this.doc.getLength()-1)return 0;var M=T-I}else{L=this.$clipRowToDocument(L),I=this.$clipRowToDocument(I);var M=I-L+1}var D=new f(L,0,I,Number.MAX_VALUE),B=this.getFoldsInRange(D).map(function(H){return H=H.clone(),H.start.row+=M,H.end.row+=M,H}),j=b==0?this.doc.getLines(L,I):this.doc.removeFullLines(L,I);return this.doc.insertFullLines(L+M,j),B.length&&this.addFolds(B),M},N.prototype.moveLinesUp=function(L,I){return this.$moveLines(L,I,-1)},N.prototype.moveLinesDown=function(L,I){return this.$moveLines(L,I,1)},N.prototype.duplicateLines=function(L,I){return this.$moveLines(L,I,0)},N.prototype.$clipRowToDocument=function(L){return Math.max(0,Math.min(L,this.doc.getLength()-1))},N.prototype.$clipColumnToRow=function(L,I){return I<0?0:Math.min(this.doc.getLine(L).length,I)},N.prototype.$clipPositionToDocument=function(L,I){if(I=Math.max(0,I),L<0)L=0,I=0;else{var b=this.doc.getLength();L>=b?(L=b-1,I=this.doc.getLine(b-1).length):I=Math.min(this.doc.getLine(L).length,I)}return{row:L,column:I}},N.prototype.$clipRangeToDocument=function(L){L.start.row<0?(L.start.row=0,L.start.column=0):L.start.column=this.$clipColumnToRow(L.start.row,L.start.column);var I=this.doc.getLength()-1;return L.end.row>I?(L.end.row=I,L.end.column=this.doc.getLine(I).length):L.end.column=this.$clipColumnToRow(L.end.row,L.end.column),L},N.prototype.setUseWrapMode=function(L){if(L!=this.$useWrapMode){if(this.$useWrapMode=L,this.$modified=!0,this.$resetRowCache(0),L){var I=this.getLength();this.$wrapData=Array(I),this.$updateWrapData(0,I-1)}this._signal("changeWrapMode")}},N.prototype.getUseWrapMode=function(){return this.$useWrapMode},N.prototype.setWrapLimitRange=function(L,I){(this.$wrapLimitRange.min!==L||this.$wrapLimitRange.max!==I)&&(this.$wrapLimitRange={min:L,max:I},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},N.prototype.adjustWrapLimit=function(L,I){var b=this.$wrapLimitRange;b.max<0&&(b={min:I,max:I});var T=this.$constrainWrapLimit(L,b.min,b.max);return T!=this.$wrapLimit&&T>1?(this.$wrapLimit=T,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},N.prototype.$constrainWrapLimit=function(L,I,b){return I&&(L=Math.max(I,L)),b&&(L=Math.min(b,L)),L},N.prototype.getWrapLimit=function(){return this.$wrapLimit},N.prototype.setWrapLimit=function(L){this.setWrapLimitRange(L,L)},N.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},N.prototype.$updateInternalDataOnChange=function(L){var I=this.$useWrapMode,b=L.action,T=L.start,M=L.end,D=T.row,B=M.row,j=B-D,H=null;if(this.$updating=!0,j!=0)if(b==="remove"){this[I?"$wrapData":"$rowLengthCache"].splice(D,j);var U=this.$foldData;H=this.getFoldsInRange(L),this.removeFolds(H);var $=this.getFoldLine(M.row),z=0;if($){$.addRemoveChars(M.row,M.column,T.column-M.column),$.shiftRow(-j);var Z=this.getFoldLine(D);Z&&Z!==$&&(Z.merge($),$=Z),z=U.indexOf($)+1}for(z;z<U.length;z++){var $=U[z];$.start.row>=M.row&&$.shiftRow(-j)}B=D}else{var K=Array(j);K.unshift(D,0);var Q=I?this.$wrapData:this.$rowLengthCache;Q.splice.apply(Q,K);var U=this.$foldData,$=this.getFoldLine(D),z=0;if($){var ee=$.range.compareInside(T.row,T.column);ee==0?($=$.split(T.row,T.column),$&&($.shiftRow(j),$.addRemoveChars(B,0,M.column-T.column))):ee==-1&&($.addRemoveChars(D,0,M.column-T.column),$.shiftRow(j)),z=U.indexOf($)+1}for(z;z<U.length;z++){var $=U[z];$.start.row>=D&&$.shiftRow(j)}}else{j=Math.abs(L.start.column-L.end.column),b==="remove"&&(H=this.getFoldsInRange(L),this.removeFolds(H),j=-j);var $=this.getFoldLine(D);$&&$.addRemoveChars(D,T.column,j)}return I&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,I?this.$updateWrapData(D,B):this.$updateRowLengthCache(D,B),H},N.prototype.$updateRowLengthCache=function(L,I){this.$rowLengthCache[L]=null,this.$rowLengthCache[I]=null},N.prototype.$updateWrapData=function(L,I){var b=this.doc.getAllLines(),T=this.getTabSize(),M=this.$wrapData,D=this.$wrapLimit,B,j,H=L;for(I=Math.min(I,b.length-1);H<=I;)j=this.getFoldLine(H,j),j?(B=[],j.walk((function(U,$,z,Z){var K;if(U!=null){K=this.$getDisplayTokens(U,B.length),K[0]=x;for(var Q=1;Q<K.length;Q++)K[Q]=w}else K=this.$getDisplayTokens(b[$].substring(Z,z),B.length);B=B.concat(K)}).bind(this),j.end.row,b[j.end.row].length+1),M[j.start.row]=this.$computeWrapSplits(B,D,T),H=j.end.row+1):(B=this.$getDisplayTokens(b[H]),M[H]=this.$computeWrapSplits(B,D,T),H++)},N.prototype.$computeWrapSplits=function(L,I,b){if(L.length==0)return[];var T=[],M=L.length,D=0,B=0,j=this.$wrapAsCode,H=this.$indentedSoftWrap,U=I<=Math.max(2*b,8)||H===!1?0:Math.floor(I/2);function $(){var ee=0;if(U===0)return ee;if(H)for(var X=0;X<L.length;X++){var te=L[X];if(te==C)ee+=1;else if(te==R)ee+=b;else{if(te==k)continue;break}}return j&&H!==!1&&(ee+=b),Math.min(ee,U)}function z(ee){for(var X=ee-D,te=D;te<ee;te++){var J=L[te];(J===12||J===2)&&(X-=1)}T.length||(Z=$(),T.indent=Z),B+=X,T.push(B),D=ee}for(var Z=0;M-D>I-Z;){var K=D+I-Z;if(L[K-1]>=C&&L[K]>=C){z(K);continue}if(L[K]==x||L[K]==w){for(K;K!=D-1&&L[K]!=x;K--);if(K>D){z(K);continue}for(K=D+I,K;K<L.length&&L[K]==w;K++);if(K==L.length)break;z(K);continue}for(var Q=Math.max(K-(I-(I>>2)),D-1);K>Q&&L[K]<x;)K--;if(j){for(;K>Q&&L[K]<x;)K--;for(;K>Q&&L[K]==_;)K--}else for(;K>Q&&L[K]<C;)K--;if(K>Q){z(++K);continue}K=D+I,L[K]==S&&K--,z(K-Z)}return T},N.prototype.$getDisplayTokens=function(L,I){var b=[],T;I=I||0;for(var M=0;M<L.length;M++){var D=L.charCodeAt(M);if(D==9){T=this.getScreenTabSize(b.length+I),b.push(R);for(var B=1;B<T;B++)b.push(k)}else D==32?b.push(C):D>39&&D<48||D>57&&D<64?b.push(_):D>=4352&&P(D)?b.push(y,S):b.push(y)}return b},N.prototype.$getStringScreenWidth=function(L,I,b){if(I==0)return[0,0];I==null&&(I=1/0),b=b||0;var T,M;for(M=0;M<L.length&&(T=L.charCodeAt(M),T==9?b+=this.getScreenTabSize(b):T>=4352&&P(T)?b+=2:b+=1,!(b>I));M++);return[b,M]},N.prototype.getRowLength=function(L){var I=1;return this.lineWidgets&&(I+=this.lineWidgets[L]&&this.lineWidgets[L].rowCount||0),!this.$useWrapMode||!this.$wrapData[L]?I:this.$wrapData[L].length+I},N.prototype.getRowLineCount=function(L){return!this.$useWrapMode||!this.$wrapData[L]?1:this.$wrapData[L].length+1},N.prototype.getRowWrapIndent=function(L){if(this.$useWrapMode){var I=this.screenToDocumentPosition(L,Number.MAX_VALUE),b=this.$wrapData[I.row];return b.length&&b[0]<I.column?b.indent:0}else return 0},N.prototype.getScreenLastRowColumn=function(L){var I=this.screenToDocumentPosition(L,Number.MAX_VALUE);return this.documentToScreenColumn(I.row,I.column)},N.prototype.getDocumentLastRowColumn=function(L,I){var b=this.documentToScreenRow(L,I);return this.getScreenLastRowColumn(b)},N.prototype.getDocumentLastRowColumnPosition=function(L,I){var b=this.documentToScreenRow(L,I);return this.screenToDocumentPosition(b,Number.MAX_VALUE/10)},N.prototype.getRowSplitData=function(L){if(this.$useWrapMode)return this.$wrapData[L]},N.prototype.getScreenTabSize=function(L){return this.$tabSize-(L%this.$tabSize|0)},N.prototype.screenToDocumentRow=function(L,I){return this.screenToDocumentPosition(L,I).row},N.prototype.screenToDocumentColumn=function(L,I){return this.screenToDocumentPosition(L,I).column},N.prototype.screenToDocumentPosition=function(L,I,b){if(L<0)return{row:0,column:0};var T,M=0,D=0,B,j=0,H=0,U=this.$screenRowCache,$=this.$getRowCacheIndex(U,L),z=U.length;if(z&&$>=0)var j=U[$],M=this.$docRowCache[$],Z=L>U[z-1];else var Z=!z;for(var K=this.getLength()-1,Q=this.getNextFoldLine(M),ee=Q?Q.start.row:1/0;j<=L&&(H=this.getRowLength(M),!(j+H>L||M>=K));)j+=H,M++,M>ee&&(M=Q.end.row+1,Q=this.getNextFoldLine(M,Q),ee=Q?Q.start.row:1/0),Z&&(this.$docRowCache.push(M),this.$screenRowCache.push(j));if(Q&&Q.start.row<=M)T=this.getFoldDisplayLine(Q),M=Q.start.row;else{if(j+H<=L||M>K)return{row:K,column:this.getLine(K).length};T=this.getLine(M),Q=null}var X=0,te=Math.floor(L-j);if(this.$useWrapMode){var J=this.$wrapData[M];J&&(B=J[te],te>0&&J.length&&(X=J.indent,D=J[te-1]||J[J.length-1],T=T.substring(D)))}return b!==void 0&&this.$bidiHandler.isBidiRow(j+te,M,te)&&(I=this.$bidiHandler.offsetToCol(b)),D+=this.$getStringScreenWidth(T,I-X)[1],this.$useWrapMode&&D>=B&&(D=B-1),Q?Q.idxToPosition(D):{row:M,column:D}},N.prototype.documentToScreenPosition=function(L,I){if(typeof I>"u")var b=this.$clipPositionToDocument(L.row,L.column);else b=this.$clipPositionToDocument(L,I);L=b.row,I=b.column;var T=0,M=null,D=null;D=this.getFoldAt(L,I,1),D&&(L=D.start.row,I=D.start.column);var B,j=0,H=this.$docRowCache,U=this.$getRowCacheIndex(H,L),$=H.length;if($&&U>=0)var j=H[U],T=this.$screenRowCache[U],z=L>H[$-1];else var z=!$;for(var Z=this.getNextFoldLine(j),K=Z?Z.start.row:1/0;j<L;){if(j>=K){if(B=Z.end.row+1,B>L)break;Z=this.getNextFoldLine(B,Z),K=Z?Z.start.row:1/0}else B=j+1;T+=this.getRowLength(j),j=B,z&&(this.$docRowCache.push(j),this.$screenRowCache.push(T))}var Q="";Z&&j>=K?(Q=this.getFoldDisplayLine(Z,L,I),M=Z.start.row):(Q=this.getLine(L).substring(0,I),M=L);var ee=0;if(this.$useWrapMode){var X=this.$wrapData[M];if(X){for(var te=0;Q.length>=X[te];)T++,te++;Q=Q.substring(X[te-1]||0,Q.length),ee=te>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[j]&&this.lineWidgets[j].rowsAbove&&(T+=this.lineWidgets[j].rowsAbove),{row:T,column:ee+this.$getStringScreenWidth(Q)[0]}},N.prototype.documentToScreenColumn=function(L,I){return this.documentToScreenPosition(L,I).column},N.prototype.documentToScreenRow=function(L,I){return this.documentToScreenPosition(L,I).row},N.prototype.getScreenLength=function(){var L=0,I=null;if(this.$useWrapMode)for(var M=this.$wrapData.length,D=0,T=0,I=this.$foldData[T++],B=I?I.start.row:1/0;D<M;){var j=this.$wrapData[D];L+=j?j.length+1:1,D++,D>B&&(D=I.end.row+1,I=this.$foldData[T++],B=I?I.start.row:1/0)}else{L=this.getLength();for(var b=this.$foldData,T=0;T<b.length;T++)I=b[T],L-=I.end.row-I.start.row}return this.lineWidgets&&(L+=this.$getWidgetScreenLength()),L},N.prototype.$setFontMetrics=function(L){this.$enableVarChar&&(this.$getStringScreenWidth=function(I,b,T){if(b===0)return[0,0];b||(b=1/0),T=T||0;var M,D;for(D=0;D<I.length&&(M=I.charAt(D),M==="	"?T+=this.getScreenTabSize(T):T+=L.getCharacterWidth(M),!(T>b));D++);return[T,D]})},N.prototype.getPrecedingCharacter=function(){var L=this.selection.getCursor();if(L.column===0)return L.row===0?"":this.doc.getNewLineCharacter();var I=this.getLine(L.row);return I[L.column-1]},N.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},N}();A.$uid=0,A.prototype.$modes=c.$modes,A.prototype.getValue=A.prototype.toString,A.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},A.prototype.$overwrite=!1,A.prototype.$mode=null,A.prototype.$modeId=null,A.prototype.$scrollTop=0,A.prototype.$scrollLeft=0,A.prototype.$wrapLimit=80,A.prototype.$useWrapMode=!1,A.prototype.$wrapLimitRange={min:null,max:null},A.prototype.lineWidgets=null,A.prototype.isFullWidth=P,o.implement(A.prototype,u);var y=1,S=2,x=3,w=4,_=9,C=10,R=11,k=12;function P(N){return N<4352?!1:N>=4352&&N<=4447||N>=4515&&N<=4519||N>=4602&&N<=4607||N>=9001&&N<=9002||N>=11904&&N<=11929||N>=11931&&N<=12019||N>=12032&&N<=12245||N>=12272&&N<=12283||N>=12288&&N<=12350||N>=12353&&N<=12438||N>=12441&&N<=12543||N>=12549&&N<=12589||N>=12593&&N<=12686||N>=12688&&N<=12730||N>=12736&&N<=12771||N>=12784&&N<=12830||N>=12832&&N<=12871||N>=12880&&N<=13054||N>=13056&&N<=19903||N>=19968&&N<=42124||N>=42128&&N<=42182||N>=43360&&N<=43388||N>=44032&&N<=55203||N>=55216&&N<=55238||N>=55243&&N<=55291||N>=63744&&N<=64255||N>=65040&&N<=65049||N>=65072&&N<=65106||N>=65108&&N<=65126||N>=65128&&N<=65131||N>=65281&&N<=65376||N>=65504&&N<=65510}n("./edit_session/folding").Folding.call(A.prototype),n("./edit_session/bracket_match").BracketMatch.call(A.prototype),c.defineOptions(A.prototype,"session",{wrap:{set:function(N){if(!N||N=="off"?N=!1:N=="free"?N=!0:N=="printMargin"?N=-1:typeof N=="string"&&(N=parseInt(N,10)||!1),this.$wrap!=N)if(this.$wrap=N,!N)this.setUseWrapMode(!1);else{var L=typeof N=="number"?N:null;this.setWrapLimitRange(L,L),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(N){N=N=="auto"?this.$mode.type!="text":N!="text",N!=this.$wrapAsCode&&(this.$wrapAsCode=N,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(N){this.$useWorker=N,this.$stopWorker(),N&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(N){N=parseInt(N),N>0&&this.$tabSize!==N&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=N,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(N){this.setFoldStyle(N)},handlesSet:!0},overwrite:{set:function(N){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(N){this.doc.setNewLineMode(N)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(N){this.setMode(N)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=A}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,a){var o=n("./lib/lang"),s=n("./lib/oop"),l=n("./range").Range,c=function(){function d(){this.$options={}}return d.prototype.set=function(h){return s.mixin(this.$options,h),this},d.prototype.getOptions=function(){return o.copyObject(this.$options)},d.prototype.setOptions=function(h){this.$options=h},d.prototype.find=function(h){var f=this.$options,p=this.$matchIterator(h,f);if(!p)return!1;var m=null;return p.forEach(function(g,v,A,y){return m=new l(g,v,A,y),v==y&&f.start&&f.start.start&&f.skipCurrent!=!1&&m.isEqual(f.start)?(m=null,!1):!0}),m},d.prototype.findAll=function(h){var f=this.$options;if(!f.needle)return[];this.$assembleRegExp(f);var p=f.range,m=p?h.getLines(p.start.row,p.end.row):h.doc.getAllLines(),g=[],v=f.re;if(f.$isMultiLine){var A=v.length,y=m.length-A,S;e:for(var x=v.offset||0;x<=y;x++){for(var w=0;w<A;w++)if(m[x+w].search(v[w])==-1)continue e;var _=m[x],C=m[x+A-1],R=_.length-_.match(v[0])[0].length,k=C.match(v[A-1])[0].length;S&&S.end.row===x&&S.end.column>R||(g.push(S=new l(x,R,x+A-1,k)),A>2&&(x=x+A-2))}}else for(var P=0;P<m.length;P++)for(var N=o.getMatchOffsets(m[P],v),w=0;w<N.length;w++){var L=N[w];g.push(new l(P,L.offset,P,L.offset+L.length))}if(p){for(var I=p.start.column,b=p.end.column,P=0,w=g.length-1;P<w&&g[P].start.column<I&&g[P].start.row==0;)P++;for(var T=p.end.row-p.start.row;P<w&&g[w].end.column>b&&g[w].end.row==T;)w--;for(g=g.slice(P,w+1),P=0,w=g.length;P<w;P++)g[P].start.row+=p.start.row,g[P].end.row+=p.start.row}return g},d.prototype.replace=function(h,f){var p=this.$options,m=this.$assembleRegExp(p);if(p.$isMultiLine)return f;if(m){var g=m.exec(h);if(!g||g[0].length!=h.length)return null;if(p.regExp||(f=f.replace(/\$/g,"$$$$")),f=h.replace(m,f),p.preserveCase){f=f.split("");for(var v=Math.min(h.length,h.length);v--;){var A=h[v];A&&A.toLowerCase()!=A?f[v]=f[v].toUpperCase():f[v]=f[v].toLowerCase()}f=f.join("")}return f}},d.prototype.$assembleRegExp=function(h,f){if(h.needle instanceof RegExp)return h.re=h.needle;var p=h.needle;if(!h.needle)return h.re=!1;h.regExp||(p=o.escapeRegExp(p));var m=h.caseSensitive?"gm":"gmi";try{new RegExp(p,"u"),h.$supportsUnicodeFlag=!0,m+="u"}catch{h.$supportsUnicodeFlag=!1}if(h.wholeWord&&(p=u(p,h)),h.$isMultiLine=!f&&/[\n\r]/.test(p),h.$isMultiLine)return h.re=this.$assembleMultilineRegExp(p,m);try{var g=new RegExp(p,m)}catch{g=!1}return h.re=g},d.prototype.$assembleMultilineRegExp=function(h,f){for(var p=h.replace(/\r\n|\r|\n/g,`$
^`).split(`
`),m=[],g=0;g<p.length;g++)try{m.push(new RegExp(p[g],f))}catch{return!1}return m},d.prototype.$matchIterator=function(h,f){var p=this.$assembleRegExp(f);if(!p)return!1;var m=f.backwards==!0,g=f.skipCurrent!=!1,v=p.unicode,A=f.range,y=f.start;y||(y=A?A[m?"end":"start"]:h.selection.getRange()),y.start&&(y=y[g!=m?"end":"start"]);var S=A?A.start.row:0,x=A?A.end.row:h.getLength()-1;if(m)var w=function(R){var k=y.row;if(!C(k,y.column,R)){for(k--;k>=S;k--)if(C(k,Number.MAX_VALUE,R))return;if(f.wrap!=!1){for(k=x,S=y.row;k>=S;k--)if(C(k,Number.MAX_VALUE,R))return}}};else var w=function(k){var P=y.row;if(!C(P,y.column,k)){for(P=P+1;P<=x;P++)if(C(P,0,k))return;if(f.wrap!=!1){for(P=S,x=y.row;P<=x;P++)if(C(P,0,k))return}}};if(f.$isMultiLine)var _=p.length,C=function(R,k,P){var N=m?R-_+1:R;if(!(N<0||N+_>h.getLength())){var L=h.getLine(N),I=L.search(p[0]);if(!(!m&&I<k||I===-1)){for(var b=1;b<_;b++)if(L=h.getLine(N+b),L.search(p[b])==-1)return;var T=L.match(p[_-1])[0].length;if(!(m&&T>k)&&P(N,I,N+_-1,T))return!0}}};else if(m)var C=function(k,P,N){var L=h.getLine(k),I=[],b,T=0;for(p.lastIndex=0;b=p.exec(L);){var M=b[0].length;if(T=b.index,!M){if(T>=L.length)break;p.lastIndex=T+=o.skipEmptyMatch(L,T,v)}if(b.index+M>P)break;I.push(b.index,M)}for(var D=I.length-1;D>=0;D-=2){var B=I[D-1],M=I[D];if(N(k,B,k,B+M))return!0}};else var C=function(k,P,N){var L=h.getLine(k),I,b;for(p.lastIndex=P;b=p.exec(L);){var T=b[0].length;if(I=b.index,N(k,I,k,I+T))return!0;if(!T&&(p.lastIndex=I+=o.skipEmptyMatch(L,I,v),I>=L.length))return!1}};return{forEach:w}},d}();function u(d,h){var f=o.supportsLookbehind();function p(A,y){y===void 0&&(y=!0);var S=f&&h.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return S.test(A)||h.regExp?f&&h.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var m=Array.from(d),g=m[0],v=m[m.length-1];return p(g)+d+p(v,!1)}r.Search=c}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,a){var o=this&&this.__extends||function(){var f=function(p,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(g[A]=v[A])},f(p,m)};return function(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");f(p,m);function g(){this.constructor=p}p.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}}(),s=n("../lib/keys"),l=n("../lib/useragent"),c=s.KEY_MODS,u=function(){function f(p,m){this.$init(p,m,!1)}return f.prototype.$init=function(p,m,g){this.platform=m||(l.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(p),this.$singleCommand=g},f.prototype.addCommand=function(p){this.commands[p.name]&&this.removeCommand(p),this.commands[p.name]=p,p.bindKey&&this._buildKeyHash(p)},f.prototype.removeCommand=function(p,m){var g=p&&(typeof p=="string"?p:p.name);p=this.commands[g],m||delete this.commands[g];var v=this.commandKeyBinding;for(var A in v){var y=v[A];if(y==p)delete v[A];else if(Array.isArray(y)){var S=y.indexOf(p);S!=-1&&(y.splice(S,1),y.length==1&&(v[A]=y[0]))}}},f.prototype.bindKey=function(p,m,g){if(typeof p=="object"&&p&&(g==null&&(g=p.position),p=p[this.platform]),!!p){if(typeof m=="function")return this.addCommand({exec:m,bindKey:p,name:m.name||p});p.split("|").forEach(function(v){var A="";if(v.indexOf(" ")!=-1){var y=v.split(/\s+/);v=y.pop(),y.forEach(function(w){var _=this.parseKeys(w),C=c[_.hashId]+_.key;A+=(A?" ":"")+C,this._addCommandToBinding(A,"chainKeys")},this),A+=" "}var S=this.parseKeys(v),x=c[S.hashId]+S.key;this._addCommandToBinding(A+x,m,g)},this)}},f.prototype._addCommandToBinding=function(p,m,g){var v=this.commandKeyBinding,A;if(!m)delete v[p];else if(!v[p]||this.$singleCommand)v[p]=m;else{Array.isArray(v[p])?(A=v[p].indexOf(m))!=-1&&v[p].splice(A,1):v[p]=[v[p]],typeof g!="number"&&(g=d(m));var y=v[p];for(A=0;A<y.length;A++){var S=y[A],x=d(S);if(x>g)break}y.splice(A,0,m)}},f.prototype.addCommands=function(p){p&&Object.keys(p).forEach(function(m){var g=p[m];if(g){if(typeof g=="string")return this.bindKey(g,m);typeof g=="function"&&(g={exec:g}),typeof g=="object"&&(g.name||(g.name=m),this.addCommand(g))}},this)},f.prototype.removeCommands=function(p){Object.keys(p).forEach(function(m){this.removeCommand(p[m])},this)},f.prototype.bindKeys=function(p){Object.keys(p).forEach(function(m){this.bindKey(m,p[m])},this)},f.prototype._buildKeyHash=function(p){this.bindKey(p.bindKey,p)},f.prototype.parseKeys=function(p){var m=p.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(x){return x}),g=m.pop(),v=s[g];if(s.FUNCTION_KEYS[v])g=s.FUNCTION_KEYS[v].toLowerCase();else if(m.length){if(m.length==1&&m[0]=="shift")return{key:g.toUpperCase(),hashId:-1}}else return{key:g,hashId:-1};for(var A=0,y=m.length;y--;){var S=s.KEY_MODS[m[y]];if(S==null)return typeof console<"u"&&console.error("invalid modifier "+m[y]+" in "+p),!1;A|=S}return{key:g,hashId:A}},f.prototype.findKeyCommand=function(p,m){var g=c[p]+m;return this.commandKeyBinding[g]},f.prototype.handleKeyboard=function(p,m,g,v){if(!(v<0)){var A=c[m]+g,y=this.commandKeyBinding[A];return p.$keyChain&&(p.$keyChain+=" "+A,y=this.commandKeyBinding[p.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(p.$keyChain=p.$keyChain||A,{command:"null"}):(p.$keyChain&&((!m||m==4)&&g.length==1?p.$keyChain=p.$keyChain.slice(0,-A.length-1):(m==-1||v>0)&&(p.$keyChain="")),{command:y})}},f.prototype.getStatusText=function(p,m){return m.$keyChain||""},f}();function d(f){return typeof f=="object"&&f.bindKey&&f.bindKey.position||(f.isDefault?-100:0)}var h=function(f){o(p,f);function p(m,g){var v=f.call(this,m,g)||this;return v.$singleCommand=!0,v}return p}(u);h.call=function(f,p,m){u.prototype.$init.call(f,p,m,!0)},u.call=function(f,p,m){u.prototype.$init.call(f,p,m,!1)},r.HashHandler=h,r.MultiHashHandler=u}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,a){var o=this&&this.__extends||function(){var d=function(h,f){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(p[g]=m[g])},d(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");d(h,f);function p(){this.constructor=h}h.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),s=n("../lib/oop"),l=n("../keyboard/hash_handler").MultiHashHandler,c=n("../lib/event_emitter").EventEmitter,u=function(d){o(h,d);function h(f,p){var m=d.call(this,p,f)||this;return m.byName=m.commands,m.setDefaultHandler("exec",function(g){return g.args?g.command.exec(g.editor,g.args,g.event,!1):g.command.exec(g.editor,{},g.event,!0)}),m}return h.prototype.exec=function(f,p,m){if(Array.isArray(f)){for(var g=f.length;g--;)if(this.exec(f[g],p,m))return!0;return!1}if(typeof f=="string"&&(f=this.commands[f]),!f||p&&p.$readOnly&&!f.readOnly||this.$checkCommandState!=!1&&f.isAvailable&&!f.isAvailable(p))return!1;var v={editor:p,command:f,args:m};return v.returnValue=this._emit("exec",v),this._signal("afterExec",v),v.returnValue!==!1},h.prototype.toggleRecording=function(f){if(!this.$inReplay)return f&&f._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(p){this.macro.push([p.command,p.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},h.prototype.replay=function(f){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(f);try{this.$inReplay=!0,this.macro.forEach(function(p){typeof p=="string"?this.exec(p,f):this.exec(p[0],f,p[1])},this)}finally{this.$inReplay=!1}}},h.prototype.trimMacro=function(f){return f.map(function(p){return typeof p[0]!="string"&&(p[0]=p[0].name),p[1]||(p=p[0]),p})},h}(l);s.implement(u.prototype,c),r.CommandManager=u}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,a){var o=n("../lib/lang"),s=n("../config"),l=n("../range").Range;function c(d,h){return{win:d,mac:h}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:c("Ctrl-,","Command-,"),exec:function(d){s.loadModule("ace/ext/settings_menu",function(h){h.init(d),d.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:c("Alt-E","F4"),exec:function(d){s.loadModule("ace/ext/error_marker",function(h){h.showErrorMarker(d,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:c("Alt-Shift-E","Shift-F4"),exec:function(d){s.loadModule("ace/ext/error_marker",function(h){h.showErrorMarker(d,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:c("Ctrl-A","Command-A"),exec:function(d){d.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:c(null,"Ctrl-L"),exec:function(d){d.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:c("Ctrl-L","Command-L"),exec:function(d,h){typeof h=="number"&&!isNaN(h)&&d.gotoLine(h),d.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:c("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(d){d.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:c("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(d){d.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:c("F2","F2"),exec:function(d){d.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:c("Alt-F2","Alt-F2"),exec:function(d){d.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:c(null,"Ctrl-Command-Option-0"),exec:function(d){d.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:c(null,"Ctrl-Command-Option-0"),exec:function(d){d.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:c("Alt-0","Command-Option-0"),exec:function(d){d.session.foldAll(),d.session.unfold(d.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:c("Alt-Shift-0","Command-Option-Shift-0"),exec:function(d){d.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:c("Ctrl-K","Command-G"),exec:function(d){d.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:c("Ctrl-Shift-K","Command-Shift-G"),exec:function(d){d.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:c("Alt-K","Ctrl-G"),exec:function(d){d.selection.isEmpty()?d.selection.selectWord():d.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:c("Alt-Shift-K","Ctrl-Shift-G"),exec:function(d){d.selection.isEmpty()?d.selection.selectWord():d.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:c("Ctrl-F","Command-F"),exec:function(d){s.loadModule("ace/ext/searchbox",function(h){h.Search(d)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(d){d.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:c("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(d){d.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:c("Ctrl-Home","Command-Home|Command-Up"),exec:function(d){d.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:c("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(d){d.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:c("Up","Up|Ctrl-P"),exec:function(d,h){d.navigateUp(h.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:c("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(d){d.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:c("Ctrl-End","Command-End|Command-Down"),exec:function(d){d.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:c("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(d){d.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:c("Down","Down|Ctrl-N"),exec:function(d,h){d.navigateDown(h.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:c("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(d){d.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:c("Ctrl-Left","Option-Left"),exec:function(d){d.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:c("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(d){d.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:c("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(d){d.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:c("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(d){d.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:c("Left","Left|Ctrl-B"),exec:function(d,h){d.navigateLeft(h.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:c("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(d){d.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:c("Ctrl-Right","Option-Right"),exec:function(d){d.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:c("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(d){d.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:c("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(d){d.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:c("Shift-Right","Shift-Right"),exec:function(d){d.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:c("Right","Right|Ctrl-F"),exec:function(d,h){d.navigateRight(h.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(d){d.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:c(null,"Option-PageDown"),exec:function(d){d.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:c("PageDown","PageDown|Ctrl-V"),exec:function(d){d.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(d){d.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:c(null,"Option-PageUp"),exec:function(d){d.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(d){d.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:c("Ctrl-Up",null),exec:function(d){d.renderer.scrollBy(0,-2*d.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:c("Ctrl-Down",null),exec:function(d){d.renderer.scrollBy(0,2*d.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(d){d.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(d){d.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:c("Ctrl-Alt-E","Command-Option-E"),exec:function(d){d.commands.toggleRecording(d)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:c("Ctrl-Shift-E","Command-Shift-E"),exec:function(d){d.commands.replay(d)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:c("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(d){d.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:c("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(d){d.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:c("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(d){d.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:c(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(d){},readOnly:!0},{name:"cut",description:"Cut",exec:function(d){var h=d.$copyWithEmptySelection&&d.selection.isEmpty(),f=h?d.selection.getLineRange():d.selection.getRange();d._emit("cut",f),f.isEmpty()||d.session.remove(f),d.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(d,h){d.$handlePaste(h)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:c("Ctrl-D","Command-D"),exec:function(d){d.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:c("Ctrl-Shift-D","Command-Shift-D"),exec:function(d){d.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:c("Ctrl-Alt-S","Command-Alt-S"),exec:function(d){d.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:c("Ctrl-/","Command-/"),exec:function(d){d.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:c("Ctrl-Shift-/","Command-Shift-/"),exec:function(d){d.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:c("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(d){d.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:c("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(d){d.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:c("Ctrl-H","Command-Option-F"),exec:function(d){s.loadModule("ace/ext/searchbox",function(h){h.Search(d,!0)})}},{name:"undo",description:"Undo",bindKey:c("Ctrl-Z","Command-Z"),exec:function(d){d.undo()}},{name:"redo",description:"Redo",bindKey:c("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(d){d.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:c("Alt-Shift-Up","Command-Option-Up"),exec:function(d){d.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:c("Alt-Up","Option-Up"),exec:function(d){d.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:c("Alt-Shift-Down","Command-Option-Down"),exec:function(d){d.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:c("Alt-Down","Option-Down"),exec:function(d){d.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:c("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(d){d.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:c("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(d){d.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:c("Shift-Delete",null),exec:function(d){if(d.selection.isEmpty())d.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:c("Alt-Backspace","Command-Backspace"),exec:function(d){d.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:c("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(d){d.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:c("Ctrl-Shift-Backspace",null),exec:function(d){var h=d.selection.getRange();h.start.column=0,d.session.remove(h)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:c("Ctrl-Shift-Delete",null),exec:function(d){var h=d.selection.getRange();h.end.column=Number.MAX_VALUE,d.session.remove(h)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:c("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(d){d.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:c("Ctrl-Delete","Alt-Delete"),exec:function(d){d.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:c("Shift-Tab","Shift-Tab"),exec:function(d){d.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:c("Tab","Tab"),exec:function(d){d.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:c("Ctrl-[","Ctrl-["),exec:function(d){d.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:c("Ctrl-]","Ctrl-]"),exec:function(d){d.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(d,h){d.insert(h)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(d,h){d.insert(o.stringRepeat(h.text||"",h.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:c(null,"Ctrl-O"),exec:function(d){d.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:c("Alt-Shift-X","Ctrl-T"),exec:function(d){d.transposeLetters()},multiSelectAction:function(d){d.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:c("Ctrl-U","Ctrl-U"),exec:function(d){d.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:c("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(d){d.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:c(null,null),exec:function(d){d.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:c("Ctrl-Shift-L","Command-Shift-L"),exec:function(d){var h=d.selection.getRange();h.start.column=h.end.column=0,h.end.row++,d.selection.setRange(h,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:c("Ctrl+F3","F3"),exec:function(d){d.openLink()}},{name:"joinlines",description:"Join lines",bindKey:c(null,null),exec:function(d){for(var h=d.selection.isBackwards(),f=h?d.selection.getSelectionLead():d.selection.getSelectionAnchor(),p=h?d.selection.getSelectionAnchor():d.selection.getSelectionLead(),m=d.session.doc.getLine(f.row).length,g=d.session.doc.getTextRange(d.selection.getRange()),v=g.replace(/\n\s*/," ").length,A=d.session.doc.getLine(f.row),y=f.row+1;y<=p.row+1;y++){var S=o.stringTrimLeft(o.stringTrimRight(d.session.doc.getLine(y)));S.length!==0&&(S=" "+S),A+=S}p.row+1<d.session.doc.getLength()-1&&(A+=d.session.doc.getNewLineCharacter()),d.clearSelection(),d.session.doc.replace(new l(f.row,0,p.row+2,0),A),v>0?(d.selection.moveCursorTo(f.row,f.column),d.selection.selectTo(f.row,f.column+v)):(m=d.session.doc.getLine(f.row).length>m?m+1:m,d.selection.moveCursorTo(f.row,m))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:c(null,null),exec:function(d){var h=d.session.doc.getLength()-1,f=d.session.doc.getLine(h).length,p=d.selection.rangeList.ranges,m=[];p.length<1&&(p=[d.selection.getRange()]);for(var g=0;g<p.length;g++)g==p.length-1&&(p[g].end.row===h&&p[g].end.column===f||m.push(new l(p[g].end.row,p[g].end.column,h,f))),g===0?p[g].start.row===0&&p[g].start.column===0||m.push(new l(0,0,p[g].start.row,p[g].start.column)):m.push(new l(p[g-1].end.row,p[g-1].end.column,p[g].start.row,p[g].start.column));d.exitMultiSelectMode(),d.clearSelection();for(var g=0;g<m.length;g++)d.selection.addRange(m[g],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(d){d.selection.clearSelection(),d.navigateLineEnd(),d.insert(`
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(d){d.selection.clearSelection();var h=d.getCursorPosition();d.selection.moveTo(h.row-1,Number.MAX_VALUE),d.insert(`
`),h.row===0&&d.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(d){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),d.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:c("F1","F1"),exec:function(d){d.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:c(null,null),exec:function(d){d.prompt({$type:"modes"})},readOnly:!0}];for(var u=1;u<9;u++)r.commands.push({name:"foldToLevel"+u,description:"Fold To Level "+u,level:u,exec:function(d){d.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,a){var o=n("./lib/dom"),s=function(){function l(c){this.session=c,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return l.prototype.getRowLength=function(c){var u;return this.lineWidgets?u=this.lineWidgets[c]&&this.lineWidgets[c].rowCount||0:u=0,!this.$useWrapMode||!this.$wrapData[c]?1+u:this.$wrapData[c].length+1+u},l.prototype.$getWidgetScreenLength=function(){var c=0;return this.lineWidgets.forEach(function(u){u&&u.rowCount&&!u.hidden&&(c+=u.rowCount)}),c},l.prototype.$onChangeEditor=function(c){this.attach(c.editor)},l.prototype.attach=function(c){c&&c.widgetManager&&c.widgetManager!=this&&c.widgetManager.detach(),this.editor!=c&&(this.detach(),this.editor=c,c&&(c.widgetManager=this,c.renderer.on("beforeRender",this.measureWidgets),c.renderer.on("afterRender",this.renderWidgets)))},l.prototype.detach=function(c){var u=this.editor;if(u){this.editor=null,u.widgetManager=null,u.renderer.off("beforeRender",this.measureWidgets),u.renderer.off("afterRender",this.renderWidgets);var d=this.session.lineWidgets;d&&d.forEach(function(h){h&&h.el&&h.el.parentNode&&(h._inDocument=!1,h.el.parentNode.removeChild(h.el))})}},l.prototype.updateOnFold=function(c,u){var d=u.lineWidgets;if(!(!d||!c.action)){for(var h=c.data,f=h.start.row,p=h.end.row,m=c.action=="add",g=f+1;g<p;g++)d[g]&&(d[g].hidden=m);d[p]&&(m?d[f]?d[p].hidden=m:d[f]=d[p]:(d[f]==d[p]&&(d[f]=void 0),d[p].hidden=m))}},l.prototype.updateOnChange=function(c){var u=this.session.lineWidgets;if(u){var d=c.start.row,h=c.end.row-d;if(h!==0)if(c.action=="remove"){var f=u.splice(d+1,h);!u[d]&&f[f.length-1]&&(u[d]=f.pop()),f.forEach(function(m){m&&this.removeLineWidget(m)},this),this.$updateRows()}else{var p=new Array(h);u[d]&&u[d].column!=null&&c.start.column>u[d].column&&d++,p.unshift(d,0),u.splice.apply(u,p),this.$updateRows()}}},l.prototype.$updateRows=function(){var c=this.session.lineWidgets;if(c){var u=!0;c.forEach(function(d,h){if(d)for(u=!1,d.row=h;d.$oldWidget;)d.$oldWidget.row=h,d=d.$oldWidget}),u&&(this.session.lineWidgets=null)}},l.prototype.$registerLineWidget=function(c){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var u=this.session.lineWidgets[c.row];return u&&(c.$oldWidget=u,u.el&&u.el.parentNode&&(u.el.parentNode.removeChild(u.el),u._inDocument=!1)),this.session.lineWidgets[c.row]=c,c},l.prototype.addLineWidget=function(c){if(this.$registerLineWidget(c),c.session=this.session,!this.editor)return c;var u=this.editor.renderer;c.html&&!c.el&&(c.el=o.createElement("div"),c.el.innerHTML=c.html),c.text&&!c.el&&(c.el=o.createElement("div"),c.el.textContent=c.text),c.el&&(o.addCssClass(c.el,"ace_lineWidgetContainer"),c.className&&o.addCssClass(c.el,c.className),c.el.style.position="absolute",c.el.style.zIndex="5",u.container.appendChild(c.el),c._inDocument=!0,c.coverGutter||(c.el.style.zIndex="3"),c.pixelHeight==null&&(c.pixelHeight=c.el.offsetHeight)),c.rowCount==null&&(c.rowCount=c.pixelHeight/u.layerConfig.lineHeight);var d=this.session.getFoldAt(c.row,0);if(c.$fold=d,d){var h=this.session.lineWidgets;c.row==d.end.row&&!h[d.start.row]?h[d.start.row]=c:c.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:c.row}}}),this.$updateRows(),this.renderWidgets(null,u),this.onWidgetChanged(c),c},l.prototype.removeLineWidget=function(c){if(c._inDocument=!1,c.session=null,c.el&&c.el.parentNode&&c.el.parentNode.removeChild(c.el),c.editor&&c.editor.destroy)try{c.editor.destroy()}catch{}if(this.session.lineWidgets){var u=this.session.lineWidgets[c.row];if(u==c)this.session.lineWidgets[c.row]=c.$oldWidget,c.$oldWidget&&this.onWidgetChanged(c.$oldWidget);else for(;u;){if(u.$oldWidget==c){u.$oldWidget=c.$oldWidget;break}u=u.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:c.row}}}),this.$updateRows()},l.prototype.getWidgetsAtRow=function(c){for(var u=this.session.lineWidgets,d=u&&u[c],h=[];d;)h.push(d),d=d.$oldWidget;return h},l.prototype.onWidgetChanged=function(c){this.session._changedWidgets.push(c),this.editor&&this.editor.renderer.updateFull()},l.prototype.measureWidgets=function(c,u){var d=this.session._changedWidgets,h=u.layerConfig;if(!(!d||!d.length)){for(var f=1/0,p=0;p<d.length;p++){var m=d[p];if(!(!m||!m.el)&&m.session==this.session){if(!m._inDocument){if(this.session.lineWidgets[m.row]!=m)continue;m._inDocument=!0,u.container.appendChild(m.el)}m.h=m.el.offsetHeight,m.fixedWidth||(m.w=m.el.offsetWidth,m.screenWidth=Math.ceil(m.w/h.characterWidth));var g=m.h/h.lineHeight;m.coverLine&&(g-=this.session.getRowLineCount(m.row),g<0&&(g=0)),m.rowCount!=g&&(m.rowCount=g,m.row<f&&(f=m.row))}}f!=1/0&&(this.session._emit("changeFold",{data:{start:{row:f}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},l.prototype.renderWidgets=function(c,u){var d=u.layerConfig,h=this.session.lineWidgets;if(h){for(var f=Math.min(this.firstRow,d.firstRow),p=Math.max(this.lastRow,d.lastRow,h.length);f>0&&!h[f];)f--;this.firstRow=d.firstRow,this.lastRow=d.lastRow,u.$cursorLayer.config=d;for(var m=f;m<=p;m++){var g=h[m];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,u.container.appendChild(g.el));var v=u.$cursorLayer.getPixelPosition({row:m,column:0},!0).top;g.coverLine||(v+=d.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=v-d.offset+"px";var A=g.coverGutter?0:u.gutterWidth;g.fixedWidth||(A-=u.scrollLeft),g.el.style.left=A+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=d.width+2*d.padding+"px"),g.fixedWidth?g.el.style.right=u.scrollBar.getWidth()+"px":g.el.style.right=""}}}},l}();r.LineWidgets=s}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,a){var o=n("../lib/keys"),s=n("../mouse/default_gutter_handler").GutterTooltip,l=function(){function u(d){this.editor=d,this.gutterLayer=d.renderer.$gutterLayer,this.element=d.renderer.$gutter,this.lines=d.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new s(this.editor)}return u.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},u.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},u.prototype.$onGutterKeyDown=function(d){if(this.annotationTooltip.isOpen){d.preventDefault(),d.keyCode===o.escape&&this.annotationTooltip.hideTooltip();return}if(d.target===this.element){if(d.keyCode!=o.enter)return;d.preventDefault();var h=this.editor.getCursorPosition().row;this.editor.isRowVisible(h)||this.editor.scrollToLine(h,!0,!0),setTimeout((function(){var f=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),p=this.$findNearestFoldWidget(f),m=this.$findNearestAnnotation(f);if(!(p===null&&m===null)){if(p===null&&m!==null){this.activeRowIndex=m,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(p!==null&&m===null){this.activeRowIndex=p,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(m-f)<Math.abs(p-f)){this.activeRowIndex=m,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=p,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(d),setTimeout((function(){this.editor._signal("gutterkeydown",new c(d,this))}).bind(this),10)},u.prototype.$handleGutterKeyboardInteraction=function(d){if(d.keyCode===o.tab){d.preventDefault();return}if(d.keyCode===o.escape){d.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(d.keyCode===o.up){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(d.keyCode===o.down){switch(d.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(d.keyCode===o.left){d.preventDefault(),this.$switchLane("annotation");return}if(d.keyCode===o.right){d.preventDefault(),this.$switchLane("fold");return}if(d.keyCode===o.enter||d.keyCode===o.space){switch(d.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var h=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),d),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==h&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(h),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var f=this.lines.cells[this.activeRowIndex].element.childNodes[2],p=f.getBoundingClientRect(),m=this.annotationTooltip.getElement().style;m.left=p.right+"px",m.top=p.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},u.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},u.prototype.$isFoldWidgetVisible=function(d){var h=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),f=this.$getFoldWidget(d).style.display!=="none";return h&&f},u.prototype.$isAnnotationVisible=function(d){var h=this.editor.isRowFullyVisible(this.$rowIndexToRow(d)),f=this.$getAnnotation(d).style.display!=="none";return h&&f},u.prototype.$getFoldWidget=function(d){var h=this.lines.get(d),f=h.element;return f.childNodes[1]},u.prototype.$getAnnotation=function(d){var h=this.lines.get(d),f=h.element;return f.childNodes[2]},u.prototype.$findNearestFoldWidget=function(d){if(this.$isFoldWidgetVisible(d))return d;for(var h=0;d-h>0||d+h<this.lines.getLength()-1;){if(h++,d-h>=0&&this.$isFoldWidgetVisible(d-h))return d-h;if(d+h<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(d+h))return d+h}return null},u.prototype.$findNearestAnnotation=function(d){if(this.$isAnnotationVisible(d))return d;for(var h=0;d-h>0||d+h<this.lines.getLength()-1;){if(h++,d-h>=0&&this.$isAnnotationVisible(d-h))return d-h;if(d+h<=this.lines.getLength()-1&&this.$isAnnotationVisible(d+h))return d+h}return null},u.prototype.$focusFoldWidget=function(d){if(d!=null){var h=this.$getFoldWidget(d);h.classList.add(this.editor.renderer.keyboardFocusClassName),h.focus()}},u.prototype.$focusAnnotation=function(d){if(d!=null){var h=this.$getAnnotation(d);h.classList.add(this.editor.renderer.keyboardFocusClassName),h.focus()}},u.prototype.$blurFoldWidget=function(d){var h=this.$getFoldWidget(d);h.classList.remove(this.editor.renderer.keyboardFocusClassName),h.blur()},u.prototype.$blurAnnotation=function(d){var h=this.$getAnnotation(d);h.classList.remove(this.editor.renderer.keyboardFocusClassName),h.blur()},u.prototype.$moveFoldWidgetUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isFoldWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=d,this.$focusFoldWidget(this.activeRowIndex);return}},u.prototype.$moveFoldWidgetDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isFoldWidgetVisible(d)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=d,this.$focusFoldWidget(this.activeRowIndex);return}},u.prototype.$moveAnnotationUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},u.prototype.$moveAnnotationDown=function(){for(var d=this.activeRowIndex;d<this.lines.getLength()-1;)if(d++,this.$isAnnotationVisible(d)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusAnnotation(this.activeRowIndex);return}},u.prototype.$switchLane=function(d){switch(d){case"annotation":if(this.activeLane==="annotation")break;var h=this.$findNearestAnnotation(this.activeRowIndex);if(h==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=h,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var f=this.$findNearestFoldWidget(this.activeRowIndex);if(f==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=f,this.$focusFoldWidget(this.activeRowIndex);break}},u.prototype.$rowIndexToRow=function(d){var h=this.lines.get(d);return h?h.row:null},u.prototype.$rowToRowIndex=function(d){for(var h=0;h<this.lines.getLength();h++){var f=this.lines.get(h);if(f.row==d)return h}return null},u}();r.GutterKeyboardHandler=l;var c=function(){function u(d,h){this.gutterKeyboardHandler=h,this.domEvent=d}return u.prototype.getKey=function(){return o.keyCodeToString(this.domEvent.keyCode)},u.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},u.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},u.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},u}();r.GutterKeyboardEvent=c}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(n,r,a){var o=this&&this.__values||function(I){var b=typeof Symbol=="function"&&Symbol.iterator,T=b&&I[b],M=0;if(T)return T.call(I);if(I&&typeof I.length=="number")return{next:function(){return I&&M>=I.length&&(I=void 0),{value:I&&I[M++],done:!I}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},s=n("./lib/oop"),l=n("./lib/dom"),c=n("./lib/lang"),u=n("./lib/useragent"),d=n("./keyboard/textinput").TextInput,h=n("./mouse/mouse_handler").MouseHandler,f=n("./mouse/fold_handler").FoldHandler,p=n("./keyboard/keybinding").KeyBinding,m=n("./edit_session").EditSession,g=n("./search").Search,v=n("./range").Range,A=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,S=n("./commands/default_commands").commands,x=n("./config"),w=n("./token_iterator").TokenIterator,_=n("./line_widgets").LineWidgets,C=n("./keyboard/gutter_handler").GutterKeyboardHandler,R=n("./config").nls,k=n("./clipboard"),P=n("./lib/keys"),N=function(){function I(b,T,M){this.session,this.$toDestroy=[];var D=b.getContainerElement();this.container=D,this.renderer=b,this.id="editor"+ ++I.$uid,this.commands=new y(u.isMac?"mac":"win",S),typeof document=="object"&&(this.textInput=new d(b.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new h(this),new f(this)),this.keyBinding=new p(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=c.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(B,j){j._$emitInputEvent.schedule(31)}),this.setSession(T||M&&M.session||new m("")),x.resetOptions(this),M&&this.setOptions(M),x._signal("editor",this)}return I.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=c.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},I.prototype.startOperation=function(b){if(this.curOp){if(!b||this.curOp.command)return;this.prevOp=this.curOp}b||(this.previousCommand=null,b={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:b.command||{},args:b.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},I.prototype.endOperation=function(b){if(this.curOp&&this.session){if(b&&b.returnValue===!1||!this.session)return this.curOp=null;if(b==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var T=this.curOp.command,M=T&&T.scrollIntoView;if(M){switch(M){case"center-animate":M="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var D=this.selection.getRange(),B=this.renderer.layerConfig;(D.start.row>=B.lastRow||D.end.row<=B.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}M=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var j=this.selection.toJSON();this.curOp.selectionAfter=j,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(j),this.prevOp=this.curOp,this.curOp=null}},I.prototype.$historyTracker=function(b){if(this.$mergeUndoDeltas){var T=this.prevOp,M=this.$mergeableCommands,D=T.command&&b.command.name==T.command.name;if(b.command.name=="insertstring"){var B=b.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),D=D&&this.mergeNextCommand&&(!/\s/.test(B)||/\s/.test(T.args)),this.mergeNextCommand=!0}else D=D&&M.indexOf(b.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(D=!1),D?this.session.mergeUndoDeltas=!0:M.indexOf(b.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},I.prototype.setKeyboardHandler=function(b,T){if(b&&typeof b=="string"&&b!="ace"){this.$keybindingId=b;var M=this;x.loadModule(["keybinding",b],function(D){M.$keybindingId==b&&M.keyBinding.setKeyboardHandler(D&&D.handler),T&&T()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(b),T&&T()},I.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},I.prototype.setSession=function(b){if(this.session!=b){this.curOp&&this.endOperation(),this.curOp={};var T=this.session;if(T){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var M=this.session.getSelection();M.off("changeCursor",this.$onCursorChange),M.off("changeSelection",this.$onSelectionChange)}this.session=b,b?(this.$onDocumentChange=this.onDocumentChange.bind(this),b.on("change",this.$onDocumentChange),this.renderer.setSession(b),this.$onChangeMode=this.onChangeMode.bind(this),b.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),b.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),b.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),b.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),b.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),b.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=b.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(b)),this._signal("changeSession",{session:b,oldSession:T}),this.curOp=null,T&&T._signal("changeEditor",{oldEditor:this}),b&&b._signal("changeEditor",{editor:this}),b&&!b.destroyed&&b.bgTokenizer.scheduleStart()}},I.prototype.getSession=function(){return this.session},I.prototype.setValue=function(b,T){return this.session.doc.setValue(b),T?T==1?this.navigateFileEnd():T==-1&&this.navigateFileStart():this.selectAll(),b},I.prototype.getValue=function(){return this.session.getValue()},I.prototype.getSelection=function(){return this.selection},I.prototype.resize=function(b){this.renderer.onResize(b)},I.prototype.setTheme=function(b,T){this.renderer.setTheme(b,T)},I.prototype.getTheme=function(){return this.renderer.getTheme()},I.prototype.setStyle=function(b){this.renderer.setStyle(b)},I.prototype.unsetStyle=function(b){this.renderer.unsetStyle(b)},I.prototype.getFontSize=function(){return this.getOption("fontSize")||l.computedStyle(this.container).fontSize},I.prototype.setFontSize=function(b){this.setOption("fontSize",b)},I.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var b=this;this.$highlightPending=!0,setTimeout(function(){b.$highlightPending=!1;var T=b.session;if(!(!T||T.destroyed)){T.$bracketHighlight&&(T.$bracketHighlight.markerIds.forEach(function(Z){T.removeMarker(Z)}),T.$bracketHighlight=null);var M=b.getCursorPosition(),D=b.getKeyboardHandler(),B=D&&D.$getDirectionForHighlight&&D.$getDirectionForHighlight(b),j=T.getMatchingBracketRanges(M,B);if(!j){var H=new w(T,M.row,M.column),U=H.getCurrentToken();if(U&&/\b(?:tag-open|tag-name)/.test(U.type)){var $=T.getMatchingTags(M);$&&(j=[$.openTagName.isEmpty()?$.openTag:$.openTagName,$.closeTagName.isEmpty()?$.closeTag:$.closeTagName])}}if(!j&&T.$mode.getMatching&&(j=T.$mode.getMatching(b.session)),!j){b.getHighlightIndentGuides()&&b.renderer.$textLayer.$highlightIndentGuide();return}var z="ace_bracket";Array.isArray(j)?j.length==1&&(z="ace_error_bracket"):j=[j],j.length==2&&(v.comparePoints(j[0].end,j[1].start)==0?j=[v.fromPoints(j[0].start,j[1].end)]:v.comparePoints(j[0].start,j[1].end)==0&&(j=[v.fromPoints(j[1].start,j[0].end)])),T.$bracketHighlight={ranges:j,markerIds:j.map(function(Z){return T.addMarker(Z,z,"text")})},b.getHighlightIndentGuides()&&b.renderer.$textLayer.$highlightIndentGuide()}},50)}},I.prototype.focus=function(){this.textInput.focus()},I.prototype.isFocused=function(){return this.textInput.isFocused()},I.prototype.blur=function(){this.textInput.blur()},I.prototype.onFocus=function(b){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",b))},I.prototype.onBlur=function(b){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",b))},I.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},I.prototype.onDocumentChange=function(b){var T=this.session.$useWrapMode,M=b.start.row==b.end.row?b.end.row:1/0;this.renderer.updateLines(b.start.row,M,T),this._signal("change",b),this.$cursorChange()},I.prototype.onTokenizerUpdate=function(b){var T=b.data;this.renderer.updateLines(T.first,T.last)},I.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},I.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},I.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},I.prototype.$updateHighlightActiveLine=function(){var b=this.getSession(),T;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(T=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(T=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(T=!1)),b.$highlightLineMarker&&!T)b.removeMarker(b.$highlightLineMarker.id),b.$highlightLineMarker=null;else if(!b.$highlightLineMarker&&T){var M=new v(T.row,T.column,T.row,1/0);M.id=b.addMarker(M,"ace_active-line","screenLine"),b.$highlightLineMarker=M}else T&&(b.$highlightLineMarker.start.row=T.row,b.$highlightLineMarker.end.row=T.row,b.$highlightLineMarker.start.column=T.column,b._signal("changeBackMarker"))},I.prototype.onSelectionChange=function(b){var T=this.session;if(T.$selectionMarker&&T.removeMarker(T.$selectionMarker),T.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var M=this.selection.getRange(),D=this.getSelectionStyle();T.$selectionMarker=T.addMarker(M,"ace_selection",D)}var B=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(B),this._signal("changeSelection")},I.prototype.$getSelectionHighLightRegexp=function(){var b=this.session,T=this.getSelectionRange();if(!(T.isEmpty()||T.isMultiLine())){var M=T.start.column,D=T.end.column,B=b.getLine(T.start.row),j=B.substring(M,D);if(!(j.length>5e3||!/[\w\d]/.test(j))){var H=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:j}),U=B.substring(M-1,D+1);if(H.test(U))return H}}},I.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},I.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},I.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},I.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},I.prototype.onChangeMode=function(b){this.renderer.updateText(),this._emit("changeMode",b)},I.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},I.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},I.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},I.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},I.prototype.getCopyText=function(){var b=this.getSelectedText(),T=this.session.doc.getNewLineCharacter(),M=!1;if(!b&&this.$copyWithEmptySelection){M=!0;for(var D=this.selection.getAllRanges(),B=0;B<D.length;B++){var j=D[B];B&&D[B-1].start.row==j.start.row||(b+=this.session.getLine(j.start.row)+T)}}var H={text:b};return this._signal("copy",H),k.lineMode=M?H.text:!1,H.text},I.prototype.onCopy=function(){this.commands.exec("copy",this)},I.prototype.onCut=function(){this.commands.exec("cut",this)},I.prototype.onPaste=function(b,T){var M={text:b,event:T};this.commands.exec("paste",this,M)},I.prototype.$handlePaste=function(b){typeof b=="string"&&(b={text:b}),this._signal("paste",b);var T=b.text,M=T===k.lineMode,D=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)M?D.insert({row:this.selection.lead.row,column:0},T):this.insert(T);else if(M)this.selection.rangeList.ranges.forEach(function(z){D.insert({row:z.start.row,column:0},T)});else{var B=T.split(/\r\n|\r|\n/),j=this.selection.rangeList.ranges,H=B.length==2&&(!B[0]||!B[1]);if(B.length!=j.length||H)return this.commands.exec("insertstring",this,T);for(var U=j.length;U--;){var $=j[U];$.isEmpty()||D.remove($),D.insert($.start,B[U])}}},I.prototype.execCommand=function(b,T){return this.commands.exec(b,this,T)},I.prototype.insert=function(b,T){var M=this.session,D=M.getMode(),B=this.getCursorPosition();if(this.getBehavioursEnabled()&&!T){var j=D.transformAction(M.getState(B.row),"insertion",this,M,b);j&&(b!==j.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),b=j.text)}if(b=="	"&&(b=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&b.indexOf(`
`)==-1){var H=v.fromPoints(B,B);H.end.column+=b.length,this.session.remove(H)}}else{var H=this.getSelectionRange();B=this.session.remove(H),this.clearSelection()}if(b==`
`||b==`\r
`){var Z=M.getLine(B.row);if(B.column>Z.search(/\S|$/)){var U=Z.substr(B.column).search(/\S|$/);M.doc.removeInLine(B.row,B.column,B.column+U)}}this.clearSelection();var $=B.column,z=M.getState(B.row),Z=M.getLine(B.row),K=D.checkOutdent(z,Z,b);if(M.insert(B,b),j&&j.selection&&(j.selection.length==2?this.selection.setSelectionRange(new v(B.row,$+j.selection[0],B.row,$+j.selection[1])):this.selection.setSelectionRange(new v(B.row+j.selection[0],j.selection[1],B.row+j.selection[2],j.selection[3]))),this.$enableAutoIndent){if(M.getDocument().isNewLine(b)){var Q=D.getNextLineIndent(z,Z.slice(0,B.column),M.getTabString());M.insert({row:B.row+1,column:0},Q)}K&&D.autoOutdent(z,M,B.row)}},I.prototype.autoIndent=function(){for(var b=this.session,T=b.getMode(),M=this.selection.isEmpty()?[new v(0,0,b.doc.getLength()-1,0)]:this.selection.getAllRanges(),D="",B="",j="",H=b.getTabString(),U=0;U<M.length;U++)for(var $=M[U].start.row,z=M[U].end.row,Z=$;Z<=z;Z++){Z>0&&(D=b.getState(Z-1),B=b.getLine(Z-1),j=T.getNextLineIndent(D,B,H));var K=b.getLine(Z),Q=T.$getIndent(K);if(j!==Q){if(Q.length>0){var ee=new v(Z,0,Z,Q.length);b.remove(ee)}j.length>0&&b.insert({row:Z,column:0},j)}T.autoOutdent(D,b,Z)}},I.prototype.onTextInput=function(b,T){if(!T)return this.keyBinding.onTextInput(b);this.startOperation({command:{name:"insertstring"}});var M=this.applyComposition.bind(this,b,T);this.selection.rangeCount?this.forEachSelection(M):M(),this.endOperation()},I.prototype.applyComposition=function(b,T){if(T.extendLeft||T.extendRight){var M=this.selection.getRange();M.start.column-=T.extendLeft,M.end.column+=T.extendRight,M.start.column<0&&(M.start.row--,M.start.column+=this.session.getLine(M.start.row).length+1),this.selection.setRange(M),!b&&!M.isEmpty()&&this.remove()}if((b||!this.selection.isEmpty())&&this.insert(b,!0),T.restoreStart||T.restoreEnd){var M=this.selection.getRange();M.start.column-=T.restoreStart,M.end.column-=T.restoreEnd,this.selection.setRange(M)}},I.prototype.onCommandKey=function(b,T,M){return this.keyBinding.onCommandKey(b,T,M)},I.prototype.setOverwrite=function(b){this.session.setOverwrite(b)},I.prototype.getOverwrite=function(){return this.session.getOverwrite()},I.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},I.prototype.setScrollSpeed=function(b){this.setOption("scrollSpeed",b)},I.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},I.prototype.setDragDelay=function(b){this.setOption("dragDelay",b)},I.prototype.getDragDelay=function(){return this.getOption("dragDelay")},I.prototype.setSelectionStyle=function(b){this.setOption("selectionStyle",b)},I.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},I.prototype.setHighlightActiveLine=function(b){this.setOption("highlightActiveLine",b)},I.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},I.prototype.setHighlightGutterLine=function(b){this.setOption("highlightGutterLine",b)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.setHighlightSelectedWord=function(b){this.setOption("highlightSelectedWord",b)},I.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},I.prototype.setAnimatedScroll=function(b){this.renderer.setAnimatedScroll(b)},I.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},I.prototype.setShowInvisibles=function(b){this.renderer.setShowInvisibles(b)},I.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},I.prototype.setDisplayIndentGuides=function(b){this.renderer.setDisplayIndentGuides(b)},I.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},I.prototype.setHighlightIndentGuides=function(b){this.renderer.setHighlightIndentGuides(b)},I.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},I.prototype.setShowPrintMargin=function(b){this.renderer.setShowPrintMargin(b)},I.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},I.prototype.setPrintMarginColumn=function(b){this.renderer.setPrintMarginColumn(b)},I.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},I.prototype.setReadOnly=function(b){this.setOption("readOnly",b)},I.prototype.getReadOnly=function(){return this.getOption("readOnly")},I.prototype.setBehavioursEnabled=function(b){this.setOption("behavioursEnabled",b)},I.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},I.prototype.setWrapBehavioursEnabled=function(b){this.setOption("wrapBehavioursEnabled",b)},I.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},I.prototype.setShowFoldWidgets=function(b){this.setOption("showFoldWidgets",b)},I.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},I.prototype.setFadeFoldWidgets=function(b){this.setOption("fadeFoldWidgets",b)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.remove=function(b){this.selection.isEmpty()&&(b=="left"?this.selection.selectLeft():this.selection.selectRight());var T=this.getSelectionRange();if(this.getBehavioursEnabled()){var M=this.session,D=M.getState(T.start.row),B=M.getMode().transformAction(D,"deletion",this,M,T);if(T.end.column===0){var j=M.getTextRange(T);if(j[j.length-1]==`
`){var H=M.getLine(T.end.row);/^\s+$/.test(H)&&(T.end.column=H.length)}}B&&(T=B)}this.session.remove(T),this.clearSelection()},I.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},I.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},I.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},I.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var b=this.getSelectionRange();b.start.column==b.end.column&&b.start.row==b.end.row&&(b.end.column=0,b.end.row++),this.session.remove(b),this.clearSelection()},I.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var b=this.getCursorPosition();this.insert(`
`),this.moveCursorToPosition(b)},I.prototype.setGhostText=function(b,T){this.session.widgetManager||(this.session.widgetManager=new _(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(b,T)},I.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},I.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var b=this.getCursorPosition(),T=b.column;if(T!==0){var M=this.session.getLine(b.row),D,B;T<M.length?(D=M.charAt(T)+M.charAt(T-1),B=new v(b.row,T-1,b.row,T+1)):(D=M.charAt(T-1)+M.charAt(T-2),B=new v(b.row,T-2,b.row,T)),this.session.replace(B,D),this.session.selection.moveToPosition(B.end)}}},I.prototype.toLowerCase=function(){var b=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var T=this.getSelectionRange(),M=this.session.getTextRange(T);this.session.replace(T,M.toLowerCase()),this.selection.setSelectionRange(b)},I.prototype.toUpperCase=function(){var b=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var T=this.getSelectionRange(),M=this.session.getTextRange(T);this.session.replace(T,M.toUpperCase()),this.selection.setSelectionRange(b)},I.prototype.indent=function(){var b=this.session,T=this.getSelectionRange();if(T.start.row<T.end.row){var M=this.$getSelectedRows();b.indentRows(M.first,M.last,"	");return}else if(T.start.column<T.end.column){var D=b.getTextRange(T);if(!/^\s+$/.test(D)){var M=this.$getSelectedRows();b.indentRows(M.first,M.last,"	");return}}var B=b.getLine(T.start.row),j=T.start,H=b.getTabSize(),U=b.documentToScreenColumn(j.row,j.column);if(this.session.getUseSoftTabs())var $=H-U%H,z=c.stringRepeat(" ",$);else{for(var $=U%H;B[T.start.column-1]==" "&&$;)T.start.column--,$--;this.selection.setSelectionRange(T),z="	"}return this.insert(z)},I.prototype.blockIndent=function(){var b=this.$getSelectedRows();this.session.indentRows(b.first,b.last,"	")},I.prototype.blockOutdent=function(){var b=this.session.getSelection();this.session.outdentRows(b.getRange())},I.prototype.sortLines=function(){for(var b=this.$getSelectedRows(),T=this.session,M=[],D=b.first;D<=b.last;D++)M.push(T.getLine(D));M.sort(function(H,U){return H.toLowerCase()<U.toLowerCase()?-1:H.toLowerCase()>U.toLowerCase()?1:0});for(var B=new v(0,0,0,0),D=b.first;D<=b.last;D++){var j=T.getLine(D);B.start.row=D,B.end.row=D,B.end.column=j.length,T.replace(B,M[D-b.first])}},I.prototype.toggleCommentLines=function(){var b=this.session.getState(this.getCursorPosition().row),T=this.$getSelectedRows();this.session.getMode().toggleCommentLines(b,this.session,T.first,T.last)},I.prototype.toggleBlockComment=function(){var b=this.getCursorPosition(),T=this.session.getState(b.row),M=this.getSelectionRange();this.session.getMode().toggleBlockComment(T,this.session,M,b)},I.prototype.getNumberAt=function(b,T){var M=/[\-]?[0-9]+(?:\.[0-9]+)?/g;M.lastIndex=0;for(var D=this.session.getLine(b);M.lastIndex<T;){var B=M.exec(D);if(B.index<=T&&B.index+B[0].length>=T){var j={value:B[0],start:B.index,end:B.index+B[0].length};return j}}return null},I.prototype.modifyNumber=function(b){var T=this.selection.getCursor().row,M=this.selection.getCursor().column,D=new v(T,M-1,T,M),B=this.session.getTextRange(D);if(!isNaN(parseFloat(B))&&isFinite(B)){var j=this.getNumberAt(T,M);if(j){var H=j.value.indexOf(".")>=0?j.start+j.value.indexOf(".")+1:j.end,U=j.start+j.value.length-H,$=parseFloat(j.value);$*=Math.pow(10,U),H!==j.end&&M<H?b*=Math.pow(10,j.end-M-1):b*=Math.pow(10,j.end-M),$+=b,$/=Math.pow(10,U);var z=$.toFixed(U),Z=new v(T,j.start,T,j.end);this.session.replace(Z,z),this.moveCursorTo(T,Math.max(j.start+1,M+z.length-j.value.length))}}else this.toggleWord()},I.prototype.toggleWord=function(){var b=this.selection.getCursor().row,T=this.selection.getCursor().column;this.selection.selectWord();var M=this.getSelectedText(),D=this.selection.getWordRange().start.column,B=M.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),j=T-D-1;j<0&&(j=0);var H=0,U=0,$=this;M.match(/[A-Za-z0-9_]+/)&&B.forEach(function(ne,ie){U=H+ne.length,j>=H&&j<=U&&(M=ne,$.selection.clearSelection(),$.moveCursorTo(b,H+D),$.selection.selectTo(b,U+D)),H=U});for(var z=this.$toggleWordPairs,Z,K=0;K<z.length;K++)for(var Q=z[K],ee=0;ee<=1;ee++){var X=+!ee,te=M.match(new RegExp("^\\s?_?("+c.escapeRegExp(Q[ee])+")\\s?$","i"));if(te){var J=M.match(new RegExp("([_]|^|\\s)("+c.escapeRegExp(te[1])+")($|\\s)","g"));J&&(Z=M.replace(new RegExp(c.escapeRegExp(Q[ee]),"i"),function(ne){var ie=Q[X];return ne.toUpperCase()==ne?ie=ie.toUpperCase():ne.charAt(0).toUpperCase()==ne.charAt(0)&&(ie=ie.substr(0,0)+Q[X].charAt(0).toUpperCase()+ie.substr(1)),ie}),this.insert(Z),Z="")}}},I.prototype.findLinkAt=function(b,T){var M,D,B=this.session.getLine(b),j=B.split(/((?:https?|ftp):\/\/[\S]+)/),H=T;H<0&&(H=0);var U=0,$=0,z;try{for(var Z=o(j),K=Z.next();!K.done;K=Z.next()){var Q=K.value;if($=U+Q.length,H>=U&&H<=$&&Q.match(/((?:https?|ftp):\/\/[\S]+)/)){z=Q.replace(/[\s:.,'";}\]]+$/,"");break}U=$}}catch(ee){M={error:ee}}finally{try{K&&!K.done&&(D=Z.return)&&D.call(Z)}finally{if(M)throw M.error}}return z},I.prototype.openLink=function(){var b=this.selection.getCursor(),T=this.findLinkAt(b.row,b.column);return T&&window.open(T,"_blank"),T!=null},I.prototype.removeLines=function(){var b=this.$getSelectedRows();this.session.removeFullLines(b.first,b.last),this.clearSelection()},I.prototype.duplicateSelection=function(){var b=this.selection,T=this.session,M=b.getRange(),D=b.isBackwards();if(M.isEmpty()){var B=M.start.row;T.duplicateLines(B,B)}else{var j=D?M.start:M.end,H=T.insert(j,T.getTextRange(M));M.start=j,M.end=H,b.setSelectionRange(M,D)}},I.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},I.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},I.prototype.moveText=function(b,T,M){return this.session.moveText(b,T,M)},I.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},I.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},I.prototype.$moveLines=function(b,T){var M,D,B=this.selection;if(!B.inMultiSelectMode||this.inVirtualSelectionMode){var j=B.toOrientedRange();M=this.$getSelectedRows(j),D=this.session.$moveLines(M.first,M.last,T?0:b),T&&b==-1&&(D=0),j.moveBy(D,0),B.fromOrientedRange(j)}else{var H=B.rangeList.ranges;B.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var U=0,$=0,z=H.length,Z=0;Z<z;Z++){var K=Z;H[Z].moveBy(U,0),M=this.$getSelectedRows(H[Z]);for(var Q=M.first,ee=M.last;++Z<z;){$&&H[Z].moveBy($,0);var X=this.$getSelectedRows(H[Z]);if(T&&X.first!=ee)break;if(!T&&X.first>ee+1)break;ee=X.last}for(Z--,U=this.session.$moveLines(Q,ee,T?0:b),T&&b==-1&&(K=Z+1);K<=Z;)H[K].moveBy(U,0),K++;T||(U=0),$+=U}B.fromOrientedRange(B.ranges[0]),B.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},I.prototype.$getSelectedRows=function(b){return b=(b||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(b.start.row),last:this.session.getRowFoldEnd(b.end.row)}},I.prototype.onCompositionStart=function(b){this.renderer.showComposition(b)},I.prototype.onCompositionUpdate=function(b){this.renderer.setCompositionText(b)},I.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},I.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},I.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},I.prototype.isRowVisible=function(b){return b>=this.getFirstVisibleRow()&&b<=this.getLastVisibleRow()},I.prototype.isRowFullyVisible=function(b){return b>=this.renderer.getFirstFullyVisibleRow()&&b<=this.renderer.getLastFullyVisibleRow()},I.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},I.prototype.$moveByPage=function(b,T){var M=this.renderer,D=this.renderer.layerConfig,B=b*Math.floor(D.height/D.lineHeight);T===!0?this.selection.$moveSelection(function(){this.moveCursorBy(B,0)}):T===!1&&(this.selection.moveCursorBy(B,0),this.selection.clearSelection());var j=M.scrollTop;M.scrollBy(0,B*D.lineHeight),T!=null&&M.scrollCursorIntoView(null,.5),M.animateScrolling(j)},I.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},I.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},I.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},I.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},I.prototype.scrollPageDown=function(){this.$moveByPage(1)},I.prototype.scrollPageUp=function(){this.$moveByPage(-1)},I.prototype.scrollToRow=function(b){this.renderer.scrollToRow(b)},I.prototype.scrollToLine=function(b,T,M,D){this.renderer.scrollToLine(b,T,M,D)},I.prototype.centerSelection=function(){var b=this.getSelectionRange(),T={row:Math.floor(b.start.row+(b.end.row-b.start.row)/2),column:Math.floor(b.start.column+(b.end.column-b.start.column)/2)};this.renderer.alignCursor(T,.5)},I.prototype.getCursorPosition=function(){return this.selection.getCursor()},I.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},I.prototype.getSelectionRange=function(){return this.selection.getRange()},I.prototype.selectAll=function(){this.selection.selectAll()},I.prototype.clearSelection=function(){this.selection.clearSelection()},I.prototype.moveCursorTo=function(b,T){this.selection.moveCursorTo(b,T)},I.prototype.moveCursorToPosition=function(b){this.selection.moveCursorToPosition(b)},I.prototype.jumpToMatching=function(b,T){var M=this.getCursorPosition(),D=new w(this.session,M.row,M.column),B=D.getCurrentToken(),j=0;B&&B.type.indexOf("tag-name")!==-1&&(B=D.stepBackward());var H=B||D.stepForward();if(H){var U,$=!1,z={},Z=M.column-H.start,K,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(H.value.match(/[{}()\[\]]/g)){for(;Z<H.value.length&&!$;Z++)if(Q[H.value[Z]])switch(K=Q[H.value[Z]]+"."+H.type.replace("rparen","lparen"),isNaN(z[K])&&(z[K]=0),H.value[Z]){case"(":case"[":case"{":z[K]++;break;case")":case"]":case"}":z[K]--,z[K]===-1&&(U="bracket",$=!0);break}}else H.type.indexOf("tag-name")!==-1&&(isNaN(z[H.value])&&(z[H.value]=0),B.value==="<"&&j>1?z[H.value]++:B.value==="</"&&z[H.value]--,z[H.value]===-1&&(U="tag",$=!0));$||(B=H,j++,H=D.stepForward(),Z=0)}while(H&&!$);if(U){var ee,X;if(U==="bracket")ee=this.session.getBracketRange(M),ee||(ee=new v(D.getCurrentTokenRow(),D.getCurrentTokenColumn()+Z-1,D.getCurrentTokenRow(),D.getCurrentTokenColumn()+Z-1),X=ee.start,(T||X.row===M.row&&Math.abs(X.column-M.column)<2)&&(ee=this.session.getBracketRange(X)));else if(U==="tag"){if(!H||H.type.indexOf("tag-name")===-1)return;if(ee=new v(D.getCurrentTokenRow(),D.getCurrentTokenColumn()-2,D.getCurrentTokenRow(),D.getCurrentTokenColumn()-2),ee.compare(M.row,M.column)===0){var te=this.session.getMatchingTags(M);te&&(te.openTag.contains(M.row,M.column)?(ee=te.closeTag,X=ee.start):(ee=te.openTag,te.closeTag.start.row===M.row&&te.closeTag.start.column===M.column?X=ee.end:X=ee.start))}X=X||ee.start}X=ee&&ee.cursor||X,X&&(b?ee&&T?this.selection.setRange(ee):ee&&ee.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(X.row,X.column):this.selection.moveTo(X.row,X.column))}}},I.prototype.gotoLine=function(b,T,M){this.selection.clearSelection(),this.session.unfold({row:b-1,column:T||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(b-1,T||0),this.isRowFullyVisible(b-1)||this.scrollToLine(b-1,!0,M)},I.prototype.navigateTo=function(b,T){this.selection.moveTo(b,T)},I.prototype.navigateUp=function(b){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var T=this.selection.anchor.getPosition();return this.moveCursorToPosition(T)}this.selection.clearSelection(),this.selection.moveCursorBy(-b||-1,0)},I.prototype.navigateDown=function(b){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var T=this.selection.anchor.getPosition();return this.moveCursorToPosition(T)}this.selection.clearSelection(),this.selection.moveCursorBy(b||1,0)},I.prototype.navigateLeft=function(b){if(this.selection.isEmpty())for(b=b||1;b--;)this.selection.moveCursorLeft();else{var T=this.getSelectionRange().start;this.moveCursorToPosition(T)}this.clearSelection()},I.prototype.navigateRight=function(b){if(this.selection.isEmpty())for(b=b||1;b--;)this.selection.moveCursorRight();else{var T=this.getSelectionRange().end;this.moveCursorToPosition(T)}this.clearSelection()},I.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},I.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},I.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},I.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},I.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},I.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},I.prototype.replace=function(b,T){T&&this.$search.set(T);var M=this.$search.find(this.session),D=0;return M&&(this.$tryReplace(M,b)&&(D=1),this.selection.setSelectionRange(M),this.renderer.scrollSelectionIntoView(M.start,M.end)),D},I.prototype.replaceAll=function(b,T){T&&this.$search.set(T);var M=this.$search.findAll(this.session),D=0;if(!M.length)return D;var B=this.getSelectionRange();this.selection.moveTo(0,0);for(var j=M.length-1;j>=0;--j)this.$tryReplace(M[j],b)&&D++;return this.selection.setSelectionRange(B),D},I.prototype.$tryReplace=function(b,T){var M=this.session.getTextRange(b);return T=this.$search.replace(M,T),T!==null?(b.end=this.session.replace(b,T),b):null},I.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},I.prototype.find=function(b,T,M){T||(T={}),typeof b=="string"||b instanceof RegExp?T.needle=b:typeof b=="object"&&s.mixin(T,b);var D=this.selection.getRange();T.needle==null&&(b=this.session.getTextRange(D)||this.$search.$options.needle,b||(D=this.session.getWordRange(D.start.row,D.start.column),b=this.session.getTextRange(D)),this.$search.set({needle:b})),this.$search.set(T),T.start||this.$search.set({start:D});var B=this.$search.find(this.session);if(T.preventScroll)return B;if(B)return this.revealRange(B,M),B;T.backwards?D.start=D.end:D.end=D.start,this.selection.setRange(D)},I.prototype.findNext=function(b,T){this.find({skipCurrent:!0,backwards:!1},b,T)},I.prototype.findPrevious=function(b,T){this.find(b,{skipCurrent:!0,backwards:!0},T)},I.prototype.revealRange=function(b,T){this.session.unfold(b),this.selection.setSelectionRange(b);var M=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(b.start,b.end,.5),T!==!1&&this.renderer.animateScrolling(M)},I.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},I.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},I.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(b){b.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},I.prototype.setAutoScrollEditorIntoView=function(b){if(b){var T,M=this,D=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var B=this.$scrollAnchor;B.style.cssText="position:absolute",this.container.insertBefore(B,this.container.firstChild);var j=this.on("changeSelection",function(){D=!0}),H=this.renderer.on("beforeRender",function(){D&&(T=M.renderer.container.getBoundingClientRect())}),U=this.renderer.on("afterRender",function(){if(D&&T&&(M.isFocused()||M.searchBox&&M.searchBox.isFocused())){var $=M.renderer,z=$.$cursorLayer.$pixelPos,Z=$.layerConfig,K=z.top-Z.offset;z.top>=0&&K+T.top<0?D=!0:z.top<Z.height&&z.top+T.top+Z.lineHeight>window.innerHeight?D=!1:D=null,D!=null&&(B.style.top=K+"px",B.style.left=z.left+"px",B.style.height=Z.lineHeight+"px",B.scrollIntoView(D)),D=T=null}});this.setAutoScrollEditorIntoView=function($){$||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",j),this.renderer.off("afterRender",U),this.renderer.off("beforeRender",H))}}},I.prototype.$resetCursorStyle=function(){var b=this.$cursorStyle||"ace",T=this.renderer.$cursorLayer;T&&(T.setSmoothBlinking(/smooth/.test(b)),T.isBlinking=!this.$readOnly&&b!="wide",l.setCssClass(T.element,"ace_slim-cursors",/slim/.test(b)))},I.prototype.prompt=function(b,T,M){var D=this;x.loadModule("ace/ext/prompt",function(B){B.prompt(D,b,T,M)})},I}();N.$uid=0,N.prototype.curOp=null,N.prototype.prevOp={},N.prototype.$mergeableCommands=["backspace","del","insertstring"],N.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],s.implement(N.prototype,A),x.defineOptions(N.prototype,"editor",{selectionStyle:{set:function(I){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:I})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(I){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(I){this.textInput.setReadOnly(I),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(I){this.textInput.setCopyWithEmptySelection(I)},initialValue:!1},cursorStyle:{set:function(I){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(I){this.setAutoScrollEditorIntoView(I)}},keyboardHandler:{set:function(I){this.setKeyboardHandler(I)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(I){this.session.setValue(I)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(I){this.setSession(I)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(I){this.renderer.$gutterLayer.setShowLineNumbers(I),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),I&&this.$relativeLineNumbers?L.attach(this):L.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(I){this.$showLineNumbers&&I?L.attach(this):L.detach(this)}},placeholder:{set:function(I){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var b=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(b&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),l.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!b&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),l.addCssClass(this.container,"ace_hasPlaceholder");var T=l.createElement("div");T.className="ace_placeholder",T.textContent=this.$placeholder||"",this.renderer.placeholderNode=T,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!b&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(I){var b={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(D){D.blur(),D.renderer.scroller.focus()},readOnly:!0},T=function(D){if(D.target==this.renderer.scroller&&D.keyCode===P.enter){D.preventDefault();var B=this.getCursorPosition().row;this.isRowVisible(B)||this.scrollToLine(B,!0,!0),this.focus()}},M;I?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(u.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",R("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",R("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",T.bind(this)),this.commands.addCommand(b),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",R("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",R("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),M||(M=new C(this)),M.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",T.bind(this)),this.commands.removeCommand(b),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),M&&M.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(I){this.$textInputAriaLabel=I},initialValue:""},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var L={getText:function(I,b){return(Math.abs(I.selection.lead.row-b)||b+1+(b<9?"·":""))+""},getWidth:function(I,b,T){return Math.max(b.toString().length,(T.lastRow+1).toString().length,2)*T.characterWidth},update:function(I,b){b.renderer.$loop.schedule(b.renderer.CHANGE_GUTTER)},attach:function(I){I.renderer.$gutterLayer.$renderer=this,I.on("changeSelection",this.update),this.update(null,I)},detach:function(I){I.renderer.$gutterLayer.$renderer==this&&(I.renderer.$gutterLayer.$renderer=null),I.off("changeSelection",this.update),this.update(null,I)}};r.Editor=N}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,a){var o=n("../lib/dom"),s=function(){function l(c,u){this.element=c,this.canvasHeight=u||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return l.prototype.moveContainer=function(c){o.translate(this.element,0,-(c.firstRowScreen*c.lineHeight%this.canvasHeight)-c.offset*this.$offsetCoefficient)},l.prototype.pageChanged=function(c,u){return Math.floor(c.firstRowScreen*c.lineHeight/this.canvasHeight)!==Math.floor(u.firstRowScreen*u.lineHeight/this.canvasHeight)},l.prototype.computeLineTop=function(c,u,d){var h=u.firstRowScreen*u.lineHeight,f=Math.floor(h/this.canvasHeight),p=d.documentToScreenRow(c,0)*u.lineHeight;return p-f*this.canvasHeight},l.prototype.computeLineHeight=function(c,u,d){return u.lineHeight*d.getRowLineCount(c)},l.prototype.getLength=function(){return this.cells.length},l.prototype.get=function(c){return this.cells[c]},l.prototype.shift=function(){this.$cacheCell(this.cells.shift())},l.prototype.pop=function(){this.$cacheCell(this.cells.pop())},l.prototype.push=function(c){if(Array.isArray(c)){this.cells.push.apply(this.cells,c);for(var u=o.createFragment(this.element),d=0;d<c.length;d++)u.appendChild(c[d].element);this.element.appendChild(u)}else this.cells.push(c),this.element.appendChild(c.element)},l.prototype.unshift=function(c){if(Array.isArray(c)){this.cells.unshift.apply(this.cells,c);for(var u=o.createFragment(this.element),d=0;d<c.length;d++)u.appendChild(c[d].element);this.element.firstChild?this.element.insertBefore(u,this.element.firstChild):this.element.appendChild(u)}else this.cells.unshift(c),this.element.insertAdjacentElement("afterbegin",c.element)},l.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},l.prototype.$cacheCell=function(c){c&&(c.element.remove(),this.cellCache.push(c))},l.prototype.createCell=function(c,u,d,h){var f=this.cellCache.pop();if(!f){var p=o.createElement("div");h&&h(p),this.element.appendChild(p),f={element:p,text:"",row:c}}return f.row=c,f},l}();r.Lines=s}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,r,a){var o=n("../lib/dom"),s=n("../lib/oop"),l=n("../lib/lang"),c=n("../lib/event_emitter").EventEmitter,u=n("./lines").Lines,d=n("../config").nls,h=function(){function p(m){this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",m.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new u(this.element),this.$lines.$offsetCoefficient=1}return p.prototype.setSession=function(m){this.session&&this.session.off("change",this.$updateAnnotations),this.session=m,m&&m.on("change",this.$updateAnnotations)},p.prototype.addGutterDecoration=function(m,g){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(m,g)},p.prototype.removeGutterDecoration=function(m,g){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(m,g)},p.prototype.setAnnotations=function(m){this.$annotations=[];for(var g=0;g<m.length;g++){var v=m[g],A=v.row,y=this.$annotations[A];y||(y=this.$annotations[A]={text:[],type:[]});var S=v.text,x=v.type;S=S?l.escapeHTML(S):v.html||"",y.text.indexOf(S)===-1&&(y.text.push(S),y.type.push(x));var w=v.className;w?y.className=w:x=="error"?y.className=" ace_error":x=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":x=="info"&&!y.className&&(y.className=" ace_info")}},p.prototype.$updateAnnotations=function(m){if(this.$annotations.length){var g=m.start.row,v=m.end.row-g;if(v!==0)if(m.action=="remove")this.$annotations.splice(g,v+1,null);else{var A=new Array(v+1);A.unshift(g,1),this.$annotations.splice.apply(this.$annotations,A)}}},p.prototype.update=function(m){this.config=m;var g=this.session,v=m.firstRow,A=Math.min(m.lastRow+m.gutterOffset,g.getLength()-1);this.oldLastRow=A,this.config=m,this.$lines.moveContainer(m),this.$updateCursorRow();for(var y=g.getNextFoldLine(v),S=y?y.start.row:1/0,x=null,w=-1,_=v;;){if(_>S&&(_=y.end.row+1,y=g.getNextFoldLine(_,y),S=y?y.start.row:1/0),_>A){for(;this.$lines.getLength()>w+1;)this.$lines.pop();break}x=this.$lines.get(++w),x?x.row=_:(x=this.$lines.createCell(_,m,this.session,f),this.$lines.push(x)),this.$renderCell(x,m,y,_),_++}this._signal("afterRender"),this.$updateGutterWidth(m)},p.prototype.$updateGutterWidth=function(m){var g=this.session,v=g.gutterRenderer||this.$renderer,A=g.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||g.$useWrapMode)&&(y=g.getLength()+A-1);var S=v?v.getWidth(g,y,m):y.toString().length*m.characterWidth,x=this.$padding||this.$computePadding();S+=x.left+x.right,S!==this.gutterWidth&&!isNaN(S)&&(this.gutterWidth=S,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",S))},p.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var m=this.session.selection.getCursor();this.$cursorRow!==m.row&&(this.$cursorRow=m.row)}},p.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var m=this.session.selection.cursor.row;if(this.$cursorRow=m,!(this.$cursorCell&&this.$cursorCell.row==m)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var g=this.$lines.cells;this.$cursorCell=null;for(var v=0;v<g.length;v++){var A=g[v];if(A.row>=this.$cursorRow){if(A.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(v>0&&y&&y.start.row==g[v-1].row)A=g[v-1];else break}A.element.className="ace_gutter-active-line "+A.element.className,this.$cursorCell=A;break}}}}},p.prototype.scrollLines=function(m){var g=this.config;if(this.config=m,this.$updateCursorRow(),this.$lines.pageChanged(g,m))return this.update(m);this.$lines.moveContainer(m);var v=Math.min(m.lastRow+m.gutterOffset,this.session.getLength()-1),A=this.oldLastRow;if(this.oldLastRow=v,!g||A<m.firstRow)return this.update(m);if(v<g.firstRow)return this.update(m);if(g.firstRow<m.firstRow)for(var y=this.session.getFoldedRowCount(g.firstRow,m.firstRow-1);y>0;y--)this.$lines.shift();if(A>v)for(var y=this.session.getFoldedRowCount(v+1,A);y>0;y--)this.$lines.pop();m.firstRow<g.firstRow&&this.$lines.unshift(this.$renderLines(m,m.firstRow,g.firstRow-1)),v>A&&this.$lines.push(this.$renderLines(m,A+1,v)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(m)},p.prototype.$renderLines=function(m,g,v){for(var A=[],y=g,S=this.session.getNextFoldLine(y),x=S?S.start.row:1/0;y>x&&(y=S.end.row+1,S=this.session.getNextFoldLine(y,S),x=S?S.start.row:1/0),!(y>v);){var w=this.$lines.createCell(y,m,this.session,f);this.$renderCell(w,m,S,y),A.push(w),y++}return A},p.prototype.$renderCell=function(m,g,v,A){var y=m.element,S=this.session,x=y.childNodes[0],w=y.childNodes[1],_=y.childNodes[2],C=_.firstChild,R=S.$firstLineNumber,k=S.$breakpoints,P=S.$decorations,N=S.gutterRenderer||this.$renderer,L=this.$showFoldWidgets&&S.foldWidgets,I=v?v.start.row:Number.MAX_VALUE,b=g.lineHeight+"px",T=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",M=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",D=(N?N.getText(S,A):A+R).toString();if(this.$highlightGutterLine&&(A==this.$cursorRow||v&&A<this.$cursorRow&&A>=I&&this.$cursorRow<=v.end.row)&&(T+="ace_gutter-active-line ",this.$cursorCell!=m&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=m)),k[A]&&(T+=k[A]),P[A]&&(T+=P[A]),this.$annotations[A]&&A!==I&&(T+=this.$annotations[A].className),L){var B=L[A];B==null&&(B=L[A]=S.getFoldWidget(A))}if(B){var j="ace_fold-widget ace_"+B,H=B=="start"&&A==I&&A<v.end.row;if(H){j+=" ace_closed";for(var U="",$=!1,z=A+1;z<=v.end.row;z++)if(this.$annotations[z]){if(this.$annotations[z].className===" ace_error"){$=!0,U=" ace_error_fold";break}if(this.$annotations[z].className===" ace_warning"){$=!0,U=" ace_warning_fold";continue}}T+=U}else j+=" ace_open";w.className!=j&&(w.className=j),o.setStyle(w.style,"height",b),o.setStyle(w.style,"display","inline-block"),w.setAttribute("role","button"),w.setAttribute("tabindex","-1");var Z=S.getFoldWidgetRange(A);Z?w.setAttribute("aria-label",d("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):v?w.setAttribute("aria-label",d("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[v.start.row+1,v.end.row+1])):w.setAttribute("aria-label",d("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[A+1])),H?(w.setAttribute("aria-expanded","false"),w.setAttribute("title",d("gutter.code-folding.closed.title","Unfold code"))):(w.setAttribute("aria-expanded","true"),w.setAttribute("title",d("gutter.code-folding.open.title","Fold code")))}else w&&(o.setStyle(w.style,"display","none"),w.setAttribute("tabindex","0"),w.removeAttribute("role"),w.removeAttribute("aria-label"));if($&&this.$showFoldedAnnotations){_.className="ace_gutter_annotation",C.className=M,C.className+=U,o.setStyle(C.style,"height",b),o.setStyle(_.style,"display","block"),o.setStyle(_.style,"height",b);var K;switch(U){case" ace_error_fold":K=d("gutter.annotation.aria-label.error","Read annotations row $0",[D]);break;case" ace_warning_fold":K=d("gutter.annotation.aria-label.warning","Read annotations row $0",[D]);break}_.setAttribute("aria-label",K),_.setAttribute("tabindex","-1"),_.setAttribute("role","button")}else if(this.$annotations[A]){_.className="ace_gutter_annotation",C.className=M,this.$useSvgGutterIcons?C.className+=this.$annotations[A].className:y.classList.add(this.$annotations[A].className.replace(" ","")),o.setStyle(C.style,"height",b),o.setStyle(_.style,"display","block"),o.setStyle(_.style,"height",b);var K;switch(this.$annotations[A].className){case" ace_error":K=d("gutter.annotation.aria-label.error","Read annotations row $0",[D]);break;case" ace_warning":K=d("gutter.annotation.aria-label.warning","Read annotations row $0",[D]);break;case" ace_info":K=d("gutter.annotation.aria-label.info","Read annotations row $0",[D]);break}_.setAttribute("aria-label",K),_.setAttribute("tabindex","-1"),_.setAttribute("role","button")}else o.setStyle(_.style,"display","none"),_.removeAttribute("aria-label"),_.removeAttribute("role"),_.setAttribute("tabindex","0");return D!==x.data&&(x.data=D),y.className!=T&&(y.className=T),o.setStyle(m.element.style,"height",this.$lines.computeLineHeight(A,g,S)+"px"),o.setStyle(m.element.style,"top",this.$lines.computeLineTop(A,g,S)+"px"),m.text=D,_.style.display==="none"&&w.style.display==="none"?m.element.setAttribute("aria-hidden",!0):m.element.setAttribute("aria-hidden",!1),m},p.prototype.setHighlightGutterLine=function(m){this.$highlightGutterLine=m},p.prototype.setShowLineNumbers=function(m){this.$renderer=!m&&{getWidth:function(){return 0},getText:function(){return""}}},p.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},p.prototype.setShowFoldWidgets=function(m){m?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=m,this.$padding=null},p.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},p.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var m=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(m.borderLeftWidth)||0)+(parseInt(m.paddingLeft)||0)+1,this.$padding.right=(parseInt(m.borderRightWidth)||0)+(parseInt(m.paddingRight)||0),this.$padding},p.prototype.getRegion=function(m){var g=this.$padding||this.$computePadding(),v=this.element.getBoundingClientRect();if(m.x<g.left+v.left)return"markers";if(this.$showFoldWidgets&&m.x>v.right-g.right)return"foldWidgets"},p}();h.prototype.$fixedWidth=!1,h.prototype.$highlightGutterLine=!0,h.prototype.$renderer="",h.prototype.$showLineNumbers=!0,h.prototype.$showFoldWidgets=!0,s.implement(h.prototype,c);function f(p){var m=document.createTextNode("");p.appendChild(m);var g=o.createElement("span");p.appendChild(g);var v=o.createElement("span");p.appendChild(v);var A=o.createElement("span");return v.appendChild(A),p}r.Gutter=h}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,a){var o=n("../range").Range,s=n("../lib/dom"),l=function(){function u(d){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",d.appendChild(this.element)}return u.prototype.setPadding=function(d){this.$padding=d},u.prototype.setSession=function(d){this.session=d},u.prototype.setMarkers=function(d){this.markers=d},u.prototype.elt=function(d,h){var f=this.i!=-1&&this.element.childNodes[this.i];f?this.i++:(f=document.createElement("div"),this.element.appendChild(f),this.i=-1),f.style.cssText=h,f.className=d},u.prototype.update=function(d){if(d){this.config=d,this.i=0;var h;for(var f in this.markers){var p=this.markers[f];if(!p.range){p.update(h,this,this.session,d);continue}var m=p.range.clipRows(d.firstRow,d.lastRow);if(!m.isEmpty())if(m=m.toScreenRange(this.session),p.renderer){var g=this.$getTop(m.start.row,d),v=this.$padding+m.start.column*d.characterWidth;p.renderer(h,m,v,g,d)}else p.type=="fullLine"?this.drawFullLineMarker(h,m,p.clazz,d):p.type=="screenLine"?this.drawScreenLineMarker(h,m,p.clazz,d):m.isMultiLine()?p.type=="text"?this.drawTextMarker(h,m,p.clazz,d):this.drawMultiLineMarker(h,m,p.clazz,d):this.drawSingleLineMarker(h,m,p.clazz+" ace_start ace_br15",d)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},u.prototype.$getTop=function(d,h){return(d-h.firstRowScreen)*h.lineHeight},u.prototype.drawTextMarker=function(d,h,f,p,m){for(var g=this.session,v=h.start.row,A=h.end.row,y=v,S=0,x=0,w=g.getScreenLastRowColumn(y),_=new o(y,h.start.column,y,x);y<=A;y++)_.start.row=_.end.row=y,_.start.column=y==v?h.start.column:g.getRowWrapIndent(y),_.end.column=w,S=x,x=w,w=y+1<A?g.getScreenLastRowColumn(y+1):y==A?0:h.end.column,this.drawSingleLineMarker(d,_,f+(y==v?" ace_start":"")+" ace_br"+c(y==v||y==v+1&&h.start.column,S<x,x>w,y==A),p,y==A?0:1,m)},u.prototype.drawMultiLineMarker=function(d,h,f,p,m){var g=this.$padding,v=p.lineHeight,A=this.$getTop(h.start.row,p),y=g+h.start.column*p.characterWidth;if(m=m||"",this.session.$bidiHandler.isBidiRow(h.start.row)){var S=h.clone();S.end.row=S.start.row,S.end.column=this.session.getLine(S.start.row).length,this.drawBidiSingleLineMarker(d,S,f+" ace_br1 ace_start",p,null,m)}else this.elt(f+" ace_br1 ace_start","height:"+v+"px;right:0;top:"+A+"px;left:"+y+"px;"+(m||""));if(this.session.$bidiHandler.isBidiRow(h.end.row)){var S=h.clone();S.start.row=S.end.row,S.start.column=0,this.drawBidiSingleLineMarker(d,S,f+" ace_br12",p,null,m)}else{A=this.$getTop(h.end.row,p);var x=h.end.column*p.characterWidth;this.elt(f+" ace_br12","height:"+v+"px;width:"+x+"px;top:"+A+"px;left:"+g+"px;"+(m||""))}if(v=(h.end.row-h.start.row-1)*p.lineHeight,!(v<=0)){A=this.$getTop(h.start.row+1,p);var w=(h.start.column?1:0)|(h.end.column?0:8);this.elt(f+(w?" ace_br"+w:""),"height:"+v+"px;right:0;top:"+A+"px;left:"+g+"px;"+(m||""))}},u.prototype.drawSingleLineMarker=function(d,h,f,p,m,g){if(this.session.$bidiHandler.isBidiRow(h.start.row))return this.drawBidiSingleLineMarker(d,h,f,p,m,g);var v=p.lineHeight,A=(h.end.column+(m||0)-h.start.column)*p.characterWidth,y=this.$getTop(h.start.row,p),S=this.$padding+h.start.column*p.characterWidth;this.elt(f,"height:"+v+"px;width:"+A+"px;top:"+y+"px;left:"+S+"px;"+(g||""))},u.prototype.drawBidiSingleLineMarker=function(d,h,f,p,m,g){var v=p.lineHeight,A=this.$getTop(h.start.row,p),y=this.$padding,S=this.session.$bidiHandler.getSelections(h.start.column,h.end.column);S.forEach(function(x){this.elt(f,"height:"+v+"px;width:"+(x.width+(m||0))+"px;top:"+A+"px;left:"+(y+x.left)+"px;"+(g||""))},this)},u.prototype.drawFullLineMarker=function(d,h,f,p,m){var g=this.$getTop(h.start.row,p),v=p.lineHeight;h.start.row!=h.end.row&&(v+=this.$getTop(h.end.row,p)-g),this.elt(f,"height:"+v+"px;top:"+g+"px;left:0;right:0;"+(m||""))},u.prototype.drawScreenLineMarker=function(d,h,f,p,m){var g=this.$getTop(h.start.row,p),v=p.lineHeight;this.elt(f,"height:"+v+"px;top:"+g+"px;left:0;right:0;"+(m||""))},u}();l.prototype.$padding=0;function c(u,d,h,f){return(u?1:0)|(d?2:0)|(h?4:0)|(f?8:0)}r.Marker=l}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,a){var o=new Set(["text","rparen","lparen"]);r.isTextToken=function(s){return o.has(s)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,a){var o=n("../lib/oop"),s=n("../lib/dom"),l=n("../lib/lang"),c=n("./lines").Lines,u=n("../lib/event_emitter").EventEmitter,d=n("../config").nls,h=n("./text_util").isTextToken,f=function(){function p(m){this.dom=s,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",m.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new c(this.element)}return p.prototype.$updateEolChar=function(){var m=this.session.doc,g=m.getNewLineCharacter()==`
`&&m.getNewLineMode()!="windows",v=g?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=v)return this.EOL_CHAR=v,!0},p.prototype.setPadding=function(m){this.$padding=m,this.element.style.margin="0 "+m+"px"},p.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},p.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},p.prototype.$setFontMetrics=function(m){this.$fontMetrics=m,this.$fontMetrics.on("changeCharacterSize",(function(g){this._signal("changeCharacterSize",g)}).bind(this)),this.$pollSizeChanges()},p.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},p.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},p.prototype.setSession=function(m){this.session=m,m&&this.$computeTabString()},p.prototype.setShowInvisibles=function(m){return this.showInvisibles==m?!1:(this.showInvisibles=m,typeof m=="string"?(this.showSpaces=/tab/i.test(m),this.showTabs=/space/i.test(m),this.showEOL=/eol/i.test(m)):this.showSpaces=this.showTabs=this.showEOL=m,this.$computeTabString(),!0)},p.prototype.setDisplayIndentGuides=function(m){return this.displayIndentGuides==m?!1:(this.displayIndentGuides=m,this.$computeTabString(),!0)},p.prototype.setHighlightIndentGuides=function(m){return this.$highlightIndentGuides===m?!1:(this.$highlightIndentGuides=m,m)},p.prototype.$computeTabString=function(){var m=this.session.getTabSize();this.tabSize=m;for(var g=this.$tabStrings=[0],v=1;v<m+1;v++)if(this.showTabs){var A=this.dom.createElement("span");A.className="ace_invisible ace_invisible_tab",A.textContent=l.stringRepeat(this.TAB_CHAR,v),g.push(A)}else g.push(this.dom.createTextNode(l.stringRepeat(" ",v),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",S=this.showSpaces?" ace_invisible ace_invisible_space":"",x=this.showSpaces?l.stringRepeat(this.SPACE_CHAR,this.tabSize):l.stringRepeat(" ",this.tabSize),w=this.showTabs?" ace_invisible ace_invisible_tab":"",_=this.showTabs?l.stringRepeat(this.TAB_CHAR,this.tabSize):x,A=this.dom.createElement("span");A.className=y+S,A.textContent=x,this.$tabStrings[" "]=A;var A=this.dom.createElement("span");A.className=y+w,A.textContent=_,this.$tabStrings["	"]=A}},p.prototype.updateLines=function(m,g,v){if(this.config.lastRow!=m.lastRow||this.config.firstRow!=m.firstRow)return this.update(m);this.config=m;for(var A=Math.max(g,m.firstRow),y=Math.min(v,m.lastRow),S=this.element.childNodes,x=0,_=m.firstRow;_<A;_++){var C=this.session.getFoldLine(_);if(C)if(C.containsRow(A)){A=C.start.row;break}else _=C.end.row;x++}for(var w=!1,_=A,C=this.session.getNextFoldLine(_),R=C?C.start.row:1/0;_>R&&(_=C.end.row+1,C=this.session.getNextFoldLine(_,C),R=C?C.start.row:1/0),!(_>y);){var k=S[x++];if(k){this.dom.removeChildren(k),this.$renderLine(k,_,_==R?C:!1),w&&(k.style.top=this.$lines.computeLineTop(_,m,this.session)+"px");var P=m.lineHeight*this.session.getRowLength(_)+"px";k.style.height!=P&&(w=!0,k.style.height=P)}_++}if(w)for(;x<this.$lines.cells.length;){var N=this.$lines.cells[x++];N.element.style.top=this.$lines.computeLineTop(N.row,m,this.session)+"px"}},p.prototype.scrollLines=function(m){var g=this.config;if(this.config=m,this.$lines.pageChanged(g,m))return this.update(m);this.$lines.moveContainer(m);var v=m.lastRow,A=g?g.lastRow:-1;if(!g||A<m.firstRow)return this.update(m);if(v<g.firstRow)return this.update(m);if(!g||g.lastRow<m.firstRow)return this.update(m);if(m.lastRow<g.firstRow)return this.update(m);if(g.firstRow<m.firstRow)for(var y=this.session.getFoldedRowCount(g.firstRow,m.firstRow-1);y>0;y--)this.$lines.shift();if(g.lastRow>m.lastRow)for(var y=this.session.getFoldedRowCount(m.lastRow+1,g.lastRow);y>0;y--)this.$lines.pop();m.firstRow<g.firstRow&&this.$lines.unshift(this.$renderLinesFragment(m,m.firstRow,g.firstRow-1)),m.lastRow>g.lastRow&&this.$lines.push(this.$renderLinesFragment(m,g.lastRow+1,m.lastRow)),this.$highlightIndentGuide()},p.prototype.$renderLinesFragment=function(m,g,v){for(var A=[],y=g,S=this.session.getNextFoldLine(y),x=S?S.start.row:1/0;y>x&&(y=S.end.row+1,S=this.session.getNextFoldLine(y,S),x=S?S.start.row:1/0),!(y>v);){var w=this.$lines.createCell(y,m,this.session),_=w.element;this.dom.removeChildren(_),s.setStyle(_.style,"height",this.$lines.computeLineHeight(y,m,this.session)+"px"),s.setStyle(_.style,"top",this.$lines.computeLineTop(y,m,this.session)+"px"),this.$renderLine(_,y,y==x?S:!1),this.$useLineGroups()?_.className="ace_line_group":_.className="ace_line",A.push(w),y++}return A},p.prototype.update=function(m){this.$lines.moveContainer(m),this.config=m;for(var g=m.firstRow,v=m.lastRow,A=this.$lines;A.getLength();)A.pop();A.push(this.$renderLinesFragment(m,g,v))},p.prototype.$renderToken=function(m,g,v,A){for(var y=this,S=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,x=this.dom.createFragment(this.element),w,_=0;w=S.exec(A);){var C=w[1],R=w[2],k=w[3],P=w[4],N=w[5];if(!(!y.showSpaces&&R)){var L=_!=w.index?A.slice(_,w.index):"";if(_=w.index+w[0].length,L&&x.appendChild(this.dom.createTextNode(L,this.element)),C){var I=y.session.getScreenTabSize(g+w.index);x.appendChild(y.$tabStrings[I].cloneNode(!0)),g+=I-1}else if(R)if(y.showSpaces){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space",b.textContent=l.stringRepeat(y.SPACE_CHAR,R.length),x.appendChild(b)}else x.appendChild(this.dom.createTextNode(R,this.element));else if(k){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space ace_invalid",b.textContent=l.stringRepeat(y.SPACE_CHAR,k.length),x.appendChild(b)}else if(P){g+=1;var b=this.dom.createElement("span");b.style.width=y.config.characterWidth*2+"px",b.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=y.showSpaces?y.SPACE_CHAR:P,x.appendChild(b)}else if(N){g+=1;var b=this.dom.createElement("span");b.style.width=y.config.characterWidth*2+"px",b.className="ace_cjk",b.textContent=N,x.appendChild(b)}}}if(x.appendChild(this.dom.createTextNode(_?A.slice(_):A,this.element)),h(v.type))m.appendChild(x);else{var T="ace_"+v.type.replace(/\./g," ace_"),b=this.dom.createElement("span");v.type=="fold"&&(b.style.width=v.value.length*this.config.characterWidth+"px",b.setAttribute("title",d("inline-fold.closed.title","Unfold code"))),b.className=T,b.appendChild(x),m.appendChild(b)}return g+A.length},p.prototype.renderIndentGuide=function(m,g,v){var A=g.search(this.$indentGuideRe);if(A<=0||A>=v)return g;if(g[0]==" "){A-=A%this.tabSize;for(var y=A/this.tabSize,S=0;S<y;S++)m.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),g.substr(A)}else if(g[0]=="	"){for(var S=0;S<A;S++)m.appendChild(this.$tabStrings["	"].cloneNode(!0));return this.$highlightIndentGuide(),g.substr(A)}return this.$highlightIndentGuide(),g},p.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var m=this.session.doc.$lines;if(m){var g=this.session.selection.getCursor(),v=/^\s*/.exec(this.session.doc.getLine(g.row))[0].length,A=Math.floor(v/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:A,start:g.row};var y=this.session.$bracketHighlight;if(y){for(var S=this.session.$bracketHighlight.ranges,x=0;x<S.length;x++)if(g.row!==S[x].start.row){this.$highlightIndentGuideMarker.end=S[x].start.row,g.row>S[x].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&m[g.row]!==""&&g.column===m[g.row].length){this.$highlightIndentGuideMarker.dir=1;for(var x=g.row+1;x<m.length;x++){var w=m[x],_=/^\s*/.exec(w)[0].length;if(w!==""&&(this.$highlightIndentGuideMarker.end=x,_<=v))break}}this.$renderHighlightIndentGuide()}}},p.prototype.$clearActiveIndentGuide=function(){for(var m=this.$lines.cells,g=0;g<m.length;g++){var v=m[g],A=v.element.childNodes;if(A.length>0){for(var y=0;y<A.length;y++)if(A[y].classList&&A[y].classList.contains("ace_indent-guide-active")){A[y].classList.remove("ace_indent-guide-active");break}}}},p.prototype.$setIndentGuideActive=function(m,g){var v=this.session.doc.getLine(m.row);if(v!==""){var A=m.element.childNodes;if(A){var y=A[g-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},p.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var m=this.$lines.cells;this.$clearActiveIndentGuide();var g=this.$highlightIndentGuideMarker.indentLevel;if(g!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var v=0;v<m.length;v++){var A=m[v];if(this.$highlightIndentGuideMarker.end&&A.row>=this.$highlightIndentGuideMarker.start+1){if(A.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(A,g)}}else for(var v=m.length-1;v>=0;v--){var A=m[v];if(this.$highlightIndentGuideMarker.end&&A.row<this.$highlightIndentGuideMarker.start){if(A.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(A,g)}}}},p.prototype.$createLineElement=function(m){var g=this.dom.createElement("div");return g.className="ace_line",g.style.height=this.config.lineHeight+"px",g},p.prototype.$renderWrappedLine=function(m,g,v){var A=0,y=0,S=v[0],x=0,w=this.$createLineElement();m.appendChild(w);for(var _=0;_<g.length;_++){var C=g[_],R=C.value;if(_==0&&this.displayIndentGuides){if(A=R.length,R=this.renderIndentGuide(w,R,S),!R)continue;A-=R.length}if(A+R.length<S)x=this.$renderToken(w,x,C,R),A+=R.length;else{for(;A+R.length>=S;)x=this.$renderToken(w,x,C,R.substring(0,S-A)),R=R.substring(S-A),A=S,w=this.$createLineElement(),m.appendChild(w),w.appendChild(this.dom.createTextNode(l.stringRepeat(" ",v.indent),this.element)),y++,x=0,S=v[y]||Number.MAX_VALUE;R.length!=0&&(A+=R.length,x=this.$renderToken(w,x,C,R))}}v[v.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(w,x,null,"",!0)},p.prototype.$renderSimpleLine=function(m,g){for(var v=0,A=0;A<g.length;A++){var y=g[A],S=y.value;if(!(A==0&&this.displayIndentGuides&&(S=this.renderIndentGuide(m,S),!S))){if(v+S.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(m,v,y,S);v=this.$renderToken(m,v,y,S)}}},p.prototype.$renderOverflowMessage=function(m,g,v,A,y){v&&this.$renderToken(m,g,v,A.slice(0,this.MAX_LINE_LENGTH-g));var S=this.dom.createElement("span");S.className="ace_inline_button ace_keyword ace_toggle_wrap",S.textContent=y?"<hide>":"<click to see more...>",m.appendChild(S)},p.prototype.$renderLine=function(m,g,v){if(!v&&v!=!1&&(v=this.session.getFoldLine(g)),v)var A=this.$getFoldLineTokens(g,v);else var A=this.session.getTokens(g);var y=m;if(A.length){var S=this.session.getRowSplitData(g);if(S&&S.length){this.$renderWrappedLine(m,A,S);var y=m.lastChild}else{var y=m;this.$useLineGroups()&&(y=this.$createLineElement(),m.appendChild(y)),this.$renderSimpleLine(y,A)}}else this.$useLineGroups()&&(y=this.$createLineElement(),m.appendChild(y));if(this.showEOL&&y){v&&(g=v.end.row);var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_eol",x.textContent=g==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(x)}},p.prototype.$getFoldLineTokens=function(m,g){var v=this.session,A=[];function y(x,w,_){for(var C=0,R=0;R+x[C].value.length<w;)if(R+=x[C].value.length,C++,C==x.length)return;if(R!=w){var k=x[C].value.substring(w-R);k.length>_-w&&(k=k.substring(0,_-w)),A.push({type:x[C].type,value:k}),R=w+k.length,C+=1}for(;R<_&&C<x.length;){var k=x[C].value;k.length+R>_?A.push({type:x[C].type,value:k.substring(0,_-R)}):A.push(x[C]),R+=k.length,C+=1}}var S=v.getTokens(m);return g.walk(function(x,w,_,C,R){x!=null?A.push({type:"fold",value:x}):(R&&(S=v.getTokens(w)),S.length&&y(S,C,_))},g.end.row,this.session.getLine(g.end.row).length),A},p.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},p}();f.prototype.EOF_CHAR="¶",f.prototype.EOL_CHAR_LF="¬",f.prototype.EOL_CHAR_CRLF="¤",f.prototype.EOL_CHAR=f.prototype.EOL_CHAR_LF,f.prototype.TAB_CHAR="—",f.prototype.SPACE_CHAR="·",f.prototype.$padding=0,f.prototype.MAX_LINE_LENGTH=1e4,f.prototype.showInvisibles=!1,f.prototype.showSpaces=!1,f.prototype.showTabs=!1,f.prototype.showEOL=!1,f.prototype.displayIndentGuides=!0,f.prototype.$highlightIndentGuides=!0,f.prototype.$tabStrings=[],f.prototype.destroy={},f.prototype.onChangeTabSize=f.prototype.$computeTabString,o.implement(f.prototype,u),r.Text=f}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,a){var o=n("../lib/dom"),s=function(){function l(c){this.element=o.createElement("div"),this.element.className="ace_layer ace_cursor-layer",c.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),o.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return l.prototype.$updateOpacity=function(c){for(var u=this.cursors,d=u.length;d--;)o.setStyle(u[d].style,"opacity",c?"":"0")},l.prototype.$startCssAnimation=function(){for(var c=this.cursors,u=c.length;u--;)c[u].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&o.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},l.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,o.removeCssClass(this.element,"ace_animate-blinking")},l.prototype.setPadding=function(c){this.$padding=c},l.prototype.setSession=function(c){this.session=c},l.prototype.setBlinking=function(c){c!=this.isBlinking&&(this.isBlinking=c,this.restartTimer())},l.prototype.setBlinkInterval=function(c){c!=this.blinkInterval&&(this.blinkInterval=c,this.restartTimer())},l.prototype.setSmoothBlinking=function(c){c!=this.smoothBlinking&&(this.smoothBlinking=c,o.setCssClass(this.element,"ace_smooth-blinking",c),this.$updateCursors(!0),this.restartTimer())},l.prototype.addCursor=function(){var c=o.createElement("div");return c.className="ace_cursor",this.element.appendChild(c),this.cursors.push(c),c},l.prototype.removeCursor=function(){if(this.cursors.length>1){var c=this.cursors.pop();return c.parentNode.removeChild(c),c}},l.prototype.hideCursor=function(){this.isVisible=!1,o.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},l.prototype.showCursor=function(){this.isVisible=!0,o.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},l.prototype.restartTimer=function(){var c=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,o.removeCssClass(this.element,"ace_smooth-blinking")),c(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&o.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),o.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var u=(function(){this.timeoutId=setTimeout(function(){c(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){c(!0),u()},this.blinkInterval),u()}},l.prototype.getPixelPosition=function(c,u){if(!this.config||!this.session)return{left:0,top:0};c||(c=this.session.selection.getCursor());var d=this.session.documentToScreenPosition(c),h=this.$padding+(this.session.$bidiHandler.isBidiRow(d.row,c.row)?this.session.$bidiHandler.getPosLeft(d.column):d.column*this.config.characterWidth),f=(d.row-(u?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:h,top:f}},l.prototype.isCursorInView=function(c,u){return c.top>=0&&c.top<u.maxHeight},l.prototype.update=function(c){this.config=c;var u=this.session.$selectionMarkers,d=0,h=0;(u===void 0||u.length===0)&&(u=[{cursor:null}]);for(var d=0,f=u.length;d<f;d++){var p=this.getPixelPosition(u[d].cursor,!0);if(!((p.top>c.height+c.offset||p.top<0)&&d>1)){var m=this.cursors[h++]||this.addCursor(),g=m.style;this.drawCursor?this.drawCursor(m,p,c,u[d],this.session):this.isCursorInView(p,c)?(o.setStyle(g,"display","block"),o.translate(m,p.left,p.top),o.setStyle(g,"width",Math.round(c.characterWidth)+"px"),o.setStyle(g,"height",c.lineHeight+"px")):o.setStyle(g,"display","none")}}for(;this.cursors.length>h;)this.removeCursor();var v=this.session.getOverwrite();this.$setOverwrite(v),this.$pixelPos=p,this.restartTimer()},l.prototype.$setOverwrite=function(c){c!=this.overwrite&&(this.overwrite=c,c?o.addCssClass(this.element,"ace_overwrite-cursors"):o.removeCssClass(this.element,"ace_overwrite-cursors"))},l.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},l}();s.prototype.$padding=0,s.prototype.drawCursor=null,r.Cursor=s}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,a){var o=this&&this.__extends||function(){var m=function(g,v){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,y){A.__proto__=y}||function(A,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(A[S]=y[S])},m(g,v)};return function(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");m(g,v);function A(){this.constructor=g}g.prototype=v===null?Object.create(v):(A.prototype=v.prototype,new A)}}(),s=n("./lib/oop"),l=n("./lib/dom"),c=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter,d=32768,h=function(){function m(g,v){this.element=l.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+v,this.inner=l.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),g.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addListener(this.element,"scroll",this.onScroll.bind(this)),c.addListener(this.element,"mousedown",c.preventDefault)}return m.prototype.setVisible=function(g){this.element.style.display=g?"":"none",this.isVisible=g,this.coeff=1},m}();s.implement(h.prototype,u);var f=function(m){o(g,m);function g(v,A){var y=m.call(this,v,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,A.$scrollbarWidth=y.width=l.scrollbarWidth(v.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return g.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var v=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-v)/(this.coeff-v)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},g.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},g.prototype.setHeight=function(v){this.element.style.height=v+"px"},g.prototype.setScrollHeight=function(v){this.scrollHeight=v,v>d?(this.coeff=d/v,v=d):this.coeff!=1&&(this.coeff=1),this.inner.style.height=v+"px"},g.prototype.setScrollTop=function(v){this.scrollTop!=v&&(this.skipEvent=!0,this.scrollTop=v,this.element.scrollTop=v*this.coeff)},g}(h);f.prototype.setInnerHeight=f.prototype.setScrollHeight;var p=function(m){o(g,m);function g(v,A){var y=m.call(this,v,"-h")||this;return y.scrollLeft=0,y.height=A.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return g.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},g.prototype.getHeight=function(){return this.isVisible?this.height:0},g.prototype.setWidth=function(v){this.element.style.width=v+"px"},g.prototype.setInnerWidth=function(v){this.inner.style.width=v+"px"},g.prototype.setScrollWidth=function(v){this.inner.style.width=v+"px"},g.prototype.setScrollLeft=function(v){this.scrollLeft!=v&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=v)},g}(h);r.ScrollBar=f,r.ScrollBarV=f,r.ScrollBarH=p,r.VScrollBar=f,r.HScrollBar=p}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,a){var o=this&&this.__extends||function(){var p=function(m,g){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var y in A)Object.prototype.hasOwnProperty.call(A,y)&&(v[y]=A[y])},p(m,g)};return function(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");p(m,g);function v(){this.constructor=m}m.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),s=n("./lib/oop"),l=n("./lib/dom"),c=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter;l.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
  position: absolute;
  background: rgba(128, 128, 128, 0.6);
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #bbb;
  border-radius: 2px;
  z-index: 8;
}
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
  position: absolute;
  z-index: 6;
  background: none;
  overflow: hidden!important;
}
.ace_editor>.ace_sb-v {
  z-index: 6;
  right: 0;
  top: 0;
  width: 12px;
}
.ace_editor>.ace_sb-v div {
  z-index: 8;
  right: 0;
  width: 100%;
}
.ace_editor>.ace_sb-h {
  bottom: 0;
  left: 0;
  height: 12px;
}
.ace_editor>.ace_sb-h div {
  bottom: 0;
  height: 100%;
}
.ace_editor>.ace_sb_grabbed {
  z-index: 8;
  background: #000;
}`,"ace_scrollbar.css",!1);var d=function(){function p(m,g){this.element=l.createElement("div"),this.element.className="ace_sb"+g,this.inner=l.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,m.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return p.prototype.setVisible=function(m){this.element.style.display=m?"":"none",this.isVisible=m,this.coeff=1},p}();s.implement(d.prototype,u);var h=function(p){o(m,p);function m(g,v){var A=p.call(this,g,"-v")||this;return A.scrollTop=0,A.scrollHeight=0,A.parent=g,A.width=A.VScrollWidth,A.renderer=v,A.inner.style.width=A.element.style.width=(A.width||15)+"px",A.$minWidth=0,A}return m.prototype.onMouseDown=function(g,v){if(g==="mousedown"&&!(c.getButton(v)!==0||v.detail===2)){if(v.target===this.inner){var A=this,y=v.clientY,S=function(P){y=P.clientY},x=function(){clearInterval(R)},w=v.clientY,_=this.thumbTop,C=function(){if(y!==void 0){var P=A.scrollTopFromThumbTop(_+y-w);P!==A.scrollTop&&A._emit("scroll",{data:P})}};c.capture(this.inner,S,x);var R=setInterval(C,20);return c.preventDefault(v)}var k=v.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(k)}),c.preventDefault(v)}},m.prototype.getHeight=function(){return this.height},m.prototype.scrollTopFromThumbTop=function(g){var v=g*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return v=v>>0,v<0?v=0:v>this.pageHeight-this.viewHeight&&(v=this.pageHeight-this.viewHeight),v},m.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},m.prototype.setHeight=function(g){this.height=Math.max(0,g),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},m.prototype.setScrollHeight=function(g,v){this.pageHeight===g&&!v||(this.pageHeight=g,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},m.prototype.setScrollTop=function(g){this.scrollTop=g,g<0&&(g=0),this.thumbTop=g*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},m}(d);h.prototype.setInnerHeight=h.prototype.setScrollHeight;var f=function(p){o(m,p);function m(g,v){var A=p.call(this,g,"-h")||this;return A.scrollLeft=0,A.scrollWidth=0,A.height=A.HScrollHeight,A.inner.style.height=A.element.style.height=(A.height||12)+"px",A.renderer=v,A}return m.prototype.onMouseDown=function(g,v){if(g==="mousedown"&&!(c.getButton(v)!==0||v.detail===2)){if(v.target===this.inner){var A=this,y=v.clientX,S=function(P){y=P.clientX},x=function(){clearInterval(R)},w=v.clientX,_=this.thumbLeft,C=function(){if(y!==void 0){var P=A.scrollLeftFromThumbLeft(_+y-w);P!==A.scrollLeft&&A._emit("scroll",{data:P})}};c.capture(this.inner,S,x);var R=setInterval(C,20);return c.preventDefault(v)}var k=v.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(k)}),c.preventDefault(v)}},m.prototype.getHeight=function(){return this.isVisible?this.height:0},m.prototype.scrollLeftFromThumbLeft=function(g){var v=g*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return v=v>>0,v<0?v=0:v>this.pageWidth-this.viewWidth&&(v=this.pageWidth-this.viewWidth),v},m.prototype.setWidth=function(g){this.width=Math.max(0,g),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},m.prototype.setScrollWidth=function(g,v){this.pageWidth===g&&!v||(this.pageWidth=g,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},m.prototype.setScrollLeft=function(g){this.scrollLeft=g,g<0&&(g=0),this.thumbLeft=g*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},m}(d);f.prototype.setInnerWidth=f.prototype.setScrollWidth,r.ScrollBar=h,r.ScrollBarV=h,r.ScrollBarH=f,r.VScrollBar=h,r.HScrollBar=f}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,a){var o=n("./lib/event"),s=function(){function l(c,u){this.onRender=c,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=u||window;var d=this;this._flush=function(h){d.pending=!1;var f=d.changes;if(f&&(o.blockIdle(100),d.changes=0,d.onRender(f)),d.changes){if(d.$recursionLimit--<0)return;d.schedule()}else d.$recursionLimit=2}}return l.prototype.schedule=function(c){this.changes=this.changes|c,this.changes&&!this.pending&&(o.nextFrame(this._flush),this.pending=!0)},l.prototype.clear=function(c){var u=this.changes;return this.changes=0,u},l}();r.RenderLoop=s}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,a){var o=n("../lib/oop"),s=n("../lib/dom"),l=n("../lib/lang"),c=n("../lib/event"),u=n("../lib/useragent"),d=n("../lib/event_emitter").EventEmitter,h=512,f=typeof ResizeObserver=="function",p=200,m=function(){function g(v){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),v.appendChild(this.el),this.$measureNode.textContent=l.stringRepeat("X",h),this.$characterSize={width:0,height:0},f?this.$addObserver():this.checkForSizeChanges()}return g.prototype.$setMeasureNodeStyles=function(v,A){v.width=v.height="auto",v.left=v.top="0px",v.visibility="hidden",v.position="absolute",v.whiteSpace="pre",u.isIE<8?v["font-family"]="inherit":v.font="inherit",v.overflow=A?"hidden":"visible"},g.prototype.checkForSizeChanges=function(v){if(v===void 0&&(v=this.$measureSizes()),v&&(this.$characterSize.width!==v.width||this.$characterSize.height!==v.height)){this.$measureNode.style.fontWeight="bold";var A=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=v,this.charSizes=Object.create(null),this.allowBoldFonts=A&&A.width===v.width&&A.height===v.height,this._emit("changeCharacterSize",{data:v})}},g.prototype.$addObserver=function(){var v=this;this.$observer=new window.ResizeObserver(function(A){v.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},g.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var v=this;return this.$pollSizeChangesTimer=c.onIdle(function A(){v.checkForSizeChanges(),c.onIdle(A,500)},500)},g.prototype.setPolling=function(v){v?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},g.prototype.$measureSizes=function(v){var A={height:(v||this.$measureNode).clientHeight,width:(v||this.$measureNode).clientWidth/h};return A.width===0||A.height===0?null:A},g.prototype.$measureCharWidth=function(v){this.$main.textContent=l.stringRepeat(v,h);var A=this.$main.getBoundingClientRect();return A.width/h},g.prototype.getCharacterWidth=function(v){var A=this.charSizes[v];return A===void 0&&(A=this.charSizes[v]=this.$measureCharWidth(v)/this.$characterSize.width),A},g.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},g.prototype.$getZoom=function(v){return!v||!v.parentElement?1:(window.getComputedStyle(v).zoom||1)*this.$getZoom(v.parentElement)},g.prototype.$initTransformMeasureNodes=function(){var v=function(A,y){return["div",{style:"position: absolute;top:"+A+"px;left:"+y+"px;"}]};this.els=s.buildDom([v(0,0),v(p,0),v(0,p),v(p,p)],this.el)},g.prototype.transformCoordinates=function(v,A){if(v){var y=this.$getZoom(this.el);v=_(1/y,v)}function S(H,U,$){var z=H[1]*U[0]-H[0]*U[1];return[(-U[1]*$[0]+U[0]*$[1])/z,(+H[1]*$[0]-H[0]*$[1])/z]}function x(H,U){return[H[0]-U[0],H[1]-U[1]]}function w(H,U){return[H[0]+U[0],H[1]+U[1]]}function _(H,U){return[H*U[0],H*U[1]]}this.els||this.$initTransformMeasureNodes();function C(H){var U=H.getBoundingClientRect();return[U.left,U.top]}var R=C(this.els[0]),k=C(this.els[1]),P=C(this.els[2]),N=C(this.els[3]),L=S(x(N,k),x(N,P),x(w(k,P),w(N,R))),I=_(1+L[0],x(k,R)),b=_(1+L[1],x(P,R));if(A){var T=A,M=L[0]*T[0]/p+L[1]*T[1]/p+1,D=w(_(T[0],I),_(T[1],b));return w(_(1/M/p,D),R)}var B=x(v,R),j=S(x(I,_(L[0],B)),x(b,_(L[1],B)),B);return _(p,j)},g}();m.prototype.$characterSize={width:0,height:0},o.implement(m.prototype,d),r.FontMetrics=m}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,a){a.exports=`
.ace_br1 {border-top-left-radius    : 3px;}
.ace_br2 {border-top-right-radius   : 3px;}
.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}
.ace_br4 {border-bottom-right-radius: 3px;}
.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}
.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}
.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}
.ace_br8 {border-bottom-left-radius : 3px;}
.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}
.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}
.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}


.ace_editor {
    position: relative;
    overflow: hidden;
    padding: 0;
    font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
    direction: ltr;
    text-align: left;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ace_scroller {
    position: absolute;
    overflow: hidden;
    top: 0;
    bottom: 0;
    background-color: inherit;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: text;
}

.ace_content {
    position: absolute;
    box-sizing: border-box;
    min-width: 100%;
    contain: style size layout;
    font-variant-ligatures: no-common-ligatures;
}

.ace_keyboard-focus:focus {
    box-shadow: inset 0 0 0 2px #5E9ED6;
    outline: none;
}

.ace_dragging .ace_scroller:before{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    background: rgba(250, 250, 250, 0.01);
    z-index: 1000;
}
.ace_dragging.ace_dark .ace_scroller:before{
    background: rgba(0, 0, 0, 0.01);
}

.ace_gutter {
    position: absolute;
    overflow : hidden;
    width: auto;
    top: 0;
    bottom: 0;
    left: 0;
    cursor: default;
    z-index: 4;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    contain: style size layout;
}

.ace_gutter-active-line {
    position: absolute;
    left: 0;
    right: 0;
}

.ace_scroller.ace_scroll-left:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
    pointer-events: none;
}

.ace_gutter-cell, .ace_gutter-cell_svg-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-left: 19px;
    padding-right: 6px;
    background-repeat: no-repeat;
}

.ace_gutter-cell_svg-icons .ace_gutter_annotation {
    margin-left: -14px;
    float: left;
}

.ace_gutter-cell .ace_gutter_annotation {
    margin-left: -19px;
    float: left;
}

.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: 2px center;
}

.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: 2px center;
}

.ace_gutter-cell.ace_info, .ace_icon.ace_info {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
    background-repeat: no-repeat;
    background-position: 2px center;
}
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
}

.ace_icon_svg.ace_error {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
    background-color: crimson;
}
.ace_icon_svg.ace_warning {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
    background-color: darkorange;
}
.ace_icon_svg.ace_info {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
    background-color: royalblue;
}

.ace_icon_svg.ace_error_fold {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
    background-color: crimson;
}
.ace_icon_svg.ace_warning_fold {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
    background-color: darkorange;
}

.ace_scrollbar {
    contain: strict;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 6;
}

.ace_scrollbar-inner {
    position: absolute;
    cursor: text;
    left: 0;
    top: 0;
}

.ace_scrollbar-v{
    overflow-x: hidden;
    overflow-y: scroll;
    top: 0;
}

.ace_scrollbar-h {
    overflow-x: scroll;
    overflow-y: hidden;
    left: 0;
}

.ace_print-margin {
    position: absolute;
    height: 100%;
}

.ace_text-input {
    position: absolute;
    z-index: 0;
    width: 0.5em;
    height: 1em;
    opacity: 0;
    background: transparent;
    -moz-appearance: none;
    appearance: none;
    border: none;
    resize: none;
    outline: none;
    overflow: hidden;
    font: inherit;
    padding: 0 1px;
    margin: 0 -1px;
    contain: strict;
    -ms-user-select: text;
    -moz-user-select: text;
    -webkit-user-select: text;
    user-select: text;
    /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
    white-space: pre!important;
}
.ace_text-input.ace_composition {
    background: transparent;
    color: inherit;
    z-index: 1000;
    opacity: 1;
}
.ace_composition_placeholder { color: transparent }
.ace_composition_marker { 
    border-bottom: 1px solid;
    position: absolute;
    border-radius: 0;
    margin-top: 1px;
}

[ace_nocontext=true] {
    transform: none!important;
    filter: none!important;
    clip-path: none!important;
    mask : none!important;
    contain: none!important;
    perspective: none!important;
    mix-blend-mode: initial!important;
    z-index: auto;
}

.ace_layer {
    z-index: 1;
    position: absolute;
    overflow: hidden;
    /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
    word-wrap: normal;
    white-space: pre;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    /* setting pointer-events: auto; on node under the mouse, which changes
        during scroll, will break mouse wheel scrolling in Safari */
    pointer-events: none;
}

.ace_gutter-layer {
    position: relative;
    width: auto;
    text-align: right;
    pointer-events: auto;
    height: 1000000px;
    contain: style size layout;
}

.ace_text-layer {
    font: inherit !important;
    position: absolute;
    height: 1000000px;
    width: 1000000px;
    contain: style size layout;
}

.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
    contain: style size layout;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.ace_hidpi .ace_text-layer,
.ace_hidpi .ace_gutter-layer,
.ace_hidpi .ace_content,
.ace_hidpi .ace_gutter {
    contain: strict;
}
.ace_hidpi .ace_text-layer > .ace_line, 
.ace_hidpi .ace_text-layer > .ace_line_group {
    contain: strict;
}

.ace_cjk {
    display: inline-block;
    text-align: center;
}

.ace_cursor-layer {
    z-index: 4;
}

.ace_cursor {
    z-index: 4;
    position: absolute;
    box-sizing: border-box;
    border-left: 2px solid;
    /* workaround for smooth cursor repaintng whole screen in chrome */
    transform: translatez(0);
}

.ace_multiselect .ace_cursor {
    border-left-width: 1px;
}

.ace_slim-cursors .ace_cursor {
    border-left-width: 1px;
}

.ace_overwrite-cursors .ace_cursor {
    border-left-width: 0;
    border-bottom: 1px solid;
}

.ace_hidden-cursors .ace_cursor {
    opacity: 0.2;
}

.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
    opacity: 0;
}

.ace_smooth-blinking .ace_cursor {
    transition: opacity 0.18s;
}

.ace_animate-blinking .ace_cursor {
    animation-duration: 1000ms;
    animation-timing-function: step-end;
    animation-name: blink-ace-animate;
    animation-iteration-count: infinite;
}

.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
    animation-duration: 1000ms;
    animation-timing-function: ease-in-out;
    animation-name: blink-ace-animate-smooth;
}
    
@keyframes blink-ace-animate {
    from, to { opacity: 1; }
    60% { opacity: 0; }
}

@keyframes blink-ace-animate-smooth {
    from, to { opacity: 1; }
    45% { opacity: 1; }
    60% { opacity: 0; }
    85% { opacity: 0; }
}

.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
    position: absolute;
    z-index: 3;
}

.ace_marker-layer .ace_selection {
    position: absolute;
    z-index: 5;
}

.ace_marker-layer .ace_bracket {
    position: absolute;
    z-index: 6;
}

.ace_marker-layer .ace_error_bracket {
    position: absolute;
    border-bottom: 1px solid #DE5555;
    border-radius: 0;
}

.ace_marker-layer .ace_active-line {
    position: absolute;
    z-index: 2;
}

.ace_marker-layer .ace_selected-word {
    position: absolute;
    z-index: 4;
    box-sizing: border-box;
}

.ace_line .ace_fold {
    box-sizing: border-box;

    display: inline-block;
    height: 11px;
    margin-top: -2px;
    vertical-align: middle;

    background-image:
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
    background-repeat: no-repeat, repeat-x;
    background-position: center center, top left;
    color: transparent;

    border: 1px solid black;
    border-radius: 2px;

    cursor: pointer;
    pointer-events: auto;
}

.ace_dark .ace_fold {
}

.ace_fold:hover{
    background-image:
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
}

.ace_tooltip {
    background-color: #f5f5f5;
    border: 1px solid gray;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: black;
    max-width: 100%;
    padding: 3px 4px;
    position: fixed;
    z-index: 999999;
    box-sizing: border-box;
    cursor: default;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: normal;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
    pointer-events: none;
    overflow: auto;
    max-width: min(60em, 66vw);
    overscroll-behavior: contain;
}
.ace_tooltip pre {
    white-space: pre-wrap;
}

.ace_tooltip.ace_dark {
    background-color: #636363;
    color: #fff;
}

.ace_tooltip:focus {
    outline: 1px solid #5E9ED6;
}

.ace_icon {
    display: inline-block;
    width: 18px;
    vertical-align: top;
}

.ace_icon_svg {
    display: inline-block;
    width: 12px;
    vertical-align: top;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 12px;
    -webkit-mask-position: center;
}

.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
    padding-right: 13px;
}

.ace_fold-widget {
    box-sizing: border-box;

    margin: 0 -12px 0 1px;
    display: none;
    width: 11px;
    vertical-align: top;

    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: center;

    border-radius: 3px;
    
    border: 1px solid transparent;
    cursor: pointer;
}

.ace_folding-enabled .ace_fold-widget {
    display: inline-block;   
}

.ace_fold-widget.ace_end {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
}

.ace_fold-widget.ace_closed {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
}

.ace_fold-widget:hover {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.ace_fold-widget:active {
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
/**
 * Dark version for fold widgets
 */
.ace_dark .ace_fold-widget {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
}
.ace_dark .ace_fold-widget.ace_end {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget.ace_closed {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget:hover {
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}
.ace_dark .ace_fold-widget:active {
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.ace_inline_button {
    border: 1px solid lightgray;
    display: inline-block;
    margin: -1px 8px;
    padding: 0 5px;
    pointer-events: auto;
    cursor: pointer;
}
.ace_inline_button:hover {
    border-color: gray;
    background: rgba(200,200,200,0.2);
    display: inline-block;
    pointer-events: auto;
}

.ace_fold-widget.ace_invalid {
    background-color: #FFB4B4;
    border-color: #DE5555;
}

.ace_fade-fold-widgets .ace_fold-widget {
    transition: opacity 0.4s ease 0.05s;
    opacity: 0;
}

.ace_fade-fold-widgets:hover .ace_fold-widget {
    transition: opacity 0.05s ease 0.05s;
    opacity:1;
}

.ace_underline {
    text-decoration: underline;
}

.ace_bold {
    font-weight: bold;
}

.ace_nobold .ace_bold {
    font-weight: normal;
}

.ace_italic {
    font-style: italic;
}


.ace_error-marker {
    background-color: rgba(255, 0, 0,0.2);
    position: absolute;
    z-index: 9;
}

.ace_highlight-marker {
    background-color: rgba(255, 255, 0,0.2);
    position: absolute;
    z-index: 8;
}

.ace_mobile-menu {
    position: absolute;
    line-height: 1.5;
    border-radius: 4px;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    background: white;
    box-shadow: 1px 3px 2px grey;
    border: 1px solid #dcdcdc;
    color: black;
}
.ace_dark > .ace_mobile-menu {
    background: #333;
    color: #ccc;
    box-shadow: 1px 3px 2px grey;
    border: 1px solid #444;

}
.ace_mobile-button {
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
}
.ace_mobile-button:hover {
    background-color: #eee;
    opacity:1;
}
.ace_mobile-button:active {
    background-color: #ddd;
}

.ace_placeholder {
    font-family: arial;
    transform: scale(0.9);
    transform-origin: left;
    white-space: pre;
    opacity: 0.7;
    margin: 0 10px;
}

.ace_ghost_text {
    opacity: 0.5;
    font-style: italic;
}

.ace_ghost_text > div {
    white-space: pre;
}

.ghost_text_line_wrapped::after {
    content: "↩";
    position: absolute;
}

.ace_lineWidgetContainer.ace_ghost_text {
    margin: 0px 4px
}

.ace_screenreader-only {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,a){var o=n("../lib/dom"),s=n("../lib/oop"),l=n("../lib/event_emitter").EventEmitter,c=function(){function u(d,h){this.canvas=o.createElement("canvas"),this.renderer=h,this.pixelRatio=1,this.maxHeight=h.layerConfig.maxHeight,this.lineHeight=h.layerConfig.lineHeight,this.canvasHeight=d.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=d.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},d.element.appendChild(this.canvas)}return u.prototype.$updateDecorators=function(d){var h=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(d){this.maxHeight=d.maxHeight,this.lineHeight=d.lineHeight,this.canvasHeight=d.height;var f=(d.lastRow+1)*this.lineHeight;f<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var p=this.canvas.getContext("2d");function m(N,L){return N.priority<L.priority?-1:N.priority>L.priority?1:0}var g=this.renderer.session.$annotations;if(p.clearRect(0,0,this.canvas.width,this.canvas.height),g){var v={info:1,warning:2,error:3};g.forEach(function(N){N.priority=v[N.type]||null}),g=g.sort(m);for(var A=this.renderer.session.$foldData,y=0;y<g.length;y++){var S=g[y].row,x=this.compensateFoldRows(S,A),w=Math.round((S-x)*this.lineHeight*this.heightRatio),_=Math.round((S-x)*this.lineHeight*this.heightRatio),C=Math.round(((S-x)*this.lineHeight+this.lineHeight)*this.heightRatio),R=C-_;if(R<this.minDecorationHeight){var k=(_+C)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),_=Math.round(k-this.halfMinDecorationHeight),C=Math.round(k+this.halfMinDecorationHeight)}p.fillStyle=h[g[y].type]||null,p.fillRect(0,w,this.canvasWidth,C-_)}}var P=this.renderer.session.selection.getCursor();if(P){var x=this.compensateFoldRows(P.row,A),w=Math.round((P.row-x)*this.lineHeight*this.heightRatio);p.fillStyle="rgba(0, 0, 0, 0.5)",p.fillRect(0,w,this.canvasWidth,2)}},u.prototype.compensateFoldRows=function(d,h){var f=0;if(h&&h.length>0)for(var p=0;p<h.length;p++)d>h[p].start.row&&d<h[p].end.row?f+=d-h[p].start.row:d>=h[p].end.row&&(f+=h[p].end.row-h[p].start.row);return f},u}();s.implement(c.prototype,l),r.Decorator=c}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(n,r,a){var o=n("./lib/oop"),s=n("./lib/dom"),l=n("./lib/lang"),c=n("./config"),u=n("./layer/gutter").Gutter,d=n("./layer/marker").Marker,h=n("./layer/text").Text,f=n("./layer/cursor").Cursor,p=n("./scrollbar").HScrollBar,m=n("./scrollbar").VScrollBar,g=n("./scrollbar_custom").HScrollBar,v=n("./scrollbar_custom").VScrollBar,A=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,S=n("./lib/event_emitter").EventEmitter,x=n("./css/editor-css"),w=n("./layer/decorators").Decorator,_=n("./lib/useragent");s.importCssString(x,"ace_editor.css",!1);var C=function(){function R(k,P){var N=this;this.container=k||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(P),c.get("useStrictCSP")==null&&c.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new u(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new d(this.content);var L=this.$textLayer=new h(this.content);this.canvas=L.element,this.$markerFront=new d(this.content),this.$cursorLayer=new f(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new m(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.on("scroll",function(I){N.$scrollAnimation||N.session.setScrollTop(I.data-N.scrollMargin.top)}),this.scrollBarH.on("scroll",function(I){N.$scrollAnimation||N.session.setScrollLeft(I.data-N.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(I){N.updateCharacterSize(),N.onResize(!0,N.gutterWidth,N.$size.width,N.$size.height),N._signal("changeCharacterSize",I)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!_.isIOS,this.$loop=new A(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),c.resetOptions(this),c._signal("renderer",this)}return R.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},R.prototype.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},R.prototype.updateLines=function(k,P,N){if(P===void 0&&(P=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRow<P&&(this.$changedLines.lastRow=P)):this.$changedLines={firstRow:k,lastRow:P},this.$changedLines.lastRow<this.layerConfig.firstRow)if(N)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},R.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},R.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},R.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},R.prototype.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},R.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},R.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},R.prototype.onResize=function(k,P,N,L){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var I=this.container;L||(L=I.clientHeight||I.scrollHeight),!L&&this.$maxLines&&this.lineHeight>1&&(!I.style.height||I.style.height=="0px")&&(I.style.height="1px",L=I.clientHeight||I.scrollHeight),N||(N=I.clientWidth||I.scrollWidth);var b=this.$updateCachedSize(k,P,N,L);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!N&&!L)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(b|this.$changes,!0):this.$loop.schedule(b|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},R.prototype.$updateCachedSize=function(k,P,N,L){L-=this.$extraHeight||0;var I=0,b=this.$size,T={width:b.width,height:b.height,scrollerHeight:b.scrollerHeight,scrollerWidth:b.scrollerWidth};if(L&&(k||b.height!=L)&&(b.height=L,I|=this.CHANGE_SIZE,b.scrollerHeight=b.height,this.$horizScroll&&(b.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(b.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",I=I|this.CHANGE_SCROLL),N&&(k||b.width!=N)){I|=this.CHANGE_SIZE,b.width=N,P==null&&(P=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=P,s.setStyle(this.scrollBarH.element.style,"left",P+"px"),s.setStyle(this.scroller.style,"left",P+this.margin.left+"px"),b.scrollerWidth=Math.max(0,N-P-this.scrollBarV.getWidth()-this.margin.h),s.setStyle(this.$gutter.style,"left",this.margin.left+"px");var M=this.scrollBarV.getWidth()+"px";s.setStyle(this.scrollBarH.element.style,"right",M),s.setStyle(this.scroller.style,"right",M),s.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(b.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(I|=this.CHANGE_FULL)}return b.$dirty=!N||!L,I&&this._signal("resize",T),I},R.prototype.onGutterResize=function(k){var P=this.$showGutter?k:0;P!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,P,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},R.prototype.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,P=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(P,this.$showPrintMargin&&this.$printMarginColumn)},R.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},R.prototype.getAnimatedScroll=function(){return this.$animatedScroll},R.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},R.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},R.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},R.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},R.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},R.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},R.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},R.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},R.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},R.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},R.prototype.getShowGutter=function(){return this.getOption("showGutter")},R.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},R.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},R.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},R.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},R.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},R.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=s.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var P=this.$printMarginEl.style;P.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",P.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},R.prototype.getContainerElement=function(){return this.container},R.prototype.getMouseEventTarget=function(){return this.scroller},R.prototype.getTextAreaContainer=function(){return this.container},R.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var k=this.textarea.style,P=this.$composition;if(!this.$keepTextAreaAtCursor&&!P){s.translate(this.textarea,-100,0);return}var N=this.$cursorLayer.$pixelPos;if(N){P&&P.markerRange&&(N=this.$cursorLayer.getPixelPosition(P.markerRange.start,!0));var L=this.layerConfig,I=N.top,b=N.left;I-=L.offset;var T=P&&P.useTextareaForIME||_.isMobile?this.lineHeight:1;if(I<0||I>L.height-T){s.translate(this.textarea,0,0);return}var M=1,D=this.$size.height-T;if(!P)I+=this.lineHeight;else if(P.useTextareaForIME){var B=this.textarea.value;M=this.characterWidth*this.session.$getStringScreenWidth(B)[0]}else I+=this.lineHeight+2;b-=this.scrollLeft,b>this.$size.scrollerWidth-M&&(b=this.$size.scrollerWidth-M),b+=this.gutterWidth+this.margin.left,s.setStyle(k,"height",T+"px"),s.setStyle(k,"width",M+"px"),s.translate(this.textarea,Math.min(b,this.$size.scrollerWidth-M),Math.min(I,D))}}},R.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},R.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},R.prototype.getLastFullyVisibleRow=function(){var k=this.layerConfig,P=k.lastRow,N=this.session.documentToScreenRow(P,0)*k.lineHeight;return N-this.session.getScrollTop()>k.height-k.lineHeight?P-1:P},R.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},R.prototype.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},R.prototype.setScrollMargin=function(k,P,N,L){var I=this.scrollMargin;I.top=k|0,I.bottom=P|0,I.right=L|0,I.left=N|0,I.v=I.top+I.bottom,I.h=I.left+I.right,I.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-I.top),this.updateFull()},R.prototype.setMargin=function(k,P,N,L){var I=this.margin;I.top=k|0,I.bottom=P|0,I.right=L|0,I.left=N|0,I.v=I.top+I.bottom,I.h=I.left+I.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},R.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},R.prototype.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},R.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},R.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},R.prototype.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,P=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(P-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-P&&(k=this.scrollTop+P,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},R.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},R.prototype.freeze=function(){this.$frozen=!0},R.prototype.unfreeze=function(){this.$frozen=!1},R.prototype.$renderChanges=function(k,P){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!P){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var N=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),N.firstRow!=this.layerConfig.firstRow&&N.firstRowScreen==this.layerConfig.firstRowScreen){var L=this.scrollTop+(N.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;L>0&&(this.scrollTop=L,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}N=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-N.offset);var I=N.width+2*this.$padding+"px",b=N.minHeight+"px";s.setStyle(this.content.style,"width",I),s.setStyle(this.content.style,"height",b)}if(k&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-N.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(N),this.$showGutter&&this.$gutterLayer.update(N),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(N),this.$markerBack.update(N),this.$markerFront.update(N),this.$cursorLayer.update(N),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(N):this.$textLayer.scrollLines(N),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(N):this.$gutterLayer.scrollLines(N)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(N),this.$markerBack.update(N),this.$markerFront.update(N),this.$cursorLayer.update(N),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(N),this.$showGutter&&this.$gutterLayer.update(N),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(N)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(N),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(N)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(N),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(N)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(N),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(N)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(N),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(N),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(N),this._signal("afterRender",k)},R.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,P=this.$maxLines*this.lineHeight,N=Math.min(P,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(N+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&N>this.$maxPixelHeight&&(N=this.$maxPixelHeight);var L=N<=2*this.lineHeight,I=!L&&k>P;if(N!=this.desiredHeight||this.$size.height!=this.desiredHeight||I!=this.$vScroll){I!=this.$vScroll&&(this.$vScroll=I,this.scrollBarV.setVisible(I));var b=this.container.clientWidth;this.container.style.height=N+"px",this.$updateCachedSize(!0,this.$gutterWidth,b,N),this.desiredHeight=N,this._signal("autosize")}},R.prototype.$computeLayerConfig=function(){var k=this.session,P=this.$size,N=P.height<=2*this.lineHeight,L=this.session.getScreenLength(),I=L*this.lineHeight,b=this.$getLongestLine(),T=!N&&(this.$hScrollBarAlwaysVisible||P.scrollerWidth-b-2*this.$padding<0),M=this.$horizScroll!==T;M&&(this.$horizScroll=T,this.scrollBarH.setVisible(T));var D=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var B=P.scrollerHeight+this.lineHeight,j=!this.$maxLines&&this.$scrollPastEnd?(P.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;I+=j;var H=this.scrollMargin;this.session.setScrollTop(Math.max(-H.top,Math.min(this.scrollTop,I-P.scrollerHeight+H.bottom))),this.session.setScrollLeft(Math.max(-H.left,Math.min(this.scrollLeft,b+2*this.$padding-P.scrollerWidth+H.right)));var U=!N&&(this.$vScrollBarAlwaysVisible||P.scrollerHeight-I+j<0||this.scrollTop>H.top),$=D!==U;$&&(this.$vScroll=U,this.scrollBarV.setVisible(U));var z=this.scrollTop%this.lineHeight,Z=Math.ceil(B/this.lineHeight)-1,K=Math.max(0,Math.round((this.scrollTop-z)/this.lineHeight)),Q=K+Z,ee,X,te=this.lineHeight;K=k.screenToDocumentRow(K,0);var J=k.getFoldLine(K);J&&(K=J.start.row),ee=k.documentToScreenRow(K,0),X=k.getRowLength(K)*te,Q=Math.min(k.screenToDocumentRow(Q,0),k.getLength()-1),B=P.scrollerHeight+k.getRowLength(Q)*te+X,z=this.scrollTop-ee*te;var ne=0;return(this.layerConfig.width!=b||M)&&(ne=this.CHANGE_H_SCROLL),(M||$)&&(ne|=this.$updateCachedSize(!0,this.gutterWidth,P.width,P.height),this._signal("scrollbarVisibilityChanged"),$&&(b=this.$getLongestLine())),this.layerConfig={width:b,padding:this.$padding,firstRow:K,firstRowScreen:ee,lastRow:Q,lineHeight:te,characterWidth:this.characterWidth,minHeight:B,maxHeight:I,offset:z,gutterOffset:te?Math.max(0,Math.ceil((z+P.height-P.scrollerHeight)/te)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(b-this.$padding),ne},R.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,P=this.$changedLines.lastRow;this.$changedLines=null;var N=this.layerConfig;if(!(k>N.lastRow+1)&&!(P<N.firstRow)){if(P===1/0){this.$showGutter&&this.$gutterLayer.update(N),this.$textLayer.update(N);return}return this.$textLayer.updateLines(N,k,P),!0}}},R.prototype.$getLongestLine=function(){var k=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(k+=1),this.$textLayer&&k>this.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*this.characterWidth))},R.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},R.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},R.prototype.addGutterDecoration=function(k,P){this.$gutterLayer.addGutterDecoration(k,P)},R.prototype.removeGutterDecoration=function(k,P){this.$gutterLayer.removeGutterDecoration(k,P)},R.prototype.updateBreakpoints=function(k){this._rows=k,this.$loop.schedule(this.CHANGE_GUTTER)},R.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},R.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},R.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},R.prototype.showCursor=function(){this.$cursorLayer.showCursor()},R.prototype.scrollSelectionIntoView=function(k,P,N){this.scrollCursorIntoView(k,N),this.scrollCursorIntoView(P,N)},R.prototype.scrollCursorIntoView=function(k,P,N){if(this.$size.scrollerHeight!==0){var L=this.$cursorLayer.getPixelPosition(k),I=L.left,b=L.top,T=N&&N.top||0,M=N&&N.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var D=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;D+T>b?(P&&D+T>b+this.lineHeight&&(b-=P*this.$size.scrollerHeight),b===0&&(b=-this.scrollMargin.top),this.session.setScrollTop(b)):D+this.$size.scrollerHeight-M<b+this.lineHeight&&(P&&D+this.$size.scrollerHeight-M<b-this.lineHeight&&(b+=P*this.$size.scrollerHeight),this.session.setScrollTop(b+this.lineHeight+M-this.$size.scrollerHeight));var B=this.scrollLeft,j=2*this.layerConfig.characterWidth;I-j<B?(I-=j,I<this.$padding+j&&(I=-this.scrollMargin.left),this.session.setScrollLeft(I)):(I+=j,B+this.$size.scrollerWidth<I+this.characterWidth?this.session.setScrollLeft(Math.round(I+this.characterWidth-this.$size.scrollerWidth)):B<=this.$padding&&I-B<this.characterWidth&&this.session.setScrollLeft(0))}},R.prototype.getScrollTop=function(){return this.session.getScrollTop()},R.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},R.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},R.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},R.prototype.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},R.prototype.alignCursor=function(k,P){typeof k=="number"&&(k={row:k,column:0});var N=this.$cursorLayer.getPixelPosition(k),L=this.$size.scrollerHeight-this.lineHeight,I=N.top-L*(P||0);return this.session.setScrollTop(I),I},R.prototype.$calcSteps=function(k,P){var N=0,L=this.STEPS,I=[],b=function(T,M,D){return D*(Math.pow(T-1,3)+1)+M};for(N=0;N<L;++N)I.push(b(N/this.STEPS,k,P-k));return I},R.prototype.scrollToLine=function(k,P,N,L){var I=this.$cursorLayer.getPixelPosition({row:k,column:0}),b=I.top;P&&(b-=this.$size.scrollerHeight/2);var T=this.scrollTop;this.session.setScrollTop(b),N!==!1&&this.animateScrolling(T,L)},R.prototype.animateScrolling=function(k,P){var N=this.scrollTop;if(!this.$animatedScroll)return;var L=this;if(k==N)return;if(this.$scrollAnimation){var I=this.$scrollAnimation.steps;if(I.length&&(k=I[0],k==N))return}var b=L.$calcSteps(k,N);this.$scrollAnimation={from:k,to:N,steps:b},clearInterval(this.$timer),L.session.setScrollTop(b.shift()),L.session.$scrollTop=N;function T(){L.$timer=clearInterval(L.$timer),L.$scrollAnimation=null,L.$stopAnimation=!1,P&&P()}this.$timer=setInterval(function(){if(L.$stopAnimation){T();return}if(!L.session)return clearInterval(L.$timer);b.length?(L.session.setScrollTop(b.shift()),L.session.$scrollTop=N):N!=null?(L.session.$scrollTop=-1,L.session.setScrollTop(N),N=null):T()},10)},R.prototype.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},R.prototype.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},R.prototype.scrollTo=function(k,P){this.session.setScrollTop(P),this.session.setScrollLeft(k)},R.prototype.scrollBy=function(k,P){P&&this.session.setScrollTop(this.session.getScrollTop()+P),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},R.prototype.isScrollableBy=function(k,P){if(P<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||P>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},R.prototype.pixelToScreenCoordinates=function(k,P){var N;if(this.$hasCssTransforms){N={top:0,left:0};var L=this.$fontMetrics.transformCoordinates([k,P]);k=L[1]-this.gutterWidth-this.margin.left,P=L[0]}else N=this.scroller.getBoundingClientRect();var I=k+this.scrollLeft-N.left-this.$padding,b=I/this.characterWidth,T=Math.floor((P+this.scrollTop-N.top)/this.lineHeight),M=this.$blockCursor?Math.floor(b):Math.round(b);return{row:T,column:M,side:b-M>0?1:-1,offsetX:I}},R.prototype.screenToTextCoordinates=function(k,P){var N;if(this.$hasCssTransforms){N={top:0,left:0};var L=this.$fontMetrics.transformCoordinates([k,P]);k=L[1]-this.gutterWidth-this.margin.left,P=L[0]}else N=this.scroller.getBoundingClientRect();var I=k+this.scrollLeft-N.left-this.$padding,b=I/this.characterWidth,T=this.$blockCursor?Math.floor(b):Math.round(b),M=Math.floor((P+this.scrollTop-N.top)/this.lineHeight);return this.session.screenToDocumentPosition(M,Math.max(T,0),I)},R.prototype.textToScreenCoordinates=function(k,P){var N=this.scroller.getBoundingClientRect(),L=this.session.documentToScreenPosition(k,P),I=this.$padding+(this.session.$bidiHandler.isBidiRow(L.row,k)?this.session.$bidiHandler.getPosLeft(L.column):Math.round(L.column*this.characterWidth)),b=L.row*this.lineHeight;return{pageX:N.left+I-this.scrollLeft,pageY:N.top+b-this.scrollTop}},R.prototype.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},R.prototype.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},R.prototype.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},R.prototype.setCompositionText=function(k){var P=this.session.selection.cursor;this.addToken(k,"composition_placeholder",P.row,P.column),this.$moveTextAreaToCursor()},R.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),s.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},R.prototype.setGhostText=function(k,P){var N=this.session.selection.cursor,L=P||{row:N.row,column:N.column};this.removeGhostText();var I=this.$calculateWrappedTextChunks(k,L);if(this.addToken(I[0].text,"ghost_text",L.row,L.column),this.$ghostText={text:k,position:{row:L.row,column:L.column}},I.length>1){var b=I.slice(1).map(function(H){return"<div".concat(H.wrapped?' class="ghost_text_line_wrapped"':"",">").concat(H.text,"</div>")});this.$ghostTextWidget={html:b.join(""),row:L.row,column:L.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var T=this.$cursorLayer.getPixelPosition(L,!0),M=this.container,D=M.getBoundingClientRect().height,B=I.length*this.lineHeight,j=B<D-T.top;if(j)return;B<D?this.scrollBy(0,(I.length-1)*this.lineHeight):this.scrollToRow(L.row)}},R.prototype.$calculateWrappedTextChunks=function(k,P){var N=this.$size.scrollerWidth-this.$padding*2,L=Math.floor(N/this.characterWidth)-2;L=L<=0?60:L;for(var I=k.split(/\r?\n/),b=[],T=0;T<I.length;T++){var M=this.session.$getDisplayTokens(I[T],P.column),D=this.session.$computeWrapSplits(M,L,this.session.$tabSize);if(D.length>0){var B=0;D.push(I[T].length);for(var j=0;j<D.length;j++){var H=I[T].slice(B,D[j]);b.push({text:H,wrapped:!0}),B=D[j]}}else b.push({text:I[T],wrapped:!1})}return b},R.prototype.removeGhostText=function(){if(this.$ghostText){var k=this.$ghostText.position;this.removeExtraToken(k.row,k.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},R.prototype.addToken=function(k,P,N,L){var I=this.session;I.bgTokenizer.lines[N]=null;var b={type:P,value:k},T=I.getTokens(N);if(L==null||!T.length)T.push(b);else for(var M=0,D=0;D<T.length;D++){var B=T[D];if(M+=B.value.length,L<=M){var j=B.value.length-(M-L),H=B.value.slice(0,j),U=B.value.slice(j);T.splice(D,1,{type:B.type,value:H},b,{type:B.type,value:U});break}}this.updateLines(N,N)},R.prototype.removeExtraToken=function(k,P){this.session.bgTokenizer.lines[k]=null,this.updateLines(k,k)},R.prototype.setTheme=function(k,P){var N=this;if(this.$themeId=k,N._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var L=k||this.$options.theme.initialValue;c.loadModule(["theme",L],I)}else I(k);function I(b){if(N.$themeId!=k)return P&&P();if(!b||!b.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");b.$id&&(N.$themeId=b.$id),s.importCssString(b.cssText,b.cssClass,N.container),N.theme&&s.removeCssClass(N.container,N.theme.cssClass);var T="padding"in b?b.padding:"padding"in(N.theme||{})?4:N.$padding;N.$padding&&T!=N.$padding&&N.setPadding(T),N.$theme=b.cssClass,N.theme=b,s.addCssClass(N.container,b.cssClass),s.setCssClass(N.container,"ace_dark",b.isDark),N.$size&&(N.$size.width=0,N.$updateSizeAsync()),N._dispatchEvent("themeLoaded",{theme:b}),P&&P()}},R.prototype.getTheme=function(){return this.$themeId},R.prototype.setStyle=function(k,P){s.setCssClass(this.container,k,P!==!1)},R.prototype.unsetStyle=function(k){s.removeCssClass(this.container,k)},R.prototype.setCursorStyle=function(k){s.setStyle(this.scroller.style,"cursor",k)},R.prototype.setMouseCursor=function(k){s.setStyle(this.scroller.style,"cursor",k)},R.prototype.attachToShadowRoot=function(){s.importCssString(x,"ace_editor.css",this.container)},R.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},R.prototype.$updateCustomScrollbar=function(k){var P=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,k===!0?(this.scrollBarV=new v(this.container,this),this.scrollBarH=new g(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(N){P.$scrollAnimation||P.session.setScrollTop(N.data-P.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(N){P.$scrollAnimation||P.session.setScrollLeft(N.data-P.scrollMargin.left)}),this.$scrollDecorator=new w(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new m(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.addEventListener("scroll",function(N){P.$scrollAnimation||P.session.setScrollTop(N.data-P.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(N){P.$scrollAnimation||P.session.setScrollLeft(N.data-P.scrollMargin.left)}))},R.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var k=this;this.$resizeTimer=l.delayedCall(function(){k.destroyed||k.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(P){var N=P[0].contentRect.width,L=P[0].contentRect.height;Math.abs(k.$size.width-N)>1||Math.abs(k.$size.height-L)>1?k.$resizeTimer.delay():k.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},R}();C.prototype.CHANGE_CURSOR=1,C.prototype.CHANGE_MARKER=2,C.prototype.CHANGE_GUTTER=4,C.prototype.CHANGE_SCROLL=8,C.prototype.CHANGE_LINES=16,C.prototype.CHANGE_TEXT=32,C.prototype.CHANGE_SIZE=64,C.prototype.CHANGE_MARKER_BACK=128,C.prototype.CHANGE_MARKER_FRONT=256,C.prototype.CHANGE_FULL=512,C.prototype.CHANGE_H_SCROLL=1024,C.prototype.$changes=0,C.prototype.$padding=null,C.prototype.$frozen=!1,C.prototype.STEPS=8,o.implement(C.prototype,S),c.defineOptions(C.prototype,"renderer",{useResizeObserver:{set:function(R){!R&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):R&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(R){this.$textLayer.setShowInvisibles(R)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(R){typeof R=="number"&&(this.$printMarginColumn=R),this.$showPrintMargin=!!R,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(R){this.$gutter.style.display=R?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(R){this.$gutterLayer.$useSvgGutterIcons=R},initialValue:!1},showFoldedAnnotations:{set:function(R){this.$gutterLayer.$showFoldedAnnotations=R},initialValue:!1},fadeFoldWidgets:{set:function(R){s.setCssClass(this.$gutter,"ace_fade-fold-widgets",R)},initialValue:!1},showFoldWidgets:{set:function(R){this.$gutterLayer.setShowFoldWidgets(R),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(R){this.$textLayer.setDisplayIndentGuides(R)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(R){this.$textLayer.setHighlightIndentGuides(R)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(R){this.$gutterLayer.setHighlightGutterLine(R),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(R){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(R){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(R){typeof R=="number"&&(R=R+"px"),this.container.style.fontSize=R,this.updateFontSize()},initialValue:12},fontFamily:{set:function(R){this.container.style.fontFamily=R,this.updateFontSize()}},maxLines:{set:function(R){this.updateFull()}},minLines:{set:function(R){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(R){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(R){R=+R||0,this.$scrollPastEnd!=R&&(this.$scrollPastEnd=R,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(R){this.$gutterLayer.$fixedWidth=!!R,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(R){this.$updateCustomScrollbar(R)},initialValue:!1},theme:{set:function(R){this.setTheme(R)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!_.isMobile&&!_.isIE}}),r.VirtualRenderer=C}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,a){var o=n("../lib/oop"),s=n("../lib/net"),l=n("../lib/event_emitter").EventEmitter,c=n("../config");function u(p){var m="importScripts('"+s.qualifyURL(p)+"');";try{return new Blob([m],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,v=new g;return v.append(m),v.getBlob("application/javascript")}}function d(p){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(c.get("loadWorkerFromBlob")){var m=u(p),g=window.URL||window.webkitURL,v=g.createObjectURL(m);return new Worker(v)}return new Worker(p)}var h=function(p){p.postMessage||(p=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=p,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){o.implement(this,l),this.$createWorkerFromOldConfig=function(p,m,g,v,A){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),c.get("packaged")||!n.toUrl)v=v||c.moduleUrl(m,"worker");else{var y=this.$normalizePath;v=v||y(n.toUrl("ace/worker/worker.js",null,"_"));var S={};p.forEach(function(x){S[x]=y(n.toUrl(x,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=d(v),A&&this.send("importScripts",A),this.$worker.postMessage({init:!0,tlns:S,module:m,classname:g}),this.$worker},this.onMessage=function(p){var m=p.data;switch(m.type){case"event":this._signal(m.name,{data:m.data});break;case"call":var g=this.callbacks[m.id];g&&(g(m.data),delete this.callbacks[m.id]);break;case"error":this.reportError(m.data);break;case"log":window.console&&console.log&&console.log.apply(console,m.data);break}},this.reportError=function(p){window.console&&console.error&&console.error(p)},this.$normalizePath=function(p){return s.qualifyURL(p)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(p){p.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(p,m){this.$worker.postMessage({command:p,args:m})},this.call=function(p,m,g){if(g){var v=this.callbackId++;this.callbacks[v]=g,m.push(v)}this.send(p,m)},this.emit=function(p,m){try{m.data&&m.data.err&&(m.data.err={message:m.data.err.message,stack:m.data.err.stack,code:m.data.err.code}),this.$worker&&this.$worker.postMessage({event:p,data:{data:m.data}})}catch(g){console.error(g.stack)}},this.attachToDocument=function(p){this.$doc&&this.terminate(),this.$doc=p,this.call("setValue",[p.getValue()]),p.on("change",this.changeListener,!0)},this.changeListener=function(p){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),p.action=="insert"?this.deltaQueue.push(p.start,p.lines):this.deltaQueue.push(p.start,p.end)},this.$sendDeltaQueue=function(){var p=this.deltaQueue;p&&(this.deltaQueue=null,p.length>50&&p.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:p}))}}).call(h.prototype);var f=function(p,m,g){var v=null,A=!1,y=Object.create(l),S=[],x=new h({messageBuffer:S,terminate:function(){},postMessage:function(_){S.push(_),v&&(A?setTimeout(w):w())}});x.setEmitSync=function(_){A=_};var w=function(){var _=S.shift();_.command?v[_.command].apply(v,_.args):_.event&&y._signal(_.event,_.data)};return y.postMessage=function(_){x.onMessage({data:_})},y.callback=function(_,C){this.postMessage({type:"call",id:C,data:_})},y.emit=function(_,C){this.postMessage({type:"event",name:_,data:C})},c.loadModule(["worker",m],function(_){for(v=new _[g](y);S.length;)w()}),x};r.UIWorkerClient=f,r.WorkerClient=h,r.createWorker=d}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,a){var o=n("./range").Range,s=n("./lib/event_emitter").EventEmitter,l=n("./lib/oop"),c=function(){function u(d,h,f,p,m,g){var v=this;this.length=h,this.session=d,this.doc=d.getDocument(),this.mainClass=m,this.othersClass=g,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=p,this.$onCursorChange=function(){setTimeout(function(){v.onCursorChange()})},this.$pos=f;var A=d.getUndoManager().$undoStack||d.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=A.length,this.setup(),d.selection.on("changeCursor",this.$onCursorChange)}return u.prototype.setup=function(){var d=this,h=this.doc,f=this.session;this.selectionBefore=f.selection.toJSON(),f.selection.inMultiSelectMode&&f.selection.toSingleRange(),this.pos=h.createAnchor(this.$pos.row,this.$pos.column);var p=this.pos;p.$insertRight=!0,p.detach(),p.markerId=f.addMarker(new o(p.row,p.column,p.row,p.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(m){var g=h.createAnchor(m.row,m.column);g.$insertRight=!0,g.detach(),d.others.push(g)}),f.setUndoSelect(!1)},u.prototype.showOtherMarkers=function(){if(!this.othersActive){var d=this.session,h=this;this.othersActive=!0,this.others.forEach(function(f){f.markerId=d.addMarker(new o(f.row,f.column,f.row,f.column+h.length),h.othersClass,null,!1)})}},u.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var d=0;d<this.others.length;d++)this.session.removeMarker(this.others[d].markerId)}},u.prototype.onUpdate=function(d){if(this.$updating)return this.updateAnchors(d);var h=d;if(h.start.row===h.end.row&&h.start.row===this.pos.row){this.$updating=!0;var f=d.action==="insert"?h.end.column-h.start.column:h.start.column-h.end.column,p=h.start.column>=this.pos.column&&h.start.column<=this.pos.column+this.length+1,m=h.start.column-this.pos.column;if(this.updateAnchors(d),p&&(this.length+=f),p&&!this.session.$fromUndo){if(d.action==="insert")for(var g=this.others.length-1;g>=0;g--){var v=this.others[g],A={row:v.row,column:v.column+m};this.doc.insertMergedLines(A,d.lines)}else if(d.action==="remove")for(var g=this.others.length-1;g>=0;g--){var v=this.others[g],A={row:v.row,column:v.column+m};this.doc.remove(new o(A.row,A.column,A.row,A.column-f))}}this.$updating=!1,this.updateMarkers()}},u.prototype.updateAnchors=function(d){this.pos.onChange(d);for(var h=this.others.length;h--;)this.others[h].onChange(d);this.updateMarkers()},u.prototype.updateMarkers=function(){if(!this.$updating){var d=this,h=this.session,f=function(m,g){h.removeMarker(m.markerId),m.markerId=h.addMarker(new o(m.row,m.column,m.row,m.column+d.length),g,null,!1)};f(this.pos,this.mainClass);for(var p=this.others.length;p--;)f(this.others[p],this.othersClass)}},u.prototype.onCursorChange=function(d){if(!(this.$updating||!this.session)){var h=this.session.selection.getCursor();h.row===this.pos.row&&h.column>=this.pos.column&&h.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",d)):(this.hideOtherMarkers(),this._emit("cursorLeave",d))}},u.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},u.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var d=this.session.getUndoManager(),h=(d.$undoStack||d.$undostack).length-this.$undoStackDepth,f=0;f<h;f++)d.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},u}();l.implement(c.prototype,s),r.PlaceHolder=c}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,a){var o=n("../lib/event"),s=n("../lib/useragent");function l(u,d){return u.row==d.row&&u.column==d.column}function c(u){var d=u.domEvent,h=d.altKey,f=d.shiftKey,p=d.ctrlKey,m=u.getAccelKey(),g=u.getButton();if(p&&s.isMac&&(g=d.button),u.editor.inMultiSelectMode&&g==2){u.editor.textInput.onContextMenu(u.domEvent);return}if(!p&&!h&&!m){g===0&&u.editor.inMultiSelectMode&&u.editor.exitMultiSelectMode();return}if(g===0){var v=u.editor,A=v.selection,y=v.inMultiSelectMode,S=u.getDocumentPosition(),x=A.getCursor(),w=u.inSelection()||A.isEmpty()&&l(S,x),_=u.x,C=u.y,R=function(U){_=U.clientX,C=U.clientY},k=v.session,P=v.renderer.pixelToScreenCoordinates(_,C),N=P,L;if(v.$mouseHandler.$enableJumpToDef)p&&h||m&&h?L=f?"block":"add":h&&v.$blockSelectEnabled&&(L="block");else if(m&&!h){if(L="add",!y&&f)return}else h&&v.$blockSelectEnabled&&(L="block");if(L&&s.isMac&&d.ctrlKey&&v.$mouseHandler.cancelContextMenu(),L=="add"){if(!y&&w)return;if(!y){var I=A.toOrientedRange();v.addSelectionMarker(I)}var b=A.rangeList.rangeAtPoint(S);v.inVirtualSelectionMode=!0,f&&(b=null,I=A.ranges[0]||I,v.removeSelectionMarker(I)),v.once("mouseup",function(){var U=A.toOrientedRange();b&&U.isEmpty()&&l(b.cursor,U.cursor)?A.substractPoint(U.cursor):(f?A.substractPoint(I.cursor):I&&(v.removeSelectionMarker(I),A.addRange(I)),A.addRange(U)),v.inVirtualSelectionMode=!1})}else if(L=="block"){u.stop(),v.inVirtualSelectionMode=!0;var T,M=[],D=function(){var U=v.renderer.pixelToScreenCoordinates(_,C),$=k.screenToDocumentPosition(U.row,U.column,U.offsetX);l(N,U)&&l($,A.lead)||(N=U,v.selection.moveToPosition($),v.renderer.scrollCursorIntoView(),v.removeSelectionMarkers(M),M=A.rectangularRangeBlock(N,P),v.$mouseHandler.$clickSelection&&M.length==1&&M[0].isEmpty()&&(M[0]=v.$mouseHandler.$clickSelection.clone()),M.forEach(v.addSelectionMarker,v),v.updateSelectionMarkers())};y&&!m?A.toSingleRange():!y&&m&&(T=A.toOrientedRange(),v.addSelectionMarker(T)),f?P=k.documentToScreenPosition(A.lead):A.moveToPosition(S),N={row:-1,column:-1};var B=function(U){D(),clearInterval(H),v.removeSelectionMarkers(M),M.length||(M=[A.toOrientedRange()]),T&&(v.removeSelectionMarker(T),A.toSingleRange(T));for(var $=0;$<M.length;$++)A.addRange(M[$]);v.inVirtualSelectionMode=!1,v.$mouseHandler.$clickSelection=null},j=D;o.capture(v.container,R,B);var H=setInterval(function(){j()},20);return u.preventDefault()}}}r.onMouseDown=c}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,a){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(s){s.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(s){s.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(s){s.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(s){s.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(s){s.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(s){s.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(s){s.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(s){s.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(s){s.multiSelect.rangeCount>1?s.multiSelect.joinSelections():s.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(s){s.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(s){s.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(s){s.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(s){s.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(s){return s&&s.inMultiSelectMode}}];var o=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new o(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,r,a){var o=n("./range_list").RangeList,s=n("./range").Range,l=n("./selection").Selection,c=n("./mouse/multi_select_handler").onMouseDown,u=n("./lib/event"),d=n("./lib/lang"),h=n("./commands/multi_select_commands");r.commands=h.defaultCommands.concat(h.multiSelectCommands);var f=n("./search").Search,p=new f;function m(x,w,_){return p.$options.wrap=!0,p.$options.needle=w,p.$options.backwards=_==-1,p.find(x)}var g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(x,w){if(x){if(!this.inMultiSelectMode&&this.rangeCount===0){var _=this.toOrientedRange();if(this.rangeList.add(_),this.rangeList.add(x),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),w||this.fromOrientedRange(x);this.rangeList.removeAll(),this.rangeList.add(_),this.$onAddRange(_)}x.cursor||(x.cursor=x.end);var C=this.rangeList.add(x);return this.$onAddRange(x),C.length&&this.$onRemoveRange(C),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(x)}},this.toSingleRange=function(x){x=x||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),x&&this.fromOrientedRange(x)},this.substractPoint=function(x){var w=this.rangeList.substractPoint(x);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var x=this.rangeList.merge();x.length&&this.$onRemoveRange(x)},this.$onAddRange=function(x){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(x),this._signal("addRange",{range:x})},this.$onRemoveRange=function(x){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();x.push(w),this.rangeCount=0}for(var _=x.length;_--;){var C=this.ranges.indexOf(x[_]);this.ranges.splice(C,1)}this._signal("removeRange",{ranges:x}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var x=this.ranges.length?this.ranges:[this.getRange()],w=[],_=0;_<x.length;_++){var C=x[_],R=C.start.row,k=C.end.row;if(R===k)w.push(C.clone());else{for(w.push(new s(R,C.start.column,R,this.session.getLine(R).length));++R<k;)w.push(this.getLineRange(R,!0));w.push(new s(k,0,k,C.end.column))}_==0&&!this.isBackwards()&&(w=w.reverse())}this.toSingleRange();for(var _=w.length;_--;)this.addRange(w[_])},this.joinSelections=function(){var x=this.rangeList.ranges,w=x[x.length-1],_=s.fromPoints(x[0].start,w.end);this.toSingleRange(),this.setSelectionRange(_,w.cursor==w.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var x=this.rangeList.ranges,w=x[x.length-1],_=s.fromPoints(x[0].start,w.end);this.toSingleRange(),this.setSelectionRange(_,w.cursor==w.start)}else{var C=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(C,R);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(x,w,_){var C=[],R=x.column<w.column;if(R)var k=x.column,P=w.column,N=x.offsetX,L=w.offsetX;else var k=w.column,P=x.column,N=w.offsetX,L=x.offsetX;var I=x.row<w.row;if(I)var b=x.row,T=w.row;else var b=w.row,T=x.row;k<0&&(k=0),b<0&&(b=0),b==T&&(_=!0);for(var M,D=b;D<=T;D++){var B=s.fromPoints(this.session.screenToDocumentPosition(D,k,N),this.session.screenToDocumentPosition(D,P,L));if(B.isEmpty()){if(M&&A(B.end,M))break;M=B.end}B.cursor=R?B.start:B.end,C.push(B)}if(I&&C.reverse(),!_){for(var j=C.length-1;C[j].isEmpty()&&j>0;)j--;if(j>0)for(var H=0;C[H].isEmpty();)H++;for(var U=j;U>=H;U--)C[U].isEmpty()&&C.splice(U,1)}return C}}).call(l.prototype);var v=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(x){x.cursor||(x.cursor=x.end);var w=this.getSelectionStyle();return x.marker=this.session.addMarker(x,"ace_selection",w),this.session.$selectionMarkers.push(x),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,x},this.removeSelectionMarker=function(x){if(x.marker){this.session.removeMarker(x.marker);var w=this.session.$selectionMarkers.indexOf(x);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(x){for(var w=this.session.$selectionMarkers,_=x.length;_--;){var C=x[_];if(C.marker){this.session.removeMarker(C.marker);var R=w.indexOf(C);R!=-1&&w.splice(R,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(x){this.addSelectionMarker(x.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(x){this.removeSelectionMarkers(x.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(x){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(h.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(x){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(h.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(x){var w=x.command,_=x.editor;if(_.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?C=_.forEachSelection(w,x.args):w.multiSelectAction=="forEachLine"?C=_.forEachSelection(w,x.args,!0):w.multiSelectAction=="single"?(_.exitMultiSelectMode(),C=w.exec(_,x.args||{})):C=w.multiSelectAction(_,x.args||{});else{var C=w.exec(_,x.args||{});_.multiSelect.addRange(_.multiSelect.toOrientedRange()),_.multiSelect.mergeOverlappingRanges()}return C}},this.forEachSelection=function(x,w,_){if(!this.inVirtualSelectionMode){var C=_&&_.keepOrder,R=_==!0||_&&_.$byLines,k=this.session,P=this.selection,N=P.rangeList,L=(C?P:N).ranges,I;if(!L.length)return x.exec?x.exec(this,w||{}):x(this,w||{});var b=P._eventRegistry;P._eventRegistry={};var T=new l(k);this.inVirtualSelectionMode=!0;for(var M=L.length;M--;){if(R)for(;M>0&&L[M].start.row==L[M-1].end.row;)M--;T.fromOrientedRange(L[M]),T.index=M,this.selection=k.selection=T;var D=x.exec?x.exec(this,w||{}):x(this,w||{});!I&&D!==void 0&&(I=D),T.toOrientedRange(L[M])}T.detach(),this.selection=k.selection=P,this.inVirtualSelectionMode=!1,P._eventRegistry=b,P.mergeOverlappingRanges(),P.ranges[0]&&P.fromOrientedRange(P.ranges[0]);var B=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),B&&B.from==B.to&&this.renderer.animateScrolling(B.from),I}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var x="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,_=[],C=0;C<w.length;C++)_.push(this.session.getTextRange(w[C]));var R=this.session.getDocument().getNewLineCharacter();x=_.join(R),x.length==(_.length-1)*R.length&&(x="")}else this.selection.isEmpty()||(x=this.session.getTextRange(this.getSelectionRange()));return x},this.$checkMultiselectChange=function(x,w){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var _=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&w==this.multiSelect.anchor)return;var C=w==this.multiSelect.anchor?_.cursor==_.start?_.end:_.start:_.cursor;C.row!=w.row||this.session.$clipPositionToDocument(C.row,C.column).column!=w.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(x,w,_){if(w=w||{},w.needle=x||w.needle,w.needle==null){var C=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();w.needle=this.session.getTextRange(C)}this.$search.set(w);var R=this.$search.findAll(this.session);if(!R.length)return 0;var k=this.multiSelect;_||k.toSingleRange(R[0]);for(var P=R.length;P--;)k.addRange(R[P],!0);return C&&k.rangeList.rangeAtPoint(C.start)&&k.addRange(C,!0),R.length},this.selectMoreLines=function(x,w){var _=this.selection.toOrientedRange(),C=_.cursor==_.end,R=this.session.documentToScreenPosition(_.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var k=this.session.screenToDocumentPosition(R.row+x,R.column);if(_.isEmpty())var N=k;else var P=this.session.documentToScreenPosition(C?_.end:_.start),N=this.session.screenToDocumentPosition(P.row+x,P.column);if(C){var L=s.fromPoints(k,N);L.cursor=L.start}else{var L=s.fromPoints(N,k);L.cursor=L.end}if(L.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(_);else if(w)var I=_.cursor;this.selection.addRange(L),I&&this.selection.substractPoint(I)},this.transposeSelections=function(x){for(var w=this.session,_=w.multiSelect,C=_.ranges,R=C.length;R--;){var k=C[R];if(k.isEmpty()){var P=w.getWordRange(k.start.row,k.start.column);k.start.row=P.start.row,k.start.column=P.start.column,k.end.row=P.end.row,k.end.column=P.end.column}}_.mergeOverlappingRanges();for(var N=[],R=C.length;R--;){var k=C[R];N.unshift(w.getTextRange(k))}x<0?N.unshift(N.pop()):N.push(N.shift());for(var R=C.length;R--;){var k=C[R],L=k.clone();w.replace(k,N[R]),k.start.row=L.start.row,k.start.column=L.start.column}_.fromOrientedRange(_.ranges[0])},this.selectMore=function(x,w,_){var C=this.session,R=C.multiSelect,k=R.toOrientedRange();if(!(k.isEmpty()&&(k=C.getWordRange(k.start.row,k.start.column),k.cursor=x==-1?k.start:k.end,this.multiSelect.addRange(k),_))){var P=C.getTextRange(k),N=m(C,P,x);N&&(N.cursor=x==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),w&&this.multiSelect.substractPoint(k.cursor)}},this.alignCursors=function(){var x=this.session,w=x.multiSelect,_=w.ranges,C=-1,R=_.filter(function(j){if(j.cursor.row==C)return!0;C=j.cursor.row});if(!_.length||R.length==_.length-1){var k=this.selection.getRange(),P=k.start.row,N=k.end.row,L=P==N;if(L){var I=this.session.getLength(),b;do b=this.session.getLine(N);while(/[=:]/.test(b)&&++N<I);do b=this.session.getLine(P);while(/[=:]/.test(b)&&--P>0);P<0&&(P=0),N>=I&&(N=I-1)}var T=this.session.removeFullLines(P,N);T=this.$reAlignText(T,L),this.session.insert({row:P,column:0},T.join(`
`)+`
`),L||(k.start.column=0,k.end.column=T[T.length-1].length),this.selection.setRange(k)}else{R.forEach(function(j){w.substractPoint(j.cursor)});var M=0,D=1/0,B=_.map(function(j){var H=j.cursor,U=x.getLine(H.row),$=U.substr(H.column).search(/\S/g);return $==-1&&($=0),H.column>M&&(M=H.column),$<D&&(D=$),$});_.forEach(function(j,H){var U=j.cursor,$=M-U.column,z=B[H]-D;$>z?x.insert(U,d.stringRepeat(" ",$-z)):x.remove(new s(U.row,U.column,U.row,U.column-$+z)),j.start.column=j.end.column=M,j.start.row=j.end.row=U.row,j.cursor=j.end}),w.fromOrientedRange(_[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(x,w){var _=!0,C=!0,R,k,P;return x.map(function(T){var M=T.match(/(\s*)(.*?)(\s*)([=:].*)/);return M?R==null?(R=M[1].length,k=M[2].length,P=M[3].length,M):(R+k+P!=M[1].length+M[2].length+M[3].length&&(C=!1),R!=M[1].length&&(_=!1),R>M[1].length&&(R=M[1].length),k<M[2].length&&(k=M[2].length),P>M[3].length&&(P=M[3].length),M):[T]}).map(w?L:_?C?I:L:b);function N(T){return d.stringRepeat(" ",T)}function L(T){return T[2]?N(R)+T[2]+N(k-T[2].length+P)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function I(T){return T[2]?N(R+k-T[2].length)+T[2]+N(P)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}function b(T){return T[2]?N(R)+T[2]+N(P)+T[4].replace(/^([=:])\s+/,"$1 "):T[0]}}}).call(v.prototype);function A(x,w){return x.row==w.row&&x.column==w.column}r.onSessionChange=function(x){var w=x.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var _=x.oldSession;_&&(_.multiSelect.off("addRange",this.$onAddRange),_.multiSelect.off("removeRange",this.$onRemoveRange),_.multiSelect.off("multiSelect",this.$onMultiSelect),_.multiSelect.off("singleSelect",this.$onSingleSelect),_.multiSelect.lead.off("change",this.$checkMultiselectChange),_.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(x){x.$multiselectOnSessionChange||(x.$onAddRange=x.$onAddRange.bind(x),x.$onRemoveRange=x.$onRemoveRange.bind(x),x.$onMultiSelect=x.$onMultiSelect.bind(x),x.$onSingleSelect=x.$onSingleSelect.bind(x),x.$multiselectOnSessionChange=r.onSessionChange.bind(x),x.$checkMultiselectChange=x.$checkMultiselectChange.bind(x),x.$multiselectOnSessionChange(x),x.on("changeSession",x.$multiselectOnSessionChange),x.on("mousedown",c),x.commands.addCommands(h.defaultCommands),S(x))}function S(x){if(!x.textInput)return;var w=x.textInput.getElement(),_=!1;u.addListener(w,"keydown",function(R){var k=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);x.$blockSelectEnabled&&k?_||(x.renderer.setMouseCursor("crosshair"),_=!0):_&&C()},x),u.addListener(w,"keyup",C,x),u.addListener(w,"blur",C,x);function C(R){_&&(x.renderer.setMouseCursor(""),_=!1)}}r.MultiSelect=y,n("./config").defineOptions(v.prototype,"editor",{enableMultiselect:{set:function(x){y(this),x?this.on("mousedown",c):this.off("mousedown",c)},value:!0},enableBlockSelect:{set:function(x){this.$blockSelectEnabled=x},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,a){var o=n("../../range").Range,s=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(l,c,u){var d=l.getLine(u);return this.foldingStartMarker.test(d)?"start":c=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(d)?"end":""},this.getFoldWidgetRange=function(l,c,u){return null},this.indentationBlock=function(l,c,u){var d=/\S/,h=l.getLine(c),f=h.search(d);if(f!=-1){for(var p=u||h.length,m=l.getLength(),g=c,v=c;++c<m;){var A=l.getLine(c).search(d);if(A!=-1){if(A<=f){var y=l.getTokenAt(c,0);if(!y||y.type!=="string")break}v=c}}if(v>g){var S=l.getLine(v).length;return new o(g,p,v,S)}}},this.openingBracketBlock=function(l,c,u,d,h){var f={row:u,column:d+1},p=l.$findClosingBracket(c,f,h);if(p){var m=l.foldWidgets[p.row];return m==null&&(m=l.getFoldWidget(p.row)),m=="start"&&p.row>f.row&&(p.row--,p.column=l.getLine(p.row).length),o.fromPoints(f,p)}},this.closingBracketBlock=function(l,c,u,d,h){var f={row:u,column:d},p=l.$findOpeningBracket(c,f);if(p)return p.column++,f.column--,o.fromPoints(p,f)}}).call(s.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,r,a){var o=n("../line_widgets").LineWidgets,s=n("../lib/dom"),l=n("../range").Range,c=n("../config").nls;function u(h,f,p){for(var m=0,g=h.length-1;m<=g;){var v=m+g>>1,A=p(f,h[v]);if(A>0)m=v+1;else if(A<0)g=v-1;else return v}return-(m+1)}function d(h,f,p){var m=h.getAnnotations().sort(l.comparePoints);if(m.length){var g=u(m,{row:f,column:-1},l.comparePoints);g<0&&(g=-g-1),g>=m.length?g=p>0?0:m.length-1:g===0&&p<0&&(g=m.length-1);var v=m[g];if(!(!v||!p)){if(v.row===f){do v=m[g+=p];while(v&&v.row===f);if(!v)return m.slice()}var A=[];f=v.row;do A[p<0?"unshift":"push"](v),v=m[g+=p];while(v&&v.row==f);return A.length&&A}}}r.showErrorMarker=function(h,f){var p=h.session;p.widgetManager||(p.widgetManager=new o(p),p.widgetManager.attach(h));var m=h.getCursorPosition(),g=m.row,v=p.widgetManager.getWidgetsAtRow(g).filter(function(k){return k.type=="errorMarker"})[0];v?v.destroy():g-=f;var A=d(p,g,f),y;if(A){var S=A[0];m.column=(S.pos&&typeof S.column!="number"?S.pos.sc:S.column)||0,m.row=S.row,y=h.renderer.$gutterLayer.$annotations[m.row]}else{if(v)return;y={text:[c("error-marker.good-state","Looks good!")],className:"ace_ok"}}h.session.unfold(m.row),h.selection.moveToPosition(m);var x={row:m.row,fixedWidth:!0,coverGutter:!0,el:s.createElement("div"),type:"errorMarker"},w=x.el.appendChild(s.createElement("div")),_=x.el.appendChild(s.createElement("div"));_.className="error_widget_arrow "+y.className;var C=h.renderer.$cursorLayer.getPixelPosition(m).left;_.style.left=C+h.renderer.gutterWidth-5+"px",x.el.className="error_widget_wrapper",w.className="error_widget "+y.className,w.innerHTML=y.text.join("<br>"),w.appendChild(s.createElement("div"));var R=function(k,P,N){if(P===0&&(N==="esc"||N==="return"))return x.destroy(),{command:"null"}};x.destroy=function(){h.$mouseHandler.isMousePressed||(h.keyBinding.removeKeyboardHandler(R),p.widgetManager.removeLineWidget(x),h.off("changeSelection",x.destroy),h.off("changeSession",x.destroy),h.off("mouseup",x.destroy),h.off("change",x.destroy))},h.keyBinding.addKeyboardHandler(R),h.on("changeSelection",x.destroy),h.on("changeSession",x.destroy),h.on("mouseup",x.destroy),h.on("change",x.destroy),h.session.widgetManager.addLineWidget(x),x.el.onmousedown=h.focus.bind(h),h.renderer.scrollCursorIntoView(null,.5,{bottom:x.el.offsetHeight})},s.importCssString(`
    .error_widget_wrapper {
        background: inherit;
        color: inherit;
        border:none
    }
    .error_widget {
        border-top: solid 2px;
        border-bottom: solid 2px;
        margin: 5px 0;
        padding: 10px 40px;
        white-space: pre-wrap;
    }
    .error_widget.ace_error, .error_widget_arrow.ace_error{
        border-color: #ff5a5a
    }
    .error_widget.ace_warning, .error_widget_arrow.ace_warning{
        border-color: #F1D817
    }
    .error_widget.ace_info, .error_widget_arrow.ace_info{
        border-color: #5a5a5a
    }
    .error_widget.ace_ok, .error_widget_arrow.ace_ok{
        border-color: #5aaa5a
    }
    .error_widget_arrow {
        position: absolute;
        border: solid 5px;
        border-top-color: transparent!important;
        border-right-color: transparent!important;
        border-left-color: transparent!important;
        top: -5px;
    }
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,r,a){n("./loader_build")(r);var o=n("./lib/dom"),s=n("./range").Range,l=n("./editor").Editor,c=n("./edit_session").EditSession,u=n("./undomanager").UndoManager,d=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(h,f){if(typeof h=="string"){var p=h;if(h=document.getElementById(p),!h)throw new Error("ace.edit can't find div #"+p)}if(h&&h.env&&h.env.editor instanceof l)return h.env.editor;var m="";if(h&&/input|textarea/i.test(h.tagName)){var g=h;m=g.value,h=o.createElement("pre"),g.parentNode.replaceChild(h,g)}else h&&(m=h.textContent,h.innerHTML="");var v=r.createEditSession(m),A=new l(new d(h),v,f),y={document:v,editor:A,onResize:A.resize.bind(A,null)};return g&&(y.textarea=g),A.on("destroy",function(){y.editor.container.env=null}),A.container.env=A.env=y,A},r.createEditSession=function(h,f){var p=new c(h,f);return p.setUndoManager(new u),p},r.Range=s,r.Editor=l,r.EditSession=c,r.UndoManager=u,r.VirtualRenderer=d,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var a in n)n.hasOwnProperty(a)&&(r.ace[a]=n[a]);r.ace.default=r.ace,t&&(t.exports=r.ace)})}()})(bzn);var Pye=bzn.exports,lw={};Object.defineProperty(lw,"__esModule",{value:!0});lw.getAceInstance=lw.debounce=lw.editorEvents=lw.editorOptions=void 0;var zMo=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];lw.editorOptions=zMo;var GMo=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];lw.editorEvents=GMo;var VMo=function(){var t;return typeof window>"u"?(en.window={},t=Pye,delete en.window):window.ace?(t=window.ace,t.acequire=window.ace.require||window.ace.acequire):t=Pye,t};lw.getAceInstance=VMo;var KMo=function(t,e){var n=null;return function(){var r=this,a=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(r,a)},e)}};lw.debounce=KMo;var WMo=en&&en.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xQe=en&&en.__assign||function(){return xQe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},xQe.apply(this,arguments)};Object.defineProperty(nct,"__esModule",{value:!0});var QMo=Pye,Fa=Xy,BDt=Y,Qhe=wet,SF=lw,DDt=(0,SF.getAceInstance)(),qMo=function(t){WMo(e,t);function e(n){var r=t.call(this,n)||this;return SF.editorEvents.forEach(function(a){r[a]=r[a].bind(r)}),r.debounce=SF.debounce,r}return e.prototype.isInShadow=function(n){for(var r=n&&n.parentNode;r;){if(r.toString()==="[object ShadowRoot]")return!0;r=r.parentNode}return!1},e.prototype.componentDidMount=function(){var n=this,r=this.props,a=r.className,o=r.onBeforeLoad,s=r.onValidate,l=r.mode,c=r.focus,u=r.theme,d=r.fontSize,h=r.value,f=r.defaultValue,p=r.showGutter,m=r.wrapEnabled,g=r.showPrintMargin,v=r.scrollMargin,A=v===void 0?[0,0,0,0]:v,y=r.keyboardHandler,S=r.onLoad,x=r.commands,w=r.annotations,_=r.markers,C=r.placeholder;this.editor=DDt.edit(this.refEditor),o&&o(DDt);for(var R=Object.keys(this.props.editorProps),k=0;k<R.length;k++)this.editor[R[k]]=this.props.editorProps[R[k]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(A[0],A[1],A[2],A[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof l=="string"?"ace/mode/"+l:l),u&&u!==""&&this.editor.setTheme("ace/theme/"+u),this.editor.setFontSize(typeof d=="number"?d+"px":d),this.editor.getSession().setValue(f||h||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(p),this.editor.getSession().setUseWrapMode(m),this.editor.setShowPrintMargin(g),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),C&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),s&&this.editor.getSession().on("changeAnnotation",function(){var N=n.editor.getSession().getAnnotations();n.props.onValidate(N)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(w||[]),_&&_.length>0&&this.handleMarkers(_);var P=this.editor.$options;SF.editorOptions.forEach(function(N){P.hasOwnProperty(N)?n.editor.setOption(N,n.props[N]):n.props[N]&&console.warn("ReactAce: editor option "+N+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")}),this.handleOptions(this.props),Array.isArray(x)&&x.forEach(function(N){typeof N.exec=="string"?n.editor.commands.bindKey(N.bindKey,N.exec):n.editor.commands.addCommand(N)}),y&&this.editor.setKeyboardHandler("ace/keyboard/"+y),a&&(this.refEditor.className+=" "+a),S&&S(this.editor),this.editor.resize(),c&&this.editor.focus()},e.prototype.componentDidUpdate=function(n){for(var r=n,a=this.props,o=0;o<SF.editorOptions.length;o++){var s=SF.editorOptions[o];a[s]!==r[s]&&this.editor.setOption(s,a[s])}if(a.className!==r.className){var l=this.refEditor.className,c=l.trim().split(" "),u=r.className.trim().split(" ");u.forEach(function(h){var f=c.indexOf(h);c.splice(f,1)}),this.refEditor.className=" "+a.className+" "+c.join(" ")}if(this.editor&&a.value!=null&&this.editor.getValue()!==a.value){this.silent=!0;var d=this.editor.session.selection.toJSON();this.editor.setValue(a.value,a.cursorStart),this.editor.session.selection.fromJSON(d),this.silent=!1}a.placeholder!==r.placeholder&&this.updatePlaceholder(),a.mode!==r.mode&&this.editor.getSession().setMode(typeof a.mode=="string"?"ace/mode/"+a.mode:a.mode),a.theme!==r.theme&&this.editor.setTheme("ace/theme/"+a.theme),a.keyboardHandler!==r.keyboardHandler&&(a.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+a.keyboardHandler):this.editor.setKeyboardHandler(null)),a.fontSize!==r.fontSize&&this.editor.setFontSize(typeof a.fontSize=="number"?a.fontSize+"px":a.fontSize),a.wrapEnabled!==r.wrapEnabled&&this.editor.getSession().setUseWrapMode(a.wrapEnabled),a.showPrintMargin!==r.showPrintMargin&&this.editor.setShowPrintMargin(a.showPrintMargin),a.showGutter!==r.showGutter&&this.editor.renderer.setShowGutter(a.showGutter),Qhe(a.setOptions,r.setOptions)||this.handleOptions(a),Qhe(a.annotations,r.annotations)||this.editor.getSession().setAnnotations(a.annotations||[]),!Qhe(a.markers,r.markers)&&Array.isArray(a.markers)&&this.handleMarkers(a.markers),Qhe(a.scrollMargin,r.scrollMargin)||this.handleScrollMargins(a.scrollMargin),(n.height!==this.props.height||n.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!n.focus&&this.editor.focus()},e.prototype.handleScrollMargins=function(n){n===void 0&&(n=[0,0,0,0]),this.editor.renderer.setScrollMargin(n[0],n[1],n[2],n[3])},e.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},e.prototype.onChange=function(n){if(this.props.onChange&&!this.silent){var r=this.editor.getValue();this.props.onChange(r,n)}},e.prototype.onSelectionChange=function(n){if(this.props.onSelectionChange){var r=this.editor.getSelection();this.props.onSelectionChange(r,n)}},e.prototype.onCursorChange=function(n){if(this.props.onCursorChange){var r=this.editor.getSelection();this.props.onCursorChange(r,n)}},e.prototype.onInput=function(n){this.props.onInput&&this.props.onInput(n),this.props.placeholder&&this.updatePlaceholder()},e.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n,this.editor)},e.prototype.onBlur=function(n){this.props.onBlur&&this.props.onBlur(n,this.editor)},e.prototype.onCopy=function(n){var r=n.text;this.props.onCopy&&this.props.onCopy(r)},e.prototype.onPaste=function(n){var r=n.text;this.props.onPaste&&this.props.onPaste(r)},e.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},e.prototype.handleOptions=function(n){for(var r=Object.keys(n.setOptions),a=0;a<r.length;a++)this.editor.setOption(r[a],n.setOptions[r[a]])},e.prototype.handleMarkers=function(n){var r=this,a=this.editor.getSession().getMarkers(!0);for(var o in a)a.hasOwnProperty(o)&&this.editor.getSession().removeMarker(a[o].id);a=this.editor.getSession().getMarkers(!1);for(var o in a)a.hasOwnProperty(o)&&a[o].clazz!=="ace_active-line"&&a[o].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(a[o].id);n.forEach(function(s){var l=s.startRow,c=s.startCol,u=s.endRow,d=s.endCol,h=s.className,f=s.type,p=s.inFront,m=p===void 0?!1:p,g=new QMo.Range(l,c,u,d);r.editor.getSession().addMarker(g,h,f,m)})},e.prototype.updatePlaceholder=function(){var n=this.editor,r=this.props.placeholder,a=!n.session.getValue().length,o=n.renderer.placeholderNode;!a&&o?(n.renderer.scroller.removeChild(n.renderer.placeholderNode),n.renderer.placeholderNode=null):a&&!o?(o=n.renderer.placeholderNode=document.createElement("div"),o.textContent=r||"",o.className="ace_comment ace_placeholder",o.style.padding="0 9px",o.style.position="absolute",o.style.zIndex="3",n.renderer.scroller.appendChild(o)):a&&o&&(o.textContent=r)},e.prototype.updateRef=function(n){this.refEditor=n},e.prototype.render=function(){var n=this.props,r=n.name,a=n.width,o=n.height,s=n.style,l=xQe({width:a,height:o},s);return BDt.createElement("div",{ref:this.updateRef,id:r,style:l})},e.propTypes={mode:Fa.oneOfType([Fa.string,Fa.object]),focus:Fa.bool,theme:Fa.string,name:Fa.string,className:Fa.string,height:Fa.string,width:Fa.string,fontSize:Fa.oneOfType([Fa.number,Fa.string]),showGutter:Fa.bool,onChange:Fa.func,onCopy:Fa.func,onPaste:Fa.func,onFocus:Fa.func,onInput:Fa.func,onBlur:Fa.func,onScroll:Fa.func,value:Fa.string,defaultValue:Fa.string,onLoad:Fa.func,onSelectionChange:Fa.func,onCursorChange:Fa.func,onBeforeLoad:Fa.func,onValidate:Fa.func,minLines:Fa.number,maxLines:Fa.number,readOnly:Fa.bool,highlightActiveLine:Fa.bool,tabSize:Fa.number,showPrintMargin:Fa.bool,cursorStart:Fa.number,debounceChangePeriod:Fa.number,editorProps:Fa.object,setOptions:Fa.object,style:Fa.object,scrollMargin:Fa.array,annotations:Fa.array,markers:Fa.array,keyboardHandler:Fa.string,wrapEnabled:Fa.bool,enableSnippets:Fa.bool,enableBasicAutocompletion:Fa.oneOfType([Fa.bool,Fa.array]),enableLiveAutocompletion:Fa.oneOfType([Fa.bool,Fa.array]),navigateToFileEnd:Fa.bool,commands:Fa.array,placeholder:Fa.string},e.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},e}(BDt.Component);nct.default=qMo;var rct={},J2e={},xzn={exports:{}};(function(t,e){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(n,r,a){var o=n("./lib/oop");n("./lib/lang");var s=n("./lib/event_emitter").EventEmitter,l=n("./editor").Editor,c=n("./virtual_renderer").VirtualRenderer,u=n("./edit_session").EditSession,d;d=function(h,f,p){this.BELOW=1,this.BESIDE=0,this.$container=h,this.$theme=f,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(p||1),this.$cEditor=this.$editors[0],this.on("focus",(function(m){this.$cEditor=m}).bind(this))},(function(){o.implement(this,s),this.$createEditor=function(){var h=document.createElement("div");h.className=this.$editorCSS,h.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(h);var f=new l(new c(h,this.$theme));return f.on("focus",(function(){this._emit("focus",f)}).bind(this)),this.$editors.push(f),f.setFontSize(this.$fontSize),f},this.setSplits=function(h){var f;if(h<1)throw"The number of splits have to be > 0!";if(h!=this.$splits){if(h>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<h;)f=this.$editors[this.$splits],this.$container.appendChild(f.container),f.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<h;)this.$createEditor(),this.$splits++}else for(;this.$splits>h;)f=this.$editors[this.$splits-1],this.$container.removeChild(f.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(h){return this.$editors[h]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(h){this.$editors.forEach(function(f){f.setTheme(h)})},this.setKeyboardHandler=function(h){this.$editors.forEach(function(f){f.setKeyboardHandler(h)})},this.forEach=function(h,f){this.$editors.forEach(h,f)},this.$fontSize="",this.setFontSize=function(h){this.$fontSize=h,this.forEach(function(f){f.setFontSize(h)})},this.$cloneSession=function(h){var f=new u(h.getDocument(),h.getMode()),p=h.getUndoManager();return f.setUndoManager(p),f.setTabSize(h.getTabSize()),f.setUseSoftTabs(h.getUseSoftTabs()),f.setOverwrite(h.getOverwrite()),f.setBreakpoints(h.getBreakpoints()),f.setUseWrapMode(h.getUseWrapMode()),f.setUseWorker(h.getUseWorker()),f.setWrapLimitRange(h.$wrapLimitRange.min,h.$wrapLimitRange.max),f.$foldData=h.$cloneFoldData(),f},this.setSession=function(h,f){var p;f==null?p=this.$cEditor:p=this.$editors[f];var m=this.$editors.some(function(g){return g.session===h});return m&&(h=this.$cloneSession(h)),p.setSession(h),h},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(h){this.$orientation!=h&&(this.$orientation=h,this.resize())},this.resize=function(){var h=this.$container.clientWidth,f=this.$container.clientHeight,p;if(this.$orientation==this.BESIDE)for(var m=h/this.$splits,g=0;g<this.$splits;g++)p=this.$editors[g],p.container.style.width=m+"px",p.container.style.top="0px",p.container.style.left=g*m+"px",p.container.style.height=f+"px",p.resize();else for(var v=f/this.$splits,g=0;g<this.$splits;g++)p=this.$editors[g],p.container.style.width=h+"px",p.container.style.top=g*v+"px",p.container.style.left="0px",p.container.style.height=v+"px",p.resize()}}).call(d.prototype),r.Split=d}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(n,r,a){a.exports=n("../split")}),function(){ace.require(["ace/ext/split"],function(n){t&&(t.exports=n)})}()})(xzn);var YMo=xzn.exports,JMo="Expected a function",Ezn="__lodash_hash_undefined__",Szn=1/0,ZMo="[object Function]",XMo="[object GeneratorFunction]",eNo="[object Symbol]",tNo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nNo=/^\w*$/,rNo=/^\./,iNo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aNo=/[\\^$.*+?()[\]{}|]/g,oNo=/\\(\\)?/g,sNo=/^\[object .+?Constructor\]$/,lNo=typeof en=="object"&&en&&en.Object===Object&&en,cNo=typeof self=="object"&&self&&self.Object===Object&&self,ict=lNo||cNo||Function("return this")();function uNo(t,e){return t==null?void 0:t[e]}function dNo(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var hNo=Array.prototype,fNo=Function.prototype,wzn=Object.prototype,R9e=ict["__core-js_shared__"],$Dt=function(){var t=/[^.]+$/.exec(R9e&&R9e.keys&&R9e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),_zn=fNo.toString,act=wzn.hasOwnProperty,Tzn=wzn.toString,pNo=RegExp("^"+_zn.call(act).replace(aNo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),FDt=ict.Symbol,mNo=hNo.splice,gNo=Czn(ict,"Map"),Ire=Czn(Object,"create"),jDt=FDt?FDt.prototype:void 0,HDt=jDt?jDt.toString:void 0;function u8(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function vNo(){this.__data__=Ire?Ire(null):{}}function ANo(t){return this.has(t)&&delete this.__data__[t]}function yNo(t){var e=this.__data__;if(Ire){var n=e[t];return n===Ezn?void 0:n}return act.call(e,t)?e[t]:void 0}function bNo(t){var e=this.__data__;return Ire?e[t]!==void 0:act.call(e,t)}function xNo(t,e){var n=this.__data__;return n[t]=Ire&&e===void 0?Ezn:e,this}u8.prototype.clear=vNo;u8.prototype.delete=ANo;u8.prototype.get=yNo;u8.prototype.has=bNo;u8.prototype.set=xNo;function eK(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ENo(){this.__data__=[]}function SNo(t){var e=this.__data__,n=Z2e(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():mNo.call(e,n,1),!0}function wNo(t){var e=this.__data__,n=Z2e(e,t);return n<0?void 0:e[n][1]}function _No(t){return Z2e(this.__data__,t)>-1}function TNo(t,e){var n=this.__data__,r=Z2e(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}eK.prototype.clear=ENo;eK.prototype.delete=SNo;eK.prototype.get=wNo;eK.prototype.has=_No;eK.prototype.set=TNo;function L9(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function CNo(){this.__data__={hash:new u8,map:new(gNo||eK),string:new u8}}function kNo(t){return X2e(this,t).delete(t)}function RNo(t){return X2e(this,t).get(t)}function MNo(t){return X2e(this,t).has(t)}function NNo(t,e){return X2e(this,t).set(t,e),this}L9.prototype.clear=CNo;L9.prototype.delete=kNo;L9.prototype.get=RNo;L9.prototype.has=MNo;L9.prototype.set=NNo;function Z2e(t,e){for(var n=t.length;n--;)if(UNo(t[n][0],e))return n;return-1}function INo(t,e){e=BNo(e,t)?[e]:LNo(e);for(var n=0,r=e.length;t!=null&&n<r;)t=t[jNo(e[n++])];return n&&n==r?t:void 0}function PNo(t){if(!Rzn(t)||$No(t))return!1;var e=zNo(t)||dNo(t)?pNo:sNo;return e.test(HNo(t))}function ONo(t){if(typeof t=="string")return t;if(sct(t))return HDt?HDt.call(t):"";var e=t+"";return e=="0"&&1/t==-Szn?"-0":e}function LNo(t){return kzn(t)?t:FNo(t)}function X2e(t,e){var n=t.__data__;return DNo(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Czn(t,e){var n=uNo(t,e);return PNo(n)?n:void 0}function BNo(t,e){if(kzn(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||sct(t)?!0:nNo.test(t)||!tNo.test(t)||e!=null&&t in Object(e)}function DNo(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function $No(t){return!!$Dt&&$Dt in t}var FNo=oct(function(t){t=VNo(t);var e=[];return rNo.test(t)&&e.push(""),t.replace(iNo,function(n,r,a,o){e.push(a?o.replace(oNo,"$1"):r||n)}),e});function jNo(t){if(typeof t=="string"||sct(t))return t;var e=t+"";return e=="0"&&1/t==-Szn?"-0":e}function HNo(t){if(t!=null){try{return _zn.call(t)}catch{}try{return t+""}catch{}}return""}function oct(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(JMo);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,r);return n.cache=o.set(a,s),s};return n.cache=new(oct.Cache||L9),n}oct.Cache=L9;function UNo(t,e){return t===e||t!==t&&e!==e}var kzn=Array.isArray;function zNo(t){var e=Rzn(t)?Tzn.call(t):"";return e==ZMo||e==XMo}function Rzn(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function GNo(t){return!!t&&typeof t=="object"}function sct(t){return typeof t=="symbol"||GNo(t)&&Tzn.call(t)==eNo}function VNo(t){return t==null?"":ONo(t)}function KNo(t,e,n){var r=t==null?void 0:INo(t,e);return r===void 0?n:r}var WNo=KNo,QNo=en&&en.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),EQe=en&&en.__assign||function(){return EQe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},EQe.apply(this,arguments)};Object.defineProperty(J2e,"__esModule",{value:!0});var lB=lw,M9e=(0,lB.getAceInstance)(),qNo=Pye,YNo=YMo,Va=Xy,UDt=Y,N9e=wet,Hk=WNo,JNo=function(t){QNo(e,t);function e(n){var r=t.call(this,n)||this;return lB.editorEvents.forEach(function(a){r[a]=r[a].bind(r)}),r.debounce=lB.debounce,r}return e.prototype.isInShadow=function(n){for(var r=n&&n.parentNode;r;){if(r.toString()==="[object ShadowRoot]")return!0;r=r.parentNode}return!1},e.prototype.componentDidMount=function(){var n=this,r=this.props,a=r.className,o=r.onBeforeLoad,s=r.mode,l=r.focus,c=r.theme,u=r.fontSize,d=r.value,h=r.defaultValue,f=r.cursorStart,p=r.showGutter,m=r.wrapEnabled,g=r.showPrintMargin,v=r.scrollMargin,A=v===void 0?[0,0,0,0]:v,y=r.keyboardHandler,S=r.onLoad,x=r.commands,w=r.annotations,_=r.markers,C=r.splits;this.editor=M9e.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/"+c),o&&o(M9e);var R=Object.keys(this.props.editorProps),k=new YNo.Split(this.editor.container,"ace/theme/"+c,C);this.editor.env.split=k,this.splitEditor=k.getEditor(0),this.split=k,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var P=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),k.forEach(function(L,I){for(var b=0;b<R.length;b++)L[R[b]]=n.props.editorProps[R[b]];var T=Hk(h,I),M=Hk(d,I,"");L.session.setUndoManager(new M9e.UndoManager),L.setTheme("ace/theme/"+c),L.renderer.setScrollMargin(A[0],A[1],A[2],A[3]),L.getSession().setMode("ace/mode/"+s),L.setFontSize(u),L.renderer.setShowGutter(p),L.getSession().setUseWrapMode(m),L.setShowPrintMargin(g),L.on("focus",n.onFocus),L.on("blur",n.onBlur),L.on("input",n.onInput),L.on("copy",n.onCopy),L.on("paste",n.onPaste),L.on("change",n.onChange),L.getSession().selection.on("changeSelection",n.onSelectionChange),L.getSession().selection.on("changeCursor",n.onCursorChange),L.session.on("changeScrollTop",n.onScroll),L.setValue(T===void 0?M:T,f);var D=Hk(w,I,[]),B=Hk(_,I,[]);L.getSession().setAnnotations(D),B&&B.length>0&&n.handleMarkers(B,L);for(var b=0;b<lB.editorOptions.length;b++){var j=lB.editorOptions[b];P.hasOwnProperty(j)?L.setOption(j,n.props[j]):n.props[j]&&console.warn("ReaceAce: editor option "+j+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")}n.handleOptions(n.props,L),Array.isArray(x)&&x.forEach(function(H){typeof H.exec=="string"?L.commands.bindKey(H.bindKey,H.exec):L.commands.addCommand(H)}),y&&L.setKeyboardHandler("ace/keyboard/"+y)}),a&&(this.refEditor.className+=" "+a),l&&this.splitEditor.focus();var N=this.editor.env.split;N.setOrientation(this.props.orientation==="below"?N.BELOW:N.BESIDE),N.resize(!0),S&&S(N)},e.prototype.componentDidUpdate=function(n){var r=this,a=n,o=this.props,s=this.editor.env.split;if(o.splits!==a.splits&&s.setSplits(o.splits),o.orientation!==a.orientation&&s.setOrientation(o.orientation==="below"?s.BELOW:s.BESIDE),s.forEach(function(d,h){o.mode!==a.mode&&d.getSession().setMode("ace/mode/"+o.mode),o.keyboardHandler!==a.keyboardHandler&&(o.keyboardHandler?d.setKeyboardHandler("ace/keyboard/"+o.keyboardHandler):d.setKeyboardHandler(null)),o.fontSize!==a.fontSize&&d.setFontSize(o.fontSize),o.wrapEnabled!==a.wrapEnabled&&d.getSession().setUseWrapMode(o.wrapEnabled),o.showPrintMargin!==a.showPrintMargin&&d.setShowPrintMargin(o.showPrintMargin),o.showGutter!==a.showGutter&&d.renderer.setShowGutter(o.showGutter);for(var f=0;f<lB.editorOptions.length;f++){var p=lB.editorOptions[f];o[p]!==a[p]&&d.setOption(p,o[p])}N9e(o.setOptions,a.setOptions)||r.handleOptions(o,d);var m=Hk(o.value,h,"");if(d.getValue()!==m){r.silent=!0;var g=d.session.selection.toJSON();d.setValue(m,o.cursorStart),d.session.selection.fromJSON(g),r.silent=!1}var v=Hk(o.annotations,h,[]),A=Hk(a.annotations,h,[]);N9e(v,A)||d.getSession().setAnnotations(v);var y=Hk(o.markers,h,[]),S=Hk(a.markers,h,[]);!N9e(y,S)&&Array.isArray(y)&&r.handleMarkers(y,d)}),o.className!==a.className){var l=this.refEditor.className,c=l.trim().split(" "),u=a.className.trim().split(" ");u.forEach(function(d){var h=c.indexOf(d);c.splice(h,1)}),this.refEditor.className=" "+o.className+" "+c.join(" ")}o.theme!==a.theme&&s.setTheme("ace/theme/"+o.theme),o.focus&&!a.focus&&this.splitEditor.focus(),(o.height!==this.props.height||o.width!==this.props.width)&&this.editor.resize()},e.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},e.prototype.onChange=function(n){if(this.props.onChange&&!this.silent){var r=[];this.editor.env.split.forEach(function(a){r.push(a.getValue())}),this.props.onChange(r,n)}},e.prototype.onSelectionChange=function(n){if(this.props.onSelectionChange){var r=[];this.editor.env.split.forEach(function(a){r.push(a.getSelection())}),this.props.onSelectionChange(r,n)}},e.prototype.onCursorChange=function(n){if(this.props.onCursorChange){var r=[];this.editor.env.split.forEach(function(a){r.push(a.getSelection())}),this.props.onCursorChange(r,n)}},e.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n)},e.prototype.onInput=function(n){this.props.onInput&&this.props.onInput(n)},e.prototype.onBlur=function(n){this.props.onBlur&&this.props.onBlur(n)},e.prototype.onCopy=function(n){this.props.onCopy&&this.props.onCopy(n)},e.prototype.onPaste=function(n){this.props.onPaste&&this.props.onPaste(n)},e.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},e.prototype.handleOptions=function(n,r){for(var a=Object.keys(n.setOptions),o=0;o<a.length;o++)r.setOption(a[o],n.setOptions[a[o]])},e.prototype.handleMarkers=function(n,r){var a=r.getSession().getMarkers(!0);for(var o in a)a.hasOwnProperty(o)&&r.getSession().removeMarker(a[o].id);a=r.getSession().getMarkers(!1);for(var o in a)a.hasOwnProperty(o)&&r.getSession().removeMarker(a[o].id);n.forEach(function(s){var l=s.startRow,c=s.startCol,u=s.endRow,d=s.endCol,h=s.className,f=s.type,p=s.inFront,m=p===void 0?!1:p,g=new qNo.Range(l,c,u,d);r.getSession().addMarker(g,h,f,m)})},e.prototype.updateRef=function(n){this.refEditor=n},e.prototype.render=function(){var n=this.props,r=n.name,a=n.width,o=n.height,s=n.style,l=EQe({width:a,height:o},s);return UDt.createElement("div",{ref:this.updateRef,id:r,style:l})},e.propTypes={className:Va.string,debounceChangePeriod:Va.number,defaultValue:Va.arrayOf(Va.string),focus:Va.bool,fontSize:Va.oneOfType([Va.number,Va.string]),height:Va.string,mode:Va.string,name:Va.string,onBlur:Va.func,onChange:Va.func,onCopy:Va.func,onFocus:Va.func,onInput:Va.func,onLoad:Va.func,onPaste:Va.func,onScroll:Va.func,orientation:Va.string,showGutter:Va.bool,splits:Va.number,theme:Va.string,value:Va.arrayOf(Va.string),width:Va.string,onSelectionChange:Va.func,onCursorChange:Va.func,onBeforeLoad:Va.func,minLines:Va.number,maxLines:Va.number,readOnly:Va.bool,highlightActiveLine:Va.bool,tabSize:Va.number,showPrintMargin:Va.bool,cursorStart:Va.number,editorProps:Va.object,setOptions:Va.object,style:Va.object,scrollMargin:Va.array,annotations:Va.array,markers:Va.array,keyboardHandler:Va.string,wrapEnabled:Va.bool,enableBasicAutocompletion:Va.oneOfType([Va.bool,Va.array]),enableLiveAutocompletion:Va.oneOfType([Va.bool,Va.array]),commands:Va.array},e.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},e}(UDt.Component);J2e.default=JNo;var Mzn={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(o,s){return[o,s]},e.prototype.diff_main=function(o,s,l,c){typeof c>"u"&&(this.Diff_Timeout<=0?c=Number.MAX_VALUE:c=new Date().getTime()+this.Diff_Timeout*1e3);var u=c;if(o==null||s==null)throw new Error("Null input. (diff_main)");if(o==s)return o?[new e.Diff(a,o)]:[];typeof l>"u"&&(l=!0);var d=l,h=this.diff_commonPrefix(o,s),f=o.substring(0,h);o=o.substring(h),s=s.substring(h),h=this.diff_commonSuffix(o,s);var p=o.substring(o.length-h);o=o.substring(0,o.length-h),s=s.substring(0,s.length-h);var m=this.diff_compute_(o,s,d,u);return f&&m.unshift(new e.Diff(a,f)),p&&m.push(new e.Diff(a,p)),this.diff_cleanupMerge(m),m},e.prototype.diff_compute_=function(o,s,l,c){var u;if(!o)return[new e.Diff(r,s)];if(!s)return[new e.Diff(n,o)];var d=o.length>s.length?o:s,h=o.length>s.length?s:o,f=d.indexOf(h);if(f!=-1)return u=[new e.Diff(r,d.substring(0,f)),new e.Diff(a,h),new e.Diff(r,d.substring(f+h.length))],o.length>s.length&&(u[0][0]=u[2][0]=n),u;if(h.length==1)return[new e.Diff(n,o),new e.Diff(r,s)];var p=this.diff_halfMatch_(o,s);if(p){var m=p[0],g=p[1],v=p[2],A=p[3],y=p[4],S=this.diff_main(m,v,l,c),x=this.diff_main(g,A,l,c);return S.concat([new e.Diff(a,y)],x)}return l&&o.length>100&&s.length>100?this.diff_lineMode_(o,s,c):this.diff_bisect_(o,s,c)},e.prototype.diff_lineMode_=function(o,s,l){var c=this.diff_linesToChars_(o,s);o=c.chars1,s=c.chars2;var u=c.lineArray,d=this.diff_main(o,s,!1,l);this.diff_charsToLines_(d,u),this.diff_cleanupSemantic(d),d.push(new e.Diff(a,""));for(var h=0,f=0,p=0,m="",g="";h<d.length;){switch(d[h][0]){case r:p++,g+=d[h][1];break;case n:f++,m+=d[h][1];break;case a:if(f>=1&&p>=1){d.splice(h-f-p,f+p),h=h-f-p;for(var v=this.diff_main(m,g,!1,l),A=v.length-1;A>=0;A--)d.splice(h,0,v[A]);h=h+v.length}p=0,f=0,m="",g="";break}h++}return d.pop(),d},e.prototype.diff_bisect_=function(o,s,l){for(var c=o.length,u=s.length,d=Math.ceil((c+u)/2),h=d,f=2*d,p=new Array(f),m=new Array(f),g=0;g<f;g++)p[g]=-1,m[g]=-1;p[h+1]=0,m[h+1]=0;for(var v=c-u,A=v%2!=0,y=0,S=0,x=0,w=0,_=0;_<d&&!(new Date().getTime()>l);_++){for(var C=-_+y;C<=_-S;C+=2){var R=h+C,k;C==-_||C!=_&&p[R-1]<p[R+1]?k=p[R+1]:k=p[R-1]+1;for(var P=k-C;k<c&&P<u&&o.charAt(k)==s.charAt(P);)k++,P++;if(p[R]=k,k>c)S+=2;else if(P>u)y+=2;else if(A){var N=h+v-C;if(N>=0&&N<f&&m[N]!=-1){var L=c-m[N];if(k>=L)return this.diff_bisectSplit_(o,s,k,P,l)}}}for(var I=-_+x;I<=_-w;I+=2){var N=h+I,L;I==-_||I!=_&&m[N-1]<m[N+1]?L=m[N+1]:L=m[N-1]+1;for(var b=L-I;L<c&&b<u&&o.charAt(c-L-1)==s.charAt(u-b-1);)L++,b++;if(m[N]=L,L>c)w+=2;else if(b>u)x+=2;else if(!A){var R=h+v-I;if(R>=0&&R<f&&p[R]!=-1){var k=p[R],P=h+k-R;if(L=c-L,k>=L)return this.diff_bisectSplit_(o,s,k,P,l)}}}}return[new e.Diff(n,o),new e.Diff(r,s)]},e.prototype.diff_bisectSplit_=function(o,s,l,c,u){var d=o.substring(0,l),h=s.substring(0,c),f=o.substring(l),p=s.substring(c),m=this.diff_main(d,h,!1,u),g=this.diff_main(f,p,!1,u);return m.concat(g)},e.prototype.diff_linesToChars_=function(o,s){var l=[],c={};l[0]="";function u(p){for(var m="",g=0,v=-1,A=l.length;v<p.length-1;){v=p.indexOf(`
`,g),v==-1&&(v=p.length-1);var y=p.substring(g,v+1);(c.hasOwnProperty?c.hasOwnProperty(y):c[y]!==void 0)?m+=String.fromCharCode(c[y]):(A==d&&(y=p.substring(g),v=p.length),m+=String.fromCharCode(A),c[y]=A,l[A++]=y),g=v+1}return m}var d=4e4,h=u(o);d=65535;var f=u(s);return{chars1:h,chars2:f,lineArray:l}},e.prototype.diff_charsToLines_=function(o,s){for(var l=0;l<o.length;l++){for(var c=o[l][1],u=[],d=0;d<c.length;d++)u[d]=s[c.charCodeAt(d)];o[l][1]=u.join("")}},e.prototype.diff_commonPrefix=function(o,s){if(!o||!s||o.charAt(0)!=s.charAt(0))return 0;for(var l=0,c=Math.min(o.length,s.length),u=c,d=0;l<u;)o.substring(d,u)==s.substring(d,u)?(l=u,d=l):c=u,u=Math.floor((c-l)/2+l);return u},e.prototype.diff_commonSuffix=function(o,s){if(!o||!s||o.charAt(o.length-1)!=s.charAt(s.length-1))return 0;for(var l=0,c=Math.min(o.length,s.length),u=c,d=0;l<u;)o.substring(o.length-u,o.length-d)==s.substring(s.length-u,s.length-d)?(l=u,d=l):c=u,u=Math.floor((c-l)/2+l);return u},e.prototype.diff_commonOverlap_=function(o,s){var l=o.length,c=s.length;if(l==0||c==0)return 0;l>c?o=o.substring(l-c):l<c&&(s=s.substring(0,l));var u=Math.min(l,c);if(o==s)return u;for(var d=0,h=1;;){var f=o.substring(u-h),p=s.indexOf(f);if(p==-1)return d;h+=p,(p==0||o.substring(u-h)==s.substring(0,h))&&(d=h,h++)}},e.prototype.diff_halfMatch_=function(o,s){if(this.Diff_Timeout<=0)return null;var l=o.length>s.length?o:s,c=o.length>s.length?s:o;if(l.length<4||c.length*2<l.length)return null;var u=this;function d(S,x,w){for(var _=S.substring(w,w+Math.floor(S.length/4)),C=-1,R="",k,P,N,L;(C=x.indexOf(_,C+1))!=-1;){var I=u.diff_commonPrefix(S.substring(w),x.substring(C)),b=u.diff_commonSuffix(S.substring(0,w),x.substring(0,C));R.length<b+I&&(R=x.substring(C-b,C)+x.substring(C,C+I),k=S.substring(0,w-b),P=S.substring(w+I),N=x.substring(0,C-b),L=x.substring(C+I))}return R.length*2>=S.length?[k,P,N,L,R]:null}var h=d(l,c,Math.ceil(l.length/4)),f=d(l,c,Math.ceil(l.length/2)),p;if(!h&&!f)return null;f?h?p=h[4].length>f[4].length?h:f:p=f:p=h;var m,g,v,A;o.length>s.length?(m=p[0],g=p[1],v=p[2],A=p[3]):(v=p[0],A=p[1],m=p[2],g=p[3]);var y=p[4];return[m,g,v,A,y]},e.prototype.diff_cleanupSemantic=function(o){for(var s=!1,l=[],c=0,u=null,d=0,h=0,f=0,p=0,m=0;d<o.length;)o[d][0]==a?(l[c++]=d,h=p,f=m,p=0,m=0,u=o[d][1]):(o[d][0]==r?p+=o[d][1].length:m+=o[d][1].length,u&&u.length<=Math.max(h,f)&&u.length<=Math.max(p,m)&&(o.splice(l[c-1],0,new e.Diff(n,u)),o[l[c-1]+1][0]=r,c--,c--,d=c>0?l[c-1]:-1,h=0,f=0,p=0,m=0,u=null,s=!0)),d++;for(s&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),d=1;d<o.length;){if(o[d-1][0]==n&&o[d][0]==r){var g=o[d-1][1],v=o[d][1],A=this.diff_commonOverlap_(g,v),y=this.diff_commonOverlap_(v,g);A>=y?(A>=g.length/2||A>=v.length/2)&&(o.splice(d,0,new e.Diff(a,v.substring(0,A))),o[d-1][1]=g.substring(0,g.length-A),o[d+1][1]=v.substring(A),d++):(y>=g.length/2||y>=v.length/2)&&(o.splice(d,0,new e.Diff(a,g.substring(0,y))),o[d-1][0]=r,o[d-1][1]=v.substring(0,v.length-y),o[d+1][0]=n,o[d+1][1]=g.substring(y),d++),d++}d++}},e.prototype.diff_cleanupSemanticLossless=function(o){function s(y,S){if(!y||!S)return 6;var x=y.charAt(y.length-1),w=S.charAt(0),_=x.match(e.nonAlphaNumericRegex_),C=w.match(e.nonAlphaNumericRegex_),R=_&&x.match(e.whitespaceRegex_),k=C&&w.match(e.whitespaceRegex_),P=R&&x.match(e.linebreakRegex_),N=k&&w.match(e.linebreakRegex_),L=P&&y.match(e.blanklineEndRegex_),I=N&&S.match(e.blanklineStartRegex_);return L||I?5:P||N?4:_&&!R&&k?3:R||k?2:_||C?1:0}for(var l=1;l<o.length-1;){if(o[l-1][0]==a&&o[l+1][0]==a){var c=o[l-1][1],u=o[l][1],d=o[l+1][1],h=this.diff_commonSuffix(c,u);if(h){var f=u.substring(u.length-h);c=c.substring(0,c.length-h),u=f+u.substring(0,u.length-h),d=f+d}for(var p=c,m=u,g=d,v=s(c,u)+s(u,d);u.charAt(0)===d.charAt(0);){c+=u.charAt(0),u=u.substring(1)+d.charAt(0),d=d.substring(1);var A=s(c,u)+s(u,d);A>=v&&(v=A,p=c,m=u,g=d)}o[l-1][1]!=p&&(p?o[l-1][1]=p:(o.splice(l-1,1),l--),o[l][1]=m,g?o[l+1][1]=g:(o.splice(l+1,1),l--))}l++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(o){for(var s=!1,l=[],c=0,u=null,d=0,h=!1,f=!1,p=!1,m=!1;d<o.length;)o[d][0]==a?(o[d][1].length<this.Diff_EditCost&&(p||m)?(l[c++]=d,h=p,f=m,u=o[d][1]):(c=0,u=null),p=m=!1):(o[d][0]==n?m=!0:p=!0,u&&(h&&f&&p&&m||u.length<this.Diff_EditCost/2&&h+f+p+m==3)&&(o.splice(l[c-1],0,new e.Diff(n,u)),o[l[c-1]+1][0]=r,c--,u=null,h&&f?(p=m=!0,c=0):(c--,d=c>0?l[c-1]:-1,p=m=!1),s=!0)),d++;s&&this.diff_cleanupMerge(o)},e.prototype.diff_cleanupMerge=function(o){o.push(new e.Diff(a,""));for(var s=0,l=0,c=0,u="",d="",h;s<o.length;)switch(o[s][0]){case r:c++,d+=o[s][1],s++;break;case n:l++,u+=o[s][1],s++;break;case a:l+c>1?(l!==0&&c!==0&&(h=this.diff_commonPrefix(d,u),h!==0&&(s-l-c>0&&o[s-l-c-1][0]==a?o[s-l-c-1][1]+=d.substring(0,h):(o.splice(0,0,new e.Diff(a,d.substring(0,h))),s++),d=d.substring(h),u=u.substring(h)),h=this.diff_commonSuffix(d,u),h!==0&&(o[s][1]=d.substring(d.length-h)+o[s][1],d=d.substring(0,d.length-h),u=u.substring(0,u.length-h))),s-=l+c,o.splice(s,l+c),u.length&&(o.splice(s,0,new e.Diff(n,u)),s++),d.length&&(o.splice(s,0,new e.Diff(r,d)),s++),s++):s!==0&&o[s-1][0]==a?(o[s-1][1]+=o[s][1],o.splice(s,1)):s++,c=0,l=0,u="",d="";break}o[o.length-1][1]===""&&o.pop();var f=!1;for(s=1;s<o.length-1;)o[s-1][0]==a&&o[s+1][0]==a&&(o[s][1].substring(o[s][1].length-o[s-1][1].length)==o[s-1][1]?(o[s][1]=o[s-1][1]+o[s][1].substring(0,o[s][1].length-o[s-1][1].length),o[s+1][1]=o[s-1][1]+o[s+1][1],o.splice(s-1,1),f=!0):o[s][1].substring(0,o[s+1][1].length)==o[s+1][1]&&(o[s-1][1]+=o[s+1][1],o[s][1]=o[s][1].substring(o[s+1][1].length)+o[s+1][1],o.splice(s+1,1),f=!0)),s++;f&&this.diff_cleanupMerge(o)},e.prototype.diff_xIndex=function(o,s){var l=0,c=0,u=0,d=0,h;for(h=0;h<o.length&&(o[h][0]!==r&&(l+=o[h][1].length),o[h][0]!==n&&(c+=o[h][1].length),!(l>s));h++)u=l,d=c;return o.length!=h&&o[h][0]===n?d:d+(s-u)},e.prototype.diff_prettyHtml=function(o){for(var s=[],l=/&/g,c=/</g,u=/>/g,d=/\n/g,h=0;h<o.length;h++){var f=o[h][0],p=o[h][1],m=p.replace(l,"&amp;").replace(c,"&lt;").replace(u,"&gt;").replace(d,"&para;<br>");switch(f){case r:s[h]='<ins style="background:#e6ffe6;">'+m+"</ins>";break;case n:s[h]='<del style="background:#ffe6e6;">'+m+"</del>";break;case a:s[h]="<span>"+m+"</span>";break}}return s.join("")},e.prototype.diff_text1=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==r&&(s[l]=o[l][1]);return s.join("")},e.prototype.diff_text2=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==n&&(s[l]=o[l][1]);return s.join("")},e.prototype.diff_levenshtein=function(o){for(var s=0,l=0,c=0,u=0;u<o.length;u++){var d=o[u][0],h=o[u][1];switch(d){case r:l+=h.length;break;case n:c+=h.length;break;case a:s+=Math.max(l,c),l=0,c=0;break}}return s+=Math.max(l,c),s},e.prototype.diff_toDelta=function(o){for(var s=[],l=0;l<o.length;l++)switch(o[l][0]){case r:s[l]="+"+encodeURI(o[l][1]);break;case n:s[l]="-"+o[l][1].length;break;case a:s[l]="="+o[l][1].length;break}return s.join("	").replace(/%20/g," ")},e.prototype.diff_fromDelta=function(o,s){for(var l=[],c=0,u=0,d=s.split(/\t/g),h=0;h<d.length;h++){var f=d[h].substring(1);switch(d[h].charAt(0)){case"+":try{l[c++]=new e.Diff(r,decodeURI(f))}catch{throw new Error("Illegal escape in diff_fromDelta: "+f)}break;case"-":case"=":var p=parseInt(f,10);if(isNaN(p)||p<0)throw new Error("Invalid number in diff_fromDelta: "+f);var m=o.substring(u,u+=p);d[h].charAt(0)=="="?l[c++]=new e.Diff(a,m):l[c++]=new e.Diff(n,m);break;default:if(d[h])throw new Error("Invalid diff operation in diff_fromDelta: "+d[h])}}if(u!=o.length)throw new Error("Delta length ("+u+") does not equal source text length ("+o.length+").");return l},e.prototype.match_main=function(o,s,l){if(o==null||s==null||l==null)throw new Error("Null input. (match_main)");return l=Math.max(0,Math.min(l,o.length)),o==s?0:o.length?o.substring(l,l+s.length)==s?l:this.match_bitap_(o,s,l):-1},e.prototype.match_bitap_=function(o,s,l){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var c=this.match_alphabet_(s),u=this;function d(k,P){var N=k/s.length,L=Math.abs(l-P);return u.Match_Distance?N+L/u.Match_Distance:L?1:N}var h=this.Match_Threshold,f=o.indexOf(s,l);f!=-1&&(h=Math.min(d(0,f),h),f=o.lastIndexOf(s,l+s.length),f!=-1&&(h=Math.min(d(0,f),h)));var p=1<<s.length-1;f=-1;for(var m,g,v=s.length+o.length,A,y=0;y<s.length;y++){for(m=0,g=v;m<g;)d(y,l+g)<=h?m=g:v=g,g=Math.floor((v-m)/2+m);v=g;var S=Math.max(1,l-g+1),x=Math.min(l+g,o.length)+s.length,w=Array(x+2);w[x+1]=(1<<y)-1;for(var _=x;_>=S;_--){var C=c[o.charAt(_-1)];if(y===0?w[_]=(w[_+1]<<1|1)&C:w[_]=(w[_+1]<<1|1)&C|((A[_+1]|A[_])<<1|1)|A[_+1],w[_]&p){var R=d(y,_-1);if(R<=h)if(h=R,f=_-1,f>l)S=Math.max(1,2*l-f);else break}}if(d(y+1,l)>h)break;A=w}return f},e.prototype.match_alphabet_=function(o){for(var s={},l=0;l<o.length;l++)s[o.charAt(l)]=0;for(var l=0;l<o.length;l++)s[o.charAt(l)]|=1<<o.length-l-1;return s},e.prototype.patch_addContext_=function(o,s){if(s.length!=0){if(o.start2===null)throw Error("patch not initialized");for(var l=s.substring(o.start2,o.start2+o.length1),c=0;s.indexOf(l)!=s.lastIndexOf(l)&&l.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)c+=this.Patch_Margin,l=s.substring(o.start2-c,o.start2+o.length1+c);c+=this.Patch_Margin;var u=s.substring(o.start2-c,o.start2);u&&o.diffs.unshift(new e.Diff(a,u));var d=s.substring(o.start2+o.length1,o.start2+o.length1+c);d&&o.diffs.push(new e.Diff(a,d)),o.start1-=u.length,o.start2-=u.length,o.length1+=u.length+d.length,o.length2+=u.length+d.length}},e.prototype.patch_make=function(o,s,l){var c,u;if(typeof o=="string"&&typeof s=="string"&&typeof l>"u")c=o,u=this.diff_main(c,s,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(o&&typeof o=="object"&&typeof s>"u"&&typeof l>"u")u=o,c=this.diff_text1(u);else if(typeof o=="string"&&s&&typeof s=="object"&&typeof l>"u")c=o,u=s;else if(typeof o=="string"&&typeof s=="string"&&l&&typeof l=="object")c=o,u=l;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var d=[],h=new e.patch_obj,f=0,p=0,m=0,g=c,v=c,A=0;A<u.length;A++){var y=u[A][0],S=u[A][1];switch(!f&&y!==a&&(h.start1=p,h.start2=m),y){case r:h.diffs[f++]=u[A],h.length2+=S.length,v=v.substring(0,m)+S+v.substring(m);break;case n:h.length1+=S.length,h.diffs[f++]=u[A],v=v.substring(0,m)+v.substring(m+S.length);break;case a:S.length<=2*this.Patch_Margin&&f&&u.length!=A+1?(h.diffs[f++]=u[A],h.length1+=S.length,h.length2+=S.length):S.length>=2*this.Patch_Margin&&f&&(this.patch_addContext_(h,g),d.push(h),h=new e.patch_obj,f=0,g=v,p=m);break}y!==r&&(p+=S.length),y!==n&&(m+=S.length)}return f&&(this.patch_addContext_(h,g),d.push(h)),d},e.prototype.patch_deepCopy=function(o){for(var s=[],l=0;l<o.length;l++){var c=o[l],u=new e.patch_obj;u.diffs=[];for(var d=0;d<c.diffs.length;d++)u.diffs[d]=new e.Diff(c.diffs[d][0],c.diffs[d][1]);u.start1=c.start1,u.start2=c.start2,u.length1=c.length1,u.length2=c.length2,s[l]=u}return s},e.prototype.patch_apply=function(o,s){if(o.length==0)return[s,[]];o=this.patch_deepCopy(o);var l=this.patch_addPadding(o);s=l+s+l,this.patch_splitMax(o);for(var c=0,u=[],d=0;d<o.length;d++){var h=o[d].start2+c,f=this.diff_text1(o[d].diffs),p,m=-1;if(f.length>this.Match_MaxBits?(p=this.match_main(s,f.substring(0,this.Match_MaxBits),h),p!=-1&&(m=this.match_main(s,f.substring(f.length-this.Match_MaxBits),h+f.length-this.Match_MaxBits),(m==-1||p>=m)&&(p=-1))):p=this.match_main(s,f,h),p==-1)u[d]=!1,c-=o[d].length2-o[d].length1;else{u[d]=!0,c=p-h;var g;if(m==-1?g=s.substring(p,p+f.length):g=s.substring(p,m+this.Match_MaxBits),f==g)s=s.substring(0,p)+this.diff_text2(o[d].diffs)+s.substring(p+f.length);else{var v=this.diff_main(f,g,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(v)/f.length>this.Patch_DeleteThreshold)u[d]=!1;else{this.diff_cleanupSemanticLossless(v);for(var A=0,y,S=0;S<o[d].diffs.length;S++){var x=o[d].diffs[S];x[0]!==a&&(y=this.diff_xIndex(v,A)),x[0]===r?s=s.substring(0,p+y)+x[1]+s.substring(p+y):x[0]===n&&(s=s.substring(0,p+y)+s.substring(p+this.diff_xIndex(v,A+x[1].length))),x[0]!==n&&(A+=x[1].length)}}}}}return s=s.substring(l.length,s.length-l.length),[s,u]},e.prototype.patch_addPadding=function(o){for(var s=this.Patch_Margin,l="",c=1;c<=s;c++)l+=String.fromCharCode(c);for(var c=0;c<o.length;c++)o[c].start1+=s,o[c].start2+=s;var u=o[0],d=u.diffs;if(d.length==0||d[0][0]!=a)d.unshift(new e.Diff(a,l)),u.start1-=s,u.start2-=s,u.length1+=s,u.length2+=s;else if(s>d[0][1].length){var h=s-d[0][1].length;d[0][1]=l.substring(d[0][1].length)+d[0][1],u.start1-=h,u.start2-=h,u.length1+=h,u.length2+=h}if(u=o[o.length-1],d=u.diffs,d.length==0||d[d.length-1][0]!=a)d.push(new e.Diff(a,l)),u.length1+=s,u.length2+=s;else if(s>d[d.length-1][1].length){var h=s-d[d.length-1][1].length;d[d.length-1][1]+=l.substring(0,h),u.length1+=h,u.length2+=h}return l},e.prototype.patch_splitMax=function(o){for(var s=this.Match_MaxBits,l=0;l<o.length;l++)if(!(o[l].length1<=s)){var c=o[l];o.splice(l--,1);for(var u=c.start1,d=c.start2,h="";c.diffs.length!==0;){var f=new e.patch_obj,p=!0;for(f.start1=u-h.length,f.start2=d-h.length,h!==""&&(f.length1=f.length2=h.length,f.diffs.push(new e.Diff(a,h)));c.diffs.length!==0&&f.length1<s-this.Patch_Margin;){var m=c.diffs[0][0],g=c.diffs[0][1];m===r?(f.length2+=g.length,d+=g.length,f.diffs.push(c.diffs.shift()),p=!1):m===n&&f.diffs.length==1&&f.diffs[0][0]==a&&g.length>2*s?(f.length1+=g.length,u+=g.length,p=!1,f.diffs.push(new e.Diff(m,g)),c.diffs.shift()):(g=g.substring(0,s-f.length1-this.Patch_Margin),f.length1+=g.length,u+=g.length,m===a?(f.length2+=g.length,d+=g.length):p=!1,f.diffs.push(new e.Diff(m,g)),g==c.diffs[0][1]?c.diffs.shift():c.diffs[0][1]=c.diffs[0][1].substring(g.length))}h=this.diff_text2(f.diffs),h=h.substring(h.length-this.Patch_Margin);var v=this.diff_text1(c.diffs).substring(0,this.Patch_Margin);v!==""&&(f.length1+=v.length,f.length2+=v.length,f.diffs.length!==0&&f.diffs[f.diffs.length-1][0]===a?f.diffs[f.diffs.length-1][1]+=v:f.diffs.push(new e.Diff(a,v))),p||o.splice(++l,0,f)}}},e.prototype.patch_toText=function(o){for(var s=[],l=0;l<o.length;l++)s[l]=o[l];return s.join("")},e.prototype.patch_fromText=function(o){var s=[];if(!o)return s;for(var l=o.split(`
`),c=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;c<l.length;){var d=l[c].match(u);if(!d)throw new Error("Invalid patch string: "+l[c]);var h=new e.patch_obj;for(s.push(h),h.start1=parseInt(d[1],10),d[2]===""?(h.start1--,h.length1=1):d[2]=="0"?h.length1=0:(h.start1--,h.length1=parseInt(d[2],10)),h.start2=parseInt(d[3],10),d[4]===""?(h.start2--,h.length2=1):d[4]=="0"?h.length2=0:(h.start2--,h.length2=parseInt(d[4],10)),c++;c<l.length;){var f=l[c].charAt(0);try{var p=decodeURI(l[c].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+p)}if(f=="-")h.diffs.push(new e.Diff(n,p));else if(f=="+")h.diffs.push(new e.Diff(r,p));else if(f==" ")h.diffs.push(new e.Diff(a,p));else{if(f=="@")break;if(f!=="")throw new Error('Invalid patch mode "'+f+'" in: '+p)}c++}}return s},e.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},e.patch_obj.prototype.toString=function(){var o,s;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?s=this.start2+",0":this.length2==1?s=this.start2+1:s=this.start2+1+","+this.length2;for(var l=["@@ -"+o+" +"+s+` @@
`],c,u=0;u<this.diffs.length;u++){switch(this.diffs[u][0]){case r:c="+";break;case n:c="-";break;case a:c=" ";break}l[u+1]=c+encodeURI(this.diffs[u][1])+`
`}return l.join("").replace(/%20/g," ")},t.exports=e,t.exports.diff_match_patch=e,t.exports.DIFF_DELETE=n,t.exports.DIFF_INSERT=r,t.exports.DIFF_EQUAL=a})(Mzn);var ZNo=Mzn.exports,XNo=en&&en.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(rct,"__esModule",{value:!0});var mc=Xy,zDt=Y,eIo=J2e,tIo=ZNo,nIo=function(t){XNo(e,t);function e(n){var r=t.call(this,n)||this;return r.state={value:r.props.value},r.onChange=r.onChange.bind(r),r.diff=r.diff.bind(r),r}return e.prototype.componentDidUpdate=function(){var n=this.props.value;n!==this.state.value&&this.setState({value:n})},e.prototype.onChange=function(n){this.setState({value:n}),this.props.onChange&&this.props.onChange(n)},e.prototype.diff=function(){var n=new tIo,r=this.state.value[0],a=this.state.value[1];if(r.length===0&&a.length===0)return[];var o=n.diff_main(r,a);n.diff_cleanupSemantic(o);var s=this.generateDiffedLines(o),l=this.setCodeMarkers(s);return l},e.prototype.generateDiffedLines=function(n){var r={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},a={left:[],right:[]},o={left:1,right:1};return n.forEach(function(s){var l=s[0],c=s[1],u=c.split(`
`).length-1;if(c.length!==0){var d=c[0],h=c[c.length-1],f=0;switch(l){case r.DIFF_EQUAL:o.left+=u,o.right+=u;break;case r.DIFF_DELETE:d===`
`&&(o.left++,u--),f=u,f===0&&a.right.push({startLine:o.right,endLine:o.right}),h===`
`&&(f-=1),a.left.push({startLine:o.left,endLine:o.left+f}),o.left+=u;break;case r.DIFF_INSERT:d===`
`&&(o.right++,u--),f=u,f===0&&a.left.push({startLine:o.left,endLine:o.left}),h===`
`&&(f-=1),a.right.push({startLine:o.right,endLine:o.right+f}),o.right+=u;break;default:throw new Error("Diff type was not defined.")}}}),a},e.prototype.setCodeMarkers=function(n){n===void 0&&(n={left:[],right:[]});for(var r=[],a={left:[],right:[]},o=0;o<n.left.length;o++){var s={startRow:n.left[o].startLine-1,endRow:n.left[o].endLine,type:"text",className:"codeMarker"};a.left.push(s)}for(var o=0;o<n.right.length;o++){var s={startRow:n.right[o].startLine-1,endRow:n.right[o].endLine,type:"text",className:"codeMarker"};a.right.push(s)}return r[0]=a.left,r[1]=a.right,r},e.prototype.render=function(){var n=this.diff();return zDt.createElement(eIo.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:n})},e.propTypes={cursorStart:mc.number,editorProps:mc.object,enableBasicAutocompletion:mc.bool,enableLiveAutocompletion:mc.bool,focus:mc.bool,fontSize:mc.number,height:mc.string,highlightActiveLine:mc.bool,maxLines:mc.number,minLines:mc.number,mode:mc.string,name:mc.string,className:mc.string,onLoad:mc.func,onPaste:mc.func,onScroll:mc.func,onChange:mc.func,orientation:mc.string,readOnly:mc.bool,scrollMargin:mc.array,setOptions:mc.object,showGutter:mc.bool,showPrintMargin:mc.bool,splits:mc.number,style:mc.object,tabSize:mc.number,theme:mc.string,value:mc.array,width:mc.string,wrapEnabled:mc.bool},e.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},e}(zDt.Component);rct.default=nIo;Object.defineProperty(mz,"__esModule",{value:!0});mz.diff=mz.split=void 0;var rIo=nct,iIo=rct;mz.diff=iIo.default;var aIo=J2e;mz.split=aIo.default;var eCe=mz.default=rIo.default,oIo={exports:{}};(function(t,e){ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,a){var o=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(){var c="select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|then|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct|is|in|all|alter|any|array|at|authorization|between|both|cast|check|collate|column|commit|constraint|cube|current|current_date|current_time|current_timestamp|current_user|describe|escape|except|exists|external|extract|fetch|filter|for|full|function|global|grouping|intersect|interval|into|leading|like|local|no|of|only|out|overlaps|partition|position|range|revoke|rollback|rollup|row|rows|session_user|set|some|start|tablesample|time|to|trailing|truncate|unique|unknown|user|using|values|window|with",u="true|false",d="avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",h="int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer|string",f=this.createKeywordMapper({"support.function":d,keyword:c,"constant.language":u,"storage.type":h},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:f,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.inherits(l,s),r.SqlHighlightRules=l}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,a){var o=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,c=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};o.inherits(c,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,d,h){var f=u.getLine(h);if(this.singleLineBlockCommentRe.test(f)&&!this.startRegionRe.test(f)&&!this.tripleStarBlockCommentRe.test(f))return"";var p=this._getFoldWidgetBase(u,d,h);return!p&&this.startRegionRe.test(f)?"start":p},this.getFoldWidgetRange=function(u,d,h,f){var p=u.getLine(h);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,h);var v=p.match(this.foldingStartMarker);if(v){var m=v.index;if(v[1])return this.openingBracketBlock(u,v[1],h,m);var g=u.getCommentFoldRange(h,m+v[0].length,1);return g&&!g.isMultiLine()&&(f?g=this.getSectionRange(u,h):d!="all"&&(g=null)),g}if(d!=="markbegin"){var v=p.match(this.foldingStopMarker);if(v){var m=v.index+v[0].length;return v[1]?this.closingBracketBlock(u,v[1],h,m):u.getCommentFoldRange(h,m,-1)}}},this.getSectionRange=function(u,d){var h=u.getLine(d),f=h.search(/\S/),p=d,m=h.length;d=d+1;for(var g=d,v=u.getLength();++d<v;){h=u.getLine(d);var A=h.search(/\S/);if(A!==-1){if(f>A)break;var y=this.getFoldWidgetRange(u,"all",d);if(y){if(y.start.row<=p)break;if(y.isMultiLine())d=y.end.row;else if(f==A)break}g=d}}return new s(p,m,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,d,h){for(var f=d.search(/\s*$/),p=u.getLength(),m=h,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,v=1;++h<p;){d=u.getLine(h);var A=g.exec(d);if(A&&(A[1]?v--:v++,!v))break}var y=h;if(y>m)return new s(m,f,y,d.length)}}).call(c.prototype)}),ace.define("ace/mode/folding/sql",["require","exports","module","ace/lib/oop","ace/mode/folding/cstyle"],function(n,r,a){var o=n("../../lib/oop"),s=n("./cstyle").FoldMode,l=r.FoldMode=function(){};o.inherits(l,s),(function(){}).call(l.prototype)}),ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/mode/folding/sql"],function(n,r,a){var o=n("../lib/oop"),s=n("./text").Mode,l=n("./sql_highlight_rules").SqlHighlightRules,c=n("./folding/sql").FoldMode,u=function(){this.HighlightRules=l,this.foldingRules=new c,this.$behaviour=this.$defaultBehaviour};o.inherits(u,s),(function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/sql",this.snippetFileId="ace/snippets/sql"}).call(u.prototype),r.Mode=u}),function(){ace.require(["ace/mode/sql"],function(n){t&&(t.exports=n)})}()})(oIo);var sIo={exports:{}};(function(t,e){ace.define("ace/theme/github-css",["require","exports","module"],function(n,r,a){a.exports=`/* CSS style content from github's default pygments highlighter template.
   Cursor and selection styles from textmate.css. */
.ace-github .ace_gutter {
  background: #e8e8e8;
  color: #AAA;
}

.ace-github  {
  background: #fff;
  color: #000;
}

.ace-github .ace_keyword {
  font-weight: bold;
}

.ace-github .ace_string {
  color: #D14;
}

.ace-github .ace_variable.ace_class {
  color: teal;
}

.ace-github .ace_constant.ace_numeric {
  color: #099;
}

.ace-github .ace_constant.ace_buildin {
  color: #0086B3;
}

.ace-github .ace_support.ace_function {
  color: #0086B3;
}

.ace-github .ace_comment {
  color: #998;
  font-style: italic;
}

.ace-github .ace_variable.ace_language  {
  color: #0086B3;
}

.ace-github .ace_paren {
  font-weight: bold;
}

.ace-github .ace_boolean {
  font-weight: bold;
}

.ace-github .ace_string.ace_regexp {
  color: #009926;
  font-weight: normal;
}

.ace-github .ace_variable.ace_instance {
  color: teal;
}

.ace-github .ace_constant.ace_language {
  font-weight: bold;
}

.ace-github .ace_cursor {
  color: black;
}

.ace-github.ace_focus .ace_marker-layer .ace_active-line {
  background: rgb(255, 255, 204);
}
.ace-github .ace_marker-layer .ace_active-line {
  background: rgb(245, 245, 245);
}

.ace-github .ace_marker-layer .ace_selection {
  background: rgb(181, 213, 255);
}

.ace-github.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px white;
}
/* bold keywords cause cursor issues for some fonts */
/* this disables bold style for editor and keeps for static highlighter */
.ace-github.ace_nobold .ace_line > span {
    font-weight: normal !important;
}

.ace-github .ace_marker-layer .ace_step {
  background: rgb(252, 255, 0);
}

.ace-github .ace_marker-layer .ace_stack {
  background: rgb(164, 229, 101);
}

.ace-github .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid rgb(192, 192, 192);
}

.ace-github .ace_gutter-active-line {
    background-color : rgba(0, 0, 0, 0.07);
}

.ace-github .ace_marker-layer .ace_selected-word {
  background: rgb(250, 250, 255);
  border: 1px solid rgb(200, 200, 250);
}

.ace-github .ace_invisible {
  color: #BFBFBF
}

.ace-github .ace_print-margin {
  width: 1px;
  background: #e8e8e8;
}

.ace-github .ace_indent-guide {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}

.ace-github .ace_indent-guide-active {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`}),ace.define("ace/theme/github",["require","exports","module","ace/theme/github-css","ace/lib/dom"],function(n,r,a){r.isDark=!1,r.cssClass="ace-github",r.cssText=n("./github-css");var o=n("../lib/dom");o.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/github"],function(n){t&&(t.exports=n)})}()})(sIo);var lIo={exports:{}};(function(t,e){ace.define("ace/theme/monokai-css",["require","exports","module"],function(n,r,a){a.exports=`.ace-monokai .ace_gutter {
  background: #2F3129;
  color: #8F908A
}

.ace-monokai .ace_print-margin {
  width: 1px;
  background: #555651
}

.ace-monokai {
  background-color: #272822;
  color: #F8F8F2
}

.ace-monokai .ace_cursor {
  color: #F8F8F0
}

.ace-monokai .ace_marker-layer .ace_selection {
  background: #49483E
}

.ace-monokai.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px #272822;
}

.ace-monokai .ace_marker-layer .ace_step {
  background: rgb(102, 82, 0)
}

.ace-monokai .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid #49483E
}

.ace-monokai .ace_marker-layer .ace_active-line {
  background: #202020
}

.ace-monokai .ace_gutter-active-line {
  background-color: #272727
}

.ace-monokai .ace_marker-layer .ace_selected-word {
  border: 1px solid #49483E
}

.ace-monokai .ace_invisible {
  color: #52524d
}

.ace-monokai .ace_entity.ace_name.ace_tag,
.ace-monokai .ace_keyword,
.ace-monokai .ace_meta.ace_tag,
.ace-monokai .ace_storage {
  color: #F92672
}

.ace-monokai .ace_punctuation,
.ace-monokai .ace_punctuation.ace_tag {
  color: #fff
}

.ace-monokai .ace_constant.ace_character,
.ace-monokai .ace_constant.ace_language,
.ace-monokai .ace_constant.ace_numeric,
.ace-monokai .ace_constant.ace_other {
  color: #AE81FF
}

.ace-monokai .ace_invalid {
  color: #F8F8F0;
  background-color: #F92672
}

.ace-monokai .ace_invalid.ace_deprecated {
  color: #F8F8F0;
  background-color: #AE81FF
}

.ace-monokai .ace_support.ace_constant,
.ace-monokai .ace_support.ace_function {
  color: #66D9EF
}

.ace-monokai .ace_fold {
  background-color: #A6E22E;
  border-color: #F8F8F2
}

.ace-monokai .ace_storage.ace_type,
.ace-monokai .ace_support.ace_class,
.ace-monokai .ace_support.ace_type {
  font-style: italic;
  color: #66D9EF
}

.ace-monokai .ace_entity.ace_name.ace_function,
.ace-monokai .ace_entity.ace_other,
.ace-monokai .ace_entity.ace_other.ace_attribute-name,
.ace-monokai .ace_variable {
  color: #A6E22E
}

.ace-monokai .ace_variable.ace_parameter {
  font-style: italic;
  color: #FD971F
}

.ace-monokai .ace_string {
  color: #E6DB74
}

.ace-monokai .ace_comment {
  color: #75715E
}

.ace-monokai .ace_indent-guide {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y
}

.ace-monokai .ace_indent-guide-active {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
}
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(n,r,a){r.isDark=!0,r.cssClass="ace-monokai",r.cssText=n("./monokai-css");var o=n("../lib/dom");o.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(n){t&&(t.exports=n)})}()})(lIo);var cIo={exports:{}};(function(t,e){ace.define("ace/theme/solarized_dark-css",["require","exports","module"],function(n,r,a){a.exports=`.ace-solarized-dark .ace_gutter {
  background: #01313f;
  color: #d0edf7
}

.ace-solarized-dark .ace_print-margin {
  width: 1px;
  background: #33555E
}

.ace-solarized-dark {
  background-color: #002B36;
  color: #839496
}

.ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,
.ace-solarized-dark .ace_storage {
  color: #839496
}

.ace-solarized-dark .ace_cursor,
.ace-solarized-dark .ace_string.ace_regexp {
  color: #D30102
}

.ace-solarized-dark .ace_marker-layer .ace_active-line,
.ace-solarized-dark .ace_marker-layer .ace_selection {
  background: rgba(255, 255, 255, 0.1)
}

.ace-solarized-dark.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px #002B36;
}

.ace-solarized-dark .ace_marker-layer .ace_step {
  background: rgb(102, 82, 0)
}

.ace-solarized-dark .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid rgba(147, 161, 161, 0.50)
}

.ace-solarized-dark .ace_gutter-active-line {
  background-color: #0d3440
}

.ace-solarized-dark .ace_marker-layer .ace_selected-word {
  border: 1px solid #073642
}

.ace-solarized-dark .ace_invisible {
  color: rgba(147, 161, 161, 0.50)
}

.ace-solarized-dark .ace_keyword,
.ace-solarized-dark .ace_meta,
.ace-solarized-dark .ace_support.ace_class,
.ace-solarized-dark .ace_support.ace_type {
  color: #859900
}

.ace-solarized-dark .ace_constant.ace_character,
.ace-solarized-dark .ace_constant.ace_other {
  color: #CB4B16
}

.ace-solarized-dark .ace_constant.ace_language {
  color: #B58900
}

.ace-solarized-dark .ace_constant.ace_numeric {
  color: #D33682
}

.ace-solarized-dark .ace_fold {
  background-color: #268BD2;
  border-color: #93A1A1
}

.ace-solarized-dark .ace_entity.ace_name.ace_function,
.ace-solarized-dark .ace_entity.ace_name.ace_tag,
.ace-solarized-dark .ace_support.ace_function,
.ace-solarized-dark .ace_variable,
.ace-solarized-dark .ace_variable.ace_language {
  color: #268BD2
}

.ace-solarized-dark .ace_string {
  color: #2AA198
}

.ace-solarized-dark .ace_comment {
  font-style: italic;
  color: #657B83
}

.ace-solarized-dark .ace_indent-guide {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNg0Db1ZVCxc/sPAAd4AlUHlLenAAAAAElFTkSuQmCC) right repeat-y
}

.ace-solarized-dark .ace_indent-guide-active {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
}
`}),ace.define("ace/theme/solarized_dark",["require","exports","module","ace/theme/solarized_dark-css","ace/lib/dom"],function(n,r,a){r.isDark=!0,r.cssClass="ace-solarized-dark",r.cssText=n("./solarized_dark-css");var o=n("../lib/dom");o.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/solarized_dark"],function(n){t&&(t.exports=n)})}()})(cIo);const Nzn=gt.div`
  && {
    background: ${t=>t.theme.custom.editorBg};
    backdrop-filter: blur(200px);
    border-radius: 4px;
    padding: 16px;
    position: relative;
  }
  .ace_editor {
    width: 100% !important;
    line-height: 20px;
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    color: ${t=>t.theme.custom.greyText.A6};
    font-family: ${t=>t.theme.typographySecondary.fontFamily};
    background: transparent;
    .ace_text-layer {
      .ace_line *:not(.ace_comment) {
        color: ${t=>t.isWhite&&t.theme.custom.white.A1};
      }
    }
  }

  .ace_keyword {
    font-weight: inherit;
    color: ${t=>t.theme.custom.editor.keyword};
  }
  .ace_constant.ace_numeric,
  .ace_boolean {
    color: ${t=>t.theme.custom.editor.numeric};
    font-weight: inherit;
  }
  .ace_function {
    color: ${t=>t.theme.custom.editor.function};
  }
  .ace_string {
    color: ${t=>t.theme.custom.editor.string};
  }
  .ace_type {
    color: ${t=>t.theme.custom.editor.type};
  }
  .ace_customddl {
    color: ${t=>t.theme.custom.editor.ddl};
  }
  .ace_customdml {
    color: ${t=>t.theme.custom.editor.dml};
  }
  .ace_customtransactions {
    color: ${t=>t.theme.custom.editor.transactions};
  }
  .ace_operator {
    color: ${t=>t.theme.custom.olive};
  }
  .ace_scroller {
    left: 0 !important;
  }
  .ace_cursor,
  .ace_gutter {
    display: none !important;
  }
  .ace_marker-layer .ace_selection {
    background: ${t=>t.theme.palette.primary.main};
  }
  .ace_marker-layer .ace_selected-word {
    border: 0;
  }

  .buttonRow {
    text-align: right;
  }
`;function Izn({open:t,id:e,text:n,onClose:r,onClickView:a,queryPreview:o,isHistory:s=!1,isUnsavedQuery:l=!1}){const[c,u]=Y.useState(""),[d,h]=Y.useState(!1),f=Pit(),p=xo(),m=Afn();Y.useEffect(()=>{n&&u(n)},[n]),Y.useEffect(()=>{h(!1)},[t]);const g=()=>{gN(c).then(()=>{h(!0)})},v=`/queries/${s||l?"new?tabID=1":e}`;return E.jsx(lf,{title:q.QUERY_PREVIEW,visible:t,onClose:r,children:E.jsxs(Nzn,{isWhite:m,children:[E.jsxs("div",{className:"buttonRow",children:[E.jsx(_n,{onClick:()=>{s&&T5("1"),p.push(v),e&&!s&&o&&ri(e==null?void 0:e.toString(),o),l&&o&&ri("1",o),a&&a()},tooltip:q.VIEW_IN_EDITOR,children:E.jsx(oN,{})}),E.jsx(_n,{tooltip:d?q.COPIED:q.COPY,onClick:g,children:E.jsx(zG,{})})]}),E.jsx(eCe,{editorProps:{$blockScrolling:1/0},height:"300px",highlightActiveLine:!1,fontSize:14,defaultValue:n,readOnly:!0,mode:"sql",name:"query-ace-editor",showGutter:!0,showPrintMargin:!1,theme:f,value:n})]})})}function uIo({queryId:t="",selectedChart:e,fieldError:n,isUnsaved:r="false",isMaterializedView:a=!1}){var Z,K,Q;const o=ait(),s=xo(),l=pN()||"",c=oit(),{data:u={}}=O_e();!(u!=null&&u.queryText)&&r==="true"&&s.push(tr.newQuery());const d=sit(),h=p9(),[f,p]=Y.useState(!1),[m,g]=Y.useState(!1),{visualType:v}=wV(l),A=ho(),{data:y={}}=u,{tags:S=[],description:x=""}=y,w=gO(),_=qw(),[C,R]=Y.useState(!1),[k,P]=Y.useState(!1),[N,L]=Y.useState(!1),I=ghn(),b=Y.useRef(null),T=cit(),M=lit();Y.useEffect(()=>{if(u){const{id:ee="",referencedResources:X=[],authorizationResources:te=[],requiresAuthorization:J}=u||{};t&&ee&&Ft.isEmpty(d)&&xva(A,{queryId:t,referencedResources:X,authorizationResources:te,requiresAuthorization:J})}},[u]),Y.useEffect(()=>{if(e!=null&&e.metadata){const ee=(e==null?void 0:e.metadata)||{};fva(e==null?void 0:e.id,t,ee)}},[e==null?void 0:e.metadata]),Y.useEffect(()=>{RT(ee=>({name:ee.name,chartName:(e==null?void 0:e.name)||ee.chartName||`Untitled ${ka[v]}`,chartTags:(e==null?void 0:e.tags)||(ee==null?void 0:ee.chartTags),chartDescription:(e==null?void 0:e.description)||ee.chartDescription}))},[e]),Y.useEffect(()=>{S!=null&&S.length&&RT(ee=>{var X;return{...ee,chartTags:(X=ee==null?void 0:ee.chartTags)!=null&&X.length?ee==null?void 0:ee.chartTags:S}})},[S]),Y.useEffect(()=>{x!=null&&x.length&&RT(ee=>{var X;return{...ee,chartDescription:(X=ee==null?void 0:ee.chartDescription)!=null&&X.length?ee==null?void 0:ee.chartDescription:x}})},[x]);const D=()=>l===ii.table?q.UNTITLED_DATASET:l===ii.counter?q.UNTITLED_COUNTER:([ii.table,ii.counter].includes(l),q.UNTITLED_CHART),B=()=>{var X,te,J,ne,ie,he;let ee=null;return l===ii.counter&&(ee=!!o||!(h!=null&&h.columnName)||!(h!=null&&h.metric)||c||!l||r==="true"&&!((X=I==null?void 0:I.name)!=null&&X.trim())||M&&!((te=I==null?void 0:I.viewName)!=null&&te.trim())||C||k),l===ii.table&&(ee=!!o||c||!l||r==="true"&&!((J=I==null?void 0:I.name)!=null&&J.trim())||M&&!((ne=I==null?void 0:I.viewName)!=null&&ne.trim())||C||k),[ii.table,ii.counter].includes(l)||(ee=!!o||!!n||c||!l||r==="true"&&!((ie=I==null?void 0:I.name)!=null&&ie.trim())||M&&!((he=I==null?void 0:I.viewName)!=null&&he.trim())||C||k),ee||!1},j=localStorage.getItem("userId")||"",H=D(),U=ke.useRef(),$=ee=>{const X=ee.target.value||"";(I==null?void 0:I.chartName)!==X&&RT(te=>({...te,chartName:X}))},z=(ee,X)=>{var te,J,ne;if(a!==!0&&M===!1&&X===!0){g(!0),U.current=()=>z(ee,!1);return}ee?P(!0):R(!0),Ahn(ee?null:(e==null?void 0:e.id)||null,{...Qit(l,_,w,h),chartName:((te=I==null?void 0:I.chartName)==null?void 0:te.trim())||`Untitled ${ka[v]}`,queryName:((J=I==null?void 0:I.name)==null?void 0:J.trim())||"",chartTags:(I==null?void 0:I.chartTags)||[],chartDescription:((ne=I==null?void 0:I.chartDescription)==null?void 0:ne.trim())||"",type:Di[v],viewName:(I==null?void 0:I.viewName)||"",refreshInterval:T?1440:""},r).then(()=>{ee?P(!1):R(!1)}).catch(ie=>{Kn(ie),ee?P(!1):R(!1)})};return Z6(b,()=>{L(!1)}),E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"topBar",children:[E.jsx("div",{className:"topBarHead",children:E.jsx("div",{className:"topBarHeadTitle",children:N?E.jsx(gr,{inputRef:b,placeholder:`${q.ENTER} ${q.ENTER_WIDGET_NAME(ka[v])}`,value:I.chartName,ishelpertext:!0,helperText:`${(Z=I==null?void 0:I.chartName)==null?void 0:Z.length}/${Qr}`,onChange:$,warningText:q.MAX_LENGTH_ERROR("name",Qr),onKeyDown:vw,hasMax:!0,maxValue:Qr,required:!0,autoFocus:N}):E.jsx("h2",{onClick:()=>L(!0),role:"presentation",children:E.jsx(Pn,{label:(I==null?void 0:I.chartName)||H,children:E.jsx("div",{children:(I==null?void 0:I.chartName)||H})})})})}),E.jsx(Jt,{onClick:()=>p(!0),variant:"contained",color:"secondary",children:q.VIEW_QUERY}),(e==null?void 0:e.id)&&j===((K=e==null?void 0:e.userId)==null?void 0:K.toString())&&E.jsxs(Jt,{onClick:()=>{z(!1,!0)},disabled:B(),variant:"contained",color:"secondary",className:`editorBtn ${C?"loading":""}`,children:[C&&E.jsx("img",{src:ws,alt:"loading",height:36}),E.jsx("span",{className:"editorBtnText",children:q.SAVE_CHANGES}),E.jsx("span",{className:"icon iconRight",children:E.jsx(_an,{})})]}),E.jsx(Pn,{label:B()&&!C&&!k?q.SAVE_WIDGET_DISABLED_GUIDE_TOOLTIP:"",children:e!=null&&e.id&&j===((Q=e==null?void 0:e.userId)==null?void 0:Q.toString())?E.jsx("span",{children:E.jsxs(Jt,{variant:"contained",color:"primary",onClick:()=>{z(!!(e!=null&&e.id),!0)},disabled:B(),className:`editorBtn ${k?"loading":""}`,children:[k&&E.jsx("img",{src:ws,alt:"loading",height:36}),E.jsx("span",{className:"icon iconLeft",children:E.jsx(SEt,{})}),E.jsx("span",{className:"editorBtnText",children:q.SAVE_AS_NEW_WIDGET(ka[v])})]})}):E.jsx("span",{children:E.jsxs(Jt,{variant:"contained",color:"primary",onClick:()=>{z(!!(e!=null&&e.id),!0)},disabled:B(),className:`editorBtn ${C?"loading":""}`,children:[C&&E.jsx("img",{src:ws,alt:"loading",height:36}),E.jsx("span",{className:"icon iconLeft",children:E.jsx(SEt,{})}),E.jsx("span",{className:"editorBtnText",children:q.SAVE_WIDGET(ka[v])})]})})}),E.jsx(Jt,{onClick:()=>{s.go(-1)},variant:"contained",color:"secondary",children:q.BACK})]}),u&&E.jsx(Izn,{open:f,text:u==null?void 0:u.queryText,id:(u==null?void 0:u.queryId)||(u==null?void 0:u.id),isUnsavedQuery:r==="true",queryPreview:u,onClose:()=>p(!1)}),E.jsx(cm,{isConfirmButtonVisible:!1,isModalVisible:m,iconName:"HOME",title:q.ADD_MATERIALIZED_VIEW_PERFORMANCE_TIP_HEADER,confirmMessage:q.MATERIALIZED_VIEWS_POPUP_ALERT,onCancel:()=>g(!1),onConfirm:()=>{U.current&&typeof U.current=="function"&&U.current()},confirmButtonMessage:q.ADD_MATERIALIZED_VIEW_PROMPT_PROCEED_FORWARD,cancelButtonMessage:q.ADD_MATERIALIZED_VIEW_PROMPT_ADD_MATERIALIZED_VIEW})]})}const dIo=ke.memo(uIo);var lct={},hIo=As;Object.defineProperty(lct,"__esModule",{value:!0});var cct=lct.default=void 0,fIo=hIo(Ps()),pIo=E;cct=lct.default=(0,fIo.default)((0,pIo.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var uct={},mIo=As;Object.defineProperty(uct,"__esModule",{value:!0});var Pzn=uct.default=void 0,gIo=mIo(Ps()),vIo=E;Pzn=uct.default=(0,gIo.default)((0,vIo.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var dct={},AIo=As;Object.defineProperty(dct,"__esModule",{value:!0});var Ozn=dct.default=void 0,yIo=AIo(Ps()),bIo=E;Ozn=dct.default=(0,yIo.default)((0,bIo.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");function I9e(t){const{to:e,target:n,children:r}=t;return E.jsx(Dn,{component:d1,to:e,target:n,children:r})}function tCe(){const{config:t,currentUser:e,version:n}=Zmi||{};return t?(hN(t.baseUrl),{config:t,currentUser:e,version:n}):{}}const xIo=18;function EIo({children:t,icon:e,tooltip:n}){const[r,a]=ke.useState(null),o=!!r,s=u=>{a(u.currentTarget)},l=()=>{a(null)},c=E.jsxs(E.Fragment,{children:[E.jsx(dG,{onClick:s,children:e&&ke.cloneElement(e,{size:xIo},null)}),E.jsx(lE,{anchorEl:r,open:o,onClose:l,children:t})]});return n?E.jsx(Pn,{label:n,children:E.jsx("span",{children:c})}):c}const xge=ke.forwardRef((t,e)=>E.jsx(d1,{...t,innerRef:e}));xge.displayName="NavigationLink";function SIo({statementId:t,onSaveImageClick:e}){const{config:n}=tCe();if(!n||!t)return null;const{allowCsvDownload:r}=n,a=[];return e&&a.push(E.jsx(Dn,{onSelect:e,children:"png"},"png")),r&&(a.push(E.jsx(I9e,{as:xge,to:`/statement-results/${t}.csv`,target:"_blank",rel:"noopener noreferrer",children:"csv"},"csv")),a.push(E.jsx(I9e,{as:xge,to:`/statement-results/${t}.xlsx`,target:"_blank",rel:"noopener noreferrer",children:"xlsx"},"xlsx")),a.push(E.jsx(I9e,{as:xge,to:`/statement-results/${t}.json`,target:"_blank",rel:"noopener noreferrer",children:"json"},"json"))),a.length===0?null:E.jsx(EIo,{icon:E.jsx(Ozn,{"aria-label":"Download"}),children:a})}function wIo({startTime:t=new Date}){const[e,n]=Y.useState("0");return Y.useEffect(()=>{const r=setInterval(()=>{n(((new Date().valueOf()-t.valueOf())/1e3).toFixed(3))},33);return()=>{clearInterval(r)}},[t]),E.jsx("span",{children:e})}function _Io({disabled:t}){const e=xo(),n=Boe()||"new",r=gfn();return E.jsx(_n,{tooltip:q.CONFIGURE_VISUALIZATION,disabled:t,onClick:()=>{VAe(r),Lfn(),UT(Vl(),e,n==="new")},className:"configureChartBtn",children:E.jsx(x2,{})})}const TIo=ke.memo(_Io);function Dee({size:t=1}){return E.jsx("div",{style:{height:t*8}})}const CIo=gt.ul`
  && {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 65px;
    z-index: 9;
    max-height: 160px;
    overflow: auto;
    background: ${t=>t.theme.custom.dropdownBg};
    border: 0.5px solid #675b8c;
    border-radius: 8px;
    box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
    backdrop-filter: blur(2px);
  }

  && li button {
    width: 100%;
    justify-content: flex-start;
    text-transform: none;
    &:hover {
      background: ${t=>t.theme.custom.white.A5};
    }
  }
`,kIo=gt.div`
  position: relative;
`,Lzn=()=>{const t={color:Ffn()};return JSON.stringify(t)},RIo=({currentTag:t,handleTagSelection:e})=>{const n=lga(),r=Y.useMemo(()=>{if(!(n!=null&&n.length))return{};const a={};return n==null||n.forEach(({value:o})=>{o&&(a[o]=1)}),{...a}},[n]);return E.jsxs(CIo,{children:[!r[t]&&E.jsx("li",{children:E.jsxs(Jt,{size:"small",onClick:()=>{e({value:t,metadata:Lzn()})},children:["Create #",t]})}),n.map(a=>E.jsx("li",{children:E.jsxs(Jt,{size:"small",onClick:()=>{e({...a})},children:["#",a==null?void 0:a.value]})}))]})},nCe=({currentTags:t,setTags:e})=>{const n=Y.useRef(null),[r,a]=Y.useState(""),[o,s]=Y.useState(""),[l,c]=Y.useState(!1),u=Y.useMemo(()=>{if(!(t!=null&&t.length))return{};const g={};return t==null||t.forEach(v=>{v!=null&&v.id&&(g[v==null?void 0:v.id]=1)}),{...g}},[t]),d=g=>{g!==r&&(g?(a(g),k0a(g)):a(""))},h=Ft.debounce(d,100),f=g=>{var A;const v=t!=null&&t.length?[...t]:[];v.push({...g}),e([...v]),(A=n==null?void 0:n.current)!=null&&A.value&&(n.current.value=""),n.current.focus(),a(""),s("")},p=g=>{var x;const v=t!=null&&t.length?[...t]:[],A=g;let y=((x=A==null?void 0:A.target)==null?void 0:x.value)||"";const S=(A==null?void 0:A.key)||"";if(!(l&&S!=="Enter"&&S!==","))if(S==="Enter"||S===","){A.preventDefault();const w=y==null?void 0:y.split(",");w==null||w.forEach(_=>{let C=_!=null&&_.length?_==null?void 0:_.trim():"";if(C){C=J_e(C);let R=!1;u[C]||(R=!0),R&&v.push({value:C,metadata:Lzn()})}v!=null&&v.length&&e([...v])}),a(""),s(""),c(!1),A.target.value=""}else y=y&&y[0]==="#"?y==null?void 0:y.replace("#",""):y,h(y||"")},m=g=>{const v=g.target.value||"";s(v)};return E.jsxs(kIo,{className:"tagInput",children:[E.jsx(gr,{label:"Tags",onKeyUp:p,onKeyDown:vw,onChange:m,value:o,ishelpertext:1,helperText:`${o==null?void 0:o.length}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("tag",Qr),placeholder:q.ENTER_TAGS,inputRef:n,autoComplete:"off",hasMax:!0,maxValue:Qr}),r&&!u[r]&&(o==null?void 0:o.length)<Qr&&E.jsx(RIo,{handleTagSelection:f,currentTag:r})]})},rCe=gt.div`
  &.joinCodeSubscriptionModel {
    .subscriptionPanel {
      padding: 0;
      background: transparent;
      box-shadow: unset;
      max-height: calc(100vh - 200px) !important;
    }
  }
  .MuiFormControl-root {
    margin-bottom: 20px;
  }
  .tagList {
    margin-bottom: 10px;
  }
  .joincodeInput {
    .MuiFormControl-root {
      margin-bottom: 0;
    }
  }
  .linkText {
    color: ${t=>t.theme.custom.white.A11};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    font-size: ${t=>t.theme.custom.fontSize.font14};
    cursor: pointer;
    text-align: right;
    margin-top: 12px;
    margin-bottom: 20px;
    text-decoration: underline;
    &.disabled {
      cursor: default;
      opacity: 0.6;
    }
  }
  .modalFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    button + button {
      margin-left: 8px;
    }
  }
  .MuiOutlinedInput-root.materializedViewInput {
    .MuiInputAdornment-positionStart {
      min-width: unset;
      background: transparent;
      p {
        cursor: not-allowed;
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>t.theme.custom.fontSize.font12};
      }
    }
    .MuiOutlinedInput-input {
      padding-left: 0;
    }
  }
  .durationToggle {
    margin-bottom: 8px;
    margin-top: 16px;
    .MuiToggleButton-root {
      padding: 4px 8px;
      border-radius: 8px;
      border: 1px solid #675b8c;
      color: ${t=>t.theme.custom.white.A11};
      text-transform: capitalize;
      &.Mui-selected {
        color: ${t=>t.theme.custom.white.A11};
        background: ${t=>t.theme.custom.primaryBg};
        &:hover {
          background: ${t=>t.theme.custom.primaryBg};
        }
      }
    }
  }
  .autoRefreshToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: ${t=>t.theme.custom.fontSize.font14};
    margin-bottom: 16px;
    color: ${t=>t.theme.custom.white.A11};
  }
  .materialViewCheck {
    .infoPopover {
      .popoverContent {
        top: unset;
        bottom: 100%;
        padding-top: 0;
        padding-bottom: 10px;
      }
    }
  }
  .autoCompleteSearch {
    .MuiAutocomplete-popper {
      .MuiPaper-root {
        .MuiAutocomplete-listbox {
          > li:hover {
            background: unset;
          }
        }
      }
    }
    .MuiFormControl-root .MuiInputBase-root {
      border: 0;
      background: ${t=>t.theme.custom.inputBg};
    }
  }
  &.createGraphQlSchema {
    .schemaLoading {
      min-height: 316px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
`,Bzn=gt.div`
  margin: 10px 0;
  .materializedViewCheckWrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .MuiFormControlLabel-root {
    margin-bottom: 0;
  }
  .infoPopover {
    position: relative;
    z-index: 1000;
    &:hover {
      .popoverContent {
        display: block;
      }
    }
    button {
      height: 30px;
      width: 30px;
    }
    .popoverContent {
      position: absolute;
      right: 0;
      top: 100%;
      padding-top: 10px;
      display: none;
      z-index: 99;
      .contentInner {
        background: ${t=>t.theme.custom.dropdownBg};
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
        padding: 8px;
        border: 0.5px solid #675b8c;
        box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
        backdrop-filter: blur(4px);
        border-radius: 8px;
        width: 280px;
        a {
          color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.blueActive}};
          &:hover {
            color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
            text-decoration: underline;
          }
        }
      }
    }
  }
`,Dzn=gt.div`
  margin-top: 20px;
  background-color: ${t=>t.theme.custom.white.A5};
  padding-top: 10px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 10px;
  border-radius: 5px;
`,MIo=gt(yYt)`
  && {
    .MuiFormControlLabel-label {
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A9}};
      font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
      text-transform: unset;
    }
    .MuiCheckbox-root {
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
      padding-right: 6px;
    }
    &.Mui-disabled {
      opacity: 0.6;
      .MuiFormControlLabel-label.Mui-disabled {
        font-size: 12px;
        color: #c5bfca !important;
        font-weight: 500;
      }
      .MuiSvgIcon-root {
        path {
          fill: rgba(255, 255, 255, 0.3);
        }
      }
    }
  }
`,KT=({name:t,checked:e,onChange:n,label:r,disabled:a,theme:o})=>E.jsx(MIo,{control:E.jsx(uTr,{name:t,checked:e,disabled:a,onChange:n}),label:r,theme:o}),NIo=gt.div`
  .modelsToggle {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    border: 1px solid rgba(88, 75, 133, 0.8);
    border-radius: 100px;
    transform: rotate(0.1deg);
    padding: 3px 6px;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    z-index: 999;
    cursor: pointer;
    font-size: 9px;
    height: 24px;
    line-height: 1;
    transition: all 0.2s;
    position: relative;
    -webkit-transition: 0.2s;
  }
  .loading {
    width: 72px;
    text-align: center;
    padding: 0px 10px;
    img {
      width: 100%;
    }
  }
  .modelsToggle span {
    padding-left: 18px;
  }
  .modelsToggle .hide-text {
    display: none;
  }
  .modelsToggle.hide .hide-text {
    display: block;
  }
  .modelsToggle.hide .show-text {
    display: none;
  }
  .modelsToggle:before {
    content: '';
    width: 14px;
    height: 14px;
    position: absolute;
    border-radius: 50%;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A11}};
    top: 4px;
    left: 5px;
    box-shadow: 4px 4px 10px rgb(3 12 35 / 18%);
    transition: all 0.4s;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }
  .modelsToggle.hide {
    color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A11}};
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
    border: 1px solid ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
  }
  .modelsToggle.hide span {
    padding-left: 0;
    padding-right: 18px;
  }
  .modelsToggle.hide:before {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
    box-shadow: 4px 4px 10px rgba(3, 12, 35, 0.18);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    left: calc(100% - 18px);
  }
`;function d8({checked:t,handleChange:e,showText:n,hideText:r,tooltipLabel:a="",className:o,isDisabled:s=!1,isLoading:l=!1}){return E.jsx(NIo,{className:`commonSwitch ${o||""}`,children:E.jsx(Pn,{label:a,children:E.jsx(dYt,{type:"button",className:`modelsToggle ${t?"hide":""}`,onClick:()=>{e()},disabled:s,children:l?E.jsx("div",{className:"loading",children:E.jsx("img",{src:ws,alt:"loading"})}):E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"show-text",children:n}),E.jsx("span",{className:"hide-text",children:r})]})})})})}function IIo({saveAsNew:t=!1,savedQueryDetails:e,isUnsaved:n="false"}){var U,$,z,Z,K,Q;const r=Y.useRef(null),a=Y.useRef(!0),o=Lit(),{tags:s=[],description:l="",isMaterializedView:c=!1}=e||{},u=pV(),d=pN(),h=Bit(),{visualType:f}=wV(d||""),p=gO(),m=p9(),g=qw(),[v,A]=Y.useState(!1),[y,S]=Y.useState(""),[x,w]=Y.useState(!1),_=lit(),C=cit(),R=()=>{o&&e1e(),lVe(!1)},[k,P]=Y.useState({name:"",chartName:(u==null?void 0:u.name)||`Untitled ${ka[f]}`,chartTags:(u==null?void 0:u.tags)||[],chartDescription:(u==null?void 0:u.description)||""}),N=h&&!((U=k==null?void 0:k.name)!=null&&U.length);Y.useEffect(()=>()=>{a.current=!1},[]),Y.useEffect(()=>{P(ee=>({name:ee.name,chartName:(u==null?void 0:u.name)||ee.chartName,chartTags:(u==null?void 0:u.tags)||(ee==null?void 0:ee.chartTags),chartDescription:(u==null?void 0:u.description)||ee.chartDescription}))},[u]),Y.useEffect(()=>{s!=null&&s.length&&P(ee=>{var X;return{...ee,chartTags:(X=ee==null?void 0:ee.chartTags)!=null&&X.length?ee==null?void 0:ee.chartTags:s}})},[s]),Y.useEffect(()=>{l!=null&&l.length&&P(ee=>{var X;return{...ee,chartDescription:(X=ee==null?void 0:ee.chartDescription)!=null&&X.length?ee==null?void 0:ee.chartDescription:l}})},[l]);const L=ee=>{const X=[...k.chartTags].filter(te=>(te==null?void 0:te.tagValue)!==ee&&(te==null?void 0:te.value)!==ee);P(te=>({...te,chartTags:X}))},I=ee=>P(X=>({...X,chartTags:ee})),b=ee=>{var te;const X=(te=ee==null?void 0:ee.target)==null?void 0:te.value;S(X||""),X&&Hfn(X)?!x&&w(!0):x&&w(!1)},T=ee=>{var X,te,J;ee.preventDefault(),A(!0),Ahn(t?null:(u==null?void 0:u.id)||null,{...Qit(d,g,p,m),chartName:((X=k==null?void 0:k.chartName)==null?void 0:X.trim())||"",queryName:((te=k==null?void 0:k.name)==null?void 0:te.trim())||"",chartTags:(k==null?void 0:k.chartTags)||[],chartDescription:((J=k==null?void 0:k.chartDescription)==null?void 0:J.trim())||"",type:Di[f],viewName:(y==null?void 0:y.trim())||"",refreshInterval:C?1440:""},n).then(()=>{a.current&&A(!1)}).catch(ne=>{a.current&&(Kn(ne),A(!1))})},M=ee=>{var X,te,J;ee.key==="Enter"&&((X=k==null?void 0:k.chartName)!=null&&X.trim()&&((te=k==null?void 0:k.name)!=null&&te.trim())&&n==="true"||(J=k==null?void 0:k.chartName)!=null&&J.trim()&&n==="false")&&T(ee)};Y.useEffect(()=>(window.addEventListener("keypress",M),()=>{window.removeEventListener("keypress",M)}),[k]);const D=ee=>{const X=ee.target.value||"";(k==null?void 0:k.chartName)!==X&&P(te=>({...te,chartName:X}))},B=ee=>{const X=ee.target.value||"";P(te=>({...te,chartDescription:X}))},j=ee=>{var te;const X=((te=ee==null?void 0:ee.target)==null?void 0:te.value)||"";(k==null?void 0:k.name)!==X&&P(J=>({...J,name:X}))},H=n==="true"&&!(($=k==null?void 0:k.name)!=null&&$.trim())||_&&!y||!((z=k==null?void 0:k.chartName)!=null&&z.trim())||!!N||v;return E.jsx(lf,{maxWidth:"sm",title:q.SAVE_WIDGET(ka[f]),visible:o,onClose:R,children:E.jsx(rCe,{children:E.jsxs("form",{onSubmit:T,children:[n==="true"&&E.jsx(gr,{label:q.QUERY_NAME,ref:r,error:N,placeholder:q.UNTITLED_QUERY,value:k.name,ishelpertext:1,helperText:`${(Z=k==null?void 0:k.name)==null?void 0:Z.length}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("name",Qr),onChange:j,onKeyDown:vw,hasMax:!0,maxValue:Qr,required:!0}),E.jsx(gr,{label:q.ENTER_WIDGET_NAME(ka[f]),ref:r,placeholder:`${q.ENTER} ${q.ENTER_WIDGET_NAME(ka[f])}`,value:k.chartName,helperText:`${(K=k==null?void 0:k.chartName)==null?void 0:K.length}/${pBe}`,onChange:D,warningText:q.MAX_LENGTH_ERROR("name",pBe),onKeyDown:vw,hasMax:!0,maxValue:pBe,required:!0}),E.jsx(nCe,{currentTags:k.chartTags,setTags:I}),E.jsx("div",{className:"tagList",children:E.jsx(Ov,{tags:(k==null?void 0:k.chartTags)||[],isRemovable:!0,onRemove:L})}),E.jsx(gr,{label:q.ENTER_WIDGET_DESCRIPTION(ka[f]),ref:r,placeholder:`${q.ENTER} ${q.ENTER_WIDGET_DESCRIPTION(ka[f])}`,value:k.chartDescription,helperText:`${(Q=k==null?void 0:k.chartDescription)==null?void 0:Q.length}/${Qr}`,onChange:B,hasMax:!0,maxValue:Qr,warningText:q.MAX_LENGTH_ERROR("description",Qr)}),E.jsxs(Dzn,{style:{marginBottom:"10px"},children:[n==="false"&&E.jsxs(Bzn,{className:"materialViewCheck",children:[E.jsxs("div",{className:"materializedViewCheckWrapper",children:[E.jsx("label",{className:"formLabel",children:q.MATERIALIZED_VIEW_CONFIGURATION}),E.jsxs("div",{className:"infoPopover",children:[E.jsx(_n,{children:E.jsx(cg,{className:"infoIcon"})}),E.jsx("div",{className:"popoverContent",children:E.jsxs("div",{className:"contentInner",children:[q.MATERIALIZED_VIEW_INFO," ",E.jsx("a",{href:zan,target:"_blank",rel:"noreferrer",children:q.LEARN_MORE_HERE})]})})]})]}),E.jsx(KT,{name:"isMaterialized",checked:_||c,onChange:ee=>{var X;return lVe((X=ee==null?void 0:ee.target)==null?void 0:X.checked)},disabled:c,label:q.MATERIALIZE_VIEW_CHECKBOX_TEXT})]}),_&&E.jsxs(E.Fragment,{children:[E.jsx(gr,{label:q.ENTER_VIEW_NAME,placeholder:q.ENTER_VIEW_NAME,value:y,ishelpertext:!0,helperText:`${y==null?void 0:y.length}/${Qr}`,onChange:b,warningText:q.MAX_LENGTH_ERROR("name",Qr),errorText:x&&q.VIEW_NAME_ERROR("View"),onKeyDown:vw,hasMax:!0,maxValue:Qr,required:!0,className:"materializedViewInput",startAdornment:E.jsx(Kx,{position:"start",children:"SXT_DAPP_VIEWS."})}),E.jsxs("div",{className:"autoRefreshToggle",children:["Auto refresh",E.jsx(d8,{checked:C,handleChange:()=>bhn(!C),showText:"Off",hideText:"On"})]})]})]}),E.jsx(Dee,{}),E.jsxs("div",{className:"modalFooter",children:[E.jsx(Jt,{onClick:R,variant:"contained",color:"secondary",children:q.CANCEL}),E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",disabled:H,children:v?E.jsx("img",{src:ws,alt:"loading",height:36}):q.SAVE})]})]})})})}const $zn=ke.memo(IIo);function PIo({isEditor:t,isRunning:e,gptLoading:n,rowCount:r,incomplete:a,status:o,columns:s,data:l,dataTitle:c,disabled:u=!1,isQueryBot:d,handleQueryBotTabChange:h,queryBotToogle:f="table",handleViewInQueryBot:p,setQueryBotChartOption:m,queryBotView:g}){var te;const v=d?g:cfn(),A=gO(),y=!!(r&&r>0),S=hfn(),x=d?f:G_e(),w=pfn(),_=$it(),C=wAa(),R=ho(),k=Lit(),{data:P={}}=O_e(),N=Boe()||"new",L=Doe()||"Query1",{hasMoreChartsSuggestions:I=!1}=_,[b,T]=Y.useState([]),{config:M}=tCe(),D=pV(),B=!1,j=xo(),H=Kdn(),U=o==="finished",$=bV(),z=$oe(),Z=K1a(((te=j==null?void 0:j.location)==null?void 0:te.pathname)||"");let K=null;if(e)K=E.jsxs("span",{children:[E.jsx(wIo,{startTime:S})," ",q.SECONDS]});else if(U){const J=w!==void 0?w/1e3:0;K=E.jsxs("span",{children:[J," ",q.SECONDS]})}const Q=J=>{d?h(J):W6(J.currentTarget.value)},ee=()=>{var de;let J="";b.forEach(ce=>{J+=ce.join(","),J+=`
`});const ne=new Blob(["",J]),ie=window.URL.createObjectURL(new Blob([ne])),he=document.createElement("a");he.href=ie,he.setAttribute("download",`${a1e(D!==null?D==null?void 0:D.name:L)}.csv`),document.body.appendChild(he),he.click(),(de=he==null?void 0:he.parentNode)==null||de.removeChild(he)},X=()=>{const J=[];if(l!=null&&l.length&&(s!=null&&s.length)){const ne=s==null?void 0:s.map((ie,he)=>{const de=A[he];return(de==null?void 0:de.title)||ie.fieldName});J==null||J.push(ne),H!=null&&H.length?J==null||J.push(...H):J==null||J.push(...l)}J!=null&&J.length&&T([...J])};return Y.useEffect(()=>{s!=null&&s.length&&(l!=null&&l.length)&&X()},[s,l,A,H]),E.jsxs(Tp,{className:"resultToolbar",children:[U&&!e&&!n&&E.jsxs(eA,{exclusive:!0,color:"primary",value:t?"table":x,onChange:Q,children:[E.jsxs(Xs,{size:"small",className:"tabButton queryResultsTab",value:"table","aria-label":"table",disabled:t,children:[q.QUERY_RESULTS," ",c&&`-${c}`]}),!t&&y&&(!Z||d)&&E.jsx(Xs,{size:"small",className:"tabButton queryVizTab",value:"chart","aria-label":"chart",onClick:Q,children:q.QUERY_VISUALIZATION})]}),E.jsxs("div",{className:"mobileQueryToolbar",children:[(x===ii.chart||x===ii.counter)&&!d&&!v&&!e&&!n&&I&&!$&&!t&&E.jsxs(E.Fragment,{children:[E.jsxs(Jt,{onClick:()=>iH(!0,I),size:"small",sx:{px:1,ml:"auto"},disabled:e,children:[q.EXPLORE_MORE_VISUALIZATIONS,E.jsx("span",{className:"icon iconRight",children:E.jsx(ami,{})})]}),E.jsx(TIo,{disabled:e||u})]}),x===ii.chart&&v&&!t&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{tooltip:q.BACK,onClick:()=>{d?(p(),m({})):r1a()},children:E.jsx(cct,{fontSize:"small"})}),!d&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{tooltip:q.CUSTOMIZE_CHART,disabled:u,onClick:()=>{_5({item:C}),UT(Vl(),j,N==="new"),v&&Git()},children:E.jsx(x2,{})}),E.jsx(_n,{tooltip:z?"Query is saving...":q.SAVE_CHART,disabled:!R,onClick:()=>{!z&&_D(C)},children:z?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(SD,{})})]})]}),!d&&(x===ii.table||t)&&U&&y&&!n&&(b==null?void 0:b.length)&&E.jsxs(Jt,{onClick:ee,size:"small",sx:{px:1,ml:"auto"},children:[q.EXPORT_TO_CSV,E.jsx("span",{className:"icon iconRight",children:E.jsx(nmi,{})})]}),!d&&U&&!n&&(x===ii.table||t)&&E.jsxs("span",{children:[r," ",q.ROWS]}),!d&&U&&B&&!n&&E.jsx(_n,{disabled:B,to:"",target:"_blank",rel:"noopener noreferrer",tooltip:"Open table in new window",children:E.jsx(Pzn,{sx:{fontSize:18}})}),!d&&U&&!n&&(M==null?void 0:M.allowCsvDownload)&&y&&E.jsx(SIo,{statementId:""}),!d&&!t&&!n&&x===ii.table&&K,k&&P&&!t&&y&&E.jsx($zn,{saveAsNew:!0,savedQueryDetails:P,isUnsaved:"false"})]})]})}const EH=ke.memo(PIo);function Fzn(t){const e=Y.useRef();return Y.useEffect(()=>{e.current=t},[t]),e.current}const OIo=({setFieldError:t,fieldError:e,innerContentHeight:n,chartName:r})=>{var N;const a=phn(),o=mhn(),s=Y.useRef(null),l=qw(),c=mV(),u=pN(),d=oit(),h=ait(),f=sit(),p=p9(),m=gO(),g=Roe(),[v,A]=Y.useState(!0),[y,S]=Y.useState(0),[x,w]=Y.useState(0),_=()=>{const L=Ft.get(s,"current.splitPane.clientHeight",0),I=Ft.get(s,"current.pane1.clientHeight",0),b=L-I;S(b-104),w(L/2+200)};Y.useEffect(()=>{_()},[u]),Y.useEffect(()=>{!Ft.isEmpty(l)&&!Ft.isEmpty(c)&&A(Adn(c,l,t))},[l,c,m]);const C=Ft.debounce(_,300),R=Fzn({chartType:u,chartFields:l}),k=qit(R,{chartType:u,chartFields:l}),P=Y.useMemo(()=>O0.uuid(),[!Ft.isEmpty(k),!d]);return E.jsxs(E.Fragment,{children:[u!==ii.table&&E.jsxs(aC,{split:"horizontal",minSize:100,ref:s,defaultSize:"50%",size:"50%",maxSize:x,className:"resultSplitPane",onChange:()=>C(),children:[E.jsx("div",{className:"chartPreview",children:E.jsx(l8,{chartID:"chart-preview",echartId:`chart-preview-${P}`,chartFields:l,isRunning:a===""||d,queryError:h,queryWarning:!v&&e,chartType:u,columns:c,data:f,isChartEditor:!0,chartName:r,dataframesObject:g,counterFields:p,counterTooltipPlacement:"bottom-start",showCounterMetric:!0})}),E.jsxs("div",{className:"queryResult",children:[E.jsx(EH,{isEditor:!0,isRunning:a===""||d,rowCount:o,status:a,columns:c,disabled:!1,data:f}),E.jsx(TP,{columns:c,rowCount:o,isRunning:a===""||d,queryError:h,data:f,tableHeight:y})]})]}),u===ii.table&&E.jsxs("div",{className:"queryResult",children:[E.jsx(EH,{isEditor:!0,isRunning:a===""||d,rowCount:o,status:a,columns:c,data:f,disabled:!1,dataTitle:(N=m==null?void 0:m.dataTitle)==null?void 0:N.dataTitle}),E.jsx(TP,{columns:c,rowCount:o,isRunning:a===""||d,queryError:h,tableFields:m,data:f,tableHeight:n-105})]})]})},LIo=ke.memo(OIo),GDt=()=>{var g,v,A,y,S,x,w,_,C,R,k,P,N,L,I,b;const t=qw(),e=pN(),n=mV(),r=fhn(),a=vha(),o=Roe(),[s,l]=Y.useState(!0),[c,u]=Y.useState(!0),{xField:d}=t;let h=!1;if(o[d]&&o[d].rawData&&o[d].rawData.length>0){const T=o[d].rawData[0];aR(T)&&(h=!0)}const f=(T,M,D=!1)=>{const B={...t,...ydn(t,M,T.target.name||"",D?T.target.checked:T.target.value||"")};D_e(B)},p=_V(n),m=Ft.debounce(f,1e3);return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.CHART_TITLE}),E.jsx("button",{"aria-label":"arrow-down-icon",className:s?"collpaseIcon open":"collpaseIcon",onClick:()=>{l(T=>!T)},type:"button",children:E.jsx(Yx,{})})]}),E.jsxs(jo,{in:s,children:[E.jsxs("div",{className:"formGroupBlock",children:[E.jsx("span",{className:"groupTitle",children:q.X_AXIS}),E.jsxs("div",{className:"formGroup",children:[E.jsxs("div",{className:"formGroupLabel",children:[E.jsx("span",{className:"fieldLabel",children:q.X_AXIS_TITLE}),E.jsx("span",{className:"fieldTag",children:t==null?void 0:t.xField})]}),E.jsx(gr,{name:"title",defaultValue:((g=t[q.X_AXIS_DATA])==null?void 0:g.title)||t.xField,placeholder:q.USER_TITLE,onChange:T=>m(T,q.X_AXIS_DATA),warningText:q.MAX_LENGTH_ERROR("name",Qr),hasMax:!0,maxValue:Qr})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.X_AXIS_BOTTOM_MARGIN}),E.jsxs(Ba,{name:"spacing",value:((v=t[q.X_AXIS_DATA])==null?void 0:v.spacing)||"",onChange:T=>m(T,q.X_AXIS_DATA),children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.X_AXIS_BOTTOM_MARGIN]}),I$==null?void 0:I$.map(T=>E.jsx(Dn,{value:T,children:T},T))]})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.X_TICK_LAYOUT}),E.jsx(Ba,{name:"tickLayout",value:((A=t[q.X_AXIS_DATA])==null?void 0:A.tickLayout)||0,onChange:T=>m(T,q.X_AXIS_DATA),children:jLe==null?void 0:jLe.map(T=>E.jsx(Dn,{value:T.value,children:T.label}))})]}),h&&E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.DATE_FORMAT}),E.jsxs(Ba,{name:"dateFormat",value:((y=t[q.X_AXIS_DATA])==null?void 0:y.dateFormat)||"",onChange:T=>m(T,q.X_AXIS_DATA),children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.ADAPTIVE_FORMATTING]}),a==null?void 0:a.map(({label:T,value:M})=>E.jsx(Dn,{value:M,children:T},M))]})]}),E.jsx("div",{className:"fieldCheck",children:E.jsx(KT,{name:"unformatted",checked:(S=t[q.X_AXIS_DATA])==null?void 0:S.unformatted,onChange:T=>f(T,q.X_AXIS_DATA,!0),label:q.SHOW_UNFORMATTED_DATA})})]}),E.jsxs("div",{className:"formGroupBlock",children:[E.jsx("span",{className:"groupTitle",children:q.Y_AXIS}),p.includes(t==null?void 0:t.yField)&&E.jsxs("div",{className:"formGroup",children:[E.jsxs("span",{className:"fieldLabel",children:[q.Y_AXIS," ",q.METRICS]}),E.jsxs(Ba,{value:((x=t[q.Y_AXIS_DATA])==null?void 0:x.metric)||al.SUM,name:"metric",onChange:T=>f(T,q.Y_AXIS_DATA,!1),children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.METRICS]}),am==null?void 0:am.map(T=>E.jsx(Dn,{value:T==null?void 0:T.value,children:E.jsx("div",{className:"optionText",children:T.label})},T==null?void 0:T.value))]})]}),E.jsxs("div",{className:"formGroup",children:[E.jsxs("div",{className:"formGroupLabel",children:[E.jsx("span",{className:"fieldLabel",children:q.Y_AXIS_TITLE}),E.jsx("span",{className:"fieldTag",children:t==null?void 0:t.yField})]}),E.jsx(gr,{name:"title",defaultValue:((w=t[q.Y_AXIS_DATA])==null?void 0:w.title)||t.yField,placeholder:"User title",onChange:T=>m(T,q.Y_AXIS_DATA),warningText:q.MAX_LENGTH_ERROR("name",Qr),hasMax:!0,maxValue:Qr})]}),!!(r!=null&&r.length)&&t.y1Field&&E.jsxs("div",{className:"formGroup",children:[E.jsxs("div",{className:"formGroupLabel",children:[E.jsx("span",{className:"fieldLabel",children:q.Y1_AXIS_TITLE}),E.jsx("span",{className:"fieldTag",children:(_=t==null?void 0:t.y1Field)==null?void 0:_.value})]}),E.jsx(gr,{name:"y1Title",defaultValue:((C=t[q.Y_AXIS_DATA])==null?void 0:C.y1Title)||((k=(R=t[q.Y_AXIS_DATA])==null?void 0:R.y1Title)==null?void 0:k.value)||((P=t.y1Field)==null?void 0:P.value),placeholder:"User title",onChange:T=>m(T,q.Y_AXIS_DATA),warningText:q.MAX_LENGTH_ERROR("name",Qr),hasMax:!0,maxValue:Qr})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.Y_AXIS_LEFT_MARGIN}),E.jsxs(Ba,{name:"spacing",value:((N=t[q.Y_AXIS_DATA])==null?void 0:N.spacing)||"",onChange:T=>m(T,q.Y_AXIS_DATA),children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.Y_AXIS_LEFT_MARGIN]}),I$==null?void 0:I$.map(T=>E.jsx(Dn,{value:T,children:T},T))]})]}),!((L=_Ge(r))!=null&&L.length)&&e!==Ln.bar_chart&&E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.Y_AXIS_POSITION}),E.jsxs(Ba,{name:"position",value:((I=t[q.Y_AXIS_DATA])==null?void 0:I.position)||"",onChange:T=>m(T,q.Y_AXIS_DATA),children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.Y_AXIS_POSITION]}),HLe==null?void 0:HLe.map(T=>E.jsx(Dn,{value:T,children:T},T))]})]}),E.jsx("div",{className:"fieldCheck",children:E.jsx(KT,{name:"unformatted",checked:(b=t[q.Y_AXIS_DATA])==null?void 0:b.unformatted,onChange:T=>f(T,q.Y_AXIS_DATA,!0),label:q.SHOW_UNFORMATTED_DATA})})]})]})]}),E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.CHART_OPTIONS}),E.jsx("button",{"aria-label":"collpase-icon",className:c?"collpaseIcon open":"collpaseIcon",onClick:()=>{u(T=>!T)},type:"button",children:E.jsx(Yx,{})})]}),E.jsxs(jo,{in:c,children:[e!==Ln.bar_chart&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"fieldCheck",children:E.jsx(KT,{name:"legendEnabled",checked:t==null?void 0:t.legendEnabled,onChange:T=>f(T,"",!0),label:q.SHOW_LEGENDS})}),E.jsx("div",{className:"fieldCheck",children:E.jsx(KT,{name:"sliderEnabled",checked:t==null?void 0:t.sliderEnabled,onChange:T=>f(T,"",!0),label:q.SHOW_SLIDER})})," "]}),E.jsx("div",{className:"fieldCheck",children:E.jsx(KT,{name:"metricEnabled",checked:t==null?void 0:t.metricEnabled,onChange:T=>f(T,"",!0),label:q.SHOW_METRICS})})]})]})]})},SQe=gt.div`
  && + && {
    margin-top: 12px;
  }
  .optionIconContainer {
    display: flex;
    align-items: center;
    .optionIcon {
      width: 35px;
      height: 35px;
      img {
        height: 100%;
        max-width: 100%;
        width: 100%;
      }
    }
  }

  .optionText {
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    margin-left: 10px;
  }
`,wQe=gt.div`
  opacity: 1;
  cursor: pointer;
`,VDt="/assets/areaChart-f3d18624.svg",BIo="/assets/barChart-cc41bac8.svg",DIo="/assets/columnChart-93cef768.svg",KDt="/assets/lineChart-925fb979.svg",$Io="/assets/pieChart-e501866c.svg",FIo="/assets/scatterChart-a4b3e1a9.svg",jIo="/assets/stackedColumnChart-0393901a.svg",HIo="/assets/datasetIcon-56778ac5.svg",UIo="/assets/counterIcon-f103bb21.svg",fS=({value:t})=>E.jsx("img",{src:t,alt:"chart-icon"}),hct=t=>({line_chart:E.jsx(fS,{value:KDt}),stacked_line_chart:E.jsx(fS,{value:KDt}),bar_chart:E.jsx(fS,{value:BIo}),column_chart:E.jsx(fS,{value:DIo}),area_chart:E.jsx(fS,{value:VDt}),pie_chart:E.jsx(fS,{value:$Io}),scatter_chart:E.jsx(fS,{value:FIo}),stacked_column_chart:E.jsx(fS,{value:jIo}),stacked_area_chart:E.jsx(fS,{value:VDt}),table:E.jsx(fS,{value:HIo}),counter:E.jsx(fS,{value:UIo})})[t],P9e=gdn.map(t=>({label:t.chartLabel,value:t.chartType,iconName:hct(t.chartType),isSvg:!0})),O9e=iha.map(t=>({label:t.visualisationLabel,value:t.visualisationType,iconName:hct(t.visualisationType),isSvg:!0})),zIo=({chartType:t,chartFields:e})=>{var l;const[n,r]=Y.useState(!0),a=mV(),o=_V(a),s=c=>{if(c===Ln.scatter_chart||c===Ln.pie_chart||c===Ln.scatter_plot||c===Ln.stacked_area_chart||c===Ln.stacked_column_chart||c===Ln.stacked_line_chart){const{yField:u="",xField:d="",xAxisData:h={},yAxisData:f={}}=e,p={yField:"",xField:"",xAxisData:{},yAxisData:{}};u&&(p.yField=u),d&&(p.xField=d),Ft.isEmpty(h)||(p.xAxisData=h),f!=null&&f.title&&(p.yAxisData={title:f==null?void 0:f.title}),D_e(p)}pva(c)};return E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.VISUALIZATION_TYPE}),E.jsx("button",{"aria-label":"collapse-icon",className:n?"collpaseIcon open":"collpaseIcon",onClick:()=>{r(c=>!c)},type:"button",children:E.jsx(Yx,{})})]}),E.jsx(jo,{in:n,children:E.jsx("div",{className:"formGroup",children:E.jsxs(Ba,{value:t||"",onChange:c=>{var u,d;(u=c==null?void 0:c.target)!=null&&u.value&&s((d=c==null?void 0:c.target)==null?void 0:d.value)},children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.VISUALIZATION_TYPE]}),(a==null?void 0:a.length)>1&&E.jsx(Dn,{value:"type",className:"menuSubHead",disabled:!0,children:E.jsx("span",{children:q.CHART_VISUALIZATIONS})}),(a==null?void 0:a.length)>1&&(P9e==null?void 0:P9e.map(c=>E.jsx(Dn,{value:c==null?void 0:c.value,children:E.jsx(SQe,{children:E.jsx(wQe,{className:"optionRootOverlay",children:E.jsxs("div",{className:"optionIconContainer containerSelected",children:[E.jsx("div",{className:"optionIcon",children:c.iconName}),E.jsx("div",{className:"optionText",children:c.label})]})})})},c==null?void 0:c.value))),E.jsx(Dn,{value:"other",className:"menuSubHead",disabled:!0,children:E.jsx("span",{children:q.OTHER_VISUALIZATIONS})}),(l=O9e==null?void 0:O9e.filter(c=>o!=null&&o.length?!0:(c==null?void 0:c.value)!==ii.counter))==null?void 0:l.map(c=>E.jsx(Dn,{value:c==null?void 0:c.value,children:E.jsx(SQe,{children:E.jsx(wQe,{className:"optionRootOverlay",children:E.jsxs("div",{className:"optionIconContainer containerSelected",children:[E.jsx("div",{className:"optionIcon",children:c.iconName}),E.jsx("div",{className:"optionText",children:c.label})]})})})},c==null?void 0:c.value))]})})})]})},GIo=({counterFields:t,columns:e})=>{const[n,r]=Y.useState(!0),[a,o]=Y.useState(!0),s=_V(e),[l,c]=Y.useState({});return Y.useEffect(()=>{if(t!=null&&t.columnName){const u={};u[t.columnName]=1,c({...u})}},[t]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.COLUMN}),E.jsx("button",{"aria-label":"collpase-icon",className:n?"collpaseIcon open":"collpaseIcon",onClick:()=>{r(u=>!u)},type:"button",children:E.jsx(Yx,{})})]}),E.jsx(jo,{in:n,children:E.jsx("div",{className:"formGroup",children:E.jsxs(Ba,{disabled:Ft.isEmpty(s),value:(t==null?void 0:t.columnName)||"",onChange:u=>{var d,h;(d=u==null?void 0:u.target)!=null&&d.value&&oVe({...t,columnName:(h=u==null?void 0:u.target)==null?void 0:h.value,decimal:"2"})},children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.COLUMN]}),s.map(u=>E.jsx(Dn,{value:u,disabled:l[u]===1,children:u},u))]})})})]}),E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.METRICS}),E.jsx("button",{"aria-label":"collapse-icon",className:a?"collpaseIcon open":"collpaseIcon",onClick:()=>{o(u=>!u)},type:"button",children:E.jsx(Yx,{})})]}),E.jsxs(jo,{in:a,children:[E.jsx("div",{className:"formGroup",children:E.jsxs(Ba,{disabled:Ft.isEmpty(s),value:(t==null?void 0:t.metric)||"",onChange:u=>{var d,h;(d=u==null?void 0:u.target)!=null&&d.value&&oVe({...t,metric:(h=u==null?void 0:u.target)==null?void 0:h.value})},children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.METRICS]}),am==null?void 0:am.map(u=>E.jsx(Dn,{value:u==null?void 0:u.value,children:E.jsx("div",{className:"optionText",children:u.label})},u==null?void 0:u.value))]})}),E.jsx(fg,{message:q.COUNTER_HELP_TEXT})]})]})]})},VIo=({chartFields:t,fields:e})=>{const[n,r]=Y.useState(!0);return E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.SERIES_FIELD}),E.jsx("button",{"aria-label":"collapse-icon",className:n?"collpaseIcon open":"collpaseIcon",onClick:()=>{r(a=>!a)},type:"button",children:E.jsx(Yx,{})})]}),E.jsx(jo,{in:n,children:E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.SERIES_FIELD}),E.jsxs(Ba,{value:t.seriesField||"",onChange:a=>{var o,s;(o=a==null?void 0:a.target)!=null&&o.value&&B_e(q.Y_AXIS_DATA,"seriesField",(s=a==null?void 0:a.target)==null?void 0:s.value)},children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.SERIES_FIELD]}),e==null?void 0:e.map(a=>E.jsx(Dn,{value:a,children:a},a))]})]})})]})},KIo=({chartFields:t,fields:e,chartType:n})=>{const[r,a]=Y.useState(!0);return E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:n===Ln.pie_chart?q.ANGLE_FIELD:q.X_FIELD}),E.jsx("button",{"aria-label":"collpase-icon",className:r?"collpaseIcon open":"collpaseIcon",onClick:()=>{a(o=>!o)},type:"button",children:E.jsx(Yx,{})})]}),E.jsx(jo,{in:r,children:E.jsx("div",{className:"formGroup",children:E.jsxs(Ba,{value:t.xField||"",onChange:o=>{var s,l;(s=o==null?void 0:o.target)!=null&&s.value&&B_e(q.X_AXIS_DATA,"xField",(l=o==null?void 0:o.target)==null?void 0:l.value)},children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",n===Ln.pie_chart?q.ANGLE_FIELD:q.X_FIELD]}),e==null?void 0:e.map(o=>E.jsx(Dn,{value:o,children:o},o))]})})})]})},L9e=gdn.filter(({chartType:t})=>!Wrt(t)).map(t=>({label:t.chartLabel,value:vdn(t.chartType),iconName:hct(t.chartType),isSvg:!0})),WIo=({fields:t,chartFields:e,chartSeries:n,chartType:r})=>{const a=n==null?void 0:n.filter(l=>!["seriesField","xAxisData","yAxisData","legendEnabled","sliderEnabled","metricEnabled"].includes(l.fieldId)),o=(l,c,u,d)=>{yva(l,c,u,d)},s=l=>{const c=n.filter(d=>d.fieldId!==l);yhn([...c]);const u={...e};delete u[l],D_e({...u})};return r&&(a!=null&&a.length)&&!Wrt(r)?a==null?void 0:a.map(l=>{var c,u,d;return E.jsxs(ke.Fragment,{children:[E.jsxs("div",{className:"formGroup",children:[E.jsxs("div",{className:"formGroup remove",children:[E.jsx("span",{className:"axisLabel",children:l==null?void 0:l.label}),E.jsx(_n,{onClick:()=>{s(l==null?void 0:l.fieldId)},children:E.jsx(ioe,{})})]}),E.jsxs(Ba,{value:((c=e[l.fieldId])==null?void 0:c.value)||"",onChange:h=>{var f,p;(f=h==null?void 0:h.target)!=null&&f.value&&o(l==null?void 0:l.fieldId,"value",h.target.value,((p=e[l.fieldId])==null?void 0:p.chartType)||r)},children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",l==null?void 0:l.label]}),t==null?void 0:t.map(h=>E.jsx(Dn,{value:h,children:h},h))]})]}),E.jsxs("div",{className:"formGroup",children:[E.jsxs("span",{className:"fieldLabel",children:[E.jsx("span",{className:"axisLabel",children:l==null?void 0:l.label})," to plot"]}),E.jsx(Ba,{value:((u=e[l.fieldId])==null?void 0:u.yAxisIndex)||"1",onChange:h=>{var f,p;(f=h==null?void 0:h.target)!=null&&f.value&&o(l==null?void 0:l.fieldId,"yAxisIndex",h.target.value,((p=e[l.fieldId])==null?void 0:p.chartType)||r)},children:[{label:"Right",value:"0"},{label:"Left",value:"1"}].map(h=>E.jsx(Dn,{value:(h==null?void 0:h.value)||"",children:h==null?void 0:h.label},h==null?void 0:h.label))})]}),E.jsx("div",{className:"formGroup",children:E.jsx(Ba,{value:((d=mha(e[l.fieldId]))==null?void 0:d.chartType)||vdn(r),onChange:h=>{var f;return o(l.fieldId,"chartType",h.target.value,((f=e[l.fieldId])==null?void 0:f.chartType)||r)},children:L9e==null?void 0:L9e.map(h=>E.jsx(Dn,{value:h==null?void 0:h.value,children:E.jsx(SQe,{children:E.jsx(wQe,{className:"optionRootOverlay",children:E.jsxs("div",{className:"optionIconContainer containerSelected",children:[E.jsx("div",{className:"optionIcon",children:h.iconName}),E.jsx("div",{className:"optionText",children:h.label})]})})})},h==null?void 0:h.value))})})]},O0.uuid())}):null},QIo=({chartFields:t,chartType:e,fields:n,chartSeries:r})=>{const a=()=>{const l=_Ge(r),c=l!=null&&l.length?l.length+1:1,u={fieldId:`y${c}Field`,required:!1,label:`Y${c}-axis`,inputType:"field-dropdown"};yhn([...r,u])},[o,s]=Y.useState(!0);return E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{className:"fieldLabel",children:e===Ln.pie_chart?q.COLOR_FIELD:q.Y_FIELD}),E.jsx("button",{"aria-label":"collpase-icon",className:o?"collpaseIcon open":"collpaseIcon",onClick:()=>{s(l=>!l)},type:"button",children:E.jsx(Yx,{})})]}),E.jsxs(jo,{in:o,children:[E.jsx("div",{className:"formGroup",children:E.jsxs(Ba,{value:t.yField||"",onChange:l=>{var c,u;(c=l==null?void 0:l.target)!=null&&c.value&&B_e(q.Y_AXIS_DATA,"yField",(u=l==null?void 0:l.target)==null?void 0:u.value)},children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",e===Ln.pie_chart?q.COLOR_FIELD:q.Y_FIELD]}),n==null?void 0:n.map(l=>E.jsx(Dn,{value:l,children:l},l))]})}),e&&E.jsx(WIo,{chartFields:t,chartType:e,fields:n,chartSeries:r}),e&&!Wrt(e)&&n&&n.length-2>_Ge(r).length&&E.jsx(Jt,{onClick:a,variant:"contained",color:"secondary",className:"addSeriesButton",children:q.ADD_SERIES})]})]})},qIo=()=>{const t=qw(),e=p9(),n=pN(),[r,a]=Y.useState([]),o=fhn(),s=mV()||[],l=Roe();return Y.useEffect(()=>{if(s!=null&&s.length){const c=(s==null?void 0:s.filter(({fieldName:u})=>{var d;return((d=l[u])==null?void 0:d.type)!=="null"}).map(({fieldName:u})=>u))||[];c!=null&&c.length&&a([...c])}else a([])},[s]),Y.useEffect(()=>{[Ln.stacked_column_chart,Ln.stacked_area_chart,Ln.stacked_line_chart].includes(n)||B_e(q.Y_AXIS_DATA,"seriesField",null)},[n]),E.jsxs(E.Fragment,{children:[E.jsx(zIo,{chartType:n,chartFields:t}),n&&![ii.table,ii.counter].includes(n)&&E.jsxs(E.Fragment,{children:[E.jsx(KIo,{chartFields:t,fields:r,chartType:n}),E.jsx(QIo,{chartFields:t,chartType:n,chartSeries:o,fields:r}),[Ln.stacked_column_chart,Ln.stacked_area_chart,Ln.stacked_line_chart].includes(n)&&E.jsx(VIo,{chartFields:t,fields:r})]}),n===ii.counter&&E.jsx(GIo,{counterFields:e,columns:s})]})},YIo=()=>{const t=p9(),[e,n]=Y.useState(!0),[r,a]=Y.useState(!0),o=lva(),s=(l,c)=>{const u={...t},d={[c]:l.target.value},h={...u,...d};oVe(h)};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.COUNTER_TITLE}),E.jsx("button",{"aria-label":"collapse-icon",className:e?"collpaseIcon open":"collpaseIcon",onClick:()=>{n(l=>!l)},type:"button",children:E.jsx(Yx,{})})]}),E.jsx(jo,{in:e,children:E.jsx("div",{className:"formGroupBlock",children:E.jsx("div",{className:"formGroup",children:E.jsx(gr,{name:"title",value:(t==null?void 0:t.title)||"",placeholder:q.COUNTER_TITLE,onChange:l=>s(l,"title"),warningText:q.MAX_LENGTH_ERROR("title",Qr),hasMax:!0,maxValue:Qr})})})})]}),E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.COUNTER_OPTIONS}),E.jsx("button",{"aria-label":"collapse-icon",className:r?"collpaseIcon open":"collpaseIcon",onClick:()=>{a(l=>!l)},type:"button",children:E.jsx(Yx,{})})]}),E.jsxs(jo,{in:r,children:[E.jsxs("div",{className:"formGroupBlock",children:[E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.PREFIX}),E.jsx(gr,{name:"prefix",value:(t==null?void 0:t.prefix)||"",placeholder:q.INPUT_PLACEHOLDER("prefix"),onChange:l=>s(l,"prefix"),warningText:q.MAX_LENGTH_ERROR("prefix",nde),hasMax:!0,maxValue:nde})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.SUFFIX}),E.jsx(gr,{name:"suffix",value:(t==null?void 0:t.suffix)||"",placeholder:q.INPUT_PLACEHOLDER("suffix"),onChange:l=>s(l,"suffix"),warningText:q.MAX_LENGTH_ERROR("suffix",nde),hasMax:!0,maxValue:nde})]})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.LABEL}),E.jsx(gr,{name:"label",defaultValue:(t==null?void 0:t.label)||(t==null?void 0:t.columnName),placeholder:q.INPUT_PLACEHOLDER("label"),onChange:l=>s(l,"label"),warningText:q.MAX_LENGTH_ERROR("name",Qr),hasMax:!0,maxValue:Qr})]}),o&&E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.DECIMAL}),E.jsx(gr,{name:"decimal",type:"number",placeholder:q.INPUT_PLACEHOLDER("decimal"),value:(t==null?void 0:t.decimal)||"",onChange:l=>s(l,"decimal"),hasMax:!0,maxValue:1})]})]})]})]})},JIo=()=>{var u;const t=mV()||[],e=Roe(),n=gO(),[r,a]=Y.useState(!0),[o,s]=Y.useState(-1),l=(d,h,f,p=!1)=>{const m={...n},g={...m[f],[h]:p?d.target.checked:d.target.value||""};m[f]={...g};let v=0;const{chartType:A,dataTitle:y,...S}=m,x={...S};Object.keys(x).forEach(w=>{x[w].hideColumn&&(v+=1)}),v!==t.length?mva(m):C0a(q.HIDE_COLUMN_WARNING)},c=d=>{s(o===d?-1:d)};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsx("span",{children:q.DATASET_TITLE}),E.jsx("button",{"aria-label":"collapse-icon",className:r?"collpaseIcon open":"collpaseIcon",onClick:()=>{a(d=>!d)},type:"button",children:E.jsx(Yx,{})})]}),E.jsx(jo,{in:r,children:E.jsx("div",{className:"formGroupBlock",children:E.jsx("div",{className:"formGroup",children:E.jsx(gr,{name:"title",value:((u=n==null?void 0:n.dataTitle)==null?void 0:u.dataTitle)||"",placeholder:q.DATASET_TITLE,onChange:d=>l(d,"dataTitle","dataTitle"),warningText:q.MAX_LENGTH_ERROR("dataTitle",Qr),hasMax:!0,maxValue:Qr})})})})]}),t==null?void 0:t.map((d,h)=>{var f,p,m,g,v,A,y,S,x;return E.jsxs("div",{className:"box",children:[E.jsxs("div",{className:"boxHead",children:[E.jsxs("span",{children:["Column ",h,": ",d==null?void 0:d.fieldName]}),E.jsx("button",{"aria-label":"collpase-icon",className:o===h?"collpaseIcon open":"collpaseIcon",onClick:()=>c(h),type:"button",children:E.jsx(Yx,{})})]}),E.jsx(jo,{in:o===h,children:E.jsxs("div",{className:"formGroupBlock",children:[E.jsxs("div",{className:"formGroup",children:[E.jsxs("div",{className:"formGroupLabel",children:[E.jsx("span",{className:"fieldLabel",children:q.TITLE}),E.jsx("span",{className:"fieldTag",children:d==null?void 0:d.fieldName})]}),E.jsx(gr,{name:"title",value:(f=n[h])==null?void 0:f.title,placeholder:q.INPUT_PLACEHOLDER("title"),onChange:w=>l(w,"title",h),defaultValue:d==null?void 0:d.fieldName})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.ALIGN}),E.jsxs(Ba,{name:"align",value:((p=n[h])==null?void 0:p.align)||P$[0].label,onChange:w=>l(w,"align",h),children:[E.jsx(Dn,{value:P$[0].label,className:"selectPlaceholder",children:((m=n[h])==null?void 0:m.align)||P$[0].label}),P$==null?void 0:P$.map(w=>E.jsx(Dn,{value:w==null?void 0:w.value,children:E.jsx("div",{className:"optionText",children:w.label})},w==null?void 0:w.value))]})]}),aha(d,e)&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.TYPE}),E.jsxs(Ba,{name:"type",value:((g=n[h])==null?void 0:g.type)||O$[0].label,onChange:w=>l(w,"type",h),children:[E.jsx(Dn,{value:O$[0].label,className:"selectPlaceholder",children:((v=n[h])==null?void 0:v.type)||O$[0].label}),O$==null?void 0:O$.map(w=>E.jsx(Dn,{value:w==null?void 0:w.value,children:E.jsx("div",{className:"optionText",children:w.label})},w==null?void 0:w.value))]})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{className:"fieldLabel",children:q.FORMAT}),E.jsx(gr,{name:"format",type:"number",placeholder:q.INPUT_PLACEHOLDER("format"),value:(A=n[h])==null?void 0:A.format,onChange:w=>l(w,"format",h),hasMax:!0,maxValue:1})]}),E.jsxs("div",{className:"fieldCheck formGroup",children:[E.jsx(KT,{name:"positive",checked:(y=n[h])==null?void 0:y.positive,onChange:w=>l(w,"positive",h,!0),label:q.POSITIVE_COLUMN}),E.jsx(KT,{name:"negative",checked:(S=n[h])==null?void 0:S.negative,onChange:w=>l(w,"negative",h,!0),label:q.NEGATIVE_COLUMN})]})]}),E.jsx("div",{className:"fieldCheck",children:E.jsx(KT,{name:"hideColumn",checked:(x=n[h])==null?void 0:x.hideColumn,onChange:w=>l(w,"hideColumn",h,!0),label:q.HIDE_COLUMN})})]})})]})})]})},jzn=()=>{const[t,e]=Y.useState("Data"),n=pN(),r=s=>{e(s.currentTarget.value)},a=s=>{switch(s){case ii.chart:return E.jsx(GDt,{});case ii.counter:return E.jsx(YIo,{});case ii.table:return E.jsx(JIo,{});default:return E.jsx(GDt,{})}},o=s=>{switch(s){case"Data":return E.jsx(qIo,{});default:return a(n)}};return E.jsxs("div",{className:"widgetEditorBlock",children:[E.jsx(Tp,{children:E.jsxs(eA,{exclusive:!0,color:"primary",value:t,onChange:r,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"Data","aria-label":"Data",children:q.DATA}),n!==Ln.pie_chart&&E.jsx(Xs,{size:"small",className:"tabButton ",value:"Customize","aria-label":"Customize",children:q.CUSTOMISE})]})}),E.jsx("div",{className:"tabPanel",children:o(t)})]})},ZIo=()=>E.jsx("div",{className:"rightPane",children:E.jsx(jzn,{})}),XIo=({setFieldError:t,fieldError:e})=>{const n=phn(),r=mhn(),a=qw(),o=mV(),s=pN(),l=oit(),c=ait(),u=sit(),d=p9(),h=Roe(),[f,p]=Y.useState(!1),[m,g]=Y.useState(!0),[v,A]=Y.useState(0),{width:y}=Is();return Y.useEffect(()=>{s===ii.table&&p(!1),y<qt.breakpoints.values.sm?A(162):y<qt.breakpoints.values.md&&A(272)},[s]),Y.useEffect(()=>{!Ft.isEmpty(a)&&!Ft.isEmpty(o)&&g(Adn(o,a,t))},[a,o]),E.jsxs(E.Fragment,{children:[s!==ii.table&&E.jsx(d8,{checked:f,handleChange:()=>p(S=>!S),showText:`${q.SHOW} ${q.QUERY_RESULTS}`,hideText:`${q.HIDE} ${q.QUERY_RESULTS}`}),f||s===ii.table?E.jsxs("div",{className:"queryResult",children:[E.jsx(EH,{isEditor:!0,isRunning:l,rowCount:r,status:n,columns:o,disabled:!1,data:u}),E.jsx(TP,{columns:o,rowCount:r,isRunning:l,queryError:c,data:u,tableHeight:v})]}):E.jsx("div",{className:"chartPreview",children:E.jsx(l8,{chartID:"chart-preview",chartFields:a,isRunning:n===""||l,queryError:c,queryWarning:!m&&e,chartType:s,columns:o,data:u,isChartEditor:!0,counterFields:d,dataframesObject:h,isChartVis:!0,tableVisHeight:v,counterTooltipPlacement:"bottom-start"})})," "]})},e3o="/assets/404Error-4b2b2fdf.png",t3o="/assets/404Error-5ffc66a6.webp",n3o="/assets/error-f6360f5e.png",r3o="/assets/error-18354ce5.webp",i3o="/assets/500Error-9363e597.png",a3o="/assets/500Error-c2319cd1.webp",o3o=gt.div`
  padding-top: 56px;
  .boxContent {
    min-height: ${t=>t.height-24}px;
    display: flex;
    flex-direction: column;
    ${t=>t.theme.breakpoints.down("sm")} {
      min-height: ${t=>t.height}px;
    }
    .emptyBlock {
      margin: auto;
      img {
        max-width: 630px;
      }
      .emptyLink {
        text-decoration: none;
      }
      .MuiButton-root {
        margin-top: 35px;
      }
      .errorText {
        color: ${t=>t.theme.custom.greyText.A2};
        font-size: ${t=>t.theme.custom.fontSize.font14};
        max-width: 550px;
        text-align: center;
      }
      .supportLinks {
        margin-top: 50px;
        display: flex;
        flex-wrap: wrap;
        gap: 32px;
        a {
          color: ${t=>t.theme.custom.greyText.A2};
          font-size: ${t=>t.theme.custom.fontSize.font14};
          text-decoration: underline;
          &:hover {
            color: ${t=>t.theme.custom.white.A11};
          }
        }
      }
    }
  }
`,Ise=({errorPageType:t})=>{const[e,n]=Y.useState({imgPath:"",imgPathWebp:""}),{height:r,headerHeight:a}=Is(),o=r-a||500,s=()=>{t==="404"&&n({imgPath:e3o,imgPathWebp:t3o}),t==="500"&&n({imgPath:i3o,imgPathWebp:a3o}),t==="uncaught"&&n({imgPath:n3o,imgPathWebp:r3o})};return Y.useEffect(()=>{s()},[t]),E.jsx(o3o,{height:o,children:E.jsx("main",{className:"mainContent",children:E.jsx("div",{className:"boxContent",children:E.jsxs(sf,{imgPath:e.imgPath,imgPathWebp:e.imgPathWebp,className:"emptyBlock",children:[(t==="404"||t==="uncaught")&&E.jsx("a",{className:"emptyLink",href:Qt.landingPage,children:E.jsx(Jt,{variant:"contained",color:"primary",children:q.GO_BACK_TO_HOME})}),t==="500"&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"errorText",children:q.ERROR_TEXT_500}),E.jsx("div",{className:"supportLinks",children:E.jsx("a",{href:"https://space-and-time-labs.atlassian.net/servicedesk/customer/portals",target:"_blank",rel:"noreferrer",children:"Contact Support"})})]})]})})})})},WDt={PAGE_NOT_FOUND:"Page not found",UNCAUGHT_ERROR:"Uncaught error"};let Pre=class extends Y.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error(e,"getDerivedStateFromError"),{hasError:!0}}componentDidCatch(e,n){if(e.message.includes("Failed to fetch dynamically imported module")||e.message.includes("Importing a module script failed")){window.location.reload();return}this.setState({hasError:!0}),console.error("Uncaught error:",e,n);const{errorPageType:r}=this.props,a=r==="404"?WDt.PAGE_NOT_FOUND:WDt.UNCAUGHT_ERROR;Wbe(e),_a.pageError({error:a})}render(){const{hasError:e}=this.state,{children:n,errorPageType:r}=this.props;return e?E.jsx(Ise,{errorPageType:r||"uncaught"}):n}};const QDt=({isUnsaved:t="false",isMaterializedView:e=!1})=>{var _,C,R,k;const[n,r]=Y.useState(!0),a=Y.useRef(null),o=pN()||"",{visualType:s}=wV(o),l=Bit(),c=ghn(),u=l&&!((_=c==null?void 0:c.name)!=null&&_.length),[d,h]=Y.useState(""),[f,p]=Y.useState(!1),m=lit(),g=cit(),v=P=>{var L;const N=((L=P==null?void 0:P.target)==null?void 0:L.value)||"";(c==null?void 0:c.name)!==N&&RT(I=>({...I,name:N}))},A=P=>{const N=P.target.value||"";(c==null?void 0:c.chartName)!==N&&RT(L=>({...L,chartName:N}))},y=P=>{const N=[...c.chartTags].filter(L=>(L==null?void 0:L.tagValue)!==P&&(L==null?void 0:L.value)!==P);RT(L=>({...L,chartTags:N}))},S=P=>RT(N=>({...N,chartTags:P})),x=P=>{const N=P.target.value||"";RT(L=>({...L,chartDescription:N}))},w=P=>{var L;const N=(L=P==null?void 0:P.target)==null?void 0:L.value;h(N||""),RT(I=>({...I,viewName:N})),N&&Hfn(N)?!f&&p(!0):f&&p(!1)};return E.jsxs("div",{className:"widgetFormBlock",children:[E.jsxs("div",{className:"formTitle",children:["Visualization Details",E.jsx(_n,{onClick:()=>r(!n),className:n?"btnActive":"",children:E.jsx(Qy,{})})]}),E.jsx(jo,{in:n,timeout:"auto",unmountOnExit:!0,children:E.jsxs("div",{className:"formContent",children:[t==="true"&&E.jsx("div",{className:"formField queryInput",children:E.jsx(gr,{label:q.QUERY_NAME,ref:a,error:u,placeholder:q.UNTITLED_QUERY,value:c.name,ishelpertext:1,helperText:`${(C=c==null?void 0:c.name)==null?void 0:C.length}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("name",Qr),onChange:v,onKeyDown:vw,hasMax:!0,maxValue:Qr,required:!0})}),E.jsx("div",{className:"formField",children:E.jsx(gr,{label:q.ENTER_WIDGET_NAME(ka[s]),ref:a,ishelpertext:!0,placeholder:`${q.ENTER} ${q.ENTER_WIDGET_NAME(ka[s])}`,value:c.chartName,helperText:`${(R=c==null?void 0:c.chartName)==null?void 0:R.length}/${Qr}`,onChange:A,warningText:q.MAX_LENGTH_ERROR("name",Qr),onKeyDown:vw,hasMax:!0,maxValue:Qr,required:!0})}),E.jsxs("div",{className:"formField tagInput",children:[E.jsx(nCe,{currentTags:c.chartTags,setTags:S}),E.jsx("div",{className:"tagList",children:E.jsx(Ov,{tags:(c==null?void 0:c.chartTags)||[],isRemovable:!0,onRemove:y})})]}),E.jsx("div",{className:"formField descInput",children:E.jsx(gr,{label:q.ENTER_WIDGET_DESCRIPTION(ka[s]),ref:a,placeholder:`${q.ENTER} ${q.ENTER_WIDGET_DESCRIPTION(ka[s])}`,value:c.chartDescription,ishelpertext:!0,helperText:`${(k=c==null?void 0:c.chartDescription)==null?void 0:k.length}/${Qr}`,onChange:x,hasMax:!0,maxValue:Qr,warningText:q.MAX_LENGTH_ERROR("description",Qr)})}),E.jsxs(Dzn,{children:[E.jsxs(Bzn,{className:"materialViewCheck",children:[E.jsxs("div",{className:"materializedViewCheckWrapper",children:[E.jsx("label",{className:"formLabel",children:q.MATERIALIZED_VIEW_CONFIGURATION}),E.jsxs("div",{className:"infoPopover",children:[E.jsx(_n,{children:E.jsx(cg,{className:"infoIcon"})}),E.jsx("div",{className:"popoverContent",children:E.jsxs("div",{className:"contentInner",children:[q.MATERIALIZED_VIEW_INFO," ",E.jsx("a",{href:zan,target:"_blank",rel:"noreferrer",children:q.LEARN_MORE_HERE})]})})]})]}),E.jsx(KT,{name:"isMaterialized",checked:m||e,onChange:P=>{var N;return lVe((N=P==null?void 0:P.target)==null?void 0:N.checked)},disabled:e,label:q.MATERIALIZE_VIEW_CHECKBOX_TEXT})]}),m&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"viewsInput",children:E.jsx(gr,{label:q.ENTER_VIEW_NAME,placeholder:q.ENTER_VIEW_NAME,value:d,ishelpertext:!0,helperText:`${d==null?void 0:d.length}/${Qr}`,onChange:w,warningText:q.MAX_LENGTH_ERROR("name",Qr),errorText:f&&q.VIEW_NAME_ERROR("View"),onKeyDown:vw,hasMax:!0,maxValue:Qr,required:!0,className:"materializedViewInput",startAdornment:E.jsx(Kx,{position:"start",children:"SXT_DAPP_VIEWS."})})}),E.jsxs("div",{className:"autoRefreshToggle",children:["Auto refresh",E.jsx(d8,{checked:g,handleChange:()=>bhn(!g),showText:"Off",hideText:"On"})]})]})]})]})})]})};function qDt(){var g,v,A;const{search:t}=Zh(),e=QM(),n=new URLSearchParams(t).get("isUnsaved")||"false",r=O_e(),a=ova(),o=sva(),s=e==null?void 0:e.chartId,l=pV(),c=new URLSearchParams(t).get("queryId")||(l==null?void 0:l.queryId)||"",u=ho(),{height:d,headerHeight:h}=Is(),[f,p]=Y.useState(""),m=d-h+200||500;return Y.useEffect(()=>()=>{uit()},[]),Y.useEffect(()=>{!l&&s&&Ava(s,u)},[s,l]),Y.useEffect(()=>{c&&n!=="true"&&wva(c,u)},[c]),r!=null&&r.error||o?E.jsx(Pre,{children:E.jsx(Ise,{errorPageType:a?`${a}`:"404"})}):E.jsx(Y.Suspense,{fallback:as,children:E.jsx(UMo,{height:m,children:E.jsx("main",{className:"mainContent",children:E.jsxs("div",{className:"chartEditorInner",children:[E.jsx(dIo,{fieldError:f,queryId:c,selectedChart:l,isUnsaved:n,isMaterializedView:(g=r==null?void 0:r.data)==null?void 0:g.isMaterializedView}),E.jsx("div",{className:"splitePane desktopChartEditorWrapper",children:E.jsxs(aC,{split:"vertical",minSize:300,defaultSize:400,maxSize:550,className:"chartEditorView",children:[E.jsxs("div",{className:"cutomiseVisualPanel",children:[E.jsx(QDt,{isUnsaved:n,isMaterializedView:(v=r==null?void 0:r.data)==null?void 0:v.isMaterializedView}),E.jsx(ZIo,{})]}),E.jsx("div",{className:"visualViewPane",children:(r==null?void 0:r.data)&&E.jsx(LIo,{fieldError:f,chartName:l==null?void 0:l.name,setFieldError:p,innerContentHeight:m})})]})}),E.jsxs("div",{className:"mobileChartEditorWrapper",children:[(r==null?void 0:r.data)&&E.jsx("div",{className:"mobileDatasetPreview",children:E.jsx(XIo,{fieldError:f,setFieldError:p,innerContentHeight:m})}),E.jsxs("div",{className:"cutomiseVisualPanel",children:[E.jsx(QDt,{isUnsaved:n,isMaterializedView:(A=r==null?void 0:r.data)==null?void 0:A.isMaterializedView}),E.jsx(jzn,{})]})]})]})})})})}var VA={};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var _Qe=function(t,e){return _Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},_Qe(t,e)};function s3o(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_Qe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var TQe=function(){return TQe=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},TQe.apply(this,arguments)};function l3o(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function c3o(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function u3o(t,e){return function(n,r){e(n,r,t)}}function d3o(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function h3o(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function f3o(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var fct=Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function p3o(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&fct(e,t,n)}function CQe(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hzn(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function m3o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Hzn(arguments[e]));return t}function g3o(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,a++)r[a]=o[s];return r}function v3o(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,o;r<a;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||e)}function Ore(t){return this instanceof Ore?(this.v=t,this):new Ore(t)}function A3o(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,o=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(f){r[f]&&(a[f]=function(p){return new Promise(function(m,g){o.push([f,p,m,g])>1||l(f,p)})})}function l(f,p){try{c(r[f](p))}catch(m){h(o[0][3],m)}}function c(f){f.value instanceof Ore?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function y3o(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,o){e[a]=t[a]?function(s){return(n=!n)?{value:Ore(t[a](s)),done:a==="return"}:o?o(s):s}:o}}function b3o(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof CQe=="function"?CQe(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(l,c){s=t[o](s),a(l,c,s.done,s.value)})}}function a(o,s,l,c){Promise.resolve(c).then(function(u){o({value:u,done:l})},s)}}function x3o(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var E3o=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S3o(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&fct(e,t,n);return E3o(e,t),e}function w3o(t){return t&&t.__esModule?t:{default:t}}function _3o(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function T3o(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}const C3o=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return TQe},__asyncDelegator:y3o,__asyncGenerator:A3o,__asyncValues:b3o,__await:Ore,__awaiter:h3o,__classPrivateFieldGet:_3o,__classPrivateFieldSet:T3o,__createBinding:fct,__decorate:c3o,__exportStar:p3o,__extends:s3o,__generator:f3o,__importDefault:w3o,__importStar:S3o,__makeTemplateObject:x3o,__metadata:d3o,__param:u3o,__read:Hzn,__rest:l3o,__spread:m3o,__spreadArray:v3o,__spreadArrays:g3o,__values:CQe},Symbol.toStringTag,{value:"Module"})),SN=Uu(C3o);var qhe={},Yhe={},B9e={},Jhe={},YDt;function k3o(){if(YDt)return Jhe;YDt=1,Jhe.__esModule=!0;var t=Y;function e(n,r){t.useEffect(function(){var a=!0,o=function(){return a},s=n(o);return function(){a=!1,s&&s()}},r)}return Jhe.useCurrentEffect=e,Jhe}var Zhe={},JDt;function R3o(){if(JDt)return Zhe;JDt=1,Zhe.__esModule=!0;var t=Y;function e(n,r){var a=!0,o=function(){return a};return t.useEffect(function(){return function(){a=!1}},r),t.useCallback(n(o),r)}return Zhe.useCurrentCallback=e,Zhe}var ZDt;function Uzn(){return ZDt||(ZDt=1,function(t){function e(n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r])}t.__esModule=!0,e(k3o()),e(R3o())}(B9e)),B9e}var D9e={},Xhe={},XDt;function zzn(){if(XDt)return Xhe;XDt=1,Object.defineProperty(Xhe,"__esModule",{value:!0});var t={loading:!0,data:void 0,error:void 0};return Xhe.default=t,Xhe}var efe={},e6t;function M3o(){if(e6t)return efe;e6t=1,Object.defineProperty(efe,"__esModule",{value:!0});var t=SN,e=t.__importDefault(zzn());function n(r,a){var o={start:function(){return e.default},resolve:function(){return t.__assign(t.__assign({},r),{data:a.payload,loading:!1})},reject:function(){return t.__assign(t.__assign({},r),{error:a.payload,loading:!1})}};return o[a.type]()}return efe.default=n,efe}var tfe={},$9e,t6t;function N3o(){return t6t||(t6t=1,$9e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),$9e}var F9e,n6t;function Gzn(){if(n6t)return F9e;n6t=1;const t=N3o(),e={};for(const a of Object.keys(t))e[t[a]]=a;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};F9e=n;for(const a of Object.keys(n)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);const{channels:o,labels:s}=n[a];delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:o}),Object.defineProperty(n[a],"labels",{value:s})}n.rgb.hsl=function(a){const o=a[0]/255,s=a[1]/255,l=a[2]/255,c=Math.min(o,s,l),u=Math.max(o,s,l),d=u-c;let h,f;u===c?h=0:o===u?h=(s-l)/d:s===u?h=2+(l-o)/d:l===u&&(h=4+(o-s)/d),h=Math.min(h*60,360),h<0&&(h+=360);const p=(c+u)/2;return u===c?f=0:p<=.5?f=d/(u+c):f=d/(2-u-c),[h,f*100,p*100]},n.rgb.hsv=function(a){let o,s,l,c,u;const d=a[0]/255,h=a[1]/255,f=a[2]/255,p=Math.max(d,h,f),m=p-Math.min(d,h,f),g=function(v){return(p-v)/6/m+1/2};return m===0?(c=0,u=0):(u=m/p,o=g(d),s=g(h),l=g(f),d===p?c=l-s:h===p?c=1/3+o-l:f===p&&(c=2/3+s-o),c<0?c+=1:c>1&&(c-=1)),[c*360,u*100,p*100]},n.rgb.hwb=function(a){const o=a[0],s=a[1];let l=a[2];const c=n.rgb.hsl(a)[0],u=1/255*Math.min(o,Math.min(s,l));return l=1-1/255*Math.max(o,Math.max(s,l)),[c,u*100,l*100]},n.rgb.cmyk=function(a){const o=a[0]/255,s=a[1]/255,l=a[2]/255,c=Math.min(1-o,1-s,1-l),u=(1-o-c)/(1-c)||0,d=(1-s-c)/(1-c)||0,h=(1-l-c)/(1-c)||0;return[u*100,d*100,h*100,c*100]};function r(a,o){return(a[0]-o[0])**2+(a[1]-o[1])**2+(a[2]-o[2])**2}return n.rgb.keyword=function(a){const o=e[a];if(o)return o;let s=1/0,l;for(const c of Object.keys(t)){const u=t[c],d=r(a,u);d<s&&(s=d,l=c)}return l},n.keyword.rgb=function(a){return t[a]},n.rgb.xyz=function(a){let o=a[0]/255,s=a[1]/255,l=a[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92;const c=o*.4124+s*.3576+l*.1805,u=o*.2126+s*.7152+l*.0722,d=o*.0193+s*.1192+l*.9505;return[c*100,u*100,d*100]},n.rgb.lab=function(a){const o=n.rgb.xyz(a);let s=o[0],l=o[1],c=o[2];s/=95.047,l/=100,c/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;const u=116*l-16,d=500*(s-l),h=200*(l-c);return[u,d,h]},n.hsl.rgb=function(a){const o=a[0]/360,s=a[1]/100,l=a[2]/100;let c,u,d;if(s===0)return d=l*255,[d,d,d];l<.5?c=l*(1+s):c=l+s-l*s;const h=2*l-c,f=[0,0,0];for(let p=0;p<3;p++)u=o+1/3*-(p-1),u<0&&u++,u>1&&u--,6*u<1?d=h+(c-h)*6*u:2*u<1?d=c:3*u<2?d=h+(c-h)*(2/3-u)*6:d=h,f[p]=d*255;return f},n.hsl.hsv=function(a){const o=a[0];let s=a[1]/100,l=a[2]/100,c=s;const u=Math.max(l,.01);l*=2,s*=l<=1?l:2-l,c*=u<=1?u:2-u;const d=(l+s)/2,h=l===0?2*c/(u+c):2*s/(l+s);return[o,h*100,d*100]},n.hsv.rgb=function(a){const o=a[0]/60,s=a[1]/100;let l=a[2]/100;const c=Math.floor(o)%6,u=o-Math.floor(o),d=255*l*(1-s),h=255*l*(1-s*u),f=255*l*(1-s*(1-u));switch(l*=255,c){case 0:return[l,f,d];case 1:return[h,l,d];case 2:return[d,l,f];case 3:return[d,h,l];case 4:return[f,d,l];case 5:return[l,d,h]}},n.hsv.hsl=function(a){const o=a[0],s=a[1]/100,l=a[2]/100,c=Math.max(l,.01);let u,d;d=(2-s)*l;const h=(2-s)*c;return u=s*c,u/=h<=1?h:2-h,u=u||0,d/=2,[o,u*100,d*100]},n.hwb.rgb=function(a){const o=a[0]/360;let s=a[1]/100,l=a[2]/100;const c=s+l;let u;c>1&&(s/=c,l/=c);const d=Math.floor(6*o),h=1-l;u=6*o-d,d&1&&(u=1-u);const f=s+u*(h-s);let p,m,g;switch(d){default:case 6:case 0:p=h,m=f,g=s;break;case 1:p=f,m=h,g=s;break;case 2:p=s,m=h,g=f;break;case 3:p=s,m=f,g=h;break;case 4:p=f,m=s,g=h;break;case 5:p=h,m=s,g=f;break}return[p*255,m*255,g*255]},n.cmyk.rgb=function(a){const o=a[0]/100,s=a[1]/100,l=a[2]/100,c=a[3]/100,u=1-Math.min(1,o*(1-c)+c),d=1-Math.min(1,s*(1-c)+c),h=1-Math.min(1,l*(1-c)+c);return[u*255,d*255,h*255]},n.xyz.rgb=function(a){const o=a[0]/100,s=a[1]/100,l=a[2]/100;let c,u,d;return c=o*3.2406+s*-1.5372+l*-.4986,u=o*-.9689+s*1.8758+l*.0415,d=o*.0557+s*-.204+l*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,c=Math.min(Math.max(0,c),1),u=Math.min(Math.max(0,u),1),d=Math.min(Math.max(0,d),1),[c*255,u*255,d*255]},n.xyz.lab=function(a){let o=a[0],s=a[1],l=a[2];o/=95.047,s/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;const c=116*s-16,u=500*(o-s),d=200*(s-l);return[c,u,d]},n.lab.xyz=function(a){const o=a[0],s=a[1],l=a[2];let c,u,d;u=(o+16)/116,c=s/500+u,d=u-l/200;const h=u**3,f=c**3,p=d**3;return u=h>.008856?h:(u-16/116)/7.787,c=f>.008856?f:(c-16/116)/7.787,d=p>.008856?p:(d-16/116)/7.787,c*=95.047,u*=100,d*=108.883,[c,u,d]},n.lab.lch=function(a){const o=a[0],s=a[1],l=a[2];let c;c=Math.atan2(l,s)*360/2/Math.PI,c<0&&(c+=360);const d=Math.sqrt(s*s+l*l);return[o,d,c]},n.lch.lab=function(a){const o=a[0],s=a[1],c=a[2]/360*2*Math.PI,u=s*Math.cos(c),d=s*Math.sin(c);return[o,u,d]},n.rgb.ansi16=function(a,o=null){const[s,l,c]=a;let u=o===null?n.rgb.hsv(a)[2]:o;if(u=Math.round(u/50),u===0)return 30;let d=30+(Math.round(c/255)<<2|Math.round(l/255)<<1|Math.round(s/255));return u===2&&(d+=60),d},n.hsv.ansi16=function(a){return n.rgb.ansi16(n.hsv.rgb(a),a[2])},n.rgb.ansi256=function(a){const o=a[0],s=a[1],l=a[2];return o===s&&s===l?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(l/255*5)},n.ansi16.rgb=function(a){let o=a%10;if(o===0||o===7)return a>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(~~(a>50)+1)*.5,l=(o&1)*s*255,c=(o>>1&1)*s*255,u=(o>>2&1)*s*255;return[l,c,u]},n.ansi256.rgb=function(a){if(a>=232){const u=(a-232)*10+8;return[u,u,u]}a-=16;let o;const s=Math.floor(a/36)/5*255,l=Math.floor((o=a%36)/6)/5*255,c=o%6/5*255;return[s,l,c]},n.rgb.hex=function(a){const s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},n.hex.rgb=function(a){const o=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=s.split("").map(h=>h+h).join(""));const l=parseInt(s,16),c=l>>16&255,u=l>>8&255,d=l&255;return[c,u,d]},n.rgb.hcg=function(a){const o=a[0]/255,s=a[1]/255,l=a[2]/255,c=Math.max(Math.max(o,s),l),u=Math.min(Math.min(o,s),l),d=c-u;let h,f;return d<1?h=u/(1-d):h=0,d<=0?f=0:c===o?f=(s-l)/d%6:c===s?f=2+(l-o)/d:f=4+(o-s)/d,f/=6,f%=1,[f*360,d*100,h*100]},n.hsl.hcg=function(a){const o=a[1]/100,s=a[2]/100,l=s<.5?2*o*s:2*o*(1-s);let c=0;return l<1&&(c=(s-.5*l)/(1-l)),[a[0],l*100,c*100]},n.hsv.hcg=function(a){const o=a[1]/100,s=a[2]/100,l=o*s;let c=0;return l<1&&(c=(s-l)/(1-l)),[a[0],l*100,c*100]},n.hcg.rgb=function(a){const o=a[0]/360,s=a[1]/100,l=a[2]/100;if(s===0)return[l*255,l*255,l*255];const c=[0,0,0],u=o%1*6,d=u%1,h=1-d;let f=0;switch(Math.floor(u)){case 0:c[0]=1,c[1]=d,c[2]=0;break;case 1:c[0]=h,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=d;break;case 3:c[0]=0,c[1]=h,c[2]=1;break;case 4:c[0]=d,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=h}return f=(1-s)*l,[(s*c[0]+f)*255,(s*c[1]+f)*255,(s*c[2]+f)*255]},n.hcg.hsv=function(a){const o=a[1]/100,s=a[2]/100,l=o+s*(1-o);let c=0;return l>0&&(c=o/l),[a[0],c*100,l*100]},n.hcg.hsl=function(a){const o=a[1]/100,l=a[2]/100*(1-o)+.5*o;let c=0;return l>0&&l<.5?c=o/(2*l):l>=.5&&l<1&&(c=o/(2*(1-l))),[a[0],c*100,l*100]},n.hcg.hwb=function(a){const o=a[1]/100,s=a[2]/100,l=o+s*(1-o);return[a[0],(l-o)*100,(1-l)*100]},n.hwb.hcg=function(a){const o=a[1]/100,l=1-a[2]/100,c=l-o;let u=0;return c<1&&(u=(l-c)/(1-c)),[a[0],c*100,u*100]},n.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},n.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},n.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},n.gray.hsl=function(a){return[0,0,a[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(a){return[0,100,a[0]]},n.gray.cmyk=function(a){return[0,0,0,a[0]]},n.gray.lab=function(a){return[a[0],0,0]},n.gray.hex=function(a){const o=Math.round(a[0]/100*255)&255,l=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]},F9e}var j9e,r6t;function I3o(){if(r6t)return j9e;r6t=1;const t=Gzn();function e(){const o={},s=Object.keys(t);for(let l=s.length,c=0;c<l;c++)o[s[c]]={distance:-1,parent:null};return o}function n(o){const s=e(),l=[o];for(s[o].distance=0;l.length;){const c=l.pop(),u=Object.keys(t[c]);for(let d=u.length,h=0;h<d;h++){const f=u[h],p=s[f];p.distance===-1&&(p.distance=s[c].distance+1,p.parent=c,l.unshift(f))}}return s}function r(o,s){return function(l){return s(o(l))}}function a(o,s){const l=[s[o].parent,o];let c=t[s[o].parent][o],u=s[o].parent;for(;s[u].parent;)l.unshift(s[u].parent),c=r(t[s[u].parent][u],c),u=s[u].parent;return c.conversion=l,c}return j9e=function(o){const s=n(o),l={},c=Object.keys(s);for(let u=c.length,d=0;d<u;d++){const h=c[d];s[h].parent!==null&&(l[h]=a(h,s))}return l},j9e}var H9e,i6t;function P3o(){if(i6t)return H9e;i6t=1;const t=Gzn(),e=I3o(),n={},r=Object.keys(t);function a(s){const l=function(...c){const u=c[0];return u==null?u:(u.length>1&&(c=u),s(c))};return"conversion"in s&&(l.conversion=s.conversion),l}function o(s){const l=function(...c){const u=c[0];if(u==null)return u;u.length>1&&(c=u);const d=s(c);if(typeof d=="object")for(let h=d.length,f=0;f<h;f++)d[f]=Math.round(d[f]);return d};return"conversion"in s&&(l.conversion=s.conversion),l}return r.forEach(s=>{n[s]={},Object.defineProperty(n[s],"channels",{value:t[s].channels}),Object.defineProperty(n[s],"labels",{value:t[s].labels});const l=e(s);Object.keys(l).forEach(u=>{const d=l[u];n[s][u]=o(d),n[s][u].raw=a(d)})}),H9e=n,H9e}var nfe={},a6t;function Vzn(){if(a6t)return nfe;a6t=1,Object.defineProperty(nfe,"__esModule",{value:!0});function t(e,n,r){return"rgb("+e+", "+n+", "+r+")"}return nfe.default=t,nfe}var rfe={},o6t;function O3o(){if(o6t)return rfe;o6t=1,Object.defineProperty(rfe,"__esModule",{value:!0});function t(e){return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}return rfe.default=t,rfe}var ife={},s6t;function L3o(){if(s6t)return ife;s6t=1,Object.defineProperty(ife,"__esModule",{value:!0});function t(e){return"#"+e.toLowerCase()}return ife.default=t,ife}var l6t;function B3o(){if(l6t)return tfe;l6t=1,Object.defineProperty(tfe,"__esModule",{value:!0});var t=SN,e=t.__importDefault(P3o()),n=t.__importDefault(Vzn()),r=t.__importDefault(O3o()),a=t.__importDefault(L3o());function o(s,l){var c={rgbString:function(){return n.default.apply(void 0,s)},hex:function(){var u;return a.default((u=e.default.rgb).hex.apply(u,s))},rgbArray:function(){return s},hslString:function(){var u;return r.default((u=e.default.rgb).hsl.apply(u,s))},hslArray:function(){var u;return(u=e.default.rgb).hsl.apply(u,s)},keyword:function(){var u;return(u=e.default.rgb).keyword.apply(u,s)}};return c[l]()}return tfe.default=o,tfe}var afe={},U9e={exports:{}},c6t;function Kzn(){return c6t||(c6t=1,function(t,e){(function(n,r){t.exports=r()})(en,function(){if(!n)var n={map:function(s,l){var c={};return l?s.map(function(u,d){return c.index=d,l.call(c,u)}):s.slice()},naturalOrder:function(s,l){return s<l?-1:s>l?1:0},sum:function(s,l){var c={};return s.reduce(l?function(u,d,h){return c.index=h,u+l.call(c,d)}:function(u,d){return u+d},0)},max:function(s,l){return Math.max.apply(null,l?n.map(s,l):s)}};var r=function(){var s=5,l=8-s,c=1e3;function u(m,g,v){return(m<<2*s)+(g<<s)+v}function d(m){var g=[],v=!1;function A(){g.sort(m),v=!0}return{push:function(y){g.push(y),v=!1},peek:function(y){return v||A(),y===void 0&&(y=g.length-1),g[y]},pop:function(){return v||A(),g.pop()},size:function(){return g.length},map:function(y){return g.map(y)},debug:function(){return v||A(),g}}}function h(m,g,v,A,y,S,x){this.r1=m,this.r2=g,this.g1=v,this.g2=A,this.b1=y,this.b2=S,this.histo=x}function f(){this.vboxes=new d(function(m,g){return n.naturalOrder(m.vbox.count()*m.vbox.volume(),g.vbox.count()*g.vbox.volume())})}function p(m,g){if(g.count()){var v=g.r2-g.r1+1,A=g.g2-g.g1+1,y=n.max([v,A,g.b2-g.b1+1]);if(g.count()==1)return[g.copy()];var S,x,w,_,C=0,R=[],k=[];if(y==v)for(S=g.r1;S<=g.r2;S++){for(_=0,x=g.g1;x<=g.g2;x++)for(w=g.b1;w<=g.b2;w++)_+=m[u(S,x,w)]||0;R[S]=C+=_}else if(y==A)for(S=g.g1;S<=g.g2;S++){for(_=0,x=g.r1;x<=g.r2;x++)for(w=g.b1;w<=g.b2;w++)_+=m[u(x,S,w)]||0;R[S]=C+=_}else for(S=g.b1;S<=g.b2;S++){for(_=0,x=g.r1;x<=g.r2;x++)for(w=g.g1;w<=g.g2;w++)_+=m[u(x,w,S)]||0;R[S]=C+=_}return R.forEach(function(P,N){k[N]=C-P}),function(P){var N,L,I,b,T,M=P+"1",D=P+"2",B=0;for(S=g[M];S<=g[D];S++)if(R[S]>C/2){for(I=g.copy(),b=g.copy(),T=(N=S-g[M])<=(L=g[D]-S)?Math.min(g[D]-1,~~(S+L/2)):Math.max(g[M],~~(S-1-N/2));!R[T];)T++;for(B=k[T];!B&&R[T-1];)B=k[--T];return I[D]=T,b[M]=I[D]+1,[I,b]}}(y==v?"r":y==A?"g":"b")}}return h.prototype={volume:function(m){return this._volume&&!m||(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1)),this._volume},count:function(m){var g=this.histo;if(!this._count_set||m){var v,A,y,S=0;for(v=this.r1;v<=this.r2;v++)for(A=this.g1;A<=this.g2;A++)for(y=this.b1;y<=this.b2;y++)S+=g[u(v,A,y)]||0;this._count=S,this._count_set=!0}return this._count},copy:function(){return new h(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo)},avg:function(m){var g=this.histo;if(!this._avg||m){var v,A,y,S,x=0,w=1<<8-s,_=0,C=0,R=0;for(A=this.r1;A<=this.r2;A++)for(y=this.g1;y<=this.g2;y++)for(S=this.b1;S<=this.b2;S++)x+=v=g[u(A,y,S)]||0,_+=v*(A+.5)*w,C+=v*(y+.5)*w,R+=v*(S+.5)*w;this._avg=x?[~~(_/x),~~(C/x),~~(R/x)]:[~~(w*(this.r1+this.r2+1)/2),~~(w*(this.g1+this.g2+1)/2),~~(w*(this.b1+this.b2+1)/2)]}return this._avg},contains:function(m){var g=m[0]>>l;return gval=m[1]>>l,bval=m[2]>>l,g>=this.r1&&g<=this.r2&&gval>=this.g1&&gval<=this.g2&&bval>=this.b1&&bval<=this.b2}},f.prototype={push:function(m){this.vboxes.push({vbox:m,color:m.avg()})},palette:function(){return this.vboxes.map(function(m){return m.color})},size:function(){return this.vboxes.size()},map:function(m){for(var g=this.vboxes,v=0;v<g.size();v++)if(g.peek(v).vbox.contains(m))return g.peek(v).color;return this.nearest(m)},nearest:function(m){for(var g,v,A,y=this.vboxes,S=0;S<y.size();S++)((v=Math.sqrt(Math.pow(m[0]-y.peek(S).color[0],2)+Math.pow(m[1]-y.peek(S).color[1],2)+Math.pow(m[2]-y.peek(S).color[2],2)))<g||g===void 0)&&(g=v,A=y.peek(S).color);return A},forcebw:function(){var m=this.vboxes;m.sort(function(y,S){return n.naturalOrder(n.sum(y.color),n.sum(S.color))});var g=m[0].color;g[0]<5&&g[1]<5&&g[2]<5&&(m[0].color=[0,0,0]);var v=m.length-1,A=m[v].color;A[0]>251&&A[1]>251&&A[2]>251&&(m[v].color=[255,255,255])}},{quantize:function(m,g){if(!m.length||g<2||g>256)return!1;var v=function(_){var C,R=new Array(1<<3*s);return _.forEach(function(k){C=u(k[0]>>l,k[1]>>l,k[2]>>l),R[C]=(R[C]||0)+1}),R}(m);v.forEach(function(){});var A=function(_,C){var R,k,P,N=1e6,L=0,I=1e6,b=0,T=1e6,M=0;return _.forEach(function(D){(R=D[0]>>l)<N?N=R:R>L&&(L=R),(k=D[1]>>l)<I?I=k:k>b&&(b=k),(P=D[2]>>l)<T?T=P:P>M&&(M=P)}),new h(N,L,I,b,T,M,C)}(m,v),y=new d(function(_,C){return n.naturalOrder(_.count(),C.count())});function S(_,C){for(var R,k=_.size(),P=0;P<c;){if(k>=C||P++>c)return;if((R=_.pop()).count()){var N=p(v,R),L=N[0],I=N[1];if(!L)return;_.push(L),I&&(_.push(I),k++)}else _.push(R),P++}}y.push(A),S(y,.75*g);for(var x=new d(function(_,C){return n.naturalOrder(_.count()*_.volume(),C.count()*C.volume())});y.size();)x.push(y.pop());S(x,g);for(var w=new f;x.size();)w.push(x.pop());return w}}}().quantize,a=function(s){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=s.naturalWidth,this.height=this.canvas.height=s.naturalHeight,this.context.drawImage(s,0,0,this.width,this.height)};a.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var o=function(){};return o.prototype.getColor=function(s,l){return l===void 0&&(l=10),this.getPalette(s,5,l)[0]},o.prototype.getPalette=function(s,l,c){var u=function(p){var m=p.colorCount,g=p.quality;if(m!==void 0&&Number.isInteger(m)){if(m===1)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");m=Math.max(m,2),m=Math.min(m,20)}else m=10;return(g===void 0||!Number.isInteger(g)||g<1)&&(g=10),{colorCount:m,quality:g}}({colorCount:l,quality:c}),d=new a(s),h=function(p,m,g){for(var v=p,A=[],y=0,S=void 0,x=void 0,w=void 0,_=void 0,C=void 0;y<m;y+=g)x=v[0+(S=4*y)],w=v[S+1],_=v[S+2],((C=v[S+3])===void 0||C>=125)&&(x>250&&w>250&&_>250||A.push([x,w,_]));return A}(d.getImageData().data,d.width*d.height,u.quality),f=r(h,u.colorCount);return f?f.palette():null},o.prototype.getColorFromUrl=function(s,l,c){var u=this,d=document.createElement("img");d.addEventListener("load",function(){var h=u.getPalette(d,5,c);l(h[0],s)}),d.src=s},o.prototype.getImageData=function(s,l){var c=new XMLHttpRequest;c.open("GET",s,!0),c.responseType="arraybuffer",c.onload=function(){if(this.status==200){var u=new Uint8Array(this.response);i=u.length;for(var d=new Array(i),h=0;h<u.length;h++)d[h]=String.fromCharCode(u[h]);var f=d.join(""),p=window.btoa(f);l("data:image/png;base64,"+p)}},c.send()},o.prototype.getColorAsync=function(s,l,c){var u=this;this.getImageData(s,function(d){var h=document.createElement("img");h.addEventListener("load",function(){var f=u.getPalette(h,5,c);l(f[0],this)}),h.src=d})},o})}(U9e)),U9e.exports}var u6t;function Wzn(){if(u6t)return afe;u6t=1,Object.defineProperty(afe,"__esModule",{value:!0});var t=SN,e=t.__importDefault(Kzn()),n=iCe();function r(a,o,s,l,c){return o===void 0&&(o=2),l===void 0&&(l=null),c===void 0&&(c=10),t.__awaiter(this,void 0,void 0,function(){var u,d,h;return t.__generator(this,function(f){switch(f.label){case 0:return[4,n.loadImage(a,l)];case 1:return u=f.sent(),d=new e.default,h=d.getPalette(u,o,c),[2,h.map(function(p){return n.formatRGB(p,s)})]}})})}return afe.default=r,afe}var ofe={},d6t;function Qzn(){if(d6t)return ofe;d6t=1,Object.defineProperty(ofe,"__esModule",{value:!0});var t=SN,e=t.__importDefault(Kzn()),n=iCe();function r(a,o,s,l){return s===void 0&&(s=null),l===void 0&&(l=10),t.__awaiter(this,void 0,void 0,function(){var c,u,d;return t.__generator(this,function(h){switch(h.label){case 0:return[4,n.loadImage(a,s)];case 1:return c=h.sent(),u=new e.default,d=u.getColor(c,l),[2,n.formatRGB(d,o)]}})})}return ofe.default=r,ofe}var sfe={},h6t;function D3o(){if(h6t)return sfe;h6t=1,Object.defineProperty(sfe,"__esModule",{value:!0});function t(e,n){return n===void 0&&(n=null),new Promise(function(r,a){var o=new Image;o.addEventListener("load",function(){r(o)}),o.addEventListener("error",function(){a(new Error("Color Thief React | Failed to load image URL: "+e))}),o.crossOrigin=n,o.src=e})}return sfe.default=t,sfe}var f6t;function iCe(){return f6t||(f6t=1,function(t){var e=en&&en.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadImage=t.getPredominantColorFromImgURL=t.rgbStringfy=t.getColorsPaletteFromImgUrl=t.formatRGB=t.reducer=t.initialReducerState=void 0;var n=zzn();Object.defineProperty(t,"initialReducerState",{enumerable:!0,get:function(){return e(n).default}});var r=M3o();Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return e(r).default}});var a=B3o();Object.defineProperty(t,"formatRGB",{enumerable:!0,get:function(){return e(a).default}});var o=Wzn();Object.defineProperty(t,"getColorsPaletteFromImgUrl",{enumerable:!0,get:function(){return e(o).default}});var s=Vzn();Object.defineProperty(t,"rgbStringfy",{enumerable:!0,get:function(){return e(s).default}});var l=Qzn();Object.defineProperty(t,"getPredominantColorFromImgURL",{enumerable:!0,get:function(){return e(l).default}});var c=D3o();Object.defineProperty(t,"loadImage",{enumerable:!0,get:function(){return e(c).default}})}(D9e)),D9e}var p6t;function qzn(){if(p6t)return Yhe;p6t=1,Object.defineProperty(Yhe,"__esModule",{value:!0});var t=SN,e=t.__importStar(Y),n=Uzn(),r=iCe();function a(o,s,l){l===void 0&&(l={});var c=l.crossOrigin,u=c===void 0?null:c,d=l.quality,h=d===void 0?10:d,f=e.useReducer(r.reducer,r.initialReducerState),p=f[0],m=f[1];return n.useCurrentEffect(function(g){m({type:"start",payload:null}),r.getPredominantColorFromImgURL(o,s,u,h).then(function(v){g()&&m({type:"resolve",payload:v})}).catch(function(v){g()&&m({type:"reject",payload:v})})},[o]),p}return Yhe.default=a,Yhe}var m6t;function $3o(){if(m6t)return qhe;m6t=1,Object.defineProperty(qhe,"__esModule",{value:!0});var t=SN,e=t.__importStar(Y),n=t.__importDefault(qzn());function r(a){var o=a.src,s=a.format,l=a.crossOrigin,c=l===void 0?void 0:l,u=a.quality,d=u===void 0?10:u,h=a.children,f=n.default(o,s,{crossOrigin:c,quality:d});return e.createElement(e.Fragment,null,h(f))}return qhe.default=r,qhe}var lfe={},cfe={},g6t;function Yzn(){if(g6t)return cfe;g6t=1,Object.defineProperty(cfe,"__esModule",{value:!0});var t=SN,e=t.__importStar(Y),n=Uzn(),r=iCe();function a(o,s,l,c){s===void 0&&(s=2),c===void 0&&(c={});var u=c.crossOrigin,d=u===void 0?null:u,h=c.quality,f=h===void 0?10:h,p=e.useReducer(r.reducer,r.initialReducerState),m=p[0],g=p[1];return n.useCurrentEffect(function(v){g({type:"start",payload:null}),r.getColorsPaletteFromImgUrl(o,s,l,d,f).then(function(A){v()&&g({type:"resolve",payload:A})}).catch(function(A){v()&&g({type:"reject",payload:A})})},[o]),m}return cfe.default=a,cfe}var v6t;function F3o(){if(v6t)return lfe;v6t=1,Object.defineProperty(lfe,"__esModule",{value:!0});var t=SN,e=t.__importStar(Y),n=t.__importDefault(Yzn());function r(a){var o=a.src,s=a.colorCount,l=s===void 0?2:s,c=a.format,u=a.crossOrigin,d=u===void 0?void 0:u,h=a.quality,f=h===void 0?10:h,p=a.children,m=n.default(o,l,c,{crossOrigin:d,quality:f});return e.createElement(e.Fragment,null,p(m))}return lfe.default=r,lfe}Object.defineProperty(VA,"__esModule",{value:!0});VA.getPalette=Zzn=VA.usePalette=VA.Palette=VA.getColor=VA.Color=VA.useColor=void 0;var tK=SN,Jzn=tK.__importDefault($3o());VA.Color=Jzn.default;var j3o=tK.__importDefault(qzn());VA.useColor=j3o.default;var H3o=tK.__importDefault(Wzn());VA.getPalette=H3o.default;var U3o=tK.__importDefault(F3o());VA.Palette=U3o.default;var z3o=tK.__importDefault(Yzn()),Zzn=VA.usePalette=z3o.default,G3o=tK.__importDefault(Qzn());VA.getColor=G3o.default;VA.default=Jzn.default;function Xzn(t){return e=>typeof e===t}var V3o=Xzn("function"),K3o=t=>t===null,A6t=t=>Object.prototype.toString.call(t).slice(8,-1)==="RegExp",y6t=t=>!W3o(t)&&!K3o(t)&&(V3o(t)||typeof t=="object"),W3o=Xzn("undefined");function Q3o(t,e){const{length:n}=t;if(n!==e.length)return!1;for(let r=n;r--!==0;)if(!B0(t[r],e[r]))return!1;return!0}function q3o(t,e){if(t.byteLength!==e.byteLength)return!1;const n=new DataView(t.buffer),r=new DataView(e.buffer);let a=t.byteLength;for(;a--;)if(n.getUint8(a)!==r.getUint8(a))return!1;return!0}function Y3o(t,e){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;for(const n of t.entries())if(!B0(n[1],e.get(n[0])))return!1;return!0}function J3o(t,e){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;return!0}function B0(t,e){if(t===e)return!0;if(t&&y6t(t)&&e&&y6t(e)){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)&&Array.isArray(e))return Q3o(t,e);if(t instanceof Map&&e instanceof Map)return Y3o(t,e);if(t instanceof Set&&e instanceof Set)return J3o(t,e);if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return q3o(t,e);if(A6t(t)&&A6t(e))return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let a=n.length;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[a]))return!1;for(let a=n.length;a--!==0;){const o=n[a];if(!(o==="_owner"&&t.$$typeof)&&!B0(t[o],e[o]))return!1}return!0}return Number.isNaN(t)&&Number.isNaN(e)?!0:t===e}var Z3o=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],X3o=["bigint","boolean","null","number","string","symbol","undefined"];function aCe(t){const e=Object.prototype.toString.call(t).slice(8,-1);if(/HTML\w+Element/.test(e))return"HTMLElement";if(e5o(e))return e}function t_(t){return e=>aCe(e)===t}function e5o(t){return Z3o.includes(t)}function nK(t){return e=>typeof e===t}function t5o(t){return X3o.includes(t)}var n5o=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Ii(t){if(t===null)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Ii.array(t))return"Array";if(Ii.plainFunction(t))return"Function";const e=aCe(t);return e||"Object"}Ii.array=Array.isArray;Ii.arrayOf=(t,e)=>!Ii.array(t)&&!Ii.function(e)?!1:t.every(n=>e(n));Ii.asyncGeneratorFunction=t=>aCe(t)==="AsyncGeneratorFunction";Ii.asyncFunction=t_("AsyncFunction");Ii.bigint=nK("bigint");Ii.boolean=t=>t===!0||t===!1;Ii.date=t_("Date");Ii.defined=t=>!Ii.undefined(t);Ii.domElement=t=>Ii.object(t)&&!Ii.plainObject(t)&&t.nodeType===1&&Ii.string(t.nodeName)&&n5o.every(e=>e in t);Ii.empty=t=>Ii.string(t)&&t.length===0||Ii.array(t)&&t.length===0||Ii.object(t)&&!Ii.map(t)&&!Ii.set(t)&&Object.keys(t).length===0||Ii.set(t)&&t.size===0||Ii.map(t)&&t.size===0;Ii.error=t_("Error");Ii.function=nK("function");Ii.generator=t=>Ii.iterable(t)&&Ii.function(t.next)&&Ii.function(t.throw);Ii.generatorFunction=t_("GeneratorFunction");Ii.instanceOf=(t,e)=>!t||!e?!1:Object.getPrototypeOf(t)===e.prototype;Ii.iterable=t=>!Ii.nullOrUndefined(t)&&Ii.function(t[Symbol.iterator]);Ii.map=t_("Map");Ii.nan=t=>Number.isNaN(t);Ii.null=t=>t===null;Ii.nullOrUndefined=t=>Ii.null(t)||Ii.undefined(t);Ii.number=t=>nK("number")(t)&&!Ii.nan(t);Ii.numericString=t=>Ii.string(t)&&t.length>0&&!Number.isNaN(Number(t));Ii.object=t=>!Ii.nullOrUndefined(t)&&(Ii.function(t)||typeof t=="object");Ii.oneOf=(t,e)=>Ii.array(t)?t.indexOf(e)>-1:!1;Ii.plainFunction=t_("Function");Ii.plainObject=t=>{if(aCe(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};Ii.primitive=t=>Ii.null(t)||t5o(typeof t);Ii.promise=t_("Promise");Ii.propertyOf=(t,e,n)=>{if(!Ii.object(t)||!e)return!1;const r=t[e];return Ii.function(n)?n(r):Ii.defined(r)};Ii.regexp=t_("RegExp");Ii.set=t_("Set");Ii.string=nK("string");Ii.symbol=nK("symbol");Ii.undefined=nK("undefined");Ii.weakMap=t_("WeakMap");Ii.weakSet=t_("WeakSet");var yp=Ii,r5o=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],i5o=["bigint","boolean","null","number","string","symbol","undefined"];function oCe(t){const e=Object.prototype.toString.call(t).slice(8,-1);if(/HTML\w+Element/.test(e))return"HTMLElement";if(a5o(e))return e}function n_(t){return e=>oCe(e)===t}function a5o(t){return r5o.includes(t)}function rK(t){return e=>typeof e===t}function o5o(t){return i5o.includes(t)}var s5o=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Pi(t){if(t===null)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Pi.array(t))return"Array";if(Pi.plainFunction(t))return"Function";const e=oCe(t);return e||"Object"}Pi.array=Array.isArray;Pi.arrayOf=(t,e)=>!Pi.array(t)&&!Pi.function(e)?!1:t.every(n=>e(n));Pi.asyncGeneratorFunction=t=>oCe(t)==="AsyncGeneratorFunction";Pi.asyncFunction=n_("AsyncFunction");Pi.bigint=rK("bigint");Pi.boolean=t=>t===!0||t===!1;Pi.date=n_("Date");Pi.defined=t=>!Pi.undefined(t);Pi.domElement=t=>Pi.object(t)&&!Pi.plainObject(t)&&t.nodeType===1&&Pi.string(t.nodeName)&&s5o.every(e=>e in t);Pi.empty=t=>Pi.string(t)&&t.length===0||Pi.array(t)&&t.length===0||Pi.object(t)&&!Pi.map(t)&&!Pi.set(t)&&Object.keys(t).length===0||Pi.set(t)&&t.size===0||Pi.map(t)&&t.size===0;Pi.error=n_("Error");Pi.function=rK("function");Pi.generator=t=>Pi.iterable(t)&&Pi.function(t.next)&&Pi.function(t.throw);Pi.generatorFunction=n_("GeneratorFunction");Pi.instanceOf=(t,e)=>!t||!e?!1:Object.getPrototypeOf(t)===e.prototype;Pi.iterable=t=>!Pi.nullOrUndefined(t)&&Pi.function(t[Symbol.iterator]);Pi.map=n_("Map");Pi.nan=t=>Number.isNaN(t);Pi.null=t=>t===null;Pi.nullOrUndefined=t=>Pi.null(t)||Pi.undefined(t);Pi.number=t=>rK("number")(t)&&!Pi.nan(t);Pi.numericString=t=>Pi.string(t)&&t.length>0&&!Number.isNaN(Number(t));Pi.object=t=>!Pi.nullOrUndefined(t)&&(Pi.function(t)||typeof t=="object");Pi.oneOf=(t,e)=>Pi.array(t)?t.indexOf(e)>-1:!1;Pi.plainFunction=n_("Function");Pi.plainObject=t=>{if(oCe(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};Pi.primitive=t=>Pi.null(t)||o5o(typeof t);Pi.promise=n_("Promise");Pi.propertyOf=(t,e,n)=>{if(!Pi.object(t)||!e)return!1;const r=t[e];return Pi.function(n)?n(r):Pi.defined(r)};Pi.regexp=n_("RegExp");Pi.set=n_("Set");Pi.string=rK("string");Pi.symbol=rK("symbol");Pi.undefined=rK("undefined");Pi.weakMap=n_("WeakMap");Pi.weakSet=n_("WeakSet");var vo=Pi;function l5o(...t){return t.every(e=>vo.string(e)||vo.array(e)||vo.plainObject(e))}function c5o(t,e,n){return eGn(t,e)?[t,e].every(vo.array)?!t.some(w6t(n))&&e.some(w6t(n)):[t,e].every(vo.plainObject)?!Object.entries(t).some(S6t(n))&&Object.entries(e).some(S6t(n)):e===n:!1}function b6t(t,e,n){const{actual:r,key:a,previous:o,type:s}=n,l=c2(t,a),c=c2(e,a);let u=[l,c].every(vo.number)&&(s==="increased"?l<c:l>c);return vo.undefined(r)||(u=u&&c===r),vo.undefined(o)||(u=u&&l===o),u}function x6t(t,e,n){const{key:r,type:a,value:o}=n,s=c2(t,r),l=c2(e,r),c=a==="added"?s:l,u=a==="added"?l:s;if(!vo.nullOrUndefined(o)){if(vo.defined(c)){if(vo.array(c)||vo.plainObject(c))return c5o(c,u,o)}else return B0(u,o);return!1}return[s,l].every(vo.array)?!u.every(pct(c)):[s,l].every(vo.plainObject)?u5o(Object.keys(c),Object.keys(u)):![s,l].every(d=>vo.primitive(d)&&vo.defined(d))&&(a==="added"?!vo.defined(s)&&vo.defined(l):vo.defined(s)&&!vo.defined(l))}function E6t(t,e,{key:n}={}){let r=c2(t,n),a=c2(e,n);if(!eGn(r,a))throw new TypeError("Inputs have different types");if(!l5o(r,a))throw new TypeError("Inputs don't have length");return[r,a].every(vo.plainObject)&&(r=Object.keys(r),a=Object.keys(a)),[r,a]}function S6t(t){return([e,n])=>vo.array(t)?B0(t,n)||t.some(r=>B0(r,n)||vo.array(n)&&pct(n)(r)):vo.plainObject(t)&&t[e]?!!t[e]&&B0(t[e],n):B0(t,n)}function u5o(t,e){return e.some(n=>!t.includes(n))}function w6t(t){return e=>vo.array(t)?t.some(n=>B0(n,e)||vo.array(e)&&pct(e)(n)):B0(t,e)}function hY(t,e){return vo.array(t)?t.some(n=>B0(n,e)):B0(t,e)}function pct(t){return e=>t.some(n=>B0(n,e))}function eGn(...t){return t.every(vo.array)||t.every(vo.number)||t.every(vo.plainObject)||t.every(vo.string)}function c2(t,e){return vo.plainObject(t)||vo.array(t)?vo.string(e)?e.split(".").reduce((r,a)=>r&&r[a],t):vo.number(e)?t[e]:t:t}function Oye(t,e){if([t,e].some(vo.nullOrUndefined))throw new Error("Missing required parameters");if(![t,e].every(d=>vo.plainObject(d)||vo.array(d)))throw new Error("Expected plain objects or array");return{added:(d,h)=>{try{return x6t(t,e,{key:d,type:"added",value:h})}catch{return!1}},changed:(d,h,f)=>{try{const p=c2(t,d),m=c2(e,d),g=vo.defined(h),v=vo.defined(f);if(g||v){const A=v?hY(f,p):!hY(h,p),y=hY(h,m);return A&&y}return[p,m].every(vo.array)||[p,m].every(vo.plainObject)?!B0(p,m):p!==m}catch{return!1}},changedFrom:(d,h,f)=>{if(!vo.defined(d))return!1;try{const p=c2(t,d),m=c2(e,d),g=vo.defined(f);return hY(h,p)&&(g?hY(f,m):!g)}catch{return!1}},decreased:(d,h,f)=>{if(!vo.defined(d))return!1;try{return b6t(t,e,{key:d,actual:h,previous:f,type:"decreased"})}catch{return!1}},emptied:d=>{try{const[h,f]=E6t(t,e,{key:d});return!!h.length&&!f.length}catch{return!1}},filled:d=>{try{const[h,f]=E6t(t,e,{key:d});return!h.length&&!!f.length}catch{return!1}},increased:(d,h,f)=>{if(!vo.defined(d))return!1;try{return b6t(t,e,{key:d,actual:h,previous:f,type:"increased"})}catch{return!1}},removed:(d,h)=>{try{return x6t(t,e,{key:d,type:"removed",value:h})}catch{return!1}}}}var d5o=new Error("Element already at target scroll position"),h5o=new Error("Scroll cancelled"),f5o=Math.min,_6t=Date.now,p5o={left:T6t("scrollLeft"),top:T6t("scrollTop")};function T6t(t){return function(n,r,a,o){a=a||{},typeof a=="function"&&(o=a,a={}),typeof o!="function"&&(o=g5o);var s=_6t(),l=n[t],c=a.ease||m5o,u=isNaN(a.duration)?350:+a.duration,d=!1;return l===r?o(d5o,n[t]):requestAnimationFrame(f),h;function h(){d=!0}function f(p){if(d)return o(h5o,n[t]);var m=_6t(),g=f5o(1,(m-s)/u),v=c(g);n[t]=v*(r-l)+l,g<1?requestAnimationFrame(f):requestAnimationFrame(function(){o(null,n[t])})}}}function m5o(t){return .5*(1-Math.cos(Math.PI*t))}function g5o(){}const v5o=Li(p5o);var tGn={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.Scrollparent=n()})(en,function(){function e(r){var a=getComputedStyle(r,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var a=r.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return n})})(tGn);var A5o=tGn.exports;const nGn=Li(A5o);var y5o=function(e){return b5o(e)&&!x5o(e)};function b5o(t){return!!t&&typeof t=="object"}function x5o(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||w5o(t)}var E5o=typeof Symbol=="function"&&Symbol.for,S5o=E5o?Symbol.for("react.element"):60103;function w5o(t){return t.$$typeof===S5o}function _5o(t){return Array.isArray(t)?[]:{}}function Lre(t,e){return e.clone!==!1&&e.isMergeableObject(t)?gz(_5o(t),t,e):t}function T5o(t,e,n){return t.concat(e).map(function(r){return Lre(r,n)})}function C5o(t,e){if(!e.customMerge)return gz;var n=e.customMerge(t);return typeof n=="function"?n:gz}function k5o(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function C6t(t){return Object.keys(t).concat(k5o(t))}function rGn(t,e){try{return e in t}catch{return!1}}function R5o(t,e){return rGn(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function M5o(t,e,n){var r={};return n.isMergeableObject(t)&&C6t(t).forEach(function(a){r[a]=Lre(t[a],n)}),C6t(e).forEach(function(a){R5o(t,a)||(rGn(t,a)&&n.isMergeableObject(e[a])?r[a]=C5o(a,n)(t[a],e[a],n):r[a]=Lre(e[a],n))}),r}function gz(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||T5o,n.isMergeableObject=n.isMergeableObject||y5o,n.cloneUnlessOtherwiseSpecified=Lre;var r=Array.isArray(e),a=Array.isArray(t),o=r===a;return o?r?n.arrayMerge(t,e,n):M5o(t,e,n):Lre(e,n)}gz.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,a){return gz(r,a,n)},{})};var N5o=gz,I5o=N5o;const cw=Li(I5o);/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */var Pse=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",P5o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Pse&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function O5o(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function L5o(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},P5o))}}var B5o=Pse&&window.Promise,D5o=B5o?O5o:L5o;function iGn(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function B9(t,e){if(t.nodeType!==1)return[];var n=t.ownerDocument.defaultView,r=n.getComputedStyle(t,null);return e?r[e]:r}function mct(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Ose(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=B9(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?t:Ose(mct(t))}function aGn(t){return t&&t.referenceNode?t.referenceNode:t}var k6t=Pse&&!!(window.MSInputMethodContext&&document.documentMode),R6t=Pse&&/MSIE 10/.test(navigator.userAgent);function iK(t){return t===11?k6t:t===10?R6t:k6t||R6t}function vz(t){if(!t)return document.documentElement;for(var e=iK(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&B9(n,"position")==="static"?vz(n):n}function $5o(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||vz(t.firstElementChild)===t}function kQe(t){return t.parentNode!==null?kQe(t.parentNode):t}function Lye(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,a=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(a,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||r.contains(a))return $5o(s)?s:vz(s);var l=kQe(t);return l.host?Lye(l.host,e):Lye(t,kQe(e).host)}function Az(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=e==="top"?"scrollTop":"scrollLeft",r=t.nodeName;if(r==="BODY"||r==="HTML"){var a=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||a;return o[n]}return t[n]}function F5o(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Az(e,"top"),a=Az(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=a*o,t.right+=a*o,t}function M6t(t,e){var n=e==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function N6t(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],iK(10)?parseInt(n["offset"+t])+parseInt(r["margin"+(t==="Height"?"Top":"Left")])+parseInt(r["margin"+(t==="Height"?"Bottom":"Right")]):0)}function oGn(t){var e=t.body,n=t.documentElement,r=iK(10)&&getComputedStyle(n);return{height:N6t("Height",e,n,r),width:N6t("Width",e,n,r)}}var j5o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},H5o=function(){function t(e,n){for(var r=0;r<n.length;r++){var a=n[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),yz=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Tx=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function LP(t){return Tx({},t,{right:t.left+t.width,bottom:t.top+t.height})}function RQe(t){var e={};try{if(iK(10)){e=t.getBoundingClientRect();var n=Az(t,"top"),r=Az(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch{}var a={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o=t.nodeName==="HTML"?oGn(t.ownerDocument):{},s=o.width||t.clientWidth||a.width,l=o.height||t.clientHeight||a.height,c=t.offsetWidth-s,u=t.offsetHeight-l;if(c||u){var d=B9(t);c-=M6t(d,"x"),u-=M6t(d,"y"),a.width-=c,a.height-=u}return LP(a)}function gct(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=iK(10),a=e.nodeName==="HTML",o=RQe(t),s=RQe(e),l=Ose(t),c=B9(e),u=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&a&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=LP({top:o.top-s.top-u,left:o.left-s.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&a){var f=parseFloat(c.marginTop),p=parseFloat(c.marginLeft);h.top-=u-f,h.bottom-=u-f,h.left-=d-p,h.right-=d-p,h.marginTop=f,h.marginLeft=p}return(r&&!n?e.contains(l):e===l&&l.nodeName!=="BODY")&&(h=F5o(h,e)),h}function U5o(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.ownerDocument.documentElement,r=gct(t,n),a=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:Az(n),l=e?0:Az(n,"left"),c={top:s-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:a,height:o};return LP(c)}function sGn(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(B9(t,"position")==="fixed")return!0;var n=mct(t);return n?sGn(n):!1}function lGn(t){if(!t||!t.parentElement||iK())return document.documentElement;for(var e=t.parentElement;e&&B9(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function vct(t,e,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},s=a?lGn(t):Lye(t,aGn(e));if(r==="viewport")o=U5o(s,a);else{var l=void 0;r==="scrollParent"?(l=Ose(mct(e)),l.nodeName==="BODY"&&(l=t.ownerDocument.documentElement)):r==="window"?l=t.ownerDocument.documentElement:l=r;var c=gct(l,s,a);if(l.nodeName==="HTML"&&!sGn(s)){var u=oGn(t.ownerDocument),d=u.height,h=u.width;o.top+=c.top-c.marginTop,o.bottom=d+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var f=typeof n=="number";return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function z5o(t){var e=t.width,n=t.height;return e*n}function cGn(t,e,n,r,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var s=vct(n,r,o,a),l={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},c=Object.keys(l).map(function(f){return Tx({key:f},l[f],{area:z5o(l[f])})}).sort(function(f,p){return p.area-f.area}),u=c.filter(function(f){var p=f.width,m=f.height;return p>=n.clientWidth&&m>=n.clientHeight}),d=u.length>0?u[0].key:c[0].key,h=t.split("-")[1];return d+(h?"-"+h:"")}function uGn(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=r?lGn(e):Lye(e,aGn(n));return gct(n,a,r)}function dGn(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),a=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:t.offsetWidth+a,height:t.offsetHeight+r};return o}function Bye(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(n){return e[n]})}function hGn(t,e,n){n=n.split("-")[0];var r=dGn(t),a={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,s=o?"top":"left",l=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return a[s]=e[s]+e[c]/2-r[c]/2,n===l?a[l]=e[l]-r[u]:a[l]=e[Bye(l)],a}function Lse(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function G5o(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(a){return a[e]===n});var r=Lse(t,function(a){return a[e]===n});return t.indexOf(r)}function fGn(t,e,n){var r=n===void 0?t:t.slice(0,G5o(t,"name",n));return r.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=a.function||a.fn;a.enabled&&iGn(o)&&(e.offsets.popper=LP(e.offsets.popper),e.offsets.reference=LP(e.offsets.reference),e=o(e,a))}),e}function V5o(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=uGn(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=cGn(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=hGn(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=fGn(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function pGn(t,e){return t.some(function(n){var r=n.name,a=n.enabled;return a&&r===e})}function Act(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var a=e[r],o=a?""+a+n:t;if(typeof document.body.style[o]<"u")return o}return null}function K5o(){return this.state.isDestroyed=!0,pGn(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Act("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function mGn(t){var e=t.ownerDocument;return e?e.defaultView:window}function gGn(t,e,n,r){var a=t.nodeName==="BODY",o=a?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),a||gGn(Ose(o.parentNode),e,n,r),r.push(o)}function W5o(t,e,n,r){n.updateBound=r,mGn(t).addEventListener("resize",n.updateBound,{passive:!0});var a=Ose(t);return gGn(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function Q5o(){this.state.eventsEnabled||(this.state=W5o(this.reference,this.options,this.state,this.scheduleUpdate))}function q5o(t,e){return mGn(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(n){n.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function Y5o(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=q5o(this.reference,this.state))}function yct(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function MQe(t,e){Object.keys(e).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&yct(e[n])&&(r="px"),t.style[n]=e[n]+r})}function J5o(t,e){Object.keys(e).forEach(function(n){var r=e[n];r!==!1?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function Z5o(t){return MQe(t.instance.popper,t.styles),J5o(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&MQe(t.arrowElement,t.arrowStyles),t}function X5o(t,e,n,r,a){var o=uGn(a,e,t,n.positionFixed),s=cGn(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),MQe(e,{position:n.positionFixed?"fixed":"absolute"}),n}function ePo(t,e){var n=t.offsets,r=n.popper,a=n.reference,o=Math.round,s=Math.floor,l=function(A){return A},c=o(a.width),u=o(r.width),d=["left","right"].indexOf(t.placement)!==-1,h=t.placement.indexOf("-")!==-1,f=c%2===u%2,p=c%2===1&&u%2===1,m=e?d||h||f?o:s:l,g=e?o:l;return{left:m(p&&!h&&e?r.left-1:r.left),top:g(r.top),bottom:g(r.bottom),right:m(r.right)}}var tPo=Pse&&/Firefox/i.test(navigator.userAgent);function nPo(t,e){var n=e.x,r=e.y,a=t.offsets.popper,o=Lse(t.instance.modifiers,function(S){return S.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=o!==void 0?o:e.gpuAcceleration,l=vz(t.instance.popper),c=RQe(l),u={position:a.position},d=ePo(t,window.devicePixelRatio<2||!tPo),h=n==="bottom"?"top":"bottom",f=r==="right"?"left":"right",p=Act("transform"),m=void 0,g=void 0;if(h==="bottom"?l.nodeName==="HTML"?g=-l.clientHeight+d.bottom:g=-c.height+d.bottom:g=d.top,f==="right"?l.nodeName==="HTML"?m=-l.clientWidth+d.right:m=-c.width+d.right:m=d.left,s&&p)u[p]="translate3d("+m+"px, "+g+"px, 0)",u[h]=0,u[f]=0,u.willChange="transform";else{var v=h==="bottom"?-1:1,A=f==="right"?-1:1;u[h]=g*v,u[f]=m*A,u.willChange=h+", "+f}var y={"x-placement":t.placement};return t.attributes=Tx({},y,t.attributes),t.styles=Tx({},u,t.styles),t.arrowStyles=Tx({},t.offsets.arrow,t.arrowStyles),t}function vGn(t,e,n){var r=Lse(t,function(l){var c=l.name;return c===e}),a=!!r&&t.some(function(l){return l.name===n&&l.enabled&&l.order<r.order});if(!a){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return a}function rPo(t,e){var n;if(!vGn(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if(typeof r=="string"){if(r=t.instance.popper.querySelector(r),!r)return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var a=t.placement.split("-")[0],o=t.offsets,s=o.popper,l=o.reference,c=["left","right"].indexOf(a)!==-1,u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",m=dGn(r)[u];l[p]-m<s[h]&&(t.offsets.popper[h]-=s[h]-(l[p]-m)),l[h]+m>s[p]&&(t.offsets.popper[h]+=l[h]+m-s[p]),t.offsets.popper=LP(t.offsets.popper);var g=l[h]+l[u]/2-m/2,v=B9(t.instance.popper),A=parseFloat(v["margin"+d]),y=parseFloat(v["border"+d+"Width"]),S=g-t.offsets.popper[h]-A-y;return S=Math.max(Math.min(s[u]-m,S),0),t.arrowElement=r,t.offsets.arrow=(n={},yz(n,h,Math.round(S)),yz(n,f,""),n),t}function iPo(t){return t==="end"?"start":t==="start"?"end":t}var AGn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],z9e=AGn.slice(3);function I6t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=z9e.indexOf(t),r=z9e.slice(n+1).concat(z9e.slice(0,n));return e?r.reverse():r}var G9e={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function aPo(t,e){if(pGn(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var n=vct(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],a=Bye(r),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case G9e.FLIP:s=[r,a];break;case G9e.CLOCKWISE:s=I6t(r);break;case G9e.COUNTERCLOCKWISE:s=I6t(r,!0);break;default:s=e.behavior}return s.forEach(function(l,c){if(r!==l||s.length===c+1)return t;r=t.placement.split("-")[0],a=Bye(r);var u=t.offsets.popper,d=t.offsets.reference,h=Math.floor,f=r==="left"&&h(u.right)>h(d.left)||r==="right"&&h(u.left)<h(d.right)||r==="top"&&h(u.bottom)>h(d.top)||r==="bottom"&&h(u.top)<h(d.bottom),p=h(u.left)<h(n.left),m=h(u.right)>h(n.right),g=h(u.top)<h(n.top),v=h(u.bottom)>h(n.bottom),A=r==="left"&&p||r==="right"&&m||r==="top"&&g||r==="bottom"&&v,y=["top","bottom"].indexOf(r)!==-1,S=!!e.flipVariations&&(y&&o==="start"&&p||y&&o==="end"&&m||!y&&o==="start"&&g||!y&&o==="end"&&v),x=!!e.flipVariationsByContent&&(y&&o==="start"&&m||y&&o==="end"&&p||!y&&o==="start"&&v||!y&&o==="end"&&g),w=S||x;(f||A||w)&&(t.flipped=!0,(f||A)&&(r=s[c+1]),w&&(o=iPo(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=Tx({},t.offsets.popper,hGn(t.instance.popper,t.offsets.reference,t.placement)),t=fGn(t.instance.modifiers,t,"flip"))}),t}function oPo(t){var e=t.offsets,n=e.popper,r=e.reference,a=t.placement.split("-")[0],o=Math.floor,s=["top","bottom"].indexOf(a)!==-1,l=s?"right":"bottom",c=s?"left":"top",u=s?"width":"height";return n[l]<o(r[c])&&(t.offsets.popper[c]=o(r[c])-n[u]),n[c]>o(r[l])&&(t.offsets.popper[c]=o(r[l])),t}function sPo(t,e,n,r){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+a[1],s=a[2];if(!o)return t;if(s.indexOf("%")===0){var l=void 0;switch(s){case"%p":l=n;break;case"%":case"%r":default:l=r}var c=LP(l);return c[e]/100*o}else if(s==="vh"||s==="vw"){var u=void 0;return s==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*o}else return o}function lPo(t,e,n,r){var a=[0,0],o=["right","left"].indexOf(r)!==-1,s=t.split(/(\+|\-)/).map(function(d){return d.trim()}),l=s.indexOf(Lse(s,function(d){return d.search(/,|\s/)!==-1}));s[l]&&s[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=l!==-1?[s.slice(0,l).concat([s[l].split(c)[0]]),[s[l].split(c)[1]].concat(s.slice(l+1))]:[s];return u=u.map(function(d,h){var f=(h===1?!o:o)?"height":"width",p=!1;return d.reduce(function(m,g){return m[m.length-1]===""&&["+","-"].indexOf(g)!==-1?(m[m.length-1]=g,p=!0,m):p?(m[m.length-1]+=g,p=!1,m):m.concat(g)},[]).map(function(m){return sPo(m,f,e,n)})}),u.forEach(function(d,h){d.forEach(function(f,p){yct(f)&&(a[h]+=f*(d[p-1]==="-"?-1:1))})}),a}function cPo(t,e){var n=e.offset,r=t.placement,a=t.offsets,o=a.popper,s=a.reference,l=r.split("-")[0],c=void 0;return yct(+n)?c=[+n,0]:c=lPo(n,o,s,l),l==="left"?(o.top+=c[0],o.left-=c[1]):l==="right"?(o.top+=c[0],o.left+=c[1]):l==="top"?(o.left+=c[0],o.top-=c[1]):l==="bottom"&&(o.left+=c[0],o.top+=c[1]),t.popper=o,t}function uPo(t,e){var n=e.boundariesElement||vz(t.instance.popper);t.instance.reference===n&&(n=vz(n));var r=Act("transform"),a=t.instance.popper.style,o=a.top,s=a.left,l=a[r];a.top="",a.left="",a[r]="";var c=vct(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);a.top=o,a.left=s,a[r]=l,e.boundaries=c;var u=e.priority,d=t.offsets.popper,h={primary:function(p){var m=d[p];return d[p]<c[p]&&!e.escapeWithReference&&(m=Math.max(d[p],c[p])),yz({},p,m)},secondary:function(p){var m=p==="right"?"left":"top",g=d[m];return d[p]>c[p]&&!e.escapeWithReference&&(g=Math.min(d[m],c[p]-(p==="right"?d.width:d.height))),yz({},m,g)}};return u.forEach(function(f){var p=["left","top"].indexOf(f)!==-1?"primary":"secondary";d=Tx({},d,h[p](f))}),t.offsets.popper=d,t}function dPo(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var a=t.offsets,o=a.reference,s=a.popper,l=["bottom","top"].indexOf(n)!==-1,c=l?"left":"top",u=l?"width":"height",d={start:yz({},c,o[c]),end:yz({},c,o[c]+o[u]-s[u])};t.offsets.popper=Tx({},s,d[r])}return t}function hPo(t){if(!vGn(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Lse(t.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function fPo(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,a=r.popper,o=r.reference,s=["left","right"].indexOf(n)!==-1,l=["top","left"].indexOf(n)===-1;return a[s?"left":"top"]=o[n]-(l?a[s?"width":"height"]:0),t.placement=Bye(e),t.offsets.popper=LP(a),t}var pPo={shift:{order:100,enabled:!0,fn:dPo},offset:{order:200,enabled:!0,fn:cPo,offset:0},preventOverflow:{order:300,enabled:!0,fn:uPo,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:oPo},arrow:{order:500,enabled:!0,fn:rPo,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:aPo,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:fPo},hide:{order:800,enabled:!0,fn:hPo},computeStyle:{order:850,enabled:!0,fn:nPo,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Z5o,onLoad:X5o,gpuAcceleration:void 0}},mPo={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:pPo},sCe=function(){function t(e,n){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j5o(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=D5o(this.update.bind(this)),this.options=Tx({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Tx({},t.Defaults.modifiers,a.modifiers)).forEach(function(s){r.options.modifiers[s]=Tx({},t.Defaults.modifiers[s]||{},a.modifiers?a.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Tx({name:s},r.options.modifiers[s])}).sort(function(s,l){return s.order-l.order}),this.modifiers.forEach(function(s){s.enabled&&iGn(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return H5o(t,[{key:"update",value:function(){return V5o.call(this)}},{key:"destroy",value:function(){return K5o.call(this)}},{key:"enableEventListeners",value:function(){return Q5o.call(this)}},{key:"disableEventListeners",value:function(){return Y5o.call(this)}}]),t}();sCe.Utils=(typeof window<"u"?window:Wa).PopperUtils;sCe.placements=AGn;sCe.Defaults=mPo;const P6t=sCe;var gPo=["innerHTML","ownerDocument","style","attributes","nodeValue"],vPo=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],APo=["bigint","boolean","null","number","string","symbol","undefined"];function lCe(t){var e=Object.prototype.toString.call(t).slice(8,-1);if(/HTML\w+Element/.test(e))return"HTMLElement";if(yPo(e))return e}function r_(t){return function(e){return lCe(e)===t}}function yPo(t){return vPo.includes(t)}function aK(t){return function(e){return typeof e===t}}function bPo(t){return APo.includes(t)}function $n(t){if(t===null)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if($n.array(t))return"Array";if($n.plainFunction(t))return"Function";var e=lCe(t);return e||"Object"}$n.array=Array.isArray;$n.arrayOf=function(t,e){return!$n.array(t)&&!$n.function(e)?!1:t.every(function(n){return e(n)})};$n.asyncGeneratorFunction=function(t){return lCe(t)==="AsyncGeneratorFunction"};$n.asyncFunction=r_("AsyncFunction");$n.bigint=aK("bigint");$n.boolean=function(t){return t===!0||t===!1};$n.date=r_("Date");$n.defined=function(t){return!$n.undefined(t)};$n.domElement=function(t){return $n.object(t)&&!$n.plainObject(t)&&t.nodeType===1&&$n.string(t.nodeName)&&gPo.every(function(e){return e in t})};$n.empty=function(t){return $n.string(t)&&t.length===0||$n.array(t)&&t.length===0||$n.object(t)&&!$n.map(t)&&!$n.set(t)&&Object.keys(t).length===0||$n.set(t)&&t.size===0||$n.map(t)&&t.size===0};$n.error=r_("Error");$n.function=aK("function");$n.generator=function(t){return $n.iterable(t)&&$n.function(t.next)&&$n.function(t.throw)};$n.generatorFunction=r_("GeneratorFunction");$n.instanceOf=function(t,e){return!t||!e?!1:Object.getPrototypeOf(t)===e.prototype};$n.iterable=function(t){return!$n.nullOrUndefined(t)&&$n.function(t[Symbol.iterator])};$n.map=r_("Map");$n.nan=function(t){return Number.isNaN(t)};$n.null=function(t){return t===null};$n.nullOrUndefined=function(t){return $n.null(t)||$n.undefined(t)};$n.number=function(t){return aK("number")(t)&&!$n.nan(t)};$n.numericString=function(t){return $n.string(t)&&t.length>0&&!Number.isNaN(Number(t))};$n.object=function(t){return!$n.nullOrUndefined(t)&&($n.function(t)||typeof t=="object")};$n.oneOf=function(t,e){return $n.array(t)?t.indexOf(e)>-1:!1};$n.plainFunction=r_("Function");$n.plainObject=function(t){if(lCe(t)!=="Object")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};$n.primitive=function(t){return $n.null(t)||bPo(typeof t)};$n.promise=r_("Promise");$n.propertyOf=function(t,e,n){if(!$n.object(t)||!e)return!1;var r=t[e];return $n.function(n)?n(r):$n.defined(r)};$n.regexp=r_("RegExp");$n.set=r_("Set");$n.string=aK("string");$n.symbol=aK("symbol");$n.undefined=aK("undefined");$n.weakMap=r_("WeakMap");$n.weakSet=r_("WeakSet");function yGn(t){return function(e){return typeof e===t}}var xPo=yGn("function"),EPo=function(t){return t===null},O6t=function(t){return Object.prototype.toString.call(t).slice(8,-1)==="RegExp"},L6t=function(t){return!SPo(t)&&!EPo(t)&&(xPo(t)||typeof t=="object")},SPo=yGn("undefined"),NQe=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function wPo(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=n;r--!==0;)if(!JA(t[r],e[r]))return!1;return!0}function _Po(t,e){if(t.byteLength!==e.byteLength)return!1;for(var n=new DataView(t.buffer),r=new DataView(e.buffer),a=t.byteLength;a--;)if(n.getUint8(a)!==r.getUint8(a))return!1;return!0}function TPo(t,e){var n,r,a,o;if(t.size!==e.size)return!1;try{for(var s=NQe(t.entries()),l=s.next();!l.done;l=s.next()){var c=l.value;if(!e.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var u=NQe(t.entries()),d=u.next();!d.done;d=u.next()){var c=d.value;if(!JA(c[1],e.get(c[0])))return!1}}catch(h){a={error:h}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return!0}function CPo(t,e){var n,r;if(t.size!==e.size)return!1;try{for(var a=NQe(t.entries()),o=a.next();!o.done;o=a.next()){var s=o.value;if(!e.has(s[0]))return!1}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!0}function JA(t,e){if(t===e)return!0;if(t&&L6t(t)&&e&&L6t(e)){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)&&Array.isArray(e))return wPo(t,e);if(t instanceof Map&&e instanceof Map)return TPo(t,e);if(t instanceof Set&&e instanceof Set)return CPo(t,e);if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return _Po(t,e);if(O6t(t)&&O6t(e))return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var a=n.length;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[a]))return!1;for(var a=n.length;a--!==0;){var o=n[a];if(!(o==="_owner"&&t.$$typeof)&&!JA(t[o],e[o]))return!1}return!0}return Number.isNaN(t)&&Number.isNaN(e)?!0:t===e}function kPo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every(function(n){return $n.string(n)||$n.array(n)||$n.plainObject(n)})}function RPo(t,e,n){return bGn(t,e)?[t,e].every($n.array)?!t.some(j6t(n))&&e.some(j6t(n)):[t,e].every($n.plainObject)?!Object.entries(t).some(F6t(n))&&Object.entries(e).some(F6t(n)):e===n:!1}function B6t(t,e,n){var r=n.actual,a=n.key,o=n.previous,s=n.type,l=u2(t,a),c=u2(e,a),u=[l,c].every($n.number)&&(s==="increased"?l<c:l>c);return $n.undefined(r)||(u=u&&c===r),$n.undefined(o)||(u=u&&l===o),u}function D6t(t,e,n){var r=n.key,a=n.type,o=n.value,s=u2(t,r),l=u2(e,r),c=a==="added"?s:l,u=a==="added"?l:s;if(!$n.nullOrUndefined(o)){if($n.defined(c)){if($n.array(c)||$n.plainObject(c))return RPo(c,u,o)}else return JA(u,o);return!1}return[s,l].every($n.array)?!u.every(bct(c)):[s,l].every($n.plainObject)?MPo(Object.keys(c),Object.keys(u)):![s,l].every(function(d){return $n.primitive(d)&&$n.defined(d)})&&(a==="added"?!$n.defined(s)&&$n.defined(l):$n.defined(s)&&!$n.defined(l))}function $6t(t,e,n){var r=n===void 0?{}:n,a=r.key,o=u2(t,a),s=u2(e,a);if(!bGn(o,s))throw new TypeError("Inputs have different types");if(!kPo(o,s))throw new TypeError("Inputs don't have length");return[o,s].every($n.plainObject)&&(o=Object.keys(o),s=Object.keys(s)),[o,s]}function F6t(t){return function(e){var n=e[0],r=e[1];return $n.array(t)?JA(t,r)||t.some(function(a){return JA(a,r)||$n.array(r)&&bct(r)(a)}):$n.plainObject(t)&&t[n]?!!t[n]&&JA(t[n],r):JA(t,r)}}function MPo(t,e){return e.some(function(n){return!t.includes(n)})}function j6t(t){return function(e){return $n.array(t)?t.some(function(n){return JA(n,e)||$n.array(e)&&bct(e)(n)}):JA(t,e)}}function fY(t,e){return $n.array(t)?t.some(function(n){return JA(n,e)}):JA(t,e)}function bct(t){return function(e){return t.some(function(n){return JA(n,e)})}}function bGn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every($n.array)||t.every($n.number)||t.every($n.plainObject)||t.every($n.string)}function u2(t,e){if($n.plainObject(t)||$n.array(t)){if($n.string(e)){var n=e.split(".");return n.reduce(function(r,a){return r&&r[a]},t)}return $n.number(e)?t[e]:t}return t}function NPo(t,e){if([t,e].some($n.nullOrUndefined))throw new Error("Missing required parameters");if(![t,e].every(function(h){return $n.plainObject(h)||$n.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,f){try{return D6t(t,e,{key:h,type:"added",value:f})}catch{return!1}},r=function(h,f,p){try{var m=u2(t,h),g=u2(e,h),v=$n.defined(f),A=$n.defined(p);if(v||A){var y=A?fY(p,m):!fY(f,m),S=fY(f,g);return y&&S}return[m,g].every($n.array)||[m,g].every($n.plainObject)?!JA(m,g):m!==g}catch{return!1}},a=function(h,f,p){if(!$n.defined(h))return!1;try{var m=u2(t,h),g=u2(e,h),v=$n.defined(p);return fY(f,m)&&(v?fY(p,g):!v)}catch{return!1}},o=function(h,f){return $n.defined(h)?r(h,f):!1},s=function(h,f,p){if(!$n.defined(h))return!1;try{return B6t(t,e,{key:h,actual:f,previous:p,type:"decreased"})}catch{return!1}},l=function(h){try{var f=$6t(t,e,{key:h}),p=f[0],m=f[1];return!!p.length&&!m.length}catch{return!1}},c=function(h){try{var f=$6t(t,e,{key:h}),p=f[0],m=f[1];return!p.length&&!!m.length}catch{return!1}},u=function(h,f,p){if(!$n.defined(h))return!1;try{return B6t(t,e,{key:h,actual:f,previous:p,type:"increased"})}catch{return!1}},d=function(h,f){try{return D6t(t,e,{key:h,type:"removed",value:f})}catch{return!1}};return{added:n,changed:r,changedFrom:a,changedTo:o,decreased:s,emptied:l,filled:c,increased:u,removed:d}}function H6t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function cd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H6t(Object(n),!0).forEach(function(r){nv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H6t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Bse(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U6t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,EGn(r.key),r)}}function Dse(t,e,n){return e&&U6t(t.prototype,e),n&&U6t(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function nv(t,e,n){return e=EGn(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $se(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&IQe(t,e)}function Dye(t){return Dye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dye(t)}function IQe(t,e){return IQe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},IQe(t,e)}function IPo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function PPo(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,o;for(o=0;o<r.length;o++)a=r[o],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function xGn(t,e){if(t==null)return{};var n=PPo(t,e),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)r=o[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function sR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OPo(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sR(t)}function Fse(t){var e=IPo();return function(){var r=Dye(t),a;if(e){var o=Dye(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return OPo(this,a)}}function LPo(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function EGn(t){var e=LPo(t,"string");return typeof e=="symbol"?e:String(e)}var BPo={flip:{padding:20},preventOverflow:{padding:10}},DPo="The typeValidator argument must be a function with the signature function(props, propName, componentName).",$Po="The error message is optional, but must be a string if provided.";function FPo(t,e,n,r){return typeof t=="boolean"?t:typeof t=="function"?t(e,n,r):t?!!t:!1}function jPo(t,e){return Object.hasOwnProperty.call(t,e)}function HPo(t,e,n,r){return r?new Error(r):new Error("Required ".concat(t[e]," `").concat(e,"` was not specified in `").concat(n,"`."))}function UPo(t,e){if(typeof t!="function")throw new TypeError(DPo);if(e&&typeof e!="string")throw new TypeError($Po)}function z6t(t,e,n){return UPo(t,n),function(r,a,o){for(var s=arguments.length,l=new Array(s>3?s-3:0),c=3;c<s;c++)l[c-3]=arguments[c];return FPo(e,r,a,o)?jPo(r,a)?t.apply(void 0,[r,a,o].concat(l)):HPo(r,a,o,n):t.apply(void 0,[r,a,o].concat(l))}}var ml={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},pY=JT.createPortal!==void 0;function MT(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function V9e(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function ufe(t){var e=t.title,n=t.data,r=t.warn,a=r===void 0?!1:r,o=t.debug,s=o===void 0?!1:o,l=a?console.warn||console.error:console.log;s&&e&&n&&(console.groupCollapsed("%creact-floater: ".concat(e),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){$n.plainObject(c)&&c.key?l.apply(console,[c.key,c.value]):l.apply(console,[c])}):l.apply(console,[n]),console.groupEnd())}function zPo(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;t.addEventListener(e,n,r)}function GPo(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;t.removeEventListener(e,n,r)}function VPo(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a;a=function(s){n(s),GPo(t,e,a)},zPo(t,e,a,r)}function G6t(){}var SGn=function(t){$se(n,t);var e=Fse(n);function n(){return Bse(this,n),e.apply(this,arguments)}return Dse(n,[{key:"componentDidMount",value:function(){MT()&&(this.node||this.appendNode(),pY||this.renderPortal())}},{key:"componentDidUpdate",value:function(){MT()&&(pY||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!MT()||!this.node||(pY||JT.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var a=this.props,o=a.id,s=a.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!MT())return null;var a=this.props,o=a.children,s=a.setRef;if(this.node||this.appendNode(),pY)return JT.createPortal(o,this.node);var l=JT.unstable_renderSubtreeIntoContainer(this,o.length>1?ke.createElement("div",null,o):o[0],this.node);return s(l),null}},{key:"renderReact16",value:function(){var a=this.props,o=a.hasChildren,s=a.placement,l=a.target;return o?this.renderPortal():l||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return pY?this.renderReact16():null}}]),n}(ke.Component);nv(SGn,"propTypes",{children:kt.oneOfType([kt.element,kt.array]),hasChildren:kt.bool,id:kt.oneOfType([kt.string,kt.number]),placement:kt.string,setRef:kt.func.isRequired,target:kt.oneOfType([kt.object,kt.string]),zIndex:kt.number});var wGn=function(t){$se(n,t);var e=Fse(n);function n(){return Bse(this,n),e.apply(this,arguments)}return Dse(n,[{key:"parentStyle",get:function(){var a=this.props,o=a.placement,s=a.styles,l=s.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=l):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=l):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var a=this.props,o=a.placement,s=a.setArrowRef,l=a.styles,c=l.arrow,u=c.color,d=c.display,h=c.length,f=c.margin,p=c.position,m=c.spread,g={display:d,position:p},v,A=m,y=h;return o.startsWith("top")?(v="0,0 ".concat(A/2,",").concat(y," ").concat(A,",0"),g.bottom=0,g.marginLeft=f,g.marginRight=f):o.startsWith("bottom")?(v="".concat(A,",").concat(y," ").concat(A/2,",0 0,").concat(y),g.top=0,g.marginLeft=f,g.marginRight=f):o.startsWith("left")?(y=m,A=h,v="0,0 ".concat(A,",").concat(y/2," 0,").concat(y),g.right=0,g.marginTop=f,g.marginBottom=f):o.startsWith("right")&&(y=m,A=h,v="".concat(A,",").concat(y," ").concat(A,",0 0,").concat(y/2),g.left=0,g.marginTop=f,g.marginBottom=f),ke.createElement("div",{className:"__floater__arrow",style:this.parentStyle},ke.createElement("span",{ref:s,style:g},ke.createElement("svg",{width:A,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},ke.createElement("polygon",{points:v,fill:u}))))}}]),n}(ke.Component);nv(wGn,"propTypes",{placement:kt.string.isRequired,setArrowRef:kt.func.isRequired,styles:kt.object.isRequired});var KPo=["color","height","width"];function _Gn(t){var e=t.handleClick,n=t.styles,r=n.color,a=n.height,o=n.width,s=xGn(n,KPo);return ke.createElement("button",{"aria-label":"close",onClick:e,style:s,type:"button"},ke.createElement("svg",{width:"".concat(o,"px"),height:"".concat(a,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},ke.createElement("g",null,ke.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}_Gn.propTypes={handleClick:kt.func.isRequired,styles:kt.object.isRequired};function TGn(t){var e=t.content,n=t.footer,r=t.handleClick,a=t.open,o=t.positionWrapper,s=t.showCloseButton,l=t.title,c=t.styles,u={content:ke.isValidElement(e)?e:ke.createElement("div",{className:"__floater__content",style:c.content},e)};return l&&(u.title=ke.isValidElement(l)?l:ke.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=ke.isValidElement(n)?n:ke.createElement("div",{className:"__floater__footer",style:c.footer},n)),(s||o)&&!$n.boolean(a)&&(u.close=ke.createElement(_Gn,{styles:c.close,handleClick:r})),ke.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}TGn.propTypes={content:kt.node.isRequired,footer:kt.node,handleClick:kt.func.isRequired,open:kt.bool,positionWrapper:kt.bool.isRequired,showCloseButton:kt.bool.isRequired,styles:kt.object.isRequired,title:kt.node};var CGn=function(t){$se(n,t);var e=Fse(n);function n(){return Bse(this,n),e.apply(this,arguments)}return Dse(n,[{key:"style",get:function(){var a=this.props,o=a.disableAnimation,s=a.component,l=a.placement,c=a.hideArrow,u=a.status,d=a.styles,h=d.arrow.length,f=d.floater,p=d.floaterCentered,m=d.floaterClosing,g=d.floaterOpening,v=d.floaterWithAnimation,A=d.floaterWithComponent,y={};return c||(l.startsWith("top")?y.padding="0 0 ".concat(h,"px"):l.startsWith("bottom")?y.padding="".concat(h,"px 0 0"):l.startsWith("left")?y.padding="0 ".concat(h,"px 0 0"):l.startsWith("right")&&(y.padding="0 0 0 ".concat(h,"px"))),[ml.OPENING,ml.OPEN].indexOf(u)!==-1&&(y=cd(cd({},y),g)),u===ml.CLOSING&&(y=cd(cd({},y),m)),u===ml.OPEN&&!o&&(y=cd(cd({},y),v)),l==="center"&&(y=cd(cd({},y),p)),s&&(y=cd(cd({},y),A)),cd(cd({},f),y)}},{key:"render",value:function(){var a=this.props,o=a.component,s=a.handleClick,l=a.hideArrow,c=a.setFloaterRef,u=a.status,d={},h=["__floater"];return o?ke.isValidElement(o)?d.content=ke.cloneElement(o,{closeFn:s}):d.content=o({closeFn:s}):d.content=ke.createElement(TGn,this.props),u===ml.OPEN&&h.push("__floater__open"),l||(d.arrow=ke.createElement(wGn,this.props)),ke.createElement("div",{ref:c,className:h.join(" "),style:this.style},ke.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),n}(ke.Component);nv(CGn,"propTypes",{component:kt.oneOfType([kt.func,kt.element]),content:kt.node,disableAnimation:kt.bool.isRequired,footer:kt.node,handleClick:kt.func.isRequired,hideArrow:kt.bool.isRequired,open:kt.bool,placement:kt.string.isRequired,positionWrapper:kt.bool.isRequired,setArrowRef:kt.func.isRequired,setFloaterRef:kt.func.isRequired,showCloseButton:kt.bool,status:kt.string.isRequired,styles:kt.object.isRequired,title:kt.node});var kGn=function(t){$se(n,t);var e=Fse(n);function n(){return Bse(this,n),e.apply(this,arguments)}return Dse(n,[{key:"render",value:function(){var a=this.props,o=a.children,s=a.handleClick,l=a.handleMouseEnter,c=a.handleMouseLeave,u=a.setChildRef,d=a.setWrapperRef,h=a.style,f=a.styles,p;if(o)if(ke.Children.count(o)===1)if(!ke.isValidElement(o))p=ke.createElement("span",null,o);else{var m=$n.function(o.type)?"innerRef":"ref";p=ke.cloneElement(ke.Children.only(o),nv({},m,u))}else p=o;return p?ke.createElement("span",{ref:d,style:cd(cd({},f),h),onClick:s,onMouseEnter:l,onMouseLeave:c},p):null}}]),n}(ke.Component);nv(kGn,"propTypes",{children:kt.node,handleClick:kt.func.isRequired,handleMouseEnter:kt.func.isRequired,handleMouseLeave:kt.func.isRequired,setChildRef:kt.func.isRequired,setWrapperRef:kt.func.isRequired,style:kt.object,styles:kt.object.isRequired});var WPo={zIndex:100};function QPo(t){var e=cw(WPo,t.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:e.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:e.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:e}}var qPo=["arrow","flip","offset"],YPo=["position","top","right","bottom","left"],xct=function(t){$se(n,t);var e=Fse(n);function n(r){var a;return Bse(this,n),a=e.call(this,r),nv(sR(a),"setArrowRef",function(o){a.arrowRef=o}),nv(sR(a),"setChildRef",function(o){a.childRef=o}),nv(sR(a),"setFloaterRef",function(o){a.floaterRef=o}),nv(sR(a),"setWrapperRef",function(o){a.wrapperRef=o}),nv(sR(a),"handleTransitionEnd",function(){var o=a.state.status,s=a.props.callback;a.wrapperPopper&&a.wrapperPopper.instance.update(),a.setState({status:o===ml.OPENING?ml.OPEN:ml.IDLE},function(){var l=a.state.status;s(l===ml.OPEN?"open":"close",a.props)})}),nv(sR(a),"handleClick",function(){var o=a.props,s=o.event,l=o.open;if(!$n.boolean(l)){var c=a.state,u=c.positionWrapper,d=c.status;(a.event==="click"||a.event==="hover"&&u)&&(ufe({title:"click",data:[{event:s,status:d===ml.OPEN?"closing":"opening"}],debug:a.debug}),a.toggle())}}),nv(sR(a),"handleMouseEnter",function(){var o=a.props,s=o.event,l=o.open;if(!($n.boolean(l)||V9e())){var c=a.state.status;a.event==="hover"&&c===ml.IDLE&&(ufe({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:a.debug}),clearTimeout(a.eventDelayTimeout),a.toggle())}}),nv(sR(a),"handleMouseLeave",function(){var o=a.props,s=o.event,l=o.eventDelay,c=o.open;if(!($n.boolean(c)||V9e())){var u=a.state,d=u.status,h=u.positionWrapper;a.event==="hover"&&(ufe({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:a.debug}),l?[ml.OPENING,ml.OPEN].indexOf(d)!==-1&&!h&&!a.eventDelayTimeout&&(a.eventDelayTimeout=setTimeout(function(){delete a.eventDelayTimeout,a.toggle()},l*1e3)):a.toggle(ml.IDLE))}}),a.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:ml.INIT,statusWrapper:ml.INIT},a._isMounted=!1,a.hasMounted=!1,MT()&&window.addEventListener("load",function(){a.popper&&a.popper.instance.update(),a.wrapperPopper&&a.wrapperPopper.instance.update()}),a}return Dse(n,[{key:"componentDidMount",value:function(){if(MT()){var a=this.state.positionWrapper,o=this.props,s=o.children,l=o.open,c=o.target;this._isMounted=!0,ufe({title:"init",data:{hasChildren:!!s,hasTarget:!!c,isControlled:$n.boolean(l),positionWrapper:a,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&c&&$n.boolean(l)}}},{key:"componentDidUpdate",value:function(a,o){if(MT()){var s=this.props,l=s.autoOpen,c=s.open,u=s.target,d=s.wrapperOptions,h=NPo(o,this.state),f=h.changedFrom,p=h.changed;if(a.open!==c){var m;$n.boolean(c)&&(m=c?ml.OPENING:ml.CLOSING),this.toggle(m)}(a.wrapperOptions.position!==d.position||a.target!==u)&&this.changeWrapperPosition(this.props),p("status",ml.IDLE)&&c?this.toggle(ml.OPEN):f("status",ml.INIT,ml.IDLE)&&l&&this.toggle(ml.OPEN),this.popper&&p("status",ml.OPENING)&&this.popper.instance.update(),this.floaterRef&&(p("status",ml.OPENING)||p("status",ml.CLOSING))&&VPo(this.floaterRef,"transitionend",this.handleTransitionEnd),p("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){MT()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var a=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,l=this.props,c=l.disableFlip,u=l.getPopper,d=l.hideArrow,h=l.offset,f=l.placement,p=l.wrapperOptions,m=f==="top"||f==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(f==="center")this.setState({status:ml.IDLE});else if(o&&this.floaterRef){var g=this.options,v=g.arrow,A=g.flip,y=g.offset,S=xGn(g,qPo);new P6t(o,this.floaterRef,{placement:f,modifiers:cd({arrow:cd({enabled:!d,element:this.arrowRef},v),flip:cd({enabled:!c,behavior:m},A),offset:cd({offset:"0, ".concat(h,"px")},y)},S),onCreate:function(_){var C;if(a.popper=_,!((C=a.floaterRef)!==null&&C!==void 0&&C.isConnected)){a.setState({needsUpdate:!0});return}u(_,"floater"),a._isMounted&&a.setState({currentPlacement:_.placement,status:ml.IDLE}),f!==_.placement&&setTimeout(function(){_.instance.update()},1)},onUpdate:function(_){a.popper=_;var C=a.state.currentPlacement;a._isMounted&&_.placement!==C&&a.setState({currentPlacement:_.placement})}})}if(s){var x=$n.undefined(p.offset)?0:p.offset;new P6t(this.target,this.wrapperRef,{placement:p.placement||f,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(x,"px")},flip:{enabled:!1}},onCreate:function(_){a.wrapperPopper=_,a._isMounted&&a.setState({statusWrapper:ml.IDLE}),u(_,"wrapper"),f!==_.placement&&setTimeout(function(){_.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var a=this;this.floaterRefInterval=setInterval(function(){var o;(o=a.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(a.floaterRefInterval),a.setState({needsUpdate:!1}),a.initPopper())},50)}},{key:"changeWrapperPosition",value:function(a){var o=a.target,s=a.wrapperOptions;this.setState({positionWrapper:s.position&&!!o})}},{key:"toggle",value:function(a){var o=this.state.status,s=o===ml.OPEN?ml.CLOSING:ml.OPENING;$n.undefined(a)||(s=a),this.setState({status:s})}},{key:"debug",get:function(){var a=this.props.debug;return a||MT()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var a=this.props,o=a.disableHoverToClick,s=a.event;return s==="hover"&&V9e()&&!o?"click":s}},{key:"options",get:function(){var a=this.props.options;return cw(BPo,a||{})}},{key:"styles",get:function(){var a=this,o=this.state,s=o.status,l=o.positionWrapper,c=o.statusWrapper,u=this.props.styles,d=cw(QPo(u),u);if(l){var h;[ml.IDLE].indexOf(s)===-1||[ml.IDLE].indexOf(c)===-1?h=d.wrapperPosition:h=this.wrapperPopper.styles,d.wrapper=cd(cd({},d.wrapper),h)}if(this.target){var f=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=cd(cd({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(f.position)===-1&&(this.wrapperStyles={},l||(YPo.forEach(function(p){a.wrapperStyles[p]=f[p]}),d.wrapper=cd(cd({},d.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return d}},{key:"target",get:function(){if(!MT())return null;var a=this.props.target;return a?$n.domElement(a)?a:document.querySelector(a):this.childRef||this.wrapperRef}},{key:"render",value:function(){var a=this.state,o=a.currentPlacement,s=a.positionWrapper,l=a.status,c=this.props,u=c.children,d=c.component,h=c.content,f=c.disableAnimation,p=c.footer,m=c.hideArrow,g=c.id,v=c.open,A=c.showCloseButton,y=c.style,S=c.target,x=c.title,w=ke.createElement(kGn,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},u),_={};return s?_.wrapperInPortal=w:_.wrapperAsChildren=w,ke.createElement("span",null,ke.createElement(SGn,{hasChildren:!!u,id:g,placement:o,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},ke.createElement(CGn,{component:d,content:h,disableAnimation:f,footer:p,handleClick:this.handleClick,hideArrow:m||o==="center",open:v,placement:o,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:A,status:l,styles:this.styles,title:x}),_.wrapperInPortal),_.wrapperAsChildren)}}]),n}(ke.Component);nv(xct,"propTypes",{autoOpen:kt.bool,callback:kt.func,children:kt.node,component:z6t(kt.oneOfType([kt.func,kt.element]),function(t){return!t.content}),content:z6t(kt.node,function(t){return!t.component}),debug:kt.bool,disableAnimation:kt.bool,disableFlip:kt.bool,disableHoverToClick:kt.bool,event:kt.oneOf(["hover","click"]),eventDelay:kt.number,footer:kt.node,getPopper:kt.func,hideArrow:kt.bool,id:kt.oneOfType([kt.string,kt.number]),offset:kt.number,open:kt.bool,options:kt.object,placement:kt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:kt.bool,style:kt.object,styles:kt.object,target:kt.oneOfType([kt.object,kt.string]),title:kt.node,wrapperOptions:kt.shape({offset:kt.number,placement:kt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:kt.bool})});nv(xct,"defaultProps",{autoOpen:!1,callback:G6t,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:G6t,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var JPo=function(t){return Object.prototype.hasOwnProperty.call(t,"props")},ZPo=function(t,e){return t+Bre(e)},Bre=function(t){return t===null||typeof t=="boolean"||typeof t>"u"?"":typeof t=="number"?t.toString():typeof t=="string"?t:Array.isArray(t)?t.reduce(ZPo,""):JPo(t)&&Object.prototype.hasOwnProperty.call(t.props,"children")?Bre(t.props.children):""};Bre.default=Bre;var XPo=Bre;const eOo=Li(XPo);var tOo=Object.defineProperty,nOo=(t,e,n)=>e in t?tOo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ra=(t,e,n)=>(nOo(t,typeof e!="symbol"?e+"":e,n),n),Fl={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},GS={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},No={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},os={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function R3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function RGn(t){return t?t.getBoundingClientRect():null}function rOo(t=!0){const{body:e,documentElement:n}=document;if(!e||!n)return 0;if(t){const r=[e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,s)=>o-s),a=Math.floor(r.length/2);return r.length%2===0?(r[a-1]+r[a])/2:r[a]}return Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function $5(t){return typeof t=="string"?document.querySelector(t):t}function iOo(t){return!t||t.nodeType!==1?null:getComputedStyle(t)}function cCe(t,e,n){if(!t)return oD();const r=nGn(t);if(r){if(r.isSameNode(oD()))return n?document:oD();if(!(r.scrollHeight>r.offsetHeight)&&!e)return r.style.overflow="initial",oD()}return r}function uCe(t,e){if(!t)return!1;const n=cCe(t,e);return n?!n.isSameNode(oD()):!1}function aOo(t){return t.offsetParent!==document.body}function Dre(t,e="fixed"){if(!t||!(t instanceof HTMLElement))return!1;const{nodeName:n}=t,r=iOo(t);return n==="BODY"||n==="HTML"?!1:r&&r.position===e?!0:t.parentNode?Dre(t.parentNode,e):!1}function oOo(t){var e;if(!t)return!1;let n=t;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:a}=getComputedStyle(n);if(r==="none"||a==="hidden")return!1}n=(e=n.parentElement)!=null?e:null}return!0}function sOo(t,e,n){var r;const a=RGn(t),o=cCe(t,n),s=uCe(t,n);let l=0,c=(r=a==null?void 0:a.top)!=null?r:0;return o instanceof HTMLElement&&(l=o.scrollTop,!s&&!Dre(t)&&(c+=l),o.isSameNode(oD())||(c+=oD().scrollTop)),Math.floor(c-e)}function lOo(t,e,n){var r;if(!t)return 0;const{offsetTop:a=0,scrollTop:o=0}=(r=nGn(t))!=null?r:{};let s=t.getBoundingClientRect().top+o;a&&(uCe(t,n)||aOo(t))&&(s-=a);const l=Math.floor(s-e);return l<0?0:l}function oD(){var t;return(t=document.scrollingElement)!=null?t:document.documentElement}function cOo(t,e){const{duration:n,element:r}=e;return new Promise((a,o)=>{const{scrollTop:s}=r,l=t>s?t-s:s-t;v5o.top(r,t,{duration:l<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):a())})}var mY=Dy.createPortal!==void 0;function MGn(t=navigator.userAgent){let e=t;return typeof window>"u"?e="node":document.documentMode?e="ie":/Edge/.test(t)?e="edge":window.opera||t.includes(" OPR/")?e="opera":typeof window.InstallTrigger<"u"?e="firefox":window.chrome?e="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(t)&&(e="safari"),e}function M3(t){const e=[],n=r=>{if(typeof r=="string"||typeof r=="number")e.push(r);else if(Array.isArray(r))r.forEach(a=>n(a));else if(Y.isValidElement(r)){const{children:a}=r.props;Array.isArray(a)?a.forEach(o=>n(o)):n(a)}};return n(t),e.join(" ").trim()}function uOo(t,e){return!yp.plainObject(t)||!yp.array(e)?!1:Object.keys(t).every(n=>e.includes(n))}function dOo(t){const e=/^#?([\da-f])([\da-f])([\da-f])$/i,n=t.replace(e,(a,o,s,l)=>o+o+s+s+l+l),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function V6t(t){return t.disableBeacon||t.placement==="center"}function K6t(){return!["chrome","safari","firefox","opera"].includes(MGn())}function h8({data:t,debug:e=!1,title:n,warn:r=!1}){const a=r?console.warn||console.error:console.log;e&&(n&&t?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(t)?t.forEach(o=>{yp.plainObject(o)&&o.key?a.apply(console,[o.key,o.value]):a.apply(console,[o])}):a.apply(console,[t]),console.groupEnd()):console.error("Missing title or data props"))}function hOo(t){return Object.keys(t)}function NGn(t,...e){if(!yp.plainObject(t))throw new TypeError("Expected an object");const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&(e.includes(r)||(n[r]=t[r]));return n}function fOo(t,...e){if(!yp.plainObject(t))throw new TypeError("Expected an object");if(!e.length)return t;const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&e.includes(r)&&(n[r]=t[r]);return n}function pOo(t){const{isFirstStep:e,lifecycle:n,previousLifecycle:r,scrollToFirstStep:a,step:o,target:s}=t;return!o.disableScrolling&&(!e||a||n===No.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Dre(s))&&r!==n&&[No.BEACON,No.TOOLTIP].includes(n)}var mOo={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},IGn={back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},gOo={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:IGn,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},vOo={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},AOo={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},gY={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},W6t={borderRadius:4,position:"absolute"};function yOo(t,e){var n,r,a,o,s;const{floaterProps:l,styles:c}=t,u=cw((n=e.floaterProps)!=null?n:{},l??{}),d=cw(c??{},(r=e.styles)!=null?r:{}),h=cw(AOo,d.options||{}),f=e.placement==="center"||e.disableBeacon;let{width:p}=h;window.innerWidth>480&&(p=380),"width"in h&&(p=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const m={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},g={beacon:{...gY,display:f?"none":"inline-block",height:h.beaconSize,position:"relative",width:h.beaconSize,zIndex:h.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:h.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${dOo(h.primaryColor).join(",")}, 0.2)`,border:`2px solid ${h.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:h.backgroundColor,borderRadius:5,boxSizing:"border-box",color:h.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:p},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...gY,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...gY,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...gY,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...gY,color:h.textColor,fontSize:14},overlay:{...m,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...m},overlayLegacyCenter:{...m,backgroundColor:h.overlayColor},spotlight:{...W6t,backgroundColor:"gray"},spotlightLegacy:{...W6t,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(o=(a=u==null?void 0:u.styles)==null?void 0:a.arrow)==null?void 0:o.color)!=null?s:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return cw(g,d)}function bOo(t){return fOo(t,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function b7(t,e){var n,r,a,o,s,l;const c=e??{},u=cw.all([gOo,bOo(t),c],{isMergeableObject:yp.plainObject}),d=yOo(t,u),h=uCe($5(u.target),u.disableScrollParentFix),f=cw.all([mOo,(n=t.floaterProps)!=null?n:{},(r=u.floaterProps)!=null?r:{}]);return f.offset=u.offset,f.styles=cw((a=f.styles)!=null?a:{},d.floaterStyles),f.offset+=(s=(o=t.spotlightPadding)!=null?o:u.spotlightPadding)!=null?s:0,u.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=u.placementBeacon),h&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...u,locale:cw.all([IGn,(l=t.locale)!=null?l:{},u.locale||{}]),floaterProps:f,styles:NGn(d,"floaterStyles")}}function PGn(t,e=!1){return yp.plainObject(t)?t.target?!0:(h8({title:"validateStep",data:"target is missing from the step",warn:!0,debug:e}),!1):(h8({title:"validateStep",data:"step must be an object",warn:!0,debug:e}),!1)}function Q6t(t,e=!1){return yp.array(t)?t.every(n=>PGn(n,e)):(h8({title:"validateSteps",data:"steps must be an array",warn:!0,debug:e}),!1)}var OGn={action:"init",controlled:!1,index:0,lifecycle:No.INIT,origin:null,size:0,status:os.IDLE},q6t=hOo(NGn(OGn,"controlled","size")),xOo=class{constructor(t){ra(this,"beaconPopper"),ra(this,"tooltipPopper"),ra(this,"data",new Map),ra(this,"listener"),ra(this,"store",new Map),ra(this,"addListener",a=>{this.listener=a}),ra(this,"setSteps",a=>{const{size:o,status:s}=this.getState(),l={size:a.length,status:s};this.data.set("steps",a),s===os.WAITING&&!o&&a.length&&(l.status=os.RUNNING),this.setState(l)}),ra(this,"getPopper",a=>a==="beacon"?this.beaconPopper:this.tooltipPopper),ra(this,"setPopper",(a,o)=>{a==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),ra(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),ra(this,"close",(a=null)=>{const{index:o,status:s}=this.getState();s===os.RUNNING&&this.setState({...this.getNextState({action:Fl.CLOSE,index:o+1,origin:a})})}),ra(this,"go",a=>{const{controlled:o,status:s}=this.getState();if(o||s!==os.RUNNING)return;const l=this.getSteps()[a];this.setState({...this.getNextState({action:Fl.GO,index:a}),status:l?s:os.FINISHED})}),ra(this,"info",()=>this.getState()),ra(this,"next",()=>{const{index:a,status:o}=this.getState();o===os.RUNNING&&this.setState(this.getNextState({action:Fl.NEXT,index:a+1}))}),ra(this,"open",()=>{const{status:a}=this.getState();a===os.RUNNING&&this.setState({...this.getNextState({action:Fl.UPDATE,lifecycle:No.TOOLTIP})})}),ra(this,"prev",()=>{const{index:a,status:o}=this.getState();o===os.RUNNING&&this.setState({...this.getNextState({action:Fl.PREV,index:a-1})})}),ra(this,"reset",(a=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:Fl.RESET,index:0}),status:a?os.RUNNING:os.READY})}),ra(this,"skip",()=>{const{status:a}=this.getState();a===os.RUNNING&&this.setState({action:Fl.SKIP,lifecycle:No.INIT,status:os.SKIPPED})}),ra(this,"start",a=>{const{index:o,size:s}=this.getState();this.setState({...this.getNextState({action:Fl.START,index:yp.number(a)?a:o},!0),status:s?os.RUNNING:os.WAITING})}),ra(this,"stop",(a=!1)=>{const{index:o,status:s}=this.getState();[os.FINISHED,os.SKIPPED].includes(s)||this.setState({...this.getNextState({action:Fl.STOP,index:o+(a?1:0)}),status:os.PAUSED})}),ra(this,"update",a=>{var o,s;if(!uOo(a,q6t))throw new Error(`State is not valid. Valid keys: ${q6t.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...a,action:(o=a.action)!=null?o:Fl.UPDATE,origin:(s=a.origin)!=null?s:null},!0)})});const{continuous:e=!1,stepIndex:n,steps:r=[]}=t??{};this.setState({action:Fl.INIT,controlled:yp.number(n),continuous:e,index:yp.number(n)?n:0,lifecycle:No.INIT,origin:null,status:r.length?os.READY:os.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...OGn}}getNextState(t,e=!1){var n,r,a,o,s;const{action:l,controlled:c,index:u,size:d,status:h}=this.getState(),f=yp.number(t.index)?t.index:u,p=c&&!e?u:Math.min(Math.max(f,0),d);return{action:(n=t.action)!=null?n:l,controlled:c,index:p,lifecycle:(r=t.lifecycle)!=null?r:No.INIT,origin:(a=t.origin)!=null?a:null,size:(o=t.size)!=null?o:d,status:p===d?os.FINISHED:(s=t.status)!=null?s:h}}getSteps(){const t=this.data.get("steps");return Array.isArray(t)?t:[]}hasUpdatedState(t){const e=JSON.stringify(t),n=JSON.stringify(this.getState());return e!==n}setState(t,e=!1){const n=this.getState(),{action:r,index:a,lifecycle:o,origin:s=null,size:l,status:c}={...n,...t};this.store.set("action",r),this.store.set("index",a),this.store.set("lifecycle",o),this.store.set("origin",s),this.store.set("size",l),this.store.set("status",c),e&&(this.store.set("controlled",t.controlled),this.store.set("continuous",t.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function EOo(t){return new xOo(t)}function SOo({styles:t}){return Y.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:t})}var wOo=SOo,_Oo=class extends Y.Component{constructor(){super(...arguments),ra(this,"isActive",!1),ra(this,"resizeTimeout"),ra(this,"scrollTimeout"),ra(this,"scrollParent"),ra(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),ra(this,"hideSpotlight",()=>{const{continuous:t,disableOverlay:e,lifecycle:n}=this.props,r=[No.BEACON,No.COMPLETE,No.ERROR];return e||(t?r.includes(n):n!==No.TOOLTIP)}),ra(this,"handleMouseMove",t=>{const{mouseOverSpotlight:e}=this.state,{height:n,left:r,position:a,top:o,width:s}=this.spotlightStyles,l=a==="fixed"?t.clientY:t.pageY,c=a==="fixed"?t.clientX:t.pageX,u=l>=o&&l<=o+n,h=c>=r&&c<=r+s&&u;h!==e&&this.updateState({mouseOverSpotlight:h})}),ra(this,"handleScroll",()=>{const{target:t}=this.props,e=$5(t);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Dre(e,"sticky")&&this.updateState({})}),ra(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:t,disableScrolling:e,disableScrollParentFix:n=!1,target:r}=this.props,a=$5(r);this.scrollParent=cCe(a??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(t){var e;const{lifecycle:n,spotlightClicks:r}=this.props,{changed:a}=Oye(t,this.props);a("lifecycle",No.TOOLTIP)&&((e=this.scrollParent)==null||e.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&n===No.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):n!==No.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var t;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(t=this.scrollParent)==null||t.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:t}=this.state,{disableOverlayClose:e,placement:n,styles:r}=this.props;let a=r.overlay;return K6t()&&(a=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:e?"default":"pointer",height:rOo(),pointerEvents:t?"none":"auto",...a}}get spotlightStyles(){var t,e,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:a=!1,spotlightClicks:o,spotlightPadding:s=0,styles:l,target:c}=this.props,u=$5(c),d=RGn(u),h=Dre(u),f=sOo(u,s,a);return{...K6t()?l.spotlightLegacy:l.spotlight,height:Math.round(((t=d==null?void 0:d.height)!=null?t:0)+s*2),left:Math.round(((e=d==null?void 0:d.left)!=null?e:0)-s),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round(((n=d==null?void 0:d.width)!=null?n:0)+s*2)}}updateState(t){this.isActive&&this.setState(e=>({...e,...t}))}render(){const{showSpotlight:t}=this.state,{onClickOverlay:e,placement:n}=this.props,{hideSpotlight:r,overlayStyles:a,spotlightStyles:o}=this;if(r())return null;let s=n!=="center"&&t&&Y.createElement(wOo,{styles:o});if(MGn()==="safari"){const{mixBlendMode:l,zIndex:c,...u}=a;s=Y.createElement("div",{style:{...u}},s),delete a.backgroundColor}return Y.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:e,role:"presentation",style:a},s)}},TOo=class extends Y.Component{constructor(){super(...arguments),ra(this,"node",null)}componentDidMount(){const{id:t}=this.props;R3()&&(this.node=document.createElement("div"),this.node.id=t,document.body.appendChild(this.node),mY||this.renderReact15())}componentDidUpdate(){R3()&&(mY||this.renderReact15())}componentWillUnmount(){!R3()||!this.node||(mY||Dy.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!R3())return;const{children:t}=this.props;this.node&&Dy.unstable_renderSubtreeIntoContainer(this,t,this.node)}renderReact16(){if(!R3()||!mY)return null;const{children:t}=this.props;return this.node?Dy.createPortal(t,this.node):null}render(){return mY?this.renderReact16():null}},COo=class{constructor(t,e){if(ra(this,"element"),ra(this,"options"),ra(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),ra(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,a=n.nodeName.toLowerCase();return(r.test(a)&&!n.getAttribute("disabled")||a==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),ra(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),ra(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),ra(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:a}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!a&&o+1===r.length?o=0:a&&o===0?o=r.length-1:o+=a?-1:1,r[o].focus()}),ra(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,a=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&a.getPropertyValue("overflow")!=="visible"||a.getPropertyValue("display")==="none"}),ra(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),ra(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),ra(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),ra(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=e,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},kOo=class extends Y.Component{constructor(t){if(super(t),ra(this,"beacon",null),ra(this,"setBeaconRef",a=>{this.beacon=a}),t.beaconComponent)return;const e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",t.nonce&&n.setAttribute("nonce",t.nonce);const r=`
        @keyframes joyride-beacon-inner {
          20% {
            opacity: 0.9;
          }
        
          90% {
            opacity: 0.7;
          }
        }
        
        @keyframes joyride-beacon-outer {
          0% {
            transform: scale(1);
          }
        
          45% {
            opacity: 0.7;
            transform: scale(0.75);
          }
        
          100% {
            opacity: 0.9;
            transform: scale(1);
          }
        }
      `;n.appendChild(document.createTextNode(r)),e.appendChild(n)}componentDidMount(){const{shouldFocus:t}=this.props;setTimeout(()=>{yp.domElement(this.beacon)&&t&&this.beacon.focus()},0)}componentWillUnmount(){const t=document.getElementById("joyride-beacon-animation");t!=null&&t.parentNode&&t.parentNode.removeChild(t)}render(){const{beaconComponent:t,continuous:e,index:n,isLastStep:r,locale:a,onClickOrHover:o,size:s,step:l,styles:c}=this.props,u=yp.string(a.open)?a.open:eOo(a.open),d={"aria-label":u,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:u};let h;if(t){const f=t;h=Y.createElement(f,{continuous:e,index:n,isLastStep:r,size:s,step:l,...d})}else h=Y.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...d},Y.createElement("span",{style:c.beaconInner}),Y.createElement("span",{style:c.beaconOuter}));return h}};function ROo({styles:t,...e}){const{color:n,height:r,width:a,...o}=t;return ke.createElement("button",{style:o,type:"button",...e},ke.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof a=="number"?`${a}px`:a,xmlns:"http://www.w3.org/2000/svg"},ke.createElement("g",null,ke.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var MOo=ROo;function NOo(t){const{backProps:e,closeProps:n,continuous:r,index:a,isLastStep:o,primaryProps:s,size:l,skipProps:c,step:u,tooltipProps:d}=t,{content:h,hideBackButton:f,hideCloseButton:p,hideFooter:m,locale:g,showProgress:v,showSkipButton:A,styles:y,title:S}=u,{back:x,close:w,last:_,next:C,skip:R}=g,k={primary:w};return r&&(k.primary=o?_:C,v&&(k.primary=Y.createElement("span",null,k.primary," (",a+1,"/",l,")"))),k.primary&&(k.primary=Y.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...s},k.primary)),A&&!o&&(k.skip=Y.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...c},R)),!f&&a>0&&(k.back=Y.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...e},x)),k.close=!p&&Y.createElement(MOo,{"data-test-id":"button-close",styles:y.buttonClose,...n}),Y.createElement("div",{key:"JoyrideTooltip","aria-label":M3(S)||M3(h),className:"react-joyride__tooltip",style:y.tooltip,...d},Y.createElement("div",{style:y.tooltipContainer},S&&Y.createElement("h1",{"aria-label":M3(S),style:y.tooltipTitle},S),Y.createElement("div",{style:y.tooltipContent},h)),!m&&Y.createElement("div",{style:y.tooltipFooter},Y.createElement("div",{style:y.tooltipFooterSpacer},k.skip),k.back,k.primary),k.close)}var IOo=NOo,POo=class extends Y.Component{constructor(){super(...arguments),ra(this,"handleClickBack",t=>{t.preventDefault();const{helpers:e}=this.props;e.prev()}),ra(this,"handleClickClose",t=>{t.preventDefault();const{helpers:e}=this.props;e.close("button_close")}),ra(this,"handleClickPrimary",t=>{t.preventDefault();const{continuous:e,helpers:n}=this.props;if(!e){n.close("button_primary");return}n.next()}),ra(this,"handleClickSkip",t=>{t.preventDefault();const{helpers:e}=this.props;e.skip()}),ra(this,"getElementsProps",()=>{const{continuous:t,isLastStep:e,setTooltipRef:n,step:r}=this.props,a=M3(r.locale.back),o=M3(r.locale.close),s=M3(r.locale.last),l=M3(r.locale.next),c=M3(r.locale.skip);let u=t?l:o;return e&&(u=s),{backProps:{"aria-label":a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:a},closeProps:{"aria-label":o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:o},primaryProps:{"aria-label":u,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:u},skipProps:{"aria-label":c,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:c},tooltipProps:{"aria-modal":!0,ref:n,role:"alertdialog"}}})}render(){const{continuous:t,index:e,isLastStep:n,setTooltipRef:r,size:a,step:o}=this.props,{beaconComponent:s,tooltipComponent:l,...c}=o;let u;if(l){const d={...this.getElementsProps(),continuous:t,index:e,isLastStep:n,size:a,step:c,setTooltipRef:r},h=l;u=Y.createElement(h,{...d})}else u=Y.createElement(IOo,{...this.getElementsProps(),continuous:t,index:e,isLastStep:n,size:a,step:o});return u}},OOo=class extends Y.Component{constructor(){super(...arguments),ra(this,"scope",null),ra(this,"tooltip",null),ra(this,"handleClickHoverBeacon",t=>{const{step:e,store:n}=this.props;t.type==="mouseenter"&&e.event!=="hover"||n.update({lifecycle:No.TOOLTIP})}),ra(this,"setTooltipRef",t=>{this.tooltip=t}),ra(this,"setPopper",(t,e)=>{var n;const{action:r,lifecycle:a,step:o,store:s}=this.props;e==="wrapper"?s.setPopper("beacon",t):s.setPopper("tooltip",t),s.getPopper("beacon")&&s.getPopper("tooltip")&&a===No.INIT&&s.update({action:r,lifecycle:No.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(t,e)}),ra(this,"renderTooltip",t=>{const{continuous:e,helpers:n,index:r,size:a,step:o}=this.props;return Y.createElement(POo,{continuous:e,helpers:n,index:r,isLastStep:r+1===a,setTooltipRef:this.setTooltipRef,size:a,step:o,...t})})}componentDidMount(){const{debug:t,index:e}=this.props;h8({title:`step:${e}`,data:[{key:"props",value:this.props}],debug:t})}componentDidUpdate(t){var e;const{action:n,callback:r,continuous:a,controlled:o,debug:s,helpers:l,index:c,lifecycle:u,status:d,step:h,store:f}=this.props,{changed:p,changedFrom:m}=Oye(t,this.props),g=l.info(),v=a&&n!==Fl.CLOSE&&(c>0||n===Fl.PREV),A=p("action")||p("index")||p("lifecycle")||p("status"),y=m("lifecycle",[No.TOOLTIP,No.INIT],No.INIT),S=p("action",[Fl.NEXT,Fl.PREV,Fl.SKIP,Fl.CLOSE]),x=o&&c===t.index;if(S&&(y||x)&&r({...g,index:t.index,lifecycle:No.COMPLETE,step:t.step,type:GS.STEP_AFTER}),h.placement==="center"&&d===os.RUNNING&&p("index")&&n!==Fl.START&&u===No.INIT&&f.update({lifecycle:No.READY}),A){const w=$5(h.target),_=!!w;_&&oOo(w)?(m("status",os.READY,os.RUNNING)||m("lifecycle",No.INIT,No.READY))&&r({...g,step:h,type:GS.STEP_BEFORE}):(console.warn(_?"Target not visible":"Target not mounted",h),r({...g,type:GS.TARGET_NOT_FOUND,step:h}),o||f.update({index:c+(n===Fl.PREV?-1:1)}))}m("lifecycle",No.INIT,No.READY)&&f.update({lifecycle:V6t(h)||v?No.TOOLTIP:No.BEACON}),p("index")&&h8({title:`step:${u}`,data:[{key:"props",value:this.props}],debug:s}),p("lifecycle",No.BEACON)&&r({...g,step:h,type:GS.BEACON}),p("lifecycle",No.TOOLTIP)&&(r({...g,step:h,type:GS.TOOLTIP}),this.tooltip&&(this.scope=new COo(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),m("lifecycle",[No.TOOLTIP,No.INIT],No.INIT)&&((e=this.scope)==null||e.removeScope(),f.cleanupPoppers())}componentWillUnmount(){var t;(t=this.scope)==null||t.removeScope()}get open(){const{lifecycle:t,step:e}=this.props;return V6t(e)||t===No.TOOLTIP}render(){const{continuous:t,debug:e,index:n,nonce:r,shouldScroll:a,size:o,step:s}=this.props,l=$5(s.target);return!PGn(s)||!yp.domElement(l)?null:Y.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Y.createElement(xct,{...s.floaterProps,component:this.renderTooltip,debug:e,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},Y.createElement(kOo,{beaconComponent:s.beaconComponent,continuous:t,index:n,isLastStep:n+1===o,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:a,size:o,step:s,styles:s.styles})))}},LGn=class extends Y.Component{constructor(e){super(e),ra(this,"helpers"),ra(this,"store"),ra(this,"callback",l=>{const{callback:c}=this.props;yp.function(c)&&c(l)}),ra(this,"handleKeyboard",l=>{const{index:c,lifecycle:u}=this.state,{steps:d}=this.props,h=d[c];u===No.TOOLTIP&&l.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),ra(this,"handleClickOverlay",()=>{const{index:l}=this.state,{steps:c}=this.props;b7(this.props,c[l]).disableOverlayClose||this.helpers.close("overlay")}),ra(this,"syncState",l=>{this.setState(l)});const{debug:n,getHelpers:r,run:a,stepIndex:o}=e;this.store=EOo({...e,controlled:a&&yp.number(o)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;h8({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:n}),s(this.syncState),r&&r(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!R3())return;const{debug:e,disableCloseOnEsc:n,run:r,steps:a}=this.props,{start:o}=this.store;Q6t(a,e)&&r&&o(),n||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,n){if(!R3())return;const{action:r,controlled:a,index:o,lifecycle:s,status:l}=this.state,{debug:c,run:u,stepIndex:d,steps:h}=this.props,{stepIndex:f,steps:p}=e,{reset:m,setSteps:g,start:v,stop:A,update:y}=this.store,{changed:S}=Oye(e,this.props),{changed:x,changedFrom:w}=Oye(n,this.state),_=b7(this.props,h[o]),C=!B0(p,h),R=yp.number(d)&&S("stepIndex"),k=$5(_.target);if(C&&(Q6t(h,c)?g(h):console.warn("Steps are not valid",h)),S("run")&&(u?v(d):A()),R){let L=yp.number(f)&&f<d?Fl.NEXT:Fl.PREV;r===Fl.STOP&&(L=Fl.START),[os.FINISHED,os.SKIPPED].includes(l)||y({action:r===Fl.CLOSE?Fl.CLOSE:L,index:d,lifecycle:No.INIT})}!a&&l===os.RUNNING&&o===0&&!k&&(this.store.update({index:o+1}),this.callback({...this.state,type:GS.TARGET_NOT_FOUND,step:_}));const P={...this.state,index:o,step:_};if(x("action",[Fl.NEXT,Fl.PREV,Fl.SKIP,Fl.CLOSE])&&x("status",os.PAUSED)){const L=b7(this.props,h[n.index]);this.callback({...P,index:n.index,lifecycle:No.COMPLETE,step:L,type:GS.STEP_AFTER})}if(x("status",[os.FINISHED,os.SKIPPED])){const L=b7(this.props,h[n.index]);a||this.callback({...P,index:n.index,lifecycle:No.COMPLETE,step:L,type:GS.STEP_AFTER}),this.callback({...P,type:GS.TOUR_END,step:L,index:n.index}),m()}else w("status",[os.IDLE,os.READY],os.RUNNING)?this.callback({...P,type:GS.TOUR_START}):(x("status")||x("action",Fl.RESET))&&this.callback({...P,type:GS.TOUR_STATUS});this.scrollToStep(n),_.placement==="center"&&l===os.RUNNING&&s===No.INIT&&this.store.update({lifecycle:No.READY})}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:n,lifecycle:r,status:a}=this.state,{debug:o,disableScrollParentFix:s=!1,scrollDuration:l,scrollOffset:c=20,scrollToFirstStep:u=!1,steps:d}=this.props,h=b7(this.props,d[n]),f=$5(h.target),p=pOo({isFirstStep:n===0,lifecycle:r,previousLifecycle:e.lifecycle,scrollToFirstStep:u,step:h,target:f});if(a===os.RUNNING&&p){const m=uCe(f,s),g=cCe(f,s);let v=Math.floor(lOo(f,c,s))||0;h8({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:r},{key:"status",value:a}],debug:o});const A=this.store.getPopper("beacon"),y=this.store.getPopper("tooltip");if(r===No.BEACON&&A){const{offsets:S,placement:x}=A;!["bottom"].includes(x)&&!m&&(v=Math.floor(S.popper.top-c))}else if(r===No.TOOLTIP&&y){const{flipped:S,offsets:x,placement:w}=y;["top","right","left"].includes(w)&&!S&&!m?v=Math.floor(x.popper.top-c):v-=h.spotlightPadding}v=v>=0?v:0,a===os.RUNNING&&cOo(v,{element:g,duration:l}).then(()=>{setTimeout(()=>{var S;(S=this.store.getPopper("tooltip"))==null||S.instance.update()},10)})}}render(){if(!R3())return null;const{index:e,lifecycle:n,status:r}=this.state,{continuous:a=!1,debug:o=!1,nonce:s,scrollToFirstStep:l=!1,steps:c}=this.props,u=r===os.RUNNING,d={};if(u&&c[e]){const h=b7(this.props,c[e]);d.step=Y.createElement(OOo,{...this.state,callback:this.callback,continuous:a,debug:o,helpers:this.helpers,nonce:s,shouldScroll:!h.disableScrolling&&(e!==0||l),step:h,store:this.store}),d.overlay=Y.createElement(TOo,{id:"react-joyride-portal"},Y.createElement(_Oo,{...h,continuous:a,debug:o,lifecycle:n,onClickOverlay:this.handleClickOverlay}))}return Y.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};ra(LGn,"defaultProps",vOo);var LOo=LGn;const BOo=gt.div`
  background: ${t=>{var e,n;return t.useImgColors?`repeating-linear-gradient(${t==null?void 0:t.chartBackground[0]} 0 1px,transparent 1px 100%),
  repeating-linear-gradient(90deg,${t==null?void 0:t.chartBackground[2]} 0 12px,${t==null?void 0:t.chartBackground[0]}2px 100%)`:(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.gridColumnsBg}};
  backdrop-filter: blur(100px);
  background-size: ${t=>`calc(((100% - 10px) / ${t.breakPoint} ))`};
  flex: 1;
  .alertMessageBlock {
    cursor: move;
    img {
      pointer-events: none;
    }
  }
  .editableGrid {
    z-index: 99999999;
  }
`,DOo=f1e.WidthProvider(f1e.Responsive),$Oo=t=>{const e=QM(),{handleDrag:n,isLayoutEditable:r,loading:a}=t,[o,s]=Y.useState(!1),l=jga(),c=nit(),u=thn(),d=Yga(),h=zga(),f=_p(),{chartBackground:p,useImgColors:m}=f;Z1a(QLe),Y.useEffect(()=>{QLe(XL(window.innerWidth))},[]),Y.useEffect(()=>{s(!0),window.location.href.includes(Qt.landingPage)||!e.dashboardId&&xhn([])},[]);const g=x=>{QLe(x)},v=(x,w)=>{u&&(Nva({...u,...w},x,!!(u!=null&&u.visualId)),git(null),qLe())},A=Y.useMemo(()=>Ft.map(c,(x,w)=>E.jsx("div",{"data-grid":x,"data-item":JSON.stringify(x),className:`${window.location.href.includes("ZKPay")&&"zkPayDashboardWidgetWidth"}`,children:E.jsx(szn,{isLayoutEditable:r,item:x,index:w})},w.toString())),[c]),y=Y.useCallback(x=>{const w=x.find(_=>_.i==="__dropping-elem__");x.length>0&&!w&&qva(x)},[]),S=jan;return a||d?E.jsx(Ep,{}):E.jsx(BOo,{breakPoint:S[h],className:"gridContainer",useImgColors:m,chartBackground:p,children:E.jsx(DOo,{layouts:l,breakpoints:pgi,onLayoutChange:y,cols:S,onDrag:n,className:"dragContainer",draggableCancel:".no-drag",onBreakpointChange:g,onDrop:v,rowHeight:dnt,useCSSTransforms:o,onDragStop:()=>qLe(),onResizeStop:()=>qLe(),compactType:"vertical",preventCollision:!1,breakpoint:h,isDroppable:r,isDraggable:r,isResizable:r,children:A})})},BGn=ke.memo($Oo),FOo=gt.div`
  .fieldLabel {
    display: block;
    margin-bottom: 12px;
  }
  ul.itemList {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  ul.itemList li + li {
    margin-top: 12px;
  }
  ul.itemList li {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.thumbnailBg}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    padding: 12px 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    cursor: move;
  }
  ul.itemList li .left {
    flex: 1;
    padding-right: 8px;
    display: flex;
    align-items: center;
    opacity: 0.8;
  }
  ul.itemList li .left .icon {
    margin-right: 12px;
  }

  ul.itemList li .right span {
    background: ${t=>t.theme.custom.tags.bg1};
    color: ${t=>t.theme.custom.violet};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    padding: 3px 6px;
    border-radius: 4px;
  }
  .divider-style {
    border-width: 1;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.06);
    border-bottom-width: thin;
    margin: 16px 0px;
  }
  .itemList {
  }
  .fileSelect {
    .errorMsg {
      color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
      padding-top: 4px;
    }
    .customFileInput {
      width: 100%;
      max-width: 100%;
      border-radius: 8px;
      border: 1px solid #675b8c;
      &.loading {
        cursor: not-allowed;
        input {
          pointer-events: none;
        }
        .fileName {
          padding: 0;
          img {
            height: 42px;
          }
        }
      }
      .fileName {
        padding: 12px 16px;
        background: transparent;
        border-radius: 8px;
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
        span {
          color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
          margin-left: 10px;
        }
      }
    }
  }
  .selectedFileName {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    span {
      width: 100%;
      margin-right: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .MuiButton-root {
      padding: 0;
      height: unset;
    }
  }
  .colorCheckbox {
    .MuiFormControlLabel-root {
      margin-bottom: 0;
    }
  }
  .paletteListing {
    margin-top: 16px;
    .blockTitle {
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
      font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
      margin-bottom: 14px;
    }
    .listingBox {
      background: ${t=>t.theme.custom.secondaryBg};
      box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
      border-radius: 8px;
      padding: 15px 20px;
      .listTitle {
        margin-bottom: 8px;
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
        .imgColorHead {
          margin-left: 20px;
        }
      }
      ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
      }
    }
  }
`,jOo=gt.div`
  background: ${t=>t.theme.custom.secondaryBg};
  box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
  padding: 16px;
  border-radius: 8px;
  .tagInput {
    .MuiFormControl-root {
      margin-bottom: 8px;
    }
  }
  .MuiFormControl-root,
  .tagList {
    margin-bottom: 20px;
  }
  .descriptionField {
    margin-bottom: 20px;
    .title {
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
      margin-bottom: 8px;
    }
  }
  .isPublicCheck {
    border: 1px solid #675b8c;
    border-radius: 8px;
    &.disabled {
      cursor: not-allowed;
    }
    button {
      border: 0;
      &.MuiButton-containedPrimary:hover {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
      }
      &.MuiButton-containedSecondary {
        background: transparent;
      }
      + button {
        margin-left: 0;
        border-left: 1px solid #675b8c;
      }
    }
  }
  .slugInputField {
    margin-top: 20px;
    .MuiFormControl-root {
      .MuiOutlinedInput-root {
        .MuiInputAdornment-root {
          background: transparent;
          .MuiIconButton-root {
            border: 0;
            height: 24px;
            width: 24px;
            box-shadow: unset;
          }
        }
      }
    }
  }
  .textContent {
    background: ${t=>t.theme.custom.inputBg};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
    padding: 6px 4px 3px 16px;
    .textArea {
      min-height: 84px;
      max-height: 84px;
    }
  }
  .MuiButtonGroup-root {
    .MuiButtonBase-root {
      padding: 5px 12px;
    }
  }
`,K9e=gt.li`
  position: relative;
  &.defaltColor {
    .colorValue {
      span {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
      }
    }
    input:checked ~ .colorValue {
      border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}}4d;
    }
  }
  .colorValue {
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    text-transform: uppercase;
    position: relative;
    span {
      height: 24px;
      width: 24px;
      border-radius: 50%;
      background: rgb(${t=>t.bgColor});
      border: 1px solid rgba(115, 104, 149, 0.5);
      box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.25);
    }
    .checkIcon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      display: none;
    }
  }
  input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    z-index: 1;
    &:checked ~ .colorValue {
      border-color: rgb(${t=>t.bgColor});
      background: rgba(${t=>t.bgColor}, 0.3);
      span {
        border: 0;
        box-shadow: unset;
      }
      .checkIcon {
        display: block;
      }
    }
  }
  &:first-child {
    padding-right: 14px;
    border-right: 1px solid rgba(230, 230, 230, 0.06);
  }
  &:not(:first-child) {
    margin-left: 10px;
  }
`,HOo=({children:t,name:e,type:n})=>E.jsx("li",{className:"droppableElement",draggable:!0,unselectable:"on",onDragStart:async()=>{await git({id:`${e}-${O0.uuid()}`,name:e,type:n,metadata:{}})},children:t}),Y6t=new Set(["Deserialize","Serialize","Retry","Sign"]);class $ye{constructor(e){var n;this._policies=[],this._policies=(n=e==null?void 0:e.slice(0))!==null&&n!==void 0?n:[],this._orderedPolicies=void 0}addPolicy(e,n={}){if(n.phase&&n.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(n.phase&&!Y6t.has(n.phase))throw new Error(`Invalid phase name: ${n.phase}`);if(n.afterPhase&&!Y6t.has(n.afterPhase))throw new Error(`Invalid afterPhase name: ${n.afterPhase}`);this._policies.push({policy:e,options:n}),this._orderedPolicies=void 0}removePolicy(e){const n=[];return this._policies=this._policies.filter(r=>e.name&&r.policy.name===e.name||e.phase&&r.options.phase===e.phase?(n.push(r.policy),!1):!0),this._orderedPolicies=void 0,n}sendRequest(e,n){return this.getOrderedPolicies().reduceRight((o,s)=>l=>s.sendRequest(l,o),o=>e.sendRequest(o))(n)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new $ye(this._policies)}static create(){return new $ye}orderPolicies(){const e=[],n=new Map;function r(m){return{name:m,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}const a=r("Serialize"),o=r("None"),s=r("Deserialize"),l=r("Retry"),c=r("Sign"),u=[a,o,s,l,c];function d(m){return m==="Retry"?l:m==="Serialize"?a:m==="Deserialize"?s:m==="Sign"?c:o}for(const m of this._policies){const g=m.policy,v=m.options,A=g.name;if(n.has(A))throw new Error("Duplicate policy names not allowed in pipeline");const y={policy:g,dependsOn:new Set,dependants:new Set};v.afterPhase&&(y.afterPhase=d(v.afterPhase),y.afterPhase.hasAfterPolicies=!0),n.set(A,y),d(v.phase).policies.add(y)}for(const m of this._policies){const{policy:g,options:v}=m,A=g.name,y=n.get(A);if(!y)throw new Error(`Missing node for policy ${A}`);if(v.afterPolicies)for(const S of v.afterPolicies){const x=n.get(S);x&&(y.dependsOn.add(x),x.dependants.add(y))}if(v.beforePolicies)for(const S of v.beforePolicies){const x=n.get(S);x&&(x.dependsOn.add(y),y.dependants.add(x))}}function h(m){m.hasRun=!0;for(const g of m.policies)if(!(g.afterPhase&&(!g.afterPhase.hasRun||g.afterPhase.policies.size))&&g.dependsOn.size===0){e.push(g.policy);for(const v of g.dependants)v.dependsOn.delete(g);n.delete(g.policy.name),m.policies.delete(g)}}function f(){for(const m of u){if(h(m),m.policies.size>0&&m!==o){o.hasRun||h(o);return}m.hasAfterPolicies&&h(o)}}let p=0;for(;n.size>0;){p++;const m=e.length;if(f(),e.length<=m&&p>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}}function DGn(){return $ye.create()}function UOo(...t){if(t.length>0){const e=String(t[0]);e.includes(":error")?console.error(...t):e.includes(":warning")?console.warn(...t):e.includes(":info")?console.info(...t):e.includes(":verbose")?console.debug(...t):console.debug(...t)}}const J6t=typeof wa<"u"&&wa.env&&{}.DEBUG||void 0;let $Gn,PQe=[],OQe=[];const Fye=[];J6t&&Ect(J6t);const FGn=Object.assign(t=>jGn(t),{enable:Ect,enabled:Sct,disable:zOo,log:UOo});function Ect(t){$Gn=t,PQe=[],OQe=[];const e=/\*/g,n=t.split(",").map(r=>r.trim().replace(e,".*?"));for(const r of n)r.startsWith("-")?OQe.push(new RegExp(`^${r.substr(1)}$`)):PQe.push(new RegExp(`^${r}$`));for(const r of Fye)r.enabled=Sct(r.namespace)}function Sct(t){if(t.endsWith("*"))return!0;for(const e of OQe)if(e.test(t))return!1;for(const e of PQe)if(e.test(t))return!0;return!1}function zOo(){const t=$Gn||"";return Ect(""),t}function jGn(t){const e=Object.assign(n,{enabled:Sct(t),destroy:GOo,log:FGn.log,namespace:t,extend:VOo});function n(...r){e.enabled&&(r.length>0&&(r[0]=`${t} ${r[0]}`),e.log(...r))}return Fye.push(e),e}function GOo(){const t=Fye.indexOf(this);return t>=0?(Fye.splice(t,1),!0):!1}function VOo(t){const e=jGn(`${this.namespace}:${t}`);return e.log=this.log,e}const $re=FGn,HGn=new Set,dfe=typeof wa<"u"&&wa.env&&{}.AZURE_LOG_LEVEL||void 0;let LQe;const BQe=$re("azure");BQe.log=(...t)=>{$re.log(...t)};const wct=["verbose","info","warning","error"];dfe&&(GGn(dfe)?KOo(dfe):console.error(`AZURE_LOG_LEVEL set to unknown log level '${dfe}'; logging is not enabled. Acceptable values: ${wct.join(", ")}.`));function KOo(t){if(t&&!GGn(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${wct.join(",")}`);LQe=t;const e=[];for(const n of HGn)zGn(n)&&e.push(n.namespace);$re.enable(e.join(","))}const Z6t={verbose:400,info:300,warning:200,error:100};function dCe(t){const e=BQe.extend(t);return UGn(BQe,e),{error:hfe(e,"error"),warning:hfe(e,"warning"),info:hfe(e,"info"),verbose:hfe(e,"verbose")}}function UGn(t,e){e.log=(...n)=>{t.log(...n)}}function hfe(t,e){const n=Object.assign(t.extend(e),{level:e});if(UGn(t,n),zGn(n)){const r=$re.disable();$re.enable(r+","+n.namespace)}return HGn.add(n),n}function zGn(t){return!!(LQe&&Z6t[t.level]<=Z6t[LQe])}function GGn(t){return wct.includes(t)}const oK=dCe("core-rest-pipeline");let hCe=class extends Error{constructor(e){super(e),this.name="AbortError"}};function WOo(t,e){const{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:a}=e??{};return new Promise((o,s)=>{function l(){s(new hCe(a??"The operation was aborted."))}function c(){r==null||r.removeEventListener("abort",u)}function u(){n==null||n(),c(),l()}if(r!=null&&r.aborted)return l();try{t(d=>{c(),o(d)},d=>{c(),s(d)})}catch(d){s(d)}r==null||r.addEventListener("abort",u)})}const QOo="The delay was aborted.";function qOo(t,e){let n;const{abortSignal:r,abortErrorMsg:a}=e??{};return WOo(o=>{n=setTimeout(o,t)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:a??QOo})}function YOo(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}function VGn(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function _ct(t){if(VGn(t)){const e=typeof t.name=="string",n=typeof t.message=="string";return e&&n}return!1}function jse(t){if(_ct(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function cB(t,e){switch(e){case"utf-8":return JOo(t);case"base64":return KGn(t);case"base64url":return ZOo(t);case"hex":return XOo(t)}}function JOo(t){return new TextEncoder().encode(t)}function KGn(t){return new Uint8Array([...atob(t)].map(e=>e.charCodeAt(0)))}function ZOo(t){const e=t.replace(/-/g,"+").replace(/_/g,"/");return KGn(e)}const X6t=new Set("0123456789abcdefABCDEF");function XOo(t){const e=new Uint8Array(t.length/2);for(let n=0;n<t.length/2;++n){const r=t[2*n],a=t[2*n+1];if(!X6t.has(r)||!X6t.has(a))return e.slice(0,n);e[n]=parseInt(`${r}${a}`,16)}return e}function e4o(){let t="";for(let e=0;e<32;e++){const n=Math.floor(Math.random()*16);e===12?t+="4":e===16?t+=n&3|8:t+=n.toString(16),(e===7||e===11||e===15||e===19)&&(t+="-")}return t}var W9e;const t4o=typeof((W9e=globalThis==null?void 0:globalThis.crypto)===null||W9e===void 0?void 0:W9e.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):e4o;function bz(){return t4o()}var Q9e,q9e,Y9e,J9e;typeof self=="object"&&typeof(self==null?void 0:self.importScripts)=="function"&&(((Q9e=self.constructor)===null||Q9e===void 0?void 0:Q9e.name)==="DedicatedWorkerGlobalScope"||((q9e=self.constructor)===null||q9e===void 0?void 0:q9e.name)==="ServiceWorkerGlobalScope"||((Y9e=self.constructor)===null||Y9e===void 0||Y9e.name));typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";typeof Bun<"u"&&typeof Bun.version<"u";const jye=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!(!((J9e=globalThis.process.versions)===null||J9e===void 0)&&J9e.node),qh=jye,Z9e="REDACTED",n4o=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],r4o=["api-version"];class WGn{constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:n=[]}={}){e=n4o.concat(e),n=r4o.concat(n),this.allowedHeaderNames=new Set(e.map(r=>r.toLowerCase())),this.allowedQueryParameters=new Set(n.map(r=>r.toLowerCase()))}sanitize(e){const n=new Set;return JSON.stringify(e,(r,a)=>{if(a instanceof Error)return Object.assign(Object.assign({},a),{name:a.name,message:a.message});if(r==="headers")return this.sanitizeHeaders(a);if(r==="url")return this.sanitizeUrl(a);if(r==="query")return this.sanitizeQuery(a);if(r==="body")return;if(r==="response")return;if(r==="operationSpec")return;if(Array.isArray(a)||VGn(a)){if(n.has(a))return"[Circular]";n.add(a)}return a},2)}sanitizeHeaders(e){const n={};for(const r of Object.keys(e))this.allowedHeaderNames.has(r.toLowerCase())?n[r]=e[r]:n[r]=Z9e;return n}sanitizeQuery(e){if(typeof e!="object"||e===null)return e;const n={};for(const r of Object.keys(e))this.allowedQueryParameters.has(r.toLowerCase())?n[r]=e[r]:n[r]=Z9e;return n}sanitizeUrl(e){if(typeof e!="string"||e===null)return e;const n=new URL(e);if(!n.search)return e;for(const[r]of n.searchParams)this.allowedQueryParameters.has(r.toLowerCase())||n.searchParams.set(r,Z9e);return n.toString()}}const i4o="logPolicy";function a4o(t={}){var e;const n=(e=t.logger)!==null&&e!==void 0?e:oK.info,r=new WGn({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:i4o,async sendRequest(a,o){if(!n.enabled)return o(a);n(`Request: ${r.sanitize(a)}`);const s=await o(a);return n(`Response status code: ${s.status}`),n(`Headers: ${r.sanitize(s.headers)}`),s}}}const QGn="redirectPolicy",e8t=["GET","HEAD"];function o4o(t={}){const{maxRetries:e=20}=t;return{name:QGn,async sendRequest(n,r){const a=await r(n);return qGn(r,a,e)}}}async function qGn(t,e,n,r=0){const{request:a,status:o,headers:s}=e,l=s.get("location");if(l&&(o===300||o===301&&e8t.includes(a.method)||o===302&&e8t.includes(a.method)||o===303&&a.method==="POST"||o===307)&&r<n){const c=new URL(l,a.url);a.url=c.toString(),o===303&&(a.method="GET",a.headers.delete("Content-Length"),delete a.body),a.headers.delete("Authorization");const u=await t(a);return qGn(t,u,n,r+1)}return e}function s4o(){return"x-ms-useragent"}function l4o(t){var e,n,r;const a=globalThis.navigator;t.set("OS",((r=(n=(e=a==null?void 0:a.userAgentData)===null||e===void 0?void 0:e.platform)!==null&&n!==void 0?n:a==null?void 0:a.platform)!==null&&r!==void 0?r:"unknown").replace(" ",""))}const YGn="1.16.0",DQe=3;function c4o(t){const e=[];for(const[n,r]of t){const a=r?`${n}/${r}`:n;e.push(a)}return e.join(" ")}function u4o(){return s4o()}function JGn(t){const e=new Map;e.set("core-rest-pipeline",YGn),l4o(e);const n=c4o(e);return t?`${t} ${n}`:n}const t8t=u4o(),d4o="userAgentPolicy";function h4o(t={}){const e=JGn(t.userAgentPrefix);return{name:d4o,async sendRequest(n,r){return n.headers.has(t8t)||n.headers.set(t8t,e),r(n)}}}function ZGn(t){return!!(t&&typeof t.pipe=="function")}function Tct(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function f4o(t){return typeof t.stream=="function"}const XGn=Symbol("rawContent");function p4o(t){return typeof t[XGn]=="function"}function m4o(t){return p4o(t)?t[XGn]():t.stream()}function g4o(t){return new Response(t).blob()}async function eVn(t){if(t instanceof Blob||t instanceof Uint8Array)return t;if(Tct(t))return g4o(t);const e=m4o(t);if(ZGn(e))throw new Error("Encountered unexpected type. In the browser, `concat` supports Web ReadableStream, Blob, Uint8Array, and files created using `createFile` only.");return eVn(e)}async function v4o(t){const e=[];for(const n of t)e.push(await eVn(typeof n=="function"?n():n));return new Blob(e)}function A4o(){return`----AzSDKFormBoundary${bz()}`}function y4o(t){let e="";for(const[n,r]of t)e+=`${n}: ${r}\r
`;return e}function b4o(t){return t instanceof Uint8Array?t.byteLength:f4o(t)?t.size===-1?void 0:t.size:void 0}function x4o(t){let e=0;for(const n of t){const r=b4o(n);if(r===void 0)return;e+=r}return e}async function E4o(t,e,n){const r=[cB(`--${n}`,"utf-8"),...e.flatMap(o=>[cB(`\r
`,"utf-8"),cB(y4o(o.headers),"utf-8"),cB(`\r
`,"utf-8"),o.body,cB(`\r
--${n}`,"utf-8")]),cB(`--\r
\r
`,"utf-8")],a=x4o(r);a&&t.headers.set("Content-Length",a),t.body=await v4o(r)}const tVn="multipartPolicy",S4o=70,w4o=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function _4o(t){if(t.length>S4o)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!w4o.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function T4o(){return{name:tVn,async sendRequest(t,e){var n;if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary;const a=(n=t.headers.get("Content-Type"))!==null&&n!==void 0?n:"multipart/mixed",o=a.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${a}`);const[,s,l]=o;if(l&&r&&l!==r)throw new Error(`Multipart boundary was specified as ${l} in the header, but got ${r} in the request body`);return r??(r=l),r?_4o(r):r=A4o(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await E4o(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}const C4o="decompressResponsePolicy";function k4o(){throw new Error("decompressResponsePolicy is not supported in browser environment")}const R4o="The operation was aborted.";function nVn(t,e,n){return new Promise((r,a)=>{let o,s;const l=()=>a(new hCe(n!=null&&n.abortErrorMsg?n==null?void 0:n.abortErrorMsg:R4o)),c=()=>{n!=null&&n.abortSignal&&s&&n.abortSignal.removeEventListener("abort",s)};if(s=()=>(o&&clearTimeout(o),c(),l()),n!=null&&n.abortSignal&&n.abortSignal.aborted)return l();o=setTimeout(()=>{c(),r(e)},t),n!=null&&n.abortSignal&&n.abortSignal.addEventListener("abort",s)})}function M4o(t,e){const n=t.headers.get(e);if(!n)return;const r=Number(n);if(!Number.isNaN(r))return r}const $Qe="Retry-After",N4o=["retry-after-ms","x-ms-retry-after-ms",$Qe];function rVn(t){if(t&&[429,503].includes(t.status))try{for(const a of N4o){const o=M4o(t,a);if(o===0||o)return o*(a===$Qe?1e3:1)}const e=t.headers.get($Qe);if(!e)return;const r=Date.parse(e)-Date.now();return Number.isFinite(r)?Math.max(0,r):void 0}catch{return}}function I4o(t){return Number.isFinite(rVn(t))}function P4o(){return{name:"throttlingRetryStrategy",retry({response:t}){const e=rVn(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}const O4o=1e3,L4o=1e3*64;function B4o(t={}){var e,n;const r=(e=t.retryDelayInMs)!==null&&e!==void 0?e:O4o,a=(n=t.maxRetryDelayInMs)!==null&&n!==void 0?n:L4o;let o=r;return{name:"exponentialRetryStrategy",retry({retryCount:s,response:l,responseError:c}){const u=$4o(c),d=u&&t.ignoreSystemErrors,h=D4o(l),f=h&&t.ignoreHttpStatusCodes;if(l&&(I4o(l)||!h)||f||d)return{skipStrategy:!0};if(c&&!u&&!h)return{errorToThrow:c};const m=o*Math.pow(2,s),g=Math.min(a,m);return o=g/2+YOo(0,g/2),{retryAfterInMs:o}}}}function D4o(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}function $4o(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}const n8t=dCe("core-rest-pipeline retryPolicy"),F4o="retryPolicy";function j4o(t,e={maxRetries:DQe}){const n=e.logger||n8t;return{name:F4o,async sendRequest(r,a){var o,s;let l,c,u=-1;e:for(;;){u+=1,l=void 0,c=void 0;try{n.info(`Retry ${u}: Attempting to send request`,r.requestId),l=await a(r),n.info(`Retry ${u}: Received a response from request`,r.requestId)}catch(d){if(n.error(`Retry ${u}: Received an error from request`,r.requestId),c=d,!d||c.name!=="RestError")throw d;l=c.response}if(!((o=r.abortSignal)===null||o===void 0)&&o.aborted)throw n.error(`Retry ${u}: Request aborted.`),new hCe;if(u>=((s=e.maxRetries)!==null&&s!==void 0?s:DQe)){if(n.info(`Retry ${u}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),c)throw c;if(l)return l;throw new Error("Maximum retries reached with no response or error to throw")}n.info(`Retry ${u}: Processing ${t.length} retry strategies.`);t:for(const d of t){const h=d.logger||n8t;h.info(`Retry ${u}: Processing retry strategy ${d.name}.`);const f=d.retry({retryCount:u,response:l,responseError:c});if(f.skipStrategy){h.info(`Retry ${u}: Skipped.`);continue t}const{errorToThrow:p,retryAfterInMs:m,redirectTo:g}=f;if(p)throw h.error(`Retry ${u}: Retry strategy ${d.name} throws error:`,p),p;if(m||m===0){h.info(`Retry ${u}: Retry strategy ${d.name} retries after ${m}`),await nVn(m,void 0,{abortSignal:r.abortSignal});continue e}if(g){h.info(`Retry ${u}: Retry strategy ${d.name} redirects to ${g}`),r.url=g;continue e}}if(c)throw n.info("None of the retry strategies could work with the received error. Throwing it."),c;if(l)return n.info("None of the retry strategies could work with the received response. Returning it."),l}}}}const H4o="defaultRetryPolicy";function U4o(t={}){var e;return{name:H4o,sendRequest:j4o([P4o(),B4o(t)],{maxRetries:(e=t.maxRetries)!==null&&e!==void 0?e:DQe}).sendRequest}}function ffe(t){return t.toLowerCase()}function*z4o(t){for(const e of t.values())yield[e.name,e.value]}class G4o{constructor(e){if(this._headersMap=new Map,e)for(const n of Object.keys(e))this.set(n,e[n])}set(e,n){this._headersMap.set(ffe(e),{name:e,value:String(n).trim()})}get(e){var n;return(n=this._headersMap.get(ffe(e)))===null||n===void 0?void 0:n.value}has(e){return this._headersMap.has(ffe(e))}delete(e){this._headersMap.delete(ffe(e))}toJSON(e={}){const n={};if(e.preserveCase)for(const r of this._headersMap.values())n[r.name]=r.value;else for(const[r,a]of this._headersMap)n[r]=a.value;return n}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return z4o(this._headersMap)}}function BP(t){return new G4o(t)}const V4o="formDataPolicy";function K4o(t){var e;const n={};for(const[r,a]of t.entries())(e=n[r])!==null&&e!==void 0||(n[r]=[]),n[r].push(a);return n}function W4o(){return{name:V4o,async sendRequest(t,e){if(jye&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=K4o(t.body),t.body=void 0),t.formData){const n=t.headers.get("Content-Type");n&&n.indexOf("application/x-www-form-urlencoded")!==-1?t.body=Q4o(t.formData):await q4o(t.formData,t),t.formData=void 0}return e(t)}}}function Q4o(t){const e=new URLSearchParams;for(const[n,r]of Object.entries(t))if(Array.isArray(r))for(const a of r)e.append(n,a.toString());else e.append(n,r.toString());return e.toString()}async function q4o(t,e){const n=e.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",n??"multipart/form-data");const r=[];for(const[a,o]of Object.entries(t))for(const s of Array.isArray(o)?o:[o])if(typeof s=="string")r.push({headers:BP({"Content-Disposition":`form-data; name="${a}"`}),body:cB(s,"utf-8")});else{if(s==null||typeof s!="object")throw new Error(`Unexpected value for key ${a}: ${s}. Value should be serialized to string first.`);{const l=s.name||"blob",c=BP();c.set("Content-Disposition",`form-data; name="${a}"; filename="${l}"`),c.set("Content-Type",s.type||"application/octet-stream"),r.push({headers:c,body:s})}}e.multipartBody={parts:r}}const iVn="proxyPolicy is not supported in browser environment";function sK(){throw new Error(iVn)}function Y4o(){throw new Error(iVn)}const J4o="setClientRequestIdPolicy";function Z4o(t="x-ms-client-request-id"){return{name:J4o,async sendRequest(e,n){return e.headers.has(t)||e.headers.set(t,e.requestId),n(e)}}}const X4o="tlsPolicy";function eLo(t){return{name:X4o,sendRequest:async(e,n)=>(e.tlsSettings||(e.tlsSettings=t),n(e))}}const $ee={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function tLo(t={}){let e=new Fee(t.parentContext);return t.span&&(e=e.setValue($ee.span,t.span)),t.namespace&&(e=e.setValue($ee.namespace,t.namespace)),e}class Fee{constructor(e){this._contextMap=e instanceof Fee?new Map(e._contextMap):new Map}setValue(e,n){const r=new Fee(this);return r._contextMap.set(e,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(e){const n=new Fee(this);return n._contextMap.delete(e),n}}const X9e={instrumenterImplementation:void 0};function nLo(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{}}}function rLo(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:nLo(),tracingContext:tLo({parentContext:e.tracingContext})}),withContext(t,e,...n){return e(...n)}}}function pfe(){return X9e.instrumenterImplementation||(X9e.instrumenterImplementation=rLo()),X9e.instrumenterImplementation}function aVn(t){const{namespace:e,packageName:n,packageVersion:r}=t;function a(u,d,h){var f;const p=pfe().startSpan(u,Object.assign(Object.assign({},h),{packageName:n,packageVersion:r,tracingContext:(f=d==null?void 0:d.tracingOptions)===null||f===void 0?void 0:f.tracingContext}));let m=p.tracingContext;const g=p.span;m.getValue($ee.namespace)||(m=m.setValue($ee.namespace,e)),g.setAttribute("az.namespace",m.getValue($ee.namespace));const v=Object.assign({},d,{tracingOptions:Object.assign(Object.assign({},d==null?void 0:d.tracingOptions),{tracingContext:m})});return{span:g,updatedOptions:v}}async function o(u,d,h,f){const{span:p,updatedOptions:m}=a(u,d,f);try{const g=await s(m.tracingOptions.tracingContext,()=>Promise.resolve(h(m,p)));return p.setStatus({status:"success"}),g}catch(g){throw p.setStatus({status:"error",error:g}),g}finally{p.end()}}function s(u,d,...h){return pfe().withContext(u,d,...h)}function l(u){return pfe().parseTraceparentHeader(u)}function c(u){return pfe().createRequestHeaders(u)}return{startSpan:a,withSpan:o,withContext:s,parseTraceparentHeader:l,createRequestHeaders:c}}const iLo={},aLo=new WGn;class eE extends Error{constructor(e,n={}){super(e),this.name="RestError",this.code=n.code,this.statusCode=n.statusCode,this.request=n.request,this.response=n.response,Object.setPrototypeOf(this,eE.prototype)}[iLo](){return`RestError: ${this.message} 
 ${aLo.sanitize(this)}`}}eE.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";eE.PARSE_ERROR="PARSE_ERROR";function oVn(t){return t instanceof eE?!0:_ct(t)&&t.name==="RestError"}const oLo="tracingPolicy";function sLo(t={}){const e=JGn(t.userAgentPrefix),n=lLo();return{name:oLo,async sendRequest(r,a){var o,s;if(!n||!(!((o=r.tracingOptions)===null||o===void 0)&&o.tracingContext))return a(r);const{span:l,tracingContext:c}=(s=cLo(n,r,e))!==null&&s!==void 0?s:{};if(!l||!c)return a(r);try{const u=await n.withContext(c,a,r);return dLo(l,u),u}catch(u){throw uLo(l,u),u}}}}function lLo(){try{return aVn({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:YGn})}catch(t){oK.warning(`Error when creating the TracingClient: ${jse(t)}`);return}}function cLo(t,e,n){try{const{span:r,updatedOptions:a}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:{"http.method":e.method,"http.url":e.url,requestId:e.requestId}});if(!r.isRecording()){r.end();return}n&&r.setAttribute("http.user_agent",n);const o=t.createRequestHeaders(a.tracingOptions.tracingContext);for(const[s,l]of Object.entries(o))e.headers.set(s,l);return{span:r,tracingContext:a.tracingOptions.tracingContext}}catch(r){oK.warning(`Skipping creating a tracing span due to an error: ${jse(r)}`);return}}function uLo(t,e){try{t.setStatus({status:"error",error:_ct(e)?e:void 0}),oVn(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(n){oK.warning(`Skipping tracing span processing due to an error: ${jse(n)}`)}}function dLo(t,e){try{t.setAttribute("http.status_code",e.status);const n=e.headers.get("x-ms-request-id");n&&t.setAttribute("serviceRequestId",n),t.setStatus({status:"success"}),t.end()}catch(n){oK.warning(`Skipping tracing span processing due to an error: ${jse(n)}`)}}function hLo(t){var e;const n=DGn();return jye&&(t.tlsOptions&&n.addPolicy(eLo(t.tlsOptions)),n.addPolicy(Y4o(t.proxyOptions)),n.addPolicy(k4o())),n.addPolicy(W4o(),{beforePolicies:[tVn]}),n.addPolicy(h4o(t.userAgentOptions)),n.addPolicy(Z4o((e=t.telemetryOptions)===null||e===void 0?void 0:e.clientRequestIdHeaderName)),n.addPolicy(T4o(),{afterPhase:"Deserialize"}),n.addPolicy(U4o(t.retryOptions),{phase:"Retry"}),n.addPolicy(sLo(t.userAgentOptions),{afterPhase:"Retry"}),jye&&n.addPolicy(o4o(t.redirectOptions),{afterPhase:"Retry"}),n.addPolicy(a4o(t.loggingOptions),{afterPhase:"Sign"}),n}function fLo(t){return(typeof Blob=="function"||typeof Blob=="object")&&t instanceof Blob}class pLo{async sendRequest(e){if(new URL(e.url).protocol!=="https:"&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);if(e.proxySettings)throw new Error("HTTP proxy is not supported in browser environment");try{return await mLo(e)}catch(a){throw ALo(a,e)}}}async function mLo(t){const{abortController:e,abortControllerCleanup:n}=vLo(t);try{const r=yLo(t.headers),{streaming:a,body:o}=xLo(t),s=Object.assign(Object.assign({body:o,method:t.method,headers:r,signal:e.signal},"credentials"in Request.prototype?{credentials:t.withCredentials?"include":"same-origin"}:{}),"cache"in Request.prototype?{cache:"no-store"}:{});a&&(s.duplex="half");const l=await fetch(t.url,s);return fLo(t.body)&&t.onUploadProgress&&t.onUploadProgress({loadedBytes:t.body.size}),gLo(l,t,n)}catch(r){throw n==null||n(),r}}async function gLo(t,e,n){var r,a;const o=bLo(t),s={request:e,headers:o,status:t.status},l=Tct(t.body)?sVn(t.body,{onProgress:e.onDownloadProgress,onEnd:n}):t.body;if(!((r=e.streamResponseStatusCodes)===null||r===void 0)&&r.has(Number.POSITIVE_INFINITY)||!((a=e.streamResponseStatusCodes)===null||a===void 0)&&a.has(s.status))if(e.enableBrowserStreams)s.browserStreamBody=l??void 0;else{const c=new Response(l);s.blobBody=c.blob(),n==null||n()}else{const c=new Response(l);s.bodyAsText=await c.text(),n==null||n()}return s}function vLo(t){const e=new AbortController;let n,r;if(t.abortSignal){if(t.abortSignal.aborted)throw new hCe("The operation was aborted.");r=a=>{a.type==="abort"&&e.abort()},t.abortSignal.addEventListener("abort",r),n=()=>{var a;r&&((a=t.abortSignal)===null||a===void 0||a.removeEventListener("abort",r))}}return t.timeout>0&&setTimeout(()=>{e.abort()},t.timeout),{abortController:e,abortControllerCleanup:n}}function ALo(t,e){var n;return t&&(t==null?void 0:t.name)==="AbortError"?t:new eE(`Error sending request: ${t.message}`,{code:(n=t==null?void 0:t.code)!==null&&n!==void 0?n:eE.REQUEST_SEND_ERROR,request:e})}function yLo(t){const e=new Headers;for(const[n,r]of t)e.append(n,r);return e}function bLo(t){const e=BP();for(const[n,r]of t.headers)e.set(n,r);return e}function xLo(t){const e=typeof t.body=="function"?t.body():t.body;if(ZGn(e))throw new Error("Node streams are not supported in browser environment.");return Tct(e)?{streaming:!0,body:sVn(e,{onProgress:t.onUploadProgress})}:{streaming:!1,body:e}}function sVn(t,e={}){let n=0;const{onProgress:r,onEnd:a}=e;if(SLo(t))return t.pipeThrough(new TransformStream({transform(o,s){if(o===null){s.terminate();return}s.enqueue(o),n+=o.length,r&&r({loadedBytes:n})},flush(){a==null||a()}}));{const o=t.getReader();return new ReadableStream({async pull(s){var l;const{done:c,value:u}=await o.read();if(c||!u){a==null||a(),s.close(),o.releaseLock();return}n+=(l=u==null?void 0:u.length)!==null&&l!==void 0?l:0,s.enqueue(u),r&&r({loadedBytes:n})},cancel(s){return a==null||a(),o.cancel(s)}})}}function ELo(){return new pLo}function SLo(t){return t.pipeThrough!==void 0&&self.TransformStream!==void 0}function lVn(){return ELo()}class wLo{constructor(e){var n,r,a,o,s,l,c;this.url=e.url,this.body=e.body,this.headers=(n=e.headers)!==null&&n!==void 0?n:BP(),this.method=(r=e.method)!==null&&r!==void 0?r:"GET",this.timeout=(a=e.timeout)!==null&&a!==void 0?a:0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=(o=e.disableKeepAlive)!==null&&o!==void 0?o:!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=(s=e.withCredentials)!==null&&s!==void 0?s:!1,this.abortSignal=e.abortSignal,this.tracingOptions=e.tracingOptions,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||bz(),this.allowInsecureConnection=(l=e.allowInsecureConnection)!==null&&l!==void 0?l:!1,this.enableBrowserStreams=(c=e.enableBrowserStreams)!==null&&c!==void 0?c:!1}}function cVn(t){return new wLo(t)}const _Lo={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function TLo(t,e,n){async function r(){if(Date.now()<n)try{return await t()}catch{return null}else{const o=await t();if(o===null)throw new Error("Failed to refresh access token.");return o}}let a=await r();for(;a===null;)await nVn(e),a=await r();return a}function CLo(t,e){let n=null,r=null,a;const o=Object.assign(Object.assign({},_Lo),e),s={get isRefreshing(){return n!==null},get shouldRefresh(){var c;return!s.isRefreshing&&((c=r==null?void 0:r.expiresOnTimestamp)!==null&&c!==void 0?c:0)-o.refreshWindowInMs<Date.now()},get mustRefresh(){return r===null||r.expiresOnTimestamp-o.forcedRefreshWindowInMs<Date.now()}};function l(c,u){var d;return s.isRefreshing||(n=TLo(()=>t.getToken(c,u),o.retryIntervalInMs,(d=r==null?void 0:r.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then(f=>(n=null,r=f,a=u.tenantId,r)).catch(f=>{throw n=null,r=null,a=void 0,f})),n}return async(c,u)=>a!==u.tenantId||!!u.claims||s.mustRefresh?l(c,u):(s.shouldRefresh&&l(c,u),r)}const kLo="bearerTokenAuthenticationPolicy";async function RLo(t){const{scopes:e,getAccessToken:n,request:r}=t,a={abortSignal:r.abortSignal,tracingOptions:r.tracingOptions},o=await n(e,a);o&&t.request.headers.set("Authorization",`Bearer ${o.token}`)}function MLo(t){const e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}function Cct(t){var e;const{credential:n,scopes:r,challengeCallbacks:a}=t,o=t.logger||oK,s=Object.assign({authorizeRequest:(e=a==null?void 0:a.authorizeRequest)!==null&&e!==void 0?e:RLo,authorizeRequestOnChallenge:a==null?void 0:a.authorizeRequestOnChallenge},a),l=n?CLo(n):()=>Promise.resolve(null);return{name:kLo,async sendRequest(c,u){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await s.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:l,logger:o});let d,h;try{d=await u(c)}catch(f){h=f,d=f.response}if(s.authorizeRequestOnChallenge&&(d==null?void 0:d.status)===401&&MLo(d)&&await s.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:d,getAccessToken:l,logger:o}))return u(c);if(h)throw h;return d}}}function tE(t){const e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}const uVn="DisableKeepAlivePolicy";function NLo(){return{name:uVn,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}function ILo(t){return t.getOrderedPolicies().some(e=>e.name===uVn)}function dVn(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}function hVn(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}const Zm="$",Fre="_";function PLo(t,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||(e==null?void 0:e.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i))!==null||t===void 0||t===null)}const OLo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function LLo(t){return OLo.test(t)}const BLo=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function DLo(t){return BLo.test(t)}function $Lo(t){const e=Object.assign(Object.assign({},t.headers),t.body);return t.hasNullableType&&Object.getOwnPropertyNames(e).length===0?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?Object.assign(Object.assign({},t.headers),{body:t.body}):e}function r8t(t,e){var n,r;const a=t.parsedHeaders;if(t.request.method==="HEAD")return Object.assign(Object.assign({},a),{body:t.parsedBody});const o=e&&e.bodyMapper,s=!!(o!=null&&o.nullable),l=o==null?void 0:o.type.name;if(l==="Stream")return Object.assign(Object.assign({},a),{blobBody:t.blobBody,readableStreamBody:t.readableStreamBody});const c=l==="Composite"&&o.type.modelProperties||{},u=Object.keys(c).some(d=>c[d].serializedName==="");if(l==="Sequence"||u){const d=(n=t.parsedBody)!==null&&n!==void 0?n:[];for(const h of Object.keys(c))c[h].serializedName&&(d[h]=(r=t.parsedBody)===null||r===void 0?void 0:r[h]);if(a)for(const h of Object.keys(a))d[h]=a[h];return s&&!t.parsedBody&&!a&&Object.getOwnPropertyNames(c).length===0?null:d}return $Lo({body:t.parsedBody,headers:a,hasNullableType:s,shouldWrapBody:PLo(t.parsedBody,l)})}class FLo{constructor(e={},n=!1){this.modelMappers=e,this.isXML=n}validateConstraints(e,n,r){const a=(o,s)=>{throw new Error(`"${r}" with value "${n}" should satisfy the constraint "${o}": ${s}.`)};if(e.constraints&&n!==void 0&&n!==null){const{ExclusiveMaximum:o,ExclusiveMinimum:s,InclusiveMaximum:l,InclusiveMinimum:c,MaxItems:u,MaxLength:d,MinItems:h,MinLength:f,MultipleOf:p,Pattern:m,UniqueItems:g}=e.constraints;if(o!==void 0&&n>=o&&a("ExclusiveMaximum",o),s!==void 0&&n<=s&&a("ExclusiveMinimum",s),l!==void 0&&n>l&&a("InclusiveMaximum",l),c!==void 0&&n<c&&a("InclusiveMinimum",c),u!==void 0&&n.length>u&&a("MaxItems",u),d!==void 0&&n.length>d&&a("MaxLength",d),h!==void 0&&n.length<h&&a("MinItems",h),f!==void 0&&n.length<f&&a("MinLength",f),p!==void 0&&n%p!==0&&a("MultipleOf",p),m){const v=typeof m=="string"?new RegExp(m):m;(typeof n!="string"||n.match(v)===null)&&a("Pattern",m)}g&&n.some((v,A,y)=>y.indexOf(v)!==A)&&a("UniqueItems",g)}}serialize(e,n,r,a={xml:{}}){var o,s,l;const c={xml:{rootName:(o=a.xml.rootName)!==null&&o!==void 0?o:"",includeRoot:(s=a.xml.includeRoot)!==null&&s!==void 0?s:!1,xmlCharKey:(l=a.xml.xmlCharKey)!==null&&l!==void 0?l:Fre}};let u={};const d=e.type.name;r||(r=e.serializedName),d.match(/^Sequence$/i)!==null&&(u=[]),e.isConstant&&(n=e.defaultValue);const{required:h,nullable:f}=e;if(h&&f&&n===void 0)throw new Error(`${r} cannot be undefined.`);if(h&&!f&&n==null)throw new Error(`${r} cannot be null or undefined.`);if(!h&&f===!1&&n===null)throw new Error(`${r} cannot be null.`);return n==null||d.match(/^any$/i)!==null?u=n:d.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?u=VLo(d,r,n):d.match(/^Enum$/i)!==null?u=KLo(r,e.type.allowedValues,n):d.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?u=qLo(d,n,r):d.match(/^ByteArray$/i)!==null?u=WLo(r,n):d.match(/^Base64Url$/i)!==null?u=QLo(r,n):d.match(/^Sequence$/i)!==null?u=YLo(this,e,n,r,!!this.isXML,c):d.match(/^Dictionary$/i)!==null?u=JLo(this,e,n,r,!!this.isXML,c):d.match(/^Composite$/i)!==null&&(u=XLo(this,e,n,r,!!this.isXML,c)),u}deserialize(e,n,r,a={xml:{}}){var o,s,l,c;const u={xml:{rootName:(o=a.xml.rootName)!==null&&o!==void 0?o:"",includeRoot:(s=a.xml.includeRoot)!==null&&s!==void 0?s:!1,xmlCharKey:(l=a.xml.xmlCharKey)!==null&&l!==void 0?l:Fre},ignoreUnknownProperties:(c=a.ignoreUnknownProperties)!==null&&c!==void 0?c:!1};if(n==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(n=[]),e.defaultValue!==void 0&&(n=e.defaultValue),n;let d;const h=e.type.name;if(r||(r=e.serializedName),h.match(/^Composite$/i)!==null)d=tBo(this,e,n,r,u);else{if(this.isXML){const f=u.xml.xmlCharKey;n[Zm]!==void 0&&n[f]!==void 0&&(n=n[f])}h.match(/^Number$/i)!==null?(d=parseFloat(n),isNaN(d)&&(d=n)):h.match(/^Boolean$/i)!==null?n==="true"?d=!0:n==="false"?d=!1:d=n:h.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?d=n:h.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?d=new Date(n):h.match(/^UnixTime$/i)!==null?d=GLo(n):h.match(/^ByteArray$/i)!==null?d=hVn(n):h.match(/^Base64Url$/i)!==null?d=ULo(n):h.match(/^Sequence$/i)!==null?d=rBo(this,e,n,r,u):h.match(/^Dictionary$/i)!==null&&(d=nBo(this,e,n,r,u))}return e.isConstant&&(d=e.defaultValue),d}}function lK(t={},e=!1){return new FLo(t,e)}function jLo(t,e){let n=t.length;for(;n-1>=0&&t[n-1]===e;)--n;return t.substr(0,n)}function HLo(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");const e=dVn(t);return jLo(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}function ULo(t){if(t){if(t&&typeof t.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return t=t.replace(/-/g,"+").replace(/_/g,"/"),hVn(t)}}function FQe(t){const e=[];let n="";if(t){const r=t.split(".");for(const a of r)a.charAt(a.length-1)==="\\"?n+=a.substr(0,a.length-1)+".":(n+=a,e.push(n),n="")}return e}function zLo(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}function GLo(t){if(t)return new Date(t*1e3)}function VLo(t,e,n){if(n!=null){if(t.match(/^Number$/i)!==null){if(typeof n!="number")throw new Error(`${e} with value ${n} must be of type number.`)}else if(t.match(/^String$/i)!==null){if(typeof n.valueOf()!="string")throw new Error(`${e} with value "${n}" must be of type string.`)}else if(t.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()=="string"&&DLo(n)))throw new Error(`${e} with value "${n}" must be of type string and a valid uuid.`)}else if(t.match(/^Boolean$/i)!==null){if(typeof n!="boolean")throw new Error(`${e} with value ${n} must be of type boolean.`)}else if(t.match(/^Stream$/i)!==null){const r=typeof n;if(r!=="string"&&typeof n.pipe!="function"&&typeof n.tee!="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob=="function"||typeof Blob=="object")&&n instanceof Blob)&&r!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function KLo(t,e,n){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(a=>typeof a.valueOf()=="string"?a.toLowerCase()===n.toLowerCase():a===n))throw new Error(`${n} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return n}function WLo(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=dVn(e)}return e}function QLo(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=HLo(e)}return e}function qLo(t,e,n){if(e!=null){if(t.match(/^Date$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString().substring(0,10):new Date(e).toISOString().substring(0,10)}else if(t.match(/^DateTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString():new Date(e).toISOString()}else if(t.match(/^DateTimeRfc1123$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);e=e instanceof Date?e.toUTCString():new Date(e).toUTCString()}else if(t.match(/^UnixTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);e=zLo(e)}else if(t.match(/^TimeSpan$/i)!==null&&!LLo(e))throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}function YLo(t,e,n,r,a,o){var s;if(!Array.isArray(n))throw new Error(`${r} must be of type Array.`);let l=e.type.element;if(!l||typeof l!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);l.type.name==="Composite"&&l.type.className&&(l=(s=t.modelMappers[l.type.className])!==null&&s!==void 0?s:l);const c=[];for(let u=0;u<n.length;u++){const d=t.serialize(l,n[u],r,o);if(a&&l.xmlNamespace){const h=l.xmlNamespacePrefix?`xmlns:${l.xmlNamespacePrefix}`:"xmlns";l.type.name==="Composite"?(c[u]=Object.assign({},d),c[u][Zm]={[h]:l.xmlNamespace}):(c[u]={},c[u][o.xml.xmlCharKey]=d,c[u][Zm]={[h]:l.xmlNamespace})}else c[u]=d}return c}function JLo(t,e,n,r,a,o){if(typeof n!="object")throw new Error(`${r} must be of type object.`);const s=e.type.value;if(!s||typeof s!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}.`);const l={};for(const c of Object.keys(n)){const u=t.serialize(s,n[c],r,o);l[c]=mVn(s,u,a,o)}if(a&&e.xmlNamespace){const c=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns",u=l;return u[Zm]={[c]:e.xmlNamespace},u}return l}function ZLo(t,e,n){const r=e.type.additionalProperties;if(!r&&e.type.className){const a=fVn(t,e,n);return a==null?void 0:a.type.additionalProperties}return r}function fVn(t,e,n){const r=e.type.className;if(!r)throw new Error(`Class name for model "${n}" is not provided in the mapper "${JSON.stringify(e,void 0,2)}".`);return t.modelMappers[r]}function pVn(t,e,n){let r=e.type.modelProperties;if(!r){const a=fVn(t,e,n);if(!a)throw new Error(`mapper() cannot be null or undefined for model "${e.type.className}".`);if(r=a==null?void 0:a.type.modelProperties,!r)throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(a)}" of type "${e.type.className}" for object "${n}".`)}return r}function XLo(t,e,n,r,a,o){if(Hye(t,e)&&(e=gVn(t,e,n,"clientName")),n!=null){const s={},l=pVn(t,e,r);for(const u of Object.keys(l)){const d=l[u];if(d.readOnly)continue;let h,f=s;if(t.isXML)d.xmlIsWrapped?h=d.xmlName:h=d.xmlElementName||d.xmlName;else{const p=FQe(d.serializedName);h=p.pop();for(const m of p){const g=f[m];g==null&&(n[u]!==void 0&&n[u]!==null||d.defaultValue!==void 0)&&(f[m]={}),f=f[m]}}if(f!=null){if(a&&e.xmlNamespace){const A=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";f[Zm]=Object.assign(Object.assign({},f[Zm]),{[A]:e.xmlNamespace})}const p=d.serializedName!==""?r+"."+d.serializedName:r;let m=n[u];const g=Hye(t,e);g&&g.clientName===u&&m==null&&(m=e.serializedName);const v=t.serialize(d,m,p,o);if(v!==void 0&&h!==void 0&&h!==null){const A=mVn(d,v,a,o);a&&d.xmlIsAttribute?(f[Zm]=f[Zm]||{},f[Zm][h]=v):a&&d.xmlIsWrapped?f[h]={[d.xmlElementName]:A}:f[h]=A}}}const c=ZLo(t,e,r);if(c){const u=Object.keys(l);for(const d in n)u.every(f=>f!==d)&&(s[d]=t.serialize(c,n[d],r+'["'+d+'"]',o))}return s}return n}function mVn(t,e,n,r){if(!n||!t.xmlNamespace)return e;const o={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e[Zm])return e;{const l=Object.assign({},e);return l[Zm]=o,l}}const s={};return s[r.xml.xmlCharKey]=e,s[Zm]=o,s}function eBo(t,e){return[Zm,e.xml.xmlCharKey].includes(t)}function tBo(t,e,n,r,a){var o,s;const l=(o=a.xml.xmlCharKey)!==null&&o!==void 0?o:Fre;Hye(t,e)&&(e=gVn(t,e,n,"serializedName"));const c=pVn(t,e,r);let u={};const d=[];for(const f of Object.keys(c)){const p=c[f],m=FQe(c[f].serializedName);d.push(m[0]);const{serializedName:g,xmlName:v,xmlElementName:A}=p;let y=r;g!==""&&g!==void 0&&(y=r+"."+g);const S=p.headerCollectionPrefix;if(S){const x={};for(const w of Object.keys(n))w.startsWith(S)&&(x[w.substring(S.length)]=t.deserialize(p.type.value,n[w],y,a)),d.push(w);u[f]=x}else if(t.isXML)if(p.xmlIsAttribute&&n[Zm])u[f]=t.deserialize(p,n[Zm][v],y,a);else if(p.xmlIsMsText)n[l]!==void 0?u[f]=n[l]:typeof n=="string"&&(u[f]=n);else{const x=A||v||g;if(p.xmlIsWrapped){const w=n[v],_=(s=w==null?void 0:w[A])!==null&&s!==void 0?s:[];u[f]=t.deserialize(p,_,y,a),d.push(v)}else{const w=n[x];u[f]=t.deserialize(p,w,y,a),d.push(x)}}else{let x,w=n,_=0;for(const k of m){if(!w)break;_++,w=w[k]}w===null&&_<m.length&&(w=void 0),x=w;const C=e.type.polymorphicDiscriminator;C&&f===C.clientName&&x==null&&(x=e.serializedName);let R;if(Array.isArray(n[f])&&c[f].serializedName===""){x=n[f];const k=t.deserialize(p,x,y,a);for(const[P,N]of Object.entries(u))Object.prototype.hasOwnProperty.call(k,P)||(k[P]=N);u=k}else(x!==void 0||p.defaultValue!==void 0)&&(R=t.deserialize(p,x,y,a),u[f]=R)}}const h=e.type.additionalProperties;if(h){const f=p=>{for(const m in c)if(FQe(c[m].serializedName)[0]===p)return!1;return!0};for(const p in n)f(p)&&(u[p]=t.deserialize(h,n[p],r+'["'+p+'"]',a))}else if(n&&!a.ignoreUnknownProperties)for(const f of Object.keys(n))u[f]===void 0&&!d.includes(f)&&!eBo(f,a)&&(u[f]=n[f]);return u}function nBo(t,e,n,r,a){const o=e.type.value;if(!o||typeof o!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){const s={};for(const l of Object.keys(n))s[l]=t.deserialize(o,n[l],r,a);return s}return n}function rBo(t,e,n,r,a){var o;let s=e.type.element;if(!s||typeof s!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),s.type.name==="Composite"&&s.type.className&&(s=(o=t.modelMappers[s.type.className])!==null&&o!==void 0?o:s);const l=[];for(let c=0;c<n.length;c++)l[c]=t.deserialize(s,n[c],`${r}[${c}]`,a);return l}return n}function iBo(t,e,n){const r=[n];for(;r.length;){const a=r.shift(),o=e===a?e:a+"."+e;if(Object.prototype.hasOwnProperty.call(t,o))return t[o];for(const[s,l]of Object.entries(t))s.startsWith(a+".")&&l.type.uberParent===a&&l.type.className&&r.push(l.type.className)}}function gVn(t,e,n,r){var a;const o=Hye(t,e);if(o){let s=o[r];if(s){r==="serializedName"&&(s=s.replace(/\\/gi,""));const l=n[s],c=(a=e.type.uberParent)!==null&&a!==void 0?a:e.type.className;if(typeof l=="string"&&c){const u=iBo(t.modelMappers.discriminators,l,c);u&&(e=u)}}}return e}function Hye(t,e){return e.type.polymorphicDiscriminator||i8t(t,e.type.uberParent)||i8t(t,e.type.className)}function i8t(t,e){return e&&t.modelMappers[e]&&t.modelMappers[e].type.polymorphicDiscriminator}const SH={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"},a8t={operationRequestMap:new WeakMap};function xz(t,e,n){let r=e.parameterPath;const a=e.mapper;let o;if(typeof r=="string"&&(r=[r]),Array.isArray(r)){if(r.length>0)if(a.isConstant)o=a.defaultValue;else{let s=o8t(t,r);!s.propertyFound&&n&&(s=o8t(n,r));let l=!1;s.propertyFound||(l=a.required||r[0]==="options"&&r.length===2),o=l?a.defaultValue:s.propertyValue}}else{a.required&&(o={});for(const s in r){const l=a.type.modelProperties[s],c=r[s],u=xz(t,{parameterPath:c,mapper:l},n);u!==void 0&&(o||(o={}),o[s]=u)}}return o}function o8t(t,e){const n={propertyFound:!1};let r=0;for(;r<e.length;++r){const a=e[r];if(t&&a in t)t=t[a];else break}return r===e.length&&(n.propertyValue=t,n.propertyFound=!0),n}const vVn=Symbol.for("@azure/core-client original request");function aBo(t){return vVn in t}function cK(t){if(aBo(t))return cK(t[vVn]);let e=a8t.operationRequestMap.get(t);return e||(e={},a8t.operationRequestMap.set(t,e)),e}const oBo=["application/json","text/json"],sBo=["application/xml","application/atom+xml"],lBo="deserializationPolicy";function cBo(t={}){var e,n,r,a,o,s,l;const c=(n=(e=t.expectedContentTypes)===null||e===void 0?void 0:e.json)!==null&&n!==void 0?n:oBo,u=(a=(r=t.expectedContentTypes)===null||r===void 0?void 0:r.xml)!==null&&a!==void 0?a:sBo,d=t.parseXML,h=t.serializerOptions,f={xml:{rootName:(o=h==null?void 0:h.xml.rootName)!==null&&o!==void 0?o:"",includeRoot:(s=h==null?void 0:h.xml.includeRoot)!==null&&s!==void 0?s:!1,xmlCharKey:(l=h==null?void 0:h.xml.xmlCharKey)!==null&&l!==void 0?l:Fre}};return{name:lBo,async sendRequest(p,m){const g=await m(p);return hBo(c,u,g,f,d)}}}function uBo(t){let e;const n=t.request,r=cK(n),a=r==null?void 0:r.operationSpec;return a&&(r!=null&&r.operationResponseGetter?e=r==null?void 0:r.operationResponseGetter(a,t):e=a.responses[t.status]),e}function dBo(t){const e=t.request,n=cK(e),r=n==null?void 0:n.shouldDeserialize;let a;return r===void 0?a=!0:typeof r=="boolean"?a=r:a=r(t),a}async function hBo(t,e,n,r,a){const o=await mBo(t,e,n,r,a);if(!dBo(o))return o;const s=cK(o.request),l=s==null?void 0:s.operationSpec;if(!l||!l.responses)return o;const c=uBo(o),{error:u,shouldReturnResponse:d}=pBo(o,l,c,r);if(u)throw u;if(d)return o;if(c){if(c.bodyMapper){let h=o.parsedBody;l.isXML&&c.bodyMapper.type.name===SH.Sequence&&(h=typeof h=="object"?h[c.bodyMapper.xmlElementName]:[]);try{o.parsedBody=l.serializer.deserialize(c.bodyMapper,h,"operationRes.parsedBody",r)}catch(f){throw new eE(`Error ${f} occurred in deserializing the responseBody - ${o.bodyAsText}`,{statusCode:o.status,request:o.request,response:o})}}else l.httpMethod==="HEAD"&&(o.parsedBody=n.status>=200&&n.status<300);c.headersMapper&&(o.parsedHeaders=l.serializer.deserialize(c.headersMapper,o.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return o}function fBo(t){const e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}function pBo(t,e,n,r){var a;const o=200<=t.status&&t.status<300;if(fBo(e)?o:!!n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};const l=n??e.responses.default,c=!((a=t.request.streamResponseStatusCodes)===null||a===void 0)&&a.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,u=new eE(c,{statusCode:t.status,request:t.request,response:t});if(!l)throw u;const d=l.bodyMapper,h=l.headersMapper;try{if(t.parsedBody){const f=t.parsedBody;let p;if(d){let g=f;if(e.isXML&&d.type.name===SH.Sequence){g=[];const v=d.xmlElementName;typeof f=="object"&&v&&(g=f[v])}p=e.serializer.deserialize(d,g,"error.response.parsedBody",r)}const m=f.error||p||f;u.code=m.code,m.message&&(u.message=m.message),d&&(u.response.parsedBody=p)}t.headers&&h&&(u.response.parsedHeaders=e.serializer.deserialize(h,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(f){u.message=`Error "${f.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:u,shouldReturnResponse:!1}}async function mBo(t,e,n,r,a){var o;if(!(!((o=n.request.streamResponseStatusCodes)===null||o===void 0)&&o.has(n.status))&&n.bodyAsText){const s=n.bodyAsText,l=n.headers.get("Content-Type")||"",c=l?l.split(";").map(u=>u.toLowerCase()):[];try{if(c.length===0||c.some(u=>t.indexOf(u)!==-1))return n.parsedBody=JSON.parse(s),n;if(c.some(u=>e.indexOf(u)!==-1)){if(!a)throw new Error("Parsing XML not supported.");const u=await a(s,r.xml);return n.parsedBody=u,n}}catch(u){const d=`Error "${u}" occurred while parsing the response body - ${n.bodyAsText}.`,h=u.code||eE.PARSE_ERROR;throw new eE(d,{code:h,statusCode:n.status,request:n.request,response:n})}}return n}function gBo(t){const e=new Set;for(const n in t.responses){const r=t.responses[n];r.bodyMapper&&r.bodyMapper.type.name===SH.Stream&&e.add(Number(n))}return e}function F5(t){const{parameterPath:e,mapper:n}=t;let r;return typeof e=="string"?r=e:Array.isArray(e)?r=e.join("."):r=n.serializedName,r}const vBo="serializationPolicy";function AVn(t={}){const e=t.stringifyXML;return{name:vBo,async sendRequest(n,r){const a=cK(n),o=a==null?void 0:a.operationSpec,s=a==null?void 0:a.operationArguments;return o&&s&&(ABo(n,s,o),yBo(n,s,o,e)),r(n)}}}function ABo(t,e,n){var r,a;if(n.headerParameters)for(const s of n.headerParameters){let l=xz(e,s);if(l!=null||s.mapper.required){l=n.serializer.serialize(s.mapper,l,F5(s));const c=s.mapper.headerCollectionPrefix;if(c)for(const u of Object.keys(l))t.headers.set(c+u,l[u]);else t.headers.set(s.mapper.serializedName||F5(s),l)}}const o=(a=(r=e.options)===null||r===void 0?void 0:r.requestOptions)===null||a===void 0?void 0:a.customHeaders;if(o)for(const s of Object.keys(o))t.headers.set(s,o[s])}function yBo(t,e,n,r=function(){throw new Error("XML serialization unsupported!")}){var a,o,s,l,c;const u=(a=e.options)===null||a===void 0?void 0:a.serializerOptions,d={xml:{rootName:(o=u==null?void 0:u.xml.rootName)!==null&&o!==void 0?o:"",includeRoot:(s=u==null?void 0:u.xml.includeRoot)!==null&&s!==void 0?s:!1,xmlCharKey:(l=u==null?void 0:u.xml.xmlCharKey)!==null&&l!==void 0?l:Fre}},h=d.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){t.body=xz(e,n.requestBody);const f=n.requestBody.mapper,{required:p,serializedName:m,xmlName:g,xmlElementName:v,xmlNamespace:A,xmlNamespacePrefix:y,nullable:S}=f,x=f.type.name;try{if(t.body!==void 0&&t.body!==null||S&&t.body===null||p){const w=F5(n.requestBody);t.body=n.serializer.serialize(f,t.body,w,d);const _=x===SH.Stream;if(n.isXML){const C=y?`xmlns:${y}`:"xmlns",R=bBo(A,C,x,t.body,d);x===SH.Sequence?t.body=r(xBo(R,v||g||m,C,A),{rootName:g||m,xmlCharKey:h}):_||(t.body=r(R,{rootName:g||m,xmlCharKey:h}))}else{if(x===SH.String&&(!((c=n.contentType)===null||c===void 0)&&c.match("text/plain")||n.mediaType==="text"))return;_||(t.body=JSON.stringify(t.body))}}}catch(w){throw new Error(`Error "${w.message}" occurred in serializing the payload - ${JSON.stringify(m,void 0,"  ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){t.formData={};for(const f of n.formDataParameters){const p=xz(e,f);if(p!=null){const m=f.mapper.serializedName||F5(f);t.formData[m]=n.serializer.serialize(f.mapper,p,F5(f),d)}}}}function bBo(t,e,n,r,a){if(t&&!["Composite","Sequence","Dictionary"].includes(n)){const o={};return o[a.xml.xmlCharKey]=r,o[Zm]={[e]:t},o}return r}function xBo(t,e,n,r){if(Array.isArray(t)||(t=[t]),!n||!r)return{[e]:t};const a={[e]:t};return a[Zm]={[n]:r},a}function yVn(t={}){const e=hLo(t??{});return t.credentialOptions&&e.addPolicy(Cct({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(AVn(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(cBo(t.deserializationOptions),{phase:"Deserialize"}),e}let e$e;function EBo(){return e$e||(e$e=lVn()),e$e}const SBo={CSV:",",SSV:" ",Multi:"Multi",TSV:"	",Pipes:"|"};function wBo(t,e,n,r){const a=_Bo(e,n,r);let o=!1,s=s8t(t,a);if(e.path){let u=s8t(e.path,a);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),TBo(u)?(s=u,o=!0):s=CBo(s,u)}const{queryParams:l,sequenceParams:c}=kBo(e,n,r);return s=MBo(s,l,c,o),s}function s8t(t,e){let n=t;for(const[r,a]of e)n=n.split(r).join(a);return n}function _Bo(t,e,n){var r;const a=new Map;if(!((r=t.urlParameters)===null||r===void 0)&&r.length)for(const o of t.urlParameters){let s=xz(e,o,n);const l=F5(o);s=t.serializer.serialize(o.mapper,s,l),o.skipEncoding||(s=encodeURIComponent(s)),a.set(`{${o.mapper.serializedName||l}}`,s)}return a}function TBo(t){return t.includes("://")}function CBo(t,e){if(!e)return t;const n=new URL(t);let r=n.pathname;r.endsWith("/")||(r=`${r}/`),e.startsWith("/")&&(e=e.substring(1));const a=e.indexOf("?");if(a!==-1){const o=e.substring(0,a),s=e.substring(a+1);r=r+o,s&&(n.search=n.search?`${n.search}&${s}`:s)}else r=r+e;return n.pathname=r,n.toString()}function kBo(t,e,n){var r;const a=new Map,o=new Set;if(!((r=t.queryParameters)===null||r===void 0)&&r.length)for(const s of t.queryParameters){s.mapper.type.name==="Sequence"&&s.mapper.serializedName&&o.add(s.mapper.serializedName);let l=xz(e,s,n);if(l!=null||s.mapper.required){l=t.serializer.serialize(s.mapper,l,F5(s));const c=s.collectionFormat?SBo[s.collectionFormat]:"";if(Array.isArray(l)&&(l=l.map(u=>u??"")),s.collectionFormat==="Multi"&&l.length===0)continue;Array.isArray(l)&&(s.collectionFormat==="SSV"||s.collectionFormat==="TSV")&&(l=l.join(c)),s.skipEncoding||(Array.isArray(l)?l=l.map(u=>encodeURIComponent(u)):l=encodeURIComponent(l)),Array.isArray(l)&&(s.collectionFormat==="CSV"||s.collectionFormat==="Pipes")&&(l=l.join(c)),a.set(s.mapper.serializedName||F5(s),l)}}return{queryParams:a,sequenceParams:o}}function RBo(t){const e=new Map;if(!t||t[0]!=="?")return e;t=t.slice(1);const n=t.split("&");for(const r of n){const[a,o]=r.split("=",2),s=e.get(a);s?Array.isArray(s)?s.push(o):e.set(a,[s,o]):e.set(a,o)}return e}function MBo(t,e,n,r=!1){if(e.size===0)return t;const a=new URL(t),o=RBo(a.search);for(const[l,c]of e){const u=o.get(l);if(Array.isArray(u))if(Array.isArray(c)){u.push(...c);const d=new Set(u);o.set(l,Array.from(d))}else u.push(c);else u?(Array.isArray(c)?c.unshift(u):n.has(l)&&o.set(l,[u,c]),r||o.set(l,c)):o.set(l,c)}const s=[];for(const[l,c]of o)if(typeof c=="string")s.push(`${l}=${c}`);else if(Array.isArray(c))for(const u of c)s.push(`${l}=${u}`);else s.push(`${l}=${c}`);return a.search=s.length?`?${s.join("&")}`:"",a.toString()}const NBo=dCe("core-client");class IBo{constructor(e={}){var n,r;if(this._requestContentType=e.requestContentType,this._endpoint=(n=e.endpoint)!==null&&n!==void 0?n:e.baseUri,e.baseUri&&NBo.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||EBo(),this.pipeline=e.pipeline||PBo(e),!((r=e.additionalPolicies)===null||r===void 0)&&r.length)for(const{policy:a,position:o}of e.additionalPolicies){const s=o==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(a,{afterPhase:s})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,n){const r=n.baseUrl||this._endpoint;if(!r)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");const a=wBo(r,n,e,this),o=cVn({url:a});o.method=n.httpMethod;const s=cK(o);s.operationSpec=n,s.operationArguments=e;const l=n.contentType||this._requestContentType;l&&n.requestBody&&o.headers.set("Content-Type",l);const c=e.options;if(c){const u=c.requestOptions;u&&(u.timeout&&(o.timeout=u.timeout),u.onUploadProgress&&(o.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(o.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(s.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(o.allowInsecureConnection=!0)),c.abortSignal&&(o.abortSignal=c.abortSignal),c.tracingOptions&&(o.tracingOptions=c.tracingOptions)}this._allowInsecureConnection&&(o.allowInsecureConnection=!0),o.streamResponseStatusCodes===void 0&&(o.streamResponseStatusCodes=gBo(n));try{const u=await this.sendRequest(o),d=r8t(u,n.responses[u.status]);return c!=null&&c.onResponse&&c.onResponse(u,d),d}catch(u){if(typeof u=="object"&&(u!=null&&u.response)){const d=u.response,h=r8t(d,n.responses[u.statusCode]||n.responses.default);u.details=h,c!=null&&c.onResponse&&c.onResponse(d,h,u)}throw u}}}function PBo(t){const e=OBo(t),n=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return yVn(Object.assign(Object.assign({},t),{credentialOptions:n}))}function OBo(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}const bVn={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function LBo(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}const xVn=async t=>{const e=jBo(t.request),n=$Bo(t.response);if(n){const r=FBo(n),a=DBo(t,r),o=BBo(r);if(!o)return!1;const s=await t.getAccessToken(a,Object.assign(Object.assign({},e),{tenantId:o}));return s?(t.request.headers.set(bVn.HeaderConstants.AUTHORIZATION,`Bearer ${s.token}`),!0):!1}return!1};function BBo(t){const r=new URL(t.authorization_uri).pathname.split("/")[1];if(r&&LBo(r))return r}function DBo(t,e){if(!e.resource_id)return t.scopes;const n=new URL(e.resource_id);n.pathname=bVn.DefaultScope;let r=n.toString();return r==="https://disk.azure.com/.default"&&(r="https://disk.azure.com//.default"),[r]}function $Bo(t){const e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}function FBo(t){return`${t.slice(7).trim()} `.split(" ").filter(a=>a).map(a=>(([o,s])=>({[o]:s}))(a.trim().split("="))).reduce((a,o)=>Object.assign(Object.assign({},a),o),{})}function jBo(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}const EVn=Symbol("Original PipelineRequest"),HBo=Symbol.for("@azure/core-client original request");function kct(t,e={}){const r=t[EVn],a=BP(t.headers.toJson({preserveCase:!0}));if(r)return r.headers=a,r;{const o=cVn({url:t.url,method:t.method,headers:a,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes});return e.originalRequest&&(o[HBo]=e.originalRequest),o}}function fCe(t,e){var n;const r=(n=e==null?void 0:e.originalRequest)!==null&&n!==void 0?n:t,a={url:t.url,method:t.method,headers:Rct(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e!=null&&e.createProxy?new Proxy(a,{get(o,s,l){return s===EVn?t:s==="clone"?()=>fCe(kct(a,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(o,s,l)},set(o,s,l,c){return s==="keepAlive"&&(t.disableKeepAlive=!l),typeof s=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes"].includes(s)&&(t[s]=l),Reflect.set(o,s,l,c)}}):a}function Rct(t){return new Mct(t.toJSON({preserveCase:!0}))}function vY(t){return t.toLowerCase()}class Mct{constructor(e){if(this._headersMap={},e)for(const n in e)this.set(n,e[n])}set(e,n){this._headersMap[vY(e)]={name:e,value:n.toString()}}get(e){const n=this._headersMap[vY(e)];return n?n.value:void 0}contains(e){return!!this._headersMap[vY(e)]}remove(e){const n=this.contains(e);return delete this._headersMap[vY(e)],n}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){const e=[];for(const n in this._headersMap)e.push(this._headersMap[n]);return e}headerNames(){const e=[],n=this.headersArray();for(let r=0;r<n.length;++r)e.push(n[r].name);return e}headerValues(){const e=[],n=this.headersArray();for(let r=0;r<n.length;++r)e.push(n[r].value);return e}toJson(e={}){const n={};if(e.preserveCase)for(const r in this._headersMap){const a=this._headersMap[r];n[a.name]=a.value}else for(const r in this._headersMap){const a=this._headersMap[r];n[vY(a.name)]=a.value}return n}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){const e={};for(const n in this._headersMap){const r=this._headersMap[n];e[r.name]=r.value}return new Mct(e)}}const SVn=Symbol("Original FullOperationResponse");function wVn(t,e){let n=fCe(t.request),r=Rct(t.headers);return e!=null&&e.createProxy?new Proxy(t,{get(a,o,s){return o==="headers"?r:o==="request"?n:o===SVn?t:Reflect.get(a,o,s)},set(a,o,s,l){return o==="headers"?r=s:o==="request"&&(n=s),Reflect.set(a,o,s,l)}}):Object.assign(Object.assign({},t),{request:n,headers:r})}function _Vn(t){const n=t[SVn],r=BP(t.headers.toJson({preserveCase:!0}));return n?(n.headers=r,n):Object.assign(Object.assign({},t),{headers:r,request:kct(t.request)})}class UBo extends IBo{constructor(e){var n,r;super(e),((n=e.keepAliveOptions)===null||n===void 0?void 0:n.enable)===!1&&!ILo(this.pipeline)&&this.pipeline.addPolicy(NLo()),((r=e.redirectOptions)===null||r===void 0?void 0:r.handleRedirects)===!1&&this.pipeline.removePolicy({name:QGn})}async sendOperationRequest(e,n){var r;const a=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.onResponse;let o;function s(c,u,d){o=c,a&&a(c,u,d)}e.options=Object.assign(Object.assign({},e.options),{onResponse:s});const l=await super.sendOperationRequest(e,n);return o&&Object.defineProperty(l,"_response",{value:wVn(o)}),l}}var l8t;(function(t){t[t.ERROR=1]="ERROR",t[t.INFO=3]="INFO",t[t.OFF=0]="OFF",t[t.WARNING=2]="WARNING"})(l8t||(l8t={}));const zBo={log(t,e){},shouldLog(t){return!1}},GBo="RequestPolicyFactoryPolicy";function VBo(t){const e=t.slice().reverse();return{name:GBo,async sendRequest(n,r){let a={async sendRequest(l){const c=await r(kct(l));return wVn(c,{createProxy:!0})}};for(const l of e)a=l.create(a,zBo);const o=fCe(n,{createProxy:!0}),s=await a.sendRequest(o);return _Vn(s)}}}function KBo(t){return{sendRequest:async e=>{const n=await t.sendRequest(fCe(e,{createProxy:!0}));return _Vn(n)}}}const jQe="$",TVn="_";if(!document||!DOMParser||!Node||!XMLSerializer)throw new Error('This library depends on the following DOM objects: ["document", "DOMParser", "Node", "XMLSerializer"] to parse XML, but some of these are undefined. You may provide a polyfill to make these globally available in order to support your environment. For more information, please refer to https://aka.ms/azsdk/js/web-workers. ');let jD;try{typeof self.trustedTypes<"u"&&(jD=self.trustedTypes.createPolicy("@azure/core-xml#xml.browser",{createHTML:t=>t}))}catch{console.warn('Could not create trusted types policy "@azure/core-xml#xml.browser"')}const Ege=document.implementation.createDocument(null,null,null),CVn=new DOMParser;function WBo(t,e={}){var n,r,a,o,s,l;try{const c={rootName:(n=e.rootName)!==null&&n!==void 0?n:"",includeRoot:(r=e.includeRoot)!==null&&r!==void 0?r:!1,xmlCharKey:(a=e.xmlCharKey)!==null&&a!==void 0?a:TVn,cdataPropName:(o=e.cdataPropName)!==null&&o!==void 0?o:"__cdata",stopNodes:(s=e.stopNodes)!==null&&s!==void 0?s:[]},u=CVn.parseFromString((l=jD==null?void 0:jD.createHTML(t))!==null&&l!==void 0?l:t,"application/xml");qBo(u);let d;return c.includeRoot?d=HQe(u,c):d=HQe(u.childNodes[0],c),Promise.resolve(d)}catch(c){return Promise.reject(c)}}let zZ;function QBo(){var t,e;if(zZ===void 0)try{const n=(t=jD==null?void 0:jD.createHTML("INVALID"))!==null&&t!==void 0?t:"INVALID";zZ=(e=CVn.parseFromString(n,"text/xml").getElementsByTagName("parsererror")[0].namespaceURI)!==null&&e!==void 0?e:""}catch{zZ=""}return zZ}function qBo(t){const e=t.getElementsByTagName("parsererror");if(e.length>0&&QBo()){for(let n=0;n<e.length;n++)if(e[n].namespaceURI===zZ)throw new Error(e[n].innerHTML)}}function YBo(t){return!!t.attributes}function JBo(t){return YBo(t)&&t.hasAttributes()?t:void 0}function HQe(t,e){var n;let r={};const a=t.childNodes.length,o=t.childNodes[0],s=o&&a===1&&o.nodeType===Node.TEXT_NODE&&o.nodeValue||void 0,l=JBo(t);if(l){r[jQe]={};for(let c=0;c<l.attributes.length;c++){const u=l.attributes[c];r[jQe][u.nodeName]=u.nodeValue}s&&(r[e.xmlCharKey]=s)}else a===0?r="":s&&(r=s);if(!s)for(let c=0;c<a;c++){const u=t.childNodes[c];if((u==null?void 0:u.nodeType)===Node.CDATA_SECTION_NODE)r=u.textContent;else if(((n=u==null?void 0:u.firstChild)===null||n===void 0?void 0:n.nodeType)===Node.CDATA_SECTION_NODE)r[u.nodeName]=u.textContent;else if(u.nodeType!==Node.TEXT_NODE){const d=HQe(u,e);r[u.nodeName]?Array.isArray(r[u.nodeName])?r[u.nodeName].push(d):r[u.nodeName]=[r[u.nodeName],d]:r[u.nodeName]=d}}return r}const ZBo=new XMLSerializer;function kVn(t,e={}){var n,r,a,o,s;const l={rootName:(n=e.rootName)!==null&&n!==void 0?n:"root",includeRoot:(r=e.includeRoot)!==null&&r!==void 0?r:!1,xmlCharKey:(a=e.xmlCharKey)!==null&&a!==void 0?a:TVn,cdataPropName:(o=e.cdataPropName)!==null&&o!==void 0?o:"__cdata",stopNodes:(s=e.stopNodes)!==null&&s!==void 0?s:[]},c=UQe(t,l.rootName,l)[0];return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+ZBo.serializeToString(c)}function XBo(t){const e=[];for(const n of Object.keys(t)){const r=Ege.createAttribute(n);r.value=t[n].toString(),e.push(r)}return e}function UQe(t,e,n){if(t==null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"){const r=Ege.createElement(e);return r.textContent=t==null?"":t.toString(),[r]}else if(Array.isArray(t)){const r=[];for(const a of t)for(const o of UQe(a,e,n))r.push(o);return r}else if(typeof t=="object"){const r=Ege.createElement(e);for(const a of Object.keys(t))if(a===jQe)for(const o of XBo(t[a]))r.attributes.setNamedItem(o);else if(a===n.xmlCharKey)r.textContent=t[a].toString();else if(a===n.cdataPropName){const o=Ege.createCDATASection(t[a].toString());r.appendChild(o)}else for(const o of UQe(t[a],a,n))r.appendChild(o);return[r]}else throw new Error(`Illegal value passed to buildObject: ${t}`)}const ip=dCe("storage-blob");class RVn extends Error{constructor(e){super(e),this.name="AbortError"}}class Nct{constructor(e,n){this._nextPolicy=e,this._options=n}shouldLog(e){return this._options.shouldLog(e)}log(e,n){this._options.log(e,n)}}const MVn="12.23.0",Ict="2024-05-04",t$e=256*1024*1024,n$e=4e3*1024*1024,mfe=5e4,eDo=8*1024*1024,zQe=4*1024*1024,tDo=5,NVn="https://storage.azure.com/.default",uw={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},nDo={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416},P2={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"},eT="",IVn="*",c8t=256,vR=`\r
`,PVn="HTTP/1.1",rDo="AES256",iDo="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",aDo=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"],oDo=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],sDo="BlobUsesCustomerSpecifiedEncryption",lDo="BlobDoesNotUseCustomerSpecifiedEncryption",cDo=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function uDo(t){const e=new URL(t);let n=e.pathname;return n=n||"/",n=hDo(n),e.pathname=n,e.toString()}function dDo(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){const n=t.split(";");for(const r of n)r.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function iL(t,e){const n=t.split(";");for(const r of n)if(r.trim().startsWith(e))return r.trim().match(e+"=(.*)")[1];return""}function uK(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=dDo(t),t=iDo);let n=iL(t,"BlobEndpoint");if(n=n.endsWith("/")?n.slice(0,-1):n,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let r="",a="",o=gn.from("accountKey","base64"),s="";if(a=iL(t,"AccountName"),o=gn.from(iL(t,"AccountKey"),"base64"),!n){r=iL(t,"DefaultEndpointsProtocol");const l=r.toLowerCase();if(l!=="https"&&l!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=iL(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");n=`${r}://${a}.blob.${s}`}if(a){if(o.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:n,accountName:a,accountKey:o,proxyUri:e}}else{let r=iL(t,"SharedAccessSignature"),a=iL(t,"AccountName");if(a||(a=$Vn(n)),n){if(!r)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return r.startsWith("?")&&(r=r.substring(1)),{kind:"SASConnString",url:n,accountName:a,accountSas:r}}}function hDo(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function Pd(t,e){const n=new URL(t);let r=n.pathname;return r=r?r.endsWith("/")?`${r}${e}`:`${r}/${e}`:e,n.pathname=r,n.toString()}function $M(t,e,n){const r=new URL(t),a=encodeURIComponent(e),o=n?encodeURIComponent(n):void 0,s=r.search===""?"?":r.search,l=[];for(const c of s.slice(1).split("&"))if(c){const[u]=c.split("=",2);u!==a&&l.push(c)}return o&&l.push(`${a}=${o}`),r.search=l.length?`?${l.join("&")}`:"",r.toString()}function u8t(t,e){var n;return(n=new URL(t).searchParams.get(e))!==null&&n!==void 0?n:void 0}function OVn(t,e){const n=new URL(t);return n.hostname=e,n.toString()}function LVn(t){try{return new URL(t).pathname}catch{return}}function fDo(t){try{const e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}function pDo(t){const e=new URL(t),n=e.pathname;if(!n)throw new RangeError("Invalid url without valid path.");let r=e.search||"";return r=r.trim(),r!==""&&(r=r.startsWith("?")?r:`?${r}`),`${n}${r}`}function Pct(t,e){const n=new URL(t);let r=n.search;return r?r+="&"+e:r=e,n.search=r,n.toString()}function bc(t,e=!0){const n=t.toISOString();return e?n.substring(0,n.length-1)+"0000Z":n.substring(0,n.length-5)+"Z"}function mDo(t){return qh?gn.from(t).toString("base64"):btoa(t)}function d8t(t,e){t.length>42&&(t=t.slice(0,42));const o=t+gDo(e.toString(),48-t.length,"0");return mDo(o)}async function BVn(t,e,n){return new Promise((r,a)=>{let o;const s=()=>{o!==void 0&&clearTimeout(o),a(n)};o=setTimeout(()=>{e!==void 0&&e.removeEventListener("abort",s),r()},t),e!==void 0&&e.addEventListener("abort",s)})}function gDo(t,e,n=" "){return String.prototype.padStart?t.padStart(e,n):(n=n||" ",t.length>e?t:(e=e-t.length,e>n.length&&(n+=n.repeat(e/n.length)),n.slice(0,e)+t))}function DVn(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}function $Vn(t){const e=new URL(t);let n;try{return e.hostname.split(".")[1]==="blob"?n=e.hostname.split(".")[0]:Oct(e)?n=e.pathname.split("/")[1]:n="",n}catch{throw new Error("Unable to extract accountName with provided information.")}}function Oct(t){const e=t.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(e)||!!t.port&&cDo.includes(t.port)}function HD(t){if(t===void 0)return;const e=[];for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];e.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return e.join("&")}function vDo(t){if(t===void 0)return;const e={blobTagSet:[]};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];e.blobTagSet.push({key:n,value:r})}return e}function jee(t){if(t===void 0)return;const e={};for(const n of t.blobTagSet)e[n.key]=n.value;return e}function h8t(t){if(t!==void 0)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function Uye(t){if(!t||"policy-id"in t)return;const e=[];for(const n in t){const r=n.split("_"),a="or-";r[0].startsWith(a)&&(r[0]=r[0].substring(a.length));const o={ruleId:r[1],replicationStatus:t[n]},s=e.findIndex(l=>l.policyId===r[0]);s>-1?e[s].rules.push(o):e.push({policyId:r[0],rules:[o]})}return e}function jre(t){return t?t.scheme+" "+t.value:void 0}function wH(t){return t.encoded?decodeURIComponent(t.content):t.content}function ADo(t){return Object.assign(Object.assign({},t),{segment:{blobItems:t.segment.blobItems.map(e=>Object.assign(Object.assign({},e),{name:wH(e.name)}))}})}function yDo(t){var e;return Object.assign(Object.assign({},t),{segment:{blobPrefixes:(e=t.segment.blobPrefixes)===null||e===void 0?void 0:e.map(n=>Object.assign(Object.assign({},n),{name:wH(n.name)})),blobItems:t.segment.blobItems.map(n=>Object.assign(Object.assign({},n),{name:wH(n.name)}))}})}function*f8t(t){let e=[],n=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(n=t.clearRange);let r=0,a=0;for(;r<e.length&&a<n.length;)e[r].start<n[a].start?(yield{start:e[r].start,end:e[r].end,isClear:!1},++r):(yield{start:n[a].start,end:n[a].end,isClear:!0},++a);for(;r<e.length;++r)yield{start:e[r].start,end:e[r].end,isClear:!1};for(;a<n.length;++a)yield{start:n[a].start,end:n[a].end,isClear:!0}}function gfe(t){const e=t.split("/");for(let n=0;n<e.length;n++)e[n]=encodeURIComponent(e[n]);return e.join("/")}function Fi(t){if("_response"in t)return t;throw new TypeError(`Unexpected response object ${t}`)}var Hre;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Hre||(Hre={}));const RI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Hre.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bDo=new RVn("The operation was aborted.");class xDo extends Nct{constructor(e,n,r=RI){super(e,n),this.retryOptions={retryPolicyType:r.retryPolicyType?r.retryPolicyType:RI.retryPolicyType,maxTries:r.maxTries&&r.maxTries>=1?Math.floor(r.maxTries):RI.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:RI.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:RI.maxRetryDelayInMs):RI.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:RI.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:RI.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,n,r){const a=e.clone(),o=n||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||r%2===1;o||(a.url=OVn(a.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(a.url=$M(a.url,uw.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let s;try{if(ip.info(`RetryPolicy: =====> Try=${r} ${o?"Primary":"Secondary"}`),s=await this._nextPolicy.sendRequest(a),!this.shouldRetry(o,r,s))return s;n=n||!o&&s.status===404}catch(l){if(ip.error(`RetryPolicy: Caught error, message: ${l.message}, code: ${l.code}`),!this.shouldRetry(o,r,s,l))throw l}return await this.delay(o,r,e.abortSignal),this.attemptSendRequest(e,n,++r)}shouldRetry(e,n,r,a){if(n>=this.retryOptions.maxTries)return ip.info(`RetryPolicy: Attempt(s) ${n} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const s of o)if(a.name.toUpperCase().includes(s)||a.message.toUpperCase().includes(s)||a.code&&a.code.toString().toUpperCase()===s)return ip.info(`RetryPolicy: Network error ${s} found, will retry.`),!0}if(r||a){const s=r?r.status:a?a.statusCode:0;if(!e&&s===404)return ip.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(s===503||s===500)return ip.info(`RetryPolicy: Will retry for status code ${s}.`),!0}return(a==null?void 0:a.code)==="PARSE_ERROR"&&(a!=null&&a.message.startsWith('Error "Error: Unclosed root tag'))?(ip.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,n,r){let a=0;if(e)switch(this.retryOptions.retryPolicyType){case Hre.EXPONENTIAL:a=Math.min((Math.pow(2,n-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Hre.FIXED:a=this.retryOptions.retryDelayInMs;break}else a=Math.random()*1e3;return ip.info(`RetryPolicy: Delay for ${a}ms`),BVn(a,r,bDo)}}class EDo{constructor(e){this.retryOptions=e}create(e,n){return new xDo(e,n,this.retryOptions)}}class Jh{}class SDo extends Nct{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}class wDo extends SDo{constructor(e,n){super(e,n)}}class _Do{create(e,n){throw new Error("Method should be implemented in children classes.")}}class gd extends _Do{create(e,n){return new wDo(e,n)}}let r$e;function TDo(){return r$e||(r$e=lVn()),r$e}const CDo="storageBrowserPolicy";function kDo(){return{name:CDo,async sendRequest(t,e){return qh||((t.method==="GET"||t.method==="HEAD")&&(t.url=$M(t.url,uw.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(P2.COOKIE),t.headers.delete(P2.CONTENT_LENGTH)),e(t)}}}const RDo="storageRetryPolicy";var Ure;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ure||(Ure={}));const x7={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ure.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},MDo=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],NDo=new RVn("The operation was aborted.");function IDo(t={}){var e,n,r,a,o,s;const l=(e=t.retryPolicyType)!==null&&e!==void 0?e:x7.retryPolicyType,c=(n=t.maxTries)!==null&&n!==void 0?n:x7.maxTries,u=(r=t.retryDelayInMs)!==null&&r!==void 0?r:x7.retryDelayInMs,d=(a=t.maxRetryDelayInMs)!==null&&a!==void 0?a:x7.maxRetryDelayInMs,h=(o=t.secondaryHost)!==null&&o!==void 0?o:x7.secondaryHost,f=(s=t.tryTimeoutInMs)!==null&&s!==void 0?s:x7.tryTimeoutInMs;function p({isPrimaryRetry:g,attempt:v,response:A,error:y}){var S,x;if(v>=c)return ip.info(`RetryPolicy: Attempt(s) ${v} >= maxTries ${c}, no further try.`),!1;if(y){for(const w of MDo)if(y.name.toUpperCase().includes(w)||y.message.toUpperCase().includes(w)||y.code&&y.code.toString().toUpperCase()===w)return ip.info(`RetryPolicy: Network error ${w} found, will retry.`),!0;if((y==null?void 0:y.code)==="PARSE_ERROR"&&(y!=null&&y.message.startsWith('Error "Error: Unclosed root tag')))return ip.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(A||y){const w=(x=(S=A==null?void 0:A.status)!==null&&S!==void 0?S:y==null?void 0:y.statusCode)!==null&&x!==void 0?x:0;if(!g&&w===404)return ip.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(w===503||w===500)return ip.info(`RetryPolicy: Will retry for status code ${w}.`),!0}return!1}function m(g,v){let A=0;if(g)switch(l){case Ure.EXPONENTIAL:A=Math.min((Math.pow(2,v-1)-1)*u,d);break;case Ure.FIXED:A=u;break}else A=Math.random()*1e3;return ip.info(`RetryPolicy: Delay for ${A}ms`),A}return{name:RDo,async sendRequest(g,v){f&&(g.url=$M(g.url,uw.Parameters.TIMEOUT,String(Math.floor(f/1e3))));const A=g.url,y=h?OVn(g.url,h):void 0;let S=!1,x=1,w=!0,_,C;for(;w;){const R=S||!y||!["GET","HEAD","OPTIONS"].includes(g.method)||x%2===1;g.url=R?A:y,_=void 0,C=void 0;try{ip.info(`RetryPolicy: =====> Try=${x} ${R?"Primary":"Secondary"}`),_=await v(g),S=S||!R&&_.status===404}catch(k){if(oVn(k))ip.error(`RetryPolicy: Caught error, message: ${k.message}, code: ${k.code}`),C=k;else throw ip.error(`RetryPolicy: Caught error, message: ${jse(k)}`),k}w=p({isPrimaryRetry:R,attempt:x,response:_,error:C}),w&&await BVn(m(R,x),g.abortSignal,NDo),x++}if(_)return _;throw C??new eE("RetryPolicy failed without known error.")}}}const PDo="storageSharedKeyCredentialPolicy";function FVn(t){return{name:PDo,async sendRequest(e,n){return n(e)}}}class ODo extends Nct{constructor(e,n){super(e,n)}async sendRequest(e){return qh?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=$M(e.url,uw.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(P2.COOKIE),e.headers.remove(P2.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}}class LDo{create(e,n){return new ODo(e,n)}}function D9(t){if(!t||typeof t!="object")return!1;const e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}class jVn{constructor(e,n={}){this.factories=e,this.options=n}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function $u(t,e={}){t||(t=new gd);const n=new jVn([],e);return n._credential=t,n}function BDo(t){const e=[DDo,zVn,$Do,FDo,jDo,HDo,zDo];if(t.factories.length){const n=t.factories.filter(r=>!e.some(a=>a(r)));if(n.length){const r=n.some(a=>UDo(a));return{wrappedPolicies:VBo(n),afterRetry:r}}}}function HVn(t){var e;const n=t.options,{httpClient:r}=n,a=Rtt(n,["httpClient"]);let o=t._coreHttpClient;o||(o=r?KBo(r):TDo(),t._coreHttpClient=o);let s=t._corePipeline;if(!s){const l=`azsdk-js-azure-storage-blob/${MVn}`,c=a.userAgentOptions&&a.userAgentOptions.userAgentPrefix?`${a.userAgentOptions.userAgentPrefix} ${l}`:`${l}`;s=yVn(Object.assign(Object.assign({},a),{loggingOptions:{additionalAllowedHeaderNames:aDo,additionalAllowedQueryParameters:oDo,logger:ip.info},userAgentOptions:{userAgentPrefix:c},serializationOptions:{stringifyXML:kVn,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:WBo,serializerOptions:{xml:{xmlCharKey:"#"}}}})),s.removePolicy({phase:"Retry"}),s.removePolicy({name:C4o}),s.addPolicy(IDo(a.retryOptions),{phase:"Retry"}),s.addPolicy(kDo());const u=BDo(t);u&&s.addPolicy(u.wrappedPolicies,u.afterRetry?{afterPhase:"Retry"}:void 0);const d=UVn(t);tE(d)?s.addPolicy(Cct({credential:d,scopes:(e=a.audience)!==null&&e!==void 0?e:NVn,challengeCallbacks:{authorizeRequestOnChallenge:xVn}}),{phase:"Sign"}):d instanceof Jh&&s.addPolicy(FVn({accountName:d.accountName,accountKey:d.accountKey}),{phase:"Sign"}),t._corePipeline=s}return Object.assign(Object.assign({},a),{allowInsecureConnection:!0,httpClient:o,pipeline:s})}function UVn(t){if(t._credential)return t._credential;let e=new gd;for(const n of t.factories)if(tE(n.credential))e=n.credential;else if(zVn(n))return n;return e}function zVn(t){return t instanceof Jh?!0:t.constructor.name==="StorageSharedKeyCredential"}function DDo(t){return t instanceof gd?!0:t.constructor.name==="AnonymousCredential"}function $Do(t){return tE(t.credential)}function FDo(t){return t instanceof LDo?!0:t.constructor.name==="StorageBrowserPolicyFactory"}function jDo(t){return t instanceof EDo?!0:t.constructor.name==="StorageRetryPolicyFactory"}function HDo(t){return t.constructor.name==="TelemetryPolicyFactory"}function UDo(t){return t.constructor.name==="InjectorPolicyFactory"}function zDo(t){const e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],n={sendRequest:async s=>({request:s,headers:s.headers.clone(),status:500})},r={log(s,l){},shouldLog(s){return!1}},o=t.create(n,r).constructor.name;return e.some(s=>o.startsWith(s))}const Lct={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:!0,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},GDo={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},VDo={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},KDo={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},WDo={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},QDo={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}},Si={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}},GVn={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},qDo={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},VVn={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},YDo={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},JDo={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}},KVn={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},WVn={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},Bct={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},ZDo={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},Dct={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},XDo={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},e6o={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},t6o={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}},QVn={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},n6o={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},r6o={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}},i6o={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},a6o={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}},qVn={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},o6o={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},s6o={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},YVn={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},JVn={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},l6o={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},$ct={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},c6o={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},u6o={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},ZVn={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}},d6o={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},h6o={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},f6o={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}},p6o={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},m6o={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},g6o={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}},XVn={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eKn={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tKn={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nKn={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rKn={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iKn={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aKn={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oKn={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sKn={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lKn={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cKn={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uKn={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dKn={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hKn={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fKn={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pKn={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mKn={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gKn={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vKn={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AKn={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yKn={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bKn={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xKn={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EKn={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SKn={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wKn={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_Kn={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TKn={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CKn={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kKn={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RKn={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MKn={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NKn={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}},IKn={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PKn={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},OKn={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LKn={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},BKn={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DKn={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},$Kn={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FKn={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},jKn={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HKn={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},UKn={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zKn={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},GKn={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VKn={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KKn={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WKn={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QKn={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qKn={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}},YKn={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GQe={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},JKn={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZKn={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XKn={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eWn={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tWn={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nWn={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rWn={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iWn={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},aWn={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oWn={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sWn={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lWn={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}},cWn={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uWn={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},dWn={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hWn={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}},fWn={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pWn={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mWn={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gWn={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},vWn={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AWn={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},yWn={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bWn={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},xWn={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EWn={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},SWn={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wWn={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},_Wn={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TWn={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CWn={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kWn={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RWn={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MWn={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:!0,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NWn={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IWn={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PWn={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VQe={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OWn={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LWn={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}},BWn={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KQe={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},DWn={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$Wn={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FWn={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jWn={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HWn={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UWn={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zWn={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GWn={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VWn={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KWn={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WWn={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QWn={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qWn={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YWn={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JWn={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZWn={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XWn={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eQn={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tQn={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nQn={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rQn={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iQn={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aQn={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oQn={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sQn={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lQn={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cQn={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uQn={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dQn={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hQn={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}},fQn={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pQn={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mQn={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gQn={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vQn={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AQn={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yQn={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bQn={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xQn={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EQn={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SQn={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wQn={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_Qn={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dK=Object.freeze(Object.defineProperty({__proto__:null,AccessPolicy:t6o,AppendBlobAppendBlockExceptionHeaders:cQn,AppendBlobAppendBlockFromUrlExceptionHeaders:dQn,AppendBlobAppendBlockFromUrlHeaders:uQn,AppendBlobAppendBlockHeaders:lQn,AppendBlobCreateExceptionHeaders:sQn,AppendBlobCreateHeaders:oQn,AppendBlobSealExceptionHeaders:fQn,AppendBlobSealHeaders:hQn,ArrowConfiguration:m6o,ArrowField:g6o,BlobAbortCopyFromURLExceptionHeaders:PWn,BlobAbortCopyFromURLHeaders:IWn,BlobAcquireLeaseExceptionHeaders:vWn,BlobAcquireLeaseHeaders:gWn,BlobBreakLeaseExceptionHeaders:_Wn,BlobBreakLeaseHeaders:wWn,BlobChangeLeaseExceptionHeaders:SWn,BlobChangeLeaseHeaders:EWn,BlobCopyFromURLExceptionHeaders:NWn,BlobCopyFromURLHeaders:MWn,BlobCreateSnapshotExceptionHeaders:CWn,BlobCreateSnapshotHeaders:TWn,BlobDeleteExceptionHeaders:tWn,BlobDeleteHeaders:eWn,BlobDeleteImmutabilityPolicyExceptionHeaders:dWn,BlobDeleteImmutabilityPolicyHeaders:uWn,BlobDownloadExceptionHeaders:JKn,BlobDownloadHeaders:GQe,BlobFlatListSegment:n6o,BlobGetAccountInfoExceptionHeaders:BWn,BlobGetAccountInfoHeaders:LWn,BlobGetPropertiesExceptionHeaders:XKn,BlobGetPropertiesHeaders:ZKn,BlobGetTagsExceptionHeaders:FWn,BlobGetTagsHeaders:$Wn,BlobHierarchyListSegment:o6o,BlobItemInternal:r6o,BlobName:i6o,BlobPrefix:s6o,BlobPropertiesInternal:a6o,BlobQueryExceptionHeaders:DWn,BlobQueryHeaders:KQe,BlobReleaseLeaseExceptionHeaders:yWn,BlobReleaseLeaseHeaders:AWn,BlobRenewLeaseExceptionHeaders:xWn,BlobRenewLeaseHeaders:bWn,BlobServiceProperties:Lct,BlobServiceStatistics:GVn,BlobSetExpiryExceptionHeaders:aWn,BlobSetExpiryHeaders:iWn,BlobSetHttpHeadersExceptionHeaders:sWn,BlobSetHttpHeadersHeaders:oWn,BlobSetImmutabilityPolicyExceptionHeaders:cWn,BlobSetImmutabilityPolicyHeaders:lWn,BlobSetLegalHoldExceptionHeaders:fWn,BlobSetLegalHoldHeaders:hWn,BlobSetMetadataExceptionHeaders:mWn,BlobSetMetadataHeaders:pWn,BlobSetTagsExceptionHeaders:HWn,BlobSetTagsHeaders:jWn,BlobSetTierExceptionHeaders:OWn,BlobSetTierHeaders:VQe,BlobStartCopyFromURLExceptionHeaders:RWn,BlobStartCopyFromURLHeaders:kWn,BlobTag:XDo,BlobTags:Dct,BlobUndeleteExceptionHeaders:rWn,BlobUndeleteHeaders:nWn,Block:l6o,BlockBlobCommitBlockListExceptionHeaders:SQn,BlockBlobCommitBlockListHeaders:EQn,BlockBlobGetBlockListExceptionHeaders:_Qn,BlockBlobGetBlockListHeaders:wQn,BlockBlobPutBlobFromUrlExceptionHeaders:vQn,BlockBlobPutBlobFromUrlHeaders:gQn,BlockBlobStageBlockExceptionHeaders:yQn,BlockBlobStageBlockFromURLExceptionHeaders:xQn,BlockBlobStageBlockFromURLHeaders:bQn,BlockBlobStageBlockHeaders:AQn,BlockBlobUploadExceptionHeaders:mQn,BlockBlobUploadHeaders:pQn,BlockList:JVn,BlockLookupList:YVn,ClearRange:u6o,ContainerAcquireLeaseExceptionHeaders:BKn,ContainerAcquireLeaseHeaders:LKn,ContainerBreakLeaseExceptionHeaders:UKn,ContainerBreakLeaseHeaders:HKn,ContainerChangeLeaseExceptionHeaders:GKn,ContainerChangeLeaseHeaders:zKn,ContainerCreateExceptionHeaders:gKn,ContainerCreateHeaders:mKn,ContainerDeleteExceptionHeaders:bKn,ContainerDeleteHeaders:yKn,ContainerFilterBlobsExceptionHeaders:OKn,ContainerFilterBlobsHeaders:PKn,ContainerGetAccessPolicyExceptionHeaders:wKn,ContainerGetAccessPolicyHeaders:SKn,ContainerGetAccountInfoExceptionHeaders:YKn,ContainerGetAccountInfoHeaders:qKn,ContainerGetPropertiesExceptionHeaders:AKn,ContainerGetPropertiesHeaders:vKn,ContainerItem:YDo,ContainerListBlobFlatSegmentExceptionHeaders:KKn,ContainerListBlobFlatSegmentHeaders:VKn,ContainerListBlobHierarchySegmentExceptionHeaders:QKn,ContainerListBlobHierarchySegmentHeaders:WKn,ContainerProperties:JDo,ContainerReleaseLeaseExceptionHeaders:$Kn,ContainerReleaseLeaseHeaders:DKn,ContainerRenameExceptionHeaders:MKn,ContainerRenameHeaders:RKn,ContainerRenewLeaseExceptionHeaders:jKn,ContainerRenewLeaseHeaders:FKn,ContainerRestoreExceptionHeaders:kKn,ContainerRestoreHeaders:CKn,ContainerSetAccessPolicyExceptionHeaders:TKn,ContainerSetAccessPolicyHeaders:_Kn,ContainerSetMetadataExceptionHeaders:EKn,ContainerSetMetadataHeaders:xKn,ContainerSubmitBatchExceptionHeaders:IKn,ContainerSubmitBatchHeaders:NKn,CorsRule:WDo,DelimitedTextConfiguration:f6o,FilterBlobItem:ZDo,FilterBlobSegment:Bct,GeoReplication:qDo,JsonTextConfiguration:p6o,KeyInfo:KVn,ListBlobsFlatSegmentResponse:QVn,ListBlobsHierarchySegmentResponse:qVn,ListContainersSegmentResponse:VVn,Logging:GDo,Metrics:KDo,PageBlobClearPagesExceptionHeaders:WWn,PageBlobClearPagesHeaders:KWn,PageBlobCopyIncrementalExceptionHeaders:aQn,PageBlobCopyIncrementalHeaders:iQn,PageBlobCreateExceptionHeaders:zWn,PageBlobCreateHeaders:UWn,PageBlobGetPageRangesDiffExceptionHeaders:XWn,PageBlobGetPageRangesDiffHeaders:ZWn,PageBlobGetPageRangesExceptionHeaders:JWn,PageBlobGetPageRangesHeaders:YWn,PageBlobResizeExceptionHeaders:tQn,PageBlobResizeHeaders:eQn,PageBlobUpdateSequenceNumberExceptionHeaders:rQn,PageBlobUpdateSequenceNumberHeaders:nQn,PageBlobUploadPagesExceptionHeaders:VWn,PageBlobUploadPagesFromURLExceptionHeaders:qWn,PageBlobUploadPagesFromURLHeaders:QWn,PageBlobUploadPagesHeaders:GWn,PageList:$ct,PageRange:c6o,QueryFormat:h6o,QueryRequest:ZVn,QuerySerialization:d6o,RetentionPolicy:VDo,ServiceFilterBlobsExceptionHeaders:pKn,ServiceFilterBlobsHeaders:fKn,ServiceGetAccountInfoExceptionHeaders:uKn,ServiceGetAccountInfoHeaders:cKn,ServiceGetPropertiesExceptionHeaders:nKn,ServiceGetPropertiesHeaders:tKn,ServiceGetStatisticsExceptionHeaders:iKn,ServiceGetStatisticsHeaders:rKn,ServiceGetUserDelegationKeyExceptionHeaders:lKn,ServiceGetUserDelegationKeyHeaders:sKn,ServiceListContainersSegmentExceptionHeaders:oKn,ServiceListContainersSegmentHeaders:aKn,ServiceSetPropertiesExceptionHeaders:eKn,ServiceSetPropertiesHeaders:XVn,ServiceSubmitBatchExceptionHeaders:hKn,ServiceSubmitBatchHeaders:dKn,SignedIdentifier:e6o,StaticWebsite:QDo,StorageError:Si,UserDelegationKey:WVn},Symbol.toStringTag,{value:"Module"})),hK={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},v6o={parameterPath:"blobServiceProperties",mapper:Lct},TO={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},ki={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},pCe={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},CO={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ki={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},Ri={parameterPath:"version",mapper:{defaultValue:"2024-05-04",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},Wi={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},Ea={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},A6o={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Fct={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},jct={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},$9={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},F9={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},y6o={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},b6o={parameterPath:"keyInfo",mapper:KVn},x6o={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Hct={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},TQn={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},CQn={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},lb={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},kQn={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},RQn={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},MQn={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},yg={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},i_={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},NQn={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},E6o={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},S6o={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},tl={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},Bs={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Ds={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},IQn={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},PQn={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},w6o={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},OQn={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},_6o={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},T6o={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},C6o={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},k6o={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},R6o={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},MC={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},LQn={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},BQn={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},DQn={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},$Qn={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},fK={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},FQn={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},jQn={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},HQn={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},UQn={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},zQn={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},GQn={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"},M6o={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},wN={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},pK={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},Hse={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},N6o={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},I6o={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},pm={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},mm={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},gm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},Ec={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},Sc={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},Il={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},P6o={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},O6o={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},L6o={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},B6o={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},D6o={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},mK={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},gK={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},vK={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},AK={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},yK={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},bK={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},VQn={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},j9={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},H9={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},$6o={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},F6o={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Lv={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},j6o={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},xK={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},KQn={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},EK={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},SK={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},wK={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},_K={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},WQn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},mCe={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},U9={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},H6o={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},TK={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},U6o={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},Use={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},zse={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},QQn={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},z6o={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},G6o={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},V6o={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},K6o={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},W6o={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},Q6o={parameterPath:["options","queryRequest"],mapper:ZVn},q6o={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},qQn={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Y6o={parameterPath:["options","tags"],mapper:Dct},kO={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},CK={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},J6o={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},YQn={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},JQn={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},gCe={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},vCe={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},ACe={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Uct={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ZQn={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},zct={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},Gct={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},Vct={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},Z6o={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},Kct={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},X6o={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Wct={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},e8o={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},XQn={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},t8o={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},n8o={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},r8o={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},i8o={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},a8o={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},eqn={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tqn={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},Qct={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},nqn={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},o8o={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},rqn={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},s8o={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},iqn={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},aqn={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},l8o={parameterPath:"blocks",mapper:YVn},oqn={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},c8o={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class u8o{constructor(e){this.client=e}setProperties(e,n){return this.client.sendOperationRequest({blobServiceProperties:e,options:n},d8o)}getProperties(e){return this.client.sendOperationRequest({options:e},h8o)}getStatistics(e){return this.client.sendOperationRequest({options:e},f8o)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},p8o)}getUserDelegationKey(e,n){return this.client.sendOperationRequest({keyInfo:e,options:n},m8o)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},g8o)}submitBatch(e,n,r,a){return this.client.sendOperationRequest({contentLength:e,multipartContentType:n,body:r,options:a},v8o)}filterBlobs(e){return this.client.sendOperationRequest({options:e},A8o)}}const RO=lK(dK,!0),d8o={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:XVn},default:{bodyMapper:Si,headersMapper:eKn}},requestBody:v6o,queryParameters:[pCe,CO,Ki],urlParameters:[ki],headerParameters:[hK,TO,Ri,Wi],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:RO},h8o={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Lct,headersMapper:tKn},default:{bodyMapper:Si,headersMapper:nKn}},queryParameters:[pCe,CO,Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:RO},f8o={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:GVn,headersMapper:rKn},default:{bodyMapper:Si,headersMapper:iKn}},queryParameters:[pCe,Ki,A6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:RO},p8o={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:VVn,headersMapper:aKn},default:{bodyMapper:Si,headersMapper:oKn}},queryParameters:[Ki,Fct,jct,$9,F9,y6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:RO},m8o={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:WVn,headersMapper:sKn},default:{bodyMapper:Si,headersMapper:lKn}},requestBody:b6o,queryParameters:[pCe,Ki,x6o],urlParameters:[ki],headerParameters:[hK,TO,Ri,Wi],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:RO},g8o={path:"/",httpMethod:"GET",responses:{200:{headersMapper:cKn},default:{bodyMapper:Si,headersMapper:uKn}},queryParameters:[CO,Hct],urlParameters:[ki],headerParameters:[Ri,Ea],isXML:!0,serializer:RO},v8o={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:dKn},default:{bodyMapper:Si,headersMapper:hKn}},requestBody:TQn,queryParameters:[Ki,CQn],urlParameters:[ki],headerParameters:[TO,Ri,Wi,lb,kQn],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:RO},A8o={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Bct,headersMapper:fKn},default:{bodyMapper:Si,headersMapper:pKn}},queryParameters:[Ki,$9,F9,RQn,MQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:RO};class y8o{constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},b8o)}getProperties(e){return this.client.sendOperationRequest({options:e},x8o)}delete(e){return this.client.sendOperationRequest({options:e},E8o)}setMetadata(e){return this.client.sendOperationRequest({options:e},S8o)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},w8o)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},_8o)}restore(e){return this.client.sendOperationRequest({options:e},T8o)}rename(e,n){return this.client.sendOperationRequest({sourceContainerName:e,options:n},C8o)}submitBatch(e,n,r,a){return this.client.sendOperationRequest({contentLength:e,multipartContentType:n,body:r,options:a},k8o)}filterBlobs(e){return this.client.sendOperationRequest({options:e},R8o)}acquireLease(e){return this.client.sendOperationRequest({options:e},M8o)}releaseLease(e,n){return this.client.sendOperationRequest({leaseId:e,options:n},N8o)}renewLease(e,n){return this.client.sendOperationRequest({leaseId:e,options:n},I8o)}breakLease(e){return this.client.sendOperationRequest({options:e},P8o)}changeLease(e,n,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:n,options:r},O8o)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},L8o)}listBlobHierarchySegment(e,n){return this.client.sendOperationRequest({delimiter:e,options:n},B8o)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},D8o)}}const vm=lK(dK,!0),b8o={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:mKn},default:{bodyMapper:Si,headersMapper:gKn}},queryParameters:[Ki,yg],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,i_,NQn,E6o,S6o],isXML:!0,serializer:vm},x8o={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:vKn},default:{bodyMapper:Si,headersMapper:AKn}},queryParameters:[Ki,yg],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl],isXML:!0,serializer:vm},E8o={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:yKn},default:{bodyMapper:Si,headersMapper:bKn}},queryParameters:[Ki,yg],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds],isXML:!0,serializer:vm},S8o={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:xKn},default:{bodyMapper:Si,headersMapper:EKn}},queryParameters:[Ki,yg,IQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,i_,tl,Bs],isXML:!0,serializer:vm},w8o={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:SKn},default:{bodyMapper:Si,headersMapper:wKn}},queryParameters:[Ki,yg,PQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl],isXML:!0,serializer:vm},_8o={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:_Kn},default:{bodyMapper:Si,headersMapper:TKn}},requestBody:w6o,queryParameters:[Ki,yg,PQn],urlParameters:[ki],headerParameters:[hK,TO,Ri,Wi,NQn,tl,Bs,Ds],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:vm},T8o={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:CKn},default:{bodyMapper:Si,headersMapper:kKn}},queryParameters:[Ki,yg,OQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,_6o,T6o],isXML:!0,serializer:vm},C8o={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:RKn},default:{bodyMapper:Si,headersMapper:MKn}},queryParameters:[Ki,yg,C6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,k6o,R6o],isXML:!0,serializer:vm},k8o={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:NKn},default:{bodyMapper:Si,headersMapper:IKn}},requestBody:TQn,queryParameters:[Ki,CQn,yg],urlParameters:[ki],headerParameters:[TO,Ri,Wi,lb,kQn],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:vm},R8o={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Bct,headersMapper:PKn},default:{bodyMapper:Si,headersMapper:OKn}},queryParameters:[Ki,$9,F9,RQn,MQn,yg],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:vm},M8o={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:LKn},default:{bodyMapper:Si,headersMapper:BKn}},queryParameters:[Ki,yg,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,LQn,BQn,DQn],isXML:!0,serializer:vm},N8o={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:DKn},default:{bodyMapper:Si,headersMapper:$Kn}},queryParameters:[Ki,yg,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,$Qn,fK],isXML:!0,serializer:vm},I8o={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:FKn},default:{bodyMapper:Si,headersMapper:jKn}},queryParameters:[Ki,yg,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,fK,FQn],isXML:!0,serializer:vm},P8o={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:HKn},default:{bodyMapper:Si,headersMapper:UKn}},queryParameters:[Ki,yg,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,jQn,HQn],isXML:!0,serializer:vm},O8o={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:zKn},default:{bodyMapper:Si,headersMapper:GKn}},queryParameters:[Ki,yg,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,fK,UQn,zQn],isXML:!0,serializer:vm},L8o={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:QVn,headersMapper:VKn},default:{bodyMapper:Si,headersMapper:KKn}},queryParameters:[Ki,Fct,jct,$9,F9,yg,GQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:vm},B8o={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:qVn,headersMapper:WKn},default:{bodyMapper:Si,headersMapper:QKn}},queryParameters:[Ki,Fct,jct,$9,F9,yg,GQn,M6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:vm},D8o={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:qKn},default:{bodyMapper:Si,headersMapper:YKn}},queryParameters:[CO,Hct],urlParameters:[ki],headerParameters:[Ri,Ea],isXML:!0,serializer:vm};class $8o{constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},F8o)}getProperties(e){return this.client.sendOperationRequest({options:e},j8o)}delete(e){return this.client.sendOperationRequest({options:e},H8o)}undelete(e){return this.client.sendOperationRequest({options:e},U8o)}setExpiry(e,n){return this.client.sendOperationRequest({expiryOptions:e,options:n},z8o)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},G8o)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},V8o)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},K8o)}setLegalHold(e,n){return this.client.sendOperationRequest({legalHold:e,options:n},W8o)}setMetadata(e){return this.client.sendOperationRequest({options:e},Q8o)}acquireLease(e){return this.client.sendOperationRequest({options:e},q8o)}releaseLease(e,n){return this.client.sendOperationRequest({leaseId:e,options:n},Y8o)}renewLease(e,n){return this.client.sendOperationRequest({leaseId:e,options:n},J8o)}changeLease(e,n,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:n,options:r},Z8o)}breakLease(e){return this.client.sendOperationRequest({options:e},X8o)}createSnapshot(e){return this.client.sendOperationRequest({options:e},e9o)}startCopyFromURL(e,n){return this.client.sendOperationRequest({copySource:e,options:n},t9o)}copyFromURL(e,n){return this.client.sendOperationRequest({copySource:e,options:n},n9o)}abortCopyFromURL(e,n){return this.client.sendOperationRequest({copyId:e,options:n},r9o)}setTier(e,n){return this.client.sendOperationRequest({tier:e,options:n},i9o)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},a9o)}query(e){return this.client.sendOperationRequest({options:e},o9o)}getTags(e){return this.client.sendOperationRequest({options:e},s9o)}setTags(e){return this.client.sendOperationRequest({options:e},l9o)}}const Ed=lK(dK,!0),F8o={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:GQe},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:GQe},default:{bodyMapper:Si,headersMapper:JKn}},queryParameters:[Ki,wN,pK],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,Hse,N6o,I6o,pm,mm,gm,Ec,Sc,Il],isXML:!0,serializer:Ed},j8o={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ZKn},default:{bodyMapper:Si,headersMapper:XKn}},queryParameters:[Ki,wN,pK],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il],isXML:!0,serializer:Ed},H8o={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:eWn},default:{bodyMapper:Si,headersMapper:tWn}},queryParameters:[Ki,wN,pK,O6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,Ec,Sc,Il,P6o],isXML:!0,serializer:Ed},U8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nWn},default:{bodyMapper:Si,headersMapper:rWn}},queryParameters:[Ki,OQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:Ed},z8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:iWn},default:{bodyMapper:Si,headersMapper:aWn}},queryParameters:[Ki,L6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,B6o,D6o],isXML:!0,serializer:Ed},G8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:oWn},default:{bodyMapper:Si,headersMapper:sWn}},queryParameters:[CO,Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,Ec,Sc,Il,mK,gK,vK,AK,yK,bK],isXML:!0,serializer:Ed},V8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:lWn},default:{bodyMapper:Si,headersMapper:cWn}},queryParameters:[Ki,VQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Ds,j9,H9],isXML:!0,serializer:Ed},K8o={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:uWn},default:{bodyMapper:Si,headersMapper:dWn}},queryParameters:[Ki,VQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea],isXML:!0,serializer:Ed},W8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:hWn},default:{bodyMapper:Si,headersMapper:fWn}},queryParameters:[Ki,$6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,F6o],isXML:!0,serializer:Ed},Q8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:pWn},default:{bodyMapper:Si,headersMapper:mWn}},queryParameters:[Ki,IQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,i_,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,Lv],isXML:!0,serializer:Ed},q8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:gWn},default:{bodyMapper:Si,headersMapper:vWn}},queryParameters:[Ki,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,LQn,BQn,DQn,Ec,Sc,Il],isXML:!0,serializer:Ed},Y8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:AWn},default:{bodyMapper:Si,headersMapper:yWn}},queryParameters:[Ki,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,$Qn,fK,Ec,Sc,Il],isXML:!0,serializer:Ed},J8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bWn},default:{bodyMapper:Si,headersMapper:xWn}},queryParameters:[Ki,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,fK,FQn,Ec,Sc,Il],isXML:!0,serializer:Ed},Z8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:EWn},default:{bodyMapper:Si,headersMapper:SWn}},queryParameters:[Ki,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,fK,UQn,zQn,Ec,Sc,Il],isXML:!0,serializer:Ed},X8o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wWn},default:{bodyMapper:Si,headersMapper:_Wn}},queryParameters:[Ki,MC],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,jQn,HQn,Ec,Sc,Il],isXML:!0,serializer:Ed},e9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:TWn},default:{bodyMapper:Si,headersMapper:CWn}},queryParameters:[Ki,j6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,i_,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,Lv],isXML:!0,serializer:Ed},t9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:kWn},default:{bodyMapper:Si,headersMapper:RWn}},queryParameters:[Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,i_,tl,Bs,Ds,Ec,Sc,Il,j9,H9,xK,KQn,EK,SK,wK,_K,WQn,mCe,U9,H6o,TK],isXML:!0,serializer:Ed},n9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:MWn},default:{bodyMapper:Si,headersMapper:NWn}},queryParameters:[Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,i_,tl,Bs,Ds,Ec,Sc,Il,j9,H9,Lv,xK,EK,SK,wK,_K,mCe,U9,TK,U6o,Use,zse,QQn],isXML:!0,serializer:Ed},r9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:IWn},default:{bodyMapper:Si,headersMapper:PWn}},queryParameters:[Ki,z6o,V6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,G6o],isXML:!0,serializer:Ed},i9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:VQe},202:{headersMapper:VQe},default:{bodyMapper:Si,headersMapper:OWn}},queryParameters:[Ki,wN,pK,K6o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Il,KQn,W6o],isXML:!0,serializer:Ed},a9o={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:LWn},default:{bodyMapper:Si,headersMapper:BWn}},queryParameters:[CO,Hct],urlParameters:[ki],headerParameters:[Ri,Ea],isXML:!0,serializer:Ed},o9o={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:KQe},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:KQe},default:{bodyMapper:Si,headersMapper:DWn}},requestBody:Q6o,queryParameters:[Ki,wN,q6o],urlParameters:[ki],headerParameters:[hK,TO,Ri,Wi,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ed},s9o={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Dct,headersMapper:$Wn},default:{bodyMapper:Si,headersMapper:FWn}},queryParameters:[Ki,wN,pK,qQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Il],isXML:!0,serializer:Ed},l9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:jWn},default:{bodyMapper:Si,headersMapper:HWn}},requestBody:Y6o,queryParameters:[Ki,pK,qQn],urlParameters:[ki],headerParameters:[hK,TO,Ri,Wi,tl,Il,kO,CK],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ed};class c9o{constructor(e){this.client=e}create(e,n,r){return this.client.sendOperationRequest({contentLength:e,blobContentLength:n,options:r},u9o)}uploadPages(e,n,r){return this.client.sendOperationRequest({contentLength:e,body:n,options:r},d9o)}clearPages(e,n){return this.client.sendOperationRequest({contentLength:e,options:n},h9o)}uploadPagesFromURL(e,n,r,a,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:n,contentLength:r,range:a,options:o},f9o)}getPageRanges(e){return this.client.sendOperationRequest({options:e},p9o)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},m9o)}resize(e,n){return this.client.sendOperationRequest({blobContentLength:e,options:n},g9o)}updateSequenceNumber(e,n){return this.client.sendOperationRequest({sequenceNumberAction:e,options:n},v9o)}copyIncremental(e,n){return this.client.sendOperationRequest({copySource:e,options:n},A9o)}}const _N=lK(dK,!0),u9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:UWn},default:{bodyMapper:Si,headersMapper:zWn}},queryParameters:[Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,lb,i_,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,mK,gK,vK,AK,yK,bK,j9,H9,Lv,xK,U9,TK,J6o,YQn,JQn],isXML:!0,serializer:_N},d9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:GWn},default:{bodyMapper:Si,headersMapper:VWn}},requestBody:vCe,queryParameters:[Ki,Uct],urlParameters:[ki],headerParameters:[Ri,Wi,lb,tl,Bs,Ds,Hse,pm,mm,gm,Ec,Sc,Il,Lv,kO,CK,gCe,ACe,ZQn,zct,Gct,Vct],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:_N},h9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:KWn},default:{bodyMapper:Si,headersMapper:WWn}},queryParameters:[Ki,Uct],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,lb,tl,Bs,Ds,Hse,pm,mm,gm,Ec,Sc,Il,Lv,zct,Gct,Vct,Z6o],isXML:!0,serializer:_N},f9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:QWn},default:{bodyMapper:Si,headersMapper:qWn}},queryParameters:[Ki,Uct],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,lb,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,Lv,EK,SK,wK,_K,Use,zse,ZQn,zct,Gct,Vct,Kct,X6o,Wct,e8o],isXML:!0,serializer:_N},p9o={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:$ct,headersMapper:YWn},default:{bodyMapper:Si,headersMapper:JWn}},queryParameters:[Ki,$9,F9,wN,XQn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,Hse,Ec,Sc,Il],isXML:!0,serializer:_N},m9o={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:$ct,headersMapper:ZWn},default:{bodyMapper:Si,headersMapper:XWn}},queryParameters:[Ki,$9,F9,wN,XQn,t8o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,Hse,Ec,Sc,Il,n8o],isXML:!0,serializer:_N},g9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:eQn},default:{bodyMapper:Si,headersMapper:tQn}},queryParameters:[CO,Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,Lv,YQn],isXML:!0,serializer:_N},v9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nQn},default:{bodyMapper:Si,headersMapper:rQn}},queryParameters:[CO,Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,Ec,Sc,Il,JQn,r8o],isXML:!0,serializer:_N},A9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:iQn},default:{bodyMapper:Si,headersMapper:aQn}},queryParameters:[Ki,i8o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,Bs,Ds,Ec,Sc,Il,mCe],isXML:!0,serializer:_N};class y9o{constructor(e){this.client=e}create(e,n){return this.client.sendOperationRequest({contentLength:e,options:n},b9o)}appendBlock(e,n,r){return this.client.sendOperationRequest({contentLength:e,body:n,options:r},x9o)}appendBlockFromUrl(e,n,r){return this.client.sendOperationRequest({sourceUrl:e,contentLength:n,options:r},E9o)}seal(e){return this.client.sendOperationRequest({options:e},S9o)}}const yCe=lK(dK,!0),b9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:oQn},default:{bodyMapper:Si,headersMapper:sQn}},queryParameters:[Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,lb,i_,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,mK,gK,vK,AK,yK,bK,j9,H9,Lv,U9,TK,a8o],isXML:!0,serializer:yCe},x9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:lQn},default:{bodyMapper:Si,headersMapper:cQn}},requestBody:vCe,queryParameters:[Ki,eqn],urlParameters:[ki],headerParameters:[Ri,Wi,lb,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,Lv,kO,CK,gCe,ACe,tqn,Qct],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:yCe},E9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:uQn},default:{bodyMapper:Si,headersMapper:dQn}},queryParameters:[Ki,eqn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,lb,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,Lv,EK,SK,wK,_K,Use,zse,kO,Kct,Wct,tqn,Qct,nqn],isXML:!0,serializer:yCe},S9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:hQn},default:{bodyMapper:Si,headersMapper:fQn}},queryParameters:[Ki,o8o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Bs,Ds,Ec,Sc,Qct],isXML:!0,serializer:yCe};class w9o{constructor(e){this.client=e}upload(e,n,r){return this.client.sendOperationRequest({contentLength:e,body:n,options:r},_9o)}putBlobFromUrl(e,n,r){return this.client.sendOperationRequest({contentLength:e,copySource:n,options:r},T9o)}stageBlock(e,n,r,a){return this.client.sendOperationRequest({blockId:e,contentLength:n,body:r,options:a},C9o)}stageBlockFromURL(e,n,r,a){return this.client.sendOperationRequest({blockId:e,contentLength:n,sourceUrl:r,options:a},k9o)}commitBlockList(e,n){return this.client.sendOperationRequest({blocks:e,options:n},R9o)}getBlockList(e,n){return this.client.sendOperationRequest({listType:e,options:n},M9o)}}const kK=lK(dK,!0),_9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pQn},default:{bodyMapper:Si,headersMapper:mQn}},requestBody:vCe,queryParameters:[Ki],urlParameters:[ki],headerParameters:[Ri,Wi,lb,i_,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,mK,gK,vK,AK,yK,bK,j9,H9,Lv,xK,U9,TK,kO,CK,gCe,ACe,rqn],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:kK},T9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:gQn},default:{bodyMapper:Si,headersMapper:vQn}},queryParameters:[Ki],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,lb,i_,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,mK,gK,vK,AK,yK,bK,Lv,xK,EK,SK,wK,_K,WQn,mCe,U9,Use,zse,QQn,kO,rqn,s8o],isXML:!0,serializer:kK},C9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:AQn},default:{bodyMapper:Si,headersMapper:yQn}},requestBody:vCe,queryParameters:[Ki,iqn,aqn],urlParameters:[ki],headerParameters:[Ri,Wi,lb,tl,pm,mm,gm,Lv,kO,CK,gCe,ACe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:kK},k9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:bQn},default:{bodyMapper:Si,headersMapper:xQn}},queryParameters:[Ki,iqn,aqn],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,lb,tl,pm,mm,gm,Lv,EK,SK,wK,_K,Use,zse,Kct,Wct,nqn],isXML:!0,serializer:kK},R9o={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:EQn},default:{bodyMapper:Si,headersMapper:SQn}},requestBody:l8o,queryParameters:[Ki,oqn],urlParameters:[ki],headerParameters:[hK,TO,Ri,Wi,i_,tl,Bs,Ds,pm,mm,gm,Ec,Sc,Il,mK,gK,vK,AK,yK,bK,j9,H9,Lv,xK,U9,TK,kO,CK],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:kK},M9o={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:JVn,headersMapper:wQn},default:{bodyMapper:Si,headersMapper:_Qn}},queryParameters:[Ki,wN,oqn,c8o],urlParameters:[ki],headerParameters:[Ri,Wi,Ea,tl,Il],isXML:!0,serializer:kK};let N9o=class extends UBo{constructor(e,n){var r,a;if(e===void 0)throw new Error("'url' cannot be null");n||(n={});const o={requestContentType:"application/json; charset=utf-8"},s="azsdk-js-azure-storage-blob/12.23.0",l=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${s}`:`${s}`,c=Object.assign(Object.assign(Object.assign({},o),n),{userAgentOptions:{userAgentPrefix:l},endpoint:(a=(r=n.endpoint)!==null&&r!==void 0?r:n.baseUri)!==null&&a!==void 0?a:"{url}"});super(c),this.url=e,this.version=n.version||"2023-11-03",this.service=new u8o(this),this.container=new y8o(this),this.blob=new $8o(this),this.pageBlob=new c9o(this),this.appendBlob=new y9o(this),this.blockBlob=new w9o(this)}};class sqn extends N9o{async sendOperationRequest(e,n){const r=Object.assign({},n);return(r.path==="/{containerName}"||r.path==="/{containerName}/{blob}")&&(r.path=""),super.sendOperationRequest(e,r)}}class qct{constructor(e,n){this.url=uDo(e),this.accountName=$Vn(e),this.pipeline=n,this.storageClientContext=new sqn(this.url,HVn(n)),this.isHttps=DVn(fDo(this.url)||"","https"),this.credential=UVn(n);const r=this.storageClientContext;r.requestContentType=void 0}}const Hr=aVn({packageName:"@azure/storage-blob",packageVersion:MVn,namespace:"Microsoft.Storage"});class FM{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){const n=new FM;for(const r of e)switch(r){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"x":n.deleteVersion=!0;break;case"t":n.tag=!0;break;case"m":n.move=!0;break;case"e":n.execute=!0;break;case"i":n.setImmutabilityPolicy=!0;break;case"y":n.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${r}`)}return n}static from(e){const n=new FM;return e.read&&(n.read=!0),e.add&&(n.add=!0),e.create&&(n.create=!0),e.write&&(n.write=!0),e.delete&&(n.delete=!0),e.deleteVersion&&(n.deleteVersion=!0),e.tag&&(n.tag=!0),e.move&&(n.move=!0),e.execute&&(n.execute=!0),e.setImmutabilityPolicy&&(n.setImmutabilityPolicy=!0),e.permanentDelete&&(n.permanentDelete=!0),n}toString(){const e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}}class jM{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){const n=new jM;for(const r of e)switch(r){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"l":n.list=!0;break;case"t":n.tag=!0;break;case"x":n.deleteVersion=!0;break;case"m":n.move=!0;break;case"e":n.execute=!0;break;case"i":n.setImmutabilityPolicy=!0;break;case"y":n.permanentDelete=!0;break;case"f":n.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${r}`)}return n}static from(e){const n=new jM;return e.read&&(n.read=!0),e.add&&(n.add=!0),e.create&&(n.create=!0),e.write&&(n.write=!0),e.delete&&(n.delete=!0),e.list&&(n.list=!0),e.deleteVersion&&(n.deleteVersion=!0),e.tag&&(n.tag=!0),e.move&&(n.move=!0),e.execute&&(n.execute=!0),e.setImmutabilityPolicy&&(n.setImmutabilityPolicy=!0),e.permanentDelete&&(n.permanentDelete=!0),e.filterByTags&&(n.filterByTags=!0),n}toString(){const e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}}class I9o{}function HM(t){return t.end?`${t.start}-${t.end}`:t.start}var p8t;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(p8t||(p8t={}));class z9{get ipRange(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}constructor(e,n,r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x){this.version=e,this.signature=n,r!==void 0&&typeof r!="string"?(this.permissions=r.permissions,this.services=r.services,this.resourceTypes=r.resourceTypes,this.protocol=r.protocol,this.startsOn=r.startsOn,this.expiresOn=r.expiresOn,this.ipRangeInner=r.ipRange,this.identifier=r.identifier,this.encryptionScope=r.encryptionScope,this.resource=r.resource,this.cacheControl=r.cacheControl,this.contentDisposition=r.contentDisposition,this.contentEncoding=r.contentEncoding,this.contentLanguage=r.contentLanguage,this.contentType=r.contentType,r.userDelegationKey&&(this.signedOid=r.userDelegationKey.signedObjectId,this.signedTenantId=r.userDelegationKey.signedTenantId,this.signedStartsOn=r.userDelegationKey.signedStartsOn,this.signedExpiresOn=r.userDelegationKey.signedExpiresOn,this.signedService=r.userDelegationKey.signedService,this.signedVersion=r.userDelegationKey.signedVersion,this.preauthorizedAgentObjectId=r.preauthorizedAgentObjectId,this.correlationId=r.correlationId)):(this.services=a,this.resourceTypes=o,this.expiresOn=c,this.permissions=r,this.protocol=s,this.startsOn=l,this.ipRangeInner=u,this.encryptionScope=x,this.identifier=d,this.resource=h,this.cacheControl=f,this.contentDisposition=p,this.contentEncoding=m,this.contentLanguage=g,this.contentType=v,A&&(this.signedOid=A.signedObjectId,this.signedTenantId=A.signedTenantId,this.signedStartsOn=A.signedStartsOn,this.signedExpiresOn=A.signedExpiresOn,this.signedService=A.signedService,this.signedVersion=A.signedVersion,this.preauthorizedAgentObjectId=y,this.correlationId=S))}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"],n=[];for(const r of e)switch(r){case"sv":this.tryAppendQueryParameter(n,r,this.version);break;case"ss":this.tryAppendQueryParameter(n,r,this.services);break;case"srt":this.tryAppendQueryParameter(n,r,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(n,r,this.protocol);break;case"st":this.tryAppendQueryParameter(n,r,this.startsOn?bc(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(n,r,this.expiresOn?bc(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(n,r,this.ipRange?HM(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(n,r,this.identifier);break;case"ses":this.tryAppendQueryParameter(n,r,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(n,r,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(n,r,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(n,r,this.signedStartsOn?bc(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(n,r,this.signedExpiresOn?bc(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(n,r,this.signedService);break;case"skv":this.tryAppendQueryParameter(n,r,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(n,r,this.resource);break;case"sp":this.tryAppendQueryParameter(n,r,this.permissions);break;case"sig":this.tryAppendQueryParameter(n,r,this.signature);break;case"rscc":this.tryAppendQueryParameter(n,r,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(n,r,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(n,r,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(n,r,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(n,r,this.contentType);break;case"saoid":this.tryAppendQueryParameter(n,r,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(n,r,this.correlationId);break}return n.join("&")}tryAppendQueryParameter(e,n,r){r&&(n=encodeURIComponent(n),r=encodeURIComponent(r),n.length>0&&r.length>0&&e.push(`${n}=${r}`))}}function lqn(t,e,n){const r=t.version?t.version:Ict,a=e instanceof Jh?e:void 0;let o;if(a===void 0&&n!==void 0&&(o=new I9o(n,e)),a===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(r>="2020-12-06")return a!==void 0?L9o(t,a):$9o(t,o);if(r>="2018-11-09")return a!==void 0?O9o(t,a):r>="2020-02-10"?D9o(t,o):B9o(t,o);if(r>="2015-04-05"){if(a!==void 0)return P9o(t,a);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")}function P9o(t,e){if(t=MK(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let n="c";t.blobName&&(n="b");let r;t.permissions&&(t.blobName?r=FM.parse(t.permissions.toString()).toString():r=jM.parse(t.permissions.toString()).toString());const a=[r||"",t.startsOn?bc(t.startsOn,!1):"",t.expiresOn?bc(t.expiresOn,!1):"",RK(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(a);return new z9(t.version,o,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function O9o(t,e){if(t=MK(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let n="c",r=t.snapshotTime;t.blobName&&(n="b",t.snapshotTime?n="bs":t.versionId&&(n="bv",r=t.versionId));let a;t.permissions&&(t.blobName?a=FM.parse(t.permissions.toString()).toString():a=jM.parse(t.permissions.toString()).toString());const o=[a||"",t.startsOn?bc(t.startsOn,!1):"",t.expiresOn?bc(t.expiresOn,!1):"",RK(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",t.version,n,r,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(o);return new z9(t.version,s,a,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function L9o(t,e){if(t=MK(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let n="c",r=t.snapshotTime;t.blobName&&(n="b",t.snapshotTime?n="bs":t.versionId&&(n="bv",r=t.versionId));let a;t.permissions&&(t.blobName?a=FM.parse(t.permissions.toString()).toString():a=jM.parse(t.permissions.toString()).toString());const o=[a||"",t.startsOn?bc(t.startsOn,!1):"",t.expiresOn?bc(t.expiresOn,!1):"",RK(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",t.version,n,r,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(o);return new z9(t.version,s,a,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}function B9o(t,e){if(t=MK(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let n="c",r=t.snapshotTime;t.blobName&&(n="b",t.snapshotTime?n="bs":t.versionId&&(n="bv",r=t.versionId));let a;t.permissions&&(t.blobName?a=FM.parse(t.permissions.toString()).toString():a=jM.parse(t.permissions.toString()).toString());const o=[a||"",t.startsOn?bc(t.startsOn,!1):"",t.expiresOn?bc(t.expiresOn,!1):"",RK(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bc(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bc(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",t.version,n,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(o);return new z9(t.version,s,a,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}function D9o(t,e){if(t=MK(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let n="c",r=t.snapshotTime;t.blobName&&(n="b",t.snapshotTime?n="bs":t.versionId&&(n="bv",r=t.versionId));let a;t.permissions&&(t.blobName?a=FM.parse(t.permissions.toString()).toString():a=jM.parse(t.permissions.toString()).toString());const o=[a||"",t.startsOn?bc(t.startsOn,!1):"",t.expiresOn?bc(t.expiresOn,!1):"",RK(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bc(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bc(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",t.version,n,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(o);return new z9(t.version,s,a,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}function $9o(t,e){if(t=MK(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let n="c",r=t.snapshotTime;t.blobName&&(n="b",t.snapshotTime?n="bs":t.versionId&&(n="bv",r=t.versionId));let a;t.permissions&&(t.blobName?a=FM.parse(t.permissions.toString()).toString():a=jM.parse(t.permissions.toString()).toString());const o=[a||"",t.startsOn?bc(t.startsOn,!1):"",t.expiresOn?bc(t.expiresOn,!1):"",RK(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bc(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bc(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",t.version,n,r,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(o);return new z9(t.version,s,a,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}function RK(t,e,n){const r=[`/blob/${t}/${e}`];return n&&r.push(`/${n}`),r.join("")}function MK(t){const e=t.version?t.version:Ict;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}class cqn{get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,n){const r=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=r.container):(this._isContainer=!1,this._containerOrBlobOperation=r.blob),n||(n=bz()),this._leaseId=n}async acquireLease(e,n={}){var r,a,o,s,l;if(this._isContainer&&(!((r=n.conditions)===null||r===void 0)&&r.ifMatch&&((a=n.conditions)===null||a===void 0?void 0:a.ifMatch)!==eT||!((o=n.conditions)===null||o===void 0)&&o.ifNoneMatch&&((s=n.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==eT||!((l=n.conditions)===null||l===void 0)&&l.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Hr.withSpan("BlobLeaseClient-acquireLease",n,async c=>{var u;return Fi(await this._containerOrBlobOperation.acquireLease({abortSignal:n.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(u=n.conditions)===null||u===void 0?void 0:u.tagConditions}),proposedLeaseId:this._leaseId,tracingOptions:c.tracingOptions}))})}async changeLease(e,n={}){var r,a,o,s,l;if(this._isContainer&&(!((r=n.conditions)===null||r===void 0)&&r.ifMatch&&((a=n.conditions)===null||a===void 0?void 0:a.ifMatch)!==eT||!((o=n.conditions)===null||o===void 0)&&o.ifNoneMatch&&((s=n.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==eT||!((l=n.conditions)===null||l===void 0)&&l.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Hr.withSpan("BlobLeaseClient-changeLease",n,async c=>{var u;const d=Fi(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:n.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(u=n.conditions)===null||u===void 0?void 0:u.tagConditions}),tracingOptions:c.tracingOptions}));return this._leaseId=e,d})}async releaseLease(e={}){var n,r,a,o,s;if(this._isContainer&&(!((n=e.conditions)===null||n===void 0)&&n.ifMatch&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==eT||!((a=e.conditions)===null||a===void 0)&&a.ifNoneMatch&&((o=e.conditions)===null||o===void 0?void 0:o.ifNoneMatch)!==eT||!((s=e.conditions)===null||s===void 0)&&s.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Hr.withSpan("BlobLeaseClient-releaseLease",e,async l=>{var c;return Fi(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(c=e.conditions)===null||c===void 0?void 0:c.tagConditions}),tracingOptions:l.tracingOptions}))})}async renewLease(e={}){var n,r,a,o,s;if(this._isContainer&&(!((n=e.conditions)===null||n===void 0)&&n.ifMatch&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==eT||!((a=e.conditions)===null||a===void 0)&&a.ifNoneMatch&&((o=e.conditions)===null||o===void 0?void 0:o.ifNoneMatch)!==eT||!((s=e.conditions)===null||s===void 0)&&s.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Hr.withSpan("BlobLeaseClient-renewLease",e,async l=>{var c;return this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(c=e.conditions)===null||c===void 0?void 0:c.tagConditions}),tracingOptions:l.tracingOptions})})}async breakLease(e,n={}){var r,a,o,s,l;if(this._isContainer&&(!((r=n.conditions)===null||r===void 0)&&r.ifMatch&&((a=n.conditions)===null||a===void 0?void 0:a.ifMatch)!==eT||!((o=n.conditions)===null||o===void 0)&&o.ifNoneMatch&&((s=n.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==eT||!((l=n.conditions)===null||l===void 0)&&l.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Hr.withSpan("BlobLeaseClient-breakLease",n,async c=>{var u;const d={abortSignal:n.abortSignal,breakPeriod:e,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(u=n.conditions)===null||u===void 0?void 0:u.tagConditions}),tracingOptions:c.tracingOptions};return Fi(await this._containerOrBlobOperation.breakLease(d))})}}const F9o=1;class j9o{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){throw Error("Quick query in browser is not supported yet.")}get readableStreamBody(){}get _response(){return this.originalResponse._response}constructor(e,n={}){this.originalResponse=e}}var m8t;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(m8t||(m8t={}));var g8t;(function(t){t.P4="P4",t.P6="P6",t.P10="P10",t.P15="P15",t.P20="P20",t.P30="P30",t.P40="P40",t.P50="P50",t.P60="P60",t.P70="P70",t.P80="P80"})(g8t||(g8t={}));function UD(t){if(t!==void 0)return t}function tm(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=rDo)}var v8t;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(v8t||(v8t={}));function i$e(t){const e=(t._response.parsedBody.pageRange||[]).map(r=>({offset:r.start,count:r.end-r.start})),n=(t._response.parsedBody.clearRange||[]).map(r=>({offset:r.start,count:r.end-r.start}));return Object.assign(Object.assign({},t),{pageRange:e,clearRange:n,_response:Object.assign(Object.assign({},t._response),{parsedBody:{pageRange:e,clearRange:n}})})}class Yct extends Error{constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,Yct.prototype)}}class Jct extends Error{constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,Jct.prototype)}}class H9o{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(const n of this.pollProgressCallbacks)n(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const n=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(n,n).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){const e=new Jct("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(n=>n!==e)}}isDone(){const e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new Yct("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw new Error("A cancel request is currently pending");return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}}class U9o extends H9o{constructor(e){const{blobClient:n,copySource:r,intervalInMs:a=15e3,onProgress:o,resumeFrom:s,startCopyFromURLOptions:l}=e;let c;s&&(c=JSON.parse(s).state);const u=Hee(Object.assign(Object.assign({},c),{blobClient:n,copySource:r,startCopyFromURLOptions:l}));super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=a}delay(){return qOo(this.intervalInMs)}}const z9o=async function(e={}){const n=this.state,{copyId:r}=n;return n.isCompleted?Hee(n):r?(await n.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal}),n.isCancelled=!0,Hee(n)):(n.isCancelled=!0,Hee(n))},G9o=async function(e={}){const n=this.state,{blobClient:r,copySource:a,startCopyFromURLOptions:o}=n;if(n.isStarted){if(!n.isCompleted)try{const s=await n.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:l,copyProgress:c}=s,u=n.copyProgress;c&&(n.copyProgress=c),l==="pending"&&c!==u&&typeof e.fireProgress=="function"?e.fireProgress(n):l==="success"?(n.result=s,n.isCompleted=!0):l==="failed"&&(n.error=new Error(`Blob copy failed with reason: "${s.copyStatusDescription||"unknown"}"`),n.isCompleted=!0)}catch(s){n.error=s,n.isCompleted=!0}}else{n.isStarted=!0;const s=await r.startCopyFromURL(a,o);n.copyId=s.copyId,s.copyStatus==="success"&&(n.result=s,n.isCompleted=!0)}return Hee(n)},V9o=function(){return JSON.stringify({state:this.state},(e,n)=>{if(e!=="blobClient")return n})};function Hee(t){return{state:Object.assign({},t),cancel:z9o,toString:V9o,update:G9o}}function Ay(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}var Uee;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(Uee||(Uee={}));class uqn{constructor(e=5){if(this.actives=0,this.completed=0,this.offset=0,this.operations=[],this.state=Uee.Good,e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new mg.EventEmitter}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(n){this.emitter.emit("error",n)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,n)=>{this.emitter.on("finish",e),this.emitter.on("error",r=>{this.state=Uee.Error,n(r)})}))}nextOperation(){return this.offset<this.operations.length?this.operations[this.offset++]:null}parallelExecute(){if(this.state!==Uee.Error){if(this.completed>=this.operations.length){this.emitter.emit("finish");return}for(;this.actives<this.concurrency;){const e=this.nextOperation();if(e)e();else return}}}}class K9o{}async function W9o(t){const e=new FileReader;return new Promise((n,r)=>{e.onloadend=a=>{n(a.target.result)},e.onerror=r,e.readAsText(t)})}const Q9o=function(){},q9o=function(){};class dw extends qct{get name(){return this._name}get containerName(){return this._containerName}constructor(e,n,r,a){a=a||{};let o,s;if(D9(n))s=e,o=n;else if(qh&&n instanceof Jh||n instanceof gd||tE(n))s=e,a=r,o=$u(n,a);else if(!n&&typeof n!="string")s=e,r&&typeof r!="string"&&(a=r),o=$u(new gd,a);else if(n&&typeof n=="string"&&r&&typeof r=="string"){const l=n,c=r,u=uK(e);if(u.kind==="AccountConnString")if(qh){const d=new Jh(u.accountName,u.accountKey);s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c)),a.proxyOptions||(a.proxyOptions=sK(u.proxyUri)),o=$u(d,a)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+u.accountSas,o=$u(new gd,a);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(s,o),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=u8t(this.url,uw.Parameters.SNAPSHOT),this._versionId=u8t(this.url,uw.Parameters.VERSIONID)}withSnapshot(e){return new dw($M(this.url,uw.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new dw($M(this.url,uw.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new bCe(this.url,this.pipeline)}getBlockBlobClient(){return new xCe(this.url,this.pipeline)}getPageBlobClient(){return new ECe(this.url,this.pipeline)}async download(e=0,n,r={}){return r.conditions=r.conditions||{},r.conditions=r.conditions||{},tm(r.customerProvidedKey,this.isHttps),Hr.withSpan("BlobClient-download",r,async a=>{var o;const s=Fi(await this.blobContext.download({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(o=r.conditions)===null||o===void 0?void 0:o.tagConditions}),requestOptions:{onDownloadProgress:qh?void 0:r.onProgress},range:e===0&&!n?void 0:Ay({offset:e,count:n}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey,tracingOptions:a.tracingOptions})),l=Object.assign(Object.assign({},s),{_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:Uye(s.objectReplicationRules)});if(!qh)return l;if((r.maxRetryRequests===void 0||r.maxRetryRequests<0)&&(r.maxRetryRequests=tDo),s.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!s.etag)throw new RangeError("File download response doesn't contain valid etag header");return new F9o(l,async c=>{var u;const d={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||s.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:(u=r.conditions)===null||u===void 0?void 0:u.tagConditions},range:Ay({count:e+s.contentLength-c,offset:c}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:r.abortSignal},d))).readableStreamBody},e,s.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})})}async exists(e={}){return Hr.withSpan("BlobClient-exists",e,async n=>{try{return tm(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:n.tracingOptions}),!0}catch(r){if(r.statusCode===404)return!1;if(r.statusCode===409&&(r.details.errorCode===sDo||r.details.errorCode===lDo))return!0;throw r}})}async getProperties(e={}){return e.conditions=e.conditions||{},tm(e.customerProvidedKey,this.isHttps),Hr.withSpan("BlobClient-getProperties",e,async n=>{var r;const a=Fi(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(r=e.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:e.customerProvidedKey,tracingOptions:n.tracingOptions}));return Object.assign(Object.assign({},a),{_response:a._response,objectReplicationDestinationPolicyId:a.objectReplicationPolicyId,objectReplicationSourceProperties:Uye(a.objectReplicationRules)})})}async delete(e={}){return e.conditions=e.conditions||{},Hr.withSpan("BlobClient-delete",e,async n=>{var r;return Fi(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(r=e.conditions)===null||r===void 0?void 0:r.tagConditions}),tracingOptions:n.tracingOptions}))})}async deleteIfExists(e={}){return Hr.withSpan("BlobClient-deleteIfExists",e,async n=>{var r,a;try{const o=Fi(await this.delete(n));return Object.assign(Object.assign({succeeded:!0},o),{_response:o._response})}catch(o){if(((r=o.details)===null||r===void 0?void 0:r.errorCode)==="BlobNotFound")return Object.assign(Object.assign({succeeded:!1},(a=o.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:o.response});throw o}})}async undelete(e={}){return Hr.withSpan("BlobClient-undelete",e,async n=>Fi(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:n.tracingOptions})))}async setHTTPHeaders(e,n={}){return n.conditions=n.conditions||{},tm(n.customerProvidedKey,this.isHttps),Hr.withSpan("BlobClient-setHTTPHeaders",n,async r=>{var a;return Fi(await this.blobContext.setHttpHeaders({abortSignal:n.abortSignal,blobHttpHeaders:e,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),tracingOptions:r.tracingOptions}))})}async setMetadata(e,n={}){return n.conditions=n.conditions||{},tm(n.customerProvidedKey,this.isHttps),Hr.withSpan("BlobClient-setMetadata",n,async r=>{var a;return Fi(await this.blobContext.setMetadata({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions}))})}async setTags(e,n={}){return Hr.withSpan("BlobClient-setTags",n,async r=>{var a;return Fi(await this.blobContext.setTags({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),tracingOptions:r.tracingOptions,tags:vDo(e)}))})}async getTags(e={}){return Hr.withSpan("BlobClient-getTags",e,async n=>{var r;const a=Fi(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(r=e.conditions)===null||r===void 0?void 0:r.tagConditions}),tracingOptions:n.tracingOptions}));return Object.assign(Object.assign({},a),{_response:a._response,tags:jee({blobTagSet:a.blobTagSet})||{}})})}getBlobLeaseClient(e){return new cqn(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},tm(e.customerProvidedKey,this.isHttps),Hr.withSpan("BlobClient-createSnapshot",e,async n=>{var r;return Fi(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(r=e.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:n.tracingOptions}))})}async beginCopyFromURL(e,n={}){const r={abortCopyFromURL:(...o)=>this.abortCopyFromURL(...o),getProperties:(...o)=>this.getProperties(...o),startCopyFromURL:(...o)=>this.startCopyFromURL(...o)},a=new U9o({blobClient:r,copySource:e,intervalInMs:n.intervalInMs,onProgress:n.onProgress,resumeFrom:n.resumeFrom,startCopyFromURLOptions:n});return await a.poll(),a}async abortCopyFromURL(e,n={}){return Hr.withSpan("BlobClient-abortCopyFromURL",n,async r=>Fi(await this.blobContext.abortCopyFromURL(e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,tracingOptions:r.tracingOptions})))}async syncCopyFromURL(e,n={}){return n.conditions=n.conditions||{},n.sourceConditions=n.sourceConditions||{},Hr.withSpan("BlobClient-syncCopyFromURL",n,async r=>{var a,o,s,l,c,u,d;return Fi(await this.blobContext.copyFromURL(e,{abortSignal:n.abortSignal,metadata:n.metadata,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(o=n.sourceConditions)===null||o===void 0?void 0:o.ifMatch,sourceIfModifiedSince:(s=n.sourceConditions)===null||s===void 0?void 0:s.ifModifiedSince,sourceIfNoneMatch:(l=n.sourceConditions)===null||l===void 0?void 0:l.ifNoneMatch,sourceIfUnmodifiedSince:(c=n.sourceConditions)===null||c===void 0?void 0:c.ifUnmodifiedSince},sourceContentMD5:n.sourceContentMD5,copySourceAuthorization:jre(n.sourceAuthorization),tier:UD(n.tier),blobTagsString:HD(n.tags),immutabilityPolicyExpiry:(u=n.immutabilityPolicy)===null||u===void 0?void 0:u.expiriesOn,immutabilityPolicyMode:(d=n.immutabilityPolicy)===null||d===void 0?void 0:d.policyMode,legalHold:n.legalHold,encryptionScope:n.encryptionScope,copySourceTags:n.copySourceTags,tracingOptions:r.tracingOptions}))})}async setAccessTier(e,n={}){return Hr.withSpan("BlobClient-setAccessTier",n,async r=>{var a;return Fi(await this.blobContext.setTier(UD(e),{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),rehydratePriority:n.rehydratePriority,tracingOptions:r.tracingOptions}))})}async downloadToBuffer(e,n,r,a={}){var o;let s,l=0,c=0,u=a;e instanceof gn?(s=e,l=n||0,c=typeof r=="number"?r:0):(l=typeof e=="number"?e:0,c=typeof n=="number"?n:0,u=r||{});let d=(o=u.blockSize)!==null&&o!==void 0?o:0;if(d<0)throw new RangeError("blockSize option must be >= 0");if(d===0&&(d=zQe),l<0)throw new RangeError("offset option must be >= 0");if(c&&c<=0)throw new RangeError("count option must be greater than 0");return u.conditions||(u.conditions={}),Hr.withSpan("BlobClient-downloadToBuffer",u,async h=>{if(!c){const m=await this.getProperties(Object.assign(Object.assign({},u),{tracingOptions:h.tracingOptions}));if(c=m.contentLength-l,c<0)throw new RangeError(`offset ${l} shouldn't be larger than blob size ${m.contentLength}`)}if(!s)try{s=gn.alloc(c)}catch(m){throw new Error(`Unable to allocate the buffer of size: ${c}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".	 ${m.message}`)}if(s.length<c)throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${c}`);let f=0;const p=new uqn(u.concurrency);for(let m=l;m<l+c;m=m+d)p.addOperation(async()=>{let g=l+c;m+d<g&&(g=m+d),(await this.download(m,g-m,{abortSignal:u.abortSignal,conditions:u.conditions,maxRetryRequests:u.maxRetryRequestsPerBlock,customerProvidedKey:u.customerProvidedKey,tracingOptions:h.tracingOptions})).readableStreamBody,await void 0,f+=g-m,u.onProgress&&u.onProgress({loadedBytes:f})});return await p.do(),s})}async downloadToFile(e,n=0,r,a={}){return Hr.withSpan("BlobClient-downloadToFile",a,async o=>{const s=await this.download(n,r,Object.assign(Object.assign({},a),{tracingOptions:o.tracingOptions}));return s.readableStreamBody&&await(s.readableStreamBody,void 0),s.blobDownloadStream=void 0,s})}getBlobAndContainerNamesFromUrl(){let e,n;try{const r=new URL(this.url);if(r.host.split(".")[1]==="blob"){const a=r.pathname.match("/([^/]*)(/(.*))?");e=a[1],n=a[3]}else if(Oct(r)){const a=r.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=a[2],n=a[4]}else{const a=r.pathname.match("/([^/]*)(/(.*))?");e=a[1],n=a[3]}if(e=decodeURIComponent(e),n=decodeURIComponent(n),n=n.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:n,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,n={}){return Hr.withSpan("BlobClient-startCopyFromURL",n,async r=>{var a,o,s;return n.conditions=n.conditions||{},n.sourceConditions=n.sourceConditions||{},Fi(await this.blobContext.startCopyFromURL(e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions.ifMatch,sourceIfModifiedSince:n.sourceConditions.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions.ifUnmodifiedSince,sourceIfTags:n.sourceConditions.tagConditions},immutabilityPolicyExpiry:(o=n.immutabilityPolicy)===null||o===void 0?void 0:o.expiriesOn,immutabilityPolicyMode:(s=n.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:n.legalHold,rehydratePriority:n.rehydratePriority,tier:UD(n.tier),blobTagsString:HD(n.tags),sealBlob:n.sealBlob,tracingOptions:r.tracingOptions}))})}generateSasUrl(e){return new Promise(n=>{if(!(this.credential instanceof Jh))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");const r=lqn(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),this.credential).toString();n(Pct(this.url,r))})}async deleteImmutabilityPolicy(e={}){return Hr.withSpan("BlobClient-deleteImmutabilityPolicy",e,async n=>Fi(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:n.tracingOptions})))}async setImmutabilityPolicy(e,n={}){return Hr.withSpan("BlobClient-setImmutabilityPolicy",n,async r=>Fi(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:r.tracingOptions})))}async setLegalHold(e,n={}){return Hr.withSpan("BlobClient-setLegalHold",n,async r=>Fi(await this.blobContext.setLegalHold(e,{tracingOptions:r.tracingOptions})))}}class bCe extends dw{constructor(e,n,r,a){let o,s;if(a=a||{},D9(n))s=e,o=n;else if(qh&&n instanceof Jh||n instanceof gd||tE(n))s=e,a=r,o=$u(n,a);else if(!n&&typeof n!="string")s=e,o=$u(new gd,a);else if(n&&typeof n=="string"&&r&&typeof r=="string"){const l=n,c=r,u=uK(e);if(u.kind==="AccountConnString")if(qh){const d=new Jh(u.accountName,u.accountKey);s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c)),a.proxyOptions||(a.proxyOptions=sK(u.proxyUri)),o=$u(d,a)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+u.accountSas,o=$u(new gd,a);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(s,o),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new bCe($M(this.url,uw.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},tm(e.customerProvidedKey,this.isHttps),Hr.withSpan("AppendBlobClient-create",e,async n=>{var r,a,o;return Fi(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(r=e.conditions)===null||r===void 0?void 0:r.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:(a=e.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(o=e.immutabilityPolicy)===null||o===void 0?void 0:o.policyMode,legalHold:e.legalHold,blobTagsString:HD(e.tags),tracingOptions:n.tracingOptions}))})}async createIfNotExists(e={}){const n={ifNoneMatch:IVn};return Hr.withSpan("AppendBlobClient-createIfNotExists",e,async r=>{var a,o;try{const s=Fi(await this.create(Object.assign(Object.assign({},r),{conditions:n})));return Object.assign(Object.assign({succeeded:!0},s),{_response:s._response})}catch(s){if(((a=s.details)===null||a===void 0?void 0:a.errorCode)==="BlobAlreadyExists")return Object.assign(Object.assign({succeeded:!1},(o=s.response)===null||o===void 0?void 0:o.parsedHeaders),{_response:s.response});throw s}})}async seal(e={}){return e.conditions=e.conditions||{},Hr.withSpan("AppendBlobClient-seal",e,async n=>{var r;return Fi(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(r=e.conditions)===null||r===void 0?void 0:r.tagConditions}),tracingOptions:n.tracingOptions}))})}async appendBlock(e,n,r={}){return r.conditions=r.conditions||{},tm(r.customerProvidedKey,this.isHttps),Hr.withSpan("AppendBlobClient-appendBlock",r,async a=>{var o;return Fi(await this.appendBlobContext.appendBlock(n,e,{abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(o=r.conditions)===null||o===void 0?void 0:o.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:a.tracingOptions}))})}async appendBlockFromURL(e,n,r,a={}){return a.conditions=a.conditions||{},a.sourceConditions=a.sourceConditions||{},tm(a.customerProvidedKey,this.isHttps),Hr.withSpan("AppendBlobClient-appendBlockFromURL",a,async o=>{var s,l,c,u,d;return Fi(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:a.abortSignal,sourceRange:Ay({offset:n,count:r}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(l=a.sourceConditions)===null||l===void 0?void 0:l.ifMatch,sourceIfModifiedSince:(c=a.sourceConditions)===null||c===void 0?void 0:c.ifModifiedSince,sourceIfNoneMatch:(u=a.sourceConditions)===null||u===void 0?void 0:u.ifNoneMatch,sourceIfUnmodifiedSince:(d=a.sourceConditions)===null||d===void 0?void 0:d.ifUnmodifiedSince},copySourceAuthorization:jre(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions}))})}}class xCe extends dw{constructor(e,n,r,a){let o,s;if(a=a||{},D9(n))s=e,o=n;else if(qh&&n instanceof Jh||n instanceof gd||tE(n))s=e,a=r,o=$u(n,a);else if(!n&&typeof n!="string")s=e,r&&typeof r!="string"&&(a=r),o=$u(new gd,a);else if(n&&typeof n=="string"&&r&&typeof r=="string"){const l=n,c=r,u=uK(e);if(u.kind==="AccountConnString")if(qh){const d=new Jh(u.accountName,u.accountKey);s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c)),a.proxyOptions||(a.proxyOptions=sK(u.proxyUri)),o=$u(d,a)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+u.accountSas,o=$u(new gd,a);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(s,o),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new xCe($M(this.url,uw.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,n={}){if(tm(n.customerProvidedKey,this.isHttps),!qh)throw new Error("This operation currently is only supported in Node.js.");return Hr.withSpan("BlockBlobClient-query",n,async r=>{var a;const o=Fi(await this._blobContext.query({abortSignal:n.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:h8t(n.inputTextConfiguration),outputSerialization:h8t(n.outputTextConfiguration)},leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions}));return new j9o(o,{abortSignal:n.abortSignal,onProgress:n.onProgress,onError:n.onError})})}async upload(e,n,r={}){return r.conditions=r.conditions||{},tm(r.customerProvidedKey,this.isHttps),Hr.withSpan("BlockBlobClient-upload",r,async a=>{var o,s,l;return Fi(await this.blockBlobContext.upload(n,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(o=r.conditions)===null||o===void 0?void 0:o.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(s=r.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(l=r.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:r.legalHold,tier:UD(r.tier),blobTagsString:HD(r.tags),tracingOptions:a.tracingOptions}))})}async syncUploadFromURL(e,n={}){return n.conditions=n.conditions||{},tm(n.customerProvidedKey,this.isHttps),Hr.withSpan("BlockBlobClient-syncUploadFromURL",n,async r=>{var a,o,s,l,c,u;return Fi(await this.blockBlobContext.putBlobFromUrl(0,e,Object.assign(Object.assign({},n),{blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(o=n.sourceConditions)===null||o===void 0?void 0:o.ifMatch,sourceIfModifiedSince:(s=n.sourceConditions)===null||s===void 0?void 0:s.ifModifiedSince,sourceIfNoneMatch:(l=n.sourceConditions)===null||l===void 0?void 0:l.ifNoneMatch,sourceIfUnmodifiedSince:(c=n.sourceConditions)===null||c===void 0?void 0:c.ifUnmodifiedSince,sourceIfTags:(u=n.sourceConditions)===null||u===void 0?void 0:u.tagConditions},cpkInfo:n.customerProvidedKey,copySourceAuthorization:jre(n.sourceAuthorization),tier:UD(n.tier),blobTagsString:HD(n.tags),copySourceTags:n.copySourceTags,tracingOptions:r.tracingOptions})))})}async stageBlock(e,n,r,a={}){return tm(a.customerProvidedKey,this.isHttps),Hr.withSpan("BlockBlobClient-stageBlock",a,async o=>Fi(await this.blockBlobContext.stageBlock(e,r,n,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions})))}async stageBlockFromURL(e,n,r=0,a,o={}){return tm(o.customerProvidedKey,this.isHttps),Hr.withSpan("BlockBlobClient-stageBlockFromURL",o,async s=>Fi(await this.blockBlobContext.stageBlockFromURL(e,0,n,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:r===0&&!a?void 0:Ay({offset:r,count:a}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:jre(o.sourceAuthorization),tracingOptions:s.tracingOptions})))}async commitBlockList(e,n={}){return n.conditions=n.conditions||{},tm(n.customerProvidedKey,this.isHttps),Hr.withSpan("BlockBlobClient-commitBlockList",n,async r=>{var a,o,s;return Fi(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:(o=n.immutabilityPolicy)===null||o===void 0?void 0:o.expiriesOn,immutabilityPolicyMode:(s=n.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:n.legalHold,tier:UD(n.tier),blobTagsString:HD(n.tags),tracingOptions:r.tracingOptions}))})}async getBlockList(e,n={}){return Hr.withSpan("BlockBlobClient-getBlockList",n,async r=>{var a;const o=Fi(await this.blockBlobContext.getBlockList(e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),tracingOptions:r.tracingOptions}));return o.committedBlocks||(o.committedBlocks=[]),o.uncommittedBlocks||(o.uncommittedBlocks=[]),o})}async uploadData(e,n={}){return Hr.withSpan("BlockBlobClient-uploadData",n,async r=>{if(qh){let a;return e instanceof gn?a=e:e instanceof ArrayBuffer?a=gn.from(e):(e=e,a=gn.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((o,s)=>a.slice(o,o+s),a.byteLength,r)}else{const a=new Blob([e]);return this.uploadSeekableInternal((o,s)=>a.slice(o,o+s),a.size,r)}})}async uploadBrowserData(e,n={}){return Hr.withSpan("BlockBlobClient-uploadBrowserData",n,async r=>{const a=new Blob([e]);return this.uploadSeekableInternal((o,s)=>a.slice(o,o+s),a.size,r)})}async uploadSeekableInternal(e,n,r={}){var a,o;let s=(a=r.blockSize)!==null&&a!==void 0?a:0;if(s<0||s>n$e)throw new RangeError(`blockSize option must be >= 0 and <= ${n$e}`);const l=(o=r.maxSingleShotSize)!==null&&o!==void 0?o:t$e;if(l<0||l>t$e)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${t$e}`);if(s===0){if(n>n$e*mfe)throw new RangeError(`${n} is too larger to upload to a block blob.`);n>l&&(s=Math.ceil(n/mfe),s<zQe&&(s=zQe))}return r.blobHTTPHeaders||(r.blobHTTPHeaders={}),r.conditions||(r.conditions={}),Hr.withSpan("BlockBlobClient-uploadSeekableInternal",r,async c=>{if(n<=l)return Fi(await this.upload(e(0,n),n,c));const u=Math.floor((n-1)/s)+1;if(u>mfe)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${mfe}`);const d=[],h=bz();let f=0;const p=new uqn(r.concurrency);for(let m=0;m<u;m++)p.addOperation(async()=>{const g=d8t(h,m),v=s*m,y=(m===u-1?n:v+s)-v;d.push(g),await this.stageBlock(g,e(v,y),y,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:c.tracingOptions}),f+=y,r.onProgress&&r.onProgress({loadedBytes:f})});return await p.do(),this.commitBlockList(d,c)})}async uploadFile(e,n={}){return Hr.withSpan("BlockBlobClient-uploadFile",n,async r=>{const a=(await Q9o()).size;return this.uploadSeekableInternal((o,s)=>()=>q9o(),a,Object.assign(Object.assign({},n),{tracingOptions:r.tracingOptions}))})}async uploadStream(e,n=eDo,r=5,a={}){return a.blobHTTPHeaders||(a.blobHTTPHeaders={}),a.conditions||(a.conditions={}),Hr.withSpan("BlockBlobClient-uploadStream",a,async o=>{let s=0;const l=bz();let c=0;const u=[];return await new K9o(e,n,r,async(h,f)=>{const p=d8t(l,s);u.push(p),s++,await this.stageBlock(p,h,f,{conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions}),c+=f,a.onProgress&&a.onProgress({loadedBytes:c})},Math.ceil(r/4*3)).do(),Fi(await this.commitBlockList(u,Object.assign(Object.assign({},a),{tracingOptions:o.tracingOptions})))})}}class ECe extends dw{constructor(e,n,r,a){let o,s;if(a=a||{},D9(n))s=e,o=n;else if(qh&&n instanceof Jh||n instanceof gd||tE(n))s=e,a=r,o=$u(n,a);else if(!n&&typeof n!="string")s=e,o=$u(new gd,a);else if(n&&typeof n=="string"&&r&&typeof r=="string"){const l=n,c=r,u=uK(e);if(u.kind==="AccountConnString")if(qh){const d=new Jh(u.accountName,u.accountKey);s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c)),a.proxyOptions||(a.proxyOptions=sK(u.proxyUri)),o=$u(d,a)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")s=Pd(Pd(u.url,encodeURIComponent(l)),encodeURIComponent(c))+"?"+u.accountSas,o=$u(new gd,a);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(s,o),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new ECe($M(this.url,uw.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,n={}){return n.conditions=n.conditions||{},tm(n.customerProvidedKey,this.isHttps),Hr.withSpan("PageBlobClient-create",n,async r=>{var a,o,s;return Fi(await this.pageBlobContext.create(0,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,blobSequenceNumber:n.blobSequenceNumber,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:(o=n.immutabilityPolicy)===null||o===void 0?void 0:o.expiriesOn,immutabilityPolicyMode:(s=n.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:n.legalHold,tier:UD(n.tier),blobTagsString:HD(n.tags),tracingOptions:r.tracingOptions}))})}async createIfNotExists(e,n={}){return Hr.withSpan("PageBlobClient-createIfNotExists",n,async r=>{var a,o;try{const s={ifNoneMatch:IVn},l=Fi(await this.create(e,Object.assign(Object.assign({},n),{conditions:s,tracingOptions:r.tracingOptions})));return Object.assign(Object.assign({succeeded:!0},l),{_response:l._response})}catch(s){if(((a=s.details)===null||a===void 0?void 0:a.errorCode)==="BlobAlreadyExists")return Object.assign(Object.assign({succeeded:!1},(o=s.response)===null||o===void 0?void 0:o.parsedHeaders),{_response:s.response});throw s}})}async uploadPages(e,n,r,a={}){return a.conditions=a.conditions||{},tm(a.customerProvidedKey,this.isHttps),Hr.withSpan("PageBlobClient-uploadPages",a,async o=>{var s;return Fi(await this.pageBlobContext.uploadPages(r,e,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},range:Ay({offset:n,count:r}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions}))})}async uploadPagesFromURL(e,n,r,a,o={}){return o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},tm(o.customerProvidedKey,this.isHttps),Hr.withSpan("PageBlobClient-uploadPagesFromURL",o,async s=>{var l,c,u,d,h;return Fi(await this.pageBlobContext.uploadPagesFromURL(e,Ay({offset:n,count:a}),0,Ay({offset:r,count:a}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:Object.assign(Object.assign({},o.conditions),{ifTags:(l=o.conditions)===null||l===void 0?void 0:l.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(c=o.sourceConditions)===null||c===void 0?void 0:c.ifMatch,sourceIfModifiedSince:(u=o.sourceConditions)===null||u===void 0?void 0:u.ifModifiedSince,sourceIfNoneMatch:(d=o.sourceConditions)===null||d===void 0?void 0:d.ifNoneMatch,sourceIfUnmodifiedSince:(h=o.sourceConditions)===null||h===void 0?void 0:h.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:jre(o.sourceAuthorization),tracingOptions:s.tracingOptions}))})}async clearPages(e=0,n,r={}){return r.conditions=r.conditions||{},Hr.withSpan("PageBlobClient-clearPages",r,async a=>{var o;return Fi(await this.pageBlobContext.clearPages(0,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(o=r.conditions)===null||o===void 0?void 0:o.tagConditions}),range:Ay({offset:e,count:n}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:a.tracingOptions}))})}async getPageRanges(e=0,n,r={}){return r.conditions=r.conditions||{},Hr.withSpan("PageBlobClient-getPageRanges",r,async a=>{var o;const s=Fi(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(o=r.conditions)===null||o===void 0?void 0:o.tagConditions}),range:Ay({offset:e,count:n}),tracingOptions:a.tracingOptions}));return i$e(s)})}async listPageRangesSegment(e=0,n,r,a={}){return Hr.withSpan("PageBlobClient-getPageRangesSegment",a,async o=>{var s;return Fi(await this.pageBlobContext.getPageRanges({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),range:Ay({offset:e,count:n}),marker:r,maxPageSize:a.maxPageSize,tracingOptions:o.tracingOptions}))})}listPageRangeItemSegments(){return sv(this,arguments,function*(n=0,r,a,o={}){let s;if(a||a===void 0)do s=yield uo(this.listPageRangesSegment(n,r,a,o)),a=s.continuationToken,yield yield uo(yield uo(s));while(a)})}listPageRangeItems(){return sv(this,arguments,function*(n=0,r,a={}){var o,s,l,c;let u;try{for(var d=!0,h=R0(this.listPageRangeItemSegments(n,r,u,a)),f;f=yield uo(h.next()),o=f.done,!o;d=!0)c=f.value,d=!1,yield uo(yield*hP(R0(f8t(c))))}catch(p){s={error:p}}finally{try{!d&&!o&&(l=h.return)&&(yield uo(l.call(h)))}finally{if(s)throw s.error}}})}listPageRanges(e=0,n,r={}){r.conditions=r.conditions||{};const a=this.listPageRangeItems(e,n,r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeItemSegments(e,n,o.continuationToken,Object.assign({maxPageSize:o.maxPageSize},r))}}async getPageRangesDiff(e,n,r,a={}){return a.conditions=a.conditions||{},Hr.withSpan("PageBlobClient-getPageRangesDiff",a,async o=>{var s;const l=Fi(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),prevsnapshot:r,range:Ay({offset:e,count:n}),tracingOptions:o.tracingOptions}));return i$e(l)})}async listPageRangesDiffSegment(e,n,r,a,o={}){return Hr.withSpan("PageBlobClient-getPageRangesDiffSegment",o,async s=>{var l;return Fi(await this.pageBlobContext.getPageRangesDiff({abortSignal:o==null?void 0:o.abortSignal,leaseAccessConditions:o==null?void 0:o.conditions,modifiedAccessConditions:Object.assign(Object.assign({},o==null?void 0:o.conditions),{ifTags:(l=o==null?void 0:o.conditions)===null||l===void 0?void 0:l.tagConditions}),prevsnapshot:r,range:Ay({offset:e,count:n}),marker:a,maxPageSize:o==null?void 0:o.maxPageSize,tracingOptions:s.tracingOptions}))})}listPageRangeDiffItemSegments(e,n,r,a,o){return sv(this,arguments,function*(){let l;if(a||a===void 0)do l=yield uo(this.listPageRangesDiffSegment(e,n,r,a,o)),a=l.continuationToken,yield yield uo(yield uo(l));while(a)})}listPageRangeDiffItems(e,n,r,a){return sv(this,arguments,function*(){var s,l,c,u;let d;try{for(var h=!0,f=R0(this.listPageRangeDiffItemSegments(e,n,r,d,a)),p;p=yield uo(f.next()),s=p.done,!s;h=!0)u=p.value,h=!1,yield uo(yield*hP(R0(f8t(u))))}catch(m){l={error:m}}finally{try{!h&&!s&&(c=f.return)&&(yield uo(c.call(f)))}finally{if(l)throw l.error}}})}listPageRangesDiff(e,n,r,a={}){a.conditions=a.conditions||{};const o=this.listPageRangeDiffItems(e,n,r,Object.assign({},a));return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeDiffItemSegments(e,n,r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},a))}}async getPageRangesDiffForManagedDisks(e,n,r,a={}){return a.conditions=a.conditions||{},Hr.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",a,async o=>{var s;const l=Fi(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),prevSnapshotUrl:r,range:Ay({offset:e,count:n}),tracingOptions:o.tracingOptions}));return i$e(l)})}async resize(e,n={}){return n.conditions=n.conditions||{},Hr.withSpan("PageBlobClient-resize",n,async r=>{var a;return Fi(await this.pageBlobContext.resize(e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions}))})}async updateSequenceNumber(e,n,r={}){return r.conditions=r.conditions||{},Hr.withSpan("PageBlobClient-updateSequenceNumber",r,async a=>{var o;return Fi(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:r.abortSignal,blobSequenceNumber:n,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(o=r.conditions)===null||o===void 0?void 0:o.tagConditions}),tracingOptions:a.tracingOptions}))})}async startCopyIncremental(e,n={}){return Hr.withSpan("PageBlobClient-startCopyIncremental",n,async r=>{var a;return Fi(await this.pageBlobContext.copyIncremental(e,{abortSignal:n.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:(a=n.conditions)===null||a===void 0?void 0:a.tagConditions}),tracingOptions:r.tracingOptions}))})}}async function Y9o(t){const e=await t.blobBody;return W9o(e)}function J9o(t){return new Blob([t]).size}const vfe=": ",A8t=" ",y8t=-1;class Z9o{constructor(e,n){if(!e||!e.contentType)throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.");if(!n||n.size===0)throw new RangeError("Invalid state: subRequests is not provided or size is 0.");this.batchResponse=e,this.subRequests=n,this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1],this.perResponsePrefix=`--${this.responseBatchBoundary}${vR}`,this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==nDo.HTTP_ACCEPTED)throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`);const n=(await Y9o(this.batchResponse)).split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1),r=n.length;if(r!==this.subRequests.size&&r!==1)throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.");const a=new Array(r);let o=0,s=0;for(let l=0;l<r;l++){const c=n[l],u={};u.headers=Rct(BP());const d=c.split(`${vR}`);let h=!1,f=!1,p=!1,m=y8t;for(const g of d){if(!h){if(g.startsWith(P2.CONTENT_ID)&&(m=parseInt(g.split(vfe)[1])),g.startsWith(PVn)){h=!0;const v=g.split(A8t);u.status=parseInt(v[1]),u.statusMessage=v.slice(2).join(A8t)}continue}if(g.trim()===""){f||(f=!0);continue}if(f)u.bodyAsText||(u.bodyAsText=""),u.bodyAsText+=g;else{if(g.indexOf(vfe)===-1)throw new Error(`Invalid state: find non-empty line '${g}' without HTTP header delimiter '${vfe}'.`);const v=g.split(vfe);u.headers.set(v[0],v[1]),v[0]===P2.X_MS_ERROR_CODE&&(u.errorCode=v[1],p=!0)}}m!==y8t&&Number.isInteger(m)&&m>=0&&m<this.subRequests.size&&a[m]===void 0?(u._request=this.subRequests.get(m),a[m]=u):ip.error(`subResponses[${l}] is dropped as the Content-ID is not found or invalid, Content-ID: ${m}`),p?s++:o++}return{subResponses:a,subResponsesSucceededCount:o,subResponsesFailedCount:s}}}var uj;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(uj||(uj={}));class zye{static async lock(e){return new Promise(n=>{this.keys[e]===void 0||this.keys[e]===uj.UNLOCKED?(this.keys[e]=uj.LOCKED,n()):this.onUnlockEvent(e,()=>{this.keys[e]=uj.LOCKED,n()})})}static async unlock(e){return new Promise(n=>{this.keys[e]===uj.LOCKED&&this.emitUnlockEvent(e),delete this.keys[e],n()})}static onUnlockEvent(e,n){this.listeners[e]===void 0?this.listeners[e]=[n]:this.listeners[e].push(n)}static emitUnlockEvent(e){if(this.listeners[e]!==void 0&&this.listeners[e].length>0){const n=this.listeners[e].shift();setImmediate(()=>{n.call(this)})}}}zye.keys={};zye.listeners={};class a$e{constructor(){this.batch="batch",this.batchRequest=new X9o}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,n){await zye.lock(this.batch);try{this.batchRequest.preAddSubRequest(e),await n(),this.batchRequest.postAddSubRequest(e)}finally{await zye.unlock(this.batch)}}setBatchType(e){if(this.batchType||(this.batchType=e),this.batchType!==e)throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}async deleteBlob(e,n,r){let a,o;if(typeof e=="string"&&(qh&&n instanceof Jh||n instanceof gd||tE(n)))a=e,o=n;else if(e instanceof dw)a=e.url,o=e.credential,r=n;else throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.");return r||(r={}),Hr.withSpan("BatchDeleteRequest-addSubRequest",r,async s=>{this.setBatchType("delete"),await this.addSubRequestInternal({url:a,credential:o},async()=>{await new dw(a,this.batchRequest.createPipeline(o)).delete(s)})})}async setBlobAccessTier(e,n,r,a){let o,s,l;if(typeof e=="string"&&(qh&&n instanceof Jh||n instanceof gd||tE(n)))o=e,s=n,l=r;else if(e instanceof dw)o=e.url,s=e.credential,l=n,a=r;else throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.");return a||(a={}),Hr.withSpan("BatchSetTierRequest-addSubRequest",a,async c=>{this.setBatchType("setAccessTier"),await this.addSubRequestInternal({url:o,credential:s},async()=>{await new dw(o,this.batchRequest.createPipeline(s)).setAccessTier(l,c)})})}}class X9o{constructor(){this.operationCount=0,this.body="";const e=bz();this.boundary=`batch_${e}`,this.subRequestPrefix=`--${this.boundary}${vR}${P2.CONTENT_TYPE}: application/http${vR}${P2.CONTENT_TRANSFER_ENCODING}: binary`,this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`,this.batchRequestEnding=`--${this.boundary}--`,this.subRequests=new Map}createPipeline(e){const n=DGn();n.addPolicy(AVn({stringifyXML:kVn,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"}),n.addPolicy(t$o()),n.addPolicy(e$o(this),{afterPhase:"Sign"}),tE(e)?n.addPolicy(Cct({credential:e,scopes:NVn,challengeCallbacks:{authorizeRequestOnChallenge:xVn}}),{phase:"Sign"}):e instanceof Jh&&n.addPolicy(FVn({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"});const r=new jVn([]);return r._credential=e,r._corePipeline=n,r}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${P2.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${pDo(e.url)} ${PVn}${vR}`].join(vR);for(const[n,r]of e.headers)this.body+=`${n}: ${r}${vR}`;this.body+=vR}preAddSubRequest(e){if(this.operationCount>=c8t)throw new RangeError(`Cannot exceed ${c8t} sub requests in a single batch`);const n=LVn(e.url);if(!n||n==="")throw new RangeError(`Invalid url for sub request: '${e.url}'`)}postAddSubRequest(e){this.subRequests.set(this.operationCount,e),this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${vR}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function e$o(t){return{name:"batchRequestAssemblePolicy",async sendRequest(e){return t.appendSubRequestToBody(e),{request:e,status:200,headers:BP()}}}}function t$o(){return{name:"batchHeaderFilterPolicy",async sendRequest(t,e){let n="";for(const[r]of t.headers)DVn(r,P2.X_MS_VERSION)&&(n=r);return n!==""&&t.headers.delete(n),e(t)}}}class dqn{constructor(e,n,r){let a;D9(n)?a=n:n?a=$u(n,r):a=$u(new gd,r);const o=new sqn(e,HVn(a)),s=LVn(e);s&&s!=="/"?this.serviceOrContainerContext=o.container:this.serviceOrContainerContext=o.service}createBatch(){return new a$e}async deleteBlobs(e,n,r){const a=new a$e;for(const o of e)typeof o=="string"?await a.deleteBlob(o,n,r):await a.deleteBlob(o,n);return this.submitBatch(a)}async setBlobsAccessTier(e,n,r,a){const o=new a$e;for(const s of e)typeof s=="string"?await o.setBlobAccessTier(s,n,r,a):await o.setBlobAccessTier(s,n,r);return this.submitBatch(o)}async submitBatch(e,n={}){if(!e||e.getSubRequests().size===0)throw new RangeError("Batch request should contain one or more sub requests.");return Hr.withSpan("BlobBatchClient-submitBatch",n,async r=>{const a=e.getHttpRequestBody(),o=Fi(await this.serviceOrContainerContext.submitBatch(J9o(a),e.getMultiPartContentType(),a,Object.assign({},r))),l=await new Z9o(o,e.getSubRequests()).parseBatchResponse();return{_response:o._response,contentType:o.contentType,errorCode:o.errorCode,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,subResponses:l.subResponses,subResponsesSucceededCount:l.subResponsesSucceededCount,subResponsesFailedCount:l.subResponsesFailedCount}})}}class n$o extends qct{get containerName(){return this._containerName}constructor(e,n,r){let a,o;if(r=r||{},D9(n))o=e,a=n;else if(qh&&n instanceof Jh||n instanceof gd||tE(n))o=e,a=$u(n,r);else if(!n&&typeof n!="string")o=e,a=$u(new gd,r);else if(n&&typeof n=="string"){const s=n,l=uK(e);if(l.kind==="AccountConnString")if(qh){const c=new Jh(l.accountName,l.accountKey);o=Pd(l.url,encodeURIComponent(s)),r.proxyOptions||(r.proxyOptions=sK(l.proxyUri)),a=$u(c,r)}else throw new Error("Account connection string is only supported in Node.js environment");else if(l.kind==="SASConnString")o=Pd(l.url,encodeURIComponent(s))+"?"+l.accountSas,a=$u(new gd,r);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName parameter");super(o,a),this._containerName=this.getContainerNameFromUrl(),this.containerContext=this.storageClientContext.container}async create(e={}){return Hr.withSpan("ContainerClient-create",e,async n=>Fi(await this.containerContext.create(n)))}async createIfNotExists(e={}){return Hr.withSpan("ContainerClient-createIfNotExists",e,async n=>{var r,a;try{const o=await this.create(n);return Object.assign(Object.assign({succeeded:!0},o),{_response:o._response})}catch(o){if(((r=o.details)===null||r===void 0?void 0:r.errorCode)==="ContainerAlreadyExists")return Object.assign(Object.assign({succeeded:!1},(a=o.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:o.response});throw o}})}async exists(e={}){return Hr.withSpan("ContainerClient-exists",e,async n=>{try{return await this.getProperties({abortSignal:e.abortSignal,tracingOptions:n.tracingOptions}),!0}catch(r){if(r.statusCode===404)return!1;throw r}})}getBlobClient(e){return new dw(Pd(this.url,gfe(e)),this.pipeline)}getAppendBlobClient(e){return new bCe(Pd(this.url,gfe(e)),this.pipeline)}getBlockBlobClient(e){return new xCe(Pd(this.url,gfe(e)),this.pipeline)}getPageBlobClient(e){return new ECe(Pd(this.url,gfe(e)),this.pipeline)}async getProperties(e={}){return e.conditions||(e.conditions={}),Hr.withSpan("ContainerClient-getProperties",e,async n=>Fi(await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:e.abortSignal},e.conditions),{tracingOptions:n.tracingOptions}))))}async delete(e={}){return e.conditions||(e.conditions={}),Hr.withSpan("ContainerClient-delete",e,async n=>Fi(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:n.tracingOptions})))}async deleteIfExists(e={}){return Hr.withSpan("ContainerClient-deleteIfExists",e,async n=>{var r,a;try{const o=await this.delete(n);return Object.assign(Object.assign({succeeded:!0},o),{_response:o._response})}catch(o){if(((r=o.details)===null||r===void 0?void 0:r.errorCode)==="ContainerNotFound")return Object.assign(Object.assign({succeeded:!1},(a=o.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:o.response});throw o}})}async setMetadata(e,n={}){if(n.conditions||(n.conditions={}),n.conditions.ifUnmodifiedSince)throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service");return Hr.withSpan("ContainerClient-setMetadata",n,async r=>Fi(await this.containerContext.setMetadata({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:e,modifiedAccessConditions:n.conditions,tracingOptions:r.tracingOptions})))}async getAccessPolicy(e={}){return e.conditions||(e.conditions={}),Hr.withSpan("ContainerClient-getAccessPolicy",e,async n=>{const r=Fi(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:n.tracingOptions})),a={_response:r._response,blobPublicAccess:r.blobPublicAccess,date:r.date,etag:r.etag,errorCode:r.errorCode,lastModified:r.lastModified,requestId:r.requestId,clientRequestId:r.clientRequestId,signedIdentifiers:[],version:r.version};for(const o of r){let s;o.accessPolicy&&(s={permissions:o.accessPolicy.permissions},o.accessPolicy.expiresOn&&(s.expiresOn=new Date(o.accessPolicy.expiresOn)),o.accessPolicy.startsOn&&(s.startsOn=new Date(o.accessPolicy.startsOn))),a.signedIdentifiers.push({accessPolicy:s,id:o.id})}return a})}async setAccessPolicy(e,n,r={}){return r.conditions=r.conditions||{},Hr.withSpan("ContainerClient-setAccessPolicy",r,async a=>{const o=[];for(const s of n||[])o.push({accessPolicy:{expiresOn:s.accessPolicy.expiresOn?bc(s.accessPolicy.expiresOn):"",permissions:s.accessPolicy.permissions,startsOn:s.accessPolicy.startsOn?bc(s.accessPolicy.startsOn):""},id:s.id});return Fi(await this.containerContext.setAccessPolicy({abortSignal:r.abortSignal,access:e,containerAcl:o,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions,tracingOptions:a.tracingOptions}))})}getBlobLeaseClient(e){return new cqn(this,e)}async uploadBlockBlob(e,n,r,a={}){return Hr.withSpan("ContainerClient-uploadBlockBlob",a,async o=>{const s=this.getBlockBlobClient(e),l=await s.upload(n,r,o);return{blockBlobClient:s,response:l}})}async deleteBlob(e,n={}){return Hr.withSpan("ContainerClient-deleteBlob",n,async r=>{let a=this.getBlobClient(e);return n.versionId&&(a=a.withVersion(n.versionId)),a.delete(r)})}async listBlobFlatSegment(e,n={}){return Hr.withSpan("ContainerClient-listBlobFlatSegment",n,async r=>{const a=Fi(await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:e},n),{tracingOptions:r.tracingOptions})));return Object.assign(Object.assign({},a),{_response:Object.assign(Object.assign({},a._response),{parsedBody:ADo(a._response.parsedBody)}),segment:Object.assign(Object.assign({},a.segment),{blobItems:a.segment.blobItems.map(s=>Object.assign(Object.assign({},s),{name:wH(s.name),tags:jee(s.blobTags),objectReplicationSourceProperties:Uye(s.objectReplicationMetadata)}))})})})}async listBlobHierarchySegment(e,n,r={}){return Hr.withSpan("ContainerClient-listBlobHierarchySegment",r,async a=>{var o;const s=Fi(await this.containerContext.listBlobHierarchySegment(e,Object.assign(Object.assign({marker:n},r),{tracingOptions:a.tracingOptions})));return Object.assign(Object.assign({},s),{_response:Object.assign(Object.assign({},s._response),{parsedBody:yDo(s._response.parsedBody)}),segment:Object.assign(Object.assign({},s.segment),{blobItems:s.segment.blobItems.map(c=>Object.assign(Object.assign({},c),{name:wH(c.name),tags:jee(c.blobTags),objectReplicationSourceProperties:Uye(c.objectReplicationMetadata)})),blobPrefixes:(o=s.segment.blobPrefixes)===null||o===void 0?void 0:o.map(c=>Object.assign(Object.assign({},c),{name:wH(c.name)}))})})})}listSegments(e){return sv(this,arguments,function*(r,a={}){let o;if(r||r===void 0)do o=yield uo(this.listBlobFlatSegment(r,a)),r=o.continuationToken,yield yield uo(yield uo(o));while(r)})}listItems(){return sv(this,arguments,function*(n={}){var r,a,o,s;let l;try{for(var c=!0,u=R0(this.listSegments(l,n)),d;d=yield uo(u.next()),r=d.done,!r;c=!0)s=d.value,c=!1,yield uo(yield*hP(R0(s.segment.blobItems)))}catch(h){a={error:h}}finally{try{!c&&!r&&(o=u.return)&&(yield uo(o.call(u)))}finally{if(a)throw a.error}}})}listBlobsFlat(e={}){const n=[];e.includeCopy&&n.push("copy"),e.includeDeleted&&n.push("deleted"),e.includeMetadata&&n.push("metadata"),e.includeSnapshots&&n.push("snapshots"),e.includeVersions&&n.push("versions"),e.includeUncommitedBlobs&&n.push("uncommittedblobs"),e.includeTags&&n.push("tags"),e.includeDeletedWithVersions&&n.push("deletedwithversions"),e.includeImmutabilityPolicy&&n.push("immutabilitypolicy"),e.includeLegalHold&&n.push("legalhold"),e.prefix===""&&(e.prefix=void 0);const r=Object.assign(Object.assign({},e),n.length>0?{include:n}:{}),a=this.listItems(r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listSegments(o.continuationToken,Object.assign({maxPageSize:o.maxPageSize},r))}}listHierarchySegments(e,n){return sv(this,arguments,function*(a,o,s={}){let l;if(o||o===void 0)do l=yield uo(this.listBlobHierarchySegment(a,o,s)),o=l.continuationToken,yield yield uo(yield uo(l));while(o)})}listItemsByHierarchy(e){return sv(this,arguments,function*(r,a={}){var o,s,l,c;let u;try{for(var d=!0,h=R0(this.listHierarchySegments(r,u,a)),f;f=yield uo(h.next()),o=f.done,!o;d=!0){c=f.value,d=!1;const m=c.segment;if(m.blobPrefixes)for(const g of m.blobPrefixes)yield yield uo(Object.assign({kind:"prefix"},g));for(const g of m.blobItems)yield yield uo(Object.assign({kind:"blob"},g))}}catch(p){s={error:p}}finally{try{!d&&!o&&(l=h.return)&&(yield uo(l.call(h)))}finally{if(s)throw s.error}}})}listBlobsByHierarchy(e,n={}){if(e==="")throw new RangeError("delimiter should contain one or more characters");const r=[];n.includeCopy&&r.push("copy"),n.includeDeleted&&r.push("deleted"),n.includeMetadata&&r.push("metadata"),n.includeSnapshots&&r.push("snapshots"),n.includeVersions&&r.push("versions"),n.includeUncommitedBlobs&&r.push("uncommittedblobs"),n.includeTags&&r.push("tags"),n.includeDeletedWithVersions&&r.push("deletedwithversions"),n.includeImmutabilityPolicy&&r.push("immutabilitypolicy"),n.includeLegalHold&&r.push("legalhold"),n.prefix===""&&(n.prefix=void 0);const a=Object.assign(Object.assign({},n),r.length>0?{include:r}:{}),o=this.listItemsByHierarchy(e,a);return{async next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listHierarchySegments(e,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},a))}}async findBlobsByTagsSegment(e,n,r={}){return Hr.withSpan("ContainerClient-findBlobsByTagsSegment",r,async a=>{const o=Fi(await this.containerContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:n,maxPageSize:r.maxPageSize,tracingOptions:a.tracingOptions}));return Object.assign(Object.assign({},o),{_response:o._response,blobs:o.blobs.map(l=>{var c;let u="";return((c=l.tags)===null||c===void 0?void 0:c.blobTagSet.length)===1&&(u=l.tags.blobTagSet[0].value),Object.assign(Object.assign({},l),{tags:jee(l.tags),tagValue:u})})})})}findBlobsByTagsSegments(e,n){return sv(this,arguments,function*(a,o,s={}){let l;if(o||o===void 0)do l=yield uo(this.findBlobsByTagsSegment(a,o,s)),l.blobs=l.blobs||[],o=l.continuationToken,yield yield uo(l);while(o)})}findBlobsByTagsItems(e){return sv(this,arguments,function*(r,a={}){var o,s,l,c;let u;try{for(var d=!0,h=R0(this.findBlobsByTagsSegments(r,u,a)),f;f=yield uo(h.next()),o=f.done,!o;d=!0)c=f.value,d=!1,yield uo(yield*hP(R0(c.blobs)))}catch(p){s={error:p}}finally{try{!d&&!o&&(l=h.return)&&(yield uo(l.call(h)))}finally{if(s)throw s.error}}})}findBlobsByTags(e,n={}){const r=Object.assign({},n),a=this.findBlobsByTagsItems(e,r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.findBlobsByTagsSegments(e,o.continuationToken,Object.assign({maxPageSize:o.maxPageSize},r))}}getContainerNameFromUrl(){let e;try{const n=new URL(this.url);if(n.hostname.split(".")[1]==="blob"?e=n.pathname.split("/")[1]:Oct(n)?e=n.pathname.split("/")[2]:e=n.pathname.split("/")[1],e=decodeURIComponent(e),!e)throw new Error("Provided containerName is invalid.");return e}catch{throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise(n=>{if(!(this.credential instanceof Jh))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");const r=lqn(Object.assign({containerName:this._containerName},e),this.credential).toString();n(Pct(this.url,r))})}getBlobBatchClient(){return new dqn(this.url,this.pipeline)}}class zre{constructor(){this.read=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.add=!1,this.create=!1,this.update=!1,this.process=!1,this.tag=!1,this.filter=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){const n=new zre;for(const r of e)switch(r){case"r":n.read=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"x":n.deleteVersion=!0;break;case"l":n.list=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"u":n.update=!0;break;case"p":n.process=!0;break;case"t":n.tag=!0;break;case"f":n.filter=!0;break;case"i":n.setImmutabilityPolicy=!0;break;case"y":n.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission character: ${r}`)}return n}static from(e){const n=new zre;return e.read&&(n.read=!0),e.write&&(n.write=!0),e.delete&&(n.delete=!0),e.deleteVersion&&(n.deleteVersion=!0),e.filter&&(n.filter=!0),e.tag&&(n.tag=!0),e.list&&(n.list=!0),e.add&&(n.add=!0),e.create&&(n.create=!0),e.update&&(n.update=!0),e.process&&(n.process=!0),e.setImmutabilityPolicy&&(n.setImmutabilityPolicy=!0),e.permanentDelete&&(n.permanentDelete=!0),n}toString(){const e=[];return this.read&&e.push("r"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.filter&&e.push("f"),this.tag&&e.push("t"),this.list&&e.push("l"),this.add&&e.push("a"),this.create&&e.push("c"),this.update&&e.push("u"),this.process&&e.push("p"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}}class Zct{constructor(){this.service=!1,this.container=!1,this.object=!1}static parse(e){const n=new Zct;for(const r of e)switch(r){case"s":n.service=!0;break;case"c":n.container=!0;break;case"o":n.object=!0;break;default:throw new RangeError(`Invalid resource type: ${r}`)}return n}toString(){const e=[];return this.service&&e.push("s"),this.container&&e.push("c"),this.object&&e.push("o"),e.join("")}}class SCe{constructor(){this.blob=!1,this.file=!1,this.queue=!1,this.table=!1}static parse(e){const n=new SCe;for(const r of e)switch(r){case"b":n.blob=!0;break;case"f":n.file=!0;break;case"q":n.queue=!0;break;case"t":n.table=!0;break;default:throw new RangeError(`Invalid service character: ${r}`)}return n}toString(){const e=[];return this.blob&&e.push("b"),this.table&&e.push("t"),this.queue&&e.push("q"),this.file&&e.push("f"),e.join("")}}function r$o(t,e){const n=t.version?t.version:Ict;if(t.permissions&&t.permissions.setImmutabilityPolicy&&n<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&n<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&n<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.");if(t.permissions&&t.permissions.tag&&n<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.");if(t.permissions&&t.permissions.filter&&n<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.");if(t.encryptionScope&&n<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");const r=zre.parse(t.permissions.toString()),a=SCe.parse(t.services).toString(),o=Zct.parse(t.resourceTypes).toString();let s;n>="2020-12-06"?s=[e.accountName,r,a,o,t.startsOn?bc(t.startsOn,!1):"",bc(t.expiresOn,!1),t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",n,t.encryptionScope?t.encryptionScope:"",""].join(`
`):s=[e.accountName,r,a,o,t.startsOn?bc(t.startsOn,!1):"",bc(t.expiresOn,!1),t.ipRange?HM(t.ipRange):"",t.protocol?t.protocol:"",n,""].join(`
`);const l=e.computeHMACSHA256(s);return new z9(n,l,r.toString(),a,o,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}class Gye extends qct{static fromConnectionString(e,n){n=n||{};const r=uK(e);if(r.kind==="AccountConnString")if(qh){const a=new Jh(r.accountName,r.accountKey);n.proxyOptions||(n.proxyOptions=sK(r.proxyUri));const o=$u(a,n);return new Gye(r.url,o)}else throw new Error("Account connection string is only supported in Node.js environment");else if(r.kind==="SASConnString"){const a=$u(new gd,n);return new Gye(r.url+"?"+r.accountSas,a)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,n,r){let a;D9(n)?a=n:qh&&n instanceof Jh||n instanceof gd||tE(n)?a=$u(n,r):a=$u(new gd,r),super(e,a),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new n$o(Pd(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,n={}){return Hr.withSpan("BlobServiceClient-createContainer",n,async r=>{const a=this.getContainerClient(e),o=await a.create(r);return{containerClient:a,containerCreateResponse:o}})}async deleteContainer(e,n={}){return Hr.withSpan("BlobServiceClient-deleteContainer",n,async r=>this.getContainerClient(e).delete(r))}async undeleteContainer(e,n,r={}){return Hr.withSpan("BlobServiceClient-undeleteContainer",r,async a=>{const o=this.getContainerClient(r.destinationContainerName||e),s=o.storageClientContext.container,l=Fi(await s.restore({deletedContainerName:e,deletedContainerVersion:n,tracingOptions:a.tracingOptions}));return{containerClient:o,containerUndeleteResponse:l}})}async renameContainer(e,n,r={}){return Hr.withSpan("BlobServiceClient-renameContainer",r,async a=>{var o;const s=this.getContainerClient(n),l=s.storageClientContext.container,c=Fi(await l.rename(e,Object.assign(Object.assign({},a),{sourceLeaseId:(o=r.sourceCondition)===null||o===void 0?void 0:o.leaseId})));return{containerClient:s,containerRenameResponse:c}})}async getProperties(e={}){return Hr.withSpan("BlobServiceClient-getProperties",e,async n=>Fi(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:n.tracingOptions})))}async setProperties(e,n={}){return Hr.withSpan("BlobServiceClient-setProperties",n,async r=>Fi(await this.serviceContext.setProperties(e,{abortSignal:n.abortSignal,tracingOptions:r.tracingOptions})))}async getStatistics(e={}){return Hr.withSpan("BlobServiceClient-getStatistics",e,async n=>Fi(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return Hr.withSpan("BlobServiceClient-getAccountInfo",e,async n=>Fi(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:n.tracingOptions})))}async listContainersSegment(e,n={}){return Hr.withSpan("BlobServiceClient-listContainersSegment",n,async r=>Fi(await this.serviceContext.listContainersSegment(Object.assign(Object.assign({abortSignal:n.abortSignal,marker:e},n),{include:typeof n.include=="string"?[n.include]:n.include,tracingOptions:r.tracingOptions}))))}async findBlobsByTagsSegment(e,n,r={}){return Hr.withSpan("BlobServiceClient-findBlobsByTagsSegment",r,async a=>{const o=Fi(await this.serviceContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:n,maxPageSize:r.maxPageSize,tracingOptions:a.tracingOptions}));return Object.assign(Object.assign({},o),{_response:o._response,blobs:o.blobs.map(l=>{var c;let u="";return((c=l.tags)===null||c===void 0?void 0:c.blobTagSet.length)===1&&(u=l.tags.blobTagSet[0].value),Object.assign(Object.assign({},l),{tags:jee(l.tags),tagValue:u})})})})}findBlobsByTagsSegments(e,n){return sv(this,arguments,function*(a,o,s={}){let l;if(o||o===void 0)do l=yield uo(this.findBlobsByTagsSegment(a,o,s)),l.blobs=l.blobs||[],o=l.continuationToken,yield yield uo(l);while(o)})}findBlobsByTagsItems(e){return sv(this,arguments,function*(r,a={}){var o,s,l,c;let u;try{for(var d=!0,h=R0(this.findBlobsByTagsSegments(r,u,a)),f;f=yield uo(h.next()),o=f.done,!o;d=!0)c=f.value,d=!1,yield uo(yield*hP(R0(c.blobs)))}catch(p){s={error:p}}finally{try{!d&&!o&&(l=h.return)&&(yield uo(l.call(h)))}finally{if(s)throw s.error}}})}findBlobsByTags(e,n={}){const r=Object.assign({},n),a=this.findBlobsByTagsItems(e,r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.findBlobsByTagsSegments(e,o.continuationToken,Object.assign({maxPageSize:o.maxPageSize},r))}}listSegments(e){return sv(this,arguments,function*(r,a={}){let o;if(r||r===void 0)do o=yield uo(this.listContainersSegment(r,a)),o.containerItems=o.containerItems||[],r=o.continuationToken,yield yield uo(yield uo(o));while(r)})}listItems(){return sv(this,arguments,function*(n={}){var r,a,o,s;let l;try{for(var c=!0,u=R0(this.listSegments(l,n)),d;d=yield uo(u.next()),r=d.done,!r;c=!0)s=d.value,c=!1,yield uo(yield*hP(R0(s.containerItems)))}catch(h){a={error:h}}finally{try{!c&&!r&&(o=u.return)&&(yield uo(o.call(u)))}finally{if(a)throw a.error}}})}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);const n=[];e.includeDeleted&&n.push("deleted"),e.includeMetadata&&n.push("metadata"),e.includeSystem&&n.push("system");const r=Object.assign(Object.assign({},e),n.length>0?{include:n}:{}),a=this.listItems(r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listSegments(o.continuationToken,Object.assign({maxPageSize:o.maxPageSize},r))}}async getUserDelegationKey(e,n,r={}){return Hr.withSpan("BlobServiceClient-getUserDelegationKey",r,async a=>{const o=Fi(await this.serviceContext.getUserDelegationKey({startsOn:bc(e,!1),expiresOn:bc(n,!1)},{abortSignal:r.abortSignal,tracingOptions:a.tracingOptions})),s={signedObjectId:o.signedObjectId,signedTenantId:o.signedTenantId,signedStartsOn:new Date(o.signedStartsOn),signedExpiresOn:new Date(o.signedExpiresOn),signedService:o.signedService,signedVersion:o.signedVersion,value:o.value};return Object.assign({_response:o._response,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,date:o.date,errorCode:o.errorCode},s)})}getBlobBatchClient(){return new dqn(this.url,this.pipeline)}generateAccountSasUrl(e,n=zre.parse("r"),r="sco",a={}){if(!(this.credential instanceof Jh))throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential");if(e===void 0){const s=new Date;e=new Date(s.getTime()+3600*1e3)}const o=r$o(Object.assign({permissions:n,expiresOn:e,resourceTypes:r,services:SCe.parse("b").toString()},a),this.credential).toString();return Pct(this.url,o)}}const i$o=async(t,e,n)=>{const r=t.getBlockBlobClient(n),a={blobHTTPHeaders:{blobContentType:e.type}};await r.uploadData(e,a)},a$o=async(t,e)=>t.getBlobClient(e).url,b8t=async(t,e)=>{var o;const r=`Bearer ${localStorage.getItem("accessToken")||""}`;let a={};a={file_name:t};try{let s="";fOe==="true"||(s=`${Wmi}`);const c=await(await fetch(s,{method:"POST",headers:{Authorization:r,"Content-Type":"application/json"},body:JSON.stringify(a)})).json();let u="";fOe==="true"||(u=`${Kmi}/?${c.sas_token}`);const d=new Gye(u);try{const h=fOe==="true"?"":Qmi,f=d.getContainerClient(h);return await i$o(f,e,t),await a$o(f,t)}catch(h){Kn(q.ERROR_UPLOAD_IMAGE||((o=h==null?void 0:h.details)==null?void 0:o.message))}}catch{}return null},o$o=async(t,e)=>{if(!t)return"";const n=`${new Date().getTime()}`,r=`${n}_${t.name}`,a=`${n}_${e.name}`,o=await b8t(r,t),s=await b8t(a,e);return[o,s]},x8t=t=>{let e="";const n=t.split("/").pop();if(n){const r=n.indexOf("_");e=n==null?void 0:n.substring(r+1).replace("_","_")}return e||""},s$o=({onSelectFile:t,layoutColorList:e,imgLoading:n,pickedBgColor:r,setPickedBgColor:a,setImageSrc:o,uploadErrorMessage:s,titleTextColorList:l,titleTextColor:c,setTitleTextColor:u})=>{const{imgUrl:d,useImgColors:h}=_p(),f=tit(),p=m=>{switch(m){case sp.header:return E.jsx(hmi,{});case sp.divider:return E.jsx(umi,{});case sp.markdown:return E.jsx(dmi,{});default:return null}};return E.jsxs(FOo,{children:[Ft.isEmpty(d)?E.jsxs("div",{className:"fileSelect",children:[E.jsx("div",{className:"fieldLabel",children:"Header Image"}),E.jsxs("div",{className:`customFileInput ${(n||f)&&"loading"}`,children:[E.jsx("input",{name:"image",type:"file",accept:"image/*",onChange:t}),E.jsx("div",{className:"fileName",children:n||f?E.jsx("img",{src:ws,alt:"loading..."}):E.jsxs(E.Fragment,{children:[E.jsx(Tmi,{}),E.jsx("div",{children:E.jsx("span",{children:q.UPLOAD_IMAGE})})]})})]}),s&&E.jsx("p",{className:"errorMsg",children:s})]}):E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"fieldLabel",children:"Header Image"}),E.jsxs("div",{className:"selectedFileName",children:[E.jsx(Pn,{label:x8t(d),children:E.jsx("span",{children:x8t(d)})}),E.jsx(Jt,{onClick:()=>{G6(),o("")},children:E.jsx(ioe,{})})]})]}),d&&!n&&E.jsxs(E.Fragment,{children:[E.jsx(vvt,{className:"divider-style",variant:"middle"}),E.jsxs("div",{className:"paletteListing",children:[E.jsx("div",{className:"blockTitle",children:q.COLOR_YOUR_DASHBOARD}),E.jsxs("div",{className:"listingBox",children:[E.jsxs("div",{className:"listTitle",children:[E.jsx("span",{children:q.DEFAULT}),E.jsx("span",{className:"imgColorHead",children:q.USE_IMAGE_COLORS})]}),E.jsxs("ul",{children:[E.jsx(Pn,{label:"Default",children:E.jsxs(K9e,{className:"defaltColor",children:[E.jsx("input",{type:"radio",name:"color",onChange:()=>{a([]),WAe(!1)},checked:!h}),E.jsxs("div",{className:"colorValue",children:[E.jsx("span",{}),E.jsx("div",{className:"checkIcon",children:E.jsx(Mme,{})})]})]})}),e==null?void 0:e.map((m,g)=>{const v=`${m[0]}, ${m[1]}, ${m[2]}`;return E.jsx(ke.Fragment,{children:E.jsx(Pn,{label:Bkt(m[0],m[1],m[2]),children:E.jsxs(K9e,{bgColor:v,children:[E.jsx("input",{type:"radio",name:"color",onChange:()=>{a(m),WAe(!0)},checked:(r==null?void 0:r.length)>0?Ft.isEqual(r,m):h&&g===0}),E.jsxs("div",{className:"colorValue",children:[E.jsx("span",{}),E.jsx("div",{className:"checkIcon",children:E.jsx(Mme,{})})]})]})})},`${m[0]}${m[1]}${m[2]}`)})]})]})]}),E.jsxs("div",{className:"paletteListing",children:[E.jsx("div",{className:"blockTitle",children:q.TITLE_TEXT_COLOR}),E.jsx("div",{className:"listingBox",children:E.jsx("ul",{children:l==null?void 0:l.map((m,g)=>{const v=`${m[0]}, ${m[1]}, ${m[2]}`;return E.jsx(ke.Fragment,{children:E.jsx(Pn,{label:Bkt(m[0],m[1],m[2]),children:E.jsxs(K9e,{bgColor:v,children:[E.jsx("input",{type:"radio",name:"textColor",onChange:()=>u(m),checked:(c==null?void 0:c.length)>0?Ft.isEqual(c,m):g===0}),E.jsxs("div",{className:"colorValue",children:[E.jsx("span",{}),E.jsx("div",{className:"checkIcon",children:E.jsx(Mme,{})})]})]})})},`${m[0]}${m[1]}${m[2]}`)})})})]})]}),E.jsx(vvt,{className:"divider-style",variant:"middle"}),E.jsx("span",{className:"fieldLabel",children:q.COMPONENTS}),E.jsx("ul",{className:"itemList",children:Xmi.map(m=>E.jsx(HOo,{name:m.label,type:m.value,children:E.jsxs(ke.Fragment,{children:[E.jsxs("div",{className:"left",children:[E.jsx("span",{className:"icon",children:p(m.value)}),m.label]}),E.jsx("div",{className:"right",children:E.jsx(fmi,{})})]},m.value)},m.value))})]})};var Xct={},l$o=As;Object.defineProperty(Xct,"__esModule",{value:!0});var NK=Xct.default=void 0,c$o=l$o(Ps()),u$o=E;NK=Xct.default=(0,c$o.default)((0,u$o.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt");const d$o=({children:t,visualId:e,name:n,description:r,metadata:a,queryId:o,disabled:s})=>s?E.jsx("div",{children:t}):E.jsx("div",{className:"droppable-element",draggable:!0,"data-visualid":e,"data-savedqueryid":o,unselectable:"on",onDragStart:async l=>{l.target.style.position="relative",l.target.style.zIndex="99999999999",await git({visualId:e,description:r,name:n,metadata:a,queryId:o,type:"visual"})},children:t});function h$o({onScroll:t,className:e,listInnerRef:n,children:r}){return E.jsx("div",{className:e,onScroll:t,ref:n,children:r})}function f$o(t){const{children:e,className:n,onScroll:r,last:a,currentPage:o}=t,s=Y.useRef(),l=()=>{var c,u,d;if(s.current){const h=(c=s==null?void 0:s.current)==null?void 0:c.scrollTop,f=(u=s==null?void 0:s.current)==null?void 0:u.scrollHeight,p=(d=s==null?void 0:s.current)==null?void 0:d.clientHeight;!a&&Math.ceil(h+p+1)>=f&&r(o+1)}};return E.jsx(h$o,{className:n,onScroll:l,listInnerRef:s,children:e})}const p$o=({widgetsData:t,setPageData:e,setSize:n,pageData:r,error:a})=>{const o=nit(),[s,l]=Y.useState(null),c=!t&&!a,u=T1a(t),d=t&&t[t.length-1],h=_p(),{useImgColors:f,chartBackground:p}=h,{last:m=!1,number:g=0}=d&&d.pageable||{},v=xo(),A=P=>{e({...r,sortOrder:P.target.value==="modified"?"DESC":"ASC",sortBy:P.target.value})},y=P=>{e({...r,scope:P.target.value,visibility:P.target.value===sr.subscription?sr.subscription:""})},S=P=>{e({...r,searchPattern:P.target.value})},x=P=>{e({...r,visualType:P}),l(null)},w=P=>{n(P+1)},_=()=>{switch(xx[r==null?void 0:r.visualType]){case xx.TABLE:return{path:nTe,webPath:rTe};case xx.COUNTERCARD:return{path:iat,webPath:aat};default:return{path:Uoe,webPath:zoe}}},C=Ft.debounce(S,700),R=P=>!Ft.isEmpty(Ft.filter(o,N=>N.visualId===P)),k=Y.useMemo(()=>u==null?void 0:u.map(P=>{let{metadata:N}=P||{};const{name:L,description:I,id:b,queryId:T,visualType:M,userId:D}=P||{};return N=N?T2(JSON.parse(N)):{},E.jsx(Wlt,{className:"droppableWidget",disabled:R(b),$useImgColors:f,$chartBackground:p,children:E.jsx(d$o,{name:L,description:I||"",metadata:N,visualId:b,disabled:R(b),queryId:T,children:E.jsx(Wjn,{name:L,widgetDescription:I||"",metadata:N,visualType:M||Di.GRAPH,visualId:b,hideTooltip:!0,savedQueryId:T,userId:D},b)},b==null?void 0:b.toString())},b)}),[u,o]);return E.jsxs(E.Fragment,{children:[E.jsxs(Ubo,{children:[E.jsxs(zbo,{children:[E.jsx("span",{className:"searchIcon",children:E.jsx(yv,{})}),E.jsx(gr,{placeholder:"Search",onChange:C})]}),E.jsx(_n,{tooltip:q.FILTER,onClick:P=>l(P.currentTarget),children:E.jsx(NK,{})}),E.jsx("div",{className:"selectFilter",children:E.jsx(Ba,{value:r.sortBy,onChange:A,children:tgi.map(P=>E.jsx(Dn,{value:P.orderBy,children:P.label},P.orderBy))})}),E.jsx("div",{className:"selectFilter",children:E.jsx(Ba,{value:r.scope,onChange:y,children:ngi.map(P=>E.jsx(Dn,{value:P.value,children:P.label},P.label))})}),E.jsx(lE,{anchorEl:s,open:!!s,onClose:()=>l(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:pZ.map(({value:P,dashboardLabel:N,icon:L})=>E.jsxs(Dn,{selected:P===r.visualType,onClick:()=>x(P),children:[E.jsx("span",{className:"icon",children:L}),C1a(N)]},P))})]}),c&&E.jsx(Ep,{}),!c&&Ft.isEmpty(u)&&E.jsx(sf,{imgPath:_().path,imgPathWebp:_().webPath,className:"emptyBlock",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>{Cit(!0),v.push(tr.newQuery())},children:"Create Your First Visualization"})}),E.jsx(f$o,{last:m,currentPage:g||0,className:"chartList",onScroll:w,children:k})]})},m$o=gt.div`
  && {
    .textContent {
      position: relative;
      .textArea {
        font-family: ${t=>t.theme.typography.fontFamily};
        background: transparent;
        padding: 0 45px 0 0;
        width: 100%;
        resize: none;
        border: none;
        overflow: hidden auto;
        &::placeholder {
          color: ${t=>t.theme.custom.greyText.A5};
          opacity: 0.8;
        }
        &:focus {
          outline: none;
        }
      }
      .desHelpText {
        position: absolute;
        bottom: 4px;
        right: 10px;
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
      }
    }
    .desWarningText {
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
      color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.yellow}};
      margin-top: 4px;
      display: inline-flex;
      align-content: center;
    }
  }
`,WQe=({readOnly:t,textAreaRef:e})=>{const n=f9(),{description:r="",metadata:a}=n||{},{textAreaHeight:o}=(typeof a=="string"&&a?JSON.parse(a):a)||{};Y.useEffect(()=>{const l=e.current;if(l){l.style.height="0px";const{scrollHeight:c}=l;l.style.height=`${c}px`}},[e,r]);const s=(l,c)=>{const{value:u}=l.target,d={[c]:u},h={...n,...d,descriptionBlockHeight:l.target.scrollHeight};wD(h)};return E.jsxs(m$o,{className:"descriptiveText",children:[E.jsxs("div",{className:"textContent",children:[E.jsx("textarea",{ref:e,placeholder:q.ENTER_DASHBOARD_DESCRIPTION,autoComplete:"off",value:r,onChange:l=>s(l,"description"),className:"textArea",style:{height:o},maxLength:UR,rows:1,readOnly:t}),!t&&E.jsx("span",{className:"desHelpText",children:`${(r==null?void 0:r.length)||0}/${UR}`})]}),(r==null?void 0:r.length)===UR&&!t&&E.jsxs("div",{className:"desWarningText",children:[E.jsx(hEe,{sx:{fontSize:15}})," ",q.MAX_LENGTH_ERROR("description",UR)]})]})},eut=({visibility:t})=>{const e=iit()||t,n=r=>{switch(r){case sr.public:ZF(sr.public);break;case sr.private:ZF(sr.private);break;case sr.subscription:ZF(sr.subscription);break;default:ZF("")}};return E.jsxs(YH,{variant:"contained",className:`isPublicCheck dashboardTypeReferrence ${t===sr.public&&"disabled"}`,children:[E.jsx(Jt,{variant:"contained",onClick:()=>{ZX(!0),QAe(""),n(sr.private)},color:e===sr.public||e===sr.subscription?"secondary":"primary",disabled:t===sr.public,children:q.PRIVATE}),E.jsx(Jt,{variant:"contained",onClick:()=>{ZX(!0),QAe(""),n(sr.subscription)},color:e===sr.subscription?"primary":"secondary",disabled:t===sr.public,children:q.PRIVATE_TO_MY_ORG}),E.jsx(Jt,{variant:"contained",onClick:()=>{ZX(!0),n(sr.public)},color:e===sr.public?"primary":"secondary",children:q.PUBLIC})]})};function g$o({id:t,slugModalOpen:e,setSlugModalOpen:n,isPublic:r=!1,slug:a,type:o,visibility:s,handleCallback:l,loggedIn:c,showVisibilityDashboardButtons:u,preventOnCloseBehavior:d=!1}){const[h,f]=Y.useState(!1),[p,m]=Y.useState(""),[g,v]=Y.useState(!1),[A,y]=Y.useState(!1),S=Y.useRef(null),x=iit();Y.useEffect(()=>{if(e&&r){const k=window.location.origin+tr.publicDashboard(a);m(k)}else m(""),v(!1),S.current=null},[e]);const w=k=>{const P=k.target.value||"";Zit(P)&&P!==""?!A&&y(!0):A&&y(!1),P!==a&&m(P)},_=async k=>{k.preventDefault(),f(!0),await Shn(t,(()=>x===sr.public?{slug:p,visibility:x||""}:{visibility:x||""})())?(l&&l(),f(!1),n(!e)):f(!1)},C=()=>{gN(p).then(()=>{v(!0)})},R=window.location.href.indexOf("new")>-1;return E.jsx(lf,{maxWidth:"sm",title:c===!1?o:q.PUBLISH(o),visible:e,onClose:()=>{n(!e),d===!1&&(ZF(""),ZX(!1))},children:E.jsxs(czn,{children:[c&&u&&E.jsxs("div",{className:"visibilityCheck",children:[E.jsx("div",{className:"label",children:q.DASHBOARD_VISIBILITY}),E.jsx(eut,{visibility:s})]}),E.jsxs("form",{onSubmit:_,children:[(x===sr.public||r)&&E.jsx(gr,{label:r?q.PUBLIC_SLUG_URL:`${q.ENTER_SLUG}*`,ref:S,placeholder:q.ENTER_SLUG_NAME,value:p,ishelpertext:1,helperText:!r&&`${p==null?void 0:p.length}/${Qr}`,warningText:!r&&q.MAX_LENGTH_ERROR("name",Qr),onChange:w,onKeyDown:vw,errorText:A&&q.SLUG_NAME_ERROR("Slug"),hasMax:!0,maxValue:Qr,inputProps:{readOnly:r},endAdornment:a&&R===!1?E.jsx(Kx,{position:"end",children:E.jsx(_n,{onClick:()=>window.open(window.location.origin+tr.publicDashboard(a),"_blank"),children:E.jsx(oN,{})})}):null}),r&&E.jsx(fg,{message:q.PUBLISHED_TEXT(o==null?void 0:o.toLowerCase())}),x===sr.public&&!r&&E.jsx(fg,{message:q.PUBLISH_CONFIRM_MESSAGE("dashboard")}),E.jsxs("div",{className:"btnRow",style:{justifyContent:c?"space-between":"flex-end"},children:[c===!0&&E.jsx(Jt,{onClick:()=>n(!e),variant:"contained",color:"secondary",children:q.CANCEL}),!r&&E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",disabled:h||(p==null?void 0:p.length)>=50||A||x===sr.public&&!(p!=null&&p.trim()),children:h?E.jsx("img",{src:ws,alt:"loading",height:50}):q.SUBMIT}),r&&E.jsx(Jt,{type:"button",variant:"contained",color:"primary",onClick:C,children:g?q.COPIED:q.COPY_LINK})]})]})]})})}const IK=ke.memo(g$o),v$o=()=>{var S,x;const t=f9(),{name:e="",tags:n=[],title:r="",visibility:a,slug:o=""}=t||{},s=uhn(),c=(iit()||a)===sr.public,u=chn(),d=dhn(),h=Y.useRef(null),[f,p]=Y.useState(!1),m=(w,_)=>{const C={...t},R={[_]:w.target.value},k={...C,...R};wD(k)},g=w=>{const R={...{...t},...{tags:w}};wD(R)},v=w=>{const _=[...n||[]].filter(P=>(P==null?void 0:P.tagValue)!==w&&(P==null?void 0:P.value)!==w),k={...{...t},...{tags:_}};wD(k)},A=w=>{var R;const _=((R=w==null?void 0:w.target)==null?void 0:R.value)||"",C=_!==""&&Zit(_);QAe(C),_!==u&&fVe(_)},y=(x=(S=e==null?void 0:e.toLowerCase())==null?void 0:S.replace(/[^a-zA-Z0-9 ]/g,""))==null?void 0:x.replace(/ /g,"");return E.jsxs(jOo,{children:[E.jsx(gr,{label:`${q.DASHBOARD_TITLE}`,placeholder:q.UNTITLED_DASHBOARD,required:!0,value:e,ishelpertext:"true",helperText:`${(e==null?void 0:e.length)||0}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("name",Qr),onChange:w=>m(w,"name"),hasMax:!0,maxValue:Qr}),E.jsx(nCe,{currentTags:n||[],setTags:g}),E.jsx("div",{className:"tagList",children:E.jsx(Ov,{tags:n||[],isRemovable:!0,onRemove:v})}),E.jsx(gr,{label:q.MAIN_TAB_TITLE,placeholder:q.ENTER_DASHBOARD_DESCRIPTION_TITLE,value:r,ishelpertext:"true",helperText:`${(r==null?void 0:r.length)||0}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("description title",Qr),onChange:w=>m(w,"title"),hasMax:!0,maxValue:Qr}),E.jsxs("div",{className:"descriptionField",children:[E.jsx("div",{className:"title",children:q.DESCRIPTION}),E.jsx(WQe,{textAreaRef:h})]}),E.jsx(eut,{visibility:a}),c&&E.jsx("div",{className:"slugInputField",children:E.jsx(gr,{label:`${q.ENTER_SLUG}`,placeholder:y||q.ENTER_SLUG_NAME,defaultValue:u||o,ishelpertext:`${!s}`,helperText:!s&&`${u==null?void 0:u.length}/${Qr}`,warningText:!s&&q.MAX_LENGTH_ERROR("name",Qr),onChange:w=>A(w),hasMax:!0,errorText:d&&q.SLUG_NAME_ERROR("Slug"),maxValue:Qr,endAdornment:o?E.jsx(Kx,{position:"end",children:E.jsx(_n,{tooltip:window.location.origin+tr.publicDashboard(o),onClick:()=>window.open(window.location.origin+tr.publicDashboard(o),"_blank"),children:E.jsx(oN,{})})}):null})}),c&&E.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"5px"},children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>p(!0),className:"backBtn",disabled:(u||o)==="",children:q.SHARE_DASHBOARD})}),c&&E.jsx(IK,{loggedIn:!0,preventOnCloseBehavior:!0,showVisibilityDashboardButtons:!1,slugModalOpen:f,setSlugModalOpen:p,id:t==null?void 0:t.id,isPublic:c,slug:u||o,type:"Dashboard Link",handleCallback:()=>{},visibility:a})]})},A$o=({onSelectFile:t,layoutColorList:e,imgLoading:n,pickedBgColor:r,setPickedBgColor:a,setImageSrc:o,uploadErrorMessage:s,titleTextColorList:l,titleTextColor:c,setTitleTextColor:u})=>{const d=ho(),[h,f]=Y.useState({pageSize:5,searchPattern:"",sortOrder:"DESC",sortBy:"modified",visualType:Di.GRAPH,scope:uv.private,visibility:""}),{data:p,setSize:m,error:g=void 0}=Bn.getVisualsInfiniteScroll(h,d),v=uhn(),[A,y]=Y.useState(KL.layoutDesign),S=x=>{y(x.currentTarget.value),f({...h,searchPattern:""})};return Y.useEffect(()=>(v&&y(KL.dashboardInfo),()=>{y(KL.layoutDesign)}),[v]),E.jsxs("div",{className:"panelRight",children:[E.jsx(Tp,{children:E.jsxs(eA,{exclusive:!0,className:"tabButtonGroup",value:A,onChange:S,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"layoutDesign",children:q.LAYOUT_DESIGN}),E.jsx(Xs,{size:"small",className:"tabButton visualTab",value:"charts",children:q.VISUALIZATIONS}),E.jsx(Xs,{size:"small",className:"tabButton",value:"dashboardInfo",children:q.DASHBOARD_INFO})]})}),A===KL.layoutDesign&&E.jsx(s$o,{onSelectFile:t,layoutColorList:e,setPickedBgColor:a,imgLoading:n,pickedBgColor:r,setImageSrc:o,uploadErrorMessage:s,titleTextColorList:l,titleTextColor:c,setTitleTextColor:u}),A===KL.charts&&E.jsx(p$o,{pageData:h,setPageData:f,widgetsData:p,setSize:m,error:g}),A===KL.dashboardInfo&&E.jsx(v$o,{})]})},y$o=gt.div`
  padding: 60px 20px;
  width: 100%;
  .emptyBlock {
    background: ${t=>t.theme.custom.popupBg};
    max-width: 530px;
    border-radius: 4px;
    box-shadow: 0px 90px 60px rgba(15, 24, 42, 0.2);
    backdrop-filter: blur(100px);
    padding: 24px;
    margin: 0 auto;
  }
  .emptyImg,
  .btnGroup {
    text-align: center;
  }
  .emptyImg img {
    max-width: 100%;
    margin: 0 auto;
  }
  h4 {
    font-size: 18px;
    text-align: center;
    color: ${t=>t.theme.custom.white.A1};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    margin-bottom: 24px;
  }
  ul {
    padding: 0;
    list-style: none;
    max-width: 400px;
    margin: 0 auto 40px;
  }
  ul li {
    display: flex;
    align-items: flex-start;
  }
  ul li span {
    flex: 1;
    margin-left: 5px;
    opacity: 0.6;
  }
  ul li + li {
    margin-top: 12px;
  }
  button {
    margin: 0 auto;
  }
  ${t=>t.theme.breakpoints.up("md")} {
    ul li:last-child {
      display: none;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .btnGroup,
    ul li:first-child {
      display: none;
    }
  }
`,hqn=()=>{const t=Y.useRef(null),{width:e}=Is();return Z6(t,()=>{e>qt.breakpoints.values.md&&KAe(!1)}),E.jsx(y$o,{className:"mobileInfoModal",children:E.jsxs("div",{className:"emptyBlock",ref:t,children:[E.jsx("div",{className:"emptyImg",children:E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:fz}),E.jsx(iTe,{src:Nse,placeholderSrc:fz})]})}),E.jsx("h4",{children:mOe.heading}),E.jsxs("ul",{children:[E.jsxs("li",{children:[E.jsx(rze,{}),E.jsx("span",{children:mOe.line1})]}),E.jsxs("li",{children:[E.jsx(rze,{}),E.jsx("span",{children:mOe.line2})]})]}),E.jsx("div",{className:"btnGroup",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>KAe(!1),size:"large",children:q.START})})]})})},b$o=({editDashboard:t,isZKPay:e=!1,customDescription:n="",customDescription2:r="",hasUserConnectedWeb3Wallet:a})=>{var y,S;const[o,s]=Y.useState(!1),l=Y.useRef(null),c=f9(),{title:u=""}=c||{},d=xo(),h=((y=d==null?void 0:d.location)==null?void 0:y.pathname)==="/",{chartBackground:f,useImgColors:p}=_p(),m=Y.useRef(null),g=p&&vN(((S=d==null?void 0:d.location)==null?void 0:S.pathname)||"");Y.useEffect(()=>{var w,_,C,R;const{current:x}=l;x&&(o?(_=(w=x.parentElement)==null?void 0:w.classList)==null||_.add("editableGrid"):(R=(C=x.parentElement)==null?void 0:C.classList)==null||R.remove("editableGrid"))},[o]),Z6(l,()=>{s(!1)});const v=(x,w)=>{const{value:_}=x.target,C={[w]:_},R={...c,...C};wD(R)};let A="";return Ft.isEmpty(u)?A=h?q.DESCRIPTION:q.ENTER_DASHBOARD_DESCRIPTION_TITLE:A=u,E.jsx("div",{ref:l,children:o?E.jsxs(cLt,{$isZKPay:e,className:"dashDescription",$chartBackground:f,$useImgColors:g,onClick:()=>{var x,w,_;s(!0),(_=(w=(x=l.current)==null?void 0:x.parentElement)==null?void 0:w.classList)==null||_.add("editableGrid")},isEditable:o,children:[E.jsx("div",{className:"listHead",children:E.jsx("div",{className:"editTitle",children:E.jsx(gr,{placeholder:q.ENTER_DASHBOARD_DESCRIPTION_TITLE,value:u,ishelpertext:"true",helperText:`${(u==null?void 0:u.length)||0}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("description title",Qr),onChange:x=>v(x,"title"),hasMax:!0,maxValue:Qr,className:"titleInput"})})}),E.jsx(WQe,{textAreaRef:m})]}):E.jsxs(cLt,{className:"dashDescription",$chartBackground:f,$useImgColors:p,isEditable:o,$isZKPay:e,children:[E.jsxs("div",{className:"listHead",children:[E.jsx("h3",{children:A}),t&&!o&&E.jsx(_n,{onClick:()=>{s(!0)},className:"editbutton",tooltip:q.EDIT_DESCRIPTION,children:E.jsx(gP,{})})]}),e===!1&&E.jsx(WQe,{textAreaRef:m,readOnly:!o}),e&&E.jsxs("div",{className:"zkETHDescriptionWrapper",style:{borderBottom:a?"":"1px solid rgb(247 247 249 / 5%)"},children:[E.jsx("p",{className:"zkETHDescriptionText",children:n}),E.jsx("br",{}),E.jsx("p",{className:"zkETHDescriptionText",children:r}),!a&&E.jsx("div",{className:"getStartedButton",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>{co(!0),pVe(!0)},children:q.GET_STARTED})})]})]})})},fqn=ke.memo(b$o),x$o=({isImgTitle:t})=>{const e=f9(),n=QM(),r=Y.useRef(null),a=Y.useRef(null),[o,s]=Y.useState(!1),[l,c]=Y.useState(!1),u=(p,m)=>{const g={...e},v={[m]:p.target.value},A={...g,...v};wD(A)},d=p=>{var m;((m=p==null?void 0:p.target)==null?void 0:m.value)===""&&wD({dashboardDetail:{...e,name:""}}),u(p,"name")};return Z6(r,()=>{s(!1)}),Z6(a,()=>{c(!1)}),t?(()=>{var p;return E.jsx("div",{onClick:()=>c(!0),role:"presentation",children:E.jsx("h2",{children:l?E.jsx(gr,{type:"text",inputRef:a,placeholder:q.UNTITLED_DASHBOARD,value:e==null?void 0:e.name,ishelpertext:"true",helperText:`${((p=e==null?void 0:e.name)==null?void 0:p.length)||0}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("name",Qr),onChange:d,hasMax:!0,maxValue:Qr,className:"sizeLarge imgTitleInput",autoFocus:l}):E.jsx("div",{children:(e==null?void 0:e.name)||q.UNTITLED_DASHBOARD})})})})():(()=>{var p;return n.dashboardId&&Ft.isEmpty(e)?E.jsx(Ca,{width:"100%",height:35}):E.jsx("div",{className:"topBarHeadTitle",children:o?E.jsx(gr,{type:"text",inputRef:r,placeholder:q.UNTITLED_DASHBOARD,value:e==null?void 0:e.name,ishelpertext:"true",helperText:`${((p=e==null?void 0:e.name)==null?void 0:p.length)||0}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("name",Qr),onChange:d,hasMax:!0,maxValue:Qr,autoFocus:o}):E.jsx("h2",{onClick:()=>s(!0),role:"presentation",children:E.jsx(Pn,{label:(e==null?void 0:e.name)||q.UNTITLED_DASHBOARD,children:E.jsx("div",{children:(e==null?void 0:e.name)||q.UNTITLED_DASHBOARD})})})})})()},E8t=ke.memo(x$o),E$o=()=>{const t=Uga(),e=Hga(),n=Y.useMemo(()=>t===0,[t,e]),r=Y.useMemo(()=>e.length-1===t||e.length===0,[t,e]);return E.jsxs(E.Fragment,{children:[E.jsx(_n,{disabled:n,onClick:Cva,tooltip:"Undo",children:E.jsx(Cmi,{})}),E.jsx(_n,{disabled:r,onClick:kva,tooltip:"Redo",children:E.jsx(kmi,{})})]})},S$o=({steps:t,callback:e})=>{const n={tooltip:{backgroundColor:qt.custom.boxBg,border:"0.5px solid #675b8c",borderRadius:8,color:qt.custom.white.A11,fontSize:12,padding:12,width:280},tooltipContainer:{lineHeight:1.4,textAlign:"left"},tooltipContent:{padding:"0px"},tooltipFooter:{marginTop:8},buttonNext:{backgroundColor:qt.custom.primaryBg,border:`1px solid ${qt.custom.primaryBg}`,borderRadius:4,color:qt.custom.white.A11,fontSize:14},buttonBack:{color:qt.custom.white.A11,marginLeft:"auto",marginRight:5,fontSize:14},buttonSkip:{color:qt.custom.white.A11,fontSize:14},floaterStyles:{arrow:{color:qt.custom.tableBg}}},r={last:"Close"};return E.jsx(LOo,{steps:t,continuous:!0,showSkipButton:!0,hideCloseButton:!0,disableOverlayClose:!0,showProgress:!0,disableScrolling:!0,styles:n,locale:r,callback:e})},pqn=ke.memo(S$o);function S8t(){var xt,Cn,Kt,rn,On,an,on,dr;const t=QM(),[e,n]=Y.useState({}),r=Gga(),a=xo(),{pathname:o}=(a==null?void 0:a.location)||{},s=f9(),{metadata:l,visibility:c}=s||{},u=l?JSON.parse(l):{},{useImgColors:d,chartBackground:h,imgUrl:f,titleColor:p}=(u==null?void 0:u.customImg)||{},m=ho(),g=localStorage.getItem("userId")||"",v=thn(),A=chn(),{height:y,headerHeight:S,width:x}=Is(),w=!1,_=_p(),{useImgColors:C,chartBackground:R,imgUrl:k,titleColor:P}=_,N=y-S||500,L=!0,I=nit(),[b,T]=Y.useState(!1),M=dhn(),[D,B]=Y.useState({chartColors:[],bgColor:[],imgTitleColor:""}),[j,H]=Y.useState([]),[U,$]=Y.useState([]),[z,Z]=Y.useState([]),[K,Q]=Y.useState([]),[ee,X]=Y.useState(""),[te,J]=Y.useState(""),ne=qga(),ie=Jga(),he=ohn(),de=tit(),ce=Fzn({dashImgUrl:f}),Ee=x<qt.breakpoints.values.md,{data:Me,loading:Be}=Zzn(ee,25,"rgbArray",{crossOrigin:"anonymous"}),ze=rva(),[je,ye]=Y.useState(!1),[me,le]=Y.useState(""),pe=Zga(),Ne=bE(),{settings:_e,userId:ue}=Ne||{},se=kM(_e),{dashboardGuide:oe=!1}=se;let ge=[];const De=[];Me==null||Me.forEach($e=>{P1a($e,ge)?De.push($e):ge.push($e)});const Fe=ge.shift();ge.push(Fe),ge=ge.concat(De);const Se=$e=>{var qe;ze&&(s!=null&&s.name||s!=null&&s.description||s!=null&&s.descriptionTitle||((qe=s==null?void 0:s.tags)==null?void 0:qe.length)>0||k||(I==null?void 0:I.length)>0||A)&&($e.preventDefault(),$e.stopPropagation(),ye(!0),le($e))};Y.useEffect(()=>{const $e=document.querySelectorAll(".unsaveChanges");return ze&&o===Qt.newDashboard&&$e.forEach(qe=>{qe.addEventListener("click",Se)}),()=>{$e.forEach(qe=>{qe.removeEventListener("click",Se)})}},[ze,s,A,e,k,I]),Y.useEffect(()=>{s&&(s!=null&&s.userId)&&(s==null?void 0:s.userId)!==g&&t.dashboardId&&a.push(tr.viewDashboard(t.dashboardId)),s&&!ze&&o===Qt.newDashboard&&L$(!0)},[s,t.dashboardId]),Y.useEffect(()=>{s!=null&&s.slug&&(s==null?void 0:s.visibility)===sr.public&&fVe(s==null?void 0:s.slug)},[s]),Y.useEffect(()=>{A&&!ze&&o===Qt.newDashboard&&L$(!0)},[A]),Y.useEffect(()=>{k&&(X(k),!ze&&o===Qt.newDashboard&&L$(!0),t.dashboardId?WAe(d):WAe(!0))},[k]),Y.useEffect(()=>{var $e,qe;if(t.dashboardId)if(d||!Ft.isEmpty(k)){const yt=h&&Jit(h[0]),Ze=($e=yt==null?void 0:yt.match(/\d+/g))==null?void 0:$e.map(Number),ot=(qe=p==null?void 0:p.match(/\d+/g))==null?void 0:qe.map(Number);(ce==null?void 0:ce.dashImgUrl)===k?(d&&Ze&&$(Ze),p&&Q(ot)):($([]),Q([]))}else $([]),Q([])},[t.dashboardId,k,d,ce==null?void 0:ce.dashImgUrl]),Y.useEffect(()=>{if(Me){const $e=Me==null?void 0:Me[1],qe=[[230,230,230],[1,1,2],$e],yt=qe[0];Z(qe);const Ze=`rgb(${K[0]||yt[0]}, ${K[1]||yt[1]}, ${K[2]||yt[2]})`;B(ot=>({...ot,imgTitleColor:Ze}))}},[Me,K]),Y.useEffect(()=>{if(Me){const $e=Me==null?void 0:Me.slice(1,5),qe=ge==null?void 0:ge.filter(yn=>![U].includes(yn)),yt=qe&&N1a(qe);H($e);const Ze=$e[0],ot=[`rgba(${U[0]||Ze[0]}, ${U[1]||Ze[1]}, ${U[2]||Ze[2]}, 0.45)`,"rgba(0,0,0,0.45)",`rgba(${U[0]||Ze[0]}, ${U[1]||Ze[1]}, ${U[2]||Ze[2]}, 0.6)`];B(yn=>({...yn,chartColors:yt,bgColor:ot}))}},[Me,U]),Y.useEffect(()=>{const{chartColors:$e,bgColor:qe,imgTitleColor:yt}=D;$e!=null&&$e.length&&qe&&ee&&(Jva($e,qe,ee,yt),T(!1))},[D,ee]),Y.useEffect(()=>(t.dashboardId?Chn(t.dashboardId,m):KAe(!0),()=>{uVe(),G6(),X(""),hVe()}),[t.dashboardId]),Y.useEffect(()=>{X(""),uVe(),G6(),hVe(),fVe(""),QAe(""),ZF("")},[]),Y.useEffect(()=>()=>{ZX(!1),L$(!1)},[]);const Xe=($e,qe)=>{o===Qt.newDashboard&&L$(!1),t.id?a.push(tr.updateDashboard($e)):a.push(`${tr.dashboards(qe)}`)},Oe=$e=>{var qe;n(((qe=$e==null?void 0:$e.dataset)==null?void 0:qe.item)&&JSON.parse($e.dataset.item)),!ze&&o===Qt.newDashboard&&L$(!0)},Ye=w,mt=((Kt=(Cn=(xt=s==null?void 0:s.name)==null?void 0:xt.toLowerCase())==null?void 0:Cn.replace(/[^a-zA-Z0-9 ]/g,""))==null?void 0:Kt.replace(/ /g,""))||((an=(On=(rn=q.UNTITLED_DASHBOARD)==null?void 0:rn.toLowerCase())==null?void 0:On.replace(/[^a-zA-Z0-9 ]/g,""))==null?void 0:an.replace(/ /g,"")),ut=Y.useCallback(()=>{const $e=ree(s==null?void 0:s.tags),qe={name:aBe(s==null?void 0:s.name)||q.UNTITLED_DASHBOARD,description:aBe(s==null?void 0:s.description),title:aBe(s==null?void 0:s.title),...$e};Wva(qe,_||{},t==null?void 0:t.dashboardId,Xe,s==null?void 0:s.descriptionBlockHeight,A||mt)},[s,_,A]),lt=async $e=>new Promise(qe=>{const yt=new Image;yt.onload=()=>{const Ze=document.createElement("canvas");Ze.width=yt.naturalWidth,Ze.height=yt.naturalHeight,Ze.getContext("2d").drawImage(yt,0,0),Ze.toBlob(ot=>{if(ot){const yn=new File([ot],`${$e.name.replace(/\.[^/.]+$/,"")}.webp`,{type:ot.type});qe(yn)}},"image/webp",1e-4)},yt.src=URL.createObjectURL($e)}),pn=async $e=>{const qe=$e.target.files[0];if(!qe||!qe.type.startsWith("image/")){J(q.INVALID_FILE_TYPE);return}if(qe.size>1e7){J(q.INVALID_FILE_SIZE);return}J(""),T(!0);try{const yt=await lt(qe),[Ze]=await o$o(qe,yt);if(Ze){const ot=new URL(Ze),yn=`${ot.origin}${ot.pathname}`;X(yn)}$([])}catch{}finally{T(!1)}};if(Ft.isEmpty(s)&&!ne&&ie)return E.jsx(Pre,{children:E.jsx(Ise,{errorPageType:he?`${he}`:"404"})});const sn=()=>t!=null&&t.dashboardId?q.UPDATE:q.SAVE,un=()=>{je&&ye(!1)},ur=()=>{var qe;ye(!1);const $e=(qe=me==null?void 0:me.target)==null?void 0:qe.getAttribute("data-id");$e===tr.queriesPath("new?tabID=1")?(T5("1"),a.push($e)):$e==="home_page"?a.push(Qt.landingPage):a.push($e)},dt=$e=>{const{status:qe}=$e;if(qe===os.FINISHED||qe===os.SKIPPED){const yt={...se,dashboardGuide:!1},Ze={...Ne,settings:JSON.stringify(yt)};AO(ue,Ze)}};return E.jsxs(E.Fragment,{children:[o===Qt.newDashboard&&oe&&E.jsx(pqn,{steps:Rgi,callback:dt}),E.jsxs(Vjn,{height:N,children:[E.jsx("div",{className:"mainContent",children:E.jsxs("div",{className:"boxContent",children:[ne&&E.jsx(as,{}),E.jsxs("div",{className:`topBar ${Ee&&"topBarResView"}`,children:[E.jsxs("div",{className:"topBarHead",children:[E.jsx(E8t,{isImgTitle:!1}),!pe&&E.jsx(eut,{visibility:c})]}),E.jsxs("div",{className:"topBarAction",children:[E.jsx(E$o,{}),E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>a.goBack(),className:"backBtn",children:q.BACK}),E.jsx(Jt,{variant:"contained",color:"primary",disabled:Be||!!Ye||!!M||Ft.isEmpty(I)&&!k,onClick:ut,children:sn()})]})]}),E.jsxs(Kjn,{itemType:(e==null?void 0:e.type)||(v==null?void 0:v.type),chartType:((on=e==null?void 0:e.metadata)==null?void 0:on.chartType)||((dr=v==null?void 0:v.metadata)==null?void 0:dr.chartType),height:N,infoView:r,imgUrl:k,$chartBackground:R,$useImgColors:C,$titleColor:P,className:"createEditDashboard",children:[E.jsxs("div",{className:"panelLeft",children:[(b||de)&&E.jsx("div",{className:"imgBlockLoading",children:E.jsx(Ep,{})}),E.jsxs("div",{className:"gridLayout",children:[k&&!b&&!de&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"imgBlock",children:k&&!b&&E.jsx(Nye,{src:k})}),E.jsx("div",{className:"dashboardTitle",children:E.jsx(E8t,{isImgTitle:!0})}),E.jsx(fqn,{editDashboard:!0})]}),!r&&E.jsx(BGn,{isLayoutEditable:L,handleDrag:Oe}),r&&E.jsx(hqn,{})]})]}),E.jsx(A$o,{onSelectFile:pn,layoutColorList:j,imgLoading:b||Be,pickedBgColor:U,setPickedBgColor:$,setImageSrc:X,uploadErrorMessage:te,titleTextColorList:z,titleTextColor:K,setTitleTextColor:Q})]})]})}),E.jsx(lf,{maxWidth:"xs",visible:je,onClose:un,title:q.UNSAVED_CHANGES_TITLE,children:E.jsxs(rCe,{children:[E.jsx("p",{children:q.UNSAVED_CHANGES_TEXT}),E.jsxs("div",{className:"modalFooter",children:[E.jsx(Jt,{onClick:un,variant:"contained",color:"secondary",children:q.STAY}),E.jsx(Jt,{type:"submit",onClick:ur,variant:"contained",color:"primary",children:q.LEAVE})]})]})})]})]})}const w$o="/assets/dashboardlayer-686337a7.svg";gt.div`
  margin-top: -80px;
  padding: 100px 16px 0;
  background-image: url(${w$o});
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top;
  margin-bottom: 50px;
  &.emptyDashboardDetail {
    margin-top: 0;
  }
  .pageToolbar {
    border-bottom: 1px solid ${t=>t.theme.custom.white.A6};
    padding-bottom: 0;
    margin-bottom: 32px;
    .tabButton {
      color: ${t=>t.theme.custom.erdTable.greyLight};
      font-size: ${t=>t.theme.custom.fontSize.font20};
      padding-bottom: 20px;
      text-transform: none;
      &:after {
        width: 35px;
      }
      &:hover,
      &.Mui-selected {
        color: ${t=>t.theme.custom.white.A11};
      }
    }
  }
  .title {
    margin-bottom: 32px;
    display: flex;
    h3 {
      margin: 0;
      padding-bottom: 16px;
      border-bottom: 1px solid ${t=>t.theme.custom.white.A1};
      color: ${t=>t.theme.custom.white.A2};
    }
  }
  iframe {
    height: 100vh;
    width: 100%;
    border: 0;
    background: transparent !important;
    .webgl {
      background: transparent !important;
    }
  }
  .list {
    ul {
      width: 100%;
      border-bottom: 1px solid rgba(111, 77, 128, 0.7);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0;
      li {
        font-weight: 400;
        line-height: 140%;
        letter-spacing: -0.01em;
        color: #e6e6e6;
        list-style: none;
        font-size: 16px;
        border-bottom: 1px solid rgba(111, 77, 128, 0.7);
        position: relative;
        padding: 17px 0;
        &:after {
          position: absolute;
          content: '';
          bottom: 0;
          left: 0;
          width: 100%;
          height: 1px;
          background: #e6e6e6;
          box-shadow: 0px 0px 8px rgba(230, 230, 230, 0.94);
        }
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .dataBaseView {
      .MuiGrid-item {
        width: 100%;
      }
    }
  }
`;gt.div`
  && {
    background: rgba(48, 38, 77, 0.75);
    border: 0.5px solid #675b8c;
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    padding: 16px;
    &:not(first-child) {
      margin-top: 16px;
    }
    .blockHead {
      display: flex;
      align-items: center;
      position: relative;
      margin-bottom: 16px;
      h3 {
        color: ${t=>t.theme.custom.white.A10};
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
        margin: 0;
      }
      .icon {
        margin-left: auto;
      }
    }
    .topList {
      padding: 16px 8px 16px 16px;
      background: #1c1433;
      border-radius: 8px;
      ul {
        padding: 0 8px 0 0;
        max-height: 412px;
        overflow: auto;
        margin: 0;
        list-style: none;
        li {
          padding: 8px 16px;
          border-radius: 8px;
          .listTitle {
            font-size: ${t=>t.theme.custom.fontSize.font16};
            color: ${t=>t.theme.custom.white.A10};
          }
          .listInfo {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 0 -4px;
            flex-wrap: wrap;
            .infoItem {
              display: inline-flex;
              align-items: center;
              margin-top: 4px;
              padding: 0 4px;
              color: ${t=>t.theme.custom.white.A10};
              svg {
                margin-right: 4px;
              }
            }
          }
          + li {
            margin-top: 8px;
          }
          &:nth-child(even) {
            background: rgba(48, 38, 77, 0.75);
            box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
          }
        }
      }
    }
    .commonTable {
      background: #1c1433;
      padding: 8px;
      border-radius: 8px;
      table {
        width: 100%;
        color: ${t=>t.theme.custom.white.A10};
        th {
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          font-size: ${t=>t.theme.custom.fontSize.font16};
        }
        th,
        td {
          padding: 4px 8px;
        }
        td {
          font-size: ${t=>t.theme.custom.fontSize.font14};
          opacity: 0.6;
        }
        tbody {
          tr {
            &:nth-child(odd) {
              td {
                background: rgba(48, 38, 77, 0.75);
                &:first-child {
                  border-top-left-radius: 8px;
                  border-bottom-left-radius: 8px;
                }
                &:last-child {
                  border-top-right-radius: 8px;
                  border-bottom-right-radius: 8px;
                }
              }
            }
          }
        }
      }
    }
    .infoPara {
      font-size: ${t=>t.theme.custom.fontSize.font16};
      color: ${t=>t.theme.custom.white.A10};
      margin: 16px 0;
    }
    .commonFooter {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 16px;
      font-size: ${t=>t.theme.custom.fontSize.font16};
      color: ${t=>t.theme.custom.white.A10};
      padding: 0 8px;
    }
    .dataSourceType {
      display: flex;
      flex-wrap: wrap;
      .dataItem {
        width: 50%;
        display: flex;
        align-items: center;
        color: ${t=>t.theme.custom.white.A10};
        &:nth-child(1),
        &:nth-child(2) {
          img {
            margin-right: 16px;
            max-width: 48px;
          }
        }
        &:nth-child(3),
        &:nth-child(4) {
          img {
            margin-left: 40px;
            margin-right: 16px;
            max-width: 32px;
          }
        }
      }
    }
    .datasetBlock {
      display: flex;
      align-items: center;
      .searchDataset {
        flex: 0 0 40%;
        max-width: 40%;
        .MuiInputBase-root {
          background: #1c1433;
        }
        .MuiOutlinedInput-input {
          padding: 12px 16px !important;
        }
      }
      .datasetList {
        flex: 0 0 60%;
        max-width: 60%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        .dataset {
          text-align: center;
          .datasetTitle {
            color: ${t=>t.theme.custom.white.A10};
            font-size: ${t=>t.theme.custom.fontSize.font12};
            opacity: 0.6;
            margin-bottom: 8px;
          }
          + .dataset {
            margin-left: 45px;
          }
        }
      }
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      .datasetBlock {
        flex-wrap: wrap;
        .searchDataset {
          flex: 0 0 100%;
          max-width: 100%;
        }
        .datasetList {
          justify-content: space-around;
          margin-top: 20px;
          flex: 0 0 100%;
          max-width: 100%;
          .dataset {
            + .dataset {
              margin-left: 0;
            }
          }
        }
      }
    }
    ${t=>t.theme.breakpoints.between("sm","md")} {
      .datasetBlock {
        .dataset {
          + .dataset {
            margin-left: 34px;
          }
        }
      }
    }
  }
`;gt.div`
  && {
    display: flex;
    align-items: center;
    justify-content: center;
    .tabListing {
      border-bottom: 0.5px solid #675b8c;
      border-radius: 0;
      flex-wrap: wrap;
    }
    .tabButton {
      color: ${t=>t.theme.custom.white.A10};
      font-size: ${t=>t.theme.custom.fontSize.font12};
      flex-direction: column;
      padding-bottom: 26px;
      position: relative;
      margin-top: 32px;
      &:after {
        content: '';
        width: 100%;
        height: 1px;
        position: absolute;
        left: 0;
        bottom: -2px;
        background: ${t=>t.theme.custom.white.A1};
        box-shadow: 0px 0px 8px #999999;
        display: none;
      }
      &:hover,
      &.Mui-selected {
        &:after {
          display: block;
        }
      }
      .tabImg {
        margin: 10px 0;
        position: relative;
        .greendot {
          position: absolute;
          width: 12px;
          height: 12px;
          top: 0;
          right: -20px;
          background: #42ff00;
          border-radius: 50%;
        }
      }
      + .tabButton {
        margin-left: 60px;
      }
    }
    ${t=>t.theme.breakpoints.down("md")} {
      .tabListing {
        justify-content: center;
        gap: 20px;
      }
      .tabButton + .tabButton {
        margin-left: 0;
      }
    }
  }
`;gt.footer`
  padding: 0 16px;
  margin-top: auto;
  .getstart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0;
    position: relative;
    &:after {
      position: absolute;
      content: '';
      height: 1px;
      background: linear-gradient(180deg, #5000bf 0%, #cc0aac 100%);
      width: 100%;
      bottom: 0;
      left: 0;
    }
  }
  .footerLinkList {
    display: flex;
    align-items: flex-start;
    padding: 50px 0;
    .listItem {
      flex: 0 0 20%;
      max-width: 20%;
      .listhead {
        margin-bottom: 20px;
        a {
          color: ${t=>t.theme.custom.white.A11};
          font-size: ${t=>t.theme.custom.fontSize.font18};
          font-weight: ${t=>t.theme.custom.fontWeight.sm};
        }
      }
      .linkList {
        margin: 0;
        padding: 0;
        list-style: none;
        li {
          a {
            color: rgba(191, 191, 191, 0.75);
            font-size: ${t=>t.theme.custom.fontSize.font18};
            display: inline-flex;
            align-items: center;
            svg {
              margin-right: 16px;
            }
            &:hover {
              color: ${t=>t.theme.custom.white.A10};
            }
          }
          + li {
            margin-top: 20px;
          }
        }
      }
    }
  }
  .footerBottom {
    padding: 32px 0;
    font-size: ${t=>t.theme.custom.fontSize.font18};
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #675b8c;
    .text {
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
      color: ${t=>t.theme.custom.white.A11};
    }
    .copyrightText {
      color: rgba(191, 191, 191, 0.75);
      a {
        color: rgba(191, 191, 191, 0.75);
        text-decoration: underline;
        margin-left: 5px;
        &:hover {
          color: ${t=>t.theme.custom.white.A10};
        }
      }
    }
  }
  ${t=>t.theme.breakpoints.down("xl")} {
    .footerBottom,
    .footerLinkList .listItem .linkList li a,
    .footerLinkList .listItem .listhead a {
      font-size: ${t=>t.theme.custom.fontSize.font16};
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .footerBottom,
    .footerLinkList .listItem .linkList li a,
    .footerLinkList .listItem .listhead a {
      font-size: ${t=>t.theme.custom.fontSize.font14};
    }
    .footerBottom {
      display: block;
      text-align: center;
      .copyrightText {
        margin-top: 20px;
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .getstart {
      text-align: center;
      display: block;
      .getstartbutton {
        margin-top: 10px;
      }
    }
    .footerLinkList {
      flex-wrap: wrap;
      .listItem {
        &:not(.listSocial) {
          flex: 0 0 33.33%;
          max-width: 33.33%;
          margin-bottom: 2rem;
        }
        .linkList {
          li a svg {
            margin-right: 8px;
            max-width: 18px;
          }
        }
        &.listSocial {
          flex: 0 0 100%;
          max-width: 100%;
          &:not(:last-child) {
            margin-bottom: 1rem;
          }
          .linkList {
            display: flex;
            li {
              flex: 0 0 33.33%;
              max-width: 33.33%;
              + li {
                margin-top: 0;
              }
            }
          }
        }
      }
    }
  }
  @media (max-width: 480px) {
    .footerBottom,
    .footerLinkList .listItem .linkList li a,
    .footerLinkList .listItem .listhead a {
      font-size: ${t=>t.theme.custom.fontSize.font12};
    }
  }
`;const _$o=gt.div`
  && {
    display: flex;
    align-items: center;
    .searchBox {
      flex: ${t=>t.showSearchResultpanel&&"0 0 30%"};
      max-width: ${t=>t.showSearchResultpanel&&"30%"};
      width: ${t=>t.showSearchResultpanel?"unset":"100%"};
      margin: ${t=>t.showSearchResultpanel?0:"0 auto"};
      &:before,
      &:after {
        content: '';
        position: absolute;
        background: ${t=>t.theme.custom.white.A1};
        left: 100%;
        display: ${t=>t.showSearchResultpanel?"block":"none"};
      }
      &:before {
        width: 140px;
        height: 2px;
        top: 28px;
      }
      &:after {
        width: 8px;
        height: 8px;
        top: 25px;
        border-radius: 50%;
      }
      .globalSearch {
        max-width: ${t=>t.showSearchResultpanel&&"100%"};
      }
      .globalSearch .autoCompleteSearch {
        border: 1.5px solid ${t=>t.theme.custom.white.A1};
      }
    }
    .searchResult {
      flex: 0 0 70%;
      max-width: 70%;
      padding-left: 140px;
      .resultTabs {
        background: ${t=>{var e;return t!=null&&t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[2]:`linear-gradient(
              182.14deg,
              rgba(216, 196, 255, 0.04) 3.13%,
              rgba(126, 97, 255, 0) 41.06%
            ),
            #372c5e`}};
        backdrop-filter: blur(8px);
        border-radius: 20px;
        padding: 10px 20px 20px;
        border: 1.5px solid ${t=>t.theme.custom.white.A1};
        min-height: 315px;
        display: flex;
        flex-direction: column;
        .chartSuggetionList {
          .chartsDesign,
          .counterThumbnail,
          .datasetThumbnail {
            height: 225px;
            min-width: 225px;
            .thumbnailBody {
              height: 160px;
            }
          }
          .datasetThumbnail {
            .strippedTable {
              margin-top: 0;
            }
          }
        }
        .contentErrorBlock {
          width: 100%;
          margin: auto;
          .alertInfo {
            color: ${t=>t.theme.custom.white.A11};
            font-size: ${t=>t.theme.custom.fontSize.font12};
          }
        }
        .contentLoading {
          text-align: center;
          overflow: auto;
          height: 100%;
          display: block;
          .contentBlock {
            margin: auto 0;
            picture {
              display: block;
            }
          }
          img.errorIcon {
            max-width: 80px;
          }
          .helpText {
            max-width: calc(100% - 80px);
            text-align: left;
            margin-top: 0;
            display: inline-block;
            vertical-align: middle;
            .infoIcon {
              vertical-align: middle;
            }
          }
          .collpaseIcon {
            border: 0;
            box-shadow: unset;
            margin-left: 8px;
            height: 20px;
            width: 20px;
            display: inline-block;
            vertical-align: middle;
            svg {
              height: 12px;
              width: 12px;
            }
            &.open {
              transform: rotate(180deg);
            }
          }
          .collapseText {
            .msg {
              background: ${t=>t.theme.custom.white.A4};
              color: ${t=>t.theme.custom.white.A11};
              border-radius: 8px;
              padding: 8px;
              margin-top: 8px;
              text-align: left;
              border: 1px solid ${t=>t.theme.custom.greyText.A11};
              word-break: break-word;
              margin-right: 6px;
            }
          }
        }
      }
      .strippedTable {
        margin-top: 10px;
      }
      .tabButton {
        color: ${t=>t.theme.custom.white.A11};
      }
      .emptyVisualization {
        padding: 0;
      }
    }
    &.fadeInRight {
      -webkit-animation-name: fadeInRight;
      animation: fadeInRight 1s;
    }

    @-webkit-keyframes fadeInRight {
      from {
        opacity: 0;
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
      }

      to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
      }
    }
    @keyframes fadeInRight {
      from {
        opacity: 0;
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
      }

      to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
      }
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    && {
      display: block;
      .searchBox {
        max-width: 100%;
        margin-bottom: 30px;
        &:after,
        &:before {
          display: none;
        }
      }

      .searchResult {
        max-width: 100%;
        padding-left: 0;
      }

      &.fadeInRight {
        animation-name: none;
      }
    }
  }
`,tut=t=>{const{queryError:e}=t,[n,r]=Y.useState(!1);return E.jsx("div",{className:"contentLoading",children:E.jsxs("div",{className:"contentBlock",children:[E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:Umn}),E.jsx("img",{src:Hmn,alt:"error-icon",className:"errorIcon"})]}),E.jsx(fg,{message:`${e==null?void 0:e.type}, ${e==null?void 0:e.title}`}),E.jsx(_n,{onClick:()=>r(!n),className:n?"collpaseIcon open":"collpaseIcon",children:E.jsx(Qy,{})}),E.jsx(jo,{in:n,timeout:"auto",unmountOnExit:!0,className:"collapseText",children:E.jsx("div",{className:"msg",children:e==null?void 0:e.detail})})]})})};var nut={},T$o=As;Object.defineProperty(nut,"__esModule",{value:!0});var mqn=nut.default=void 0,C$o=T$o(Ps()),k$o=E;mqn=nut.default=(0,C$o.default)((0,k$o.jsx)("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn");const R$o=gt.div`
  position: relative;
  max-width: 512px;
  margin: 0 auto;
`,M$o=gt.div`
  && {
    display: flex;
    align-items: center;
    background: ${t=>{var e;return t.$useImgColors?`${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}`:`linear-gradient(
      182.14deg,
      rgba(216, 196, 255, 0.04) 3.13%,
      rgba(126, 97, 255, 0) 41.06%
    ),
    #372c5e`}};
    backdrop-filter: blur(8px);
    border-radius: 100px;
    box-shadow: ${t=>{var e;return t!=null&&t.$useImgColors?`4px 4px 24px ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}`:"4px 4px 24px rgba(31, 48, 51, 0.4)"}};
    overflow: hidden;
    padding: 0 10px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    &.seachbarfocus:focus-within {
      border-radius: 24px 24px 0 0;
    }
  }
  .inputField {
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    input {
      background: transparent;
      width: 100%;
      height: 100%;
      padding: 18px 0;
      border: 0;
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.heading)==null?void 0:r.h3}};
      color: ${t=>t.theme.custom.white.A1};
      &::placeholder {
        color: ${t=>t.theme.custom.white.A1};
      }
      &:focus {
        outline: none;
      }
      &[disabled] {
        cursor: not-allowed;
      }
    }
  }
  .searchIcon {
    height: 46px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
      180deg,
      ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
      ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
    ) !important`:"rgb(41 38 88 / 50%);"}};
    border-radius: 50%;
    color: ${t=>t.theme.custom.white.A1};
    .iconClose {
      cursor: pointer;
    }
  }
  .closeIcon {
    border: 0;
    box-shadow: none;
    color: ${t=>t.theme.custom.white.A1};
    svg {
      height: unset;
      width: unset;
    }
  }
  .LoadingIcon {
    height: 46px;
  }
  ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("sm")}} {
    .searchIcon {
      height: 36px;
      width: 36px;
    }
    .inputField {
      input {
        padding: 12px 0;
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
      }
    }
    .LoadingIcon {
      height: 36px;
    }
  }
`,N$o=gt.ul`
  padding: 10px 0 0 0;
  margin: 0;
  max-height: 250px;
  overflow: auto;
  list-style: none;
  li {
    padding: 5px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 19px;
    cursor: pointer;
  }
  li:hover {
    background: ${t=>t.theme.custom.white.A5};
    background: #2b285b;
    border-radius: 100px;
  }
  li.listHead {
    pointer-events: none;
    cursor: default;
    .listContent {
      position: relative;
      display: flex;
      align-items: center;
      color: ${t=>t.theme.custom.white.A1};
      opacity: 0.35;
    }
    .listContent:after {
      content: '';
      height: 1px;
      width: 100%;
      background: ${t=>t.theme.custom.white.A2};
      margin-left: 5px;
    }
  }
  li a {
    float: left;
    display: inline-block;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #712bd2;
  }
`,I$o=gt.div`
  color: ${t=>t.theme.custom.white.A1};
  text-align: left;
`;gt.div`
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: ${t=>t.theme.custom.primaryBg};
  cursor: pointer;
`;const P$o=gt.div`
  position: relative;
  display: flex;
  align-items: center;
  color: #9995ba;
  p {
    padding: 0 5px;
    margin: 0;
  }
`,O$o=gt.div`
  position: absolute;
  width: 100%;
  top: 60px;
  left: 0;
  z-index: 99;
  background: linear-gradient(
      182.14deg,
      rgba(216, 196, 255, 0.04) 3.13%,
      rgba(126, 97, 255, 0) 41.06%
    ),
    #372c5e;
  box-shadow: 0px 40px 60px rgb(0 0 0 / 12%);
  border-radius: 0 0 24px 24px;
  .seeall {
    float: left;
    display: inline-block;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #712bd2;
    padding: 5px 19px;
    margin: 3px 19px;
  }
`;function L$o({options:t,handleChange:e,onSelectValue:n,value:r,onFocus:a,onBlur:o,onKeyPress:s,placeholder:l,handleCloseBtn:c,showLoader:u,abortController:d,schemasLoading:h,searchIcon:f=E.jsx(Smi,{})}){var x;const p=Y.useRef(null),m=()=>{var w;return e(((w=p==null?void 0:p.current)==null?void 0:w.value)||"")},g=Ft.debounce(m,300),v=xo(),{chartBackground:A,useImgColors:y}=_p(),S=y&&vN(((x=v==null?void 0:v.location)==null?void 0:x.pathname)||"");return E.jsxs(R$o,{className:"globalSearch",children:[E.jsxs(M$o,{className:`autoCompleteSearch ${(t==null?void 0:t.length)>0&&"seachbarfocus"}`,$chartBackground:A,$useImgColors:S,children:[E.jsx("div",{className:"searchIcon",children:f}),E.jsx("div",{className:"inputField",children:E.jsx("input",{onChange:g,onClick:g,defaultValue:r,onFocus:a,disabled:h,onKeyPress:s,onBlur:o,placeholder:l||q.SEARCH_PIPELINEVIEW,ref:p,autoComplete:"off"})}),u&&E.jsx("img",{className:"LoadingIcon",src:ws,alt:"loading..."}),(r==null?void 0:r.length)>0&&E.jsx(_n,{className:"closeIcon",onClick:()=>{var w,_;(w=p==null?void 0:p.current)!=null&&w.value&&((_=p==null?void 0:p.current)==null?void 0:_.value)!==""&&(p.current.value=""),d!=null&&d.current&&d.current.abort(),c&&c()},children:E.jsx(ioe,{})})]}),t.length>0?E.jsx(O$o,{className:"searchListing",children:E.jsx(N$o,{children:t==null?void 0:t.map((w,_)=>E.jsxs("li",{className:w!=null&&w.isDisabled?"listHead":"",onClick:()=>{w!=null&&w.isDisabled||(p!=null&&p.current&&(p.current.value=w.value),n&&n(w))},role:"presentation",children:[E.jsx(I$o,{className:"optionText",children:w.title}),E.jsxs(P$o,{children:[E.jsx("p",{children:q.SELECT}),E.jsx(mqn,{})]})]},`${w.title}${_+_}`))})}):null]})}function Vye({children:t,style:e}){return E.jsx("div",{className:"alertInfo",style:e,children:t})}function rut(){return E.jsx(Ep,{})}var iut={},B$o=As;Object.defineProperty(iut,"__esModule",{value:!0});var gqn=iut.default=void 0,D$o=B$o(Ps()),$$o=E;gqn=iut.default=(0,D$o.default)((0,$$o.jsx)("path",{d:"M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"}),"DownloadRounded");const F$o=gt(Skr)`
  && {
    justify-content: center;
    background: transparent;
    padding: 0;
    color: ${t=>t.theme.custom.white.A1};
    margin-top: 10px;
  }
  button:nth-child(2) {
    margin-right: 8px;
  }
`,vqn=({maxSteps:t,activeStep:e,handleNext:n,handleFirst:r,handleLast:a,handlePrev:o,theme:s,isInsideQueryBot:l})=>E.jsx(F$o,{theme:s,variant:"text",steps:t,position:"static",activeStep:e,nextButton:E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:n,disabled:e===t-1,children:E.jsx(Aya,{})}),!l&&E.jsx(_n,{onClick:a,disabled:e===t-1,className:"handleLastBtn",children:E.jsx(yya,{})})]}),backButton:E.jsxs(E.Fragment,{children:[!l&&E.jsx(_n,{onClick:r,disabled:e===0,className:"handleFirstBtn",children:E.jsx(gya,{})}),E.jsx(_n,{onClick:o,disabled:e===0,children:E.jsx(vya,{})})]})});function j$o({chartData:t,counterData:e,open:n,handleClose:r,queryResult:a,queryId:o,history:s,disabled:l=!1,columns:c,rowData:u,isUserLoggedIn:d=!1,isRunning:h}){const[f,p]=Y.useState(""),[m,g]=Y.useState(0),[v,A]=Y.useState(t),[y,S]=Y.useState(e),[x,w]=Y.useState({}),_=[...v,...y].length,{useImgColors:C}=_p(),R=gO(),k=$oe(),P=Y.useMemo(()=>{const ee=new Set;return t==null||t.forEach(({type:X,config:te})=>{te!=null&&te.labelType?ee.add(te.labelType):X&&ee.add(X)}),e==null||e.forEach(X=>(X==null?void 0:X.type)===ii.table?ee.add(X.type):ee.add(`${X==null?void 0:X.metric}_counter`)),Array.from(ee)},[t,e]),N=$it(),{hasMoreChartsSuggestions:L}=N,I=()=>{g(ee=>ee+1),w({})},b=()=>{g(_-1),w({})},T=()=>{g(ee=>ee-1),w({})},M=()=>{g(0),w({})},D=ee=>{var ne;const X=(ne=ee==null?void 0:ee.target)==null?void 0:ne.value,te=t.filter(ie=>{var he,de;return(he=ie==null?void 0:ie.config)!=null&&he.labelType?((de=ie==null?void 0:ie.config)==null?void 0:de.labelType)===X:ie.type===X}),J=e.filter(ie=>(ie==null?void 0:ie.type)===X||(ie==null?void 0:ie.metric)===(X==null?void 0:X.replace("_counter","")));A(te),S(J),p(X),M(),w({})},B=()=>{A(t),S(e),p(""),M()},j=X_e(c,u),H=()=>c.map((ee,X)=>{const te=R[X];return{label:(te==null?void 0:te.title)||ee.fieldName,dataKey:ee.fieldName,fieldName:(te==null?void 0:te.title)||ee.fieldName,hide:te==null?void 0:te.hideColumn,align:te==null?void 0:te.align,positive:te==null?void 0:te.positive,negative:te==null?void 0:te.negative,type:te==null?void 0:te.type,format:te==null?void 0:te.format}}),U=ee=>{var te,J,ne;const X=bdn(v[m]);return E.jsxs(cee,{className:"chartPopup",children:[E.jsxs("div",{className:"thumbnailHead",children:[E.jsx("label",{children:(J=(te=v[m])==null?void 0:te.config)!=null&&J.isMixChart?Zg.mix_chart:XU((ne=v[m])==null?void 0:ne.type)}),E.jsxs("div",{className:"thumbnailHeadRight",children:[E.jsx(_n,{tooltip:q.VIEW_CHART,onClick:()=>{Git(),_5({item:v[m],isSetting:!1,isView:!0}),Pfn(v[m]),r()},children:E.jsx(Eya,{})}),E.jsx(_n,{tooltip:q.CUSTOMIZE_CHART,disabled:l,onClick:()=>{_5({item:v[m]}),VAe(a),UT(Vl(),s,o==="new"),iH(!1,L)},children:E.jsx(x2,{})}),E.jsx(_n,{tooltip:k?"Query is saving...":q.SAVE_CHART,disabled:!d,onClick:()=>{!k&&_D(v[m])},children:k?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(SD,{})})]})]}),E.jsx("div",{className:"thumbnailBody",children:E.jsx(xse,{config:Ese({data:ee,chartConfigurationData:X,isPreview:!1,isModalPreview:!0}).config,type:X.chartType,isPreview:!1},`chart-preview-${O0.uuid()}`)})]})},$=(ee,X)=>{const te=q_e(c,u,X),J=Y_e(te==null?void 0:te.flat(),ee.target.value);w({...X,metric:ee.target.value,value:J})},z=ee=>{const{metric:X,columnName:te,value:J,type:ne}=ee;return E.jsx(zmn,{imgBg:aTe,useImgColors:C,className:"suggetionCounter",children:E.jsxs("div",{className:"counterCard",children:[E.jsxs("div",{className:"topRow",children:[E.jsx("span",{children:ne}),E.jsxs("div",{className:"thumbnailHeadRight",children:[E.jsx(_n,{disabled:l,tooltip:q.CUSTOMIZE_COUNTER,onClick:()=>{Vit(ee,Vl()),VAe(a),UT(Vl(),s,o==="new")},children:E.jsx(x2,{})}),E.jsx(_n,{tooltip:q.SAVE_COUNTER,disabled:!d,onClick:()=>{_D(ee)},children:E.jsx(SD,{})})]})]}),E.jsx("div",{className:"titleRow",children:E.jsx(MTe,{className:"metricDropdown",children:E.jsx(Ba,{value:(x==null?void 0:x.metric)||X,name:"metric",onChange:ie=>$(ie,ee),children:am==null?void 0:am.map(ie=>{var he;return E.jsx(Dn,{value:ie==null?void 0:ie.value,children:E.jsxs(NTe,{className:`counter ${(he=ie==null?void 0:ie.value)==null?void 0:he.toLowerCase()}`,children:[E.jsx("div",{className:"counterIcon",children:ie.icon}),E.jsx("div",{className:"counterValue",children:ie.label})]})},ie==null?void 0:ie.value)})})})}),E.jsxs("div",{className:"counterBody",children:[E.jsx(Pn,{label:(x==null?void 0:x.value)||J,children:E.jsx("h3",{className:"counterValue",children:ev((x==null?void 0:x.value)||J||0,!1,(x==null?void 0:x.decimal)||2)})}),E.jsx(Pn,{label:te,children:E.jsx("span",{className:"counterLabel",children:te})})]})]})})},Z=()=>E.jsxs(cee,{className:"datasetThumbnailPopup",children:[E.jsxs("div",{className:"thumbnailHead",children:[E.jsx("label",{htmlFor:"label",children:q.DATASET}),E.jsxs("div",{className:"thumbnailHeadRight",children:[E.jsx(_n,{tooltip:q.CUSTOMIZE_DATASET,disabled:l,onClick:()=>{_5({item:{type:ii.table}}),UT(Vl(),s,o==="new")},children:E.jsx(x2,{})}),E.jsx(_n,{tooltip:q.SAVE_DATASET,onClick:()=>{_D({type:ii.table})},children:E.jsx(SD,{})})]})]}),E.jsx(tf,{data:u,columns:H(),loading:!!h,rowSize:44,bodyHeight:246,strippedTable:!0,tableColumnWidth:j,isAction:!1})]}),K=Y.useCallback(ee=>{var J;let X=null;const te=ee[m];return(te==null?void 0:te.type)===ii.table?(X=Z(),X):((te==null?void 0:te.type)===ii.counter?X=z(te):te&&(X=U((J=te==null?void 0:te.config)==null?void 0:J.data)),X)},[m,v,y,x,k]),Q=ee=>ee&&Ft.capitalize(ee);return E.jsxs(lf,{title:q.VISUALIZATION_RECOMMENDATIONS,visible:n,onClose:r,children:[(P==null?void 0:P.length)>1&&E.jsxs(X2a,{children:[E.jsxs(Ba,{value:f||"",onChange:ee=>{D(ee)},children:[E.jsx(Dn,{value:"",disabled:!0,children:`${q.SELECT} ${q.VISUALIZATION}`}),P==null?void 0:P.map(ee=>E.jsx(Dn,{value:ee,children:Q(XU(ee))},ee))]}),E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:B,children:E.jsx(_v,{})})]}),K([...v,...y]),E.jsx(vqn,{maxSteps:_,activeStep:m,handleFirst:M,handleLast:b,handleNext:I,handlePrev:T}),E.jsx(fg,{message:q.RECOMMONDED_CHART_MODAL_HELPTEXT})]})}const Aqn={};function H$o(t,e){const n=Aqn[t];n&&n.fire&&n.fire("export-to",{type:"png",fileName:e})}function U$o(t){const e=Aqn[t];e&&e.resize&&e.resize()}const z$o=WYt(U$o,700),G$o=gt.div`
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  .topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px;
  }
`;gt.div`
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  p {
    margin-bottom: 0;
  }
`;const V$o="/assets/configureChart-22e4b0a5.webp",K$o=t=>{const{onClick:e,disabled:n,isSliderViewCharts:r}=t;return E.jsx(sf,{imgPath:Ujn,imgPathWebp:V$o,title:q.PLEASE_CONFIGURE_VISUALIZATION,className:`emptyVisualization ${r?"emptyVisualizationSmall":""}`,children:E.jsx(Jt,{variant:"contained",color:"primary",disabled:n,onClick:e,children:q.CONFIGURE_VISUALIZATION})})},W$o=[al.SUM,al.MAX,al.MIN,al.MEAN],Q$o=t=>{const{dataFrames:e}=Qwe(t),n=[],r=e==null?void 0:e.filter(o=>o.type==="integer"),a=(o,s)=>{switch(o){case al.SUM:return s==null?void 0:s.sum;case al.MAX:return s==null?void 0:s.maximum;case al.MIN:return s==null?void 0:s.minimum;case al.MEAN:return s==null?void 0:s.mean;default:return s==null?void 0:s.sum}};return r==null||r.forEach((o,s)=>{const l=W$o[s%4],c=a(l,o);c!==0&&(n==null||n.push({columnName:o==null?void 0:o.name,decimal:2,metric:l,value:c,type:ii.counter,score:.8}))}),n==null||n.push({type:ii.table,score:.1}),n},q$o=t=>{const{charts:e}=t,[n,r]=Y.useState(0),[a,o]=Y.useState(0);Y.useEffect(()=>{o(e==null?void 0:e.length)},[e]);const s=()=>{r(d=>d+1)},l=()=>{r(a-1)},c=()=>{r(d=>d-1)},u=()=>{r(0)};return E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"chartSuggetionList stepperContent",children:e.map((d,h)=>h===n&&d)}),e&&Array.isArray(e)&&e.length>1&&E.jsx(vqn,{maxSteps:a,activeStep:n,handleFirst:u,handleLast:l,handleNext:s,handlePrev:c,isInsideQueryBot:!0})]})};function Y$o(t){var mt;const e=Vga(),{children:n,noChart:r,chartID:a,disabled:o=!1,queryBotQueryResult:s,isQueryBot:l,handleViewInQueryBot:c,setQueryBotChartOption:u,isSliderViewCharts:d,query:h,tableBodyHeight:f}=t,p=$it(),m=f9(),{name:g,userId:v}=m||{},{showMoreChartsSuggestions:A,hasMoreChartsSuggestions:y}=p,[S,x]=Y.useState(E.jsx(E.Fragment,{})),[w,_]=Y.useState({}),[C,R]=Y.useState([]),[k,P]=Y.useState([]),N=xo(),L=e?I_e():G_e(),I=Boe()||"new",b=Doe()||"New query",T=e?koe():Yw(),M=IAa(),D=ufn(),B=_p(),j=pN(),H=gO(),U=p9(),{visualType:$}=wV(j||""),z=qw(),Z=nhn(),K=Kga(),Q=ahn(),ee=Iit(),{chartBackground:X,useImgColors:te}=_p(),J=Wga(),ne=Qga(),[ie,he]=Y.useState(""),de=localStorage.getItem("userId")||"",ce=Lit(),Ee=ho(),Me=$oe(),{data:Be={}}=O_e(),ze=nva(),je=CAa(),[ye,me]=Y.useState([]);let le;l?le=s:e?le=P_e():le=gfn();const{dataframesObject:pe={},filteredDataFrames:Ne=[],items:_e=[],fieldsMetadata:ue=[]}=le,se=a==="chart-main"&&!D?ee.fields:M,oe=_e&&_e.length,ge=(ut,lt)=>{lt===Ln.pie_chart&&ut.colorField&&ut.angleField&&(delete Object.assign(ut,{xField:ut.colorField}).colorField,delete Object.assign(ut,{yField:ut.angleField}).angleField);const{yField:pn}=ut;return ut.yField=[{name:pn}],{...ut}},De=te&&vN(((mt=N==null?void 0:N.location)==null?void 0:mt.pathname)||""),Fe=()=>{Dva({...Qit(j,z,H,U),type:Di[$],name:`${ie} ${g} ${Fd().format("DD MMM YYYY [at] hh:mm:ss A")}`||"",description:Q||""})};Y.useEffect(()=>{K&&e&&Fe()},[K]);const Se=(ut,lt,pn)=>{const sn=q_e(ue,_e,pn),un=Y_e(sn==null?void 0:sn.flat(),ut.target.value);_({...w,[lt]:{...pn,metric:ut.target.value,value:un}})},Xe=()=>{I==="new"&&!e&&!l?(Lfn(),UT(Vl(),N,I==="new")):e||l?(l?hp(h):Nfn(`${Z==null?void 0:Z.replace(/\n$/,"")}`),N.push("/queries/new?tabID=1")):(VAe(le),UT(Vl(),N,I==="new"))},Oe=async(ut,lt,pn,sn)=>{var dt;ut.preventDefault();let un="";const ur={name:`Query ${g} ${Fd().format("DD MMM YYYY [at] hh:mm:ss A")}`||"",description:Q||"",tags:[],visibility:sr.private,status:"COMPLETED"};pn===ii.counter?he(pn):pn===ii.table?he(Ft.startCase(Zg.dataset)):(dt=lt==null?void 0:lt.config)!=null&&dt.isMixChart?(un=Zg.mix_chart,he(Ft.startCase(un))):(un=XU(lt==null?void 0:lt.type),he(Ft.startCase(un))),await Fva(ur).then(()=>{pn===ii.counter?Hva(lt,le,sn):pn===ii.table?Xva(le):Uva(lt,le,sn)})},Ye=()=>{var ot,yn;const ut=(_e==null?void 0:_e.length)>10?_e==null?void 0:_e.slice(0,10):_e,lt=r1e(ue,_e,!0),pn=qwe(Ne);l1a(I,pe,pn);let sn=r1e(ue,ut,!1);sn=gha(sn,Ne);const{insightResult:un,adviseResult:ur}=fha(sn,pn)||{},dt=[],xt=uha(lt,Ne);un==null||un.forEach(vt=>{const{score:Gt,visualizationSchemas:ft}=vt;ft==null||ft.forEach(rt=>{const{chartType:Pt,chartSchema:Yt}=rt;xt!=null&&xt.length&&!(Ln.pie_chart,Ln.scatter_plot,Ln.scatter_plot).includes(Pt)||dt.push({type:Pt,...ge(Yt,Pt),score:Gt})})}),ur==null||ur.forEach(vt=>{const{type:Gt,score:ft}=vt;xt!=null&&xt.length&&!(Ln.pie_chart,Ln.scatter_plot,Ln.scatter_plot).includes(Gt)||Gt&&dt.push({type:Gt,...pha(vt,Gt,lt),score:ft})}),dt.push(...xt);const Cn=[];dt==null||dt.sort((vt,Gt)=>{var ft,rt;return((ft=vt==null?void 0:vt.yField)==null?void 0:ft.length)-((rt=Gt==null?void 0:Gt.yField)==null?void 0:rt.length)});for(let vt=0;vt<(dt==null?void 0:dt.length);vt+=1){let Gt=!0;const ft=[],{xField:rt,yField:Pt,type:Yt,labelType:Un=""}=dt[vt];Pt==null||Pt.forEach(({name:jn})=>ft.push(jn));for(let jn=vt+1;jn<(dt==null?void 0:dt.length);jn+=1){const{xField:br,yField:si,type:Qi,labelType:st=""}=dt[jn];if((Pt==null?void 0:Pt.length)>(si==null?void 0:si.length))continue;const wt=[];si==null||si.forEach(({name:dn})=>wt.push(dn));const Bt=Ft.intersection(ft,wt);if((Bt==null?void 0:Bt.length)===(ft==null?void 0:ft.length)&&Yt===Qi&&rt===br&&Un===st){Gt=!1;break}}Gt&&Cn.push(dt[vt])}const Kt={},rn=[];Cn==null||Cn.forEach(vt=>{var rt;const{xField:Gt,type:ft}=vt;!Gt||!ft||(Kt[Gt]||(Kt[Gt]={}),ft&&!Kt[Gt][ft]&&(Kt[Gt][ft]=[]),(rt=Kt[Gt][ft])==null||rt.push(vt))}),(ot=Object.keys(Kt))==null||ot.forEach(vt=>{var Gt;(Gt=Object.keys(Kt[vt]))==null||Gt.forEach(ft=>{const rt=Kt[vt][ft],Pt=rt==null?void 0:rt.length;Pt&&(Pt>3&&S1a(rt,"score"),rn.push(...rt.slice(0,3)))})}),rn==null||rn.sort((vt,Gt)=>(Gt==null?void 0:Gt.score)-(vt==null?void 0:vt.score));const On=[];rn==null||rn.forEach(vt=>{var st;(st=vt[XUe.yField])==null||st.forEach((wt,Bt)=>{Bt===0?vt[XUe.yField]=wt==null?void 0:wt.name:vt[`y${Bt}Field`]={value:wt==null?void 0:wt.name,chartType:(wt==null?void 0:wt.chartType)||(vt==null?void 0:vt.type.replace("_chart",""))}});const{type:Gt,score:ft,xAxisData:rt,yAxisData:Pt,isCustomChart:Yt,isMixChart:Un,labelType:jn,data:br,annotations:si,...Qi}=vt;Qi.legendEnabled=!0,Qi.sliderEnabled=!0,Gt&&On.push({type:Gt==="scatter_plot"?"scatter_chart":Gt,config:{...vt,configItem:Qi,data:lt},score:ft})}),On==null||On.sort((vt,Gt)=>Gt.score-vt.score);const an=[...new Map(On.map(vt=>{var Gt;return[((Gt=vt.config)==null?void 0:Gt.labelType)||(vt==null?void 0:vt.type),vt]})).values()],on=Q$o(lt);on.length>0&&P([...on]),(On==null?void 0:On.length)>0||(on==null?void 0:on.length)>0?iH(A,!0):iH(A,!1);const dr=X_e(ue,_e),$e=()=>ue.map((vt,Gt)=>{const ft=H[Gt];return{label:(ft==null?void 0:ft.title)||vt.fieldName,dataKey:vt.fieldName,fieldName:(ft==null?void 0:ft.title)||vt.fieldName,hide:ft==null?void 0:ft.hideColumn,align:ft==null?void 0:ft.align,positive:ft==null?void 0:ft.positive,negative:ft==null?void 0:ft.negative,type:ft==null?void 0:ft.type,format:ft==null?void 0:ft.format}}),qe=on==null?void 0:on.map((vt,Gt)=>{var ft,rt,Pt;return(vt==null?void 0:vt.type)===ii.table?E.jsxs(cee,{$useImgColor:De,$chartBackground:X,className:"datasetThumbnail",children:[E.jsxs("div",{className:"thumbnailHead",children:[E.jsx("label",{htmlFor:"label",children:q.DATASET}),!l&&(e?E.jsx(_n,{tooltip:q.ADD_WIDGET,className:`addToDashBtn ${v!==de&&"hide"}`,onClick:Yt=>{Oe(Yt,{chartType:ii.table},ii.table,0)},disabled:ze,children:E.jsx(ED,{})}):E.jsxs("div",{className:"thumbnailHeadRight",children:[E.jsx(_n,{tooltip:q.CUSTOMIZE_DATASET,disabled:o,onClick:()=>{_5({item:{type:ii.table}}),UT(Vl(),N,I==="new")},children:E.jsx(x2,{})}),E.jsx(_n,{tooltip:q.SAVE_DATASET,onClick:()=>{_D({type:ii.table})},disabled:!Ee,children:E.jsx(SD,{})})]}))]}),E.jsx(tf,{data:_e,columns:$e(),loading:!!T,rowSize:44,bodyHeight:f||88,strippedTable:!0,tableColumnWidth:dr,isAction:!1})]}):E.jsxs(cee,{$useImgColor:De,$chartBackground:X,className:"counterThumbnail",children:[E.jsxs("div",{className:"thumbnailHead",children:[E.jsx("label",{htmlFor:"label",children:vt.type}),!l&&(e?E.jsx(_n,{tooltip:q.ADD_WIDGET,onClick:Yt=>{Oe(Yt,vt,"counter",Gt)},className:`addToDashBtn ${v!==de&&"hide"}`,disabled:ne.includes(Gt),children:E.jsx(ED,{})}):E.jsxs("div",{className:"thumbnailHeadRight",children:[E.jsx(_n,{tooltip:q.CUSTOMIZE_COUNTER,onClick:()=>{Vit(vt,Vl()),UT(Vl(),N,I==="new")},disabled:o,children:E.jsx(x2,{})}),E.jsx(_n,{tooltip:q.SAVE_COUNTER,onClick:()=>{_D(vt)},disabled:!Ee,children:E.jsx(SD,{})})]}))]}),E.jsxs("div",{className:"thumbnailBody",children:[E.jsx(MTe,{className:"metricDropdown",children:E.jsx(Ba,{value:((ft=w[Gt])==null?void 0:ft.metric)||(vt==null?void 0:vt.metric),name:"metric",onChange:Yt=>Se(Yt,Gt,vt),MenuProps:{sx:{".MuiMenu-paper":{background:De&&(X==null?void 0:X[0])}}},children:am==null?void 0:am.map(Yt=>{var Un;return E.jsx(Dn,{value:Yt==null?void 0:Yt.value,children:E.jsxs(NTe,{className:`counter ${(Un=Yt==null?void 0:Yt.value)==null?void 0:Un.toLowerCase()}`,children:[E.jsx("div",{className:"counterIcon",children:Yt.icon}),E.jsx("div",{className:"counterValue",children:Yt.label})]})},Yt==null?void 0:Yt.value)})})}),E.jsxs("div",{className:"counterInfo",children:[E.jsx("h3",{className:"counterValue",children:ev(((rt=w[Gt])==null?void 0:rt.value)||((Pt=vt==null?void 0:vt.value)==null?void 0:Pt.toFixed(vt==null?void 0:vt.decimal)),!1,vt==null?void 0:vt.decimal)}),E.jsx("div",{className:"columnName",children:vt==null?void 0:vt.columnName})]})]})]})});let yt=[];const Ze=E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"chartSuggetionList",children:[!Ft.isEmpty(an)&&((yn=an==null?void 0:an.slice(0,3))==null?void 0:yn.map((vt,Gt)=>{var Pt;const ft=bdn(vt),rt=E.jsxs(cee,{$useImgColor:!l&&De,$chartBackground:!l&&X,className:"chartsDesign",children:[E.jsxs("div",{className:"thumbnailHead",children:[E.jsx("label",{htmlFor:"label",children:(Pt=vt==null?void 0:vt.config)!=null&&Pt.isMixChart?Zg.mix_chart:XU(vt==null?void 0:vt.type)}),!l&&(e?E.jsx(_n,{tooltip:q.ADD_WIDGET,className:`addToDashBtn ${v!==de&&"hide"}`,onClick:Yt=>{Oe(Yt,vt,"chart",Gt)},disabled:J.includes(Gt),children:E.jsx(ED,{})}):E.jsxs("div",{className:"thumbnailHeadRight",children:[E.jsx(_n,{tooltip:q.CUSTOMIZE_CHART,disabled:o,onClick:()=>{_5({item:vt}),UT(Vl(),N,I==="new")},children:E.jsx(x2,{})}),E.jsx(_n,{tooltip:Me?"Query is saving...":q.SAVE_CHART,disabled:!Ee,onClick:()=>{!Me&&_D(vt)},children:Me?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(SD,{})})]}))]}),E.jsx("div",{className:"thumbnailBody","aria-hidden":"true",role:"button",tabIndex:0,onClick:()=>{l?c():Git();const Yt=_5({item:vt,isSetting:!1,isView:!0,isQueryBot:l});l?u(Yt):Pfn(vt)},children:E.jsx(xse,{config:Ese({data:lt,chartConfigurationData:ft,isPreview:!0,isDashboardPreview:!1,isModalPreview:!1,customColor:B,isQueryBot:l}).config,isPreview:!0,showCounterMetric:!1,style:{height:"100%"},type:ft.chartType})})]},O0.uuid());return yt.push(rt),rt})),(an==null?void 0:an.length)<3&&R1a(an==null?void 0:an.length,qe)]}),Ft.isEmpty(an)&&Ft.isEmpty(qe)&&l&&d&&(yt=yt.concat(E.jsx(K$o,{disabled:o,onClick:Xe})))]});(On==null?void 0:On.length)>0&&R([...On]),x(Ze),me(yt)};return Y.useEffect(()=>{_e!=null&&_e.length&&(ue!=null&&ue.length)&&Ye()},[_e,ue,I,w,ne,J,d]),E.jsxs(G$o,{children:[!l&&((C==null?void 0:C.length)>0||(k==null?void 0:k.length)>0)&&E.jsx(j$o,{queryId:I,queryResult:le,disabled:o,open:A,chartData:C,counterData:k,columns:ue,rowData:_e,history:N,handleClose:()=>iH(!1,y),isUserLoggedIn:Ee,isRunning:T}),!r&&!l&&E.jsx(_n,{disabled:!oe,onClick:()=>H$o(I,b),tooltip:"Save chart image",children:E.jsx(gqn,{})}),E.jsxs(eCa,{children:[!l&&Ft.isEmpty(se)&&!T&&L===ii.chart&&S,l&&(d?E.jsx(q$o,{charts:ye}):S),n]}),ce&&Be&&!je&&E.jsx($zn,{saveAsNew:!0,savedQueryDetails:Be,isUnsaved:"false"})]})}const yqn=ke.memo(Y$o);function J$o({isQueryBot:t,isQueryRunningInQueryBot:e,queryBotQueryResult:n,handleQueryBotTabChange:r,toogle:a}){var f;const o=I_e(),s=t?n:P_e(),l=(s==null?void 0:s.items)&&((f=s==null?void 0:s.items)==null?void 0:f.length)>0,c=koe(),[u,d]=Y.useState(a);Y.useEffect(()=>{d(a)},[a]);const h=p=>{t?r(p):Rhn(p.currentTarget.value)};return E.jsx(Tp,{className:"",children:(!c||t&&!e)&&E.jsxs(eA,{exclusive:!0,color:"primary",value:t?u:o,onChange:h,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:ii.table,"aria-label":ii.table,children:q.QUERY_RESULTS}),l&&E.jsx(Xs,{size:"small",className:"tabButton",value:ii.chart,"aria-label":ii.chart,children:q.QUERY_VISUALIZATION})]})})}const Z$o=ke.memo(J$o);function X$o({isQueryBot:t,queryResult:e}){var h;const n=rit(),r=I_e(),a=t?e:P_e(),o=(a==null?void 0:a.items)&&((h=a==null?void 0:a.items)==null?void 0:h.length)||0,s=koe(),l=!Ft.isEmpty(a)&&(a==null?void 0:a.fieldsMetadata),c=!Ft.isEmpty(a)&&"finished",u=180;let d;return n&&(d=E.jsx(Vc,{title:n==null?void 0:n.detail,children:n==null?void 0:n.detail})),c==="finished"&&o===0?E.jsxs(Vye,{children:["Query finished",E.jsx("br",{}),"No rows returned"]}):(s?d=E.jsx(rut,{}):nae.isEmpty(a)||(d=E.jsx(TP,{columns:l,rowCount:o,queryError:n,data:a==null?void 0:a.items,tableHeight:u})),r===ii.table?E.jsx("div",{children:d}):null)}const e7o=ke.memo(X$o),t7o=({showSearchResultpanel:t,isLoggedIn:e})=>{const[n,r]=Y.useState([]),a=ahn(),o=rhn(),s=rit(),l=Y.useRef(null),c=tva(),u=eva(),[d,h]=Y.useState(a),f=ihn(),p=koe(),m=SV(),g=nhn(),v=I_e(),A=shn(),y=Wdn(),S=R=>{h(R==null?void 0:R.trim()),!R&&(p||f)&&l!=null&&l.current&&l.current.abort(),R||(YX(""),Que(0),dVe())};Y.useEffect(()=>()=>{l!=null&&l.current&&l.current.abort()},[]);const x=()=>{h(""),YX(""),Que(0),dVe()},w=u>=1?q.CHAT_GPT_TEXT_NEXT_MSG:q.CHAT_GPT_TEXT,_=()=>{let R;return s===q.QUERY_ABORT||s&&(typeof s=="string"||s instanceof String)?R=E.jsx(Vc,{title:s,children:s}):typeof s=="object"&&!Ft.isEmpty(s)&&s!==q.QUERY_ABORT?R=E.jsx(tut,{queryError:s}):A?R=E.jsxs(Vye,{children:["Query finished",E.jsx("br",{}),"No rows returned"]}):o&&(R=E.jsx(Vc,{title:o,children:o})),(p||f)&&(R=E.jsx("div",{className:"contentLoading",children:E.jsxs("div",{className:"contentBlock",children:[E.jsx(rut,{}),E.jsx(fg,{message:f?w:q.QUERY_RUNNING}),u>=1&&f&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:()=>Pva(),className:c?"collpaseIcon open":"collpaseIcon",children:E.jsx(Qy,{})}),E.jsx(jo,{in:c,timeout:"auto",unmountOnExit:!0,className:"collapseText",children:E.jsx("div",{className:"msg",children:s==null?void 0:s.detail})})]})]})})),E.jsx("div",{className:"contentErrorBlock",children:R})},C=R=>{p||f||R.key==="Enter"&&R.target.value&&(e?(YX(""),Que(0),khn(R.target.value,l)):co(!0))};return Y.useEffect(()=>{g&&(Que(u+1),u<3&&Lva(`${g==null?void 0:g.replace(/\n$/,"")}`,m,l,!1,d,y))},[g]),E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"searchBox",children:E.jsx(L$o,{options:n,handleChange:S,value:d,onKeyPress:R=>C(R),onBlur:()=>{setTimeout(()=>{r([])},300)},placeholder:q.SEARCH_DASHBOARD,handleCloseBtn:x,showLoader:!1,abortController:l,searchIcon:E.jsx(Nmi,{})})}),t&&E.jsx("div",{className:"searchResult",children:E.jsx("div",{className:"resultTabs",children:o||s||p||f||A?_():E.jsxs(E.Fragment,{children:[E.jsx(Z$o,{}),v===ii.table&&E.jsx(e7o,{}),v===ii.chart&&E.jsx(yqn,{chartID:"chart-main",settings:!0,noChart:!0,tableBodyHeight:128})]})})})]})};function w8t({isPublic:t=!1}){var D;const e=localStorage.getItem("userId")||"",n=QM(),r=xo(),{key:a}=r.location||{},o=f9(),s=tit(),{userId:l=""}=o||{},{height:c,headerHeight:u,width:d}=Is(),h=c-u||500,f=!1,p=ho(),m=P_e(),g=ihn(),v=koe(),A=rit(),y=ohn(),S=shn(),x=rhn(),[w,_]=Y.useState(!1);Y.useEffect(()=>{p===!0&&(o==null?void 0:o.hasOwnProperty("liked"))===!1&&window.location.reload()},[p]);const C=(m==null?void 0:m.items)&&((D=m==null?void 0:m.items)==null?void 0:D.length)>0||g||S||A===q.NETWORK_ERROR||x||typeof A=="object"&&!Ft.isEmpty(A)&&(A!==q.QUERY_ABORT||A!==q.QUERY_PROMPT_ABORT)||v,R=o&&o.metadata&&JSON.parse(o.metadata)||[],{useImgColors:k,imgUrl:P,chartBackground:N,titleColor:L}=R.customImg||{};Y.useEffect(()=>(n!=null&&n.dashboardId&&Chn(n.dashboardId,p,t),()=>{uVe(),hVe()}),[n.dashboardId]);const I=()=>E.jsx(Pre,{children:E.jsx(Ise,{errorPageType:y?`${y}`:"404"})});if(Y.useEffect(()=>(Akt(!0),()=>{YX(""),dVe(),Akt(!1),$va(),Zva(),bva(),jva()}),[]),Ft.isEmpty(o)&&!s)return I();const b=()=>{r&&r.goBack()},T=async B=>{B===!0?await Bn.addLikeToDashboard(o==null?void 0:o.id,p):await Bn.addDislikeToDashboard(o==null?void 0:o.id,p)};let M=(o==null?void 0:o.hasOwnProperty("likes"))&&(o==null?void 0:o.hasOwnProperty("liked"));return p===!1&&(M=o==null?void 0:o.hasOwnProperty("likes")),E.jsxs(Y.Suspense,{fallback:as,children:[E.jsx(Vjn,{height:h,imgUrl:P,$useImgColors:k,$chartBackground:N,$titleColor:L,showSearchResultpanel:C,className:"dasboardEditView",children:E.jsxs("div",{className:`dashboardWrapper ${P?"dashboardWrapperImg":""}`,children:[E.jsx("div",{className:"dashboardImage",children:E.jsx(Nye,{src:P})}),E.jsx("div",{className:"mainContent",children:E.jsxs("div",{className:"boxContent",children:[E.jsxs("div",{className:"topBar",children:[!P&&E.jsx("div",{className:"topBarHead",children:E.jsx("h2",{children:(o==null?void 0:o.name)||""})}),E.jsxs("div",{className:"btnRow",children:[(o==null?void 0:o.visibility)==="public"&&M&&E.jsx("div",{className:"likeButton",children:E.jsx(Klt,{count:o==null?void 0:o.likes,filled:o==null?void 0:o.liked,onClick:T})}),(o==null?void 0:o.visibility)==="public"&&E.jsx("div",{style:{marginRight:"10px",marginTop:"1px"},children:E.jsx(_n,{onClick:()=>_(!0),tooltip:q.SHARE_DASHBOARD_TOOLTIP,children:E.jsx(r9,{})})}),a&&E.jsx(Jt,{variant:"contained",color:"secondary",onClick:b,className:"btnBack",children:q.BACK}),d>=qt.breakpoints.values.md&&e===l&&p&&E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>r.push(tr.updateDashboard(o.id)),children:q.EDIT_DASHBOARD})]})]}),!Ft.isEmpty(P)&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"dashboardInfo",children:[E.jsx("h2",{children:(o==null?void 0:o.name)||""}),E.jsx(_$o,{$chartBackground:N,$useImgColors:k,showSearchResultpanel:C,className:C?"fadeInRight":"",children:E.jsx(t7o,{showSearchResultpanel:C,isLoggedIn:p})})]}),E.jsx(fqn,{editDashboard:!1})]}),E.jsx(Kjn,{height:h,infoView:!1,className:"dashboardViewPanel",$chartBackground:N,$useImgColors:k,children:E.jsx("div",{className:"panelLeft",children:E.jsx("div",{className:"gridLayout dashboardViewSection",children:E.jsx(BGn,{handleDrag:()=>{},isLayoutEditable:f,loading:s})})})})]})})]})}),(o==null?void 0:o.visibility)==="public"&&E.jsx(IK,{loggedIn:!0,preventOnCloseBehavior:!0,showVisibilityDashboardButtons:!1,slugModalOpen:w,setSlugModalOpen:_,id:o==null?void 0:o.id,isPublic:(o==null?void 0:o.visibility)==="public",slug:o==null?void 0:o.slug,type:"Dashboard Link",handleCallback:()=>{},visibility:o==null?void 0:o.visibility})]})}function n7o(){const t=Y.createContext(void 0);return{Provider:({initialStore:a,createStore:o,children:s})=>{const l=Y.useRef();return l.current||(a&&(console.warn("Provider initialStore is deprecated and will be removed in the next version."),o||(o=()=>a)),l.current=o()),Y.createElement(t.Provider,{value:l.current},s)},useStore:(a,o=Object.is)=>{const s=Y.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return s(a,o)},useStoreApi:()=>{const a=Y.useContext(t);if(!a)throw new Error("Seems like you have not used zustand provider as an ancestor.");return Y.useMemo(()=>({getState:a.getState,setState:a.setState,subscribe:a.subscribe,destroy:a.destroy}),[a])}}}var r7o={value:()=>{}};function wCe(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Sge(n)}function Sge(t){this._=t}function i7o(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");if(a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Sge.prototype=wCe.prototype={constructor:Sge,on:function(t,e){var n=this._,r=i7o(t+"",n),a,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((a=(t=r[o]).type)&&(a=a7o(n[a],t.name)))return a;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(a=(t=r[o]).type)n[a]=_8t(n[a],t.name,e);else if(e==null)for(a in n)n[a]=_8t(n[a],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Sge(t)},call:function(t,e){if((a=arguments.length-2)>0)for(var n=new Array(a),r=0,a,o;r<a;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,a=o.length;r<a;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],a=0,o=r.length;a<o;++a)r[a].value.apply(e,n)}};function a7o(t,e){for(var n=0,r=t.length,a;n<r;++n)if((a=t[n]).name===e)return a.value}function _8t(t,e,n){for(var r=0,a=t.length;r<a;++r)if(t[r].name===e){t[r]=r7o,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var QQe="http://www.w3.org/1999/xhtml";const T8t={svg:"http://www.w3.org/2000/svg",xhtml:QQe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _Ce(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),T8t.hasOwnProperty(e)?{space:T8t[e],local:t}:t}function o7o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===QQe&&e.documentElement.namespaceURI===QQe?e.createElement(t):e.createElementNS(n,t)}}function s7o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function bqn(t){var e=_Ce(t);return(e.local?s7o:o7o)(e)}function l7o(){}function aut(t){return t==null?l7o:function(){return this.querySelector(t)}}function c7o(t){typeof t!="function"&&(t=aut(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var o=e[a],s=o.length,l=r[a]=new Array(s),c,u,d=0;d<s;++d)(c=o[d])&&(u=t.call(c,c.__data__,d,o))&&("__data__"in c&&(u.__data__=c.__data__),l[d]=u);return new Yy(r,this._parents)}function u7o(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function d7o(){return[]}function xqn(t){return t==null?d7o:function(){return this.querySelectorAll(t)}}function h7o(t){return function(){return u7o(t.apply(this,arguments))}}function f7o(t){typeof t=="function"?t=h7o(t):t=xqn(t);for(var e=this._groups,n=e.length,r=[],a=[],o=0;o<n;++o)for(var s=e[o],l=s.length,c,u=0;u<l;++u)(c=s[u])&&(r.push(t.call(c,c.__data__,u,s)),a.push(c));return new Yy(r,a)}function Eqn(t){return function(){return this.matches(t)}}function Sqn(t){return function(e){return e.matches(t)}}var p7o=Array.prototype.find;function m7o(t){return function(){return p7o.call(this.children,t)}}function g7o(){return this.firstElementChild}function v7o(t){return this.select(t==null?g7o:m7o(typeof t=="function"?t:Sqn(t)))}var A7o=Array.prototype.filter;function y7o(){return Array.from(this.children)}function b7o(t){return function(){return A7o.call(this.children,t)}}function x7o(t){return this.selectAll(t==null?y7o:b7o(typeof t=="function"?t:Sqn(t)))}function E7o(t){typeof t!="function"&&(t=Eqn(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var o=e[a],s=o.length,l=r[a]=[],c,u=0;u<s;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&l.push(c);return new Yy(r,this._parents)}function wqn(t){return new Array(t.length)}function S7o(){return new Yy(this._enter||this._groups.map(wqn),this._parents)}function Kye(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Kye.prototype={constructor:Kye,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function w7o(t){return function(){return t}}function _7o(t,e,n,r,a,o){for(var s=0,l,c=e.length,u=o.length;s<u;++s)(l=e[s])?(l.__data__=o[s],r[s]=l):n[s]=new Kye(t,o[s]);for(;s<c;++s)(l=e[s])&&(a[s]=l)}function T7o(t,e,n,r,a,o,s){var l,c,u=new Map,d=e.length,h=o.length,f=new Array(d),p;for(l=0;l<d;++l)(c=e[l])&&(f[l]=p=s.call(c,c.__data__,l,e)+"",u.has(p)?a[l]=c:u.set(p,c));for(l=0;l<h;++l)p=s.call(t,o[l],l,o)+"",(c=u.get(p))?(r[l]=c,c.__data__=o[l],u.delete(p)):n[l]=new Kye(t,o[l]);for(l=0;l<d;++l)(c=e[l])&&u.get(f[l])===c&&(a[l]=c)}function C7o(t){return t.__data__}function k7o(t,e){if(!arguments.length)return Array.from(this,C7o);var n=e?T7o:_7o,r=this._parents,a=this._groups;typeof t!="function"&&(t=w7o(t));for(var o=a.length,s=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var d=r[u],h=a[u],f=h.length,p=R7o(t.call(d,d&&d.__data__,u,r)),m=p.length,g=l[u]=new Array(m),v=s[u]=new Array(m),A=c[u]=new Array(f);n(d,h,g,v,A,p,e);for(var y=0,S=0,x,w;y<m;++y)if(x=g[y]){for(y>=S&&(S=y+1);!(w=v[S])&&++S<m;);x._next=w||null}}return s=new Yy(s,r),s._enter=l,s._exit=c,s}function R7o(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function M7o(){return new Yy(this._exit||this._groups.map(wqn),this._parents)}function N7o(t,e,n){var r=this.enter(),a=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(a=e(a),a&&(a=a.selection())),n==null?o.remove():n(o),r&&a?r.merge(a).order():a}function I7o(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,a=n.length,o=r.length,s=Math.min(a,o),l=new Array(a),c=0;c<s;++c)for(var u=n[c],d=r[c],h=u.length,f=l[c]=new Array(h),p,m=0;m<h;++m)(p=u[m]||d[m])&&(f[m]=p);for(;c<a;++c)l[c]=n[c];return new Yy(l,this._parents)}function P7o(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],a=r.length-1,o=r[a],s;--a>=0;)(s=r[a])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function O7o(t){t||(t=L7o);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var n=this._groups,r=n.length,a=new Array(r),o=0;o<r;++o){for(var s=n[o],l=s.length,c=a[o]=new Array(l),u,d=0;d<l;++d)(u=s[d])&&(c[d]=u);c.sort(e)}return new Yy(a,this._parents).order()}function L7o(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function B7o(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function D7o(){return Array.from(this)}function $7o(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],a=0,o=r.length;a<o;++a){var s=r[a];if(s)return s}return null}function F7o(){let t=0;for(const e of this)++t;return t}function j7o(){return!this.node()}function H7o(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a=e[n],o=0,s=a.length,l;o<s;++o)(l=a[o])&&t.call(l,l.__data__,o,a);return this}function U7o(t){return function(){this.removeAttribute(t)}}function z7o(t){return function(){this.removeAttributeNS(t.space,t.local)}}function G7o(t,e){return function(){this.setAttribute(t,e)}}function V7o(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function K7o(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function W7o(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Q7o(t,e){var n=_Ce(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?z7o:U7o:typeof e=="function"?n.local?W7o:K7o:n.local?V7o:G7o)(n,e))}function _qn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function q7o(t){return function(){this.style.removeProperty(t)}}function Y7o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function J7o(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Z7o(t,e,n){return arguments.length>1?this.each((e==null?q7o:typeof e=="function"?J7o:Y7o)(t,e,n??"")):Ez(this.node(),t)}function Ez(t,e){return t.style.getPropertyValue(e)||_qn(t).getComputedStyle(t,null).getPropertyValue(e)}function X7o(t){return function(){delete this[t]}}function eFo(t,e){return function(){this[t]=e}}function tFo(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function nFo(t,e){return arguments.length>1?this.each((e==null?X7o:typeof e=="function"?tFo:eFo)(t,e)):this.node()[t]}function Tqn(t){return t.trim().split(/^|\s+/)}function out(t){return t.classList||new Cqn(t)}function Cqn(t){this._node=t,this._names=Tqn(t.getAttribute("class")||"")}Cqn.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function kqn(t,e){for(var n=out(t),r=-1,a=e.length;++r<a;)n.add(e[r])}function Rqn(t,e){for(var n=out(t),r=-1,a=e.length;++r<a;)n.remove(e[r])}function rFo(t){return function(){kqn(this,t)}}function iFo(t){return function(){Rqn(this,t)}}function aFo(t,e){return function(){(e.apply(this,arguments)?kqn:Rqn)(this,t)}}function oFo(t,e){var n=Tqn(t+"");if(arguments.length<2){for(var r=out(this.node()),a=-1,o=n.length;++a<o;)if(!r.contains(n[a]))return!1;return!0}return this.each((typeof e=="function"?aFo:e?rFo:iFo)(n,e))}function sFo(){this.textContent=""}function lFo(t){return function(){this.textContent=t}}function cFo(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function uFo(t){return arguments.length?this.each(t==null?sFo:(typeof t=="function"?cFo:lFo)(t)):this.node().textContent}function dFo(){this.innerHTML=""}function hFo(t){return function(){this.innerHTML=t}}function fFo(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function pFo(t){return arguments.length?this.each(t==null?dFo:(typeof t=="function"?fFo:hFo)(t)):this.node().innerHTML}function mFo(){this.nextSibling&&this.parentNode.appendChild(this)}function gFo(){return this.each(mFo)}function vFo(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function AFo(){return this.each(vFo)}function yFo(t){var e=typeof t=="function"?t:bqn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function bFo(){return null}function xFo(t,e){var n=typeof t=="function"?t:bqn(t),r=e==null?bFo:typeof e=="function"?e:aut(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function EFo(){var t=this.parentNode;t&&t.removeChild(this)}function SFo(){return this.each(EFo)}function wFo(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _Fo(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function TFo(t){return this.select(t?_Fo:wFo)}function CFo(t){return arguments.length?this.property("__data__",t):this.node().__data__}function kFo(t){return function(e){t.call(this,e,this.__data__)}}function RFo(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function MFo(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,a=e.length,o;n<a;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function NFo(t,e,n){return function(){var r=this.__on,a,o=kFo(e);if(r){for(var s=0,l=r.length;s<l;++s)if((a=r[s]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=o,a.options=n),a.value=e;return}}this.addEventListener(t.type,o,n),a={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(a):this.__on=[a]}}function IFo(t,e,n){var r=RFo(t+""),a,o=r.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,d;c<u;++c)for(a=0,d=l[c];a<o;++a)if((s=r[a]).type===d.type&&s.name===d.name)return d.value}return}for(l=e?NFo:MFo,a=0;a<o;++a)this.each(l(r[a],e,n));return this}function Mqn(t,e,n){var r=_qn(t),a=r.CustomEvent;typeof a=="function"?a=new a(e,n):(a=r.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function PFo(t,e){return function(){return Mqn(this,t,e)}}function OFo(t,e){return function(){return Mqn(this,t,e.apply(this,arguments))}}function LFo(t,e){return this.each((typeof e=="function"?OFo:PFo)(t,e))}function*BFo(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],a=0,o=r.length,s;a<o;++a)(s=r[a])&&(yield s)}var Nqn=[null];function Yy(t,e){this._groups=t,this._parents=e}function Gse(){return new Yy([[document.documentElement]],Nqn)}function DFo(){return this}Yy.prototype=Gse.prototype={constructor:Yy,select:c7o,selectAll:f7o,selectChild:v7o,selectChildren:x7o,filter:E7o,data:k7o,enter:S7o,exit:M7o,join:N7o,merge:I7o,selection:DFo,order:P7o,sort:O7o,call:B7o,nodes:D7o,node:$7o,size:F7o,empty:j7o,each:H7o,attr:Q7o,style:Z7o,property:nFo,classed:oFo,text:uFo,html:pFo,raise:gFo,lower:AFo,append:yFo,insert:xFo,remove:SFo,clone:TFo,datum:CFo,on:IFo,dispatch:LFo,[Symbol.iterator]:BFo};function qS(t){return typeof t=="string"?new Yy([[document.querySelector(t)]],[document.documentElement]):new Yy([[t]],Nqn)}function $Fo(t){let e;for(;e=t.sourceEvent;)t=e;return t}function xT(t,e){if(t=$Fo(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}}return[t.pageX,t.pageY]}const FFo={passive:!1},Gre={capture:!0,passive:!1};function o$e(t){t.stopImmediatePropagation()}function _H(t){t.preventDefault(),t.stopImmediatePropagation()}function Iqn(t){var e=t.document.documentElement,n=qS(t).on("dragstart.drag",_H,Gre);"onselectstart"in e?n.on("selectstart.drag",_H,Gre):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Pqn(t,e){var n=t.document.documentElement,r=qS(t).on("dragstart.drag",null);e&&(r.on("click.drag",_H,Gre),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Afe=t=>()=>t;function qQe(t,{sourceEvent:e,subject:n,target:r,identifier:a,active:o,x:s,y:l,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}qQe.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function jFo(t){return!t.ctrlKey&&!t.button}function HFo(){return this.parentNode}function UFo(t,e){return e??{x:t.x,y:t.y}}function zFo(){return navigator.maxTouchPoints||"ontouchstart"in this}function GFo(){var t=jFo,e=HFo,n=UFo,r=zFo,a={},o=wCe("start","drag","end"),s=0,l,c,u,d,h=0;function f(x){x.on("mousedown.drag",p).filter(r).on("touchstart.drag",v).on("touchmove.drag",A,FFo).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(x,w){if(!(d||!t.call(this,x,w))){var _=S(this,e.call(this,x,w),x,w,"mouse");_&&(qS(x.view).on("mousemove.drag",m,Gre).on("mouseup.drag",g,Gre),Iqn(x.view),o$e(x),u=!1,l=x.clientX,c=x.clientY,_("start",x))}}function m(x){if(_H(x),!u){var w=x.clientX-l,_=x.clientY-c;u=w*w+_*_>h}a.mouse("drag",x)}function g(x){qS(x.view).on("mousemove.drag mouseup.drag",null),Pqn(x.view,u),_H(x),a.mouse("end",x)}function v(x,w){if(t.call(this,x,w)){var _=x.changedTouches,C=e.call(this,x,w),R=_.length,k,P;for(k=0;k<R;++k)(P=S(this,C,x,w,_[k].identifier,_[k]))&&(o$e(x),P("start",x,_[k]))}}function A(x){var w=x.changedTouches,_=w.length,C,R;for(C=0;C<_;++C)(R=a[w[C].identifier])&&(_H(x),R("drag",x,w[C]))}function y(x){var w=x.changedTouches,_=w.length,C,R;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),C=0;C<_;++C)(R=a[w[C].identifier])&&(o$e(x),R("end",x,w[C]))}function S(x,w,_,C,R,k){var P=o.copy(),N=xT(k||_,w),L,I,b;if((b=n.call(x,new qQe("beforestart",{sourceEvent:_,target:f,identifier:R,active:s,x:N[0],y:N[1],dx:0,dy:0,dispatch:P}),C))!=null)return L=b.x-N[0]||0,I=b.y-N[1]||0,function T(M,D,B){var j=N,H;switch(M){case"start":a[R]=T,H=s++;break;case"end":delete a[R],--s;case"drag":N=xT(B||D,w),H=s;break}P.call(M,x,new qQe(M,{sourceEvent:D,subject:b,target:f,identifier:R,active:H,x:N[0]+L,y:N[1]+I,dx:N[0]-j[0],dy:N[1]-j[1],dispatch:P}),C)}}return f.filter=function(x){return arguments.length?(t=typeof x=="function"?x:Afe(!!x),f):t},f.container=function(x){return arguments.length?(e=typeof x=="function"?x:Afe(x),f):e},f.subject=function(x){return arguments.length?(n=typeof x=="function"?x:Afe(x),f):n},f.touchable=function(x){return arguments.length?(r=typeof x=="function"?x:Afe(!!x),f):r},f.on=function(){var x=o.on.apply(o,arguments);return x===o?f:x},f.clickDistance=function(x){return arguments.length?(h=(x=+x)*x,f):Math.sqrt(h)},f}function sut(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Oqn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Vse(){}var Vre=.7,Wye=1/Vre,TH="\\s*([+-]?\\d+)\\s*",Kre="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",O2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",VFo=/^#([0-9a-f]{3,8})$/,KFo=new RegExp(`^rgb\\(${TH},${TH},${TH}\\)$`),WFo=new RegExp(`^rgb\\(${O2},${O2},${O2}\\)$`),QFo=new RegExp(`^rgba\\(${TH},${TH},${TH},${Kre}\\)$`),qFo=new RegExp(`^rgba\\(${O2},${O2},${O2},${Kre}\\)$`),YFo=new RegExp(`^hsl\\(${Kre},${O2},${O2}\\)$`),JFo=new RegExp(`^hsla\\(${Kre},${O2},${O2},${Kre}\\)$`),C8t={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};sut(Vse,Wre,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:k8t,formatHex:k8t,formatHex8:ZFo,formatHsl:XFo,formatRgb:R8t,toString:R8t});function k8t(){return this.rgb().formatHex()}function ZFo(){return this.rgb().formatHex8()}function XFo(){return Lqn(this).formatHsl()}function R8t(){return this.rgb().formatRgb()}function Wre(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=VFo.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?M8t(e):n===3?new ZA(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?yfe(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?yfe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=KFo.exec(t))?new ZA(e[1],e[2],e[3],1):(e=WFo.exec(t))?new ZA(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=QFo.exec(t))?yfe(e[1],e[2],e[3],e[4]):(e=qFo.exec(t))?yfe(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=YFo.exec(t))?P8t(e[1],e[2]/100,e[3]/100,1):(e=JFo.exec(t))?P8t(e[1],e[2]/100,e[3]/100,e[4]):C8t.hasOwnProperty(t)?M8t(C8t[t]):t==="transparent"?new ZA(NaN,NaN,NaN,0):null}function M8t(t){return new ZA(t>>16&255,t>>8&255,t&255,1)}function yfe(t,e,n,r){return r<=0&&(t=e=n=NaN),new ZA(t,e,n,r)}function ejo(t){return t instanceof Vse||(t=Wre(t)),t?(t=t.rgb(),new ZA(t.r,t.g,t.b,t.opacity)):new ZA}function YQe(t,e,n,r){return arguments.length===1?ejo(t):new ZA(t,e,n,r??1)}function ZA(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}sut(ZA,YQe,Oqn(Vse,{brighter(t){return t=t==null?Wye:Math.pow(Wye,t),new ZA(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Vre:Math.pow(Vre,t),new ZA(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ZA(zD(this.r),zD(this.g),zD(this.b),Qye(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N8t,formatHex:N8t,formatHex8:tjo,formatRgb:I8t,toString:I8t}));function N8t(){return`#${sD(this.r)}${sD(this.g)}${sD(this.b)}`}function tjo(){return`#${sD(this.r)}${sD(this.g)}${sD(this.b)}${sD((isNaN(this.opacity)?1:this.opacity)*255)}`}function I8t(){const t=Qye(this.opacity);return`${t===1?"rgb(":"rgba("}${zD(this.r)}, ${zD(this.g)}, ${zD(this.b)}${t===1?")":`, ${t})`}`}function Qye(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zD(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function sD(t){return t=zD(t),(t<16?"0":"")+t.toString(16)}function P8t(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new YS(t,e,n,r)}function Lqn(t){if(t instanceof YS)return new YS(t.h,t.s,t.l,t.opacity);if(t instanceof Vse||(t=Wre(t)),!t)return new YS;if(t instanceof YS)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,l=o-a,c=(o+a)/2;return l?(e===o?s=(n-r)/l+(n<r)*6:n===o?s=(r-e)/l+2:s=(e-n)/l+4,l/=c<.5?o+a:2-o-a,s*=60):l=c>0&&c<1?0:s,new YS(s,l,c,t.opacity)}function njo(t,e,n,r){return arguments.length===1?Lqn(t):new YS(t,e,n,r??1)}function YS(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}sut(YS,njo,Oqn(Vse,{brighter(t){return t=t==null?Wye:Math.pow(Wye,t),new YS(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Vre:Math.pow(Vre,t),new YS(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new ZA(s$e(t>=240?t-240:t+120,a,r),s$e(t,a,r),s$e(t<120?t+240:t-120,a,r),this.opacity)},clamp(){return new YS(O8t(this.h),bfe(this.s),bfe(this.l),Qye(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Qye(this.opacity);return`${t===1?"hsl(":"hsla("}${O8t(this.h)}, ${bfe(this.s)*100}%, ${bfe(this.l)*100}%${t===1?")":`, ${t})`}`}}));function O8t(t){return t=(t||0)%360,t<0?t+360:t}function bfe(t){return Math.max(0,Math.min(1,t||0))}function s$e(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Bqn=t=>()=>t;function rjo(t,e){return function(n){return t+n*e}}function ijo(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function ajo(t){return(t=+t)==1?Dqn:function(e,n){return n-e?ijo(e,n,t):Bqn(isNaN(e)?n:e)}}function Dqn(t,e){var n=e-t;return n?rjo(t,n):Bqn(isNaN(t)?e:t)}const L8t=function t(e){var n=ajo(e);function r(a,o){var s=n((a=YQe(a)).r,(o=YQe(o)).r),l=n(a.g,o.g),c=n(a.b,o.b),u=Dqn(a.opacity,o.opacity);return function(d){return a.r=s(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return r.gamma=t,r}(1);function g3(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var JQe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,l$e=new RegExp(JQe.source,"g");function ojo(t){return function(){return t}}function sjo(t){return function(e){return t(e)+""}}function ljo(t,e){var n=JQe.lastIndex=l$e.lastIndex=0,r,a,o,s=-1,l=[],c=[];for(t=t+"",e=e+"";(r=JQe.exec(t))&&(a=l$e.exec(e));)(o=a.index)>n&&(o=e.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,c.push({i:s,x:g3(r,a)})),n=l$e.lastIndex;return n<e.length&&(o=e.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?c[0]?sjo(c[0].x):ojo(e):(e=c.length,function(u){for(var d=0,h;d<e;++d)l[(h=c[d]).i]=h.x(u);return l.join("")})}var B8t=180/Math.PI,ZQe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $qn(t,e,n,r,a,o){var s,l,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,c/=l),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*B8t,skewX:Math.atan(c)*B8t,scaleX:s,scaleY:l}}var xfe;function cjo(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ZQe:$qn(e.a,e.b,e.c,e.d,e.e,e.f)}function ujo(t){return t==null||(xfe||(xfe=document.createElementNS("http://www.w3.org/2000/svg","g")),xfe.setAttribute("transform",t),!(t=xfe.transform.baseVal.consolidate()))?ZQe:(t=t.matrix,$qn(t.a,t.b,t.c,t.d,t.e,t.f))}function Fqn(t,e,n,r){function a(u){return u.length?u.pop()+" ":""}function o(u,d,h,f,p,m){if(u!==h||d!==f){var g=p.push("translate(",null,e,null,n);m.push({i:g-4,x:g3(u,h)},{i:g-2,x:g3(d,f)})}else(h||f)&&p.push("translate("+h+e+f+n)}function s(u,d,h,f){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),f.push({i:h.push(a(h)+"rotate(",null,r)-2,x:g3(u,d)})):d&&h.push(a(h)+"rotate("+d+r)}function l(u,d,h,f){u!==d?f.push({i:h.push(a(h)+"skewX(",null,r)-2,x:g3(u,d)}):d&&h.push(a(h)+"skewX("+d+r)}function c(u,d,h,f,p,m){if(u!==h||d!==f){var g=p.push(a(p)+"scale(",null,",",null,")");m.push({i:g-4,x:g3(u,h)},{i:g-2,x:g3(d,f)})}else(h!==1||f!==1)&&p.push(a(p)+"scale("+h+","+f+")")}return function(u,d){var h=[],f=[];return u=t(u),d=t(d),o(u.translateX,u.translateY,d.translateX,d.translateY,h,f),s(u.rotate,d.rotate,h,f),l(u.skewX,d.skewX,h,f),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,h,f),u=d=null,function(p){for(var m=-1,g=f.length,v;++m<g;)h[(v=f[m]).i]=v.x(p);return h.join("")}}}var djo=Fqn(cjo,"px, ","px)","deg)"),hjo=Fqn(ujo,", ",")",")"),fjo=1e-12;function D8t(t){return((t=Math.exp(t))+1/t)/2}function pjo(t){return((t=Math.exp(t))-1/t)/2}function mjo(t){return((t=Math.exp(2*t))-1)/(t+1)}const gjo=function t(e,n,r){function a(o,s){var l=o[0],c=o[1],u=o[2],d=s[0],h=s[1],f=s[2],p=d-l,m=h-c,g=p*p+m*m,v,A;if(g<fjo)A=Math.log(f/u)/e,v=function(C){return[l+C*p,c+C*m,u*Math.exp(e*C*A)]};else{var y=Math.sqrt(g),S=(f*f-u*u+r*g)/(2*u*n*y),x=(f*f-u*u-r*g)/(2*f*n*y),w=Math.log(Math.sqrt(S*S+1)-S),_=Math.log(Math.sqrt(x*x+1)-x);A=(_-w)/e,v=function(C){var R=C*A,k=D8t(w),P=u/(n*y)*(k*mjo(e*R+w)-pjo(w));return[l+P*p,c+P*m,u*k/D8t(e*R+w)]}}return v.duration=A*1e3*e/Math.SQRT2,v}return a.rho=function(o){var s=Math.max(.001,+o),l=s*s,c=l*l;return t(s,l,c)},a}(Math.SQRT2,2,4);var Sz=0,GZ=0,AY=0,jqn=1e3,qye,VZ,Yye=0,f8=0,TCe=0,Qre=typeof performance=="object"&&performance.now?performance:Date,Hqn=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function lut(){return f8||(Hqn(vjo),f8=Qre.now()+TCe)}function vjo(){f8=0}function Jye(){this._call=this._time=this._next=null}Jye.prototype=Uqn.prototype={constructor:Jye,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?lut():+n)+(e==null?0:+e),!this._next&&VZ!==this&&(VZ?VZ._next=this:qye=this,VZ=this),this._call=t,this._time=n,XQe()},stop:function(){this._call&&(this._call=null,this._time=1/0,XQe())}};function Uqn(t,e,n){var r=new Jye;return r.restart(t,e,n),r}function Ajo(){lut(),++Sz;for(var t=qye,e;t;)(e=f8-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Sz}function $8t(){f8=(Yye=Qre.now())+TCe,Sz=GZ=0;try{Ajo()}finally{Sz=0,bjo(),f8=0}}function yjo(){var t=Qre.now(),e=t-Yye;e>jqn&&(TCe-=e,Yye=t)}function bjo(){for(var t,e=qye,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:qye=n);VZ=t,XQe(r)}function XQe(t){if(!Sz){GZ&&(GZ=clearTimeout(GZ));var e=t-f8;e>24?(t<1/0&&(GZ=setTimeout($8t,t-Qre.now()-TCe)),AY&&(AY=clearInterval(AY))):(AY||(Yye=Qre.now(),AY=setInterval(yjo,jqn)),Sz=1,Hqn($8t))}}function F8t(t,e,n){var r=new Jye;return e=e==null?0:+e,r.restart(a=>{r.stop(),t(a+e)},e,n),r}var xjo=wCe("start","end","cancel","interrupt"),Ejo=[],zqn=0,j8t=1,eqe=2,wge=3,H8t=4,tqe=5,_ge=6;function CCe(t,e,n,r,a,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;Sjo(t,n,{name:e,index:r,group:a,on:xjo,tween:Ejo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:zqn})}function cut(t,e){var n=a_(t,e);if(n.state>zqn)throw new Error("too late; already scheduled");return n}function NC(t,e){var n=a_(t,e);if(n.state>wge)throw new Error("too late; already running");return n}function a_(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Sjo(t,e,n){var r=t.__transition,a;r[e]=n,n.timer=Uqn(o,0,n.time);function o(u){n.state=j8t,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var d,h,f,p;if(n.state!==j8t)return c();for(d in r)if(p=r[d],p.name===n.name){if(p.state===wge)return F8t(s);p.state===H8t?(p.state=_ge,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[d]):+d<e&&(p.state=_ge,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[d])}if(F8t(function(){n.state===wge&&(n.state=H8t,n.timer.restart(l,n.delay,n.time),l(u))}),n.state=eqe,n.on.call("start",t,t.__data__,n.index,n.group),n.state===eqe){for(n.state=wge,a=new Array(f=n.tween.length),d=0,h=-1;d<f;++d)(p=n.tween[d].value.call(t,t.__data__,n.index,n.group))&&(a[++h]=p);a.length=h+1}}function l(u){for(var d=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=tqe,1),h=-1,f=a.length;++h<f;)a[h].call(t,d);n.state===tqe&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=_ge,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Tge(t,e){var n=t.__transition,r,a,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}a=r.state>eqe&&r.state<tqe,r.state=_ge,r.timer.stop(),r.on.call(a?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function wjo(t){return this.each(function(){Tge(this,t)})}function _jo(t,e){var n,r;return function(){var a=NC(this,t),o=a.tween;if(o!==n){r=n=o;for(var s=0,l=r.length;s<l;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}a.tween=r}}function Tjo(t,e,n){var r,a;if(typeof n!="function")throw new Error;return function(){var o=NC(this,t),s=o.tween;if(s!==r){a=(r=s).slice();for(var l={name:e,value:n},c=0,u=a.length;c<u;++c)if(a[c].name===e){a[c]=l;break}c===u&&a.push(l)}o.tween=a}}function Cjo(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=a_(this.node(),n).tween,a=0,o=r.length,s;a<o;++a)if((s=r[a]).name===t)return s.value;return null}return this.each((e==null?_jo:Tjo)(n,t,e))}function uut(t,e,n){var r=t._id;return t.each(function(){var a=NC(this,r);(a.value||(a.value={}))[e]=n.apply(this,arguments)}),function(a){return a_(a,r).value[e]}}function Gqn(t,e){var n;return(typeof e=="number"?g3:e instanceof Wre?L8t:(n=Wre(e))?(e=n,L8t):ljo)(t,e)}function kjo(t){return function(){this.removeAttribute(t)}}function Rjo(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mjo(t,e,n){var r,a=n+"",o;return function(){var s=this.getAttribute(t);return s===a?null:s===r?o:o=e(r=s,n)}}function Njo(t,e,n){var r,a=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===a?null:s===r?o:o=e(r=s,n)}}function Ijo(t,e,n){var r,a,o;return function(){var s,l=n(this),c;return l==null?void this.removeAttribute(t):(s=this.getAttribute(t),c=l+"",s===c?null:s===r&&c===a?o:(a=c,o=e(r=s,l)))}}function Pjo(t,e,n){var r,a,o;return function(){var s,l=n(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),c=l+"",s===c?null:s===r&&c===a?o:(a=c,o=e(r=s,l)))}}function Ojo(t,e){var n=_Ce(t),r=n==="transform"?hjo:Gqn;return this.attrTween(t,typeof e=="function"?(n.local?Pjo:Ijo)(n,r,uut(this,"attr."+t,e)):e==null?(n.local?Rjo:kjo)(n):(n.local?Njo:Mjo)(n,r,e))}function Ljo(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Bjo(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Djo(t,e){var n,r;function a(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Bjo(t,o)),n}return a._value=e,a}function $jo(t,e){var n,r;function a(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Ljo(t,o)),n}return a._value=e,a}function Fjo(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=_Ce(t);return this.tween(n,(r.local?Djo:$jo)(r,e))}function jjo(t,e){return function(){cut(this,t).delay=+e.apply(this,arguments)}}function Hjo(t,e){return e=+e,function(){cut(this,t).delay=e}}function Ujo(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?jjo:Hjo)(e,t)):a_(this.node(),e).delay}function zjo(t,e){return function(){NC(this,t).duration=+e.apply(this,arguments)}}function Gjo(t,e){return e=+e,function(){NC(this,t).duration=e}}function Vjo(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?zjo:Gjo)(e,t)):a_(this.node(),e).duration}function Kjo(t,e){if(typeof e!="function")throw new Error;return function(){NC(this,t).ease=e}}function Wjo(t){var e=this._id;return arguments.length?this.each(Kjo(e,t)):a_(this.node(),e).ease}function Qjo(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;NC(this,t).ease=n}}function qjo(t){if(typeof t!="function")throw new Error;return this.each(Qjo(this._id,t))}function Yjo(t){typeof t!="function"&&(t=Eqn(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var o=e[a],s=o.length,l=r[a]=[],c,u=0;u<s;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&l.push(c);return new UM(r,this._parents,this._name,this._id)}function Jjo(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,a=n.length,o=Math.min(r,a),s=new Array(r),l=0;l<o;++l)for(var c=e[l],u=n[l],d=c.length,h=s[l]=new Array(d),f,p=0;p<d;++p)(f=c[p]||u[p])&&(h[p]=f);for(;l<r;++l)s[l]=e[l];return new UM(s,this._parents,this._name,this._id)}function Zjo(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Xjo(t,e,n){var r,a,o=Zjo(e)?cut:NC;return function(){var s=o(this,t),l=s.on;l!==r&&(a=(r=l).copy()).on(e,n),s.on=a}}function eHo(t,e){var n=this._id;return arguments.length<2?a_(this.node(),n).on.on(t):this.each(Xjo(n,t,e))}function tHo(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function nHo(){return this.on("end.remove",tHo(this._id))}function rHo(t){var e=this._name,n=this._id;typeof t!="function"&&(t=aut(t));for(var r=this._groups,a=r.length,o=new Array(a),s=0;s<a;++s)for(var l=r[s],c=l.length,u=o[s]=new Array(c),d,h,f=0;f<c;++f)(d=l[f])&&(h=t.call(d,d.__data__,f,l))&&("__data__"in d&&(h.__data__=d.__data__),u[f]=h,CCe(u[f],e,n,f,u,a_(d,n)));return new UM(o,this._parents,e,n)}function iHo(t){var e=this._name,n=this._id;typeof t!="function"&&(t=xqn(t));for(var r=this._groups,a=r.length,o=[],s=[],l=0;l<a;++l)for(var c=r[l],u=c.length,d,h=0;h<u;++h)if(d=c[h]){for(var f=t.call(d,d.__data__,h,c),p,m=a_(d,n),g=0,v=f.length;g<v;++g)(p=f[g])&&CCe(p,e,n,g,f,m);o.push(f),s.push(d)}return new UM(o,s,e,n)}var aHo=Gse.prototype.constructor;function oHo(){return new aHo(this._groups,this._parents)}function sHo(t,e){var n,r,a;return function(){var o=Ez(this,t),s=(this.style.removeProperty(t),Ez(this,t));return o===s?null:o===n&&s===r?a:a=e(n=o,r=s)}}function Vqn(t){return function(){this.style.removeProperty(t)}}function lHo(t,e,n){var r,a=n+"",o;return function(){var s=Ez(this,t);return s===a?null:s===r?o:o=e(r=s,n)}}function cHo(t,e,n){var r,a,o;return function(){var s=Ez(this,t),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),Ez(this,t))),s===c?null:s===r&&c===a?o:(a=c,o=e(r=s,l))}}function uHo(t,e){var n,r,a,o="style."+e,s="end."+o,l;return function(){var c=NC(this,t),u=c.on,d=c.value[o]==null?l||(l=Vqn(e)):void 0;(u!==n||a!==d)&&(r=(n=u).copy()).on(s,a=d),c.on=r}}function dHo(t,e,n){var r=(t+="")=="transform"?djo:Gqn;return e==null?this.styleTween(t,sHo(t,r)).on("end.style."+t,Vqn(t)):typeof e=="function"?this.styleTween(t,cHo(t,r,uut(this,"style."+t,e))).each(uHo(this._id,t)):this.styleTween(t,lHo(t,r,e),n).on("end.style."+t,null)}function hHo(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function fHo(t,e,n){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&hHo(t,s,n)),r}return o._value=e,o}function pHo(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,fHo(t,e,n??""))}function mHo(t){return function(){this.textContent=t}}function gHo(t){return function(){var e=t(this);this.textContent=e??""}}function vHo(t){return this.tween("text",typeof t=="function"?gHo(uut(this,"text",t)):mHo(t==null?"":t+""))}function AHo(t){return function(e){this.textContent=t.call(this,e)}}function yHo(t){var e,n;function r(){var a=t.apply(this,arguments);return a!==n&&(e=(n=a)&&AHo(a)),e}return r._value=t,r}function bHo(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,yHo(t))}function xHo(){for(var t=this._name,e=this._id,n=Kqn(),r=this._groups,a=r.length,o=0;o<a;++o)for(var s=r[o],l=s.length,c,u=0;u<l;++u)if(c=s[u]){var d=a_(c,e);CCe(c,t,n,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new UM(r,this._parents,t,n)}function EHo(){var t,e,n=this,r=n._id,a=n.size();return new Promise(function(o,s){var l={value:s},c={value:function(){--a===0&&o()}};n.each(function(){var u=NC(this,r),d=u.on;d!==t&&(e=(t=d).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),u.on=e}),a===0&&o()})}var SHo=0;function UM(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Kqn(){return++SHo}var Uk=Gse.prototype;UM.prototype={constructor:UM,select:rHo,selectAll:iHo,selectChild:Uk.selectChild,selectChildren:Uk.selectChildren,filter:Yjo,merge:Jjo,selection:oHo,transition:xHo,call:Uk.call,nodes:Uk.nodes,node:Uk.node,size:Uk.size,empty:Uk.empty,each:Uk.each,on:eHo,attr:Ojo,attrTween:Fjo,style:dHo,styleTween:pHo,text:vHo,textTween:bHo,remove:nHo,tween:Cjo,delay:Ujo,duration:Vjo,ease:Wjo,easeVarying:qjo,end:EHo,[Symbol.iterator]:Uk[Symbol.iterator]};function wHo(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var _Ho={time:null,delay:0,duration:250,ease:wHo};function THo(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function CHo(t){var e,n;t instanceof UM?(e=t._id,t=t._name):(e=Kqn(),(n=_Ho).time=lut(),t=t==null?null:t+"");for(var r=this._groups,a=r.length,o=0;o<a;++o)for(var s=r[o],l=s.length,c,u=0;u<l;++u)(c=s[u])&&CCe(c,t,e,u,s,n||THo(c,e));return new UM(r,this._parents,t,e)}Gse.prototype.interrupt=wjo;Gse.prototype.transition=CHo;const Efe=t=>()=>t;function kHo(t,{sourceEvent:e,target:n,transform:r,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:a}})}function QR(t,e,n){this.k=t,this.x=e,this.y=n}QR.prototype={constructor:QR,scale:function(t){return t===1?this:new QR(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new QR(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var GD=new QR(1,0,0);QR.prototype;function c$e(t){t.stopImmediatePropagation()}function yY(t){t.preventDefault(),t.stopImmediatePropagation()}function RHo(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function MHo(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function U8t(){return this.__zoom||GD}function NHo(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function IHo(){return navigator.maxTouchPoints||"ontouchstart"in this}function PHo(t,e,n){var r=t.invertX(e[0][0])-n[0][0],a=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(a>r?(r+a)/2:Math.min(0,r)||Math.max(0,a),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function OHo(){var t=RHo,e=MHo,n=PHo,r=NHo,a=IHo,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=gjo,u=wCe("start","zoom","end"),d,h,f,p=500,m=150,g=0,v=10;function A(b){b.property("__zoom",U8t).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",P).filter(a).on("touchstart.zoom",N).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(b,T,M,D){var B=b.selection?b.selection():b;B.property("__zoom",U8t),b!==B?w(b,T,M,D):B.interrupt().each(function(){_(this,arguments).event(D).start().zoom(null,typeof T=="function"?T.apply(this,arguments):T).end()})},A.scaleBy=function(b,T,M,D){A.scaleTo(b,function(){var B=this.__zoom.k,j=typeof T=="function"?T.apply(this,arguments):T;return B*j},M,D)},A.scaleTo=function(b,T,M,D){A.transform(b,function(){var B=e.apply(this,arguments),j=this.__zoom,H=M==null?x(B):typeof M=="function"?M.apply(this,arguments):M,U=j.invert(H),$=typeof T=="function"?T.apply(this,arguments):T;return n(S(y(j,$),H,U),B,s)},M,D)},A.translateBy=function(b,T,M,D){A.transform(b,function(){return n(this.__zoom.translate(typeof T=="function"?T.apply(this,arguments):T,typeof M=="function"?M.apply(this,arguments):M),e.apply(this,arguments),s)},null,D)},A.translateTo=function(b,T,M,D,B){A.transform(b,function(){var j=e.apply(this,arguments),H=this.__zoom,U=D==null?x(j):typeof D=="function"?D.apply(this,arguments):D;return n(GD.translate(U[0],U[1]).scale(H.k).translate(typeof T=="function"?-T.apply(this,arguments):-T,typeof M=="function"?-M.apply(this,arguments):-M),j,s)},D,B)};function y(b,T){return T=Math.max(o[0],Math.min(o[1],T)),T===b.k?b:new QR(T,b.x,b.y)}function S(b,T,M){var D=T[0]-M[0]*b.k,B=T[1]-M[1]*b.k;return D===b.x&&B===b.y?b:new QR(b.k,D,B)}function x(b){return[(+b[0][0]+ +b[1][0])/2,(+b[0][1]+ +b[1][1])/2]}function w(b,T,M,D){b.on("start.zoom",function(){_(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(D).end()}).tween("zoom",function(){var B=this,j=arguments,H=_(B,j).event(D),U=e.apply(B,j),$=M==null?x(U):typeof M=="function"?M.apply(B,j):M,z=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),Z=B.__zoom,K=typeof T=="function"?T.apply(B,j):T,Q=c(Z.invert($).concat(z/Z.k),K.invert($).concat(z/K.k));return function(ee){if(ee===1)ee=K;else{var X=Q(ee),te=z/X[2];ee=new QR(te,$[0]-X[0]*te,$[1]-X[1]*te)}H.zoom(null,ee)}})}function _(b,T,M){return!M&&b.__zooming||new C(b,T)}function C(b,T){this.that=b,this.args=T,this.active=0,this.sourceEvent=null,this.extent=e.apply(b,T),this.taps=0}C.prototype={event:function(b){return b&&(this.sourceEvent=b),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(b,T){return this.mouse&&b!=="mouse"&&(this.mouse[1]=T.invert(this.mouse[0])),this.touch0&&b!=="touch"&&(this.touch0[1]=T.invert(this.touch0[0])),this.touch1&&b!=="touch"&&(this.touch1[1]=T.invert(this.touch1[0])),this.that.__zoom=T,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(b){var T=qS(this.that).datum();u.call(b,this.that,new kHo(b,{sourceEvent:this.sourceEvent,target:A,type:b,transform:this.that.__zoom,dispatch:u}),T)}};function R(b,...T){if(!t.apply(this,arguments))return;var M=_(this,T).event(b),D=this.__zoom,B=Math.max(o[0],Math.min(o[1],D.k*Math.pow(2,r.apply(this,arguments)))),j=xT(b);if(M.wheel)(M.mouse[0][0]!==j[0]||M.mouse[0][1]!==j[1])&&(M.mouse[1]=D.invert(M.mouse[0]=j)),clearTimeout(M.wheel);else{if(D.k===B)return;M.mouse=[j,D.invert(j)],Tge(this),M.start()}yY(b),M.wheel=setTimeout(H,m),M.zoom("mouse",n(S(y(D,B),M.mouse[0],M.mouse[1]),M.extent,s));function H(){M.wheel=null,M.end()}}function k(b,...T){if(f||!t.apply(this,arguments))return;var M=b.currentTarget,D=_(this,T,!0).event(b),B=qS(b.view).on("mousemove.zoom",$,!0).on("mouseup.zoom",z,!0),j=xT(b,M),H=b.clientX,U=b.clientY;Iqn(b.view),c$e(b),D.mouse=[j,this.__zoom.invert(j)],Tge(this),D.start();function $(Z){if(yY(Z),!D.moved){var K=Z.clientX-H,Q=Z.clientY-U;D.moved=K*K+Q*Q>g}D.event(Z).zoom("mouse",n(S(D.that.__zoom,D.mouse[0]=xT(Z,M),D.mouse[1]),D.extent,s))}function z(Z){B.on("mousemove.zoom mouseup.zoom",null),Pqn(Z.view,D.moved),yY(Z),D.event(Z).end()}}function P(b,...T){if(t.apply(this,arguments)){var M=this.__zoom,D=xT(b.changedTouches?b.changedTouches[0]:b,this),B=M.invert(D),j=M.k*(b.shiftKey?.5:2),H=n(S(y(M,j),D,B),e.apply(this,T),s);yY(b),l>0?qS(this).transition().duration(l).call(w,H,D,b):qS(this).call(A.transform,H,D,b)}}function N(b,...T){if(t.apply(this,arguments)){var M=b.touches,D=M.length,B=_(this,T,b.changedTouches.length===D).event(b),j,H,U,$;for(c$e(b),H=0;H<D;++H)U=M[H],$=xT(U,this),$=[$,this.__zoom.invert($),U.identifier],B.touch0?!B.touch1&&B.touch0[2]!==$[2]&&(B.touch1=$,B.taps=0):(B.touch0=$,j=!0,B.taps=1+!!d);d&&(d=clearTimeout(d)),j&&(B.taps<2&&(h=$[0],d=setTimeout(function(){d=null},p)),Tge(this),B.start())}}function L(b,...T){if(this.__zooming){var M=_(this,T).event(b),D=b.changedTouches,B=D.length,j,H,U,$;for(yY(b),j=0;j<B;++j)H=D[j],U=xT(H,this),M.touch0&&M.touch0[2]===H.identifier?M.touch0[0]=U:M.touch1&&M.touch1[2]===H.identifier&&(M.touch1[0]=U);if(H=M.that.__zoom,M.touch1){var z=M.touch0[0],Z=M.touch0[1],K=M.touch1[0],Q=M.touch1[1],ee=(ee=K[0]-z[0])*ee+(ee=K[1]-z[1])*ee,X=(X=Q[0]-Z[0])*X+(X=Q[1]-Z[1])*X;H=y(H,Math.sqrt(ee/X)),U=[(z[0]+K[0])/2,(z[1]+K[1])/2],$=[(Z[0]+Q[0])/2,(Z[1]+Q[1])/2]}else if(M.touch0)U=M.touch0[0],$=M.touch0[1];else return;M.zoom("touch",n(S(H,U,$),M.extent,s))}}function I(b,...T){if(this.__zooming){var M=_(this,T).event(b),D=b.changedTouches,B=D.length,j,H;for(c$e(b),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),j=0;j<B;++j)H=D[j],M.touch0&&M.touch0[2]===H.identifier?delete M.touch0:M.touch1&&M.touch1[2]===H.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(H=xT(H,this),Math.hypot(h[0]-H[0],h[1]-H[1])<v)){var U=qS(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return A.wheelDelta=function(b){return arguments.length?(r=typeof b=="function"?b:Efe(+b),A):r},A.filter=function(b){return arguments.length?(t=typeof b=="function"?b:Efe(!!b),A):t},A.touchable=function(b){return arguments.length?(a=typeof b=="function"?b:Efe(!!b),A):a},A.extent=function(b){return arguments.length?(e=typeof b=="function"?b:Efe([[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]]),A):e},A.scaleExtent=function(b){return arguments.length?(o[0]=+b[0],o[1]=+b[1],A):[o[0],o[1]]},A.translateExtent=function(b){return arguments.length?(s[0][0]=+b[0][0],s[1][0]=+b[1][0],s[0][1]=+b[0][1],s[1][1]=+b[1][1],A):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},A.constrain=function(b){return arguments.length?(n=b,A):n},A.duration=function(b){return arguments.length?(l=+b,A):l},A.interpolate=function(b){return arguments.length?(c=b,A):c},A.on=function(){var b=u.on.apply(u,arguments);return b===u?A:b},A.clickDistance=function(b){return arguments.length?(g=(b=+b)*b,A):Math.sqrt(g)},A.tapDistance=function(b){return arguments.length?(v=+b,A):v},A}function Rl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nqe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wqn(t,e){if(t){if(typeof t=="string")return nqe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nqe(t,e)}}function LHo(t){if(Array.isArray(t))return t}function BHo(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],a=!0,o=!1,s,l;try{for(n=n.call(t);!(a=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function DHo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Us(t,e){return LHo(t)||BHo(t,e)||Wqn(t,e)||DHo()}var DP;(function(t){t.Strict="strict",t.Loose="loose"})(DP||(DP={}));var wz;(function(t){t.Lines="lines",t.Dots="dots"})(wz||(wz={}));var CH;(function(t){t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal"})(CH||(CH={}));var IR;(function(t){t.Bezier="default",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t.SimpleBezier="simplebezier"})(IR||(IR={}));var qre;(function(t){t.Arrow="arrow",t.ArrowClosed="arrowclosed"})(qre||(qre={}));var Ni;(function(t){t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom"})(Ni||(Ni={}));var dut=function(e){return{width:e.offsetWidth,height:e.offsetHeight}},kH=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,n),r)},Qqn=function(e,n){return{x:kH(e.x,n[0][0],n[1][0]),y:kH(e.y,n[0][1],n[1][1])}},qqn=function(e){var n,r;return((n=e.getRootNode)===null||n===void 0?void 0:n.call(e))||((r=window)===null||r===void 0?void 0:r.document)},Yqn=function(e,n){return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),x2:Math.max(e.x2,n.x2),y2:Math.max(e.y2,n.y2)}},_z=function(e){var n=e.x,r=e.y,a=e.width,o=e.height;return{x:n,y:r,x2:n+a,y2:r+o}},Jqn=function(e){var n=e.x,r=e.y,a=e.x2,o=e.y2;return{x:n,y:r,width:a-n,height:o-r}},$Ho=function(e,n){return Jqn(Yqn(_z(e),_z(n)))},Zqn=function(e){return!isNaN(e)&&isFinite(e)},Xm=Symbol("internals");function z8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function KZ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function G8t(t,e){var n=t.find(function(u){return u.id===e.parentNode});if(n){var r=e.position.x+e.width-n.width,a=e.position.y+e.height-n.height;if(r>0||a>0||e.position.x<0||e.position.y<0){var o,s;if(n.style=KZ({},n.style)||{},n.style.width=(o=n.style.width)!==null&&o!==void 0?o:n.width,n.style.height=(s=n.style.height)!==null&&s!==void 0?s:n.height,r>0&&(n.style.width+=r),a>0&&(n.style.height+=a),e.position.x<0){var l=Math.abs(e.position.x);n.position.x=n.position.x-l,n.style.width+=l,e.position.x=0}if(e.position.y<0){var c=Math.abs(e.position.y);n.position.y=n.position.y-c,n.style.height+=c,e.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function Xqn(t,e){if(t.some(function(r){return r.type==="reset"}))return t.filter(function(r){return r.type==="reset"}).map(function(r){return r.item});var n=t.filter(function(r){return r.type==="add"}).map(function(r){return r.item});return e.reduce(function(r,a){var o=t.find(function(c){return c.id===a.id});if(o)switch(o.type){case"select":return r.push(KZ(KZ({},a),{},{selected:o.selected})),r;case"position":{var s=KZ({},a);return typeof o.position<"u"&&(s.position=o.position),typeof o.positionAbsolute<"u"&&(s.positionAbsolute=o.positionAbsolute),typeof o.dragging<"u"&&(s.dragging=o.dragging),s.expandParent&&G8t(r,s),r.push(s),r}case"dimensions":{var l=KZ({},a);return typeof o.dimensions<"u"&&(l.width=o.dimensions.width,l.height=o.dimensions.height),l.expandParent&&G8t(r,l),r.push(l),r}case"remove":return r}return r.push(a),r},n)}function eYn(t,e){return Xqn(t,e)}function FHo(t,e){return Xqn(t,e)}var v3=function(e,n){return{id:e,type:"select",selected:n}};function dj(t,e){return t.reduce(function(n,r){var a=e.includes(r.id);return!r.selected&&a?(r.selected=!0,n.push(v3(r.id,!0))):r.selected&&!a&&(r.selected=!1,n.push(v3(r.id,!1))),n},[])}function V8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function tYn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?V8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var K8t=function(e,n,r){var a=n.querySelectorAll(e);if(!a||!a.length)return null;var o=Array.from(a),s=n.getBoundingClientRect();return o.map(function(l){var c=l.getBoundingClientRect();return tYn({id:l.getAttribute("data-handleid"),position:l.getAttribute("data-handlepos"),x:(c.left-s.left)/r,y:(c.top-s.top)/r},dut(l))})};function bY(t,e,n){return n===void 0?n:function(r){var a=e().nodeInternals.get(t);n(r,tYn({},a))}}function nYn(t){var e=t.id,n=t.store,r=n.getState(),a=r.addSelectedNodes,o=r.unselectNodesAndEdges,s=r.multiSelectionActive,l=r.nodeInternals,c=l.get(e);n.setState({nodesSelectionActive:!1}),c.selected?c.selected&&s&&o({nodes:[c]}):a([e])}function W8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function zee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jHo=function(e){return"id"in e&&"source"in e&&"target"in e},rYn=function(e){return"id"in e&&!("source"in e)&&!("target"in e)},HHo=function(e,n,r){if(!rYn(e))return[];var a=r.filter(function(o){return o.source===e.id}).map(function(o){return o.target});return n.filter(function(o){return a.includes(o.id)})},UHo=function(e,n,r){if(!rYn(e))return[];var a=r.filter(function(o){return o.target===e.id}).map(function(o){return o.source});return n.filter(function(o){return a.includes(o.id)})},zHo=function(e){var n=e.source,r=e.sourceHandle,a=e.target,o=e.targetHandle;return"reactflow__edge-".concat(n).concat(r||"","-").concat(a).concat(o||"")},rqe=function(e,n){if(typeof e>"u")return"";if(typeof e=="string")return e;var r=n?"".concat(n,"__"):"";return"".concat(r).concat(Object.keys(e).sort().map(function(a){return"".concat(a,"=").concat(e[a])}).join("&"))},GHo=function(e,n){return n.some(function(r){return r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)})},iYn=function(e,n){if(!e.source||!e.target)return n;var r;return jHo(e)?r=zee({},e):r=zee(zee({},e),{},{id:zHo(e)}),GHo(r,n)?n:n.concat(r)},aYn=function(e,n,r,a){var o=e.x,s=e.y,l=Us(n,3),c=l[0],u=l[1],d=l[2],h=Us(a,2),f=h[0],p=h[1],m={x:(o-c)/d,y:(s-u)/d};return r?{x:f*Math.round(m.x/f),y:p*Math.round(m.y/p)}:m},Kse=function(e){if(e.length===0)return{x:0,y:0,width:0,height:0};var n=e.reduce(function(r,a){var o=a.positionAbsolute,s=a.position,l=a.width,c=a.height;return Yqn(r,_z({x:o?o.x:s.x,y:o?o.y:s.y,width:l||0,height:c||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Jqn(n)},oYn=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0,1],a=Us(r,3),o=a[0],s=a[1],l=a[2],c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,d=_z({x:(n.x-o)/l,y:(n.y-s)/l,width:n.width/l,height:n.height/l}),h=[];return e.forEach(function(f){var p=f.positionAbsolute,m=f.width,g=f.height,v=f.selectable,A=v===void 0?!0:v;if(u&&!A)return!1;var y=_z(zee(zee({},p),{},{width:m||0,height:g||0})),S=Math.max(0,Math.min(d.x2,y.x2)-Math.max(d.x,y.x)),x=Math.max(0,Math.min(d.y2,y.y2)-Math.max(d.y,y.y)),w=Math.ceil(S*x),_=typeof m>"u"||typeof g>"u"||m===null||g===null,C=c&&w>0,R=(m||0)*(g||0),k=_||C||w>=R;k&&h.push(f)}),h},sYn=function(e,n){var r=e.map(function(a){return a.id});return n.filter(function(a){return r.includes(a.source)||r.includes(a.target)})},lYn=function(e,n,r,a,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:.1,l=n/(e.width*(1+s)),c=r/(e.height*(1+s)),u=Math.min(l,c),d=kH(u,a,o),h=e.x+e.width/2,f=e.y+e.height/2,p=n/2-h*d,m=r/2-f*d;return[p,m,d]},uB=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.transition().duration(n)};function Q8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function hj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cYn(t,e,n,r){var a,o,s,l,c,u,d,h,f,p,m,g;if(!t.parentNode)return r;var v=e.get(t.parentNode);return cYn(v,e,n,{x:((a=r.x)!==null&&a!==void 0?a:0)+((o=(s=v.position)===null||s===void 0?void 0:s.x)!==null&&o!==void 0?o:0),y:((l=r.y)!==null&&l!==void 0?l:0)+((c=(u=v.position)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0),z:((d=(h=v[Xm])===null||h===void 0?void 0:h.z)!==null&&d!==void 0?d:0)>((f=r.z)!==null&&f!==void 0?f:0)?(p=(m=v[Xm])===null||m===void 0?void 0:m.z)!==null&&p!==void 0?p:0:(g=r.z)!==null&&g!==void 0?g:0})}function u$e(t,e){var n=new Map,r={};return t.forEach(function(a){var o,s=Zqn(a.zIndex)?a.zIndex:a.selected?1e3:0,l=e.get(a.id),c=hj(hj({width:l==null?void 0:l.width,height:l==null?void 0:l.height},a),{},{positionAbsolute:{x:a.position.x,y:a.position.y}});a.parentNode&&(c.parentNode=a.parentNode,r[a.parentNode]=!0),Object.defineProperty(c,Xm,{enumerable:!1,value:{handleBounds:l==null||(o=l[Xm])===null||o===void 0?void 0:o.handleBounds,z:s}}),n.set(a.id,c)}),n.forEach(function(a){if(a.parentNode&&!n.has(a.parentNode))throw new Error("Parent node ".concat(a.parentNode," not found"));if(a.parentNode||r[a.id]){var o,s,l=cYn(a,n,r,hj(hj({},a.position),{},{z:(o=(s=a[Xm])===null||s===void 0?void 0:s.z)!==null&&o!==void 0?o:0})),c=l.x,u=l.y,d=l.z;a.positionAbsolute={x:c,y:u},a[Xm].z=d,r[a.id]&&(a[Xm].isParent=!0)}}),n}function uYn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t(),r=n.nodeInternals,a=n.width,o=n.height,s=n.minZoom,l=n.maxZoom,c=n.d3Zoom,u=n.d3Selection,d=n.fitViewOnInitDone,h=n.fitViewOnInit;if((e.initial&&!d&&h||!e.initial)&&c&&u){var f=Array.from(r.values()).filter(function(R){return e.includeHiddenNodes?R.width&&R.height:!R.hidden}),p=f.every(function(R){return R.width&&R.height});if(f.length>0&&p){var m,g,v,A=Kse(f),y=lYn(A,a,o,(m=e.minZoom)!==null&&m!==void 0?m:s,(g=e.maxZoom)!==null&&g!==void 0?g:l,(v=e.padding)!==null&&v!==void 0?v:.1),S=Us(y,3),x=S[0],w=S[1],_=S[2],C=GD.translate(x,w).scale(_);return typeof e.duration=="number"&&e.duration>0?c.transform(uB(u,e.duration),C):c.transform(u,C),!0}}return!1}function VHo(t,e){return t.forEach(function(n){var r=e.get(n.id);if(r){var a;e.set(r.id,hj(hj({},r),{},(a={},Rl(a,Xm,r[Xm]),Rl(a,"selected",n.selected),a)))}}),new Map(e)}function KHo(t,e){return e.map(function(n){var r=t.find(function(a){return a.id===n.id});return r&&(n.selected=r.selected),n})}function Sfe(t){var e=t.changedNodes,n=t.changedEdges,r=t.get,a=t.set,o=r(),s=o.nodeInternals,l=o.edges,c=o.onNodesChange,u=o.onEdgesChange,d=o.hasDefaultNodes,h=o.hasDefaultEdges;e!=null&&e.length&&(d&&a({nodeInternals:VHo(e,s)}),c==null||c(e)),n!=null&&n.length&&(h&&a({edges:KHo(n,l)}),u==null||u(n))}var iqe=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],q8t={width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:iqe,nodeExtent:iqe,nodesSelectionActive:!1,userSelectionActive:!1,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionMode:DP.Strict,domNode:null,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,elementsSelectable:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,multiSelectionActive:!1,reactFlowVersion:"10.3.17",connectionStartHandle:null,connectOnClick:!0};function Y8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function tT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var hut=n7o(),dYn=hut.Provider,pu=hut.useStore,Bv=hut.useStoreApi,hYn=function(){return yE(function(e,n){return tT(tT({},q8t),{},{setNodes:function(a){e({nodeInternals:u$e(a,n().nodeInternals)})},setEdges:function(a){var o=n(),s=o.defaultEdgeOptions,l=s===void 0?{}:s;e({edges:a.map(function(c){return tT(tT({},l),c)})})},setDefaultNodesAndEdges:function(a,o){var s=typeof a<"u",l=typeof o<"u",c=s?u$e(a,new Map):new Map,u=l?o:[];e({nodeInternals:c,edges:u,hasDefaultNodes:s,hasDefaultEdges:l})},updateNodeDimensions:function(a){var o=n(),s=o.onNodesChange,l=o.nodeInternals,c=o.fitViewOnInit,u=o.fitViewOnInitDone,d=o.fitViewOnInitOptions,h=o.domNode,f=h==null?void 0:h.querySelector(".react-flow__viewport");if(f){var p=window.getComputedStyle(f),m=new window.DOMMatrixReadOnly(p.transform),g=m.m22,v=a.reduce(function(y,S){var x=l.get(S.id);if(x){var w=dut(S.nodeElement),_=!!(w.width&&w.height&&(x.width!==w.width||x.height!==w.height||S.forceUpdate));_&&(l.set(x.id,tT(tT({},x),{},Rl({},Xm,tT(tT({},x[Xm]),{},{handleBounds:{source:K8t(".source",S.nodeElement,g),target:K8t(".target",S.nodeElement,g)}})),w)),y.push({id:x.id,type:"dimensions",dimensions:w}))}return y},[]),A=u||c&&!u&&uYn(n,tT({initial:!0},d));e({nodeInternals:new Map(l),fitViewOnInitDone:A}),(v==null?void 0:v.length)>0&&(s==null||s(v))}},updateNodePositions:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=n(),c=l.onNodesChange,u=l.nodeInternals,d=l.hasDefaultNodes;if(d||c){var h=a.map(function(m){var g={id:m.id,type:"position",dragging:s};return o&&(g.positionAbsolute=m.positionAbsolute,g.position=m.position),g});if(h!=null&&h.length){if(d){var f=eYn(h,Array.from(u.values())),p=u$e(f,u);e({nodeInternals:p})}c==null||c(h)}}},addSelectedNodes:function(a){var o=n(),s=o.multiSelectionActive,l=o.nodeInternals,c=o.edges,u,d=null;s?u=a.map(function(h){return v3(h,!0)}):(u=dj(Array.from(l.values()),a),d=dj(c,[])),Sfe({changedNodes:u,changedEdges:d,get:n,set:e})},addSelectedEdges:function(a){var o=n(),s=o.multiSelectionActive,l=o.edges,c=o.nodeInternals,u,d=null;s?u=a.map(function(h){return v3(h,!0)}):(u=dj(l,a),d=dj(Array.from(c.values()),[])),Sfe({changedNodes:d,changedEdges:u,get:n,set:e})},unselectNodesAndEdges:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=a.nodes,s=a.edges,l=n(),c=l.nodeInternals,u=l.edges,d=o||Array.from(c.values()),h=s||u,f=d.map(function(m){return m.selected=!1,v3(m.id,!1)}),p=h.map(function(m){return v3(m.id,!1)});Sfe({changedNodes:f,changedEdges:p,get:n,set:e})},setMinZoom:function(a){var o=n(),s=o.d3Zoom,l=o.maxZoom;s==null||s.scaleExtent([a,l]),e({minZoom:a})},setMaxZoom:function(a){var o=n(),s=o.d3Zoom,l=o.minZoom;s==null||s.scaleExtent([l,a]),e({maxZoom:a})},setTranslateExtent:function(a){var o=n(),s=o.d3Zoom;s==null||s.translateExtent(a),e({translateExtent:a})},resetSelectedElements:function(){var a=n(),o=a.nodeInternals,s=a.edges,l=Array.from(o.values()),c=l.filter(function(d){return d.selected}).map(function(d){return v3(d.id,!1)}),u=s.filter(function(d){return d.selected}).map(function(d){return v3(d.id,!1)});Sfe({changedNodes:c,changedEdges:u,get:n,set:e})},setNodeExtent:function(a){var o=n(),s=o.nodeInternals;s.forEach(function(l){l.positionAbsolute=Qqn(l.position,a)}),e({nodeExtent:a,nodeInternals:new Map(s)})},reset:function(){return e(tT({},q8t))}})})};function Dv(t){if(typeof t=="string"||typeof t=="number")return""+t;let e="";if(Array.isArray(t))for(let n=0,r;n<t.length;n++)(r=Dv(t[n]))!==""&&(e+=(e&&" ")+r);else for(let n in t)t[n]&&(e+=(e&&" ")+n);return e}function c1(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!Object.is(t[n[r]],e[n[r]]))return!1;return!0}function WHo(t){if(Array.isArray(t))return nqe(t)}function QHo(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qHo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VD(t){return WHo(t)||QHo(t)||Wqn(t)||qHo()}var YHo={zoomIn:function(){},zoomOut:function(){},zoomTo:function(e){},getZoom:function(){return 1},setViewport:function(e){},getViewport:function(){return{x:0,y:0,zoom:1}},fitView:function(){},setCenter:function(e,n){},fitBounds:function(e){},project:function(e){return e},viewportInitialized:!1},JHo=function(e){return{d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}},ZHo=function(){var e=Bv(),n=pu(JHo,c1),r=n.d3Zoom,a=n.d3Selection,o=Y.useMemo(function(){return a&&r?{zoomIn:function(l){return r.scaleBy(uB(a,l==null?void 0:l.duration),1.2)},zoomOut:function(l){return r.scaleBy(uB(a,l==null?void 0:l.duration),1/1.2)},zoomTo:function(l,c){return r.scaleTo(uB(a,c==null?void 0:c.duration),l)},getZoom:function(){return e.getState().transform[2]},setViewport:function(l,c){var u,d,h,f=Us(e.getState().transform,3),p=f[0],m=f[1],g=f[2],v=GD.translate((u=l.x)!==null&&u!==void 0?u:p,(d=l.y)!==null&&d!==void 0?d:m).scale((h=l.zoom)!==null&&h!==void 0?h:g);r.transform(uB(a,c==null?void 0:c.duration),v)},getViewport:function(){var l=Us(e.getState().transform,3),c=l[0],u=l[1],d=l[2];return{x:c,y:u,zoom:d}},fitView:function(l){return uYn(e.getState,l)},setCenter:function(l,c,u){var d=e.getState(),h=d.width,f=d.height,p=d.maxZoom,m=typeof(u==null?void 0:u.zoom)<"u"?u.zoom:p,g=h/2-l*m,v=f/2-c*m,A=GD.translate(g,v).scale(m);r.transform(uB(a,u==null?void 0:u.duration),A)},fitBounds:function(l,c){var u,d=e.getState(),h=d.width,f=d.height,p=d.minZoom,m=d.maxZoom,g=lYn(l,h,f,p,m,(u=c==null?void 0:c.padding)!==null&&u!==void 0?u:.1),v=Us(g,3),A=v[0],y=v[1],S=v[2],x=GD.translate(A,y).scale(S);r.transform(uB(a,c==null?void 0:c.duration),x)},project:function(l){var c=e.getState(),u=c.transform,d=c.snapToGrid,h=c.snapGrid;return aYn(l,u,d,h)},viewportInitialized:!0}:YHo},[r,a]);return o};function J8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function E7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?J8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wse(){var t=ZHo(),e=Bv(),n=Y.useCallback(function(){var h=e.getState(),f=h.nodeInternals,p=Array.from(f.values());return p.map(function(m){return E7({},m)})},[]),r=Y.useCallback(function(h){var f=e.getState(),p=f.nodeInternals;return p.get(h)},[]),a=Y.useCallback(function(){var h=e.getState(),f=h.edges,p=f===void 0?[]:f;return p.map(function(m){return E7({},m)})},[]),o=Y.useCallback(function(h){var f=e.getState(),p=f.edges,m=p===void 0?[]:p;return m.find(function(g){return g.id===h})},[]),s=Y.useCallback(function(h){var f=e.getState(),p=f.nodeInternals,m=f.setNodes,g=f.hasDefaultNodes,v=f.onNodesChange,A=Array.from(p.values()),y=typeof h=="function"?h(A):h;if(g)m(y);else if(v){var S=y.length===0?A.map(function(x){return{type:"remove",id:x.id}}):y.map(function(x){return{item:x,type:"reset"}});v(S)}},[]),l=Y.useCallback(function(h){var f=e.getState(),p=f.edges,m=p===void 0?[]:p,g=f.setEdges,v=f.hasDefaultEdges,A=f.onEdgesChange,y=typeof h=="function"?h(m):h;if(v)g(y);else if(A){var S=y.length===0?m.map(function(x){return{type:"remove",id:x.id}}):y.map(function(x){return{item:x,type:"reset"}});A(S)}},[]),c=Y.useCallback(function(h){var f=Array.isArray(h)?h:[h],p=e.getState(),m=p.nodeInternals,g=p.setNodes,v=p.hasDefaultNodes,A=p.onNodesChange;if(v){var y=Array.from(m.values()),S=[].concat(y,VD(f));g(S)}else if(A){var x=f.map(function(w){return{item:w,type:"add"}});A(x)}},[]),u=Y.useCallback(function(h){var f=Array.isArray(h)?h:[h],p=e.getState(),m=p.edges,g=m===void 0?[]:m,v=p.setEdges,A=p.hasDefaultEdges,y=p.onEdgesChange;if(A)v([].concat(VD(g),VD(f)));else if(y){var S=f.map(function(x){return{item:x,type:"add"}});y(S)}},[]),d=Y.useCallback(function(){var h=e.getState(),f=h.nodeInternals,p=h.edges,m=p===void 0?[]:p,g=h.transform,v=Array.from(f.values()),A=Us(g,3),y=A[0],S=A[1],x=A[2];return{nodes:v.map(function(w){return E7({},w)}),edges:m.map(function(w){return E7({},w)}),viewport:{x:y,y:S,zoom:x}}},[]);return Y.useMemo(function(){return E7(E7({},t),{},{getNodes:n,getNode:r,getEdges:a,getEdge:o,setNodes:s,setEdges:l,addNodes:c,addEdges:u,toObject:d})},[t,n,r,a,o,s,l,c,u,d])}function XHo(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,o;for(o=0;o<r.length;o++)a=r[o],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function kCe(t,e){if(t==null)return{};var n=XHo(t,e),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)r=o[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function eUo(){return ke.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},ke.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function tUo(){return ke.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},ke.createElement("path",{d:"M0 0h32v4.2H0z"}))}function nUo(){return ke.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},ke.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function rUo(){return ke.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},ke.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function iUo(){return ke.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},ke.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}var aUo=["children","className"];function Z8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function oUo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var wfe=function(e){var n=e.children,r=e.className,a=kCe(e,aUo);return ke.createElement("button",oUo({type:"button",className:Dv(["react-flow__controls-button",r])},a),n)},sUo=function(e){return e.nodesDraggable&&e.nodesConnectable&&e.elementsSelectable},fYn=function(e){var n=e.style,r=e.showZoom,a=r===void 0?!0:r,o=e.showFitView,s=o===void 0?!0:o,l=e.showInteractive,c=l===void 0?!0:l,u=e.fitViewOptions,d=e.onZoomIn,h=e.onZoomOut,f=e.onFitView,p=e.onInteractiveChange,m=e.className,g=e.children,v=Bv(),A=Y.useState(!1),y=Us(A,2),S=y[0],x=y[1],w=pu(sUo),_=Wse(),C=_.zoomIn,R=_.zoomOut,k=_.fitView;if(Y.useEffect(function(){x(!0)},[]),!S)return null;var P=function(){C==null||C(),d==null||d()},N=function(){R==null||R(),h==null||h()},L=function(){k==null||k(u),f==null||f()},I=function(){v.setState({nodesDraggable:!w,nodesConnectable:!w,elementsSelectable:!w}),p==null||p(!w)};return ke.createElement("div",{className:Dv(["react-flow__controls",m]),style:n},a&&ke.createElement(ke.Fragment,null,ke.createElement(wfe,{onClick:P,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in"},ke.createElement(eUo,null)),ke.createElement(wfe,{onClick:N,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out"},ke.createElement(tUo,null))),s&&ke.createElement(wfe,{className:"react-flow__controls-fitview",onClick:L,title:"fit view","aria-label":"fit view"},ke.createElement(nUo,null)),c&&ke.createElement(wfe,{className:"react-flow__controls-interactive",onClick:I,title:"toggle interactivity","aria-label":"toggle interactivity"},w?ke.createElement(iUo,null):ke.createElement(rUo,null)),g)};fYn.displayName="Controls";var pYn=Y.memo(fYn),mYn=function(e){var n=e.x,r=e.y,a=e.width,o=e.height,s=e.style,l=e.color,c=e.strokeColor,u=e.strokeWidth,d=e.className,h=e.borderRadius,f=e.shapeRendering,p=s||{},m=p.background,g=p.backgroundColor,v=l||m||g;return ke.createElement("rect",{className:Dv(["react-flow__minimap-node",d]),x:n,y:r,rx:h,ry:h,width:a,height:o,fill:v,stroke:c,strokeWidth:u,shapeRendering:f})};mYn.displayName="MiniMapNode";var lUo=Y.memo(mYn),cUo=200,uUo=150,dUo=function(e){return{viewBBox:{x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]},nodes:Array.from(e.nodeInternals.values())}},d$e=function(e){return e instanceof Function?e:function(){return e}},gYn=function(e){var n,r,a=e.style,o=e.className,s=e.nodeStrokeColor,l=s===void 0?"#555":s,c=e.nodeColor,u=c===void 0?"#fff":c,d=e.nodeClassName,h=d===void 0?"":d,f=e.nodeBorderRadius,p=f===void 0?5:f,m=e.nodeStrokeWidth,g=m===void 0?2:m,v=e.maskColor,A=v===void 0?"rgb(240, 242, 243, 0.7)":v,y=pu(dUo,c1),S=y.viewBBox,x=y.nodes,w=(n=a==null?void 0:a.width)!==null&&n!==void 0?n:cUo,_=(r=a==null?void 0:a.height)!==null&&r!==void 0?r:uUo,C=d$e(u),R=d$e(l),k=d$e(h),P=x.length>0?$Ho(Kse(x),S):S,N=P.width/w,L=P.height/_,I=Math.max(N,L),b=I*w,T=I*_,M=5*I,D=P.x-(b-P.width)/2-M,B=P.y-(T-P.height)/2-M,j=b+M*2,H=T+M*2,U=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return ke.createElement("svg",{width:w,height:_,viewBox:"".concat(D," ").concat(B," ").concat(j," ").concat(H),style:a,className:Dv(["react-flow__minimap",o])},x.filter(function($){return!$.hidden&&$.width&&$.height}).map(function($){var z,Z,K,Q;return ke.createElement(lUo,{key:$.id,x:(z=(Z=$.positionAbsolute)===null||Z===void 0?void 0:Z.x)!==null&&z!==void 0?z:0,y:(K=(Q=$.positionAbsolute)===null||Q===void 0?void 0:Q.y)!==null&&K!==void 0?K:0,width:$.width,height:$.height,style:$.style,className:k($),color:C($),borderRadius:p,strokeColor:R($),strokeWidth:g,shapeRendering:U})}),ke.createElement("path",{className:"react-flow__minimap-mask",d:"M".concat(D-M,",").concat(B-M,"h").concat(j+M*2,"v").concat(H+M*2,"h").concat(-j-M*2,`z
        M`).concat(S.x,",").concat(S.y,"h").concat(S.width,"v").concat(S.height,"h").concat(-S.width,"z"),fill:A,fillRule:"evenodd"}))};gYn.displayName="MiniMap";var vYn=Y.memo(gYn),hUo=function(e,n,r){return ke.createElement("path",{stroke:r,strokeWidth:n,d:"M".concat(e/2," 0 V").concat(e," M0 ").concat(e/2," H").concat(e)})},fUo=function(e,n){return ke.createElement("circle",{cx:e,cy:e,r:e,fill:n})},_fe;function X8t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function e9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X8t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X8t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var pUo=(_fe={},Rl(_fe,wz.Dots,"#81818a"),Rl(_fe,wz.Lines,"#eee"),_fe),mUo=function(e){return e.transform},AYn=function(e){var n=e.variant,r=n===void 0?wz.Dots:n,a=e.gap,o=a===void 0?15:a,s=e.size,l=s===void 0?.4:s,c=e.color,u=e.style,d=e.className,h=Y.useRef(null),f=Y.useState(null),p=Us(f,2),m=p[0],g=p[1],v=pu(mUo),A=Us(v,3),y=A[0],S=A[1],x=A[2];Y.useEffect(function(){var N=document.querySelectorAll(".react-flow__background"),L=Array.from(N).findIndex(function(I){return I===h.current});g("pattern-".concat(L))},[]);var w=o*x||1,_=y%w,C=S%w,R=r===wz.Lines,k=c||pUo[r],P=R?hUo(w,l,k):fUo(l*x,k);return ke.createElement("svg",{className:Dv(["react-flow__background","react-flow__container",d]),style:e9t(e9t({},u),{},{width:"100%",height:"100%"}),ref:h},m&&ke.createElement(ke.Fragment,null,ke.createElement("pattern",{id:m,x:_,y:C,width:w,height:w,patternUnits:"userSpaceOnUse"},P),ke.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(m,")")})))};AYn.displayName="Background";var yYn=Y.memo(AYn),gUo=["paid-pro","paid-sponsor","paid-enterprise","paid-custom"];function vUo(t){var e=t.proOptions,n=t.position,r=n===void 0?"bottom-right":n;if(e!=null&&e.account&&gUo.includes(e==null?void 0:e.account)&&e!==null&&e!==void 0&&e.hideAttribution)return null;var a="".concat(r).split("-");return ke.createElement("div",{className:Dv(["react-flow__attribution"].concat(VD(a))),"data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev/pricing"},ke.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer"},"React Flow"))}var AUo=["x","y","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","children","className"];function t9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function yUo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var bUo=function(e){var n=e.x,r=e.y,a=e.label,o=e.labelStyle,s=o===void 0?{}:o,l=e.labelShowBg,c=l===void 0?!0:l,u=e.labelBgStyle,d=u===void 0?{}:u,h=e.labelBgPadding,f=h===void 0?[2,4]:h,p=e.labelBgBorderRadius,m=p===void 0?2:p,g=e.children,v=e.className,A=kCe(e,AUo),y=Y.useRef(null),S=Y.useState({x:0,y:0,width:0,height:0}),x=Us(S,2),w=x[0],_=x[1],C=Dv(["react-flow__edge-textwrapper",v]);return Y.useEffect(function(){if(y.current){var R=y.current.getBBox();_({x:R.x,y:R.y,width:R.width,height:R.height})}},[a]),typeof a>"u"||!a?null:ke.createElement("g",yUo({transform:"translate(".concat(n-w.width/2," ").concat(r-w.height/2,")"),className:C},A),c&&ke.createElement("rect",{width:w.width+2*f[0],x:-f[0],y:-f[1],height:w.height+2*f[1],className:"react-flow__edge-textbg",style:d,rx:m,ry:m}),ke.createElement("text",{className:"react-flow__edge-text",y:w.height/2,dy:"0.3em",ref:y,style:s},a),g)},xUo=Y.memo(bUo),RCe=function(t){var e=t.path,n=t.centerX,r=t.centerY,a=t.label,o=t.labelStyle,s=t.labelShowBg,l=t.labelBgStyle,c=t.labelBgPadding,u=t.labelBgBorderRadius,d=t.style,h=t.markerEnd,f=t.markerStart,p=a?ke.createElement(xUo,{x:n,y:r,label:a,labelStyle:o,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u}):null;return ke.createElement(ke.Fragment,null,ke.createElement("path",{style:d,d:e,className:"react-flow__edge-path",markerEnd:h,markerStart:f}),p)};function Zye(t){var e=t.pos,n=t.x1,r=t.y1,a=t.x2,o=t.y2,s,l;switch(e){case Ni.Left:case Ni.Right:s=.5*(n+a),l=r;break;case Ni.Top:case Ni.Bottom:s=n,l=.5*(r+o);break}return[s,l]}function bYn(t){var e=t.sourceX,n=t.sourceY,r=t.sourcePosition,a=r===void 0?Ni.Bottom:r,o=t.targetX,s=t.targetY,l=t.targetPosition,c=l===void 0?Ni.Top:l,u=Zye({pos:a,x1:e,y1:n,x2:o,y2:s}),d=Us(u,2),h=d[0],f=d[1],p=Zye({pos:c,x1:o,y1:s,x2:e,y2:n}),m=Us(p,2),g=m[0],v=m[1];return"M".concat(e,",").concat(n," C").concat(h,",").concat(f," ").concat(g,",").concat(v," ").concat(o,",").concat(s)}function EUo(t){var e=t.sourceX,n=t.sourceY,r=t.sourcePosition,a=r===void 0?Ni.Bottom:r,o=t.targetX,s=t.targetY,l=t.targetPosition,c=l===void 0?Ni.Top:l,u=Zye({pos:a,x1:e,y1:n,x2:o,y2:s}),d=Us(u,2),h=d[0],f=d[1],p=Zye({pos:c,x1:o,y1:s,x2:e,y2:n}),m=Us(p,2),g=m[0],v=m[1],A=e*.125+h*.375+g*.375+o*.125,y=n*.125+f*.375+v*.375+s*.125,S=Math.abs(A-e),x=Math.abs(y-n);return[A,y,S,x]}var xYn=Y.memo(function(t){var e=t.sourceX,n=t.sourceY,r=t.targetX,a=t.targetY,o=t.sourcePosition,s=o===void 0?Ni.Bottom:o,l=t.targetPosition,c=l===void 0?Ni.Top:l,u=t.label,d=t.labelStyle,h=t.labelShowBg,f=t.labelBgStyle,p=t.labelBgPadding,m=t.labelBgBorderRadius,g=t.style,v=t.markerEnd,A=t.markerStart,y={sourceX:e,sourceY:n,sourcePosition:s,targetX:r,targetY:a,targetPosition:c},S=bYn(y),x=EUo(y),w=Us(x,2),_=w[0],C=w[1];return ke.createElement(RCe,{path:S,centerX:_,centerY:C,label:u,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:g,markerEnd:v,markerStart:A})});function n9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function SUo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?n9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):n9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var r9t=[Ni.Left,Ni.Right],EYn=function(e){var n=e.sourceX,r=e.sourceY,a=e.targetX,o=e.targetY,s=e.sourcePosition,l=s===void 0?Ni.Bottom:s,c=e.targetPosition,u=c===void 0?Ni.Top:c,d=r9t.includes(l),h=r9t.includes(u),f=d&&!h||h&&!d;if(f){var p=d?Math.abs(a-n):0,m=n>a?n-p:n+p,g=d?0:Math.abs(o-r),v=r<o?r+g:r-g;return[m,v,p,g]}var A=Math.abs(a-n)/2,y=a<n?a+A:a-A,S=Math.abs(o-r)/2,x=o<r?o+S:o-S;return[y,x,A,S]};function xY(t,e,n){return n===void 0?n:function(r){var a=e().edges.find(function(o){return o.id===t});n(r,SUo({},a))}}var h$e=function(e,n,r){return"L ".concat(e,",").concat(n-r,"Q ").concat(e,",").concat(n," ").concat(e+r,",").concat(n)},f$e=function(e,n,r){return"L ".concat(e+r,",").concat(n,"Q ").concat(e,",").concat(n," ").concat(e,",").concat(n-r)},p$e=function(e,n,r){return"L ".concat(e,",").concat(n-r,"Q ").concat(e,",").concat(n," ").concat(e-r,",").concat(n)},m$e=function(e,n,r){return"L ".concat(e-r,",").concat(n,"Q ").concat(e,",").concat(n," ").concat(e,",").concat(n-r)},g$e=function(e,n,r){return"L ".concat(e+r,",").concat(n,"Q ").concat(e,",").concat(n," ").concat(e,",").concat(n+r)},v$e=function(e,n,r){return"L ".concat(e,",").concat(n+r,"Q ").concat(e,",").concat(n," ").concat(e+r,",").concat(n)},A$e=function(e,n,r){return"L ".concat(e,",").concat(n+r,"Q ").concat(e,",").concat(n," ").concat(e-r,",").concat(n)},y$e=function(e,n,r){return"L ".concat(e-r,",").concat(n,"Q ").concat(e,",").concat(n," ").concat(e,",").concat(n+r)};function Xye(t){var e=t.sourceX,n=t.sourceY,r=t.sourcePosition,a=r===void 0?Ni.Bottom:r,o=t.targetX,s=t.targetY,l=t.targetPosition,c=l===void 0?Ni.Top:l,u=t.borderRadius,d=u===void 0?5:u,h=t.centerX,f=t.centerY,p=EYn({sourceX:e,sourceY:n,targetX:o,targetY:s}),m=Us(p,4),g=m[0],v=m[1],A=m[2],y=m[3],S=Math.min(d,Math.abs(o-e)),x=Math.min(d,Math.abs(s-n)),w=Math.min(S,x,A,y),_=[Ni.Left,Ni.Right],C=typeof h<"u"?h:g,R=typeof f<"u"?f:v,k=null,P=null;return e<=o?(k=n<=s?h$e(e,R,w):v$e(e,R,w),P=n<=s?y$e(o,R,w):m$e(o,R,w)):(k=n<s?p$e(e,R,w):A$e(e,R,w),P=n<s?g$e(o,R,w):f$e(o,R,w)),_.includes(a)&&_.includes(c)?e<=o?(k=n<=s?y$e(C,n,w):m$e(C,n,w),P=n<=s?h$e(C,s,w):v$e(C,s,w)):(a===Ni.Right&&c===Ni.Left||a===Ni.Left&&c===Ni.Right||a===Ni.Left&&c===Ni.Left)&&(k=n<=s?g$e(C,n,w):f$e(C,n,w),P=n<=s?p$e(C,s,w):A$e(C,s,w)):_.includes(a)&&!_.includes(c)?(e<=o?k=n<=s?y$e(o,n,w):m$e(o,n,w):k=n<=s?g$e(o,n,w):f$e(o,n,w),P=""):!_.includes(a)&&_.includes(c)&&(e<=o?k=n<=s?h$e(e,s,w):v$e(e,s,w):k=n<=s?p$e(e,s,w):A$e(e,s,w),P=""),"M ".concat(e,",").concat(n).concat(k).concat(P,"L ").concat(o,",").concat(s)}var fut=Y.memo(function(t){var e=t.sourceX,n=t.sourceY,r=t.targetX,a=t.targetY,o=t.label,s=t.labelStyle,l=t.labelShowBg,c=t.labelBgStyle,u=t.labelBgPadding,d=t.labelBgBorderRadius,h=t.style,f=t.sourcePosition,p=f===void 0?Ni.Bottom:f,m=t.targetPosition,g=m===void 0?Ni.Top:m,v=t.markerEnd,A=t.markerStart,y=t.borderRadius,S=y===void 0?5:y,x=EYn({sourceX:e,sourceY:n,targetX:r,targetY:a,sourcePosition:p,targetPosition:g}),w=Us(x,2),_=w[0],C=w[1],R=Xye({sourceX:e,sourceY:n,sourcePosition:p,targetX:r,targetY:a,targetPosition:g,borderRadius:S});return ke.createElement(RCe,{path:R,centerX:_,centerY:C,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:h,markerEnd:v,markerStart:A})});function i9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function a9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?i9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var SYn=Y.memo(function(t){return ke.createElement(fut,a9t(a9t({},t),{},{borderRadius:0}))}),wYn=Y.memo(function(t){var e=t.sourceX,n=t.sourceY,r=t.targetX,a=t.targetY,o=t.label,s=t.labelStyle,l=t.labelShowBg,c=t.labelBgStyle,u=t.labelBgPadding,d=t.labelBgBorderRadius,h=t.style,f=t.markerEnd,p=t.markerStart,m=Math.abs(a-n)/2,g=a<n?a+m:a-m,v=Math.abs(r-e)/2,A=r<e?r+v:r-v,y="M ".concat(e,",").concat(n,"L ").concat(r,",").concat(a);return ke.createElement(RCe,{path:y,centerX:A,centerY:g,label:o,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:h,markerEnd:f,markerStart:p})});function Tfe(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function ebe(t){var e=t.pos,n=t.x1,r=t.y1,a=t.x2,o=t.y2,s=t.c,l,c;switch(e){case Ni.Left:l=n-Tfe(n-a,s),c=r;break;case Ni.Right:l=n+Tfe(a-n,s),c=r;break;case Ni.Top:l=n,c=r-Tfe(r-o,s);break;case Ni.Bottom:l=n,c=r+Tfe(o-r,s);break}return[l,c]}function put(t){var e=t.sourceX,n=t.sourceY,r=t.sourcePosition,a=r===void 0?Ni.Bottom:r,o=t.targetX,s=t.targetY,l=t.targetPosition,c=l===void 0?Ni.Top:l,u=t.curvature,d=u===void 0?.25:u,h=ebe({pos:a,x1:e,y1:n,x2:o,y2:s,c:d}),f=Us(h,2),p=f[0],m=f[1],g=ebe({pos:c,x1:o,y1:s,x2:e,y2:n,c:d}),v=Us(g,2),A=v[0],y=v[1];return"M".concat(e,",").concat(n," C").concat(p,",").concat(m," ").concat(A,",").concat(y," ").concat(o,",").concat(s)}function wUo(t){var e=t.sourceX,n=t.sourceY,r=t.sourcePosition,a=r===void 0?Ni.Bottom:r,o=t.targetX,s=t.targetY,l=t.targetPosition,c=l===void 0?Ni.Top:l,u=t.curvature,d=u===void 0?.25:u,h=ebe({pos:a,x1:e,y1:n,x2:o,y2:s,c:d}),f=Us(h,2),p=f[0],m=f[1],g=ebe({pos:c,x1:o,y1:s,x2:e,y2:n,c:d}),v=Us(g,2),A=v[0],y=v[1],S=e*.125+p*.375+A*.375+o*.125,x=n*.125+m*.375+y*.375+s*.125,w=Math.abs(S-e),_=Math.abs(x-n);return[S,x,w,_]}var aqe=Y.memo(function(t){var e=t.sourceX,n=t.sourceY,r=t.targetX,a=t.targetY,o=t.sourcePosition,s=o===void 0?Ni.Bottom:o,l=t.targetPosition,c=l===void 0?Ni.Top:l,u=t.label,d=t.labelStyle,h=t.labelShowBg,f=t.labelBgStyle,p=t.labelBgPadding,m=t.labelBgBorderRadius,g=t.style,v=t.markerEnd,A=t.markerStart,y=t.curvature,S={sourceX:e,sourceY:n,sourcePosition:s,targetX:r,targetY:a,targetPosition:c,curvature:y},x=put(S),w=wUo(S),_=Us(w,2),C=_[0],R=_[1];return ke.createElement(RCe,{path:x,centerX:C,centerY:R,label:u,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:g,markerEnd:v,markerStart:A})}),mut=Y.createContext(null),_Uo=mut.Provider;mut.Consumer;function oqe(t,e,n,r,a,o,s){var l=s.elementFromPoint(t.clientX,t.clientY),c=(l==null?void 0:l.classList.contains("target"))||!1,u=(l==null?void 0:l.classList.contains("source"))||!1,d={elementBelow:l,isValid:!1,connection:{source:null,target:null,sourceHandle:null,targetHandle:null},isHoveringHandle:!1};if(l&&(c||u)){d.isHoveringHandle=!0;var h=l.getAttribute("data-nodeid"),f=l.getAttribute("data-handleid"),p=n?{source:h,sourceHandle:f,target:r,targetHandle:a}:{source:r,sourceHandle:a,target:h,targetHandle:f};d.connection=p;var m=e===DP.Strict?n&&u||!n&&c:!0;m&&(d.isValid=o(p))}return d}function b$e(t){t==null||t.classList.remove("react-flow__handle-valid"),t==null||t.classList.remove("react-flow__handle-connecting")}function _Yn(t){var e=t.event,n=t.handleId,r=t.nodeId,a=t.onConnect,o=t.isTarget,s=t.getState,l=t.setState,c=t.isValidConnection,u=t.elementEdgeUpdaterType,d=t.onEdgeUpdateEnd,h=e.target.closest(".react-flow"),f=qqn(e.target);if(!f)return;var p=f.elementFromPoint(e.clientX,e.clientY),m=p==null?void 0:p.classList.contains("target"),g=p==null?void 0:p.classList.contains("source");if(!h||!m&&!g&&!u)return;var v=s(),A=v.onConnectStart,y=v.connectionMode,S=u||(m?"target":"source"),x=h.getBoundingClientRect(),w;l({connectionPosition:{x:e.clientX-x.left,y:e.clientY-x.top},connectionNodeId:r,connectionHandleId:n,connectionHandleType:S}),A==null||A(e,{nodeId:r,handleId:n,handleType:S});function _(R){l({connectionPosition:{x:R.clientX-x.left,y:R.clientY-x.top}});var k=oqe(R,y,o,r,n,c,f),P=k.connection,N=k.elementBelow,L=k.isValid,I=k.isHoveringHandle;if(!I)return b$e(w);P.source!==P.target&&N&&(b$e(w),w=N,N.classList.add("react-flow__handle-connecting"),N.classList.toggle("react-flow__handle-valid",L))}function C(R){var k=s(),P=k.onConnectStop,N=k.onConnectEnd,L=oqe(R,y,o,r,n,c,f),I=L.connection,b=L.isValid;P==null||P(R),b&&(a==null||a(I)),N==null||N(R),u&&d&&d(R),b$e(w),l({connectionNodeId:null,connectionHandleId:null,connectionHandleType:null}),f.removeEventListener("mousemove",_),f.removeEventListener("mouseup",C)}f.addEventListener("mousemove",_),f.addEventListener("mouseup",C)}var TUo=["type","position","isValidConnection","isConnectable","id","onConnect","children","className","onMouseDown"];function o9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function x$e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var CUo=function(){return!0},kUo=function(e){return{connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick}},TYn=Y.forwardRef(function(t,e){var n=t.type,r=n===void 0?"source":n,a=t.position,o=a===void 0?Ni.Top:a,s=t.isValidConnection,l=s===void 0?CUo:s,c=t.isConnectable,u=c===void 0?!0:c,d=t.id,h=t.onConnect,f=t.children,p=t.className,m=t.onMouseDown,g=kCe(t,TUo),v=Bv(),A=Y.useContext(mut),y=pu(kUo,c1),S=y.connectionStartHandle,x=y.connectOnClick,w=d||null,_=r==="target",C=function(N){var L=v.getState(),I=L.defaultEdgeOptions,b=L.onConnect,T=L.hasDefaultEdges,M=x$e(x$e({},I),N);if(T){var D=v.getState(),B=D.edges;v.setState({edges:iYn(M,B)})}b==null||b(M),h==null||h(M)},R=function(N){N.button===0&&_Yn({event:N,handleId:w,nodeId:A,onConnect:C,isTarget:_,getState:v.getState,setState:v.setState,isValidConnection:l}),m==null||m(N)},k=function(N){var L=v.getState(),I=L.onClickConnectStart,b=L.onClickConnectStop,T=L.onClickConnectEnd,M=L.connectionMode;if(!S){I==null||I(N,{nodeId:A,handleId:w,handleType:r}),v.setState({connectionStartHandle:{nodeId:A,type:r,handleId:w}});return}var D=qqn(N.target),B=oqe(N,M,S.type==="target",S.nodeId,S.handleId||null,l,D),j=B.connection,H=B.isValid;b==null||b(N),H&&C(j),T==null||T(N),v.setState({connectionStartHandle:null})};return ke.createElement("div",x$e({"data-handleid":w,"data-nodeid":A,"data-handlepos":o,className:Dv(["react-flow__handle","react-flow__handle-".concat(o),"nodrag",p,{source:!_,target:_,connectable:u,connecting:(S==null?void 0:S.nodeId)===A&&(S==null?void 0:S.handleId)===w&&(S==null?void 0:S.type)===r}]),onMouseDown:R,onClick:x?k:void 0,ref:e},g),f)});TYn.displayName="Handle";var tbe=Y.memo(TYn),CYn=function(e){var n=e.data,r=e.isConnectable,a=e.targetPosition,o=a===void 0?Ni.Top:a,s=e.sourcePosition,l=s===void 0?Ni.Bottom:s;return ke.createElement(ke.Fragment,null,ke.createElement(tbe,{type:"target",position:o,isConnectable:r}),n==null?void 0:n.label,ke.createElement(tbe,{type:"source",position:l,isConnectable:r}))};CYn.displayName="DefaultNode";var sqe=Y.memo(CYn),kYn=function(e){var n=e.data,r=e.isConnectable,a=e.sourcePosition,o=a===void 0?Ni.Bottom:a;return ke.createElement(ke.Fragment,null,n==null?void 0:n.label,ke.createElement(tbe,{type:"source",position:o,isConnectable:r}))};kYn.displayName="InputNode";var RYn=Y.memo(kYn),MYn=function(e){var n=e.data,r=e.isConnectable,a=e.targetPosition,o=a===void 0?Ni.Top:a;return ke.createElement(ke.Fragment,null,ke.createElement(tbe,{type:"target",position:o,isConnectable:r}),n==null?void 0:n.label)};MYn.displayName="OutputNode";var NYn=Y.memo(MYn),RUo=function(e){return{selectedNodes:Array.from(e.nodeInternals.values()).filter(function(n){return n.selected}),selectedEdges:e.edges.filter(function(n){return n.selected})}},MUo=function(e,n){var r=e.selectedNodes.map(function(l){return l.id}),a=n.selectedNodes.map(function(l){return l.id}),o=e.selectedEdges.map(function(l){return l.id}),s=n.selectedEdges.map(function(l){return l.id});return c1(r,a)&&c1(o,s)};function NUo(t){var e=t.onSelectionChange,n=pu(RUo,MUo),r=n.selectedNodes,a=n.selectedEdges;return Y.useEffect(function(){e({nodes:r,edges:a})},[r,a]),null}var IUo=Y.memo(NUo),PUo=function(e){return{setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset}};function MI(t,e){Y.useEffect(function(){typeof t<"u"&&e(t)},[t])}function ru(t,e,n){Y.useEffect(function(){typeof e<"u"&&n(Rl({},t,e))},[e])}var OUo=function(e){var n=e.nodes,r=e.edges,a=e.defaultNodes,o=e.defaultEdges,s=e.onConnect,l=e.onConnectStart,c=e.onConnectStop,u=e.onConnectEnd,d=e.onClickConnectStart,h=e.onClickConnectStop,f=e.onClickConnectEnd,p=e.nodesDraggable,m=e.nodesConnectable,g=e.minZoom,v=e.maxZoom,A=e.nodeExtent,y=e.onNodesChange,S=e.onEdgesChange,x=e.elementsSelectable,w=e.connectionMode,_=e.snapGrid,C=e.snapToGrid,R=e.translateExtent,k=e.connectOnClick,P=e.defaultEdgeOptions,N=e.fitView,L=e.fitViewOptions,I=e.onNodesDelete,b=e.onEdgesDelete,T=e.onNodeDrag,M=e.onNodeDragStart,D=e.onNodeDragStop,B=e.onSelectionDrag,j=e.onSelectionDragStart,H=e.onSelectionDragStop,U=pu(PUo,c1),$=U.setNodes,z=U.setEdges,Z=U.setDefaultNodesAndEdges,K=U.setMinZoom,Q=U.setMaxZoom,ee=U.setTranslateExtent,X=U.setNodeExtent,te=U.reset,J=Bv();return Y.useEffect(function(){return Z(a,o),function(){te()}},[]),ru("defaultEdgeOptions",P,J.setState),ru("connectionMode",w,J.setState),ru("onConnect",s,J.setState),ru("onConnectStart",l,J.setState),ru("onConnectStop",c,J.setState),ru("onConnectEnd",u,J.setState),ru("onClickConnectStart",d,J.setState),ru("onClickConnectStop",h,J.setState),ru("onClickConnectEnd",f,J.setState),ru("nodesDraggable",p,J.setState),ru("nodesConnectable",m,J.setState),ru("elementsSelectable",x,J.setState),ru("snapToGrid",C,J.setState),ru("snapGrid",_,J.setState),ru("onNodesChange",y,J.setState),ru("onEdgesChange",S,J.setState),ru("connectOnClick",k,J.setState),ru("fitViewOnInit",N,J.setState),ru("fitViewOnInitOptions",L,J.setState),ru("onNodesDelete",I,J.setState),ru("onEdgesDelete",b,J.setState),ru("onNodeDrag",T,J.setState),ru("onNodeDragStart",M,J.setState),ru("onNodeDragStop",D,J.setState),ru("onSelectionDrag",B,J.setState),ru("onSelectionDragStart",j,J.setState),ru("onSelectionDragStop",H,J.setState),MI(n,$),MI(r,z),MI(a,$),MI(o,z),MI(g,K),MI(v,Q),MI(R,ee),MI(A,X),null},LUo=".react-flow{height:100%;overflow:hidden;position:relative;width:100%}.react-flow__container{height:100%;left:0;position:absolute;top:0;width:100%}.react-flow__pane{z-index:1}.react-flow__viewport{pointer-events:none;transform-origin:0 0;z-index:2}.react-flow__renderer{z-index:4}.react-flow__selectionpane{z-index:5}.react-flow .react-flow__edges{overflow:visible;pointer-events:none}.react-flow .react-flow__connectionline{z-index:1001}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.inactive{pointer-events:none}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edge-path{fill:none}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connection-path{fill:none}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{box-sizing:border-box;pointer-events:all;position:absolute;transform-origin:0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-flow__nodesselection{pointer-events:none;transform-origin:left top;z-index:3}.react-flow__nodesselection-rect{cursor:-webkit-grab;cursor:grab;pointer-events:all;position:absolute}.react-flow__handle{pointer-events:none;position:absolute}.react-flow__handle.connectable{pointer-events:all}.react-flow__handle-bottom{bottom:-4px;left:50%;top:auto;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{left:-4px;top:50%;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__controls{bottom:20px;left:15px;position:absolute;z-index:5}.react-flow__controls-button{border:none;height:24px;width:24px}.react-flow__controls-button svg{width:100%}.react-flow__minimap{bottom:20px;position:absolute;right:15px;z-index:5}.react-flow__attribution{background:hsla(0,0%,100%,.5);color:#999;font-size:10px;padding:2px 3px;position:absolute;z-index:1000}.react-flow__attribution a{color:#555;text-decoration:none}.react-flow__attribution.top{top:0}.react-flow__attribution.bottom{bottom:0}.react-flow__attribution.left{left:0}.react-flow__attribution.right{right:0}.react-flow__attribution.center{left:50%;transform:translateX(-50%)}",BUo=LUo,DUo=".react-flow__edge.selected .react-flow__edge-path{stroke:#555}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-path{stroke:#b1b1b7;stroke-width:1}.react-flow__edge-text{font-size:10px}.react-flow__edge-textbg{fill:#fff}.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1}.react-flow__node{cursor:-webkit-grab;cursor:grab}.react-flow__node-default,.react-flow__node-group,.react-flow__node-input,.react-flow__node-output{background:#fff;border:1px solid #1a192b;border-radius:3px;color:#222;font-size:12px;padding:10px;text-align:center;width:150px}.react-flow__node-default.selected,.react-flow__node-group.selected,.react-flow__node-input.selected,.react-flow__node-output.selected{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-default .react-flow__handle,.react-flow__node-group .react-flow__handle,.react-flow__node-input .react-flow__handle,.react-flow__node-output .react-flow__handle{background:#1a192b}.react-flow__node-default.selectable:hover,.react-flow__node-group.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px rgba(0,0,0,.08)}.react-flow__node-default.selectable.selected,.react-flow__node-group.selectable.selected,.react-flow__node-input.selectable.selected,.react-flow__node-output.selectable.selected{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background:hsla(0,0%,94%,.25);border-color:#1a192b}.react-flow__nodesselection-rect,.react-flow__selection{background:rgba(0,89,220,.08);border:1px dotted rgba(0,89,220,.8)}.react-flow__handle{background:#555;border:1px solid #fff;border-radius:100%;height:6px;width:6px}.react-flow__handle.connectable{cursor:crosshair}.react-flow__minimap{background-color:#fff}.react-flow__controls{box-shadow:0 0 2px 1px rgba(0,0,0,.08)}.react-flow__controls-button{align-items:center;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;cursor:pointer;display:flex;height:16px;justify-content:center;padding:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:16px}.react-flow__controls-button svg{max-height:12px;max-width:12px}.react-flow__controls-button:hover{background:#f4f4f4}",$Uo=DUo,FUo=function(e,n,r){return r===Ni.Left?e-n:r===Ni.Right?e+n:e},jUo=function(e,n,r){return r===Ni.Top?e-n:r===Ni.Bottom?e+n:e},s9t=function(e){var n=e.className,r=e.position,a=e.centerX,o=e.centerY,s=e.radius,l=s===void 0?10:s;return ke.createElement("circle",{className:Dv(["react-flow__edgeupdater",n]),cx:FUo(a,l,r),cy:jUo(o,l,r),r:l,stroke:"transparent",fill:"transparent"})},S7=function(t){var e=function(r){var a=r.id,o=r.className,s=r.type,l=r.data,c=r.onClick,u=r.onEdgeDoubleClick,d=r.selected,h=r.animated,f=r.label,p=r.labelStyle,m=r.labelShowBg,g=r.labelBgStyle,v=r.labelBgPadding,A=r.labelBgBorderRadius,y=r.style,S=r.source,x=r.target,w=r.sourceX,_=r.sourceY,C=r.targetX,R=r.targetY,k=r.sourcePosition,P=r.targetPosition,N=r.elementsSelectable,L=r.hidden,I=r.sourceHandleId,b=r.targetHandleId,T=r.onContextMenu,M=r.onMouseEnter,D=r.onMouseMove,B=r.onMouseLeave,j=r.edgeUpdaterRadius,H=r.onEdgeUpdate,U=r.onEdgeUpdateStart,$=r.onEdgeUpdateEnd,z=r.markerEnd,Z=r.markerStart,K=r.rfId,Q=Y.useState(!1),ee=Us(Q,2),X=ee[0],te=ee[1],J=Bv(),ne=function(se){var oe=J.getState(),ge=oe.edges,De=oe.addSelectedEdges,Fe=ge.find(function(Se){return Se.id===a});N&&(J.setState({nodesSelectionActive:!1}),De([a])),c==null||c(se,Fe)},ie=xY(a,J.getState,u),he=xY(a,J.getState,T),de=xY(a,J.getState,M),ce=xY(a,J.getState,D),Ee=xY(a,J.getState,B),Me=function(se,oe){var ge=oe?x:S,De=(oe?b:I)||null,Fe=oe?"target":"source",Se=function(){return!0},Xe=oe,Oe=J.getState().edges.find(function(ut){return ut.id===a});U==null||U(se,Oe,Fe);var Ye=$?function(ut){return $(ut,Oe,Fe)}:void 0,mt=function(lt){return H==null?void 0:H(Oe,lt)};_Yn({event:se,handleId:De,nodeId:ge,onConnect:mt,isTarget:Xe,getState:J.getState,setState:J.setState,isValidConnection:Se,elementEdgeUpdaterType:Fe,onEdgeUpdateEnd:Ye})},Be=function(se){return Me(se,!0)},ze=function(se){return Me(se,!1)},je=function(){return te(!0)},ye=function(){return te(!1)},me=Y.useMemo(function(){return"url(#".concat(rqe(Z,K),")")},[Z,K]),le=Y.useMemo(function(){return"url(#".concat(rqe(z,K),")")},[z,K]);if(L)return null;var pe=!N&&!c,Ne=typeof H<"u",_e=Dv(["react-flow__edge","react-flow__edge-".concat(s),o,{selected:d,animated:h,inactive:pe,updating:X}]);return ke.createElement("g",{className:_e,onClick:ne,onDoubleClick:ie,onContextMenu:he,onMouseEnter:de,onMouseMove:ce,onMouseLeave:Ee},ke.createElement(t,{id:a,source:S,target:x,selected:d,animated:h,label:f,labelStyle:p,labelShowBg:m,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:A,data:l,style:y,sourceX:w,sourceY:_,targetX:C,targetY:R,sourcePosition:k,targetPosition:P,sourceHandleId:I,targetHandleId:b,markerStart:me,markerEnd:le,"data-testid":"rf__edge-".concat(a)}),Ne&&ke.createElement("g",{onMouseDown:Be,onMouseEnter:je,onMouseOut:ye},ke.createElement(s9t,{position:k,centerX:w,centerY:_,radius:j})),Ne&&ke.createElement("g",{onMouseDown:ze,onMouseEnter:je,onMouseOut:ye},ke.createElement(s9t,{position:P,centerX:C,centerY:R,radius:j})))};return e.displayName="EdgeWrapper",Y.memo(e)};function l9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function c9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?l9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HUo(t){var e={default:S7(t.default||aqe),straight:S7(t.bezier||wYn),step:S7(t.step||SYn),smoothstep:S7(t.step||fut),simplebezier:S7(t.simplebezier||xYn)},n={},r=Object.keys(t).filter(function(a){return!["default","bezier"].includes(a)}).reduce(function(a,o){return a[o]=S7(t[o]||aqe),a},n);return c9t(c9t({},e),r)}function u9t(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=((n==null?void 0:n.x)||0)+e.x,a=((n==null?void 0:n.y)||0)+e.y,o=(n==null?void 0:n.width)||e.width,s=(n==null?void 0:n.height)||e.height;switch(t){case Ni.Top:return{x:r+o/2,y:a};case Ni.Right:return{x:r+o,y:a+s/2};case Ni.Bottom:return{x:r+o/2,y:a+s};case Ni.Left:return{x:r,y:a+s/2}}}function d9t(t,e){if(!t)return null;var n=null;return t.length===1||!e?n=t[0]:e&&(n=t.find(function(r){return r.id===e})),typeof n>"u"?null:n}var UUo=function(e,n,r,a,o,s){var l=u9t(r,e,n),c=u9t(s,a,o);return{sourceX:l.x,sourceY:l.y,targetX:c.x,targetY:c.y}};function zUo(t){var e=t.sourcePos,n=t.targetPos,r=t.sourceWidth,a=t.sourceHeight,o=t.targetWidth,s=t.targetHeight,l=t.width,c=t.height,u=t.transform,d={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),x2:Math.max(e.x+r,n.x+o),y2:Math.max(e.y+a,n.y+s)};d.x===d.x2&&(d.x2+=1),d.y===d.y2&&(d.y2+=1);var h=_z({x:(0-u[0])/u[2],y:(0-u[1])/u[2],width:l/u[2],height:c/u[2]}),f=Math.max(0,Math.min(h.x2,d.x2)-Math.max(h.x,d.x)),p=Math.max(0,Math.min(h.y2,d.y2)-Math.max(h.y,d.y)),m=Math.ceil(f*p);return m>0}function h9t(t,e){var n,r,a,o,s,l=t.get(e),c=(l==null||(n=l[Xm])===null||n===void 0?void 0:n.handleBounds)||null,u=!l||!c||!l.width||!l.height||typeof((r=l.positionAbsolute)===null||r===void 0?void 0:r.x)>"u"||typeof((a=l.positionAbsolute)===null||a===void 0?void 0:a.y)>"u";return[{x:(l==null||(o=l.positionAbsolute)===null||o===void 0?void 0:o.x)||0,y:(l==null||(s=l.positionAbsolute)===null||s===void 0?void 0:s.y)||0,width:(l==null?void 0:l.width)||0,height:(l==null?void 0:l.height)||0},c,!u]}var GUo=typeof document<"u"?document:null,nbe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{target:GUo},n=Y.useState(!1),r=Us(n,2),a=r[0],o=r[1],s=Y.useRef(new Set([])),l=Y.useMemo(function(){if(t!==null){var h=Array.isArray(t)?t:[t],f=h.filter(function(m){return typeof m=="string"}).map(function(m){return m.split("+")}),p=f.reduce(function(m,g){return m.concat.apply(m,VD(g))},[]);return[f,p]}return[[],[]]},[t]),c=Us(l,2),u=c[0],d=c[1];return Y.useEffect(function(){if(t!==null){var h,f,p=function(A){if(m9t(A))return!1;var y=p9t(A.code,d);s.current.add(A[y]),f9t(u,s.current,!1)&&(A.preventDefault(),o(!0))},m=function(A){if(m9t(A))return!1;var y=p9t(A.code,d);f9t(u,s.current,!0)?(o(!1),s.current.clear()):s.current.delete(A[y])},g=function(){s.current.clear(),o(!1)};return e==null||(h=e.target)===null||h===void 0||h.addEventListener("keydown",p),e==null||(f=e.target)===null||f===void 0||f.addEventListener("keyup",m),window.addEventListener("blur",g),function(){var v,A;e==null||(v=e.target)===null||v===void 0||v.removeEventListener("keydown",p),e==null||(A=e.target)===null||A===void 0||A.removeEventListener("keyup",m),window.removeEventListener("blur",g)}}},[t,o]),a};function f9t(t,e,n){return t.filter(function(r){return n||r.length===e.size}).some(function(r){return r.every(function(a){return e.has(a)})})}function p9t(t,e){return e.includes(t)?"code":"key"}function m9t(t){var e,n=((e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])||t.target;return["INPUT","SELECT","TEXTAREA"].includes(n==null?void 0:n.nodeName)||(n==null?void 0:n.hasAttribute("contenteditable"))}var VUo=function(e){return{onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange}},KUo=function(t){var e=t.deleteKeyCode,n=t.multiSelectionKeyCode,r=Bv(),a=pu(VUo,c1),o=a.onNodesChange,s=a.onEdgesChange,l=nbe(e),c=nbe(n);Y.useEffect(function(){var u=r.getState(),d=u.nodeInternals,h=u.edges,f=u.hasDefaultNodes,p=u.hasDefaultEdges,m=u.onNodesDelete,g=u.onEdgesDelete,v=Array.from(d.values()),A=v.reduce(function(R,k){return(!k.selected&&k.parentNode&&R.find(function(P){return P.id===k.parentNode})||k.selected)&&R.push(k),R},[]),y=h.filter(function(R){return R.selected});if(l&&(A||y)){var S=sYn(A,h),x=[].concat(VD(y),VD(S)),w=x.reduce(function(R,k){return R.includes(k.id)||R.push(k.id),R},[]);if((p||f)&&(p&&r.setState({edges:h.filter(function(R){return!w.includes(R.id)})}),f&&(A.forEach(function(R){d.delete(R.id)}),r.setState({nodeInternals:new Map(d)}))),w.length>0&&(g==null||g(x),s)){var _=w.map(function(R){return{id:R,type:"remove"}});s(_)}if(A.length>0&&(m==null||m(A),o)){var C=A.map(function(R){return{id:R.id,type:"remove"}});o(C)}r.setState({nodesSelectionActive:!1})}},[l,o,s]),Y.useEffect(function(){r.setState({multiSelectionActive:c})},[c])};function WUo(t){var e=Bv();Y.useEffect(function(){var n,r=function(){if(t.current){var o=dut(t.current);e.setState({width:o.width||500,height:o.height||500})}};return r(),window.onresize=r,t.current&&(n=new ResizeObserver(function(){return r()}),n.observe(t.current)),function(){window.onresize=null,n&&t.current&&n.unobserve(t.current)}},[])}var QUo=function(e,n){return e.x!==n.x||e.y!==n.y||e.zoom!==n.k},E$e=function(e){return{x:e.x,y:e.y,zoom:e.k}},Cfe=function(e,n){return e.target.closest(".".concat(n))},qUo=function(e){return{d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler}},YUo=function(e){var n=e.onMove,r=e.onMoveStart,a=e.onMoveEnd,o=e.zoomOnScroll,s=o===void 0?!0:o,l=e.zoomOnPinch,c=l===void 0?!0:l,u=e.panOnScroll,d=u===void 0?!1:u,h=e.panOnScrollSpeed,f=h===void 0?.5:h,p=e.panOnScrollMode,m=p===void 0?CH.Free:p,g=e.zoomOnDoubleClick,v=g===void 0?!0:g,A=e.selectionKeyPressed,y=e.elementsSelectable,S=e.panOnDrag,x=S===void 0?!0:S,w=e.translateExtent,_=e.minZoom,C=e.maxZoom,R=e.defaultZoom,k=R===void 0?1:R,P=e.defaultPosition,N=P===void 0?[0,0]:P,L=e.zoomActivationKeyCode,I=e.preventScrolling,b=I===void 0?!0:I,T=e.children,M=e.noWheelClassName,D=e.noPanClassName,B=Bv(),j=Y.useRef(!1),H=Y.useRef(null),U=Y.useRef({x:0,y:0,zoom:0}),$=pu(qUo,c1),z=$.d3Zoom,Z=$.d3Selection,K=$.d3ZoomHandler,Q=nbe(L);return WUo(H),Y.useEffect(function(){if(H.current){var ee,X=OHo().scaleExtent([_,C]).translateExtent(w),te=qS(H.current).call(X),J=kH(N[0],w[0][0],w[1][0]),ne=kH(N[1],w[0][1],w[1][1]),ie=kH(k,_,C),he=GD.translate(J,ne).scale(ie);X.transform(te,he),B.setState({d3Zoom:X,d3Selection:te,d3ZoomHandler:te.on("wheel.zoom"),transform:[J,ne,ie],domNode:(ee=te.node())===null||ee===void 0?void 0:ee.closest(".react-flow")})}},[]),Y.useEffect(function(){Z&&z&&(d&&!Q?Z.on("wheel",function(ee){if(Cfe(ee,M))return!1;ee.preventDefault(),ee.stopImmediatePropagation();var X=Z.property("__zoom").k||1;if(ee.ctrlKey&&c){var te=xT(ee),J=-ee.deltaY*(ee.deltaMode===1?.05:ee.deltaMode?1:.002)*10,ne=X*Math.pow(2,J);z.scaleTo(Z,ne,te);return}var ie=ee.deltaMode===1?20:1,he=m===CH.Vertical?0:ee.deltaX*ie,de=m===CH.Horizontal?0:ee.deltaY*ie;z.translateBy(Z,-(he/X)*f,-(de/X)*f)}).on("wheel.zoom",null):typeof K<"u"&&Z.on("wheel",function(ee){if(!b||Cfe(ee,M))return null;ee.preventDefault()}).on("wheel.zoom",K))},[d,m,Z,z,K,Q,c,b,M]),Y.useEffect(function(){z&&(A&&!j.current?z.on("zoom",null):A||z.on("zoom",function(ee){if(B.setState({transform:[ee.transform.x,ee.transform.y,ee.transform.k]}),n){var X=E$e(ee.transform);n(ee.sourceEvent,X)}}))},[A,z,n]),Y.useEffect(function(){z&&z.on("start",function(ee){if(j.current=!0,r){var X=E$e(ee.transform);U.current=X,r(ee.sourceEvent,X)}})},[z,r]),Y.useEffect(function(){z&&z.on("end",function(ee){if(j.current=!1,a&&QUo(U.current,ee.transform)){var X=E$e(ee.transform);U.current=X,a(ee.sourceEvent,X)}})},[z,a]),Y.useEffect(function(){z&&z.filter(function(ee){var X=Q||s,te=c&&ee.ctrlKey;return!x&&!X&&!d&&!v&&!c||A||!v&&ee.type==="dblclick"||Cfe(ee,M)&&ee.type==="wheel"||Cfe(ee,D)&&ee.type!=="wheel"||!c&&ee.ctrlKey&&ee.type==="wheel"||!X&&!d&&!te&&ee.type==="wheel"||!x&&(ee.type==="mousedown"||ee.type==="touchstart")?!1:(!ee.ctrlKey||ee.type==="wheel")&&!ee.button})},[z,s,c,d,v,x,A,y,Q]),ke.createElement("div",{className:"react-flow__renderer react-flow__container",ref:H},T)};function g9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function v9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?g9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function A9t(t,e){return{x:t.clientX-e.left,y:t.clientY-e.top}}var JUo=function(e){return{userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable}},y9t={startX:0,startY:0,x:0,y:0,width:0,height:0,draw:!1},ZUo=Y.memo(function(t){var e=t.selectionKeyPressed,n=Bv(),r=Y.useRef(0),a=Y.useRef(0),o=Y.useRef(),s=Y.useState(y9t),l=Us(s,2),c=l[0],u=l[1],d=pu(JUo,c1),h=d.userSelectionActive,f=d.elementsSelectable,p=h||e;if(!f||!p)return null;var m=function(){u(y9t),n.setState({userSelectionActive:!1}),r.current=0,a.current=0},g=function(x){var w=x.target.closest(".react-flow");o.current=w.getBoundingClientRect();var _=A9t(x,o.current);u({width:0,height:0,startX:_.x,startY:_.y,x:_.x,y:_.y,draw:!0}),n.setState({userSelectionActive:!0,nodesSelectionActive:!1})},v=function(x){var w,_;if(!(!e||!c.draw||!o.current)){var C=A9t(x,o.current),R=(w=c.startX)!==null&&w!==void 0?w:0,k=(_=c.startY)!==null&&_!==void 0?_:0,P=v9t(v9t({},c),{},{x:C.x<R?C.x:R,y:C.y<k?C.y:k,width:Math.abs(C.x-R),height:Math.abs(C.y-k)}),N=n.getState(),L=N.nodeInternals,I=N.edges,b=N.transform,T=N.onNodesChange,M=N.onEdgesChange,D=Array.from(L.values()),B=oYn(L,P,b,!1,!0),j=sYn(B,I).map(function(z){return z.id}),H=B.map(function(z){return z.id});if(r.current!==H.length){r.current=H.length;var U=dj(D,H);U.length&&(T==null||T(U))}if(a.current!==j.length){a.current=j.length;var $=dj(I,j);$.length&&(M==null||M($))}u(P)}},A=function(){n.setState({nodesSelectionActive:r.current>0}),m()},y=function(){n.setState({nodesSelectionActive:!1}),m()};return ke.createElement("div",{className:"react-flow__selectionpane react-flow__container",onMouseDown:g,onMouseMove:v,onMouseUp:A,onMouseLeave:y},c.draw&&ke.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:c.width,height:c.height,transform:"translate(".concat(c.x,"px, ").concat(c.y,"px)")}}))});function b9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function x9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?b9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function IYn(t,e){if(!t.parentNode)return!1;var n=e.get(t.parentNode);return n?n.selected?!0:IYn(n,e):!1}function E9t(t,e,n){var r=t;do{var a;if((a=r)!==null&&a!==void 0&&a.matches(e))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function XUo(t,e,n){return Array.from(t.values()).filter(function(r){return(r.selected||r.id===n)&&(!r.parentNode||!IYn(r,t))}).map(function(r){var a,o,s,l;return{id:r.id,position:r.position||{x:0,y:0},positionAbsolute:r.positionAbsolute||{x:0,y:0},distance:{x:e.x-((a=(o=r.positionAbsolute)===null||o===void 0?void 0:o.x)!==null&&a!==void 0?a:0),y:e.y-((s=(l=r.positionAbsolute)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)},delta:{x:0,y:0},extent:r.extent,parentNode:r.parentNode,width:r.width,height:r.height}})}function ezo(t,e,n,r,a,o){var s=Us(r,2),l=s[0],c=s[1],u=t.extent||o,d={x:e.x-t.distance.x,y:e.y-t.distance.y};if(n&&(d.x=l*Math.round(d.x/l),d.y=c*Math.round(d.y/c)),t.extent==="parent")if(t.parentNode&&t.width&&t.height){var h=a.get(t.parentNode);u=h!=null&&h.positionAbsolute&&h!==null&&h!==void 0&&h.width&&h!==null&&h!==void 0&&h.height?[[h.positionAbsolute.x,h.positionAbsolute.y],[h.positionAbsolute.x+h.width-t.width,h.positionAbsolute.y+h.height-t.height]]:u}else u=o;else if(t.extent&&t.parentNode){var f,p,m,g,v=a.get(t.parentNode),A=(f=v==null||(p=v.positionAbsolute)===null||p===void 0?void 0:p.x)!==null&&f!==void 0?f:0,y=(m=v==null||(g=v.positionAbsolute)===null||g===void 0?void 0:g.y)!==null&&m!==void 0?m:0;u=[[t.extent[0][0]+A,t.extent[0][1]+y],[t.extent[1][0]+A,t.extent[1][1]+y]]}var S={x:0,y:0};if(t.parentNode){var x,w,_,C,R=a.get(t.parentNode);S={x:(x=R==null||(w=R.positionAbsolute)===null||w===void 0?void 0:w.x)!==null&&x!==void 0?x:0,y:(_=R==null||(C=R.positionAbsolute)===null||C===void 0?void 0:C.y)!==null&&_!==void 0?_:0}}return t.positionAbsolute=u?Qqn(d,u):d,t.position={x:t.positionAbsolute.x-S.x,y:t.positionAbsolute.y-S.y},t}function S$e(t){var e=t.nodeId,n=t.dragItems,r=t.nodeInternals,a=n.map(function(o){var s=r.get(o.id);return x9t(x9t({},s),{},{position:o.position,positionAbsolute:o.positionAbsolute})});return[e?a.find(function(o){return o.id===e}):a[0],a]}function w$e(t){return function(e,n,r){return t==null?void 0:t(e,r)}}function PYn(t){var e=t.nodeRef,n=t.disabled,r=n===void 0?!1:n,a=t.noDragClassName,o=t.handleSelector,s=t.nodeId,l=t.isSelectable,c=t.selectNodesOnDrag,u=Y.useState(!1),d=Us(u,2),h=d[0],f=d[1],p=Bv(),m=Y.useRef(),g=Y.useRef({x:null,y:null}),v=Y.useCallback(function(A){var y=A.sourceEvent,S=p.getState(),x=S.transform,w=S.snapGrid,_=S.snapToGrid,C=y.touches?y.touches[0].clientX:y.clientX,R=y.touches?y.touches[0].clientY:y.clientY,k=aYn({x:C,y:R},x,_,w);return k},[]);return Y.useEffect(function(){if(e!=null&&e.current){var A=qS(e.current);if(r)A.on(".drag",null);else{var y=GFo().on("start",function(S){var x=p.getState(),w=x.nodeInternals,_=x.multiSelectionActive,C=x.unselectNodesAndEdges,R=x.onNodeDragStart,k=x.onSelectionDragStart,P=s?R:w$e(k);if(!c&&!_&&s){var N;(N=w.get(s))!==null&&N!==void 0&&N.selected||C()}s&&l&&c&&nYn({id:s,store:p});var L=v(S);if(g.current=L,m.current=XUo(w,L,s),P&&m.current){var I=S$e({nodeId:s,dragItems:m.current,nodeInternals:w}),b=Us(I,2),T=b[0],M=b[1];P(S.sourceEvent,T,M)}}).on("drag",function(S){var x=p.getState(),w=x.updateNodePositions,_=x.snapToGrid,C=x.snapGrid,R=x.nodeInternals,k=x.nodeExtent,P=x.onNodeDrag,N=x.onSelectionDrag,L=v(S);if((g.current.x!==L.x||g.current.y!==L.y)&&m.current){g.current=L,m.current=m.current.map(function(B){return ezo(B,L,_,C,R,k)});var I=s?P:w$e(N);if(w(m.current,!0,!0),f(!0),I){var b=S$e({nodeId:s,dragItems:m.current,nodeInternals:R}),T=Us(b,2),M=T[0],D=T[1];I(S.sourceEvent,M,D)}}S.on("end",function(B){if(f(!1),m.current){var j=p.getState(),H=j.updateNodePositions,U=j.nodeInternals,$=j.onNodeDragStop,z=j.onSelectionDragStop,Z=s?$:w$e(z);if(H(m.current,!1,!1),Z){var K=S$e({nodeId:s,dragItems:m.current,nodeInternals:U}),Q=Us(K,2),ee=Q[0],X=Q[1];Z(B.sourceEvent,ee,X)}}})}).filter(function(S){var x=S.target,w=!S.button&&(!a||!E9t(x,".".concat(a),e))&&(!o||E9t(x,o,e));return w});return A.call(y),function(){A.on(".drag",null)}}}},[e,r,a,o,l,p,s,c,v]),h}function S9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function tzo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var nzo=function(e){return tzo({transformString:"translate(".concat(e.transform[0],"px,").concat(e.transform[1],"px) scale(").concat(e.transform[2],")"),userSelectionActive:e.userSelectionActive},Kse(Array.from(e.nodeInternals.values()).filter(function(n){return n.selected})))},rzo=function(e){var n=Array.from(e.nodeInternals.values()).filter(function(r){return r.selected});return Kse(n)};function izo(t){var e=t.onSelectionContextMenu,n=t.noPanClassName,r=Bv(),a=pu(nzo,c1),o=a.transformString,s=a.userSelectionActive,l=pu(rzo,c1),c=l.width,u=l.height,d=l.x,h=l.y,f=Y.useRef(null);if(PYn({nodeRef:f}),s||!c||!u)return null;var p=e?function(m){var g=Array.from(r.getState().nodeInternals.values()).filter(function(v){return v.selected});e(m,g)}:void 0;return ke.createElement("div",{className:Dv(["react-flow__nodesselection","react-flow__container",n]),style:{transform:o}},ke.createElement("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:p,style:{width:c,height:u,top:h,left:d}}))}var azo=Y.memo(izo),ozo=function(e){return e.nodesSelectionActive},OYn=function(e){var n=e.children,r=e.onPaneClick,a=e.onPaneContextMenu,o=e.onPaneScroll,s=e.deleteKeyCode,l=e.onMove,c=e.onMoveStart,u=e.onMoveEnd,d=e.selectionKeyCode,h=e.multiSelectionKeyCode,f=e.zoomActivationKeyCode,p=e.elementsSelectable,m=e.zoomOnScroll,g=e.zoomOnPinch,v=e.panOnScroll,A=e.panOnScrollSpeed,y=e.panOnScrollMode,S=e.zoomOnDoubleClick,x=e.panOnDrag,w=e.translateExtent,_=e.minZoom,C=e.maxZoom,R=e.defaultZoom,k=e.defaultPosition,P=e.preventScrolling,N=e.onSelectionContextMenu,L=e.noWheelClassName,I=e.noPanClassName,b=Bv(),T=pu(ozo),M=nbe(d);KUo({deleteKeyCode:s,multiSelectionKeyCode:h});var D=function(U){r==null||r(U),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},B=a?function(H){return a(H)}:void 0,j=o?function(H){return o(H)}:void 0;return ke.createElement(YUo,{onMove:l,onMoveStart:c,onMoveEnd:u,selectionKeyPressed:M,elementsSelectable:p,zoomOnScroll:m,zoomOnPinch:g,panOnScroll:v,panOnScrollSpeed:A,panOnScrollMode:y,zoomOnDoubleClick:S,panOnDrag:x,translateExtent:w,minZoom:_,maxZoom:C,defaultZoom:R,defaultPosition:k,zoomActivationKeyCode:f,preventScrolling:P,noWheelClassName:L,noPanClassName:I},n,ke.createElement(ZUo,{selectionKeyPressed:M}),T&&ke.createElement(azo,{onSelectionContextMenu:N,noPanClassName:I}),ke.createElement("div",{className:"react-flow__pane react-flow__container",onClick:D,onContextMenu:B,onWheel:j}))};OYn.displayName="FlowRenderer";var szo=Y.memo(OYn);function lzo(t){var e=pu(Y.useCallback(function(n){return t?oYn(n.nodeInternals,{x:0,y:0,width:n.width,height:n.height},n.transform,!0):Array.from(n.nodeInternals.values())},[t]));return e}var czo=function(e){return{nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions}},LYn=function(e){var n=pu(czo,c1),r=n.nodesDraggable,a=n.nodesConnectable,o=n.elementsSelectable,s=n.updateNodeDimensions,l=lzo(e.onlyRenderVisibleElements),c=Y.useRef(),u=Y.useMemo(function(){if(typeof ResizeObserver>"u")return null;var d=new ResizeObserver(function(h){var f=h.map(function(p){return{id:p.target.getAttribute("data-id"),nodeElement:p.target,forceUpdate:!0}});s(f)});return c.current=d,d},[]);return Y.useEffect(function(){return function(){var d;c==null||(d=c.current)===null||d===void 0||d.disconnect()}},[]),ke.createElement("div",{className:"react-flow__nodes react-flow__container"},l.map(function(d){var h,f,p,m,g,v,A,y=d.type||"default";e.nodeTypes[y]||(y="default");var S=e.nodeTypes[y]||e.nodeTypes.default,x=!!(d.draggable||r&&typeof d.draggable>"u"),w=!!(d.selectable||o&&typeof d.selectable>"u"),_=!!(d.connectable||a&&typeof d.connectable>"u");return ke.createElement(S,{key:d.id,id:d.id,className:d.className,style:d.style,type:y,data:d.data,sourcePosition:d.sourcePosition||Ni.Bottom,targetPosition:d.targetPosition||Ni.Top,hidden:d.hidden,xPos:(h=(f=d.positionAbsolute)===null||f===void 0?void 0:f.x)!==null&&h!==void 0?h:0,yPos:(p=(m=d.positionAbsolute)===null||m===void 0?void 0:m.y)!==null&&p!==void 0?p:0,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!d.selected,isDraggable:x,isSelectable:w,isConnectable:_,resizeObserver:u,dragHandle:d.dragHandle,zIndex:(g=(v=d[Xm])===null||v===void 0?void 0:v.z)!==null&&g!==void 0?g:0,isParent:!!((A=d[Xm])!==null&&A!==void 0&&A.isParent),noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!d.width&&!!d.height})}))};LYn.displayName="NodeRenderer";var uzo=Y.memo(LYn),w7;function w9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function _9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?w9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var dzo=(w7={},Rl(w7,Ni.Left,Ni.Right),Rl(w7,Ni.Right,Ni.Left),Rl(w7,Ni.Top,Ni.Bottom),Rl(w7,Ni.Bottom,Ni.Top),w7),hzo=function(t){var e,n,r,a,o,s=t.connectionNodeId,l=t.connectionHandleType,c=t.connectionLineStyle,u=t.connectionLineType,d=u===void 0?IR.Bezier:u,h=t.isConnectable,f=t.CustomConnectionLineComponent,p=pu(Y.useCallback(function(j){return{fromNode:j.nodeInternals.get(s),handleId:j.connectionHandleId,toX:(j.connectionPosition.x-j.transform[0])/j.transform[2],toY:(j.connectionPosition.y-j.transform[1])/j.transform[2]}},[s]),c1),m=p.fromNode,g=p.handleId,v=p.toX,A=p.toY,y=m==null||(e=m[Xm])===null||e===void 0?void 0:e.handleBounds;if(!m||!h||!(y!=null&&y[l]))return null;var S=y[l],x=g?S.find(function(j){return j.id===g}):S[0],w=x?x.x+x.width/2:((n=m==null?void 0:m.width)!==null&&n!==void 0?n:0)/2,_=x?x.y+x.height/2:(r=m==null?void 0:m.height)!==null&&r!==void 0?r:0,C=((m==null||(a=m.positionAbsolute)===null||a===void 0?void 0:a.x)||0)+w,R=((m==null||(o=m.positionAbsolute)===null||o===void 0?void 0:o.y)||0)+_,k=x==null?void 0:x.position;if(!k)return null;var P=dzo[k],N,L,I,b,T,M;switch(l){case"source":N=C,L=R,I=k,b=v,T=A,M=P;break;case"target":N=v,L=A,I=P,b=C,T=R,M=k;break}if(f)return ke.createElement("g",{className:"react-flow__connection"},ke.createElement(f,{connectionLineType:d,connectionLineStyle:c,fromNode:m,fromHandle:x,fromX:C,fromY:R,toX:v,toY:A,fromPosition:k,toPosition:P,sourcePosition:I,targetPosition:M,sourceNode:m,sourceHandle:x,targetX:b,targetY:T,sourceX:N,sourceY:L}));var D="",B={sourceX:N,sourceY:L,sourcePosition:I,targetX:b,targetY:T,targetPosition:M};return d===IR.Bezier?D=put(B):d===IR.Step?D=Xye(_9t(_9t({},B),{},{borderRadius:0})):d===IR.SmoothStep?D=Xye(B):d===IR.SimpleBezier?D=bYn(B):D="M".concat(N,",").concat(L," ").concat(b,",").concat(T),ke.createElement("g",{className:"react-flow__connection"},ke.createElement("path",{d:D,className:"react-flow__connection-path",style:c}))};function lqe(t){"@babel/helpers - typeof";return lqe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lqe(t)}var kfe,fzo=function(e){var n=e.color,r=n===void 0?"none":n,a=e.strokeWidth,o=a===void 0?1:a;return ke.createElement("polyline",{stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:o,fill:"none",points:"-5,-4 0,0 -5,4"})},pzo=function(e){var n=e.color,r=n===void 0?"none":n,a=e.strokeWidth,o=a===void 0?1:a;return ke.createElement("polyline",{stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:o,fill:r,points:"-5,-4 0,0 -5,4 -5,-4"})},T9t=(kfe={},Rl(kfe,qre.Arrow,fzo),Rl(kfe,qre.ArrowClosed,pzo),kfe);function mzo(t){var e=Y.useMemo(function(){var n=T9t.hasOwnProperty(t);return n?T9t[t]:function(){return null}},[t]);return e}function C9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function gzo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?C9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var vzo=function(e){var n=e.id,r=e.type,a=e.color,o=e.width,s=o===void 0?12.5:o,l=e.height,c=l===void 0?12.5:l,u=e.markerUnits,d=u===void 0?"strokeWidth":u,h=e.strokeWidth,f=e.orient,p=f===void 0?"auto":f,m=mzo(r);return ke.createElement("marker",{className:"react-flow__arrowhead",id:n,markerWidth:"".concat(s),markerHeight:"".concat(c),viewBox:"-10 -10 20 20",markerUnits:d,orient:p,refX:"0",refY:"0"},ke.createElement(m,{color:a,strokeWidth:h}))},Azo=function(e){var n=e.defaultColor,r=e.rfId;return function(a){var o=[];return a.edges.reduce(function(s,l){return[l.markerStart,l.markerEnd].forEach(function(c){if(c&&lqe(c)==="object"){var u=rqe(c,r);o.includes(u)||(s.push(gzo({id:u,color:c.color||n},c)),o.push(u))}}),s},[]).sort(function(s,l){return s.id.localeCompare(l.id)})}},BYn=function(e){var n=e.defaultColor,r=e.rfId,a=pu(Y.useCallback(Azo({defaultColor:n,rfId:r}),[n,r]),function(o,s){return!(o.length!==s.length||o.some(function(l,c){return l.id!==s[c].id}))});return ke.createElement("defs",null,a.map(function(o){return ke.createElement(vzo,{id:o.id,key:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient})}))};BYn.displayName="MarkerDefinitions";var yzo=Y.memo(BYn),bzo=[{level:0,isMaxLevel:!0,edges:[]}];function xzo(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=-1,a=t.reduce(function(s,l){var c=Zqn(l.zIndex),u=c?l.zIndex:0;if(n){var d,h,f,p;u=c?l.zIndex:Math.max(((d=e.get(l.source))===null||d===void 0||(h=d[Xm])===null||h===void 0?void 0:h.z)||0,((f=e.get(l.target))===null||f===void 0||(p=f[Xm])===null||p===void 0?void 0:p.z)||0)}return s[u]?s[u].push(l):s[u]=[l],r=u>r?u:r,s},{}),o=Object.entries(a).map(function(s){var l=Us(s,2),c=l[0],u=l[1],d=+c;return{edges:u,level:d,isMaxLevel:d===r}});return o.length===0?bzo:o}function Ezo(t,e,n){var r=pu(Y.useCallback(function(a){return t?a.edges.filter(function(o){var s=e.get(o.source),l=e.get(o.target);return(s==null?void 0:s.width)&&(s==null?void 0:s.height)&&(l==null?void 0:l.width)&&(l==null?void 0:l.height)&&zUo({sourcePos:s.positionAbsolute||{x:0,y:0},targetPos:l.positionAbsolute||{x:0,y:0},sourceWidth:s.width,sourceHeight:s.height,targetWidth:l.width,targetHeight:l.height,width:a.width,height:a.height,transform:a.transform})}):a.edges},[t,e]));return xzo(r,e,n)}var Szo=function(e){return{connectionNodeId:e.connectionNodeId,connectionHandleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals}},DYn=function(e){var n=pu(Szo,c1),r=n.connectionNodeId,a=n.connectionHandleType,o=n.nodesConnectable,s=n.elementsSelectable,l=n.width,c=n.height,u=n.connectionMode,d=n.nodeInternals,h=Ezo(e.onlyRenderVisibleElements,d,e.elevateEdgesOnSelect);if(!l)return null;var f=e.connectionLineType,p=e.defaultMarkerColor,m=e.connectionLineStyle,g=e.connectionLineComponent,v=e.connectionLineContainerStyle,A=r&&a;return ke.createElement(ke.Fragment,null,h.map(function(y){var S=y.level,x=y.edges,w=y.isMaxLevel;return ke.createElement("svg",{key:S,style:{zIndex:S},width:l,height:c,className:"react-flow__edges react-flow__container"},w&&ke.createElement(yzo,{defaultColor:p,rfId:e.rfId}),ke.createElement("g",null,x.map(function(_){var C=h9t(d,_.source),R=Us(C,3),k=R[0],P=R[1],N=R[2],L=h9t(d,_.target),I=Us(L,3),b=I[0],T=I[1],M=I[2];if(!N||!M)return null;var D=_.type||"default";e.edgeTypes[D]||(console.warn('[React Flow]: Edge type "'.concat(D,'" not found. Using fallback type "default". Help: https://reactflow.dev/error#300')),D="default");var B=e.edgeTypes[D]||e.edgeTypes.default,j=u===DP.Strict?T.target:T.target||T.source,H=d9t(P.source,_.sourceHandle||null),U=d9t(j,_.targetHandle||null),$=(H==null?void 0:H.position)||Ni.Bottom,z=(U==null?void 0:U.position)||Ni.Top;if(!H||!U)return null;var Z=UUo(k,H,$,b,U,z),K=Z.sourceX,Q=Z.sourceY,ee=Z.targetX,X=Z.targetY;return ke.createElement(B,{key:_.id,id:_.id,className:Dv([_.className,e.noPanClassName]),type:D,data:_.data,selected:!!_.selected,animated:!!_.animated,hidden:!!_.hidden,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,style:_.style,source:_.source,target:_.target,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerEnd:_.markerEnd,markerStart:_.markerStart,sourceX:K,sourceY:Q,targetX:ee,targetY:X,sourcePosition:$,targetPosition:z,elementsSelectable:s,onEdgeUpdate:e.onEdgeUpdate,onContextMenu:e.onEdgeContextMenu,onMouseEnter:e.onEdgeMouseEnter,onMouseMove:e.onEdgeMouseMove,onMouseLeave:e.onEdgeMouseLeave,onClick:e.onEdgeClick,edgeUpdaterRadius:e.edgeUpdaterRadius,onEdgeDoubleClick:e.onEdgeDoubleClick,onEdgeUpdateStart:e.onEdgeUpdateStart,onEdgeUpdateEnd:e.onEdgeUpdateEnd,rfId:e.rfId})})))}),A&&ke.createElement("svg",{style:v,width:l,height:c,className:"react-flow__edges react-flow__connectionline react-flow__container"},ke.createElement(hzo,{connectionNodeId:r,connectionHandleType:a,connectionLineStyle:m,connectionLineType:f,isConnectable:o,CustomConnectionLineComponent:g})))};DYn.displayName="EdgeRenderer";var wzo=Y.memo(DYn),_zo=function(e){return"translate(".concat(e.transform[0],"px,").concat(e.transform[1],"px) scale(").concat(e.transform[2],")")};function Tzo(t){var e=t.children,n=pu(_zo);return ke.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:n}},e)}function Czo(t){var e=Wse(),n=Y.useRef(!1);Y.useEffect(function(){!n.current&&e.viewportInitialized&&t&&(setTimeout(function(){return t(e)},1),n.current=!0)},[t,e.viewportInitialized])}var $Yn=function(e){var n=e.nodeTypes,r=e.edgeTypes,a=e.onMove,o=e.onMoveStart,s=e.onMoveEnd,l=e.onInit,c=e.onNodeClick,u=e.onEdgeClick,d=e.onNodeDoubleClick,h=e.onEdgeDoubleClick,f=e.onNodeMouseEnter,p=e.onNodeMouseMove,m=e.onNodeMouseLeave,g=e.onNodeContextMenu,v=e.onSelectionContextMenu,A=e.connectionLineType,y=e.connectionLineStyle,S=e.connectionLineComponent,x=e.connectionLineContainerStyle,w=e.selectionKeyCode,_=e.multiSelectionKeyCode,C=e.zoomActivationKeyCode,R=e.deleteKeyCode,k=e.onlyRenderVisibleElements,P=e.elementsSelectable,N=e.selectNodesOnDrag,L=e.translateExtent,I=e.minZoom,b=e.maxZoom,T=e.defaultZoom,M=e.defaultPosition,D=e.preventScrolling,B=e.defaultMarkerColor,j=e.zoomOnScroll,H=e.zoomOnPinch,U=e.panOnScroll,$=e.panOnScrollSpeed,z=e.panOnScrollMode,Z=e.zoomOnDoubleClick,K=e.panOnDrag,Q=e.onPaneClick,ee=e.onPaneScroll,X=e.onPaneContextMenu,te=e.onEdgeUpdate,J=e.onEdgeContextMenu,ne=e.onEdgeMouseEnter,ie=e.onEdgeMouseMove,he=e.onEdgeMouseLeave,de=e.edgeUpdaterRadius,ce=e.onEdgeUpdateStart,Ee=e.onEdgeUpdateEnd,Me=e.noDragClassName,Be=e.noWheelClassName,ze=e.noPanClassName,je=e.elevateEdgesOnSelect,ye=e.id;return Czo(l),ke.createElement(szo,{onPaneClick:Q,onPaneContextMenu:X,onPaneScroll:ee,deleteKeyCode:R,selectionKeyCode:w,multiSelectionKeyCode:_,zoomActivationKeyCode:C,elementsSelectable:P,onMove:a,onMoveStart:o,onMoveEnd:s,zoomOnScroll:j,zoomOnPinch:H,zoomOnDoubleClick:Z,panOnScroll:U,panOnScrollSpeed:$,panOnScrollMode:z,panOnDrag:K,translateExtent:L,minZoom:I,maxZoom:b,defaultZoom:T,defaultPosition:M,onSelectionContextMenu:v,preventScrolling:D,noDragClassName:Me,noWheelClassName:Be,noPanClassName:ze},ke.createElement(Tzo,null,ke.createElement(wzo,{edgeTypes:r,onEdgeClick:u,onEdgeDoubleClick:h,connectionLineType:A,connectionLineStyle:y,connectionLineComponent:S,connectionLineContainerStyle:x,onEdgeUpdate:te,onlyRenderVisibleElements:k,onEdgeContextMenu:J,onEdgeMouseEnter:ne,onEdgeMouseMove:ie,onEdgeMouseLeave:he,onEdgeUpdateStart:ce,onEdgeUpdateEnd:Ee,edgeUpdaterRadius:de,defaultMarkerColor:B,noPanClassName:ze,elevateEdgesOnSelect:!!je,rfId:ye}),ke.createElement(uzo,{nodeTypes:n,onNodeClick:c,onNodeDoubleClick:d,onNodeMouseEnter:f,onNodeMouseMove:p,onNodeMouseLeave:m,onNodeContextMenu:g,selectNodesOnDrag:N,onlyRenderVisibleElements:k,noPanClassName:ze,noDragClassName:Me})))};$Yn.displayName="GraphView";var kzo=Y.memo($Yn),FYn=function(){return null};FYn.displayName="GroupNode";function k9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function R9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?k9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var EY=function(t){var e=function(r){var a=r.id,o=r.type,s=r.data,l=r.xPos,c=r.yPos,u=r.selected,d=r.onClick,h=r.onMouseEnter,f=r.onMouseMove,p=r.onMouseLeave,m=r.onContextMenu,g=r.onDoubleClick,v=r.style,A=r.className,y=r.isDraggable,S=r.isSelectable,x=r.isConnectable,w=r.selectNodesOnDrag,_=r.sourcePosition,C=r.targetPosition,R=r.hidden,k=r.resizeObserver,P=r.dragHandle,N=r.zIndex,L=r.isParent,I=r.noPanClassName,b=r.noDragClassName,T=r.initialized,M=Bv(),D=Y.useRef(null),B=Y.useRef(_),j=Y.useRef(C),H=Y.useRef(o),U=S||y||d||h||f||p,$=bY(a,M.getState,h),z=bY(a,M.getState,f),Z=bY(a,M.getState,p),K=bY(a,M.getState,m),Q=bY(a,M.getState,g),ee=function(J){if(S&&(!w||!y)&&nYn({id:a,store:M}),d){var ne=M.getState().nodeInternals.get(a);d(J,R9t({},ne))}};Y.useEffect(function(){if(D.current&&!R){var te=D.current;return k==null||k.observe(te),function(){return k==null?void 0:k.unobserve(te)}}},[R]),Y.useEffect(function(){var te=H.current!==o,J=B.current!==_,ne=j.current!==C;D.current&&(te||J||ne)&&(te&&(H.current=o),J&&(B.current=_),ne&&(j.current=C),M.getState().updateNodeDimensions([{id:a,nodeElement:D.current,forceUpdate:!0}]))},[a,o,_,C]);var X=PYn({nodeRef:D,disabled:R||!y,noDragClassName:b,handleSelector:P,nodeId:a,isSelectable:S,selectNodesOnDrag:w});return R?null:ke.createElement("div",{className:Dv(["react-flow__node","react-flow__node-".concat(o),I,A,{selected:u,selectable:S,parent:L}]),ref:D,style:R9t({zIndex:N,transform:"translate(".concat(l,"px,").concat(c,"px)"),pointerEvents:U?"all":"none",visibility:T?"visible":"hidden"},v),onMouseEnter:$,onMouseMove:z,onMouseLeave:Z,onContextMenu:K,onClick:ee,onDoubleClick:Q,"data-testid":"rf__node-".concat(a),"data-id":a},ke.createElement(_Uo,{value:a},ke.createElement(t,{id:a,data:s,type:o,xPos:l,yPos:c,selected:u,isConnectable:x,sourcePosition:_,targetPosition:C,dragging:X,dragHandle:P,zIndex:N})))};return e.displayName="NodeWrapper",Y.memo(e)};function M9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function N9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Rzo(t){var e={input:EY(t.input||RYn),default:EY(t.default||sqe),output:EY(t.output||NYn),group:EY(t.group||FYn)},n={},r=Object.keys(t).filter(function(a){return!["input","default","output","group"].includes(a)}).reduce(function(a,o){return a[o]=EY(t[o]||sqe),a},n);return N9t(N9t({},e),r)}function I9t(t,e){Y.useRef(null);var n=Y.useMemo(function(){return e(t)},[t]);return n}function P9t(t){if(!(!t||typeof document>"u")){var e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");e.appendChild(n),n.appendChild(document.createTextNode(t))}}var jYn=function(e){var n=e.children,r=!0;try{Bv()}catch{r=!1}return r?ke.createElement(ke.Fragment,null,n):ke.createElement(dYn,{createStore:hYn},n)};jYn.displayName="ReactFlowWrapper";var Mzo=["nodes","edges","defaultNodes","defaultEdges","className","nodeTypes","edgeTypes","onNodeClick","onEdgeClick","onInit","onMove","onMoveStart","onMoveEnd","onConnect","onConnectStart","onConnectStop","onConnectEnd","onClickConnectStart","onClickConnectStop","onClickConnectEnd","onNodeMouseEnter","onNodeMouseMove","onNodeMouseLeave","onNodeContextMenu","onNodeDoubleClick","onNodeDragStart","onNodeDrag","onNodeDragStop","onNodesDelete","onEdgesDelete","onSelectionChange","onSelectionDragStart","onSelectionDrag","onSelectionDragStop","onSelectionContextMenu","connectionMode","connectionLineType","connectionLineStyle","connectionLineComponent","connectionLineContainerStyle","deleteKeyCode","selectionKeyCode","multiSelectionKeyCode","zoomActivationKeyCode","snapToGrid","snapGrid","onlyRenderVisibleElements","selectNodesOnDrag","nodesDraggable","nodesConnectable","elementsSelectable","minZoom","maxZoom","defaultZoom","defaultPosition","translateExtent","preventScrolling","nodeExtent","defaultMarkerColor","zoomOnScroll","zoomOnPinch","panOnScroll","panOnScrollSpeed","panOnScrollMode","zoomOnDoubleClick","panOnDrag","onPaneClick","onPaneScroll","onPaneContextMenu","children","onEdgeUpdate","onEdgeContextMenu","onEdgeDoubleClick","onEdgeMouseEnter","onEdgeMouseMove","onEdgeMouseLeave","onEdgeUpdateStart","onEdgeUpdateEnd","edgeUpdaterRadius","onNodesChange","onEdgesChange","noDragClassName","noWheelClassName","noPanClassName","fitView","fitViewOptions","connectOnClick","attributionPosition","proOptions","defaultEdgeOptions","elevateEdgesOnSelect"];function O9t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function L9t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O9t(Object(n),!0).forEach(function(r){Rl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O9t(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}P9t(BUo),P9t($Uo);var Nzo={input:RYn,default:sqe,output:NYn},Izo={default:aqe,straight:wYn,step:SYn,smoothstep:fut,simplebezier:xYn},Pzo=[15,15],Ozo=[0,0],gut=Y.forwardRef(function(t,e){var n=t.nodes,r=t.edges,a=t.defaultNodes,o=t.defaultEdges,s=t.className,l=t.nodeTypes,c=l===void 0?Nzo:l,u=t.edgeTypes,d=u===void 0?Izo:u,h=t.onNodeClick,f=t.onEdgeClick,p=t.onInit,m=t.onMove,g=t.onMoveStart,v=t.onMoveEnd,A=t.onConnect,y=t.onConnectStart,S=t.onConnectStop,x=t.onConnectEnd,w=t.onClickConnectStart,_=t.onClickConnectStop,C=t.onClickConnectEnd,R=t.onNodeMouseEnter,k=t.onNodeMouseMove,P=t.onNodeMouseLeave,N=t.onNodeContextMenu,L=t.onNodeDoubleClick,I=t.onNodeDragStart,b=t.onNodeDrag,T=t.onNodeDragStop,M=t.onNodesDelete,D=t.onEdgesDelete,B=t.onSelectionChange,j=t.onSelectionDragStart,H=t.onSelectionDrag,U=t.onSelectionDragStop,$=t.onSelectionContextMenu,z=t.connectionMode,Z=z===void 0?DP.Strict:z,K=t.connectionLineType,Q=K===void 0?IR.Bezier:K,ee=t.connectionLineStyle,X=t.connectionLineComponent,te=t.connectionLineContainerStyle,J=t.deleteKeyCode,ne=J===void 0?"Backspace":J,ie=t.selectionKeyCode,he=ie===void 0?"Shift":ie,de=t.multiSelectionKeyCode,ce=de===void 0?"Meta":de,Ee=t.zoomActivationKeyCode,Me=Ee===void 0?"Meta":Ee,Be=t.snapToGrid,ze=Be===void 0?!1:Be,je=t.snapGrid,ye=je===void 0?Pzo:je,me=t.onlyRenderVisibleElements,le=me===void 0?!1:me,pe=t.selectNodesOnDrag,Ne=pe===void 0?!0:pe,_e=t.nodesDraggable,ue=t.nodesConnectable,se=t.elementsSelectable,oe=t.minZoom,ge=oe===void 0?.5:oe,De=t.maxZoom,Fe=De===void 0?2:De,Se=t.defaultZoom,Xe=Se===void 0?1:Se,Oe=t.defaultPosition,Ye=Oe===void 0?Ozo:Oe,mt=t.translateExtent,ut=mt===void 0?iqe:mt,lt=t.preventScrolling,pn=lt===void 0?!0:lt,sn=t.nodeExtent,un=t.defaultMarkerColor,ur=un===void 0?"#b1b1b7":un,dt=t.zoomOnScroll,xt=dt===void 0?!0:dt,Cn=t.zoomOnPinch,Kt=Cn===void 0?!0:Cn,rn=t.panOnScroll,On=rn===void 0?!1:rn,an=t.panOnScrollSpeed,on=an===void 0?.5:an,dr=t.panOnScrollMode,$e=dr===void 0?CH.Free:dr,qe=t.zoomOnDoubleClick,yt=qe===void 0?!0:qe,Ze=t.panOnDrag,ot=Ze===void 0?!0:Ze,yn=t.onPaneClick,vt=t.onPaneScroll,Gt=t.onPaneContextMenu,ft=t.children,rt=t.onEdgeUpdate,Pt=t.onEdgeContextMenu,Yt=t.onEdgeDoubleClick,Un=t.onEdgeMouseEnter,jn=t.onEdgeMouseMove,br=t.onEdgeMouseLeave,si=t.onEdgeUpdateStart,Qi=t.onEdgeUpdateEnd,st=t.edgeUpdaterRadius,wt=st===void 0?10:st,Bt=t.onNodesChange,dn=t.onEdgesChange,tn=t.noDragClassName,vn=tn===void 0?"nodrag":tn,kn=t.noWheelClassName,Mn=kn===void 0?"nowheel":kn,Nr=t.noPanClassName,na=Nr===void 0?"nopan":Nr,Ar=t.fitView,qi=Ar===void 0?!1:Ar,Ge=t.fitViewOptions,ht=t.connectOnClick,Je=ht===void 0?!0:ht,Rt=t.attributionPosition,Dt=t.proOptions,It=t.defaultEdgeOptions,ln=t.elevateEdgesOnSelect,Hn=ln===void 0?!1:ln,Zn=kCe(t,Mzo),Jn=I9t(c,Rzo),Xn=I9t(d,HUo);return ke.createElement("div",L9t(L9t({},Zn),{},{ref:e,className:Dv(["react-flow",s])}),ke.createElement(jYn,null,ke.createElement(kzo,{onInit:p,onMove:m,onMoveStart:g,onMoveEnd:v,onNodeClick:h,onEdgeClick:f,onNodeMouseEnter:R,onNodeMouseMove:k,onNodeMouseLeave:P,onNodeContextMenu:N,onNodeDoubleClick:L,nodeTypes:Jn,edgeTypes:Xn,connectionLineType:Q,connectionLineStyle:ee,connectionLineComponent:X,connectionLineContainerStyle:te,selectionKeyCode:he,deleteKeyCode:ne,multiSelectionKeyCode:ce,zoomActivationKeyCode:Me,onlyRenderVisibleElements:le,selectNodesOnDrag:Ne,translateExtent:ut,minZoom:ge,maxZoom:Fe,defaultZoom:Xe,defaultPosition:Ye,preventScrolling:pn,zoomOnScroll:xt,zoomOnPinch:Kt,zoomOnDoubleClick:yt,panOnScroll:On,panOnScrollSpeed:on,panOnScrollMode:$e,panOnDrag:ot,onPaneClick:yn,onPaneScroll:vt,onPaneContextMenu:Gt,onSelectionContextMenu:$,onEdgeUpdate:rt,onEdgeContextMenu:Pt,onEdgeDoubleClick:Yt,onEdgeMouseEnter:Un,onEdgeMouseMove:jn,onEdgeMouseLeave:br,onEdgeUpdateStart:si,onEdgeUpdateEnd:Qi,edgeUpdaterRadius:wt,defaultMarkerColor:ur,noDragClassName:vn,noWheelClassName:Mn,noPanClassName:na,elevateEdgesOnSelect:Hn,id:Zn==null?void 0:Zn.id}),ke.createElement(OUo,{nodes:n,edges:r,defaultNodes:a,defaultEdges:o,onConnect:A,onConnectStart:y,onConnectStop:S,onConnectEnd:x,onClickConnectStart:w,onClickConnectStop:_,onClickConnectEnd:C,nodesDraggable:_e,nodesConnectable:ue,elementsSelectable:se,minZoom:ge,maxZoom:Fe,nodeExtent:sn,onNodesChange:Bt,onEdgesChange:dn,snapToGrid:ze,snapGrid:ye,connectionMode:Z,translateExtent:ut,connectOnClick:Je,defaultEdgeOptions:It,fitView:qi,fitViewOptions:Ge,onNodesDelete:M,onEdgesDelete:D,onNodeDragStart:I,onNodeDrag:b,onNodeDragStop:T,onSelectionDrag:H,onSelectionDragStart:j,onSelectionDragStop:U}),B&&ke.createElement(IUo,{onSelectionChange:B}),ft,ke.createElement(vUo,{proOptions:Dt,position:Rt})))});gut.displayName="ReactFlow";var vut=function(e){var n=e.children;return ke.createElement(dYn,{createStore:hYn},n)};vut.displayName="ReactFlowProvider";function HYn(t){return function(e){var n=Y.useState(e),r=Us(n,2),a=r[0],o=r[1],s=Y.useCallback(function(l){return o(function(c){return t(l,c)})},[]);return[a,o,s]}}var UYn=HYn(eYn),zYn=HYn(FHo),Aut={},Lzo=As;Object.defineProperty(Aut,"__esModule",{value:!0});var oC=Aut.default=void 0,Bzo=Lzo(Ps()),Dzo=E;oC=Aut.default=(0,Bzo.default)((0,Dzo.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");const $zo="/assets/AzureIcon-2676e858.svg",B9t="/assets/left-top-wave-9170a13c.png",D9t="/assets/right-bottom-wave-4ca0d469.png",Fzo="/assets/waveImg-8001ea53.png",jzo="/assets/cardTopCurve-d1304bc3.png",Hzo="/assets/cardBottomCurve-b3827f16.png",Uzo="/assets/paymentMask-ccd19710.png",zzo=gt(xEr)`
  && {
    padding: 0 12px;
    z-index: 99999999 !important;
    box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
    background: ${t=>t.$useImgColors&&t.$landingPageHeader?"transparent":t.theme.custom.HeaderBg};
    &:before {
      content: '';
      position: absolute;
      inset: 0;
      background: ${t=>{var e;return t.$useImgColors&&t.$landingPageHeader&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[2])}};
      backdrop-filter: ${t=>t.$useImgColors&&t.$landingPageHeader&&"blur(12px)"};
    }
  }
  .headerRight {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
    .MuiTabs-scroller {
      height: 50px;
      display: flex;
      align-items: center;
      .MuiButtonBase-root {
        min-width: 130px;
        justify-content: flex-start;
        border: 0px none;
        padding: 0 8px;
        a {
          width: 85%;
          text-align: left;
          font-family: ${t=>t.theme.typography.fontFamily};
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          color: ${t=>t.theme.custom.white.A11};
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
        }
      }
    }
    .MuiIconButton-sizeMedium {
      svg {
        path {
          fill: ${t=>t.theme.custom.white.A11};
        }
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    && {
      padding: 10px;
      .toolbar {
        min-height: unset;
        flex-wrap: wrap;
      }
    }
  }
`,Gzo=gt.div`
  .logo {
    // background: ${t=>t.theme.custom.secondaryBg};
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  // .logo:hover {
  //   background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBgActive}};
  // }
  .homePageLogo img {
    max-width: 220px;
  }
`,Vzo=gt.div`
  && {
    display: flex;
    gap: 12px;
  }
  .topMenuDropdown {
    position: relative;
    &:hover {
      > .btnWithMenu {
        .iconRight {
          svg {
            transform: rotate(0);
          }
        }
      }
      > .dropMenu {
        display: block;
      }
    }
    &.removeHoverEffect {
      > .btnWithMenu {
        .iconRight {
          svg {
            transform: rotate(180deg);
          }
        }
      }
      > .dropMenu {
        display: none;
      }
    }
    .btnWithMenu {
      .iconRight {
        margin-top: -4px;
        svg {
          transform: rotate(180deg);
        }
      }
    }
    .dropMenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
    }
    .MuiList-root {
      background: ${t=>{var e;return t.$useImgColors&&t.$landingPageHeader?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]:t.theme.custom.tableBg}};
      border: 0.5px solid #675b8c;
      backdrop-filter: blur(12px);
      border-radius: 8px;
      padding: 10px;
      box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
      margin-top: 20px;
      .MuiMenuItem-root {
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
        font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
        padding: 8px 14px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        + .MuiMenuItem-root {
          margin-top: 2px;
        }
        .icon {
          margin-right: 10px;
          line-height: 1;
          width: 20px;
          img {
            max-width: 100%;
          }
        }
        .menuText {
          display: flex;
          flex-direction: column;
          span {
            font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
            margin-top: 4px;
          }
        }
        &:hover,
        &.selected {
          background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A4}};
        }
      }
    }
  }
  .MuiButton-containedSecondary {
    background: ${t=>{var e,n;return t.$landingPageHeader?"transparent":(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    box-shadow: ${t=>t.$landingPageHeader?"unset":"4px 4px 24px 0 rgb(7 1 26 / 45%)"};
    height: 36px;
    border: 0;
  }
  .MuiButton-containedSecondary:hover,
  .MuiButton-containedSecondary.active {
    background: ${t=>{var e;return t.$landingPageHeader&&t.$useImgColors?(e=t.$chartBackground)==null?void 0:e[0]:t.theme.custom.primaryBg}};
  }
  ${t=>t.theme.breakpoints.down("lg")} {
    && {
      gap: 8px;
    }
    .MuiButton-containedSecondary {
      padding: 5px 10px;
    }
  }
`,Kzo=gt.div`
  && {
    display: flex;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    margin-left: 12px;
  }
  .userInfo {
    text-align: right;
    margin-right: 12px;
  }
  .userInfo span {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
    font-family: ${t=>t.theme.typography.fontFamily};
  }
  .userInfo .name {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.erdTable)==null?void 0:r.greyLight}};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
    margin-top: 4px;
  }

  .userImage {
    height: 36px;
    width: 36px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(191, 191, 191, 0.75);
    border-radius: 50%;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.nebulaBlue}};
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  ${t=>t.theme.breakpoints.down("lg")} {
    && {
      margin-left: 4px;
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .userInfo {
      display: none;
    }
  }
`,Wzo=gt.div`
  height: 30px;
  width: 16px;
  ${t=>t.theme.breakpoints.down("md")} {
    width: 10px;
  }
`,Qzo=gt.button`
  && {
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  &&:hover .bar {
    background: ${t=>t.theme.custom.white.A1};
  }
  .bar {
    height: 2px;
    width: 18px;
    background: ${t=>t.theme.custom.greyText.A5};
    margin: 4px 0;
    border-radius: 3px;
    transform-origin: left;
    transition: all 0.5s;
  }

  &&.open .barTop {
    transform: rotate(45deg);
  }
  &&.open .barMiddle {
    transform: translateX(1rem);
    opacity: 0;
  }
  &&.open .barBottom {
    transform: rotate(-45deg);
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    && {
      margin-left: auto !important;
    }
  }
`,qzo=gt.div`
  && {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: ${t=>t.theme.custom.HeaderBg};
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 0;
    transition: height 0.5s;
    overflow: auto;
  }
  &&.open {
    height: calc(${t=>t.pageHeight}px - 56px);
    justify-content: space-evenly;
    padding: 20px 0;
  }
  button.MuiButton-sizeSmall.btn {
    color: ${t=>t.theme.custom.greyText.A2} !important;
    font-family: ${t=>t.theme.typography.fontFamily};
    text-align: center;
    height: unset;
    position: relative;
    .bg-text {
      font-weight: 700;
      font-size: 38px;
      line-height: 65px;
      opacity: 0.15;
      background: linear-gradient(-45deg, #9f9abd, #9f9abd, #9f9abd, #9f9abd);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-stroke: 2px transparent;
      color: #20163b;
      top: 0;
    }
    .front-text {
      color: #686480;
      font-weight: 500;
      font-size: 30px;
      line-height: 45px;
      position: absolute;
      bottom: 0;
      z-index: 9;
    }
    &.active,
    &:hover {
      color: ${t=>t.theme.custom.white.A1} !important;
      .front-text {
        color: ${t=>t.theme.custom.white.A1} !important;
      }
      .bg-text {
        opacity: 1;
        background: linear-gradient(-45deg, #03206c, #a84794, #03206c, #a84794);
        background-size: 200% 200%;
        -webkit-background-clip: text;
      }
    }
  }
  button:focus,
  button:focus-visible {
    outline: none;
  }
  button svg {
    margin-right: 6px;
  }
  .resMenuBlock {
    background: transparent;
    box-shadow: unset;
    transition: unset;
    &:before {
      display: none;
    }
    .resMenuBtn {
      padding: 0;
      &.Mui-expanded {
        .MuiAccordionSummary-content {
          .MuiButtonBase-root {
            .iconRight {
              svg {
                transform: rotate(0);
              }
            }
          }
        }
      }
      .MuiAccordionSummary-content {
        margin: 0;
        .MuiButtonBase-root {
          margin: 0 auto;
          align-items: flex-end;
          .iconRight {
            margin: 0 15px 8px;
            svg {
              transform: rotate(180deg);
              margin: 0;
              display: block;
              width: 14px;
              height: 14px;
            }
          }
        }
      }
    }
    .resMenuBody {
      background: ${t=>t.theme.custom.dropdownBg};
      border-radius: 8px;
      border: 0.5px solid #675b8c;
      box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
      backdrop-filter: blur(2px);
      padding: 8px;
      margin-top: 10px;
      .MuiMenuItem-root {
        color: ${t=>t.theme.custom.white.A11};
        border-radius: 8px;
        &:hover,
        &.selected {
          background: ${t=>t.theme.custom.white.A4};
        }
        &:not(:last-child) {
          margin-bottom: 6px;
        }
        .MenuHead {
          font-size: ${t=>t.theme.custom.fontSize.font18};
          line-height: 22px;
        }
        span {
          font-size: ${t=>t.theme.custom.fontSize.font12};
        }
      }
    }
  }
`;gt.div`
  text-align: right;
  .toggleContainer {
    position: relative;
    cursor: pointer;
    display: inline-block;
    min-width: unset !important;
    width: auto;
    pointer-events: none;
  }
  input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    pointer-events: all;
    left: 0;
    z-index: 1;
  }
  input:checked + .switchBtn .disconnected {
    display: none;
  }
  .connected {
    display: none;
  }
  input:checked + .switchBtn .connected {
    display: inline-block;
  }

  .innerToggleSwitch {
    background: linear-gradient(90deg, #d31027 0, #ea384d);
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    transition: all ease-in-out 0.5s;
    padding: 1px;
  }

  input:checked + .switchBtn .innerToggleSwitch {
    background: linear-gradient(90deg, #11998e 0, #38ef7d);
  }

  .connectionBtnText {
    display: flex;
    align-items: center;
    column-gap: 10px;
    line-height: normal;
    flex-wrap: nowrap;
  }

  .connectionBtnText h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: normal;
  }

  .connectionBtnText span {
    font-size: 12px;
    color: #fff;
    opacity: 0.8;
  }

  .disconnected {
    width: 100%;
    padding: 5px 22px 4px 20px;
    border-radius: 40px;
    position: relative;
    z-index: 9;
    background-color: #302c3f;
  }
  .disconnected .connectionBtnText h5 {
    background: linear-gradient(90deg, #d31027 0, #ea384d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .connected {
    width: 100%;
    padding: 5px 22px 4px 20px;
    border-radius: 40px;
    position: relative;
    z-index: 9;
    background-color: #302c3f;
  }
  .connected .connectionBtnText h5 {
    background: linear-gradient(90deg, #11998e 0, #38ef7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
`;const Fu=gt.div`
  
  .creditCardHeaderWrapper {
    display: flex;
    margin-bottom: 30px;
    justify-content: space-between;
  }

  .creditCardHeader {
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    color: white;
    padding: 9px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    position: relative;
    bottom: -14px;
  }

  .regularCreditCardHeader {
    margin-top: 10px;
    font-size: 16px;
    color: white;
    border-bottom: 1px solid #675B8C;
    padding-right: 4px;
    padding-bottom: 5px;
  }

  .skipPaymentButton {
    margin-left: 15px;
    padding: 10px 9px;
    font-size: 12px;
    position: relative;
    bottom: -12px;
    border: .8px solid #675B8C;
  }

  .optionsGuideBox {
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 11px;
    margin-top: -16px;
    margin-Bottom: 15px;
  }

  && {
    padding: 24px;
    background: ${t=>t.theme.custom.secondaryBg};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    @media (max-width: 480px) {
      padding: 15px;
    }
    .paymentCardSkelton:not(first-child) {
      padding-top: 24px;
      margin-top: 24px;
      border-top: 1px solid #675B8C;
    }
    &:not(:first-child) {
      margin-top: 16px;
    }
    p {
      color: ${t=>t.theme.custom.white.A11};
      a {
        color: ${t=>t.theme.custom.blueActive};
        &:hover {
          text-decoration: underline;
          color: ${t=>t.theme.custom.white.A11};
        }
      }
    }
    .tokenImg {
      max-width: 100%;
      border-radius: 4px;  
      margin-bottom: 16px;
    }
    .strippedTable {
      .MuiTableCell-body {
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
      }
    }
    .divider{
      margin:30px 0;
      height:1px;
      background:rgb(103, 91, 140);
    }
    .formContent{
      .helpText {
        margin-bottom: 16px;
      }
    }
    .btnRow {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      margin-bottom: 24px;
    }
    &.apiKeysBlock {
      .cardHead {
        margin-bottom: 0;
      }
      .helpText {
        margin-bottom: 16px;
      }
    }
    &.myAccount {
      .updateBtnRow {
        margin-top: 16px;
        button {
          padding: 5px 12px;
        }
      }
      .otherLoginOption {
        margin-top: 0;
      }
    }
    &.subscriptionBlock {
      .emailField {
        padding-bottom: 24px;
        margin-bottom: 24px;
        border-bottom: 1px solid #675b8c;
        .cardHead{
          margin-bottom: 12px;
        }
      }
    }
    .MuiFormControlLabel-root {
      margin-bottom: 0;
      margin-right: 0;
      margin-top: 16px;
      .MuiCheckbox-root {
        padding-bottom: 0;
        padding-top: 0;
      }
    }
    .needHelpLink {
      margin-top: 16px;
      text-align: center;
      &.temp {
        margin-top: 0;
        position: absolute;
        top: 0;
        right: 0;
      }
      a {
        color: ${t=>t.theme.custom.white.A11};
        display: inline-flex;
        align-items: center;
        .MuiSvgIcon-root {
          max-width: 16px;
          margin-left: 3px;
        }
        &:hover {
          text-decoration: underline;
        }
      }
    }
    .cardHead {
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
      margin-bottom: 24px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      justify-content: space-between;
      .headRight {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        .searchField {
          .MuiOutlinedInput-root  {
            border: 1px solid rgb(103,91,140);
          }
        }
      }
      .switch {
        position: relative;
        display: inline-block;
        width: 52px;
        height: 28px;
        margin-bottom: 0;
        input { 
          opacity: 0;
          width: 0;
          height: 0;
          &:checked + .slider {
            background-color: ${t=>t.theme.custom.primaryBg};
          }
          &:checked + .slider:before {
            transform: translateX(24px);
          }
        }
        .slider {
          position: absolute;
          cursor: pointer;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          -webkit-transition: .4s;
          transition: .4s;
          border: 1px solid #675B8C;
          border-radius: 50px;
          &:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 5px;
            bottom: 5px;
            background-color: #D9D9D9;
            -webkit-transition: .4s;
            transition: .4s;
            border-radius: 50%;
          }
        }
      }
    }
    .cardButton{ 
      margin-top:20px; 
     }
    .userInfo {
      margin-bottom: 32px;
      display: flex;
      align-items: center;
      .userAvatar {
        height: 90px;
        width: 90px;
        border: 1px solid #675B8C;
        border-radius: 50%;
        background: ${t=>t.theme.custom.nebulaBlue};
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
        img {
          height: 100%;
          width: 100%;
          object-fit: cover;
        }
      }
      .userDetail {
        flex: 1;
        margin-left: 12px;
        overflow: hidden;
        h3 {
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
          color: ${t=>t.theme.custom.white.A11};
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          margin-bottom: 0;
        }
        span {
          color: ${t=>t.theme.custom.white.A11};
          display: block;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        .userRole {
          color: ${t=>t.theme.custom.greyText.A2};
        }
        .connectedWalletAddress {
          color: ${t=>t.theme.custom.greyText.A2};
          display: block;
          overflow: hidden;
          text-overflow: ellipsis;
          margin-top: 5px;
        }
      }
    }
    .formHead {
      margin-bottom: 24px;
      span {
        color: ${t=>t.theme.custom.white.A1};
        font-weight: ${t=>t.theme.custom.fontWeight.md};
      }
    }
    .formGroup {
      position: relative;
      &.datePicker {
        position: unset;
      }
      .privateKeyInput {
        margin-bottom: 24px;
        .MuiInputAdornment-root {
          background: transparent;
          .MuiIconButton-root {
            border: 0;
            height: 24px;
            width: 24px;
          }
        }
      }
      &.accessTokenField {
        .MuiFormControl-root {
          align-items: center;
          flex-direction: row;
          gap: 16px;
          .formLabel {
            margin: 0;
            white-space: nowrap;
          }
          .MuiInputAdornment-root {
            background: transparent;
            .MuiIconButton-root {
              border: 0;
              height: 24px;
              width: 24px;
            }
          }
        }
      }
      .resetPassword {
        position: absolute;
        top: 2px;
        right: 0;
        cursor: pointer;
        z-index: 1;
        &:hover {
          color: ${t=>t.theme.custom.white.A1};
        }
      }
      .MuiFormControl-root {
        .MuiOutlinedInput-root {
          .MuiOutlinedInput-input {
            padding: 14px 16px;
          }
        }
      }
      label {
        text-transform: unset;
      }
      .editFieldButton {
        margin-left: 12px;
        margin-top: 26px;
        height: 43px;
        width: 43px;
      }
      + .formGroup {
        margin-top: 16px;
      }
    }
    .formGroupButton {
      text-align: center;
      margin-top: 32px;
      display: flex;
      justify-content: space-between;
      + .formGroupButton {
        justify-content: center;
        padding-top: 24px;
        border-top: 1px solid ${t=>t.theme.custom.white.A5};
      }
      button {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        + button {
          margin-left: 20px;
        }
      }
    }
    .updateBtnRow {
      margin-top: 32px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      .infoLinks {
        margin-left: auto;
        align-self: center;
        display: flex;
        align-items: center;
        .infoLink {
          font-size: ${t=>t.theme.custom.fontSize.font14};
          color: ${t=>t.theme.custom.greyText.A2};
          position: relative;
          display: inline-flex;
          align-items: center;
          svg {
            margin-right: 5px;
            max-width: 18px;
          }
          &:not(:first-child) {
            margin-left: 15px;
            padding-left: 15px;
            &:before {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              width: 1.2px;
              height: 100%;
              background: ${t=>t.theme.custom.greyText.A2};
            }
          }
          &:hover {
            text-decoration: underline;
            color: ${t=>t.theme.custom.white.A11};
          }
        }
      }
      button {
        + button {
          margin-left: 8px;
          @media (max-width: 600px) {
            margin-left: 0;
          }
        }
      }
    }
    &.subscriptionPanel {
      height: 100%;
      &.beforeLoginSubcription {
        max-height: calc(100vh - 172px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        .cardHead {
          margin-bottom: 16px;
        }
        .panelContent {
          flex: 1;
          overflow: auto;
          .cardListing {
            .subcriptionCard {
              .cardInfo {
                margin-bottom: 16px;
              }
              &:not(:last-child) {
                padding-bottom: 16px;
                margin-bottom: 16px;
              }
            }
          }
          &:not(:first-child) {
            margin-top: 0;
            padding-top: 0;
            border: 0;
          }
        }
        .skipBlock {
          padding-top: 16px;
          margin-top: 16px;
          border-top: 1px solid #675B8C;
          .skipTitle {
            color: ${t=>t.theme.custom.white.A11};
            font-size: ${t=>t.theme.custom.fontSize.font14};
            font-weight: ${t=>t.theme.custom.fontWeight.md};
            margin-bottom: 4px;
          }
          .skipButtons {
            display: flex;
            align-items: center;
            gap: 4px;
            .skipBtn {
              padding: 0;
              height: unset;
              text-decoration: underline;
              &:hover {
                color: ${t=>t.theme.custom.blueActive};
              }
            }
          }
        }
        .actionButtons {
          .formGroupButton {
            margin-top: 16px;
          }
        }
      }
      .selectSecurity,
      .joinCode {
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid #675B8C;
      }
      .selectSecurity {
        .infoText {
          margin-top: 16px;
          line-height: 20px;
          ul {
            margin: 0;
            padding: 0;
            list-style: none;
          }
        }
      }
      .panelContent {
        &:not(:first-child) {
          margin-top: 24px;
          padding-top: 24px;
          border-top: 1px solid #675B8C;
        }
        .buttonRow {
          justify-content: unset;
          flex-wrap: wrap;
          gap: 8px;
        }
        .loginToolbar {
          margin-bottom: 24px;
          .tabButton {
            font-size: ${t=>t.theme.custom.fontSize.font14};
            &:not(:last-child) {
              margin-right: 24px;
            }
          }
        }
        .checkMark {
          background: ${t=>t.theme.custom.white.A11};
          border-radius: 100px;
          position: absolute;
          width: 18px;
          height: 18px;
          display: flex;
          align-items: center;
          justify-content: center;
          box-shadow:4px 4px 10px rgba(0, 0, 0, 0.4));
        }
        .addCardBtn {
          height: 42px;
        }
        .cardListing {
          .subcriptionCard {
            &:not(:last-child) {
              padding-bottom: 24px;
              margin-bottom: 24px;
              border-bottom: 1px solid #675B8C;
            }
          }
        }
        .subcriptionCard {
          &.clickable {
            .cardInfo {
              filter: unset;
              cursor: pointer;
              &.active,
              &:hover {
                filter: drop-shadow(4px 4px 24px rgba(7, 1, 26, 0.45));
                border-color: ${t=>t.theme.custom.primaryBg};
              }
            }
          }
          .cardInfo {
            padding: 35px 30px;
            border: 1px solid rgba(103, 91, 140, 0.7);
            border-radius: 8px;
            background-color: ${t=>t.theme.custom.counterBg};
            background-image: url(${jzo}), url(${Hzo});
            background-position: left top, right bottom;
            background-repeat: no-repeat, no-repeat;
            background-size: cover, contain;
            position: relative;
            filter: drop-shadow(4px 4px 24px rgba(7, 1, 26, 0.45));
            margin-bottom: 24px;
            min-height: 145px;
            .checkMark {
              left: 5px;
              top: 5px;
            }
            .plantype {
              position: absolute; 
              right: 14px;
              top: 14px;
              color: ${t=>t.theme.custom.greyText.A2};
              font-weight: ${t=>t.theme.custom.fontWeight.rg};
              font-size: ${t=>t.theme.custom.fontSize.font12};
            }
            .planDetail {
              display: flex;
              align-items: flex-end;
              h2 {
                color: ${t=>t.theme.custom.white.A11};
                font-weight: ${t=>t.theme.custom.fontWeight.md};
                font-size: ${t=>t.theme.custom.fontSize.font26};
                margin: 0;
                margin-right: 5px;
                line-height: 31px;
              }
              p {
                text-transform: uppercase;
                color: ${t=>t.theme.custom.greyText.A2};
                font-weight: ${t=>t.theme.custom.fontWeight.rg};
                font-size: ${t=>t.theme.custom.fontSize.font12};
                margin-bottom: 3px;
              }
            }
            .subcriptionBtn {
              margin-top: 12px;
            }
          }
          .cardInfoAzure {
            padding: 46px 30px;
            border: 1px solid rgba(103, 91, 140, 0.7);
            border-radius: 8px;
            background: ${t=>t.theme.custom.azureCardBg};
            filter: drop-shadow(4px 4px 24px rgba(7, 1, 26, 0.45));
            position: relative;
            display: block;
            margin-bottom: 24px;
            &.disabled {
              pointer-events: none;
            }
            &:before {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              background-image: url(${B9t}), url(${D9t});
              background-position: left top, right bottom;
              background-repeat: no-repeat, no-repeat;
              background-size: cover, contain;
            }
            .plantype {
              position: absolute; 
              right: 14px;
              top: 14px;
              text-align: right;
              font-size: ${t=>t.theme.custom.fontSize.font10};
              font-weight: ${t=>t.theme.custom.fontWeight.rg};
              .text {
                color: ${t=>t.theme.custom.white.A11};
                text-transform: uppercase;
                margin-bottom: 8px;
              }
              .tag {
                color: ${t=>t.theme.custom.greyText.A2};
                border: 0.75px solid rgb(153 153 153 / 60%);
                border-radius: 2px;
                padding: 2px 6px;
              }
            }
            .planDetail {
              h2 {
                color: ${t=>t.theme.custom.white.A11};
                font-weight: ${t=>t.theme.custom.fontWeight.md};
                font-size: ${t=>t.theme.custom.fontSize.font26};
                margin-bottom: 4px;
                line-height: 31px;
              }
              p {
                text-transform: uppercase;
                color: ${t=>t.theme.custom.greyText.A2};
                font-weight: ${t=>t.theme.custom.fontWeight.rg};
                font-size: ${t=>t.theme.custom.fontSize.font12};
                margin-bottom: 0;
              }
            }
            .azureIcon {
              position: absolute;
              right: 12px;
              bottom: 12px;
            }
          }
        }
        .currentBalanceSettlement{
          padding-bottom: 16px;
          margin-bottom: 16px;
          border-bottom: 1px solid #675b8c;
          .currentBalance {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: ${t=>t.theme.custom.fontSize.font16};
            font-weight: ${t=>t.theme.custom.fontWeight.sm};
            flex-wrap: wrap;
            .title {
              color: ${t=>t.theme.custom.white.A11};
            }
            .unit {
              color: ${t=>t.theme.custom.greenLight};
              display: flex;
              align-items: center;
              gap: 8px;
              &.negative {
                color: ${t=>t.theme.custom.red};  
              }
            }
          }
          .settlementButton {
            text-align: right;
            margin-top: 15px
          }
        }
        .paymentCard {
          position: relative;
          background: ${t=>t.theme.custom.paymentCardBg};
          border-radius: 18px;
          overflow: hidden;
          margin-bottom: 24px;
          .cardInfo {
            padding: 18px;
            background: url(${Uzo});
            background-repeat: no-repeat;
            background-position: top right;
            background-size: cover;
            .checkMark {
              top: 8px;
              right: 8px;
            }
            .cardIcon {
              margin-bottom: 24px;
            }
            .cardNumber {
              color: ${t=>t.theme.custom.white.A11};
              font-weight: ${t=>t.theme.custom.fontWeight.md};
              font-size: ${t=>t.theme.custom.fontSize.font22};
              margin-bottom: 12px;
            }
            .cardHolder {
              color: ${t=>t.theme.custom.white.A1};
              font-size: ${t=>t.theme.custom.fontSize.font12};
              text-shadow: 0px 2.28164px 2.28164px rgba(20, 20, 20, 0.35);
            }
          }
        }
        &.autoRenew {
          .cardHead {
            margin-bottom: 12px;
          }
        }
      }
    }
    .planInfoAutoPay {
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>t.theme.custom.fontSize.font14};
    }
    .faqAccordian {
      margin-top: 24px;
      .faqBlock {
        background: transparent;
        box-shadow: unset;
        border: 1px solid #675B8C;
        border-radius: 8px;

        .faqAnchorLinks {
          font-size: 11px;
          color: white;
          :hover {
            text-decoration: underline;
          }
        }
        &.Mui-expanded {
          margin: 0;
        }
        .faqTitle {
          min-height: unset;
          padding: 0px 12px;
          .MuiAccordionSummary-content {
            color: ${t=>t.theme.custom.white.A1};
            font-size: ${t=>t.theme.custom.fontSize.font14};
            &.Mui-expanded {
              margin: 12px 0;
            }
          }
          .MuiAccordionSummary-expandIconWrapper {
            color: ${t=>t.theme.custom.white.A1};
          }
        }
        + .faqBlock {
          margin-top: 16px;
        }
      }
    }
    .otherLoginOption {
      margin-top: 40px;      
      .helpText {
        margin-top:0px;
        margin-bottom: 16px;
      }
      .loginOption + .loginOption {
        margin-top: 16px;
      }
      .microsoftLogin {
        button {
          justify-content: flex-start;
        }
      }
      .walletLogin {
        background: rgba(67, 52, 115, 0.55);
        border-radius: 8px;
        button {
          justify-content: flex-start;
          position: relative;
          .arrowIcon {
            margin-left: auto;
          }
          &.open {
            .arrowIcon {
              transform: rotate(180deg);
            }
          }
        }
        .walletList {
          margin: 0;
          padding: 8px;
          list-style: none;
          max-height: 160px;
          overflow: auto;
        }
      }
    }
    .infoText {
      line-height: 20px;
      padding-top: 10px;
      min-height: 224px;
      &.autoHeight {
        min-height: unset;
      }
      ul {
        margin: 0;
        padding: 0;
        list-style: none;
      }
    }
    .darkIconButton {
      background: ${t=>t.theme.custom.boxBg};
      box-shadow: 0px 0.504156px 5.04156px rgba(5, 24, 58, 0.63);
      border-radius: 6px;
      border: 0;
      width: 30px;
      height: 30px;
      &.open {
        svg {
          transform: rotate(180deg);
        }
      }
      svg {
        max-width: 14px;
      }
    }
    .defaultTable {
      .MuiTableHead-root .MuiTableRow-root {
        background: transparent;
      }
      .MuiTableRow-root {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.boxBg}};
        .MuiTableCell-root{
          .MuiInputBase-root {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.thumbnailBg}};
          }
          .tableAction {
            .downloadInvoiceLink {
              color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
              display: inline-flex;
              align-items: center;
              svg {
                margin-right: 6px;
              }
              &:hover {
                text-decoration: underline;
              }
            }
            .MuiIconButton-root {
              background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.thumbnailBg}};
              border: 0;
            }
          }
        }
      }
    }
    .subscriptionDetail {
      position: relative;
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.boxBg}};
      padding: 16px 20px;
      color: ${t=>t.theme.custom.white.A11};
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 20px;
      .type {
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        margin-bottom: 10px;
      }
      h2 {
        color: ${t=>t.theme.custom.greenLight};
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        &.negative {
          color: ${t=>t.theme.custom.red};  
        }
      }
      .planDetail {
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid #675b8c;
      }
      &:after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: ${t=>t.theme.custom.pink};
      }
      &:before {
        content: '';
        position: absolute;
        left: 3px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: calc(100% - 10px);
        background: ${t=>t.theme.custom.pink};
        filter: blur(8px);
      }
    }
    .configureAutoPay {
      color: ${t=>t.theme.custom.white.A11};
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: ${t=>t.theme.custom.fontSize.font14};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      padding: 16px 0;
      margin: 16px 0;
      border-top: 1px solid #675b8c;
      border-bottom: 1px solid #675b8c;
    }
    .autoPay {
      margin: 16px 0 24px; 
      .autoPayBlock {
        padding: 16px 0;
        border-top: 1px solid #675b8c;
        border-bottom: 1px solid #675b8c;
        .enableAutoPay {
          color: ${t=>t.theme.custom.white.A11};
          display: flex;
          align-items: center;
          justify-content: space-between;
          font-size: 16px;
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          margin-bottom: 12px;
          gap: 12px;
          .commonSwitch {
            margin-left: auto;
          }
        }
        p {
          color: ${t=>t.theme.custom.greyText.A2};
          margin-bottom: 0;
        }
        &:not(:last-child) {
          border-bottom: 0;
        }
      }
    }
    .thresholdInput {
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      .thresholdLable{
        font-size: ${t=>t.theme.custom.fontSize.font14};
        color: ${t=>t.theme.custom.white.A11};
        white-space:nowrap;
      }
      .thresholInfo{
        color: ${t=>t.theme.custom.white.A11};
        line-height: 1;
        svg{
          max-width: 16px;
        }
      }
      .MuiFormControl-root {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        .formLabel {
          white-space: nowrap;
          margin-bottom: 0;
        }
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
          -webkit-appearance: none;
           margin: 0;
        }
        input[type=number] {
          -moz-appearance: textfield;
        }
      }
    }
    .buttonRow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .MuiButton-root {
        padding: 5px 10px;
      }
    }
    .creditOfferings {
      .offeringRow {
        padding-bottom: 16px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #675b8c;
        .unit,
        .price {
          font-size: ${t=>t.theme.custom.fontSize.font14};
          color: ${t=>t.theme.custom.white.A11};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          flex: 1;
        }
        .price{
          text-align: right;
        }
        .multiplier {
          width: 110px;
          .MuiInputBase-root {
            padding-left: 10px;
            padding-right: 10px;
          }
          .MuiInputAdornment-root {
            background: transparent;
            cursor: pointer;
            svg {
              max-width: 20px;
            }
          }
          .MuiOutlinedInput-input {
            text-align: center;
            padding: 4px 0;
          }
          input::-webkit-outer-spin-button,
          input::-webkit-inner-spin-button {
            -webkit-appearance: none;
             margin: 0;
          }
          input[type=number] {
            -moz-appearance: textfield;
          }
        }
      }
      .totalCosting {
        margin-bottom: 16px;
        .row {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 2px 0;
          font-size: ${t=>t.theme.custom.fontSize.font14};
          span {
            color: ${t=>t.theme.custom.white.A11};
            font-weight: ${t=>t.theme.custom.fontWeight.md};
          }
        }
      }
      .payNow {
        display: flex;
        justify-content: flex-end;
        margin-top: 16px;
      }
    }
    .offeringList {
      list-style: none;
      margin: 0;
      padding: 0;
      padding-right: 10px;
      max-height: 300px;
      overflow: auto;
      li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: ${t=>t.theme.custom.white.A11};
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.boxBg}};
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 2px 2px 10px rgba(7,1,26,0.45);
        min-height: 66px;
        position: relative;
        .checkMark {
          background: ${t=>t.theme.custom.white.A11};
          border-radius: 100px;
          position: absolute;
          width: 18px;
          height: 18px;
          display: flex;
          align-items: center;
          justify-content: center;
          box-shadow:4px 4px 10px rgba(0, 0, 0, 0.4));
          left: 5px;
          top: 5px;
        }
        h2 {
          margin: 0;
          font-weight: ${t=>t.theme.custom.fontWeight.sm};
          font-size: ${t=>t.theme.custom.fontSize.font18};
        }
        .rightInfo {
          text-align: right;
          .price {
            font-weight: ${t=>t.theme.custom.fontWeight.md};
            font-size: ${t=>t.theme.custom.fontSize.font16};
            .originalPrice {
              font-size: ${t=>t.theme.custom.fontSize.font12};
              color: ${t=>t.theme.custom.greyText.A2};
              text-decoration: line-through;
              margin-left: 3px
            }
          }
          .tag {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            margin-top: 2px;
          }
        }
        &:hover,
        &.selected {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
        }
        + li {
          margin-top: 12px;
        }
      }
    }
    .blockFirstWrapper {
      .subscriptionDetailsCard {
        background: linear-gradient(
          280.79deg,
          #025ad8 -0.83%,
          rgba(12, 58, 123, 0) 100.97%
        );
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        .subscriptionInfo {
          background-image: url(${B9t}), url(${D9t});
          background-position: top left, bottom right;
          background-repeat: no-repeat; 
          position: relative;
          .subscriptionCheck {
            background: ${t=>t.theme.custom.white.A11};
            border-radius: 100px;
            position: absolute;
            width: 18px;
            height: 18px;
            left: 5px;
            top: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow:4px 4px 10px rgba(0, 0, 0, 0.4));
          }
          .azureIcon{
            position: absolute; 
            right: 12px;
            bottom: 12px;
          }
          .ampPlan{
            position: absolute; 
            right: 14px;
            top: 14px;
            color: ${t=>t.theme.custom.greyText.A2};
            font-weight: ${t=>t.theme.custom.fontWeight.rg};
            font-size: ${t=>t.theme.custom.fontSize.font12};
          }
          .ampPlanType {
            position: absolute;
            right: 0px;
            top: 24px;
            border: 1px solid;
            border-radius: 8px;
            padding: 5px;
          }
          .planDetail {
            padding: 42px 20px;
            h2 {
              color: ${t=>t.theme.custom.white.A11};
              font-weight: ${t=>t.theme.custom.fontWeight.md};
              font-size: ${t=>t.theme.custom.fontSize.font26};
              margin: 0;
            }
            p {
              text-transform: uppercase;
              color: ${t=>t.theme.custom.greyText.A2};
              font-weight: ${t=>t.theme.custom.fontWeight.rg};
              font-size: ${t=>t.theme.custom.fontSize.font12};
              margin: 0;
            }
          }
        }
      }
    }   
    .blockSecondWrapper{
      border-top:1px solid rgba(103, 91, 140, 0.5);
      border-bottom:1px solid rgba(103, 91, 140,0.5);
      padding: 18px 0 24px;
      margin: 24px 0 18px;
      .packageDetailsCard{
        background-color: rgba(22, 8, 76, 0.6); 
        border-radius: 16px;
        .duratioInfo {
          background-image:   url(${Fzo});
          background-position:  bottom right;
          background-repeat: no-repeat;
          height: 138px; 
          padding:20px; 
          h3{
            color: ${t=>t.theme.custom.greyText.A2};
            font-weight: ${t=>t.theme.custom.fontWeight.lt};
            font-size: ${t=>t.theme.custom.fontSize.font12};
            margin:0;
          }
          p{
            color: ${t=>t.theme.custom.white.A1};
            font-weight: ${t=>t.theme.custom.fontWeight.md};
            font-size: ${t=>t.theme.custom.fontSize.font12};
            margin:0;
          }
          .packageDetailCol{
            border-top:1px solid rgba(103, 91, 140, 0.5);
            padding-top:12px; 
            margin-top:12px;
            display:flex;
            justify-content: space-between;
          }
        }
      }
    }
    .blockThirdWrapper{
     ul{
      padding-left: 16px;
      list-style-type: none;
      background: ${t=>t.theme.custom.white.A4};
      border-radius: 8px;
      padding: 8px;
      position: relative;

      li:first-child {
        margin-top: 5px;
      }

      li{
        .labelName {
          display: inline-block;
          margin-bottom: 0px;
          color:${t=>t.theme.custom.white.A11};
        }

        .labelInfo {
          color: ${t=>t.theme.custom.greyText.A2};
          margin-bottom: 0px;
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          font-size: ${t=>t.theme.custom.fontSize.font12};
          padding-bottom: 12px;
        }
      }

     }
    }
    .paymentMethod {
      padding-top: 16px;
      margin-top: 16px;
      border-top: 1px solid #675b8c;

      .labelName {
        text-align: center;;
        margin-bottom: 0px;
        color:${t=>t.theme.custom.white.A11};
      }

      .labelInfo {
        text-align: center;
        color: ${t=>t.theme.custom.greyText.A2};
        margin-bottom: 10px;
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font12};
      }

      .changeZKTokenPayment {
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
        max-width: 300px;
        display: block;
      }
    }
    .usageEmptyBlock {
      min-height: 300px;
      img {
        max-width: 300px;
      }
    }
    .loginToolbar {
      .toolbarRight {
        gap: 8px;
        button + button {
          margin-left: 0;
        }
      }
    }
    .msgBlock {
      .message span {
        margin-top: 0;
      }
    }
    .usageInfo {
      margin-bottom: 16px;
      width: calc(100% - 10px);
      .helpText {
        margin-top: 0;
      }
    }
    .memberUsagePanel {
      min-height: 300px;
      .autoCompleteSearchDropdown {
        margin-bottom: 24px;
        .fieldLabel {
          color: ${t=>t.theme.custom.white.A11};
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          margin-bottom: 8px;
        }
        .MuiInputBase-root {
          padding-left: 16px;
          padding-top: 10px;
          padding-bottom: 10px;
          background: ${t=>t.theme.custom.inputBg};
          color: ${t=>t.theme.custom.white.A1};
          box-shadow: 4px 4px 24px rgba(7,1,26,0.45);
          border-radius: 8px;
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
          &:before {
            display: none;
          }
          &.Mui-focused {
            &:after {
              display: none;
            }
          }
          &:hover {
            &:before {
              display: none;
            }
          }
          .MuiAutocomplete-endAdornment {
            right: 4px;
            button {
              width: 28px;
              height: 28px;
              color: ${t=>t.theme.custom.white.A11};
            }
          }
        }
        .MuiAutocomplete-popper {
          .MuiPaper-root {
            font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
            background: ${t=>t.theme.custom.dropdownBg};
            border: 0.5px solid #675b8c;
            box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
            color: ${t=>t.theme.custom.white.A11};
            backdrop-filter: blur(2px);
            border-radius: 8px;
            .MuiAutocomplete-noOptions {
              color: ${t=>t.theme.custom.white.A11};
            }
            .MuiAutocomplete-listbox {
              padding: 0;
              max-height: 165px;
              li {
                min-height: unset;
                &:hover {
                  background: ${t=>t.theme.custom.white.A5};
                }
              }
            }
          }
        }
      }
    }
    .filterRow {
      text-align: right;
      margin-top: 10px;
    }
    .listData {
      border-top: 1px solid #675b8c;
      margin-top: 24px;
      padding-top: 24px;
      .cardHead {
        margin-bottom: 10px;
      }
    }
    ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("md")}} {
      .updateBtnRow {
        .infoLinks {
          .infoLink {
            font-size: ${t=>t.theme.custom.fontSize.font12};
          }
        }
      }
    }
    ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("sm")}} {
      .cardHead {
        margin-bottom: 16px;
        font-size: ${t=>t.theme.custom.fontSize.font14};
        .headRight {
          gap: 8px;
          .searchField {
            width: 130px;
          }
        }
      }
      .formGroup {
        .MuiFormControl-root {
          .MuiOutlinedInput-input {
            padding: 10px 16px;
          }
        }
      }
      .MuiSelect-select.MuiOutlinedInput-input {
        padding: 10px 32px 10px 16px !important;
      }
      .userInfo {
        margin-bottom: 20px;
        .userAvatar {
          height: 60px;
          width: 60px;
        }
      }
      .updateBtnRow {
        .infoLinks {
          .infoLink {
            font-size: ${t=>t.theme.custom.fontSize.font10};
          }
        }
      }
      &.subscriptionPanel {
        .panelContent {
          .subcriptionCard {
            .cardInfo {
              padding: 35px 16px;
            }
          }
        }
      }
    }
  } 
`,GYn=gt.div`
  && {
    text-align: center;
    &.successBlock {
      padding: 150px 0;
    }
    img {
      max-width: 88px;
    }
    .title {
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>t.theme.custom.fontSize.font18};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
      margin-top: 24px;
      margin-bottom: 12px;
    }
  }
`,_$e=gt.li`
  && {
    color: ${t=>t.theme.custom.white.A11};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    &.disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    &:hover {
      background: ${t=>t.theme.custom.white.A4};
    }
    img {
      max-width: 20px;
      margin-right: 15px;
    }
  }
`;gt.div`
  && {
    color: ${t=>t.theme.custom.white.A1};
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(
      99.09deg,
      rgba(152, 154, 205, 0.18) 0%,
      rgba(215, 204, 255, 0.18) 98.8%
    );
    margin-top: 2px;
    border-radius: 4px;
    &.disabled {
      opacity: 0.7;
    }
  }
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    &:disabled {
      cursor: not-allowed;
    }
  }
  .checkIcon {
    opacity: 0;
    width: 12px;
    height: 100%;
  }
  input:checked ~ .checkIcon {
    opacity: 1;
  }
`;const Yzo=gt.div`
  .wallet-registration-footer {
    display: flex;
    align-items: center;
    justify-content: right;
  }
`,MCe=({isJoinCodeRequired:t,onClose:e,handleLogin:n,parentJoinCode:r=""})=>{const[a,o]=Y.useState(r),s=vV(),[l,c]=Y.useState((t==null?void 0:t.key)===(t==null?void 0:t.userId)?"":t==null?void 0:t.userId),u=Y.useRef(null),d=Y.useRef(null);return E.jsx(lf,{maxWidth:"xs",title:q.REGISTER,visible:t==null?void 0:t.open,onClose:()=>{e()},children:E.jsx(rCe,{className:"joinCodeSubscriptionModel",children:E.jsxs(Fu,{className:"beforeLoginSubcription subscriptionPanel",children:[E.jsxs("form",{onSubmit:h=>{h.preventDefault(),n({userId:l||"",joinCode:(a==null?void 0:a.trim())||"",tempPriceId:s,setIsShowSubscriptionFlow:aw})},children:[E.jsx("div",{className:"userIdInput",children:E.jsx(gr,{inputRef:d,onChange:()=>{var h;c((h=d==null?void 0:d.current)==null?void 0:h.value)},placeholder:q.LOGIN_USER_ID_PLACEHOLDER,label:"Username",required:!0})}),E.jsx("div",{className:"joincodeInput",children:E.jsx(gr,{inputRef:u,onChange:()=>{var h;o((h=u==null?void 0:u.current)==null?void 0:h.value)},label:"Join Code",placeholder:q.ENTER_THE_CODE,defaultValue:r,optional:!0})}),E.jsx(Dee,{}),E.jsx(Dee,{}),E.jsx(Dee,{}),E.jsx(Yzo,{children:E.jsx("div",{className:"wallet-registration-footer",children:E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",disabled:!(l!=null&&l.trim()),children:q.SUBMIT})})})]}),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:tM,target:"_blank",rel:"noreferrer",children:[q.NEED_HELP,E.jsx(oC,{})]})})]})})})},Jzo=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"},{name:"_data",type:"bytes"}],name:"transferAndCall",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_subtractedValue",type:"uint256"}],name:"decreaseApproval",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_addedValue",type:"uint256"}],name:"increaseApproval",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"remaining",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"},{indexed:!1,name:"data",type:"bytes"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],Qse=[{inputs:[{internalType:"uint256",name:"internalBalance",type:"uint256"},{internalType:"uint256",name:"externalBalance",type:"uint256"}],name:"BalanceInvariantViolated",type:"error"},{inputs:[],name:"CannotSelfTransfer",type:"error"},{inputs:[],name:"EmptySendersList",type:"error"},{inputs:[{internalType:"uint32",name:"have",type:"uint32"},{internalType:"uint32",name:"want",type:"uint32"}],name:"GasLimitTooBig",type:"error"},{inputs:[],name:"InsufficientBalance",type:"error"},{inputs:[],name:"InvalidCalldata",type:"error"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"consumer",type:"address"}],name:"InvalidConsumer",type:"error"},{inputs:[{internalType:"int256",name:"linkWei",type:"int256"}],name:"InvalidLinkWeiPrice",type:"error"},{inputs:[],name:"InvalidSubscription",type:"error"},{inputs:[{internalType:"address",name:"proposedOwner",type:"address"}],name:"MustBeRequestedOwner",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"MustBeSubOwner",type:"error"},{inputs:[],name:"NotAllowedToSetSenders",type:"error"},{inputs:[],name:"NotProposedOwner",type:"error"},{inputs:[],name:"OnlyCallableByOwner",type:"error"},{inputs:[],name:"OnlyCallableFromLink",type:"error"},{inputs:[],name:"OwnerMustBeSet",type:"error"},{inputs:[],name:"PaymentTooLarge",type:"error"},{inputs:[],name:"PendingRequestExists",type:"error"},{inputs:[],name:"Reentrant",type:"error"},{inputs:[],name:"TooManyConsumers",type:"error"},{inputs:[],name:"UnauthorizedSender",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address[]",name:"senders",type:"address[]"},{indexed:!1,internalType:"address",name:"changedBy",type:"address"}],name:"AuthorizedSendersChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"},{indexed:!1,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"uint96",name:"signerPayment",type:"uint96"},{indexed:!1,internalType:"uint96",name:"transmitterPayment",type:"uint96"},{indexed:!1,internalType:"uint96",name:"totalCost",type:"uint96"},{indexed:!1,internalType:"bool",name:"success",type:"bool"}],name:"BillingEnd",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"},{components:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"client",type:"address"},{internalType:"uint32",name:"gasLimit",type:"uint32"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"don",type:"address"},{internalType:"uint96",name:"donFee",type:"uint96"},{internalType:"uint96",name:"registryFee",type:"uint96"},{internalType:"uint96",name:"estimatedCost",type:"uint96"},{internalType:"uint256",name:"timestamp",type:"uint256"}],indexed:!1,internalType:"struct FunctionsBillingRegistry.Commitment",name:"commitment",type:"tuple"}],name:"BillingStart",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint32",name:"maxGasLimit",type:"uint32"},{indexed:!1,internalType:"uint32",name:"stalenessSeconds",type:"uint32"},{indexed:!1,internalType:"uint256",name:"gasAfterPaymentCalculation",type:"uint256"},{indexed:!1,internalType:"int256",name:"fallbackWeiPerUnitLink",type:"int256"},{indexed:!1,internalType:"uint32",name:"gasOverhead",type:"uint32"}],name:"ConfigSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"FundsRecovered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"OwnershipTransferRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"}],name:"RequestTimedOut",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SubscriptionCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"address",name:"consumer",type:"address"}],name:"SubscriptionConsumerAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"address",name:"consumer",type:"address"}],name:"SubscriptionConsumerRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"SubscriptionCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"uint256",name:"oldBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"SubscriptionFunded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"}],name:"SubscriptionOwnerTransferRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"}],name:"SubscriptionOwnerTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"MAX_CONSUMERS",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"}],name:"acceptSubscriptionOwnerTransfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"consumer",type:"address"}],name:"addConsumer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"to",type:"address"}],name:"cancelSubscription",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"createSubscription",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint32",name:"gasLimit",type:"uint32"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"uint96",name:"donFee",type:"uint96"},{internalType:"uint96",name:"registryFee",type:"uint96"}],name:"estimateCost",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"requestId",type:"bytes32"},{internalType:"bytes",name:"response",type:"bytes"},{internalType:"bytes",name:"err",type:"bytes"},{internalType:"address",name:"transmitter",type:"address"},{internalType:"address[31]",name:"signers",type:"address[31]"},{internalType:"uint8",name:"signerCount",type:"uint8"},{internalType:"uint256",name:"reportValidationGas",type:"uint256"},{internalType:"uint256",name:"initialGas",type:"uint256"}],name:"fulfillAndBill",outputs:[{internalType:"enum FunctionsBillingRegistryInterface.FulfillResult",name:"",type:"uint8"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getAuthorizedSenders",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getConfig",outputs:[{internalType:"uint32",name:"maxGasLimit",type:"uint32"},{internalType:"uint32",name:"stalenessSeconds",type:"uint32"},{internalType:"uint256",name:"gasAfterPaymentCalculation",type:"uint256"},{internalType:"int256",name:"fallbackWeiPerUnitLink",type:"int256"},{internalType:"uint32",name:"gasOverhead",type:"uint32"},{internalType:"address",name:"linkAddress",type:"address"},{internalType:"address",name:"linkPriceFeed",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentsubscriptionId",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRequestConfig",outputs:[{internalType:"uint32",name:"",type:"uint32"},{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"",type:"bytes"},{components:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"client",type:"address"},{internalType:"uint32",name:"gasLimit",type:"uint32"},{internalType:"uint256",name:"gasPrice",type:"uint256"}],internalType:"struct FunctionsBillingRegistryInterface.RequestBilling",name:"",type:"tuple"}],name:"getRequiredFee",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"}],name:"getSubscription",outputs:[{internalType:"uint96",name:"balance",type:"uint96"},{internalType:"address",name:"owner",type:"address"},{internalType:"address[]",name:"consumers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"}],name:"getSubscriptionOwner",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTotalBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"link",type:"address"},{internalType:"address",name:"linkEthFeed",type:"address"},{internalType:"address",name:"oracle",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"isAuthorizedSender",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"onTokenTransfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint96",name:"amount",type:"uint96"}],name:"oracleWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"}],name:"ownerCancelSubscription",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"}],name:"pendingRequestExists",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"}],name:"recoverFunds",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"consumer",type:"address"}],name:"removeConsumer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"newOwner",type:"address"}],name:"requestSubscriptionOwnerTransfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"senders",type:"address[]"}],name:"setAuthorizedSenders",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint32",name:"maxGasLimit",type:"uint32"},{internalType:"uint32",name:"stalenessSeconds",type:"uint32"},{internalType:"uint256",name:"gasAfterPaymentCalculation",type:"uint256"},{internalType:"int256",name:"fallbackWeiPerUnitLink",type:"int256"},{internalType:"uint32",name:"gasOverhead",type:"uint32"},{internalType:"uint32",name:"requestTimeoutSeconds",type:"uint32"}],name:"setConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{components:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"client",type:"address"},{internalType:"uint32",name:"gasLimit",type:"uint32"},{internalType:"uint256",name:"gasPrice",type:"uint256"}],internalType:"struct FunctionsBillingRegistryInterface.RequestBilling",name:"billing",type:"tuple"}],name:"startBilling",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"requestIdsToTimeout",type:"bytes32[]"}],name:"timeoutRequests",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"}],Zzo=[{inputs:[],name:"AlreadySet",type:"error"},{inputs:[],name:"CannotSelfTransfer",type:"error"},{inputs:[],name:"EmptyBillingRegistry",type:"error"},{inputs:[],name:"EmptyPublicKey",type:"error"},{inputs:[],name:"EmptyRequestData",type:"error"},{inputs:[],name:"EmptySendersList",type:"error"},{inputs:[],name:"InconsistentReportData",type:"error"},{inputs:[],name:"NotAllowedToSetSenders",type:"error"},{inputs:[],name:"NotProposedOwner",type:"error"},{inputs:[],name:"OnlyCallableByOwner",type:"error"},{inputs:[],name:"OwnerMustBeSet",type:"error"},{inputs:[],name:"ReportInvalid",type:"error"},{inputs:[],name:"UnauthorizedPublicKeyChange",type:"error"},{inputs:[],name:"UnauthorizedSender",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"AuthorizedSendersActive",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address[]",name:"senders",type:"address[]"},{indexed:!1,internalType:"address",name:"changedBy",type:"address"}],name:"AuthorizedSendersChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"AuthorizedSendersDeactive",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint32",name:"previousConfigBlockNumber",type:"uint32"},{indexed:!1,internalType:"bytes32",name:"configDigest",type:"bytes32"},{indexed:!1,internalType:"uint64",name:"configCount",type:"uint64"},{indexed:!1,internalType:"address[]",name:"signers",type:"address[]"},{indexed:!1,internalType:"address[]",name:"transmitters",type:"address[]"},{indexed:!1,internalType:"uint8",name:"f",type:"uint8"},{indexed:!1,internalType:"bytes",name:"onchainConfig",type:"bytes"},{indexed:!1,internalType:"uint64",name:"offchainConfigVersion",type:"uint64"},{indexed:!1,internalType:"bytes",name:"offchainConfig",type:"bytes"}],name:"ConfigSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"}],name:"InvalidRequestID",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"},{indexed:!1,internalType:"address",name:"requestingContract",type:"address"},{indexed:!1,internalType:"address",name:"requestInitiator",type:"address"},{indexed:!1,internalType:"uint64",name:"subscriptionId",type:"uint64"},{indexed:!1,internalType:"address",name:"subscriptionOwner",type:"address"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"}],name:"OracleRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"}],name:"OracleResponse",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"OwnershipTransferRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"},{indexed:!1,internalType:"address",name:"transmitter",type:"address"}],name:"ResponseTransmitted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"configDigest",type:"bytes32"},{indexed:!1,internalType:"uint32",name:"epoch",type:"uint32"}],name:"Transmitted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"UserCallbackError",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"requestId",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"lowLevelData",type:"bytes"}],name:"UserCallbackRawError",type:"event"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"activateAuthorizedReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"senders",type:"address[]"}],name:"addAuthorizedSenders",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"authorizedReceiverActive",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"deactivateAuthorizedReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"deleteNodePublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint32",name:"gasLimit",type:"uint32"},{internalType:"uint256",name:"gasPrice",type:"uint256"}],name:"estimateCost",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllNodePublicKeys",outputs:[{internalType:"address[]",name:"",type:"address[]"},{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAuthorizedSenders",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDONPublicKey",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegistry",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"",type:"bytes"},{components:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"address",name:"client",type:"address"},{internalType:"uint32",name:"gasLimit",type:"uint32"},{internalType:"uint256",name:"gasPrice",type:"uint256"}],internalType:"struct FunctionsBillingRegistryInterface.RequestBilling",name:"",type:"tuple"}],name:"getRequiredFee",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"pure",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"isAuthorizedSender",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestConfigDetails",outputs:[{internalType:"uint32",name:"configCount",type:"uint32"},{internalType:"uint32",name:"blockNumber",type:"uint32"},{internalType:"bytes32",name:"configDigest",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestConfigDigestAndEpoch",outputs:[{internalType:"bool",name:"scanLogs",type:"bool"},{internalType:"bytes32",name:"configDigest",type:"bytes32"},{internalType:"uint32",name:"epoch",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"senders",type:"address[]"}],name:"removeAuthorizedSenders",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"subscriptionId",type:"uint64"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint32",name:"gasLimit",type:"uint32"}],name:"sendRequest",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_signers",type:"address[]"},{internalType:"address[]",name:"_transmitters",type:"address[]"},{internalType:"uint8",name:"_f",type:"uint8"},{internalType:"bytes",name:"_onchainConfig",type:"bytes"},{internalType:"uint64",name:"_offchainConfigVersion",type:"uint64"},{internalType:"bytes",name:"_offchainConfig",type:"bytes"}],name:"setConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"donPublicKey",type:"bytes"}],name:"setDONPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],name:"setNodePublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"registryAddress",type:"address"}],name:"setRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[3]",name:"reportContext",type:"bytes32[3]"},{internalType:"bytes",name:"report",type:"bytes"},{internalType:"bytes32[]",name:"rs",type:"bytes32[]"},{internalType:"bytes32[]",name:"ss",type:"bytes32[]"},{internalType:"bytes32",name:"rawVs",type:"bytes32"}],name:"transmit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"transmitters",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"typeAndVersion",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"}],VYn=async(t,e,n,r)=>{try{let a,o=localStorage.getItem("walletName")||$o.metamask;if(r===$o.walletconnect&&e&&(o=r),!window.ethereum&&o!=="walletconnect")throw n&&n(!1),new Error("No crypto wallet found. Please install it.");if(o===$o.coinbase){if(window.ethereum&&window.ethereum.providers){const u=window.ethereum.providers;Array.isArray(u)&&u.length&&(a=u.find(d=>d.isCoinbaseWallet))}a||(a=window.ethereum)}else if(o===$o.metamask){if(Ox(!0),window.ethereum&&window.ethereum.providers){const u=window.ethereum.providers;Array.isArray(u)&&u.length&&(a=u.find(d=>d.isMetaMask))}if(a||(a=window.ethereum),a)try{await a.request({method:"eth_requestAccounts",params:[]})}catch(u){console.error("Error requesting accounts:",u)}}else if(o===$o.walletconnect&&e){const d=new sP(e).getSigner();return{signature:await(d==null?void 0:d.signMessage(t))}}const s=window.ethereum?new sP(window.ethereum):void 0,l=await(s==null?void 0:s.getSigner());return{signature:await(l==null?void 0:l.signMessage(t))}}catch{return n&&n(!1),Ox(!1),{signature:""}}finally{Ox(!1)}},qse=async({inputs:t,setIsJoinCodeRequired:e,setShowLoginDrawer:n,handleClose:r,key:a,setIsSubmit:o,ethereumWallet:s,walletConnectProvider:l})=>{var c;try{let u="",d=!1;e({open:!1,userId:""});const{userId:h,joinCode:f="",tempPriceId:p="",setIsShowSubscriptionFlow:m}=t,g=q.SIGN_MESSAGE,v=await G1a({key:a});if(v!=null&&v.isUserExist&&f){Kn("User already exist"),o&&o(!1);return}if(u=v==null?void 0:v.gatewayUrl,!h&&!(v!=null&&v.isUserExist)){o&&o(!1),e({open:!0,userId:"",key:a});return}if(!(v!=null&&v.isUserExist)&&h){const B=await tTe({userId:h});if(B!=null&&B.isUserExist){Kn("Username already exist"),o&&o(!1),e({open:!0,userId:"",key:a});return}if(f){const j=await eat(f);if(!j.isValid){Kn("Invalid join code"),o&&o(!1),e({open:!0,userId:"",key:a});return}u=j.gatewayUrl,d=j.isValid}}u||(u=HU);const A={userId:h,prefix:g,joinCode:f,walletAddr:a},{data:y,error:S,status:x}=await Bn.getAuthCode(A,u);if(x===404){e({open:!0,userId:"",key:a}),o&&o(!1);return}if(S||!y){Kn(S||q.NETWORK_ERROR),o&&o(!1);return}const{authCode:w="",userId:_}=y,{signature:C}=await VYn(`${q.SIGN_MESSAGE}${w}`,l,o,s);if(!C){Kn(q.METAMASK_SIGNATURE_ERROR),r&&r(),o&&o(!1);return}s&&_a.login({login_type:s,userId:_||h,join_code_provided:!!f}),d&&vO("join"),Ox(!0);const R={userId:_||h,authCode:w,signature:C,key:a,scheme:"eth"},{data:k,error:P}=await Bn.getAccessToken(R,u);P&&Kn(`${P} , please try again`);const{accessToken:N,refreshToken:L}=k,{data:I}=await Hu.getSessionId(N),{sessionId:b=""}=I||{},{accessTokenExpires:T,refreshTokenExpires:M}=k,D=(c=Date.now())==null?void 0:c.toString();localStorage.setItem("accessToken",N),localStorage.setItem("refreshToken",L),localStorage.setItem("accessTokenExpires",T),localStorage.setItem("refreshTokenExpires",M),localStorage.setItem("userId",_),localStorage.setItem("sessionId",b),localStorage.setItem("loginType",q.WEB3LOGIN),localStorage.setItem("tokenLastUpdatedOn",D),localStorage.setItem("walletAddress",a),localStorage.setItem("baseUrl",u),Uhn(!0),n&&!p&&n(!1),p&&m(!0),Eit({accessTokenExpires:T,accessToken:N,refreshToken:L,tokenLastUpdatedOn:D}),o&&o(!1)}catch{Ox(!1),o&&o(!1)}finally{Ox(!1)}},$9t=async({inputs:t,setIsJoinCodeRequired:e,setShowLoginDrawer:n,handleClose:r,key:a,setIsSubmit:o,ethereumWallet:s,walletConnectProvider:l})=>{try{e({open:!1,userId:""}),qse({inputs:t,setIsJoinCodeRequired:e,walletConnectProvider:l,setShowLoginDrawer:n,handleClose:r,key:a,setIsSubmit:o,ethereumWallet:s})}catch{o&&o(!1)}},d2=async({ethereumWallet:t,wallet:e,setWalletName:n,setIsJoinCodeRequired:r,setShowLoginDrawer:a,handleClose:o,setIsSubmit:s,joinCode:l,userId:c="",accountId:u="",walletConnectProvider:d})=>{try{if(window.ethereum||t===$o.walletconnect){let h;if(window.ethereum&&!window.ethereum.providers&&(t===$o.coinbase&&!window.ethereum.isCoinbaseWallet||t===$o.metamask&&!window.ethereum.isMetaMask)){alert(q.EXTENSION_NOT_FOUND(t)),s&&s(!1);return}if(t===$o.coinbase?(n(e),window.ethereum&&window.ethereum.providers?h=Array.from(window.ethereum.providers).find(p=>p.isCoinbaseWallet):h=window.ethereum):t===$o.metamask?(n(e),window.ethereum&&window.ethereum.providers?h=Array.from(window.ethereum.providers).find(p=>p.isMetaMask):h=window.ethereum):t===$o.walletconnect&&(n(e),$9t({inputs:{userId:c,joinCode:l},setIsJoinCodeRequired:r,walletConnectProvider:d,setShowLoginDrawer:a,handleClose:o,setIsSubmit:s,joinCode:l,ethereumWallet:t,key:u})),h&&t!==$o.walletconnect){const f=await h.request({method:"eth_requestAccounts"}),p=f?f[0]:"";p?$9t({inputs:{userId:c,joinCode:l},setIsJoinCodeRequired:r,walletConnectProvider:d,setShowLoginDrawer:a,handleClose:o,setIsSubmit:s,joinCode:l,ethereumWallet:t,key:p}):(alert(q.NO_WALLET_ADDRESS_FOUND(t)),s&&s(!1))}}else alert(q.EXTENSION_NOT_FOUND(t)),s&&s(!1)}catch{s&&s(!1)}finally{Ox(!1)}},KYn=async()=>{const t=localStorage.getItem("walletName");let e;if(t===$o.coinbase)if(window.ethereum&&typeof window.ethereum.providers<"u"&&(Array.isArray(window.ethereum.providers)||window.ethereum.providers instanceof Object)){const n=window.ethereum.providers;n&&"length"in n?e=n.find(r=>r.isCoinbaseWallet):console.error("Providers is not an array-like object with a length property.")}else e=window.ethereum;else if(t===$o.metamask){if(window.ethereum&&typeof window.ethereum.providers<"u"&&(Array.isArray(window.ethereum.providers)||window.ethereum.providers instanceof Object)){const n=window.ethereum.providers;n&&"length"in n?e=n.find(r=>r.isMetaMask):console.error("Providers is not an array-like object with a length property.")}else e=window.ethereum;e&&await e.request({method:"eth_requestAccounts",params:[]})}return e},yut=async()=>{const t=window.ethereum?new sP(window.ethereum):void 0;return await(t==null?void 0:t.getSigner())},rbe=async t=>{var o,s,l;let e="";if(t&&z3[t])e=F3(z3[t]);else return!1;const n=(o=window==null?void 0:window.ethereum)==null?void 0:o.chainId,r=localStorage.getItem("walletName");let a=(s=window.ethereum)!=null&&s.providers?window.ethereum.providers.find(c=>c.isMetaMask):window.ethereum;if(r===$o.coinbase){const c=(l=window.ethereum)==null?void 0:l.providers;a=c==null?void 0:c.find(u=>u.isCoinbaseWallet)}if(e===n)return zi(ga.CONNECTED_TO(t)),!0;try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:e}]}),zi(ga.CONNECTED_TO(t)),!0}catch(c){if(c.code===ga.STATUS_CODE_4001)return Kn(c.message),!1;if(c.code===ga.STATUS_CODE_4902)try{return await a.request({method:"wallet_addEthereumChain",params:[{chainName:t,chainId:e,nativeCurrency:{name:"MATIC",decimals:18,symbol:"MATIC"},rpcUrls:["https://matic-mumbai.chainstacklabs.com"]}]}),zi(ga.CONNECTED_TO(t)),!0}catch(u){return Kn(u==null?void 0:u.message),!1}return!1}},Xzo=async(t,e)=>{try{if(localStorage.getItem("userId")){const r=await yut(),a=hV[t===Of.SEPOLIA?im.ethereum:im.polygon],s=await new Q8(a,Qse,r).createSubscription();e(s.hash);const c=(await s.wait()).events[0].args.subscriptionId.toNumber();return zi(q.SUBSCRIPTION_CREATED),{subscriptionId:c,chain:a}}return{subscriptionId:null,chain:null,error:!0}}catch(n){console.log(n)}},eGo=async(t,e,n,r)=>{try{const a=localStorage.getItem("userId")||"";if(a){await KYn();const o=await yut(),s=dqr(e),l=hV[n===Of.SEPOLIA?im.ethereum:im.polygon],c=Lga[n===Of.SEPOLIA?im.ethereum:im.polygon],u=new Q8(c,Jzo,o),d=await u.balanceOf(a);if(!s.gt(d)){const h=await u.transferAndCall(l,s,Let.encode(["uint64"],[parseInt(t,10)]));return r(h.hash),await h.wait(),zi(q.FUND_ADDED),h}return Kn(q.INSUFFICIENT_LINK_TOKENS),!1}return Kn(q.ERROR_CONNECT_WALLET),!1}catch{return!1}},tGo=async(t,e,n,r)=>{const a=localStorage.getItem("userId")||"";let o;try{if(a){const s=window.ethereum?new sP(window.ethereum):void 0,l=s==null?void 0:s.getSigner(),c=hV[e===Of.SEPOLIA?im.ethereum:im.polygon];return o=await new Q8(c,Qse,l).addConsumer(t,n),r(o.hash),await o.wait(),zi(q.CONSUMER_ADDED),o}}catch{}return o},nGo=async(t,e,n,r)=>{try{if(localStorage.getItem("userId")||""){const o=window.ethereum?new sP(window.ethereum):void 0,s=o==null?void 0:o.getSigner(),l=hV[n===Of.SEPOLIA?im.ethereum:im.polygon],u=await new Q8(l,Qse,s).removeConsumer(e,t);return r(u.hash),await u.wait(),zi(q.CONSUMER_REMOVED),u}}catch(a){console.log(a)}},rGo=async(t,e,n)=>{try{const a=localStorage.getItem("userId")||"";if(a){const o=window.ethereum?new sP(window.ethereum):void 0,s=o==null?void 0:o.getSigner(),l=hV[e===Of.SEPOLIA?im.ethereum:im.polygon],u=await new Q8(l,Qse,s).cancelSubscription(t,a);return n(u.hash),await u.wait(),await H0a(t,e),zi(q.SUBSCRIPTION_DELETED),u}Kn(q.ERROR_CONNECT_WALLET)}catch(a){console.log(a,"error")}return!1},WYn=async(t,e)=>{try{if(localStorage.getItem("userId")){await KYn();const r=await yut(),a=hV[t===Of.SEPOLIA?im.ethereum:im.polygon];return await new Q8(a,Qse,r).getSubscription(e)}}catch(n){console.log(n,"error")}return null},QYn=t=>{try{return ptn(t)}catch(e){console.log("balance error: ",e)}},ibe=()=>{var o;const t=(o=window.ethereum)==null?void 0:o.chainId,e=F3(z3.Mumbai),n=F3(z3.Sepolia),r=F3(z3.Ethereum),a=F3(z3.Polygon);return t===e?Of.MUMBAI:t===n?Of.SEPOLIA:t===r?Of.ETHEREUM:t===a?Of.POLYGON:""},but=async t=>{try{const e=localStorage.getItem("userId")||"",n=window.ethereum?new sP(window.ethereum):void 0,r=n==null?void 0:n.getSigner(),a=Oga[t===Of.SEPOLIA?im.sepolia:im.mumbai];return await new Q8(a,Zzo,r).isAuthorizedSender(e)}catch(e){console.log(e)}},T$e=async({ethereumWallet:t,setIsSubmit:e,walletConnectAddress:n="",walletConnectProvider:r})=>{var a,o;try{if(window.ethereum||t===$o.walletconnect){e&&e(!0);let s;if(window.ethereum&&!window.ethereum.providers&&(t===$o.coinbase&&!window.ethereum.isCoinbaseWallet||t===$o.metamask&&!window.ethereum.isMetaMask)){alert(q.EXTENSION_NOT_FOUND(t)),e&&e(!1);return}if(t===$o.coinbase){const l=(a=window.ethereum)==null?void 0:a.providers;l&&l.length>0?s=l.find(c=>c.isCoinbaseWallet):s=window.ethereum}else if(t===$o.metamask){const l=(o=window.ethereum)==null?void 0:o.providers;l&&l.length>0?s=l.find(c=>c.isMetaMask):s=window.ethereum}if(s||n){let l=n;if(t!==$o.walletconnect){const f=await s.request({method:"eth_requestAccounts"});if(l=f!=null&&f.length?f[0]:"",!l){alert(q.NO_WALLET_ADDRESS_FOUND(t)),e&&e(!1);return}}const{data:c}=await Bn.getAuthCodeKey({prefix:q.CONNECT_A_WALLET}),{authCode:u=""}=c,{signature:d}=await VYn(`${q.CONNECT_A_WALLET}${u}`,r,()=>{},t),h={authCode:u,signature:d,key:l,scheme:"eth"};if(d!==""){const{status:f,error:p}=await Bn.addKey(h);f===204?(zi(q.WALLET_CONNECTED),Jhn()):Kn(p||q.WALLET_CONNECT_FAIL)}else Kn(q.WALLET_SIGNATURE_REJECTION)}e&&e(!1)}else alert(q.EXTENSION_NOT_FOUND(t)),e&&e(!1)}catch{e&&e(!1)}},iGo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAbCAYAAABiFp9rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPkSURBVHgB7VRLaFxVGP7OvXfuzWQmk5kmThzTaqxQg6JklSKkNGI3ilZLkIqg6EKhC6E+q1IwG0GxlNJFBV0UQdCNtiI+FoVMF1GL1KTVYNMaOsGOtiaduWYyr3vvOcf/zvPcPEBoV6UfHM7/OOf/z/84P3AT1wP7R5M7TjzftxvXgIlRGMefTu54fVtyTJUbKuNwtv+nP7F98sXU+wMJbcJ1ncMDBxem8D+Q3Zca4VIby+Tlc1N/8Dgg0iT+oqlnTWLvaHzA5ObFJr91o4atm3Sf/JXWkUjUOcUE+1c1XqkAVWE8wyR7RDIM/zDPMfWXaD9cdxKH0rYdiEjn+pBq5NQlgbmcxKOD+n0xi30oPROWFYxCSjJWBgqOxPcXOK4UZEBvitDjtH3i01pLqiGLFVgsSXw5w3HhqoDjYhVKDnAxJ/D52dVOfAgh59vmGygz7XesgaWqxHfnOSYzHB5vyx1P4uQcxzezHFVPYs275TsmVzk6kl5Ypu0s1sH0ZYFcsW3wb6rWuQWBdSHl7EenT7urHFEzUKega607MarN7vsNdJmt3kEywvCUL7PWccSCHd1y1OiOM6qyg45u7GYYu9dA3GIQSoZ8mpoET5Jucw+Dxlb60X5T+YBXKt5nnSZ7Yqhfw91JDUmKz62Sg7Uy1HAaJWc7Bw1YHRLzOWD2H1FrELsijgUdK7j8Wl8kljCWm/wSUaVK3QtjDOEOiiLCGjqJShWNKCUiYcp7pJUgu+oW70yM1/9QIHU+Egn9sUC4FO9SQSBvc+TyXo1uokD0VZLl7bpc1wKm4pYVfUgVBLQC7GGV76QIeuImFvUI3pwbhKtkWjc0jGe24OdKb+1MZxgBCI5dKh9IXend/kXaelRZ1dFgmQKuYKhWGKKd9ajsog7dlOgKidaZFbDDbijFxjOVWnaa0vx4/1C50nbicb8G/mWORExHyJBgZttK1BKUWgnX8+tV/y7hDo1S2Hp7vMir99D+SyAiqinLvtGf8w80ZX4NPPr1fbeEasU2Q4yaot5ukqao40oUadZdWaCk0vzt2RBqPYTmoL3pg2yiyWtKDukuO6nGHqdIDKPRZeEteO/cZowc9WrrwMxtKJi3141QR8a7Az+FZDId4ANaKU6orK5TTeKx6eXhvSg98ArOLJq4tCRra6bUi+LI2ygOv4TODd3T/lkVXLKvVD7wDM8xPw2Z7lsS8lsKb5K7xeN3HcraP36deiFULh7ct+fZqOt5tbMOjfNSuWSXtFvf2Xbg/OHsq6leoenbmSZ3Uh1GuM7Tqu0Vg2N9TBw7OgAuPqYq1R/HpC015+UHd+3J4CZuCPwHXuiVaolseoIAAAAASUVORK5CYII=",aGo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH6SURBVHgBjZTLSxVRHMc/cxkIDOzSC+mlRGQFbXpsItpFUC6i2sQtooIoqEXQg7RFqahLQcW94EYEXfj6E1Tc6EpRcK6iC3VxEXQj3uM5zozzO+c6en/cOXPOud/zne/vdbyqj+qdUrSjyCrAPGaQb7W/cObiHWGDouKfV/VBLerNGknmAHE/5P4n8AVfDzXxpkt2qDJSycyQ9VWKokun4fMTeHYXLp8NMXOrMLUAbQOQX09EyHPe+fdKuWSfHsPfV1BxglSr74WOEUeMNt8l+6JVNb3mWGvJwc4udI/ZrmekbONaOWSxNbzUoTljq/RlkH89tw9sbsPMktjQmNvVcKoiXGZPwren8LMnSZovs3fnqk04nYe6lgRsbKgeHt1K1nX34EdPwuFLubUXbEKP0kJ2rfocVqYzB8CUA5RBKpOakZW/vHE4mdUdjs2uYHWQL1trcDIMcmwPamG4gcj38Hl40yacnBfdY6DZt0rFkk3ZTLQdXdCuXf8KwVrkTexyrNK0U2Nf+WS/dXaD9YQscVkEp0tXvqfLvTWXTlTYgub+sPXchHmVb/RUpL0Yva/ocvjzAu5fgxsXQ3BeJ21gHDpHYclRFpN6lbkwhmmXqNyX2SzBRoOJYSF2RQKs+w5RPqR/WP+CDLt8LxYJSgAOqauy5GbXwvT8/x5wwj+CcsBYvQAAAABJRU5ErkJggg==",oGo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH0SURBVHgBtZRPiE1xFMc/55kyZd7MMJlp8u9lMRML+ZcUFv6bsJBJRP4sppmwMTGRyKQsrKyIpJFko8TGExaKMGywMBTemBD1Zt7rZQj3/Zz7jqHe3KtXc+dbt+4593c+55zfub+fxDvcDnCngGpGphTIMYl35N+pkSAaZWIRwnxVx4hYJQFjYk8pKgv7UDMO2pcKm+fAxArz9fbDvTdw8q7j/UBwnD8UV+xcmICru4TK8j8gDfbyML3G7M852HrJ0d1LaRWeWGew848cx2/BwKD5p46HvUugbZHQuUZoOuv+X2FDLbz+Yu1umKXAh+avUnjZGEh/NXvnArj2HLLfoT4On3L/gH+H0jwbnrQL+5dJIXAIVqcBd/YIyVaojZuvq9tgB3Rtz2Fhy7wAoP/iaa1HV8PBlTbSSVWQbBMatfLGOuFmq1BfaesPrRCO6NpfGpP9FtJy0wy4uE0o1509fR/WzoRpE+DZB0s2dzK8TWuSl7B7sVXZcsWR7AkB+po/BW60CBVjzX6gB3NTl8Pz4PJ2YXmD+X1Y8wXH46JJD/uxn/bBqjOOtE729ivHRg3KafDgTwNff6EHVltcf244LLDCISW01Y9Z+OEVVSC2t30ZAhV6UlL9wX4/fRiskJCINSrADNEpFcPl91G4vkesjLI6fwNYBaPU3+0yYAAAAABJRU5ErkJggg==";gan({ethersConfig:Gan,chains:oze,projectId:Dan,enableAnalytics:!0,themeMode:"dark",themeVariables:{"--w3m-font-family":qt.typography.fontFamily,"--w3m-color-mix":qt.custom.modalBg,"--w3m-z-index":9999999999},tokens:Van,excludeWalletIds:["fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa","c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96"]});const Yse=t=>{const{handleCoinbaseLogin:e,handleMetamaskLogin:n,setShowLoginDrawer:r,initiallyOpen:a=!1,disabled:o=!1}=t,[s,l]=Y.useState(a),c=pqr();return Y.useEffect(()=>{l(a)},[a]),E.jsxs("div",{className:"loginOption walletLogin",children:[E.jsxs(Jt,{variant:"contained",color:"primary",size:"large",disabled:o,className:s?"btnFull open":"btnFull",onClick:()=>l(!s),children:[E.jsx("span",{className:"iconLeft",children:E.jsx(Emi,{})}),q.CONNECT_WALLET_TEXT,E.jsx("span",{className:"arrowIcon",children:E.jsx(Qy,{})})]}),E.jsx(jo,{in:s,timeout:"auto",unmountOnExit:!0,children:E.jsxs("ul",{className:"walletList",children:[E.jsxs(_$e,{className:o?"disabled":"",onClick:o?()=>{}:e,children:[E.jsx("img",{src:aGo,alt:"wallet-icon"}),q.COINBASE_TEXT]}),E.jsxs(_$e,{className:o?"disabled":"",onClick:o?()=>{}:n,children:[E.jsx("img",{src:iGo,alt:"wallet-icon"}),q.METAMASK_TEXT]}),E.jsxs(_$e,{className:o?"disabled":"",onClick:()=>{o||c.open(),r&&r(!1)},children:[E.jsx("img",{src:oGo,alt:"wallet-icon"}),q.WALLET_CONNECT_TEXT]})]})})]})},xut=gt.div`
  height: ${t=>t.pageHeight}px;
  padding: 75px 15px 15px 15px;
  position: relative;
  .providerWrapper {
    background: ${t=>t.theme.custom.boxBg};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    padding: 50px 50px 50px 0;
    width: 100%;
    max-width: 1080px;
    margin: auto;
    min-height: 595px;
    max-height: 100%;
    overflow: auto;
    .wrapperInner {
      position: relative;
    }
    .leftGrid {
      align-self: flex-start;
      position: sticky;
      top: 0;
    }
    .rightGrid {
      .rightContainer {
        display: flex;
        flex-direction: column;
        height: 100%;
      }
    }
    .divider {
      margin: 25px 0;
      height: 1px;
      background: #675b8c;
    }
    .leftContainer {
      text-align: center;
      display: flex;
      align-items: center;
      padding: 0 50px;
      justify-content: center;
      min-height: 465px;
      .infoContent {
        max-width: 405px;
        img {
          max-width: 300px;
        }
      }
      h2 {
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        font-size: ${t=>t.theme.custom.fontSize.font18};
        margin-top: 25px;
      }
      h3 {
        margin-top: 55px;
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        strong {
          color: ${t=>t.theme.custom.white.A11};
          font-weight: 600;
        }
      }
      p {
        color: ${t=>t.theme.custom.white.A12};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        strong {
          color: ${t=>t.theme.custom.white.A11};
          font-weight: ${t=>t.theme.custom.fontWeight.sm};
        }
      }
      .docsLink {
        color: white;
        text-decoration: underline;
      }
    }
    .rightContainer {
      .otherLoginOption {
        margin-top: 0;
        .formGroup {
          margin-bottom: 16px;
        }
        .walletLogin {
          .walletList {
            max-height: 165px;
          }
        }
      }
      .MuiToggleButtonGroup-root {
        .tabButton {
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          font-size: ${t=>t.theme.custom.fontSize.font12};
          ${t=>t.theme.breakpoints.down("sm")} {
            &:not(:last-child) {
              margin-right: 16px;
            }
          }
        }
        .tabButton.Mui-selected {
          &:after {
            width: 40px;
          }
        }
      }
      .joinCodeWrapper {
        margin: auto 0;
        .wrapperContent {
          text-align: center;
          padding: 20px;
        }
        .title {
          color: ${t=>t.theme.custom.white.A11};
          font-size: ${t=>t.theme.custom.fontSize.font20};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          margin-bottom: 16px;
        }
        .infotext {
          color: ${t=>t.theme.custom.greyText.A2};
          margin-bottom: 30px;
        }
        .joinCode {
          color: ${t=>t.theme.custom.white.A11};
          border: 1px solid rgba(153, 153, 153, 0.4);
          box-shadow: 0px 30px 30px 10px rgb(19 17 44 / 50%);
          border-radius: 12px;
          padding: 10px 16px;
          display: inline-block;
          margin-bottom: 30px;
          button {
            border: 0;
            height: 24px;
            width: 24px;
            box-shadow: unset;
            margin-left: 8px;
          }
        }
      }
    }
    ${t=>t.theme.breakpoints.down("lg")} {
      padding: 40px 40px 40px 0;
      .leftContainer {
        padding: 0 40px;
      }
    }
    ${t=>t.theme.breakpoints.down("md")} {
      padding: 30px;
      .leftGrid {
        position: unset;
      }
      .leftContainer {
        padding: 0;
        min-height: auto;
        margin-bottom: 40px;
      }
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      padding: 20px;
    }
  }
`,QA=t=>{const{label:e,placeholder:n=q.SIGN_PASSWORD_PLACEHOLDER,value:r,errorText:a,onChange:o,onKeyDown:s}=t,[l,c]=Y.useState(!1);return E.jsx(gr,{label:e,placeholder:n,type:l?"text":"password",onChange:o,required:!0,value:r,warningText:q.MAX_LENGTH_ERROR(q.LOGIN_PASSWORD_LABEL,oRt),maxValue:oRt,hasMax:!0,onKeyDown:s,errorText:a,className:"passwordInput",endAdornment:E.jsx(Kx,{position:"end",children:E.jsx(_n,{onClick:()=>c(!l),children:l?E.jsx(mmi,{}):E.jsx(soe,{})})}),autoComplete:"new-password"})},Eut=()=>{const t=(e,n=!0)=>{_a.logout(),localStorage.clear(),C2(e),ej(),sessionStorage.removeItem("sessionId"),n&&window.location.reload()};Y.useLayoutEffect(()=>{const e=localStorage.getItem("accessToken"),n=localStorage.getItem("refreshToken");e&&n&&t(!0,!0)},[])},sGo=()=>{var k,P,N,L,I,b;const{search:t}=Zh(),e=new URLSearchParams(t),n=e.get("joinCode"),r=e.get("subscriptionType")||q.SPACE_AND_TIME_MULTITENANT_STANDARD,a=xo(),[o,s]=Y.useState("registerEmail"),l=localStorage.getItem("walletName")||"",[c,u]=Y.useState(l),{height:d}=Is(),h=fN(),[f,p]=Y.useState({open:!1,userId:"",key:""}),[m,g]=Y.useState({userId:"",password:"",joinCode:n||"",isCheckboxTick:!1,userName:"",emailAddr:"",IsEmailValid:!0,isPassswordValid:!0,confirmPassword:""}),[v,A]=Y.useState(!1),y=ho();Eut(),Y.useEffect(()=>{var T;if(y&&(h!=null&&h.state)&&(h==null?void 0:h.state)!==q.ACTIVE){const M=((T=m==null?void 0:m.joinCode)==null?void 0:T.trim())||"";Vhn({joinCode:M}),a.push(Qt.landingPage)}},[h,y]),Y.useEffect(()=>{localStorage.setItem("walletName",c||"")},[c]),Y.useEffect(()=>{localStorage.setItem(q.JOINCODE_VALUE,n||""),localStorage.setItem(q.SUBSCRIPTION_TYPE,r)},[n,r]);const S=T=>{s(T.target.value)},x=(T,M)=>{const D=T.target.value||"";M===q.EMAIL_CHECK_KEY&&g(B=>({...B,IsEmailValid:Q6(D)})),M===q.INPUT_TYPE_PASSWORD&&g(B=>({...B,isPassswordValid:ez(D)})),g(B=>({...B,[M]:D}))},w=()=>{g(T=>({...T,userId:"",password:"",joinCode:"",confirmPassword:"",isPassswordValid:!0}))},_=async()=>{A(!0);const T={userId:m==null?void 0:m.userId.trim(),password:m==null?void 0:m.confirmPassword.trim(),joinCode:m==null?void 0:m.joinCode.trim()},M=await z_e(T);M&&A(!1),M===q.RESPONSE_SUCCESS_STATUS&&(w(),a.push(Qt.landingPage))},C=T=>{var M,D;T.key==="Enter"&&(M=m==null?void 0:m.userId)!=null&&M.trim()&&(D=m==null?void 0:m.joinCode)!=null&&D.trim()&&m!=null&&m.isPassswordValid&&m!=null&&m.confirmPassword&&!v&&_()};let R=q.MULTITENANT_STANDARD_PLAN_DESCRIPTION;return r===q.SPACE_AND_TIME_MULTITENANT_ENTERPRISE?R=q.MULTITENANT_ENTERPRISE_PLAN_DESCRIPTION:r===q.SPACE_AND_TIME_SINGLE_TENANT&&(R=q.SINGLE_TENANT_PLAN_DESCRIPTION),E.jsx(xut,{pageHeight:d,children:E.jsx("div",{className:"providerWrapper",children:E.jsx("div",{className:"wrapperInner",children:E.jsxs(Er,{container:!0,item:!0,children:[E.jsx(Er,{item:!0,xs:12,md:7,className:"leftGrid",children:E.jsx("div",{className:"leftContainer",children:E.jsxs("div",{className:"infoContent",children:[E.jsx("img",{src:$zo,alt:""}),E.jsx("h2",{children:q.WELCOME_MSG}),E.jsx("p",{children:R}),E.jsxs("h3",{children:[q.YOUR_JOIN_CODE," ",E.jsx("strong",{children:m==null?void 0:m.joinCode})," "]}),E.jsxs("p",{children:[q.HERE_IS_LINK,E.jsx("a",{href:q.REDIRECT_URL,className:"docsLink",target:"_blank",rel:"noreferrer",children:q.OUR_DEVELOPER}),q.LINK_DEVELOPER_TEXT]})]})})}),E.jsx(Er,{item:!0,xs:12,md:5,className:"rightGrid",children:E.jsxs("div",{className:"rightContainer",children:[y&&(h==null?void 0:h.state)===q.ACTIVE?E.jsx(Fu,{className:"joinCodeWrapper",children:E.jsxs("div",{className:"wrapperContent",children:[E.jsx("div",{className:"title",children:q.ALREADY_SUBSCRIBED}),E.jsx("p",{className:"infotext",children:q.JOINCODE_INFO_TEXT}),E.jsxs("div",{className:"joinCode",children:[n,E.jsx(y9,{textToCopy:n})]}),E.jsx("div",{className:"goBackBtn",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>a.push(Qt.landingPage),children:q.GO_BACK_TO_HOME})}),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:"https://space-and-time-labs.atlassian.net/servicedesk/customer/portals",target:"_blank",rel:"noreferrer",children:[q.NEED_HELP,E.jsx(oC,{})]})})]})}):E.jsxs(E.Fragment,{children:[E.jsx(Tp,{className:"pageToolbar",children:E.jsxs(eA,{value:o,exclusive:!0,onChange:S,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"registerEmail",children:q.REGISTER_WITH_EMAIL}),E.jsx(Xs,{size:"small",className:"tabButton",value:"registerWeb",children:q.REGISTER_WITH_WALLET})]})}),E.jsxs(Fu,{children:[o==="registerWeb"&&E.jsxs("div",{className:"otherLoginOption",children:[E.jsx("div",{className:"formContent",children:E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:T=>x(T,"userId"),value:m==null?void 0:m.userId,required:!0})})}),E.jsx(Yse,{initiallyOpen:((P=(k=m==null?void 0:m.userId)==null?void 0:k.trim())==null?void 0:P.length)>0||!1,disabled:!(((L=(N=m==null?void 0:m.userId)==null?void 0:N.trim())==null?void 0:L.length)>0)||!1,handleCoinbaseLogin:()=>{d2({ethereumWallet:"coinbase",wallet:$o.coinbase,setWalletName:u,setIsJoinCodeRequired:p,userId:m==null?void 0:m.userId,joinCode:m==null?void 0:m.joinCode})},handleMetamaskLogin:()=>{d2({ethereumWallet:"metamask",wallet:$o.metamask,setWalletName:u,setIsJoinCodeRequired:p,joinCode:m==null?void 0:m.joinCode})}})]}),o==="registerEmail"&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:q.JOINCODE_LABEL,value:m==null?void 0:m.joinCode,readOnly:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:T=>x(T,"userId"),value:m==null?void 0:m.userId,required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.LOGIN_PASSWORD_LABEL,value:m==null?void 0:m.password,onChange:T=>x(T,"password"),onKeyDown:C,errorText:!(m!=null&&m.isPassswordValid)&&(m!=null&&m.password)?q.INVAILD_PASSWORD:""})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.CHANGE_CONFIRM_PASSWORD_LABEL,value:m==null?void 0:m.confirmPassword,onChange:T=>x(T,"confirmPassword"),errorText:m!=null&&m.password&&(m!=null&&m.confirmPassword)&&(m==null?void 0:m.password)!==(m==null?void 0:m.confirmPassword)?q.PASSWORD_NOT_SAME:""})})]}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{variant:"contained",color:"primary",disabled:!((I=m==null?void 0:m.userId)!=null&&I.trim()&&((b=m==null?void 0:m.joinCode)!=null&&b.trim())&&(m!=null&&m.isPassswordValid)&&(m!=null&&m.confirmPassword))||(m==null?void 0:m.password)!==(m==null?void 0:m.confirmPassword)||v,onClick:_,children:q.SIGNUP_BUTTON_TEXT})}),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:"https://space-and-time-labs.atlassian.net/servicedesk/customer/portals",target:"_blank",rel:"noreferrer",children:[q.NEED_HELP,E.jsx(oC,{})]})})]})]})]}),E.jsx(MCe,{isJoinCodeRequired:f,onClose:()=>p({open:!1,userId:"",key:""}),handleLogin:T=>qse({inputs:T,setIsJoinCodeRequired:p,key:f.key}),parentJoinCode:n})]})})]})})})})},lGo="/assets/checksign-15ae025b.svg",cGo="/assets/CRON-expression-4eb03f8a.svg",qYn="/assets/select-dropdown-arrow-f34786e3.svg",YYn=gt.div`
  background: linear-gradient(
      0deg,
      rgba(11, 2, 38, 0.25),
      rgba(11, 2, 38, 0.25)
    ),
    radial-gradient(
      49.96% 96.12% at 100% 88.8%,
      #330c40 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(
      56.85% 96.19% at 0% 43.15%,
      #0d0d43 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(205.08deg, #a700aa 8.18%, #aa00a3 61.01%, #6800b9 84.06%);
  padding-top: 56px;
  &.contractPage.contractPageForm {
    .sendDataContainer {
      position: relative;
      .getDataWrapper {
        display: block;
      }
      .indexContract {
        position: absolute;
        top: 25px;
        right: 20px;
        ${t=>t.theme.breakpoints.down("md")} {
          right: 0;
        }
        @media (max-width: 660px) {
          position: unset;
          text-align: right;
        }
      }
    }
  }
  &.contractPage:not(.contractPageForm) {
    .sendDataWrapper {
      position: relative;
      .sendDataHeader {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 9;
        .gridleft {
          flex-basis: 100%;
          max-width: 100%;
        }
      }
      ${t=>t.theme.breakpoints.down("md")} {
        padding: 0;
        .sendDataHeader {
          left: 12px;
        }
      }
      @media (max-width: 420px) {
        .sendDataHeader {
          width: calc(100% - 24px);
        }
      }
    }
  }
  .sendDataWrapper {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center bottom;
    background-color: rgba(14, 7, 34, 0.5);
    display: flex;
    flex-direction: column;
    ${t=>t.theme.breakpoints.down("md")} {
      padding: 0 20px;
    }
  }
  .fixedLoader {
    & > div {
      position: fixed;
    }
  }
  .jobDescriptionWrapper {
    min-height: 50px;
    display: flex;
    align-items: center;
    .oracleJobDescription {
      position: relative;
      display: flex;
      align-items: center;
      gap: 24px;
      &::before {
        content: '';
        position: absolute;
        left: -20px;
        height: 100%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.1);
      }
      p {
        color: ${t=>t.theme.custom.greyText.A2};
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        margin-bottom: 0;
      }
    }
  }

  .sendDataHeader {
    margin-top: 20px;
    margin-bottom: 20px;
    .tabsviewActive {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      .tabsWrapper {
        background: #2d2447;
        box-shadow: 0px 30px 30px 10px rgba(19, 17, 44, 0.5);
        border-radius: 16px;
        padding: 4px 5px;
        display: flex;
        overflow: auto;
        .tabButton {
          color: ${t=>t.theme.custom.greyText.A2};
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          height: 40px;
          border-radius: 50px;
          &.active,
          &:hover {
            background-color: #241a37;
            color: ${t=>t.theme.custom.white.A11};
          }
        }
      }
      .viewActiveOracle {
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        span {
          cursor: pointer;
          text-decoration: underline;
          color: #9345ff;
          &:hover {
            color: ${t=>t.theme.custom.white.A11};
          }
        }
      }
    }
  }
  .sendDataCommonBg {
    background: #2d2447;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 20px;
  }
  .mySavedQueries {
    h2 {
      font-size: ${t=>t.theme.custom.fontSize.font18};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      color: ${t=>t.theme.custom.white.A11};
      margin-bottom: 4px !important;
      margin-left: 12px !important;
    }
    .mySavedQueriesHeader {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      gap: 8px;
      flex-wrap: wrap;
      .headerRight {
        display: flex;
        gap: 8px;
      }
      h2 {
        margin-bottom: 0 !important;
        margin-left: 0 !important;
      }
    }
  }
  .sendDataContainer {
    display: flex;
    flex-direction: column;
    min-height: ${t=>t.pageHeight}px;
    padding: 0;
    & > .MuiGrid-root {
      flex: 1;
    }
    h2 {
      color: ${t=>t.theme.custom.white.A1};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      font-size: ${t=>t.theme.custom.fontSize.font16};
      margin-bottom: 40px;
    }
    .leftSpacing {
      padding-left: 40px;
      ${t=>t.theme.breakpoints.down("md")} {
        padding-left: 0px;
      }
    }
    .rightSpacing {
      padding-right: 40px;
      ${t=>t.theme.breakpoints.down("md")} {
        padding-right: 0px;
      }
    }
    .mySavedQueries {
      h2 {
        font-size: ${t=>t.theme.custom.fontSize.font18};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        color: ${t=>t.theme.custom.white.A11};
        margin-bottom: 12px;
        margin-left: 12px;
      }
      .mySavedQueriesTable {
        background: #1f1638;
        padding: 0 10px;
        border-radius: 12px;
        min-height: 510px;
        display: flex;
        .tableContent {
          width: 100%;
        }
        .queryPagePagination {
          padding-bottom: 10px;
          .MuiOutlinedInput-root {
            background: ${t=>t.theme.custom.secondaryBg};
          }
        }
        .emptyBlock {
          margin: auto;
          .image {
            max-width: 75%;
            margin: 0 auto;
          }
          .emptyMsgTitle {
            font-size: ${t=>t.theme.custom.fontSize.font18};
            margin: 15px;
          }
        }
        .alertMessageBlock {
          margin: auto;
        }
        .defaultTable {
          .tableBody {
            .MuiTableRow-root:not(.disabled) {
              cursor: pointer;
            }
          }
        }
      }
    }
  }

  .sendDataRightWrapper {
    display: flex;
    flex-direction: column;
    .sendDataEditor {
      flex: 1;
      border: 1px solid rgba(225, 225, 225, 0.3);
      border-radius: 16px;
      overflow: hidden;
      .infoMessage {
        a {
          color: ${t=>t.theme.custom.blueActive};
          text-decoration: underline;
          &:hover {
            color: ${t=>t.theme.custom.white.A11};
          }
        }
      }
      .helptext {
        margin: 12px 0 8px;
        position: relative;
        display: inline-flex;
        align-items: center;
        background: ${t=>t.theme.custom.white.A4};
        color: ${t=>t.theme.custom.white.A11};
        border-radius: 8px;
        padding: 8px 8px 8px 12px;
        overflow: hidden;
        .infoIcon {
          font-size: 16px;
          margin-right: 8px;
          color: ${t=>t.theme.custom.pink};
        }
        a {
          color: ${t=>t.theme.custom.blueActive};
          text-decoration: underline;
          &:hover {
            color: ${t=>t.theme.custom.white.A11};
          }
        }
        &:before,
        &:after {
          content: '';
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          background: ${t=>t.theme.custom.pink};
        }
        &:before {
          left: 0;
          height: calc(100% - 12px);
          width: 3px;
        }
        &:after {
          left: 3px;
          width: 10px;
          height: calc(100% - 20px);
          filter: blur(10px);
        }
      }
      .hereclass {
        box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
        border-radius: 8px;
        padding-right: 56px;
        .buttonRow {
          position: absolute;
          top: 10px;
          right: 12px;
          z-index: 99;
          button {
            background: rgba(67, 52, 115, 0.55);
          }
        }
        .ace_editor {
          overflow: visible;
          .ace_scrollbar-v {
            right: -50px;
          }
        }
        .ace_scroller {
          font-size: ${t=>t.theme.custom.fontSize.font12};
        }
      }
    }
    .configureOracleJob {
      margin-bottom: 20px;
      padding: 0 8px 0 18px;
      display: flex;
      align-items: center;
      width: 100%;
      gap: 16px;
      .jobTitle {
        // padding-top: 4px;
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font10};
        float: left;
        min-width: 50px;
      }
      .oracleJobOption {
        display: flex;
        gap: 12px;
        flex: 1;
        overflow: auto;
        padding: 16px 0;
        .oracleJobItem {
          background: none;
          border: 1px solid transparent;
          padding: 6px 12px;
          height: auto !important;
          width: auto !important;
          border-radius: 100px;
          img {
            display: inline-block;
          }
          span {
            margin-left: 8px;
            color: ${t=>t.theme.custom.greyText.A2};
          }
          &:hover {
            background: #241a37;
            backdrop-filter: blur(50px);
            border: 1px solid rgba(255, 255, 255, 0.3);
          }
        }
        .currentItem {
          background: #241a37;
          backdrop-filter: blur(50px);
          border: 1px solid rgba(255, 255, 255, 0.3);
        }
      }
    }

    .sendContractWrapper {
      h3 {
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        text-align: center;
        margin-bottom: 10px;
        text-transform: capitalize;
      }
      .sendContractItem {
        background: #241a37;
        border-radius: 16px;
        padding: 12px;
        p {
          color: ${t=>t.theme.custom.greyText.A12};
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          font-size: ${t=>t.theme.custom.fontSize.font12};
          margin: 0;
        }
        .sendContractDescription {
          border-top: 1px solid rgba(255, 255, 255, 0.1);
          padding-top: 20px;
          margin-top: 20px;
          min-height: 130px;
        }
        button.MuiButtonBase-root {
          border: 0px none;
          background-color: #2d2447;
          border-radius: 30px;
          &:hover {
            background-color: ${t=>t.theme.custom.primaryBg};
          }
        }
        &.publishDataOnChain {
          .sendContractDescription {
            min-height: unset;
          }
        }
      }
    }
    .chainLinkWrapper {
      display: flex;
      justify-content: space-between;
      padding: 8px;
      margin-bottom: 12px;
      .darkButton {
        color: ${t=>t.theme.custom.greyText.A2};
        font-size: ${t=>t.theme.custom.fontSize.font10};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        background-color: transparent;
        border: 1px solid transparent;
        border-radius: 50px;
        margin-right: 15px;
        &:hover,
        &.active {
          color: ${t=>t.theme.custom.white.A11};
          background-color: #241a37;
          border: 1px solid rgba(255, 255, 255, 0.3);
        }
      }
    }
    .downloadEXE {
      padding: 20px;
      display: flex;
      gap: 16px;
      align-items: center;
      .downloadExeButton {
        svg {
          margin-right: 10px;
        }
      }
      p {
        margin: 0px;
      }
    }
    .chainLinkWrapper {
      display: flex;
      justify-content: space-between;
      .darkButton {
        color: ${t=>t.theme.custom.greyText.A2};
        font-size: ${t=>t.theme.custom.fontSize.font10};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        background-color: transparent;
        border: 1px solid transparent;
        border-radius: 50px;
        margin-right: 15px;
        &:hover,
        &.active {
          color: ${t=>t.theme.custom.white.A11};
          background-color: #241a37;
          border: 1px solid rgba(255, 255, 255, 0.3);
        }
      }
    }
  }
  .sendDataQueryEditor {
    .desktopEditorView {
      overflow: visible !important;
    }
    .queryEditor {
      padding: 0px;
      height: 520px;
      .Resizer.vertical {
        display: none;
      }
    }
    .Pane.vertical.Pane1 {
      max-width: 100%;
      margin: 0;
    }
    .mobileQueryEditor {
      .actionButton {
        margin-left: auto;
      }
    }
    .resultToolbar {
      padding-top: 6px;
      .MuiToggleButtonGroup-root {
        .tabButton {
          font-size: ${t=>t.theme.custom.fontSize.font12} !important;
        }
      }
    }
  }
  .editorOptimizeWrapper {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    .leftSpacing {
      flex: 1;
      > .helpText {
        margin: 0 0 20px;
      }
    }
  }
  .optimizeGasWrapper {
    background: ${t=>t.theme.custom.chatBot.A1};
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    border-radius: 24px 24px 0px 0px;
    padding: 20px;
    &.optimizeSmall {
      .MuiGrid-root {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
      }
    }
    .optimizeGasUnderHead {
      p {
        margin: 0;
        text-align: right;
        font-size: ${t=>t.theme.custom.fontSize.font10};
      }
    }
    .optimizeGasHead {
      justify-content: space-between;
      display: flex;
      align-items: center;
      h3 {
        display: inline-block;
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font18};
        margin-right: 16px;
        margin-bottom: 0;
        strong {
          font-weight: ${t=>t.theme.custom.fontWeight.sm};
        }
      }
      p {
        color: ${t=>t.theme.custom.greyText.A2};
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        font-size: ${t=>t.theme.custom.fontSize.font12};
      }
    }
    .optimizeGasInfo {
      display: flex;
      margin-top: 20px;
      gap: 18px;
      .optimizeGasEditor {
        border: 1px solid rgba(225, 225, 225, 0.3);
        backdrop-filter: blur(5px);
        border-radius: 16px;
        flex-grow: 1;
        overflow: auto;
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        padding: 15px;
        .innerGasEditor {
          max-height: 90px;
          overflow: auto;
          word-wrap: break-word;
          word-break: break-all;
        }
      }
      .optimizeGasButtonGroup {
        width: 110px;
        .MuiFormGroup-root {
          justify-content: center;
          align-items: center;
          width: 120px;
        }
        label {
          border-radius: 30px;
          height: 27px;
          margin-bottom: 5px;
          background-color: ${t=>t.theme.custom.primaryBg};
          position: relative;
          justify-content: center;
          margin-bottom: 4px;
          margin-right: 0px;
          width: 100%;
          &.Mui-disabled {
            cursor: not-allowed;
            background-color: ${t=>t.theme.custom.greyText.A12};
            color: ${t=>t.theme.custom.greyText.A13};
            opacity: 0.8;
          }
          .MuiFormControlLabel-label {
            color: ${t=>t.theme.custom.white.A11};
            font-size: ${t=>t.theme.custom.fontSize.font12};
            font-weight: ${t=>t.theme.custom.fontWeight.rg};
          }
          .MuiRadio-root {
            position: absolute;
            opacity: 0;
            width: 100%;
            padding: 0;
            height: 100%;
            &.Mui-checked + span {
              &:after {
                content: '';
                background-image: url(${lGo});
                height: 20px;
                width: 20px;
                position: absolute;
                top: -4px;
                right: -8px;
                background-size: 16px;
                border: 2px solid ${t=>t.theme.custom.primaryBg};
                border-radius: 100%;
              }
            }
          }
        }
        label:last-child {
          margin-bottom: 0px;
        }
      }
    }
  }
  .manageChainLinkWrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 90px);
    .manageChainLinkInner {
      background: #2d2447;
      box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
      border-radius: 24px;
      padding: 16px;
      margin-bottom: 20px;
      overflow: hidden;
      max-width: 90%;
      width: 100%;
      .tableWrapper {
        background: #1f1638;
        padding: 8px;
        border-radius: 12px;
      }
      .manageChainLinkHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        h2 {
          margin-bottom: 0px;
          color: ${t=>t.theme.custom.white.A11};
          font-size: ${t=>t.theme.custom.fontSize.font16};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
        }
        .chainLinkHeaderRight {
          display: flex;
          align-items: center;
          gap: 12px;
          .MuiButtonBase-root {
            svg {
              margin-right: 10px;
            }
          }
          .chainOwnerInfo {
            font-size: ${t=>t.theme.custom.fontSize.font14};
            font-weight: ${t=>t.theme.custom.fontWeight.rg};
            display: flex;
            flex-direction: column;
            text-align: right;
            .chainOwnerId {
              color: ${t=>t.theme.custom.white.A11};
            }
            .chainOwnerName {
              color: ${t=>t.theme.custom.greyText.A2};
            }
          }
        }
      }
    }
  }
  .getDataWrapper {
    flex: 1;
    display: flex;
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .sendDataQueryEditor {
      .queryEditor {
        height: 580px;
        .datasetSwitch {
          display: none;
        }
        .mobileEditorView .mobileEditorBottomSection .mobileQueryEditor {
          padding-top: 25px;
          .aiSwitch {
            right: 2px;
          }
        }
      }
    }
  }
`;gt.div`
  background: linear-gradient(
      0deg,
      rgba(11, 2, 38, 0.25),
      rgba(11, 2, 38, 0.25)
    ),
    radial-gradient(
      49.96% 96.12% at 100% 88.8%,
      #330c40 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(
      56.85% 96.19% at 0% 43.15%,
      #0d0d43 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(205.08deg, #a700aa 8.18%, #aa00a3 61.01%, #6800b9 84.06%);
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 60px;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  .publishDataWrapper {
    width: 94%;
  }
  .MuiInputBase-readOnly {
    cursor: not-allowed;
    .MuiInputBase-readOnly {
      cursor: not-allowed;
    }
  }
  .inputGroupDivider {
    position: relative;
    &:before {
      content: '';
      width: 1px;
      height: 100%;
      background-color: rgba(230, 230, 230, 0.1);
      position: absolute;
      left: -30px;
      top: 2px;
    }
    .MuiInputBase-readOnly {
      cursor: not-allowed;
      .MuiInputBase-readOnly {
        cursor: not-allowed;
      }
    }
    ${t=>t.theme.breakpoints.down("md")} {
      padding-top: 30px;
      margin-top: 34px;
      &:before {
        left: 0;
        height: 1px;
        width: 100%;
        top: 0;
      }
    }
  }
  .publishCommonGroup {
    h3 {
      color: ${t=>t.theme.custom.white.A11};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      font-size: ${t=>t.theme.custom.fontSize.font14};
    }
    .formLabel {
      color: ${t=>t.theme.custom.white.A11};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      font-size: ${t=>t.theme.custom.fontSize.font12};
    }
    .MuiGrid-root {
      ${t=>t.theme.breakpoints.down("md")} {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        .formGroup {
          padding-top: 12px;
        }
      }
    }
  }
  .publishDataHeader {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 16px;
    margin-bottom: 16px;
    .publishHeadding {
      h2 {
        color: ${t=>t.theme.custom.white.A1};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font18};
        margin: 0;
      }
    }
    .publishDiscription {
      position: relative;
      min-height: 55px;
      display: flex;
      align-items: center;
      gap: 16px;
      &::before {
        content: '';
        position: absolute;
        left: -20px;
        height: 100%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.1);
      }
      p {
        color: ${t=>t.theme.custom.greyText.A2};
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        margin-bottom: 0;
      }
    }
  }
  .MuiInputBase-root {
    background-color: #2d2447;
    height: 52px;
    border-radius: 8px;
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
  }
  .publishDataChainInner {
    background: #2d2447;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    .publishDataCommonBg {
      background: #241a37;
      padding: 20px;
      border-radius: 16px;
      &.timeScheduleArea {
        margin: 16px 0 25px;
      }
    }
  }
  .parametersInputGroup {
    display: flex;
    gap: 16px;
    .formGroup {
      width: 33.33%;
    }
  }

  .publishRadioButton {
    margin-top: 30px;
    .formLabel {
      display: inline-block;
      margin-bottom: 16px;
    }
    .MuiFormGroup-root {
      justify-content: flex-start;
      flex-direction: row;
      gap: 12px;
    }
    label {
      position: relative;
      justify-content: center;
      margin: 0px;
      .MuiFormControlLabel-label {
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>t.theme.custom.fontSize.font12};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
      }
      .MuiRadio-root {
        position: absolute;
        opacity: 0;
        width: 100%;
        padding: 0;
        margin: 0px;
        height: 100%;
        & + span {
          background-color: #2c2347;
          box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
          backdrop-filter: blur(50px);
          border-radius: 27px;
          display: inline-block;
          width: 100%;
          text-align: center;
          padding: 6px 12px;
        }
        &.Mui-checked + span {
          background-color: ${t=>t.theme.custom.primaryBg};
        }
      }
    }
  }
  .cronExpression {
    position: relative;
    &:before {
      content: '';
      position: absolute;
      left: -30px;
      height: 100%;
      width: 1px;
      background-color: rgba(255, 255, 255, 0.1);
    }
    h3 {
      color: ${t=>t.theme.custom.white.A11};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      font-size: ${t=>t.theme.custom.fontSize.font20};
    }
    h4 {
      color: ${t=>t.theme.custom.white.A11};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      font-size: ${t=>t.theme.custom.fontSize.font12};
      margin-top: 30px;
      margin-bottom: 18px;
    }
    .CronSchedules {
      p {
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font12};
      }
    }
    .CronSpecialListing {
      ul {
        padding: 0;
        li {
          list-style: none;
          color: ${t=>t.theme.custom.white.A11};
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          font-size: ${t=>t.theme.custom.fontSize.font12};
        }
      }
    }
    ${t=>t.theme.breakpoints.down("md")} {
      padding-top: 30px;
      margin-top: 34px;
      &:before {
        left: 0;
        height: 1px;
        width: 100%;
        top: 0;
      }
    }
  }
  .CronSchedules {
    ul {
      position: relative;
      height: 180px;
      padding-left: 75px;
      margin: 0;
      &:before {
        content: '';
        background-image: url(${cGo});
        background-repeat: no-repeat;
        position: absolute;
        left: 0;
        top: 9px;
        height: 164px;
        width: 77px;
      }
      li {
        padding-bottom: 2px;
        list-style: none;
        color: ${t=>t.theme.custom.white.A11};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        font-size: ${t=>t.theme.custom.fontSize.font12};
      }
    }
  }
  .cronExpressionInput {
    .formGroup {
      .MuiFormControl-root {
        max-width: 80%;
        ${t=>t.theme.breakpoints.down("md")} {
          width: 100%;
        }
      }
    }
  }
  .fixedLoader {
    & > div {
      position: fixed;
    }
  }
`;const uGo=gt.div`
  background: ${t=>t.theme.custom.gredientBg};
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 56px;
  justify-content: center;
  width: 100%;
  .manageChainLinkWrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    .manageChainLinkInner {
      min-height: ${t=>t.pageHeight-40}px;
      background: #2d2447;
      box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
      border-radius: 24px;
      padding: 16px;
      overflow: hidden;
      max-width: 90%;
      width: 100%;
      flex-direction: column;
      display: flex;
      .tableWrapper {
        background: #1f1638;
        padding: 8px;
        border-radius: 12px;
        flex: 1;
      }
      .manageChainLinkHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        row-gap: 16px;
        h2 {
          margin-bottom: 0px;
          color: ${t=>t.theme.custom.white.A11};
          font-size: ${t=>t.theme.custom.fontSize.font16};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
        }
        .chainLinkHeaderRight {
          display: flex;
          align-items: center;
          gap: 12px;
          .MuiButtonBase-root {
            svg {
              margin-right: 10px;
            }
          }
          .chainOwnerInfo {
            font-size: ${t=>t.theme.custom.fontSize.font14};
            font-weight: ${t=>t.theme.custom.fontWeight.rg};
            display: flex;
            flex-direction: column;
            text-align: right;
            .chainOwnerId {
              color: ${t=>t.theme.custom.white.A11};
            }
            .chainOwnerName {
              color: ${t=>t.theme.custom.greyText.A2};
            }
          }
          ${t=>t.theme.breakpoints.down("sm")} {
            flex-wrap: wrap;
            .refreshButton {
              width: 100%;
              justify-content: start;
            }
          }
        }
      }
    }
    .commonDropdown {
      .MuiFormControl-root {
        .MuiInputBase-root {
          background: transparent;
          box-shadow: none;
          border-radius: 8px;
          border: 1px solid #675b8c;
          color: ${t=>t.theme.custom.white.A11};
        }
      }
    }
  }
  .tableWrapper {
    .tableAction {
      .actionButtonGroup {
        button {
          width: 26px;
          height: 26px;
        }
      }
    }
    .tableAction button {
      width: auto;
    }
    .oracleAction {
      display: flex;
      align-items: center;
      gap: 8px;
      .statusCircle {
        height: 6px;
        width: 6px;
        border-radius: 50%;
        display: inline-block;
        &.active {
          background-color: #7fce87;
        }
        &.in_progress {
          background-color: #1aa6b7;
        }
        &.cancelled {
          background-color: #ff4949;
        }
        &.paused {
          background-color: #eabc4e;
        }
      }
    }
    .tableFormRow {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.tableHoverBg}};
      border-radius: 8px;
      display: flex;
      align-items: center;
      .MuiFormControl-root {
        input[type='number'],
        input[type='number']::-webkit-outer-spin-button,
        input[type='number']::-webkit-inner-spin-button {
          -webkit-appearance: none;
          appearance: none;
        }
      }
      .descText {
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
        font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
        line-height: 15px;
        white-space: normal;
        padding: 0 24px;
      }
      .tableFieldGroup {
        display: flex;
        align-itme: center;
        gap: 20px;
        .numberField,
        .joinCodeField {
          .MuiFormControl-root {
            vertical-align: middle;
            max-width: 100%;
            margin: 0;
          }
        }
      }
      .tableRowButtonGroup {
        button + button {
          margin-left: 12px;
        }
      }
      .numberField {
        min-width: 125px;
      }
      .joinCodeField {
        min-width: 400px;
      }
      .MuiFormControl-root {
        flex: 0 0 225px;
        max-width: 225px;
        margin-left: 20px;
        .MuiInputAdornment-root {
          background: transparent;
          p {
            font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
            text-transform: uppercase;
            color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
          }
        }
      }
    }
  }
  .selectDropdown {
    .MuiInputBase-root {
      background-color: transparent;
      backdrop-filter: blur(15px);
      border-radius: 8px;
      min-width: 110px;
      height: 36px;
      border: 1px solid #675b8c;
      color: #e6e6e6;
      box-shadow: unset;
      .MuiSelect-select {
        padding: 10px 12px;
        font-size: ${t=>t.theme.custom.fontSize.font12};
        position: relative;
        &:before {
          content: '';
          background-image: url(${qYn});
          position: absolute;
          right: 14px;
          height: 6px;
          top: 50%;
          transform: translateY(-50%);
          width: 10px;
        }
      }
      .MuiSelect-select[aria-expanded='true'] {
        &:before {
          transform: translateY(-50%) rotate(180deg);
        }
      }
      svg {
        display: none;
      }
      fieldset {
        display: none;
      }
    }
  }
  .tableAction {
    .savedOracleAction {
      button {
        padding: 0 8px;
        height: 30px;
        svg {
          max-width: 20px;
          margin-right: 8px;
          width: 15px;
          height: 15px;
        }
      }
    }
  }

  .fixedLoader {
    & > div {
      position: fixed;
    }
  }
`;gt.div`
  background: ${t=>t.theme.custom.gredientBg};
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 56px;
  justify-content: center;
  width: 100%;
  .savedOracleWrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
    justify-content: center;
    width: 100%;
    .savedOracleInner {
      min-height: ${t=>t.pageHeight-40}px;
      background: #2d2447;
      box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
      border-radius: 24px;
      padding: 16px;
      overflow: hidden;
      max-width: 90%;
      width: 100%;
      flex-direction: column;
      display: flex;
      .tableWrapper {
        background: ${t=>t.theme.custom.boxBg};
        padding: 8px;
        flex: 1;
        border-radius: 12px;
      }
      .savedOracleHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        row-gap: 16px;
        h2 {
          margin-bottom: 0px;
          color: ${t=>t.theme.custom.white.A11};
          font-size: ${t=>t.theme.custom.fontSize.font16};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
        }
        .savedOracleHeaderRight {
          display: flex;
          align-items: center;
          gap: 12px;
          .MuiButtonBase-root {
            svg {
              margin-right: 10px;
            }
          }
          .chainOwnerInfo {
            font-size: ${t=>t.theme.custom.fontSize.font14};
            font-weight: ${t=>t.theme.custom.fontWeight.rg};
            display: flex;
            flex-direction: column;
            text-align: right;
            .chainOwnerId {
              color: ${t=>t.theme.custom.white.A11};
            }
            .chainOwnerName {
              color: ${t=>t.theme.custom.greyText.A2};
            }
          }
          .commonDropdown {
            .MuiFormControl-root {
              .MuiInputBase-root {
                background: transparent;
                box-shadow: none;
                border-radius: 8px;
                border: 1px solid #675b8c;
                color: ${t=>t.theme.custom.white.A11};
              }
            }
          }
          ${t=>t.theme.breakpoints.down("sm")} {
            flex-wrap: wrap;
            .refreshButton {
              width: 100%;
              justify-content: start;
            }
          }
        }
      }
    }
  }
  .tableWrapper {
    .upkeepAutomationLink {
      cursor: pointer;
      &:hover {
        text-decoration: underline;
      }
    }
    .actionColumn {
      min-width: 210px;
    }
    .tableAction button {
      width: auto;
    }
    .oracleAction {
      display: flex;
      align-items: center;
      gap: 8px;
      .statusCircle {
        height: 6px;
        width: 6px;
        border-radius: 50%;
        display: inline-block;
        &.active {
          background-color: #7fce87;
        }
        &.in_progress {
          background-color: #1aa6b7;
        }
        &.cancelled {
          background-color: #ff4949;
        }
        &.paused {
          background-color: #eabc4e;
        }
        &.failed {
          background-color: #7e818c;
        }
      }
    }
    .tableFormRow {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.tableHoverBg}};
      border-radius: 8px;
      display: flex;
      align-items: center;
      .MuiFormControl-root {
        input[type='number'],
        input[type='number']::-webkit-outer-spin-button,
        input[type='number']::-webkit-inner-spin-button {
          -webkit-appearance: none;
          appearance: none;
        }
      }
      .descText {
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
        line-height: 15px;
        min-width: 380px;
        white-space: normal;
        padding: 0 24px;
      }
      .MuiFormControl-root {
        flex: 0 0 225px;
        max-width: 225px;
        margin-left: 20px;
        .MuiInputAdornment-root {
          background: transparent;
          p {
            font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
            text-transform: uppercase;
            color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
          }
        }
      }
      .formBtn {
        height: 36px;
        border-radius: 8px;
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
        margin-left: 20px;
        &.submit {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
          box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
          border: 1px solid transparent;
          &:hover {
            background: transparent;
            border-color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
            box-shadow: inset 0 0 0.875rem 1px rgb(75 0 178 / 25%),
              inset 0 0 0.5rem 1px rgb(206 184 217 / 20%),
              0 0 0.5rem 1px rgb(206 184 217 / 20%),
              0 0 0.875px 1px rgb(75 0 178 / 25%);
          }
        }
        &.cancel {
          background: transparent;
          border: 1px solid ${t=>t.theme.custom.white.A14};
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
          box-shadow: unset;
          color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
          &:hover {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
          }
        }
      }
    }
  }
  .selectDropdown {
    .MuiInputBase-root {
      background-color: transparent;
      backdrop-filter: blur(15px);
      border-radius: 8px;
      min-width: 110px;
      height: 36px;
      border: 1px solid #675b8c;
      color: #e6e6e6;
      box-shadow: unset;
      .MuiSelect-select {
        padding: 10px 12px;
        font-size: ${t=>t.theme.custom.fontSize.font12};
        position: relative;
        &:before {
          content: '';
          background-image: url(${qYn});
          position: absolute;
          right: 14px;
          height: 6px;
          top: 50%;
          transform: translateY(-50%);
          width: 10px;
        }
      }
      .MuiSelect-select[aria-expanded='true'] {
        &:before {
          transform: translateY(-50%) rotate(180deg);
        }
      }
      svg {
        display: none;
      }
      fieldset {
        display: none;
      }
    }
  }

  .tableAction {
    .savedOracleAction {
      button {
        padding: 0 8px;
        height: 30px;
        svg {
          max-width: 20px;
          width: 15px;
          height: 15px;
        }
      }
    }
  }

  .fixedLoader {
    & > div {
      position: fixed;
    }
  }
`;var Sut={},dGo=As;Object.defineProperty(Sut,"__esModule",{value:!0});var JYn=Sut.default=void 0,hGo=dGo(Ps()),F9t=E;JYn=Sut.default=(0,hGo.default)([(0,F9t.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,F9t.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");const fGo=gt.div`
  && {
    .MuiStepper-root {
      padding-bottom: 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      justify-content: center;
      .MuiStep-root {
        &:last-child {
          .stepIcon {
            display: none;
          }
        }
        .MuiStepLabel-root {
          .MuiStepLabel-iconContainer {
            padding-right: 12px;
            .stepIcon {
              display: flex;
              height: 24px;
              width: 24px;
              align-items: center;
              justify-content: center;
              border-radius: 50%;
              color: ${t=>t.theme.custom.white.A11};
            }
            .MuiSvgIcon-root {
              color: #38314a;
              box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
            }
            &.Mui-completed {
              .stepComplete {
                background: ${t=>t.theme.custom.primaryBg};
              }
            }
            &.Mui-error {
              .stepError {
                background: ${t=>t.theme.custom.red};
                svg {
                  height: 16px;
                  width: 16px;
                }
              }
            }
            &.Mui-active {
              .MuiSvgIcon-root {
                color: #9856f4;
              }
            }
          }
          .MuiStepLabel-labelContainer {
            color: ${t=>t.theme.custom.greyText.A2};
            .MuiStepLabel-label {
              font-size: ${t=>t.theme.custom.fontSize.font12};
              font-weight: ${t=>t.theme.custom.fontWeight.sm};
              display: flex;
              align-items: center;
              .stepIcon {
                font-size: ${t=>t.theme.custom.fontSize.font16};
                margin-left: 24px;
                margin-right: 8px;
              }
              &.Mui-active,
              &.Mui-completed {
                color: ${t=>t.theme.custom.white.A11};
              }
            }
          }
          &:not(.Mui-disabled) {
          }
        }
      }
      .MuiStepConnector-root {
        display: none;
      }
    }
  }
`,pGo=gt.div`
  && {
    text-align: center;
    padding-top: 30px;
    h1 {
      font-size: ${t=>t.theme.custom.fontSize.font30};
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      color: ${t=>t.theme.custom.white.A11};
      margin-bottom: 10px;
      line-height: 37px;
    }
    p {
      color: ${t=>t.theme.custom.greyText.A2};
      margin-bottom: 15px;
      .addressLink {
        text-decoration: underline;
        color: ${t=>t.theme.custom.white.A11};
      }
    }
    .transactionAddress {
      display: inline-block;
      position: relative;
      padding: 18px;
      border: 1px solid rgba(153, 153, 153, 0.4);
      box-shadow: 0px 30px 30px 10px rgb(19 17 44 / 50%);
      border-radius: 16px;
      margin-top: 30px;
      word-break: break-word;
      .title {
        color: ${t=>t.theme.custom.greyText.A2};
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: #221b36;
        padding: 5px 10px;
      }
      .addressLink {
        color: ${t=>t.theme.custom.white.A11};
        &:hover {
          text-decoration: underline;
        }
      }
    }
    .closeBtn {
      margin-top: 30px;
    }
  }
`;function mGo(t){const{completed:e,error:n}=t;return n?E.jsx("span",{className:"stepIcon stepError",children:E.jsx(Lmi,{})}):e?E.jsx("span",{className:"stepIcon stepComplete",children:E.jsx(Mme,{})}):E.jsx(DYt,{...t})}function gGo(t){const{steps:e=[],activeStep:n,isStepError:r}=t;return E.jsx(fGo,{children:E.jsx(tNr,{activeStep:n,children:e.map(a=>E.jsx(wMr,{children:E.jsxs(HMr,{StepIconComponent:mGo,error:r,children:[a.label,E.jsx(JYn,{className:"stepIcon"})]})},a.id.toString()))})})}const vGo=t=>{const{url:e,title:n,urlText:r}=t;return E.jsxs("div",{className:"transactionAddress",children:[E.jsx("div",{className:"title",children:n}),E.jsx("a",{href:e,target:"_blank",rel:"noreferrer",className:"addressLink",children:r})]})},ZYn=t=>{const{handleClose:e,visible:n,transactionHash:r="",activeStep:a,confirmationTitle:o,subTitle:s="",steps:l}=t,c=yV(),u=()=>c?$ga(r,c):"";return E.jsxs(lf,{visible:n,isHeader:!1,className:"stepperModal",children:[E.jsx(gGo,{steps:l,activeStep:a,isStepError:o===ga.TRANSACTION_REJECTED||o===ga.WALLET_NOT_WHITELISTED}),E.jsxs(pGo,{className:"stepperContent",children:[E.jsx("h1",{children:o}),o!==ga.TRANSACTION_REJECTED&&a===0?E.jsxs("p",{children:[s,o===ga.WALLET_NOT_WHITELISTED&&E.jsxs(E.Fragment,{children:[E.jsx("a",{href:ga.BETA_ACCESS_URL,target:"_blank",rel:"noreferrer",className:"addressLink",children:q.CLICK_HERE})," ",ga.WALLET_NOT_WHITELISTED_SUBTITLE_2]})]}):a===1&&E.jsx("p",{children:ga.PLEASE_WAIT_FOR_TRANSACTION_CONFIRMATION}),r&&E.jsx(vGo,{title:ga.VIEW_YOUR_TRANSACTION_HERE,url:u(),urlText:r}),E.jsx("div",{className:"closeBtn",children:E.jsx(Jt,{onClick:e,variant:"contained",color:"primary",children:q.CLOSE})})]})]})},AGo=t=>{const{changeNetworkHandler:e,options:n,value:r}=t,a=o=>{e(o.target.value)};return E.jsxs(Ba,{value:n.includes(r)?r:"",onChange:a,fullWidth:!0,children:[E.jsx(Dn,{value:"",className:"selectPlaceholder",children:ga.SELECT_NETWORK}),n.map(o=>E.jsx(Dn,{value:o,children:o},o))]})},yGo=t=>{const{onClick:e}=t;return E.jsxs(Jt,{className:"refreshButton",variant:"contained",color:"secondary",onClick:e,children:[E.jsx(Mmi,{}),q.REFRESH]})},bGo=t=>{const{updateSubscriptionList:e}=t,n=yV(),r=localStorage.getItem("userId")||"",[a,o]=Y.useState(!1),[s,l]=Y.useState(0),[c,u]=Y.useState(""),[d,h]=Y.useState(""),[f,p]=Y.useState(""),m=A=>{h(ga.WAITING_FOR_CONFIRMATION),u(A),l(2)},g=()=>{l(0),o(!1),u("")},v=async()=>{try{if(n===Of.SEPOLIA||n===Of.MUMBAI){if(o(!0),h(ga.CHECK_WALLET_WHITELIST),p(ga.CHECK_WALLET_WHITELIST_SUBTITLE),!await but(n)){h(ga.WALLET_NOT_WHITELISTED),p(ga.WALLET_NOT_WHITELISTED_SUBTITLE);return}l(1),h(WU.create_subscription.title),p(WU.create_subscription.subTitle);const y=await Xzo(n,m);if(y&&y.subscriptionId){l(3),h(ga.SUBSCRIPTION_CREATED_SUCCESSFULLY);const S={address:r,chain:z3[n].toString(),subscription_id:y.subscriptionId},x=await j0a(S),w=await WYn(n,x.subscription_id),_=await QYn(w[0]||""),C={subscription_id:x.subscription_id,consumers:w.consumers&&Array.isArray(w.consumers)&&w.consumers.length>0&&w.consumers||[],balance:_};e(C)}else h(ga.TRANSACTION_REJECTED)}else Kn(ga.PLEASE_SELECT_NETWORK)}catch(A){console.log(A)}};return E.jsxs(E.Fragment,{children:[E.jsxs(Jt,{className:"downloadExeButton",variant:"contained",color:"primary",onClick:v,children:[E.jsx(ED,{}),ga.CREATE]}),E.jsx(ZYn,{visible:a,handleClose:g,transactionHash:c,activeStep:s,confirmationTitle:d,subTitle:f,steps:Dga})]})},xGo=t=>{const e=xo(),{updateSubscriptionList:n,setIsLoading:r,handleGetChainLinkSubscription:a}=t,o=yV(),s=[Of.SEPOLIA,Of.MUMBAI],l=async c=>{r(!0),await rbe(c)&&XX(c),r(!1)};return Y.useEffect(()=>{o||l(ibe())},[]),E.jsxs("div",{className:"manageChainLinkHeader",children:[E.jsx("h2",{children:ga.CHAINLINK_SUBSCRIPTIONS_TITLE}),E.jsxs("div",{className:"chainLinkHeaderRight",children:[E.jsx(yGo,{onClick:a}),E.jsx("div",{className:"commonDropdown",children:E.jsx(AGo,{changeNetworkHandler:l,value:o,options:s})}),E.jsx(bGo,{updateSubscriptionList:n}),E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>{e.goBack()},children:ga.BACK})]})]})},EGo=t=>{let e=t;return typeof t=="number"&&(e=t.toString()),t&&typeof e=="string"&&e.includes(",")&&(e=e.replace(/,/g,"|")),e},XYn=t=>{let e="";if(!(t.length>0))return;for(const a of t){const o=Object.keys(a);for(const s of o){const l=EGo(a[s]);e=e.concat(`${l}`),(o.indexOf(a)!==o.length-1||t.indexOf(a)!==t.length-1)&&(e=e.concat(","))}}e=e.slice(0,-1);const n=Z2.Buffer.from(e,"utf8"),r=Z2.Buffer.byteLength(n);if(!(!n||!e||!(r<=256)))return e},SGo=t=>{const e=XYn(t);if(!e)return;const n=Let.encode(["string"],[e]);if(n)return n},wGo=t=>{try{const e=BigInt(ehn.MAX_UINT_VALUE);if(!(t.length>0))return;const n=t[0],r=Object.keys(n);return r.length>0&&bVe(n[r[0]].toString())&&Number.isInteger(parseInt(n[r[0]]))&&Math.round(parseFloat(n[r[0]]))<e?Math.round(parseFloat(n[r[0]])):r.length>1&&bVe(n[r[1]].toString())&&Number.isInteger(parseInt(n[r[1]]))&&Math.round(parseFloat(n[r[1]]))<e?Math.round(parseFloat(n[r[1]])):void 0}catch(e){console.log(e,"Err")}},_Go=t=>{let e="";if(!(t.length>0))return;e=t.map(a=>Object.keys(a).map(o=>`${a[o]}`));const n=Z2.Buffer.from(JSON.stringify(e),"utf8"),r=Z2.Buffer.byteLength(n);if(!(!n||!e||!(r<=Number(ehn.MAX_STRING2D_BUFFER_SIZE))))return e},TGo=async t=>{try{const e=hVr(t),n=window.ethereum?new sP(window.ethereum):void 0,r=await(n==null?void 0:n.getCode(t));if(e&&r!=="0x")return!0}catch{return!1}},CGo=t=>{var S;const{editableRow:e,updateConsumers:n,setEditableRows:r,editableRows:a,setIsProgressModalOpen:o,setTransactionHash:s,setActiveStep:l,setEditActionConfirmationTitle:c,setSubTitle:u}=t,[d,h]=Y.useState(""),[f,p]=Y.useState(""),m=yV(),g=x=>{s(x),c(ga.WAITING_FOR_CONFIRMATION),l(1)},v=async()=>{if(e.editable_field===m0.add_fund.key&&(!f||!bVe(f)))return Kn(ga.PLEASE_ENTER_VALID_AMOUNT),!1;if(e.editable_field===m0.remove_consumer.key&&!d)return Kn(ga.PLEASE_SELECT_CONSUMER_ADDRESS),!1;if(e.editable_field===m0.add_consumer.key){if(!d)return Kn(ga.PLEASE_ENTER_CONSUMER_ADDRESS),!1;if(!await TGo(d))return Kn(ga.PLEASE_ENTER_VALID_CONSUMER_ADDRESS),!1}return!0},A=async()=>{var _;if(!await v())return;o(!0);let x;if(l(0),c(WU[e.editable_field].title),u(WU[e.editable_field].subTitle),!await but(m)){c(ga.WALLET_NOT_WHITELISTED),u(ga.WALLET_NOT_WHITELISTED_SUBTITLE);return}e.editable_field===m0.add_consumer.key?x=await tGo(e.subscription_id.toString(),m,d,g):e.editable_field===m0.remove_consumer.key?x=await nGo(d,e==null?void 0:e.subscription_id,m,g):x=await eGo((_=e==null?void 0:e.subscription_id)==null?void 0:_.toString(),f,m,g),x?(c(m0[e.editable_field].successMessage),l(3),n(e==null?void 0:e.subscription_id),r([])):c(ga.TRANSACTION_REJECTED)},y=()=>{r([...a.filter(x=>x.subscription_id!==e.subscription_id)])};return E.jsxs("div",{className:"tableFormRow ",children:[E.jsx("div",{className:"descText",children:m0[e==null?void 0:e.editable_field].label}),E.jsxs("div",{className:"tableFieldGroup",children:[E.jsx("div",{className:"numberField",children:E.jsx(gr,{placeholder:e==null?void 0:e.subscription_id,disabled:!0,value:e==null?void 0:e.subscription_id,className:"inputField"})}),E.jsxs("div",{className:"joinCodeField",children:[e.editable_field===m0.add_consumer.key&&E.jsx(gr,{placeholder:ga.PLEASE_ENTER_CONSUMER_ADDRESS,value:d,onChange:x=>{var w;h((w=x.target)==null?void 0:w.value)},className:"inputField"}),e.editable_field===m0.add_fund.key&&E.jsx(gr,{placeholder:ga.PLEASE_ENTER_FUND_AMOUNT,value:f,onChange:x=>{var w;p((w=x.target)==null?void 0:w.value)},className:"inputField"}),e.editable_field===m0.remove_consumer.key&&E.jsxs(Ba,{value:d||"",onChange:x=>{var w;h((w=x.target)==null?void 0:w.value)},fullWidth:!0,children:[E.jsx(Dn,{value:"",className:"selectPlaceholder",children:ga.SELECT_CONSUMER_ADDRESS}),(S=e==null?void 0:e.consumers)==null?void 0:S.map(x=>E.jsx(Dn,{value:x,children:x}))]})]})]}),E.jsxs("div",{className:"tableRowButtonGroup",children:[E.jsx(Jt,{variant:"contained",color:"primary",onClick:A,className:"formBtn submit",children:q.SUBMIT}),E.jsx(Jt,{variant:"contained",color:"secondary",onClick:y,className:"formBtn cancel",children:q.CANCEL})]})]})},kGo=t=>{const{subscriptions:e,isChainlinkSubsLoading:n,updateSubscriptionConsumers:r,handleGetChainLinkSubscription:a,isLoading:o}=t,s=yV(),{height:l,headerHeight:c}=Is(),d=(l-c||500)-190||350,[h,f]=Y.useState([]),[p,m]=Y.useState(!1),[g,v]=Y.useState(""),[A,y]=Y.useState(0),[S,x]=Y.useState(""),[w,_]=Y.useState(""),C=L=>{x(ga.WAITING_FOR_CONFIRMATION),v(L),y(1)},R=async L=>{if(m(!0),x(WU.delete_subsctiption.title),_(WU.delete_subsctiption.subTitle),!await but(s)){x(ga.WALLET_NOT_WHITELISTED),_(ga.WALLET_NOT_WHITELISTED_SUBTITLE);return}await rGo(L,s,C)?(x(ga.SUBSCRIPTION_DELETED_SUCCESSFULLY),y(2),a()):x(ga.TRANSACTION_REJECTED)},k=()=>{y(0),m(!1),f([]),v(""),x(""),_("")},P=L=>{var b;const I=h.find(T=>L.subscription_id&&L.subscription_id===T.subscription_id);return I?E.jsx(CGo,{editableRow:I,editableRows:h,setIsProgressModalOpen:m,updateConsumers:r,setEditableRows:f,setTransactionHash:v,setActiveStep:y,setEditActionConfirmationTitle:x,setSubTitle:_}):E.jsxs("div",{className:"actionButtonGroup",children:[E.jsx(_n,{onClick:()=>{f(h.concat({editable_field:m0.add_fund.key,subscription_id:L.subscription_id,balance:L.balance})),x(ga.FUND_ADDED_SUCCESSFULLY)},tooltip:ga.ADD_FUND,children:E.jsx(Imi,{})}),E.jsx(_n,{onClick:()=>{f(h.concat({editable_field:m0.add_consumer.key,subscription_id:L.subscription_id,consumers:L.consumers})),x(ga.CONSUMER_ADDED_SUCCESSFULLY)},tooltip:ga.ADD_CONSUMER,children:E.jsx(Pmi,{})}),((b=L==null?void 0:L.consumers)==null?void 0:b.length)>0&&E.jsx(_n,{onClick:()=>{f(h.concat({editable_field:m0.remove_consumer.key,subscription_id:L.subscription_id,consumers:L.consumers})),x(ga.CONSUMER_REMOVED_SUCCESSFULLY)},tooltip:m0.remove_consumer.label,children:E.jsx(Omi,{})}),E.jsx(_n,{onClick:()=>{R(L.subscription_id)},tooltip:m0.delete_subscription.label,children:E.jsx(aoe,{})})]})},N=({consumers:L=[]})=>{const I=L.length-1;return L.map((b,T)=>E.jsx(Pn,{label:b,children:E.jsxs("span",{children:[o1e(b),T!==I&&","]})}))};return E.jsxs(E.Fragment,{children:[o&&E.jsx("div",{className:"fixedLoader",children:E.jsx(as,{})}),E.jsx("div",{className:"tableWrapper",children:E.jsx(tf,{data:e,columns:Pga,isAction:!0,rowSize:75,loading:n,bodyHeight:d,actionComponent:P,rowRender:[{dataKey:"consumers",func:N}]})}),E.jsx(ZYn,{visible:p,handleClose:k,transactionHash:g,activeStep:A,confirmationTitle:S,subTitle:w,steps:Bga})]})},RGo=()=>{const[t,e]=Y.useState(!1),[n,r]=Y.useState(!1),[a,o]=Y.useState([]),s=yV(),{height:l,headerHeight:c}=Is(),u=l-c||500,d=localStorage.getItem("userId")||"",h=async v=>{const A=await WYn(s,v);if(A){const y=await QYn(A[0]||"");return{subscription_id:v,consumers:A.consumers&&Array.isArray(A.consumers)&&A.consumers.length>0&&A.consumers||[],balance:y||""}}return{subscription_id:0,consumers:[],balance:""}},f=async()=>{r(!0);try{if(s===Of.SEPOLIA||s===Of.MUMBAI){const v=await U0a(d,z3[s].toString()),A=await Promise.all(v.map(async y=>await h(y.subscription_id)));o([...A.filter(y=>y==null?void 0:y.subscription_id)])}else o([])}catch(v){console.log(v,"e")}r(!1)};Y.useEffect(()=>{f()},[s]);const p=async v=>{e(!0);const A=await rbe(v);XX(v),e(!1),sfn(!!A)};Y.useEffect(()=>{window.ethereum&&typeof window.ethereum.on=="function"&&window.ethereum.on("networkChanged",()=>{p(ibe())})},[]);const m=v=>{o(a.concat(v))},g=async v=>{r(!0);const A=await h(v),y=a.map(S=>S.subscription_id.toString()!==v.toString()?S:A);o([...y]),r(!1)};return E.jsx(uGo,{pageHeight:u,children:E.jsx("div",{className:"manageChainLinkWrapper",children:E.jsxs("div",{className:"manageChainLinkInner",children:[E.jsx(xGo,{updateSubscriptionList:m,setIsLoading:e,handleGetChainLinkSubscription:f}),E.jsx(kGo,{subscriptions:a,isLoading:t,isChainlinkSubsLoading:n,updateSubscriptionConsumers:g,handleGetChainLinkSubscription:f})]})})})},MGo="/assets/comingSoonCurve-13c57f74.png",NGo=gt.div`
  padding-top: 56px;
  .boxContent {
    min-height: ${t=>t.height-24}px;
    display: flex;
    flex-direction: column;
    background: ${t=>t.theme.custom.boxBg2} url(${MGo});
    background-repeat: no-repeat;
    background-size: cover;
    .emptyBlock {
      margin: auto;
      img {
        margin-bottom: 55px;
      }
      .emptyMsgTitle {
        font-size: 30px;
        letter-spacing: 0.65em;
      }
    }
  }
`,IGo="/assets/logo-3d-dbfd07f4.png",PGo=()=>{const{height:t,headerHeight:e}=Is(),n=t-e||500;return E.jsx(NGo,{height:n,children:E.jsx("main",{className:"mainContent",children:E.jsx("div",{className:"boxContent",children:E.jsx(sf,{title:q.COMING_SOON,imgPath:IGo,className:"emptyBlock"})})})})},wut=gt.div`
  && {
    margin-top: 45px;
    position: relative;
    z-index: 1;
  }

  .MuiGrid-container {
    &:empty {
      &:before {
        display: none;
      }
    }
    &:before {
      content: '';
      position: absolute;
      width: 58.333333%;
      right: -12px;
      top: -135px;
      height: 400px;
      background: linear-gradient(180deg, rgba(46, 28, 72, 0) 0%, #1f1638 90%);
      filter: blur(6px);
      z-index: -1;
      ${t=>t.theme.breakpoints.down("md")} {
        display: none;
      }
    }
  }
  label {
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .chartBox {
    background: ${t=>t.theme.custom.thumbnailBg};
    border: 1px solid transparent;
    box-shadow: 0px 23.2051px 68.6478px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
    color: inherit;
    cursor: pointer;
  }
  .chartBox:hover,
  .chartBox.active {
    transform: translateY(-10px);
    border: 1px solid ${t=>t.theme.custom.chartThumbnailActive};
    box-shadow: unset;
  }
  .chartBox .chartImg {
    text-align: center;
    background: ${t=>t.theme.custom.thumbnailImgBg};
    cursor: pointer;
    box-shadow: unset;
    color: inherit;
    height: 200px;
    position: relative;
    overflow: hidden;
    &.imgUrl {
      > img {
        object-fit: cover;
      }
    }
    .thumbnailSmall {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 100px;
      background: ${t=>t.theme.custom.thumbnailImgBg};
    }
  }
  .chartBox .chartImg img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
  .chartBox .chartImg .chart canvas {
    pointer-events: none;
    max-width: 100%;
  }
  .chartBox .chartInfo {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    .chartName {
      font-size: ${t=>t.theme.custom.fontSize.font12};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      color: ${t=>t.theme.custom.white.A11};
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chartTag {
      background: ${t=>t.theme.custom.tags.bg4};
      color: ${t=>t.theme.custom.tags.A3};
      font-size: ${t=>t.theme.custom.fontSize.font8};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      line-height: 12px;
      border-radius: 4px;
      padding: 4px 6px;
      white-space: nowrap;
    }
    .description {
      margin: 5px 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .actionRow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      button {
        height: 24px;
        width: 24px;
      }
      .deleteWidget {
        margin-left: auto;
      }
    }
  }
  .chartBox {
    .chartOverlayInfo {
      padding: 8px 8px 0;
      .chartName {
        font-size: ${t=>t.theme.custom.fontSize.font16};
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
        color: ${t=>t.theme.custom.white.A11};
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .description {
        margin: 5px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .tagList {
        margin-top: 8px;
      }
    }
    .mobileCardBottom {
      .chartButtonRow {
        display: flex;
        justify-content: space-between;
      }
    }
  }
  .tableListView .MuiTableRow-root {
    cursor: pointer;
  }
  .MuiTable-root {
    background: ${t=>t.theme.custom.chartThumbnail};
  }
  .loadingBlock {
    min-height: 280px;
    text-align: center;
    width: 100%;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }

  ${t=>t.theme.breakpoints.down("md")} {
    .chartBox {
      .chartOverlayInfo {
        flex: 1;
      }
    }
  }

  ${t=>t.theme.breakpoints.up("xl")} {
    .MuiGrid-container .MuiGrid-item:not(.tableListView) {
      flex-basis: 20%;
      flex-grow: 0;
      max-width: 20%;
    }
  }
`,OGo=gt.div`
  padding: 15px 0;
  .leftBlock {
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
  }
  .leftBlock .detailType {
    background: ${t=>t.theme.custom.tags.bg4};
    color: ${t=>t.theme.custom.tags.A3};
    font-size: ${t=>t.theme.custom.fontSize.font8};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    line-height: 12px;
    border-radius: 4px;
    padding: 4px 6px;
  }
  .leftBlock .createdBy {
    margin: 15px 0;
  }
  .leftBlock label {
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .leftBlock .createdBy .user {
    display: flex;
    align-items: center;
  }
  .leftBlock .createdBy .user .userImg {
    height: 30px;
    width: 30px;
    overflow: hidden;
    border: 1px solid rgba(191, 191, 191, 0.75);
    border-radius: 50%;
    margin-right: 12px;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.nebulaBlue}};
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    img {
      width: 100%;
      height: 100%;
    }
  }
  .leftBlock .createdBy .user .userName {
    color: ${t=>t.theme.custom.greyText.A9};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    overflow: hidden;
    flex: 1;
    span {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  .leftBlock .chartname {
    color: ${t=>t.theme.custom.white.A1};
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .leftBlock .description {
    color: ${t=>t.theme.custom.white.A7};
    font-size: ${t=>t.theme.custom.fontSize.font10};
    margin: 10px 0 30px;
    max-width: 400px;
    word-break: break-word;
  }
  .leftBlock .buttonRow button + button {
    margin-left: 8px;
  }
  .leftBlock .buttonRow .btnTrash:hover {
    color: ${t=>t.theme.custom.white.A1};
  }
  .rightBlock {
    height: 100%;
  }
  .rightBlock .dashImage {
    width: 100%;
    height: 200px;
  }
  .rightBlock .dashImage img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
  }
  .rightBlock .card {
    background: transparent;
    position: relative;
    height: 100%;
  }
  .rightBlock .cardBox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: calc(100% + 250px);
    overflow: hidden;
    background: ${t=>t.theme.custom.thumbnailBgHover} !important;
    border-radius: 4px;
    box-shadow: rgb(0 0 0 / 15%) 0px -24px 70px !important;
    min-height: 100%;
    padding: ${t=>t.dashboardImg?"200px 15px 0":0};
    pointer-events: none;
    .dashboardImage {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    .chartImg {
      position: relative;
      z-index: 1;
      .dragContainer {
        background: ${t=>{var e;return t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[2]:"unset"}};
        border-radius: 8px;
        backdrop-filter: blur(8px);
        .downloadAsImage,
        .openInEditorButton,
        .openInVisualEditorIcon {
          visibility: hidden;
        }
        .counterWidget {
          .counterCard:before {
            opacity: ${t=>(t==null?void 0:t.$useImgColors)&&0};
          }
          .titleRow {
            .counterType {
              color: ${t=>(t==null?void 0:t.$useImgColors)&&t.theme.custom.white.A1};
              background: ${t=>(t==null?void 0:t.$useImgColors)&&"transparent"};
              border: ${t=>(t==null?void 0:t.$useImgColors)&&`1px solid ${t.theme.custom.white.A1}`};
            }
          }
        }
        .strippedTable,
        .tableBody,
        .markdown {
          &::-webkit-scrollbar-track {
            background: ${t=>{var e;return(t==null?void 0:t.$useImgColors)&&`${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}`}};
          }
          &::-webkit-scrollbar-thumb {
            background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
              180deg,
              ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
              ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
            )`}};
          }
        }
        .strippedTable {
          background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
            180deg,
            ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
            ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
          )`}};
          .MuiTableBody-root .MuiTableRow-root:nth-child(odd) {
            background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[0])}};
          }
        }
      }
    }
  }
  .rightBlock .cardBox .react-resizable-handle {
    display: none;
  }
  .rightBlock .card {
    display: flex;
    flex-direction: column;
    .MuiSkeleton-root {
      background: ${t=>{var e,n;return t.$chartBackground&&`linear-gradient(
        to right,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 35%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]}
      )`}} !important;
    }
  }
  .rightBlock .card .dashboardView .chartBox {
    background: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
      180deg,
      ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%,
      ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100%
    )`:t.theme.custom.boxBg3}};
    border-radius: 4px;
    border: 0;
    .dashboardPreviewTag {
      display: none;
    }
  }
  .rightBlock .card .chartBox .chartImg .chart canvas {
    pointer-events: unset;
  }
  .rightBlock .card .MuiPaper-root {
    background: transparent;
    box-shadow: unset;
    color: inherit;
  }
  .rightBlock .component:hover {
    border: transparent;
  }
  .rightBlock .component div {
    cursor: pointer !important;
  }

  .rightBlock .chartBox {
    box-shadow: none;
    cursor: pointer;
  }

  .rightBlock .cardTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 24px;
    color: ${t=>t.theme.custom.white.A1};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    border-bottom: 1px solid ${t=>t.theme.custom.white.A6};
  }
  .rightBlock .cardTitleLeft {
    font-size: 21px;
  }
  .rightBlock .cardTitleRight {
    font-size: 28px;
  }
  .rightBlock .cardBody {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    ${t=>t.theme.breakpoints.down("sm")} {
      height: auto;
    }
  }
  .dashboard-right-img {
    max-width: 100%;
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .leftBlock {
      padding-top: 20px;
      padding-bottom: 20px;
    }
    .rightBlock .cardBox {
      position: unset;
      width: 100%;
      max-height: 300px;
      overflow: hidden;
    }
  }
`;function LGo({dashboardDetails:t,isLoading:e,isLoggedIn:n,handleCallback:r,isMyOrg:a,isExplore:o,onPopularityPress:s,liked:l,likeCount:c}){const u=xo(),[d,h]=Y.useState(!1),[f,p]=Y.useState(!1),m=fV(),{name:g,description:v,tags:A,id:y,userId:S,metadata:x,slug:w}=t||{},_=lhn(),{width:C}=Is(),R=localStorage.getItem("userId")||"",k=bE(),{settings:P}=k||{},N=kM(P),{dashboardHomeId:L}=N,{useImgColors:I=!1,imgUrl:b="",chartBackground:T=[]}=(x==null?void 0:x.customImg)||{},M=Y.useRef(!0),D=(m==null?void 0:m.visibility)===sr.public,B=()=>{u.push(n?tr.viewDashboard(y):tr.publicDashboard(w))},j=()=>{u.push(tr.updateDashboard(y)),M.current&&KAe(!1)},H=async()=>{p(!0),await zne(R,y,k,q.DASHBOARD_SET_AS_HOME_SUCCESS),M.current&&p(!1)};Y.useEffect(()=>()=>{M.current=!1},[]);const U=async()=>{p(!0),await zne(R,void 0,k,q.DASHBOARD_UNSET_AS_HOME_SUCCESS),Une({id:!1}),p(!1)},$=()=>E.jsxs("div",{className:"leftBlock",children:[E.jsx(Ca,{variant:"text",width:80,height:20}),E.jsx(Ca,{variant:"text",width:100,height:20}),E.jsx("div",{className:"user",children:E.jsx(Ca,{variant:"rectangular",width:50,height:50})}),E.jsx("h1",{className:"chartname",children:E.jsx(Ca,{variant:"text",width:300,height:50})}),E.jsxs("p",{children:[E.jsx(Ca,{width:400,height:20}),E.jsx(Ca,{width:400,height:20}),E.jsx(Ca,{width:400,height:20})]}),E.jsx("div",{className:"tagList",children:E.jsx(Ca,{variant:"rectangular",width:200,height:40})})]});let z="";return(m==null?void 0:m.visibility)===sr.public&&(n===!0&&S===R?z=q.PUBLISHED:z=q.SHARE_DASHBOARD),E.jsxs(OGo,{$chartBackground:T,$useImgColors:I,dashboardImg:b,children:[E.jsxs(Er,{container:!0,spacing:3,direction:"row",justifyContent:"center",children:[E.jsx(Er,{item:!0,sm:5,xs:12,children:e?$():E.jsxs("div",{className:"leftBlock",children:[E.jsxs("div",{className:"createdBy",children:[E.jsx("p",{children:q.CREATED_BY}),E.jsxs("div",{className:"user",children:[E.jsx("div",{className:"userImg",children:E.jsx("img",{src:S?Z_e(S):qfn,alt:"user"})}),E.jsx(Pn,{label:S,children:E.jsx("div",{className:"userName",children:E.jsx("span",{children:S})})})]})]}),E.jsx(Pn,{label:g,children:E.jsx("h1",{className:"chartname",children:g})}),E.jsx("div",{className:"tagList",children:(A==null?void 0:A.length)>0&&E.jsx(Ov,{tags:A})}),E.jsx("div",{className:"description",children:E.jsx("p",{children:E.jsx(Yfn,{text:v,textLength:fgi})})}),E.jsxs("div",{className:"buttonRow",children:[E.jsxs(Jt,{onClick:B,variant:"contained",disabled:!!(D&&!w),children:[E.jsx("span",{className:"icon iconLeft",children:E.jsx(Can,{})}),q.VIEW_DASHBOARD]}),(m==null?void 0:m.ownerId)===R&&E.jsx(_n,{onClick:j,tooltip:q.EDIT_DASHBOARD,children:E.jsx(gP,{})}),!a&&z!==""&&E.jsx(_n,{onClick:()=>h(!d),tooltip:z,children:E.jsx(r9,{})}),(m==null?void 0:m.userId)===R&&E.jsx(_n,{onClick:j,tooltip:q.EDIT_DASHBOARD,children:E.jsx(gP,{})}),(m==null?void 0:m.userId)===R&&(L!==m.id||!_[y])&&b&&E.jsx(_n,{onClick:H,tooltip:q.SET_AS_HOME_DASHBOARD,disabled:f,children:f?E.jsx("img",{src:ws,alt:"loading",width:"100%"}):E.jsx(Ian,{})}),(m==null?void 0:m.userId)===R&&L===m.id&&_[y]&&E.jsx(_n,{onClick:U,tooltip:q.UNSET_AS_HOME_DASHBOARD,disabled:f,children:f?E.jsx("img",{src:ws,alt:"loading",width:"100%"}):E.jsx(Pan,{})})]})]})}),E.jsxs(Er,{item:!0,sm:7,xs:12,children:[o&&s&&E.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginRight:"5px"},children:E.jsx(Klt,{count:c,filled:l,onClick:s})}),E.jsx("div",{className:"rightBlock",children:E.jsx("div",{className:"card",children:E.jsx(Mse,{className:"cardBox",item:t,isLoading:e||!y,isSelected:!0,sizes:{lg:12,md:12,sm:12,xs:12},windowWidth:C,preview:!0,isDetailsScreen:!0,isLoggedIn:n,dashboardPreviewImg:b,isSetAsHome:_[y],handleCallback:r,isExplore:!0})})})]})]}),E.jsx(IK,{loggedIn:n,showVisibilityDashboardButtons:S===R,slugModalOpen:d,setSlugModalOpen:h,id:m==null?void 0:m.id,isPublic:(m==null?void 0:m.visibility)===sr.public,slug:m==null?void 0:m.slug,type:"Share Dashboard",handleCallback:r,visibility:m==null?void 0:m.visibility})]})}const _ut=ke.memo(LGo),Tut=({content:t,isLoading:e=!1,onClick:n,handleCallback:r,handleSortBy:a,queryParams:o,selectedDashboardId:s,isExplore:l=!1})=>{const c=AE(),u=ho(),d=(w,_)=>{a(w==="type"?"visualType":w,_==="ASC"?"DESC":"ASC")},h=({userId:w})=>w||"",f=localStorage.getItem("userId")||"",p=()=>o!=null&&o.sortBy?o.sortBy==="visualType"?"type":o.sortBy:"",m=({modified:w})=>q6(w),g=({tags:w})=>(w==null?void 0:w.length)>0&&E.jsx(Ov,{tags:w}),v=w=>{n(w)},A=({description:w=""})=>w,y=w=>{c==null||c.push(tr.viewDashboard(w))},S=async w=>{await Mhn(w)===q.RESPONSE_SUCCESS_STATUS&&vit(!0)},x=w=>E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:()=>{y(w==null?void 0:w.id)},tooltip:"View",children:E.jsx(Y2e,{})}),!l&&E.jsx(Pn,{label:w.visibility===sr.public&&q.PUBLISHED_VISUAL_DELETE_TEXT("Dashboard"),children:E.jsx("span",{className:"deleteWidget",children:E.jsx(cm,{icon:!0,handleClick:_=>_.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE("Dashboard"),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`'${w==null?void 0:w.name}'`),onConfirm:_=>{_.stopPropagation(),cVe(w.id,r)},disabled:w.visibility===sr.public},"delete")})}),l&&(w==null?void 0:w.userId)!==f&&u&&E.jsx(_n,{onClick:()=>(w==null?void 0:w.slug)&&S(w.slug),children:E.jsx(GG,{})})]});return E.jsx(tf,{data:t,columns:(o==null?void 0:o.activeTab)==="explore"?mMo:lzn,isAction:!0,actionComponent:w=>x(w),actionColumnName:"Actions",rowRender:[{dataKey:"userId",func:h},{dataKey:"modified",func:m},{dataKey:"tags",func:g},{dataKey:"description",func:A}],loading:e,rowSize:75,bodyHeight:300,onItemsSort:d,sortBy:p(),sortOrder:(o==null?void 0:o.sortOrder)||"",tableRowClickHandler:v,activeRow:{key:"id",value:s},repeatItem:4,nonSortableColumns:{tags:!0}})},BGo=t=>{const{setQueryParams:e,queryParams:n,isListView:r,handleSortBy:a,defaultPageSize:o,handleSelected:s}=t,l=ho(),[c,u]=Y.useState(!1),d=fV(),[h,f]=Y.useState(null),{width:p}=Is(),m=bE(),g=lhn(),v=localStorage.getItem("userId")||"",A=Co.stringify({...ef(n)},{arrayFormat:"bracket"}),{data:y,mutate:S,error:x=void 0,isValidating:w}=Bn.useGetAllDashboard(A,l),_=y==null?void 0:y.content,{totalPages:C=0,totalElements:R=0}=(y==null?void 0:y.pageable)||{},k=!_&&!x||w;Y.useEffect(()=>{if(!Ft.isEmpty(_)){const M=_&&((_==null?void 0:_.find(B=>B.id===n.selected))||_[0]),D=M!=null&&M.metadata?JSON.parse(M.metadata):{};M&&qU({...M,metadata:D}),M&&f(M.id),M&&s(M.id)}},[_]),Y.useEffect(()=>()=>{G6()},[]);const P=M=>{const D=M!=null&&M.metadata?JSON.parse(M.metadata):{};qU({...M,metadata:D}),f(M==null?void 0:M.id),s(M.id),Lx()},N=()=>{f(null);const{numberOfElements:M=0,first:D=!1,number:B=0}=(y==null?void 0:y.pageable)||{};M===1&&!D&&e({...n,pageNo:B}),S()},L=M=>{P(M),Lx()},I=Y.useMemo(()=>_==null?void 0:_.map(M=>E.jsx(Mse,{className:"chartBox",item:M,handleClick:P,handleCallback:N,isSelected:h===M.id,sizes:{lg:3,md:4,sm:6,xs:12},thumbnailImage:!0,isLoggedIn:l,windowWidth:p,isSetAsHome:g[M==null?void 0:M.id],userDetail:m,setSlugModalOpen:u},M==null?void 0:M.id)),[_,h,g]),b=M=>{e({...n,pageNo:M})},T=M=>{e({...n,pageNo:1,pageSize:M})};return E.jsxs(E.Fragment,{children:[p>=qt.breakpoints.values.md&&(I==null?void 0:I.length)!==0&&!x&&E.jsx(_ut,{isLoading:k,dashboardDetails:d||{},isLoggedIn:l,handleCallback:N}),(I==null?void 0:I.length)===0&&!x&&!k&&E.jsx(sf,{title:!(n!=null&&n.tagValue)&&!(n!=null&&n.searchPattern)?q.EMPTY_DASHBOARD_TITLE:q.NO_RESULT_FOUND_ON_FILTER,imgPath:Nse,imgPathWebp:fz,className:"emptyBlock",children:!(n!=null&&n.tagValue)&&!(n!=null&&n.searchPattern)&&E.jsx(d1,{to:Qt.newDashboard,children:E.jsx(Jt,{variant:"contained",color:"primary",children:q.CREATE_NEW_DASHBOARD})})}),x&&!k&&E.jsx(Vc,{title:x,children:x}),!r&&k&&E.jsx("div",{className:"loadingBlock",children:E.jsx(Ep,{})}),(I==null?void 0:I.length)!==0&&!x&&E.jsxs(wut,{children:[E.jsx(Er,{container:!0,spacing:3,direction:"row",alignItems:"strech",sx:{position:"relative"},children:r?E.jsx(Er,{item:!0,lg:12,md:12,sm:12,xs:12,className:"tableListView",children:E.jsx(Tut,{content:_!=null&&_.length?_:[],onClick:L,handleCallback:N,isLoading:k,handleSortBy:a,queryParams:n,selectedDashboardId:h})}):I}),E.jsx(EE,{count:C||0,page:n.pageNo,onChange:b,onPageChange:b,onPageSizeChange:T,isGotoPage:!0,isPageSize:!0,totalElements:R||0,pageSize:n.pageSize,showFirstButton:!0,showLastButton:!0,defaultSize:o})]}),E.jsx(IK,{loggedIn:l,showVisibilityDashboardButtons:v===(d==null?void 0:d.userId),slugModalOpen:c,setSlugModalOpen:u,id:d==null?void 0:d.id,isPublic:(d==null?void 0:d.visibility)===sr.public,slug:d==null?void 0:d.slug,type:"Dashboard",handleCallback:N,visibility:d==null?void 0:d.visibility})]})},DGo=gt.div`
  padding-top: 56px;

  .searchDashboards {
    border: ${t=>t.theme.custom.greyText.A11};
    color: white;
    border-radius: 5px;
    width: 250px;
    input {
      color: ${t=>t.theme.custom.greyText.A3};
      font-size: 13px;
      ::placeholder {
        color: ${t=>t.theme.custom.greyText.A3};
        font-size: 14px;
        opacity: 1; /* Firefox */
      }
      ::-ms-input-placeholder {
        /* Edge 12 -18 */
        color: ${t=>t.theme.custom.greyText.A3};
        font-size: 14px;
      }
    }
  }

  .boxContent {
    min-height: ${t=>t.height}px;
    display: flex;
    flex-direction: column;
    position: relative;
    .loadingBlock {
      position: absolute;
      bottom: unset;
      height: calc(100% - 65px);
      top: 65px;
      z-index: 99;
      background: transparent;
      cursor: not-allowed;
    }
  }
  .boxContent .emptyBlock,
  .boxContent .loading {
    flex: 1;
  }
  .createBtn {
    margin-left: auto;
  }
  .boxContent .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  .chartButtonRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .chartButtonRow button + button {
    margin-left: 8px;
  }
  .chartButtonRow .chartButtonRowRight {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .chartButtonRow button {
    border-radius: 2px;
    height: 30px;
  }
  .chartButtonRow .chartButtonRowRight button {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    width: 30px;
    padding: 0;
    color: rgb(255 255 255 / 70%);
    svg {
      width: 14px;
      height: 14px;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .mobileChartsGrid {
      margin-top: -10px;
    }
    .chartBox:hover,
    .chartBox.active {
      transform: unset;
    }
    .chartBox .chartInfo .tagList {
      margin-top: 5px;
    }
    .MuiGrid-container .MuiGrid-item .tableMobileCard:before {
      content: '';
      position: absolute;
      width: 3px;
      height: 100%;
      left: 0;
      top: 0;
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-4) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pink}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-3) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.mint}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-2) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.blue}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n-1) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
    }
    .MuiGrid-container .MuiGrid-item:nth-child(5n) .tableMobileCard:before {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
    }
  }
`,$Go=t=>{const{queryParams:e,setQueryParams:n,isListView:r,handleSortBy:a,resetTags:o,onTagChange:s,defaultPageSize:l,handleSelected:c,searchNameSelected:u,searchComponent:d,popularityFilterStatus:h}=t,f=ho(),p=fV(),[m,g]=Y.useState(!1),[v,A]=Y.useState(null),y=localStorage.getItem("userId")||"",{data:S,error:x}=Bn.useGetPopularTags(Co.stringify({entityType:Awe.DASHBOARD_TAG_TYPE}),f),w=!S&&!x;let _,C,R=0,k=0,P=!0,N,L;if(h!=="search"){const K={type:h,pageNo:e.pageNo,pageSize:e.pageSize},Q=Co.stringify({...ef(K)},{arrayFormat:"bracket"}),{data:ee,mutate:X,error:te}=Bn.useGetDashboardByPopular(Q,f);_=ee,C=ee==null?void 0:ee.content,R=ee==null?void 0:ee.pageable.totalPages,k=ee==null?void 0:ee.pageable.totalElements,P=!ee&&!te,N=te,L=X}else{const K=Co.stringify({...ef(e)},{arrayFormat:"bracket"}),{data:Q,mutate:ee,error:X}=Bn.useGetAllDashboard(K,f);_=Q,C=Q==null?void 0:Q.content,R=Q==null?void 0:Q.pageable.totalPages,k=Q==null?void 0:Q.pageable.totalElements,P=!Q&&!X,N=X,L=ee}let I={};const{data:b=[],mutate:T}=Bn.useGetDashboardsFilteredByMyLikes(f);C&&(I=C.find(K=>K.id===v)),b.length>0&&I&&(I.liked=b.indexOf(I==null?void 0:I.id)>-1);const{width:M}=Is();Y.useEffect(()=>{if(!Ft.isEmpty(C)){const K=C&&((C==null?void 0:C.find(ee=>ee.id===v))||C[0]),Q=K!=null&&K.metadata?JSON.parse(K.metadata):{};K&&qU({...K,metadata:Q}),K&&A(K==null?void 0:K.id),K&&c(K==null?void 0:K.id)}},[C]),Y.useEffect(()=>()=>{G6()},[]);const D=K=>{const Q=K!=null&&K.metadata?JSON.parse(K.metadata):{};qU({...K,metadata:Q}),A(K==null?void 0:K.id),c(K==null?void 0:K.id),Lx()},B=()=>{A(null);const{numberOfElements:K=0,first:Q=!1,number:ee=0}=(_==null?void 0:_.pageable)||{};K===1&&!Q&&n({...e,pageNo:ee}),L()},j=K=>{D(K),Lx()},H=Y.useMemo(()=>C==null?void 0:C.map((K,Q)=>E.jsx(Mse,{className:"chartBox",item:K,handleClick:D,handleCallback:B,isExplore:!0,isSelected:v===K.id,sizes:{lg:3,md:4,sm:6,xs:12},windowWidth:M,thumbnailImage:!0,isLoggedIn:f,setSlugModalOpen:g},`${Q+Q}`)),[C,v]),U=K=>{n({...e,pageNo:K})},$=K=>{n({...e,pageNo:1,pageSize:K})},z=async K=>{async function Q(){const ee=_.content.map(te=>(te.id===v&&te.likes!==void 0&&(te.liked=K,K===!0?te.likes+=1:te.likes-=1),te));await L({..._,content:ee},{revalidate:!1});let X=[];K?X=[...b,v]:X=b.filter(te=>te!==v),await T(X,{revalidate:!1})}K===!0?(await Bn.addLikeToDashboard(v,f),await Q()):(await Bn.addDislikeToDashboard(v,f),await Q())};let Z=q.EMPTY_EXPLORE_DASHBOARD_TITLE;return h!==S5.liked&&(Z=q.EMPTY_EXPLORE_DASHBOARD_TITLE_GENERAL(h)),E.jsxs(E.Fragment,{children:[M>=qt.breakpoints.values.md&&E.jsxs(E.Fragment,{children:[u&&((H==null?void 0:H.length)||(e==null?void 0:e.tagValue)||(e==null?void 0:e.searchPattern)||w)&&E.jsx(qlt,{popularTags:S,queryParams:e,loading:w,onTagChange:s,resetTags:o}),u&&E.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"25px"},children:d}),C&&(H==null?void 0:H.length)!==0&&!N&&E.jsx(_ut,{likeCount:I==null?void 0:I.likes,liked:I==null?void 0:I.liked,onPopularityPress:z,isLoading:P,dashboardDetails:p||{},isLoggedIn:f,isExplore:!0})]}),M<qt.breakpoints.values.md&&u&&E.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:d}),N&&!P&&E.jsx(Vc,{title:N,children:N}),(H==null?void 0:H.length)===0&&!N&&E.jsx(sf,{title:!(e!=null&&e.tagValue)&&!(e!=null&&e.searchPattern)?Z:q.NO_RESULT_FOUND_ON_FILTER,imgPath:Nse,imgPathWebp:fz,className:"emptyBlock",children:!(e!=null&&e.tagValue)&&!(e!=null&&e.searchPattern)&&f&&E.jsx(d1,{to:Qt.newDashboard,children:E.jsx(Jt,{variant:"contained",color:"primary",children:q.CREATE_NEW_DASHBOARD})})}),!r&&P&&E.jsx("div",{className:"loadingBlock",children:E.jsx(Ep,{})}),(H==null?void 0:H.length)!==0&&!N&&E.jsxs(wut,{children:[E.jsx(Er,{container:!0,spacing:3,direction:"row",alignItems:"strech",sx:{position:"relative"},children:r?E.jsx(Er,{item:!0,lg:12,md:12,sm:12,xs:12,className:"tableListView",children:E.jsx(Tut,{content:C!=null&&C.length?C:[],onClick:j,handleCallback:B,isLoading:P,handleSortBy:a,queryParams:e,selectedDashboardId:v,isExplore:!0})}):H}),E.jsx(EE,{count:R||0,page:e.pageNo,onChange:U,onPageChange:U,onPageSizeChange:$,isGotoPage:!0,isPageSize:!0,totalElements:k||0,pageSize:e.pageSize,defaultSize:l,pgSizeOptions:[10,25,50,100]})]}),E.jsx(IK,{loggedIn:f,showVisibilityDashboardButtons:y===(p==null?void 0:p.userId),slugModalOpen:m,setSlugModalOpen:g,id:p==null?void 0:p.id,isPublic:(p==null?void 0:p.visibility)===sr.public,slug:p==null?void 0:p.slug,type:"Dashboard",handleCallback:B,visibility:p==null?void 0:p.visibility})]})},FGo=t=>{const{queryParams:e,setQueryParams:n,isListView:r,handleSortBy:a,resetTags:o,onTagChange:s,defaultPageSize:l,handleSelected:c}=t,u=ho(),d=fV(),[h,f]=Y.useState(!1),[p,m]=Y.useState(null),g=localStorage.getItem("userId")||"",{data:v,error:A}=Bn.useGetPopularTags(Co.stringify({entityType:Awe.DASHBOARD_TAG_TYPE}),u),y=!v&&!A,S=Co.stringify({...ef(e)},{arrayFormat:"bracket"}),{data:x,mutate:w,error:_}=Bn.useGetAllDashboard(S,u),C=x==null?void 0:x.content,{totalPages:R=0,totalElements:k=0}=(x==null?void 0:x.pageable)||{},P=!x&&!_,{width:N}=Is();Y.useEffect(()=>{if(!Ft.isEmpty(C)){const B=C&&((C==null?void 0:C.find(H=>H.id===e.selected))||C[0]),j=B!=null&&B.metadata?JSON.parse(B.metadata):{};B&&qU({...B,metadata:j}),B&&m(B==null?void 0:B.id),B&&c(B==null?void 0:B.id)}},[C]),Y.useEffect(()=>()=>{G6()},[]);const L=B=>{const j=B!=null&&B.metadata?JSON.parse(B.metadata):{};qU({...B,metadata:j}),m(B==null?void 0:B.id),c(B==null?void 0:B.id),Lx()},I=()=>{m(null);const{numberOfElements:B=0,first:j=!1,number:H=0}=(x==null?void 0:x.pageable)||{};B===1&&!j&&n({...e,pageNo:H}),w()},b=B=>{L(B),Lx()},T=Y.useMemo(()=>C==null?void 0:C.map((B,j)=>E.jsx(Mse,{className:"chartBox",item:B,handleClick:L,isMyOrg:!0,handleCallback:I,isSelected:p===B.id,sizes:{lg:3,md:4,sm:6,xs:12},windowWidth:N,thumbnailImage:!0,isLoggedIn:u,setSlugModalOpen:f},`${j+j}`)),[C,p]),M=B=>{n({...e,pageNo:B})},D=B=>{n({...e,pageNo:1,pageSize:B})};return E.jsxs(E.Fragment,{children:[N>=qt.breakpoints.values.md&&E.jsxs(E.Fragment,{children:[((T==null?void 0:T.length)||(e==null?void 0:e.tagValue)||(e==null?void 0:e.searchPattern)||y)&&E.jsx(qlt,{popularTags:v,queryParams:e,loading:y,onTagChange:s,resetTags:o}),(T==null?void 0:T.length)!==0&&!_&&E.jsx(_ut,{isLoading:P,dashboardDetails:d||{},isLoggedIn:u,isMyOrg:!0})]}),_&&!P&&E.jsx(Vc,{title:_,children:_}),(T==null?void 0:T.length)===0&&!_&&E.jsx(sf,{title:!(e!=null&&e.tagValue)&&!(e!=null&&e.searchPattern)?q.EMPTY_MY_ORG_DASHBOARD_TITLE:q.NO_RESULT_FOUND_ON_FILTER,imgPath:Nse,imgPathWebp:fz,className:"emptyBlock",children:!(e!=null&&e.tagValue)&&!(e!=null&&e.searchPattern)&&u&&E.jsx(d1,{to:Qt.newDashboard,children:E.jsx(Jt,{variant:"contained",color:"primary",children:q.CREATE_NEW_DASHBOARD})})}),!r&&P&&E.jsx("div",{className:"loadingBlock",children:E.jsx(Ep,{})}),(T==null?void 0:T.length)!==0&&!_&&E.jsxs(wut,{children:[E.jsx(Er,{container:!0,spacing:3,direction:"row",alignItems:"strech",sx:{position:"relative"},children:r?E.jsx(Er,{item:!0,lg:12,md:12,sm:12,xs:12,className:"tableListView",children:E.jsx(Tut,{content:C!=null&&C.length?C:[],onClick:b,handleCallback:I,isLoading:P,handleSortBy:a,queryParams:e,selectedDashboardId:p,isExplore:!0})}):T}),E.jsx(EE,{count:R||0,page:e.pageNo,onChange:M,onPageChange:M,onPageSizeChange:D,isGotoPage:!0,isPageSize:!0,totalElements:k||0,pageSize:e.pageSize,showFirstButton:!0,showLastButton:!0,defaultSize:l})]}),E.jsx(IK,{loggedIn:u,showVisibilityDashboardButtons:g===(d==null?void 0:d.userId),slugModalOpen:h,setSlugModalOpen:f,id:d==null?void 0:d.id,isPublic:(d==null?void 0:d.visibility)===sr.public,slug:d==null?void 0:d.slug,type:"Dashboard",handleCallback:I,visibility:d==null?void 0:d.visibility})]})};function jGo(){const[t,e]=Y.useState(!1),{height:n,headerHeight:r,width:a}=Is(),o=Y.useRef(null),s=xo(),{search:l}=Zh(),c=new URLSearchParams(l),u=10,d=fV(),h=ho(),f=iva(),p=K=>K===ld.myDashboard?uv.private:K===ld.exploreDashboard?uv.public:K===ld.myOrgDashboard?uv.subscription:uv.private,[m,g]=Y.useState(S5.trending),[v,A]=Y.useState({pageSize:c!=null&&c.get("pageSize")?Number(c==null?void 0:c.get("pageSize")):u,pageNo:c!=null&&c.get("pageNo")?Number(c==null?void 0:c.get("pageNo")):1,tagValue:(c==null?void 0:c.get("tagValue"))||"",searchPattern:(c==null?void 0:c.get("searchPattern"))||"",activeTab:h===!1?"explore":(c==null?void 0:c.get("activeTab"))||"dashboard",selected:c==null?void 0:c.get("selected"),scope:p(c==null?void 0:c.get("activeTab")),sortBy:(c==null?void 0:c.get("sortBy"))||"modified",sortOrder:(c==null?void 0:c.get("sortOrder"))||"DESC",visibility:(c==null?void 0:c.get("activeTab"))===sr.subscription?sr.subscription:""}),[y,S]=Y.useState(!1),[x,w]=Y.useState(!1),[_,C]=Y.useState(""),R=c==null?void 0:c.get("isRun");Y.useEffect(()=>{var K,Q;if(v){if((v==null?void 0:v.activeTab)===ld.exploreDashboard&&m!=="search"){const X={type:m,activeTab:"explore",pageNo:v.pageNo,pageSize:v.pageSize,selected:v.selected},te=Co.stringify({...X},{arrayFormat:"bracket"});s.push(`${(K=Qt.dashboards)==null?void 0:K.toLowerCase()}?${te}`);return}const ee=Co.stringify({...ef(v)},{arrayFormat:"bracket"});s.push(`${(Q=Qt.dashboards)==null?void 0:Q.toLowerCase()}?${ee}`)}},[v,m]),Y.useEffect(()=>{R&&A(K=>({...K,activeTab:c==null?void 0:c.get("activeTab"),scope:p(c==null?void 0:c.get("activeTab")),visibility:(c==null?void 0:c.get("activeTab"))===sr.subscription?sr.subscription:""}))},[R]),Y.useEffect(()=>{f&&(A(K=>({...K,activeTab:ld.myDashboard,scope:uv.private})),vit(!1))},[f]);const k=K=>({activeTab:K,scope:p(K),pageSize:u,pageNo:1,searchPattern:"",tagValue:"",sortOrder:"DESC",sortBy:"modified",visibility:K===sr.subscription?sr.subscription:""}),P=K=>{const{value:Q}=K.target;if(G6(),Q===Di.GRAPH){s.push(Qt.vizard);return}A({...v,...k(Q)}),o.current&&(o.current.value="")},N=K=>{C(K.target.value)},L=K=>{K.key==="Enter"&&I(K)},I=K=>{A({...v,pageNo:1,searchPattern:K.target.value})},b=()=>w(!x),T=(K,Q)=>{(v==null?void 0:v.activeTab)===ld.exploreDashboard&&m!=="search"||K&&Q&&A(ee=>({...ee,pageNo:1,sortOrder:Q,sortBy:K}))},M=n-r||500,D=()=>{v.tagValue&&A(K=>({...K,pageSize:u,pageNo:1,tagValue:""}))},B=K=>{A({...v,pageSize:u,pageNo:1,tagValue:v.tagValue===K.value?"":(K==null?void 0:K.value)||""})},j=K=>{var ee;const Q=(ee=K==null?void 0:K.target)==null?void 0:ee.value;if(h===!1&&Q===S5.liked){co(!0);return}g(Q)},H=()=>{o.current&&(o.current.value=""),A(K=>({...K,pageNo:1,searchPattern:""}))},U=K=>{const{location:Q}=window,ee=new URL(Q);ee.searchParams.set("selected",K),window.history.pushState({},"",ee)},$=K=>{var ee;const Q=((ee=K.target)==null?void 0:ee.value)||"";(v==null?void 0:v.activeTab)!=="explore"&&A(X=>({...X,pageNo:1,visibility:Q}))};let z,Z="searchField";return(v==null?void 0:v.activeTab)===ld.exploreDashboard&&(Z="searchDashboards"),a>qt.breakpoints.values.md?z=E.jsxs(eC,{className:Z,children:[E.jsx(gr,{inputRef:o,placeholder:q.FIND_BY_NAME,defaultValue:(v==null?void 0:v.searchPattern)||"",onChange:N,onKeyPress:L}),E.jsx("span",{className:"searchIcon",children:(v==null?void 0:v.searchPattern)!==""?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:H}):E.jsx(yv,{})})]}):a>=qt.breakpoints.values.sm?z=E.jsxs(eC,{className:Z,children:[E.jsx(gr,{inputRef:o,placeholder:q.FIND_BY_NAME,defaultValue:(v==null?void 0:v.searchPattern)||"",onChange:N,onKeyPress:L}),E.jsx("span",{className:"searchIcon",children:(v==null?void 0:v.searchPattern)!==""?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:H}):E.jsx(yv,{})})]}):z=E.jsxs(Kfn,{className:`${x?"expand":""}`,children:[E.jsx(gr,{inputRef:o,placeholder:q.FIND_BY_NAME,defaultValue:(v==null?void 0:v.searchPattern)||"",onChange:N,onKeyPress:L}),E.jsx("button",{type:"button",className:"expandSearchIcon",onClick:b,children:(v==null?void 0:v.searchPattern)!==""?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:H}):E.jsx(yv,{})})]}),E.jsx(Y.Suspense,{fallback:as,children:E.jsxs(DGo,{height:M,children:[E.jsx("main",{className:"mainContent",children:E.jsxs("div",{className:"boxContent dashboardPage",children:[a<qt.breakpoints.values.md?E.jsx(Tp,{className:"pageMobileToolbar",children:E.jsxs("div",{className:"pageMobileTopBar",children:[E.jsxs(nat,{children:[E.jsx(Ba,{value:v.activeTab,onChange:P,children:agi.filter(K=>h?!0:K.value==="explore").map(K=>E.jsx(oH,{value:K.value,children:K.label},K.value))}),a>=qt.breakpoints.values.sm&&(v==null?void 0:v.activeTab)!==ld.exploreDashboard&&z,(v==null?void 0:v.activeTab)==="dashboard"&&E.jsx(pz,{visibility:v==null?void 0:v.visibility,onFilterChange:$})]}),E.jsxs(Wfn,{children:[E.jsxs(YH,{variant:"contained",className:"toggleViewMode",children:[E.jsx(Pn,{label:q.LIST_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!0)},variant:"contained",color:t?"primary":"secondary",children:E.jsx(gAe,{})})}),E.jsx(Pn,{label:q.GRID_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!1)},variant:"contained",color:t?"secondary":"primary",children:E.jsx(vAe,{})})})]}),a<qt.breakpoints.values.sm&&(v==null?void 0:v.activeTab)!==ld.exploreDashboard&&z,(v==null?void 0:v.activeTab)===ld.exploreDashboard&&E.jsx(l1e,{children:E.jsx("div",{className:"popularityDropdown",children:E.jsx(Ba,{value:m,onChange:j,children:CEt.map(K=>E.jsx(yQe,{value:K.value,children:K.label},K.value))})})})]})]})}):E.jsxs(Tp,{className:"pageToolbar",children:[E.jsxs(eA,{exclusive:!0,value:v.activeTab,onChange:P,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"explore","aria-label":q.EXPLORE,children:q.EXPLORE_PUBLIC_DASHBOARDS}),h&&E.jsx(Xs,{size:"small",className:"tabButton",value:"dashboard","aria-label":q.MY_DASHBOARDS,children:q.MY_SAVED_DASHBOARDS}),h&&E.jsx(Xs,{size:"small",className:"tabButton",value:"subscription","aria-label":q.MY_ORG_DASHBOARD,children:q.MY_ORG_DASHBOARD})]}),E.jsxs("div",{className:"toolbarRight",children:[h&&E.jsx(Jt,{variant:"text",className:"createBtn",children:E.jsxs(d1,{to:Qt.newDashboard,children:[q.CREATE_NEW_DASHBOARD,E.jsx("span",{className:"iconRight addIcon",children:E.jsx(ED,{})})]})}),(v==null?void 0:v.activeTab)!==ld.exploreDashboard&&z,(v==null?void 0:v.activeTab)===ld.exploreDashboard&&E.jsx(l1e,{children:E.jsx("div",{className:"popularityDropdown",children:E.jsx(Ba,{value:m,onChange:j,children:CEt.map(K=>E.jsx(yQe,{value:K.value,children:K.label},K.value))})})}),(v==null?void 0:v.activeTab)==="dashboard"&&E.jsx(pz,{visibility:v==null?void 0:v.visibility,onFilterChange:$}),d!==null&&E.jsxs(YH,{variant:"contained",className:"toggleViewMode",children:[E.jsx(Pn,{label:q.LIST_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!0)},variant:"contained",color:t?"primary":"secondary",children:E.jsx(gAe,{})})}),E.jsx(Pn,{label:q.GRID_VIEW,children:E.jsx(Jt,{onClick:()=>{e(!1)},variant:"contained",color:t?"secondary":"primary",children:E.jsx(vAe,{})})})]})]})]}),v.activeTab===ld.myDashboard&&E.jsx(BGo,{queryParams:v,setQueryParams:A,isListView:t,handleSortBy:T,defaultPageSize:u,handleSelected:U}),v.activeTab===ld.exploreDashboard&&E.jsx($Go,{popularityFilterStatus:m,searchComponent:z,queryParams:v,setQueryParams:A,isListView:t,handleSortBy:T,resetTags:D,onTagChange:B,defaultPageSize:u,handleSelected:U,searchNameSelected:m==="search"}),v.activeTab===ld.myOrgDashboard&&E.jsx(FGo,{queryParams:v,setQueryParams:A,isListView:t,handleSortBy:T,resetTags:D,onTagChange:B,defaultPageSize:u,handleSelected:U})]})}),y&&E.jsx(lf,{visible:y,maxWidth:"xs",onClose:()=>S(!1),children:E.jsx(hqn,{})})]})})}const HGo=Ebr`
html,
body {
  width: 100%;
  min-height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
@-ms-viewport {
  width: device-width;
}
article,
aside,
dialog,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
  display: block;
}
body {
  margin: 0;
  color: ${t=>t.theme.custom.greyText.A2};
  font-size: ${t=>t.theme.custom.fontSize.font12};
  font-family: ${t=>t.theme.typography.fontFamily};
  font-weight: ${t=>t.theme.custom.fontWeight.rg};
  line-height: 1.5;
  background: #060A17 url(${t=>t.theme.bodyBg});
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-font-feature-settings: 'tnum';
  font-feature-settings: 'tnum';
  w3m-modal {
    background: ${t=>t.theme.custom.black.A5};
  }
  wui-flex {
    align-items: center;
  }
  wui-card {
    background: ${t=>t.theme.custom.modalBg};
    border-radius: 16px;
  }
}
[tabindex='-1']:focus {
  outline: none !important;
}
hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}


/* Scrollbar */
/* width */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

/* Track */
::-webkit-scrollbar-track {
  background-color: ${t=>t.theme.custom.secondaryBg};
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: ${t=>t.theme.custom.white.A12};
  border-radius: 10px;
}
/* Scrollbar end */

::-moz-scrollbar-thumb {
  background-color: ${t=>t.theme.custom.white.A12};
}  
* {
  scrollbar-width: thin;
  scrollbar-color: ${t=>t.theme.custom.white.A12} ${t=>t.theme.custom.secondaryBg}; 
}
 
 
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
}
.h1, h1 {
  font-size: ${t=>t.theme.custom.heading.h1};
  font-weight: ${t=>t.theme.custom.fontWeight.bd};
}
.h2, h2 {
  font-size: ${t=>t.theme.custom.heading.h2};
  font-weight: ${t=>t.theme.custom.fontWeight.md};
}
.h3, h3 {
  font-size: ${t=>t.theme.custom.heading.h3};
  font-weight: ${t=>t.theme.custom.fontWeight.md};
}
${t=>t.theme.breakpoints.down("sm")} {
  .h1, h1 {
    font-size: 28px;
  }
  .h2, h2 {
    font-size: 20px;
  }
  .h3, h3 {
    font-size: 18px;
  }
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
label:empty{
  display: none;
}
label.formLabel{
  color: ${t=>t.theme.custom.white.A11};
  font-size: ${t=>t.theme.custom.fontSize.font14};
  text-transform: unset;
}
.text-center{
  text-align: center;
}
.font-md{
  font-weight: 500;
}
.font-10{
  font-size: 10px;
}
abbr[title],
abbr[data-original-title] {
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
a {
  color: ${t=>t.theme.palette.primary.main};
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  -webkit-text-decoration-skip: objects;
}
a:hover,
a:active {
  color: ${t=>t.theme.palette.primary.dark};
}
a:active,
a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}
a[disabled] {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  pointer-events: none;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
    monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
svg:not(:root) {
  overflow: hidden;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  color: rgba(0, 0, 0, 0.45);
  text-align: left;
  caption-side: bottom;
}
th {
  text-align: inherit;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
  &:focus {
    outline: none;
  }
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
label {
  display: inline-block;
  margin-bottom: 8px;
}
input[type='radio'],
input[type='checkbox'] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}
::selection {
  color: #fff;
  background: ${t=>t.theme.palette.primary.main};
}

.mainContent{
  padding: 12px;
  ${t=>t.theme.breakpoints.down("sm")} {
    padding: 0;
  }
  .createMobileBtn {
    position: fixed;
    z-index: 11;
    left: 10px;
    bottom: 15px;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
    box-shadow: 0px 2.5697px 19.2728px rgba(1, 39, 96, 0.25),
    inset -0.642426px -0.642426px 1.28485px rgba(13, 13, 13, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    & svg {
      width: 22px;
      height: 22px;
    }
  }
}

.boxContent{
  background: ${t=>t.theme.custom.boxBg};
  box-shadow: 0px 10px 30px rgba(15, 24, 42, 0.51);
  border-radius: 8px;
  padding: 16px;
  > .alertMessageBlock {
    flex: 1;
  }
}

.commonHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(247, 247, 249, 0.05);
}

.commonHead h2{
  margin-bottom: 0;
  color: ${t=>t.theme.custom.white.A1}
}

header .MuiToolbar-root{
  min-height: 56px;
}

/* Utilities */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.h-100 {
  height: 100%;
}
.w-100 {
  width: 100%;
}
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
fieldset legend{display: none;}
.monospace-font {
  font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;
}
.react-resizable-hide .react-resizable-handle {
  display: none !important;
}

.react-flow__container {
  cursor: grab;
}
.react-flow .react-flow__minimap {
  width: 150px;
  height: 120px;
  right: 90px;
  bottom: 12px;
  cursor: default;
  border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
  ${t=>t.theme.breakpoints.down("sm")} {
    width: 90px;
    height: 90px;
  }
}
.react-flow__attribution {
  visibility: hidden;
}
.react-flow__handle.connectable {
  cursor: crosshair;
  visibility: hidden;
}
.react-flow__minimap-mask {
  width: 40%;
  height: 40%;
}
.react-flow__childNode {
  display: none;
}
.react-flow .react-flow__node {
  background: transparent;
  border: 0;
  overflow: hidden;
  box-shadow: 0px 82.5629px 82.5629px rgb(11 8 30 / 40%);
  cursor: default;
}
.react-flow__node.hideShadow {
  box-shadow: unset;
  &:hover {
    box-shadow: unset;
  }
}
.react-flow__node-default {
  background: transparent;
}
.react-flow__node-default.selectable.selected,
.react-flow__node-group.selectable.selected,
.react-flow__node-input.selectable.selected,
.react-flow__node-output.selectable.selected{
  box-shadow: unset;
}
.react-flow .react-flow__controls {
  left: 12px;
  bottom: 12px;
  border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
  border-radius: 8px;
  overflow: hidden;
  .react-flow__controls-button{
    background: ${t=>t.theme.custom.erdTable.titleBg};
    border-bottom: 0;
  }
  .react-flow__controls-button:hover{
    background: ${t=>t.theme.custom.primaryBg};
  }
  .react-flow__controls-button svg{
    fill: ${t=>t.theme.custom.white.A1};
  }
}

/* React split pane resizer */
.Resizer {
  background: ${t=>t.theme.custom.resizer};
  z-index: 999;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-background-clip: padding;
  -webkit-background-clip: padding;
  background-clip: padding-box;
  position: relative;
}
.Resizer:after, .Resizer:before{
  content: '';
  position: absolute;
}
.Resizer:before{
  background: ${t=>t.theme.custom.purpleDark};
  border-radius: 5px;
}
.Resizer:after{
  background: ${t=>t.theme.custom.white.A3};
  border-radius: 5px;
}
.Resizer:hover {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.Resizer.horizontal {
  height: 11px;
  margin: -5px 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  cursor: row-resize;
  width: 100%;
}
.Resizer.horizontal:before,
.Resizer.horizontal:after{
  left: 50%;
  transform: translateX(-50%);
}
.Resizer.horizontal:before{
  height: 6px;
  width: 24px;
  top: -3px;
}
.Resizer.horizontal:after{
  height: 2px;
  width: 12px;
  top: -1px;
}
.Resizer.vertical {
  width: 11px;
  margin: 0 -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  cursor: col-resize;
}
.Resizer.vertical:before,
.Resizer.vertical:after{
  top: 50%;
  transform: translateY(-50%);
}
.Resizer.vertical:before{
  width: 6px;
  height: 24px;
  left: -3px;
}
.Resizer.vertical:after{
  width: 2px;
  height: 12px;
  left: -1px;
}
.Resizer.disabled {
  cursor: not-allowed;
}
.Resizer.disabled:hover {
  border-color: transparent;
}
.splitPaneView > .Pane1{
  margin: 15px 0 15px 15px;
  background: ${t=>t.theme.custom.boxBg};
  box-shadow: 0px 10px 30px rgba(15, 24, 42, 0.51);
  border-radius: 4px;
}
.splitPaneView > .Pane2{
  overflow: hidden;
}

/* QueryResultDataTable react-window/react-draggable implementation */
.DragHandle {
  width: 8px;
  cursor: col-resize;
  color: ${t=>t.theme.custom.greyText.A2};
}
.DragHandleActive {
  color: ${t=>t.theme.custom.white.A1} !important;
}
.DragHandle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.DragHandleActive,
.DragHandleActive:hover {
  color: rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.DragHandleIcon {
  flex: 0 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translate(0px, 0px) !important;
  color: ${t=>t.theme.custom.greyText.A9}
}

/* hide tauchart's ui for export options */
.tau-chart__export {
  display: none;
}

/* Error block */
.alertInfo{
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: ${t=>t.theme.custom.fontSize.font10};
  padding: 16px;
  text-align: center;
  font-weight: 600;
  height: 100%;
  width: 100%;
  word-break: break-word;
  overflow: hidden;
}

.MuiFormControl-root .MuiOutlinedInput-input,
.MuiList-root .MuiMenuItem-root{
  height: unset;
}
.MuiList-root.MuiMenu-list {
  padding: 0 0;
  max-height: 165px;
}
MuiIconButton-root:hover{
  color: ${t=>t.theme.palette.primary.main};
}
.g2-tooltip{
  word-break: break-all;
  max-width: 400px;
  background: ${t=>t.theme.custom.popupBg} !important;
  color: ${t=>t.theme.custom.greyText.A2} !important;
  box-shadow: unset !important;
}

.eChartTooltip {
  white-space: normal !important;
  word-break: break-word;
  max-width: 400px;
  backdrop-filter: blur(8px);
  box-shadow: unset !important;
}

/* Ace Editor */
.ace_editor.ace_autocomplete{
  font-family: ${t=>t.theme.typography.fontFamily};
  border: 0;
  color: ${t=>t.theme.custom.white.A1};
  background: ${t=>t.theme.custom.dropdownBg};
  z-index: 99999999 !important;
}
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line{
  background: rgba(0,0,0,0.3);
}

/* Popover */
.MuiPopover-root .MuiPopover-paper{
  background: ${t=>t.theme.custom.dropdownBg};
  border: 0.5px solid #675B8C;
  box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
  color: ${t=>t.theme.custom.white.A11};
  backdrop-filter: blur(2px);
  border-radius: 8px;
}
.MuiPopover-root .MuiPopover-paper .MuiMenuItem-root{
  color: ${t=>t.theme.custom.greyText.A5};
  font-size: ${t=>t.theme.custom.fontSize.font10};
  font-weight: ${t=>t.theme.custom.fontWeight.md};
  min-height: unset;
}
.MuiPopover-root .MuiPopover-paper .MuiMenuItem-root:hover,
.MuiPopover-root .MuiPopover-paper .MuiMenuItem-root.Mui-selected{
  color: ${t=>t.theme.custom.white.A1};
  background: ${t=>t.theme.custom.white.A5};
}

/* Radio */
.radio-group-label{
  margin-bottom: 0px;
  font-weight: 500;
  padding: 10px;
}
.radioTheme{
  margin: 0;
}
.radioTheme .MuiRadio-root {
  padding: 0;
  color: ${t=>t.theme.custom.greyText.A2};
}
.radioTheme .MuiTypography-root{
  margin-left: 8px;
  font-size: 12px;
}

.erdConnectorSymbol{
  fill: ${t=>t.theme.custom.greyText.A3};
  stroke: ${t=>t.theme.custom.greyText.A3};
}
.MuiDrawer-root, .MuiDialog-root, .MuiTooltip-popper, .MuiPopover-root{
  z-index: 99999999 !important;
}
.MuiSnackbar-root{
  z-index: 999999999 !important;
  max-width: 450px;
  .MuiAlert-root {
    align-items: center;
  }
  .MuiAlert-message {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0;
  }
}
.MuiDialog-root .MuiDialog-container{
  background: ${t=>t.theme.custom.black.A4};
  backdrop-filter: blur(2px);
}

.tabMenu .searchTab .MuiOutlinedInput-input{
  border: 0.5px solid #675B8C;
  border-radius: 8px;
}
.tabMenu .MuiList-root {
  overflow: hidden;
  padding: 5px;
  width: 385px;
  max-height: unset;
}
.tabMenu .MuiList-root .MuiMenuItem-root{
  padding: 0;
}
.tabMenu .MuiList-root .tabList{
  max-height: 170px;
  overflow: auto;
}
.MuiMenuItem-root.selectPlaceholder {
  display: none;
}
.MuiMenuItem-root.menuSubHead {
  position: relative;
  opacity: 1;
  color: ${t=>t.theme.custom.white.A2} !important;
}
.MuiMenuItem-root.menuSubHead:after {
  content: '';
  height: 1px;
  width: 100%;
  background: ${t=>t.theme.custom.white.A2}
}
.MuiMenuItem-root.menuSubHead span {
  margin-right: 5px;
}
.MuiSkeleton-root {
  background: ${t=>t.theme.custom.skelton} !important;
}
.eChartTooltip {
  z-index: 99999999 !important;
}
.image {
  display: block;
  max-width: 100%;
  height: auto;
}

.imgLoading {
  filter: blur(10px);
  clip-path: inset(0);
}

.imgLoaded {
  filter: blur(0px);
  transition: filter 0.5s linear;
}
.chartsDisplay {
  position: relative;
  display: flex;
  flex-direction: column;
  .chartCounter {
    display: flex;
    align-items: center;
    color: ${t=>t.theme.custom.white.A11};
    flex-wrap: wrap;
    padding-bottom: 8px;
    h3 {
      margin: 0;
      margin-right: 16px;
    }
    span {
      font-size: ${t=>t.theme.custom.fontSize.font16};
      margin-right: 10px;
    }
    .counterType {
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      padding: 5px 8px;
      border-radius: 4px;
      white-space: nowrap;
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font8}};
      color: ${t=>t.theme.custom.white.A11};
      border: 0.734301px solid #675B8C;
      svg {
        margin-right: 4px;
      }
      &.mean {
        svg path {
          fill: ${t=>t.theme.custom.counterType.A1};
        }
      }
      &.sum {
        svg path {
          stroke: ${t=>t.theme.custom.counterType.A2};
        }
      }
      &.min {
        svg path {
          fill: ${t=>t.theme.custom.counterType.A3};
        }
      }
      &.max {
        svg path {
          fill:${t=>t.theme.custom.counterType.A4};
        }
      }
    }
  }
}
.chartsDisplay.queryBortChatsDisplay {
  min-width: 250px;
  padding: 10px;
  background: transparent;
}
.downloadAsImage,
.openInEditorButton,
.openInVisualEditorIcon {
  position: absolute !important;
  top: 8px;
  z-index: 1;
  padding: 0;
  background: transparent;
  border: 0;
  color: ${t=>t.theme.custom.white.A1};
  cursor: pointer;
  height: 20px;
  width: 20px;
  line-height: 1;
  border-radius: 4px;
  svg {
    height: 16px;
    width: 16px;
  }
  &:hover {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBgActive}};
  }
  &:disabled {
    color: ${t=>t.theme.custom.white.A3};
    cursor: not-allowed;
  }
}
.downloadAsImage {
  right: 8px;
}
.openInEditorButton {
  right: 38px;
}
.loadingBlock {
  min-height: 280px;
  text-align: center;
  width: 100%;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(0 0 0 / 30%);
  cursor: not-allowed;
}
.customFileInput {
  position: relative;
  max-width: 200px;
  margin: 0 auto;
  input {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
    &:hover ~ .fileName  {
      background: ${t=>t.theme.custom.white.A5};
    }
  }
  .fileName {
    padding: 10px 16px;
    border-radius: 4px;
    background: ${t=>t.theme.custom.white.A4};
    color: ${t=>t.theme.custom.greyText.A9};
    display: flex;
    align-items: center;
    justify-content: center;
    .uploadIcon {
      margin-right: 8px;
    }
    div {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    span {
      color: ${t=>t.theme.custom.greyText.A2};
    }
  }
}
.btnTrash:hover {
  color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.redTrash}};
}
button {
  svg {
    pointer-events: none;
  }
}
.walletconnect-modal__base {
  top: 55% !important;
  height: 100%;
}

.queryChatOpen{
  .MuiPaper-root{
    max-width: 100%;
    width: 100%;
    margin: 32px 0; 
  }
}
.chartInQueryBot{
  canvas{
    cursor:pointer;   
  }
} 
.queryBotGraphModal{
  .MuiPaper-root {
    height: 80% !important;
  }
  .MuiPaper-root .MuiDialogContent-root div{
    height: 100% !important;
  }
}

.MuiTooltip-popper {
  &[data-popper-placement*="bottom"] {
    margin-top: 8px !important;
  }
  &[data-popper-placement*="top"] {
    margin-bottom: 8px !important;
  }
  &[data-popper-placement*="left"] {
    margin-right: 8px !important;
  }
  &[data-popper-placement*="right"] {
    margin-left: 8px !important;
  }
  .MuiTooltip-tooltip {
    max-width: 400px;
    max-height: 175px;
    overflow-x: hidden;
    overflow-y: auto;
    background: ${t=>t.theme.custom.boxBg};
    border-radius: 8px;
    border: 0.5px solid #675b8c;
    box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
    position: unset;
    margin: 0 !important;
  }
}
.required:after {
  content:" *";
}
.optional:after {
  content:" (Optional)";
}
.CodeMirror-lint-tooltip,
.CodeMirror-info {
  background: ${t=>t.theme.custom.boxBg} !important;
  border-radius: 8px !important;
  border: 0.5px solid #675b8c !important;
  box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55) !important;
  padding: 8px !important;
  font-size: ${t=>t.theme.custom.fontSize.font12}
}
.CodeMirror-info {
  .CodeMirror-info-header {
    .field-name,
    .type-name-pill {
      font-size: ${t=>t.theme.custom.fontSize.font12} !important;
    }
  }
}
.__floater {
  .__floater__body {
    button[data-action="skip"] {
      padding-left: 0 !important;
    }
    button[data-action="primary"] {
      transition: .5s ease;
      &:hover {
        background: transparent !important;
        border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A11}} !important;
      }
    }
  }
}
`;var Cut={},UGo=As;Object.defineProperty(Cut,"__esModule",{value:!0});var eJn=Cut.default=void 0,zGo=UGo(Ps()),GGo=E;eJn=Cut.default=(0,zGo.default)((0,GGo.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");const VGo=ke.forwardRef((t,e)=>E.jsx(Hqt,{elevation:6,ref:e,variant:"filled",...t}));function KGo(){const t=Xrt();return E.jsx(LYt,{anchorOrigin:{vertical:"top",horizontal:"right"},onClose:Fhn,open:!!(t!=null&&t.message),autoHideDuration:t.duration||$an,sx:{"& .MuiPaper-root":{width:"473px",height:"174px",backgroundColor:"#1E1736",borderRadius:"13px",border:"1px solid #2E2744",position:"relative"}},children:E.jsxs(VGo,{severity:t==null?void 0:t.type,sx:{display:"flex",alignItems:"center",color:"#FFFFFF",fontSize:"16px",fontWeight:"400",width:"100%",padding:"16px","& .MuiAlert-icon":{color:(t==null?void 0:t.type)==="error"?"#FF4949":void 0,marginRight:"8px"}},icon:(t==null?void 0:t.type)==="error"?E.jsx(eJn,{sx:{color:"#FF4949",marginRight:"8px"}}):null,children:[(t==null?void 0:t.type)==="error"&&E.jsx("span",{style:{position:"absolute",top:"8px",right:"8px",color:"#322020",fontSize:"14px",fontWeight:"400",padding:"8px 10px",borderRadius:"5px",backgroundColor:"#FF4949"},children:"Client Error"}),E.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[E.jsx("span",{style:{color:"#FFFFFF",fontSize:"16px",fontWeight:"400"},children:t==null?void 0:t.message}),(t==null?void 0:t.detail)&&E.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:"100px",overflowY:"scroll"},children:E.jsx("span",{style:{color:"#939099",fontSize:"14px",marginTop:"8px"},children:t==null?void 0:t.detail})})]})]})})}const WGo=ke.forwardRef((t,e)=>E.jsx(Hqt,{elevation:6,ref:e,variant:"filled",...t}));function QGo(){const t=Xrt();return t!=null&&t.message?E.jsx(LYt,{anchorOrigin:{vertical:lgi,horizontal:cgi},onClose:Fhn,open:!!(t!=null&&t.message),autoHideDuration:t.duration||$an,children:E.jsx(WGo,{severity:t==null?void 0:t.type,sx:{width:"100%"},children:t==null?void 0:t.message})}):null}const qGo="/assets/info-c44f1c2f.svg",C$e=gt(d1)`
  &&.menuLink {
    width: 100%;
    padding: 6px 8px;
    color: ${t=>t.theme.custom.greyText.A5};
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &&.menuLink:hover {
    color: ${t=>t.theme.custom.white.A1};
  }
`,YGo=gt.div`
  display: flex;
  align-items: center;
  .MuiIconButton-root {
    margin-left: 12px;
  }
  .activeTab {
    color: ${t=>t.theme.custom.white.A11};
    background: ${t=>t.theme.custom.secondaryBg};
    border-radius: 8px;
    span {
      display: inline-block;
      height: 36px;
      line-height: 36px;
      vertical-align: middle;
      &.text {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 12px;
      }
      &.tabDeleteIcon {
        cursor: pointer;
        padding-right: 12px;
      }
    }
  }
  ${t=>t.theme.breakpoints.down("lg")} {
    .MuiIconButton-root {
      margin-left: 8px;
    }
    .activeTab {
      span {
        &.text {
          max-width: 80px;
          padding: 0 8px;
        }
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .activeTab {
      span {
        &.text {
          max-width: 45px;
        }
        &.tabDeleteIcon {
          padding-right: 8px;
        }
      }
    }
  }
`,JGo=gt(lNr)`
  .tabDeleteIcon {
    line-height: 1;
    cursor: pointer;
  }

  &&.creatNewButton {
    padding: 0;
    margin-right: 12px;
    height: 36px;
    opacity: 1;
    min-width: unset;
    min-height: unset;
    svg {
      path {
        stroke: ${t=>t.theme.custom.white.A11};
      }
    }
  }
  &&.creatNewButton a {
    color: ${t=>t.theme.custom.white.A11};
    background: ${t=>t.theme.custom.primaryBg};
    line-height: 1;
    border-radius: 8px;
    padding: 0;
    height: 36px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
  }
  &&.creatNewButton a:hover {
    background: transparent;
    border-color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    box-shadow: inset 0 0 0.875rem 1px rgb(75 0 178 / 25%),
      inset 0 0 0.5rem 1px rgb(206 184 217 / 20%),
      0 0 0.5rem 1px rgb(206 184 217 / 20%), 0 0 0.875px 1px rgb(75 0 178 / 25%);
  }
  &&.creatNewButton .TabLinkIcon {
    height: 18px;
    width: 18px;
  }
  ${t=>t.theme.breakpoints.down("lg")} {
    &&.creatNewButton {
      margin-right: 8px;
    }
  }
`,ZGo=({queryId:t,handleCallback:e})=>{var j,H;const{search:n}=Zh(),[r,a]=Y.useState(""),{pathname:o}=Zh(),s=xo(),l=kAa(),c=MAa(),u=RAa(),d=Doe(),{width:h}=Is(),f=(j=new URLSearchParams(n).get("tabID"))==null?void 0:j.toString(),[p,m]=Y.useState(null),g=((l==null?void 0:l.length)||0)+((u==null?void 0:u.length)||0);Y.useEffect(()=>{var $;if(K_(f||t),f&&!((($=l==null?void 0:l.filter(({id:Z})=>Z===f))==null?void 0:$.length)>0)){const Z=[...l,{id:f+1,name:`Untitled Query ${f}`}];XLe(Z)}},[f,t]);const v=Y.useMemo(()=>(l==null?void 0:l.length)&&l[l.length-1]&&Number(l[l.length-1].id),[l]),A=Y.useMemo(()=>Number(v)||0,[v]),y={scope:uv.private,pageSize:20,pageNo:1,sortOrder:"DESC"},S=ho(),x=Zt.getSavedQueries(UIr.stringify(y,{arrayFormat:"bracket"}),S);Y.useEffect(()=>{Nkt(x)},[x,Nkt]),Y.useEffect(()=>{n?((l==null?void 0:l.length)>0&&(l==null?void 0:l.filter($=>$.id===f)).length<1&&(s==null||s.push({pathname:"/queries/new",search:`?tabID=${A}`})),K_(f)):t?K_(t):((l==null?void 0:l.length)>0&&(l==null?void 0:l.filter($=>$.id===parseInt(f,10))).length<1&&(s==null||s.push({pathname:"/queries/new",search:`?tabID=${A}`})),K_(f))},[o,n]);const w=()=>{K_(`${A+1}`);const U=[...l,{id:`${A+1}`,name:`Untitled Query ${A+1}`}];XLe(U)},_=U=>{var Q,ee;if(((u==null?void 0:u.length)||0)+((l==null?void 0:l.length)||0)<=1)return;const $=l==null?void 0:l.filter(X=>(X==null?void 0:X.id)!==U);XLe($);const Z=(l==null?void 0:l.findIndex(X=>(X==null?void 0:X.id)===U))-1,K=$[Z]&&((Q=$[Z])==null?void 0:Q.id);if(Z<0)if(u!=null&&u.length){const X=u[u.length-1]&&((ee=u[u.length-1])==null?void 0:ee.id);s==null||s.push({pathname:`/queries/${X}`}),K_(X==null?void 0:X.toString())}else s==null||s.push({pathname:"/queries/new",search:`?tabID=${A}`}),K_(A);else K_(K==null?void 0:K.toString()),s==null||s.push({pathname:"/queries/new",search:`?tabID=${K}`})},C=async U=>{if(((u==null?void 0:u.length)||0)+((l==null?void 0:l.length)||0)<=1)return;const $=u==null?void 0:u.filter(ee=>(ee==null?void 0:ee.id)!==U);s1a($);const Z=(u==null?void 0:u.findIndex(ee=>(ee==null?void 0:ee.id)===U))-1,K=$[Z]&&$[Z].id,Q=$[$.length-1]&&$[$.length-1].id;(l==null?void 0:l.length)>0?Z<0&&A?s==null||s.push({pathname:"/queries/new",search:`?tabID=${A}`}):K&&(s==null||s.push({pathname:`/queries/${K}`}),K_(K==null?void 0:K.toString())):Q&&(s==null||s.push({pathname:`/queries/${Q}`}),K_(Q==null?void 0:Q.toString()))},R=U=>{if(!S){e&&e(),U.preventDefault();return}m(U.currentTarget)},k=()=>{a(""),m(null)},P=Y.useMemo(()=>Ft.concat(l,u)||[],[u,u==null?void 0:u.length,l]),[N,L]=Y.useState([]);let I=1;h>=qt.breakpoints.values.lg&&h<qt.breakpoints.values.xl+100&&(I=1);const b=(U,$)=>{const z=[...U],Z=z.findIndex(({id:Q})=>Q===$);if(Z<I)return z;const K=z.splice(Z,1);return z.unshift(...K),z};Y.useEffect(()=>{c&&(u!=null&&u.length)&&(u==null?void 0:u.findIndex(({id:U})=>U===c))===-1&&(l==null?void 0:l.findIndex(({id:U})=>(U==null?void 0:U.toString())===(c==null?void 0:c.toString())))===-1&&o1a(c,S)},[c,u==null?void 0:u.length]),Y.useEffect(()=>{if(P!=null&&P.length){const U=b(P,c);L([...U])}},[P,c]);const T=new RegExp(r,"i"),M=Y.useMemo(()=>N==null?void 0:N.slice(0,I),[N]),D=(H=N==null?void 0:N.slice(I))==null?void 0:H.filter(U=>T.test(U==null?void 0:U.name)),B=U=>{S||(e&&e(),U.preventDefault()),!(U.ctrlKey||U.metaKey||U.altKey||U.shiftKey||U.button||U.defaultPrevented)&&(T5(`${A+1}`),w())};return E.jsx(E.Fragment,{children:E.jsxs(YGo,{children:[E.jsx(JGo,{className:"creatNewButton",label:E.jsx(C$e,{to:`/queries/new?tabID=${A+1}`,onClick:U=>{B(U)},children:E.jsx(ED,{})}),value:"new"}),M==null?void 0:M.map((U,$)=>E.jsxs("div",{className:"activeTab",children:[E.jsx(Pn,{label:U==null?void 0:U.name,children:E.jsx("span",{className:"text",children:(U==null?void 0:U.name)||d||q.UNTITLED_QUERY})},U==null?void 0:U.name),M.length>1&&!(U!=null&&U.createdAt)||((u==null?void 0:u.length)||0)+((l==null?void 0:l.length)||0)<=1?E.jsx(E.Fragment,{}):E.jsx("span",{onClick:z=>{if(!S){e&&e(),z.preventDefault();return}U!=null&&U.modified?C(U==null?void 0:U.id):_(U==null?void 0:U.id)},className:"tabDeleteIcon",role:"presentation",children:E.jsx(San,{})})]},`${$+$}`)),g>I&&E.jsx(_n,{onClick:R,tooltip:"Show more",children:E.jsx(sat,{})}),E.jsxs(lE,{anchorEl:p,open:!!p,onClose:k,className:"tabMenu",anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[E.jsx("div",{className:"searchTab",children:E.jsx(gr,{onChange:U=>a(U.target.value),placeholder:q.SEARCH_ELIPSIS_CONTEXT(q.QUERIES),autoComplete:"off",value:r})}),E.jsx("div",{className:"tabList",children:D==null?void 0:D.map(U=>E.jsx(Dn,{onClick:k,children:U!=null&&U.name&&(U==null?void 0:U.id)!=="1"?E.jsx(C$e,{to:`/queries/${U==null?void 0:U.id}`,className:"menuLink",children:U==null?void 0:U.name}):E.jsx(C$e,{to:`/queries/new?tabID=${U==null?void 0:U.id}`,className:"menuLink",onClick:$=>{$.ctrlKey||$.metaKey||$.altKey||$.shiftKey||$.button||$.defaultPrevented||T5(U==null?void 0:U.id)},children:U==null?void 0:U.name})},`menu-query-list-${U==null?void 0:U.id}`))})]})]})})},XGo=ke.memo(ZGo),eVo="/assets/chartsIcon-e5af16b9.svg",tVo="/assets/view-219961f6.svg",nVo="/assets/exploreIcon-862b3a04.svg",rVo="/assets/getDataChainIcon-79f7341c.svg",iVo="/assets/dashboard-58faa7d0.svg",aVo="/assets/newDashboardIcon-2dd342c2.svg",oVo="/assets/queriesIcon-fc16664d.svg",sVo="/assets/queryEditorIcon-62a95a16.svg",lVo="/assets/sendDataChainIcon-f42a3716.svg",cVo="/assets/graphql-bf8a0bd0.svg",uVo=gt(n2r)`
  && {
    .MuiPaper-root {
      color: inherit;
    }
  }
  &&.MuiDrawer-docked {
    .MuiPaper-root {
      box-shadow: 0px 8px 10px -5px rgb(0 0 0 / 20%),
        0px 16px 24px 2px rgb(0 0 0 / 14%), 0px 6px 30px 5px rgb(0 0 0 / 12%);
      background: transparent;
    }
  }
  &&.loginDrawer {
    &.loggedIn {
      .drawerHead {
        display: none;
      }
      .drawerBody {
        padding-top: 0;
        display: flex;
        flex-direction: column;
        .loginToolbar.stickyTop {
          position: sticky;
          top: 0;
          padding-top: 16px;
          background: ${t=>t.theme.custom.boxBg};
          z-index: 9999;
        }
        .gridContent {
          flex: 1;
          overflow: auto;
        }
      }
    }
    .subcriptionFlow {
      .subscriptionBlock {
        height: 100%;
      }
    }
    .loginToolbar {
      margin-bottom: 16px;
      .toolbarTitle {
        color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
        font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
      }
      .MuiToggleButtonGroup-root {
        overflow: auto;
        border-radius: 0;
      }
      .tabButton {
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
        &.Mui-selected:after {
          width: 40px;
        }
      }
    }
    .MuiDrawer-paper {
      padding: 72px 16px 16px;
      background: transparent;
      box-shadow: none;
      .drawerWrapper {
        border-radius: 8px;
        box-shadow: 0px 10px 30px rgba(15, 24, 42, 0.51);
        height: unset;
        max-height: 100%;
        position: relative;
        border: 1px solid #675b8c;
        .drawerHead {
          border-bottom: 0;
          padding: 16px 16px 0;
        }
      }
    }
    ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("md")}} {
      .loginToolbar {
        .tabButton {
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
          &:not(:last-child) {
            margin-right: 16px;
          }
        }
      }
    }
    ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("sm")}} {
      .MuiDrawer-paper {
        padding: 64px 8px 8px;
      }
    }
  }
  &.schemaSidebar {
    .drawerHead {
      padding: 8px;
      border: 0;
      button {
        height: 24px;
        width: 24px;
        margin-left: auto;
      }
    }
    .drawerBody {
      padding: 0;
      .MuiInputBase-root {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
      }
    }
  }
`,dVo=gt.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  width: ${t=>t.width}px;
  background: ${t=>t.theme.custom.boxBg};
  ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("md")}} {
    max-width: 460px;
  }
  ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.breakpoints)==null?void 0:n.down("sm")}} {
    max-width: 340px;
  }
`,hVo=gt.div`
  border-bottom: 1px solid ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A6}};
  display: flex;
  padding: 10px 15px;
  align-items: center;
  justify-content: space-between;
  h2 {
    color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText.A3}};
    margin-bottom: 0;
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font16}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
  }
  button {
    color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
  }
`,fVo=gt.div`
  flex: 1;
  padding: 16px;
  overflow: auto;
  .MuiGrid-root.MuiGrid-container {
    ${t=>t.theme.breakpoints.down("md")} {
      flex-direction: column;
      .MuiGrid-root.MuiGrid-item {
        flex-basis: 100%;
        max-width: 100%;
      }
    }
  }
`;function tJn({title:t,visible:e,onClose:n,width:r,placement:a,children:o,theme:s,variant:l="temporary",className:c}){return E.jsx(uVo,{anchor:a,open:e,onClose:n,variant:l,className:c,children:E.jsxs(dVo,{width:r,theme:s,className:"drawerWrapper",children:[E.jsxs(hVo,{theme:s,className:"drawerHead",children:[E.jsx("h2",{children:t}),E.jsx(_n,{onClick:n,children:E.jsx(Wl,{})})]}),E.jsx(fVo,{className:"drawerBody",theme:s,children:o})]})})}class abe{static getDescendantProperty(e,n,r=[]){let a,o,s,l,c,u;if(n){if(s=n.indexOf("."),s===-1?a=n:(a=n.slice(0,s),o=n.slice(s+1)),l=e[a],l!==null&&typeof l<"u")if(!o&&(typeof l=="string"||typeof l=="number"))r.push(l);else if(Object.prototype.toString.call(l)==="[object Array]")for(c=0,u=l.length;c<u;c++)abe.getDescendantProperty(l[c],o,r);else o&&abe.getDescendantProperty(l,o,r)}else r.push(e);return r}}class fj{constructor(e=[],n=[],r={}){Array.isArray(n)||(r=n,n=[]),this.haystack=e,this.keys=n,this.options=Object.assign({caseSensitive:!1,sort:!1},r)}search(e=""){if(e==="")return this.haystack;const n=[];for(let r=0;r<this.haystack.length;r++){const a=this.haystack[r];if(this.keys.length===0){const o=fj.isMatch(a,e,this.options.caseSensitive);o&&n.push({item:a,score:o})}else for(let o=0;o<this.keys.length;o++){const s=abe.getDescendantProperty(a,this.keys[o]);let l=!1;for(let c=0;c<s.length;c++){const u=fj.isMatch(s[c],e,this.options.caseSensitive);if(u){l=!0,n.push({item:a,score:u});break}}if(l)break}}return this.options.sort&&n.sort((r,a)=>r.score-a.score),n.map(r=>r.item)}static isMatch(e,n,r){e=String(e),n=String(n),r||(e=e.toLocaleLowerCase(),n=n.toLocaleLowerCase());const a=fj.nearestIndexesFor(e,n);return a?e===n?1:a.length>1?2+(a[a.length-1]-a[0]):2+a[0]:!1}static nearestIndexesFor(e,n){const r=n.split("");let a=[];return fj.indexesOfFirstLetter(e,n).forEach((s,l)=>{let c=s+1;a[l]=[s];for(let u=1;u<r.length;u++){const d=r[u];if(c=e.indexOf(d,c),c===-1){a[l]=!1;break}a[l].push(c),c++}}),a=a.filter(s=>s!==!1),a.length?a.sort((s,l)=>s.length===1?s[0]-l[0]:(s=s[s.length-1]-s[0],l=l[l.length-1]-l[0],s-l))[0]:!1}static indexesOfFirstLetter(e,n){const r=n[0];return e.split("").map((a,o)=>a!==r?!1:o).filter(a=>a!==!1)}}const pVo=gt.div`
  && {
  }
`,mVo=({loggedInUserRole:t})=>{const n=localStorage.getItem("userId"),r=Y.useRef(null),[a,o]=Y.useState(""),[s,l]=Y.useState(""),[c,u]=Y.useState(!1),{loading:d=!1,list:h={}}=N_e(),[f,p]=Y.useState([]),[m,g]=Y.useState([]),[v,A]=Y.useState(""),[y,S]=Y.useState(!1),[x,w]=Y.useState(""),[_,C]=Y.useState(!1),[R,k]=Y.useState(!1);Y.useEffect(()=>{var U;const H=[];(U=Object.keys(h))==null||U.forEach($=>{const z=h[$]||" member";H.push({userId:$,role:z})}),p([...H]),g([...H])},[h]);const P=(H,U,$)=>{var Z;const z=((Z=H.target)==null?void 0:Z.value)||"member";$0a(U,$,z)},N=({userId:H})=>H,L=({role:H,userId:U})=>E.jsx(Ba,{value:H,onChange:$=>P($,U,H),disabled:n===U||(t==null?void 0:t.toLowerCase())==="member",children:REt.map($=>E.jsx(Dn,{value:$,children:$},$))}),I=({userId:H,role:U})=>E.jsx(_n,{disabled:n===H||(t==null?void 0:t.toLowerCase())==="member",onClick:()=>{r.current&&(r.current.value=""),A(""),F0a(H,U)},children:E.jsx(aoe,{})}),b=async()=>{r.current&&(r.current.value=""),A(""),p([...m])},T=H=>{const $=new fj(m,["userId"],{sort:!0}).search(H);p([...$])},M=async H=>{var $,z,Z;const U=((Z=(z=($=H==null?void 0:H.target)==null?void 0:$.value)==null?void 0:z.toString())==null?void 0:Z.trim())||"";return A(U),U?T(U):(b(),null)},D=Ft.debounce(M,200),B=()=>{gN(x).then(()=>{C(!0)})},j=async()=>{u(!0),await G0a(a.toUpperCase(),w),o(""),l(a),u(!1)};return E.jsx(pVo,{children:E.jsxs(Fu,{children:[E.jsxs("div",{className:"cardHead",children:[!R&&y&&q.INVITE_USER,!y&&(R?q.MY_ORGANIZATION:q.ORGANIZATION_MEMBERS),E.jsxs("div",{className:"headRight",children:[!R&&!y&&E.jsxs(eC,{className:"searchField",children:[E.jsx(gr,{placeholder:q.SEARCH_ELIPSIS_CONTEXT(q.MEMBERS),onChange:D,defaultValue:v||"",inputRef:r}),E.jsx("span",{className:"searchIcon",children:v!==""?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:b}):E.jsx(yv,{})})]}),!R&&(t==null?void 0:t.toLowerCase())!=="member"&&E.jsx(Jt,{color:"secondary",variant:"contained",onClick:()=>S(!y),children:y?q.ORGANIZATION_MEMBERS:q.INVITE_USER}),E.jsx(_n,{onClick:()=>{k(H=>!H),S(!1)},children:R?E.jsx(Wl,{}):E.jsx(cg,{})})]})]}),E.jsx(jo,{in:R&&!y,timeout:"auto",unmountOnExit:!0,children:E.jsxs("div",{className:"infoText",children:[E.jsx("div",{children:Qce.topTextPara}),E.jsxs("ul",{children:[E.jsx("li",{children:Qce.info1}),E.jsx("li",{children:Qce.info2}),E.jsx("li",{children:Qce.info3})]})]})}),E.jsx(jo,{in:!R&&y&&(t==null?void 0:t.toLowerCase())!=="member",timeout:"auto",unmountOnExit:!0,children:E.jsxs("div",{className:"formContent",children:[E.jsxs(Er,{container:!0,spacing:2,children:[E.jsx(Er,{item:!0,md:5,xs:12,children:E.jsx("div",{className:"formGroup",children:E.jsxs(Ba,{value:a||"",onChange:H=>{var $;const U=(($=H.target)==null?void 0:$.value)||"member";o(U),C(!1)},disabled:(t==null?void 0:t.toLowerCase())==="member",label:q.SELECT_ROLE,children:[E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT_ROLE}),REt.map(H=>E.jsx(Dn,{value:H,children:H},H))]})})}),x&&E.jsx(Er,{item:!0,md:7,xs:12,children:E.jsx("div",{className:"formGroup",children:E.jsx(gr,{placeholder:q.GENERATE_JOIN_CODE,label:q.GENERATE_JOIN_CODE_LABEL(s),value:x,readOnly:!0,endAdornment:E.jsx(Kx,{position:"end",className:"inputAdornment",children:E.jsx(_n,{tooltip:_?q.COPIED:q.COPY,onClick:B,children:E.jsx(zG,{})})})})})})]}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{onClick:()=>j(),disabled:!a,variant:"contained",color:"primary",children:c?E.jsx("img",{src:ws,alt:"loading",height:36}):q.GENERATE_JOIN_CODE})})]})}),E.jsx(jo,{in:!R&&!y,timeout:"auto",unmountOnExit:!0,children:E.jsx(tf,{data:f,columns:bgi,loading:d,isAction:!0,actionComponent:H=>I(H),actionColumnName:"Actions",rowRender:[{dataKey:"userId",func:N},{dataKey:"role",func:L}],rowSize:60,bodyHeight:240})})]})})},gVo=gt.div`
  width: 100%;
  overflow: auto hidden;
  .scrollContent {
    .tableBody {
      display: block;
      max-height: ${t=>t.tableHeight}px;
      overflow: hidden auto;
    }
  }
  .tableHead {
    tr {
      display: flex;
      flex-wrap: nowrap;
    }
    .tableCell {
      background: transparent;
      font-weight: ${t=>t.theme.custom.fontWeight.md};
    }
  }
  .tableCell {
    color: ${t=>t.theme.custom.white.A11};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    padding: 12px 16px;
    border: 0;
    &:last-child {
      flex: 1;
    }
    button {
      height: 30px;
      width: 30px;
      box-shadow: unset;
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.thumbnailBg}};
      border-radius: 4px;
      border: 0;
    }
    .expandIcon {
      &.expanded {
        svg {
          transform: rotate(0);
        }
      }
      svg {
        max-width: 12px;
        transform: rotate(180deg);
      }
    }
    .cellData {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    &.collapsible {
      padding: 0;
      .DragHandleIcon {
        pointer-events: none;
        opacity: 0;
      }
      .collpsibleContent {
        border-radius: 8px;
        padding: 8px;
        background: ${t=>t.theme.custom.secondaryBg};
        border: 1px solid #675b8c;
      }
    }
    .emptyBlock {
      height: 150px;
    }
  }
  .tableBody {
    .flexRow {
      display: flex;
    }
    .tableRow {
      display: flex;
      flex-wrap: nowrap;
      &.active {
        .tableCell {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
        }
      }
      .tableCell {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.boxBg}};
        margin-bottom: 4px;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        flex-direction: unset;
        &:last-child {
          border-radius: 0 8px 8px 0;
          justify-content: flex-end;
        }
        &:first-child {
          border-radius: 8px 0 0 8px;
          position: relative;
          &:after {
            content: '';
            position: absolute;
            width: 3px;
            height: 100%;
            left: 0;
            top: 0;
          }
        }
      }
      &:nth-child(5n-4) {
        .tableCell:first-child:after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pink}};
        }
      }
      &:nth-child(5n-3) {
        .tableCell:first-child:after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.mint}};
        }
      }
      &:nth-child(5n-2) {
        .tableCell:first-child:after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.blue}};
        }
      }
      &:nth-child(5n-1) {
        .tableCell:first-child:after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
        }
      }
      &:nth-child(5n) {
        .tableCell:first-child:after {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
        }
      }
    }
  }
`,vVo=t=>{var n;const e=(n=t==null?void 0:t.access)==null?void 0:n.map(({resourceId:r})=>({tagId:r}));return E.jsx(Ov,{isTag:!1,tags:e},`resource-list-${O0.uuid()}`)},k$e=Array.from(Array(4).keys()),AVo=({row:t,columns:e,collapsableComponent:n,isAction:r,actionComponent:a,rowSelectBiscuit:o,isOpen:s,onToggle:l})=>E.jsxs(E.Fragment,{children:[E.jsxs(Mx,{className:`tableRow ${s?"active":""}`,children:[e==null?void 0:e.map(({dataKey:c,width:u})=>E.jsx(mv,{className:"tableCell",style:{minWidth:u,maxWidth:u},children:E.jsx(Pn,{label:t[c],children:E.jsx("span",{className:"cellData",children:c==="name"&&o?o(t):r&&vVo(t)||t[c]})})})),E.jsxs(mv,{className:"tableCell",align:"right",children:[E.jsx(_n,{className:`expandIcon ${s&&"expanded"}`,disabled:t==null?void 0:t.disabled,onClick:l,children:E.jsx(QL,{})}),r&&a&&a(t)]})]}),E.jsx(Mx,{children:E.jsx(mv,{colSpan:6,className:"tableCell collapsible",children:E.jsx(jo,{in:s,timeout:"auto",unmountOnExit:!0,children:E.jsx("div",{className:"collpsibleContent",children:n&&s&&n(t)})})})})]}),yVo=({columns:t,data:e,collapsableComponent:n,loading:r=!1,tableHeight:a=280,theme:o,isAction:s,actionComponent:l,rowSelectBiscuit:c})=>{const[u,d]=ke.useState(null),h=p=>{d(m=>m===p?null:p)},f=()=>r?E.jsx(Mx,{className:"flexRow",children:E.jsx(mv,{colSpan:6,className:"loading",sx:{padding:0},children:k$e==null?void 0:k$e.map(p=>E.jsx(Ca,{variant:"rectangular",animation:"wave",height:54,sx:{marginBottom:"4px",borderRadius:"8px"}},p))})}):!e.length&&!r?E.jsx(Mx,{className:"flexRow",children:E.jsx(mv,{className:"tableCell",align:"center",colSpan:6,children:E.jsx(cgn,{className:"emptyBlock",children:E.jsxs("div",{className:"emptyContent",children:[E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:EDn}),E.jsx("img",{src:xDn,alt:"error-icon"})]}),E.jsx("div",{className:"text",children:q.NO_DATA_FOUND})]})})})}):e==null?void 0:e.map(p=>E.jsx(AVo,{row:p,columns:t,collapsableComponent:n,isAction:s,actionComponent:l,rowSelectBiscuit:c,onToggle:()=>h(p),isOpen:u===p},p==null?void 0:p.name));return E.jsxs(gVo,{tableHeight:a,theme:o,children:[E.jsx(Mte,{"aria-label":"collapsible table",children:E.jsx(dEe,{className:"tableHead",children:E.jsxs(Mx,{children:[t==null?void 0:t.map(({label:p,width:m})=>E.jsx(mv,{className:"tableCell",style:{minWidth:m,maxWidth:m},children:p},p)),E.jsx(mv,{className:"tableCell action",align:"right",children:"Action"})]})})}),E.jsx("div",{className:"scrollContent",children:E.jsx(Mte,{children:E.jsx(uEe,{className:"tableBody",children:f()})})})]})},nJn=ke.memo(yVo),bVo=gt.div`
  && {
    .radioBuiscuit:checked,
    .radioBuiscuit:not(:checked) {
      position: absolute;
      left: -9999px;
    }
    .radioBuiscuit:checked + label,
    .radioBuiscuit:not(:checked) + label {
      position: relative;
      padding-left: 28px;
      cursor: pointer;
      line-height: 20px;
      display: block;
      color: ${t=>t.theme.custom.white.A11};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      margin-bottom: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .radioBuiscuit:checked + label:before,
    .radioBuiscuit:not(:checked) + label:before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 18px;
      height: 18px;
      border: 1px solid ${t=>t.theme.custom.white.A11};
      border-radius: 100%;
      background: transparent;
    }
    .radioBuiscuit:checked + label:after,
    .radioBuiscuit:not(:checked) + label:after {
      content: '';
      width: 10px;
      height: 10px;
      background: ${t=>t.theme.custom.white.A11};
      position: absolute;
      top: 4px;
      left: 4px;
      border-radius: 100%;
      -webkit-transition: all 0.2s ease;
      transition: all 0.2s ease;
    }
    .radioBuiscuit:not(:checked) + label:after {
      opacity: 0;
      -webkit-transform: scale(0);
      transform: scale(0);
    }
    .radioBuiscuit:checked + label:after {
      opacity: 1;
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }
`,xVo=({resourceData:t})=>{const n=(o=0)=>o?o>3?180:60*o:160,r=o=>{const{resourceId:s}=o||{};return s},a=o=>{const{supportedOperations:s=[]}=o||{},l=s==null?void 0:s.map(c=>({tagId:c}));return E.jsx(Ov,{isTag:!1,tags:l})};return E.jsx(tf,{data:t,columns:ggi,isAction:!1,rowRender:[{dataKey:"resourceId",func:r},{dataKey:"supportedOperations",func:a}],loading:!1,rowSize:60,bodyHeight:n(t==null?void 0:t.length),nonSortableColumns:{supportedOperations:!0}})},EVo=({setShowBiscuit:t,biscuitContent:e=[],loading:n=!1})=>{var h,f;const r=()=>{const p=localStorage.getItem("selectedBiscuit")||"";return p?JSON.parse(p):{}},[a,o]=Y.useState((f=(h=r())==null?void 0:h.biscuit)==null?void 0:f.name);Y.useEffect(()=>{!n&&!(e!=null&&e.length)&&t(!1)},[n,e]);const s=async p=>{await D0a(p)&&Ooe()},l=async p=>{const{name:m="",biscuit:g,access:v=[]}=p||{},{resourceId:A="",supportedOperations:y=[]}=v[0]||{},x={...r(),biscuit:{name:m,value:g,resourceId:A,supportedOperations:y}},w=JSON.stringify(x);localStorage.setItem("selectedBiscuit",w),zi(q.BISCUIT_APPLIED),o(m)},c=p=>{var A,y;const{name:m,biscuit:g}=p||{},v=r();return E.jsxs(bVo,{onClick:()=>l(p),children:[E.jsx("input",{type:"radio",name:"radioBuiscuit",className:"radioBuiscuit",id:(m==null?void 0:m.replaceAll(" ",""))||g,defaultChecked:m?((A=v==null?void 0:v.biscuit)==null?void 0:A.name)===m:((y=v==null?void 0:v.biscuit)==null?void 0:y.value)===g,onClick:()=>l(p)}),E.jsx("label",{htmlFor:(m==null?void 0:m.replaceAll(" ",""))||g,children:m||q.AUTOGENERATED_BISCUIT})]})},u=p=>{var A;const{name:m="",biscuit:g}=p,v=r();return E.jsx(cm,{icon:!0,disabled:!m||((A=v==null?void 0:v.biscuit)==null?void 0:A.name)===m||g===a,confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE(m),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`${m||""}`),onConfirm:()=>{s(m)}},"expire")},d=p=>E.jsx(xVo,{resourceData:p==null?void 0:p.access});return E.jsx(jo,{timeout:"auto",in:!0,unmountOnExit:!0,children:E.jsx(nJn,{data:e,columns:mgi,loading:n,isAction:!0,collapsableComponent:d,actionComponent:p=>u(p),rowSelectBiscuit:c,tableHeight:310})})},SVo=()=>{var c,u,d;const[t,e]=Y.useState({name:"",biscuit:"",publicKey:""}),[n,r]=Y.useState(!1),[a,o]=Y.useState(""),s=async h=>{h.preventDefault();try{r(!0),o("");const{error:f}=await Hu.addBiscuit(t);f?o(f):(e({name:"",biscuit:"",publicKey:""}),Ooe(),zi(q.BISCUIT_ADDED))}catch{}finally{r(!1)}},l=(h,f)=>{const{value:p=""}=(h==null?void 0:h.target)||{};e(m=>({...m,[f]:p}))};return E.jsxs("form",{onSubmit:s,children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{id:"name",label:q.BISCUIT_NAME,required:!0,onChange:h=>l(h,"name"),value:t.name,placeholder:`${q.ENTER} ${q.BISCUIT_NAME}`})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{id:"biscuit",label:q.BISCUIT_VALUE,required:!0,onChange:h=>l(h,"biscuit"),value:t.biscuit,placeholder:`${q.ENTER} ${q.BISCUIT_VALUE}`})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{id:"publicKey",label:q.PUBLIC_KEY,required:!0,value:t.publicKey,onChange:h=>l(h,"publicKey"),placeholder:`${q.ENTER} ${q.PUBLIC_KEY}`})}),a&&E.jsx(Vc,{children:a}),E.jsxs("div",{className:"updateBtnRow",children:[E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",disabled:!((c=t==null?void 0:t.name)!=null&&c.trim())||!((u=t==null?void 0:t.biscuit)!=null&&u.trim())||!((d=t==null?void 0:t.publicKey)!=null&&d.trim())||n,children:q.ADD}),E.jsxs("div",{className:"infoLinks",children:[E.jsxs("a",{target:"_blank",href:MEt,rel:"noreferrer",className:"infoLink",onClick:()=>_a.outboundLinks({linkFor:q.WHAT_ARE_BISCUITS,link:MEt}),children:[E.jsx(cg,{}),q.WHAT_ARE_BISCUITS]}),E.jsx("a",{target:"_blank",href:NEt,rel:"noreferrer",className:"infoLink",onClick:()=>_a.outboundLinks({linkFor:q.HOW_TO_CREATE_BISCUIT,link:NEt}),children:q.HOW_TO_CREATE_BISCUIT})]})]})]})},wVo=gt.div`
  position: absolute;
  left: 0;
  top: 80px;
  width: 100%;
  background: ${t=>t.theme.custom.dropdownBg};
  border: 0.5px solid #675b8c;
  box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
  color: ${t=>t.theme.custom.white.A11};
  backdrop-filter: blur(2px);
  border-radius: 8px;
  z-index: 99;
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 165px;
    overflow: auto;
    li {
      color: ${t=>t.theme.custom.greyText.A5};
      font-size: ${t=>t.theme.custom.fontSize.font10};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      padding: 6px 16px;
      cursor: pointer;
      overflow: hidden;
      text-overflow: ellipsis;
      &:hover {
        color: ${t=>t.theme.custom.white.A1};
        background: ${t=>t.theme.custom.white.A5};
      }
    }
  }
`,j9t=({options:t,handleSelect:e})=>E.jsx("div",{children:(t==null?void 0:t.length)>0&&E.jsx(wVo,{className:"inputOptionMenu",children:E.jsx("ul",{children:t==null?void 0:t.map(n=>E.jsx("li",{onClick:()=>e(n.value),role:"presentation",children:n.title}))})})}),_Vo=({resourceId:t})=>{const e=yga(),{resources:n,loading:r}=e,[a,o]=Y.useState([]);Y.useEffect(()=>{t&&!n[t]&&_it({resourceId:t,resourceType:gw.table})},[t]),Y.useEffect(()=>{const u=[];if(!Ft.isEmpty(n[t])){const d=n[t],h=Object.keys(d);h==null||h.forEach(f=>{u.push({userId:f,accessLevel:d[f]})})}o([...u])},[n]);const s=u=>E.jsx(Pn,{label:u.userId,children:E.jsx("span",{children:u.userId})}),l=u=>E.jsx(Ba,{value:u.accessLevel,onChange:d=>{const h=d.target.value||"";Khn({...u,resourceId:t,accessLevel:h,resourceType:gw.table})},disabled:a.length===1,children:Uan.map(d=>E.jsx(Dn,{value:d.value,children:d.title},d.value))}),c=u=>E.jsx(_n,{onClick:()=>V0a({...u,resourceId:t,resourceType:gw.table}),disabled:(u==null?void 0:u.userId)===localStorage.getItem("userId"),children:E.jsx(aoe,{})});return E.jsx(tf,{data:a,columns:Egi,loading:r,isAction:!0,actionComponent:u=>c(u),actionColumnName:"Actions",rowRender:[{dataKey:"userId",func:s},{dataKey:"accessLevel",func:l}],rowSize:55,bodyHeight:165})},TVo=()=>{const{resources:t,loading:e}=Aga(),n=N_e(),[r,a]=Y.useState([]),[o,s]=Y.useState([]),[l,c]=Y.useState(""),[u,d]=Y.useState(""),[h,f]=Y.useState(""),[p,m]=Y.useState(!0),[g,v]=Y.useState([]),[A,y]=Y.useState(!1);Y.useEffect(()=>{var P;const k=[];Ft.isEmpty(t)||(P=Object.keys(t))==null||P.forEach(N=>{var L;k.push({resourceId:N,accessLevel:t[N],disabled:((L=t[N])==null?void 0:L.toLowerCase())!=="configure"})}),v([...k])},[t]);const S=k=>{const P=Object.keys(n==null?void 0:n.list),N=[];k&&(P==null||P.forEach(L=>{var I;(I=L==null?void 0:L.toLowerCase())!=null&&I.includes(k==null?void 0:k.toLowerCase())&&N.push({title:L,value:L})})),a([...N])},x=k=>{const P=Object.keys(t),N=[];k&&(P==null||P.forEach(L=>{var I;(I=L==null?void 0:L.toLowerCase())!=null&&I.includes(k==null?void 0:k.toLowerCase())&&N.push({title:L,value:L})})),s([...N])},w=k=>{const P=k.target.value||"";c(P),S(P)},_=k=>{const P=k.target.value||"";d(P),x(P)},C=k=>{k.preventDefault(),Khn({resourceId:u,userId:l,accessLevel:h,resourceType:gw.table}),m(!0),d(""),c(""),f("")},R=k=>E.jsx(_Vo,{resourceId:k.resourceId});return E.jsxs(Fu,{children:[E.jsxs("div",{className:"cardHead",children:[A?q.PERMISSION_AND_SECURITY:q.RESOURCES,E.jsxs("div",{className:"headRight",children:[!A&&E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>m(k=>!k),disabled:!(g!=null&&g.length),children:p?"Manage resource access":"Show resources"}),E.jsx(_n,{onClick:()=>y(k=>!k),children:A?E.jsx(Wl,{}):E.jsx(cg,{})})]})]}),E.jsx(jo,{in:A,timeout:"auto",unmountOnExit:!0,children:E.jsxs("div",{className:"infoText",children:[E.jsx("div",{children:WQ.topTextPara}),E.jsxs("ul",{children:[E.jsx("li",{children:WQ.info1}),E.jsx("li",{children:WQ.info2}),E.jsx("li",{children:WQ.info3})]}),E.jsx("div",{children:WQ.bottomTextPara})]})}),E.jsx(jo,{in:!A&&p,timeout:"auto",unmountOnExit:!0,children:E.jsx(nJn,{data:g,columns:xgi,loading:e,collapsableComponent:R})}),E.jsx(jo,{in:!A&&!p,timeout:"auto",unmountOnExit:!0,children:E.jsx("form",{onSubmit:C,children:E.jsxs("div",{className:"formContent",children:[E.jsxs("div",{className:"formGroup",children:[E.jsx(gr,{onChange:w,value:l,onFocus:()=>{S(l)},onBlur:()=>{setTimeout(()=>{a([])},300)},placeholder:"Enter username",label:"Username"}),E.jsx(j9t,{handleSelect:k=>{c(k)},options:r})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx(gr,{onChange:_,value:u,onFocus:()=>{x(l)},onBlur:()=>{setTimeout(()=>{s([])},300)},placeholder:"Enter resource",label:"Resource"}),E.jsx(j9t,{handleSelect:k=>{d(k)},options:o})]}),E.jsx("div",{className:"formGroup",children:E.jsxs(Ba,{value:h||"",onChange:k=>{const P=k.target.value||"";f(P)},label:"Access level",children:[E.jsxs(Dn,{value:"",className:"selectPlaceholder",children:[q.SELECT," ",q.ACCESS_LEVEL]}),Uan.map(k=>E.jsx(Dn,{value:k.value,children:k.title},k.value))]})}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{variant:"contained",color:"primary",type:"submit",disabled:!u||!h||!l,children:q.ADD})})]})})})]})},CVo=()=>{const[t,e]=Y.useState({description:""}),[n,r]=Y.useState(!1),[a,o]=Y.useState(""),s=async()=>{r(!0);const{data:c}=await Q0a(t);setTimeout(()=>{r(!1)},1e3),c&&(o(c),e({description:""}))},l=(c,u)=>{const{value:d=""}=(c==null?void 0:c.target)||{};e(h=>({...h,[u]:d}))};return E.jsxs(E.Fragment,{children:[E.jsxs(jo,{in:!!a,timeout:"auto",unmountOnExit:!0,children:[E.jsx(fg,{message:q.API_PRIVATE_KEY}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{value:a,readOnly:!0,endAdornment:E.jsx(Kx,{position:"end",children:E.jsx(y9,{textToCopy:a||""})}),label:"API Key",className:"privateKeyInput"})}),E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",onClick:()=>o(""),children:q.ADD_NEW})]}),E.jsxs(jo,{in:!a,timeout:"auto",unmountOnExit:!0,children:[E.jsx(fg,{message:q.MAXIMUM_API_KEYS_ALLOWED}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{value:t.description,label:"Note",placeholder:"Enter note",onChange:c=>l(c,"description"),className:"descriptionText"})}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",onClick:s,disabled:n,children:n?E.jsx("img",{src:ws,alt:"loading",height:36}):q.ADD})})]})]})},kVo=({apiKeysList:t=[],loading:e})=>{const r=async s=>{await q0a(s)&&Tit()},a=s=>{const{key:l}=s;return E.jsx(cm,{icon:!0,confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.DELETE(""),title:q.DELETE(l),confirmMessage:q.DELETE_CONFIRM_MESSAGE(`${l||""}`),onConfirm:()=>{r(l)}},"expire")},o=(s=0)=>!s||s>5?300:60*s;return E.jsx(tf,{data:t,columns:_gi,isAction:!0,rowSize:60,loading:e,bodyHeight:o(e?3:t==null?void 0:t.length),actionComponent:s=>a(s)})},RVo=({loggedInUserRole:t})=>{const e=Wdn(),n=mga(),r=qdn(),a=wga(),o=_ga(),[s,l]=Y.useState((e==null?void 0:e.length)>0||n),c=fN(),{state:u="",subscription_id:d}=c,[h,f]=Y.useState(!Ft.isEmpty(a)),[p,m]=Y.useState({keySharing:r}),[g,v]=Y.useState(!1),[A,y]=Y.useState(!1),S=x=>{var _;const w=(_=x.target)==null?void 0:_.value;w&&(m(C=>({...C,keySharing:w})),B0a(r,w))};return Y.useEffect(()=>{Ft.isEmpty(a)&&f(!1)},[a]),E.jsxs(E.Fragment,{children:[E.jsxs(Fu,{className:"apiKeysBlock",children:[E.jsxs("div",{className:"cardHead",children:[h?q.API_KEYS:q.CREATE_API_KEY," (",q.ACCESS_APIS_THROUGH_GATEWAY,")",E.jsx("div",{className:"headRight",children:E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>f(!h),disabled:Ft.isEmpty(a)&&!o,children:h?q.CREATE_API_KEY:q.SHOW_API_KEYS})})]}),E.jsx(jo,{in:!h,timeout:"auto",unmountOnExit:!0,children:E.jsx(CVo,{})}),E.jsx(jo,{in:h,timeout:"auto",unmountOnExit:!0,children:E.jsx(kVo,{apiKeysList:a,loading:o})})]}),E.jsxs(Fu,{children:[E.jsxs("div",{className:"cardHead",children:[s||A?q.BISCUITS:q.SAVE_BISCUIT," ","(",q.PERMISSIONING_TABLE_ACCESS,")",E.jsxs("div",{className:"headRight",children:[!A&&E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>l(!s),disabled:!(e!=null&&e.length)&&!n,children:s?q.CREATE_BISCUIT:q.SHOW_BISCUIT}),E.jsx(_n,{onClick:()=>y(x=>!x),children:A?E.jsx(Wl,{}):E.jsx(cg,{})})]})]}),E.jsx(jo,{in:A,timeout:"auto",unmountOnExit:!0,children:E.jsx("div",{className:"infoText",children:E.jsx("div",{children:Sgi.infoText})})}),E.jsx(jo,{in:!A&&!s,timeout:"auto",unmountOnExit:!0,children:E.jsx(SVo,{})}),E.jsx(jo,{in:!A&&s,timeout:"auto",unmountOnExit:!0,children:E.jsx(EVo,{setShowBiscuit:l,loading:n,biscuitContent:e})})]}),t===np.owner&&(u===kne.active||d)&&E.jsxs(Fu,{children:[E.jsxs("div",{className:"cardHead",children:[q.SECURITY_CONFIGURATION,E.jsx(_n,{onClick:()=>v(x=>!x),children:g?E.jsx(Wl,{}):E.jsx(cg,{})})]}),E.jsx(jo,{in:!g,timeout:"auto",unmountOnExit:!0,children:E.jsx(Ba,{value:p.keySharing,onChange:S,label:`${q.SELECT} ${q.SECURITY_CONFIGURATION}`,className:"sizeLarge",children:igi.map(x=>E.jsx(oH,{value:x.value,children:x.label},x.value))})}),E.jsx(jo,{in:g,timeout:"auto",unmountOnExit:!0,children:E.jsxs("div",{className:"infoText autoHeight",children:[E.jsx("div",{children:qce.topTextPara}),E.jsxs("ul",{children:[E.jsx("li",{children:qce.info1}),E.jsx("li",{children:qce.info2}),E.jsx("li",{children:qce.info3})]})]})})]}),E.jsx(TVo,{})]})},MVo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAaCAYAAADSbo4CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIqSURBVHgB3ZfLbcJAEIbHgIAjZx6S00HSgdNBUkFCBUAFJBWgVBBSQUrAHZAOjMTzyBUQkH+sXbQYe3cMUg75JGRrd2zP/DOzuxD9J2az2etisejSDZToBtiBQqHQx62/2Wzu6K9RCkT4Hfk3n88/eXw6nQb6Pi+FPMbqQ2OowB/z9fh2u33na6lUevE875XtKCeexIhfjI/0j8djkDId1uv1x+Vy6WM+MscoB05FOA3FYnGU4QQdDocvdds3hgN+jnJgVURFOSIjDQkmiDwuUq6ZhN2aCxisSYBLkbgjsiahRlwbKvqkXa1cLotbOlORRM7TmCDiB444RY0TSpUJOchUBE58kwXMh+wEuuiJLKpVKhVRO6c6oqS+tz2oWxat3CE7gaSdL1ITRVENUYzJEiXUGDYajbYgfZpTGrMMLhSpVqsdmxNMRsva8F2Fe+aIivCN7IStVivkG9jWSAhW3A6rTRJHSBChoQZ3RBuXCcngdh5kTZ5qhKsfXls7hYwFTIPCvkfB8qInUme/3z9qRU1OisCJgeslegEzaTabPxjvkRBsF6mqx46sVitngYL1brcL0ybgzBDOfJCMIO0Q5Qn2kxjdsjYbfIDb3rr+KC72IVbEup9o9AJmA+l9JlnxXuxDHlrKFzxIkv2C4VWUjw0SW3MfEh2M8oJO6qKTnMVPxgHK6QjyPoDkkryfkXWQSqLb2ekIinkkfemVxPuQ8+8EPO7lWcqv5RcdBjKyaGr5XAAAAABJRU5ErkJggg==",NVo=[{id:"Multi-tenant Standard",title:"Multi-tenant Standard",price:"699",currencyCode:"USD",description:"Your subscription gives you access to 5TB of storage with enterprise performance. All plans include unlimited realtime blockchain data indexed and decoded from major chains, including Ethereum, Polygon, BNB Chain, Sui and Avalanche."},{id:"Multi-tenant Enterprise",title:"Multi-tenant Enterprise",price:"1999",currencyCode:"USD",description:"Your subscription gives you access to 10TB of storage with enterprise performance. All plans include unlimited realtime blockchain data indexed and decoded from major chains, including Ethereum, Polygon, BNB Chain, Sui and Avalanche."},{id:"Dedicated Single Tenant",title:"Dedicated Single Tenant",price:"8299",currencyCode:"USD",description:"Your subscription gives you unlimited access with enterprise performance. All plans include unlimited realtime blockchain data indexed and decoded from major chains, including Ethereum, Polygon, BNB Chain, Sui and Avalanche."}],IVo={MarketPlusPlan:NVo},rJn=()=>E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"paymentCardSkelton",children:[E.jsx(Ca,{variant:"rounded",width:"100%",height:145,sx:{mb:3}}),E.jsx(Ca,{variant:"rounded",width:"100%",height:16})]}),E.jsxs("div",{className:"paymentCardSkelton",children:[E.jsx(Ca,{variant:"rounded",width:"100%",height:145,sx:{mb:3}}),E.jsx(Ca,{variant:"rounded",width:"100%",height:16})]}),E.jsxs("div",{className:"paymentCardSkelton",children:[E.jsx(Ca,{variant:"rounded",width:"100%",height:145,sx:{mb:3}}),E.jsx(Ca,{variant:"rounded",width:"100%",height:16})]}),E.jsxs("div",{className:"paymentCardSkelton",children:[E.jsx(Ca,{variant:"rounded",width:"100%",height:145,sx:{mb:3}}),E.jsx(Ca,{variant:"rounded",width:"100%",height:16})]})]}),PVo=t=>{const{priceId:e}=t,n=L_e(),r=o0a(),a=async()=>{YU(!0);try{await E0a({price_id:e||""})}catch(l){console.error("Upgrade Subscription failed:",l)}finally{YU(!1)}},o=async l=>{l.stopPropagation(),await a()},s=async()=>{await S0a({price_id:e||""})};return Y.useEffect(()=>{s()},[]),E.jsx(cm,{color:"primary",disabled:n,handleClick:l=>{l.stopPropagation()},iconImage:r.includes("WARNING")?Gmn:Zfn,iconName:"APPROVE",confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.UPGRADE_SUBSCRIPTION_TOOLTIP,title:r.includes("WARNING")?E.jsxs("span",{style:{color:"#FF6347"},children:[" ",q.UPGRADE_SUBSCRIPTION_TOOLTIP]}):q.UPGRADE_SUBSCRIPTION_TOOLTIP,confirmMessage:r.includes("WARNING")?E.jsxs(E.Fragment,{children:[E.jsx("p",{children:r.split("WARNING!")[0]}),E.jsxs("p",{children:[E.jsx("b",{children:"WARNING!"}),E.jsx("br",{}),E.jsx("b",{children:r.split("WARNING!")[1]})]})]}):r,description:"",onConfirm:o,className:"subcriptionBtn",children:n?E.jsx("img",{src:ws,alt:"loading",height:50}):q.UPGRADE_TEXT},`UpgradeSubscription${e}`)},iJn=()=>{var u;const{MarketPlusPlan:t}=IVo,e=t,n=H_e(),r=fN(),a=a0a(),o=vV(),{plan:s}=r||{},l=ho(),c=d=>{l||Iy(d)};return Y.useLayoutEffect(()=>{var d;if(!l&&(n!=null&&n.length)){const h=(d=n[0])==null?void 0:d.price_id;Iy(h)}},[n]),a?E.jsx(rJn,{}):E.jsxs("div",{className:"cardListing",children:[(u=n==null?void 0:n.filter(d=>(d==null?void 0:d.plan_id)!==(s==null?void 0:s.planId)))==null?void 0:u.map(d=>{var h;return E.jsxs("div",{className:`subcriptionCard ${!l&&"clickable"}`,role:"presentation",onClick:()=>c(d==null?void 0:d.price_id),children:[E.jsxs("div",{className:`cardInfo ${o===(d==null?void 0:d.price_id)&&!l?"active":""}`,children:[o===(d==null?void 0:d.price_id)&&!l&&E.jsx("span",{className:"checkMark",children:E.jsx(ooe,{})}),E.jsx("div",{className:"plantype",children:d==null?void 0:d.name}),(d==null?void 0:d.product_type)==="Fixed Cost"?E.jsxs("div",{className:"planDetail",children:[E.jsxs("h2",{children:["$",A0a((h=d==null?void 0:d.amount)==null?void 0:h.unit_amount)]}),E.jsx("p",{children:$kt(d==null?void 0:d.description)})]}):E.jsx("div",{className:"planDetail",children:E.jsx("p",{children:$kt(d==null?void 0:d.description)})}),r!=null&&r.subscriptionId?E.jsx(PVo,{priceId:d==null?void 0:d.price_id}):[l?E.jsx(Jt,{variant:"contained",color:"primary",size:"small",className:"subcriptionBtn",onClick:()=>{qAe(!1),aw(!0),Iy(d==null?void 0:d.price_id)},children:q.PURCHASE_NOW}):""]]}),E.jsx("div",{className:"cardDetail",children:d==null?void 0:d.description})]},d==null?void 0:d.product_id)}),(n==null?void 0:n.length)>0&&l&&(e==null?void 0:e.map(d=>{var p,m,g,v;const h=(p=d==null?void 0:d.termPrices)==null?void 0:p.filter(A=>A.unit==="Year"),{billingPlan:f}=(h==null?void 0:h[0])||{};return E.jsxs("div",{className:"subcriptionCard",children:[E.jsxs("a",{href:e0a,target:"_blank",rel:"noopener noreferrer",className:r!=null&&r.subscription_id?"cardInfoAzure disabled":"cardInfoAzure",children:[E.jsxs("div",{className:"plantype",children:[E.jsx("div",{className:"text",children:q.AZURE_MARKETPLACE}),E.jsx("span",{className:"tag",children:(m=d==null?void 0:d.title)==null?void 0:m.replace("Space and Time Network -","")})]}),E.jsxs("div",{className:"planDetail",children:[E.jsxs("h2",{children:[((g=f==null?void 0:f.price)==null?void 0:g.listPrice)||(d==null?void 0:d.price)," ",((v=f==null?void 0:f.price)==null?void 0:v.currencyCode)||(d==null?void 0:d.currencyCode)," "]}),E.jsx("p",{children:`${(f==null?void 0:f.title)||q.MONTHLY}`})]}),E.jsx("div",{className:"azureIcon",children:E.jsx("img",{src:MVo,alt:"azure-icon"})})]}),E.jsx("div",{className:"cardDetail",dangerouslySetInnerHTML:{__html:d==null?void 0:d.description}})]},d==null?void 0:d.id)}))]})},OVo=t=>{const{subscriptionData:e}=t,{plan:n,lastPayment:r}=e,{planName:a}=n||{};let o=q.FIVE_TB;return Dkt()===q.SPACE_AND_TIME_MULTITENANT_ENTERPRISE?o=q.TEN_TB:Dkt()===q.SPACE_AND_TIME_SINGLE_TENANT&&(o=q.UNLIMITED),E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"blockFirstWrapper",children:[E.jsx("div",{className:"cardHead",children:q.SUBSCRIPTION_DETAILS_TEXT}),E.jsx("div",{className:"subscriptionDetailsCard",children:E.jsxs("div",{className:"subscriptionInfo",children:[E.jsx("span",{className:"subscriptionCheck",children:E.jsx(ooe,{})}),E.jsx("span",{className:"ampPlan",children:a}),E.jsxs("div",{className:"planDetail",children:[E.jsx("h2",{children:r||"N/A"}),E.jsx("p",{children:q.MONTHLY})]}),E.jsx("span",{className:"azureIcon",children:E.jsx(_mi,{})})]})})]}),(r==null?void 0:r.toLowerCase())!=="n/a"&&E.jsxs("div",{className:"blockSecondWrapper",children:[E.jsx("div",{className:"cardHead",children:q.PACKAGE_DETAILS}),E.jsx("div",{className:"packageDetailsCard",children:E.jsxs("div",{className:"duratioInfo",children:[E.jsxs("div",{className:"packageduratioInfo",children:[E.jsx("h3",{children:q.BILLING}),E.jsx("p",{children:L1a()})]}),E.jsxs("div",{className:"packageDetailCol",children:[E.jsxs("div",{className:"colItem",children:[E.jsx("h3",{children:q.BLOCKCHAIN}),E.jsx("p",{children:q.UNLIMITEDD_DATA})]}),E.jsxs("div",{className:"colItem",children:[E.jsx("h3",{children:q.STORAGE}),E.jsx("p",{children:o})]})]})]})})]}),E.jsxs("div",{className:"blockThirdWrapper",children:[E.jsx("div",{className:"cardHead",children:q.CURRENT_USAGE}),E.jsxs("ul",{children:[E.jsxs("li",{children:[q.TOTAL_STORAGE," 1.23TB"]}),E.jsxs("li",{children:[q.TOTAL_QUERIES_EXECUTED," 23551"]}),E.jsxs("li",{children:[q.TOTAL_CREDITS," 14500"]})]})]})]})},LVo=gt.div`
  border: 1px solid rgba(101, 93, 137, 0.27);
  border-radius: 9px;
  padding-top: 20px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 20px;
  margin-top: -3px;
  border-top: ${t=>t.isZkToken===!1?"none":"1px solid rgba(101, 93, 137, 0.27)"};
  border-top-left-radius: ${t=>t.isZkToken===!1?"0px":"9px"};
  border-top-right-radius: ${t=>t.isZkToken===!1?"0px":"9px"};

  .zkTokenHeader {
    font-family: Inter;
    font-size: 12px;
    font-weight: 400;
    line-height: 14.52px;
    text-align: center;
    color: rgba(255, 255, 255, 1);
    font-size: 15px;
    margin-bottom: 0px;
  }
  .dropdownWrapper {
    background-color: rgba(49, 43, 75, 1);
    border-radius: 5px;
    margin-top: 15px;
    padding-top: 10px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    &.walletWrapper {
      display: block;
      .connectedWallet {
        padding: 6px 10px 6px 10px;
        border-radius: 5px;
        background: rgba(42, 36, 70, 1);
        width: 100%;
        color: rgba(255, 255, 255, 1);
        font-family: Inter;
        font-size: 10px;
        font-weight: 400;
        line-height: 9.68px;
        text-align: left;
      }

      .emptyWallet {
        width: 100%;
        padding: 6px 10px 6px 10px;
        border-radius: 5px;
        background: rgba(42, 36, 70, 1);
        font-family: Inter;
        font-size: 11px;
        font-weight: 400;
        line-height: 9.68px;
        text-align: left;
        color: rgba(255, 255, 255, 1);
      }
    }
    .tokenDropdownWrapper {
      position: relative;
      h3 {
        font-family: Inter;
        font-weight: 400;
        line-height: 9.68px;
        text-align: left;
        color: rgba(255, 255, 255, 1);
        font-size: 10px;
        margin-bottom: 7px;
      }
      .tokenDropdownButton {
        width: 120px;
        border-radius: 4px;
        border: 0.6px solid rgba(255, 255, 255, 0.15);
        background: rgba(59, 51, 103, 1);
        color: rgba(255, 255, 255, 1);
        font-family: Inter;
        font-size: 12px;
        span {
          margin-right: 7px; 
        }
      }

      .dropdown-content {
        display: none;
        position: absolute;
        background-color: #1c1433;
        border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
        border-radius: 5px;
        z-index: 1;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
        :-webkit-scrollbar {
          width: 7px;
        }
        :-webkit-scrollbar-thumb {
          background-color: rgba(0, 0, 0, 0.4);
          border-radius: 10rem;
          border: 1px solid #fff;
        }
        :-webkit-scrollbar-track-piece:start {
          background: transparent;
        }

        :-webkit-scrollbar-track-piece:end {
          background: transparent;
        }
      }

      .showDropdown {
        display: block;
      }

      .dropdownListItem {
        color: white;
        padding-top: 5px;
        padding: 10px 10px;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: background-color 0.3s;
        img {
          margin-right: 8px;
        }
      }

      .dropdownListItem:hover {
        background: rgba(255, 255, 255, 0.03);
        cursor: pointer;
      }
    }
  }

  .zkTokenSubmitWrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
`;gt.div`
  padding-top: ${t=>t.type==="dashboardHome"?"0px":"56px"};
  .overlayLoading {
    position: fixed;
  }
  .subHeroLink {
    font-size: 16px;
    color: white;
    font-weight: 500;
    span {
      font-size: 16px;
      color: white;
      font-weight: 500;
      cursor: pointer;
      text-decoration: underline;
    }
  }
  .emptyDashboardBlock {
    padding-top: 120px;
    img {
      max-width: 75%;
      margin: 0 auto;
    }
  }
  .dashboardWrapper {
    .boxContent {
      .dashboardView {
        .chartBox {
          .chartInfo {
            padding-right: 120px;
          }
        }
      }
      .chartBox {
        border-radius: 8px;
        .downloadAsImage,
        .openInEditorButton,
        .openInVisualEditorIcon {
          opacity: 0;
        }
        &:hover {
          .downloadAsImage,
          .openInEditorButton,
          .openInVisualEditorIcon {
            opacity: 1;
          }
        }
      }
    }
  }
  .dashboardWrapperImg {
    background: #060119;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100%;
    position: relative;
    overflow: hidden;
    .dashboardImage {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: calc(100vh + 230px);
      img,
      canvas {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    &:after {
      content: '';
      position: absolute;
      top: calc(100vh + 200px);
      left: -30px;
      width: calc(100% + 60px);
      height: 60px;
      background: #060119;
      filter: blur(12px);
    }
    .MuiSkeleton-root {
      background: ${t=>{var e,n;return t.$chartBackground&&`linear-gradient(
        to right,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 35%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]}
      )`}} !important;
    }
    .mainContent {
      position: relative;
      z-index: 1;
    }
    .boxContent {
      padding: 0;
      background: transparent;
      box-shadow: unset;
      .dashboardViewPanel {
        background: ${t=>{var e;return t!=null&&t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[2]:"rgb(255 255 255 / 10%)"}};
        /* border-radius: 32px; */
        border-top-left-radius: 0;
        padding: 16px;
        backdrop-filter: blur(8px);
      }
      .dashboardInfo {
        padding: ${t=>t!=null&&t.showSearchResultpanel?"60px 0 20px":"100px 0"};
        padding-bottom: 40px;
        text-align: center;
        h2 {
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          font-size: ${t=>t.theme.custom.fontSize.font48};
          color: ${t=>t!=null&&t.$titleColor?t==null?void 0:t.$titleColor:t.theme.custom.white.A11};
          text-shadow: 0 0 15px rgb(0 0 0 / 60%);
          margin-bottom: 8px;
          word-break: break-word;
        }
        .searchBox {
          position: relative;
          .searchIcon {
            background-color: transparent;
          }
        }
      }
      #dashboard-info-mobile {
        @media (max-width: 600px) {
          padding-top: 75px;
        }
      }
    }
    .addButton {
      text-align: right;
      margin-top: -24px;
      padding: 0 24px;
      position: relative;
      button {
        border: 0;
        height: 48px;
        width: 48px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: ${t=>{var e;return(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}};
        cursor: pointer;
        &:hover {
          color: ${t=>t.theme.custom.white.A1};
        }
        &:disabled {
          pointer-events: none !important;
        }
      }
    }
  }
  .topBarAction {
    .MuiIconButton-root {
      background: ${t=>t.theme.custom.secondaryBg};
      border: 0;
      box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    }
  }
  .openInEditorButton {
    top: -30px;
    right: 60px;
    &.notChart {
      top: 23px;
      right: 80px;
    }
  }
  .downloadAsImage {
    top: -30px;
    right: 90px;
    &.notChart {
      top: 23px;
      right: 110px;
    }
  }

  .boxContent {
    min-height: ${t=>t.height-24}px;
    ${t=>t.theme.breakpoints.down("sm")} {
      min-height: ${t=>t.height}px;
    }
  }

  .topBar {
    display: flex;
    margin-bottom: 16px;
    .topBarAction {
      flex: 0 0 340px;
      max-width: 340px;
      text-align: right;
    }
    .btnRow {
      display: flex;
      width: 100%;
      justify-content: flex-end;
      margin-top: 10px;
      .likeButton {
        margin-top: 2px;
        margin-right: 8px;
      }
      .btnBack {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
        border: 0;
      }
    }
  }
  .topBar .topBarHead {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    .topBarHeadTitle {
      flex: 1;
      overflow: hidden;
    }
    .isPublicCheck {
      border: 1px solid #675b8c;
      border-radius: 8px;
      &.disabled {
        cursor: not-allowed;
      }
      button {
        border: 0;
        &.MuiButton-containedPrimary:hover {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
        }
        &.MuiButton-containedSecondary {
          background: transparent;
        }
        + button {
          margin-left: 0;
          border-left: 1px solid #675b8c;
        }
      }
    }
    .MuiInputBase-root {
      background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    }
    .topTitleInput {
      background: transparent;
      box-shadow: unset;
      border: 0.5px solid ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A11}};
    }
    .inputHelpText {
      right: 8px;
      top: 12px;
    }
  }
  .topBar .topBarHead h2 {
    margin-bottom: 0;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A3}};
    div {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  .topBar button + button {
    margin-left: 8px;
  }

  .tabButtonGroup {
    margin-bottom: 24px;
    .tabButton:not(:last-child) {
      margin-right: 24px;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .topBar.topBarResView {
      .topBarHead {
        opacity: 0;
      }
      .topBarHead h2,
      .topBarAction button:not(.backBtn) {
        display: none;
      }
    }
    .dashboardWrapper {
      .boxContent {
        .chartBox {
          .downloadAsImage,
          .openInEditorButton,
          .openInVisualEditorIcon {
            opacity: 1;
          }
        }
      }
    }
    .dashboardWrapperImg {
      .boxContent {
        .dashboardInfo {
          h2 {
            font-size: ${t=>t.theme.custom.fontSize.font30};
          }
        }
      }
      .addButton {
        display: none;
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .dashboardWrapperImg {
      .mainContent {
        padding: 12px;
      }
      .boxContent {
        .dashboardInfo {
          padding: 30px 0 20px;
          h2 {
            font-size: ${t=>t.theme.custom.fontSize.font26};
          }
        }
        .dashDescription {
          max-width: 100%;
          border-radius: 16px 16px 0 0;
          padding: 16px 16px 16px;
          &:after {
            display: none;
          }
        }
        .dashboardViewPanel {
          border-radius: 0 0 16px 16px;
          padding: 8px;
        }
      }
    }
  }
`;gt.div`
  && {
    .strippedTable,
    .tableBody,
    .markdown {
      &::-webkit-scrollbar-track {
        background: ${t=>{var e;return t!=null&&t.$useImgColors?`${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]}`:"#311E4D"}};
      }
      &::-webkit-scrollbar-thumb {
        background: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
        180deg,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
      )`:"linear-gradient(180deg, #715E94 -5.81%, #2C1B4B 111.4%), #22272F"}};
      }
    }
    .strippedTable {
      background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
        180deg,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 12.57%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 104.23%
      )`}};
      .MuiTableBody-root .MuiTableRow-root:nth-child(odd) {
        background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[0])}};
      }
    }
    .MuiSkeleton-root {
      background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
        to right,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} 35%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]}
      ) !important`}};
    }
    .counterWidget {
      .counterCard:before {
        opacity: ${t=>(t==null?void 0:t.$useImgColors)&&0};
      }
      .titleRow {
        .counterType {
          color: ${t=>(t==null?void 0:t.$useImgColors)&&t.theme.custom.white.A1};
          background: ${t=>(t==null?void 0:t.$useImgColors)&&"transparent"};
          border: ${t=>(t==null?void 0:t.$useImgColors)&&`1px solid ${t.theme.custom.white.A1}`};
        }
      }
    }
    .dashboardPreviewTag {
      .chartTag.timeTag {
        background: ${t=>{var e;return t.$useImgColors&&((e=t==null?void 0:t.$chartBackground)==null?void 0:e[2])}};
      }
    }
  }
  display: flex;
  position: relative;
  .panelLeft {
    flex: 1 1 0%;
    .dashboardChartInfo {
      font-family: Inter, sans-serif;
      background: transparent;
      padding: 0px 45px 0px 0px;
      width: 100%;
      resize: none;
      border: none;
      overflow: hidden auto;
      color: #e6e6e6;
      margin-left: 10px;
    }
  }

  .react-draggable-dragging {
    .react-resizable-handle {
      display: none;
    }
  }
  .react-grid-placeholder {
    left: 0px;
    min-width: ${t=>t.chartType==="table"?"50%":Gjn(t.itemType)};
    min-height: ${t=>t.itemType===sp.visual?"230px":zjn(t.itemType)};
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed #8178a9;
    margin-left: -10px;
    margin-right: 0px;
    .react-resizable-handle {
      display: none;
    }
  }
  &.createEditDashboard {
    .chartBox {
      .alertMessageBlock {
        .alertError {
          .emptyDataMsg {
            display: none;
          }
        }
      }
    }
  }
  .panelLeft {
    position: relative;
    .dashboardTitle {
      position: relative;
      padding: 60px 16px;
      .imgTitleInput {
        background: transparent;
        box-shadow: unset;
        .MuiOutlinedInput-input {
          padding: 0 50px 0 0;
          text-align: center;
          font-size: ${t=>t.theme.custom.fontSize.font48};
        }
      }
      .inputHelpText {
        right: 10px;
        top: 20px;
        color: ${t=>(t==null?void 0:t.$useImgColors)&&t.theme.custom.white.A1};
      }
      h2 {
        font-size: ${t=>t.theme.custom.fontSize.font48};
        font-weight: ${t=>t.theme.custom.fontWeight.rg};
        color: ${t=>t==null?void 0:t.$titleColor};
        text-shadow: 0 0 15px rgb(0 0 0 / 60%);
        margin: 0;
        word-break: break-word;
        text-align: center;
      }
    }
    .imgBlockLoading {
      position: absolute;
      top: 0;
      width: 100%;
      height: 100%;
      z-index: 99;
    }
  }
  .panelLeft .gridLayout {
    background: ${t=>t.theme.custom.editorBg};
    border-radius: 4px;
    position: relative;
    min-height: ${t=>t.height-85}px;
    height: 100%;
    display: flex;
    flex-direction: column;
    .imgBlock {
      position: absolute;
      width: 100%;
      height: ${t=>t.height-85}px;
      overflow: hidden;
      // canvas {
      //   height: 0 !important;
      //   width: 0 !important;
      //   visibility: hidden;
      // }
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }
    .imgBlockLoading {
      height: ${t=>t.imgUrl?t.height-320:150}px;
    }
  }
  .panelLeft .gridLayout.dashboardViewSection {
    min-height: 60vh;
  }
  .panelLeft .gridLayout.dashboardViewSection,
  .panelLeft .gridLayout.dashboardViewSection .gridContainer {
    background: transparent;
    backdrop-filter: inherit;
  }

  .panelLeft .gridLayout.dashboardViewSection .gridContainer .chartBox:hover {
    background: ${t=>t.theme.custom.boxBg3};
  }

  .panelLeft .gridLayout .dragContainer {
    min-height: 100%;
  }

  .panelLeft .gridLayout .dragContainer .react-resizable-handle:after {
    border-right: 2px solid ${t=>t.theme.custom.white.A1};
    border-bottom: 2px solid ${t=>t.theme.custom.white.A1};
    width: 8px;
    height: 8px;
  }
  .panelLeft .chartBox {
    background: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
      180deg,
      ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%,
      ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100%
    ) !important`:t.theme.custom.boxBg3}};
    backdrop-filter: blur(100px);
    box-shadow: 4px 4px 32px
      ${t=>{var e;return t.$useImgColors?(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]:"unset"}};
    border: 0;
  }
  .panelLeft .chartBox:hover {
    box-shadow: unset;
  }
  .panelLeft .chartBox {
    cursor: ${t=>(t.infoView,"move !important")};
  }

  .panelLeft .chartBox .chartImg .chart canvas {
    pointer-events: unset;
  }
  .panelRight {
    flex: 0 0 340px;
    max-width: 340px;
    padding: 0 8px 0 24px;
    align-self: flex-start;
    position: sticky;
    top: 0;
  }
  .panelRight .droppable-element .MuiTableBody-root > div {
    position: static !important;
  }
  .panelRight .chartBox {
    background: ${t=>{var e,n;return t.$useImgColors?`linear-gradient(
      180deg,
      ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%,
      ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100%
    ) !important`:t.theme.custom.thumbnailBg}};
    box-shadow: 0px 6px 30px rgb(0 0 0 / 30%);
  }
  .panelRight .chartBox .chartImg {
    background: ${t=>{var e,n;return t.$useImgColors&&`linear-gradient(
        180deg,
        ${(e=t==null?void 0:t.$chartBackground)==null?void 0:e[0]} -40%,
        ${(n=t==null?void 0:t.$chartBackground)==null?void 0:n[1]} 100%
      ) !important`}};
    overflow: hidden;
  }
  .panelRight .chartBox:hover,
  .panelRight .chartBox.active {
    transform: translateY(0);
  }
  .panelRight .chartList {
    margin-top: 10px;
    max-height: ${t=>t.infoView?600:t.height-195}px;
    overflow: auto;
  }

  .droppable-element .chartBox {
    cursor: move !important;
  }
  .droppable-element .chartImg {
    pointer-events: none;
  }
  .dashboardViewSection {
    .alertMessageBlock {
      cursor: pointer;
      img {
        pointer-events: none;
      }
    }

    .chartBox {
      cursor: default !important;
      .openInVisualEditorIcon {
        top: 23px;
        right: 50px;
      }
      .exploreIcon {
        top: 23px;
        right: 20px;
        svg {
          max-width: 15px;
        }
      }
    }
    .component:hover {
      border: none;
    }
    .react-resizable-handle {
      display: none;
    }
    .component div {
      cursor: pointer !important;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .panelRight {
      display: none;
    }
  }
`;gt.div`
  @media (max-width: 1000px) {
    flex-direction: column;
  }
`;gt.div`
  flex: 25;
  .dashDescription {
    padding-bottom: 5px;
  }

  .zkETHArchitecture {
    background: rgba(110, 68, 157, 0.6);
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .zkEthInfoBox {
    background-color: #2c214a;
    margin: 0 auto;
    padding: 25px;
    border-radius: 11px;
    h2 {
      color: white;
      font-size: 17px;
      font-family: ${t=>t.theme.typography.fontFamily};
      padding-bottom: 15px;
      border-bottom: 1px solid rgb(247 247 249 / 5%);
    }
    p {
      margin-top: 20px;
    }
  }

  .pushedZKPayBox {
    margin-top: 25px;
  }
`;gt.div`
  margin-bottom: 20px;
  .zkETHLoggedInContainer {
    background-color: rgba(27, 21, 49, 0.8);
    border-radius: 32px;
    width: 100%;
    padding-left: 25px;
    padding-right: 25px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 32px;
    .firstRow,
    .secondRow,
    .thirdRow {
      width: 100%;
      display: flex;
      flex-direction: row;
      gap: 25px;
      flex-grow: 1;
    }
    .firstRow {
      padding-top: 30px;
      justify-content: space-between;
      align-items: center;
      box-sizing: border-box;
      @media (max-width: 780px) {
        flex-direction: column;
      }
      .walletBox {
        flex: 1;
        min-width: 0;
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 8px;
        .connectWalletWrapper {
          display: flex;
          flex-direction: row;
          justify-content: center;
        }

        .walletSelect {
          display: flex;
          flex-direction: row;
          .networkDropdownWrapper,
          .walletDropdownWrapper {
            display: flex;
            flex-direction: row;
            align-items: center;
          }

          .networkDropdownWrapper {
            margin-right: 10px;
          }
          .walletLabel {
            font-family: ${t=>t.theme.typography.fontFamily};
            font-weight: 400;
            font-size: 13px;
            line-height: 21px;
            color: rgba(255, 255, 255, 0.73);
            text-align: center;
            margin-bottom: 0px;
            width: 85px;
            margin-right: 10px;
          }
          .walletDropdownLabel {
            margin-right: 0px;
          }
          select {
            padding: 8px 16px 7px 16px;
            border-radius: 7px;
            border: 0.55px solid rgba(255, 255, 255, 0.18);
            background-color: rgba(48, 38, 77, 0.75);
            font-family: ${t=>t.theme.typography.fontFamily};
            font-size: 11px;
            font-weight: 400;
            line-height: 21px;
            text-align: left;
            color: rgba(255, 255, 255, 1);
            margin: 0 auto;
            position: relative;
            display: inline-block;
            width: 90%;
            text-align: center;
          }
        }
        .singleWalletData {
          display: flex;
          flex-direction: row;
          justify-content: center;
          position: relative;
          top: 10px;
        }
        .dualWalletData {
          display: flex;
          flex-direction: row;
          justify-content: space-around;
          position: relative;
          top: 10px;
        }
        .walletValue {
          font-family: ${t=>t.theme.typography.fontFamily};
          font-size: 20px;
          font-weight: 600;
          line-height: 21px;
          text-align: center;
          color: rgba(255, 255, 255, 0.73);
        }
      }
    }

    .secondRowContainer {
      /* Inherit width from parent */
      height: 100%;
      width: 100%;
    }

    .secondRow,
    .thirdRow {
      margin-top: 10px;
    }

    .thirdRow {
      gap: 10px;
      width: 100%;
      @media (max-width: 1084px) {
        flex-direction: column;
      }
    }
  }

  .walletBoxMetricsLoader {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
  }

  .descriptionLoggedOut {
    padding: 13px 21px 13px 21px;
    gap: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0px;
    background: rgba(76, 51, 121, 0.13);
    height: 80px;
    font-family: ${t=>t.theme.typography.fontFamily};
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
  }

  .dataBox {
    background: linear-gradient(
      180deg,
      rgba(110, 68, 157, 0.45) 0%,
      rgba(0, 0, 0, 0.45) 100%
    );
    border-radius: 8px;
    padding: 22px;
  }

  .totalDataBox {
    height: 310px;
    width: 50%;
    @media (max-width: 1084px) {
      display: block;
      width: 100%;
    }
    h2 {
      font-family: ${t=>t.theme.typography.fontFamily};
      font-size: 16px;
      font-weight: 600;
      line-height: 24px;
      text-align: left;
      color: rgba(230, 230, 230, 1);
    }

    .withPagination {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      .headerWrapperWithLoader {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        div {
          margin-left: 10px;
        }
      }
      div {
        margin-top: 0px;
        position: relative;
        top: -5px;
      }
    }
    .strippedTable {
      border-top-right-radius: unset;
      max-width: 100%;
    }
  }

  .descriptionWrapper {
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    @media (max-width: 1084px) {
      flex-direction: column;
    }

    .chartBox {
      box-sizing: border-box;
      height: 310px;
      width: 50%;
      display: inline-block;
      vertical-align: top;
      @media (max-width: 1084px) {
        display: block;
        width: 100%;
      }

      .totalPointsHeader {
        margin-right: 50px;
      }
      h2 {
        font-family: ${t=>t.theme.typography.fontFamily};
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        text-align: left;
        color: rgba(230, 230, 230, 1);
        display: inline-block;
        .headerWrapperValue {
          font-size: 18px;
          margin-left: 10px;
        }
      }
      .chartWrapper {
        height: 100%;
        width: 100%;

        .chartWrapperContent {
          position: relative;
          height: 100%;
          width: 100%;
          .loaderLocator {
            position: absolute;
            top: 37%;
            left: 46.5%;
            z-index: 1000;
          }
        }
        .noDataGraphs {
          margin-top: 25px;
          text-align: center;
          color: white;
          font-size: 12px;
          border: 0.6px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
          padding: 14px;
          border-radius: 10px;
        }
      }
    }
  }

  .chartBoxLoaderWrapper {
    margin-top: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    p {
      margin-top: 15px;
    }
  }
`;gt.div`
  flex: 1;
  .depositWrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    @media (max-width: 780px) {
      margin-bottom: 20px;
    }
    .tokenSelectionOverlay {
      height: 100vh;
      width: 100vw;
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      z-index: 1000000;
      background: rgba(0, 0, 0, 0.7);
    }

    .tokenDepositPositionOverlay {
      width: 490px;
      border-radius: 8px;
      z-index: 1000000;
      position: absolute;
      top: 35px;
      right: 0px;
      background: linear-gradient(
        rgb(62, 42, 98) 0%,
        rgba(79, 46, 114, 0.7) 100%
      );
    }
  }

  .depositTooltip {
    font-weight: 400;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    font-family: ${t=>t.theme.typography.fontFamily};
    margin: 0 auto;
    margin-top: 32px;
  }

  .infoBox {
    background-color: rgba(54, 29, 80, 0.44);
    width: 100%;
    border-radius: 19px;
    padding: 20px;
    margin-top: 45px;
    .zkEthInfoBox {
      background-color: #2c214a;
      margin: 0 auto;
      padding: 25px;
      border-radius: 11px;
      h2 {
        color: white;
        font-size: 17px;
        font-family: ${t=>t.theme.typography.fontFamily};
        padding-bottom: 15px;
        border-bottom: 1px solid rgb(247 247 249 / 5%);
      }
      p {
        margin-top: 20px;
      }
    }
  }
`;gt.div`
  background: rgba(67, 52, 115, 0.55);
  border-radius: 8px;
  button {
    justify-content: flex-start;
    position: relative;
    .arrowIcon {
      margin-left: auto;
    }
    &.open {
      .arrowIcon {
        transform: rotate(180deg);
      }
    }
  }

  .walletList {
    margin: 0;
    padding: 8px;
    list-style: none;
    max-height: 160px;
    overflow: auto;
  }
`;gt.li`
  && {
    color: ${t=>t.theme.custom.white.A11};
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    &.disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    &:hover {
      background: ${t=>t.theme.custom.white.A4};
    }
    img {
      max-width: 20px;
      margin-right: 15px;
    }
  }
`;gt.div`
  width: 100%;
  padding: 30px;
  .dropdown {
    position: relative;
    display: inline-block;
    width: 170px;
    .dropdown-label {
      font-family: ${t=>t.theme.typography.fontFamily};
      font-size: 13px;
      font-weight: 500;
      line-height: 15.73px;
      text-align: left;
      color: white;
      text-align: center;
    }

    .dropdown-button {
      width: 100%;
      margin: 0 auto;
      :hover {
        background-color: #5000bf !important;
        border-color: unset !important;
      }
      .arrowIcon {
        position: relative;
        left: 8px;
        svg {
          height: 7px;
        }
      }
    }
  }
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #1c1433;
    border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
    border-radius: 5px;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    :-webkit-scrollbar {
      width: 7px;
    }
    :-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.4);
      border-radius: 10rem; 
      border: 1px solid #fff;
    }
    :-webkit-scrollbar-track-piece:start {
      background: transparent;
    }

    :-webkit-scrollbar-track-piece:end {
      background: transparent;
    }
  }
  .dropdown-content span {
    font-size: 12px;
    display: flex;
    flex-direction: row;
    color: white;
    text-decoration: none;
    padding-left: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 5px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
  }

  .dropdown-content div {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center;
    :hover {
      background: rgba(255, 255, 255, 0.03);
      cursor: pointer;
    }
  }
  .dropdown-content span:hover {
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
  }

  .icon {
    margin-right: 10px;
  }
  .formLabel {
    font-family: ${t=>t.theme.typography.fontFamily};
    font-size: 13px;
    font-weight: 500;
    line-height: 15.73px;
    text-align: left;
    color: white;
    text-align: center;
  }
  .amount-input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
    display: flex;
    overflow: unset;
    input {
      font-size: 18px;
      text-align: right;

      ::placeholder {
        text-align: center;
      }

      /* or, for legacy browsers */
      ::-webkit-input-placeholder {
        text-align: center;
      }

      :-moz-placeholder {
        /* Firefox 18- */
        text-align: center;
      }

      ::-moz-placeholder {
        /* Firefox 19+ */
        text-align: center;
      }

      :-ms-input-placeholder {
        text-align: center;
      }
    }
  }

  .depositButton {
    width: 90%;
    display: block;
    margin: 0 auto;
  }

  .savePaymentButton {
    margin-bottom: 10px;
  }

  .payNowButton,
  .savePaymentButton {
    width: 250px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .showDropdown {
    display: block;
  }
`;gt.div`
  width: 100%;
  position: relative;
  .transparentOverlayForWalletSelect {
    background: rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000000;
  }

  #walletModalPosition {
    position: absolute;
    top: 0px;
    left: -166px;
    width: 166px;
    z-index: 2000000;
  }

  .connectedWalletButton {
    .connectedWalletSubIcon {
      display: inline-block;
    }

    .checkMarkIcon {
      position: relative;
      left: 16px;
      bottom: 3px;
    }
    .walletIcon {
      margin-right: 10px;
    }
  }
  .dropdown {
    position: relative;
    display: inline-block;
    width: 250px;
    .dropdown-label {
      font-family: ${t=>t.theme.typography.fontFamily};
      font-size: 13px;
      font-weight: 500;
      line-height: 15.73px;
      text-align: left;
      color: white;
      text-align: center;
    }

    .dropdown-button {
      width: 100%;
      margin: 0 auto;
      :hover {
        background-color: #5000bf !important;
        border-color: unset !important;
      }
    }
  }
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #1c1433;
    border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    :-webkit-scrollbar {
      width: 7px;
    }
    :-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.4);
      border-radius: 10rem;
      border: 1px solid #fff;
    }
    :-webkit-scrollbar-track-piece:start {
      background: transparent;
    }

    :-webkit-scrollbar-track-piece:end {
      background: transparent;
    }
  }
  .dropdown-content span {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
  }

  .dropdown-content span:hover {
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
  }

  .icon {
    margin-right: 10px;
  }

  .walletLogin {
    border-radius: 8px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;

    .connectedWalletWrapper {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 188px !important;
      height: 36px;
      background: #5000bf;
      font-size: 14px;
      box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
      border-radius: 8px;
      border: 1px solid transparent;
      span {
        margin-top: 3px;
        margin-right: 10px;
        color: white;
      }
      p {
        font-family: ${t=>t.theme.typography.fontFamily};
        font-weight: 400;
        font-size: 13px;
        line-height: 21px;
        /* color: rgba(255, 255, 255, 0.73); */
        color: white;
        text-align: center;
        margin-bottom: 0px;
      }
    }

    button {
      width: 160px !important;
      .arrowIcon {
        margin-left: 15px;
      }
      &.open {
        .arrowIcon {
          transform: rotate(180deg);
        }
      }
    }
    .walletList {
      margin: 0;
      padding: 8px;
      list-style: none;
      max-height: 160px;
      overflow: auto;
    }
  }
  .showDropdown {
    display: block;
  }
`;var BVo={},kut={},Rut={},cqe=function(t,e){return cqe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},cqe(t,e)};function DVo(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");cqe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var uqe=function(){return uqe=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},uqe.apply(this,arguments)};function $Vo(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function FVo(t,e,n,r){var a=arguments.length,o=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(a<3?s(o):a>3?s(e,n,o):s(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function jVo(t,e){return function(n,r){e(n,r,t)}}function HVo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function UVo(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function zVo(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Mut=Object.create?function(t,e,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function GVo(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mut(e,t,n)}function dqe(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function aJn(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){s={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function VVo(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(aJn(arguments[e]));return t}function KVo(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,a++)r[a]=o[s];return r}function WVo(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,o;r<a;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function Yre(t){return this instanceof Yre?(this.v=t,this):new Yre(t)}function QVo(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,o=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(f){r[f]&&(a[f]=function(p){return new Promise(function(m,g){o.push([f,p,m,g])>1||l(f,p)})})}function l(f,p){try{c(r[f](p))}catch(m){h(o[0][3],m)}}function c(f){f.value instanceof Yre?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function qVo(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,o){e[a]=t[a]?function(s){return(n=!n)?{value:Yre(t[a](s)),done:a==="return"}:o?o(s):s}:o}}function YVo(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof dqe=="function"?dqe(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(l,c){s=t[o](s),a(l,c,s.done,s.value)})}}function a(o,s,l,c){Promise.resolve(c).then(function(u){o({value:u,done:l})},s)}}function JVo(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var ZVo=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function XVo(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Mut(e,t,n);return ZVo(e,t),e}function eKo(t){return t&&t.__esModule?t:{default:t}}function tKo(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function nKo(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}function rKo(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}const iKo=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return uqe},__asyncDelegator:qVo,__asyncGenerator:QVo,__asyncValues:YVo,__await:Yre,__awaiter:UVo,__classPrivateFieldGet:tKo,__classPrivateFieldIn:rKo,__classPrivateFieldSet:nKo,__createBinding:Mut,__decorate:FVo,__exportStar:GVo,__extends:DVo,__generator:zVo,__importDefault:eKo,__importStar:XVo,__makeTemplateObject:JVo,__metadata:HVo,__param:jVo,__read:aJn,__rest:$Vo,__spread:VVo,__spreadArray:WVo,__spreadArrays:KVo,__values:dqe},Symbol.toStringTag,{value:"Module"})),aKo=Uu(iKo);var R$e={},SY={},H9t;function Nut(){return H9t||(H9t=1,Object.defineProperty(SY,"__esModule",{value:!0}),SY.version=void 0,SY.version="6.13.1"),SY}var M$e={},wY={},N$e={},aL={},Qu={},Jf={},oL={},U9t;function G9(){if(U9t)return oL;U9t=1,Object.defineProperty(oL,"__esModule",{value:!0}),oL.defineProperties=oL.resolveProperties=void 0;function t(r,a,o){const s=a.split("|").map(c=>c.trim());for(let c=0;c<s.length;c++)switch(a){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof r===a)return}const l=new Error(`invalid value for type ${a}`);throw l.code="INVALID_ARGUMENT",l.argument=`value.${o}`,l.value=r,l}async function e(r){const a=Object.keys(r);return(await Promise.all(a.map(s=>Promise.resolve(r[s])))).reduce((s,l,c)=>(s[a[c]]=l,s),{})}oL.resolveProperties=e;function n(r,a,o){for(let s in a){let l=a[s];const c=o?o[s]:null;c&&t(l,c,s),Object.defineProperty(r,s,{enumerable:!0,value:l,writable:!1})}}return oL.defineProperties=n,oL}var z9t;function IC(){if(z9t)return Jf;z9t=1,Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.assertPrivate=Jf.assertNormalize=Jf.assertArgumentCount=Jf.assertArgument=Jf.assert=Jf.makeError=Jf.isCallException=Jf.isError=void 0;const t=Nut(),e=G9();function n(f){if(f==null)return"null";if(Array.isArray(f))return"[ "+f.map(n).join(", ")+" ]";if(f instanceof Uint8Array){const p="0123456789abcdef";let m="0x";for(let g=0;g<f.length;g++)m+=p[f[g]>>4],m+=p[f[g]&15];return m}if(typeof f=="object"&&typeof f.toJSON=="function")return n(f.toJSON());switch(typeof f){case"boolean":case"symbol":return f.toString();case"bigint":return BigInt(f).toString();case"number":return f.toString();case"string":return JSON.stringify(f);case"object":{const p=Object.keys(f);return p.sort(),"{ "+p.map(m=>`${n(m)}: ${n(f[m])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function r(f,p){return f&&f.code===p}Jf.isError=r;function a(f){return r(f,"CALL_EXCEPTION")}Jf.isCallException=a;function o(f,p,m){let g=f;{const A=[];if(m){if("message"in m||"code"in m||"name"in m)throw new Error(`value will overwrite populated values: ${n(m)}`);for(const y in m){if(y==="shortMessage")continue;const S=m[y];A.push(y+"="+n(S))}}A.push(`code=${p}`),A.push(`version=${t.version}`),A.length&&(f+=" ("+A.join(", ")+")")}let v;switch(p){case"INVALID_ARGUMENT":v=new TypeError(f);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":v=new RangeError(f);break;default:v=new Error(f)}return(0,e.defineProperties)(v,{code:p}),m&&Object.assign(v,m),v.shortMessage==null&&(0,e.defineProperties)(v,{shortMessage:g}),v}Jf.makeError=o;function s(f,p,m,g){if(!f)throw o(p,m,g)}Jf.assert=s;function l(f,p,m,g){s(f,p,"INVALID_ARGUMENT",{argument:m,value:g})}Jf.assertArgument=l;function c(f,p,m){m==null&&(m=""),m&&(m=": "+m),s(f>=p,"missing arguemnt"+m,"MISSING_ARGUMENT",{count:f,expectedCount:p}),s(f<=p,"too many arguments"+m,"UNEXPECTED_ARGUMENT",{count:f,expectedCount:p})}Jf.assertArgumentCount=c;const u=["NFD","NFC","NFKD","NFKC"].reduce((f,p)=>{try{if("test".normalize(p)!=="test")throw new Error("bad");if(p==="NFD"){const m=String.fromCharCode(233).normalize("NFD"),g=String.fromCharCode(101,769);if(m!==g)throw new Error("broken")}f.push(p)}catch{}return f},[]);function d(f){s(u.indexOf(f)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:f}})}Jf.assertNormalize=d;function h(f,p,m){if(m==null&&(m=""),f!==p){let g=m,v="new";m&&(g+=".",v+=" "+m),s(!1,`private constructor; use ${g}from* methods`,"UNSUPPORTED_OPERATION",{operation:v})}}return Jf.assertPrivate=h,Jf}var G9t;function jw(){if(G9t)return Qu;G9t=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.zeroPadBytes=Qu.zeroPadValue=Qu.stripZerosLeft=Qu.dataSlice=Qu.dataLength=Qu.concat=Qu.hexlify=Qu.isBytesLike=Qu.isHexString=Qu.getBytesCopy=Qu.getBytes=void 0;const t=IC();function e(g,v,A){if(g instanceof Uint8Array)return A?new Uint8Array(g):g;if(typeof g=="string"&&g.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const y=new Uint8Array((g.length-2)/2);let S=2;for(let x=0;x<y.length;x++)y[x]=parseInt(g.substring(S,S+2),16),S+=2;return y}(0,t.assertArgument)(!1,"invalid BytesLike value",v||"value",g)}function n(g,v){return e(g,v,!1)}Qu.getBytes=n;function r(g,v){return e(g,v,!0)}Qu.getBytesCopy=r;function a(g,v){return!(typeof g!="string"||!g.match(/^0x[0-9A-Fa-f]*$/)||typeof v=="number"&&g.length!==2+2*v||v===!0&&g.length%2!==0)}Qu.isHexString=a;function o(g){return a(g,!0)||g instanceof Uint8Array}Qu.isBytesLike=o;const s="0123456789abcdef";function l(g){const v=n(g);let A="0x";for(let y=0;y<v.length;y++){const S=v[y];A+=s[(S&240)>>4]+s[S&15]}return A}Qu.hexlify=l;function c(g){return"0x"+g.map(v=>l(v).substring(2)).join("")}Qu.concat=c;function u(g){return a(g,!0)?(g.length-2)/2:n(g).length}Qu.dataLength=u;function d(g,v,A){const y=n(g);return A!=null&&A>y.length&&(0,t.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:y,length:y.length,offset:A}),l(y.slice(v??0,A??y.length))}Qu.dataSlice=d;function h(g){let v=l(g).substring(2);for(;v.startsWith("00");)v=v.substring(2);return"0x"+v}Qu.stripZerosLeft=h;function f(g,v,A){const y=n(g);(0,t.assert)(v>=y.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(y),length:v,offset:v+1});const S=new Uint8Array(v);return S.fill(0),A?S.set(y,v-y.length):S.set(y,0),l(S)}function p(g,v){return f(g,v,!0)}Qu.zeroPadValue=p;function m(g,v){return f(g,v,!1)}return Qu.zeroPadBytes=m,Qu}var qu={},V9t;function Jse(){if(V9t)return qu;V9t=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.toQuantity=qu.toBeArray=qu.toBeHex=qu.toNumber=qu.getNumber=qu.toBigInt=qu.getUint=qu.getBigInt=qu.mask=qu.toTwos=qu.fromTwos=void 0;const t=jw(),e=IC(),n=BigInt(0),r=BigInt(1),a=9007199254740991;function o(A,y){const S=u(A,"value"),x=BigInt(f(y,"width"));if((0,e.assert)(S>>x===n,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:A}),S>>x-r){const w=(r<<x)-r;return-((~S&w)+r)}return S}qu.fromTwos=o;function s(A,y){let S=c(A,"value");const x=BigInt(f(y,"width")),w=r<<x-r;if(S<n){S=-S,(0,e.assert)(S<=w,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:A});const _=(r<<x)-r;return(~S&_)+r}else(0,e.assert)(S<w,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:A});return S}qu.toTwos=s;function l(A,y){const S=u(A,"value"),x=BigInt(f(y,"bits"));return S&(r<<x)-r}qu.mask=l;function c(A,y){switch(typeof A){case"bigint":return A;case"number":return(0,e.assertArgument)(Number.isInteger(A),"underflow",y||"value",A),(0,e.assertArgument)(A>=-a&&A<=a,"overflow",y||"value",A),BigInt(A);case"string":try{if(A==="")throw new Error("empty string");return A[0]==="-"&&A[1]!=="-"?-BigInt(A.substring(1)):BigInt(A)}catch(S){(0,e.assertArgument)(!1,`invalid BigNumberish string: ${S.message}`,y||"value",A)}}(0,e.assertArgument)(!1,"invalid BigNumberish value",y||"value",A)}qu.getBigInt=c;function u(A,y){const S=c(A,y);return(0,e.assert)(S>=n,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:A}),S}qu.getUint=u;const d="0123456789abcdef";function h(A){if(A instanceof Uint8Array){let y="0x0";for(const S of A)y+=d[S>>4],y+=d[S&15];return BigInt(y)}return c(A)}qu.toBigInt=h;function f(A,y){switch(typeof A){case"bigint":return(0,e.assertArgument)(A>=-a&&A<=a,"overflow",y||"value",A),Number(A);case"number":return(0,e.assertArgument)(Number.isInteger(A),"underflow",y||"value",A),(0,e.assertArgument)(A>=-a&&A<=a,"overflow",y||"value",A),A;case"string":try{if(A==="")throw new Error("empty string");return f(BigInt(A),y)}catch(S){(0,e.assertArgument)(!1,`invalid numeric string: ${S.message}`,y||"value",A)}}(0,e.assertArgument)(!1,"invalid numeric value",y||"value",A)}qu.getNumber=f;function p(A){return f(h(A))}qu.toNumber=p;function m(A,y){let x=u(A,"value").toString(16);if(y==null)x.length%2&&(x="0"+x);else{const w=f(y,"width");for((0,e.assert)(w*2>=x.length,`value exceeds width (${w} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:A});x.length<w*2;)x="0"+x}return"0x"+x}qu.toBeHex=m;function g(A){const y=u(A,"value");if(y===n)return new Uint8Array([]);let S=y.toString(16);S.length%2&&(S="0"+S);const x=new Uint8Array(S.length/2);for(let w=0;w<x.length;w++){const _=w*2;x[w]=parseInt(S.substring(_,_+2),16)}return x}qu.toBeArray=g;function v(A){let y=(0,t.hexlify)((0,t.isBytesLike)(A)?A:g(A)).substring(2);for(;y.startsWith("0");)y=y.substring(1);return y===""&&(y="0"),"0x"+y}return qu.toQuantity=v,qu}var K9t;function oKo(){if(K9t)return aL;K9t=1,Object.defineProperty(aL,"__esModule",{value:!0}),aL.decodeBase58=aL.encodeBase58=void 0;const t=jw(),e=IC(),n=Jse(),r="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let a=null;function o(d){if(a==null){a={};for(let f=0;f<r.length;f++)a[r[f]]=BigInt(f)}const h=a[d];return(0,e.assertArgument)(h!=null,"invalid base58 value","letter",d),h}const s=BigInt(0),l=BigInt(58);function c(d){const h=(0,t.getBytes)(d);let f=(0,n.toBigInt)(h),p="";for(;f;)p=r[Number(f%l)]+p,f/=l;for(let m=0;m<h.length&&!h[m];m++)p=r[0]+p;return p}aL.encodeBase58=c;function u(d){let h=s;for(let f=0;f<d.length;f++)h*=l,h+=o(d[f]);return h}return aL.decodeBase58=u,aL}var sL={},W9t;function oJn(){if(W9t)return sL;W9t=1,Object.defineProperty(sL,"__esModule",{value:!0}),sL.encodeBase64=sL.decodeBase64=void 0;const t=jw();function e(r){r=atob(r);const a=new Uint8Array(r.length);for(let o=0;o<r.length;o++)a[o]=r.charCodeAt(o);return(0,t.getBytes)(a)}sL.decodeBase64=e;function n(r){const a=(0,t.getBytes)(r);let o="";for(let s=0;s<a.length;s++)o+=String.fromCharCode(a[s]);return btoa(o)}return sL.encodeBase64=n,sL}var _Y={},Q9t;function sKo(){var n;if(Q9t)return _Y;Q9t=1,Object.defineProperty(_Y,"__esModule",{value:!0}),_Y.EventPayload=void 0;const t=G9();class e{constructor(a,o,s){Ut(this,"filter");Ut(this,"emitter");Wt(this,n,void 0);tt(this,n,o),(0,t.defineProperties)(this,{emitter:a,filter:s})}async removeListener(){Le(this,n)!=null&&await this.emitter.off(this.filter,Le(this,n))}}return n=new WeakMap,_Y.EventPayload=e,_Y}var zk={},I$e={},q9t;function Iut(){return q9t||(q9t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const e=jw(),n=IC();function r(h,f,p,m,g){(0,n.assertArgument)(!1,`invalid codepoint at offset ${f}; ${h}`,"bytes",p)}function a(h,f,p,m,g){if(h==="BAD_PREFIX"||h==="UNEXPECTED_CONTINUE"){let v=0;for(let A=f+1;A<p.length&&p[A]>>6===2;A++)v++;return v}return h==="OVERRUN"?p.length-f-1:0}function o(h,f,p,m,g){return h==="OVERLONG"?((0,n.assertArgument)(typeof g=="number","invalid bad code point for replacement","badCodepoint",g),m.push(g),0):(m.push(65533),a(h,f,p))}t.Utf8ErrorFuncs=Object.freeze({error:r,ignore:a,replace:o});function s(h,f){f==null&&(f=t.Utf8ErrorFuncs.error);const p=(0,e.getBytes)(h,"bytes"),m=[];let g=0;for(;g<p.length;){const v=p[g++];if(!(v>>7)){m.push(v);continue}let A=null,y=null;if((v&224)===192)A=1,y=127;else if((v&240)===224)A=2,y=2047;else if((v&248)===240)A=3,y=65535;else{(v&192)===128?g+=f("UNEXPECTED_CONTINUE",g-1,p,m):g+=f("BAD_PREFIX",g-1,p,m);continue}if(g-1+A>=p.length){g+=f("OVERRUN",g-1,p,m);continue}let S=v&(1<<8-A-1)-1;for(let x=0;x<A;x++){let w=p[g];if((w&192)!=128){g+=f("MISSING_CONTINUE",g,p,m),S=null;break}S=S<<6|w&63,g++}if(S!==null){if(S>1114111){g+=f("OUT_OF_RANGE",g-1-A,p,m,S);continue}if(S>=55296&&S<=57343){g+=f("UTF16_SURROGATE",g-1-A,p,m,S);continue}if(S<=y){g+=f("OVERLONG",g-1-A,p,m,S);continue}m.push(S)}}return m}function l(h,f){(0,n.assertArgument)(typeof h=="string","invalid string value","str",h),f!=null&&((0,n.assertNormalize)(f),h=h.normalize(f));let p=[];for(let m=0;m<h.length;m++){const g=h.charCodeAt(m);if(g<128)p.push(g);else if(g<2048)p.push(g>>6|192),p.push(g&63|128);else if((g&64512)==55296){m++;const v=h.charCodeAt(m);(0,n.assertArgument)(m<h.length&&(v&64512)===56320,"invalid surrogate pair","str",h);const A=65536+((g&1023)<<10)+(v&1023);p.push(A>>18|240),p.push(A>>12&63|128),p.push(A>>6&63|128),p.push(A&63|128)}else p.push(g>>12|224),p.push(g>>6&63|128),p.push(g&63|128)}return new Uint8Array(p)}t.toUtf8Bytes=l;function c(h){return h.map(f=>f<=65535?String.fromCharCode(f):(f-=65536,String.fromCharCode((f>>10&1023)+55296,(f&1023)+56320))).join("")}function u(h,f){return c(s(h,f))}t.toUtf8String=u;function d(h,f){return s(l(h,f))}t.toUtf8CodePoints=d}(I$e)),I$e}var lL={},Y9t;function lKo(){if(Y9t)return lL;Y9t=1,Object.defineProperty(lL,"__esModule",{value:!0}),lL.getUrl=lL.createGetUrl=void 0;const t=IC();function e(a){async function o(s,l){(0,t.assert)(l==null||!l.cancelled,"request cancelled before sending","CANCELLED");const c=s.url.split(":")[0].toLowerCase();(0,t.assert)(c==="http"||c==="https",`unsupported protocol ${c}`,"UNSUPPORTED_OPERATION",{info:{protocol:c},operation:"request"}),(0,t.assert)(c==="https"||!s.credentials||s.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let u=null;const d=new AbortController,h=setTimeout(()=>{u=(0,t.makeError)("request timeout","TIMEOUT"),d.abort()},s.timeout);l&&l.addListener(()=>{u=(0,t.makeError)("request cancelled","CANCELLED"),d.abort()});const f={method:s.method,headers:new Headers(Array.from(s)),body:s.body||void 0,signal:d.signal};let p;try{p=await fetch(s.url,f)}catch(A){throw clearTimeout(h),u||A}clearTimeout(h);const m={};p.headers.forEach((A,y)=>{m[y.toLowerCase()]=A});const g=await p.arrayBuffer(),v=g==null?null:new Uint8Array(g);return{statusCode:p.status,statusMessage:p.statusText,headers:m,body:v}}return o}lL.createGetUrl=e;const n=e();async function r(a,o){return n(a,o)}return lL.getUrl=r,lL}var J9t;function cKo(){var C,R,k,P,N,L,I,b,T,M,D,B,j,H,U,$,z,Z,WZ,ee,X,te,J,ne,ie;if(J9t)return zk;J9t=1,Object.defineProperty(zk,"__esModule",{value:!0}),zk.FetchResponse=zk.FetchRequest=zk.FetchCancelSignal=void 0;const t=oJn(),e=jw(),n=IC(),r=G9(),a=Iut(),o=lKo(),s=12,l=250;let c=(0,o.createGetUrl)();const u=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),d=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let h=!1;async function f(de,ce){try{const Ee=de.match(u);if(!Ee)throw new Error("invalid data");return new S(200,"OK",{"content-type":Ee[1]||"text/plain"},Ee[2]?(0,t.decodeBase64)(Ee[3]):w(Ee[3]))}catch{return new S(599,"BAD REQUEST (invalid data: URI)",{},null,new y(de))}}function p(de){async function ce(Ee,Me){try{const Be=Ee.match(d);if(!Be)throw new Error("invalid link");return new y(`${de}${Be[2]}`)}catch{return new S(599,"BAD REQUEST (invalid IPFS URI)",{},null,new y(Ee))}}return ce}const m={data:f,ipfs:p("https://gateway.ipfs.io/ipfs/")},g=new WeakMap;class v{constructor(ce){Wt(this,C,void 0);Wt(this,R,void 0);tt(this,C,[]),tt(this,R,!1),g.set(ce,()=>{if(!Le(this,R)){tt(this,R,!0);for(const Ee of Le(this,C))setTimeout(()=>{Ee()},0);tt(this,C,[])}})}addListener(ce){(0,n.assert)(!Le(this,R),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),Le(this,C).push(ce)}get cancelled(){return Le(this,R)}checkSignal(){(0,n.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}C=new WeakMap,R=new WeakMap,zk.FetchCancelSignal=v;function A(de){if(de==null)throw new Error("missing signal; should not happen");return de.checkSignal(),de}const Q=class Q{constructor(ce){Wt(this,Z);Wt(this,k,void 0);Wt(this,P,void 0);Wt(this,N,void 0);Wt(this,L,void 0);Wt(this,I,void 0);Wt(this,b,void 0);Wt(this,T,void 0);Wt(this,M,void 0);Wt(this,D,void 0);Wt(this,B,void 0);Wt(this,j,void 0);Wt(this,H,void 0);Wt(this,U,void 0);Wt(this,$,void 0);Wt(this,z,void 0);tt(this,b,String(ce)),tt(this,k,!1),tt(this,P,!0),tt(this,N,{}),tt(this,L,""),tt(this,I,3e5),tt(this,$,{slotInterval:l,maxAttempts:s}),tt(this,z,null)}get url(){return Le(this,b)}set url(ce){tt(this,b,String(ce))}get body(){return Le(this,T)==null?null:new Uint8Array(Le(this,T))}set body(ce){if(ce==null)tt(this,T,void 0),tt(this,M,void 0);else if(typeof ce=="string")tt(this,T,(0,a.toUtf8Bytes)(ce)),tt(this,M,"text/plain");else if(ce instanceof Uint8Array)tt(this,T,ce),tt(this,M,"application/octet-stream");else if(typeof ce=="object")tt(this,T,(0,a.toUtf8Bytes)(JSON.stringify(ce))),tt(this,M,"application/json");else throw new Error("invalid body")}hasBody(){return Le(this,T)!=null}get method(){return Le(this,L)?Le(this,L):this.hasBody()?"POST":"GET"}set method(ce){ce==null&&(ce=""),tt(this,L,String(ce).toUpperCase())}get headers(){const ce=Object.assign({},Le(this,N));return Le(this,D)&&(ce.authorization=`Basic ${(0,t.encodeBase64)((0,a.toUtf8Bytes)(Le(this,D)))}`),this.allowGzip&&(ce["accept-encoding"]="gzip"),ce["content-type"]==null&&Le(this,M)&&(ce["content-type"]=Le(this,M)),this.body&&(ce["content-length"]=String(this.body.length)),ce}getHeader(ce){return this.headers[ce.toLowerCase()]}setHeader(ce,Ee){Le(this,N)[String(ce).toLowerCase()]=String(Ee)}clearHeaders(){tt(this,N,{})}[Symbol.iterator](){const ce=this.headers,Ee=Object.keys(ce);let Me=0;return{next:()=>{if(Me<Ee.length){const Be=Ee[Me++];return{value:[Be,ce[Be]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return Le(this,D)||null}setCredentials(ce,Ee){(0,n.assertArgument)(!ce.match(/:/),"invalid basic authentication username","username","[REDACTED]"),tt(this,D,`${ce}:${Ee}`)}get allowGzip(){return Le(this,P)}set allowGzip(ce){tt(this,P,!!ce)}get allowInsecureAuthentication(){return!!Le(this,k)}set allowInsecureAuthentication(ce){tt(this,k,!!ce)}get timeout(){return Le(this,I)}set timeout(ce){(0,n.assertArgument)(ce>=0,"timeout must be non-zero","timeout",ce),tt(this,I,ce)}get preflightFunc(){return Le(this,B)||null}set preflightFunc(ce){tt(this,B,ce)}get processFunc(){return Le(this,j)||null}set processFunc(ce){tt(this,j,ce)}get retryFunc(){return Le(this,H)||null}set retryFunc(ce){tt(this,H,ce)}get getUrlFunc(){return Le(this,z)||c}set getUrlFunc(ce){tt(this,z,ce)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${Le(this,T)?(0,e.hexlify)(Le(this,T)):"null"}>`}setThrottleParams(ce){ce.slotInterval!=null&&(Le(this,$).slotInterval=ce.slotInterval),ce.maxAttempts!=null&&(Le(this,$).maxAttempts=ce.maxAttempts)}send(){return(0,n.assert)(Le(this,U)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),tt(this,U,new v(this)),qn(this,Z,WZ).call(this,0,x()+this.timeout,0,this,new S(0,"",{},null,this))}cancel(){(0,n.assert)(Le(this,U)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const ce=g.get(this);if(!ce)throw new Error("missing signal; should not happen");ce()}redirect(ce){const Ee=this.url.split(":")[0].toLowerCase(),Me=ce.split(":")[0].toLowerCase();(0,n.assert)(this.method==="GET"&&(Ee!=="https"||Me!=="http")&&ce.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(ce)})`});const Be=new Q(ce);return Be.method="GET",Be.allowGzip=this.allowGzip,Be.timeout=this.timeout,tt(Be,N,Object.assign({},Le(this,N))),Le(this,T)&&tt(Be,T,new Uint8Array(Le(this,T))),tt(Be,M,Le(this,M)),Be}clone(){const ce=new Q(this.url);return tt(ce,L,Le(this,L)),Le(this,T)&&tt(ce,T,Le(this,T)),tt(ce,M,Le(this,M)),tt(ce,N,Object.assign({},Le(this,N))),tt(ce,D,Le(this,D)),this.allowGzip&&(ce.allowGzip=!0),ce.timeout=this.timeout,this.allowInsecureAuthentication&&(ce.allowInsecureAuthentication=!0),tt(ce,B,Le(this,B)),tt(ce,j,Le(this,j)),tt(ce,H,Le(this,H)),tt(ce,$,Object.assign({},Le(this,$))),tt(ce,z,Le(this,z)),ce}static lockConfig(){h=!0}static getGateway(ce){return m[ce.toLowerCase()]||null}static registerGateway(ce,Ee){if(ce=ce.toLowerCase(),ce==="http"||ce==="https")throw new Error(`cannot intercept ${ce}; use registerGetUrl`);if(h)throw new Error("gateways locked");m[ce]=Ee}static registerGetUrl(ce){if(h)throw new Error("gateways locked");c=ce}static createGetUrlFunc(ce){return(0,o.createGetUrl)(ce)}static createDataGateway(){return f}static createIpfsGatewayFunc(ce){return p(ce)}};k=new WeakMap,P=new WeakMap,N=new WeakMap,L=new WeakMap,I=new WeakMap,b=new WeakMap,T=new WeakMap,M=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,H=new WeakMap,U=new WeakMap,$=new WeakMap,z=new WeakMap,Z=new WeakSet,WZ=async function(ce,Ee,Me,Be,ze){var pe,Ne,_e;if(ce>=Le(this,$).maxAttempts)return ze.makeServerError("exceeded maximum retry limit");(0,n.assert)(x()<=Ee,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:Be}),Me>0&&await _(Me);let je=this.clone();const ye=(je.url.split(":")[0]||"").toLowerCase();if(ye in m){const ue=await m[ye](je.url,A(Le(Be,U)));if(ue instanceof S){let se=ue;if(this.processFunc){A(Le(Be,U));try{se=await this.processFunc(je,se)}catch(oe){(oe.throttle==null||typeof oe.stall!="number")&&se.makeServerError("error in post-processing function",oe).assertOk()}}return se}je=ue}this.preflightFunc&&(je=await this.preflightFunc(je));const me=await this.getUrlFunc(je,A(Le(Be,U)));let le=new S(me.statusCode,me.statusMessage,me.headers,me.body,Be);if(le.statusCode===301||le.statusCode===302){try{const ue=le.headers.location||"";return qn(pe=je.redirect(ue),Z,WZ).call(pe,ce+1,Ee,0,Be,le)}catch{}return le}else if(le.statusCode===429&&(this.retryFunc==null||await this.retryFunc(je,le,ce))){const ue=le.headers["retry-after"];let se=Le(this,$).slotInterval*Math.trunc(Math.random()*Math.pow(2,ce));return typeof ue=="string"&&ue.match(/^[1-9][0-9]*$/)&&(se=parseInt(ue)),qn(Ne=je.clone(),Z,WZ).call(Ne,ce+1,Ee,se,Be,le)}if(this.processFunc){A(Le(Be,U));try{le=await this.processFunc(je,le)}catch(ue){(ue.throttle==null||typeof ue.stall!="number")&&le.makeServerError("error in post-processing function",ue).assertOk();let se=Le(this,$).slotInterval*Math.trunc(Math.random()*Math.pow(2,ce));return ue.stall>=0&&(se=ue.stall),qn(_e=je.clone(),Z,WZ).call(_e,ce+1,Ee,se,Be,le)}}return le};let y=Q;zk.FetchRequest=y;const he=class he{constructor(ce,Ee,Me,Be,ze){Wt(this,ee,void 0);Wt(this,X,void 0);Wt(this,te,void 0);Wt(this,J,void 0);Wt(this,ne,void 0);Wt(this,ie,void 0);tt(this,ee,ce),tt(this,X,Ee),tt(this,te,Object.keys(Me).reduce((je,ye)=>(je[ye.toLowerCase()]=String(Me[ye]),je),{})),tt(this,J,Be==null?null:new Uint8Array(Be)),tt(this,ne,ze||null),tt(this,ie,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${Le(this,J)?(0,e.hexlify)(Le(this,J)):"null"}>`}get statusCode(){return Le(this,ee)}get statusMessage(){return Le(this,X)}get headers(){return Object.assign({},Le(this,te))}get body(){return Le(this,J)==null?null:new Uint8Array(Le(this,J))}get bodyText(){try{return Le(this,J)==null?"":(0,a.toUtf8String)(Le(this,J))}catch{(0,n.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{(0,n.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const ce=this.headers,Ee=Object.keys(ce);let Me=0;return{next:()=>{if(Me<Ee.length){const Be=Ee[Me++];return{value:[Be,ce[Be]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(ce,Ee){let Me;ce?Me=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${ce})`:(ce=`${this.statusCode} ${this.statusMessage}`,Me=`CLIENT ESCALATED SERVER ERROR (${ce})`);const Be=new he(599,Me,this.headers,this.body,Le(this,ne)||void 0);return tt(Be,ie,{message:ce,error:Ee}),Be}throwThrottleError(ce,Ee){Ee==null?Ee=-1:(0,n.assertArgument)(Number.isInteger(Ee)&&Ee>=0,"invalid stall timeout","stall",Ee);const Me=new Error(ce||"throttling requests");throw(0,r.defineProperties)(Me,{stall:Ee,throttle:!0}),Me}getHeader(ce){return this.headers[ce.toLowerCase()]}hasBody(){return Le(this,J)!=null}get request(){return Le(this,ne)}ok(){return Le(this,ie).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:ce,error:Ee}=Le(this,ie);ce===""&&(ce=`server response ${this.statusCode} ${this.statusMessage}`);let Me=null;this.request&&(Me=this.request.url);let Be=null;try{Le(this,J)&&(Be=(0,a.toUtf8String)(Le(this,J)))}catch{}(0,n.assert)(!1,ce,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:Ee,info:{requestUrl:Me,responseBody:Be,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};ee=new WeakMap,X=new WeakMap,te=new WeakMap,J=new WeakMap,ne=new WeakMap,ie=new WeakMap;let S=he;zk.FetchResponse=S;function x(){return new Date().getTime()}function w(de){return(0,a.toUtf8Bytes)(de.replace(/%([0-9a-f][0-9a-f])/gi,(ce,Ee)=>String.fromCharCode(parseInt(Ee,16))))}function _(de){return new Promise(ce=>setTimeout(ce,de))}return zk}var TY={},Z9t;function sJn(){var g,v,A,y,dB,x,lR,_,hqe,R,fqe,P,pqe,L,mqe;if(Z9t)return TY;Z9t=1,Object.defineProperty(TY,"__esModule",{value:!0}),TY.FixedNumber=void 0;const t=jw(),e=IC(),n=Jse(),r=G9(),a=BigInt(-1),o=BigInt(0),s=BigInt(1),l=BigInt(5),c={};let u="0000";for(;u.length<80;)u+=u;function d(T){let M=u;for(;M.length<T;)M+=M;return BigInt("1"+M.substring(0,T))}function h(T,M,D){const B=BigInt(M.width);if(M.signed){const j=s<<B-s;(0,e.assert)(D==null||T>=-j&&T<j,"overflow","NUMERIC_FAULT",{operation:D,fault:"overflow",value:T}),T>o?T=(0,n.fromTwos)((0,n.mask)(T,B),B):T=-(0,n.fromTwos)((0,n.mask)(-T,B),B)}else{const j=s<<B;(0,e.assert)(D==null||T>=0&&T<j,"overflow","NUMERIC_FAULT",{operation:D,fault:"overflow",value:T}),T=(T%j+j)%j&j-s}return T}function f(T){typeof T=="number"&&(T=`fixed128x${T}`);let M=!0,D=128,B=18;if(typeof T=="string"){if(T!=="fixed")if(T==="ufixed")M=!1;else{const H=T.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,e.assertArgument)(H,"invalid fixed format","format",T),M=H[1]!=="u",D=parseInt(H[2]),B=parseInt(H[3])}}else if(T){const H=T,U=($,z,Z)=>H[$]==null?Z:((0,e.assertArgument)(typeof H[$]===z,"invalid fixed format ("+$+" not "+z+")","format."+$,H[$]),H[$]);M=U("signed","boolean",M),D=U("width","number",D),B=U("decimals","number",B)}(0,e.assertArgument)(D%8===0,"invalid FixedNumber width (not byte aligned)","format.width",D),(0,e.assertArgument)(B<=80,"invalid FixedNumber decimals (too large)","format.decimals",B);const j=(M?"":"u")+"fixed"+String(D)+"x"+String(B);return{signed:M,width:D,decimals:B,name:j}}function p(T,M){let D="";T<o&&(D="-",T*=a);let B=T.toString();if(M===0)return D+B;for(;B.length<=M;)B=u+B;const j=B.length-M;for(B=B.substring(0,j)+"."+B.substring(j);B[0]==="0"&&B[1]!==".";)B=B.substring(1);for(;B[B.length-1]==="0"&&B[B.length-2]!==".";)B=B.substring(0,B.length-1);return D+B}const b=class b{constructor(M,D,B){Wt(this,y);Wt(this,x);Wt(this,_);Wt(this,R);Wt(this,P);Wt(this,L);Ut(this,"format");Wt(this,g,void 0);Wt(this,v,void 0);Wt(this,A,void 0);Ut(this,"_value");(0,e.assertPrivate)(M,c,"FixedNumber"),tt(this,v,D),tt(this,g,B);const j=p(D,B.decimals);(0,r.defineProperties)(this,{format:B.name,_value:j}),tt(this,A,d(B.decimals))}get signed(){return Le(this,g).signed}get width(){return Le(this,g).width}get decimals(){return Le(this,g).decimals}get value(){return Le(this,v)}addUnsafe(M){return qn(this,_,hqe).call(this,M)}add(M){return qn(this,_,hqe).call(this,M,"add")}subUnsafe(M){return qn(this,R,fqe).call(this,M)}sub(M){return qn(this,R,fqe).call(this,M,"sub")}mulUnsafe(M){return qn(this,P,pqe).call(this,M)}mul(M){return qn(this,P,pqe).call(this,M,"mul")}mulSignal(M){qn(this,y,dB).call(this,M);const D=Le(this,v)*Le(M,v);return(0,e.assert)(D%Le(this,A)===o,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),qn(this,x,lR).call(this,D/Le(this,A),"mulSignal")}divUnsafe(M){return qn(this,L,mqe).call(this,M)}div(M){return qn(this,L,mqe).call(this,M,"div")}divSignal(M){(0,e.assert)(Le(M,v)!==o,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),qn(this,y,dB).call(this,M);const D=Le(this,v)*Le(this,A);return(0,e.assert)(D%Le(M,v)===o,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),qn(this,x,lR).call(this,D/Le(M,v),"divSignal")}cmp(M){let D=this.value,B=M.value;const j=this.decimals-M.decimals;return j>0?B*=d(j):j<0&&(D*=d(-j)),D<B?-1:D>B?1:0}eq(M){return this.cmp(M)===0}lt(M){return this.cmp(M)<0}lte(M){return this.cmp(M)<=0}gt(M){return this.cmp(M)>0}gte(M){return this.cmp(M)>=0}floor(){let M=Le(this,v);return Le(this,v)<o&&(M-=Le(this,A)-s),M=Le(this,v)/Le(this,A)*Le(this,A),qn(this,x,lR).call(this,M,"floor")}ceiling(){let M=Le(this,v);return Le(this,v)>o&&(M+=Le(this,A)-s),M=Le(this,v)/Le(this,A)*Le(this,A),qn(this,x,lR).call(this,M,"ceiling")}round(M){if(M==null&&(M=0),M>=this.decimals)return this;const D=this.decimals-M,B=l*d(D-1);let j=this.value+B;const H=d(D);return j=j/H*H,h(j,Le(this,g),"round"),new b(c,j,Le(this,g))}isZero(){return Le(this,v)===o}isNegative(){return Le(this,v)<o}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(M){return b.fromString(this.toString(),M)}static fromValue(M,D,B){const j=D==null?0:(0,n.getNumber)(D),H=f(B);let U=(0,n.getBigInt)(M,"value");const $=j-H.decimals;if($>0){const z=d($);(0,e.assert)(U%z===o,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:M}),U/=z}else $<0&&(U*=d(-$));return h(U,H,"fromValue"),new b(c,U,H)}static fromString(M,D){const B=M.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,e.assertArgument)(B&&B[2].length+B[3].length>0,"invalid FixedNumber string value","value",M);const j=f(D);let H=B[2]||"0",U=B[3]||"";for(;U.length<j.decimals;)U+=u;(0,e.assert)(U.substring(j.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:M}),U=U.substring(0,j.decimals);const $=BigInt(B[1]+H+U);return h($,j,"fromString"),new b(c,$,j)}static fromBytes(M,D){let B=(0,n.toBigInt)((0,t.getBytes)(M,"value"));const j=f(D);return j.signed&&(B=(0,n.fromTwos)(B,j.width)),h(B,j,"fromBytes"),new b(c,B,j)}};g=new WeakMap,v=new WeakMap,A=new WeakMap,y=new WeakSet,dB=function(M){(0,e.assertArgument)(this.format===M.format,"incompatible format; use fixedNumber.toFormat","other",M)},x=new WeakSet,lR=function(M,D){return M=h(M,Le(this,g),D),new b(c,M,Le(this,g))},_=new WeakSet,hqe=function(M,D){return qn(this,y,dB).call(this,M),qn(this,x,lR).call(this,Le(this,v)+Le(M,v),D)},R=new WeakSet,fqe=function(M,D){return qn(this,y,dB).call(this,M),qn(this,x,lR).call(this,Le(this,v)-Le(M,v),D)},P=new WeakSet,pqe=function(M,D){return qn(this,y,dB).call(this,M),qn(this,x,lR).call(this,Le(this,v)*Le(M,v)/Le(this,A),D)},L=new WeakSet,mqe=function(M,D){return(0,e.assert)(Le(M,v)!==o,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),qn(this,y,dB).call(this,M),qn(this,x,lR).call(this,Le(this,v)*Le(this,A)/Le(M,v),D)};let m=b;return TY.FixedNumber=m,TY}var CY={},X9t;function uKo(){if(X9t)return CY;X9t=1,Object.defineProperty(CY,"__esModule",{value:!0}),CY.decodeRlp=void 0;const t=jw(),e=IC(),n=jw();function r(c){let u=c.toString(16);for(;u.length<2;)u="0"+u;return"0x"+u}function a(c,u,d){let h=0;for(let f=0;f<d;f++)h=h*256+c[u+f];return h}function o(c,u,d,h){const f=[];for(;d<u+1+h;){const p=s(c,d);f.push(p.result),d+=p.consumed,(0,e.assert)(d<=u+1+h,"child data too short","BUFFER_OVERRUN",{buffer:c,length:h,offset:u})}return{consumed:1+h,result:f}}function s(c,u){(0,e.assert)(c.length!==0,"data too short","BUFFER_OVERRUN",{buffer:c,length:0,offset:1});const d=h=>{(0,e.assert)(h<=c.length,"data short segment too short","BUFFER_OVERRUN",{buffer:c,length:c.length,offset:h})};if(c[u]>=248){const h=c[u]-247;d(u+1+h);const f=a(c,u+1,h);return d(u+1+h+f),o(c,u,u+1+h,h+f)}else if(c[u]>=192){const h=c[u]-192;return d(u+1+h),o(c,u,u+1,h)}else if(c[u]>=184){const h=c[u]-183;d(u+1+h);const f=a(c,u+1,h);d(u+1+h+f);const p=(0,t.hexlify)(c.slice(u+1+h,u+1+h+f));return{consumed:1+h+f,result:p}}else if(c[u]>=128){const h=c[u]-128;d(u+1+h);const f=(0,t.hexlify)(c.slice(u+1,u+1+h));return{consumed:1+h,result:f}}return{consumed:1,result:r(c[u])}}function l(c){const u=(0,n.getBytes)(c,"data"),d=s(u,0);return(0,e.assertArgument)(d.consumed===u.length,"unexpected junk after rlp payload","data",c),d.result}return CY.decodeRlp=l,CY}var kY={},e$t;function dKo(){if(e$t)return kY;e$t=1,Object.defineProperty(kY,"__esModule",{value:!0}),kY.encodeRlp=void 0;const t=jw();function e(o){const s=[];for(;o;)s.unshift(o&255),o>>=8;return s}function n(o){if(Array.isArray(o)){let c=[];if(o.forEach(function(d){c=c.concat(n(d))}),c.length<=55)return c.unshift(192+c.length),c;const u=e(c.length);return u.unshift(247+u.length),u.concat(c)}const s=Array.prototype.slice.call((0,t.getBytes)(o,"object"));if(s.length===1&&s[0]<=127)return s;if(s.length<=55)return s.unshift(128+s.length),s;const l=e(s.length);return l.unshift(183+l.length),l.concat(s)}const r="0123456789abcdef";function a(o){let s="0x";for(const l of n(o))s+=r[l>>4],s+=r[l&15];return s}return kY.encodeRlp=a,kY}var pS={},t$t;function hKo(){if(t$t)return pS;t$t=1,Object.defineProperty(pS,"__esModule",{value:!0}),pS.parseEther=pS.formatEther=pS.parseUnits=pS.formatUnits=void 0;const t=IC(),e=sJn(),n=Jse(),r=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(c,u){let d=18;if(typeof u=="string"){const h=r.indexOf(u);(0,t.assertArgument)(h>=0,"invalid unit","unit",u),d=3*h}else u!=null&&(d=(0,n.getNumber)(u,"unit"));return e.FixedNumber.fromValue(c,d,{decimals:d,width:512}).toString()}pS.formatUnits=a;function o(c,u){(0,t.assertArgument)(typeof c=="string","value must be a string","value",c);let d=18;if(typeof u=="string"){const h=r.indexOf(u);(0,t.assertArgument)(h>=0,"invalid unit","unit",u),d=3*h}else u!=null&&(d=(0,n.getNumber)(u,"unit"));return e.FixedNumber.fromString(c,{decimals:d,width:512}).value}pS.parseUnits=o;function s(c){return a(c,18)}pS.formatEther=s;function l(c){return o(c,18)}return pS.parseEther=l,pS}var RY={},n$t;function fKo(){if(n$t)return RY;n$t=1,Object.defineProperty(RY,"__esModule",{value:!0}),RY.uuidV4=void 0;const t=jw();function e(n){const r=(0,t.getBytes)(n,"randomBytes");r[6]=r[6]&15|64,r[8]=r[8]&63|128;const a=(0,t.hexlify)(r);return[a.substring(2,10),a.substring(10,14),a.substring(14,18),a.substring(18,22),a.substring(22,34)].join("-")}return RY.uuidV4=e,RY}var r$t;function Oi(){return r$t||(r$t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var e=oKo();Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return e.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return e.encodeBase58}});var n=oJn();Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return n.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return n.encodeBase64}});var r=jw();Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return r.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return r.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return r.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return r.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return r.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return r.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return r.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return r.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return r.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return r.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return r.zeroPadBytes}});var a=IC();Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return a.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return a.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return a.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return a.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return a.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return a.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return a.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return a.makeError}});var o=sKo();Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return o.EventPayload}});var s=cKo();Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return s.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return s.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return s.FetchCancelSignal}});var l=sJn();Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var c=Jse();Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return c.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return c.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return c.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return c.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return c.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return c.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return c.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return c.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return c.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return c.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return c.toQuantity}});var u=G9();Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return u.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return u.defineProperties}});var d=uKo();Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var h=dKo();Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return h.encodeRlp}});var f=hKo();Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return f.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return f.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return f.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return f.parseUnits}});var p=Iut();Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return p.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return p.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return p.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return p.Utf8ErrorFuncs}});var m=fKo();Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return m.uuidV4}})}(N$e)),N$e}var P$e={},i$t;function o_(){return i$t||(i$t=1,function(t){var v,y,S,x,Cge,_,C,R,k,P,N,gqe,I,lJn;Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;const e=Oi();t.WordSize=32;const n=new Uint8Array(t.WordSize),r=["then"],a={},o=new WeakMap;function s(M){return o.get(M)}function l(M,D){o.set(M,D)}function c(M,D){const B=new Error(`deferred error during ABI decoding triggered accessing ${M}`);throw B.error=D,B}function u(M,D,B){return M.indexOf(null)>=0?D.map((j,H)=>j instanceof d?u(s(j),j,B):j):M.reduce((j,H,U)=>{let $=D.getValue(H);return H in j||(B&&$ instanceof d&&($=u(s($),$,B)),j[H]=$),j},{})}const A=class A extends Array{constructor(...B){const j=B[0];let H=B[1],U=(B[2]||[]).slice(),$=!0;j!==a&&(H=B,U=[],$=!1);super(H.length);Wt(this,v,void 0);H.forEach((K,Q)=>{this[Q]=K});const z=U.reduce((K,Q)=>(typeof Q=="string"&&K.set(Q,(K.get(Q)||0)+1),K),new Map);if(l(this,Object.freeze(H.map((K,Q)=>{const ee=U[Q];return ee!=null&&z.get(ee)===1?ee:null}))),tt(this,v,[]),Le(this,v)==null&&Le(this,v),!$)return;Object.freeze(this);const Z=new Proxy(this,{get:(K,Q,ee)=>{if(typeof Q=="string"){if(Q.match(/^[0-9]+$/)){const te=(0,e.getNumber)(Q,"%index");if(te<0||te>=this.length)throw new RangeError("out of result range");const J=K[te];return J instanceof Error&&c(`index ${te}`,J),J}if(r.indexOf(Q)>=0)return Reflect.get(K,Q,ee);const X=K[Q];if(X instanceof Function)return function(...te){return X.apply(this===ee?K:this,te)};if(!(Q in K))return K.getValue.apply(this===ee?K:this,[Q])}return Reflect.get(K,Q,ee)}});return l(Z,s(this)),Z}toArray(B){const j=[];return this.forEach((H,U)=>{H instanceof Error&&c(`index ${U}`,H),B&&H instanceof A&&(H=H.toArray(B)),j.push(H)}),j}toObject(B){const j=s(this);return j.reduce((H,U,$)=>((0,e.assert)(U!=null,`value at index ${$} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),u(j,this,B)),{})}slice(B,j){B==null&&(B=0),B<0&&(B+=this.length,B<0&&(B=0)),j==null&&(j=this.length),j<0&&(j+=this.length,j<0&&(j=0)),j>this.length&&(j=this.length);const H=s(this),U=[],$=[];for(let z=B;z<j;z++)U.push(this[z]),$.push(H[z]);return new A(a,U,$)}filter(B,j){const H=s(this),U=[],$=[];for(let z=0;z<this.length;z++){const Z=this[z];Z instanceof Error&&c(`index ${z}`,Z),B.call(j,Z,z,this)&&(U.push(Z),$.push(H[z]))}return new A(a,U,$)}map(B,j){const H=[];for(let U=0;U<this.length;U++){const $=this[U];$ instanceof Error&&c(`index ${U}`,$),H.push(B.call(j,$,U,this))}return H}getValue(B){const j=s(this).indexOf(B);if(j===-1)return;const H=this[j];return H instanceof Error&&c(`property ${JSON.stringify(B)}`,H.error),H}static fromItems(B,j){return new A(a,B,j)}};v=new WeakMap;let d=A;t.Result=d;function h(M){const D=[],B=function(j,H){if(Array.isArray(H))for(let U in H){const $=j.slice();$.push(U);try{B($,H[U])}catch(z){D.push({path:$,error:z})}}};return B([],M),D}t.checkResultErrors=h;function f(M){let D=(0,e.toBeArray)(M);return(0,e.assert)(D.length<=t.WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:D,length:t.WordSize,offset:D.length}),D.length!==t.WordSize&&(D=(0,e.getBytesCopy)((0,e.concat)([n.slice(D.length%t.WordSize),D]))),D}class p{constructor(D,B,j,H){Ut(this,"name");Ut(this,"type");Ut(this,"localName");Ut(this,"dynamic");(0,e.defineProperties)(this,{name:D,type:B,localName:j,dynamic:H},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(D,B){(0,e.assertArgument)(!1,D,this.localName,B)}}t.Coder=p;class m{constructor(){Wt(this,x);Wt(this,y,void 0);Wt(this,S,void 0);tt(this,y,[]),tt(this,S,0)}get data(){return(0,e.concat)(Le(this,y))}get length(){return Le(this,S)}appendWriter(D){return qn(this,x,Cge).call(this,(0,e.getBytesCopy)(D.data))}writeBytes(D){let B=(0,e.getBytesCopy)(D);const j=B.length%t.WordSize;return j&&(B=(0,e.getBytesCopy)((0,e.concat)([B,n.slice(j)]))),qn(this,x,Cge).call(this,B)}writeValue(D){return qn(this,x,Cge).call(this,f(D))}writeUpdatableValue(){const D=Le(this,y).length;return Le(this,y).push(n),tt(this,S,Le(this,S)+t.WordSize),B=>{Le(this,y)[D]=f(B)}}}y=new WeakMap,S=new WeakMap,x=new WeakSet,Cge=function(D){return Le(this,y).push(D),tt(this,S,Le(this,S)+D.length),D.length},t.Writer=m;const T=class T{constructor(D,B,j){Wt(this,N);Wt(this,I);Ut(this,"allowLoose");Wt(this,_,void 0);Wt(this,C,void 0);Wt(this,R,void 0);Wt(this,k,void 0);Wt(this,P,void 0);(0,e.defineProperties)(this,{allowLoose:!!B}),tt(this,_,(0,e.getBytesCopy)(D)),tt(this,R,0),tt(this,k,null),tt(this,P,j??1024),tt(this,C,0)}get data(){return(0,e.hexlify)(Le(this,_))}get dataLength(){return Le(this,_).length}get consumed(){return Le(this,C)}get bytes(){return new Uint8Array(Le(this,_))}subReader(D){const B=new T(Le(this,_).slice(Le(this,C)+D),this.allowLoose,Le(this,P));return tt(B,k,this),B}readBytes(D,B){let j=qn(this,I,lJn).call(this,0,D,!!B);return qn(this,N,gqe).call(this,D),tt(this,C,Le(this,C)+j.length),j.slice(0,D)}readValue(){return(0,e.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,e.toNumber)(this.readBytes(t.WordSize))}};_=new WeakMap,C=new WeakMap,R=new WeakMap,k=new WeakMap,P=new WeakMap,N=new WeakSet,gqe=function(D){var B;if(Le(this,k))return qn(B=Le(this,k),N,gqe).call(B,D);tt(this,R,Le(this,R)+D),(0,e.assert)(Le(this,P)<1||Le(this,R)<=Le(this,P)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${Le(this,P)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,e.getBytesCopy)(Le(this,_)),offset:Le(this,C),length:D,info:{bytesRead:Le(this,R),dataLength:this.dataLength}})},I=new WeakSet,lJn=function(D,B,j){let H=Math.ceil(B/t.WordSize)*t.WordSize;return Le(this,C)+H>Le(this,_).length&&(this.allowLoose&&j&&Le(this,C)+B<=Le(this,_).length?H=B:(0,e.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,e.getBytesCopy)(Le(this,_)),length:Le(this,_).length,offset:Le(this,C)+H})),Le(this,_).slice(Le(this,C),Le(this,C)+H)};let g=T;t.Reader=g}(P$e)),P$e}var MY={},O$e={},cL={},L$e={},NY={},mS={},B$e={},Gg={},a$t;function Zse(){if(a$t)return Gg;a$t=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.output=Gg.exists=Gg.hash=Gg.bytes=Gg.bool=Gg.number=void 0;function t(l){if(!Number.isSafeInteger(l)||l<0)throw new Error(`Wrong positive integer: ${l}`)}Gg.number=t;function e(l){if(typeof l!="boolean")throw new Error(`Expected boolean, not ${l}`)}Gg.bool=e;function n(l,...c){if(!(l instanceof Uint8Array))throw new Error("Expected Uint8Array");if(c.length>0&&!c.includes(l.length))throw new Error(`Expected Uint8Array of length ${c}, not of length=${l.length}`)}Gg.bytes=n;function r(l){if(typeof l!="function"||typeof l.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");t(l.outputLen),t(l.blockLen)}Gg.hash=r;function a(l,c=!0){if(l.destroyed)throw new Error("Hash instance has been destroyed");if(c&&l.finished)throw new Error("Hash#digest() has already been called")}Gg.exists=a;function o(l,c){n(l);const u=c.outputLen;if(l.length<u)throw new Error(`digestInto() expects output buffer of length at least ${u}`)}Gg.output=o;const s={number:t,bool:e,bytes:n,hash:r,exists:a,output:o};return Gg.default=s,Gg}var D$e={},IY={},o$t;function pKo(){return o$t||(o$t=1,Object.defineProperty(IY,"__esModule",{value:!0}),IY.crypto=void 0,IY.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),IY}var s$t;function PC(){return s$t||(s$t=1,function(t){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const e=pKo(),n=_=>_ instanceof Uint8Array,r=_=>new Uint8Array(_.buffer,_.byteOffset,_.byteLength);t.u8=r;const a=_=>new Uint32Array(_.buffer,_.byteOffset,Math.floor(_.byteLength/4));t.u32=a;const o=_=>new DataView(_.buffer,_.byteOffset,_.byteLength);t.createView=o;const s=(_,C)=>_<<32-C|_>>>C;if(t.rotr=s,t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!t.isLE)throw new Error("Non little-endian hardware is not supported");const l=Array.from({length:256},(_,C)=>C.toString(16).padStart(2,"0"));function c(_){if(!n(_))throw new Error("Uint8Array expected");let C="";for(let R=0;R<_.length;R++)C+=l[_[R]];return C}t.bytesToHex=c;function u(_){if(typeof _!="string")throw new Error("hex string expected, got "+typeof _);const C=_.length;if(C%2)throw new Error("padded hex string expected, got unpadded hex of length "+C);const R=new Uint8Array(C/2);for(let k=0;k<R.length;k++){const P=k*2,N=_.slice(P,P+2),L=Number.parseInt(N,16);if(Number.isNaN(L)||L<0)throw new Error("Invalid byte sequence");R[k]=L}return R}t.hexToBytes=u;const d=async()=>{};t.nextTick=d;async function h(_,C,R){let k=Date.now();for(let P=0;P<_;P++){R(P);const N=Date.now()-k;N>=0&&N<C||(await(0,t.nextTick)(),k+=N)}}t.asyncLoop=h;function f(_){if(typeof _!="string")throw new Error(`utf8ToBytes expected string, got ${typeof _}`);return new Uint8Array(new TextEncoder().encode(_))}t.utf8ToBytes=f;function p(_){if(typeof _=="string"&&(_=f(_)),!n(_))throw new Error(`expected Uint8Array, got ${typeof _}`);return _}t.toBytes=p;function m(..._){const C=new Uint8Array(_.reduce((k,P)=>k+P.length,0));let R=0;return _.forEach(k=>{if(!n(k))throw new Error("Uint8Array expected");C.set(k,R),R+=k.length}),C}t.concatBytes=m;class g{clone(){return this._cloneInto()}}t.Hash=g;const v={}.toString;function A(_,C){if(C!==void 0&&v.call(C)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(_,C)}t.checkOpts=A;function y(_){const C=k=>_().update(p(k)).digest(),R=_();return C.outputLen=R.outputLen,C.blockLen=R.blockLen,C.create=()=>_(),C}t.wrapConstructor=y;function S(_){const C=(k,P)=>_(P).update(p(k)).digest(),R=_({});return C.outputLen=R.outputLen,C.blockLen=R.blockLen,C.create=k=>_(k),C}t.wrapConstructorWithOpts=S;function x(_){const C=(k,P)=>_(P).update(p(k)).digest(),R=_({});return C.outputLen=R.outputLen,C.blockLen=R.blockLen,C.create=k=>_(k),C}t.wrapXOFConstructorWithOpts=x;function w(_=32){if(e.crypto&&typeof e.crypto.getRandomValues=="function")return e.crypto.getRandomValues(new Uint8Array(_));throw new Error("crypto.getRandomValues must be defined")}t.randomBytes=w}(D$e)),D$e}var l$t;function Put(){return l$t||(l$t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const e=Zse(),n=PC();class r extends n.Hash{constructor(s,l){super(),this.finished=!1,this.destroyed=!1,(0,e.hash)(s);const c=(0,n.toBytes)(l);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,d=new Uint8Array(u);d.set(c.length>u?s.create().update(c).digest():c);for(let h=0;h<d.length;h++)d[h]^=54;this.iHash.update(d),this.oHash=s.create();for(let h=0;h<d.length;h++)d[h]^=106;this.oHash.update(d),d.fill(0)}update(s){return(0,e.exists)(this),this.iHash.update(s),this}digestInto(s){(0,e.exists)(this),(0,e.bytes)(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:l,iHash:c,finished:u,destroyed:d,blockLen:h,outputLen:f}=this;return s=s,s.finished=u,s.destroyed=d,s.blockLen=h,s.outputLen=f,s.oHash=l._cloneInto(s.oHash),s.iHash=c._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=r;const a=(o,s,l)=>new r(o,s).update(l).digest();t.hmac=a,t.hmac.create=(o,s)=>new r(o,s)}(B$e)),B$e}var uL={},c$t;function cJn(){if(c$t)return uL;c$t=1,Object.defineProperty(uL,"__esModule",{value:!0}),uL.pbkdf2Async=uL.pbkdf2=void 0;const t=Zse(),e=Put(),n=PC();function r(l,c,u,d){(0,t.hash)(l);const h=(0,n.checkOpts)({dkLen:32,asyncTick:10},d),{c:f,dkLen:p,asyncTick:m}=h;if((0,t.number)(f),(0,t.number)(p),(0,t.number)(m),f<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const g=(0,n.toBytes)(c),v=(0,n.toBytes)(u),A=new Uint8Array(p),y=e.hmac.create(l,g),S=y._cloneInto().update(v);return{c:f,dkLen:p,asyncTick:m,DK:A,PRF:y,PRFSalt:S}}function a(l,c,u,d,h){return l.destroy(),c.destroy(),d&&d.destroy(),h.fill(0),u}function o(l,c,u,d){const{c:h,dkLen:f,DK:p,PRF:m,PRFSalt:g}=r(l,c,u,d);let v;const A=new Uint8Array(4),y=(0,n.createView)(A),S=new Uint8Array(m.outputLen);for(let x=1,w=0;w<f;x++,w+=m.outputLen){const _=p.subarray(w,w+m.outputLen);y.setInt32(0,x,!1),(v=g._cloneInto(v)).update(A).digestInto(S),_.set(S.subarray(0,_.length));for(let C=1;C<h;C++){m._cloneInto(v).update(S).digestInto(S);for(let R=0;R<_.length;R++)_[R]^=S[R]}}return a(m,g,p,v,S)}uL.pbkdf2=o;async function s(l,c,u,d){const{c:h,dkLen:f,asyncTick:p,DK:m,PRF:g,PRFSalt:v}=r(l,c,u,d);let A;const y=new Uint8Array(4),S=(0,n.createView)(y),x=new Uint8Array(g.outputLen);for(let w=1,_=0;_<f;w++,_+=g.outputLen){const C=m.subarray(_,_+g.outputLen);S.setInt32(0,w,!1),(A=v._cloneInto(A)).update(y).digestInto(x),C.set(x.subarray(0,C.length)),await(0,n.asyncLoop)(h-1,p,()=>{g._cloneInto(A).update(x).digestInto(x);for(let R=0;R<C.length;R++)C[R]^=x[R]})}return a(g,v,m,A,x)}return uL.pbkdf2Async=s,uL}var dL={},PY={},u$t;function Out(){if(u$t)return PY;u$t=1,Object.defineProperty(PY,"__esModule",{value:!0}),PY.SHA2=void 0;const t=Zse(),e=PC();function n(a,o,s,l){if(typeof a.setBigUint64=="function")return a.setBigUint64(o,s,l);const c=BigInt(32),u=BigInt(4294967295),d=Number(s>>c&u),h=Number(s&u),f=l?4:0,p=l?0:4;a.setUint32(o+f,d,l),a.setUint32(o+p,h,l)}class r extends e.Hash{constructor(o,s,l,c){super(),this.blockLen=o,this.outputLen=s,this.padOffset=l,this.isLE=c,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=(0,e.createView)(this.buffer)}update(o){(0,t.exists)(this);const{view:s,buffer:l,blockLen:c}=this;o=(0,e.toBytes)(o);const u=o.length;for(let d=0;d<u;){const h=Math.min(c-this.pos,u-d);if(h===c){const f=(0,e.createView)(o);for(;c<=u-d;d+=c)this.process(f,d);continue}l.set(o.subarray(d,d+h),this.pos),this.pos+=h,d+=h,this.pos===c&&(this.process(s,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){(0,t.exists)(this),(0,t.output)(o,this),this.finished=!0;const{buffer:s,view:l,blockLen:c,isLE:u}=this;let{pos:d}=this;s[d++]=128,this.buffer.subarray(d).fill(0),this.padOffset>c-d&&(this.process(l,0),d=0);for(let g=d;g<c;g++)s[g]=0;n(l,c-8,BigInt(this.length*8),u),this.process(l,0);const h=(0,e.createView)(o),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const p=f/4,m=this.get();if(p>m.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g<p;g++)h.setUint32(4*g,m[g],u)}digest(){const{buffer:o,outputLen:s}=this;this.digestInto(o);const l=o.slice(0,s);return this.destroy(),l}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:s,buffer:l,length:c,finished:u,destroyed:d,pos:h}=this;return o.length=c,o.pos=h,o.finished=u,o.destroyed=d,c%s&&o.buffer.set(l),o}}return PY.SHA2=r,PY}var d$t;function Lut(){if(d$t)return dL;d$t=1,Object.defineProperty(dL,"__esModule",{value:!0}),dL.sha224=dL.sha256=void 0;const t=Out(),e=PC(),n=(u,d,h)=>u&d^~u&h,r=(u,d,h)=>u&d^u&h^d&h,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint32Array(64);class l extends t.SHA2{constructor(){super(64,32,8,!1),this.A=o[0]|0,this.B=o[1]|0,this.C=o[2]|0,this.D=o[3]|0,this.E=o[4]|0,this.F=o[5]|0,this.G=o[6]|0,this.H=o[7]|0}get(){const{A:d,B:h,C:f,D:p,E:m,F:g,G:v,H:A}=this;return[d,h,f,p,m,g,v,A]}set(d,h,f,p,m,g,v,A){this.A=d|0,this.B=h|0,this.C=f|0,this.D=p|0,this.E=m|0,this.F=g|0,this.G=v|0,this.H=A|0}process(d,h){for(let x=0;x<16;x++,h+=4)s[x]=d.getUint32(h,!1);for(let x=16;x<64;x++){const w=s[x-15],_=s[x-2],C=(0,e.rotr)(w,7)^(0,e.rotr)(w,18)^w>>>3,R=(0,e.rotr)(_,17)^(0,e.rotr)(_,19)^_>>>10;s[x]=R+s[x-7]+C+s[x-16]|0}let{A:f,B:p,C:m,D:g,E:v,F:A,G:y,H:S}=this;for(let x=0;x<64;x++){const w=(0,e.rotr)(v,6)^(0,e.rotr)(v,11)^(0,e.rotr)(v,25),_=S+w+n(v,A,y)+a[x]+s[x]|0,R=((0,e.rotr)(f,2)^(0,e.rotr)(f,13)^(0,e.rotr)(f,22))+r(f,p,m)|0;S=y,y=A,A=v,v=g+_|0,g=m,m=p,p=f,f=_+R|0}f=f+this.A|0,p=p+this.B|0,m=m+this.C|0,g=g+this.D|0,v=v+this.E|0,A=A+this.F|0,y=y+this.G|0,S=S+this.H|0,this.set(f,p,m,g,v,A,y,S)}roundClean(){s.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class c extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return dL.sha256=(0,e.wrapConstructor)(()=>new l),dL.sha224=(0,e.wrapConstructor)(()=>new c),dL}var X1={},to={},h$t;function uJn(){if(h$t)return to;h$t=1,Object.defineProperty(to,"__esModule",{value:!0}),to.add5L=to.add5H=to.add4H=to.add4L=to.add3H=to.add3L=to.add=to.rotlBL=to.rotlBH=to.rotlSL=to.rotlSH=to.rotr32L=to.rotr32H=to.rotrBL=to.rotrBH=to.rotrSL=to.rotrSH=to.shrSL=to.shrSH=to.toBig=to.split=to.fromBig=void 0;const t=BigInt(2**32-1),e=BigInt(32);function n(k,P=!1){return P?{h:Number(k&t),l:Number(k>>e&t)}:{h:Number(k>>e&t)|0,l:Number(k&t)|0}}to.fromBig=n;function r(k,P=!1){let N=new Uint32Array(k.length),L=new Uint32Array(k.length);for(let I=0;I<k.length;I++){const{h:b,l:T}=n(k[I],P);[N[I],L[I]]=[b,T]}return[N,L]}to.split=r;const a=(k,P)=>BigInt(k>>>0)<<e|BigInt(P>>>0);to.toBig=a;const o=(k,P,N)=>k>>>N;to.shrSH=o;const s=(k,P,N)=>k<<32-N|P>>>N;to.shrSL=s;const l=(k,P,N)=>k>>>N|P<<32-N;to.rotrSH=l;const c=(k,P,N)=>k<<32-N|P>>>N;to.rotrSL=c;const u=(k,P,N)=>k<<64-N|P>>>N-32;to.rotrBH=u;const d=(k,P,N)=>k>>>N-32|P<<64-N;to.rotrBL=d;const h=(k,P)=>P;to.rotr32H=h;const f=(k,P)=>k;to.rotr32L=f;const p=(k,P,N)=>k<<N|P>>>32-N;to.rotlSH=p;const m=(k,P,N)=>P<<N|k>>>32-N;to.rotlSL=m;const g=(k,P,N)=>P<<N-32|k>>>64-N;to.rotlBH=g;const v=(k,P,N)=>k<<N-32|P>>>64-N;to.rotlBL=v;function A(k,P,N,L){const I=(P>>>0)+(L>>>0);return{h:k+N+(I/2**32|0)|0,l:I|0}}to.add=A;const y=(k,P,N)=>(k>>>0)+(P>>>0)+(N>>>0);to.add3L=y;const S=(k,P,N,L)=>P+N+L+(k/2**32|0)|0;to.add3H=S;const x=(k,P,N,L)=>(k>>>0)+(P>>>0)+(N>>>0)+(L>>>0);to.add4L=x;const w=(k,P,N,L,I)=>P+N+L+I+(k/2**32|0)|0;to.add4H=w;const _=(k,P,N,L,I)=>(k>>>0)+(P>>>0)+(N>>>0)+(L>>>0)+(I>>>0);to.add5L=_;const C=(k,P,N,L,I,b)=>P+N+L+I+b+(k/2**32|0)|0;to.add5H=C;const R={fromBig:n,split:r,toBig:a,shrSH:o,shrSL:s,rotrSH:l,rotrSL:c,rotrBH:u,rotrBL:d,rotr32H:h,rotr32L:f,rotlSH:p,rotlSL:m,rotlBH:g,rotlBL:v,add:A,add3L:y,add3H:S,add4L:x,add4H:w,add5H:C,add5L:_};return to.default=R,to}var f$t;function mKo(){if(f$t)return X1;f$t=1,Object.defineProperty(X1,"__esModule",{value:!0}),X1.sha384=X1.sha512_256=X1.sha512_224=X1.sha512=X1.SHA512=void 0;const t=Out(),e=uJn(),n=PC(),[r,a]=(()=>e.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(h=>BigInt(h))))(),o=new Uint32Array(80),s=new Uint32Array(80);class l extends t.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:f,Al:p,Bh:m,Bl:g,Ch:v,Cl:A,Dh:y,Dl:S,Eh:x,El:w,Fh:_,Fl:C,Gh:R,Gl:k,Hh:P,Hl:N}=this;return[f,p,m,g,v,A,y,S,x,w,_,C,R,k,P,N]}set(f,p,m,g,v,A,y,S,x,w,_,C,R,k,P,N){this.Ah=f|0,this.Al=p|0,this.Bh=m|0,this.Bl=g|0,this.Ch=v|0,this.Cl=A|0,this.Dh=y|0,this.Dl=S|0,this.Eh=x|0,this.El=w|0,this.Fh=_|0,this.Fl=C|0,this.Gh=R|0,this.Gl=k|0,this.Hh=P|0,this.Hl=N|0}process(f,p){for(let b=0;b<16;b++,p+=4)o[b]=f.getUint32(p),s[b]=f.getUint32(p+=4);for(let b=16;b<80;b++){const T=o[b-15]|0,M=s[b-15]|0,D=e.default.rotrSH(T,M,1)^e.default.rotrSH(T,M,8)^e.default.shrSH(T,M,7),B=e.default.rotrSL(T,M,1)^e.default.rotrSL(T,M,8)^e.default.shrSL(T,M,7),j=o[b-2]|0,H=s[b-2]|0,U=e.default.rotrSH(j,H,19)^e.default.rotrBH(j,H,61)^e.default.shrSH(j,H,6),$=e.default.rotrSL(j,H,19)^e.default.rotrBL(j,H,61)^e.default.shrSL(j,H,6),z=e.default.add4L(B,$,s[b-7],s[b-16]),Z=e.default.add4H(z,D,U,o[b-7],o[b-16]);o[b]=Z|0,s[b]=z|0}let{Ah:m,Al:g,Bh:v,Bl:A,Ch:y,Cl:S,Dh:x,Dl:w,Eh:_,El:C,Fh:R,Fl:k,Gh:P,Gl:N,Hh:L,Hl:I}=this;for(let b=0;b<80;b++){const T=e.default.rotrSH(_,C,14)^e.default.rotrSH(_,C,18)^e.default.rotrBH(_,C,41),M=e.default.rotrSL(_,C,14)^e.default.rotrSL(_,C,18)^e.default.rotrBL(_,C,41),D=_&R^~_&P,B=C&k^~C&N,j=e.default.add5L(I,M,B,a[b],s[b]),H=e.default.add5H(j,L,T,D,r[b],o[b]),U=j|0,$=e.default.rotrSH(m,g,28)^e.default.rotrBH(m,g,34)^e.default.rotrBH(m,g,39),z=e.default.rotrSL(m,g,28)^e.default.rotrBL(m,g,34)^e.default.rotrBL(m,g,39),Z=m&v^m&y^v&y,K=g&A^g&S^A&S;L=P|0,I=N|0,P=R|0,N=k|0,R=_|0,k=C|0,{h:_,l:C}=e.default.add(x|0,w|0,H|0,U|0),x=y|0,w=S|0,y=v|0,S=A|0,v=m|0,A=g|0;const Q=e.default.add3L(U,z,K);m=e.default.add3H(Q,H,$,Z),g=Q|0}({h:m,l:g}=e.default.add(this.Ah|0,this.Al|0,m|0,g|0)),{h:v,l:A}=e.default.add(this.Bh|0,this.Bl|0,v|0,A|0),{h:y,l:S}=e.default.add(this.Ch|0,this.Cl|0,y|0,S|0),{h:x,l:w}=e.default.add(this.Dh|0,this.Dl|0,x|0,w|0),{h:_,l:C}=e.default.add(this.Eh|0,this.El|0,_|0,C|0),{h:R,l:k}=e.default.add(this.Fh|0,this.Fl|0,R|0,k|0),{h:P,l:N}=e.default.add(this.Gh|0,this.Gl|0,P|0,N|0),{h:L,l:I}=e.default.add(this.Hh|0,this.Hl|0,L|0,I|0),this.set(m,g,v,A,y,S,x,w,_,C,R,k,P,N,L,I)}roundClean(){o.fill(0),s.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}X1.SHA512=l;class c extends l{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class u extends l{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class d extends l{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}return X1.sha512=(0,n.wrapConstructor)(()=>new l),X1.sha512_224=(0,n.wrapConstructor)(()=>new c),X1.sha512_256=(0,n.wrapConstructor)(()=>new u),X1.sha384=(0,n.wrapConstructor)(()=>new d),X1}var p$t;function NCe(){if(p$t)return mS;p$t=1,Object.defineProperty(mS,"__esModule",{value:!0}),mS.randomBytes=mS.pbkdf2Sync=mS.createHmac=mS.createHash=void 0;const t=Put(),e=cJn(),n=Lut(),r=mKo(),a=Oi();function o(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof en<"u")return en;throw new Error("unable to locate global object")}const s=o(),l=s.crypto||s.msCrypto;function c(f){switch(f){case"sha256":return n.sha256.create();case"sha512":return r.sha512.create()}(0,a.assertArgument)(!1,"invalid hashing algorithm name","algorithm",f)}mS.createHash=c;function u(f,p){const m={sha256:n.sha256,sha512:r.sha512}[f];return(0,a.assertArgument)(m!=null,"invalid hmac algorithm","algorithm",f),t.hmac.create(m,p)}mS.createHmac=u;function d(f,p,m,g,v){const A={sha256:n.sha256,sha512:r.sha512}[v];return(0,a.assertArgument)(A!=null,"invalid pbkdf2 algorithm","algorithm",v),(0,e.pbkdf2)(A,f,p,{c:m,dkLen:g})}mS.pbkdf2Sync=d;function h(f){(0,a.assert)(l!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,a.assertArgument)(Number.isInteger(f)&&f>0&&f<=1024,"invalid length","length",f);const p=new Uint8Array(f);return l.getRandomValues(p),p}return mS.randomBytes=h,mS}var m$t;function gKo(){if(m$t)return NY;m$t=1,Object.defineProperty(NY,"__esModule",{value:!0}),NY.computeHmac=void 0;const t=NCe(),e=Oi();let n=!1;const r=function(s,l,c){return(0,t.createHmac)(s,l).update(c).digest()};let a=r;function o(s,l,c){const u=(0,e.getBytes)(l,"key"),d=(0,e.getBytes)(c,"data");return(0,e.hexlify)(a(s,u,d))}return NY.computeHmac=o,o._=r,o.lock=function(){n=!0},o.register=function(s){if(n)throw new Error("computeHmac is locked");a=s},Object.freeze(o),NY}var OY={},iu={},g$t;function vKo(){if(g$t)return iu;g$t=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.shake256=iu.shake128=iu.keccak_512=iu.keccak_384=iu.keccak_256=iu.keccak_224=iu.sha3_512=iu.sha3_384=iu.sha3_256=iu.sha3_224=iu.Keccak=iu.keccakP=void 0;const t=Zse(),e=uJn(),n=PC(),[r,a,o]=[[],[],[]],s=BigInt(0),l=BigInt(1),c=BigInt(2),u=BigInt(7),d=BigInt(256),h=BigInt(113);for(let x=0,w=l,_=1,C=0;x<24;x++){[_,C]=[C,(2*_+3*C)%5],r.push(2*(5*C+_)),a.push((x+1)*(x+2)/2%64);let R=s;for(let k=0;k<7;k++)w=(w<<l^(w>>u)*h)%d,w&c&&(R^=l<<(l<<BigInt(k))-l);o.push(R)}const[f,p]=(0,e.split)(o,!0),m=(x,w,_)=>_>32?(0,e.rotlBH)(x,w,_):(0,e.rotlSH)(x,w,_),g=(x,w,_)=>_>32?(0,e.rotlBL)(x,w,_):(0,e.rotlSL)(x,w,_);function v(x,w=24){const _=new Uint32Array(10);for(let C=24-w;C<24;C++){for(let P=0;P<10;P++)_[P]=x[P]^x[P+10]^x[P+20]^x[P+30]^x[P+40];for(let P=0;P<10;P+=2){const N=(P+8)%10,L=(P+2)%10,I=_[L],b=_[L+1],T=m(I,b,1)^_[N],M=g(I,b,1)^_[N+1];for(let D=0;D<50;D+=10)x[P+D]^=T,x[P+D+1]^=M}let R=x[2],k=x[3];for(let P=0;P<24;P++){const N=a[P],L=m(R,k,N),I=g(R,k,N),b=r[P];R=x[b],k=x[b+1],x[b]=L,x[b+1]=I}for(let P=0;P<50;P+=10){for(let N=0;N<10;N++)_[N]=x[P+N];for(let N=0;N<10;N++)x[P+N]^=~_[(N+2)%10]&_[(N+4)%10]}x[0]^=f[C],x[1]^=p[C]}_.fill(0)}iu.keccakP=v;class A extends n.Hash{constructor(w,_,C,R=!1,k=24){if(super(),this.blockLen=w,this.suffix=_,this.outputLen=C,this.enableXOF=R,this.rounds=k,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,t.number)(C),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(w){(0,t.exists)(this);const{blockLen:_,state:C}=this;w=(0,n.toBytes)(w);const R=w.length;for(let k=0;k<R;){const P=Math.min(_-this.pos,R-k);for(let N=0;N<P;N++)C[this.pos++]^=w[k++];this.pos===_&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:w,suffix:_,pos:C,blockLen:R}=this;w[C]^=_,_&128&&C===R-1&&this.keccak(),w[R-1]^=128,this.keccak()}writeInto(w){(0,t.exists)(this,!1),(0,t.bytes)(w),this.finish();const _=this.state,{blockLen:C}=this;for(let R=0,k=w.length;R<k;){this.posOut>=C&&this.keccak();const P=Math.min(C-this.posOut,k-R);w.set(_.subarray(this.posOut,this.posOut+P),R),this.posOut+=P,R+=P}return w}xofInto(w){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(w)}xof(w){return(0,t.number)(w),this.xofInto(new Uint8Array(w))}digestInto(w){if((0,t.output)(w,this),this.finished)throw new Error("digest() was already called");return this.writeInto(w),this.destroy(),w}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(w){const{blockLen:_,suffix:C,outputLen:R,rounds:k,enableXOF:P}=this;return w||(w=new A(_,C,R,P,k)),w.state32.set(this.state32),w.pos=this.pos,w.posOut=this.posOut,w.finished=this.finished,w.rounds=k,w.suffix=C,w.outputLen=R,w.enableXOF=P,w.destroyed=this.destroyed,w}}iu.Keccak=A;const y=(x,w,_)=>(0,n.wrapConstructor)(()=>new A(w,x,_));iu.sha3_224=y(6,144,224/8),iu.sha3_256=y(6,136,256/8),iu.sha3_384=y(6,104,384/8),iu.sha3_512=y(6,72,512/8),iu.keccak_224=y(1,144,224/8),iu.keccak_256=y(1,136,256/8),iu.keccak_384=y(1,104,384/8),iu.keccak_512=y(1,72,512/8);const S=(x,w,_)=>(0,n.wrapXOFConstructorWithOpts)((C={})=>new A(w,x,C.dkLen===void 0?_:C.dkLen,!0));return iu.shake128=S(31,168,128/8),iu.shake256=S(31,136,256/8),iu}var v$t;function AKo(){if(v$t)return OY;v$t=1,Object.defineProperty(OY,"__esModule",{value:!0}),OY.keccak256=void 0;const t=vKo(),e=Oi();let n=!1;const r=function(s){return(0,t.keccak_256)(s)};let a=r;function o(s){const l=(0,e.getBytes)(s,"data");return(0,e.hexlify)(a(l))}return OY.keccak256=o,o._=r,o.lock=function(){n=!0},o.register=function(s){if(n)throw new TypeError("keccak256 is locked");a=s},Object.freeze(o),OY}var LY={},hL={},A$t;function yKo(){if(A$t)return hL;A$t=1,Object.defineProperty(hL,"__esModule",{value:!0}),hL.ripemd160=hL.RIPEMD160=void 0;const t=Out(),e=PC(),n=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),r=Uint8Array.from({length:16},(v,A)=>A),a=r.map(v=>(9*v+5)%16);let o=[r],s=[a];for(let v=0;v<4;v++)for(let A of[o,s])A.push(A[v].map(y=>n[y]));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(v=>new Uint8Array(v)),c=o.map((v,A)=>v.map(y=>l[A][y])),u=s.map((v,A)=>v.map(y=>l[A][y])),d=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),h=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),f=(v,A)=>v<<A|v>>>32-A;function p(v,A,y,S){return v===0?A^y^S:v===1?A&y|~A&S:v===2?(A|~y)^S:v===3?A&S|y&~S:A^(y|~S)}const m=new Uint32Array(16);class g extends t.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:A,h1:y,h2:S,h3:x,h4:w}=this;return[A,y,S,x,w]}set(A,y,S,x,w){this.h0=A|0,this.h1=y|0,this.h2=S|0,this.h3=x|0,this.h4=w|0}process(A,y){for(let I=0;I<16;I++,y+=4)m[I]=A.getUint32(y,!0);let S=this.h0|0,x=S,w=this.h1|0,_=w,C=this.h2|0,R=C,k=this.h3|0,P=k,N=this.h4|0,L=N;for(let I=0;I<5;I++){const b=4-I,T=d[I],M=h[I],D=o[I],B=s[I],j=c[I],H=u[I];for(let U=0;U<16;U++){const $=f(S+p(I,w,C,k)+m[D[U]]+T,j[U])+N|0;S=N,N=k,k=f(C,10)|0,C=w,w=$}for(let U=0;U<16;U++){const $=f(x+p(b,_,R,P)+m[B[U]]+M,H[U])+L|0;x=L,L=P,P=f(R,10)|0,R=_,_=$}}this.set(this.h1+C+P|0,this.h2+k+L|0,this.h3+N+x|0,this.h4+S+_|0,this.h0+w+R|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}return hL.RIPEMD160=g,hL.ripemd160=(0,e.wrapConstructor)(()=>new g),hL}var y$t;function bKo(){if(y$t)return LY;y$t=1,Object.defineProperty(LY,"__esModule",{value:!0}),LY.ripemd160=void 0;const t=yKo(),e=Oi();let n=!1;const r=function(s){return(0,t.ripemd160)(s)};let a=r;function o(s){const l=(0,e.getBytes)(s,"data");return(0,e.hexlify)(a(l))}return LY.ripemd160=o,o._=r,o.lock=function(){n=!0},o.register=function(s){if(n)throw new TypeError("ripemd160 is locked");a=s},Object.freeze(o),LY}var BY={},b$t;function xKo(){if(b$t)return BY;b$t=1,Object.defineProperty(BY,"__esModule",{value:!0}),BY.pbkdf2=void 0;const t=NCe(),e=Oi();let n=!1;const r=function(s,l,c,u,d){return(0,t.pbkdf2Sync)(s,l,c,u,d)};let a=r;function o(s,l,c,u,d){const h=(0,e.getBytes)(s,"password"),f=(0,e.getBytes)(l,"salt");return(0,e.hexlify)(a(h,f,c,u,d))}return BY.pbkdf2=o,o._=r,o.lock=function(){n=!0},o.register=function(s){if(n)throw new Error("pbkdf2 is locked");a=s},Object.freeze(o),BY}var DY={},x$t;function EKo(){if(x$t)return DY;x$t=1,Object.defineProperty(DY,"__esModule",{value:!0}),DY.randomBytes=void 0;const t=NCe();let e=!1;const n=function(o){return new Uint8Array((0,t.randomBytes)(o))};let r=n;function a(o){return r(o)}return DY.randomBytes=a,a._=n,a.lock=function(){e=!0},a.register=function(o){if(e)throw new Error("randomBytes is locked");r=o},Object.freeze(a),DY}var fL={},pL={},E$t;function SKo(){if(E$t)return pL;E$t=1,Object.defineProperty(pL,"__esModule",{value:!0}),pL.scryptAsync=pL.scrypt=void 0;const t=Zse(),e=Lut(),n=cJn(),r=PC(),a=(h,f)=>h<<f|h>>>32-f;function o(h,f,p,m,g,v){let A=h[f++]^p[m++],y=h[f++]^p[m++],S=h[f++]^p[m++],x=h[f++]^p[m++],w=h[f++]^p[m++],_=h[f++]^p[m++],C=h[f++]^p[m++],R=h[f++]^p[m++],k=h[f++]^p[m++],P=h[f++]^p[m++],N=h[f++]^p[m++],L=h[f++]^p[m++],I=h[f++]^p[m++],b=h[f++]^p[m++],T=h[f++]^p[m++],M=h[f++]^p[m++],D=A,B=y,j=S,H=x,U=w,$=_,z=C,Z=R,K=k,Q=P,ee=N,X=L,te=I,J=b,ne=T,ie=M;for(let he=0;he<8;he+=2)U^=a(D+te|0,7),K^=a(U+D|0,9),te^=a(K+U|0,13),D^=a(te+K|0,18),Q^=a($+B|0,7),J^=a(Q+$|0,9),B^=a(J+Q|0,13),$^=a(B+J|0,18),ne^=a(ee+z|0,7),j^=a(ne+ee|0,9),z^=a(j+ne|0,13),ee^=a(z+j|0,18),H^=a(ie+X|0,7),Z^=a(H+ie|0,9),X^=a(Z+H|0,13),ie^=a(X+Z|0,18),B^=a(D+H|0,7),j^=a(B+D|0,9),H^=a(j+B|0,13),D^=a(H+j|0,18),z^=a($+U|0,7),Z^=a(z+$|0,9),U^=a(Z+z|0,13),$^=a(U+Z|0,18),X^=a(ee+Q|0,7),K^=a(X+ee|0,9),Q^=a(K+X|0,13),ee^=a(Q+K|0,18),te^=a(ie+ne|0,7),J^=a(te+ie|0,9),ne^=a(J+te|0,13),ie^=a(ne+J|0,18);g[v++]=A+D|0,g[v++]=y+B|0,g[v++]=S+j|0,g[v++]=x+H|0,g[v++]=w+U|0,g[v++]=_+$|0,g[v++]=C+z|0,g[v++]=R+Z|0,g[v++]=k+K|0,g[v++]=P+Q|0,g[v++]=N+ee|0,g[v++]=L+X|0,g[v++]=I+te|0,g[v++]=b+J|0,g[v++]=T+ne|0,g[v++]=M+ie|0}function s(h,f,p,m,g){let v=m+0,A=m+16*g;for(let y=0;y<16;y++)p[A+y]=h[f+(2*g-1)*16+y];for(let y=0;y<g;y++,v+=16,f+=16)o(p,A,h,f,p,v),y>0&&(A+=16),o(p,v,h,f+=16,p,A)}function l(h,f,p){const m=(0,r.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},p),{N:g,r:v,p:A,dkLen:y,asyncTick:S,maxmem:x,onProgress:w}=m;if((0,t.number)(g),(0,t.number)(v),(0,t.number)(A),(0,t.number)(y),(0,t.number)(S),(0,t.number)(x),w!==void 0&&typeof w!="function")throw new Error("progressCb should be function");const _=128*v,C=_/4;if(g<=1||g&g-1||g>=2**(_/8)||g>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(A<0||A>(2**32-1)*32/_)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(y<0||y>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const R=_*(g+A);if(R>x)throw new Error(`Scrypt: parameters too large, ${R} (128 * r * (N + p)) > ${x} (maxmem)`);const k=(0,n.pbkdf2)(e.sha256,h,f,{c:1,dkLen:_*A}),P=(0,r.u32)(k),N=(0,r.u32)(new Uint8Array(_*g)),L=(0,r.u32)(new Uint8Array(_));let I=()=>{};if(w){const b=2*g*A,T=Math.max(Math.floor(b/1e4),1);let M=0;I=()=>{M++,w&&(!(M%T)||M===b)&&w(M/b)}}return{N:g,r:v,p:A,dkLen:y,blockSize32:C,V:N,B32:P,B:k,tmp:L,blockMixCb:I,asyncTick:S}}function c(h,f,p,m,g){const v=(0,n.pbkdf2)(e.sha256,h,p,{c:1,dkLen:f});return p.fill(0),m.fill(0),g.fill(0),v}function u(h,f,p){const{N:m,r:g,p:v,dkLen:A,blockSize32:y,V:S,B32:x,B:w,tmp:_,blockMixCb:C}=l(h,f,p);for(let R=0;R<v;R++){const k=y*R;for(let P=0;P<y;P++)S[P]=x[k+P];for(let P=0,N=0;P<m-1;P++)s(S,N,S,N+=y,g),C();s(S,(m-1)*y,x,k,g),C();for(let P=0;P<m;P++){const N=x[k+y-16]%m;for(let L=0;L<y;L++)_[L]=x[k+L]^S[N*y+L];s(_,0,x,k,g),C()}}return c(h,A,w,S,_)}pL.scrypt=u;async function d(h,f,p){const{N:m,r:g,p:v,dkLen:A,blockSize32:y,V:S,B32:x,B:w,tmp:_,blockMixCb:C,asyncTick:R}=l(h,f,p);for(let k=0;k<v;k++){const P=y*k;for(let L=0;L<y;L++)S[L]=x[P+L];let N=0;await(0,r.asyncLoop)(m-1,R,()=>{s(S,N,S,N+=y,g),C()}),s(S,(m-1)*y,x,P,g),C(),await(0,r.asyncLoop)(m,R,()=>{const L=x[P+y-16]%m;for(let I=0;I<y;I++)_[I]=x[P+I]^S[L*y+I];s(_,0,x,P,g),C()})}return c(h,A,w,S,_)}return pL.scryptAsync=d,pL}var S$t;function wKo(){if(S$t)return fL;S$t=1,Object.defineProperty(fL,"__esModule",{value:!0}),fL.scryptSync=fL.scrypt=void 0;const t=SKo(),e=Oi();let n=!1,r=!1;const a=async function(d,h,f,p,m,g,v){return await(0,t.scryptAsync)(d,h,{N:f,r:p,p:m,dkLen:g,onProgress:v})},o=function(d,h,f,p,m,g){return(0,t.scrypt)(d,h,{N:f,r:p,p:m,dkLen:g})};let s=a,l=o;async function c(d,h,f,p,m,g,v){const A=(0,e.getBytes)(d,"passwd"),y=(0,e.getBytes)(h,"salt");return(0,e.hexlify)(await s(A,y,f,p,m,g,v))}fL.scrypt=c,c._=a,c.lock=function(){r=!0},c.register=function(d){if(r)throw new Error("scrypt is locked");s=d},Object.freeze(c);function u(d,h,f,p,m,g){const v=(0,e.getBytes)(d,"passwd"),A=(0,e.getBytes)(h,"salt");return(0,e.hexlify)(l(v,A,f,p,m,g))}return fL.scryptSync=u,u._=o,u.lock=function(){n=!0},u.register=function(d){if(n)throw new Error("scryptSync is locked");l=d},Object.freeze(u),fL}var mL={},w$t;function _Ko(){if(w$t)return mL;w$t=1,Object.defineProperty(mL,"__esModule",{value:!0}),mL.sha512=mL.sha256=void 0;const t=NCe(),e=Oi(),n=function(d){return(0,t.createHash)("sha256").update(d).digest()},r=function(d){return(0,t.createHash)("sha512").update(d).digest()};let a=n,o=r,s=!1,l=!1;function c(d){const h=(0,e.getBytes)(d,"data");return(0,e.hexlify)(a(h))}mL.sha256=c,c._=n,c.lock=function(){s=!0},c.register=function(d){if(s)throw new Error("sha256 is locked");a=d},Object.freeze(c);function u(d){const h=(0,e.getBytes)(d,"data");return(0,e.hexlify)(o(h))}return mL.sha512=u,u._=r,u.lock=function(){l=!0},u.register=function(d){if(l)throw new Error("sha512 is locked");o=d},Object.freeze(c),mL}var $Y={},$$e={},Do={},is={},_$t;function Tz(){if(_$t)return is;_$t=1,Object.defineProperty(is,"__esModule",{value:!0}),is.validateObject=is.createHmacDrbg=is.bitMask=is.bitSet=is.bitGet=is.bitLen=is.utf8ToBytes=is.equalBytes=is.concatBytes=is.ensureBytes=is.numberToVarBytesBE=is.numberToBytesLE=is.numberToBytesBE=is.bytesToNumberLE=is.bytesToNumberBE=is.hexToBytes=is.hexToNumber=is.numberToHexUnpadded=is.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=BigInt(0),e=BigInt(1),n=BigInt(2),r=N=>N instanceof Uint8Array,a=Array.from({length:256},(N,L)=>L.toString(16).padStart(2,"0"));function o(N){if(!r(N))throw new Error("Uint8Array expected");let L="";for(let I=0;I<N.length;I++)L+=a[N[I]];return L}is.bytesToHex=o;function s(N){const L=N.toString(16);return L.length&1?`0${L}`:L}is.numberToHexUnpadded=s;function l(N){if(typeof N!="string")throw new Error("hex string expected, got "+typeof N);return BigInt(N===""?"0":`0x${N}`)}is.hexToNumber=l;function c(N){if(typeof N!="string")throw new Error("hex string expected, got "+typeof N);const L=N.length;if(L%2)throw new Error("padded hex string expected, got unpadded hex of length "+L);const I=new Uint8Array(L/2);for(let b=0;b<I.length;b++){const T=b*2,M=N.slice(T,T+2),D=Number.parseInt(M,16);if(Number.isNaN(D)||D<0)throw new Error("Invalid byte sequence");I[b]=D}return I}is.hexToBytes=c;function u(N){return l(o(N))}is.bytesToNumberBE=u;function d(N){if(!r(N))throw new Error("Uint8Array expected");return l(o(Uint8Array.from(N).reverse()))}is.bytesToNumberLE=d;function h(N,L){return c(N.toString(16).padStart(L*2,"0"))}is.numberToBytesBE=h;function f(N,L){return h(N,L).reverse()}is.numberToBytesLE=f;function p(N){return c(s(N))}is.numberToVarBytesBE=p;function m(N,L,I){let b;if(typeof L=="string")try{b=c(L)}catch(M){throw new Error(`${N} must be valid hex string, got "${L}". Cause: ${M}`)}else if(r(L))b=Uint8Array.from(L);else throw new Error(`${N} must be hex string or Uint8Array`);const T=b.length;if(typeof I=="number"&&T!==I)throw new Error(`${N} expected ${I} bytes, got ${T}`);return b}is.ensureBytes=m;function g(...N){const L=new Uint8Array(N.reduce((b,T)=>b+T.length,0));let I=0;return N.forEach(b=>{if(!r(b))throw new Error("Uint8Array expected");L.set(b,I),I+=b.length}),L}is.concatBytes=g;function v(N,L){if(N.length!==L.length)return!1;for(let I=0;I<N.length;I++)if(N[I]!==L[I])return!1;return!0}is.equalBytes=v;function A(N){if(typeof N!="string")throw new Error(`utf8ToBytes expected string, got ${typeof N}`);return new Uint8Array(new TextEncoder().encode(N))}is.utf8ToBytes=A;function y(N){let L;for(L=0;N>t;N>>=e,L+=1);return L}is.bitLen=y;function S(N,L){return N>>BigInt(L)&e}is.bitGet=S;const x=(N,L,I)=>N|(I?e:t)<<BigInt(L);is.bitSet=x;const w=N=>(n<<BigInt(N-1))-e;is.bitMask=w;const _=N=>new Uint8Array(N),C=N=>Uint8Array.from(N);function R(N,L,I){if(typeof N!="number"||N<2)throw new Error("hashLen must be a number");if(typeof L!="number"||L<2)throw new Error("qByteLen must be a number");if(typeof I!="function")throw new Error("hmacFn must be a function");let b=_(N),T=_(N),M=0;const D=()=>{b.fill(1),T.fill(0),M=0},B=(...$)=>I(T,b,...$),j=($=_())=>{T=B(C([0]),$),b=B(),$.length!==0&&(T=B(C([1]),$),b=B())},H=()=>{if(M++>=1e3)throw new Error("drbg: tried 1000 values");let $=0;const z=[];for(;$<L;){b=B();const Z=b.slice();z.push(Z),$+=b.length}return g(...z)};return($,z)=>{D(),j($);let Z;for(;!(Z=z(H()));)j();return D(),Z}}is.createHmacDrbg=R;const k={bigint:N=>typeof N=="bigint",function:N=>typeof N=="function",boolean:N=>typeof N=="boolean",string:N=>typeof N=="string",stringOrUint8Array:N=>typeof N=="string"||N instanceof Uint8Array,isSafeInteger:N=>Number.isSafeInteger(N),array:N=>Array.isArray(N),field:(N,L)=>L.Fp.isValid(N),hash:N=>typeof N=="function"&&Number.isSafeInteger(N.outputLen)};function P(N,L,I={}){const b=(T,M,D)=>{const B=k[M];if(typeof B!="function")throw new Error(`Invalid validator "${M}", expected function`);const j=N[T];if(!(D&&j===void 0)&&!B(j,N))throw new Error(`Invalid param ${String(T)}=${j} (${typeof j}), expected ${M}`)};for(const[T,M]of Object.entries(L))b(T,M,!1);for(const[T,M]of Object.entries(I))b(T,M,!0);return N}return is.validateObject=P,is}var T$t;function ICe(){if(T$t)return Do;T$t=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.mapHashToField=Do.getMinHashLength=Do.getFieldBytesLength=Do.hashToPrivateScalar=Do.FpSqrtEven=Do.FpSqrtOdd=Do.Field=Do.nLength=Do.FpIsSquare=Do.FpDiv=Do.FpInvertBatch=Do.FpPow=Do.validateField=Do.isNegativeLE=Do.FpSqrt=Do.tonelliShanks=Do.invert=Do.pow2=Do.pow=Do.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=Tz(),e=BigInt(0),n=BigInt(1),r=BigInt(2),a=BigInt(3),o=BigInt(4),s=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function c(I,b){const T=I%b;return T>=e?T:b+T}Do.mod=c;function u(I,b,T){if(T<=e||b<e)throw new Error("Expected power/modulo > 0");if(T===n)return e;let M=n;for(;b>e;)b&n&&(M=M*I%T),I=I*I%T,b>>=n;return M}Do.pow=u;function d(I,b,T){let M=I;for(;b-- >e;)M*=M,M%=T;return M}Do.pow2=d;function h(I,b){if(I===e||b<=e)throw new Error(`invert: expected positive integers, got n=${I} mod=${b}`);let T=c(I,b),M=b,D=e,B=n;for(;T!==e;){const H=M/T,U=M%T,$=D-B*H;M=T,T=U,D=B,B=$}if(M!==n)throw new Error("invert: does not exist");return c(D,b)}Do.invert=h;function f(I){const b=(I-n)/r;let T,M,D;for(T=I-n,M=0;T%r===e;T/=r,M++);for(D=r;D<I&&u(D,b,I)!==I-n;D++);if(M===1){const j=(I+n)/o;return function(U,$){const z=U.pow($,j);if(!U.eql(U.sqr(z),$))throw new Error("Cannot find square root");return z}}const B=(T+n)/r;return function(H,U){if(H.pow(U,b)===H.neg(H.ONE))throw new Error("Cannot find square root");let $=M,z=H.pow(H.mul(H.ONE,D),T),Z=H.pow(U,B),K=H.pow(U,T);for(;!H.eql(K,H.ONE);){if(H.eql(K,H.ZERO))return H.ZERO;let Q=1;for(let X=H.sqr(K);Q<$&&!H.eql(X,H.ONE);Q++)X=H.sqr(X);const ee=H.pow(z,n<<BigInt($-Q-1));z=H.sqr(ee),Z=H.mul(Z,ee),K=H.mul(K,z),$=Q}return Z}}Do.tonelliShanks=f;function p(I){if(I%o===a){const b=(I+n)/o;return function(M,D){const B=M.pow(D,b);if(!M.eql(M.sqr(B),D))throw new Error("Cannot find square root");return B}}if(I%l===s){const b=(I-s)/l;return function(M,D){const B=M.mul(D,r),j=M.pow(B,b),H=M.mul(D,j),U=M.mul(M.mul(H,r),j),$=M.mul(H,M.sub(U,M.ONE));if(!M.eql(M.sqr($),D))throw new Error("Cannot find square root");return $}}return f(I)}Do.FpSqrt=p;const m=(I,b)=>(c(I,b)&n)===n;Do.isNegativeLE=m;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function v(I){const b={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},T=g.reduce((M,D)=>(M[D]="function",M),b);return(0,t.validateObject)(I,T)}Do.validateField=v;function A(I,b,T){if(T<e)throw new Error("Expected power > 0");if(T===e)return I.ONE;if(T===n)return b;let M=I.ONE,D=b;for(;T>e;)T&n&&(M=I.mul(M,D)),D=I.sqr(D),T>>=n;return M}Do.FpPow=A;function y(I,b){const T=new Array(b.length),M=b.reduce((B,j,H)=>I.is0(j)?B:(T[H]=B,I.mul(B,j)),I.ONE),D=I.inv(M);return b.reduceRight((B,j,H)=>I.is0(j)?B:(T[H]=I.mul(B,T[H]),I.mul(B,j)),D),T}Do.FpInvertBatch=y;function S(I,b,T){return I.mul(b,typeof T=="bigint"?h(T,I.ORDER):I.inv(T))}Do.FpDiv=S;function x(I){const b=(I.ORDER-n)/r;return T=>{const M=I.pow(T,b);return I.eql(M,I.ZERO)||I.eql(M,I.ONE)}}Do.FpIsSquare=x;function w(I,b){const T=b!==void 0?b:I.toString(2).length,M=Math.ceil(T/8);return{nBitLength:T,nByteLength:M}}Do.nLength=w;function _(I,b,T=!1,M={}){if(I<=e)throw new Error(`Expected Field ORDER > 0, got ${I}`);const{nBitLength:D,nByteLength:B}=w(I,b);if(B>2048)throw new Error("Field lengths over 2048 bytes are not supported");const j=p(I),H=Object.freeze({ORDER:I,BITS:D,BYTES:B,MASK:(0,t.bitMask)(D),ZERO:e,ONE:n,create:U=>c(U,I),isValid:U=>{if(typeof U!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof U}`);return e<=U&&U<I},is0:U=>U===e,isOdd:U=>(U&n)===n,neg:U=>c(-U,I),eql:(U,$)=>U===$,sqr:U=>c(U*U,I),add:(U,$)=>c(U+$,I),sub:(U,$)=>c(U-$,I),mul:(U,$)=>c(U*$,I),pow:(U,$)=>A(H,U,$),div:(U,$)=>c(U*h($,I),I),sqrN:U=>U*U,addN:(U,$)=>U+$,subN:(U,$)=>U-$,mulN:(U,$)=>U*$,inv:U=>h(U,I),sqrt:M.sqrt||(U=>j(H,U)),invertBatch:U=>y(H,U),cmov:(U,$,z)=>z?$:U,toBytes:U=>T?(0,t.numberToBytesLE)(U,B):(0,t.numberToBytesBE)(U,B),fromBytes:U=>{if(U.length!==B)throw new Error(`Fp.fromBytes: expected ${B}, got ${U.length}`);return T?(0,t.bytesToNumberLE)(U):(0,t.bytesToNumberBE)(U)}});return Object.freeze(H)}Do.Field=_;function C(I,b){if(!I.isOdd)throw new Error("Field doesn't have isOdd");const T=I.sqrt(b);return I.isOdd(T)?T:I.neg(T)}Do.FpSqrtOdd=C;function R(I,b){if(!I.isOdd)throw new Error("Field doesn't have isOdd");const T=I.sqrt(b);return I.isOdd(T)?I.neg(T):T}Do.FpSqrtEven=R;function k(I,b,T=!1){I=(0,t.ensureBytes)("privateHash",I);const M=I.length,D=w(b).nByteLength+8;if(D<24||M<D||M>1024)throw new Error(`hashToPrivateScalar: expected ${D}-1024 bytes of input, got ${M}`);const B=T?(0,t.bytesToNumberLE)(I):(0,t.bytesToNumberBE)(I);return c(B,b-n)+n}Do.hashToPrivateScalar=k;function P(I){if(typeof I!="bigint")throw new Error("field order must be bigint");const b=I.toString(2).length;return Math.ceil(b/8)}Do.getFieldBytesLength=P;function N(I){const b=P(I);return b+Math.ceil(b/2)}Do.getMinHashLength=N;function L(I,b,T=!1){const M=I.length,D=P(b),B=N(b);if(M<16||M<B||M>1024)throw new Error(`expected ${B}-1024 bytes of input, got ${M}`);const j=T?(0,t.bytesToNumberBE)(I):(0,t.bytesToNumberLE)(I),H=c(j,b-n)+n;return T?(0,t.numberToBytesLE)(H,D):(0,t.numberToBytesBE)(H,D)}return Do.mapHashToField=L,Do}var F$e={},gL={},C$t;function TKo(){if(C$t)return gL;C$t=1,Object.defineProperty(gL,"__esModule",{value:!0}),gL.validateBasic=gL.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=ICe(),e=Tz(),n=BigInt(0),r=BigInt(1);function a(s,l){const c=(d,h)=>{const f=h.negate();return d?f:h},u=d=>{const h=Math.ceil(l/d)+1,f=2**(d-1);return{windows:h,windowSize:f}};return{constTimeNegate:c,unsafeLadder(d,h){let f=s.ZERO,p=d;for(;h>n;)h&r&&(f=f.add(p)),p=p.double(),h>>=r;return f},precomputeWindow(d,h){const{windows:f,windowSize:p}=u(h),m=[];let g=d,v=g;for(let A=0;A<f;A++){v=g,m.push(v);for(let y=1;y<p;y++)v=v.add(g),m.push(v);g=v.double()}return m},wNAF(d,h,f){const{windows:p,windowSize:m}=u(d);let g=s.ZERO,v=s.BASE;const A=BigInt(2**d-1),y=2**d,S=BigInt(d);for(let x=0;x<p;x++){const w=x*m;let _=Number(f&A);f>>=S,_>m&&(_-=y,f+=r);const C=w,R=w+Math.abs(_)-1,k=x%2!==0,P=_<0;_===0?v=v.add(c(k,h[C])):g=g.add(c(P,h[R]))}return{p:g,f:v}},wNAFCached(d,h,f,p){const m=d._WINDOW_SIZE||1;let g=h.get(d);return g||(g=this.precomputeWindow(d,m),m!==1&&h.set(d,p(g))),this.wNAF(m,g,f)}}}gL.wNAF=a;function o(s){return(0,t.validateField)(s.Fp),(0,e.validateObject)(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,t.nLength)(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}return gL.validateBasic=o,gL}var k$t;function dJn(){return k$t||(k$t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=ICe(),n=Tz(),r=Tz(),a=TKo();function o(y){const S=(0,a.validateBasic)(y);n.validateObject(S,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:x,Fp:w,a:_}=S;if(x){if(!w.eql(_,w.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof x!="object"||typeof x.beta!="bigint"||typeof x.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...S})}const{bytesToNumberBE:s,hexToBytes:l}=n;t.DER={Err:class extends Error{constructor(S=""){super(S)}},_parseInt(y){const{Err:S}=t.DER;if(y.length<2||y[0]!==2)throw new S("Invalid signature integer tag");const x=y[1],w=y.subarray(2,x+2);if(!x||w.length!==x)throw new S("Invalid signature integer: wrong length");if(w[0]&128)throw new S("Invalid signature integer: negative");if(w[0]===0&&!(w[1]&128))throw new S("Invalid signature integer: unnecessary leading zero");return{d:s(w),l:y.subarray(x+2)}},toSig(y){const{Err:S}=t.DER,x=typeof y=="string"?l(y):y;if(!(x instanceof Uint8Array))throw new Error("ui8a expected");let w=x.length;if(w<2||x[0]!=48)throw new S("Invalid signature tag");if(x[1]!==w-2)throw new S("Invalid signature: incorrect length");const{d:_,l:C}=t.DER._parseInt(x.subarray(2)),{d:R,l:k}=t.DER._parseInt(C);if(k.length)throw new S("Invalid signature: left bytes after parsing");return{r:_,s:R}},hexFromSig(y){const S=N=>Number.parseInt(N[0],16)&8?"00"+N:N,x=N=>{const L=N.toString(16);return L.length&1?`0${L}`:L},w=S(x(y.s)),_=S(x(y.r)),C=w.length/2,R=_.length/2,k=x(C),P=x(R);return`30${x(R+C+4)}02${P}${_}02${k}${w}`}};const c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(y){const S=o(y),{Fp:x}=S,w=S.toBytes||((M,D,B)=>{const j=D.toAffine();return n.concatBytes(Uint8Array.from([4]),x.toBytes(j.x),x.toBytes(j.y))}),_=S.fromBytes||(M=>{const D=M.subarray(1),B=x.fromBytes(D.subarray(0,x.BYTES)),j=x.fromBytes(D.subarray(x.BYTES,2*x.BYTES));return{x:B,y:j}});function C(M){const{a:D,b:B}=S,j=x.sqr(M),H=x.mul(j,M);return x.add(x.add(H,x.mul(M,D)),B)}if(!x.eql(x.sqr(S.Gy),C(S.Gx)))throw new Error("bad generator point: equation left != right");function R(M){return typeof M=="bigint"&&c<M&&M<S.n}function k(M){if(!R(M))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function P(M){const{allowedPrivateKeyLengths:D,nByteLength:B,wrapPrivateKey:j,n:H}=S;if(D&&typeof M!="bigint"){if(M instanceof Uint8Array&&(M=n.bytesToHex(M)),typeof M!="string"||!D.includes(M.length))throw new Error("Invalid key");M=M.padStart(B*2,"0")}let U;try{U=typeof M=="bigint"?M:n.bytesToNumberBE((0,r.ensureBytes)("private key",M,B))}catch{throw new Error(`private key must be ${B} bytes, hex or bigint, not ${typeof M}`)}return j&&(U=e.mod(U,H)),k(U),U}const N=new Map;function L(M){if(!(M instanceof I))throw new Error("ProjectivePoint expected")}class I{constructor(D,B,j){if(this.px=D,this.py=B,this.pz=j,D==null||!x.isValid(D))throw new Error("x required");if(B==null||!x.isValid(B))throw new Error("y required");if(j==null||!x.isValid(j))throw new Error("z required")}static fromAffine(D){const{x:B,y:j}=D||{};if(!D||!x.isValid(B)||!x.isValid(j))throw new Error("invalid affine point");if(D instanceof I)throw new Error("projective point not allowed");const H=U=>x.eql(U,x.ZERO);return H(B)&&H(j)?I.ZERO:new I(B,j,x.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(D){const B=x.invertBatch(D.map(j=>j.pz));return D.map((j,H)=>j.toAffine(B[H])).map(I.fromAffine)}static fromHex(D){const B=I.fromAffine(_((0,r.ensureBytes)("pointHex",D)));return B.assertValidity(),B}static fromPrivateKey(D){return I.BASE.multiply(P(D))}_setWindowSize(D){this._WINDOW_SIZE=D,N.delete(this)}assertValidity(){if(this.is0()){if(S.allowInfinityPoint&&!x.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:D,y:B}=this.toAffine();if(!x.isValid(D)||!x.isValid(B))throw new Error("bad point: x or y not FE");const j=x.sqr(B),H=C(D);if(!x.eql(j,H))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:D}=this.toAffine();if(x.isOdd)return!x.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){L(D);const{px:B,py:j,pz:H}=this,{px:U,py:$,pz:z}=D,Z=x.eql(x.mul(B,z),x.mul(U,H)),K=x.eql(x.mul(j,z),x.mul($,H));return Z&&K}negate(){return new I(this.px,x.neg(this.py),this.pz)}double(){const{a:D,b:B}=S,j=x.mul(B,h),{px:H,py:U,pz:$}=this;let z=x.ZERO,Z=x.ZERO,K=x.ZERO,Q=x.mul(H,H),ee=x.mul(U,U),X=x.mul($,$),te=x.mul(H,U);return te=x.add(te,te),K=x.mul(H,$),K=x.add(K,K),z=x.mul(D,K),Z=x.mul(j,X),Z=x.add(z,Z),z=x.sub(ee,Z),Z=x.add(ee,Z),Z=x.mul(z,Z),z=x.mul(te,z),K=x.mul(j,K),X=x.mul(D,X),te=x.sub(Q,X),te=x.mul(D,te),te=x.add(te,K),K=x.add(Q,Q),Q=x.add(K,Q),Q=x.add(Q,X),Q=x.mul(Q,te),Z=x.add(Z,Q),X=x.mul(U,$),X=x.add(X,X),Q=x.mul(X,te),z=x.sub(z,Q),K=x.mul(X,ee),K=x.add(K,K),K=x.add(K,K),new I(z,Z,K)}add(D){L(D);const{px:B,py:j,pz:H}=this,{px:U,py:$,pz:z}=D;let Z=x.ZERO,K=x.ZERO,Q=x.ZERO;const ee=S.a,X=x.mul(S.b,h);let te=x.mul(B,U),J=x.mul(j,$),ne=x.mul(H,z),ie=x.add(B,j),he=x.add(U,$);ie=x.mul(ie,he),he=x.add(te,J),ie=x.sub(ie,he),he=x.add(B,H);let de=x.add(U,z);return he=x.mul(he,de),de=x.add(te,ne),he=x.sub(he,de),de=x.add(j,H),Z=x.add($,z),de=x.mul(de,Z),Z=x.add(J,ne),de=x.sub(de,Z),Q=x.mul(ee,he),Z=x.mul(X,ne),Q=x.add(Z,Q),Z=x.sub(J,Q),Q=x.add(J,Q),K=x.mul(Z,Q),J=x.add(te,te),J=x.add(J,te),ne=x.mul(ee,ne),he=x.mul(X,he),J=x.add(J,ne),ne=x.sub(te,ne),ne=x.mul(ee,ne),he=x.add(he,ne),te=x.mul(J,he),K=x.add(K,te),te=x.mul(de,he),Z=x.mul(ie,Z),Z=x.sub(Z,te),te=x.mul(ie,J),Q=x.mul(de,Q),Q=x.add(Q,te),new I(Z,K,Q)}subtract(D){return this.add(D.negate())}is0(){return this.equals(I.ZERO)}wNAF(D){return T.wNAFCached(this,N,D,B=>{const j=x.invertBatch(B.map(H=>H.pz));return B.map((H,U)=>H.toAffine(j[U])).map(I.fromAffine)})}multiplyUnsafe(D){const B=I.ZERO;if(D===c)return B;if(k(D),D===u)return this;const{endo:j}=S;if(!j)return T.unsafeLadder(this,D);let{k1neg:H,k1:U,k2neg:$,k2:z}=j.splitScalar(D),Z=B,K=B,Q=this;for(;U>c||z>c;)U&u&&(Z=Z.add(Q)),z&u&&(K=K.add(Q)),Q=Q.double(),U>>=u,z>>=u;return H&&(Z=Z.negate()),$&&(K=K.negate()),K=new I(x.mul(K.px,j.beta),K.py,K.pz),Z.add(K)}multiply(D){k(D);let B=D,j,H;const{endo:U}=S;if(U){const{k1neg:$,k1:z,k2neg:Z,k2:K}=U.splitScalar(B);let{p:Q,f:ee}=this.wNAF(z),{p:X,f:te}=this.wNAF(K);Q=T.constTimeNegate($,Q),X=T.constTimeNegate(Z,X),X=new I(x.mul(X.px,U.beta),X.py,X.pz),j=Q.add(X),H=ee.add(te)}else{const{p:$,f:z}=this.wNAF(B);j=$,H=z}return I.normalizeZ([j,H])[0]}multiplyAndAddUnsafe(D,B,j){const H=I.BASE,U=(z,Z)=>Z===c||Z===u||!z.equals(H)?z.multiplyUnsafe(Z):z.multiply(Z),$=U(this,B).add(U(D,j));return $.is0()?void 0:$}toAffine(D){const{px:B,py:j,pz:H}=this,U=this.is0();D==null&&(D=U?x.ONE:x.inv(H));const $=x.mul(B,D),z=x.mul(j,D),Z=x.mul(H,D);if(U)return{x:x.ZERO,y:x.ZERO};if(!x.eql(Z,x.ONE))throw new Error("invZ was invalid");return{x:$,y:z}}isTorsionFree(){const{h:D,isTorsionFree:B}=S;if(D===u)return!0;if(B)return B(I,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:B}=S;return D===u?this:B?B(I,this):this.multiplyUnsafe(S.h)}toRawBytes(D=!0){return this.assertValidity(),w(I,this,D)}toHex(D=!0){return n.bytesToHex(this.toRawBytes(D))}}I.BASE=new I(S.Gx,S.Gy,x.ONE),I.ZERO=new I(x.ZERO,x.ONE,x.ZERO);const b=S.nBitLength,T=(0,a.wNAF)(I,S.endo?Math.ceil(b/2):b);return{CURVE:S,ProjectivePoint:I,normPrivateKeyToScalar:P,weierstrassEquation:C,isWithinCurveOrder:R}}t.weierstrassPoints=p;function m(y){const S=(0,a.validateBasic)(y);return n.validateObject(S,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...S})}function g(y){const S=m(y),{Fp:x,n:w}=S,_=x.BYTES+1,C=2*x.BYTES+1;function R(he){return c<he&&he<x.ORDER}function k(he){return e.mod(he,w)}function P(he){return e.invert(he,w)}const{ProjectivePoint:N,normPrivateKeyToScalar:L,weierstrassEquation:I,isWithinCurveOrder:b}=p({...S,toBytes(he,de,ce){const Ee=de.toAffine(),Me=x.toBytes(Ee.x),Be=n.concatBytes;return ce?Be(Uint8Array.from([de.hasEvenY()?2:3]),Me):Be(Uint8Array.from([4]),Me,x.toBytes(Ee.y))},fromBytes(he){const de=he.length,ce=he[0],Ee=he.subarray(1);if(de===_&&(ce===2||ce===3)){const Me=n.bytesToNumberBE(Ee);if(!R(Me))throw new Error("Point is not on curve");const Be=I(Me);let ze=x.sqrt(Be);const je=(ze&u)===u;return(ce&1)===1!==je&&(ze=x.neg(ze)),{x:Me,y:ze}}else if(de===C&&ce===4){const Me=x.fromBytes(Ee.subarray(0,x.BYTES)),Be=x.fromBytes(Ee.subarray(x.BYTES,2*x.BYTES));return{x:Me,y:Be}}else throw new Error(`Point of length ${de} was invalid. Expected ${_} compressed bytes or ${C} uncompressed bytes`)}}),T=he=>n.bytesToHex(n.numberToBytesBE(he,S.nByteLength));function M(he){const de=w>>u;return he>de}function D(he){return M(he)?k(-he):he}const B=(he,de,ce)=>n.bytesToNumberBE(he.slice(de,ce));class j{constructor(de,ce,Ee){this.r=de,this.s=ce,this.recovery=Ee,this.assertValidity()}static fromCompact(de){const ce=S.nByteLength;return de=(0,r.ensureBytes)("compactSignature",de,ce*2),new j(B(de,0,ce),B(de,ce,2*ce))}static fromDER(de){const{r:ce,s:Ee}=t.DER.toSig((0,r.ensureBytes)("DER",de));return new j(ce,Ee)}assertValidity(){if(!b(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!b(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(de){return new j(this.r,this.s,de)}recoverPublicKey(de){const{r:ce,s:Ee,recovery:Me}=this,Be=K((0,r.ensureBytes)("msgHash",de));if(Me==null||![0,1,2,3].includes(Me))throw new Error("recovery id invalid");const ze=Me===2||Me===3?ce+S.n:ce;if(ze>=x.ORDER)throw new Error("recovery id 2 or 3 invalid");const je=Me&1?"03":"02",ye=N.fromHex(je+T(ze)),me=P(ze),le=k(-Be*me),pe=k(Ee*me),Ne=N.BASE.multiplyAndAddUnsafe(ye,le,pe);if(!Ne)throw new Error("point at infinify");return Ne.assertValidity(),Ne}hasHighS(){return M(this.s)}normalizeS(){return this.hasHighS()?new j(this.r,k(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return T(this.r)+T(this.s)}}const H={isValidPrivateKey(he){try{return L(he),!0}catch{return!1}},normPrivateKeyToScalar:L,randomPrivateKey:()=>{const he=e.getMinHashLength(S.n);return e.mapHashToField(S.randomBytes(he),S.n)},precompute(he=8,de=N.BASE){return de._setWindowSize(he),de.multiply(BigInt(3)),de}};function U(he,de=!0){return N.fromPrivateKey(he).toRawBytes(de)}function $(he){const de=he instanceof Uint8Array,ce=typeof he=="string",Ee=(de||ce)&&he.length;return de?Ee===_||Ee===C:ce?Ee===2*_||Ee===2*C:he instanceof N}function z(he,de,ce=!0){if($(he))throw new Error("first arg must be private key");if(!$(de))throw new Error("second arg must be public key");return N.fromHex(de).multiply(L(he)).toRawBytes(ce)}const Z=S.bits2int||function(he){const de=n.bytesToNumberBE(he),ce=he.length*8-S.nBitLength;return ce>0?de>>BigInt(ce):de},K=S.bits2int_modN||function(he){return k(Z(he))},Q=n.bitMask(S.nBitLength);function ee(he){if(typeof he!="bigint")throw new Error("bigint expected");if(!(c<=he&&he<Q))throw new Error(`bigint expected < 2^${S.nBitLength}`);return n.numberToBytesBE(he,S.nByteLength)}function X(he,de,ce=te){if(["recovered","canonical"].some(ue=>ue in ce))throw new Error("sign() legacy options not supported");const{hash:Ee,randomBytes:Me}=S;let{lowS:Be,prehash:ze,extraEntropy:je}=ce;Be==null&&(Be=!0),he=(0,r.ensureBytes)("msgHash",he),ze&&(he=(0,r.ensureBytes)("prehashed msgHash",Ee(he)));const ye=K(he),me=L(de),le=[ee(me),ee(ye)];if(je!=null){const ue=je===!0?Me(x.BYTES):je;le.push((0,r.ensureBytes)("extraEntropy",ue))}const pe=n.concatBytes(...le),Ne=ye;function _e(ue){const se=Z(ue);if(!b(se))return;const oe=P(se),ge=N.BASE.multiply(se).toAffine(),De=k(ge.x);if(De===c)return;const Fe=k(oe*k(Ne+De*me));if(Fe===c)return;let Se=(ge.x===De?0:2)|Number(ge.y&u),Xe=Fe;return Be&&M(Fe)&&(Xe=D(Fe),Se^=1),new j(De,Xe,Se)}return{seed:pe,k2sig:_e}}const te={lowS:S.lowS,prehash:!1},J={lowS:S.lowS,prehash:!1};function ne(he,de,ce=te){const{seed:Ee,k2sig:Me}=X(he,de,ce),Be=S;return n.createHmacDrbg(Be.hash.outputLen,Be.nByteLength,Be.hmac)(Ee,Me)}N.BASE._setWindowSize(8);function ie(he,de,ce,Ee=J){var ge;const Me=he;if(de=(0,r.ensureBytes)("msgHash",de),ce=(0,r.ensureBytes)("publicKey",ce),"strict"in Ee)throw new Error("options.strict was renamed to lowS");const{lowS:Be,prehash:ze}=Ee;let je,ye;try{if(typeof Me=="string"||Me instanceof Uint8Array)try{je=j.fromDER(Me)}catch(De){if(!(De instanceof t.DER.Err))throw De;je=j.fromCompact(Me)}else if(typeof Me=="object"&&typeof Me.r=="bigint"&&typeof Me.s=="bigint"){const{r:De,s:Fe}=Me;je=new j(De,Fe)}else throw new Error("PARSE");ye=N.fromHex(ce)}catch(De){if(De.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Be&&je.hasHighS())return!1;ze&&(de=S.hash(de));const{r:me,s:le}=je,pe=K(de),Ne=P(le),_e=k(pe*Ne),ue=k(me*Ne),se=(ge=N.BASE.multiplyAndAddUnsafe(ye,_e,ue))==null?void 0:ge.toAffine();return se?k(se.x)===me:!1}return{CURVE:S,getPublicKey:U,getSharedSecret:z,sign:ne,verify:ie,ProjectivePoint:N,Signature:j,utils:H}}t.weierstrass=g;function v(y,S){const x=y.ORDER;let w=c;for(let M=x-u;M%d===c;M/=d)w+=u;const _=w,C=d<<_-u-u,R=C*d,k=(x-u)/R,P=(k-u)/d,N=R-u,L=C,I=y.pow(S,k),b=y.pow(S,(k+u)/d);let T=(M,D)=>{let B=I,j=y.pow(D,N),H=y.sqr(j);H=y.mul(H,D);let U=y.mul(M,H);U=y.pow(U,P),U=y.mul(U,j),j=y.mul(U,D),H=y.mul(U,M);let $=y.mul(H,j);U=y.pow($,L);let z=y.eql(U,y.ONE);j=y.mul(H,b),U=y.mul($,B),H=y.cmov(j,H,z),$=y.cmov(U,$,z);for(let Z=_;Z>u;Z--){let K=Z-d;K=d<<K-u;let Q=y.pow($,K);const ee=y.eql(Q,y.ONE);j=y.mul(H,B),B=y.mul(B,B),Q=y.mul($,B),H=y.cmov(j,H,ee),$=y.cmov(Q,$,ee)}return{isValid:z,value:H}};if(y.ORDER%f===h){const M=(y.ORDER-h)/f,D=y.sqrt(y.neg(S));T=(B,j)=>{let H=y.sqr(j);const U=y.mul(B,j);H=y.mul(H,U);let $=y.pow(H,M);$=y.mul($,U);const z=y.mul($,D),Z=y.mul(y.sqr($),j),K=y.eql(Z,B);let Q=y.cmov(z,$,K);return{isValid:K,value:Q}}}return T}t.SWUFpSqrtRatio=v;function A(y,S){if(e.validateField(y),!y.isValid(S.A)||!y.isValid(S.B)||!y.isValid(S.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const x=v(y,S.Z);if(!y.isOdd)throw new Error("Fp.isOdd is not implemented!");return w=>{let _,C,R,k,P,N,L,I;_=y.sqr(w),_=y.mul(_,S.Z),C=y.sqr(_),C=y.add(C,_),R=y.add(C,y.ONE),R=y.mul(R,S.B),k=y.cmov(S.Z,y.neg(C),!y.eql(C,y.ZERO)),k=y.mul(k,S.A),C=y.sqr(R),N=y.sqr(k),P=y.mul(N,S.A),C=y.add(C,P),C=y.mul(C,R),N=y.mul(N,k),P=y.mul(N,S.B),C=y.add(C,P),L=y.mul(_,R);const{isValid:b,value:T}=x(C,N);I=y.mul(_,w),I=y.mul(I,T),L=y.cmov(L,R,b),I=y.cmov(I,T,b);const M=y.isOdd(w)===y.isOdd(I);return I=y.cmov(y.neg(I),I,M),L=y.div(L,k),{x:L,y:I}}}t.mapToCurveSimpleSWU=A}(F$e)),F$e}var ey={},R$t;function CKo(){if(R$t)return ey;R$t=1,Object.defineProperty(ey,"__esModule",{value:!0}),ey.createHasher=ey.isogenyMap=ey.hash_to_field=ey.expand_message_xof=ey.expand_message_xmd=void 0;const t=ICe(),e=Tz();function n(p){if(p instanceof Uint8Array)return p;if(typeof p=="string")return(0,e.utf8ToBytes)(p);throw new Error("DST must be Uint8Array or string")}const r=e.bytesToNumberBE;function a(p,m){if(p<0||p>=1<<8*m)throw new Error(`bad I2OSP call: value=${p} length=${m}`);const g=Array.from({length:m}).fill(0);for(let v=m-1;v>=0;v--)g[v]=p&255,p>>>=8;return new Uint8Array(g)}function o(p,m){const g=new Uint8Array(p.length);for(let v=0;v<p.length;v++)g[v]=p[v]^m[v];return g}function s(p){if(!(p instanceof Uint8Array))throw new Error("Uint8Array expected")}function l(p){if(!Number.isSafeInteger(p))throw new Error("number expected")}function c(p,m,g,v){s(p),s(m),l(g),m.length>255&&(m=v((0,e.concatBytes)((0,e.utf8ToBytes)("H2C-OVERSIZE-DST-"),m)));const{outputLen:A,blockLen:y}=v,S=Math.ceil(g/A);if(S>255)throw new Error("Invalid xmd length");const x=(0,e.concatBytes)(m,a(m.length,1)),w=a(0,y),_=a(g,2),C=new Array(S),R=v((0,e.concatBytes)(w,p,_,a(0,1),x));C[0]=v((0,e.concatBytes)(R,a(1,1),x));for(let P=1;P<=S;P++){const N=[o(R,C[P-1]),a(P+1,1),x];C[P]=v((0,e.concatBytes)(...N))}return(0,e.concatBytes)(...C).slice(0,g)}ey.expand_message_xmd=c;function u(p,m,g,v,A){if(s(p),s(m),l(g),m.length>255){const y=Math.ceil(2*v/8);m=A.create({dkLen:y}).update((0,e.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(m).digest()}if(g>65535||m.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return A.create({dkLen:g}).update(p).update(a(g,2)).update(m).update(a(m.length,1)).digest()}ey.expand_message_xof=u;function d(p,m,g){(0,e.validateObject)(g,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:v,k:A,m:y,hash:S,expand:x,DST:w}=g;s(p),l(m);const _=n(w),C=v.toString(2).length,R=Math.ceil((C+A)/8),k=m*y*R;let P;if(x==="xmd")P=c(p,_,k,S);else if(x==="xof")P=u(p,_,k,A,S);else if(x==="_internal_pass")P=p;else throw new Error('expand must be "xmd" or "xof"');const N=new Array(m);for(let L=0;L<m;L++){const I=new Array(y);for(let b=0;b<y;b++){const T=R*(b+L*y),M=P.subarray(T,T+R);I[b]=(0,t.mod)(r(M),v)}N[L]=I}return N}ey.hash_to_field=d;function h(p,m){const g=m.map(v=>Array.from(v).reverse());return(v,A)=>{const[y,S,x,w]=g.map(_=>_.reduce((C,R)=>p.add(p.mul(C,v),R)));return v=p.div(y,S),A=p.mul(A,p.div(x,w)),{x:v,y:A}}}ey.isogenyMap=h;function f(p,m,g){if(typeof m!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(v,A){const y=d(v,2,{...g,DST:g.DST,...A}),S=p.fromAffine(m(y[0])),x=p.fromAffine(m(y[1])),w=S.add(x).clearCofactor();return w.assertValidity(),w},encodeToCurve(v,A){const y=d(v,1,{...g,DST:g.encodeDST,...A}),S=p.fromAffine(m(y[0])).clearCofactor();return S.assertValidity(),S}}}return ey.createHasher=f,ey}var vL={},M$t;function kKo(){if(M$t)return vL;M$t=1,Object.defineProperty(vL,"__esModule",{value:!0}),vL.createCurve=vL.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=Put(),e=PC(),n=dJn();function r(o){return{hash:o,hmac:(s,...l)=>(0,t.hmac)(o,s,(0,e.concatBytes)(...l)),randomBytes:e.randomBytes}}vL.getHash=r;function a(o,s){const l=c=>(0,n.weierstrass)({...o,...r(c)});return Object.freeze({...l(s),create:l})}return vL.createCurve=a,vL}var N$t;function RKo(){return N$t||(N$t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Lut(),n=PC(),r=ICe(),a=dJn(),o=Tz(),s=CKo(),l=kKo(),c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),h=BigInt(2),f=(j,H)=>(j+H/h)/H;function p(j){const H=c,U=BigInt(3),$=BigInt(6),z=BigInt(11),Z=BigInt(22),K=BigInt(23),Q=BigInt(44),ee=BigInt(88),X=j*j*j%H,te=X*X*j%H,J=(0,r.pow2)(te,U,H)*te%H,ne=(0,r.pow2)(J,U,H)*te%H,ie=(0,r.pow2)(ne,h,H)*X%H,he=(0,r.pow2)(ie,z,H)*ie%H,de=(0,r.pow2)(he,Z,H)*he%H,ce=(0,r.pow2)(de,Q,H)*de%H,Ee=(0,r.pow2)(ce,ee,H)*ce%H,Me=(0,r.pow2)(Ee,Q,H)*de%H,Be=(0,r.pow2)(Me,U,H)*te%H,ze=(0,r.pow2)(Be,K,H)*he%H,je=(0,r.pow2)(ze,$,H)*X%H,ye=(0,r.pow2)(je,h,H);if(!m.eql(m.sqr(ye),j))throw new Error("Cannot find square root");return ye}const m=(0,r.Field)(c,void 0,void 0,{sqrt:p});t.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:u,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:j=>{const H=u,U=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),$=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),z=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Z=U,K=BigInt("0x100000000000000000000000000000000"),Q=f(Z*j,H),ee=f(-$*j,H);let X=(0,r.mod)(j-Q*U-ee*z,H),te=(0,r.mod)(-Q*$-ee*Z,H);const J=X>K,ne=te>K;if(J&&(X=H-X),ne&&(te=H-te),X>K||te>K)throw new Error("splitScalar: Endomorphism failed, k="+j);return{k1neg:J,k1:X,k2neg:ne,k2:te}}}},e.sha256);const g=BigInt(0),v=j=>typeof j=="bigint"&&g<j&&j<c,A=j=>typeof j=="bigint"&&g<j&&j<u,y={};function S(j,...H){let U=y[j];if(U===void 0){const $=(0,e.sha256)(Uint8Array.from(j,z=>z.charCodeAt(0)));U=(0,o.concatBytes)($,$),y[j]=U}return(0,e.sha256)((0,o.concatBytes)(U,...H))}const x=j=>j.toRawBytes(!0).slice(1),w=j=>(0,o.numberToBytesBE)(j,32),_=j=>(0,r.mod)(j,c),C=j=>(0,r.mod)(j,u),R=t.secp256k1.ProjectivePoint,k=(j,H,U)=>R.BASE.multiplyAndAddUnsafe(j,H,U);function P(j){let H=t.secp256k1.utils.normPrivateKeyToScalar(j),U=R.fromPrivateKey(H);return{scalar:U.hasEvenY()?H:C(-H),bytes:x(U)}}function N(j){if(!v(j))throw new Error("bad x: need 0 < x < p");const H=_(j*j),U=_(H*j+BigInt(7));let $=p(U);$%h!==g&&($=_(-$));const z=new R(j,$,d);return z.assertValidity(),z}function L(...j){return C((0,o.bytesToNumberBE)(S("BIP0340/challenge",...j)))}function I(j){return P(j).bytes}function b(j,H,U=(0,n.randomBytes)(32)){const $=(0,o.ensureBytes)("message",j),{bytes:z,scalar:Z}=P(H),K=(0,o.ensureBytes)("auxRand",U,32),Q=w(Z^(0,o.bytesToNumberBE)(S("BIP0340/aux",K))),ee=S("BIP0340/nonce",Q,z,$),X=C((0,o.bytesToNumberBE)(ee));if(X===g)throw new Error("sign failed: k is zero");const{bytes:te,scalar:J}=P(X),ne=L(te,z,$),ie=new Uint8Array(64);if(ie.set(te,0),ie.set(w(C(J+ne*Z)),32),!T(ie,$,z))throw new Error("sign: Invalid signature produced");return ie}function T(j,H,U){const $=(0,o.ensureBytes)("signature",j,64),z=(0,o.ensureBytes)("message",H),Z=(0,o.ensureBytes)("publicKey",U,32);try{const K=N((0,o.bytesToNumberBE)(Z)),Q=(0,o.bytesToNumberBE)($.subarray(0,32));if(!v(Q))return!1;const ee=(0,o.bytesToNumberBE)($.subarray(32,64));if(!A(ee))return!1;const X=L(w(Q),x(K),z),te=k(K,ee,C(-X));return!(!te||!te.hasEvenY()||te.toAffine().x!==Q)}catch{return!1}}t.schnorr=(()=>({getPublicKey:I,sign:b,verify:T,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:N,pointToBytes:x,numberToBytesBE:o.numberToBytesBE,bytesToNumberBE:o.bytesToNumberBE,taggedHash:S,mod:r.mod}}))();const M=(()=>(0,s.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(j=>j.map(H=>BigInt(H)))))(),D=(()=>(0,a.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),B=(()=>(0,s.createHasher)(t.secp256k1.ProjectivePoint,j=>{const{x:H,y:U}=D(m.create(j[0]));return M(H,U)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:e.sha256}))();t.hashToCurve=(()=>B.hashToCurve)(),t.encodeToCurve=(()=>B.encodeToCurve)()}($$e)),$$e}var FY={},j$e={},jY={},I$t;function hJn(){return I$t||(I$t=1,Object.defineProperty(jY,"__esModule",{value:!0}),jY.ZeroAddress=void 0,jY.ZeroAddress="0x0000000000000000000000000000000000000000"),jY}var HY={},P$t;function MKo(){return P$t||(P$t=1,Object.defineProperty(HY,"__esModule",{value:!0}),HY.ZeroHash=void 0,HY.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"),HY}var ty={},O$t;function NKo(){return O$t||(O$t=1,Object.defineProperty(ty,"__esModule",{value:!0}),ty.MaxInt256=ty.MinInt256=ty.MaxUint256=ty.WeiPerEther=ty.N=void 0,ty.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ty.WeiPerEther=BigInt("1000000000000000000"),ty.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),ty.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),ty.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),ty}var AL={},L$t;function IKo(){return L$t||(L$t=1,Object.defineProperty(AL,"__esModule",{value:!0}),AL.MessagePrefix=AL.EtherSymbol=void 0,AL.EtherSymbol="Ξ",AL.MessagePrefix=`Ethereum Signed Message:
`),AL}var B$t;function Xse(){return B$t||(B$t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var e=hJn();Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return e.ZeroAddress}});var n=MKo();Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return n.ZeroHash}});var r=NKo();Object.defineProperty(t,"N",{enumerable:!0,get:function(){return r.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return r.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return r.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return r.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return r.MaxInt256}});var a=IKo();Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return a.MessagePrefix}})}(j$e)),j$e}var D$t;function fJn(){var h,f,p,m;if(D$t)return FY;D$t=1,Object.defineProperty(FY,"__esModule",{value:!0}),FY.Signature=void 0;const t=Xse(),e=Oi(),n=BigInt(0),r=BigInt(1),a=BigInt(2),o=BigInt(27),s=BigInt(28),l=BigInt(35),c={};function u(v){return(0,e.zeroPadValue)((0,e.toBeArray)(v),32)}const g=class g{constructor(A,y,S,x){Wt(this,h,void 0);Wt(this,f,void 0);Wt(this,p,void 0);Wt(this,m,void 0);(0,e.assertPrivate)(A,c,"Signature"),tt(this,h,y),tt(this,f,S),tt(this,p,x),tt(this,m,null)}get r(){return Le(this,h)}set r(A){(0,e.assertArgument)((0,e.dataLength)(A)===32,"invalid r","value",A),tt(this,h,(0,e.hexlify)(A))}get s(){return Le(this,f)}set s(A){(0,e.assertArgument)((0,e.dataLength)(A)===32,"invalid s","value",A);const y=(0,e.hexlify)(A);(0,e.assertArgument)(parseInt(y.substring(0,3))<8,"non-canonical s","value",y),tt(this,f,y)}get v(){return Le(this,p)}set v(A){const y=(0,e.getNumber)(A,"value");(0,e.assertArgument)(y===27||y===28,"invalid v","v",A),tt(this,p,y)}get networkV(){return Le(this,m)}get legacyChainId(){const A=this.networkV;return A==null?null:g.getChainId(A)}get yParity(){return this.v===27?0:1}get yParityAndS(){const A=(0,e.getBytes)(this.s);return this.yParity&&(A[0]|=128),(0,e.hexlify)(A)}get compactSerialized(){return(0,e.concat)([this.r,this.yParityAndS])}get serialized(){return(0,e.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const A=new g(c,this.r,this.s,this.v);return this.networkV&&tt(A,m,this.networkV),A}toJSON(){const A=this.networkV;return{_type:"signature",networkV:A!=null?A.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(A){const y=(0,e.getBigInt)(A,"v");return y==o||y==s?n:((0,e.assertArgument)(y>=l,"invalid EIP-155 v","v",A),(y-l)/a)}static getChainIdV(A,y){return(0,e.getBigInt)(A)*a+BigInt(35+y-27)}static getNormalizedV(A){const y=(0,e.getBigInt)(A);return y===n||y===o?27:y===r||y===s?28:((0,e.assertArgument)(y>=l,"invalid v","v",A),y&r?27:28)}static from(A){function y(k,P){(0,e.assertArgument)(k,P,"signature",A)}if(A==null)return new g(c,t.ZeroHash,t.ZeroHash,27);if(typeof A=="string"){const k=(0,e.getBytes)(A,"signature");if(k.length===64){const P=(0,e.hexlify)(k.slice(0,32)),N=k.slice(32,64),L=N[0]&128?28:27;return N[0]&=127,new g(c,P,(0,e.hexlify)(N),L)}if(k.length===65){const P=(0,e.hexlify)(k.slice(0,32)),N=k.slice(32,64);y((N[0]&128)===0,"non-canonical s");const L=g.getNormalizedV(k[64]);return new g(c,P,(0,e.hexlify)(N),L)}y(!1,"invalid raw signature length")}if(A instanceof g)return A.clone();const S=A.r;y(S!=null,"missing r");const x=u(S),w=function(k,P){if(k!=null)return u(k);if(P!=null){y((0,e.isHexString)(P,32),"invalid yParityAndS");const N=(0,e.getBytes)(P);return N[0]&=127,(0,e.hexlify)(N)}y(!1,"missing s")}(A.s,A.yParityAndS);y(((0,e.getBytes)(w)[0]&128)==0,"non-canonical s");const{networkV:_,v:C}=function(k,P,N){if(k!=null){const L=(0,e.getBigInt)(k);return{networkV:L>=l?L:void 0,v:g.getNormalizedV(L)}}if(P!=null)return y((0,e.isHexString)(P,32),"invalid yParityAndS"),{v:(0,e.getBytes)(P)[0]&128?28:27};if(N!=null){switch((0,e.getNumber)(N,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}y(!1,"invalid yParity")}y(!1,"missing v")}(A.v,A.yParityAndS,A.yParity),R=new g(c,x,w,C);return _&&tt(R,m,_),y(A.yParity==null||(0,e.getNumber)(A.yParity,"sig.yParity")===R.yParity,"yParity mismatch"),y(A.yParityAndS==null||A.yParityAndS===R.yParityAndS,"yParityAndS mismatch"),R}};h=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap;let d=g;return FY.Signature=d,FY}var $$t;function PKo(){var a;if($$t)return $Y;$$t=1,Object.defineProperty($Y,"__esModule",{value:!0}),$Y.SigningKey=void 0;const t=RKo(),e=Oi(),n=fJn(),o=class o{constructor(l){Wt(this,a,void 0);(0,e.assertArgument)((0,e.dataLength)(l)===32,"invalid private key","privateKey","[REDACTED]"),tt(this,a,(0,e.hexlify)(l))}get privateKey(){return Le(this,a)}get publicKey(){return o.computePublicKey(Le(this,a))}get compressedPublicKey(){return o.computePublicKey(Le(this,a),!0)}sign(l){(0,e.assertArgument)((0,e.dataLength)(l)===32,"invalid digest length","digest",l);const c=t.secp256k1.sign((0,e.getBytesCopy)(l),(0,e.getBytesCopy)(Le(this,a)),{lowS:!0});return n.Signature.from({r:(0,e.toBeHex)(c.r,32),s:(0,e.toBeHex)(c.s,32),v:c.recovery?28:27})}computeSharedSecret(l){const c=o.computePublicKey(l);return(0,e.hexlify)(t.secp256k1.getSharedSecret((0,e.getBytesCopy)(Le(this,a)),(0,e.getBytes)(c),!1))}static computePublicKey(l,c){let u=(0,e.getBytes)(l,"key");if(u.length===32){const h=t.secp256k1.getPublicKey(u,!!c);return(0,e.hexlify)(h)}if(u.length===64){const h=new Uint8Array(65);h[0]=4,h.set(u,1),u=h}const d=t.secp256k1.ProjectivePoint.fromHex(u);return(0,e.hexlify)(d.toRawBytes(c))}static recoverPublicKey(l,c){(0,e.assertArgument)((0,e.dataLength)(l)===32,"invalid digest length","digest",l);const u=n.Signature.from(c);let d=t.secp256k1.Signature.fromCompact((0,e.getBytesCopy)((0,e.concat)([u.r,u.s])));d=d.addRecoveryBit(u.yParity);const h=d.recoverPublicKey((0,e.getBytesCopy)(l));return(0,e.assertArgument)(h!=null,"invalid signautre for digest","signature",c),"0x"+h.toHex(!1)}static addPoints(l,c,u){const d=t.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(l).substring(2)),h=t.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(c).substring(2));return"0x"+d.add(h).toHex(!!u)}};a=new WeakMap;let r=o;return $Y.SigningKey=r,$Y}var F$t;function bg(){return F$t||(F$t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const e=gKo();Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return e.computeHmac}});const n=AKo();Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return n.keccak256}});const r=bKo();Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return r.ripemd160}});const a=xKo();Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return a.pbkdf2}});const o=EKo();Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return o.randomBytes}});const s=wKo();Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return s.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return s.scryptSync}});const l=_Ko();Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}});var c=PKo();Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var u=fJn();Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return u.Signature}});function d(){e.computeHmac.lock(),n.keccak256.lock(),a.pbkdf2.lock(),o.randomBytes.lock(),r.ripemd160.lock(),s.scrypt.lock(),s.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),o.randomBytes.lock()}t.lock=d}(L$e)),L$e}var j$t;function But(){if(j$t)return cL;j$t=1,Object.defineProperty(cL,"__esModule",{value:!0}),cL.getIcapAddress=cL.getAddress=void 0;const t=bg(),e=Oi(),n=BigInt(0),r=BigInt(36);function a(f){f=f.toLowerCase();const p=f.substring(2).split(""),m=new Uint8Array(40);for(let v=0;v<40;v++)m[v]=p[v].charCodeAt(0);const g=(0,e.getBytes)((0,t.keccak256)(m));for(let v=0;v<40;v+=2)g[v>>1]>>4>=8&&(p[v]=p[v].toUpperCase()),(g[v>>1]&15)>=8&&(p[v+1]=p[v+1].toUpperCase());return"0x"+p.join("")}const o={};for(let f=0;f<10;f++)o[String(f)]=String(f);for(let f=0;f<26;f++)o[String.fromCharCode(65+f)]=String(10+f);const s=15;function l(f){f=f.toUpperCase(),f=f.substring(4)+f.substring(0,2)+"00";let p=f.split("").map(g=>o[g]).join("");for(;p.length>=s;){let g=p.substring(0,s);p=parseInt(g,10)%97+p.substring(g.length)}let m=String(98-parseInt(p,10)%97);for(;m.length<2;)m="0"+m;return m}const c=function(){const f={};for(let p=0;p<36;p++){const m="0123456789abcdefghijklmnopqrstuvwxyz"[p];f[m]=BigInt(p)}return f}();function u(f){f=f.toLowerCase();let p=n;for(let m=0;m<f.length;m++)p=p*r+c[f[m]];return p}function d(f){if((0,e.assertArgument)(typeof f=="string","invalid address","address",f),f.match(/^(0x)?[0-9a-fA-F]{40}$/)){f.startsWith("0x")||(f="0x"+f);const p=a(f);return(0,e.assertArgument)(!f.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||p===f,"bad address checksum","address",f),p}if(f.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,e.assertArgument)(f.substring(2,4)===l(f),"bad icap checksum","address",f);let p=u(f.substring(4)).toString(16);for(;p.length<40;)p="0"+p;return a("0x"+p)}(0,e.assertArgument)(!1,"invalid address","address",f)}cL.getAddress=d;function h(f){let p=BigInt(d(f)).toString(36).toUpperCase();for(;p.length<30;)p="0"+p;return"XE"+l("XE00"+p)+p}return cL.getIcapAddress=h,cL}var yL={},H$t;function OKo(){if(H$t)return yL;H$t=1,Object.defineProperty(yL,"__esModule",{value:!0}),yL.getCreate2Address=yL.getCreateAddress=void 0;const t=bg(),e=Oi(),n=But();function r(o){const s=(0,n.getAddress)(o.from);let c=(0,e.getBigInt)(o.nonce,"tx.nonce").toString(16);return c==="0"?c="0x":c.length%2?c="0x0"+c:c="0x"+c,(0,n.getAddress)((0,e.dataSlice)((0,t.keccak256)((0,e.encodeRlp)([s,c])),12))}yL.getCreateAddress=r;function a(o,s,l){const c=(0,n.getAddress)(o),u=(0,e.getBytes)(s,"salt"),d=(0,e.getBytes)(l,"initCodeHash");return(0,e.assertArgument)(u.length===32,"salt must be 32 bytes","salt",s),(0,e.assertArgument)(d.length===32,"initCodeHash must be 32 bytes","initCodeHash",l),(0,n.getAddress)((0,e.dataSlice)((0,t.keccak256)((0,e.concat)(["0xff",c,u,d])),12))}return yL.getCreate2Address=a,yL}var Gk={},U$t;function LKo(){if(U$t)return Gk;U$t=1,Object.defineProperty(Gk,"__esModule",{value:!0}),Gk.resolveAddress=Gk.isAddress=Gk.isAddressable=void 0;const t=Oi(),e=But();function n(s){return s&&typeof s.getAddress=="function"}Gk.isAddressable=n;function r(s){try{return(0,e.getAddress)(s),!0}catch{}return!1}Gk.isAddress=r;async function a(s,l){const c=await l;return(c==null||c==="0x0000000000000000000000000000000000000000")&&((0,t.assert)(typeof s!="string","unconfigured name","UNCONFIGURED_NAME",{value:s}),(0,t.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",s)),(0,e.getAddress)(c)}function o(s,l){if(typeof s=="string")return s.match(/^0x[0-9a-f]{40}$/i)?(0,e.getAddress)(s):((0,t.assert)(l!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),a(s,l.resolveName(s)));if(n(s))return a(s,s.getAddress());if(s&&typeof s.then=="function")return a(s,s);(0,t.assertArgument)(!1,"unsupported addressable value","target",s)}return Gk.resolveAddress=o,Gk}var z$t;function Am(){return z$t||(z$t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var e=But();Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return e.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return e.getIcapAddress}});var n=OKo();Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return n.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return n.getCreate2Address}});var r=LKo();Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return r.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return r.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return r.resolveAddress}})}(O$e)),O$e}var UY={},G$t;function TN(){var s;if(G$t)return UY;G$t=1,Object.defineProperty(UY,"__esModule",{value:!0}),UY.Typed=void 0;const t=Oi(),e={};function n(c,u){let d=!1;return u<0&&(d=!0,u*=-1),new o(e,`${d?"":"u"}int${u}`,c,{signed:d,width:u})}function r(c,u){return new o(e,`bytes${u||""}`,c,{size:u})}const a=Symbol.for("_ethers_typed"),l=class l{constructor(u,d,h,f){Ut(this,"type");Ut(this,"value");Wt(this,s,void 0);Ut(this,"_typedSymbol");f==null&&(f=null),(0,t.assertPrivate)(e,u,"Typed"),(0,t.defineProperties)(this,{_typedSymbol:a,type:d,value:h}),tt(this,s,f),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(u=>u.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return Le(this,s)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return Le(this,s)===!0?-1:Le(this,s)===!1?this.value.length:null}static from(u,d){return new l(e,u,d)}static uint8(u){return n(u,8)}static uint16(u){return n(u,16)}static uint24(u){return n(u,24)}static uint32(u){return n(u,32)}static uint40(u){return n(u,40)}static uint48(u){return n(u,48)}static uint56(u){return n(u,56)}static uint64(u){return n(u,64)}static uint72(u){return n(u,72)}static uint80(u){return n(u,80)}static uint88(u){return n(u,88)}static uint96(u){return n(u,96)}static uint104(u){return n(u,104)}static uint112(u){return n(u,112)}static uint120(u){return n(u,120)}static uint128(u){return n(u,128)}static uint136(u){return n(u,136)}static uint144(u){return n(u,144)}static uint152(u){return n(u,152)}static uint160(u){return n(u,160)}static uint168(u){return n(u,168)}static uint176(u){return n(u,176)}static uint184(u){return n(u,184)}static uint192(u){return n(u,192)}static uint200(u){return n(u,200)}static uint208(u){return n(u,208)}static uint216(u){return n(u,216)}static uint224(u){return n(u,224)}static uint232(u){return n(u,232)}static uint240(u){return n(u,240)}static uint248(u){return n(u,248)}static uint256(u){return n(u,256)}static uint(u){return n(u,256)}static int8(u){return n(u,-8)}static int16(u){return n(u,-16)}static int24(u){return n(u,-24)}static int32(u){return n(u,-32)}static int40(u){return n(u,-40)}static int48(u){return n(u,-48)}static int56(u){return n(u,-56)}static int64(u){return n(u,-64)}static int72(u){return n(u,-72)}static int80(u){return n(u,-80)}static int88(u){return n(u,-88)}static int96(u){return n(u,-96)}static int104(u){return n(u,-104)}static int112(u){return n(u,-112)}static int120(u){return n(u,-120)}static int128(u){return n(u,-128)}static int136(u){return n(u,-136)}static int144(u){return n(u,-144)}static int152(u){return n(u,-152)}static int160(u){return n(u,-160)}static int168(u){return n(u,-168)}static int176(u){return n(u,-176)}static int184(u){return n(u,-184)}static int192(u){return n(u,-192)}static int200(u){return n(u,-200)}static int208(u){return n(u,-208)}static int216(u){return n(u,-216)}static int224(u){return n(u,-224)}static int232(u){return n(u,-232)}static int240(u){return n(u,-240)}static int248(u){return n(u,-248)}static int256(u){return n(u,-256)}static int(u){return n(u,-256)}static bytes1(u){return r(u,1)}static bytes2(u){return r(u,2)}static bytes3(u){return r(u,3)}static bytes4(u){return r(u,4)}static bytes5(u){return r(u,5)}static bytes6(u){return r(u,6)}static bytes7(u){return r(u,7)}static bytes8(u){return r(u,8)}static bytes9(u){return r(u,9)}static bytes10(u){return r(u,10)}static bytes11(u){return r(u,11)}static bytes12(u){return r(u,12)}static bytes13(u){return r(u,13)}static bytes14(u){return r(u,14)}static bytes15(u){return r(u,15)}static bytes16(u){return r(u,16)}static bytes17(u){return r(u,17)}static bytes18(u){return r(u,18)}static bytes19(u){return r(u,19)}static bytes20(u){return r(u,20)}static bytes21(u){return r(u,21)}static bytes22(u){return r(u,22)}static bytes23(u){return r(u,23)}static bytes24(u){return r(u,24)}static bytes25(u){return r(u,25)}static bytes26(u){return r(u,26)}static bytes27(u){return r(u,27)}static bytes28(u){return r(u,28)}static bytes29(u){return r(u,29)}static bytes30(u){return r(u,30)}static bytes31(u){return r(u,31)}static bytes32(u){return r(u,32)}static address(u){return new l(e,"address",u)}static bool(u){return new l(e,"bool",!!u)}static bytes(u){return new l(e,"bytes",u)}static string(u){return new l(e,"string",u)}static array(u,d){throw new Error("not implemented yet")}static tuple(u,d){throw new Error("not implemented yet")}static overrides(u){return new l(e,"overrides",Object.assign({},u))}static isTyped(u){return u&&typeof u=="object"&&"_typedSymbol"in u&&u._typedSymbol===a}static dereference(u,d){if(l.isTyped(u)){if(u.type!==d)throw new Error(`invalid type: expecetd ${d}, got ${u.type}`);return u.value}return u}};s=new WeakMap;let o=l;return UY.Typed=o,UY}var V$t;function BKo(){if(V$t)return MY;V$t=1,Object.defineProperty(MY,"__esModule",{value:!0}),MY.AddressCoder=void 0;const t=Am(),e=Jse(),n=TN(),r=o_();class a extends r.Coder{constructor(s){super("address","address",s,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(s,l){let c=n.Typed.dereference(l,"string");try{c=(0,t.getAddress)(c)}catch(u){return this._throwError(u.message,l)}return s.writeValue(c)}decode(s){return(0,t.getAddress)((0,e.toBeHex)(s.readValue(),20))}}return MY.AddressCoder=a,MY}var Vk={},zY={},K$t;function DKo(){if(K$t)return zY;K$t=1,Object.defineProperty(zY,"__esModule",{value:!0}),zY.AnonymousCoder=void 0;const t=o_();class e extends t.Coder{constructor(a){super(a.name,a.type,"_",a.dynamic);Ut(this,"coder");this.coder=a}defaultValue(){return this.coder.defaultValue()}encode(a,o){return this.coder.encode(a,o)}decode(a){return this.coder.decode(a)}}return zY.AnonymousCoder=e,zY}var W$t;function pJn(){if(W$t)return Vk;W$t=1,Object.defineProperty(Vk,"__esModule",{value:!0}),Vk.ArrayCoder=Vk.unpack=Vk.pack=void 0;const t=Oi(),e=TN(),n=o_(),r=DKo();function a(l,c,u){let d=[];if(Array.isArray(u))d=u;else if(u&&typeof u=="object"){let g={};d=c.map(v=>{const A=v.localName;return(0,t.assert)(A,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:v},value:u}),(0,t.assert)(!g[A],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:v},value:u}),g[A]=!0,u[A]})}else(0,t.assertArgument)(!1,"invalid tuple value","tuple",u);(0,t.assertArgument)(c.length===d.length,"types/value length mismatch","tuple",u);let h=new n.Writer,f=new n.Writer,p=[];c.forEach((g,v)=>{let A=d[v];if(g.dynamic){let y=f.length;g.encode(f,A);let S=h.writeUpdatableValue();p.push(x=>{S(x+y)})}else g.encode(h,A)}),p.forEach(g=>{g(h.length)});let m=l.appendWriter(h);return m+=l.appendWriter(f),m}Vk.pack=a;function o(l,c){let u=[],d=[],h=l.subReader(0);return c.forEach(f=>{let p=null;if(f.dynamic){let m=l.readIndex(),g=h.subReader(m);try{p=f.decode(g)}catch(v){if((0,t.isError)(v,"BUFFER_OVERRUN"))throw v;p=v,p.baseType=f.name,p.name=f.localName,p.type=f.type}}else try{p=f.decode(l)}catch(m){if((0,t.isError)(m,"BUFFER_OVERRUN"))throw m;p=m,p.baseType=f.name,p.name=f.localName,p.type=f.type}if(p==null)throw new Error("investigate");u.push(p),d.push(f.localName||null)}),n.Result.fromItems(u,d)}Vk.unpack=o;class s extends n.Coder{constructor(u,d,h){const f=u.type+"["+(d>=0?d:"")+"]",p=d===-1||u.dynamic;super("array",f,h,p);Ut(this,"coder");Ut(this,"length");(0,t.defineProperties)(this,{coder:u,length:d})}defaultValue(){const u=this.coder.defaultValue(),d=[];for(let h=0;h<this.length;h++)d.push(u);return d}encode(u,d){const h=e.Typed.dereference(d,"array");Array.isArray(h)||this._throwError("expected array value",h);let f=this.length;f===-1&&(f=h.length,u.writeValue(h.length)),(0,t.assertArgumentCount)(h.length,f,"coder array"+(this.localName?" "+this.localName:""));let p=[];for(let m=0;m<h.length;m++)p.push(this.coder);return a(u,p,h)}decode(u){let d=this.length;d===-1&&(d=u.readIndex(),(0,t.assert)(d*n.WordSize<=u.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:u.bytes,offset:d*n.WordSize,length:u.dataLength}));let h=[];for(let f=0;f<d;f++)h.push(new r.AnonymousCoder(this.coder));return o(u,h)}}return Vk.ArrayCoder=s,Vk}var GY={},Q$t;function $Ko(){if(Q$t)return GY;Q$t=1,Object.defineProperty(GY,"__esModule",{value:!0}),GY.BooleanCoder=void 0;const t=TN(),e=o_();class n extends e.Coder{constructor(a){super("bool","bool",a,!1)}defaultValue(){return!1}encode(a,o){const s=t.Typed.dereference(o,"bool");return a.writeValue(s?1:0)}decode(a){return!!a.readValue()}}return GY.BooleanCoder=n,GY}var bL={},q$t;function mJn(){if(q$t)return bL;q$t=1,Object.defineProperty(bL,"__esModule",{value:!0}),bL.BytesCoder=bL.DynamicBytesCoder=void 0;const t=Oi(),e=o_();class n extends e.Coder{constructor(o,s){super(o,o,s,!0)}defaultValue(){return"0x"}encode(o,s){s=(0,t.getBytesCopy)(s);let l=o.writeValue(s.length);return l+=o.writeBytes(s),l}decode(o){return o.readBytes(o.readIndex(),!0)}}bL.DynamicBytesCoder=n;class r extends n{constructor(o){super("bytes",o)}decode(o){return(0,t.hexlify)(super.decode(o))}}return bL.BytesCoder=r,bL}var VY={},Y$t;function FKo(){if(Y$t)return VY;Y$t=1,Object.defineProperty(VY,"__esModule",{value:!0}),VY.FixedBytesCoder=void 0;const t=Oi(),e=TN(),n=o_();class r extends n.Coder{constructor(s,l){let c="bytes"+String(s);super(c,c,l,!1);Ut(this,"size");(0,t.defineProperties)(this,{size:s},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(s,l){let c=(0,t.getBytesCopy)(e.Typed.dereference(l,this.type));return c.length!==this.size&&this._throwError("incorrect data length",l),s.writeBytes(c)}decode(s){return(0,t.hexlify)(s.readBytes(this.size))}}return VY.FixedBytesCoder=r,VY}var KY={},J$t;function jKo(){if(J$t)return KY;J$t=1,Object.defineProperty(KY,"__esModule",{value:!0}),KY.NullCoder=void 0;const t=o_(),e=new Uint8Array([]);class n extends t.Coder{constructor(a){super("null","",a,!1)}defaultValue(){return null}encode(a,o){return o!=null&&this._throwError("not null",o),a.writeBytes(e)}decode(a){return a.readBytes(0),null}}return KY.NullCoder=n,KY}var WY={},Z$t;function HKo(){if(Z$t)return WY;Z$t=1,Object.defineProperty(WY,"__esModule",{value:!0}),WY.NumberCoder=void 0;const t=Oi(),e=TN(),n=o_(),r=BigInt(0),a=BigInt(1),o=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class s extends n.Coder{constructor(u,d,h){const f=(d?"int":"uint")+u*8;super(f,f,h,!1);Ut(this,"size");Ut(this,"signed");(0,t.defineProperties)(this,{size:u,signed:d},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(u,d){let h=(0,t.getBigInt)(e.Typed.dereference(d,this.type)),f=(0,t.mask)(o,n.WordSize*8);if(this.signed){let p=(0,t.mask)(f,this.size*8-1);(h>p||h<-(p+a))&&this._throwError("value out-of-bounds",d),h=(0,t.toTwos)(h,8*n.WordSize)}else(h<r||h>(0,t.mask)(f,this.size*8))&&this._throwError("value out-of-bounds",d);return u.writeValue(h)}decode(u){let d=(0,t.mask)(u.readValue(),this.size*8);return this.signed&&(d=(0,t.fromTwos)(d,this.size*8)),d}}return WY.NumberCoder=s,WY}var QY={},X$t;function UKo(){if(X$t)return QY;X$t=1,Object.defineProperty(QY,"__esModule",{value:!0}),QY.StringCoder=void 0;const t=Iut(),e=TN(),n=mJn();class r extends n.DynamicBytesCoder{constructor(o){super("string",o)}defaultValue(){return""}encode(o,s){return super.encode(o,(0,t.toUtf8Bytes)(e.Typed.dereference(s,"string")))}decode(o){return(0,t.toUtf8String)(super.decode(o))}}return QY.StringCoder=r,QY}var qY={},e7t;function zKo(){if(e7t)return qY;e7t=1,Object.defineProperty(qY,"__esModule",{value:!0}),qY.TupleCoder=void 0;const t=G9(),e=TN(),n=o_(),r=pJn();class a extends n.Coder{constructor(l,c){let u=!1;const d=[];l.forEach(f=>{f.dynamic&&(u=!0),d.push(f.type)});const h="tuple("+d.join(",")+")";super("tuple",h,c,u);Ut(this,"coders");(0,t.defineProperties)(this,{coders:Object.freeze(l.slice())})}defaultValue(){const l=[];this.coders.forEach(u=>{l.push(u.defaultValue())});const c=this.coders.reduce((u,d)=>{const h=d.localName;return h&&(u[h]||(u[h]=0),u[h]++),u},{});return this.coders.forEach((u,d)=>{let h=u.localName;!h||c[h]!==1||(h==="length"&&(h="_length"),l[h]==null&&(l[h]=l[d]))}),Object.freeze(l)}encode(l,c){const u=e.Typed.dereference(c,"tuple");return(0,r.pack)(l,this.coders,u)}decode(l){return(0,r.unpack)(l,this.coders)}}return qY.TupleCoder=a,qY}var Ih={},H$e={},YY={},t7t;function gJn(){if(t7t)return YY;t7t=1,Object.defineProperty(YY,"__esModule",{value:!0}),YY.id=void 0;const t=bg(),e=Oi();function n(r){return(0,t.keccak256)((0,e.toUtf8Bytes)(r))}return YY.id=n,YY}var gS={},ny={},n7t;function GKo(){if(n7t)return ny;n7t=1;var t="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const e=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),n=4;function r(st){let wt=0;function Bt(){return st[wt++]<<8|st[wt++]}let dn=Bt(),tn=1,vn=[0,1];for(let Jn=1;Jn<dn;Jn++)vn.push(tn+=Bt());let kn=Bt(),Mn=wt;wt+=kn;let Nr=0,na=0;function Ar(){return Nr==0&&(na=na<<8|st[wt++],Nr=8),na>>--Nr&1}const qi=31,Ge=2**qi,ht=Ge>>>1,Je=ht>>1,Rt=Ge-1;let Dt=0;for(let Jn=0;Jn<qi;Jn++)Dt=Dt<<1|Ar();let It=[],ln=0,Hn=Ge;for(;;){let Jn=Math.floor(((Dt-ln+1)*tn-1)/Hn),Xn=0,zr=dn;for(;zr-Xn>1;){let Qa=Xn+zr>>>1;Jn<vn[Qa]?zr=Qa:Xn=Qa}if(Xn==0)break;It.push(Xn);let ua=ln+Math.floor(Hn*vn[Xn]/tn),Ta=ln+Math.floor(Hn*vn[Xn+1]/tn)-1;for(;!((ua^Ta)&ht);)Dt=Dt<<1&Rt|Ar(),ua=ua<<1&Rt,Ta=Ta<<1&Rt|1;for(;ua&~Ta&Je;)Dt=Dt&ht|Dt<<1&Rt>>>1|Ar(),ua=ua<<1^ht,Ta=(Ta^ht)<<1|ht|1;ln=ua,Hn=1+Ta-ua}let Zn=dn-4;return It.map(Jn=>{switch(Jn-Zn){case 3:return Zn+65792+(st[Mn++]<<16|st[Mn++]<<8|st[Mn++]);case 2:return Zn+256+(st[Mn++]<<8|st[Mn++]);case 1:return Zn+st[Mn++];default:return Jn-1}})}function a(st){let wt=0;return()=>st[wt++]}function o(st){return a(r(s(st)))}function s(st){let wt=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((tn,vn)=>wt[tn.charCodeAt(0)]=vn);let Bt=st.length,dn=new Uint8Array(6*Bt>>3);for(let tn=0,vn=0,kn=0,Mn=0;tn<Bt;tn++)Mn=Mn<<6|wt[st.charCodeAt(tn)],kn+=6,kn>=8&&(dn[vn++]=Mn>>(kn-=8));return dn}function l(st){return st&1?~st>>1:st>>1}function c(st,wt){let Bt=Array(st);for(let dn=0,tn=0;dn<st;dn++)Bt[dn]=tn+=l(wt());return Bt}function u(st,wt=0){let Bt=[];for(;;){let dn=st(),tn=st();if(!tn)break;wt+=dn;for(let vn=0;vn<tn;vn++)Bt.push(wt+vn);wt+=tn+1}return Bt}function d(st){return f(()=>{let wt=u(st);if(wt.length)return wt})}function h(st){let wt=[];for(;;){let Bt=st();if(Bt==0)break;wt.push(m(Bt,st))}for(;;){let Bt=st()-1;if(Bt<0)break;wt.push(g(Bt,st))}return wt.flat()}function f(st){let wt=[];for(;;){let Bt=st(wt.length);if(!Bt)break;wt.push(Bt)}return wt}function p(st,wt,Bt){let dn=Array(st).fill().map(()=>[]);for(let tn=0;tn<wt;tn++)c(st,Bt).forEach((vn,kn)=>dn[kn].push(vn));return dn}function m(st,wt){let Bt=1+wt(),dn=wt(),tn=f(wt);return p(tn.length,1+st,wt).flatMap((kn,Mn)=>{let[Nr,...na]=kn;return Array(tn[Mn]).fill().map((Ar,qi)=>{let Ge=qi*dn;return[Nr+qi*Bt,na.map(ht=>ht+Ge)]})})}function g(st,wt){let Bt=1+wt();return p(Bt,1+st,wt).map(tn=>[tn[0],tn.slice(1)])}function v(st){let wt=[],Bt=u(st);return tn(dn([]),[]),wt;function dn(vn){let kn=st(),Mn=f(()=>{let Nr=u(st).map(na=>Bt[na]);if(Nr.length)return dn(Nr)});return{S:kn,B:Mn,Q:vn}}function tn({S:vn,B:kn},Mn,Nr){if(!(vn&4&&Nr===Mn[Mn.length-1])){vn&2&&(Nr=Mn[Mn.length-1]),vn&1&&wt.push(Mn);for(let na of kn)for(let Ar of na.Q)tn(na,[...Mn,Ar],Nr)}}}function A(st){return st.toString(16).toUpperCase().padStart(2,"0")}function y(st){return`{${A(st)}}`}function S(st){let wt=[];for(let Bt=0,dn=st.length;Bt<dn;){let tn=st.codePointAt(Bt);Bt+=tn<65536?1:2,wt.push(tn)}return wt}function x(st){let Bt=st.length;if(Bt<4096)return String.fromCodePoint(...st);let dn=[];for(let tn=0;tn<Bt;)dn.push(String.fromCodePoint(...st.slice(tn,tn+=4096)));return dn.join("")}function w(st,wt){let Bt=st.length,dn=Bt-wt.length;for(let tn=0;dn==0&&tn<Bt;tn++)dn=st[tn]-wt[tn];return dn}var _="AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g";const C=44032,R=4352,k=4449,P=4519,N=19,L=21,I=28,b=L*I,T=N*b,M=C+T,D=R+N,B=k+L,j=P+I;function H(st){return st>>24&255}function U(st){return st&16777215}let $,z,Z,K;function Q(){let st=o(_);$=new Map(d(st).flatMap((wt,Bt)=>wt.map(dn=>[dn,Bt+1<<24]))),z=new Set(u(st)),Z=new Map,K=new Map;for(let[wt,Bt]of h(st)){if(!z.has(wt)&&Bt.length==2){let[dn,tn]=Bt,vn=K.get(dn);vn||(vn=new Map,K.set(dn,vn)),vn.set(tn,wt)}Z.set(wt,Bt.reverse())}}function ee(st){return st>=C&&st<M}function X(st,wt){if(st>=R&&st<D&&wt>=k&&wt<B)return C+(st-R)*b+(wt-k)*I;if(ee(st)&&wt>P&&wt<j&&(st-C)%I==0)return st+(wt-P);{let Bt=K.get(st);return Bt&&(Bt=Bt.get(wt),Bt)?Bt:-1}}function te(st){$||Q();let wt=[],Bt=[],dn=!1;function tn(vn){let kn=$.get(vn);kn&&(dn=!0,vn|=kn),wt.push(vn)}for(let vn of st)for(;;){if(vn<128)wt.push(vn);else if(ee(vn)){let kn=vn-C,Mn=kn/b|0,Nr=kn%b/I|0,na=kn%I;tn(R+Mn),tn(k+Nr),na>0&&tn(P+na)}else{let kn=Z.get(vn);kn?Bt.push(...kn):tn(vn)}if(!Bt.length)break;vn=Bt.pop()}if(dn&&wt.length>1){let vn=H(wt[0]);for(let kn=1;kn<wt.length;kn++){let Mn=H(wt[kn]);if(Mn==0||vn<=Mn){vn=Mn;continue}let Nr=kn-1;for(;;){let na=wt[Nr+1];if(wt[Nr+1]=wt[Nr],wt[Nr]=na,!Nr||(vn=H(wt[--Nr]),vn<=Mn))break}vn=H(wt[kn])}}return wt}function J(st){let wt=[],Bt=[],dn=-1,tn=0;for(let vn of st){let kn=H(vn),Mn=U(vn);if(dn==-1)kn==0?dn=Mn:wt.push(Mn);else if(tn>0&&tn>=kn)kn==0?(wt.push(dn,...Bt),Bt.length=0,dn=Mn):Bt.push(Mn),tn=kn;else{let Nr=X(dn,Mn);Nr>=0?dn=Nr:tn==0&&kn==0?(wt.push(dn),dn=Mn):(Bt.push(Mn),tn=kn)}}return dn>=0&&wt.push(dn,...Bt),wt}function ne(st){return te(st).map(U)}function ie(st){return J(te(st))}const he=45,de=46,ce=".",Ee=65039,Me=1,Be=st=>Array.from(st);function ze(st,wt){return st.P.has(wt)||st.Q.has(wt)}class je extends Array{get is_emoji(){return!0}}let ye,me,le,pe,Ne,_e,ue,se,oe,ge,De,Fe;function Se(){if(ye)return;let st=o(t);const wt=()=>u(st),Bt=()=>new Set(wt()),dn=(Ar,qi)=>qi.forEach(Ge=>Ar.add(Ge));ye=new Map(h(st)),me=Bt(),le=wt(),pe=new Set(wt().map(Ar=>le[Ar])),le=new Set(le),Ne=Bt(),_e=Bt();let tn=d(st),vn=st();const kn=()=>{let Ar=new Set;return wt().forEach(qi=>dn(Ar,tn[qi])),dn(Ar,wt()),Ar};ue=f(Ar=>{let qi=f(st).map(Ge=>Ge+96);if(qi.length){let Ge=Ar>=vn;qi[0]-=32,qi=x(qi),Ge&&(qi=`Restricted[${qi}]`);let ht=kn(),Je=kn(),Rt=!st();return{N:qi,P:ht,Q:Je,M:Rt,R:Ge}}}),se=Bt(),oe=new Map;let Mn=wt().concat(Be(se)).sort((Ar,qi)=>Ar-qi);Mn.forEach((Ar,qi)=>{let Ge=st(),ht=Mn[qi]=Ge?Mn[qi-Ge]:{V:[],M:new Map};ht.V.push(Ar),se.has(Ar)||oe.set(Ar,ht)});for(let{V:Ar,M:qi}of new Set(oe.values())){let Ge=[];for(let Je of Ar){let Rt=ue.filter(It=>ze(It,Je)),Dt=Ge.find(({G:It})=>Rt.some(ln=>It.has(ln)));Dt||(Dt={G:new Set,V:[]},Ge.push(Dt)),Dt.V.push(Je),dn(Dt.G,Rt)}let ht=Ge.flatMap(Je=>Be(Je.G));for(let{G:Je,V:Rt}of Ge){let Dt=new Set(ht.filter(It=>!Je.has(It)));for(let It of Rt)qi.set(It,Dt)}}ge=new Set;let Nr=new Set;const na=Ar=>ge.has(Ar)?Nr.add(Ar):ge.add(Ar);for(let Ar of ue){for(let qi of Ar.P)na(qi);for(let qi of Ar.Q)na(qi)}for(let Ar of ge)!oe.has(Ar)&&!Nr.has(Ar)&&oe.set(Ar,Me);dn(ge,ne(ge)),De=v(st).map(Ar=>je.from(Ar)).sort(w),Fe=new Map;for(let Ar of De){let qi=[Fe];for(let Ge of Ar){let ht=qi.map(Je=>{let Rt=Je.get(Ge);return Rt||(Rt=new Map,Je.set(Ge,Rt)),Rt});Ge===Ee?qi.push(...ht):qi=ht}for(let Ge of qi)Ge.V=Ar}}function Xe(st){return(sn(st)?"":`${Oe(lt([st]))} `)+y(st)}function Oe(st){return`"${st}"‎`}function Ye(st){if(st.length>=4&&st[2]==he&&st[3]==he)throw new Error(`invalid label extension: "${x(st.slice(0,4))}"`)}function mt(st){for(let Bt=st.lastIndexOf(95);Bt>0;)if(st[--Bt]!==95)throw new Error("underscore allowed only at start")}function ut(st){let wt=st[0],Bt=e.get(wt);if(Bt)throw qe(`leading ${Bt}`);let dn=st.length,tn=-1;for(let vn=1;vn<dn;vn++){wt=st[vn];let kn=e.get(wt);if(kn){if(tn==vn)throw qe(`${Bt} + ${kn}`);tn=vn+1,Bt=kn}}if(tn==dn)throw qe(`trailing ${Bt}`)}function lt(st,wt=1/0,Bt=y){let dn=[];pn(st[0])&&dn.push("◌"),st.length>wt&&(wt>>=1,st=[...st.slice(0,wt),8230,...st.slice(-wt)]);let tn=0,vn=st.length;for(let kn=0;kn<vn;kn++){let Mn=st[kn];sn(Mn)&&(dn.push(x(st.slice(tn,kn))),dn.push(Bt(Mn)),tn=kn+1)}return dn.push(x(st.slice(tn,vn))),dn.join("")}function pn(st){return Se(),le.has(st)}function sn(st){return Se(),Ne.has(st)}function un(){return Se(),De.map(st=>st.slice())}function ur(st,wt){Se();let Bt=wt?ne:ie;return st.split(ce).map(dn=>x(Ze(S(dn),Bt,ot).flat())).join(ce)}function dt(st){return on(rn(st,ie,ot))}function xt(st){let wt=rn(st,ie,Bt=>Bt);for(let{type:Bt,output:dn,error:tn}of wt){if(tn)break;Bt!=="Greek"&&Cn(dn,958,926)}return on(wt)}function Cn(st,wt,Bt){let dn=0;for(;;){let tn=st.indexOf(wt,dn);if(tn<0)break;st[tn]=Bt,dn=tn+1}}function Kt(st,wt){return rn(st,ie,wt?Bt=>Bt.slice():ot)}function rn(st,wt,Bt){if(!st)return[];Se();let dn=0;return st.split(ce).map(tn=>{let vn=S(tn),kn={input:vn,offset:dn};dn+=vn.length+1;try{let Mn=kn.tokens=Ze(vn,wt,Bt),Nr=Mn.length,na;if(!Nr)throw new Error("empty label");let Ar=kn.output=Mn.flat();if(mt(Ar),!(kn.emoji=Nr>1||Mn[0].is_emoji)&&Ar.every(Ge=>Ge<128))Ye(Ar),na="ASCII";else{let Ge=Mn.flatMap(ht=>ht.is_emoji?[]:ht);if(!Ge.length)na="Emoji";else{if(le.has(Ar[0]))throw qe("leading combining mark");for(let Rt=1;Rt<Nr;Rt++){let Dt=Mn[Rt];if(!Dt.is_emoji&&le.has(Dt[0]))throw qe(`emoji + combining mark: "${x(Mn[Rt-1])} + ${lt([Dt[0]])}"`)}ut(Ar);let ht=Be(new Set(Ge)),[Je]=an(ht);yt(Je,Ge),On(Je,ht),na=Je.N}}kn.type=na}catch(Mn){kn.error=Mn}return kn})}function On(st,wt){let Bt,dn=[];for(let tn of wt){let vn=oe.get(tn);if(vn===Me)return;if(vn){let kn=vn.M.get(tn);if(Bt=Bt?Bt.filter(Mn=>kn.has(Mn)):Be(kn),!Bt.length)return}else dn.push(tn)}if(Bt){for(let tn of Bt)if(dn.every(vn=>ze(tn,vn)))throw new Error(`whole-script confusable: ${st.N}/${tn.N}`)}}function an(st){let wt=ue;for(let Bt of st){let dn=wt.filter(tn=>ze(tn,Bt));if(!dn.length)throw ue.some(tn=>ze(tn,Bt))?$e(wt[0],Bt):dr(Bt);if(wt=dn,dn.length==1)break}return wt}function on(st){return st.map(({input:wt,error:Bt,output:dn})=>{if(Bt){let tn=Bt.message;throw new Error(st.length==1?tn:`Invalid label ${Oe(lt(wt,63))}: ${tn}`)}return x(dn)}).join(ce)}function dr(st){return new Error(`disallowed character: ${Xe(st)}`)}function $e(st,wt){let Bt=Xe(wt),dn=ue.find(tn=>tn.P.has(wt));return dn&&(Bt=`${dn.N} ${Bt}`),new Error(`illegal mixture: ${st.N} + ${Bt}`)}function qe(st){return new Error(`illegal placement: ${st}`)}function yt(st,wt){for(let Bt of wt)if(!ze(st,Bt))throw $e(st,Bt);if(st.M){let Bt=ne(wt);for(let dn=1,tn=Bt.length;dn<tn;dn++)if(pe.has(Bt[dn])){let vn=dn+1;for(let kn;vn<tn&&pe.has(kn=Bt[vn]);vn++)for(let Mn=dn;Mn<vn;Mn++)if(Bt[Mn]==kn)throw new Error(`duplicate non-spacing marks: ${Xe(kn)}`);if(vn-dn>n)throw new Error(`excessive non-spacing marks: ${Oe(lt(Bt.slice(dn-1,vn)))} (${vn-dn}/${n})`);dn=vn}}}function Ze(st,wt,Bt){let dn=[],tn=[];for(st=st.slice().reverse();st.length;){let vn=yn(st);if(vn)tn.length&&(dn.push(wt(tn)),tn=[]),dn.push(Bt(vn));else{let kn=st.pop();if(ge.has(kn))tn.push(kn);else{let Mn=ye.get(kn);if(Mn)tn.push(...Mn);else if(!me.has(kn))throw dr(kn)}}}return tn.length&&dn.push(wt(tn)),dn}function ot(st){return st.filter(wt=>wt!=Ee)}function yn(st,wt){let Bt=Fe,dn,tn=st.length;for(;tn&&(Bt=Bt.get(st[--tn]),!!Bt);){let{V:vn}=Bt;vn&&(dn=vn,wt&&wt.push(...st.slice(tn).reverse()),st.length=tn)}return dn}const vt="valid",Gt="mapped",ft="ignored",rt="disallowed",Pt="emoji",Yt="nfc",Un="stop";function jn(st,{nf:wt=!0}={}){Se();let Bt=S(st).reverse(),dn=[],tn=[];for(;Bt.length;){let vn=yn(Bt,dn);if(vn)tn.push({type:Pt,emoji:vn.slice(),input:dn,cps:ot(vn)}),dn=[];else{let kn=Bt.pop();if(kn==de)tn.push({type:Un,cp:kn});else if(ge.has(kn))tn.push({type:vt,cps:[kn]});else if(me.has(kn))tn.push({type:ft,cp:kn});else{let Mn=ye.get(kn);Mn?tn.push({type:Gt,cp:kn,cps:Mn.slice()}):tn.push({type:rt,cp:kn})}}}if(wt)for(let vn=0,kn=-1;vn<tn.length;vn++){let Mn=tn[vn];if(br(Mn.type))if(si(Mn.cps)){let Nr=vn+1;for(let Ge=Nr;Ge<tn.length;Ge++){let{type:ht,cps:Je}=tn[Ge];if(br(ht)){if(!si(Je))break;Nr=Ge+1}else if(ht!==ft)break}kn<0&&(kn=vn);let na=tn.slice(kn,Nr),Ar=na.flatMap(Ge=>br(Ge.type)?Ge.cps:[]),qi=ie(Ar);w(qi,Ar)?(tn.splice(kn,Nr-kn,{type:Yt,input:Ar,cps:qi,tokens0:Qi(na),tokens:jn(x(qi),{nf:!1})}),vn=kn):vn=Nr-1,kn=-1}else kn=vn;else Mn.type!==ft&&(kn=-1)}return Qi(tn)}function br(st){return st==vt||st==Gt}function si(st){return st.some(wt=>_e.has(wt))}function Qi(st){for(let wt=0;wt<st.length;wt++)if(st[wt].type==vt){let Bt=wt+1;for(;Bt<st.length&&st[Bt].type==vt;)Bt++;st.splice(wt,Bt-wt,{type:vt,cps:st.slice(wt,Bt).flatMap(dn=>dn.cps)})}return st}return ny.ens_beautify=xt,ny.ens_emoji=un,ny.ens_normalize=dt,ny.ens_normalize_fragment=ur,ny.ens_split=Kt,ny.ens_tokenize=jn,ny.is_combining_mark=pn,ny.nfc=ie,ny.nfd=ne,ny.safe_str_from_cps=lt,ny.should_escape=sn,ny}var r7t;function VKo(){if(r7t)return gS;r7t=1,Object.defineProperty(gS,"__esModule",{value:!0}),gS.dnsEncode=gS.namehash=gS.isValidName=gS.ensNormalize=void 0;const t=bg(),e=Oi(),n=GKo(),r=new Uint8Array(32);r.fill(0);function a(d){return(0,e.assertArgument)(d.length!==0,"invalid ENS name; empty component","comp",d),d}function o(d){const h=(0,e.toUtf8Bytes)(s(d)),f=[];if(d.length===0)return f;let p=0;for(let m=0;m<h.length;m++)h[m]===46&&(f.push(a(h.slice(p,m))),p=m+1);return(0,e.assertArgument)(p<h.length,"invalid ENS name; empty component","name",d),f.push(a(h.slice(p))),f}function s(d){try{if(d.length===0)throw new Error("empty label");return(0,n.ens_normalize)(d)}catch(h){(0,e.assertArgument)(!1,`invalid ENS name (${h.message})`,"name",d)}}gS.ensNormalize=s;function l(d){try{return o(d).length!==0}catch{}return!1}gS.isValidName=l;function c(d){(0,e.assertArgument)(typeof d=="string","invalid ENS name; not a string","name",d),(0,e.assertArgument)(d.length,"invalid ENS name (empty label)","name",d);let h=r;const f=o(d);for(;f.length;)h=(0,t.keccak256)((0,e.concat)([h,(0,t.keccak256)(f.pop())]));return(0,e.hexlify)(h)}gS.namehash=c;function u(d,h){const f=h??63;return(0,e.assertArgument)(f<=255,"DNS encoded label cannot exceed 255","length",f),(0,e.hexlify)((0,e.concat)(o(d).map(p=>{(0,e.assertArgument)(p.length<=f,`label ${JSON.stringify(d)} exceeds ${f} bytes`,"name",d);const m=new Uint8Array(p.length+1);return m.set(p,1),m[0]=m.length-1,m})))+"00"}return gS.dnsEncode=u,gS}var xL={},U$e={},JY={},i7t;function vJn(){if(i7t)return JY;i7t=1,Object.defineProperty(JY,"__esModule",{value:!0}),JY.accessListify=void 0;const t=Am(),e=Oi();function n(a,o){return{address:(0,t.getAddress)(a),storageKeys:o.map((s,l)=>((0,e.assertArgument)((0,e.isHexString)(s,32),"invalid slot",`storageKeys[${l}]`,s),s.toLowerCase()))}}function r(a){if(Array.isArray(a))return a.map((s,l)=>Array.isArray(s)?((0,e.assertArgument)(s.length===2,"invalid slot set",`value[${l}]`,s),n(s[0],s[1])):((0,e.assertArgument)(s!=null&&typeof s=="object","invalid address-slot set","value",a),n(s.address,s.storageKeys)));(0,e.assertArgument)(a!=null&&typeof a=="object","invalid access list","value",a);const o=Object.keys(a).map(s=>{const l=a[s].reduce((c,u)=>(c[u]=!0,c),{});return n(s,Object.keys(l).sort())});return o.sort((s,l)=>s.address.localeCompare(l.address)),o}return JY.accessListify=r,JY}var EL={},a7t;function AJn(){if(a7t)return EL;a7t=1,Object.defineProperty(EL,"__esModule",{value:!0}),EL.recoverAddress=EL.computeAddress=void 0;const t=Am(),e=bg();function n(a){let o;return typeof a=="string"?o=e.SigningKey.computePublicKey(a,!1):o=a.publicKey,(0,t.getAddress)((0,e.keccak256)("0x"+o.substring(4)).substring(26))}EL.computeAddress=n;function r(a,o){return n(e.SigningKey.recoverPublicKey(a,o))}return EL.recoverAddress=r,EL}var ZY={},o7t;function KKo(){var T,M,D,B,j,H,U,$,z,Z,K,Q,ee,X,te,J,ne,kge;if(o7t)return ZY;o7t=1,Object.defineProperty(ZY,"__esModule",{value:!0}),ZY.Transaction=void 0;const t=Am(),e=hJn(),n=bg(),r=Oi(),a=vJn(),o=AJn(),s=BigInt(0),l=BigInt(2),c=BigInt(27),u=BigInt(28),d=BigInt(35),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),f=4096*32;function p(de,ce){let Ee=de.toString(16);for(;Ee.length<2;)Ee="0"+Ee;return Ee+=(0,n.sha256)(ce).substring(4),"0x"+Ee}function m(de){return de==="0x"?null:(0,t.getAddress)(de)}function g(de,ce){try{return(0,a.accessListify)(de)}catch(Ee){(0,r.assertArgument)(!1,Ee.message,ce,de)}}function v(de,ce){return de==="0x"?0:(0,r.getNumber)(de,ce)}function A(de,ce){if(de==="0x")return s;const Ee=(0,r.getBigInt)(de,ce);return(0,r.assertArgument)(Ee<=h,"value exceeds uint size",ce,Ee),Ee}function y(de,ce){const Ee=(0,r.getBigInt)(de,"value"),Me=(0,r.toBeArray)(Ee);return(0,r.assertArgument)(Me.length<=32,"value too large",`tx.${ce}`,Ee),Me}function S(de){return(0,a.accessListify)(de).map(ce=>[ce.address,ce.storageKeys])}function x(de,ce){(0,r.assertArgument)(Array.isArray(de),`invalid ${ce}`,"value",de);for(let Ee=0;Ee<de.length;Ee++)(0,r.assertArgument)((0,r.isHexString)(de[Ee],32),"invalid ${ param } hash",`value[${Ee}]`,de[Ee]);return de}function w(de){const ce=(0,r.decodeRlp)(de);(0,r.assertArgument)(Array.isArray(ce)&&(ce.length===9||ce.length===6),"invalid field count for legacy transaction","data",de);const Ee={type:0,nonce:v(ce[0],"nonce"),gasPrice:A(ce[1],"gasPrice"),gasLimit:A(ce[2],"gasLimit"),to:m(ce[3]),value:A(ce[4],"value"),data:(0,r.hexlify)(ce[5]),chainId:s};if(ce.length===6)return Ee;const Me=A(ce[6],"v"),Be=A(ce[7],"r"),ze=A(ce[8],"s");if(Be===s&&ze===s)Ee.chainId=Me;else{let je=(Me-d)/l;je<s&&(je=s),Ee.chainId=je,(0,r.assertArgument)(je!==s||Me===c||Me===u,"non-canonical legacy v","v",ce[6]),Ee.signature=n.Signature.from({r:(0,r.zeroPadValue)(ce[7],32),s:(0,r.zeroPadValue)(ce[8],32),v:Me})}return Ee}function _(de,ce){const Ee=[y(de.nonce,"nonce"),y(de.gasPrice||0,"gasPrice"),y(de.gasLimit,"gasLimit"),de.to||"0x",y(de.value,"value"),de.data];let Me=s;if(de.chainId!=s)Me=(0,r.getBigInt)(de.chainId,"tx.chainId"),(0,r.assertArgument)(!ce||ce.networkV==null||ce.legacyChainId===Me,"tx.chainId/sig.v mismatch","sig",ce);else if(de.signature){const ze=de.signature.legacyChainId;ze!=null&&(Me=ze)}if(!ce)return Me!==s&&(Ee.push((0,r.toBeArray)(Me)),Ee.push("0x"),Ee.push("0x")),(0,r.encodeRlp)(Ee);let Be=BigInt(27+ce.yParity);return Me!==s?Be=n.Signature.getChainIdV(Me,ce.v):BigInt(ce.v)!==Be&&(0,r.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",ce),Ee.push((0,r.toBeArray)(Be)),Ee.push((0,r.toBeArray)(ce.r)),Ee.push((0,r.toBeArray)(ce.s)),(0,r.encodeRlp)(Ee)}function C(de,ce){let Ee;try{if(Ee=v(ce[0],"yParity"),Ee!==0&&Ee!==1)throw new Error("bad yParity")}catch{(0,r.assertArgument)(!1,"invalid yParity","yParity",ce[0])}const Me=(0,r.zeroPadValue)(ce[1],32),Be=(0,r.zeroPadValue)(ce[2],32),ze=n.Signature.from({r:Me,s:Be,yParity:Ee});de.signature=ze}function R(de){const ce=(0,r.decodeRlp)((0,r.getBytes)(de).slice(1));(0,r.assertArgument)(Array.isArray(ce)&&(ce.length===9||ce.length===12),"invalid field count for transaction type: 2","data",(0,r.hexlify)(de));const Ee={type:2,chainId:A(ce[0],"chainId"),nonce:v(ce[1],"nonce"),maxPriorityFeePerGas:A(ce[2],"maxPriorityFeePerGas"),maxFeePerGas:A(ce[3],"maxFeePerGas"),gasPrice:null,gasLimit:A(ce[4],"gasLimit"),to:m(ce[5]),value:A(ce[6],"value"),data:(0,r.hexlify)(ce[7]),accessList:g(ce[8],"accessList")};return ce.length===9||C(Ee,ce.slice(9)),Ee}function k(de,ce){const Ee=[y(de.chainId,"chainId"),y(de.nonce,"nonce"),y(de.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),y(de.maxFeePerGas||0,"maxFeePerGas"),y(de.gasLimit,"gasLimit"),de.to||"0x",y(de.value,"value"),de.data,S(de.accessList||[])];return ce&&(Ee.push(y(ce.yParity,"yParity")),Ee.push((0,r.toBeArray)(ce.r)),Ee.push((0,r.toBeArray)(ce.s))),(0,r.concat)(["0x02",(0,r.encodeRlp)(Ee)])}function P(de){const ce=(0,r.decodeRlp)((0,r.getBytes)(de).slice(1));(0,r.assertArgument)(Array.isArray(ce)&&(ce.length===8||ce.length===11),"invalid field count for transaction type: 1","data",(0,r.hexlify)(de));const Ee={type:1,chainId:A(ce[0],"chainId"),nonce:v(ce[1],"nonce"),gasPrice:A(ce[2],"gasPrice"),gasLimit:A(ce[3],"gasLimit"),to:m(ce[4]),value:A(ce[5],"value"),data:(0,r.hexlify)(ce[6]),accessList:g(ce[7],"accessList")};return ce.length===8||C(Ee,ce.slice(8)),Ee}function N(de,ce){const Ee=[y(de.chainId,"chainId"),y(de.nonce,"nonce"),y(de.gasPrice||0,"gasPrice"),y(de.gasLimit,"gasLimit"),de.to||"0x",y(de.value,"value"),de.data,S(de.accessList||[])];return ce&&(Ee.push(y(ce.yParity,"recoveryParam")),Ee.push((0,r.toBeArray)(ce.r)),Ee.push((0,r.toBeArray)(ce.s))),(0,r.concat)(["0x01",(0,r.encodeRlp)(Ee)])}function L(de){let ce=(0,r.decodeRlp)((0,r.getBytes)(de).slice(1)),Ee="3",Me=null;if(ce.length===4&&Array.isArray(ce[0])){Ee="3 (network format)";const ze=ce[1],je=ce[2],ye=ce[3];(0,r.assertArgument)(Array.isArray(ze),"invalid network format: blobs not an array","fields[1]",ze),(0,r.assertArgument)(Array.isArray(je),"invalid network format: commitments not an array","fields[2]",je),(0,r.assertArgument)(Array.isArray(ye),"invalid network format: proofs not an array","fields[3]",ye),(0,r.assertArgument)(ze.length===je.length,"invalid network format: blobs/commitments length mismatch","fields",ce),(0,r.assertArgument)(ze.length===ye.length,"invalid network format: blobs/proofs length mismatch","fields",ce),Me=[];for(let me=0;me<ce[1].length;me++)Me.push({data:ze[me],commitment:je[me],proof:ye[me]});ce=ce[0]}(0,r.assertArgument)(Array.isArray(ce)&&(ce.length===11||ce.length===14),`invalid field count for transaction type: ${Ee}`,"data",(0,r.hexlify)(de));const Be={type:3,chainId:A(ce[0],"chainId"),nonce:v(ce[1],"nonce"),maxPriorityFeePerGas:A(ce[2],"maxPriorityFeePerGas"),maxFeePerGas:A(ce[3],"maxFeePerGas"),gasPrice:null,gasLimit:A(ce[4],"gasLimit"),to:m(ce[5]),value:A(ce[6],"value"),data:(0,r.hexlify)(ce[7]),accessList:g(ce[8],"accessList"),maxFeePerBlobGas:A(ce[9],"maxFeePerBlobGas"),blobVersionedHashes:ce[10]};Me&&(Be.blobs=Me),(0,r.assertArgument)(Be.to!=null,`invalid address for transaction type: ${Ee}`,"data",de),(0,r.assertArgument)(Array.isArray(Be.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",de);for(let ze=0;ze<Be.blobVersionedHashes.length;ze++)(0,r.assertArgument)((0,r.isHexString)(Be.blobVersionedHashes[ze],32),`invalid blobVersionedHash at index ${ze}: must be length 32`,"data",de);return ce.length===11||C(Be,ce.slice(11)),Be}function I(de,ce,Ee){const Me=[y(de.chainId,"chainId"),y(de.nonce,"nonce"),y(de.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),y(de.maxFeePerGas||0,"maxFeePerGas"),y(de.gasLimit,"gasLimit"),de.to||e.ZeroAddress,y(de.value,"value"),de.data,S(de.accessList||[]),y(de.maxFeePerBlobGas||0,"maxFeePerBlobGas"),x(de.blobVersionedHashes||[],"blobVersionedHashes")];return ce&&(Me.push(y(ce.yParity,"yParity")),Me.push((0,r.toBeArray)(ce.r)),Me.push((0,r.toBeArray)(ce.s)),Ee)?(0,r.concat)(["0x03",(0,r.encodeRlp)([Me,Ee.map(Be=>Be.data),Ee.map(Be=>Be.commitment),Ee.map(Be=>Be.proof)])]):(0,r.concat)(["0x03",(0,r.encodeRlp)(Me)])}const he=class he{constructor(){Wt(this,ne);Wt(this,T,void 0);Wt(this,M,void 0);Wt(this,D,void 0);Wt(this,B,void 0);Wt(this,j,void 0);Wt(this,H,void 0);Wt(this,U,void 0);Wt(this,$,void 0);Wt(this,z,void 0);Wt(this,Z,void 0);Wt(this,K,void 0);Wt(this,Q,void 0);Wt(this,ee,void 0);Wt(this,X,void 0);Wt(this,te,void 0);Wt(this,J,void 0);tt(this,T,null),tt(this,M,null),tt(this,B,0),tt(this,j,s),tt(this,H,null),tt(this,U,null),tt(this,$,null),tt(this,D,"0x"),tt(this,z,s),tt(this,Z,s),tt(this,K,null),tt(this,Q,null),tt(this,ee,null),tt(this,X,null),tt(this,J,null),tt(this,te,null)}get type(){return Le(this,T)}set type(ce){switch(ce){case null:tt(this,T,null);break;case 0:case"legacy":tt(this,T,0);break;case 1:case"berlin":case"eip-2930":tt(this,T,1);break;case 2:case"london":case"eip-1559":tt(this,T,2);break;case 3:case"cancun":case"eip-4844":tt(this,T,3);break;default:(0,r.assertArgument)(!1,"unsupported transaction type","type",ce)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const ce=Le(this,M);return ce==null&&this.type===3?e.ZeroAddress:ce}set to(ce){tt(this,M,ce==null?null:(0,t.getAddress)(ce))}get nonce(){return Le(this,B)}set nonce(ce){tt(this,B,(0,r.getNumber)(ce,"value"))}get gasLimit(){return Le(this,j)}set gasLimit(ce){tt(this,j,(0,r.getBigInt)(ce))}get gasPrice(){const ce=Le(this,H);return ce==null&&(this.type===0||this.type===1)?s:ce}set gasPrice(ce){tt(this,H,ce==null?null:(0,r.getBigInt)(ce,"gasPrice"))}get maxPriorityFeePerGas(){const ce=Le(this,U);return ce??(this.type===2||this.type===3?s:null)}set maxPriorityFeePerGas(ce){tt(this,U,ce==null?null:(0,r.getBigInt)(ce,"maxPriorityFeePerGas"))}get maxFeePerGas(){const ce=Le(this,$);return ce??(this.type===2||this.type===3?s:null)}set maxFeePerGas(ce){tt(this,$,ce==null?null:(0,r.getBigInt)(ce,"maxFeePerGas"))}get data(){return Le(this,D)}set data(ce){tt(this,D,(0,r.hexlify)(ce))}get value(){return Le(this,z)}set value(ce){tt(this,z,(0,r.getBigInt)(ce,"value"))}get chainId(){return Le(this,Z)}set chainId(ce){tt(this,Z,(0,r.getBigInt)(ce))}get signature(){return Le(this,K)||null}set signature(ce){tt(this,K,ce==null?null:n.Signature.from(ce))}get accessList(){const ce=Le(this,Q)||null;return ce??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(ce){tt(this,Q,ce==null?null:(0,a.accessListify)(ce))}get maxFeePerBlobGas(){const ce=Le(this,ee);return ce==null&&this.type===3?s:ce}set maxFeePerBlobGas(ce){tt(this,ee,ce==null?null:(0,r.getBigInt)(ce,"maxFeePerBlobGas"))}get blobVersionedHashes(){let ce=Le(this,X);return ce==null&&this.type===3?[]:ce}set blobVersionedHashes(ce){if(ce!=null){(0,r.assertArgument)(Array.isArray(ce),"blobVersionedHashes must be an Array","value",ce),ce=ce.slice();for(let Ee=0;Ee<ce.length;Ee++)(0,r.assertArgument)((0,r.isHexString)(ce[Ee],32),"invalid blobVersionedHash",`value[${Ee}]`,ce[Ee])}tt(this,X,ce)}get blobs(){return Le(this,J)==null?null:Le(this,J).map(ce=>Object.assign({},ce))}set blobs(ce){if(ce==null){tt(this,J,null);return}const Ee=[],Me=[];for(let Be=0;Be<ce.length;Be++){const ze=ce[Be];if((0,r.isBytesLike)(ze)){(0,r.assert)(Le(this,te),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let je=(0,r.getBytes)(ze);if((0,r.assertArgument)(je.length<=f,"blob is too large",`blobs[${Be}]`,ze),je.length!==f){const le=new Uint8Array(f);le.set(je),je=le}const ye=Le(this,te).blobToKzgCommitment(je),me=(0,r.hexlify)(Le(this,te).computeBlobKzgProof(je,ye));Ee.push({data:(0,r.hexlify)(je),commitment:(0,r.hexlify)(ye),proof:me}),Me.push(p(1,ye))}else{const je=(0,r.hexlify)(ze.commitment);Ee.push({data:(0,r.hexlify)(ze.data),commitment:je,proof:(0,r.hexlify)(ze.proof)}),Me.push(p(1,je))}}tt(this,J,Ee),tt(this,X,Me)}get kzg(){return Le(this,te)}set kzg(ce){tt(this,te,ce)}get hash(){return this.signature==null?null:(0,n.keccak256)(qn(this,ne,kge).call(this,!0,!1))}get unsignedHash(){return(0,n.keccak256)(this.unsignedSerialized)}get from(){return this.signature==null?null:(0,o.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:n.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}get serialized(){return qn(this,ne,kge).call(this,!0,!0)}get unsignedSerialized(){return qn(this,ne,kge).call(this,!1,!1)}inferType(){const ce=this.inferTypes();return ce.indexOf(2)>=0?2:ce.pop()}inferTypes(){const ce=this.gasPrice!=null,Ee=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,Me=this.accessList!=null,Be=Le(this,ee)!=null||Le(this,X);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&(0,r.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,r.assert)(!Ee||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,r.assert)(this.type!==0||!Me,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const ze=[];return this.type!=null?ze.push(this.type):Ee?ze.push(2):ce?(ze.push(1),Me||ze.push(0)):Me?(ze.push(1),ze.push(2)):(Be&&this.to||(ze.push(0),ze.push(1),ze.push(2)),ze.push(3)),ze.sort(),ze}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return he.from(this)}toJSON(){const ce=Ee=>Ee==null?null:Ee.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:ce(this.gasLimit),gasPrice:ce(this.gasPrice),maxPriorityFeePerGas:ce(this.maxPriorityFeePerGas),maxFeePerGas:ce(this.maxFeePerGas),value:ce(this.value),chainId:ce(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(ce){if(ce==null)return new he;if(typeof ce=="string"){const Me=(0,r.getBytes)(ce);if(Me[0]>=127)return he.from(w(Me));switch(Me[0]){case 1:return he.from(P(Me));case 2:return he.from(R(Me));case 3:return he.from(L(Me))}(0,r.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const Ee=new he;return ce.type!=null&&(Ee.type=ce.type),ce.to!=null&&(Ee.to=ce.to),ce.nonce!=null&&(Ee.nonce=ce.nonce),ce.gasLimit!=null&&(Ee.gasLimit=ce.gasLimit),ce.gasPrice!=null&&(Ee.gasPrice=ce.gasPrice),ce.maxPriorityFeePerGas!=null&&(Ee.maxPriorityFeePerGas=ce.maxPriorityFeePerGas),ce.maxFeePerGas!=null&&(Ee.maxFeePerGas=ce.maxFeePerGas),ce.maxFeePerBlobGas!=null&&(Ee.maxFeePerBlobGas=ce.maxFeePerBlobGas),ce.data!=null&&(Ee.data=ce.data),ce.value!=null&&(Ee.value=ce.value),ce.chainId!=null&&(Ee.chainId=ce.chainId),ce.signature!=null&&(Ee.signature=n.Signature.from(ce.signature)),ce.accessList!=null&&(Ee.accessList=ce.accessList),ce.blobVersionedHashes!=null&&(Ee.blobVersionedHashes=ce.blobVersionedHashes),ce.kzg!=null&&(Ee.kzg=ce.kzg),ce.blobs!=null&&(Ee.blobs=ce.blobs),ce.hash!=null&&((0,r.assertArgument)(Ee.isSigned(),"unsigned transaction cannot define '.hash'","tx",ce),(0,r.assertArgument)(Ee.hash===ce.hash,"hash mismatch","tx",ce)),ce.from!=null&&((0,r.assertArgument)(Ee.isSigned(),"unsigned transaction cannot define '.from'","tx",ce),(0,r.assertArgument)(Ee.from.toLowerCase()===(ce.from||"").toLowerCase(),"from mismatch","tx",ce)),Ee}};T=new WeakMap,M=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,H=new WeakMap,U=new WeakMap,$=new WeakMap,z=new WeakMap,Z=new WeakMap,K=new WeakMap,Q=new WeakMap,ee=new WeakMap,X=new WeakMap,te=new WeakMap,J=new WeakMap,ne=new WeakSet,kge=function(ce,Ee){(0,r.assert)(!ce||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const Me=ce?this.signature:null;switch(this.inferType()){case 0:return _(this,Me);case 1:return N(this,Me);case 2:return k(this,Me);case 3:return I(this,Me,Ee?this.blobs:null)}(0,r.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let b=he;return ZY.Transaction=b,ZY}var s7t;function cb(){return s7t||(s7t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=void 0;var e=vJn();Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return e.accessListify}});var n=AJn();Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return n.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return n.recoverAddress}});var r=KKo();Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return r.Transaction}})}(U$e)),U$e}var l7t;function WKo(){if(l7t)return xL;l7t=1,Object.defineProperty(xL,"__esModule",{value:!0}),xL.verifyMessage=xL.hashMessage=void 0;const t=bg(),e=Xse(),n=cb(),r=Oi();function a(s){return typeof s=="string"&&(s=(0,r.toUtf8Bytes)(s)),(0,t.keccak256)((0,r.concat)([(0,r.toUtf8Bytes)(e.MessagePrefix),(0,r.toUtf8Bytes)(String(s.length)),s]))}xL.hashMessage=a;function o(s,l){const c=a(s);return(0,n.recoverAddress)(c,l)}return xL.verifyMessage=o,xL}var Kk={},c7t;function QKo(){if(c7t)return Kk;c7t=1,Object.defineProperty(Kk,"__esModule",{value:!0}),Kk.solidityPackedSha256=Kk.solidityPackedKeccak256=Kk.solidityPacked=void 0;const t=Am(),e=bg(),n=Oi(),r=new RegExp("^bytes([0-9]+)$"),a=new RegExp("^(u?int)([0-9]*)$"),o=new RegExp("^(.*)\\[([0-9]*)\\]$");function s(d,h,f){switch(d){case"address":return f?(0,n.getBytes)((0,n.zeroPadValue)(h,32)):(0,n.getBytes)((0,t.getAddress)(h));case"string":return(0,n.toUtf8Bytes)(h);case"bytes":return(0,n.getBytes)(h);case"bool":return h=h?"0x01":"0x00",f?(0,n.getBytes)((0,n.zeroPadValue)(h,32)):(0,n.getBytes)(h)}let p=d.match(a);if(p){let m=p[1]==="int",g=parseInt(p[2]||"256");return(0,n.assertArgument)((!p[2]||p[2]===String(g))&&g%8===0&&g!==0&&g<=256,"invalid number type","type",d),f&&(g=256),m&&(h=(0,n.toTwos)(h,g)),(0,n.getBytes)((0,n.zeroPadValue)((0,n.toBeArray)(h),g/8))}if(p=d.match(r),p){const m=parseInt(p[1]);return(0,n.assertArgument)(String(m)===p[1]&&m!==0&&m<=32,"invalid bytes type","type",d),(0,n.assertArgument)((0,n.dataLength)(h)===m,`invalid value for ${d}`,"value",h),f?(0,n.getBytes)((0,n.zeroPadBytes)(h,32)):h}if(p=d.match(o),p&&Array.isArray(h)){const m=p[1],g=parseInt(p[2]||String(h.length));(0,n.assertArgument)(g===h.length,`invalid array length for ${d}`,"value",h);const v=[];return h.forEach(function(A){v.push(s(m,A,!0))}),(0,n.getBytes)((0,n.concat)(v))}(0,n.assertArgument)(!1,"invalid type","type",d)}function l(d,h){(0,n.assertArgument)(d.length===h.length,"wrong number of values; expected ${ types.length }","values",h);const f=[];return d.forEach(function(p,m){f.push(s(p,h[m]))}),(0,n.hexlify)((0,n.concat)(f))}Kk.solidityPacked=l;function c(d,h){return(0,e.keccak256)(l(d,h))}Kk.solidityPackedKeccak256=c;function u(d,h){return(0,e.sha256)(l(d,h))}return Kk.solidityPackedSha256=u,Kk}var SL={},u7t;function qKo(){var _,C,R,k,yJn;if(u7t)return SL;u7t=1,Object.defineProperty(SL,"__esModule",{value:!0}),SL.verifyTypedData=SL.TypedDataEncoder=void 0;const t=Am(),e=bg(),n=cb(),r=Oi(),a=gJn(),o=new Uint8Array(32);o.fill(0);const s=BigInt(-1),l=BigInt(0),c=BigInt(1),u=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function d(L){const I=(0,r.getBytes)(L),b=I.length%32;return b?(0,r.concat)([I,o.slice(b)]):(0,r.hexlify)(I)}const h=(0,r.toBeHex)(c,32),f=(0,r.toBeHex)(l,32),p={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},m=["name","version","chainId","verifyingContract","salt"];function g(L){return function(I){return(0,r.assertArgument)(typeof I=="string",`invalid domain value for ${JSON.stringify(L)}`,`domain.${L}`,I),I}}const v={name:g("name"),version:g("version"),chainId:function(L){const I=(0,r.getBigInt)(L,"domain.chainId");return(0,r.assertArgument)(I>=0,"invalid chain ID","domain.chainId",L),Number.isSafeInteger(I)?Number(I):(0,r.toQuantity)(I)},verifyingContract:function(L){try{return(0,t.getAddress)(L).toLowerCase()}catch{}(0,r.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",L)},salt:function(L){const I=(0,r.getBytes)(L,"domain.salt");return(0,r.assertArgument)(I.length===32,'invalid domain value "salt"',"domain.salt",L),(0,r.hexlify)(I)}};function A(L){{const I=L.match(/^(u?)int(\d+)$/);if(I){const b=I[1]==="",T=parseInt(I[2]);(0,r.assertArgument)(T%8===0&&T!==0&&T<=256&&I[2]===String(T),"invalid numeric width","type",L);const M=(0,r.mask)(u,b?T-1:T),D=b?(M+c)*s:l;return function(B){const j=(0,r.getBigInt)(B,"value");return(0,r.assertArgument)(j>=D&&j<=M,`value out-of-bounds for ${L}`,"value",j),(0,r.toBeHex)(b?(0,r.toTwos)(j,256):j,32)}}}{const I=L.match(/^bytes(\d+)$/);if(I){const b=parseInt(I[1]);return(0,r.assertArgument)(b!==0&&b<=32&&I[1]===String(b),"invalid bytes width","type",L),function(T){const M=(0,r.getBytes)(T);return(0,r.assertArgument)(M.length===b,`invalid length for ${L}`,"value",T),d(T)}}}switch(L){case"address":return function(I){return(0,r.zeroPadValue)((0,t.getAddress)(I),32)};case"bool":return function(I){return I?h:f};case"bytes":return function(I){return(0,e.keccak256)(I)};case"string":return function(I){return(0,a.id)(I)}}return null}function y(L,I){return`${L}(${I.map(({name:b,type:T})=>T+" "+b).join(",")})`}function S(L){const I=L.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return I?{base:I[1],index:I[2]+I[4],array:{base:I[1],prefix:I[1]+I[2],count:I[5]?parseInt(I[5]):-1}}:{base:L}}const N=class N{constructor(I){Wt(this,k);Ut(this,"primaryType");Wt(this,_,void 0);Wt(this,C,void 0);Wt(this,R,void 0);tt(this,C,new Map),tt(this,R,new Map);const b=new Map,T=new Map,M=new Map,D={};Object.keys(I).forEach(H=>{D[H]=I[H].map(({name:U,type:$})=>{let{base:z,index:Z}=S($);return z==="int"&&!I.int&&(z="int256"),z==="uint"&&!I.uint&&(z="uint256"),{name:U,type:z+(Z||"")}}),b.set(H,new Set),T.set(H,[]),M.set(H,new Set)}),tt(this,_,JSON.stringify(D));for(const H in D){const U=new Set;for(const $ of D[H]){(0,r.assertArgument)(!U.has($.name),`duplicate variable name ${JSON.stringify($.name)} in ${JSON.stringify(H)}`,"types",I),U.add($.name);const z=S($.type).base;(0,r.assertArgument)(z!==H,`circular type reference to ${JSON.stringify(z)}`,"types",I),!A(z)&&((0,r.assertArgument)(T.has(z),`unknown type ${JSON.stringify(z)}`,"types",I),T.get(z).push(H),b.get(H).add(z))}}const B=Array.from(T.keys()).filter(H=>T.get(H).length===0);(0,r.assertArgument)(B.length!==0,"missing primary type","types",I),(0,r.assertArgument)(B.length===1,`ambiguous primary types or unused types: ${B.map(H=>JSON.stringify(H)).join(", ")}`,"types",I),(0,r.defineProperties)(this,{primaryType:B[0]});function j(H,U){(0,r.assertArgument)(!U.has(H),`circular type reference to ${JSON.stringify(H)}`,"types",I),U.add(H);for(const $ of b.get(H))if(T.has($)){j($,U);for(const z of U)M.get(z).add($)}U.delete(H)}j(this.primaryType,new Set);for(const[H,U]of M){const $=Array.from(U);$.sort(),Le(this,C).set(H,y(H,D[H])+$.map(z=>y(z,D[z])).join(""))}}get types(){return JSON.parse(Le(this,_))}getEncoder(I){let b=Le(this,R).get(I);return b||(b=qn(this,k,yJn).call(this,I),Le(this,R).set(I,b)),b}encodeType(I){const b=Le(this,C).get(I);return(0,r.assertArgument)(b,`unknown type: ${JSON.stringify(I)}`,"name",I),b}encodeData(I,b){return this.getEncoder(I)(b)}hashStruct(I,b){return(0,e.keccak256)(this.encodeData(I,b))}encode(I){return this.encodeData(this.primaryType,I)}hash(I){return this.hashStruct(this.primaryType,I)}_visit(I,b,T){if(A(I))return T(I,b);const M=S(I).array;if(M)return(0,r.assertArgument)(M.count===-1||M.count===b.length,`array length mismatch; expected length ${M.count}`,"value",b),b.map(B=>this._visit(M.prefix,B,T));const D=this.types[I];if(D)return D.reduce((B,{name:j,type:H})=>(B[j]=this._visit(H,b[j],T),B),{});(0,r.assertArgument)(!1,`unknown type: ${I}`,"type",I)}visit(I,b){return this._visit(this.primaryType,I,b)}static from(I){return new N(I)}static getPrimaryType(I){return N.from(I).primaryType}static hashStruct(I,b,T){return N.from(b).hashStruct(I,T)}static hashDomain(I){const b=[];for(const T in I){if(I[T]==null)continue;const M=p[T];(0,r.assertArgument)(M,`invalid typed-data domain key: ${JSON.stringify(T)}`,"domain",I),b.push({name:T,type:M})}return b.sort((T,M)=>m.indexOf(T.name)-m.indexOf(M.name)),N.hashStruct("EIP712Domain",{EIP712Domain:b},I)}static encode(I,b,T){return(0,r.concat)(["0x1901",N.hashDomain(I),N.from(b).hash(T)])}static hash(I,b,T){return(0,e.keccak256)(N.encode(I,b,T))}static async resolveNames(I,b,T,M){I=Object.assign({},I);for(const j in I)I[j]==null&&delete I[j];const D={};I.verifyingContract&&!(0,r.isHexString)(I.verifyingContract,20)&&(D[I.verifyingContract]="0x");const B=N.from(b);B.visit(T,(j,H)=>(j==="address"&&!(0,r.isHexString)(H,20)&&(D[H]="0x"),H));for(const j in D)D[j]=await M(j);return I.verifyingContract&&D[I.verifyingContract]&&(I.verifyingContract=D[I.verifyingContract]),T=B.visit(T,(j,H)=>j==="address"&&D[H]?D[H]:H),{domain:I,value:T}}static getPayload(I,b,T){N.hashDomain(I);const M={},D=[];m.forEach(H=>{const U=I[H];U!=null&&(M[H]=v[H](U),D.push({name:H,type:p[H]}))});const B=N.from(b);b=B.types;const j=Object.assign({},b);return(0,r.assertArgument)(j.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",b),j.EIP712Domain=D,B.encode(T),{types:j,domain:M,primaryType:B.primaryType,message:B.visit(T,(H,U)=>{if(H.match(/^bytes(\d*)/))return(0,r.hexlify)((0,r.getBytes)(U));if(H.match(/^u?int/))return(0,r.getBigInt)(U).toString();switch(H){case"address":return U.toLowerCase();case"bool":return!!U;case"string":return(0,r.assertArgument)(typeof U=="string","invalid string","value",U),U}(0,r.assertArgument)(!1,"unsupported type","type",H)})}}};_=new WeakMap,C=new WeakMap,R=new WeakMap,k=new WeakSet,yJn=function(I){{const M=A(I);if(M)return M}const b=S(I).array;if(b){const M=b.prefix,D=this.getEncoder(M);return B=>{(0,r.assertArgument)(b.count===-1||b.count===B.length,`array length mismatch; expected length ${b.count}`,"value",B);let j=B.map(D);return Le(this,C).has(M)&&(j=j.map(e.keccak256)),(0,e.keccak256)((0,r.concat)(j))}}const T=this.types[I];if(T){const M=(0,a.id)(Le(this,C).get(I));return D=>{const B=T.map(({name:j,type:H})=>{const U=this.getEncoder(H)(D[j]);return Le(this,C).has(H)?(0,e.keccak256)(U):U});return B.unshift(M),(0,r.concat)(B)}}(0,r.assertArgument)(!1,`unknown type: ${I}`,"type",I)};let x=N;SL.TypedDataEncoder=x;function w(L,I,b,T){return(0,n.recoverAddress)(x.hash(L,I,b),T)}return SL.verifyTypedData=w,SL}var d7t;function CN(){return d7t||(d7t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=void 0;var e=gJn();Object.defineProperty(t,"id",{enumerable:!0,get:function(){return e.id}});var n=VKo();Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return n.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return n.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return n.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return n.dnsEncode}});var r=WKo();Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return r.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return r.verifyMessage}});var a=QKo();Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return a.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return a.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return a.solidityPackedSha256}});var o=qKo();Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return o.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return o.verifyTypedData}})}(H$e)),H$e}var h7t;function Dut(){var de,ce,Ee,vqe,ze,Rge;if(h7t)return Ih;h7t=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.StructFragment=Ih.FunctionFragment=Ih.FallbackFragment=Ih.ConstructorFragment=Ih.EventFragment=Ih.ErrorFragment=Ih.NamedFragment=Ih.Fragment=Ih.ParamType=void 0;const t=Oi(),e=CN();function n(me){const le=new Set;return me.forEach(pe=>le.add(pe)),Object.freeze(le)}const a=n("external public payable override".split(" ")),o="constant external internal payable private public pure view override",s=n(o.split(" ")),l="constructor error event fallback function receive struct",c=n(l.split(" ")),u="calldata memory storage payable indexed",d=n(u.split(" ")),f=[l,u,"tuple returns",o].join(" "),p=n(f.split(" ")),m={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},g=new RegExp("^(\\s*)"),v=new RegExp("^([0-9]+)"),A=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),y=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),S=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$"),Be=class Be{constructor(le){Wt(this,Ee);Wt(this,de,void 0);Wt(this,ce,void 0);tt(this,de,0),tt(this,ce,le.slice())}get offset(){return Le(this,de)}get length(){return Le(this,ce).length-Le(this,de)}clone(){return new Be(Le(this,ce))}reset(){tt(this,de,0)}popKeyword(le){const pe=this.peek();if(pe.type!=="KEYWORD"||!le.has(pe.text))throw new Error(`expected keyword ${pe.text}`);return this.pop().text}popType(le){if(this.peek().type!==le){const pe=this.peek();throw new Error(`expected ${le}; got ${pe.type} ${JSON.stringify(pe.text)}`)}return this.pop().text}popParen(){const le=this.peek();if(le.type!=="OPEN_PAREN")throw new Error("bad start");const pe=qn(this,Ee,vqe).call(this,Le(this,de)+1,le.match+1);return tt(this,de,le.match+1),pe}popParams(){const le=this.peek();if(le.type!=="OPEN_PAREN")throw new Error("bad start");const pe=[];for(;Le(this,de)<le.match-1;){const Ne=this.peek().linkNext;pe.push(qn(this,Ee,vqe).call(this,Le(this,de)+1,Ne)),tt(this,de,Ne)}return tt(this,de,le.match+1),pe}peek(){if(Le(this,de)>=Le(this,ce).length)throw new Error("out-of-bounds");return Le(this,ce)[Le(this,de)]}peekKeyword(le){const pe=this.peekType("KEYWORD");return pe!=null&&le.has(pe)?pe:null}peekType(le){if(this.length===0)return null;const pe=this.peek();return pe.type===le?pe.text:null}pop(){const le=this.peek();return Z9(this,de)._++,le}toString(){const le=[];for(let pe=Le(this,de);pe<Le(this,ce).length;pe++){const Ne=Le(this,ce)[pe];le.push(`${Ne.type}:${Ne.text}`)}return`<TokenString ${le.join(" ")}>`}};de=new WeakMap,ce=new WeakMap,Ee=new WeakSet,vqe=function(le=0,pe=0){return new Be(Le(this,ce).slice(le,pe).map(Ne=>Object.freeze(Object.assign({},Ne,{match:Ne.match-le,linkBack:Ne.linkBack-le,linkNext:Ne.linkNext-le}))))};let x=Be;function w(me){const le=[],pe=se=>{const oe=ue<me.length?JSON.stringify(me[ue]):"$EOI";throw new Error(`invalid token ${oe} at ${ue}: ${se}`)};let Ne=[],_e=[],ue=0;for(;ue<me.length;){let se=me.substring(ue),oe=se.match(g);oe&&(ue+=oe[1].length,se=me.substring(ue));const ge={depth:Ne.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:ue,value:-1};le.push(ge);let De=m[se[0]]||"";if(De){if(ge.type=De,ge.text=se[0],ue++,De==="OPEN_PAREN")Ne.push(le.length-1),_e.push(le.length-1);else if(De=="CLOSE_PAREN")Ne.length===0&&pe("no matching open bracket"),ge.match=Ne.pop(),le[ge.match].match=le.length-1,ge.depth--,ge.linkBack=_e.pop(),le[ge.linkBack].linkNext=le.length-1;else if(De==="COMMA")ge.linkBack=_e.pop(),le[ge.linkBack].linkNext=le.length-1,_e.push(le.length-1);else if(De==="OPEN_BRACKET")ge.type="BRACKET";else if(De==="CLOSE_BRACKET"){let Fe=le.pop().text;if(le.length>0&&le[le.length-1].type==="NUMBER"){const Se=le.pop().text;Fe=Se+Fe,le[le.length-1].value=(0,t.getNumber)(Se)}if(le.length===0||le[le.length-1].type!=="BRACKET")throw new Error("missing opening bracket");le[le.length-1].text+=Fe}continue}if(oe=se.match(A),oe){if(ge.text=oe[1],ue+=ge.text.length,p.has(ge.text)){ge.type="KEYWORD";continue}if(ge.text.match(S)){ge.type="TYPE";continue}ge.type="ID";continue}if(oe=se.match(v),oe){ge.text=oe[1],ge.type="NUMBER",ue+=ge.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(se[0])} at position ${ue}`)}return new x(le.map(se=>Object.freeze(se)))}function _(me,le){let pe=[];for(const Ne in le.keys())me.has(Ne)&&pe.push(Ne);if(pe.length>1)throw new Error(`conflicting types: ${pe.join(", ")}`)}function C(me,le){if(le.peekKeyword(c)){const pe=le.pop().text;if(pe!==me)throw new Error(`expected ${me}, got ${pe}`)}return le.popType("ID")}function R(me,le){const pe=new Set;for(;;){const Ne=me.peekType("KEYWORD");if(Ne==null||le&&!le.has(Ne))break;if(me.pop(),pe.has(Ne))throw new Error(`duplicate keywords: ${JSON.stringify(Ne)}`);pe.add(Ne)}return Object.freeze(pe)}function k(me){let le=R(me,s);return _(le,n("constant payable nonpayable".split(" "))),_(le,n("pure view payable nonpayable".split(" "))),le.has("view")?"view":le.has("pure")?"pure":le.has("payable")?"payable":le.has("nonpayable")?"nonpayable":le.has("constant")?"view":"nonpayable"}function P(me,le){return me.popParams().map(pe=>Z.from(pe,le))}function N(me){if(me.peekType("AT")){if(me.pop(),me.peekType("NUMBER"))return(0,t.getBigInt)(me.pop().text);throw new Error("invalid gas")}return null}function L(me){if(me.length)throw new Error(`unexpected tokens at offset ${me.offset}: ${me.toString()}`)}const I=new RegExp(/^(.*)\[([0-9]*)\]$/);function b(me){const le=me.match(S);if((0,t.assertArgument)(le,"invalid type","type",me),me==="uint")return"uint256";if(me==="int")return"int256";if(le[2]){const pe=parseInt(le[2]);(0,t.assertArgument)(pe!==0&&pe<=32,"invalid bytes length","type",me)}else if(le[3]){const pe=parseInt(le[3]);(0,t.assertArgument)(pe!==0&&pe<=256&&pe%8===0,"invalid numeric width","type",me)}return me}const T={},M=Symbol.for("_ethers_internal"),D="_ParamTypeInternal",B="_ErrorInternal",j="_EventInternal",H="_ConstructorInternal",U="_FallbackInternal",$="_FunctionInternal",z="_StructInternal",ye=class ye{constructor(le,pe,Ne,_e,ue,se,oe,ge){Wt(this,ze);Ut(this,"name");Ut(this,"type");Ut(this,"baseType");Ut(this,"indexed");Ut(this,"components");Ut(this,"arrayLength");Ut(this,"arrayChildren");if((0,t.assertPrivate)(le,T,"ParamType"),Object.defineProperty(this,M,{value:D}),se&&(se=Object.freeze(se.slice())),_e==="array"){if(oe==null||ge==null)throw new Error("")}else if(oe!=null||ge!=null)throw new Error("");if(_e==="tuple"){if(se==null)throw new Error("")}else if(se!=null)throw new Error("");(0,t.defineProperties)(this,{name:pe,type:Ne,baseType:_e,indexed:ue,components:se,arrayLength:oe,arrayChildren:ge})}format(le){if(le==null&&(le="sighash"),le==="json"){const Ne=this.name||"";if(this.isArray()){const ue=JSON.parse(this.arrayChildren.format("json"));return ue.name=Ne,ue.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(ue)}const _e={type:this.baseType==="tuple"?"tuple":this.type,name:Ne};return typeof this.indexed=="boolean"&&(_e.indexed=this.indexed),this.isTuple()&&(_e.components=this.components.map(ue=>JSON.parse(ue.format(le)))),JSON.stringify(_e)}let pe="";return this.isArray()?(pe+=this.arrayChildren.format(le),pe+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?pe+="("+this.components.map(Ne=>Ne.format(le)).join(le==="full"?", ":",")+")":pe+=this.type,le!=="sighash"&&(this.indexed===!0&&(pe+=" indexed"),le==="full"&&this.name&&(pe+=" "+this.name)),pe}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(le,pe){if(this.isArray()){if(!Array.isArray(le))throw new Error("invalid array value");if(this.arrayLength!==-1&&le.length!==this.arrayLength)throw new Error("array is wrong length");const Ne=this;return le.map(_e=>Ne.arrayChildren.walk(_e,pe))}if(this.isTuple()){if(!Array.isArray(le))throw new Error("invalid tuple value");if(le.length!==this.components.length)throw new Error("array is wrong length");const Ne=this;return le.map((_e,ue)=>Ne.components[ue].walk(_e,pe))}return pe(this.type,le)}async walkAsync(le,pe){const Ne=[],_e=[le];return qn(this,ze,Rge).call(this,Ne,le,pe,ue=>{_e[0]=ue}),Ne.length&&await Promise.all(Ne),_e[0]}static from(le,pe){if(ye.isParamType(le))return le;if(typeof le=="string")try{return ye.from(w(le),pe)}catch{(0,t.assertArgument)(!1,"invalid param type","obj",le)}else if(le instanceof x){let oe="",ge="",De=null;R(le,n(["tuple"])).has("tuple")||le.peekType("OPEN_PAREN")?(ge="tuple",De=le.popParams().map(mt=>ye.from(mt)),oe=`tuple(${De.map(mt=>mt.format()).join(",")})`):(oe=b(le.popType("TYPE")),ge=oe);let Fe=null,Se=null;for(;le.length&&le.peekType("BRACKET");){const mt=le.pop();Fe=new ye(T,"",oe,ge,null,De,Se,Fe),Se=mt.value,oe+=mt.text,ge="array",De=null}let Xe=null;if(R(le,d).has("indexed")){if(!pe)throw new Error("");Xe=!0}const Ye=le.peekType("ID")?le.pop().text:"";if(le.length)throw new Error("leftover tokens");return new ye(T,Ye,oe,ge,Xe,De,Se,Fe)}const Ne=le.name;(0,t.assertArgument)(!Ne||typeof Ne=="string"&&Ne.match(y),"invalid name","obj.name",Ne);let _e=le.indexed;_e!=null&&((0,t.assertArgument)(pe,"parameter cannot be indexed","obj.indexed",le.indexed),_e=!!_e);let ue=le.type,se=ue.match(I);if(se){const oe=parseInt(se[2]||"-1"),ge=ye.from({type:se[1],components:le.components});return new ye(T,Ne||"",ue,"array",_e,null,oe,ge)}if(ue==="tuple"||ue.startsWith("tuple(")||ue.startsWith("(")){const oe=le.components!=null?le.components.map(De=>ye.from(De)):null;return new ye(T,Ne||"",ue,"tuple",_e,oe,null,null)}return ue=b(le.type),new ye(T,Ne||"",ue,ue,_e,null,null,null)}static isParamType(le){return le&&le[M]===D}};ze=new WeakSet,Rge=function(le,pe,Ne,_e){if(this.isArray()){if(!Array.isArray(pe))throw new Error("invalid array value");if(this.arrayLength!==-1&&pe.length!==this.arrayLength)throw new Error("array is wrong length");const se=this.arrayChildren,oe=pe.slice();oe.forEach((ge,De)=>{var Fe;qn(Fe=se,ze,Rge).call(Fe,le,ge,Ne,Se=>{oe[De]=Se})}),_e(oe);return}if(this.isTuple()){const se=this.components;let oe;if(Array.isArray(pe))oe=pe.slice();else{if(pe==null||typeof pe!="object")throw new Error("invalid tuple value");oe=se.map(ge=>{if(!ge.name)throw new Error("cannot use object value with unnamed components");if(!(ge.name in pe))throw new Error(`missing value for component ${ge.name}`);return pe[ge.name]})}if(oe.length!==this.components.length)throw new Error("array is wrong length");oe.forEach((ge,De)=>{var Fe;qn(Fe=se[De],ze,Rge).call(Fe,le,ge,Ne,Se=>{oe[De]=Se})}),_e(oe);return}const ue=Ne(this.type,pe);ue.then?le.push(async function(){_e(await ue)}()):_e(ue)};let Z=ye;Ih.ParamType=Z;class K{constructor(le,pe,Ne){Ut(this,"type");Ut(this,"inputs");(0,t.assertPrivate)(le,T,"Fragment"),Ne=Object.freeze(Ne.slice()),(0,t.defineProperties)(this,{type:pe,inputs:Ne})}static from(le){if(typeof le=="string"){try{K.from(JSON.parse(le))}catch{}return K.from(w(le))}if(le instanceof x)switch(le.peekKeyword(c)){case"constructor":return J.from(le);case"error":return X.from(le);case"event":return te.from(le);case"fallback":case"receive":return ne.from(le);case"function":return ie.from(le);case"struct":return he.from(le)}else if(typeof le=="object"){switch(le.type){case"constructor":return J.from(le);case"error":return X.from(le);case"event":return te.from(le);case"fallback":case"receive":return ne.from(le);case"function":return ie.from(le);case"struct":return he.from(le)}(0,t.assert)(!1,`unsupported type: ${le.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,t.assertArgument)(!1,"unsupported frgament object","obj",le)}static isConstructor(le){return J.isFragment(le)}static isError(le){return X.isFragment(le)}static isEvent(le){return te.isFragment(le)}static isFunction(le){return ie.isFragment(le)}static isStruct(le){return he.isFragment(le)}}Ih.Fragment=K;class Q extends K{constructor(pe,Ne,_e,ue){super(pe,Ne,ue);Ut(this,"name");(0,t.assertArgument)(typeof _e=="string"&&_e.match(y),"invalid identifier","name",_e),ue=Object.freeze(ue.slice()),(0,t.defineProperties)(this,{name:_e})}}Ih.NamedFragment=Q;function ee(me,le){return"("+le.map(pe=>pe.format(me)).join(me==="full"?", ":",")+")"}class X extends Q{constructor(le,pe,Ne){super(le,"error",pe,Ne),Object.defineProperty(this,M,{value:B})}get selector(){return(0,e.id)(this.format("sighash")).substring(0,10)}format(le){if(le==null&&(le="sighash"),le==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(Ne=>JSON.parse(Ne.format(le)))});const pe=[];return le!=="sighash"&&pe.push("error"),pe.push(this.name+ee(le,this.inputs)),pe.join(" ")}static from(le){if(X.isFragment(le))return le;if(typeof le=="string")return X.from(w(le));if(le instanceof x){const pe=C("error",le),Ne=P(le);return L(le),new X(T,pe,Ne)}return new X(T,le.name,le.inputs?le.inputs.map(Z.from):[])}static isFragment(le){return le&&le[M]===B}}Ih.ErrorFragment=X;class te extends Q{constructor(pe,Ne,_e,ue){super(pe,"event",Ne,_e);Ut(this,"anonymous");Object.defineProperty(this,M,{value:j}),(0,t.defineProperties)(this,{anonymous:ue})}get topicHash(){return(0,e.id)(this.format("sighash"))}format(pe){if(pe==null&&(pe="sighash"),pe==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(_e=>JSON.parse(_e.format(pe)))});const Ne=[];return pe!=="sighash"&&Ne.push("event"),Ne.push(this.name+ee(pe,this.inputs)),pe!=="sighash"&&this.anonymous&&Ne.push("anonymous"),Ne.join(" ")}static getTopicHash(pe,Ne){return Ne=(Ne||[]).map(ue=>Z.from(ue)),new te(T,pe,Ne,!1).topicHash}static from(pe){if(te.isFragment(pe))return pe;if(typeof pe=="string")try{return te.from(w(pe))}catch{(0,t.assertArgument)(!1,"invalid event fragment","obj",pe)}else if(pe instanceof x){const Ne=C("event",pe),_e=P(pe,!0),ue=!!R(pe,n(["anonymous"])).has("anonymous");return L(pe),new te(T,Ne,_e,ue)}return new te(T,pe.name,pe.inputs?pe.inputs.map(Ne=>Z.from(Ne,!0)):[],!!pe.anonymous)}static isFragment(pe){return pe&&pe[M]===j}}Ih.EventFragment=te;class J extends K{constructor(pe,Ne,_e,ue,se){super(pe,Ne,_e);Ut(this,"payable");Ut(this,"gas");Object.defineProperty(this,M,{value:H}),(0,t.defineProperties)(this,{payable:ue,gas:se})}format(pe){if((0,t.assert)(pe!=null&&pe!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),pe==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(_e=>JSON.parse(_e.format(pe)))});const Ne=[`constructor${ee(pe,this.inputs)}`];return this.payable&&Ne.push("payable"),this.gas!=null&&Ne.push(`@${this.gas.toString()}`),Ne.join(" ")}static from(pe){if(J.isFragment(pe))return pe;if(typeof pe=="string")try{return J.from(w(pe))}catch{(0,t.assertArgument)(!1,"invalid constuctor fragment","obj",pe)}else if(pe instanceof x){R(pe,n(["constructor"]));const Ne=P(pe),_e=!!R(pe,a).has("payable"),ue=N(pe);return L(pe),new J(T,"constructor",Ne,_e,ue)}return new J(T,"constructor",pe.inputs?pe.inputs.map(Z.from):[],!!pe.payable,pe.gas!=null?pe.gas:null)}static isFragment(pe){return pe&&pe[M]===H}}Ih.ConstructorFragment=J;class ne extends K{constructor(pe,Ne,_e){super(pe,"fallback",Ne);Ut(this,"payable");Object.defineProperty(this,M,{value:U}),(0,t.defineProperties)(this,{payable:_e})}format(pe){const Ne=this.inputs.length===0?"receive":"fallback";if(pe==="json"){const _e=this.payable?"payable":"nonpayable";return JSON.stringify({type:Ne,stateMutability:_e})}return`${Ne}()${this.payable?" payable":""}`}static from(pe){if(ne.isFragment(pe))return pe;if(typeof pe=="string")try{return ne.from(w(pe))}catch{(0,t.assertArgument)(!1,"invalid fallback fragment","obj",pe)}else if(pe instanceof x){const Ne=pe.toString(),_e=pe.peekKeyword(n(["fallback","receive"]));if((0,t.assertArgument)(_e,"type must be fallback or receive","obj",Ne),pe.popKeyword(n(["fallback","receive"]))==="receive"){const ge=P(pe);return(0,t.assertArgument)(ge.length===0,"receive cannot have arguments","obj.inputs",ge),R(pe,n(["payable"])),L(pe),new ne(T,[],!0)}let se=P(pe);se.length?(0,t.assertArgument)(se.length===1&&se[0].type==="bytes","invalid fallback inputs","obj.inputs",se.map(ge=>ge.format("minimal")).join(", ")):se=[Z.from("bytes")];const oe=k(pe);if((0,t.assertArgument)(oe==="nonpayable"||oe==="payable","fallback cannot be constants","obj.stateMutability",oe),R(pe,n(["returns"])).has("returns")){const ge=P(pe);(0,t.assertArgument)(ge.length===1&&ge[0].type==="bytes","invalid fallback outputs","obj.outputs",ge.map(De=>De.format("minimal")).join(", "))}return L(pe),new ne(T,se,oe==="payable")}if(pe.type==="receive")return new ne(T,[],!0);if(pe.type==="fallback"){const Ne=[Z.from("bytes")],_e=pe.stateMutability==="payable";return new ne(T,Ne,_e)}(0,t.assertArgument)(!1,"invalid fallback description","obj",pe)}static isFragment(pe){return pe&&pe[M]===U}}Ih.FallbackFragment=ne;class ie extends Q{constructor(pe,Ne,_e,ue,se,oe){super(pe,"function",Ne,ue);Ut(this,"constant");Ut(this,"outputs");Ut(this,"stateMutability");Ut(this,"payable");Ut(this,"gas");Object.defineProperty(this,M,{value:$}),se=Object.freeze(se.slice());const ge=_e==="view"||_e==="pure",De=_e==="payable";(0,t.defineProperties)(this,{constant:ge,gas:oe,outputs:se,payable:De,stateMutability:_e})}get selector(){return(0,e.id)(this.format("sighash")).substring(0,10)}format(pe){if(pe==null&&(pe="sighash"),pe==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(_e=>JSON.parse(_e.format(pe))),outputs:this.outputs.map(_e=>JSON.parse(_e.format(pe)))});const Ne=[];return pe!=="sighash"&&Ne.push("function"),Ne.push(this.name+ee(pe,this.inputs)),pe!=="sighash"&&(this.stateMutability!=="nonpayable"&&Ne.push(this.stateMutability),this.outputs&&this.outputs.length&&(Ne.push("returns"),Ne.push(ee(pe,this.outputs))),this.gas!=null&&Ne.push(`@${this.gas.toString()}`)),Ne.join(" ")}static getSelector(pe,Ne){return Ne=(Ne||[]).map(ue=>Z.from(ue)),new ie(T,pe,"view",Ne,[],null).selector}static from(pe){if(ie.isFragment(pe))return pe;if(typeof pe=="string")try{return ie.from(w(pe))}catch{(0,t.assertArgument)(!1,"invalid function fragment","obj",pe)}else if(pe instanceof x){const _e=C("function",pe),ue=P(pe),se=k(pe);let oe=[];R(pe,n(["returns"])).has("returns")&&(oe=P(pe));const ge=N(pe);return L(pe),new ie(T,_e,se,ue,oe,ge)}let Ne=pe.stateMutability;return Ne==null&&(Ne="payable",typeof pe.constant=="boolean"?(Ne="view",pe.constant||(Ne="payable",typeof pe.payable=="boolean"&&!pe.payable&&(Ne="nonpayable"))):typeof pe.payable=="boolean"&&!pe.payable&&(Ne="nonpayable")),new ie(T,pe.name,Ne,pe.inputs?pe.inputs.map(Z.from):[],pe.outputs?pe.outputs.map(Z.from):[],pe.gas!=null?pe.gas:null)}static isFragment(pe){return pe&&pe[M]===$}}Ih.FunctionFragment=ie;class he extends Q{constructor(le,pe,Ne){super(le,"struct",pe,Ne),Object.defineProperty(this,M,{value:z})}format(){throw new Error("@TODO")}static from(le){if(typeof le=="string")try{return he.from(w(le))}catch{(0,t.assertArgument)(!1,"invalid struct fragment","obj",le)}else if(le instanceof x){const pe=C("struct",le),Ne=P(le);return L(le),new he(T,pe,Ne)}return new he(T,le.name,le.inputs?le.inputs.map(Z.from):[])}static isFragment(le){return le&&le[M]===z}}return Ih.StructFragment=he,Ih}var f7t;function bJn(){var w,wF;if(f7t)return wY;f7t=1,Object.defineProperty(wY,"__esModule",{value:!0}),wY.AbiCoder=void 0;const t=Oi(),e=o_(),n=BKo(),r=pJn(),a=$Ko(),o=mJn(),s=FKo(),l=jKo(),c=HKo(),u=UKo(),d=zKo(),h=Dut(),f=Am(),p=Oi(),m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");const g=new RegExp(/^bytes([0-9]*)$/),v=new RegExp(/^(u?int)([0-9]*)$/);let A=null,y=1024;function S(R,k,P,N){let L="missing revert data",I=null;const b=null;let T=null;if(P){L="execution reverted";const D=(0,p.getBytes)(P);if(P=(0,p.hexlify)(P),D.length===0)L+=" (no data present; likely require(false) occurred",I="require(false)";else if(D.length%32!==4)L+=" (could not decode reason; invalid data length)";else if((0,p.hexlify)(D.slice(0,4))==="0x08c379a0")try{I=N.decode(["string"],D.slice(4))[0],T={signature:"Error(string)",name:"Error",args:[I]},L+=`: ${JSON.stringify(I)}`}catch{L+=" (could not decode reason; invalid string data)"}else if((0,p.hexlify)(D.slice(0,4))==="0x4e487b71")try{const B=Number(N.decode(["uint256"],D.slice(4))[0]);T={signature:"Panic(uint256)",name:"Panic",args:[B]},I=`Panic due to ${m.get(B)||"UNKNOWN"}(${B})`,L+=`: ${I}`}catch{L+=" (could not decode panic code)"}else L+=" (unknown custom error)"}const M={to:k.to?(0,f.getAddress)(k.to):null,data:k.data||"0x"};return k.from&&(M.from=(0,f.getAddress)(k.from)),(0,p.makeError)(L,"CALL_EXCEPTION",{action:R,data:P,reason:I,transaction:M,invocation:b,revert:T})}const C=class C{constructor(){Wt(this,w)}getDefaultValue(k){const P=k.map(L=>qn(this,w,wF).call(this,h.ParamType.from(L)));return new d.TupleCoder(P,"_").defaultValue()}encode(k,P){(0,t.assertArgumentCount)(P.length,k.length,"types/values length mismatch");const N=k.map(b=>qn(this,w,wF).call(this,h.ParamType.from(b))),L=new d.TupleCoder(N,"_"),I=new e.Writer;return L.encode(I,P),I.data}decode(k,P,N){const L=k.map(b=>qn(this,w,wF).call(this,h.ParamType.from(b)));return new d.TupleCoder(L,"_").decode(new e.Reader(P,N,y))}static _setDefaultMaxInflation(k){(0,t.assertArgument)(typeof k=="number"&&Number.isInteger(k),"invalid defaultMaxInflation factor","value",k),y=k}static defaultAbiCoder(){return A==null&&(A=new C),A}static getBuiltinCallException(k,P,N){return S(k,P,N,C.defaultAbiCoder())}};w=new WeakSet,wF=function(k){if(k.isArray())return new r.ArrayCoder(qn(this,w,wF).call(this,k.arrayChildren),k.arrayLength,k.name);if(k.isTuple())return new d.TupleCoder(k.components.map(N=>qn(this,w,wF).call(this,N)),k.name);switch(k.baseType){case"address":return new n.AddressCoder(k.name);case"bool":return new a.BooleanCoder(k.name);case"string":return new u.StringCoder(k.name);case"bytes":return new o.BytesCoder(k.name);case"":return new l.NullCoder(k.name)}let P=k.type.match(v);if(P){let N=parseInt(P[2]||"256");return(0,t.assertArgument)(N!==0&&N<=256&&N%8===0,"invalid "+P[1]+" bit length","param",k),new c.NumberCoder(N/8,P[1]==="int",k.name)}if(P=k.type.match(g),P){let N=parseInt(P[1]);return(0,t.assertArgument)(N!==0&&N<=32,"invalid bytes length","param",k),new s.FixedBytesCoder(N,k.name)}(0,t.assertArgument)(!1,"invalid type","type",k.type)};let x=C;return wY.AbiCoder=x,wY}var wL={},p7t;function YKo(){if(p7t)return wL;p7t=1,Object.defineProperty(wL,"__esModule",{value:!0}),wL.decodeBytes32String=wL.encodeBytes32String=void 0;const t=Oi();function e(r){const a=(0,t.toUtf8Bytes)(r);if(a.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,t.zeroPadBytes)(a,32)}wL.encodeBytes32String=e;function n(r){const a=(0,t.getBytes)(r,"bytes");if(a.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(a[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let o=31;for(;a[o-1]===0;)o--;return(0,t.toUtf8String)(a.slice(0,o))}return wL.decodeBytes32String=n,wL}var z$e={},m7t;function JKo(){return m7t||(m7t=1,function(t){var g,v,A,y,S,Mge,w,Nge;Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;const e=bg(),n=CN(),r=Oi(),a=bJn(),o=o_();Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});const s=Dut(),l=TN();class c{constructor(k,P,N){Ut(this,"fragment");Ut(this,"name");Ut(this,"signature");Ut(this,"topic");Ut(this,"args");const L=k.name,I=k.format();(0,r.defineProperties)(this,{fragment:k,name:L,signature:I,topic:P,args:N})}}t.LogDescription=c;class u{constructor(k,P,N,L){Ut(this,"fragment");Ut(this,"name");Ut(this,"args");Ut(this,"signature");Ut(this,"selector");Ut(this,"value");const I=k.name,b=k.format();(0,r.defineProperties)(this,{fragment:k,name:I,args:N,signature:b,selector:P,value:L})}}t.TransactionDescription=u;class d{constructor(k,P,N){Ut(this,"fragment");Ut(this,"name");Ut(this,"args");Ut(this,"signature");Ut(this,"selector");const L=k.name,I=k.format();(0,r.defineProperties)(this,{fragment:k,name:L,args:N,signature:I,selector:P})}}t.ErrorDescription=d;class h{constructor(k){Ut(this,"hash");Ut(this,"_isIndexed");(0,r.defineProperties)(this,{hash:k,_isIndexed:!0})}static isIndexed(k){return!!(k&&k._isIndexed)}}t.Indexed=h;const f={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},p={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:R=>`reverted with reason string ${JSON.stringify(R)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:R=>{let k="unknown panic code";return R>=0&&R<=255&&f[R.toString()]&&(k=f[R.toString()]),`reverted with panic code 0x${R.toString(16)} (${k})`}}},C=class C{constructor(k){Wt(this,S);Wt(this,w);Ut(this,"fragments");Ut(this,"deploy");Ut(this,"fallback");Ut(this,"receive");Wt(this,g,void 0);Wt(this,v,void 0);Wt(this,A,void 0);Wt(this,y,void 0);let P=[];typeof k=="string"?P=JSON.parse(k):P=k,tt(this,A,new Map),tt(this,g,new Map),tt(this,v,new Map);const N=[];for(const b of P)try{N.push(s.Fragment.from(b))}catch(T){console.log(`[Warning] Invalid Fragment ${JSON.stringify(b)}:`,T.message)}(0,r.defineProperties)(this,{fragments:Object.freeze(N)});let L=null,I=!1;tt(this,y,this.getAbiCoder()),this.fragments.forEach((b,T)=>{let M;switch(b.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}(0,r.defineProperties)(this,{deploy:b});return;case"fallback":b.inputs.length===0?I=!0:((0,r.assertArgument)(!L||b.payable!==L.payable,"conflicting fallback fragments",`fragments[${T}]`,b),L=b,I=L.payable);return;case"function":M=Le(this,A);break;case"event":M=Le(this,v);break;case"error":M=Le(this,g);break;default:return}const D=b.format();M.has(D)||M.set(D,b)}),this.deploy||(0,r.defineProperties)(this,{deploy:s.ConstructorFragment.from("constructor()")}),(0,r.defineProperties)(this,{fallback:L,receive:I})}format(k){const P=k?"minimal":"full";return this.fragments.map(L=>L.format(P))}formatJson(){const k=this.fragments.map(P=>P.format("json"));return JSON.stringify(k.map(P=>JSON.parse(P)))}getAbiCoder(){return a.AbiCoder.defaultAbiCoder()}getFunctionName(k){const P=qn(this,S,Mge).call(this,k,null,!1);return(0,r.assertArgument)(P,"no matching function","key",k),P.name}hasFunction(k){return!!qn(this,S,Mge).call(this,k,null,!1)}getFunction(k,P){return qn(this,S,Mge).call(this,k,P||null,!0)}forEachFunction(k){const P=Array.from(Le(this,A).keys());P.sort((N,L)=>N.localeCompare(L));for(let N=0;N<P.length;N++){const L=P[N];k(Le(this,A).get(L),N)}}getEventName(k){const P=qn(this,w,Nge).call(this,k,null,!1);return(0,r.assertArgument)(P,"no matching event","key",k),P.name}hasEvent(k){return!!qn(this,w,Nge).call(this,k,null,!1)}getEvent(k,P){return qn(this,w,Nge).call(this,k,P||null,!0)}forEachEvent(k){const P=Array.from(Le(this,v).keys());P.sort((N,L)=>N.localeCompare(L));for(let N=0;N<P.length;N++){const L=P[N];k(Le(this,v).get(L),N)}}getError(k,P){if((0,r.isHexString)(k)){const L=k.toLowerCase();if(p[L])return s.ErrorFragment.from(p[L].signature);for(const I of Le(this,g).values())if(L===I.selector)return I;return null}if(k.indexOf("(")===-1){const L=[];for(const[I,b]of Le(this,g))I.split("(")[0]===k&&L.push(b);if(L.length===0)return k==="Error"?s.ErrorFragment.from("error Error(string)"):k==="Panic"?s.ErrorFragment.from("error Panic(uint256)"):null;if(L.length>1){const I=L.map(b=>JSON.stringify(b.format())).join(", ");(0,r.assertArgument)(!1,`ambiguous error description (i.e. ${I})`,"name",k)}return L[0]}if(k=s.ErrorFragment.from(k).format(),k==="Error(string)")return s.ErrorFragment.from("error Error(string)");if(k==="Panic(uint256)")return s.ErrorFragment.from("error Panic(uint256)");const N=Le(this,g).get(k);return N||null}forEachError(k){const P=Array.from(Le(this,g).keys());P.sort((N,L)=>N.localeCompare(L));for(let N=0;N<P.length;N++){const L=P[N];k(Le(this,g).get(L),N)}}_decodeParams(k,P){return Le(this,y).decode(k,P)}_encodeParams(k,P){return Le(this,y).encode(k,P)}encodeDeploy(k){return this._encodeParams(this.deploy.inputs,k||[])}decodeErrorResult(k,P){if(typeof k=="string"){const N=this.getError(k);(0,r.assertArgument)(N,"unknown error","fragment",k),k=N}return(0,r.assertArgument)((0,r.dataSlice)(P,0,4)===k.selector,`data signature does not match error ${k.name}.`,"data",P),this._decodeParams(k.inputs,(0,r.dataSlice)(P,4))}encodeErrorResult(k,P){if(typeof k=="string"){const N=this.getError(k);(0,r.assertArgument)(N,"unknown error","fragment",k),k=N}return(0,r.concat)([k.selector,this._encodeParams(k.inputs,P||[])])}decodeFunctionData(k,P){if(typeof k=="string"){const N=this.getFunction(k);(0,r.assertArgument)(N,"unknown function","fragment",k),k=N}return(0,r.assertArgument)((0,r.dataSlice)(P,0,4)===k.selector,`data signature does not match function ${k.name}.`,"data",P),this._decodeParams(k.inputs,(0,r.dataSlice)(P,4))}encodeFunctionData(k,P){if(typeof k=="string"){const N=this.getFunction(k);(0,r.assertArgument)(N,"unknown function","fragment",k),k=N}return(0,r.concat)([k.selector,this._encodeParams(k.inputs,P||[])])}decodeFunctionResult(k,P){if(typeof k=="string"){const I=this.getFunction(k);(0,r.assertArgument)(I,"unknown function","fragment",k),k=I}let N="invalid length for result data";const L=(0,r.getBytesCopy)(P);if(L.length%32===0)try{return Le(this,y).decode(k.outputs,L)}catch{N="could not decode result data"}(0,r.assert)(!1,N,"BAD_DATA",{value:(0,r.hexlify)(L),info:{method:k.name,signature:k.format()}})}makeError(k,P){const N=(0,r.getBytes)(k,"data"),L=a.AbiCoder.getBuiltinCallException("call",P,N),I="execution reverted (unknown custom error)";if(L.message.startsWith(I)){const T=(0,r.hexlify)(N.slice(0,4)),M=this.getError(T);if(M)try{const D=Le(this,y).decode(M.inputs,N.slice(4));L.revert={name:M.name,signature:M.format(),args:D},L.reason=L.revert.signature,L.message=`execution reverted: ${L.reason}`}catch{L.message="execution reverted (coult not decode custom error)"}}const b=this.parseTransaction(P);return b&&(L.invocation={method:b.name,signature:b.signature,args:b.args}),L}encodeFunctionResult(k,P){if(typeof k=="string"){const N=this.getFunction(k);(0,r.assertArgument)(N,"unknown function","fragment",k),k=N}return(0,r.hexlify)(Le(this,y).encode(k.outputs,P||[]))}encodeFilterTopics(k,P){if(typeof k=="string"){const I=this.getEvent(k);(0,r.assertArgument)(I,"unknown event","eventFragment",k),k=I}(0,r.assert)(P.length<=k.inputs.length,`too many arguments for ${k.format()}`,"UNEXPECTED_ARGUMENT",{count:P.length,expectedCount:k.inputs.length});const N=[];k.anonymous||N.push(k.topicHash);const L=(I,b)=>I.type==="string"?(0,n.id)(b):I.type==="bytes"?(0,e.keccak256)((0,r.hexlify)(b)):(I.type==="bool"&&typeof b=="boolean"?b=b?"0x01":"0x00":I.type.match(/^u?int/)?b=(0,r.toBeHex)(b):I.type.match(/^bytes/)?b=(0,r.zeroPadBytes)(b,32):I.type==="address"&&Le(this,y).encode(["address"],[b]),(0,r.zeroPadValue)((0,r.hexlify)(b),32));for(P.forEach((I,b)=>{const T=k.inputs[b];if(!T.indexed){(0,r.assertArgument)(I==null,"cannot filter non-indexed parameters; must be null","contract."+T.name,I);return}I==null?N.push(null):T.baseType==="array"||T.baseType==="tuple"?(0,r.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+T.name,I):Array.isArray(I)?N.push(I.map(M=>L(T,M))):N.push(L(T,I))});N.length&&N[N.length-1]===null;)N.pop();return N}encodeEventLog(k,P){if(typeof k=="string"){const b=this.getEvent(k);(0,r.assertArgument)(b,"unknown event","eventFragment",k),k=b}const N=[],L=[],I=[];return k.anonymous||N.push(k.topicHash),(0,r.assertArgument)(P.length===k.inputs.length,"event arguments/values mismatch","values",P),k.inputs.forEach((b,T)=>{const M=P[T];if(b.indexed)if(b.type==="string")N.push((0,n.id)(M));else if(b.type==="bytes")N.push((0,e.keccak256)(M));else{if(b.baseType==="tuple"||b.baseType==="array")throw new Error("not implemented");N.push(Le(this,y).encode([b.type],[M]))}else L.push(b),I.push(M)}),{data:Le(this,y).encode(L,I),topics:N}}decodeEventLog(k,P,N){if(typeof k=="string"){const U=this.getEvent(k);(0,r.assertArgument)(U,"unknown event","eventFragment",k),k=U}if(N!=null&&!k.anonymous){const U=k.topicHash;(0,r.assertArgument)((0,r.isHexString)(N[0],32)&&N[0].toLowerCase()===U,"fragment/topic mismatch","topics[0]",N[0]),N=N.slice(1)}const L=[],I=[],b=[];k.inputs.forEach((U,$)=>{U.indexed?U.type==="string"||U.type==="bytes"||U.baseType==="tuple"||U.baseType==="array"?(L.push(s.ParamType.from({type:"bytes32",name:U.name})),b.push(!0)):(L.push(U),b.push(!1)):(I.push(U),b.push(!1))});const T=N!=null?Le(this,y).decode(L,(0,r.concat)(N)):null,M=Le(this,y).decode(I,P,!0),D=[],B=[];let j=0,H=0;return k.inputs.forEach((U,$)=>{let z=null;if(U.indexed)if(T==null)z=new h(null);else if(b[$])z=new h(T[H++]);else try{z=T[H++]}catch(Z){z=Z}else try{z=M[j++]}catch(Z){z=Z}D.push(z),B.push(U.name||null)}),o.Result.fromItems(D,B)}parseTransaction(k){const P=(0,r.getBytes)(k.data,"tx.data"),N=(0,r.getBigInt)(k.value!=null?k.value:0,"tx.value"),L=this.getFunction((0,r.hexlify)(P.slice(0,4)));if(!L)return null;const I=Le(this,y).decode(L.inputs,P.slice(4));return new u(L,L.selector,I,N)}parseCallResult(k){throw new Error("@TODO")}parseLog(k){const P=this.getEvent(k.topics[0]);return!P||P.anonymous?null:new c(P,P.topicHash,this.decodeEventLog(P,k.data,k.topics))}parseError(k){const P=(0,r.hexlify)(k),N=this.getError((0,r.dataSlice)(P,0,4));if(!N)return null;const L=Le(this,y).decode(N.inputs,(0,r.dataSlice)(P,4));return new d(N,N.selector,L)}static from(k){return k instanceof C?k:typeof k=="string"?new C(JSON.parse(k)):typeof k.formatJson=="function"?new C(k.formatJson()):typeof k.format=="function"?new C(k.format("json")):new C(k)}};g=new WeakMap,v=new WeakMap,A=new WeakMap,y=new WeakMap,S=new WeakSet,Mge=function(k,P,N){if((0,r.isHexString)(k)){const I=k.toLowerCase();for(const b of Le(this,A).values())if(I===b.selector)return b;return null}if(k.indexOf("(")===-1){const I=[];for(const[b,T]of Le(this,A))b.split("(")[0]===k&&I.push(T);if(P){const b=P.length>0?P[P.length-1]:null;let T=P.length,M=!0;l.Typed.isTyped(b)&&b.type==="overrides"&&(M=!1,T--);for(let D=I.length-1;D>=0;D--){const B=I[D].inputs.length;B!==T&&(!M||B!==T-1)&&I.splice(D,1)}for(let D=I.length-1;D>=0;D--){const B=I[D].inputs;for(let j=0;j<P.length;j++)if(l.Typed.isTyped(P[j])){if(j>=B.length){if(P[j].type==="overrides")continue;I.splice(D,1);break}if(P[j].type!==B[j].baseType){I.splice(D,1);break}}}}if(I.length===1&&P&&P.length!==I[0].inputs.length){const b=P[P.length-1];(b==null||Array.isArray(b)||typeof b!="object")&&I.splice(0,1)}if(I.length===0)return null;if(I.length>1&&N){const b=I.map(T=>JSON.stringify(T.format())).join(", ");(0,r.assertArgument)(!1,`ambiguous function description (i.e. matches ${b})`,"key",k)}return I[0]}const L=Le(this,A).get(s.FunctionFragment.from(k).format());return L||null},w=new WeakSet,Nge=function(k,P,N){if((0,r.isHexString)(k)){const I=k.toLowerCase();for(const b of Le(this,v).values())if(I===b.topicHash)return b;return null}if(k.indexOf("(")===-1){const I=[];for(const[b,T]of Le(this,v))b.split("(")[0]===k&&I.push(T);if(P){for(let b=I.length-1;b>=0;b--)I[b].inputs.length<P.length&&I.splice(b,1);for(let b=I.length-1;b>=0;b--){const T=I[b].inputs;for(let M=0;M<P.length;M++)if(l.Typed.isTyped(P[M])&&P[M].type!==T[M].baseType){I.splice(b,1);break}}}if(I.length===0)return null;if(I.length>1&&N){const b=I.map(T=>JSON.stringify(T.format())).join(", ");(0,r.assertArgument)(!1,`ambiguous event description (i.e. matches ${b})`,"key",k)}return I[0]}const L=Le(this,v).get(s.EventFragment.from(k).format());return L||null};let m=C;t.Interface=m}(z$e)),z$e}var g7t;function ele(){return g7t||(g7t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var e=bJn();Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return e.AbiCoder}});var n=YKo();Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return n.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return n.encodeBytes32String}});var r=Dut();Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return r.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return r.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return r.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return r.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return r.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return r.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return r.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return r.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return r.StructFragment}});var a=JKo();Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return a.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return a.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return a.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return a.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return a.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return a.Result}});var o=TN();Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return o.Typed}})}(M$e)),M$e}var G$e={},vS={},o0={},v7t;function tle(){var g,v,A;if(v7t)return o0;v7t=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.TransactionResponse=o0.TransactionReceipt=o0.Log=o0.Block=o0.copyRequest=o0.FeeData=void 0;const t=Oi(),e=cb(),n=BigInt(0);function r(S){return S??null}function a(S){return S==null?null:S.toString()}class o{constructor(x,w,_){Ut(this,"gasPrice");Ut(this,"maxFeePerGas");Ut(this,"maxPriorityFeePerGas");(0,t.defineProperties)(this,{gasPrice:r(x),maxFeePerGas:r(w),maxPriorityFeePerGas:r(_)})}toJSON(){const{gasPrice:x,maxFeePerGas:w,maxPriorityFeePerGas:_}=this;return{_type:"FeeData",gasPrice:a(x),maxFeePerGas:a(w),maxPriorityFeePerGas:a(_)}}}o0.FeeData=o;function s(S){const x={};S.to&&(x.to=S.to),S.from&&(x.from=S.from),S.data&&(x.data=(0,t.hexlify)(S.data));const w="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const C of w)!(C in S)||S[C]==null||(x[C]=(0,t.getBigInt)(S[C],`request.${C}`));const _="type,nonce".split(/,/);for(const C of _)!(C in S)||S[C]==null||(x[C]=(0,t.getNumber)(S[C],`request.${C}`));return S.accessList&&(x.accessList=(0,e.accessListify)(S.accessList)),"blockTag"in S&&(x.blockTag=S.blockTag),"enableCcipRead"in S&&(x.enableCcipRead=!!S.enableCcipRead),"customData"in S&&(x.customData=S.customData),"blobVersionedHashes"in S&&S.blobVersionedHashes&&(x.blobVersionedHashes=S.blobVersionedHashes.slice()),"kzg"in S&&(x.kzg=S.kzg),"blobs"in S&&S.blobs&&(x.blobs=S.blobs.map(C=>(0,t.isBytesLike)(C)?(0,t.hexlify)(C):Object.assign({},C))),x}o0.copyRequest=s;class l{constructor(x,w){Ut(this,"provider");Ut(this,"number");Ut(this,"hash");Ut(this,"timestamp");Ut(this,"parentHash");Ut(this,"parentBeaconBlockRoot");Ut(this,"nonce");Ut(this,"difficulty");Ut(this,"gasLimit");Ut(this,"gasUsed");Ut(this,"stateRoot");Ut(this,"receiptsRoot");Ut(this,"blobGasUsed");Ut(this,"excessBlobGas");Ut(this,"miner");Ut(this,"prevRandao");Ut(this,"extraData");Ut(this,"baseFeePerGas");Wt(this,g,void 0);tt(this,g,x.transactions.map(_=>typeof _!="string"?new d(_,w):_)),(0,t.defineProperties)(this,{provider:w,hash:r(x.hash),number:x.number,timestamp:x.timestamp,parentHash:x.parentHash,parentBeaconBlockRoot:x.parentBeaconBlockRoot,nonce:x.nonce,difficulty:x.difficulty,gasLimit:x.gasLimit,gasUsed:x.gasUsed,blobGasUsed:x.blobGasUsed,excessBlobGas:x.excessBlobGas,miner:x.miner,prevRandao:r(x.prevRandao),extraData:x.extraData,baseFeePerGas:r(x.baseFeePerGas),stateRoot:x.stateRoot,receiptsRoot:x.receiptsRoot})}get transactions(){return Le(this,g).map(x=>typeof x=="string"?x:x.hash)}get prefetchedTransactions(){const x=Le(this,g).slice();return x.length===0?[]:((0,t.assert)(typeof x[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),x)}toJSON(){const{baseFeePerGas:x,difficulty:w,extraData:_,gasLimit:C,gasUsed:R,hash:k,miner:P,prevRandao:N,nonce:L,number:I,parentHash:b,parentBeaconBlockRoot:T,stateRoot:M,receiptsRoot:D,timestamp:B,transactions:j}=this;return{_type:"Block",baseFeePerGas:a(x),difficulty:a(w),extraData:_,gasLimit:a(C),gasUsed:a(R),blobGasUsed:a(this.blobGasUsed),excessBlobGas:a(this.excessBlobGas),hash:k,miner:P,prevRandao:N,nonce:L,number:I,parentHash:b,timestamp:B,parentBeaconBlockRoot:T,stateRoot:M,receiptsRoot:D,transactions:j}}[Symbol.iterator](){let x=0;const w=this.transactions;return{next:()=>x<this.length?{value:w[x++],done:!1}:{value:void 0,done:!0}}}get length(){return Le(this,g).length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(x){let w;if(typeof x=="number")w=Le(this,g)[x];else{const _=x.toLowerCase();for(const C of Le(this,g))if(typeof C=="string"){if(C!==_)continue;w=C;break}else{if(C.hash===_)continue;w=C;break}}if(w==null)throw new Error("no such tx");return typeof w=="string"?await this.provider.getTransaction(w):w}getPrefetchedTransaction(x){const w=this.prefetchedTransactions;if(typeof x=="number")return w[x];x=x.toLowerCase();for(const _ of w)if(_.hash===x)return _;(0,t.assertArgument)(!1,"no matching transaction","indexOrHash",x)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return h(this)}}g=new WeakMap,o0.Block=l;class c{constructor(x,w){Ut(this,"provider");Ut(this,"transactionHash");Ut(this,"blockHash");Ut(this,"blockNumber");Ut(this,"removed");Ut(this,"address");Ut(this,"data");Ut(this,"topics");Ut(this,"index");Ut(this,"transactionIndex");this.provider=w;const _=Object.freeze(x.topics.slice());(0,t.defineProperties)(this,{transactionHash:x.transactionHash,blockHash:x.blockHash,blockNumber:x.blockNumber,removed:x.removed,address:x.address,data:x.data,topics:_,index:x.index,transactionIndex:x.transactionIndex})}toJSON(){const{address:x,blockHash:w,blockNumber:_,data:C,index:R,removed:k,topics:P,transactionHash:N,transactionIndex:L}=this;return{_type:"log",address:x,blockHash:w,blockNumber:_,data:C,index:R,removed:k,topics:P,transactionHash:N,transactionIndex:L}}async getBlock(){const x=await this.provider.getBlock(this.blockHash);return(0,t.assert)(!!x,"failed to find transaction","UNKNOWN_ERROR",{}),x}async getTransaction(){const x=await this.provider.getTransaction(this.transactionHash);return(0,t.assert)(!!x,"failed to find transaction","UNKNOWN_ERROR",{}),x}async getTransactionReceipt(){const x=await this.provider.getTransactionReceipt(this.transactionHash);return(0,t.assert)(!!x,"failed to find transaction receipt","UNKNOWN_ERROR",{}),x}removedEvent(){return m(this)}}o0.Log=c;class u{constructor(x,w){Ut(this,"provider");Ut(this,"to");Ut(this,"from");Ut(this,"contractAddress");Ut(this,"hash");Ut(this,"index");Ut(this,"blockHash");Ut(this,"blockNumber");Ut(this,"logsBloom");Ut(this,"gasUsed");Ut(this,"blobGasUsed");Ut(this,"cumulativeGasUsed");Ut(this,"gasPrice");Ut(this,"blobGasPrice");Ut(this,"type");Ut(this,"status");Ut(this,"root");Wt(this,v,void 0);tt(this,v,Object.freeze(x.logs.map(C=>new c(C,w))));let _=n;x.effectiveGasPrice!=null?_=x.effectiveGasPrice:x.gasPrice!=null&&(_=x.gasPrice),(0,t.defineProperties)(this,{provider:w,to:x.to,from:x.from,contractAddress:x.contractAddress,hash:x.hash,index:x.index,blockHash:x.blockHash,blockNumber:x.blockNumber,logsBloom:x.logsBloom,gasUsed:x.gasUsed,cumulativeGasUsed:x.cumulativeGasUsed,blobGasUsed:x.blobGasUsed,gasPrice:_,blobGasPrice:x.blobGasPrice,type:x.type,status:x.status,root:x.root})}get logs(){return Le(this,v)}toJSON(){const{to:x,from:w,contractAddress:_,hash:C,index:R,blockHash:k,blockNumber:P,logsBloom:N,logs:L,status:I,root:b}=this;return{_type:"TransactionReceipt",blockHash:k,blockNumber:P,contractAddress:_,cumulativeGasUsed:a(this.cumulativeGasUsed),from:w,gasPrice:a(this.gasPrice),blobGasUsed:a(this.blobGasUsed),blobGasPrice:a(this.blobGasPrice),gasUsed:a(this.gasUsed),hash:C,index:R,logs:L,logsBloom:N,root:b,status:I,to:x}}get length(){return this.logs.length}[Symbol.iterator](){let x=0;return{next:()=>x<this.length?{value:this.logs[x++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const x=await this.provider.getBlock(this.blockHash);if(x==null)throw new Error("TODO");return x}async getTransaction(){const x=await this.provider.getTransaction(this.hash);if(x==null)throw new Error("TODO");return x}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return p(this)}reorderedEvent(x){return(0,t.assert)(!x||x.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),f(this,x)}}v=new WeakMap,o0.TransactionReceipt=u;const y=class y{constructor(x,w){Ut(this,"provider");Ut(this,"blockNumber");Ut(this,"blockHash");Ut(this,"index");Ut(this,"hash");Ut(this,"type");Ut(this,"to");Ut(this,"from");Ut(this,"nonce");Ut(this,"gasLimit");Ut(this,"gasPrice");Ut(this,"maxPriorityFeePerGas");Ut(this,"maxFeePerGas");Ut(this,"maxFeePerBlobGas");Ut(this,"data");Ut(this,"value");Ut(this,"chainId");Ut(this,"signature");Ut(this,"accessList");Ut(this,"blobVersionedHashes");Wt(this,A,void 0);this.provider=w,this.blockNumber=x.blockNumber!=null?x.blockNumber:null,this.blockHash=x.blockHash!=null?x.blockHash:null,this.hash=x.hash,this.index=x.index,this.type=x.type,this.from=x.from,this.to=x.to||null,this.gasLimit=x.gasLimit,this.nonce=x.nonce,this.data=x.data,this.value=x.value,this.gasPrice=x.gasPrice,this.maxPriorityFeePerGas=x.maxPriorityFeePerGas!=null?x.maxPriorityFeePerGas:null,this.maxFeePerGas=x.maxFeePerGas!=null?x.maxFeePerGas:null,this.maxFeePerBlobGas=x.maxFeePerBlobGas!=null?x.maxFeePerBlobGas:null,this.chainId=x.chainId,this.signature=x.signature,this.accessList=x.accessList!=null?x.accessList:null,this.blobVersionedHashes=x.blobVersionedHashes!=null?x.blobVersionedHashes:null,tt(this,A,-1)}toJSON(){const{blockNumber:x,blockHash:w,index:_,hash:C,type:R,to:k,from:P,nonce:N,data:L,signature:I,accessList:b,blobVersionedHashes:T}=this;return{_type:"TransactionResponse",accessList:b,blockNumber:x,blockHash:w,blobVersionedHashes:T,chainId:a(this.chainId),data:L,from:P,gasLimit:a(this.gasLimit),gasPrice:a(this.gasPrice),hash:C,maxFeePerGas:a(this.maxFeePerGas),maxPriorityFeePerGas:a(this.maxPriorityFeePerGas),maxFeePerBlobGas:a(this.maxFeePerBlobGas),nonce:N,signature:I,to:k,index:_,type:R,value:a(this.value)}}async getBlock(){let x=this.blockNumber;if(x==null){const _=await this.getTransaction();_&&(x=_.blockNumber)}if(x==null)return null;const w=this.provider.getBlock(x);if(w==null)throw new Error("TODO");return w}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){const{tx:w,blockNumber:_}=await(0,t.resolveProperties)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return w==null||w.blockNumber==null?0:_-w.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(x,w){const _=x??1,C=w??0;let R=Le(this,A),k=-1,P=R===-1;const N=async()=>{if(P)return null;const{blockNumber:T,nonce:M}=await(0,t.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(M<this.nonce){R=T;return}if(P)return null;const D=await this.getTransaction();if(!(D&&D.blockNumber!=null))for(k===-1&&(k=R-3,k<Le(this,A)&&(k=Le(this,A)));k<=T;){if(P)return null;const B=await this.provider.getBlock(k,!0);if(B==null)return;for(const j of B)if(j===this.hash)return;for(let j=0;j<B.length;j++){const H=await B.getTransaction(j);if(H.from===this.from&&H.nonce===this.nonce){if(P)return null;const U=await this.provider.getTransactionReceipt(H.hash);if(U==null||T-U.blockNumber+1<_)return;let $="replaced";H.data===this.data&&H.to===this.to&&H.value===this.value?$="repriced":H.data==="0x"&&H.from===H.to&&H.value===n&&($="cancelled"),(0,t.assert)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:$==="replaced"||$==="cancelled",reason:$,replacement:H.replaceableTransaction(R),hash:H.hash,receipt:U})}}k++}},L=T=>{if(T==null||T.status!==0)return T;(0,t.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:T.to,from:T.from,data:""},receipt:T})},I=await this.provider.getTransactionReceipt(this.hash);if(_===0)return L(I);if(I){if(await I.confirmations()>=_)return L(I)}else if(await N(),_===0)return null;return await new Promise((T,M)=>{const D=[],B=()=>{D.forEach(H=>H())};if(D.push(()=>{P=!0}),C>0){const H=setTimeout(()=>{B(),M((0,t.makeError)("wait for transaction timeout","TIMEOUT"))},C);D.push(()=>{clearTimeout(H)})}const j=async H=>{if(await H.confirmations()>=_){B();try{T(L(H))}catch(U){M(U)}}};if(D.push(()=>{this.provider.off(this.hash,j)}),this.provider.on(this.hash,j),R>=0){const H=async()=>{try{await N()}catch(U){if((0,t.isError)(U,"TRANSACTION_REPLACED")){B(),M(U);return}}P||this.provider.once("block",H)};D.push(()=>{this.provider.off("block",H)}),this.provider.once("block",H)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return(0,t.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(x){return(0,t.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,t.assert)(!x||x.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),f(this,x)}replaceableTransaction(x){(0,t.assertArgument)(Number.isInteger(x)&&x>=0,"invalid startBlock","startBlock",x);const w=new y(this,this.provider);return tt(w,A,x),w}};A=new WeakMap;let d=y;o0.TransactionResponse=d;function h(S){return{orphan:"drop-block",hash:S.hash,number:S.number}}function f(S,x){return{orphan:"reorder-transaction",tx:S,other:x}}function p(S){return{orphan:"drop-transaction",tx:S}}function m(S){return{orphan:"drop-log",log:{transactionHash:S.transactionHash,blockHash:S.blockHash,blockNumber:S.blockNumber,address:S.address,data:S.data,topics:Object.freeze(S.topics.slice()),index:S.index}}}return o0}var s0={},A7t;function xJn(){var c,u;if(A7t)return s0;A7t=1,Object.defineProperty(s0,"__esModule",{value:!0}),s0.ContractEventPayload=s0.ContractUnknownEventPayload=s0.ContractTransactionResponse=s0.ContractTransactionReceipt=s0.UndecodedEventLog=s0.EventLog=void 0;const t=tle(),e=Oi();class n extends t.Log{constructor(f,p,m){super(f,f.provider);Ut(this,"interface");Ut(this,"fragment");Ut(this,"args");const g=p.decodeEventLog(m,f.data,f.topics);(0,e.defineProperties)(this,{args:g,fragment:m,interface:p})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}s0.EventLog=n;class r extends t.Log{constructor(f,p){super(f,f.provider);Ut(this,"error");(0,e.defineProperties)(this,{error:p})}}s0.UndecodedEventLog=r;class a extends t.TransactionReceipt{constructor(f,p,m){super(m,p);Wt(this,c,void 0);tt(this,c,f)}get logs(){return super.logs.map(f=>{const p=f.topics.length?Le(this,c).getEvent(f.topics[0]):null;if(p)try{return new n(f,Le(this,c),p)}catch(m){return new r(f,m)}return f})}}c=new WeakMap,s0.ContractTransactionReceipt=a;class o extends t.TransactionResponse{constructor(f,p,m){super(m,p);Wt(this,u,void 0);tt(this,u,f)}async wait(f,p){const m=await super.wait(f,p);return m==null?null:new a(Le(this,u),this.provider,m)}}u=new WeakMap,s0.ContractTransactionResponse=o;class s extends e.EventPayload{constructor(f,p,m,g){super(f,p,m);Ut(this,"log");(0,e.defineProperties)(this,{log:g})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}s0.ContractUnknownEventPayload=s;class l extends s{constructor(h,f,p,m,g){super(h,f,p,new n(g,h.interface,m));const v=h.interface.decodeEventLog(m,this.log.data,this.log.topics);(0,e.defineProperties)(this,{args:v,fragment:m})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}return s0.ContractEventPayload=l,s0}var y7t;function EJn(){var B,j;if(y7t)return vS;y7t=1,Object.defineProperty(vS,"__esModule",{value:!0}),vS.Contract=vS.BaseContract=vS.resolveArgs=vS.copyOverrides=void 0;const t=ele(),e=Am(),n=tle(),r=Oi(),a=xJn(),o=BigInt(0);function s(U){return U&&typeof U.call=="function"}function l(U){return U&&typeof U.estimateGas=="function"}function c(U){return U&&typeof U.resolveName=="function"}function u(U){return U&&typeof U.sendTransaction=="function"}function d(U){if(U!=null){if(c(U))return U;if(U.provider)return U.provider}}class h{constructor($,z,Z){Wt(this,B,void 0);Ut(this,"fragment");if((0,r.defineProperties)(this,{fragment:z}),z.inputs.length<Z.length)throw new Error("too many arguments");const K=f($.runner,"resolveName"),Q=c(K)?K:null;tt(this,B,async function(){const ee=await Promise.all(z.inputs.map((X,te)=>Z[te]==null?null:X.walkAsync(Z[te],(ne,ie)=>ne==="address"?Array.isArray(ie)?Promise.all(ie.map(he=>(0,e.resolveAddress)(he,Q))):(0,e.resolveAddress)(ie,Q):ie)));return $.interface.encodeFilterTopics(z,ee)}())}getTopicFilter(){return Le(this,B)}}B=new WeakMap;function f(U,$){return U==null?null:typeof U[$]=="function"?U:U.provider&&typeof U.provider[$]=="function"?U.provider:null}function p(U){return U==null?null:U.provider||null}async function m(U,$){const z=t.Typed.dereference(U,"overrides");(0,r.assertArgument)(typeof z=="object","invalid overrides parameter","overrides",U);const Z=(0,n.copyRequest)(z);return(0,r.assertArgument)(Z.to==null||($||[]).indexOf("to")>=0,"cannot override to","overrides.to",Z.to),(0,r.assertArgument)(Z.data==null||($||[]).indexOf("data")>=0,"cannot override data","overrides.data",Z.data),Z.from&&(Z.from=Z.from),Z}vS.copyOverrides=m;async function g(U,$,z){const Z=f(U,"resolveName"),K=c(Z)?Z:null;return await Promise.all($.map((Q,ee)=>Q.walkAsync(z[ee],(X,te)=>(te=t.Typed.dereference(te,X),X==="address"?(0,e.resolveAddress)(te,K):te))))}vS.resolveArgs=g;function v(U){const $=async function(ee){const X=await m(ee,["data"]);X.to=await U.getAddress(),X.from&&(X.from=await(0,e.resolveAddress)(X.from,d(U.runner)));const te=U.interface,J=(0,r.getBigInt)(X.value||o,"overrides.value")===o,ne=(X.data||"0x")==="0x";te.fallback&&!te.fallback.payable&&te.receive&&!ne&&!J&&(0,r.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",ee),(0,r.assertArgument)(te.fallback||ne,"cannot send data to receive-only contract","overrides.data",X.data);const ie=te.receive||te.fallback&&te.fallback.payable;return(0,r.assertArgument)(ie||J,"cannot send value to non-payable fallback","overrides.value",X.value),(0,r.assertArgument)(te.fallback||ne,"cannot send data to receive-only contract","overrides.data",X.data),X},z=async function(ee){const X=f(U.runner,"call");(0,r.assert)(s(X),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const te=await $(ee);try{return await X.call(te)}catch(J){throw(0,r.isCallException)(J)&&J.data?U.interface.makeError(J.data,te):J}},Z=async function(ee){const X=U.runner;(0,r.assert)(u(X),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const te=await X.sendTransaction(await $(ee)),J=p(U.runner);return new a.ContractTransactionResponse(U.interface,J,te)},K=async function(ee){const X=f(U.runner,"estimateGas");return(0,r.assert)(l(X),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await X.estimateGas(await $(ee))},Q=async ee=>await Z(ee);return(0,r.defineProperties)(Q,{_contract:U,estimateGas:K,populateTransaction:$,send:Z,staticCall:z}),Q}function A(U,$){const z=function(...J){const ne=U.interface.getFunction($,J);return(0,r.assert)(ne,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:$,args:J}}),ne},Z=async function(...J){const ne=z(...J);let ie={};if(ne.inputs.length+1===J.length&&(ie=await m(J.pop()),ie.from&&(ie.from=await(0,e.resolveAddress)(ie.from,d(U.runner)))),ne.inputs.length!==J.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const he=await g(U.runner,ne.inputs,J);return Object.assign({},ie,await(0,r.resolveProperties)({to:U.getAddress(),data:U.interface.encodeFunctionData(ne,he)}))},K=async function(...J){const ne=await X(...J);return ne.length===1?ne[0]:ne},Q=async function(...J){const ne=U.runner;(0,r.assert)(u(ne),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const ie=await ne.sendTransaction(await Z(...J)),he=p(U.runner);return new a.ContractTransactionResponse(U.interface,he,ie)},ee=async function(...J){const ne=f(U.runner,"estimateGas");return(0,r.assert)(l(ne),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await ne.estimateGas(await Z(...J))},X=async function(...J){const ne=f(U.runner,"call");(0,r.assert)(s(ne),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const ie=await Z(...J);let he="0x";try{he=await ne.call(ie)}catch(ce){throw(0,r.isCallException)(ce)&&ce.data?U.interface.makeError(ce.data,ie):ce}const de=z(...J);return U.interface.decodeFunctionResult(de,he)},te=async(...J)=>z(...J).constant?await K(...J):await Q(...J);return(0,r.defineProperties)(te,{name:U.interface.getFunctionName($),_contract:U,_key:$,getFragment:z,estimateGas:ee,populateTransaction:Z,send:Q,staticCall:K,staticCallResult:X}),Object.defineProperty(te,"fragment",{configurable:!1,enumerable:!0,get:()=>{const J=U.interface.getFunction($);return(0,r.assert)(J,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:$}}),J}}),te}function y(U,$){const z=function(...K){const Q=U.interface.getEvent($,K);return(0,r.assert)(Q,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:$,args:K}}),Q},Z=function(...K){return new h(U,z(...K),K)};return(0,r.defineProperties)(Z,{name:U.interface.getEventName($),_contract:U,_key:$,getFragment:z}),Object.defineProperty(Z,"fragment",{configurable:!1,enumerable:!0,get:()=>{const K=U.interface.getEvent($);return(0,r.assert)(K,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:$}}),K}}),Z}const S=Symbol.for("_ethersInternal_contract"),x=new WeakMap;function w(U,$){x.set(U[S],$)}function _(U){return x.get(U[S])}function C(U){return U&&typeof U=="object"&&"getTopicFilter"in U&&typeof U.getTopicFilter=="function"&&U.fragment}async function R(U,$){let z,Z=null;if(Array.isArray($)){const Q=function(ee){if((0,r.isHexString)(ee,32))return ee;const X=U.interface.getEvent(ee);return(0,r.assertArgument)(X,"unknown fragment","name",ee),X.topicHash};z=$.map(ee=>ee==null?null:Array.isArray(ee)?ee.map(Q):Q(ee))}else $==="*"?z=[null]:typeof $=="string"?(0,r.isHexString)($,32)?z=[$]:(Z=U.interface.getEvent($),(0,r.assertArgument)(Z,"unknown fragment","event",$),z=[Z.topicHash]):C($)?z=await $.getTopicFilter():"fragment"in $?(Z=$.fragment,z=[Z.topicHash]):(0,r.assertArgument)(!1,"unknown event name","event",$);z=z.map(Q=>{if(Q==null)return null;if(Array.isArray(Q)){const ee=Array.from(new Set(Q.map(X=>X.toLowerCase())).values());return ee.length===1?ee[0]:(ee.sort(),ee)}return Q.toLowerCase()});const K=z.map(Q=>Q==null?"null":Array.isArray(Q)?Q.join("|"):Q).join("&");return{fragment:Z,tag:K,topics:z}}async function k(U,$){const{subs:z}=_(U);return z.get((await R(U,$)).tag)||null}async function P(U,$,z){const Z=p(U.runner);(0,r.assert)(Z,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:$});const{fragment:K,tag:Q,topics:ee}=await R(U,z),{addr:X,subs:te}=_(U);let J=te.get(Q);if(!J){const ie={address:X||U,topics:ee},he=Me=>{let Be=K;if(Be==null)try{Be=U.interface.getEvent(Me.topics[0])}catch{}if(Be){const ze=Be,je=K?U.interface.decodeEventLog(K,Me.data,Me.topics):[];I(U,z,je,ye=>new a.ContractEventPayload(U,ye,z,ze,Me))}else I(U,z,[],ze=>new a.ContractUnknownEventPayload(U,ze,z,Me))};let de=[];J={tag:Q,listeners:[],start:()=>{de.length||de.push(Z.on(ie,he))},stop:async()=>{if(de.length==0)return;let Me=de;de=[],await Promise.all(Me),Z.off(ie,he)}},te.set(Q,J)}return J}let N=Promise.resolve();async function L(U,$,z,Z){await N;const K=await k(U,$);if(!K)return!1;const Q=K.listeners.length;return K.listeners=K.listeners.filter(({listener:ee,once:X})=>{const te=Array.from(z);Z&&te.push(Z(X?null:ee));try{ee.call(U,...te)}catch{}return!X}),K.listeners.length===0&&(K.stop(),_(U).subs.delete(K.tag)),Q>0}async function I(U,$,z,Z){try{await N}catch{}const K=L(U,$,z,Z);return N=K,await K}const b=["then"],H=class H{constructor($,z,Z,K){Ut(this,"target");Ut(this,"interface");Ut(this,"runner");Ut(this,"filters");Ut(this,j);Ut(this,"fallback");(0,r.assertArgument)(typeof $=="string"||(0,e.isAddressable)($),"invalid value for Contract target","target",$),Z==null&&(Z=null);const Q=t.Interface.from(z);(0,r.defineProperties)(this,{target:$,runner:Z,interface:Q}),Object.defineProperty(this,S,{value:{}});let ee,X=null,te=null;if(K){const ie=p(Z);te=new a.ContractTransactionResponse(this.interface,ie,K)}let J=new Map;if(typeof $=="string")if((0,r.isHexString)($))X=$,ee=Promise.resolve($);else{const ie=f(Z,"resolveName");if(!c(ie))throw(0,r.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});ee=ie.resolveName($).then(he=>{if(he==null)throw(0,r.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:$});return _(this).addr=he,he})}else ee=$.getAddress().then(ie=>{if(ie==null)throw new Error("TODO");return _(this).addr=ie,ie});w(this,{addrPromise:ee,addr:X,deployTx:te,subs:J});const ne=new Proxy({},{get:(ie,he,de)=>{if(typeof he=="symbol"||b.indexOf(he)>=0)return Reflect.get(ie,he,de);try{return this.getEvent(he)}catch(ce){if(!(0,r.isError)(ce,"INVALID_ARGUMENT")||ce.argument!=="key")throw ce}},has:(ie,he)=>b.indexOf(he)>=0?Reflect.has(ie,he):Reflect.has(ie,he)||this.interface.hasEvent(String(he))});return(0,r.defineProperties)(this,{filters:ne}),(0,r.defineProperties)(this,{fallback:Q.receive||Q.fallback?v(this):null}),new Proxy(this,{get:(ie,he,de)=>{if(typeof he=="symbol"||he in ie||b.indexOf(he)>=0)return Reflect.get(ie,he,de);try{return ie.getFunction(he)}catch(ce){if(!(0,r.isError)(ce,"INVALID_ARGUMENT")||ce.argument!=="key")throw ce}},has:(ie,he)=>typeof he=="symbol"||he in ie||b.indexOf(he)>=0?Reflect.has(ie,he):ie.interface.hasFunction(he)})}connect($){return new H(this.target,this.interface,$)}attach($){return new H($,this.interface,this.runner)}async getAddress(){return await _(this).addrPromise}async getDeployedCode(){const $=p(this.runner);(0,r.assert)($,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const z=await $.getCode(await this.getAddress());return z==="0x"?null:z}async waitForDeployment(){const $=this.deploymentTransaction();if($)return await $.wait(),this;if(await this.getDeployedCode()!=null)return this;const Z=p(this.runner);return(0,r.assert)(Z!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((K,Q)=>{const ee=async()=>{try{if(await this.getDeployedCode()!=null)return K(this);Z.once("block",ee)}catch(X){Q(X)}};ee()})}deploymentTransaction(){return _(this).deployTx}getFunction($){return typeof $!="string"&&($=$.format()),A(this,$)}getEvent($){return typeof $!="string"&&($=$.format()),y(this,$)}async queryTransaction($){throw new Error("@TODO")}async queryFilter($,z,Z){z==null&&(z=0),Z==null&&(Z="latest");const{addr:K,addrPromise:Q}=_(this),ee=K||await Q,{fragment:X,topics:te}=await R(this,$),J={address:ee,topics:te,fromBlock:z,toBlock:Z},ne=p(this.runner);return(0,r.assert)(ne,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await ne.getLogs(J)).map(ie=>{let he=X;if(he==null)try{he=this.interface.getEvent(ie.topics[0])}catch{}if(he)try{return new a.EventLog(ie,this.interface,he)}catch(de){return new a.UndecodedEventLog(ie,de)}return new n.Log(ie,ne)})}async on($,z){const Z=await P(this,"on",$);return Z.listeners.push({listener:z,once:!1}),Z.start(),this}async once($,z){const Z=await P(this,"once",$);return Z.listeners.push({listener:z,once:!0}),Z.start(),this}async emit($,...z){return await I(this,$,z,null)}async listenerCount($){if($){const K=await k(this,$);return K?K.listeners.length:0}const{subs:z}=_(this);let Z=0;for(const{listeners:K}of z.values())Z+=K.length;return Z}async listeners($){if($){const K=await k(this,$);return K?K.listeners.map(({listener:Q})=>Q):[]}const{subs:z}=_(this);let Z=[];for(const{listeners:K}of z.values())Z=Z.concat(K.map(({listener:Q})=>Q));return Z}async off($,z){const Z=await k(this,$);if(!Z)return this;if(z){const K=Z.listeners.map(({listener:Q})=>Q).indexOf(z);K>=0&&Z.listeners.splice(K,1)}return(z==null||Z.listeners.length===0)&&(Z.stop(),_(this).subs.delete(Z.tag)),this}async removeAllListeners($){if($){const z=await k(this,$);if(!z)return this;z.stop(),_(this).subs.delete(z.tag)}else{const{subs:z}=_(this);for(const{tag:Z,stop:K}of z.values())K(),z.delete(Z)}return this}async addListener($,z){return await this.on($,z)}async removeListener($,z){return await this.off($,z)}static buildClass($){class z extends H{constructor(K,Q=null){super(K,$,Q)}}return z}static from($,z,Z){return Z==null&&(Z=null),new this($,z,Z)}};j=S;let T=H;vS.BaseContract=T;function M(){return T}class D extends M(){}return vS.Contract=D,vS}var XY={},b7t;function ZKo(){if(b7t)return XY;b7t=1,Object.defineProperty(XY,"__esModule",{value:!0}),XY.ContractFactory=void 0;const t=ele(),e=Am(),n=Oi(),r=EJn();class a{constructor(s,l,c){Ut(this,"interface");Ut(this,"bytecode");Ut(this,"runner");const u=t.Interface.from(s);l instanceof Uint8Array||(typeof l=="object"&&(l=l.object),l.startsWith("0x")||(l="0x"+l)),l=(0,n.hexlify)((0,n.getBytes)(l)),(0,n.defineProperties)(this,{bytecode:l,interface:u,runner:c||null})}attach(s){return new r.BaseContract(s,this.interface,this.runner)}async getDeployTransaction(...s){let l={};const c=this.interface.deploy;if(c.inputs.length+1===s.length&&(l=await(0,r.copyOverrides)(s.pop())),c.inputs.length!==s.length)throw new Error("incorrect number of arguments to constructor");const u=await(0,r.resolveArgs)(this.runner,c.inputs,s),d=(0,n.concat)([this.bytecode,this.interface.encodeDeploy(u)]);return Object.assign({},l,{data:d})}async deploy(...s){const l=await this.getDeployTransaction(...s);(0,n.assert)(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await this.runner.sendTransaction(l),u=(0,e.getCreateAddress)(c);return new r.BaseContract(u,this.interface,this.runner,c)}connect(s){return new a(this.interface,this.bytecode,s)}static fromSolidity(s,l){(0,n.assertArgument)(s!=null,"bad compiler output","output",s),typeof s=="string"&&(s=JSON.parse(s));const c=s.abi;let u="";return s.bytecode?u=s.bytecode:s.evm&&s.evm.bytecode&&(u=s.evm.bytecode),new this(c,u,l)}}return XY.ContractFactory=a,XY}var x7t;function PCe(){return x7t||(x7t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var e=EJn();Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return e.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return e.Contract}});var n=ZKo();Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return n.ContractFactory}});var r=xJn();Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return r.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return r.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return r.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return r.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return r.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return r.UndecodedEventLog}})}(G$e)),G$e}var V$e={},_L={},Wk={},E7t;function wJn(){var f,p,m,_F,v,SJn;if(E7t)return Wk;E7t=1,Object.defineProperty(Wk,"__esModule",{value:!0}),Wk.EnsResolver=Wk.BasicMulticoinProviderPlugin=Wk.MulticoinProviderPlugin=void 0;const t=Am(),e=Xse(),n=PCe(),r=CN(),a=Oi();function o(S){return S.match(/^ipfs:\/\/ipfs\//i)?S=S.substring(12):S.match(/^ipfs:\/\//i)?S=S.substring(7):(0,a.assertArgument)(!1,"unsupported IPFS format","link",S),`https://gateway.ipfs.io/ipfs/${S}`}class s{constructor(x){Ut(this,"name");(0,a.defineProperties)(this,{name:x})}connect(x){return this}supportsCoinType(x){return!1}async encodeAddress(x,w){throw new Error("unsupported coin")}async decodeAddress(x,w){throw new Error("unsupported coin")}}Wk.MulticoinProviderPlugin=s;const l="org.ethers.plugins.provider.BasicMulticoin";class c extends s{constructor(){super(l)}}Wk.BasicMulticoinProviderPlugin=c;const u=new RegExp("^(ipfs)://(.*)$","i"),d=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),u,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")],y=class y{constructor(x,w,_){Wt(this,m);Ut(this,"provider");Ut(this,"address");Ut(this,"name");Wt(this,f,void 0);Wt(this,p,void 0);(0,a.defineProperties)(this,{provider:x,address:w,name:_}),tt(this,f,null),tt(this,p,new n.Contract(w,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],x))}async supportsWildcard(){return Le(this,f)==null&&tt(this,f,(async()=>{try{return await Le(this,p).supportsInterface("0x9061b923")}catch(x){if((0,a.isError)(x,"CALL_EXCEPTION"))return!1;throw tt(this,f,null),x}})()),await Le(this,f)}async getAddress(x){if(x==null&&(x=60),x===60)try{const R=await qn(this,m,_F).call(this,"addr(bytes32)");return R==null||R===e.ZeroAddress?null:R}catch(R){if((0,a.isError)(R,"CALL_EXCEPTION"))return null;throw R}if(x>=0&&x<2147483648){let R=x+2147483648;const k=await qn(this,m,_F).call(this,"addr(bytes32,uint)",[R]);if((0,a.isHexString)(k,20))return(0,t.getAddress)(k)}let w=null;for(const R of this.provider.plugins)if(R instanceof s&&R.supportsCoinType(x)){w=R;break}if(w==null)return null;const _=await qn(this,m,_F).call(this,"addr(bytes32,uint)",[x]);if(_==null||_==="0x")return null;const C=await w.decodeAddress(x,_);if(C!=null)return C;(0,a.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${x})`,info:{coinType:x,data:_}})}async getText(x){const w=await qn(this,m,_F).call(this,"text(bytes32,string)",[x]);return w==null||w==="0x"?null:w}async getContentHash(){const x=await qn(this,m,_F).call(this,"contenthash(bytes32)");if(x==null||x==="0x")return null;const w=x.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(w){const C=w[1]==="e3010170"?"ipfs":"ipns",R=parseInt(w[4],16);if(w[5].length===R*2)return`${C}://${(0,a.encodeBase58)("0x"+w[2])}`}const _=x.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(_&&_[1].length===64)return`bzz://${_[1]}`;(0,a.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:x}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const x=[{type:"name",value:this.name}];try{const w=await this.getText("avatar");if(w==null)return x.push({type:"!avatar",value:""}),{url:null,linkage:x};x.push({type:"avatar",value:w});for(let _=0;_<d.length;_++){const C=w.match(d[_]);if(C==null)continue;const R=C[1].toLowerCase();switch(R){case"https":case"data":return x.push({type:"url",value:w}),{linkage:x,url:w};case"ipfs":{const k=o(w);return x.push({type:"ipfs",value:w}),x.push({type:"url",value:k}),{linkage:x,url:k}}case"erc721":case"erc1155":{const k=R==="erc721"?"tokenURI(uint256)":"uri(uint256)";x.push({type:R,value:w});const P=await this.getAddress();if(P==null)return x.push({type:"!owner",value:""}),{url:null,linkage:x};const N=(C[2]||"").split("/");if(N.length!==2)return x.push({type:`!${R}caip`,value:C[2]||""}),{url:null,linkage:x};const L=N[1],I=new n.Contract(N[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(R==="erc721"){const B=await I.ownerOf(L);if(P!==B)return x.push({type:"!owner",value:B}),{url:null,linkage:x};x.push({type:"owner",value:B})}else if(R==="erc1155"){const B=await I.balanceOf(P,L);if(!B)return x.push({type:"!balance",value:"0"}),{url:null,linkage:x};x.push({type:"balance",value:B.toString()})}let b=await I[k](L);if(b==null||b==="0x")return x.push({type:"!metadata-url",value:""}),{url:null,linkage:x};x.push({type:"metadata-url-base",value:b}),R==="erc1155"&&(b=b.replace("{id}",(0,a.toBeHex)(L,32).substring(2)),x.push({type:"metadata-url-expanded",value:b})),b.match(/^ipfs:/i)&&(b=o(b)),x.push({type:"metadata-url",value:b});let T={};const M=await new a.FetchRequest(b).send();M.assertOk();try{T=M.bodyJson}catch{try{x.push({type:"!metadata",value:M.bodyText})}catch{const H=M.body;return H&&x.push({type:"!metadata",value:(0,a.hexlify)(H)}),{url:null,linkage:x}}return{url:null,linkage:x}}if(!T)return x.push({type:"!metadata",value:""}),{url:null,linkage:x};x.push({type:"metadata",value:JSON.stringify(T)});let D=T.image;if(typeof D!="string")return x.push({type:"!imageUrl",value:""}),{url:null,linkage:x};if(!D.match(/^(https:\/\/|data:)/i)){if(D.match(u)==null)return x.push({type:"!imageUrl-ipfs",value:D}),{url:null,linkage:x};x.push({type:"imageUrl-ipfs",value:D}),D=o(D)}return x.push({type:"url",value:D}),{linkage:x,url:D}}}}}catch{}return{linkage:x,url:null}}static async getEnsAddress(x){const w=await x.getNetwork(),_=w.getPlugin("org.ethers.plugins.network.Ens");return(0,a.assert)(_,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:w}}),_.address}static async fromName(x,w){var C;let _=w;for(;;){if(_===""||_==="."||w!=="eth"&&_==="eth")return null;const R=await qn(C=y,v,SJn).call(C,x,_);if(R!=null){const k=new y(x,R,w);return _!==w&&!await k.supportsWildcard()?null:k}_=_.split(".").slice(1).join(".")}}};f=new WeakMap,p=new WeakMap,m=new WeakSet,_F=async function(x,w){w=(w||[]).slice();const _=Le(this,p).interface;w.unshift((0,r.namehash)(this.name));let C=null;await this.supportsWildcard()&&(C=_.getFunction(x),(0,a.assert)(C,"missing fragment","UNKNOWN_ERROR",{info:{funcName:x}}),w=[(0,r.dnsEncode)(this.name,255),_.encodeFunctionData(C,w)],x="resolve(bytes,bytes)"),w.push({enableCcipRead:!0});try{const R=await Le(this,p)[x](...w);return C?_.decodeFunctionResult(C,R)[0]:R}catch(R){if(!(0,a.isError)(R,"CALL_EXCEPTION"))throw R}return null},v=new WeakSet,SJn=async function(x,w){const _=await y.getEnsAddress(x);try{const R=await new n.Contract(_,["function resolver(bytes32) view returns (address)"],x).resolver((0,r.namehash)(w),{enableCcipRead:!0});return R===e.ZeroAddress?null:R}catch(C){throw C}return null},Wt(y,v);let h=y;return Wk.EnsResolver=h,Wk}var au={},S7t;function XKo(){if(S7t)return au;S7t=1,Object.defineProperty(au,"__esModule",{value:!0}),au.formatTransactionResponse=au.formatTransactionReceipt=au.formatReceiptLog=au.formatBlock=au.formatLog=au.formatUint256=au.formatHash=au.formatData=au.formatBoolean=au.object=au.arrayOf=au.allowNull=void 0;const t=Am(),e=bg(),n=cb(),r=Oi(),a=BigInt(0);function o(w,_){return function(C){return C==null?_:w(C)}}au.allowNull=o;function s(w,_){return C=>{if(_&&C==null)return null;if(!Array.isArray(C))throw new Error("not an array");return C.map(R=>w(R))}}au.arrayOf=s;function l(w,_){return C=>{const R={};for(const k in w){let P=k;if(_&&k in _&&!(P in C)){for(const N of _[k])if(N in C){P=N;break}}try{const N=w[k](C[P]);N!==void 0&&(R[k]=N)}catch(N){const L=N instanceof Error?N.message:"not-an-error";(0,r.assert)(!1,`invalid value for value.${k} (${L})`,"BAD_DATA",{value:C})}}return R}}au.object=l;function c(w){switch(w){case!0:case"true":return!0;case!1:case"false":return!1}(0,r.assertArgument)(!1,`invalid boolean; ${JSON.stringify(w)}`,"value",w)}au.formatBoolean=c;function u(w){return(0,r.assertArgument)((0,r.isHexString)(w,!0),"invalid data","value",w),w}au.formatData=u;function d(w){return(0,r.assertArgument)((0,r.isHexString)(w,32),"invalid hash","value",w),w}au.formatHash=d;function h(w){if(!(0,r.isHexString)(w))throw new Error("invalid uint256");return(0,r.zeroPadValue)(w,32)}au.formatUint256=h;const f=l({address:t.getAddress,blockHash:d,blockNumber:r.getNumber,data:u,index:r.getNumber,removed:o(c,!1),topics:s(d),transactionHash:d,transactionIndex:r.getNumber},{index:["logIndex"]});function p(w){return f(w)}au.formatLog=p;const m=l({hash:o(d),parentHash:d,parentBeaconBlockRoot:o(d,null),number:r.getNumber,timestamp:r.getNumber,nonce:o(u),difficulty:r.getBigInt,gasLimit:r.getBigInt,gasUsed:r.getBigInt,stateRoot:o(d,null),receiptsRoot:o(d,null),blobGasUsed:o(r.getBigInt,null),excessBlobGas:o(r.getBigInt,null),miner:o(t.getAddress),prevRandao:o(d,null),extraData:u,baseFeePerGas:o(r.getBigInt)},{prevRandao:["mixHash"]});function g(w){const _=m(w);return _.transactions=w.transactions.map(C=>typeof C=="string"?C:x(C)),_}au.formatBlock=g;const v=l({transactionIndex:r.getNumber,blockNumber:r.getNumber,transactionHash:d,address:t.getAddress,topics:s(d),data:u,index:r.getNumber,blockHash:d},{index:["logIndex"]});function A(w){return v(w)}au.formatReceiptLog=A;const y=l({to:o(t.getAddress,null),from:o(t.getAddress,null),contractAddress:o(t.getAddress,null),index:r.getNumber,root:o(r.hexlify),gasUsed:r.getBigInt,blobGasUsed:o(r.getBigInt,null),logsBloom:o(u),blockHash:d,hash:d,logs:s(A),blockNumber:r.getNumber,cumulativeGasUsed:r.getBigInt,effectiveGasPrice:o(r.getBigInt),blobGasPrice:o(r.getBigInt,null),status:o(r.getNumber),type:o(r.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function S(w){return y(w)}au.formatTransactionReceipt=S;function x(w){w.to&&(0,r.getBigInt)(w.to)===a&&(w.to="0x0000000000000000000000000000000000000000");const _=l({hash:d,index:o(r.getNumber,void 0),type:C=>C==="0x"||C==null?0:(0,r.getNumber)(C),accessList:o(n.accessListify,null),blobVersionedHashes:o(s(d,!0),null),blockHash:o(d,null),blockNumber:o(r.getNumber,null),transactionIndex:o(r.getNumber,null),from:t.getAddress,gasPrice:o(r.getBigInt),maxPriorityFeePerGas:o(r.getBigInt),maxFeePerGas:o(r.getBigInt),maxFeePerBlobGas:o(r.getBigInt,null),gasLimit:r.getBigInt,to:o(t.getAddress,null),value:r.getBigInt,nonce:r.getNumber,data:u,creates:o(t.getAddress,null),chainId:o(r.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(w);if(_.to==null&&_.creates==null&&(_.creates=(0,t.getCreateAddress)(_)),(w.type===1||w.type===2)&&w.accessList==null&&(_.accessList=[]),w.signature?_.signature=e.Signature.from(w.signature):_.signature=e.Signature.from(w),_.chainId==null){const C=_.signature.legacyChainId;C!=null&&(_.chainId=C)}return _.blockHash&&(0,r.getBigInt)(_.blockHash)===a&&(_.blockHash=null),_}return au.formatTransactionResponse=x,au}var eJ={},ry={},w7t;function $ut(){var c,d,h;if(w7t)return ry;w7t=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.FetchUrlFeeDataNetworkPlugin=ry.FeeDataNetworkPlugin=ry.EnsPlugin=ry.GasCostPlugin=ry.NetworkPlugin=void 0;const t=G9(),e=Oi(),n="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class r{constructor(p){Ut(this,"name");(0,t.defineProperties)(this,{name:p})}clone(){return new r(this.name)}}ry.NetworkPlugin=r;class a extends r{constructor(m,g){m==null&&(m=0);super(`org.ethers.network.plugins.GasCost#${m||0}`);Ut(this,"effectiveBlock");Ut(this,"txBase");Ut(this,"txCreate");Ut(this,"txDataZero");Ut(this,"txDataNonzero");Ut(this,"txAccessListStorageKey");Ut(this,"txAccessListAddress");const v={effectiveBlock:m};function A(y,S){let x=(g||{})[y];x==null&&(x=S),(0,e.assertArgument)(typeof x=="number",`invalud value for ${y}`,"costs",g),v[y]=x}A("txBase",21e3),A("txCreate",32e3),A("txDataZero",4),A("txDataNonzero",16),A("txAccessListStorageKey",1900),A("txAccessListAddress",2400),(0,t.defineProperties)(this,v)}clone(){return new a(this.effectiveBlock,this)}}ry.GasCostPlugin=a;class o extends r{constructor(m,g){super("org.ethers.plugins.network.Ens");Ut(this,"address");Ut(this,"targetNetwork");(0,t.defineProperties)(this,{address:m||n,targetNetwork:g??1})}clone(){return new o(this.address,this.targetNetwork)}}ry.EnsPlugin=o;const u=class u extends r{constructor(m){super("org.ethers.plugins.network.FeeData");Wt(this,c,void 0);tt(this,c,m)}get feeDataFunc(){return Le(this,c)}async getFeeData(m){return await Le(this,c).call(this,m)}clone(){return new u(Le(this,c))}};c=new WeakMap;let s=u;ry.FeeDataNetworkPlugin=s;class l extends r{constructor(m,g){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");Wt(this,d,void 0);Wt(this,h,void 0);tt(this,d,m),tt(this,h,g)}get url(){return Le(this,d)}get processFunc(){return Le(this,h)}clone(){return this}}return d=new WeakMap,h=new WeakMap,ry.FetchUrlFeeDataNetworkPlugin=l,ry}var _7t;function ub(){var u,d,h;if(_7t)return eJ;_7t=1,Object.defineProperty(eJ,"__esModule",{value:!0}),eJ.Network=void 0;const t=cb(),e=Oi(),n=$ut(),r=new Map,f=class f{constructor(m,g){Wt(this,u,void 0);Wt(this,d,void 0);Wt(this,h,void 0);tt(this,u,m),tt(this,d,(0,e.getBigInt)(g)),tt(this,h,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return Le(this,u)}set name(m){tt(this,u,m)}get chainId(){return Le(this,d)}set chainId(m){tt(this,d,(0,e.getBigInt)(m,"chainId"))}matches(m){if(m==null)return!1;if(typeof m=="string"){try{return this.chainId===(0,e.getBigInt)(m)}catch{}return this.name===m}if(typeof m=="number"||typeof m=="bigint"){try{return this.chainId===(0,e.getBigInt)(m)}catch{}return!1}if(typeof m=="object"){if(m.chainId!=null){try{return this.chainId===(0,e.getBigInt)(m.chainId)}catch{}return!1}return m.name!=null?this.name===m.name:!1}return!1}get plugins(){return Array.from(Le(this,h).values())}attachPlugin(m){if(Le(this,h).get(m.name))throw new Error(`cannot replace existing plugin: ${m.name} `);return Le(this,h).set(m.name,m.clone()),this}getPlugin(m){return Le(this,h).get(m)||null}getPlugins(m){return this.plugins.filter(g=>g.name.split("#")[0]===m)}clone(){const m=new f(this.name,this.chainId);return this.plugins.forEach(g=>{m.attachPlugin(g.clone())}),m}computeIntrinsicGas(m){const g=this.getPlugin("org.ethers.plugins.network.GasCost")||new n.GasCostPlugin;let v=g.txBase;if(m.to==null&&(v+=g.txCreate),m.data)for(let A=2;A<m.data.length;A+=2)m.data.substring(A,A+2)==="00"?v+=g.txDataZero:v+=g.txDataNonzero;if(m.accessList){const A=(0,t.accessListify)(m.accessList);for(const y in A)v+=g.txAccessListAddress+g.txAccessListStorageKey*A[y].storageKeys.length}return v}static from(m){if(c(),m==null)return f.from("mainnet");if(typeof m=="number"&&(m=BigInt(m)),typeof m=="string"||typeof m=="bigint"){const g=r.get(m);if(g)return g();if(typeof m=="bigint")return new f("unknown",m);(0,e.assertArgument)(!1,"unknown network","network",m)}if(typeof m.clone=="function")return m.clone();if(typeof m=="object"){(0,e.assertArgument)(typeof m.name=="string"&&typeof m.chainId=="number","invalid network object name or chainId","network",m);const g=new f(m.name,m.chainId);return(m.ensAddress||m.ensNetwork!=null)&&g.attachPlugin(new n.EnsPlugin(m.ensAddress,m.ensNetwork)),g}(0,e.assertArgument)(!1,"invalid network","network",m)}static register(m,g){typeof m=="number"&&(m=BigInt(m));const v=r.get(m);v&&(0,e.assertArgument)(!1,`conflicting network for ${JSON.stringify(v.name)}`,"nameOrChainId",m),r.set(m,g)}};u=new WeakMap,d=new WeakMap,h=new WeakMap;let a=f;eJ.Network=a;function o(p,m){const g=String(p);if(!g.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${p}`);const v=g.split(".");if(v.length===1&&v.push(""),v.length!==2)throw new Error(`invalid gwei value: ${p}`);for(;v[1].length<m;)v[1]+="0";if(v[1].length>9){let A=BigInt(v[1].substring(0,9));v[1].substring(9).match(/^0+$/)||A++,v[1]=A.toString()}return BigInt(v[0]+v[1])}function s(p){return new n.FetchUrlFeeDataNetworkPlugin(p,async(m,g,v)=>{v.setHeader("User-Agent","ethers");let A;try{const[y,S]=await Promise.all([v.send(),m()]);A=y;const x=A.bodyJson.standard;return{gasPrice:S.gasPrice,maxFeePerGas:o(x.maxFee,9),maxPriorityFeePerGas:o(x.maxPriorityFee,9)}}catch(y){(0,e.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(v.url)})`,"SERVER_ERROR",{request:v,response:A,error:y})}})}let l=!1;function c(){if(l)return;l=!0;function p(m,g,v){const A=function(){const y=new a(m,g);return v.ensNetwork!=null&&y.attachPlugin(new n.EnsPlugin(null,v.ensNetwork)),y.attachPlugin(new n.GasCostPlugin),(v.plugins||[]).forEach(S=>{y.attachPlugin(S)}),y};a.register(m,A),a.register(g,A),v.altNames&&v.altNames.forEach(y=>{a.register(y,A)})}p("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),p("ropsten",3,{ensNetwork:3}),p("rinkeby",4,{ensNetwork:4}),p("goerli",5,{ensNetwork:5}),p("kovan",42,{ensNetwork:42}),p("sepolia",11155111,{ensNetwork:11155111}),p("holesky",17e3,{ensNetwork:17e3}),p("classic",61,{}),p("classicKotti",6,{}),p("arbitrum",42161,{ensNetwork:1}),p("arbitrum-goerli",421613,{}),p("arbitrum-sepolia",421614,{}),p("base",8453,{ensNetwork:1}),p("base-goerli",84531,{}),p("base-sepolia",84532,{}),p("bnb",56,{ensNetwork:1}),p("bnbt",97,{}),p("linea",59144,{ensNetwork:1}),p("linea-goerli",59140,{}),p("linea-sepolia",59141,{}),p("matic",137,{ensNetwork:1,plugins:[s("https://gasstation.polygon.technology/v2")]}),p("matic-amoy",80002,{}),p("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[s("https://gasstation-testnet.polygon.technology/v2")]}),p("optimism",10,{ensNetwork:1,plugins:[]}),p("optimism-goerli",420,{}),p("optimism-sepolia",11155420,{}),p("xdai",100,{ensNetwork:1})}return eJ}var Om={},T7t;function Fut(){var u,d,h,f,p,Ige,g,v,A,y,S,x,w,_,C,R,k,P,N,_Jn;if(T7t)return Om;T7t=1,Object.defineProperty(Om,"__esModule",{value:!0}),Om.PollingEventSubscriber=Om.PollingTransactionSubscriber=Om.PollingOrphanSubscriber=Om.PollingBlockTagSubscriber=Om.OnBlockSubscriber=Om.PollingBlockSubscriber=Om.getPollingSubscriber=void 0;const t=Oi();function e(I){return JSON.parse(JSON.stringify(I))}function n(I,b){if(b==="block")return new r(I);if((0,t.isHexString)(b,32))return new l(I,b);(0,t.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:b}})}Om.getPollingSubscriber=n;class r{constructor(b){Wt(this,p);Wt(this,u,void 0);Wt(this,d,void 0);Wt(this,h,void 0);Wt(this,f,void 0);tt(this,u,b),tt(this,d,null),tt(this,h,4e3),tt(this,f,-2)}get pollingInterval(){return Le(this,h)}set pollingInterval(b){tt(this,h,b)}start(){Le(this,d)||(tt(this,d,Le(this,u)._setTimeout(qn(this,p,Ige).bind(this),Le(this,h))),qn(this,p,Ige).call(this))}stop(){Le(this,d)&&(Le(this,u)._clearTimeout(Le(this,d)),tt(this,d,null))}pause(b){this.stop(),b&&tt(this,f,-2)}resume(){this.start()}}u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakSet,Ige=async function(){try{const b=await Le(this,u).getBlockNumber();if(Le(this,f)===-2){tt(this,f,b);return}if(b!==Le(this,f)){for(let T=Le(this,f)+1;T<=b;T++){if(Le(this,d)==null)return;await Le(this,u).emit("block",T)}tt(this,f,b)}}catch{}Le(this,d)!=null&&tt(this,d,Le(this,u)._setTimeout(qn(this,p,Ige).bind(this),Le(this,h)))},Om.PollingBlockSubscriber=r;class a{constructor(b){Wt(this,g,void 0);Wt(this,v,void 0);Wt(this,A,void 0);tt(this,g,b),tt(this,A,!1),tt(this,v,T=>{this._poll(T,Le(this,g))})}async _poll(b,T){throw new Error("sub-classes must override this")}start(){Le(this,A)||(tt(this,A,!0),Le(this,v).call(this,-2),Le(this,g).on("block",Le(this,v)))}stop(){Le(this,A)&&(tt(this,A,!1),Le(this,g).off("block",Le(this,v)))}pause(b){this.stop()}resume(){this.start()}}g=new WeakMap,v=new WeakMap,A=new WeakMap,Om.OnBlockSubscriber=a;class o extends a{constructor(T,M){super(T);Wt(this,y,void 0);Wt(this,S,void 0);tt(this,y,M),tt(this,S,-2)}pause(T){T&&tt(this,S,-2),super.pause(T)}async _poll(T,M){const D=await M.getBlock(Le(this,y));D!=null&&(Le(this,S)===-2?tt(this,S,D.number):D.number>Le(this,S)&&(M.emit(Le(this,y),D.number),tt(this,S,D.number)))}}y=new WeakMap,S=new WeakMap,Om.PollingBlockTagSubscriber=o;class s extends a{constructor(T,M){super(T);Wt(this,x,void 0);tt(this,x,e(M))}async _poll(T,M){throw new Error("@TODO")}}x=new WeakMap,Om.PollingOrphanSubscriber=s;class l extends a{constructor(T,M){super(T);Wt(this,w,void 0);tt(this,w,M)}async _poll(T,M){const D=await M.getTransactionReceipt(Le(this,w));D&&M.emit(Le(this,w),D)}}w=new WeakMap,Om.PollingTransactionSubscriber=l;class c{constructor(b,T){Wt(this,N);Wt(this,_,void 0);Wt(this,C,void 0);Wt(this,R,void 0);Wt(this,k,void 0);Wt(this,P,void 0);tt(this,_,b),tt(this,C,e(T)),tt(this,R,qn(this,N,_Jn).bind(this)),tt(this,k,!1),tt(this,P,-2)}start(){Le(this,k)||(tt(this,k,!0),Le(this,P)===-2&&Le(this,_).getBlockNumber().then(b=>{tt(this,P,b)}),Le(this,_).on("block",Le(this,R)))}stop(){Le(this,k)&&(tt(this,k,!1),Le(this,_).off("block",Le(this,R)))}pause(b){this.stop(),b&&tt(this,P,-2)}resume(){this.start()}}return _=new WeakMap,C=new WeakMap,R=new WeakMap,k=new WeakMap,P=new WeakMap,N=new WeakSet,_Jn=async function(b){if(Le(this,P)===-2)return;const T=e(Le(this,C));T.fromBlock=Le(this,P)+1,T.toBlock=b;const M=await Le(this,_).getLogs(T);if(M.length===0){Le(this,P)<b-60&&tt(this,P,b-60);return}for(const D of M)Le(this,_).emit(Le(this,C),D),tt(this,P,D.blockNumber)},Om.PollingEventSubscriber=c,Om}var C7t;function nle(){var b,T,M,D,B,j,H,U,$,z,Z,K,Q,my,X,Aqe,J,yqe,ie,QZ,de,bqe,Ee,qZ,Be,Pge;if(C7t)return _L;C7t=1,Object.defineProperty(_L,"__esModule",{value:!0}),_L.AbstractProvider=_L.UnmanagedSubscriber=void 0;const t=Am(),e=Xse(),n=PCe(),r=CN(),a=cb(),o=Oi(),s=wJn(),l=XKo(),c=ub(),u=tle(),d=Fut(),h=BigInt(2),f=10;function p(je){return je&&typeof je.then=="function"}function m(je,ye){return je+":"+JSON.stringify(ye,(me,le)=>{if(le==null)return"null";if(typeof le=="bigint")return`bigint:${le.toString()}`;if(typeof le=="string")return le.toLowerCase();if(typeof le=="object"&&!Array.isArray(le)){const pe=Object.keys(le);return pe.sort(),pe.reduce((Ne,_e)=>(Ne[_e]=le[_e],Ne),{})}return le})}class g{constructor(ye){Ut(this,"name");(0,o.defineProperties)(this,{name:ye})}start(){}stop(){}pause(ye){}resume(){}}_L.UnmanagedSubscriber=g;function v(je){return JSON.parse(JSON.stringify(je))}function A(je){return je=Array.from(new Set(je).values()),je.sort(),je}async function y(je,ye){if(je==null)throw new Error("invalid event");if(Array.isArray(je)&&(je={topics:je}),typeof je=="string")switch(je){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:je,tag:je}}if((0,o.isHexString)(je,32)){const me=je.toLowerCase();return{type:"transaction",tag:m("tx",{hash:me}),hash:me}}if(je.orphan){const me=je;return{type:"orphan",tag:m("orphan",me),filter:v(me)}}if(je.address||je.topics){const me=je,le={topics:(me.topics||[]).map(pe=>pe==null?null:Array.isArray(pe)?A(pe.map(Ne=>Ne.toLowerCase())):pe.toLowerCase())};if(me.address){const pe=[],Ne=[],_e=ue=>{(0,o.isHexString)(ue)?pe.push(ue):Ne.push((async()=>{pe.push(await(0,t.resolveAddress)(ue,ye))})())};Array.isArray(me.address)?me.address.forEach(_e):_e(me.address),Ne.length&&await Promise.all(Ne),le.address=A(pe.map(ue=>ue.toLowerCase()))}return{filter:le,tag:m("event",le),type:"event"}}(0,o.assertArgument)(!1,"unknown ProviderEvent","event",je)}function S(){return new Date().getTime()}const x={cacheTimeout:250,pollingInterval:4e3};class w{constructor(ye,me){Wt(this,Q);Wt(this,X);Wt(this,J);Wt(this,ie);Wt(this,de);Wt(this,Ee);Wt(this,Be);Wt(this,b,void 0);Wt(this,T,void 0);Wt(this,M,void 0);Wt(this,D,void 0);Wt(this,B,void 0);Wt(this,j,void 0);Wt(this,H,void 0);Wt(this,U,void 0);Wt(this,$,void 0);Wt(this,z,void 0);Wt(this,Z,void 0);Wt(this,K,void 0);if(tt(this,K,Object.assign({},x,me||{})),ye==="any")tt(this,j,!0),tt(this,B,null);else if(ye){const le=c.Network.from(ye);tt(this,j,!1),tt(this,B,Promise.resolve(le)),setTimeout(()=>{this.emit("network",le,null)},0)}else tt(this,j,!1),tt(this,B,null);tt(this,U,-1),tt(this,H,new Map),tt(this,b,new Map),tt(this,T,new Map),tt(this,M,null),tt(this,D,!1),tt(this,$,1),tt(this,z,new Map),tt(this,Z,!1)}get pollingInterval(){return Le(this,K).pollingInterval}get provider(){return this}get plugins(){return Array.from(Le(this,T).values())}attachPlugin(ye){if(Le(this,T).get(ye.name))throw new Error(`cannot replace existing plugin: ${ye.name} `);return Le(this,T).set(ye.name,ye.connect(this)),this}getPlugin(ye){return Le(this,T).get(ye)||null}get disableCcipRead(){return Le(this,Z)}set disableCcipRead(ye){tt(this,Z,!!ye)}async ccipReadFetch(ye,me,le){if(this.disableCcipRead||le.length===0||ye.to==null)return null;const pe=ye.to.toLowerCase(),Ne=me.toLowerCase(),_e=[];for(let ue=0;ue<le.length;ue++){const se=le[ue],oe=se.replace("{sender}",pe).replace("{data}",Ne),ge=new o.FetchRequest(oe);se.indexOf("{data}")===-1&&(ge.body={data:Ne,sender:pe}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:ge,index:ue,urls:le});let De="unknown error";const Fe=await ge.send();try{const Se=Fe.bodyJson;if(Se.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:ge,result:Se}),Se.data;Se.message&&(De=Se.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:ge,result:Se})}catch{}(0,o.assert)(Fe.statusCode<400||Fe.statusCode>=500,`response not found during CCIP fetch: ${De}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:ye,info:{url:se,errorMessage:De}}),_e.push(De)}(0,o.assert)(!1,`error encountered during CCIP fetch: ${_e.map(ue=>JSON.stringify(ue)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:ye,info:{urls:le,errorMessages:_e}})}_wrapBlock(ye,me){return new u.Block((0,l.formatBlock)(ye),this)}_wrapLog(ye,me){return new u.Log((0,l.formatLog)(ye),this)}_wrapTransactionReceipt(ye,me){return new u.TransactionReceipt((0,l.formatTransactionReceipt)(ye),this)}_wrapTransactionResponse(ye,me){return new u.TransactionResponse((0,l.formatTransactionResponse)(ye),this)}_detectNetwork(){(0,o.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(ye){(0,o.assert)(!1,`unsupported method: ${ye.method}`,"UNSUPPORTED_OPERATION",{operation:ye.method,info:ye})}async getBlockNumber(){const ye=(0,o.getNumber)(await qn(this,Q,my).call(this,{method:"getBlockNumber"}),"%response");return Le(this,U)>=0&&tt(this,U,ye),ye}_getAddress(ye){return(0,t.resolveAddress)(ye,this)}_getBlockTag(ye){if(ye==null)return"latest";switch(ye){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return ye}if((0,o.isHexString)(ye))return(0,o.isHexString)(ye,32)?ye:(0,o.toQuantity)(ye);if(typeof ye=="bigint"&&(ye=(0,o.getNumber)(ye,"blockTag")),typeof ye=="number")return ye>=0?(0,o.toQuantity)(ye):Le(this,U)>=0?(0,o.toQuantity)(Le(this,U)+ye):this.getBlockNumber().then(me=>(0,o.toQuantity)(me+ye));(0,o.assertArgument)(!1,"invalid blockTag","blockTag",ye)}_getFilter(ye){const me=(ye.topics||[]).map(se=>se==null?null:Array.isArray(se)?A(se.map(oe=>oe.toLowerCase())):se.toLowerCase()),le="blockHash"in ye?ye.blockHash:void 0,pe=(se,oe,ge)=>{let De;switch(se.length){case 0:break;case 1:De=se[0];break;default:se.sort(),De=se}if(le&&(oe!=null||ge!=null))throw new Error("invalid filter");const Fe={};return De&&(Fe.address=De),me.length&&(Fe.topics=me),oe&&(Fe.fromBlock=oe),ge&&(Fe.toBlock=ge),le&&(Fe.blockHash=le),Fe};let Ne=[];if(ye.address)if(Array.isArray(ye.address))for(const se of ye.address)Ne.push(this._getAddress(se));else Ne.push(this._getAddress(ye.address));let _e;"fromBlock"in ye&&(_e=this._getBlockTag(ye.fromBlock));let ue;return"toBlock"in ye&&(ue=this._getBlockTag(ye.toBlock)),Ne.filter(se=>typeof se!="string").length||_e!=null&&typeof _e!="string"||ue!=null&&typeof ue!="string"?Promise.all([Promise.all(Ne),_e,ue]).then(se=>pe(se[0],se[1],se[2])):pe(Ne,_e,ue)}_getTransactionRequest(ye){const me=(0,u.copyRequest)(ye),le=[];if(["to","from"].forEach(pe=>{if(me[pe]==null)return;const Ne=(0,t.resolveAddress)(me[pe],this);p(Ne)?le.push(async function(){me[pe]=await Ne}()):me[pe]=Ne}),me.blockTag!=null){const pe=this._getBlockTag(me.blockTag);p(pe)?le.push(async function(){me.blockTag=await pe}()):me.blockTag=pe}return le.length?async function(){return await Promise.all(le),me}():me}async getNetwork(){if(Le(this,B)==null){const pe=(async()=>{try{const Ne=await this._detectNetwork();return this.emit("network",Ne,null),Ne}catch(Ne){throw Le(this,B)===pe&&tt(this,B,null),Ne}})();return tt(this,B,pe),(await pe).clone()}const ye=Le(this,B),[me,le]=await Promise.all([ye,this._detectNetwork()]);return me.chainId!==le.chainId&&(Le(this,j)?(this.emit("network",le,me),Le(this,B)===ye&&tt(this,B,Promise.resolve(le))):(0,o.assert)(!1,`network changed: ${me.chainId} => ${le.chainId} `,"NETWORK_ERROR",{event:"changed"})),me.clone()}async getFeeData(){const ye=await this.getNetwork(),me=async()=>{const{_block:pe,gasPrice:Ne,priorityFee:_e}=await(0,o.resolveProperties)({_block:qn(this,de,bqe).call(this,"latest",!1),gasPrice:(async()=>{try{const ge=await qn(this,Q,my).call(this,{method:"getGasPrice"});return(0,o.getBigInt)(ge,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const ge=await qn(this,Q,my).call(this,{method:"getPriorityFee"});return(0,o.getBigInt)(ge,"%response")}catch{}return null})()});let ue=null,se=null;const oe=this._wrapBlock(pe,ye);return oe&&oe.baseFeePerGas&&(se=_e??BigInt("1000000000"),ue=oe.baseFeePerGas*h+se),new u.FeeData(Ne,ue,se)},le=ye.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(le){const pe=new o.FetchRequest(le.url),Ne=await le.processFunc(me,this,pe);return new u.FeeData(Ne.gasPrice,Ne.maxFeePerGas,Ne.maxPriorityFeePerGas)}return await me()}async estimateGas(ye){let me=this._getTransactionRequest(ye);return p(me)&&(me=await me),(0,o.getBigInt)(await qn(this,Q,my).call(this,{method:"estimateGas",transaction:me}),"%response")}async call(ye){const{tx:me,blockTag:le}=await(0,o.resolveProperties)({tx:this._getTransactionRequest(ye),blockTag:this._getBlockTag(ye.blockTag)});return await qn(this,J,yqe).call(this,qn(this,X,Aqe).call(this,me,le,ye.enableCcipRead?0:-1))}async getBalance(ye,me){return(0,o.getBigInt)(await qn(this,ie,QZ).call(this,{method:"getBalance"},ye,me),"%response")}async getTransactionCount(ye,me){return(0,o.getNumber)(await qn(this,ie,QZ).call(this,{method:"getTransactionCount"},ye,me),"%response")}async getCode(ye,me){return(0,o.hexlify)(await qn(this,ie,QZ).call(this,{method:"getCode"},ye,me))}async getStorage(ye,me,le){const pe=(0,o.getBigInt)(me,"position");return(0,o.hexlify)(await qn(this,ie,QZ).call(this,{method:"getStorage",position:pe},ye,le))}async broadcastTransaction(ye){const{blockNumber:me,hash:le,network:pe}=await(0,o.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:ye}),network:this.getNetwork()}),Ne=a.Transaction.from(ye);if(Ne.hash!==le)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(Ne,pe).replaceableTransaction(me)}async getBlock(ye,me){const{network:le,params:pe}=await(0,o.resolveProperties)({network:this.getNetwork(),params:qn(this,de,bqe).call(this,ye,!!me)});return pe==null?null:this._wrapBlock(pe,le)}async getTransaction(ye){const{network:me,params:le}=await(0,o.resolveProperties)({network:this.getNetwork(),params:qn(this,Q,my).call(this,{method:"getTransaction",hash:ye})});return le==null?null:this._wrapTransactionResponse(le,me)}async getTransactionReceipt(ye){const{network:me,params:le}=await(0,o.resolveProperties)({network:this.getNetwork(),params:qn(this,Q,my).call(this,{method:"getTransactionReceipt",hash:ye})});if(le==null)return null;if(le.gasPrice==null&&le.effectiveGasPrice==null){const pe=await qn(this,Q,my).call(this,{method:"getTransaction",hash:ye});if(pe==null)throw new Error("report this; could not find tx or effectiveGasPrice");le.effectiveGasPrice=pe.gasPrice}return this._wrapTransactionReceipt(le,me)}async getTransactionResult(ye){const{result:me}=await(0,o.resolveProperties)({network:this.getNetwork(),result:qn(this,Q,my).call(this,{method:"getTransactionResult",hash:ye})});return me==null?null:(0,o.hexlify)(me)}async getLogs(ye){let me=this._getFilter(ye);p(me)&&(me=await me);const{network:le,params:pe}=await(0,o.resolveProperties)({network:this.getNetwork(),params:qn(this,Q,my).call(this,{method:"getLogs",filter:me})});return pe.map(Ne=>this._wrapLog(Ne,le))}_getProvider(ye){(0,o.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(ye){return await s.EnsResolver.fromName(this,ye)}async getAvatar(ye){const me=await this.getResolver(ye);return me?await me.getAvatar():null}async resolveName(ye){const me=await this.getResolver(ye);return me?await me.getAddress():null}async lookupAddress(ye){ye=(0,t.getAddress)(ye);const me=(0,r.namehash)(ye.substring(2).toLowerCase()+".addr.reverse");try{const le=await s.EnsResolver.getEnsAddress(this),Ne=await new n.Contract(le,["function resolver(bytes32) view returns (address)"],this).resolver(me);if(Ne==null||Ne===e.ZeroAddress)return null;const ue=await new n.Contract(Ne,["function name(bytes32) view returns (string)"],this).name(me);return await this.resolveName(ue)!==ye?null:ue}catch(le){if((0,o.isError)(le,"BAD_DATA")&&le.value==="0x"||(0,o.isError)(le,"CALL_EXCEPTION"))return null;throw le}return null}async waitForTransaction(ye,me,le){const pe=me??1;return pe===0?this.getTransactionReceipt(ye):new Promise(async(Ne,_e)=>{let ue=null;const se=async oe=>{try{const ge=await this.getTransactionReceipt(ye);if(ge!=null&&oe-ge.blockNumber+1>=pe){Ne(ge),ue&&(clearTimeout(ue),ue=null);return}}catch(ge){console.log("EEE",ge)}this.once("block",se)};le!=null&&(ue=setTimeout(()=>{ue!=null&&(ue=null,this.off("block",se),_e((0,o.makeError)("timeout","TIMEOUT",{reason:"timeout"})))},le)),se(await this.getBlockNumber())})}async waitForBlock(ye){(0,o.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(ye){const me=Le(this,z).get(ye);me&&(me.timer&&clearTimeout(me.timer),Le(this,z).delete(ye))}_setTimeout(ye,me){me==null&&(me=0);const le=Z9(this,$)._++,pe=()=>{Le(this,z).delete(le),ye()};if(this.paused)Le(this,z).set(le,{timer:null,func:pe,time:me});else{const Ne=setTimeout(pe,me);Le(this,z).set(le,{timer:Ne,func:pe,time:S()})}return le}_forEachSubscriber(ye){for(const me of Le(this,b).values())ye(me.subscriber)}_getSubscriber(ye){switch(ye.type){case"debug":case"error":case"network":return new g(ye.type);case"block":{const me=new d.PollingBlockSubscriber(this);return me.pollingInterval=this.pollingInterval,me}case"safe":case"finalized":return new d.PollingBlockTagSubscriber(this,ye.type);case"event":return new d.PollingEventSubscriber(this,ye.filter);case"transaction":return new d.PollingTransactionSubscriber(this,ye.hash);case"orphan":return new d.PollingOrphanSubscriber(this,ye.filter)}throw new Error(`unsupported event: ${ye.type}`)}_recoverSubscriber(ye,me){for(const le of Le(this,b).values())if(le.subscriber===ye){le.started&&le.subscriber.stop(),le.subscriber=me,le.started&&me.start(),Le(this,M)!=null&&me.pause(Le(this,M));break}}async on(ye,me){const le=await qn(this,Be,Pge).call(this,ye);return le.listeners.push({listener:me,once:!1}),le.started||(le.subscriber.start(),le.started=!0,Le(this,M)!=null&&le.subscriber.pause(Le(this,M))),this}async once(ye,me){const le=await qn(this,Be,Pge).call(this,ye);return le.listeners.push({listener:me,once:!0}),le.started||(le.subscriber.start(),le.started=!0,Le(this,M)!=null&&le.subscriber.pause(Le(this,M))),this}async emit(ye,...me){const le=await qn(this,Ee,qZ).call(this,ye,me);if(!le||le.listeners.length===0)return!1;const pe=le.listeners.length;return le.listeners=le.listeners.filter(({listener:Ne,once:_e})=>{const ue=new o.EventPayload(this,_e?null:Ne,ye);try{Ne.call(this,...me,ue)}catch{}return!_e}),le.listeners.length===0&&(le.started&&le.subscriber.stop(),Le(this,b).delete(le.tag)),pe>0}async listenerCount(ye){if(ye){const le=await qn(this,Ee,qZ).call(this,ye);return le?le.listeners.length:0}let me=0;for(const{listeners:le}of Le(this,b).values())me+=le.length;return me}async listeners(ye){if(ye){const le=await qn(this,Ee,qZ).call(this,ye);return le?le.listeners.map(({listener:pe})=>pe):[]}let me=[];for(const{listeners:le}of Le(this,b).values())me=me.concat(le.map(({listener:pe})=>pe));return me}async off(ye,me){const le=await qn(this,Ee,qZ).call(this,ye);if(!le)return this;if(me){const pe=le.listeners.map(({listener:Ne})=>Ne).indexOf(me);pe>=0&&le.listeners.splice(pe,1)}return(!me||le.listeners.length===0)&&(le.started&&le.subscriber.stop(),Le(this,b).delete(le.tag)),this}async removeAllListeners(ye){if(ye){const{tag:me,started:le,subscriber:pe}=await qn(this,Be,Pge).call(this,ye);le&&pe.stop(),Le(this,b).delete(me)}else for(const[me,{started:le,subscriber:pe}]of Le(this,b))le&&pe.stop(),Le(this,b).delete(me);return this}async addListener(ye,me){return await this.on(ye,me)}async removeListener(ye,me){return this.off(ye,me)}get destroyed(){return Le(this,D)}destroy(){this.removeAllListeners();for(const ye of Le(this,z).keys())this._clearTimeout(ye);tt(this,D,!0)}get paused(){return Le(this,M)!=null}set paused(ye){!!ye!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(ye){if(tt(this,U,-1),Le(this,M)!=null){if(Le(this,M)==!!ye)return;(0,o.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(me=>me.pause(ye)),tt(this,M,!!ye);for(const me of Le(this,z).values())me.timer&&clearTimeout(me.timer),me.time=S()-me.time}resume(){if(Le(this,M)!=null){this._forEachSubscriber(ye=>ye.resume()),tt(this,M,null);for(const ye of Le(this,z).values()){let me=ye.time;me<0&&(me=0),ye.time=S(),setTimeout(ye.func,me)}}}}b=new WeakMap,T=new WeakMap,M=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,H=new WeakMap,U=new WeakMap,$=new WeakMap,z=new WeakMap,Z=new WeakMap,K=new WeakMap,Q=new WeakSet,my=async function(ye){const me=Le(this,K).cacheTimeout;if(me<0)return await this._perform(ye);const le=m(ye.method,ye);let pe=Le(this,H).get(le);return pe||(pe=this._perform(ye),Le(this,H).set(le,pe),setTimeout(()=>{Le(this,H).get(le)===pe&&Le(this,H).delete(le)},me)),await pe},X=new WeakSet,Aqe=async function(ye,me,le){(0,o.assert)(le<f,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},ye,{blockTag:me,enableCcipRead:!0})});const pe=(0,u.copyRequest)(ye);try{return(0,o.hexlify)(await this._perform({method:"call",transaction:pe,blockTag:me}))}catch(Ne){if(!this.disableCcipRead&&(0,o.isCallException)(Ne)&&Ne.data&&le>=0&&me==="latest"&&pe.to!=null&&(0,o.dataSlice)(Ne.data,0,4)==="0x556f1830"){const _e=Ne.data,ue=await(0,t.resolveAddress)(pe.to,this);let se;try{se=I((0,o.dataSlice)(Ne.data,4))}catch(De){(0,o.assert)(!1,De.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:pe,info:{data:_e}})}(0,o.assert)(se.sender.toLowerCase()===ue.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:_e,reason:"OffchainLookup",transaction:pe,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:se.errorArgs}});const oe=await this.ccipReadFetch(pe,se.calldata,se.urls);(0,o.assert)(oe!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:pe,info:{data:Ne.data,errorArgs:se.errorArgs}});const ge={to:ue,data:(0,o.concat)([se.selector,N([oe,se.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:ge});try{const De=await qn(this,X,Aqe).call(this,ge,me,le+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},ge),result:De}),De}catch(De){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},ge),error:De}),De}}throw Ne}},J=new WeakSet,yqe=async function(ye){const{value:me}=await(0,o.resolveProperties)({network:this.getNetwork(),value:ye});return me},ie=new WeakSet,QZ=async function(ye,me,le){let pe=this._getAddress(me),Ne=this._getBlockTag(le);return(typeof pe!="string"||typeof Ne!="string")&&([pe,Ne]=await Promise.all([pe,Ne])),await qn(this,J,yqe).call(this,qn(this,Q,my).call(this,Object.assign(ye,{address:pe,blockTag:Ne})))},de=new WeakSet,bqe=async function(ye,me){if((0,o.isHexString)(ye,32))return await qn(this,Q,my).call(this,{method:"getBlock",blockHash:ye,includeTransactions:me});let le=this._getBlockTag(ye);return typeof le!="string"&&(le=await le),await qn(this,Q,my).call(this,{method:"getBlock",blockTag:le,includeTransactions:me})},Ee=new WeakSet,qZ=async function(ye,me){let le=await y(ye,this);return le.type==="event"&&me&&me.length>0&&me[0].removed===!0&&(le=await y({orphan:"drop-log",log:me[0]},this)),Le(this,b).get(le.tag)||null},Be=new WeakSet,Pge=async function(ye){const me=await y(ye,this),le=me.tag;let pe=Le(this,b).get(le);return pe||(pe={subscriber:this._getSubscriber(me),tag:le,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},Le(this,b).set(le,pe)),pe},_L.AbstractProvider=w;function _(je,ye){try{const me=C(je,ye);if(me)return(0,o.toUtf8String)(me)}catch{}return null}function C(je,ye){if(je==="0x")return null;try{const me=(0,o.getNumber)((0,o.dataSlice)(je,ye,ye+32)),le=(0,o.getNumber)((0,o.dataSlice)(je,me,me+32));return(0,o.dataSlice)(je,me+32,me+32+le)}catch{}return null}function R(je){const ye=(0,o.toBeArray)(je);if(ye.length>32)throw new Error("internal; should not happen");const me=new Uint8Array(32);return me.set(ye,32-ye.length),me}function k(je){if(je.length%32===0)return je;const ye=new Uint8Array(Math.ceil(je.length/32)*32);return ye.set(je),ye}const P=new Uint8Array([]);function N(je){const ye=[];let me=0;for(let le=0;le<je.length;le++)ye.push(P),me+=32;for(let le=0;le<je.length;le++){const pe=(0,o.getBytes)(je[le]);ye[le]=R(me),ye.push(R(pe.length)),ye.push(k(pe)),me+=32+Math.ceil(pe.length/32)*32}return(0,o.concat)(ye)}const L="0x0000000000000000000000000000000000000000000000000000000000000000";function I(je){const ye={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,o.assert)((0,o.dataLength)(je)>=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const me=(0,o.dataSlice)(je,0,32);(0,o.assert)((0,o.dataSlice)(me,0,12)===(0,o.dataSlice)(L,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),ye.sender=(0,o.dataSlice)(me,12);try{const le=[],pe=(0,o.getNumber)((0,o.dataSlice)(je,32,64)),Ne=(0,o.getNumber)((0,o.dataSlice)(je,pe,pe+32)),_e=(0,o.dataSlice)(je,pe+32);for(let ue=0;ue<Ne;ue++){const se=_(_e,ue*32);if(se==null)throw new Error("abort");le.push(se)}ye.urls=le}catch{(0,o.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const le=C(je,64);if(le==null)throw new Error("abort");ye.calldata=le}catch{(0,o.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,o.assert)((0,o.dataSlice)(je,100,128)===(0,o.dataSlice)(L,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),ye.selector=(0,o.dataSlice)(je,96,100);try{const le=C(je,128);if(le==null)throw new Error("abort");ye.extraData=le}catch{(0,o.assert)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return ye.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(le=>ye[le]),ye}return _L}var TL={},k7t;function jut(){var c,Oge;if(k7t)return TL;k7t=1,Object.defineProperty(TL,"__esModule",{value:!0}),TL.VoidSigner=TL.AbstractSigner=void 0;const t=Am(),e=cb(),n=Oi(),r=tle();function a(h,f){if(h.provider)return h.provider;(0,n.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:f})}async function o(h,f){let p=(0,r.copyRequest)(f);if(p.to!=null&&(p.to=(0,t.resolveAddress)(p.to,h)),p.from!=null){const m=p.from;p.from=Promise.all([h.getAddress(),(0,t.resolveAddress)(m,h)]).then(([g,v])=>((0,n.assertArgument)(g.toLowerCase()===v.toLowerCase(),"transaction from mismatch","tx.from",v),g))}else p.from=h.getAddress();return await(0,n.resolveProperties)(p)}class s{constructor(f){Ut(this,"provider");(0,n.defineProperties)(this,{provider:f||null})}async getNonce(f){return a(this,"getTransactionCount").getTransactionCount(await this.getAddress(),f)}async populateCall(f){return await o(this,f)}async populateTransaction(f){const p=a(this,"populateTransaction"),m=await o(this,f);m.nonce==null&&(m.nonce=await this.getNonce("pending")),m.gasLimit==null&&(m.gasLimit=await this.estimateGas(m));const g=await this.provider.getNetwork();if(m.chainId!=null){const A=(0,n.getBigInt)(m.chainId);(0,n.assertArgument)(A===g.chainId,"transaction chainId mismatch","tx.chainId",f.chainId)}else m.chainId=g.chainId;const v=m.maxFeePerGas!=null||m.maxPriorityFeePerGas!=null;if(m.gasPrice!=null&&(m.type===2||v)?(0,n.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",f):(m.type===0||m.type===1)&&v&&(0,n.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",f),(m.type===2||m.type==null)&&m.maxFeePerGas!=null&&m.maxPriorityFeePerGas!=null)m.type=2;else if(m.type===0||m.type===1){const A=await p.getFeeData();(0,n.assert)(A.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),m.gasPrice==null&&(m.gasPrice=A.gasPrice)}else{const A=await p.getFeeData();if(m.type==null)if(A.maxFeePerGas!=null&&A.maxPriorityFeePerGas!=null)if(m.type=2,m.gasPrice!=null){const y=m.gasPrice;delete m.gasPrice,m.maxFeePerGas=y,m.maxPriorityFeePerGas=y}else m.maxFeePerGas==null&&(m.maxFeePerGas=A.maxFeePerGas),m.maxPriorityFeePerGas==null&&(m.maxPriorityFeePerGas=A.maxPriorityFeePerGas);else A.gasPrice!=null?((0,n.assert)(!v,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),m.gasPrice==null&&(m.gasPrice=A.gasPrice),m.type=0):(0,n.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(m.type===2||m.type===3)&&(m.maxFeePerGas==null&&(m.maxFeePerGas=A.maxFeePerGas),m.maxPriorityFeePerGas==null&&(m.maxPriorityFeePerGas=A.maxPriorityFeePerGas))}return await(0,n.resolveProperties)(m)}async estimateGas(f){return a(this,"estimateGas").estimateGas(await this.populateCall(f))}async call(f){return a(this,"call").call(await this.populateCall(f))}async resolveName(f){return await a(this,"resolveName").resolveName(f)}async sendTransaction(f){const p=a(this,"sendTransaction"),m=await this.populateTransaction(f);delete m.from;const g=e.Transaction.from(m);return await p.broadcastTransaction(await this.signTransaction(g))}}TL.AbstractSigner=s;const d=class d extends s{constructor(p,m){super(m);Wt(this,c);Ut(this,"address");(0,n.defineProperties)(this,{address:p})}async getAddress(){return this.address}connect(p){return new d(this.address,p)}async signTransaction(p){qn(this,c,Oge).call(this,"transactions","signTransaction")}async signMessage(p){qn(this,c,Oge).call(this,"messages","signMessage")}async signTypedData(p,m,g){qn(this,c,Oge).call(this,"typed-data","signTypedData")}};c=new WeakSet,Oge=function(p,m){(0,n.assert)(!1,`VoidSigner cannot sign ${p}`,"UNSUPPORTED_OPERATION",{operation:m})};let l=d;return TL.VoidSigner=l,TL}var tJ={},R7t;function MO(){if(R7t)return tJ;R7t=1,Object.defineProperty(tJ,"__esModule",{value:!0}),tJ.showThrottleMessage=void 0;const t=new Set;function e(n){t.has(n)||(t.add(n),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${n} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}return tJ.showThrottleMessage=e,tJ}var nJ={},rJ={},AS={},Qk={},M7t;function eWo(){var s,l,c,u,d,h,f,xqe,m,Eqe,v;if(M7t)return Qk;M7t=1,Object.defineProperty(Qk,"__esModule",{value:!0}),Qk.FilterIdPendingSubscriber=Qk.FilterIdEventSubscriber=Qk.FilterIdSubscriber=void 0;const t=Oi(),e=Fut();function n(A){return JSON.parse(JSON.stringify(A))}class r{constructor(y){Wt(this,f);Wt(this,m);Wt(this,s,void 0);Wt(this,l,void 0);Wt(this,c,void 0);Wt(this,u,void 0);Wt(this,d,void 0);Wt(this,h,void 0);tt(this,s,y),tt(this,l,null),tt(this,c,qn(this,f,xqe).bind(this)),tt(this,u,!1),tt(this,d,null),tt(this,h,!1)}_subscribe(y){throw new Error("subclasses must override this")}_emitResults(y,S){throw new Error("subclasses must override this")}_recover(y){throw new Error("subclasses must override this")}start(){Le(this,u)||(tt(this,u,!0),qn(this,f,xqe).call(this,-2))}stop(){Le(this,u)&&(tt(this,u,!1),tt(this,h,!0),qn(this,m,Eqe).call(this),Le(this,s).off("block",Le(this,c)))}pause(y){y&&qn(this,m,Eqe).call(this),Le(this,s).off("block",Le(this,c))}resume(){this.start()}}s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakSet,xqe=async function(y){try{Le(this,l)==null&&tt(this,l,this._subscribe(Le(this,s)));let S=null;try{S=await Le(this,l)}catch(_){if(!(0,t.isError)(_,"UNSUPPORTED_OPERATION")||_.operation!=="eth_newFilter")throw _}if(S==null){tt(this,l,null),Le(this,s)._recoverSubscriber(this,this._recover(Le(this,s)));return}const x=await Le(this,s).getNetwork();if(Le(this,d)||tt(this,d,x),Le(this,d).chainId!==x.chainId)throw new Error("chaid changed");if(Le(this,h))return;const w=await Le(this,s).send("eth_getFilterChanges",[S]);await this._emitResults(Le(this,s),w)}catch(S){console.log("@TODO",S)}Le(this,s).once("block",Le(this,c))},m=new WeakSet,Eqe=function(){const y=Le(this,l);y&&(tt(this,l,null),y.then(S=>{Le(this,s).destroyed||Le(this,s).send("eth_uninstallFilter",[S])}))},Qk.FilterIdSubscriber=r;class a extends r{constructor(S,x){super(S);Wt(this,v,void 0);tt(this,v,n(x))}_recover(S){return new e.PollingEventSubscriber(S,Le(this,v))}async _subscribe(S){return await S.send("eth_newFilter",[Le(this,v)])}async _emitResults(S,x){for(const w of x)S.emit(Le(this,v),S._wrapLog(w,S._network))}}v=new WeakMap,Qk.FilterIdEventSubscriber=a;class o extends r{async _subscribe(y){return await y.send("eth_newPendingTransactionFilter",[])}async _emitResults(y,S){for(const x of S)y.emit("pending",x)}}return Qk.FilterIdPendingSubscriber=o,Qk}var N7t;function s_(){var C,R,k,P,N,L,I,b,Sqe,M,D;if(N7t)return AS;N7t=1,Object.defineProperty(AS,"__esModule",{value:!0}),AS.JsonRpcProvider=AS.JsonRpcApiPollingProvider=AS.JsonRpcApiProvider=AS.JsonRpcSigner=void 0;const t=ele(),e=Am(),n=CN(),r=cb(),a=Oi(),o=nle(),s=jut(),l=ub(),c=eWo(),u=Fut(),d="bigint,boolean,function,number,string,symbol".split(/,/g);function h(B){if(B==null||d.indexOf(typeof B)>=0||typeof B.getAddress=="function")return B;if(Array.isArray(B))return B.map(h);if(typeof B=="object")return Object.keys(B).reduce((j,H)=>(j[H]=B[H],j),{});throw new Error(`should not happen: ${B} (${typeof B})`)}function f(B){return new Promise(j=>{setTimeout(j,B)})}function p(B){return B&&B.toLowerCase()}function m(B){return B&&typeof B.pollingInterval=="number"}const g={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class v extends s.AbstractSigner{constructor(H,U){super(H);Ut(this,"address");U=(0,e.getAddress)(U),(0,a.defineProperties)(this,{address:U})}connect(H){(0,a.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(H){return await this.populateCall(H)}async sendUncheckedTransaction(H){const U=h(H),$=[];if(U.from){const Z=U.from;$.push((async()=>{const K=await(0,e.resolveAddress)(Z,this.provider);(0,a.assertArgument)(K!=null&&K.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",H),U.from=K})())}else U.from=this.address;if(U.gasLimit==null&&$.push((async()=>{U.gasLimit=await this.provider.estimateGas({...U,from:this.address})})()),U.to!=null){const Z=U.to;$.push((async()=>{U.to=await(0,e.resolveAddress)(Z,this.provider)})())}$.length&&await Promise.all($);const z=this.provider.getRpcTransaction(U);return this.provider.send("eth_sendTransaction",[z])}async sendTransaction(H){const U=await this.provider.getBlockNumber(),$=await this.sendUncheckedTransaction(H);return await new Promise((z,Z)=>{const K=[1e3,100];let Q=0;const ee=async()=>{try{const X=await this.provider.getTransaction($);if(X!=null){z(X.replaceableTransaction(U));return}}catch(X){if((0,a.isError)(X,"CANCELLED")||(0,a.isError)(X,"BAD_DATA")||(0,a.isError)(X,"NETWORK_ERROR")){X.info==null&&(X.info={}),X.info.sendTransactionHash=$,Z(X);return}if((0,a.isError)(X,"INVALID_ARGUMENT")&&(Q++,X.info==null&&(X.info={}),X.info.sendTransactionHash=$,Q>10)){Z(X);return}this.provider.emit("error",(0,a.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:X}))}this.provider._setTimeout(()=>{ee()},K.pop()||4e3)};ee()})}async signTransaction(H){const U=h(H);if(U.from){const z=await(0,e.resolveAddress)(U.from,this.provider);(0,a.assertArgument)(z!=null&&z.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",H),U.from=z}else U.from=this.address;const $=this.provider.getRpcTransaction(U);return await this.provider.send("eth_signTransaction",[$])}async signMessage(H){const U=typeof H=="string"?(0,a.toUtf8Bytes)(H):H;return await this.provider.send("personal_sign",[(0,a.hexlify)(U),this.address.toLowerCase()])}async signTypedData(H,U,$){const z=h($),Z=await n.TypedDataEncoder.resolveNames(H,U,z,async K=>{const Q=await(0,e.resolveAddress)(K);return(0,a.assertArgument)(Q!=null,"TypedData does not support null address","value",K),Q});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(n.TypedDataEncoder.getPayload(Z.domain,U,Z.value))])}async unlock(H){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),H,null])}async _legacySignMessage(H){const U=typeof H=="string"?(0,a.toUtf8Bytes)(H):H;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,a.hexlify)(U)])}}AS.JsonRpcSigner=v;class A extends o.AbstractProvider{constructor(H,U){super(H,U);Wt(this,b);Wt(this,C,void 0);Wt(this,R,void 0);Wt(this,k,void 0);Wt(this,P,void 0);Wt(this,N,void 0);Wt(this,L,void 0);Wt(this,I,void 0);tt(this,R,1),tt(this,C,Object.assign({},g,U||{})),tt(this,k,[]),tt(this,P,null),tt(this,L,null),tt(this,I,null);{let z=null;const Z=new Promise(K=>{z=K});tt(this,N,{promise:Z,resolve:z})}const $=this._getOption("staticNetwork");typeof $=="boolean"?((0,a.assertArgument)(!$||H!=="any","staticNetwork cannot be used on special network 'any'","options",U),$&&H!=null&&tt(this,L,l.Network.from(H))):$&&((0,a.assertArgument)(H==null||$.matches(H),"staticNetwork MUST match network object","options",U),tt(this,L,$))}_getOption(H){return Le(this,C)[H]}get _network(){return(0,a.assert)(Le(this,L),"network is not available yet","NETWORK_ERROR"),Le(this,L)}async _perform(H){if(H.method==="call"||H.method==="estimateGas"){let $=H.transaction;if($&&$.type!=null&&(0,a.getBigInt)($.type)&&$.maxFeePerGas==null&&$.maxPriorityFeePerGas==null){const z=await this.getFeeData();z.maxFeePerGas==null&&z.maxPriorityFeePerGas==null&&(H=Object.assign({},H,{transaction:Object.assign({},$,{type:void 0})}))}}const U=this.getRpcRequest(H);return U!=null?await this.send(U.method,U.args):super._perform(H)}async _detectNetwork(){const H=this._getOption("staticNetwork");if(H)if(H===!0){if(Le(this,L))return Le(this,L)}else return H;return Le(this,I)?await Le(this,I):this.ready?(tt(this,I,(async()=>{try{const U=l.Network.from((0,a.getBigInt)(await this.send("eth_chainId",[])));return tt(this,I,null),U}catch(U){throw tt(this,I,null),U}})()),await Le(this,I)):(tt(this,I,(async()=>{const U={id:Z9(this,R)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:U});let $;try{$=(await this._send(U))[0],tt(this,I,null)}catch(z){throw tt(this,I,null),this.emit("debug",{action:"receiveRpcError",error:z}),z}if(this.emit("debug",{action:"receiveRpcResult",result:$}),"result"in $)return l.Network.from((0,a.getBigInt)($.result));throw this.getRpcError(U,$)})()),await Le(this,I))}_start(){Le(this,N)==null||Le(this,N).resolve==null||(Le(this,N).resolve(),tt(this,N,null),(async()=>{for(;Le(this,L)==null&&!this.destroyed;)try{tt(this,L,await this._detectNetwork())}catch(H){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,a.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:H}})),await f(1e3)}qn(this,b,Sqe).call(this)})())}async _waitUntilReady(){if(Le(this,N)!=null)return await Le(this,N).promise}_getSubscriber(H){return H.type==="pending"?new c.FilterIdPendingSubscriber(this):H.type==="event"?this._getOption("polling")?new u.PollingEventSubscriber(this,H.filter):new c.FilterIdEventSubscriber(this,H.filter):H.type==="orphan"&&H.filter.orphan==="drop-log"?new o.UnmanagedSubscriber("orphan"):super._getSubscriber(H)}get ready(){return Le(this,N)==null}getRpcTransaction(H){const U={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach($=>{if(H[$]==null)return;let z=$;$==="gasLimit"&&(z="gas"),U[z]=(0,a.toQuantity)((0,a.getBigInt)(H[$],`tx.${$}`))}),["from","to","data"].forEach($=>{H[$]!=null&&(U[$]=(0,a.hexlify)(H[$]))}),H.accessList&&(U.accessList=(0,r.accessListify)(H.accessList)),H.blobVersionedHashes&&(U.blobVersionedHashes=H.blobVersionedHashes.map($=>$.toLowerCase())),U}getRpcRequest(H){switch(H.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[p(H.address),H.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[p(H.address),H.blockTag]};case"getCode":return{method:"eth_getCode",args:[p(H.address),H.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[p(H.address),"0x"+H.position.toString(16),H.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[H.signedTransaction]};case"getBlock":if("blockTag"in H)return{method:"eth_getBlockByNumber",args:[H.blockTag,!!H.includeTransactions]};if("blockHash"in H)return{method:"eth_getBlockByHash",args:[H.blockHash,!!H.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[H.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[H.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(H.transaction),H.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(H.transaction)]};case"getLogs":return H.filter&&H.filter.address!=null&&(Array.isArray(H.filter.address)?H.filter.address=H.filter.address.map(p):H.filter.address=p(H.filter.address)),{method:"eth_getLogs",args:[H.filter]}}return null}getRpcError(H,U){const{method:$}=H,{error:z}=U;if($==="eth_estimateGas"&&z.message){const Q=z.message;if(!Q.match(/revert/i)&&Q.match(/insufficient funds/i))return(0,a.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:H.params[0],info:{payload:H,error:z}})}if($==="eth_call"||$==="eth_estimateGas"){const Q=x(z),ee=t.AbiCoder.getBuiltinCallException($==="eth_call"?"call":"estimateGas",H.params[0],Q?Q.data:null);return ee.info={error:z,payload:H},ee}const Z=JSON.stringify(_(z));if(typeof z.message=="string"&&z.message.match(/user denied|ethers-user-denied/i)){const Q={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,a.makeError)("user rejected action","ACTION_REJECTED",{action:Q[$]||"unknown",reason:"rejected",info:{payload:H,error:z}})}if($==="eth_sendRawTransaction"||$==="eth_sendTransaction"){const Q=H.params[0];if(Z.match(/insufficient funds|base fee exceeds gas limit/i))return(0,a.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:Q,info:{error:z}});if(Z.match(/nonce/i)&&Z.match(/too low/i))return(0,a.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:Q,info:{error:z}});if(Z.match(/replacement transaction/i)&&Z.match(/underpriced/i))return(0,a.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:Q,info:{error:z}});if(Z.match(/only replay-protected/i))return(0,a.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:$,info:{transaction:Q,info:{error:z}}})}let K=!!Z.match(/the method .* does not exist/i);return K||z&&z.details&&z.details.startsWith("Unauthorized method:")&&(K=!0),K?(0,a.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:H.method,info:{error:z,payload:H}}):(0,a.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:z,payload:H})}send(H,U){if(this.destroyed)return Promise.reject((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:H}));const $=Z9(this,R)._++,z=new Promise((Z,K)=>{Le(this,k).push({resolve:Z,reject:K,payload:{method:H,params:U,id:$,jsonrpc:"2.0"}})});return qn(this,b,Sqe).call(this),z}async getSigner(H){H==null&&(H=0);const U=this.send("eth_accounts",[]);if(typeof H=="number"){const z=await U;if(H>=z.length)throw new Error("no such account");return new v(this,z[H])}const{accounts:$}=await(0,a.resolveProperties)({network:this.getNetwork(),accounts:U});H=(0,e.getAddress)(H);for(const z of $)if((0,e.getAddress)(z)===H)return new v(this,H);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(U=>new v(this,U))}destroy(){Le(this,P)&&(clearTimeout(Le(this,P)),tt(this,P,null));for(const{payload:H,reject:U}of Le(this,k))U((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:H.method}));tt(this,k,[]),super.destroy()}}C=new WeakMap,R=new WeakMap,k=new WeakMap,P=new WeakMap,N=new WeakMap,L=new WeakMap,I=new WeakMap,b=new WeakSet,Sqe=function(){if(Le(this,P))return;const H=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");tt(this,P,setTimeout(()=>{tt(this,P,null);const U=Le(this,k);for(tt(this,k,[]);U.length;){const $=[U.shift()];for(;U.length&&$.length!==Le(this,C).batchMaxCount;)if($.push(U.shift()),JSON.stringify($.map(Z=>Z.payload)).length>Le(this,C).batchMaxSize){U.unshift($.pop());break}(async()=>{const z=$.length===1?$[0].payload:$.map(Z=>Z.payload);this.emit("debug",{action:"sendRpcPayload",payload:z});try{const Z=await this._send(z);this.emit("debug",{action:"receiveRpcResult",result:Z});for(const{resolve:K,reject:Q,payload:ee}of $){if(this.destroyed){Q((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:ee.method}));continue}const X=Z.filter(te=>te.id===ee.id)[0];if(X==null){const te=(0,a.makeError)("missing response for request","BAD_DATA",{value:Z,info:{payload:ee}});this.emit("error",te),Q(te);continue}if("error"in X){Q(this.getRpcError(ee,X));continue}K(X.result)}}catch(Z){this.emit("debug",{action:"receiveRpcError",error:Z});for(const{reject:K}of $)K(Z)}})()}},H))},AS.JsonRpcApiProvider=A;class y extends A{constructor(H,U){super(H,U);Wt(this,M,void 0);let $=this._getOption("pollingInterval");$==null&&($=g.pollingInterval),tt(this,M,$)}_getSubscriber(H){const U=super._getSubscriber(H);return m(U)&&(U.pollingInterval=Le(this,M)),U}get pollingInterval(){return Le(this,M)}set pollingInterval(H){if(!Number.isInteger(H)||H<0)throw new Error("invalid interval");tt(this,M,H),this._forEachSubscriber(U=>{m(U)&&(U.pollingInterval=Le(this,M))})}}M=new WeakMap,AS.JsonRpcApiPollingProvider=y;class S extends y{constructor(H,U,$){H==null&&(H="http://localhost:8545");super(U,$);Wt(this,D,void 0);typeof H=="string"?tt(this,D,new a.FetchRequest(H)):tt(this,D,H.clone())}_getConnection(){return Le(this,D).clone()}async send(H,U){return await this._start(),await super.send(H,U)}async _send(H){const U=this._getConnection();U.body=JSON.stringify(H),U.setHeader("content-type","application/json");const $=await U.send();$.assertOk();let z=$.bodyJson;return Array.isArray(z)||(z=[z]),z}}D=new WeakMap,AS.JsonRpcProvider=S;function x(B){if(B==null)return null;if(typeof B.message=="string"&&B.message.match(/revert/i)&&(0,a.isHexString)(B.data))return{message:B.message,data:B.data};if(typeof B=="object"){for(const j in B){const H=x(B[j]);if(H)return H}return null}if(typeof B=="string")try{return x(JSON.parse(B))}catch{}return null}function w(B,j){if(B!=null){if(typeof B.message=="string"&&j.push(B.message),typeof B=="object")for(const H in B)w(B[H],j);if(typeof B=="string")try{return w(JSON.parse(B),j)}catch{}}}function _(B){const j=[];return w(B,j),j}return AS}var I7t;function TJn(){if(I7t)return rJ;I7t=1,Object.defineProperty(rJ,"__esModule",{value:!0}),rJ.AnkrProvider=void 0;const t=Oi(),e=MO(),n=ub(),r=s_(),a="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function o(l){switch(l){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,t.assertArgument)(!1,"unsupported network","network",l)}class s extends r.JsonRpcProvider{constructor(u,d){u==null&&(u="mainnet");const h=n.Network.from(u);d==null&&(d=a);const f={polling:!0,staticNetwork:h},p=s.getRequest(h,d);super(p,h,f);Ut(this,"apiKey");(0,t.defineProperties)(this,{apiKey:d})}_getProvider(u){try{return new s(u,this.apiKey)}catch{}return super._getProvider(u)}static getRequest(u,d){d==null&&(d=a);const h=new t.FetchRequest(`https://${o(u.name)}/${d}`);return h.allowGzip=!0,d===a&&(h.retryFunc=async(f,p,m)=>((0,e.showThrottleMessage)("AnkrProvider"),!0)),h}getRpcError(u,d){return u.method==="eth_sendRawTransaction"&&d&&d.error&&d.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(d.error.message="replacement transaction underpriced"),super.getRpcError(u,d)}isCommunityResource(){return this.apiKey===a}}return rJ.AnkrProvider=s,rJ}var iJ={},P7t;function CJn(){if(P7t)return iJ;P7t=1,Object.defineProperty(iJ,"__esModule",{value:!0}),iJ.AlchemyProvider=void 0;const t=Oi(),e=MO(),n=ub(),r=s_(),a="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function o(l){switch(l){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,t.assertArgument)(!1,"unsupported network","network",l)}class s extends r.JsonRpcProvider{constructor(u,d){u==null&&(u="mainnet");const h=n.Network.from(u);d==null&&(d=a);const f=s.getRequest(h,d);super(f,h,{staticNetwork:h});Ut(this,"apiKey");(0,t.defineProperties)(this,{apiKey:d})}_getProvider(u){try{return new s(u,this.apiKey)}catch{}return super._getProvider(u)}async _perform(u){if(u.method==="getTransactionResult"){const{trace:d,tx:h}=await(0,t.resolveProperties)({trace:this.send("trace_transaction",[u.hash]),tx:this.getTransaction(u.hash)});if(d==null||h==null)return null;let f,p=!1;try{f=d[0].result.output,p=d[0].error==="Reverted"}catch{}if(f)return(0,t.assert)(!p,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:f,reason:null,transaction:h,invocation:null,revert:null}),f;(0,t.assert)(!1,"could not parse trace result","BAD_DATA",{value:d})}return await super._perform(u)}isCommunityResource(){return this.apiKey===a}static getRequest(u,d){d==null&&(d=a);const h=new t.FetchRequest(`https://${o(u.name)}/v2/${d}`);return h.allowGzip=!0,d===a&&(h.retryFunc=async(f,p,m)=>((0,e.showThrottleMessage)("alchemy"),!0)),h}}return iJ.AlchemyProvider=s,iJ}var aJ={},O7t;function kJn(){if(O7t)return aJ;O7t=1,Object.defineProperty(aJ,"__esModule",{value:!0}),aJ.ChainstackProvider=void 0;const t=Oi(),e=MO(),n=ub(),r=s_();function a(l){switch(l){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,t.assertArgument)(!1,"unsupported network","network",l)}function o(l){switch(l){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,t.assertArgument)(!1,"unsupported network","network",l)}class s extends r.JsonRpcProvider{constructor(u,d){u==null&&(u="mainnet");const h=n.Network.from(u);d==null&&(d=a(h.name));const f=s.getRequest(h,d);super(f,h,{staticNetwork:h});Ut(this,"apiKey");(0,t.defineProperties)(this,{apiKey:d})}_getProvider(u){try{return new s(u,this.apiKey)}catch{}return super._getProvider(u)}isCommunityResource(){return this.apiKey===a(this._network.name)}static getRequest(u,d){d==null&&(d=a(u.name));const h=new t.FetchRequest(`https://${o(u.name)}/${d}`);return h.allowGzip=!0,d===a(u.name)&&(h.retryFunc=async(f,p,m)=>((0,e.showThrottleMessage)("ChainstackProvider"),!0)),h}}return aJ.ChainstackProvider=s,aJ}var oJ={},L7t;function RJn(){if(L7t)return oJ;L7t=1,Object.defineProperty(oJ,"__esModule",{value:!0}),oJ.CloudflareProvider=void 0;const t=Oi(),e=ub(),n=s_();class r extends n.JsonRpcProvider{constructor(o){o==null&&(o="mainnet");const s=e.Network.from(o);(0,t.assertArgument)(s.name==="mainnet","unsupported network","network",o),super("https://cloudflare-eth.com/",s,{staticNetwork:s})}}return oJ.CloudflareProvider=r,oJ}var CL={},B7t;function MJn(){var g;if(B7t)return CL;B7t=1,Object.defineProperty(CL,"__esModule",{value:!0}),CL.EtherscanProvider=CL.EtherscanPlugin=void 0;const t=ele(),e=PCe(),n=cb(),r=Oi(),a=nle(),o=ub(),s=$ut(),l=MO(),c=2e3;function u(v){return v&&typeof v.then=="function"}const d="org.ethers.plugins.provider.Etherscan";class h extends s.NetworkPlugin{constructor(y){super(d);Ut(this,"baseUrl");(0,r.defineProperties)(this,{baseUrl:y})}clone(){return new h(this.baseUrl)}}CL.EtherscanPlugin=h;const f=["enableCcipRead"];let p=1;class m extends a.AbstractProvider{constructor(y,S){const x=S??null;super();Ut(this,"network");Ut(this,"apiKey");Wt(this,g,void 0);const w=o.Network.from(y);tt(this,g,w.getPlugin(d)),(0,r.defineProperties)(this,{apiKey:x,network:w}),this.getBaseUrl()}getBaseUrl(){if(Le(this,g))return Le(this,g).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,r.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(y,S){const x=Object.keys(S).reduce((_,C)=>{const R=S[C];return R!=null&&(_+=`&${C}=${R}`),_},""),w=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${y}${x}${w}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(y,S){return S.module=y,S.apikey=this.apiKey,S}async detectNetwork(){return this.network}async fetch(y,S,x){const w=p++,_=x?this.getPostUrl():this.getUrl(y,S),C=x?this.getPostData(y,S):null;this.emit("debug",{action:"sendRequest",id:w,url:_,payload:C});const R=new r.FetchRequest(_);R.setThrottleParams({slotInterval:1e3}),R.retryFunc=(N,L,I)=>(this.isCommunityResource()&&(0,l.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),R.processFunc=async(N,L)=>{const I=L.hasBody()?JSON.parse((0,r.toUtf8String)(L.body)):{},b=(typeof I.result=="string"?I.result:"").toLowerCase().indexOf("rate limit")>=0;return y==="proxy"?I&&I.status==0&&I.message=="NOTOK"&&b&&(this.emit("debug",{action:"receiveError",id:w,reason:"proxy-NOTOK",error:I}),L.throwThrottleError(I.result,c)):b&&(this.emit("debug",{action:"receiveError",id:w,reason:"null result",error:I.result}),L.throwThrottleError(I.result,c)),L},C&&(R.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),R.body=Object.keys(C).map(N=>`${N}=${C[N]}`).join("&"));const k=await R.send();try{k.assertOk()}catch(N){this.emit("debug",{action:"receiveError",id:w,error:N,reason:"assertOk"}),(0,r.assert)(!1,"response error","SERVER_ERROR",{request:R,response:k})}k.hasBody()||(this.emit("debug",{action:"receiveError",id:w,error:"missing body",reason:"null body"}),(0,r.assert)(!1,"missing response","SERVER_ERROR",{request:R,response:k}));const P=JSON.parse((0,r.toUtf8String)(k.body));return y==="proxy"?(P.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:w,result:P,reason:"invalid JSON-RPC"}),(0,r.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:R,response:k,info:{result:P}})),P.error&&(this.emit("debug",{action:"receiveError",id:w,result:P,reason:"JSON-RPC error"}),(0,r.assert)(!1,"error response","SERVER_ERROR",{request:R,response:k,info:{result:P}})),this.emit("debug",{action:"receiveRequest",id:w,result:P}),P.result):P.status==0&&(P.message==="No records found"||P.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:w,result:P}),P.result):((P.status!=1||typeof P.message=="string"&&!P.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:w,result:P}),(0,r.assert)(!1,"error response","SERVER_ERROR",{request:R,response:k,info:{result:P}})),this.emit("debug",{action:"receiveRequest",id:w,result:P}),P.result)}_getTransactionPostData(y){const S={};for(let x in y){if(f.indexOf(x)>=0||y[x]==null)continue;let w=y[x];if(!(x==="type"&&w===0)&&!(x==="blockTag"&&w==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[x])w=(0,r.toQuantity)(w);else if(x==="accessList")w="["+(0,n.accessListify)(w).map(_=>`{address:"${_.address}",storageKeys:["${_.storageKeys.join('","')}"]}`).join(",")+"]";else if(x==="blobVersionedHashes"){if(w.length===0)continue;(0,r.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:y}})}else w=(0,r.hexlify)(w);S[x]=w}}return S}_checkError(y,S,x){let w="";if((0,r.isError)(S,"SERVER_ERROR")){try{w=S.info.result.error.message}catch{}if(!w)try{w=S.info.message}catch{}}if(y.method==="estimateGas"&&!w.match(/revert/i)&&w.match(/insufficient funds/i)&&(0,r.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:y.transaction}),(y.method==="call"||y.method==="estimateGas")&&w.match(/execution reverted/i)){let _="";try{_=S.info.result.error.data}catch{}const C=t.AbiCoder.getBuiltinCallException(y.method,y.transaction,_);throw C.info={request:y,error:S},C}if(w&&y.method==="broadcastTransaction"){const _=n.Transaction.from(y.signedTransaction);w.match(/replacement/i)&&w.match(/underpriced/i)&&(0,r.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:_}),w.match(/insufficient funds/)&&(0,r.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:_}),w.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,r.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:_})}throw S}async _detectNetwork(){return this.network}async _perform(y){switch(y.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:y.address,tag:y.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:y.address,tag:y.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:y.address,tag:y.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:y.address,position:y.position,tag:y.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:y.signedTransaction},!0).catch(S=>this._checkError(y,S,y.signedTransaction));case"getBlock":if("blockTag"in y)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:y.blockTag,boolean:y.includeTransactions?"true":"false"});(0,r.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:y.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:y.hash});case"call":{if(y.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const S=this._getTransactionPostData(y.transaction);S.module="proxy",S.action="eth_call";try{return await this.fetch("proxy",S,!0)}catch(x){return this._checkError(y,x,y.transaction)}}case"estimateGas":{const S=this._getTransactionPostData(y.transaction);S.module="proxy",S.action="eth_estimateGas";try{return await this.fetch("proxy",S,!0)}catch(x){return this._checkError(y,x,y.transaction)}}}return super._perform(y)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(y){let S=this._getAddress(y);u(S)&&(S=await S);try{const x=await this.fetch("contract",{action:"getabi",address:S}),w=JSON.parse(x);return new e.Contract(S,w,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}return g=new WeakMap,CL.EtherscanProvider=m,CL}var kL={},sJ={},lJ={},D7t;function tWo(){if(D7t)return lJ;D7t=1,Object.defineProperty(lJ,"__esModule",{value:!0}),lJ.WebSocket=void 0;function t(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof en<"u")return en;throw new Error("unable to locate global object")}const e=t().WebSocket;return lJ.WebSocket=e,lJ}var iy={},$7t;function wqe(){var c,u,d,h,f,p,m,g,v;if($7t)return iy;$7t=1,Object.defineProperty(iy,"__esModule",{value:!0}),iy.SocketProvider=iy.SocketEventSubscriber=iy.SocketPendingSubscriber=iy.SocketBlockSubscriber=iy.SocketSubscriber=void 0;const t=nle(),e=Oi(),n=s_();class r{constructor(y,S){Wt(this,c,void 0);Wt(this,u,void 0);Wt(this,d,void 0);Wt(this,h,void 0);Wt(this,f,void 0);tt(this,c,y),tt(this,u,JSON.stringify(S)),tt(this,d,null),tt(this,h,null),tt(this,f,null)}get filter(){return JSON.parse(Le(this,u))}start(){tt(this,d,Le(this,c).send("eth_subscribe",this.filter).then(y=>(Le(this,c)._register(y,this),y)))}stop(){Le(this,d).then(y=>{Le(this,c).destroyed||Le(this,c).send("eth_unsubscribe",[y])}),tt(this,d,null)}pause(y){(0,e.assert)(y,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),tt(this,h,!!y)}resume(){tt(this,h,null)}_handleMessage(y){if(Le(this,d)!=null&&Le(this,h)===null){let S=Le(this,f);S==null?S=this._emit(Le(this,c),y):S=S.then(async()=>{await this._emit(Le(this,c),y)}),tt(this,f,S.then(()=>{Le(this,f)===S&&tt(this,f,null)}))}}async _emit(y,S){throw new Error("sub-classes must implemente this; _emit")}}c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,iy.SocketSubscriber=r;class a extends r{constructor(y){super(y,["newHeads"])}async _emit(y,S){y.emit("block",parseInt(S.number))}}iy.SocketBlockSubscriber=a;class o extends r{constructor(y){super(y,["newPendingTransactions"])}async _emit(y,S){y.emit("pending",S)}}iy.SocketPendingSubscriber=o;class s extends r{constructor(S,x){super(S,["logs",x]);Wt(this,p,void 0);tt(this,p,JSON.stringify(x))}get logFilter(){return JSON.parse(Le(this,p))}async _emit(S,x){S.emit(this.logFilter,S._wrapLog(x,S._network))}}p=new WeakMap,iy.SocketEventSubscriber=s;class l extends n.JsonRpcApiProvider{constructor(S,x){const w=Object.assign({},x??{});(0,e.assertArgument)(w.batchMaxCount==null||w.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",x),w.batchMaxCount=1,w.staticNetwork==null&&(w.staticNetwork=!0);super(S,w);Wt(this,m,void 0);Wt(this,g,void 0);Wt(this,v,void 0);tt(this,m,new Map),tt(this,g,new Map),tt(this,v,new Map)}_getSubscriber(S){switch(S.type){case"close":return new t.UnmanagedSubscriber("close");case"block":return new a(this);case"pending":return new o(this);case"event":return new s(this,S.filter);case"orphan":if(S.filter.orphan==="drop-log")return new t.UnmanagedSubscriber("drop-log")}return super._getSubscriber(S)}_register(S,x){Le(this,g).set(S,x);const w=Le(this,v).get(S);if(w){for(const _ of w)x._handleMessage(_);Le(this,v).delete(S)}}async _send(S){(0,e.assertArgument)(!Array.isArray(S),"WebSocket does not support batch send","payload",S);const x=new Promise((w,_)=>{Le(this,m).set(S.id,{payload:S,resolve:w,reject:_})});return await this._waitUntilReady(),await this._write(JSON.stringify(S)),[await x]}async _processMessage(S){const x=JSON.parse(S);if(x&&typeof x=="object"&&"id"in x){const w=Le(this,m).get(x.id);if(w==null){this.emit("error",(0,e.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:x}));return}Le(this,m).delete(x.id),w.resolve(x)}else if(x&&x.method==="eth_subscription"){const w=x.params.subscription,_=Le(this,g).get(w);if(_)_._handleMessage(x.params.result);else{let C=Le(this,v).get(w);C==null&&(C=[],Le(this,v).set(w,C)),C.push(x.params.result)}}else{this.emit("error",(0,e.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:x}));return}}async _write(S){throw new Error("sub-classes must override this")}}return m=new WeakMap,g=new WeakMap,v=new WeakMap,iy.SocketProvider=l,iy}var F7t;function Hut(){var r,a;if(F7t)return sJ;F7t=1,Object.defineProperty(sJ,"__esModule",{value:!0}),sJ.WebSocketProvider=void 0;const t=tWo(),e=wqe();class n extends e.SocketProvider{constructor(l,c,u){super(c,u);Wt(this,r,void 0);Wt(this,a,void 0);typeof l=="string"?(tt(this,r,()=>new t.WebSocket(l)),tt(this,a,Le(this,r).call(this))):typeof l=="function"?(tt(this,r,l),tt(this,a,l())):(tt(this,r,null),tt(this,a,l)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(d){console.log("failed to start WebsocketProvider",d)}},this.websocket.onmessage=d=>{this._processMessage(d.data)}}get websocket(){if(Le(this,a)==null)throw new Error("websocket closed");return Le(this,a)}async _write(l){this.websocket.send(l)}async destroy(){Le(this,a)!=null&&(Le(this,a).close(),tt(this,a,null)),super.destroy()}}return r=new WeakMap,a=new WeakMap,sJ.WebSocketProvider=n,sJ}var j7t;function NJn(){if(j7t)return kL;j7t=1,Object.defineProperty(kL,"__esModule",{value:!0}),kL.InfuraProvider=kL.InfuraWebSocketProvider=void 0;const t=Oi(),e=MO(),n=ub(),r=s_(),a=Hut(),o="84842078b09946638c03157f83405213";function s(u){switch(u){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,t.assertArgument)(!1,"unsupported network","network",u)}class l extends a.WebSocketProvider{constructor(h,f){const p=new c(h,f),m=p._getConnection();(0,t.assert)(!m.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const g=m.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(g,p._network);Ut(this,"projectId");Ut(this,"projectSecret");(0,t.defineProperties)(this,{projectId:p.projectId,projectSecret:p.projectSecret})}isCommunityResource(){return this.projectId===o}}kL.InfuraWebSocketProvider=l;class c extends r.JsonRpcProvider{constructor(h,f,p){h==null&&(h="mainnet");const m=n.Network.from(h);f==null&&(f=o),p==null&&(p=null);const g=c.getRequest(m,f,p);super(g,m,{staticNetwork:m});Ut(this,"projectId");Ut(this,"projectSecret");(0,t.defineProperties)(this,{projectId:f,projectSecret:p})}_getProvider(h){try{return new c(h,this.projectId,this.projectSecret)}catch{}return super._getProvider(h)}isCommunityResource(){return this.projectId===o}static getWebSocketProvider(h,f){return new l(h,f)}static getRequest(h,f,p){f==null&&(f=o),p==null&&(p=null);const m=new t.FetchRequest(`https://${s(h.name)}/v3/${f}`);return m.allowGzip=!0,p&&m.setCredentials("",p),f===o&&(m.retryFunc=async(g,v,A)=>((0,e.showThrottleMessage)("InfuraProvider"),!0)),m}}return kL.InfuraProvider=c,kL}var cJ={},H7t;function IJn(){if(H7t)return cJ;H7t=1,Object.defineProperty(cJ,"__esModule",{value:!0}),cJ.QuickNodeProvider=void 0;const t=Oi(),e=MO(),n=ub(),r=s_(),a="919b412a057b5e9c9b6dce193c5a60242d6efadb";function o(l){switch(l){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,t.assertArgument)(!1,"unsupported network","network",l)}class s extends r.JsonRpcProvider{constructor(u,d){u==null&&(u="mainnet");const h=n.Network.from(u);d==null&&(d=a);const f=s.getRequest(h,d);super(f,h,{staticNetwork:h});Ut(this,"token");(0,t.defineProperties)(this,{token:d})}_getProvider(u){try{return new s(u,this.token)}catch{}return super._getProvider(u)}isCommunityResource(){return this.token===a}static getRequest(u,d){d==null&&(d=a);const h=new t.FetchRequest(`https://${o(u.name)}/${d}`);return h.allowGzip=!0,d===a&&(h.retryFunc=async(f,p,m)=>((0,e.showThrottleMessage)("QuickNodeProvider"),!0)),h}}return cJ.QuickNodeProvider=s,cJ}var uJ={},U7t;function BJn(){var S,x,w,_,PJn,R,_qe,P,OJn,L,LJn,b,Tqe;if(U7t)return uJ;U7t=1,Object.defineProperty(uJ,"__esModule",{value:!0}),uJ.FallbackProvider=void 0;const t=Oi(),e=nle(),n=ub(),r=BigInt("1"),a=BigInt("2");function o(M){for(let D=M.length-1;D>0;D--){const B=Math.floor(Math.random()*(D+1)),j=M[D];M[D]=M[B],M[B]=j}}function s(M){return new Promise(D=>{setTimeout(D,M)})}function l(){return new Date().getTime()}function c(M){return JSON.stringify(M,(D,B)=>typeof B=="bigint"?{type:"bigint",value:B.toString()}:B)}const u={stallTimeout:400,priority:1,weight:1},d={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function h(M,D){for(;(M.blockNumber<0||M.blockNumber<D)&&(M._updateNumber||(M._updateNumber=(async()=>{try{const B=await M.provider.getBlockNumber();B>M.blockNumber&&(M.blockNumber=B)}catch(B){M.blockNumber=-2,M._lastFatalError=B,M._lastFatalErrorTimestamp=l()}M._updateNumber=null})()),await M._updateNumber,M.outOfSync++,!M._lastFatalError););}function f(M){if(M==null)return"null";if(Array.isArray(M))return"["+M.map(f).join(",")+"]";if(typeof M=="object"&&typeof M.toJSON=="function")return f(M.toJSON());switch(typeof M){case"boolean":case"symbol":return M.toString();case"bigint":case"number":return BigInt(M).toString();case"string":return JSON.stringify(M);case"object":{const D=Object.keys(M);return D.sort(),"{"+D.map(B=>`${JSON.stringify(B)}:${f(M[B])}`).join(",")+"}"}}throw console.log("Could not serialize",M),new Error("Hmm...")}function p(M){if("error"in M){const B=M.error;return{tag:f(B),value:B}}const D=M.result;return{tag:f(D),value:D}}function m(M,D){const B=new Map;for(const{value:H,tag:U,weight:$}of D){const z=B.get(U)||{value:H,weight:0};z.weight+=$,B.set(U,z)}let j=null;for(const H of B.values())H.weight>=M&&(!j||H.weight>j.weight)&&(j=H);if(j)return j.value}function g(M,D){let B=0;const j=new Map;let H=null;const U=[];for(const{value:z,tag:Z,weight:K}of D)if(z instanceof Error){const Q=j.get(Z)||{value:z,weight:0};Q.weight+=K,j.set(Z,Q),(H==null||Q.weight>H.weight)&&(H=Q)}else U.push(BigInt(z)),B+=K;if(B<M)return H&&H.weight>=M?H.value:void 0;U.sort((z,Z)=>z<Z?-1:Z>z?1:0);const $=Math.floor(U.length/2);return U.length%2?U[$]:(U[$-1]+U[$]+r)/a}function v(M,D){const B=m(M,D);if(B!==void 0)return B;for(const j of D)if(j.value)return j.value}function A(M,D){if(M===1)return(0,t.getNumber)(g(M,D),"%internal");const B=new Map,j=($,z)=>{const Z=B.get($)||{result:$,weight:0};Z.weight+=z,B.set($,Z)};for(const{weight:$,value:z}of D){const Z=(0,t.getNumber)(z);j(Z-1,$),j(Z,$),j(Z+1,$)}let H=0,U;for(const{weight:$,result:z}of B.values())$>=M&&($>H||U!=null&&$===H&&z>U)&&(H=$,U=z);return U}class y extends e.AbstractProvider{constructor(B,j,H){super(j,H);Wt(this,_);Wt(this,R);Wt(this,P);Wt(this,L);Wt(this,b);Ut(this,"quorum");Ut(this,"eventQuorum");Ut(this,"eventWorkers");Wt(this,S,void 0);Wt(this,x,void 0);Wt(this,w,void 0);tt(this,S,B.map(U=>U instanceof e.AbstractProvider?Object.assign({provider:U},u,d):Object.assign({},u,U,d))),tt(this,x,-2),tt(this,w,null),H&&H.quorum!=null?this.quorum=H.quorum:this.quorum=Math.ceil(Le(this,S).reduce((U,$)=>(U+=$.weight,U),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,t.assertArgument)(this.quorum<=Le(this,S).reduce((U,$)=>U+$.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return Le(this,S).map(B=>{const j=Object.assign({},B);for(const H in j)H[0]==="_"&&delete j[H];return j})}async _detectNetwork(){return n.Network.from((0,t.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(B,j){switch(j.method){case"broadcastTransaction":return await B.broadcastTransaction(j.signedTransaction);case"call":return await B.call(Object.assign({},j.transaction,{blockTag:j.blockTag}));case"chainId":return(await B.getNetwork()).chainId;case"estimateGas":return await B.estimateGas(j.transaction);case"getBalance":return await B.getBalance(j.address,j.blockTag);case"getBlock":{const H="blockHash"in j?j.blockHash:j.blockTag;return await B.getBlock(H,j.includeTransactions)}case"getBlockNumber":return await B.getBlockNumber();case"getCode":return await B.getCode(j.address,j.blockTag);case"getGasPrice":return(await B.getFeeData()).gasPrice;case"getPriorityFee":return(await B.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await B.getLogs(j.filter);case"getStorage":return await B.getStorage(j.address,j.position,j.blockTag);case"getTransaction":return await B.getTransaction(j.hash);case"getTransactionCount":return await B.getTransactionCount(j.address,j.blockTag);case"getTransactionReceipt":return await B.getTransactionReceipt(j.hash);case"getTransactionResult":return await B.getTransactionResult(j.hash)}}async _perform(B){if(B.method==="broadcastTransaction"){const $=Le(this,S).map(K=>null),z=Le(this,S).map(async({provider:K,weight:Q},ee)=>{try{const X=await K._perform(B);$[ee]=Object.assign(p({result:X}),{weight:Q})}catch(X){$[ee]=Object.assign(p({error:X}),{weight:Q})}});for(;;){const K=$.filter(X=>X!=null);for(const{value:X}of K)if(!(X instanceof Error))return X;const Q=m(this.quorum,$.filter(X=>X!=null));if((0,t.isError)(Q,"INSUFFICIENT_FUNDS"))throw Q;const ee=z.filter((X,te)=>$[te]==null);if(ee.length===0)break;await Promise.race(ee)}const Z=v(this.quorum,$);if((0,t.assert)(Z!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:B,results:$.map(c)}}),Z instanceof Error)throw Z;return Z}await qn(this,P,OJn).call(this);const j=new Set;let H=0;for(;;){const $=qn(this,R,_qe).call(this,j,B);if($==null||(H+=$.config.weight,H>=this.quorum))break}const U=await qn(this,b,Tqe).call(this,j,B);for(const $ of j)$.perform&&$.result==null&&$.config.lateResponses++;return U}async destroy(){for(const{provider:B}of Le(this,S))B.destroy();super.destroy()}}return S=new WeakMap,x=new WeakMap,w=new WeakMap,_=new WeakSet,PJn=function(B){const j=Array.from(B).map(U=>U.config),H=Le(this,S).slice();o(H),H.sort((U,$)=>U.priority-$.priority);for(const U of H)if(!U._lastFatalError&&j.indexOf(U)===-1)return U;return null},R=new WeakSet,_qe=function(B,j){const H=qn(this,_,PJn).call(this,B);if(H==null)return null;const U={config:H,result:null,didBump:!1,perform:null,staller:null},$=l();return U.perform=(async()=>{try{H.requests++;const Z=await this._translatePerform(H.provider,j);U.result={result:Z}}catch(Z){H.errorResponses++,U.result={error:Z}}const z=l()-$;H._totalTime+=z,H.rollingDuration=.95*H.rollingDuration+.05*z,U.perform=null})(),U.staller=(async()=>{await s(H.stallTimeout),U.staller=null})(),B.add(U),U},P=new WeakSet,OJn=async function(){let B=Le(this,w);if(!B){const j=[];Le(this,S).forEach(H=>{j.push((async()=>{await h(H,0),H._lastFatalError||(H._network=await H.provider.getNetwork())})())}),tt(this,w,B=(async()=>{await Promise.all(j);let H=null;for(const U of Le(this,S)){if(U._lastFatalError)continue;const $=U._network;H==null?H=$.chainId:$.chainId!==H&&(0,t.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await B},L=new WeakSet,LJn=async function(B,j){const H=[];for(const U of B)if(U.result!=null){const{tag:$,value:z}=p(U.result);H.push({tag:$,value:z,weight:U.config.weight})}if(!(H.reduce((U,$)=>U+$.weight,0)<this.quorum)){switch(j.method){case"getBlockNumber":{Le(this,x)===-2&&tt(this,x,Math.ceil((0,t.getNumber)(g(this.quorum,Le(this,S).filter($=>!$._lastFatalError).map($=>({value:$.blockNumber,tag:(0,t.getNumber)($.blockNumber).toString(),weight:$.weight}))))));const U=A(this.quorum,H);return U===void 0?void 0:(U>Le(this,x)&&tt(this,x,U),Le(this,x))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return g(this.quorum,H);case"getBlock":return"blockTag"in j&&j.blockTag==="pending"?v(this.quorum,H):m(this.quorum,H);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return m(this.quorum,H);case"broadcastTransaction":return v(this.quorum,H)}(0,t.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${c(j.method)})`})}},b=new WeakSet,Tqe=async function(B,j){if(B.size===0)throw new Error("no runners?!");const H=[];let U=0;for(const z of B){if(z.perform&&H.push(z.perform),z.staller){H.push(z.staller);continue}z.didBump||(z.didBump=!0,U++)}const $=await qn(this,L,LJn).call(this,B,j);if($!==void 0){if($ instanceof Error)throw $;return $}for(let z=0;z<U;z++)qn(this,R,_qe).call(this,B,j);return(0,t.assert)(H.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:j,results:Array.from(B).map(z=>c(z.result))}}),await Promise.race(H),await qn(this,b,Tqe).call(this,B,j)},uJ.FallbackProvider=y,uJ}var z7t;function nWo(){if(z7t)return nJ;z7t=1,Object.defineProperty(nJ,"__esModule",{value:!0}),nJ.getDefaultProvider=void 0;const t=Oi(),e=TJn(),n=CJn(),r=kJn(),a=RJn(),o=MJn(),s=NJn(),l=IJn(),c=BJn(),u=s_(),d=ub(),h=Hut();function f(g){return g&&typeof g.send=="function"&&typeof g.close=="function"}const p="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function m(g,v){v==null&&(v={});const A=w=>v[w]==="-"?!1:typeof v.exclusive=="string"?w===v.exclusive:Array.isArray(v.exclusive)?v.exclusive.indexOf(w)!==-1:!0;if(typeof g=="string"&&g.match(/^https?:/))return new u.JsonRpcProvider(g);if(typeof g=="string"&&g.match(/^wss?:/)||f(g))return new h.WebSocketProvider(g);let y=null;try{y=d.Network.from(g)}catch{}const S=[];if(A("publicPolygon")&&y&&(y.name==="matic"?S.push(new u.JsonRpcProvider("https://polygon-rpc.com/",y,{staticNetwork:y})):y.name==="matic-amoy"&&S.push(new u.JsonRpcProvider("https://rpc-amoy.polygon.technology/",y,{staticNetwork:y}))),A("alchemy"))try{S.push(new n.AlchemyProvider(g,v.alchemy))}catch{}if(A("ankr")&&v.ankr!=null)try{S.push(new e.AnkrProvider(g,v.ankr))}catch{}if(A("chainstack"))try{S.push(new r.ChainstackProvider(g,v.chainstack))}catch{}if(A("cloudflare"))try{S.push(new a.CloudflareProvider(g))}catch{}if(A("etherscan"))try{S.push(new o.EtherscanProvider(g,v.etherscan))}catch{}if(A("infura"))try{let w=v.infura,_;typeof w=="object"&&(_=w.projectSecret,w=w.projectId),S.push(new s.InfuraProvider(g,w,_))}catch{}if(A("quicknode"))try{let w=v.quicknode;S.push(new l.QuickNodeProvider(g,w))}catch{}if((0,t.assert)(S.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),S.length===1)return S[0];let x=Math.floor(S.length/2);return x>2&&(x=2),y&&p.indexOf(y.name)!==-1&&(x=1),v&&v.quorum&&(x=v.quorum),new c.FallbackProvider(S,void 0,{quorum:x})}return nJ.getDefaultProvider=m,nJ}var dJ={},G7t;function rWo(){var r,a;if(G7t)return dJ;G7t=1,Object.defineProperty(dJ,"__esModule",{value:!0}),dJ.NonceManager=void 0;const t=Oi(),e=jut(),o=class o extends e.AbstractSigner{constructor(c){super(c.provider);Ut(this,"signer");Wt(this,r,void 0);Wt(this,a,void 0);(0,t.defineProperties)(this,{signer:c}),tt(this,r,null),tt(this,a,0)}async getAddress(){return this.signer.getAddress()}connect(c){return new o(this.signer.connect(c))}async getNonce(c){if(c==="pending"){Le(this,r)==null&&tt(this,r,super.getNonce("pending"));const u=Le(this,a);return await Le(this,r)+u}return super.getNonce(c)}increment(){Z9(this,a)._++}reset(){tt(this,a,0),tt(this,r,null)}async sendTransaction(c){const u=this.getNonce("pending");return this.increment(),c=await this.signer.populateTransaction(c),c.nonce=await u,await this.signer.sendTransaction(c)}signTransaction(c){return this.signer.signTransaction(c)}signMessage(c){return this.signer.signMessage(c)}signTypedData(c,u,d){return this.signer.signTypedData(c,u,d)}};r=new WeakMap,a=new WeakMap;let n=o;return dJ.NonceManager=n,dJ}var hJ={},V7t;function iWo(){var r;if(V7t)return hJ;V7t=1,Object.defineProperty(hJ,"__esModule",{value:!0}),hJ.BrowserProvider=void 0;const t=Oi(),e=s_();class n extends e.JsonRpcApiPollingProvider{constructor(s,l,c){const u=Object.assign({},c??{},{batchMaxCount:1});(0,t.assertArgument)(s&&s.request,"invalid EIP-1193 provider","ethereum",s);super(l,u);Wt(this,r,void 0);tt(this,r,async(d,h)=>{const f={method:d,params:h};this.emit("debug",{action:"sendEip1193Request",payload:f});try{const p=await s.request(f);return this.emit("debug",{action:"receiveEip1193Result",result:p}),p}catch(p){const m=new Error(p.message);throw m.code=p.code,m.data=p.data,m.payload=f,this.emit("debug",{action:"receiveEip1193Error",error:m}),m}})}async send(s,l){return await this._start(),await super.send(s,l)}async _send(s){(0,t.assertArgument)(!Array.isArray(s),"EIP-1193 does not support batch request","payload",s);try{const l=await Le(this,r).call(this,s.method,s.params||[]);return[{id:s.id,result:l}]}catch(l){return[{id:s.id,error:{code:l.code,data:l.data,message:l.message}}]}}getRpcError(s,l){switch(l=JSON.parse(JSON.stringify(l)),l.error.code||-1){case 4001:l.error.message=`ethers-user-denied: ${l.error.message}`;break;case 4200:l.error.message=`ethers-unsupported: ${l.error.message}`;break}return super.getRpcError(s,l)}async hasSigner(s){s==null&&(s=0);const l=await this.send("eth_accounts",[]);return typeof s=="number"?l.length>s:(s=s.toLowerCase(),l.filter(c=>c.toLowerCase()===s).length!==0)}async getSigner(s){if(s==null&&(s=0),!await this.hasSigner(s))try{await Le(this,r).call(this,"eth_requestAccounts",[])}catch(l){const c=l.payload;throw this.getRpcError(c,{id:c.id,error:l})}return await super.getSigner(s)}}return r=new WeakMap,hJ.BrowserProvider=n,hJ}var fJ={},K7t;function aWo(){if(K7t)return fJ;K7t=1,Object.defineProperty(fJ,"__esModule",{value:!0}),fJ.PocketProvider=void 0;const t=Oi(),e=MO(),n=ub(),r=s_(),a="62e1ad51b37b8e00394bda3b";function o(l){switch(l){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,t.assertArgument)(!1,"unsupported network","network",l)}class s extends r.JsonRpcProvider{constructor(u,d,h){u==null&&(u="mainnet");const f=n.Network.from(u);d==null&&(d=a),h==null&&(h=null);const p={staticNetwork:f},m=s.getRequest(f,d,h);super(m,f,p);Ut(this,"applicationId");Ut(this,"applicationSecret");(0,t.defineProperties)(this,{applicationId:d,applicationSecret:h})}_getProvider(u){try{return new s(u,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(u)}static getRequest(u,d,h){d==null&&(d=a);const f=new t.FetchRequest(`https://${o(u.name)}/v1/lb/${d}`);return f.allowGzip=!0,h&&f.setCredentials("",h),d===a&&(f.retryFunc=async(p,m,g)=>((0,e.showThrottleMessage)("PocketProvider"),!0)),f}isCommunityResource(){return this.applicationId===a}}return fJ.PocketProvider=s,fJ}var pJ={},W7t;function oWo(){if(W7t)return pJ;W7t=1,Object.defineProperty(pJ,"__esModule",{value:!0}),pJ.IpcSocketProvider=void 0;const t=void 0;return pJ.IpcSocketProvider=t,pJ}var Q7t;function Uut(){return Q7t||(Q7t=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var e=nle();Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return e.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return e.UnmanagedSubscriber}});var n=jut();Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return n.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return n.VoidSigner}});var r=MO();Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return r.showThrottleMessage}});var a=nWo();Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return a.getDefaultProvider}});var o=wJn();Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return o.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return o.MulticoinProviderPlugin}});var s=ub();Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return s.Network}});var l=rWo();Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}});var c=$ut();Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}});var u=tle();Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}});var d=BJn();Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return d.FallbackProvider}});var h=s_();Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return h.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return h.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return h.JsonRpcSigner}});var f=iWo();Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return f.BrowserProvider}});var p=CJn();Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return p.AlchemyProvider}});var m=TJn();Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return m.AnkrProvider}});var g=RJn();Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return g.CloudflareProvider}});var v=kJn();Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return v.ChainstackProvider}});var A=MJn();Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return A.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return A.EtherscanPlugin}});var y=NJn();Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return y.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return y.InfuraWebSocketProvider}});var S=aWo();Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return S.PocketProvider}});var x=IJn();Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return x.QuickNodeProvider}});const w=oWo();Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return w.IpcSocketProvider}});var _=wqe();Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return _.SocketProvider}});var C=Hut();Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return C.WebSocketProvider}});var R=wqe();Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return R.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return R.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return R.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return R.SocketEventSubscriber}})}(V$e)),V$e}var K$e={},mJ={},q7t;function zut(){var s;if(q7t)return mJ;q7t=1,Object.defineProperty(mJ,"__esModule",{value:!0}),mJ.BaseWallet=void 0;const t=Am(),e=CN(),n=Uut(),r=cb(),a=Oi(),l=class l extends n.AbstractSigner{constructor(d,h){super(h);Ut(this,"address");Wt(this,s,void 0);(0,a.assertArgument)(d&&typeof d.sign=="function","invalid private key","privateKey","[ REDACTED ]"),tt(this,s,d);const f=(0,r.computeAddress)(this.signingKey.publicKey);(0,a.defineProperties)(this,{address:f})}get signingKey(){return Le(this,s)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(d){return new l(Le(this,s),d)}async signTransaction(d){const{to:h,from:f}=await(0,a.resolveProperties)({to:d.to?(0,t.resolveAddress)(d.to,this.provider):void 0,from:d.from?(0,t.resolveAddress)(d.from,this.provider):void 0});h!=null&&(d.to=h),f!=null&&(d.from=f),d.from!=null&&((0,a.assertArgument)((0,t.getAddress)(d.from)===this.address,"transaction from address mismatch","tx.from",d.from),delete d.from);const p=r.Transaction.from(d);return p.signature=this.signingKey.sign(p.unsignedHash),p.serialized}async signMessage(d){return this.signMessageSync(d)}signMessageSync(d){return this.signingKey.sign((0,e.hashMessage)(d)).serialized}async signTypedData(d,h,f){const p=await e.TypedDataEncoder.resolveNames(d,h,f,async m=>{(0,a.assert)(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:m}});const g=await this.provider.resolveName(m);return(0,a.assert)(g!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:m}),g});return this.signingKey.sign(e.TypedDataEncoder.hash(p.domain,h,p.value)).serialized}};s=new WeakMap;let o=l;return mJ.BaseWallet=o,mJ}var W$e={},gJ={},vJ={},RL={},Y7t;function DJn(){if(Y7t)return RL;Y7t=1,Object.defineProperty(RL,"__esModule",{value:!0}),RL.decodeOwl=RL.decode=void 0;const t=Oi(),e=" !#$%&'()*+,-./<=>?@[]^_`{|}~",n=/^[a-z]*$/i;function r(s,l){let c=97;return s.reduce((u,d)=>(d===l?c++:d.match(n)?u.push(String.fromCharCode(c)+d):(c=97,u.push(d)),u),[])}function a(s,l){for(let d=e.length-1;d>=0;d--)s=s.split(e[d]).join(l.substring(2*d,2*d+2));const c=[],u=s.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(d,h,f,p)=>{if(f)for(let m=parseInt(f);m>=0;m--)c.push(";");else c.push(h.toLowerCase());return""});if(u)throw new Error(`leftovers: ${JSON.stringify(u)}`);return r(r(c,";"),":")}RL.decode=a;function o(s){return(0,t.assertArgument)(s[0]==="0","unsupported auwl data","data",s),a(s.substring(1+2*e.length),s.substring(1,1+2*e.length))}return RL.decodeOwl=o,RL}var AJ={},J7t;function $Jn(){if(J7t)return AJ;J7t=1,Object.defineProperty(AJ,"__esModule",{value:!0}),AJ.Wordlist=void 0;const t=Oi();class e{constructor(r){Ut(this,"locale");(0,t.defineProperties)(this,{locale:r})}split(r){return r.toLowerCase().split(/\s+/g)}join(r){return r.join(" ")}}return AJ.Wordlist=e,AJ}var Z7t;function Gut(){var o,s,l,c,Cqe;if(Z7t)return vJ;Z7t=1,Object.defineProperty(vJ,"__esModule",{value:!0}),vJ.WordlistOwl=void 0;const t=CN(),e=Oi(),n=DJn(),r=$Jn();class a extends r.Wordlist{constructor(f,p,m){super(f);Wt(this,c);Wt(this,o,void 0);Wt(this,s,void 0);Wt(this,l,void 0);tt(this,o,p),tt(this,s,m),tt(this,l,null)}get _data(){return Le(this,o)}_decodeWords(){return(0,n.decodeOwl)(Le(this,o))}getWord(f){const p=qn(this,c,Cqe).call(this);return(0,e.assertArgument)(f>=0&&f<p.length,`invalid word index: ${f}`,"index",f),p[f]}getWordIndex(f){return qn(this,c,Cqe).call(this).indexOf(f)}}return o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakSet,Cqe=function(){if(Le(this,l)==null){const f=this._decodeWords();if((0,t.id)(f.join(`
`)+`
`)!==Le(this,s))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);tt(this,l,f)}return Le(this,l)},vJ.WordlistOwl=a,vJ}var X7t;function OCe(){if(X7t)return gJ;X7t=1,Object.defineProperty(gJ,"__esModule",{value:!0}),gJ.LangEn=void 0;const t=Gut(),e="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",n="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let r=null;class a extends t.WordlistOwl{constructor(){super("en",e,n)}static wordlist(){return r==null&&(r=new a),r}}return gJ.LangEn=a,gJ}var yJ={},eFt;function Vut(){if(eFt)return yJ;eFt=1,Object.defineProperty(yJ,"__esModule",{value:!0}),yJ.Mnemonic=void 0;const t=bg(),e=Oi(),n=OCe();function r(u){return(1<<u)-1<<8-u&255}function a(u){return(1<<u)-1&255}function o(u,d){(0,e.assertNormalize)("NFKD"),d==null&&(d=n.LangEn.wordlist());const h=d.split(u);(0,e.assertArgument)(h.length%3===0&&h.length>=12&&h.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const f=new Uint8Array(Math.ceil(11*h.length/8));let p=0;for(let y=0;y<h.length;y++){let S=d.getWordIndex(h[y].normalize("NFKD"));(0,e.assertArgument)(S>=0,`invalid mnemonic word at index ${y}`,"mnemonic","[ REDACTED ]");for(let x=0;x<11;x++)S&1<<10-x&&(f[p>>3]|=1<<7-p%8),p++}const m=32*h.length/3,g=h.length/3,v=r(g),A=(0,e.getBytes)((0,t.sha256)(f.slice(0,m/8)))[0]&v;return(0,e.assertArgument)(A===(f[f.length-1]&v),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,e.hexlify)(f.slice(0,m/8))}function s(u,d){(0,e.assertArgument)(u.length%4===0&&u.length>=16&&u.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),d==null&&(d=n.LangEn.wordlist());const h=[0];let f=11;for(let g=0;g<u.length;g++)f>8?(h[h.length-1]<<=8,h[h.length-1]|=u[g],f-=8):(h[h.length-1]<<=f,h[h.length-1]|=u[g]>>8-f,h.push(u[g]&a(8-f)),f+=3);const p=u.length/4,m=parseInt((0,t.sha256)(u).substring(2,4),16)&r(p);return h[h.length-1]<<=p,h[h.length-1]|=m>>8-p,d.join(h.map(g=>d.getWord(g)))}const l={};class c{constructor(d,h,f,p,m){Ut(this,"phrase");Ut(this,"password");Ut(this,"wordlist");Ut(this,"entropy");p==null&&(p=""),m==null&&(m=n.LangEn.wordlist()),(0,e.assertPrivate)(d,l,"Mnemonic"),(0,e.defineProperties)(this,{phrase:f,password:p,wordlist:m,entropy:h})}computeSeed(){const d=(0,e.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,t.pbkdf2)((0,e.toUtf8Bytes)(this.phrase,"NFKD"),d,2048,64,"sha512")}static fromPhrase(d,h,f){const p=o(d,f);return d=s((0,e.getBytes)(p),f),new c(l,p,d,h,f)}static fromEntropy(d,h,f){const p=(0,e.getBytes)(d,"entropy"),m=s(p,f);return new c(l,(0,e.hexlify)(p),m,h,f)}static entropyToPhrase(d,h){const f=(0,e.getBytes)(d,"entropy");return s(f,h)}static phraseToEntropy(d,h){return o(d,h)}static isValidMnemonic(d,h){try{return o(d,h),!0}catch{}return!1}}return yJ.Mnemonic=c,yJ}var ay={},Q$e={},bJ={},tFt;function FJn(){if(tFt)return bJ;tFt=1;/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */var t=en&&en.__classPrivateFieldGet||function(C,R,k,P){if(k==="a"&&!P)throw new TypeError("Private accessor was defined without a getter");if(typeof R=="function"?C!==R||!P:!R.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return k==="m"?P:k==="a"?P.call(C):P?P.value:R.get(C)},e=en&&en.__classPrivateFieldSet||function(C,R,k,P,N){if(P==="m")throw new TypeError("Private method is not writable");if(P==="a"&&!N)throw new TypeError("Private accessor was defined without a setter");if(typeof R=="function"?C!==R||!N:!R.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return P==="a"?N.call(C,k):N?N.value=k:R.set(C,k),k},n,r,a;Object.defineProperty(bJ,"__esModule",{value:!0}),bJ.AES=void 0;const o={16:10,24:12,32:14},s=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],c=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],u=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],d=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],h=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],f=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],p=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],m=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],g=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],v=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],A=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],y=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],x=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function w(C){const R=[];for(let k=0;k<C.length;k+=4)R.push(C[k]<<24|C[k+1]<<16|C[k+2]<<8|C[k+3]);return R}class _{get key(){return t(this,n,"f").slice()}constructor(R){if(n.set(this,void 0),r.set(this,void 0),a.set(this,void 0),!(this instanceof _))throw Error("AES must be instanitated with `new`");e(this,n,new Uint8Array(R),"f");const k=o[this.key.length];if(k==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");e(this,a,[],"f"),e(this,r,[],"f");for(let D=0;D<=k;D++)t(this,a,"f").push([0,0,0,0]),t(this,r,"f").push([0,0,0,0]);const P=(k+1)*4,N=this.key.length/4,L=w(this.key);let I;for(let D=0;D<N;D++)I=D>>2,t(this,a,"f")[I][D%4]=L[D],t(this,r,"f")[k-I][D%4]=L[D];let b=0,T=N,M;for(;T<P;){if(M=L[N-1],L[0]^=l[M>>16&255]<<24^l[M>>8&255]<<16^l[M&255]<<8^l[M>>24&255]^s[b]<<24,b+=1,N!=8)for(let H=1;H<N;H++)L[H]^=L[H-1];else{for(let H=1;H<N/2;H++)L[H]^=L[H-1];M=L[N/2-1],L[N/2]^=l[M&255]^l[M>>8&255]<<8^l[M>>16&255]<<16^l[M>>24&255]<<24;for(let H=N/2+1;H<N;H++)L[H]^=L[H-1]}let D=0,B,j;for(;D<N&&T<P;)B=T>>2,j=T%4,t(this,a,"f")[B][j]=L[D],t(this,r,"f")[k-B][j]=L[D++],T++}for(let D=1;D<k;D++)for(let B=0;B<4;B++)M=t(this,r,"f")[D][B],t(this,r,"f")[D][B]=A[M>>24&255]^y[M>>16&255]^S[M>>8&255]^x[M&255]}encrypt(R){if(R.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const k=t(this,a,"f").length-1,P=[0,0,0,0];let N=w(R);for(let b=0;b<4;b++)N[b]^=t(this,a,"f")[0][b];for(let b=1;b<k;b++){for(let T=0;T<4;T++)P[T]=u[N[T]>>24&255]^d[N[(T+1)%4]>>16&255]^h[N[(T+2)%4]>>8&255]^f[N[(T+3)%4]&255]^t(this,a,"f")[b][T];N=P.slice()}const L=new Uint8Array(16);let I=0;for(let b=0;b<4;b++)I=t(this,a,"f")[k][b],L[4*b]=(l[N[b]>>24&255]^I>>24)&255,L[4*b+1]=(l[N[(b+1)%4]>>16&255]^I>>16)&255,L[4*b+2]=(l[N[(b+2)%4]>>8&255]^I>>8)&255,L[4*b+3]=(l[N[(b+3)%4]&255]^I)&255;return L}decrypt(R){if(R.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const k=t(this,r,"f").length-1,P=[0,0,0,0];let N=w(R);for(let b=0;b<4;b++)N[b]^=t(this,r,"f")[0][b];for(let b=1;b<k;b++){for(let T=0;T<4;T++)P[T]=p[N[T]>>24&255]^m[N[(T+3)%4]>>16&255]^g[N[(T+2)%4]>>8&255]^v[N[(T+1)%4]&255]^t(this,r,"f")[b][T];N=P.slice()}const L=new Uint8Array(16);let I=0;for(let b=0;b<4;b++)I=t(this,r,"f")[k][b],L[4*b]=(c[N[b]>>24&255]^I>>24)&255,L[4*b+1]=(c[N[(b+3)%4]>>16&255]^I>>16)&255,L[4*b+2]=(c[N[(b+2)%4]>>8&255]^I>>8)&255,L[4*b+3]=(c[N[(b+1)%4]&255]^I)&255;return L}}return bJ.AES=_,n=new WeakMap,r=new WeakMap,a=new WeakMap,bJ}var xJ={},nFt;function PK(){if(nFt)return xJ;nFt=1,Object.defineProperty(xJ,"__esModule",{value:!0}),xJ.ModeOfOperation=void 0;const t=FJn();class e{constructor(r,a,o){if(o&&!(this instanceof o))throw new Error(`${r} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new t.AES(a)},name:{enumerable:!0,value:r}})}}return xJ.ModeOfOperation=e,xJ}var EJ={},rFt;function sWo(){if(rFt)return EJ;rFt=1;var t=en&&en.__classPrivateFieldSet||function(s,l,c,u,d){if(u==="m")throw new TypeError("Private method is not writable");if(u==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof l=="function"?s!==l||!d:!l.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return u==="a"?d.call(s,c):d?d.value=c:l.set(s,c),c},e=en&&en.__classPrivateFieldGet||function(s,l,c,u){if(c==="a"&&!u)throw new TypeError("Private accessor was defined without a getter");if(typeof l=="function"?s!==l||!u:!l.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?u:c==="a"?u.call(s):u?u.value:l.get(s)},n,r;Object.defineProperty(EJ,"__esModule",{value:!0}),EJ.CBC=void 0;const a=PK();class o extends a.ModeOfOperation{constructor(l,c){if(super("ECC",l,o),n.set(this,void 0),r.set(this,void 0),c){if(c.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");t(this,n,new Uint8Array(c),"f")}else t(this,n,new Uint8Array(16),"f");t(this,r,this.iv,"f")}get iv(){return new Uint8Array(e(this,n,"f"))}encrypt(l){if(l.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const c=new Uint8Array(l.length);for(let u=0;u<l.length;u+=16){for(let d=0;d<16;d++)e(this,r,"f")[d]^=l[u+d];t(this,r,this.aes.encrypt(e(this,r,"f")),"f"),c.set(e(this,r,"f"),u)}return c}decrypt(l){if(l.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const c=new Uint8Array(l.length);for(let u=0;u<l.length;u+=16){const d=this.aes.decrypt(l.subarray(u,u+16));for(let h=0;h<16;h++)c[u+h]=d[h]^e(this,r,"f")[h],e(this,r,"f")[h]=l[u+h]}return c}}return EJ.CBC=o,n=new WeakMap,r=new WeakMap,EJ}var SJ={},iFt;function lWo(){if(iFt)return SJ;iFt=1;var t=en&&en.__classPrivateFieldSet||function(c,u,d,h,f){if(h==="m")throw new TypeError("Private method is not writable");if(h==="a"&&!f)throw new TypeError("Private accessor was defined without a setter");if(typeof u=="function"?c!==u||!f:!u.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return h==="a"?f.call(c,d):f?f.value=d:u.set(c,d),d},e=en&&en.__classPrivateFieldGet||function(c,u,d,h){if(d==="a"&&!h)throw new TypeError("Private accessor was defined without a getter");if(typeof u=="function"?c!==u||!h:!u.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return d==="m"?h:d==="a"?h.call(c):h?h.value:u.get(c)},n,r,a,o;Object.defineProperty(SJ,"__esModule",{value:!0}),SJ.CFB=void 0;const s=PK();class l extends s.ModeOfOperation{constructor(u,d,h=8){if(super("CFB",u,l),n.add(this),r.set(this,void 0),a.set(this,void 0),!Number.isInteger(h)||h%8)throw new TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:h}}),d){if(d.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");t(this,r,new Uint8Array(d),"f")}else t(this,r,new Uint8Array(16),"f");t(this,a,this.iv,"f")}get iv(){return new Uint8Array(e(this,r,"f"))}encrypt(u){if(8*u.length%this.segmentSize)throw new TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");const d=this.segmentSize/8,h=new Uint8Array(u);for(let f=0;f<h.length;f+=d){const p=this.aes.encrypt(e(this,a,"f"));for(let m=0;m<d;m++)h[f+m]^=p[m];e(this,n,"m",o).call(this,h.subarray(f))}return h}decrypt(u){if(8*u.length%this.segmentSize)throw new TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");const d=this.segmentSize/8,h=new Uint8Array(u);for(let f=0;f<h.length;f+=d){const p=this.aes.encrypt(e(this,a,"f"));for(let m=0;m<d;m++)h[f+m]^=p[m];e(this,n,"m",o).call(this,u.subarray(f))}return h}}return SJ.CFB=l,r=new WeakMap,a=new WeakMap,n=new WeakSet,o=function(u){const d=this.segmentSize/8;e(this,a,"f").set(e(this,a,"f").subarray(d)),e(this,a,"f").set(u.subarray(0,d),16-d)},SJ}var wJ={},aFt;function cWo(){if(aFt)return wJ;aFt=1;var t=en&&en.__classPrivateFieldSet||function(l,c,u,d,h){if(d==="m")throw new TypeError("Private method is not writable");if(d==="a"&&!h)throw new TypeError("Private accessor was defined without a setter");if(typeof c=="function"?l!==c||!h:!c.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return d==="a"?h.call(l,u):h?h.value=u:c.set(l,u),u},e=en&&en.__classPrivateFieldGet||function(l,c,u,d){if(u==="a"&&!d)throw new TypeError("Private accessor was defined without a getter");if(typeof c=="function"?l!==c||!d:!c.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return u==="m"?d:u==="a"?d.call(l):d?d.value:c.get(l)},n,r,a;Object.defineProperty(wJ,"__esModule",{value:!0}),wJ.CTR=void 0;const o=PK();class s extends o.ModeOfOperation{constructor(c,u){super("CTR",c,s),n.set(this,void 0),r.set(this,void 0),a.set(this,void 0),t(this,a,new Uint8Array(16),"f"),e(this,a,"f").fill(0),t(this,n,e(this,a,"f"),"f"),t(this,r,16,"f"),u==null&&(u=1),typeof u=="number"?this.setCounterValue(u):this.setCounterBytes(u)}get counter(){return new Uint8Array(e(this,a,"f"))}setCounterValue(c){if(!Number.isInteger(c)||c<0||c>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let u=15;u>=0;--u)e(this,a,"f")[u]=c%256,c=Math.floor(c/256)}setCounterBytes(c){if(c.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");e(this,a,"f").set(c)}increment(){for(let c=15;c>=0;c--)if(e(this,a,"f")[c]===255)e(this,a,"f")[c]=0;else{e(this,a,"f")[c]++;break}}encrypt(c){var u,d;const h=new Uint8Array(c);for(let f=0;f<h.length;f++)e(this,r,"f")===16&&(t(this,n,this.aes.encrypt(e(this,a,"f")),"f"),t(this,r,0,"f"),this.increment()),h[f]^=e(this,n,"f")[t(this,r,(d=e(this,r,"f"),u=d++,d),"f"),u];return h}decrypt(c){return this.encrypt(c)}}return wJ.CTR=s,n=new WeakMap,r=new WeakMap,a=new WeakMap,wJ}var _J={},oFt;function uWo(){if(oFt)return _J;oFt=1,Object.defineProperty(_J,"__esModule",{value:!0}),_J.ECB=void 0;const t=PK();class e extends t.ModeOfOperation{constructor(r){super("ECB",r,e)}encrypt(r){if(r.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const a=new Uint8Array(r.length);for(let o=0;o<r.length;o+=16)a.set(this.aes.encrypt(r.subarray(o,o+16)),o);return a}decrypt(r){if(r.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const a=new Uint8Array(r.length);for(let o=0;o<r.length;o+=16)a.set(this.aes.decrypt(r.subarray(o,o+16)),o);return a}}return _J.ECB=e,_J}var TJ={},sFt;function dWo(){if(sFt)return TJ;sFt=1;var t=en&&en.__classPrivateFieldSet||function(l,c,u,d,h){if(d==="m")throw new TypeError("Private method is not writable");if(d==="a"&&!h)throw new TypeError("Private accessor was defined without a setter");if(typeof c=="function"?l!==c||!h:!c.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return d==="a"?h.call(l,u):h?h.value=u:c.set(l,u),u},e=en&&en.__classPrivateFieldGet||function(l,c,u,d){if(u==="a"&&!d)throw new TypeError("Private accessor was defined without a getter");if(typeof c=="function"?l!==c||!d:!c.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return u==="m"?d:u==="a"?d.call(l):d?d.value:c.get(l)},n,r,a;Object.defineProperty(TJ,"__esModule",{value:!0}),TJ.OFB=void 0;const o=PK();class s extends o.ModeOfOperation{constructor(c,u){if(super("OFB",c,s),n.set(this,void 0),r.set(this,void 0),a.set(this,void 0),u){if(u.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");t(this,n,new Uint8Array(u),"f")}else t(this,n,new Uint8Array(16),"f");t(this,r,this.iv,"f"),t(this,a,16,"f")}get iv(){return new Uint8Array(e(this,n,"f"))}encrypt(c){var u,d;if(c.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const h=new Uint8Array(c);for(let f=0;f<h.length;f++)e(this,a,"f")===16&&(t(this,r,this.aes.encrypt(e(this,r,"f")),"f"),t(this,a,0,"f")),h[f]^=e(this,r,"f")[t(this,a,(d=e(this,a,"f"),u=d++,d),"f"),u];return h}decrypt(c){if(c.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(c)}}return TJ.OFB=s,n=new WeakMap,r=new WeakMap,a=new WeakMap,TJ}var ML={},lFt;function hWo(){if(lFt)return ML;lFt=1,Object.defineProperty(ML,"__esModule",{value:!0}),ML.pkcs7Strip=ML.pkcs7Pad=void 0;function t(n){const r=16-n.length%16,a=new Uint8Array(n.length+r);a.set(n);for(let o=n.length;o<a.length;o++)a[o]=r;return a}ML.pkcs7Pad=t;function e(n){if(n.length<16)throw new TypeError("PKCS#7 invalid length");const r=n[n.length-1];if(r>16)throw new TypeError("PKCS#7 padding byte out of range");const a=n.length-r;for(let o=0;o<r;o++)if(n[a+o]!==r)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(n.subarray(0,a))}return ML.pkcs7Strip=e,ML}var cFt;function jJn(){return cFt||(cFt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=t.OFB=t.ECB=t.CTR=t.CFB=t.CBC=t.ModeOfOperation=t.AES=void 0;var e=FJn();Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return e.AES}});var n=PK();Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return n.ModeOfOperation}});var r=sWo();Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return r.CBC}});var a=lWo();Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return a.CFB}});var o=cWo();Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return o.CTR}});var s=uWo();Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return s.ECB}});var l=dWo();Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return l.OFB}});var c=hWo();Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return c.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return c.pkcs7Strip}})}(Q$e)),Q$e}var yS={},uFt;function HJn(){if(uFt)return yS;uFt=1,Object.defineProperty(yS,"__esModule",{value:!0}),yS.spelunk=yS.getPassword=yS.zpad=yS.looseArrayify=void 0;const t=Oi();function e(o){return typeof o=="string"&&!o.startsWith("0x")&&(o="0x"+o),(0,t.getBytesCopy)(o)}yS.looseArrayify=e;function n(o,s){for(o=String(o);o.length<s;)o="0"+o;return o}yS.zpad=n;function r(o){return typeof o=="string"?(0,t.toUtf8Bytes)(o,"NFKC"):(0,t.getBytesCopy)(o)}yS.getPassword=r;function a(o,s){const l=s.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,t.assertArgument)(l!=null,"invalid path","path",s);const c=l[1],u=l[3],d=l[4]==="!";let h=o;for(const f of c.toLowerCase().split(".")){if(Array.isArray(h)){if(!f.match(/^[0-9]+$/))break;h=h[parseInt(f)]}else if(typeof h=="object"){let p=null;for(const m in h)if(m.toLowerCase()===f){p=h[m];break}h=p}else h=null;if(h==null)break}if((0,t.assertArgument)(!d||h!=null,"missing required value","path",c),u&&h!=null){if(u==="int"){if(typeof h=="string"&&h.match(/^-?[0-9]+$/))return parseInt(h);if(Number.isSafeInteger(h))return h}if(u==="number"&&typeof h=="string"&&h.match(/^-?[0-9.]*$/))return parseFloat(h);if(u==="data"&&typeof h=="string")return e(h);if(u==="array"&&Array.isArray(h)||u===typeof h)return h;(0,t.assertArgument)(!1,`wrong type found for ${u} `,"path",c)}return h}return yS.spelunk=a,yS}var dFt;function Kut(){if(dFt)return ay;dFt=1,Object.defineProperty(ay,"__esModule",{value:!0}),ay.encryptKeystoreJson=ay.encryptKeystoreJsonSync=ay.decryptKeystoreJson=ay.decryptKeystoreJsonSync=ay.isKeystoreJson=void 0;const t=jJn(),e=Am(),n=bg(),r=cb(),a=Oi(),o=HJn(),s=Nut(),l="m/44'/60'/0'/0/0";function c(S){try{const x=JSON.parse(S);if((x.version!=null?parseInt(x.version):0)===3)return!0}catch{}return!1}ay.isKeystoreJson=c;function u(S,x,w){if((0,o.spelunk)(S,"crypto.cipher:string")==="aes-128-ctr"){const C=(0,o.spelunk)(S,"crypto.cipherparams.iv:data!"),R=new t.CTR(x,C);return(0,a.hexlify)(R.decrypt(w))}(0,a.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function d(S,x){const w=(0,a.getBytes)(x),_=(0,o.spelunk)(S,"crypto.ciphertext:data!"),C=(0,a.hexlify)((0,n.keccak256)((0,a.concat)([w.slice(16,32),_]))).substring(2);(0,a.assertArgument)(C===(0,o.spelunk)(S,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const R=u(S,w.slice(0,16),_),k=(0,r.computeAddress)(R);if(S.address){let L=S.address.toLowerCase();L.startsWith("0x")||(L="0x"+L),(0,a.assertArgument)((0,e.getAddress)(L)===k,"keystore address/privateKey mismatch","address",S.address)}const P={address:k,privateKey:R};if((0,o.spelunk)(S,"x-ethers.version:string")==="0.1"){const L=w.slice(32,64),I=(0,o.spelunk)(S,"x-ethers.mnemonicCiphertext:data!"),b=(0,o.spelunk)(S,"x-ethers.mnemonicCounter:data!"),T=new t.CTR(L,b);P.mnemonic={path:(0,o.spelunk)(S,"x-ethers.path:string")||l,locale:(0,o.spelunk)(S,"x-ethers.locale:string")||"en",entropy:(0,a.hexlify)((0,a.getBytes)(T.decrypt(I)))}}return P}function h(S){const x=(0,o.spelunk)(S,"crypto.kdf:string");if(x&&typeof x=="string"){if(x.toLowerCase()==="scrypt"){const w=(0,o.spelunk)(S,"crypto.kdfparams.salt:data!"),_=(0,o.spelunk)(S,"crypto.kdfparams.n:int!"),C=(0,o.spelunk)(S,"crypto.kdfparams.r:int!"),R=(0,o.spelunk)(S,"crypto.kdfparams.p:int!");(0,a.assertArgument)(_>0&&(_&_-1)===0,"invalid kdf.N","kdf.N",_),(0,a.assertArgument)(C>0&&R>0,"invalid kdf","kdf",x);const k=(0,o.spelunk)(S,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(k===32,"invalid kdf.dklen","kdf.dflen",k),{name:"scrypt",salt:w,N:_,r:C,p:R,dkLen:64}}else if(x.toLowerCase()==="pbkdf2"){const w=(0,o.spelunk)(S,"crypto.kdfparams.salt:data!"),_=(0,o.spelunk)(S,"crypto.kdfparams.prf:string!"),C=_.split("-").pop();(0,a.assertArgument)(C==="sha256"||C==="sha512","invalid kdf.pdf","kdf.pdf",_);const R=(0,o.spelunk)(S,"crypto.kdfparams.c:int!"),k=(0,o.spelunk)(S,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(k===32,"invalid kdf.dklen","kdf.dklen",k),{name:"pbkdf2",salt:w,count:R,dkLen:k,algorithm:C}}}(0,a.assertArgument)(!1,"unsupported key-derivation function","kdf",x)}function f(S,x){const w=JSON.parse(S),_=(0,o.getPassword)(x),C=h(w);if(C.name==="pbkdf2"){const{salt:b,count:T,dkLen:M,algorithm:D}=C,B=(0,n.pbkdf2)(_,b,T,M,D);return d(w,B)}(0,a.assert)(C.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:C});const{salt:R,N:k,r:P,p:N,dkLen:L}=C,I=(0,n.scryptSync)(_,R,k,P,N,L);return d(w,I)}ay.decryptKeystoreJsonSync=f;function p(S){return new Promise(x=>{setTimeout(()=>{x()},S)})}async function m(S,x,w){const _=JSON.parse(S),C=(0,o.getPassword)(x),R=h(_);if(R.name==="pbkdf2"){w&&(w(0),await p(0));const{salt:T,count:M,dkLen:D,algorithm:B}=R,j=(0,n.pbkdf2)(C,T,M,D,B);return w&&(w(1),await p(0)),d(_,j)}(0,a.assert)(R.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:R});const{salt:k,N:P,r:N,p:L,dkLen:I}=R,b=await(0,n.scrypt)(C,k,P,N,L,I,w);return d(_,b)}ay.decryptKeystoreJson=m;function g(S){const x=S.salt!=null?(0,a.getBytes)(S.salt,"options.salt"):(0,n.randomBytes)(32);let w=1<<17,_=8,C=1;return S.scrypt&&(S.scrypt.N&&(w=S.scrypt.N),S.scrypt.r&&(_=S.scrypt.r),S.scrypt.p&&(C=S.scrypt.p)),(0,a.assertArgument)(typeof w=="number"&&w>0&&Number.isSafeInteger(w)&&(BigInt(w)&BigInt(w-1))===BigInt(0),"invalid scrypt N parameter","options.N",w),(0,a.assertArgument)(typeof _=="number"&&_>0&&Number.isSafeInteger(_),"invalid scrypt r parameter","options.r",_),(0,a.assertArgument)(typeof C=="number"&&C>0&&Number.isSafeInteger(C),"invalid scrypt p parameter","options.p",C),{name:"scrypt",dkLen:32,salt:x,N:w,r:_,p:C}}function v(S,x,w,_){const C=(0,a.getBytes)(w.privateKey,"privateKey"),R=_.iv!=null?(0,a.getBytes)(_.iv,"options.iv"):(0,n.randomBytes)(16);(0,a.assertArgument)(R.length===16,"invalid options.iv length","options.iv",_.iv);const k=_.uuid!=null?(0,a.getBytes)(_.uuid,"options.uuid"):(0,n.randomBytes)(16);(0,a.assertArgument)(k.length===16,"invalid options.uuid length","options.uuid",_.iv);const P=S.slice(0,16),N=S.slice(16,32),L=new t.CTR(P,R),I=(0,a.getBytes)(L.encrypt(C)),b=(0,n.keccak256)((0,a.concat)([N,I])),T={address:w.address.substring(2).toLowerCase(),id:(0,a.uuidV4)(k),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,a.hexlify)(R).substring(2)},ciphertext:(0,a.hexlify)(I).substring(2),kdf:"scrypt",kdfparams:{salt:(0,a.hexlify)(x.salt).substring(2),n:x.N,dklen:32,p:x.p,r:x.r},mac:b.substring(2)}};if(w.mnemonic){const M=_.client!=null?_.client:`ethers/${s.version}`,D=w.mnemonic.path||l,B=w.mnemonic.locale||"en",j=S.slice(32,64),H=(0,a.getBytes)(w.mnemonic.entropy,"account.mnemonic.entropy"),U=(0,n.randomBytes)(16),$=new t.CTR(j,U),z=(0,a.getBytes)($.encrypt(H)),Z=new Date,Q="UTC--"+(Z.getUTCFullYear()+"-"+(0,o.zpad)(Z.getUTCMonth()+1,2)+"-"+(0,o.zpad)(Z.getUTCDate(),2)+"T"+(0,o.zpad)(Z.getUTCHours(),2)+"-"+(0,o.zpad)(Z.getUTCMinutes(),2)+"-"+(0,o.zpad)(Z.getUTCSeconds(),2)+".0Z")+"--"+T.address;T["x-ethers"]={client:M,gethFilename:Q,path:D,locale:B,mnemonicCounter:(0,a.hexlify)(U).substring(2),mnemonicCiphertext:(0,a.hexlify)(z).substring(2),version:"0.1"}}return JSON.stringify(T)}function A(S,x,w){w==null&&(w={});const _=(0,o.getPassword)(x),C=g(w),R=(0,n.scryptSync)(_,C.salt,C.N,C.r,C.p,64);return v((0,a.getBytes)(R),C,S,w)}ay.encryptKeystoreJsonSync=A;async function y(S,x,w){w==null&&(w={});const _=(0,o.getPassword)(x),C=g(w),R=await(0,n.scrypt)(_,C.salt,C.N,C.r,C.p,64,w.progressCallback);return v((0,a.getBytes)(R),C,S,w)}return ay.encryptKeystoreJson=y,ay}var hFt;function UJn(){return hFt||(hFt=1,function(t){var _,kqe,R,YZ;Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;const e=bg(),n=Uut(),r=cb(),a=Oi(),o=OCe(),s=zut(),l=Vut(),c=Kut();t.defaultPath="m/44'/60'/0'/0/0";const u=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),d=2147483648,h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f="0123456789abcdef";function p(N,L){let I="";for(;N;)I=f[N%16]+I,N=Math.trunc(N/16);for(;I.length<L*2;)I="0"+I;return"0x"+I}function m(N){const L=(0,a.getBytes)(N),I=(0,a.dataSlice)((0,e.sha256)((0,e.sha256)(L)),0,4),b=(0,a.concat)([L,I]);return(0,a.encodeBase58)(b)}const g={};function v(N,L,I,b){const T=new Uint8Array(37);N&d?((0,a.assert)(b!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),T.set((0,a.getBytes)(b),1)):T.set((0,a.getBytes)(I));for(let D=24;D>=0;D-=8)T[33+(D>>3)]=N>>24-D&255;const M=(0,a.getBytes)((0,e.computeHmac)("sha512",L,T));return{IL:M.slice(0,32),IR:M.slice(32)}}function A(N,L){const I=L.split("/");(0,a.assertArgument)(I.length>0,"invalid path","path",L),I[0]==="m"&&((0,a.assertArgument)(N.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${N.depth}`,"path",L),I.shift());let b=N;for(let T=0;T<I.length;T++){const M=I[T];if(M.match(/^[0-9]+'$/)){const D=parseInt(M.substring(0,M.length-1));(0,a.assertArgument)(D<d,"invalid path index",`path[${T}]`,M),b=b.deriveChild(d+D)}else if(M.match(/^[0-9]+$/)){const D=parseInt(M);(0,a.assertArgument)(D<d,"invalid path index",`path[${T}]`,M),b=b.deriveChild(D)}else(0,a.assertArgument)(!1,"invalid path component",`path[${T}]`,M)}return b}const P=class P extends s.BaseWallet{constructor(I,b,T,M,D,B,j,H,U){super(b,U);Wt(this,_);Ut(this,"publicKey");Ut(this,"fingerprint");Ut(this,"parentFingerprint");Ut(this,"mnemonic");Ut(this,"chainCode");Ut(this,"path");Ut(this,"index");Ut(this,"depth");(0,a.assertPrivate)(I,g,"HDNodeWallet"),(0,a.defineProperties)(this,{publicKey:b.compressedPublicKey});const $=(0,a.dataSlice)((0,e.ripemd160)((0,e.sha256)(this.publicKey)),0,4);(0,a.defineProperties)(this,{parentFingerprint:T,fingerprint:$,chainCode:M,path:D,index:B,depth:j}),(0,a.defineProperties)(this,{mnemonic:H})}connect(I){return new P(g,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,I)}async encrypt(I,b){return await(0,c.encryptKeystoreJson)(qn(this,_,kqe).call(this),I,{progressCallback:b})}encryptSync(I){return(0,c.encryptKeystoreJsonSync)(qn(this,_,kqe).call(this),I)}get extendedKey(){return(0,a.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),m((0,a.concat)(["0x0488ADE4",p(this.depth,1),this.parentFingerprint,p(this.index,4),this.chainCode,(0,a.concat)(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new S(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(I){const b=(0,a.getNumber)(I,"index");(0,a.assertArgument)(b<=4294967295,"invalid index","index",b);let T=this.path;T&&(T+="/"+(b&~d),b&d&&(T+="'"));const{IR:M,IL:D}=v(b,this.chainCode,this.publicKey,this.privateKey),B=new e.SigningKey((0,a.toBeHex)(((0,a.toBigInt)(D)+BigInt(this.privateKey))%h,32));return new P(g,B,this.fingerprint,(0,a.hexlify)(M),T,b,this.depth+1,this.mnemonic,this.provider)}derivePath(I){return A(this,I)}static fromExtendedKey(I){const b=(0,a.toBeArray)((0,a.decodeBase58)(I));(0,a.assertArgument)(b.length===82||m(b.slice(0,78))===I,"invalid extended key","extendedKey","[ REDACTED ]");const T=b[4],M=(0,a.hexlify)(b.slice(5,9)),D=parseInt((0,a.hexlify)(b.slice(9,13)).substring(2),16),B=(0,a.hexlify)(b.slice(13,45)),j=b.slice(45,78);switch((0,a.hexlify)(b.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const H=(0,a.hexlify)(j);return new S(g,(0,r.computeAddress)(H),H,M,B,null,D,T,null)}case"0x0488ade4":case"0x04358394 ":if(j[0]!==0)break;return new P(g,new e.SigningKey(j.slice(1)),M,B,null,D,T,null,null)}(0,a.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(I,b,T){var D;I==null&&(I=""),b==null&&(b=t.defaultPath),T==null&&(T=o.LangEn.wordlist());const M=l.Mnemonic.fromEntropy((0,e.randomBytes)(16),I,T);return qn(D=P,R,YZ).call(D,M.computeSeed(),M).derivePath(b)}static fromMnemonic(I,b){var T;return b||(b=t.defaultPath),qn(T=P,R,YZ).call(T,I.computeSeed(),I).derivePath(b)}static fromPhrase(I,b,T,M){var B;b==null&&(b=""),T==null&&(T=t.defaultPath),M==null&&(M=o.LangEn.wordlist());const D=l.Mnemonic.fromPhrase(I,b,M);return qn(B=P,R,YZ).call(B,D.computeSeed(),D).derivePath(T)}static fromSeed(I){var b;return qn(b=P,R,YZ).call(b,I,null)}};_=new WeakSet,kqe=function(){const I={address:this.address,privateKey:this.privateKey},b=this.mnemonic;return this.path&&b&&b.wordlist.locale==="en"&&b.password===""&&(I.mnemonic={path:this.path,locale:"en",entropy:b.entropy}),I},R=new WeakSet,YZ=function(I,b){(0,a.assertArgument)((0,a.isBytesLike)(I),"invalid seed","seed","[REDACTED]");const T=(0,a.getBytes)(I,"seed");(0,a.assertArgument)(T.length>=16&&T.length<=64,"invalid seed","seed","[REDACTED]");const M=(0,a.getBytes)((0,e.computeHmac)("sha512",u,T)),D=new e.SigningKey((0,a.hexlify)(M.slice(0,32)));return new P(g,D,"0x00000000",(0,a.hexlify)(M.slice(32)),"m",0,0,b,null)},Wt(P,R);let y=P;t.HDNodeWallet=y;class S extends n.VoidSigner{constructor(I,b,T,M,D,B,j,H,U){super(b,U);Ut(this,"publicKey");Ut(this,"fingerprint");Ut(this,"parentFingerprint");Ut(this,"chainCode");Ut(this,"path");Ut(this,"index");Ut(this,"depth");(0,a.assertPrivate)(I,g,"HDNodeVoidWallet"),(0,a.defineProperties)(this,{publicKey:T});const $=(0,a.dataSlice)((0,e.ripemd160)((0,e.sha256)(T)),0,4);(0,a.defineProperties)(this,{publicKey:T,fingerprint:$,parentFingerprint:M,chainCode:D,path:B,index:j,depth:H})}connect(I){return new S(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,I)}get extendedKey(){return(0,a.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),m((0,a.concat)(["0x0488B21E",p(this.depth,1),this.parentFingerprint,p(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(I){const b=(0,a.getNumber)(I,"index");(0,a.assertArgument)(b<=4294967295,"invalid index","index",b);let T=this.path;T&&(T+="/"+(b&~d),b&d&&(T+="'"));const{IR:M,IL:D}=v(b,this.chainCode,this.publicKey,null),B=e.SigningKey.addPoints(D,this.publicKey,!0),j=(0,r.computeAddress)(B);return new S(g,j,B,this.fingerprint,(0,a.hexlify)(M),T,b,this.depth+1,this.provider)}derivePath(I){return A(this,I)}}t.HDNodeVoidWallet=S;function x(N){const L=(0,a.getNumber)(N,"index");return(0,a.assertArgument)(L>=0&&L<d,"invalid account index","index",L),`m/44'/60'/${L}'/0/0`}t.getAccountPath=x;function w(N){const L=(0,a.getNumber)(N,"index");return(0,a.assertArgument)(L>=0&&L<d,"invalid account index","index",L),`m/44'/60'/0'/0/${L}`}t.getIndexedAccountPath=w}(W$e)),W$e}var NL={},fFt;function zJn(){if(fFt)return NL;fFt=1,Object.defineProperty(NL,"__esModule",{value:!0}),NL.decryptCrowdsaleJson=NL.isCrowdsaleJson=void 0;const t=jJn(),e=Am(),n=bg(),r=CN(),a=Oi(),o=HJn();function s(c){try{if(JSON.parse(c).encseed)return!0}catch{}return!1}NL.isCrowdsaleJson=s;function l(c,u){const d=JSON.parse(c),h=(0,o.getPassword)(u),f=(0,e.getAddress)((0,o.spelunk)(d,"ethaddr:string!")),p=(0,o.looseArrayify)((0,o.spelunk)(d,"encseed:string!"));(0,a.assertArgument)(p&&p.length%16===0,"invalid encseed","json",c);const m=(0,a.getBytes)((0,n.pbkdf2)(h,h,2e3,32,"sha256")).slice(0,16),g=p.slice(0,16),v=p.slice(16),A=new t.CBC(m,g),y=(0,t.pkcs7Strip)((0,a.getBytes)(A.decrypt(v)));let S="";for(let x=0;x<y.length;x++)S+=String.fromCharCode(y[x]);return{address:f,privateKey:(0,r.id)(S)}}return NL.decryptCrowdsaleJson=l,NL}var CJ={},pFt;function fWo(){var u,Rqe;if(pFt)return CJ;pFt=1,Object.defineProperty(CJ,"__esModule",{value:!0}),CJ.Wallet=void 0;const t=bg(),e=Oi(),n=zut(),r=UJn(),a=zJn(),o=Kut(),s=Vut();function l(f){return new Promise(p=>{setTimeout(()=>{p()},f)})}const h=class h extends n.BaseWallet{constructor(p,m){typeof p=="string"&&!p.startsWith("0x")&&(p="0x"+p);let g=typeof p=="string"?new t.SigningKey(p):p;super(g,m)}connect(p){return new h(this.signingKey,p)}async encrypt(p,m){const g={address:this.address,privateKey:this.privateKey};return await(0,o.encryptKeystoreJson)(g,p,{progressCallback:m})}encryptSync(p){const m={address:this.address,privateKey:this.privateKey};return(0,o.encryptKeystoreJsonSync)(m,p)}static async fromEncryptedJson(p,m,g){var A;let v=null;return(0,o.isKeystoreJson)(p)?v=await(0,o.decryptKeystoreJson)(p,m,g):(0,a.isCrowdsaleJson)(p)&&(g&&(g(0),await l(0)),v=(0,a.decryptCrowdsaleJson)(p,m),g&&(g(1),await l(0))),qn(A=h,u,Rqe).call(A,v)}static fromEncryptedJsonSync(p,m){var v;let g=null;return(0,o.isKeystoreJson)(p)?g=(0,o.decryptKeystoreJsonSync)(p,m):(0,a.isCrowdsaleJson)(p)?g=(0,a.decryptCrowdsaleJson)(p,m):(0,e.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),qn(v=h,u,Rqe).call(v,g)}static createRandom(p){const m=r.HDNodeWallet.createRandom();return p?m.connect(p):m}static fromPhrase(p,m){const g=r.HDNodeWallet.fromPhrase(p);return m?g.connect(m):g}};u=new WeakSet,Rqe=function(p){if((0,e.assertArgument)(p,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in p&&p.mnemonic&&p.mnemonic.locale==="en"){const g=s.Mnemonic.fromEntropy(p.mnemonic.entropy),v=r.HDNodeWallet.fromMnemonic(g,p.mnemonic.path);if(v.address===p.address&&v.privateKey===p.privateKey)return v;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const m=new h(p.privateKey);return(0,e.assertArgument)(m.address===p.address,"address/privateKey mismatch","json","[ REDACTED ]"),m},Wt(h,u);let c=h;return CJ.Wallet=c,CJ}var mFt;function pWo(){return mFt||(mFt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var e=zut();Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return e.BaseWallet}});var n=UJn();Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return n.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return n.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return n.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return n.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return n.HDNodeVoidWallet}});var r=zJn();Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return r.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return r.decryptCrowdsaleJson}});var a=Kut();Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return a.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return a.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return a.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return a.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return a.encryptKeystoreJsonSync}});var o=Vut();Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return o.Mnemonic}});var s=fWo();Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return s.Wallet}})}(K$e)),K$e}var q$e={},kJ={},RJ={},MJ={},gFt;function mWo(){if(gFt)return MJ;gFt=1,Object.defineProperty(MJ,"__esModule",{value:!0}),MJ.decodeBits=void 0;const t=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function e(n,r){const a=(1<<n)-1,o=[];let s=0,l=0,c=0;for(let u=0;u<r.length;u++)for(s=s<<6|t.indexOf(r[u]),l+=6;l>=n;){const d=s>>l-n;s&=(1<<l-n)-1,l-=n,d===0?c+=a:(o.push(d+c),c=0)}return o}return MJ.decodeBits=e,MJ}var vFt;function gWo(){if(vFt)return RJ;vFt=1,Object.defineProperty(RJ,"__esModule",{value:!0}),RJ.decodeOwlA=void 0;const t=Oi(),e=mWo(),n=DJn();function r(a,o){let s=(0,n.decodeOwl)(a).join(",");return o.split(/,/g).forEach(l=>{const c=l.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,t.assertArgument)(c!==null,"internal error parsing accents","accents",o);let u=0;const d=(0,e.decodeBits)(parseInt(c[3]),c[4]),h=parseInt(c[2]),f=new RegExp(`([${c[1]}])`,"g");s=s.replace(f,(p,m)=>(--d[u]===0&&(m=String.fromCharCode(m.charCodeAt(0),h),u++),m))}),s.split(",")}return RJ.decodeOwlA=r,RJ}var AFt;function vWo(){var r;if(AFt)return kJ;AFt=1,Object.defineProperty(kJ,"__esModule",{value:!0}),kJ.WordlistOwlA=void 0;const t=Gut(),e=gWo();class n extends t.WordlistOwl{constructor(s,l,c,u){super(s,l,u);Wt(this,r,void 0);tt(this,r,c)}get _accent(){return Le(this,r)}_decodeWords(){return(0,e.decodeOwlA)(this._data,this._accent)}}return r=new WeakMap,kJ.WordlistOwlA=n,kJ}var NJ={},yFt;function AWo(){if(yFt)return NJ;yFt=1,Object.defineProperty(NJ,"__esModule",{value:!0}),NJ.wordlists=void 0;const t=OCe();return NJ.wordlists={en:t.LangEn.wordlist()},NJ}var bFt;function yWo(){return bFt||(bFt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var e=$Jn();Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return e.Wordlist}});var n=OCe();Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return n.LangEn}});var r=Gut();Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return r.WordlistOwl}});var a=vWo();Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return a.WordlistOwlA}});var o=AWo();Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return o.wordlists}})}(q$e)),q$e}var xFt;function EFt(){return xFt||(xFt=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.EnsPlugin=t.Network=t.EnsResolver=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EtherscanPlugin=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=t.toBeArray=void 0;var e=Nut();Object.defineProperty(t,"version",{enumerable:!0,get:function(){return e.version}});var n=ele();Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return n.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return n.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return n.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return n.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return n.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return n.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return n.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return n.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return n.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return n.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return n.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return n.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return n.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return n.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return n.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return n.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return n.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return n.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return n.Typed}});var r=Am();Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return r.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return r.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return r.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return r.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return r.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return r.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return r.resolveAddress}});var a=Xse();Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return a.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return a.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return a.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return a.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return a.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return a.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return a.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return a.MessagePrefix}});var o=PCe();Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return o.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return o.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return o.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return o.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return o.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return o.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return o.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return o.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return o.UndecodedEventLog}});var s=bg();Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return s.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return s.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return s.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return s.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return s.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return s.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return s.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return s.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return s.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return s.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return s.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return s.SigningKey}});var l=CN();Object.defineProperty(t,"id",{enumerable:!0,get:function(){return l.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return l.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return l.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return l.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return l.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return l.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return l.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return l.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return l.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}});var c=Uut();Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return c.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return c.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return c.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return c.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return c.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return c.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return c.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return c.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return c.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return c.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return c.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return c.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return c.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return c.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return c.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return c.AnkrProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return c.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return c.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return c.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return c.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return c.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return c.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return c.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return c.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return c.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return c.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return c.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return c.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return c.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return c.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return c.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return c.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return c.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return c.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return c.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return c.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return c.showThrottleMessage}});var u=cb();Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return u.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return u.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return u.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return u.Transaction}});var d=Oi();Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return d.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return d.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return d.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return d.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return d.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return d.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return d.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return d.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return d.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return d.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return d.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return d.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return d.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return d.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return d.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return d.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return d.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return d.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return d.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return d.assertPrivate}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return d.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return d.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return d.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return d.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return d.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return d.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return d.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return d.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return d.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return d.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return d.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return d.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return d.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return d.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return d.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return d.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return d.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return d.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return d.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return d.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return d.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return d.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return d.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return d.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return d.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return d.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return d.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return d.uuidV4}});var h=pWo();Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return h.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return h.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return h.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return h.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return h.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return h.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return h.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return h.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return h.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return h.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return h.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return h.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return h.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return h.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return h.encryptKeystoreJsonSync}});var f=yWo();Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return f.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return f.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return f.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return f.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return f.wordlists}})}(R$e)),R$e}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;const e=aKo,n=e.__importStar(EFt());t.ethers=n,e.__exportStar(EFt(),t)})(Rut);var Qm={};const _7="/__w/dapp-ui/dapp-ui/node_modules/zkt-sdk/lib/assets/logos";var Wut={};Object.defineProperty(Wut,"__esModule",{value:!0});const bWo={matic:`${_7}/matic.svg`,usdt:`${_7}/usdt.svg`,usdc:`${_7}/usdc.svg`,link:`${_7}/link.svg`,wsteth:`${_7}/wsteth.svg`,eth:`${_7}/eth.svg`};Wut.default=bWo;var xWo=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qm,"__esModule",{value:!0});Qm.getContracts=Qm.getTokenListWithMetadata=Qm.getTokenList=Qm.tokenLogos=Qm.tokenName=Qm.zkETHContractItem=Qm.supportedChains=void 0;const JZ=xWo(Wut);Qm.supportedChains=["1","137","17000","300","324"];Qm.zkETHContractItem=["zkETH","zkETHRelayer"];Qm.tokenName=["usdt","usdc","link","wsteth"];const GJn={1:{usdt:"0xdAC17F958D2ee523a2206206994597C13D831ec7",usdc:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",link:"0x514910771af9ca656af840dff83e8264ecf986ca",wsteth:"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0"},137:{usdt:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",usdc:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",link:"0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39",wsteth:"0x03b54a6e9a984069379fae1a4fc4dbae93b3bccd"},17e3:{usdt:"0xe6b7B021d8eE68E0A514e8a1a8aEEd2D6129724c",usdc:"0xe6b7B021d8eE68E0A514e8a1a8aEEd2D6129724c",link:"0xe6b7B021d8eE68E0A514e8a1a8aEEd2D6129724c",wsteth:"0xe6b7B021d8eE68E0A514e8a1a8aEEd2D6129724c"},300:{usdt:"0x6d209e78033c4AC7fC7317ae9ff9a3a2E68B8b88",usdc:"0x6d209e78033c4AC7fC7317ae9ff9a3a2E68B8b88",link:"0x6d209e78033c4AC7fC7317ae9ff9a3a2E68B8b88",wsteth:"0x6d209e78033c4AC7fC7317ae9ff9a3a2E68B8b88"},324:{usdt:"0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",usdc:"0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4",link:"0x082faDe8b84B18C441d506e1D3a43a387Cc59D20",wsteth:"0xCafB42a2654C20cb3739F04243E925aa47302bec"}},EWo=Object.fromEntries(Object.entries(GJn).map(([t,e])=>[t,Object.entries(e).map(([n,r])=>{const a=n;return{chainId:t,name:a,address:r,logo:JZ.default[a],native:!1}})]));Qm.tokenLogos={usdt:JZ.default.usdt,usdc:JZ.default.usdc,link:JZ.default.link,wsteth:JZ.default.wsteth};const SWo={1:{zkETH:"0x13f37fD5d8D8Ce44AC282Dc3C2C65F97A7Fc9E45",zkETHRelayer:"0x62CAFd9C9Eb50FE229d4389296F5Cb812c7e2f29"},137:{zkETH:"0x29644302d6a9f8b5E63e6c816d654AEF8772c8D3",zkETHRelayer:"0xf51E036a73420A5a56C4a1197B4E3D399686fDCA"},17e3:{zkETH:"0x66E3C615407b7b1cef5eEA0B6a63E3967dAD0F12",zkETHRelayer:"0x2137f15b2D6B0eA83D46702153EF004C2fFAb2Ed"},300:{zkETH:"0xC936F75184909E90F80796797FA1541da70B2175",zkETHRelayer:"0x3857084C6518aA51653FfE2B07A237Db8BbAcaB4"},324:{zkETH:"0xF2d254A5b1904E2aa11E0637C181A0dbe3de78cE",zkETHRelayer:"0x6A283250cC1152c9b1466DDf2179A19e604fEe5E"}},wWo=t=>GJn[t];Qm.getTokenList=wWo;const _Wo=t=>EWo[t];Qm.getTokenListWithMetadata=_Wo;const TWo=t=>SWo[t];Qm.getContracts=TWo;var j5={};Object.defineProperty(j5,"__esModule",{value:!0});j5.ERC20ABI=j5.zkETHRelayerABI=j5.zkETHABI=void 0;j5.zkETHABI=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"onBehalfOf",type:"address"},{indexed:!1,internalType:"uint248",name:"amount",type:"uint248"}],name:"DepositERC20Received",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"onBehalfOf",type:"address"},{indexed:!1,internalType:"uint248",name:"amount",type:"uint248"}],name:"DepositNativeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint248",name:"amount",type:"uint248"}],name:"Withdrawal",type:"event"},{inputs:[{internalType:"address",name:"tokenAddress",type:"address"},{internalType:"address",name:"from",type:"address"},{internalType:"uint248",name:"amount",type:"uint248"},{internalType:"address",name:"onBehalfOf",type:"address"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"onBehalfOf",type:"address"}],name:"depositNative",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint248",name:"amount",type:"uint248"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];j5.zkETHRelayerABI=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"queryHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint248",name:"amount",type:"uint248"},{indexed:!0,internalType:"address",name:"source",type:"address"}],name:"NewQueryPayment",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"queryHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"source",type:"address"},{indexed:!1,internalType:"uint248",name:"amount",type:"uint248"}],name:"PaymentRefunded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"queryHash",type:"bytes32"},{indexed:!1,internalType:"uint248",name:"usedAmount",type:"uint248"},{indexed:!1,internalType:"uint248",name:"remainingAmount",type:"uint248"}],name:"PaymentSettled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"queryHash",type:"bytes32"}],name:"QueryCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"queryHash",type:"bytes32"},{indexed:!1,internalType:"uint8",name:"code",type:"uint8"},{indexed:!1,internalType:"string",name:"message",type:"string"}],name:"QueryErrorHandled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"queryHash",type:"bytes32"}],name:"QueryFulfilled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint128",name:"queryId",type:"uint128"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"string",name:"queryString",type:"string"},{indexed:!1,internalType:"uint8",name:"queryType",type:"uint8"},{indexed:!1,internalType:"bytes",name:"queryParamsblob",type:"bytes"},{indexed:!1,internalType:"uint64",name:"timeout",type:"uint64"},{indexed:!1,internalType:"address",name:"callbackClientContractAddress",type:"address"},{indexed:!1,internalType:"uint64",name:"callbackGasLimit",type:"uint64"},{indexed:!1,internalType:"bytes",name:"callbackData",type:"bytes"},{indexed:!1,internalType:"bool",name:"zkProven",type:"bool"},{indexed:!1,internalType:"bytes32",name:"queryHash",type:"bytes32"}],name:"QueryReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"relayer",type:"address"}],name:"TrustedRelayerAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"relayer",type:"address"}],name:"TrustedRelayerRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"verifier",type:"address"}],name:"VerifierAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"verifier",type:"address"}],name:"VerifierRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"ZkETHContractAddressUpdated",type:"event"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"addTrustedRelayer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"addVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"queryHash",type:"bytes32"}],name:"cancelQueryPayment",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes[]",name:"values",type:"bytes[]"}],internalType:"struct CommonStructs.Column",name:"col",type:"tuple"}],name:"encodeColumn",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"queryHash",type:"bytes32"},{internalType:"uint64",name:"executionTimestamp",type:"uint64"},{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes[]",name:"values",type:"bytes[]"}],internalType:"struct CommonStructs.Column[]",name:"columns",type:"tuple[]"}],internalType:"struct CommonStructs.QueryResult",name:"queryResult",type:"tuple"}],name:"encodeQueryResult",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint128",name:"queryId",type:"uint128"},{components:[{internalType:"string",name:"queryString",type:"string"},{internalType:"uint8",name:"queryType",type:"uint8"},{components:[{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes",name:"value",type:"bytes"}],internalType:"struct CommonStructs.QueryParameter[]",name:"queryParameters",type:"tuple[]"},{internalType:"uint64",name:"timeout",type:"uint64"},{internalType:"address",name:"callbackClientContractAddress",type:"address"},{internalType:"uint64",name:"callbackGasLimit",type:"uint64"},{internalType:"bytes",name:"callbackData",type:"bytes"},{internalType:"bool",name:"zkProven",type:"bool"}],internalType:"struct CommonStructs.QueryData",name:"queryData",type:"tuple"},{components:[{internalType:"bytes32",name:"queryHash",type:"bytes32"},{internalType:"uint64",name:"executionTimestamp",type:"uint64"},{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes[]",name:"values",type:"bytes[]"}],internalType:"struct CommonStructs.Column[]",name:"columns",type:"tuple[]"}],internalType:"struct CommonStructs.QueryResult",name:"queryResult",type:"tuple"},{internalType:"bytes",name:"verificationSignature",type:"bytes"},{internalType:"uint248",name:"costAmountInPaymentToken",type:"uint248"},{components:[{internalType:"bytes32",name:"queryHash",type:"bytes32"},{internalType:"uint8",name:"code",type:"uint8"},{internalType:"string",name:"message",type:"string"}],internalType:"struct CommonStructs.ZkETHError",name:"error",type:"tuple"}],name:"fulfillQuery",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint128",name:"queryId",type:"uint128"},{components:[{internalType:"string",name:"queryString",type:"string"},{internalType:"uint8",name:"queryType",type:"uint8"},{components:[{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes",name:"value",type:"bytes"}],internalType:"struct CommonStructs.QueryParameter[]",name:"queryParameters",type:"tuple[]"},{internalType:"uint64",name:"timeout",type:"uint64"},{internalType:"address",name:"callbackClientContractAddress",type:"address"},{internalType:"uint64",name:"callbackGasLimit",type:"uint64"},{internalType:"bytes",name:"callbackData",type:"bytes"},{internalType:"bool",name:"zkProven",type:"bool"}],internalType:"struct CommonStructs.QueryData",name:"queryData",type:"tuple"}],name:"generateQueryHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"queryHash",type:"bytes32"}],name:"getQueryPaymentByQueryHash",outputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint248",name:"amount",type:"uint248"},{internalType:"address",name:"source",type:"address"}],internalType:"struct CommonStructs.QueryPayment",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"isTrustedRelayer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"isVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"latestQueryId",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"string",name:"queryString",type:"string"},{internalType:"uint8",name:"queryType",type:"uint8"},{components:[{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes",name:"value",type:"bytes"}],internalType:"struct CommonStructs.QueryParameter[]",name:"queryParameters",type:"tuple[]"},{internalType:"uint64",name:"timeout",type:"uint64"},{internalType:"address",name:"callbackClientContractAddress",type:"address"},{internalType:"uint64",name:"callbackGasLimit",type:"uint64"},{internalType:"bytes",name:"callbackData",type:"bytes"},{internalType:"bool",name:"zkProven",type:"bool"}],internalType:"struct CommonStructs.QueryData",name:"queryData",type:"tuple"}],name:"query",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"queryIds",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"queryPayments",outputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint248",name:"amount",type:"uint248"},{internalType:"address",name:"source",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"tokenAddress",type:"address"},{internalType:"uint248",name:"amount",type:"uint248"},{components:[{internalType:"string",name:"queryString",type:"string"},{internalType:"uint8",name:"queryType",type:"uint8"},{components:[{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes",name:"value",type:"bytes"}],internalType:"struct CommonStructs.QueryParameter[]",name:"queryParameters",type:"tuple[]"},{internalType:"uint64",name:"timeout",type:"uint64"},{internalType:"address",name:"callbackClientContractAddress",type:"address"},{internalType:"uint64",name:"callbackGasLimit",type:"uint64"},{internalType:"bytes",name:"callbackData",type:"bytes"},{internalType:"bool",name:"zkProven",type:"bool"}],internalType:"struct CommonStructs.QueryData",name:"queryData",type:"tuple"}],name:"queryWithERC20",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"string",name:"queryString",type:"string"},{internalType:"uint8",name:"queryType",type:"uint8"},{components:[{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes",name:"value",type:"bytes"}],internalType:"struct CommonStructs.QueryParameter[]",name:"queryParameters",type:"tuple[]"},{internalType:"uint64",name:"timeout",type:"uint64"},{internalType:"address",name:"callbackClientContractAddress",type:"address"},{internalType:"uint64",name:"callbackGasLimit",type:"uint64"},{internalType:"bytes",name:"callbackData",type:"bytes"},{internalType:"bool",name:"zkProven",type:"bool"}],internalType:"struct CommonStructs.QueryData",name:"queryData",type:"tuple"}],name:"queryWithNative",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"removeTrustedRelayer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_zkETHAddress",type:"address"}],name:"setZkETHContractAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"trustedRelayers",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"verifiers",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"queryHash",type:"bytes32"},{internalType:"uint64",name:"executionTimestamp",type:"uint64"},{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"solidityType",type:"string"},{internalType:"bytes[]",name:"values",type:"bytes[]"}],internalType:"struct CommonStructs.Column[]",name:"columns",type:"tuple[]"}],internalType:"struct CommonStructs.QueryResult",name:"queryResult",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"zkETHContractAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}];j5.ERC20ABI=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"},{internalType:"uint8",name:"decimals_",type:"uint8"},{internalType:"address",name:"childChainManager",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"userAddress",type:"address"},{indexed:!1,internalType:"address payable",name:"relayerAddress",type:"address"},{indexed:!1,internalType:"bytes",name:"functionSignature",type:"bytes"}],name:"MetaTransactionExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"CHILD_CHAIN_ID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"CHILD_CHAIN_ID_BYTES",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DEPOSITOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"ERC712_VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"ROOT_CHAIN_ID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"ROOT_CHAIN_ID_BYTES",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"bytes",name:"depositData",type:"bytes"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"userAddress",type:"address"},{internalType:"bytes",name:"functionSignature",type:"bytes"},{internalType:"bytes32",name:"sigR",type:"bytes32"},{internalType:"bytes32",name:"sigS",type:"bytes32"},{internalType:"uint8",name:"sigV",type:"uint8"}],name:"executeMetaTransaction",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"}];var Qut={};function VJn(t,e){return function(){return t.apply(e,arguments)}}const{toString:CWo}=Object.prototype,{getPrototypeOf:qut}=Object,LCe=(t=>e=>{const n=CWo.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l_=t=>(t=t.toLowerCase(),e=>LCe(e)===t),BCe=t=>e=>typeof e===t,{isArray:OK}=Array,Jre=BCe("undefined");function kWo(t){return t!==null&&!Jre(t)&&t.constructor!==null&&!Jre(t.constructor)&&$x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const KJn=l_("ArrayBuffer");function RWo(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&KJn(t.buffer),e}const MWo=BCe("string"),$x=BCe("function"),WJn=BCe("number"),DCe=t=>t!==null&&typeof t=="object",NWo=t=>t===!0||t===!1,Lge=t=>{if(LCe(t)!=="object")return!1;const e=qut(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},IWo=l_("Date"),PWo=l_("File"),OWo=l_("Blob"),LWo=l_("FileList"),BWo=t=>DCe(t)&&$x(t.pipe),DWo=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||$x(t.append)&&((e=LCe(t))==="formdata"||e==="object"&&$x(t.toString)&&t.toString()==="[object FormData]"))},$Wo=l_("URLSearchParams"),[FWo,jWo,HWo,UWo]=["ReadableStream","Request","Response","Headers"].map(l_),zWo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rle(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),OK(t))for(r=0,a=t.length;r<a;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let l;for(r=0;r<s;r++)l=o[r],e.call(null,t[l],l,t)}}function QJn(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,a;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const qJn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:en)(),YJn=t=>!Jre(t)&&t!==qJn;function Mqe(){const{caseless:t}=YJn(this)&&this||{},e={},n=(r,a)=>{const o=t&&QJn(e,a)||a;Lge(e[o])&&Lge(r)?e[o]=Mqe(e[o],r):Lge(r)?e[o]=Mqe({},r):OK(r)?e[o]=r.slice():e[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&rle(arguments[r],n);return e}const GWo=(t,e,n,{allOwnKeys:r}={})=>(rle(e,(a,o)=>{n&&$x(a)?t[o]=VJn(a,n):t[o]=a},{allOwnKeys:r}),t),VWo=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),KWo=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},WWo=(t,e,n,r)=>{let a,o,s;const l={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),o=a.length;o-- >0;)s=a[o],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=n!==!1&&qut(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},QWo=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},qWo=t=>{if(!t)return null;if(OK(t))return t;let e=t.length;if(!WJn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},YWo=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qut(Uint8Array)),JWo=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const o=a.value;e.call(t,o[0],o[1])}},ZWo=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},XWo=l_("HTMLFormElement"),eQo=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),SFt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),tQo=l_("RegExp"),JJn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};rle(n,(a,o)=>{let s;(s=e(a,o,t))!==!1&&(r[o]=s||a)}),Object.defineProperties(t,r)},nQo=t=>{JJn(t,(e,n)=>{if($x(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if($x(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rQo=(t,e)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return OK(t)?r(t):r(String(t).split(e)),n},iQo=()=>{},aQo=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Y$e="abcdefghijklmnopqrstuvwxyz",wFt="0123456789",ZJn={DIGIT:wFt,ALPHA:Y$e,ALPHA_DIGIT:Y$e+Y$e.toUpperCase()+wFt},oQo=(t=16,e=ZJn.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function sQo(t){return!!(t&&$x(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const lQo=t=>{const e=new Array(10),n=(r,a)=>{if(DCe(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const o=OK(r)?[]:{};return rle(r,(s,l)=>{const c=n(s,a+1);!Jre(c)&&(o[l]=c)}),e[a]=void 0,o}}return r};return n(t,0)},cQo=l_("AsyncFunction"),uQo=t=>t&&(DCe(t)||$x(t))&&$x(t.then)&&$x(t.catch);var In={isArray:OK,isArrayBuffer:KJn,isBuffer:kWo,isFormData:DWo,isArrayBufferView:RWo,isString:MWo,isNumber:WJn,isBoolean:NWo,isObject:DCe,isPlainObject:Lge,isReadableStream:FWo,isRequest:jWo,isResponse:HWo,isHeaders:UWo,isUndefined:Jre,isDate:IWo,isFile:PWo,isBlob:OWo,isRegExp:tQo,isFunction:$x,isStream:BWo,isURLSearchParams:$Wo,isTypedArray:YWo,isFileList:LWo,forEach:rle,merge:Mqe,extend:GWo,trim:zWo,stripBOM:VWo,inherits:KWo,toFlatObject:WWo,kindOf:LCe,kindOfTest:l_,endsWith:QWo,toArray:qWo,forEachEntry:JWo,matchAll:ZWo,isHTMLForm:XWo,hasOwnProperty:SFt,hasOwnProp:SFt,reduceDescriptors:JJn,freezeMethods:nQo,toObjectSet:rQo,toCamelCase:eQo,noop:iQo,toFiniteNumber:aQo,findKey:QJn,global:qJn,isContextDefined:YJn,ALPHABET:ZJn,generateString:oQo,isSpecCompliantForm:sQo,toJSONObject:lQo,isAsyncFn:cQo,isThenable:uQo};function Vo(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}In.inherits(Vo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:In.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const XJn=Vo.prototype,eZn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{eZn[t]={value:t}});Object.defineProperties(Vo,eZn);Object.defineProperty(XJn,"isAxiosError",{value:!0});Vo.from=(t,e,n,r,a,o)=>{const s=Object.create(XJn);return In.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Vo.call(s,t.message,e,n,r,a),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};var dQo=null;function Nqe(t){return In.isPlainObject(t)||In.isArray(t)}function tZn(t){return In.endsWith(t,"[]")?t.slice(0,-2):t}function _Ft(t,e,n){return t?t.concat(e).map(function(a,o){return a=tZn(a),!n&&o?"["+a+"]":a}).join(n?".":""):e}function hQo(t){return In.isArray(t)&&!t.some(Nqe)}const fQo=In.toFlatObject(In,{},null,function(e){return/^is[A-Z]/.test(e)});function $Ce(t,e,n){if(!In.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=In.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!In.isUndefined(v[g])});const r=n.metaTokens,a=n.visitor||d,o=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&In.isSpecCompliantForm(e);if(!In.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(In.isDate(m))return m.toISOString();if(!c&&In.isBlob(m))throw new Vo("Blob is not supported. Use a Buffer instead.");return In.isArrayBuffer(m)||In.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,v){let A=m;if(m&&!v&&typeof m=="object"){if(In.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(In.isArray(m)&&hQo(m)||(In.isFileList(m)||In.endsWith(g,"[]"))&&(A=In.toArray(m)))return g=tZn(g),A.forEach(function(S,x){!(In.isUndefined(S)||S===null)&&e.append(s===!0?_Ft([g],x,o):s===null?g:g+"[]",u(S))}),!1}return Nqe(m)?!0:(e.append(_Ft(v,g,o),u(m)),!1)}const h=[],f=Object.assign(fQo,{defaultVisitor:d,convertValue:u,isVisitable:Nqe});function p(m,g){if(!In.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(m),In.forEach(m,function(A,y){(!(In.isUndefined(A)||A===null)&&a.call(e,A,In.isString(y)?y.trim():y,g,f))===!0&&p(A,g?g.concat(y):[y])}),h.pop()}}if(!In.isObject(t))throw new TypeError("data must be an object");return p(t),e}function TFt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Yut(t,e){this._pairs=[],t&&$Ce(t,this,e)}const nZn=Yut.prototype;nZn.append=function(e,n){this._pairs.push([e,n])};nZn.toString=function(e){const n=e?function(r){return e.call(this,r,TFt)}:TFt;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function pQo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rZn(t,e,n){if(!e)return t;const r=n&&n.encode||pQo,a=n&&n.serialize;let o;if(a?o=a(e,n):o=In.isURLSearchParams(e)?e.toString():new Yut(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class mQo{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){In.forEach(this.handlers,function(r){r!==null&&e(r)})}}var CFt=mQo,iZn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gQo=typeof URLSearchParams<"u"?URLSearchParams:Yut,vQo=typeof FormData<"u"?FormData:null,AQo=typeof Blob<"u"?Blob:null,yQo={isBrowser:!0,classes:{URLSearchParams:gQo,FormData:vQo,Blob:AQo},protocols:["http","https","file","blob","url","data"]};const Jut=typeof window<"u"&&typeof document<"u",bQo=(t=>Jut&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),xQo=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),EQo=Jut&&window.location.href||"http://localhost";var SQo=Object.freeze({__proto__:null,hasBrowserEnv:Jut,hasStandardBrowserWebWorkerEnv:xQo,hasStandardBrowserEnv:bQo,origin:EQo}),Sw={...SQo,...yQo};function wQo(t,e){return $Ce(t,new Sw.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,o){return Sw.isNode&&In.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function _Qo(t){return In.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function TQo(t){const e={},n=Object.keys(t);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],e[o]=t[o];return e}function aZn(t){function e(n,r,a,o){let s=n[o++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=o>=n.length;return s=!s&&In.isArray(a)?a.length:s,c?(In.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!l):((!a[s]||!In.isObject(a[s]))&&(a[s]=[]),e(n,r,a[s],o)&&In.isArray(a[s])&&(a[s]=TQo(a[s])),!l)}if(In.isFormData(t)&&In.isFunction(t.entries)){const n={};return In.forEachEntry(t,(r,a)=>{e(_Qo(r),a,n,0)}),n}return null}function CQo(t,e,n){if(In.isString(t))try{return(e||JSON.parse)(t),In.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Zut={transitional:iZn,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=In.isObject(e);if(o&&In.isHTMLForm(e)&&(e=new FormData(e)),In.isFormData(e))return a?JSON.stringify(aZn(e)):e;if(In.isArrayBuffer(e)||In.isBuffer(e)||In.isStream(e)||In.isFile(e)||In.isBlob(e)||In.isReadableStream(e))return e;if(In.isArrayBufferView(e))return e.buffer;if(In.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wQo(e,this.formSerializer).toString();if((l=In.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return $Ce(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),CQo(e)):e}],transformResponse:[function(e){const n=this.transitional||Zut.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(In.isResponse(e)||In.isReadableStream(e))return e;if(e&&In.isString(e)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?Vo.from(l,Vo.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sw.classes.FormData,Blob:Sw.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};In.forEach(["delete","get","head","post","put","patch"],t=>{Zut.headers[t]={}});var Xut=Zut;const kQo=In.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var RQo=t=>{const e={};let n,r,a;return t&&t.split(`
`).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||e[n]&&kQo[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};const kFt=Symbol("internals");function IJ(t){return t&&String(t).trim().toLowerCase()}function Bge(t){return t===!1||t==null?t:In.isArray(t)?t.map(Bge):String(t)}function MQo(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const NQo=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function J$e(t,e,n,r,a){if(In.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!In.isString(e)){if(In.isString(r))return e.indexOf(r)!==-1;if(In.isRegExp(r))return r.test(e)}}function IQo(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function PQo(t,e){const n=In.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(a,o,s){return this[r].call(this,e,a,o,s)},configurable:!0})})}class FCe{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function o(l,c,u){const d=IJ(c);if(!d)throw new Error("header name must be a non-empty string");const h=In.findKey(a,d);(!h||a[h]===void 0||u===!0||u===void 0&&a[h]!==!1)&&(a[h||c]=Bge(l))}const s=(l,c)=>In.forEach(l,(u,d)=>o(u,d,c));if(In.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(In.isString(e)&&(e=e.trim())&&!NQo(e))s(RQo(e),n);else if(In.isHeaders(e))for(const[l,c]of e.entries())o(c,l,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=IJ(e),e){const r=In.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return MQo(a);if(In.isFunction(n))return n.call(this,a,r);if(In.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=IJ(e),e){const r=In.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||J$e(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function o(s){if(s=IJ(s),s){const l=In.findKey(r,s);l&&(!n||J$e(r,r[l],l,n))&&(delete r[l],a=!0)}}return In.isArray(e)?e.forEach(o):o(e),a}clear(e){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!e||J$e(this,this[o],o,e,!0))&&(delete this[o],a=!0)}return a}normalize(e){const n=this,r={};return In.forEach(this,(a,o)=>{const s=In.findKey(r,o);if(s){n[s]=Bge(a),delete n[o];return}const l=e?IQo(o):String(o).trim();l!==o&&delete n[o],n[l]=Bge(a),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return In.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&In.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[kFt]=this[kFt]={accessors:{}}).accessors,a=this.prototype;function o(s){const l=IJ(s);r[l]||(PQo(a,s),r[l]=!0)}return In.isArray(e)?e.forEach(o):o(e),this}}FCe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);In.reduceDescriptors(FCe.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});In.freezeMethods(FCe);var ww=FCe;function Z$e(t,e){const n=this||Xut,r=e||n,a=ww.from(r.headers);let o=r.data;return In.forEach(t,function(l){o=l.call(n,o,a.normalize(),e?e.status:void 0)}),a.normalize(),o}function oZn(t){return!!(t&&t.__CANCEL__)}function LK(t,e,n){Vo.call(this,t??"canceled",Vo.ERR_CANCELED,e,n),this.name="CanceledError"}In.inherits(LK,Vo,{__CANCEL__:!0});function sZn(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Vo("Request failed with status code "+n.status,[Vo.ERR_BAD_REQUEST,Vo.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function OQo(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function LQo(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,o=0,s;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[o];s||(s=u),n[a]=c,r[a]=u;let h=o,f=0;for(;h!==a;)f+=n[h++],h=h%t;if(a=(a+1)%t,a===o&&(o=(o+1)%t),u-s<e)return;const p=d&&u-d;return p?Math.round(f*1e3/p):void 0}}function BQo(t,e){let n=0;const r=1e3/e;let a=null;return function(){const s=this===!0,l=Date.now();if(s||l-n>r)return a&&(clearTimeout(a),a=null),n=l,t.apply(null,arguments);a||(a=setTimeout(()=>(a=null,n=Date.now(),t.apply(null,arguments)),r-(l-n)))}}var obe=(t,e,n=3)=>{let r=0;const a=LQo(50,250);return BQo(o=>{const s=o.loaded,l=o.lengthComputable?o.total:void 0,c=s-r,u=a(c),d=s<=l;r=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:o,lengthComputable:l!=null};h[e?"download":"upload"]=!0,t(h)},n)},DQo=Sw.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(s){const l=In.isString(s)?a(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),$Qo=Sw.hasStandardBrowserEnv?{write(t,e,n,r,a,o){const s=[t+"="+encodeURIComponent(e)];In.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),In.isString(r)&&s.push("path="+r),In.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function FQo(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function jQo(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function lZn(t,e){return t&&!FQo(e)?jQo(t,e):e}const RFt=t=>t instanceof ww?{...t}:t;function p8(t,e){e=e||{};const n={};function r(u,d,h){return In.isPlainObject(u)&&In.isPlainObject(d)?In.merge.call({caseless:h},u,d):In.isPlainObject(d)?In.merge({},d):In.isArray(d)?d.slice():d}function a(u,d,h){if(In.isUndefined(d)){if(!In.isUndefined(u))return r(void 0,u,h)}else return r(u,d,h)}function o(u,d){if(!In.isUndefined(d))return r(void 0,d)}function s(u,d){if(In.isUndefined(d)){if(!In.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,h){if(h in e)return r(u,d);if(h in t)return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>a(RFt(u),RFt(d),!0)};return In.forEach(Object.keys(Object.assign({},t,e)),function(d){const h=c[d]||a,f=h(t[d],e[d],d);In.isUndefined(f)&&h!==l||(n[d]=f)}),n}var cZn=t=>{const e=p8({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:l}=e;e.headers=s=ww.from(s),e.url=rZn(lZn(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(In.isFormData(n)){if(Sw.hasStandardBrowserEnv||Sw.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Sw.hasStandardBrowserEnv&&(r&&In.isFunction(r)&&(r=r(e)),r||r!==!1&&DQo(e.url))){const u=a&&o&&$Qo.read(o);u&&s.set(a,u)}return e};const HQo=typeof XMLHttpRequest<"u";var UQo=HQo&&function(t){return new Promise(function(n,r){const a=cZn(t);let o=a.data;const s=ww.from(a.headers).normalize();let{responseType:l}=a,c;function u(){a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(a.method.toUpperCase(),a.url,!0),d.timeout=a.timeout;function h(){if(!d)return;const p=ww.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:p,config:t,request:d};sZn(function(A){n(A),u()},function(A){r(A),u()},g),d=null}"onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(r(new Vo("Request aborted",Vo.ECONNABORTED,a,d)),d=null)},d.onerror=function(){r(new Vo("Network Error",Vo.ERR_NETWORK,a,d)),d=null},d.ontimeout=function(){let m=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const g=a.transitional||iZn;a.timeoutErrorMessage&&(m=a.timeoutErrorMessage),r(new Vo(m,g.clarifyTimeoutError?Vo.ETIMEDOUT:Vo.ECONNABORTED,a,d)),d=null},o===void 0&&s.setContentType(null),"setRequestHeader"in d&&In.forEach(s.toJSON(),function(m,g){d.setRequestHeader(g,m)}),In.isUndefined(a.withCredentials)||(d.withCredentials=!!a.withCredentials),l&&l!=="json"&&(d.responseType=a.responseType),typeof a.onDownloadProgress=="function"&&d.addEventListener("progress",obe(a.onDownloadProgress,!0)),typeof a.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",obe(a.onUploadProgress)),(a.cancelToken||a.signal)&&(c=p=>{d&&(r(!p||p.type?new LK(null,t,d):p),d.abort(),d=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const f=OQo(a.url);if(f&&Sw.protocols.indexOf(f)===-1){r(new Vo("Unsupported protocol "+f+":",Vo.ERR_BAD_REQUEST,t));return}d.send(o||null)})};const zQo=(t,e)=>{let n=new AbortController,r;const a=function(c){if(!r){r=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Vo?u:new LK(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{a(new Vo(`timeout ${e} of ms exceeded`,Vo.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",a):c.unsubscribe(a))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=s,[l,()=>{o&&clearTimeout(o),o=null}]};var GQo=zQo;const VQo=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,a;for(;r<n;)a=r+e,yield t.slice(r,a),r=a},KQo=async function*(t,e,n){for await(const r of t)yield*VQo(ArrayBuffer.isView(r)?r:await n(String(r)),e)},MFt=(t,e,n,r,a)=>{const o=KQo(t,e,a);let s=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await o.next();if(c){l.close(),r();return}let d=u.byteLength;n&&n(s+=d),l.enqueue(new Uint8Array(u))},cancel(l){return r(l),o.return()}},{highWaterMark:2})},NFt=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},jCe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",uZn=jCe&&typeof ReadableStream=="function",Iqe=jCe&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),WQo=uZn&&(()=>{let t=!1;const e=new Request(Sw.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),IFt=64*1024,Pqe=uZn&&!!(()=>{try{return In.isReadableStream(new Response("").body)}catch{}})(),sbe={stream:Pqe&&(t=>t.body)};jCe&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!sbe[e]&&(sbe[e]=In.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new Vo(`Response type '${e}' is not supported`,Vo.ERR_NOT_SUPPORT,r)})})})(new Response);const QQo=async t=>{if(t==null)return 0;if(In.isBlob(t))return t.size;if(In.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(In.isArrayBufferView(t))return t.byteLength;if(In.isURLSearchParams(t)&&(t=t+""),In.isString(t))return(await Iqe(t)).byteLength},qQo=async(t,e)=>{const n=In.toFiniteNumber(t.getContentLength());return n??QQo(e)};var YQo=jCe&&(async t=>{let{url:e,method:n,data:r,signal:a,cancelToken:o,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=cZn(t);u=u?(u+"").toLowerCase():"text";let[p,m]=a||o||s?GQo([a,o],s):[],g,v;const A=()=>{!g&&setTimeout(()=>{p&&p.unsubscribe()}),g=!0};let y;try{if(c&&WQo&&n!=="get"&&n!=="head"&&(y=await qQo(d,r))!==0){let _=new Request(e,{method:"POST",body:r,duplex:"half"}),C;In.isFormData(r)&&(C=_.headers.get("content-type"))&&d.setContentType(C),_.body&&(r=MFt(_.body,IFt,NFt(y,obe(c)),null,Iqe))}In.isString(h)||(h=h?"cors":"omit"),v=new Request(e,{...f,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:h});let S=await fetch(v);const x=Pqe&&(u==="stream"||u==="response");if(Pqe&&(l||x)){const _={};["status","statusText","headers"].forEach(R=>{_[R]=S[R]});const C=In.toFiniteNumber(S.headers.get("content-length"));S=new Response(MFt(S.body,IFt,l&&NFt(C,obe(l,!0)),x&&A,Iqe),_)}u=u||"text";let w=await sbe[In.findKey(sbe,u)||"text"](S,t);return!x&&A(),m&&m(),await new Promise((_,C)=>{sZn(_,C,{data:w,headers:ww.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:v})})}catch(S){throw A(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new Vo("Network Error",Vo.ERR_NETWORK,t,v),{cause:S.cause||S}):Vo.from(S,S&&S.code,t,v)}});const Oqe={http:dQo,xhr:UQo,fetch:YQo};In.forEach(Oqe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const PFt=t=>`- ${t}`,JQo=t=>In.isFunction(t)||t===null||t===!1;var dZn={getAdapter:t=>{t=In.isArray(t)?t:[t];const{length:e}=t;let n,r;const a={};for(let o=0;o<e;o++){n=t[o];let s;if(r=n,!JQo(n)&&(r=Oqe[(s=String(n)).toLowerCase()],r===void 0))throw new Vo(`Unknown adapter '${s}'`);if(r)break;a[s||"#"+o]=r}if(!r){const o=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
`+o.map(PFt).join(`
`):" "+PFt(o[0]):"as no adapter specified";throw new Vo("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Oqe};function X$e(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new LK(null,t)}function OFt(t){return X$e(t),t.headers=ww.from(t.headers),t.data=Z$e.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),dZn.getAdapter(t.adapter||Xut.adapter)(t).then(function(r){return X$e(t),r.data=Z$e.call(t,t.transformResponse,r),r.headers=ww.from(r.headers),r},function(r){return oZn(r)||(X$e(t),r&&r.response&&(r.response.data=Z$e.call(t,t.transformResponse,r.response),r.response.headers=ww.from(r.response.headers))),Promise.reject(r)})}const hZn="1.7.2",edt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{edt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const LFt={};edt.transitional=function(e,n,r){function a(o,s){return"[Axios v"+hZn+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(e===!1)throw new Vo(a(s," has been removed"+(n?" in "+n:"")),Vo.ERR_DEPRECATED);return n&&!LFt[s]&&(LFt[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,l):!0}};function ZQo(t,e,n){if(typeof t!="object")throw new Vo("options must be an object",Vo.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const o=r[a],s=e[o];if(s){const l=t[o],c=l===void 0||s(l,o,t);if(c!==!0)throw new Vo("option "+o+" must be "+c,Vo.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Vo("Unknown option "+o,Vo.ERR_BAD_OPTION)}}var Lqe={assertOptions:ZQo,validators:edt};const NI=Lqe.validators;class lbe{constructor(e){this.defaults=e,this.interceptors={request:new CFt,response:new CFt}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=p8(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Lqe.assertOptions(r,{silentJSONParsing:NI.transitional(NI.boolean),forcedJSONParsing:NI.transitional(NI.boolean),clarifyTimeoutError:NI.transitional(NI.boolean)},!1),a!=null&&(In.isFunction(a)?n.paramsSerializer={serialize:a}:Lqe.assertOptions(a,{encode:NI.function,serialize:NI.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&In.merge(o.common,o[n.method]);o&&In.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ww.concat(s,o);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,h=0,f;if(!c){const m=[OFt.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,d=Promise.resolve(n);h<f;)d=d.then(m[h++],m[h++]);return d}f=l.length;let p=n;for(h=0;h<f;){const m=l[h++],g=l[h++];try{p=m(p)}catch(v){g.call(this,v);break}}try{d=OFt.call(this,p)}catch(m){return Promise.reject(m)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=p8(this.defaults,e);const n=lZn(e.baseURL,e.url);return rZn(n,e.params,e.paramsSerializer)}}In.forEach(["delete","get","head","options"],function(e){lbe.prototype[e]=function(n,r){return this.request(p8(r||{},{method:e,url:n,data:(r||{}).data}))}});In.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,l){return this.request(p8(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}lbe.prototype[e]=n(),lbe.prototype[e+"Form"]=n(!0)});var Dge=lbe;class tdt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(a);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,l){r.reason||(r.reason=new LK(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new tdt(function(a){e=a}),cancel:e}}}var XQo=tdt;function eqo(t){return function(n){return t.apply(null,n)}}function tqo(t){return In.isObject(t)&&t.isAxiosError===!0}const Bqe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bqe).forEach(([t,e])=>{Bqe[e]=t});var nqo=Bqe;function fZn(t){const e=new Dge(t),n=VJn(Dge.prototype.request,e);return In.extend(n,Dge.prototype,e,{allOwnKeys:!0}),In.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return fZn(p8(t,a))},n}const $f=fZn(Xut);$f.Axios=Dge;$f.CanceledError=LK;$f.CancelToken=XQo;$f.isCancel=oZn;$f.VERSION=hZn;$f.toFormData=$Ce;$f.AxiosError=Vo;$f.Cancel=$f.CanceledError;$f.all=function(e){return Promise.all(e)};$f.spread=eqo;$f.isAxiosError=tqo;$f.mergeConfig=p8;$f.AxiosHeaders=ww;$f.formToJSON=t=>aZn(In.isHTMLForm(t)?new FormData(t):t);$f.getAdapter=dZn.getAdapter;$f.HttpStatusCode=nqo;$f.default=$f;var rqo=$f,T7=en&&en.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})},iqo=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qut,"__esModule",{value:!0});const C7=iqo(rqo);class aqo{constructor(e,n){if(this.SXT_SECRETS_PROXY_URL="",this.SXT_BASE_URL="",this.gwRegister=(r,a,o)=>T7(this,void 0,void 0,function*(){const s={method:"POST",url:`${this.SXT_SECRETS_PROXY_URL}/auth/register`,headers:{accept:"application/json","Content-Type":"application/json"},data:{userId:r,password:a,joinCode:o}},l=yield C7.default.request(s);if(l.status!==200||l.data.length<=0)throw new Error(`${l.status}: ${l.data.title}. Detail: ${l.data.detail}`);return l.data}),this.gwLogin=(r,a)=>T7(this,void 0,void 0,function*(){const o={method:"POST",url:`${this.SXT_SECRETS_PROXY_URL}/auth/login`,headers:{accept:"application/json","Content-Type":"application/json"},data:{userId:r,password:a}},s=yield C7.default.request(o);if(s.status!==200||s.data.length<=0)throw new Error(`${s.status}: ${s.data.title}. Detail: ${s.data.detail}`);return s.data}),this.gwSessionRefresh=r=>T7(this,void 0,void 0,function*(){const a={method:"POST",url:`${this.SXT_SECRETS_PROXY_URL}/auth/session/refresh`,headers:{accept:"application/json",sid:r}},o=yield C7.default.request(a);if(o.status!==200||o.data.length<=0)throw new Error(`${o.status}: ${o.data.title}. Detail: ${o.data.detail}`);return o.data}),this.walletAuthCode=(r,a,o,s)=>T7(this,void 0,void 0,function*(){const l={method:"POST",url:`${this.SXT_BASE_URL}/v1/auth/wallet/code`,headers:{accept:"application/json","Content-Type":"application/json"},data:{walletAddr:r,userId:a,prefix:o,joinCode:s}},c=yield C7.default.request(l);if(c.status!==200||c.data.length<=0)throw new Error(`${c.status}: ${c.data.title}. Detail: ${c.data.detail}`);return c.data}),this.walletTokenRequest=(r,a,o,s,l)=>T7(this,void 0,void 0,function*(){const c={method:"POST",url:`${this.SXT_BASE_URL}/v1/auth/token`,headers:{accept:"application/json"},data:{userId:r,authCode:a,signature:o,key:s,scheme:l}},u=yield C7.default.request(c);if(u.status!==200||u.data.length<=0)throw new Error(`${u.status}: ${u.data.title}. Detail: ${u.data.detail}`);return u.data}),this.walletTokenRefresh=r=>T7(this,void 0,void 0,function*(){const a={method:"POST",url:`${this.SXT_BASE_URL}/v1/auth/refresh`,headers:{accept:"application/json",authorization:`Bearer ${r}`}},o=yield C7.default.request(a);if(o.status!==200||o.data.length<=0)throw new Error(`${o.status}: ${o.data.title}. Detail: ${o.data.detail}`);return o.data}),typeof e=="string"&&e!==""&&typeof n=="string"&&n!=="")this.SXT_SECRETS_PROXY_URL=n,this.SXT_BASE_URL=e;else throw new Error("Invalid baseUrl or secretsProxyUrl provided")}}Qut.default=aqo;var IL=en&&en.__awaiter||function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(d){try{u(r.next(d))}catch(h){s(h)}}function c(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})},oqo=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kut,"__esModule",{value:!0});const BFt=Rut,Rfe=Qm,DFt=j5,sqo=oqo(Qut);class lqo{constructor(e,n){this.getZkETHContract=()=>IL(this,void 0,void 0,function*(){return new BFt.ethers.Contract(this.contracts.zkETH,DFt.zkETHABI,this.signer)}),this.getTokenAddress=a=>this.tokenList[a],this.getTokenListsWithMetadata=()=>this.tokenListsWithMetadata,this.getTokenContract=a=>IL(this,void 0,void 0,function*(){const o=this.getTokenAddress(a);return new BFt.ethers.Contract(o,DFt.ERC20ABI,this.signer)}),this.depositNative=(a,o)=>IL(this,void 0,void 0,function*(){return yield(yield this.getZkETHContract()).depositNative(o,{value:a})}),this.approve=(a,o)=>IL(this,void 0,void 0,function*(){return yield(yield this.getTokenContract(a)).approve(this.contracts.zkETH,o)}),this.allowance=a=>IL(this,void 0,void 0,function*(){const o=yield this.signer.getAddress(),l=yield(yield this.getTokenContract(a)).allowance(o,this.contracts.zkETH);return BigInt(l)}),this.revokeApprove=a=>IL(this,void 0,void 0,function*(){return yield this.approve(a,BigInt(0))}),this.depositTokens=(a,o,s)=>IL(this,void 0,void 0,function*(){const l=this.getTokenAddress(a),c=yield this.getZkETHContract(),u=yield this.signer.getAddress();return yield c.depositERC20(l,u,o,s)}),this.authentication=(a,o)=>new sqo.default(a,o);const r=n.toString();if(!e)throw new Error("missing signer");if(!Rfe.supportedChains.includes(r))throw new Error(`not supported chain with id=${r}`);this.signer=e,this.chainId=r,this.tokenList=(0,Rfe.getTokenList)(this.chainId),this.tokenListsWithMetadata=(0,Rfe.getTokenListWithMetadata)(this.chainId),this.contracts=(0,Rfe.getContracts)(this.chainId)}}kut.default=lqo;(function(t){var e=en&&en.__createBinding||(Object.create?function(s,l,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(l,c);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(s,u,d)}:function(s,l,c,u){u===void 0&&(u=c),s[u]=l[c]}),n=en&&en.__exportStar||function(s,l){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(l,c)&&e(l,s,c)},r=en&&en.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=t.ZkEth=void 0;const a=r(kut);t.ZkEth=a.default;const o=Rut;Object.defineProperty(t,"ethers",{enumerable:!0,get:function(){return o.ethers}}),n(Qm,t)})(BVo);const cqo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAABB553+AAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAADbUlEQVQ4EaVU22tcRRyeOfez2cZcVUqs9CGpug8GEhCNgfVNQoS+NIS+BBV3U2lzwSABCZ3msjZRou5CY7YYaMGHrIJgmgQEyULrHyCEWLBiTYxp4mbPZi859x1nzvYcN9ni9fdwzne++b7f/OY3MweAvw9YJinHZfQ/hNHoikilV95fHB569/oQxZcuRR2O4n8V8/PzPDVc+/x2beSjrwrhgVg+eBbVUC4UKo1RfDyY40TpG3tLK6Qz07Lk8zEMX3X68erpMr2nKePAIxNGo6tCOBw2r36y9DJkmLd0XcWmYWCCQ29ejHXE42GTLF0oT+TiioQIYWZgoEunAgbiGVGUAcbYgBAbPC8CbNszdCwWG9ARQhX+CgKApMNNx5b6fb4TL2pqwWRZViDVCYaumqLoe+mN8Gw/TUqiwn+EoDMi9IoViSQaIcYRyzYAwzBAPVSBpuoOLtomABBOnXs90kj01vEqudJE3pNOUJRr/JOiVFX7+94DVVGyckbJ4d0He0CSRN7v96uP1dbVkaoniLY/mXSqLLoZvJ2iR4E2e2Lmyy5ekJd/3dq08jmVtA/zVLSzswdM0yR9ZUxJFmFD4xNc0TK6bi6MrIZCIeKNk9LLeqAotc4s6VQmtf79+h3ThJwkyTzHsTpZog0hsFmG0XlR4m0bcvd/vn8nm1P2aRJFUbwKvR4GAhuYDp5uPvlbW9vzg+n9VK+mqTt+fw25GZjFGLCSXC1ahraTzWZ6W1qeGnyyqWmbegKBgOOl2EuILl92yPT2VtosGmMdne1nGIFvT6V2p1iWBxzHASWzPynz/vbnAs+csSwwtl3YVWgShEpeir0elgbWOLrL5ECfEnj+F9u2fiQbEfr2m+8Os9kD0PJsi8/U9TjDcM26mX/6Znx0MxhEXDKJLOqncSQhJVAiIaCeHmPm46+7a+obljT1EBiGduPuDz8Bchz7BEEGhwWl+7O54eVzKCF8gXoM6nODdYH7XkskihAGufdGX73bGXytXvJVvWBZdutBJt8KAQtUPRddmBuOBhHiVtDbpLIrrtV5ez10WUjumIvvSbvvFPIHG2TpwLZMoGm5Dc6SR+h40BH9qXU+/+rh/gtnP11u/yB2C18YvIbP933YRj3/+Z/oJh2/ujhxcWRu/H8le1h9xaYR/lHcQzkAfwC6ZmT44FtO/AAAAABJRU5ErkJggg==",uqo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAEgAAAADOp2heAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAAD7ElEQVQ4EYVUb2hbVRS/576X5L3VtFtXZ/fSTRZwOvfBPx0M90GiLUl0C+IgAT/4aTIRXNFh+0FNe5u0QrGK1CFsoB/UT60w5gSbdMyA4B9swT9TxpT5p8lLZ2vXpkubl5d3r+e+18AQ2W7Iu/fce87vnPM7517CmKAsIlSyOTJxsy8TK81m46X+5h6LfKFKvaZ8qxmah9lo8XEBMN6q7XyIAhDOOVm1ypcI0FeGpo2c1HOdM+BNm/+bYeTIfIjb9G1NbU1p6h1kpWZ+jV7OCUKeadOMB2qNNWLZa2e5IvrY513F24FSbitfYlQpq1H5Z6VWemEwFzqUzoXG+CPGw6u18msIttGmG09TDp96UQKfTArldPesL5mcVP4bJYzErwkuGnXOxUE20/U9I4ySZFJlU/vrUnk4XuxRiHqBC2eRW74wK9xZJQQwAW+4/EcIZ5tUbBIN14ltXxZEuJxKsGYRRM2eU6lG8OwaK+y4IcFGouajWLh3WbR0iBWgIcFOdwsfQftmhEuc8HtZbteyBAU0as6s19ytUP5sOt81+kZPcbvjo2Mq1Y8FA1tJpbZEGsI6w7maZvnOv2XMGOFm9NZvFbkxHCm4vKSSU1RyxS4Yf0mwTHS+r6HC7+36zmO2s359ed38rMFtu10PHVeAX8nGzZelPYxKDgn+OH9uKB96X27K8J+fA1uus/H5o4LAm9u0ULhaXyV1p/oB506azew2s73mPqGKMT9tSWhqkFSshXOQiRXPBwOdR+rOOrGcyiec2P1ses8f7MniXtog4y2BjoQCPlQuf8sFnGT50FfS0XGs8pm5A57TaOmET90ygRiLbhGQ4BdRZ7h9i9GOqVQJkIvIRAxlP8oLyOfAUK7royaQkeh2vELMYiYHbBYxO5QAWRSEm26VsfdOYdL3oPEphfpbtutGAgj1L2+Y49yq75FgmXjx5Ks9V++SUTHmEV9GYOlE8dOgVwmg7h2W4csK49mJTLz84dJ6+SkBziSb3vWjNMjEzF9AwD6/A+9JGQFBgt7/M+aCA1Gr1PUhvEfB9SobOjJEB6fhO9SRf3ewhNlB6uJuFBxV1x/E+RuZLksKf2oK3OYHxTnoA51g9T0Pnqn3ldep92qYbgt3czRwZD9mY+blVq1zb6W2sIYhjTrWlbdY4bHGxBO/BlYc/XUA6A9qnQG8qpfckG8GvHndfAhY759hqigTmtp2OIAPyOpG+ScC/Dx23dGtunHfhl3BB+TGWc7hpVsCSvAmqFwPx4qHsVhjwcCO/QpViMMdsmYt/ACcDqRnjLzUuS2gVJKgsgCSAiljmw3glMJb9vFgrusduScfYRKJ8H8B87ft0shwKqIAAAAASUVORK5CYII=",pZn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAJZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAARAAAAWodpAAQAAAABAAAAbAAAAAAAAABgAAAAAQAAAGAAAAABd3d3Lmlua3NjYXBlLm9yZwAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAArYH0OAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAi1pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+d3d3Lmlua3NjYXBlLm9yZzwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj45NjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+OTY8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgryNKKqAAAD+UlEQVQ4EVVVXWgcVRT+zuzMJpq6k7S0JIg/ENqmmhD/0JcKRRBEW7TQFgSlYFGpfbGU0pZCDIJ/1IoPIuRB+iIoES1SUV80tvigtg8WMZWUVEkpCbGazCaT3Zk7M9fv3Nk17VnuzL3nfue7Z84956zgRrFWuPQgkjv19aUtyGw/xIZubSWCNVfQt26yXNsK3wXx1q358NsTjHOzJMpx7d8d8LytMBkNCC6kgqIQHpVDKtswu5hz/SPxZ5y92u4pnVCP4MhUYa2Pq9HbqCCDsSmd7YKgznEdkhNbWUfKGoljVGwHjPi4q3aExFmbQ0gizmUlu7w4RvAk6e5EIJdQCb7E3V2z7tD246+4D7l5hmQD8O1VFPYebOx+yZGSS9rM+G3xXcDOwsomdNgPsbnnYpuDe5+4+VD3s//rphbuQ1NeofdTJOvDYHhIuTz37b8wZoZ+JfQsa5H9Pr/GGZ9ffBwprrihcxXd29TzK3JiE7kDic2gHAyb5wCGF9BkzBL7Bx6gZxN/duLeDctuL8U+ZN57buhcRfcUcz9JDW0SSaAcFA9nmRpN3lLKC0irp1WJv1cK955Y2EvPL+KR2j9u6HyivvcmTNM/Te9py6skl0+yfpcapqjjiXCOl6R5mOLryx1I5Sk0TemVskTmA3QGH3HvUzy5MWlh5/BtFDH+NWZYv0fCkMH1GD8qKT+g6t5m/Wto2G/w9Polt9aHzlWneyptrNomniiXT1dJ7rbLxzZqxm0VJqrDekMYj55Hw3zvNquVxxirIXoy7zCKVUnKCIF++QwoPcuVsiwvkQIfR8M8ZBd1Z3naVvjBw1phyCVgLsTU74LUv4OE5zkHaUOmG0swjzw0ZJqfy1O8EKfmex3gOQINPkdqH+Qt/sTPDIgLeHE/O11afAHFqJxa7nW2hvNGMO3hxdsuMYY5mkWM2N/pQCfmuvBC91uMyTnEsoLa0kHUwoOIixViz2Hf2jehGJU43UmHltFkUZKrzMOEhZ5KlWMAJxeGcbg3xqjtxIGeEcJ2Y6Y2iJn6oJsfCEfcnmJOLg+zBDczf5kR5KCslt47LL2Cpeex9BJWwEir9EaZRrfUv1IwGrXtGGWsVF7nwZ2ynzZTpOnD0e7DWnqrzWGUzcGLxphbk0xRliCbg6mewRu3XsPYhcCRvPyQwfGV2xGkO9htBujxDB3YgiLcz4MybTRl+9rNSvmMcVTSjO0r489nKQqrx2KJY57G2j038NbXMPFjXlYHD64gCI85shZHSajHt0l1fqy+nTF5lJ9DEzZY0QZLvbVlJ3eNljE7sbYMxQ22q4RKpL1xD+tbvVV5lXVuWZpF6y/AY86KTON9ZoaKEo3f/BfwHyOc8dzFB/BFAAAAAElFTkSuQmCC",cbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAAQeed/gAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KGV7hBwAAArRJREFUOBHVU89PE1EQfr92Wyh4a4L/AelRPRi81JMnaihpozF6MFETj4AlEUNWFBtwFxOMEWqMBuVgG6vClcSLNy4euHrxoIkYOdjWsrtvx5ltF0jFwFEnebvz43vffG/2LWP/pVkWiIOEW5Z1IAY5gB+GLGrWJuVR3PGGnYJtw/GO4h/hYHbx2J7kzt62bFLGJAHsOV1kHBfa/DzEULFqrxCby5VDnABeHBx+EuLSaYtyEWl4TEUEjqNHnj0HsG3/JcWdRuOIZpfJlirnLlYhM1waIVw6/Z44OHZn0rK4bz/QhXhMzGxtUZqfRNJH2NPE5WKmjwWwUaux6dXVL4BxgJim59aZknEnk11UK9XTs6hUhTJtWxe6E2Km0dAawUwqKQ3sx7Ga6GHs+6a/Hmh9oVCIfwrJ8IEk61KaJ7T2XMNMmJ5bG1+pXpvltu3diXepW81mSIZzIhrwhJAGkUMQ3BgdlTb5ZGdzCynQ4jWS9WvtkgCabWAYXdLzft1VTIhe0fo0ARZwuKANQxqep78ygPzYmPEB86FlhkqX8bALQigj0K6HSWoajoBzIQHgSOvIc3o60S1u1ut6WykZ8/1gQ/s/BsbHkz/LZZBLlaU+obefJhLJM67XQNWaBYFPC0VAYJq9Cud57131ygR+NRBjI3KiVven43EZUzg7YPCRyLBmrq2VhNTN66SmXt9c9t3GK99vLgfgf+YoyzB7lOvWikQWXimUyUkFnQnnORleG8cvU9y6Jvv/hpmhxRfnL72FwaHSJGFb9xO4wi7ICQGR5vN86r7jJzmwfgKlUoxjDgcPPJ2+HTZNJlOiUsm7XIijjdq3h6tvrk4RWaWSw+PjzshIaeQ7jjcQ+X97Z7KPT+3Wdvfu5kIPSO4OcUdxb9jGEPYQeJrd3t37+dEvuF/t3879BjeuQXwJP6tHAAAAAElFTkSuQmCC",dqo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAABB553+AAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAADwUlEQVQ4EYVVTWyUVRQ9773vZ+ab1pEhU1qFWUijYDUBQsAl28aIbEoxrmRFYnBlt4R0y0Kie3Wn0MRUEzdGXBCDIULUkJIoRGunWJgmQxjaYb6/97zntYALYl/m+3vv3vPOufe+OwpPhlNTF6Hnjqty6qyLnrOdaevUMaUwAbiW1grWYsk5LGjl5nt65MLcWZVNXXRm7jgsoByhFG/OOSXDv753pjMtb+eiSn0XJ2yZoiwyZIVDUomhjFwynw4etAVh5rPZkQvyqQQDguFkjRdN4E6e6XwcJ43TRbZOkNxPOqeDAHrkeY2/71lbiZQVpjBBFAZRDWm/+8mnsyMfEFQgoCnzMVh1qHk6Xe/mZZ6WDi6MAhcu3bdm8nCsTkwOqax0RuSEStZoQ1v6kAgxiOWpUWYlaXxJA9knJDOu5CUQBcBHM9uxer/Et5fX8eNvGYarCqWwJCMRmMe1Rjjod09QvmYCxPccZRLHm4ldaABhh5NHa6glGmt9iz0vRdg9ZtBPRZqn4m+avsQglmY2mQAfMwWBETBh1ek5vHkgxOF9Cack4GStcPC12H/7lPoFGPoSg1iapeEt/nOThCETudOTwx6ISywbgow2Axx4OcSDvoPxep46Eks2VRNlkcqs03RgzG53LE69VcXOsdBL/XM5x/WFFCudAoPMYf+rMca2aaQ5S4WAThND3icC52zLlhlntZHFh48c3hgPcGh/gt8XM7TvFp5db91icaXE0kqB3a0Q+14Jcenn1BMQIpoYUost4fN0kCGDzefXl9bQeiH0CbFSRJRXlfBx7eqNlM6oVRQKCc0GSz6Vo+QlbSKi+kKQby9rVCT9cjPFX+0coVQer6IA/lktUa8pjDYMBiJZb8TRbmK0Nc+mCZg5ZZmMimDfusttgfffqYMFd/naI9y5V6Dbszi4N8Kh12MPrGjkh7LEENYLkjw3vznrH5SwU9jNftHH4nKGd9+u49iRBDsaGkePVLFnPMJPvw6wIjUayxEgicdDwjWvWIzDdvW27LCLx0k2NYwJDSnp/IcNNBuBT1CnW+LmrRTfX8uwbWjztDiUJoylFtP2Q90c12xB4jvDgy7Dx9HKBE/KQNrD51/1PAFusiwZv3Ij8zHcOHp+ydKXGMSS5uAMzyC7RnW4GcpKLp2tzCQBO+oa31zP8cOVNc/4u6sDyfZm5MSGtvShLzGIRXFyyU9e/q99vbjd4I87pU1iaV8SZxM+u31tID2jwcZyNkXGkwbLeA4l0lz1lg3Wx4EEt/gLEHCrtvwL+BcKuBKMH3n2/AAAAABJRU5ErkJggg==",hqo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAAQeed/gAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KGV7hBwAABKpJREFUOBFtVFtsVFUUXec+ZuZOp8y0tW8qKjXFUjTxozEmJBgsQgRBkik1MaIf6o+0hseflGoxjZEIDsZEjf5pmtYHraKxmDRBA8GIUQv+VBBsC01pp9OZTmfu49zj3rdU/fBmzp372Gfttfdedwn8cygxkITWPihkatt4OCutDihtJyA2KKg1HEb/1wXEb0qJIb+spr9nUDgDSaW3D8KnOMUx4nagCC7o4Wtbpjpo05uWkVitlA/Pt2k5HAZDC9EKQwgNBTczQcAHu7+rHaBUARrtU4TDiw+herfcTEWNxD5H5QHTdZWC8F2lKQ/acmpmEixF4GZIL8GSO//24TN1L6/gaFxmAPbozVQsVLnPMTKuvejIW8PSnP1SGl5eaXo0yMgnioVBy5S+KwnMjYWrunrbbpxgDMYK2L26eWpPLFLeX6CA9IhvVO3SxBOvxKF8heGjWcwO+yh7TKN7xvz34PKoCM8yE2bByyQPj9R+KnqSl0P6QtkfVEKDk3fkxs6ovmn3KkiP6Oi0mXaNDi7g+9QSjJiAZhIKASt3+R29lroW1qnX1yfSN+41tHRZeyyeaJj6PO0+NRo3H9wUw9j5PIaOZBFaJfBkdxyb9yQQjWsYfj4Hs4Yg6BetE/AKAUUGcy0zvmZ1GZLc7F2K+kyEROVqAzNTDk48nA66VZhVOP7AHAp5H/EKHdcmJZqTIdQ+ZGB6SBIahTFjqlvxibAMStYil2WhcZmurVBOvQ/HBaSlUL9Vx1fvzWNhWuLoWCXWtlhBE3/ckcM3vTnYt4BIrdBuS6vFIIYNUjmcTOg0v8Qd/AhIX5Dwc1TaOoH6JhPJ/RUoLvk4/eE8qu8y0NpWiubWKAbeSOPaiCusatKqjwaWABSxt+4RuHyugK3PRHAkW4PT72cQsgS2PZdA2NJw/ussvu1dxNJPCo6n8POBAl44VoWWRyIY63NQspMqokExnQm4oabYuqI621MQf150saMzjvYDFUFpV38v4MwHOUhHQacpl28nKVK/Jkc96q3kS65I6cIUDuSkQRK4ZJihJs8p+qXrhXbzBw9vpWax8Z0IfGL+RVcefeNV8Ch7T/MtNO82UZhWsH+lBDrJiPGpWPokSdT2GE/5lKDx0FKySA2uFqgkFhdeL+KXj2w03KnTJoG774vg6Y9LMX9WwiwV2Hs+gVBEw2LGB8mVMImpr4aWhZ1ZFjZ/TuQoLGeQD4A8AE4GiK8V2L4/jsYNFjJzHqIlWgB2jvo6mspLutNpsH9VzdU2aj2D6x0id4g/dALzuR8MyEqSJFyjBMiM+3j3/jQ+6ZulxlP/rto4vncanz2eUzRQP0xB5DMHX7woXPJA9jMh2WnYHBbtGZcaoK0wZXhBWmDGuUsKksSustSaVk1Ga4VvyUoza8+kus/UdTEWE2LZ0UFe2DZ1ssQsf8mWeVD5NIbgHTsML5AV+vTIp1YozTdNU5F9eemTh0fqO1dwAjDK+R+Dne6g8RyzzLL6/zVYnQyW8MlgJ8lWD3WP1PczGPeJDTbIzBfMgCl3j9T0x42ltUVv4dmimz3lKfsKbaCPUnmetK8UnYVT/G7GyDcyGO/hvSsYfwMD5jrfCTvUoAAAAABJRU5ErkJggg==",PJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAABB553+AAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAAEHUlEQVQ4EVVUPWxbVRT+7s9zbOclsVVSFbXYRSJ1qFTUqlKABSRYKhjoQM0E7daphAWGgqADVCAYoIihEgNlQXURUikMgJiKhCh/ElChlKDERoSUphA3tp/td38459pWwrGucnPfOd/5/wQ2RRyp1eSFatUePHs2amXrTzjIx4Tw++BRCmoCDe/FzxLuYtwtn//++PEUtZpCterou2cdERRJCyJcfeW9k1Un8LrK5wKITw28sUFNaAUR6XB3SbcunH9u4djpWsDxhEfeGWUASh4q5154U8TZ+ahvoFKbDl1K0uHD4igO8geYSEUmo+FanbevHT39ND0FHE5TcZozBKanxufRbKW/2j5lZdWmL8baKuRKanu3ihym4sg022/9dvTlZxgroHKaciJ/3reS9Ja3+oF4WmwfG4fxjtzybyAcsaefFhKr3RYut9d8QSiDOBe5dlJdeOqVC2LYgEUf6VLBwl5pr6nvDp3AwfIsjLOQZLxVHDnRUuGbpau477N3MBdP23UFJYytx0lpRnM3JTXAdJLUyyjiXo1AlJRb4hvAiqGDkQ6VRfk0TamJ5ZZoVHUYjWEIibco5wp49collH4p4Hp3Aw/tmsWxuUNB492vP8Xl1UVwOeqddezOFdEhGxYuh3P+sBZw9zgaDaqL/NMa/GtT7KVTT5r4x/TQpbeR8P2vfoKOM9gwKZZNFztUBkWlJGMIIfZRgcQd2jqsulTem53EBwcewfRYHutpF19u3ECz2xnhYZ0a8UXrBn3rYVeedR/FngzpOiulodmmBQhTyjMZ06g1bR+KCv7wzlkybuN+AshHGfzwxzV4UpogRy+VDmBbdhzFXBzq26RsslRX7j6LpteG07ISG+nqpqeq336Ew1M7MTOxLYDfHhexd8fuYLC4toLVThONjZv4fGUBnzRXUBqLkZfSea0UjGnosJuRrpjUuEmh1PbsFC61b8K214DW33hRKDy+/8Hg/cfrS3jt96+A/G3I0QTspwZ2aYwcbY+MtPLG/ETP7iJr8/DyXnVIoUKFnovyAHWRUx7JeDRGbwXMUd3ulFHQZVYYifD+Y6mXMjXbSRq09BHVIcwA0QH40BwM5mFkwX/pLR19p3/Zhm2ZLJiB5NVTp/rSq2flWMRR8q6F6nKjmIH6NCIpjUuPxiSlzeE3btBI2CbYEvMwnYkhn9k9506e0VMTJ0xzg1mGd0RxJEVKrUyDzLLca9GIGLBrKo9lMLKJ7K3WGdrjecbi0vFh8YFxiL5cj6BSQ96APrxcdkbyvSy1y4BYkO6cJkdmN+mL8x+wKuWwSbDvP3/Eef/GiGBp6aGHBGuIYGk8CI5C+z/BEljA8AMqIaZlJeYzpqDJbvku30mepGZ9aNN0oedcwofv/MbfJohZmK3ZhiOj2ALGf5w+Hsbg/yVEAAAAAElFTkSuQmCC",OJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAJZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAARAAAAWodpAAQAAAABAAAAbAAAAAAAAABIAAAAAQAAAEgAAAABd3d3Lmlua3NjYXBlLm9yZwAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAAnRpg8gAAAAlwSFlzAAALEwAACxMBAJqcGAAAAi1pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+d3d3Lmlua3NjYXBlLm9yZzwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgp0/eNQAAAFOUlEQVQ4EV1VW0xUVxRd9zUzzDDMAxjeKliRtxqsICrFpolpjNWWWBOfJG1j0I/WApo2GmlTbaU0NqmlJiZa22hF0mj8aFK1lWhVRIsWAwIKAjoFBhgY5j331X2H+tHeZE/uzeyz9jp7rbMPgxePqjJoAYu3GXle/TWDLmDcZGTYDWFVzVNUJGtpLINRPcN0B1TmYsTobR6sXx3CeZXDRihgGFXLYbQf1NezFIr2mlV7Z7OJYxpijZa0/pCEWFWCnkJ7IgwPP0WmgYc34HEGJOwb+GrZmeifGiECJUAtZtEJrCnBbK92+nxwjvrFirl6JqSAdUe0HMAqMKqehXJjOKzOTTEJDpMJk97ppoHGZbtfgLJEl9U+smrbv3VYE6vbxycjNiYit+3NFq7WF/OlqXq2L6wwfSGFKUszsL9/UszfrFkgcHJEvjvhjjisCbs0IlFAalm0clbtvc0JZssZDaxqnkH4dnc+E6PncKH1GY7+5kJQpn3QihgO+GhNMtauSofXL2LnsS71p+dhcVmiXTfhndky0Lj0LKMJEBc0PRmR+bQcvSxfPrCE8wVFrDnyEB0u6t1QBO1f5yMsyVi1rxfIEFCRqsOFugIIPIeKT+/LI7LA2VnR6Y3xv8RyAfMmEwkw7gqK32zL4niewYrDBOZTUJDA48eaOXi5IAGlhYlo2J4EWxyH1ikJrx3uhLaL49uzOK3fGoaBnMFaWay/7ZOwtcCIRQvtaL4yjD43MSOvfLEuFVtfz8SFa89w+69x1G1ZiM/L46Pe+HNMRPPVIRTnxmNjrpFp80vQbMYKrJqPqSDWLrKxqqrih7ZJ5Nh5wK9gaa4dT51evPVqL8p3dOPExX4Ew9RQWcX8eAGnbk1CW/PGYhurYeg45GkKJyMsYo4jhvV4I7jsEmETSCuKm8QqM82MkfEydLQUYcwTwZ5fJ1Bk5mAiga5QrscXQWZKDAPqO8MgmaUSUaVZElyhauR5+IlBUTyPyuPDOHiyG4MjfjhsBuzfkYtf3pmLzgkJFuq1xlSh1nBc1HlR57AEOwKdgDF3WIk16rDYysFHiZ3k6Ks18yHR+/I3HyK9+A4eDUyjhAQiEvBIKgptPMy0xjUVVjUMOh6jPBXohsWQ3do9rayvSOe2Lbag5ro7Wj09yYhD76UgyaKjfAa5WVZc7xgDiF3njIwvV9ogCCxudE0rhMFG1GA3k1PXXmU2xZ26O+QWhw4VCrFGHvEfdmAOVadDgobKDKxc4qCNMGi9N4q6n59Hd9BD/XMdXQJRVJD2cadYnBEvhALeKrZn3H9OCs04YdELn53rl+0WAx7szcEwLWjzSCh//xG6+qfxeMiD1bW9uBeQ0eMks9dlI9EWg4aWARkmvaCGPM4ul7eZw4PTkrH03dGFVmvlpSczktHr5ypXZ6C6PBHGmSAG9Sr+fubHrUfTcJkZ7Mw2ofmDXORmWnGs5TEO/jEtlaXaubFgsNrTtPI+p82zqT3pnbrirUl5KY7Skw8mIq5BN14ptLPrVqSiv9eNE48DuE9m37HAiKO7C0koBfWne+T91wksM1nn8ribnjaWHNGwSPv/jq+kOHv17YkZkIPFAyUWdDhDbJ9XZklUFFk5pWyeSdl3c4qEEYTlDgvGZ9zfPWks2RX1DFkw6sH/D1gbzzSo+ri0Duphmk5CHCNHJ7GbhvNokMMimwCdOOOcFNW9A40lZ6Ng/w7pWcBZeAbnZ68AVF0z5DvMm2I5dYNXVvOIXfQKILeMWni2yycqlx6SmPieroCNVKVFOw6zQ/ofvrpifinOLjMAAAAASUVORK5CYII=",e7e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAAQeed/gAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KGV7hBwAAA1dJREFUOBGVVTtPVEEUPjP3sQuLiDGx0EajyMKiCewfuPwDCwQB6Yy2BqMWvjDGAqNYGZItjIWixtpGCy6911hoWFgLLTAWJgoCLvcx43dmubCwWDjF7Nzz+ObMOec7S7TLKp5/56TiE0Pz+a7hhbeF4YU3HWfLHam83iaV8a+o//C8Gdv3vQRifWyk0pohfVuTuCjtnDFT0SppUg9VVt+af5z/TaSF5/mW7/fFKU4NcFxLz/dlqugaWrgAzLtWZt/+ZP2XhvH6hkPGyrQJyH7A8dqn6eMllptAPE/RuFCCtBYkBDtRYfhzHyJ4AKceFa1Alawh2mbLaWE1JRGCIloTwmqWkAH4vZTi0sen7T4rGMtE2DFaPmLF8p50mvpZruI/VfxYlrvXUeFSooW+gbfCVtyBTCbhUgR9Iu3mLFDY/pVSyZXyi84vNgNYiZh0Wg6dilYXQ9wipZOrGYbLLxXFV+eedX1lu/yZuWmKliek3TQAcEfFawysndyh0/CVOPcbQCgjhM8+JKRtw/C90mKs/Lx9lmVpRYNS5xd8DnafrUwppSfx9B6kJWRf5M0UpgaI5wjBF5ADg+UkqzyuIgMFB4tJMC44EiIUr/gtsIJSu48u8FwdLyKEHPsqrgfWRoR85MU51ZFbDY08KBVxa61gRo0qBsgJnzNh1tbOH77IABk9NhNW+sEJbpRtaXc5bQP7X+dd8BpFOyI0F6pGs39KzJPqtTsATX6cMOuaihXPBzYXYtOBi8IyrHW3ChvNnN8GWisK80WbwCK0QqtVJT8/VBlDNWfZebNtUO0AfY+28WptY7dw26C1XaGlAd6osnZAN3S8oVsEBvRK0n5huILGjq4Gpc3GPiwte4JkdgCUIwyLmBvDctsojFbNhDKAiaXHaGUxlk4zqAfDeC2l3iCFS/1dI/Nb1HNat6jnMPWIwJJXGtTj847hUMZwkPfB116AIg/YiDAc9rAthsMKdl0/HD7g+rFP0/kZY5AOB058/fgqDFXOYSDw+DqQrP/k3KTjy0VqJKgGobg2N90+xUDbx5eBrm31A/bk6PdcopZvou6XMarQT5p0XCWl40cZ173+4ckRkL9xwNbBbR3TqrKke7ByFH8BrwsjCzOdo5+7U6sNmwam/AWdsKOmpchhLwAAAABJRU5ErkJggg==",t7e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAAQeed/gAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KGV7hBwAAAy9JREFUOBF9lMtL1FEUx793HBsjtZTsBUIPQqh8FAlREFarICQIC8vURZD1J9Qi20W7wIIiDHRAMgqMClpELloVLXoQhUaQlaBgPip11Ll9zp0ZH2XdH+c+zuN7v/ece3/S/9ojHwvmNl+jdl8V5p0+638h/7Z1+iXBeNMXAtaPtOqpjwZds4/8K3Bxg/duNiCmFmVpDescfdWJoN+iOfusY2qyOOANLdVRl4DVYcBqNcMnJeS1G105thld99l/YIXl34CWt9Pul7p8HjwuKw8/rxH6ScR0x8LRT7spLZLPhYDmcBAm1kZ1hfDNGtZHQB4ooi7Gl4BvUp8agk8Nq/npQZlKcrDSfSfMcZx2f4RVtcb0GJBe5hNYBph/5vCfkErFfSW+L9KFms5AzDE0dqljWHUPEPyc/V8j2UgMydEUGfV6j+0xPgXhyPvctOZVffFqtfllBBnL/YwGOAjUbSU1jUTQfNMHat7skhlmmTHFMJPcuN/FUW4BslYnXRvB53F8gywDNFtLSEoB61rXp43chLg/RHpKAlgaIxLo2jVItSbcGpmew/ksRxxXnbsEr6uA93BdemE6ow6/nuyXoatmo70h1DAoUFSZSxr3+Rj3wE5IMfMkmdsJg4ewvRuCOnyxhrjkWWzh4RjRCsZ1shTVu5+6o0hUVnprXqvoi8IVlnYw70N+An4cthXo7yEx1hOMloIK7JOs7abmB1+6CKipwkA4rO0WOhUiZYgVYQBLEfnLZRxHzHMbshLPCewpviyszV2bKJWU+sPNTBKUDEFFwcsCPeAObYTNFDYbZ7TnNwrkWNoP8ztcrdW5UfonFMXaD26dHW8rwmvAz6AU2JWjs2MmGLPR9oT8WVSNklSZu5T5LXld49UmYLmc7BgrCy5CpgA0hqsZS9GPMM9jHAam27C4LVFeTvq/VmU7M693bwk4AztLhvXGrpRgTw4NdLvF0nKCxquDk30JL6aZF0NL5RBkXbQl/8EG10ptGwOjfOy5KiF4DfzWMVplcxH7lbVA4Fn4OXBUi7a28OnZm7yAq23Q5jcA18TKnuAg4/3AOqlXwHXrlBua/dOYf7r9Bn1mNb7/axBFAAAAAElFTkSuQmCC";gan({ethersConfig:Gan,chains:oze,projectId:Dan,defaultChain:oze[2],enableAnalytics:!0,themeMode:"dark",themeVariables:{"--w3m-font-family":qt.typography.fontFamily,"--w3m-color-mix":qt.custom.modalBg,"--w3m-z-index":9999999999},tokens:Van});const Mfe={Ethereum:[{image:dqo,value:"eth",chainId:"Ethereum",address:"native",native:!0},{image:PJ,value:"usdt",chainId:"Ethereum",address:"0xdac17f958d2ee523a2206206994597c13d831ec7",native:!1},{image:OJ,value:"usdc",chainId:"Ethereum",address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",native:!1}],Holesky:[{image:pZn,value:"eth",chainId:"Holesky",address:"native",native:!0},{image:PJ,value:"usdt",chainId:"Holesky",address:"0xe6b7b021d8ee68e0a514e8a1a8aeed2d6129724c",native:!1},{image:OJ,value:"usdc",chainId:"Holesky",address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",native:!1}],Polygon:[{image:hqo,value:"matic",chainId:"Polygon",address:"native",native:!0},{image:PJ,value:"usdt",chainId:"Polygon",address:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",native:!1},{image:OJ,value:"usdc",chainId:"Polygon",address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",native:!1},{image:e7e,value:"link",chainId:"Polygon",address:"0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39",native:!1},{image:t7e,value:"wsteth",chainId:"Polygon",address:"0x03b54a6e9a984069379fae1a4fc4dbae93b3bccd",native:!1}],"ZKsync Era":[{image:cbe,value:"eth",chainId:"ZKsync Era",address:"native",native:!0},{image:PJ,value:"usdt",chainId:"ZKsync Era",address:"0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",native:!1},{image:OJ,value:"usdc",chainId:"ZKsync Era",address:"0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4",native:!1},{image:e7e,value:"link",chainId:"ZKsync Era",address:"0x082faDe8b84B18C441d506e1D3a43a387Cc59D20",native:!1},{image:t7e,value:"wsteth",chainId:"ZKsync Era",address:"0xCafB42a2654C20cb3739F04243E925aa47302bec",native:!1}],"ZKsync Era Sepolia":[{image:cbe,value:"eth",chainId:"ZKsync Era Sepolia",address:"native",native:!0},{image:PJ,value:"usdt",chainId:"ZKsync Era Sepolia",address:"0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",native:!1},{image:OJ,value:"usdc",chainId:"ZKsync Era Sepolia",address:"0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4",native:!1},{image:e7e,value:"link",chainId:"ZKsync Era Sepolia",address:"0x082faDe8b84B18C441d506e1D3a43a387Cc59D20",native:!1},{image:t7e,value:"wsteth",chainId:"ZKsync Era Sepolia",address:"0xCafB42a2654C20cb3739F04243E925aa47302bec",native:!1}]},$Ft=[{image:cqo,value:"Ethereum",chainId:"Ethereum"},{image:pZn,value:"Holesky",chainId:"Holesky"},{image:uqo,value:"Polygon",chainId:"Polygon"},{image:cbe,value:"ZKsync Era",chainId:"ZKsync Era"},{image:cbe,value:"ZKsync Era Sepolia",chainId:"ZKsync Era Sepolia"}],fqo=({isZKToken:t=!1,wallets:e,onWalletConnect:n,onSavePayment:r,setZKTokenUpdateStatus:a,hoveringDisabled:o=!1,userSavedChain:s,userSavedToken:l,zkTokenLoadingStatus:c=!1,insufficentBalanceError:u=!1})=>{let d=Wce.indexOf("Ethereum")>-1?"Ethereum":Wce[0],h=Mfe[d][0];if(s&&l){const T=Wce.find(M=>M===s);if(T){const M=Mfe[T.value].find(D=>D.address===l);T&&M&&(d=T,h=M)}}const[f,p]=Y.useState(!1),[m,g]=Y.useState(!1),[v,A]=Y.useState(d),[y,S]=Y.useState(h),[x,w]=Y.useState(e[0]),_=xo(),C=()=>{n&&n()},R=T=>{w(T)},k=T=>{A(T.value),p(!1),S(Mfe[T.value][0])},P=T=>{g(!1),S(T)},N=(T,M)=>T.map(D=>E.jsx("option",{onClick:()=>M(D),value:D,children:D},D.value)),L=(T,M)=>T.map(B=>$Ft.find(H=>H.value===B)||{image:"",value:"",chainId:""}).map(B=>E.jsxs("span",{className:"dropdownListItem",onClick:()=>M(B),children:[E.jsx("img",{src:B.image,alt:"icon",className:"icon"}),B.value.toUpperCase()]},B.value)),I=(T,M)=>T.map(D=>E.jsxs("span",{className:"dropdownListItem",onClick:()=>M(D),children:[E.jsx("img",{src:D.image,alt:"icon",className:"icon"}),D.value.toUpperCase()]},D)),b=$Ft.find(T=>T.value===v);return E.jsxs(LVo,{isZkToken:t,children:[t&&E.jsx("h2",{className:"zkTokenHeader",children:q.PAYMENT_CONFIG_HEADER_FOR_ZK_TOKEN}),E.jsxs("div",{className:"dropdownWrapper",children:[E.jsxs("div",{className:"tokenDropdownWrapper",children:[E.jsx("h3",{children:q.NETWORK_SELECT}),E.jsxs(Jt,{variant:"contained",color:"primary",className:"tokenDropdownButton",disabled:o||u===!0,onClick:()=>{g(!1),p(!f)},children:[E.jsx("span",{children:E.jsx("img",{src:b&&b.image,alt:"icon",className:"icon"})})," ",v]}),E.jsx("div",{className:`dropdown-content ${f?"showDropdown":""}`,children:L(Wce,k)})]}),E.jsxs("div",{className:"tokenDropdownWrapper",children:[E.jsx("h3",{children:q.SELECT_YOUR_CURRENCY}),E.jsxs(Jt,{variant:"contained",color:"primary",className:"tokenDropdownButton",onClick:()=>{p(!1),g(!m)},disabled:o||u===!0,children:[E.jsx("span",{children:E.jsx("img",{src:y.image,alt:"icon",className:"icon"})})," ",y.value.toUpperCase()]}),E.jsx("div",{className:`dropdown-content ${m?"showDropdown":""}`,children:I(Mfe[v],P)})]})]}),E.jsx("div",{className:"dropdownWrapper walletWrapper",children:E.jsxs("div",{className:"tokenDropdownWrapper",children:[e.length>0&&E.jsx("h3",{children:q.CONNECT_WALLET}),e.length>0?E.jsx("select",{className:"connectedWallet",disabled:o||u===!0,value:x,children:N(e,R)}):E.jsx(Jt,{variant:"contained",color:"primary",size:"small",className:"emptyWallet",onClick:C,children:q.CONNECT_WALLET})]})}),E.jsxs("div",{className:"zkTokenSubmitWrapper",children:[E.jsx(Jt,{className:"savePaymentButton",variant:"contained",color:"primary",disabled:u===!0,onClick:()=>{a&&o===!0?a():o===!1&&(r(y.address,y.chainId.toUpperCase(),x),a&&a())},children:o===!0?q.EDIT_PAYMENT_CONFIGURATION:q.SAVE_PAYMENT_CONFIGURATION}),E.jsx("div",{children:c&&E.jsx("div",{children:E.jsx(tC,{})})}),E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>{_.push(tr.zkpay()),co(!1)},children:q.DEPOSIT_ZK_TOKENS})]})]})};var mZn={exports:{}},LJ={exports:{}},FFt;function pqo(){return FFt||(FFt=1,typeof self<"u"?LJ.exports=self:typeof window<"u"?LJ.exports=window:LJ.exports=Function("return this")()),LJ.exports}var n7e,jFt;function mqo(){if(jFt)return n7e;jFt=1;var t=pqo();return n7e=function(){return typeof en!="object"||!en||en.Math!==Math||en.Array!==Array?t:en},n7e}var r7e={exports:{}},HFt;function gqo(){return HFt||(HFt=1,(function(){var t,e,n;t=function(r){return t.isDOMElement(r)?r:document.querySelectorAll(r)},t.isDOMElement=function(r){return r&&r.nodeName!=null},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t.trim=function(r){return r===null?"":(r+"").replace(n,"")},e=/\r/g,t.val=function(r,a){var o;return arguments.length>1?r.value=a:(o=r.value,typeof o=="string"?o.replace(e,""):o===null?"":o)},t.preventDefault=function(r){if(typeof r.preventDefault=="function"){r.preventDefault();return}return r.returnValue=!1,!1},t.normalizeEvent=function(r){var a;return a=r,r={which:a.which!=null?a.which:void 0,target:a.target||a.srcElement,preventDefault:function(){return t.preventDefault(a)},originalEvent:a,data:a.data||a.detail},r.which==null&&(r.which=a.charCode!=null?a.charCode:a.keyCode),r},t.on=function(r,a,o){var s,l,c,u,d,h,f,p;if(r.length){for(l=0,u=r.length;l<u;l++)s=r[l],t.on(s,a,o);return}if(a.match(" ")){for(p=a.split(" "),c=0,d=p.length;c<d;c++)h=p[c],t.on(r,h,o);return}if(f=o,o=function(m){return m=t.normalizeEvent(m),f(m)},r.addEventListener)return r.addEventListener(a,o,!1);if(r.attachEvent)return a="on"+a,r.attachEvent(a,o);r["on"+a]=o},t.addClass=function(r,a){var o;return r.length?function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)o=r[s],c.push(t.addClass(o,a));return c}():r.classList?r.classList.add(a):r.className+=" "+a},t.hasClass=function(r,a){var o,s,l,c;if(r.length){for(s=!0,l=0,c=r.length;l<c;l++)o=r[l],s=s&&t.hasClass(o,a);return s}return r.classList?r.classList.contains(a):new RegExp("(^| )"+a+"( |$)","gi").test(r.className)},t.removeClass=function(r,a){var o,s,l,c,u,d;if(r.length)return function(){var h,f,p;for(p=[],h=0,f=r.length;h<f;h++)s=r[h],p.push(t.removeClass(s,a));return p}();if(r.classList){for(u=a.split(" "),d=[],l=0,c=u.length;l<c;l++)o=u[l],d.push(r.classList.remove(o));return d}else return r.className=r.className.replace(new RegExp("(^|\\b)"+a.split(" ").join("|")+"(\\b|$)","gi")," ")},t.toggleClass=function(r,a,o){var s;if(r.length)return function(){var l,c,u;for(u=[],l=0,c=r.length;l<c;l++)s=r[l],u.push(t.toggleClass(s,a,o));return u}();if(o){if(!t.hasClass(r,a))return t.addClass(r,a)}else return t.removeClass(r,a)},t.append=function(r,a){var o;return r.length?function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)o=r[s],c.push(t.append(o,a));return c}():r.insertAdjacentHTML("beforeend",a)},t.find=function(r,a){return(r instanceof NodeList||r instanceof Array)&&(r=r[0]),r.querySelectorAll(a)},t.trigger=function(r,a,o){var s;try{s=new CustomEvent(a,{detail:o})}catch{s=document.createEvent("CustomEvent"),s.initCustomEvent?s.initCustomEvent(a,!0,!0,o):s.initEvent(a,!0,!0,o)}return r.dispatchEvent(s)},r7e.exports=t}).call(en)),r7e.exports}(function(){var t,e,n,r,a,o,s,l,c,u,d,h,f,p,m,g,v,A,y,S,x,w,_,C,R,k,P=[].indexOf||function(N){for(var L=0,I=this.length;L<I;L++)if(L in this&&this[L]===N)return L;return-1};m=mqo()(),e=gqo(),s=/(\d{1,4})/g,a=[{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[4],luhn:!0},{type:"dankort",pattern:/^5019/,format:s,length:[16],cvcLength:[3],luhn:!0},{type:"dinersclub",pattern:/^(36|38|30[0-5])/,format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:s,length:[16],cvcLength:[3],luhn:!0},{type:"elo",pattern:/^401178|^401179|^431274|^438935|^451416|^457393|^457631|^457632|^504175|^627780|^636297|^636369|^636368|^(506699|5067[0-6]\d|50677[0-8])|^(50900\d|5090[1-9]\d|509[1-9]\d{2})|^65003[1-3]|^(65003[5-9]|65004\d|65005[0-1])|^(65040[5-9]|6504[1-3]\d)|^(65048[5-9]|65049\d|6505[0-2]\d|65053[0-8])|^(65054[1-9]|6505[5-8]\d|65059[0-8])|^(65070\d|65071[0-8])|^65072[0-7]|^(65090[1-9]|65091\d|650920)|^(65165[2-9]|6516[6-7]\d)|^(65500\d|65501\d)|^(65502[1-9]|6550[3-4]\d|65505[0-8])|^(65092[1-9]|65097[0-8])/,format:s,length:[16],cvcLength:[3],luhn:!0},{type:"hipercard",pattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,format:s,length:[14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"jcb",pattern:/^(308[8-9]|309[0-3]|3094[0]{4}|309[6-9]|310[0-2]|311[2-9]|3120|315[8-9]|333[7-9]|334[0-9]|35)/,format:s,length:[16,19],cvcLength:[3],luhn:!0},{type:"laser",pattern:/^(6706|6771|6709)/,format:s,length:[16,17,18,19],cvcLength:[3],luhn:!0},{type:"maestro",pattern:/^(50|5[6-9]|6007|6220|6304|6703|6708|6759|676[1-3])/,format:s,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,format:s,length:[16],cvcLength:[3],luhn:!0},{type:"mir",pattern:/^220[0-4][0-9][0-9]\d{10}$/,format:s,length:[16],cvcLength:[3],luhn:!0},{type:"troy",pattern:/^9792/,format:s,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^62/,format:s,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"visaelectron",pattern:/^4(026|17500|405|508|844|91[37])/,format:s,length:[16],cvcLength:[3],luhn:!0},{type:"visa",pattern:/^4/,format:s,length:[13,16],cvcLength:[3],luhn:!0}],n=function(N){var L,I,b,T,M;for(N=(N+"").replace(/\D/g,""),I=void 0,b=0,T=a.length;b<T;b++)L=a[b],(M=N.match(L.pattern))&&(!I||M[0].length>I[1][0].length)&&(I=[L,M]);return I&&I[0]},r=function(N){var L,I,b;for(I=0,b=a.length;I<b;I++)if(L=a[I],L.type===N)return L},v=function(N){var L,I,b,T,M,D;for(M=!0,D=0,I=(N+"").split("").reverse(),b=0,T=I.length;b<T;b++)L=I[b],L=parseInt(L,10),(M=!M)&&(L*=2),L>9&&(L-=9),D+=L;return D%10===0},g=function(N){var L;try{if(N.selectionStart!=null&&N.selectionStart!==N.selectionEnd||(typeof document<"u"&&document!==null&&(L=document.selection)!=null?L.createRange:void 0)!=null&&document.selection.createRange().text)return!0}catch{}return!1},A=function(N){return setTimeout(function(L){return function(){var I,b;return I=N.target,b=e.val(I),b=t.fns.formatCardNumber(b),o(I,b),e.trigger(I,"change")}}())},u=function(N){return function(L){var I,b,T,M,D,B,j,H,U,$,z;if(L.which>0?(b=String.fromCharCode(L.which),z=e.val(L.target)+b):(b=L.data,z=e.val(L.target)),!!/^\d+$/.test(b)){for(H=L.target,I=n(z),B=z.replace(/\D/g,"").length,$=[16],I&&($=I.length),N&&($=$.filter(function(Z){return Z<=N})),T=M=0,D=$.length;M<D;T=++M)if(U=$[T],!(B>=U&&$[T+1])&&B>=U)return;if(!g(H)&&(I&&I.type==="amex"?j=/^(\d{4}|\d{4}\s\d{6})$/:j=/(?:^|\s)(\d{4})$/,z=z.substring(0,z.length-1),j.test(z)))return L.preventDefault(),e.val(H,z+" "+b),e.trigger(H,"change")}}},l=function(N){var L,I;if(L=N.target,I=e.val(L),!N.meta&&N.which===8&&!g(L)){if(/\d\s$/.test(I))return N.preventDefault(),e.val(L,I.replace(/\d\s$/,"")),e.trigger(L,"change");if(/\s\d?$/.test(I))return N.preventDefault(),e.val(L,I.replace(/\s\d?$/,"")),e.trigger(L,"change")}},d=function(N){var L,I,b;if(I=N.target,N.which>0?(L=String.fromCharCode(N.which),b=e.val(I)+L):(L=N.data,b=e.val(I)),!!/^\d+$/.test(L)){if(/^\d$/.test(b)&&b!=="0"&&b!=="1")return N.preventDefault(),e.val(I,"0"+b+" / "),e.trigger(I,"change");if(/^\d\d$/.test(b))return N.preventDefault(),e.val(I,b+" / "),e.trigger(I,"change")}},p=function(N){var L,I,b;if(L=String.fromCharCode(N.which),!!/^\d+$/.test(L)){if(I=N.target,b=e.val(I)+L,/^\d$/.test(b)&&b!=="0"&&b!=="1")return N.preventDefault(),e.val(I,"0"+b),e.trigger(I,"change");if(/^\d\d$/.test(b))return N.preventDefault(),e.val(I,""+b),e.trigger(I,"change")}},h=function(N){var L,I,b;if(L=String.fromCharCode(N.which),!!/^\d+$/.test(L)&&(I=N.target,b=e.val(I),/^\d\d$/.test(b)))return e.val(I,b+" / "),e.trigger(I,"change")},f=function(N){var L,I,b;if(L=String.fromCharCode(N.which),L==="/"&&(I=N.target,b=e.val(I),/^\d$/.test(b)&&b!=="0"))return e.val(I,"0"+b+" / "),e.trigger(I,"change")},c=function(N){var L,I;if(!N.metaKey&&(L=N.target,I=e.val(L),N.which===8&&!g(L))){if(/\d(\s|\/)+$/.test(I))return N.preventDefault(),e.val(L,I.replace(/\d(\s|\/)*$/,"")),e.trigger(L,"change");if(/\s\/\s?\d?$/.test(I))return N.preventDefault(),e.val(L,I.replace(/\s\/\s?\d?$/,"")),e.trigger(L,"change")}},C=function(N){var L;if(N.metaKey||N.ctrlKey)return!0;if(N.which===32)return N.preventDefault();if(N.which===0||N.which<33)return!0;if(L=String.fromCharCode(N.which),!/[\d\s]/.test(L))return N.preventDefault()},S=function(N){return function(L){var I,b,T,M,D;if(M=L.target,b=String.fromCharCode(L.which),!!/^\d+$/.test(b)&&!g(M)&&(D=(e.val(M)+b).replace(/\D/g,""),I=n(D),T=16,I&&(T=I.length[I.length.length-1]),N&&(T=Math.min(T,N)),!(D.length<=T)))return L.preventDefault()}},w=function(N,L){var I,b,T;if(b=N.target,I=String.fromCharCode(N.which),!!/^\d+$/.test(I)&&!g(b)&&(T=e.val(b)+I,T=T.replace(/\D/g,""),T.length>L))return N.preventDefault()},x=function(N){return w(N,6)},_=function(N){return w(N,2)},R=function(N){return w(N,4)},y=function(N){var L,I,b;if(I=N.target,L=String.fromCharCode(N.which),!!/^\d+$/.test(L)&&!g(I)&&(b=e.val(I)+L,!(b.length<=4)))return N.preventDefault()},k=function(N){var L,I,b,T,M;if(T=N.target,M=e.val(T),b=t.fns.cardType(M)||"unknown",!e.hasClass(T,b))return L=function(){var D,B,j;for(j=[],D=0,B=a.length;D<B;D++)I=a[D],j.push(I.type);return j}(),e.removeClass(T,"unknown"),e.removeClass(T,L.join(" ")),e.addClass(T,b),e.toggleClass(T,"identified",b!=="unknown"),e.trigger(T,"payment.cardType",b)},o=function(N,L){var I;if(I=N.selectionEnd,e.val(N,L),I)return N.selectionEnd=I},t=function(){function N(){}return N.J=e,N.fns={cardExpiryVal:function(L){var I,b,T,M;return L=L.replace(/\s/g,""),T=L.split("/",2),I=T[0],M=T[1],(M!=null?M.length:void 0)===2&&/^\d+$/.test(M)&&(b=new Date().getFullYear(),b=b.toString().slice(0,2),M=b+M),I=parseInt(I,10),M=parseInt(M,10),{month:I,year:M}},validateCardNumber:function(L){var I,b;return L=(L+"").replace(/\s+|-/g,""),!/^\d+$/.test(L)||(I=n(L),!I)?!1:(b=L.length,P.call(I.length,b)>=0&&(I.luhn===!1||v(L)))},validateCardExpiry:function(L,I){var b,T,M,D,B;return typeof L=="object"&&"month"in L?(D=L,L=D.month,I=D.year):typeof L=="string"&&P.call(L,"/")>=0&&(B=N.fns.cardExpiryVal(L),L=B.month,I=B.year),!(L&&I)||(L=e.trim(L),I=e.trim(I),!/^\d+$/.test(L))||!/^\d+$/.test(I)||(L=parseInt(L,10),!(L&&L<=12))?!1:(I.length===2&&(M=new Date().getFullYear(),M=M.toString().slice(0,2),I=M+I),T=new Date(I,L),b=new Date,T.setMonth(T.getMonth()-1),T.setMonth(T.getMonth()+1,1),T>b)},validateCardCVC:function(L,I){var b,T;return L=e.trim(L),/^\d+$/.test(L)?I&&r(I)?(b=L.length,P.call((T=r(I))!=null?T.cvcLength:void 0,b)>=0):L.length>=3&&L.length<=4:!1},cardType:function(L){var I;return L&&((I=n(L))!=null?I.type:void 0)||null},formatCardNumber:function(L){var I,b,T,M;return I=n(L),I?(M=I.length[I.length.length-1],L=L.replace(/\D/g,""),L=L.slice(0,M),I.format.global?(T=L.match(I.format))!=null?T.join(" "):void 0:(b=I.format.exec(L),b==null?void 0:(b.shift(),b=b.filter(function(D){return D}),b.join(" ")))):L}},N.restrictNumeric=function(L){return e.on(L,"keypress",C),e.on(L,"input",C)},N.cardExpiryVal=function(L){return N.fns.cardExpiryVal(e.val(L))},N.formatCardCVC=function(L){return N.restrictNumeric(L),e.on(L,"keypress",y),e.on(L,"input",y),L},N.formatCardExpiry=function(L){var I,b;return N.restrictNumeric(L),L.length&&L.length===2?(I=L[0],b=L[1],this.formatCardExpiryMultiple(I,b)):(e.on(L,"keypress",x),e.on(L,"keypress",d),e.on(L,"keypress",f),e.on(L,"keypress",h),e.on(L,"keydown",c),e.on(L,"input",d)),L},N.formatCardExpiryMultiple=function(L,I){return e.on(L,"keypress",_),e.on(L,"keypress",p),e.on(L,"input",p),e.on(I,"keypress",R),e.on(I,"input",R)},N.formatCardNumber=function(L,I){return N.restrictNumeric(L),e.on(L,"keypress",S(I)),e.on(L,"keypress",u(I)),e.on(L,"keydown",l),e.on(L,"keyup blur",k),e.on(L,"blur",u(I)),e.on(L,"paste",A),e.on(L,"input",u(I)),L},N.getCardArray=function(){return a},N.setCardArray=function(L){return a=L,!0},N.addToCardArray=function(L){return a.push(L)},N.removeFromCardArray=function(L){var I,b;for(I in a)b=a[I],b.type===L&&a.splice(I,1);return!0},N}(),mZn.exports=t,m.Payment=t}).call(en);var vqo=mZn.exports;const BJ=Li(vqo);function $ge(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$ge=function(n){return typeof n}:$ge=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$ge(t)}function Aqo(t,e){return Eqo(t)||xqo(t,e)||bqo(t,e)||yqo()}function yqo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bqo(t,e){if(t){if(typeof t=="string")return UFt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UFt(t,e)}}function UFt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xqo(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],r=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(r=(l=s.next()).done)&&(n.push(l.value),!(e&&n.length===e));r=!0);}catch(c){a=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(a)throw o}}return n}}function Eqo(t){if(Array.isArray(t))return t}function Sqo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zFt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wqo(t,e,n){return e&&zFt(t.prototype,e),n&&zFt(t,n),t}function _qo(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dqe(t,e)}function Dqe(t,e){return Dqe=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},Dqe(t,e)}function Tqo(t){var e=Rqo();return function(){var r=ube(t),a;if(e){var o=ube(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return Cqo(this,a)}}function Cqo(t,e){return e&&($ge(e)==="object"||typeof e=="function")?e:kqo(t)}function kqo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rqo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ube(t){return ube=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ube(t)}function gZn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ndt=function(t){_qo(n,t);var e=Tqo(n);function n(r){var a;return Sqo(this,n),a=e.call(this,r),a.setCards(),a}return wqo(n,[{key:"componentDidUpdate",value:function(a){var o=this.props,s=o.acceptedCards,l=o.callback,c=o.number;a.number!==c&&typeof l=="function"&&l(this.options,BJ.fns.validateCardNumber(c)),a.acceptedCards.toString()!==s.toString()&&this.setCards()}},{key:"setCards",value:function(){var a=this.props.acceptedCards,o=[];a.length?BJ.getCardArray().forEach(function(s){a.indexOf(s.type)!==-1&&o.push(s)}):o=o.concat(BJ.getCardArray()),BJ.setCardArray(o)}},{key:"render",value:function(){var a=this.props,o=a.cvc,s=a.focused,l=a.locale,c=a.name,u=a.placeholders,d=this.number,h=this.expiry;return ke.createElement("div",{key:"Cards",className:"rccs"},ke.createElement("div",{className:["rccs__card","rccs__card--".concat(this.issuer),s==="cvc"&&this.issuer!=="amex"?"rccs__card--flipped":""].join(" ").trim()},ke.createElement("div",{className:"rccs__card--front"},ke.createElement("div",{className:"rccs__card__background"}),ke.createElement("div",{className:"rccs__issuer"}),ke.createElement("div",{className:["rccs__cvc__front",s==="cvc"?"rccs--focused":""].join(" ").trim()},o),ke.createElement("div",{className:["rccs__number",d.replace(/ /g,"").length>16?"rccs__number--large":"",s==="number"?"rccs--focused":"",d.substr(0,1)!=="•"?"rccs--filled":""].join(" ").trim()},d),ke.createElement("div",{className:["rccs__name",s==="name"?"rccs--focused":"",c?"rccs--filled":""].join(" ").trim()},c||u.name),ke.createElement("div",{className:["rccs__expiry",s==="expiry"?"rccs--focused":"",h.substr(0,1)!=="•"?"rccs--filled":""].join(" ").trim()},ke.createElement("div",{className:"rccs__expiry__valid"},l.valid),ke.createElement("div",{className:"rccs__expiry__value"},h)),ke.createElement("div",{className:"rccs__chip"})),ke.createElement("div",{className:"rccs__card--back"},ke.createElement("div",{className:"rccs__card__background"}),ke.createElement("div",{className:"rccs__stripe"}),ke.createElement("div",{className:"rccs__signature"}),ke.createElement("div",{className:["rccs__cvc",s==="cvc"?"rccs--focused":""].join(" ").trim()},o),ke.createElement("div",{className:"rccs__issuer"}))))}},{key:"issuer",get:function(){var a=this.props,o=a.issuer,s=a.preview;return s&&o?o.toLowerCase():this.options.issuer}},{key:"number",get:function(){var a=this.props,o=a.number,s=a.preview,l=s?19:this.options.maxLength,c=typeof o=="number"?o.toString():o.replace(/[A-Za-z]| /g,"");for(isNaN(parseInt(c,10))&&!s&&(c=""),l>16&&(l=c.length<=16?16:l),c.length>l&&(c=c.slice(0,l));c.length<l;)c+="•";if(["amex","dinersclub"].indexOf(this.issuer)!==-1){var u=[0,4,10],d=[4,6,5];c="".concat(c.substr(u[0],d[0])," ").concat(c.substr(u[1],d[1])," ").concat(c.substr(u[2],d[2]))}else if(c.length>16){var h=[0,4,8,12],f=[4,7];c="".concat(c.substr(h[0],f[0])," ").concat(c.substr(h[1],f[0])," ").concat(c.substr(h[2],f[0])," ").concat(c.substr(h[3],f[1]))}else for(var p=1;p<l/4;p++){var m=p*4+(p-1);c="".concat(c.slice(0,m)," ").concat(c.slice(m))}return c}},{key:"expiry",get:function(){var a=this.props.expiry,o=a===void 0?"":a,s=typeof o=="number"?o.toString():o,l="",c="";if(s.indexOf("/")!==-1){var u=s.split("/"),d=Aqo(u,2);l=d[0],c=d[1]}else s.length&&(l=s.substr(0,2),c=s.substr(2,6));for(;l.length<2;)l+="•";for(c.length>2&&(c=c.substr(2,4));c.length<2;)c+="•";return"".concat(l,"/").concat(c)}},{key:"options",get:function(){var a=this.props.number,o=BJ.fns.cardType(a)||"unknown",s=16;return o==="amex"?s=15:o==="dinersclub"?s=14:["hipercard","mastercard","visa"].indexOf(o)!==-1&&(s=19),{issuer:o,maxLength:s}}}]),n}(ke.Component);gZn(ndt,"propTypes",{acceptedCards:kt.array,callback:kt.func,cvc:kt.oneOfType([kt.string,kt.number]).isRequired,expiry:kt.oneOfType([kt.string,kt.number]).isRequired,focused:kt.string,issuer:kt.string,locale:kt.shape({valid:kt.string}),name:kt.string.isRequired,number:kt.oneOfType([kt.string,kt.number]).isRequired,placeholders:kt.shape({name:kt.string}),preview:kt.bool});gZn(ndt,"defaultProps",{acceptedCards:[],locale:{valid:"valid thru"},placeholders:{name:"YOUR NAME HERE"},preview:!1});const Mqo=gt.div`
  margin-top: 24px;
  .paymentForm {
    .formField {
      &:not(:last-child) {
        margin-bottom: 16px;
      }
      .fieldLabel {
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>t.theme.custom.fontSize.font14};
        margin-bottom: 8px;
      }
      .StripeElement {
        background: ${t=>t.theme.custom.inputBg};
        box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
        border-radius: 8px;
        padding: 18px 16px;
        cursor: text;
      }
    }
  }
  .addCardBtn {
    margin-top: 16px;
  }

  .addCardFooter {
    position: relative;
  }

  .skipAddCreditCard {
    position: absolute;
    right: 15px;
    &:hover {
      text-decoration: underline;
    }
  }
`,Nqo=gt.div`
  .card {
    position: relative;
    margin-bottom: 24px;
    z-index: 1;
    .cardRadio {
      position: absolute;
      height: 100%;
      width: 100%;
      z-index: 1;
      opacity: 0;
      cursor: pointer;
      &:checked ~ .checkmark {
        background: ${t=>t.theme.custom.white.A11};
        filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.4));
        svg {
          display: block;
        }
      }
    }
    .checkmark {
      position: absolute;
      left: 8px;
      top: 8px;
      border: 1px solid #e1e1e1;
      border-radius: 100px;
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1;
      cursor: pointer;
      svg {
        display: none;
      }
    }
    .trashcardBtn {
      position: absolute;
      right: 8px;
      top: 8px;
      z-index: 9;
      height: 24px;
      width: 24px;
      border: 0;
      background: ${t=>t.theme.custom.secondaryBg};
      svg {
        max-width: 14px;
      }
    }
    .rccs,
    .rccs__card {
      width: 100% !important;
    }
  }
  .tableAction {
    a {
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>t.theme.custom.fontSize.font12};
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
    }
  }
`;const vZn=()=>{const t=Y.useRef(!0),e=Moe(),{data:n,loading:r=!1,cardId:a}=e,o=fN(),{subscriptionId:s}=o,l=Y.useMemo(()=>{var d;return o&&(o!=null&&o.card_id)?o==null?void 0:o.card_id:((d=n==null?void 0:n.find(h=>(h==null?void 0:h.default_source)===!0))==null?void 0:d.card_id)||""},[n,o]);Y.useEffect(()=>()=>{t.current=!1},[]);const c=async u=>{await v0a({card_id:u},s)};return E.jsx(Nqo,{children:n==null?void 0:n.map(u=>E.jsxs("div",{className:"card",role:"presentation",children:[E.jsx("input",{type:"radio",className:"cardRadio",name:"stripeCard",onChange:()=>{o!=null&&o.subscriptionId?(o==null?void 0:o.chargeType)===zh.COMPUTE_BASED?bkt({card_id:u==null?void 0:u.card_id}):y0a({cardId:u==null?void 0:u.card_id,subscriptionId:o==null?void 0:o.subscriptionId}):bkt({card_id:u==null?void 0:u.card_id})},checked:l===(u==null?void 0:u.card_id),id:u==null?void 0:u.card_id}),E.jsx("label",{htmlFor:u==null?void 0:u.card_id,className:"checkmark",children:r&&a===(u==null?void 0:u.card_id)?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(ooe,{})}),E.jsx(_n,{className:"trashcardBtn",onClick:()=>c(u==null?void 0:u.card_id),disabled:(u==null?void 0:u.card_id)===l,tooltip:q.REMOVE_CARD_TOOLTIP_TEXT,children:r&&a===(u==null?void 0:u.card_id)?E.jsx("img",{src:ws,alt:"loading",height:36}):E.jsx(aoe,{})}),E.jsx(ndt,{cvc:"",placeholders:{name:u==null?void 0:u.customer_name},expiry:`${`${(u==null?void 0:u.exp_month)<=9?`0${u==null?void 0:u.exp_month}`:u==null?void 0:u.exp_month}/${u==null?void 0:u.exp_year}`}`,name:"",number:`**** **** **** ${u==null?void 0:u.last4}`,preview:!0,issuer:(u==null?void 0:u.brand)==="American Express"?"amex":u.brand.toLocaleLowerCase()},u==null?void 0:u.last4)]},u==null?void 0:u.card_id))})};var AZn={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(o=a(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var l in o)e.call(o,l)&&o[l]&&(s=a(s,l));return s}function a(o,s){return s?o?o+" "+s:o+s:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(AZn);var Iqo=AZn.exports;const sg=Li(Iqo);function Pqo(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$qe(t,e)}function $qe(t,e){return $qe=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},$qe(t,e)}function Oqo(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,o;for(o=0;o<r.length;o++)a=r[o],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function GFt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lqo(t,e,n){return t===e?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function Bqo(t,e,n){if(t===e)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&Lqo(t,e,n))return!0;t=t.parentNode||t.host}return t}function Dqo(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var $qo=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),e}};function Fqo(t){return t===void 0&&(t=0),function(){return++t}}var jqo=Fqo(),Fqe,Nfe={},i7e={},Hqo=["touchstart","touchmove"],Uqo="ignore-react-onclickoutside";function VFt(t,e){var n={},r=Hqo.indexOf(e)!==-1;return r&&Fqe&&(n.passive=!t.props.preventDefault),n}function HCe(t,e){var n,r,a=t.displayName||t.name||"Component";return r=n=function(o){Pqo(s,o);function s(c){var u;return u=o.call(this,c)||this,u.__outsideClickHandler=function(d){if(typeof u.__clickOutsideHandlerProp=="function"){u.__clickOutsideHandlerProp(d);return}var h=u.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(d);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(d);return}throw new Error("WrappedComponent: "+a+" lacks a handleClickOutside(event) function for processing outside click events.")},u.__getComponentNode=function(){var d=u.getInstance();return e&&typeof e.setClickOutsideRef=="function"?e.setClickOutsideRef()(d):typeof d.setClickOutsideRef=="function"?d.setClickOutsideRef():Dy.findDOMNode(d)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||i7e[u._uid])){typeof Fqe>"u"&&(Fqe=$qo()),i7e[u._uid]=!0;var d=u.props.eventTypes;d.forEach||(d=[d]),Nfe[u._uid]=function(h){if(u.componentNode!==null&&!(u.initTimeStamp>h.timeStamp)&&(u.props.preventDefault&&h.preventDefault(),u.props.stopPropagation&&h.stopPropagation(),!(u.props.excludeScrollbar&&Dqo(h)))){var f=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;Bqo(f,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(h)}},d.forEach(function(h){document.addEventListener(h,Nfe[u._uid],VFt(GFt(u),h))})}},u.disableOnClickOutside=function(){delete i7e[u._uid];var d=Nfe[u._uid];if(d&&typeof document<"u"){var h=u.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(f){return document.removeEventListener(f,d,VFt(GFt(u),f))}),delete Nfe[u._uid]}},u.getRef=function(d){return u.instanceRef=d},u._uid=jqo(),u.initTimeStamp=performance.now(),u}var l=s.prototype;return l.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var u=this.instanceRef;return u.getInstance?u.getInstance():u},l.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var u=this.getInstance();if(e&&typeof e.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=e.handleClickOutside(u),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+a+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var u=this.props;u.excludeScrollbar;var d=Oqo(u,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?d.ref=this.getRef:d.wrappedRef=this.getRef,d.disableOnClickOutside=this.disableOnClickOutside,d.enableOnClickOutside=this.enableOnClickOutside,Y.createElement(t,d)},s}(Y.Component),n.displayName="OnClickOutside("+a+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:e&&e.excludeScrollbar||!1,outsideClickIgnoreClass:Uqo,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},r}var yZn=Y.createContext(),bZn=Y.createContext();function zqo(t){var e=t.children,n=Y.useState(null),r=n[0],a=n[1],o=Y.useRef(!1);Y.useEffect(function(){return function(){o.current=!0}},[]);var s=Y.useCallback(function(l){o.current||a(l)},[]);return Y.createElement(yZn.Provider,{value:r},Y.createElement(bZn.Provider,{value:s},e))}var xZn=function(e){return Array.isArray(e)?e[0]:e},EZn=function(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return e.apply(void 0,r)}},jqe=function(e,n){if(typeof e=="function")return EZn(e,n);e!=null&&(e.current=n)},KFt=function(e){return e.reduce(function(n,r){var a=r[0],o=r[1];return n[a]=o,n},{})},WFt=typeof window<"u"&&window.document&&window.document.createElement?Y.useLayoutEffect:Y.useEffect,Gqo=typeof Element<"u",Vqo=typeof Map=="function",Kqo=typeof Set=="function",Wqo=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Fge(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,a;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!Fge(t[r],e[r]))return!1;return!0}var o;if(Vqo&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!Fge(r.value[1],e.get(r.value[0])))return!1;return!0}if(Kqo&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(Wqo&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[r]))return!1;if(Gqo&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((a[r]==="_owner"||a[r]==="__v"||a[r]==="__o")&&t.$$typeof)&&!Fge(t[a[r]],e[a[r]]))return!1;return!0}return t!==t&&e!==e}var Qqo=function(e,n){try{return Fge(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const qqo=Li(Qqo);var Yqo=[],Jqo=function(e,n,r){r===void 0&&(r={});var a=Y.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Yqo},s=Y.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=Y.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,g=Object.keys(m.elements);Dy.flushSync(function(){c({styles:KFt(g.map(function(v){return[v,m.styles[v]||{}]})),attributes:KFt(g.map(function(v){return[v,m.attributes[v]]}))})})},requires:["computeStyles"]}},[]),d=Y.useMemo(function(){var f={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return qqo(a.current,f)?a.current||f:(a.current=f,f)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),h=Y.useRef();return WFt(function(){h.current&&h.current.setOptions(d)},[d]),WFt(function(){if(!(e==null||n==null)){var f=r.createPopper||eYt,p=f(e,n,d);return h.current=p,function(){p.destroy(),h.current=null}}},[e,n,r.createPopper]),{state:h.current?h.current.state:null,styles:l.styles,attributes:l.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},Zqo=function(){},Xqo=function(){return Promise.resolve(null)},eYo=[];function tYo(t){var e=t.placement,n=e===void 0?"bottom":e,r=t.strategy,a=r===void 0?"absolute":r,o=t.modifiers,s=o===void 0?eYo:o,l=t.referenceElement,c=t.onFirstUpdate,u=t.innerRef,d=t.children,h=Y.useContext(yZn),f=Y.useState(null),p=f[0],m=f[1],g=Y.useState(null),v=g[0],A=g[1];Y.useEffect(function(){jqe(u,p)},[u,p]);var y=Y.useMemo(function(){return{placement:n,strategy:a,onFirstUpdate:c,modifiers:[].concat(s,[{name:"arrow",enabled:v!=null,options:{element:v}}])}},[n,a,c,s,v]),S=Jqo(l||h,p,y),x=S.state,w=S.styles,_=S.forceUpdate,C=S.update,R=Y.useMemo(function(){return{ref:m,style:w.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:w.arrow,ref:A},forceUpdate:_||Zqo,update:C||Xqo}},[m,A,n,x,w,C,_]);return xZn(d)(R)}var nYo=function(){},rYo=nYo;const iYo=Li(rYo);function aYo(t){var e=t.children,n=t.innerRef,r=Y.useContext(bZn),a=Y.useCallback(function(o){jqe(n,o),EZn(r,o)},[n,r]);return Y.useEffect(function(){return function(){return jqe(n,null)}},[]),Y.useEffect(function(){iYo(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),xZn(e)({ref:a})}function QFt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function dbe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?QFt(Object(n),!0).forEach(function(r){ct(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):QFt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hqe(t){return Hqe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hqe(t)}function ym(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qFt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,SZn(r.key),r)}}function bm(t,e,n){return e&&qFt(t.prototype,e),n&&qFt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ct(t,e,n){return(e=SZn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cz(){return Cz=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cz.apply(this,arguments)}function xm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uqe(t,e)}function hbe(t){return hbe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hbe(t)}function Uqe(t,e){return Uqe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Uqe(t,e)}function At(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Em(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=hbe(t);if(e){var a=hbe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(o,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return At(o)}(this,n)}}function Zre(t){return function(e){if(Array.isArray(e))return a7e(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return a7e(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a7e(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function a7e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function SZn(t){var e=function(n,r){if(typeof n!="object"||n===null)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var o=a.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(t,"string");return typeof e=="symbol"?e:String(e)}var YFt=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},JFt=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},oYo={p:JFt,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return YFt(t,e);switch(a){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",YFt(a,e)).replace("{{time}}",JFt(o,e))}},Gee=12,sYo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function mu(t){var e=t?typeof t=="string"||t instanceof String?RAi(t):Gi(t):new Date;return A3(e)?e:null}function A3(t,e){return e=e||new Date("1/1/1000"),Nne(t)&&!V3(t,e)}function dd(t,e,n){if(n==="en")return pze(t,e,{awareOfUnicodeTokens:!0});var r=U5(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&KD()&&U5(KD())&&(r=U5(KD())),pze(t,e,{locale:r||null,awareOfUnicodeTokens:!0})}function nT(t,e){var n=e.dateFormat,r=e.locale;return t&&dd(t,Array.isArray(n)?n[0]:n,r)||""}function ZFt(t,e){var n=e.hour,r=n===void 0?0:n,a=e.minute,o=a===void 0?0:a,s=e.second;return Lme(Bme(KAi(t,s===void 0?0:s),o),r)}function L2(t,e,n){var r=U5(e||KD());return don(t,{locale:r,weekStartsOn:n})}function H5(t){return fon(t)}function ZZ(t){return pon(t)}function XFt(t){return hze(t)}function ejt(){return E2(mu())}function r5(t,e){return t&&e?CAi(t,e):!t&&!e}function VS(t,e){return t&&e?_Ai(t,e):!t&&!e}function fbe(t,e){return t&&e?TAi(t,e):!t&&!e}function Bu(t,e){return t&&e?yvi(t,e):!t&&!e}function lD(t,e){return t&&e?M0i(t,e):!t&&!e}function jge(t,e,n){var r,a=E2(e),o=dze(n);try{r=Ine(t,{start:a,end:o})}catch{r=!1}return r}function KD(){return(typeof window<"u"?window:globalThis).__localeId__}function U5(t){if(typeof t=="string"){var e=typeof window<"u"?window:globalThis;return e.__localeData__?e.__localeData__[t]:null}return t}function rdt(t,e){return dd(v0(mu(),t),"LLLL",e)}function wZn(t,e){return dd(v0(mu(),t),"LLL",e)}function UCe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,a=e.excludeDates,o=e.excludeDateIntervals,s=e.includeDates,l=e.includeDateIntervals,c=e.filterDate;return zCe(t,{minDate:n,maxDate:r})||a&&a.some(function(u){return Bu(t,u)})||o&&o.some(function(u){var d=u.start,h=u.end;return Ine(t,{start:d,end:h})})||s&&!s.some(function(u){return Bu(t,u)})||l&&!l.some(function(u){var d=u.start,h=u.end;return Ine(t,{start:d,end:h})})||c&&!c(mu(t))||!1}function idt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeDates,r=e.excludeDateIntervals;return r&&r.length>0?r.some(function(a){var o=a.start,s=a.end;return Ine(t,{start:o,end:s})}):n&&n.some(function(a){return Bu(t,a)})||!1}function _Zn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,a=e.excludeDates,o=e.includeDates,s=e.filterDate;return zCe(t,{minDate:fon(n),maxDate:bvi(r)})||a&&a.some(function(l){return VS(t,l)})||o&&!o.some(function(l){return VS(t,l)})||s&&!s(mu(t))||!1}function o7e(t,e,n,r){var a=Ns(t),o=dv(t),s=Ns(e),l=dv(e),c=Ns(r);return a===s&&a===c?o<=n&&n<=l:a<s?c===a&&o<=n||c===s&&l>=n||c<s&&c>a:void 0}function lYo(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,a=e.excludeDates,o=e.includeDates,s=e.filterDate;return zCe(t,{minDate:n,maxDate:r})||a&&a.some(function(l){return fbe(t,l)})||o&&!o.some(function(l){return fbe(t,l)})||s&&!s(mu(t))||!1}function s7e(t,e,n){if(!Nne(e)||!Nne(n))return!1;var r=Ns(e),a=Ns(n);return r<=t&&a>=t}function TZn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,a=e.excludeDates,o=e.includeDates,s=e.filterDate,l=new Date(t,0,1);return zCe(l,{minDate:pon(n),maxDate:xvi(r)})||a&&a.some(function(c){return r5(l,c)})||o&&!o.some(function(c){return r5(l,c)})||s&&!s(mu(l))||!1}function l7e(t,e,n,r){var a=Ns(t),o=YF(t),s=Ns(e),l=YF(e),c=Ns(r);return a===s&&a===c?o<=n&&n<=l:a<s?c===a&&o<=n||c===s&&l>=n||c<s&&c>a:void 0}function zCe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate;return n&&wAe(t,n)<0||r&&wAe(t,r)>0}function tjt(t,e){return e.some(function(n){return S2(n)===S2(t)&&w2(n)===w2(t)})}function njt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeTimes,r=e.includeTimes,a=e.filterTime;return n&&tjt(t,n)||r&&!tjt(t,r)||a&&!a(t)||!1}function rjt(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var a,o=mu(),s=Lme(Bme(o,w2(t)),S2(t)),l=Lme(Bme(o,w2(n)),S2(n)),c=Lme(Bme(o,w2(r)),S2(r));try{a=!Ine(s,{start:l,end:c})}catch{a=!1}return a}function ijt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,a=GU(t,1);return n&&TAe(n,a)>0||r&&r.every(function(o){return TAe(o,a)>0})||!1}function ajt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,a=Ow(t,1);return n&&TAe(a,n)>0||r&&r.every(function(o){return TAe(a,o)>0})||!1}function ojt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,a=Pne(t,1);return n&&CAe(n,a)>0||r&&r.every(function(o){return CAe(o,a)>0})||!1}function sjt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,a=UU(t,1);return n&&CAe(a,n)>0||r&&r.every(function(o){return CAe(a,o)>0})||!1}function CZn(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(a){return wAe(a,e)>=0});return DEt(r)}return n?DEt(n):e}function kZn(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(a){return wAe(a,e)<=0});return BEt(r)}return n?BEt(n):e}function ljt(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,a=t.length;r<a;r++){var o=t[r];if(wwe(o)){var s=dd(o,"MM.dd.yyyy"),l=n.get(s)||[];l.includes(e)||(l.push(e),n.set(s,l))}else if(Hqe(o)==="object"){var c=Object.keys(o),u=c[0],d=o[c[0]];if(typeof u=="string"&&d.constructor===Array)for(var h=0,f=d.length;h<f;h++){var p=dd(d[h],"MM.dd.yyyy"),m=n.get(p)||[];m.includes(u)||(m.push(u),n.set(p,m))}}}return n}function cYo(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return t.forEach(function(r){var a=r.date,o=r.holidayName;if(wwe(a)){var s=dd(a,"MM.dd.yyyy"),l=n.get(s)||{};if(!("className"in l)||l.className!==e||(c=l.holidayNames,u=[o],c.length!==u.length||!c.every(function(h,f){return h===u[f]}))){var c,u;l.className=e;var d=l.holidayNames;l.holidayNames=d?[].concat(Zre(d),[o]):[o],n.set(s,l)}}}),n}function uYo(t,e,n,r,a){for(var o=a.length,s=[],l=0;l<o;l++){var c=uze(hvi(t,S2(a[l])),w2(a[l])),u=uze(t,(n+1)*r);vP(c,e)&&V3(c,u)&&s.push(a[l])}return s}function cjt(t){return t<10?"0".concat(t):"".concat(t)}function pj(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gee,n=Math.ceil(Ns(t)/e)*e;return{startPeriod:n-(e-1),endPeriod:n}}function ujt(t){var e=t.getSeconds(),n=t.getMilliseconds();return Gi(t.getTime()-1e3*e-n)}function dYo(t,e,n,r){for(var a=[],o=0;o<2*e+1;o++){var s=t+e-o,l=!0;n&&(l=Ns(n)<=s),r&&l&&(l=Ns(r)>=s),l&&a.push(s)}return a}var hYo=HCe(function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;ym(this,n),ct(At(a=e.call(this,r)),"renderOptions",function(){var c=a.props.year,u=a.state.yearsList.map(function(f){return ke.createElement("div",{className:c===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:a.onChange.bind(At(a),f),"aria-selected":c===f?"true":void 0},c===f?ke.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),d=a.props.minDate?Ns(a.props.minDate):null,h=a.props.maxDate?Ns(a.props.maxDate):null;return h&&a.state.yearsList.find(function(f){return f===h})||u.unshift(ke.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:a.incrementYears},ke.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),d&&a.state.yearsList.find(function(f){return f===d})||u.push(ke.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:a.decrementYears},ke.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),u}),ct(At(a),"onChange",function(c){a.props.onChange(c)}),ct(At(a),"handleClickOutside",function(){a.props.onCancel()}),ct(At(a),"shiftYears",function(c){var u=a.state.yearsList.map(function(d){return d+c});a.setState({yearsList:u})}),ct(At(a),"incrementYears",function(){return a.shiftYears(1)}),ct(At(a),"decrementYears",function(){return a.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,l=o||(s?10:5);return a.state={yearsList:dYo(a.props.year,l,a.props.minDate,a.props.maxDate)},a.dropdownRef=Y.createRef(),a}return bm(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var a=r.children?Array.from(r.children):null,o=a?a.find(function(s){return s.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=sg({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ke.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),fYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"state",{dropdownVisible:!1}),ct(At(r),"renderSelectOptions",function(){for(var l=r.props.minDate?Ns(r.props.minDate):1900,c=r.props.maxDate?Ns(r.props.maxDate):2100,u=[],d=l;d<=c;d++)u.push(ke.createElement("option",{key:d,value:d},d));return u}),ct(At(r),"onSelectChange",function(l){r.onChange(l.target.value)}),ct(At(r),"renderSelectMode",function(){return ke.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ct(At(r),"renderReadView",function(l){return ke.createElement("div",{key:"read",style:{visibility:l?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(c){return r.toggleDropdown(c)}},ke.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),ke.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),ct(At(r),"renderDropdown",function(){return ke.createElement(hYo,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),ct(At(r),"renderScrollMode",function(){var l=r.state.dropdownVisible,c=[r.renderReadView(!l)];return l&&c.unshift(r.renderDropdown()),c}),ct(At(r),"onChange",function(l){r.toggleDropdown(),l!==r.props.year&&r.props.onChange(l)}),ct(At(r),"toggleDropdown",function(l){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,l)})}),ct(At(r),"handleYearChange",function(l,c){r.onSelect(l,c),r.setOpen()}),ct(At(r),"onSelect",function(l,c){r.props.onSelect&&r.props.onSelect(l,c)}),ct(At(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return bm(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return ke.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),pYo=HCe(function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"isSelectedMonth",function(l){return r.props.month===l}),ct(At(r),"renderOptions",function(){return r.props.monthNames.map(function(l,c){return ke.createElement("div",{className:r.isSelectedMonth(c)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:l,onClick:r.onChange.bind(At(r),c),"aria-selected":r.isSelectedMonth(c)?"true":void 0},r.isSelectedMonth(c)?ke.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",l)})}),ct(At(r),"onChange",function(l){return r.props.onChange(l)}),ct(At(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return bm(n,[{key:"render",value:function(){return ke.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),mYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"state",{dropdownVisible:!1}),ct(At(r),"renderSelectOptions",function(l){return l.map(function(c,u){return ke.createElement("option",{key:u,value:u},c)})}),ct(At(r),"renderSelectMode",function(l){return ke.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(c){return r.onChange(c.target.value)}},r.renderSelectOptions(l))}),ct(At(r),"renderReadView",function(l,c){return ke.createElement("div",{key:"read",style:{visibility:l?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},ke.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),ke.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},c[r.props.month]))}),ct(At(r),"renderDropdown",function(l){return ke.createElement(pYo,{key:"dropdown",month:r.props.month,monthNames:l,onChange:r.onChange,onCancel:r.toggleDropdown})}),ct(At(r),"renderScrollMode",function(l){var c=r.state.dropdownVisible,u=[r.renderReadView(!c,l)];return c&&u.unshift(r.renderDropdown(l)),u}),ct(At(r),"onChange",function(l){r.toggleDropdown(),l!==r.props.month&&r.props.onChange(l)}),ct(At(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return bm(n,[{key:"render",value:function(){var r,a=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return wZn(s,a.props.locale)}:function(s){return rdt(s,a.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return ke.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function gYo(t,e){for(var n=[],r=H5(t),a=H5(e);!vP(r,a);)n.push(mu(r)),r=Ow(r,1);return n}var vYo=HCe(function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;return ym(this,n),ct(At(a=e.call(this,r)),"renderOptions",function(){return a.state.monthYearsList.map(function(o){var s=mze(o),l=r5(a.props.date,o)&&VS(a.props.date,o);return ke.createElement("div",{className:l?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:a.onChange.bind(At(a),s),"aria-selected":l?"true":void 0},l?ke.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",dd(o,a.props.dateFormat,a.props.locale))})}),ct(At(a),"onChange",function(o){return a.props.onChange(o)}),ct(At(a),"handleClickOutside",function(){a.props.onCancel()}),a.state={monthYearsList:gYo(a.props.minDate,a.props.maxDate)},a}return bm(n,[{key:"render",value:function(){var r=sg({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ke.createElement("div",{className:r},this.renderOptions())}}]),n}()),AYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"state",{dropdownVisible:!1}),ct(At(r),"renderSelectOptions",function(){for(var l=H5(r.props.minDate),c=H5(r.props.maxDate),u=[];!vP(l,c);){var d=mze(l);u.push(ke.createElement("option",{key:d,value:d},dd(l,r.props.dateFormat,r.props.locale))),l=Ow(l,1)}return u}),ct(At(r),"onSelectChange",function(l){r.onChange(l.target.value)}),ct(At(r),"renderSelectMode",function(){return ke.createElement("select",{value:mze(H5(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ct(At(r),"renderReadView",function(l){var c=dd(r.props.date,r.props.dateFormat,r.props.locale);return ke.createElement("div",{key:"read",style:{visibility:l?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(u){return r.toggleDropdown(u)}},ke.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ke.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},c))}),ct(At(r),"renderDropdown",function(){return ke.createElement(vYo,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),ct(At(r),"renderScrollMode",function(){var l=r.state.dropdownVisible,c=[r.renderReadView(!l)];return l&&c.unshift(r.renderDropdown()),c}),ct(At(r),"onChange",function(l){r.toggleDropdown();var c=mu(parseInt(l));r5(r.props.date,c)&&VS(r.props.date,c)||r.props.onChange(c)}),ct(At(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return bm(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return ke.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),yYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"dayEl",ke.createRef()),ct(At(r),"handleClick",function(l){!r.isDisabled()&&r.props.onClick&&r.props.onClick(l)}),ct(At(r),"handleMouseEnter",function(l){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(l)}),ct(At(r),"handleOnKeyDown",function(l){l.key===" "&&(l.preventDefault(),l.key="Enter"),r.props.handleOnKeyDown(l)}),ct(At(r),"isSameDay",function(l){return Bu(r.props.day,l)}),ct(At(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!(r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected))&&(r.isSameDay(r.props.preSelection)||r.isSameWeek(r.props.preSelection))}),ct(At(r),"isDisabled",function(){return UCe(r.props.day,r.props)}),ct(At(r),"isExcluded",function(){return idt(r.props.day,r.props)}),ct(At(r),"isStartOfWeek",function(){return Bu(r.props.day,L2(r.props.day,r.props.locale,r.props.calendarStartDay))}),ct(At(r),"isSameWeek",function(l){return r.props.showWeekPicker&&Bu(l,L2(r.props.day,r.props.locale,r.props.calendarStartDay))}),ct(At(r),"getHighLightedClass",function(){var l=r.props,c=l.day,u=l.highlightDates;if(!u)return!1;var d=dd(c,"MM.dd.yyyy");return u.get(d)}),ct(At(r),"getHolidaysClass",function(){var l=r.props,c=l.day,u=l.holidays;if(!u)return!1;var d=dd(c,"MM.dd.yyyy");return u.has(d)?[u.get(d).className]:void 0}),ct(At(r),"isInRange",function(){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&jge(c,u,d)}),ct(At(r),"isInSelectingRange",function(){var l,c=r.props,u=c.day,d=c.selectsStart,h=c.selectsEnd,f=c.selectsRange,p=c.selectsDisabledDaysInRange,m=c.startDate,g=c.endDate,v=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||h||f)||!v||!p&&r.isDisabled())&&(d&&g&&(V3(v,g)||lD(v,g))?jge(u,v,g):(h&&m&&(vP(v,m)||lD(v,m))||!(!f||!m||g||!vP(v,m)&&!lD(v,m)))&&jge(u,m,v))}),ct(At(r),"isSelectingRangeStart",function(){var l;if(!r.isInSelectingRange())return!1;var c=r.props,u=c.day,d=c.startDate,h=c.selectsStart,f=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Bu(u,h?f:d)}),ct(At(r),"isSelectingRangeEnd",function(){var l;if(!r.isInSelectingRange())return!1;var c=r.props,u=c.day,d=c.endDate,h=c.selectsEnd,f=c.selectsRange,p=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Bu(u,h||f?p:d)}),ct(At(r),"isRangeStart",function(){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&Bu(u,c)}),ct(At(r),"isRangeEnd",function(){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&Bu(d,c)}),ct(At(r),"isWeekend",function(){var l=T0i(r.props.day);return l===0||l===6}),ct(At(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===dv(r.props.day)}),ct(At(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(dv(r.props.day)+1)%12===r.props.month}),ct(At(r),"isCurrentDay",function(){return r.isSameDay(mu())}),ct(At(r),"isSelected",function(){return r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected)}),ct(At(r),"getClassNames",function(l){var c,u=r.props.dayClassName?r.props.dayClassName(l):void 0;return sg("react-datepicker__day",u,"react-datepicker__day--"+dd(r.props.day,"ddd",c),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"),r.getHolidaysClass())}),ct(At(r),"getAriaLabel",function(){var l=r.props,c=l.day,u=l.ariaLabelPrefixWhenEnabled,d=u===void 0?"Choose":u,h=l.ariaLabelPrefixWhenDisabled,f=h===void 0?"Not available":h,p=r.isDisabled()||r.isExcluded()?f:d;return"".concat(p," ").concat(dd(c,"PPPP",r.props.locale))}),ct(At(r),"getTitle",function(){var l=r.props,c=l.day,u=l.holidays,d=u===void 0?new Map:u,h=dd(c,"MM.dd.yyyy");return d.has(h)&&d.get(h).holidayNames.length>0?d.get(h).holidayNames.join(", "):""}),ct(At(r),"getTabIndex",function(l,c){var u=l||r.props.selected,d=c||r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(u)&&Bu(d,u))?0:-1}),ct(At(r),"handleFocusDay",function(){var l,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=!1;r.getTabIndex()===0&&!c.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(u=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(u=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(u=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(u=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(u=!1)),u&&((l=r.dayEl.current)===null||l===void 0||l.focus({preventScroll:!0}))}),ct(At(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(HEt(r.props.day),r.props.day):HEt(r.props.day)}),ct(At(r),"render",function(){return ke.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&ke.createElement("span",{className:"holiday-overlay"},r.getTitle()))}),r}return bm(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),bYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"weekNumberEl",ke.createRef()),ct(At(r),"handleClick",function(l){r.props.onClick&&r.props.onClick(l)}),ct(At(r),"handleOnKeyDown",function(l){l.key===" "&&(l.preventDefault(),l.key="Enter"),r.props.handleOnKeyDown(l)}),ct(At(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!Bu(r.props.date,r.props.selected)&&Bu(r.props.date,r.props.preSelection)}),ct(At(r),"getTabIndex",function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||Bu(r.props.date,r.props.selected)&&Bu(r.props.preSelection,r.props.selected))?0:-1}),ct(At(r),"handleFocusWeekNumber",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;r.getTabIndex()===0&&!l.isInputFocused&&Bu(r.props.date,r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(c=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(c=!0)),c&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})}),r}return bm(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,a=r.weekNumber,o=r.ariaLabelPrefix,s=o===void 0?"week ":o,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick,"react-datepicker__week-number--selected":Bu(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return ke.createElement("div",{ref:this.weekNumberEl,className:sg(l),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},a)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),xYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"handleDayClick",function(l,c){r.props.onDayClick&&r.props.onDayClick(l,c)}),ct(At(r),"handleDayMouseEnter",function(l){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(l)}),ct(At(r),"handleWeekClick",function(l,c,u){if(typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(l,c,u),r.props.showWeekPicker){var d=L2(l,r.props.locale,r.props.calendarStartDay);r.handleDayClick(d,u)}r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),ct(At(r),"formatWeekNumber",function(l){return r.props.formatWeekNumber?r.props.formatWeekNumber(l):function(c,u){var d=u&&U5(u)||KD()&&U5(KD());return R0i(c,d?{locale:d}:null)}(l)}),ct(At(r),"renderDays",function(){var l=L2(r.props.day,r.props.locale,r.props.calendarStartDay),c=[],u=r.formatWeekNumber(l);if(r.props.showWeekNumber){var d=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(At(r),l,u):void 0;c.push(ke.createElement(bYo,{key:"W",weekNumber:u,date:l,onClick:d,selected:r.props.selected,preSelection:r.props.preSelection,ariaLabelPrefix:r.props.ariaLabelPrefix,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef}))}return c.concat([0,1,2,3,4,5,6].map(function(h){var f=QG(l,h);return ke.createElement(yYo,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:f.valueOf(),day:f,month:r.props.month,onClick:r.handleDayClick.bind(At(r),f),onMouseEnter:r.handleDayMouseEnter.bind(At(r),f),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),ct(At(r),"startOfWeek",function(){return L2(r.props.day,r.props.locale,r.props.calendarStartDay)}),ct(At(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!Bu(r.startOfWeek(),r.props.selected)&&Bu(r.startOfWeek(),r.props.preSelection)}),r}return bm(n,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":Bu(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return ke.createElement("div",{className:sg(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),RZn="two_columns",MZn="three_columns",NZn="four_columns",c7e=ct(ct(ct({},RZn,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),MZn,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),NZn,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function djt(t,e){return t?NZn:e?RZn:MZn}var EYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"MONTH_REFS",Zre(Array(12)).map(function(){return ke.createRef()})),ct(At(r),"QUARTER_REFS",Zre(Array(4)).map(function(){return ke.createRef()})),ct(At(r),"isDisabled",function(l){return UCe(l,r.props)}),ct(At(r),"isExcluded",function(l){return idt(l,r.props)}),ct(At(r),"handleDayClick",function(l,c){r.props.onDayClick&&r.props.onDayClick(l,c,r.props.orderInDisplay)}),ct(At(r),"handleDayMouseEnter",function(l){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(l)}),ct(At(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),ct(At(r),"isRangeStartMonth",function(l){var c=r.props,u=c.day,d=c.startDate,h=c.endDate;return!(!d||!h)&&VS(v0(u,l),d)}),ct(At(r),"isRangeStartQuarter",function(l){var c=r.props,u=c.day,d=c.startDate,h=c.endDate;return!(!d||!h)&&fbe(w$(u,l),d)}),ct(At(r),"isRangeEndMonth",function(l){var c=r.props,u=c.day,d=c.startDate,h=c.endDate;return!(!d||!h)&&VS(v0(u,l),h)}),ct(At(r),"isRangeEndQuarter",function(l){var c=r.props,u=c.day,d=c.startDate,h=c.endDate;return!(!d||!h)&&fbe(w$(u,l),h)}),ct(At(r),"isInSelectingRangeMonth",function(l){var c,u=r.props,d=u.day,h=u.selectsStart,f=u.selectsEnd,p=u.selectsRange,m=u.startDate,g=u.endDate,v=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return!(!(h||f||p)||!v)&&(h&&g?o7e(v,g,l,d):(f&&m||!(!p||!m||g))&&o7e(m,v,l,d))}),ct(At(r),"isSelectingMonthRangeStart",function(l){var c;if(!r.isInSelectingRangeMonth(l))return!1;var u=r.props,d=u.day,h=u.startDate,f=u.selectsStart,p=v0(d,l),m=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return VS(p,f?m:h)}),ct(At(r),"isSelectingMonthRangeEnd",function(l){var c;if(!r.isInSelectingRangeMonth(l))return!1;var u=r.props,d=u.day,h=u.endDate,f=u.selectsEnd,p=u.selectsRange,m=v0(d,l),g=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return VS(m,f||p?g:h)}),ct(At(r),"isInSelectingRangeQuarter",function(l){var c,u=r.props,d=u.day,h=u.selectsStart,f=u.selectsEnd,p=u.selectsRange,m=u.startDate,g=u.endDate,v=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return!(!(h||f||p)||!v)&&(h&&g?l7e(v,g,l,d):(f&&m||!(!p||!m||g))&&l7e(m,v,l,d))}),ct(At(r),"isWeekInMonth",function(l){var c=r.props.day,u=QG(l,6);return VS(l,c)||VS(u,c)}),ct(At(r),"isCurrentMonth",function(l,c){return Ns(l)===Ns(mu())&&c===dv(mu())}),ct(At(r),"isCurrentQuarter",function(l,c){return Ns(l)===Ns(mu())&&c===YF(mu())}),ct(At(r),"isSelectedMonth",function(l,c,u){return dv(u)===c&&Ns(l)===Ns(u)}),ct(At(r),"isSelectedQuarter",function(l,c,u){return YF(l)===c&&Ns(l)===Ns(u)}),ct(At(r),"renderWeeks",function(){for(var l=[],c=r.props.fixedHeight,u=0,d=!1,h=L2(H5(r.props.day),r.props.locale,r.props.calendarStartDay);l.push(ke.createElement(xYo,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:u,day:h,month:dv(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,showWeekPicker:r.props.showWeekPicker,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!d;){u++,h=_Ae(h,1);var f=c&&u>=6,p=!c&&!r.isWeekInMonth(h);if(f||p){if(!r.props.peekNextMonth)break;d=!0}}return l}),ct(At(r),"onMonthClick",function(l,c){r.handleDayClick(H5(v0(r.props.day,c)),l)}),ct(At(r),"onMonthMouseEnter",function(l){r.handleDayMouseEnter(H5(v0(r.props.day,l)))}),ct(At(r),"handleMonthNavigation",function(l,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.MONTH_REFS[l].current&&r.MONTH_REFS[l].current.focus())}),ct(At(r),"onMonthKeyDown",function(l,c){var u=r.props,d=u.selected,h=u.preSelection,f=u.disabledKeyboardNavigation,p=u.showTwoColumnMonthYearPicker,m=u.showFourColumnMonthYearPicker,g=u.setPreSelection,v=l.key;if(v!=="Tab"&&l.preventDefault(),!f){var A=djt(m,p),y=c7e[A].verticalNavigationOffset,S=c7e[A].grid;switch(v){case"Enter":r.onMonthClick(l,c),g(d);break;case"ArrowRight":r.handleMonthNavigation(c===11?0:c+1,Ow(h,1));break;case"ArrowLeft":r.handleMonthNavigation(c===0?11:c-1,GU(h,1));break;case"ArrowUp":r.handleMonthNavigation(S[0].includes(c)?c+12-y:c-y,GU(h,y));break;case"ArrowDown":r.handleMonthNavigation(S[S.length-1].includes(c)?c-12+y:c+y,Ow(h,y))}}}),ct(At(r),"onQuarterClick",function(l,c){r.handleDayClick(XFt(w$(r.props.day,c)),l)}),ct(At(r),"onQuarterMouseEnter",function(l){r.handleDayMouseEnter(XFt(w$(r.props.day,l)))}),ct(At(r),"handleQuarterNavigation",function(l,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.QUARTER_REFS[l-1].current&&r.QUARTER_REFS[l-1].current.focus())}),ct(At(r),"onQuarterKeyDown",function(l,c){var u=l.key;if(!r.props.disabledKeyboardNavigation)switch(u){case"Enter":r.onQuarterClick(l,c),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(c===4?1:c+1,hon(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(c===1?4:c-1,WAi(r.props.preSelection,1))}}),ct(At(r),"getMonthClassNames",function(l){var c=r.props,u=c.day,d=c.startDate,h=c.endDate,f=c.selected,p=c.minDate,m=c.maxDate,g=c.preSelection,v=c.monthClassName,A=c.excludeDates,y=c.includeDates,S=v?v(v0(u,l)):void 0,x=v0(u,l);return sg("react-datepicker__month-text","react-datepicker__month-".concat(l),S,{"react-datepicker__month-text--disabled":(p||m||A||y)&&_Zn(x,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(u,l,f),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&dv(g)===l,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(l),"react-datepicker__month-text--in-range":o7e(d,h,l,u),"react-datepicker__month-text--range-start":r.isRangeStartMonth(l),"react-datepicker__month-text--range-end":r.isRangeEndMonth(l),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(l),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(l),"react-datepicker__month-text--today":r.isCurrentMonth(u,l)})}),ct(At(r),"getTabIndex",function(l){var c=dv(r.props.preSelection);return r.props.disabledKeyboardNavigation||l!==c?"-1":"0"}),ct(At(r),"getQuarterTabIndex",function(l){var c=YF(r.props.preSelection);return r.props.disabledKeyboardNavigation||l!==c?"-1":"0"}),ct(At(r),"getAriaLabel",function(l){var c=r.props,u=c.chooseDayAriaLabelPrefix,d=u===void 0?"Choose":u,h=c.disabledDayAriaLabelPrefix,f=h===void 0?"Not available":h,p=c.day,m=v0(p,l),g=r.isDisabled(m)||r.isExcluded(m)?f:d;return"".concat(g," ").concat(dd(m,"MMMM yyyy"))}),ct(At(r),"getQuarterClassNames",function(l){var c=r.props,u=c.day,d=c.startDate,h=c.endDate,f=c.selected,p=c.minDate,m=c.maxDate,g=c.preSelection,v=c.disabledKeyboardNavigation;return sg("react-datepicker__quarter-text","react-datepicker__quarter-".concat(l),{"react-datepicker__quarter-text--disabled":(p||m)&&lYo(w$(u,l),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(u,l,f),"react-datepicker__quarter-text--keyboard-selected":!v&&YF(g)===l,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(l),"react-datepicker__quarter-text--in-range":l7e(d,h,l,u),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(l),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(l)})}),ct(At(r),"getMonthContent",function(l){var c=r.props,u=c.showFullMonthYearPicker,d=c.renderMonthContent,h=c.locale,f=c.day,p=wZn(l,h),m=rdt(l,h);return d?d(l,p,m,f):u?m:p}),ct(At(r),"getQuarterContent",function(l){var c=r.props,u=c.renderQuarterContent,d=function(h,f){return dd(w$(mu(),h),"QQQ",f)}(l,c.locale);return u?u(l,d):d}),ct(At(r),"renderMonths",function(){var l=r.props,c=l.showTwoColumnMonthYearPicker,u=l.showFourColumnMonthYearPicker,d=l.day,h=l.selected;return c7e[djt(u,c)].grid.map(function(f,p){return ke.createElement("div",{className:"react-datepicker__month-wrapper",key:p},f.map(function(m,g){return ke.createElement("div",{ref:r.MONTH_REFS[m],key:g,onClick:function(v){r.onMonthClick(v,m)},onKeyDown:function(v){r.onMonthKeyDown(v,m)},onMouseEnter:function(){return r.onMonthMouseEnter(m)},tabIndex:r.getTabIndex(m),className:r.getMonthClassNames(m),role:"option","aria-label":r.getAriaLabel(m),"aria-current":r.isCurrentMonth(d,m)?"date":void 0,"aria-selected":r.isSelectedMonth(d,m,h)},r.getMonthContent(m))}))})}),ct(At(r),"renderQuarters",function(){var l=r.props,c=l.day,u=l.selected;return ke.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(d,h){return ke.createElement("div",{key:h,ref:r.QUARTER_REFS[h],role:"option",onClick:function(f){r.onQuarterClick(f,d)},onKeyDown:function(f){r.onQuarterKeyDown(f,d)},onMouseEnter:function(){return r.onQuarterMouseEnter(d)},className:r.getQuarterClassNames(d),"aria-selected":r.isSelectedQuarter(c,d,u),tabIndex:r.getQuarterTabIndex(d),"aria-current":r.isCurrentQuarter(c,d)?"date":void 0},r.getQuarterContent(d))}))}),ct(At(r),"getClassNames",function(){var l=r.props,c=l.selectingDate,u=l.selectsStart,d=l.selectsEnd,h=l.showMonthYearPicker,f=l.showQuarterYearPicker,p=l.showWeekPicker;return sg("react-datepicker__month",{"react-datepicker__month--selecting-range":c&&(u||d)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":p})}),r}return bm(n,[{key:"render",value:function(){var r=this.props,a=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,l=r.ariaLabelPrefix,c=l===void 0?"month ":l;return ke.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(c," ").concat(dd(s,"yyyy-MM")),role:"listbox"},a?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),IZn=function(t){xm(n,ke.Component);var e=Em(n);function n(){var r;ym(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return ct(At(r=e.call.apply(e,[this].concat(o))),"state",{height:null}),ct(At(r),"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){r.list&&(r.list.scrollTop=r.centerLi&&n.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-r.header.clientHeight:r.list.clientHeight,r.centerLi))})}),ct(At(r),"handleClick",function(l){(r.props.minTime||r.props.maxTime)&&rjt(l,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&njt(l,r.props)||r.props.onChange(l)}),ct(At(r),"isSelectedTime",function(l){return r.props.selected&&(c=r.props.selected,u=l,ujt(c).getTime()===ujt(u).getTime());var c,u}),ct(At(r),"isDisabledTime",function(l){return(r.props.minTime||r.props.maxTime)&&rjt(l,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&njt(l,r.props)}),ct(At(r),"liClasses",function(l){var c=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(l):void 0];return r.isSelectedTime(l)&&c.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(l)&&c.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*S2(l)+w2(l))%r.props.intervals!=0&&c.push("react-datepicker__time-list-item--injected"),c.join(" ")}),ct(At(r),"handleOnKeyDown",function(l,c){l.key===" "&&(l.preventDefault(),l.key="Enter"),l.key!=="ArrowUp"&&l.key!=="ArrowLeft"||!l.target.previousSibling||(l.preventDefault(),l.target.previousSibling.focus()),l.key!=="ArrowDown"&&l.key!=="ArrowRight"||!l.target.nextSibling||(l.preventDefault(),l.target.nextSibling.focus()),l.key==="Enter"&&r.handleClick(c),r.props.handleOnKeyDown(l)}),ct(At(r),"renderTimes",function(){for(var l=[],c=r.props.format?r.props.format:"p",u=r.props.intervals,d=r.props.selected||r.props.openToDate||mu(),h=E2(d),f=r.props.injectTimes&&r.props.injectTimes.sort(function(S,x){return S-x}),p=60*function(S){var x=new Date(S.getFullYear(),S.getMonth(),S.getDate()),w=new Date(S.getFullYear(),S.getMonth(),S.getDate(),24);return Math.round((+w-+x)/36e5)}(d),m=p/u,g=0;g<m;g++){var v=uze(h,g*u);if(l.push(v),f){var A=uYo(h,v,g,u,f);l=l.concat(A)}}var y=l.reduce(function(S,x){return x.getTime()<=d.getTime()?x:S},l[0]);return l.map(function(S,x){return ke.createElement("li",{key:x,onClick:r.handleClick.bind(At(r),S),className:r.liClasses(S),ref:function(w){S===y&&(r.centerLi=w)},onKeyDown:function(w){r.handleOnKeyDown(w,S)},tabIndex:S===y?0:-1,role:"option","aria-selected":r.isSelectedTime(S)?"true":void 0,"aria-disabled":r.isDisabledTime(S)?"true":void 0},dd(S,c,r.props.locale))})}),r}return bm(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,a=this.state.height;return ke.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},ke.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},ke.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),ke.createElement("div",{className:"react-datepicker__time"},ke.createElement("div",{className:"react-datepicker__time-box"},ke.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:a?{height:a}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();ct(IZn,"calcCenterPosition",function(t,e){return e.offsetTop-(t/2-e.clientHeight/2)});var SYo=function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;return ym(this,n),ct(At(a=e.call(this,r)),"YEAR_REFS",Zre(Array(a.props.yearItemNumber)).map(function(){return ke.createRef()})),ct(At(a),"isDisabled",function(o){return UCe(o,a.props)}),ct(At(a),"isExcluded",function(o){return idt(o,a.props)}),ct(At(a),"selectingDate",function(){var o;return(o=a.props.selectingDate)!==null&&o!==void 0?o:a.props.preSelection}),ct(At(a),"updateFocusOnPaginate",function(o){var s=(function(){this.YEAR_REFS[o].current.focus()}).bind(At(a));window.requestAnimationFrame(s)}),ct(At(a),"handleYearClick",function(o,s){a.props.onDayClick&&a.props.onDayClick(o,s)}),ct(At(a),"handleYearNavigation",function(o,s){var l=a.props,c=l.date,u=l.yearItemNumber,d=pj(c,u).startPeriod;a.isDisabled(s)||a.isExcluded(s)||(a.props.setPreSelection(s),o-d==-1?a.updateFocusOnPaginate(u-1):o-d===u?a.updateFocusOnPaginate(0):a.YEAR_REFS[o-d].current.focus())}),ct(At(a),"isSameDay",function(o,s){return Bu(o,s)}),ct(At(a),"isCurrentYear",function(o){return o===Ns(mu())}),ct(At(a),"isRangeStart",function(o){return a.props.startDate&&a.props.endDate&&r5(SR(mu(),o),a.props.startDate)}),ct(At(a),"isRangeEnd",function(o){return a.props.startDate&&a.props.endDate&&r5(SR(mu(),o),a.props.endDate)}),ct(At(a),"isInRange",function(o){return s7e(o,a.props.startDate,a.props.endDate)}),ct(At(a),"isInSelectingRange",function(o){var s=a.props,l=s.selectsStart,c=s.selectsEnd,u=s.selectsRange,d=s.startDate,h=s.endDate;return!(!(l||c||u)||!a.selectingDate())&&(l&&h?s7e(o,a.selectingDate(),h):(c&&d||!(!u||!d||h))&&s7e(o,d,a.selectingDate()))}),ct(At(a),"isSelectingRangeStart",function(o){if(!a.isInSelectingRange(o))return!1;var s=a.props,l=s.startDate,c=s.selectsStart,u=SR(mu(),o);return r5(u,c?a.selectingDate():l)}),ct(At(a),"isSelectingRangeEnd",function(o){if(!a.isInSelectingRange(o))return!1;var s=a.props,l=s.endDate,c=s.selectsEnd,u=s.selectsRange,d=SR(mu(),o);return r5(d,c||u?a.selectingDate():l)}),ct(At(a),"isKeyboardSelected",function(o){var s=ZZ(SR(a.props.date,o));return!a.props.disabledKeyboardNavigation&&!a.props.inline&&!Bu(s,ZZ(a.props.selected))&&Bu(s,ZZ(a.props.preSelection))}),ct(At(a),"onYearClick",function(o,s){var l=a.props.date;a.handleYearClick(ZZ(SR(l,s)),o)}),ct(At(a),"onYearKeyDown",function(o,s){var l=o.key;if(!a.props.disabledKeyboardNavigation)switch(l){case"Enter":a.onYearClick(o,s),a.props.setPreSelection(a.props.selected);break;case"ArrowRight":a.handleYearNavigation(s+1,UU(a.props.preSelection,1));break;case"ArrowLeft":a.handleYearNavigation(s-1,Pne(a.props.preSelection,1))}}),ct(At(a),"getYearClassNames",function(o){var s=a.props,l=s.minDate,c=s.maxDate,u=s.selected,d=s.excludeDates,h=s.includeDates,f=s.filterDate;return sg("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===Ns(u),"react-datepicker__year-text--disabled":(l||c||d||h||f)&&TZn(o,a.props),"react-datepicker__year-text--keyboard-selected":a.isKeyboardSelected(o),"react-datepicker__year-text--range-start":a.isRangeStart(o),"react-datepicker__year-text--range-end":a.isRangeEnd(o),"react-datepicker__year-text--in-range":a.isInRange(o),"react-datepicker__year-text--in-selecting-range":a.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":a.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":a.isSelectingRangeEnd(o),"react-datepicker__year-text--today":a.isCurrentYear(o)})}),ct(At(a),"getYearTabIndex",function(o){return a.props.disabledKeyboardNavigation?"-1":o===Ns(a.props.preSelection)?"0":"-1"}),ct(At(a),"getYearContainerClassNames",function(){var o=a.props,s=o.selectingDate,l=o.selectsStart,c=o.selectsEnd,u=o.selectsRange;return sg("react-datepicker__year",{"react-datepicker__year--selecting-range":s&&(l||c||u)})}),ct(At(a),"getYearContent",function(o){return a.props.renderYearContent?a.props.renderYearContent(o):o}),a}return bm(n,[{key:"render",value:function(){for(var r=this,a=[],o=this.props,s=o.date,l=o.yearItemNumber,c=o.onYearMouseEnter,u=o.onYearMouseLeave,d=pj(s,l),h=d.startPeriod,f=d.endPeriod,p=function(g){a.push(ke.createElement("div",{ref:r.YEAR_REFS[g-h],onClick:function(v){r.onYearClick(v,g)},onKeyDown:function(v){r.onYearKeyDown(v,g)},tabIndex:r.getYearTabIndex(g),className:r.getYearClassNames(g),onMouseEnter:function(v){return c(v,g)},onMouseLeave:function(v){return u(v,g)},key:g,"aria-current":r.isCurrentYear(g)?"date":void 0},r.getYearContent(g)))},m=h;m<=f;m++)p(m);return ke.createElement("div",{className:this.getYearContainerClassNames()},ke.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},a))}}]),n}(),wYo=function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;return ym(this,n),ct(At(a=e.call(this,r)),"onTimeChange",function(o){a.setState({time:o});var s=a.props.date,l=s instanceof Date&&!isNaN(s)?s:new Date;l.setHours(o.split(":")[0]),l.setMinutes(o.split(":")[1]),a.props.onChange(l)}),ct(At(a),"renderTimeInput",function(){var o=a.state.time,s=a.props,l=s.date,c=s.timeString,u=s.customTimeInput;return u?ke.cloneElement(u,{date:l,value:o,onChange:a.onTimeChange}):ke.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(d){a.onTimeChange(d.target.value||c)}})}),a.state={time:a.props.timeString},a}return bm(n,[{key:"render",value:function(){return ke.createElement("div",{className:"react-datepicker__input-time-container"},ke.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),ke.createElement("div",{className:"react-datepicker-time__input-container"},ke.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.timeString!==a.time?{time:r.timeString}:null}}]),n}();function _Yo(t){var e=t.className,n=t.children,r=t.showPopperArrow,a=t.arrowProps,o=a===void 0?{}:a;return ke.createElement("div",{className:e},r&&ke.createElement("div",Cz({className:"react-datepicker__triangle"},o)),n)}var TYo=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],CYo=function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;return ym(this,n),ct(At(a=e.call(this,r)),"handleClickOutside",function(o){a.props.onClickOutside(o)}),ct(At(a),"setClickOutsideRef",function(){return a.containerRef.current}),ct(At(a),"handleDropdownFocus",function(o){(function(){var s=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return TYo.some(function(l){return s.indexOf(l)>=0})})(o.target)&&a.props.onDropdownFocus()}),ct(At(a),"getDateInView",function(){var o=a.props,s=o.preSelection,l=o.selected,c=o.openToDate,u=CZn(a.props),d=kZn(a.props),h=mu(),f=c||l||s;return f||(u&&V3(h,u)?u:d&&vP(h,d)?d:h)}),ct(At(a),"increaseMonth",function(){a.setState(function(o){var s=o.date;return{date:Ow(s,1)}},function(){return a.handleMonthChange(a.state.date)})}),ct(At(a),"decreaseMonth",function(){a.setState(function(o){var s=o.date;return{date:GU(s,1)}},function(){return a.handleMonthChange(a.state.date)})}),ct(At(a),"handleDayClick",function(o,s,l){a.props.onSelect(o,s,l),a.props.setPreSelection&&a.props.setPreSelection(o)}),ct(At(a),"handleDayMouseEnter",function(o){a.setState({selectingDate:o}),a.props.onDayMouseEnter&&a.props.onDayMouseEnter(o)}),ct(At(a),"handleMonthMouseLeave",function(){a.setState({selectingDate:null}),a.props.onMonthMouseLeave&&a.props.onMonthMouseLeave()}),ct(At(a),"handleYearMouseEnter",function(o,s){a.setState({selectingDate:SR(mu(),s)}),a.props.onYearMouseEnter&&a.props.onYearMouseEnter(o,s)}),ct(At(a),"handleYearMouseLeave",function(o,s){a.props.onYearMouseLeave&&a.props.onYearMouseLeave(o,s)}),ct(At(a),"handleYearChange",function(o){a.props.onYearChange&&(a.props.onYearChange(o),a.setState({isRenderAriaLiveMessage:!0})),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(o),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(o)}),ct(At(a),"handleMonthChange",function(o){a.handleCustomMonthChange(o),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(o),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(o)}),ct(At(a),"handleCustomMonthChange",function(o){a.props.onMonthChange&&(a.props.onMonthChange(o),a.setState({isRenderAriaLiveMessage:!0}))}),ct(At(a),"handleMonthYearChange",function(o){a.handleYearChange(o),a.handleMonthChange(o)}),ct(At(a),"changeYear",function(o){a.setState(function(s){var l=s.date;return{date:SR(l,o)}},function(){return a.handleYearChange(a.state.date)})}),ct(At(a),"changeMonth",function(o){a.setState(function(s){var l=s.date;return{date:v0(l,o)}},function(){return a.handleMonthChange(a.state.date)})}),ct(At(a),"changeMonthYear",function(o){a.setState(function(s){var l=s.date;return{date:SR(v0(l,dv(o)),Ns(o))}},function(){return a.handleMonthYearChange(a.state.date)})}),ct(At(a),"header",function(){var o=L2(arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.state.date,a.props.locale,a.props.calendarStartDay),s=[];return a.props.showWeekNumbers&&s.push(ke.createElement("div",{key:"W",className:"react-datepicker__day-name"},a.props.weekLabel||"#")),s.concat([0,1,2,3,4,5,6].map(function(l){var c=QG(o,l),u=a.formatWeekday(c,a.props.locale),d=a.props.weekDayClassName?a.props.weekDayClassName(c):void 0;return ke.createElement("div",{key:l,className:sg("react-datepicker__day-name",d)},u)}))}),ct(At(a),"formatWeekday",function(o,s){return a.props.formatWeekDay?function(l,c,u){return c(dd(l,"EEEE",u))}(o,a.props.formatWeekDay,s):a.props.useWeekdaysShort?function(l,c){return dd(l,"EEE",c)}(o,s):function(l,c){return dd(l,"EEEEEE",c)}(o,s)}),ct(At(a),"decreaseYear",function(){a.setState(function(o){var s=o.date;return{date:Pne(s,a.props.showYearPicker?a.props.yearItemNumber:1)}},function(){return a.handleYearChange(a.state.date)})}),ct(At(a),"clearSelectingDate",function(){a.setState({selectingDate:null})}),ct(At(a),"renderPreviousButton",function(){if(!a.props.renderCustomHeader){var o;switch(!0){case a.props.showMonthYearPicker:o=ojt(a.state.date,a.props);break;case a.props.showYearPicker:o=function(A){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=y.minDate,x=y.yearItemNumber,w=x===void 0?Gee:x,_=pj(ZZ(Pne(A,w)),w).endPeriod,C=S&&Ns(S);return C&&C>_||!1}(a.state.date,a.props);break;default:o=ijt(a.state.date,a.props)}if((a.props.forceShowMonthNavigation||a.props.showDisabledMonthNavigation||!o)&&!a.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=a.decreaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(l=a.decreaseYear),o&&a.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),l=null);var c=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,u=a.props,d=u.previousMonthButtonLabel,h=u.previousYearButtonLabel,f=a.props,p=f.previousMonthAriaLabel,m=p===void 0?typeof d=="string"?d:"Previous Month":p,g=f.previousYearAriaLabel,v=g===void 0?typeof h=="string"?h:"Previous Year":g;return ke.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:a.props.handleOnKeyDown,"aria-label":c?v:m},ke.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},c?a.props.previousYearButtonLabel:a.props.previousMonthButtonLabel))}}}),ct(At(a),"increaseYear",function(){a.setState(function(o){var s=o.date;return{date:UU(s,a.props.showYearPicker?a.props.yearItemNumber:1)}},function(){return a.handleYearChange(a.state.date)})}),ct(At(a),"renderNextButton",function(){if(!a.props.renderCustomHeader){var o;switch(!0){case a.props.showMonthYearPicker:o=sjt(a.state.date,a.props);break;case a.props.showYearPicker:o=function(A){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=y.maxDate,x=y.yearItemNumber,w=x===void 0?Gee:x,_=pj(UU(A,w),w).startPeriod,C=S&&Ns(S);return C&&C<_||!1}(a.state.date,a.props);break;default:o=ajt(a.state.date,a.props)}if((a.props.forceShowMonthNavigation||a.props.showDisabledMonthNavigation||!o)&&!a.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--next"];a.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),a.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var l=a.increaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(l=a.increaseYear),o&&a.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),l=null);var c=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,u=a.props,d=u.nextMonthButtonLabel,h=u.nextYearButtonLabel,f=a.props,p=f.nextMonthAriaLabel,m=p===void 0?typeof d=="string"?d:"Next Month":p,g=f.nextYearAriaLabel,v=g===void 0?typeof h=="string"?h:"Next Year":g;return ke.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:a.props.handleOnKeyDown,"aria-label":c?v:m},ke.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},c?a.props.nextYearButtonLabel:a.props.nextMonthButtonLabel))}}}),ct(At(a),"renderCurrentMonth",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.state.date,s=["react-datepicker__current-month"];return a.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),a.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),a.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),ke.createElement("div",{className:s.join(" ")},dd(o,a.props.dateFormat,a.props.locale))}),ct(At(a),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(a.props.showYearDropdown&&!o)return ke.createElement(fYo,{adjustDateOnChange:a.props.adjustDateOnChange,date:a.state.date,onSelect:a.props.onSelect,setOpen:a.props.setOpen,dropdownMode:a.props.dropdownMode,onChange:a.changeYear,minDate:a.props.minDate,maxDate:a.props.maxDate,year:Ns(a.state.date),scrollableYearDropdown:a.props.scrollableYearDropdown,yearDropdownItemNumber:a.props.yearDropdownItemNumber})}),ct(At(a),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(a.props.showMonthDropdown&&!o)return ke.createElement(mYo,{dropdownMode:a.props.dropdownMode,locale:a.props.locale,onChange:a.changeMonth,month:dv(a.state.date),useShortMonthInDropdown:a.props.useShortMonthInDropdown})}),ct(At(a),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(a.props.showMonthYearDropdown&&!o)return ke.createElement(AYo,{dropdownMode:a.props.dropdownMode,locale:a.props.locale,dateFormat:a.props.dateFormat,onChange:a.changeMonthYear,minDate:a.props.minDate,maxDate:a.props.maxDate,date:a.state.date,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown})}),ct(At(a),"handleTodayButtonClick",function(o){a.props.onSelect(ejt(),o),a.props.setPreSelection&&a.props.setPreSelection(ejt())}),ct(At(a),"renderTodayButton",function(){if(a.props.todayButton&&!a.props.showTimeSelectOnly)return ke.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return a.handleTodayButtonClick(o)}},a.props.todayButton)}),ct(At(a),"renderDefaultHeader",function(o){var s=o.monthDate,l=o.i;return ke.createElement("div",{className:"react-datepicker__header ".concat(a.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},a.renderCurrentMonth(s),ke.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(a.props.dropdownMode),onFocus:a.handleDropdownFocus},a.renderMonthDropdown(l!==0),a.renderMonthYearDropdown(l!==0),a.renderYearDropdown(l!==0)),ke.createElement("div",{className:"react-datepicker__day-names"},a.header(s)))}),ct(At(a),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,l=o.i;if(a.props.showTimeSelect&&!a.state.monthContainer||a.props.showTimeSelectOnly)return null;var c=ijt(a.state.date,a.props),u=ajt(a.state.date,a.props),d=ojt(a.state.date,a.props),h=sjt(a.state.date,a.props),f=!a.props.showMonthYearPicker&&!a.props.showQuarterYearPicker&&!a.props.showYearPicker;return ke.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:a.props.onDropdownFocus},a.props.renderCustomHeader(dbe(dbe({},a.state),{},{customHeaderCount:l,monthDate:s,changeMonth:a.changeMonth,changeYear:a.changeYear,decreaseMonth:a.decreaseMonth,increaseMonth:a.increaseMonth,decreaseYear:a.decreaseYear,increaseYear:a.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:u,prevYearButtonDisabled:d,nextYearButtonDisabled:h})),f&&ke.createElement("div",{className:"react-datepicker__day-names"},a.header(s)))}),ct(At(a),"renderYearHeader",function(){var o=a.state.date,s=a.props,l=s.showYearPicker,c=pj(o,s.yearItemNumber),u=c.startPeriod,d=c.endPeriod;return ke.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},l?"".concat(u," - ").concat(d):Ns(o))}),ct(At(a),"renderHeader",function(o){switch(!0){case a.props.renderCustomHeader!==void 0:return a.renderCustomHeader(o);case(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker):return a.renderYearHeader(o);default:return a.renderDefaultHeader(o)}}),ct(At(a),"renderMonths",function(){var o;if(!a.props.showTimeSelectOnly&&!a.props.showYearPicker){for(var s=[],l=a.props.showPreviousMonths?a.props.monthsShown-1:0,c=GU(a.state.date,l),u=(o=a.props.monthSelectedIn)!==null&&o!==void 0?o:l,d=0;d<a.props.monthsShown;++d){var h=Ow(c,d-u+l),f="month-".concat(d),p=d<a.props.monthsShown-1,m=d>0;s.push(ke.createElement("div",{key:f,ref:function(g){a.monthContainer=g},className:"react-datepicker__month-container"},a.renderHeader({monthDate:h,i:d}),ke.createElement(EYo,{chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:a.props.weekAriaLabelPrefix,ariaLabelPrefix:a.props.monthAriaLabelPrefix,onChange:a.changeMonthYear,day:h,dayClassName:a.props.dayClassName,calendarStartDay:a.props.calendarStartDay,monthClassName:a.props.monthClassName,onDayClick:a.handleDayClick,handleOnKeyDown:a.props.handleOnDayKeyDown,onDayMouseEnter:a.handleDayMouseEnter,onMouseLeave:a.handleMonthMouseLeave,onWeekSelect:a.props.onWeekSelect,orderInDisplay:d,formatWeekNumber:a.props.formatWeekNumber,locale:a.props.locale,minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,highlightDates:a.props.highlightDates,holidays:a.props.holidays,selectingDate:a.state.selectingDate,includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,inline:a.props.inline,shouldFocusDayInline:a.props.shouldFocusDayInline,fixedHeight:a.props.fixedHeight,filterDate:a.props.filterDate,preSelection:a.props.preSelection,setPreSelection:a.props.setPreSelection,selected:a.props.selected,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,showWeekNumbers:a.props.showWeekNumbers,startDate:a.props.startDate,endDate:a.props.endDate,peekNextMonth:a.props.peekNextMonth,setOpen:a.props.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,renderDayContents:a.props.renderDayContents,renderMonthContent:a.props.renderMonthContent,renderQuarterContent:a.props.renderQuarterContent,renderYearContent:a.props.renderYearContent,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,showMonthYearPicker:a.props.showMonthYearPicker,showFullMonthYearPicker:a.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:a.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:a.props.showFourColumnMonthYearPicker,showYearPicker:a.props.showYearPicker,showQuarterYearPicker:a.props.showQuarterYearPicker,showWeekPicker:a.props.showWeekPicker,isInputFocused:a.props.isInputFocused,containerRef:a.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return s}}),ct(At(a),"renderYears",function(){if(!a.props.showTimeSelectOnly)return a.props.showYearPicker?ke.createElement("div",{className:"react-datepicker__year--container"},a.renderHeader(),ke.createElement(SYo,Cz({onDayClick:a.handleDayClick,selectingDate:a.state.selectingDate,clearSelectingDate:a.clearSelectingDate,date:a.state.date},a.props,{onYearMouseEnter:a.handleYearMouseEnter,onYearMouseLeave:a.handleYearMouseLeave}))):void 0}),ct(At(a),"renderTimeSection",function(){if(a.props.showTimeSelect&&(a.state.monthContainer||a.props.showTimeSelectOnly))return ke.createElement(IZn,{selected:a.props.selected,openToDate:a.props.openToDate,onChange:a.props.onTimeChange,timeClassName:a.props.timeClassName,format:a.props.timeFormat,includeTimes:a.props.includeTimes,intervals:a.props.timeIntervals,minTime:a.props.minTime,maxTime:a.props.maxTime,excludeTimes:a.props.excludeTimes,filterTime:a.props.filterTime,timeCaption:a.props.timeCaption,todayButton:a.props.todayButton,showMonthDropdown:a.props.showMonthDropdown,showMonthYearDropdown:a.props.showMonthYearDropdown,showYearDropdown:a.props.showYearDropdown,withPortal:a.props.withPortal,monthRef:a.state.monthContainer,injectTimes:a.props.injectTimes,locale:a.props.locale,handleOnKeyDown:a.props.handleOnKeyDown,showTimeSelectOnly:a.props.showTimeSelectOnly})}),ct(At(a),"renderInputTimeSection",function(){var o=new Date(a.props.selected),s=A3(o)&&a.props.selected?"".concat(cjt(o.getHours()),":").concat(cjt(o.getMinutes())):"";if(a.props.showTimeInput)return ke.createElement(wYo,{date:o,timeString:s,timeInputLabel:a.props.timeInputLabel,onChange:a.props.onTimeChange,customTimeInput:a.props.customTimeInput})}),ct(At(a),"renderAriaLiveRegion",function(){var o,s=pj(a.state.date,a.props.yearItemNumber),l=s.startPeriod,c=s.endPeriod;return o=a.props.showYearPicker?"".concat(l," - ").concat(c):a.props.showMonthYearPicker||a.props.showQuarterYearPicker?Ns(a.state.date):"".concat(rdt(dv(a.state.date),a.props.locale)," ").concat(Ns(a.state.date)),ke.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},a.state.isRenderAriaLiveMessage&&o)}),ct(At(a),"renderChildren",function(){if(a.props.children)return ke.createElement("div",{className:"react-datepicker__children-container"},a.props.children)}),a.containerRef=ke.createRef(),a.state={date:a.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},a}return bm(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var a=this;if(!this.props.preSelection||Bu(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!Bu(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!VS(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&a.handleCustomMonthChange(a.state.date)})}}},{key:"render",value:function(){var r=this.props.container||_Yo;return ke.createElement("div",{style:{display:"contents"},ref:this.containerRef},ke.createElement(r,{className:sg("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Gee}}}]),n}(),kYo=function(t){var e=t.icon,n=t.className,r=n===void 0?"":n,a=t.onClick,o="react-datepicker__calendar-icon";return ke.isValidElement(e)?ke.cloneElement(e,{className:"".concat(e.props.className||""," ").concat(o," ").concat(r),onClick:function(s){typeof e.props.onClick=="function"&&e.props.onClick(s),typeof a=="function"&&a(s)}}):typeof e=="string"?ke.createElement("i",{className:"".concat(o," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:a}):ke.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:a},ke.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},PZn=function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;return ym(this,n),(a=e.call(this,r)).el=document.createElement("div"),a}return bm(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return JT.createPortal(this.props.children,this.el)}}]),n}(),RYo=function(t){return!t.disabled&&t.tabIndex!==-1},OZn=function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;return ym(this,n),ct(At(a=e.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(a.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(RYo)}),ct(At(a),"handleFocusStart",function(){var o=a.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),ct(At(a),"handleFocusEnd",function(){var o=a.getTabChildren();o&&o.length>1&&o[0].focus()}),a.tabLoopRef=ke.createRef(),a}return bm(n,[{key:"render",value:function(){return this.props.enableTabLoop?ke.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ke.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ke.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),MYo=function(t){xm(n,ke.Component);var e=Em(n);function n(){return ym(this,n),e.apply(this,arguments)}return bm(n,[{key:"render",value:function(){var r,a=this.props,o=a.className,s=a.wrapperClassName,l=a.hidePopper,c=a.popperComponent,u=a.popperModifiers,d=a.popperPlacement,h=a.popperProps,f=a.targetComponent,p=a.enableTabLoop,m=a.popperOnKeyDown,g=a.portalId,v=a.portalHost;if(!l){var A=sg("react-datepicker-popper",o);r=ke.createElement(tYo,Cz({modifiers:u,placement:d},h),function(S){var x=S.ref,w=S.style,_=S.placement,C=S.arrowProps;return ke.createElement(OZn,{enableTabLoop:p},ke.createElement("div",{ref:x,style:w,className:A,"data-placement":_,onKeyDown:m},ke.cloneElement(c,{arrowProps:C})))})}this.props.popperContainer&&(r=ke.createElement(this.props.popperContainer,{},r)),g&&!l&&(r=ke.createElement(PZn,{portalId:g,portalHost:v},r));var y=sg("react-datepicker-wrapper",s);return ke.createElement(zqo,{className:"react-datepicker-manager"},ke.createElement(aYo,null,function(S){var x=S.ref;return ke.createElement("div",{ref:x,className:y},f)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),hjt="react-datepicker-ignore-onclickoutside",NYo=HCe(CYo),u7e="Date input not valid.",IYo=function(t){xm(n,ke.Component);var e=Em(n);function n(r){var a;return ym(this,n),ct(At(a=e.call(this,r)),"getPreSelection",function(){return a.props.openToDate?a.props.openToDate:a.props.selectsEnd&&a.props.startDate?a.props.startDate:a.props.selectsStart&&a.props.endDate?a.props.endDate:mu()}),ct(At(a),"modifyHolidays",function(){var o;return(o=a.props.holidays)===null||o===void 0?void 0:o.reduce(function(s,l){var c=new Date(l.date);return Nne(c)?[].concat(Zre(s),[dbe(dbe({},l),{},{date:c})]):s},[])}),ct(At(a),"calcInitialState",function(){var o,s=a.getPreSelection(),l=CZn(a.props),c=kZn(a.props),u=l&&V3(s,E2(l))?l:c&&vP(s,dze(c))?c:s;return{open:a.props.startOpen||!1,preventFocus:!1,preSelection:(o=a.props.selectsRange?a.props.startDate:a.props.selected)!==null&&o!==void 0?o:u,highlightDates:ljt(a.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ct(At(a),"clearPreventFocusTimeout",function(){a.preventFocusTimeout&&clearTimeout(a.preventFocusTimeout)}),ct(At(a),"setFocus",function(){a.input&&a.input.focus&&a.input.focus({preventScroll:!0})}),ct(At(a),"setBlur",function(){a.input&&a.input.blur&&a.input.blur(),a.cancelFocusInput()}),ct(At(a),"setOpen",function(o){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.setState({open:o,preSelection:o&&a.state.open?a.state.preSelection:a.calcInitialState().preSelection,lastPreSelectChange:d7e},function(){o||a.setState(function(l){return{focused:!!s&&l.focused}},function(){!s&&a.setBlur(),a.setState({inputValue:null})})})}),ct(At(a),"inputOk",function(){return wwe(a.state.preSelection)}),ct(At(a),"isCalendarOpen",function(){return a.props.open===void 0?a.state.open&&!a.props.disabled&&!a.props.readOnly:a.props.open}),ct(At(a),"handleFocus",function(o){a.state.preventFocus||(a.props.onFocus(o),a.props.preventOpenOnFocus||a.props.readOnly||a.setOpen(!0)),a.setState({focused:!0})}),ct(At(a),"sendFocusBackToInput",function(){a.preventFocusTimeout&&a.clearPreventFocusTimeout(),a.setState({preventFocus:!0},function(){a.preventFocusTimeout=setTimeout(function(){a.setFocus(),a.setState({preventFocus:!1})})})}),ct(At(a),"cancelFocusInput",function(){clearTimeout(a.inputFocusTimeout),a.inputFocusTimeout=null}),ct(At(a),"deferFocusInput",function(){a.cancelFocusInput(),a.inputFocusTimeout=setTimeout(function(){return a.setFocus()},1)}),ct(At(a),"handleDropdownFocus",function(){a.cancelFocusInput()}),ct(At(a),"handleBlur",function(o){(!a.state.open||a.props.withPortal||a.props.showTimeInput)&&a.props.onBlur(o),a.setState({focused:!1})}),ct(At(a),"handleCalendarClickOutside",function(o){a.props.inline||a.setOpen(!1),a.props.onClickOutside(o),a.props.withPortal&&o.preventDefault()}),ct(At(a),"handleChange",function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var c=s[0];if(!a.props.onChangeRaw||(a.props.onChangeRaw.apply(At(a),s),typeof c.isDefaultPrevented=="function"&&!c.isDefaultPrevented())){a.setState({inputValue:c.target.value,lastPreSelectChange:PYo});var u,d,h,f,p,m,g,v,A=(u=c.target.value,d=a.props.dateFormat,h=a.props.locale,f=a.props.strictParsing,p=a.props.minDate,m=null,g=U5(h)||U5(KD()),v=!0,Array.isArray(d)?(d.forEach(function(y){var S=xOe(u,y,new Date,{locale:g});f&&(v=A3(S,p)&&u===dd(S,y,h)),A3(S,p)&&v&&(m=S)}),m):(m=xOe(u,d,new Date,{locale:g}),f?v=A3(m)&&u===dd(m,d,h):A3(m)||(d=d.match(sYo).map(function(y){var S=y[0];return S==="p"||S==="P"?g?(0,oYo[S])(y,g.formatLong):S:y}).join(""),u.length>0&&(m=xOe(u,d.slice(0,u.length),new Date)),A3(m)||(m=new Date(u))),A3(m)&&v?m:null));a.props.showTimeSelectOnly&&a.props.selected&&A&&!Bu(A,a.props.selected)&&(A=VAi(a.props.selected,{hours:S2(A),minutes:w2(A),seconds:UEt(A)})),!A&&c.target.value||(a.props.showWeekPicker&&(A=L2(A,a.props.locale,a.props.calendarStartDay)),a.setSelected(A,c,!0))}}),ct(At(a),"handleSelect",function(o,s,l){if(a.props.shouldCloseOnSelect&&!a.props.showTimeSelect&&a.sendFocusBackToInput(),a.props.onChangeRaw&&a.props.onChangeRaw(s),a.props.showWeekPicker&&(o=L2(o,a.props.locale,a.props.calendarStartDay)),a.setSelected(o,s,!1,l),a.props.showDateSelect&&a.setState({isRenderAriaLiveMessage:!0}),!a.props.shouldCloseOnSelect||a.props.showTimeSelect)a.setPreSelection(o);else if(!a.props.inline){a.props.selectsRange||a.setOpen(!1);var c=a.props,u=c.startDate,d=c.endDate;!u||d||V3(o,u)||a.setOpen(!1)}}),ct(At(a),"setSelected",function(o,s,l,c){var u=o;if(a.props.showYearPicker){if(u!==null&&TZn(Ns(u),a.props))return}else if(a.props.showMonthYearPicker){if(u!==null&&_Zn(u,a.props))return}else if(u!==null&&UCe(u,a.props))return;var d=a.props,h=d.onChange,f=d.selectsRange,p=d.startDate,m=d.endDate;if(!lD(a.props.selected,u)||a.props.allowSameDay||f)if(u!==null&&(!a.props.selected||l&&(a.props.showTimeSelect||a.props.showTimeSelectOnly||a.props.showTimeInput)||(u=ZFt(u,{hour:S2(a.props.selected),minute:w2(a.props.selected),second:UEt(a.props.selected)})),a.props.inline||a.setState({preSelection:u}),a.props.focusSelectedMonth||a.setState({monthSelectedIn:c})),f){var g=p&&!m,v=p&&m;!p&&!m?h([u,null],s):g&&(V3(u,p)?h([u,null],s):h([p,u],s)),v&&h([u,null],s)}else h(u,s);l||(a.props.onSelect(u,s),a.setState({inputValue:null}))}),ct(At(a),"setPreSelection",function(o){var s=a.props.minDate!==void 0,l=a.props.maxDate!==void 0,c=!0;if(o){a.props.showWeekPicker&&(o=L2(o,a.props.locale,a.props.calendarStartDay));var u=E2(o);if(s&&l)c=jge(o,a.props.minDate,a.props.maxDate);else if(s){var d=E2(a.props.minDate);c=vP(o,d)||lD(u,d)}else if(l){var h=dze(a.props.maxDate);c=V3(o,h)||lD(u,h)}}c&&a.setState({preSelection:o})}),ct(At(a),"toggleCalendar",function(){a.setOpen(!a.state.open)}),ct(At(a),"handleTimeChange",function(o){var s=a.props.selected?a.props.selected:a.getPreSelection(),l=a.props.selected?o:ZFt(s,{hour:S2(o),minute:w2(o)});a.setState({preSelection:l}),a.props.onChange(l),a.props.shouldCloseOnSelect&&(a.sendFocusBackToInput(),a.setOpen(!1)),a.props.showTimeInput&&a.setOpen(!0),(a.props.showTimeSelectOnly||a.props.showTimeSelect)&&a.setState({isRenderAriaLiveMessage:!0}),a.setState({inputValue:null})}),ct(At(a),"onInputClick",function(){a.props.disabled||a.props.readOnly||a.setOpen(!0),a.props.onInputClick()}),ct(At(a),"onInputKeyDown",function(o){a.props.onKeyDown(o);var s=o.key;if(a.state.open||a.props.inline||a.props.preventOpenOnFocus){if(a.state.open){if(s==="ArrowDown"||s==="ArrowUp"){o.preventDefault();var l=a.props.showWeekPicker&&a.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',c=a.calendar.componentNode&&a.calendar.componentNode.querySelector(l);return void(c&&c.focus({preventScroll:!0}))}var u=mu(a.state.preSelection);s==="Enter"?(o.preventDefault(),a.inputOk()&&a.state.lastPreSelectChange===d7e?(a.handleSelect(u,o),!a.props.shouldCloseOnSelect&&a.setPreSelection(u)):a.setOpen(!1)):s==="Escape"?(o.preventDefault(),a.sendFocusBackToInput(),a.setOpen(!1)):s==="Tab"&&a.setOpen(!1),a.inputOk()||a.props.onInputError({code:1,msg:u7e})}}else s!=="ArrowDown"&&s!=="ArrowUp"&&s!=="Enter"||a.onInputClick()}),ct(At(a),"onPortalKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),a.setState({preventFocus:!0},function(){a.setOpen(!1),setTimeout(function(){a.setFocus(),a.setState({preventFocus:!1})})}))}),ct(At(a),"onDayKeyDown",function(o){a.props.onKeyDown(o);var s=o.key,l=mu(a.state.preSelection);if(s==="Enter")o.preventDefault(),a.handleSelect(l,o),!a.props.shouldCloseOnSelect&&a.setPreSelection(l);else if(s==="Escape")o.preventDefault(),a.setOpen(!1),a.inputOk()||a.props.onInputError({code:1,msg:u7e});else if(!a.props.disabledKeyboardNavigation){var c;switch(s){case"ArrowLeft":c=a.props.showWeekPicker?VEt(l,1):kAi(l,1);break;case"ArrowRight":c=a.props.showWeekPicker?_Ae(l,1):QG(l,1);break;case"ArrowUp":c=VEt(l,1);break;case"ArrowDown":c=_Ae(l,1);break;case"PageUp":c=GU(l,1);break;case"PageDown":c=Ow(l,1);break;case"Home":c=Pne(l,1);break;case"End":c=UU(l,1);break;default:c=null}if(!c)return void(a.props.onInputError&&a.props.onInputError({code:1,msg:u7e}));if(o.preventDefault(),a.setState({lastPreSelectChange:d7e}),a.props.adjustDateOnChange&&a.setSelected(c),a.setPreSelection(c),a.props.inline){var u=dv(l),d=dv(c),h=Ns(l),f=Ns(c);u!==d||h!==f?a.setState({shouldFocusDayInline:!0}):a.setState({shouldFocusDayInline:!1})}}}),ct(At(a),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),a.sendFocusBackToInput())}),ct(At(a),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),a.sendFocusBackToInput(),a.props.selectsRange?a.props.onChange([null,null],o):a.props.onChange(null,o),a.setState({inputValue:null})}),ct(At(a),"clear",function(){a.onClearClick()}),ct(At(a),"onScroll",function(o){typeof a.props.closeOnScroll=="boolean"&&a.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||a.setOpen(!1):typeof a.props.closeOnScroll=="function"&&a.props.closeOnScroll(o)&&a.setOpen(!1)}),ct(At(a),"renderCalendar",function(){return a.props.inline||a.isCalendarOpen()?ke.createElement(NYo,{ref:function(o){a.calendar=o},locale:a.props.locale,calendarStartDay:a.props.calendarStartDay,chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:a.props.weekAriaLabelPrefix,monthAriaLabelPrefix:a.props.monthAriaLabelPrefix,adjustDateOnChange:a.props.adjustDateOnChange,setOpen:a.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,dateFormat:a.props.dateFormatCalendar,useWeekdaysShort:a.props.useWeekdaysShort,formatWeekDay:a.props.formatWeekDay,dropdownMode:a.props.dropdownMode,selected:a.props.selected,preSelection:a.state.preSelection,onSelect:a.handleSelect,onWeekSelect:a.props.onWeekSelect,openToDate:a.props.openToDate,minDate:a.props.minDate,maxDate:a.props.maxDate,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,startDate:a.props.startDate,endDate:a.props.endDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,filterDate:a.props.filterDate,onClickOutside:a.handleCalendarClickOutside,formatWeekNumber:a.props.formatWeekNumber,highlightDates:a.state.highlightDates,holidays:cYo(a.modifyHolidays()),includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,includeTimes:a.props.includeTimes,injectTimes:a.props.injectTimes,inline:a.props.inline,shouldFocusDayInline:a.state.shouldFocusDayInline,peekNextMonth:a.props.peekNextMonth,showMonthDropdown:a.props.showMonthDropdown,showPreviousMonths:a.props.showPreviousMonths,useShortMonthInDropdown:a.props.useShortMonthInDropdown,showMonthYearDropdown:a.props.showMonthYearDropdown,showWeekNumbers:a.props.showWeekNumbers,showYearDropdown:a.props.showYearDropdown,withPortal:a.props.withPortal,forceShowMonthNavigation:a.props.forceShowMonthNavigation,showDisabledMonthNavigation:a.props.showDisabledMonthNavigation,scrollableYearDropdown:a.props.scrollableYearDropdown,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown,todayButton:a.props.todayButton,weekLabel:a.props.weekLabel,outsideClickIgnoreClass:hjt,fixedHeight:a.props.fixedHeight,monthsShown:a.props.monthsShown,monthSelectedIn:a.state.monthSelectedIn,onDropdownFocus:a.handleDropdownFocus,onMonthChange:a.props.onMonthChange,onYearChange:a.props.onYearChange,dayClassName:a.props.dayClassName,weekDayClassName:a.props.weekDayClassName,monthClassName:a.props.monthClassName,timeClassName:a.props.timeClassName,showDateSelect:a.props.showDateSelect,showTimeSelect:a.props.showTimeSelect,showTimeSelectOnly:a.props.showTimeSelectOnly,onTimeChange:a.handleTimeChange,timeFormat:a.props.timeFormat,timeIntervals:a.props.timeIntervals,minTime:a.props.minTime,maxTime:a.props.maxTime,excludeTimes:a.props.excludeTimes,filterTime:a.props.filterTime,timeCaption:a.props.timeCaption,className:a.props.calendarClassName,container:a.props.calendarContainer,yearItemNumber:a.props.yearItemNumber,yearDropdownItemNumber:a.props.yearDropdownItemNumber,previousMonthAriaLabel:a.props.previousMonthAriaLabel,previousMonthButtonLabel:a.props.previousMonthButtonLabel,nextMonthAriaLabel:a.props.nextMonthAriaLabel,nextMonthButtonLabel:a.props.nextMonthButtonLabel,previousYearAriaLabel:a.props.previousYearAriaLabel,previousYearButtonLabel:a.props.previousYearButtonLabel,nextYearAriaLabel:a.props.nextYearAriaLabel,nextYearButtonLabel:a.props.nextYearButtonLabel,timeInputLabel:a.props.timeInputLabel,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,renderCustomHeader:a.props.renderCustomHeader,popperProps:a.props.popperProps,renderDayContents:a.props.renderDayContents,renderMonthContent:a.props.renderMonthContent,renderQuarterContent:a.props.renderQuarterContent,renderYearContent:a.props.renderYearContent,onDayMouseEnter:a.props.onDayMouseEnter,onMonthMouseLeave:a.props.onMonthMouseLeave,onYearMouseEnter:a.props.onYearMouseEnter,onYearMouseLeave:a.props.onYearMouseLeave,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,showTimeInput:a.props.showTimeInput,showMonthYearPicker:a.props.showMonthYearPicker,showFullMonthYearPicker:a.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:a.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:a.props.showFourColumnMonthYearPicker,showYearPicker:a.props.showYearPicker,showQuarterYearPicker:a.props.showQuarterYearPicker,showWeekPicker:a.props.showWeekPicker,showPopperArrow:a.props.showPopperArrow,excludeScrollbar:a.props.excludeScrollbar,handleOnKeyDown:a.props.onKeyDown,handleOnDayKeyDown:a.onDayKeyDown,isInputFocused:a.state.focused,customTimeInput:a.props.customTimeInput,setPreSelection:a.setPreSelection},a.props.children):null}),ct(At(a),"renderAriaLiveRegion",function(){var o,s=a.props,l=s.dateFormat,c=s.locale,u=a.props.showTimeInput||a.props.showTimeSelect?"PPPPp":"PPPP";return o=a.props.selectsRange?"Selected start date: ".concat(nT(a.props.startDate,{dateFormat:u,locale:c}),". ").concat(a.props.endDate?"End date: "+nT(a.props.endDate,{dateFormat:u,locale:c}):""):a.props.showTimeSelectOnly?"Selected time: ".concat(nT(a.props.selected,{dateFormat:l,locale:c})):a.props.showYearPicker?"Selected year: ".concat(nT(a.props.selected,{dateFormat:"yyyy",locale:c})):a.props.showMonthYearPicker?"Selected month: ".concat(nT(a.props.selected,{dateFormat:"MMMM yyyy",locale:c})):a.props.showQuarterYearPicker?"Selected quarter: ".concat(nT(a.props.selected,{dateFormat:"yyyy, QQQ",locale:c})):"Selected date: ".concat(nT(a.props.selected,{dateFormat:u,locale:c})),ke.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),ct(At(a),"renderDateInput",function(){var o,s=sg(a.props.className,ct({},hjt,a.state.open)),l=a.props.customInput||ke.createElement("input",{type:"text"}),c=a.props.customInputRef||"ref",u=typeof a.props.value=="string"?a.props.value:typeof a.state.inputValue=="string"?a.state.inputValue:a.props.selectsRange?function(d,h,f){if(!d)return"";var p=nT(d,f),m=h?nT(h,f):"";return"".concat(p," - ").concat(m)}(a.props.startDate,a.props.endDate,a.props):nT(a.props.selected,a.props);return ke.cloneElement(l,(ct(ct(ct(ct(ct(ct(ct(ct(ct(ct(o={},c,function(d){a.input=d}),"value",u),"onBlur",a.handleBlur),"onChange",a.handleChange),"onClick",a.onInputClick),"onFocus",a.handleFocus),"onKeyDown",a.onInputKeyDown),"id",a.props.id),"name",a.props.name),"form",a.props.form),ct(ct(ct(ct(ct(ct(ct(ct(ct(ct(o,"autoFocus",a.props.autoFocus),"placeholder",a.props.placeholderText),"disabled",a.props.disabled),"autoComplete",a.props.autoComplete),"className",sg(l.props.className,s)),"title",a.props.title),"readOnly",a.props.readOnly),"required",a.props.required),"tabIndex",a.props.tabIndex),"aria-describedby",a.props.ariaDescribedBy),ct(ct(ct(o,"aria-invalid",a.props.ariaInvalid),"aria-labelledby",a.props.ariaLabelledBy),"aria-required",a.props.ariaRequired)))}),ct(At(a),"renderClearButton",function(){var o=a.props,s=o.isClearable,l=o.disabled,c=o.selected,u=o.startDate,d=o.endDate,h=o.clearButtonTitle,f=o.clearButtonClassName,p=f===void 0?"":f,m=o.ariaLabelClose,g=m===void 0?"Close":m;return!s||c==null&&u==null&&d==null?null:ke.createElement("button",{type:"button",className:sg("react-datepicker__close-icon",p,{"react-datepicker__close-icon--disabled":l}),disabled:l,"aria-label":g,onClick:a.onClearClick,title:h,tabIndex:-1})}),a.state=a.calcInitialState(),a.preventFocusTimeout=null,a}return bm(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,a){var o,s;r.inline&&(o=r.selected,s=this.props.selected,o&&s?dv(o)!==dv(s)||Ns(o)!==Ns(s):o!==s)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:ljt(this.props.highlightDates)}),a.focused||lD(r.selected,this.props.selected)||this.setState({inputValue:null}),a.open!==this.state.open&&(a.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),a.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props,a=r.showIcon,o=r.icon,s=r.calendarIconClassname,l=r.toggleCalendarOnIconClick,c=this.state.open;return ke.createElement("div",{className:"react-datepicker__input-container".concat(a?" react-datepicker__view-calendar-icon":"")},a&&ke.createElement(kYo,Cz({icon:o,className:"".concat(s," ").concat(c&&"react-datepicker-ignore-onclickoutside")},l?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var a=this.state.open?ke.createElement(OZn,{enableTabLoop:this.props.enableTabLoop},ke.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(a=ke.createElement(PZn,{portalId:this.props.portalId,portalHost:this.props.portalHost},a)),ke.createElement("div",null,this.renderInputContainer(),a)}return ke.createElement(MYo,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Gee,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(),PYo="input",d7e="navigate";const OYo=gt.div`
  .react-datepicker {
    font-family: ${t=>t.theme.typography.fontFamily};
    background: ${t=>t.theme.custom.popupBg};
    box-shadow: 0px 70.6195px 47.0797px rgb(24 15 42 / 20%);
    border: 1px solid ${t=>t.theme.custom.chartThumbnailActive};
    color: ${t=>t.theme.custom.greyText.A9};
    &-popper {
      z-index: 99999;
    }
    &__navigation-icon {
      width: 100%;
      &--previous::before,
      &--next::before {
        left: 50%;
        top: 50%;
        border-width: 2px 2px 0 0;
      }
      &--previous::before {
        transform: translate(-50%, -50%) rotate(225deg);
      }
      &--next::before {
        transform: translate(-50%, -50%) rotate(45deg);
      }
    }
    &__current-month,
    &__day-name {
      color: ${t=>t.theme.custom.white.A1};
    }
    &__header {
      background: ${t=>t.theme.custom.thumbnailImgBg};
      border-bottom: 0;
    }
    &__day {
      color: ${t=>t.theme.custom.greyText.A9};
      &:not(&--selected):hover,
      &--keyboard-selected {
        background: ${t=>t.theme.custom.secondaryBg};
      }
      &--outside-month:not(&--selected) {
        opacity: 0.5;
      }
      &--selected {
        background: ${t=>t.theme.custom.primaryBg};
        color: ${t=>t.theme.custom.white.A1};
      }
    }
    &__triangle {
      display: none;
    }
  }
  .react-datepicker-popper[data-placement^='top'] {
    padding-bottom: 0;
  }
  .react-datepicker-popper[data-placement^='bottom']
    .react-datepicker__triangle::before,
  .react-datepicker-popper[data-placement^='bottom']
    .react-datepicker__triangle::after {
    border-bottom-color: ${t=>t.theme.custom.chartThumbnailActive};
  }
  .MuiInputAdornment-root {
    background: transparent;
    cursor: pointer;
  }
`,$P=({selectedDate:t,onDateChange:e,maxDate:n,label:r,theme:a,minDate:o=null,startDate:s=null,endDate:l=null,selectsStart:c=!1,addForward:u=!1,shouldConvert:d=!1})=>{const h=f=>{if(!d){e(f);return}const p=new Date(f),m=p.getFullYear(),g=p.getMonth(),v=p.getDate(),A=new Date;if(A.setFullYear(m),A.setMonth(g),A.setDate(v),u){A.setUTCHours(11,59,59),e(A.toISOString());return}A.setUTCHours(0,0,0);const y=A.toISOString();e(y)};return E.jsx(OYo,{theme:a,children:E.jsx(IYo,{maxDate:n,minDate:o,selected:t,onChange:h,startDate:s,endDate:l,selectsStart:c,placeholderText:"mm/dd/yyyy",customInput:E.jsx(gr,{label:r,endAdornment:E.jsx(Kx,{position:"end",children:E.jsx(Ami,{})}),theme:a})})})},LZn=()=>{const n=r0a(),r=i0a(),{totalPages:a=0,totalElements:o=0}=(n==null?void 0:n.pageable)||{},{content:s=[]}=n||{},[l,c]=Y.useState({}),[u,d]=Y.useState("Duration"),[h,f]=Y.useState(null),[p,m]=Y.useState({sortOrder:"ASC",sortBy:"",pageNo:1,pageSize:20,from:"",to:"",duration:7}),g=!!(p!=null&&p.from&&(p!=null&&p.to)),v=T=>{const M={from:Hl({value:p==null?void 0:p.from,format:"iso"}),to:Hl({value:p==null?void 0:p.to,format:"iso"}),pageNo:p==null?void 0:p.pageNo,pageSize:p==null?void 0:p.pageSize,...T},D=Co.stringify({...M},{arrayFormat:"bracket"});m0a(D)},A=T=>{T.from&&(p!=null&&p.to)?v({from:Hl({value:T.from,format:"iso"}),to:Hl({value:p==null?void 0:p.to,format:"iso"}),pageNo:1}):T.to&&(p!=null&&p.from)&&v({from:Hl({value:p==null?void 0:p.from,format:"iso"}),to:Hl({value:T.to,format:"iso"}),pageNo:1}),m(M=>({...M,...T,duration:7}))},y=T=>{const{from:M,to:D}=eTe(T),B=Hl({value:M,format:"iso"}),j=Hl({value:D,format:"iso"});v({from:B,to:j,pageNo:1}),m(H=>({...H,pageNo:1,from:M,to:D,duration:T}))},S=T=>{var D;const M=Number(((D=T==null?void 0:T.target)==null?void 0:D.value)||0);y(M)},x=T=>{d(T),f(null)},w=()=>{m(T=>({...T,pageNo:1,from:"",to:"",duration:7})),d(Jm.Duration),y(7)};Y.useEffect(()=>{y(7)},[]);const _=T=>{c(M=>({...M,pageNo:T}))},C=T=>{_(T)},R=T=>{c(M=>({...M,pageSize:T,pageNo:1}))},k=(T,M)=>{const D=M==="ASC"?"DESC":"ASC";m(B=>({...B,sortBy:T,sortOrder:D}))},P=T=>{const{amount:M=0}=T||{};return M},N=T=>{const{providerId:M=""}=T||{};return M},L=T=>{const{subscriptionId:M=""}=T||{};return M},I=T=>{const{currency:M}=T||{};return M.toUpperCase()},b=T=>{const{timestamp:M=""}=T||{};return Sf(M,hgi)};return E.jsxs(Fu,{children:[E.jsxs("div",{className:"filterBlock",children:[E.jsxs(Er,{container:!0,spacing:2,sx:{mb:2},children:[u==="Duration"&&E.jsx(Er,{item:!0,sm:6,xs:12,children:E.jsxs(Ba,{name:"analytics",value:p==null?void 0:p.duration,pr:q.SELECT_DURATION,onChange:T=>{S(T)},label:q.USAGE_OF_LAST,className:"sizeLarge",children:[E.jsx(Dn,{value:0,disabled:!0,className:"selectPlaceholder",children:q.SELECT_DURATION}),Px==null?void 0:Px.map(T=>E.jsx(Dn,{value:T==null?void 0:T.value,selected:(T==null?void 0:T.value)===(p==null?void 0:p.duration),children:E.jsx("div",{className:"optionText",children:T.label})},T==null?void 0:T.value))]})}),u==="Range"&&E.jsxs(E.Fragment,{children:[E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsx("div",{className:"formGroup",children:E.jsx($P,{selectedDate:p!=null&&p.from?new Date(p==null?void 0:p.from):"",onDateChange:T=>{A({from:T})},maxDate:p!=null&&p.to?new Date(p==null?void 0:p.to):new Date,label:q.FROM,startDate:p!=null&&p.from?new Date(p==null?void 0:p.from):"",endDate:p!=null&&p.to?new Date(p==null?void 0:p.to):"",shouldConvert:!0})})}),E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsx("div",{className:"formGroup",children:E.jsx($P,{selectedDate:p!=null&&p.to?new Date(p==null?void 0:p.to):"",onDateChange:T=>{A({to:T})},minDate:p!=null&&p.from?new Date(p==null?void 0:p.from):"",maxDate:new Date,label:q.TO,addForward:!0,shouldConvert:!0,startDate:p!=null&&p.from?new Date(p==null?void 0:p.from):"",endDate:p!=null&&p.to?new Date(p==null?void 0:p.to):""})})})]}),E.jsxs(Er,{item:!0,xs:!0,sx:{textAlign:"right"},children:[g&&(p==null?void 0:p.duration)!==7&&E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:()=>w(),children:E.jsx(_v,{})}),E.jsx(_n,{tooltip:q.FILTER,onClick:T=>f(T.currentTarget),children:E.jsx(NK,{})})]})]}),E.jsx(lE,{anchorEl:h,open:!!h,onClose:()=>f(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:ywe.map(({value:T})=>E.jsx(Dn,{selected:T===u,onClick:()=>x(T),children:T},T))})]}),E.jsx(tf,{data:s,columns:t0a,isAction:!1,rowRender:[{dataKey:"subscriptionId",func:L},{dataKey:"provider",func:N},{dataKey:"amount",func:P},{dataKey:"currency",func:I},{dataKey:"timestamp",func:b}],loading:r,rowSize:60,bodyHeight:240,onItemsSort:k,sortOrder:(p==null?void 0:p.sortOrder)||"",sortBy:(p==null?void 0:p.sortBy)||""}),(r?!0:(s==null?void 0:s.length)!==0)&&E.jsx(EE,{onChange:C,count:a,page:(l==null?void 0:l.pageNo)||0,onPageChange:_,totalElements:o,onPageSizeChange:R,isGotoPage:!0,isPageSize:!0,pageSize:(l==null?void 0:l.pageSize)||0,defaultSize:20})]})};var adt={},LYo=As;Object.defineProperty(adt,"__esModule",{value:!0});var BZn=adt.default=void 0,BYo=LYo(Ps()),DYo=E;BZn=adt.default=(0,BYo.default)((0,DYo.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");const DZn=()=>{const t=L_e(),e=async()=>{YU(!0),await w0a(),YU(!1)};return E.jsx(cm,{color:"secondary",disabled:t,handleClick:n=>n.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.LEAVE_SUBSCRIPTION_TOOLTIP,title:q.LEAVE_SUBSCRIPTION_TOOLTIP,confirmMessage:q.LEAVE_SUBSCRIPTION_MESSAGE,description:"",supportText:q.SUPPORT_LINK_MESSAGE,onConfirm:n=>{n.stopPropagation(),e()},children:t?E.jsx("img",{src:ws,alt:"loading",height:50}):q.LEAVE_SUBSCRIPTION},"leaveSubscription")},$Yo=({setShowPlanDetail:t,subscriptionData:e,paymentConfigurationType:n})=>{const{plan:r,subscriptionId:a,balance:o=0,current_period_end:s,usageConfig:l,isBalanceLoading:c}=e,{planName:u,chargeType:d,cost:h}=r||{},f=L_e(),p=Ait(),m=async()=>{if(e!=null&&e.isSubscriptionCancelled)return;YU(!0),await g0a({subscription_id:a}),YU(!1)};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"cardHead",children:[q.MANAGE_SUBSCRIPTION,E.jsx(Jt,{onClick:()=>t(!1),variant:"contained",color:"secondary",children:q.BACK})]}),E.jsxs("div",{className:"subscriptionDetail",children:[E.jsx("div",{className:"type",children:u||""}),d===zh.COMPUTE_BASED?E.jsxs("div",{className:"info",children:[E.jsx("div",{className:"head",children:q.BALANCE}),E.jsx(Pn,{label:`${o} ${q.CREDIT_UNIT}`,children:E.jsxs("h2",{className:`unit ${o<0&&"negative"}`,children:[ev(o)," ",q.CREDIT_UNIT,c&&E.jsx(tC,{})]})})]}):E.jsxs("div",{className:"info",children:[E.jsx("div",{className:"head",children:q.COST}),E.jsx("h2",{children:h})]}),(p==null?void 0:p.offeringId)&&(l==null?void 0:l.autoPayOnQuotaExceeded)&&E.jsx("div",{className:"planDetail",children:X3r({selectedOffering:p,usageConfig:l})})]}),E.jsxs("div",{className:"buttonRow",children:[n==="creditcard"&&d===zh.COMPUTE_BASED&&E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>bit(!0),children:q.PURCHASE_STU}),E.jsxs(cm,{color:"secondary",disabled:f||(e==null?void 0:e.isSubscriptionCancelled),handleClick:g=>g.stopPropagation(),confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.CANCEL_SUBSCRIPTION_TOOLTIP(),title:q.CANCEL_SUBSCRIPTION_TOOLTIP(),confirmMessage:q.REMOVE_CONFIRM_CANCEL_MESSAGE(u,Sf(s,yAe),d),description:"",supportText:q.SUPPORT_LINK_MESSAGE,onConfirm:g=>{g.stopPropagation(),m()},children:[f&&E.jsx("img",{src:ws,alt:"loading",height:36}),!f&&(e!=null&&e.isSubscriptionCancelled)?q.SUBSCRIPTION_CANCELLED:q.CANCEL_SUBSCRIPTION]},"cancelSubscription"),E.jsx(DZn,{})]}),n==="creditcard"&&d===zh.COMPUTE_BASED&&E.jsxs("div",{className:"configureAutoPay",children:[q.CONFIGURE_AUTOPAY,E.jsx(_n,{tooltip:q.CONFIGURE_AUTOPAY,onClick:()=>JAe(!0),children:E.jsx(BZn,{})})]})]})},$Zn=({setSelectedOffering:t,selectedOffering:e,disabled:n,usageConfig:r})=>{const{data:a,loading:o}=s0a();return Y.useLayoutEffect(()=>{$hn({usageConfig:r}),a!=null&&a.length&&!(r!=null&&r.offeringId)&&t(a[0])},[]),E.jsx(Er,{item:!0,sm:6,children:E.jsxs("div",{className:"offerings",children:[E.jsx("div",{className:"cardHead",children:q.AVAILABLE_OFFERINGS}),E.jsx("ul",{className:"offeringList",children:!o&&(a==null?void 0:a.map(s=>E.jsxs("li",{role:"presentation",className:(e==null?void 0:e.offeringId)===s.offeringId?"selected":"",onClick:()=>!n&&t(s),children:[(r==null?void 0:r.offeringId)===s.offeringId&&E.jsx("span",{className:"checkMark",children:E.jsx(ooe,{})}),E.jsxs("h2",{children:[s.units," ",q.CREDIT_UNIT]}),E.jsxs("div",{className:"rightInfo",children:[E.jsxs("div",{className:"price",children:["$",s.cost,s.discount>0&&E.jsxs("span",{className:"originalPrice",children:["$",s.units]})]}),E.jsxs("span",{className:"tag",children:[s.discount*100,"% ",q.DISCOUNT]})]})]},s.offeringId)))})]})})};var odt={},FYo=As;Object.defineProperty(odt,"__esModule",{value:!0});var FZn=odt.default=void 0,jYo=FYo(Ps()),HYo=E;FZn=odt.default=(0,jYo.default)((0,HYo.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");const jZn=({setMultiplierValue:t,multiplierValue:e,selectedOffering:n})=>{const r=()=>{(Number(e)||1)+1<100&&t((Number(e)||1)+1)},a=()=>{(Number(e)||1)-1>=1&&t((Number(e)||1)-1)},o=l=>{const{value:c}=l.target;if(!c){t(c);return}if(Number(c)<1){t(1);return}if(Number(c)>100){t(100);return}t(c)},s=()=>{let l=e;if(Number.isNaN(l)){l=1,t(l);return}l=Number(l),!(l>=1&&l<=100)&&(l<1&&(l=1),l>100&&(l=100),t(l))};return E.jsxs("div",{className:"offeringRow",children:[E.jsxs("div",{className:"unit",children:[(n==null?void 0:n.units)||0," ",q.CREDIT_UNIT]}),E.jsx("div",{className:"multiplier",children:E.jsx(gr,{value:e,startAdornment:E.jsx(Kx,{position:"start",children:E.jsx(FZn,{onClick:a})}),endAdornment:E.jsx(Kx,{position:"end",children:E.jsx(Xhn,{onClick:r})}),name:"decimal",type:"number",onBlur:s,onChange:o})}),E.jsxs("div",{className:"price",children:["$",(((n==null?void 0:n.units)||0)*(Number(e)||1)).toFixed(2)]})]})},UYo=({subscriptionData:t})=>{var C,R;const{usageConfig:e,balance:n=0,isBalanceLoading:r}=t,a=Ait(),o=Rga(),[s,l]=Y.useState(!1),[c,u]=Y.useState(!1),[d,h]=Y.useState(!!(e!=null&&e.offeringId)||!1),[f,p]=Y.useState(a),[m,g]=Y.useState(Math.abs(e==null?void 0:e.autoPurchaseCreditThreshold)||100),[v,A]=Y.useState((e==null?void 0:e.offeringMult)||1),y=Y.useMemo(()=>Vfn({cost:f==null?void 0:f.cost,units:f==null?void 0:f.units,multiplierValue:Number(v)||1}),[v,f==null?void 0:f.cost,f==null?void 0:f.units]),S=k=>{const{value:P}=k.target;if(!P){g(P);return}if(Math.abs(Number(P))>15e3){g(15e3);return}g(Math.abs(Number(P)))},x=k=>{V1a(k.key)||k.preventDefault()},w=()=>{let k=m;(!k||Number.isNaN(k))&&(k=(e==null?void 0:e.autoPurchaseCreditThreshold)||100,g(k)),k=Number(k),k>15e3&&(k=15e3)},_=async(k,P)=>{const N=k;if(P===q.AUTO_LOAD_TOGGLE&&!(k!=null&&k.offeringId)){h(!d);return}P===q.AUTO_LOAD_TOGGLE&&(k!=null&&k.offeringId)&&(N.autoPayOnQuotaExceeded=e==null?void 0:e.autoPayOnQuotaExceeded,N.autoPurchaseCreditThreshold=null,N.offeringId=null,N.offeringMult=null),P===q.AUTO_LOAD_TOGGLE?u(!0):l(!0),await Ekt(N,P),P===q.AUTO_LOAD_TOGGLE?(p({offeringId:"",units:0,cost:0,discount:0}),g(100),A(1),u(!1),h(!1)):l(!1)};return E.jsxs("div",{children:[E.jsxs("div",{className:"cardHead",children:[q.CONFIGURE_AUTO_PURCHASE," ",q.CREDIT_UNIT,E.jsx(Jt,{onClick:()=>JAe(!1),variant:"contained",color:"secondary",children:q.BACK})]}),E.jsxs("div",{className:"autoPay",children:[E.jsxs("div",{className:"autoPayBlock",children:[E.jsxs("div",{className:"enableAutoPay",children:[q.AUTOMATIC_CHARGE,E.jsx(d8,{checked:e==null?void 0:e.autoPayOnQuotaExceeded,handleChange:()=>_({...e,autoPayOnQuotaExceeded:!(e!=null&&e.autoPayOnQuotaExceeded)},q.AUTOMATIC_CHARGE_TYPE_TOGGLE),showText:q.DISABLED,hideText:q.ENABLED,className:"aiSwitch",isDisabled:c,isLoading:s})]}),E.jsx("p",{children:q.AUTOMATIC_CHARGE_TEXT})]}),E.jsxs("div",{className:"autoPayBlock",children:[E.jsxs("div",{className:"enableAutoPay",children:[q.AUTO_LOAD_STU,E.jsx(d8,{checked:!!(e!=null&&e.offeringId)||d,handleChange:()=>_({...e,autoPayOnQuotaExceeded:!!(e!=null&&e.offeringId)},q.AUTO_LOAD_TOGGLE),showText:q.DISABLED,hideText:q.ENABLED,className:"aiSwitch",isDisabled:s,isLoading:c})]}),E.jsx("p",{children:q.AUTO_LOAD_STU_TEXT})]})]}),d&&E.jsxs(Er,{container:!0,spacing:3,children:[E.jsx($Zn,{selectedOffering:f,setSelectedOffering:p,disabled:o,usageConfig:e}),E.jsx(Er,{item:!0,sm:6,children:E.jsxs("div",{className:"creditOfferings",children:[E.jsx("div",{className:"currentBalanceSettlement",children:E.jsxs("div",{className:"currentBalance",children:[E.jsx("div",{className:"title",children:q.CURRENT_BALANCE}),E.jsx(Pn,{label:`${n} ${q.CREDIT_UNIT}`,children:E.jsxs("span",{className:`unit ${n<0&&"negative"}`,children:[ev(n)," ",q.CREDIT_UNIT,r&&E.jsx(tC,{})]})})]})}),E.jsx(jZn,{multiplierValue:v,setMultiplierValue:A,selectedOffering:f}),E.jsxs("div",{className:"totalCosting",children:[E.jsxs("div",{className:"row",children:[q.SUB_TOTAL,":"," ",E.jsxs("span",{children:["$",(C=((f==null?void 0:f.units)||0)*Number(v)||1)==null?void 0:C.toFixed(2)]})]}),E.jsxs("div",{className:"row",children:[q.DISCOUNT,":"," ",E.jsxs("span",{children:["- $",y==null?void 0:y.toFixed(2)]})]}),E.jsxs("div",{className:"row rowTotal",children:[q.TOTAL,":"," ",E.jsxs("span",{children:["$",(R=((f==null?void 0:f.cost)||0)*Number(v)||1)==null?void 0:R.toFixed(2)]})]})]}),E.jsxs("div",{className:"thresholdInput",children:[E.jsx("div",{className:"thresholdLable",children:q.SET_THRESHOLD}),E.jsx(Pn,{label:q.THRESHOLD_INFO_TEXT(m),children:E.jsx("div",{className:"thresholInfo",children:E.jsx(cg,{fontSize:"small",className:"infoIcon"})})}),E.jsx(gr,{value:m,name:"decimal",type:"number",onChange:S,disabled:o,onBlur:w,onKeyPress:x})]}),E.jsx("div",{className:"payNow",children:E.jsx(Jt,{variant:"contained",color:"primary",disabled:!(f!=null&&f.offeringId)||Number.isNaN(m)||Number.isNaN(v)||Number(v)<1||Number(v)>100||Number(m)>15e3||o,onClick:()=>{Ekt({...e,autoPayOnQuotaExceeded:!0,autoPurchaseCreditThreshold:Number(m)||100,offeringId:f==null?void 0:f.offeringId,offeringMult:v},q.CONFIG_UPDATE_TYPE_BUTTON,e==null?void 0:e.offeringId)},children:o?q.SETTING_AUTOPAY:[e!=null&&e.offeringId?q.UPDATE_AUTOPAY_ON_THRESHOLD:q.AUTOPAY_ON_THRESHOLD]})})]})})]})]})},zYo=({subscriptionData:t})=>{const{balance:e=0,isBalanceLoading:n,usageConfig:r}=t,a=Ait(),[o,s]=Y.useState(1),[l,c]=Y.useState(a),[u,d]=Y.useState(!1),h=Y.useMemo(()=>Vfn({cost:l==null?void 0:l.cost,units:l==null?void 0:l.units,multiplierValue:Number(o)||1}),[o,l==null?void 0:l.cost,l==null?void 0:l.units]);return E.jsxs("div",{children:[E.jsxs("div",{className:"cardHead",children:[q.PURCHASE," ",q.CREDIT_UNIT,E.jsx(Jt,{onClick:()=>bit(!1),variant:"contained",color:"secondary",children:q.BACK})]}),E.jsxs(Er,{container:!0,spacing:3,children:[E.jsx($Zn,{selectedOffering:l,setSelectedOffering:c,disabled:u,usageConfig:r}),E.jsx(Er,{item:!0,sm:6,children:E.jsxs("div",{className:"creditOfferings ",children:[E.jsx("div",{className:"currentBalanceSettlement",children:E.jsxs("div",{className:"currentBalance",children:[E.jsx("div",{className:"title",children:q.CURRENT_BALANCE}),E.jsx(Pn,{label:`${e} ${q.CREDIT_UNIT}`,children:E.jsxs("span",{className:`unit ${e<0&&"negative"}`,children:[ev(e)," ",q.CREDIT_UNIT,n&&E.jsx(tC,{})]})})]})}),E.jsx(jZn,{multiplierValue:o,setMultiplierValue:s,selectedOffering:l}),E.jsxs("div",{className:"totalCosting",children:[E.jsxs("div",{className:"row",children:[q.SUB_TOTAL,":"," ",E.jsxs("span",{children:["$",(((l==null?void 0:l.units)||0)*(Number(o)||1)).toFixed(2)]})]}),E.jsxs("div",{className:"row",children:[q.DISCOUNT,":"," ",E.jsxs("span",{children:["- $",h==null?void 0:h.toFixed(2)]})]}),E.jsxs("div",{className:"row rowTotal",children:[q.TOTAL,":"," ",E.jsxs("span",{children:["$",(((l==null?void 0:l.cost)||0)*(Number(o)||1)).toFixed(2)]})]})]}),E.jsx("div",{className:"payNow",children:E.jsx(Jt,{variant:"contained",color:"primary",disabled:u||!(l!=null&&l.offeringId)||Number.isNaN(o)||Number(o)<1||Number(o)>100,onClick:()=>{x0a({offeringId:(l==null?void 0:l.offeringId)||"",offeringMult:Number(o)||1},l,d)},children:u?E.jsxs(E.Fragment,{children:[q.PURCHASING,E.jsx("img",{src:ws,alt:"loading",height:36})]}):q.PURCHASE})})]})})]})]})},DJ=gt.div`
  div {
    padding: 0px;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    width: 200px;
    span {
      display: block;
      font-size: 10px;
      font-style: italic;
    }
  }
`,GYo=t=>{const{subscriptionData:e,loggedInUserRole:n}=t,r=Phn(),a=Qdn(),o=dga(),s=Zdn(),l=hga(),[c,u]=Y.useState(sF.mySubscription),[d,h]=Y.useState(!1),[f,p]=Y.useState(a.type==="zkPay");Y.useState(!1);const[m,g]=Y.useState(!1),v=Moe(),{data:A}=v,{plan:y,providerName:S,subscriptionName:x,subscriptionId:w,current_period_start:_,current_period_end:C,balance:R=0,isBalanceLoading:k,cycleDate:P}=e,{planName:N,cost:L,cycleDate:I,chargeType:b}=y||{};ev(R);const T=z1a(_,C),M=Ohn(),D=Lhn(),{freeQueriesCount:B}=Xdn(),j=Z=>{var K;u(((K=Z.target)==null?void 0:K.value)||sF.mySubscription)},H=s.keychain.filter(Z=>Z.scheme==="eth").map(Z=>Z.key);Y.useEffect(()=>{qAe(!1),Iy(""),b===zh.COMPUTE_BASED&&Qhn()},[]);const U=()=>{n===np.owner&&b===zh.COMPUTE_BASED&&qhn(),h(!0)},$=(Z,K,Q)=>{X0a(Z,K,Q,ee=>{ee===400&&g(!0)})},z=()=>E.jsxs(E.Fragment,{children:[!d&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"cardHead",children:w?q.MY_SUBSCRIPTION:q.CHOOSE_SUBSCRIPTION_OPTION}),E.jsx(Tp,{className:"loginToolbar",children:E.jsx(eA,{value:c,exclusive:!0,onChange:j,children:n===np.owner&&E.jsx(Xs,{size:"small",className:"tabButton",value:sF.moreSubscription,"aria-label":q.MORE_SUBSCRIPTION,children:q.MORE_SUBSCRIPTION})})}),c===sF.mySubscription&&E.jsxs(E.Fragment,{children:[(N||L)&&E.jsx("div",{className:"subcriptionCard",children:E.jsxs("div",{className:"cardInfo",children:[E.jsx("span",{className:"checkMark",children:E.jsx(ooe,{})}),E.jsx("div",{className:"plantype",children:N}),E.jsx("div",{className:"planDetail",children:E.jsx("h2",{children:L})}),n===np.owner&&E.jsx("div",{className:"subcriptionBtn",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:U,children:q.MANAGE_SUBSCRIPTION})})]})}),n===np.owner&&(y==null?void 0:y.chargeType)===zh.COMPUTE_BASED&&E.jsxs("div",{className:"currentBalanceSettlement",children:[E.jsxs("div",{className:"currentBalance",children:[E.jsx("div",{className:"title",children:q.CURRENT_BALANCE}),E.jsx(Pn,{label:`${R} ${q.CREDIT_UNIT}`,children:E.jsxs("span",{className:`unit ${R<0&&"negative"}`,children:[ev(R)," ",q.CREDIT_UNIT,k&&E.jsx(tC,{})]})})]}),E.jsxs("div",{className:"currentBalance",children:[E.jsx("div",{className:"title",children:E.jsx(Pn,{label:q.DEFAULT_FREE_QUERY_TEXT,children:E.jsx("span",{children:q.FREE_QUERY_BALANCE})})}),E.jsx(Pn,{label:`${B||0} ${q.QUERIES}`,children:E.jsxs("span",{className:`unit ${B&&B<=0&&"negative"}`,children:[B||0,k&&E.jsx(tC,{})]})})]}),U3==="true"]}),E.jsxs("div",{className:"blockThirdWrapper",children:[E.jsxs("div",{className:"cardHead",children:[q.PLAN_DETAILS," ",E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>{qAe(!0),aw(!0)},children:q.PAYMENT_HISTORY})]}),E.jsxs("ul",{children:[N&&E.jsxs("li",{children:[E.jsx(Pn,{tooltipPlacement:"right",label:E.jsx(DJ,{children:E.jsxs("div",{children:[E.jsxs("strong",{children:[q.PLAN_NAME,": "]}),E.jsx("span",{children:q.PLAN_NAME_INFO})]})}),children:E.jsxs("p",{className:"labelName",children:[E.jsx("strong",{children:`${q.PLAN_NAME}:`})," "]})}),E.jsx("p",{className:"labelInfo",children:N||"NA"})]}),S&&E.jsxs("li",{children:[E.jsx(Pn,{tooltipPlacement:"right",label:E.jsx(DJ,{children:E.jsxs("div",{children:[E.jsxs("strong",{children:[q.PROVIDER_NAME,": "]}),E.jsx("span",{children:q.PROVIDER_NAME_INFO})]})}),children:E.jsxs("p",{className:"labelName",children:[E.jsx("strong",{children:`${q.PROVIDER_NAME}:`})," "]})}),E.jsx("p",{className:"labelInfo",children:S||"NA"})]}),x&&E.jsxs("li",{children:[E.jsx(Pn,{tooltipPlacement:"right",label:E.jsx(DJ,{children:E.jsxs("div",{children:[E.jsxs("strong",{children:[q.SUBSCRIPTION_NAME,": "]}),E.jsx("span",{children:q.SUBSCRIPTION_NAME_INFO})]})}),children:E.jsxs("p",{className:"labelName",children:[E.jsx("strong",{children:`${q.SUBSCRIPTION_NAME}:`})," "]})}),E.jsx("p",{className:"labelInfo",children:x||"NA"})]}),w&&E.jsxs("li",{children:[E.jsx(Pn,{tooltipPlacement:"right",label:E.jsx(DJ,{children:E.jsxs("div",{children:[E.jsxs("strong",{children:[q.SUBSCRIPTION_ID,": "]}),E.jsx("span",{children:q.SUBSCRIPTION_ID_INFO})]})}),children:E.jsxs("p",{className:"labelName",children:[E.jsxs("strong",{children:[" ",`${q.SUBSCRIPTION_ID}:`]})," "]})}),E.jsx("p",{className:"labelInfo",children:w||"NA"})]}),E.jsxs("li",{children:[E.jsx(Pn,{tooltipPlacement:"right",label:E.jsx(DJ,{children:E.jsxs("div",{children:[E.jsxs("strong",{children:[q.BILLING,": "]}),E.jsx("span",{children:q.BILLING_INFO})]})}),children:E.jsx("p",{className:"labelName",children:E.jsxs("strong",{children:[" ",`${q.BILLING}:`," "]})})}),E.jsx("p",{className:"labelInfo",children:b===zh.FIXED_COST?T:[b===zh.COMPUTE_BASED&&P?`${q.BILLING_CYCLE_TEXT_INTRO} ${Fkt(P)} ${q.BILLING_CYCLE_TEXT_END}`:`${q.BILLING_CYCLE_TEXT_INTRO} ${Fkt(I)} ${q.BILLING_CYCLE_TEXT_END}`]})]})]})]}),E.jsxs("div",{className:"paymentMethod",children:[E.jsxs("div",{className:"cardHead",style:n===np.admin||n===np.member?{display:"flex",flexDirection:"row",justifyContent:"center"}:{marginBottom:"3px"},children:[A!=null&&A.length&&n===np.owner?q.PAYMENT_METHOD:"",(n===np.admin||n===np.member)&&E.jsx(DZn,{})]}),n===np.owner&&E.jsxs("p",{className:"labelInfo",children:[a.type==="creditcard"&&q.CREDIT_CARD_PAYMENT_METHOD_HEADER,U3==="true",a.type==="none"&&q.CHOOSE_FROM_FOLLOWING_PAYMENT_HEADER]}),n===np.owner&&a.type==="creditcard"&&E.jsx(vZn,{}),n===np.owner&&a.type==="none"&&E.jsxs("div",{children:[E.jsxs(Jt,{className:"addCardBtn btnFull",variant:"contained",color:"secondary",size:"large",onClick:()=>{aw(!0),Iy("")},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(Nme,{})}),A!=null&&A.length?q.ADD_ANOTHER_CARD:q.PAY_WITH_CREDIT_CARD]}),U3==="true"]}),n===np.owner&&U3==="true"&&a.type==="zkPay"&&E.jsxs("div",{children:[E.jsx("div",{style:{marginTop:"15px"},children:E.jsx(fqo,{isZKToken:!0,wallets:H,setZKTokenUpdateStatus:()=>p(!f),hoveringDisabled:f,onSavePayment:$,zkTokenLoadingStatus:l,userSavedChain:o.chainId,insufficentBalanceError:m,userSavedToken:o.tokenAddr})}),E.jsxs(Jt,{style:{marginTop:"25px"},className:"addCardBtn btnFull",variant:"contained",color:"secondary",size:"large",onClick:()=>{aw(!0),Iy("")},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(Nme,{})}),A!=null&&A.length?q.ADD_ANOTHER_CARD:q.SWITCH_TO_CREDIT_CARD]})]}),n===np.owner&&(S==null?void 0:S.toLowerCase())==="stripe"&&E.jsxs(Jt,{className:"addCardBtn btnFull",variant:"contained",color:"secondary",size:"large",onClick:()=>{aw(!0),Iy("")},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(Nme,{})}),A!=null&&A.length?q.ADD_ANOTHER_CARD:q.ADD_CARD]})]})]}),c===sF.moreSubscription&&E.jsx(iJn,{}),r&&E.jsx(LZn,{})]}),d&&E.jsx($Yo,{paymentConfigurationType:a.type,setShowPlanDetail:h,subscriptionData:e})]});return E.jsxs("div",{className:"panelContent",children:[!M&&!D&&z(),D&&E.jsx(UYo,{subscriptionData:e}),M&&E.jsx(zYo,{subscriptionData:e})]})},VYo=t=>{var a,o;const{subscriptionData:e,loggedInUserRole:n}=t;return((o=(a=e==null?void 0:e.providerName)==null?void 0:a.toLowerCase())==null?void 0:o.includes("azure"))?E.jsx(OVo,{subscriptionData:e}):E.jsx(GYo,{subscriptionData:e,loggedInUserRole:n})},KYo=({subscriptionData:t,loggedInUserRole:e})=>{const n=H_e(),[r,a]=Y.useState(!1),[o,s]=Y.useState(""),l=Moe(),{data:c}=l,{state:u="",subscriptionId:d,isLoading:h=!1}=t||{},f=Y.useMemo(()=>h?E.jsx(Fu,{className:"subscriptionBlock subscriptionPanel",children:E.jsx(rJn,{})}):null,[h]);return(()=>{if(h)return f;if(u===kne.active||d)return E.jsx(Fu,{className:"subscriptionBlock subscriptionPanel",children:E.jsx(VYo,{subscriptionData:t,loggedInUserRole:e})});const m=async()=>{a(!0);const g=(o==null?void 0:o.trim())||"";await Vhn({joinCode:g}),a(!1),s(""),!(c!=null&&c.length)&&YAe()};return E.jsx(Fu,{className:"subscriptionPanel",children:E.jsx("div",{className:"panelContent",children:u!==kne.active&&!d&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:`${(n==null?void 0:n.length)>0?"joinCode":"noBorder"}`,children:[E.jsx("div",{className:"cardHead",children:q.JOIN_SUBSCRIPTION}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{onChange:g=>{var A;const v=((A=g.target)==null?void 0:A.value)||"";s(v)},value:o,placeholder:q.JOINCODE_PLACEHOLDER,label:q.JOINCODE_LABEL})}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{disabled:!(o!=null&&o.trim())||r,onClick:m,variant:"contained",color:"primary",children:r?E.jsx("img",{src:ws,alt:"loading",height:50}):q.SUBMIT})})]}),E.jsx("div",{className:"cardHead",children:q.CHOOSE_SUBSCRIPTION_OPTION}),E.jsx(iJn,{})]})})})})()},WYo=({setShowChangePassword:t})=>{const[e,n]=Y.useState(!1),[r,a]=Y.useState({tempPassword:"",newPassword:"",confirmPassword:""}),o=(c,u)=>{var h;const d=((h=c==null?void 0:c.currentTarget)==null?void 0:h.value)||"";a(f=>({...f,[u]:d}))},s=async()=>{n(!0);const c={userId:(localStorage==null?void 0:localStorage.getItem("userId"))||"",tempPassword:r==null?void 0:r.tempPassword,newPassword:r==null?void 0:r.newPassword},{status:u=500}=await zhn(c);u&&n(!1),u===204&&t(!1)},l=()=>r!=null&&r.newPassword?ez(r==null?void 0:r.newPassword)?r.newPassword===r.tempPassword?q.SAME_PASSWORD_ERROR:"":q.INVAILD_PASSWORD:"";return E.jsx(Er,{item:!0,sm:12,children:E.jsxs(Fu,{children:[E.jsx("div",{className:"cardHead",children:q.CHANGE_PASSWORD_TEXT}),E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.CURRENT_PASSWORD_LABEL,placeholder:q.CURRENT_PASSWORD_PLACEHOLDER,value:r==null?void 0:r.tempPassword,onChange:c=>o(c,"tempPassword")})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.RESET_NEW_PASSWORD_LABEL,value:r==null?void 0:r.newPassword,onChange:c=>o(c,"newPassword"),errorText:l()})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.CHANGE_CONFIRM_PASSWORD_LABEL,value:r==null?void 0:r.confirmPassword,onChange:c=>o(c,"confirmPassword"),errorText:r!=null&&r.newPassword&&(r!=null&&r.confirmPassword)&&(r==null?void 0:r.newPassword)!==(r==null?void 0:r.confirmPassword)?q.PASSWORD_NOT_SAME:""})}),E.jsxs("div",{className:"updateBtnRow",children:[E.jsx(Jt,{variant:"contained",color:"primary",onClick:s,disabled:!(r!=null&&r.tempPassword&&(r!=null&&r.newPassword)&&(r!=null&&r.confirmPassword)&&(r==null?void 0:r.newPassword)===(r==null?void 0:r.confirmPassword)&&(r==null?void 0:r.newPassword)!==(r==null?void 0:r.tempPassword)&&ez(r==null?void 0:r.newPassword))||e,children:e?E.jsx("img",{src:ws,alt:"loading",height:40}):q.UPDATE})," ",E.jsx(Jt,{variant:"contained",color:"secondary",disabled:e,onClick:()=>t(!1),children:q.CANCEL_BUTTON_TEXT})]})]})]})})},QYo="/assets/authorization-ecec6f24.png",sdt="/assets/success-7572929e.gif",qYo=({userInput:t,isSubmit:e=!1,handleUpdateUserForm:n,loggedInUserId:r="",loggedInUserRole:a,subscriptionData:o,handleInputChange:s})=>{var Q;const l=localStorage.getItem("loginType")||"",c=ho(),u=gga(),d=H_e(),h=Moe(),{data:f}=h,p=Mga(),m=Lhn(),g=qdn(),{utmCampaign:v=""}=Jdn(),A=Ohn(),y=Zdn(),S=c0a(),x=l0a(),{balance:w,plan:_,isLoading:C=!1}=o||{},{chargeType:R}=_||{},k=bE(),{walletProvider:P}=van(),{address:N,isConnected:L}=Aan(),I=fga(),b=Y.useRef(null),T=Y.useMemo(()=>localStorage.getItem("accessToken")||u||"",[u]),M=Y.useMemo(()=>{var X,te;if(!((X=y==null?void 0:y.keychain)!=null&&X.length))return"u";let ee="";return(te=y==null?void 0:y.keychain)==null||te.every(({scheme:J,key:ne})=>J==="eth"&&ne?(ee=ne,!1):!0),ee},[y]),[D,B]=Y.useState(!1),[j,H]=Y.useState(!1),[U,$]=Y.useState(!1);Y.useEffect(()=>{(async()=>{L&&c&&T$e({ethereumWallet:$o.walletconnect,setIsSubmit:$,walletConnectAddress:N,walletConnectProvider:P})})()},[L]);const z=ee=>{var X;ee.key==="Enter"&&(X=t==null?void 0:t.userName)!=null&&X.trim()&&t!=null&&t.IsEmailValid&&!e&&n()},Z=Y.useMemo(()=>j?E.jsx(WYo,{setShowChangePassword:H}):null,[j]);Y.useEffect(()=>{c&&(!a||a===np.owner)&&(!d.length&&Dhn(),!(f!=null&&f.length)&&YAe(),!g&&L0a())},[c]),Y.useEffect(()=>{if(v&&!(o!=null&&o.subsriptionId)&&(d!=null&&d.length)&&!(o!=null&&o.isLoading)&&(o==null?void 0:o.state)==="NA"){const ee=v==null?void 0:v.toLowerCase();d==null||d.every(({name:X="",price_id:te="",product_id:J="",product_type:ne=""})=>{var ie,he,de,ce;return((ie=X==null?void 0:X.toLowerCase())!=null&&ie.includes(ee)||(he=te==null?void 0:te.toLowerCase())!=null&&he.includes(ee)||(de=J==null?void 0:J.toLowerCase())!=null&&de.includes(ee)||(ce=ne==null?void 0:ne.toLowerCase())!=null&&ce.includes(ee))&&te?(Yhn({}),qAe(!1),aw(!0),Iy(te),!1):!0})}},[d==null?void 0:d.length,o]),Y.useEffect(()=>{I===!0&&b&&b.current&&b.current.scrollIntoView&&b.current.scrollIntoView()},[I]);const K=()=>{if(R===zh.COMPUTE_BASED)return q.UPGRADE_SUBSCRIPTION_FIXED_SUCCESS_MESSAGE;if(R===zh.FIXED_COST){if(w===0)return q.UPGRADE_SUBSCRIPTION_COMPUTE_ZERO_BALANCE_SUCCESS_MESSAGE;if(w<S)return q.UPGRADE_SUBSCRIPTION_COMPUTE_WITH_LESS_BALANCE_SUCCESS_MESSAGE;if(w>S)return q.UPGRADE_SUBSCRIPTION_COMPUTE_WITH_GREATER_BALANCE_SUCCESS_MESSAGE}return""};return E.jsxs(E.Fragment,{children:[Z,!j&&E.jsxs(E.Fragment,{children:[!m&&!A&&E.jsxs(Er,{item:!0,sm:6,children:[E.jsxs(Fu,{className:"myAccount",children:[E.jsx("div",{className:"cardHead",children:q.ACCOUNT_DETAILS_TEXT}),E.jsxs("div",{className:"userInfo",children:[E.jsx("div",{className:"userAvatar",children:E.jsx("img",{src:Z_e(""),alt:"user-avatar"})}),E.jsxs("div",{className:"userDetail",children:[E.jsx("h3",{children:l===q.WEB3LOGIN&&q.WALLET_TEXT}),E.jsx(Pn,{label:r,children:E.jsxs("span",{children:[r," ",!(o!=null&&o.subscriptionId)&&`(${q.TRIAL})`]})}),(M==null?void 0:M.length)>0&&E.jsx(Pn,{label:M,children:E.jsx("span",{className:"connectedWalletAddress",children:o1e(M)})}),E.jsx("div",{className:"userRole",children:a?`(${a})`:""})]})]}),E.jsxs("div",{className:"formContent",children:[p&&E.jsxs(E.Fragment,{children:[E.jsx(fg,{message:q.UPDATE_USERID_MESSAGE}),E.jsxs("div",{className:"formGroup",children:[E.jsx(gr,{label:`${q.USERID_LABEL}`,onChange:ee=>s(ee,"userId"),placeholder:q.USERID_PLACEHOLDER,value:t==null?void 0:t.userId,required:!0}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>{var ee;tAa({userId:(ee=t==null?void 0:t.userId)==null?void 0:ee.trim(),callback:B})},disabled:!((Q=t==null?void 0:t.userId)!=null&&Q.trim())||D,children:D?E.jsx("img",{src:ws,alt:"loading",height:50}):q.UPDATE_BUTTON_TEXT})})]}),E.jsx("div",{className:"divider"})]}),E.jsx("div",{className:"formGroup"}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.EMAIL_LABEL}`,onChange:ee=>s(ee,"emailAddr"),placeholder:k!=null&&k.emailAddr?q.EMAIL_PLACEHOLDER:q.ADD_EMAIL_LABEL,warningText:q.MAX_LENGTH_ERROR(q.LOGIN_EMAIL_LABEL,K3),value:t==null?void 0:t.emailAddr,maxValue:K3,hasMax:!0,onKeyDown:z,errorText:!(t!=null&&t.IsEmailValid)&&(t!=null&&t.emailAddr)?q.INVAILD_EMAIL:"",required:!0})})]}),E.jsxs("div",{className:"updateBtnRow",children:[E.jsx(Jt,{variant:"contained",color:"primary",onClick:n,disabled:!(t!=null&&t.emailAddr&&(t!=null&&t.IsEmailValid))||e,children:e?E.jsx("img",{src:ws,alt:"loading",height:50}):[k!=null&&k.emailAddr?q.EMAIL_PLACEHOLDER:q.ADD_EMAIL_LABEL]}),localStorage.getItem("loginType")!=="web3"&&E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>H(!0),children:q.CHANGE_PASSWORD_TEXT})]}),!((M==null?void 0:M.length)>0)&&l===q.WEB2LOGIN&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"divider",ref:b}),E.jsxs("div",{className:"otherLoginOption",children:[E.jsx(fg,{message:q.CONNECT_A_WALLET_HELP_TEXT}),E.jsx("div",{className:"loginOption walletLogin",children:E.jsx(Yse,{handleCoinbaseLogin:()=>T$e({ethereumWallet:$o.coinbase,setIsSubmit:$}),handleMetamaskLogin:()=>T$e({ethereumWallet:$o.metamask,setIsSubmit:$}),initiallyOpen:I,disabled:U})})]})]})]}),E.jsxs(Fu,{children:[E.jsx("div",{className:"cardHead",children:q.EXPLORE_SXT_DOCS}),E.jsx("img",{src:QYo,alt:"bearer-token",className:"tokenImg"}),E.jsxs("p",{className:"cardDescription",children:[q.EXPLORE_SXT_DOCS_INFO," ",E.jsx("a",{href:Cgi,target:"_blank",rel:"noreferrer",children:q.LEARN_MORE_HERE})]}),E.jsx("div",{className:"formGroup accessTokenField",children:E.jsx(gr,{label:`${q.ACCESS_TOKEN}:`,value:`${T.slice(0,6)}...${T.slice(T.length-5,T.length)}`,endAdornment:E.jsx(Kx,{position:"end",children:E.jsx(y9,{textToCopy:T})}),readOnly:!0})}),E.jsx("div",{className:"cardButton",children:E.jsx("a",{href:Tgi,target:"_blank",rel:"noreferrer",children:E.jsxs(Jt,{variant:"contained",color:"primary",children:[q.EXPLORE_DOC,E.jsx("span",{className:"iconRight",children:E.jsx(oN,{})})]})})})]}),E.jsxs(Fu,{children:[E.jsx("div",{className:"cardHead",children:q.AUTH_PERMISSIONS}),E.jsx("p",{className:"cardDescription",children:q.CARD_DESCRIPTION}),E.jsx("div",{className:"cardButton",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>WB(zm.permissionSecret),children:q.OPEN_SECRETS})})]})]}),E.jsx(Er,{item:!0,sm:A||m?12:6,children:E.jsx(KYo,{subscriptionData:o,loggedInUserRole:a})})]}),E.jsx(lf,{maxWidth:"xs",isHeader:!1,visible:x,onClose:()=>{Bhn(!1),f0a(0)},children:E.jsxs(GYn,{className:"upgradeSuccess",children:[E.jsx("img",{src:sdt,alt:"success"}),E.jsx("div",{className:"title",children:q.CONGRATULATIONS}),E.jsx("p",{children:C?E.jsxs(E.Fragment,{children:[E.jsx(Ca,{sx:{mx:"auto"},width:"90%",height:"100%"}),E.jsx(Ca,{sx:{mx:"auto"},width:"90%",height:"100%"}),E.jsx(Ca,{sx:{mx:"auto"},width:"90%",height:"100%"}),E.jsx(Ca,{sx:{mx:"auto"},width:"90%",height:"100%"})]}):K()})]})})]})},YYo=t=>{const{setIsPaymentCompleted:e,onCloseSubscriptionFlow:n,productType:r,emailDetails:a}=t,o=Y.useRef(!0),s=Vir(),l=jir(),[c,u]=Y.useState(!1),[d,h]=Y.useState(!1),f=Moe(),p=bE(),{data:m}=f,g=vV(),v=fN(),{subscriptionId:A}=v,y=localStorage.getItem("userId")||"",S=Y.useMemo(()=>{var N;return v&&(v!=null&&v.card_id)?v==null?void 0:v.card_id:((N=m==null?void 0:m.find(L=>(L==null?void 0:L.default_source)===!0))==null?void 0:N.card_id)||""},[m,v]),[x,w]=Y.useState({cardNumber:!1,cardExpiry:!1,cardCvc:!1,userName:""});Y.useEffect(()=>()=>{o.current=!1},[]);const _=async P=>{if(P.preventDefault(),!(!s||!l)){u(!0);try{const N=l.getElement(upt),{token:L,error:{message:I}=""}=await s.createToken(N,{name:x==null?void 0:x.userName});if(L!=null&&L.id){if(!g||d){const D={card_token:L.id,user_name:x==null?void 0:x.userName},{status:B}=await p0a(D,A,g);if(B===q.RESPONSE_SUCCESS_STATUS){await nH(),YAe(),o.current&&(!d&&n(),u(!1),h(!1));return}return}const b={card_token:L.id,price_id:g},{paymentData:T,status:M}=await ykt(b);if(M===q.RESPONSE_SUCCESS_STATUS){const{code:D={}}=T;if(xkt({...D}),a!=null&&a.emailAddr&&(p==null?void 0:p.emailAddr)!==(a==null?void 0:a.emailAddr)){const B={...p,emailAddr:a==null?void 0:a.emailAddr};AO(y,B),Iy("")}o.current&&e(!0),await nH(),YAe()}u(!1)}else Kn(I),u(!1)}catch(N){u(!1),Kn(N==null?void 0:N.message)}}},C=async()=>{u(!0);const P={card_id:S,price_id:g},{paymentData:N,status:L}=await ykt(P);if(await nH(),L===q.RESPONSE_SUCCESS_STATUS){const{code:I={}}=N;xkt({...I}),o.current&&(u(!1),e(!0))}else u(!1)},R=P=>{const{elementType:N}=P;w(L=>({...L,[N]:P.complete}))},k=P=>{const N=P.target.value||"";w(L=>({...L,userName:N}))};return E.jsx(Mqo,{children:(m==null?void 0:m.length)>0&&!d&&!(v!=null&&v.subscriptionId)?E.jsxs(E.Fragment,{children:[E.jsx(vZn,{}),E.jsx(Jt,{variant:"contained",color:"primary",className:"payAddBtn btnFull",disabled:c,onClick:C,children:c?E.jsx("img",{src:ws,alt:"loading",height:50}):[g?q.PAY_NOW:q.ADD_CARD]}),E.jsxs(Jt,{className:"addCardBtn btnFull",variant:"contained",color:"secondary",onClick:()=>{h(!0)},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(Nme,{})}),q.ADD_ANOTHER_CARD]})]}):E.jsxs("form",{onSubmit:_,children:[E.jsxs("div",{className:"paymentForm",children:[E.jsxs("div",{className:"formField",children:[E.jsx("div",{className:"fieldLabel",children:`${q.CARD_NUMBER}*`}),E.jsx(upt,{options:YLe,onChange:R})]}),E.jsxs("div",{className:"formField",children:[E.jsx("div",{className:"fieldLabel",children:`${q.EXPIRATION_DATE}*`}),E.jsx(Kir,{options:YLe,onChange:R})]}),E.jsxs("div",{className:"formField",children:[E.jsx("div",{className:"fieldLabel",children:`${q.SECURITY_CODE}*`}),E.jsx(Wir,{options:YLe,onChange:R})]}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.CARDNAME_LABEL}`,onChange:P=>k(P),placeholder:q.CARDNAME_PLACEHOLDER,warningText:q.MAX_LENGTH_ERROR(q.CARDNAME_LABEL,K3),value:x==null?void 0:x.userName,maxValue:K3,hasMax:!0})})]}),E.jsx("div",{className:"updateBtnRow addCardFooter",children:E.jsx(Jt,{variant:"contained",color:"primary",className:"subcriptionBtn",type:"submit",disabled:!(x!=null&&x.cardNumber&&(x!=null&&x.cardExpiry)&&(x!=null&&x.cardCvc))||!(a!=null&&a.isEmailValid)||c,children:c?E.jsx("img",{src:ws,alt:"loading",height:36}):[g&&!d&&r!==l3.USAGE_BASED?q.PAY_NOW:q.ADD_CARD]})})]})})},JYo=t=>{const{onCloseSubscriptionFlow:e,setShowLoginDrawer:n}=t,[r,a]=Y.useState(!1),[o,s]=ke.useState(!1),l=Phn(),c=vV(),u=H_e(),d=fN(),h=bE(),[f,p]=Y.useState(!1),m=Qdn(),{plan:g}=d,{chargeType:v}=g||{},[A,y]=Y.useState({emailAddr:"",isEmailValid:!0});Xdn(),Y.useEffect(()=>{var _;(_=Object.keys(h))!=null&&_.length&&y(C=>({...C,emailAddr:h==null?void 0:h.emailAddr}))},[h]);const S=Y.useMemo(()=>{if(!c||!(u!=null&&u.length))return{product_type:"",name:""};const _=u==null?void 0:u.filter(({price_id:C})=>(C==null?void 0:C.toString())===(c==null?void 0:c.toString()));return _!=null&&_.length?_[0]||{product_type:"",name:""}:{product_type:"",name:""}},[c,u]),x=_=>(C,R)=>{s(R?_:!1)};Y.useEffect(()=>{r&&setTimeout(()=>{e()},1500)},[r]);const w=()=>{p(!0),z0a(c,()=>{e(),p(!0)})};return E.jsx("div",{className:"subcriptionFlow",children:r?E.jsxs(GYn,{className:"successBlock",children:[E.jsx("img",{src:sdt,alt:"success"}),E.jsx("div",{className:"title",children:q.CONGRATULATIONS}),E.jsx("p",{children:q.SUCCESS_MSG})]}):E.jsxs(E.Fragment,{children:[E.jsxs(Tp,{className:"loginToolbar stickyTop",children:[E.jsx("div",{className:"toolbarTitle",children:l?q.PAYMENT_HISTORY:q.GET_STARTED_WITH(v===zh.COMPUTE_BASED?l3.USAGE_BASED:S==null?void 0:S.name)}),E.jsxs("div",{className:"toolbarRight",children:[E.jsx(Jt,{variant:"contained",color:"secondary",size:"small",className:"logoutBtn",onClick:e,children:q.BACK}),E.jsx(_n,{onClick:()=>n(!1),children:E.jsx(Wl,{})})]})]}),l?E.jsx(Er,{container:!0,children:E.jsx(Er,{item:!0,sm:12,children:E.jsx(LZn,{})})}):E.jsxs(Er,{container:!0,spacing:2,children:[E.jsx(Er,{item:!0,sm:6,xs:12,children:E.jsxs(Fu,{className:"subscriptionBlock",children:[E.jsx("div",{className:"cardHead",children:(S==null?void 0:S.product_type)===l3.USAGE_BASED||v===zh.COMPUTE_BASED?q.PAYMENT_USAGE_BASED_CARD_HEADER:q.PAYMENT_FIXED_COST_CARD_HEADER}),E.jsx("div",{className:"planInfoAutoPay",children:(S==null?void 0:S.product_type)===l3.USAGE_BASED||v===zh.COMPUTE_BASED?"":q.PAYMENT_FIXED_COST_SUB_HEADER}),E.jsx("div",{className:"faqAccordian",children:(S==null?void 0:S.product_type)===l3.USAGE_BASED||v===zh.COMPUTE_BASED?E.jsx("p",{children:`${q.PAYMENT_USAGE_BASED_DESC} ${q.DEFAULT_FREE_QUERIES_TEXT}`}):E.jsx("p",{children:q.PAYMENT_FIXED_COST_DESC})}),((S==null?void 0:S.product_type)===l3.USAGE_BASED||v===zh.COMPUTE_BASED)&&E.jsx("div",{className:"faqAccordian",children:n0a.map(_=>E.jsxs(mD,{expanded:o===_.id,onChange:x(_.id),className:"faqBlock",children:[E.jsx(vD,{className:"faqTitle",expandIcon:E.jsx(Qy,{}),children:_.ques}),E.jsx(gD,{className:"faqBody",children:E.jsxs(E.Fragment,{children:[_.ans,_.ansWithLink&&E.jsx("a",{target:"_blank",className:"faqAnchorLinks",href:`${window.location.origin}/ZKpay`,rel:"noreferrer",children:q.VIEW_HERE_ANCHOR_LINK}),_.ans2&&E.jsx("br",{}),_.ans2&&E.jsx("br",{}),_.ans2?_.ans2:null]})})]}))})]})}),E.jsx(Er,{item:!0,sm:6,xs:12,children:E.jsxs(Fu,{className:"subscriptionBlock",children:[E.jsxs("div",{className:"cardHead",style:{marginBottom:"10px"},children:[Object.keys(m).length===0?q.CARD_DETAILS:q.CONFIGURE_CREDIT_CARD_PAYMENT,f&&E.jsx(tC,{})]}),Object.keys(m).length===0&&E.jsxs("div",{className:"creditCardHeaderWrapper",children:[E.jsx("div",{className:"regularCreditCardHeader",children:q.SET_CREDIT_CARD}),(S==null?void 0:S.product_type)===l3.USAGE_BASED&&E.jsx(Jt,{className:"skipPaymentButton",variant:"contained",color:"secondary",size:"small",onClick:w,children:q.SKIP_PAYMENT})]}),U3==="true",E.jsx(YYo,{emailDetails:A,productType:(S==null?void 0:S.product_type)||"",setIsPaymentCompleted:a,onCloseSubscriptionFlow:e})]})})]})]})})},Vee=gt.div`
  && {
    background: ${t=>t.theme.custom.boxBg};
    padding: 16px;
    border-radius: 8px;
    &.graph {
      padding-bottom: 0;
    }
    &.counter {
      .alertMessageBlock {
        height: 225px;
      }
    }
    .cardHead {
      margin-bottom: 16px;
    }
    .cardBody {
      position: relative;
      .downloadAsImage {
        top: 0;
        right: 0;
      }
    }
    .counterWidget {
      .counterCard {
        height: 225px;
        background: ${t=>t.theme.custom.secondaryBg};
      }
    }
  }
`,HZn=({loading:t,content:e,filter:n})=>{const r={chartType:"column_chart",fields:{legendEnabled:!0,xField:"timestamp",yField:"usage"}},a=e==null?void 0:e.map(m=>Object.values(m)),{dataFrames:o}=Qwe(e),s=qwe(o),{from:l="",to:c=""}=n,d=!!(l&&c)?`${q.USAGE_SUMMARY}: ${Fd.utc(l).local().format("D MMM YYYY")} - ${Fd.utc(c).local().format("D MMM YYYY")}`:q.USAGE_PER_DAY,f=(m=>{if((m==null?void 0:m.length)===0)return[];const g=Object.keys(m[0]);return g==null?void 0:g.map(A=>({fieldName:A}))})(e),p=_V(f);return t?E.jsx(RTe,{}):(e==null?void 0:e.length)===0&&!t||Ft.isEmpty(p)?E.jsx(sf,{title:"Insufficient data to plot usage metrics",imgPath:Uoe,imgPathWebp:zoe,className:"emptyData"}):E.jsxs(Er,{container:!0,spacing:2,children:[E.jsx(Er,{item:!0,sm:7,xs:12,children:E.jsxs(Vee,{className:"graph",children:[E.jsx("div",{className:"cardHead",children:E.jsx("span",{className:"cardHeadTitle",children:d})}),E.jsx("div",{className:"cardBody",children:E.jsx(xse,{isRunning:t,config:Ese({data:e,chartConfigurationData:r}).config,type:"column_chart",style:{height:240}})})]})}),E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsxs(Vee,{className:"counter",children:[E.jsx("div",{className:"cardHead",children:E.jsxs("span",{className:"cardHeadTitle",children:[q.TOTAL_USAGE," "]})}),E.jsx(w1e,{queryError:!1,data:a,columns:f,isRunning:t,isPreview:!0,counterFields:{columnName:"usage",metric:"SUM",label:q.SUM_OF_USAGE,decimal:2},counterTooltipPlacement:"bottom",dataframesObject:s})]})})]})},GCe="/assets/logo-full-ce821669.svg",ZYo=t=>{const n="DAY",{filters:r,setFilters:a}=t,o=Tga(),{userUsageFilters:s}=r,[l,c]=Y.useState(null),[u,d]=Y.useState(Jm.Duration),{from:h,to:f,duration:p,aggregateBy:m}=s,{data:g={},loading:v=!1}=o,{content:A=[],error:y="",pageable:S={totalPages:0,number:0,size:0,numberOfElements:0,totalElements:0},status:x=200}=g,{totalPages:w=0,number:_=1,size:C=10,totalElements:R=0}=S,k=!!(h&&f),P=({timestamp:B})=>E.jsx("span",{children:Fd.utc(B).local().format("MM-DD-YYYY HH:mm")}),N=B=>{let j={from:Hl({value:h,format:"iso"}),to:Hl({value:f,format:"iso"}),pageNo:_,pageSize:C,...B};j=ef(j);const H=Co.stringify({...j});Y0a(H)},L=(B,j)=>{const{from:H,to:U}=eTe(B),$=Hl({value:H,format:"iso"}),z=Hl({value:U,format:"iso"});N({from:$,to:z,pageNo:1,pageSize:10,aggregateBy:j}),a({...r,userUsageFilters:{...s,from:H,to:U,duration:B,aggregateBy:j}})},I=B=>{const j=Number((B==null?void 0:B.value)||0);L(j,B==null?void 0:B.aggregateBy)},b=B=>{const j=(B==null?void 0:B.value)||"";L(p,j)},T=B=>{B.from&&f?N({from:Hl({value:B.from,format:"iso"}),to:Hl({value:f,format:"iso"}),pageNo:1,pageSize:10,aggregateBy:""}):B.to&&h&&N({from:Hl({value:h,format:"iso"}),to:Hl({value:B.to,format:"iso"}),pageNo:1,pageSize:10,aggregateBy:""}),a({...r,userUsageFilters:{...s,...B,duration:p,aggregateBy:m}})},M=()=>{a({...r,userUsageFilters:{...s,from:"",to:"",duration:7,aggregateBy:n}}),d(Jm.Duration),L(7,n)},D=B=>{a({...r,userUsageFilters:{...s,aggregateBy:""}}),d(B),c(null)};return Y.useEffect(()=>{L(p,n)},[]),E.jsxs("div",{children:[E.jsx("div",{className:"usageInfo",children:E.jsx(fg,{message:q.USER_USAGE_INFO})}),E.jsxs(Er,{container:!0,spacing:2,sx:{mb:2},alignItems:"center",children:[((A==null?void 0:A.length)>0||k)&&u===Jm.Duration&&E.jsx(Er,{item:!0,sm:3,xs:12,children:E.jsxs(Ba,{name:"analytics",value:p,pr:"Select Duration",label:q.USAGE_OF_LAST,className:"sizeLarge",children:[" ",E.jsx(Dn,{value:0,disabled:!0,className:"",children:E.jsx("div",{className:"optionText",children:q.SELECT_DURATION})}),Px==null?void 0:Px.map(B=>E.jsx(Dn,{value:B==null?void 0:B.value,selected:(B==null?void 0:B.value)===p,onClick:()=>{I(B)},children:E.jsx("div",{className:"optionText",children:B.label})},B==null?void 0:B.value))]})}),((A==null?void 0:A.length)>0||k)&&u===Jm.Range&&E.jsxs(E.Fragment,{children:[E.jsx(Er,{item:!0,sm:3,xs:12,children:E.jsx("div",{className:"formGroup datePicker",children:E.jsx($P,{selectedDate:h?new Date(h):"",onDateChange:B=>{T({from:B})},maxDate:f?new Date(f):new Date,label:q.FROM,startDate:h?new Date(h):"",endDate:f?new Date(f):"",shouldConvert:!0})})}),E.jsx(Er,{item:!0,sm:3,xs:12,children:E.jsx("div",{className:"formGroup datePicker",children:E.jsx($P,{selectedDate:f?new Date(f):"",onDateChange:B=>{T({to:B})},minDate:h?new Date(h):"",maxDate:new Date,label:q.TO,addForward:!0,shouldConvert:!0,startDate:h?new Date(h):"",endDate:f?new Date(f):""})})})]}),((A==null?void 0:A.length)>0||k)&&u===Jm.Range&&E.jsx(Er,{item:!0,sm:3,xs:12,children:E.jsxs(Ba,{name:"analytics",value:m,pr:q.AGGREGATED_BY,label:q.AGGREGATED_BY,className:"sizeLarge",children:[" ",E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT_AGGREGATION}),nM==null?void 0:nM.map(B=>E.jsx(Dn,{value:B==null?void 0:B.value,selected:(B==null?void 0:B.value)===m,onClick:()=>{b(B)},children:E.jsx("div",{className:"optionText",children:B.label})},B==null?void 0:B.value))]})}),E.jsxs(Er,{item:!0,sm:3,xs:12,sx:{marginLeft:"auto"},children:[((A==null?void 0:A.length)>0||k)&&E.jsxs("div",{className:"filterRow",children:[k&&E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:()=>M(),children:E.jsx(_v,{})}),E.jsx(_n,{tooltip:q.FILTER,onClick:B=>c(B.currentTarget),children:E.jsx(NK,{})})]}),E.jsx(lE,{anchorEl:l,open:!!l,onClose:()=>c(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:ywe.map(({value:B})=>E.jsx(Dn,{selected:B===u,onClick:()=>D(B),children:B},B))})]})]}),x!==200&&y&&E.jsx(Vc,{theme:qt,children:E.jsx("span",{children:y})}),!v&&(A==null?void 0:A.length)===0&&k&&!y&&E.jsx(Vc,{theme:qt,children:E.jsx("span",{children:q.EMPTY_DATA_USAGE})}),!k&&(A==null?void 0:A.length)===0&&!v&&!y?E.jsx(sf,{imgPath:GCe,description:q.WITHOUT_USAGE_DATA,className:"usageEmptyBlock"}):[(v||(A==null?void 0:A.length)>0)&&E.jsxs(E.Fragment,{children:[E.jsx(HZn,{loading:v,content:A,filter:s}),E.jsxs("div",{className:"listData",children:[E.jsxs("div",{className:"cardHead",children:[q.USAGE_DETAILS," "]}),E.jsx(tf,{data:A,columns:hnt,loading:v,isAction:!1,rowSize:60,bodyHeight:240,rowRender:[{dataKey:"timestamp",func:P}]}),v?!0:(A==null?void 0:A.length)!==0&&E.jsx(EE,{onChange:B=>{N({pageNo:B,aggregateBy:m})},count:w,page:_,onPageChange:B=>{N({pageNo:B,aggregateBy:m})},totalElements:R,onPageSizeChange:B=>{N({pageSize:B,pageNo:1,aggregateBy:m})},isGotoPage:!0,isPageSize:!0,pageSize:C,defaultSize:10})]})]})]]})},XYo=({loading:t,content:e,filter:n})=>{const r={chartType:"column_chart",fields:{legendEnabled:!0,xField:"timestamp",yField:"usage",y1Field:{chartType:"column",value:"cost"}}},a=e==null?void 0:e.map(m=>Object.values(m)),{dataFrames:o}=Qwe(e),s=qwe(o),{from:l="",to:c=""}=n,d=!!(l&&c)?`Usage Summary: ${Fd.utc(l).local().format("D MMM YYYY")} - ${Fd.utc(c).local().format("D MMM YYYY")}`:q.USAGE_PER_DAY,f=(m=>{if((m==null?void 0:m.length)===0)return[];const g=Object.keys(m[0]);return g==null?void 0:g.map(A=>({fieldName:A}))})(e),p=_V(f);return t?E.jsx(RTe,{}):(e==null?void 0:e.length)===0&&!t||Ft.isEmpty(p)?E.jsx(sf,{title:"Insufficient data to plot usage metrics",imgPath:Uoe,imgPathWebp:zoe,className:"emptyData"}):E.jsxs(Er,{container:!0,spacing:{xs:1,sm:3},children:[E.jsx(Er,{item:!0,xs:12,children:E.jsxs(Vee,{className:"graph",children:[E.jsx("div",{className:"cardHead",children:E.jsx("span",{className:"cardHeadTitle",children:d})}),E.jsx("div",{className:"cardBody",children:E.jsx(xse,{isRunning:t,config:Ese({data:e,chartConfigurationData:r}).config,type:"mix_chart"})})]})}),E.jsx(Er,{item:!0,sm:6,xs:12,children:E.jsxs(Vee,{className:"counter",children:[E.jsx("div",{className:"cardHead",children:E.jsxs("span",{className:"cardHeadTitle",children:[" ",q.TOTAL_USAGE]})}),E.jsx(w1e,{queryError:!1,data:a,columns:f,isRunning:t,isPreview:!0,counterFields:{columnName:"usage",metric:"SUM",label:q.SUM_OF_USAGE,decimal:2},counterTooltipPlacement:"bottom",dataframesObject:s})]})}),E.jsx(Er,{item:!0,sm:6,xs:12,children:E.jsxs(Vee,{className:"counter",children:[E.jsx("div",{className:"cardHead",children:E.jsx("span",{className:"cardHeadTitle",children:q.TOTAL_COST})}),E.jsx(w1e,{queryError:!1,data:a,columns:f,isRunning:t,isPreview:!0,isSuffix:!0,isUsageSuffix:!0,counterFields:{columnName:"cost",metric:"SUM",label:q.TOTAL_COST,decimal:2},counterTooltipPlacement:"bottom",dataframesObject:s})]})})]})},eJo=({filters:t,setFilters:e})=>{const r="DAY",a=kga(),{data:o={},loading:s=!1}=a,{subscriptionUsageFilters:l}=t,{from:c,to:u,duration:d,aggregateBy:h}=l,[f,p]=Y.useState(null),[m,g]=Y.useState(Jm.Duration),{content:v=[],error:A="",pageable:y={totalPages:0,number:0,size:0,numberOfElements:0,totalElements:0},status:S=200}=o,{totalPages:x=0,number:w=1,size:_=10,totalElements:C=0}=y,R=!!(c&&u),k=({timestamp:D})=>E.jsx("span",{children:Fd.utc(D).local().format("MM-DD-YYYY HH:mm")}),P=D=>{let B={from:Hl({value:c,format:"iso"}),to:Hl({value:u,format:"iso"}),pageNo:w,pageSize:_,...D};B=ef(B);const j=Co.stringify({...B});J0a(j)},N=(D,B)=>{const{from:j,to:H}=eTe(D),U=Hl({value:j,format:"iso"}),$=Hl({value:H,format:"iso"});P({from:U,to:$,pageNo:1,pageSize:10,aggregateBy:B}),e({...t,subscriptionUsageFilters:{...l,from:j,to:H,duration:D,aggregateBy:B}})},L=D=>{const B=Number((D==null?void 0:D.value)||0);N(B,D==null?void 0:D.aggregateBy)},I=D=>{const B=(D==null?void 0:D.value)||"";N(d,B)},b=D=>{D.from&&u?P({from:Hl({value:D.from,format:"iso"}),to:Hl({value:u,format:"iso"}),pageNo:1,pageSize:10,aggregateBy:""}):D.to&&c&&P({from:Hl({value:c,format:"iso"}),to:Hl({value:D.to,format:"iso"}),pageNo:1,pageSize:10,aggregateBy:""}),e({...t,subscriptionUsageFilters:{...l,...D,duration:7,aggregateBy:h}})},T=()=>{e({...t,subscriptionUsageFilters:{...l,from:"",to:"",duration:7,aggregateBy:r}}),g(Jm.Duration),N(7,r)},M=D=>{e({...t,subscriptionUsageFilters:{...l,aggregateBy:""}}),g(D),p(null)};return Y.useEffect(()=>{N(d,r)},[]),E.jsxs("div",{children:[E.jsx("div",{className:"usageInfo",children:E.jsx(fg,{message:q.SUBSCRIPTION_USAGE_INFO})}),E.jsxs(Er,{container:!0,spacing:2,sx:{mb:2},alignItems:"center",children:[((v==null?void 0:v.length)>0||R)&&m===Jm.Duration&&E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsxs(Ba,{name:"analytics",value:d,label:q.USAGE_OF_LAST,className:"sizeLarge",children:[E.jsx(Dn,{value:0,disabled:!0,className:"",children:E.jsx("div",{className:"optionText",children:q.SELECT_DURATION})}),Px==null?void 0:Px.map(D=>E.jsx(Dn,{value:D==null?void 0:D.value,selected:(D==null?void 0:D.value)===d,onClick:()=>{L(D)},children:E.jsx("div",{className:"optionText",children:D.label})},D==null?void 0:D.value))]})}),((v==null?void 0:v.length)>0||R)&&m===Jm.Range&&E.jsxs(E.Fragment,{children:[E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsx("div",{className:"formGroup datePicker",children:E.jsx($P,{selectedDate:c?new Date(c):"",onDateChange:D=>{b({from:D})},maxDate:u?new Date(u):new Date,label:q.FROM,startDate:c?new Date(c):"",endDate:u?new Date(u):"",shouldConvert:!0})})}),E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsx("div",{className:"formGroup datePicker",children:E.jsx($P,{selectedDate:u?new Date(u):"",onDateChange:D=>{b({to:D})},minDate:c?new Date(c):"",maxDate:new Date,label:q.TO,addForward:!0,shouldConvert:!0,startDate:c?new Date(c):"",endDate:u?new Date(u):""})})})]}),((v==null?void 0:v.length)>0||R)&&m===Jm.Range&&E.jsx(Er,{item:!0,sm:3,xs:12,children:E.jsxs(Ba,{name:"analytics",value:h,pr:q.AGGREGATED_BY,label:q.AGGREGATED_BY,className:"sizeLarge",children:[" ",E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT_AGGREGATION}),nM==null?void 0:nM.map(D=>E.jsx(Dn,{value:D==null?void 0:D.value,selected:(D==null?void 0:D.value)===h,onClick:()=>{I(D)},children:E.jsx("div",{className:"optionText",children:D.label})},D==null?void 0:D.value))]})}),E.jsxs(Er,{item:!0,sm:2,xs:12,sx:{marginLeft:"auto"},children:[((v==null?void 0:v.length)>0||R)&&E.jsxs("div",{className:"filterRow",children:[R&&E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:()=>T(),children:E.jsx(_v,{})}),E.jsx(_n,{tooltip:q.FILTER,onClick:D=>p(D.currentTarget),children:E.jsx(NK,{})})]}),E.jsx(lE,{anchorEl:f,open:!!f,onClose:()=>p(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:ywe.map(({value:D})=>E.jsx(Dn,{selected:D===m,onClick:()=>M(D),children:D},D))})]})]}),S!==200&&A&&E.jsx(Vc,{theme:qt,children:E.jsx("span",{children:A})}),!s&&(v==null?void 0:v.length)===0&&R&&!A&&E.jsx(Vc,{theme:qt,children:E.jsx("span",{children:q.EMPTY_DATA_USAGE})}),!R&&(v==null?void 0:v.length)===0&&!s&&!A?E.jsx(sf,{imgPath:GCe,description:q.WITHOUT_USAGE_DATA,className:"usageEmptyBlock"}):[(s||(v==null?void 0:v.length)>0)&&E.jsxs(E.Fragment,{children:[E.jsx(XYo,{loading:s,content:v,filter:l}),E.jsxs("div",{className:"listData",children:[E.jsx("div",{className:"cardHead",children:q.USAGE_DETAILS}),E.jsx(tf,{data:v,columns:wgi,loading:s,isAction:!1,rowRender:[{dataKey:"timestamp",func:k}],rowSize:60,bodyHeight:240}),s?!0:(v==null?void 0:v.length)!==0&&E.jsx(EE,{onChange:D=>{P({pageNo:D})},count:x,page:w,onPageChange:D=>{P({pageNo:D})},totalElements:C,onPageSizeChange:D=>{P({pageSize:D,pageNo:1})},isGotoPage:!0,isPageSize:!0,pageSize:_,defaultSize:10})]})]})]]})},tJo=t=>{const n="DAY",{filters:r,setFilters:a}=t,o=Cga(),{memberUsageFilters:s}=r,{from:l,to:c,duration:u,userId:d,aggregateBy:h}=s,{data:f={},loading:p=!1}=o,[m,g]=Y.useState(null),[v,A]=Y.useState(Jm.Duration),{list:y={}}=N_e(),[S,x]=Y.useState(null),[w,_]=Y.useState([]),{content:C=[],error:R="",pageable:k={totalPages:0,number:0,size:0,numberOfElements:0,totalElements:0},status:P=200}=f,{totalPages:N=0,number:L=1,size:I=10,totalElements:b=0}=k,T=!!(l&&c);Y.useEffect(()=>{var ee;const Q=[];(ee=Object.keys(y))==null||ee.forEach(X=>{const te=y[X]||" member";Q.push({userId:X,role:te})}),_([...Q])},[y]);const M=({timestamp:Q})=>E.jsx("span",{children:Fd.utc(Q).local().format("MM-DD-YYYY HH:mm")}),D=Q=>{let ee={from:Hl({value:l,format:"iso"}),to:Hl({value:c,format:"iso"}),pageNo:L,pageSize:I,userId:d,...Q};ee=ef(ee);const X=Co.stringify({...ee});Z0a(X)},B=(Q,ee)=>{const{from:X,to:te}=eTe(Q),J=Hl({value:X,format:"iso"}),ne=Hl({value:te,format:"iso"});D({from:J,to:ne,pageNo:1,pageSize:10,aggregateBy:ee}),a({...r,memberUsageFilters:{...s,from:X,to:te,duration:Q,aggregateBy:ee}})},j=Q=>{const ee=Number((Q==null?void 0:Q.value)||0);B(ee,Q==null?void 0:Q.aggregateBy)},H=Q=>{const ee=(Q==null?void 0:Q.value)||"";B(u,ee)},U=Q=>{Q.from&&c?D({from:Hl({value:Q.from,format:"iso"}),to:Hl({value:c,format:"iso"}),pageNo:1,pageSize:10,aggregateBy:""}):Q.to&&l&&D({from:Hl({value:l,format:"iso"}),to:Hl({value:Q.to,format:"iso"}),pageNo:1,pageSize:10,aggregateBy:""}),a({...r,memberUsageFilters:{...s,...Q,duration:7,aggregateBy:h}})},$=Q=>{const{userId:ee=""}=Q||{};x(Q),a({...r,memberUsageFilters:{...s,userId:ee}})},z=()=>{a({...r,memberUsageFilters:{...s,from:"",to:"",duration:7,aggregateBy:n}}),B(7,n),A(Jm.Duration)},Z=Q=>{a({...r,memberUsageFilters:{...s,aggregateBy:""}}),A(Q),g(null)};Y.useEffect(()=>{d&&B(u,n)},[d]),Y.useEffect(()=>{a({...r,memberUsageFilters:{...s,userId:""}})},[]);const K={options:w,getOptionLabel:Q=>Q.userId};return E.jsxs("div",{className:"memberUsagePanel",children:[E.jsx("div",{className:"usageInfo",children:E.jsx(fg,{message:q.MEMBER_USAGE_INFO})}),E.jsxs("div",{className:"autoCompleteSearchDropdown",children:[E.jsx("div",{className:"fieldLabel",children:q.ORGANIZATION_MEMBERS}),E.jsx(iHe,{...K,disablePortal:!0,value:S,onChange:(Q,ee)=>{$(ee)},renderInput:Q=>E.jsx(lHe,{...Q,placeholder:`${q.SELECT} ${q.ORGANIZATION_MEMBERS}`,variant:"standard"}),popupIcon:E.jsx(Qy,{})})]}),E.jsxs(Er,{container:!0,spacing:2,sx:{mb:2},alignItems:"center",children:[((C==null?void 0:C.length)>0||T)&&v===Jm.Duration&&(w==null?void 0:w.length)>0&&d&&E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsxs(Ba,{name:"analytics",value:u,pr:"Select Duration",label:q.USAGE_OF_LAST,className:"sizeLarge",children:[" ",Px==null?void 0:Px.map(Q=>E.jsx(Dn,{value:Q==null?void 0:Q.value,selected:(Q==null?void 0:Q.value)===u,onClick:()=>{j(Q)},children:E.jsx("div",{className:"optionText",children:Q.label})},Q==null?void 0:Q.value))]})}),((C==null?void 0:C.length)>0||T)&&v===Jm.Range&&(w==null?void 0:w.length)>0&&d&&E.jsxs(E.Fragment,{children:[E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsx("div",{className:"formGroup datePicker",children:E.jsx($P,{selectedDate:l?new Date(l):"",onDateChange:Q=>{U({from:Q})},maxDate:c?new Date(c):new Date,label:q.FROM,startDate:l?new Date(l):"",endDate:c?new Date(c):"",shouldConvert:!0})})}),E.jsx(Er,{item:!0,sm:5,xs:12,children:E.jsx("div",{className:"formGroup datePicker",children:E.jsx($P,{selectedDate:c?new Date(c):"",onDateChange:Q=>{U({to:Q})},minDate:l?new Date(l):"",maxDate:new Date,label:q.TO,addForward:!0,shouldConvert:!0,startDate:l?new Date(l):"",endDate:c?new Date(c):""})})})]}),((C==null?void 0:C.length)>0||T)&&v===Jm.Range&&E.jsx(Er,{item:!0,sm:3,xs:12,children:E.jsxs(Ba,{name:"analytics",value:h,pr:q.AGGREGATED_BY,label:q.AGGREGATED_BY,className:"sizeLarge",children:[" ",E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT_AGGREGATION}),nM==null?void 0:nM.map(Q=>E.jsx(Dn,{value:Q==null?void 0:Q.value,selected:(Q==null?void 0:Q.value)===h,onClick:()=>{H(Q)},children:E.jsx("div",{className:"optionText",children:Q.label})},Q==null?void 0:Q.value))]})}),E.jsxs(Er,{item:!0,sm:2,xs:12,sx:{marginLeft:"auto"},children:[((C==null?void 0:C.length)>0||T)&&d&&E.jsxs("div",{className:"filterRow",children:[T&&(w==null?void 0:w.length)>0&&E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:()=>z(),children:E.jsx(_v,{})}),(w==null?void 0:w.length)>0&&E.jsx(_n,{tooltip:q.FILTER,onClick:Q=>g(Q.currentTarget),children:E.jsx(NK,{})})]}),E.jsx(lE,{anchorEl:m,open:!!m,onClose:()=>g(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:ywe.map(({value:Q})=>E.jsx(Dn,{selected:Q===v,onClick:()=>Z(Q),children:Q},Q))})]})]}),P!==200&&R&&E.jsx(Vc,{theme:qt,children:E.jsx("span",{children:R})}),!p&&(w==null?void 0:w.length)===0&&!R&&E.jsx(Vc,{theme:qt,children:E.jsx("span",{children:q.EMPTY_MEMBER})}),!p&&(C==null?void 0:C.length)===0&&d&&!R&&(w==null?void 0:w.length)>0?E.jsx(Vc,{theme:qt,children:E.jsx("span",{children:q.EMPTY_USER_DATA_USAGE})}):[(p||(C==null?void 0:C.length)>0)&&(w==null?void 0:w.length)>0&&d&&E.jsxs(E.Fragment,{children:[E.jsx(HZn,{loading:p,content:C,filter:s}),E.jsxs("div",{className:"listData",children:[E.jsx("div",{className:"cardHead",children:q.USAGE_DETAILS}),E.jsx(tf,{data:C,columns:hnt,loading:p,isAction:!1,rowSize:60,bodyHeight:240,rowRender:[{dataKey:"timestamp",func:M}]}),p?!0:(C==null?void 0:C.length)!==0&&E.jsx(EE,{onChange:Q=>{D({pageNo:Q})},count:N,page:L,onPageChange:Q=>{D({pageNo:Q})},totalElements:b,onPageSizeChange:Q=>{D({pageSize:Q,pageNo:1})},isGotoPage:!0,isPageSize:!0,pageSize:I,defaultSize:10})]})]})]]})},nJo=({subscriptionData:t})=>{const[e,n]=Y.useState(zI.user),r=7,a="DAY",[o,s]=Y.useState({userUsageFilters:{from:"",to:"",duration:r,aggregateBy:a},subscriptionUsageFilters:{from:"",to:"",duration:r,aggregateBy:a},memberUsageFilters:{from:"",to:"",duration:r,aggregateBy:a,userId:""}}),l=c=>{var d;const u=((d=c==null?void 0:c.currentTarget)==null?void 0:d.value)||"user";n(u)};return E.jsxs(Fu,{children:[E.jsx(Tp,{className:"loginToolbar",children:E.jsxs(eA,{value:e,exclusive:!0,onChange:l,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:zI.user,children:q.MY_USAGE}),(t==null?void 0:t.userRole)===np.owner&&E.jsx(Xs,{size:"small",className:"tabButton",value:zI.subscription,children:q.SUBSCRIPTION_USAGE}),(t==null?void 0:t.userRole)===np.owner&&E.jsx(Xs,{size:"small",className:"tabButton",value:zI.member,children:q.MEMBER_USAGE})]})}),e===zI.user&&E.jsx(ZYo,{filters:o,setFilters:s}),e===zI.subscription&&E.jsx(eJo,{filters:o,setFilters:s}),e===zI.member&&E.jsx(tJo,{filters:o,setFilters:s})]})},rJo=t=>{const{open:e,isLoggedIn:n,isSubmit:r,setShowLoginDrawer:a,handleLogin:o,handleLogout:s,handleCoinbaseLogin:l,setIsSubmit:c}=t,d=new URL(window.location.href).searchParams.get("joinCode")||"",[h,f]=Y.useState(0),p=u0a(),m=localStorage.getItem("userId")||"",g=xo(),{location:v}=g||{},[A,y]=Y.useState({userId:"",password:"",joinCode:d,isCheckboxTick:!1,userName:"",emailAddr:"",tempPassword:"",newPassword:"",IsEmailValid:!0,isPassswordValid:!0,confirmPassword:""}),S=pga(),x=bE(),w=ho(),_=fN(),{state:C=""}=_,{list:R={}}=N_e(),k=vV(),N=(()=>{let J="";return m&&R[m]&&(J=R[m]),J})(),L=J=>{switch(J){case 0:return q.LOGIN_ACCOUNT_TEXT;case 2:return q.RESET_PASSWORD_TEXT;case 1:return q.REGISTER_ACCOUNT_TEXT;default:return null}};Y.useEffect(()=>{Object.keys(x).length&&y(J=>({...J,userName:x==null?void 0:x.userName,emailAddr:x==null?void 0:x.emailAddr}))},[x]);const I=()=>{y(J=>({...J,userId:"",password:"",joinCode:d,userName:w?x==null?void 0:x.userName:"",tempPassword:"",newPassword:"",confirmPassword:"",isCheckboxTick:!1,isPassswordValid:!0}))};Y.useEffect(()=>{I()},[e]),Y.useEffect(()=>{n&&Tit()},[n]);const b=J=>{WB(J.target.value||zm.myAccount)},T=async()=>{c(!0);const J={userId:A==null?void 0:A.userId.trim(),password:A==null?void 0:A.password.trim()},ne=await I0a(J);ne&&c(!1),ne===q.RESPONSE_SUCCESS_STATUS&&(I(),a(!1),ej(),_a.login({login_type:mkt.login.methods.username_password,userId:J.userId}),t.redirectOnSuccess&&g.push(t.redirectOnSuccess))},M=async()=>{var ie,he;c(!0);const J={userId:A==null?void 0:A.userId.trim(),password:A==null?void 0:A.confirmPassword.trim()};(ie=A==null?void 0:A.joinCode)!=null&&ie.trim()&&(J.joinCode=(he=A==null?void 0:A.joinCode)==null?void 0:he.trim());const ne=await z_e(J);ne&&c(!1),ne===q.RESPONSE_SUCCESS_STATUS&&(I(),ej(),k?aw(!0):a(!1),_a.signup({signup_type:mkt.signup.methods.username_password,userId:J==null?void 0:J.userId}),t.redirectOnSuccess&&g.push(t.redirectOnSuccess))},D=async()=>{var ie,he;c(!0);const J={userId:m,userName:(ie=A==null?void 0:A.userName)==null?void 0:ie.trim(),displayName:x==null?void 0:x.displayName,emailAddr:(he=A==null?void 0:A.emailAddr)==null?void 0:he.trim(),bio:x==null?void 0:x.bio,settings:x==null?void 0:x.settings},ne=await AO(m,J,"",!0);ne&&c(!1),ne===q.RESPONSE_SUCCESS_STATUS&&(a(!e),Sit(m),_a.userProfileUpdated({userId:J.userId,fields:J}))},B=(J,ne)=>{const ie=J.target.value||"";ne===q.EMAIL_CHECK_KEY&&y(he=>({...he,IsEmailValid:Q6(ie)})),(ne===q.INPUT_TYPE_PASSWORD||ne===q.INPUT_TYPE_NEW_PASSWORD||ne===q.INPUT_TYPE_TEMP_PASSWORD)&&y(he=>({...he,isPassswordValid:ez(ie)})),y(he=>({...he,[ne]:ie}))},j=()=>{y(J=>{var ne,ie,he;return{...J,userId:(ne=J==null?void 0:J.userId)==null?void 0:ne.trim(),joinCode:(ie=J==null?void 0:J.joinCode)==null?void 0:ie.replace(/\s/g,""),userName:(he=J==null?void 0:J.userName)==null?void 0:he.replace(/\s/g,"")}})},H=async()=>{var ie;c(!0);const J={userId:(ie=A==null?void 0:A.userName)==null?void 0:ie.trim(),tempPassword:A==null?void 0:A.tempPassword,newPassword:A==null?void 0:A.newPassword},ne=await zhn(J);ne&&c(!1),((ne==null?void 0:ne.status)===204||(ne==null?void 0:ne.status)===200)&&(f(0),I(),_a.passwordReset())},U=J=>{var ne,ie,he;J.key==="Enter"&&(h===1&&(ne=A==null?void 0:A.userId)!=null&&ne.trim()&&A!=null&&A.isPassswordValid&&A!=null&&A.confirmPassword&&!r&&M(),h===2?(ie=A==null?void 0:A.userName)!=null&&ie.trim()&&(A!=null&&A.tempPassword)&&(A!=null&&A.newPassword)&&(A!=null&&A.isPassswordValid)&&!r&&H():(he=A==null?void 0:A.userId)!=null&&he.trim()&&(A!=null&&A.isPassswordValid)&&!r&&T())},$=()=>{_a.outboundLinks({linkFor:q.NEED_HELP,link:tM})};Y.useEffect(()=>()=>{Iy(""),aw(!1)},[]);const z=Y1a((v==null?void 0:v.pathname)||""),Z={};Object.assign(Z,{maxValue:K3,hasMax:!0,warningText:q.MAX_LENGTH_ERROR(q.LOGIN_EMAIL_LABEL,K3)});const K=()=>E.jsxs(E.Fragment,{children:[E.jsxs(Tp,{className:"loginToolbar stickyTop",children:[E.jsxs(eA,{value:S,exclusive:!0,onChange:b,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:zm.myAccount,children:q.MY_ACCOUNT_TEXT}),E.jsx(Xs,{size:"small",className:"tabButton",value:zm.permissionSecret,children:q.AUTH_PERMISSIONS}),C===kne.active&&E.jsx(Xs,{size:"small",className:"tabButton",value:zm.myWorkspace,children:q.MY_WORKSPACE}),(_==null?void 0:_.state)===q.ACTIVE&&E.jsx(Xs,{size:"small",className:"tabButton",value:zm.dataUsage,children:q.COMPUTE_USAGE})]}),E.jsxs("div",{className:"toolbarRight",children:[E.jsx(Jt,{variant:"contained",color:"secondary",onClick:s,size:"small",className:"logoutBtn",children:q.LOGOUT_BUTTON_TEXT}),E.jsx(_n,{onClick:()=>{pVe(!1),a(!1)},children:E.jsx(Wl,{})})]})]}),E.jsx("div",{className:"gridContent",children:E.jsxs(Er,{container:!0,spacing:2,children:[S===zm.myAccount&&E.jsx(qYo,{subscriptionData:_,handleInputChange:B,userInput:A,isSubmit:r,handleUpdateUserForm:D,loggedInUserId:m,loggedInUserRole:N}),S===zm.permissionSecret&&E.jsx(Er,{item:!0,sm:12,children:E.jsx(RVo,{loggedInUserRole:N})}),S===zm.myWorkspace&&E.jsx(Er,{item:!0,sm:12,children:E.jsx(mVo,{loggedInUserRole:N})}),S===zm.dataUsage&&E.jsx(Er,{item:!0,sm:12,children:E.jsx(nJo,{subscriptionData:_})})]})})]}),Q=()=>{var J;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:ne=>B(ne,"userName"),required:!0,value:A==null?void 0:A.userName,maxValue:K3,hasMax:!0,warningText:q.MAX_LENGTH_ERROR(q.LOGIN_EMAIL_LABEL,K3),onBlur:j,onKeyDown:U})}),E.jsxs("div",{className:"formGroup",children:[E.jsx(QA,{label:q.RESET_TEMP_PASSWORD_LABEL,placeholder:q.RESET_TEMP_PASSWORD_PLACEHOLDER,value:A==null?void 0:A.tempPassword,onChange:ne=>B(ne,"tempPassword"),errorText:!(A!=null&&A.isPassswordValid)&&(A!=null&&A.tempPassword)?q.INVAILD_PASSWORD:""}),E.jsx("div",{className:"needHelpLink temp",children:E.jsx(Pn,{label:q.TEMP_PASSWORD_INFO,children:E.jsxs("a",{href:tM,target:"_blank",rel:"noreferrer",onClick:$,children:[q.NEED_HELP,E.jsx(oC,{})]})})})]}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.RESET_NEW_PASSWORD_LABEL,value:A==null?void 0:A.newPassword,onChange:ne=>B(ne,"newPassword"),onKeyDown:U,errorText:!(A!=null&&A.isPassswordValid)&&(A!=null&&A.newPassword)?q.INVAILD_PASSWORD:""})})]}),E.jsxs("div",{className:"formGroupButton",children:[E.jsx(Jt,{variant:"contained",color:"secondary",className:"btnFull",disabled:r,onClick:()=>{I(),f(0)},children:q.BACK}),E.jsx(Jt,{variant:"contained",color:"primary",className:"btnFull",onClick:H,disabled:!((J=A==null?void 0:A.userName)!=null&&J.trim()&&(A!=null&&A.tempPassword)&&(A!=null&&A.newPassword)&&(A!=null&&A.isPassswordValid))||r,children:q.RESET_BUTTON_TEXT})," "]})]})},ee=()=>{var J;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:ne=>B(ne,"userId"),required:!0,value:A==null?void 0:A.userId,onBlur:j,...Z,onKeyDown:U})}),E.jsxs("div",{className:"formGroup",children:[E.jsx("span",{onClick:()=>{f(2)},role:"presentation",className:"resetPassword",children:q.RESET_PASSWORD_TEXT}),E.jsx(QA,{label:q.LOGIN_PASSWORD_LABEL,value:A==null?void 0:A.password,onChange:ne=>B(ne,"password"),onKeyDown:U})]}),E.jsx("div",{className:"otherLoginOption",children:E.jsx(Yse,{disabled:r,setShowLoginDrawer:a,handleCoinbaseLogin:()=>{c(!0),ej(),l("coinbase",$o.coinbase)},handleMetamaskLogin:()=>{c(!0),ej(),o({ethereumWallet:"metamask",wallet:$o.metamask})}})})]}),E.jsxs("div",{className:"formGroupButton",children:[E.jsx(Jt,{variant:"contained",color:"primary",className:"btnFull",onClick:T,disabled:!((J=A==null?void 0:A.userId)!=null&&J.trim()&&(A!=null&&A.password))||r,children:q.LOGIN_BUTTON_TEXT}),E.jsx(Jt,{variant:"contained",color:"secondary",className:"btnFull",onClick:()=>{z&&Iy(""),f(1)},children:q.REGISTER})]})]})},X=()=>{var J;return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:ne=>B(ne,"userId"),required:!0,value:A==null?void 0:A.userId,onBlur:j,...Z,onKeyDown:U})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.LOGIN_PASSWORD_LABEL,value:A==null?void 0:A.password,onChange:ne=>B(ne,"password"),onKeyDown:U,errorText:!(A!=null&&A.isPassswordValid)&&(A!=null&&A.password)?q.INVAILD_PASSWORD:""})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.CHANGE_CONFIRM_PASSWORD_LABEL,value:A==null?void 0:A.confirmPassword,onChange:ne=>B(ne,"confirmPassword"),errorText:A!=null&&A.password&&(A!=null&&A.confirmPassword)&&(A==null?void 0:A.password)!==(A==null?void 0:A.confirmPassword)?q.PASSWORD_NOT_SAME:"",onKeyDown:U})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.JOINCODE_LABEL}`,onChange:ne=>B(ne,"joinCode"),value:A==null?void 0:A.joinCode,placeholder:q.JOINCODE_PLACEHOLDER,warningText:q.MAX_LENGTH_ERROR(q.JOINCODE_LABEL,sRt),maxValue:sRt,hasMax:!0,onBlur:j,readOnly:!!d,optional:!0})})]}),E.jsxs("div",{className:"formGroupButton",children:[E.jsx(Jt,{variant:"contained",color:"secondary",className:"btnFull",disabled:r,onClick:()=>{z&&Iy(""),f(0)},children:q.BACK}),E.jsx(Jt,{variant:"contained",color:"primary",className:"btnFull",onClick:M,disabled:!((J=A==null?void 0:A.userId)!=null&&J.trim())||!(A!=null&&A.password)||!(A!=null&&A.isPassswordValid)||!(A!=null&&A.confirmPassword)||(A==null?void 0:A.password)!==(A==null?void 0:A.confirmPassword)||r,children:q.SIGNUP_BUTTON_TEXT})," "]})]})},te=()=>E.jsx(E.Fragment,{children:E.jsxs(Fu,{className:h===1?"beforeLoginSubcription subscriptionPanel":"",children:[h===0&&ee(),h===2&&Q(),h===1&&X(),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:tM,target:"_blank",rel:"noreferrer",onClick:$,children:[q.NEED_HELP,E.jsx(oC,{})]})})]})});return E.jsx(tJn,{title:n?q.MY_ACCOUNT_TEXT:L(h)||"",width:n?784:420,placement:"right",visible:e,className:`loginDrawer ${n&&"loggedIn"}`,onClose:()=>{Iy(""),aw(!1),pVe(!1),a(!1)},children:p?E.jsx(JYo,{onCloseSubscriptionFlow:()=>aw(!1),setShowLoginDrawer:a}):E.jsx("div",{children:n?K():te()})})},fjt={send_data:"send-data"},iJo="/assets/queryEditor-194f7911.png",pjt="/assets/queryEditor-6a295164.webp",aJo=gt.div`
  .btnGroup {
    text-align: center;
  }
  .editorImg {
    margin-bottom: 40px;
    min-height: 190px;
    img {
      max-width: 100%;
      margin: 0 auto;
      border-radius: 8px;
    }
  }
  h4 {
    font-size: 18px;
    text-align: center;
    color: ${t=>t.theme.custom.white.A1};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    margin-bottom: 24px;
    &.title {
      text-align: left;
      margin-bottom: 16px;
    }
  }
  ul {
    padding: 0;
    list-style: none;
    margin-bottom: 40px;
  }
  ul li {
    display: flex;
    align-items: flex-start;
  }
  ul li span {
    flex: 1;
    margin-left: 5px;
    opacity: 0.6;
  }
`,oJo=()=>{const t=bE(),{settings:e,userId:n}=t||{},r=kM(e),{landing:a=!1}=r,o=vV(),s=xo(),l=eit(),c=()=>{const d={...r,landing:!1},h={...t,settings:JSON.stringify(d)};AO(n,h),jhn(h)},u=!!(!o&&a&&!l);return E.jsx(lf,{visible:u,isHeader:!1,maxWidth:"xs",className:"welcomeDialogue",children:E.jsxs(aJo,{children:[E.jsx(_n,{onClick:c,tooltip:q.CLOSE,className:"modalCloseBtn",children:E.jsx(Wl,{})}),E.jsx("h4",{className:"title",children:q.HOW_TO_USE_QUERY_EDITOR}),E.jsx("div",{className:"editorImg",children:E.jsxs("picture",{children:[E.jsx("source",{type:"image/webp",srcSet:pjt}),E.jsx(iTe,{src:iJo,placeholderSrc:pjt})]})}),E.jsx("ul",{children:E.jsxs("li",{children:[E.jsx(rze,{}),E.jsx("span",{children:q.WELCOME_TEXT_INFO(q.WELCOME_QUERY_TEXT)})]})}),E.jsx("div",{className:"btnGroup",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>{s.push(`${Qt.newQuery}?tabID=1`),Nfn(q.WELCOME_QUERY_TEXT),c()},children:q.TRY_IT})})]})})},sJo=gt.div`
  width: 708px;
  height: 331px;
  max-height: 331px;
  position: absolute;
  top: 81px;
  right: 20px;
  background-color: #1e1736;
  border: 1px solid #2e2744;
  border-radius: 13px;
  z-index: 1000;
  overflow-y: auto;
  padding: 10px;
`,lJo=gt.table`
  width: 100%;
  border-collapse: collapse;
  color: #fff;
`,Ife=gt.th`
  padding: 10px 20px;
  border-bottom: 1px solid #2e2744;
  text-align: left;
  color: #ff6b6b;
`,cJo=gt.tr`
  &:nth-child(even) {
    background-color: #2e2744;
  }
  cursor: pointer;
  margin: 5px 0;
`,Pfe=gt.td`
  padding: 10px 20px;
  border-bottom: 1px solid #2e2744;
`,uJo=({onClose:t,buttonRef:e})=>{const n=io(c=>c.apiHistory.map(u=>({...u,timestamp:new Date(u.timestamp)}))),r=Y.useRef(null);Y.useEffect(()=>{},[n]);const a=c=>{r.current&&!r.current.contains(c.target)&&e.current&&!e.current.contains(c.target)&&t()};Y.useEffect(()=>(document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}),[]);const o=c=>c>=500?"Server":"Client",s=n.filter(c=>c.response.title&&c.response.title!=="N/A"),l=(c,u)=>c.length<=u?c:`${c.substring(0,u)}...`;return E.jsx(sJo,{ref:r,children:E.jsxs(lJo,{children:[E.jsx("thead",{children:E.jsxs("tr",{children:[E.jsx(Ife,{children:q.TITLE}),E.jsx(Ife,{children:q.DETAILS}),E.jsx(Ife,{children:q.TYPE}),E.jsx(Ife,{children:q.API_HISTORY_TIMESTAMP})]})}),E.jsx("tbody",{children:s.sort((c,u)=>u.timestamp.getTime()-c.timestamp.getTime()).map(c=>E.jsxs(cJo,{children:[E.jsx(Pfe,{children:c.response.title}),E.jsx(Pfe,{children:E.jsx(Pn,{label:c.response.message,arrow:!0,tooltipPlacement:"bottom",children:E.jsx("span",{children:l(c.response.message,20)})})}),E.jsx(Pfe,{children:o(c.status)}),E.jsxs(Pfe,{children:[c.timestamp.toLocaleTimeString()," "]})]},`${c.method}-${c.timestamp.getTime()}`))})]})})};function dJo(){var ce,Ee,Me,Be,ze,je,ye,me,le,pe,Ne,_e,ue,se,oe,ge,De,Fe,Se,Xe,Oe,Ye,mt,ut,lt,pn,sn,un,ur,dt;const{chartBackground:t,useImgColors:e}=_p(),{height:n}=Is(),{utmCampaign:r=""}=Jdn(),a=localStorage.getItem("userId")||"",o=localStorage.getItem("walletName")||"",[s,l]=Y.useState(o),[c,u]=Y.useState(!1),[d,h]=Y.useState(null),[f,p]=Y.useState(!1),[m,g]=Y.useState({open:!1,userId:"",key:""}),[v,A]=ke.useState(!1),y=eit(),[S,x]=Y.useState(!1),w=xo(),_=ho(),C=((ce=w==null?void 0:w.location)==null?void 0:ce.pathname)==="/",{width:R}=Is(),k=R<qt.breakpoints.values.md,{pathname:P,search:N}=Zh(),{address:L,isConnected:I}=Aan(),{walletProvider:b,walletProviderType:T}=van(),D=new URLSearchParams(N).get("joinCode"),B=JP(P,{path:"/queries/:queryId"}),{params:j={}}=B||{params:{}},{queryId:H=""}=j||{},U=Y.useMemo(()=>{var xt;return!!((xt=w==null?void 0:w.location)!=null&&xt.pathname.includes("/queries"))},[(Ee=w==null?void 0:w.location)==null?void 0:Ee.pathname]),$=e&&vN(((Me=w==null?void 0:w.location)==null?void 0:Me.pathname)||"");Y.useEffect(()=>{p(!1)},[(Be=w==null?void 0:w.location)==null?void 0:Be.pathname]),Y.useEffect(()=>{localStorage.setItem("walletName",s||"")},[s]),Y.useEffect(()=>{f?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[f]),Y.useEffect(()=>{_a.pageView({page_url:window.location.pathname})},[window.location.pathname]),Y.useEffect(()=>{r&&setTimeout(()=>co(!0),2e3)},[r,_]);const z=async()=>{try{_?C2():co(!0)}catch(xt){console.error(xt)}},Z=(xt=!0)=>{_a.logout(),localStorage.clear(),Tbe.clear(),z(),co(!1),ej(),sessionStorage.removeItem("sessionId"),xt&&window.location.reload()},K=()=>{p(!f)};Y.useEffect(()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",()=>{}),window.ethereum.removeListener("chainChanged",()=>{}))},[]),Y.useEffect(()=>{const xt=async()=>{let Cn=[];if(window.ethereum&&a){if((!window.ethereum.providers||!Array.isArray(window.ethereum.providers))&&window.ethereum.isMetaMask){if(typeof window.ethereum.request=="function")try{Cn=await window.ethereum.request({method:"eth_requestAccounts"})}catch(Kt){console.error("Error requesting accounts:",Kt)}}else if(s===$o.metamask||s===$o.coinbase){const rn=window.ethereum.providers.find(On=>s===$o.metamask&&On.isMetaMask||s===$o.coinbase&&On.isCoinbaseWallet);if(rn&&typeof rn.request=="function")try{Cn=await rn.request({method:"eth_requestAccounts"})}catch(On){console.error("Error requesting accounts:",On)}}}Cn!=null&&Cn.length&&Cn[0]&&Cn[0]!==null&&Cn[0]!==(localStorage.getItem("walletAddress")||"")&&Z(s===$o.coinbase)};localStorage.getItem("walletAddress")!==null&&localStorage.getItem("loginType")==="web3"&&window.ethereum&&(Array.isArray(window.ethereum.providers)||window.ethereum.isMetaMask)&&xt(),sessionStorage.getItem("switchWallet")===$o.metamask&&(sessionStorage.removeItem("switchWallet"),localStorage.setItem("walletName",$o.metamask),d2({ethereumWallet:"metamask",wallet:$o.metamask,setWalletName:l,setIsJoinCodeRequired:g,setShowLoginDrawer:co,handleClose:Z,setIsSubmit:u}))},[]),Y.useEffect(()=>{!_&&H==="new"&&(w.push(Qt.exploreQuery),co(!0))},[]);const Q=()=>{x(!0),setTimeout(()=>{x(!1)},1e3)};Y.useEffect(()=>{(async()=>{I&&!_&&(localStorage.setItem("walletName",$o.walletconnect),d2({ethereumWallet:"walletconnect",wallet:$o.walletconnect,setWalletName:l,setIsJoinCodeRequired:g,setShowLoginDrawer:co,handleClose:Z,setIsSubmit:u,joinCode:D,accountId:L,walletConnectProvider:b}))})()},[I]),Y.useEffect(()=>{y||h(null)},[y]);const ee=xt=>(Cn,Kt)=>{A(Kt?xt:!1)},X=()=>A(!1),te=io(xt=>xt.apiHistory),[J,ne]=Y.useState(!1),ie=Y.useRef(null),he=()=>{ne(xt=>!xt)},de=te.filter(xt=>xt.response.title&&xt.response.title!=="N/A");return Y.useEffect(()=>{de.length===0&&ne(!1)},[de]),E.jsxs(E.Fragment,{children:[E.jsx(zzo,{position:"fixed",$showQueries:U||!1,$landingPageHeader:C||!1,$useImgColors:$,$chartBackground:t,children:E.jsxs(ZNr,{disableGutters:!0,className:"toolbar",children:[E.jsx(Zve,{component:"div",children:E.jsx(Gzo,{onClick:()=>w.push(Qt.landingPage),className:"unsaveChanges","data-id":"home_page",children:E.jsx("div",{className:"logo ","data-id":"home_page",children:E.jsx("img",{src:lat,alt:"logo","data-id":"home_page"})})})}),E.jsx(Wzo,{}),!k&&E.jsxs(Vzo,{$landingPageHeader:C||!1,$useImgColors:$,$chartBackground:t,children:[E.jsxs(Jt,{variant:"contained",color:"secondary",size:"small","data-id":tr.erd(),onClick:()=>{h(null),w.push(tr.erd())},className:w.location.pathname===Qt.erd?"active unsaveChanges":"unsaveChanges",children:[E.jsx("span",{className:"iconLeft",children:E.jsx(nze,{})})," ",q.DATA_SETS]}),AAe==="dev",E.jsxs("div",{className:`topMenuDropdown ${S?"removeHoverEffect":""}`,children:[E.jsxs(Jt,{onClick:()=>{w.push(tr.queriesPath("new?tabID=1")),T5("1")},"data-id":tr.queriesPath("new?tabID=1"),variant:"contained",color:"secondary",size:"small",className:(ze=w==null?void 0:w.location)!=null&&ze.pathname.includes(Qt.views)||(je=w==null?void 0:w.location)!=null&&je.pathname.includes(Qt.myQueries)||(ye=w==null?void 0:w.location)!=null&&ye.pathname.includes(Qt.queryHistory)||((me=w==null?void 0:w.location)==null?void 0:me.pathname)===Qt.exploreQuery||(le=w==null?void 0:w.location)!=null&&le.pathname.includes(Qt.queries)||`${w.location.pathname}${w.location.search}`.includes(Qt.graphQl)||w.location.pathname.includes(Qt.charts)?"btnWithMenu active unsaveChanges":"btnWithMenu unsaveChanges",children:[E.jsx("span",{className:"iconLeft",children:E.jsx(lmi,{})}),q.QUERIES,E.jsx("span",{className:"iconRight",children:E.jsx(QL,{})})]}),E.jsx("div",{className:"dropMenu",children:E.jsxs(rme,{children:[E.jsxs(Dn,{onClick:()=>{Q(),w.push(tr.queriesPath("new?tabID=1")),T5("1")},className:(pe=w==null?void 0:w.location)!=null&&pe.pathname.includes(Qt.queries)?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":tr.queriesPath("new?tabID=1"),children:E.jsx("img",{src:sVo,alt:"menu-icon","data-id":tr.queriesPath("new?tabID=1")})}),E.jsxs("div",{className:"menuText","data-id":tr.queriesPath("new?tabID=1"),children:[q.QUERY_EDITOR,E.jsx("span",{"data-id":tr.queriesPath("new?tabID=1"),children:q.MENU_QUERY_EDITOR_TEXT})]})]}),E.jsxs(Dn,{onClick:()=>{if(Q(),_){w.push(Qt.myQueries);return}h(Qt.myQueries),co(!y)},className:(Ne=w==null?void 0:w.location)!=null&&Ne.pathname.includes(Qt.myQueries)||(_e=w==null?void 0:w.location)!=null&&_e.pathname.includes(Qt.queryHistory)||((ue=w==null?void 0:w.location)==null?void 0:ue.pathname)===Qt.exploreQuery?"selected ":"unsaveChanges",children:[E.jsx("div",{className:"icon ","data-id":Qt.myQueries,children:E.jsx("img",{src:oVo,alt:"menu-icon","data-id":Qt.myQueries})}),E.jsxs("div",{className:"menuText","data-id":Qt.myQueries,children:[q.MY_QUERIES,E.jsx("span",{"data-id":Qt.myQueries,children:q.MENU_QUERY_TEXT})]})]}),E.jsxs(Dn,{onClick:()=>{if(Q(),_){w.push(tr.charts("GRAPH"));return}h(tr.charts("GRAPH")),co(!y)},className:`${w.location.pathname}${w.location.search}`.includes(tr.chartsActive("GRAPH"))?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":tr.charts("GRAPH"),children:E.jsx("img",{src:eVo,alt:"menu-icon","data-id":tr.charts("GRAPH")})}),E.jsxs("div",{className:"menuText","data-id":tr.charts("GRAPH"),children:[q.MY_VISUALS,E.jsx("span",{"data-id":tr.charts("GRAPH"),children:q.MENU_CHARTS_TEXT})]})]}),E.jsxs(Dn,{onClick:()=>{if(Q(),_){w.push(Qt.views);return}h(Qt.views),co(!y)},className:`${w.location.pathname}${w.location.search}`.includes(Qt.views)?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":Qt.views,children:E.jsx("img",{src:tVo,alt:"menu-icon","data-id":Qt.views,width:20})}),E.jsxs("div",{className:"menuText","data-id":Qt.views,children:[q.VIEWS,E.jsx("span",{"data-id":Qt.views,children:q.VIEWS_TEXT})]})]}),E.jsxs(Dn,{onClick:()=>{if(Q(),_){w.push(Qt.graphQl);return}h(Qt.graphQl),co(!y)},className:(se=w==null?void 0:w.location)!=null&&se.pathname.includes(Qt.graphQl)?"selected unsaveChnages":"unsaveChnages",children:[E.jsx("div",{className:"icon",children:E.jsx("img",{src:cVo,alt:"menu-icon"})}),E.jsxs("div",{className:"menuText",children:[q.GRAPHQL,E.jsx("span",{children:q.MENU_GRAPHQL_TEXT})]})]})]})})]}),E.jsxs("div",{className:`topMenuDropdown ${S?"removeHoverEffect":""}`,children:[E.jsxs(Jt,{onClick:()=>{h(null),w.push(tr.dashboards("explore"))},variant:"contained",color:"secondary",size:"small",className:((oe=w==null?void 0:w.location)==null?void 0:oe.pathname)===Qt.newDashboard||((ge=w==null?void 0:w.location)==null?void 0:ge.pathname)===Qt.dashboards||((De=w==null?void 0:w.location)==null?void 0:De.pathname)===Qt.vizard?"btnWithMenu active unsaveChanges":"btnWithMenu unsaveChanges","data-id":tr.dashboards("dashboard"),children:[E.jsx("span",{className:"iconLeft",children:E.jsx(Can,{})}),q.DASHBOARDS,E.jsx("span",{className:"iconRight",children:E.jsx(QL,{})})]}),E.jsx("div",{className:"dropMenu",children:E.jsxs(rme,{children:[E.jsxs(Dn,{onClick:()=>{Q(),h(null),w.push(tr.dashboards("explore"))},className:`${w.location.pathname}${w.location.search}`.includes(tr.dashboardActive("explore"))?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":tr.dashboards("explore"),children:E.jsx("img",{src:nVo,alt:"menu-icon","data-id":tr.dashboards("explore")})}),E.jsxs("div",{className:"menuText","data-id":tr.dashboards("explore"),children:[q.EXPLORE,E.jsx("span",{"data-id":tr.dashboards("explore"),children:q.MENU_EXPLORE_TEXT})]})]}),E.jsxs(Dn,{onClick:()=>{if(Q(),_){w.push(Qt.newDashboard);return}h(Qt.newDashboard),co(!y)},className:((Fe=w==null?void 0:w.location)==null?void 0:Fe.pathname)===Qt.newDashboard?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":Qt.newDashboard,children:E.jsx("img",{src:aVo,alt:"menu-icon","data-id":Qt.newDashboard})}),E.jsxs("div",{className:"menuText","data-id":Qt.newDashboard,children:[q.NEW_DASHBOARD,E.jsx("span",{"data-id":Qt.newDashboard,children:q.MENU_NEW_DASHBOARD_TEXT})]})]}),E.jsxs(Dn,{onClick:()=>{if(Q(),_){w.push(tr.dashboards("dashboard"));return}h(tr.dashboards("dashboard")),co(!y)},className:`${w.location.pathname}${w.location.search}`.includes(tr.dashboardActive("dashboard"))?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":tr.dashboards("dashboard"),children:E.jsx("img",{src:iVo,alt:"menu-icon","data-id":tr.dashboards("dashboard")})}),E.jsxs("div",{className:"menuText","data-id":tr.dashboards("dashboard"),children:[q.MY_DASHBOARDS,E.jsx("span",{"data-id":tr.dashboards("dashboard"),children:q.MENU_MY_DASHBOARDS_TEXT})]})]})]})})]}),E.jsxs("div",{className:`topMenuDropdown ${S?"removeHoverEffect":""}`,children:[E.jsxs(Jt,{onClick:()=>{if(window.location.href.split("/").pop()!==fjt.send_data&&(JU(null),hp(""),n1e()),_){w.push(Qt.sendData);return}h(Qt.sendData),co(!y)},"data-id":Qt.sendData,variant:"contained",color:"secondary",size:"small",className:w.location.pathname.includes(Qt.insights)||w.location.pathname.includes(Qt.getDataFromChain)||w.location.pathname.includes(Qt.sendData)?"btnWithMenu active unsaveChanges":"btnWithMenu unsaveChanges",children:[E.jsx("span",{className:"iconLeft",children:E.jsx(pmi,{})}),q.SMART_CONTRACTS,E.jsx("span",{className:"iconRight",children:E.jsx(QL,{})})]}),E.jsx("div",{className:"dropMenu",children:E.jsxs(rme,{children:[E.jsxs(Dn,{onClick:()=>{if(Q(),_){w.push(Qt.getDataFromChain);return}h(Qt.getDataFromChain),co(!y)},className:w.location.pathname.includes(Qt.getDataFromChain)?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":Qt.getDataFromChain,children:E.jsx("img",{src:rVo,alt:"menu-icon","data-id":Qt.getDataFromChain})}),E.jsxs("div",{className:"menuText","data-id":Qt.getDataFromChain,children:[q.GET_DATA_FROM_CHAIN,E.jsx("span",{"data-id":Qt.getDataFromChain,children:q.MENU_GET_DATA_TEXT})]})]}),E.jsxs(Dn,{onClick:()=>{if(window.location.href.split("/").pop()!==fjt.send_data&&(JU(null),hp(""),n1e()),Q(),_){w.push(Qt.sendData);return}h(Qt.sendData),co(!y)},className:w.location.pathname.includes(Qt.sendData)?"selected unsaveChanges":"unsaveChanges",children:[E.jsx("div",{className:"icon","data-id":Qt.sendData,children:E.jsx("img",{src:lVo,alt:"menu-icon","data-id":Qt.sendData})}),E.jsxs("div",{className:"menuText","data-id":Qt.sendData,children:[q.SEND_DATA_TO_CHAIN,E.jsx("span",{"data-id":Qt.sendData,children:q.MENU_SEND_DATA_TEXT})]})]})]})})]})]}),E.jsxs("div",{className:"headerRight",children:[U&&E.jsx(XGo,{queryId:H,handleCallback:()=>co(!0)}),U3==="true",_&&de.length>0&&E.jsx(Jt,{ref:ie,variant:"contained",color:"primary",size:"small",style:{width:"36px",height:"36px",border:"1px solid #F14648",borderRadius:"50%",backgroundColor:"#1E1736",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"5px",padding:0,minWidth:"unset"},onClick:he,children:E.jsx("img",{src:qGo,alt:"info-icon",style:{width:"16.2px",height:"16.2px"}})}),J&&E.jsx(uJo,{onClose:()=>ne(!1),buttonRef:ie}),_?E.jsxs(Kzo,{onClick:()=>{h(null),co(!0)},children:[E.jsxs("div",{className:"userInfo ",children:[E.jsx("span",{children:"My account"}),E.jsx("div",{className:"name",children:a.length>10?`${a.slice(0,10)}...`:a})]}),E.jsx("div",{className:"userImage",children:E.jsx("img",{src:Z_e(_?"":"sxtLogo"),alt:"user"})})]}):E.jsxs(Jt,{onClick:()=>{var xt;if(_){C2();return}((xt=w.location)==null?void 0:xt.pathname)===tr.erd()&&h(tr.queriesPath("new?tabID=1")),h(null),co(!0)},variant:"contained",color:"primary",children:[E.jsx("span",{className:"iconLeft",children:E.jsx(nze,{})}),"Sign in"]}),k&&E.jsxs(Qzo,{className:f?"menuButton open":"menuButton",onClick:K,children:[E.jsx("div",{className:"bar barTop"}),E.jsx("div",{className:"bar barMiddle"}),E.jsx("div",{className:"bar barBottom"})]})]}),k&&E.jsxs(qzo,{className:f?"open":"",pageHeight:n,children:[E.jsxs(Jt,{size:"small",onClick:()=>w.push(tr.erd()),className:w.location.pathname===Qt.erd?"active unsaveChanges":"unsaveChanges","data-id":tr.erd(),children:[E.jsx("span",{className:"bg-text",children:q.DATA_SETS}),E.jsx("span",{className:"front-text",children:q.DATA_SETS})]}),AAe==="dev",E.jsxs(mD,{expanded:v==="queryPanel",onChange:ee("queryPanel"),className:"resMenuBlock",children:[E.jsx(vD,{className:"resMenuBtn",children:E.jsxs(Jt,{size:"small",className:(Se=w==null?void 0:w.location)!=null&&Se.pathname.includes(Qt.views)||(Xe=w==null?void 0:w.location)!=null&&Xe.pathname.includes(Qt.myQueries)||(Oe=w==null?void 0:w.location)!=null&&Oe.pathname.includes(Qt.queryHistory)||(Ye=w==null?void 0:w.location)!=null&&Ye.pathname.includes(Qt.queries)||w.location.pathname.includes(Qt.charts)?"btnWithMenu active unsaveChanges":"btnWithMenu unsaveChanges",children:[E.jsx("span",{className:"bg-text",children:q.QUERIES}),E.jsx("span",{className:"front-text",children:q.QUERIES}),E.jsx("span",{className:"iconRight",children:E.jsx(QL,{})})]})}),E.jsxs(gD,{className:"resMenuBody",children:[E.jsx(Dn,{onClick:()=>{if(X(),_){w.push(tr.queriesPath("new?tabID=1")),T5("1");return}co(!y)},className:(mt=w==null?void 0:w.location)!=null&&mt.pathname.includes(Qt.queries)?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":tr.queriesPath("new?tabID=1"),children:[E.jsx("div",{className:"MenuHead","data-id":tr.queriesPath("new?tabID=1"),children:q.QUERY_EDITOR}),E.jsx("span",{"data-id":tr.queriesPath("new?tabID=1"),children:q.MENU_QUERY_EDITOR_TEXT})]})}),E.jsx(Dn,{onClick:()=>{X(),_?w.push(Qt.myQueries):co(!y)},className:(ut=w==null?void 0:w.location)!=null&&ut.pathname.includes(Qt.myQueries)||(lt=w==null?void 0:w.location)!=null&&lt.pathname.includes(Qt.queryHistory)?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":Qt.myQueries,children:[E.jsx("div",{className:"MenuHead","data-id":Qt.myQueries,children:q.MY_QUERIES}),E.jsx("span",{"data-id":Qt.myQueries,children:q.MENU_QUERY_TEXT})]})}),E.jsx(Dn,{onClick:()=>{X(),w.push(tr.charts("GRAPH"))},className:`${w.location.pathname}${w.location.search}`.includes(tr.chartsActive("GRAPH"))?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":tr.charts("GRAPH"),children:[E.jsx("div",{className:"MenuHead","data-id":tr.charts("GRAPH"),children:q.MY_VISUALS}),E.jsx("span",{"data-id":tr.charts("GRAPH"),children:q.MENU_CHARTS_TEXT})]})}),E.jsx(Dn,{onClick:()=>{X(),_?w.push(Qt.views):co(!y)},className:(pn=w==null?void 0:w.location)!=null&&pn.pathname.includes(Qt.views)?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":Qt.views,children:[E.jsx("div",{className:"MenuHead","data-id":Qt.views,children:q.VIEWS}),E.jsx("span",{"data-id":Qt.views,children:q.VIEWS_TEXT})]})}),E.jsx(Dn,{onClick:()=>{X(),_?w.push(Qt.graphQl):co(!y)},className:`${w.location.pathname}${w.location.search}`.includes(Qt.graphQl)?"selected unsaveChnages":"unsaveChnages",children:E.jsxs("div",{className:"menuText","data-id":Qt.graphQl,children:[E.jsx("div",{className:"MenuHead","data-id":Qt.graphQl,children:q.GRAPHQL}),E.jsx("span",{"data-id":Qt.graphQl,children:q.MENU_GRAPHQL_TEXT})]})})]})]}),E.jsxs(mD,{expanded:v==="dashboardPanel",onChange:ee("dashboardPanel"),className:"resMenuBlock",children:[E.jsx(vD,{className:"resMenuBtn",children:E.jsxs(Jt,{size:"small",className:((sn=w==null?void 0:w.location)==null?void 0:sn.pathname)===Qt.newDashboard||((un=w==null?void 0:w.location)==null?void 0:un.pathname)===Qt.dashboards||((ur=w==null?void 0:w.location)==null?void 0:ur.pathname)===Qt.vizard?"btnWithMenu active unsaveChanges":"btnWithMenu unsaveChanges",children:[E.jsx("span",{className:"bg-text",children:q.DASHBOARDS}),E.jsx("span",{className:"front-text",children:q.DASHBOARDS}),E.jsx("span",{className:"iconRight",children:E.jsx(QL,{})})]})}),E.jsxs(gD,{className:"resMenuBody",children:[E.jsx(Dn,{onClick:()=>{X(),w.push(tr.dashboards("explore"))},className:`${w.location.pathname}${w.location.search}`.includes(tr.dashboardActive("explore"))?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":tr.dashboards("explore"),children:[E.jsx("div",{className:"MenuHead","data-id":tr.dashboards("explore"),children:q.EXPLORE}),E.jsx("span",{"data-id":tr.dashboards("explore"),children:q.MENU_EXPLORE_TEXT})]})}),E.jsx(Dn,{onClick:()=>{X(),_?w.push(Qt.newDashboard):co(!y)},className:((dt=w==null?void 0:w.location)==null?void 0:dt.pathname)===Qt.newDashboard?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":Qt.newDashboard,children:[E.jsx("div",{className:"MenuHead","data-id":Qt.newDashboard,children:q.NEW_DASHBOARD}),E.jsx("span",{"data-id":Qt.newDashboard,children:q.MENU_NEW_DASHBOARD_TEXT})]})}),E.jsx(Dn,{onClick:()=>{X(),_?w.push(tr.dashboards("dashboard")):co(!y)},className:`${w.location.pathname}${w.location.search}`.includes(tr.dashboardActive("dashboard"))?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":tr.dashboards("dashboard"),children:[E.jsx("div",{className:"MenuHead","data-id":tr.dashboards("dashboard"),children:q.MY_DASHBOARDS}),E.jsx("span",{"data-id":tr.dashboards("dashboard"),children:q.MENU_MY_DASHBOARDS_TEXT})]})})]})]}),E.jsxs(mD,{expanded:v==="scPanel",onChange:ee("scPanel"),className:"resMenuBlock",children:[E.jsx(vD,{className:"resMenuBtn",children:E.jsxs(Jt,{size:"small",className:w.location.pathname.includes(Qt.insights)||w.location.pathname.includes(Qt.getDataFromChain)||w.location.pathname.includes(Qt.sendData)?"btnWithMenu active unsaveChanges":"btnWithMenu unsaveChanges",children:[E.jsx("span",{className:"bg-text",children:q.SMART_CONTRACTS}),E.jsx("span",{className:"front-text",children:q.SMART_CONTRACTS}),E.jsx("span",{className:"iconRight",children:E.jsx(QL,{})})]})}),E.jsxs(gD,{className:"resMenuBody",children:[E.jsx(Dn,{"data-id":tr.queriesPath("new?tabID=1"),onClick:()=>{X(),_?w.push(Qt.getDataFromChain):co(!y)},className:w.location.pathname.includes(Qt.getDataFromChain)?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":Qt.getDataFromChain,children:[E.jsx("div",{className:"MenuHead","data-id":Qt.getDataFromChain,children:q.GET_DATA_FROM_CHAIN}),E.jsx("span",{"data-id":Qt.getDataFromChain,children:q.MENU_GET_DATA_TEXT})]})}),E.jsx(Dn,{onClick:()=>{if(X(),_){w.push(Qt.sendData);return}co(!y)},className:w.location.pathname.includes(Qt.sendData)?"selected unsaveChanges":"unsaveChanges",children:E.jsxs("div",{className:"menuText","data-id":Qt.sendData,children:[E.jsx("div",{className:"MenuHead","data-id":Qt.sendData,children:q.SEND_DATA_TO_CHAIN}),E.jsx("span",{"data-id":Qt.sendData,children:q.MENU_SEND_DATA_TEXT})]})})]})]}),U3==="true"]})]})}),E.jsx(MCe,{isJoinCodeRequired:m,onClose:()=>{g({open:!1,userId:"",key:""}),u(!1)},handleLogin:async xt=>{qse({inputs:xt,setIsJoinCodeRequired:g,setShowLoginDrawer:co,handleClose:Z,setIsSubmit:u,key:m==null?void 0:m.key,walletConnectProvider:b,ethereumWallet:T==null?void 0:T.toLocaleLowerCase()})},parentJoinCode:D}),y&&E.jsx(rJo,{open:y,setShowLoginDrawer:co,handleLogin:({ethereumWallet:xt,wallet:Cn})=>d2({ethereumWallet:xt,wallet:Cn,setWalletName:l,setIsJoinCodeRequired:g,setShowLoginDrawer:co,handleClose:Z,setIsSubmit:u,joinCode:D}),handleCoinbaseLogin:(xt,Cn)=>d2({ethereumWallet:xt,wallet:Cn,setWalletName:l,setIsJoinCodeRequired:g,setShowLoginDrawer:co,handleClose:Z,setIsSubmit:u,joinCode:D}),isLoggedIn:_,handleLogout:Z,isSubmit:c,setIsSubmit:u,redirectOnSuccess:d}),_&&E.jsx(oJo,{})]})}const MA=({path:t,children:e})=>ho()?E.jsx(NA,{exact:!0,path:t,children:e}):E.jsx(vQt,{to:Qt.landingPage}),mjt=["/contract"];async function $J(t,e,n){var u,d;const r=localStorage.getItem("baseUrl")||"",a=hN(r||HU),o={Accept:"application/json","Content-Type":"application/json"},s={method:t.toUpperCase(),credentials:"same-origin",headers:o};n&&(s.body=n);let l=a+e;a&&e.substring(0,1)!=="/"&&(l=`${a}/${e}`);let c;try{c=await fetch(l,s);const h=await c.json(),f=mjt.some(p=>e.includes(p));return(c==null?void 0:c.status)===201?{status:201}:c.ok?{data:h,status:c.status||0}:(f&&SP(l,t,c.status,h),{error:h.detail||h.title||h.message||((u=h[0])==null?void 0:u.message)||"Something went wrong",status:c.status||0,apiAlert:h})}catch(h){console.log(h);let f;return(d=s==null?void 0:s.signal)!=null&&d.aborted?f="Query Aborted":f="Network error",mjt.includes(e)&&SP(l,t,0,{title:f,message:h.message}),{error:f}}}const kN={put(t,e){return $J("PUT",t,e)},delete(t){return $J("DELETE",t)},post(t,e){return $J("POST",t,e)},get(t,e){return $J("GET",t,e)},patch(t,e){return $J("PATCH",t,e)},getContractDetails(t,e,n){return this.post(Zt.getContractDetails(t,e),n)},getChains(){return this.get(Zt.getChains())},getSubscriptionContracts(){return this.get(Zt.getSubscriptionContracts())},getChainSchemas(t){return this.get(Zt.getChainSchemas(t))},postEventTransactions(t,e,n,r){return this.post(Zt.postEventTransactions(t,e,n),r)},postContractEvents(t,e,n){return this.post(Zt.postContractEvents(t,e),n)},getAdminContracts(t,e){return this.get(Zt.getAdminContracts(t,e))},postApprovedContracts(t,e){return this.post(Zt.approveContract(t),e)},postRejectedContracts(t,e){return this.post(Zt.rejectContract(t),e)},getSubGroup(t){return this.get(Zt.getSubGroups(t))},getPedingEvents(t){return this.get(Zt.getPendingEvents(t))}},UZn={contract_address:"",contractDetails:{data:{},message:"",status:0},chains:[],eventTransactions:[],eventsLoading:!1,contractsLoading:!1,namespace:"",chainsLoading:!1,selectedChain:"",adminContractList:{},adminContractListError:void 0,isAbiFile:!1,chainSchemas:{},contractName:"",subscriptionContracts:[],subscriptionContractsLoading:!1,hasEvents:!1},$v=yE(()=>({...UZn})),ile=()=>$v(t=>t.contractDetails),VCe=()=>$v(t=>t.chains),hJo=()=>$v(t=>t.eventTransactions),ldt=()=>$v(t=>t.contractsLoading),fJo=()=>$v(t=>t.eventsLoading),pJo=()=>$v(t=>t.namespace),mJo=()=>$v(t=>t.chainsLoading),cdt=()=>$v(t=>t.selectedChain),gJo=()=>$v(t=>t.adminContractList),vJo=()=>$v(t=>t.adminContractListError),AJo=()=>$v(t=>t.chainSchemas),zZn=()=>$v(t=>t.contractName),yJo=()=>$v(t=>t.subscriptionContracts),bJo=()=>$v(t=>t.subscriptionContractsLoading),xJo=()=>$v(t=>t.hasEvents),{setState:vd,getState:zqe}=$v,EJo=()=>vd({...UZn}),KCe=t=>vd({selectedChain:t}),Gqe=t=>vd({contractDetails:t}),GZn=t=>vd({namespace:t}),SJo=async t=>{try{const{data:e}=await kN.getChainSchemas(t);e&&vd({chainSchemas:e})}catch{}},wJo=async()=>{try{vd({subscriptionContractsLoading:!0});const{data:t}=await kN.getSubscriptionContracts();t&&vd({subscriptionContracts:t,subscriptionContractsLoading:!1})}catch{}finally{vd({subscriptionContractsLoading:!1})}},pbe=async(t,e,n)=>{try{vd({contractsLoading:!0});const{data:r,error:a,status:o,apiAlert:s}=await kN.getContractDetails(t,e,n);if(r){await SJo(t),Gqe({data:r,message:a||"",status:o||0});const l=r.events&&r.events.length>0;vd({hasEvents:l})}a&&(Gqe({data:{},message:a||"",status:o||0}),Kn(a,s))}catch{}finally{vd({contractsLoading:!1})}},_Jo=async()=>{try{vd({chainsLoading:!0});const{data:t}=await kN.getChains();vd({chains:t})}catch{}finally{vd({chainsLoading:!1})}},Ofe=async(t,e)=>{try{vd({contractsLoading:!0});const{data:n,error:r}=await kN.getAdminContracts(t,e);vd({adminContractList:(n==null?void 0:n.data)||{},adminContractListError:r||void 0})}catch{}finally{vd({contractsLoading:!1})}},TJo=async(t,e)=>{var o,s,l;vd({eventsLoading:!0});const{contractDetails:n}=zqe(),r=(s=(o=n==null?void 0:n.data)==null?void 0:o.contractInfo)==null?void 0:s.address,a=(l=n==null?void 0:n.data)==null?void 0:l.abi;try{const{data:c}=await kN.postEventTransactions(t,r,e,JSON.stringify(a));c&&vd({eventTransactions:c})}catch{}finally{vd({eventsLoading:!1})}},CJo=async(t,e,n)=>{var h,f,p,m;const{contractName:r}=zqe(),{data:a}=e,o=(h=a==null?void 0:a.contractInfo)==null?void 0:h.address,s=(f=a==null?void 0:a.contractInfo)==null?void 0:f.name,l=s==="Unverified",{isAbiFile:c}=zqe();let u="";(p=a==null?void 0:a.trackedInfo)!=null&&p.namespace?u=((m=a==null?void 0:a.trackedInfo)==null?void 0:m.namespace)||"":u=n||"";const d=c?{contractName:l?r:s,abi:a==null?void 0:a.abi,namespace:u==null?void 0:u.trim().toLowerCase()}:{contractName:l?r:s,namespace:u==null?void 0:u.trim().toLowerCase()};try{await vd({contractsLoading:!0});const{status:g,error:v}=await kN.postContractEvents(t,o,JSON.stringify(d));g===201||g===200||g===424?(_a.contractSubmissionSuccess({selectedChain:t,selectedNamespace:u,contractAddress:o,statusCode:g}),zi(v||q.SMART_CONTRACT_SUCCESS),await pbe(t,o==null?void 0:o.trim())):(_a.contractSubmissionError({selectedChain:t,selectedNamespace:u,contractAddress:o,statusCode:g||0,errorText:v||ga.SOMETHING_WENT_WRONG}),Kn(v||""))}catch{}finally{vd({contractsLoading:!1})}},kJo=async(t,e,n)=>{try{const{error:r,status:a}=await kN.postRejectedContracts(t,e);a===200?(zi("Event Rejected Successfully"),n()):Kn(r||"")}catch{}},RJo=async(t,e,n)=>{try{const{error:r,status:a}=await kN.postApprovedContracts(t,e);a===201?(zi("Event Approved Successfully"),n()):Kn(r||"")}catch{}},MJo=t=>vd({isAbiFile:t}),NJo=t=>vd({contractName:t}),IJo="/assets/conttract-utility-Arrow-30532cf6.svg",PJo=gt.div`
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  position: relative;
  height: 100vh;

  .boxContent {
    min-height: ${t=>t.height-24}px;
    height: 100%;
    ${t=>t.theme.breakpoints.down("sm")} {
      .pageToolbar {
        .toolbarRight {
          gap: 8px;
          flex-wrap: wrap;
          justify-content: space-between;
        }
      }
    }
  }
  .react-flow {
    flex: 1;
    .react-flow__minimap {
      background: ${t=>t.theme.custom.erd.miniMap.background};
      border-radius: 4px;
      &.miniMap {
        border: 0;
        .react-flow__minimap-mask {
          opacity: 0;
        }
      }
    }
    .react-flow__handle.connectable {
      cursor: crosshair;
      visibility: hidden;
    }
    .react-flow__container {
      .emptyEvent {
        text-align: center;
        img {
          width: 100%;
        }
        h1 {
          color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          margin-top: -120px;
        }
      }
      .react-flow__node-default.selectable {
        .cardTableTitle .title {
          border: 1px solid #000;
          @-moz-document url-prefix() {
            border-width: 2px;
          }
        }
        .MuiTableContainer-root {
          .cardTableTitle {
            padding: 0 6px;
            .title {
              padding: 8px 16px;
              .tableName {
                font-size: ${t=>t.theme.custom.heading.h3};
              }
            }
            .actionButton {
              .customTableCheckbox {
                padding: 6px 8px;
                .checkIcon {
                  font-size: 32px;
                }
              }
            }
          }
          .MuiTableCell-head {
            padding: 15px 15px;
            font-weight: ${t=>t.theme.custom.fontWeight.sm};
            svg {
              font-size: 30px;
            }
          }
          .MuiTableCell-root {
            .name {
              flex: 0 0 240px;
              max-width: 240px;
            }
            .name,
            .type {
              font-size: ${t=>t.theme.custom.heading.h3};
            }
            .cellBody .name span {
              font-weight: ${t=>t.theme.custom.fontWeight.md};
            }
            &.MuiTableCell-footer {
              button {
                font-size: ${t=>t.theme.custom.heading.h3};
                padding: 18px 15px;
                height: unset;
                svg {
                  height: 24px;
                  width: 24px;
                }
                span {
                  margin-left: 16px;
                }
              }
            }
          }
          .MuiTableBody-root {
            max-height: 200px;
          }
        }
        &:nth-child(5n-4) {
          .MuiTable-root .MuiTableRow-root .MuiTableCell-footer button {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
            box-shadow: unset;
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
          }
          .actionButton .customTableCheckbox:hover {
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
            background: rgb(192 95 251 / 20%);
            svg {
              fill: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
            }
          }
          &:hover,
          .selectedTable {
            .cardTableTitle .title {
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
              background-color: rgb(192 95 251 / 20%);
              color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
            }
            .MuiTableContainer-root {
              background-color: rgb(192 95 251 / 20%);
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
              .MuiTableCell-head {
                background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.black)==null?void 0:r.A4}};
              }
            }
            .actionButton .customTableCheckbox {
              border: unset;
              background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.violet}};
              svg {
                fill: #fff;
              }
            }
          }
        }
        &:nth-child(5n-3) {
          .MuiTable-root .MuiTableRow-root .MuiTableCell-footer button {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.purpleLight}};
            box-shadow: unset;
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.purpleLight}};
          }
          .actionButton .customTableCheckbox:hover {
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.purpleLight}};
            background: rgb(118 84 191 / 20%);
            svg {
              fill: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.purpleLight}};
            }
          }
          &:hover,
          .selectedTable {
            .cardTableTitle .title {
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.purpleLight}};
              background-color: rgb(118 84 191 / 20%);
              color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
            }
            .MuiTableContainer-root {
              background-color: rgb(118 84 191 / 20%);
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.purpleLight}};
              .MuiTableCell-head {
                background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.black)==null?void 0:r.A4}};
              }
            }
            .actionButton .customTableCheckbox {
              border: unset;
              background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.purpleLight}};
              svg {
                fill: #fff;
              }
            }
          }
        }
        &:nth-child(5n-2) {
          .MuiTable-root .MuiTableRow-root .MuiTableCell-footer button {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pinkDark}};
            box-shadow: unset;
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pinkDark}};
          }
          .actionButton .customTableCheckbox:hover {
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pinkDark}};
            background: rgb(227 65 152 / 20%);
            svg {
              fill: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pinkDark}};
            }
          }
          &:hover,
          .selectedTable {
            .cardTableTitle .title {
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pinkDark}};
              background-color: rgb(227 65 152 / 20%);
              color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
            }
            .MuiTableContainer-root {
              background-color: rgb(227 65 152 / 20%);
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pinkDark}};
              .MuiTableCell-head {
                background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.black)==null?void 0:r.A4}};
              }
            }
            .actionButton .customTableCheckbox {
              border: unset;
              background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.pinkDark}};
              svg {
                fill: #fff;
              }
            }
          }
        }
        &:nth-child(5n-1) {
          .MuiTable-root .MuiTableRow-root .MuiTableCell-footer button {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
            box-shadow: unset;
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
          }
          .actionButton .customTableCheckbox:hover {
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
            background: rgb(255 73 73 / 20%);
            svg {
              fill: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
            }
          }
          &:hover,
          .selectedTable {
            .cardTableTitle .title {
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
              background-color: rgb(255 73 73 / 20%);
              color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
            }
            .MuiTableContainer-root {
              background-color: rgb(255 73 73 / 20%);
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
              .MuiTableCell-head {
                background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.black)==null?void 0:r.A4}};
              }
            }
            .actionButton .customTableCheckbox {
              border: unset;
              background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.red}};
              svg {
                fill: #fff;
              }
            }
          }
        }
        &:nth-child(5n) {
          .MuiTable-root .MuiTableRow-root .MuiTableCell-footer button {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.orange}};
            box-shadow: unset;
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.orange}};
          }
          .actionButton .customTableCheckbox:hover {
            border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.orange}};
            background: rgb(227 162 65 / 20%);
            svg {
              fill: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.orange}};
            }
          }
          &:hover,
          .selectedTable {
            .cardTableTitle .title {
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.orange}};
              background-color: rgb(227 162 65 / 20%);
              color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A1}};
            }
            .MuiTableContainer-root {
              background-color: rgb(227 162 65 / 20%);
              border-color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.orange}};
              .MuiTableCell-head {
                background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.black)==null?void 0:r.A4}};
              }
            }
            .actionButton .customTableCheckbox {
              border: unset;
              background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.orange}};
              svg {
                fill: #fff;
              }
            }
          }
        }
      }
    }
  }
  .contractPageWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    &.contractPagebgContent {
      display: flex;
      flex-direction: column;
    }
    .contractFlowList {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      max-width: 1380px;
      margin: 0 auto;
      margin-top: 20px;
      .contractListItem {
        text-align: center;
        position: relative;
        max-width: 20%;
        flex: 0 0 20%;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        &:not(:last-child):after {
          content: '';
          position: absolute;
          background-image: url(${IJo});
          right: -5px;
          top: 60px;
          width: 34px;
          height: 8px;
          background-repeat: no-repeat;
        }
        &:first-child {
          padding-left: 16px;
        }
        &:last-child {
          padding-right: 16px;
        }
        .contractImgWrapper {
          flex: 1;
          img {
            max-width: 100%;
          }
        }
        h3 {
          color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white.A11}};
          font-size: ${t=>t.theme.custom.fontSize.font16};
          font-weight: ${t=>t.theme.custom.fontWeight.rg};
          margin: 0;
          min-height: 50px;
          max-width: 140px;
          margin: 0 auto;
        }
      }
      ${t=>t.theme.breakpoints.down("md")} {
        & {
          flex-direction: column;
          justify-content: center;
          align-items: center;
          margin-top: 40px;
          .contractImgWrapper {
            min-height: unset;
          }
          .contractListItem {
            padding-bottom: 80px;
            max-width: 280px;
            flex: 0 0 280px;
            &:not(:last-child):after {
              left: 50%;
              top: auto;
              right: auto;
              width: 34px;
              bottom: 36px;
              height: 8px;
              background-repeat: no-repeat;
              transform: translateX(-50%) rotate(90deg);
            }
            &:last-child {
              padding-bottom: 30px;
            }
            .contractImgWrapper {
              min-height: 160px;
            }
          }
        }
      }
    }
  }
  .chainImg {
    width: 50px;
    height: 50px;
    max-height: 100%;
  }
  .contractWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .contractDetail {
    background: ${t=>t.theme.custom.tableBg};
    border: 0.5px solid #675b8c;
    box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 16px;
    font-family: ${t=>t.theme.typography.fontFamily};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    line-height: 18px;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
    @-moz-document url-prefix() {
      border-width: 2px;
    }
    &.bottomForm {
      padding: 16px 20px;
      display: block;
      .contactBottomFrom {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .formGroup {
        text-align: left;
        width: 100%;
        max-width: 100%;
        &:not(:last-child) {
          margin-right: 15px;
        }
        .arrowDown {
          top: 20px;
          right: 15px;
        }
        .MuiOutlinedInput-root {
          backdrop-filter: unset;
          .MuiOutlinedInput-input {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.thumbnailBg}};
            font-size: ${t=>t.theme.custom.heading.h3};
            padding: 16px 32px 16px 16px !important;
          }
        }
        .selectableDropdown {
          ul {
            top: 55px;
            max-height: 160px;
            li:hover {
              background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A4}};
            }
            button {
              font-size: ${t=>t.theme.custom.fontSize.font22};
              height: 40px;
              display: block;
              text-align: left;
              overflow: hidden;
              text-overflow: ellipsis;
            }
          }
        }
        .invalidPopup {
          background: #16102b;
          padding: 12px 20px;
          font-size: ${t=>t.theme.custom.heading.h3};
          line-height: 28px;
          .icon {
            font-size: 30px;
            margin-right: 8px;
          }
          &:before {
            height: calc(100% - 20px);
            width: 4px;
          }
          &:after {
            content: '';
            position: absolute;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 12px solid #16102b;
            top: -11px;
            right: 16px;
          }
        }
      }
      label {
        margin: 0;
        padding-bottom: 10px;
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A9}};
        font-size: ${t=>t.theme.custom.fontSize.font22};
      }
      .infoButton {
        height: 45px;
        width: 45px;
        @-moz-document url-prefix() {
          border-width: 2px;
        }
        svg {
          height: 25px;
          width: 25px;
        }
      }
    }
    &.selectAllEvents {
      .MuiFormControlLabel-root {
        margin-bottom: 0;
        .MuiCheckbox-root {
          color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A9}};
          svg {
            height: 36px;
            width: 36px;
          }
        }
        .MuiFormControlLabel-label {
          color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A9}};
          font-size: ${t=>t.theme.custom.heading.h2};
        }
      }
      .infoIcon {
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
        height: 30px;
        width: 30px;
      }
    }
    .helpText {
      text-align: left;
      font-size: ${t=>t.theme.custom.fontSize.font22};
      font-weight: 400;
      font-weight: ${t=>t.theme.custom.fontWeight.rg};
      line-height: 32px;
      margin-top: 0;
      &:after,
      &:before {
        display: none;
      }
      .infoIcon {
        font-size: 28px;
      }
    }
    & > div:not(:last-child) {
      margin-right: 24px;
      text-align: left;
    }
    &.contractName {
      padding: 12px 20px;
      margin-bottom: 15px;
      display: inline-block;
      text-align: center;
      font-size: ${t=>t.theme.custom.fontSize.font22};
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      &.editable {
        .MuiFormControl-root {
          width: 400px;
          .MuiInputBase-root {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
            .MuiOutlinedInput-input {
              padding: 6px 36px 6px 12px;
              font-size: ${t=>t.theme.custom.fontSize.font20};
            }
          }
          .inputHelpText {
            top: 10px;
          }
        }
      }
    }
    &.namespaceForm {
      margin-top: 10px;
      .formGroup {
        width: 400px;
        .MuiOutlinedInput-input {
          padding: 16px 16px;
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.thumbnailBg}};
          box-shadow: 2.76412px 2.76412px 16.5847px rgba(7, 1, 26, 0.45);
          font-size: ${t=>t.theme.custom.fontSize.font20};
        }
        .arrowDown {
          top: 16px;
        }
      }
    }
    .contractTitle {
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      font-size: ${t=>t.theme.custom.heading.h3};
      margin-bottom: 10px;
      line-height: 25px;
    }
    .contractInfo {
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      font-size: ${t=>t.theme.custom.fontSize.font22};
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    }
    .actionButton {
      margin-left: 30px;
      button {
        height: 45px;
        width: 45px;
        @-moz-document url-prefix() {
          border-width: 2px;
        }
        svg {
          height: 25px;
          width: 25px;
        }
      }
    }
  }
  .indexedContractInfo {
    position: absolute;
    top: 65px;
    right: 20px;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    .indexStatus {
      color: ${t=>t.theme.custom.white.A11};
      background: ${t=>t.theme.custom.tableBg};
      border: 0.5px solid #675b8c;
      box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
      padding: 6px 8px;
      border-radius: 8px;
      .statusTag {
        background: ${t=>t.theme.custom.white.A4};
        padding: 3px 6px;
        border-radius: 4px;
        border: 1px solid ${t=>t.theme.custom.pink};
        color: ${t=>t.theme.custom.pink};
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        font-size: 10px;
      }
    }
    .infoText {
      position: relative;
      display: inline-flex;
      align-items: center;
      background: ${t=>t.theme.custom.white.A4};
      color: ${t=>t.theme.custom.white.A11};
      border-radius: 8px;
      padding: 8px 8px 8px 12px;
      overflow: hidden;
      .infoIcon {
        font-size: 16px;
        margin-right: 8px;
        color: ${t=>t.theme.custom.pink};
      }
      span {
        color: ${t=>t.theme.custom.blueLight};
        margin-right: 5px;
        cursor: pointer;
        &:hover {
          text-decoration: underline;
          color: ${t=>t.theme.custom.white.A11};
        }
      }
      &:before,
      &:after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: ${t=>t.theme.custom.pink};
      }
      &:before {
        left: 0;
        height: calc(100% - 12px);
        width: 3px;
      }
      &:after {
        left: 3px;
        width: 10px;
        height: calc(100% - 20px);
        filter: blur(10px);
      }
    }
  }
  .formBtnwrap {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .contractABIWrapper {
    background-color: ${t=>t.theme.custom.black.A5};
    border-radius: 4px;
    padding: 5px 12px;
    max-width: 730px;
    text-align: right;
    color: ${t=>t.theme.custom.blueLight};
    button {
      color: inherit;
      padding: 0;
      font-size: ${t=>t.theme.custom.fontSize.font12};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      &:hover {
        color: inherit;
      }
      &.copyAbiButton {
        position: absolute;
        top: 45px;
        right: 25px;
        z-index: 1;
        color: ${t=>t.theme.custom.white.A1};
      }
    }
  }
  @media (max-width: 767px) {
    .formBtnwrap,
    .indexedContractInfo {
      right: unset;
      left: 12px;
      align-items: flex-start;
    }
    .formBtnwrap {
      top: 80px;
    }
    .indexedContractInfo {
      top: 125px;
    }
  }
  .loadingBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    gap: 70px;
    padding: 80px;
    @media (min-height: 800px) {
      padding: 650px 0;
    }

    @media (max-height: 700px) {
      padding: 400px 0;
    }
  }
`,VZn=gt.div`
  && {
    padding: 12px;
    .contractForm {
      padding: 16px;
      background: ${t=>t.theme.custom.boxBg};
      box-shadow: 0px 10px 30px rgba(15, 24, 42, 0.51);
      border-radius: 8px;
      max-width: 1180px;
      margin: 0 auto;
      border-radius: 8px;
      .comingSoonBlock {
        text-align: center;
        margin-bottom: 16px;
        h1 {
          font-size: ${t=>t.theme.custom.fontSize.font24};
          font-weight: ${t=>t.theme.custom.fontWeight.sm};
          color: ${t=>t.theme.custom.white.A11};
        }
        .desc {
          max-width: 720px;
          margin: 0 auto;
        }
        .infoText {
          margin-top: 8px;
          position: relative;
          display: inline-flex;
          align-items: center;
          background: ${t=>t.theme.custom.white.A4};
          color: ${t=>t.theme.custom.white.A11};
          border-radius: 8px;
          padding: 8px 8px 8px 12px;
          overflow: hidden;
          .infoIcon {
            font-size: 16px;
            margin-right: 8px;
            color: ${t=>t.theme.custom.pink};
          }
          a {
            color: ${t=>t.theme.custom.blueActive};
            &:hover {
              text-decoration: underline;
              color: ${t=>t.theme.custom.white.A11};
            }
          }
          &:before,
          &:after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: ${t=>t.theme.custom.pink};
          }
          &:before {
            left: 0;
            height: calc(100% - 12px);
            width: 3px;
          }
          &:after {
            left: 3px;
            width: 10px;
            height: calc(100% - 20px);
            filter: blur(10px);
          }
        }
      }
      .contractFormInner {
        background: ${t=>t.theme.custom.secondaryBg};
        display: flex;
        align-items: flex-end;
        padding: 24px;
        border-radius: 8px;
        ${t=>t.theme.breakpoints.down("sm")} {
          flex-wrap: wrap;
        }
        .formGroup {
          flex: 1;
          &:not(:last-child) {
            margin-right: 20px;
            ${t=>t.theme.breakpoints.down("sm")} {
              margin-bottom: 16px;
              margin-right: 0px;
            }
          }
          &.selectChain {
            max-width: 230px;
            ${t=>t.theme.breakpoints.down("sm")} {
              max-width: 100%;
            }
          }
          &.submit {
            max-width: 160px;
            ${t=>t.theme.breakpoints.down("sm")} {
              max-width: 100%;
              margin-top: 10px;
            }
            button {
              width: 100%;
            }
          }
        }
      }
    }
    ${t=>t.theme.breakpoints.down("md")} {
      &.formBtnwrap {
        top: 15px;
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
      }
      .contractForm {
        padding: 10px 10px 15px;
        flex-wrap: wrap;
        .formGroup {
          margin-top: 5px;
          &:not(:last-child) {
            margin-right: 15px;
          }
          .MuiOutlinedInput-input,
          .customFileInput input {
            padding: 8px 10px !important;
          }
          &.fileField {
            margin-top: 15px;
          }
          &.submit {
            margin-top: 15px;
            max-width: 100px;
          }
        }
      }
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      .contractForm {
        flex-direction: column;
        align-items: flex-start;
        .formGroup {
          flex: unset !important;
          max-width: 100%;
          width: 100%;
          &.selectChain {
            max-width: 100%;
          }
        }
      }
    }
  }
`;gt.div`
  display: inline-flex;
  text-align: left;
  color: ${t=>t.theme.custom.yellow};
  word-break: break-word;
  font-size: 16px;
  font-weight: ${t=>t.theme.custom.fontWeight.md};
  line-height: 22px;
  svg {
    margin-right: 6px;
    line-height: 1;
    height: 24px;
    width: 24px;
  }
`;gt.div`
  && {
    color: ${t=>t.theme.custom.white.A1};
    position: relative;
    padding: 5px 7px;
    display: inline-flex;
    align-items: center;
    background: rgba(77, 70, 100, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    &.disabled {
      opacity: 0.7;
    }
  }
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    &:disabled {
      cursor: not-allowed;
    }
  }
  .checkIcon {
    opacity: 0;
  }
  input:checked ~ .checkIcon {
    opacity: 1;
  }
`;gt.div`
  .formGroup {
    margin-bottom: 20px;
  }
  .formGroupBtnRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
`;const OJo=gt.div`
  position: relative;
  .copyAbiButton {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 1;
    color: ${t=>t.theme.custom.white.A1};
  }
  .ace_editor {
    line-height: 20px;
    color: ${t=>t.theme.custom.greyText.A6};
    background: ${t=>t.theme.custom.editorBg};
    box-shadow: 0px 90px 60px rgba(15, 24, 42, 0.2);
    backdrop-filter: blur(100px);
    border-radius: 6px;
    .ace_gutter {
      background: transparent;
    }
    .ace_string {
      color: ${t=>t.theme.custom.editor.string};
    }
    .ace_numeric {
      color: ${t=>t.theme.custom.olive};
    }
    .ace_boolean {
      color: ${t=>t.theme.custom.editor.numeric};
    }
    .ace_variable {
      color: ${t=>t.theme.custom.editor.keyword};
    }
    .ace_indent-guide {
      background: unset;
    }
  }
`,LJo=gt.div`
  text-align: center;
  padding: 10px 0;
  .noAbiImg {
    min-height: 62px;
    margin-bottom: 20px;
    img {
      margin: 0 auto;
    }
  }
  h3 {
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    margin-bottom: 5px;
  }
  p {
    color: ${t=>t.theme.custom.greyText.A2};
    margin-bottom: 0;
  }
  .fileField {
    margin: 35px 0;
    .customFileInput {
      max-width: 260px;
      .removeFile {
        margin-left: auto;
        line-height: 1;
        cursor: pointer;
        &:hover {
          color: ${t=>t.theme.custom.white.A11};
        }
      }
      .fileName {
        gap: 16px;
        background: transparent;
        color: ${t=>t.theme.custom.white.A11};
        border: 1px solid #675b8c;
        border-radius: 8px;
      }
    }
    .acceptText {
      color: ${t=>t.theme.custom.greyText.A2};
      max-width: 260px;
      text-align: left;
      margin: 4px auto 0;
      &.error {
        color: ${t=>t.theme.custom.red};
      }
    }
  }
`;function BJo(t,e,n){return Math.max(e,Math.min(t,n))}const ng={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function gjt(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function vjt(t,e,n,r=.15){return r===0?BJo(t,e,n):t<e?-gjt(e-t,n-e,r)+e:t>n?+gjt(t-n,n-e,r)+n:t}function DJo(t,[e,n],[r,a]){const[[o,s],[l,c]]=t;return[vjt(e,o,s,r),vjt(n,l,c,a)]}function $Jo(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function FJo(t){var e=$Jo(t,"string");return typeof e=="symbol"?e:String(e)}function A0(t,e,n){return e=FJo(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ajt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Dd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ajt(Object(n),!0).forEach(function(r){A0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ajt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const KZn={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function yjt(t){return t?t[0].toUpperCase()+t.slice(1):""}const jJo=["enter","leave"];function HJo(t=!1,e){return t&&!jJo.includes(e)}function UJo(t,e="",n=!1){const r=KZn[t],a=r&&r[e]||e;return"on"+yjt(t)+yjt(a)+(HJo(n,a)?"Capture":"")}const zJo=["gotpointercapture","lostpointercapture"];function GJo(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const r=zJo.includes(e)?"capturecapture":"capture",a=!!~e.indexOf(r);return a&&(e=e.replace("capture","")),{device:e,capture:a,passive:n}}function VJo(t,e=""){const n=KZn[t],r=n&&n[e]||e;return t+r}function WCe(t){return"touches"in t}function WZn(t){return WCe(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function KJo(t){return Array.from(t.touches).filter(e=>{var n,r;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,e.target))})}function WJo(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function QZn(t){return WCe(t)?WJo(t)[0]:t}function QJo(t){return KJo(t).map(e=>e.identifier)}function h7e(t){const e=QZn(t);return WCe(t)?e.identifier:e.pointerId}function bjt(t){const e=QZn(t);return[e.clientX,e.clientY]}const xjt=40,Ejt=800;function qJo(t){let{deltaX:e,deltaY:n,deltaMode:r}=t;return r===1?(e*=xjt,n*=xjt):r===2&&(e*=Ejt,n*=Ejt),[e,n]}function YJo(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:r,metaKey:a,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:r,metaKey:a,ctrlKey:o})}return e}function mbe(t,...e){return typeof t=="function"?t(...e):t}function JJo(){}function ZJo(...t){return t.length===0?JJo:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function Sjt(t,e){return Object.assign({},e,t||{})}const XJo=32;class eZo{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:a}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=a,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?mbe(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:a}=this;n.args=this.args;let o=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,a.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,a.locked=!!document.pointerLockElement,Object.assign(a,YJo(e)),a.down=a.pressed=a.buttons%2===1||a.touches>0,o=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const _=n._delta.map(Math.abs);ng.addTo(n._distance,_)}this.axisIntent&&this.axisIntent(e);const[s,l]=n._movement,[c,u]=r.threshold,{_step:d,values:h}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=c&&h[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&h[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=c&&Math.sign(s)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const f=[0,0];if(r.hasCustomTransform){const[_,C]=h;f[0]=d[0]!==!1?_-d[0]:0,f[1]=d[1]!==!1?C-d[1]:0}else f[0]=d[0]!==!1?s-d[0]:0,f[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(f);const p=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=a[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=mbe(r.bounds,n)),this.setup&&this.setup()),n.movement=f,this.computeOffset()));const[g,v]=n.offset,[[A,y],[S,x]]=n._bounds;n.overflow=[g<A?-1:g>y?1:0,v<S?-1:v>x?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const w=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=DJo(n._bounds,n.offset,w),n.delta=ng.sub(n.offset,p),this.computeMovement(),m&&(!n.last||o>XJo)){n.delta=ng.sub(n.offset,p);const _=n.delta.map(Math.abs);ng.addTo(n.distance,_),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[_[0]/o,_[1]/o],n.timeDelta=o)}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const a=this.handler(Dd(Dd(Dd({},n),e),{},{[this.aliasKey]:e.values}));a!==void 0&&(e.memo=a)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function tZo([t,e],n){const r=Math.abs(t),a=Math.abs(e);if(r>a&&r>n)return"x";if(a>r&&a>n)return"y"}class qZn extends eZo{constructor(...e){super(...e),A0(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ng.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ng.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const a=typeof r.axisThreshold=="object"?r.axisThreshold[WZn(e)]:r.axisThreshold;n.axis=tZo(n._movement,a)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const nZo=t=>t,wjt=.15,YZn={enabled(t=!0){return t},eventOptions(t,e,n){return Dd(Dd({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[wjt,wjt];case!1:return[0,0];default:return ng.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return ng.toVector(t)},transform(t,e,n){const r=t||n.shared.transform;return this.hasCustomTransform=!!r,r||nZo},threshold(t){return ng.toVector(t,0)}},rZo=0,BK=Dd(Dd({},YZn),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=rZo){return t},bounds(t={}){if(typeof t=="function")return o=>BK.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:a=1/0}=t;return[[e,n],[r,a]]}}),_jt={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class iZo extends qZn{constructor(...e){super(...e),A0(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),a={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=BK.bounds(a)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const a=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(a&&a.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=h7e(e),r._pointerActive=!0,this.computeValues(bjt(e)),this.computeInitial(),n.preventScrollAxis&&WZn(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive)return;const a=h7e(e);if(n._pointerId!==void 0&&a!==n._pointerId)return;const o=bjt(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=ng.sub(o,n._values),this.computeValues(o)),ng.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const a=h7e(e);if(n._pointerId!==void 0&&a!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=n._distance;if(n.tap=o<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[h,f]=r.swipe.velocity,[p,m]=r.swipe.distance,g=r.swipe.duration;if(n.elapsedTime<g){const v=Math.abs(l/n.timeDelta),A=Math.abs(c/n.timeDelta);v>h&&Math.abs(u)>p&&(n.swipe[0]=Math.sign(l)),A>f&&Math.abs(d)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,aZo(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=_jt[e.key];if(n){const r=this.state,a=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(this.config.keyboardDisplacement,a),r._keyboardActive=!0,ng.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in _jt&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function aZo(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const ale=typeof window<"u"&&window.document&&window.document.createElement;function JZn(){return ale&&"ontouchstart"in window}function oZo(){return JZn()||ale&&window.navigator.maxTouchPoints>1}function sZo(){return ale&&"onpointerdown"in window}function lZo(){return ale&&"exitPointerLock"in window.document}function cZo(){try{return"constructor"in GestureEvent}catch{return!1}}const fx={isBrowser:ale,gesture:cZo(),touch:JZn(),touchscreen:oZo(),pointer:sZo(),pointerLock:lZo()},uZo=250,dZo=180,hZo=.5,fZo=50,pZo=250,mZo=10,Tjt={mouse:0,touch:0,pen:8},gZo=Dd(Dd({},BK),{},{device(t,e,{pointer:{touch:n=!1,lock:r=!1,mouse:a=!1}={}}){return this.pointerLock=r&&fx.pointerLock,fx.touch&&n?"touch":this.pointerLock?"mouse":fx.pointer&&!a?"pointer":fx.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?uZo:void 0,!(!fx.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:r=1,keys:a=!0}={}}){return this.pointerButtons=r,this.keys=a,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:a=void 0}){const o=ng.toVector(t,n?r:a?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:t=hZo,distance:e=fZo,duration:n=pZo}={}){return{velocity:this.transform(ng.toVector(t)),distance:this.transform(ng.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return dZo;case!1:return 0;default:return t}},axisThreshold(t){return t?Dd(Dd({},Tjt),t):Tjt},keyboardDisplacement(t=mZo){return t}});function vZo(t){const[e,n]=t.overflow,[r,a]=t._delta,[o,s]=t._direction;(e<0&&r>0&&o<0||e>0&&r<0&&o>0)&&(t._movement[0]=t._movementBound[0]),(n<0&&a>0&&s<0||n>0&&a<0&&s>0)&&(t._movement[1]=t._movementBound[1])}Dd(Dd({},YZn),{},{device(t,e,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!fx.touch&&fx.gesture)return"gesture";if(fx.touch&&r)return"touch";if(fx.touchscreen){if(fx.pointer)return"pointer";if(fx.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:r={}}){const a=s=>{const l=Sjt(mbe(n,s),{min:-1/0,max:1/0});return[l.min,l.max]},o=s=>{const l=Sjt(mbe(r,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof r!="function"?[a(),o()]:s=>[a(s),o(s)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",ng.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});Dd(Dd({},BK),{},{mouseOnly:(t=!0)=>t});class AZo extends qZn{constructor(...e){super(...e),A0(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=qJo(e),ng.addTo(n._movement,n._delta),vZo(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const yZo=BK;Dd(Dd({},BK),{},{mouseOnly:(t=!0)=>t});const udt=new Map,Vqe=new Map;function bZo(t){udt.set(t.key,t.engine),Vqe.set(t.key,t.resolver)}const xZo={key:"drag",engine:iZo,resolver:gZo},EZo={key:"wheel",engine:AZo,resolver:yZo};function SZo(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,o;for(o=0;o<r.length;o++)a=r[o],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function wZo(t,e){if(t==null)return{};var n=SZo(t,e),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)r=o[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const _Zo={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=fx.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},TZo=["target","eventOptions","window","enabled","transform"];function Hge(t={},e){const n={};for(const[r,a]of Object.entries(e))switch(typeof a){case"function":n[r]=a.call(n,t[r],r,t);break;case"object":n[r]=Hge(t[r],a);break;case"boolean":a&&(n[r]=t[r]);break}return n}function CZo(t,e,n={}){const r=t,{target:a,eventOptions:o,window:s,enabled:l,transform:c}=r,u=wZo(r,TZo);if(n.shared=Hge({target:a,eventOptions:o,window:s,enabled:l,transform:c},_Zo),e){const d=Vqe.get(e);n[e]=Hge(Dd({shared:n.shared},u),d)}else for(const d in u){const h=Vqe.get(d);h&&(n[d]=Hge(Dd({shared:n.shared},u[d]),h))}return n}class ZZn{constructor(e,n){A0(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,r,a,o){const s=this._listeners,l=VJo(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Dd(Dd({},c),o);e.addEventListener(l,a,u);const d=()=>{e.removeEventListener(l,a,u),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class kZo{constructor(){A0(this,"_timeouts",new Map)}add(e,n,r=140,...a){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...a))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class RZo{constructor(e){A0(this,"gestures",new Set),A0(this,"_targetEventStore",new ZZn(this)),A0(this,"gestureEventStores",{}),A0(this,"gestureTimeoutStores",{}),A0(this,"handlers",{}),A0(this,"config",{}),A0(this,"pointerIds",new Set),A0(this,"touchIds",new Set),A0(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),MZo(this,e)}setEventIds(e){if(WCe(e))return this.touchIds=new Set(QJo(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=CZo(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let a;if(!(n.target&&(a=n.target(),!a))){if(n.enabled){for(const s of this.gestures){const l=this.config[s],c=Cjt(r,l.eventOptions,!!a);if(l.enabled){const u=udt.get(s);new u(this,e,s).bind(c)}}const o=Cjt(r,n.eventOptions,!!a);for(const s in this.nativeHandlers)o(s,"",l=>this.nativeHandlers[s](Dd(Dd({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const o in r)r[o]=ZJo(...r[o]);if(!a)return r;for(const o in r){const{device:s,capture:l,passive:c}=GJo(o);this._targetEventStore.add(a,s,"",r[o],{capture:l,passive:c})}}}}function k7(t,e){t.gestures.add(e),t.gestureEventStores[e]=new ZZn(t,e),t.gestureTimeoutStores[e]=new kZo}function MZo(t,e){e.drag&&k7(t,"drag"),e.wheel&&k7(t,"wheel"),e.scroll&&k7(t,"scroll"),e.move&&k7(t,"move"),e.pinch&&k7(t,"pinch"),e.hover&&k7(t,"hover")}const Cjt=(t,e,n)=>(r,a,o,s={},l=!1)=>{var c,u;const d=(c=s.capture)!==null&&c!==void 0?c:e.capture,h=(u=s.passive)!==null&&u!==void 0?u:e.passive;let f=l?r:UJo(r,a,d);n&&h&&(f+="Passive"),t[f]=t[f]||[],t[f].push(o)},NZo=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function IZo(t){const e={},n={},r=new Set;for(let a in t)NZo.test(a)?(r.add(RegExp.lastMatch),n[a]=t[a]):e[a]=t[a];return[n,e,r]}function R7(t,e,n,r,a,o){if(!t.has(n)||!udt.has(r))return;const s=n+"Start",l=n+"End",c=u=>{let d;return u.first&&s in e&&e[s](u),n in e&&(d=e[n](u)),u.last&&l in e&&e[l](u),d};a[r]=c,o[r]=o[r]||{}}function PZo(t,e){const[n,r,a]=IZo(t),o={};return R7(a,n,"onDrag","drag",o,e),R7(a,n,"onWheel","wheel",o,e),R7(a,n,"onScroll","scroll",o,e),R7(a,n,"onPinch","pinch",o,e),R7(a,n,"onMove","move",o,e),R7(a,n,"onHover","hover",o,e),{handlers:o,config:e,nativeHandlers:r}}function OZo(t,e={},n,r){const a=ke.useMemo(()=>new RZo(t),[]);if(a.applyHandlers(t,r),a.applyConfig(e,n),ke.useEffect(a.effect.bind(a)),ke.useEffect(()=>a.clean.bind(a),[]),e.target===void 0)return a.bind.bind(a)}function LZo(t){return t.forEach(bZo),function(n,r){const{handlers:a,nativeHandlers:o,config:s}=PZo(n,r||{});return OZo(a,s,void 0,o)}}const BZo=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),kjt=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),DZo=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),$Zo=(t,e)=>DZo(BZo(kjt(t),kjt(e))),FZo=200,jZo=150,HZo=LZo([xZo,EZo]),XZn=({style:t,className:e,maskColor:n,nodes:r})=>{const a=pu(D=>D.width),o=pu(D=>D.height),[s,l,c]=pu(D=>D.transform),u=Dv(["react-flow__minimap",e]),d=(t==null?void 0:t.width)||FZo,h=(t==null?void 0:t.height)||jZo,f=r&&r.length,p=r&&Kse(r),m={x:-s/c,y:-l/c,width:a/c,height:o/c},g=f?$Zo(p,m):m,v=g.width/d,A=g.height/h,y=Math.max(v,A),S=y*d,x=y*h,w=5*y,_=g.x-(S-g.width)/2-w,C=g.y-(x-g.height)/2-w,R=S+w*2,k=x+w*2,P=pu(D=>D.minZoom),N=pu(D=>D.maxZoom),L=Y.useRef(null),{setViewport:I}=Wse(),b=Y.useCallback(({delta:[D,B]})=>{I({x:s+-D*c*v,y:l+-B*c*A,zoom:c})},[A,v,c,s,l,I]),T=Y.useCallback(({event:{clientX:D,clientY:B,deltaY:j},active:H})=>{var te;if(!H)return;const U=Math.sign(j),{x:$,y:z}=((te=L.current)==null?void 0:te.getBoundingClientRect())||{x:D,y:B},Z=D-$,K=B-z,Q=U===1?1/1.2:1,X=c*(U===-1?1.2:Q);X>N||X<P||I({x:s+U*Z*X,y:l+U*K*X,zoom:X})},[c,N,P,I,s,l]),M=HZo({onWheel:T,onDrag:b});return E.jsx("svg",{width:d,height:h,viewBox:`${_} ${C} ${R} ${k}`,style:t,className:u,children:E.jsx("rect",{ref:L,className:"react-flow__minimap-mask",x:m.x,y:m.y,width:m.width,height:m.height,fill:n,fillRule:"evenodd",style:{touchAction:"none",cursor:"grab"},...M()})})};XZn.displayName="MiniMap";const eXn=Y.memo(XZn),UZo=({nodes:t,edges:e,onNodesChange:n,onEdgesChange:r})=>{const{setViewport:a}=Wse(),o=()=>{a({x:100,y:20,zoom:.5},{duration:400})};return E.jsxs(gut,{nodes:t,edges:e,onNodesChange:n,onEdgesChange:r,nodesDraggable:!0,connectionMode:DP.Loose,onPaneClick:()=>{},minZoom:.4,onInit:o,children:[E.jsx(vYn,{className:"miniMap",nodeColor:qt.custom.erd.miniMap.nodeColor}),E.jsx(eXn,{nodeColor:qt.custom.erd.miniMap.nodeColor,maskColor:qt.custom.erd.miniMap.maskColor,nodes:t,style:{background:"transparent"}}),E.jsx(pYn,{showInteractive:!1}),E.jsx(yYn,{color:qt.custom.greyText.A1,gap:16})]})};function zZo({nodes:t,edges:e,onNodesChange:n,onEdgesChange:r}){return E.jsx(vut,{children:E.jsx(UZo,{nodes:t,edges:e,onNodesChange:n,onEdgesChange:r})})}var ddt={},GZo=As;Object.defineProperty(ddt,"__esModule",{value:!0});var hdt=ddt.default=void 0,VZo=GZo(Ps()),KZo=E;hdt=ddt.default=(0,VZo.default)((0,KZo.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m0 2v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1z"}),"TableView");const Rjt={ETHEREUM:"74 143 255",POLYGON:"112  73  255",GOERLI:"74 119 192",SEPOLIA:"74 119 192",MUMBAI:"99 55 248",SUI:"0 255 255",AVALANCHE_C:"217 54 54",BNB:"243  186  44",BASE:"0 82 255","SUI (testnet)":"0 147 147",SEI:"157 31 25",BITCOIN:"247 147 26",APTOS:"46 216 167"},WZo=gt.div`
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 8px;
  opacity: ${t=>t!=null&&t.hasOpacity?1:.5};
  background: ${t=>t!=null&&t.gradiantClass&&Rjt[t==null?void 0:t.gradiantClass]?`rgb(${Rjt[t==null?void 0:t.gradiantClass]} / 70%)`:t.theme.custom.erdTable.titleBg};
  img {
    max-width: 36px;
    height: 36px;
    margin-right: 10px;
  }
  span {
    font-size: ${t=>t.theme.custom.fontSize.font16};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    color: ${t=>t.theme.custom.white.A1};
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
`,tXn=gt.div`
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  opacity: ${t=>t!=null&&t.hasOpacity?1:.5};
  .title {
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    color: ${t=>t.theme.custom.white.A11};
    padding: 8px 10px;
    border-radius: 4px;
    background: ${t=>t.theme.custom.black.A7};
    word-break: break-word;
    display: inline-flex;
    align-items: flex-start;
    overflow: hidden;
    img {
      max-width: 20px;
      margin-right: 5px;
    }
  }
  .cardTableTitle {
    align-items: center;
    .title {
      padding: 9px 5px 9px 9px;
      background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.erdTable)==null?void 0:r.titleBg}};
      border-radius: 4px;
      display: flex;
      align-items: center;
      .indexCount {
        margin-left: 10px;
        border: 0.5px solid rgba(255, 255, 255, 0.12);
        border-radius: 4px;
        padding: 4px 6px;
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        font-size: ${t=>t.theme.custom.fontSize.font8};
        line-height: 12px;
      }
    }
  }
  .title .tableName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: ${t=>t.theme.custom.fontSize.font14};
  }
  .title .tableCount {
    background: ${t=>t.theme.custom.erdTable.countBg};
    border: 0.5px solid ${t=>t.theme.custom.white.A3};
    border-radius: 4px;
    font-size: ${t=>t.theme.custom.fontSize.font12};
    line-height: 12px;
    color: ${t=>t.theme.custom.white.A2};
    padding: 3px 8px;
    margin-left: 15px;
    white-space: nowrap;
  }
  .actionButton {
    display: inline-flex;
    margin-left: 10px;
  }
  button {
    background: ${t=>t.theme.custom.black.A7};
    color: ${t=>t.theme.custom.white.A1};
    margin-left: 8px;
    border: 0.5px solid ${t=>t.theme.custom.white.A3};
    border-radius: 6px;
  }
  button:hover {
    background: ${t=>t.theme.custom.black.A8};
    box-shadow: 4px 4px 20px 0px rgba(0, 0, 0, 0.4);
  }
`,nXn=gt.div`
  opacity: ${t=>t!=null&&t.hasOpacity?1:.5};
  position: relative;
  .MuiTableContainer-root {
    background: ${t=>t.theme.custom.erdTable.tableBg};
    padding: 10px 6px;
    border: 1px solid ${t=>t.theme.custom.erdTable.border};
    border-radius: 3.66946px;
    font-size: 10px;
    @-moz-document url-prefix() {
      border-width: 2px;
    }
    &.pendingTable {
      background: ${t=>t.theme.custom.erdTable.pendingBg};
      .MuiTableCell-head {
        background: ${t=>t.theme.custom.erdTable.pendingTableHead};
      }
    }
  }
  .ribbon {
    width: 70px;
    height: 70px;
    overflow: hidden;
    position: absolute;
    top: -6px;
    left: -6px;
    &:before,
    &:after {
      position: absolute;
      z-index: -1;
      content: '';
      display: block;
      border: 3px solid ${t=>t.theme.custom.pinkDark};
      border-top-color: transparent;
      border-left-color: transparent;
    }
    &:before {
      top: 0;
      right: 0;
    }
    &:after {
      bottom: 0;
      left: 0;
    }
    span {
      position: absolute;
      display: block;
      width: 120px;
      padding: 3px 0;
      background-color: ${t=>t.theme.custom.pink};
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      color: ${t=>t.theme.custom.white.A11};
      font: 700 18px/1 'Lato', sans-serif;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
      text-transform: uppercase;
      text-align: center;
      left: -32px;
      top: 20px;
      transform: rotate(-45deg);
      font-size: ${t=>t.theme.custom.fontSize.font12};
    }
  }
  .MuiTableBody-root {
    display: block;
    max-height: 300px;
    overflow: auto;
    background: transparent;
    padding: 10px;
  }
  .MuiTableBody-root .MuiTableRow-root {
    display: table;
    width: 100%;
  }
  .MuiTableCell-root {
    font-family: ${t=>t.theme.typography.fontFamily};
  }
  .MuiTableCell-root .name {
    flex: 0 0 185px;
    max-width: 185px;
    display: inline-flex;
    align-items: center;
  }
  .MuiTableCell-root .type {
    flex: 1;
    text-align: right;
  }
  .MuiTableCell-head {
    color: ${t=>t.theme.custom.erdTable.headText};
    background: ${t=>t.theme.custom.erdTable.headBg};
    border-radius: 3.66946px;
    border-bottom: 0;
    padding: 12px 15px;
    font-weight: 500;
    word-break: break-word;
  }
  .MuiTableCell-head svg {
    margin-right: 10px;
    font-size: 20px;
  }
  .MuiTableCell-body {
    background: transparent;
    padding: 4px 6px;
    border: none;
    word-break: break-word;
  }
  .MuiTableCell-body svg {
    margin-right: 10px;
    font-size: ${t=>t.theme.custom.fontSize.font14};
  }
  .MuiTableCell-body svg[data-testid='KeyIcon'] path {
    fill: ${t=>t.theme.custom.orange};
  }
  .MuiTableCell-body svg[data-testid='ChangeHistoryIcon'] path {
    fill: ${t=>t.theme.custom.erdTable.icon};
  }
  .MuiTableCell-body.active {
    background: ${t=>t.theme.custom.erdTable.cellActive};
  }
  .MuiTableCell-footer {
    padding: 10px 0 0 0;
    border-bottom: 0;
  }
  .cellHead,
  .cellBody {
    display: flex;
  }
  .cellBody .name {
    color: ${t=>t.theme.custom.erdTable.name};
    padding-right: 10px;
  }
  .cellBody .name span {
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .cellBody .type {
    color: ${t=>t.theme.custom.erdTable.type};
    svg {
      margin-right: 0;
      margin-left: 4px;
      margin-bottom: -1px;
      color: ${t=>t.theme.custom.white.A11};
    }
  }
  .MuiCollapse-wrapperInner {
    width: 100%;
    display: table;
  }
`;gt.div`
  border-radius: 4px;
  background: rgba(13, 19, 34, 0.6);
  color: ${t=>t.theme.custom.white.A1};
  position: relative;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  border: 0.5px solid ${t=>t.theme.custom.white.A3};
  border-radius: 6px;
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
  }
  .checkIcon {
    opacity: 0;
  }
  input:checked ~ .checkIcon {
    opacity: 1;
  }
`;const QZo=gt.div`
  && {
    background-color: ${t=>t.theme.custom.erd.parentHeadBg};
    padding: 25px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .erdTitle {
      color: ${t=>t.theme.custom.white.A1};
      font-size: 65px;
      margin-bottom: 0;
      text-transform: capitalize;
    }
  }
`,qZo=gt.div`
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  opacity: ${t=>t!=null&&t.hasOpacity?1:.5};
  cursor: ${t=>(t==null?void 0:t.isDisabled)&&"not-allowed"};
  button {
    background: ${t=>t.theme.custom.black.A7};
    color: ${t=>t.theme.custom.white.A1};
    border: 0.5px solid ${t=>t.theme.custom.white.A3};
    border-radius: 4px;
    padding: 6px 8px;
    svg {
      max-width: 21px;
    }
    &:hover {
      background: ${t=>t.theme.custom.black.A8};
      box-shadow: 4px 4px 20px 0px rgba(0, 0, 0, 0.4);
    }
  }
  .encryptedCols,
  .tamperpoofTag,
  .tableSize {
    font-size: ${t=>t.theme.custom.fontSize.font12};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    color: ${t=>t.theme.custom.white.A11};
    border: 0.5px solid ${t=>t.theme.custom.white.A3};
    padding: 8px 6px;
    border-radius: 4px;
    background: ${t=>t.theme.custom.black.A7};
  }
  .encryptedCols {
    flex: 1;
    cursor: pointer;
    pointer-events: ${t=>(t==null?void 0:t.isDisabled)&&"none"};
    &:hover {
      background: ${t=>t.theme.custom.black.A8};
      box-shadow: 4px 4px 20px 0px rgba(0, 0, 0, 0.4);
    }
    svg {
      margin-bottom: -2px;
      margin-right: 4px;
    }
  }
  .tamperpoofTag {
    position: relative;
    padding-left: 20px;
    &:before {
      content: '';
      width: 8px;
      height: 8px;
      background: #7fce87;
      position: absolute;
      border-radius: 50%;
      top: 50%;
      transform: translateY(-50%);
      left: 8px;
    }
  }
`;gt.div`
  background: #201a33;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 4px 4px 32px 0px rgba(7, 1, 26, 0.55);
  border: 0.5px solid ${t=>t.theme.custom.white.A3};
  text-align: left;
  position: absolute;
  top: 0;
  left: calc(100% + 15px);
  width: 500px;
  opacity: ${t=>t!=null&&t.hasOpacity?1:.5};
  .titleRow {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    span {
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>t.theme.custom.fontSize.font14};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
    }
    .actionButton {
      margin-left: auto;
      button {
        color: ${t=>t.theme.custom.white.A11};
        background: ${t=>t.theme.custom.secondaryBg};
        border-radius: 8px;
        box-shadow: 4px 4px 24px 0px rgba(7, 1, 26, 0.45);
        height: 36px;
        width: 36px;
        svg {
          max-width: 10px;
        }
      }
    }
  }
  .infoText {
    color: rgb(230 230 230 / 70%);
  }
  .boxContent {
    background: ${t=>t.theme.custom.secondaryBg};
    border-radius: 8px;
    box-shadow: 4px 4px 24px 0px rgba(7, 1, 26, 0.45);
    padding: 10px 12px;
    margin-top: 16px;
    display: flex;
    .leftContent {
      margin-right: 10px;
    }
    .rightContent {
      margin-top: 25px;
    }
    .title {
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>t.theme.custom.fontSize.font10};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
      margin-bottom: 6px;
    }
    .text {
      color: rgba(230, 230, 230, 0.7);
      font-size: ${t=>t.theme.custom.fontSize.font10};
      line-height: 16px;
    }
  }
`;const YZo=gt.div`
  background: #201a33;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 4px 4px 32px 0px rgba(7, 1, 26, 0.55);
  border: 0.5px solid ${t=>t.theme.custom.white.A3};
  text-align: left;
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  width: 620px;
  opacity: ${t=>t!=null&&t.hasOpacity?1:.5};
  .arrowLeftIcon {
    position: absolute;
    left: -14px;
    top: 65px;
    color: rgba(97, 97, 97, 0.9);
  }
  .titleRow {
    display: flex;
    align-items: center;
    span {
      color: ${t=>t.theme.custom.white.A11};
      font-size: ${t=>t.theme.custom.fontSize.font14};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
    }
    .actionButton {
      margin-left: auto;
      button {
        color: ${t=>t.theme.custom.white.A11};
        background: ${t=>t.theme.custom.secondaryBg};
        border-radius: 8px;
        box-shadow: 4px 4px 24px 0px rgba(7, 1, 26, 0.45);
        height: 36px;
        width: 36px;
        &.active {
          background: ${t=>t.theme.custom.primaryBg};
          border-color: ${t=>t.theme.custom.primaryBg};
        }
        + button {
          margin-left: 12px;
        }
        &.closeIcon {
          svg {
            max-width: 10px;
          }
        }
      }
    }
  }
  .tableView {
    padding: 25px;
    margin-top: 20px;
    background: ${t=>t.theme.custom.secondaryBg};
    border-radius: 8px;
    box-shadow: 4px 4px 24px 0px rgba(7, 1, 26, 0.45);
    color: ${t=>t.theme.custom.white.A11};
    .tableTitleRow {
      display: flex;
      align-items: center;
      span {
        color: ${t=>t.theme.custom.white.A11};
        font-size: ${t=>t.theme.custom.fontSize.font16};
        font-weight: ${t=>t.theme.custom.fontWeight.sm};
      }
      .actionButton {
        margin-left: auto;
        button {
          color: ${t=>t.theme.custom.white.A11};
          background: linear-gradient(0deg, #1f1638 0%, #1f1638 100%), #1f1638;
          box-shadow: 0px 0.504156231880188px 5.041562080383301px 0px
            rgba(5, 24, 58, 0.63);
          border-radius: 8px;
          height: 32px;
          width: 32px;
          &.expanded {
            svg {
              transform: rotate(180deg);
            }
          }
        }
      }
    }
    .defaultTable {
      margin-bottom: 20px;
      .MuiTableBody-root {
        .MuiTableRow-root {
          background: ${t=>t.theme.custom.boxBg};
          filter: blur(0);
          &:hover {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.tableHoverBg}};
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
          }
          .MuiFormControl-root {
            margin-top: 4px;
            .MuiOutlinedInput-root {
              background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.thumbnailBg}};
              box-shadow: 4px 4px 24px 0px rgba(7, 1, 26, 0.45);
            }
          }
        }
      }
      .columnWithResetBtn {
        .MuiIconButton-root {
          position: absolute;
          right: 5px;
          top: 50%;
          transform: translateY(-50%);
          height: 20px;
          width: 20px;
          border: 0;
        }
      }
    }
  }
  .infoText {
    margin-top: 30px;
    color: ${t=>t.theme.custom.greyText.A2};
  }
  .confirmRequestPanel {
    text-align: center;
    padding: 100px 140px;
    img.logo {
      width: 80px;
    }
    .title {
      font-size: ${t=>t.theme.custom.fontSize.font14};
      color: ${t=>t.theme.custom.white.A11};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
      margin: 25px 0 15px;
    }
    p {
      font-size: ${t=>t.theme.custom.fontSize.font14};
      color: rgb(230 230 230 / 70%);
      margin-bottom: 30px;
    }
    .action {
      button {
        width: 100px;
        + button {
          margin-left: 20px;
        }
      }
    }
  }
`,JZo=({open:t,handleClose:e,nodesObject:n})=>{const r=hJo(),a=fJo(),o=(u,d)=>u==null?void 0:u[d==null?void 0:d.dataKey],s=()=>{var d;const u=[];return(d=n==null?void 0:n.columns)==null||d.map(h=>{var f;return u.push({label:Ft.capitalize((f=h==null?void 0:h.originKey)==null?void 0:f.replace(/([a-z0-9])([A-Z])/g,"$1 $2")),dataKey:h==null?void 0:h.originKey})}),u},l=()=>{var d;const u=[];return(d=n==null?void 0:n.columns)==null||d.map(h=>u.push({func:o,dataKey:h==null?void 0:h.originKey})),u},c=()=>{var h;const u=(h=n==null?void 0:n.columns)==null?void 0:h.map(f=>{var p;return{fieldName:Ft.capitalize((p=f==null?void 0:f.originKey)==null?void 0:p.replace(/([a-z0-9])([A-Z])/g,"$1 $2")),dataKey:f==null?void 0:f.originKey}}),d=r==null?void 0:r.map(f=>Object.values(f));return X_e(u,d)};return c(),E.jsx(lf,{title:`${q.RECENT_DATA(n==null?void 0:n.name)}`,visible:t,onClose:e,children:E.jsx(tf,{data:r||[],columns:s()||[],loading:a,bodyHeight:300,rowSize:50,isAction:!1,rowRender:l(),tableColumnWidth:c()})})},ZZo=t=>{const{theme:e,nodesObject:n}=t,{name:r,columns:a}=n,o=cdt(),[s,l]=Y.useState(!1),c=()=>{l(!1)},u=()=>{l(!0),TJo(o,n.eventName)};return E.jsxs("div",{children:[E.jsx(JZo,{open:s,handleClose:c,nodesObject:n}),E.jsx(nXn,{theme:e,hasOpacity:!0,children:E.jsxs(jYt,{component:"div",children:[E.jsx(tXn,{theme:e,className:"cardTableTitle",hasOpacity:!0,children:E.jsx("div",{className:"title",children:E.jsx(Pn,{label:r,children:E.jsx("span",{className:"tableName",children:r})})})}),E.jsxs(Mte,{"aria-label":"simple table",children:[E.jsx(dEe,{children:E.jsx(Mx,{children:E.jsx(mv,{children:E.jsxs("div",{className:"cellHead",children:[E.jsxs("div",{className:"name",children:[E.jsx(hdt,{}),q.NAME]}),E.jsx("div",{className:"type",children:q.TYPE})]})})})}),E.jsx(uEe,{children:a==null?void 0:a.map(d=>E.jsx(Mx,{sx:{"&:last-child td, &:last-child th":{border:0}},children:E.jsx(mv,{className:"inActive",id:`${n==null?void 0:n.key}:${d==null?void 0:d.originKey}`,children:E.jsxs("div",{className:"cellBody",children:[E.jsx("div",{className:"name",children:E.jsx(Pn,{label:d==null?void 0:d.originKey,children:E.jsx("span",{children:d==null?void 0:d.originKey})})}),E.jsx("div",{className:"type",children:d==null?void 0:d.type})]})})},d==null?void 0:d.originKey))}),E.jsx(jNr,{children:E.jsx(Mx,{children:E.jsx(mv,{children:E.jsxs(Jt,{size:"large",variant:"contained",color:"primary",className:"w-100",onClick:()=>u(),children:[E.jsx(soe,{}),E.jsx("span",{children:q.RECENT_ONCHANGE_DATA})]})})})})]})]})})]})},XZo="/assets/AVAX-0af15fab.svg",QCe="/assets/BITCOIN-90752a97.svg",eXo="/assets/BNB-58094c7c.svg",Lfe="/assets/ETHERIUM-f4262ceb.svg",Mjt="/assets/POLYGON-e33df5eb.svg",tXo="/assets/SUI-2190c91d.svg",qCe="/assets/sei-7ac4c215.svg",YCe="/assets/zksync-d5f2f4a7.svg";var nXo={exports:{}};(function(t,e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,a){var o=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};o.inherits(l,s),r.JsonHighlightRules=l}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,a){var o=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,c){return/^\s+$/.test(l)?/^\s*\}/.test(c):!1},this.autoOutdent=function(l,c){var u=l.getLine(c),d=u.match(/^(\s*\})/);if(!d)return 0;var h=d[1].length,f=l.findMatchingBracket({row:c,column:h});if(!f||f.row==c)return 0;var p=this.$getIndent(l.getLine(f.row));l.replace(new o(c,0,c,h-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,a){var o=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,c=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};o.inherits(c,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,d,h){var f=u.getLine(h);if(this.singleLineBlockCommentRe.test(f)&&!this.startRegionRe.test(f)&&!this.tripleStarBlockCommentRe.test(f))return"";var p=this._getFoldWidgetBase(u,d,h);return!p&&this.startRegionRe.test(f)?"start":p},this.getFoldWidgetRange=function(u,d,h,f){var p=u.getLine(h);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,h);var v=p.match(this.foldingStartMarker);if(v){var m=v.index;if(v[1])return this.openingBracketBlock(u,v[1],h,m);var g=u.getCommentFoldRange(h,m+v[0].length,1);return g&&!g.isMultiLine()&&(f?g=this.getSectionRange(u,h):d!="all"&&(g=null)),g}if(d!=="markbegin"){var v=p.match(this.foldingStopMarker);if(v){var m=v.index+v[0].length;return v[1]?this.closingBracketBlock(u,v[1],h,m):u.getCommentFoldRange(h,m,-1)}}},this.getSectionRange=function(u,d){var h=u.getLine(d),f=h.search(/\S/),p=d,m=h.length;d=d+1;for(var g=d,v=u.getLength();++d<v;){h=u.getLine(d);var A=h.search(/\S/);if(A!==-1){if(f>A)break;var y=this.getFoldWidgetRange(u,"all",d);if(y){if(y.start.row<=p)break;if(y.isMultiLine())d=y.end.row;else if(f==A)break}g=d}}return new s(p,m,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,d,h){for(var f=d.search(/\s*$/),p=u.getLength(),m=h,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,v=1;++h<p;){d=u.getLine(h);var A=g.exec(d);if(A&&(A[1]?v--:v++,!v))break}var y=h;if(y>m)return new s(m,f,y,d.length)}}).call(c.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(n,r,a){var o=n("../lib/oop"),s=n("./text").Mode,l=n("./json_highlight_rules").JsonHighlightRules,c=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("./folding/cstyle").FoldMode,d=n("../worker/worker_client").WorkerClient,h=function(){this.HighlightRules=l,this.$outdent=new c,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new u};o.inherits(h,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(f,p,m){var g=this.$getIndent(p);if(f=="start"){var v=p.match(/^.*[\{\(\[]\s*$/);v&&(g+=m)}return g},this.checkOutdent=function(f,p,m){return this.$outdent.checkOutdent(p,m)},this.autoOutdent=function(f,p,m){this.$outdent.autoOutdent(p,m)},this.createWorker=function(f){var p=new d(["ace"],"ace/mode/json_worker","JsonWorker");return p.attachToDocument(f.getDocument()),p.on("annotate",function(m){f.setAnnotations(m.data)}),p.on("terminate",function(){f.clearAnnotations()}),p},this.$id="ace/mode/json"}).call(h.prototype),r.Mode=h}),function(){ace.require(["ace/mode/json"],function(n){t&&(t.exports=n)})}()})(nXo);const rXo=({text:t})=>{const e=Pit();return E.jsx(eCe,{editorProps:{$blockScrolling:1/0},height:"450px",width:"100%",highlightActiveLine:!1,fontSize:14,defaultValue:t,readOnly:!0,mode:"json",name:"query-ace-editor",showGutter:!0,showPrintMargin:!1,theme:e,value:t})},rXn={AVALANCHE_C:XZo,BNB:eXo,POLYGON:Mjt,ETHEREUM:Lfe,SUI:tXo,MUMBAI:Mjt,GOERLI:Lfe,SEPOLIA:Lfe,BITCOIN:QCe,SEI:qCe,HOLESKY:Lfe,ZKSYNCERA:YCe},iXo=({contractInfo:t,events:e,selectedChain:n})=>{var y,S,x;const r=xo(),[a,o]=Y.useState(!1),[s,l]=Y.useState(!1),{name:c,address:u,creatorAddress:d}=t,h=ile(),f=(y=h==null?void 0:h.data)==null?void 0:y.abi,p=zZn(),m=(x=(S=h==null?void 0:h.data)==null?void 0:S.trackedInfo)==null?void 0:x.tracked,g=c==="Unverified",v=()=>{gN(JSON.stringify(f,null,"	")).then(()=>{l(!0)})},A=()=>{var _,C,R,k,P,N;let w={...ef({selectedChain:(R=(C=(_=h==null?void 0:h.data)==null?void 0:_.trackedInfo)==null?void 0:C.chainSuffix)==null?void 0:R.toLowerCase(),namespace:(N=(P=(k=h==null?void 0:h.data)==null?void 0:k.trackedInfo)==null?void 0:P.schema)==null?void 0:N.toUpperCase()})};return w=Co.stringify({...w},{arrayFormat:"bracket"}),w};return E.jsxs("div",{className:"contractWrapper",children:[E.jsx("div",{className:`contractDetail contractName ${g&&"editable"}`,children:g&&!m?E.jsx(gr,{name:"contractName",placeholder:"Type in contact name *",value:p||"",onChange:w=>{var _;NJo((_=w==null?void 0:w.target)==null?void 0:_.value)},required:!0,autoComplete:"off",autoFocus:!0,hasMax:!0,ishelpertext:!0,helperText:`${p==null?void 0:p.length}/${Qr}`,maxValue:Qr,warningText:q.MAX_LENGTH_ERROR("name",Qr)}):E.jsx("div",{children:c||q.CONTRACT})}),E.jsxs("div",{className:"contractDetail contractAddress",children:[E.jsx("div",{className:"contractImg",children:E.jsx("img",{src:rXn[n==null?void 0:n.toUpperCase()],alt:"chain",className:"chainImg"})}),E.jsxs("div",{children:[E.jsx("p",{className:"contractTitle",children:q.CONTRACT_ADDRESS}),E.jsx(Pn,{label:u,children:E.jsx("span",{className:"contractInfo",children:o1e(u)})})]}),E.jsxs("div",{children:[E.jsx("p",{className:"contractTitle",children:q.CONTRACT_CREATOR}),E.jsx(Pn,{label:d,children:E.jsx("span",{className:"contractInfo",children:o1e(d)})})]}),E.jsxs("div",{children:[E.jsx("p",{className:"contractTitle",children:q.EVENTS}),E.jsx("span",{className:"contractInfo",children:e||0})]}),E.jsxs("div",{className:"actionButton",children:[m&&E.jsx(_n,{onClick:()=>r==null?void 0:r.push(`${Qt.erd}?${A()}`),tooltip:q.VIEW_SMART_CONTRACT_TABLES,children:E.jsx(nze,{})}),E.jsx(_n,{onClick:()=>o(!0),tooltip:q.VIEW_SMART_CONTRACT_ABI,children:E.jsx(soe,{})}),E.jsx(_n,{onClick:()=>{_a.outboundLinks({linkFor:q.VIEW_CONTRACT_ADDRESS,link:`${Lkt(n==null?void 0:n.toLowerCase())}address/${u}`}),window.open(`${Lkt(n==null?void 0:n.toLowerCase())}address/${u}`,"_blank")},tooltip:q.VIEW_ON_SCAN,children:E.jsx(oN,{})}),E.jsx(lf,{visible:a,onClose:()=>{o(!1),l(!1)},title:q.SMART_CONTRACT_ABI,maxWidth:"md",children:E.jsxs(OJo,{children:[E.jsx(_n,{tooltip:s?q.COPIED:q.COPY_ABI,onClick:v,className:"copyAbiButton",children:E.jsx(zG,{})}),E.jsx(rXo,{text:JSON.stringify(f,null,"	")})]})})]})]})]})};var fdt={},aXo=As;Object.defineProperty(fdt,"__esModule",{value:!0});var Uge=fdt.default=void 0,oXo=aXo(Ps()),sXo=E;Uge=fdt.default=(0,oXo.default)((0,sXo.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"WarningAmberOutlined");const lXo=gt.ul`
  && {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 65px;
    z-index: 9;
    max-height: 150px;
    overflow: auto;
    background: ${t=>t.theme.custom.dropdownBg};
    border-radius: 8px;
    border: 0.5px solid #675b8c;
    box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
  }

  && li button {
    width: 100%;
    display: block;
    text-transform: none;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
`,cXo=gt.div`
  position: relative;
  .arrowDown {
    position: absolute;
    top: 32px;
    right: 8px;
    color: ${t=>t.theme.custom.white.A11};
  }
  .MuiOutlinedInput-input {
    padding-right: 45px !important;
  }
  .invalidPopup {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: ${t=>t.theme.custom.white.A4};
    color: white;
    padding: 6px 12px;
    z-index: 99;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0px 10px 30px rgb(15 24 42 / 51%);
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    .icon {
      color: ${t=>t.theme.custom.red};
      font-size: ${t=>t.theme.custom.fontSize.font18};
      margin-right: 5px;
    }
    &:before {
      content: '';
      position: absolute;
      left: 0;
      height: calc(100% - 12px);
      width: 2px;
      background: ${t=>t.theme.custom.red};
    }
    &:after {
      content: '';
      position: absolute;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-bottom: 12px solid ${t=>t.theme.custom.white.A4};
      top: -11px;
      right: 16px;
    }
  }
`,uXo=({inputValue:t,setSelectedOption:e,options:n})=>{const r=Y.useMemo(()=>n==null?void 0:n.filter(o=>!t||o.includes(t)),[t,n]),a=Y.useMemo(()=>{const o={};return n==null||n.forEach(s=>{o[s]=1}),o},[n]);return E.jsxs(lXo,{children:[t&&!a[t]&&E.jsx("li",{children:E.jsxs(Jt,{size:"small",onClick:()=>{e&&e(t)},children:["Create ",t]})}),r==null?void 0:r.map((o,s)=>E.jsx("li",{children:E.jsx(Jt,{size:"small",onClick:()=>{e&&e(o)},disabled:o===lx,children:o})},`smartContractList-${s.toString()}`))]})},dXo=({options:t,label:e,placeholder:n,fetchData:r,setSelectedOption:a,disabled:o,defaultValue:s})=>{const l=Y.useRef(null),[c,u]=Y.useState(""),[d,h]=Y.useState({inputFocused:!1,optionsFocused:!0}),[f,p]=Y.useState(!1),[m,g]=Y.useState(!1),[v,A]=Y.useState(!1),y=VCe(),S=_=>{const C=_.target.value.trim()||"";u(C),a&&a(C),r(C),d!=null&&d.optionsFocused||h(R=>({...R,optionsFocused:!0})),/^[a-zA-Z0-9\d\-_\s]*$/i.test(C)?p(!1):p(!0),(C==null?void 0:C.length)>30?g(!0):g(!1),y!=null&&y.map(R=>R).includes(C.toLowerCase())?A(!0):A(!1)},x=Ft.debounce(S,300),w=_=>{l.current.value=_,u(_),a&&a(_),h(C=>({...C,optionsFocused:!1}))};return E.jsxs(cXo,{className:"selectableDropdown",children:[E.jsx(gr,{label:e,onKeyDown:vw,onChange:x,defaultValue:s||c,placeholder:n,inputRef:l,autoComplete:"off",disabled:o,onFocus:()=>{h(_=>({..._,inputFocused:!0}))},onBlur:()=>{setTimeout(()=>h(_=>({..._,inputFocused:!1})),400)},className:"sizeLarge"}),E.jsx("div",{className:"arrowDown",children:E.jsx(Qy,{})}),f&&E.jsxs("div",{className:"invalidPopup",children:[E.jsx(Uge,{className:"icon"}),q.ALPHANUMERIC_NAMESPACE]}),m&&E.jsxs("div",{className:"invalidPopup",children:[E.jsx(Uge,{className:"icon"}),q.NAMESPACE_LIMIT]}),v&&E.jsxs("div",{className:"invalidPopup",children:[E.jsx(Uge,{className:"icon"}),q.NAMESPACE_CHAINAME_VALIDATION]}),(d==null?void 0:d.inputFocused)&&(d==null?void 0:d.optionsFocused)&&!f&&!v&&E.jsx(uXo,{setSelectedOption:w,options:t,inputValue:c})]})},hXo=()=>{var a,o,s,l;const t=AJo(),e=ile(),n=(o=(a=e==null?void 0:e.data)==null?void 0:a.trackedInfo)==null?void 0:o.tracked,r=(l=(s=e==null?void 0:e.data)==null?void 0:s.trackedInfo)==null?void 0:l.schema;return E.jsx("div",{className:"contractDetail bottomForm",children:E.jsxs("div",{className:"contactBottomFrom",children:[E.jsx("div",{className:"formGroup",children:E.jsx(dXo,{placeholder:`${q.TYPE_IN_YOUR_SMART_CONTRACT_FAMILY} *`,options:t,setSelectedOption:GZn,fetchData:()=>{},disabled:n,defaultValue:r})}),E.jsx(_n,{tooltip:q.NAMESAPCE_WARNING_TEXT,className:"infoButton",children:E.jsx(cg,{})})]})})},fXo="/assets/emptyContractEvent-39817557.svg",pXo=()=>E.jsxs("div",{className:"emptyEvent",children:[E.jsx("img",{src:fXo,alt:"empty events"}),E.jsx("h1",{children:q.NO_EVENTS_FOUND})]}),mXo=(t,e,n,r)=>{const{name:a,columns:o}=t;let s=e%5;if(e<5){const h=Math.floor(e/2);e%2===0?n===2?s=e===0?1:2:s=2-h:s=2+h+1}const l=Math.floor(e/5)+1.15,c={name:a,columns:o,eventName:r},u=1;return{id:`${a}-${e}`,className:"nowheel",data:{label:E.jsx(ZZo,{nodesObject:c}),type:"custom"},style:{width:400,padding:0},contentLength:u,position:{x:s*450,y:l*450}}},gXo=(t,e)=>{var o,s,l;const n=((o=t==null?void 0:t.contractInfo)==null?void 0:o.name)==="Unverified",r=(s=t==null?void 0:t.trackedInfo)==null?void 0:s.tracked;return{id:"contract-node",className:"nowheel nodrag hideShadow",data:{label:E.jsx(iXo,{contractInfo:t==null?void 0:t.contractInfo,events:(l=t==null?void 0:t.events)==null?void 0:l.length,selectedChain:e}),type:"custom"},style:{width:r?800:750,padding:0,height:250},position:{x:725,y:n&&!r?5:50}}},vXo=(t,e)=>{const{name:n}=t;return{id:n,animated:!0,source:"contract-node",target:`${n}-${e}`,markerEnd:{type:qre.ArrowClosed,width:20,height:20,color:"#fff"},style:{stroke:qt.custom.white.A1,strokeWidth:.8}}},AXo=t=>{const e=t==null?void 0:t.tracked;return{id:"namespace-node",className:"nowheel nodrag hideShadow",data:{label:E.jsx(hXo,{}),type:"custom"},style:{width:e?750:705,padding:0,height:250,zIndex:9},position:{x:750,y:210}}},yXo=()=>({id:"empty-events",className:"nowheel nodrag hideShadow",data:{label:E.jsx(pXo,{}),type:"custom"},style:{width:780,padding:0},position:{x:720,y:520}}),bXo=({fetchContracts:t})=>{const e=VCe(),n=xo(),{search:r}=Zh(),a=new URLSearchParams(r),[o,s]=Y.useState({contractAddress:(a==null?void 0:a.get("contractAddress"))||"",selectedChain:(a==null?void 0:a.get("selectedChain"))||""}),l=c=>{c==null||c.preventDefault(),t(o)};return Y.useEffect(()=>{if(o){const c=Co.stringify({...ef(o)},{arrayFormat:"bracket"});n.push(tr.getDataFromChain(c))}},[o]),E.jsx(VZn,{children:E.jsx("form",{onSubmit:l,encType:"multipart/form-data",children:E.jsx("div",{className:"contractForm",children:E.jsxs("div",{className:"contractFormInner",children:[E.jsx("div",{className:"formGroup selectChain",children:E.jsxs(Ba,{name:"chain",label:q.CHAIN,value:(o==null?void 0:o.selectedChain)||"",onChange:c=>{var u;KCe((u=c==null?void 0:c.target)==null?void 0:u.value),s(d=>{var h;return{...d,selectedChain:(h=c==null?void 0:c.target)==null?void 0:h.value}})},className:"sizeLarge",required:!0,children:[E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT_CHAIN}),e==null?void 0:e.map(c=>E.jsx(Dn,{value:c,children:c},c))]})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{name:"contractAddress",label:q.CONTRACT_ADDRESS,placeholder:q.ENTER_CONTRACT_ADDRESS,value:o==null?void 0:o.contractAddress,onChange:c=>{s(u=>{var d;return{...u,contractAddress:(d=c==null?void 0:c.target)==null?void 0:d.value}})},onBlur:c=>{s(u=>{var d;return{...u,contractAddress:(d=c==null?void 0:c.target)==null?void 0:d.value.trim().replace(/ /g,"")}})},className:"sizeLarge",required:!0})}),E.jsx("div",{className:"formGroup submit",children:E.jsx(Jt,{variant:"contained",color:"primary",type:"submit",size:"large",disabled:(o==null?void 0:o.contractAddress)===""||(o==null?void 0:o.selectedChain)==="",children:q.SUBMIT})})]})})})})},xXo=()=>E.jsx(VZn,{children:E.jsx("div",{className:"contractForm",children:E.jsxs("div",{className:"contractFormInner",children:[E.jsxs("div",{className:"formGroup selectChain",children:[E.jsx(Ca,{variant:"text",width:150,height:12}),E.jsx("br",{}),E.jsx(Ca,{variant:"rectangular",width:"100%",height:50})]}),E.jsxs("div",{className:"formGroup",children:[E.jsx(Ca,{variant:"text",width:150,height:12}),E.jsx("br",{}),E.jsx(Ca,{variant:"rectangular",width:"100%",height:50})]}),E.jsx("div",{className:"formGroup submit",children:E.jsx(Ca,{variant:"rectangular",width:"100%",height:50})})]})})});var pdt={},EXo=As;Object.defineProperty(pdt,"__esModule",{value:!0});var iXn=pdt.default=void 0,SXo=EXo(Ps()),wXo=E;iXn=pdt.default=(0,SXo.default)((0,wXo.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");const _Xo=[{label:"Contract Family",dataKey:"namespace",width:200},{label:"Contract Name",dataKey:"contract_name",width:200},{label:"Chain Name",dataKey:"chain_name",width:150},{label:"Event Name",dataKey:"pre_approved_events",width:320},{label:"Contract Address",dataKey:"contract_address",width:300}],TXo=[{label:"Contract Family",dataKey:"namespace",width:250},{label:"Contract Name",dataKey:"contract_name",width:250},{label:"Chain Name",dataKey:"chain_name",width:150},{label:"Event Name",dataKey:"logs",width:370},{label:"Contract Address",dataKey:"contract_address",width:350}],CXo=()=>{const{search:t}=Zh(),e=xo(),n=Y.useRef(null),r=new URLSearchParams(t),[a,o]=Y.useState({selectedChain:(r==null?void 0:r.get("selectedChain"))||"ethereum",status:(r==null?void 0:r.get("status"))||WL.pending,isAdmin:!0,searchKeyword:(r==null?void 0:r.get("searchKeyword"))||""}),[s,l]=Y.useState(WL.pending),c=gJo(),u=vJo(),{custom_approved_list:d}=c,[h,f]=Y.useState(c),[p,m]=Y.useState(d),g=VCe(),v=ldt(),{height:A,headerHeight:y}=Is(),S=()=>A-y-165||300,x=Y.useRef();Y.useEffect(()=>{if(!a||a===x.current)return;x.current=a;const D=Co.stringify(ef(a),{arrayFormat:"bracket"}),B=tr.getDataFromChain(D);e.location.pathname!==B&&e.push(B),Ofe(a.selectedChain,s)},[a,e,Ofe,s]),Y.useEffect(()=>{c&&!a.searchKeyword&&f(c)},[c]),Y.useEffect(()=>{d&&!a.searchKeyword&&m(d)},[d]);const w=D=>{var j;const B=(j=D.target)==null?void 0:j.value;l(WL[B]),n.current&&(n.current.value=""),o(H=>({...H,status:B,searchKeyword:""}))},_=D=>{var B;KCe((B=D==null?void 0:D.target)==null?void 0:B.value),o(j=>({...j,selectedChain:D.target.value}))},C=D=>{var j;const B=[];return Ft.isArray(D==null?void 0:D.logs)&&((j=D==null?void 0:D.logs)==null||j.forEach((H,U)=>{var z;const $=U>bAe.length-1?Ffn():(z=bAe[U])==null?void 0:z.textColor;B.push({tagId:H==null?void 0:H.name,metadata:`{"color": "${$}"}`})})),E.jsx(Ov,{tags:B,isTag:!1})},R=D=>(D==null?void 0:D.namespace)===""?"default":D==null?void 0:D.namespace,k=D=>D==null?void 0:D.contract_name,P=()=>E.jsx("img",{src:rXn[a==null?void 0:a.selectedChain],alt:"chain",className:"chainImg"}),N=D=>{kJo(a==null?void 0:a.selectedChain,{pending_file_id:D==null?void 0:D.pending_file_id},()=>{Ofe(a==null?void 0:a.selectedChain,s)})},L=D=>{RJo(a==null?void 0:a.selectedChain,{pending_file_id:D==null?void 0:D.pending_file_id},()=>{Ofe(a==null?void 0:a.selectedChain,s)})},I=D=>E.jsxs(E.Fragment,{children:[E.jsx(cm,{icon:!0,iconImage:E.jsx(iXn,{}),iconName:"APPROVE",confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.APPROVE,title:"Are you sure?",confirmMessage:"You want to accept this request?",description:"",onConfirm:()=>{L(D)}},"approve"),E.jsx(cm,{icon:!0,iconImage:E.jsx(Wl,{}),iconName:"REJECT",confirmButtonMessage:q.YES,cancelButtonMessage:q.NO,tooltip:q.REJECT,title:"Are you sure?",confirmMessage:"You want to reject this request?",description:"",onConfirm:()=>{N(D)}},"reject")]}),b=D=>{var H;const B=((H=D==null?void 0:D.target)==null?void 0:H.value)||"",j=B==null?void 0:B.toLowerCase();if(o(U=>({...U,searchKeyword:B})),(a==null?void 0:a.status)===WL.pending){const U=h==null?void 0:h.filter($=>{var z,Z,K;return((z=$==null?void 0:$.contract_name)==null?void 0:z.toLowerCase().includes(j))||((Z=$==null?void 0:$.namespace)==null?void 0:Z.toLowerCase().includes(j))||((K=$==null?void 0:$.contract_address)==null?void 0:K.toLowerCase().includes(j))});f(U)}else{const U=d==null?void 0:d.filter($=>{var z,Z,K;return((z=$==null?void 0:$.namespace)==null?void 0:z.toLowerCase().includes(j))||((Z=$==null?void 0:$.contract_address)==null?void 0:Z.toLowerCase().includes(j))||((K=$==null?void 0:$.contract_name)==null?void 0:K.toLowerCase().includes(j))});m(U)}},T=Ft.debounce(b,500),M=()=>{n.current&&(n.current.value=""),o(D=>({...D,searchKeyword:""}))};return E.jsx("main",{className:"mainContent",children:E.jsxs("div",{className:"boxContent",children:[E.jsxs(Tp,{className:"pageToolbar",children:[E.jsxs(eA,{exclusive:!0,value:s,onChange:w,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"pending","aria-label":"Pending",children:q.PENDING_REQUEST}),E.jsx(Xs,{size:"small",className:"tabButton",value:"approved","aria-label":"Approved",children:q.APPROVED_REQUEST})]}),E.jsxs("div",{className:"toolbarRight",children:[E.jsxs(eC,{className:"searchField",children:[E.jsx(gr,{inputRef:n,defaultValue:(a==null?void 0:a.searchKeyword)||"",placeholder:q.SEARCH_ELIPSIS_CONTEXT(q.QUERIES),name:"input",onChange:T}),E.jsx("span",{className:"searchIcon",children:a.searchKeyword===""?E.jsx(yv,{}):E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:M})})]}),E.jsxs("div",{className:"widgetTypeFilter",children:[E.jsxs("span",{children:[q.SELECT_CHAIN," :"]}),E.jsxs(Ba,{name:"chain",value:(a==null?void 0:a.selectedChain)||"",onChange:_,children:[E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT_CHAIN}),g==null?void 0:g.map(D=>E.jsx(Dn,{value:D,children:D},D))]})]}),E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>e.push(Qt.getDataFromChain),className:"btnBack",children:q.BACK})]})]}),v&&E.jsx("div",{className:"loadingBlock",children:E.jsx(Ep,{})}),u&&E.jsx(Vc,{title:u,children:u}),Ft.isEmpty(c)&&!v&&!u&&E.jsx(sf,{title:q.EMPTY_EVENTS,imgPath:nTe,imgPathWebp:rTe,className:"emptyBlock"}),c&&!Ft.isEmpty(c)&&(a==null?void 0:a.status)===WL.pending&&!v&&!u&&E.jsx(tf,{columns:_Xo,isAction:!0,actionComponent:D=>I(D),actionColumnName:"Actions",rowSize:80,bodyHeight:S(),data:h||[],loading:v,rowRender:[{dataKey:"pre_approved_events",func:C},{dataKey:"namespace",func:R},{dataKey:"contract_name",func:k},{dataKey:"chain_name",func:P}]}),p&&(a==null?void 0:a.status)===WL.approved&&!v&&!u&&E.jsx(tf,{isAction:!1,columns:TXo,rowSize:80,bodyHeight:S(),data:p||[],loading:v,rowRender:[{dataKey:"logs",func:C},{dataKey:"namespace",func:R},{dataKey:"chain_name",func:P}]})]})})},kXo=()=>{var h,f,p,m;const t=ile(),e=cdt(),n=pJo(),r=VCe(),a=zZn(),o=xJo(),s=(f=(h=t==null?void 0:t.data)==null?void 0:h.trackedInfo)==null?void 0:f.tracked,l=((m=(p=t==null?void 0:t.data)==null?void 0:p.contractInfo)==null?void 0:m.name)==="Unverified",c=!(n&&(n==null?void 0:n.length)<30&&/^[a-zA-Z]+[a-zA-Z0-9_]*$/i.test(n)&&!(r!=null&&r.map(g=>g).includes(n.trim().toLowerCase()))),u=async()=>{await CJo(e,t,n)},d=()=>o?s?q.CONTRACT_TRACKED:l&&!(a!=null&&a.trim())?q.CONTRACT_UNVERIFIED:c?q.INVALID_NAMESPACE:"":q.NO_EVENTS_FOUND;return E.jsx(Pn,{label:d(),tooltipPlacement:"bottom-start",children:E.jsx("div",{className:"sendRequestButton",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>u(),disabled:!o||c||s||l&&!(a!=null&&a.trim()),children:q.SEND_REQUEST_TABLE_CREATION})})})},RXo="/assets/enter-contract-afee220a.png",MXo="/assets/validateABI-08fc3283.svg",NXo="/assets/ListFromContract-c8929c77.svg",IXo="/assets/events-indexing-ad91e970.png",PXo="/assets/Tables-Indexed-292ec47a.svg",OXo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAA+CAYAAACGPyP0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPvSURBVHgB7ZrNTxNBFMDfriAIFGpAE+HAEhMtxCgHwMSLELx4ohI9GWg9GmLAhASih7aYEIweMH5dTGxMvHCA8gc0xKt4qB+RHoyWxMYYINaWVgik9b2FTfqxC3S62x1Nf8l2d2c63f11ZifzZkcAFVKpVDvuaJNAP3yCIATAQIT0E5QYxp07uLRsDS6FIBqLQyyagELpPN8GXV1tETzsMVKoTDlAEVc4vOK+M/4cFt9+Bj0Zgqv0p1g7u1oX8DqGCYn0gRdwkki/fVx3EQWqaefghDUajS/sNmPdEXf3LufABP57cTASbL6GCon4o914EQlrBoqBkUJUMxI1gWJilJAsU6xaSccIIRFMRG8hU2UIPYVMlyGyhBzACBcyhCIUiyW8rELcyBAk5BjwAKsQVzJEIULcyRCsQlzKECxC3MoQ+QoVRYZGGBTTsJCPUFFk/P5FaGo6BoOOy8DCQYXKgIHZ+ftgsVTJxxQ2OAbv7Rk+ULRKIcbjp6MwdOsaRAsLNUjovVqAxyTjwBtTZADgQHEQNbV++xhYaqszyubLk2ejYLM1W9XymGTo5lkDuULKEnvVKte9Wb6UZHilJMMrJRleKcnwCtMIoPdSB9RaqkEPvuMwR6/5bSaZzq423WQswZC5MlOTr4BHSh2AmXz88IXimJBa3j8n8/DB63kMzEJqeaVmxislGV4pDWeMRExWQN3vU1CVaIKKzXoo37bI6RsVa7BdFoPtQ4nmIMyoluVKpibeAid+dMtC2VSiGNAG4LTDQjdA0uODXm/6d5gnAXHuKq8ytPLDN/dGM//4ygU4+ussHBAJ6/AlSjX7oMejJDLJ9PeNgZ7Ur3XkI5KOG4WsKHSbTkzvAOqip6EBZQpgBIXsdGC6TP1qpkhLe428aaGRT03OaqoM1YrSW6UzPndGVYjSKE8FnHtOOk2VqV5vyUn7FliHqSufcoQUEcqj7+QidMsyllr2WflCKN9Sb07ZQvuLEMI56s1CeoXA+VK52aCZly5E7C0iI1HNBGytEvwPiPQGytbaHKFJimKzhcMTLdKbltozpEJA6QA8k1M35bdaxWSjck01PfsZ0eoUMkktyzJYO9P4AtUz65uCRnyRWiz+HAnnpGk97PsLCb7spcBO3LmCSyEpHF4FPVcI+v3vcn5PTB6Gk1+vZwwslRvVetg18kM4pGkR1ArQuk3YWaAtgU7MzPgDrrsvIsq5kEpaU6Jobfx5UaqN2lxQGDdQxisAB9jBP431NAxsYCjQ46YDLmQIHFu5cZdvDT1CkRHlhBsZAoWcsCMk7fNVaq7UtHzpiVzJKOxK9cGOlLJuM4QbzWZShOdFkUh2ub/NUBD3dQAVcAAAAABJRU5ErkJggg==",LXo="data:image/webp;base64,UklGRh4CAABXRUJQVlA4TBECAAAvMkAPEF/iIJIkRcojP+dfFM3hw8zaYBRJkqJceJ6J8+9ueQ8ZNJKkqJ5Rxft39zl4XAaRbAVZEvAbSAQrEMFEGMUGVDGCJvCbgID2x0Ii0REIbCioKKgoR82j/ZHL6mK6T0fNGghHyaJmUZP/9R7Puubvfu9n3ftRk6iZn6MmUbKjZoSomZ+jZoStfwj9d6u/6R2t87cM7vc4ZqZRxlHFSaVRhv4S27fCPFrgn3c0Mo0qjSpOkEgkHqLQPFj4sfAjkfyBQKM953P/AEkAGENSxrZt2zMZW/9/0OxuVaWyvkX034HbSIqUZJZ3j+EN8K7F7qZoAR0dxmA0nlQbNurk8ufqJJMRLz27v1wnkizQMxXrZOrkrMG6BuTsUR3IuZM6fIwZIV7EWBGzcSLmsTEijQ95bCjiQhUTyhjIhOvq9Kn4U4RIBPz+kORTWwx6/Ao9BguFcqlUUtwNlQGrCKPh/y7ZNMGcNvEowdTPeEjC/Am04O9EtTeZI84mQ0Y6CxRcXSlfuQapGYEBSj3yTPqocM9BF5VeGJi/8Xy+Id7A8qFNF9/xPaVXumkzRuFcycCtO67JFMXEgSt7VBNEMXEgWoKfABhzmmdSVtbg9JfZDwFw+0s69CgXOgOA3RSKJCnm36kt1G+hlfDH1u6mGGu8bDdHqPQMDN5VHIDFg5wdMHleiSwvwOd5s0ZcbU4PeAMAAA==",BXo=({open:t,handleClose:e})=>{const n=yJo(),r=bJo(),a=ldt(),o=[{label:"Chain ID",dataKey:"chainId",width:250},{label:"Contract Address",dataKey:"address",width:350}],s=u=>E.jsx("span",{children:(u==null?void 0:u.address)||"-"}),l=u=>E.jsx("span",{children:(u==null?void 0:u.chainId)||"-"}),c=u=>E.jsx(_n,{onClick:async()=>{var d,h,f;e(),KCe((d=u==null?void 0:u.chainId)==null?void 0:d.toLowerCase()),await pbe((h=u==null?void 0:u.chainId)==null?void 0:h.toLowerCase(),(f=u==null?void 0:u.address)==null?void 0:f.trim())},tooltip:"View",children:E.jsx(Y2e,{})});return E.jsx(lf,{title:q.SUBSCRIPTION_CONTRACTS,visible:t,onClose:e,children:!a&&E.jsx(tf,{data:n||[],columns:o||[],loading:r,bodyHeight:300,rowSize:50,isAction:!0,actionComponent:u=>c(u),rowRender:[{dataKey:o[0].dataKey,func:l},{dataKey:o[1].dataKey,func:s}]})})},DXo=gt.div`
  && {
    margin-top: 8px;
    position: relative;
    display: inline-flex;
    align-items: center;
    background: ${t=>t.theme.custom.white.A4};
    color: ${t=>t.theme.custom.white.A11};
    border-radius: 8px;
    padding: 8px 8px 8px 12px;
    overflow: hidden;
    font-size: 16px;
  }
  && .infoIcon {
    font-size: 16px;
    margin-right: 8px;
    color: ${t=>t.theme.custom.pink};
  }
  &&:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: calc(100% - 8px);
    background: ${t=>t.theme.custom.pink};
  }
  &&:after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: calc(100% - 16px);
    background: ${t=>t.theme.custom.pink};
    filter: blur(10px);
  }
`;function $Xo({message:t,theme:e}){return E.jsxs(DXo,{className:"helpText",theme:e,children:[E.jsx(cg,{className:"infoIcon"}),t]})}const FXo=()=>{var X,te,J,ne;const{search:t}=Zh(),e=new URLSearchParams(t),n=e.get("isAdmin")==="true",r=e.get("contractAddress"),a=e.get("selectedChain"),[o,s,l]=UYn([]),[c,u,d]=zYn([]),[h,f]=Y.useState(!1),p=ile(),m=ldt(),g=mJo(),v=cdt(),{height:A,headerHeight:y}=Is(),S=p==null?void 0:p.status,x=p==null?void 0:p.message,w=A-y||500,[_,C]=Y.useState(!0),[R,k]=Y.useState(""),[P,N]=Y.useState(!1),L=ho(),I=Q_e(),b=W_e(),[T,M]=Y.useState(!1),D=xo(),B=(te=(X=p==null?void 0:p.data)==null?void 0:X.trackedInfo)==null?void 0:te.tracked,j=(ne=(J=p==null?void 0:p.data)==null?void 0:J.trackedInfo)==null?void 0:ne.historicalIndexing,{subscribedSchemasAndTablesLoading:H}=EV();Y.useEffect(()=>(_Jo(),()=>{EJo()}),[]),Y.useLayoutEffect(()=>{!b&&!H&&Wne({}),L&&b&&!I&&!H&&K6({})},[L,b,H]),Y.useEffect(()=>{m&&s([])},[m]),Y.useEffect(()=>{S===400&&x==="ABI not found"&&f(!0),S===200&&C(!1)},[p]),Y.useEffect(()=>{var ie,he;if(!Ft.isEmpty(p==null?void 0:p.data)&&!m){const{data:de}=p,ce=[],Ee=[];ce.push(AXo(de==null?void 0:de.trackedInfo)),ce.push(gXo(de,v)),Ft.isEmpty(de==null?void 0:de.events)&&ce.push(yXo()),(ie=de==null?void 0:de.tables)==null||ie.forEach((Me,Be)=>{var me,le;const ze=Me.name;let je=(me=de==null?void 0:de.events[Be])==null?void 0:me.name;const ye=de==null?void 0:de.events.find(pe=>pe.table===ze);ye&&(je=ye.name),ce.push(mXo(Me,Be,(le=de==null?void 0:de.tables)==null?void 0:le.length,je))}),(he=de==null?void 0:de.tables)==null||he.forEach((Me,Be)=>Ee.push(vXo(Me,Be))),s([...ce]),u([...Ee])}},[p,m]);const U=()=>{M(!1)},$=async()=>{if(KCe(a),R){const ie=new FileReader;let he="";ie.onload=de=>{he=de.target.result},ie.readAsText(R),MJo(!0),setTimeout(async()=>{await pbe(a,r==null?void 0:r.trim(),he)},1e3)}else await pbe(a,r==null?void 0:r.trim());_a.contractSubmission({selectedChain:a,contractAddress:r==null?void 0:r.trim(),timestamp:Date.now(),isAbiFile:!!R})},z=ie=>{ie==null||ie.preventDefault(),f(!h),$()},Z=()=>{f(!h),k("")},K=ie=>{var de,ce;const he=(ce=(de=ie==null?void 0:ie.target)==null?void 0:de.files)==null?void 0:ce[0];he&&he.type==="application/json"?(k(he),N(!1)):N(!0)},Q=()=>{var he,de,ce,Ee,Me,Be;let ie={...ef({selectedChain:(ce=(de=(he=p==null?void 0:p.data)==null?void 0:he.trackedInfo)==null?void 0:de.chainSuffix)==null?void 0:ce.toLowerCase(),namespace:(Be=(Me=(Ee=p==null?void 0:p.data)==null?void 0:Ee.trackedInfo)==null?void 0:Me.schema)==null?void 0:Be.toUpperCase()})};return ie=Co.stringify({...ie},{arrayFormat:"bracket"}),ie},ee=()=>{var he,de,ce;const ie=(ce=(de=(he=p==null?void 0:p.data)==null?void 0:he.trackedInfo)==null?void 0:de.schema)==null?void 0:ce.toUpperCase();if(ie){if(!b){D==null||D.push(`${Qt.erd}?${Q()}`);return}Wne({selectedSchema:ie}),D==null||D.push(`${Qt.erd}?${Q()}`)}};return E.jsxs(Y.Suspense,{fallback:as,children:[!g&&_&&!n&&E.jsx("div",{className:"indexContract",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:async()=>{M(!0),await wJo()},className:"indexContractBtn",children:q.SUBSCRIPTION_CONTRACTS})}),E.jsx(PJo,{height:w,children:n?E.jsx(CXo,{}):E.jsxs("div",{className:`contractPageWrapper ${Ft.isEmpty(p==null?void 0:p.data)&&!m&&"contractPagebgContent"}`,children:[g&&E.jsx(xXo,{}),!g&&_&&!n&&E.jsx(bXo,{fetchContracts:$}),m&&E.jsxs("div",{className:"loadingBlock",children:[E.jsx(Ep,{}),E.jsx($Xo,{message:q.PLEASE_WAIT_SETUP_TABLES})]}),(o==null?void 0:o.length)>0&&!m&&E.jsxs(E.Fragment,{children:[E.jsx(zZo,{nodes:o,edges:c,onNodesChange:l,onEdgesChange:d}),!Ft.isEmpty(p==null?void 0:p.data)&&E.jsxs("div",{className:"formBtnwrap",children:[E.jsxs(Jt,{variant:"contained",color:"secondary",onClick:()=>{C(!_),Gqe({}),k(""),GZn(""),s([])},className:"backButton",children:[E.jsx("span",{className:"iconLeft",children:E.jsx(gmi,{})}),q.BACK]}),E.jsx(kXo,{})]}),B&&E.jsxs("div",{className:"indexedContractInfo",children:[j&&E.jsx("div",{className:"indexStatus",children:E.jsx(BYt,{title:(()=>j==="In progress"?q.IN_PROGRESS:j==="Completed successfully"?q.COMPLETED_SUCCESSFULLY:q.FAILED_INDEXING)(),arrow:!0,children:E.jsxs("div",{className:"indexStatusHeader",children:["Full Event History Indexing:"," ",j==="Not started"?"Not yet started":j]})})}),E.jsxs("div",{className:"infoText",children:[E.jsx(cg,{className:"infoIcon"}),E.jsx("span",{role:"presentation",onClick:()=>ee(),children:q.CLICK_HERE})," ","to view indexed smart contract tables"]})]})]}),Ft.isEmpty(p==null?void 0:p.data)&&!m&&E.jsxs("div",{className:"contractFlowList",children:[E.jsxs("div",{className:"contractListItem",children:[E.jsx("div",{className:"contractImgWrapper",children:E.jsx("img",{src:RXo,alt:""})}),E.jsx("h3",{children:"Enter Contract Address"})]}),E.jsxs("div",{className:"contractListItem",children:[E.jsx("div",{className:"contractImgWrapper",children:E.jsx("img",{src:MXo,alt:""})}),E.jsx("h3",{children:"Validate ABI"})]}),E.jsxs("div",{className:"contractListItem",children:[E.jsx("div",{className:"contractImgWrapper",children:E.jsx("img",{src:NXo,alt:""})}),E.jsx("h3",{children:"Get All Events List From Contract"})]}),E.jsxs("div",{className:"contractListItem",children:[E.jsx("div",{className:"contractImgWrapper",children:E.jsx("img",{src:IXo,alt:""})}),E.jsx("h3",{children:"Request Events for Indexing"})]}),E.jsxs("div",{className:"contractListItem",children:[E.jsx("div",{className:"contractImgWrapper",children:E.jsx("img",{src:PXo,alt:""})}),E.jsx("h3",{children:"Tables Indexed"})]})]}),E.jsx(BXo,{handleClose:U,open:T}),E.jsx(lf,{visible:h,maxWidth:"xs",onClose:Z,isHeader:!1,children:E.jsxs(LJo,{children:[E.jsx("div",{className:"noAbiImg",children:E.jsx(iTe,{src:OXo,placeholderSrc:LXo})}),E.jsx("h3",{children:q.NO_ABI_TEXT}),E.jsx("p",{children:q.NO_ABI_SUB_TEXT}),E.jsxs("div",{className:"formGroup fileField",children:[E.jsx("div",{className:"customFileInput",children:R?E.jsxs("div",{className:"fileName",children:[E.jsx("div",{children:R==null?void 0:R.name}),E.jsx("span",{className:"removeFile",role:"presentation",onClick:()=>k(""),children:E.jsx(ioe,{})})]}):E.jsxs(E.Fragment,{children:[E.jsx("input",{name:"abi",type:"file",accept:".json, .abi",onChange:K}),E.jsxs("div",{className:"fileName",children:[E.jsx(Bmi,{}),E.jsx("div",{children:E.jsx("span",{children:q.UPLOAD_ABI_FILE})})]})]})}),E.jsx("div",{className:`acceptText ${P?"error":""}`,children:P?q.CONTRACT_FILE_ERROR_TEXT:q.CONTRACT_FILE_SUPPORT_TEXT})]}),E.jsx(Jt,{variant:"contained",color:"primary",type:"submit",size:"large",disabled:!R,onClick:ie=>z(ie),children:q.UPLOAD_NOW})]})})]})})]})},aXn=({description:t,children:e})=>{var s,l;const n=xo(),r=Mit(),a=()=>{_a.outboundLinks({linkFor:q.PROOF_OF_SQL,link:pkt.proof_of_sql_url}),window.open(pkt.proof_of_sql_url,"_blank")},o=()=>{r&&r.query?hp(typeof r.query=="string"?"":r.query.code||""):hp(""),JU(null),n.push(Qt.sendData)};return E.jsx("div",{className:"sendDataHeader",children:E.jsx(Er,{container:!0,spacing:5,children:E.jsx(Er,{item:!0,xs:12,sm:12,md:6,lg:6,className:"gridleft",children:E.jsxs("div",{className:"tabsviewActive leftSpacing",children:[E.jsxs("div",{className:"tabsWrapper",children:[E.jsx(Jt,{onClick:()=>n.push(Qt.getDataFromChain),className:`tabButton ${((s=n==null?void 0:n.location)==null?void 0:s.pathname)===Qt.getDataFromChain?"active":""}`,children:KLe.get_data}),E.jsx(Jt,{onClick:o,className:`tabButton ${((l=n==null?void 0:n.location)==null?void 0:l.pathname)===Qt.sendData?"active":""}`,children:KLe.send_data}),E.jsx(Jt,{onClick:a,className:"tabButton",children:KLe.proof_of_sql})]}),e]})})})})},jXo=()=>{const{height:t,headerHeight:e}=Is(),n=t-e||500,{search:r}=Zh(),a=ile(),s=!!new URLSearchParams(r).get("isAdmin");return E.jsx(YYn,{pageHeight:n,className:`contractPage ${Ft.isEmpty(a==null?void 0:a.data)&&"contractPageForm"}`,children:E.jsx("div",{className:"sendDataWrapper",children:E.jsxs("div",{className:"sendDataContainer",children:[!s&&E.jsx(aXn,{description:q.GET_DATA_FROM_CHAIN_DESCRIPTION}),E.jsx("div",{className:"getDataWrapper",children:E.jsx(FXo,{})})]})})})};var mdt={},HXo=As;Object.defineProperty(mdt,"__esModule",{value:!0});var oXn=mdt.default=void 0,UXo=HXo(Ps()),zXo=E;oXn=mdt.default=(0,UXo.default)((0,zXo.jsx)("path",{d:"M12 7.77 18.39 18H5.61zM12 4 2 20h20z"}),"ChangeHistorySharp");var gdt={},GXo=As;Object.defineProperty(gdt,"__esModule",{value:!0});var Xre=gdt.default=void 0,VXo=GXo(Ps()),KXo=E;Xre=gdt.default=(0,VXo.default)((0,KXo.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");var vdt={},WXo=As;Object.defineProperty(vdt,"__esModule",{value:!0});var Adt=vdt.default=void 0,QXo=WXo(Ps()),qXo=E;Adt=vdt.default=(0,QXo.default)((0,qXo.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key");var YXo=["client","offset","scroll","bounds","margin"];function Njt(t){var e=[];return YXo.forEach(function(n){t[n]&&e.push(n)}),e}function Ijt(t,e){var n={};if(e.indexOf("client")>-1&&(n.client={top:t.clientTop,left:t.clientLeft,width:t.clientWidth,height:t.clientHeight}),e.indexOf("offset")>-1&&(n.offset={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}),e.indexOf("scroll")>-1&&(n.scroll={top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}),e.indexOf("bounds")>-1){var r=t.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(e.indexOf("margin")>-1){var a=getComputedStyle(t);n.margin={top:a?parseInt(a.marginTop):0,right:a?parseInt(a.marginRight):0,bottom:a?parseInt(a.marginBottom):0,left:a?parseInt(a.marginLeft):0}}return n}function JXo(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||window}function ZXo(t){return function(e){var n,r;return r=n=function(a){Ev(o,a);function o(){for(var l,c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=a.call.apply(a,[this].concat(u))||this,l.state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},l._animationFrameID=null,l._resizeObserver=null,l._node=null,l._window=null,l.measure=function(h){var f=Ijt(l._node,t||Njt(l.props));h&&(f.entry=h[0].contentRect),l._animationFrameID=l._window.requestAnimationFrame(function(){l._resizeObserver!==null&&(l.setState({contentRect:f}),typeof l.props.onResize=="function"&&l.props.onResize(f))})},l._handleRef=function(h){l._resizeObserver!==null&&l._node!==null&&l._resizeObserver.unobserve(l._node),l._node=h,l._window=JXo(l._node);var f=l.props.innerRef;f&&(typeof f=="function"?f(l._node):f.current=l._node),l._resizeObserver!==null&&l._node!==null&&l._resizeObserver.observe(l._node)},l}var s=o.prototype;return s.componentDidMount=function(){this._resizeObserver=this._window!==null&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new Lpn(this.measure),this._node!==null&&(this._resizeObserver.observe(this._node),typeof this.props.onResize=="function"&&this.props.onResize(Ijt(this._node,t||Njt(this.props))))},s.componentWillUnmount=function(){this._window!==null&&this._window.cancelAnimationFrame(this._animationFrameID),this._resizeObserver!==null&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},s.render=function(){var c=this.props;c.innerRef,c.onResize;var u=Wn(c,["innerRef","onResize"]);return Y.createElement(e,Ce({},u,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},o}(Y.Component),n.propTypes={client:kt.bool,offset:kt.bool,scroll:kt.bool,bounds:kt.bool,margin:kt.bool,innerRef:kt.oneOfType([kt.object,kt.func]),onResize:kt.func},r}}var JCe=ZXo()(function(t){var e=t.measure,n=t.measureRef,r=t.contentRect,a=t.children;return a({measure:e,measureRef:n,contentRect:r})});JCe.displayName="Measure";JCe.propTypes.children=kt.func;const XXo=gt.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  overflow: hidden auto;
  color: rgb(255 255 255 / 70%);
  .schemaList {
    flex: 1;
  }
`;function ees({children:t}){return E.jsx(XXo,{children:t})}const tes=gt.span`
  .secondary {
    color: ${t=>t.theme.custom.greyText.A2};
  }

  .danger {
    color: ${t=>t.theme.palette.error.main};
  }
`;function f7e({children:t,className:e,type:n,...r}){const a=[];return e&&a.push(e),n==="secondary"?a.push("secondary"):n==="danger"&&a.push("danger"),E.jsx(tes,{children:E.jsx("span",{className:a.join(" "),...r,children:t})})}const nes=({schemas:t,subscribedSchemasAndTables:e,blockchainSchemasKey:n})=>{const r=[],a=[],o=[],s=["BITCOIN","ETHEREUM","ZKSYNCERA","POLYGON","SUI","APTOS","SEI","AVALANCHE_C","BNB","BASE","HOLESKY","GOERLI","SEPOLIA","MUMBAI","SUI (testnet)"],l={};return t==null||t.forEach(c=>{const{schema:u=""}=c;if(n[u]){l[u]=c;return}if(e[u]){a.push(c);return}c&&o.push(c)}),s==null||s.forEach(c=>{l[c]&&r.push(l[c])}),{blockchainSchemas:r,subscribedSchemas:a,publicSchemas:o}},Pjt=(t,e,n,r,a)=>({type:Mc.table,name:t==null?void 0:t.table,description:t==null?void 0:t.description,id:e,level:n,schemaName:r==null?void 0:r.schema,subGroup:a}),Ojt=(t,e,n,r,a)=>({type:Mc.column,name:t==null?void 0:t.column,dataType:y1a(t==null?void 0:t.dataType),id:e,pk:(t==null?void 0:t.primaryKeySequence)>0,level:n,subGroup:r,schemaName:a}),p7e=({schemas:t,expanded:e})=>{const n=[];return t!=null&&t.length&&(t==null||t.sort((r,a)=>r.schema.localeCompare(a.schema)).forEach(r=>{var o,s,l,c,u,d,h,f,p,m,g;const a=r.schema;((o=r==null?void 0:r.tables)!=null&&o.length||(s=r==null?void 0:r.views)!=null&&s.length)&&n.push({type:Mc.schema,name:r.schema,description:"",id:a,level:1}),((l=r==null?void 0:r.tables)!=null&&l.length||(c=r==null?void 0:r.views)!=null&&c.length)&&!((u=Object.values((r==null?void 0:r.schemaSubGroups)||{}))!=null&&u.length)&&e[a]?((d=r==null?void 0:r.tables)!=null&&d.length&&n.push({type:Mc.divider,name:"Tables",id:"table",level:0}),(h=r==null?void 0:r.tables)==null||h.sort((v,A)=>v.table.localeCompare(A.table)).forEach(v=>{const{tableId:A=""}=v;n.push(Pjt(v,A,2,r)),e[A]&&v.columns.sort((y,S)=>y.column.localeCompare(S.column)).forEach(y=>{const{columnId:S=""}=y;n.push(Ojt(y,S,3,"",r.schema))})}),(f=r==null?void 0:r.views)!=null&&f.length&&(n.push({type:Mc.divider,name:"Views",id:"view",level:0}),(p=r==null?void 0:r.views)==null||p.sort((v,A)=>v.view.localeCompare(A.view)).forEach(v=>{n.push({type:Mc.view,name:v.view,id:`${v.schema}.${v.view}`,level:3.2,schemaName:v.schema,subGroup:v.schema})}))):e[a]&&r!=null&&r.schemaSubGroups&&((m=r==null?void 0:r.tables)!=null&&m.length||(g=r==null?void 0:r.views)!=null&&g.length)&&Object.keys((r==null?void 0:r.schemaSubGroups)||{}).sort((v,A)=>v.toLowerCase().localeCompare(A.toLowerCase())).forEach(v=>{var y,S,x;const A=`${r==null?void 0:r.schema}.${v}`;if(n.push({type:Mc.subgroup,name:v||"default",id:A,level:1.5,schemaName:r.schema,subGroup:v}),e[A]){if((y=r==null?void 0:r.tables)!=null&&y.length){const w=r.tables.filter(_=>_.subGroup===v);w!=null&&w.length&&n.push({type:Mc.divider,name:"Tables",id:"table",level:0}),w.sort((_,C)=>_.table.localeCompare(C.table)).forEach(_=>{var R;const{tableId:C=""}=_;n.push(Pjt(_,C,2,r,v)),e[C]&&((R=_==null?void 0:_.columns)==null||R.sort((k,P)=>k.column.localeCompare(P.column)).forEach(k=>{const{columnId:P=""}=k;n.push(Ojt(k,P,3,v,r==null?void 0:r.schema))}))})}(S=r==null?void 0:r.views)!=null&&S.length&&(n.push({type:Mc.divider,name:"Views",id:"view",level:0}),(x=r==null?void 0:r.views)==null||x.sort((w,_)=>w.view.localeCompare(_.view)).forEach(w=>{n.push({type:Mc.view,name:w.view,id:`${w.schema}.${w.view}`,level:3.2,schemaName:w.schema,subGroup:w.schema})}))}})})),n};function ies({connectionSchema:t,expanded:e,subscribedSchemasAndTables:n,blockchainSchemasKey:r,subscriptionDetails:a={}}){const{schemas:o=[]}=t,{blockchainSchemas:s,subscribedSchemas:l,publicSchemas:c}=nes({schemas:o,subscribedSchemasAndTables:n,blockchainSchemasKey:r}),u=[];if(s!=null&&s.length&&(u.push({type:Mc.parentGroup,name:q.SPACE_AND_TIME_DATASETS,description:"",id:sx.sxtDatasets,level:0}),e[sx.sxtDatasets]&&u.push(...p7e({schemas:s,expanded:e}))),l!=null&&l.length&&(u.push({type:Mc.parentGroup,name:a!=null&&a.subscriptionId?q.ORGANIZATION_DATASETS:q.MY_DATASETS,description:"",id:sx.subscribedDatasets,level:0}),e[sx.subscribedDatasets])){const d=p7e({schemas:l,expanded:e});u.push(...d)}if(c!=null&&c.length&&(u.push({type:Mc.parentGroup,name:q.COMMUNITY_DATASETS,description:"",id:sx.publicDatasets,level:0}),e[sx.publicDatasets])){const d=p7e({schemas:c,expanded:e});u.push(...d)}return u}function aes(t,e){const n=[];return t.forEach(r=>{(e.test(r.table)||r.columns.some(a=>e.test(a.column)))&&n.push(r)}),n}const oes=(t,e)=>{const n=[];return t==null||t.forEach(r=>{e.test(r.view)&&n.push(r)}),n},ses=(t,e,n)=>{var c,u;let r=!1;const a={};(c=Object.keys((t==null?void 0:t.schemaSubGroups)||{}))==null||c.forEach(d=>{var h;e!=null&&e.test(d)&&(a[d]=((h=t==null?void 0:t.schemaSubGroups)==null?void 0:h[d])||[],r||(r=!0))});const o=aes(t.tables,e);o==null||o.forEach(({subGroup:d=""})=>{var h,f;!a[d]&&((f=(h=t==null?void 0:t.schemaSubGroups)==null?void 0:h[d])!=null&&f.length)&&(a[d]=t.schemaSubGroups[d]),r||(r=!0)});const s=oes((t==null?void 0:t.views)||[],e),l={...t};return o!=null&&o.length&&(l.tables=[...o]),!r&&(s!=null&&s.length)&&(r=!0,l.views=s),Ft.isEmpty(a)||(l.schemaSubGroups={...a},(u=Object.keys(a))==null||u.forEach(d=>{const h=`${t==null?void 0:t.schema}.${d}`;rH({type:"subgroup",name:d||"default",description:d,id:h,level:1.5},n)}),r=!0),r&&rH({description:void 0,id:l.schema,level:1,name:l.schema,type:"schema"},n),{includeSchema:r,filteredSchema:l}};function les(t,e,n){if(!e)return P0a(),{schemas:t};if(e!==""&&e===n)return{};const r=[];let a;try{a=new RegExp(e,"i")}catch{return{schemas:[]}}return t==null||t.forEach(o=>{if(a.test(o.schema)){const s={...o,tables:[...o.tables],schemaSubGroups:{...(o==null?void 0:o.schemaSubGroups)||{}}};rH({description:void 0,id:s.schema,level:0,name:s.schema,type:"schema"},e),r.push(s)}else{const{includeSchema:s,filteredSchema:l}=ses(o,a,e);s&&r.push(l)}}),{schemas:r}}const ces=gt.div`
  position: relative;
  input.MuiOutlinedInput-input {
    padding-right: 35px !important;
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .searchIcon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    line-height: 1;
  }
  .searchIcon .clearSearch {
    cursor: pointer;
  }
  .searchIcon:hover .clearSearch {
    color: ${t=>t.theme.custom.white.A1};
  }
`,ues=gt.ul`
  padding-left: 0;
  padding-top: 16px;
  height: 100%;
  margin: 0;
  .schemaItem {
    font-size: ${t=>t.theme.custom.fontSize.font12};
    line-height: 28px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: space-between;
    &.schemaDisabled {
      opacity: 0.4;
      cursor: not-allowed;
      > * {
        pointer-events: none;
      }
    }
    &.schemaViews {
      .schemaLabel {
        cursor: default;
        &:hover {
          text-decoration: none;
        }
      }
    }
  }
  .schemaItem .keyIcon {
    color: ${t=>t.theme.custom.orange};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    margin-right: 6px;
  }
  .schemaItem .triangleIcon {
    color: ${t=>t.theme.custom.white.A2};
    font-size: ${t=>t.theme.custom.fontSize.font10};
    margin-bottom: -1px;
    margin-right: 6px;
  }
  .expandable .schemaLabel {
    user-select: none;
    color: ${t=>t.theme.custom.white.A11};
    cursor: pointer;
  }
  .expandable .schemaLabel:hover {
    text-decoration: underline;
  }
  .expandable .expandableIcon {
    margin-right: 6px;
    margin-bottom: -6px;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
    border-radius: 4px;
  }
  .expandable .iconSize {
    max-width: 18px;
    margin-right: 5px;
  }
  span.secondary {
    margin-left: 6px;
  }
  .schemaItem button {
    height: 20px;
    width: 20px;
    margin-right: 5px;
    border: 0;
  }
  .schemaItem button svg {
    margin: 0;
    height: 14px;
    width: 14px;
  }
`;gt.div`
  text-align: center;
  padding-top: 100px;
  width: 100%;
  height: 100%;
`;const Ljt=gt.div`
  && {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
    &.groupHead {
      width: 100%;
      padding-right: 0;
      text-align: center;
      position: relative;
      margin-right: 4px;
      margin-left: 20px;
      span {
        padding: 0 8px;
        color: ${t=>t.theme.custom.greyText.A2};
        font-weight: ${t=>t.theme.custom.fontWeight.md};
        background: rgb(43 35 76);
      }
      &:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        height: 1px;
        width: 100%;
        z-index: -1;
        background: ${t=>t.theme.custom.greyText.A2};
      }
    }
  }
`,des="/assets/AVALANCHE-fdc7f330.svg",Bfe="/assets/ETHEREUM-dc2fb7da.svg",hes="/assets/POLYGON-5b2b3c81.svg",fes="/assets/BNB-1ebff9f3.svg",pes="/assets/UNISWAP-cc9e99cd.svg",mes="/assets/AAVE-4e238f97.svg",ges="/assets/DEFAULT-dd63bdfb.svg",ves="/assets/TABLE-30f8ffc4.svg",Aes="/assets/view-219961f6.svg",yes="/assets/SUSHI-9d884336.svg",bes="/assets/BETA-ca9bec07.svg",xes="/assets/SUI-37e65f71.svg",Ees="/assets/SEI-402190bf.svg",Ses="/assets/BITCOIN-e7d3b866.svg",wes="/assets/APTOS-2712cfe5.svg",Bjt=t=>{var n;const e=(n=t==null?void 0:t.name)==null?void 0:n.toUpperCase();if((t==null?void 0:t.type)==="table")return ves;if((t==null?void 0:t.type)===Mc.view)return Aes;if((t==null?void 0:t.type)===Mc.subgroup){if(e.includes("UNISWAP"))return pes;if(e.includes("AAVE"))return mes;if(e.includes("SUSHI"))return yes;if(e.includes("BETA"))return bes}return e.includes("AVALANCHE")?des:e.includes("ETH")?Bfe:e.includes("POLYGON")?hes:e.includes("BNB")?fes:e.includes("SUI")?xes:e.includes("SEI")?Ees:e.includes("BITCOIN")?Ses:e.includes("APTOS")?wes:e.includes("ZKSYNCERA")?YCe:e.includes("SEPOLIA")||e.includes("HOLESKY")||e.includes("ETHEREUM_BEACON")?Bfe:ges};function M7(t,e=""){const n=e[0]||"",r=e[1]||e[0]||"";return t.split(".").map(a=>`${n}${a}${r}`).join(".")}function m7e({id:t,value:e}){return E.jsx("input",{id:t,type:"text",readOnly:!0,style:{position:"absolute",left:-9999},value:e})}function g7e({id:t,value:e,setContextMenu:n}){return E.jsxs(Dn,{onClick:()=>{const r=document.querySelector(t);r&&(r.select(),navigator.clipboard.writeText(e),n(null))},sx:{fontSize:12},children:["Copy ",e," to clipboard"]})}function _es({setSelectedSchemaSiderbarValue:t}){const[e,n]=Y.useState(""),[r,a]=Y.useState({width:-1,height:-1}),[o,s]=Y.useState(""),[l,c]=Y.useState(""),[u,d]=Y.useState({}),[h,f]=ke.useState(null),p=Yw(),m=_fn(),{expanded:g={}}=cga(),v=fN(),A=Hit(),{subscribedSchemasAndTables:y}=EV(),{blockchainsAndSchemas:S}=Tfn();Y.useEffect(()=>{if(e!==""&&e===l)return;const k=les(A||{},e,l);c(e),d(k)},[e,A]);const x=ies({connectionSchema:u,expanded:g,subscribedSchemasAndTables:y,blockchainSchemasKey:S,subscriptionDetails:v}),w=()=>{f(null)},_=({index:k,style:P})=>{var Z;const N=x[k];if(!N)return null;const L=["schemaItem"];if(N.type===Mc.divider)return E.jsx("li",{className:L.join(" "),style:{...P},children:E.jsx(Ljt,{id:N.id,className:"schemaLabel groupHead",children:E.jsx("span",{children:N.name})})},N.id);let I=null,b=[];const T=Mc.schema&&(A==null?void 0:A.find(K=>K.schema===(N==null?void 0:N.name))),M=(N==null?void 0:N.type)===Mc.schema?[...(T==null?void 0:T.tables)||[],...(T==null?void 0:T.views)||[]]:[];if((N==null?void 0:N.type)===Mc.subgroup){const K=A==null?void 0:A.find(Q=>(N==null?void 0:N.schemaName)===Q.schema);b=((Z=K==null?void 0:K.tables)==null?void 0:Z.filter(Q=>(Q==null?void 0:Q.subGroup)===(N==null?void 0:N.name)))||[]}((N==null?void 0:N.type)===Mc.schema&&!(M!=null&&M.length)||(N==null?void 0:N.type)===Mc.subgroup&&!(b!=null&&b.length))&&(L==null||L.push("schemaDisabled")),(N==null?void 0:N.type)===Mc.view&&(L==null||L.push("schemaViews"));const D=gOe==null?void 0:gOe.includes(N==null?void 0:N.type);D?(L.push("expandable"),I=E.jsxs("span",{children:[g[N==null?void 0:N.id]?E.jsx(Xre,{fontSize:"small",className:"expandableIcon"}):E.jsx(J6,{fontSize:"small",className:"expandableIcon"}),E.jsx("img",{src:Bjt(N),alt:"",className:"iconSize"})]}),(N==null?void 0:N.type)===Mc.view&&(I=E.jsx("span",{children:E.jsx("img",{src:Bjt(N),alt:"",className:"iconSize"})}))):I=N!=null&&N.pk?E.jsx(Adt,{className:"keyIcon"}):E.jsx(oXn,{className:"triangleIcon"});const B=N.level*20+(D?0:10),j=N.description?E.jsx(Pn,{label:N.description,children:E.jsx("span",{children:N.description})},"colDesc"):null,H=N.dataType?E.jsx("span",{children:N.dataType}):null;let U=null;H&&j?U=E.jsxs(f7e,{type:"secondary",children:[H," - ",j]}):H?U=E.jsx(f7e,{type:"secondary",children:H}):j&&(U=E.jsx(f7e,{type:"secondary",children:j}));const $=()=>{D&&((N==null?void 0:N.type)===Mc.schema&&M!=null&&M.length&&rH(N),(N==null?void 0:N.type)===Mc.subgroup&&b!=null&&b.length&&rH(N),((N==null?void 0:N.type)===Mc.table||(N==null?void 0:N.type)===Mc.parentGroup)&&rH(N))},z=()=>{var Q,ee;let K="";(N==null?void 0:N.type)==="table"||(N==null?void 0:N.type)==="column"?K=N==null?void 0:N.id:(N==null?void 0:N.type)==="subgroup"?(N==null?void 0:N.subGroup)==="core"||(N==null?void 0:N.subGroup)==="default"?K=`${(Q=N==null?void 0:N.schemaName)==null?void 0:Q.toUpperCase()}`:K=`${(ee=N==null?void 0:N.subGroup)==null?void 0:ee.toUpperCase()}`:K=N.id,t(K)};return E.jsxs("li",{className:L.join(" "),style:{...P,paddingLeft:B},children:[E.jsxs(Ljt,{id:N.id,onClick:$,className:"schemaLabel",children:[I,E.jsx(Pn,{label:N.name,children:E.jsx("span",{children:N.name})}),U]}),(N==null?void 0:N.type)!==Mc.parentGroup&&E.jsx(_n,{onClick:z,children:p?null:E.jsx(cmi,{})})]},`${(N==null?void 0:N.schemaName)||""}${(N==null?void 0:N.subGroup)||""}row.id`)};let C=null;C=E.jsx(ues,{children:x.length>0?E.jsx(Wmn,{style:{position:"absolute"},height:r.height,itemCount:x.length,itemSize:28,width:r.width,overscanCount:10,children:_}):E.jsx(Vc,{children:q.NO_DB_OBJECTS_FOUND})});function R(k){k.preventDefault();const P=k.target,N=P==null?void 0:P.id;if(s(N),f(h===null?{mouseX:k.clientX+2,mouseY:k.clientY-6}:null),N){const L=document.getElementById("context-menu"),I=document.createEvent("MouseEvents");I.initEvent("mousedown",!0,!0),L==null||L.dispatchEvent(I)}}return E.jsx(JCe,{bounds:!0,onResize:k=>{k.bounds&&a(k.bounds)},children:({measureRef:k})=>E.jsxs(ees,{children:[E.jsxs(ces,{children:[E.jsx(gr,{value:e,placeholder:q.SEARCH_BY_DB_OBJECTS,onChange:P=>n(P.target.value)}),E.jsx("span",{className:"searchIcon",children:e?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:()=>n("")}):E.jsx(yv,{})})]}),E.jsx(m7e,{id:"schema-copy-value-no-quote",value:M7(o)}),E.jsx(m7e,{id:"schema-copy-value-quote",value:M7(o,'"')}),E.jsx(m7e,{id:"schema-copy-value-bracket",value:M7(o,"[]")}),m?E.jsx(as,{}):E.jsxs("div",{ref:k,onContextMenu:R,className:"schemaList",children:[C,E.jsxs(lE,{open:h!==null,onClose:w,anchorReference:"anchorPosition",anchorPosition:h!==null?{top:h.mouseY,left:h.mouseX}:void 0,children:[E.jsx(g7e,{id:"#schema-copy-value-no-quote",value:M7(o),setContextMenu:f}),E.jsx(g7e,{id:"#schema-copy-value-quote",value:M7(o,'"'),setContextMenu:f}),E.jsx(g7e,{id:"#schema-copy-value-bracket",value:M7(o,"[]"),setContextMenu:f})]})]})]})})}const sXn=ke.memo(_es),Tes=({setSelectedSchemaSiderbarValue:t,children:e})=>K_e()?E.jsxs(aC,{split:"vertical",minSize:200,defaultSize:200,maxSize:600,children:[E.jsx(sXn,{setSelectedSchemaSiderbarValue:t}),e]}):E.jsx(E.Fragment,{children:e});function Ces({visible:t,queryId:e}){const n=xo();return E.jsxs(lf,{title:"Query not found",maxWidth:"sm",visible:t,children:[E.jsxs("p",{children:["Query ID ",E.jsx("code",{children:e})," not found. It may have been deleted or you may not have access."]}),E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>{n.push("/queries/new?tabID=1"),T5("1")},children:"Start new query"})]})}const kes=ke.memo(Ces),Res=gt(lEe)`
  && {
    background: ${t=>t.theme.custom.inputBg};
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
  }
  && fieldset {
    top: 0;
    border: 0;
  }

  && .MuiOutlinedInput-input.Mui-disabled {
    -webkit-text-fill-color: inherit;
  }
  .MuiOutlinedInput-input {
    padding: ${t=>t.ishelpertext?"6px 50px 6px 16px":"6px 16px"};
    height: unset !important;
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
    color: ${t=>t.theme.custom.white.A1};
  }
  .MuiOutlinedInput-input::placeholder {
    color: ${t=>t.theme.custom.greyText.A5};
    opacity: 0.8;
  }
`,Mes=gt.span`
  font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
  color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A2}};
  position: absolute;
  right: 4px;
  top: 110px;
`,Nes=gt.div`
  font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
  color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.yellow}};
  margin-top: 4px;
  display: inline-flex;
  align-content: center;
`,Ies=t=>{const{children:e,error:n,fullWidth:r,ref:a,ishelpertext:o,onChange:s,setShowError:l,hasMax:c=!1,maxValue:u=0,rows:d=4,...h}=t,{focused:f}=tb()||{},p=ke.useMemo(()=>f?n:!1,[f,n]),m=g=>$fn(g,c,u,s,l);return E.jsx(Res,{fullWidth:!0,rows:d,multiline:!0,error:p,inputRef:a,ishelpertext:o,onChange:m,...h,children:e})},lXn=ke.forwardRef((t,e)=>{const{children:n,label:r,helperText:a,error:o,warningText:s,required:l,...c}=t,[u,d]=Y.useState(!1);return E.jsxs(eae,{fullWidth:!0,className:a?"formHelperText":"",children:[E.jsx("label",{htmlFor:"textarea",className:`formLabel ${l?"required":""}`,children:r}),E.jsx(Ies,{error:o,...c,setShowError:d,children:n}),E.jsx(Mes,{className:"inputHelperText",children:a}),u&&E.jsxs(Nes,{children:[E.jsx(hEe,{sx:{fontSize:15}})," ",s]})]})});lXn.displayName="TextArea";function Pes({invalidUser:t}){var _,C,R,k,P,N;const e=Oit(),n=Doe(),r=Bit(),a=$oe(),o=Y.useRef(null),s=dfn(),l=NAa(),c=TAa(),u=Boe(),d=Fit(),[h,f]=Y.useState({name:n,description:l,tags:c});Y.useEffect(()=>{e&&f({name:n,description:l,tags:c})},[e]),Y.useEffect(()=>{f(L=>({...L,name:n||""}))},[n]),Y.useEffect(()=>{f(L=>({...L,description:l||d||""}))},[l]),Y.useEffect(()=>{f(L=>({...L,tags:c}))},[c]);const p=r&&!((_=h==null?void 0:h.name)!=null&&_.length);function m(L){var b,T;L.preventDefault();const I={name:((b=h==null?void 0:h.name)==null?void 0:b.trim())||"",description:((T=h==null?void 0:h.description)==null?void 0:T.trim())||"",tags:(h==null?void 0:h.tags)||[]};t&&(I.id=void 0),gVe(I)}const g=L=>{var I;if(L.key==="Enter"){if(!s)return;!a&&!p&&((I=h==null?void 0:h.name)!=null&&I.trim())&&m(L)}};Y.useEffect(()=>(window.addEventListener("keypress",g),()=>{window.removeEventListener("keypress",g)}),[h]);const v=Y.useCallback(()=>{zit()},[]),A=L=>f(I=>({...I,tags:L})),y=L=>{const I=[...h.tags].filter(b=>(b==null?void 0:b.tagValue)!==L&&(b==null?void 0:b.value)!==L);f(b=>({...b,tags:I}))},S=L=>{var b;const I=((b=L==null?void 0:L.target)==null?void 0:b.value)||"";(h==null?void 0:h.name)!==I&&f(T=>({...T,name:I}))},x=L=>{const I=L.target.value||"";f(b=>({...b,description:I}))},w=()=>{var I,b;const L={id:void 0,name:((I=h==null?void 0:h.name)==null?void 0:I.trim())||"",description:((b=h==null?void 0:h.description)==null?void 0:b.trim())||"",tags:(h==null?void 0:h.tags)||[],status:Ean.unpublished};gVe(L)};return E.jsx(lf,{maxWidth:"sm",title:q.SAVE_QUERY,visible:e,onClose:v,children:E.jsx(rCe,{children:E.jsxs("form",{onSubmit:m,children:[E.jsx(gr,{label:q.QUERY_NAME,ref:o,error:p,placeholder:q.ENTER_QUERY_NAME,disabled:!s,value:h.name,ishelpertext:1,helperText:`${(C=h==null?void 0:h.name)==null?void 0:C.length}/${Qr}`,warningText:q.MAX_LENGTH_ERROR("name",Qr),onChange:S,onKeyDown:vw,hasMax:!0,maxValue:Qr,required:!0}),E.jsx(nCe,{currentTags:h.tags,setTags:A}),E.jsx("div",{className:"tagList",children:E.jsx(Ov,{tags:(h==null?void 0:h.tags)||[],isRemovable:!0,onRemove:y})}),E.jsx(lXn,{label:q.QUERY_DESCRIPTION,ref:o,error:p,placeholder:q.ENTER_QUERY_DESCRIPTION,disabled:!s,value:h.description,ishelpertext:1,helperText:`${(R=h==null?void 0:h.description)==null?void 0:R.length}/${UR}`,warningText:q.MAX_LENGTH_ERROR("description",UR),onChange:x,hasMax:!0,maxValue:UR}),E.jsx(Dee,{}),!s&&E.jsx("div",{className:"modalFooter",children:E.jsx(Jt,{variant:"contained",color:"secondary",onClick:v,children:q.CLOSE})}),s&&E.jsxs("div",{className:"modalFooter",children:[E.jsx(Jt,{onClick:v,variant:"contained",color:"secondary",children:q.CANCEL}),E.jsxs("div",{children:[(!u||t)&&E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",disabled:a||!!p||!((k=h==null?void 0:h.name)!=null&&k.trim()),children:q.SAVE}),u&&!t&&E.jsxs(E.Fragment,{children:[E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>w(),disabled:a||!!p||!((P=h==null?void 0:h.name)!=null&&P.trim()),children:q.SAVE_AS_NEW_QUERY}),E.jsx(Jt,{type:"submit",variant:"contained",color:"primary",disabled:a||!!p||!((N=h==null?void 0:h.name)!=null&&N.trim()),children:q.UPDATE})]})]})]})]})})})}const Oes=ke.memo(Pes);function DK(){const t=x=>{const w={};return x==null||x.forEach(_=>{if(_!=null&&_.tableId){const{tableId:C}=_;w[C]=_}}),w},e=x=>{var _,C;let w=(_=x==null?void 0:x.replace("java.lang.",""))==null?void 0:_.toLowerCase();return w=(C=w==null?void 0:w.replace("java.math.",""))==null?void 0:C.toLowerCase(),w},n=x=>x==null?void 0:x.map(({table:w})=>w),r=(x,w=0,_=0,C=0)=>{let R=w,k=_,P=0;for(;P+w<=C||w-P>=0;){if(P+w<C){if(R=P+w,x[R][k]===!0)return{row:R,column:k};for(let N=0;N<=C;N+=1){if(k=_+N,k<C&&x[R][k]===!0)return{row:R,column:k};if(k=_-N,k>=0&&x[R][k]===!0)return{row:R,column:k}}}if(w-P>=0){if(R=w-P,x[R][k]===!0)return{row:R,column:k};for(let N=0;N<=C;N+=1){if(k=_+N,k<C&&x[R][k]===!0)return{row:R,column:k};if(k=_-N,k>=0&&x[R][k]===!0)return{row:R,column:k}}}P+=1}return{row:w,column:_}},a=(x,w)=>{const{columns:_}=x,C=[],R=[],k=[];return _==null||_.forEach(P=>{(P==null?void 0:P.primaryKeySequence)>0?k.push({name:P==null?void 0:P.column,dataType:e(P==null?void 0:P.dataType),isPrimaryKey:!0,columnId:(P==null?void 0:P.columnId)||"",encrypted:P==null?void 0:P.encrypted}):w!=null&&w.includes(P==null?void 0:P.columnId)?C.push({name:P==null?void 0:P.column,dataType:e(P==null?void 0:P.dataType),isPrimaryKey:!1,columnId:P.columnId,encrypted:P==null?void 0:P.encrypted}):R.push({name:P==null?void 0:P.column,dataType:e(P==null?void 0:P.dataType),isPrimaryKey:!1,columnId:(P==null?void 0:P.columnId)||"",encrypted:P==null?void 0:P.encrypted})}),[...k,...C,...R]},o=x=>{const w={};return x==null||x.forEach(({tables:_})=>{_==null||_.forEach(C=>{if(C!=null&&C.tableId){const{tableId:R}=C;w[R]=C}})}),w},s=(x,w,_,C="")=>({key:w,name:(x==null?void 0:x.table)||w,items:a(x,_[w]),relations:x==null?void 0:x.relations,hasHeight:!!(x!=null&&x.hasHeight),tamperproof:!!(x!=null&&x.tamperproof),encrypted:!!(x!=null&&x.encrypted),immutable:!!(x!=null&&x.immutable),parentSchema:x==null?void 0:x.parentSchema,lastAnchored:x==null?void 0:x.lastAnchored,schema:x==null?void 0:x.schema,isPending:!!(x!=null&&x.isPending),size:x==null?void 0:x.size,columnName:C,isBlockchain:!!(x!=null&&x.isBlockchain)}),l=(x,w)=>{const _=x!=null&&x.length?[...x]:[];return w==null||w.forEach(({table:C})=>{_!=null&&_.includes(C)||_.push(C)}),_},c=x=>{var R,k;const w={},_=t(x);(R=x==null?void 0:x.filter(P=>P==null?void 0:P.tableId))==null||R.forEach(P=>{var I,b;const{tableId:N,relations:L}=P;w[N]?w[N]={value:(L==null?void 0:L.length)>0?w[N].value+L.length:w[N].value,data:P,relations:l((I=w[N])==null?void 0:I.relations,L)}:w[N]={value:(L==null?void 0:L.length)||0,data:P,relations:n(L)||[]},(b=P==null?void 0:P.relations)==null||b.forEach(T=>{const{table:M}=T;w[M]?(w[M].value+=1,w[M].relations=l(w[M].relations,[T])):_[M]&&(w[M]={value:1,data:_[M],relations:[]},w[M].relations=[N])})});const C=(k=Object.keys(w))==null?void 0:k.sort((P,N)=>{var L,I,b,T;return((L=w[P])==null?void 0:L.value)>((I=w[N])==null?void 0:I.value)?-1:((b=w[P])==null?void 0:b.value)<((T=w[N])==null?void 0:T.value)?1:0});return{maxRelations:w,keys:C}},u=(x,w,_,C,R)=>{var D,B;if(C>=(w==null?void 0:w.length))return{sortedTablesArray:w};const k=w[C],P={...x},N={},L=[];P[k]||(P[k]=1);const I=(B=(D=_[k])==null?void 0:D.relations)==null?void 0:B.sort((j,H)=>{var U,$;return(((U=_[j])==null?void 0:U.value)||0)-((($=_[H])==null?void 0:$.value)||0)});I==null||I.forEach(j=>{!P[j]&&_[j]&&(P[j]=1,L.push(j),N[j]=1)});const b=w.slice(0,R),T=w.slice(R,w.length);b.push(...L);const M=b.length;return T.forEach(j=>{N[j]||b.push(j)}),u(P,b,_,C+1,M)},d=(x,w=1)=>{const _=w*w;return Math.ceil(_/2)>x?w:d(x,w+2)},h=(x,w)=>u({},w,x,0,1),f=(x,w,_)=>{const C=w==null?void 0:w.filter(R=>R!==_);return C.unshift(_),u({},C,x,0,1)},p=x=>{const w=[];for(let _=0;_<x;_+=1){const C=_%2===0,R=[];for(let k=0;k<x;k+=1){let P=!0;C&&k%2!==0&&(P=!1),!C&&k%2===0&&(P=!1),R.push(P)}w.push(R)}return w},m=(x,w,_)=>{const C=_||4,R=x?x%C:0;let k=1;return w!=null&&w[R]?k=w[R]+180:k=Math.floor(x/C)*40+80,{x:R*360,y:k}},g=(x,w,_,C,R,k,P)=>{var T,M;const N=((T=_==null?void 0:_.relations)==null?void 0:T.length)||0,L=(M=_==null?void 0:_.items)==null?void 0:M.length,I=(L?L+1:1)*50,b={id:_==null?void 0:_.key,className:"nowheel",data:{label:_,isSearched:x},style:{width:330,padding:0},relations:N,hasHeight:!!_.hasHeight,contentHeight:I>350?350:I,contentLength:L||1,position:k&&(k==null?void 0:k.x)>=0?k:m(C,R,P)};return x&&(b.style.opacity=_!=null&&_.hasHeight?1:.4),b},v=(x,w,_="",C="",R="")=>{var U,$;const k=d((x==null?void 0:x.length)||0,1),{maxRelations:P,keys:N}=c(x),L={},{sortedTablesArray:I=[]}=_?f(P,N,_):h(P,N),b=p(k),T=Math.floor(k/2),M=I||[];for(;(M==null?void 0:M.length)>0;){let z=T,Z=T;const K=M.shift()||"";if(!L[K]&&P[K]){if(b[z][Z]===!0)b[z][Z]=K;else{const{row:Q=T,column:ee=T}=r(b,z,Z,k)||{};z=Q,Z=ee,b[z][Z]===!0&&(b[z][Z]=K)}L[K]={row:z,column:Z}}else if(P[K]){const{row:Q,column:ee}=L[K];z=Q,Z=ee}($=(U=P[K])==null?void 0:U.relations)==null||$.forEach(Q=>{if(!L[Q]&&P[Q]){const{row:ee=T,column:X=T}=r(b,z,Z,k)||{};b[ee][X]===!0&&(b[ee][X]=Q),L[Q]={row:ee,column:X}}})}const D=k,B=b,j=[],H=new Array(D).fill(0);return B==null||B.forEach(z=>{z==null||z.forEach((Z,K)=>{var he;if(Z===!0){H[K]+=380;return}if(Z===!1){H[K]+=180;return}const{data:Q={}}=P[Z]||{data:{tableId:""}},ee=s(Q,(Q==null?void 0:Q.tableId)||"",w,C),X=((he=ee==null?void 0:ee.items)==null?void 0:he.length)||0;let te=(X?X+1:1)*50;te=te>350?380:te+30,_&&(ee.hasHeight||(te=180));const J=K*420,ne=H[K];H[K]+=te;const ie=g(!!_,x,ee,K,{},{x:J,y:ne},0);R&&(ie.parentNode=R,ie.extent="parent"),j.push({...ie})})}),j},A=x=>{const{item:w,position:_,height:C,width:R,schemaName:k}=x;return{id:w,isParent:!0,data:{label:{item:w,schemaName:k}},position:_,style:{width:R,height:C,background:"rgba(67, 52, 115, 0.55)",boxShadow:"unset",borderRadius:32,padding:0,border:w==="core"?"10px solid #A532FF":0}}},y=(x,w="")=>{var D;let _=Object.keys(x);const C=d((_==null?void 0:_.length)||0,1),R={};let k=!1;_=(D=_==null?void 0:_.filter(B=>(B==="core"&&(k=!0),B!=="core")))==null?void 0:D.sort((B,j)=>{var H,U;return(((H=x[B])==null?void 0:H.content)||0)-(((U=x[j])==null?void 0:U.content)||0)}),k&&_.unshift("core");const P=p(C),N=Math.floor(C/2);for(;(_==null?void 0:_.length)>0;){let B=N,j=N;const H=_.shift()||"";if(!R[H])if(P[B][j]===!0)P[B][j]=H;else{const{row:U=N,column:$=N}=r(P,B,j,C)||{};B=U,j=$,P[B][j]===!0&&(P[B][j]=H)}R[H]={row:B,column:j}}const L=C,I=P,b=[],T=new Array(L).fill(0);let M=0;for(let B=0;B<L;B+=1){let j=M;for(let H=0;H<L;H+=1){const U=I[H][B],$=T[B]+20;let z=0;const Z=M;let K=300;if(U===!1)z+=200;else if(U===!0)z+=300;else{K=x[U].width,z+=x[U].height;const Q={item:U,position:{x:Z,y:$},width:K,height:z,schemaName:w};b.push({...A(Q)})}j<Z+K&&(j=Z+K+100),T[B]=$+z+50}M<j&&(M=j)}return b},S=(x,w,_="",C="",R="")=>{var I;const k={},P={};x==null||x.forEach(b=>{if(b){const{subGroup:T=""}=b;T&&!k[T]?k[T]=[b]:T&&(k[T]=[...k[T],b])}});const N=[];(I=Object.keys(k))==null||I.forEach(b=>{let T=0,M=0;const D=v(k[b],w,_,C,b),B=D==null?void 0:D.map(j=>{const{contentHeight:H,position:U}=j,{x:$=0,y:z=0}=U;U.x+=50,U.y+=160;const Z=z+H+80,K=$+350;return Z>T&&(T=Z),K>M&&(M=K),j});P[b]={height:T+320,width:M+100,content:(B==null?void 0:B.length)||0},N.push(...B)});const L=y(P,R);return N.unshift(...L),N};return self.onmessage=x=>{if(x.data.type==="atomic"){const{tables:w,priorityColumns:_,currentFocusedTable:C,columnName:R}=x.data,k=v(w,_,C,R);self.postMessage({type:"atomic",items:k})}else if(x.data.type==="grouped"){const{tables:w,priorityColumns:_,currentFocusedTable:C,columnName:R,datasetName:k}=x.data,P=S(w,_,C,R,k);self.postMessage({type:"grouped",items:P})}},{colType:e,ErdNodeGenerator:g,nodePositions:m,getSnowflakeERD:S,subGroupSpiralERD:y,ErdParentNodeGenerator:A,getSpiralERD:v,getSpiralERDMatrix:p,getFocusedTablesForSpiralERD:f,getOrderedTablesForSpiralERD:h,getSpiralGridSize:d,getSortedTablesForSpiral:u,getMaxRelationsOfTable:c,getUniqueTableNameArray:l,ErdTableNodes:s,getAllTables:t,getSortedColumns:a,getBestPosition:r,getTableNamesFromRelations:n,getAllTablesFromSchema:o}}const Les=t=>{var e;return(e=Object.keys(t))==null?void 0:e.map(n=>t[n])},Bes=(t,e,n,r)=>{var u;const a={},o={},s={},l={};let c=!1;return t==null||t.forEach(d=>{var A;let h=0;const f=n[d];!a[d]&&f&&(a[d]=f);const{subGroup:p,schema:m}=f,g=[],v=[];(A=r[d])==null||A.forEach(y=>{var S,x;if(y&&!((S=n[y])!=null&&S.isPending)&&((x=n[y])!=null&&x.tableId)){const{subGroup:w,schema:_}=n[y];h>e&&!c?c=!0:(s[y]?s[y]+=1:(s[y]=1,h+=1),p===w&&p&&w||m===_&&m&&_?v.push(y):g.push(y))}}),o[d]={relations:g,sameSubgroupRelations:v}}),(u=Object.keys(o))==null||u.forEach(d=>{let h=0;const{relations:f,sameSubgroupRelations:p}=o[d];p==null||p.sort((m,g)=>s[m]-s[g]),p==null||p.every(m=>h>=e?!1:(m&&a[m]||(l[m]=n[m],h+=1),!0)),!(h>=e)&&(f==null||f.sort((m,g)=>s[m]-s[g]),f==null||f.every(m=>h>=e?!1:(m&&a[m]||(l[m]=n[m],h+=1),!0)))}),{tables:{...a,...l},limitExcited:c}},gbe=(t=0,e=0)=>t===e?0:t>e?.5:-.5,cXn=(t,e,n,r)=>{const a={};return t.forEach(o=>{var l;const s=n[o];!a[o]&&s&&(a[o]=s),(l=r[o])==null||l.forEach(c=>{c&&!a[c]&&n[c]&&(a[c]=n[c])})}),a},Des=(t,e)=>{let n=t==null?void 0:t.filter(r=>{var a;return e==null?void 0:e.includes((a=r==null?void 0:r.schema)==null?void 0:a.toLowerCase())});return n!=null&&n.length||(n=t==null?void 0:t.filter(r=>{var l;const{schemaSubGroups:a={}}=r,o=(l=Object.keys(a))==null?void 0:l.filter(c=>(c==null?void 0:c.toLowerCase())!=="core"&&(c==null?void 0:c.toLowerCase())!=="default");let s=!1;return o==null||o.every(c=>e!=null&&e.includes(c==null?void 0:c.toLowerCase())?(s=!0,!1):!0),s}),n!=null&&n.length)?n:t!=null&&t.length?t:[]},uXn=t=>{const e={};return t==null||t.forEach(({tableId:n,relations:r})=>{e[n]||(e[n]=[]);const a=new Set(e[n]);r==null||r.forEach(({tableId:o})=>{a.add(o),e[o]||(e[o]=[]);const s=new Set(e[o]);s.add(n),e[o]=Array.from(s)}),e[n]=Array.from(a)}),e},$es=(t,e=0,n=0,r=0)=>{let a=e,o=n,s=0;for(;s+e<=r||e-s>=0;){if(s+e<r){if(a=s+e,t[a][o]===!0)return{row:a,column:o};for(let l=0;l<=r;l+=1){if(o=n+l,o<r&&t[a][o]===!0)return{row:a,column:o};if(o=n-l,o>=0&&t[a][o]===!0)return{row:a,column:o}}}if(e-s>=0){if(a=e-s,t[a][o]===!0)return{row:a,column:o};for(let l=0;l<=r;l+=1){if(o=n+l,o<r&&t[a][o]===!0)return{row:a,column:o};if(o=n-l,o>=0&&t[a][o]===!0)return{row:a,column:o}}}s+=1}return{row:e,column:n}},dXn=t=>{const e={};return t==null||t.forEach(n=>{const{tableId:r,relations:a}=n;e[r]||(e[r]=[]);const o=e[r];a==null||a.forEach(s=>{const{tableId:l,sourceColumn:c,targetColumn:u}=s;o!=null&&o.includes(c)||o.push(c),e[l]||(e[l]=[]);const d=e[l];d!=null&&d.includes(u)||d.push(u)})}),e},hXn=(t,e=1)=>{const n=e*e;return Math.ceil(n/2)>t?e:hXn(t,e+2)},Fes=t=>{const e=[];for(let n=0;n<t;n+=1){const r=n%2===0,a=[];for(let o=0;o<t;o+=1){let s=!0;r&&o%2!==0&&(s=!1),!r&&o%2===0&&(s=!1),a.push(s)}e.push(a)}return e},v7e=(t,e)=>{var l;const n=t==null?void 0:t.tables,r=uXn(n),a=DK().getAllTables(n),o=cXn(e,n,a,r);return(l=Object.keys(a))==null?void 0:l.map(c=>({...a[c],hasHeight:!!o[c]}))},jes=({schemas:t,query:e,previousTableNames:n})=>{const r=(e==null?void 0:e.split(/[\s,.;)]+/))||[],a=Des(t,r),o=(e==null?void 0:e.split(/[\s,;)]+/))||[],s=[];a==null||a.forEach(({tables:c=[]})=>{s.push(...c)});const l=[];if(s==null||s.forEach(c=>{var u;c!=null&&c.table&&(c!=null&&c.tableId)&&(o!=null&&o.includes((u=c==null?void 0:c.tableId)==null?void 0:u.toLowerCase()))&&!(l!=null&&l.includes(c.tableId))&&l.push(c.tableId)}),!(l!=null&&l.length)&&!(n!=null&&n.length))return{allCommon:!0};if((l==null?void 0:l.length)===(n==null?void 0:n.length)&&(n==null?void 0:n.length)>0){let c=!0;if(l.every(u=>n.includes(u)?!0:(c=!1,!1)),c)return{allCommon:c}}return{currentSchemaTables:s,schemaSet:a,tableNames:l}},Hes=({previousSchemaTables:t,currentSchemaTables:e,handleLimit:n,tableNames:r,ERDData:a})=>{let o=[];if(n){const d=[];if(t==null||t.forEach(h=>{h!=null&&h.table&&(h!=null&&h.tableId)&&d.push(h.tableId)}),(r==null?void 0:r.length)===(d==null?void 0:d.length)&&(a==null?void 0:a.length)===(d==null?void 0:d.length)&&(d==null?void 0:d.length)>0){let h=!0;if(r.every(f=>d.includes(f)?!0:(h=!1,!1)),h)return{allCommon:h}}}const s=uXn(e),l=DK().getAllTables(e);let c=!1,u={};if(n){const{tables:d,limitExcited:h}=Bes(r,5,l,s);u=d,c=h}else u=cXn(r,e,l,s);return o=Les(u),{tables:o,limited:c}},Ues=(t,e,n="")=>{if(!(t!=null&&t.length))return{result:[],gridSize:0,localSchema:null};let r=null;const a=hXn((t==null?void 0:t.length)||0,1),o=Fes(a),s=[],l=(t==null?void 0:t.length)||0;let c=0,u=0;const d=Math.floor(a/2);for(let h=0;h<l;h+=1){const f=Sdn[h%5],p=t[h],{row:m=d,column:g=d}=$es(o,d,d,a)||{};if(o[m][g]===!0){(p==null?void 0:p.schema)===n&&(r=p),o[m][g]=p.schema;let v=g*3,A=-m*3;const y=-3-a;h===0&&(c=v,u=A),v-=c,A-=u,s.push({key:p.schema,onClick:(S="")=>e(p,S),schema:p,position:[v,A,y],gradient:f,initialPosition:[v,A,y],textPosition:[v,A+.8,y],initialTextPosition:[v,A+5.8,y],isEven:g%2===0,xMover:gbe(d,g),yMover:gbe(d,m)})}}return s!=null&&s.length?{result:s,gridSize:a,localSchema:r}:{result:[],gridSize:0,localSchema:null}},zes=(t,e,n)=>UHo(t,e,n),Ges=(t,e,n)=>HHo(t,e,n),Ves=(t,e,n=0,r=!1)=>{const a=r?3:4,o=3,s=-5;let l=t,c=0,u=n,d=0,h=0;const f=0;for(;l>=e;)u-=1,l-=e;const p=Math.floor(e/2);for(let m=0;m<=l;m+=1)c=m-p;return d=gbe(f,c),h=gbe(f,-u),{position:[(c+.5)*a,u*o,s],isEven:c%2===0,xMover:d,yMover:h}},Kes=(t,e,n="",r=!1)=>{let a=null;const o=4,s=1;return{result:t==null?void 0:t.map((c,u)=>{const{position:d,isEven:h,xMover:f,yMover:p}=Ves(u,o,s,r),[m,g,v]=d,A=Sdn[u%5];return(c==null?void 0:c.schema)===n&&(a=c),{key:c==null?void 0:c.schema,onClick:(y="")=>e(c,y),schema:c,position:d,gradient:A,isEven:h,initialPosition:d,textPosition:[m,g+.8,v],initialTextPosition:[m,g+5.8,v],xMover:f,yMover:p}}),gridSize:o,localSchema:a}},Wes=t=>{const e={},n=[];return t==null||t.forEach(({schema:r})=>{e[r]=1}),zLe==null||zLe.forEach(r=>{const{schema:a}=r;e[a]||n.push(r)}),n},Qes=(t="")=>{if(!t)return!1;const e=Fd(t,{utc:!0}).valueOf();return Date.now()-e<36e5},qes=t=>{var n;let e=!1;return(n=Object.values(t))==null||n.every(r=>!(r!=null&&r.name)||r!=null&&r.encType&&!(r!=null&&r.encOption)?(e=!0,!1):!0),e},Yes=t=>t==null?void 0:t.sort((e,n)=>{var r,a,o,s;return(((a=(r=n==null?void 0:n.schema)==null?void 0:r.tables)==null?void 0:a.length)||0)-(((s=(o=e==null?void 0:e.schema)==null?void 0:o.tables)==null?void 0:s.length)||0)}),Djt=t=>t==null?void 0:t.sort((e,n)=>{const r=e.schema.schema.toUpperCase(),a=n.schema.schema.toUpperCase();return r<a?-1:r>a?1:0}),Jes=(t=[])=>t==null?void 0:t.reduce((e,n)=>{var r,a;return(a=(r=n==null?void 0:n.schema)==null?void 0:r.tables)!=null&&a.length?e.schemasHaveTables.push(n):e.schemasHaveNoTables.push(n),e},{schemasHaveTables:[],schemasHaveNoTables:[]});var ydt={},Zes=As;Object.defineProperty(ydt,"__esModule",{value:!0});var fXn=ydt.default=void 0,Xes=Zes(Ps()),ets=E;fXn=ydt.default=(0,Xes.default)((0,ets.jsx)("path",{d:"M7.41 18.59 8.83 20 12 16.83 15.17 20l1.41-1.41L12 14zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10z"}),"UnfoldLess");var bdt={},tts=As;Object.defineProperty(bdt,"__esModule",{value:!0});var pXn=bdt.default=void 0,nts=tts(Ps()),rts=E;pXn=bdt.default=(0,nts.default)((0,rts.jsx)("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"}),"UnfoldMore");const xdt="/assets/emptyQuery-e1b4860a.png",Edt="/assets/emptyQuery-46e97f26.webp";var Sdt={},its=As;Object.defineProperty(Sdt,"__esModule",{value:!0});var mXn=Sdt.default=void 0,ats=its(Ps()),ots=E;mXn=Sdt.default=(0,ats.default)((0,ots.jsx)("path",{d:"M12 7.77 18.39 18H5.61zM12 4 2 20h20z"}),"ChangeHistory");const sts=({columns:t,name:e,resourceId:n,hasOpacity:r,biscuits:a})=>{var w,_,C;const s=VAa(),[l,c]=Y.useState(!1),[u,d]=Y.useState(!1),[h,f]=Y.useState(!Ft.isEmpty(s[n]||{})),[p,m]=Y.useState({}),g=R=>{if(!R)return;const k={...p};delete k[R],m({...k})},v=({column:R,key:k,value:P})=>{const N=p[R]||{};N.name=R,k==="encType"&&(N.encOption=""),N[k]=P,m({...p,[R]:N})},A=()=>{const R=Object.entries(p).map(([k,P])=>({...P,name:k}));return{resourceId:n,columns:R}},y=R=>{var k;return R!=null&&R.EncType?E.jsx("p",{children:R==null?void 0:R.EncType}):E.jsxs(Ba,{className:"nodrag",value:((k=p[R.name])==null?void 0:k.encType)||"",onChange:P=>{var L;const N=(L=P.target)==null?void 0:L.value;R!=null&&R.name&&v({column:R.name,value:N,key:"encType"})},children:[E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT}),GLe==null?void 0:GLe.map(({label:P,value:N})=>{var L,I;return E.jsx(Dn,{disabled:!((I=$Ct[((L=R==null?void 0:R.dataType)==null?void 0:L.toUpperCase())||""])!=null&&I[(N==null?void 0:N.toUpperCase())||""]),value:N,children:P})})]})},S=R=>{var k,P,N,L,I;return R!=null&&R.EncOption?E.jsx("p",{children:R==null?void 0:R.EncOption}):E.jsxs("div",{className:"columnWithResetBtn",children:[E.jsxs(Ba,{value:((k=p[R.name])==null?void 0:k.encOption)||"",disabled:!((P=p[R.name])!=null&&P.encType),onChange:b=>{var M;const T=(M=b.target)==null?void 0:M.value;R.name&&v({column:R.name,value:T,key:"encOption"})},children:[E.jsx(Dn,{value:"",className:"selectPlaceholder",children:q.SELECT}),(L=Sha[(N=p[R.name])==null?void 0:N.encType])==null?void 0:L.map(b=>{var T,M,D,B,j;return E.jsx(Dn,{disabled:!((j=(B=$Ct[((T=R==null?void 0:R.dataType)==null?void 0:T.toUpperCase())||""])==null?void 0:B[(D=(M=p[R.name])==null?void 0:M.encType)==null?void 0:D.toUpperCase()])!=null&&j[(b==null?void 0:b.toUpperCase())||""]),value:b,children:b})})]}),((I=p[R==null?void 0:R.name])==null?void 0:I.encType)&&E.jsx(_n,{tooltip:"Reset",onClick:()=>g(R==null?void 0:R.name),children:E.jsx(_v,{})})]})},x=(R=0)=>R?R>5?60*5:60*R:300;return E.jsxs(YZo,{hasOpacity:r,children:[E.jsx("div",{className:"arrowLeftIcon",children:E.jsx(aze,{})}),E.jsxs("div",{className:"titleRow",children:[!h&&E.jsx("span",{children:q.CONFIGURE_SECURITY_AND_ENCRYPTION}),E.jsxs("div",{className:"actionButton",children:[!h&&E.jsx(_n,{onClick:()=>c(R=>!R),className:l?"active":"",children:E.jsx(cg,{})}),E.jsx(_n,{onClick:()=>Gne(""),className:"closeIcon",children:E.jsx(ioe,{})})]})]}),E.jsx(jo,{in:!l&&!h,timeout:"auto",unmountOnExit:!0,children:E.jsxs("div",{className:"tableView",children:[E.jsxs("div",{className:"tableTitleRow",children:[E.jsx("span",{children:e}),E.jsx("div",{className:"actionButton",children:E.jsx(_n,{onClick:()=>d(R=>!R),className:u?"":"expanded",children:E.jsx(J6,{})})})]}),E.jsxs(jo,{in:!u,timeout:"auto",unmountOnExit:!0,children:[E.jsx(tf,{data:t,columns:[{label:"Column Name",dataKey:"name",width:190},{label:"Encryption Type",dataKey:"encType",width:163},{label:"Encryption Option",dataKey:"encOption",width:163}],rowRender:[{dataKey:"encType",func:y},{dataKey:"encOption",func:S}],isAction:!1,loading:!1,rowSize:60,bodyHeight:x(t==null?void 0:t.length)}),E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>f(!0),disabled:Ft.isEmpty(p)||qes(p),children:q.SUBMIT})]})]})}),E.jsx(jo,{in:l&&!h,timeout:"auto",unmountOnExit:!0,children:E.jsxs("div",{className:"infoText",children:[E.jsx("p",{children:"Configuring encryption on your table(s) is also a straightforward process, but there are a few precursors to be aware of, including:"}),E.jsx("div",{children:"The table(s) must already exist (i.e., you must create the table in one request and encrypt it in another request) Applying encryption will ALTER the table, so you must be authorized with ALTER permission on the table you're configuring You cannot encrypt an an already-encrypted table You cannot change encryption configuration, so make sure you double check the request before you send it Any pre-existing data will not automatically be encrypted - make sure to configure encryption before adding any sensitive data to your table"}),E.jsx("p",{children:"Join operations on encrypted tables currently have a few limitations, which will be removed over time. Currently:"}),E.jsx("div",{children:"Both tables must be in the same schema"}),E.jsx("p",{children:"Both tables must encrypted at the same time (i.e., in the same Configure API request) The column(s) on which you want to join must have the same encryption type and encryption option."}),E.jsx("a",{href:JYt.ENCRYPTION_GUIDE,target:"_blank",rel:"noreferrer",children:E.jsxs(Jt,{variant:"contained",color:"secondary",size:"small",children:[q.OPEN_DOCS,E.jsx("span",{className:"iconRight",children:E.jsx(oN,{})})]})})]})}),E.jsx(jo,{in:h,timeout:"auto",unmountOnExit:!0,children:E.jsx("div",{className:"confirmRequestPanel",children:(w=s[n])!=null&&w.encrypted?E.jsxs(E.Fragment,{children:[E.jsx("img",{className:"logo",src:sdt,alt:"success"}),E.jsx("div",{className:"title",children:q.TABLE_ENCRYPTED_SUCCESS}),E.jsx("div",{className:"action",children:E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>{f(!1),YAa(n)},children:q.OK})})]}):E.jsxs(E.Fragment,{children:[E.jsx("img",{className:"logo",src:lat,alt:"logo"}),E.jsx("div",{className:"title",children:q.CONFIRM_ENCRYPTION_REQUEST}),E.jsx("p",{children:q.CONFIRM_ENCRYPTION_REQUEST_INFO}),E.jsxs("div",{className:"action",children:[E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>{qAa(A(),a)},disabled:(_=s[n])==null?void 0:_.isEncrypting,children:(C=s[n])!=null&&C.isEncrypting?E.jsx("img",{src:ws,alt:"loading",height:36}):q.YES}),E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>{f(!1)},children:q.NO})]})]})})})]})},wdt="/assets/BNB-LOGO-418a5027.svg",_dt="/assets/AVAX-LOGO-a3ded9c0.svg",Tdt="/assets/POLYGON-LOGO-d6c0dfd4.svg",eie="/assets/ETHERIUM-LOGO-9717d057.svg",Cdt="/assets/SUI-LOGO-f4550ecb.svg",kz="/assets/DB-acdc9545.svg",kdt="/assets/aptos-97620128.svg",Rdt="/assets/Base-35fb5786.svg",sM="/assets/ethTest-99b1d2ec.svg",Mdt="/assets/polygonTest-fb326bee.svg",Ndt="/assets/suiTest-f62c396b.svg",lts={AVALANCHE_C:_dt,BNB:wdt,POLYGON:Tdt,ETHEREUM:eie,SUI:Cdt,BASE:Rdt,GOERLI:sM,MUMBAI:Mdt,"SUI (testnet)":Ndt,SEPOLIA:sM,HOLESKY:sM,SEI:qCe,BITCOIN:QCe,APTOS:kdt},Kqe=t=>{const{nodesObject:e,theme:n,isSearched:r=!1,isQueryERD:a=!1}=t,{relations:o,columnName:s="",isPending:l=!0,key:c,tamperpoof:u=!1,lastAnchored:d="",size:h,items:f,encrypted:p=!0,immutable:m,isBlockchain:g=!1}=e||{},v=ho(),A=Ydn(),y=xga(e==null?void 0:e.key),S=Ega(e==null?void 0:e.key),x=Y.useMemo(()=>Qes(d),[d]),w=bga(),_=Y.useMemo(()=>A&&A!==(e==null?void 0:e.key)||r&&!(e!=null&&e.hasHeight)?!1:!y,[y,r,e==null?void 0:e.hasHeight,A]),C=Y.useMemo(()=>A&&(e==null?void 0:e.key)!==A?!1:S,[S,A,e]),R=Y.useMemo(()=>g?[]:v?JAa({resourceId:(e==null?void 0:e.key)||""}):[],[v]),k=s?f==null?void 0:f.filter(M=>(M==null?void 0:M.name)!==s):f,N=[...s?f==null?void 0:f.filter(M=>(M==null?void 0:M.name)===s):[],...k||[]],L=f==null?void 0:f.reduce((M,D)=>M+(D.encrypted?1:0),0),I=()=>{if(!g){if(!v){co(!0);return}R!=null&&R.length&&Gne(c)}},b=()=>v?R!=null&&R.length?"":q.INSUFFICIENT_ENCRYPTION_PERMISSIONS(c):"",T=()=>u?q.TAMPERPROOF:m?q.IMMUTABLE:q.STANDARD;return E.jsxs("div",{style:{zIndex:A===c?99:0},children:[a&&E.jsxs(WZo,{theme:n,gradiantClass:e==null?void 0:e.parentSchema,hasOpacity:C,children:[E.jsx("img",{src:lts[(e==null?void 0:e.parentSchema)||""]||kz,alt:kz}),E.jsx(Pn,{label:(e==null?void 0:e.schema)||(e==null?void 0:e.parentSchema),children:E.jsx("span",{children:(e==null?void 0:e.schema)||(e==null?void 0:e.parentSchema)})})]}),E.jsxs(tXn,{theme:n,className:l?"pendingTable":"",hasOpacity:C,children:[E.jsxs("div",{className:"title",children:[E.jsx(Pn,{label:e==null?void 0:e.name,children:E.jsx("span",{className:"tableName",children:e==null?void 0:e.name})}),E.jsxs("span",{className:"tableCount",children:[`${(o==null?void 0:o.length)||0}`," ",(o==null?void 0:o.length)<=1?q.TABLE:q.TABLES]})]}),E.jsx("div",{className:"actionButton",children:E.jsxs(dG,{"aria-label":"expand row",size:"small",onClick:()=>K0a(e==null?void 0:e.key),sx:{marginLeft:"auto"},children:[r&&e.hasHeight&&(y?E.jsx(J6,{}):E.jsx(Xre,{})),!r&&(y?E.jsx(J6,{}):E.jsx(Xre,{}))]})})]}),E.jsxs(nXn,{theme:n,hasOpacity:C,children:[x&&E.jsx("div",{className:"ribbon",children:E.jsx("span",{children:q.NEW})}),E.jsx(jYt,{component:"div",className:`${l?"pendingTable":""}`,children:E.jsxs(Mte,{"aria-label":"simple table",component:"div",children:[E.jsx(dEe,{component:"div",children:E.jsx(Mx,{component:"div",children:E.jsx(mv,{component:"div",children:E.jsxs("div",{className:"cellHead",children:[E.jsxs("div",{className:"name",children:[E.jsx(hdt,{}),q.NAME]}),E.jsx("div",{className:"type",children:q.TYPE})]})})})}),E.jsx(jo,{in:_,timeout:"auto",unmountOnExit:!0,children:E.jsx(uEe,{component:"div",children:N==null?void 0:N.map(M=>{var D;return E.jsx(Mx,{component:"div",sx:{"&:last-child td, &:last-child th":{border:0}},children:E.jsx(mv,{component:"div",className:s===(M==null?void 0:M.name)||w[M==null?void 0:M.columnId]?"active":"inActive",id:M==null?void 0:M.columnId,children:E.jsxs("div",{className:"cellBody",children:[E.jsxs("div",{className:"name",children:[(M==null?void 0:M.isPrimaryKey)===!0?E.jsx(Adt,{}):null,(M==null?void 0:M.isPrimaryKey)===!1?E.jsx(mXn,{}):null,E.jsx(Pn,{label:M==null?void 0:M.name,children:E.jsx("span",{children:M==null?void 0:M.name})})]}),E.jsxs("div",{className:"type",children:[(D=M==null?void 0:M.dataType)==null?void 0:D.toUpperCase(),(M==null?void 0:M.encrypted)&&E.jsx(wEt,{})]})]})})},M.name)})})})]})})]}),E.jsxs(qZo,{hasOpacity:C,isDisabled:p,children:[E.jsx(Pn,{label:b(),children:E.jsx("div",{className:"encryptedCols",role:"presentation",onClick:I,children:p?E.jsxs(E.Fragment,{children:[E.jsx(wEt,{}),L," ",q.COLS_ENCRYPTED]}):q.ENCRYPT_COLUMN})}),E.jsxs("div",{className:"tamperpoofTag",children:[T()," | ",h]})]}),A===c&&E.jsx(sts,{columns:N,name:(e==null?void 0:e.name)||"",resourceId:(e==null?void 0:e.key)||"",hasOpacity:C,biscuits:R})]})},cts=t=>{const{item:e=""}=t;return E.jsx(QZo,{children:E.jsx("h2",{className:"erdTitle",children:e})})},uts=(t,e)=>{const n=t==null?void 0:t.split("-");return(n==null?void 0:n.length)===3?{markerStart:e?n[2]:n[0],markerEnd:e?n[0]:n[2]}:null},dts=(t,e,n,r,a,o,s)=>{var d,h,f,p,m,g;const l={...s};let c=-1,u=-1;return((d=l[n])==null?void 0:d.source)>=0?(c=(h=l[n])==null?void 0:h.source,l[n].source=c+1):(((f=l[n])==null?void 0:f.target)>=0?l[n].source=1:l[n]={source:1,target:0},c=0),((p=l[r])==null?void 0:p.target)>=0?(u=(m=l[r])==null?void 0:m.target,l[r].target=u+1):(((g=l[r])==null?void 0:g.source)>=0?l[r].target=1:l[r]={source:0,target:1},u=0),{edgeData:{source:n,target:r,sourceHandle:`s-${n}-${c}-t`,targetHandle:`t-${r}-${u}-b`,...uts(a||"one-to-one",!1)},EdgeObject:l}},gXn=(t,e,n)=>t?t===e||t===n?1:.5:1,hts=(t,e,n)=>{const r=t===e||t===n;return{animate:r,strokeWidth:r?3:.5}},fts=(t,e,n,r)=>{const a=[],o=DK().getAllTablesFromSchema(e);let s={};const l={};t.forEach(u=>{const{id:d}=u;d&&!l[d]&&(l[d]=u)});const c={};return t==null||t.forEach(({id:u})=>{var h;const d=o[u];(h=d==null?void 0:d.relations)==null||h.forEach(f=>{var y,S;const{tableId:p,cardinality:m}=f;if((y=c[u])!=null&&y.includes(p)||(S=c[p])!=null&&S.includes(u))return;c[u]||(c[u]=[]),c[u]=[...c[u],p];const{edgeData:g,EdgeObject:v}=dts(l[u],l[p],u,p,m,n,s);s=v;const A=hts(r,u,p);a.push({id:`e-${u}-${p}`,type:n===Mf.grouped?"smoothstep":"floating",animated:A.animate,...g,style:{stroke:qt.custom.white.A1,strokeWidth:A.strokeWidth,opacity:gXn(r,p,u)}})})}),a},$jt=(t,e)=>{const{width:n,height:r,position:a}=t,o=e.position;if(n&&r){const s=n/2,l=r/2,c=a.x+s,u=a.y+l,d=o.x+s,h=o.y+l,f=(d-c)/(2*s)-(h-u)/(2*l),p=(d-c)/(2*s)+(h-u)/(2*l),m=1/(Math.abs(f)+Math.abs(p)),g=m*f,v=m*p,A=s*(g+v)+c,y=l*(-g+v)+u;return{x:A,y}}return{x:0,y:0}},Fjt=(t,e)=>{const n={...t.position,...t},r=Math.round(n.position.x),a=Math.round(n.position.y),o=Math.round(e.x),s=Math.round(e.y);return o<=r+1?Ni.Left:n&&n.width&&o>=r+n.width-1?Ni.Right:s<=a+1?Ni.Top:n&&n.height&&s>=n.position.y+n.height-1?Ni.Bottom:Ni.Top},vXn=(t,e)=>{const n=$jt(t,e),r=$jt(e,t),a=Fjt(t,n),o=Fjt(e,r);return{sx:n.x,sy:n.y,tx:r.x,ty:r.y,sourcePos:a,targetPos:o}},pts=({targetX:t,targetY:e,sourcePosition:n,targetPosition:r,sourceNode:a})=>{if(!a)return null;const o={id:"connection-target",width:1,height:1,position:{x:t,y:e}},{sx:s,sy:l}=vXn(a,o),c=put({sourceX:s,sourceY:l,sourcePosition:n,targetPosition:r,targetX:t,targetY:e});return E.jsxs("g",{children:[E.jsx("path",{fill:"none",stroke:"#222",strokeWidth:1.5,className:"animated",d:c}),E.jsx("circle",{cx:t,cy:e,fill:"#fff",r:3,stroke:"#222",strokeWidth:1.5})]})},mts=({id:t,source:e,target:n,markerStart:r,markerEnd:a,style:o})=>{const s=pu(Y.useCallback(g=>g.nodeInternals.get(e),[e])),l=pu(Y.useCallback(g=>g.nodeInternals.get(n),[n]));if(!s||!l)return null;const{sx:c,sy:u,tx:d,ty:h,sourcePos:f,targetPos:p}=vXn(s,l),m=Xye({sourceX:c,sourceY:u,sourcePosition:f,targetPosition:p,targetX:d,targetY:h});return E.jsx("g",{className:"react-flow__connection",children:E.jsx("path",{id:t,className:"react-flow__edge-path",d:m,markerEnd:a,markerStart:r,style:o})})},gts=gt.button`
  && {
    background: transparent;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    font-family: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.typography)==null?void 0:n.fontFamily}};
    border: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    -webkit-animation: textAnimate 1.5s infinite;
    animation: textAnimate 1.5s infinite;
  }

  && svg {
    font-size: 18px;
    margin-right: 8px;
  }

  @-webkit-keyframes textAnimate {
    0% {
      opacity: 0.8;
    }
    50% {
      text-shadow: 0px 0px 12px ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
      opacity: 1;
    }
  }
  @keyframes textAnimate {
    0% {
      opacity: 0.8;
    }
    50% {
      text-shadow: 0px 0px 12px ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
      opacity: 1;
    }
  }
`,vts=({onClick:t})=>E.jsxs(gts,{onClick:t,type:"button",children:[E.jsx(cct,{fontSize:"small"}),Eha.show_schemas]}),Bvs=gt.div`
  padding-top: 56px;
  height: ${t=>t!=null&&t.pageHeight?`${t==null?void 0:t.pageHeight}px`:"100vh"};
  width: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
  .erdView {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .tableApprovalInfo {
    position: absolute;
    top: 64px;
    left: 50%;
    width: 45%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 99;
    .helpText {
      margin-top: 0;
      background: rgba(33, 33, 33, 0.5);
      backdrop-filter: blur(8.8152px);
      text-align: left;
      .infoIcon {
        color: ${t=>t.theme.custom.greenLight};
      }
      &:before,
      &:after {
        background: ${t=>t.theme.custom.greenLight};
      }
    }
  }
`,Ats=gt.div`
  position: absolute;
  right: 12px;
  top: 24px;
  z-index: 99;
`,yts=gt.div`
  flex: 1;
  transition: all 0.3s linear;
  height: 100%;
  .erdContent {
    position: relative;
    height: 100%;
    width: 100%;
    .react-flow {
      .react-flow__node {
        overflow: visible;
      }
    }
  }
  .react-flow__minimap {
    background: ${t=>t.theme.custom.erd.miniMap.background};
    border-radius: 4px;
    &.miniMap {
      border: 0;
      .react-flow__minimap-mask {
        opacity: 0;
      }
    }
  }
  .erdSymbols {
    position: absolute;
    right: 0px;
    bottom: 0px;
    opacity: 0;
  }
`,bts=gt.div`
  position: absolute;
  right: 12px;
  top: 55px;
  width: 27px;
  z-index: 99;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
  button {
    width: 100%;
    border-radius: 0 !important;
    height: 26px !important;
    padding: 0 !important;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}} !important;
    background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.erdTable)==null?void 0:r.titleBg}} !important;
    &:first-child {
      background: #2c2347 !important;
    }
  }
  button svg {
    height: 14px;
    width: 14px;
    path {
      stroke: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      fill: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    }
  }
  button:hover {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}} !important;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}} !important;
  }
  button.active {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}} !important;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}} !important;
  }
`;gt.div`
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
`;const xts=gt.div`
  position: relative;
  flex: 1 1 0%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  .datasetInfoBlock {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 99999998;
    .infoBtn {
      padding: 6px 8px;
      svg {
        max-width: 20px;
      }
    }
    .infoContent {
      position: relative;
      background: ${t=>t.theme.custom.boxBg};
      border-radius: 8px;
      border: 0.5px solid #675b8c;
      box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
      padding: 12px 12px 4px;
      max-width: 230px;
      margin-top: 10px;
      cursor: default;
      &:after {
        content: '';
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid rgba(97, 97, 97, 0.92);
        position: absolute;
        top: -6px;
        left: 12px;
      }
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      .closeBtn {
        height: 24px;
        width: 24px;
        background: ${t=>t.theme.custom.boxBg};
        position: absolute;
        top: -12px;
        right: -12px;
        border-radius: 50%;
        border: 0;
        &:hover {
          background: ${t=>t.theme.custom.boxBg};
        }
      }
      p {
        margin-bottom: 8px;
      }
      a {
        color: ${t=>t.theme.custom.blueActive};
        &:hover {
          text-decoration: underline;
          color: ${t=>t.theme.custom.white.A11};
        }
      }
    }
  }
`,Ets=gt.h3`
  && {
    text-align: center;
    position: absolute;
    left: 0;
    top: 30px;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
    margin-bottom: 0;
    padding: 0 40px 0 12px;
    z-index: 99;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    &.isOtherDatasets {
      left: 175px;
      width: calc(100% - 175px);
    }
    img {
      max-width: 30px;
      height: 30px;
      margin-right: 5px;
      margin-top: -4px;
    }
    span {
      font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.bd}};
      margin-right: 8px;
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      top: 55px;
      width: ${t=>t.otherDatasetsPanel?"calc(100% - 130px)":"100%"};
      z-index: 8;
      transform: unset;
      left: unset;
      right: 0;
      padding: 0 10px;
      overflow: hidden;
      text-overflow: ellipsis;
      img {
        margin-top: 0;
      }
    }
  }
`,Sts=gt.div`
  && {
    text-align: center;
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 99;
    ${t=>t.theme.breakpoints.down("md")} {
      right: 12px;
      .MuiButton-root {
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
        padding: 5px 8px;
        height: 30px;
      }
    }
  }
`,wts=gt.div`
  && {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 99;
    .showOtherBtn {
      margin-bottom: 8px;
    }
    .helpText {
      text-transform: uppercase;
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
      font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.md}};
      letter-spacing: 3px;
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
      -webkit-animation: textAnimate 1.5s infinite;
      animation: textAnimate 1.5s infinite, typing 5s steps(30, end);
      display: block;
      overflow: hidden;
      white-space: nowrap;
      user-select: none;
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      display: none;
    }
  }

  @-webkit-keyframes textAnimate {
    0% {
      opacity: 0.8;
    }
    50% {
      text-shadow: 0px 0px 12px ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
      opacity: 1;
    }
  }
  @keyframes textAnimate {
    0% {
      opacity: 0.8;
    }
    50% {
      text-shadow: 0px 0px 12px ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
      opacity: 1;
    }
  }

  @-webkit-keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
`,_ts=gt.div`
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 26px;
  z-index: 99999998;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
  border-radius: 8px;
  overflow: hidden;
  button {
    width: 100%;
    border-radius: 0;
    height: 26px;
    padding: 0;
    border: 0;
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
    background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.erdTable)==null?void 0:r.titleBg}};
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  button svg {
    height: 14px;
    width: 14px;
  }
  button:hover {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
  }
`,Tts=gt.div`
  position: absolute;
  right: 90px;
  bottom: 12px;
  z-index: 99999998;
  text-align: center;
  button {
    border-radius: 0;
    height: 26px;
    width: 26px;
    padding: 0;
    border-style: solid;
    border-color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
    background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.erdTable)==null?void 0:r.titleBg}};
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  button svg {
    height: 14px;
    width: 14px;
  }
  button:hover {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
  }
  .topRow {
    button {
      border-width: 1px 1px 0 1px;
      border-radius: 8px 8px 0 0;
    }
  }
  .MiddleRow {
    display: flex;
    button {
      &:first-child {
        border-width: 1px 0 1px 1px;
        border-radius: 8px 0 0 8px;
      }
      &:nth-child(2) {
        border-width: 1px;
      }
      &:last-child {
        border-width: 1px 1px 1px 0;
        border-radius: 0 8px 8px 0;
      }
    }
  }
  .bottomRow {
    button {
      border-width: 0 1px 1px 1px;
      border-radius: 0 0 8px 8px;
    }
  }
`,Cts=gt.div`
  position: absolute;
  top: 16px;
  left: ${t=>t.otherDatasetsPanel?"185px":"12px"};
  z-index: 99;
  transition: all 0.2s ease;
  .autoCompleteSearch {
    &.expanded {
      width: 250px !important;
    }
  }
  > ul {
    max-height: 385px;
  }
  .insidePipelineView {
    margin-top: 30px;
    margin-left: 20px;
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    top: 12px;
    left: ${t=>t.otherDatasetsPanel?"140px":"12px"};
    .autoCompleteSearch {
      &.expanded {
        width: 200px !important;
      }
    }
  }
`,kts=gt.div`
  position: absolute;
  top: 60px;
  left: 12px;
  z-index: 9;
  display: flex;
  align-items: flex-start;
  .GroupHeading {
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    font-size: ${t=>t.theme.custom.fontSize.font12};
    line-height: 18px;
    color: ${t=>t.theme.custom.white.A1};
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    span {
      margin-left: 6px;
      line-height: 1;
      cursor: pointer;
    }
  }
  .collpaseBtn {
    background: ${t=>t.collapseInfoPanel?t.theme.custom.tableBg:t.theme.custom.primaryBg};
    border-radius: ${t=>t.collapseInfoPanel?"0 6px 6px 0":"4px"};
    transition: all 0.2s;
    border: ${t=>t.collapseInfoPanel?"0.5px solid #675b8c":0};
    border-left: 0;
    &:hover {
      background: ${t=>t.collapseInfoPanel?t.theme.custom.tableBg:t.theme.custom.primaryBg};
    }
    svg {
      height: 22px;
      width: 22px;
    }
  }
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nameSpaceList {
    width: ${t=>t.collapseInfoPanel?"275px":0};
    height: 100%;
    transition: width 0.2s ease;
    background: ${t=>t.theme.custom.tableBg};
    box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: ${t=>t.collapseInfoPanel?"14px 10px":0};
    max-height: 375px;
    overflow: hidden;
    overflow-y: auto;
    border-top-right-radius: 0;
    border: ${t=>t.collapseInfoPanel?"0.5px solid #675b8c":0};
    > li {
      opacity: ${t=>!t.collapseInfoPanel&&0};
      &:not(:last-child) {
        padding-bottom: 15px;
        border-bottom: 0.5px solid #675b8c;
      }
    }
  }
  li:not(.subGroup) {
    display: flex;
    align-items: center;
  }
  li {
    &:not(:last-child) {
      margin-bottom: 15px;
    }
    ul {
      margin-top: 16px;
    }
    .subGroupHead {
      font-size: ${t=>t.theme.custom.fontSize.font14};
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      color: ${t=>t.theme.custom.white.A11};
      text-transform: capitalize;
      display: flex;
      align-items: center;
      justify-content: space-between;
      button {
        background: ${t=>t.theme.custom.secondaryBg};
        border: 0;
        height: 24px;
        width: 24px;
        transition: 0.5s ease;
        svg {
          max-width: 12px;
        }
        &.collapsed {
          svg {
            transform: rotate(180deg);
          }
        }
      }
    }
    &.checkedLi {
      .customCheckbox {
        background: ${t=>t.theme.custom.primaryBg};
        border-radius: 4px;
        border: 1px solid ${t=>t.theme.custom.primaryBg};
        box-shadow: 0px 4px 30px rgba(61, 138, 252, 0.25),
          inset -1px -1px 2px rgba(13, 13, 13, 0.18);
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .nameSpaceList {
      width: ${t=>t.collapseInfoPanel?"180px":0};
      max-height: 300px;
    }
  }
`,jjt=gt.div`
  .tableName {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A1}};
    text-shadow: rgb(255 255 255 / 40%) 0px 1px 3px;
    white-space: nowrap;
    display: flex;
    span {
      display: inline-block;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    em {
      text-transform: lowercase;
    }
  }
  .textMuted {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
`,AXn=gt.div`
  && {
    color: ${t=>t.theme.custom.white.A1};
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: linear-gradient(
      99.09deg,
      rgba(152, 154, 205, 0.18) 0%,
      rgba(215, 204, 255, 0.18) 98.8%
    );
    border-radius: 2px;
    &.disabled {
      opacity: 0.7;
    }
  }
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    &:disabled {
      cursor: not-allowed;
    }
  }
  .checkIcon {
    opacity: 0;
    width: 14px;
    height: 100%;
  }
  input:checked ~ .checkIcon {
    opacity: 1;
  }
`,yXn=gt.label`
  margin-left: 10px;
  font-weight: ${t=>t.theme.custom.fontWeight.md};
  font-size: ${t=>t.theme.custom.fontSize.font12};
  line-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #e1e4ea;
  margin-bottom: 0;
  display: inline-block;
  align-items: center;
  cursor: pointer;
  &.disabled {
    cursor: not-allowed;
  }
  img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }
`;gt.div`
  position: absolute;
  top: 16px;
  left: 12px;
  z-index: 99;
  .toggleViewMode {
    border: 1px solid ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.greyText)==null?void 0:r.A11}};
    border-radius: 8px;
    .toggleButton {
      &.MuiButton-containedSecondary,
      &.MuiButton-containedPrimary {
        border: 0;
      }
      &.MuiButton-containedPrimary:hover {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
      }
    }
    .toggleButton.MuiButton-containedSecondary {
      background: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.erdTable)==null?void 0:r.titleBg}};
      border: 0;
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    top: 12px;
    .toggleViewMode {
      .toggleButton {
        height: 30px;
      }
    }
  }
`;const Rts=gt.div`
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 99999998;
  background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.loadData.panelBg}};
  background: -webkit-${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.loadData.panelBg}};
  backdrop-filter: blur(40px);
  padding: 15px 0;
  border-radius: 0px 0px 0px 10px;
  width: ${t=>t.collapseDataPanel?"230px":0};
  cursor: default;
  display: flex;
  flex-direction: column;
  max-height: 405px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-right: 0;
  transition: 0.5s ease;
  .collapseBtn {
    position: absolute;
    top: 0;
    left: -41px;
    button {
      height: 40px;
      width: 40px;
      background: ${t=>{var e,n,r,a;return t.collapseDataPanel?(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.loadData.panelBg:(a=(r=t.theme)==null?void 0:r.custom)==null?void 0:a.primaryBg}};
      color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      backdrop-filter: blur(40px);
      border-radius: 6px 0px 0px 6px;
      border: 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border: 1px solid rgb(255 255 255 / 30%);
      border-right: 0;
      &:hover {
        background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
      }
    }
  }
  .panelTitle {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-size: ${t=>t.theme.custom.fontSize.font16};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
    padding-left: 20px;
    &:after {
      content: '';
      position: absolute;
      left: 20px;
      bottom: 0;
      height: 2px;
      width: 40px;
      background: rgb(230 230 230 / 30%);
    }
  }
  .panelBody {
    flex: 1;
    overflow: auto;
    margin-top: 20px;
    padding-left: 20px;
    ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
  }
`,Mts=gt.li`
  background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.loadData.listBg}};
  padding: 14px 16px;
  border: 0.502041px solid #675b8c;
  backdrop-filter: blur(50px);
  border-radius: 10px 0px 0px 10px;
  cursor: pointer;
  .listTitle {
    color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
    font-size: ${t=>t.theme.custom.fontSize.font14};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .desc {
    font-size: ${t=>t.theme.custom.fontSize.font12};
    color: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.loadData.descText}};
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  &:hover {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.loadData.listBgActive}};
    backdrop-filter: blur(5.02041px);
  }
  &:not(:first-child) {
    margin-top: 15px;
  }
`;gt.div`
  width: 150px;
  height: 149px;
  margin: 22px;
  background: lightblue;
`;const Nts=gt.div`
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  .yourDatasetList {
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.boxBg}};
    width: ${t=>t.otherDatasetsPanel?"175px":0};
    transition: all 0.2s ease;
    position: relative;
    height: 100%;
    z-index: 9;
    .listContent {
      position: relative;
      height: 100%;
      .searchField {
        position: absolute;
        top: 8px;
        left: 8px;
        width: calc(100% - 16px);
        z-index: 9;
        .MuiInputBase-root {
          background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.secondaryBg}};
        }
      }
      .otherDatasetView {
        padding-top: 45px;
        &.emptyPane {
          .Resizer {
            display: none;
          }
        }
        .Pane {
          overflow: hidden;
        }
      }
      .otherDatasetBlock {
        position: relative;
        padding: 15px 0 0 10px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        width: 100%;
        height: 100%;
        .blockTitle {
          color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
          font-size: ${t=>t.theme.custom.fontSize.font12};
          font-weight: ${t=>t.theme.custom.fontWeight.md};
          margin-bottom: 10px;
        }
        .datasetListing {
          overflow: auto;
          padding-right: 10px;
          padding-bottom: 30px;
          flex: 1;
        }
      }
    }
    .toggleBtn {
      background: linear-gradient(
          0deg,
          rgba(36, 26, 55, 0.15),
          rgba(36, 26, 55, 0.15)
        ),
        linear-gradient(
          19.29deg,
          rgba(255, 255, 255, 0.12) 36.8%,
          rgba(255, 255, 255, 0) 104.45%
        );
      backdrop-filter: blur(50px);
      border-radius: 0px 10px 10px 0px;
      width: 22px;
      height: 40px;
      border: 0;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      padding: 0;
      left: ${t=>!t.otherDatasetsPanel&&0};
      right: ${t=>t.otherDatasetsPanel&&"-22px"};
      display: flex;
      align-items: center;
      justify-content: center;
      svg {
        max-width: 18px;
        transform: ${t=>t.otherDatasetsPanel?"rotate(180deg)":"none"};
      }
    }
  }
  .emptyDatasetView {
    flex: 1;
    padding: 80px 20px 20px;
    display: flex;
    align-items: center;
    .contentInner {
      padding: 24px;
      background: ${t=>t.theme.custom.boxBg};
      box-shadow: 0px 10px 30px rgba(15, 24, 42, 0.51);
      border-radius: 8px;
      max-width: 620px;
      margin: 0 auto;
      border-radius: 8px;
      text-align: center;
      h2 {
        color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
      }
      button {
        margin-top: 16px;
      }
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    .yourDatasetList {
      width: ${t=>t.otherDatasetsPanel?"130px":0};
    }
  }
`,Its=gt.div`
  width: 140px;
  height: 140px;
  perspective: 1200px;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  opacity: 0.5;
  &.addNewSchema {
    .outerCube {
      .face {
        border: 0;
        background: linear-gradient(
          rgb(153 153 153 / 45%),
          rgb(153 153 153 / 15%)
        );
      }
    }
    .innerCube {
      .face {
        background: linear-gradient(
          rgb(153 153 153 / 70%),
          rgb(153 153 153 / 15%)
        );
      }
    }
    &.disabled {
      &:hover {
        opacity: 1;
      }
    }
  }
  &.disabled {
    &:hover {
      opacity: 0.5;
      .outerCube {
        .face {
          border-color: transparent;
        }
      }
    }
  }
  &:hover,
  &.active {
    opacity: 1;
    .outerCube {
      .face {
        border-color: rgb(74 143 255);
      }
    }
  }
  &:not(:first-child) {
    margin-top: 35px;
  }
  .outerCube,
  .innerCube {
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    transform: rotateX(-6deg) rotateY(0);
    .face {
      position: absolute;
      width: 100%;
      height: 100%;
      &.top {
        transform: rotateX(90deg) translateZ(70px);
      }
      &.front {
        transform: rotateX(0deg) translateZ(70px);
        .faceContent {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          height: 100%;
          width: 100%;
          padding: 5px;
          > div {
            font-weight: 400;
            color: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.white)==null?void 0:r.A11}};
            border-radius: 4px;
            font-size: 10px;
          }
          .tableCount {
            padding: 1px 4px;
            background: none;
            border: 1px solid rgba(191, 191, 191, 0.75);
            span {
              display: inline-flex;
              align-items: center;
              justify-content: center;
              width: 12px;
              border-radius: 4px;
              margin-right: 4px;
              svg {
                height: 8px;
                width: 8px;
              }
            }
          }
          .logoIcon {
            max-width: 32%;
            margin: 20px auto 0;
            &.emptySchemaLogo {
              max-width: 50px;
            }
          }
          .dbName {
            font-size: 12px;
            padding: 3px 0 0;
            margin: 0 auto;
            margin-top: auto;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
      }
    }
  }
  .outerCube {
    .face {
      background: linear-gradient(rgb(74 143 255 / 45%), rgb(74 143 255 / 15%));
      border: 0.5px solid transparent;
    }
  }
  .innerCube {
    position: absolute;
    transform: rotateX(-6deg) rotateY(0) scale(0.65);
    top: 0;
    left: 0;
    z-index: -1;
    .face {
      background: linear-gradient(rgb(74 143 255 / 70%), rgb(74 143 255 / 15%));
    }
  }
  ${t=>t.theme.breakpoints.down("sm")} {
    width: 100px;
    height: 100px;
    .outerCube,
    .innerCube {
      .face {
        &.top {
          transform: rotateX(90deg) translateZ(48px);
        }
        &.front {
          .faceContent {
            .logoIcon {
              margin: 10px auto 0;
            }
          }
        }
      }
    }
  }
`;function Pts(){return E.jsx("svg",{height:"20px",width:"20px",className:"erdConnectorSymbol",children:E.jsx("defs",{children:E.jsx("marker",{id:"one",viewBox:"0 0 100 100",refX:"3",refY:"20",markerWidth:"40",markerHeight:"40",orient:"auto-start-reverse",children:E.jsx("rect",{width:"3",height:"40"})})})})}function Ots(){return E.jsx("svg",{height:"35px",width:"35px",className:"erdConnectorSymbol",children:E.jsx("defs",{children:E.jsxs("marker",{id:"oneOrMany",viewBox:"0 0 80 80",refX:"40",refY:"21",markerWidth:"35",markerHeight:"35",orient:"auto-start-reverse",children:[E.jsx("rect",{width:"2",height:"40"}),E.jsx("path",{d:"M40.5 41L2.5 21L40.5 1",fill:"transparent",strokeWidth:"2"})]})})})}function Lts(){return E.jsx("svg",{height:"30px",width:"30px",className:"erdConnectorSymbol",children:E.jsx("defs",{children:E.jsxs("marker",{id:"onlyOne",viewBox:"0 0 100 100",refX:"20",refY:"15",markerWidth:"40",markerHeight:"40",orient:"auto-start-reverse",children:[E.jsx("rect",{width:"3",height:"30"}),E.jsx("rect",{x:"18",width:"3",height:"30"})]})})})}function Bts(){return E.jsx("svg",{height:"20px",width:"20px",className:"erdConnectorSymbol",children:E.jsx("defs",{children:E.jsx("marker",{id:"many",viewBox:"0 0 100 100",refX:"35",refY:"21",markerWidth:"40",markerHeight:"40",orient:"auto-start-reverse",children:E.jsx("path",{d:"M40.5 41L2.5 21L40.5 1",strokeWidth:"2",fill:"transparent"})})})})}function Dts(){return E.jsx("svg",{height:"30px",width:"30px",className:"erdConnectorSymbol",children:E.jsx("defs",{children:E.jsxs("marker",{id:"zeroOrMany",viewBox:"0 0 100 100",refX:"80",refY:"22",markerWidth:"40",markerHeight:"40",orient:"auto-start-reverse",children:[E.jsx("path",{d:"M82.5 42L44.5 22L82.5 2",fill:"transparent",strokeWidth:"2"}),E.jsx("circle",{cx:"24",cy:"21",r:"20",fill:"transparent",strokeWidth:"2"})]})})})}function $ts(){return E.jsx("svg",{height:"30px",width:"30px",className:"erdConnectorSymbol",children:E.jsx("defs",{children:E.jsxs("marker",{id:"zeroOrOne",viewBox:"0 0 100 100",refX:"40",refY:"20",markerWidth:"40",markerHeight:"40",orient:"auto-start-reverse",children:[E.jsx("rect",{x:"42",y:"2",width:"2",height:"36"}),E.jsx("circle",{cx:"20",cy:"20",r:"19",fill:"transparent",strokeWidth:"2"})]})})})}const Fts={floating:mts},jts=({ERDTables:t,schema:e,loading:n,layoutType:r="",ERDLoading:a,isLayoutLoading:o=!1,isPreview:s=!1,isSearched:l=!1,focusedTable:c})=>{const u=Bv(),{setCenter:d,fitView:h}=Wse(),f=Y.useRef(),[p,m,g]=UYn([]),[v,A,y]=zYn([]),[S,x]=Y.useState(null),[w,_]=Y.useState(!1),C=Ydn(),R=Y.useRef(!1),[k,P]=Y.useState(!0),N=UAa(),L=()=>{if(!k)return;const{nodeInternals:U}=u.getState(),$={},z=Array.from(U).map(([,Q])=>{const{isParent:ee=!1,id:X=""}=Q;return ee&&($[X]=Q),Q});let Z=!1,K=s?.3:.4;if(z==null||z.every(({id:Q,position:ee,width:X,height:te,parentNode:J})=>{if(Q===c||Q===C){let ne=ee.x+(X+C?500:0),ie=ee.y+te/2;if(J&&r===Mf.grouped&&!Ft.isEmpty($[J])){const{width:he=0,height:de=0,position:ce}=$[J];ne=ce.x+he/2,ie=ce.y+de/2,K=.2}return C&&(K=s?.8:1),d(ne,ie,{zoom:K,duration:1e3}),Z=!0,!1}return!0}),(z==null?void 0:z.length)===1&&!Z){h({padding:2});return}Z||h()},I=()=>{L()},b=async()=>{if(t!=null&&t.length){await m([...t]);const U={};t==null||t.forEach($=>{l&&c&&!($!=null&&$.hasHeight)||(U[$.id]=!0)}),ZLe({...U}),setTimeout(()=>{L()},300)}else m([]),A([])},T=()=>{t!=null&&t.length&&A([...fts(t,e,r,c)])};Y.useEffect(()=>()=>{Whn({}),JLe({})},[]),Y.useEffect(()=>{N&&k&&L(),Bfn(!1)},[N]),Y.useEffect(()=>{b(),T()},[t]),Y.useEffect(()=>{R!=null&&R.current?setTimeout(()=>L(),300):R.current=!0},[C]);const M=()=>{setTimeout(()=>{L()},1e3)};Y.useEffect(()=>(window.addEventListener("focus",M),()=>window.removeEventListener("focus",M)),[]);const D=U=>{A($=>iYn({...U,type:IR.SmoothStep,animated:!0},$))},B=(U,$,z,Z)=>{const K=DK().getAllTablesFromSchema(e);if(U&&$&&z){const Q=zes(U,$,z),ee=Ges(U,$,z);let X={};const te={},J={},ne=new Set;ne.add(U==null?void 0:U.id),Q.forEach(de=>{te[de==null?void 0:de.id]=!0,ne.add(de==null?void 0:de.id)}),ee.forEach(de=>{J[de==null?void 0:de.id]=!0,ne.add(de==null?void 0:de.id)}),X={};const ie=Array.from(ne);ie==null||ie.forEach(de=>{const{relations:ce=[]}=K[de]||{};ce==null||ce.forEach(Ee=>{const{tableId:Me,sourceColumn:Be,targetColumn:ze}=Ee;ie!=null&&ie.includes(Me)&&(X[Be]=1,X[ze]=1)})});const he={[U==null?void 0:U.id]:!0,...te,...J};ZLe({...he}),A(de=>de==null?void 0:de.map(ce=>{const Ee={...ce};if(Z){const Me=te[ce.source]&&te[ce.target]||J[ce.source]&&J[ce.target]||U.id===ce.target||U.id===ce.source;Ee.animated=Me,Ee.style={...Ee.style,stroke:qt.custom.greyText.A3,opacity:Me?2:.25,fontWeight:Me?"bold":"",strokeWidth:Me?"3px":"1px"}}else Ee.style={...Ee.style,strokeWidth:"1px",stroke:qt.custom.greyText.A3,opacity:1};return Ee})),JLe(X)}},j=()=>{const U={};p==null||p.forEach($=>{l&&c&&!($!=null&&$.hasHeight)||(U[$.id]=!0)}),ZLe({...U}),A($=>$==null?void 0:$.map(z=>{const{source:Z,target:K}=z,Q={...z};return Q.style={...Q.style,strokeWidth:"1px",opacity:gXn(c,Z,K)},Q})),JLe({})},H=()=>{var U;s&&!((U=f==null?void 0:f.current)!=null&&U.value)&&P(!1)};return E.jsxs(E.Fragment,{children:[!a&&E.jsxs(gut,{nodes:p,edges:v,onNodesChange:g,onEdgesChange:y,onConnect:D,onInit:I,minZoom:.01,defaultZoom:.2,edgeTypes:Fts,connectionMode:DP.Loose,connectionLineComponent:pts,onNodeDragStart:()=>{_(!0)},onNodeDragStop:()=>{_(!1)},onNodeMouseEnter:(U,$)=>{var z;s&&((z=f==null?void 0:f.current)==null?void 0:z.value)===!1&&(f.current.value=!0),!c&&!S&&!w&&r!==Mf.grouped&&(p==null?void 0:p.length)<100&&B($,p,v,!0)},onNodeMouseLeave:()=>{var U;s&&((U=f==null?void 0:f.current)==null?void 0:U.value)===!0&&(f.current.value=!1),!c&&!w&&!S&&r!==Mf.grouped&&(p==null?void 0:p.length)<100&&j(),x(null)},onWheelCapture:H,onPaneClick:()=>{j(),x(null),Gne("")},children:[!n&&E.jsxs(E.Fragment,{children:[E.jsx(vYn,{className:"miniMap",nodeColor:qt.custom.erd.miniMap.nodeColor}),E.jsx(eXn,{nodeColor:qt.custom.erd.miniMap.nodeColor,maskColor:qt.custom.erd.miniMap.maskColor,nodes:p,style:{background:"transparent"}})]}),n||o&&E.jsx(as,{}),E.jsx(pYn,{onZoomIn:()=>s&&P(!1),onZoomOut:()=>s&&P(!1),onFitView:()=>s&&P(!0)}),E.jsx(yYn,{color:qt.custom.greyText.A1,gap:16})]}),E.jsxs("div",{className:"erdSymbols",children:[E.jsx(Pts,{}),E.jsx(Ots,{}),E.jsx(Lts,{}),E.jsx(Bts,{}),E.jsx(Dts,{}),E.jsx($ts,{})]})]})};function Hts(t){var R;const{nodeTables:e,schema:n,starERD:r,ERDLoading:a,showAll:o,handleShowAll:s,theme:l,isPreview:c,focusedTable:u="",selectedSubGroups:d,isShowYourDataSets:h,onClear:f,isLayoutLoading:p,isQueryERD:m=!1,showLess:g,handleShowLess:v}=t,[A,y]=Y.useState(Mf.atomic),[S,x]=Y.useState(!0),w=async k=>{y(k)};Y.useEffect(()=>{var k;return((k=Object==null?void 0:Object.keys(d||{}))==null?void 0:k.length)>1&&(r==null?void 0:r.length)>0&&w(Mf.grouped),()=>{y(Mf.atomic)}},[d,r]);const _=k=>{if(A!==k)switch(k){case Mf.atomic:{_a.selectedERDLayout({layout:Mf.atomic}),w(k);break}case Mf.grouped:{_a.selectedERDLayout({layout:Mf.grouped}),w(k);break}default:w(Mf.atomic)}},C=k=>{const P={};e==null||e.forEach(({id:N})=>{P[N]=k}),Whn(P)};return E.jsx(yts,{theme:qt,className:"erdTableView",children:E.jsxs("div",{className:"erdContent",children:[!h&&E.jsx(Ats,{className:"mobileModelBtn",children:E.jsx(vts,{onClick:f})}),E.jsxs(bts,{theme:qt,children:[E.jsx(Jt,{size:"small",onClick:()=>x(!S),children:S?E.jsx(Xre,{}):E.jsx(J6,{})}),E.jsxs(jo,{in:S,timeout:"auto",unmountOnExit:!0,children:[!m&&((R=M1a(n))==null?void 0:R.map((k,P)=>E.jsx(Pn,{label:k==null?void 0:k.tooltip,tooltipPlacement:"left",children:E.jsx(Jt,{className:A===(k==null?void 0:k.name)?"active":"",size:"small",onClick:()=>{_(k==null?void 0:k.name)},children:k.icon},`${P+P}`)},`${P+P}`))),E.jsx(Pn,{label:"Collapse all",tooltipPlacement:"left",children:E.jsx(Jt,{size:"small",onClick:()=>{C(!0)},children:E.jsx(fXn,{fontSize:"small"})})}),E.jsx(Pn,{label:"Expand all",tooltipPlacement:"left",children:E.jsx(Jt,{size:"small",onClick:()=>{C(!1)},children:E.jsx(pXn,{fontSize:"small"})})}),o&&E.jsx(Pn,{label:"Show all",tooltipPlacement:"left",children:E.jsx(Jt,{size:"small",onClick:()=>{s&&s()},children:E.jsx(jmi,{})})}),g&&E.jsx(Pn,{label:"Show limited",tooltipPlacement:"left",children:E.jsx(Jt,{size:"small",onClick:()=>{v&&v()},children:E.jsx(Hmi,{})})})]})]}),(e==null?void 0:e.length)===0&&(r==null?void 0:r.length)===0&&!p&&E.jsx(sf,{imgPath:xdt,imgPathWebp:Edt,title:q.NO_CORE_FOUND}),E.jsx(vut,{children:E.jsx(jts,{schema:n,ERDTables:A===Mf.atomic?e:r,handleERDTableChange:_,layoutType:A,ERDLoading:a,showAll:o||!1,handleShowAll:s||null,theme:l,isPreview:c,focusedTable:u,isLayoutLoading:p,...t})})]})})}const bXn=ke.memo(Hts);function zM(t){return Array.isArray?Array.isArray(t):SXn(t)==="[object Array]"}const Uts=1/0;function zts(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Uts?"-0":e}function Gts(t){return t==null?"":zts(t)}function h2(t){return typeof t=="string"}function xXn(t){return typeof t=="number"}function Vts(t){return t===!0||t===!1||Kts(t)&&SXn(t)=="[object Boolean]"}function EXn(t){return typeof t=="object"}function Kts(t){return EXn(t)&&t!==null}function Sy(t){return t!=null}function A7e(t){return!t.trim().length}function SXn(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Wts="Incorrect 'index' type",Qts=t=>`Invalid value for key ${t}`,qts=t=>`Pattern length exceeds max of ${t}.`,Yts=t=>`Missing ${t} property in key`,Jts=t=>`Property 'weight' in key '${t}' must be a positive integer`,Hjt=Object.prototype.hasOwnProperty;class Zts{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let a=wXn(r);n+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,n+=a.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function wXn(t){let e=null,n=null,r=null,a=1,o=null;if(h2(t)||zM(t))r=t,e=Ujt(t),n=Wqe(t);else{if(!Hjt.call(t,"name"))throw new Error(Yts("name"));const s=t.name;if(r=s,Hjt.call(t,"weight")&&(a=t.weight,a<=0))throw new Error(Jts(s));e=Ujt(s),n=Wqe(s),o=t.getFn}return{path:e,id:n,weight:a,src:r,getFn:o}}function Ujt(t){return zM(t)?t:t.split(".")}function Wqe(t){return zM(t)?t.join("."):t}function Xts(t,e){let n=[],r=!1;const a=(o,s,l)=>{if(Sy(o))if(!s[l])n.push(o);else{let c=s[l];const u=o[c];if(!Sy(u))return;if(l===s.length-1&&(h2(u)||xXn(u)||Vts(u)))n.push(Gts(u));else if(zM(u)){r=!0;for(let d=0,h=u.length;d<h;d+=1)a(u[d],s,l+1)}else s.length&&a(u,s,l+1)}};return a(t,h2(e)?e.split("."):e,0),r?n:n[0]}const ens={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},tns={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},nns={location:0,threshold:.6,distance:100},rns={useExtendedSearch:!1,getFn:Xts,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var _o={...tns,...ens,...nns,...rns};const ins=/[^ ]+/g;function ans(t=1,e=3){const n=new Map,r=Math.pow(10,e);return{get(a){const o=a.match(ins).length;if(n.has(o))return n.get(o);const s=1/Math.pow(o,.5*t),l=parseFloat(Math.round(s*r)/r);return n.set(o,l),l},clear(){n.clear()}}}class Idt{constructor({getFn:e=_o.getFn,fieldNormWeight:n=_o.fieldNormWeight}={}){this.norm=ans(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,h2(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();h2(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!Sy(e)||A7e(e))return;let r={v:e,i:n,n:this.norm.get(e)};this.records.push(r)}_addObject(e,n){let r={i:n,$:{}};this.keys.forEach((a,o)=>{let s=a.getFn?a.getFn(e):this.getFn(e,a.path);if(Sy(s)){if(zM(s)){let l=[];const c=[{nestedArrIndex:-1,value:s}];for(;c.length;){const{nestedArrIndex:u,value:d}=c.pop();if(Sy(d))if(h2(d)&&!A7e(d)){let h={v:d,i:u,n:this.norm.get(d)};l.push(h)}else zM(d)&&d.forEach((h,f)=>{c.push({nestedArrIndex:f,value:h})})}r.$[o]=l}else if(h2(s)&&!A7e(s)){let l={v:s,n:this.norm.get(s)};r.$[o]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function _Xn(t,e,{getFn:n=_o.getFn,fieldNormWeight:r=_o.fieldNormWeight}={}){const a=new Idt({getFn:n,fieldNormWeight:r});return a.setKeys(t.map(wXn)),a.setSources(e),a.create(),a}function ons(t,{getFn:e=_o.getFn,fieldNormWeight:n=_o.fieldNormWeight}={}){const{keys:r,records:a}=t,o=new Idt({getFn:e,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o}function Dfe(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:a=_o.distance,ignoreLocation:o=_o.ignoreLocation}={}){const s=e/t.length;if(o)return s;const l=Math.abs(r-n);return a?s+l/a:l?1:s}function sns(t=[],e=_o.minMatchCharLength){let n=[],r=-1,a=-1,o=0;for(let s=t.length;o<s;o+=1){let l=t[o];l&&r===-1?r=o:!l&&r!==-1&&(a=o-1,a-r+1>=e&&n.push([r,a]),r=-1)}return t[o-1]&&o-r>=e&&n.push([r,o-1]),n}const _B=32;function lns(t,e,n,{location:r=_o.location,distance:a=_o.distance,threshold:o=_o.threshold,findAllMatches:s=_o.findAllMatches,minMatchCharLength:l=_o.minMatchCharLength,includeMatches:c=_o.includeMatches,ignoreLocation:u=_o.ignoreLocation}={}){if(e.length>_B)throw new Error(qts(_B));const d=e.length,h=t.length,f=Math.max(0,Math.min(r,h));let p=o,m=f;const g=l>1||c,v=g?Array(h):[];let A;for(;(A=t.indexOf(e,m))>-1;){let C=Dfe(e,{currentLocation:A,expectedLocation:f,distance:a,ignoreLocation:u});if(p=Math.min(C,p),m=A+d,g){let R=0;for(;R<d;)v[A+R]=1,R+=1}}m=-1;let y=[],S=1,x=d+h;const w=1<<d-1;for(let C=0;C<d;C+=1){let R=0,k=x;for(;R<k;)Dfe(e,{errors:C,currentLocation:f+k,expectedLocation:f,distance:a,ignoreLocation:u})<=p?R=k:x=k,k=Math.floor((x-R)/2+R);x=k;let P=Math.max(1,f-k+1),N=s?h:Math.min(f+k,h)+d,L=Array(N+2);L[N+1]=(1<<C)-1;for(let b=N;b>=P;b-=1){let T=b-1,M=n[t.charAt(T)];if(g&&(v[T]=+!!M),L[b]=(L[b+1]<<1|1)&M,C&&(L[b]|=(y[b+1]|y[b])<<1|1|y[b+1]),L[b]&w&&(S=Dfe(e,{errors:C,currentLocation:T,expectedLocation:f,distance:a,ignoreLocation:u}),S<=p)){if(p=S,m=T,m<=f)break;P=Math.max(1,2*f-m)}}if(Dfe(e,{errors:C+1,currentLocation:f,expectedLocation:f,distance:a,ignoreLocation:u})>p)break;y=L}const _={isMatch:m>=0,score:Math.max(.001,S)};if(g){const C=sns(v,l);C.length?c&&(_.indices=C):_.isMatch=!1}return _}function cns(t){let e={};for(let n=0,r=t.length;n<r;n+=1){const a=t.charAt(n);e[a]=(e[a]||0)|1<<r-n-1}return e}class TXn{constructor(e,{location:n=_o.location,threshold:r=_o.threshold,distance:a=_o.distance,includeMatches:o=_o.includeMatches,findAllMatches:s=_o.findAllMatches,minMatchCharLength:l=_o.minMatchCharLength,isCaseSensitive:c=_o.isCaseSensitive,ignoreLocation:u=_o.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:s,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:u},this.pattern=c?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(f,p)=>{this.chunks.push({pattern:f,alphabet:cns(f),startIndex:p})},h=this.pattern.length;if(h>_B){let f=0;const p=h%_B,m=h-p;for(;f<m;)d(this.pattern.substr(f,_B),f),f+=_B;if(p){const g=h-_B;d(this.pattern.substr(g),g)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(e=e.toLowerCase()),this.pattern===e){let m={isMatch:!0,score:0};return r&&(m.indices=[[0,e.length-1]]),m}const{location:a,distance:o,threshold:s,findAllMatches:l,minMatchCharLength:c,ignoreLocation:u}=this.options;let d=[],h=0,f=!1;this.chunks.forEach(({pattern:m,alphabet:g,startIndex:v})=>{const{isMatch:A,score:y,indices:S}=lns(e,m,g,{location:a+v,distance:o,threshold:s,findAllMatches:l,minMatchCharLength:c,includeMatches:r,ignoreLocation:u});A&&(f=!0),h+=y,A&&S&&(d=[...d,...S])});let p={isMatch:f,score:f?h/this.chunks.length:1};return f&&r&&(p.indices=d),p}}class NO{constructor(e){this.pattern=e}static isMultiMatch(e){return zjt(e,this.multiRegex)}static isSingleMatch(e){return zjt(e,this.singleRegex)}search(){}}function zjt(t,e){const n=t.match(e);return n?n[1]:null}class uns extends NO{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class dns extends NO{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class hns extends NO{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class fns extends NO{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class pns extends NO{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class mns extends NO{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class CXn extends NO{constructor(e,{location:n=_o.location,threshold:r=_o.threshold,distance:a=_o.distance,includeMatches:o=_o.includeMatches,findAllMatches:s=_o.findAllMatches,minMatchCharLength:l=_o.minMatchCharLength,isCaseSensitive:c=_o.isCaseSensitive,ignoreLocation:u=_o.ignoreLocation}={}){super(e),this._bitapSearch=new TXn(e,{location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:s,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class kXn extends NO{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const a=[],o=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+o,a.push([r,n-1]);const s=!!a.length;return{isMatch:s,score:s?0:1,indices:a}}}const Qqe=[uns,kXn,hns,fns,mns,pns,dns,CXn],Gjt=Qqe.length,gns=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,vns="|";function Ans(t,e={}){return t.split(vns).map(n=>{let r=n.trim().split(gns).filter(o=>o&&!!o.trim()),a=[];for(let o=0,s=r.length;o<s;o+=1){const l=r[o];let c=!1,u=-1;for(;!c&&++u<Gjt;){const d=Qqe[u];let h=d.isMultiMatch(l);h&&(a.push(new d(h,e)),c=!0)}if(!c)for(u=-1;++u<Gjt;){const d=Qqe[u];let h=d.isSingleMatch(l);if(h){a.push(new d(h,e));break}}}return a})}const yns=new Set([CXn.type,kXn.type]);class bns{constructor(e,{isCaseSensitive:n=_o.isCaseSensitive,includeMatches:r=_o.includeMatches,minMatchCharLength:a=_o.minMatchCharLength,ignoreLocation:o=_o.ignoreLocation,findAllMatches:s=_o.findAllMatches,location:l=_o.location,threshold:c=_o.threshold,distance:u=_o.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:a,findAllMatches:s,ignoreLocation:o,location:l,threshold:c,distance:u},this.pattern=n?e:e.toLowerCase(),this.query=Ans(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:a}=this.options;e=a?e:e.toLowerCase();let o=0,s=[],l=0;for(let c=0,u=n.length;c<u;c+=1){const d=n[c];s.length=0,o=0;for(let h=0,f=d.length;h<f;h+=1){const p=d[h],{isMatch:m,indices:g,score:v}=p.search(e);if(m){if(o+=1,l+=v,r){const A=p.constructor.type;yns.has(A)?s=[...s,...g]:s.push(g)}}else{l=0,o=0,s.length=0;break}}if(o){let h={isMatch:!0,score:l/o};return r&&(h.indices=s),h}}return{isMatch:!1,score:1}}}const qqe=[];function xns(...t){qqe.push(...t)}function Yqe(t,e){for(let n=0,r=qqe.length;n<r;n+=1){let a=qqe[n];if(a.condition(t,e))return new a(t,e)}return new TXn(t,e)}const vbe={AND:"$and",OR:"$or"},Jqe={PATH:"$path",PATTERN:"$val"},Zqe=t=>!!(t[vbe.AND]||t[vbe.OR]),Ens=t=>!!t[Jqe.PATH],Sns=t=>!zM(t)&&EXn(t)&&!Zqe(t),Vjt=t=>({[vbe.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function RXn(t,e,{auto:n=!0}={}){const r=a=>{let o=Object.keys(a);const s=Ens(a);if(!s&&o.length>1&&!Zqe(a))return r(Vjt(a));if(Sns(a)){const c=s?a[Jqe.PATH]:o[0],u=s?a[Jqe.PATTERN]:a[c];if(!h2(u))throw new Error(Qts(c));const d={keyId:Wqe(c),pattern:u};return n&&(d.searcher=Yqe(u,e)),d}let l={children:[],operator:o[0]};return o.forEach(c=>{const u=a[c];zM(u)&&u.forEach(d=>{l.children.push(r(d))})}),l};return Zqe(t)||(t=Vjt(t)),r(t)}function wns(t,{ignoreFieldNorm:e=_o.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:o,score:s})=>{const l=a?a.weight:null;r*=Math.pow(s===0&&l?Number.EPSILON:s,(l||1)*(e?1:o))}),n.score=r})}function _ns(t,e){const n=t.matches;e.matches=[],Sy(n)&&n.forEach(r=>{if(!Sy(r.indices)||!r.indices.length)return;const{indices:a,value:o}=r;let s={indices:a,value:o};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),e.matches.push(s)})}function Tns(t,e){e.score=t.score}function Cns(t,e,{includeMatches:n=_o.includeMatches,includeScore:r=_o.includeScore}={}){const a=[];return n&&a.push(_ns),r&&a.push(Tns),t.map(o=>{const{idx:s}=o,l={item:e[s],refIndex:s};return a.length&&a.forEach(c=>{c(o,l)}),l})}class FP{constructor(e,n={},r){this.options={..._o,...n},this.options.useExtendedSearch,this._keyStore=new Zts(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Idt))throw new Error(Wts);this._myIndex=n||_Xn(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Sy(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,a=this._docs.length;r<a;r+=1){const o=this._docs[r];e(o,r)&&(this.removeAt(r),r-=1,a-=1,n.push(o))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:r,includeScore:a,shouldSort:o,sortFn:s,ignoreFieldNorm:l}=this.options;let c=h2(e)?h2(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return wns(c,{ignoreFieldNorm:l}),o&&c.sort(s),xXn(n)&&n>-1&&(c=c.slice(0,n)),Cns(c,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(e){const n=Yqe(e,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:o,i:s,n:l})=>{if(!Sy(o))return;const{isMatch:c,score:u,indices:d}=n.searchIn(o);c&&a.push({item:o,idx:s,matches:[{score:u,value:o,norm:l,indices:d}]})}),a}_searchLogical(e){const n=RXn(e,this.options),r=(l,c,u)=>{if(!l.children){const{keyId:h,searcher:f}=l,p=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(c,h),searcher:f});return p&&p.length?[{idx:u,item:c,matches:p}]:[]}const d=[];for(let h=0,f=l.children.length;h<f;h+=1){const p=l.children[h],m=r(p,c,u);if(m.length)d.push(...m);else if(l.operator===vbe.AND)return[]}return d},a=this._myIndex.records,o={},s=[];return a.forEach(({$:l,i:c})=>{if(Sy(l)){let u=r(n,l,c);u.length&&(o[c]||(o[c]={idx:c,item:l,matches:[]},s.push(o[c])),u.forEach(({matches:d})=>{o[c].matches.push(...d)}))}}),s}_searchObjectList(e){const n=Yqe(e,this.options),{keys:r,records:a}=this._myIndex,o=[];return a.forEach(({$:s,i:l})=>{if(!Sy(s))return;let c=[];r.forEach((u,d)=>{c.push(...this._findMatches({key:u,value:s[d],searcher:n}))}),c.length&&o.push({idx:l,item:s,matches:c})}),o}_findMatches({key:e,value:n,searcher:r}){if(!Sy(n))return[];let a=[];if(zM(n))n.forEach(({v:o,i:s,n:l})=>{if(!Sy(o))return;const{isMatch:c,score:u,indices:d}=r.searchIn(o);c&&a.push({score:u,key:e,value:o,idx:s,norm:l,indices:d})});else{const{v:o,n:s}=n,{isMatch:l,score:c,indices:u}=r.searchIn(o);l&&a.push({score:c,key:e,value:o,norm:s,indices:u})}return a}}FP.version="6.6.2";FP.createIndex=_Xn;FP.parseIndex=ons;FP.config=_o;FP.parseQuery=RXn;xns(bns);/**
 * @license
 * Copyright 2010-2022 Three.js Authors
 * SPDX-License-Identifier: MIT
 */const ZCe="139",TR={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},CR={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},MXn=0,Xqe=1,NXn=2,kns=3,Rns=0,Pdt=1,Odt=2,mj=3,m8=0,Gy=1,g8=2,Ldt=1,Mns=2,lM=0,WD=1,eYe=2,tYe=3,nYe=4,IXn=5,TB=100,PXn=101,OXn=102,rYe=103,iYe=104,LXn=200,BXn=201,DXn=202,$Xn=203,Bdt=204,Ddt=205,FXn=206,jXn=207,HXn=208,UXn=209,zXn=210,GXn=0,VXn=1,KXn=2,Abe=3,WXn=4,QXn=5,qXn=6,YXn=7,ole=0,JXn=1,ZXn=2,_w=0,XXn=1,eer=2,ter=3,$dt=4,ner=5,XCe=300,jP=301,HP=302,tie=303,nie=304,$K=306,rie=1e3,I0=1001,iie=1002,Pf=1003,ybe=1004,Nns=1004,bbe=1005,Ins=1005,Hh=1006,Fdt=1007,Pns=1007,V9=1008,Ons=1008,UP=1009,rer=1010,ier=1011,Rz=1012,aer=1013,Kee=1014,qR=1015,QD=1016,oer=1017,ser=1018,qD=1020,ler=1021,cer=1022,Ly=1023,uer=1024,der=1025,z5=1026,v8=1027,her=1028,fer=1029,per=1030,mer=1031,ger=1033,zge=33776,Gge=33777,Vge=33778,Kge=33779,aYe=35840,oYe=35841,sYe=35842,lYe=35843,ver=36196,cYe=37492,uYe=37496,dYe=37808,hYe=37809,fYe=37810,pYe=37811,mYe=37812,gYe=37813,vYe=37814,AYe=37815,yYe=37816,bYe=37817,xYe=37818,EYe=37819,SYe=37820,wYe=37821,_Ye=36492,Aer=2200,yer=2201,ber=2202,aie=2300,oie=2301,Wge=2302,cD=2400,uD=2401,sie=2402,eke=2500,jdt=2501,xer=0,Lns=1,Bns=2,nE=3e3,ou=3001,Eer=3200,Ser=3201,K9=0,wer=1,Dns="",ET="srgb",i5="srgb-linear",$ns=0,Qge=7680,Fns=7681,jns=7682,Hns=7683,Uns=34055,zns=34056,Gns=5386,Vns=512,Kns=513,Wns=514,Qns=515,qns=516,Yns=517,Jns=518,_er=519,Mz=35044,Nz=35048,Zns=35040,Xns=35045,ers=35049,trs=35041,nrs=35046,rrs=35050,irs=35042,ars="100",TYe="300 es",xbe=1035;class RN{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(n)===-1&&r[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const a=this._listeners[e];if(a!==void 0){const o=a.indexOf(n);o!==-1&&a.splice(o,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const r=this._listeners[e.type];if(r!==void 0){e.target=this;const a=r.slice(0);for(let o=0,s=a.length;o<s;o++)a[o].call(this,e);e.target=null}}}const Lm=[];for(let t=0;t<256;t++)Lm[t]=(t<16?"0":"")+t.toString(16);let Kjt=1234567;const YD=Math.PI/180,lie=180/Math.PI;function Vy(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(Lm[t&255]+Lm[t>>8&255]+Lm[t>>16&255]+Lm[t>>24&255]+"-"+Lm[e&255]+Lm[e>>8&255]+"-"+Lm[e>>16&15|64]+Lm[e>>24&255]+"-"+Lm[n&63|128]+Lm[n>>8&255]+"-"+Lm[n>>16&255]+Lm[n>>24&255]+Lm[r&255]+Lm[r>>8&255]+Lm[r>>16&255]+Lm[r>>24&255]).toLowerCase()}function Uh(t,e,n){return Math.max(e,Math.min(n,t))}function Hdt(t,e){return(t%e+e)%e}function ors(t,e,n,r,a){return r+(t-e)*(a-r)/(n-e)}function srs(t,e,n){return t!==e?(n-t)/(e-t):0}function Wee(t,e,n){return(1-n)*t+n*e}function lrs(t,e,n,r){return Wee(t,e,1-Math.exp(-n*r))}function crs(t,e=1){return e-Math.abs(Hdt(t,e*2)-e)}function urs(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function drs(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function hrs(t,e){return t+Math.floor(Math.random()*(e-t+1))}function frs(t,e){return t+Math.random()*(e-t)}function prs(t){return t*(.5-Math.random())}function mrs(t){t!==void 0&&(Kjt=t);let e=Kjt+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function grs(t){return t*YD}function vrs(t){return t*lie}function CYe(t){return(t&t-1)===0&&t!==0}function Ter(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Ebe(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function Ars(t,e,n,r,a){const o=Math.cos,s=Math.sin,l=o(n/2),c=s(n/2),u=o((e+r)/2),d=s((e+r)/2),h=o((e-r)/2),f=s((e-r)/2),p=o((r-e)/2),m=s((r-e)/2);switch(a){case"XYX":t.set(l*d,c*h,c*f,l*u);break;case"YZY":t.set(c*f,l*d,c*h,l*u);break;case"ZXZ":t.set(c*h,c*f,l*d,l*u);break;case"XZX":t.set(l*d,c*m,c*p,l*u);break;case"YXY":t.set(c*p,l*d,c*m,l*u);break;case"ZYZ":t.set(c*m,c*p,l*d,l*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+a)}}function yrs(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function brs(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}var Wjt=Object.freeze({__proto__:null,DEG2RAD:YD,RAD2DEG:lie,generateUUID:Vy,clamp:Uh,euclideanModulo:Hdt,mapLinear:ors,inverseLerp:srs,lerp:Wee,damp:lrs,pingpong:crs,smoothstep:urs,smootherstep:drs,randInt:hrs,randFloat:frs,randFloatSpread:prs,seededRandom:mrs,degToRad:grs,radToDeg:vrs,isPowerOfTwo:CYe,ceilPowerOfTwo:Ter,floorPowerOfTwo:Ebe,setQuaternionFromProperEuler:Ars,normalize:brs,denormalize:yrs});class Qn{constructor(e=0,n=0){this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e,n){return n!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,n)):(this.x+=e.x,this.y+=e.y,this)}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e,n){return n!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,n)):(this.x-=e.x,this.y-=e.y,this)}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,r=this.y,a=e.elements;return this.x=a[0]*n+a[3]*r+a[6],this.y=a[1]*n+a[4]*r+a[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y;return n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n,r){return r!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const r=Math.cos(n),a=Math.sin(n),o=this.x-e.x,s=this.y-e.y;return this.x=o*r-s*a+e.x,this.y=o*a+s*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}Qn.prototype.isVector2=!0;class bp{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(e,n,r,a,o,s,l,c,u){const d=this.elements;return d[0]=e,d[1]=a,d[2]=l,d[3]=n,d[4]=o,d[5]=c,d[6]=r,d[7]=s,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],this}extractBasis(e,n,r){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,a=n.elements,o=this.elements,s=r[0],l=r[3],c=r[6],u=r[1],d=r[4],h=r[7],f=r[2],p=r[5],m=r[8],g=a[0],v=a[3],A=a[6],y=a[1],S=a[4],x=a[7],w=a[2],_=a[5],C=a[8];return o[0]=s*g+l*y+c*w,o[3]=s*v+l*S+c*_,o[6]=s*A+l*x+c*C,o[1]=u*g+d*y+h*w,o[4]=u*v+d*S+h*_,o[7]=u*A+d*x+h*C,o[2]=f*g+p*y+m*w,o[5]=f*v+p*S+m*_,o[8]=f*A+p*x+m*C,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8];return n*s*d-n*l*u-r*o*d+r*l*c+a*o*u-a*s*c}invert(){const e=this.elements,n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=d*s-l*u,f=l*c-d*o,p=u*o-s*c,m=n*h+r*f+a*p;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const g=1/m;return e[0]=h*g,e[1]=(a*u-d*r)*g,e[2]=(l*r-a*s)*g,e[3]=f*g,e[4]=(d*n-a*c)*g,e[5]=(a*o-l*n)*g,e[6]=p*g,e[7]=(r*c-u*n)*g,e[8]=(s*n-r*o)*g,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,r,a,o,s,l){const c=Math.cos(o),u=Math.sin(o);return this.set(r*c,r*u,-r*(c*s+u*l)+s+e,-a*u,a*c,-a*(-u*s+c*l)+l+n,0,0,1),this}scale(e,n){const r=this.elements;return r[0]*=e,r[3]*=e,r[6]*=e,r[1]*=n,r[4]*=n,r[7]*=n,this}rotate(e){const n=Math.cos(e),r=Math.sin(e),a=this.elements,o=a[0],s=a[3],l=a[6],c=a[1],u=a[4],d=a[7];return a[0]=n*o+r*c,a[3]=n*s+r*u,a[6]=n*l+r*d,a[1]=-r*o+n*c,a[4]=-r*s+n*u,a[7]=-r*l+n*d,this}translate(e,n){const r=this.elements;return r[0]+=e*r[2],r[3]+=e*r[5],r[6]+=e*r[8],r[1]+=n*r[2],r[4]+=n*r[5],r[7]+=n*r[8],this}equals(e){const n=this.elements,r=e.elements;for(let a=0;a<9;a++)if(n[a]!==r[a])return!1;return!0}fromArray(e,n=0){for(let r=0;r<9;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}bp.prototype.isMatrix3=!0;function Cer(t){for(let e=t.length-1;e>=0;--e)if(t[e]>65535)return!0;return!1}const xrs={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function gj(t,e){return new xrs[t](e)}function cie(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function JD(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function qge(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}const y7e={[ET]:{[i5]:JD},[i5]:{[ET]:qge}},Kb={legacyMode:!0,get workingColorSpace(){return i5},set workingColorSpace(t){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(t,e,n){if(this.legacyMode||e===n||!e||!n)return t;if(y7e[e]&&y7e[e][n]!==void 0){const r=y7e[e][n];return t.r=r(t.r),t.g=r(t.g),t.b=r(t.b),t}throw new Error("Unsupported color space conversion.")},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)}},ker={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Zf={r:0,g:0,b:0},bS={h:0,s:0,l:0},$fe={h:0,s:0,l:0};function b7e(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}function Ffe(t,e){return e.r=t.r,e.g=t.g,e.b=t.b,e}class ci{constructor(e,n,r){return n===void 0&&r===void 0?this.set(e):this.setRGB(e,n,r)}set(e){return e&&e.isColor?this.copy(e):typeof e=="number"?this.setHex(e):typeof e=="string"&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=ET){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Kb.toWorkingColorSpace(this,n),this}setRGB(e,n,r,a=i5){return this.r=e,this.g=n,this.b=r,Kb.toWorkingColorSpace(this,a),this}setHSL(e,n,r,a=i5){if(e=Hdt(e,1),n=Uh(n,0,1),r=Uh(r,0,1),n===0)this.r=this.g=this.b=r;else{const o=r<=.5?r*(1+n):r+n-r*n,s=2*r-o;this.r=b7e(s,o,e+1/3),this.g=b7e(s,o,e),this.b=b7e(s,o,e-1/3)}return Kb.toWorkingColorSpace(this,a),this}setStyle(e,n=ET){function r(o){o!==void 0&&parseFloat(o)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let a;if(a=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){let o;const s=a[1],l=a[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(l))return this.r=Math.min(255,parseInt(o[1],10))/255,this.g=Math.min(255,parseInt(o[2],10))/255,this.b=Math.min(255,parseInt(o[3],10))/255,Kb.toWorkingColorSpace(this,n),r(o[4]),this;if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(l))return this.r=Math.min(100,parseInt(o[1],10))/100,this.g=Math.min(100,parseInt(o[2],10))/100,this.b=Math.min(100,parseInt(o[3],10))/100,Kb.toWorkingColorSpace(this,n),r(o[4]),this;break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(l)){const c=parseFloat(o[1])/360,u=parseInt(o[2],10)/100,d=parseInt(o[3],10)/100;return r(o[4]),this.setHSL(c,u,d,n)}break}}else if(a=/^\#([A-Fa-f\d]+)$/.exec(e)){const o=a[1],s=o.length;if(s===3)return this.r=parseInt(o.charAt(0)+o.charAt(0),16)/255,this.g=parseInt(o.charAt(1)+o.charAt(1),16)/255,this.b=parseInt(o.charAt(2)+o.charAt(2),16)/255,Kb.toWorkingColorSpace(this,n),this;if(s===6)return this.r=parseInt(o.charAt(0)+o.charAt(1),16)/255,this.g=parseInt(o.charAt(2)+o.charAt(3),16)/255,this.b=parseInt(o.charAt(4)+o.charAt(5),16)/255,Kb.toWorkingColorSpace(this,n),this}return e&&e.length>0?this.setColorName(e,n):this}setColorName(e,n=ET){const r=ker[e.toLowerCase()];return r!==void 0?this.setHex(r,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=JD(e.r),this.g=JD(e.g),this.b=JD(e.b),this}copyLinearToSRGB(e){return this.r=qge(e.r),this.g=qge(e.g),this.b=qge(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=ET){return Kb.fromWorkingColorSpace(Ffe(this,Zf),e),Uh(Zf.r*255,0,255)<<16^Uh(Zf.g*255,0,255)<<8^Uh(Zf.b*255,0,255)<<0}getHexString(e=ET){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=i5){Kb.fromWorkingColorSpace(Ffe(this,Zf),n);const r=Zf.r,a=Zf.g,o=Zf.b,s=Math.max(r,a,o),l=Math.min(r,a,o);let c,u;const d=(l+s)/2;if(l===s)c=0,u=0;else{const h=s-l;switch(u=d<=.5?h/(s+l):h/(2-s-l),s){case r:c=(a-o)/h+(a<o?6:0);break;case a:c=(o-r)/h+2;break;case o:c=(r-a)/h+4;break}c/=6}return e.h=c,e.s=u,e.l=d,e}getRGB(e,n=i5){return Kb.fromWorkingColorSpace(Ffe(this,Zf),n),e.r=Zf.r,e.g=Zf.g,e.b=Zf.b,e}getStyle(e=ET){return Kb.fromWorkingColorSpace(Ffe(this,Zf),e),e!==ET?`color(${e} ${Zf.r} ${Zf.g} ${Zf.b})`:`rgb(${Zf.r*255|0},${Zf.g*255|0},${Zf.b*255|0})`}offsetHSL(e,n,r){return this.getHSL(bS),bS.h+=e,bS.s+=n,bS.l+=r,this.setHSL(bS.h,bS.s,bS.l),this}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,r){return this.r=e.r+(n.r-e.r)*r,this.g=e.g+(n.g-e.g)*r,this.b=e.b+(n.b-e.b)*r,this}lerpHSL(e,n){this.getHSL(bS),e.getHSL($fe);const r=Wee(bS.h,$fe.h,n),a=Wee(bS.s,$fe.s,n),o=Wee(bS.l,$fe.l,n);return this.setHSL(r,a,o),this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),e.normalized===!0&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}ci.NAMES=ker;ci.prototype.isColor=!0;ci.prototype.r=1;ci.prototype.g=1;ci.prototype.b=1;let N7;class IO{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{N7===void 0&&(N7=cie("canvas")),N7.width=e.width,N7.height=e.height;const r=N7.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),n=N7}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=cie("canvas");n.width=e.width,n.height=e.height;const r=n.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const a=r.getImageData(0,0,e.width,e.height),o=a.data;for(let s=0;s<o.length;s++)o[s]=JD(o[s]/255)*255;return r.putImageData(a,0,0),n}else if(e.data){const n=e.data.slice(0);for(let r=0;r<n.length;r++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[r]=Math.floor(JD(n[r]/255)*255):n[r]=JD(n[r]);return{data:n,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}class dD{constructor(e=null){this.uuid=Vy(),this.data=e,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const r={uuid:this.uuid,url:""},a=this.data;if(a!==null){let o;if(Array.isArray(a)){o=[];for(let s=0,l=a.length;s<l;s++)a[s].isDataTexture?o.push(x7e(a[s].image)):o.push(x7e(a[s]))}else o=x7e(a);r.url=o}return n||(e.images[this.uuid]=r),r}}function x7e(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?IO.getDataURL(t):t.data?{data:Array.prototype.slice.call(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}dD.prototype.isSource=!0;let Ers=0;class Ah extends RN{constructor(e=Ah.DEFAULT_IMAGE,n=Ah.DEFAULT_MAPPING,r=I0,a=I0,o=Hh,s=V9,l=Ly,c=UP,u=1,d=nE){super(),Object.defineProperty(this,"id",{value:Ers++}),this.uuid=Vy(),this.name="",this.source=new dD(e),this.mipmaps=[],this.mapping=n,this.wrapS=r,this.wrapT=a,this.magFilter=o,this.minFilter=s,this.anisotropy=u,this.format=l,this.internalFormat=null,this.type=c,this.offset=new Qn(0,0),this.repeat=new Qn(1,1),this.center=new Qn(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new bp,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=d,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const r={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return JSON.stringify(this.userData)!=="{}"&&(r.userData=this.userData),n||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==XCe)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case rie:e.x=e.x-Math.floor(e.x);break;case I0:e.x=e.x<0?0:1;break;case iie:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case rie:e.y=e.y-Math.floor(e.y);break;case I0:e.y=e.y<0?0:1;break;case iie:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}}Ah.DEFAULT_IMAGE=null;Ah.DEFAULT_MAPPING=XCe;Ah.prototype.isTexture=!0;class Ac{constructor(e=0,n=0,r=0,a=1){this.x=e,this.y=n,this.z=r,this.w=a}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,r,a){return this.x=e,this.y=n,this.z=r,this.w=a,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e,n){return n!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,n)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e,n){return n!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,n)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,r=this.y,a=this.z,o=this.w,s=e.elements;return this.x=s[0]*n+s[4]*r+s[8]*a+s[12]*o,this.y=s[1]*n+s[5]*r+s[9]*a+s[13]*o,this.z=s[2]*n+s[6]*r+s[10]*a+s[14]*o,this.w=s[3]*n+s[7]*r+s[11]*a+s[15]*o,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,r,a,o;const c=e.elements,u=c[0],d=c[4],h=c[8],f=c[1],p=c[5],m=c[9],g=c[2],v=c[6],A=c[10];if(Math.abs(d-f)<.01&&Math.abs(h-g)<.01&&Math.abs(m-v)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+g)<.1&&Math.abs(m+v)<.1&&Math.abs(u+p+A-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const S=(u+1)/2,x=(p+1)/2,w=(A+1)/2,_=(d+f)/4,C=(h+g)/4,R=(m+v)/4;return S>x&&S>w?S<.01?(r=0,a=.707106781,o=.707106781):(r=Math.sqrt(S),a=_/r,o=C/r):x>w?x<.01?(r=.707106781,a=0,o=.707106781):(a=Math.sqrt(x),r=_/a,o=R/a):w<.01?(r=.707106781,a=.707106781,o=0):(o=Math.sqrt(w),r=C/o,a=R/o),this.set(r,a,o,n),this}let y=Math.sqrt((v-m)*(v-m)+(h-g)*(h-g)+(f-d)*(f-d));return Math.abs(y)<.001&&(y=1),this.x=(v-m)/y,this.y=(h-g)/y,this.z=(f-d)/y,this.w=Math.acos((u+p+A-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this.w=e.w+(n.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n,r){return r!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}Ac.prototype.isVector4=!0;class H0 extends RN{constructor(e,n,r={}){super(),this.width=e,this.height=n,this.depth=1,this.scissor=new Ac(0,0,e,n),this.scissorTest=!1,this.viewport=new Ac(0,0,e,n);const a={width:e,height:n,depth:1};this.texture=new Ah(a,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.encoding),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=r.generateMipmaps!==void 0?r.generateMipmaps:!1,this.texture.internalFormat=r.internalFormat!==void 0?r.internalFormat:null,this.texture.minFilter=r.minFilter!==void 0?r.minFilter:Hh,this.depthBuffer=r.depthBuffer!==void 0?r.depthBuffer:!0,this.stencilBuffer=r.stencilBuffer!==void 0?r.stencilBuffer:!1,this.depthTexture=r.depthTexture!==void 0?r.depthTexture:null,this.samples=r.samples!==void 0?r.samples:0}setSize(e,n,r=1){(this.width!==e||this.height!==n||this.depth!==r)&&(this.width=e,this.height=n,this.depth=r,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0,this.texture.image=Object.assign({},e.texture.image),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}H0.prototype.isWebGLRenderTarget=!0;class FK extends Ah{constructor(e=null,n=1,r=1,a=1){super(null),this.image={data:e,width:n,height:r,depth:a},this.magFilter=Pf,this.minFilter=Pf,this.wrapR=I0,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}FK.prototype.isDataArrayTexture=!0;class Rer extends H0{constructor(e,n,r){super(e,n),this.depth=r,this.texture=new FK(null,e,n,r),this.texture.isRenderTargetTexture=!0}}Rer.prototype.isWebGLArrayRenderTarget=!0;class sle extends Ah{constructor(e=null,n=1,r=1,a=1){super(null),this.image={data:e,width:n,height:r,depth:a},this.magFilter=Pf,this.minFilter=Pf,this.wrapR=I0,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}sle.prototype.isData3DTexture=!0;class Mer extends H0{constructor(e,n,r){super(e,n),this.depth=r,this.texture=new sle(null,e,n,r),this.texture.isRenderTargetTexture=!0}}Mer.prototype.isWebGL3DRenderTarget=!0;class Ner extends H0{constructor(e,n,r,a={}){super(e,n,a);const o=this.texture;this.texture=[];for(let s=0;s<r;s++)this.texture[s]=o.clone(),this.texture[s].isRenderTargetTexture=!0}setSize(e,n,r=1){if(this.width!==e||this.height!==n||this.depth!==r){this.width=e,this.height=n,this.depth=r;for(let a=0,o=this.texture.length;a<o;a++)this.texture[a].image.width=e,this.texture[a].image.height=n,this.texture[a].image.depth=r;this.dispose()}return this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n),this}copy(e){this.dispose(),this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.set(0,0,this.width,this.height),this.scissor.set(0,0,this.width,this.height),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this.texture.length=0;for(let n=0,r=e.texture.length;n<r;n++)this.texture[n]=e.texture[n].clone();return this}}Ner.prototype.isWebGLMultipleRenderTargets=!0;class Sp{constructor(e=0,n=0,r=0,a=1){this._x=e,this._y=n,this._z=r,this._w=a}static slerp(e,n,r,a){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),r.slerpQuaternions(e,n,a)}static slerpFlat(e,n,r,a,o,s,l){let c=r[a+0],u=r[a+1],d=r[a+2],h=r[a+3];const f=o[s+0],p=o[s+1],m=o[s+2],g=o[s+3];if(l===0){e[n+0]=c,e[n+1]=u,e[n+2]=d,e[n+3]=h;return}if(l===1){e[n+0]=f,e[n+1]=p,e[n+2]=m,e[n+3]=g;return}if(h!==g||c!==f||u!==p||d!==m){let v=1-l;const A=c*f+u*p+d*m+h*g,y=A>=0?1:-1,S=1-A*A;if(S>Number.EPSILON){const w=Math.sqrt(S),_=Math.atan2(w,A*y);v=Math.sin(v*_)/w,l=Math.sin(l*_)/w}const x=l*y;if(c=c*v+f*x,u=u*v+p*x,d=d*v+m*x,h=h*v+g*x,v===1-l){const w=1/Math.sqrt(c*c+u*u+d*d+h*h);c*=w,u*=w,d*=w,h*=w}}e[n]=c,e[n+1]=u,e[n+2]=d,e[n+3]=h}static multiplyQuaternionsFlat(e,n,r,a,o,s){const l=r[a],c=r[a+1],u=r[a+2],d=r[a+3],h=o[s],f=o[s+1],p=o[s+2],m=o[s+3];return e[n]=l*m+d*h+c*p-u*f,e[n+1]=c*m+d*f+u*h-l*p,e[n+2]=u*m+d*p+l*f-c*h,e[n+3]=d*m-l*h-c*f-u*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,r,a){return this._x=e,this._y=n,this._z=r,this._w=a,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n){if(!(e&&e.isEuler))throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const r=e._x,a=e._y,o=e._z,s=e._order,l=Math.cos,c=Math.sin,u=l(r/2),d=l(a/2),h=l(o/2),f=c(r/2),p=c(a/2),m=c(o/2);switch(s){case"XYZ":this._x=f*d*h+u*p*m,this._y=u*p*h-f*d*m,this._z=u*d*m+f*p*h,this._w=u*d*h-f*p*m;break;case"YXZ":this._x=f*d*h+u*p*m,this._y=u*p*h-f*d*m,this._z=u*d*m-f*p*h,this._w=u*d*h+f*p*m;break;case"ZXY":this._x=f*d*h-u*p*m,this._y=u*p*h+f*d*m,this._z=u*d*m+f*p*h,this._w=u*d*h-f*p*m;break;case"ZYX":this._x=f*d*h-u*p*m,this._y=u*p*h+f*d*m,this._z=u*d*m-f*p*h,this._w=u*d*h+f*p*m;break;case"YZX":this._x=f*d*h+u*p*m,this._y=u*p*h+f*d*m,this._z=u*d*m-f*p*h,this._w=u*d*h-f*p*m;break;case"XZY":this._x=f*d*h-u*p*m,this._y=u*p*h-f*d*m,this._z=u*d*m+f*p*h,this._w=u*d*h+f*p*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const r=n/2,a=Math.sin(r);return this._x=e.x*a,this._y=e.y*a,this._z=e.z*a,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,r=n[0],a=n[4],o=n[8],s=n[1],l=n[5],c=n[9],u=n[2],d=n[6],h=n[10],f=r+l+h;if(f>0){const p=.5/Math.sqrt(f+1);this._w=.25/p,this._x=(d-c)*p,this._y=(o-u)*p,this._z=(s-a)*p}else if(r>l&&r>h){const p=2*Math.sqrt(1+r-l-h);this._w=(d-c)/p,this._x=.25*p,this._y=(a+s)/p,this._z=(o+u)/p}else if(l>h){const p=2*Math.sqrt(1+l-r-h);this._w=(o-u)/p,this._x=(a+s)/p,this._y=.25*p,this._z=(c+d)/p}else{const p=2*Math.sqrt(1+h-r-l);this._w=(s-a)/p,this._x=(o+u)/p,this._y=(c+d)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let r=e.dot(n)+1;return r<Number.EPSILON?(r=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Uh(this.dot(e),-1,1)))}rotateTowards(e,n){const r=this.angleTo(e);if(r===0)return this;const a=Math.min(1,n/r);return this.slerp(e,a),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e,n){return n!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,n)):this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const r=e._x,a=e._y,o=e._z,s=e._w,l=n._x,c=n._y,u=n._z,d=n._w;return this._x=r*d+s*l+a*u-o*c,this._y=a*d+s*c+o*l-r*u,this._z=o*d+s*u+r*c-a*l,this._w=s*d-r*l-a*c-o*u,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const r=this._x,a=this._y,o=this._z,s=this._w;let l=s*e._w+r*e._x+a*e._y+o*e._z;if(l<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,l=-l):this.copy(e),l>=1)return this._w=s,this._x=r,this._y=a,this._z=o,this;const c=1-l*l;if(c<=Number.EPSILON){const p=1-n;return this._w=p*s+n*this._w,this._x=p*r+n*this._x,this._y=p*a+n*this._y,this._z=p*o+n*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(c),d=Math.atan2(u,l),h=Math.sin((1-n)*d)/u,f=Math.sin(n*d)/u;return this._w=s*h+this._w*f,this._x=r*h+this._x*f,this._y=a*h+this._y*f,this._z=o*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,r){return this.copy(e).slerp(n,r)}random(){const e=Math.random(),n=Math.sqrt(1-e),r=Math.sqrt(e),a=2*Math.PI*Math.random(),o=2*Math.PI*Math.random();return this.set(n*Math.cos(a),r*Math.sin(o),r*Math.cos(o),n*Math.sin(a))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}Sp.prototype.isQuaternion=!0;class et{constructor(e=0,n=0,r=0){this.x=e,this.y=n,this.z=r}set(e,n,r){return r===void 0&&(r=this.z),this.x=e,this.y=n,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e,n){return n!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,n)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e,n){return n!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,n)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e,n){return n!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,n)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(Qjt.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(Qjt.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,r=this.y,a=this.z,o=e.elements;return this.x=o[0]*n+o[3]*r+o[6]*a,this.y=o[1]*n+o[4]*r+o[7]*a,this.z=o[2]*n+o[5]*r+o[8]*a,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,r=this.y,a=this.z,o=e.elements,s=1/(o[3]*n+o[7]*r+o[11]*a+o[15]);return this.x=(o[0]*n+o[4]*r+o[8]*a+o[12])*s,this.y=(o[1]*n+o[5]*r+o[9]*a+o[13])*s,this.z=(o[2]*n+o[6]*r+o[10]*a+o[14])*s,this}applyQuaternion(e){const n=this.x,r=this.y,a=this.z,o=e.x,s=e.y,l=e.z,c=e.w,u=c*n+s*a-l*r,d=c*r+l*n-o*a,h=c*a+o*r-s*n,f=-o*n-s*r-l*a;return this.x=u*c+f*-o+d*-l-h*-s,this.y=d*c+f*-s+h*-o-u*-l,this.z=h*c+f*-l+u*-s-d*-o,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,r=this.y,a=this.z,o=e.elements;return this.x=o[0]*n+o[4]*r+o[8]*a,this.y=o[1]*n+o[5]*r+o[9]*a,this.z=o[2]*n+o[6]*r+o[10]*a,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this}cross(e,n){return n!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,n)):this.crossVectors(this,e)}crossVectors(e,n){const r=e.x,a=e.y,o=e.z,s=n.x,l=n.y,c=n.z;return this.x=a*c-o*l,this.y=o*s-r*c,this.z=r*l-a*s,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const r=e.dot(this)/n;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return E7e.copy(this).projectOnVector(e),this.sub(E7e)}reflect(e){return this.sub(E7e.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Uh(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y,a=this.z-e.z;return n*n+r*r+a*a}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,r){const a=Math.sin(n)*e;return this.x=a*Math.sin(r),this.y=Math.cos(n)*e,this.z=a*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,r){return this.x=e*Math.sin(n),this.y=r,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),a=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=r,this.z=a,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n,r){return r!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(n),this.y=r*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}et.prototype.isVector3=!0;const E7e=new et,Qjt=new Sp;class db{constructor(e=new et(1/0,1/0,1/0),n=new et(-1/0,-1/0,-1/0)){this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){let n=1/0,r=1/0,a=1/0,o=-1/0,s=-1/0,l=-1/0;for(let c=0,u=e.length;c<u;c+=3){const d=e[c],h=e[c+1],f=e[c+2];d<n&&(n=d),h<r&&(r=h),f<a&&(a=f),d>o&&(o=d),h>s&&(s=h),f>l&&(l=f)}return this.min.set(n,r,a),this.max.set(o,s,l),this}setFromBufferAttribute(e){let n=1/0,r=1/0,a=1/0,o=-1/0,s=-1/0,l=-1/0;for(let c=0,u=e.count;c<u;c++){const d=e.getX(c),h=e.getY(c),f=e.getZ(c);d<n&&(n=d),h<r&&(r=h),f<a&&(a=f),d>o&&(o=d),h>s&&(s=h),f>l&&(l=f)}return this.min.set(n,r,a),this.max.set(o,s,l),this}setFromPoints(e){this.makeEmpty();for(let n=0,r=e.length;n<r;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const r=PL.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),this}setFromObject(e,n=!1){return this.makeEmpty(),this.expandByObject(e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,n=!1){e.updateWorldMatrix(!1,!1);const r=e.geometry;if(r!==void 0)if(n&&r.attributes!=null&&r.attributes.position!==void 0){const o=r.attributes.position;for(let s=0,l=o.count;s<l;s++)PL.fromBufferAttribute(o,s).applyMatrix4(e.matrixWorld),this.expandByPoint(PL)}else r.boundingBox===null&&r.computeBoundingBox(),S7e.copy(r.boundingBox),S7e.applyMatrix4(e.matrixWorld),this.union(S7e);const a=e.children;for(let o=0,s=a.length;o<s;o++)this.expandByObject(a[o],n);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,PL),PL.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,r;return e.normal.x>0?(n=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),n<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(FJ),jfe.subVectors(this.max,FJ),I7.subVectors(e.a,FJ),P7.subVectors(e.b,FJ),O7.subVectors(e.c,FJ),II.subVectors(P7,I7),PI.subVectors(O7,P7),OL.subVectors(I7,O7);let n=[0,-II.z,II.y,0,-PI.z,PI.y,0,-OL.z,OL.y,II.z,0,-II.x,PI.z,0,-PI.x,OL.z,0,-OL.x,-II.y,II.x,0,-PI.y,PI.x,0,-OL.y,OL.x,0];return!w7e(n,I7,P7,O7,jfe)||(n=[1,0,0,0,1,0,0,0,1],!w7e(n,I7,P7,O7,jfe))?!1:(Hfe.crossVectors(II,PI),n=[Hfe.x,Hfe.y,Hfe.z],w7e(n,I7,P7,O7,jfe))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return PL.copy(e).clamp(this.min,this.max).sub(e).length()}getBoundingSphere(e){return this.getCenter(e.center),e.radius=this.getSize(PL).length()*.5,e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(qk[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),qk[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),qk[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),qk[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),qk[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),qk[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),qk[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),qk[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(qk),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}db.prototype.isBox3=!0;const qk=[new et,new et,new et,new et,new et,new et,new et,new et],PL=new et,S7e=new db,I7=new et,P7=new et,O7=new et,II=new et,PI=new et,OL=new et,FJ=new et,jfe=new et,Hfe=new et,LL=new et;function w7e(t,e,n,r,a){for(let o=0,s=t.length-3;o<=s;o+=3){LL.fromArray(t,o);const l=a.x*Math.abs(LL.x)+a.y*Math.abs(LL.y)+a.z*Math.abs(LL.z),c=e.dot(LL),u=n.dot(LL),d=r.dot(LL);if(Math.max(-Math.max(c,u,d),Math.min(c,u,d))>l)return!1}return!0}const Srs=new db,qjt=new et,Ufe=new et,_7e=new et;class PO{constructor(e=new et,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const r=this.center;n!==void 0?r.copy(n):Srs.setFromPoints(e).getCenter(r);let a=0;for(let o=0,s=e.length;o<s;o++)a=Math.max(a,r.distanceToSquared(e[o]));return this.radius=Math.sqrt(a),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const n=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=n*n}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,n){const r=this.center.distanceToSquared(e);return n.copy(e),r>this.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){_7e.subVectors(e,this.center);const n=_7e.lengthSq();if(n>this.radius*this.radius){const r=Math.sqrt(n),a=(r-this.radius)*.5;this.center.add(_7e.multiplyScalar(a/r)),this.radius+=a}return this}union(e){return this.center.equals(e.center)===!0?Ufe.set(0,0,1).multiplyScalar(e.radius):Ufe.subVectors(e.center,this.center).normalize().multiplyScalar(e.radius),this.expandByPoint(qjt.copy(e.center).add(Ufe)),this.expandByPoint(qjt.copy(e.center).sub(Ufe)),this}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Yk=new et,T7e=new et,zfe=new et,OI=new et,C7e=new et,Gfe=new et,k7e=new et;class MN{constructor(e=new et,n=new et(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.direction).multiplyScalar(e).add(this.origin)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Yk)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const r=n.dot(this.direction);return r<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(r).add(this.origin)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=Yk.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(Yk.copy(this.direction).multiplyScalar(n).add(this.origin),Yk.distanceToSquared(e))}distanceSqToSegment(e,n,r,a){T7e.copy(e).add(n).multiplyScalar(.5),zfe.copy(n).sub(e).normalize(),OI.copy(this.origin).sub(T7e);const o=e.distanceTo(n)*.5,s=-this.direction.dot(zfe),l=OI.dot(this.direction),c=-OI.dot(zfe),u=OI.lengthSq(),d=Math.abs(1-s*s);let h,f,p,m;if(d>0)if(h=s*c-l,f=s*l-c,m=o*d,h>=0)if(f>=-m)if(f<=m){const g=1/d;h*=g,f*=g,p=h*(h+s*f+2*l)+f*(s*h+f+2*c)+u}else f=o,h=Math.max(0,-(s*f+l)),p=-h*h+f*(f+2*c)+u;else f=-o,h=Math.max(0,-(s*f+l)),p=-h*h+f*(f+2*c)+u;else f<=-m?(h=Math.max(0,-(-s*o+l)),f=h>0?-o:Math.min(Math.max(-o,-c),o),p=-h*h+f*(f+2*c)+u):f<=m?(h=0,f=Math.min(Math.max(-o,-c),o),p=f*(f+2*c)+u):(h=Math.max(0,-(s*o+l)),f=h>0?o:Math.min(Math.max(-o,-c),o),p=-h*h+f*(f+2*c)+u);else f=s>0?-o:o,h=Math.max(0,-(s*f+l)),p=-h*h+f*(f+2*c)+u;return r&&r.copy(this.direction).multiplyScalar(h).add(this.origin),a&&a.copy(zfe).multiplyScalar(f).add(T7e),p}intersectSphere(e,n){Yk.subVectors(e.center,this.origin);const r=Yk.dot(this.direction),a=Yk.dot(Yk)-r*r,o=e.radius*e.radius;if(a>o)return null;const s=Math.sqrt(o-a),l=r-s,c=r+s;return l<0&&c<0?null:l<0?this.at(c,n):this.at(l,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/n;return r>=0?r:null}intersectPlane(e,n){const r=this.distanceToPlane(e);return r===null?null:this.at(r,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let r,a,o,s,l,c;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(r=(e.min.x-f.x)*u,a=(e.max.x-f.x)*u):(r=(e.max.x-f.x)*u,a=(e.min.x-f.x)*u),d>=0?(o=(e.min.y-f.y)*d,s=(e.max.y-f.y)*d):(o=(e.max.y-f.y)*d,s=(e.min.y-f.y)*d),r>s||o>a||((o>r||r!==r)&&(r=o),(s<a||a!==a)&&(a=s),h>=0?(l=(e.min.z-f.z)*h,c=(e.max.z-f.z)*h):(l=(e.max.z-f.z)*h,c=(e.min.z-f.z)*h),r>c||l>a)||((l>r||r!==r)&&(r=l),(c<a||a!==a)&&(a=c),a<0)?null:this.at(r>=0?r:a,n)}intersectsBox(e){return this.intersectBox(e,Yk)!==null}intersectTriangle(e,n,r,a,o){C7e.subVectors(n,e),Gfe.subVectors(r,e),k7e.crossVectors(C7e,Gfe);let s=this.direction.dot(k7e),l;if(s>0){if(a)return null;l=1}else if(s<0)l=-1,s=-s;else return null;OI.subVectors(this.origin,e);const c=l*this.direction.dot(Gfe.crossVectors(OI,Gfe));if(c<0)return null;const u=l*this.direction.dot(C7e.cross(OI));if(u<0||c+u>s)return null;const d=-l*OI.dot(k7e);return d<0?null:this.at(d/s,o)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class da{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(e,n,r,a,o,s,l,c,u,d,h,f,p,m,g,v){const A=this.elements;return A[0]=e,A[4]=n,A[8]=r,A[12]=a,A[1]=o,A[5]=s,A[9]=l,A[13]=c,A[2]=u,A[6]=d,A[10]=h,A[14]=f,A[3]=p,A[7]=m,A[11]=g,A[15]=v,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new da().fromArray(this.elements)}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=r[12],n[13]=r[13],n[14]=r[14],n[15]=r[15],this}copyPosition(e){const n=this.elements,r=e.elements;return n[12]=r[12],n[13]=r[13],n[14]=r[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,r){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,n,r){return this.set(e.x,n.x,r.x,0,e.y,n.y,r.y,0,e.z,n.z,r.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,r=e.elements,a=1/L7.setFromMatrixColumn(e,0).length(),o=1/L7.setFromMatrixColumn(e,1).length(),s=1/L7.setFromMatrixColumn(e,2).length();return n[0]=r[0]*a,n[1]=r[1]*a,n[2]=r[2]*a,n[3]=0,n[4]=r[4]*o,n[5]=r[5]*o,n[6]=r[6]*o,n[7]=0,n[8]=r[8]*s,n[9]=r[9]*s,n[10]=r[10]*s,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const n=this.elements,r=e.x,a=e.y,o=e.z,s=Math.cos(r),l=Math.sin(r),c=Math.cos(a),u=Math.sin(a),d=Math.cos(o),h=Math.sin(o);if(e.order==="XYZ"){const f=s*d,p=s*h,m=l*d,g=l*h;n[0]=c*d,n[4]=-c*h,n[8]=u,n[1]=p+m*u,n[5]=f-g*u,n[9]=-l*c,n[2]=g-f*u,n[6]=m+p*u,n[10]=s*c}else if(e.order==="YXZ"){const f=c*d,p=c*h,m=u*d,g=u*h;n[0]=f+g*l,n[4]=m*l-p,n[8]=s*u,n[1]=s*h,n[5]=s*d,n[9]=-l,n[2]=p*l-m,n[6]=g+f*l,n[10]=s*c}else if(e.order==="ZXY"){const f=c*d,p=c*h,m=u*d,g=u*h;n[0]=f-g*l,n[4]=-s*h,n[8]=m+p*l,n[1]=p+m*l,n[5]=s*d,n[9]=g-f*l,n[2]=-s*u,n[6]=l,n[10]=s*c}else if(e.order==="ZYX"){const f=s*d,p=s*h,m=l*d,g=l*h;n[0]=c*d,n[4]=m*u-p,n[8]=f*u+g,n[1]=c*h,n[5]=g*u+f,n[9]=p*u-m,n[2]=-u,n[6]=l*c,n[10]=s*c}else if(e.order==="YZX"){const f=s*c,p=s*u,m=l*c,g=l*u;n[0]=c*d,n[4]=g-f*h,n[8]=m*h+p,n[1]=h,n[5]=s*d,n[9]=-l*d,n[2]=-u*d,n[6]=p*h+m,n[10]=f-g*h}else if(e.order==="XZY"){const f=s*c,p=s*u,m=l*c,g=l*u;n[0]=c*d,n[4]=-h,n[8]=u*d,n[1]=f*h+g,n[5]=s*d,n[9]=p*h-m,n[2]=m*h-p,n[6]=l*d,n[10]=g*h+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(wrs,e,_rs)}lookAt(e,n,r){const a=this.elements;return oy.subVectors(e,n),oy.lengthSq()===0&&(oy.z=1),oy.normalize(),LI.crossVectors(r,oy),LI.lengthSq()===0&&(Math.abs(r.z)===1?oy.x+=1e-4:oy.z+=1e-4,oy.normalize(),LI.crossVectors(r,oy)),LI.normalize(),Vfe.crossVectors(oy,LI),a[0]=LI.x,a[4]=Vfe.x,a[8]=oy.x,a[1]=LI.y,a[5]=Vfe.y,a[9]=oy.y,a[2]=LI.z,a[6]=Vfe.z,a[10]=oy.z,this}multiply(e,n){return n!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,n)):this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,a=n.elements,o=this.elements,s=r[0],l=r[4],c=r[8],u=r[12],d=r[1],h=r[5],f=r[9],p=r[13],m=r[2],g=r[6],v=r[10],A=r[14],y=r[3],S=r[7],x=r[11],w=r[15],_=a[0],C=a[4],R=a[8],k=a[12],P=a[1],N=a[5],L=a[9],I=a[13],b=a[2],T=a[6],M=a[10],D=a[14],B=a[3],j=a[7],H=a[11],U=a[15];return o[0]=s*_+l*P+c*b+u*B,o[4]=s*C+l*N+c*T+u*j,o[8]=s*R+l*L+c*M+u*H,o[12]=s*k+l*I+c*D+u*U,o[1]=d*_+h*P+f*b+p*B,o[5]=d*C+h*N+f*T+p*j,o[9]=d*R+h*L+f*M+p*H,o[13]=d*k+h*I+f*D+p*U,o[2]=m*_+g*P+v*b+A*B,o[6]=m*C+g*N+v*T+A*j,o[10]=m*R+g*L+v*M+A*H,o[14]=m*k+g*I+v*D+A*U,o[3]=y*_+S*P+x*b+w*B,o[7]=y*C+S*N+x*T+w*j,o[11]=y*R+S*L+x*M+w*H,o[15]=y*k+S*I+x*D+w*U,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[4],a=e[8],o=e[12],s=e[1],l=e[5],c=e[9],u=e[13],d=e[2],h=e[6],f=e[10],p=e[14],m=e[3],g=e[7],v=e[11],A=e[15];return m*(+o*c*h-a*u*h-o*l*f+r*u*f+a*l*p-r*c*p)+g*(+n*c*p-n*u*f+o*s*f-a*s*p+a*u*d-o*c*d)+v*(+n*u*h-n*l*p-o*s*h+r*s*p+o*l*d-r*u*d)+A*(-a*l*d-n*c*h+n*l*f+a*s*h-r*s*f+r*c*d)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,r){const a=this.elements;return e.isVector3?(a[12]=e.x,a[13]=e.y,a[14]=e.z):(a[12]=e,a[13]=n,a[14]=r),this}invert(){const e=this.elements,n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=e[9],f=e[10],p=e[11],m=e[12],g=e[13],v=e[14],A=e[15],y=h*v*u-g*f*u+g*c*p-l*v*p-h*c*A+l*f*A,S=m*f*u-d*v*u-m*c*p+s*v*p+d*c*A-s*f*A,x=d*g*u-m*h*u+m*l*p-s*g*p-d*l*A+s*h*A,w=m*h*c-d*g*c-m*l*f+s*g*f+d*l*v-s*h*v,_=n*y+r*S+a*x+o*w;if(_===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const C=1/_;return e[0]=y*C,e[1]=(g*f*o-h*v*o-g*a*p+r*v*p+h*a*A-r*f*A)*C,e[2]=(l*v*o-g*c*o+g*a*u-r*v*u-l*a*A+r*c*A)*C,e[3]=(h*c*o-l*f*o-h*a*u+r*f*u+l*a*p-r*c*p)*C,e[4]=S*C,e[5]=(d*v*o-m*f*o+m*a*p-n*v*p-d*a*A+n*f*A)*C,e[6]=(m*c*o-s*v*o-m*a*u+n*v*u+s*a*A-n*c*A)*C,e[7]=(s*f*o-d*c*o+d*a*u-n*f*u-s*a*p+n*c*p)*C,e[8]=x*C,e[9]=(m*h*o-d*g*o-m*r*p+n*g*p+d*r*A-n*h*A)*C,e[10]=(s*g*o-m*l*o+m*r*u-n*g*u-s*r*A+n*l*A)*C,e[11]=(d*l*o-s*h*o-d*r*u+n*h*u+s*r*p-n*l*p)*C,e[12]=w*C,e[13]=(d*g*a-m*h*a+m*r*f-n*g*f-d*r*v+n*h*v)*C,e[14]=(m*l*a-s*g*a-m*r*c+n*g*c+s*r*v-n*l*v)*C,e[15]=(s*h*a-d*l*a+d*r*c-n*h*c-s*r*f+n*l*f)*C,this}scale(e){const n=this.elements,r=e.x,a=e.y,o=e.z;return n[0]*=r,n[4]*=a,n[8]*=o,n[1]*=r,n[5]*=a,n[9]*=o,n[2]*=r,n[6]*=a,n[10]*=o,n[3]*=r,n[7]*=a,n[11]*=o,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],a=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,r,a))}makeTranslation(e,n,r){return this.set(1,0,0,e,0,1,0,n,0,0,1,r,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const r=Math.cos(n),a=Math.sin(n),o=1-r,s=e.x,l=e.y,c=e.z,u=o*s,d=o*l;return this.set(u*s+r,u*l-a*c,u*c+a*l,0,u*l+a*c,d*l+r,d*c-a*s,0,u*c-a*l,d*c+a*s,o*c*c+r,0,0,0,0,1),this}makeScale(e,n,r){return this.set(e,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,n,r,a,o,s){return this.set(1,r,o,0,e,1,s,0,n,a,1,0,0,0,0,1),this}compose(e,n,r){const a=this.elements,o=n._x,s=n._y,l=n._z,c=n._w,u=o+o,d=s+s,h=l+l,f=o*u,p=o*d,m=o*h,g=s*d,v=s*h,A=l*h,y=c*u,S=c*d,x=c*h,w=r.x,_=r.y,C=r.z;return a[0]=(1-(g+A))*w,a[1]=(p+x)*w,a[2]=(m-S)*w,a[3]=0,a[4]=(p-x)*_,a[5]=(1-(f+A))*_,a[6]=(v+y)*_,a[7]=0,a[8]=(m+S)*C,a[9]=(v-y)*C,a[10]=(1-(f+g))*C,a[11]=0,a[12]=e.x,a[13]=e.y,a[14]=e.z,a[15]=1,this}decompose(e,n,r){const a=this.elements;let o=L7.set(a[0],a[1],a[2]).length();const s=L7.set(a[4],a[5],a[6]).length(),l=L7.set(a[8],a[9],a[10]).length();this.determinant()<0&&(o=-o),e.x=a[12],e.y=a[13],e.z=a[14],xS.copy(this);const u=1/o,d=1/s,h=1/l;return xS.elements[0]*=u,xS.elements[1]*=u,xS.elements[2]*=u,xS.elements[4]*=d,xS.elements[5]*=d,xS.elements[6]*=d,xS.elements[8]*=h,xS.elements[9]*=h,xS.elements[10]*=h,n.setFromRotationMatrix(xS),r.x=o,r.y=s,r.z=l,this}makePerspective(e,n,r,a,o,s){s===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const l=this.elements,c=2*o/(n-e),u=2*o/(r-a),d=(n+e)/(n-e),h=(r+a)/(r-a),f=-(s+o)/(s-o),p=-2*s*o/(s-o);return l[0]=c,l[4]=0,l[8]=d,l[12]=0,l[1]=0,l[5]=u,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=f,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,r,a,o,s){const l=this.elements,c=1/(n-e),u=1/(r-a),d=1/(s-o),h=(n+e)*c,f=(r+a)*u,p=(s+o)*d;return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-f,l[2]=0,l[6]=0,l[10]=-2*d,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,r=e.elements;for(let a=0;a<16;a++)if(n[a]!==r[a])return!1;return!0}fromArray(e,n=0){for(let r=0;r<16;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e[n+9]=r[9],e[n+10]=r[10],e[n+11]=r[11],e[n+12]=r[12],e[n+13]=r[13],e[n+14]=r[14],e[n+15]=r[15],e}}da.prototype.isMatrix4=!0;const L7=new et,xS=new da,wrs=new et(0,0,0),_rs=new et(1,1,1),LI=new et,Vfe=new et,oy=new et,Yjt=new da,Jjt=new Sp;class OO{constructor(e=0,n=0,r=0,a=OO.DefaultOrder){this._x=e,this._y=n,this._z=r,this._order=a}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,r,a=this._order){return this._x=e,this._y=n,this._z=r,this._order=a,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,r=!0){const a=e.elements,o=a[0],s=a[4],l=a[8],c=a[1],u=a[5],d=a[9],h=a[2],f=a[6],p=a[10];switch(n){case"XYZ":this._y=Math.asin(Uh(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,p),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Uh(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(l,p),this._z=Math.atan2(c,u)):(this._y=Math.atan2(-h,o),this._z=0);break;case"ZXY":this._x=Math.asin(Uh(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,p),this._z=Math.atan2(-s,u)):(this._y=0,this._z=Math.atan2(c,o));break;case"ZYX":this._y=Math.asin(-Uh(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,p),this._z=Math.atan2(c,o)):(this._x=0,this._z=Math.atan2(-s,u));break;case"YZX":this._z=Math.asin(Uh(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(l,p));break;case"XZY":this._z=Math.asin(-Uh(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(l,o)):(this._x=Math.atan2(-d,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,r){return Yjt.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Yjt,n,r)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return Jjt.setFromEuler(this),this.setFromQuaternion(Jjt,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}OO.prototype.isEuler=!0;OO.DefaultOrder="XYZ";OO.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class ZD{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let Trs=0;const Zjt=new et,B7=new Sp,Jk=new da,Kfe=new et,jJ=new et,Crs=new et,krs=new Sp,Xjt=new et(1,0,0),eHt=new et(0,1,0),tHt=new et(0,0,1),Rrs={type:"added"},nHt={type:"removed"};class zs extends RN{constructor(){super(),Object.defineProperty(this,"id",{value:Trs++}),this.uuid=Vy(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=zs.DefaultUp.clone();const e=new et,n=new OO,r=new Sp,a=new et(1,1,1);function o(){r.setFromEuler(n,!1)}function s(){n.setFromQuaternion(r,void 0,!1)}n._onChange(o),r._onChange(s),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:a},modelViewMatrix:{value:new da},normalMatrix:{value:new bp}}),this.matrix=new da,this.matrixWorld=new da,this.matrixAutoUpdate=zs.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new ZD,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return B7.setFromAxisAngle(e,n),this.quaternion.multiply(B7),this}rotateOnWorldAxis(e,n){return B7.setFromAxisAngle(e,n),this.quaternion.premultiply(B7),this}rotateX(e){return this.rotateOnAxis(Xjt,e)}rotateY(e){return this.rotateOnAxis(eHt,e)}rotateZ(e){return this.rotateOnAxis(tHt,e)}translateOnAxis(e,n){return Zjt.copy(e).applyQuaternion(this.quaternion),this.position.add(Zjt.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(Xjt,e)}translateY(e){return this.translateOnAxis(eHt,e)}translateZ(e){return this.translateOnAxis(tHt,e)}localToWorld(e){return e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return e.applyMatrix4(Jk.copy(this.matrixWorld).invert())}lookAt(e,n,r){e.isVector3?Kfe.copy(e):Kfe.set(e,n,r);const a=this.parent;this.updateWorldMatrix(!0,!1),jJ.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Jk.lookAt(jJ,Kfe,this.up):Jk.lookAt(Kfe,jJ,this.up),this.quaternion.setFromRotationMatrix(Jk),a&&(Jk.extractRotation(a.matrixWorld),B7.setFromRotationMatrix(Jk),this.quaternion.premultiply(B7.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(Rrs)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let r=0;r<arguments.length;r++)this.remove(arguments[r]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(nHt)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){for(let e=0;e<this.children.length;e++){const n=this.children[e];n.parent=null,n.dispatchEvent(nHt)}return this.children.length=0,this}attach(e){return this.updateWorldMatrix(!0,!1),Jk.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),Jk.multiply(e.parent.matrixWorld)),e.applyMatrix4(Jk),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,n){if(this[e]===n)return this;for(let r=0,a=this.children.length;r<a;r++){const s=this.children[r].getObjectByProperty(e,n);if(s!==void 0)return s}}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(jJ,e,Crs),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(jJ,krs,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(e){e(this);const n=this.children;for(let r=0,a=n.length;r<a;r++)n[r].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let r=0,a=n.length;r<a;r++)n[r].traverseVisible(e)}traverseAncestors(e){const n=this.parent;n!==null&&(e(n),n.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const n=this.children;for(let r=0,a=n.length;r<a;r++)n[r].updateMatrixWorld(e)}updateWorldMatrix(e,n){const r=this.parent;if(e===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),n===!0){const a=this.children;for(let o=0,s=a.length;o<s;o++)a[o].updateWorldMatrix(!1,!0)}}toJSON(e){const n=e===void 0||typeof e=="string",r={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},r.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const a={};a.uuid=this.uuid,a.type=this.type,this.name!==""&&(a.name=this.name),this.castShadow===!0&&(a.castShadow=!0),this.receiveShadow===!0&&(a.receiveShadow=!0),this.visible===!1&&(a.visible=!1),this.frustumCulled===!1&&(a.frustumCulled=!1),this.renderOrder!==0&&(a.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(a.userData=this.userData),a.layers=this.layers.mask,a.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(a.matrixAutoUpdate=!1),this.isInstancedMesh&&(a.type="InstancedMesh",a.count=this.count,a.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(a.instanceColor=this.instanceColor.toJSON()));function o(l,c){return l[c.uuid]===void 0&&(l[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?a.background=this.background.toJSON():this.background.isTexture&&(a.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&(a.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){a.geometry=o(e.geometries,this.geometry);const l=this.geometry.parameters;if(l!==void 0&&l.shapes!==void 0){const c=l.shapes;if(Array.isArray(c))for(let u=0,d=c.length;u<d;u++){const h=c[u];o(e.shapes,h)}else o(e.shapes,c)}}if(this.isSkinnedMesh&&(a.bindMode=this.bindMode,a.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(o(e.skeletons,this.skeleton),a.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const l=[];for(let c=0,u=this.material.length;c<u;c++)l.push(o(e.materials,this.material[c]));a.material=l}else a.material=o(e.materials,this.material);if(this.children.length>0){a.children=[];for(let l=0;l<this.children.length;l++)a.children.push(this.children[l].toJSON(e).object)}if(this.animations.length>0){a.animations=[];for(let l=0;l<this.animations.length;l++){const c=this.animations[l];a.animations.push(o(e.animations,c))}}if(n){const l=s(e.geometries),c=s(e.materials),u=s(e.textures),d=s(e.images),h=s(e.shapes),f=s(e.skeletons),p=s(e.animations),m=s(e.nodes);l.length>0&&(r.geometries=l),c.length>0&&(r.materials=c),u.length>0&&(r.textures=u),d.length>0&&(r.images=d),h.length>0&&(r.shapes=h),f.length>0&&(r.skeletons=f),p.length>0&&(r.animations=p),m.length>0&&(r.nodes=m)}return r.object=a,r;function s(l){const c=[];for(const u in l){const d=l[u];delete d.metadata,c.push(d)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let r=0;r<e.children.length;r++){const a=e.children[r];this.add(a.clone())}return this}}zs.DefaultUp=new et(0,1,0);zs.DefaultMatrixAutoUpdate=!0;zs.prototype.isObject3D=!0;const ES=new et,Zk=new et,R7e=new et,Xk=new et,D7=new et,$7=new et,rHt=new et,M7e=new et,N7e=new et,I7e=new et;class Gh{constructor(e=new et,n=new et,r=new et){this.a=e,this.b=n,this.c=r}static getNormal(e,n,r,a){a.subVectors(r,n),ES.subVectors(e,n),a.cross(ES);const o=a.lengthSq();return o>0?a.multiplyScalar(1/Math.sqrt(o)):a.set(0,0,0)}static getBarycoord(e,n,r,a,o){ES.subVectors(a,n),Zk.subVectors(r,n),R7e.subVectors(e,n);const s=ES.dot(ES),l=ES.dot(Zk),c=ES.dot(R7e),u=Zk.dot(Zk),d=Zk.dot(R7e),h=s*u-l*l;if(h===0)return o.set(-2,-1,-1);const f=1/h,p=(u*c-l*d)*f,m=(s*d-l*c)*f;return o.set(1-p-m,m,p)}static containsPoint(e,n,r,a){return this.getBarycoord(e,n,r,a,Xk),Xk.x>=0&&Xk.y>=0&&Xk.x+Xk.y<=1}static getUV(e,n,r,a,o,s,l,c){return this.getBarycoord(e,n,r,a,Xk),c.set(0,0),c.addScaledVector(o,Xk.x),c.addScaledVector(s,Xk.y),c.addScaledVector(l,Xk.z),c}static isFrontFacing(e,n,r,a){return ES.subVectors(r,n),Zk.subVectors(e,n),ES.cross(Zk).dot(a)<0}set(e,n,r){return this.a.copy(e),this.b.copy(n),this.c.copy(r),this}setFromPointsAndIndices(e,n,r,a){return this.a.copy(e[n]),this.b.copy(e[r]),this.c.copy(e[a]),this}setFromAttributeAndIndices(e,n,r,a){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,a),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return ES.subVectors(this.c,this.b),Zk.subVectors(this.a,this.b),ES.cross(Zk).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Gh.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return Gh.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,r,a,o){return Gh.getUV(e,this.a,this.b,this.c,n,r,a,o)}containsPoint(e){return Gh.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Gh.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const r=this.a,a=this.b,o=this.c;let s,l;D7.subVectors(a,r),$7.subVectors(o,r),M7e.subVectors(e,r);const c=D7.dot(M7e),u=$7.dot(M7e);if(c<=0&&u<=0)return n.copy(r);N7e.subVectors(e,a);const d=D7.dot(N7e),h=$7.dot(N7e);if(d>=0&&h<=d)return n.copy(a);const f=c*h-d*u;if(f<=0&&c>=0&&d<=0)return s=c/(c-d),n.copy(r).addScaledVector(D7,s);I7e.subVectors(e,o);const p=D7.dot(I7e),m=$7.dot(I7e);if(m>=0&&p<=m)return n.copy(o);const g=p*u-c*m;if(g<=0&&u>=0&&m<=0)return l=u/(u-m),n.copy(r).addScaledVector($7,l);const v=d*m-p*h;if(v<=0&&h-d>=0&&p-m>=0)return rHt.subVectors(o,a),l=(h-d)/(h-d+(p-m)),n.copy(a).addScaledVector(rHt,l);const A=1/(v+g+f);return s=g*A,l=f*A,n.copy(r).addScaledVector(D7,s).addScaledVector($7,l)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let Mrs=0;class cf extends RN{constructor(){super(),Object.defineProperty(this,"id",{value:Mrs++}),this.uuid=Vy(),this.name="",this.type="Material",this.fog=!0,this.blending=WD,this.side=m8,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=Bdt,this.blendDst=Ddt,this.blendEquation=TB,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=Abe,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=_er,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Qge,this.stencilZFail=Qge,this.stencilZPass=Qge,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const r=e[n];if(r===void 0){console.warn("THREE.Material: '"+n+"' parameter is undefined.");continue}if(n==="shading"){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=r===Ldt;continue}const a=this[n];if(a===void 0){console.warn("THREE."+this.type+": '"+n+"' is not a property of this material.");continue}a&&a.isColor?a.set(r):a&&a.isVector3&&r&&r.isVector3?a.copy(r):this[n]=r}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const r={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==WD&&(r.blending=this.blending),this.side!==m8&&(r.side=this.side),this.vertexColors&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=this.transparent),r.depthFunc=this.depthFunc,r.depthTest=this.depthTest,r.depthWrite=this.depthWrite,r.colorWrite=this.colorWrite,r.stencilWrite=this.stencilWrite,r.stencilWriteMask=this.stencilWriteMask,r.stencilFunc=this.stencilFunc,r.stencilRef=this.stencilRef,r.stencilFuncMask=this.stencilFuncMask,r.stencilFail=this.stencilFail,r.stencilZFail=this.stencilZFail,r.stencilZPass=this.stencilZPass,this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaToCoverage===!0&&(r.alphaToCoverage=this.alphaToCoverage),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(r.wireframe=this.wireframe),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=this.flatShading),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),JSON.stringify(this.userData)!=="{}"&&(r.userData=this.userData);function a(o){const s=[];for(const l in o){const c=o[l];delete c.metadata,s.push(c)}return s}if(n){const o=a(e.textures),s=a(e.images);o.length>0&&(r.textures=o),s.length>0&&(r.images=s)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let r=null;if(n!==null){const a=n.length;r=new Array(a);for(let o=0;o!==a;++o)r[o]=n[o].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}cf.prototype.isMaterial=!0;cf.fromType=function(){return null};class NN extends cf{constructor(e){super(),this.type="MeshBasicMaterial",this.color=new ci(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ole,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}NN.prototype.isMeshBasicMaterial=!0;const xf=new et,Wfe=new Qn;class bl{constructor(e,n,r){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=r===!0,this.usage=Mz,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}copyAt(e,n,r){e*=this.itemSize,r*=n.itemSize;for(let a=0,o=this.itemSize;a<o;a++)this.array[e+a]=n.array[r+a];return this}copyArray(e){return this.array.set(e),this}copyColorsArray(e){const n=this.array;let r=0;for(let a=0,o=e.length;a<o;a++){let s=e[a];s===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",a),s=new ci),n[r++]=s.r,n[r++]=s.g,n[r++]=s.b}return this}copyVector2sArray(e){const n=this.array;let r=0;for(let a=0,o=e.length;a<o;a++){let s=e[a];s===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",a),s=new Qn),n[r++]=s.x,n[r++]=s.y}return this}copyVector3sArray(e){const n=this.array;let r=0;for(let a=0,o=e.length;a<o;a++){let s=e[a];s===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",a),s=new et),n[r++]=s.x,n[r++]=s.y,n[r++]=s.z}return this}copyVector4sArray(e){const n=this.array;let r=0;for(let a=0,o=e.length;a<o;a++){let s=e[a];s===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",a),s=new Ac),n[r++]=s.x,n[r++]=s.y,n[r++]=s.z,n[r++]=s.w}return this}applyMatrix3(e){if(this.itemSize===2)for(let n=0,r=this.count;n<r;n++)Wfe.fromBufferAttribute(this,n),Wfe.applyMatrix3(e),this.setXY(n,Wfe.x,Wfe.y);else if(this.itemSize===3)for(let n=0,r=this.count;n<r;n++)xf.fromBufferAttribute(this,n),xf.applyMatrix3(e),this.setXYZ(n,xf.x,xf.y,xf.z);return this}applyMatrix4(e){for(let n=0,r=this.count;n<r;n++)xf.fromBufferAttribute(this,n),xf.applyMatrix4(e),this.setXYZ(n,xf.x,xf.y,xf.z);return this}applyNormalMatrix(e){for(let n=0,r=this.count;n<r;n++)xf.fromBufferAttribute(this,n),xf.applyNormalMatrix(e),this.setXYZ(n,xf.x,xf.y,xf.z);return this}transformDirection(e){for(let n=0,r=this.count;n<r;n++)xf.fromBufferAttribute(this,n),xf.transformDirection(e),this.setXYZ(n,xf.x,xf.y,xf.z);return this}set(e,n=0){return this.array.set(e,n),this}getX(e){return this.array[e*this.itemSize]}setX(e,n){return this.array[e*this.itemSize]=n,this}getY(e){return this.array[e*this.itemSize+1]}setY(e,n){return this.array[e*this.itemSize+1]=n,this}getZ(e){return this.array[e*this.itemSize+2]}setZ(e,n){return this.array[e*this.itemSize+2]=n,this}getW(e){return this.array[e*this.itemSize+3]}setW(e,n){return this.array[e*this.itemSize+3]=n,this}setXY(e,n,r){return e*=this.itemSize,this.array[e+0]=n,this.array[e+1]=r,this}setXYZ(e,n,r,a){return e*=this.itemSize,this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=a,this}setXYZW(e,n,r,a,o){return e*=this.itemSize,this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=a,this.array[e+3]=o,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==Mz&&(e.usage=this.usage),(this.updateRange.offset!==0||this.updateRange.count!==-1)&&(e.updateRange=this.updateRange),e}}bl.prototype.isBufferAttribute=!0;class Ier extends bl{constructor(e,n,r){super(new Int8Array(e),n,r)}}class Per extends bl{constructor(e,n,r){super(new Uint8Array(e),n,r)}}class Oer extends bl{constructor(e,n,r){super(new Uint8ClampedArray(e),n,r)}}class Ler extends bl{constructor(e,n,r){super(new Int16Array(e),n,r)}}class tke extends bl{constructor(e,n,r){super(new Uint16Array(e),n,r)}}class Ber extends bl{constructor(e,n,r){super(new Int32Array(e),n,r)}}class nke extends bl{constructor(e,n,r){super(new Uint32Array(e),n,r)}}class Der extends bl{constructor(e,n,r){super(new Uint16Array(e),n,r)}}Der.prototype.isFloat16BufferAttribute=!0;class oa extends bl{constructor(e,n,r){super(new Float32Array(e),n,r)}}class $er extends bl{constructor(e,n,r){super(new Float64Array(e),n,r)}}let Nrs=0;const Hb=new da,P7e=new zs,F7=new et,sy=new db,HJ=new db,Gp=new et;class Ya extends RN{constructor(){super(),Object.defineProperty(this,"id",{value:Nrs++}),this.uuid=Vy(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Cer(e)?nke:tke)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,n){return this.attributes[e]=n,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,n,r=0){this.groups.push({start:e,count:n,materialIndex:r})}clearGroups(){this.groups=[]}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}applyMatrix4(e){const n=this.attributes.position;n!==void 0&&(n.applyMatrix4(e),n.needsUpdate=!0);const r=this.attributes.normal;if(r!==void 0){const o=new bp().getNormalMatrix(e);r.applyNormalMatrix(o),r.needsUpdate=!0}const a=this.attributes.tangent;return a!==void 0&&(a.transformDirection(e),a.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return Hb.makeRotationFromQuaternion(e),this.applyMatrix4(Hb),this}rotateX(e){return Hb.makeRotationX(e),this.applyMatrix4(Hb),this}rotateY(e){return Hb.makeRotationY(e),this.applyMatrix4(Hb),this}rotateZ(e){return Hb.makeRotationZ(e),this.applyMatrix4(Hb),this}translate(e,n,r){return Hb.makeTranslation(e,n,r),this.applyMatrix4(Hb),this}scale(e,n,r){return Hb.makeScale(e,n,r),this.applyMatrix4(Hb),this}lookAt(e){return P7e.lookAt(e),P7e.updateMatrix(),this.applyMatrix4(P7e.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(F7).negate(),this.translate(F7.x,F7.y,F7.z),this}setFromPoints(e){const n=[];for(let r=0,a=e.length;r<a;r++){const o=e[r];n.push(o.x,o.y,o.z||0)}return this.setAttribute("position",new oa(n,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new db);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingBox.set(new et(-1/0,-1/0,-1/0),new et(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),n)for(let r=0,a=n.length;r<a;r++){const o=n[r];sy.setFromBufferAttribute(o),this.morphTargetsRelative?(Gp.addVectors(this.boundingBox.min,sy.min),this.boundingBox.expandByPoint(Gp),Gp.addVectors(this.boundingBox.max,sy.max),this.boundingBox.expandByPoint(Gp)):(this.boundingBox.expandByPoint(sy.min),this.boundingBox.expandByPoint(sy.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new PO);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingSphere.set(new et,1/0);return}if(e){const r=this.boundingSphere.center;if(sy.setFromBufferAttribute(e),n)for(let o=0,s=n.length;o<s;o++){const l=n[o];HJ.setFromBufferAttribute(l),this.morphTargetsRelative?(Gp.addVectors(sy.min,HJ.min),sy.expandByPoint(Gp),Gp.addVectors(sy.max,HJ.max),sy.expandByPoint(Gp)):(sy.expandByPoint(HJ.min),sy.expandByPoint(HJ.max))}sy.getCenter(r);let a=0;for(let o=0,s=e.count;o<s;o++)Gp.fromBufferAttribute(e,o),a=Math.max(a,r.distanceToSquared(Gp));if(n)for(let o=0,s=n.length;o<s;o++){const l=n[o],c=this.morphTargetsRelative;for(let u=0,d=l.count;u<d;u++)Gp.fromBufferAttribute(l,u),c&&(F7.fromBufferAttribute(e,u),Gp.add(F7)),a=Math.max(a,r.distanceToSquared(Gp))}this.boundingSphere.radius=Math.sqrt(a),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,n=this.attributes;if(e===null||n.position===void 0||n.normal===void 0||n.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const r=e.array,a=n.position.array,o=n.normal.array,s=n.uv.array,l=a.length/3;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new bl(new Float32Array(4*l),4));const c=this.getAttribute("tangent").array,u=[],d=[];for(let P=0;P<l;P++)u[P]=new et,d[P]=new et;const h=new et,f=new et,p=new et,m=new Qn,g=new Qn,v=new Qn,A=new et,y=new et;function S(P,N,L){h.fromArray(a,P*3),f.fromArray(a,N*3),p.fromArray(a,L*3),m.fromArray(s,P*2),g.fromArray(s,N*2),v.fromArray(s,L*2),f.sub(h),p.sub(h),g.sub(m),v.sub(m);const I=1/(g.x*v.y-v.x*g.y);isFinite(I)&&(A.copy(f).multiplyScalar(v.y).addScaledVector(p,-g.y).multiplyScalar(I),y.copy(p).multiplyScalar(g.x).addScaledVector(f,-v.x).multiplyScalar(I),u[P].add(A),u[N].add(A),u[L].add(A),d[P].add(y),d[N].add(y),d[L].add(y))}let x=this.groups;x.length===0&&(x=[{start:0,count:r.length}]);for(let P=0,N=x.length;P<N;++P){const L=x[P],I=L.start,b=L.count;for(let T=I,M=I+b;T<M;T+=3)S(r[T+0],r[T+1],r[T+2])}const w=new et,_=new et,C=new et,R=new et;function k(P){C.fromArray(o,P*3),R.copy(C);const N=u[P];w.copy(N),w.sub(C.multiplyScalar(C.dot(N))).normalize(),_.crossVectors(R,N);const I=_.dot(d[P])<0?-1:1;c[P*4]=w.x,c[P*4+1]=w.y,c[P*4+2]=w.z,c[P*4+3]=I}for(let P=0,N=x.length;P<N;++P){const L=x[P],I=L.start,b=L.count;for(let T=I,M=I+b;T<M;T+=3)k(r[T+0]),k(r[T+1]),k(r[T+2])}}computeVertexNormals(){const e=this.index,n=this.getAttribute("position");if(n!==void 0){let r=this.getAttribute("normal");if(r===void 0)r=new bl(new Float32Array(n.count*3),3),this.setAttribute("normal",r);else for(let f=0,p=r.count;f<p;f++)r.setXYZ(f,0,0,0);const a=new et,o=new et,s=new et,l=new et,c=new et,u=new et,d=new et,h=new et;if(e)for(let f=0,p=e.count;f<p;f+=3){const m=e.getX(f+0),g=e.getX(f+1),v=e.getX(f+2);a.fromBufferAttribute(n,m),o.fromBufferAttribute(n,g),s.fromBufferAttribute(n,v),d.subVectors(s,o),h.subVectors(a,o),d.cross(h),l.fromBufferAttribute(r,m),c.fromBufferAttribute(r,g),u.fromBufferAttribute(r,v),l.add(d),c.add(d),u.add(d),r.setXYZ(m,l.x,l.y,l.z),r.setXYZ(g,c.x,c.y,c.z),r.setXYZ(v,u.x,u.y,u.z)}else for(let f=0,p=n.count;f<p;f+=3)a.fromBufferAttribute(n,f+0),o.fromBufferAttribute(n,f+1),s.fromBufferAttribute(n,f+2),d.subVectors(s,o),h.subVectors(a,o),d.cross(h),r.setXYZ(f+0,d.x,d.y,d.z),r.setXYZ(f+1,d.x,d.y,d.z),r.setXYZ(f+2,d.x,d.y,d.z);this.normalizeNormals(),r.needsUpdate=!0}}merge(e,n){if(!(e&&e.isBufferGeometry)){console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",e);return}n===void 0&&(n=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const r=this.attributes;for(const a in r){if(e.attributes[a]===void 0)continue;const s=r[a].array,l=e.attributes[a],c=l.array,u=l.itemSize*n,d=Math.min(c.length,s.length-u);for(let h=0,f=u;h<d;h++,f++)s[f]=c[h]}return this}normalizeNormals(){const e=this.attributes.normal;for(let n=0,r=e.count;n<r;n++)Gp.fromBufferAttribute(e,n),Gp.normalize(),e.setXYZ(n,Gp.x,Gp.y,Gp.z)}toNonIndexed(){function e(l,c){const u=l.array,d=l.itemSize,h=l.normalized,f=new u.constructor(c.length*d);let p=0,m=0;for(let g=0,v=c.length;g<v;g++){l.isInterleavedBufferAttribute?p=c[g]*l.data.stride+l.offset:p=c[g]*d;for(let A=0;A<d;A++)f[m++]=u[p++]}return new bl(f,d,h)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new Ya,r=this.index.array,a=this.attributes;for(const l in a){const c=a[l],u=e(c,r);n.setAttribute(l,u)}const o=this.morphAttributes;for(const l in o){const c=[],u=o[l];for(let d=0,h=u.length;d<h;d++){const f=u[d],p=e(f,r);c.push(p)}n.morphAttributes[l]=c}n.morphTargetsRelative=this.morphTargetsRelative;const s=this.groups;for(let l=0,c=s.length;l<c;l++){const u=s[l];n.addGroup(u.start,u.count,u.materialIndex)}return n}toJSON(){const e={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const u in c)c[u]!==void 0&&(e[u]=c[u]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const r=this.attributes;for(const c in r){const u=r[c];e.data.attributes[c]=u.toJSON(e.data)}const a={};let o=!1;for(const c in this.morphAttributes){const u=this.morphAttributes[c],d=[];for(let h=0,f=u.length;h<f;h++){const p=u[h];d.push(p.toJSON(e.data))}d.length>0&&(a[c]=d,o=!0)}o&&(e.data.morphAttributes=a,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const l=this.boundingSphere;return l!==null&&(e.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(n));const a=e.attributes;for(const u in a){const d=a[u];this.setAttribute(u,d.clone(n))}const o=e.morphAttributes;for(const u in o){const d=[],h=o[u];for(let f=0,p=h.length;f<p;f++)d.push(h[f].clone(n));this.morphAttributes[u]=d}this.morphTargetsRelative=e.morphTargetsRelative;const s=e.groups;for(let u=0,d=s.length;u<d;u++){const h=s[u];this.addGroup(h.start,h.count,h.materialIndex)}const l=e.boundingBox;l!==null&&(this.boundingBox=l.clone());const c=e.boundingSphere;return c!==null&&(this.boundingSphere=c.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,e.parameters!==void 0&&(this.parameters=Object.assign({},e.parameters)),this}dispose(){this.dispatchEvent({type:"dispose"})}}Ya.prototype.isBufferGeometry=!0;const iHt=new da,j7=new MN,O7e=new PO,BI=new et,DI=new et,$I=new et,L7e=new et,B7e=new et,D7e=new et,Qfe=new et,qfe=new et,Yfe=new et,Jfe=new Qn,Zfe=new Qn,Xfe=new Qn,$7e=new et,epe=new et;class Bf extends zs{constructor(e=new Ya,n=new NN){super(),this.type="Mesh",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e){return super.copy(e),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const n=e.morphAttributes,r=Object.keys(n);if(r.length>0){const a=n[r[0]];if(a!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=a.length;o<s;o++){const l=a[o].name||String(o);this.morphTargetInfluences.push(0),this.morphTargetDictionary[l]=o}}}}else{const n=e.morphTargets;n!==void 0&&n.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}raycast(e,n){const r=this.geometry,a=this.material,o=this.matrixWorld;if(a===void 0||(r.boundingSphere===null&&r.computeBoundingSphere(),O7e.copy(r.boundingSphere),O7e.applyMatrix4(o),e.ray.intersectsSphere(O7e)===!1)||(iHt.copy(o).invert(),j7.copy(e.ray).applyMatrix4(iHt),r.boundingBox!==null&&j7.intersectsBox(r.boundingBox)===!1))return;let s;if(r.isBufferGeometry){const l=r.index,c=r.attributes.position,u=r.morphAttributes.position,d=r.morphTargetsRelative,h=r.attributes.uv,f=r.attributes.uv2,p=r.groups,m=r.drawRange;if(l!==null)if(Array.isArray(a))for(let g=0,v=p.length;g<v;g++){const A=p[g],y=a[A.materialIndex],S=Math.max(A.start,m.start),x=Math.min(l.count,Math.min(A.start+A.count,m.start+m.count));for(let w=S,_=x;w<_;w+=3){const C=l.getX(w),R=l.getX(w+1),k=l.getX(w+2);s=tpe(this,y,e,j7,c,u,d,h,f,C,R,k),s&&(s.faceIndex=Math.floor(w/3),s.face.materialIndex=A.materialIndex,n.push(s))}}else{const g=Math.max(0,m.start),v=Math.min(l.count,m.start+m.count);for(let A=g,y=v;A<y;A+=3){const S=l.getX(A),x=l.getX(A+1),w=l.getX(A+2);s=tpe(this,a,e,j7,c,u,d,h,f,S,x,w),s&&(s.faceIndex=Math.floor(A/3),n.push(s))}}else if(c!==void 0)if(Array.isArray(a))for(let g=0,v=p.length;g<v;g++){const A=p[g],y=a[A.materialIndex],S=Math.max(A.start,m.start),x=Math.min(c.count,Math.min(A.start+A.count,m.start+m.count));for(let w=S,_=x;w<_;w+=3){const C=w,R=w+1,k=w+2;s=tpe(this,y,e,j7,c,u,d,h,f,C,R,k),s&&(s.faceIndex=Math.floor(w/3),s.face.materialIndex=A.materialIndex,n.push(s))}}else{const g=Math.max(0,m.start),v=Math.min(c.count,m.start+m.count);for(let A=g,y=v;A<y;A+=3){const S=A,x=A+1,w=A+2;s=tpe(this,a,e,j7,c,u,d,h,f,S,x,w),s&&(s.faceIndex=Math.floor(A/3),n.push(s))}}}else r.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}Bf.prototype.isMesh=!0;function Irs(t,e,n,r,a,o,s,l){let c;if(e.side===Gy?c=r.intersectTriangle(s,o,a,!0,l):c=r.intersectTriangle(a,o,s,e.side!==g8,l),c===null)return null;epe.copy(l),epe.applyMatrix4(t.matrixWorld);const u=n.ray.origin.distanceTo(epe);return u<n.near||u>n.far?null:{distance:u,point:epe.clone(),object:t}}function tpe(t,e,n,r,a,o,s,l,c,u,d,h){BI.fromBufferAttribute(a,u),DI.fromBufferAttribute(a,d),$I.fromBufferAttribute(a,h);const f=t.morphTargetInfluences;if(o&&f){Qfe.set(0,0,0),qfe.set(0,0,0),Yfe.set(0,0,0);for(let m=0,g=o.length;m<g;m++){const v=f[m],A=o[m];v!==0&&(L7e.fromBufferAttribute(A,u),B7e.fromBufferAttribute(A,d),D7e.fromBufferAttribute(A,h),s?(Qfe.addScaledVector(L7e,v),qfe.addScaledVector(B7e,v),Yfe.addScaledVector(D7e,v)):(Qfe.addScaledVector(L7e.sub(BI),v),qfe.addScaledVector(B7e.sub(DI),v),Yfe.addScaledVector(D7e.sub($I),v)))}BI.add(Qfe),DI.add(qfe),$I.add(Yfe)}t.isSkinnedMesh&&(t.boneTransform(u,BI),t.boneTransform(d,DI),t.boneTransform(h,$I));const p=Irs(t,e,n,r,BI,DI,$I,$7e);if(p){l&&(Jfe.fromBufferAttribute(l,u),Zfe.fromBufferAttribute(l,d),Xfe.fromBufferAttribute(l,h),p.uv=Gh.getUV($7e,BI,DI,$I,Jfe,Zfe,Xfe,new Qn)),c&&(Jfe.fromBufferAttribute(c,u),Zfe.fromBufferAttribute(c,d),Xfe.fromBufferAttribute(c,h),p.uv2=Gh.getUV($7e,BI,DI,$I,Jfe,Zfe,Xfe,new Qn));const m={a:u,b:d,c:h,normal:new et,materialIndex:0};Gh.getNormal(BI,DI,$I,m.normal),p.face=m}return p}class GM extends Ya{constructor(e=1,n=1,r=1,a=1,o=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:a,heightSegments:o,depthSegments:s};const l=this;a=Math.floor(a),o=Math.floor(o),s=Math.floor(s);const c=[],u=[],d=[],h=[];let f=0,p=0;m("z","y","x",-1,-1,r,n,e,s,o,0),m("z","y","x",1,-1,r,n,-e,s,o,1),m("x","z","y",1,1,e,r,n,a,s,2),m("x","z","y",1,-1,e,r,-n,a,s,3),m("x","y","z",1,-1,e,n,r,a,o,4),m("x","y","z",-1,-1,e,n,-r,a,o,5),this.setIndex(c),this.setAttribute("position",new oa(u,3)),this.setAttribute("normal",new oa(d,3)),this.setAttribute("uv",new oa(h,2));function m(g,v,A,y,S,x,w,_,C,R,k){const P=x/C,N=w/R,L=x/2,I=w/2,b=_/2,T=C+1,M=R+1;let D=0,B=0;const j=new et;for(let H=0;H<M;H++){const U=H*N-I;for(let $=0;$<T;$++){const z=$*P-L;j[g]=z*y,j[v]=U*S,j[A]=b,u.push(j.x,j.y,j.z),j[g]=0,j[v]=0,j[A]=_>0?1:-1,d.push(j.x,j.y,j.z),h.push($/C),h.push(1-H/R),D+=1}}for(let H=0;H<R;H++)for(let U=0;U<C;U++){const $=f+U+T*H,z=f+U+T*(H+1),Z=f+(U+1)+T*(H+1),K=f+(U+1)+T*H;c.push($,z,K),c.push(z,Z,K),B+=6}l.addGroup(p,B,k),p+=B,f+=D}}static fromJSON(e){return new GM(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Iz(t){const e={};for(const n in t){e[n]={};for(const r in t[n]){const a=t[n][r];a&&(a.isColor||a.isMatrix3||a.isMatrix4||a.isVector2||a.isVector3||a.isVector4||a.isTexture||a.isQuaternion)?e[n][r]=a.clone():Array.isArray(a)?e[n][r]=a.slice():e[n][r]=a}}return e}function Wg(t){const e={};for(let n=0;n<t.length;n++){const r=Iz(t[n]);for(const a in r)e[a]=r[a]}return e}const Fer={clone:Iz,merge:Wg};var Prs=`void main() {
	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}`,Ors=`void main() {
	gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
}`;class rE extends cf{constructor(e){super(),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=Prs,this.fragmentShader=Ors,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&(e.attributes!==void 0&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(e))}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Iz(e.uniforms),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const a in this.uniforms){const s=this.uniforms[a].value;s&&s.isTexture?n.uniforms[a]={type:"t",value:s.toJSON(e).uuid}:s&&s.isColor?n.uniforms[a]={type:"c",value:s.getHex()}:s&&s.isVector2?n.uniforms[a]={type:"v2",value:s.toArray()}:s&&s.isVector3?n.uniforms[a]={type:"v3",value:s.toArray()}:s&&s.isVector4?n.uniforms[a]={type:"v4",value:s.toArray()}:s&&s.isMatrix3?n.uniforms[a]={type:"m3",value:s.toArray()}:s&&s.isMatrix4?n.uniforms[a]={type:"m4",value:s.toArray()}:n.uniforms[a]={value:s}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader;const r={};for(const a in this.extensions)this.extensions[a]===!0&&(r[a]=!0);return Object.keys(r).length>0&&(n.extensions=r),n}}rE.prototype.isShaderMaterial=!0;class A8 extends zs{constructor(){super(),this.type="Camera",this.matrixWorldInverse=new da,this.projectionMatrix=new da,this.projectionMatrixInverse=new da}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(-n[8],-n[9],-n[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}A8.prototype.isCamera=!0;class Xu extends A8{constructor(e=50,n=1,r=.1,a=2e3){super(),this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=a,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=lie*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(YD*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return lie*2*Math.atan(Math.tan(YD*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,n,r,a,o,s){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=a,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(YD*.5*this.fov)/this.zoom,r=2*n,a=this.aspect*r,o=-.5*a;const s=this.view;if(this.view!==null&&this.view.enabled){const c=s.fullWidth,u=s.fullHeight;o+=s.offsetX*a/c,n-=s.offsetY*r/u,a*=s.width/c,r*=s.height/u}const l=this.filmOffset;l!==0&&(o+=e*l/this.getFilmWidth()),this.projectionMatrix.makePerspective(o,o+a,n,n-r,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}Xu.prototype.isPerspectiveCamera=!0;const H7=90,U7=1;class rke extends zs{constructor(e,n,r){if(super(),this.type="CubeCamera",r.isWebGLCubeRenderTarget!==!0){console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");return}this.renderTarget=r;const a=new Xu(H7,U7,e,n);a.layers=this.layers,a.up.set(0,-1,0),a.lookAt(new et(1,0,0)),this.add(a);const o=new Xu(H7,U7,e,n);o.layers=this.layers,o.up.set(0,-1,0),o.lookAt(new et(-1,0,0)),this.add(o);const s=new Xu(H7,U7,e,n);s.layers=this.layers,s.up.set(0,0,1),s.lookAt(new et(0,1,0)),this.add(s);const l=new Xu(H7,U7,e,n);l.layers=this.layers,l.up.set(0,0,-1),l.lookAt(new et(0,-1,0)),this.add(l);const c=new Xu(H7,U7,e,n);c.layers=this.layers,c.up.set(0,-1,0),c.lookAt(new et(0,0,1)),this.add(c);const u=new Xu(H7,U7,e,n);u.layers=this.layers,u.up.set(0,-1,0),u.lookAt(new et(0,0,-1)),this.add(u)}update(e,n){this.parent===null&&this.updateMatrixWorld();const r=this.renderTarget,[a,o,s,l,c,u]=this.children,d=e.getRenderTarget(),h=e.outputEncoding,f=e.toneMapping,p=e.xr.enabled;e.outputEncoding=nE,e.toneMapping=_w,e.xr.enabled=!1;const m=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0),e.render(n,a),e.setRenderTarget(r,1),e.render(n,o),e.setRenderTarget(r,2),e.render(n,s),e.setRenderTarget(r,3),e.render(n,l),e.setRenderTarget(r,4),e.render(n,c),r.texture.generateMipmaps=m,e.setRenderTarget(r,5),e.render(n,u),e.setRenderTarget(d),e.outputEncoding=h,e.toneMapping=f,e.xr.enabled=p,r.texture.needsPMREMUpdate=!0}}class jK extends Ah{constructor(e,n,r,a,o,s,l,c,u,d){e=e!==void 0?e:[],n=n!==void 0?n:jP,super(e,n,r,a,o,s,l,c,u,d),this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}jK.prototype.isCubeTexture=!0;class ike extends H0{constructor(e,n={}){super(e,e,n);const r={width:e,height:e,depth:1},a=[r,r,r,r,r,r];this.texture=new jK(a,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:Hh}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.encoding=n.encoding,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:`

				varying vec3 vWorldDirection;

				vec3 transformDirection( in vec3 dir, in mat4 matrix ) {

					return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );

				}

				void main() {

					vWorldDirection = transformDirection( position, modelMatrix );

					#include <begin_vertex>
					#include <project_vertex>

				}
			`,fragmentShader:`

				uniform sampler2D tEquirect;

				varying vec3 vWorldDirection;

				#include <common>

				void main() {

					vec3 direction = normalize( vWorldDirection );

					vec2 sampleUV = equirectUv( direction );

					gl_FragColor = texture2D( tEquirect, sampleUV );

				}
			`},a=new GM(5,5,5),o=new rE({name:"CubemapFromEquirect",uniforms:Iz(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:Gy,blending:lM});o.uniforms.tEquirect.value=n;const s=new Bf(a,o),l=n.minFilter;return n.minFilter===V9&&(n.minFilter=Hh),new rke(1,10,this).update(e,s),n.minFilter=l,s.geometry.dispose(),s.material.dispose(),this}clear(e,n,r,a){const o=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(n,r,a);e.setRenderTarget(o)}}ike.prototype.isWebGLCubeRenderTarget=!0;const F7e=new et,Lrs=new et,Brs=new bp;class KS{constructor(e=new et(1,0,0),n=0){this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,r,a){return this.normal.set(e,n,r),this.constant=a,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,r){const a=F7e.subVectors(r,n).cross(Lrs.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(a,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}intersectLine(e,n){const r=e.delta(F7e),a=this.normal.dot(r);if(a===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const o=-(e.start.dot(this.normal)+this.constant)/a;return o<0||o>1?null:n.copy(r).multiplyScalar(o).add(e.start)}intersectsLine(e){const n=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return n<0&&r>0||r<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const r=n||Brs.getNormalMatrix(e),a=this.coplanarPoint(F7e).applyMatrix4(e),o=this.normal.applyMatrix3(r).normalize();return this.constant=-a.dot(o),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}KS.prototype.isPlane=!0;const z7=new PO,npe=new et;class lle{constructor(e=new KS,n=new KS,r=new KS,a=new KS,o=new KS,s=new KS){this.planes=[e,n,r,a,o,s]}set(e,n,r,a,o,s){const l=this.planes;return l[0].copy(e),l[1].copy(n),l[2].copy(r),l[3].copy(a),l[4].copy(o),l[5].copy(s),this}copy(e){const n=this.planes;for(let r=0;r<6;r++)n[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e){const n=this.planes,r=e.elements,a=r[0],o=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=r[6],h=r[7],f=r[8],p=r[9],m=r[10],g=r[11],v=r[12],A=r[13],y=r[14],S=r[15];return n[0].setComponents(l-a,h-c,g-f,S-v).normalize(),n[1].setComponents(l+a,h+c,g+f,S+v).normalize(),n[2].setComponents(l+o,h+u,g+p,S+A).normalize(),n[3].setComponents(l-o,h-u,g-p,S-A).normalize(),n[4].setComponents(l-s,h-d,g-m,S-y).normalize(),n[5].setComponents(l+s,h+d,g+m,S+y).normalize(),this}intersectsObject(e){const n=e.geometry;return n.boundingSphere===null&&n.computeBoundingSphere(),z7.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(z7)}intersectsSprite(e){return z7.center.set(0,0,0),z7.radius=.7071067811865476,z7.applyMatrix4(e.matrixWorld),this.intersectsSphere(z7)}intersectsSphere(e){const n=this.planes,r=e.center,a=-e.radius;for(let o=0;o<6;o++)if(n[o].distanceToPoint(r)<a)return!1;return!0}intersectsBox(e){const n=this.planes;for(let r=0;r<6;r++){const a=n[r];if(npe.x=a.normal.x>0?e.max.x:e.min.x,npe.y=a.normal.y>0?e.max.y:e.min.y,npe.z=a.normal.z>0?e.max.z:e.min.z,a.distanceToPoint(npe)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let r=0;r<6;r++)if(n[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function jer(){let t=null,e=!1,n=null,r=null;function a(o,s){n(o,s),r=t.requestAnimationFrame(a)}return{start:function(){e!==!0&&n!==null&&(r=t.requestAnimationFrame(a),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(o){n=o},setContext:function(o){t=o}}}function Drs(t,e){const n=e.isWebGL2,r=new WeakMap;function a(u,d){const h=u.array,f=u.usage,p=t.createBuffer();t.bindBuffer(d,p),t.bufferData(d,h,f),u.onUploadCallback();let m;if(h instanceof Float32Array)m=5126;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(n)m=5131;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else m=5123;else if(h instanceof Int16Array)m=5122;else if(h instanceof Uint32Array)m=5125;else if(h instanceof Int32Array)m=5124;else if(h instanceof Int8Array)m=5120;else if(h instanceof Uint8Array)m=5121;else if(h instanceof Uint8ClampedArray)m=5121;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:p,type:m,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version}}function o(u,d,h){const f=d.array,p=d.updateRange;t.bindBuffer(h,u),p.count===-1?t.bufferSubData(h,0,f):(n?t.bufferSubData(h,p.offset*f.BYTES_PER_ELEMENT,f,p.offset,p.count):t.bufferSubData(h,p.offset*f.BYTES_PER_ELEMENT,f.subarray(p.offset,p.offset+p.count)),p.count=-1)}function s(u){return u.isInterleavedBufferAttribute&&(u=u.data),r.get(u)}function l(u){u.isInterleavedBufferAttribute&&(u=u.data);const d=r.get(u);d&&(t.deleteBuffer(d.buffer),r.delete(u))}function c(u,d){if(u.isGLBufferAttribute){const f=r.get(u);(!f||f.version<u.version)&&r.set(u,{buffer:u.buffer,type:u.type,bytesPerElement:u.elementSize,version:u.version});return}u.isInterleavedBufferAttribute&&(u=u.data);const h=r.get(u);h===void 0?r.set(u,a(u,d)):h.version<u.version&&(o(h.buffer,u,d),h.version=u.version)}return{get:s,remove:l,update:c}}class y8 extends Ya{constructor(e=1,n=1,r=1,a=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:r,heightSegments:a};const o=e/2,s=n/2,l=Math.floor(r),c=Math.floor(a),u=l+1,d=c+1,h=e/l,f=n/c,p=[],m=[],g=[],v=[];for(let A=0;A<d;A++){const y=A*f-s;for(let S=0;S<u;S++){const x=S*h-o;m.push(x,-y,0),g.push(0,0,1),v.push(S/l),v.push(1-A/c)}}for(let A=0;A<c;A++)for(let y=0;y<l;y++){const S=y+u*A,x=y+u*(A+1),w=y+1+u*(A+1),_=y+1+u*A;p.push(S,x,_),p.push(x,w,_)}this.setIndex(p),this.setAttribute("position",new oa(m,3)),this.setAttribute("normal",new oa(g,3)),this.setAttribute("uv",new oa(v,2))}static fromJSON(e){return new y8(e.width,e.height,e.widthSegments,e.heightSegments)}}var $rs=`#ifdef USE_ALPHAMAP
	diffuseColor.a *= texture2D( alphaMap, vUv ).g;
#endif`,Frs=`#ifdef USE_ALPHAMAP
	uniform sampler2D alphaMap;
#endif`,jrs=`#ifdef USE_ALPHATEST
	if ( diffuseColor.a < alphaTest ) discard;
#endif`,Hrs=`#ifdef USE_ALPHATEST
	uniform float alphaTest;
#endif`,Urs=`#ifdef USE_AOMAP
	float ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;
	reflectedLight.indirectDiffuse *= ambientOcclusion;
	#if defined( USE_ENVMAP ) && defined( STANDARD )
		float dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );
		reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
	#endif
#endif`,zrs=`#ifdef USE_AOMAP
	uniform sampler2D aoMap;
	uniform float aoMapIntensity;
#endif`,Grs="vec3 transformed = vec3( position );",Vrs=`vec3 objectNormal = vec3( normal );
#ifdef USE_TANGENT
	vec3 objectTangent = vec3( tangent.xyz );
#endif`,Krs=`vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
	return RECIPROCAL_PI * diffuseColor;
}
vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
}
float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
	float a2 = pow2( alpha );
	float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
	float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
	return 0.5 / max( gv + gl, EPSILON );
}
float D_GGX( const in float alpha, const in float dotNH ) {
	float a2 = pow2( alpha );
	float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
	return RECIPROCAL_PI * a2 / pow2( denom );
}
vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float roughness ) {
	float alpha = pow2( roughness );
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNL = saturate( dot( normal, lightDir ) );
	float dotNV = saturate( dot( normal, viewDir ) );
	float dotNH = saturate( dot( normal, halfDir ) );
	float dotVH = saturate( dot( viewDir, halfDir ) );
	vec3 F = F_Schlick( f0, f90, dotVH );
	float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
	float D = D_GGX( alpha, dotNH );
	return F * ( V * D );
}
vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
	const float LUT_SIZE = 64.0;
	const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
	const float LUT_BIAS = 0.5 / LUT_SIZE;
	float dotNV = saturate( dot( N, V ) );
	vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
	uv = uv * LUT_SCALE + LUT_BIAS;
	return uv;
}
float LTC_ClippedSphereFormFactor( const in vec3 f ) {
	float l = length( f );
	return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
}
vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
	float x = dot( v1, v2 );
	float y = abs( x );
	float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
	float b = 3.4175940 + ( 4.1616724 + y ) * y;
	float v = a / b;
	float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
	return cross( v1, v2 ) * theta_sintheta;
}
vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
	vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
	vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
	vec3 lightNormal = cross( v1, v2 );
	if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
	vec3 T1, T2;
	T1 = normalize( V - N * dot( V, N ) );
	T2 = - cross( N, T1 );
	mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
	vec3 coords[ 4 ];
	coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
	coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
	coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
	coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
	coords[ 0 ] = normalize( coords[ 0 ] );
	coords[ 1 ] = normalize( coords[ 1 ] );
	coords[ 2 ] = normalize( coords[ 2 ] );
	coords[ 3 ] = normalize( coords[ 3 ] );
	vec3 vectorFormFactor = vec3( 0.0 );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
	float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
	return vec3( result );
}
float G_BlinnPhong_Implicit( ) {
	return 0.25;
}
float D_BlinnPhong( const in float shininess, const in float dotNH ) {
	return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
}
vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNH = saturate( dot( normal, halfDir ) );
	float dotVH = saturate( dot( viewDir, halfDir ) );
	vec3 F = F_Schlick( specularColor, 1.0, dotVH );
	float G = G_BlinnPhong_Implicit( );
	float D = D_BlinnPhong( shininess, dotNH );
	return F * ( G * D );
}
#if defined( USE_SHEEN )
float D_Charlie( float roughness, float dotNH ) {
	float alpha = pow2( roughness );
	float invAlpha = 1.0 / alpha;
	float cos2h = dotNH * dotNH;
	float sin2h = max( 1.0 - cos2h, 0.0078125 );
	return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
}
float V_Neubelt( float dotNV, float dotNL ) {
	return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
}
vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNL = saturate( dot( normal, lightDir ) );
	float dotNV = saturate( dot( normal, viewDir ) );
	float dotNH = saturate( dot( normal, halfDir ) );
	float D = D_Charlie( sheenRoughness, dotNH );
	float V = V_Neubelt( dotNV, dotNL );
	return sheenColor * ( D * V );
}
#endif`,Wrs=`#ifdef USE_BUMPMAP
	uniform sampler2D bumpMap;
	uniform float bumpScale;
	vec2 dHdxy_fwd() {
		vec2 dSTdx = dFdx( vUv );
		vec2 dSTdy = dFdy( vUv );
		float Hll = bumpScale * texture2D( bumpMap, vUv ).x;
		float dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;
		float dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;
		return vec2( dBx, dBy );
	}
	vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
		vec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );
		vec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );
		vec3 vN = surf_norm;
		vec3 R1 = cross( vSigmaY, vN );
		vec3 R2 = cross( vN, vSigmaX );
		float fDet = dot( vSigmaX, R1 ) * faceDirection;
		vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
		return normalize( abs( fDet ) * surf_norm - vGrad );
	}
#endif`,Qrs=`#if NUM_CLIPPING_PLANES > 0
	vec4 plane;
	#pragma unroll_loop_start
	for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
		plane = clippingPlanes[ i ];
		if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
	}
	#pragma unroll_loop_end
	#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
		bool clipped = true;
		#pragma unroll_loop_start
		for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
			plane = clippingPlanes[ i ];
			clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
		}
		#pragma unroll_loop_end
		if ( clipped ) discard;
	#endif
#endif`,qrs=`#if NUM_CLIPPING_PLANES > 0
	varying vec3 vClipPosition;
	uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
#endif`,Yrs=`#if NUM_CLIPPING_PLANES > 0
	varying vec3 vClipPosition;
#endif`,Jrs=`#if NUM_CLIPPING_PLANES > 0
	vClipPosition = - mvPosition.xyz;
#endif`,Zrs=`#if defined( USE_COLOR_ALPHA )
	diffuseColor *= vColor;
#elif defined( USE_COLOR )
	diffuseColor.rgb *= vColor;
#endif`,Xrs=`#if defined( USE_COLOR_ALPHA )
	varying vec4 vColor;
#elif defined( USE_COLOR )
	varying vec3 vColor;
#endif`,eis=`#if defined( USE_COLOR_ALPHA )
	varying vec4 vColor;
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
	varying vec3 vColor;
#endif`,tis=`#if defined( USE_COLOR_ALPHA )
	vColor = vec4( 1.0 );
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
	vColor = vec3( 1.0 );
#endif
#ifdef USE_COLOR
	vColor *= color;
#endif
#ifdef USE_INSTANCING_COLOR
	vColor.xyz *= instanceColor.xyz;
#endif`,nis=`#define PI 3.141592653589793
#define PI2 6.283185307179586
#define PI_HALF 1.5707963267948966
#define RECIPROCAL_PI 0.3183098861837907
#define RECIPROCAL_PI2 0.15915494309189535
#define EPSILON 1e-6
#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
#define whiteComplement( a ) ( 1.0 - saturate( a ) )
float pow2( const in float x ) { return x*x; }
float pow3( const in float x ) { return x*x*x; }
float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
float average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }
highp float rand( const in vec2 uv ) {
	const highp float a = 12.9898, b = 78.233, c = 43758.5453;
	highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
	return fract( sin( sn ) * c );
}
#ifdef HIGH_PRECISION
	float precisionSafeLength( vec3 v ) { return length( v ); }
#else
	float precisionSafeLength( vec3 v ) {
		float maxComponent = max3( abs( v ) );
		return length( v / maxComponent ) * maxComponent;
	}
#endif
struct IncidentLight {
	vec3 color;
	vec3 direction;
	bool visible;
};
struct ReflectedLight {
	vec3 directDiffuse;
	vec3 directSpecular;
	vec3 indirectDiffuse;
	vec3 indirectSpecular;
};
struct GeometricContext {
	vec3 position;
	vec3 normal;
	vec3 viewDir;
#ifdef USE_CLEARCOAT
	vec3 clearcoatNormal;
#endif
};
vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
	return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
}
vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
	return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
}
mat3 transposeMat3( const in mat3 m ) {
	mat3 tmp;
	tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
	tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
	tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
	return tmp;
}
float linearToRelativeLuminance( const in vec3 color ) {
	vec3 weights = vec3( 0.2126, 0.7152, 0.0722 );
	return dot( weights, color.rgb );
}
bool isPerspectiveMatrix( mat4 m ) {
	return m[ 2 ][ 3 ] == - 1.0;
}
vec2 equirectUv( in vec3 dir ) {
	float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
	float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
	return vec2( u, v );
}`,ris=`#ifdef ENVMAP_TYPE_CUBE_UV
	#define cubeUV_minMipLevel 4.0
	#define cubeUV_minTileSize 16.0
	float getFace( vec3 direction ) {
		vec3 absDirection = abs( direction );
		float face = - 1.0;
		if ( absDirection.x > absDirection.z ) {
			if ( absDirection.x > absDirection.y )
				face = direction.x > 0.0 ? 0.0 : 3.0;
			else
				face = direction.y > 0.0 ? 1.0 : 4.0;
		} else {
			if ( absDirection.z > absDirection.y )
				face = direction.z > 0.0 ? 2.0 : 5.0;
			else
				face = direction.y > 0.0 ? 1.0 : 4.0;
		}
		return face;
	}
	vec2 getUV( vec3 direction, float face ) {
		vec2 uv;
		if ( face == 0.0 ) {
			uv = vec2( direction.z, direction.y ) / abs( direction.x );
		} else if ( face == 1.0 ) {
			uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
		} else if ( face == 2.0 ) {
			uv = vec2( - direction.x, direction.y ) / abs( direction.z );
		} else if ( face == 3.0 ) {
			uv = vec2( - direction.z, direction.y ) / abs( direction.x );
		} else if ( face == 4.0 ) {
			uv = vec2( - direction.x, direction.z ) / abs( direction.y );
		} else {
			uv = vec2( direction.x, direction.y ) / abs( direction.z );
		}
		return 0.5 * ( uv + 1.0 );
	}
	vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
		float face = getFace( direction );
		float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
		mipInt = max( mipInt, cubeUV_minMipLevel );
		float faceSize = exp2( mipInt );
		vec2 uv = getUV( direction, face ) * ( faceSize - 1.0 ) + 0.5;
		if ( face > 2.0 ) {
			uv.y += faceSize;
			face -= 3.0;
		}
		uv.x += face * faceSize;
		uv.x += filterInt * 3.0 * cubeUV_minTileSize;
		uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
		uv.x *= CUBEUV_TEXEL_WIDTH;
		uv.y *= CUBEUV_TEXEL_HEIGHT;
		#ifdef texture2DGradEXT
			return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
		#else
			return texture2D( envMap, uv ).rgb;
		#endif
	}
	#define r0 1.0
	#define v0 0.339
	#define m0 - 2.0
	#define r1 0.8
	#define v1 0.276
	#define m1 - 1.0
	#define r4 0.4
	#define v4 0.046
	#define m4 2.0
	#define r5 0.305
	#define v5 0.016
	#define m5 3.0
	#define r6 0.21
	#define v6 0.0038
	#define m6 4.0
	float roughnessToMip( float roughness ) {
		float mip = 0.0;
		if ( roughness >= r1 ) {
			mip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;
		} else if ( roughness >= r4 ) {
			mip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;
		} else if ( roughness >= r5 ) {
			mip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;
		} else if ( roughness >= r6 ) {
			mip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;
		} else {
			mip = - 2.0 * log2( 1.16 * roughness );		}
		return mip;
	}
	vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
		float mip = clamp( roughnessToMip( roughness ), m0, CUBEUV_MAX_MIP );
		float mipF = fract( mip );
		float mipInt = floor( mip );
		vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
		if ( mipF == 0.0 ) {
			return vec4( color0, 1.0 );
		} else {
			vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
			return vec4( mix( color0, color1, mipF ), 1.0 );
		}
	}
#endif`,iis=`vec3 transformedNormal = objectNormal;
#ifdef USE_INSTANCING
	mat3 m = mat3( instanceMatrix );
	transformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );
	transformedNormal = m * transformedNormal;
#endif
transformedNormal = normalMatrix * transformedNormal;
#ifdef FLIP_SIDED
	transformedNormal = - transformedNormal;
#endif
#ifdef USE_TANGENT
	vec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;
	#ifdef FLIP_SIDED
		transformedTangent = - transformedTangent;
	#endif
#endif`,ais=`#ifdef USE_DISPLACEMENTMAP
	uniform sampler2D displacementMap;
	uniform float displacementScale;
	uniform float displacementBias;
#endif`,ois=`#ifdef USE_DISPLACEMENTMAP
	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );
#endif`,sis=`#ifdef USE_EMISSIVEMAP
	vec4 emissiveColor = texture2D( emissiveMap, vUv );
	totalEmissiveRadiance *= emissiveColor.rgb;
#endif`,lis=`#ifdef USE_EMISSIVEMAP
	uniform sampler2D emissiveMap;
#endif`,cis="gl_FragColor = linearToOutputTexel( gl_FragColor );",uis=`vec4 LinearToLinear( in vec4 value ) {
	return value;
}
vec4 LinearTosRGB( in vec4 value ) {
	return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
}`,dis=`#ifdef USE_ENVMAP
	#ifdef ENV_WORLDPOS
		vec3 cameraToFrag;
		if ( isOrthographic ) {
			cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
		} else {
			cameraToFrag = normalize( vWorldPosition - cameraPosition );
		}
		vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
		#ifdef ENVMAP_MODE_REFLECTION
			vec3 reflectVec = reflect( cameraToFrag, worldNormal );
		#else
			vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
		#endif
	#else
		vec3 reflectVec = vReflect;
	#endif
	#ifdef ENVMAP_TYPE_CUBE
		vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
	#elif defined( ENVMAP_TYPE_CUBE_UV )
		vec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );
	#else
		vec4 envColor = vec4( 0.0 );
	#endif
	#ifdef ENVMAP_BLENDING_MULTIPLY
		outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
	#elif defined( ENVMAP_BLENDING_MIX )
		outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
	#elif defined( ENVMAP_BLENDING_ADD )
		outgoingLight += envColor.xyz * specularStrength * reflectivity;
	#endif
#endif`,his=`#ifdef USE_ENVMAP
	uniform float envMapIntensity;
	uniform float flipEnvMap;
	#ifdef ENVMAP_TYPE_CUBE
		uniform samplerCube envMap;
	#else
		uniform sampler2D envMap;
	#endif
	
#endif`,fis=`#ifdef USE_ENVMAP
	uniform float reflectivity;
	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )
		#define ENV_WORLDPOS
	#endif
	#ifdef ENV_WORLDPOS
		varying vec3 vWorldPosition;
		uniform float refractionRatio;
	#else
		varying vec3 vReflect;
	#endif
#endif`,pis=`#ifdef USE_ENVMAP
	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )
		#define ENV_WORLDPOS
	#endif
	#ifdef ENV_WORLDPOS
		
		varying vec3 vWorldPosition;
	#else
		varying vec3 vReflect;
		uniform float refractionRatio;
	#endif
#endif`,mis=`#ifdef USE_ENVMAP
	#ifdef ENV_WORLDPOS
		vWorldPosition = worldPosition.xyz;
	#else
		vec3 cameraToVertex;
		if ( isOrthographic ) {
			cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
		} else {
			cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
		}
		vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
		#ifdef ENVMAP_MODE_REFLECTION
			vReflect = reflect( cameraToVertex, worldNormal );
		#else
			vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
		#endif
	#endif
#endif`,gis=`#ifdef USE_FOG
	vFogDepth = - mvPosition.z;
#endif`,vis=`#ifdef USE_FOG
	varying float vFogDepth;
#endif`,Ais=`#ifdef USE_FOG
	#ifdef FOG_EXP2
		float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
	#else
		float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
	#endif
	gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
#endif`,yis=`#ifdef USE_FOG
	uniform vec3 fogColor;
	varying float vFogDepth;
	#ifdef FOG_EXP2
		uniform float fogDensity;
	#else
		uniform float fogNear;
		uniform float fogFar;
	#endif
#endif`,bis=`#ifdef USE_GRADIENTMAP
	uniform sampler2D gradientMap;
#endif
vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
	float dotNL = dot( normal, lightDirection );
	vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
	#ifdef USE_GRADIENTMAP
		return vec3( texture2D( gradientMap, coord ).r );
	#else
		return ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );
	#endif
}`,xis=`#ifdef USE_LIGHTMAP
	vec4 lightMapTexel = texture2D( lightMap, vUv2 );
	vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
	reflectedLight.indirectDiffuse += lightMapIrradiance;
#endif`,Eis=`#ifdef USE_LIGHTMAP
	uniform sampler2D lightMap;
	uniform float lightMapIntensity;
#endif`,Sis=`vec3 diffuse = vec3( 1.0 );
GeometricContext geometry;
geometry.position = mvPosition.xyz;
geometry.normal = normalize( transformedNormal );
geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );
GeometricContext backGeometry;
backGeometry.position = geometry.position;
backGeometry.normal = -geometry.normal;
backGeometry.viewDir = geometry.viewDir;
vLightFront = vec3( 0.0 );
vIndirectFront = vec3( 0.0 );
#ifdef DOUBLE_SIDED
	vLightBack = vec3( 0.0 );
	vIndirectBack = vec3( 0.0 );
#endif
IncidentLight directLight;
float dotNL;
vec3 directLightColor_Diffuse;
vIndirectFront += getAmbientLightIrradiance( ambientLightColor );
vIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal );
#ifdef DOUBLE_SIDED
	vIndirectBack += getAmbientLightIrradiance( ambientLightColor );
	vIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );
#endif
#if NUM_POINT_LIGHTS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
		getPointLightInfo( pointLights[ i ], geometry, directLight );
		dotNL = dot( geometry.normal, directLight.direction );
		directLightColor_Diffuse = directLight.color;
		vLightFront += saturate( dotNL ) * directLightColor_Diffuse;
		#ifdef DOUBLE_SIDED
			vLightBack += saturate( - dotNL ) * directLightColor_Diffuse;
		#endif
	}
	#pragma unroll_loop_end
#endif
#if NUM_SPOT_LIGHTS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
		getSpotLightInfo( spotLights[ i ], geometry, directLight );
		dotNL = dot( geometry.normal, directLight.direction );
		directLightColor_Diffuse = directLight.color;
		vLightFront += saturate( dotNL ) * directLightColor_Diffuse;
		#ifdef DOUBLE_SIDED
			vLightBack += saturate( - dotNL ) * directLightColor_Diffuse;
		#endif
	}
	#pragma unroll_loop_end
#endif
#if NUM_DIR_LIGHTS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
		getDirectionalLightInfo( directionalLights[ i ], geometry, directLight );
		dotNL = dot( geometry.normal, directLight.direction );
		directLightColor_Diffuse = directLight.color;
		vLightFront += saturate( dotNL ) * directLightColor_Diffuse;
		#ifdef DOUBLE_SIDED
			vLightBack += saturate( - dotNL ) * directLightColor_Diffuse;
		#endif
	}
	#pragma unroll_loop_end
#endif
#if NUM_HEMI_LIGHTS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
		vIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );
		#ifdef DOUBLE_SIDED
			vIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );
		#endif
	}
	#pragma unroll_loop_end
#endif`,wis=`uniform bool receiveShadow;
uniform vec3 ambientLightColor;
uniform vec3 lightProbe[ 9 ];
vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
	float x = normal.x, y = normal.y, z = normal.z;
	vec3 result = shCoefficients[ 0 ] * 0.886227;
	result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
	result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
	result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
	result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
	result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
	result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
	result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
	result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
	return result;
}
vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
	vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
	vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
	return irradiance;
}
vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
	vec3 irradiance = ambientLightColor;
	return irradiance;
}
float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
	#if defined ( PHYSICALLY_CORRECT_LIGHTS )
		float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
		if ( cutoffDistance > 0.0 ) {
			distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
		}
		return distanceFalloff;
	#else
		if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {
			return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );
		}
		return 1.0;
	#endif
}
float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
	return smoothstep( coneCosine, penumbraCosine, angleCosine );
}
#if NUM_DIR_LIGHTS > 0
	struct DirectionalLight {
		vec3 direction;
		vec3 color;
	};
	uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
	void getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {
		light.color = directionalLight.color;
		light.direction = directionalLight.direction;
		light.visible = true;
	}
#endif
#if NUM_POINT_LIGHTS > 0
	struct PointLight {
		vec3 position;
		vec3 color;
		float distance;
		float decay;
	};
	uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
	void getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {
		vec3 lVector = pointLight.position - geometry.position;
		light.direction = normalize( lVector );
		float lightDistance = length( lVector );
		light.color = pointLight.color;
		light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
		light.visible = ( light.color != vec3( 0.0 ) );
	}
#endif
#if NUM_SPOT_LIGHTS > 0
	struct SpotLight {
		vec3 position;
		vec3 direction;
		vec3 color;
		float distance;
		float decay;
		float coneCos;
		float penumbraCos;
	};
	uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
	void getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {
		vec3 lVector = spotLight.position - geometry.position;
		light.direction = normalize( lVector );
		float angleCos = dot( light.direction, spotLight.direction );
		float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
		if ( spotAttenuation > 0.0 ) {
			float lightDistance = length( lVector );
			light.color = spotLight.color * spotAttenuation;
			light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
			light.visible = ( light.color != vec3( 0.0 ) );
		} else {
			light.color = vec3( 0.0 );
			light.visible = false;
		}
	}
#endif
#if NUM_RECT_AREA_LIGHTS > 0
	struct RectAreaLight {
		vec3 color;
		vec3 position;
		vec3 halfWidth;
		vec3 halfHeight;
	};
	uniform sampler2D ltc_1;	uniform sampler2D ltc_2;
	uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
#endif
#if NUM_HEMI_LIGHTS > 0
	struct HemisphereLight {
		vec3 direction;
		vec3 skyColor;
		vec3 groundColor;
	};
	uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
	vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
		float dotNL = dot( normal, hemiLight.direction );
		float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
		vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
		return irradiance;
	}
#endif`,_is=`#if defined( USE_ENVMAP )
	vec3 getIBLIrradiance( const in vec3 normal ) {
		#if defined( ENVMAP_TYPE_CUBE_UV )
			vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
			vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );
			return PI * envMapColor.rgb * envMapIntensity;
		#else
			return vec3( 0.0 );
		#endif
	}
	vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
		#if defined( ENVMAP_TYPE_CUBE_UV )
			vec3 reflectVec = reflect( - viewDir, normal );
			reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
			reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
			vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );
			return envMapColor.rgb * envMapIntensity;
		#else
			return vec3( 0.0 );
		#endif
	}
#endif`,Tis=`ToonMaterial material;
material.diffuseColor = diffuseColor.rgb;`,Cis=`varying vec3 vViewPosition;
struct ToonMaterial {
	vec3 diffuseColor;
};
void RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
	vec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_Toon
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon
#define Material_LightProbeLOD( material )	(0)`,kis=`BlinnPhongMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularColor = specular;
material.specularShininess = shininess;
material.specularStrength = specularStrength;`,Ris=`varying vec3 vViewPosition;
struct BlinnPhongMaterial {
	vec3 diffuseColor;
	vec3 specularColor;
	float specularShininess;
	float specularStrength;
};
void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometry.normal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
	reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;
}
void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_BlinnPhong
#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong
#define Material_LightProbeLOD( material )	(0)`,Mis=`PhysicalMaterial material;
material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );
float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
material.roughness = min( material.roughness, 1.0 );
#ifdef IOR
	#ifdef SPECULAR
		float specularIntensityFactor = specularIntensity;
		vec3 specularColorFactor = specularColor;
		#ifdef USE_SPECULARINTENSITYMAP
			specularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;
		#endif
		#ifdef USE_SPECULARCOLORMAP
			specularColorFactor *= texture2D( specularColorMap, vUv ).rgb;
		#endif
		material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
	#else
		float specularIntensityFactor = 1.0;
		vec3 specularColorFactor = vec3( 1.0 );
		material.specularF90 = 1.0;
	#endif
	material.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );
#else
	material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
	material.specularF90 = 1.0;
#endif
#ifdef USE_CLEARCOAT
	material.clearcoat = clearcoat;
	material.clearcoatRoughness = clearcoatRoughness;
	material.clearcoatF0 = vec3( 0.04 );
	material.clearcoatF90 = 1.0;
	#ifdef USE_CLEARCOATMAP
		material.clearcoat *= texture2D( clearcoatMap, vUv ).x;
	#endif
	#ifdef USE_CLEARCOAT_ROUGHNESSMAP
		material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;
	#endif
	material.clearcoat = saturate( material.clearcoat );	material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
	material.clearcoatRoughness += geometryRoughness;
	material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
#endif
#ifdef USE_SHEEN
	material.sheenColor = sheenColor;
	#ifdef USE_SHEENCOLORMAP
		material.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;
	#endif
	material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );
	#ifdef USE_SHEENROUGHNESSMAP
		material.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;
	#endif
#endif`,Nis=`struct PhysicalMaterial {
	vec3 diffuseColor;
	float roughness;
	vec3 specularColor;
	float specularF90;
	#ifdef USE_CLEARCOAT
		float clearcoat;
		float clearcoatRoughness;
		vec3 clearcoatF0;
		float clearcoatF90;
	#endif
	#ifdef USE_SHEEN
		vec3 sheenColor;
		float sheenRoughness;
	#endif
};
vec3 clearcoatSpecular = vec3( 0.0 );
vec3 sheenSpecular = vec3( 0.0 );
float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {
	float dotNV = saturate( dot( normal, viewDir ) );
	float r2 = roughness * roughness;
	float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;
	float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;
	float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );
	return saturate( DG * RECIPROCAL_PI );
}
vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
	float dotNV = saturate( dot( normal, viewDir ) );
	const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
	const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
	vec4 r = roughness * c0 + c1;
	float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;
	vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;
	return fab;
}
vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
	vec2 fab = DFGApprox( normal, viewDir, roughness );
	return specularColor * fab.x + specularF90 * fab.y;
}
void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
	vec2 fab = DFGApprox( normal, viewDir, roughness );
	vec3 FssEss = specularColor * fab.x + specularF90 * fab.y;
	float Ess = fab.x + fab.y;
	float Ems = 1.0 - Ess;
	vec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;	vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
	singleScatter += FssEss;
	multiScatter += Fms * Ems;
}
#if NUM_RECT_AREA_LIGHTS > 0
	void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
		vec3 normal = geometry.normal;
		vec3 viewDir = geometry.viewDir;
		vec3 position = geometry.position;
		vec3 lightPos = rectAreaLight.position;
		vec3 halfWidth = rectAreaLight.halfWidth;
		vec3 halfHeight = rectAreaLight.halfHeight;
		vec3 lightColor = rectAreaLight.color;
		float roughness = material.roughness;
		vec3 rectCoords[ 4 ];
		rectCoords[ 0 ] = lightPos + halfWidth - halfHeight;		rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
		rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
		rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
		vec2 uv = LTC_Uv( normal, viewDir, roughness );
		vec4 t1 = texture2D( ltc_1, uv );
		vec4 t2 = texture2D( ltc_2, uv );
		mat3 mInv = mat3(
			vec3( t1.x, 0, t1.y ),
			vec3(    0, 1,    0 ),
			vec3( t1.z, 0, t1.w )
		);
		vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
		reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
		reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
	}
#endif
void RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometry.normal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	#ifdef USE_CLEARCOAT
		float dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );
		vec3 ccIrradiance = dotNLcc * directLight.color;
		clearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
	#endif
	#ifdef USE_SHEEN
		sheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );
	#endif
	reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
	#ifdef USE_CLEARCOAT
		clearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
	#endif
	#ifdef USE_SHEEN
		sheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );
	#endif
	vec3 singleScattering = vec3( 0.0 );
	vec3 multiScattering = vec3( 0.0 );
	vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
	computeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );
	vec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );
	reflectedLight.indirectSpecular += radiance * singleScattering;
	reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
	reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
}
#define RE_Direct				RE_Direct_Physical
#define RE_Direct_RectArea		RE_Direct_RectArea_Physical
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Physical
#define RE_IndirectSpecular		RE_IndirectSpecular_Physical
float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
	return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
}`,Iis=`
GeometricContext geometry;
geometry.position = - vViewPosition;
geometry.normal = normal;
geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
#ifdef USE_CLEARCOAT
	geometry.clearcoatNormal = clearcoatNormal;
#endif
IncidentLight directLight;
#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
	PointLight pointLight;
	#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
	PointLightShadow pointLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
		pointLight = pointLights[ i ];
		getPointLightInfo( pointLight, geometry, directLight );
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )
		pointLightShadow = pointLightShadows[ i ];
		directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
		#endif
		RE_Direct( directLight, geometry, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
	SpotLight spotLight;
	#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
	SpotLightShadow spotLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
		spotLight = spotLights[ i ];
		getSpotLightInfo( spotLight, geometry, directLight );
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
		spotLightShadow = spotLightShadows[ i ];
		directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;
		#endif
		RE_Direct( directLight, geometry, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
	DirectionalLight directionalLight;
	#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
	DirectionalLightShadow directionalLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
		directionalLight = directionalLights[ i ];
		getDirectionalLightInfo( directionalLight, geometry, directLight );
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
		directionalLightShadow = directionalLightShadows[ i ];
		directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
		#endif
		RE_Direct( directLight, geometry, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
	RectAreaLight rectAreaLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
		rectAreaLight = rectAreaLights[ i ];
		RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if defined( RE_IndirectDiffuse )
	vec3 iblIrradiance = vec3( 0.0 );
	vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
	irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
	#if ( NUM_HEMI_LIGHTS > 0 )
		#pragma unroll_loop_start
		for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
			irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );
		}
		#pragma unroll_loop_end
	#endif
#endif
#if defined( RE_IndirectSpecular )
	vec3 radiance = vec3( 0.0 );
	vec3 clearcoatRadiance = vec3( 0.0 );
#endif`,Pis=`#if defined( RE_IndirectDiffuse )
	#ifdef USE_LIGHTMAP
		vec4 lightMapTexel = texture2D( lightMap, vUv2 );
		vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
		irradiance += lightMapIrradiance;
	#endif
	#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
		iblIrradiance += getIBLIrradiance( geometry.normal );
	#endif
#endif
#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
	radiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );
	#ifdef USE_CLEARCOAT
		clearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );
	#endif
#endif`,Ois=`#if defined( RE_IndirectDiffuse )
	RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );
#endif
#if defined( RE_IndirectSpecular )
	RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );
#endif`,Lis=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
	gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
#endif`,Bis=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
	uniform float logDepthBufFC;
	varying float vFragDepth;
	varying float vIsPerspective;
#endif`,Dis=`#ifdef USE_LOGDEPTHBUF
	#ifdef USE_LOGDEPTHBUF_EXT
		varying float vFragDepth;
		varying float vIsPerspective;
	#else
		uniform float logDepthBufFC;
	#endif
#endif`,$is=`#ifdef USE_LOGDEPTHBUF
	#ifdef USE_LOGDEPTHBUF_EXT
		vFragDepth = 1.0 + gl_Position.w;
		vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
	#else
		if ( isPerspectiveMatrix( projectionMatrix ) ) {
			gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;
			gl_Position.z *= gl_Position.w;
		}
	#endif
#endif`,Fis=`#ifdef USE_MAP
	vec4 sampledDiffuseColor = texture2D( map, vUv );
	#ifdef DECODE_VIDEO_TEXTURE
		sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );
	#endif
	diffuseColor *= sampledDiffuseColor;
#endif`,jis=`#ifdef USE_MAP
	uniform sampler2D map;
#endif`,His=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
	vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
#endif
#ifdef USE_MAP
	diffuseColor *= texture2D( map, uv );
#endif
#ifdef USE_ALPHAMAP
	diffuseColor.a *= texture2D( alphaMap, uv ).g;
#endif`,Uis=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
	uniform mat3 uvTransform;
#endif
#ifdef USE_MAP
	uniform sampler2D map;
#endif
#ifdef USE_ALPHAMAP
	uniform sampler2D alphaMap;
#endif`,zis=`float metalnessFactor = metalness;
#ifdef USE_METALNESSMAP
	vec4 texelMetalness = texture2D( metalnessMap, vUv );
	metalnessFactor *= texelMetalness.b;
#endif`,Gis=`#ifdef USE_METALNESSMAP
	uniform sampler2D metalnessMap;
#endif`,Vis=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
	vColor *= morphTargetBaseInfluence;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		#if defined( USE_COLOR_ALPHA )
			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
		#elif defined( USE_COLOR )
			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
		#endif
	}
#endif`,Kis=`#ifdef USE_MORPHNORMALS
	objectNormal *= morphTargetBaseInfluence;
	#ifdef MORPHTARGETS_TEXTURE
		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
			if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
		}
	#else
		objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];
		objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];
		objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
		objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
	#endif
#endif`,Wis=`#ifdef USE_MORPHTARGETS
	uniform float morphTargetBaseInfluence;
	#ifdef MORPHTARGETS_TEXTURE
		uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
		uniform sampler2DArray morphTargetsTexture;
		uniform ivec2 morphTargetsTextureSize;
		vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
			int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
			int y = texelIndex / morphTargetsTextureSize.x;
			int x = texelIndex - y * morphTargetsTextureSize.x;
			ivec3 morphUV = ivec3( x, y, morphTargetIndex );
			return texelFetch( morphTargetsTexture, morphUV, 0 );
		}
	#else
		#ifndef USE_MORPHNORMALS
			uniform float morphTargetInfluences[ 8 ];
		#else
			uniform float morphTargetInfluences[ 4 ];
		#endif
	#endif
#endif`,Qis=`#ifdef USE_MORPHTARGETS
	transformed *= morphTargetBaseInfluence;
	#ifdef MORPHTARGETS_TEXTURE
		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
			if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
		}
	#else
		transformed += morphTarget0 * morphTargetInfluences[ 0 ];
		transformed += morphTarget1 * morphTargetInfluences[ 1 ];
		transformed += morphTarget2 * morphTargetInfluences[ 2 ];
		transformed += morphTarget3 * morphTargetInfluences[ 3 ];
		#ifndef USE_MORPHNORMALS
			transformed += morphTarget4 * morphTargetInfluences[ 4 ];
			transformed += morphTarget5 * morphTargetInfluences[ 5 ];
			transformed += morphTarget6 * morphTargetInfluences[ 6 ];
			transformed += morphTarget7 * morphTargetInfluences[ 7 ];
		#endif
	#endif
#endif`,qis=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
#ifdef FLAT_SHADED
	vec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );
	vec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );
	vec3 normal = normalize( cross( fdx, fdy ) );
#else
	vec3 normal = normalize( vNormal );
	#ifdef DOUBLE_SIDED
		normal = normal * faceDirection;
	#endif
	#ifdef USE_TANGENT
		vec3 tangent = normalize( vTangent );
		vec3 bitangent = normalize( vBitangent );
		#ifdef DOUBLE_SIDED
			tangent = tangent * faceDirection;
			bitangent = bitangent * faceDirection;
		#endif
		#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )
			mat3 vTBN = mat3( tangent, bitangent, normal );
		#endif
	#endif
#endif
vec3 geometryNormal = normal;`,Yis=`#ifdef OBJECTSPACE_NORMALMAP
	normal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;
	#ifdef FLIP_SIDED
		normal = - normal;
	#endif
	#ifdef DOUBLE_SIDED
		normal = normal * faceDirection;
	#endif
	normal = normalize( normalMatrix * normal );
#elif defined( TANGENTSPACE_NORMALMAP )
	vec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;
	mapN.xy *= normalScale;
	#ifdef USE_TANGENT
		normal = normalize( vTBN * mapN );
	#else
		normal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );
	#endif
#elif defined( USE_BUMPMAP )
	normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
#endif`,Jis=`#ifndef FLAT_SHADED
	varying vec3 vNormal;
	#ifdef USE_TANGENT
		varying vec3 vTangent;
		varying vec3 vBitangent;
	#endif
#endif`,Zis=`#ifndef FLAT_SHADED
	varying vec3 vNormal;
	#ifdef USE_TANGENT
		varying vec3 vTangent;
		varying vec3 vBitangent;
	#endif
#endif`,Xis=`#ifndef FLAT_SHADED
	vNormal = normalize( transformedNormal );
	#ifdef USE_TANGENT
		vTangent = normalize( transformedTangent );
		vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
	#endif
#endif`,eas=`#ifdef USE_NORMALMAP
	uniform sampler2D normalMap;
	uniform vec2 normalScale;
#endif
#ifdef OBJECTSPACE_NORMALMAP
	uniform mat3 normalMatrix;
#endif
#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )
	vec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {
		vec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );
		vec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );
		vec2 st0 = dFdx( vUv.st );
		vec2 st1 = dFdy( vUv.st );
		vec3 N = surf_norm;
		vec3 q1perp = cross( q1, N );
		vec3 q0perp = cross( N, q0 );
		vec3 T = q1perp * st0.x + q0perp * st1.x;
		vec3 B = q1perp * st0.y + q0perp * st1.y;
		float det = max( dot( T, T ), dot( B, B ) );
		float scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );
		return normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );
	}
#endif`,tas=`#ifdef USE_CLEARCOAT
	vec3 clearcoatNormal = geometryNormal;
#endif`,nas=`#ifdef USE_CLEARCOAT_NORMALMAP
	vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;
	clearcoatMapN.xy *= clearcoatNormalScale;
	#ifdef USE_TANGENT
		clearcoatNormal = normalize( vTBN * clearcoatMapN );
	#else
		clearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );
	#endif
#endif`,ras=`#ifdef USE_CLEARCOATMAP
	uniform sampler2D clearcoatMap;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	uniform sampler2D clearcoatRoughnessMap;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	uniform sampler2D clearcoatNormalMap;
	uniform vec2 clearcoatNormalScale;
#endif`,ias=`#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif
#ifdef USE_TRANSMISSION
diffuseColor.a *= transmissionAlpha + 0.1;
#endif
gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,aas=`vec3 packNormalToRGB( const in vec3 normal ) {
	return normalize( normal ) * 0.5 + 0.5;
}
vec3 unpackRGBToNormal( const in vec3 rgb ) {
	return 2.0 * rgb.xyz - 1.0;
}
const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;
const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );
const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );
const float ShiftRight8 = 1. / 256.;
vec4 packDepthToRGBA( const in float v ) {
	vec4 r = vec4( fract( v * PackFactors ), v );
	r.yzw -= r.xyz * ShiftRight8;	return r * PackUpscale;
}
float unpackRGBAToDepth( const in vec4 v ) {
	return dot( v, UnpackFactors );
}
vec4 pack2HalfToRGBA( vec2 v ) {
	vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
	return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
}
vec2 unpackRGBATo2Half( vec4 v ) {
	return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
}
float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
	return ( viewZ + near ) / ( near - far );
}
float orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {
	return linearClipZ * ( near - far ) - near;
}
float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
	return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
}
float perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {
	return ( near * far ) / ( ( far - near ) * invClipZ - far );
}`,oas=`#ifdef PREMULTIPLIED_ALPHA
	gl_FragColor.rgb *= gl_FragColor.a;
#endif`,sas=`vec4 mvPosition = vec4( transformed, 1.0 );
#ifdef USE_INSTANCING
	mvPosition = instanceMatrix * mvPosition;
#endif
mvPosition = modelViewMatrix * mvPosition;
gl_Position = projectionMatrix * mvPosition;`,las=`#ifdef DITHERING
	gl_FragColor.rgb = dithering( gl_FragColor.rgb );
#endif`,cas=`#ifdef DITHERING
	vec3 dithering( vec3 color ) {
		float grid_position = rand( gl_FragCoord.xy );
		vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
		dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
		return color + dither_shift_RGB;
	}
#endif`,uas=`float roughnessFactor = roughness;
#ifdef USE_ROUGHNESSMAP
	vec4 texelRoughness = texture2D( roughnessMap, vUv );
	roughnessFactor *= texelRoughness.g;
#endif`,das=`#ifdef USE_ROUGHNESSMAP
	uniform sampler2D roughnessMap;
#endif`,has=`#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
		uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
		struct DirectionalLightShadow {
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
		uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
		varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];
		struct SpotLightShadow {
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
		struct PointLightShadow {
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
			float shadowCameraNear;
			float shadowCameraFar;
		};
		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
	#endif
	float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
		return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
	}
	vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
		return unpackRGBATo2Half( texture2D( shadow, uv ) );
	}
	float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
		float occlusion = 1.0;
		vec2 distribution = texture2DDistribution( shadow, uv );
		float hard_shadow = step( compare , distribution.x );
		if (hard_shadow != 1.0 ) {
			float distance = compare - distribution.x ;
			float variance = max( 0.00000, distribution.y * distribution.y );
			float softness_probability = variance / (variance + distance * distance );			softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );			occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );
		}
		return occlusion;
	}
	float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
		float shadow = 1.0;
		shadowCoord.xyz /= shadowCoord.w;
		shadowCoord.z += shadowBias;
		bvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );
		bool inFrustum = all( inFrustumVec );
		bvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );
		bool frustumTest = all( frustumTestVec );
		if ( frustumTest ) {
		#if defined( SHADOWMAP_TYPE_PCF )
			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
			float dx0 = - texelSize.x * shadowRadius;
			float dy0 = - texelSize.y * shadowRadius;
			float dx1 = + texelSize.x * shadowRadius;
			float dy1 = + texelSize.y * shadowRadius;
			float dx2 = dx0 / 2.0;
			float dy2 = dy0 / 2.0;
			float dx3 = dx1 / 2.0;
			float dy3 = dy1 / 2.0;
			shadow = (
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )
			) * ( 1.0 / 17.0 );
		#elif defined( SHADOWMAP_TYPE_PCF_SOFT )
			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
			float dx = texelSize.x;
			float dy = texelSize.y;
			vec2 uv = shadowCoord.xy;
			vec2 f = fract( uv * shadowMapSize + 0.5 );
			uv -= f * texelSize;
			shadow = (
				texture2DCompare( shadowMap, uv, shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +
				mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), 
					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),
					 f.x ) +
				mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), 
					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),
					 f.x ) +
				mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), 
					 texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),
					 f.y ) +
				mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), 
					 texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),
					 f.y ) +
				mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), 
						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
						  f.x ),
					 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), 
						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),
						  f.x ),
					 f.y )
			) * ( 1.0 / 9.0 );
		#elif defined( SHADOWMAP_TYPE_VSM )
			shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );
		#else
			shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );
		#endif
		}
		return shadow;
	}
	vec2 cubeToUV( vec3 v, float texelSizeY ) {
		vec3 absV = abs( v );
		float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );
		absV *= scaleToCube;
		v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );
		vec2 planar = v.xy;
		float almostATexel = 1.5 * texelSizeY;
		float almostOne = 1.0 - almostATexel;
		if ( absV.z >= almostOne ) {
			if ( v.z > 0.0 )
				planar.x = 4.0 - v.x;
		} else if ( absV.x >= almostOne ) {
			float signX = sign( v.x );
			planar.x = v.z * signX + 2.0 * signX;
		} else if ( absV.y >= almostOne ) {
			float signY = sign( v.y );
			planar.x = v.x + 2.0 * signY + 2.0;
			planar.y = v.z * signY - 2.0;
		}
		return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
	}
	float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
		vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
		vec3 lightToPosition = shadowCoord.xyz;
		float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );		dp += shadowBias;
		vec3 bd3D = normalize( lightToPosition );
		#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
			vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
			return (
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
				texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
			) * ( 1.0 / 9.0 );
		#else
			return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
		#endif
	}
#endif`,fas=`#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
		uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
		struct DirectionalLightShadow {
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
		uniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];
		varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];
		struct SpotLightShadow {
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
		struct PointLightShadow {
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
			float shadowCameraNear;
			float shadowCameraFar;
		};
		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
	#endif
#endif`,pas=`#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0
		vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
		vec4 shadowWorldPosition;
	#endif
	#if NUM_DIR_LIGHT_SHADOWS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
		shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
		vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
		shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );
		vSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
		shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
		vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
	}
	#pragma unroll_loop_end
	#endif
#endif`,mas=`float getShadowMask() {
	float shadow = 1.0;
	#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
	DirectionalLightShadow directionalLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
		directionalLight = directionalLightShadows[ i ];
		shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
	SpotLightShadow spotLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
		spotLight = spotLightShadows[ i ];
		shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
	PointLightShadow pointLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
		pointLight = pointLightShadows[ i ];
		shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#endif
	return shadow;
}`,gas=`#ifdef USE_SKINNING
	mat4 boneMatX = getBoneMatrix( skinIndex.x );
	mat4 boneMatY = getBoneMatrix( skinIndex.y );
	mat4 boneMatZ = getBoneMatrix( skinIndex.z );
	mat4 boneMatW = getBoneMatrix( skinIndex.w );
#endif`,vas=`#ifdef USE_SKINNING
	uniform mat4 bindMatrix;
	uniform mat4 bindMatrixInverse;
	#ifdef BONE_TEXTURE
		uniform highp sampler2D boneTexture;
		uniform int boneTextureSize;
		mat4 getBoneMatrix( const in float i ) {
			float j = i * 4.0;
			float x = mod( j, float( boneTextureSize ) );
			float y = floor( j / float( boneTextureSize ) );
			float dx = 1.0 / float( boneTextureSize );
			float dy = 1.0 / float( boneTextureSize );
			y = dy * ( y + 0.5 );
			vec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );
			vec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );
			vec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );
			vec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );
			mat4 bone = mat4( v1, v2, v3, v4 );
			return bone;
		}
	#else
		uniform mat4 boneMatrices[ MAX_BONES ];
		mat4 getBoneMatrix( const in float i ) {
			mat4 bone = boneMatrices[ int(i) ];
			return bone;
		}
	#endif
#endif`,Aas=`#ifdef USE_SKINNING
	vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
	vec4 skinned = vec4( 0.0 );
	skinned += boneMatX * skinVertex * skinWeight.x;
	skinned += boneMatY * skinVertex * skinWeight.y;
	skinned += boneMatZ * skinVertex * skinWeight.z;
	skinned += boneMatW * skinVertex * skinWeight.w;
	transformed = ( bindMatrixInverse * skinned ).xyz;
#endif`,yas=`#ifdef USE_SKINNING
	mat4 skinMatrix = mat4( 0.0 );
	skinMatrix += skinWeight.x * boneMatX;
	skinMatrix += skinWeight.y * boneMatY;
	skinMatrix += skinWeight.z * boneMatZ;
	skinMatrix += skinWeight.w * boneMatW;
	skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
	objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
	#ifdef USE_TANGENT
		objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
	#endif
#endif`,bas=`float specularStrength;
#ifdef USE_SPECULARMAP
	vec4 texelSpecular = texture2D( specularMap, vUv );
	specularStrength = texelSpecular.r;
#else
	specularStrength = 1.0;
#endif`,xas=`#ifdef USE_SPECULARMAP
	uniform sampler2D specularMap;
#endif`,Eas=`#if defined( TONE_MAPPING )
	gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
#endif`,Sas=`#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
uniform float toneMappingExposure;
vec3 LinearToneMapping( vec3 color ) {
	return toneMappingExposure * color;
}
vec3 ReinhardToneMapping( vec3 color ) {
	color *= toneMappingExposure;
	return saturate( color / ( vec3( 1.0 ) + color ) );
}
vec3 OptimizedCineonToneMapping( vec3 color ) {
	color *= toneMappingExposure;
	color = max( vec3( 0.0 ), color - 0.004 );
	return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
}
vec3 RRTAndODTFit( vec3 v ) {
	vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
	vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
	return a / b;
}
vec3 ACESFilmicToneMapping( vec3 color ) {
	const mat3 ACESInputMat = mat3(
		vec3( 0.59719, 0.07600, 0.02840 ),		vec3( 0.35458, 0.90834, 0.13383 ),
		vec3( 0.04823, 0.01566, 0.83777 )
	);
	const mat3 ACESOutputMat = mat3(
		vec3(  1.60475, -0.10208, -0.00327 ),		vec3( -0.53108,  1.10813, -0.07276 ),
		vec3( -0.07367, -0.00605,  1.07602 )
	);
	color *= toneMappingExposure / 0.6;
	color = ACESInputMat * color;
	color = RRTAndODTFit( color );
	color = ACESOutputMat * color;
	return saturate( color );
}
vec3 CustomToneMapping( vec3 color ) { return color; }`,was=`#ifdef USE_TRANSMISSION
	float transmissionAlpha = 1.0;
	float transmissionFactor = transmission;
	float thicknessFactor = thickness;
	#ifdef USE_TRANSMISSIONMAP
		transmissionFactor *= texture2D( transmissionMap, vUv ).r;
	#endif
	#ifdef USE_THICKNESSMAP
		thicknessFactor *= texture2D( thicknessMap, vUv ).g;
	#endif
	vec3 pos = vWorldPosition;
	vec3 v = normalize( cameraPosition - pos );
	vec3 n = inverseTransformDirection( normal, viewMatrix );
	vec4 transmission = getIBLVolumeRefraction(
		n, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,
		pos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,
		attenuationColor, attenuationDistance );
	totalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );
	transmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );
#endif`,_as=`#ifdef USE_TRANSMISSION
	uniform float transmission;
	uniform float thickness;
	uniform float attenuationDistance;
	uniform vec3 attenuationColor;
	#ifdef USE_TRANSMISSIONMAP
		uniform sampler2D transmissionMap;
	#endif
	#ifdef USE_THICKNESSMAP
		uniform sampler2D thicknessMap;
	#endif
	uniform vec2 transmissionSamplerSize;
	uniform sampler2D transmissionSamplerMap;
	uniform mat4 modelMatrix;
	uniform mat4 projectionMatrix;
	varying vec3 vWorldPosition;
	vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
		vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
		vec3 modelScale;
		modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
		modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
		modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
		return normalize( refractionVector ) * thickness * modelScale;
	}
	float applyIorToRoughness( const in float roughness, const in float ior ) {
		return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
	}
	vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
		float framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
		#ifdef texture2DLodEXT
			return texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );
		#else
			return texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );
		#endif
	}
	vec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
		if ( attenuationDistance == 0.0 ) {
			return radiance;
		} else {
			vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
			vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );			return transmittance * radiance;
		}
	}
	vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
		const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
		const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,
		const in vec3 attenuationColor, const in float attenuationDistance ) {
		vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
		vec3 refractedRayExit = position + transmissionRay;
		vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
		vec2 refractionCoords = ndcPos.xy / ndcPos.w;
		refractionCoords += 1.0;
		refractionCoords /= 2.0;
		vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
		vec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );
		vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
		return vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );
	}
#endif`,Tas=`#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )
	varying vec2 vUv;
#endif`,Cas=`#ifdef USE_UV
	#ifdef UVS_VERTEX_ONLY
		vec2 vUv;
	#else
		varying vec2 vUv;
	#endif
	uniform mat3 uvTransform;
#endif`,kas=`#ifdef USE_UV
	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
#endif`,Ras=`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )
	varying vec2 vUv2;
#endif`,Mas=`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )
	attribute vec2 uv2;
	varying vec2 vUv2;
	uniform mat3 uv2Transform;
#endif`,Nas=`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )
	vUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;
#endif`,Ias=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )
	vec4 worldPosition = vec4( transformed, 1.0 );
	#ifdef USE_INSTANCING
		worldPosition = instanceMatrix * worldPosition;
	#endif
	worldPosition = modelMatrix * worldPosition;
#endif`;const Pas=`varying vec2 vUv;
uniform mat3 uvTransform;
void main() {
	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
	gl_Position = vec4( position.xy, 1.0, 1.0 );
}`,Oas=`uniform sampler2D t2D;
varying vec2 vUv;
void main() {
	gl_FragColor = texture2D( t2D, vUv );
	#ifdef DECODE_VIDEO_TEXTURE
		gl_FragColor = vec4( mix( pow( gl_FragColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), gl_FragColor.rgb * 0.0773993808, vec3( lessThanEqual( gl_FragColor.rgb, vec3( 0.04045 ) ) ) ), gl_FragColor.w );
	#endif
	#include <tonemapping_fragment>
	#include <encodings_fragment>
}`,Las=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
	gl_Position.z = gl_Position.w;
}`,Bas=`#include <envmap_common_pars_fragment>
uniform float opacity;
varying vec3 vWorldDirection;
#include <cube_uv_reflection_fragment>
void main() {
	vec3 vReflect = vWorldDirection;
	#include <envmap_fragment>
	gl_FragColor = envColor;
	gl_FragColor.a *= opacity;
	#include <tonemapping_fragment>
	#include <encodings_fragment>
}`,Das=`#include <common>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
varying vec2 vHighPrecisionZW;
void main() {
	#include <uv_vertex>
	#include <skinbase_vertex>
	#ifdef USE_DISPLACEMENTMAP
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vHighPrecisionZW = gl_Position.zw;
}`,$as=`#if DEPTH_PACKING == 3200
	uniform float opacity;
#endif
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
varying vec2 vHighPrecisionZW;
void main() {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( 1.0 );
	#if DEPTH_PACKING == 3200
		diffuseColor.a = opacity;
	#endif
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <logdepthbuf_fragment>
	float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;
	#if DEPTH_PACKING == 3200
		gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
	#elif DEPTH_PACKING == 3201
		gl_FragColor = packDepthToRGBA( fragCoordZ );
	#endif
}`,Fas=`#define DISTANCE
varying vec3 vWorldPosition;
#include <common>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <skinbase_vertex>
	#ifdef USE_DISPLACEMENTMAP
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <worldpos_vertex>
	#include <clipping_planes_vertex>
	vWorldPosition = worldPosition.xyz;
}`,jas=`#define DISTANCE
uniform vec3 referencePosition;
uniform float nearDistance;
uniform float farDistance;
varying vec3 vWorldPosition;
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <clipping_planes_pars_fragment>
void main () {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( 1.0 );
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	float dist = length( vWorldPosition - referencePosition );
	dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
	dist = saturate( dist );
	gl_FragColor = packDepthToRGBA( dist );
}`,Has=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
}`,Uas=`uniform sampler2D tEquirect;
varying vec3 vWorldDirection;
#include <common>
void main() {
	vec3 direction = normalize( vWorldDirection );
	vec2 sampleUV = equirectUv( direction );
	gl_FragColor = texture2D( tEquirect, sampleUV );
	#include <tonemapping_fragment>
	#include <encodings_fragment>
}`,zas=`uniform float scale;
attribute float lineDistance;
varying float vLineDistance;
#include <common>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	vLineDistance = scale * lineDistance;
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
}`,Gas=`uniform vec3 diffuse;
uniform float opacity;
uniform float dashSize;
uniform float totalSize;
varying float vLineDistance;
#include <common>
#include <color_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	if ( mod( vLineDistance, totalSize ) > dashSize ) {
		discard;
	}
	vec3 outgoingLight = vec3( 0.0 );
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <logdepthbuf_fragment>
	#include <color_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
}`,Vas=`#include <common>
#include <uv_pars_vertex>
#include <uv2_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <uv2_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinbase_vertex>
		#include <skinnormal_vertex>
		#include <defaultnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <fog_vertex>
}`,Kas=`uniform vec3 diffuse;
uniform float opacity;
#ifndef FLAT_SHADED
	varying vec3 vNormal;
#endif
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <uv2_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <cube_uv_reflection_fragment>
#include <fog_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <specularmap_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	#ifdef USE_LIGHTMAP
		vec4 lightMapTexel = texture2D( lightMap, vUv2 );
		reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
	#else
		reflectedLight.indirectDiffuse += vec3( 1.0 );
	#endif
	#include <aomap_fragment>
	reflectedLight.indirectDiffuse *= diffuseColor.rgb;
	vec3 outgoingLight = reflectedLight.indirectDiffuse;
	#include <envmap_fragment>
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,Was=`#define LAMBERT
varying vec3 vLightFront;
varying vec3 vIndirectFront;
#ifdef DOUBLE_SIDED
	varying vec3 vLightBack;
	varying vec3 vIndirectBack;
#endif
#include <common>
#include <uv_pars_vertex>
#include <uv2_pars_vertex>
#include <envmap_pars_vertex>
#include <bsdfs>
#include <lights_pars_begin>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <uv2_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <lights_lambert_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,Qas=`uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
varying vec3 vLightFront;
varying vec3 vIndirectFront;
#ifdef DOUBLE_SIDED
	varying vec3 vLightBack;
	varying vec3 vIndirectBack;
#endif
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <uv2_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <cube_uv_reflection_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <fog_pars_fragment>
#include <shadowmap_pars_fragment>
#include <shadowmask_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( diffuse, opacity );
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <specularmap_fragment>
	#include <emissivemap_fragment>
	#ifdef DOUBLE_SIDED
		reflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;
	#else
		reflectedLight.indirectDiffuse += vIndirectFront;
	#endif
	#include <lightmap_fragment>
	reflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb );
	#ifdef DOUBLE_SIDED
		reflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;
	#else
		reflectedLight.directDiffuse = vLightFront;
	#endif
	reflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask();
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
	#include <envmap_fragment>
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,qas=`#define MATCAP
varying vec3 vViewPosition;
#include <common>
#include <uv_pars_vertex>
#include <color_pars_vertex>
#include <displacementmap_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
	vViewPosition = - mvPosition.xyz;
}`,Yas=`#define MATCAP
uniform vec3 diffuse;
uniform float opacity;
uniform sampler2D matcap;
varying vec3 vViewPosition;
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <fog_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	vec3 viewDir = normalize( vViewPosition );
	vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
	vec3 y = cross( viewDir, x );
	vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
	#ifdef USE_MATCAP
		vec4 matcapColor = texture2D( matcap, uv );
	#else
		vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
	#endif
	vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,Jas=`#define NORMAL
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )
	varying vec3 vViewPosition;
#endif
#include <common>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )
	vViewPosition = - mvPosition.xyz;
#endif
}`,Zas=`#define NORMAL
uniform float opacity;
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )
	varying vec3 vViewPosition;
#endif
#include <packing>
#include <uv_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	#include <logdepthbuf_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	gl_FragColor = vec4( packNormalToRGB( normal ), opacity );
	#ifdef OPAQUE
		gl_FragColor.a = 1.0;
	#endif
}`,Xas=`#define PHONG
varying vec3 vViewPosition;
#include <common>
#include <uv_pars_vertex>
#include <uv2_pars_vertex>
#include <displacementmap_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <uv2_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,eos=`#define PHONG
uniform vec3 diffuse;
uniform vec3 emissive;
uniform vec3 specular;
uniform float shininess;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <uv2_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <cube_uv_reflection_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_phong_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( diffuse, opacity );
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <specularmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_phong_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
	#include <envmap_fragment>
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,tos=`#define STANDARD
varying vec3 vViewPosition;
#ifdef USE_TRANSMISSION
	varying vec3 vWorldPosition;
#endif
#include <common>
#include <uv_pars_vertex>
#include <uv2_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <uv2_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
#ifdef USE_TRANSMISSION
	vWorldPosition = worldPosition.xyz;
#endif
}`,nos=`#define STANDARD
#ifdef PHYSICAL
	#define IOR
	#define SPECULAR
#endif
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float roughness;
uniform float metalness;
uniform float opacity;
#ifdef IOR
	uniform float ior;
#endif
#ifdef SPECULAR
	uniform float specularIntensity;
	uniform vec3 specularColor;
	#ifdef USE_SPECULARINTENSITYMAP
		uniform sampler2D specularIntensityMap;
	#endif
	#ifdef USE_SPECULARCOLORMAP
		uniform sampler2D specularColorMap;
	#endif
#endif
#ifdef USE_CLEARCOAT
	uniform float clearcoat;
	uniform float clearcoatRoughness;
#endif
#ifdef USE_SHEEN
	uniform vec3 sheenColor;
	uniform float sheenRoughness;
	#ifdef USE_SHEENCOLORMAP
		uniform sampler2D sheenColorMap;
	#endif
	#ifdef USE_SHEENROUGHNESSMAP
		uniform sampler2D sheenRoughnessMap;
	#endif
#endif
varying vec3 vViewPosition;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <uv2_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <bsdfs>
#include <cube_uv_reflection_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_physical_pars_fragment>
#include <fog_pars_fragment>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_physical_pars_fragment>
#include <transmission_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <clearcoat_pars_fragment>
#include <roughnessmap_pars_fragment>
#include <metalnessmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( diffuse, opacity );
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <roughnessmap_fragment>
	#include <metalnessmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <clearcoat_normal_fragment_begin>
	#include <clearcoat_normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_physical_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
	vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
	#include <transmission_fragment>
	vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
	#ifdef USE_SHEEN
		float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
		outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;
	#endif
	#ifdef USE_CLEARCOAT
		float dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );
		vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
		outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;
	#endif
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,ros=`#define TOON
varying vec3 vViewPosition;
#include <common>
#include <uv_pars_vertex>
#include <uv2_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <uv2_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,ios=`#define TOON
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <uv2_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <gradientmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_toon_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec4 diffuseColor = vec4( diffuse, opacity );
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_toon_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,aos=`uniform float size;
uniform float scale;
#include <common>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <project_vertex>
	gl_PointSize = size;
	#ifdef USE_SIZEATTENUATION
		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
		if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
	#endif
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <worldpos_vertex>
	#include <fog_vertex>
}`,oos=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <color_pars_fragment>
#include <map_particle_pars_fragment>
#include <alphatest_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec3 outgoingLight = vec3( 0.0 );
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <logdepthbuf_fragment>
	#include <map_particle_fragment>
	#include <color_fragment>
	#include <alphatest_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
}`,sos=`#include <common>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
void main() {
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <project_vertex>
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,los=`uniform vec3 color;
uniform float opacity;
#include <common>
#include <packing>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <shadowmap_pars_fragment>
#include <shadowmask_pars_fragment>
void main() {
	gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
}`,cos=`uniform float rotation;
uniform vec2 center;
#include <common>
#include <uv_pars_vertex>
#include <fog_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
	vec2 scale;
	scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
	scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
	#ifndef USE_SIZEATTENUATION
		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
		if ( isPerspective ) scale *= - mvPosition.z;
	#endif
	vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
	vec2 rotatedPosition;
	rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
	rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
	mvPosition.xy += rotatedPosition;
	gl_Position = projectionMatrix * mvPosition;
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
}`,uos=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	#include <clipping_planes_fragment>
	vec3 outgoingLight = vec3( 0.0 );
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <output_fragment>
	#include <tonemapping_fragment>
	#include <encodings_fragment>
	#include <fog_fragment>
}`,Rs={alphamap_fragment:$rs,alphamap_pars_fragment:Frs,alphatest_fragment:jrs,alphatest_pars_fragment:Hrs,aomap_fragment:Urs,aomap_pars_fragment:zrs,begin_vertex:Grs,beginnormal_vertex:Vrs,bsdfs:Krs,bumpmap_pars_fragment:Wrs,clipping_planes_fragment:Qrs,clipping_planes_pars_fragment:qrs,clipping_planes_pars_vertex:Yrs,clipping_planes_vertex:Jrs,color_fragment:Zrs,color_pars_fragment:Xrs,color_pars_vertex:eis,color_vertex:tis,common:nis,cube_uv_reflection_fragment:ris,defaultnormal_vertex:iis,displacementmap_pars_vertex:ais,displacementmap_vertex:ois,emissivemap_fragment:sis,emissivemap_pars_fragment:lis,encodings_fragment:cis,encodings_pars_fragment:uis,envmap_fragment:dis,envmap_common_pars_fragment:his,envmap_pars_fragment:fis,envmap_pars_vertex:pis,envmap_physical_pars_fragment:_is,envmap_vertex:mis,fog_vertex:gis,fog_pars_vertex:vis,fog_fragment:Ais,fog_pars_fragment:yis,gradientmap_pars_fragment:bis,lightmap_fragment:xis,lightmap_pars_fragment:Eis,lights_lambert_vertex:Sis,lights_pars_begin:wis,lights_toon_fragment:Tis,lights_toon_pars_fragment:Cis,lights_phong_fragment:kis,lights_phong_pars_fragment:Ris,lights_physical_fragment:Mis,lights_physical_pars_fragment:Nis,lights_fragment_begin:Iis,lights_fragment_maps:Pis,lights_fragment_end:Ois,logdepthbuf_fragment:Lis,logdepthbuf_pars_fragment:Bis,logdepthbuf_pars_vertex:Dis,logdepthbuf_vertex:$is,map_fragment:Fis,map_pars_fragment:jis,map_particle_fragment:His,map_particle_pars_fragment:Uis,metalnessmap_fragment:zis,metalnessmap_pars_fragment:Gis,morphcolor_vertex:Vis,morphnormal_vertex:Kis,morphtarget_pars_vertex:Wis,morphtarget_vertex:Qis,normal_fragment_begin:qis,normal_fragment_maps:Yis,normal_pars_fragment:Jis,normal_pars_vertex:Zis,normal_vertex:Xis,normalmap_pars_fragment:eas,clearcoat_normal_fragment_begin:tas,clearcoat_normal_fragment_maps:nas,clearcoat_pars_fragment:ras,output_fragment:ias,packing:aas,premultiplied_alpha_fragment:oas,project_vertex:sas,dithering_fragment:las,dithering_pars_fragment:cas,roughnessmap_fragment:uas,roughnessmap_pars_fragment:das,shadowmap_pars_fragment:has,shadowmap_pars_vertex:fas,shadowmap_vertex:pas,shadowmask_pars_fragment:mas,skinbase_vertex:gas,skinning_pars_vertex:vas,skinning_vertex:Aas,skinnormal_vertex:yas,specularmap_fragment:bas,specularmap_pars_fragment:xas,tonemapping_fragment:Eas,tonemapping_pars_fragment:Sas,transmission_fragment:was,transmission_pars_fragment:_as,uv_pars_fragment:Tas,uv_pars_vertex:Cas,uv_vertex:kas,uv2_pars_fragment:Ras,uv2_pars_vertex:Mas,uv2_vertex:Nas,worldpos_vertex:Ias,background_vert:Pas,background_frag:Oas,cube_vert:Las,cube_frag:Bas,depth_vert:Das,depth_frag:$as,distanceRGBA_vert:Fas,distanceRGBA_frag:jas,equirect_vert:Has,equirect_frag:Uas,linedashed_vert:zas,linedashed_frag:Gas,meshbasic_vert:Vas,meshbasic_frag:Kas,meshlambert_vert:Was,meshlambert_frag:Qas,meshmatcap_vert:qas,meshmatcap_frag:Yas,meshnormal_vert:Jas,meshnormal_frag:Zas,meshphong_vert:Xas,meshphong_frag:eos,meshphysical_vert:tos,meshphysical_frag:nos,meshtoon_vert:ros,meshtoon_frag:ios,points_vert:aos,points_frag:oos,shadow_vert:sos,shadow_frag:los,sprite_vert:cos,sprite_frag:uos},qr={common:{diffuse:{value:new ci(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new bp},uv2Transform:{value:new bp},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Qn(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new ci(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new ci(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new bp}},sprite:{diffuse:{value:new ci(16777215)},opacity:{value:1},center:{value:new Qn(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new bp}}},WS={basic:{uniforms:Wg([qr.common,qr.specularmap,qr.envmap,qr.aomap,qr.lightmap,qr.fog]),vertexShader:Rs.meshbasic_vert,fragmentShader:Rs.meshbasic_frag},lambert:{uniforms:Wg([qr.common,qr.specularmap,qr.envmap,qr.aomap,qr.lightmap,qr.emissivemap,qr.fog,qr.lights,{emissive:{value:new ci(0)}}]),vertexShader:Rs.meshlambert_vert,fragmentShader:Rs.meshlambert_frag},phong:{uniforms:Wg([qr.common,qr.specularmap,qr.envmap,qr.aomap,qr.lightmap,qr.emissivemap,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.fog,qr.lights,{emissive:{value:new ci(0)},specular:{value:new ci(1118481)},shininess:{value:30}}]),vertexShader:Rs.meshphong_vert,fragmentShader:Rs.meshphong_frag},standard:{uniforms:Wg([qr.common,qr.envmap,qr.aomap,qr.lightmap,qr.emissivemap,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.roughnessmap,qr.metalnessmap,qr.fog,qr.lights,{emissive:{value:new ci(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Rs.meshphysical_vert,fragmentShader:Rs.meshphysical_frag},toon:{uniforms:Wg([qr.common,qr.aomap,qr.lightmap,qr.emissivemap,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.gradientmap,qr.fog,qr.lights,{emissive:{value:new ci(0)}}]),vertexShader:Rs.meshtoon_vert,fragmentShader:Rs.meshtoon_frag},matcap:{uniforms:Wg([qr.common,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.fog,{matcap:{value:null}}]),vertexShader:Rs.meshmatcap_vert,fragmentShader:Rs.meshmatcap_frag},points:{uniforms:Wg([qr.points,qr.fog]),vertexShader:Rs.points_vert,fragmentShader:Rs.points_frag},dashed:{uniforms:Wg([qr.common,qr.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Rs.linedashed_vert,fragmentShader:Rs.linedashed_frag},depth:{uniforms:Wg([qr.common,qr.displacementmap]),vertexShader:Rs.depth_vert,fragmentShader:Rs.depth_frag},normal:{uniforms:Wg([qr.common,qr.bumpmap,qr.normalmap,qr.displacementmap,{opacity:{value:1}}]),vertexShader:Rs.meshnormal_vert,fragmentShader:Rs.meshnormal_frag},sprite:{uniforms:Wg([qr.sprite,qr.fog]),vertexShader:Rs.sprite_vert,fragmentShader:Rs.sprite_frag},background:{uniforms:{uvTransform:{value:new bp},t2D:{value:null}},vertexShader:Rs.background_vert,fragmentShader:Rs.background_frag},cube:{uniforms:Wg([qr.envmap,{opacity:{value:1}}]),vertexShader:Rs.cube_vert,fragmentShader:Rs.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Rs.equirect_vert,fragmentShader:Rs.equirect_frag},distanceRGBA:{uniforms:Wg([qr.common,qr.displacementmap,{referencePosition:{value:new et},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Rs.distanceRGBA_vert,fragmentShader:Rs.distanceRGBA_frag},shadow:{uniforms:Wg([qr.lights,qr.fog,{color:{value:new ci(0)},opacity:{value:1}}]),vertexShader:Rs.shadow_vert,fragmentShader:Rs.shadow_frag}};WS.physical={uniforms:Wg([WS.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Qn(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new ci(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new Qn},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new ci(0)},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new ci(1,1,1)},specularColorMap:{value:null}}]),vertexShader:Rs.meshphysical_vert,fragmentShader:Rs.meshphysical_frag};function dos(t,e,n,r,a,o){const s=new ci(0);let l=a===!0?0:1,c,u,d=null,h=0,f=null;function p(g,v){let A=!1,y=v.isScene===!0?v.background:null;y&&y.isTexture&&(y=e.get(y));const S=t.xr,x=S.getSession&&S.getSession();x&&x.environmentBlendMode==="additive"&&(y=null),y===null?m(s,l):y&&y.isColor&&(m(y,1),A=!0),(t.autoClear||A)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),y&&(y.isCubeTexture||y.mapping===$K)?(u===void 0&&(u=new Bf(new GM(1,1,1),new rE({name:"BackgroundCubeMaterial",uniforms:Iz(WS.cube.uniforms),vertexShader:WS.cube.vertexShader,fragmentShader:WS.cube.fragmentShader,side:Gy,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(w,_,C){this.matrixWorld.copyPosition(C.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),u.material.uniforms.envMap.value=y,u.material.uniforms.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,(d!==y||h!==y.version||f!==t.toneMapping)&&(u.material.needsUpdate=!0,d=y,h=y.version,f=t.toneMapping),g.unshift(u,u.geometry,u.material,0,0,null)):y&&y.isTexture&&(c===void 0&&(c=new Bf(new y8(2,2),new rE({name:"BackgroundMaterial",uniforms:Iz(WS.background.uniforms),vertexShader:WS.background.vertexShader,fragmentShader:WS.background.fragmentShader,side:m8,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=y,y.matrixAutoUpdate===!0&&y.updateMatrix(),c.material.uniforms.uvTransform.value.copy(y.matrix),(d!==y||h!==y.version||f!==t.toneMapping)&&(c.material.needsUpdate=!0,d=y,h=y.version,f=t.toneMapping),g.unshift(c,c.geometry,c.material,0,0,null))}function m(g,v){n.buffers.color.setClear(g.r,g.g,g.b,v,o)}return{getClearColor:function(){return s},setClearColor:function(g,v=1){s.set(g),l=v,m(s,l)},getClearAlpha:function(){return l},setClearAlpha:function(g){l=g,m(s,l)},render:p}}function hos(t,e,n,r){const a=t.getParameter(34921),o=r.isWebGL2?null:e.get("OES_vertex_array_object"),s=r.isWebGL2||o!==null,l={},c=v(null);let u=c,d=!1;function h(b,T,M,D,B){let j=!1;if(s){const H=g(D,M,T);u!==H&&(u=H,p(u.object)),j=A(D,B),j&&y(D,B)}else{const H=T.wireframe===!0;(u.geometry!==D.id||u.program!==M.id||u.wireframe!==H)&&(u.geometry=D.id,u.program=M.id,u.wireframe=H,j=!0)}b.isInstancedMesh===!0&&(j=!0),B!==null&&n.update(B,34963),(j||d)&&(d=!1,R(b,T,M,D),B!==null&&t.bindBuffer(34963,n.get(B).buffer))}function f(){return r.isWebGL2?t.createVertexArray():o.createVertexArrayOES()}function p(b){return r.isWebGL2?t.bindVertexArray(b):o.bindVertexArrayOES(b)}function m(b){return r.isWebGL2?t.deleteVertexArray(b):o.deleteVertexArrayOES(b)}function g(b,T,M){const D=M.wireframe===!0;let B=l[b.id];B===void 0&&(B={},l[b.id]=B);let j=B[T.id];j===void 0&&(j={},B[T.id]=j);let H=j[D];return H===void 0&&(H=v(f()),j[D]=H),H}function v(b){const T=[],M=[],D=[];for(let B=0;B<a;B++)T[B]=0,M[B]=0,D[B]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:T,enabledAttributes:M,attributeDivisors:D,object:b,attributes:{},index:null}}function A(b,T){const M=u.attributes,D=b.attributes;let B=0;for(const j in D){const H=M[j],U=D[j];if(H===void 0||H.attribute!==U||H.data!==U.data)return!0;B++}return u.attributesNum!==B||u.index!==T}function y(b,T){const M={},D=b.attributes;let B=0;for(const j in D){const H=D[j],U={};U.attribute=H,H.data&&(U.data=H.data),M[j]=U,B++}u.attributes=M,u.attributesNum=B,u.index=T}function S(){const b=u.newAttributes;for(let T=0,M=b.length;T<M;T++)b[T]=0}function x(b){w(b,0)}function w(b,T){const M=u.newAttributes,D=u.enabledAttributes,B=u.attributeDivisors;M[b]=1,D[b]===0&&(t.enableVertexAttribArray(b),D[b]=1),B[b]!==T&&((r.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](b,T),B[b]=T)}function _(){const b=u.newAttributes,T=u.enabledAttributes;for(let M=0,D=T.length;M<D;M++)T[M]!==b[M]&&(t.disableVertexAttribArray(M),T[M]=0)}function C(b,T,M,D,B,j){r.isWebGL2===!0&&(M===5124||M===5125)?t.vertexAttribIPointer(b,T,M,B,j):t.vertexAttribPointer(b,T,M,D,B,j)}function R(b,T,M,D){if(r.isWebGL2===!1&&(b.isInstancedMesh||D.isInstancedBufferGeometry)&&e.get("ANGLE_instanced_arrays")===null)return;S();const B=D.attributes,j=M.getAttributes(),H=T.defaultAttributeValues;for(const U in j){const $=j[U];if($.location>=0){let z=B[U];if(z===void 0&&(U==="instanceMatrix"&&b.instanceMatrix&&(z=b.instanceMatrix),U==="instanceColor"&&b.instanceColor&&(z=b.instanceColor)),z!==void 0){const Z=z.normalized,K=z.itemSize,Q=n.get(z);if(Q===void 0)continue;const ee=Q.buffer,X=Q.type,te=Q.bytesPerElement;if(z.isInterleavedBufferAttribute){const J=z.data,ne=J.stride,ie=z.offset;if(J.isInstancedInterleavedBuffer){for(let he=0;he<$.locationSize;he++)w($.location+he,J.meshPerAttribute);b.isInstancedMesh!==!0&&D._maxInstanceCount===void 0&&(D._maxInstanceCount=J.meshPerAttribute*J.count)}else for(let he=0;he<$.locationSize;he++)x($.location+he);t.bindBuffer(34962,ee);for(let he=0;he<$.locationSize;he++)C($.location+he,K/$.locationSize,X,Z,ne*te,(ie+K/$.locationSize*he)*te)}else{if(z.isInstancedBufferAttribute){for(let J=0;J<$.locationSize;J++)w($.location+J,z.meshPerAttribute);b.isInstancedMesh!==!0&&D._maxInstanceCount===void 0&&(D._maxInstanceCount=z.meshPerAttribute*z.count)}else for(let J=0;J<$.locationSize;J++)x($.location+J);t.bindBuffer(34962,ee);for(let J=0;J<$.locationSize;J++)C($.location+J,K/$.locationSize,X,Z,K*te,K/$.locationSize*J*te)}}else if(H!==void 0){const Z=H[U];if(Z!==void 0)switch(Z.length){case 2:t.vertexAttrib2fv($.location,Z);break;case 3:t.vertexAttrib3fv($.location,Z);break;case 4:t.vertexAttrib4fv($.location,Z);break;default:t.vertexAttrib1fv($.location,Z)}}}}_()}function k(){L();for(const b in l){const T=l[b];for(const M in T){const D=T[M];for(const B in D)m(D[B].object),delete D[B];delete T[M]}delete l[b]}}function P(b){if(l[b.id]===void 0)return;const T=l[b.id];for(const M in T){const D=T[M];for(const B in D)m(D[B].object),delete D[B];delete T[M]}delete l[b.id]}function N(b){for(const T in l){const M=l[T];if(M[b.id]===void 0)continue;const D=M[b.id];for(const B in D)m(D[B].object),delete D[B];delete M[b.id]}}function L(){I(),d=!0,u!==c&&(u=c,p(u.object))}function I(){c.geometry=null,c.program=null,c.wireframe=!1}return{setup:h,reset:L,resetDefaultState:I,dispose:k,releaseStatesOfGeometry:P,releaseStatesOfProgram:N,initAttributes:S,enableAttribute:x,disableUnusedAttributes:_}}function fos(t,e,n,r){const a=r.isWebGL2;let o;function s(u){o=u}function l(u,d){t.drawArrays(o,u,d),n.update(d,o,1)}function c(u,d,h){if(h===0)return;let f,p;if(a)f=t,p="drawArraysInstanced";else if(f=e.get("ANGLE_instanced_arrays"),p="drawArraysInstancedANGLE",f===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}f[p](o,u,d,h),n.update(d,o,h)}this.setMode=s,this.render=l,this.renderInstances=c}function pos(t,e,n){let r;function a(){if(r!==void 0)return r;if(e.has("EXT_texture_filter_anisotropic")===!0){const C=e.get("EXT_texture_filter_anisotropic");r=t.getParameter(C.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r}function o(C){if(C==="highp"){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";C="mediump"}return C==="mediump"&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext||typeof WebGL2ComputeRenderingContext<"u"&&t instanceof WebGL2ComputeRenderingContext;let l=n.precision!==void 0?n.precision:"highp";const c=o(l);c!==l&&(console.warn("THREE.WebGLRenderer:",l,"not supported, using",c,"instead."),l=c);const u=s||e.has("WEBGL_draw_buffers"),d=n.logarithmicDepthBuffer===!0,h=t.getParameter(34930),f=t.getParameter(35660),p=t.getParameter(3379),m=t.getParameter(34076),g=t.getParameter(34921),v=t.getParameter(36347),A=t.getParameter(36348),y=t.getParameter(36349),S=f>0,x=s||e.has("OES_texture_float"),w=S&&x,_=s?t.getParameter(36183):0;return{isWebGL2:s,drawBuffers:u,getMaxAnisotropy:a,getMaxPrecision:o,precision:l,logarithmicDepthBuffer:d,maxTextures:h,maxVertexTextures:f,maxTextureSize:p,maxCubemapSize:m,maxAttributes:g,maxVertexUniforms:v,maxVaryings:A,maxFragmentUniforms:y,vertexTextures:S,floatFragmentTextures:x,floatVertexTextures:w,maxSamples:_}}function mos(t){const e=this;let n=null,r=0,a=!1,o=!1;const s=new KS,l=new bp,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f,p){const m=h.length!==0||f||r!==0||a;return a=f,n=d(h,p,0),r=h.length,m},this.beginShadows=function(){o=!0,d(null)},this.endShadows=function(){o=!1,u()},this.setState=function(h,f,p){const m=h.clippingPlanes,g=h.clipIntersection,v=h.clipShadows,A=t.get(h);if(!a||m===null||m.length===0||o&&!v)o?d(null):u();else{const y=o?0:r,S=y*4;let x=A.clippingState||null;c.value=x,x=d(m,f,S,p);for(let w=0;w!==S;++w)x[w]=n[w];A.clippingState=x,this.numIntersection=g?this.numPlanes:0,this.numPlanes+=y}};function u(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function d(h,f,p,m){const g=h!==null?h.length:0;let v=null;if(g!==0){if(v=c.value,m!==!0||v===null){const A=p+g*4,y=f.matrixWorldInverse;l.getNormalMatrix(y),(v===null||v.length<A)&&(v=new Float32Array(A));for(let S=0,x=p;S!==g;++S,x+=4)s.copy(h[S]).applyMatrix4(y,l),s.normal.toArray(v,x),v[x+3]=s.constant}c.value=v,c.needsUpdate=!0}return e.numPlanes=g,e.numIntersection=0,v}}function gos(t){let e=new WeakMap;function n(s,l){return l===tie?s.mapping=jP:l===nie&&(s.mapping=HP),s}function r(s){if(s&&s.isTexture&&s.isRenderTargetTexture===!1){const l=s.mapping;if(l===tie||l===nie)if(e.has(s)){const c=e.get(s).texture;return n(c,s.mapping)}else{const c=s.image;if(c&&c.height>0){const u=new ike(c.height/2);return u.fromEquirectangularTexture(t,s),e.set(s,u),s.addEventListener("dispose",a),n(u.texture,s.mapping)}else return null}}return s}function a(s){const l=s.target;l.removeEventListener("dispose",a);const c=e.get(l);c!==void 0&&(e.delete(l),c.dispose())}function o(){e=new WeakMap}return{get:r,dispose:o}}class Cx extends A8{constructor(e=-1,n=1,r=1,a=-1,o=.1,s=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=a,this.near=o,this.far=s,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,r,a,o,s){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=a,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,a=(this.top+this.bottom)/2;let o=r-e,s=r+e,l=a+n,c=a-n;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;o+=u*this.view.offsetX,s=o+u*this.view.width,l-=d*this.view.offsetY,c=l-d*this.view.height}this.projectionMatrix.makeOrthographic(o,s,l,c,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}Cx.prototype.isOrthographicCamera=!0;const vj=4,aHt=[.125,.215,.35,.446,.526,.582],CB=20,j7e=new Cx,oHt=new ci;let H7e=null;const hB=(1+Math.sqrt(5))/2,G7=1/hB,sHt=[new et(1,1,1),new et(-1,1,1),new et(1,1,-1),new et(-1,1,-1),new et(0,hB,G7),new et(0,hB,-G7),new et(G7,0,hB),new et(-G7,0,hB),new et(hB,G7,0),new et(-hB,G7,0)];class kYe{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,r=.1,a=100){H7e=this._renderer.getRenderTarget(),this._setSize(256);const o=this._allocateTargets();return o.depthBuffer=!0,this._sceneToCubeUV(e,r,a,o),n>0&&this._blur(o,0,0,n),this._applyPMREM(o),this._cleanup(o),o}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=uHt(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=cHt(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(H7e),e.scissorTest=!1,rpe(e,0,0,e.width,e.height)}_fromTexture(e,n){e.mapping===jP||e.mapping===HP?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),H7e=this._renderer.getRenderTarget();const r=n||this._allocateTargets();return this._textureToCubeUV(e,r),this._applyPMREM(r),this._cleanup(r),r}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize-32,r={magFilter:Hh,minFilter:Hh,generateMipmaps:!1,type:QD,format:Ly,encoding:nE,depthBuffer:!1},a=lHt(e,n,r);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=lHt(e,n,r);const{_lodMax:o}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=vos(o)),this._blurMaterial=Aos(o,e,n)}return a}_compileMaterial(e){const n=new Bf(this._lodPlanes[0],e);this._renderer.compile(n,j7e)}_sceneToCubeUV(e,n,r,a){const l=new Xu(90,1,n,r),c=[1,-1,1,1,1,1],u=[1,1,1,-1,-1,-1],d=this._renderer,h=d.autoClear,f=d.toneMapping;d.getClearColor(oHt),d.toneMapping=_w,d.autoClear=!1;const p=new NN({name:"PMREM.Background",side:Gy,depthWrite:!1,depthTest:!1}),m=new Bf(new GM,p);let g=!1;const v=e.background;v?v.isColor&&(p.color.copy(v),e.background=null,g=!0):(p.color.copy(oHt),g=!0);for(let A=0;A<6;A++){const y=A%3;y===0?(l.up.set(0,c[A],0),l.lookAt(u[A],0,0)):y===1?(l.up.set(0,0,c[A]),l.lookAt(0,u[A],0)):(l.up.set(0,c[A],0),l.lookAt(0,0,u[A]));const S=this._cubeSize;rpe(a,y*S,A>2?S:0,S,S),d.setRenderTarget(a),g&&d.render(m,l),d.render(e,l)}m.geometry.dispose(),m.material.dispose(),d.toneMapping=f,d.autoClear=h,e.background=v}_textureToCubeUV(e,n){const r=this._renderer,a=e.mapping===jP||e.mapping===HP;a?(this._cubemapMaterial===null&&(this._cubemapMaterial=uHt()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=cHt());const o=a?this._cubemapMaterial:this._equirectMaterial,s=new Bf(this._lodPlanes[0],o),l=o.uniforms;l.envMap.value=e;const c=this._cubeSize;rpe(n,0,0,3*c,2*c),r.setRenderTarget(n),r.render(s,j7e)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;for(let a=1;a<this._lodPlanes.length;a++){const o=Math.sqrt(this._sigmas[a]*this._sigmas[a]-this._sigmas[a-1]*this._sigmas[a-1]),s=sHt[(a-1)%sHt.length];this._blur(e,a-1,a,o,s)}n.autoClear=r}_blur(e,n,r,a,o){const s=this._pingPongRenderTarget;this._halfBlur(e,s,n,r,a,"latitudinal",o),this._halfBlur(s,e,r,r,a,"longitudinal",o)}_halfBlur(e,n,r,a,o,s,l){const c=this._renderer,u=this._blurMaterial;s!=="latitudinal"&&s!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const d=3,h=new Bf(this._lodPlanes[a],u),f=u.uniforms,p=this._sizeLods[r]-1,m=isFinite(o)?Math.PI/(2*p):2*Math.PI/(2*CB-1),g=o/m,v=isFinite(o)?1+Math.floor(d*g):CB;v>CB&&console.warn(`sigmaRadians, ${o}, is too large and will clip, as it requested ${v} samples when the maximum is set to ${CB}`);const A=[];let y=0;for(let C=0;C<CB;++C){const R=C/g,k=Math.exp(-R*R/2);A.push(k),C===0?y+=k:C<v&&(y+=2*k)}for(let C=0;C<A.length;C++)A[C]=A[C]/y;f.envMap.value=e.texture,f.samples.value=v,f.weights.value=A,f.latitudinal.value=s==="latitudinal",l&&(f.poleAxis.value=l);const{_lodMax:S}=this;f.dTheta.value=m,f.mipInt.value=S-r;const x=this._sizeLods[a],w=3*x*(a>S-vj?a-S+vj:0),_=4*(this._cubeSize-x);rpe(n,w,_,3*x,2*x),c.setRenderTarget(n),c.render(h,j7e)}}function vos(t){const e=[],n=[],r=[];let a=t;const o=t-vj+1+aHt.length;for(let s=0;s<o;s++){const l=Math.pow(2,a);n.push(l);let c=1/l;s>t-vj?c=aHt[s-t+vj-1]:s===0&&(c=0),r.push(c);const u=1/(l-1),d=-u/2,h=1+u/2,f=[d,d,h,d,h,h,d,d,h,h,d,h],p=6,m=6,g=3,v=2,A=1,y=new Float32Array(g*m*p),S=new Float32Array(v*m*p),x=new Float32Array(A*m*p);for(let _=0;_<p;_++){const C=_%3*2/3-1,R=_>2?0:-1,k=[C,R,0,C+2/3,R,0,C+2/3,R+1,0,C,R,0,C+2/3,R+1,0,C,R+1,0];y.set(k,g*m*_),S.set(f,v*m*_);const P=[_,_,_,_,_,_];x.set(P,A*m*_)}const w=new Ya;w.setAttribute("position",new bl(y,g)),w.setAttribute("uv",new bl(S,v)),w.setAttribute("faceIndex",new bl(x,A)),e.push(w),a>vj&&a--}return{lodPlanes:e,sizeLods:n,sigmas:r}}function lHt(t,e,n){const r=new H0(t,e,n);return r.texture.mapping=$K,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function rpe(t,e,n,r,a){t.viewport.set(e,n,r,a),t.scissor.set(e,n,r,a)}function Aos(t,e,n){const r=new Float32Array(CB),a=new et(0,1,0);return new rE({name:"SphericalGaussianBlur",defines:{n:CB,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:a}},vertexShader:Udt(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			varying vec3 vOutputDirection;

			uniform sampler2D envMap;
			uniform int samples;
			uniform float weights[ n ];
			uniform bool latitudinal;
			uniform float dTheta;
			uniform float mipInt;
			uniform vec3 poleAxis;

			#define ENVMAP_TYPE_CUBE_UV
			#include <cube_uv_reflection_fragment>

			vec3 getSample( float theta, vec3 axis ) {

				float cosTheta = cos( theta );
				// Rodrigues' axis-angle rotation
				vec3 sampleDirection = vOutputDirection * cosTheta
					+ cross( axis, vOutputDirection ) * sin( theta )
					+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );

				return bilinearCubeUV( envMap, sampleDirection, mipInt );

			}

			void main() {

				vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );

				if ( all( equal( axis, vec3( 0.0 ) ) ) ) {

					axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );

				}

				axis = normalize( axis );

				gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
				gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );

				for ( int i = 1; i < n; i++ ) {

					if ( i >= samples ) {

						break;

					}

					float theta = dTheta * float( i );
					gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
					gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );

				}

			}
		`,blending:lM,depthTest:!1,depthWrite:!1})}function cHt(){return new rE({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Udt(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			varying vec3 vOutputDirection;

			uniform sampler2D envMap;

			#include <common>

			void main() {

				vec3 outputDirection = normalize( vOutputDirection );
				vec2 uv = equirectUv( outputDirection );

				gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );

			}
		`,blending:lM,depthTest:!1,depthWrite:!1})}function uHt(){return new rE({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Udt(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			uniform float flipEnvMap;

			varying vec3 vOutputDirection;

			uniform samplerCube envMap;

			void main() {

				gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );

			}
		`,blending:lM,depthTest:!1,depthWrite:!1})}function Udt(){return`

		precision mediump float;
		precision mediump int;

		attribute float faceIndex;

		varying vec3 vOutputDirection;

		// RH coordinate system; PMREM face-indexing convention
		vec3 getDirection( vec2 uv, float face ) {

			uv = 2.0 * uv - 1.0;

			vec3 direction = vec3( uv, 1.0 );

			if ( face == 0.0 ) {

				direction = direction.zyx; // ( 1, v, u ) pos x

			} else if ( face == 1.0 ) {

				direction = direction.xzy;
				direction.xz *= -1.0; // ( -u, 1, -v ) pos y

			} else if ( face == 2.0 ) {

				direction.x *= -1.0; // ( -u, v, 1 ) pos z

			} else if ( face == 3.0 ) {

				direction = direction.zyx;
				direction.xz *= -1.0; // ( -1, v, -u ) neg x

			} else if ( face == 4.0 ) {

				direction = direction.xzy;
				direction.xy *= -1.0; // ( -u, -1, v ) neg y

			} else if ( face == 5.0 ) {

				direction.z *= -1.0; // ( u, v, -1 ) neg z

			}

			return direction;

		}

		void main() {

			vOutputDirection = getDirection( uv, faceIndex );
			gl_Position = vec4( position, 1.0 );

		}
	`}function yos(t){let e=new WeakMap,n=null;function r(l){if(l&&l.isTexture){const c=l.mapping,u=c===tie||c===nie,d=c===jP||c===HP;if(u||d)if(l.isRenderTargetTexture&&l.needsPMREMUpdate===!0){l.needsPMREMUpdate=!1;let h=e.get(l);return n===null&&(n=new kYe(t)),h=u?n.fromEquirectangular(l,h):n.fromCubemap(l,h),e.set(l,h),h.texture}else{if(e.has(l))return e.get(l).texture;{const h=l.image;if(u&&h&&h.height>0||d&&h&&a(h)){n===null&&(n=new kYe(t));const f=u?n.fromEquirectangular(l):n.fromCubemap(l);return e.set(l,f),l.addEventListener("dispose",o),f.texture}else return null}}}return l}function a(l){let c=0;const u=6;for(let d=0;d<u;d++)l[d]!==void 0&&c++;return c===u}function o(l){const c=l.target;c.removeEventListener("dispose",o);const u=e.get(c);u!==void 0&&(e.delete(c),u.dispose())}function s(){e=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:r,dispose:s}}function bos(t){const e={};function n(r){if(e[r]!==void 0)return e[r];let a;switch(r){case"WEBGL_depth_texture":a=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":a=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":a=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":a=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:a=t.getExtension(r)}return e[r]=a,a}return{has:function(r){return n(r)!==null},init:function(r){r.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(r){const a=n(r);return a===null&&console.warn("THREE.WebGLRenderer: "+r+" extension not supported."),a}}}function xos(t,e,n,r){const a={},o=new WeakMap;function s(h){const f=h.target;f.index!==null&&e.remove(f.index);for(const m in f.attributes)e.remove(f.attributes[m]);f.removeEventListener("dispose",s),delete a[f.id];const p=o.get(f);p&&(e.remove(p),o.delete(f)),r.releaseStatesOfGeometry(f),f.isInstancedBufferGeometry===!0&&delete f._maxInstanceCount,n.memory.geometries--}function l(h,f){return a[f.id]===!0||(f.addEventListener("dispose",s),a[f.id]=!0,n.memory.geometries++),f}function c(h){const f=h.attributes;for(const m in f)e.update(f[m],34962);const p=h.morphAttributes;for(const m in p){const g=p[m];for(let v=0,A=g.length;v<A;v++)e.update(g[v],34962)}}function u(h){const f=[],p=h.index,m=h.attributes.position;let g=0;if(p!==null){const y=p.array;g=p.version;for(let S=0,x=y.length;S<x;S+=3){const w=y[S+0],_=y[S+1],C=y[S+2];f.push(w,_,_,C,C,w)}}else{const y=m.array;g=m.version;for(let S=0,x=y.length/3-1;S<x;S+=3){const w=S+0,_=S+1,C=S+2;f.push(w,_,_,C,C,w)}}const v=new(Cer(f)?nke:tke)(f,1);v.version=g;const A=o.get(h);A&&e.remove(A),o.set(h,v)}function d(h){const f=o.get(h);if(f){const p=h.index;p!==null&&f.version<p.version&&u(h)}else u(h);return o.get(h)}return{get:l,update:c,getWireframeAttribute:d}}function Eos(t,e,n,r){const a=r.isWebGL2;let o;function s(f){o=f}let l,c;function u(f){l=f.type,c=f.bytesPerElement}function d(f,p){t.drawElements(o,p,l,f*c),n.update(p,o,1)}function h(f,p,m){if(m===0)return;let g,v;if(a)g=t,v="drawElementsInstanced";else if(g=e.get("ANGLE_instanced_arrays"),v="drawElementsInstancedANGLE",g===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}g[v](o,p,l,f*c,m),n.update(p,o,m)}this.setMode=s,this.setIndex=u,this.render=d,this.renderInstances=h}function Sos(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function r(o,s,l){switch(n.calls++,s){case 4:n.triangles+=l*(o/3);break;case 1:n.lines+=l*(o/2);break;case 3:n.lines+=l*(o-1);break;case 2:n.lines+=l*o;break;case 0:n.points+=l*o;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",s);break}}function a(){n.frame++,n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:a,update:r}}function wos(t,e){return t[0]-e[0]}function _os(t,e){return Math.abs(e[1])-Math.abs(t[1])}function U7e(t,e){let n=1;const r=e.isInterleavedBufferAttribute?e.data.array:e.array;r instanceof Int8Array?n=127:r instanceof Int16Array?n=32767:r instanceof Int32Array?n=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",r),t.divideScalar(n)}function Tos(t,e,n){const r={},a=new Float32Array(8),o=new WeakMap,s=new Ac,l=[];for(let u=0;u<8;u++)l[u]=[u,0];function c(u,d,h,f){const p=u.morphTargetInfluences;if(e.isWebGL2===!0){const m=d.morphAttributes.position||d.morphAttributes.normal||d.morphAttributes.color,g=m!==void 0?m.length:0;let v=o.get(d);if(v===void 0||v.count!==g){let T=function(){I.dispose(),o.delete(d),d.removeEventListener("dispose",T)};v!==void 0&&v.texture.dispose();const S=d.morphAttributes.position!==void 0,x=d.morphAttributes.normal!==void 0,w=d.morphAttributes.color!==void 0,_=d.morphAttributes.position||[],C=d.morphAttributes.normal||[],R=d.morphAttributes.color||[];let k=0;S===!0&&(k=1),x===!0&&(k=2),w===!0&&(k=3);let P=d.attributes.position.count*k,N=1;P>e.maxTextureSize&&(N=Math.ceil(P/e.maxTextureSize),P=e.maxTextureSize);const L=new Float32Array(P*N*4*g),I=new FK(L,P,N,g);I.type=qR,I.needsUpdate=!0;const b=k*4;for(let M=0;M<g;M++){const D=_[M],B=C[M],j=R[M],H=P*N*4*M;for(let U=0;U<D.count;U++){const $=U*b;S===!0&&(s.fromBufferAttribute(D,U),D.normalized===!0&&U7e(s,D),L[H+$+0]=s.x,L[H+$+1]=s.y,L[H+$+2]=s.z,L[H+$+3]=0),x===!0&&(s.fromBufferAttribute(B,U),B.normalized===!0&&U7e(s,B),L[H+$+4]=s.x,L[H+$+5]=s.y,L[H+$+6]=s.z,L[H+$+7]=0),w===!0&&(s.fromBufferAttribute(j,U),j.normalized===!0&&U7e(s,j),L[H+$+8]=s.x,L[H+$+9]=s.y,L[H+$+10]=s.z,L[H+$+11]=j.itemSize===4?s.w:1)}}v={count:g,texture:I,size:new Qn(P,N)},o.set(d,v),d.addEventListener("dispose",T)}let A=0;for(let S=0;S<p.length;S++)A+=p[S];const y=d.morphTargetsRelative?1:1-A;f.getUniforms().setValue(t,"morphTargetBaseInfluence",y),f.getUniforms().setValue(t,"morphTargetInfluences",p),f.getUniforms().setValue(t,"morphTargetsTexture",v.texture,n),f.getUniforms().setValue(t,"morphTargetsTextureSize",v.size)}else{const m=p===void 0?0:p.length;let g=r[d.id];if(g===void 0||g.length!==m){g=[];for(let x=0;x<m;x++)g[x]=[x,0];r[d.id]=g}for(let x=0;x<m;x++){const w=g[x];w[0]=x,w[1]=p[x]}g.sort(_os);for(let x=0;x<8;x++)x<m&&g[x][1]?(l[x][0]=g[x][0],l[x][1]=g[x][1]):(l[x][0]=Number.MAX_SAFE_INTEGER,l[x][1]=0);l.sort(wos);const v=d.morphAttributes.position,A=d.morphAttributes.normal;let y=0;for(let x=0;x<8;x++){const w=l[x],_=w[0],C=w[1];_!==Number.MAX_SAFE_INTEGER&&C?(v&&d.getAttribute("morphTarget"+x)!==v[_]&&d.setAttribute("morphTarget"+x,v[_]),A&&d.getAttribute("morphNormal"+x)!==A[_]&&d.setAttribute("morphNormal"+x,A[_]),a[x]=C,y+=C):(v&&d.hasAttribute("morphTarget"+x)===!0&&d.deleteAttribute("morphTarget"+x),A&&d.hasAttribute("morphNormal"+x)===!0&&d.deleteAttribute("morphNormal"+x),a[x]=0)}const S=d.morphTargetsRelative?1:1-y;f.getUniforms().setValue(t,"morphTargetBaseInfluence",S),f.getUniforms().setValue(t,"morphTargetInfluences",a)}}return{update:c}}function Cos(t,e,n,r){let a=new WeakMap;function o(c){const u=r.render.frame,d=c.geometry,h=e.get(c,d);return a.get(h)!==u&&(e.update(h),a.set(h,u)),c.isInstancedMesh&&(c.hasEventListener("dispose",l)===!1&&c.addEventListener("dispose",l),n.update(c.instanceMatrix,34962),c.instanceColor!==null&&n.update(c.instanceColor,34962)),h}function s(){a=new WeakMap}function l(c){const u=c.target;u.removeEventListener("dispose",l),n.remove(u.instanceMatrix),u.instanceColor!==null&&n.remove(u.instanceColor)}return{update:o,dispose:s}}const Her=new Ah,Uer=new FK,zer=new sle,Ger=new jK,dHt=[],hHt=[],fHt=new Float32Array(16),pHt=new Float32Array(9),mHt=new Float32Array(4);function HK(t,e,n){const r=t[0];if(r<=0||r>0)return t;const a=e*n;let o=dHt[a];if(o===void 0&&(o=new Float32Array(a),dHt[a]=o),e!==0){r.toArray(o,0);for(let s=1,l=0;s!==e;++s)l+=n,t[s].toArray(o,l)}return o}function J0(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function kv(t,e){for(let n=0,r=e.length;n<r;n++)t[n]=e[n]}function ake(t,e){let n=hHt[e];n===void 0&&(n=new Int32Array(e),hHt[e]=n);for(let r=0;r!==e;++r)n[r]=t.allocateTextureUnit();return n}function kos(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function Ros(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(J0(n,e))return;t.uniform2fv(this.addr,e),kv(n,e)}}function Mos(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(e.r!==void 0)(n[0]!==e.r||n[1]!==e.g||n[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(J0(n,e))return;t.uniform3fv(this.addr,e),kv(n,e)}}function Nos(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(J0(n,e))return;t.uniform4fv(this.addr,e),kv(n,e)}}function Ios(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(J0(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),kv(n,e)}else{if(J0(n,r))return;mHt.set(r),t.uniformMatrix2fv(this.addr,!1,mHt),kv(n,r)}}function Pos(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(J0(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),kv(n,e)}else{if(J0(n,r))return;pHt.set(r),t.uniformMatrix3fv(this.addr,!1,pHt),kv(n,r)}}function Oos(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(J0(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),kv(n,e)}else{if(J0(n,r))return;fHt.set(r),t.uniformMatrix4fv(this.addr,!1,fHt),kv(n,r)}}function Los(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function Bos(t,e){const n=this.cache;J0(n,e)||(t.uniform2iv(this.addr,e),kv(n,e))}function Dos(t,e){const n=this.cache;J0(n,e)||(t.uniform3iv(this.addr,e),kv(n,e))}function $os(t,e){const n=this.cache;J0(n,e)||(t.uniform4iv(this.addr,e),kv(n,e))}function Fos(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function jos(t,e){const n=this.cache;J0(n,e)||(t.uniform2uiv(this.addr,e),kv(n,e))}function Hos(t,e){const n=this.cache;J0(n,e)||(t.uniform3uiv(this.addr,e),kv(n,e))}function Uos(t,e){const n=this.cache;J0(n,e)||(t.uniform4uiv(this.addr,e),kv(n,e))}function zos(t,e,n){const r=this.cache,a=n.allocateTextureUnit();r[0]!==a&&(t.uniform1i(this.addr,a),r[0]=a),n.setTexture2D(e||Her,a)}function Gos(t,e,n){const r=this.cache,a=n.allocateTextureUnit();r[0]!==a&&(t.uniform1i(this.addr,a),r[0]=a),n.setTexture3D(e||zer,a)}function Vos(t,e,n){const r=this.cache,a=n.allocateTextureUnit();r[0]!==a&&(t.uniform1i(this.addr,a),r[0]=a),n.setTextureCube(e||Ger,a)}function Kos(t,e,n){const r=this.cache,a=n.allocateTextureUnit();r[0]!==a&&(t.uniform1i(this.addr,a),r[0]=a),n.setTexture2DArray(e||Uer,a)}function Wos(t){switch(t){case 5126:return kos;case 35664:return Ros;case 35665:return Mos;case 35666:return Nos;case 35674:return Ios;case 35675:return Pos;case 35676:return Oos;case 5124:case 35670:return Los;case 35667:case 35671:return Bos;case 35668:case 35672:return Dos;case 35669:case 35673:return $os;case 5125:return Fos;case 36294:return jos;case 36295:return Hos;case 36296:return Uos;case 35678:case 36198:case 36298:case 36306:case 35682:return zos;case 35679:case 36299:case 36307:return Gos;case 35680:case 36300:case 36308:case 36293:return Vos;case 36289:case 36303:case 36311:case 36292:return Kos}}function Qos(t,e){t.uniform1fv(this.addr,e)}function qos(t,e){const n=HK(e,this.size,2);t.uniform2fv(this.addr,n)}function Yos(t,e){const n=HK(e,this.size,3);t.uniform3fv(this.addr,n)}function Jos(t,e){const n=HK(e,this.size,4);t.uniform4fv(this.addr,n)}function Zos(t,e){const n=HK(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function Xos(t,e){const n=HK(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function ess(t,e){const n=HK(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function tss(t,e){t.uniform1iv(this.addr,e)}function nss(t,e){t.uniform2iv(this.addr,e)}function rss(t,e){t.uniform3iv(this.addr,e)}function iss(t,e){t.uniform4iv(this.addr,e)}function ass(t,e){t.uniform1uiv(this.addr,e)}function oss(t,e){t.uniform2uiv(this.addr,e)}function sss(t,e){t.uniform3uiv(this.addr,e)}function lss(t,e){t.uniform4uiv(this.addr,e)}function css(t,e,n){const r=e.length,a=ake(n,r);t.uniform1iv(this.addr,a);for(let o=0;o!==r;++o)n.setTexture2D(e[o]||Her,a[o])}function uss(t,e,n){const r=e.length,a=ake(n,r);t.uniform1iv(this.addr,a);for(let o=0;o!==r;++o)n.setTexture3D(e[o]||zer,a[o])}function dss(t,e,n){const r=e.length,a=ake(n,r);t.uniform1iv(this.addr,a);for(let o=0;o!==r;++o)n.setTextureCube(e[o]||Ger,a[o])}function hss(t,e,n){const r=e.length,a=ake(n,r);t.uniform1iv(this.addr,a);for(let o=0;o!==r;++o)n.setTexture2DArray(e[o]||Uer,a[o])}function fss(t){switch(t){case 5126:return Qos;case 35664:return qos;case 35665:return Yos;case 35666:return Jos;case 35674:return Zos;case 35675:return Xos;case 35676:return ess;case 5124:case 35670:return tss;case 35667:case 35671:return nss;case 35668:case 35672:return rss;case 35669:case 35673:return iss;case 5125:return ass;case 36294:return oss;case 36295:return sss;case 36296:return lss;case 35678:case 36198:case 36298:case 36306:case 35682:return css;case 35679:case 36299:case 36307:return uss;case 35680:case 36300:case 36308:case 36293:return dss;case 36289:case 36303:case 36311:case 36292:return hss}}function pss(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=Wos(e.type)}function Ver(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=fss(e.type)}Ver.prototype.updateCache=function(t){const e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),kv(e,t)};function Ker(t){this.id=t,this.seq=[],this.map={}}Ker.prototype.setValue=function(t,e,n){const r=this.seq;for(let a=0,o=r.length;a!==o;++a){const s=r[a];s.setValue(t,e[s.id],n)}};const z7e=/(\w+)(\])?(\[|\.)?/g;function gHt(t,e){t.seq.push(e),t.map[e.id]=e}function mss(t,e,n){const r=t.name,a=r.length;for(z7e.lastIndex=0;;){const o=z7e.exec(r),s=z7e.lastIndex;let l=o[1];const c=o[2]==="]",u=o[3];if(c&&(l=l|0),u===void 0||u==="["&&s+2===a){gHt(n,u===void 0?new pss(l,t,e):new Ver(l,t,e));break}else{let h=n.map[l];h===void 0&&(h=new Ker(l),gHt(n,h)),n=h}}}function G5(t,e){this.seq=[],this.map={};const n=t.getProgramParameter(e,35718);for(let r=0;r<n;++r){const a=t.getActiveUniform(e,r),o=t.getUniformLocation(e,a.name);mss(a,o,this)}}G5.prototype.setValue=function(t,e,n,r){const a=this.map[e];a!==void 0&&a.setValue(t,n,r)};G5.prototype.setOptional=function(t,e,n){const r=e[n];r!==void 0&&this.setValue(t,n,r)};G5.upload=function(t,e,n,r){for(let a=0,o=e.length;a!==o;++a){const s=e[a],l=n[s.id];l.needsUpdate!==!1&&s.setValue(t,l.value,r)}};G5.seqWithValue=function(t,e){const n=[];for(let r=0,a=t.length;r!==a;++r){const o=t[r];o.id in e&&n.push(o)}return n};function vHt(t,e,n){const r=t.createShader(e);return t.shaderSource(r,n),t.compileShader(r),r}let gss=0;function vss(t,e){const n=t.split(`
`),r=[],a=Math.max(e-6,0),o=Math.min(e+6,n.length);for(let s=a;s<o;s++)r.push(s+1+": "+n[s]);return r.join(`
`)}function Ass(t){switch(t){case nE:return["Linear","( value )"];case ou:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}function AHt(t,e,n){const r=t.getShaderParameter(e,35713),a=t.getShaderInfoLog(e).trim();if(r&&a==="")return"";const o=parseInt(/ERROR: 0:(\d+)/.exec(a)[1]);return n.toUpperCase()+`

`+a+`

`+vss(t.getShaderSource(e),o)}function yss(t,e){const n=Ass(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function bss(t,e){let n;switch(e){case XXn:n="Linear";break;case eer:n="Reinhard";break;case ter:n="OptimizedCineon";break;case $dt:n="ACESFilmic";break;case ner:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function xss(t){return[t.extensionDerivatives||t.envMapCubeUVHeight||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||t.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(XZ).join(`
`)}function Ess(t){const e=[];for(const n in t){const r=t[n];r!==!1&&e.push("#define "+n+" "+r)}return e.join(`
`)}function Sss(t,e){const n={},r=t.getProgramParameter(e,35721);for(let a=0;a<r;a++){const o=t.getActiveAttrib(e,a),s=o.name;let l=1;o.type===35674&&(l=2),o.type===35675&&(l=3),o.type===35676&&(l=4),n[s]={type:o.type,location:t.getAttribLocation(e,s),locationSize:l}}return n}function XZ(t){return t!==""}function yHt(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function bHt(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const wss=/^[ \t]*#include +<([\w\d./]+)>/gm;function RYe(t){return t.replace(wss,_ss)}function _ss(t,e){const n=Rs[e];if(n===void 0)throw new Error("Can not resolve #include <"+e+">");return RYe(n)}const Tss=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Css=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function xHt(t){return t.replace(Css,Wer).replace(Tss,kss)}function kss(t,e,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Wer(t,e,n,r)}function Wer(t,e,n,r){let a="";for(let o=parseInt(e);o<parseInt(n);o++)a+=r.replace(/\[\s*i\s*\]/g,"[ "+o+" ]").replace(/UNROLLED_LOOP_INDEX/g,o);return a}function EHt(t){let e="precision "+t.precision+` float;
precision `+t.precision+" int;";return t.precision==="highp"?e+=`
#define HIGH_PRECISION`:t.precision==="mediump"?e+=`
#define MEDIUM_PRECISION`:t.precision==="lowp"&&(e+=`
#define LOW_PRECISION`),e}function Rss(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===Pdt?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===Odt?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===mj&&(e="SHADOWMAP_TYPE_VSM"),e}function Mss(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case jP:case HP:e="ENVMAP_TYPE_CUBE";break;case $K:e="ENVMAP_TYPE_CUBE_UV";break}return e}function Nss(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case HP:e="ENVMAP_MODE_REFRACTION";break}return e}function Iss(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case ole:e="ENVMAP_BLENDING_MULTIPLY";break;case JXn:e="ENVMAP_BLENDING_MIX";break;case ZXn:e="ENVMAP_BLENDING_ADD";break}return e}function Pss(t){const e=t.envMapCubeUVHeight;if(e===null)return null;const n=Math.log2(e/32+1)+3,r=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),7*16)),texelHeight:r,maxMip:n}}function Oss(t,e,n,r){const a=t.getContext(),o=n.defines;let s=n.vertexShader,l=n.fragmentShader;const c=Rss(n),u=Mss(n),d=Nss(n),h=Iss(n),f=Pss(n),p=n.isWebGL2?"":xss(n),m=Ess(o),g=a.createProgram();let v,A,y=n.glslVersion?"#version "+n.glslVersion+`
`:"";n.isRawShaderMaterial?(v=[m].filter(XZ).join(`
`),v.length>0&&(v+=`
`),A=[p,m].filter(XZ).join(`
`),A.length>0&&(A+=`
`)):(v=[EHt(n),"#define SHADER_NAME "+n.shaderName,m,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","	attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","	attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","	attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","	attribute vec4 color;","#elif defined( USE_COLOR )","	attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","	attribute vec3 morphTarget0;","	attribute vec3 morphTarget1;","	attribute vec3 morphTarget2;","	attribute vec3 morphTarget3;","	#ifdef USE_MORPHNORMALS","		attribute vec3 morphNormal0;","		attribute vec3 morphNormal1;","		attribute vec3 morphNormal2;","		attribute vec3 morphNormal3;","	#else","		attribute vec3 morphTarget4;","		attribute vec3 morphTarget5;","		attribute vec3 morphTarget6;","		attribute vec3 morphTarget7;","	#endif","#endif","#ifdef USE_SKINNING","	attribute vec4 skinIndex;","	attribute vec4 skinWeight;","#endif",`
`].filter(XZ).join(`
`),A=[p,EHt(n),"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",n.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==_w?"#define TONE_MAPPING":"",n.toneMapping!==_w?Rs.tonemapping_pars_fragment:"",n.toneMapping!==_w?bss("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Rs.encodings_pars_fragment,yss("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
`].filter(XZ).join(`
`)),s=RYe(s),s=yHt(s,n),s=bHt(s,n),l=RYe(l),l=yHt(l,n),l=bHt(l,n),s=xHt(s),l=xHt(l),n.isWebGL2&&n.isRawShaderMaterial!==!0&&(y=`#version 300 es
`,v=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(`
`)+`
`+v,A=["#define varying in",n.glslVersion===TYe?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===TYe?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(`
`)+`
`+A);const S=y+v+s,x=y+A+l,w=vHt(a,35633,S),_=vHt(a,35632,x);if(a.attachShader(g,w),a.attachShader(g,_),n.index0AttributeName!==void 0?a.bindAttribLocation(g,0,n.index0AttributeName):n.morphTargets===!0&&a.bindAttribLocation(g,0,"position"),a.linkProgram(g),t.debug.checkShaderErrors){const k=a.getProgramInfoLog(g).trim(),P=a.getShaderInfoLog(w).trim(),N=a.getShaderInfoLog(_).trim();let L=!0,I=!0;if(a.getProgramParameter(g,35714)===!1){L=!1;const b=AHt(a,w,"vertex"),T=AHt(a,_,"fragment");console.error("THREE.WebGLProgram: Shader Error "+a.getError()+" - VALIDATE_STATUS "+a.getProgramParameter(g,35715)+`

Program Info Log: `+k+`
`+b+`
`+T)}else k!==""?console.warn("THREE.WebGLProgram: Program Info Log:",k):(P===""||N==="")&&(I=!1);I&&(this.diagnostics={runnable:L,programLog:k,vertexShader:{log:P,prefix:v},fragmentShader:{log:N,prefix:A}})}a.deleteShader(w),a.deleteShader(_);let C;this.getUniforms=function(){return C===void 0&&(C=new G5(a,g)),C};let R;return this.getAttributes=function(){return R===void 0&&(R=Sss(a,g)),R},this.destroy=function(){r.releaseStatesOfProgram(this),a.deleteProgram(g),this.program=void 0},this.name=n.shaderName,this.id=gss++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=w,this.fragmentShader=_,this}let Lss=0;class Bss{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,a=this._getShaderStage(n),o=this._getShaderStage(r),s=this._getShaderCacheForMaterial(e);return s.has(a)===!1&&(s.add(a),a.usedTimes++),s.has(o)===!1&&(s.add(o),o.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;return n.has(e)===!1&&n.set(e,new Set),n.get(e)}_getShaderStage(e){const n=this.shaderCache;if(n.has(e)===!1){const r=new Dss(e);n.set(e,r)}return n.get(e)}}class Dss{constructor(e){this.id=Lss++,this.code=e,this.usedTimes=0}}function $ss(t,e,n,r,a,o,s){const l=new ZD,c=new Bss,u=[],d=a.isWebGL2,h=a.logarithmicDepthBuffer,f=a.floatVertexTextures,p=a.maxVertexUniforms,m=a.vertexTextures;let g=a.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function A(N){const I=N.skeleton.bones;if(f)return 1024;{const T=Math.floor((p-20)/4),M=Math.min(T,I.length);return M<I.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+I.length+" bones. This GPU supports "+M+"."),0):M}}function y(N,L,I,b,T){const M=b.fog,D=T.geometry,B=N.isMeshStandardMaterial?b.environment:null,j=(N.isMeshStandardMaterial?n:e).get(N.envMap||B),H=j&&j.mapping===$K?j.image.height:null,U=v[N.type],$=T.isSkinnedMesh?A(T):0;N.precision!==null&&(g=a.getMaxPrecision(N.precision),g!==N.precision&&console.warn("THREE.WebGLProgram.getParameters:",N.precision,"not supported, using",g,"instead."));const z=D.morphAttributes.position||D.morphAttributes.normal||D.morphAttributes.color,Z=z!==void 0?z.length:0;let K=0;D.morphAttributes.position!==void 0&&(K=1),D.morphAttributes.normal!==void 0&&(K=2),D.morphAttributes.color!==void 0&&(K=3);let Q,ee,X,te;if(U){const de=WS[U];Q=de.vertexShader,ee=de.fragmentShader}else Q=N.vertexShader,ee=N.fragmentShader,c.update(N),X=c.getVertexShaderID(N),te=c.getFragmentShaderID(N);const J=t.getRenderTarget(),ne=N.alphaTest>0,ie=N.clearcoat>0;return{isWebGL2:d,shaderID:U,shaderName:N.type,vertexShader:Q,fragmentShader:ee,defines:N.defines,customVertexShaderID:X,customFragmentShaderID:te,isRawShaderMaterial:N.isRawShaderMaterial===!0,glslVersion:N.glslVersion,precision:g,instancing:T.isInstancedMesh===!0,instancingColor:T.isInstancedMesh===!0&&T.instanceColor!==null,supportsVertexTextures:m,outputEncoding:J===null?t.outputEncoding:J.isXRRenderTarget===!0?J.texture.encoding:nE,map:!!N.map,matcap:!!N.matcap,envMap:!!j,envMapMode:j&&j.mapping,envMapCubeUVHeight:H,lightMap:!!N.lightMap,aoMap:!!N.aoMap,emissiveMap:!!N.emissiveMap,bumpMap:!!N.bumpMap,normalMap:!!N.normalMap,objectSpaceNormalMap:N.normalMapType===wer,tangentSpaceNormalMap:N.normalMapType===K9,decodeVideoTexture:!!N.map&&N.map.isVideoTexture===!0&&N.map.encoding===ou,clearcoat:ie,clearcoatMap:ie&&!!N.clearcoatMap,clearcoatRoughnessMap:ie&&!!N.clearcoatRoughnessMap,clearcoatNormalMap:ie&&!!N.clearcoatNormalMap,displacementMap:!!N.displacementMap,roughnessMap:!!N.roughnessMap,metalnessMap:!!N.metalnessMap,specularMap:!!N.specularMap,specularIntensityMap:!!N.specularIntensityMap,specularColorMap:!!N.specularColorMap,opaque:N.transparent===!1&&N.blending===WD,alphaMap:!!N.alphaMap,alphaTest:ne,gradientMap:!!N.gradientMap,sheen:N.sheen>0,sheenColorMap:!!N.sheenColorMap,sheenRoughnessMap:!!N.sheenRoughnessMap,transmission:N.transmission>0,transmissionMap:!!N.transmissionMap,thicknessMap:!!N.thicknessMap,combine:N.combine,vertexTangents:!!N.normalMap&&!!D.attributes.tangent,vertexColors:N.vertexColors,vertexAlphas:N.vertexColors===!0&&!!D.attributes.color&&D.attributes.color.itemSize===4,vertexUvs:!!N.map||!!N.bumpMap||!!N.normalMap||!!N.specularMap||!!N.alphaMap||!!N.emissiveMap||!!N.roughnessMap||!!N.metalnessMap||!!N.clearcoatMap||!!N.clearcoatRoughnessMap||!!N.clearcoatNormalMap||!!N.displacementMap||!!N.transmissionMap||!!N.thicknessMap||!!N.specularIntensityMap||!!N.specularColorMap||!!N.sheenColorMap||!!N.sheenRoughnessMap,uvsVertexOnly:!(N.map||N.bumpMap||N.normalMap||N.specularMap||N.alphaMap||N.emissiveMap||N.roughnessMap||N.metalnessMap||N.clearcoatNormalMap||N.transmission>0||N.transmissionMap||N.thicknessMap||N.specularIntensityMap||N.specularColorMap||N.sheen>0||N.sheenColorMap||N.sheenRoughnessMap)&&!!N.displacementMap,fog:!!M,useFog:N.fog,fogExp2:M&&M.isFogExp2,flatShading:!!N.flatShading,sizeAttenuation:N.sizeAttenuation,logarithmicDepthBuffer:h,skinning:T.isSkinnedMesh===!0&&$>0,maxBones:$,useVertexTexture:f,morphTargets:D.morphAttributes.position!==void 0,morphNormals:D.morphAttributes.normal!==void 0,morphColors:D.morphAttributes.color!==void 0,morphTargetsCount:Z,morphTextureStride:K,numDirLights:L.directional.length,numPointLights:L.point.length,numSpotLights:L.spot.length,numRectAreaLights:L.rectArea.length,numHemiLights:L.hemi.length,numDirLightShadows:L.directionalShadowMap.length,numPointLightShadows:L.pointShadowMap.length,numSpotLightShadows:L.spotShadowMap.length,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:N.dithering,shadowMapEnabled:t.shadowMap.enabled&&I.length>0,shadowMapType:t.shadowMap.type,toneMapping:N.toneMapped?t.toneMapping:_w,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:N.premultipliedAlpha,doubleSided:N.side===g8,flipSided:N.side===Gy,depthPacking:N.depthPacking!==void 0?N.depthPacking:!1,index0AttributeName:N.index0AttributeName,extensionDerivatives:N.extensions&&N.extensions.derivatives,extensionFragDepth:N.extensions&&N.extensions.fragDepth,extensionDrawBuffers:N.extensions&&N.extensions.drawBuffers,extensionShaderTextureLOD:N.extensions&&N.extensions.shaderTextureLOD,rendererExtensionFragDepth:d||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||r.has("EXT_shader_texture_lod"),customProgramCacheKey:N.customProgramCacheKey()}}function S(N){const L=[];if(N.shaderID?L.push(N.shaderID):(L.push(N.customVertexShaderID),L.push(N.customFragmentShaderID)),N.defines!==void 0)for(const I in N.defines)L.push(I),L.push(N.defines[I]);return N.isRawShaderMaterial===!1&&(x(L,N),w(L,N),L.push(t.outputEncoding)),L.push(N.customProgramCacheKey),L.join()}function x(N,L){N.push(L.precision),N.push(L.outputEncoding),N.push(L.envMapMode),N.push(L.envMapCubeUVHeight),N.push(L.combine),N.push(L.vertexUvs),N.push(L.fogExp2),N.push(L.sizeAttenuation),N.push(L.maxBones),N.push(L.morphTargetsCount),N.push(L.morphAttributeCount),N.push(L.numDirLights),N.push(L.numPointLights),N.push(L.numSpotLights),N.push(L.numHemiLights),N.push(L.numRectAreaLights),N.push(L.numDirLightShadows),N.push(L.numPointLightShadows),N.push(L.numSpotLightShadows),N.push(L.shadowMapType),N.push(L.toneMapping),N.push(L.numClippingPlanes),N.push(L.numClipIntersection)}function w(N,L){l.disableAll(),L.isWebGL2&&l.enable(0),L.supportsVertexTextures&&l.enable(1),L.instancing&&l.enable(2),L.instancingColor&&l.enable(3),L.map&&l.enable(4),L.matcap&&l.enable(5),L.envMap&&l.enable(6),L.lightMap&&l.enable(7),L.aoMap&&l.enable(8),L.emissiveMap&&l.enable(9),L.bumpMap&&l.enable(10),L.normalMap&&l.enable(11),L.objectSpaceNormalMap&&l.enable(12),L.tangentSpaceNormalMap&&l.enable(13),L.clearcoat&&l.enable(14),L.clearcoatMap&&l.enable(15),L.clearcoatRoughnessMap&&l.enable(16),L.clearcoatNormalMap&&l.enable(17),L.displacementMap&&l.enable(18),L.specularMap&&l.enable(19),L.roughnessMap&&l.enable(20),L.metalnessMap&&l.enable(21),L.gradientMap&&l.enable(22),L.alphaMap&&l.enable(23),L.alphaTest&&l.enable(24),L.vertexColors&&l.enable(25),L.vertexAlphas&&l.enable(26),L.vertexUvs&&l.enable(27),L.vertexTangents&&l.enable(28),L.uvsVertexOnly&&l.enable(29),L.fog&&l.enable(30),N.push(l.mask),l.disableAll(),L.useFog&&l.enable(0),L.flatShading&&l.enable(1),L.logarithmicDepthBuffer&&l.enable(2),L.skinning&&l.enable(3),L.useVertexTexture&&l.enable(4),L.morphTargets&&l.enable(5),L.morphNormals&&l.enable(6),L.morphColors&&l.enable(7),L.premultipliedAlpha&&l.enable(8),L.shadowMapEnabled&&l.enable(9),L.physicallyCorrectLights&&l.enable(10),L.doubleSided&&l.enable(11),L.flipSided&&l.enable(12),L.depthPacking&&l.enable(13),L.dithering&&l.enable(14),L.specularIntensityMap&&l.enable(15),L.specularColorMap&&l.enable(16),L.transmission&&l.enable(17),L.transmissionMap&&l.enable(18),L.thicknessMap&&l.enable(19),L.sheen&&l.enable(20),L.sheenColorMap&&l.enable(21),L.sheenRoughnessMap&&l.enable(22),L.decodeVideoTexture&&l.enable(23),L.opaque&&l.enable(24),N.push(l.mask)}function _(N){const L=v[N.type];let I;if(L){const b=WS[L];I=Fer.clone(b.uniforms)}else I=N.uniforms;return I}function C(N,L){let I;for(let b=0,T=u.length;b<T;b++){const M=u[b];if(M.cacheKey===L){I=M,++I.usedTimes;break}}return I===void 0&&(I=new Oss(t,L,N,o),u.push(I)),I}function R(N){if(--N.usedTimes===0){const L=u.indexOf(N);u[L]=u[u.length-1],u.pop(),N.destroy()}}function k(N){c.remove(N)}function P(){c.dispose()}return{getParameters:y,getProgramCacheKey:S,getUniforms:_,acquireProgram:C,releaseProgram:R,releaseShaderCache:k,programs:u,dispose:P}}function Fss(){let t=new WeakMap;function e(o){let s=t.get(o);return s===void 0&&(s={},t.set(o,s)),s}function n(o){t.delete(o)}function r(o,s,l){t.get(o)[s]=l}function a(){t=new WeakMap}return{get:e,remove:n,update:r,dispose:a}}function jss(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function SHt(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function wHt(){const t=[];let e=0;const n=[],r=[],a=[];function o(){e=0,n.length=0,r.length=0,a.length=0}function s(h,f,p,m,g,v){let A=t[e];return A===void 0?(A={id:h.id,object:h,geometry:f,material:p,groupOrder:m,renderOrder:h.renderOrder,z:g,group:v},t[e]=A):(A.id=h.id,A.object=h,A.geometry=f,A.material=p,A.groupOrder=m,A.renderOrder=h.renderOrder,A.z=g,A.group=v),e++,A}function l(h,f,p,m,g,v){const A=s(h,f,p,m,g,v);p.transmission>0?r.push(A):p.transparent===!0?a.push(A):n.push(A)}function c(h,f,p,m,g,v){const A=s(h,f,p,m,g,v);p.transmission>0?r.unshift(A):p.transparent===!0?a.unshift(A):n.unshift(A)}function u(h,f){n.length>1&&n.sort(h||jss),r.length>1&&r.sort(f||SHt),a.length>1&&a.sort(f||SHt)}function d(){for(let h=e,f=t.length;h<f;h++){const p=t[h];if(p.id===null)break;p.id=null,p.object=null,p.geometry=null,p.material=null,p.group=null}}return{opaque:n,transmissive:r,transparent:a,init:o,push:l,unshift:c,finish:d,sort:u}}function Hss(){let t=new WeakMap;function e(r,a){let o;return t.has(r)===!1?(o=new wHt,t.set(r,[o])):a>=t.get(r).length?(o=new wHt,t.get(r).push(o)):o=t.get(r)[a],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function Uss(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new et,color:new ci};break;case"SpotLight":n={position:new et,direction:new et,color:new ci,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new et,color:new ci,distance:0,decay:0};break;case"HemisphereLight":n={direction:new et,skyColor:new ci,groundColor:new ci};break;case"RectAreaLight":n={color:new ci,position:new et,halfWidth:new et,halfHeight:new et};break}return t[e.id]=n,n}}}function zss(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Qn};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Qn};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Qn,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let Gss=0;function Vss(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function Kss(t,e){const n=new Uss,r=zss(),a={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let d=0;d<9;d++)a.probe.push(new et);const o=new et,s=new da,l=new da;function c(d,h){let f=0,p=0,m=0;for(let k=0;k<9;k++)a.probe[k].set(0,0,0);let g=0,v=0,A=0,y=0,S=0,x=0,w=0,_=0;d.sort(Vss);const C=h!==!0?Math.PI:1;for(let k=0,P=d.length;k<P;k++){const N=d[k],L=N.color,I=N.intensity,b=N.distance,T=N.shadow&&N.shadow.map?N.shadow.map.texture:null;if(N.isAmbientLight)f+=L.r*I*C,p+=L.g*I*C,m+=L.b*I*C;else if(N.isLightProbe)for(let M=0;M<9;M++)a.probe[M].addScaledVector(N.sh.coefficients[M],I);else if(N.isDirectionalLight){const M=n.get(N);if(M.color.copy(N.color).multiplyScalar(N.intensity*C),N.castShadow){const D=N.shadow,B=r.get(N);B.shadowBias=D.bias,B.shadowNormalBias=D.normalBias,B.shadowRadius=D.radius,B.shadowMapSize=D.mapSize,a.directionalShadow[g]=B,a.directionalShadowMap[g]=T,a.directionalShadowMatrix[g]=N.shadow.matrix,x++}a.directional[g]=M,g++}else if(N.isSpotLight){const M=n.get(N);if(M.position.setFromMatrixPosition(N.matrixWorld),M.color.copy(L).multiplyScalar(I*C),M.distance=b,M.coneCos=Math.cos(N.angle),M.penumbraCos=Math.cos(N.angle*(1-N.penumbra)),M.decay=N.decay,N.castShadow){const D=N.shadow,B=r.get(N);B.shadowBias=D.bias,B.shadowNormalBias=D.normalBias,B.shadowRadius=D.radius,B.shadowMapSize=D.mapSize,a.spotShadow[A]=B,a.spotShadowMap[A]=T,a.spotShadowMatrix[A]=N.shadow.matrix,_++}a.spot[A]=M,A++}else if(N.isRectAreaLight){const M=n.get(N);M.color.copy(L).multiplyScalar(I),M.halfWidth.set(N.width*.5,0,0),M.halfHeight.set(0,N.height*.5,0),a.rectArea[y]=M,y++}else if(N.isPointLight){const M=n.get(N);if(M.color.copy(N.color).multiplyScalar(N.intensity*C),M.distance=N.distance,M.decay=N.decay,N.castShadow){const D=N.shadow,B=r.get(N);B.shadowBias=D.bias,B.shadowNormalBias=D.normalBias,B.shadowRadius=D.radius,B.shadowMapSize=D.mapSize,B.shadowCameraNear=D.camera.near,B.shadowCameraFar=D.camera.far,a.pointShadow[v]=B,a.pointShadowMap[v]=T,a.pointShadowMatrix[v]=N.shadow.matrix,w++}a.point[v]=M,v++}else if(N.isHemisphereLight){const M=n.get(N);M.skyColor.copy(N.color).multiplyScalar(I*C),M.groundColor.copy(N.groundColor).multiplyScalar(I*C),a.hemi[S]=M,S++}}y>0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(a.rectAreaLTC1=qr.LTC_FLOAT_1,a.rectAreaLTC2=qr.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(a.rectAreaLTC1=qr.LTC_HALF_1,a.rectAreaLTC2=qr.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),a.ambient[0]=f,a.ambient[1]=p,a.ambient[2]=m;const R=a.hash;(R.directionalLength!==g||R.pointLength!==v||R.spotLength!==A||R.rectAreaLength!==y||R.hemiLength!==S||R.numDirectionalShadows!==x||R.numPointShadows!==w||R.numSpotShadows!==_)&&(a.directional.length=g,a.spot.length=A,a.rectArea.length=y,a.point.length=v,a.hemi.length=S,a.directionalShadow.length=x,a.directionalShadowMap.length=x,a.pointShadow.length=w,a.pointShadowMap.length=w,a.spotShadow.length=_,a.spotShadowMap.length=_,a.directionalShadowMatrix.length=x,a.pointShadowMatrix.length=w,a.spotShadowMatrix.length=_,R.directionalLength=g,R.pointLength=v,R.spotLength=A,R.rectAreaLength=y,R.hemiLength=S,R.numDirectionalShadows=x,R.numPointShadows=w,R.numSpotShadows=_,a.version=Gss++)}function u(d,h){let f=0,p=0,m=0,g=0,v=0;const A=h.matrixWorldInverse;for(let y=0,S=d.length;y<S;y++){const x=d[y];if(x.isDirectionalLight){const w=a.directional[f];w.direction.setFromMatrixPosition(x.matrixWorld),o.setFromMatrixPosition(x.target.matrixWorld),w.direction.sub(o),w.direction.transformDirection(A),f++}else if(x.isSpotLight){const w=a.spot[m];w.position.setFromMatrixPosition(x.matrixWorld),w.position.applyMatrix4(A),w.direction.setFromMatrixPosition(x.matrixWorld),o.setFromMatrixPosition(x.target.matrixWorld),w.direction.sub(o),w.direction.transformDirection(A),m++}else if(x.isRectAreaLight){const w=a.rectArea[g];w.position.setFromMatrixPosition(x.matrixWorld),w.position.applyMatrix4(A),l.identity(),s.copy(x.matrixWorld),s.premultiply(A),l.extractRotation(s),w.halfWidth.set(x.width*.5,0,0),w.halfHeight.set(0,x.height*.5,0),w.halfWidth.applyMatrix4(l),w.halfHeight.applyMatrix4(l),g++}else if(x.isPointLight){const w=a.point[p];w.position.setFromMatrixPosition(x.matrixWorld),w.position.applyMatrix4(A),p++}else if(x.isHemisphereLight){const w=a.hemi[v];w.direction.setFromMatrixPosition(x.matrixWorld),w.direction.transformDirection(A),w.direction.normalize(),v++}}}return{setup:c,setupView:u,state:a}}function _Ht(t,e){const n=new Kss(t,e),r=[],a=[];function o(){r.length=0,a.length=0}function s(h){r.push(h)}function l(h){a.push(h)}function c(h){n.setup(r,h)}function u(h){n.setupView(r,h)}return{init:o,state:{lightsArray:r,shadowsArray:a,lights:n},setupLights:c,setupLightsView:u,pushLight:s,pushShadow:l}}function Wss(t,e){let n=new WeakMap;function r(o,s=0){let l;return n.has(o)===!1?(l=new _Ht(t,e),n.set(o,[l])):s>=n.get(o).length?(l=new _Ht(t,e),n.get(o).push(l)):l=n.get(o)[s],l}function a(){n=new WeakMap}return{get:r,dispose:a}}class oke extends cf{constructor(e){super(),this.type="MeshDepthMaterial",this.depthPacking=Eer,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}oke.prototype.isMeshDepthMaterial=!0;class ske extends cf{constructor(e){super(),this.type="MeshDistanceMaterial",this.referencePosition=new et,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}ske.prototype.isMeshDistanceMaterial=!0;const Qss=`void main() {
	gl_Position = vec4( position, 1.0 );
}`,qss=`uniform sampler2D shadow_pass;
uniform vec2 resolution;
uniform float radius;
#include <packing>
void main() {
	const float samples = float( VSM_SAMPLES );
	float mean = 0.0;
	float squared_mean = 0.0;
	float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
	float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
	for ( float i = 0.0; i < samples; i ++ ) {
		float uvOffset = uvStart + i * uvStride;
		#ifdef HORIZONTAL_PASS
			vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );
			mean += distribution.x;
			squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
		#else
			float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );
			mean += depth;
			squared_mean += depth * depth;
		#endif
	}
	mean = mean / samples;
	squared_mean = squared_mean / samples;
	float std_dev = sqrt( squared_mean - mean * mean );
	gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
}`;function Qer(t,e,n){let r=new lle;const a=new Qn,o=new Qn,s=new Ac,l=new oke({depthPacking:Ser}),c=new ske,u={},d=n.maxTextureSize,h={0:Gy,1:m8,2:g8},f=new rE({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Qn},radius:{value:4}},vertexShader:Qss,fragmentShader:qss}),p=f.clone();p.defines.HORIZONTAL_PASS=1;const m=new Ya;m.setAttribute("position",new bl(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const g=new Bf(m,f),v=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Pdt,this.render=function(x,w,_){if(v.enabled===!1||v.autoUpdate===!1&&v.needsUpdate===!1||x.length===0)return;const C=t.getRenderTarget(),R=t.getActiveCubeFace(),k=t.getActiveMipmapLevel(),P=t.state;P.setBlending(lM),P.buffers.color.setClear(1,1,1,1),P.buffers.depth.setTest(!0),P.setScissorTest(!1);for(let N=0,L=x.length;N<L;N++){const I=x[N],b=I.shadow;if(b===void 0){console.warn("THREE.WebGLShadowMap:",I,"has no shadow.");continue}if(b.autoUpdate===!1&&b.needsUpdate===!1)continue;a.copy(b.mapSize);const T=b.getFrameExtents();if(a.multiply(T),o.copy(b.mapSize),(a.x>d||a.y>d)&&(a.x>d&&(o.x=Math.floor(d/T.x),a.x=o.x*T.x,b.mapSize.x=o.x),a.y>d&&(o.y=Math.floor(d/T.y),a.y=o.y*T.y,b.mapSize.y=o.y)),b.map===null&&!b.isPointLightShadow&&this.type===mj&&(b.map=new H0(a.x,a.y),b.map.texture.name=I.name+".shadowMap",b.mapPass=new H0(a.x,a.y),b.camera.updateProjectionMatrix()),b.map===null){const D={minFilter:Pf,magFilter:Pf,format:Ly};b.map=new H0(a.x,a.y,D),b.map.texture.name=I.name+".shadowMap",b.camera.updateProjectionMatrix()}t.setRenderTarget(b.map),t.clear();const M=b.getViewportCount();for(let D=0;D<M;D++){const B=b.getViewport(D);s.set(o.x*B.x,o.y*B.y,o.x*B.z,o.y*B.w),P.viewport(s),b.updateMatrices(I,D),r=b.getFrustum(),S(w,_,b.camera,I,this.type)}!b.isPointLightShadow&&this.type===mj&&A(b,_),b.needsUpdate=!1}v.needsUpdate=!1,t.setRenderTarget(C,R,k)};function A(x,w){const _=e.update(g);f.defines.VSM_SAMPLES!==x.blurSamples&&(f.defines.VSM_SAMPLES=x.blurSamples,p.defines.VSM_SAMPLES=x.blurSamples,f.needsUpdate=!0,p.needsUpdate=!0),f.uniforms.shadow_pass.value=x.map.texture,f.uniforms.resolution.value=x.mapSize,f.uniforms.radius.value=x.radius,t.setRenderTarget(x.mapPass),t.clear(),t.renderBufferDirect(w,null,_,f,g,null),p.uniforms.shadow_pass.value=x.mapPass.texture,p.uniforms.resolution.value=x.mapSize,p.uniforms.radius.value=x.radius,t.setRenderTarget(x.map),t.clear(),t.renderBufferDirect(w,null,_,p,g,null)}function y(x,w,_,C,R,k){let P=null;const N=_.isPointLight===!0?x.customDistanceMaterial:x.customDepthMaterial;if(N!==void 0?P=N:P=_.isPointLight===!0?c:l,t.localClippingEnabled&&w.clipShadows===!0&&w.clippingPlanes.length!==0||w.displacementMap&&w.displacementScale!==0||w.alphaMap&&w.alphaTest>0){const L=P.uuid,I=w.uuid;let b=u[L];b===void 0&&(b={},u[L]=b);let T=b[I];T===void 0&&(T=P.clone(),b[I]=T),P=T}return P.visible=w.visible,P.wireframe=w.wireframe,k===mj?P.side=w.shadowSide!==null?w.shadowSide:w.side:P.side=w.shadowSide!==null?w.shadowSide:h[w.side],P.alphaMap=w.alphaMap,P.alphaTest=w.alphaTest,P.clipShadows=w.clipShadows,P.clippingPlanes=w.clippingPlanes,P.clipIntersection=w.clipIntersection,P.displacementMap=w.displacementMap,P.displacementScale=w.displacementScale,P.displacementBias=w.displacementBias,P.wireframeLinewidth=w.wireframeLinewidth,P.linewidth=w.linewidth,_.isPointLight===!0&&P.isMeshDistanceMaterial===!0&&(P.referencePosition.setFromMatrixPosition(_.matrixWorld),P.nearDistance=C,P.farDistance=R),P}function S(x,w,_,C,R){if(x.visible===!1)return;if(x.layers.test(w.layers)&&(x.isMesh||x.isLine||x.isPoints)&&(x.castShadow||x.receiveShadow&&R===mj)&&(!x.frustumCulled||r.intersectsObject(x))){x.modelViewMatrix.multiplyMatrices(_.matrixWorldInverse,x.matrixWorld);const N=e.update(x),L=x.material;if(Array.isArray(L)){const I=N.groups;for(let b=0,T=I.length;b<T;b++){const M=I[b],D=L[M.materialIndex];if(D&&D.visible){const B=y(x,D,C,_.near,_.far,R);t.renderBufferDirect(_,null,N,B,x,M)}}}else if(L.visible){const I=y(x,L,C,_.near,_.far,R);t.renderBufferDirect(_,null,N,I,x,null)}}const P=x.children;for(let N=0,L=P.length;N<L;N++)S(P[N],w,_,C,R)}}function Yss(t,e,n){const r=n.isWebGL2;function a(){let Se=!1;const Xe=new Ac;let Oe=null;const Ye=new Ac(0,0,0,0);return{setMask:function(mt){Oe!==mt&&!Se&&(t.colorMask(mt,mt,mt,mt),Oe=mt)},setLocked:function(mt){Se=mt},setClear:function(mt,ut,lt,pn,sn){sn===!0&&(mt*=pn,ut*=pn,lt*=pn),Xe.set(mt,ut,lt,pn),Ye.equals(Xe)===!1&&(t.clearColor(mt,ut,lt,pn),Ye.copy(Xe))},reset:function(){Se=!1,Oe=null,Ye.set(-1,0,0,0)}}}function o(){let Se=!1,Xe=null,Oe=null,Ye=null;return{setTest:function(mt){mt?K(2929):Q(2929)},setMask:function(mt){Xe!==mt&&!Se&&(t.depthMask(mt),Xe=mt)},setFunc:function(mt){if(Oe!==mt){if(mt)switch(mt){case GXn:t.depthFunc(512);break;case VXn:t.depthFunc(519);break;case KXn:t.depthFunc(513);break;case Abe:t.depthFunc(515);break;case WXn:t.depthFunc(514);break;case QXn:t.depthFunc(518);break;case qXn:t.depthFunc(516);break;case YXn:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);Oe=mt}},setLocked:function(mt){Se=mt},setClear:function(mt){Ye!==mt&&(t.clearDepth(mt),Ye=mt)},reset:function(){Se=!1,Xe=null,Oe=null,Ye=null}}}function s(){let Se=!1,Xe=null,Oe=null,Ye=null,mt=null,ut=null,lt=null,pn=null,sn=null;return{setTest:function(un){Se||(un?K(2960):Q(2960))},setMask:function(un){Xe!==un&&!Se&&(t.stencilMask(un),Xe=un)},setFunc:function(un,ur,dt){(Oe!==un||Ye!==ur||mt!==dt)&&(t.stencilFunc(un,ur,dt),Oe=un,Ye=ur,mt=dt)},setOp:function(un,ur,dt){(ut!==un||lt!==ur||pn!==dt)&&(t.stencilOp(un,ur,dt),ut=un,lt=ur,pn=dt)},setLocked:function(un){Se=un},setClear:function(un){sn!==un&&(t.clearStencil(un),sn=un)},reset:function(){Se=!1,Xe=null,Oe=null,Ye=null,mt=null,ut=null,lt=null,pn=null,sn=null}}}const l=new a,c=new o,u=new s;let d={},h={},f=new WeakMap,p=[],m=null,g=!1,v=null,A=null,y=null,S=null,x=null,w=null,_=null,C=!1,R=null,k=null,P=null,N=null,L=null;const I=t.getParameter(35661);let b=!1,T=0;const M=t.getParameter(7938);M.indexOf("WebGL")!==-1?(T=parseFloat(/^WebGL (\d)/.exec(M)[1]),b=T>=1):M.indexOf("OpenGL ES")!==-1&&(T=parseFloat(/^OpenGL ES (\d)/.exec(M)[1]),b=T>=2);let D=null,B={};const j=t.getParameter(3088),H=t.getParameter(2978),U=new Ac().fromArray(j),$=new Ac().fromArray(H);function z(Se,Xe,Oe){const Ye=new Uint8Array(4),mt=t.createTexture();t.bindTexture(Se,mt),t.texParameteri(Se,10241,9728),t.texParameteri(Se,10240,9728);for(let ut=0;ut<Oe;ut++)t.texImage2D(Xe+ut,0,6408,1,1,0,6408,5121,Ye);return mt}const Z={};Z[3553]=z(3553,3553,1),Z[34067]=z(34067,34069,6),l.setClear(0,0,0,1),c.setClear(1),u.setClear(0),K(2929),c.setFunc(Abe),de(!1),ce(Xqe),K(2884),ie(lM);function K(Se){d[Se]!==!0&&(t.enable(Se),d[Se]=!0)}function Q(Se){d[Se]!==!1&&(t.disable(Se),d[Se]=!1)}function ee(Se,Xe){return h[Se]!==Xe?(t.bindFramebuffer(Se,Xe),h[Se]=Xe,r&&(Se===36009&&(h[36160]=Xe),Se===36160&&(h[36009]=Xe)),!0):!1}function X(Se,Xe){let Oe=p,Ye=!1;if(Se)if(Oe=f.get(Xe),Oe===void 0&&(Oe=[],f.set(Xe,Oe)),Se.isWebGLMultipleRenderTargets){const mt=Se.texture;if(Oe.length!==mt.length||Oe[0]!==36064){for(let ut=0,lt=mt.length;ut<lt;ut++)Oe[ut]=36064+ut;Oe.length=mt.length,Ye=!0}}else Oe[0]!==36064&&(Oe[0]=36064,Ye=!0);else Oe[0]!==1029&&(Oe[0]=1029,Ye=!0);Ye&&(n.isWebGL2?t.drawBuffers(Oe):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Oe))}function te(Se){return m!==Se?(t.useProgram(Se),m=Se,!0):!1}const J={[TB]:32774,[PXn]:32778,[OXn]:32779};if(r)J[rYe]=32775,J[iYe]=32776;else{const Se=e.get("EXT_blend_minmax");Se!==null&&(J[rYe]=Se.MIN_EXT,J[iYe]=Se.MAX_EXT)}const ne={[LXn]:0,[BXn]:1,[DXn]:768,[Bdt]:770,[zXn]:776,[HXn]:774,[FXn]:772,[$Xn]:769,[Ddt]:771,[UXn]:775,[jXn]:773};function ie(Se,Xe,Oe,Ye,mt,ut,lt,pn){if(Se===lM){g===!0&&(Q(3042),g=!1);return}if(g===!1&&(K(3042),g=!0),Se!==IXn){if(Se!==v||pn!==C){if((A!==TB||x!==TB)&&(t.blendEquation(32774),A=TB,x=TB),pn)switch(Se){case WD:t.blendFuncSeparate(1,771,1,771);break;case eYe:t.blendFunc(1,1);break;case tYe:t.blendFuncSeparate(0,769,0,1);break;case nYe:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",Se);break}else switch(Se){case WD:t.blendFuncSeparate(770,771,1,771);break;case eYe:t.blendFunc(770,1);break;case tYe:t.blendFuncSeparate(0,769,0,1);break;case nYe:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",Se);break}y=null,S=null,w=null,_=null,v=Se,C=pn}return}mt=mt||Xe,ut=ut||Oe,lt=lt||Ye,(Xe!==A||mt!==x)&&(t.blendEquationSeparate(J[Xe],J[mt]),A=Xe,x=mt),(Oe!==y||Ye!==S||ut!==w||lt!==_)&&(t.blendFuncSeparate(ne[Oe],ne[Ye],ne[ut],ne[lt]),y=Oe,S=Ye,w=ut,_=lt),v=Se,C=null}function he(Se,Xe){Se.side===g8?Q(2884):K(2884);let Oe=Se.side===Gy;Xe&&(Oe=!Oe),de(Oe),Se.blending===WD&&Se.transparent===!1?ie(lM):ie(Se.blending,Se.blendEquation,Se.blendSrc,Se.blendDst,Se.blendEquationAlpha,Se.blendSrcAlpha,Se.blendDstAlpha,Se.premultipliedAlpha),c.setFunc(Se.depthFunc),c.setTest(Se.depthTest),c.setMask(Se.depthWrite),l.setMask(Se.colorWrite);const Ye=Se.stencilWrite;u.setTest(Ye),Ye&&(u.setMask(Se.stencilWriteMask),u.setFunc(Se.stencilFunc,Se.stencilRef,Se.stencilFuncMask),u.setOp(Se.stencilFail,Se.stencilZFail,Se.stencilZPass)),Me(Se.polygonOffset,Se.polygonOffsetFactor,Se.polygonOffsetUnits),Se.alphaToCoverage===!0?K(32926):Q(32926)}function de(Se){R!==Se&&(Se?t.frontFace(2304):t.frontFace(2305),R=Se)}function ce(Se){Se!==MXn?(K(2884),Se!==k&&(Se===Xqe?t.cullFace(1029):Se===NXn?t.cullFace(1028):t.cullFace(1032))):Q(2884),k=Se}function Ee(Se){Se!==P&&(b&&t.lineWidth(Se),P=Se)}function Me(Se,Xe,Oe){Se?(K(32823),(N!==Xe||L!==Oe)&&(t.polygonOffset(Xe,Oe),N=Xe,L=Oe)):Q(32823)}function Be(Se){Se?K(3089):Q(3089)}function ze(Se){Se===void 0&&(Se=33984+I-1),D!==Se&&(t.activeTexture(Se),D=Se)}function je(Se,Xe){D===null&&ze();let Oe=B[D];Oe===void 0&&(Oe={type:void 0,texture:void 0},B[D]=Oe),(Oe.type!==Se||Oe.texture!==Xe)&&(t.bindTexture(Se,Xe||Z[Se]),Oe.type=Se,Oe.texture=Xe)}function ye(){const Se=B[D];Se!==void 0&&Se.type!==void 0&&(t.bindTexture(Se.type,null),Se.type=void 0,Se.texture=void 0)}function me(){try{t.compressedTexImage2D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function le(){try{t.texSubImage2D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function pe(){try{t.texSubImage3D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function Ne(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function _e(){try{t.texStorage2D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function ue(){try{t.texStorage3D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function se(){try{t.texImage2D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function oe(){try{t.texImage3D.apply(t,arguments)}catch(Se){console.error("THREE.WebGLState:",Se)}}function ge(Se){U.equals(Se)===!1&&(t.scissor(Se.x,Se.y,Se.z,Se.w),U.copy(Se))}function De(Se){$.equals(Se)===!1&&(t.viewport(Se.x,Se.y,Se.z,Se.w),$.copy(Se))}function Fe(){t.disable(3042),t.disable(2884),t.disable(2929),t.disable(32823),t.disable(3089),t.disable(2960),t.disable(32926),t.blendEquation(32774),t.blendFunc(1,0),t.blendFuncSeparate(1,0,1,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(513),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(519,0,4294967295),t.stencilOp(7680,7680,7680),t.clearStencil(0),t.cullFace(1029),t.frontFace(2305),t.polygonOffset(0,0),t.activeTexture(33984),t.bindFramebuffer(36160,null),r===!0&&(t.bindFramebuffer(36009,null),t.bindFramebuffer(36008,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),d={},D=null,B={},h={},f=new WeakMap,p=[],m=null,g=!1,v=null,A=null,y=null,S=null,x=null,w=null,_=null,C=!1,R=null,k=null,P=null,N=null,L=null,U.set(0,0,t.canvas.width,t.canvas.height),$.set(0,0,t.canvas.width,t.canvas.height),l.reset(),c.reset(),u.reset()}return{buffers:{color:l,depth:c,stencil:u},enable:K,disable:Q,bindFramebuffer:ee,drawBuffers:X,useProgram:te,setBlending:ie,setMaterial:he,setFlipSided:de,setCullFace:ce,setLineWidth:Ee,setPolygonOffset:Me,setScissorTest:Be,activeTexture:ze,bindTexture:je,unbindTexture:ye,compressedTexImage2D:me,texImage2D:se,texImage3D:oe,texStorage2D:_e,texStorage3D:ue,texSubImage2D:le,texSubImage3D:pe,compressedTexSubImage2D:Ne,scissor:ge,viewport:De,reset:Fe}}function Jss(t,e,n,r,a,o,s){const l=a.isWebGL2,c=a.maxTextures,u=a.maxCubemapSize,d=a.maxTextureSize,h=a.maxSamples,f=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,p=/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let g;const v=new WeakMap;let A=!1;try{A=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(me,le){return A?new OffscreenCanvas(me,le):cie("canvas")}function S(me,le,pe,Ne){let _e=1;if((me.width>Ne||me.height>Ne)&&(_e=Ne/Math.max(me.width,me.height)),_e<1||le===!0)if(typeof HTMLImageElement<"u"&&me instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&me instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&me instanceof ImageBitmap){const ue=le?Ebe:Math.floor,se=ue(_e*me.width),oe=ue(_e*me.height);g===void 0&&(g=y(se,oe));const ge=pe?y(se,oe):g;return ge.width=se,ge.height=oe,ge.getContext("2d").drawImage(me,0,0,se,oe),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+me.width+"x"+me.height+") to ("+se+"x"+oe+")."),ge}else return"data"in me&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+me.width+"x"+me.height+")."),me;return me}function x(me){return CYe(me.width)&&CYe(me.height)}function w(me){return l?!1:me.wrapS!==I0||me.wrapT!==I0||me.minFilter!==Pf&&me.minFilter!==Hh}function _(me,le){return me.generateMipmaps&&le&&me.minFilter!==Pf&&me.minFilter!==Hh}function C(me){t.generateMipmap(me)}function R(me,le,pe,Ne,_e=!1){if(l===!1)return le;if(me!==null){if(t[me]!==void 0)return t[me];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+me+"'")}let ue=le;return le===6403&&(pe===5126&&(ue=33326),pe===5131&&(ue=33325),pe===5121&&(ue=33321)),le===33319&&(pe===5126&&(ue=33328),pe===5131&&(ue=33327),pe===5121&&(ue=33323)),le===6408&&(pe===5126&&(ue=34836),pe===5131&&(ue=34842),pe===5121&&(ue=Ne===ou&&_e===!1?35907:32856),pe===32819&&(ue=32854),pe===32820&&(ue=32855)),(ue===33325||ue===33326||ue===33327||ue===33328||ue===34842||ue===34836)&&e.get("EXT_color_buffer_float"),ue}function k(me,le,pe){return _(me,pe)===!0||me.isFramebufferTexture&&me.minFilter!==Pf&&me.minFilter!==Hh?Math.log2(Math.max(le.width,le.height))+1:me.mipmaps!==void 0&&me.mipmaps.length>0?me.mipmaps.length:me.isCompressedTexture&&Array.isArray(me.image)?le.mipmaps.length:1}function P(me){return me===Pf||me===ybe||me===bbe?9728:9729}function N(me){const le=me.target;le.removeEventListener("dispose",N),I(le),le.isVideoTexture&&m.delete(le)}function L(me){const le=me.target;le.removeEventListener("dispose",L),T(le)}function I(me){const le=r.get(me);if(le.__webglInit===void 0)return;const pe=me.source,Ne=v.get(pe);if(Ne){const _e=Ne[le.__cacheKey];_e.usedTimes--,_e.usedTimes===0&&b(me),Object.keys(Ne).length===0&&v.delete(pe)}r.remove(me)}function b(me){const le=r.get(me);t.deleteTexture(le.__webglTexture);const pe=me.source,Ne=v.get(pe);delete Ne[le.__cacheKey],s.memory.textures--}function T(me){const le=me.texture,pe=r.get(me),Ne=r.get(le);if(Ne.__webglTexture!==void 0&&(t.deleteTexture(Ne.__webglTexture),s.memory.textures--),me.depthTexture&&me.depthTexture.dispose(),me.isWebGLCubeRenderTarget)for(let _e=0;_e<6;_e++)t.deleteFramebuffer(pe.__webglFramebuffer[_e]),pe.__webglDepthbuffer&&t.deleteRenderbuffer(pe.__webglDepthbuffer[_e]);else t.deleteFramebuffer(pe.__webglFramebuffer),pe.__webglDepthbuffer&&t.deleteRenderbuffer(pe.__webglDepthbuffer),pe.__webglMultisampledFramebuffer&&t.deleteFramebuffer(pe.__webglMultisampledFramebuffer),pe.__webglColorRenderbuffer&&t.deleteRenderbuffer(pe.__webglColorRenderbuffer),pe.__webglDepthRenderbuffer&&t.deleteRenderbuffer(pe.__webglDepthRenderbuffer);if(me.isWebGLMultipleRenderTargets)for(let _e=0,ue=le.length;_e<ue;_e++){const se=r.get(le[_e]);se.__webglTexture&&(t.deleteTexture(se.__webglTexture),s.memory.textures--),r.remove(le[_e])}r.remove(le),r.remove(me)}let M=0;function D(){M=0}function B(){const me=M;return me>=c&&console.warn("THREE.WebGLTextures: Trying to use "+me+" texture units while this GPU supports only "+c),M+=1,me}function j(me){const le=[];return le.push(me.wrapS),le.push(me.wrapT),le.push(me.magFilter),le.push(me.minFilter),le.push(me.anisotropy),le.push(me.internalFormat),le.push(me.format),le.push(me.type),le.push(me.generateMipmaps),le.push(me.premultiplyAlpha),le.push(me.flipY),le.push(me.unpackAlignment),le.push(me.encoding),le.join()}function H(me,le){const pe=r.get(me);if(me.isVideoTexture&&je(me),me.isRenderTargetTexture===!1&&me.version>0&&pe.__version!==me.version){const Ne=me.image;if(Ne===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(Ne.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{X(pe,me,le);return}}n.activeTexture(33984+le),n.bindTexture(3553,pe.__webglTexture)}function U(me,le){const pe=r.get(me);if(me.version>0&&pe.__version!==me.version){X(pe,me,le);return}n.activeTexture(33984+le),n.bindTexture(35866,pe.__webglTexture)}function $(me,le){const pe=r.get(me);if(me.version>0&&pe.__version!==me.version){X(pe,me,le);return}n.activeTexture(33984+le),n.bindTexture(32879,pe.__webglTexture)}function z(me,le){const pe=r.get(me);if(me.version>0&&pe.__version!==me.version){te(pe,me,le);return}n.activeTexture(33984+le),n.bindTexture(34067,pe.__webglTexture)}const Z={[rie]:10497,[I0]:33071,[iie]:33648},K={[Pf]:9728,[ybe]:9984,[bbe]:9986,[Hh]:9729,[Fdt]:9985,[V9]:9987};function Q(me,le,pe){if(pe?(t.texParameteri(me,10242,Z[le.wrapS]),t.texParameteri(me,10243,Z[le.wrapT]),(me===32879||me===35866)&&t.texParameteri(me,32882,Z[le.wrapR]),t.texParameteri(me,10240,K[le.magFilter]),t.texParameteri(me,10241,K[le.minFilter])):(t.texParameteri(me,10242,33071),t.texParameteri(me,10243,33071),(me===32879||me===35866)&&t.texParameteri(me,32882,33071),(le.wrapS!==I0||le.wrapT!==I0)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(me,10240,P(le.magFilter)),t.texParameteri(me,10241,P(le.minFilter)),le.minFilter!==Pf&&le.minFilter!==Hh&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),e.has("EXT_texture_filter_anisotropic")===!0){const Ne=e.get("EXT_texture_filter_anisotropic");if(le.type===qR&&e.has("OES_texture_float_linear")===!1||l===!1&&le.type===QD&&e.has("OES_texture_half_float_linear")===!1)return;(le.anisotropy>1||r.get(le).__currentAnisotropy)&&(t.texParameterf(me,Ne.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(le.anisotropy,a.getMaxAnisotropy())),r.get(le).__currentAnisotropy=le.anisotropy)}}function ee(me,le){let pe=!1;me.__webglInit===void 0&&(me.__webglInit=!0,le.addEventListener("dispose",N));const Ne=le.source;let _e=v.get(Ne);_e===void 0&&(_e={},v.set(Ne,_e));const ue=j(le);if(ue!==me.__cacheKey){_e[ue]===void 0&&(_e[ue]={texture:t.createTexture(),usedTimes:0},s.memory.textures++,pe=!0),_e[ue].usedTimes++;const se=_e[me.__cacheKey];se!==void 0&&(_e[me.__cacheKey].usedTimes--,se.usedTimes===0&&b(le)),me.__cacheKey=ue,me.__webglTexture=_e[ue].texture}return pe}function X(me,le,pe){let Ne=3553;le.isDataArrayTexture&&(Ne=35866),le.isData3DTexture&&(Ne=32879);const _e=ee(me,le),ue=le.source;if(n.activeTexture(33984+pe),n.bindTexture(Ne,me.__webglTexture),ue.version!==ue.__currentVersion||_e===!0){t.pixelStorei(37440,le.flipY),t.pixelStorei(37441,le.premultiplyAlpha),t.pixelStorei(3317,le.unpackAlignment),t.pixelStorei(37443,0);const se=w(le)&&x(le.image)===!1;let oe=S(le.image,se,!1,d);oe=ye(le,oe);const ge=x(oe)||l,De=o.convert(le.format,le.encoding);let Fe=o.convert(le.type),Se=R(le.internalFormat,De,Fe,le.encoding,le.isVideoTexture);Q(Ne,le,ge);let Xe;const Oe=le.mipmaps,Ye=l&&le.isVideoTexture!==!0,mt=me.__version===void 0,ut=k(le,oe,ge);if(le.isDepthTexture)Se=6402,l?le.type===qR?Se=36012:le.type===Kee?Se=33190:le.type===qD?Se=35056:Se=33189:le.type===qR&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),le.format===z5&&Se===6402&&le.type!==Rz&&le.type!==Kee&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),le.type=Rz,Fe=o.convert(le.type)),le.format===v8&&Se===6402&&(Se=34041,le.type!==qD&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),le.type=qD,Fe=o.convert(le.type))),Ye&&mt?n.texStorage2D(3553,1,Se,oe.width,oe.height):n.texImage2D(3553,0,Se,oe.width,oe.height,0,De,Fe,null);else if(le.isDataTexture)if(Oe.length>0&&ge){Ye&&mt&&n.texStorage2D(3553,ut,Se,Oe[0].width,Oe[0].height);for(let lt=0,pn=Oe.length;lt<pn;lt++)Xe=Oe[lt],Ye?n.texSubImage2D(3553,lt,0,0,Xe.width,Xe.height,De,Fe,Xe.data):n.texImage2D(3553,lt,Se,Xe.width,Xe.height,0,De,Fe,Xe.data);le.generateMipmaps=!1}else Ye?(mt&&n.texStorage2D(3553,ut,Se,oe.width,oe.height),n.texSubImage2D(3553,0,0,0,oe.width,oe.height,De,Fe,oe.data)):n.texImage2D(3553,0,Se,oe.width,oe.height,0,De,Fe,oe.data);else if(le.isCompressedTexture){Ye&&mt&&n.texStorage2D(3553,ut,Se,Oe[0].width,Oe[0].height);for(let lt=0,pn=Oe.length;lt<pn;lt++)Xe=Oe[lt],le.format!==Ly?De!==null?Ye?n.compressedTexSubImage2D(3553,lt,0,0,Xe.width,Xe.height,De,Xe.data):n.compressedTexImage2D(3553,lt,Se,Xe.width,Xe.height,0,Xe.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):Ye?n.texSubImage2D(3553,lt,0,0,Xe.width,Xe.height,De,Fe,Xe.data):n.texImage2D(3553,lt,Se,Xe.width,Xe.height,0,De,Fe,Xe.data)}else if(le.isDataArrayTexture)Ye?(mt&&n.texStorage3D(35866,ut,Se,oe.width,oe.height,oe.depth),n.texSubImage3D(35866,0,0,0,0,oe.width,oe.height,oe.depth,De,Fe,oe.data)):n.texImage3D(35866,0,Se,oe.width,oe.height,oe.depth,0,De,Fe,oe.data);else if(le.isData3DTexture)Ye?(mt&&n.texStorage3D(32879,ut,Se,oe.width,oe.height,oe.depth),n.texSubImage3D(32879,0,0,0,0,oe.width,oe.height,oe.depth,De,Fe,oe.data)):n.texImage3D(32879,0,Se,oe.width,oe.height,oe.depth,0,De,Fe,oe.data);else if(le.isFramebufferTexture)Ye&&mt?n.texStorage2D(3553,ut,Se,oe.width,oe.height):n.texImage2D(3553,0,Se,oe.width,oe.height,0,De,Fe,null);else if(Oe.length>0&&ge){Ye&&mt&&n.texStorage2D(3553,ut,Se,Oe[0].width,Oe[0].height);for(let lt=0,pn=Oe.length;lt<pn;lt++)Xe=Oe[lt],Ye?n.texSubImage2D(3553,lt,0,0,De,Fe,Xe):n.texImage2D(3553,lt,Se,De,Fe,Xe);le.generateMipmaps=!1}else Ye?(mt&&n.texStorage2D(3553,ut,Se,oe.width,oe.height),n.texSubImage2D(3553,0,0,0,De,Fe,oe)):n.texImage2D(3553,0,Se,De,Fe,oe);_(le,ge)&&C(Ne),ue.__currentVersion=ue.version,le.onUpdate&&le.onUpdate(le)}me.__version=le.version}function te(me,le,pe){if(le.image.length!==6)return;const Ne=ee(me,le),_e=le.source;if(n.activeTexture(33984+pe),n.bindTexture(34067,me.__webglTexture),_e.version!==_e.__currentVersion||Ne===!0){t.pixelStorei(37440,le.flipY),t.pixelStorei(37441,le.premultiplyAlpha),t.pixelStorei(3317,le.unpackAlignment),t.pixelStorei(37443,0);const ue=le.isCompressedTexture||le.image[0].isCompressedTexture,se=le.image[0]&&le.image[0].isDataTexture,oe=[];for(let lt=0;lt<6;lt++)!ue&&!se?oe[lt]=S(le.image[lt],!1,!0,u):oe[lt]=se?le.image[lt].image:le.image[lt],oe[lt]=ye(le,oe[lt]);const ge=oe[0],De=x(ge)||l,Fe=o.convert(le.format,le.encoding),Se=o.convert(le.type),Xe=R(le.internalFormat,Fe,Se,le.encoding),Oe=l&&le.isVideoTexture!==!0,Ye=me.__version===void 0;let mt=k(le,ge,De);Q(34067,le,De);let ut;if(ue){Oe&&Ye&&n.texStorage2D(34067,mt,Xe,ge.width,ge.height);for(let lt=0;lt<6;lt++){ut=oe[lt].mipmaps;for(let pn=0;pn<ut.length;pn++){const sn=ut[pn];le.format!==Ly?Fe!==null?Oe?n.compressedTexSubImage2D(34069+lt,pn,0,0,sn.width,sn.height,Fe,sn.data):n.compressedTexImage2D(34069+lt,pn,Xe,sn.width,sn.height,0,sn.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):Oe?n.texSubImage2D(34069+lt,pn,0,0,sn.width,sn.height,Fe,Se,sn.data):n.texImage2D(34069+lt,pn,Xe,sn.width,sn.height,0,Fe,Se,sn.data)}}}else{ut=le.mipmaps,Oe&&Ye&&(ut.length>0&&mt++,n.texStorage2D(34067,mt,Xe,oe[0].width,oe[0].height));for(let lt=0;lt<6;lt++)if(se){Oe?n.texSubImage2D(34069+lt,0,0,0,oe[lt].width,oe[lt].height,Fe,Se,oe[lt].data):n.texImage2D(34069+lt,0,Xe,oe[lt].width,oe[lt].height,0,Fe,Se,oe[lt].data);for(let pn=0;pn<ut.length;pn++){const un=ut[pn].image[lt].image;Oe?n.texSubImage2D(34069+lt,pn+1,0,0,un.width,un.height,Fe,Se,un.data):n.texImage2D(34069+lt,pn+1,Xe,un.width,un.height,0,Fe,Se,un.data)}}else{Oe?n.texSubImage2D(34069+lt,0,0,0,Fe,Se,oe[lt]):n.texImage2D(34069+lt,0,Xe,Fe,Se,oe[lt]);for(let pn=0;pn<ut.length;pn++){const sn=ut[pn];Oe?n.texSubImage2D(34069+lt,pn+1,0,0,Fe,Se,sn.image[lt]):n.texImage2D(34069+lt,pn+1,Xe,Fe,Se,sn.image[lt])}}}_(le,De)&&C(34067),_e.__currentVersion=_e.version,le.onUpdate&&le.onUpdate(le)}me.__version=le.version}function J(me,le,pe,Ne,_e){const ue=o.convert(pe.format,pe.encoding),se=o.convert(pe.type),oe=R(pe.internalFormat,ue,se,pe.encoding);r.get(le).__hasExternalTextures||(_e===32879||_e===35866?n.texImage3D(_e,0,oe,le.width,le.height,le.depth,0,ue,se,null):n.texImage2D(_e,0,oe,le.width,le.height,0,ue,se,null)),n.bindFramebuffer(36160,me),ze(le)?f.framebufferTexture2DMultisampleEXT(36160,Ne,_e,r.get(pe).__webglTexture,0,Be(le)):t.framebufferTexture2D(36160,Ne,_e,r.get(pe).__webglTexture,0),n.bindFramebuffer(36160,null)}function ne(me,le,pe){if(t.bindRenderbuffer(36161,me),le.depthBuffer&&!le.stencilBuffer){let Ne=33189;if(pe||ze(le)){const _e=le.depthTexture;_e&&_e.isDepthTexture&&(_e.type===qR?Ne=36012:_e.type===Kee&&(Ne=33190));const ue=Be(le);ze(le)?f.renderbufferStorageMultisampleEXT(36161,ue,Ne,le.width,le.height):t.renderbufferStorageMultisample(36161,ue,Ne,le.width,le.height)}else t.renderbufferStorage(36161,Ne,le.width,le.height);t.framebufferRenderbuffer(36160,36096,36161,me)}else if(le.depthBuffer&&le.stencilBuffer){const Ne=Be(le);pe&&ze(le)===!1?t.renderbufferStorageMultisample(36161,Ne,35056,le.width,le.height):ze(le)?f.renderbufferStorageMultisampleEXT(36161,Ne,35056,le.width,le.height):t.renderbufferStorage(36161,34041,le.width,le.height),t.framebufferRenderbuffer(36160,33306,36161,me)}else{const Ne=le.isWebGLMultipleRenderTargets===!0?le.texture[0]:le.texture,_e=o.convert(Ne.format,Ne.encoding),ue=o.convert(Ne.type),se=R(Ne.internalFormat,_e,ue,Ne.encoding),oe=Be(le);pe&&ze(le)===!1?t.renderbufferStorageMultisample(36161,oe,se,le.width,le.height):ze(le)?f.renderbufferStorageMultisampleEXT(36161,oe,se,le.width,le.height):t.renderbufferStorage(36161,se,le.width,le.height)}t.bindRenderbuffer(36161,null)}function ie(me,le){if(le&&le.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,me),!(le.depthTexture&&le.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!r.get(le.depthTexture).__webglTexture||le.depthTexture.image.width!==le.width||le.depthTexture.image.height!==le.height)&&(le.depthTexture.image.width=le.width,le.depthTexture.image.height=le.height,le.depthTexture.needsUpdate=!0),H(le.depthTexture,0);const Ne=r.get(le.depthTexture).__webglTexture,_e=Be(le);if(le.depthTexture.format===z5)ze(le)?f.framebufferTexture2DMultisampleEXT(36160,36096,3553,Ne,0,_e):t.framebufferTexture2D(36160,36096,3553,Ne,0);else if(le.depthTexture.format===v8)ze(le)?f.framebufferTexture2DMultisampleEXT(36160,33306,3553,Ne,0,_e):t.framebufferTexture2D(36160,33306,3553,Ne,0);else throw new Error("Unknown depthTexture format")}function he(me){const le=r.get(me),pe=me.isWebGLCubeRenderTarget===!0;if(me.depthTexture&&!le.__autoAllocateDepthBuffer){if(pe)throw new Error("target.depthTexture not supported in Cube render targets");ie(le.__webglFramebuffer,me)}else if(pe){le.__webglDepthbuffer=[];for(let Ne=0;Ne<6;Ne++)n.bindFramebuffer(36160,le.__webglFramebuffer[Ne]),le.__webglDepthbuffer[Ne]=t.createRenderbuffer(),ne(le.__webglDepthbuffer[Ne],me,!1)}else n.bindFramebuffer(36160,le.__webglFramebuffer),le.__webglDepthbuffer=t.createRenderbuffer(),ne(le.__webglDepthbuffer,me,!1);n.bindFramebuffer(36160,null)}function de(me,le,pe){const Ne=r.get(me);le!==void 0&&J(Ne.__webglFramebuffer,me,me.texture,36064,3553),pe!==void 0&&he(me)}function ce(me){const le=me.texture,pe=r.get(me),Ne=r.get(le);me.addEventListener("dispose",L),me.isWebGLMultipleRenderTargets!==!0&&(Ne.__webglTexture===void 0&&(Ne.__webglTexture=t.createTexture()),Ne.__version=le.version,s.memory.textures++);const _e=me.isWebGLCubeRenderTarget===!0,ue=me.isWebGLMultipleRenderTargets===!0,se=x(me)||l;if(_e){pe.__webglFramebuffer=[];for(let oe=0;oe<6;oe++)pe.__webglFramebuffer[oe]=t.createFramebuffer()}else if(pe.__webglFramebuffer=t.createFramebuffer(),ue)if(a.drawBuffers){const oe=me.texture;for(let ge=0,De=oe.length;ge<De;ge++){const Fe=r.get(oe[ge]);Fe.__webglTexture===void 0&&(Fe.__webglTexture=t.createTexture(),s.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");else if(l&&me.samples>0&&ze(me)===!1){pe.__webglMultisampledFramebuffer=t.createFramebuffer(),pe.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,pe.__webglColorRenderbuffer);const oe=o.convert(le.format,le.encoding),ge=o.convert(le.type),De=R(le.internalFormat,oe,ge,le.encoding),Fe=Be(me);t.renderbufferStorageMultisample(36161,Fe,De,me.width,me.height),n.bindFramebuffer(36160,pe.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,pe.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),me.depthBuffer&&(pe.__webglDepthRenderbuffer=t.createRenderbuffer(),ne(pe.__webglDepthRenderbuffer,me,!0)),n.bindFramebuffer(36160,null)}if(_e){n.bindTexture(34067,Ne.__webglTexture),Q(34067,le,se);for(let oe=0;oe<6;oe++)J(pe.__webglFramebuffer[oe],me,le,36064,34069+oe);_(le,se)&&C(34067),n.unbindTexture()}else if(ue){const oe=me.texture;for(let ge=0,De=oe.length;ge<De;ge++){const Fe=oe[ge],Se=r.get(Fe);n.bindTexture(3553,Se.__webglTexture),Q(3553,Fe,se),J(pe.__webglFramebuffer,me,Fe,36064+ge,3553),_(Fe,se)&&C(3553)}n.unbindTexture()}else{let oe=3553;(me.isWebGL3DRenderTarget||me.isWebGLArrayRenderTarget)&&(l?oe=me.isWebGL3DRenderTarget?32879:35866:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(oe,Ne.__webglTexture),Q(oe,le,se),J(pe.__webglFramebuffer,me,le,36064,oe),_(le,se)&&C(oe),n.unbindTexture()}me.depthBuffer&&he(me)}function Ee(me){const le=x(me)||l,pe=me.isWebGLMultipleRenderTargets===!0?me.texture:[me.texture];for(let Ne=0,_e=pe.length;Ne<_e;Ne++){const ue=pe[Ne];if(_(ue,le)){const se=me.isWebGLCubeRenderTarget?34067:3553,oe=r.get(ue).__webglTexture;n.bindTexture(se,oe),C(se),n.unbindTexture()}}}function Me(me){if(l&&me.samples>0&&ze(me)===!1){const le=me.width,pe=me.height;let Ne=16384;const _e=[36064],ue=me.stencilBuffer?33306:36096;me.depthBuffer&&_e.push(ue);const se=r.get(me),oe=se.__ignoreDepthValues!==void 0?se.__ignoreDepthValues:!1;oe===!1&&(me.depthBuffer&&(Ne|=256),me.stencilBuffer&&(Ne|=1024)),n.bindFramebuffer(36008,se.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,se.__webglFramebuffer),oe===!0&&(t.invalidateFramebuffer(36008,[ue]),t.invalidateFramebuffer(36009,[ue])),t.blitFramebuffer(0,0,le,pe,0,0,le,pe,Ne,9728),p&&t.invalidateFramebuffer(36008,_e),n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,se.__webglMultisampledFramebuffer)}}function Be(me){return Math.min(h,me.samples)}function ze(me){const le=r.get(me);return l&&me.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&le.__useRenderToTexture!==!1}function je(me){const le=s.render.frame;m.get(me)!==le&&(m.set(me,le),me.update())}function ye(me,le){const pe=me.encoding,Ne=me.format,_e=me.type;return me.isCompressedTexture===!0||me.isVideoTexture===!0||me.format===xbe||pe!==nE&&(pe===ou?l===!1?e.has("EXT_sRGB")===!0&&Ne===Ly?(me.format=xbe,me.minFilter=Hh,me.generateMipmaps=!1):le=IO.sRGBToLinear(le):(Ne!==Ly||_e!==UP)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",pe)),le}this.allocateTextureUnit=B,this.resetTextureUnits=D,this.setTexture2D=H,this.setTexture2DArray=U,this.setTexture3D=$,this.setTextureCube=z,this.rebindTextures=de,this.setupRenderTarget=ce,this.updateRenderTargetMipmap=Ee,this.updateMultisampleRenderTarget=Me,this.setupDepthRenderbuffer=he,this.setupFrameBufferTexture=J,this.useMultisampledRTT=ze}function qer(t,e,n){const r=n.isWebGL2;function a(o,s=null){let l;if(o===UP)return 5121;if(o===oer)return 32819;if(o===ser)return 32820;if(o===rer)return 5120;if(o===ier)return 5122;if(o===Rz)return 5123;if(o===aer)return 5124;if(o===Kee)return 5125;if(o===qR)return 5126;if(o===QD)return r?5131:(l=e.get("OES_texture_half_float"),l!==null?l.HALF_FLOAT_OES:null);if(o===ler)return 6406;if(o===Ly)return 6408;if(o===uer)return 6409;if(o===der)return 6410;if(o===z5)return 6402;if(o===v8)return 34041;if(o===her)return 6403;if(o===cer)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(o===xbe)return l=e.get("EXT_sRGB"),l!==null?l.SRGB_ALPHA_EXT:null;if(o===fer)return 36244;if(o===per)return 33319;if(o===mer)return 33320;if(o===ger)return 36249;if(o===zge||o===Gge||o===Vge||o===Kge)if(s===ou)if(l=e.get("WEBGL_compressed_texture_s3tc_srgb"),l!==null){if(o===zge)return l.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(o===Gge)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(o===Vge)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(o===Kge)return l.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(l=e.get("WEBGL_compressed_texture_s3tc"),l!==null){if(o===zge)return l.COMPRESSED_RGB_S3TC_DXT1_EXT;if(o===Gge)return l.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(o===Vge)return l.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(o===Kge)return l.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(o===aYe||o===oYe||o===sYe||o===lYe)if(l=e.get("WEBGL_compressed_texture_pvrtc"),l!==null){if(o===aYe)return l.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(o===oYe)return l.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(o===sYe)return l.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(o===lYe)return l.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(o===ver)return l=e.get("WEBGL_compressed_texture_etc1"),l!==null?l.COMPRESSED_RGB_ETC1_WEBGL:null;if(o===cYe||o===uYe)if(l=e.get("WEBGL_compressed_texture_etc"),l!==null){if(o===cYe)return s===ou?l.COMPRESSED_SRGB8_ETC2:l.COMPRESSED_RGB8_ETC2;if(o===uYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:l.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(o===dYe||o===hYe||o===fYe||o===pYe||o===mYe||o===gYe||o===vYe||o===AYe||o===yYe||o===bYe||o===xYe||o===EYe||o===SYe||o===wYe)if(l=e.get("WEBGL_compressed_texture_astc"),l!==null){if(o===dYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:l.COMPRESSED_RGBA_ASTC_4x4_KHR;if(o===hYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:l.COMPRESSED_RGBA_ASTC_5x4_KHR;if(o===fYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:l.COMPRESSED_RGBA_ASTC_5x5_KHR;if(o===pYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:l.COMPRESSED_RGBA_ASTC_6x5_KHR;if(o===mYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:l.COMPRESSED_RGBA_ASTC_6x6_KHR;if(o===gYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:l.COMPRESSED_RGBA_ASTC_8x5_KHR;if(o===vYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:l.COMPRESSED_RGBA_ASTC_8x6_KHR;if(o===AYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:l.COMPRESSED_RGBA_ASTC_8x8_KHR;if(o===yYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:l.COMPRESSED_RGBA_ASTC_10x5_KHR;if(o===bYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:l.COMPRESSED_RGBA_ASTC_10x6_KHR;if(o===xYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:l.COMPRESSED_RGBA_ASTC_10x8_KHR;if(o===EYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:l.COMPRESSED_RGBA_ASTC_10x10_KHR;if(o===SYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:l.COMPRESSED_RGBA_ASTC_12x10_KHR;if(o===wYe)return s===ou?l.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:l.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(o===_Ye)if(l=e.get("EXT_texture_compression_bptc"),l!==null){if(o===_Ye)return s===ou?l.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:l.COMPRESSED_RGBA_BPTC_UNORM_EXT}else return null;if(o===qD)return r?34042:(l=e.get("WEBGL_depth_texture"),l!==null?l.UNSIGNED_INT_24_8_WEBGL:null)}return{convert:a}}class zdt extends Xu{constructor(e=[]){super(),this.cameras=e}}zdt.prototype.isArrayCamera=!0;class hD extends zs{constructor(){super(),this.type="Group"}}hD.prototype.isGroup=!0;const Zss={type:"move"};class G7e{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new hD,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new hD,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new et,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new et),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new hD,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new et,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new et),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,r){let a=null,o=null,s=null;const l=this._targetRay,c=this._grip,u=this._hand;if(e&&n.session.visibilityState!=="visible-blurred")if(l!==null&&(a=n.getPose(e.targetRaySpace,r),a!==null&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1,this.dispatchEvent(Zss))),u&&e.hand){s=!0;for(const g of e.hand.values()){const v=n.getJointPose(g,r);if(u.joints[g.jointName]===void 0){const y=new hD;y.matrixAutoUpdate=!1,y.visible=!1,u.joints[g.jointName]=y,u.add(y)}const A=u.joints[g.jointName];v!==null&&(A.matrix.fromArray(v.transform.matrix),A.matrix.decompose(A.position,A.rotation,A.scale),A.jointRadius=v.radius),A.visible=v!==null}const d=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=d.position.distanceTo(h.position),p=.02,m=.005;u.inputState.pinching&&f>p+m?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=p-m&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(o=n.getPose(e.gripSpace,r),o!==null&&(c.matrix.fromArray(o.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),o.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(o.linearVelocity)):c.hasLinearVelocity=!1,o.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(o.angularVelocity)):c.hasAngularVelocity=!1));return l!==null&&(l.visible=a!==null),c!==null&&(c.visible=o!==null),u!==null&&(u.visible=s!==null),this}}class Gdt extends Ah{constructor(e,n,r,a,o,s,l,c,u,d){if(d=d!==void 0?d:z5,d!==z5&&d!==v8)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");r===void 0&&d===z5&&(r=Rz),r===void 0&&d===v8&&(r=qD),super(null,a,o,s,l,c,d,r,u),this.image={width:e,height:n},this.magFilter=l!==void 0?l:Pf,this.minFilter=c!==void 0?c:Pf,this.flipY=!1,this.generateMipmaps=!1}}Gdt.prototype.isDepthTexture=!0;class Xss extends RN{constructor(e,n){super();const r=this;let a=null,o=1,s=null,l="local-floor",c=null,u=null,d=null,h=null,f=null;const p=n.getContextAttributes();let m=null,g=null;const v=[],A=new Map,y=new Xu;y.layers.enable(1),y.viewport=new Ac;const S=new Xu;S.layers.enable(2),S.viewport=new Ac;const x=[y,S],w=new zdt;w.layers.enable(1),w.layers.enable(2);let _=null,C=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(B){let j=v[B];return j===void 0&&(j=new G7e,v[B]=j),j.getTargetRaySpace()},this.getControllerGrip=function(B){let j=v[B];return j===void 0&&(j=new G7e,v[B]=j),j.getGripSpace()},this.getHand=function(B){let j=v[B];return j===void 0&&(j=new G7e,v[B]=j),j.getHandSpace()};function R(B){const j=A.get(B.inputSource);j&&j.dispatchEvent({type:B.type,data:B.inputSource})}function k(){A.forEach(function(B,j){B.disconnect(j)}),A.clear(),_=null,C=null,e.setRenderTarget(m),h=null,d=null,u=null,a=null,g=null,D.stop(),r.isPresenting=!1,r.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(B){o=B,r.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(B){l=B,r.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return s},this.getBaseLayer=function(){return d!==null?d:h},this.getBinding=function(){return u},this.getFrame=function(){return f},this.getSession=function(){return a},this.setSession=async function(B){if(a=B,a!==null){if(m=e.getRenderTarget(),a.addEventListener("select",R),a.addEventListener("selectstart",R),a.addEventListener("selectend",R),a.addEventListener("squeeze",R),a.addEventListener("squeezestart",R),a.addEventListener("squeezeend",R),a.addEventListener("end",k),a.addEventListener("inputsourceschange",P),p.xrCompatible!==!0&&await n.makeXRCompatible(),a.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const j={antialias:a.renderState.layers===void 0?p.antialias:!0,alpha:p.alpha,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:o};h=new XRWebGLLayer(a,n,j),a.updateRenderState({baseLayer:h}),g=new H0(h.framebufferWidth,h.framebufferHeight,{format:Ly,type:UP,encoding:e.outputEncoding})}else{let j=null,H=null,U=null;p.depth&&(U=p.stencil?35056:33190,j=p.stencil?v8:z5,H=p.stencil?qD:Rz);const $={colorFormat:e.outputEncoding===ou?35907:32856,depthFormat:U,scaleFactor:o};u=new XRWebGLBinding(a,n),d=u.createProjectionLayer($),a.updateRenderState({layers:[d]}),g=new H0(d.textureWidth,d.textureHeight,{format:Ly,type:UP,depthTexture:new Gdt(d.textureWidth,d.textureHeight,H,void 0,void 0,void 0,void 0,void 0,void 0,j),stencilBuffer:p.stencil,encoding:e.outputEncoding,samples:p.antialias?4:0});const z=e.properties.get(g);z.__ignoreDepthValues=d.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(1),s=await a.requestReferenceSpace(l),D.setContext(a),D.start(),r.isPresenting=!0,r.dispatchEvent({type:"sessionstart"})}};function P(B){const j=a.inputSources;for(let H=0;H<v.length;H++)A.set(j[H],v[H]);for(let H=0;H<B.removed.length;H++){const U=B.removed[H],$=A.get(U);$&&($.dispatchEvent({type:"disconnected",data:U}),A.delete(U))}for(let H=0;H<B.added.length;H++){const U=B.added[H],$=A.get(U);$&&$.dispatchEvent({type:"connected",data:U})}}const N=new et,L=new et;function I(B,j,H){N.setFromMatrixPosition(j.matrixWorld),L.setFromMatrixPosition(H.matrixWorld);const U=N.distanceTo(L),$=j.projectionMatrix.elements,z=H.projectionMatrix.elements,Z=$[14]/($[10]-1),K=$[14]/($[10]+1),Q=($[9]+1)/$[5],ee=($[9]-1)/$[5],X=($[8]-1)/$[0],te=(z[8]+1)/z[0],J=Z*X,ne=Z*te,ie=U/(-X+te),he=ie*-X;j.matrixWorld.decompose(B.position,B.quaternion,B.scale),B.translateX(he),B.translateZ(ie),B.matrixWorld.compose(B.position,B.quaternion,B.scale),B.matrixWorldInverse.copy(B.matrixWorld).invert();const de=Z+ie,ce=K+ie,Ee=J-he,Me=ne+(U-he),Be=Q*K/ce*de,ze=ee*K/ce*de;B.projectionMatrix.makePerspective(Ee,Me,Be,ze,de,ce)}function b(B,j){j===null?B.matrixWorld.copy(B.matrix):B.matrixWorld.multiplyMatrices(j.matrixWorld,B.matrix),B.matrixWorldInverse.copy(B.matrixWorld).invert()}this.updateCamera=function(B){if(a===null)return;w.near=S.near=y.near=B.near,w.far=S.far=y.far=B.far,(_!==w.near||C!==w.far)&&(a.updateRenderState({depthNear:w.near,depthFar:w.far}),_=w.near,C=w.far);const j=B.parent,H=w.cameras;b(w,j);for(let $=0;$<H.length;$++)b(H[$],j);w.matrixWorld.decompose(w.position,w.quaternion,w.scale),B.position.copy(w.position),B.quaternion.copy(w.quaternion),B.scale.copy(w.scale),B.matrix.copy(w.matrix),B.matrixWorld.copy(w.matrixWorld);const U=B.children;for(let $=0,z=U.length;$<z;$++)U[$].updateMatrixWorld(!0);H.length===2?I(w,y,S):w.projectionMatrix.copy(y.projectionMatrix)},this.getCamera=function(){return w},this.getFoveation=function(){if(d!==null)return d.fixedFoveation;if(h!==null)return h.fixedFoveation},this.setFoveation=function(B){d!==null&&(d.fixedFoveation=B),h!==null&&h.fixedFoveation!==void 0&&(h.fixedFoveation=B)};let T=null;function M(B,j){if(c=j.getViewerPose(s),f=j,c!==null){const U=c.views;h!==null&&(e.setRenderTargetFramebuffer(g,h.framebuffer),e.setRenderTarget(g));let $=!1;U.length!==w.cameras.length&&(w.cameras.length=0,$=!0);for(let z=0;z<U.length;z++){const Z=U[z];let K=null;if(h!==null)K=h.getViewport(Z);else{const ee=u.getViewSubImage(d,Z);K=ee.viewport,z===0&&(e.setRenderTargetTextures(g,ee.colorTexture,d.ignoreDepthValues?void 0:ee.depthStencilTexture),e.setRenderTarget(g))}const Q=x[z];Q.matrix.fromArray(Z.transform.matrix),Q.projectionMatrix.fromArray(Z.projectionMatrix),Q.viewport.set(K.x,K.y,K.width,K.height),z===0&&w.matrix.copy(Q.matrix),$===!0&&w.cameras.push(Q)}}const H=a.inputSources;for(let U=0;U<v.length;U++){const $=v[U],z=H[U];$.update(z,j,s)}T&&T(B,j),f=null}const D=new jer;D.setAnimationLoop(M),this.setAnimationLoop=function(B){T=B},this.dispose=function(){}}}function els(t,e){function n(g,v){g.fogColor.value.copy(v.color),v.isFog?(g.fogNear.value=v.near,g.fogFar.value=v.far):v.isFogExp2&&(g.fogDensity.value=v.density)}function r(g,v,A,y,S){v.isMeshBasicMaterial||v.isMeshLambertMaterial?a(g,v):v.isMeshToonMaterial?(a(g,v),d(g,v)):v.isMeshPhongMaterial?(a(g,v),u(g,v)):v.isMeshStandardMaterial?(a(g,v),h(g,v),v.isMeshPhysicalMaterial&&f(g,v,S)):v.isMeshMatcapMaterial?(a(g,v),p(g,v)):v.isMeshDepthMaterial?a(g,v):v.isMeshDistanceMaterial?(a(g,v),m(g,v)):v.isMeshNormalMaterial?a(g,v):v.isLineBasicMaterial?(o(g,v),v.isLineDashedMaterial&&s(g,v)):v.isPointsMaterial?l(g,v,A,y):v.isSpriteMaterial?c(g,v):v.isShadowMaterial?(g.color.value.copy(v.color),g.opacity.value=v.opacity):v.isShaderMaterial&&(v.uniformsNeedUpdate=!1)}function a(g,v){g.opacity.value=v.opacity,v.color&&g.diffuse.value.copy(v.color),v.emissive&&g.emissive.value.copy(v.emissive).multiplyScalar(v.emissiveIntensity),v.map&&(g.map.value=v.map),v.alphaMap&&(g.alphaMap.value=v.alphaMap),v.bumpMap&&(g.bumpMap.value=v.bumpMap,g.bumpScale.value=v.bumpScale,v.side===Gy&&(g.bumpScale.value*=-1)),v.displacementMap&&(g.displacementMap.value=v.displacementMap,g.displacementScale.value=v.displacementScale,g.displacementBias.value=v.displacementBias),v.emissiveMap&&(g.emissiveMap.value=v.emissiveMap),v.normalMap&&(g.normalMap.value=v.normalMap,g.normalScale.value.copy(v.normalScale),v.side===Gy&&g.normalScale.value.negate()),v.specularMap&&(g.specularMap.value=v.specularMap),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest);const A=e.get(v).envMap;if(A&&(g.envMap.value=A,g.flipEnvMap.value=A.isCubeTexture&&A.isRenderTargetTexture===!1?-1:1,g.reflectivity.value=v.reflectivity,g.ior.value=v.ior,g.refractionRatio.value=v.refractionRatio),v.lightMap){g.lightMap.value=v.lightMap;const x=t.physicallyCorrectLights!==!0?Math.PI:1;g.lightMapIntensity.value=v.lightMapIntensity*x}v.aoMap&&(g.aoMap.value=v.aoMap,g.aoMapIntensity.value=v.aoMapIntensity);let y;v.map?y=v.map:v.specularMap?y=v.specularMap:v.displacementMap?y=v.displacementMap:v.normalMap?y=v.normalMap:v.bumpMap?y=v.bumpMap:v.roughnessMap?y=v.roughnessMap:v.metalnessMap?y=v.metalnessMap:v.alphaMap?y=v.alphaMap:v.emissiveMap?y=v.emissiveMap:v.clearcoatMap?y=v.clearcoatMap:v.clearcoatNormalMap?y=v.clearcoatNormalMap:v.clearcoatRoughnessMap?y=v.clearcoatRoughnessMap:v.specularIntensityMap?y=v.specularIntensityMap:v.specularColorMap?y=v.specularColorMap:v.transmissionMap?y=v.transmissionMap:v.thicknessMap?y=v.thicknessMap:v.sheenColorMap?y=v.sheenColorMap:v.sheenRoughnessMap&&(y=v.sheenRoughnessMap),y!==void 0&&(y.isWebGLRenderTarget&&(y=y.texture),y.matrixAutoUpdate===!0&&y.updateMatrix(),g.uvTransform.value.copy(y.matrix));let S;v.aoMap?S=v.aoMap:v.lightMap&&(S=v.lightMap),S!==void 0&&(S.isWebGLRenderTarget&&(S=S.texture),S.matrixAutoUpdate===!0&&S.updateMatrix(),g.uv2Transform.value.copy(S.matrix))}function o(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity}function s(g,v){g.dashSize.value=v.dashSize,g.totalSize.value=v.dashSize+v.gapSize,g.scale.value=v.scale}function l(g,v,A,y){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.size.value=v.size*A,g.scale.value=y*.5,v.map&&(g.map.value=v.map),v.alphaMap&&(g.alphaMap.value=v.alphaMap),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest);let S;v.map?S=v.map:v.alphaMap&&(S=v.alphaMap),S!==void 0&&(S.matrixAutoUpdate===!0&&S.updateMatrix(),g.uvTransform.value.copy(S.matrix))}function c(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.rotation.value=v.rotation,v.map&&(g.map.value=v.map),v.alphaMap&&(g.alphaMap.value=v.alphaMap),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest);let A;v.map?A=v.map:v.alphaMap&&(A=v.alphaMap),A!==void 0&&(A.matrixAutoUpdate===!0&&A.updateMatrix(),g.uvTransform.value.copy(A.matrix))}function u(g,v){g.specular.value.copy(v.specular),g.shininess.value=Math.max(v.shininess,1e-4)}function d(g,v){v.gradientMap&&(g.gradientMap.value=v.gradientMap)}function h(g,v){g.roughness.value=v.roughness,g.metalness.value=v.metalness,v.roughnessMap&&(g.roughnessMap.value=v.roughnessMap),v.metalnessMap&&(g.metalnessMap.value=v.metalnessMap),e.get(v).envMap&&(g.envMapIntensity.value=v.envMapIntensity)}function f(g,v,A){g.ior.value=v.ior,v.sheen>0&&(g.sheenColor.value.copy(v.sheenColor).multiplyScalar(v.sheen),g.sheenRoughness.value=v.sheenRoughness,v.sheenColorMap&&(g.sheenColorMap.value=v.sheenColorMap),v.sheenRoughnessMap&&(g.sheenRoughnessMap.value=v.sheenRoughnessMap)),v.clearcoat>0&&(g.clearcoat.value=v.clearcoat,g.clearcoatRoughness.value=v.clearcoatRoughness,v.clearcoatMap&&(g.clearcoatMap.value=v.clearcoatMap),v.clearcoatRoughnessMap&&(g.clearcoatRoughnessMap.value=v.clearcoatRoughnessMap),v.clearcoatNormalMap&&(g.clearcoatNormalScale.value.copy(v.clearcoatNormalScale),g.clearcoatNormalMap.value=v.clearcoatNormalMap,v.side===Gy&&g.clearcoatNormalScale.value.negate())),v.transmission>0&&(g.transmission.value=v.transmission,g.transmissionSamplerMap.value=A.texture,g.transmissionSamplerSize.value.set(A.width,A.height),v.transmissionMap&&(g.transmissionMap.value=v.transmissionMap),g.thickness.value=v.thickness,v.thicknessMap&&(g.thicknessMap.value=v.thicknessMap),g.attenuationDistance.value=v.attenuationDistance,g.attenuationColor.value.copy(v.attenuationColor)),g.specularIntensity.value=v.specularIntensity,g.specularColor.value.copy(v.specularColor),v.specularIntensityMap&&(g.specularIntensityMap.value=v.specularIntensityMap),v.specularColorMap&&(g.specularColorMap.value=v.specularColorMap)}function p(g,v){v.matcap&&(g.matcap.value=v.matcap)}function m(g,v){g.referencePosition.value.copy(v.referencePosition),g.nearDistance.value=v.nearDistance,g.farDistance.value=v.farDistance}return{refreshFogUniforms:n,refreshMaterialUniforms:r}}function tls(){const t=cie("canvas");return t.style.display="block",t}function wc(t={}){const e=t.canvas!==void 0?t.canvas:tls(),n=t.context!==void 0?t.context:null,r=t.depth!==void 0?t.depth:!0,a=t.stencil!==void 0?t.stencil:!0,o=t.antialias!==void 0?t.antialias:!1,s=t.premultipliedAlpha!==void 0?t.premultipliedAlpha:!0,l=t.preserveDrawingBuffer!==void 0?t.preserveDrawingBuffer:!1,c=t.powerPreference!==void 0?t.powerPreference:"default",u=t.failIfMajorPerformanceCaveat!==void 0?t.failIfMajorPerformanceCaveat:!1;let d;t.context!==void 0?d=n.getContextAttributes().alpha:d=t.alpha!==void 0?t.alpha:!1;let h=null,f=null;const p=[],m=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=nE,this.physicallyCorrectLights=!1,this.toneMapping=_w,this.toneMappingExposure=1;const g=this;let v=!1,A=0,y=0,S=null,x=-1,w=null;const _=new Ac,C=new Ac;let R=null,k=e.width,P=e.height,N=1,L=null,I=null;const b=new Ac(0,0,k,P),T=new Ac(0,0,k,P);let M=!1;const D=new lle;let B=!1,j=!1,H=null;const U=new da,$=new Qn,z=new et,Z={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function K(){return S===null?N:1}let Q=n;function ee($e,qe){for(let yt=0;yt<$e.length;yt++){const Ze=$e[yt],ot=e.getContext(Ze,qe);if(ot!==null)return ot}return null}try{const $e={alpha:!0,depth:r,stencil:a,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:l,powerPreference:c,failIfMajorPerformanceCaveat:u};if("setAttribute"in e&&e.setAttribute("data-engine",`three.js r${ZCe}`),e.addEventListener("webglcontextlost",Se,!1),e.addEventListener("webglcontextrestored",Xe,!1),Q===null){const qe=["webgl2","webgl","experimental-webgl"];if(g.isWebGL1Renderer===!0&&qe.shift(),Q=ee(qe,$e),Q===null)throw ee(qe)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}Q.getShaderPrecisionFormat===void 0&&(Q.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch($e){throw console.error("THREE.WebGLRenderer: "+$e.message),$e}let X,te,J,ne,ie,he,de,ce,Ee,Me,Be,ze,je,ye,me,le,pe,Ne,_e,ue,se,oe,ge;function De(){X=new bos(Q),te=new pos(Q,X,t),X.init(te),oe=new qer(Q,X,te),J=new Yss(Q,X,te),ne=new Sos,ie=new Fss,he=new Jss(Q,X,J,ie,te,oe,ne),de=new gos(g),ce=new yos(g),Ee=new Drs(Q,te),ge=new hos(Q,X,Ee,te),Me=new xos(Q,Ee,ne,ge),Be=new Cos(Q,Me,Ee,ne),_e=new Tos(Q,te,he),le=new mos(ie),ze=new $ss(g,de,ce,X,te,ge,le),je=new els(g,ie),ye=new Hss,me=new Wss(X,te),Ne=new dos(g,de,J,Be,d,s),pe=new Qer(g,Be,te),ue=new fos(Q,X,ne,te),se=new Eos(Q,X,ne,te),ne.programs=ze.programs,g.capabilities=te,g.extensions=X,g.properties=ie,g.renderLists=ye,g.shadowMap=pe,g.state=J,g.info=ne}De();const Fe=new Xss(g,Q);this.xr=Fe,this.getContext=function(){return Q},this.getContextAttributes=function(){return Q.getContextAttributes()},this.forceContextLoss=function(){const $e=X.get("WEBGL_lose_context");$e&&$e.loseContext()},this.forceContextRestore=function(){const $e=X.get("WEBGL_lose_context");$e&&$e.restoreContext()},this.getPixelRatio=function(){return N},this.setPixelRatio=function($e){$e!==void 0&&(N=$e,this.setSize(k,P,!1))},this.getSize=function($e){return $e.set(k,P)},this.setSize=function($e,qe,yt){if(Fe.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}k=$e,P=qe,e.width=Math.floor($e*N),e.height=Math.floor(qe*N),yt!==!1&&(e.style.width=$e+"px",e.style.height=qe+"px"),this.setViewport(0,0,$e,qe)},this.getDrawingBufferSize=function($e){return $e.set(k*N,P*N).floor()},this.setDrawingBufferSize=function($e,qe,yt){k=$e,P=qe,N=yt,e.width=Math.floor($e*yt),e.height=Math.floor(qe*yt),this.setViewport(0,0,$e,qe)},this.getCurrentViewport=function($e){return $e.copy(_)},this.getViewport=function($e){return $e.copy(b)},this.setViewport=function($e,qe,yt,Ze){$e.isVector4?b.set($e.x,$e.y,$e.z,$e.w):b.set($e,qe,yt,Ze),J.viewport(_.copy(b).multiplyScalar(N).floor())},this.getScissor=function($e){return $e.copy(T)},this.setScissor=function($e,qe,yt,Ze){$e.isVector4?T.set($e.x,$e.y,$e.z,$e.w):T.set($e,qe,yt,Ze),J.scissor(C.copy(T).multiplyScalar(N).floor())},this.getScissorTest=function(){return M},this.setScissorTest=function($e){J.setScissorTest(M=$e)},this.setOpaqueSort=function($e){L=$e},this.setTransparentSort=function($e){I=$e},this.getClearColor=function($e){return $e.copy(Ne.getClearColor())},this.setClearColor=function(){Ne.setClearColor.apply(Ne,arguments)},this.getClearAlpha=function(){return Ne.getClearAlpha()},this.setClearAlpha=function(){Ne.setClearAlpha.apply(Ne,arguments)},this.clear=function($e=!0,qe=!0,yt=!0){let Ze=0;$e&&(Ze|=16384),qe&&(Ze|=256),yt&&(Ze|=1024),Q.clear(Ze)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",Se,!1),e.removeEventListener("webglcontextrestored",Xe,!1),ye.dispose(),me.dispose(),ie.dispose(),de.dispose(),ce.dispose(),Be.dispose(),ge.dispose(),ze.dispose(),Fe.dispose(),Fe.removeEventListener("sessionstart",pn),Fe.removeEventListener("sessionend",sn),H&&(H.dispose(),H=null),un.stop()};function Se($e){$e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),v=!0}function Xe(){console.log("THREE.WebGLRenderer: Context Restored."),v=!1;const $e=ne.autoReset,qe=pe.enabled,yt=pe.autoUpdate,Ze=pe.needsUpdate,ot=pe.type;De(),ne.autoReset=$e,pe.enabled=qe,pe.autoUpdate=yt,pe.needsUpdate=Ze,pe.type=ot}function Oe($e){const qe=$e.target;qe.removeEventListener("dispose",Oe),Ye(qe)}function Ye($e){mt($e),ie.remove($e)}function mt($e){const qe=ie.get($e).programs;qe!==void 0&&(qe.forEach(function(yt){ze.releaseProgram(yt)}),$e.isShaderMaterial&&ze.releaseShaderCache($e))}this.renderBufferDirect=function($e,qe,yt,Ze,ot,yn){qe===null&&(qe=Z);const vt=ot.isMesh&&ot.matrixWorld.determinant()<0,Gt=an($e,qe,yt,Ze,ot);J.setMaterial(Ze,vt);let ft=yt.index;const rt=yt.attributes.position;if(ft===null){if(rt===void 0||rt.count===0)return}else if(ft.count===0)return;let Pt=1;Ze.wireframe===!0&&(ft=Me.getWireframeAttribute(yt),Pt=2),ge.setup(ot,Ze,Gt,yt,ft);let Yt,Un=ue;ft!==null&&(Yt=Ee.get(ft),Un=se,Un.setIndex(Yt));const jn=ft!==null?ft.count:rt.count,br=yt.drawRange.start*Pt,si=yt.drawRange.count*Pt,Qi=yn!==null?yn.start*Pt:0,st=yn!==null?yn.count*Pt:1/0,wt=Math.max(br,Qi),Bt=Math.min(jn,br+si,Qi+st)-1,dn=Math.max(0,Bt-wt+1);if(dn!==0){if(ot.isMesh)Ze.wireframe===!0?(J.setLineWidth(Ze.wireframeLinewidth*K()),Un.setMode(1)):Un.setMode(4);else if(ot.isLine){let tn=Ze.linewidth;tn===void 0&&(tn=1),J.setLineWidth(tn*K()),ot.isLineSegments?Un.setMode(1):ot.isLineLoop?Un.setMode(2):Un.setMode(3)}else ot.isPoints?Un.setMode(0):ot.isSprite&&Un.setMode(4);if(ot.isInstancedMesh)Un.renderInstances(wt,dn,ot.count);else if(yt.isInstancedBufferGeometry){const tn=Math.min(yt.instanceCount,yt._maxInstanceCount);Un.renderInstances(wt,dn,tn)}else Un.render(wt,dn)}},this.compile=function($e,qe){f=me.get($e),f.init(),m.push(f),$e.traverseVisible(function(yt){yt.isLight&&yt.layers.test(qe.layers)&&(f.pushLight(yt),yt.castShadow&&f.pushShadow(yt))}),f.setupLights(g.physicallyCorrectLights),$e.traverse(function(yt){const Ze=yt.material;if(Ze)if(Array.isArray(Ze))for(let ot=0;ot<Ze.length;ot++){const yn=Ze[ot];rn(yn,$e,yt)}else rn(Ze,$e,yt)}),m.pop(),f=null};let ut=null;function lt($e){ut&&ut($e)}function pn(){un.stop()}function sn(){un.start()}const un=new jer;un.setAnimationLoop(lt),typeof self<"u"&&un.setContext(self),this.setAnimationLoop=function($e){ut=$e,Fe.setAnimationLoop($e),$e===null?un.stop():un.start()},Fe.addEventListener("sessionstart",pn),Fe.addEventListener("sessionend",sn),this.render=function($e,qe){if(qe!==void 0&&qe.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(v===!0)return;$e.autoUpdate===!0&&$e.updateMatrixWorld(),qe.parent===null&&qe.updateMatrixWorld(),Fe.enabled===!0&&Fe.isPresenting===!0&&(Fe.cameraAutoUpdate===!0&&Fe.updateCamera(qe),qe=Fe.getCamera()),$e.isScene===!0&&$e.onBeforeRender(g,$e,qe,S),f=me.get($e,m.length),f.init(),m.push(f),U.multiplyMatrices(qe.projectionMatrix,qe.matrixWorldInverse),D.setFromProjectionMatrix(U),j=this.localClippingEnabled,B=le.init(this.clippingPlanes,j,qe),h=ye.get($e,p.length),h.init(),p.push(h),ur($e,qe,0,g.sortObjects),h.finish(),g.sortObjects===!0&&h.sort(L,I),B===!0&&le.beginShadows();const yt=f.state.shadowsArray;if(pe.render(yt,$e,qe),B===!0&&le.endShadows(),this.info.autoReset===!0&&this.info.reset(),Ne.render(h,$e),f.setupLights(g.physicallyCorrectLights),qe.isArrayCamera){const Ze=qe.cameras;for(let ot=0,yn=Ze.length;ot<yn;ot++){const vt=Ze[ot];dt(h,$e,vt,vt.viewport)}}else dt(h,$e,qe);S!==null&&(he.updateMultisampleRenderTarget(S),he.updateRenderTargetMipmap(S)),$e.isScene===!0&&$e.onAfterRender(g,$e,qe),ge.resetDefaultState(),x=-1,w=null,m.pop(),m.length>0?f=m[m.length-1]:f=null,p.pop(),p.length>0?h=p[p.length-1]:h=null};function ur($e,qe,yt,Ze){if($e.visible===!1)return;if($e.layers.test(qe.layers)){if($e.isGroup)yt=$e.renderOrder;else if($e.isLOD)$e.autoUpdate===!0&&$e.update(qe);else if($e.isLight)f.pushLight($e),$e.castShadow&&f.pushShadow($e);else if($e.isSprite){if(!$e.frustumCulled||D.intersectsSprite($e)){Ze&&z.setFromMatrixPosition($e.matrixWorld).applyMatrix4(U);const vt=Be.update($e),Gt=$e.material;Gt.visible&&h.push($e,vt,Gt,yt,z.z,null)}}else if(($e.isMesh||$e.isLine||$e.isPoints)&&($e.isSkinnedMesh&&$e.skeleton.frame!==ne.render.frame&&($e.skeleton.update(),$e.skeleton.frame=ne.render.frame),!$e.frustumCulled||D.intersectsObject($e))){Ze&&z.setFromMatrixPosition($e.matrixWorld).applyMatrix4(U);const vt=Be.update($e),Gt=$e.material;if(Array.isArray(Gt)){const ft=vt.groups;for(let rt=0,Pt=ft.length;rt<Pt;rt++){const Yt=ft[rt],Un=Gt[Yt.materialIndex];Un&&Un.visible&&h.push($e,vt,Un,yt,z.z,Yt)}}else Gt.visible&&h.push($e,vt,Gt,yt,z.z,null)}}const yn=$e.children;for(let vt=0,Gt=yn.length;vt<Gt;vt++)ur(yn[vt],qe,yt,Ze)}function dt($e,qe,yt,Ze){const ot=$e.opaque,yn=$e.transmissive,vt=$e.transparent;f.setupLightsView(yt),yn.length>0&&xt(ot,qe,yt),Ze&&J.viewport(_.copy(Ze)),ot.length>0&&Cn(ot,qe,yt),yn.length>0&&Cn(yn,qe,yt),vt.length>0&&Cn(vt,qe,yt),J.buffers.depth.setTest(!0),J.buffers.depth.setMask(!0),J.buffers.color.setMask(!0),J.setPolygonOffset(!1)}function xt($e,qe,yt){const Ze=te.isWebGL2;H===null&&(H=new H0(1,1,{generateMipmaps:!0,type:oe.convert(QD)!==null?QD:UP,minFilter:V9,samples:Ze&&o===!0?4:0})),g.getDrawingBufferSize($),Ze?H.setSize($.x,$.y):H.setSize(Ebe($.x),Ebe($.y));const ot=g.getRenderTarget();g.setRenderTarget(H),g.clear();const yn=g.toneMapping;g.toneMapping=_w,Cn($e,qe,yt),g.toneMapping=yn,he.updateMultisampleRenderTarget(H),he.updateRenderTargetMipmap(H),g.setRenderTarget(ot)}function Cn($e,qe,yt){const Ze=qe.isScene===!0?qe.overrideMaterial:null;for(let ot=0,yn=$e.length;ot<yn;ot++){const vt=$e[ot],Gt=vt.object,ft=vt.geometry,rt=Ze===null?vt.material:Ze,Pt=vt.group;Gt.layers.test(yt.layers)&&Kt(Gt,qe,yt,ft,rt,Pt)}}function Kt($e,qe,yt,Ze,ot,yn){$e.onBeforeRender(g,qe,yt,Ze,ot,yn),$e.modelViewMatrix.multiplyMatrices(yt.matrixWorldInverse,$e.matrixWorld),$e.normalMatrix.getNormalMatrix($e.modelViewMatrix),ot.onBeforeRender(g,qe,yt,Ze,$e,yn),ot.transparent===!0&&ot.side===g8?(ot.side=Gy,ot.needsUpdate=!0,g.renderBufferDirect(yt,qe,Ze,ot,$e,yn),ot.side=m8,ot.needsUpdate=!0,g.renderBufferDirect(yt,qe,Ze,ot,$e,yn),ot.side=g8):g.renderBufferDirect(yt,qe,Ze,ot,$e,yn),$e.onAfterRender(g,qe,yt,Ze,ot,yn)}function rn($e,qe,yt){qe.isScene!==!0&&(qe=Z);const Ze=ie.get($e),ot=f.state.lights,yn=f.state.shadowsArray,vt=ot.state.version,Gt=ze.getParameters($e,ot.state,yn,qe,yt),ft=ze.getProgramCacheKey(Gt);let rt=Ze.programs;Ze.environment=$e.isMeshStandardMaterial?qe.environment:null,Ze.fog=qe.fog,Ze.envMap=($e.isMeshStandardMaterial?ce:de).get($e.envMap||Ze.environment),rt===void 0&&($e.addEventListener("dispose",Oe),rt=new Map,Ze.programs=rt);let Pt=rt.get(ft);if(Pt!==void 0){if(Ze.currentProgram===Pt&&Ze.lightsStateVersion===vt)return On($e,Gt),Pt}else Gt.uniforms=ze.getUniforms($e),$e.onBuild(yt,Gt,g),$e.onBeforeCompile(Gt,g),Pt=ze.acquireProgram(Gt,ft),rt.set(ft,Pt),Ze.uniforms=Gt.uniforms;const Yt=Ze.uniforms;(!$e.isShaderMaterial&&!$e.isRawShaderMaterial||$e.clipping===!0)&&(Yt.clippingPlanes=le.uniform),On($e,Gt),Ze.needsLights=dr($e),Ze.lightsStateVersion=vt,Ze.needsLights&&(Yt.ambientLightColor.value=ot.state.ambient,Yt.lightProbe.value=ot.state.probe,Yt.directionalLights.value=ot.state.directional,Yt.directionalLightShadows.value=ot.state.directionalShadow,Yt.spotLights.value=ot.state.spot,Yt.spotLightShadows.value=ot.state.spotShadow,Yt.rectAreaLights.value=ot.state.rectArea,Yt.ltc_1.value=ot.state.rectAreaLTC1,Yt.ltc_2.value=ot.state.rectAreaLTC2,Yt.pointLights.value=ot.state.point,Yt.pointLightShadows.value=ot.state.pointShadow,Yt.hemisphereLights.value=ot.state.hemi,Yt.directionalShadowMap.value=ot.state.directionalShadowMap,Yt.directionalShadowMatrix.value=ot.state.directionalShadowMatrix,Yt.spotShadowMap.value=ot.state.spotShadowMap,Yt.spotShadowMatrix.value=ot.state.spotShadowMatrix,Yt.pointShadowMap.value=ot.state.pointShadowMap,Yt.pointShadowMatrix.value=ot.state.pointShadowMatrix);const Un=Pt.getUniforms(),jn=G5.seqWithValue(Un.seq,Yt);return Ze.currentProgram=Pt,Ze.uniformsList=jn,Pt}function On($e,qe){const yt=ie.get($e);yt.outputEncoding=qe.outputEncoding,yt.instancing=qe.instancing,yt.skinning=qe.skinning,yt.morphTargets=qe.morphTargets,yt.morphNormals=qe.morphNormals,yt.morphColors=qe.morphColors,yt.morphTargetsCount=qe.morphTargetsCount,yt.numClippingPlanes=qe.numClippingPlanes,yt.numIntersection=qe.numClipIntersection,yt.vertexAlphas=qe.vertexAlphas,yt.vertexTangents=qe.vertexTangents,yt.toneMapping=qe.toneMapping}function an($e,qe,yt,Ze,ot){qe.isScene!==!0&&(qe=Z),he.resetTextureUnits();const yn=qe.fog,vt=Ze.isMeshStandardMaterial?qe.environment:null,Gt=S===null?g.outputEncoding:S.isXRRenderTarget===!0?S.texture.encoding:nE,ft=(Ze.isMeshStandardMaterial?ce:de).get(Ze.envMap||vt),rt=Ze.vertexColors===!0&&!!yt.attributes.color&&yt.attributes.color.itemSize===4,Pt=!!Ze.normalMap&&!!yt.attributes.tangent,Yt=!!yt.morphAttributes.position,Un=!!yt.morphAttributes.normal,jn=!!yt.morphAttributes.color,br=Ze.toneMapped?g.toneMapping:_w,si=yt.morphAttributes.position||yt.morphAttributes.normal||yt.morphAttributes.color,Qi=si!==void 0?si.length:0,st=ie.get(Ze),wt=f.state.lights;if(B===!0&&(j===!0||$e!==w)){const Ar=$e===w&&Ze.id===x;le.setState(Ze,$e,Ar)}let Bt=!1;Ze.version===st.__version?(st.needsLights&&st.lightsStateVersion!==wt.state.version||st.outputEncoding!==Gt||ot.isInstancedMesh&&st.instancing===!1||!ot.isInstancedMesh&&st.instancing===!0||ot.isSkinnedMesh&&st.skinning===!1||!ot.isSkinnedMesh&&st.skinning===!0||st.envMap!==ft||Ze.fog&&st.fog!==yn||st.numClippingPlanes!==void 0&&(st.numClippingPlanes!==le.numPlanes||st.numIntersection!==le.numIntersection)||st.vertexAlphas!==rt||st.vertexTangents!==Pt||st.morphTargets!==Yt||st.morphNormals!==Un||st.morphColors!==jn||st.toneMapping!==br||te.isWebGL2===!0&&st.morphTargetsCount!==Qi)&&(Bt=!0):(Bt=!0,st.__version=Ze.version);let dn=st.currentProgram;Bt===!0&&(dn=rn(Ze,qe,ot));let tn=!1,vn=!1,kn=!1;const Mn=dn.getUniforms(),Nr=st.uniforms;if(J.useProgram(dn.program)&&(tn=!0,vn=!0,kn=!0),Ze.id!==x&&(x=Ze.id,vn=!0),tn||w!==$e){if(Mn.setValue(Q,"projectionMatrix",$e.projectionMatrix),te.logarithmicDepthBuffer&&Mn.setValue(Q,"logDepthBufFC",2/(Math.log($e.far+1)/Math.LN2)),w!==$e&&(w=$e,vn=!0,kn=!0),Ze.isShaderMaterial||Ze.isMeshPhongMaterial||Ze.isMeshToonMaterial||Ze.isMeshStandardMaterial||Ze.envMap){const Ar=Mn.map.cameraPosition;Ar!==void 0&&Ar.setValue(Q,z.setFromMatrixPosition($e.matrixWorld))}(Ze.isMeshPhongMaterial||Ze.isMeshToonMaterial||Ze.isMeshLambertMaterial||Ze.isMeshBasicMaterial||Ze.isMeshStandardMaterial||Ze.isShaderMaterial)&&Mn.setValue(Q,"isOrthographic",$e.isOrthographicCamera===!0),(Ze.isMeshPhongMaterial||Ze.isMeshToonMaterial||Ze.isMeshLambertMaterial||Ze.isMeshBasicMaterial||Ze.isMeshStandardMaterial||Ze.isShaderMaterial||Ze.isShadowMaterial||ot.isSkinnedMesh)&&Mn.setValue(Q,"viewMatrix",$e.matrixWorldInverse)}if(ot.isSkinnedMesh){Mn.setOptional(Q,ot,"bindMatrix"),Mn.setOptional(Q,ot,"bindMatrixInverse");const Ar=ot.skeleton;Ar&&(te.floatVertexTextures?(Ar.boneTexture===null&&Ar.computeBoneTexture(),Mn.setValue(Q,"boneTexture",Ar.boneTexture,he),Mn.setValue(Q,"boneTextureSize",Ar.boneTextureSize)):Mn.setOptional(Q,Ar,"boneMatrices"))}const na=yt.morphAttributes;return(na.position!==void 0||na.normal!==void 0||na.color!==void 0&&te.isWebGL2===!0)&&_e.update(ot,yt,Ze,dn),(vn||st.receiveShadow!==ot.receiveShadow)&&(st.receiveShadow=ot.receiveShadow,Mn.setValue(Q,"receiveShadow",ot.receiveShadow)),vn&&(Mn.setValue(Q,"toneMappingExposure",g.toneMappingExposure),st.needsLights&&on(Nr,kn),yn&&Ze.fog&&je.refreshFogUniforms(Nr,yn),je.refreshMaterialUniforms(Nr,Ze,N,P,H),G5.upload(Q,st.uniformsList,Nr,he)),Ze.isShaderMaterial&&Ze.uniformsNeedUpdate===!0&&(G5.upload(Q,st.uniformsList,Nr,he),Ze.uniformsNeedUpdate=!1),Ze.isSpriteMaterial&&Mn.setValue(Q,"center",ot.center),Mn.setValue(Q,"modelViewMatrix",ot.modelViewMatrix),Mn.setValue(Q,"normalMatrix",ot.normalMatrix),Mn.setValue(Q,"modelMatrix",ot.matrixWorld),dn}function on($e,qe){$e.ambientLightColor.needsUpdate=qe,$e.lightProbe.needsUpdate=qe,$e.directionalLights.needsUpdate=qe,$e.directionalLightShadows.needsUpdate=qe,$e.pointLights.needsUpdate=qe,$e.pointLightShadows.needsUpdate=qe,$e.spotLights.needsUpdate=qe,$e.spotLightShadows.needsUpdate=qe,$e.rectAreaLights.needsUpdate=qe,$e.hemisphereLights.needsUpdate=qe}function dr($e){return $e.isMeshLambertMaterial||$e.isMeshToonMaterial||$e.isMeshPhongMaterial||$e.isMeshStandardMaterial||$e.isShadowMaterial||$e.isShaderMaterial&&$e.lights===!0}this.getActiveCubeFace=function(){return A},this.getActiveMipmapLevel=function(){return y},this.getRenderTarget=function(){return S},this.setRenderTargetTextures=function($e,qe,yt){ie.get($e.texture).__webglTexture=qe,ie.get($e.depthTexture).__webglTexture=yt;const Ze=ie.get($e);Ze.__hasExternalTextures=!0,Ze.__hasExternalTextures&&(Ze.__autoAllocateDepthBuffer=yt===void 0,Ze.__autoAllocateDepthBuffer||X.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),Ze.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function($e,qe){const yt=ie.get($e);yt.__webglFramebuffer=qe,yt.__useDefaultFramebuffer=qe===void 0},this.setRenderTarget=function($e,qe=0,yt=0){S=$e,A=qe,y=yt;let Ze=!0;if($e){const ft=ie.get($e);ft.__useDefaultFramebuffer!==void 0?(J.bindFramebuffer(36160,null),Ze=!1):ft.__webglFramebuffer===void 0?he.setupRenderTarget($e):ft.__hasExternalTextures&&he.rebindTextures($e,ie.get($e.texture).__webglTexture,ie.get($e.depthTexture).__webglTexture)}let ot=null,yn=!1,vt=!1;if($e){const ft=$e.texture;(ft.isData3DTexture||ft.isDataArrayTexture)&&(vt=!0);const rt=ie.get($e).__webglFramebuffer;$e.isWebGLCubeRenderTarget?(ot=rt[qe],yn=!0):te.isWebGL2&&$e.samples>0&&he.useMultisampledRTT($e)===!1?ot=ie.get($e).__webglMultisampledFramebuffer:ot=rt,_.copy($e.viewport),C.copy($e.scissor),R=$e.scissorTest}else _.copy(b).multiplyScalar(N).floor(),C.copy(T).multiplyScalar(N).floor(),R=M;if(J.bindFramebuffer(36160,ot)&&te.drawBuffers&&Ze&&J.drawBuffers($e,ot),J.viewport(_),J.scissor(C),J.setScissorTest(R),yn){const ft=ie.get($e.texture);Q.framebufferTexture2D(36160,36064,34069+qe,ft.__webglTexture,yt)}else if(vt){const ft=ie.get($e.texture),rt=qe||0;Q.framebufferTextureLayer(36160,36064,ft.__webglTexture,yt||0,rt)}x=-1},this.readRenderTargetPixels=function($e,qe,yt,Ze,ot,yn,vt){if(!($e&&$e.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Gt=ie.get($e).__webglFramebuffer;if($e.isWebGLCubeRenderTarget&&vt!==void 0&&(Gt=Gt[vt]),Gt){J.bindFramebuffer(36160,Gt);try{const ft=$e.texture,rt=ft.format,Pt=ft.type;if(rt!==Ly&&oe.convert(rt)!==Q.getParameter(35739)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Yt=Pt===QD&&(X.has("EXT_color_buffer_half_float")||te.isWebGL2&&X.has("EXT_color_buffer_float"));if(Pt!==UP&&oe.convert(Pt)!==Q.getParameter(35738)&&!(Pt===qR&&(te.isWebGL2||X.has("OES_texture_float")||X.has("WEBGL_color_buffer_float")))&&!Yt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}qe>=0&&qe<=$e.width-Ze&&yt>=0&&yt<=$e.height-ot&&Q.readPixels(qe,yt,Ze,ot,oe.convert(rt),oe.convert(Pt),yn)}finally{const ft=S!==null?ie.get(S).__webglFramebuffer:null;J.bindFramebuffer(36160,ft)}}},this.copyFramebufferToTexture=function($e,qe,yt=0){if(qe.isFramebufferTexture!==!0){console.error("THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.");return}const Ze=Math.pow(2,-yt),ot=Math.floor(qe.image.width*Ze),yn=Math.floor(qe.image.height*Ze);he.setTexture2D(qe,0),Q.copyTexSubImage2D(3553,yt,0,0,$e.x,$e.y,ot,yn),J.unbindTexture()},this.copyTextureToTexture=function($e,qe,yt,Ze=0){const ot=qe.image.width,yn=qe.image.height,vt=oe.convert(yt.format),Gt=oe.convert(yt.type);he.setTexture2D(yt,0),Q.pixelStorei(37440,yt.flipY),Q.pixelStorei(37441,yt.premultiplyAlpha),Q.pixelStorei(3317,yt.unpackAlignment),qe.isDataTexture?Q.texSubImage2D(3553,Ze,$e.x,$e.y,ot,yn,vt,Gt,qe.image.data):qe.isCompressedTexture?Q.compressedTexSubImage2D(3553,Ze,$e.x,$e.y,qe.mipmaps[0].width,qe.mipmaps[0].height,vt,qe.mipmaps[0].data):Q.texSubImage2D(3553,Ze,$e.x,$e.y,vt,Gt,qe.image),Ze===0&&yt.generateMipmaps&&Q.generateMipmap(3553),J.unbindTexture()},this.copyTextureToTexture3D=function($e,qe,yt,Ze,ot=0){if(g.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const yn=$e.max.x-$e.min.x+1,vt=$e.max.y-$e.min.y+1,Gt=$e.max.z-$e.min.z+1,ft=oe.convert(Ze.format),rt=oe.convert(Ze.type);let Pt;if(Ze.isData3DTexture)he.setTexture3D(Ze,0),Pt=32879;else if(Ze.isDataArrayTexture)he.setTexture2DArray(Ze,0),Pt=35866;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}Q.pixelStorei(37440,Ze.flipY),Q.pixelStorei(37441,Ze.premultiplyAlpha),Q.pixelStorei(3317,Ze.unpackAlignment);const Yt=Q.getParameter(3314),Un=Q.getParameter(32878),jn=Q.getParameter(3316),br=Q.getParameter(3315),si=Q.getParameter(32877),Qi=yt.isCompressedTexture?yt.mipmaps[0]:yt.image;Q.pixelStorei(3314,Qi.width),Q.pixelStorei(32878,Qi.height),Q.pixelStorei(3316,$e.min.x),Q.pixelStorei(3315,$e.min.y),Q.pixelStorei(32877,$e.min.z),yt.isDataTexture||yt.isData3DTexture?Q.texSubImage3D(Pt,ot,qe.x,qe.y,qe.z,yn,vt,Gt,ft,rt,Qi.data):yt.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),Q.compressedTexSubImage3D(Pt,ot,qe.x,qe.y,qe.z,yn,vt,Gt,ft,Qi.data)):Q.texSubImage3D(Pt,ot,qe.x,qe.y,qe.z,yn,vt,Gt,ft,rt,Qi),Q.pixelStorei(3314,Yt),Q.pixelStorei(32878,Un),Q.pixelStorei(3316,jn),Q.pixelStorei(3315,br),Q.pixelStorei(32877,si),ot===0&&Ze.generateMipmaps&&Q.generateMipmap(Pt),J.unbindTexture()},this.initTexture=function($e){he.setTexture2D($e,0),J.unbindTexture()},this.resetState=function(){A=0,y=0,S=null,J.reset(),ge.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}wc.prototype.isWebGLRenderer=!0;class Yer extends wc{}Yer.prototype.isWebGL1Renderer=!0;class cle{constructor(e,n=25e-5){this.name="",this.color=new ci(e),this.density=n}clone(){return new cle(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}cle.prototype.isFogExp2=!0;class ule{constructor(e,n=1,r=1e3){this.name="",this.color=new ci(e),this.near=n,this.far=r}clone(){return new ule(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}ule.prototype.isFog=!0;class dle extends zs{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),n}}dle.prototype.isScene=!0;class W9{constructor(e,n){this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=Mz,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Vy()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,n,r){e*=this.stride,r*=n.stride;for(let a=0,o=this.stride;a<o;a++)this.array[e+a]=n.array[r+a];return this}set(e,n=0){return this.array.set(e,n),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Vy()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const n=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),r=new this.constructor(n,this.stride);return r.setUsage(this.usage),r}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Vy()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}W9.prototype.isInterleavedBuffer=!0;const l0=new et;class zP{constructor(e,n,r,a=!1){this.name="",this.data=e,this.itemSize=n,this.offset=r,this.normalized=a===!0}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let n=0,r=this.data.count;n<r;n++)l0.fromBufferAttribute(this,n),l0.applyMatrix4(e),this.setXYZ(n,l0.x,l0.y,l0.z);return this}applyNormalMatrix(e){for(let n=0,r=this.count;n<r;n++)l0.fromBufferAttribute(this,n),l0.applyNormalMatrix(e),this.setXYZ(n,l0.x,l0.y,l0.z);return this}transformDirection(e){for(let n=0,r=this.count;n<r;n++)l0.fromBufferAttribute(this,n),l0.transformDirection(e),this.setXYZ(n,l0.x,l0.y,l0.z);return this}setX(e,n){return this.data.array[e*this.data.stride+this.offset]=n,this}setY(e,n){return this.data.array[e*this.data.stride+this.offset+1]=n,this}setZ(e,n){return this.data.array[e*this.data.stride+this.offset+2]=n,this}setW(e,n){return this.data.array[e*this.data.stride+this.offset+3]=n,this}getX(e){return this.data.array[e*this.data.stride+this.offset]}getY(e){return this.data.array[e*this.data.stride+this.offset+1]}getZ(e){return this.data.array[e*this.data.stride+this.offset+2]}getW(e){return this.data.array[e*this.data.stride+this.offset+3]}setXY(e,n,r){return e=e*this.data.stride+this.offset,this.data.array[e+0]=n,this.data.array[e+1]=r,this}setXYZ(e,n,r,a){return e=e*this.data.stride+this.offset,this.data.array[e+0]=n,this.data.array[e+1]=r,this.data.array[e+2]=a,this}setXYZW(e,n,r,a,o){return e=e*this.data.stride+this.offset,this.data.array[e+0]=n,this.data.array[e+1]=r,this.data.array[e+2]=a,this.data.array[e+3]=o,this}clone(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const n=[];for(let r=0;r<this.count;r++){const a=r*this.data.stride+this.offset;for(let o=0;o<this.itemSize;o++)n.push(this.data.array[a+o])}return new bl(new this.array.constructor(n),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new zP(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const n=[];for(let r=0;r<this.count;r++){const a=r*this.data.stride+this.offset;for(let o=0;o<this.itemSize;o++)n.push(this.data.array[a+o])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:n,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}zP.prototype.isInterleavedBufferAttribute=!0;class lke extends cf{constructor(e){super(),this.type="SpriteMaterial",this.color=new ci(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this}}lke.prototype.isSpriteMaterial=!0;let V7;const UJ=new et,K7=new et,W7=new et,Q7=new Qn,zJ=new Qn,Jer=new da,ipe=new et,GJ=new et,ape=new et,THt=new Qn,V7e=new Qn,CHt=new Qn;class cke extends zs{constructor(e){if(super(),this.type="Sprite",V7===void 0){V7=new Ya;const n=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),r=new W9(n,5);V7.setIndex([0,1,2,0,2,3]),V7.setAttribute("position",new zP(r,3,0,!1)),V7.setAttribute("uv",new zP(r,2,3,!1))}this.geometry=V7,this.material=e!==void 0?e:new lke,this.center=new Qn(.5,.5)}raycast(e,n){e.camera===null&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),K7.setFromMatrixScale(this.matrixWorld),Jer.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),W7.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&this.material.sizeAttenuation===!1&&K7.multiplyScalar(-W7.z);const r=this.material.rotation;let a,o;r!==0&&(o=Math.cos(r),a=Math.sin(r));const s=this.center;ope(ipe.set(-.5,-.5,0),W7,s,K7,a,o),ope(GJ.set(.5,-.5,0),W7,s,K7,a,o),ope(ape.set(.5,.5,0),W7,s,K7,a,o),THt.set(0,0),V7e.set(1,0),CHt.set(1,1);let l=e.ray.intersectTriangle(ipe,GJ,ape,!1,UJ);if(l===null&&(ope(GJ.set(-.5,.5,0),W7,s,K7,a,o),V7e.set(0,1),l=e.ray.intersectTriangle(ipe,ape,GJ,!1,UJ),l===null))return;const c=e.ray.origin.distanceTo(UJ);c<e.near||c>e.far||n.push({distance:c,point:UJ.clone(),uv:Gh.getUV(UJ,ipe,GJ,ape,THt,V7e,CHt,new Qn),face:null,object:this})}copy(e){return super.copy(e),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}cke.prototype.isSprite=!0;function ope(t,e,n,r,a,o){Q7.subVectors(t,n).addScalar(.5).multiply(r),a!==void 0?(zJ.x=o*Q7.x-a*Q7.y,zJ.y=a*Q7.x+o*Q7.y):zJ.copy(Q7),t.copy(e),t.x+=zJ.x,t.y+=zJ.y,t.applyMatrix4(Jer)}const spe=new et,kHt=new et;class Zer extends zs{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const n=e.levels;for(let r=0,a=n.length;r<a;r++){const o=n[r];this.addLevel(o.object.clone(),o.distance)}return this.autoUpdate=e.autoUpdate,this}addLevel(e,n=0){n=Math.abs(n);const r=this.levels;let a;for(a=0;a<r.length&&!(n<r[a].distance);a++);return r.splice(a,0,{distance:n,object:e}),this.add(e),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(e){const n=this.levels;if(n.length>0){let r,a;for(r=1,a=n.length;r<a&&!(e<n[r].distance);r++);return n[r-1].object}return null}raycast(e,n){if(this.levels.length>0){spe.setFromMatrixPosition(this.matrixWorld);const a=e.ray.origin.distanceTo(spe);this.getObjectForDistance(a).raycast(e,n)}}update(e){const n=this.levels;if(n.length>1){spe.setFromMatrixPosition(e.matrixWorld),kHt.setFromMatrixPosition(this.matrixWorld);const r=spe.distanceTo(kHt)/e.zoom;n[0].object.visible=!0;let a,o;for(a=1,o=n.length;a<o&&r>=n[a].distance;a++)n[a-1].object.visible=!1,n[a].object.visible=!0;for(this._currentLevel=a-1;a<o;a++)n[a].object.visible=!1}}toJSON(e){const n=super.toJSON(e);this.autoUpdate===!1&&(n.object.autoUpdate=!1),n.object.levels=[];const r=this.levels;for(let a=0,o=r.length;a<o;a++){const s=r[a];n.object.levels.push({object:s.object.uuid,distance:s.distance})}return n}}const RHt=new et,MHt=new Ac,NHt=new Ac,nls=new et,IHt=new da;class uke extends Bf{constructor(e,n){super(e,n),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new da,this.bindMatrixInverse=new da}copy(e){return super.copy(e),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}bind(e,n){this.skeleton=e,n===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),n=this.matrixWorld),this.bindMatrix.copy(n),this.bindMatrixInverse.copy(n).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new Ac,n=this.geometry.attributes.skinWeight;for(let r=0,a=n.count;r<a;r++){e.fromBufferAttribute(n,r);const o=1/e.manhattanLength();o!==1/0?e.multiplyScalar(o):e.set(1,0,0,0),n.setXYZW(r,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode==="attached"?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode==="detached"?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}boneTransform(e,n){const r=this.skeleton,a=this.geometry;MHt.fromBufferAttribute(a.attributes.skinIndex,e),NHt.fromBufferAttribute(a.attributes.skinWeight,e),RHt.copy(n).applyMatrix4(this.bindMatrix),n.set(0,0,0);for(let o=0;o<4;o++){const s=NHt.getComponent(o);if(s!==0){const l=MHt.getComponent(o);IHt.multiplyMatrices(r.bones[l].matrixWorld,r.boneInverses[l]),n.addScaledVector(nls.copy(RHt).applyMatrix4(IHt),s)}}return n.applyMatrix4(this.bindMatrixInverse)}}uke.prototype.isSkinnedMesh=!0;class dke extends zs{constructor(){super(),this.type="Bone"}}dke.prototype.isBone=!0;class XD extends Ah{constructor(e=null,n=1,r=1,a,o,s,l,c,u=Pf,d=Pf,h,f){super(null,s,l,c,u,d,a,o,h,f),this.image={data:e,width:n,height:r},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}XD.prototype.isDataTexture=!0;const PHt=new da,rls=new da;class hke{constructor(e=[],n=[]){this.uuid=Vy(),this.bones=e.slice(0),this.boneInverses=n,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}init(){const e=this.bones,n=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),n.length===0)this.calculateInverses();else if(e.length!==n.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let r=0,a=this.bones.length;r<a;r++)this.boneInverses.push(new da)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,n=this.bones.length;e<n;e++){const r=new da;this.bones[e]&&r.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(r)}}pose(){for(let e=0,n=this.bones.length;e<n;e++){const r=this.bones[e];r&&r.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,n=this.bones.length;e<n;e++){const r=this.bones[e];r&&(r.parent&&r.parent.isBone?(r.matrix.copy(r.parent.matrixWorld).invert(),r.matrix.multiply(r.matrixWorld)):r.matrix.copy(r.matrixWorld),r.matrix.decompose(r.position,r.quaternion,r.scale))}}update(){const e=this.bones,n=this.boneInverses,r=this.boneMatrices,a=this.boneTexture;for(let o=0,s=e.length;o<s;o++){const l=e[o]?e[o].matrixWorld:rls;PHt.multiplyMatrices(l,n[o]),PHt.toArray(r,o*16)}a!==null&&(a.needsUpdate=!0)}clone(){return new hke(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Ter(e),e=Math.max(e,4);const n=new Float32Array(e*e*4);n.set(this.boneMatrices);const r=new XD(n,e,e,Ly,qR);return r.needsUpdate=!0,this.boneMatrices=n,this.boneTexture=r,this.boneTextureSize=e,this}getBoneByName(e){for(let n=0,r=this.bones.length;n<r;n++){const a=this.bones[n];if(a.name===e)return a}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,n){this.uuid=e.uuid;for(let r=0,a=e.bones.length;r<a;r++){const o=e.bones[r];let s=n[o];s===void 0&&(console.warn("THREE.Skeleton: No bone found with UUID:",o),s=new dke),this.bones.push(s),this.boneInverses.push(new da().fromArray(e.boneInverses[r]))}return this.init(),this}toJSON(){const e={metadata:{version:4.5,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const n=this.bones,r=this.boneInverses;for(let a=0,o=n.length;a<o;a++){const s=n[a];e.bones.push(s.uuid);const l=r[a];e.boneInverses.push(l.toArray())}return e}}class b8 extends bl{constructor(e,n,r,a=1){typeof r=="number"&&(a=r,r=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),super(e,n,r),this.meshPerAttribute=a}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}b8.prototype.isInstancedBufferAttribute=!0;const OHt=new da,LHt=new da,lpe=[],VJ=new Bf;class Vdt extends Bf{constructor(e,n,r){super(e,n),this.instanceMatrix=new b8(new Float32Array(r*16),16),this.instanceColor=null,this.count=r,this.frustumCulled=!1}copy(e){return super.copy(e),this.instanceMatrix.copy(e.instanceMatrix),e.instanceColor!==null&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,this}getColorAt(e,n){n.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,n){n.fromArray(this.instanceMatrix.array,e*16)}raycast(e,n){const r=this.matrixWorld,a=this.count;if(VJ.geometry=this.geometry,VJ.material=this.material,VJ.material!==void 0)for(let o=0;o<a;o++){this.getMatrixAt(o,OHt),LHt.multiplyMatrices(r,OHt),VJ.matrixWorld=LHt,VJ.raycast(e,lpe);for(let s=0,l=lpe.length;s<l;s++){const c=lpe[s];c.instanceId=o,c.object=this,n.push(c)}lpe.length=0}}setColorAt(e,n){this.instanceColor===null&&(this.instanceColor=new b8(new Float32Array(this.instanceMatrix.count*3),3)),n.toArray(this.instanceColor.array,e*3)}setMatrixAt(e,n){n.toArray(this.instanceMatrix.array,e*16)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}Vdt.prototype.isInstancedMesh=!0;class Sm extends cf{constructor(e){super(),this.type="LineBasicMaterial",this.color=new ci(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this}}Sm.prototype.isLineBasicMaterial=!0;const BHt=new et,DHt=new et,$Ht=new da,K7e=new MN,cpe=new PO;class VM extends zs{constructor(e=new Ya,n=new Sm){super(),this.type="Line",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e){return super.copy(e),this.material=e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.isBufferGeometry)if(e.index===null){const n=e.attributes.position,r=[0];for(let a=1,o=n.count;a<o;a++)BHt.fromBufferAttribute(n,a-1),DHt.fromBufferAttribute(n,a),r[a]=r[a-1],r[a]+=BHt.distanceTo(DHt);e.setAttribute("lineDistance",new oa(r,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else e.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}raycast(e,n){const r=this.geometry,a=this.matrixWorld,o=e.params.Line.threshold,s=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),cpe.copy(r.boundingSphere),cpe.applyMatrix4(a),cpe.radius+=o,e.ray.intersectsSphere(cpe)===!1)return;$Ht.copy(a).invert(),K7e.copy(e.ray).applyMatrix4($Ht);const l=o/((this.scale.x+this.scale.y+this.scale.z)/3),c=l*l,u=new et,d=new et,h=new et,f=new et,p=this.isLineSegments?2:1;if(r.isBufferGeometry){const m=r.index,v=r.attributes.position;if(m!==null){const A=Math.max(0,s.start),y=Math.min(m.count,s.start+s.count);for(let S=A,x=y-1;S<x;S+=p){const w=m.getX(S),_=m.getX(S+1);if(u.fromBufferAttribute(v,w),d.fromBufferAttribute(v,_),K7e.distanceSqToSegment(u,d,f,h)>c)continue;f.applyMatrix4(this.matrixWorld);const R=e.ray.origin.distanceTo(f);R<e.near||R>e.far||n.push({distance:R,point:h.clone().applyMatrix4(this.matrixWorld),index:S,face:null,faceIndex:null,object:this})}}else{const A=Math.max(0,s.start),y=Math.min(v.count,s.start+s.count);for(let S=A,x=y-1;S<x;S+=p){if(u.fromBufferAttribute(v,S),d.fromBufferAttribute(v,S+1),K7e.distanceSqToSegment(u,d,f,h)>c)continue;f.applyMatrix4(this.matrixWorld);const _=e.ray.origin.distanceTo(f);_<e.near||_>e.far||n.push({distance:_,point:h.clone().applyMatrix4(this.matrixWorld),index:S,face:null,faceIndex:null,object:this})}}}else r.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const n=e.morphAttributes,r=Object.keys(n);if(r.length>0){const a=n[r[0]];if(a!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=a.length;o<s;o++){const l=a[o].name||String(o);this.morphTargetInfluences.push(0),this.morphTargetDictionary[l]=o}}}}else{const n=e.morphTargets;n!==void 0&&n.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}VM.prototype.isLine=!0;const FHt=new et,jHt=new et;class u1 extends VM{constructor(e,n){super(e,n),this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.isBufferGeometry)if(e.index===null){const n=e.attributes.position,r=[];for(let a=0,o=n.count;a<o;a+=2)FHt.fromBufferAttribute(n,a),jHt.fromBufferAttribute(n,a+1),r[a]=a===0?0:r[a-1],r[a+1]=r[a]+FHt.distanceTo(jHt);e.setAttribute("lineDistance",new oa(r,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else e.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}}u1.prototype.isLineSegments=!0;class Kdt extends VM{constructor(e,n){super(e,n),this.type="LineLoop"}}Kdt.prototype.isLineLoop=!0;class Q9 extends cf{constructor(e){super(),this.type="PointsMaterial",this.color=new ci(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this}}Q9.prototype.isPointsMaterial=!0;const HHt=new da,MYe=new MN,upe=new PO,dpe=new et;class hle extends zs{constructor(e=new Ya,n=new Q9){super(),this.type="Points",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e){return super.copy(e),this.material=e.material,this.geometry=e.geometry,this}raycast(e,n){const r=this.geometry,a=this.matrixWorld,o=e.params.Points.threshold,s=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),upe.copy(r.boundingSphere),upe.applyMatrix4(a),upe.radius+=o,e.ray.intersectsSphere(upe)===!1)return;HHt.copy(a).invert(),MYe.copy(e.ray).applyMatrix4(HHt);const l=o/((this.scale.x+this.scale.y+this.scale.z)/3),c=l*l;if(r.isBufferGeometry){const u=r.index,h=r.attributes.position;if(u!==null){const f=Math.max(0,s.start),p=Math.min(u.count,s.start+s.count);for(let m=f,g=p;m<g;m++){const v=u.getX(m);dpe.fromBufferAttribute(h,v),UHt(dpe,v,c,a,e,n,this)}}else{const f=Math.max(0,s.start),p=Math.min(h.count,s.start+s.count);for(let m=f,g=p;m<g;m++)dpe.fromBufferAttribute(h,m),UHt(dpe,m,c,a,e,n,this)}}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const n=e.morphAttributes,r=Object.keys(n);if(r.length>0){const a=n[r[0]];if(a!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=a.length;o<s;o++){const l=a[o].name||String(o);this.morphTargetInfluences.push(0),this.morphTargetDictionary[l]=o}}}}else{const n=e.morphTargets;n!==void 0&&n.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}hle.prototype.isPoints=!0;function UHt(t,e,n,r,a,o,s){const l=MYe.distanceSqToPoint(t);if(l<n){const c=new et;MYe.closestPointToPoint(t,c),c.applyMatrix4(r);const u=a.ray.origin.distanceTo(c);if(u<a.near||u>a.far)return;o.push({distance:u,distanceToRay:Math.sqrt(l),point:c,index:e,face:null,object:s})}}class Xer extends Ah{constructor(e,n,r,a,o,s,l,c,u){super(e,n,r,a,o,s,l,c,u),this.minFilter=s!==void 0?s:Hh,this.magFilter=o!==void 0?o:Hh,this.generateMipmaps=!1;const d=this;function h(){d.needsUpdate=!0,e.requestVideoFrameCallback(h)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(h)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}Xer.prototype.isVideoTexture=!0;class etr extends Ah{constructor(e,n,r){super({width:e,height:n}),this.format=r,this.magFilter=Pf,this.minFilter=Pf,this.generateMipmaps=!1,this.needsUpdate=!0}}etr.prototype.isFramebufferTexture=!0;class Wdt extends Ah{constructor(e,n,r,a,o,s,l,c,u,d,h,f){super(null,s,l,c,u,d,a,o,h,f),this.image={width:n,height:r},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}Wdt.prototype.isCompressedTexture=!0;class ttr extends Ah{constructor(e,n,r,a,o,s,l,c,u){super(e,n,r,a,o,s,l,c,u),this.needsUpdate=!0}}ttr.prototype.isCanvasTexture=!0;class Jy{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,n){const r=this.getUtoTmapping(e);return this.getPoint(r,n)}getPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPoint(r/e));return n}getSpacedPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPointAt(r/e));return n}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const n=[];let r,a=this.getPoint(0),o=0;n.push(0);for(let s=1;s<=e;s++)r=this.getPoint(s/e),o+=r.distanceTo(a),n.push(o),a=r;return this.cacheArcLengths=n,n}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,n){const r=this.getLengths();let a=0;const o=r.length;let s;n?s=n:s=e*r[o-1];let l=0,c=o-1,u;for(;l<=c;)if(a=Math.floor(l+(c-l)/2),u=r[a]-s,u<0)l=a+1;else if(u>0)c=a-1;else{c=a;break}if(a=c,r[a]===s)return a/(o-1);const d=r[a],f=r[a+1]-d,p=(s-d)/f;return(a+p)/(o-1)}getTangent(e,n){let a=e-1e-4,o=e+1e-4;a<0&&(a=0),o>1&&(o=1);const s=this.getPoint(a),l=this.getPoint(o),c=n||(s.isVector2?new Qn:new et);return c.copy(l).sub(s).normalize(),c}getTangentAt(e,n){const r=this.getUtoTmapping(e);return this.getTangent(r,n)}computeFrenetFrames(e,n){const r=new et,a=[],o=[],s=[],l=new et,c=new da;for(let p=0;p<=e;p++){const m=p/e;a[p]=this.getTangentAt(m,new et)}o[0]=new et,s[0]=new et;let u=Number.MAX_VALUE;const d=Math.abs(a[0].x),h=Math.abs(a[0].y),f=Math.abs(a[0].z);d<=u&&(u=d,r.set(1,0,0)),h<=u&&(u=h,r.set(0,1,0)),f<=u&&r.set(0,0,1),l.crossVectors(a[0],r).normalize(),o[0].crossVectors(a[0],l),s[0].crossVectors(a[0],o[0]);for(let p=1;p<=e;p++){if(o[p]=o[p-1].clone(),s[p]=s[p-1].clone(),l.crossVectors(a[p-1],a[p]),l.length()>Number.EPSILON){l.normalize();const m=Math.acos(Uh(a[p-1].dot(a[p]),-1,1));o[p].applyMatrix4(c.makeRotationAxis(l,m))}s[p].crossVectors(a[p],o[p])}if(n===!0){let p=Math.acos(Uh(o[0].dot(o[e]),-1,1));p/=e,a[0].dot(l.crossVectors(o[0],o[e]))>0&&(p=-p);for(let m=1;m<=e;m++)o[m].applyMatrix4(c.makeRotationAxis(a[m],p*m)),s[m].crossVectors(a[m],o[m])}return{tangents:a,normals:o,binormals:s}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class fle extends Jy{constructor(e=0,n=0,r=1,a=1,o=0,s=Math.PI*2,l=!1,c=0){super(),this.type="EllipseCurve",this.aX=e,this.aY=n,this.xRadius=r,this.yRadius=a,this.aStartAngle=o,this.aEndAngle=s,this.aClockwise=l,this.aRotation=c}getPoint(e,n){const r=n||new Qn,a=Math.PI*2;let o=this.aEndAngle-this.aStartAngle;const s=Math.abs(o)<Number.EPSILON;for(;o<0;)o+=a;for(;o>a;)o-=a;o<Number.EPSILON&&(s?o=0:o=a),this.aClockwise===!0&&!s&&(o===a?o=-a:o=o-a);const l=this.aStartAngle+e*o;let c=this.aX+this.xRadius*Math.cos(l),u=this.aY+this.yRadius*Math.sin(l);if(this.aRotation!==0){const d=Math.cos(this.aRotation),h=Math.sin(this.aRotation),f=c-this.aX,p=u-this.aY;c=f*d-p*h+this.aX,u=f*h+p*d+this.aY}return r.set(c,u)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){const e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}fle.prototype.isEllipseCurve=!0;class Qdt extends fle{constructor(e,n,r,a,o,s){super(e,n,r,r,a,o,s),this.type="ArcCurve"}}Qdt.prototype.isArcCurve=!0;function qdt(){let t=0,e=0,n=0,r=0;function a(o,s,l,c){t=o,e=l,n=-3*o+3*s-2*l-c,r=2*o-2*s+l+c}return{initCatmullRom:function(o,s,l,c,u){a(s,l,u*(l-o),u*(c-s))},initNonuniformCatmullRom:function(o,s,l,c,u,d,h){let f=(s-o)/u-(l-o)/(u+d)+(l-s)/d,p=(l-s)/d-(c-s)/(d+h)+(c-l)/h;f*=d,p*=d,a(s,l,f,p)},calc:function(o){const s=o*o,l=s*o;return t+e*o+n*s+r*l}}}const hpe=new et,W7e=new qdt,Q7e=new qdt,q7e=new qdt;class Ydt extends Jy{constructor(e=[],n=!1,r="centripetal",a=.5){super(),this.type="CatmullRomCurve3",this.points=e,this.closed=n,this.curveType=r,this.tension=a}getPoint(e,n=new et){const r=n,a=this.points,o=a.length,s=(o-(this.closed?0:1))*e;let l=Math.floor(s),c=s-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/o)+1)*o:c===0&&l===o-1&&(l=o-2,c=1);let u,d;this.closed||l>0?u=a[(l-1)%o]:(hpe.subVectors(a[0],a[1]).add(a[0]),u=hpe);const h=a[l%o],f=a[(l+1)%o];if(this.closed||l+2<o?d=a[(l+2)%o]:(hpe.subVectors(a[o-1],a[o-2]).add(a[o-1]),d=hpe),this.curveType==="centripetal"||this.curveType==="chordal"){const p=this.curveType==="chordal"?.5:.25;let m=Math.pow(u.distanceToSquared(h),p),g=Math.pow(h.distanceToSquared(f),p),v=Math.pow(f.distanceToSquared(d),p);g<1e-4&&(g=1),m<1e-4&&(m=g),v<1e-4&&(v=g),W7e.initNonuniformCatmullRom(u.x,h.x,f.x,d.x,m,g,v),Q7e.initNonuniformCatmullRom(u.y,h.y,f.y,d.y,m,g,v),q7e.initNonuniformCatmullRom(u.z,h.z,f.z,d.z,m,g,v)}else this.curveType==="catmullrom"&&(W7e.initCatmullRom(u.x,h.x,f.x,d.x,this.tension),Q7e.initCatmullRom(u.y,h.y,f.y,d.y,this.tension),q7e.initCatmullRom(u.z,h.z,f.z,d.z,this.tension));return r.set(W7e.calc(c),Q7e.calc(c),q7e.calc(c)),r}copy(e){super.copy(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const a=e.points[n];this.points.push(a.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let n=0,r=this.points.length;n<r;n++){const a=this.points[n];e.points.push(a.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const a=e.points[n];this.points.push(new et().fromArray(a))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}Ydt.prototype.isCatmullRomCurve3=!0;function zHt(t,e,n,r,a){const o=(r-e)*.5,s=(a-n)*.5,l=t*t,c=t*l;return(2*n-2*r+o+s)*c+(-3*n+3*r-2*o-s)*l+o*t+n}function ils(t,e){const n=1-t;return n*n*e}function als(t,e){return 2*(1-t)*t*e}function ols(t,e){return t*t*e}function Qee(t,e,n,r){return ils(t,e)+als(t,n)+ols(t,r)}function sls(t,e){const n=1-t;return n*n*n*e}function lls(t,e){const n=1-t;return 3*n*n*t*e}function cls(t,e){return 3*(1-t)*t*t*e}function uls(t,e){return t*t*t*e}function qee(t,e,n,r,a){return sls(t,e)+lls(t,n)+cls(t,r)+uls(t,a)}class fke extends Jy{constructor(e=new Qn,n=new Qn,r=new Qn,a=new Qn){super(),this.type="CubicBezierCurve",this.v0=e,this.v1=n,this.v2=r,this.v3=a}getPoint(e,n=new Qn){const r=n,a=this.v0,o=this.v1,s=this.v2,l=this.v3;return r.set(qee(e,a.x,o.x,s.x,l.x),qee(e,a.y,o.y,s.y,l.y)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}fke.prototype.isCubicBezierCurve=!0;class Jdt extends Jy{constructor(e=new et,n=new et,r=new et,a=new et){super(),this.type="CubicBezierCurve3",this.v0=e,this.v1=n,this.v2=r,this.v3=a}getPoint(e,n=new et){const r=n,a=this.v0,o=this.v1,s=this.v2,l=this.v3;return r.set(qee(e,a.x,o.x,s.x,l.x),qee(e,a.y,o.y,s.y,l.y),qee(e,a.z,o.z,s.z,l.z)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}Jdt.prototype.isCubicBezierCurve3=!0;class ple extends Jy{constructor(e=new Qn,n=new Qn){super(),this.type="LineCurve",this.v1=e,this.v2=n}getPoint(e,n=new Qn){const r=n;return e===1?r.copy(this.v2):(r.copy(this.v2).sub(this.v1),r.multiplyScalar(e).add(this.v1)),r}getPointAt(e,n){return this.getPoint(e,n)}getTangent(e,n){const r=n||new Qn;return r.copy(this.v2).sub(this.v1).normalize(),r}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}ple.prototype.isLineCurve=!0;class ntr extends Jy{constructor(e=new et,n=new et){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=e,this.v2=n}getPoint(e,n=new et){const r=n;return e===1?r.copy(this.v2):(r.copy(this.v2).sub(this.v1),r.multiplyScalar(e).add(this.v1)),r}getPointAt(e,n){return this.getPoint(e,n)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class pke extends Jy{constructor(e=new Qn,n=new Qn,r=new Qn){super(),this.type="QuadraticBezierCurve",this.v0=e,this.v1=n,this.v2=r}getPoint(e,n=new Qn){const r=n,a=this.v0,o=this.v1,s=this.v2;return r.set(Qee(e,a.x,o.x,s.x),Qee(e,a.y,o.y,s.y)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}pke.prototype.isQuadraticBezierCurve=!0;class mke extends Jy{constructor(e=new et,n=new et,r=new et){super(),this.type="QuadraticBezierCurve3",this.v0=e,this.v1=n,this.v2=r}getPoint(e,n=new et){const r=n,a=this.v0,o=this.v1,s=this.v2;return r.set(Qee(e,a.x,o.x,s.x),Qee(e,a.y,o.y,s.y),Qee(e,a.z,o.z,s.z)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}mke.prototype.isQuadraticBezierCurve3=!0;class gke extends Jy{constructor(e=[]){super(),this.type="SplineCurve",this.points=e}getPoint(e,n=new Qn){const r=n,a=this.points,o=(a.length-1)*e,s=Math.floor(o),l=o-s,c=a[s===0?s:s-1],u=a[s],d=a[s>a.length-2?a.length-1:s+1],h=a[s>a.length-3?a.length-1:s+2];return r.set(zHt(l,c.x,u.x,d.x,h.x),zHt(l,c.y,u.y,d.y,h.y)),r}copy(e){super.copy(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const a=e.points[n];this.points.push(a.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let n=0,r=this.points.length;n<r;n++){const a=this.points[n];e.points.push(a.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const a=e.points[n];this.points.push(new Qn().fromArray(a))}return this}}gke.prototype.isSplineCurve=!0;var Zdt=Object.freeze({__proto__:null,ArcCurve:Qdt,CatmullRomCurve3:Ydt,CubicBezierCurve:fke,CubicBezierCurve3:Jdt,EllipseCurve:fle,LineCurve:ple,LineCurve3:ntr,QuadraticBezierCurve:pke,QuadraticBezierCurve3:mke,SplineCurve:gke});class rtr extends Jy{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),n=this.curves[this.curves.length-1].getPoint(1);e.equals(n)||this.curves.push(new ple(n,e))}getPoint(e,n){const r=e*this.getLength(),a=this.getCurveLengths();let o=0;for(;o<a.length;){if(a[o]>=r){const s=a[o]-r,l=this.curves[o],c=l.getLength(),u=c===0?0:1-s/c;return l.getPointAt(u,n)}o++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let n=0;for(let r=0,a=this.curves.length;r<a;r++)n+=this.curves[r].getLength(),e.push(n);return this.cacheLengths=e,e}getSpacedPoints(e=40){const n=[];for(let r=0;r<=e;r++)n.push(this.getPoint(r/e));return this.autoClose&&n.push(n[0]),n}getPoints(e=12){const n=[];let r;for(let a=0,o=this.curves;a<o.length;a++){const s=o[a],l=s.isEllipseCurve?e*2:s.isLineCurve||s.isLineCurve3?1:s.isSplineCurve?e*s.points.length:e,c=s.getPoints(l);for(let u=0;u<c.length;u++){const d=c[u];r&&r.equals(d)||(n.push(d),r=d)}}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}copy(e){super.copy(e),this.curves=[];for(let n=0,r=e.curves.length;n<r;n++){const a=e.curves[n];this.curves.push(a.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let n=0,r=this.curves.length;n<r;n++){const a=this.curves[n];e.curves.push(a.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let n=0,r=e.curves.length;n<r;n++){const a=e.curves[n];this.curves.push(new Zdt[a.type]().fromJSON(a))}return this}}class Pz extends rtr{constructor(e){super(),this.type="Path",this.currentPoint=new Qn,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let n=1,r=e.length;n<r;n++)this.lineTo(e[n].x,e[n].y);return this}moveTo(e,n){return this.currentPoint.set(e,n),this}lineTo(e,n){const r=new ple(this.currentPoint.clone(),new Qn(e,n));return this.curves.push(r),this.currentPoint.set(e,n),this}quadraticCurveTo(e,n,r,a){const o=new pke(this.currentPoint.clone(),new Qn(e,n),new Qn(r,a));return this.curves.push(o),this.currentPoint.set(r,a),this}bezierCurveTo(e,n,r,a,o,s){const l=new fke(this.currentPoint.clone(),new Qn(e,n),new Qn(r,a),new Qn(o,s));return this.curves.push(l),this.currentPoint.set(o,s),this}splineThru(e){const n=[this.currentPoint.clone()].concat(e),r=new gke(n);return this.curves.push(r),this.currentPoint.copy(e[e.length-1]),this}arc(e,n,r,a,o,s){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absarc(e+l,n+c,r,a,o,s),this}absarc(e,n,r,a,o,s){return this.absellipse(e,n,r,r,a,o,s),this}ellipse(e,n,r,a,o,s,l,c){const u=this.currentPoint.x,d=this.currentPoint.y;return this.absellipse(e+u,n+d,r,a,o,s,l,c),this}absellipse(e,n,r,a,o,s,l,c){const u=new fle(e,n,r,a,o,s,l,c);if(this.curves.length>0){const h=u.getPoint(0);h.equals(this.currentPoint)||this.lineTo(h.x,h.y)}this.curves.push(u);const d=u.getPoint(1);return this.currentPoint.copy(d),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class x8 extends Ya{constructor(e=[new Qn(0,.5),new Qn(.5,0),new Qn(0,-.5)],n=12,r=0,a=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:n,phiStart:r,phiLength:a},n=Math.floor(n),a=Uh(a,0,Math.PI*2);const o=[],s=[],l=[],c=[],u=[],d=1/n,h=new et,f=new Qn,p=new et,m=new et,g=new et;let v=0,A=0;for(let y=0;y<=e.length-1;y++)switch(y){case 0:v=e[y+1].x-e[y].x,A=e[y+1].y-e[y].y,p.x=A*1,p.y=-v,p.z=A*0,g.copy(p),p.normalize(),c.push(p.x,p.y,p.z);break;case e.length-1:c.push(g.x,g.y,g.z);break;default:v=e[y+1].x-e[y].x,A=e[y+1].y-e[y].y,p.x=A*1,p.y=-v,p.z=A*0,m.copy(p),p.x+=g.x,p.y+=g.y,p.z+=g.z,p.normalize(),c.push(p.x,p.y,p.z),g.copy(m)}for(let y=0;y<=n;y++){const S=r+y*d*a,x=Math.sin(S),w=Math.cos(S);for(let _=0;_<=e.length-1;_++){h.x=e[_].x*x,h.y=e[_].y,h.z=e[_].x*w,s.push(h.x,h.y,h.z),f.x=y/n,f.y=_/(e.length-1),l.push(f.x,f.y);const C=c[3*_+0]*x,R=c[3*_+1],k=c[3*_+0]*w;u.push(C,R,k)}}for(let y=0;y<n;y++)for(let S=0;S<e.length-1;S++){const x=S+y*e.length,w=x,_=x+e.length,C=x+e.length+1,R=x+1;o.push(w,_,R),o.push(C,R,_)}this.setIndex(o),this.setAttribute("position",new oa(s,3)),this.setAttribute("uv",new oa(l,2)),this.setAttribute("normal",new oa(u,3))}static fromJSON(e){return new x8(e.points,e.segments,e.phiStart,e.phiLength)}}class Oz extends x8{constructor(e=1,n=1,r=4,a=8){const o=new Pz;o.absarc(0,-n/2,e,Math.PI*1.5,0),o.absarc(0,n/2,e,0,Math.PI*.5),super(o.getPoints(r),a),this.type="CapsuleGeometry",this.parameters={radius:e,height:n,capSegments:r,radialSegments:a}}static fromJSON(e){return new Oz(e.radius,e.length,e.capSegments,e.radialSegments)}}class Lz extends Ya{constructor(e=1,n=8,r=0,a=Math.PI*2){super(),this.type="CircleGeometry",this.parameters={radius:e,segments:n,thetaStart:r,thetaLength:a},n=Math.max(3,n);const o=[],s=[],l=[],c=[],u=new et,d=new Qn;s.push(0,0,0),l.push(0,0,1),c.push(.5,.5);for(let h=0,f=3;h<=n;h++,f+=3){const p=r+h/n*a;u.x=e*Math.cos(p),u.y=e*Math.sin(p),s.push(u.x,u.y,u.z),l.push(0,0,1),d.x=(s[f]/e+1)/2,d.y=(s[f+1]/e+1)/2,c.push(d.x,d.y)}for(let h=1;h<=n;h++)o.push(h,h+1,0);this.setIndex(o),this.setAttribute("position",new oa(s,3)),this.setAttribute("normal",new oa(l,3)),this.setAttribute("uv",new oa(c,2))}static fromJSON(e){return new Lz(e.radius,e.segments,e.thetaStart,e.thetaLength)}}class GP extends Ya{constructor(e=1,n=1,r=1,a=8,o=1,s=!1,l=0,c=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:n,height:r,radialSegments:a,heightSegments:o,openEnded:s,thetaStart:l,thetaLength:c};const u=this;a=Math.floor(a),o=Math.floor(o);const d=[],h=[],f=[],p=[];let m=0;const g=[],v=r/2;let A=0;y(),s===!1&&(e>0&&S(!0),n>0&&S(!1)),this.setIndex(d),this.setAttribute("position",new oa(h,3)),this.setAttribute("normal",new oa(f,3)),this.setAttribute("uv",new oa(p,2));function y(){const x=new et,w=new et;let _=0;const C=(n-e)/r;for(let R=0;R<=o;R++){const k=[],P=R/o,N=P*(n-e)+e;for(let L=0;L<=a;L++){const I=L/a,b=I*c+l,T=Math.sin(b),M=Math.cos(b);w.x=N*T,w.y=-P*r+v,w.z=N*M,h.push(w.x,w.y,w.z),x.set(T,C,M).normalize(),f.push(x.x,x.y,x.z),p.push(I,1-P),k.push(m++)}g.push(k)}for(let R=0;R<a;R++)for(let k=0;k<o;k++){const P=g[k][R],N=g[k+1][R],L=g[k+1][R+1],I=g[k][R+1];d.push(P,N,I),d.push(N,L,I),_+=6}u.addGroup(A,_,0),A+=_}function S(x){const w=m,_=new Qn,C=new et;let R=0;const k=x===!0?e:n,P=x===!0?1:-1;for(let L=1;L<=a;L++)h.push(0,v*P,0),f.push(0,P,0),p.push(.5,.5),m++;const N=m;for(let L=0;L<=a;L++){const b=L/a*c+l,T=Math.cos(b),M=Math.sin(b);C.x=k*M,C.y=v*P,C.z=k*T,h.push(C.x,C.y,C.z),f.push(0,P,0),_.x=T*.5+.5,_.y=M*.5*P+.5,p.push(_.x,_.y),m++}for(let L=0;L<a;L++){const I=w+L,b=N+L;x===!0?d.push(b,b+1,I):d.push(b+1,b,I),R+=3}u.addGroup(A,R,x===!0?1:2),A+=R}}static fromJSON(e){return new GP(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class Bz extends GP{constructor(e=1,n=1,r=8,a=1,o=!1,s=0,l=Math.PI*2){super(0,e,n,r,a,o,s,l),this.type="ConeGeometry",this.parameters={radius:e,height:n,radialSegments:r,heightSegments:a,openEnded:o,thetaStart:s,thetaLength:l}}static fromJSON(e){return new Bz(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class sC extends Ya{constructor(e=[],n=[],r=1,a=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:n,radius:r,detail:a};const o=[],s=[];l(a),u(r),d(),this.setAttribute("position",new oa(o,3)),this.setAttribute("normal",new oa(o.slice(),3)),this.setAttribute("uv",new oa(s,2)),a===0?this.computeVertexNormals():this.normalizeNormals();function l(y){const S=new et,x=new et,w=new et;for(let _=0;_<n.length;_+=3)p(n[_+0],S),p(n[_+1],x),p(n[_+2],w),c(S,x,w,y)}function c(y,S,x,w){const _=w+1,C=[];for(let R=0;R<=_;R++){C[R]=[];const k=y.clone().lerp(x,R/_),P=S.clone().lerp(x,R/_),N=_-R;for(let L=0;L<=N;L++)L===0&&R===_?C[R][L]=k:C[R][L]=k.clone().lerp(P,L/N)}for(let R=0;R<_;R++)for(let k=0;k<2*(_-R)-1;k++){const P=Math.floor(k/2);k%2===0?(f(C[R][P+1]),f(C[R+1][P]),f(C[R][P])):(f(C[R][P+1]),f(C[R+1][P+1]),f(C[R+1][P]))}}function u(y){const S=new et;for(let x=0;x<o.length;x+=3)S.x=o[x+0],S.y=o[x+1],S.z=o[x+2],S.normalize().multiplyScalar(y),o[x+0]=S.x,o[x+1]=S.y,o[x+2]=S.z}function d(){const y=new et;for(let S=0;S<o.length;S+=3){y.x=o[S+0],y.y=o[S+1],y.z=o[S+2];const x=v(y)/2/Math.PI+.5,w=A(y)/Math.PI+.5;s.push(x,1-w)}m(),h()}function h(){for(let y=0;y<s.length;y+=6){const S=s[y+0],x=s[y+2],w=s[y+4],_=Math.max(S,x,w),C=Math.min(S,x,w);_>.9&&C<.1&&(S<.2&&(s[y+0]+=1),x<.2&&(s[y+2]+=1),w<.2&&(s[y+4]+=1))}}function f(y){o.push(y.x,y.y,y.z)}function p(y,S){const x=y*3;S.x=e[x+0],S.y=e[x+1],S.z=e[x+2]}function m(){const y=new et,S=new et,x=new et,w=new et,_=new Qn,C=new Qn,R=new Qn;for(let k=0,P=0;k<o.length;k+=9,P+=6){y.set(o[k+0],o[k+1],o[k+2]),S.set(o[k+3],o[k+4],o[k+5]),x.set(o[k+6],o[k+7],o[k+8]),_.set(s[P+0],s[P+1]),C.set(s[P+2],s[P+3]),R.set(s[P+4],s[P+5]),w.copy(y).add(S).add(x).divideScalar(3);const N=v(w);g(_,P+0,y,N),g(C,P+2,S,N),g(R,P+4,x,N)}}function g(y,S,x,w){w<0&&y.x===1&&(s[S]=y.x-1),x.x===0&&x.z===0&&(s[S]=w/2/Math.PI+.5)}function v(y){return Math.atan2(y.z,-y.x)}function A(y){return Math.atan2(-y.y,Math.sqrt(y.x*y.x+y.z*y.z))}}static fromJSON(e){return new sC(e.vertices,e.indices,e.radius,e.details)}}class Dz extends sC{constructor(e=1,n=0){const r=(1+Math.sqrt(5))/2,a=1/r,o=[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-a,-r,0,-a,r,0,a,-r,0,a,r,-a,-r,0,-a,r,0,a,-r,0,a,r,0,-r,0,-a,r,0,-a,-r,0,a,r,0,a],s=[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9];super(o,s,e,n),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:n}}static fromJSON(e){return new Dz(e.radius,e.detail)}}const fpe=new et,ppe=new et,Y7e=new et,mpe=new Gh;class vke extends Ya{constructor(e=null,n=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:n},e!==null){const a=Math.pow(10,4),o=Math.cos(YD*n),s=e.getIndex(),l=e.getAttribute("position"),c=s?s.count:l.count,u=[0,0,0],d=["a","b","c"],h=new Array(3),f={},p=[];for(let m=0;m<c;m+=3){s?(u[0]=s.getX(m),u[1]=s.getX(m+1),u[2]=s.getX(m+2)):(u[0]=m,u[1]=m+1,u[2]=m+2);const{a:g,b:v,c:A}=mpe;if(g.fromBufferAttribute(l,u[0]),v.fromBufferAttribute(l,u[1]),A.fromBufferAttribute(l,u[2]),mpe.getNormal(Y7e),h[0]=`${Math.round(g.x*a)},${Math.round(g.y*a)},${Math.round(g.z*a)}`,h[1]=`${Math.round(v.x*a)},${Math.round(v.y*a)},${Math.round(v.z*a)}`,h[2]=`${Math.round(A.x*a)},${Math.round(A.y*a)},${Math.round(A.z*a)}`,!(h[0]===h[1]||h[1]===h[2]||h[2]===h[0]))for(let y=0;y<3;y++){const S=(y+1)%3,x=h[y],w=h[S],_=mpe[d[y]],C=mpe[d[S]],R=`${x}_${w}`,k=`${w}_${x}`;k in f&&f[k]?(Y7e.dot(f[k].normal)<=o&&(p.push(_.x,_.y,_.z),p.push(C.x,C.y,C.z)),f[k]=null):R in f||(f[R]={index0:u[y],index1:u[S],normal:Y7e.clone()})}}for(const m in f)if(f[m]){const{index0:g,index1:v}=f[m];fpe.fromBufferAttribute(l,g),ppe.fromBufferAttribute(l,v),p.push(fpe.x,fpe.y,fpe.z),p.push(ppe.x,ppe.y,ppe.z)}this.setAttribute("position",new oa(p,3))}}}class B2 extends Pz{constructor(e){super(e),this.uuid=Vy(),this.type="Shape",this.holes=[]}getPointsHoles(e){const n=[];for(let r=0,a=this.holes.length;r<a;r++)n[r]=this.holes[r].getPoints(e);return n}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let n=0,r=e.holes.length;n<r;n++){const a=e.holes[n];this.holes.push(a.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let n=0,r=this.holes.length;n<r;n++){const a=this.holes[n];e.holes.push(a.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let n=0,r=e.holes.length;n<r;n++){const a=e.holes[n];this.holes.push(new Pz().fromJSON(a))}return this}}const dls={triangulate:function(t,e,n=2){const r=e&&e.length,a=r?e[0]*n:t.length;let o=itr(t,0,a,n,!0);const s=[];if(!o||o.next===o.prev)return s;let l,c,u,d,h,f,p;if(r&&(o=gls(t,e,o,n)),t.length>80*n){l=u=t[0],c=d=t[1];for(let m=n;m<a;m+=n)h=t[m],f=t[m+1],h<l&&(l=h),f<c&&(c=f),h>u&&(u=h),f>d&&(d=f);p=Math.max(u-l,d-c),p=p!==0?1/p:0}return uie(o,s,n,l,c,p),s}};function itr(t,e,n,r,a){let o,s;if(a===Cls(t,e,n,r)>0)for(o=e;o<n;o+=r)s=GHt(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=GHt(o,t[o],t[o+1],s);return s&&Ake(s,s.next)&&(hie(s),s=s.next),s}function VP(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(Ake(n,n.next)||Ld(n.prev,n,n.next)===0)){if(hie(n),n=e=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}function uie(t,e,n,r,a,o,s){if(!t)return;!s&&o&&xls(t,r,a,o);let l=t,c,u;for(;t.prev!==t.next;){if(c=t.prev,u=t.next,o?fls(t,r,a,o):hls(t)){e.push(c.i/n),e.push(t.i/n),e.push(u.i/n),hie(t),t=u.next,l=u.next;continue}if(t=u,t===l){s?s===1?(t=pls(VP(t),e,n),uie(t,e,n,r,a,o,2)):s===2&&mls(t,e,n,r,a,o):uie(VP(t),e,n,r,a,o,1);break}}}function hls(t){const e=t.prev,n=t,r=t.next;if(Ld(e,n,r)>=0)return!1;let a=t.next.next;for(;a!==t.prev;){if(Aj(e.x,e.y,n.x,n.y,r.x,r.y,a.x,a.y)&&Ld(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function fls(t,e,n,r){const a=t.prev,o=t,s=t.next;if(Ld(a,o,s)>=0)return!1;const l=a.x<o.x?a.x<s.x?a.x:s.x:o.x<s.x?o.x:s.x,c=a.y<o.y?a.y<s.y?a.y:s.y:o.y<s.y?o.y:s.y,u=a.x>o.x?a.x>s.x?a.x:s.x:o.x>s.x?o.x:s.x,d=a.y>o.y?a.y>s.y?a.y:s.y:o.y>s.y?o.y:s.y,h=NYe(l,c,e,n,r),f=NYe(u,d,e,n,r);let p=t.prevZ,m=t.nextZ;for(;p&&p.z>=h&&m&&m.z<=f;){if(p!==t.prev&&p!==t.next&&Aj(a.x,a.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Ld(p.prev,p,p.next)>=0||(p=p.prevZ,m!==t.prev&&m!==t.next&&Aj(a.x,a.y,o.x,o.y,s.x,s.y,m.x,m.y)&&Ld(m.prev,m,m.next)>=0))return!1;m=m.nextZ}for(;p&&p.z>=h;){if(p!==t.prev&&p!==t.next&&Aj(a.x,a.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Ld(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;m&&m.z<=f;){if(m!==t.prev&&m!==t.next&&Aj(a.x,a.y,o.x,o.y,s.x,s.y,m.x,m.y)&&Ld(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function pls(t,e,n){let r=t;do{const a=r.prev,o=r.next.next;!Ake(a,o)&&atr(a,r,r.next,o)&&die(a,o)&&die(o,a)&&(e.push(a.i/n),e.push(r.i/n),e.push(o.i/n),hie(r),hie(r.next),r=t=o),r=r.next}while(r!==t);return VP(r)}function mls(t,e,n,r,a,o){let s=t;do{let l=s.next.next;for(;l!==s.prev;){if(s.i!==l.i&&wls(s,l)){let c=otr(s,l);s=VP(s,s.next),c=VP(c,c.next),uie(s,e,n,r,a,o),uie(c,e,n,r,a,o);return}l=l.next}s=s.next}while(s!==t)}function gls(t,e,n,r){const a=[];let o,s,l,c,u;for(o=0,s=e.length;o<s;o++)l=e[o]*r,c=o<s-1?e[o+1]*r:t.length,u=itr(t,l,c,r,!1),u===u.next&&(u.steiner=!0),a.push(Sls(u));for(a.sort(vls),o=0;o<a.length;o++)Als(a[o],n),n=VP(n,n.next);return n}function vls(t,e){return t.x-e.x}function Als(t,e){if(e=yls(t,e),e){const n=otr(e,t);VP(e,e.next),VP(n,n.next)}}function yls(t,e){let n=e;const r=t.x,a=t.y;let o=-1/0,s;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){const f=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=r&&f>o){if(o=f,f===r){if(a===n.y)return n;if(a===n.next.y)return n.next}s=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!s)return null;if(r===o)return s;const l=s,c=s.x,u=s.y;let d=1/0,h;n=s;do r>=n.x&&n.x>=c&&r!==n.x&&Aj(a<u?r:o,a,c,u,a<u?o:r,a,n.x,n.y)&&(h=Math.abs(a-n.y)/(r-n.x),die(n,t)&&(h<d||h===d&&(n.x>s.x||n.x===s.x&&bls(s,n)))&&(s=n,d=h)),n=n.next;while(n!==l);return s}function bls(t,e){return Ld(t.prev,t,e.prev)<0&&Ld(e.next,t,t.next)<0}function xls(t,e,n,r){let a=t;do a.z===null&&(a.z=NYe(a.x,a.y,e,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==t);a.prevZ.nextZ=null,a.prevZ=null,Els(a)}function Els(t){let e,n,r,a,o,s,l,c,u=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,l=0,e=0;e<u&&(l++,r=r.nextZ,!!r);e++);for(c=u;l>0||c>0&&r;)l!==0&&(c===0||!r||n.z<=r.z)?(a=n,n=n.nextZ,l--):(a=r,r=r.nextZ,c--),o?o.nextZ=a:t=a,a.prevZ=o,o=a;n=r}o.nextZ=null,u*=2}while(s>1);return t}function NYe(t,e,n,r,a){return t=32767*(t-n)*a,e=32767*(e-r)*a,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Sls(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}function Aj(t,e,n,r,a,o,s,l){return(a-s)*(e-l)-(t-s)*(o-l)>=0&&(t-s)*(r-l)-(n-s)*(e-l)>=0&&(n-s)*(o-l)-(a-s)*(r-l)>=0}function wls(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!_ls(t,e)&&(die(t,e)&&die(e,t)&&Tls(t,e)&&(Ld(t.prev,t,e.prev)||Ld(t,e.prev,e))||Ake(t,e)&&Ld(t.prev,t,t.next)>0&&Ld(e.prev,e,e.next)>0)}function Ld(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Ake(t,e){return t.x===e.x&&t.y===e.y}function atr(t,e,n,r){const a=vpe(Ld(t,e,n)),o=vpe(Ld(t,e,r)),s=vpe(Ld(n,r,t)),l=vpe(Ld(n,r,e));return!!(a!==o&&s!==l||a===0&&gpe(t,n,e)||o===0&&gpe(t,r,e)||s===0&&gpe(n,t,r)||l===0&&gpe(n,e,r))}function gpe(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function vpe(t){return t>0?1:t<0?-1:0}function _ls(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&atr(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function die(t,e){return Ld(t.prev,t,t.next)<0?Ld(t,e,t.next)>=0&&Ld(t,t.prev,e)>=0:Ld(t,e,t.prev)<0||Ld(t,t.next,e)<0}function Tls(t,e){let n=t,r=!1;const a=(t.x+e.x)/2,o=(t.y+e.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&a<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}function otr(t,e){const n=new IYe(t.i,t.x,t.y),r=new IYe(e.i,e.x,e.y),a=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=a,a.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function GHt(t,e,n,r){const a=new IYe(t,e,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function hie(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function IYe(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Cls(t,e,n,r){let a=0;for(let o=e,s=n-r;o<n;o+=r)a+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return a}class D2{static area(e){const n=e.length;let r=0;for(let a=n-1,o=0;o<n;a=o++)r+=e[a].x*e[o].y-e[o].x*e[a].y;return r*.5}static isClockWise(e){return D2.area(e)<0}static triangulateShape(e,n){const r=[],a=[],o=[];VHt(e),KHt(r,e);let s=e.length;n.forEach(VHt);for(let c=0;c<n.length;c++)a.push(s),s+=n[c].length,KHt(r,n[c]);const l=dls.triangulate(r,a);for(let c=0;c<l.length;c+=3)o.push(l.slice(c,c+3));return o}}function VHt(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function KHt(t,e){for(let n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}class lC extends Ya{constructor(e=new B2([new Qn(.5,.5),new Qn(-.5,.5),new Qn(-.5,-.5),new Qn(.5,-.5)]),n={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:n},e=Array.isArray(e)?e:[e];const r=this,a=[],o=[];for(let l=0,c=e.length;l<c;l++){const u=e[l];s(u)}this.setAttribute("position",new oa(a,3)),this.setAttribute("uv",new oa(o,2)),this.computeVertexNormals();function s(l){const c=[],u=n.curveSegments!==void 0?n.curveSegments:12,d=n.steps!==void 0?n.steps:1;let h=n.depth!==void 0?n.depth:1,f=n.bevelEnabled!==void 0?n.bevelEnabled:!0,p=n.bevelThickness!==void 0?n.bevelThickness:.2,m=n.bevelSize!==void 0?n.bevelSize:p-.1,g=n.bevelOffset!==void 0?n.bevelOffset:0,v=n.bevelSegments!==void 0?n.bevelSegments:3;const A=n.extrudePath,y=n.UVGenerator!==void 0?n.UVGenerator:kls;n.amount!==void 0&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),h=n.amount);let S,x=!1,w,_,C,R;A&&(S=A.getSpacedPoints(d),x=!0,f=!1,w=A.computeFrenetFrames(d,!1),_=new et,C=new et,R=new et),f||(v=0,p=0,m=0,g=0);const k=l.extractPoints(u);let P=k.shape;const N=k.holes;if(!D2.isClockWise(P)){P=P.reverse();for(let ie=0,he=N.length;ie<he;ie++){const de=N[ie];D2.isClockWise(de)&&(N[ie]=de.reverse())}}const I=D2.triangulateShape(P,N),b=P;for(let ie=0,he=N.length;ie<he;ie++){const de=N[ie];P=P.concat(de)}function T(ie,he,de){return he||console.error("THREE.ExtrudeGeometry: vec does not exist"),he.clone().multiplyScalar(de).add(ie)}const M=P.length,D=I.length;function B(ie,he,de){let ce,Ee,Me;const Be=ie.x-he.x,ze=ie.y-he.y,je=de.x-ie.x,ye=de.y-ie.y,me=Be*Be+ze*ze,le=Be*ye-ze*je;if(Math.abs(le)>Number.EPSILON){const pe=Math.sqrt(me),Ne=Math.sqrt(je*je+ye*ye),_e=he.x-ze/pe,ue=he.y+Be/pe,se=de.x-ye/Ne,oe=de.y+je/Ne,ge=((se-_e)*ye-(oe-ue)*je)/(Be*ye-ze*je);ce=_e+Be*ge-ie.x,Ee=ue+ze*ge-ie.y;const De=ce*ce+Ee*Ee;if(De<=2)return new Qn(ce,Ee);Me=Math.sqrt(De/2)}else{let pe=!1;Be>Number.EPSILON?je>Number.EPSILON&&(pe=!0):Be<-Number.EPSILON?je<-Number.EPSILON&&(pe=!0):Math.sign(ze)===Math.sign(ye)&&(pe=!0),pe?(ce=-ze,Ee=Be,Me=Math.sqrt(me)):(ce=Be,Ee=ze,Me=Math.sqrt(me/2))}return new Qn(ce/Me,Ee/Me)}const j=[];for(let ie=0,he=b.length,de=he-1,ce=ie+1;ie<he;ie++,de++,ce++)de===he&&(de=0),ce===he&&(ce=0),j[ie]=B(b[ie],b[de],b[ce]);const H=[];let U,$=j.concat();for(let ie=0,he=N.length;ie<he;ie++){const de=N[ie];U=[];for(let ce=0,Ee=de.length,Me=Ee-1,Be=ce+1;ce<Ee;ce++,Me++,Be++)Me===Ee&&(Me=0),Be===Ee&&(Be=0),U[ce]=B(de[ce],de[Me],de[Be]);H.push(U),$=$.concat(U)}for(let ie=0;ie<v;ie++){const he=ie/v,de=p*Math.cos(he*Math.PI/2),ce=m*Math.sin(he*Math.PI/2)+g;for(let Ee=0,Me=b.length;Ee<Me;Ee++){const Be=T(b[Ee],j[Ee],ce);ee(Be.x,Be.y,-de)}for(let Ee=0,Me=N.length;Ee<Me;Ee++){const Be=N[Ee];U=H[Ee];for(let ze=0,je=Be.length;ze<je;ze++){const ye=T(Be[ze],U[ze],ce);ee(ye.x,ye.y,-de)}}}const z=m+g;for(let ie=0;ie<M;ie++){const he=f?T(P[ie],$[ie],z):P[ie];x?(C.copy(w.normals[0]).multiplyScalar(he.x),_.copy(w.binormals[0]).multiplyScalar(he.y),R.copy(S[0]).add(C).add(_),ee(R.x,R.y,R.z)):ee(he.x,he.y,0)}for(let ie=1;ie<=d;ie++)for(let he=0;he<M;he++){const de=f?T(P[he],$[he],z):P[he];x?(C.copy(w.normals[ie]).multiplyScalar(de.x),_.copy(w.binormals[ie]).multiplyScalar(de.y),R.copy(S[ie]).add(C).add(_),ee(R.x,R.y,R.z)):ee(de.x,de.y,h/d*ie)}for(let ie=v-1;ie>=0;ie--){const he=ie/v,de=p*Math.cos(he*Math.PI/2),ce=m*Math.sin(he*Math.PI/2)+g;for(let Ee=0,Me=b.length;Ee<Me;Ee++){const Be=T(b[Ee],j[Ee],ce);ee(Be.x,Be.y,h+de)}for(let Ee=0,Me=N.length;Ee<Me;Ee++){const Be=N[Ee];U=H[Ee];for(let ze=0,je=Be.length;ze<je;ze++){const ye=T(Be[ze],U[ze],ce);x?ee(ye.x,ye.y+S[d-1].y,S[d-1].x+de):ee(ye.x,ye.y,h+de)}}}Z(),K();function Z(){const ie=a.length/3;if(f){let he=0,de=M*he;for(let ce=0;ce<D;ce++){const Ee=I[ce];X(Ee[2]+de,Ee[1]+de,Ee[0]+de)}he=d+v*2,de=M*he;for(let ce=0;ce<D;ce++){const Ee=I[ce];X(Ee[0]+de,Ee[1]+de,Ee[2]+de)}}else{for(let he=0;he<D;he++){const de=I[he];X(de[2],de[1],de[0])}for(let he=0;he<D;he++){const de=I[he];X(de[0]+M*d,de[1]+M*d,de[2]+M*d)}}r.addGroup(ie,a.length/3-ie,0)}function K(){const ie=a.length/3;let he=0;Q(b,he),he+=b.length;for(let de=0,ce=N.length;de<ce;de++){const Ee=N[de];Q(Ee,he),he+=Ee.length}r.addGroup(ie,a.length/3-ie,1)}function Q(ie,he){let de=ie.length;for(;--de>=0;){const ce=de;let Ee=de-1;Ee<0&&(Ee=ie.length-1);for(let Me=0,Be=d+v*2;Me<Be;Me++){const ze=M*Me,je=M*(Me+1),ye=he+ce+ze,me=he+Ee+ze,le=he+Ee+je,pe=he+ce+je;te(ye,me,le,pe)}}}function ee(ie,he,de){c.push(ie),c.push(he),c.push(de)}function X(ie,he,de){J(ie),J(he),J(de);const ce=a.length/3,Ee=y.generateTopUV(r,a,ce-3,ce-2,ce-1);ne(Ee[0]),ne(Ee[1]),ne(Ee[2])}function te(ie,he,de,ce){J(ie),J(he),J(ce),J(he),J(de),J(ce);const Ee=a.length/3,Me=y.generateSideWallUV(r,a,Ee-6,Ee-3,Ee-2,Ee-1);ne(Me[0]),ne(Me[1]),ne(Me[3]),ne(Me[1]),ne(Me[2]),ne(Me[3])}function J(ie){a.push(c[ie*3+0]),a.push(c[ie*3+1]),a.push(c[ie*3+2])}function ne(ie){o.push(ie.x),o.push(ie.y)}}}toJSON(){const e=super.toJSON(),n=this.parameters.shapes,r=this.parameters.options;return Rls(n,r,e)}static fromJSON(e,n){const r=[];for(let o=0,s=e.shapes.length;o<s;o++){const l=n[e.shapes[o]];r.push(l)}const a=e.options.extrudePath;return a!==void 0&&(e.options.extrudePath=new Zdt[a.type]().fromJSON(a)),new lC(r,e.options)}}const kls={generateTopUV:function(t,e,n,r,a){const o=e[n*3],s=e[n*3+1],l=e[r*3],c=e[r*3+1],u=e[a*3],d=e[a*3+1];return[new Qn(o,s),new Qn(l,c),new Qn(u,d)]},generateSideWallUV:function(t,e,n,r,a,o){const s=e[n*3],l=e[n*3+1],c=e[n*3+2],u=e[r*3],d=e[r*3+1],h=e[r*3+2],f=e[a*3],p=e[a*3+1],m=e[a*3+2],g=e[o*3],v=e[o*3+1],A=e[o*3+2];return Math.abs(l-d)<Math.abs(s-u)?[new Qn(s,1-c),new Qn(u,1-h),new Qn(f,1-m),new Qn(g,1-A)]:[new Qn(l,1-c),new Qn(d,1-h),new Qn(p,1-m),new Qn(v,1-A)]}};function Rls(t,e,n){if(n.shapes=[],Array.isArray(t))for(let r=0,a=t.length;r<a;r++){const o=t[r];n.shapes.push(o.uuid)}else n.shapes.push(t.uuid);return e.extrudePath!==void 0&&(n.options.extrudePath=e.extrudePath.toJSON()),n}class $z extends sC{constructor(e=1,n=0){const r=(1+Math.sqrt(5))/2,a=[-1,r,0,1,r,0,-1,-r,0,1,-r,0,0,-1,r,0,1,r,0,-1,-r,0,1,-r,r,0,-1,r,0,1,-r,0,-1,-r,0,1],o=[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1];super(a,o,e,n),this.type="IcosahedronGeometry",this.parameters={radius:e,detail:n}}static fromJSON(e){return new $z(e.radius,e.detail)}}class E8 extends sC{constructor(e=1,n=0){const r=[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],a=[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2];super(r,a,e,n),this.type="OctahedronGeometry",this.parameters={radius:e,detail:n}}static fromJSON(e){return new E8(e.radius,e.detail)}}class Fz extends Ya{constructor(e=.5,n=1,r=8,a=1,o=0,s=Math.PI*2){super(),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:n,thetaSegments:r,phiSegments:a,thetaStart:o,thetaLength:s},r=Math.max(3,r),a=Math.max(1,a);const l=[],c=[],u=[],d=[];let h=e;const f=(n-e)/a,p=new et,m=new Qn;for(let g=0;g<=a;g++){for(let v=0;v<=r;v++){const A=o+v/r*s;p.x=h*Math.cos(A),p.y=h*Math.sin(A),c.push(p.x,p.y,p.z),u.push(0,0,1),m.x=(p.x/n+1)/2,m.y=(p.y/n+1)/2,d.push(m.x,m.y)}h+=f}for(let g=0;g<a;g++){const v=g*(r+1);for(let A=0;A<r;A++){const y=A+v,S=y,x=y+r+1,w=y+r+2,_=y+1;l.push(S,x,_),l.push(x,w,_)}}this.setIndex(l),this.setAttribute("position",new oa(c,3)),this.setAttribute("normal",new oa(u,3)),this.setAttribute("uv",new oa(d,2))}static fromJSON(e){return new Fz(e.innerRadius,e.outerRadius,e.thetaSegments,e.phiSegments,e.thetaStart,e.thetaLength)}}class S8 extends Ya{constructor(e=new B2([new Qn(0,.5),new Qn(-.5,-.5),new Qn(.5,-.5)]),n=12){super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:n};const r=[],a=[],o=[],s=[];let l=0,c=0;if(Array.isArray(e)===!1)u(e);else for(let d=0;d<e.length;d++)u(e[d]),this.addGroup(l,c,d),l+=c,c=0;this.setIndex(r),this.setAttribute("position",new oa(a,3)),this.setAttribute("normal",new oa(o,3)),this.setAttribute("uv",new oa(s,2));function u(d){const h=a.length/3,f=d.extractPoints(n);let p=f.shape;const m=f.holes;D2.isClockWise(p)===!1&&(p=p.reverse());for(let v=0,A=m.length;v<A;v++){const y=m[v];D2.isClockWise(y)===!0&&(m[v]=y.reverse())}const g=D2.triangulateShape(p,m);for(let v=0,A=m.length;v<A;v++){const y=m[v];p=p.concat(y)}for(let v=0,A=p.length;v<A;v++){const y=p[v];a.push(y.x,y.y,0),o.push(0,0,1),s.push(y.x,y.y)}for(let v=0,A=g.length;v<A;v++){const y=g[v],S=y[0]+h,x=y[1]+h,w=y[2]+h;r.push(S,x,w),c+=3}}}toJSON(){const e=super.toJSON(),n=this.parameters.shapes;return Mls(n,e)}static fromJSON(e,n){const r=[];for(let a=0,o=e.shapes.length;a<o;a++){const s=n[e.shapes[a]];r.push(s)}return new S8(r,e.curveSegments)}}function Mls(t,e){if(e.shapes=[],Array.isArray(t))for(let n=0,r=t.length;n<r;n++){const a=t[n];e.shapes.push(a.uuid)}else e.shapes.push(t.uuid);return e}class w8 extends Ya{constructor(e=1,n=32,r=16,a=0,o=Math.PI*2,s=0,l=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:n,heightSegments:r,phiStart:a,phiLength:o,thetaStart:s,thetaLength:l},n=Math.max(3,Math.floor(n)),r=Math.max(2,Math.floor(r));const c=Math.min(s+l,Math.PI);let u=0;const d=[],h=new et,f=new et,p=[],m=[],g=[],v=[];for(let A=0;A<=r;A++){const y=[],S=A/r;let x=0;A==0&&s==0?x=.5/n:A==r&&c==Math.PI&&(x=-.5/n);for(let w=0;w<=n;w++){const _=w/n;h.x=-e*Math.cos(a+_*o)*Math.sin(s+S*l),h.y=e*Math.cos(s+S*l),h.z=e*Math.sin(a+_*o)*Math.sin(s+S*l),m.push(h.x,h.y,h.z),f.copy(h).normalize(),g.push(f.x,f.y,f.z),v.push(_+x,1-S),y.push(u++)}d.push(y)}for(let A=0;A<r;A++)for(let y=0;y<n;y++){const S=d[A][y+1],x=d[A][y],w=d[A+1][y],_=d[A+1][y+1];(A!==0||s>0)&&p.push(S,x,_),(A!==r-1||c<Math.PI)&&p.push(x,w,_)}this.setIndex(p),this.setAttribute("position",new oa(m,3)),this.setAttribute("normal",new oa(g,3)),this.setAttribute("uv",new oa(v,2))}static fromJSON(e){return new w8(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class jz extends sC{constructor(e=1,n=0){const r=[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],a=[2,1,0,0,3,2,1,3,0,2,3,1];super(r,a,e,n),this.type="TetrahedronGeometry",this.parameters={radius:e,detail:n}}static fromJSON(e){return new jz(e.radius,e.detail)}}class Hz extends Ya{constructor(e=1,n=.4,r=8,a=6,o=Math.PI*2){super(),this.type="TorusGeometry",this.parameters={radius:e,tube:n,radialSegments:r,tubularSegments:a,arc:o},r=Math.floor(r),a=Math.floor(a);const s=[],l=[],c=[],u=[],d=new et,h=new et,f=new et;for(let p=0;p<=r;p++)for(let m=0;m<=a;m++){const g=m/a*o,v=p/r*Math.PI*2;h.x=(e+n*Math.cos(v))*Math.cos(g),h.y=(e+n*Math.cos(v))*Math.sin(g),h.z=n*Math.sin(v),l.push(h.x,h.y,h.z),d.x=e*Math.cos(g),d.y=e*Math.sin(g),f.subVectors(h,d).normalize(),c.push(f.x,f.y,f.z),u.push(m/a),u.push(p/r)}for(let p=1;p<=r;p++)for(let m=1;m<=a;m++){const g=(a+1)*p+m-1,v=(a+1)*(p-1)+m-1,A=(a+1)*(p-1)+m,y=(a+1)*p+m;s.push(g,v,y),s.push(v,A,y)}this.setIndex(s),this.setAttribute("position",new oa(l,3)),this.setAttribute("normal",new oa(c,3)),this.setAttribute("uv",new oa(u,2))}static fromJSON(e){return new Hz(e.radius,e.tube,e.radialSegments,e.tubularSegments,e.arc)}}class Uz extends Ya{constructor(e=1,n=.4,r=64,a=8,o=2,s=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:e,tube:n,tubularSegments:r,radialSegments:a,p:o,q:s},r=Math.floor(r),a=Math.floor(a);const l=[],c=[],u=[],d=[],h=new et,f=new et,p=new et,m=new et,g=new et,v=new et,A=new et;for(let S=0;S<=r;++S){const x=S/r*o*Math.PI*2;y(x,o,s,e,p),y(x+.01,o,s,e,m),v.subVectors(m,p),A.addVectors(m,p),g.crossVectors(v,A),A.crossVectors(g,v),g.normalize(),A.normalize();for(let w=0;w<=a;++w){const _=w/a*Math.PI*2,C=-n*Math.cos(_),R=n*Math.sin(_);h.x=p.x+(C*A.x+R*g.x),h.y=p.y+(C*A.y+R*g.y),h.z=p.z+(C*A.z+R*g.z),c.push(h.x,h.y,h.z),f.subVectors(h,p).normalize(),u.push(f.x,f.y,f.z),d.push(S/r),d.push(w/a)}}for(let S=1;S<=r;S++)for(let x=1;x<=a;x++){const w=(a+1)*(S-1)+(x-1),_=(a+1)*S+(x-1),C=(a+1)*S+x,R=(a+1)*(S-1)+x;l.push(w,_,R),l.push(_,C,R)}this.setIndex(l),this.setAttribute("position",new oa(c,3)),this.setAttribute("normal",new oa(u,3)),this.setAttribute("uv",new oa(d,2));function y(S,x,w,_,C){const R=Math.cos(S),k=Math.sin(S),P=w/x*S,N=Math.cos(P);C.x=_*(2+N)*.5*R,C.y=_*(2+N)*k*.5,C.z=_*Math.sin(P)*.5}}static fromJSON(e){return new Uz(e.radius,e.tube,e.tubularSegments,e.radialSegments,e.p,e.q)}}class zz extends Ya{constructor(e=new mke(new et(-1,-1,0),new et(-1,1,0),new et(1,1,0)),n=64,r=1,a=8,o=!1){super(),this.type="TubeGeometry",this.parameters={path:e,tubularSegments:n,radius:r,radialSegments:a,closed:o};const s=e.computeFrenetFrames(n,o);this.tangents=s.tangents,this.normals=s.normals,this.binormals=s.binormals;const l=new et,c=new et,u=new Qn;let d=new et;const h=[],f=[],p=[],m=[];g(),this.setIndex(m),this.setAttribute("position",new oa(h,3)),this.setAttribute("normal",new oa(f,3)),this.setAttribute("uv",new oa(p,2));function g(){for(let S=0;S<n;S++)v(S);v(o===!1?n:0),y(),A()}function v(S){d=e.getPointAt(S/n,d);const x=s.normals[S],w=s.binormals[S];for(let _=0;_<=a;_++){const C=_/a*Math.PI*2,R=Math.sin(C),k=-Math.cos(C);c.x=k*x.x+R*w.x,c.y=k*x.y+R*w.y,c.z=k*x.z+R*w.z,c.normalize(),f.push(c.x,c.y,c.z),l.x=d.x+r*c.x,l.y=d.y+r*c.y,l.z=d.z+r*c.z,h.push(l.x,l.y,l.z)}}function A(){for(let S=1;S<=n;S++)for(let x=1;x<=a;x++){const w=(a+1)*(S-1)+(x-1),_=(a+1)*S+(x-1),C=(a+1)*S+x,R=(a+1)*(S-1)+x;m.push(w,_,R),m.push(_,C,R)}}function y(){for(let S=0;S<=n;S++)for(let x=0;x<=a;x++)u.x=S/n,u.y=x/a,p.push(u.x,u.y)}}toJSON(){const e=super.toJSON();return e.path=this.parameters.path.toJSON(),e}static fromJSON(e){return new zz(new Zdt[e.path.type]().fromJSON(e.path),e.tubularSegments,e.radius,e.radialSegments,e.closed)}}class Xdt extends Ya{constructor(e=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},e!==null){const n=[],r=new Set,a=new et,o=new et;if(e.index!==null){const s=e.attributes.position,l=e.index;let c=e.groups;c.length===0&&(c=[{start:0,count:l.count,materialIndex:0}]);for(let u=0,d=c.length;u<d;++u){const h=c[u],f=h.start,p=h.count;for(let m=f,g=f+p;m<g;m+=3)for(let v=0;v<3;v++){const A=l.getX(m+v),y=l.getX(m+(v+1)%3);a.fromBufferAttribute(s,A),o.fromBufferAttribute(s,y),WHt(a,o,r)===!0&&(n.push(a.x,a.y,a.z),n.push(o.x,o.y,o.z))}}}else{const s=e.attributes.position;for(let l=0,c=s.count/3;l<c;l++)for(let u=0;u<3;u++){const d=3*l+u,h=3*l+(u+1)%3;a.fromBufferAttribute(s,d),o.fromBufferAttribute(s,h),WHt(a,o,r)===!0&&(n.push(a.x,a.y,a.z),n.push(o.x,o.y,o.z))}}this.setAttribute("position",new oa(n,3))}}}function WHt(t,e,n){const r=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`,a=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`;return n.has(r)===!0||n.has(a)===!0?!1:(n.add(r),n.add(a),!0)}var QHt=Object.freeze({__proto__:null,BoxGeometry:GM,BoxBufferGeometry:GM,CapsuleGeometry:Oz,CapsuleBufferGeometry:Oz,CircleGeometry:Lz,CircleBufferGeometry:Lz,ConeGeometry:Bz,ConeBufferGeometry:Bz,CylinderGeometry:GP,CylinderBufferGeometry:GP,DodecahedronGeometry:Dz,DodecahedronBufferGeometry:Dz,EdgesGeometry:vke,ExtrudeGeometry:lC,ExtrudeBufferGeometry:lC,IcosahedronGeometry:$z,IcosahedronBufferGeometry:$z,LatheGeometry:x8,LatheBufferGeometry:x8,OctahedronGeometry:E8,OctahedronBufferGeometry:E8,PlaneGeometry:y8,PlaneBufferGeometry:y8,PolyhedronGeometry:sC,PolyhedronBufferGeometry:sC,RingGeometry:Fz,RingBufferGeometry:Fz,ShapeGeometry:S8,ShapeBufferGeometry:S8,SphereGeometry:w8,SphereBufferGeometry:w8,TetrahedronGeometry:jz,TetrahedronBufferGeometry:jz,TorusGeometry:Hz,TorusBufferGeometry:Hz,TorusKnotGeometry:Uz,TorusKnotBufferGeometry:Uz,TubeGeometry:zz,TubeBufferGeometry:zz,WireframeGeometry:Xdt});class eht extends cf{constructor(e){super(),this.type="ShadowMaterial",this.color=new ci(0),this.transparent=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this}}eht.prototype.isShadowMaterial=!0;class tht extends rE{constructor(e){super(e),this.type="RawShaderMaterial"}}tht.prototype.isRawShaderMaterial=!0;class yke extends cf{constructor(e){super(),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new ci(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ci(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=K9,this.normalScale=new Qn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}yke.prototype.isMeshStandardMaterial=!0;class nht extends yke{constructor(e){super(),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Qn(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Uh(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(n){this.ior=(1+.4*n)/(1-.4*n)}}),this.sheenColor=new ci(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=0,this.attenuationColor=new ci(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new ci(1,1,1),this.specularColorMap=null,this._sheen=0,this._clearcoat=0,this._transmission=0,this.setValues(e)}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}nht.prototype.isMeshPhysicalMaterial=!0;class rht extends cf{constructor(e){super(),this.type="MeshPhongMaterial",this.color=new ci(16777215),this.specular=new ci(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ci(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=K9,this.normalScale=new Qn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ole,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}rht.prototype.isMeshPhongMaterial=!0;class iht extends cf{constructor(e){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new ci(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ci(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=K9,this.normalScale=new Qn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}iht.prototype.isMeshToonMaterial=!0;class aht extends cf{constructor(e){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=K9,this.normalScale=new Qn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}aht.prototype.isMeshNormalMaterial=!0;class oht extends cf{constructor(e){super(),this.type="MeshLambertMaterial",this.color=new ci(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ci(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ole,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}oht.prototype.isMeshLambertMaterial=!0;class sht extends cf{constructor(e){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new ci(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=K9,this.normalScale=new Qn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this}}sht.prototype.isMeshMatcapMaterial=!0;class lht extends Sm{constructor(e){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}lht.prototype.isLineDashedMaterial=!0;const Nls={ShadowMaterial:eht,SpriteMaterial:lke,RawShaderMaterial:tht,ShaderMaterial:rE,PointsMaterial:Q9,MeshPhysicalMaterial:nht,MeshStandardMaterial:yke,MeshPhongMaterial:rht,MeshToonMaterial:iht,MeshNormalMaterial:aht,MeshLambertMaterial:oht,MeshDepthMaterial:oke,MeshDistanceMaterial:ske,MeshBasicMaterial:NN,MeshMatcapMaterial:sht,LineDashedMaterial:lht,LineBasicMaterial:Sm,Material:cf};cf.fromType=function(t){return new Nls[t]};const Zu={arraySlice:function(t,e,n){return Zu.isTypedArray(t)?new t.constructor(t.subarray(e,n!==void 0?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){function e(a,o){return t[a]-t[o]}const n=t.length,r=new Array(n);for(let a=0;a!==n;++a)r[a]=a;return r.sort(e),r},sortedArray:function(t,e,n){const r=t.length,a=new t.constructor(r);for(let o=0,s=0;s!==r;++o){const l=n[o]*e;for(let c=0;c!==e;++c)a[s++]=t[l+c]}return a},flattenJSON:function(t,e,n,r){let a=1,o=t[0];for(;o!==void 0&&o[r]===void 0;)o=t[a++];if(o===void 0)return;let s=o[r];if(s!==void 0)if(Array.isArray(s))do s=o[r],s!==void 0&&(e.push(o.time),n.push.apply(n,s)),o=t[a++];while(o!==void 0);else if(s.toArray!==void 0)do s=o[r],s!==void 0&&(e.push(o.time),s.toArray(n,n.length)),o=t[a++];while(o!==void 0);else do s=o[r],s!==void 0&&(e.push(o.time),n.push(s)),o=t[a++];while(o!==void 0)},subclip:function(t,e,n,r,a=30){const o=t.clone();o.name=e;const s=[];for(let c=0;c<o.tracks.length;++c){const u=o.tracks[c],d=u.getValueSize(),h=[],f=[];for(let p=0;p<u.times.length;++p){const m=u.times[p]*a;if(!(m<n||m>=r)){h.push(u.times[p]);for(let g=0;g<d;++g)f.push(u.values[p*d+g])}}h.length!==0&&(u.times=Zu.convertArray(h,u.times.constructor),u.values=Zu.convertArray(f,u.values.constructor),s.push(u))}o.tracks=s;let l=1/0;for(let c=0;c<o.tracks.length;++c)l>o.tracks[c].times[0]&&(l=o.tracks[c].times[0]);for(let c=0;c<o.tracks.length;++c)o.tracks[c].shift(-1*l);return o.resetDuration(),o},makeClipAdditive:function(t,e=0,n=t,r=30){r<=0&&(r=30);const a=n.tracks.length,o=e/r;for(let s=0;s<a;++s){const l=n.tracks[s],c=l.ValueTypeName;if(c==="bool"||c==="string")continue;const u=t.tracks.find(function(A){return A.name===l.name&&A.ValueTypeName===c});if(u===void 0)continue;let d=0;const h=l.getValueSize();l.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(d=h/3);let f=0;const p=u.getValueSize();u.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(f=p/3);const m=l.times.length-1;let g;if(o<=l.times[0]){const A=d,y=h-d;g=Zu.arraySlice(l.values,A,y)}else if(o>=l.times[m]){const A=m*h+d,y=A+h-d;g=Zu.arraySlice(l.values,A,y)}else{const A=l.createInterpolant(),y=d,S=h-d;A.evaluate(o),g=Zu.arraySlice(A.resultBuffer,y,S)}c==="quaternion"&&new Sp().fromArray(g).normalize().conjugate().toArray(g);const v=u.times.length;for(let A=0;A<v;++A){const y=A*p+f;if(c==="quaternion")Sp.multiplyQuaternionsFlat(u.values,y,g,0,u.values,y);else{const S=p-f*2;for(let x=0;x<S;++x)u.values[y+x]-=g[x]}}}return t.blendMode=jdt,t}};class KM{constructor(e,n,r,a){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=a!==void 0?a:new n.constructor(r),this.sampleValues=n,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}evaluate(e){const n=this.parameterPositions;let r=this._cachedIndex,a=n[r],o=n[r-1];e:{t:{let s;n:{r:if(!(e<a)){for(let l=r+2;;){if(a===void 0){if(e<o)break r;return r=n.length,this._cachedIndex=r,this.afterEnd_(r-1,e,o)}if(r===l)break;if(o=a,a=n[++r],e<a)break t}s=n.length;break n}if(!(e>=o)){const l=n[1];e<l&&(r=2,o=l);for(let c=r-2;;){if(o===void 0)return this._cachedIndex=0,this.beforeStart_(0,e,a);if(r===c)break;if(a=o,o=n[--r-1],e>=o)break t}s=r,r=0;break n}break e}for(;r<s;){const l=r+s>>>1;e<n[l]?s=l:r=l+1}if(a=n[r],o=n[r-1],o===void 0)return this._cachedIndex=0,this.beforeStart_(0,e,a);if(a===void 0)return r=n.length,this._cachedIndex=r,this.afterEnd_(r-1,o,e)}this._cachedIndex=r,this.intervalChanged_(r,o,a)}return this.interpolate_(r,o,e,a)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const n=this.resultBuffer,r=this.sampleValues,a=this.valueSize,o=e*a;for(let s=0;s!==a;++s)n[s]=r[o+s];return n}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}KM.prototype.beforeStart_=KM.prototype.copySampleValue_;KM.prototype.afterEnd_=KM.prototype.copySampleValue_;class str extends KM{constructor(e,n,r,a){super(e,n,r,a),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:cD,endingEnd:cD}}intervalChanged_(e,n,r){const a=this.parameterPositions;let o=e-2,s=e+1,l=a[o],c=a[s];if(l===void 0)switch(this.getSettings_().endingStart){case uD:o=e,l=2*n-r;break;case sie:o=a.length-2,l=n+a[o]-a[o+1];break;default:o=e,l=r}if(c===void 0)switch(this.getSettings_().endingEnd){case uD:s=e,c=2*r-n;break;case sie:s=1,c=r+a[1]-a[0];break;default:s=e-1,c=n}const u=(r-n)*.5,d=this.valueSize;this._weightPrev=u/(n-l),this._weightNext=u/(c-r),this._offsetPrev=o*d,this._offsetNext=s*d}interpolate_(e,n,r,a){const o=this.resultBuffer,s=this.sampleValues,l=this.valueSize,c=e*l,u=c-l,d=this._offsetPrev,h=this._offsetNext,f=this._weightPrev,p=this._weightNext,m=(r-n)/(a-n),g=m*m,v=g*m,A=-f*v+2*f*g-f*m,y=(1+f)*v+(-1.5-2*f)*g+(-.5+f)*m+1,S=(-1-p)*v+(1.5+p)*g+.5*m,x=p*v-p*g;for(let w=0;w!==l;++w)o[w]=A*s[d+w]+y*s[u+w]+S*s[c+w]+x*s[h+w];return o}}class cht extends KM{constructor(e,n,r,a){super(e,n,r,a)}interpolate_(e,n,r,a){const o=this.resultBuffer,s=this.sampleValues,l=this.valueSize,c=e*l,u=c-l,d=(r-n)/(a-n),h=1-d;for(let f=0;f!==l;++f)o[f]=s[u+f]*h+s[c+f]*d;return o}}class ltr extends KM{constructor(e,n,r,a){super(e,n,r,a)}interpolate_(e){return this.copySampleValue_(e-1)}}class c_{constructor(e,n,r,a){if(e===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(n===void 0||n.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=Zu.convertArray(n,this.TimeBufferType),this.values=Zu.convertArray(r,this.ValueBufferType),this.setInterpolation(a||this.DefaultInterpolation)}static toJSON(e){const n=e.constructor;let r;if(n.toJSON!==this.toJSON)r=n.toJSON(e);else{r={name:e.name,times:Zu.convertArray(e.times,Array),values:Zu.convertArray(e.values,Array)};const a=e.getInterpolation();a!==e.DefaultInterpolation&&(r.interpolation=a)}return r.type=e.ValueTypeName,r}InterpolantFactoryMethodDiscrete(e){return new ltr(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new cht(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new str(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let n;switch(e){case aie:n=this.InterpolantFactoryMethodDiscrete;break;case oie:n=this.InterpolantFactoryMethodLinear;break;case Wge:n=this.InterpolantFactoryMethodSmooth;break}if(n===void 0){const r="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(r);return console.warn("THREE.KeyframeTrack:",r),this}return this.createInterpolant=n,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return aie;case this.InterpolantFactoryMethodLinear:return oie;case this.InterpolantFactoryMethodSmooth:return Wge}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){const n=this.times;for(let r=0,a=n.length;r!==a;++r)n[r]+=e}return this}scale(e){if(e!==1){const n=this.times;for(let r=0,a=n.length;r!==a;++r)n[r]*=e}return this}trim(e,n){const r=this.times,a=r.length;let o=0,s=a-1;for(;o!==a&&r[o]<e;)++o;for(;s!==-1&&r[s]>n;)--s;if(++s,o!==0||s!==a){o>=s&&(s=Math.max(s,1),o=s-1);const l=this.getValueSize();this.times=Zu.arraySlice(r,o,s),this.values=Zu.arraySlice(this.values,o*l,s*l)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,a=this.values,o=r.length;o===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let s=null;for(let l=0;l!==o;l++){const c=r[l];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,l,c),e=!1;break}if(s!==null&&s>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,l,c,s),e=!1;break}s=c}if(a!==void 0&&Zu.isTypedArray(a))for(let l=0,c=a.length;l!==c;++l){const u=a[l];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,l,u),e=!1;break}}return e}optimize(){const e=Zu.arraySlice(this.times),n=Zu.arraySlice(this.values),r=this.getValueSize(),a=this.getInterpolation()===Wge,o=e.length-1;let s=1;for(let l=1;l<o;++l){let c=!1;const u=e[l],d=e[l+1];if(u!==d&&(l!==1||u!==e[0]))if(a)c=!0;else{const h=l*r,f=h-r,p=h+r;for(let m=0;m!==r;++m){const g=n[h+m];if(g!==n[f+m]||g!==n[p+m]){c=!0;break}}}if(c){if(l!==s){e[s]=e[l];const h=l*r,f=s*r;for(let p=0;p!==r;++p)n[f+p]=n[h+p]}++s}}if(o>0){e[s]=e[o];for(let l=o*r,c=s*r,u=0;u!==r;++u)n[c+u]=n[l+u];++s}return s!==e.length?(this.times=Zu.arraySlice(e,0,s),this.values=Zu.arraySlice(n,0,s*r)):(this.times=e,this.values=n),this}clone(){const e=Zu.arraySlice(this.times,0),n=Zu.arraySlice(this.values,0),r=this.constructor,a=new r(this.name,e,n);return a.createInterpolant=this.createInterpolant,a}}c_.prototype.TimeBufferType=Float32Array;c_.prototype.ValueBufferType=Float32Array;c_.prototype.DefaultInterpolation=oie;class q9 extends c_{}q9.prototype.ValueTypeName="bool";q9.prototype.ValueBufferType=Array;q9.prototype.DefaultInterpolation=aie;q9.prototype.InterpolantFactoryMethodLinear=void 0;q9.prototype.InterpolantFactoryMethodSmooth=void 0;class uht extends c_{}uht.prototype.ValueTypeName="color";class fie extends c_{}fie.prototype.ValueTypeName="number";class ctr extends KM{constructor(e,n,r,a){super(e,n,r,a)}interpolate_(e,n,r,a){const o=this.resultBuffer,s=this.sampleValues,l=this.valueSize,c=(r-n)/(a-n);let u=e*l;for(let d=u+l;u!==d;u+=4)Sp.slerpFlat(o,0,s,u-l,s,u,c);return o}}class UK extends c_{InterpolantFactoryMethodLinear(e){return new ctr(this.times,this.values,this.getValueSize(),e)}}UK.prototype.ValueTypeName="quaternion";UK.prototype.DefaultInterpolation=oie;UK.prototype.InterpolantFactoryMethodSmooth=void 0;class Y9 extends c_{}Y9.prototype.ValueTypeName="string";Y9.prototype.ValueBufferType=Array;Y9.prototype.DefaultInterpolation=aie;Y9.prototype.InterpolantFactoryMethodLinear=void 0;Y9.prototype.InterpolantFactoryMethodSmooth=void 0;class pie extends c_{}pie.prototype.ValueTypeName="vector";class mie{constructor(e,n=-1,r,a=eke){this.name=e,this.tracks=r,this.duration=n,this.blendMode=a,this.uuid=Vy(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],r=e.tracks,a=1/(e.fps||1);for(let s=0,l=r.length;s!==l;++s)n.push(Pls(r[s]).scale(a));const o=new this(e.name,e.duration,n,e.blendMode);return o.uuid=e.uuid,o}static toJSON(e){const n=[],r=e.tracks,a={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let o=0,s=r.length;o!==s;++o)n.push(c_.toJSON(r[o]));return a}static CreateFromMorphTargetSequence(e,n,r,a){const o=n.length,s=[];for(let l=0;l<o;l++){let c=[],u=[];c.push((l+o-1)%o,l,(l+1)%o),u.push(0,1,0);const d=Zu.getKeyframeOrder(c);c=Zu.sortedArray(c,1,d),u=Zu.sortedArray(u,1,d),!a&&c[0]===0&&(c.push(o),u.push(u[0])),s.push(new fie(".morphTargetInfluences["+n[l].name+"]",c,u).scale(1/r))}return new this(e,-1,s)}static findByName(e,n){let r=e;if(!Array.isArray(e)){const a=e;r=a.geometry&&a.geometry.animations||a.animations}for(let a=0;a<r.length;a++)if(r[a].name===n)return r[a];return null}static CreateClipsFromMorphTargetSequences(e,n,r){const a={},o=/^([\w-]*?)([\d]+)$/;for(let l=0,c=e.length;l<c;l++){const u=e[l],d=u.name.match(o);if(d&&d.length>1){const h=d[1];let f=a[h];f||(a[h]=f=[]),f.push(u)}}const s=[];for(const l in a)s.push(this.CreateFromMorphTargetSequence(l,a[l],n,r));return s}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(h,f,p,m,g){if(p.length!==0){const v=[],A=[];Zu.flattenJSON(p,v,A,m),v.length!==0&&g.push(new h(f,v,A))}},a=[],o=e.name||"default",s=e.fps||30,l=e.blendMode;let c=e.length||-1;const u=e.hierarchy||[];for(let h=0;h<u.length;h++){const f=u[h].keys;if(!(!f||f.length===0))if(f[0].morphTargets){const p={};let m;for(m=0;m<f.length;m++)if(f[m].morphTargets)for(let g=0;g<f[m].morphTargets.length;g++)p[f[m].morphTargets[g]]=-1;for(const g in p){const v=[],A=[];for(let y=0;y!==f[m].morphTargets.length;++y){const S=f[m];v.push(S.time),A.push(S.morphTarget===g?1:0)}a.push(new fie(".morphTargetInfluence["+g+"]",v,A))}c=p.length*s}else{const p=".bones["+n[h].name+"]";r(pie,p+".position",f,"pos",a),r(UK,p+".quaternion",f,"rot",a),r(pie,p+".scale",f,"scl",a)}}return a.length===0?null:new this(o,c,a,l)}resetDuration(){const e=this.tracks;let n=0;for(let r=0,a=e.length;r!==a;++r){const o=this.tracks[r];n=Math.max(n,o.times[o.times.length-1])}return this.duration=n,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let n=0;n<this.tracks.length;n++)e=e&&this.tracks[n].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let n=0;n<this.tracks.length;n++)e.push(this.tracks[n].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Ils(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return fie;case"vector":case"vector2":case"vector3":case"vector4":return pie;case"color":return uht;case"quaternion":return UK;case"bool":case"boolean":return q9;case"string":return Y9}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function Pls(t){if(t.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=Ils(t.type);if(t.times===void 0){const n=[],r=[];Zu.flattenJSON(t.keys,n,r,"value"),t.times=n,t.values=r}return e.parse!==void 0?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const _8={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class dht{constructor(e,n,r){const a=this;let o=!1,s=0,l=0,c;const u=[];this.onStart=void 0,this.onLoad=e,this.onProgress=n,this.onError=r,this.itemStart=function(d){l++,o===!1&&a.onStart!==void 0&&a.onStart(d,s,l),o=!0},this.itemEnd=function(d){s++,a.onProgress!==void 0&&a.onProgress(d,s,l),s===l&&(o=!1,a.onLoad!==void 0&&a.onLoad())},this.itemError=function(d){a.onError!==void 0&&a.onError(d)},this.resolveURL=function(d){return c?c(d):d},this.setURLModifier=function(d){return c=d,this},this.addHandler=function(d,h){return u.push(d,h),this},this.removeHandler=function(d){const h=u.indexOf(d);return h!==-1&&u.splice(h,2),this},this.getHandler=function(d){for(let h=0,f=u.length;h<f;h+=2){const p=u[h],m=u[h+1];if(p.global&&(p.lastIndex=0),p.test(d))return m}return null}}}const utr=new dht;class oA{constructor(e){this.manager=e!==void 0?e:utr,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,n){const r=this;return new Promise(function(a,o){r.load(e,a,n,o)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}const eR={};class cC extends oA{constructor(e){super(e)}load(e,n,r,a){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const o=_8.get(e);if(o!==void 0)return this.manager.itemStart(e),setTimeout(()=>{n&&n(o),this.manager.itemEnd(e)},0),o;if(eR[e]!==void 0){eR[e].push({onLoad:n,onProgress:r,onError:a});return}eR[e]=[],eR[e].push({onLoad:n,onProgress:r,onError:a});const s=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),l=this.mimeType,c=this.responseType;fetch(s).then(u=>{if(u.status===200||u.status===0){if(u.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||u.body===void 0||u.body.getReader===void 0)return u;const d=eR[e],h=u.body.getReader(),f=u.headers.get("Content-Length"),p=f?parseInt(f):0,m=p!==0;let g=0;const v=new ReadableStream({start(A){y();function y(){h.read().then(({done:S,value:x})=>{if(S)A.close();else{g+=x.byteLength;const w=new ProgressEvent("progress",{lengthComputable:m,loaded:g,total:p});for(let _=0,C=d.length;_<C;_++){const R=d[_];R.onProgress&&R.onProgress(w)}A.enqueue(x),y()}})}}});return new Response(v)}else throw Error(`fetch for "${u.url}" responded with ${u.status}: ${u.statusText}`)}).then(u=>{switch(c){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(d=>new DOMParser().parseFromString(d,l));case"json":return u.json();default:if(l===void 0)return u.text();{const h=/charset="?([^;"\s]*)"?/i.exec(l),f=h&&h[1]?h[1].toLowerCase():void 0,p=new TextDecoder(f);return u.arrayBuffer().then(m=>p.decode(m))}}}).then(u=>{_8.add(e,u);const d=eR[e];delete eR[e];for(let h=0,f=d.length;h<f;h++){const p=d[h];p.onLoad&&p.onLoad(u)}}).catch(u=>{const d=eR[e];if(d===void 0)throw this.manager.itemError(e),u;delete eR[e];for(let h=0,f=d.length;h<f;h++){const p=d[h];p.onError&&p.onError(u)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Ols extends oA{constructor(e){super(e)}load(e,n,r,a){const o=this,s=new cC(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,function(l){try{n(o.parse(JSON.parse(l)))}catch(c){a?a(c):console.error(c),o.manager.itemError(e)}},r,a)}parse(e){const n=[];for(let r=0;r<e.length;r++){const a=mie.parse(e[r]);n.push(a)}return n}}class Lls extends oA{constructor(e){super(e)}load(e,n,r,a){const o=this,s=[],l=new Wdt,c=new cC(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(o.withCredentials);let u=0;function d(h){c.load(e[h],function(f){const p=o.parse(f,!0);s[h]={width:p.width,height:p.height,format:p.format,mipmaps:p.mipmaps},u+=1,u===6&&(p.mipmapCount===1&&(l.minFilter=Hh),l.image=s,l.format=p.format,l.needsUpdate=!0,n&&n(l))},r,a)}if(Array.isArray(e))for(let h=0,f=e.length;h<f;++h)d(h);else c.load(e,function(h){const f=o.parse(h,!0);if(f.isCubemap){const p=f.mipmaps.length/f.mipmapCount;for(let m=0;m<p;m++){s[m]={mipmaps:[]};for(let g=0;g<f.mipmapCount;g++)s[m].mipmaps.push(f.mipmaps[m*f.mipmapCount+g]),s[m].format=f.format,s[m].width=f.width,s[m].height=f.height}l.image=s}else l.image.width=f.width,l.image.height=f.height,l.mipmaps=f.mipmaps;f.mipmapCount===1&&(l.minFilter=Hh),l.format=f.format,l.needsUpdate=!0,n&&n(l)},r,a);return l}}class gie extends oA{constructor(e){super(e)}load(e,n,r,a){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,s=_8.get(e);if(s!==void 0)return o.manager.itemStart(e),setTimeout(function(){n&&n(s),o.manager.itemEnd(e)},0),s;const l=cie("img");function c(){d(),_8.add(e,this),n&&n(this),o.manager.itemEnd(e)}function u(h){d(),a&&a(h),o.manager.itemError(e),o.manager.itemEnd(e)}function d(){l.removeEventListener("load",c,!1),l.removeEventListener("error",u,!1)}return l.addEventListener("load",c,!1),l.addEventListener("error",u,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(l.crossOrigin=this.crossOrigin),o.manager.itemStart(e),l.src=e,l}}class dtr extends oA{constructor(e){super(e)}load(e,n,r,a){const o=new jK,s=new gie(this.manager);s.setCrossOrigin(this.crossOrigin),s.setPath(this.path);let l=0;function c(u){s.load(e[u],function(d){o.images[u]=d,l++,l===6&&(o.needsUpdate=!0,n&&n(o))},void 0,a)}for(let u=0;u<e.length;++u)c(u);return o}}class htr extends oA{constructor(e){super(e)}load(e,n,r,a){const o=this,s=new XD,l=new cC(this.manager);return l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setPath(this.path),l.setWithCredentials(o.withCredentials),l.load(e,function(c){const u=o.parse(c);u&&(u.image!==void 0?s.image=u.image:u.data!==void 0&&(s.image.width=u.width,s.image.height=u.height,s.image.data=u.data),s.wrapS=u.wrapS!==void 0?u.wrapS:I0,s.wrapT=u.wrapT!==void 0?u.wrapT:I0,s.magFilter=u.magFilter!==void 0?u.magFilter:Hh,s.minFilter=u.minFilter!==void 0?u.minFilter:Hh,s.anisotropy=u.anisotropy!==void 0?u.anisotropy:1,u.encoding!==void 0&&(s.encoding=u.encoding),u.flipY!==void 0&&(s.flipY=u.flipY),u.format!==void 0&&(s.format=u.format),u.type!==void 0&&(s.type=u.type),u.mipmaps!==void 0&&(s.mipmaps=u.mipmaps,s.minFilter=V9),u.mipmapCount===1&&(s.minFilter=Hh),u.generateMipmaps!==void 0&&(s.generateMipmaps=u.generateMipmaps),s.needsUpdate=!0,n&&n(s,u))},r,a),s}}class ftr extends oA{constructor(e){super(e)}load(e,n,r,a){const o=new Ah,s=new gie(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(e,function(l){o.image=l,o.needsUpdate=!0,n!==void 0&&n(o)},r,a),o}}class Hw extends zs{constructor(e,n=1){super(),this.type="Light",this.color=new ci(e),this.intensity=n}dispose(){}copy(e){return super.copy(e),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),n}}Hw.prototype.isLight=!0;class hht extends Hw{constructor(e,n,r){super(e,r),this.type="HemisphereLight",this.position.copy(zs.DefaultUp),this.updateMatrix(),this.groundColor=new ci(n)}copy(e){return Hw.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}hht.prototype.isHemisphereLight=!0;const qHt=new da,YHt=new et,JHt=new et;class fht{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Qn(512,512),this.map=null,this.mapPass=null,this.matrix=new da,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new lle,this._frameExtents=new Qn(1,1),this._viewportCount=1,this._viewports=[new Ac(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,r=this.matrix;YHt.setFromMatrixPosition(e.matrixWorld),n.position.copy(YHt),JHt.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(JHt),n.updateMatrixWorld(),qHt.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(qHt),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(n.projectionMatrix),r.multiply(n.matrixWorldInverse)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class ptr extends fht{constructor(){super(new Xu(50,1,.5,500)),this.focus=1}updateMatrices(e){const n=this.camera,r=lie*2*e.angle*this.focus,a=this.mapSize.width/this.mapSize.height,o=e.distance||n.far;(r!==n.fov||a!==n.aspect||o!==n.far)&&(n.fov=r,n.aspect=a,n.far=o,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}ptr.prototype.isSpotLightShadow=!0;class pht extends Hw{constructor(e,n,r=0,a=Math.PI/3,o=0,s=1){super(e,n),this.type="SpotLight",this.position.copy(zs.DefaultUp),this.updateMatrix(),this.target=new zs,this.distance=r,this.angle=a,this.penumbra=o,this.decay=s,this.shadow=new ptr}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}pht.prototype.isSpotLight=!0;const ZHt=new da,KJ=new et,J7e=new et;class mtr extends fht{constructor(){super(new Xu(90,1,.5,500)),this._frameExtents=new Qn(4,2),this._viewportCount=6,this._viewports=[new Ac(2,1,1,1),new Ac(0,1,1,1),new Ac(3,1,1,1),new Ac(1,1,1,1),new Ac(3,0,1,1),new Ac(1,0,1,1)],this._cubeDirections=[new et(1,0,0),new et(-1,0,0),new et(0,0,1),new et(0,0,-1),new et(0,1,0),new et(0,-1,0)],this._cubeUps=[new et(0,1,0),new et(0,1,0),new et(0,1,0),new et(0,1,0),new et(0,0,1),new et(0,0,-1)]}updateMatrices(e,n=0){const r=this.camera,a=this.matrix,o=e.distance||r.far;o!==r.far&&(r.far=o,r.updateProjectionMatrix()),KJ.setFromMatrixPosition(e.matrixWorld),r.position.copy(KJ),J7e.copy(r.position),J7e.add(this._cubeDirections[n]),r.up.copy(this._cubeUps[n]),r.lookAt(J7e),r.updateMatrixWorld(),a.makeTranslation(-KJ.x,-KJ.y,-KJ.z),ZHt.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ZHt)}}mtr.prototype.isPointLightShadow=!0;class mht extends Hw{constructor(e,n,r=0,a=1){super(e,n),this.type="PointLight",this.distance=r,this.decay=a,this.shadow=new mtr}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}mht.prototype.isPointLight=!0;class gtr extends fht{constructor(){super(new Cx(-5,5,5,-5,.5,500))}}gtr.prototype.isDirectionalLightShadow=!0;class ght extends Hw{constructor(e,n){super(e,n),this.type="DirectionalLight",this.position.copy(zs.DefaultUp),this.updateMatrix(),this.target=new zs,this.shadow=new gtr}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}ght.prototype.isDirectionalLight=!0;class vht extends Hw{constructor(e,n){super(e,n),this.type="AmbientLight"}}vht.prototype.isAmbientLight=!0;class Aht extends Hw{constructor(e,n,r=10,a=10){super(e,n),this.type="RectAreaLight",this.width=r,this.height=a}get power(){return this.intensity*this.width*this.height*Math.PI}set power(e){this.intensity=e/(this.width*this.height*Math.PI)}copy(e){return super.copy(e),this.width=e.width,this.height=e.height,this}toJSON(e){const n=super.toJSON(e);return n.object.width=this.width,n.object.height=this.height,n}}Aht.prototype.isRectAreaLight=!0;class yht{constructor(){this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new et)}set(e){for(let n=0;n<9;n++)this.coefficients[n].copy(e[n]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,n){const r=e.x,a=e.y,o=e.z,s=this.coefficients;return n.copy(s[0]).multiplyScalar(.282095),n.addScaledVector(s[1],.488603*a),n.addScaledVector(s[2],.488603*o),n.addScaledVector(s[3],.488603*r),n.addScaledVector(s[4],1.092548*(r*a)),n.addScaledVector(s[5],1.092548*(a*o)),n.addScaledVector(s[6],.315392*(3*o*o-1)),n.addScaledVector(s[7],1.092548*(r*o)),n.addScaledVector(s[8],.546274*(r*r-a*a)),n}getIrradianceAt(e,n){const r=e.x,a=e.y,o=e.z,s=this.coefficients;return n.copy(s[0]).multiplyScalar(.886227),n.addScaledVector(s[1],2*.511664*a),n.addScaledVector(s[2],2*.511664*o),n.addScaledVector(s[3],2*.511664*r),n.addScaledVector(s[4],2*.429043*r*a),n.addScaledVector(s[5],2*.429043*a*o),n.addScaledVector(s[6],.743125*o*o-.247708),n.addScaledVector(s[7],2*.429043*r*o),n.addScaledVector(s[8],.429043*(r*r-a*a)),n}add(e){for(let n=0;n<9;n++)this.coefficients[n].add(e.coefficients[n]);return this}addScaledSH(e,n){for(let r=0;r<9;r++)this.coefficients[r].addScaledVector(e.coefficients[r],n);return this}scale(e){for(let n=0;n<9;n++)this.coefficients[n].multiplyScalar(e);return this}lerp(e,n){for(let r=0;r<9;r++)this.coefficients[r].lerp(e.coefficients[r],n);return this}equals(e){for(let n=0;n<9;n++)if(!this.coefficients[n].equals(e.coefficients[n]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return new this.constructor().copy(this)}fromArray(e,n=0){const r=this.coefficients;for(let a=0;a<9;a++)r[a].fromArray(e,n+a*3);return this}toArray(e=[],n=0){const r=this.coefficients;for(let a=0;a<9;a++)r[a].toArray(e,n+a*3);return e}static getBasisAt(e,n){const r=e.x,a=e.y,o=e.z;n[0]=.282095,n[1]=.488603*a,n[2]=.488603*o,n[3]=.488603*r,n[4]=1.092548*r*a,n[5]=1.092548*a*o,n[6]=.315392*(3*o*o-1),n[7]=1.092548*r*o,n[8]=.546274*(r*r-a*a)}}yht.prototype.isSphericalHarmonics3=!0;class mle extends Hw{constructor(e=new yht,n=1){super(void 0,n),this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}fromJSON(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}toJSON(e){const n=super.toJSON(e);return n.object.sh=this.sh.toArray(),n}}mle.prototype.isLightProbe=!0;class vtr extends oA{constructor(e){super(e),this.textures={}}load(e,n,r,a){const o=this,s=new cC(o.manager);s.setPath(o.path),s.setRequestHeader(o.requestHeader),s.setWithCredentials(o.withCredentials),s.load(e,function(l){try{n(o.parse(JSON.parse(l)))}catch(c){a?a(c):console.error(c),o.manager.itemError(e)}},r,a)}parse(e){const n=this.textures;function r(o){return n[o]===void 0&&console.warn("THREE.MaterialLoader: Undefined texture",o),n[o]}const a=cf.fromType(e.type);if(e.uuid!==void 0&&(a.uuid=e.uuid),e.name!==void 0&&(a.name=e.name),e.color!==void 0&&a.color!==void 0&&a.color.setHex(e.color),e.roughness!==void 0&&(a.roughness=e.roughness),e.metalness!==void 0&&(a.metalness=e.metalness),e.sheen!==void 0&&(a.sheen=e.sheen),e.sheenColor!==void 0&&(a.sheenColor=new ci().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(a.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&a.emissive!==void 0&&a.emissive.setHex(e.emissive),e.specular!==void 0&&a.specular!==void 0&&a.specular.setHex(e.specular),e.specularIntensity!==void 0&&(a.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&a.specularColor!==void 0&&a.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(a.shininess=e.shininess),e.clearcoat!==void 0&&(a.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(a.clearcoatRoughness=e.clearcoatRoughness),e.transmission!==void 0&&(a.transmission=e.transmission),e.thickness!==void 0&&(a.thickness=e.thickness),e.attenuationDistance!==void 0&&(a.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&a.attenuationColor!==void 0&&a.attenuationColor.setHex(e.attenuationColor),e.fog!==void 0&&(a.fog=e.fog),e.flatShading!==void 0&&(a.flatShading=e.flatShading),e.blending!==void 0&&(a.blending=e.blending),e.combine!==void 0&&(a.combine=e.combine),e.side!==void 0&&(a.side=e.side),e.shadowSide!==void 0&&(a.shadowSide=e.shadowSide),e.opacity!==void 0&&(a.opacity=e.opacity),e.transparent!==void 0&&(a.transparent=e.transparent),e.alphaTest!==void 0&&(a.alphaTest=e.alphaTest),e.depthTest!==void 0&&(a.depthTest=e.depthTest),e.depthWrite!==void 0&&(a.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(a.colorWrite=e.colorWrite),e.stencilWrite!==void 0&&(a.stencilWrite=e.stencilWrite),e.stencilWriteMask!==void 0&&(a.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(a.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(a.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(a.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(a.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(a.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(a.stencilZPass=e.stencilZPass),e.wireframe!==void 0&&(a.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(a.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(a.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(a.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(a.rotation=e.rotation),e.linewidth!==1&&(a.linewidth=e.linewidth),e.dashSize!==void 0&&(a.dashSize=e.dashSize),e.gapSize!==void 0&&(a.gapSize=e.gapSize),e.scale!==void 0&&(a.scale=e.scale),e.polygonOffset!==void 0&&(a.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(a.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(a.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(a.dithering=e.dithering),e.alphaToCoverage!==void 0&&(a.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(a.premultipliedAlpha=e.premultipliedAlpha),e.visible!==void 0&&(a.visible=e.visible),e.toneMapped!==void 0&&(a.toneMapped=e.toneMapped),e.userData!==void 0&&(a.userData=e.userData),e.vertexColors!==void 0&&(typeof e.vertexColors=="number"?a.vertexColors=e.vertexColors>0:a.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const o in e.uniforms){const s=e.uniforms[o];switch(a.uniforms[o]={},s.type){case"t":a.uniforms[o].value=r(s.value);break;case"c":a.uniforms[o].value=new ci().setHex(s.value);break;case"v2":a.uniforms[o].value=new Qn().fromArray(s.value);break;case"v3":a.uniforms[o].value=new et().fromArray(s.value);break;case"v4":a.uniforms[o].value=new Ac().fromArray(s.value);break;case"m3":a.uniforms[o].value=new bp().fromArray(s.value);break;case"m4":a.uniforms[o].value=new da().fromArray(s.value);break;default:a.uniforms[o].value=s.value}}if(e.defines!==void 0&&(a.defines=e.defines),e.vertexShader!==void 0&&(a.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(a.fragmentShader=e.fragmentShader),e.extensions!==void 0)for(const o in e.extensions)a.extensions[o]=e.extensions[o];if(e.shading!==void 0&&(a.flatShading=e.shading===1),e.size!==void 0&&(a.size=e.size),e.sizeAttenuation!==void 0&&(a.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(a.map=r(e.map)),e.matcap!==void 0&&(a.matcap=r(e.matcap)),e.alphaMap!==void 0&&(a.alphaMap=r(e.alphaMap)),e.bumpMap!==void 0&&(a.bumpMap=r(e.bumpMap)),e.bumpScale!==void 0&&(a.bumpScale=e.bumpScale),e.normalMap!==void 0&&(a.normalMap=r(e.normalMap)),e.normalMapType!==void 0&&(a.normalMapType=e.normalMapType),e.normalScale!==void 0){let o=e.normalScale;Array.isArray(o)===!1&&(o=[o,o]),a.normalScale=new Qn().fromArray(o)}return e.displacementMap!==void 0&&(a.displacementMap=r(e.displacementMap)),e.displacementScale!==void 0&&(a.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(a.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(a.roughnessMap=r(e.roughnessMap)),e.metalnessMap!==void 0&&(a.metalnessMap=r(e.metalnessMap)),e.emissiveMap!==void 0&&(a.emissiveMap=r(e.emissiveMap)),e.emissiveIntensity!==void 0&&(a.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(a.specularMap=r(e.specularMap)),e.specularIntensityMap!==void 0&&(a.specularIntensityMap=r(e.specularIntensityMap)),e.specularColorMap!==void 0&&(a.specularColorMap=r(e.specularColorMap)),e.envMap!==void 0&&(a.envMap=r(e.envMap)),e.envMapIntensity!==void 0&&(a.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(a.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(a.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(a.lightMap=r(e.lightMap)),e.lightMapIntensity!==void 0&&(a.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(a.aoMap=r(e.aoMap)),e.aoMapIntensity!==void 0&&(a.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(a.gradientMap=r(e.gradientMap)),e.clearcoatMap!==void 0&&(a.clearcoatMap=r(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(a.clearcoatRoughnessMap=r(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(a.clearcoatNormalMap=r(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(a.clearcoatNormalScale=new Qn().fromArray(e.clearcoatNormalScale)),e.transmissionMap!==void 0&&(a.transmissionMap=r(e.transmissionMap)),e.thicknessMap!==void 0&&(a.thicknessMap=r(e.thicknessMap)),e.sheenColorMap!==void 0&&(a.sheenColorMap=r(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(a.sheenRoughnessMap=r(e.sheenRoughnessMap)),a}setTextures(e){return this.textures=e,this}}class Sbe{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";for(let r=0,a=e.length;r<a;r++)n+=String.fromCharCode(e[r]);try{return decodeURIComponent(escape(n))}catch{return n}}static extractUrlBase(e){const n=e.lastIndexOf("/");return n===-1?"./":e.slice(0,n+1)}static resolveURL(e,n){return typeof e!="string"||e===""?"":(/^https?:\/\//i.test(n)&&/^\//.test(e)&&(n=n.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:n+e)}}class bht extends Ya{constructor(){super(),this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}clone(){return new this.constructor().copy(this)}toJSON(){const e=super.toJSON(this);return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}bht.prototype.isInstancedBufferGeometry=!0;class Atr extends oA{constructor(e){super(e)}load(e,n,r,a){const o=this,s=new cC(o.manager);s.setPath(o.path),s.setRequestHeader(o.requestHeader),s.setWithCredentials(o.withCredentials),s.load(e,function(l){try{n(o.parse(JSON.parse(l)))}catch(c){a?a(c):console.error(c),o.manager.itemError(e)}},r,a)}parse(e){const n={},r={};function a(p,m){if(n[m]!==void 0)return n[m];const v=p.interleavedBuffers[m],A=o(p,v.buffer),y=gj(v.type,A),S=new W9(y,v.stride);return S.uuid=v.uuid,n[m]=S,S}function o(p,m){if(r[m]!==void 0)return r[m];const v=p.arrayBuffers[m],A=new Uint32Array(v).buffer;return r[m]=A,A}const s=e.isInstancedBufferGeometry?new bht:new Ya,l=e.data.index;if(l!==void 0){const p=gj(l.type,l.array);s.setIndex(new bl(p,1))}const c=e.data.attributes;for(const p in c){const m=c[p];let g;if(m.isInterleavedBufferAttribute){const v=a(e.data,m.data);g=new zP(v,m.itemSize,m.offset,m.normalized)}else{const v=gj(m.type,m.array),A=m.isInstancedBufferAttribute?b8:bl;g=new A(v,m.itemSize,m.normalized)}m.name!==void 0&&(g.name=m.name),m.usage!==void 0&&g.setUsage(m.usage),m.updateRange!==void 0&&(g.updateRange.offset=m.updateRange.offset,g.updateRange.count=m.updateRange.count),s.setAttribute(p,g)}const u=e.data.morphAttributes;if(u)for(const p in u){const m=u[p],g=[];for(let v=0,A=m.length;v<A;v++){const y=m[v];let S;if(y.isInterleavedBufferAttribute){const x=a(e.data,y.data);S=new zP(x,y.itemSize,y.offset,y.normalized)}else{const x=gj(y.type,y.array);S=new bl(x,y.itemSize,y.normalized)}y.name!==void 0&&(S.name=y.name),g.push(S)}s.morphAttributes[p]=g}e.data.morphTargetsRelative&&(s.morphTargetsRelative=!0);const h=e.data.groups||e.data.drawcalls||e.data.offsets;if(h!==void 0)for(let p=0,m=h.length;p!==m;++p){const g=h[p];s.addGroup(g.start,g.count,g.materialIndex)}const f=e.data.boundingSphere;if(f!==void 0){const p=new et;f.center!==void 0&&p.fromArray(f.center),s.boundingSphere=new PO(p,f.radius)}return e.name&&(s.name=e.name),e.userData&&(s.userData=e.userData),s}}class Bls extends oA{constructor(e){super(e)}load(e,n,r,a){const o=this,s=this.path===""?Sbe.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||s;const l=new cC(this.manager);l.setPath(this.path),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,function(c){let u=null;try{u=JSON.parse(c)}catch(h){a!==void 0&&a(h),console.error("THREE:ObjectLoader: Can't parse "+e+".",h.message);return}const d=u.metadata;if(d===void 0||d.type===void 0||d.type.toLowerCase()==="geometry"){console.error("THREE.ObjectLoader: Can't load "+e);return}o.parse(u,n)},r,a)}async loadAsync(e,n){const r=this,a=this.path===""?Sbe.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||a;const o=new cC(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials);const s=await o.loadAsync(e,n),l=JSON.parse(s),c=l.metadata;if(c===void 0||c.type===void 0||c.type.toLowerCase()==="geometry")throw new Error("THREE.ObjectLoader: Can't load "+e);return await r.parseAsync(l)}parse(e,n){const r=this.parseAnimations(e.animations),a=this.parseShapes(e.shapes),o=this.parseGeometries(e.geometries,a),s=this.parseImages(e.images,function(){n!==void 0&&n(u)}),l=this.parseTextures(e.textures,s),c=this.parseMaterials(e.materials,l),u=this.parseObject(e.object,o,c,l,r),d=this.parseSkeletons(e.skeletons,u);if(this.bindSkeletons(u,d),n!==void 0){let h=!1;for(const f in s)if(s[f]instanceof HTMLImageElement){h=!0;break}h===!1&&n(u)}return u}async parseAsync(e){const n=this.parseAnimations(e.animations),r=this.parseShapes(e.shapes),a=this.parseGeometries(e.geometries,r),o=await this.parseImagesAsync(e.images),s=this.parseTextures(e.textures,o),l=this.parseMaterials(e.materials,s),c=this.parseObject(e.object,a,l,s,n),u=this.parseSkeletons(e.skeletons,c);return this.bindSkeletons(c,u),c}parseShapes(e){const n={};if(e!==void 0)for(let r=0,a=e.length;r<a;r++){const o=new B2().fromJSON(e[r]);n[o.uuid]=o}return n}parseSkeletons(e,n){const r={},a={};if(n.traverse(function(o){o.isBone&&(a[o.uuid]=o)}),e!==void 0)for(let o=0,s=e.length;o<s;o++){const l=new hke().fromJSON(e[o],a);r[l.uuid]=l}return r}parseGeometries(e,n){const r={};if(e!==void 0){const a=new Atr;for(let o=0,s=e.length;o<s;o++){let l;const c=e[o];switch(c.type){case"BufferGeometry":case"InstancedBufferGeometry":l=a.parse(c);break;case"Geometry":console.error("THREE.ObjectLoader: The legacy Geometry type is no longer supported.");break;default:c.type in QHt?l=QHt[c.type].fromJSON(c,n):console.warn(`THREE.ObjectLoader: Unsupported geometry type "${c.type}"`)}l.uuid=c.uuid,c.name!==void 0&&(l.name=c.name),l.isBufferGeometry===!0&&c.userData!==void 0&&(l.userData=c.userData),r[c.uuid]=l}}return r}parseMaterials(e,n){const r={},a={};if(e!==void 0){const o=new vtr;o.setTextures(n);for(let s=0,l=e.length;s<l;s++){const c=e[s];if(c.type==="MultiMaterial"){const u=[];for(let d=0;d<c.materials.length;d++){const h=c.materials[d];r[h.uuid]===void 0&&(r[h.uuid]=o.parse(h)),u.push(r[h.uuid])}a[c.uuid]=u}else r[c.uuid]===void 0&&(r[c.uuid]=o.parse(c)),a[c.uuid]=r[c.uuid]}}return a}parseAnimations(e){const n={};if(e!==void 0)for(let r=0;r<e.length;r++){const a=e[r],o=mie.parse(a);n[o.uuid]=o}return n}parseImages(e,n){const r=this,a={};let o;function s(c){return r.manager.itemStart(c),o.load(c,function(){r.manager.itemEnd(c)},void 0,function(){r.manager.itemError(c),r.manager.itemEnd(c)})}function l(c){if(typeof c=="string"){const u=c,d=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(u)?u:r.resourcePath+u;return s(d)}else return c.data?{data:gj(c.type,c.data),width:c.width,height:c.height}:null}if(e!==void 0&&e.length>0){const c=new dht(n);o=new gie(c),o.setCrossOrigin(this.crossOrigin);for(let u=0,d=e.length;u<d;u++){const h=e[u],f=h.url;if(Array.isArray(f)){const p=[];for(let m=0,g=f.length;m<g;m++){const v=f[m],A=l(v);A!==null&&(A instanceof HTMLImageElement?p.push(A):p.push(new XD(A.data,A.width,A.height)))}a[h.uuid]=new dD(p)}else{const p=l(h.url);a[h.uuid]=new dD(p)}}}return a}async parseImagesAsync(e){const n=this,r={};let a;async function o(s){if(typeof s=="string"){const l=s,c=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(l)?l:n.resourcePath+l;return await a.loadAsync(c)}else return s.data?{data:gj(s.type,s.data),width:s.width,height:s.height}:null}if(e!==void 0&&e.length>0){a=new gie(this.manager),a.setCrossOrigin(this.crossOrigin);for(let s=0,l=e.length;s<l;s++){const c=e[s],u=c.url;if(Array.isArray(u)){const d=[];for(let h=0,f=u.length;h<f;h++){const p=u[h],m=await o(p);m!==null&&(m instanceof HTMLImageElement?d.push(m):d.push(new XD(m.data,m.width,m.height)))}r[c.uuid]=new dD(d)}else{const d=await o(c.url);r[c.uuid]=new dD(d)}}}return r}parseTextures(e,n){function r(o,s){return typeof o=="number"?o:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",o),s[o])}const a={};if(e!==void 0)for(let o=0,s=e.length;o<s;o++){const l=e[o];l.image===void 0&&console.warn('THREE.ObjectLoader: No "image" specified for',l.uuid),n[l.image]===void 0&&console.warn("THREE.ObjectLoader: Undefined image",l.image);const c=n[l.image],u=c.data;let d;Array.isArray(u)?(d=new jK,u.length===6&&(d.needsUpdate=!0)):(u&&u.data?d=new XD:d=new Ah,u&&(d.needsUpdate=!0)),d.source=c,d.uuid=l.uuid,l.name!==void 0&&(d.name=l.name),l.mapping!==void 0&&(d.mapping=r(l.mapping,Dls)),l.offset!==void 0&&d.offset.fromArray(l.offset),l.repeat!==void 0&&d.repeat.fromArray(l.repeat),l.center!==void 0&&d.center.fromArray(l.center),l.rotation!==void 0&&(d.rotation=l.rotation),l.wrap!==void 0&&(d.wrapS=r(l.wrap[0],XHt),d.wrapT=r(l.wrap[1],XHt)),l.format!==void 0&&(d.format=l.format),l.type!==void 0&&(d.type=l.type),l.encoding!==void 0&&(d.encoding=l.encoding),l.minFilter!==void 0&&(d.minFilter=r(l.minFilter,eUt)),l.magFilter!==void 0&&(d.magFilter=r(l.magFilter,eUt)),l.anisotropy!==void 0&&(d.anisotropy=l.anisotropy),l.flipY!==void 0&&(d.flipY=l.flipY),l.premultiplyAlpha!==void 0&&(d.premultiplyAlpha=l.premultiplyAlpha),l.unpackAlignment!==void 0&&(d.unpackAlignment=l.unpackAlignment),l.userData!==void 0&&(d.userData=l.userData),a[l.uuid]=d}return a}parseObject(e,n,r,a,o){let s;function l(f){return n[f]===void 0&&console.warn("THREE.ObjectLoader: Undefined geometry",f),n[f]}function c(f){if(f!==void 0){if(Array.isArray(f)){const p=[];for(let m=0,g=f.length;m<g;m++){const v=f[m];r[v]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",v),p.push(r[v])}return p}return r[f]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",f),r[f]}}function u(f){return a[f]===void 0&&console.warn("THREE.ObjectLoader: Undefined texture",f),a[f]}let d,h;switch(e.type){case"Scene":s=new dle,e.background!==void 0&&(Number.isInteger(e.background)?s.background=new ci(e.background):s.background=u(e.background)),e.environment!==void 0&&(s.environment=u(e.environment)),e.fog!==void 0&&(e.fog.type==="Fog"?s.fog=new ule(e.fog.color,e.fog.near,e.fog.far):e.fog.type==="FogExp2"&&(s.fog=new cle(e.fog.color,e.fog.density)));break;case"PerspectiveCamera":s=new Xu(e.fov,e.aspect,e.near,e.far),e.focus!==void 0&&(s.focus=e.focus),e.zoom!==void 0&&(s.zoom=e.zoom),e.filmGauge!==void 0&&(s.filmGauge=e.filmGauge),e.filmOffset!==void 0&&(s.filmOffset=e.filmOffset),e.view!==void 0&&(s.view=Object.assign({},e.view));break;case"OrthographicCamera":s=new Cx(e.left,e.right,e.top,e.bottom,e.near,e.far),e.zoom!==void 0&&(s.zoom=e.zoom),e.view!==void 0&&(s.view=Object.assign({},e.view));break;case"AmbientLight":s=new vht(e.color,e.intensity);break;case"DirectionalLight":s=new ght(e.color,e.intensity);break;case"PointLight":s=new mht(e.color,e.intensity,e.distance,e.decay);break;case"RectAreaLight":s=new Aht(e.color,e.intensity,e.width,e.height);break;case"SpotLight":s=new pht(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay);break;case"HemisphereLight":s=new hht(e.color,e.groundColor,e.intensity);break;case"LightProbe":s=new mle().fromJSON(e);break;case"SkinnedMesh":d=l(e.geometry),h=c(e.material),s=new uke(d,h),e.bindMode!==void 0&&(s.bindMode=e.bindMode),e.bindMatrix!==void 0&&s.bindMatrix.fromArray(e.bindMatrix),e.skeleton!==void 0&&(s.skeleton=e.skeleton);break;case"Mesh":d=l(e.geometry),h=c(e.material),s=new Bf(d,h);break;case"InstancedMesh":d=l(e.geometry),h=c(e.material);const f=e.count,p=e.instanceMatrix,m=e.instanceColor;s=new Vdt(d,h,f),s.instanceMatrix=new b8(new Float32Array(p.array),16),m!==void 0&&(s.instanceColor=new b8(new Float32Array(m.array),m.itemSize));break;case"LOD":s=new Zer;break;case"Line":s=new VM(l(e.geometry),c(e.material));break;case"LineLoop":s=new Kdt(l(e.geometry),c(e.material));break;case"LineSegments":s=new u1(l(e.geometry),c(e.material));break;case"PointCloud":case"Points":s=new hle(l(e.geometry),c(e.material));break;case"Sprite":s=new cke(c(e.material));break;case"Group":s=new hD;break;case"Bone":s=new dke;break;default:s=new zs}if(s.uuid=e.uuid,e.name!==void 0&&(s.name=e.name),e.matrix!==void 0?(s.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(s.matrixAutoUpdate=e.matrixAutoUpdate),s.matrixAutoUpdate&&s.matrix.decompose(s.position,s.quaternion,s.scale)):(e.position!==void 0&&s.position.fromArray(e.position),e.rotation!==void 0&&s.rotation.fromArray(e.rotation),e.quaternion!==void 0&&s.quaternion.fromArray(e.quaternion),e.scale!==void 0&&s.scale.fromArray(e.scale)),e.castShadow!==void 0&&(s.castShadow=e.castShadow),e.receiveShadow!==void 0&&(s.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.bias!==void 0&&(s.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(s.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(s.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&s.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(s.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(s.visible=e.visible),e.frustumCulled!==void 0&&(s.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(s.renderOrder=e.renderOrder),e.userData!==void 0&&(s.userData=e.userData),e.layers!==void 0&&(s.layers.mask=e.layers),e.children!==void 0){const f=e.children;for(let p=0;p<f.length;p++)s.add(this.parseObject(f[p],n,r,a,o))}if(e.animations!==void 0){const f=e.animations;for(let p=0;p<f.length;p++){const m=f[p];s.animations.push(o[m])}}if(e.type==="LOD"){e.autoUpdate!==void 0&&(s.autoUpdate=e.autoUpdate);const f=e.levels;for(let p=0;p<f.length;p++){const m=f[p],g=s.getObjectByProperty("uuid",m.object);g!==void 0&&s.addLevel(g,m.distance)}}return s}bindSkeletons(e,n){Object.keys(n).length!==0&&e.traverse(function(r){if(r.isSkinnedMesh===!0&&r.skeleton!==void 0){const a=n[r.skeleton];a===void 0?console.warn("THREE.ObjectLoader: No skeleton found with UUID:",r.skeleton):r.bind(a,r.bindMatrix)}})}setTexturePath(e){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(e)}}const Dls={UVMapping:XCe,CubeReflectionMapping:jP,CubeRefractionMapping:HP,EquirectangularReflectionMapping:tie,EquirectangularRefractionMapping:nie,CubeUVReflectionMapping:$K},XHt={RepeatWrapping:rie,ClampToEdgeWrapping:I0,MirroredRepeatWrapping:iie},eUt={NearestFilter:Pf,NearestMipmapNearestFilter:ybe,NearestMipmapLinearFilter:bbe,LinearFilter:Hh,LinearMipmapNearestFilter:Fdt,LinearMipmapLinearFilter:V9};class ytr extends oA{constructor(e){super(e),typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,n,r,a){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,s=_8.get(e);if(s!==void 0)return o.manager.itemStart(e),setTimeout(function(){n&&n(s),o.manager.itemEnd(e)},0),s;const l={};l.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",l.headers=this.requestHeader,fetch(e,l).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(o.options,{colorSpaceConversion:"none"}))}).then(function(c){_8.add(e,c),n&&n(c),o.manager.itemEnd(e)}).catch(function(c){a&&a(c),o.manager.itemError(e),o.manager.itemEnd(e)}),o.manager.itemStart(e)}}ytr.prototype.isImageBitmapLoader=!0;let Ape;const xht={getContext:function(){return Ape===void 0&&(Ape=new(window.AudioContext||window.webkitAudioContext)),Ape},setContext:function(t){Ape=t}};class btr extends oA{constructor(e){super(e)}load(e,n,r,a){const o=this,s=new cC(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,function(l){try{const c=l.slice(0);xht.getContext().decodeAudioData(c,function(d){n(d)})}catch(c){a?a(c):console.error(c),o.manager.itemError(e)}},r,a)}}class xtr extends mle{constructor(e,n,r=1){super(void 0,r);const a=new ci().set(e),o=new ci().set(n),s=new et(a.r,a.g,a.b),l=new et(o.r,o.g,o.b),c=Math.sqrt(Math.PI),u=c*Math.sqrt(.75);this.sh.coefficients[0].copy(s).add(l).multiplyScalar(c),this.sh.coefficients[1].copy(s).sub(l).multiplyScalar(u)}}xtr.prototype.isHemisphereLightProbe=!0;class Etr extends mle{constructor(e,n=1){super(void 0,n);const r=new ci().set(e);this.sh.coefficients[0].set(r.r,r.g,r.b).multiplyScalar(2*Math.sqrt(Math.PI))}}Etr.prototype.isAmbientLightProbe=!0;const tUt=new da,nUt=new da,BL=new da;class $ls{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Xu,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Xu,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const n=this._cache;if(n.focus!==e.focus||n.fov!==e.fov||n.aspect!==e.aspect*this.aspect||n.near!==e.near||n.far!==e.far||n.zoom!==e.zoom||n.eyeSep!==this.eyeSep){n.focus=e.focus,n.fov=e.fov,n.aspect=e.aspect*this.aspect,n.near=e.near,n.far=e.far,n.zoom=e.zoom,n.eyeSep=this.eyeSep,BL.copy(e.projectionMatrix);const a=n.eyeSep/2,o=a*n.near/n.focus,s=n.near*Math.tan(YD*n.fov*.5)/n.zoom;let l,c;nUt.elements[12]=-a,tUt.elements[12]=a,l=-s*n.aspect+o,c=s*n.aspect+o,BL.elements[0]=2*n.near/(c-l),BL.elements[8]=(c+l)/(c-l),this.cameraL.projectionMatrix.copy(BL),l=-s*n.aspect-o,c=s*n.aspect-o,BL.elements[0]=2*n.near/(c-l),BL.elements[8]=(c+l)/(c-l),this.cameraR.projectionMatrix.copy(BL)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(nUt),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(tUt)}}class Eht{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=rUt(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const n=rUt();e=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=e}return e}}function rUt(){return(typeof performance>"u"?Date:performance).now()}const DL=new et,iUt=new Sp,Fls=new et,$L=new et;class jls extends zs{constructor(){super(),this.type="AudioListener",this.context=xht.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Eht}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const n=this.context.listener,r=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(DL,iUt,Fls),$L.set(0,0,-1).applyQuaternion(iUt),n.positionX){const a=this.context.currentTime+this.timeDelta;n.positionX.linearRampToValueAtTime(DL.x,a),n.positionY.linearRampToValueAtTime(DL.y,a),n.positionZ.linearRampToValueAtTime(DL.z,a),n.forwardX.linearRampToValueAtTime($L.x,a),n.forwardY.linearRampToValueAtTime($L.y,a),n.forwardZ.linearRampToValueAtTime($L.z,a),n.upX.linearRampToValueAtTime(r.x,a),n.upY.linearRampToValueAtTime(r.y,a),n.upZ.linearRampToValueAtTime(r.z,a)}else n.setPosition(DL.x,DL.y,DL.z),n.setOrientation($L.x,$L.y,$L.z,r.x,r.y,r.z)}}class Sht extends zs{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const n=this.context.createBufferSource();return n.buffer=this.buffer,n.loop=this.loop,n.loopStart=this.loopStart,n.loopEnd=this.loopEnd,n.onended=this.onEnded.bind(this),n.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=n,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,n=this.filters.length;e<n;e++)this.filters[e-1].connect(this.filters[e]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let e=1,n=this.filters.length;e<n;e++)this.filters[e-1].disconnect(this.filters[e]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}getFilters(){return this.filters}setFilters(e){return e||(e=[]),this._connected===!0?(this.disconnect(),this.filters=e.slice(),this.connect()):this.filters=e.slice(),this}setDetune(e){if(this.detune=e,this.source.detune!==void 0)return this.isPlaying===!0&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(e){return this.setFilters(e?[e]:[])}setPlaybackRate(e){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.playbackRate=e,this.isPlaying===!0&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return this.hasPlaybackControl===!1?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(e){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.loop=e,this.isPlaying===!0&&(this.source.loop=this.loop),this}setLoopStart(e){return this.loopStart=e,this}setLoopEnd(e){return this.loopEnd=e,this}getVolume(){return this.gain.gain.value}setVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}}const FL=new et,aUt=new Sp,Hls=new et,jL=new et;class Uls extends Sht{constructor(e){super(e),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}disconnect(){super.disconnect(),this.panner.disconnect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(e){return this.panner.refDistance=e,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(e){return this.panner.rolloffFactor=e,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(e){return this.panner.distanceModel=e,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(e){return this.panner.maxDistance=e,this}setDirectionalCone(e,n,r){return this.panner.coneInnerAngle=e,this.panner.coneOuterAngle=n,this.panner.coneOuterGain=r,this}updateMatrixWorld(e){if(super.updateMatrixWorld(e),this.hasPlaybackControl===!0&&this.isPlaying===!1)return;this.matrixWorld.decompose(FL,aUt,Hls),jL.set(0,0,1).applyQuaternion(aUt);const n=this.panner;if(n.positionX){const r=this.context.currentTime+this.listener.timeDelta;n.positionX.linearRampToValueAtTime(FL.x,r),n.positionY.linearRampToValueAtTime(FL.y,r),n.positionZ.linearRampToValueAtTime(FL.z,r),n.orientationX.linearRampToValueAtTime(jL.x,r),n.orientationY.linearRampToValueAtTime(jL.y,r),n.orientationZ.linearRampToValueAtTime(jL.z,r)}else n.setPosition(FL.x,FL.y,FL.z),n.setOrientation(jL.x,jL.y,jL.z)}}class Str{constructor(e,n=2048){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=n,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let e=0;const n=this.getFrequencyData();for(let r=0;r<n.length;r++)e+=n[r];return e/n.length}}class wtr{constructor(e,n,r){this.binding=e,this.valueSize=r;let a,o,s;switch(n){case"quaternion":a=this._slerp,o=this._slerpAdditive,s=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(r*6),this._workIndex=5;break;case"string":case"bool":a=this._select,o=this._select,s=this._setAdditiveIdentityOther,this.buffer=new Array(r*5);break;default:a=this._lerp,o=this._lerpAdditive,s=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(r*5)}this._mixBufferRegion=a,this._mixBufferRegionAdditive=o,this._setIdentity=s,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(e,n){const r=this.buffer,a=this.valueSize,o=e*a+a;let s=this.cumulativeWeight;if(s===0){for(let l=0;l!==a;++l)r[o+l]=r[l];s=n}else{s+=n;const l=n/s;this._mixBufferRegion(r,o,0,l,a)}this.cumulativeWeight=s}accumulateAdditive(e){const n=this.buffer,r=this.valueSize,a=r*this._addIndex;this.cumulativeWeightAdditive===0&&this._setIdentity(),this._mixBufferRegionAdditive(n,a,0,e,r),this.cumulativeWeightAdditive+=e}apply(e){const n=this.valueSize,r=this.buffer,a=e*n+n,o=this.cumulativeWeight,s=this.cumulativeWeightAdditive,l=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,o<1){const c=n*this._origIndex;this._mixBufferRegion(r,a,c,1-o,n)}s>0&&this._mixBufferRegionAdditive(r,a,this._addIndex*n,1,n);for(let c=n,u=n+n;c!==u;++c)if(r[c]!==r[c+n]){l.setValue(r,a);break}}saveOriginalState(){const e=this.binding,n=this.buffer,r=this.valueSize,a=r*this._origIndex;e.getValue(n,a);for(let o=r,s=a;o!==s;++o)n[o]=n[a+o%r];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,n=e+this.valueSize;for(let r=e;r<n;r++)this.buffer[r]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const e=this._origIndex*this.valueSize,n=this._addIndex*this.valueSize;for(let r=0;r<this.valueSize;r++)this.buffer[n+r]=this.buffer[e+r]}_select(e,n,r,a,o){if(a>=.5)for(let s=0;s!==o;++s)e[n+s]=e[r+s]}_slerp(e,n,r,a){Sp.slerpFlat(e,n,e,n,e,r,a)}_slerpAdditive(e,n,r,a,o){const s=this._workIndex*o;Sp.multiplyQuaternionsFlat(e,s,e,n,e,r),Sp.slerpFlat(e,n,e,n,e,s,a)}_lerp(e,n,r,a,o){const s=1-a;for(let l=0;l!==o;++l){const c=n+l;e[c]=e[c]*s+e[r+l]*a}}_lerpAdditive(e,n,r,a,o){for(let s=0;s!==o;++s){const l=n+s;e[l]=e[l]+e[r+s]*a}}}const wht="\\[\\]\\.:\\/",zls=new RegExp("["+wht+"]","g"),_ht="[^"+wht+"]",Gls="[^"+wht.replace("\\.","")+"]",Vls=/((?:WC+[\/:])*)/.source.replace("WC",_ht),Kls=/(WCOD+)?/.source.replace("WCOD",Gls),Wls=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",_ht),Qls=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",_ht),qls=new RegExp("^"+Vls+Kls+Wls+Qls+"$"),Yls=["material","materials","bones"];class Jls{constructor(e,n,r){const a=r||Cl.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,a)}getValue(e,n){this.bind();const r=this._targetGroup.nCachedObjects_,a=this._bindings[r];a!==void 0&&a.getValue(e,n)}setValue(e,n){const r=this._bindings;for(let a=this._targetGroup.nCachedObjects_,o=r.length;a!==o;++a)r[a].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].unbind()}}class Cl{constructor(e,n,r){this.path=n,this.parsedPath=r||Cl.parseTrackName(n),this.node=Cl.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,r){return e&&e.isAnimationObjectGroup?new Cl.Composite(e,n,r):new Cl(e,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(zls,"")}static parseTrackName(e){const n=qls.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},a=r.nodeName&&r.nodeName.lastIndexOf(".");if(a!==void 0&&a!==-1){const o=r.nodeName.substring(a+1);Yls.indexOf(o)!==-1&&(r.nodeName=r.nodeName.substring(0,a),r.objectName=o)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(n);if(r!==void 0)return r}if(e.children){const r=function(o){for(let s=0;s<o.length;s++){const l=o[s];if(l.name===n||l.uuid===n)return l;const c=r(l.children);if(c)return c}return null},a=r(e.children);if(a)return a}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,n){e[n]=this.targetObject[this.propertyName]}_getValue_array(e,n){const r=this.resolvedProperty;for(let a=0,o=r.length;a!==o;++a)e[n++]=r[a]}_getValue_arrayElement(e,n){e[n]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,n){this.resolvedProperty.toArray(e,n)}_setValue_direct(e,n){this.targetObject[this.propertyName]=e[n]}_setValue_direct_setNeedsUpdate(e,n){this.targetObject[this.propertyName]=e[n],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,n){this.targetObject[this.propertyName]=e[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,n){const r=this.resolvedProperty;for(let a=0,o=r.length;a!==o;++a)r[a]=e[n++]}_setValue_array_setNeedsUpdate(e,n){const r=this.resolvedProperty;for(let a=0,o=r.length;a!==o;++a)r[a]=e[n++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,n){const r=this.resolvedProperty;for(let a=0,o=r.length;a!==o;++a)r[a]=e[n++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,n){this.resolvedProperty[this.propertyIndex]=e[n]}_setValue_arrayElement_setNeedsUpdate(e,n){this.resolvedProperty[this.propertyIndex]=e[n],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,n){this.resolvedProperty[this.propertyIndex]=e[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,n){this.resolvedProperty.fromArray(e,n)}_setValue_fromArray_setNeedsUpdate(e,n){this.resolvedProperty.fromArray(e,n),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,n){this.resolvedProperty.fromArray(e,n),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,n){this.bind(),this.getValue(e,n)}_setValue_unbound(e,n){this.bind(),this.setValue(e,n)}bind(){let e=this.node;const n=this.parsedPath,r=n.objectName,a=n.propertyName;let o=n.propertyIndex;if(e||(e=Cl.findNode(this.rootNode,n.nodeName)||this.rootNode,this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e){console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");return}if(r){let u=n.objectIndex;switch(r){case"materials":if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}e=e.material.materials;break;case"bones":if(!e.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}e=e.skeleton.bones;for(let d=0;d<e.length;d++)if(e[d].name===u){u=d;break}break;default:if(e[r]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}e=e[r]}if(u!==void 0){if(e[u]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);return}e=e[u]}}const s=e[a];if(s===void 0){const u=n.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+u+"."+a+" but it wasn't found.",e);return}let l=this.Versioning.None;this.targetObject=e,e.needsUpdate!==void 0?l=this.Versioning.NeedsUpdate:e.matrixWorldNeedsUpdate!==void 0&&(l=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(o!==void 0){if(a==="morphTargetInfluences"){if(!e.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(e.geometry.isBufferGeometry){if(!e.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}e.morphTargetDictionary[o]!==void 0&&(o=e.morphTargetDictionary[o])}else{console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);return}}c=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=o}else s.fromArray!==void 0&&s.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(c=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=a;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][l]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}Cl.Composite=Jls;Cl.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};Cl.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};Cl.prototype.GetterByBindingType=[Cl.prototype._getValue_direct,Cl.prototype._getValue_array,Cl.prototype._getValue_arrayElement,Cl.prototype._getValue_toArray];Cl.prototype.SetterByBindingTypeAndVersioning=[[Cl.prototype._setValue_direct,Cl.prototype._setValue_direct_setNeedsUpdate,Cl.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Cl.prototype._setValue_array,Cl.prototype._setValue_array_setNeedsUpdate,Cl.prototype._setValue_array_setMatrixWorldNeedsUpdate],[Cl.prototype._setValue_arrayElement,Cl.prototype._setValue_arrayElement_setNeedsUpdate,Cl.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Cl.prototype._setValue_fromArray,Cl.prototype._setValue_fromArray_setNeedsUpdate,Cl.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class _tr{constructor(){this.uuid=Vy(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const e={};this._indicesByUUID=e;for(let r=0,a=arguments.length;r!==a;++r)e[arguments[r].uuid]=r;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const n=this;this.stats={objects:{get total(){return n._objects.length},get inUse(){return this.total-n.nCachedObjects_}},get bindingsPerObject(){return n._bindings.length}}}add(){const e=this._objects,n=this._indicesByUUID,r=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length;let l,c=e.length,u=this.nCachedObjects_;for(let d=0,h=arguments.length;d!==h;++d){const f=arguments[d],p=f.uuid;let m=n[p];if(m===void 0){m=c++,n[p]=m,e.push(f);for(let g=0,v=s;g!==v;++g)o[g].push(new Cl(f,r[g],a[g]))}else if(m<u){l=e[m];const g=--u,v=e[g];n[v.uuid]=m,e[m]=v,n[p]=g,e[g]=f;for(let A=0,y=s;A!==y;++A){const S=o[A],x=S[g];let w=S[m];S[m]=x,w===void 0&&(w=new Cl(f,r[A],a[A])),S[g]=w}}else e[m]!==l&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=u}remove(){const e=this._objects,n=this._indicesByUUID,r=this._bindings,a=r.length;let o=this.nCachedObjects_;for(let s=0,l=arguments.length;s!==l;++s){const c=arguments[s],u=c.uuid,d=n[u];if(d!==void 0&&d>=o){const h=o++,f=e[h];n[f.uuid]=d,e[d]=f,n[u]=h,e[h]=c;for(let p=0,m=a;p!==m;++p){const g=r[p],v=g[h],A=g[d];g[d]=v,g[h]=A}}}this.nCachedObjects_=o}uncache(){const e=this._objects,n=this._indicesByUUID,r=this._bindings,a=r.length;let o=this.nCachedObjects_,s=e.length;for(let l=0,c=arguments.length;l!==c;++l){const u=arguments[l],d=u.uuid,h=n[d];if(h!==void 0)if(delete n[d],h<o){const f=--o,p=e[f],m=--s,g=e[m];n[p.uuid]=h,e[h]=p,n[g.uuid]=f,e[f]=g,e.pop();for(let v=0,A=a;v!==A;++v){const y=r[v],S=y[f],x=y[m];y[h]=S,y[f]=x,y.pop()}}else{const f=--s,p=e[f];f>0&&(n[p.uuid]=h),e[h]=p,e.pop();for(let m=0,g=a;m!==g;++m){const v=r[m];v[h]=v[f],v.pop()}}}this.nCachedObjects_=o}subscribe_(e,n){const r=this._bindingsIndicesByPath;let a=r[e];const o=this._bindings;if(a!==void 0)return o[a];const s=this._paths,l=this._parsedPaths,c=this._objects,u=c.length,d=this.nCachedObjects_,h=new Array(u);a=o.length,r[e]=a,s.push(e),l.push(n),o.push(h);for(let f=d,p=c.length;f!==p;++f){const m=c[f];h[f]=new Cl(m,e,n)}return h}unsubscribe_(e){const n=this._bindingsIndicesByPath,r=n[e];if(r!==void 0){const a=this._paths,o=this._parsedPaths,s=this._bindings,l=s.length-1,c=s[l],u=e[l];n[u]=r,s[r]=c,s.pop(),o[r]=o[l],o.pop(),a[r]=a[l],a.pop()}}}_tr.prototype.isAnimationObjectGroup=!0;class Zls{constructor(e,n,r=null,a=n.blendMode){this._mixer=e,this._clip=n,this._localRoot=r,this.blendMode=a;const o=n.tracks,s=o.length,l=new Array(s),c={endingStart:cD,endingEnd:cD};for(let u=0;u!==s;++u){const d=o[u].createInterpolant(null);l[u]=d,d.settings=c}this._interpolantSettings=c,this._interpolants=l,this._propertyBindings=new Array(s),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=yer,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,n){return this.loop=e,this.repetitions=n,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,n,r){if(e.fadeOut(n),this.fadeIn(n),r){const a=this._clip.duration,o=e._clip.duration,s=o/a,l=a/o;e.warp(1,s,n),this.warp(l,1,n)}return this}crossFadeTo(e,n,r){return e.crossFadeFrom(this,n,r)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,n,r){const a=this._mixer,o=a.time,s=this.timeScale;let l=this._timeScaleInterpolant;l===null&&(l=a._lendControlInterpolant(),this._timeScaleInterpolant=l);const c=l.parameterPositions,u=l.sampleValues;return c[0]=o,c[1]=o+r,u[0]=e/s,u[1]=n/s,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,n,r,a){if(!this.enabled){this._updateWeight(e);return}const o=this._startTime;if(o!==null){const c=(e-o)*r;if(c<0||r===0)return;this._startTime=null,n=r*c}n*=this._updateTimeScale(e);const s=this._updateTime(n),l=this._updateWeight(e);if(l>0){const c=this._interpolants,u=this._propertyBindings;switch(this.blendMode){case jdt:for(let d=0,h=c.length;d!==h;++d)c[d].evaluate(s),u[d].accumulateAdditive(l);break;case eke:default:for(let d=0,h=c.length;d!==h;++d)c[d].evaluate(s),u[d].accumulate(a,l)}}}_updateWeight(e){let n=0;if(this.enabled){n=this.weight;const r=this._weightInterpolant;if(r!==null){const a=r.evaluate(e)[0];n*=a,e>r.parameterPositions[1]&&(this.stopFading(),a===0&&(this.enabled=!1))}}return this._effectiveWeight=n,n}_updateTimeScale(e){let n=0;if(!this.paused){n=this.timeScale;const r=this._timeScaleInterpolant;if(r!==null){const a=r.evaluate(e)[0];n*=a,e>r.parameterPositions[1]&&(this.stopWarping(),n===0?this.paused=!0:this.timeScale=n)}}return this._effectiveTimeScale=n,n}_updateTime(e){const n=this._clip.duration,r=this.loop;let a=this.time+e,o=this._loopCount;const s=r===ber;if(e===0)return o===-1?a:s&&(o&1)===1?n-a:a;if(r===Aer){o===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(a>=n)a=n;else if(a<0)a=0;else{this.time=a;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=a,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(o===-1&&(e>=0?(o=0,this._setEndings(!0,this.repetitions===0,s)):this._setEndings(this.repetitions===0,!0,s)),a>=n||a<0){const l=Math.floor(a/n);a-=n*l,o+=Math.abs(l);const c=this.repetitions-o;if(c<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,a=e>0?n:0,this.time=a,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(c===1){const u=e<0;this._setEndings(u,!u,s)}else this._setEndings(!1,!1,s);this._loopCount=o,this.time=a,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:l})}}else this.time=a;if(s&&(o&1)===1)return n-a}return a}_setEndings(e,n,r){const a=this._interpolantSettings;r?(a.endingStart=uD,a.endingEnd=uD):(e?a.endingStart=this.zeroSlopeAtStart?uD:cD:a.endingStart=sie,n?a.endingEnd=this.zeroSlopeAtEnd?uD:cD:a.endingEnd=sie)}_scheduleFading(e,n,r){const a=this._mixer,o=a.time;let s=this._weightInterpolant;s===null&&(s=a._lendControlInterpolant(),this._weightInterpolant=s);const l=s.parameterPositions,c=s.sampleValues;return l[0]=o,c[0]=n,l[1]=o+e,c[1]=r,this}}class Ttr extends RN{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,n){const r=e._localRoot||this._root,a=e._clip.tracks,o=a.length,s=e._propertyBindings,l=e._interpolants,c=r.uuid,u=this._bindingsByRootAndName;let d=u[c];d===void 0&&(d={},u[c]=d);for(let h=0;h!==o;++h){const f=a[h],p=f.name;let m=d[p];if(m!==void 0)++m.referenceCount,s[h]=m;else{if(m=s[h],m!==void 0){m._cacheIndex===null&&(++m.referenceCount,this._addInactiveBinding(m,c,p));continue}const g=n&&n._propertyBindings[h].binding.parsedPath;m=new wtr(Cl.create(r,p,g),f.ValueTypeName,f.getValueSize()),++m.referenceCount,this._addInactiveBinding(m,c,p),s[h]=m}l[h].resultBuffer=m.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const r=(e._localRoot||this._root).uuid,a=e._clip.uuid,o=this._actionsByClip[a];this._bindAction(e,o&&o.knownActions[0]),this._addInactiveAction(e,a,r)}const n=e._propertyBindings;for(let r=0,a=n.length;r!==a;++r){const o=n[r];o.useCount++===0&&(this._lendBinding(o),o.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const n=e._propertyBindings;for(let r=0,a=n.length;r!==a;++r){const o=n[r];--o.useCount===0&&(o.restoreOriginalState(),this._takeBackBinding(o))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const n=e._cacheIndex;return n!==null&&n<this._nActiveActions}_addInactiveAction(e,n,r){const a=this._actions,o=this._actionsByClip;let s=o[n];if(s===void 0)s={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,o[n]=s;else{const l=s.knownActions;e._byClipCacheIndex=l.length,l.push(e)}e._cacheIndex=a.length,a.push(e),s.actionByRoot[r]=e}_removeInactiveAction(e){const n=this._actions,r=n[n.length-1],a=e._cacheIndex;r._cacheIndex=a,n[a]=r,n.pop(),e._cacheIndex=null;const o=e._clip.uuid,s=this._actionsByClip,l=s[o],c=l.knownActions,u=c[c.length-1],d=e._byClipCacheIndex;u._byClipCacheIndex=d,c[d]=u,c.pop(),e._byClipCacheIndex=null;const h=l.actionByRoot,f=(e._localRoot||this._root).uuid;delete h[f],c.length===0&&delete s[o],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){const n=e._propertyBindings;for(let r=0,a=n.length;r!==a;++r){const o=n[r];--o.referenceCount===0&&this._removeInactiveBinding(o)}}_lendAction(e){const n=this._actions,r=e._cacheIndex,a=this._nActiveActions++,o=n[a];e._cacheIndex=a,n[a]=e,o._cacheIndex=r,n[r]=o}_takeBackAction(e){const n=this._actions,r=e._cacheIndex,a=--this._nActiveActions,o=n[a];e._cacheIndex=a,n[a]=e,o._cacheIndex=r,n[r]=o}_addInactiveBinding(e,n,r){const a=this._bindingsByRootAndName,o=this._bindings;let s=a[n];s===void 0&&(s={},a[n]=s),s[r]=e,e._cacheIndex=o.length,o.push(e)}_removeInactiveBinding(e){const n=this._bindings,r=e.binding,a=r.rootNode.uuid,o=r.path,s=this._bindingsByRootAndName,l=s[a],c=n[n.length-1],u=e._cacheIndex;c._cacheIndex=u,n[u]=c,n.pop(),delete l[o],Object.keys(l).length===0&&delete s[a]}_lendBinding(e){const n=this._bindings,r=e._cacheIndex,a=this._nActiveBindings++,o=n[a];e._cacheIndex=a,n[a]=e,o._cacheIndex=r,n[r]=o}_takeBackBinding(e){const n=this._bindings,r=e._cacheIndex,a=--this._nActiveBindings,o=n[a];e._cacheIndex=a,n[a]=e,o._cacheIndex=r,n[r]=o}_lendControlInterpolant(){const e=this._controlInterpolants,n=this._nActiveControlInterpolants++;let r=e[n];return r===void 0&&(r=new cht(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),r.__cacheIndex=n,e[n]=r),r}_takeBackControlInterpolant(e){const n=this._controlInterpolants,r=e.__cacheIndex,a=--this._nActiveControlInterpolants,o=n[a];e.__cacheIndex=a,n[a]=e,o.__cacheIndex=r,n[r]=o}clipAction(e,n,r){const a=n||this._root,o=a.uuid;let s=typeof e=="string"?mie.findByName(a,e):e;const l=s!==null?s.uuid:e,c=this._actionsByClip[l];let u=null;if(r===void 0&&(s!==null?r=s.blendMode:r=eke),c!==void 0){const h=c.actionByRoot[o];if(h!==void 0&&h.blendMode===r)return h;u=c.knownActions[0],s===null&&(s=u._clip)}if(s===null)return null;const d=new Zls(this,s,n,r);return this._bindAction(d,u),this._addInactiveAction(d,l,o),d}existingAction(e,n){const r=n||this._root,a=r.uuid,o=typeof e=="string"?mie.findByName(r,e):e,s=o?o.uuid:e,l=this._actionsByClip[s];return l!==void 0&&l.actionByRoot[a]||null}stopAllAction(){const e=this._actions,n=this._nActiveActions;for(let r=n-1;r>=0;--r)e[r].stop();return this}update(e){e*=this.timeScale;const n=this._actions,r=this._nActiveActions,a=this.time+=e,o=Math.sign(e),s=this._accuIndex^=1;for(let u=0;u!==r;++u)n[u]._update(a,e,o,s);const l=this._bindings,c=this._nActiveBindings;for(let u=0;u!==c;++u)l[u].apply(s);return this}setTime(e){this.time=0;for(let n=0;n<this._actions.length;n++)this._actions[n].time=0;return this.update(e)}getRoot(){return this._root}uncacheClip(e){const n=this._actions,r=e.uuid,a=this._actionsByClip,o=a[r];if(o!==void 0){const s=o.knownActions;for(let l=0,c=s.length;l!==c;++l){const u=s[l];this._deactivateAction(u);const d=u._cacheIndex,h=n[n.length-1];u._cacheIndex=null,u._byClipCacheIndex=null,h._cacheIndex=d,n[d]=h,n.pop(),this._removeInactiveBindingsForAction(u)}delete a[r]}}uncacheRoot(e){const n=e.uuid,r=this._actionsByClip;for(const s in r){const l=r[s].actionByRoot,c=l[n];c!==void 0&&(this._deactivateAction(c),this._removeInactiveAction(c))}const a=this._bindingsByRootAndName,o=a[n];if(o!==void 0)for(const s in o){const l=o[s];l.restoreOriginalState(),this._removeInactiveBinding(l)}}uncacheAction(e,n){const r=this.existingAction(e,n);r!==null&&(this._deactivateAction(r),this._removeInactiveAction(r))}}Ttr.prototype._controlInterpolantsResultBuffer=new Float32Array(1);class bke{constructor(e){typeof e=="string"&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),e=arguments[1]),this.value=e}clone(){return new bke(this.value.clone===void 0?this.value:this.value.clone())}}class Ctr extends W9{constructor(e,n,r=1){super(e,n),this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}clone(e){const n=super.clone(e);return n.meshPerAttribute=this.meshPerAttribute,n}toJSON(e){const n=super.toJSON(e);return n.isInstancedInterleavedBuffer=!0,n.meshPerAttribute=this.meshPerAttribute,n}}Ctr.prototype.isInstancedInterleavedBuffer=!0;class ktr{constructor(e,n,r,a,o){this.buffer=e,this.type=n,this.itemSize=r,this.elementSize=a,this.count=o,this.version=0}set needsUpdate(e){e===!0&&this.version++}setBuffer(e){return this.buffer=e,this}setType(e,n){return this.type=e,this.elementSize=n,this}setItemSize(e){return this.itemSize=e,this}setCount(e){return this.count=e,this}}ktr.prototype.isGLBufferAttribute=!0;class Rtr{constructor(e,n,r=0,a=1/0){this.ray=new MN(e,n),this.near=r,this.far=a,this.camera=null,this.layers=new ZD,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,n){this.ray.set(e,n)}setFromCamera(e,n){n.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(n.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(n).sub(this.ray.origin).normalize(),this.camera=n):n.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(n.near+n.far)/(n.near-n.far)).unproject(n),this.ray.direction.set(0,0,-1).transformDirection(n.matrixWorld),this.camera=n):console.error("THREE.Raycaster: Unsupported camera type: "+n.type)}intersectObject(e,n=!0,r=[]){return PYe(e,this,r,n),r.sort(oUt),r}intersectObjects(e,n=!0,r=[]){for(let a=0,o=e.length;a<o;a++)PYe(e[a],this,r,n);return r.sort(oUt),r}}function oUt(t,e){return t.distance-e.distance}function PYe(t,e,n,r){if(t.layers.test(e.layers)&&t.raycast(e,n),r===!0){const a=t.children;for(let o=0,s=a.length;o<s;o++)PYe(a[o],e,n,!0)}}class OYe{constructor(e=1,n=0,r=0){return this.radius=e,this.phi=n,this.theta=r,this}set(e,n,r){return this.radius=e,this.phi=n,this.theta=r,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,n,r){return this.radius=Math.sqrt(e*e+n*n+r*r),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,r),this.phi=Math.acos(Uh(n/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}}class Xls{constructor(e=1,n=0,r=0){return this.radius=e,this.theta=n,this.y=r,this}set(e,n,r){return this.radius=e,this.theta=n,this.y=r,this}copy(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,n,r){return this.radius=Math.sqrt(e*e+r*r),this.theta=Math.atan2(e,r),this.y=n,this}clone(){return new this.constructor().copy(this)}}const sUt=new Qn;class zK{constructor(e=new Qn(1/0,1/0),n=new Qn(-1/0,-1/0)){this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromPoints(e){this.makeEmpty();for(let n=0,r=e.length;n<r;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const r=sUt.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y)}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return sUt.copy(e).clamp(this.min,this.max).sub(e).length()}intersect(e){return this.min.max(e.min),this.max.min(e.max),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}zK.prototype.isBox2=!0;const lUt=new et,ype=new et;class Mtr{constructor(e=new et,n=new et){this.start=e,this.end=n}set(e,n){return this.start.copy(e),this.end.copy(n),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,n){return this.delta(n).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,n){lUt.subVectors(e,this.start),ype.subVectors(this.end,this.start);const r=ype.dot(ype);let o=ype.dot(lUt)/r;return n&&(o=Uh(o,0,1)),o}closestPointToPoint(e,n,r){const a=this.closestPointToPointParameter(e,n);return this.delta(r).multiplyScalar(a).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const cUt=new et;class ecs extends zs{constructor(e,n){super(),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;const r=new Ya,a=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let s=0,l=1,c=32;s<c;s++,l++){const u=s/c*Math.PI*2,d=l/c*Math.PI*2;a.push(Math.cos(u),Math.sin(u),1,Math.cos(d),Math.sin(d),1)}r.setAttribute("position",new oa(a,3));const o=new Sm({fog:!1,toneMapped:!1});this.cone=new u1(r,o),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateMatrixWorld();const e=this.light.distance?this.light.distance:1e3,n=e*Math.tan(this.light.angle);this.cone.scale.set(n,n,e),cUt.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(cUt),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}const FI=new et,bpe=new da,Z7e=new da;class Ntr extends u1{constructor(e){const n=Itr(e),r=new Ya,a=[],o=[],s=new ci(0,0,1),l=new ci(0,1,0);for(let u=0;u<n.length;u++){const d=n[u];d.parent&&d.parent.isBone&&(a.push(0,0,0),a.push(0,0,0),o.push(s.r,s.g,s.b),o.push(l.r,l.g,l.b))}r.setAttribute("position",new oa(a,3)),r.setAttribute("color",new oa(o,3));const c=new Sm({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});super(r,c),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=e,this.bones=n,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(e){const n=this.bones,r=this.geometry,a=r.getAttribute("position");Z7e.copy(this.root.matrixWorld).invert();for(let o=0,s=0;o<n.length;o++){const l=n[o];l.parent&&l.parent.isBone&&(bpe.multiplyMatrices(Z7e,l.matrixWorld),FI.setFromMatrixPosition(bpe),a.setXYZ(s,FI.x,FI.y,FI.z),bpe.multiplyMatrices(Z7e,l.parent.matrixWorld),FI.setFromMatrixPosition(bpe),a.setXYZ(s+1,FI.x,FI.y,FI.z),s+=2)}r.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(e)}}function Itr(t){const e=[];t.isBone===!0&&e.push(t);for(let n=0;n<t.children.length;n++)e.push.apply(e,Itr(t.children[n]));return e}class tcs extends Bf{constructor(e,n,r){const a=new w8(n,4,2),o=new NN({wireframe:!0,fog:!1,toneMapped:!1});super(a,o),this.light=e,this.light.updateMatrixWorld(),this.color=r,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)}}const ncs=new et,uUt=new ci,dUt=new ci;class rcs extends zs{constructor(e,n,r){super(),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=r;const a=new E8(n);a.rotateY(Math.PI*.5),this.material=new NN({wireframe:!0,fog:!1,toneMapped:!1}),this.color===void 0&&(this.material.vertexColors=!0);const o=a.getAttribute("position"),s=new Float32Array(o.count*3);a.setAttribute("color",new bl(s,3)),this.add(new Bf(a,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const e=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{const n=e.geometry.getAttribute("color");uUt.copy(this.light.color),dUt.copy(this.light.groundColor);for(let r=0,a=n.count;r<a;r++){const o=r<a/2?uUt:dUt;n.setXYZ(r,o.r,o.g,o.b)}n.needsUpdate=!0}e.lookAt(ncs.setFromMatrixPosition(this.light.matrixWorld).negate())}}class Ptr extends u1{constructor(e=10,n=10,r=4473924,a=8947848){r=new ci(r),a=new ci(a);const o=n/2,s=e/n,l=e/2,c=[],u=[];for(let f=0,p=0,m=-l;f<=n;f++,m+=s){c.push(-l,0,m,l,0,m),c.push(m,0,-l,m,0,l);const g=f===o?r:a;g.toArray(u,p),p+=3,g.toArray(u,p),p+=3,g.toArray(u,p),p+=3,g.toArray(u,p),p+=3}const d=new Ya;d.setAttribute("position",new oa(c,3)),d.setAttribute("color",new oa(u,3));const h=new Sm({vertexColors:!0,toneMapped:!1});super(d,h),this.type="GridHelper"}}class ics extends u1{constructor(e=10,n=16,r=8,a=64,o=4473924,s=8947848){o=new ci(o),s=new ci(s);const l=[],c=[];for(let h=0;h<=n;h++){const f=h/n*(Math.PI*2),p=Math.sin(f)*e,m=Math.cos(f)*e;l.push(0,0,0),l.push(p,0,m);const g=h&1?o:s;c.push(g.r,g.g,g.b),c.push(g.r,g.g,g.b)}for(let h=0;h<=r;h++){const f=h&1?o:s,p=e-e/r*h;for(let m=0;m<a;m++){let g=m/a*(Math.PI*2),v=Math.sin(g)*p,A=Math.cos(g)*p;l.push(v,0,A),c.push(f.r,f.g,f.b),g=(m+1)/a*(Math.PI*2),v=Math.sin(g)*p,A=Math.cos(g)*p,l.push(v,0,A),c.push(f.r,f.g,f.b)}}const u=new Ya;u.setAttribute("position",new oa(l,3)),u.setAttribute("color",new oa(c,3));const d=new Sm({vertexColors:!0,toneMapped:!1});super(u,d),this.type="PolarGridHelper"}}const hUt=new et,xpe=new et,fUt=new et;class acs extends zs{constructor(e,n,r){super(),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=r,n===void 0&&(n=1);let a=new Ya;a.setAttribute("position",new oa([-n,n,0,n,n,0,n,-n,0,-n,-n,0,-n,n,0],3));const o=new Sm({fog:!1,toneMapped:!1});this.lightPlane=new VM(a,o),this.add(this.lightPlane),a=new Ya,a.setAttribute("position",new oa([0,0,0,0,0,1],3)),this.targetLine=new VM(a,o),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){hUt.setFromMatrixPosition(this.light.matrixWorld),xpe.setFromMatrixPosition(this.light.target.matrixWorld),fUt.subVectors(xpe,hUt),this.lightPlane.lookAt(xpe),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(xpe),this.targetLine.scale.z=fUt.length()}}const Epe=new et,th=new A8;class ocs extends u1{constructor(e){const n=new Ya,r=new Sm({color:16777215,vertexColors:!0,toneMapped:!1}),a=[],o=[],s={},l=new ci(16755200),c=new ci(16711680),u=new ci(43775),d=new ci(16777215),h=new ci(3355443);f("n1","n2",l),f("n2","n4",l),f("n4","n3",l),f("n3","n1",l),f("f1","f2",l),f("f2","f4",l),f("f4","f3",l),f("f3","f1",l),f("n1","f1",l),f("n2","f2",l),f("n3","f3",l),f("n4","f4",l),f("p","n1",c),f("p","n2",c),f("p","n3",c),f("p","n4",c),f("u1","u2",u),f("u2","u3",u),f("u3","u1",u),f("c","t",d),f("p","c",h),f("cn1","cn2",h),f("cn3","cn4",h),f("cf1","cf2",h),f("cf3","cf4",h);function f(m,g,v){p(m,v),p(g,v)}function p(m,g){a.push(0,0,0),o.push(g.r,g.g,g.b),s[m]===void 0&&(s[m]=[]),s[m].push(a.length/3-1)}n.setAttribute("position",new oa(a,3)),n.setAttribute("color",new oa(o,3)),super(n,r),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=s,this.update()}update(){const e=this.geometry,n=this.pointMap,r=1,a=1;th.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),Ph("c",n,e,th,0,0,-1),Ph("t",n,e,th,0,0,1),Ph("n1",n,e,th,-r,-a,-1),Ph("n2",n,e,th,r,-a,-1),Ph("n3",n,e,th,-r,a,-1),Ph("n4",n,e,th,r,a,-1),Ph("f1",n,e,th,-r,-a,1),Ph("f2",n,e,th,r,-a,1),Ph("f3",n,e,th,-r,a,1),Ph("f4",n,e,th,r,a,1),Ph("u1",n,e,th,r*.7,a*1.1,-1),Ph("u2",n,e,th,-r*.7,a*1.1,-1),Ph("u3",n,e,th,0,a*2,-1),Ph("cf1",n,e,th,-r,0,1),Ph("cf2",n,e,th,r,0,1),Ph("cf3",n,e,th,0,-a,1),Ph("cf4",n,e,th,0,a,1),Ph("cn1",n,e,th,-r,0,-1),Ph("cn2",n,e,th,r,0,-1),Ph("cn3",n,e,th,0,-a,-1),Ph("cn4",n,e,th,0,a,-1),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}}function Ph(t,e,n,r,a,o,s){Epe.set(a,o,s).unproject(r);const l=e[t];if(l!==void 0){const c=n.getAttribute("position");for(let u=0,d=l.length;u<d;u++)c.setXYZ(l[u],Epe.x,Epe.y,Epe.z)}}const Spe=new db;class Otr extends u1{constructor(e,n=16776960){const r=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),a=new Float32Array(8*3),o=new Ya;o.setIndex(new bl(r,1)),o.setAttribute("position",new bl(a,3)),super(o,new Sm({color:n,toneMapped:!1})),this.object=e,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(e){if(e!==void 0&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),this.object!==void 0&&Spe.setFromObject(this.object),Spe.isEmpty())return;const n=Spe.min,r=Spe.max,a=this.geometry.attributes.position,o=a.array;o[0]=r.x,o[1]=r.y,o[2]=r.z,o[3]=n.x,o[4]=r.y,o[5]=r.z,o[6]=n.x,o[7]=n.y,o[8]=r.z,o[9]=r.x,o[10]=n.y,o[11]=r.z,o[12]=r.x,o[13]=r.y,o[14]=n.z,o[15]=n.x,o[16]=r.y,o[17]=n.z,o[18]=n.x,o[19]=n.y,o[20]=n.z,o[21]=r.x,o[22]=n.y,o[23]=n.z,a.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(e){return this.object=e,this.update(),this}copy(e){return u1.prototype.copy.call(this,e),this.object=e.object,this}}class scs extends u1{constructor(e,n=16776960){const r=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),a=[1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],o=new Ya;o.setIndex(new bl(r,1)),o.setAttribute("position",new oa(a,3)),super(o,new Sm({color:n,toneMapped:!1})),this.box=e,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(e){const n=this.box;n.isEmpty()||(n.getCenter(this.position),n.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(e))}}class lcs extends VM{constructor(e,n=1,r=16776960){const a=r,o=[1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],s=new Ya;s.setAttribute("position",new oa(o,3)),s.computeBoundingSphere(),super(s,new Sm({color:a,toneMapped:!1})),this.type="PlaneHelper",this.plane=e,this.size=n;const l=[1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],c=new Ya;c.setAttribute("position",new oa(l,3)),c.computeBoundingSphere(),this.add(new Bf(c,new NN({color:a,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(e){let n=-this.plane.constant;Math.abs(n)<1e-8&&(n=1e-8),this.scale.set(.5*this.size,.5*this.size,n),this.children[0].material.side=n<0?Gy:m8,this.lookAt(this.plane.normal),super.updateMatrixWorld(e)}}const pUt=new et;let wpe,X7e;class ccs extends zs{constructor(e=new et(0,0,1),n=new et(0,0,0),r=1,a=16776960,o=r*.2,s=o*.2){super(),this.type="ArrowHelper",wpe===void 0&&(wpe=new Ya,wpe.setAttribute("position",new oa([0,0,0,0,1,0],3)),X7e=new GP(0,.5,1,5,1),X7e.translate(0,-.5,0)),this.position.copy(n),this.line=new VM(wpe,new Sm({color:a,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Bf(X7e,new NN({color:a,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(r,o,s)}setDirection(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{pUt.set(e.z,0,-e.x).normalize();const n=Math.acos(e.y);this.quaternion.setFromAxisAngle(pUt,n)}}setLength(e,n=e*.2,r=n*.2){this.line.scale.set(1,Math.max(1e-4,e-n),1),this.line.updateMatrix(),this.cone.scale.set(r,n,r),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}}class Ltr extends u1{constructor(e=1){const n=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],r=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],a=new Ya;a.setAttribute("position",new oa(n,3)),a.setAttribute("color",new oa(r,3));const o=new Sm({vertexColors:!0,toneMapped:!1});super(a,o),this.type="AxesHelper"}setColors(e,n,r){const a=new ci,o=this.geometry.attributes.color.array;return a.set(e),a.toArray(o,0),a.toArray(o,3),a.set(n),a.toArray(o,6),a.toArray(o,9),a.set(r),a.toArray(o,12),a.toArray(o,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class ucs{constructor(){this.type="ShapePath",this.color=new ci,this.subPaths=[],this.currentPath=null}moveTo(e,n){return this.currentPath=new Pz,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,n),this}lineTo(e,n){return this.currentPath.lineTo(e,n),this}quadraticCurveTo(e,n,r,a){return this.currentPath.quadraticCurveTo(e,n,r,a),this}bezierCurveTo(e,n,r,a,o,s){return this.currentPath.bezierCurveTo(e,n,r,a,o,s),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e,n){function r(y){const S=[];for(let x=0,w=y.length;x<w;x++){const _=y[x],C=new B2;C.curves=_.curves,S.push(C)}return S}function a(y,S){const x=S.length;let w=!1;for(let _=x-1,C=0;C<x;_=C++){let R=S[_],k=S[C],P=k.x-R.x,N=k.y-R.y;if(Math.abs(N)>Number.EPSILON){if(N<0&&(R=S[C],P=-P,k=S[_],N=-N),y.y<R.y||y.y>k.y)continue;if(y.y===R.y){if(y.x===R.x)return!0}else{const L=N*(y.x-R.x)-P*(y.y-R.y);if(L===0)return!0;if(L<0)continue;w=!w}}else{if(y.y!==R.y)continue;if(k.x<=y.x&&y.x<=R.x||R.x<=y.x&&y.x<=k.x)return!0}}return w}const o=D2.isClockWise,s=this.subPaths;if(s.length===0)return[];if(n===!0)return r(s);let l,c,u;const d=[];if(s.length===1)return c=s[0],u=new B2,u.curves=c.curves,d.push(u),d;let h=!o(s[0].getPoints());h=e?!h:h;const f=[],p=[];let m=[],g=0,v;p[g]=void 0,m[g]=[];for(let y=0,S=s.length;y<S;y++)c=s[y],v=c.getPoints(),l=o(v),l=e?!l:l,l?(!h&&p[g]&&g++,p[g]={s:new B2,p:v},p[g].s.curves=c.curves,h&&g++,m[g]=[]):m[g].push({h:c,p:v[0]});if(!p[0])return r(s);if(p.length>1){let y=!1,S=0;for(let x=0,w=p.length;x<w;x++)f[x]=[];for(let x=0,w=p.length;x<w;x++){const _=m[x];for(let C=0;C<_.length;C++){const R=_[C];let k=!0;for(let P=0;P<p.length;P++)a(R.p,p[P].p)&&(x!==P&&S++,k?(k=!1,f[P].push(R)):y=!0);k&&f[x].push(R)}}S>0&&y===!1&&(m=f)}let A;for(let y=0,S=p.length;y<S;y++){u=p[y].s,d.push(u),A=m[y];for(let x=0,w=A.length;x<w;x++)u.holes.push(A[x].h)}return d}}class dcs{static toHalfFloat(e){Math.abs(e)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),e=Uh(e,-65504,65504),mUt[0]=e;const n=gUt[0],r=n>>23&511;return IS[r]+((n&8388607)>>PS[r])}static fromHalfFloat(e){const n=e>>10;return gUt[0]=Tht[Dtr[n]+(e&1023)]+GK[n],mUt[0]}}const Btr=new ArrayBuffer(4),mUt=new Float32Array(Btr),gUt=new Uint32Array(Btr),IS=new Uint32Array(512),PS=new Uint32Array(512);for(let t=0;t<256;++t){const e=t-127;e<-27?(IS[t]=0,IS[t|256]=32768,PS[t]=24,PS[t|256]=24):e<-14?(IS[t]=1024>>-e-14,IS[t|256]=1024>>-e-14|32768,PS[t]=-e-1,PS[t|256]=-e-1):e<=15?(IS[t]=e+15<<10,IS[t|256]=e+15<<10|32768,PS[t]=13,PS[t|256]=13):e<128?(IS[t]=31744,IS[t|256]=64512,PS[t]=24,PS[t|256]=24):(IS[t]=31744,IS[t|256]=64512,PS[t]=13,PS[t|256]=13)}const Tht=new Uint32Array(2048),GK=new Uint32Array(64),Dtr=new Uint32Array(64);for(let t=1;t<1024;++t){let e=t<<13,n=0;for(;!(e&8388608);)e<<=1,n-=8388608;e&=-8388609,n+=947912704,Tht[t]=e|n}for(let t=1024;t<2048;++t)Tht[t]=939524096+(t-1024<<13);for(let t=1;t<31;++t)GK[t]=t<<23;GK[31]=1199570944;GK[32]=2147483648;for(let t=33;t<63;++t)GK[t]=2147483648+(t-32<<23);GK[63]=3347054592;for(let t=1;t<64;++t)t!==32&&(Dtr[t]=1024);const hcs=0,fcs=1,pcs=0,mcs=1,gcs=2;function vcs(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t}function Acs(t=[]){return console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t}class ycs extends hle{constructor(e,n){console.warn("THREE.PointCloud has been renamed to THREE.Points."),super(e,n)}}class bcs extends cke{constructor(e){console.warn("THREE.Particle has been renamed to THREE.Sprite."),super(e)}}class xcs extends hle{constructor(e,n){console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),super(e,n)}}class Ecs extends Q9{constructor(e){console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),super(e)}}class Scs extends Q9{constructor(e){console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),super(e)}}class wcs extends Q9{constructor(e){console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),super(e)}}class _cs extends et{constructor(e,n,r){console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),super(e,n,r)}}class Tcs extends bl{constructor(e,n){console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),super(e,n),this.setUsage(Nz)}}class Ccs extends Ier{constructor(e,n){console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),super(e,n)}}class kcs extends Per{constructor(e,n){console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),super(e,n)}}class Rcs extends Oer{constructor(e,n){console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),super(e,n)}}class Mcs extends Ler{constructor(e,n){console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),super(e,n)}}class Ncs extends tke{constructor(e,n){console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),super(e,n)}}class Ics extends Ber{constructor(e,n){console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),super(e,n)}}class Pcs extends nke{constructor(e,n){console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),super(e,n)}}class Ocs extends oa{constructor(e,n){console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),super(e,n)}}class Lcs extends $er{constructor(e,n){console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),super(e,n)}}Jy.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Jy.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t};Pz.prototype.fromPoints=function(t){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)};class Bcs extends Ltr{constructor(e){console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),super(e)}}class Dcs extends Otr{constructor(e,n){console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),super(e,n)}}class $cs extends u1{constructor(e,n){console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),super(new vke(e.geometry),new Sm({color:n!==void 0?n:16777215}))}}Ptr.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")};Ntr.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")};class Fcs extends u1{constructor(e,n){console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),super(new Xdt(e.geometry),new Sm({color:n!==void 0?n:16777215}))}}oA.prototype.extractUrlBase=function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Sbe.extractUrlBase(t)};oA.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}};class jcs extends cC{constructor(e){console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),super(e)}}class Hcs extends htr{constructor(e){console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),super(e)}}zK.prototype.center=function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)};zK.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()};zK.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)};zK.prototype.size=function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)};db.prototype.center=function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)};db.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()};db.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)};db.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)};db.prototype.size=function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)};OO.prototype.toVector3=function(){console.error("THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead")};PO.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()};lle.prototype.setFromMatrix=function(t){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(t)};Mtr.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)};bp.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)};bp.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)};bp.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")};bp.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)};bp.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")};bp.prototype.getInverse=function(t){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()};da.prototype.extractPosition=function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)};da.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)};da.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),new et().setFromMatrixColumn(this,3)};da.prototype.setRotationFromQuaternion=function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)};da.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")};da.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)};da.prototype.multiplyVector4=function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)};da.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")};da.prototype.rotateAxis=function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)};da.prototype.crossVector=function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)};da.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")};da.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")};da.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")};da.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")};da.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")};da.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)};da.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")};da.prototype.makeFrustum=function(t,e,n,r,a,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,r,n,a,o)};da.prototype.getInverse=function(t){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()};KS.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)};Sp.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)};Sp.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()};MN.prototype.isIntersectionBox=function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)};MN.prototype.isIntersectionPlane=function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)};MN.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)};Gh.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()};Gh.prototype.barycoordFromPoint=function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)};Gh.prototype.midpoint=function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)};Gh.prototypenormal=function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)};Gh.prototype.plane=function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)};Gh.barycoordFromPoint=function(t,e,n,r,a){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Gh.getBarycoord(t,e,n,r,a)};Gh.normal=function(t,e,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Gh.getNormal(t,e,n,r)};B2.prototype.extractAllPoints=function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)};B2.prototype.extrude=function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new lC(this,t)};B2.prototype.makeGeometry=function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new S8(this,t)};Qn.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)};Qn.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)};Qn.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()};et.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")};et.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")};et.prototype.getPositionFromMatrix=function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)};et.prototype.getScaleFromMatrix=function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)};et.prototype.getColumnFromMatrix=function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)};et.prototype.applyProjection=function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)};et.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)};et.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)};et.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()};Ac.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)};Ac.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()};zs.prototype.getChildByName=function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)};zs.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")};zs.prototype.translate=function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)};zs.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")};zs.prototype.applyMatrix=function(t){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)};Object.defineProperties(zs.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}});Bf.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")};Object.defineProperties(Bf.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),xer},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}});uke.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")};Xu.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),e!==void 0&&(this.filmGauge=e),this.setFocalLength(t)};Object.defineProperties(Hw.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}});Object.defineProperties(bl.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Nz},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Nz)}}});bl.prototype.setDynamic=function(t){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(t===!0?Nz:Mz),this};bl.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},bl.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")};Ya.prototype.addIndex=function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)};Ya.prototype.addAttribute=function(t,e){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),!(e&&e.isBufferAttribute)&&!(e&&e.isInterleavedBufferAttribute)?(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(t,new bl(arguments[1],arguments[2]))):t==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):this.setAttribute(t,e)};Ya.prototype.addDrawCall=function(t,e,n){n!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)};Ya.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()};Ya.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")};Ya.prototype.removeAttribute=function(t){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(t)};Ya.prototype.applyMatrix=function(t){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)};Object.defineProperties(Ya.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}});W9.prototype.setDynamic=function(t){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(t===!0?Nz:Mz),this};W9.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")};lC.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")};lC.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")};lC.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")};dle.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")};bke.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this};Object.defineProperties(cf.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new ci}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===Ldt}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(t){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=t}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}});Object.defineProperties(rE.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}});wc.prototype.clearTarget=function(t,e,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,n,r)};wc.prototype.animate=function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)};wc.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()};wc.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()};wc.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision};wc.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()};wc.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")};wc.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")};wc.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")};wc.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")};wc.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")};wc.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")};wc.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures};wc.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")};wc.prototype.enableScissorTest=function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)};wc.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")};wc.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")};wc.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")};wc.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")};wc.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")};wc.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")};wc.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")};wc.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")};wc.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")};wc.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()};Object.defineProperties(wc.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(t){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=t===!0?ou:nE}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}},gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}});Object.defineProperties(Qer.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}});class Ucs extends ike{constructor(e,n,r){console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),super(e,r)}}Object.defineProperties(H0.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}});Sht.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const e=this;return new btr().load(t,function(r){e.setBuffer(r)}),this};Str.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()};rke.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)};rke.prototype.clear=function(t,e,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(t,e,n,r)};IO.crossOrigin=void 0;IO.loadTexture=function(t,e,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const a=new ftr;a.setCrossOrigin(this.crossOrigin);const o=a.load(t,n,void 0,r);return e&&(o.mapping=e),o};IO.loadTextureCube=function(t,e,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const a=new dtr;a.setCrossOrigin(this.crossOrigin);const o=a.load(t,n,void 0,r);return e&&(o.mapping=e),o};IO.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")};IO.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};function zcs(){console.error("THREE.CanvasRenderer has been removed")}function Gcs(){console.error("THREE.JSONLoader has been removed.")}const Vcs={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};function Kcs(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")}class Wcs extends Ya{constructor(){console.error("THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js"),super()}}class Qcs extends Ya{constructor(){console.error("THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js"),super()}}function qcs(){console.error("THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js")}function Ycs(){console.error("THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js")}function Jcs(){console.error("THREE.ImmediateRenderObject has been removed.")}class Zcs extends H0{constructor(e,n,r){console.error('THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.'),super(e,n,r),this.samples=4}}class Xcs extends FK{constructor(e,n,r,a){console.warn("THREE.DataTexture2DArray has been renamed to DataArrayTexture."),super(e,n,r,a)}}class eus extends sle{constructor(e,n,r,a){console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."),super(e,n,r,a)}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:ZCe}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=ZCe);const tus=Object.freeze(Object.defineProperty({__proto__:null,ACESFilmicToneMapping:$dt,AddEquation:TB,AddOperation:ZXn,AdditiveAnimationBlendMode:jdt,AdditiveBlending:eYe,AlphaFormat:ler,AlwaysDepth:VXn,AlwaysStencilFunc:_er,AmbientLight:vht,AmbientLightProbe:Etr,AnimationClip:mie,AnimationLoader:Ols,AnimationMixer:Ttr,AnimationObjectGroup:_tr,AnimationUtils:Zu,ArcCurve:Qdt,ArrayCamera:zdt,ArrowHelper:ccs,Audio:Sht,AudioAnalyser:Str,AudioContext:xht,AudioListener:jls,AudioLoader:btr,AxesHelper:Ltr,AxisHelper:Bcs,BackSide:Gy,BasicDepthPacking:Eer,BasicShadowMap:Rns,BinaryTextureLoader:Hcs,Bone:dke,BooleanKeyframeTrack:q9,BoundingBoxHelper:Dcs,Box2:zK,Box3:db,Box3Helper:scs,BoxBufferGeometry:GM,BoxGeometry:GM,BoxHelper:Otr,BufferAttribute:bl,BufferGeometry:Ya,BufferGeometryLoader:Atr,ByteType:rer,Cache:_8,Camera:A8,CameraHelper:ocs,CanvasRenderer:zcs,CanvasTexture:ttr,CapsuleBufferGeometry:Oz,CapsuleGeometry:Oz,CatmullRomCurve3:Ydt,CineonToneMapping:ter,CircleBufferGeometry:Lz,CircleGeometry:Lz,ClampToEdgeWrapping:I0,Clock:Eht,Color:ci,ColorKeyframeTrack:uht,ColorManagement:Kb,CompressedTexture:Wdt,CompressedTextureLoader:Lls,ConeBufferGeometry:Bz,ConeGeometry:Bz,CubeCamera:rke,CubeReflectionMapping:jP,CubeRefractionMapping:HP,CubeTexture:jK,CubeTextureLoader:dtr,CubeUVReflectionMapping:$K,CubicBezierCurve:fke,CubicBezierCurve3:Jdt,CubicInterpolant:str,CullFaceBack:Xqe,CullFaceFront:NXn,CullFaceFrontBack:kns,CullFaceNone:MXn,Curve:Jy,CurvePath:rtr,CustomBlending:IXn,CustomToneMapping:ner,CylinderBufferGeometry:GP,CylinderGeometry:GP,Cylindrical:Xls,Data3DTexture:sle,DataArrayTexture:FK,DataTexture:XD,DataTexture2DArray:Xcs,DataTexture3D:eus,DataTextureLoader:htr,DataUtils:dcs,DecrementStencilOp:Hns,DecrementWrapStencilOp:zns,DefaultLoadingManager:utr,DepthFormat:z5,DepthStencilFormat:v8,DepthTexture:Gdt,DirectionalLight:ght,DirectionalLightHelper:acs,DiscreteInterpolant:ltr,DodecahedronBufferGeometry:Dz,DodecahedronGeometry:Dz,DoubleSide:g8,DstAlphaFactor:FXn,DstColorFactor:HXn,DynamicBufferAttribute:Tcs,DynamicCopyUsage:rrs,DynamicDrawUsage:Nz,DynamicReadUsage:ers,EdgesGeometry:vke,EdgesHelper:$cs,EllipseCurve:fle,EqualDepth:WXn,EqualStencilFunc:Wns,EquirectangularReflectionMapping:tie,EquirectangularRefractionMapping:nie,Euler:OO,EventDispatcher:RN,ExtrudeBufferGeometry:lC,ExtrudeGeometry:lC,FaceColors:mcs,FileLoader:cC,FlatShading:Ldt,Float16BufferAttribute:Der,Float32Attribute:Ocs,Float32BufferAttribute:oa,Float64Attribute:Lcs,Float64BufferAttribute:$er,FloatType:qR,Fog:ule,FogExp2:cle,Font:Ycs,FontLoader:qcs,FramebufferTexture:etr,FrontSide:m8,Frustum:lle,GLBufferAttribute:ktr,GLSL1:ars,GLSL3:TYe,GreaterDepth:qXn,GreaterEqualDepth:QXn,GreaterEqualStencilFunc:Jns,GreaterStencilFunc:qns,GridHelper:Ptr,Group:hD,HalfFloatType:QD,HemisphereLight:hht,HemisphereLightHelper:rcs,HemisphereLightProbe:xtr,IcosahedronBufferGeometry:$z,IcosahedronGeometry:$z,ImageBitmapLoader:ytr,ImageLoader:gie,ImageUtils:IO,ImmediateRenderObject:Jcs,IncrementStencilOp:jns,IncrementWrapStencilOp:Uns,InstancedBufferAttribute:b8,InstancedBufferGeometry:bht,InstancedInterleavedBuffer:Ctr,InstancedMesh:Vdt,Int16Attribute:Mcs,Int16BufferAttribute:Ler,Int32Attribute:Ics,Int32BufferAttribute:Ber,Int8Attribute:Ccs,Int8BufferAttribute:Ier,IntType:aer,InterleavedBuffer:W9,InterleavedBufferAttribute:zP,Interpolant:KM,InterpolateDiscrete:aie,InterpolateLinear:oie,InterpolateSmooth:Wge,InvertStencilOp:Gns,JSONLoader:Gcs,KeepStencilOp:Qge,KeyframeTrack:c_,LOD:Zer,LatheBufferGeometry:x8,LatheGeometry:x8,Layers:ZD,LensFlare:Kcs,LessDepth:KXn,LessEqualDepth:Abe,LessEqualStencilFunc:Qns,LessStencilFunc:Kns,Light:Hw,LightProbe:mle,Line:VM,Line3:Mtr,LineBasicMaterial:Sm,LineCurve:ple,LineCurve3:ntr,LineDashedMaterial:lht,LineLoop:Kdt,LinePieces:fcs,LineSegments:u1,LineStrip:hcs,LinearEncoding:nE,LinearFilter:Hh,LinearInterpolant:cht,LinearMipMapLinearFilter:Ons,LinearMipMapNearestFilter:Pns,LinearMipmapLinearFilter:V9,LinearMipmapNearestFilter:Fdt,LinearSRGBColorSpace:i5,LinearToneMapping:XXn,Loader:oA,LoaderUtils:Sbe,LoadingManager:dht,LoopOnce:Aer,LoopPingPong:ber,LoopRepeat:yer,LuminanceAlphaFormat:der,LuminanceFormat:uer,MOUSE:TR,Material:cf,MaterialLoader:vtr,Math:Wjt,MathUtils:Wjt,Matrix3:bp,Matrix4:da,MaxEquation:iYe,Mesh:Bf,MeshBasicMaterial:NN,MeshDepthMaterial:oke,MeshDistanceMaterial:ske,MeshFaceMaterial:vcs,MeshLambertMaterial:oht,MeshMatcapMaterial:sht,MeshNormalMaterial:aht,MeshPhongMaterial:rht,MeshPhysicalMaterial:nht,MeshStandardMaterial:yke,MeshToonMaterial:iht,MinEquation:rYe,MirroredRepeatWrapping:iie,MixOperation:JXn,MultiMaterial:Acs,MultiplyBlending:nYe,MultiplyOperation:ole,NearestFilter:Pf,NearestMipMapLinearFilter:Ins,NearestMipMapNearestFilter:Nns,NearestMipmapLinearFilter:bbe,NearestMipmapNearestFilter:ybe,NeverDepth:GXn,NeverStencilFunc:Vns,NoBlending:lM,NoColorSpace:Dns,NoColors:pcs,NoToneMapping:_w,NormalAnimationBlendMode:eke,NormalBlending:WD,NotEqualDepth:YXn,NotEqualStencilFunc:Yns,NumberKeyframeTrack:fie,Object3D:zs,ObjectLoader:Bls,ObjectSpaceNormalMap:wer,OctahedronBufferGeometry:E8,OctahedronGeometry:E8,OneFactor:BXn,OneMinusDstAlphaFactor:jXn,OneMinusDstColorFactor:UXn,OneMinusSrcAlphaFactor:Ddt,OneMinusSrcColorFactor:$Xn,OrthographicCamera:Cx,PCFShadowMap:Pdt,PCFSoftShadowMap:Odt,PMREMGenerator:kYe,ParametricGeometry:Wcs,Particle:bcs,ParticleBasicMaterial:Scs,ParticleSystem:xcs,ParticleSystemMaterial:wcs,Path:Pz,PerspectiveCamera:Xu,Plane:KS,PlaneBufferGeometry:y8,PlaneGeometry:y8,PlaneHelper:lcs,PointCloud:ycs,PointCloudMaterial:Ecs,PointLight:mht,PointLightHelper:tcs,Points:hle,PointsMaterial:Q9,PolarGridHelper:ics,PolyhedronBufferGeometry:sC,PolyhedronGeometry:sC,PositionalAudio:Uls,PropertyBinding:Cl,PropertyMixer:wtr,QuadraticBezierCurve:pke,QuadraticBezierCurve3:mke,Quaternion:Sp,QuaternionKeyframeTrack:UK,QuaternionLinearInterpolant:ctr,REVISION:ZCe,RGBADepthPacking:Ser,RGBAFormat:Ly,RGBAIntegerFormat:ger,RGBA_ASTC_10x10_Format:EYe,RGBA_ASTC_10x5_Format:yYe,RGBA_ASTC_10x6_Format:bYe,RGBA_ASTC_10x8_Format:xYe,RGBA_ASTC_12x10_Format:SYe,RGBA_ASTC_12x12_Format:wYe,RGBA_ASTC_4x4_Format:dYe,RGBA_ASTC_5x4_Format:hYe,RGBA_ASTC_5x5_Format:fYe,RGBA_ASTC_6x5_Format:pYe,RGBA_ASTC_6x6_Format:mYe,RGBA_ASTC_8x5_Format:gYe,RGBA_ASTC_8x6_Format:vYe,RGBA_ASTC_8x8_Format:AYe,RGBA_BPTC_Format:_Ye,RGBA_ETC2_EAC_Format:uYe,RGBA_PVRTC_2BPPV1_Format:lYe,RGBA_PVRTC_4BPPV1_Format:sYe,RGBA_S3TC_DXT1_Format:Gge,RGBA_S3TC_DXT3_Format:Vge,RGBA_S3TC_DXT5_Format:Kge,RGBFormat:cer,RGB_ETC1_Format:ver,RGB_ETC2_Format:cYe,RGB_PVRTC_2BPPV1_Format:oYe,RGB_PVRTC_4BPPV1_Format:aYe,RGB_S3TC_DXT1_Format:zge,RGFormat:per,RGIntegerFormat:mer,RawShaderMaterial:tht,Ray:MN,Raycaster:Rtr,RectAreaLight:Aht,RedFormat:her,RedIntegerFormat:fer,ReinhardToneMapping:eer,RepeatWrapping:rie,ReplaceStencilOp:Fns,ReverseSubtractEquation:OXn,RingBufferGeometry:Fz,RingGeometry:Fz,SRGBColorSpace:ET,Scene:dle,SceneUtils:Vcs,ShaderChunk:Rs,ShaderLib:WS,ShaderMaterial:rE,ShadowMaterial:eht,Shape:B2,ShapeBufferGeometry:S8,ShapeGeometry:S8,ShapePath:ucs,ShapeUtils:D2,ShortType:ier,Skeleton:hke,SkeletonHelper:Ntr,SkinnedMesh:uke,SmoothShading:Mns,Source:dD,Sphere:PO,SphereBufferGeometry:w8,SphereGeometry:w8,Spherical:OYe,SphericalHarmonics3:yht,SplineCurve:gke,SpotLight:pht,SpotLightHelper:ecs,Sprite:cke,SpriteMaterial:lke,SrcAlphaFactor:Bdt,SrcAlphaSaturateFactor:zXn,SrcColorFactor:DXn,StaticCopyUsage:nrs,StaticDrawUsage:Mz,StaticReadUsage:Xns,StereoCamera:$ls,StreamCopyUsage:irs,StreamDrawUsage:Zns,StreamReadUsage:trs,StringKeyframeTrack:Y9,SubtractEquation:PXn,SubtractiveBlending:tYe,TOUCH:CR,TangentSpaceNormalMap:K9,TetrahedronBufferGeometry:jz,TetrahedronGeometry:jz,TextGeometry:Qcs,Texture:Ah,TextureLoader:ftr,TorusBufferGeometry:Hz,TorusGeometry:Hz,TorusKnotBufferGeometry:Uz,TorusKnotGeometry:Uz,Triangle:Gh,TriangleFanDrawMode:Bns,TriangleStripDrawMode:Lns,TrianglesDrawMode:xer,TubeBufferGeometry:zz,TubeGeometry:zz,UVMapping:XCe,Uint16Attribute:Ncs,Uint16BufferAttribute:tke,Uint32Attribute:Pcs,Uint32BufferAttribute:nke,Uint8Attribute:kcs,Uint8BufferAttribute:Per,Uint8ClampedAttribute:Rcs,Uint8ClampedBufferAttribute:Oer,Uniform:bke,UniformsLib:qr,UniformsUtils:Fer,UnsignedByteType:UP,UnsignedInt248Type:qD,UnsignedIntType:Kee,UnsignedShort4444Type:oer,UnsignedShort5551Type:ser,UnsignedShortType:Rz,VSMShadowMap:mj,Vector2:Qn,Vector3:et,Vector4:Ac,VectorKeyframeTrack:pie,Vertex:_cs,VertexColors:gcs,VideoTexture:Xer,WebGL1Renderer:Yer,WebGL3DRenderTarget:Mer,WebGLArrayRenderTarget:Rer,WebGLCubeRenderTarget:ike,WebGLMultipleRenderTargets:Ner,WebGLMultisampleRenderTarget:Zcs,WebGLRenderTarget:H0,WebGLRenderTargetCube:Ucs,WebGLRenderer:wc,WebGLUtils:qer,WireframeGeometry:Xdt,WireframeHelper:Fcs,WrapAroundEnding:sie,XHRLoader:jcs,ZeroCurvatureEnding:cD,ZeroFactor:LXn,ZeroSlopeEnding:uD,ZeroStencilOp:$ns,_SRGBAFormat:xbe,sRGBEncoding:ou},Symbol.toStringTag,{value:"Module"}));var $tr={exports:{}},Cht={exports:{}};/** @license React v0.26.2
 * react-reconciler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */Cht.exports;(function(t){t.exports=function(n){var r={},a=jYe,o=Y,s=tX;function l(V){for(var W="https://reactjs.org/docs/error-decoder.html?invariant="+V,ae=1;ae<arguments.length;ae++)W+="&args[]="+encodeURIComponent(arguments[ae]);return"Minified React error #"+V+"; visit "+W+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=60103,d=60106,h=60107,f=60108,p=60114,m=60109,g=60110,v=60112,A=60113,y=60120,S=60115,x=60116,w=60121,_=60129,C=60130,R=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;u=k("react.element"),d=k("react.portal"),h=k("react.fragment"),f=k("react.strict_mode"),p=k("react.profiler"),m=k("react.provider"),g=k("react.context"),v=k("react.forward_ref"),A=k("react.suspense"),y=k("react.suspense_list"),S=k("react.memo"),x=k("react.lazy"),w=k("react.block"),k("react.scope"),_=k("react.debug_trace_mode"),C=k("react.offscreen"),R=k("react.legacy_hidden")}var P=typeof Symbol=="function"&&Symbol.iterator;function N(V){return V===null||typeof V!="object"?null:(V=P&&V[P]||V["@@iterator"],typeof V=="function"?V:null)}function L(V){if(V==null)return null;if(typeof V=="function")return V.displayName||V.name||null;if(typeof V=="string")return V;switch(V){case h:return"Fragment";case d:return"Portal";case p:return"Profiler";case f:return"StrictMode";case A:return"Suspense";case y:return"SuspenseList"}if(typeof V=="object")switch(V.$$typeof){case g:return(V.displayName||"Context")+".Consumer";case m:return(V._context.displayName||"Context")+".Provider";case v:var W=V.render;return W=W.displayName||W.name||"",V.displayName||(W!==""?"ForwardRef("+W+")":"ForwardRef");case S:return L(V.type);case w:return L(V._render);case x:W=V._payload,V=V._init;try{return L(V(W))}catch{}}return null}function I(V){var W=V,ae=V;if(V.alternate)for(;W.return;)W=W.return;else{V=W;do W=V,W.flags&1026&&(ae=W.return),V=W.return;while(V)}return W.tag===3?ae:null}function b(V){if(I(V)!==V)throw Error(l(188))}function T(V){var W=V.alternate;if(!W){if(W=I(V),W===null)throw Error(l(188));return W!==V?null:V}for(var ae=V,Ae=W;;){var we=ae.return;if(we===null)break;var He=we.alternate;if(He===null){if(Ae=we.return,Ae!==null){ae=Ae;continue}break}if(we.child===He.child){for(He=we.child;He;){if(He===ae)return b(we),V;if(He===Ae)return b(we),W;He=He.sibling}throw Error(l(188))}if(ae.return!==Ae.return)ae=we,Ae=He;else{for(var at=!1,Et=we.child;Et;){if(Et===ae){at=!0,ae=we,Ae=He;break}if(Et===Ae){at=!0,Ae=we,ae=He;break}Et=Et.sibling}if(!at){for(Et=He.child;Et;){if(Et===ae){at=!0,ae=He,Ae=we;break}if(Et===Ae){at=!0,Ae=He,ae=we;break}Et=Et.sibling}if(!at)throw Error(l(189))}}if(ae.alternate!==Ae)throw Error(l(190))}if(ae.tag!==3)throw Error(l(188));return ae.stateNode.current===ae?V:W}function M(V){if(V=T(V),!V)return null;for(var W=V;;){if(W.tag===5||W.tag===6)return W;if(W.child)W.child.return=W,W=W.child;else{if(W===V)break;for(;!W.sibling;){if(!W.return||W.return===V)return null;W=W.return}W.sibling.return=W.return,W=W.sibling}}return null}function D(V){if(V=T(V),!V)return null;for(var W=V;;){if(W.tag===5||W.tag===6)return W;if(W.child&&W.tag!==4)W.child.return=W,W=W.child;else{if(W===V)break;for(;!W.sibling;){if(!W.return||W.return===V)return null;W=W.return}W.sibling.return=W.return,W=W.sibling}}return null}function B(V,W){for(var ae=V.alternate;W!==null;){if(W===V||W===ae)return!0;W=W.return}return!1}var j=n.getPublicInstance,H=n.getRootHostContext,U=n.getChildHostContext,$=n.prepareForCommit,z=n.resetAfterCommit,Z=n.createInstance,K=n.appendInitialChild,Q=n.finalizeInitialChildren,ee=n.prepareUpdate,X=n.shouldSetTextContent,te=n.createTextInstance,J=n.scheduleTimeout,ne=n.cancelTimeout,ie=n.noTimeout,he=n.isPrimaryRenderer,de=n.supportsMutation,ce=n.supportsPersistence,Ee=n.supportsHydration,Me=n.getInstanceFromNode,Be=n.makeOpaqueHydratingObject,ze=n.makeClientId,je=n.beforeActiveInstanceBlur,ye=n.afterActiveInstanceBlur,me=n.preparePortalMount,le=n.supportsTestSelectors,pe=n.findFiberRoot,Ne=n.getBoundingRect,_e=n.getTextContent,ue=n.isHiddenSubtree,se=n.matchAccessibilityRole,oe=n.setFocusIfFocusable,ge=n.setupIntersectionObserver,De=n.appendChild,Fe=n.appendChildToContainer,Se=n.commitTextUpdate,Xe=n.commitMount,Oe=n.commitUpdate,Ye=n.insertBefore,mt=n.insertInContainerBefore,ut=n.removeChild,lt=n.removeChildFromContainer,pn=n.resetTextContent,sn=n.hideInstance,un=n.hideTextInstance,ur=n.unhideInstance,dt=n.unhideTextInstance,xt=n.clearContainer,Cn=n.cloneInstance,Kt=n.createContainerChildSet,rn=n.appendChildToContainerChildSet,On=n.finalizeContainerChildren,an=n.replaceContainerChildren,on=n.cloneHiddenInstance,dr=n.cloneHiddenTextInstance,$e=n.canHydrateInstance,qe=n.canHydrateTextInstance,yt=n.isSuspenseInstancePending,Ze=n.isSuspenseInstanceFallback,ot=n.getNextHydratableSibling,yn=n.getFirstHydratableChild,vt=n.hydrateInstance,Gt=n.hydrateTextInstance,ft=n.getNextHydratableInstanceAfterSuspenseInstance,rt=n.commitHydratedContainer,Pt=n.commitHydratedSuspenseInstance,Yt;function Un(V){if(Yt===void 0)try{throw Error()}catch(ae){var W=ae.stack.trim().match(/\n( *(at )?)/);Yt=W&&W[1]||""}return`
`+Yt+V}var jn=!1;function br(V,W){if(!V||jn)return"";jn=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(W)if(W=function(){throw Error()},Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(Tt){var Ae=Tt}Reflect.construct(V,[],W)}else{try{W.call()}catch(Tt){Ae=Tt}V.call(W.prototype)}else{try{throw Error()}catch(Tt){Ae=Tt}V()}}catch(Tt){if(Tt&&Ae&&typeof Tt.stack=="string"){for(var we=Tt.stack.split(`
`),He=Ae.stack.split(`
`),at=we.length-1,Et=He.length-1;1<=at&&0<=Et&&we[at]!==He[Et];)Et--;for(;1<=at&&0<=Et;at--,Et--)if(we[at]!==He[Et]){if(at!==1||Et!==1)do if(at--,Et--,0>Et||we[at]!==He[Et])return`
`+we[at].replace(" at new "," at ");while(1<=at&&0<=Et);break}}}finally{jn=!1,Error.prepareStackTrace=ae}return(V=V?V.displayName||V.name:"")?Un(V):""}var si=[],Qi=-1;function st(V){return{current:V}}function wt(V){0>Qi||(V.current=si[Qi],si[Qi]=null,Qi--)}function Bt(V,W){Qi++,si[Qi]=V.current,V.current=W}var dn={},tn=st(dn),vn=st(!1),kn=dn;function Mn(V,W){var ae=V.type.contextTypes;if(!ae)return dn;var Ae=V.stateNode;if(Ae&&Ae.__reactInternalMemoizedUnmaskedChildContext===W)return Ae.__reactInternalMemoizedMaskedChildContext;var we={},He;for(He in ae)we[He]=W[He];return Ae&&(V=V.stateNode,V.__reactInternalMemoizedUnmaskedChildContext=W,V.__reactInternalMemoizedMaskedChildContext=we),we}function Nr(V){return V=V.childContextTypes,V!=null}function na(){wt(vn),wt(tn)}function Ar(V,W,ae){if(tn.current!==dn)throw Error(l(168));Bt(tn,W),Bt(vn,ae)}function qi(V,W,ae){var Ae=V.stateNode;if(V=W.childContextTypes,typeof Ae.getChildContext!="function")return ae;Ae=Ae.getChildContext();for(var we in Ae)if(!(we in V))throw Error(l(108,L(W)||"Unknown",we));return a({},ae,Ae)}function Ge(V){return V=(V=V.stateNode)&&V.__reactInternalMemoizedMergedChildContext||dn,kn=tn.current,Bt(tn,V),Bt(vn,vn.current),!0}function ht(V,W,ae){var Ae=V.stateNode;if(!Ae)throw Error(l(169));ae?(V=qi(V,W,kn),Ae.__reactInternalMemoizedMergedChildContext=V,wt(vn),wt(tn),Bt(tn,V)):wt(vn),Bt(vn,ae)}var Je=null,Rt=null,Dt=s.unstable_now;Dt();var It=0,ln=8;function Hn(V){if(1&V)return ln=15,1;if(2&V)return ln=14,2;if(4&V)return ln=13,4;var W=24&V;return W!==0?(ln=12,W):V&32?(ln=11,32):(W=192&V,W!==0?(ln=10,W):V&256?(ln=9,256):(W=3584&V,W!==0?(ln=8,W):V&4096?(ln=7,4096):(W=4186112&V,W!==0?(ln=6,W):(W=62914560&V,W!==0?(ln=5,W):V&67108864?(ln=4,67108864):V&134217728?(ln=3,134217728):(W=805306368&V,W!==0?(ln=2,W):1073741824&V?(ln=1,1073741824):(ln=8,V))))))}function Zn(V){switch(V){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Jn(V){switch(V){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(l(358,V))}}function Xn(V,W){var ae=V.pendingLanes;if(ae===0)return ln=0;var Ae=0,we=0,He=V.expiredLanes,at=V.suspendedLanes,Et=V.pingedLanes;if(He!==0)Ae=He,we=ln=15;else if(He=ae&134217727,He!==0){var Tt=He&~at;Tt!==0?(Ae=Hn(Tt),we=ln):(Et&=He,Et!==0&&(Ae=Hn(Et),we=ln))}else He=ae&~at,He!==0?(Ae=Hn(He),we=ln):Et!==0&&(Ae=Hn(Et),we=ln);if(Ae===0)return 0;if(Ae=31-$a(Ae),Ae=ae&((0>Ae?0:1<<Ae)<<1)-1,W!==0&&W!==Ae&&!(W&at)){if(Hn(W),we<=ln)return W;ln=we}if(W=V.entangledLanes,W!==0)for(V=V.entanglements,W&=Ae;0<W;)ae=31-$a(W),we=1<<ae,Ae|=V[ae],W&=~we;return Ae}function zr(V){return V=V.pendingLanes&-1073741825,V!==0?V:V&1073741824?1073741824:0}function ua(V,W){switch(V){case 15:return 1;case 14:return 2;case 12:return V=Ta(24&~W),V===0?ua(10,W):V;case 10:return V=Ta(192&~W),V===0?ua(8,W):V;case 8:return V=Ta(3584&~W),V===0&&(V=Ta(4186112&~W),V===0&&(V=512)),V;case 2:return W=Ta(805306368&~W),W===0&&(W=268435456),W}throw Error(l(358,V))}function Ta(V){return V&-V}function Qa(V){for(var W=[],ae=0;31>ae;ae++)W.push(V);return W}function hs(V,W,ae){V.pendingLanes|=W;var Ae=W-1;V.suspendedLanes&=Ae,V.pingedLanes&=Ae,V=V.eventTimes,W=31-$a(W),V[W]=ae}var $a=Math.clz32?Math.clz32:uf,nd=Math.log,wm=Math.LN2;function uf(V){return V===0?32:31-(nd(V)/wm|0)|0}var b1=s.unstable_runWithPriority,_m=s.unstable_scheduleCallback,sA=s.unstable_cancelCallback,x1=s.unstable_shouldYield,hb=s.unstable_requestPaint,Sh=s.unstable_now,LE=s.unstable_getCurrentPriorityLevel,lA=s.unstable_ImmediatePriority,xg=s.unstable_UserBlockingPriority,Fv=s.unstable_NormalPriority,fb=s.unstable_LowPriority,BE=s.unstable_IdlePriority,Eg={},pb=hb!==void 0?hb:function(){},df=null,Sg=null,E1=!1,jv=Sh(),li=1e4>jv?Sh:function(){return Sh()-jv};function ea(){switch(LE()){case lA:return 99;case xg:return 98;case Fv:return 97;case fb:return 96;case BE:return 95;default:throw Error(l(332))}}function it(V){switch(V){case 99:return lA;case 98:return xg;case 97:return Fv;case 96:return fb;case 95:return BE;default:throw Error(l(332))}}function zt(V,W){return V=it(V),b1(V,W)}function Gn(V,W,ae){return V=it(V),_m(V,W,ae)}function Br(){if(Sg!==null){var V=Sg;Sg=null,sA(V)}dl()}function dl(){if(!E1&&df!==null){E1=!0;var V=0;try{var W=df;zt(99,function(){for(;V<W.length;V++){var ae=W[V];do ae=ae(!0);while(ae!==null)}}),df=null}catch(ae){throw df!==null&&(df=df.slice(V+1)),_m(lA,Br),ae}finally{E1=!1}}}var Ja=c.ReactCurrentBatchConfig;function Pl(V,W){return V===W&&(V!==0||1/V===1/W)||V!==V&&W!==W}var Ts=typeof Object.is=="function"?Object.is:Pl,ma=Object.prototype.hasOwnProperty;function Cs(V,W){if(Ts(V,W))return!0;if(typeof V!="object"||V===null||typeof W!="object"||W===null)return!1;var ae=Object.keys(V),Ae=Object.keys(W);if(ae.length!==Ae.length)return!1;for(Ae=0;Ae<ae.length;Ae++)if(!ma.call(W,ae[Ae])||!Ts(V[ae[Ae]],W[ae[Ae]]))return!1;return!0}function Sl(V){switch(V.tag){case 5:return Un(V.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return V=br(V.type,!1),V;case 11:return V=br(V.type.render,!1),V;case 22:return V=br(V.type._render,!1),V;case 1:return V=br(V.type,!0),V;default:return""}}function Yl(V,W){if(V&&V.defaultProps){W=a({},W),V=V.defaultProps;for(var ae in V)W[ae]===void 0&&(W[ae]=V[ae]);return W}return W}var Jl=st(null),Eo=null,Jc=null,wh=null;function Kd(){wh=Jc=Eo=null}function Pp(V,W){V=V.type._context,he?(Bt(Jl,V._currentValue),V._currentValue=W):(Bt(Jl,V._currentValue2),V._currentValue2=W)}function cA(V){var W=Jl.current;wt(Jl),V=V.type._context,he?V._currentValue=W:V._currentValue2=W}function Hv(V,W){for(;V!==null;){var ae=V.alternate;if((V.childLanes&W)===W){if(ae===null||(ae.childLanes&W)===W)break;ae.childLanes|=W}else V.childLanes|=W,ae!==null&&(ae.childLanes|=W);V=V.return}}function es(V,W){Eo=V,wh=Jc=null,V=V.dependencies,V!==null&&V.firstContext!==null&&(V.lanes&W&&(jf=!0),V.firstContext=null)}function Op(V,W){if(wh!==V&&W!==!1&&W!==0)if((typeof W!="number"||W===1073741823)&&(wh=V,W=1073741823),W={context:V,observedBits:W,next:null},Jc===null){if(Eo===null)throw Error(l(308));Jc=W,Eo.dependencies={lanes:0,firstContext:W,responders:null}}else Jc=Jc.next=W;return he?V._currentValue:V._currentValue2}var Vs=!1;function OC(V){V.updateQueue={baseState:V.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function u_(V,W){V=V.updateQueue,W.updateQueue===V&&(W.updateQueue={baseState:V.baseState,firstBaseUpdate:V.firstBaseUpdate,lastBaseUpdate:V.lastBaseUpdate,shared:V.shared,effects:V.effects})}function $c(V,W){return{eventTime:V,lane:W,tag:0,payload:null,callback:null,next:null}}function hf(V,W){if(V=V.updateQueue,V!==null){V=V.shared;var ae=V.pending;ae===null?W.next=W:(W.next=ae.next,ae.next=W),V.pending=W}}function S1(V,W){var ae=V.updateQueue,Ae=V.alternate;if(Ae!==null&&(Ae=Ae.updateQueue,ae===Ae)){var we=null,He=null;if(ae=ae.firstBaseUpdate,ae!==null){do{var at={eventTime:ae.eventTime,lane:ae.lane,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null};He===null?we=He=at:He=He.next=at,ae=ae.next}while(ae!==null);He===null?we=He=W:He=He.next=W}else we=He=W;ae={baseState:Ae.baseState,firstBaseUpdate:we,lastBaseUpdate:He,shared:Ae.shared,effects:Ae.effects},V.updateQueue=ae;return}V=ae.lastBaseUpdate,V===null?ae.firstBaseUpdate=W:V.next=W,ae.lastBaseUpdate=W}function va(V,W,ae,Ae){var we=V.updateQueue;Vs=!1;var He=we.firstBaseUpdate,at=we.lastBaseUpdate,Et=we.shared.pending;if(Et!==null){we.shared.pending=null;var Tt=Et,wn=Tt.next;Tt.next=null,at===null?He=wn:at.next=wn,at=Tt;var hr=V.alternate;if(hr!==null){hr=hr.updateQueue;var rr=hr.lastBaseUpdate;rr!==at&&(rr===null?hr.firstBaseUpdate=wn:rr.next=wn,hr.lastBaseUpdate=Tt)}}if(He!==null){rr=we.baseState,at=0,hr=wn=Tt=null;do{Et=He.lane;var xr=He.eventTime;if((Ae&Et)===Et){hr!==null&&(hr=hr.next={eventTime:xr,lane:0,tag:He.tag,payload:He.payload,callback:He.callback,next:null});e:{var ui=V,Ji=He;switch(Et=W,xr=ae,Ji.tag){case 1:if(ui=Ji.payload,typeof ui=="function"){rr=ui.call(xr,rr,Et);break e}rr=ui;break e;case 3:ui.flags=ui.flags&-4097|64;case 0:if(ui=Ji.payload,Et=typeof ui=="function"?ui.call(xr,rr,Et):ui,Et==null)break e;rr=a({},rr,Et);break e;case 2:Vs=!0}}He.callback!==null&&(V.flags|=32,Et=we.effects,Et===null?we.effects=[He]:Et.push(He))}else xr={eventTime:xr,lane:Et,tag:He.tag,payload:He.payload,callback:He.callback,next:null},hr===null?(wn=hr=xr,Tt=rr):hr=hr.next=xr,at|=Et;if(He=He.next,He===null){if(Et=we.shared.pending,Et===null)break;He=Et.next,Et.next=null,we.lastBaseUpdate=Et,we.shared.pending=null}}while(1);hr===null&&(Tt=rr),we.baseState=Tt,we.firstBaseUpdate=wn,we.lastBaseUpdate=hr,QE|=at,V.lanes=at,V.memoizedState=rr}}function Wd(V,W,ae){if(V=W.effects,W.effects=null,V!==null)for(W=0;W<V.length;W++){var Ae=V[W],we=Ae.callback;if(we!==null){if(Ae.callback=null,Ae=ae,typeof we!="function")throw Error(l(191,we));we.call(Ae)}}}var mb=new o.Component().refs;function d_(V,W,ae,Ae){W=V.memoizedState,ae=ae(Ae,W),ae=ae==null?W:a({},W,ae),V.memoizedState=ae,V.lanes===0&&(V.updateQueue.baseState=ae)}var Uv={isMounted:function(V){return(V=V._reactInternals)?I(V)===V:!1},enqueueSetState:function(V,W,ae){V=V._reactInternals;var Ae=Zd(),we=Ll(V),He=$c(Ae,we);He.payload=W,ae!=null&&(He.callback=ae),hf(V,He),Uf(V,we,Ae)},enqueueReplaceState:function(V,W,ae){V=V._reactInternals;var Ae=Zd(),we=Ll(V),He=$c(Ae,we);He.tag=1,He.payload=W,ae!=null&&(He.callback=ae),hf(V,He),Uf(V,we,Ae)},enqueueForceUpdate:function(V,W){V=V._reactInternals;var ae=Zd(),Ae=Ll(V),we=$c(ae,Ae);we.tag=2,W!=null&&(we.callback=W),hf(V,we),Uf(V,Ae,ae)}};function IN(V,W,ae,Ae,we,He,at){return V=V.stateNode,typeof V.shouldComponentUpdate=="function"?V.shouldComponentUpdate(Ae,He,at):W.prototype&&W.prototype.isPureReactComponent?!Cs(ae,Ae)||!Cs(we,He):!0}function PN(V,W,ae){var Ae=!1,we=dn,He=W.contextType;return typeof He=="object"&&He!==null?He=Op(He):(we=Nr(W)?kn:tn.current,Ae=W.contextTypes,He=(Ae=Ae!=null)?Mn(V,we):dn),W=new W(ae,He),V.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,W.updater=Uv,V.stateNode=W,W._reactInternals=V,Ae&&(V=V.stateNode,V.__reactInternalMemoizedUnmaskedChildContext=we,V.__reactInternalMemoizedMaskedChildContext=He),W}function ON(V,W,ae,Ae){V=W.state,typeof W.componentWillReceiveProps=="function"&&W.componentWillReceiveProps(ae,Ae),typeof W.UNSAFE_componentWillReceiveProps=="function"&&W.UNSAFE_componentWillReceiveProps(ae,Ae),W.state!==V&&Uv.enqueueReplaceState(W,W.state,null)}function DE(V,W,ae,Ae){var we=V.stateNode;we.props=ae,we.state=V.memoizedState,we.refs=mb,OC(V);var He=W.contextType;typeof He=="object"&&He!==null?we.context=Op(He):(He=Nr(W)?kn:tn.current,we.context=Mn(V,He)),va(V,ae,we,Ae),we.state=V.memoizedState,He=W.getDerivedStateFromProps,typeof He=="function"&&(d_(V,W,He,ae),we.state=V.memoizedState),typeof W.getDerivedStateFromProps=="function"||typeof we.getSnapshotBeforeUpdate=="function"||typeof we.UNSAFE_componentWillMount!="function"&&typeof we.componentWillMount!="function"||(W=we.state,typeof we.componentWillMount=="function"&&we.componentWillMount(),typeof we.UNSAFE_componentWillMount=="function"&&we.UNSAFE_componentWillMount(),W!==we.state&&Uv.enqueueReplaceState(we,we.state,null),va(V,ae,we,Ae),we.state=V.memoizedState),typeof we.componentDidMount=="function"&&(V.flags|=4)}var wg=Array.isArray;function _h(V,W,ae){if(V=ae.ref,V!==null&&typeof V!="function"&&typeof V!="object"){if(ae._owner){if(ae=ae._owner,ae){if(ae.tag!==1)throw Error(l(309));var Ae=ae.stateNode}if(!Ae)throw Error(l(147,V));var we=""+V;return W!==null&&W.ref!==null&&typeof W.ref=="function"&&W.ref._stringRef===we?W.ref:(W=function(He){var at=Ae.refs;at===mb&&(at=Ae.refs={}),He===null?delete at[we]:at[we]=He},W._stringRef=we,W)}if(typeof V!="string")throw Error(l(284));if(!ae._owner)throw Error(l(290,V))}return V}function $E(V,W){if(V.type!=="textarea")throw Error(l(31,Object.prototype.toString.call(W)==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":W))}function w1(V){function W(Vt,Lt){if(V){var bn=Vt.lastEffect;bn!==null?(bn.nextEffect=Lt,Vt.lastEffect=Lt):Vt.firstEffect=Vt.lastEffect=Lt,Lt.nextEffect=null,Lt.flags=8}}function ae(Vt,Lt){if(!V)return null;for(;Lt!==null;)W(Vt,Lt),Lt=Lt.sibling;return null}function Ae(Vt,Lt){for(Vt=new Map;Lt!==null;)Lt.key!==null?Vt.set(Lt.key,Lt):Vt.set(Lt.index,Lt),Lt=Lt.sibling;return Vt}function we(Vt,Lt){return Vt=We(Vt,Lt),Vt.index=0,Vt.sibling=null,Vt}function He(Vt,Lt,bn){return Vt.index=bn,V?(bn=Vt.alternate,bn!==null?(bn=bn.index,bn<Lt?(Vt.flags=2,Lt):bn):(Vt.flags=2,Lt)):Lt}function at(Vt){return V&&Vt.alternate===null&&(Vt.flags=2),Vt}function Et(Vt,Lt,bn,Fr){return Lt===null||Lt.tag!==6?(Lt=Xt(bn,Vt.mode,Fr),Lt.return=Vt,Lt):(Lt=we(Lt,bn),Lt.return=Vt,Lt)}function Tt(Vt,Lt,bn,Fr){return Lt!==null&&Lt.elementType===bn.type?(Fr=we(Lt,bn.props),Fr.ref=_h(Vt,Lt,bn),Fr.return=Vt,Fr):(Fr=Nt(bn.type,bn.key,bn.props,null,Vt.mode,Fr),Fr.ref=_h(Vt,Lt,bn),Fr.return=Vt,Fr)}function wn(Vt,Lt,bn,Fr){return Lt===null||Lt.tag!==4||Lt.stateNode.containerInfo!==bn.containerInfo||Lt.stateNode.implementation!==bn.implementation?(Lt=cn(bn,Vt.mode,Fr),Lt.return=Vt,Lt):(Lt=we(Lt,bn.children||[]),Lt.return=Vt,Lt)}function hr(Vt,Lt,bn,Fr,wi){return Lt===null||Lt.tag!==7?(Lt=jt(bn,Vt.mode,Fr,wi),Lt.return=Vt,Lt):(Lt=we(Lt,bn),Lt.return=Vt,Lt)}function rr(Vt,Lt,bn){if(typeof Lt=="string"||typeof Lt=="number")return Lt=Xt(""+Lt,Vt.mode,bn),Lt.return=Vt,Lt;if(typeof Lt=="object"&&Lt!==null){switch(Lt.$$typeof){case u:return bn=Nt(Lt.type,Lt.key,Lt.props,null,Vt.mode,bn),bn.ref=_h(Vt,null,Lt),bn.return=Vt,bn;case d:return Lt=cn(Lt,Vt.mode,bn),Lt.return=Vt,Lt}if(wg(Lt)||N(Lt))return Lt=jt(Lt,Vt.mode,bn,null),Lt.return=Vt,Lt;$E(Vt,Lt)}return null}function xr(Vt,Lt,bn,Fr){var wi=Lt!==null?Lt.key:null;if(typeof bn=="string"||typeof bn=="number")return wi!==null?null:Et(Vt,Lt,""+bn,Fr);if(typeof bn=="object"&&bn!==null){switch(bn.$$typeof){case u:return bn.key===wi?bn.type===h?hr(Vt,Lt,bn.props.children,Fr,wi):Tt(Vt,Lt,bn,Fr):null;case d:return bn.key===wi?wn(Vt,Lt,bn,Fr):null}if(wg(bn)||N(bn))return wi!==null?null:hr(Vt,Lt,bn,Fr,null);$E(Vt,bn)}return null}function ui(Vt,Lt,bn,Fr,wi){if(typeof Fr=="string"||typeof Fr=="number")return Vt=Vt.get(bn)||null,Et(Lt,Vt,""+Fr,wi);if(typeof Fr=="object"&&Fr!==null){switch(Fr.$$typeof){case u:return Vt=Vt.get(Fr.key===null?bn:Fr.key)||null,Fr.type===h?hr(Lt,Vt,Fr.props.children,wi,Fr.key):Tt(Lt,Vt,Fr,wi);case d:return Vt=Vt.get(Fr.key===null?bn:Fr.key)||null,wn(Lt,Vt,Fr,wi)}if(wg(Fr)||N(Fr))return Vt=Vt.get(bn)||null,hr(Lt,Vt,Fr,wi,null);$E(Lt,Fr)}return null}function Ji(Vt,Lt,bn,Fr){for(var wi=null,ys=null,Sa=Lt,po=Lt=0,pl=null;Sa!==null&&po<bn.length;po++){Sa.index>po?(pl=Sa,Sa=null):pl=Sa.sibling;var Ei=xr(Vt,Sa,bn[po],Fr);if(Ei===null){Sa===null&&(Sa=pl);break}V&&Sa&&Ei.alternate===null&&W(Vt,Sa),Lt=He(Ei,Lt,po),ys===null?wi=Ei:ys.sibling=Ei,ys=Ei,Sa=pl}if(po===bn.length)return ae(Vt,Sa),wi;if(Sa===null){for(;po<bn.length;po++)Sa=rr(Vt,bn[po],Fr),Sa!==null&&(Lt=He(Sa,Lt,po),ys===null?wi=Sa:ys.sibling=Sa,ys=Sa);return wi}for(Sa=Ae(Vt,Sa);po<bn.length;po++)pl=ui(Sa,Vt,po,bn[po],Fr),pl!==null&&(V&&pl.alternate!==null&&Sa.delete(pl.key===null?po:pl.key),Lt=He(pl,Lt,po),ys===null?wi=pl:ys.sibling=pl,ys=pl);return V&&Sa.forEach(function(ks){return W(Vt,ks)}),wi}function Za(Vt,Lt,bn,Fr){var wi=N(bn);if(typeof wi!="function")throw Error(l(150));if(bn=wi.call(bn),bn==null)throw Error(l(151));for(var ys=wi=null,Sa=Lt,po=Lt=0,pl=null,Ei=bn.next();Sa!==null&&!Ei.done;po++,Ei=bn.next()){Sa.index>po?(pl=Sa,Sa=null):pl=Sa.sibling;var ks=xr(Vt,Sa,Ei.value,Fr);if(ks===null){Sa===null&&(Sa=pl);break}V&&Sa&&ks.alternate===null&&W(Vt,Sa),Lt=He(ks,Lt,po),ys===null?wi=ks:ys.sibling=ks,ys=ks,Sa=pl}if(Ei.done)return ae(Vt,Sa),wi;if(Sa===null){for(;!Ei.done;po++,Ei=bn.next())Ei=rr(Vt,Ei.value,Fr),Ei!==null&&(Lt=He(Ei,Lt,po),ys===null?wi=Ei:ys.sibling=Ei,ys=Ei);return wi}for(Sa=Ae(Vt,Sa);!Ei.done;po++,Ei=bn.next())Ei=ui(Sa,Vt,po,Ei.value,Fr),Ei!==null&&(V&&Ei.alternate!==null&&Sa.delete(Ei.key===null?po:Ei.key),Lt=He(Ei,Lt,po),ys===null?wi=Ei:ys.sibling=Ei,ys=Ei);return V&&Sa.forEach(function(ik){return W(Vt,ik)}),wi}return function(Vt,Lt,bn,Fr){var wi=typeof bn=="object"&&bn!==null&&bn.type===h&&bn.key===null;wi&&(bn=bn.props.children);var ys=typeof bn=="object"&&bn!==null;if(ys)switch(bn.$$typeof){case u:e:{for(ys=bn.key,wi=Lt;wi!==null;){if(wi.key===ys){switch(wi.tag){case 7:if(bn.type===h){ae(Vt,wi.sibling),Lt=we(wi,bn.props.children),Lt.return=Vt,Vt=Lt;break e}break;default:if(wi.elementType===bn.type){ae(Vt,wi.sibling),Lt=we(wi,bn.props),Lt.ref=_h(Vt,wi,bn),Lt.return=Vt,Vt=Lt;break e}}ae(Vt,wi);break}else W(Vt,wi);wi=wi.sibling}bn.type===h?(Lt=jt(bn.props.children,Vt.mode,Fr,bn.key),Lt.return=Vt,Vt=Lt):(Fr=Nt(bn.type,bn.key,bn.props,null,Vt.mode,Fr),Fr.ref=_h(Vt,Lt,bn),Fr.return=Vt,Vt=Fr)}return at(Vt);case d:e:{for(wi=bn.key;Lt!==null;){if(Lt.key===wi)if(Lt.tag===4&&Lt.stateNode.containerInfo===bn.containerInfo&&Lt.stateNode.implementation===bn.implementation){ae(Vt,Lt.sibling),Lt=we(Lt,bn.children||[]),Lt.return=Vt,Vt=Lt;break e}else{ae(Vt,Lt);break}else W(Vt,Lt);Lt=Lt.sibling}Lt=cn(bn,Vt.mode,Fr),Lt.return=Vt,Vt=Lt}return at(Vt)}if(typeof bn=="string"||typeof bn=="number")return bn=""+bn,Lt!==null&&Lt.tag===6?(ae(Vt,Lt.sibling),Lt=we(Lt,bn),Lt.return=Vt,Vt=Lt):(ae(Vt,Lt),Lt=Xt(bn,Vt.mode,Fr),Lt.return=Vt,Vt=Lt),at(Vt);if(wg(bn))return Ji(Vt,Lt,bn,Fr);if(N(bn))return Za(Vt,Lt,bn,Fr);if(ys&&$E(Vt,bn),typeof bn>"u"&&!wi)switch(Vt.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,L(Vt.type)||"Component"))}return ae(Vt,Lt)}}var uA=w1(!0),_1=w1(!1),zv={},Th=st(zv),FE=st(zv),Tm=st(zv);function ff(V){if(V===zv)throw Error(l(174));return V}function T1(V,W){Bt(Tm,W),Bt(FE,V),Bt(Th,zv),V=H(W),wt(Th),Bt(Th,V)}function dA(){wt(Th),wt(FE),wt(Tm)}function Ol(V){var W=ff(Tm.current),ae=ff(Th.current);W=U(ae,V.type,W),ae!==W&&(Bt(FE,V),Bt(Th,W))}function C1(V){FE.current===V&&(wt(Th),wt(FE))}var Ks=st(0);function gb(V){for(var W=V;W!==null;){if(W.tag===13){var ae=W.memoizedState;if(ae!==null&&(ae=ae.dehydrated,ae===null||yt(ae)||Ze(ae)))return W}else if(W.tag===19&&W.memoizedProps.revealOrder!==void 0){if(W.flags&64)return W}else if(W.child!==null){W.child.return=W,W=W.child;continue}if(W===V)break;for(;W.sibling===null;){if(W.return===null||W.return===V)return null;W=W.return}W.sibling.return=W.return,W=W.sibling}return null}var Cm=null,k1=null,_g=!1;function LN(V,W){var ae=xe(5,null,null,0);ae.elementType="DELETED",ae.type="DELETED",ae.stateNode=W,ae.return=V,ae.flags=8,V.lastEffect!==null?(V.lastEffect.nextEffect=ae,V.lastEffect=ae):V.firstEffect=V.lastEffect=ae}function LC(V,W){switch(V.tag){case 5:return W=$e(W,V.type,V.pendingProps),W!==null?(V.stateNode=W,!0):!1;case 6:return W=qe(W,V.pendingProps),W!==null?(V.stateNode=W,!0):!1;case 13:return!1;default:return!1}}function h_(V){if(_g){var W=k1;if(W){var ae=W;if(!LC(V,W)){if(W=ot(ae),!W||!LC(V,W)){V.flags=V.flags&-1025|2,_g=!1,Cm=V;return}LN(Cm,ae)}Cm=V,k1=yn(W)}else V.flags=V.flags&-1025|2,_g=!1,Cm=V}}function Lp(V){for(V=V.return;V!==null&&V.tag!==5&&V.tag!==3&&V.tag!==13;)V=V.return;Cm=V}function f_(V){if(!Ee||V!==Cm)return!1;if(!_g)return Lp(V),_g=!0,!1;var W=V.type;if(V.tag!==5||W!=="head"&&W!=="body"&&!X(W,V.memoizedProps))for(W=k1;W;)LN(V,W),W=ot(W);if(Lp(V),V.tag===13){if(!Ee)throw Error(l(316));if(V=V.memoizedState,V=V!==null?V.dehydrated:null,!V)throw Error(l(317));k1=ft(V)}else k1=Cm?ot(V.stateNode):null;return!0}function BC(){Ee&&(k1=Cm=null,_g=!1)}var Bp=[];function vb(){for(var V=0;V<Bp.length;V++){var W=Bp[V];he?W._workInProgressVersionPrimary=null:W._workInProgressVersionSecondary=null}Bp.length=0}var bu=c.ReactCurrentDispatcher,zu=c.ReactCurrentBatchConfig,Ab=0,uc=null,Qd=null,hl=null,dc=!1,R1=!1;function pf(){throw Error(l(321))}function DC(V,W){if(W===null)return!1;for(var ae=0;ae<W.length&&ae<V.length;ae++)if(!Ts(V[ae],W[ae]))return!1;return!0}function $C(V,W,ae,Ae,we,He){if(Ab=He,uc=W,W.memoizedState=null,W.updateQueue=null,W.lanes=0,bu.current=V===null||V.memoizedState===null?LO:N1,V=ae(Ae,we),R1){He=0;do{if(R1=!1,!(25>He))throw Error(l(301));He+=1,hl=Qd=null,W.updateQueue=null,bu.current=Ch,V=ae(Ae,we)}while(R1)}if(bu.current=p_,W=Qd!==null&&Qd.next!==null,Ab=0,hl=Qd=uc=null,dc=!1,W)throw Error(l(300));return V}function Gv(){var V={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hl===null?uc.memoizedState=hl=V:hl=hl.next=V,hl}function Tg(){if(Qd===null){var V=uc.alternate;V=V!==null?V.memoizedState:null}else V=Qd.next;var W=hl===null?uc.memoizedState:hl.next;if(W!==null)hl=W,Qd=V;else{if(V===null)throw Error(l(310));Qd=V,V={memoizedState:Qd.memoizedState,baseState:Qd.baseState,baseQueue:Qd.baseQueue,queue:Qd.queue,next:null},hl===null?uc.memoizedState=hl=V:hl=hl.next=V}return hl}function Fc(V,W){return typeof W=="function"?W(V):W}function Ke(V){var W=Tg(),ae=W.queue;if(ae===null)throw Error(l(311));ae.lastRenderedReducer=V;var Ae=Qd,we=Ae.baseQueue,He=ae.pending;if(He!==null){if(we!==null){var at=we.next;we.next=He.next,He.next=at}Ae.baseQueue=we=He,ae.pending=null}if(we!==null){we=we.next,Ae=Ae.baseState;var Et=at=He=null,Tt=we;do{var wn=Tt.lane;if((Ab&wn)===wn)Et!==null&&(Et=Et.next={lane:0,action:Tt.action,eagerReducer:Tt.eagerReducer,eagerState:Tt.eagerState,next:null}),Ae=Tt.eagerReducer===V?Tt.eagerState:V(Ae,Tt.action);else{var hr={lane:wn,action:Tt.action,eagerReducer:Tt.eagerReducer,eagerState:Tt.eagerState,next:null};Et===null?(at=Et=hr,He=Ae):Et=Et.next=hr,uc.lanes|=wn,QE|=wn}Tt=Tt.next}while(Tt!==null&&Tt!==we);Et===null?He=Ae:Et.next=at,Ts(Ae,W.memoizedState)||(jf=!0),W.memoizedState=Ae,W.baseState=He,W.baseQueue=Et,ae.lastRenderedState=Ae}return[W.memoizedState,ae.dispatch]}function pt(V){var W=Tg(),ae=W.queue;if(ae===null)throw Error(l(311));ae.lastRenderedReducer=V;var Ae=ae.dispatch,we=ae.pending,He=W.memoizedState;if(we!==null){ae.pending=null;var at=we=we.next;do He=V(He,at.action),at=at.next;while(at!==we);Ts(He,W.memoizedState)||(jf=!0),W.memoizedState=He,W.baseQueue===null&&(W.baseState=He),ae.lastRenderedState=He}return[He,Ae]}function nt(V,W,ae){var Ae=W._getVersion;Ae=Ae(W._source);var we=he?W._workInProgressVersionPrimary:W._workInProgressVersionSecondary;if(we!==null?V=we===Ae:(V=V.mutableReadLanes,(V=(Ab&V)===V)&&(he?W._workInProgressVersionPrimary=Ae:W._workInProgressVersionSecondary=Ae,Bp.push(W))),V)return ae(W._source);throw Bp.push(W),Error(l(350))}function Sn(V,W,ae,Ae){var we=ts;if(we===null)throw Error(l(349));var He=W._getVersion,at=He(W._source),Et=bu.current,Tt=Et.useState(function(){return nt(we,W,ae)}),wn=Tt[1],hr=Tt[0];Tt=hl;var rr=V.memoizedState,xr=rr.refs,ui=xr.getSnapshot,Ji=rr.source;rr=rr.subscribe;var Za=uc;return V.memoizedState={refs:xr,source:W,subscribe:Ae},Et.useEffect(function(){xr.getSnapshot=ae,xr.setSnapshot=wn;var Vt=He(W._source);if(!Ts(at,Vt)){Vt=ae(W._source),Ts(hr,Vt)||(wn(Vt),Vt=Ll(Za),we.mutableReadLanes|=Vt&we.pendingLanes),Vt=we.mutableReadLanes,we.entangledLanes|=Vt;for(var Lt=we.entanglements,bn=Vt;0<bn;){var Fr=31-$a(bn),wi=1<<Fr;Lt[Fr]|=Vt,bn&=~wi}}},[ae,W,Ae]),Et.useEffect(function(){return Ae(W._source,function(){var Vt=xr.getSnapshot,Lt=xr.setSnapshot;try{Lt(Vt(W._source));var bn=Ll(Za);we.mutableReadLanes|=bn&we.pendingLanes}catch(Fr){Lt(function(){throw Fr})}})},[W,Ae]),Ts(ui,ae)&&Ts(Ji,W)&&Ts(rr,Ae)||(V={pending:null,dispatch:null,lastRenderedReducer:Fc,lastRenderedState:hr},V.dispatch=wn=jC.bind(null,uc,V),Tt.queue=V,Tt.baseQueue=null,hr=nt(we,W,ae),Tt.memoizedState=Tt.baseState=hr),hr}function yr(V,W,ae){var Ae=Tg();return Sn(Ae,V,W,ae)}function vi(V){var W=Gv();return typeof V=="function"&&(V=V()),W.memoizedState=W.baseState=V,V=W.queue={pending:null,dispatch:null,lastRenderedReducer:Fc,lastRenderedState:V},V=V.dispatch=jC.bind(null,uc,V),[W.memoizedState,V]}function ao(V,W,ae,Ae){return V={tag:V,create:W,destroy:ae,deps:Ae,next:null},W=uc.updateQueue,W===null?(W={lastEffect:null},uc.updateQueue=W,W.lastEffect=V.next=V):(ae=W.lastEffect,ae===null?W.lastEffect=V.next=V:(Ae=ae.next,ae.next=V,V.next=Ae,W.lastEffect=V)),V}function aa(V){var W=Gv();return V={current:V},W.memoizedState=V}function hA(){return Tg().memoizedState}function yb(V,W,ae,Ae){var we=Gv();uc.flags|=V,we.memoizedState=ao(1|W,ae,void 0,Ae===void 0?null:Ae)}function Zl(V,W,ae,Ae){var we=Tg();Ae=Ae===void 0?null:Ae;var He=void 0;if(Qd!==null){var at=Qd.memoizedState;if(He=at.destroy,Ae!==null&&DC(Ae,at.deps)){ao(W,ae,He,Ae);return}}uc.flags|=V,we.memoizedState=ao(1|W,ae,He,Ae)}function fA(V,W){return yb(516,4,V,W)}function jE(V,W){return Zl(516,4,V,W)}function mf(V,W){return Zl(4,2,V,W)}function pA(V,W){if(typeof W=="function")return V=V(),W(V),function(){W(null)};if(W!=null)return V=V(),W.current=V,function(){W.current=null}}function mA(V,W,ae){return ae=ae!=null?ae.concat([V]):null,Zl(4,2,pA.bind(null,W,V),ae)}function Yi(){}function FC(V,W){var ae=Tg();W=W===void 0?null:W;var Ae=ae.memoizedState;return Ae!==null&&W!==null&&DC(W,Ae[1])?Ae[0]:(ae.memoizedState=[V,W],V)}function HE(V,W){var ae=Tg();W=W===void 0?null:W;var Ae=ae.memoizedState;return Ae!==null&&W!==null&&DC(W,Ae[1])?Ae[0]:(V=V(),ae.memoizedState=[V,W],V)}function M1(V,W){var ae=ea();zt(98>ae?98:ae,function(){V(!0)}),zt(97<ae?97:ae,function(){var Ae=zu.transition;zu.transition=1;try{V(!1),W()}finally{zu.transition=Ae}})}function jC(V,W,ae){var Ae=Zd(),we=Ll(V),He={lane:we,action:ae,eagerReducer:null,eagerState:null,next:null},at=W.pending;if(at===null?He.next=He:(He.next=at.next,at.next=He),W.pending=He,at=V.alternate,V===uc||at!==null&&at===uc)R1=dc=!0;else{if(V.lanes===0&&(at===null||at.lanes===0)&&(at=W.lastRenderedReducer,at!==null))try{var Et=W.lastRenderedState,Tt=at(Et,ae);if(He.eagerReducer=at,He.eagerState=Tt,Ts(Tt,Et))return}catch{}finally{}Uf(V,we,Ae)}}var p_={readContext:Op,useCallback:pf,useContext:pf,useEffect:pf,useImperativeHandle:pf,useLayoutEffect:pf,useMemo:pf,useReducer:pf,useRef:pf,useState:pf,useDebugValue:pf,useDeferredValue:pf,useTransition:pf,useMutableSource:pf,useOpaqueIdentifier:pf,unstable_isNewReconciler:!1},LO={readContext:Op,useCallback:function(V,W){return Gv().memoizedState=[V,W===void 0?null:W],V},useContext:Op,useEffect:fA,useImperativeHandle:function(V,W,ae){return ae=ae!=null?ae.concat([V]):null,yb(4,2,pA.bind(null,W,V),ae)},useLayoutEffect:function(V,W){return yb(4,2,V,W)},useMemo:function(V,W){var ae=Gv();return W=W===void 0?null:W,V=V(),ae.memoizedState=[V,W],V},useReducer:function(V,W,ae){var Ae=Gv();return W=ae!==void 0?ae(W):W,Ae.memoizedState=Ae.baseState=W,V=Ae.queue={pending:null,dispatch:null,lastRenderedReducer:V,lastRenderedState:W},V=V.dispatch=jC.bind(null,uc,V),[Ae.memoizedState,V]},useRef:aa,useState:vi,useDebugValue:Yi,useDeferredValue:function(V){var W=vi(V),ae=W[0],Ae=W[1];return fA(function(){var we=zu.transition;zu.transition=1;try{Ae(V)}finally{zu.transition=we}},[V]),ae},useTransition:function(){var V=vi(!1),W=V[0];return V=M1.bind(null,V[1]),aa(V),[V,W]},useMutableSource:function(V,W,ae){var Ae=Gv();return Ae.memoizedState={refs:{getSnapshot:W,setSnapshot:null},source:V,subscribe:ae},Sn(Ae,V,W,ae)},useOpaqueIdentifier:function(){if(_g){var V=!1,W=Be(function(){throw V||(V=!0,ae(ze())),Error(l(355))}),ae=vi(W)[1];return!(uc.mode&2)&&(uc.flags|=516,ao(5,function(){ae(ze())},void 0,null)),W}return W=ze(),vi(W),W},unstable_isNewReconciler:!1},N1={readContext:Op,useCallback:FC,useContext:Op,useEffect:jE,useImperativeHandle:mA,useLayoutEffect:mf,useMemo:HE,useReducer:Ke,useRef:hA,useState:function(){return Ke(Fc)},useDebugValue:Yi,useDeferredValue:function(V){var W=Ke(Fc),ae=W[0],Ae=W[1];return jE(function(){var we=zu.transition;zu.transition=1;try{Ae(V)}finally{zu.transition=we}},[V]),ae},useTransition:function(){var V=Ke(Fc)[0];return[hA().current,V]},useMutableSource:yr,useOpaqueIdentifier:function(){return Ke(Fc)[0]},unstable_isNewReconciler:!1},Ch={readContext:Op,useCallback:FC,useContext:Op,useEffect:jE,useImperativeHandle:mA,useLayoutEffect:mf,useMemo:HE,useReducer:pt,useRef:hA,useState:function(){return pt(Fc)},useDebugValue:Yi,useDeferredValue:function(V){var W=pt(Fc),ae=W[0],Ae=W[1];return jE(function(){var we=zu.transition;zu.transition=1;try{Ae(V)}finally{zu.transition=we}},[V]),ae},useTransition:function(){var V=pt(Fc)[0];return[hA().current,V]},useMutableSource:yr,useOpaqueIdentifier:function(){return pt(Fc)[0]},unstable_isNewReconciler:!1},I1=c.ReactCurrentOwner,jf=!1;function xu(V,W,ae,Ae){W.child=V===null?_1(W,null,ae,Ae):uA(W,V.child,ae,Ae)}function m_(V,W,ae,Ae,we){ae=ae.render;var He=W.ref;return es(W,we),Ae=$C(V,W,ae,Ae,He,we),V!==null&&!jf?(W.updateQueue=V.updateQueue,W.flags&=-517,V.lanes&=~we,Ga(V,W,we)):(W.flags|=1,xu(V,W,Ae,we),W.child)}function g_(V,W,ae,Ae,we,He){if(V===null){var at=ae.type;return typeof at=="function"&&!Re(at)&&at.defaultProps===void 0&&ae.compare===null&&ae.defaultProps===void 0?(W.tag=15,W.type=at,gA(V,W,at,Ae,we,He)):(V=Nt(ae.type,null,Ae,W,W.mode,He),V.ref=W.ref,V.return=W,W.child=V)}return at=V.child,!(we&He)&&(we=at.memoizedProps,ae=ae.compare,ae=ae!==null?ae:Cs,ae(we,Ae)&&V.ref===W.ref)?Ga(V,W,He):(W.flags|=1,V=We(at,Ae),V.ref=W.ref,V.return=W,W.child=V)}function gA(V,W,ae,Ae,we,He){if(V!==null&&Cs(V.memoizedProps,Ae)&&V.ref===W.ref)if(jf=!1,(He&we)!==0)V.flags&16384&&(jf=!0);else return W.lanes=V.lanes,Ga(V,W,He);return qd(V,W,ae,Ae,He)}function UE(V,W,ae){var Ae=W.pendingProps,we=Ae.children,He=V!==null?V.memoizedState:null;if(Ae.mode==="hidden"||Ae.mode==="unstable-defer-without-hiding")if(!(W.mode&4))W.memoizedState={baseLanes:0},Zv(W,ae);else if(ae&1073741824)W.memoizedState={baseLanes:0},Zv(W,He!==null?He.baseLanes:ae);else return V=He!==null?He.baseLanes|ae:ae,W.lanes=W.childLanes=1073741824,W.memoizedState={baseLanes:V},Zv(W,V),null;else He!==null?(Ae=He.baseLanes|ae,W.memoizedState=null):Ae=ae,Zv(W,Ae);return xu(V,W,we,ae),W.child}function Cg(V,W){var ae=W.ref;(V===null&&ae!==null||V!==null&&V.ref!==ae)&&(W.flags|=128)}function qd(V,W,ae,Ae,we){var He=Nr(ae)?kn:tn.current;return He=Mn(W,He),es(W,we),ae=$C(V,W,ae,Ae,He,we),V!==null&&!jf?(W.updateQueue=V.updateQueue,W.flags&=-517,V.lanes&=~we,Ga(V,W,we)):(W.flags|=1,xu(V,W,ae,we),W.child)}function Vv(V,W,ae,Ae,we){if(Nr(ae)){var He=!0;Ge(W)}else He=!1;if(es(W,we),W.stateNode===null)V!==null&&(V.alternate=null,W.alternate=null,W.flags|=2),PN(W,ae,Ae),DE(W,ae,Ae,we),Ae=!0;else if(V===null){var at=W.stateNode,Et=W.memoizedProps;at.props=Et;var Tt=at.context,wn=ae.contextType;typeof wn=="object"&&wn!==null?wn=Op(wn):(wn=Nr(ae)?kn:tn.current,wn=Mn(W,wn));var hr=ae.getDerivedStateFromProps,rr=typeof hr=="function"||typeof at.getSnapshotBeforeUpdate=="function";rr||typeof at.UNSAFE_componentWillReceiveProps!="function"&&typeof at.componentWillReceiveProps!="function"||(Et!==Ae||Tt!==wn)&&ON(W,at,Ae,wn),Vs=!1;var xr=W.memoizedState;at.state=xr,va(W,Ae,at,we),Tt=W.memoizedState,Et!==Ae||xr!==Tt||vn.current||Vs?(typeof hr=="function"&&(d_(W,ae,hr,Ae),Tt=W.memoizedState),(Et=Vs||IN(W,ae,Et,Ae,xr,Tt,wn))?(rr||typeof at.UNSAFE_componentWillMount!="function"&&typeof at.componentWillMount!="function"||(typeof at.componentWillMount=="function"&&at.componentWillMount(),typeof at.UNSAFE_componentWillMount=="function"&&at.UNSAFE_componentWillMount()),typeof at.componentDidMount=="function"&&(W.flags|=4)):(typeof at.componentDidMount=="function"&&(W.flags|=4),W.memoizedProps=Ae,W.memoizedState=Tt),at.props=Ae,at.state=Tt,at.context=wn,Ae=Et):(typeof at.componentDidMount=="function"&&(W.flags|=4),Ae=!1)}else{at=W.stateNode,u_(V,W),Et=W.memoizedProps,wn=W.type===W.elementType?Et:Yl(W.type,Et),at.props=wn,rr=W.pendingProps,xr=at.context,Tt=ae.contextType,typeof Tt=="object"&&Tt!==null?Tt=Op(Tt):(Tt=Nr(ae)?kn:tn.current,Tt=Mn(W,Tt));var ui=ae.getDerivedStateFromProps;(hr=typeof ui=="function"||typeof at.getSnapshotBeforeUpdate=="function")||typeof at.UNSAFE_componentWillReceiveProps!="function"&&typeof at.componentWillReceiveProps!="function"||(Et!==rr||xr!==Tt)&&ON(W,at,Ae,Tt),Vs=!1,xr=W.memoizedState,at.state=xr,va(W,Ae,at,we);var Ji=W.memoizedState;Et!==rr||xr!==Ji||vn.current||Vs?(typeof ui=="function"&&(d_(W,ae,ui,Ae),Ji=W.memoizedState),(wn=Vs||IN(W,ae,wn,Ae,xr,Ji,Tt))?(hr||typeof at.UNSAFE_componentWillUpdate!="function"&&typeof at.componentWillUpdate!="function"||(typeof at.componentWillUpdate=="function"&&at.componentWillUpdate(Ae,Ji,Tt),typeof at.UNSAFE_componentWillUpdate=="function"&&at.UNSAFE_componentWillUpdate(Ae,Ji,Tt)),typeof at.componentDidUpdate=="function"&&(W.flags|=4),typeof at.getSnapshotBeforeUpdate=="function"&&(W.flags|=256)):(typeof at.componentDidUpdate!="function"||Et===V.memoizedProps&&xr===V.memoizedState||(W.flags|=4),typeof at.getSnapshotBeforeUpdate!="function"||Et===V.memoizedProps&&xr===V.memoizedState||(W.flags|=256),W.memoizedProps=Ae,W.memoizedState=Ji),at.props=Ae,at.state=Ji,at.context=Tt,Ae=wn):(typeof at.componentDidUpdate!="function"||Et===V.memoizedProps&&xr===V.memoizedState||(W.flags|=4),typeof at.getSnapshotBeforeUpdate!="function"||Et===V.memoizedProps&&xr===V.memoizedState||(W.flags|=256),Ae=!1)}return HC(V,W,ae,Ae,He,we)}function HC(V,W,ae,Ae,we,He){Cg(V,W);var at=(W.flags&64)!==0;if(!Ae&&!at)return we&&ht(W,ae,!1),Ga(V,W,He);Ae=W.stateNode,I1.current=W;var Et=at&&typeof ae.getDerivedStateFromError!="function"?null:Ae.render();return W.flags|=1,V!==null&&at?(W.child=uA(W,V.child,null,He),W.child=uA(W,null,Et,He)):xu(V,W,Et,He),W.memoizedState=Ae.state,we&&ht(W,ae,!0),W.child}function UC(V){var W=V.stateNode;W.pendingContext?Ar(V,W.pendingContext,W.pendingContext!==W.context):W.context&&Ar(V,W.context,!1),T1(V,W.containerInfo)}var v_={dehydrated:null,retryLane:0};function vA(V,W,ae){var Ae=W.pendingProps,we=Ks.current,He=!1,at;return(at=(W.flags&64)!==0)||(at=V!==null&&V.memoizedState===null?!1:(we&2)!==0),at?(He=!0,W.flags&=-65):V!==null&&V.memoizedState===null||Ae.fallback===void 0||Ae.unstable_avoidThisFallback===!0||(we|=1),Bt(Ks,we&1),V===null?(Ae.fallback!==void 0&&h_(W),V=Ae.children,we=Ae.fallback,He?(V=gf(W,V,we,ae),W.child.memoizedState={baseLanes:ae},W.memoizedState=v_,V):typeof Ae.unstable_expectedLoadTime=="number"?(V=gf(W,V,we,ae),W.child.memoizedState={baseLanes:ae},W.memoizedState=v_,W.lanes=33554432,V):(ae=bt({mode:"visible",children:V},W.mode,ae,null),ae.return=W,W.child=ae)):V.memoizedState!==null?He?(Ae=BN(V,W,Ae.children,Ae.fallback,ae),He=W.child,we=V.child.memoizedState,He.memoizedState=we===null?{baseLanes:ae}:{baseLanes:we.baseLanes|ae},He.childLanes=V.childLanes&~ae,W.memoizedState=v_,Ae):(ae=bb(V,W,Ae.children,ae),W.memoizedState=null,ae):He?(Ae=BN(V,W,Ae.children,Ae.fallback,ae),He=W.child,we=V.child.memoizedState,He.memoizedState=we===null?{baseLanes:ae}:{baseLanes:we.baseLanes|ae},He.childLanes=V.childLanes&~ae,W.memoizedState=v_,Ae):(ae=bb(V,W,Ae.children,ae),W.memoizedState=null,ae)}function gf(V,W,ae,Ae){var we=V.mode,He=V.child;return W={mode:"hidden",children:W},!(we&2)&&He!==null?(He.childLanes=0,He.pendingProps=W):He=bt(W,we,0,null),ae=jt(ae,we,Ae,null),He.return=V,ae.return=V,He.sibling=ae,V.child=He,ae}function bb(V,W,ae,Ae){var we=V.child;return V=we.sibling,ae=We(we,{mode:"visible",children:ae}),!(W.mode&2)&&(ae.lanes=Ae),ae.return=W,ae.sibling=null,V!==null&&(V.nextEffect=null,V.flags=8,W.firstEffect=W.lastEffect=V),W.child=ae}function BN(V,W,ae,Ae,we){var He=W.mode,at=V.child;V=at.sibling;var Et={mode:"hidden",children:ae};return!(He&2)&&W.child!==at?(ae=W.child,ae.childLanes=0,ae.pendingProps=Et,at=ae.lastEffect,at!==null?(W.firstEffect=ae.firstEffect,W.lastEffect=at,at.nextEffect=null):W.firstEffect=W.lastEffect=null):ae=We(at,Et),V!==null?Ae=We(V,Ae):(Ae=jt(Ae,He,we,null),Ae.flags|=2),Ae.return=W,ae.return=W,ae.sibling=Ae,W.child=ae,Ae}function Kv(V,W){V.lanes|=W;var ae=V.alternate;ae!==null&&(ae.lanes|=W),Hv(V.return,W)}function zC(V,W,ae,Ae,we,He){var at=V.memoizedState;at===null?V.memoizedState={isBackwards:W,rendering:null,renderingStartTime:0,last:Ae,tail:ae,tailMode:we,lastEffect:He}:(at.isBackwards=W,at.rendering=null,at.renderingStartTime=0,at.last=Ae,at.tail=ae,at.tailMode=we,at.lastEffect=He)}function DN(V,W,ae){var Ae=W.pendingProps,we=Ae.revealOrder,He=Ae.tail;if(xu(V,W,Ae.children,ae),Ae=Ks.current,Ae&2)Ae=Ae&1|2,W.flags|=64;else{if(V!==null&&V.flags&64)e:for(V=W.child;V!==null;){if(V.tag===13)V.memoizedState!==null&&Kv(V,ae);else if(V.tag===19)Kv(V,ae);else if(V.child!==null){V.child.return=V,V=V.child;continue}if(V===W)break e;for(;V.sibling===null;){if(V.return===null||V.return===W)break e;V=V.return}V.sibling.return=V.return,V=V.sibling}Ae&=1}if(Bt(Ks,Ae),!(W.mode&2))W.memoizedState=null;else switch(we){case"forwards":for(ae=W.child,we=null;ae!==null;)V=ae.alternate,V!==null&&gb(V)===null&&(we=ae),ae=ae.sibling;ae=we,ae===null?(we=W.child,W.child=null):(we=ae.sibling,ae.sibling=null),zC(W,!1,we,ae,He,W.lastEffect);break;case"backwards":for(ae=null,we=W.child,W.child=null;we!==null;){if(V=we.alternate,V!==null&&gb(V)===null){W.child=we;break}V=we.sibling,we.sibling=ae,ae=we,we=V}zC(W,!0,ae,null,He,W.lastEffect);break;case"together":zC(W,!1,null,null,void 0,W.lastEffect);break;default:W.memoizedState=null}return W.child}function Ga(V,W,ae){if(V!==null&&(W.dependencies=V.dependencies),QE|=W.lanes,ae&W.childLanes){if(V!==null&&W.child!==V.child)throw Error(l(153));if(W.child!==null){for(V=W.child,ae=We(V,V.pendingProps),W.child=ae,ae.return=W;V.sibling!==null;)V=V.sibling,ae=ae.sibling=We(V,V.pendingProps),ae.return=W;ae.sibling=null}return W.child}return null}function fo(V){V.flags|=4}var zE,P1,rd,GE;if(de)zE=function(V,W){for(var ae=W.child;ae!==null;){if(ae.tag===5||ae.tag===6)K(V,ae.stateNode);else if(ae.tag!==4&&ae.child!==null){ae.child.return=ae,ae=ae.child;continue}if(ae===W)break;for(;ae.sibling===null;){if(ae.return===null||ae.return===W)return;ae=ae.return}ae.sibling.return=ae.return,ae=ae.sibling}},P1=function(){},rd=function(V,W,ae,Ae,we){if(V=V.memoizedProps,V!==Ae){var He=W.stateNode,at=ff(Th.current);ae=ee(He,ae,V,Ae,we,at),(W.updateQueue=ae)&&fo(W)}},GE=function(V,W,ae,Ae){ae!==Ae&&fo(W)};else if(ce){zE=function(V,W,ae,Ae){for(var we=W.child;we!==null;){if(we.tag===5){var He=we.stateNode;ae&&Ae&&(He=on(He,we.type,we.memoizedProps,we)),K(V,He)}else if(we.tag===6)He=we.stateNode,ae&&Ae&&(He=dr(He,we.memoizedProps,we)),K(V,He);else if(we.tag!==4){if(we.tag===13&&we.flags&4&&(He=we.memoizedState!==null)){var at=we.child;if(at!==null&&(at.child!==null&&(at.child.return=at,zE(V,at,!0,He)),He=at.sibling,He!==null)){He.return=we,we=He;continue}}if(we.child!==null){we.child.return=we,we=we.child;continue}}if(we===W)break;for(;we.sibling===null;){if(we.return===null||we.return===W)return;we=we.return}we.sibling.return=we.return,we=we.sibling}};var O1=function(V,W,ae,Ae){for(var we=W.child;we!==null;){if(we.tag===5){var He=we.stateNode;ae&&Ae&&(He=on(He,we.type,we.memoizedProps,we)),rn(V,He)}else if(we.tag===6)He=we.stateNode,ae&&Ae&&(He=dr(He,we.memoizedProps,we)),rn(V,He);else if(we.tag!==4){if(we.tag===13&&we.flags&4&&(He=we.memoizedState!==null)){var at=we.child;if(at!==null&&(at.child!==null&&(at.child.return=at,O1(V,at,!0,He)),He=at.sibling,He!==null)){He.return=we,we=He;continue}}if(we.child!==null){we.child.return=we,we=we.child;continue}}if(we===W)break;for(;we.sibling===null;){if(we.return===null||we.return===W)return;we=we.return}we.sibling.return=we.return,we=we.sibling}};P1=function(V){var W=V.stateNode;if(V.firstEffect!==null){var ae=W.containerInfo,Ae=Kt(ae);O1(Ae,V,!1,!1),W.pendingChildren=Ae,fo(V),On(ae,Ae)}},rd=function(V,W,ae,Ae,we){var He=V.stateNode,at=V.memoizedProps;if((V=W.firstEffect===null)&&at===Ae)W.stateNode=He;else{var Et=W.stateNode,Tt=ff(Th.current),wn=null;at!==Ae&&(wn=ee(Et,ae,at,Ae,we,Tt)),V&&wn===null?W.stateNode=He:(He=Cn(He,wn,ae,at,Ae,W,V,Et),Q(He,ae,Ae,we,Tt)&&fo(W),W.stateNode=He,V?fo(W):zE(He,W,!1,!1))}},GE=function(V,W,ae,Ae){ae!==Ae?(V=ff(Tm.current),ae=ff(Th.current),W.stateNode=te(Ae,V,ae,W),fo(W)):W.stateNode=V.stateNode}}else P1=function(){},rd=function(){},GE=function(){};function Yd(V,W){if(!_g)switch(V.tailMode){case"hidden":W=V.tail;for(var ae=null;W!==null;)W.alternate!==null&&(ae=W),W=W.sibling;ae===null?V.tail=null:ae.sibling=null;break;case"collapsed":ae=V.tail;for(var Ae=null;ae!==null;)ae.alternate!==null&&(Ae=ae),ae=ae.sibling;Ae===null?W||V.tail===null?V.tail=null:V.tail.sibling=null:Ae.sibling=null}}function xb(V,W,ae){var Ae=W.pendingProps;switch(W.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Nr(W.type)&&na(),null;case 3:return dA(),wt(vn),wt(tn),vb(),Ae=W.stateNode,Ae.pendingContext&&(Ae.context=Ae.pendingContext,Ae.pendingContext=null),(V===null||V.child===null)&&(f_(W)?fo(W):Ae.hydrate||(W.flags|=256)),P1(W),null;case 5:C1(W);var we=ff(Tm.current);if(ae=W.type,V!==null&&W.stateNode!=null)rd(V,W,ae,Ae,we),V.ref!==W.ref&&(W.flags|=128);else{if(!Ae){if(W.stateNode===null)throw Error(l(166));return null}if(V=ff(Th.current),f_(W)){if(!Ee)throw Error(l(175));V=vt(W.stateNode,W.type,W.memoizedProps,we,V,W),W.updateQueue=V,V!==null&&fo(W)}else{var He=Z(ae,Ae,we,V,W);zE(He,W,!1,!1),W.stateNode=He,Q(He,ae,Ae,we,V)&&fo(W)}W.ref!==null&&(W.flags|=128)}return null;case 6:if(V&&W.stateNode!=null)GE(V,W,V.memoizedProps,Ae);else{if(typeof Ae!="string"&&W.stateNode===null)throw Error(l(166));if(V=ff(Tm.current),we=ff(Th.current),f_(W)){if(!Ee)throw Error(l(176));Gt(W.stateNode,W.memoizedProps,W)&&fo(W)}else W.stateNode=te(Ae,V,we,W)}return null;case 13:return wt(Ks),Ae=W.memoizedState,W.flags&64?(W.lanes=ae,W):(Ae=Ae!==null,we=!1,V===null?W.memoizedProps.fallback!==void 0&&f_(W):we=V.memoizedState!==null,Ae&&!we&&W.mode&2&&(V===null&&W.memoizedProps.unstable_avoidThisFallback!==!0||Ks.current&1?Sd===0&&(Sd=3):((Sd===0||Sd===3)&&(Sd=4),ts===null||!(QE&134217727)&&!(Sb&134217727)||ns(ts,Zc))),ce&&Ae&&(W.flags|=4),de&&(Ae||we)&&(W.flags|=4),null);case 4:return dA(),P1(W),V===null&&me(W.stateNode.containerInfo),null;case 10:return cA(W),null;case 17:return Nr(W.type)&&na(),null;case 19:if(wt(Ks),Ae=W.memoizedState,Ae===null)return null;if(we=(W.flags&64)!==0,He=Ae.rendering,He===null)if(we)Yd(Ae,!1);else{if(Sd!==0||V!==null&&V.flags&64)for(V=W.child;V!==null;){if(He=gb(V),He!==null){for(W.flags|=64,Yd(Ae,!1),V=He.updateQueue,V!==null&&(W.updateQueue=V,W.flags|=4),Ae.lastEffect===null&&(W.firstEffect=null),W.lastEffect=Ae.lastEffect,V=ae,Ae=W.child;Ae!==null;)we=Ae,ae=V,we.flags&=2,we.nextEffect=null,we.firstEffect=null,we.lastEffect=null,He=we.alternate,He===null?(we.childLanes=0,we.lanes=ae,we.child=null,we.memoizedProps=null,we.memoizedState=null,we.updateQueue=null,we.dependencies=null,we.stateNode=null):(we.childLanes=He.childLanes,we.lanes=He.lanes,we.child=He.child,we.memoizedProps=He.memoizedProps,we.memoizedState=He.memoizedState,we.updateQueue=He.updateQueue,we.type=He.type,ae=He.dependencies,we.dependencies=ae===null?null:{lanes:ae.lanes,firstContext:ae.firstContext}),Ae=Ae.sibling;return Bt(Ks,Ks.current&1|2),W.child}V=V.sibling}Ae.tail!==null&&li()>Rg&&(W.flags|=64,we=!0,Yd(Ae,!1),W.lanes=33554432)}else{if(!we)if(V=gb(He),V!==null){if(W.flags|=64,we=!0,V=V.updateQueue,V!==null&&(W.updateQueue=V,W.flags|=4),Yd(Ae,!0),Ae.tail===null&&Ae.tailMode==="hidden"&&!He.alternate&&!_g)return W=W.lastEffect=Ae.lastEffect,W!==null&&(W.nextEffect=null),null}else 2*li()-Ae.renderingStartTime>Rg&&ae!==1073741824&&(W.flags|=64,we=!0,Yd(Ae,!1),W.lanes=33554432);Ae.isBackwards?(He.sibling=W.child,W.child=He):(V=Ae.last,V!==null?V.sibling=He:W.child=He,Ae.last=He)}return Ae.tail!==null?(V=Ae.tail,Ae.rendering=V,Ae.tail=V.sibling,Ae.lastEffect=W.lastEffect,Ae.renderingStartTime=li(),V.sibling=null,W=Ks.current,Bt(Ks,we?W&1|2:W&1),V):null;case 23:case 24:return __(),V!==null&&V.memoizedState!==null!=(W.memoizedState!==null)&&Ae.mode!=="unstable-defer-without-hiding"&&(W.flags|=4),null}throw Error(l(156,W.tag))}function Dp(V){switch(V.tag){case 1:Nr(V.type)&&na();var W=V.flags;return W&4096?(V.flags=W&-4097|64,V):null;case 3:if(dA(),wt(vn),wt(tn),vb(),W=V.flags,W&64)throw Error(l(285));return V.flags=W&-4097|64,V;case 5:return C1(V),null;case 13:return wt(Ks),W=V.flags,W&4096?(V.flags=W&-4097|64,V):null;case 19:return wt(Ks),null;case 4:return dA(),null;case 10:return cA(V),null;case 23:case 24:return __(),null;default:return null}}function km(V,W){try{var ae="",Ae=W;do ae+=Sl(Ae),Ae=Ae.return;while(Ae);var we=ae}catch(He){we=`
Error generating stack: `+He.message+`
`+He.stack}return{value:V,source:W,stack:we}}function $p(V,W){try{console.error(W.value)}catch(ae){setTimeout(function(){throw ae})}}var Wv=typeof WeakMap=="function"?WeakMap:Map;function Fp(V,W,ae){ae=$c(-1,ae),ae.tag=3,ae.payload={element:null};var Ae=W.value;return ae.callback=function(){wu||(wu=!0,D1=Ae),$p(V,W)},ae}function GC(V,W,ae){ae=$c(-1,ae),ae.tag=3;var Ae=V.type.getDerivedStateFromError;if(typeof Ae=="function"){var we=W.value;ae.payload=function(){return $p(V,W),Ae(we)}}var He=V.stateNode;return He!==null&&typeof He.componentDidCatch=="function"&&(ae.callback=function(){typeof Ae!="function"&&(jc===null?jc=new Set([this]):jc.add(this),$p(V,W));var at=W.stack;this.componentDidCatch(W.value,{componentStack:at!==null?at:""})}),ae}var $N=typeof WeakSet=="function"?WeakSet:Set;function FN(V){var W=V.ref;if(W!==null)if(typeof W=="function")try{W(null)}catch(ae){Pg(V,ae)}else W.current=null}function BO(V,W){switch(W.tag){case 0:case 11:case 15:case 22:return;case 1:if(W.flags&256&&V!==null){var ae=V.memoizedProps,Ae=V.memoizedState;V=W.stateNode,W=V.getSnapshotBeforeUpdate(W.elementType===W.type?ae:Yl(W.type,ae),Ae),V.__reactInternalSnapshotBeforeUpdate=W}return;case 3:de&&W.flags&256&&xt(W.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(l(163))}function jN(V,W){if(W=W.updateQueue,W=W!==null?W.lastEffect:null,W!==null){var ae=W=W.next;do{if((ae.tag&V)===V){var Ae=ae.destroy;ae.destroy=void 0,Ae!==void 0&&Ae()}ae=ae.next}while(ae!==W)}}function Qv(V,W,ae){switch(ae.tag){case 0:case 11:case 15:case 22:if(W=ae.updateQueue,W=W!==null?W.lastEffect:null,W!==null){V=W=W.next;do{if((V.tag&3)===3){var Ae=V.create;V.destroy=Ae()}V=V.next}while(V!==W)}if(W=ae.updateQueue,W=W!==null?W.lastEffect:null,W!==null){V=W=W.next;do{var we=V;Ae=we.next,we=we.tag,we&4&&we&1&&(Tb(ae,V),k_(ae,V)),V=Ae}while(V!==W)}return;case 1:V=ae.stateNode,ae.flags&4&&(W===null?V.componentDidMount():(Ae=ae.elementType===ae.type?W.memoizedProps:Yl(ae.type,W.memoizedProps),V.componentDidUpdate(Ae,W.memoizedState,V.__reactInternalSnapshotBeforeUpdate))),W=ae.updateQueue,W!==null&&Wd(ae,W,V);return;case 3:if(W=ae.updateQueue,W!==null){if(V=null,ae.child!==null)switch(ae.child.tag){case 5:V=j(ae.child.stateNode);break;case 1:V=ae.child.stateNode}Wd(ae,W,V)}return;case 5:V=ae.stateNode,W===null&&ae.flags&4&&Xe(V,ae.type,ae.memoizedProps,ae);return;case 6:return;case 4:return;case 12:return;case 13:Ee&&ae.memoizedState===null&&(ae=ae.alternate,ae!==null&&(ae=ae.memoizedState,ae!==null&&(ae=ae.dehydrated,ae!==null&&Pt(ae))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function kh(V,W){if(de)for(var ae=V;;){if(ae.tag===5){var Ae=ae.stateNode;W?sn(Ae):ur(ae.stateNode,ae.memoizedProps)}else if(ae.tag===6)Ae=ae.stateNode,W?un(Ae):dt(Ae,ae.memoizedProps);else if((ae.tag!==23&&ae.tag!==24||ae.memoizedState===null||ae===V)&&ae.child!==null){ae.child.return=ae,ae=ae.child;continue}if(ae===V)break;for(;ae.sibling===null;){if(ae.return===null||ae.return===V)return;ae=ae.return}ae.sibling.return=ae.return,ae=ae.sibling}}function A_(V,W){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Je,W)}catch{}switch(W.tag){case 0:case 11:case 14:case 15:case 22:if(V=W.updateQueue,V!==null&&(V=V.lastEffect,V!==null)){var ae=V=V.next;do{var Ae=ae,we=Ae.destroy;if(Ae=Ae.tag,we!==void 0)if(Ae&4)Tb(W,ae);else{Ae=W;try{we()}catch(He){Pg(Ae,He)}}ae=ae.next}while(ae!==V)}break;case 1:if(FN(W),V=W.stateNode,typeof V.componentWillUnmount=="function")try{V.props=W.memoizedProps,V.state=W.memoizedState,V.componentWillUnmount()}catch(He){Pg(W,He)}break;case 5:FN(W);break;case 4:de?HN(V,W):ce&&ce&&(W=W.stateNode.containerInfo,V=Kt(W),an(W,V))}}function ve(V,W){for(var ae=W;;)if(A_(V,ae),ae.child===null||de&&ae.tag===4){if(ae===W)break;for(;ae.sibling===null;){if(ae.return===null||ae.return===W)return;ae=ae.return}ae.sibling.return=ae.return,ae=ae.sibling}else ae.child.return=ae,ae=ae.child}function jp(V){V.alternate=null,V.child=null,V.dependencies=null,V.firstEffect=null,V.lastEffect=null,V.memoizedProps=null,V.memoizedState=null,V.pendingProps=null,V.return=null,V.updateQueue=null}function qv(V){return V.tag===5||V.tag===3||V.tag===4}function nl(V){if(de){e:{for(var W=V.return;W!==null;){if(qv(W))break e;W=W.return}throw Error(l(160))}var ae=W;switch(W=ae.stateNode,ae.tag){case 5:var Ae=!1;break;case 3:W=W.containerInfo,Ae=!0;break;case 4:W=W.containerInfo,Ae=!0;break;default:throw Error(l(161))}ae.flags&16&&(pn(W),ae.flags&=-17);e:t:for(ae=V;;){for(;ae.sibling===null;){if(ae.return===null||qv(ae.return)){ae=null;break e}ae=ae.return}for(ae.sibling.return=ae.return,ae=ae.sibling;ae.tag!==5&&ae.tag!==6&&ae.tag!==18;){if(ae.flags&2||ae.child===null||ae.tag===4)continue t;ae.child.return=ae,ae=ae.child}if(!(ae.flags&2)){ae=ae.stateNode;break e}}Ae?Wr(V,ae,W):y_(V,ae,W)}}function Wr(V,W,ae){var Ae=V.tag,we=Ae===5||Ae===6;if(we)V=we?V.stateNode:V.stateNode.instance,W?mt(ae,V,W):Fe(ae,V);else if(Ae!==4&&(V=V.child,V!==null))for(Wr(V,W,ae),V=V.sibling;V!==null;)Wr(V,W,ae),V=V.sibling}function y_(V,W,ae){var Ae=V.tag,we=Ae===5||Ae===6;if(we)V=we?V.stateNode:V.stateNode.instance,W?Ye(ae,V,W):De(ae,V);else if(Ae!==4&&(V=V.child,V!==null))for(y_(V,W,ae),V=V.sibling;V!==null;)y_(V,W,ae),V=V.sibling}function HN(V,W){for(var ae=W,Ae=!1,we,He;;){if(!Ae){Ae=ae.return;e:for(;;){if(Ae===null)throw Error(l(160));switch(we=Ae.stateNode,Ae.tag){case 5:He=!1;break e;case 3:we=we.containerInfo,He=!0;break e;case 4:we=we.containerInfo,He=!0;break e}Ae=Ae.return}Ae=!0}if(ae.tag===5||ae.tag===6)ve(V,ae),He?lt(we,ae.stateNode):ut(we,ae.stateNode);else if(ae.tag===4){if(ae.child!==null){we=ae.stateNode.containerInfo,He=!0,ae.child.return=ae,ae=ae.child;continue}}else if(A_(V,ae),ae.child!==null){ae.child.return=ae,ae=ae.child;continue}if(ae===W)break;for(;ae.sibling===null;){if(ae.return===null||ae.return===W)return;ae=ae.return,ae.tag===4&&(Ae=!1)}ae.sibling.return=ae.return,ae=ae.sibling}}function VC(V,W){if(de){switch(W.tag){case 0:case 11:case 14:case 15:case 22:jN(3,W);return;case 1:return;case 5:var ae=W.stateNode;if(ae!=null){var Ae=W.memoizedProps;V=V!==null?V.memoizedProps:Ae;var we=W.type,He=W.updateQueue;W.updateQueue=null,He!==null&&Oe(ae,He,we,V,Ae,W)}return;case 6:if(W.stateNode===null)throw Error(l(162));ae=W.memoizedProps,Se(W.stateNode,V!==null?V.memoizedProps:ae,ae);return;case 3:Ee&&(W=W.stateNode,W.hydrate&&(W.hydrate=!1,rt(W.containerInfo)));return;case 12:return;case 13:vf(W),b_(W);return;case 19:b_(W);return;case 17:return;case 23:case 24:kh(W,W.memoizedState!==null);return}throw Error(l(163))}switch(W.tag){case 0:case 11:case 14:case 15:case 22:jN(3,W);return;case 12:return;case 13:vf(W),b_(W);return;case 19:b_(W);return;case 3:Ee&&(ae=W.stateNode,ae.hydrate&&(ae.hydrate=!1,rt(ae.containerInfo)));break;case 23:case 24:return}e:if(ce){switch(W.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:W=W.stateNode,an(W.containerInfo,W.pendingChildren);break e}throw Error(l(163))}}function vf(V){V.memoizedState!==null&&(Gu=li(),de&&kh(V.child,!0))}function b_(V){var W=V.updateQueue;if(W!==null){V.updateQueue=null;var ae=V.stateNode;ae===null&&(ae=V.stateNode=new $N),W.forEach(function(Ae){var we=R_.bind(null,V,Ae);ae.has(Ae)||(ae.add(Ae),Ae.then(we,we))})}}function DO(V,W){return V!==null&&(V=V.memoizedState,V===null||V.dehydrated!==null)?(W=W.memoizedState,W!==null&&W.dehydrated===null):!1}var x_=0,E_=1,S_=2,Eu=3,w_=4;if(typeof Symbol=="function"&&Symbol.for){var VE=Symbol.for;x_=VE("selector.component"),E_=VE("selector.has_pseudo_class"),S_=VE("selector.role"),Eu=VE("selector.test_id"),w_=VE("selector.text")}function KC(V){var W=Me(V);if(W!=null){if(typeof W.memoizedProps["data-testname"]!="string")throw Error(l(364));return W}if(V=pe(V),V===null)throw Error(l(362));return V.stateNode.current}function WC(V,W){switch(W.$$typeof){case x_:if(V.type===W.value)return!0;break;case E_:e:{W=W.value,V=[V,0];for(var ae=0;ae<V.length;){var Ae=V[ae++],we=V[ae++],He=W[we];if(Ae.tag!==5||!ue(Ae)){for(;He!=null&&WC(Ae,He);)we++,He=W[we];if(we===W.length){W=!0;break e}else for(Ae=Ae.child;Ae!==null;)V.push(Ae,we),Ae=Ae.sibling}}W=!1}return W;case S_:if(V.tag===5&&se(V.stateNode,W.value))return!0;break;case w_:if((V.tag===5||V.tag===6)&&(V=_e(V),V!==null&&0<=V.indexOf(W.value)))return!0;break;case Eu:if(V.tag===5&&(V=V.memoizedProps["data-testname"],typeof V=="string"&&V.toLowerCase()===W.value.toLowerCase()))return!0;break;default:throw Error(l(365,W))}return!1}function QC(V){switch(V.$$typeof){case x_:return"<"+(L(V.value)||"Unknown")+">";case E_:return":has("+(QC(V)||"")+")";case S_:return'[role="'+V.value+'"]';case w_:return'"'+V.value+'"';case Eu:return'[data-testname="'+V.value+'"]';default:throw Error(l(365,V))}}function Su(V,W){var ae=[];V=[V,0];for(var Ae=0;Ae<V.length;){var we=V[Ae++],He=V[Ae++],at=W[He];if(we.tag!==5||!ue(we)){for(;at!=null&&WC(we,at);)He++,at=W[He];if(He===W.length)ae.push(we);else for(we=we.child;we!==null;)V.push(we,He),we=we.sibling}}return ae}function qC(V,W){if(!le)throw Error(l(363));V=KC(V),V=Su(V,W),W=[],V=Array.from(V);for(var ae=0;ae<V.length;){var Ae=V[ae++];if(Ae.tag===5)ue(Ae)||W.push(Ae.stateNode);else for(Ae=Ae.child;Ae!==null;)V.push(Ae),Ae=Ae.sibling}return W}var Eb=null;function YC(V){if(Eb===null)try{var W=("require"+Math.random()).slice(0,7);Eb=(t&&t[W]).call(t,"timers").setImmediate}catch{Eb=function(Ae){var we=new MessageChannel;we.port1.onmessage=Ae,we.port2.postMessage(void 0)}}return Eb(V)}var JC=Math.ceil,KE=c.ReactCurrentDispatcher,Jd=c.ReactCurrentOwner,ZC=c.IsSomeRendererActing,Aa=0,ts=null,rl=null,Zc=0,L1=0,WE=st(0),Sd=0,kg=null,AA=0,QE=0,Sb=0,B1=0,Hf=null,Gu=0,Rg=1/0;function wd(){Rg=li()+500}var Ai=null,wu=!1,D1=null,jc=null,Ws=!1,qE=null,$1=90,YE=[],Rm=[],Xl=null,F1=0,XC=null,Mg=-1,Yv=0,wb=0,Ro=null,Jv=!1;function Zd(){return Aa&48?li():Mg!==-1?Mg:Mg=li()}function Ll(V){if(V=V.mode,!(V&2))return 1;if(!(V&4))return ea()===99?1:2;if(Yv===0&&(Yv=AA),Ja.transition!==0){wb!==0&&(wb=Hf!==null?Hf.pendingLanes:0),V=Yv;var W=4186112&~wb;return W&=-W,W===0&&(V=4186112&~V,W=V&-V,W===0&&(W=8192)),W}return V=ea(),Aa&4&&V===98?V=ua(12,Yv):(V=Zn(V),V=ua(V,Yv)),V}function Uf(V,W,ae){if(50<F1)throw F1=0,XC=null,Error(l(185));if(V=Ng(V,W),V===null)return null;hs(V,W,ae),V===ts&&(Sb|=W,Sd===4&&ns(V,Zc));var Ae=ea();W===1?Aa&8&&!(Aa&48)?j1(V):(ec(V,ae),Aa===0&&(wd(),Br())):(!(Aa&4)||Ae!==98&&Ae!==99||(Xl===null?Xl=new Set([V]):Xl.add(V)),ec(V,ae)),Hf=V}function Ng(V,W){V.lanes|=W;var ae=V.alternate;for(ae!==null&&(ae.lanes|=W),ae=V,V=V.return;V!==null;)V.childLanes|=W,ae=V.alternate,ae!==null&&(ae.childLanes|=W),ae=V,V=V.return;return ae.tag===3?ae.stateNode:null}function ec(V,W){for(var ae=V.callbackNode,Ae=V.suspendedLanes,we=V.pingedLanes,He=V.expirationTimes,at=V.pendingLanes;0<at;){var Et=31-$a(at),Tt=1<<Et,wn=He[Et];if(wn===-1){if(!(Tt&Ae)||Tt&we){wn=W,Hn(Tt);var hr=ln;He[Et]=10<=hr?wn+250:6<=hr?wn+5e3:-1}}else wn<=W&&(V.expiredLanes|=Tt);at&=~Tt}if(Ae=Xn(V,V===ts?Zc:0),W=ln,Ae===0)ae!==null&&(ae!==Eg&&sA(ae),V.callbackNode=null,V.callbackPriority=0);else{if(ae!==null){if(V.callbackPriority===W)return;ae!==Eg&&sA(ae)}W===15?(ae=j1.bind(null,V),df===null?(df=[ae],Sg=_m(lA,dl)):df.push(ae),ae=Eg):W===14?ae=Gn(99,j1.bind(null,V)):(ae=Jn(W),ae=Gn(ae,_b.bind(null,V))),V.callbackPriority=W,V.callbackNode=ae}}function _b(V){if(Mg=-1,wb=Yv=0,Aa&48)throw Error(l(327));var W=V.callbackNode;if(Xv()&&V.callbackNode!==W)return null;var ae=Xn(V,V===ts?Zc:0);if(ae===0)return null;var Ae=ae,we=Aa;Aa|=16;var He=tk();(ts!==V||Zc!==Ae)&&(wd(),Rh(V,Ae));do try{FO();break}catch(Et){T_(V,Et)}while(1);if(Kd(),KE.current=He,Aa=we,rl!==null?Ae=0:(ts=null,Zc=0,Ae=Sd),AA&Sb)Rh(V,0);else if(Ae!==0){if(Ae===2&&(Aa|=64,V.hydrate&&(V.hydrate=!1,xt(V.containerInfo)),ae=zr(V),ae!==0&&(Ae=zf(V,ae))),Ae===1)throw W=kg,Rh(V,0),ns(V,ae),ec(V,li()),W;switch(V.finishedWork=V.current.alternate,V.finishedLanes=ae,Ae){case 0:case 1:throw Error(l(345));case 2:Ig(V);break;case 3:if(ns(V,ae),(ae&62914560)===ae&&(Ae=Gu+500-li(),10<Ae)){if(Xn(V,0)!==0)break;if(we=V.suspendedLanes,(we&ae)!==ae){Zd(),V.pingedLanes|=V.suspendedLanes&we;break}V.timeoutHandle=J(Ig.bind(null,V),Ae);break}Ig(V);break;case 4:if(ns(V,ae),(ae&4186112)===ae)break;for(Ae=V.eventTimes,we=-1;0<ae;){var at=31-$a(ae);He=1<<at,at=Ae[at],at>we&&(we=at),ae&=~He}if(ae=we,ae=li()-ae,ae=(120>ae?120:480>ae?480:1080>ae?1080:1920>ae?1920:3e3>ae?3e3:4320>ae?4320:1960*JC(ae/1960))-ae,10<ae){V.timeoutHandle=J(Ig.bind(null,V),ae);break}Ig(V);break;case 5:Ig(V);break;default:throw Error(l(329))}}return ec(V,li()),V.callbackNode===W?_b.bind(null,V):null}function ns(V,W){for(W&=~B1,W&=~Sb,V.suspendedLanes|=W,V.pingedLanes&=~W,V=V.expirationTimes;0<W;){var ae=31-$a(W),Ae=1<<ae;V[ae]=-1,W&=~Ae}}function j1(V){if(Aa&48)throw Error(l(327));if(Xv(),V===ts&&V.expiredLanes&Zc){var W=Zc,ae=zf(V,W);AA&Sb&&(W=Xn(V,W),ae=zf(V,W))}else W=Xn(V,0),ae=zf(V,W);if(V.tag!==0&&ae===2&&(Aa|=64,V.hydrate&&(V.hydrate=!1,xt(V.containerInfo)),W=zr(V),W!==0&&(ae=zf(V,W))),ae===1)throw ae=kg,Rh(V,0),ns(V,W),ec(V,li()),ae;return V.finishedWork=V.current.alternate,V.finishedLanes=W,Ig(V),ec(V,li()),null}function $O(){if(Xl!==null){var V=Xl;Xl=null,V.forEach(function(W){W.expiredLanes|=24&W.pendingLanes,ec(W,li())})}Br()}function UN(V,W){var ae=Aa;Aa|=1;try{return V(W)}finally{Aa=ae,Aa===0&&(wd(),Br())}}function ek(V,W){var ae=Aa;if(ae&48)return V(W);Aa|=1;try{if(V)return zt(99,V.bind(null,W))}finally{Aa=ae,Br()}}function Zv(V,W){Bt(WE,L1),L1|=W,AA|=W}function __(){L1=WE.current,wt(WE)}function Rh(V,W){V.finishedWork=null,V.finishedLanes=0;var ae=V.timeoutHandle;if(ae!==ie&&(V.timeoutHandle=ie,ne(ae)),rl!==null)for(ae=rl.return;ae!==null;){var Ae=ae;switch(Ae.tag){case 1:Ae=Ae.type.childContextTypes,Ae!=null&&na();break;case 3:dA(),wt(vn),wt(tn),vb();break;case 5:C1(Ae);break;case 4:dA();break;case 13:wt(Ks);break;case 19:wt(Ks);break;case 10:cA(Ae);break;case 23:case 24:__()}ae=ae.return}ts=V,rl=We(V.current,null),Zc=L1=AA=W,Sd=0,kg=null,B1=Sb=QE=0}function T_(V,W){do{var ae=rl;try{if(Kd(),bu.current=p_,dc){for(var Ae=uc.memoizedState;Ae!==null;){var we=Ae.queue;we!==null&&(we.pending=null),Ae=Ae.next}dc=!1}if(Ab=0,hl=Qd=uc=null,R1=!1,Jd.current=null,ae===null||ae.return===null){Sd=1,kg=W,rl=null;break}e:{var He=V,at=ae.return,Et=ae,Tt=W;if(W=Zc,Et.flags|=2048,Et.firstEffect=Et.lastEffect=null,Tt!==null&&typeof Tt=="object"&&typeof Tt.then=="function"){var wn=Tt;if(!(Et.mode&2)){var hr=Et.alternate;hr?(Et.updateQueue=hr.updateQueue,Et.memoizedState=hr.memoizedState,Et.lanes=hr.lanes):(Et.updateQueue=null,Et.memoizedState=null)}var rr=(Ks.current&1)!==0,xr=at;do{var ui;if(ui=xr.tag===13){var Ji=xr.memoizedState;if(Ji!==null)ui=Ji.dehydrated!==null;else{var Za=xr.memoizedProps;ui=Za.fallback===void 0?!1:Za.unstable_avoidThisFallback!==!0?!0:!rr}}if(ui){var Vt=xr.updateQueue;if(Vt===null){var Lt=new Set;Lt.add(wn),xr.updateQueue=Lt}else Vt.add(wn);if(!(xr.mode&2)){if(xr.flags|=64,Et.flags|=16384,Et.flags&=-2981,Et.tag===1)if(Et.alternate===null)Et.tag=17;else{var bn=$c(-1,1);bn.tag=2,hf(Et,bn)}Et.lanes|=1;break e}Tt=void 0,Et=W;var Fr=He.pingCache;if(Fr===null?(Fr=He.pingCache=new Wv,Tt=new Set,Fr.set(wn,Tt)):(Tt=Fr.get(wn),Tt===void 0&&(Tt=new Set,Fr.set(wn,Tt))),!Tt.has(Et)){Tt.add(Et);var wi=nk.bind(null,He,wn,Et);wn.then(wi,wi)}xr.flags|=4096,xr.lanes=W;break e}xr=xr.return}while(xr!==null);Tt=Error((L(Et.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Sd!==5&&(Sd=2),Tt=km(Tt,Et),xr=at;do{switch(xr.tag){case 3:He=Tt,xr.flags|=4096,W&=-W,xr.lanes|=W;var ys=Fp(xr,He,W);S1(xr,ys);break e;case 1:He=Tt;var Sa=xr.type,po=xr.stateNode;if(!(xr.flags&64)&&(typeof Sa.getDerivedStateFromError=="function"||po!==null&&typeof po.componentDidCatch=="function"&&(jc===null||!jc.has(po)))){xr.flags|=4096,W&=-W,xr.lanes|=W;var pl=GC(xr,He,W);S1(xr,pl);break e}}xr=xr.return}while(xr!==null)}H1(ae)}catch(Ei){W=Ei,rl===ae&&ae!==null&&(rl=ae=ae.return);continue}break}while(1)}function tk(){var V=KE.current;return KE.current=p_,V===null?p_:V}function zf(V,W){var ae=Aa;Aa|=16;var Ae=tk();ts===V&&Zc===W||Rh(V,W);do try{fl();break}catch(we){T_(V,we)}while(1);if(Kd(),Aa=ae,KE.current=Ae,rl!==null)throw Error(l(261));return ts=null,Zc=0,Sd}function fl(){for(;rl!==null;)zN(rl)}function FO(){for(;rl!==null&&!x1();)zN(rl)}function zN(V){var W=e0(V.alternate,V,L1);V.memoizedProps=V.pendingProps,W===null?H1(V):rl=W,Jd.current=null}function H1(V){var W=V;do{var ae=W.alternate;if(V=W.return,W.flags&2048){if(ae=Dp(W),ae!==null){ae.flags&=2047,rl=ae;return}V!==null&&(V.firstEffect=V.lastEffect=null,V.flags|=2048)}else{if(ae=xb(ae,W,L1),ae!==null){rl=ae;return}if(ae=W,ae.tag!==24&&ae.tag!==23||ae.memoizedState===null||L1&1073741824||!(ae.mode&4)){for(var Ae=0,we=ae.child;we!==null;)Ae|=we.lanes|we.childLanes,we=we.sibling;ae.childLanes=Ae}V!==null&&!(V.flags&2048)&&(V.firstEffect===null&&(V.firstEffect=W.firstEffect),W.lastEffect!==null&&(V.lastEffect!==null&&(V.lastEffect.nextEffect=W.firstEffect),V.lastEffect=W.lastEffect),1<W.flags&&(V.lastEffect!==null?V.lastEffect.nextEffect=W:V.firstEffect=W,V.lastEffect=W))}if(W=W.sibling,W!==null){rl=W;return}rl=W=V}while(W!==null);Sd===0&&(Sd=5)}function Ig(V){var W=ea();return zt(99,C_.bind(null,V,W)),null}function C_(V,W){do Xv();while(qE!==null);if(Aa&48)throw Error(l(327));var ae=V.finishedWork;if(ae===null)return null;if(V.finishedWork=null,V.finishedLanes=0,ae===V.current)throw Error(l(177));V.callbackNode=null;var Ae=ae.lanes|ae.childLanes,we=Ae,He=V.pendingLanes&~we;V.pendingLanes=we,V.suspendedLanes=0,V.pingedLanes=0,V.expiredLanes&=we,V.mutableReadLanes&=we,V.entangledLanes&=we,we=V.entanglements;for(var at=V.eventTimes,Et=V.expirationTimes;0<He;){var Tt=31-$a(He),wn=1<<Tt;we[Tt]=0,at[Tt]=-1,Et[Tt]=-1,He&=~wn}if(Xl!==null&&!(Ae&24)&&Xl.has(V)&&Xl.delete(V),V===ts&&(rl=ts=null,Zc=0),1<ae.flags?ae.lastEffect!==null?(ae.lastEffect.nextEffect=ae,Ae=ae.firstEffect):Ae=ae:Ae=ae.firstEffect,Ae!==null){we=Aa,Aa|=32,Jd.current=null,Ro=$(V.containerInfo),Jv=!1,Ai=Ae;do try{GN()}catch(Lt){if(Ai===null)throw Error(l(330));Pg(Ai,Lt),Ai=Ai.nextEffect}while(Ai!==null);Ro=null,Ai=Ae;do try{for(at=V;Ai!==null;){var hr=Ai.flags;if(hr&16&&de&&pn(Ai.stateNode),hr&128){var rr=Ai.alternate;if(rr!==null){var xr=rr.ref;xr!==null&&(typeof xr=="function"?xr(null):xr.current=null)}}switch(hr&1038){case 2:nl(Ai),Ai.flags&=-3;break;case 6:nl(Ai),Ai.flags&=-3,VC(Ai.alternate,Ai);break;case 1024:Ai.flags&=-1025;break;case 1028:Ai.flags&=-1025,VC(Ai.alternate,Ai);break;case 4:VC(Ai.alternate,Ai);break;case 8:Et=at,He=Ai,de?HN(Et,He):ve(Et,He);var ui=He.alternate;jp(He),ui!==null&&jp(ui)}Ai=Ai.nextEffect}}catch(Lt){if(Ai===null)throw Error(l(330));Pg(Ai,Lt),Ai=Ai.nextEffect}while(Ai!==null);Jv&&ye(),z(V.containerInfo),V.current=ae,Ai=Ae;do try{for(hr=V;Ai!==null;){var Ji=Ai.flags;if(Ji&36&&Qv(hr,Ai.alternate,Ai),Ji&128){rr=void 0;var Za=Ai.ref;if(Za!==null){var Vt=Ai.stateNode;switch(Ai.tag){case 5:rr=j(Vt);break;default:rr=Vt}typeof Za=="function"?Za(rr):Za.current=rr}}Ai=Ai.nextEffect}}catch(Lt){if(Ai===null)throw Error(l(330));Pg(Ai,Lt),Ai=Ai.nextEffect}while(Ai!==null);Ai=null,pb(),Aa=we}else V.current=ae;if(Ws)Ws=!1,qE=V,$1=W;else for(Ai=Ae;Ai!==null;)W=Ai.nextEffect,Ai.nextEffect=null,Ai.flags&8&&(Ji=Ai,Ji.sibling=null,Ji.stateNode=null),Ai=W;if(Ae=V.pendingLanes,Ae===0&&(jc=null),Ae===1?V===XC?F1++:(F1=0,XC=V):F1=0,ae=ae.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Je,ae,void 0,(ae.current.flags&64)===64)}catch{}if(ec(V,li()),wu)throw wu=!1,V=D1,D1=null,V;return Aa&8||Br(),null}function GN(){for(;Ai!==null;){var V=Ai.alternate;Jv||Ro===null||(Ai.flags&8?B(Ai,Ro)&&(Jv=!0,je()):Ai.tag===13&&DO(V,Ai)&&B(Ai,Ro)&&(Jv=!0,je()));var W=Ai.flags;W&256&&BO(V,Ai),!(W&512)||Ws||(Ws=!0,Gn(97,function(){return Xv(),null})),Ai=Ai.nextEffect}}function Xv(){if($1!==90){var V=97<$1?97:$1;return $1=90,zt(V,VN)}return!1}function k_(V,W){YE.push(W,V),Ws||(Ws=!0,Gn(97,function(){return Xv(),null}))}function Tb(V,W){Rm.push(W,V),Ws||(Ws=!0,Gn(97,function(){return Xv(),null}))}function VN(){if(qE===null)return!1;var V=qE;if(qE=null,Aa&48)throw Error(l(331));var W=Aa;Aa|=32;var ae=Rm;Rm=[];for(var Ae=0;Ae<ae.length;Ae+=2){var we=ae[Ae],He=ae[Ae+1],at=we.destroy;if(we.destroy=void 0,typeof at=="function")try{at()}catch(Tt){if(He===null)throw Error(l(330));Pg(He,Tt)}}for(ae=YE,YE=[],Ae=0;Ae<ae.length;Ae+=2){we=ae[Ae],He=ae[Ae+1];try{var Et=we.create;we.destroy=Et()}catch(Tt){if(He===null)throw Error(l(330));Pg(He,Tt)}}for(Et=V.current.firstEffect;Et!==null;)V=Et.nextEffect,Et.nextEffect=null,Et.flags&8&&(Et.sibling=null,Et.stateNode=null),Et=V;return Aa=W,Br(),!0}function Cb(V,W,ae){W=km(ae,W),W=Fp(V,W,1),hf(V,W),W=Zd(),V=Ng(V,1),V!==null&&(hs(V,1,W),ec(V,W))}function Pg(V,W){if(V.tag===3)Cb(V,V,W);else for(var ae=V.return;ae!==null;){if(ae.tag===3){Cb(ae,V,W);break}else if(ae.tag===1){var Ae=ae.stateNode;if(typeof ae.type.getDerivedStateFromError=="function"||typeof Ae.componentDidCatch=="function"&&(jc===null||!jc.has(Ae))){V=km(W,V);var we=GC(ae,V,1);if(hf(ae,we),we=Zd(),ae=Ng(ae,1),ae!==null)hs(ae,1,we),ec(ae,we);else if(typeof Ae.componentDidCatch=="function"&&(jc===null||!jc.has(Ae)))try{Ae.componentDidCatch(W,V)}catch{}break}}ae=ae.return}}function nk(V,W,ae){var Ae=V.pingCache;Ae!==null&&Ae.delete(W),W=Zd(),V.pingedLanes|=V.suspendedLanes&ae,ts===V&&(Zc&ae)===ae&&(Sd===4||Sd===3&&(Zc&62914560)===Zc&&500>li()-Gu?Rh(V,0):B1|=ae),ec(V,W)}function R_(V,W){var ae=V.stateNode;ae!==null&&ae.delete(W),W=0,W===0&&(W=V.mode,W&2?W&4?(Yv===0&&(Yv=AA),W=Ta(62914560&~Yv),W===0&&(W=4194304)):W=ea()===99?1:2:W=1),ae=Zd(),V=Ng(V,W),V!==null&&(hs(V,W,ae),ec(V,ae))}var e0;e0=function(V,W,ae){var Ae=W.lanes;if(V!==null)if(V.memoizedProps!==W.pendingProps||vn.current)jf=!0;else if(ae&Ae)jf=!!(V.flags&16384);else{switch(jf=!1,W.tag){case 3:UC(W),BC();break;case 5:Ol(W);break;case 1:Nr(W.type)&&Ge(W);break;case 4:T1(W,W.stateNode.containerInfo);break;case 10:Pp(W,W.memoizedProps.value);break;case 13:if(W.memoizedState!==null)return ae&W.child.childLanes?vA(V,W,ae):(Bt(Ks,Ks.current&1),W=Ga(V,W,ae),W!==null?W.sibling:null);Bt(Ks,Ks.current&1);break;case 19:if(Ae=(ae&W.childLanes)!==0,V.flags&64){if(Ae)return DN(V,W,ae);W.flags|=64}var we=W.memoizedState;if(we!==null&&(we.rendering=null,we.tail=null,we.lastEffect=null),Bt(Ks,Ks.current),Ae)break;return null;case 23:case 24:return W.lanes=0,UE(V,W,ae)}return Ga(V,W,ae)}else jf=!1;switch(W.lanes=0,W.tag){case 2:if(Ae=W.type,V!==null&&(V.alternate=null,W.alternate=null,W.flags|=2),V=W.pendingProps,we=Mn(W,tn.current),es(W,ae),we=$C(null,W,Ae,V,we,ae),W.flags|=1,typeof we=="object"&&we!==null&&typeof we.render=="function"&&we.$$typeof===void 0){if(W.tag=1,W.memoizedState=null,W.updateQueue=null,Nr(Ae)){var He=!0;Ge(W)}else He=!1;W.memoizedState=we.state!==null&&we.state!==void 0?we.state:null,OC(W);var at=Ae.getDerivedStateFromProps;typeof at=="function"&&d_(W,Ae,at,V),we.updater=Uv,W.stateNode=we,we._reactInternals=W,DE(W,Ae,V,ae),W=HC(null,W,Ae,!0,He,ae)}else W.tag=0,xu(null,W,we,ae),W=W.child;return W;case 16:we=W.elementType;e:{switch(V!==null&&(V.alternate=null,W.alternate=null,W.flags|=2),V=W.pendingProps,He=we._init,we=He(we._payload),W.type=we,He=W.tag=Ve(we),V=Yl(we,V),He){case 0:W=qd(null,W,we,V,ae);break e;case 1:W=Vv(null,W,we,V,ae);break e;case 11:W=m_(null,W,we,V,ae);break e;case 14:W=g_(null,W,we,Yl(we.type,V),Ae,ae);break e}throw Error(l(306,we,""))}return W;case 0:return Ae=W.type,we=W.pendingProps,we=W.elementType===Ae?we:Yl(Ae,we),qd(V,W,Ae,we,ae);case 1:return Ae=W.type,we=W.pendingProps,we=W.elementType===Ae?we:Yl(Ae,we),Vv(V,W,Ae,we,ae);case 3:if(UC(W),Ae=W.updateQueue,V===null||Ae===null)throw Error(l(282));if(Ae=W.pendingProps,we=W.memoizedState,we=we!==null?we.element:null,u_(V,W),va(W,Ae,null,ae),Ae=W.memoizedState.element,Ae===we)BC(),W=Ga(V,W,ae);else{if(we=W.stateNode,(He=we.hydrate)&&(Ee?(k1=yn(W.stateNode.containerInfo),Cm=W,He=_g=!0):He=!1),He){if(Ee&&(V=we.mutableSourceEagerHydrationData,V!=null))for(we=0;we<V.length;we+=2)He=V[we],at=V[we+1],he?He._workInProgressVersionPrimary=at:He._workInProgressVersionSecondary=at,Bp.push(He);for(ae=_1(W,null,Ae,ae),W.child=ae;ae;)ae.flags=ae.flags&-3|1024,ae=ae.sibling}else xu(V,W,Ae,ae),BC();W=W.child}return W;case 5:return Ol(W),V===null&&h_(W),Ae=W.type,we=W.pendingProps,He=V!==null?V.memoizedProps:null,at=we.children,X(Ae,we)?at=null:He!==null&&X(Ae,He)&&(W.flags|=16),Cg(V,W),xu(V,W,at,ae),W.child;case 6:return V===null&&h_(W),null;case 13:return vA(V,W,ae);case 4:return T1(W,W.stateNode.containerInfo),Ae=W.pendingProps,V===null?W.child=uA(W,null,Ae,ae):xu(V,W,Ae,ae),W.child;case 11:return Ae=W.type,we=W.pendingProps,we=W.elementType===Ae?we:Yl(Ae,we),m_(V,W,Ae,we,ae);case 7:return xu(V,W,W.pendingProps,ae),W.child;case 8:return xu(V,W,W.pendingProps.children,ae),W.child;case 12:return xu(V,W,W.pendingProps.children,ae),W.child;case 10:e:{if(Ae=W.type._context,we=W.pendingProps,at=W.memoizedProps,He=we.value,Pp(W,He),at!==null){var Et=at.value;if(He=Ts(Et,He)?0:(typeof Ae._calculateChangedBits=="function"?Ae._calculateChangedBits(Et,He):1073741823)|0,He===0){if(at.children===we.children&&!vn.current){W=Ga(V,W,ae);break e}}else for(Et=W.child,Et!==null&&(Et.return=W);Et!==null;){var Tt=Et.dependencies;if(Tt!==null){at=Et.child;for(var wn=Tt.firstContext;wn!==null;){if(wn.context===Ae&&wn.observedBits&He){Et.tag===1&&(wn=$c(-1,ae&-ae),wn.tag=2,hf(Et,wn)),Et.lanes|=ae,wn=Et.alternate,wn!==null&&(wn.lanes|=ae),Hv(Et.return,ae),Tt.lanes|=ae;break}wn=wn.next}}else at=Et.tag===10&&Et.type===W.type?null:Et.child;if(at!==null)at.return=Et;else for(at=Et;at!==null;){if(at===W){at=null;break}if(Et=at.sibling,Et!==null){Et.return=at.return,at=Et;break}at=at.return}Et=at}}xu(V,W,we.children,ae),W=W.child}return W;case 9:return we=W.type,He=W.pendingProps,Ae=He.children,es(W,ae),we=Op(we,He.unstable_observedBits),Ae=Ae(we),W.flags|=1,xu(V,W,Ae,ae),W.child;case 14:return we=W.type,He=Yl(we,W.pendingProps),He=Yl(we.type,He),g_(V,W,we,He,Ae,ae);case 15:return gA(V,W,W.type,W.pendingProps,Ae,ae);case 17:return Ae=W.type,we=W.pendingProps,we=W.elementType===Ae?we:Yl(Ae,we),V!==null&&(V.alternate=null,W.alternate=null,W.flags|=2),W.tag=1,Nr(Ae)?(V=!0,Ge(W)):V=!1,es(W,ae),PN(W,Ae,we),DE(W,Ae,we,ae),HC(null,W,Ae,!0,V,ae);case 19:return DN(V,W,ae);case 23:return UE(V,W,ae);case 24:return UE(V,W,ae)}throw Error(l(156,W.tag))};var M_={current:!1},yA=s.unstable_flushAllWithoutAsserting,kb=typeof yA=="function";function N_(){if(yA!==void 0)return yA();for(var V=!1;Xv();)V=!0;return V}function JE(V){try{N_(),YC(function(){N_()?JE(V):V()})}catch(W){V(W)}}var I_=0,_c=!1;function rk(V,W,ae,Ae){this.tag=V,this.key=ae,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=W,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Ae,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function xe(V,W,ae,Ae){return new rk(V,W,ae,Ae)}function Re(V){return V=V.prototype,!(!V||!V.isReactComponent)}function Ve(V){if(typeof V=="function")return Re(V)?1:0;if(V!=null){if(V=V.$$typeof,V===v)return 11;if(V===S)return 14}return 2}function We(V,W){var ae=V.alternate;return ae===null?(ae=xe(V.tag,W,V.key,V.mode),ae.elementType=V.elementType,ae.type=V.type,ae.stateNode=V.stateNode,ae.alternate=V,V.alternate=ae):(ae.pendingProps=W,ae.type=V.type,ae.flags=0,ae.nextEffect=null,ae.firstEffect=null,ae.lastEffect=null),ae.childLanes=V.childLanes,ae.lanes=V.lanes,ae.child=V.child,ae.memoizedProps=V.memoizedProps,ae.memoizedState=V.memoizedState,ae.updateQueue=V.updateQueue,W=V.dependencies,ae.dependencies=W===null?null:{lanes:W.lanes,firstContext:W.firstContext},ae.sibling=V.sibling,ae.index=V.index,ae.ref=V.ref,ae}function Nt(V,W,ae,Ae,we,He){var at=2;if(Ae=V,typeof V=="function")Re(V)&&(at=1);else if(typeof V=="string")at=5;else e:switch(V){case h:return jt(ae.children,we,He,W);case _:at=8,we|=16;break;case f:at=8,we|=1;break;case p:return V=xe(12,ae,W,we|8),V.elementType=p,V.type=p,V.lanes=He,V;case A:return V=xe(13,ae,W,we),V.type=A,V.elementType=A,V.lanes=He,V;case y:return V=xe(19,ae,W,we),V.elementType=y,V.lanes=He,V;case C:return bt(ae,we,He,W);case R:return V=xe(24,ae,W,we),V.elementType=R,V.lanes=He,V;default:if(typeof V=="object"&&V!==null)switch(V.$$typeof){case m:at=10;break e;case g:at=9;break e;case v:at=11;break e;case S:at=14;break e;case x:at=16,Ae=null;break e;case w:at=22;break e}throw Error(l(130,V==null?V:typeof V,""))}return W=xe(at,ae,W,we),W.elementType=V,W.type=Ae,W.lanes=He,W}function jt(V,W,ae,Ae){return V=xe(7,V,Ae,W),V.lanes=ae,V}function bt(V,W,ae,Ae){return V=xe(23,V,Ae,W),V.elementType=C,V.lanes=ae,V}function Xt(V,W,ae){return V=xe(6,V,null,W),V.lanes=ae,V}function cn(V,W,ae){return W=xe(4,V.children!==null?V.children:[],V.key,W),W.lanes=ae,W.stateNode={containerInfo:V.containerInfo,pendingChildren:null,implementation:V.implementation},W}function Fn(V,W,ae){this.tag=W,this.containerInfo=V,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ie,this.pendingContext=this.context=null,this.hydrate=ae,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Qa(0),this.expirationTimes=Qa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qa(0),Ee&&(this.mutableSourceEagerHydrationData=null)}function Nn(V){var W=V._reactInternals;if(W===void 0)throw typeof V.render=="function"?Error(l(188)):Error(l(268,Object.keys(V)));return V=M(W),V===null?null:V.stateNode}function Vr(V,W){if(V=V.memoizedState,V!==null&&V.dehydrated!==null){var ae=V.retryLane;V.retryLane=ae!==0&&ae<W?ae:W}}function er(V,W){Vr(V,W),(V=V.alternate)&&Vr(V,W)}function Jr(V){return V=M(V),V===null?null:V.stateNode}function ni(){return null}return r.IsThisRendererActing=M_,r.act=function(V){function W(){I_--,ZC.current=ae,M_.current=Ae}_c===!1&&(_c=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected.")),I_++;var ae=ZC.current,Ae=M_.current;ZC.current=!0,M_.current=!0;try{var we=UN(V)}catch(He){throw W(),He}if(we!==null&&typeof we=="object"&&typeof we.then=="function")return{then:function(He,at){we.then(function(){1<I_||kb===!0&&ae===!0?(W(),He()):JE(function(Et){W(),Et?at(Et):He()})},function(Et){W(),at(Et)})}};try{I_!==1||kb!==!1&&ae!==!1||N_(),W()}catch(He){throw W(),He}return{then:function(He){He()}}},r.attemptContinuousHydration=function(V){if(V.tag===13){var W=Zd();Uf(V,67108864,W),er(V,67108864)}},r.attemptHydrationAtCurrentPriority=function(V){if(V.tag===13){var W=Zd(),ae=Ll(V);Uf(V,ae,W),er(V,ae)}},r.attemptSynchronousHydration=function(V){switch(V.tag){case 3:var W=V.stateNode;if(W.hydrate){var ae=Hn(W.pendingLanes);W.expiredLanes|=ae&W.pendingLanes,ec(W,li()),!(Aa&48)&&(wd(),Br())}break;case 13:var Ae=Zd();ek(function(){return Uf(V,1,Ae)}),er(V,4)}},r.attemptUserBlockingHydration=function(V){if(V.tag===13){var W=Zd();Uf(V,4,W),er(V,4)}},r.batchedEventUpdates=function(V,W){var ae=Aa;Aa|=2;try{return V(W)}finally{Aa=ae,Aa===0&&(wd(),Br())}},r.batchedUpdates=UN,r.createComponentSelector=function(V){return{$$typeof:x_,value:V}},r.createContainer=function(V,W,ae){return V=new Fn(V,W,ae),W=xe(3,null,null,W===2?7:W===1?3:0),V.current=W,W.stateNode=V,OC(W),V},r.createHasPsuedoClassSelector=function(V){return{$$typeof:E_,value:V}},r.createPortal=function(V,W,ae){var Ae=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:Ae==null?null:""+Ae,children:V,containerInfo:W,implementation:ae}},r.createRoleSelector=function(V){return{$$typeof:S_,value:V}},r.createTestNameSelector=function(V){return{$$typeof:Eu,value:V}},r.createTextSelector=function(V){return{$$typeof:w_,value:V}},r.deferredUpdates=function(V){return zt(97,V)},r.discreteUpdates=function(V,W,ae,Ae,we){var He=Aa;Aa|=4;try{return zt(98,V.bind(null,W,ae,Ae,we))}finally{Aa=He,Aa===0&&(wd(),Br())}},r.findAllNodes=qC,r.findBoundingRects=function(V,W){if(!le)throw Error(l(363));W=qC(V,W),V=[];for(var ae=0;ae<W.length;ae++)V.push(Ne(W[ae]));for(W=V.length-1;0<W;W--){ae=V[W];for(var Ae=ae.x,we=Ae+ae.width,He=ae.y,at=He+ae.height,Et=W-1;0<=Et;Et--)if(W!==Et){var Tt=V[Et],wn=Tt.x,hr=wn+Tt.width,rr=Tt.y,xr=rr+Tt.height;if(Ae>=wn&&He>=rr&&we<=hr&&at<=xr){V.splice(W,1);break}else if(Ae!==wn||ae.width!==Tt.width||xr<He||rr>at){if(!(He!==rr||ae.height!==Tt.height||hr<Ae||wn>we)){wn>Ae&&(Tt.width+=wn-Ae,Tt.x=Ae),hr<we&&(Tt.width=we-wn),V.splice(W,1);break}}else{rr>He&&(Tt.height+=rr-He,Tt.y=He),xr<at&&(Tt.height=at-rr),V.splice(W,1);break}}}return V},r.findHostInstance=Nn,r.findHostInstanceWithNoPortals=function(V){return V=D(V),V===null?null:V.tag===20?V.stateNode.instance:V.stateNode},r.findHostInstanceWithWarning=function(V){return Nn(V)},r.flushControlled=function(V){var W=Aa;Aa|=1;try{zt(99,V)}finally{Aa=W,Aa===0&&(wd(),Br())}},r.flushDiscreteUpdates=function(){!(Aa&49)&&($O(),Xv())},r.flushPassiveEffects=Xv,r.flushSync=ek,r.focusWithin=function(V,W){if(!le)throw Error(l(363));for(V=KC(V),W=Su(V,W),W=Array.from(W),V=0;V<W.length;){var ae=W[V++];if(!ue(ae)){if(ae.tag===5&&oe(ae.stateNode))return!0;for(ae=ae.child;ae!==null;)W.push(ae),ae=ae.sibling}}return!1},r.getCurrentUpdateLanePriority=function(){return It},r.getFindAllNodesFailureDescription=function(V,W){if(!le)throw Error(l(363));var ae=0,Ae=[];V=[KC(V),0];for(var we=0;we<V.length;){var He=V[we++],at=V[we++],Et=W[at];if((He.tag!==5||!ue(He))&&(WC(He,Et)&&(Ae.push(QC(Et)),at++,at>ae&&(ae=at)),at<W.length))for(He=He.child;He!==null;)V.push(He,at),He=He.sibling}if(ae<W.length){for(V=[];ae<W.length;ae++)V.push(QC(W[ae]));return`findAllNodes was able to match part of the selector:
  `+(Ae.join(" > ")+`

No matching component was found for:
  `)+V.join(" > ")}return null},r.getPublicRootInstance=function(V){if(V=V.current,!V.child)return null;switch(V.child.tag){case 5:return j(V.child.stateNode);default:return V.child.stateNode}},r.injectIntoDevTools=function(V){if(V={bundleType:V.bundleType,version:V.version,rendererPackageName:V.rendererPackageName,rendererConfig:V.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:c.ReactCurrentDispatcher,findHostInstanceByFiber:Jr,findFiberByHostInstance:V.findFiberByHostInstance||ni,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")V=!1;else{var W=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!W.isDisabled&&W.supportsFiber)try{Je=W.inject(V),Rt=W}catch{}V=!0}return V},r.observeVisibleRects=function(V,W,ae,Ae){if(!le)throw Error(l(363));V=qC(V,W);var we=ge(V,ae,Ae).disconnect;return{disconnect:function(){we()}}},r.registerMutableSourceForHydration=function(V,W){var ae=W._getVersion;ae=ae(W._source),V.mutableSourceEagerHydrationData==null?V.mutableSourceEagerHydrationData=[W,ae]:V.mutableSourceEagerHydrationData.push(W,ae)},r.runWithPriority=function(V,W){var ae=It;try{return It=V,W()}finally{It=ae}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(V,W){var ae=Aa;Aa&=-2,Aa|=8;try{return V(W)}finally{Aa=ae,Aa===0&&(wd(),Br())}},r.updateContainer=function(V,W,ae,Ae){var we=W.current,He=Zd(),at=Ll(we);e:if(ae){ae=ae._reactInternals;t:{if(I(ae)!==ae||ae.tag!==1)throw Error(l(170));var Et=ae;do{switch(Et.tag){case 3:Et=Et.stateNode.context;break t;case 1:if(Nr(Et.type)){Et=Et.stateNode.__reactInternalMemoizedMergedChildContext;break t}}Et=Et.return}while(Et!==null);throw Error(l(171))}if(ae.tag===1){var Tt=ae.type;if(Nr(Tt)){ae=qi(ae,Tt,Et);break e}}ae=Et}else ae=dn;return W.context===null?W.context=ae:W.pendingContext=ae,W=$c(He,at),W.payload={element:V},Ae=Ae===void 0?null:Ae,Ae!==null&&(W.callback=Ae),hf(we,W),Uf(we,at,He),at},r}})(Cht);var nus=Cht.exports;$tr.exports=nus;var rus=$tr.exports;const ius=Li(rus);function aus(t){return function(e){t.forEach(function(n){typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function LYe(t,e,n){var r,a,o,s,l;e==null&&(e=100);function c(){var d=Date.now()-s;d<e&&d>=0?r=setTimeout(c,e-d):(r=null,n||(l=t.apply(o,a),o=a=null))}var u=function(){o=this,a=arguments,s=Date.now();var d=n&&!r;return r||(r=setTimeout(c,e)),d&&(l=t.apply(o,a),o=a=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=t.apply(o,a),o=a=null,clearTimeout(r),r=null)},u}LYe.debounce=LYe;var ous=LYe;const vUt=Li(ous);function sus(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:a}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,l]=Y.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=Y.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),u=e?typeof e=="number"?e:e.scroll:null,d=e?typeof e=="number"?e:e.resize:null,h=Y.useRef(!1);Y.useEffect(()=>(h.current=!0,()=>void(h.current=!1)));const[f,p,m]=Y.useMemo(()=>{const y=()=>{if(!c.current.element)return;const{left:S,top:x,width:w,height:_,bottom:C,right:R,x:k,y:P}=c.current.element.getBoundingClientRect(),N={left:S,top:x,width:w,height:_,bottom:C,right:R,x:k,y:P};c.current.element instanceof HTMLElement&&a&&(N.height=c.current.element.offsetHeight,N.width=c.current.element.offsetWidth),Object.freeze(N),h.current&&!dus(c.current.lastBounds,N)&&l(c.current.lastBounds=N)};return[y,d?vUt(y,d):y,u?vUt(y,u):y]},[l,a,u,d]);function g(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(y=>y.removeEventListener("scroll",m,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function v(){c.current.element&&(c.current.resizeObserver=new o(m),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(y=>y.addEventListener("scroll",m,{capture:!0,passive:!0})))}const A=y=>{!y||y===c.current.element||(g(),c.current.element=y,c.current.scrollContainers=Ftr(y),v())};return cus(m,!!n),lus(p),Y.useEffect(()=>{g(),v()},[n,m,p]),Y.useEffect(()=>g,[]),[A,s,f]}function lus(t){Y.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function cus(t,e){Y.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function Ftr(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:a}=window.getComputedStyle(t);return[n,r,a].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...Ftr(t.parentElement)]}const uus=["x","y","top","bottom","left","right","width","height"],dus=(t,e)=>uus.every(n=>t[n]===e[n]),su={obj:t=>t===Object(t)&&!su.arr(t)&&typeof t!="function",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0,arr:t=>Array.isArray(t),equ(t,e){if(typeof t!=typeof e||!!t!=!!e)return!1;if(su.str(t)||su.num(t)||su.obj(t))return t===e;if(su.arr(t)&&t==e)return!0;let n;for(n in t)if(!(n in e))return!1;for(n in e)if(t[n]!==e[n])return!1;return su.und(n)?t===e:!0}};function eFe(t){return(t.eventObject||t.object).uuid+"/"+t.index+t.instanceId}function jtr(t,e,n,r){const a=n.get(e);a&&(n.delete(e),n.size===0&&(t.delete(r),a.target.releasePointerCapture(r)))}function hus(t,e){const{internal:n}=t.getState();n.interaction=n.interaction.filter(r=>r!==e),n.initialHits=n.initialHits.filter(r=>r!==e),n.hovered.forEach((r,a)=>{(r.eventObject===e||r.object===e)&&n.hovered.delete(a)}),n.capturedMap.forEach((r,a)=>{jtr(n.capturedMap,e,r,a)})}function fus(t){const e=new et;function n(h){var f,p,m,g;const v=t.getState(),{raycaster:A,mouse:y,camera:S,size:x}=v,w=A.computeOffsets==null?void 0:A.computeOffsets(h,v),_=(f=w==null?void 0:w.offsetX)!=null?f:h.offsetX,C=(p=w==null?void 0:w.offsetY)!=null?p:h.offsetY,R=(m=w==null?void 0:w.width)!=null?m:x.width,k=(g=w==null?void 0:w.height)!=null?g:x.height;y.set(_/R*2-1,-(C/k)*2+1),A.setFromCamera(y,S)}function r(h){const{internal:f}=t.getState(),p=h.offsetX-f.initialClick[0],m=h.offsetY-f.initialClick[1];return Math.round(Math.sqrt(p*p+m*m))}function a(h){return h.filter(f=>["Move","Over","Enter","Out","Leave"].some(p=>{var m;return(m=f.__r3f)==null?void 0:m.handlers["onPointer"+p]}))}function o(h){const f=t.getState(),{raycaster:p,internal:m}=f;if(!p.enabled)return[];const g=new Set,v=[],A=h?h(m.interaction):m.interaction;let y=p.intersectObjects(A,!0).filter(x=>{const w=eFe(x);return g.has(w)?!1:(g.add(w),!0)});p.filter&&(y=p.filter(y,f));for(const x of y){let w=x.object;for(;w;){var S;(S=w.__r3f)!=null&&S.eventCount&&v.push({...x,eventObject:w}),w=w.parent}}return v}function s(h,f){const{internal:p}=t.getState();if("pointerId"in f&&p.capturedMap.has(f.pointerId))for(let m of p.capturedMap.get(f.pointerId).values())h.push(m.intersection);return h}function l(h,f,p,m){const{raycaster:g,mouse:v,camera:A,internal:y}=t.getState();if(h.length){const S=e.set(v.x,v.y,0).unproject(A),x={stopped:!1};for(const w of h){const _=N=>{var L,I;return(L=(I=y.capturedMap.get(N))==null?void 0:I.has(w.eventObject))!=null?L:!1},C=N=>{const L={intersection:w,target:f.target};y.capturedMap.has(N)?y.capturedMap.get(N).set(w.eventObject,L):y.capturedMap.set(N,new Map([[w.eventObject,L]])),f.target.setPointerCapture(N)},R=N=>{const L=y.capturedMap.get(N);L&&jtr(y.capturedMap,w.eventObject,L,N)};let k={};for(let N in f){let L=f[N];typeof L!="function"&&(k[N]=L)}let P={...w,...k,spaceX:v.x,spaceY:v.y,intersections:h,stopped:x.stopped,delta:p,unprojectedPoint:S,ray:g.ray,camera:A,stopPropagation:()=>{const N="pointerId"in f&&y.capturedMap.get(f.pointerId);if((!N||N.has(w.eventObject))&&(P.stopped=x.stopped=!0,y.hovered.size&&Array.from(y.hovered.values()).find(L=>L.eventObject===w.eventObject))){const L=h.slice(0,h.indexOf(w));c([...L,w])}},target:{hasPointerCapture:_,setPointerCapture:C,releasePointerCapture:R},currentTarget:{hasPointerCapture:_,setPointerCapture:C,releasePointerCapture:R},sourceEvent:f,nativeEvent:f};if(m(P),x.stopped===!0)break}}return h}function c(h){const{internal:f}=t.getState();Array.from(f.hovered.values()).forEach(p=>{if(!h.length||!h.find(m=>m.object===p.object&&m.index===p.index&&m.instanceId===p.instanceId)){const g=p.eventObject.__r3f,v=g==null?void 0:g.handlers;if(f.hovered.delete(eFe(p)),g!=null&&g.eventCount){const A={...p,intersections:h||[]};v.onPointerOut==null||v.onPointerOut(A),v.onPointerLeave==null||v.onPointerLeave(A)}}})}const u=h=>{switch(h){case"onPointerLeave":case"onPointerCancel":return()=>c([]);case"onLostPointerCapture":return f=>{const{internal:p}=t.getState();"pointerId"in f&&!p.capturedMap.has(f.pointerId)&&(p.capturedMap.delete(f.pointerId),c([]))}}return f=>{const{onPointerMissed:p,internal:m}=t.getState();n(f),m.lastEvent.current=f;const g=h==="onPointerMove",v=h==="onClick"||h==="onContextMenu"||h==="onDoubleClick",y=s(o(g?a:void 0),f),S=v?r(f):0;h==="onPointerDown"&&(m.initialClick=[f.offsetX,f.offsetY],m.initialHits=y.map(x=>x.eventObject)),v&&!y.length&&S<=2&&(d(f,m.interaction),p&&p(f)),g&&c(y),l(y,f,S,x=>{const w=x.eventObject,_=w.__r3f,C=_==null?void 0:_.handlers;if(_!=null&&_.eventCount)if(g){if(C.onPointerOver||C.onPointerEnter||C.onPointerOut||C.onPointerLeave){const R=eFe(x),k=m.hovered.get(R);k?k.stopped&&x.stopPropagation():(m.hovered.set(R,x),C.onPointerOver==null||C.onPointerOver(x),C.onPointerEnter==null||C.onPointerEnter(x))}C.onPointerMove==null||C.onPointerMove(x)}else{const R=C[h];R?(!v||m.initialHits.includes(w))&&(d(f,m.interaction.filter(k=>!m.initialHits.includes(k))),R(x)):v&&m.initialHits.includes(w)&&d(f,m.interaction.filter(k=>!m.initialHits.includes(k)))}})}};function d(h,f){f.forEach(p=>{var m;return(m=p.__r3f)==null||m.handlers.onPointerMissed==null?void 0:m.handlers.onPointerMissed(h)})}return{handlePointer:u}}const pus=t=>t&&!!t.memoized&&!!t.changes,wbe=t=>t&&!!t.getState,tFe=(t,e)=>{var n,r;return{root:wbe(t)?t:(n=(r=t.__r3f)==null?void 0:r.root)!=null?n:e.__r3f.root,container:wbe(t)?t.getState().scene:t}},AUt="__default",mus={};let gus={};function vus(t,e){return!!(su.arr(t)&&su.equ(t,e)||t===e)}function TF(t,e){const n=t;return(e!=null&&e.primitive||!n.__r3f)&&(n.__r3f={root:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...e}),t}function Aus(t){function e(f,{children:p,key:m,ref:g,...v},{children:A,key:y,ref:S,...x}={},w=!1){var _;const C=(_=f==null?void 0:f.__r3f)!=null?_:{},R=Object.entries(v),k=[];if(w){const N=Object.keys(x);for(let L=0;L<N.length;L++)v.hasOwnProperty(N[L])||R.unshift([N[L],AUt+"remove"])}R.forEach(([N,L])=>{var I;if((I=f.__r3f)!=null&&I.primitive&&N==="object"||vus(L,x[N]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(N))return k.push([N,L,!0,[]]);let b=[];N.includes("-")&&(b=N.split("-")),k.push([N,L,!1,b])});const P={...v};return C.memoizedProps&&C.memoizedProps.args&&(P.args=C.memoizedProps.args),C.memoizedProps&&C.memoizedProps.attach&&(P.attach=C.memoizedProps.attach),{accumulative:w,memoized:P,changes:k}}function n(f,p){var m,g,v;const A=(m=f==null?void 0:f.__r3f)!=null?m:{},y=A.root,S=(g=y==null||y.getState==null?void 0:y.getState())!=null?g:{},{memoized:x,changes:w}=pus(p)?p:e(f,p),_=A.eventCount;if(f.__r3f&&(f.__r3f.memoizedProps=x),w.forEach(([C,R,k,P])=>{var N;let L=f,I=L[C];if(P.length&&(I=P.reduce((T,M)=>T[M],f),!(I&&I.set))){const[T,...M]=P.reverse();L=M.reverse().reduce((D,B)=>D[B],f),C=T}if(R===AUt+"remove")if(I&&I.constructor)R=new I.constructor(x.args);else if(L.constructor){const T=new L.constructor(L.__r3f.memoizedProps.args);R=T[I],T.dispose&&T.dispose()}else R=0;const b=(S==null||(N=S.gl)==null?void 0:N.outputEncoding)===nE;if(k)R?A.handlers[C]=R:delete A.handlers[C],A.eventCount=Object.keys(A.handlers).length;else if(I&&I.set&&(I.copy||I instanceof ZD)){if(Array.isArray(R))I.fromArray?I.fromArray(R):I.set(...R);else if(I.copy&&R&&R.constructor&&I.constructor.name===R.constructor.name)I.copy(R);else if(R!==void 0){const T=I instanceof ci;!T&&I.setScalar?I.setScalar(R):I instanceof ZD&&R instanceof ZD?I.mask=R.mask:I.set(R),!b&&T&&I.convertSRGBToLinear()}}else L[C]=R,!b&&L[C]instanceof Ah&&(L[C].encoding=ou);r(f)}),A.parent&&S.internal&&f.raycast&&_!==A.eventCount){const C=S.internal.interaction.indexOf(f);C>-1&&S.internal.interaction.splice(C,1),A.eventCount&&S.internal.interaction.push(f)}return w.length&&(v=f.__r3f)!=null&&v.parent&&a(f),f}function r(f){var p,m;const g=(p=f.__r3f)==null||(m=p.root)==null||m.getState==null?void 0:m.getState();g&&g.internal.frames===0&&g.invalidate()}function a(f){f.onUpdate==null||f.onUpdate(f)}function o(f,{args:p=[],...m},g,v,A){let y=`${f[0].toUpperCase()}${f.slice(1)}`,S;if(!wbe(g)&&A){const x=w=>w.return?x(w.return):w.stateNode&&w.stateNode.containerInfo;g=x(A)}if(!g||!wbe(g))throw`No valid root for ${y}!`;if(f==="primitive"){if(m.object===void 0)throw"Primitives without 'object' are invalid!";const x=m.object;S=TF(x,{root:g,primitive:!0})}else{const x=gus[y]||tus[y];if(!x)throw`${y} is not part of the THREE namespace! Did you forget to extend? See: https://github.com/pmndrs/react-three-fiber/blob/master/markdown/api.md#using-3rd-party-objects-declaratively`;if(!Array.isArray(p))throw"The args prop must be an array!";S=TF(new x(...p),{root:g,memoizedProps:{args:p.length===0?null:p}})}return"attachFns"in m||(y.endsWith("Geometry")?m={attach:"geometry",...m}:y.endsWith("Material")&&(m={attach:"material",...m})),n(S,m),S}function s(f,p){let m=!1;if(p){if(p.attachArray)su.arr(f[p.attachArray])||(f[p.attachArray]=[]),f[p.attachArray].push(p);else if(p.attachObject)su.obj(f[p.attachObject[0]])||(f[p.attachObject[0]]={}),f[p.attachObject[0]][p.attachObject[1]]=p;else if(p.attach&&!su.fun(p.attach))f[p.attach]=p;else if(su.arr(p.attachFns)){const[g]=p.attachFns;su.str(g)&&su.fun(f[g])?f[g](p):su.fun(g)&&g(p,f)}else p.isObject3D&&f.isObject3D&&(f.add(p),m=!0);m||f.__r3f.objects.push(p),p.__r3f||TF(p,{}),p.__r3f.parent=f,a(p),r(p)}}function l(f,p,m){let g=!1;if(p){if(p.attachArray){let v=f[p.attachArray];su.arr(v)||(f[p.attachArray]=[],v=f[p.attachArray]),v.splice(v.indexOf(m),0,p)}else{if(p.attachObject||p.attach&&!su.fun(p.attach))return s(f,p);if(p.isObject3D&&f.isObject3D){p.parent=f,p.dispatchEvent({type:"added"});const v=f.children.filter(y=>y!==p),A=v.indexOf(m);f.children=[...v.slice(0,A),p,...v.slice(A)],g=!0}}g||f.__r3f.objects.push(p),p.__r3f||TF(p,{}),p.__r3f.parent=f,a(p),r(p)}}function c(f,p,m=!1){f&&[...f].forEach(g=>u(p,g,m))}function u(f,p,m){if(p){var g,v;if(p.__r3f&&(p.__r3f.parent=null),(g=f.__r3f)!=null&&g.objects&&(f.__r3f.objects=f.__r3f.objects.filter(w=>w!==p)),p.attachArray)f[p.attachArray]=f[p.attachArray].filter(w=>w!==p);else if(p.attachObject)delete f[p.attachObject[0]][p.attachObject[1]];else if(p.attach&&!su.fun(p.attach)&&f[p.attach]===p)f[p.attach]=null;else if(su.arr(p.attachFns)){const[,w]=p.attachFns;su.str(w)&&su.fun(f[w])?f[w](p):su.fun(w)&&w(p,f)}else if(p.isObject3D&&f.isObject3D){var A;f.remove(p),(A=p.__r3f)!=null&&A.root&&hus(p.__r3f.root,p)}const S=(v=p.__r3f)==null?void 0:v.primitive,x=m===void 0?p.dispose!==null&&!S:m;if(!S){var y;c((y=p.__r3f)==null?void 0:y.objects,p,x),c(p.children,p,x)}p.__r3f&&(delete p.__r3f.root,delete p.__r3f.objects,delete p.__r3f.handlers,delete p.__r3f.memoizedProps,S||delete p.__r3f),x&&p.dispose&&p.type!=="Scene"&&tX.unstable_runWithPriority(tX.unstable_IdlePriority,()=>{try{p.dispose()}catch{}}),r(f)}}function d(f,p,m,g){var v;const A=(v=f.__r3f)==null?void 0:v.parent;if(!A)return;const y=o(p,m,f.__r3f.root);p!=="primitive"&&f.children&&(f.children.forEach(S=>s(y,S)),f.children=[]),f.__r3f.objects.forEach(S=>s(y,S)),f.__r3f.objects=[],u(A,f),s(A,y),y.raycast&&y.__r3f.eventCount&&y.__r3f.root.getState().internal.interaction.push(y),[g,g.alternate].forEach(S=>{S!==null&&(S.stateNode=y,S.ref&&(typeof S.ref=="function"?S.ref(y):S.ref.current=y))})}return{reconciler:ius({now:tX.unstable_now,createInstance:o,removeChild:u,appendChild:s,appendInitialChild:s,insertBefore:l,warnsIfNotActing:!0,supportsMutation:!0,isPrimaryRenderer:!1,scheduleTimeout:su.fun(setTimeout)?setTimeout:void 0,cancelTimeout:su.fun(clearTimeout)?clearTimeout:void 0,setTimeout:su.fun(setTimeout)?setTimeout:void 0,clearTimeout:su.fun(clearTimeout)?clearTimeout:void 0,noTimeout:-1,appendChildToContainer:(f,p)=>{const{container:m,root:g}=tFe(f,p);m.__r3f.root=g,s(m,p)},removeChildFromContainer:(f,p)=>u(tFe(f,p).container,p),insertInContainerBefore:(f,p,m)=>l(tFe(f,p).container,p,m),prepareUpdate(f,p,m,g){if(f.__r3f.primitive&&g.object&&g.object!==f)return[!0];{const{args:v=[],children:A,...y}=g,{args:S=[],children:x,...w}=m;if(!Array.isArray(v))throw"The args prop must be an array!";if(v.some((C,R)=>C!==S[R]))return[!0];const _=e(f,y,w,!0);if(_.changes.length)return[!1,_];if(f.attach&&typeof f.attach!="function"){const R=f.__r3f.parent;R&&R[f.attach]!==f&&s(R,f)}return null}},commitUpdate(f,[p,m],g,v,A,y){p?d(f,g,A,y):n(f,m)},hideInstance(f){f.isObject3D&&(f.visible=!1,r(f))},unhideInstance(f,p){(f.isObject3D&&p.visible==null||p.visible)&&(f.visible=!0,r(f))},hideTextInstance(){throw new Error("Text is not allowed in the R3F tree.")},getPublicInstance(f){return f},getRootHostContext(f){return mus},getChildHostContext(f){return f},createTextInstance(){},finalizeInitialChildren(f){var p;return!!((p=f==null?void 0:f.__r3f)!=null?p:{}).handlers},commitMount(f){var p;const m=(p=f==null?void 0:f.__r3f)!=null?p:{};f.raycast&&m.handlers&&m.eventCount&&f.__r3f.root.getState().internal.interaction.push(f)},shouldDeprioritizeSubtree(){return!1},prepareForCommit(){return null},preparePortalMount(f){TF(f)},resetAfterCommit(){},shouldSetTextContent(){return!1},clearContainer(){return!1}}),applyProps:n}}const yus=t=>!!(t!=null&&t.render),yUt=t=>t&&t.isOrthographicCamera;function BYe(t){return Array.isArray(t)?Math.min(Math.max(t[0],window.devicePixelRatio),t[1]):t}const Htr=Y.createContext(null),bus=(t,e,n,r)=>{const{gl:a,size:o,shadows:s=!1,linear:l=!1,flat:c=!1,vr:u=!1,orthographic:d=!1,frameloop:h="always",dpr:f=1,performance:p,clock:m=new Eht,raycaster:g,camera:v,onPointerMissed:A}=r;s&&(a.shadowMap.enabled=!0,typeof s=="object"?Object.assign(a.shadowMap,s):a.shadowMap.type=Odt),l&&(a.outputEncoding=nE),c&&(a.toneMapping=_w),h==="never"&&(m.stop(),m.elapsedTime=0);const y=yE((_,C)=>{const R=new Rtr,{params:k,...P}=g||{};t(R,{enabled:!0,...P,params:{...R.params,...k}});const N=v instanceof A8,L=N?v:d?new Cx(0,0,0,0,.1,1e3):new Xu(75,0,.1,1e3);N||(L.position.z=5,v&&t(L,v),v!=null&&v.rotation||L.lookAt(0,0,0));const I=BYe(f),b=new et,T=new et,M=new et;function D(H=C().camera,U=T,$=C().size){const{width:z,height:Z}=$,K=z/Z;U instanceof et?M.copy(U):M.set(...U);const Q=H.getWorldPosition(b).distanceTo(M);if(yUt(H))return{width:z/H.zoom,height:Z/H.zoom,factor:1,distance:Q,aspect:K};{const ee=H.fov*Math.PI/180,X=2*Math.tan(ee/2)*Q,te=X*(z/Z);return{width:te,height:X,factor:z/te,distance:Q,aspect:K}}}let B;const j=H=>_(U=>({performance:{...U.performance,current:H}}));return{gl:a,set:_,get:C,invalidate:()=>e(C()),advance:(H,U)=>n(H,U,C()),linear:l,flat:c,scene:TF(new dle),camera:L,controls:null,raycaster:R,clock:m,mouse:new Qn,vr:u,frameloop:h,onPointerMissed:A,performance:{current:1,min:.5,max:1,debounce:200,...p,regress:()=>{const H=C();B&&clearTimeout(B),H.performance.current!==H.performance.min&&j(H.performance.min),B=setTimeout(()=>j(C().performance.max),H.performance.debounce)}},size:{width:0,height:0},viewport:{initialDpr:I,dpr:I,width:0,height:0,aspect:0,distance:0,factor:0,getCurrentViewport:D},setSize:(H,U)=>{const $={width:H,height:U};_(z=>({size:$,viewport:{...z.viewport,...D(L,T,$)}}))},setDpr:H=>_(U=>({viewport:{...U.viewport,dpr:BYe(H)}})),setFrameloop:(H="always")=>_(()=>({frameloop:H})),events:{connected:!1},internal:{active:!1,priority:0,frames:0,lastProps:r,lastEvent:Y.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(H,U=0)=>(_(({internal:$})=>({internal:{...$,priority:$.priority+(U>0?1:0),subscribers:[...$.subscribers,{ref:H,priority:U}].sort((z,Z)=>z.priority-Z.priority)}})),()=>{_(({internal:$})=>({internal:{...$,priority:$.priority-(U>0?1:0),subscribers:$.subscribers.filter(z=>z.ref!==H)}}))})}}}),S=y.getState();let x=S.size,w=S.viewport.dpr;return y.subscribe(()=>{const{camera:_,size:C,viewport:R,internal:k}=y.getState();(C!==x||R.dpr!==w)&&(!_.manual&&!(k.lastProps.camera instanceof A8)&&(yUt(_)?(_.left=C.width/-2,_.right=C.width/2,_.top=C.height/2,_.bottom=C.height/-2):_.aspect=C.width/C.height,_.updateProjectionMatrix(),_.updateMatrixWorld()),a.setPixelRatio(R.dpr),a.setSize(C.width,C.height),x=C,w=R.dpr)}),o&&S.setSize(o.width,o.height),y.subscribe(_=>e(_)),y};let a5,bUt=[],xUt=[],xus=[];function WJ(t,e){for(a5=0;a5<t.length;a5++)t[a5](e)}function nFe(t,e){let n=e.clock.getDelta();for(e.frameloop==="never"&&typeof t=="number"&&(n=t-e.clock.elapsedTime,e.clock.oldTime=e.clock.elapsedTime,e.clock.elapsedTime=t),a5=0;a5<e.internal.subscribers.length;a5++)e.internal.subscribers[a5].ref.current(e,n);return!e.internal.priority&&e.gl.render&&e.gl.render(e.scene,e.camera),e.internal.frames=Math.max(0,e.internal.frames-1),e.frameloop==="always"?1:e.internal.frames}function Eus(t){let e=!1,n;function r(s){if(e=!0,n=0,WJ(bUt,s),t.forEach(l=>{const c=l.store.getState();c.internal.active&&(c.frameloop==="always"||c.internal.frames>0)&&(n+=nFe(s,c))}),WJ(xUt,s),n>0)return requestAnimationFrame(r);WJ(xus,s),e=!1}function a(s){if(!s)return t.forEach(l=>a(l.store.getState()));s.vr||!s.internal.active||s.frameloop==="never"||(s.internal.frames=Math.min(60,s.internal.frames+1),e||(e=!0,requestAnimationFrame(r)))}function o(s,l=!0,c){l&&WJ(bUt,s),c?nFe(s,c):t.forEach(u=>nFe(s,u.store.getState())),l&&WJ(xUt,s)}return{loop:r,invalidate:a,advance:o}}function Sus(t){const{handlePointer:e}=fus(t),n={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};return{connected:!1,handlers:Object.keys(n).reduce((r,a)=>({...r,[a]:e(a)}),{}),connect:r=>{var a;const{set:o,events:s}=t.getState();s.disconnect==null||s.disconnect(),o(l=>({events:{...l.events,connected:r}})),Object.entries((a=s==null?void 0:s.handlers)!=null?a:[]).forEach(([l,c])=>{const[u,d]=n[l];r.addEventListener(u,c,{passive:d})})},disconnect:()=>{const{set:r,events:a}=t.getState();if(a.connected){var o;Object.entries((o=a.handlers)!=null?o:[]).forEach(([s,l])=>{if(a&&a.connected instanceof HTMLElement){const[c]=n[s];a.connected.removeEventListener(c,l)}}),r(s=>({events:{...s.events,connected:!1}}))}}}}const DYe=typeof window<"u"?Y.useLayoutEffect:Y.useEffect;function wus({set:t}){return DYe(()=>(t(new Promise(()=>null)),()=>t(!1)),[]),null}class Utr extends Y.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}Utr.getDerivedStateFromError=()=>({error:!0});const _us=Y.forwardRef(function({children:e,fallback:n,tabIndex:r,resize:a,id:o,style:s,className:l,events:c,...u},d){const h=Tus(u.onPointerMissed),[f,{width:p,height:m}]=sus({scroll:!0,debounce:{scroll:50,resize:0},...a}),g=Y.useRef(null),[v,A]=Y.useState(!1),[y,S]=Y.useState(!1);if(v)throw v;if(y)throw y;return DYe(()=>{p>0&&m>0&&Rus(Y.createElement(Utr,{set:S},Y.createElement(Y.Suspense,{fallback:Y.createElement(wus,{set:A})},e)),g.current,{...u,size:{width:p,height:m},onPointerMissed:h,events:c||Sus})},[p,m,e,h]),DYe(()=>{const x=g.current;return()=>Vtr(x)},[]),Y.createElement("div",{ref:f,id:o,className:l,tabIndex:r,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...s}},Y.createElement("canvas",{ref:aus([g,d]),style:{display:"block"}},n))});function ztr(){const t=Y.useContext(Htr);if(!t)throw"R3F hooks can only be used within the Canvas component!";return t}function WT(t=n=>n,e){return ztr()(t,e)}function kht(t,e=0){const n=ztr().getState().internal.subscribe,r=Y.useRef(t);return Y.useLayoutEffect(()=>void(r.current=t),[t]),Y.useLayoutEffect(()=>n(r,e),[e,n]),null}function Tus(t){const e=Y.useRef(t);return Y.useLayoutEffect(()=>void(e.current=t),[t]),(...n)=>e.current==null?void 0:e.current(...n)}const vie=new Map,EUt=["legacy","blocking","concurrent"],{invalidate:Cus,advance:SUt}=Eus(vie),{reconciler:Aie,applyProps:Gtr}=Aus(),kus=(t,e)=>{const n=typeof t=="function"?t(e):t;if(yus(n))return n;const r=new wc({powerPreference:"high-performance",canvas:e,antialias:!0,alpha:!0,...t});return r.outputEncoding=ou,r.toneMapping=$dt,t&&Gtr(r,t),r};function Rus(t,e,{gl:n,size:r,mode:a=EUt[1],events:o,onCreated:s,...l}={}){var c;if(!r){var u,d,h,f;r={width:(u=(d=e.parentElement)==null?void 0:d.clientWidth)!=null?u:0,height:(h=(f=e.parentElement)==null?void 0:f.clientHeight)!=null?h:0}}let p=vie.get(e),m=p==null?void 0:p.fiber,g=p==null?void 0:p.store,v=(c=g)==null?void 0:c.getState();if(m&&v&&(l.dpr!==void 0&&!su.equ(v.viewport.dpr,BYe(l.dpr))&&v.setDpr(l.dpr),(v.size.width!==r.width||v.size.height!==r.height)&&v.setSize(r.width,r.height),v.frameloop!==l.frameloop&&v.setFrameloop(l.frameloop),l.linear!==v.internal.lastProps.linear&&(Vtr(e),m=void 0)),!m){const A=kus(n,e);l.vr&&(A.xr.enabled=!0,A.setAnimationLoop(S=>SUt(S,!0))),g=bus(Gtr,Cus,SUt,{gl:A,size:r,...l});const y=g.getState();m=Aie.createContainer(g,EUt.indexOf(a),!1,null),vie.set(e,{fiber:m,store:g}),o&&y.set({events:o(g)})}if(g&&m)return Aie.updateContainer(Y.createElement(Mus,{store:g,element:t,onCreated:s,target:e}),m,null,()=>{}),g;throw"Error creating root!"}function Mus({store:t,element:e,onCreated:n,target:r}){return Y.useEffect(()=>{const a=t.getState();a.set(o=>({internal:{...o.internal,active:!0}})),a.events.connect==null||a.events.connect(r),n&&n(a)},[]),Y.createElement(Htr.Provider,{value:t},e)}function Vtr(t,e){const n=vie.get(t),r=n==null?void 0:n.fiber;if(r){const a=n==null?void 0:n.store.getState();a&&(a.internal.active=!1),Aie.updateContainer(null,r,null,()=>{a&&setTimeout(()=>{var o,s,l;a.events.disconnect==null||a.events.disconnect(),(o=a.gl)==null||(s=o.renderLists)==null||s.dispose==null||s.dispose(),(l=a.gl)==null||l.forceContextLoss==null||l.forceContextLoss(),Nus(a),vie.delete(t),e&&e(t)},500)})}}function Nus(t){t.dispose&&t.type!=="Scene"&&t.dispose();for(const e in t)e.dispose==null||e.dispose(),delete t[e]}Aie.act;Aie.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:"17.0.2"});const gle=new et,Rht=new et,Ius=new et;function Pus(t,e,n){const r=gle.setFromMatrixPosition(t.matrixWorld);r.project(e);const a=n.width/2,o=n.height/2;return[r.x*a+a,-(r.y*o)+o]}function Ous(t,e){const n=gle.setFromMatrixPosition(t.matrixWorld),r=Rht.setFromMatrixPosition(e.matrixWorld),a=n.sub(r),o=e.getWorldDirection(Ius);return a.angleTo(o)>Math.PI/2}function Lus(t,e,n,r){const a=gle.setFromMatrixPosition(t.matrixWorld),o=a.clone();o.project(e),n.setFromCamera(o,e);const s=n.intersectObjects(r,!0);if(s.length){const l=s[0].distance;return a.distanceTo(n.ray.origin)<l}return!0}function Bus(t,e){if(e instanceof Cx)return e.zoom;if(e instanceof Xu){const n=gle.setFromMatrixPosition(t.matrixWorld),r=Rht.setFromMatrixPosition(e.matrixWorld),a=e.fov*Math.PI/180,o=n.distanceTo(r);return 1/(2*Math.tan(a/2)*o)}else return 1}function Dus(t,e,n){if(e instanceof Xu||e instanceof Cx){const r=gle.setFromMatrixPosition(t.matrixWorld),a=Rht.setFromMatrixPosition(e.matrixWorld),o=r.distanceTo(a),s=(n[1]-n[0])/(e.far-e.near),l=n[1]-s*e.far;return Math.round(s*o+l)}}const $Ye=t=>Math.abs(t)<1e-10?0:t;function Ktr(t,e,n=""){let r="matrix3d(";for(let a=0;a!==16;a++)r+=$Ye(e[a]*t.elements[a])+(a!==15?",":")");return n+r}const $us=(t=>e=>Ktr(e,t))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),Fus=(t=>(e,n)=>Ktr(e,t(n),"translate(-50%,-50%)"))(t=>[1/t,1/t,1/t,1,-1/t,-1/t,-1/t,-1,1/t,1/t,1/t,1,1,1,1,1]),Wtr=Y.forwardRef(({children:t,eps:e=.001,style:n,className:r,prepend:a,center:o,fullscreen:s,portal:l,distanceFactor:c,sprite:u=!1,transform:d=!1,occlude:h,onOcclude:f,zIndexRange:p=[16777271,0],calculatePosition:m=Pus,as:g="div",wrapperClass:v,pointerEvents:A="auto",...y},S)=>{var x;const w=WT(({gl:H})=>H),_=WT(({camera:H})=>H),C=WT(({scene:H})=>H),R=WT(({size:H})=>H),k=WT(({raycaster:H})=>H),[P]=Y.useState(()=>document.createElement(g)),N=Y.useRef(null),L=Y.useRef(0),I=Y.useRef([0,0]),b=Y.useRef(null),T=Y.useRef(null),M=(x=l==null?void 0:l.current)!==null&&x!==void 0?x:w.domElement.parentNode;Y.useEffect(()=>{if(N.current){if(C.updateMatrixWorld(),d)P.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const H=m(N.current,_,R);P.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${H[0]}px,${H[1]}px,0);transform-origin:0 0;`}return M&&(a?M.prepend(P):M.appendChild(P)),()=>{M&&M.removeChild(P),Dy.unmountComponentAtNode(P)}}},[M,d]),Y.useLayoutEffect(()=>{v&&(P.className=v)},[v]);const D=Y.useMemo(()=>d?{position:"absolute",top:0,left:0,width:R.width,height:R.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:o?"translate3d(-50%,-50%,0)":"none",...s&&{top:-R.height/2,left:-R.width/2,width:R.width,height:R.height},...n},[n,o,s,R,d]),B=Y.useMemo(()=>({position:"absolute",pointerEvents:A}),[A]);Y.useLayoutEffect(()=>{d?Dy.render(Y.createElement("div",{ref:b,style:D},Y.createElement("div",{ref:T,style:B},Y.createElement("div",{ref:S,className:r,style:n,children:t}))),P):Dy.render(Y.createElement("div",{ref:S,style:D,className:r,children:t}),P)});const j=Y.useRef(!0);return kht(()=>{if(N.current){_.updateMatrixWorld(),N.current.updateWorldMatrix(!0,!1);const H=d?I.current:m(N.current,_,R);if(d||Math.abs(L.current-_.zoom)>e||Math.abs(I.current[0]-H[0])>e||Math.abs(I.current[1]-H[1])>e){const U=Ous(N.current,_);let $=!1;typeof h=="boolean"?h===!0&&($=[C]):Array.isArray(h)&&($=h.map(Z=>Z.current));const z=j.current;if($){const Z=Lus(N.current,_,k,$);j.current=Z&&!U}else j.current=!U;if(z!==j.current&&(f?f(!j.current):P.style.display=j.current?"block":"none"),P.style.zIndex=`${Dus(N.current,_,p)}`,d){const[Z,K]=[R.width/2,R.height/2],Q=_.projectionMatrix.elements[5]*K,{isOrthographicCamera:ee,top:X,left:te,bottom:J,right:ne}=_,ie=$us(_.matrixWorldInverse),he=ee?`scale(${Q})translate(${$Ye(-(ne+te)/2)}px,${$Ye((X+J)/2)}px)`:`translateZ(${Q}px)`;let de=N.current.matrixWorld;u&&(de=_.matrixWorldInverse.clone().transpose().copyPosition(de).scale(N.current.scale),de.elements[3]=de.elements[7]=de.elements[11]=0,de.elements[15]=1),P.style.width=R.width+"px",P.style.height=R.height+"px",P.style.perspective=ee?"":`${Q}px`,b.current&&T.current&&(b.current.style.transform=`${he}${ie}translate(${Z}px,${K}px)`,T.current.style.transform=Fus(de,1/((c||10)/400)))}else{const Z=c===void 0?1:Bus(N.current,_)*c;P.style.transform=`translate3d(${H[0]}px,${H[1]}px,0) scale(${Z})`}I.current=H,L.current=_.zoom}}}),Y.createElement("group",Ce({},y,{ref:N}))});var jus=Object.defineProperty,Hus=(t,e,n)=>e in t?jus(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,so=(t,e,n)=>(Hus(t,typeof e!="symbol"?e+"":e,n),n);const _pe=new MN,wUt=new KS,Uus=Math.cos(70*(Math.PI/180)),_Ut=(t,e)=>(t%e+e)%e;class zus extends RN{constructor(e,n){super(),so(this,"object"),so(this,"domElement"),so(this,"enabled",!0),so(this,"target",new et),so(this,"minDistance",0),so(this,"maxDistance",1/0),so(this,"minZoom",0),so(this,"maxZoom",1/0),so(this,"minPolarAngle",0),so(this,"maxPolarAngle",Math.PI),so(this,"minAzimuthAngle",-1/0),so(this,"maxAzimuthAngle",1/0),so(this,"enableDamping",!1),so(this,"dampingFactor",.05),so(this,"enableZoom",!0),so(this,"zoomSpeed",1),so(this,"enableRotate",!0),so(this,"rotateSpeed",1),so(this,"enablePan",!0),so(this,"panSpeed",1),so(this,"screenSpacePanning",!0),so(this,"keyPanSpeed",7),so(this,"zoomToCursor",!1),so(this,"autoRotate",!1),so(this,"autoRotateSpeed",2),so(this,"reverseOrbit",!1),so(this,"reverseHorizontalOrbit",!1),so(this,"reverseVerticalOrbit",!1),so(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),so(this,"mouseButtons",{LEFT:TR.ROTATE,MIDDLE:TR.DOLLY,RIGHT:TR.PAN}),so(this,"touches",{ONE:CR.ROTATE,TWO:CR.DOLLY_PAN}),so(this,"target0"),so(this,"position0"),so(this,"zoom0"),so(this,"_domElementKeyEvents",null),so(this,"getPolarAngle"),so(this,"getAzimuthalAngle"),so(this,"setPolarAngle"),so(this,"setAzimuthalAngle"),so(this,"getDistance"),so(this,"listenToKeyEvents"),so(this,"stopListenToKeyEvents"),so(this,"saveState"),so(this,"reset"),so(this,"update"),so(this,"connect"),so(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=Oe=>{let Ye=_Ut(Oe,2*Math.PI),mt=d.phi;mt<0&&(mt+=2*Math.PI),Ye<0&&(Ye+=2*Math.PI);let ut=Math.abs(Ye-mt);2*Math.PI-ut<ut&&(Ye<mt?Ye+=2*Math.PI:mt+=2*Math.PI),h.phi=Ye-mt,r.update()},this.setAzimuthalAngle=Oe=>{let Ye=_Ut(Oe,2*Math.PI),mt=d.theta;mt<0&&(mt+=2*Math.PI),Ye<0&&(Ye+=2*Math.PI);let ut=Math.abs(Ye-mt);2*Math.PI-ut<ut&&(Ye<mt?Ye+=2*Math.PI:mt+=2*Math.PI),h.theta=Ye-mt,r.update()},this.getDistance=()=>r.object.position.distanceTo(r.target),this.listenToKeyEvents=Oe=>{Oe.addEventListener("keydown",ue),this._domElementKeyEvents=Oe},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",ue),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),c=l.NONE},this.update=(()=>{const Oe=new et,Ye=new et(0,1,0),mt=new Sp().setFromUnitVectors(e.up,Ye),ut=mt.clone().invert(),lt=new et,pn=new Sp,sn=2*Math.PI;return function(){const ur=r.object.position;mt.setFromUnitVectors(e.up,Ye),ut.copy(mt).invert(),Oe.copy(ur).sub(r.target),Oe.applyQuaternion(mt),d.setFromVector3(Oe),r.autoRotate&&c===l.NONE&&b(L()),r.enableDamping?(d.theta+=h.theta*r.dampingFactor,d.phi+=h.phi*r.dampingFactor):(d.theta+=h.theta,d.phi+=h.phi);let dt=r.minAzimuthAngle,xt=r.maxAzimuthAngle;isFinite(dt)&&isFinite(xt)&&(dt<-Math.PI?dt+=sn:dt>Math.PI&&(dt-=sn),xt<-Math.PI?xt+=sn:xt>Math.PI&&(xt-=sn),dt<=xt?d.theta=Math.max(dt,Math.min(xt,d.theta)):d.theta=d.theta>(dt+xt)/2?Math.max(dt,d.theta):Math.min(xt,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(p,r.dampingFactor):r.target.add(p),r.zoomToCursor&&k||r.object.isOrthographicCamera?d.radius=$(d.radius):d.radius=$(d.radius*f),Oe.setFromSpherical(d),Oe.applyQuaternion(ut),ur.copy(r.target).add(Oe),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(h.theta*=1-r.dampingFactor,h.phi*=1-r.dampingFactor,p.multiplyScalar(1-r.dampingFactor)):(h.set(0,0,0),p.set(0,0,0));let Cn=!1;if(r.zoomToCursor&&k){let Kt=null;if(r.object instanceof Xu&&r.object.isPerspectiveCamera){const rn=Oe.length();Kt=$(rn*f);const On=rn-Kt;r.object.position.addScaledVector(C,On),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const rn=new et(R.x,R.y,0);rn.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/f)),r.object.updateProjectionMatrix(),Cn=!0;const On=new et(R.x,R.y,0);On.unproject(r.object),r.object.position.sub(On).add(rn),r.object.updateMatrixWorld(),Kt=Oe.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;Kt!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar(Kt).add(r.object.position):(_pe.origin.copy(r.object.position),_pe.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(_pe.direction))<Uus?e.lookAt(r.target):(wUt.setFromNormalAndCoplanarPoint(r.object.up,r.target),_pe.intersectPlane(wUt,r.target))))}else r.object instanceof Cx&&r.object.isOrthographicCamera&&(Cn=f!==1,Cn&&(r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/f)),r.object.updateProjectionMatrix()));return f=1,k=!1,Cn||lt.distanceToSquared(r.object.position)>u||8*(1-pn.dot(r.object.quaternion))>u?(r.dispatchEvent(a),lt.copy(r.object.position),pn.copy(r.object.quaternion),Cn=!1,!0):!1}})(),this.connect=Oe=>{Oe===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=Oe,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",ge),r.domElement.addEventListener("pointerdown",ye),r.domElement.addEventListener("pointercancel",le),r.domElement.addEventListener("wheel",_e)},this.dispose=()=>{var Oe,Ye,mt,ut,lt,pn;r.domElement&&(r.domElement.style.touchAction="auto"),(Oe=r.domElement)==null||Oe.removeEventListener("contextmenu",ge),(Ye=r.domElement)==null||Ye.removeEventListener("pointerdown",ye),(mt=r.domElement)==null||mt.removeEventListener("pointercancel",le),(ut=r.domElement)==null||ut.removeEventListener("wheel",_e),(lt=r.domElement)==null||lt.ownerDocument.removeEventListener("pointermove",me),(pn=r.domElement)==null||pn.ownerDocument.removeEventListener("pointerup",le),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",ue)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},l={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let c=l.NONE;const u=1e-6,d=new OYe,h=new OYe;let f=1;const p=new et,m=new Qn,g=new Qn,v=new Qn,A=new Qn,y=new Qn,S=new Qn,x=new Qn,w=new Qn,_=new Qn,C=new et,R=new Qn;let k=!1;const P=[],N={};function L(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function b(Oe){r.reverseOrbit||r.reverseHorizontalOrbit?h.theta+=Oe:h.theta-=Oe}function T(Oe){r.reverseOrbit||r.reverseVerticalOrbit?h.phi+=Oe:h.phi-=Oe}const M=(()=>{const Oe=new et;return function(mt,ut){Oe.setFromMatrixColumn(ut,0),Oe.multiplyScalar(-mt),p.add(Oe)}})(),D=(()=>{const Oe=new et;return function(mt,ut){r.screenSpacePanning===!0?Oe.setFromMatrixColumn(ut,1):(Oe.setFromMatrixColumn(ut,0),Oe.crossVectors(r.object.up,Oe)),Oe.multiplyScalar(mt),p.add(Oe)}})(),B=(()=>{const Oe=new et;return function(mt,ut){const lt=r.domElement;if(lt&&r.object instanceof Xu&&r.object.isPerspectiveCamera){const pn=r.object.position;Oe.copy(pn).sub(r.target);let sn=Oe.length();sn*=Math.tan(r.object.fov/2*Math.PI/180),M(2*mt*sn/lt.clientHeight,r.object.matrix),D(2*ut*sn/lt.clientHeight,r.object.matrix)}else lt&&r.object instanceof Cx&&r.object.isOrthographicCamera?(M(mt*(r.object.right-r.object.left)/r.object.zoom/lt.clientWidth,r.object.matrix),D(ut*(r.object.top-r.object.bottom)/r.object.zoom/lt.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function j(Oe){r.object instanceof Xu&&r.object.isPerspectiveCamera||r.object instanceof Cx&&r.object.isOrthographicCamera?f/=Oe:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function H(Oe){r.object instanceof Xu&&r.object.isPerspectiveCamera||r.object instanceof Cx&&r.object.isOrthographicCamera?f*=Oe:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function U(Oe){if(!r.zoomToCursor||!r.domElement)return;k=!0;const Ye=r.domElement.getBoundingClientRect(),mt=Oe.clientX-Ye.left,ut=Oe.clientY-Ye.top,lt=Ye.width,pn=Ye.height;R.x=mt/lt*2-1,R.y=-(ut/pn)*2+1,C.set(R.x,R.y,1).unproject(r.object).sub(r.object.position).normalize()}function $(Oe){return Math.max(r.minDistance,Math.min(r.maxDistance,Oe))}function z(Oe){m.set(Oe.clientX,Oe.clientY)}function Z(Oe){U(Oe),x.set(Oe.clientX,Oe.clientY)}function K(Oe){A.set(Oe.clientX,Oe.clientY)}function Q(Oe){g.set(Oe.clientX,Oe.clientY),v.subVectors(g,m).multiplyScalar(r.rotateSpeed);const Ye=r.domElement;Ye&&(b(2*Math.PI*v.x/Ye.clientHeight),T(2*Math.PI*v.y/Ye.clientHeight)),m.copy(g),r.update()}function ee(Oe){w.set(Oe.clientX,Oe.clientY),_.subVectors(w,x),_.y>0?j(I()):_.y<0&&H(I()),x.copy(w),r.update()}function X(Oe){y.set(Oe.clientX,Oe.clientY),S.subVectors(y,A).multiplyScalar(r.panSpeed),B(S.x,S.y),A.copy(y),r.update()}function te(Oe){U(Oe),Oe.deltaY<0?H(I()):Oe.deltaY>0&&j(I()),r.update()}function J(Oe){let Ye=!1;switch(Oe.code){case r.keys.UP:B(0,r.keyPanSpeed),Ye=!0;break;case r.keys.BOTTOM:B(0,-r.keyPanSpeed),Ye=!0;break;case r.keys.LEFT:B(r.keyPanSpeed,0),Ye=!0;break;case r.keys.RIGHT:B(-r.keyPanSpeed,0),Ye=!0;break}Ye&&(Oe.preventDefault(),r.update())}function ne(){if(P.length==1)m.set(P[0].pageX,P[0].pageY);else{const Oe=.5*(P[0].pageX+P[1].pageX),Ye=.5*(P[0].pageY+P[1].pageY);m.set(Oe,Ye)}}function ie(){if(P.length==1)A.set(P[0].pageX,P[0].pageY);else{const Oe=.5*(P[0].pageX+P[1].pageX),Ye=.5*(P[0].pageY+P[1].pageY);A.set(Oe,Ye)}}function he(){const Oe=P[0].pageX-P[1].pageX,Ye=P[0].pageY-P[1].pageY,mt=Math.sqrt(Oe*Oe+Ye*Ye);x.set(0,mt)}function de(){r.enableZoom&&he(),r.enablePan&&ie()}function ce(){r.enableZoom&&he(),r.enableRotate&&ne()}function Ee(Oe){if(P.length==1)g.set(Oe.pageX,Oe.pageY);else{const mt=Xe(Oe),ut=.5*(Oe.pageX+mt.x),lt=.5*(Oe.pageY+mt.y);g.set(ut,lt)}v.subVectors(g,m).multiplyScalar(r.rotateSpeed);const Ye=r.domElement;Ye&&(b(2*Math.PI*v.x/Ye.clientHeight),T(2*Math.PI*v.y/Ye.clientHeight)),m.copy(g)}function Me(Oe){if(P.length==1)y.set(Oe.pageX,Oe.pageY);else{const Ye=Xe(Oe),mt=.5*(Oe.pageX+Ye.x),ut=.5*(Oe.pageY+Ye.y);y.set(mt,ut)}S.subVectors(y,A).multiplyScalar(r.panSpeed),B(S.x,S.y),A.copy(y)}function Be(Oe){const Ye=Xe(Oe),mt=Oe.pageX-Ye.x,ut=Oe.pageY-Ye.y,lt=Math.sqrt(mt*mt+ut*ut);w.set(0,lt),_.set(0,Math.pow(w.y/x.y,r.zoomSpeed)),j(_.y),x.copy(w)}function ze(Oe){r.enableZoom&&Be(Oe),r.enablePan&&Me(Oe)}function je(Oe){r.enableZoom&&Be(Oe),r.enableRotate&&Ee(Oe)}function ye(Oe){var Ye,mt;r.enabled!==!1&&(P.length===0&&((Ye=r.domElement)==null||Ye.ownerDocument.addEventListener("pointermove",me),(mt=r.domElement)==null||mt.ownerDocument.addEventListener("pointerup",le)),De(Oe),Oe.pointerType==="touch"?se(Oe):pe(Oe))}function me(Oe){r.enabled!==!1&&(Oe.pointerType==="touch"?oe(Oe):Ne(Oe))}function le(Oe){var Ye,mt,ut;Fe(Oe),P.length===0&&((Ye=r.domElement)==null||Ye.releasePointerCapture(Oe.pointerId),(mt=r.domElement)==null||mt.ownerDocument.removeEventListener("pointermove",me),(ut=r.domElement)==null||ut.ownerDocument.removeEventListener("pointerup",le)),r.dispatchEvent(s),c=l.NONE}function pe(Oe){let Ye;switch(Oe.button){case 0:Ye=r.mouseButtons.LEFT;break;case 1:Ye=r.mouseButtons.MIDDLE;break;case 2:Ye=r.mouseButtons.RIGHT;break;default:Ye=-1}switch(Ye){case TR.DOLLY:if(r.enableZoom===!1)return;Z(Oe),c=l.DOLLY;break;case TR.ROTATE:if(Oe.ctrlKey||Oe.metaKey||Oe.shiftKey){if(r.enablePan===!1)return;K(Oe),c=l.PAN}else{if(r.enableRotate===!1)return;z(Oe),c=l.ROTATE}break;case TR.PAN:if(Oe.ctrlKey||Oe.metaKey||Oe.shiftKey){if(r.enableRotate===!1)return;z(Oe),c=l.ROTATE}else{if(r.enablePan===!1)return;K(Oe),c=l.PAN}break;default:c=l.NONE}c!==l.NONE&&r.dispatchEvent(o)}function Ne(Oe){if(r.enabled!==!1)switch(c){case l.ROTATE:if(r.enableRotate===!1)return;Q(Oe);break;case l.DOLLY:if(r.enableZoom===!1)return;ee(Oe);break;case l.PAN:if(r.enablePan===!1)return;X(Oe);break}}function _e(Oe){r.enabled===!1||r.enableZoom===!1||c!==l.NONE&&c!==l.ROTATE||(Oe.preventDefault(),r.dispatchEvent(o),te(Oe),r.dispatchEvent(s))}function ue(Oe){r.enabled===!1||r.enablePan===!1||J(Oe)}function se(Oe){switch(Se(Oe),P.length){case 1:switch(r.touches.ONE){case CR.ROTATE:if(r.enableRotate===!1)return;ne(),c=l.TOUCH_ROTATE;break;case CR.PAN:if(r.enablePan===!1)return;ie(),c=l.TOUCH_PAN;break;default:c=l.NONE}break;case 2:switch(r.touches.TWO){case CR.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;de(),c=l.TOUCH_DOLLY_PAN;break;case CR.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;ce(),c=l.TOUCH_DOLLY_ROTATE;break;default:c=l.NONE}break;default:c=l.NONE}c!==l.NONE&&r.dispatchEvent(o)}function oe(Oe){switch(Se(Oe),c){case l.TOUCH_ROTATE:if(r.enableRotate===!1)return;Ee(Oe),r.update();break;case l.TOUCH_PAN:if(r.enablePan===!1)return;Me(Oe),r.update();break;case l.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;ze(Oe),r.update();break;case l.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;je(Oe),r.update();break;default:c=l.NONE}}function ge(Oe){r.enabled!==!1&&Oe.preventDefault()}function De(Oe){P.push(Oe)}function Fe(Oe){delete N[Oe.pointerId];for(let Ye=0;Ye<P.length;Ye++)if(P[Ye].pointerId==Oe.pointerId){P.splice(Ye,1);return}}function Se(Oe){let Ye=N[Oe.pointerId];Ye===void 0&&(Ye=new Qn,N[Oe.pointerId]=Ye),Ye.set(Oe.pageX,Oe.pageY)}function Xe(Oe){const Ye=Oe.pointerId===P[0].pointerId?P[1]:P[0];return N[Ye.pointerId]}n!==void 0&&this.connect(n),this.update()}}let Gus=class extends zus{constructor(e,n){super(e,n),this.screenSpacePanning=!1,this.mouseButtons.LEFT=TR.PAN,this.mouseButtons.RIGHT=TR.ROTATE,this.touches.ONE=CR.PAN,this.touches.TWO=CR.DOLLY_ROTATE}};function TUt({stops:t,colors:e,size:n=1024,...r}){const a=WT(s=>s.gl),o=Y.useMemo(()=>{const s=document.createElement("canvas"),l=s.getContext("2d");s.width=16,s.height=n;const c=l.createLinearGradient(0,0,0,n);let u=t.length;for(;u--;)c.addColorStop(t[u],e[u]);l.fillStyle=c,l.fillRect(0,0,16,n);const d=new Ah(s);return d.needsUpdate=!0,d},[t]);return Y.useEffect(()=>()=>void o.dispose(),[o]),Y.createElement("primitive",Ce({object:o,attach:"map",encoding:a.outputEncoding},r))}function Vus({userData:t,children:e,geometry:n,threshold:r=15,color:a="black",...o}){const s=Y.useRef(null);return Y.useLayoutEffect(()=>{const l=s.current.parent;if(l){const c=n||l.geometry;(c!==s.current.userData.currentGeom||r!==s.current.userData.currentThreshold)&&(s.current.userData.currentGeom=c,s.current.userData.currentThreshold=r,s.current.geometry=new vke(c,r))}}),Y.createElement("lineSegments",Ce({ref:s,raycast:()=>null},o),e||Y.createElement("lineBasicMaterial",{color:a}))}const Kus=Y.forwardRef((t={enableDamping:!0},e)=>{const{camera:n,onChange:r,onStart:a,onEnd:o,...s}=t,l=WT(({invalidate:f})=>f),c=WT(({camera:f})=>f),u=WT(({gl:f})=>f.domElement),d=n||c,h=Y.useMemo(()=>new Gus(d),[d]);return Y.useEffect(()=>{h.connect(u);const f=p=>{l(),r&&r(p)};return h.addEventListener("change",f),a&&h.addEventListener("start",a),o&&h.addEventListener("end",o),()=>{h.dispose(),h.removeEventListener("change",f),a&&h.removeEventListener("start",a),o&&h.removeEventListener("end",o)}},[r,a,o,h,l,u]),kht(()=>h.update()),Y.createElement("primitive",Ce({ref:e,dispose:void 0,object:h,enableDamping:!0},s))});var Mht={},Wus=As;Object.defineProperty(Mht,"__esModule",{value:!0});var Nht=Mht.default=void 0,Qus=Wus(Ps()),qus=E;Nht=Mht.default=(0,Qus.default)((0,qus.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");var Iht={},Yus=As;Object.defineProperty(Iht,"__esModule",{value:!0});var Pht=Iht.default=void 0,Jus=Yus(Ps()),Zus=E;Pht=Iht.default=(0,Jus.default)((0,Zus.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");const Xus="/assets/divider-blur-906116d8.svg",eds="/assets/divider-sharp-3987ab7b.svg",tds=gt.div`
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  width: 120px;
  height: 120px;
  padding: 5px;
  &.noData {
    cursor: default;
    .tableCount.centered {
      align-self: center;
    }
  }
  // below css is temporary,  will removed later
  &.comingSoonBoxWithTables {
    .tableCount.centered {
      align-self: center;
    }
  }
  > div {
    font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
    color: ${t=>t.theme.custom.white.A11};
    border-radius: 4px;
    font-size: ${t=>t.theme.custom.fontSize.font10};
  }
  .tableCount {
    padding: 4px;
    background: none;
    border: 1px solid ${t=>t.theme.custom.erdTable.greyLight};
    display: flex;
    align-items: center;
    gap: 4px;
    .loadingSpinner {
      width: 14px;
      height: 14px;
      border-width: 2px;
    }
    .commingSoon {
      padding-left: 2px;
    }
  }
  .tableCount span {
    line-height: 1;
  }
  .tableCount span svg {
    height: 8px;
    width: 8px;
  }
  .logoIcon {
    max-width: 40%;
    margin: 10px auto 0;
  }
  .dbName {
    font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
    padding-top: 6px;
    margin: 0 auto;
    margin-top: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
`,nds=gt.div`
  color: ${t=>t.theme.custom.white.A1};
  font-weight: ${t=>t.theme.custom.fontWeight.md};
  font-size: ${t=>t.theme.custom.fontSize.font8};
  width: 115px;
  .tableHead {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 3px 0 5px;
    margin: 0 4px;
    background: none;
    margin-bottom: 5px;
    position: relative;
    &:before {
      content: '';
      position: absolute;
      bottom: 0;
      background-repeat: no-repeat;
      left: 0;
      width: 100%;
      height: 2px;
      background-image: url(${Xus});
    }
    &:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      background-repeat: no-repeat;
      width: 45%;
      background-position: right top;
      height: 11px;
      background-image: url(${eds});
    }
  }
  .tableHead img {
    max-width: 13px;
    margin-right: 3px;
  }
  .tableHead .dbName {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: ${t=>t.theme.typography.fontFamily};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    color: ${t=>t.theme.custom.white.A11};
  }
  .tableBody {
    height: 90px;
    overflow: auto;
    margin: 0 4px;
  }
  /* Scrollbar */
  .tableBody::-webkit-scrollbar {
    width: 2px;
    height: 2px;
  }
  .tableBody::-webkit-scrollbar-track {
    background: ${t=>t.theme.custom.white.A3};
  }
  .tableBody::-webkit-scrollbar-thumb {
    background: ${t=>t.theme.custom.white.A2};
  }
  /* Scrollbar end */

  .listItem {
    display: flex;
    cursor: pointer;
    align-items: center;
    padding: 0;
    border-radius: 4px;
    &:hover {
      background: ${t=>t.theme.custom.white.A6};
    }
  }
  .listItem + .listItem {
    margin-top: 3px;
  }
  .listItem span.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
  }
  .listItem span.icon svg {
    height: 12px;
    width: 12px;
  }
  .listItem span.name {
    flex: 0 0 calc(100% - 16px);
    max-width: calc(100% - 16px);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
    font-family: ${t=>t.theme.typography.fontFamily};
    font-weight: ${t=>t.theme.custom.fontWeight.lt};
    color: ${t=>t.theme.custom.white.A11};
  }
`,Qtr={AVALANCHE_C:_dt,BNB:wdt,POLYGON:Tdt,ETHEREUM:eie,SUI:Cdt,BASE:Rdt,GOERLI:sM,MUMBAI:Mdt,"SUI (testnet)":Ndt,HOLESKY:sM,SEPOLIA:sM,SEI:qCe,BITCOIN:QCe,ZKSYNCERA:YCe,APTOS:kdt,ETHEREUM_BEACON:eie},Tpe={ETHEREUM:"74 143 255",POLYGON:"112  73  255",GOERLI:"74 119 192",SEPOLIA:"74 119 192",MUMBAI:"99 55 248",SUI:"0 255 255",AVALANCHE_C:"217 54 54",BNB:"243  186  44",BASE:"0 82 255","SUI (testnet)":"0 147 147",SEI:"157 31 25",BITCOIN:"247 147 26",ZKSYNCERA:"30 105 255",APTOS:"46 216 167",ETHEREUM_BEACON:"74 143 255"},rds={ETHEREUM:"#6495ed",POLYGON:"#9370db",GOERLI:"#4198de",SEPOLIA:"#4198de",MUMBAI:"#535bc4",SUI:"#add8e6",AVALANCHE_C:"#ff6000",BNB:"#ffff00",BASE:"#0052FF","SUI (testnet)":"#add8e6",SEI:"#9d1f19",BITCOIN:"#f7931a",ZKSYNCERA:"#1e69ff",APTOS:"#2ed8a7",ETHEREUM_BEACON:"#6495ed"},_0=["BNB"];function ids(){const[t,e]=Y.useState(100);function n(){e((window.outerWidth-10)/window.innerWidth*100)}return Y.useLayoutEffect(()=>(window.addEventListener("resize",n,!1),n(),()=>window.removeEventListener("resize",n)),[]),t}const ads=({schema:t,onClick:e,setOnMouseEnter:n})=>{var d,h;const r=Uit(),a=((d=t==null?void 0:t.tables)==null?void 0:d.length)===0||(_0==null?void 0:_0.includes(t==null?void 0:t.schema)),{publicSchemasAndTablesLoading:o}=Foe(),{comingSoon:s,name:l}=r[t==null?void 0:t.schema],c=s,u=c&&!a;return E.jsxs(tds,{theme:qt,onClick:()=>{var f;return a||_0!=null&&_0.includes(t==null?void 0:t.schema)?null:((f=t==null?void 0:t.tables)==null?void 0:f.length)&&e()},onMouseEnter:()=>n(!a),onMouseLeave:()=>n(!1),className:`${a?"noData":""} ${u&&"comingSoonBoxWithTables"}`,children:[E.jsxs("div",{className:c&&a||u?"tableCount centered":"tableCount",children:[(!c||c&&!a)&&!u&&E.jsx("span",{children:E.jsx(Tan,{})}),c&&a||u?E.jsx("div",{className:"commingSoon",children:q.COMING_SOON}):E.jsxs(E.Fragment,{children:[(h=t==null?void 0:t.tables)==null?void 0:h.length," ",o&&E.jsx(tC,{theme:qt,className:"loadingSpinner"})]})]}),E.jsx("img",{src:Qtr[t==null?void 0:t.schema]||kz,className:"logoIcon",alt:""}),E.jsx("div",{className:"dbName",children:l})]})},CUt=t=>E.jsx(Wtr,{transform:!0,occlude:!0,children:E.jsx(ads,{...t})}),kUt=t=>{var l;const{schema:e,onClick:n,setOnMouseEnter:r}=t,{schemaSubGroups:a}=e||[],o=Uit(),{name:s}=o[e==null?void 0:e.schema];return E.jsx(Wtr,{transform:!0,occlude:!0,children:E.jsxs(nds,{theme:qt,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[E.jsxs("div",{className:"tableHead",role:"button","aria-hidden":"true",onClick:()=>{var c;return!(_0!=null&&_0.includes(e==null?void 0:e.schema))&&((c=e==null?void 0:e.tables)==null?void 0:c.length)&&n()},children:[E.jsx("div",{className:"logoIcon",children:E.jsx("img",{src:Qtr[e==null?void 0:e.schema]||kz,alt:""})}),E.jsx("div",{className:"dbName",children:s})]}),E.jsx("div",{className:"tableBody",children:(l=Object.keys(a||{}))==null?void 0:l.map(c=>E.jsxs("div",{className:"listItem",role:"button","aria-hidden":"true",onClick:()=>{var u;return!(_0!=null&&_0.includes(e==null?void 0:e.schema))&&((u=e==null?void 0:e.tables)==null?void 0:u.length)&&n(c)},children:[E.jsx("span",{className:"icon",children:E.jsx(rmi,{})}),E.jsx("span",{className:"name",children:c})]},c))})]})})},ods=({isPreview:t=!1,showTable:e,schema:n,onClick:r,setOnMouseEnter:a})=>{var o,s;return t?((o=n==null?void 0:n.tables)==null?void 0:o.length)>0&&!Ft.isEmpty(n==null?void 0:n.schemaSubGroups)?E.jsx(kUt,{schema:n,onClick:r,setOnMouseEnter:a}):E.jsx(CUt,{schema:n,onClick:r,setOnMouseEnter:a}):e&&((s=n==null?void 0:n.tables)==null?void 0:s.length)>0&&!Ft.isEmpty(n==null?void 0:n.schemaSubGroups)?E.jsx(kUt,{schema:n,onClick:r,setOnMouseEnter:a}):E.jsx(CUt,{schema:n,onClick:r,setOnMouseEnter:a})},sds=t=>{const{gradient:e,schema:n,handleMove:r,position:a,isPreview:o,maxGridSize:s,showOnchainData:l,xMover:c,yMover:u,is2D:d=!0,isEven:h=!1,onClick:f}=t,p=ids(),m=0;let g=0;const v=1.01,A=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),y=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);A&&(p>32&&p<34&&(g=-.5),p>65&&p<67&&(g=.3),p>78&&p<81&&(g=.3)),y&&(p>83&&p<85&&(g=.05),p>113&&p<115&&(g=.4),p>123&&p<125&&(g=.4));const[S=0,x=0,w=0]=a,_=-1,C=-15,{isBlockchain:R=!1}=n;let k=!1;R&&l&&(k=!0),!R&&l&&(k=!1),!R&&!l&&(k=!0);const P=Y.useRef(null),N=WT(B=>B.get),[L,I]=Y.useState(!1),[b,T]=Y.useState(!1),[M,D]=Y.useState(!1);return Y.useEffect(()=>{P.current.mover=100,P.current.zMover=15,k||P.current.children.forEach(B=>{const j={...B};j.material.opacity=0})},[]),kht(()=>{var H;k&&P.current.mover<100&&(P.current.position.x+=c,P.current.position.y-=u,P.current.position.z+=1.5,P.current.mover+=1),!k&&P.current.mover>0&&(P.current.position.x-=c,P.current.position.y+=u,P.current.position.z-=1.5,P.current.mover-=1),h&&d&&P.current.zMover<15&&(P.current.position.z+=1,P.current.zMover+=1),h&&!d&&P.current.zMover>0&&(P.current.position.z-=1,P.current.zMover-=1),P.current.children.forEach(U=>{let{opacity:$}=U.material;const z={...U};k&&$<1&&($+=.01),!k&&$>0&&($-=.01),z.material.opacity=$});const{camera:B}=N();P.current.position.x+=r.x,P.current.position.y+=r.y,l?(r==null?void 0:r.z)<0?B.position.z<50&&B.position.setZ(B.position.z-r.z):B.position.z>0&&(r==null?void 0:r.z)>0&&B.position.z>10&&B.position.setZ(B.position.z-r.z):(r==null?void 0:r.z)<0?B.position.z+_<s&&B.position.setZ(B.position.z-r.z):B.position.z>0&&(r==null?void 0:r.z)>0&&B.position.z+C>-10&&B.position.setZ(B.position.z-r.z);const j=_1a(B.position,((H=P==null?void 0:P.current)==null?void 0:H.position)||{});I(j<25),P.current.position.z===w&&(P.current.position.z-=1)}),E.jsxs(E.Fragment,{children:[" ",b||M&&E.jsx("spotLight",{color:"#fff",intensity:5,position:[S,10+x,w-5],castShadow:!0,"shadow-mapSize-height":512,"shadow-mapSize-width":512}),E.jsxs("group",{ref:P,...t,onPointerOver:()=>T(!0),onPointerOut:()=>T(!1),onClick:()=>{var B;return!(_0!=null&&_0.includes(n==null?void 0:n.schema))&&((B=n==null?void 0:n.tables)==null?void 0:B.length)&&f()},children:[E.jsxs("mesh",{scale:2,castShadow:!0,children:[E.jsx("boxGeometry",{}),E.jsx("meshBasicMaterial",{transparent:!0,children:E.jsx(TUt,{stops:[0,1],colors:[`rgb(${Tpe[n==null?void 0:n.schema]||e} / 45%)`,`rgb(${Tpe[n==null?void 0:n.schema]||e} / 15%)`]})}),b||M&&E.jsx(Vus,{color:rds[n==null?void 0:n.schema]||"white"}),E.jsxs("mesh",{position:[0,0,0],scale:.6,children:[E.jsx("boxGeometry",{}),E.jsx("meshStandardMaterial",{metalness:.8,roughness:0,transparent:!0,opacity:k?1:0,children:E.jsx(TUt,{stops:[0,1],colors:[`rgb(${Tpe[n==null?void 0:n.schema]||e} / 70%)`,`rgb(${Tpe[n==null?void 0:n.schema]||e} / 15%)`]})})]})]}),k&&E.jsx("mesh",{position:[m,g,v],scale:.65,onPointerOver:()=>T(!0),onPointerOut:()=>T(!1),children:E.jsx(ods,{...t,setOnMouseEnter:D,showTable:L,isPreview:o})})]})]})},lds=[{title:"INSERT with REST APIs",description:"Use our comprehensive REST APIs for DML/DDL",link:"https://docs.spaceandtime.io/reference/about-rest-apis"},{title:"INSERT with JDBC",description:"Use JDBC to insert rows or batch insert (DDL or DML)",link:"https://docs.spaceandtime.io/docs/jdbc-driver"},{title:"INSERT with Query Editor",description:"Write OpenAI prompts in the query editor for DDL/DML",link:""},{title:"STREAM with Kafka",description:"Kafka is built in - stream high volumes of real time data",link:"https://docs.spaceandtime.io/docs/streaming#apache-kafka"},{title:"CSV or S3 / Azure blob",description:"Coming soon - load your own flat files, parquet, or CSVs",link:"https://docs.spaceandtime.io/docs/enterprises"}],cds=`-- CREATE TABLE STATEMENT
-- For more information on access_type of table, 
-- please check this link - https://docs.spaceandtime.io/docs/secure-your-table 
`,uds="CREATE TABLE ETH_TEST.TRANSACTION (TRANSACTION_HASH VARCHAR NOT NULL,",dds="BLOCK_NUMBER BIGINT NOT NULL,TIME_STAMP TIMESTAMP,TRANSACTION_FEE DECIMAL(90, 0),",hds="FROM_ADDRESS VARCHAR,TO_ADDRESS VARCHAR,VALUE DECIMAL(90, 0),",fds="GAS DECIMAL(90, 0),RECEIPT_CUMULATIVE_GAS_USED INT,RECEIPT_STATUS INT)",pds=' with "immutable=false,access_type=permissioned"',mds=Ywe.format(cds+uds+dds+hds+fds+pds,{language:"transactsql",keywordCase:"upper"}),gds={savedQueryData:{},savedQueries:[],queryHistoryData:{},queryHistories:{},loading:!1,queryHistoryError:void 0,saveQueryError:void 0,exploreQueryData:{},exploreQueries:[],exploreQueryError:void 0,queryEditorQuery:"",queryLoadAborted:!1,userSetQueryVisibility:"",myLikedQueries:{likedQueries:[],haveFetched:!1}},y1=yE(()=>({...gds}));function vds(){return y1(t=>t.savedQueryData)}function Ads(){return y1(t=>t.savedQueries||[])}function Fvs(){return y1(t=>t.exploreQueryData)}function jvs(){return y1(t=>t.exploreQueries||[])}function Hvs(){return y1(t=>t.queryHistoryData)}function Uvs(){return y1(t=>t.queryHistoryData||[])}function yds(){return y1(t=>t.saveQueryError)}function zvs(){return y1(t=>t.exploreQueryError)}function Gvs(){return y1(t=>t.queryHistoryError)}function qtr(){return y1(t=>t.loading)}function bds(){return y1(t=>t.queryEditorQuery)}function Vvs(){return y1(t=>t.queryLoadAborted)}function Kvs(){return y1(t=>t.userSetQueryVisibility)}const{setState:fp}=y1,RUt=Yc.setState,MUt=async({params:t,isLoggedIn:e=!1,abortController:n})=>{fp({loading:!0,saveQueryError:void 0,queryLoadAborted:!1});try{const{data:r,error:a}=await Bn.getSavedQueries(t,e,n);r&&fp({savedQueryData:r,savedQueries:r.content}),a&&fp({saveQueryError:a})}catch(r){fp({saveQueryError:(r==null?void 0:r.message)||""})}finally{fp({loading:!1})}},Wvs=async({params:t,isLoggedIn:e=!1,abortController:n})=>{fp({loading:!0,exploreQueryError:void 0,queryLoadAborted:!1});try{const{data:r,error:a}=await Bn.getAllQueries({params:t,isLoggedIn:e,abortController:n}),o=await Bn.getAllQueriesByMyLikes(e);if(r){const s=o.data;r==null||r.content.forEach(l=>{l.liked=s.indexOf(l.id)>-1}),fp({exploreQueryData:r,exploreQueries:r.content})}a&&fp({exploreQueryError:a})}catch(r){fp({exploreQueryError:(r==null?void 0:r.message)||""})}finally{fp({loading:!1})}},xds=async({params:t,abortController:e,isRecent:n})=>{fp({loading:!0,queryHistoryError:void 0,queryLoadAborted:!1});try{const{data:r,error:a}=await Bn.getQueryHistory({params:t,abortController:e,isRecent:n});r&&fp({queryHistoryData:r}),a&&fp({queryHistoryError:a})}catch(r){fp({queryHistoryError:(r==null?void 0:r.message)||""})}finally{fp({loading:!1})}},Qvs=t=>{fp({queryHistoryError:void 0,queryHistoryData:{},queryHistories:{}}),t&&xds(t)},qvs=async(t,e,n)=>{try{RUt({confirmDialogLoading:!0});const{status:r}=await Bn.deleteQuery(t);r===204&&(_a.queryDelete({query_id:t,timestamp:Date.now(),query_name:n}),zi(q.QUERY_DELETED_SUCCESS),e())}catch(r){Kn((r==null?void 0:r.message)||"")}finally{RUt({confirmDialogLoading:!1})}},Yvs=async(t,e,n,r,a)=>{try{const o=d=>r===sr.public?{slug:d,visibility:r}:{visibility:r},s=Co.stringify(o(n)),{status:l,error:c,apiAlert:u}=await Bn.publishQuery(t,s);if(l===204)_a.queryPublish({query_id:t,timestamp:Date.now(),query_name:e}),zi(q.QUERY_PUBLISH_SUCCESS),a&&a(r);else return c&&Kn(c,u),q.RESPONSE_ERROR_STATUS;return q.RESPONSE_SUCCESS_STATUS}catch(o){return Kn(o==null?void 0:o.message),q.RESPONSE_ERROR_STATUS}},Ytr=t=>{fp({queryEditorQuery:t})},Jvs=t=>{fp({queryLoadAborted:t})},Zvs=t=>{fp({userSetQueryVisibility:t})};function Eds({buttons:t,isPreview:e=!1,gridSize:n=0}){const[r,a]=Y.useState({x:0,y:0,z:0}),[o,s]=Y.useState(!0),[l,c]=Y.useState(!1),{height:u}=Is(),d=xo(),h=ho(),f=bE(),{settings:p,userId:m}=f||{},g=kM(p),{showDatasetInfo:v=!1}=g,[A,y]=Y.useState(v||!1),S=-15,x=n*(n+3)<30?30:n*(n+3);Y.useEffect(()=>{o||s(!0)},[o]);const w=u%2===0?u:u-1,_=R=>{R.link?window.open(R.link,"_blank"):(c(!1),Ytr(mds),d.push(tr.newQuery()))},C=()=>{const R={...g,showDatasetInfo:!1},k={...f,settings:JSON.stringify(R)};AO(m,k)};return E.jsxs(xts,{children:[E.jsxs("div",{className:"datasetInfoBlock",children:[E.jsx(Jt,{variant:"contained",color:"primary",className:"infoBtn",onClick:()=>y(!A),children:E.jsx(Fmi,{})}),A&&E.jsxs("div",{className:"infoContent",children:[E.jsx(_n,{className:"closeBtn",onClick:()=>{v&&C(),y(!1)},children:E.jsx(Wl,{})}),E.jsx("p",{children:q.DATASET_INFO_TOOLTIP_MSG_1}),E.jsxs("p",{children:[q.DATASET_INFO_TOOLTIP_MSG_2," ",E.jsx("a",{href:JYt.BLOCKCHAIN_INDEXING,target:"_blank",rel:"noreferrer",children:q.OPEN_DOCS})]})]})]}),E.jsx(wts,{children:E.jsx("div",{className:"helpText",children:q.TOUCH_TO_INTERACT})}),o&&E.jsxs(_us,{style:{backgroundColor:"transparent",width:"100%",height:`${w}px`},camera:{position:[0,0,e?35:30],zoom:5,up:[0,1,1],far:1e4},children:[E.jsx("ambientLight",{intensity:.6,position:[0,0,0]}),E.jsx(Y.Suspense,{fallback:null,children:t==null?void 0:t.map((R,k)=>{const{key:P}=R;return Y.createElement(sds,{...R,key:`${P}${k+k}`,handleMove:r,isPreview:e,showOnchainData:!0,maxGridSize:x,is2D:!0})})}),E.jsx(Kus,{panSpeed:.1,minDistance:S+5,maxDistance:e?40:30})]}),E.jsxs(_ts,{children:[E.jsx("button",{"aria-label":"Add",type:"button",onPointerDown:()=>{a(R=>({...R,z:.09}))},onMouseDown:()=>{a(R=>({...R,z:.09}))},onPointerUp:()=>{a(R=>({...R,z:0}))},onMouseUp:()=>{a(R=>({...R,z:0}))},children:E.jsx(dya,{})}),E.jsx("button",{"aria-label":"Remove",type:"button",onPointerDown:()=>{a(R=>({...R,z:-.09}))},onMouseDown:()=>{a(R=>({...R,z:-.09}))},onPointerUp:()=>{a(R=>({...R,z:0}))},onMouseUp:()=>{a(R=>({...R,z:0}))},children:E.jsx(bya,{})})]}),E.jsxs(Tts,{className:"cubeDirectionHandler",children:[E.jsx("div",{className:"topRow",children:E.jsx("button",{"aria-label":"Expand Less",type:"button",onPointerDown:()=>{a(R=>({...R,y:-.09}))},onMouseDown:()=>{a(R=>({...R,y:-.09}))},onPointerUp:()=>{a(R=>({...R,y:0}))},onMouseUp:()=>{a(R=>({...R,y:0}))},children:E.jsx(pya,{})})}),E.jsxs("div",{className:"MiddleRow",children:[E.jsx("button",{"aria-label":"Left",type:"button",onMouseDown:()=>{a(R=>({...R,x:.09}))},onMouseUp:()=>{a(R=>({...R,x:0}))},onPointerDown:()=>{a(R=>({...R,x:.09}))},onPointerUp:()=>{a(R=>({...R,x:0}))},children:E.jsx(hya,{})}),E.jsx("button",{"aria-label":"Replay",type:"button",onClick:()=>{s(!1)},children:E.jsx(xya,{})}),E.jsx("button",{"aria-label":"Right",type:"button",onMouseDown:()=>{a(R=>({...R,x:-.09}))},onMouseUp:()=>{a(R=>({...R,x:0}))},onPointerDown:()=>{a(R=>({...R,x:-.09}))},onPointerUp:()=>{a(R=>({...R,x:0}))},children:E.jsx(fya,{})})]}),E.jsx("div",{className:"bottomRow",children:E.jsx("button",{"aria-label":"Expand More",type:"button",onMouseDown:()=>{a(R=>({...R,y:.09}))},onMouseUp:()=>{a(R=>({...R,y:0}))},onPointerDown:()=>{a(R=>({...R,y:.09}))},onPointerUp:()=>{a(R=>({...R,y:0}))},children:E.jsx(mya,{})})})]}),h&&E.jsxs(Rts,{collapseDataPanel:l,className:"loadOwnDataPanel",children:[E.jsx("div",{className:"collapseBtn",children:E.jsx("button",{type:"button",onClick:()=>c(!l),children:l?E.jsx(Nht,{}):E.jsx(Pht,{})})}),E.jsx("div",{className:"panelTitle",children:q.LOAD_YOUR_OWN_DATA}),E.jsx("div",{className:"panelBody",children:E.jsx("ul",{children:lds.map((R,k)=>E.jsxs(Mts,{onClick:()=>_(R),children:[E.jsx("div",{className:"listTitle",children:R.title}),E.jsx("div",{className:"desc",children:R.description})]},`ownDataOptions-${k.toString()}`))})})]})]})}const Sds=gt.div`
  && {
    display: flex;
    background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.inputBg}};
    border-radius: 4px;
    box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 20%),
      0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%);
    overflow: hidden;
    width: 34px;
    transition: width 0.3s ease;
    &.expanded {
      width: 100%;
      .inputField {
        width: calc(100% - 34px);
      }
      .searchIcon {
        .expandSearchIcon {
          background: transparent;
        }
      }
    }
  }
  .inputField {
    width: 0;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    input {
      background: transparent;
      width: 100%;
      padding: 8px 16px;
      border: 0;
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
      color: ${t=>t.theme.custom.white.A1};
      &:focus {
        outline: none;
      }
    }
  }
  .searchIcon {
    height: 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: ${t=>t.theme.custom.white.A1};
    .iconClose {
      cursor: pointer;
    }
  }
`,NUt=gt.ul`
  padding: 0;
  margin: 0;
  background: ${t=>t.theme.custom.dropdownBg};
  box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
  border-radius: 8px;
  max-height: 250px;
  overflow: auto;
  list-style: none;
  backdrop-filter: blur(8px);
  border: 0.5px solid #675b8c;
  li.listHead {
    pointer-events: none;
    cursor: default;
    .listContent {
      position: relative;
      display: flex;
      align-items: center;
      color: ${t=>t.theme.custom.white.A1};
      opacity: 0.35;
    }
    .listContent:after {
      content: '';
      height: 1px;
      width: 100%;
      background: ${t=>t.theme.custom.white.A2};
      margin-left: 5px;
    }
  }
`,QJ=gt.div`
  color: ${t=>t.theme.custom.greyText.A5};
  padding: 6px 16px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  .tableName,
  .textMuted {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &&:hover {
    color: ${t=>t.theme.custom.white.A11};
    background: ${t=>t.theme.custom.white.A5};
  }
`,wds=gt.div`
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: ${t=>t.theme.custom.primaryBg};
  cursor: pointer;
`;function _ds({options:t,handleChange:e,onSelectValue:n,value:r,handleClear:a,onFocus:o,onBlur:s,fuzzySearchOptions:l,isFuzzySearch:c=!1,searchInput:u,isPreview:d=!1}){var y,S,x,w,_,C,R;const h=Y.useRef(null),{width:f}=Is(),p=f<qt.breakpoints.values.sm,[m,g]=ke.useState(!d),v=()=>{var k;return e(((k=h==null?void 0:h.current)==null?void 0:k.value)||"")},A=Ft.debounce(v,300);return Y.useEffect(()=>{g(p?!1:!d)},[p]),E.jsxs(E.Fragment,{children:[E.jsxs(Sds,{className:`autoCompleteSearch ${m?"expanded":""}`,children:[E.jsx("div",{className:"inputField",children:E.jsx("input",{onChange:A,defaultValue:r,onFocus:o,onBlur:s,placeholder:q.SEARCH_ELIPSIS_CONTEXT(u),ref:h})}),E.jsx("div",{className:"searchIcon",children:r||(y=h==null?void 0:h.current)!=null&&y.value?E.jsx(Wl,{className:"iconClose",fontSize:"small",onClick:()=>{a(),h!=null&&h.current&&(h.current.value="")}}):E.jsx(wds,{onClick:()=>{e(""),g(!m),h!=null&&h.current&&(h.current.value="",!m&&h.current.focus())},className:"expandSearchIcon",children:E.jsx(yv,{})})})]}),c?(((S=l==null?void 0:l.tables)==null?void 0:S.length)>0||((x=l==null?void 0:l.columns)==null?void 0:x.length)>0)&&E.jsxs(NUt,{children:[((w=l==null?void 0:l.tables)==null?void 0:w.length)>0&&E.jsx("li",{className:"listHead",children:E.jsx(QJ,{className:"listContent",children:q.TABLES_CAPITAL})},O0.uuid()),(_=l.tables)==null?void 0:_.map(k=>{var P,N;return E.jsx("li",{children:E.jsx(QJ,{onClick:()=>{var I,b,T,M;const L={inputValue:((I=k==null?void 0:k.item)==null?void 0:I.table)||"",value:{isColumn:!1,id:[((b=k==null?void 0:k.item)==null?void 0:b.tableId)||((T=k==null?void 0:k.item)==null?void 0:T.table)||""]}};h!=null&&h.current&&(h.current.value=(M=k==null?void 0:k.item)==null?void 0:M.table),n&&n(L)},className:"listContent",children:(P=k==null?void 0:k.item)==null?void 0:P.table})},(N=k==null?void 0:k.item)==null?void 0:N.tableId)}),((C=l==null?void 0:l.columns)==null?void 0:C.length)>0&&E.jsx("li",{className:"listHead",children:E.jsx(QJ,{className:"listContent",children:q.COLUMNS})},"Tables0"),(R=l==null?void 0:l.columns)==null?void 0:R.map(k=>{var P,N,L,I;return E.jsx("li",{children:E.jsxs(QJ,{onClick:()=>{var T,M,D,B,j;const b={inputValue:((T=k==null?void 0:k.item)==null?void 0:T.column)||"",value:{isColumn:!0,id:[((M=k==null?void 0:k.item)==null?void 0:M.tableId)||((D=k==null?void 0:k.item)==null?void 0:D.table)||""],columnName:(B=k==null?void 0:k.item)==null?void 0:B.column}};h!=null&&h.current&&(h.current.value=(j=k==null?void 0:k.item)==null?void 0:j.column),n&&n(b)},className:"listContent",children:[E.jsxs("div",{className:"tableName",children:[E.jsx("span",{children:(P=k==null?void 0:k.item)==null?void 0:P.column}),E.jsxs("em",{children:["(",(N=k==null?void 0:k.item)==null?void 0:N.dataType,")"]})]}),E.jsx("div",{className:"textMuted",children:(L=k==null?void 0:k.item)==null?void 0:L.table})]})},(I=k==null?void 0:k.item)==null?void 0:I.columnId)})]}):t.length>0&&E.jsx(NUt,{children:t==null?void 0:t.map((k,P)=>E.jsx("li",{className:k!=null&&k.isDisabled?"listHead":"",children:E.jsx(QJ,{onClick:()=>{k!=null&&k.isDisabled||(h!=null&&h.current&&(h.current.value=k.inputValue),n&&n(k))},className:"listContent",children:k.title})},`${k.title}${P+P}`))})]})}const Tds="/assets/emptyDatasetCube-d6ba08e0.png",Cds="/assets/emptyDatasetCube-905a8b42.webp",IUt=({title:t,children:e})=>E.jsxs("div",{className:"otherDatasetBlock",children:[E.jsx("div",{className:"blockTitle",children:t}),E.jsx("div",{className:"datasetListing",children:e})]}),kds="/assets/addSchema-744a23af.svg",Rds=({schemaTablesLength:t,onClick:e,isActiveSchema:n,index:r,schemaName:a,isEmptySchema:o})=>{const[s,l]=Y.useState(!1);return Y.useEffect(()=>{const c=()=>{l(!1)};return window.addEventListener("wheel",c),()=>{window.removeEventListener("wheel",c)}},[]),E.jsxs(Its,{onClick:e,className:`${n&&"active"} ${!t&&"disabled"} ${o&&"addNewSchema"}`,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[E.jsx(Pn,{label:`${!t&&!o?q.EMPTY_TABLES:""}${o?q.EMPTY_SCHEMA:""}`,tooltipPlacement:"right",open:s,children:E.jsxs("div",{className:"outerCube",children:[E.jsx("div",{className:"face front",children:E.jsxs("div",{className:"faceContent",children:[E.jsxs("div",{className:"tableCount",children:[E.jsx("span",{children:E.jsx(Tan,{})}),t]}),E.jsx("img",{src:o?kds:kz,className:`logoIcon ${o&&"emptySchemaLogo"}`,alt:""}),E.jsx("div",{className:"dbName",children:a})]})}),E.jsx("div",{className:"face top"})]})}),E.jsxs("div",{className:"innerCube",children:[E.jsx("div",{className:"face front"}),E.jsx("div",{className:"face top"})]})]},`userSchema-list-${r.toString()}`)},Mds=(t,e)=>e?t==null?void 0:t.filter(({key:n=""})=>{var r;return(r=n==null?void 0:n.toLowerCase())==null?void 0:r.includes(e==null?void 0:e.toLowerCase())}):t,Nds=({setOtherDatasetsPanel:t,otherDatasetsPanel:e,userSchemaOptions:n,subscribedSchemasAndTablesLoading:r,handleCubeSelect:a,selectedUserSchema:o,subscriptionId:s})=>{var h,f,p,m,g;const[l,c]=Y.useState(""),u=v=>{const A=v.target.value;c(A)},d=(v,A)=>{const y=Mds(v,A);return y!=null&&y.length?y==null?void 0:y.map((S,x)=>{var w,_,C;return E.jsx(Rds,{schemaTablesLength:(_=(w=S==null?void 0:S.schema)==null?void 0:w.tables)==null?void 0:_.length,onClick:()=>a(S),isActiveSchema:o===(S==null?void 0:S.key),index:x,schemaName:S==null?void 0:S.key,isEmptySchema:(C=S==null?void 0:S.schema)==null?void 0:C.isEmptySchema},S==null?void 0:S.key)}):E.jsx(Vc,{children:q.NO_SCHEMA_FOUND})};return E.jsxs("div",{className:"yourDatasetList",children:[E.jsx("button",{"aria-label":"other datasets",type:"button",onClick:()=>t(!e),className:"toggleBtn",children:E.jsx(Rmi,{})}),E.jsxs("div",{className:"listContent",children:[E.jsxs(eC,{className:"searchField",children:[E.jsx(gr,{placeholder:q.SEARCH_ELIPSIS_CONTEXT(q.DATA_SETS),onChange:u,value:l}),E.jsx("span",{className:"searchIcon",children:l!==""?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:()=>c("")}):E.jsx(yv,{})})]}),E.jsxs(aC,{split:"horizontal",minSize:((h=n==null?void 0:n.subscribedSchemas)==null?void 0:h.length)>0?200:"100%",defaultSize:((f=n==null?void 0:n.subscribedSchemas)==null?void 0:f.length)>0||r?"50%":"100%",maxSize:((p=n==null?void 0:n.subscribedSchemas)==null?void 0:p.length)>0?-150:"100%",className:`otherDatasetView ${((m=n==null?void 0:n.subscribedSchemas)==null?void 0:m.length)>0?"":"emptyPane"}`,children:[(r||((g=n==null?void 0:n.subscribedSchemas)==null?void 0:g.length)>0)&&E.jsx(IUt,{title:s?q.MY_PRIVATE_AND_MY_ORG:q.MY_DATASETS,children:r?E.jsx(Ep,{}):d((n==null?void 0:n.subscribedSchemas)||[],l)}),E.jsx(IUt,{title:q.COMMUNITY_DATASETS,children:d((n==null?void 0:n.publicSchemasAndTables)||[],l)})]})]})]})},Ids=ke.memo(Nds);var Oht={},Pds=As;Object.defineProperty(Oht,"__esModule",{value:!0});var Lht=Oht.default=void 0,Ods=Pds(Ps()),Lds=E;Lht=Oht.default=(0,Ods.default)((0,Lds.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");const PUt=({item:t,handleSubGroupSelection:e,selectedSubGroups:n,loading:r,selectAll:a})=>E.jsxs("li",{className:t===lx||(n[t]||n[a])?"checkedLi":"",children:[t!==lx&&r?E.jsx(tC,{}):E.jsxs(AXn,{className:"customCheckbox",children:[E.jsx("input",{name:t,type:"checkbox",checked:t===lx||!!n[a]||!!n[t],onChange:()=>{e(t)},disabled:t===lx}),E.jsx(Lht,{className:"checkIcon",fontSize:"small"})]}),E.jsx(Pn,{label:t||"Default",children:E.jsx(yXn,{htmlFor:t,onClick:()=>{t!==lx&&!r&&e(t)},className:`label ${t===lx&&"disabled"}`,children:t||"Default"})})]},t),Bds=({selectedSubGroups:t,selectAll:e,schema:n,handleSubGroupSelection:r})=>{var y,S;const a=Object.keys((n==null?void 0:n.schemaSubGroups)||{}),{publicSchemasAndTablesLoading:o}=Foe(),{blockchainsAndSchemas:s}=Tfn(),[l,c]=Y.useState(!0),[u,d]=Y.useState(!1),[h,f]=Y.useState(!1),{width:p}=Is(),m=p<qt.breakpoints.values.sm;if(Y.useEffect(()=>{c(!m)},[m]),!(a!=null&&a.length))return null;const g=a==null?void 0:a.indexOf(lx),v={},A=[];if(g>-1){a.splice(g,1);const x=s[n==null?void 0:n.schema]||{};a==null||a.forEach(w=>{var _,C,R;x[w]&&((_=x[w])!=null&&_.schemaType)&&!((C=v[x[w].schemaType])!=null&&C.includes(w))&&(((R=x[w].schemaType)==null?void 0:R.toLowerCase())==="sxt"?A.push(w):(v[x[w].schemaType]||(v[x[w].schemaType]=[]),v[x[w].schemaType].push(w)))})}return E.jsxs(kts,{className:"collapseCardStyled",collapseInfoPanel:l,children:[E.jsxs("ul",{className:"nameSpaceList",children:[E.jsxs("li",{className:"checkedLi",children:[E.jsxs(AXn,{className:"customCheckbox",children:[E.jsx("input",{name:lx,type:"checkbox",checked:!0,disabled:!0}),E.jsx(Lht,{className:"checkIcon",fontSize:"small"})]}),E.jsx(Pn,{label:lx,children:E.jsx(yXn,{htmlFor:lx,className:"label disabled",children:E.jsx("span",{style:{fontSize:"14px"},children:q.CORE_CHAIN_DATA})})})]},lx),(A==null?void 0:A.length)>0&&E.jsxs("li",{className:"subGroup",children:[E.jsxs("div",{className:"subGroupHead",children:[q.SXT_SUBGROUP,E.jsx(_n,{onClick:()=>d(!u),className:u?"collapsed":"",children:E.jsx(Qy,{})})]}),E.jsx(jo,{in:u,timeout:"auto",unmountOnExit:!0,children:E.jsx("ul",{children:(y=A.toSorted())==null?void 0:y.map(x=>E.jsx(PUt,{item:x,selectedSubGroups:t,loading:o,handleSubGroupSelection:r,selectAll:e},x))})})]}),(S=Object.keys(v))==null?void 0:S.map(x=>{var w;return E.jsxs("li",{className:"subGroup",children:[E.jsxs("div",{className:"subGroupHead",children:[x==="community"?q.COMMUNITY_SUBGROUP:x,E.jsx(_n,{onClick:()=>f(!h),className:h?"collapsed":"",children:E.jsx(Qy,{})})]}),E.jsx(jo,{in:h,timeout:"auto",unmountOnExit:!0,children:E.jsx("ul",{children:(w=v[x].toSorted())==null?void 0:w.map(_=>E.jsx(PUt,{item:_,selectedSubGroups:t,loading:o,handleSubGroupSelection:r,selectAll:e},_))})})]})})]}),E.jsx(_n,{onClick:()=>c(!l),className:"collpaseBtn",tooltip:l?q.HIDE_NAMESPACE:q.SHOW_NAMESPACE,children:l?E.jsx(Pht,{}):E.jsx(Nht,{})})]})},Dds={AVALANCHE_C:_dt,BNB:wdt,POLYGON:Tdt,ETHEREUM:eie,SUI:Cdt,BASE:Rdt,GOERLI:sM,MUMBAI:Mdt,"SUI (testnet)":Ndt,HOLESKY:sM,SEPOLIA:sM,SEI:qCe,BITCOIN:QCe,APTOS:kdt,ZKSYNCERA:YCe,ETHEREUM_BEACON:eie},$ds=t=>{var lt,pn,sn,un,ur;const e="selectAll",{isPreview:n=!1,isPipelineView:r=!1,defaultSelectedNamespace:a}=t,o=xo(),s=Zh(),l=new URLSearchParams(s.search),c=l!=null&&l.get("selectedChain")?im[l.get("selectedChain")||""]:"",u=(l==null?void 0:l.get("selectedTable"))||"",d=((lt=l==null?void 0:l.get("namespace"))==null?void 0:lt.toUpperCase())||"",h=Hit(),{publicSchemasAndTablesLoading:f}=Foe(),{subscribedSchemasAndTablesLoading:p,subscribedSchemasAndTables:m}=EV(),[g,v]=Y.useState(!1),[A,y]=Y.useState(!1),[S,x]=Y.useState([]),[w,_]=Y.useState({}),[C,R]=Y.useState([]),[k,P]=Y.useState({}),[N,L]=Y.useState(""),[I]=Y.useState(new Date().getTime()),[b,T]=Y.useState([]),[M,D]=Y.useState(0),[B,j]=Y.useState(""),[H,U]=Y.useState([]),[$,z]=Y.useState(!1),[Z,K]=Y.useState(""),[Q]=Y.useState(!0),[ee,X]=Y.useState(()=>d?{core:1,[d]:1}:{core:1}),[te,J]=Y.useState({}),[ne,ie]=Y.useState(!0),[he,de]=Y.useState({tables:[],columns:[]}),[ce,Ee]=Y.useState(!1),[Me,Be]=Y.useState(!0),ze=Y.useMemo(()=>{var xt;const dt=[];return(xt=w==null?void 0:w.tables)==null||xt.forEach(Cn=>{dt.push(...Cn.columns)}),dt},[w]),{subscriptionId:je}=fN(),ye=ho(),me=Uit(),le=GAa(),pe=(dt,xt)=>{const Cn={subscribedSchemas:[],publicSchemasAndTables:[]};return dt==null||dt.forEach(Kt=>{Kt!=null&&Kt.key&&xt[Kt.key]?Cn.subscribedSchemas.push(Kt):Cn.publicSchemasAndTables.push(Kt)}),Cn},Ne=Y.useMemo(()=>{var dt,xt;return((dt=k==null?void 0:k.subscribedSchemas)==null?void 0:dt.length)>0||((xt=k==null?void 0:k.publicSchemasAndTables)==null?void 0:xt.length)>0},[k]),_e=dt=>{var Kt,rn;if(ee[dt]||_a.selectedNamespaceOnERD({selectedNamespace:dt}),dt===e){if(ee[e])X({core:1});else{const On={};(Kt=Object.keys((w==null?void 0:w.schemaSubGroups)||{}))==null||Kt.forEach(an=>{On[an]=1}),On.core=1,On[e]=1,X({...On})}return}const xt={...ee};xt[dt]?delete xt[dt]:xt[dt]=1;let Cn=!0;(rn=Object.keys((w==null?void 0:w.schemaSubGroups)||{}))==null||rn.every(On=>xt[On]?!0:(Cn=!1,!1)),Cn?xt[e]=1:delete xt[e],X({...xt})};Y.useEffect(()=>{a&&_e(a)},[a,w,s.search]);const ue=Y.useRef();Y.useEffect(()=>{const dt=new Worker(URL.createObjectURL(new Blob([`(${DK})()`])));return ue.current=dt,ue.current.onmessage=xt=>{var Cn,Kt,rn,On,an;if(((Cn=xt==null?void 0:xt.data)==null?void 0:Cn.type)===Mf.atomic){const on=(rn=(Kt=xt==null?void 0:xt.data)==null?void 0:Kt.items)==null?void 0:rn.map(dr=>({...dr,data:{label:E.jsx(Kqe,{nodesObject:dr.data.label,isSearched:dr.data.isSearched}),type:"custom"}}));x([...on])}else if(xt.data.type===Mf.grouped){const on=(an=(On=xt==null?void 0:xt.data)==null?void 0:On.items)==null?void 0:an.map(dr=>({...dr,data:{label:dr!=null&&dr.isParent?E.jsx(cts,{item:dr.data.label.item}):E.jsx(Kqe,{nodesObject:dr.data.label,isSearched:dr.data.isSearched}),type:"custom"}}));T([...on]),z(!1)}},()=>{var xt;(xt=ue.current)==null||xt.terminate()}},[]);const se=(dt,xt,Cn)=>{if(Cn[e])return dt;let Kt="",rn=!1;xt&&(dt==null||dt.every(({name:an,subGroup:on,tableId:dr})=>an===xt||dr===xt?(Kt=on,rn=!0,!1):!0));const On=dt==null?void 0:dt.filter(({name:an,subGroup:on,tableId:dr})=>an===xt||dr===xt||Cn[on]||rn&&on===Kt);return On!=null&&On.length?On:dt},oe=async(dt,xt="",Cn="")=>{var On,an;z(!0);const Kt=se(dt,xt||u,{...ee,core:1}),rn=dXn(Kt);(On=ue.current)==null||On.postMessage({type:Mf.grouped,tables:Kt,priorityColumns:rn,currentFocusedTable:xt||u,columnName:Cn,schema:w==null?void 0:w.schema}),(an=ue.current)==null||an.postMessage({type:Mf.atomic,tables:Kt,priorityColumns:rn,currentFocusedTable:xt||u,columnName:Cn,schema:w==null?void 0:w.schema})},ge=async(dt=!1)=>{Z&&!dt&&oe(w.tables),K(""),U([]),j(""),J({}),de({tables:[],columns:[]})},De=(dt,xt)=>{var Kt,rn,On,an,on;l==null||l.set("selectedChain",((Kt=dt==null?void 0:dt.schema)==null?void 0:Kt.toLowerCase())||((rn=dt==null?void 0:dt.schema)==null?void 0:rn.toLowerCase())),l==null||l.delete("namespace"),l==null||l.delete("message");const Cn={...s,search:l==null?void 0:l.toString()};dt!=null&&dt.isBlockchain&&((On=s.pathname)!=null&&On.includes(Qt.erd))&&o.push(Cn),_a.selectedChainOnERD({selectedChain:((an=dt==null?void 0:dt.schema)==null?void 0:an.toLowerCase())||((on=dt==null?void 0:dt.schema)==null?void 0:on.toLowerCase())}),_({...dt}),xt&&X({core:1,[xt]:1})},Fe=dt=>Yes(dt),Se=dt=>{const{schemasHaveTables:xt,schemasHaveNoTables:Cn}=Jes(dt),Kt=Djt(xt),rn=Djt(Cn);return[...Kt,...rn]};Y.useEffect(()=>{A&&(y(!1),x([]),_({}))},[A]),Y.useEffect(()=>{(C==null?void 0:C.length)>0&&(S==null?void 0:S.length)===0?v(!0):v(!1)},[C,S]),Y.useEffect(()=>{var dt,xt,Cn,Kt,rn;if(((dt=k==null?void 0:k.publicSchemasAndTables)!=null&&dt.length||(xt=k==null?void 0:k.subscribedSchemas)!=null&&xt.length)&&ce&&Ft.isEmpty(w)){let On=[];!ye||p?On=(Cn=k==null?void 0:k.publicSchemasAndTables)==null?void 0:Cn[0]:On=((Kt=k==null?void 0:k.subscribedSchemas)==null?void 0:Kt[0])||((rn=k==null?void 0:k.publicSchemasAndTables)==null?void 0:rn[0]),On==null||On.onClick(),L(On==null?void 0:On.key)}},[k,ce]),Y.useEffect(()=>{if((h==null?void 0:h.length)||0){y(!1);let xt=[];const Cn=[];h==null||h.forEach(qe=>{const{isBlockchain:yt=!1}=qe;yt&&xt.push(qe),!yt&&Cn.push(qe)});const{result:Kt=[]}=Ues(Cn,De,c);xt.push(...Wes(xt));const rn=[];if(le.forEach(qe=>xt.find(yt=>qe.chainId===yt.schema?(rn.push(yt),!0):!1)),xt=rn,Kt!=null&&Kt.length){const{publicSchemasAndTables:qe,subscribedSchemas:yt}=pe(Kt,m);setTimeout(()=>{P({subscribedSchemas:Fe(yt),publicSchemasAndTables:Se(qe)})},300)}const{result:On=[],gridSize:an,localSchema:on}=Kes(xt,De,c,n);on&&_(on);const $e=[...On.filter(qe=>me.hasOwnProperty(qe.key))];D(an),$e!=null&&$e.length&&R([...$e])}else y(!1),x([]),_({}),D(0),R([])},[h,a,f]),Y.useEffect(()=>{var dt;if((dt=w==null?void 0:w.tables)!=null&&dt.length)if(Z){const{value:xt={}}=te,{id:Cn=[],columnName:Kt=""}=xt;oe(v7e(w,Cn),Z,Kt)}else oe(w.tables);else x([])},[w]),Y.useEffect(()=>{var dt;return!((dt=w==null?void 0:w.tables)!=null&&dt.length)&&(S!=null&&S.length)&&x([]),()=>{Gne("")}},[w,S]);const Xe=dt=>{var xt,Cn,Kt,rn,On;if(Q){const an={keys:["table"],threshold:.2},on={keys:["column"],threshold:.2},dr=new FP(w==null?void 0:w.tables,an),$e=new FP(ze,on),qe=dt!=null&&dt.trim()?(xt=dr.search(dt))==null?void 0:xt.slice(0,12):[],yt=dt!=null&&dt.trim()?(Cn=$e.search(dt))==null?void 0:Cn.slice(0,12):[];de({tables:qe,columns:yt}),_a.searchDataset({searched_input:dt,results_count:qe.length+yt.length})}else{const an=(Kt=dt==null?void 0:dt.trim())==null?void 0:Kt.toLowerCase(),on=[];let dr=!1,$e=!1;an&&((rn=w==null?void 0:w.tables)==null||rn.every(qe=>{const{table:yt="",tableId:Ze}=qe;if(!yt)return!0;const ot=yt==null?void 0:yt.toLowerCase();if(ot!=null&&ot.includes(an)||an!=null&&an.includes(ot)){const yn=E.jsx(jjt,{children:E.jsx(Pn,{label:yt,children:E.jsx("div",{className:"tableName",children:E.jsx("span",{children:yt})})})});dr||(on.push({title:"Tables",isDisabled:!0}),dr=!0),on.push({title:yn,value:{isColumn:!1,id:[Ze]},inputValue:`${yt}`})}return!0})),an&&((On=w==null?void 0:w.tables)==null||On.every(({columns:qe,name:yt,tableId:Ze})=>(qe==null||qe.every(({column:ot,dataType:yn})=>{const vt=ot==null?void 0:ot.toLowerCase();if(vt!=null&&vt.includes(an)||an!=null&&an.includes(vt)){const Gt=E.jsxs(jjt,{children:[E.jsx(Pn,{label:`${yt} : ${ot} : ${yn}`,children:E.jsxs("div",{className:"tableName",children:[E.jsx("span",{children:ot}),E.jsxs("em",{children:["(",yn,")"]})]})}),E.jsx("div",{className:"textMuted",children:yt})]});$e||(on.push({title:"Columns",isDisabled:!0}),$e=!0),on.push({title:Gt,value:{isColumn:!0,id:[Ze],columnName:ot},inputValue:`${yt} : ${ot} : ${yn}`})}return!0}),!0))),U([...on])}return null},Oe=async dt=>{var xt;return j(dt),(xt=w==null?void 0:w.tables)!=null&&xt.length?dt?Xe(dt):(ge(),null):null},Ye=async dt=>{const{value:xt={},inputValue:Cn=""}=dt,{id:Kt=[],columnName:rn=""}=xt;J(dt),j(Cn),de({tables:[],columns:[]}),U([]),Gne(""),oe(v7e(w,Kt),Kt[0]||"",rn),Kt!=null&&Kt.length&&K(Kt[0])},mt=async()=>{var dt;if((dt=w==null?void 0:w.tables)!=null&&dt.length){const{value:xt={}}=te,{id:Cn=[],columnName:Kt=""}=xt;Cn!=null&&Cn.length?oe(v7e(w,Cn),Cn[0]||"",Kt):oe(w.tables)}};Y.useEffect(()=>{mt()},[ee,a]);const ut=dt=>{ge(!0),dt==null||dt.onClick(),L(dt==null?void 0:dt.key)};return E.jsxs(Nts,{className:"erdWrapper",otherDatasetsPanel:Me,children:[E.jsx(Ets,{className:`datasetHead ${ce&&Me&&"isOtherDatasets"}`,otherDatasetsPanel:ce&&Me,children:w!=null&&w.schema?E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:w==null?void 0:w.schema,tooltipPlacement:"bottom",children:E.jsxs("span",{children:[E.jsx("img",{src:Dds[w==null?void 0:w.schema]||kz,className:"logoIcon",alt:""}),w==null?void 0:w.schema]})}),q.DATASET]}):E.jsxs(E.Fragment,{children:[E.jsx("span",{children:q[ce?"MY":"SPACE_AND_TIME"]}),q.DATA_SETS]})}),Ne&&E.jsx(Sts,{className:"datasetSwitch",children:(ce||!ce&&(S==null?void 0:S.length)===0&&!(w!=null&&w.isBlockchain))&&E.jsxs(Jt,{onClick:()=>{Ee(!ce),_({}),x([])},variant:"contained",color:"secondary",children:[ce?q.SHOW_SPACE_AND_TIME_DATASETS:q.SHOW_YOUR_DATASETS,p&&E.jsx(tC,{className:"buttonLoading"})]})}),!ce&&!(S!=null&&S.length)&&!((pn=w==null?void 0:w.tables)!=null&&pn.length)&&(g?E.jsx(Eds,{buttons:C,isPreview:n,gridSize:M,is2D:ne,setIs2D:ie}):(h==null?void 0:h.length)===0&&!f&&E.jsx(sf,{imgPath:Tds,imgPathWebp:Cds,children:E.jsxs("div",{className:"emptyMsgTitle",children:[E.jsx("div",{children:q.EMPTY_DATASET_CUBES_TEXT}),E.jsx("div",{children:q.CHECK_BACK_LATER})]})})),ce&&Ne?E.jsx(Ids,{setOtherDatasetsPanel:Be,otherDatasetsPanel:Me,userSchemaOptions:k,subscribedSchemasAndTablesLoading:p,handleCubeSelect:ut,selectedUserSchema:N,subscriptionId:je}):null,!(h!=null&&h.length)&&f&&E.jsx(Ep,{}),ce&&f&&E.jsx(Ep,{}),((sn=w==null?void 0:w.tables)==null?void 0:sn.length)===0&&E.jsx("div",{className:"emptyDatasetView",children:E.jsxs("div",{className:"contentInner",children:[E.jsx("h2",{children:q.NO_TABLES_FOUND}),E.jsx("p",{children:q.CREATE_TABLE_INFO_TEXT}),E.jsx(Jt,{onClick:()=>{if(!ye){co(!0);return}XF(!1),Mfn({sqlText:wha.create_table(w==null?void 0:w.schema)}),o.push("/queries/new?tabID=1")},variant:"contained",color:"primary",children:q.CREATE_TABLE})]})}),((un=w==null?void 0:w.tables)==null?void 0:un.length)>0&&E.jsxs(E.Fragment,{children:[E.jsx(bXn,{nodeTables:S,schema:[w],starERD:b,isPreview:n,isPipelineView:r,onClear:()=>{j(""),K(""),J({}),_({}),X({core:1}),y(!0)},selectedSubGroups:ee,isSearched:!!B,focusedTable:Z,isShowYourDataSets:ce,isLayoutLoading:$}),E.jsx(Cts,{className:"searchErd",otherDatasetsPanel:ce&&Me,children:E.jsx(_ds,{options:H,isFuzzySearch:Q,fuzzySearchOptions:he,handleChange:Oe,onSelectValue:Ye,value:B,handleClear:ge,onFocus:()=>{Xe(B)},onBlur:()=>{setTimeout(()=>{U([]),de({tables:[],columns:[]})},300)},isPreview:n,searchInput:q.TABLES_TEXT})})]}),!n&&((ur=w==null?void 0:w.tables)==null?void 0:ur.length)>0&&E.jsx(Bds,{schema:w,selectAll:e,handleSubGroupSelection:_e,selectedSubGroups:ee}),$&&(S==null?void 0:S.length)===0&&E.jsx(Ep,{})]},I)},Fds=ke.memo($ds),jds=()=>{const t=Efn(),[e,n]=Y.useState(!1),[r,a]=Y.useState([]),[o,s]=Y.useState(!1),[l,c]=Y.useState(!1),[u,d]=Y.useState([]),h=Y.useRef();Y.useEffect(()=>{const v=new Worker(URL.createObjectURL(new Blob([`(${DK})()`])));return h.current=v,h.current.onmessage=A=>{var y,S,x;if(((y=A==null?void 0:A.data)==null?void 0:y.type)===Mf.atomic){const w=(x=(S=A==null?void 0:A.data)==null?void 0:S.items)==null?void 0:x.map(_=>({..._,data:{label:E.jsx(Kqe,{nodesObject:_.data.label,isSearched:_.data.isSearched,isQueryERD:!0}),type:"custom"}}));d([...w]),n(!1)}},()=>{var A;(A=h.current)==null||A.terminate()}},[]);const f=async v=>{var A,y,S;if((A=t==null?void 0:t.queryTableNames)!=null&&A.length){const{tables:x,limited:w,allCommon:_}=Hes({previousSchemaTables:r,handleLimit:v,tableNames:(t==null?void 0:t.queryTableNames)||[],currentSchemaTables:(t==null?void 0:t.queryTables)||[],ERDData:u});if(_)return;await n(!0);const C=dXn(x);(S=h.current)==null||S.postMessage({type:Mf.atomic,tables:x,priorityColumns:C,currentFocusedTable:"",columnName:"",datasetName:(y=t==null?void 0:t.querySchemas[0])==null?void 0:y.schema}),a(t==null?void 0:t.queryTables),s(w)}else d([]),a([])};Y.useEffect(()=>{f(!0),c(!1)},[t]);const p=()=>{f(!1),c(!0)},m=()=>{d([]),c(!1)},g=()=>{c(!1),f(!0)};return(u==null?void 0:u.length)>0?E.jsx(bXn,{nodeTables:u,schema:t==null?void 0:t.querySchemas,ERDLoading:e,starERD:[],showAll:o,handleShowAll:()=>p(),showLess:l,handleShowLess:()=>g(),isPreview:!0,isQueryERD:!0,onClear:m}):E.jsx(Fds,{isPreview:!0})},Hds=()=>{const t=ho(),e=Q_e(),n=W_e(),{subscribedSchemasAndTablesLoading:r}=EV();return Y.useLayoutEffect(()=>{!n&&!r&&Wne({}),t&&n&&!e&&!r&&K6({})},[t,n,r]),_fn()?E.jsx(as,{}):E.jsx(jds,{})},Jtr=ke.memo(Hds),Uds=gt.div`
  height: ${t=>t!=null&&t.pageHeight?`${t==null?void 0:t.pageHeight}px`:"100vh"};
  width: 100%;
  display: flex;
  padding-top: 56px;
  flex-direction: column;
  .editorContent {
    position: relative;
    flex-grow: 1;
    height: 100%;
    .splitPaneView {
      .Pane.vertical.Pane1 {
        border: 1px solid #675b8c;
        border-radius: 8px;
        backdrop-filter: blur(14px);
        background: none;
        background-color: rgba(48, 38, 77, 0.55);
        box-shadow: 4px 4px 20px 0 rgb(16 2 23 / 50%);
        z-index: 3;
        .resultSplitPane,
        .SplitPane.vertical {
          overflow: visible !important;
        }
      }
      .resultSplitPane.horizontal .horizontal.Pane1 {
        z-index: 9;
      }
      .Pane.vertical.Pane2 {
        z-index: 2;
      }
      .Resizer.vertical,
      .Resizer.horizontal {
        background: none;
        z-index: ${t=>(t==null?void 0:t.showMenu)&&1};
      }
      .erdWrapper {
        .searchErd {
          .autoCompleteSearch.expanded {
            width: 220px !important;
          }
          ul {
            width: 220px;
          }
        }
        .datasetHead {
          top: 60px;
        }
      }
    }
  }
  .editorContent .splitPaneView.vertical > .Pane2 .erdView {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .mobileEditorView {
    height: 100%;
    display: none;
    position: relative;
  }
  .resultToolbar .mobileQueryToolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    gap: 16px;
  }
  .editorBtn span.iconMobileView {
    display: none;
  }
  .resultToolbar {
    flex-wrap: nowrap;
    .mobileQueryToolbar {
      font-family: ${t=>t.theme.typography.fontFamily};
      font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
      font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
      color: ${t=>t.theme.custom.white.A12};
      .MuiButtonBase-root {
        font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font10}};
        padding-left: 0;
        padding-right: 0;
      }
      .MuiIconButton-root {
        height: 24px;
        width: 24px;
        background: linear-gradient(
          133.11deg,
          rgba(255, 255, 255, 0.044) 6.98%,
          rgba(255, 255, 255, 0.0498955) 46.15%,
          rgba(255, 255, 255, 0.058) 100%
        );
        border: 0;
        + .MuiIconButton-root {
          margin-left: 0;
        }
      }
    }
  }
  .strippedTable {
    box-shadow: 4px 4px 24px rgba(7, 1, 26, 0.45);
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .desktopEditorView {
      display: none !important;
    }
    .mobileEditorView {
      display: block;
    }
    .mobileEditorView .resultSplitPane {
      top: 50% !important;
      height: 50% !important;
      min-height: 50% !important;
    }
    .datasetSwitch {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 999;
    }
    .editorBtn .editorBtnText {
      display: none;
    }
    .editorBtn span.iconRight {
      svg {
        width: 16px;
        height: 16px;
      }
    }
    .mobileEditorView .mobileErdView.h-50 {
      height: 50%;
      .erdWrapper {
        z-index: 1;
      }
    }
    .mobileEditorView .mobileErdView {
      height: 0;
      transition: all 0.4s;
      -webkit-transition: 0.4s;
      .loadOwnDataPanel {
        display: none;
      }
      .cubeDirectionHandler {
        right: 12px;
      }
    }
    .mobileEditorView .mobileResultPane,
    .mobileEditorView .mobileQueryEditorView,
    .mobileEditorView .mobileEditorBottomSection.h-50 {
      height: 50%;
    }
    .mobileEditorView .mobileResultPane {
      display: flex;
      flex-direction: column;
    }
    .mobileEditorView .mobileResultTable,
    .mobileEditorView .mobileChartContainer {
      position: unset;
      flex: 1;
    }
    .mobileEditorView .mobileChartContainer {
      height: 192px;
    }
    .mobileEditorView .mobileEditorBottomSection {
      padding: 10px;
      background-color: #2d204d;
      height: 100%;
      transition: all 0.4s;
      -webkit-transition: 0.4s;
      position: relative;
      z-index: 2;
    }
    .mobileEditorView .resultToolbar {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .mobileEditorView .resultToolbar .mobileQueryToolbar {
      width: 100%;
    }
    .mobileEditorView .resultToolbar .MuiToggleButtonGroup-root {
      width: 100%;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .mobileEditorView .chartsDisplay {
      margin-top: 10px;
    }
    .mobileEditorView .mobileEditorBottomSection .mobileQueryEditor {
      padding: 10px;
      padding-top: 30px;
    }
  }
  .queryEditorOverFlow {
    overflow: unset !important;
  }

  .AIPane1 {
    width: 100%;

    .AIPane1Container  {
      width: 100%;
      background: rgba(67, 52, 115, 0.55);
      border-radius: 8px;
      box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
      padding: 12px 16px;
      .AIFlexContainer {
        display: flex;
        flex-direction: row;
        margin-bottom: 5px;
      }
    }

    .AIButtonFlexContainer {
      width: 41px;
      margin-right: 3px;
      display: flex;
      .aiButtonWrapper {
        border-radius: 4px;
        background: rgba(179, 158, 255, 0.18);
        font-weight: 400;
        font-size: 12px;
        height: 19px;
        display: flex;
        justify-content: center;
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 1px;
        color: #AAA;
        .pencilIconWrapper {
          margin-left: 5px;
          position: relative;
          top: 1px;
        }
      }
    }

    .AIPromptRightPanel {
      display: flex;
      flex-direction: column;
      gap: 5px;
      align-items: flex-end;
    }

    .AITextArea {
      caret-color: ${t=>t.theme.custom.white.A1};
      background: transparent;
      color: inherit;
      border: none;
      opacity: 1;
      resize: none;
      flex-grow: 1;
      margin-right: 26px;
      overflow: hidden;
      min-height: auto;
      outline: none;
      color: #DBE4FF;
      ::placeholder {
        color: #999999;
        font-family: arial;
        opacity: 1;
        padding-left: 0 !important;
        margin-left: 6px;
        white-space: unset;
        font-size: 12px;
        transform: scale(0.9);
        transform-origin: left;
        white-space: nowrap;
      }
      }
    }
  }
`;var zds={exports:{}};(function(t,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(n,r,a){a.exports=`

/* ------------------------------------------------------------------------------------------
 * Editor Search Form
 * --------------------------------------------------------------------------------------- */
.ace_search {
    background-color: #ddd;
    color: #666;
    border: 1px solid #cbcbcb;
    border-top: 0 none;
    overflow: hidden;
    margin: 0;
    padding: 4px 6px 0 4px;
    position: absolute;
    top: 0;
    z-index: 99;
    white-space: normal;
}
.ace_search.left {
    border-left: 0 none;
    border-radius: 0px 0px 5px 0px;
    left: 0;
}
.ace_search.right {
    border-radius: 0px 0px 0px 5px;
    border-right: 0 none;
    right: 0;
}

.ace_search_form, .ace_replace_form {
    margin: 0 20px 4px 0;
    overflow: hidden;
    line-height: 1.9;
}
.ace_replace_form {
    margin-right: 0;
}
.ace_search_form.ace_nomatch {
    outline: 1px solid red;
}

.ace_search_field {
    border-radius: 3px 0 0 3px;
    background-color: white;
    color: black;
    border: 1px solid #cbcbcb;
    border-right: 0 none;
    outline: 0;
    padding: 0;
    font-size: inherit;
    margin: 0;
    line-height: inherit;
    padding: 0 6px;
    min-width: 17em;
    vertical-align: top;
    min-height: 1.8em;
    box-sizing: content-box;
}
.ace_searchbtn {
    border: 1px solid #cbcbcb;
    line-height: inherit;
    display: inline-block;
    padding: 0 6px;
    background: #fff;
    border-right: 0 none;
    border-left: 1px solid #dcdcdc;
    cursor: pointer;
    margin: 0;
    position: relative;
    color: #666;
}
.ace_searchbtn:last-child {
    border-radius: 0 3px 3px 0;
    border-right: 1px solid #cbcbcb;
}
.ace_searchbtn:disabled {
    background: none;
    cursor: default;
}
.ace_searchbtn:hover {
    background-color: #eef1f6;
}
.ace_searchbtn.prev, .ace_searchbtn.next {
     padding: 0px 0.7em
}
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
     content: "";
     border: solid 2px #888;
     width: 0.5em;
     height: 0.5em;
     border-width:  2px 0 0 2px;
     display:inline-block;
     transform: rotate(-45deg);
}
.ace_searchbtn.next:after {
     border-width: 0 2px 2px 0 ;
}
.ace_searchbtn_close {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
    border-radius: 50%;
    border: 0 none;
    color: #656565;
    cursor: pointer;
    font: 16px/16px Arial;
    padding: 0;
    height: 14px;
    width: 14px;
    top: 9px;
    right: 7px;
    position: absolute;
}
.ace_searchbtn_close:hover {
    background-color: #656565;
    background-position: 50% 100%;
    color: white;
}

.ace_button {
    margin-left: 2px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    opacity: 0.7;
    border: 1px solid rgba(100,100,100,0.23);
    padding: 1px;
    box-sizing:    border-box!important;
    color: black;
}

.ace_button:hover {
    background-color: #eee;
    opacity:1;
}
.ace_button:active {
    background-color: #ddd;
}

.ace_button.checked {
    border-color: #3399ff;
    opacity:1;
}

.ace_search_options{
    margin-bottom: 3px;
    text-align: right;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
    clear: both;
}

.ace_search_counter {
    float: left;
    font-family: arial;
    padding: 0 8px;
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(n,r,a){var o=n("../lib/dom"),s=n("../lib/lang"),l=n("../lib/event"),c=n("./searchbox-css"),u=n("../keyboard/hash_handler").HashHandler,d=n("../lib/keys"),h=n("../config").nls,f=999;o.importCssString(c,"ace_searchbox",!1);var p=function(){function v(A,y,S){this.activeInput;var x=o.createElement("div");o.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:h("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},h("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:h("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},h("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},h("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:h("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:h("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:h("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:h("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:h("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],x),this.element=x.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(A),o.importCssString(c,"ace_searchbox",A.container)}return v.prototype.setEditor=function(A){A.searchBox=this,A.renderer.scroller.appendChild(this.element),this.editor=A},v.prototype.setSession=function(A){this.searchRange=null,this.$syncOptions(!0)},v.prototype.$initElements=function(A){this.searchBox=A.querySelector(".ace_search_form"),this.replaceBox=A.querySelector(".ace_replace_form"),this.searchOption=A.querySelector("[action=searchInSelection]"),this.replaceOption=A.querySelector("[action=toggleReplace]"),this.regExpOption=A.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=A.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=A.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=A.querySelector(".ace_search_counter")},v.prototype.$init=function(){var A=this.element;this.$initElements(A);var y=this;l.addListener(A,"mousedown",function(S){setTimeout(function(){y.activeInput.focus()},0),l.stopPropagation(S)}),l.addListener(A,"click",function(S){var x=S.target||S.srcElement,w=x.getAttribute("action");w&&y[w]?y[w]():y.$searchBarKb.commands[w]&&y.$searchBarKb.commands[w].exec(y),l.stopPropagation(S)}),l.addCommandKeyListener(A,function(S,x,w){var _=d.keyCodeToString(w),C=y.$searchBarKb.findKeyCommand(x,_);C&&C.exec&&(C.exec(y),l.stopEvent(S))}),this.$onChange=s.delayedCall(function(){y.find(!1,!1)}),l.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),l.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),l.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},v.prototype.setSearchRange=function(A){this.searchRange=A,A?this.searchRangeMarker=this.editor.session.addMarker(A,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},v.prototype.$syncOptions=function(A){o.setCssClass(this.replaceOption,"checked",this.searchRange),o.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",o.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),o.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),o.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var y=this.editor.getReadOnly();this.replaceOption.style.display=y?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!y?"":"none",this.find(!1,!1,A)},v.prototype.highlight=function(A){this.editor.session.highlight(A||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},v.prototype.find=function(A,y,S){var x=this.editor.find(this.searchInput.value,{skipCurrent:A,backwards:y,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:S,range:this.searchRange}),w=!x&&this.searchInput.value;o.setCssClass(this.searchBox,"ace_nomatch",w),this.editor._emit("findSearchBox",{match:!w}),this.highlight(),this.updateCounter()},v.prototype.updateCounter=function(){var A=this.editor,y=A.$search.$options.re,S=y.unicode,x=0,w=0;if(y){var _=this.searchRange?A.session.getTextRange(this.searchRange):A.getValue(),C=A.session.doc.positionToIndex(A.selection.anchor);this.searchRange&&(C-=A.session.doc.positionToIndex(this.searchRange.start));for(var R=y.lastIndex=0,k;(k=y.exec(_))&&(x++,R=k.index,R<=C&&w++,!(x>f||!k[0]&&(y.lastIndex=R+=s.skipEmptyMatch(_,R,S),R>=_.length))););}this.searchCounter.textContent=h("search-box.search-counter","$0 of $1",[w,x>f?f+"+":x])},v.prototype.findNext=function(){this.find(!0,!1)},v.prototype.findPrev=function(){this.find(!0,!0)},v.prototype.findAll=function(){var A=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),y=!A&&this.searchInput.value;o.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),this.highlight(),this.hide()},v.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},v.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},v.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},v.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},v.prototype.show=function(A,y){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=y,A&&(this.searchInput.value=A),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},v.prototype.isFocused=function(){var A=document.activeElement;return A==this.searchInput||A==this.replaceInput},v}(),m=new u;m.bindKeys({"Ctrl-f|Command-f":function(v){var A=v.isReplace=!v.isReplace;v.replaceBox.style.display=A?"":"none",v.replaceOption.checked=!1,v.$syncOptions(),v.searchInput.focus()},"Ctrl-H|Command-Option-F":function(v){v.editor.getReadOnly()||(v.replaceOption.checked=!0,v.$syncOptions(),v.replaceInput.focus())},"Ctrl-G|Command-G":function(v){v.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(v){v.findPrev()},esc:function(v){setTimeout(function(){v.hide()})},Return:function(v){v.activeInput==v.replaceInput&&v.replace(),v.findNext()},"Shift-Return":function(v){v.activeInput==v.replaceInput&&v.replace(),v.findPrev()},"Alt-Return":function(v){v.activeInput==v.replaceInput&&v.replaceAll(),v.findAll()},Tab:function(v){(v.activeInput==v.replaceInput?v.searchInput:v.replaceInput).focus()}}),m.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(v){v.regExpOption.checked=!v.regExpOption.checked,v.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(v){v.caseSensitiveOption.checked=!v.caseSensitiveOption.checked,v.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(v){v.wholeWordOption.checked=!v.wholeWordOption.checked,v.$syncOptions()}},{name:"toggleReplace",exec:function(v){v.replaceOption.checked=!v.replaceOption.checked,v.$syncOptions()}},{name:"searchInSelection",exec:function(v){v.searchOption.checked=!v.searchRange,v.setSearchRange(v.searchOption.checked&&v.editor.getSelectionRange()),v.$syncOptions()}}]);var g=new u([{bindKey:"Esc",name:"closeSearchBar",exec:function(v){v.searchBox.hide()}}]);p.prototype.$searchBarKb=m,p.prototype.$closeSearchBarKb=g,r.SearchBox=p,r.Search=function(v,A){var y=v.searchBox||new p(v);y.show(v.session.getTextRange(),A)}}),function(){ace.require(["ace/ext/searchbox"],function(n){t&&(t.exports=n)})}()})(zds);const Gds=gt.div`
  flex: 1;
  padding: 0 145px 0 16px;
  .ace_editor {
    width: 100% !important;
    height: 100% !important;
    line-height: 20px;
    overflow: visible;
  }
  .ace_editor {
    color: ${t=>t.theme.custom.greyText.A6};
    background: transparent;
    font-family: ${t=>t.theme.typographySecondary.fontFamily};
    font-weight: ${t=>t.theme.custom.fontWeight.md};
    font-size: ${t=>t.theme.custom.fontSize.font12} !important;
    .ace_text-layer {
      .ace_line *:not(.ace_comment) {
        color: ${t=>t.isWhite&&t.theme.custom.white.A1};
      }
    }
    .ace_gutter {
      background: transparent;
      .ace_gutter-cell {
        text-align: center;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    .ace_indent-guide {
      background: unset;
    }
    &.editorDisabled {
      .ace_cursor {
        visibility: hidden;
      }
    }
  }
  .ace_keyword {
    font-weight: inherit;
    color: ${t=>t.theme.custom.editor.keyword};
  }
  .ace_constant.ace_numeric,
  .ace_boolean {
    color: ${t=>t.theme.custom.editor.numeric};
    font-weight: inherit;
  }
  .ace_function {
    color: ${t=>t.theme.custom.editor.function};
  }
  .ace_string {
    color: ${t=>t.theme.custom.editor.string};
  }
  .ace_type {
    color: ${t=>t.theme.custom.editor.type};
  }
  .ace_customddl {
    color: ${t=>t.theme.custom.editor.ddl};
  }
  .ace_customdml {
    color: ${t=>t.theme.custom.editor.dml};
  }
  .ace_customtransactions {
    color: ${t=>t.theme.custom.editor.transactions};
  }
  .ace_operator {
    color: ${t=>t.theme.custom.olive};
  }
  .ace_cursor {
    color: ${t=>t.theme.custom.white.A1};
  }
  .ace_custom {
    font-style: italic;
    color: #bdfd8b;
  }
  .ace_gutter {
    background: transparent;
  }
  .ace_marker-layer .ace_selection {
    background: ${t=>t.theme.palette.primary.main};
  }
  .ace_marker-layer .ace_selected-word {
    border: 0;
  }
  .ace_placeholder {
    color: ${t=>t.theme.custom.greyText.A2};
    font-style: normal;
    opacity: 1;
    padding-left: 0 !important;
    margin-left: 6px;
    white-space: unset;
  }
  .ace_gutter-active-line {
    background-color: rgba(179, 158, 255, 0.18);
  }
  .ace_mobile-menu {
    display: none;
  }
  .ace_tooltip {
    color: ${t=>t.theme.custom.white.A11};
    font-family: ${t=>t.theme.typography.fontFamily};
    max-width: 400px;
    max-height: 175px;
    overflow: auto;
    background: ${t=>t.theme.custom.boxBg};
    border-radius: 8px;
    border: 0.5px solid #675b8c;
    box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
    transform: translate(-50px, -90px);
  }
  ${t=>t.theme.breakpoints.down("md")} {
    padding: 0 45px 0 0;
    .ace_scrollbar-v {
      right: -45px;
    }
  }
`,Vds=()=>{const t=n=>{var a,o;let r=(a=n==null?void 0:n.replace("java.lang.",""))==null?void 0:a.toLowerCase();return r=(o=r==null?void 0:r.replace("java.math.",""))==null?void 0:o.toLowerCase(),r},e=n=>{var m;const r=[],a={},o={},s={},l=[],c=[];n.schemas?n.schemas.forEach(g=>{var A;const v={id:g.schema.toLowerCase(),name:g.schema.toLowerCase(),type:"schema",value:g.schema,score:0,meta:"schema"};r.push(v),(A=g==null?void 0:g.tables)==null||A.forEach(y=>{var w,_,C,R;const S=(w=y==null?void 0:y.columns)==null?void 0:w.map(k=>{var P,N,L;return{id:(P=k.columnId)==null?void 0:P.toLowerCase(),name:(N=k.column)==null?void 0:N.toLowerCase(),type:"column",value:k.column,score:0,meta:(L=t(k.dataType))==null?void 0:L.trim()}}),x={id:(_=y.tableId)==null?void 0:_.toLowerCase(),name:(C=y==null?void 0:y.table)==null?void 0:C.toLowerCase(),type:"table",value:y==null?void 0:y.table,score:0,meta:(R=`table ${(y==null?void 0:y.description)||""}`)==null?void 0:R.trim(),schemaCompletion:v,columnCompletions:S};l.push(y==null?void 0:y.name),c.push(`${g==null?void 0:g.schema}\\.${y==null?void 0:y.name}`),r.push(x),a[v.name]||(a[v.name]=[]),a[v.name].push(x),s[x.name]=x,o[x.id]=x})}):n.tables&&((m=n==null?void 0:n.tables)==null||m.forEach(g=>{var y,S,x,w;const v=(y=g==null?void 0:g.tableSchemas)==null?void 0:y.map(_=>{var C,R,k;return{id:(C=`${g==null?void 0:g.name}.${_==null?void 0:_.tableSchemaName}`)==null?void 0:C.toLowerCase(),name:(R=_==null?void 0:_.tableSchemaName)==null?void 0:R.toLowerCase(),type:"column",value:_==null?void 0:_.tableSchemaName,score:0,meta:(k=`${t(_==null?void 0:_.type)} ${(_==null?void 0:_.description)||""}`)==null?void 0:k.trim()}});l.push(g==null?void 0:g.name);const A={id:(S=g==null?void 0:g.name)==null?void 0:S.toLowerCase(),name:(x=g==null?void 0:g.name)==null?void 0:x.toLowerCase(),type:"table",value:g==null?void 0:g.name,score:0,meta:(w=`table ${(g==null?void 0:g.description)||""}`)==null?void 0:w.trim(),columnCompletions:v};r.push(A),s[A==null?void 0:A.name]=A,o[A==null?void 0:A.id]=A}));const u=new RegExp(`\\b(${l.join("|")})\\b`,"gi"),d=new RegExp(`\\b(${c.join("|")})\\b`,"gi");return{keywordsRegex:/\b(from|join|select|where|group|having|on|by|limit)\b/gi,columnWantedKeywords:new Set(["select","where","group","having","on","by"]),tableWantedKeywords:new Set(["from","join"]),tableRegex:u,schemaTableRegex:d,tablesById:o,tablesBySchema:a,tablesByName:s,initialTableWantedSuggestions:r}};self.onmessage=n=>{const{schemas:r,tables:a=[]}=n.data,{keywordsRegex:o,columnWantedKeywords:s,tableWantedKeywords:l,tableRegex:c,schemaTableRegex:u,tablesById:d,tablesBySchema:h,tablesByName:f,initialTableWantedSuggestions:p}=e({schemas:r,tables:a});self.postMessage({keywordsRegex:o,columnWantedKeywords:s,tableWantedKeywords:l,tableRegex:c,schemaTableRegex:u,tablesById:d,tablesBySchema:h,tablesByName:f,initialTableWantedSuggestions:p})}};var Kds={exports:{}};(function(t,e){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(n,r,a){function o(_){var C=new Date().toLocaleString("en-us",_);return C.length==1?"0"+C:C}var s=n("./lib/dom"),l=n("./lib/oop"),c=n("./lib/event_emitter").EventEmitter,u=n("./lib/lang"),d=n("./range").Range,h=n("./range_list").RangeList,f=n("./keyboard/hash_handler").HashHandler,p=n("./tokenizer").Tokenizer,m=n("./clipboard"),g={CURRENT_WORD:function(_){return _.session.getTextRange(_.session.getWordRange())},SELECTION:function(_,C,R){var k=_.session.getTextRange();return R?k.replace(/\n\r?([ \t]*\S)/g,`
`+R+"$1"):k},CURRENT_LINE:function(_){return _.session.getLine(_.getCursorPosition().row)},PREV_LINE:function(_){return _.session.getLine(_.getCursorPosition().row-1)},LINE_INDEX:function(_){return _.getCursorPosition().row},LINE_NUMBER:function(_){return _.getCursorPosition().row+1},SOFT_TABS:function(_){return _.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(_){return _.session.getTabSize()},CLIPBOARD:function(_){return m.getText&&m.getText()},FILENAME:function(_){return/[^/\\]*$/.exec(this.FILEPATH(_))[0]},FILENAME_BASE:function(_){return/[^/\\]*$/.exec(this.FILEPATH(_))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(_){return this.FILEPATH(_).replace(/[^/\\]*$/,"")},FILEPATH:function(_){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(_){var C=_.session.$mode||{};return C.blockComment&&C.blockComment.start||""},BLOCK_COMMENT_END:function(_){var C=_.session.$mode||{};return C.blockComment&&C.blockComment.end||""},LINE_COMMENT:function(_){var C=_.session.$mode||{};return C.lineCommentStart||""},CURRENT_YEAR:o.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:o.bind(null,{year:"2-digit"}),CURRENT_MONTH:o.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:o.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:o.bind(null,{month:"short"}),CURRENT_DATE:o.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:o.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:o.bind(null,{weekday:"short"}),CURRENT_HOUR:o.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:o.bind(null,{minute:"2-digit"}),CURRENT_SECOND:o.bind(null,{second:"2-digit"})};g.SELECTED_TEXT=g.SELECTION;var v=function(){function _(){this.snippetMap={},this.snippetNameMap={},this.variables=g}return _.prototype.getTokenizer=function(){return _.$tokenizer||this.createTokenizer()},_.prototype.createTokenizer=function(){function C(P){return P=P.substr(1),/^\d+$/.test(P)?[{tabstopId:parseInt(P,10)}]:[{text:P}]}function R(P){return"(?:[^\\\\"+P+"]|\\\\.)"}var k={regex:"/("+R("/")+"+)/",onMatch:function(P,N,L){var I=L[0];return I.fmtString=!0,I.guard=P.slice(1,-1),I.flag="",""},next:"formatString"};return _.$tokenizer=new p({start:[{regex:/\\./,onMatch:function(P,N,L){var I=P[1];return(I=="}"&&L.length||"`$\\".indexOf(I)!=-1)&&(P=I),[P]}},{regex:/}/,onMatch:function(P,N,L){return[L.length?L.shift():P]}},{regex:/\$(?:\d+|\w+)/,onMatch:C},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(P,N,L){var I=C(P.substr(1));return L.unshift(I[0]),I},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+R("\\|")+"*\\|",onMatch:function(P,N,L){var I=P.slice(1,-1).replace(/\\[,|\\]|,/g,function(b){return b.length==2?b[1]:"\0"}).split("\0").map(function(b){return{value:b}});return L[0].choices=I,[I[0]]},next:"start"},k,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(P,N,L){return L.length&&L[0].expectElse?(L[0].expectElse=!1,L[0].ifEnd={elseEnd:L[0]},[L[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(P,N,L){var I=P[1];return I=="}"&&L.length||"`$\\".indexOf(I)!=-1?P=I:I=="n"?P=`
`:I=="t"?P="	":"ulULE".indexOf(I)!=-1&&(P={changeCase:I,local:I>"a"}),[P]}},{regex:"/\\w*}",onMatch:function(P,N,L){var I=L.shift();return I&&(I.flag=P.slice(1,-1)),this.next=I&&I.tabstopId?"start":"",[I||P]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(P,N,L){return[{text:P.slice(1)}]}},{regex:/\${\w+/,onMatch:function(P,N,L){var I={text:P.slice(2)};return L.unshift(I),[I]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(P,N,L){var I=L.shift();return this.next=I&&I.tabstopId?"start":"",[I||P]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(P,N,L){var I=L[0];return I.formatFunction=P.slice(2,-1),[L.shift()]},next:"formatString"},k,{regex:/:[\?\-+]?/,onMatch:function(P,N,L){P[1]=="+"&&(L[0].ifEnd=L[0]),P[1]=="?"&&(L[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),_.$tokenizer},_.prototype.tokenizeTmSnippet=function(C,R){return this.getTokenizer().getLineTokens(C,R).tokens.map(function(k){return k.value||k})},_.prototype.getVariableValue=function(C,R,k){if(/^\d+$/.test(R))return(this.variables.__||{})[R]||"";if(/^[A-Z]\d+$/.test(R))return(this.variables[R[0]+"__"]||{})[R.substr(1)]||"";if(R=R.replace(/^TM_/,""),!this.variables.hasOwnProperty(R))return"";var P=this.variables[R];return typeof P=="function"&&(P=this.variables[R](C,R,k)),P??""},_.prototype.tmStrFormat=function(C,R,k){if(!R.fmt)return C;var P=R.flag||"",N=R.guard;N=new RegExp(N,P.replace(/[^gim]/g,""));var L=typeof R.fmt=="string"?this.tokenizeTmSnippet(R.fmt,"formatString"):R.fmt,I=this,b=C.replace(N,function(){var T=I.variables.__;I.variables.__=[].slice.call(arguments);for(var M=I.resolveVariables(L,k),D="E",B=0;B<M.length;B++){var j=M[B];if(typeof j=="object")if(M[B]="",j.changeCase&&j.local){var H=M[B+1];H&&typeof H=="string"&&(j.changeCase=="u"?M[B]=H[0].toUpperCase():M[B]=H[0].toLowerCase(),M[B+1]=H.substr(1))}else j.changeCase&&(D=j.changeCase);else D=="U"?M[B]=j.toUpperCase():D=="L"&&(M[B]=j.toLowerCase())}return I.variables.__=T,M.join("")});return b},_.prototype.tmFormatFunction=function(C,R,k){return R.formatFunction=="upcase"?C.toUpperCase():R.formatFunction=="downcase"?C.toLowerCase():C},_.prototype.resolveVariables=function(C,R){function k(D){var B=C.indexOf(D,I+1);B!=-1&&(I=B)}for(var P=[],N="",L=!0,I=0;I<C.length;I++){var b=C[I];if(typeof b=="string"){P.push(b),b==`
`?(L=!0,N=""):L&&(N=/^\t*/.exec(b)[0],L=/\S/.test(b));continue}if(b){if(L=!1,b.fmtString){var T=C.indexOf(b,I+1);T==-1&&(T=C.length),b.fmt=C.slice(I+1,T),I=T}if(b.text){var M=this.getVariableValue(R,b.text,N)+"";b.fmtString&&(M=this.tmStrFormat(M,b,R)),b.formatFunction&&(M=this.tmFormatFunction(M,b,R)),M&&!b.ifEnd?(P.push(M),k(b)):!M&&b.ifEnd&&k(b.ifEnd)}else b.elseEnd?k(b.elseEnd):(b.tabstopId!=null||b.changeCase!=null)&&P.push(b)}}return P},_.prototype.getDisplayTextForSnippet=function(C,R){var k=A.call(this,C,R);return k.text},_.prototype.insertSnippetForSelection=function(C,R,k){k===void 0&&(k={});var P=A.call(this,C,R,k),N=C.getSelectionRange(),L=C.session.replace(N,P.text),I=new y(C),b=C.inVirtualSelectionMode&&C.selection.index;I.addTabstops(P.tabstops,N.start,L,b)},_.prototype.insertSnippet=function(C,R,k){k===void 0&&(k={});var P=this;if(C.inVirtualSelectionMode)return P.insertSnippetForSelection(C,R,k);C.forEachSelection(function(){P.insertSnippetForSelection(C,R,k)},null,{keepOrder:!0}),C.tabstopManager&&C.tabstopManager.tabNext()},_.prototype.$getScope=function(C){var R=C.session.$mode.$id||"";if(R=R.split("/").pop(),R==="html"||R==="php"){R==="php"&&!C.session.$mode.inlinePhp&&(R="html");var k=C.getCursorPosition(),P=C.session.getState(k.row);typeof P=="object"&&(P=P[0]),P.substring&&(P.substring(0,3)=="js-"?R="javascript":P.substring(0,4)=="css-"?R="css":P.substring(0,4)=="php-"&&(R="php"))}return R},_.prototype.getActiveScopes=function(C){var R=this.$getScope(C),k=[R],P=this.snippetMap;return P[R]&&P[R].includeScopes&&k.push.apply(k,P[R].includeScopes),k.push("_"),k},_.prototype.expandWithTab=function(C,R){var k=this,P=C.forEachSelection(function(){return k.expandSnippetForSelection(C,R)},null,{keepOrder:!0});return P&&C.tabstopManager&&C.tabstopManager.tabNext(),P},_.prototype.expandSnippetForSelection=function(C,R){var k=C.getCursorPosition(),P=C.session.getLine(k.row),N=P.substring(0,k.column),L=P.substr(k.column),I=this.snippetMap,b;return this.getActiveScopes(C).some(function(T){var M=I[T];return M&&(b=this.findMatchingSnippet(M,N,L)),!!b},this),b?(R&&R.dryRun||(C.session.doc.removeInLine(k.row,k.column-b.replaceBefore.length,k.column+b.replaceAfter.length),this.variables.M__=b.matchBefore,this.variables.T__=b.matchAfter,this.insertSnippetForSelection(C,b.content),this.variables.M__=this.variables.T__=null),!0):!1},_.prototype.findMatchingSnippet=function(C,R,k){for(var P=C.length;P--;){var N=C[P];if(!(N.startRe&&!N.startRe.test(R))&&!(N.endRe&&!N.endRe.test(k))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(R):[""],N.matchAfter=N.endRe?N.endRe.exec(k):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(R)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(k)[0]:"",N}},_.prototype.register=function(C,R){function k(T){return T&&!/^\^?\(.*\)\$?$|^\\b$/.test(T)&&(T="(?:"+T+")"),T||""}function P(T,M,D){return T=k(T),M=k(M),D?(T=M+T,T&&T[T.length-1]!="$"&&(T+="$")):(T+=M,T&&T[0]!="^"&&(T="^"+T)),new RegExp(T)}function N(T){T.scope||(T.scope=R||"_"),R=T.scope,L[R]||(L[R]=[],I[R]={});var M=I[R];if(T.name){var D=M[T.name];D&&b.unregister(D),M[T.name]=T}L[R].push(T),T.prefix&&(T.tabTrigger=T.prefix),!T.content&&T.body&&(T.content=Array.isArray(T.body)?T.body.join(`
`):T.body),T.tabTrigger&&!T.trigger&&(!T.guard&&/^\w/.test(T.tabTrigger)&&(T.guard="\\b"),T.trigger=u.escapeRegExp(T.tabTrigger)),!(!T.trigger&&!T.guard&&!T.endTrigger&&!T.endGuard)&&(T.startRe=P(T.trigger,T.guard,!0),T.triggerRe=new RegExp(T.trigger),T.endRe=P(T.endTrigger,T.endGuard,!0),T.endTriggerRe=new RegExp(T.endTrigger))}var L=this.snippetMap,I=this.snippetNameMap,b=this;C||(C=[]),Array.isArray(C)?C.forEach(N):Object.keys(C).forEach(function(T){N(C[T])}),this._signal("registerSnippets",{scope:R})},_.prototype.unregister=function(C,R){function k(L){var I=N[L.scope||R];if(I&&I[L.name]){delete I[L.name];var b=P[L.scope||R],T=b&&b.indexOf(L);T>=0&&b.splice(T,1)}}var P=this.snippetMap,N=this.snippetNameMap;C.content?k(C):Array.isArray(C)&&C.forEach(k)},_.prototype.parseSnippetFile=function(C){C=C.replace(/\r/g,"");for(var R=[],k={},P=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=P.exec(C);){if(N[1])try{k=JSON.parse(N[1]),R.push(k)}catch{}if(N[4])k.content=N[4].replace(/^\t/gm,""),R.push(k),k={};else{var L=N[2],I=N[3];if(L=="regex"){var b=/\/((?:[^\/\\]|\\.)*)|$/g;k.guard=b.exec(I)[1],k.trigger=b.exec(I)[1],k.endTrigger=b.exec(I)[1],k.endGuard=b.exec(I)[1]}else L=="snippet"?(k.tabTrigger=I.match(/^\S*/)[0],k.name||(k.name=I)):L&&(k[L]=I)}}return R},_.prototype.getSnippetByName=function(C,R){var k=this.snippetNameMap,P;return this.getActiveScopes(R).some(function(N){var L=k[N];return L&&(P=L[C]),!!P},this),P},_}();l.implement(v.prototype,c);var A=function(_,C,R){function k(Q){for(var ee=[],X=0;X<Q.length;X++){var te=Q[X];if(typeof te=="object"){if(M[te.tabstopId])continue;var J=Q.lastIndexOf(te,X-1);te=ee[J]||{tabstopId:te.tabstopId}}ee[X]=te}return ee}R===void 0&&(R={});var P=_.getCursorPosition(),N=_.session.getLine(P.row),L=_.session.getTabString(),I=N.match(/^\s*/)[0];P.column<I.length&&(I=I.slice(0,P.column)),C=C.replace(/\r/g,"");var b=this.tokenizeTmSnippet(C);b=this.resolveVariables(b,_),b=b.map(function(Q){return Q==`
`&&!R.excludeExtraIndent?Q+I:typeof Q=="string"?Q.replace(/\t/g,L):Q});var T=[];b.forEach(function(Q,ee){if(typeof Q=="object"){var X=Q.tabstopId,te=T[X];if(te||(te=T[X]=[],te.index=X,te.value="",te.parents={}),te.indexOf(Q)===-1){Q.choices&&!te.choices&&(te.choices=Q.choices),te.push(Q);var J=b.indexOf(Q,ee+1);if(J!==-1){var ne=b.slice(ee+1,J),ie=ne.some(function(he){return typeof he=="object"});ie&&!te.value?te.value=ne:ne.length&&(!te.value||typeof te.value!="string")&&(te.value=ne.join(""))}}}}),T.forEach(function(Q){Q.length=0});for(var M={},D=0;D<b.length;D++){var B=b[D];if(typeof B=="object"){var j=B.tabstopId,H=T[j],U=b.indexOf(B,D+1);if(M[j]){M[j]===B&&(delete M[j],Object.keys(M).forEach(function(Q){H.parents[Q]=!0}));continue}M[j]=B;var $=H.value;typeof $!="string"?$=k($):B.fmt&&($=this.tmStrFormat($,B,_)),b.splice.apply(b,[D+1,Math.max(0,U-D)].concat($,B)),H.indexOf(B)===-1&&H.push(B)}}var z=0,Z=0,K="";return b.forEach(function(Q){if(typeof Q=="string"){var ee=Q.split(`
`);ee.length>1?(Z=ee[ee.length-1].length,z+=ee.length-1):Z+=Q.length,K+=Q}else Q&&(Q.start?Q.end={row:z,column:Z}:Q.start={row:z,column:Z})}),{text:K,tabstops:T,tokens:b}},y=function(){function _(C){if(this.index=0,this.ranges=[],this.tabstops=[],C.tabstopManager)return C.tabstopManager;C.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=u.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(C)}return _.prototype.attach=function(C){this.$openTabstops=null,this.selectedTabstop=null,this.editor=C,this.session=C.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},_.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},_.prototype.onChange=function(C){for(var R=C.action[0]=="r",k=this.selectedTabstop||{},P=k.parents||{},N=this.tabstops.slice(),L=0;L<N.length;L++){var I=N[L],b=I==k||P[I.index];if(I.rangeList.$bias=b?0:1,C.action=="remove"&&I!==k){var T=I.parents&&I.parents[k.index],M=I.rangeList.pointIndex(C.start,T);M=M<0?-M-1:M+1;var D=I.rangeList.pointIndex(C.end,T);D=D<0?-D-1:D-1;for(var B=I.rangeList.ranges.slice(M,D),j=0;j<B.length;j++)this.removeRange(B[j])}I.rangeList.$onChange(C)}var H=this.session;!this.$inChange&&R&&H.getLength()==1&&!H.getValue()&&this.detach()},_.prototype.updateLinkedFields=function(){var C=this.selectedTabstop;if(!(!C||!C.hasLinkedRanges||!C.firstNonLinked)){this.$inChange=!0;for(var R=this.session,k=R.getTextRange(C.firstNonLinked),P=0;P<C.length;P++){var N=C[P];if(N.linked){var L=N.original,I=r.snippetManager.tmStrFormat(k,L,this.editor);R.replace(N,I)}}this.$inChange=!1}},_.prototype.onAfterExec=function(C){C.command&&!C.command.readOnly&&this.updateLinkedFields()},_.prototype.onChangeSelection=function(){if(this.editor){for(var C=this.editor.selection.lead,R=this.editor.selection.anchor,k=this.editor.selection.isEmpty(),P=0;P<this.ranges.length;P++)if(!this.ranges[P].linked){var N=this.ranges[P].contains(C.row,C.column),L=k||this.ranges[P].contains(R.row,R.column);if(N&&L)return}this.detach()}},_.prototype.onChangeSession=function(){this.detach()},_.prototype.tabNext=function(C){var R=this.tabstops.length,k=this.index+(C||1);k=Math.min(Math.max(k,1),R),k==R&&(k=0),this.selectTabstop(k),this.updateTabstopMarkers(),k===0&&this.detach()},_.prototype.selectTabstop=function(C){this.$openTabstops=null;var R=this.tabstops[this.index];if(R&&this.addTabstopMarkers(R),this.index=C,R=this.tabstops[this.index],!(!R||!R.length)){this.selectedTabstop=R;var k=R.firstNonLinked||R;if(R.choices&&(k.cursor=k.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(k);else{var P=this.editor.multiSelect;P.toSingleRange(k);for(var N=0;N<R.length;N++)R.hasLinkedRanges&&R[N].linked||P.addRange(R[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},_.prototype.addTabstops=function(C,R,k){var P=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!C[0]){var N=d.fromPoints(k,k);x(N.start,R),x(N.end,R),C[0]=[N],C[0].index=0}var L=this.index,I=[L+1,0],b=this.ranges,T=this.snippetId=(this.snippetId||0)+1;C.forEach(function(M,D){var B=this.$openTabstops[D]||M;B.snippetId=T;for(var j=0;j<M.length;j++){var H=M[j],U=d.fromPoints(H.start,H.end||H.start);S(U.start,R),S(U.end,R),U.original=H,U.tabstop=B,b.push(U),B!=M?B.unshift(U):B[j]=U,H.fmtString||B.firstNonLinked&&P?(U.linked=!0,B.hasLinkedRanges=!0):B.firstNonLinked||(B.firstNonLinked=U)}B.firstNonLinked||(B.hasLinkedRanges=!1),B===M&&(I.push(B),this.$openTabstops[D]=B),this.addTabstopMarkers(B),B.rangeList=B.rangeList||new h,B.rangeList.$bias=0,B.rangeList.addList(B)},this),I.length>2&&(this.tabstops.length&&I.push(I.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,I))},_.prototype.addTabstopMarkers=function(C){var R=this.session;C.forEach(function(k){k.markerId||(k.markerId=R.addMarker(k,"ace_snippet-marker","text"))})},_.prototype.removeTabstopMarkers=function(C){var R=this.session;C.forEach(function(k){R.removeMarker(k.markerId),k.markerId=null})},_.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var C=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&C--,this.tabstops.forEach(function(R){R.snippetId===C?this.addTabstopMarkers(R):this.removeTabstopMarkers(R)},this)}},_.prototype.removeRange=function(C){var R=C.tabstop.indexOf(C);R!=-1&&C.tabstop.splice(R,1),R=this.ranges.indexOf(C),R!=-1&&this.ranges.splice(R,1),R=C.tabstop.rangeList.ranges.indexOf(C),R!=-1&&C.tabstop.splice(R,1),this.session.removeMarker(C.markerId),C.tabstop.length||(R=this.tabstops.indexOf(C.tabstop),R!=-1&&this.tabstops.splice(R,1),this.tabstops.length||this.detach())},_}();y.prototype.keyboardHandler=new f,y.prototype.keyboardHandler.bindKeys({Tab:function(_){r.snippetManager&&r.snippetManager.expandWithTab(_)||(_.tabstopManager.tabNext(1),_.renderer.scrollCursorIntoView())},"Shift-Tab":function(_){_.tabstopManager.tabNext(-1),_.renderer.scrollCursorIntoView()},Esc:function(_){_.tabstopManager.detach()}});var S=function(_,C){_.row==0&&(_.column+=C.column),_.row+=C.row},x=function(_,C){_.row==C.row&&(_.column-=C.column),_.row-=C.row};s.importCssString(`
.ace_snippet-marker {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: rgba(194, 193, 208, 0.09);
    border: 1px dotted rgba(211, 208, 235, 0.62);
    position: absolute;
}`,"snippets.css",!1),r.snippetManager=new v;var w=n("./editor").Editor;(function(){this.insertSnippet=function(_,C){return r.snippetManager.insertSnippet(this,_,C)},this.expandSnippet=function(_){return r.snippetManager.expandWithTab(this,_)}}).call(w.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(n,r,a){var o=n("../virtual_renderer").VirtualRenderer,s=n("../editor").Editor,l=n("../range").Range,c=n("../lib/event"),u=n("../lib/lang"),d=n("../lib/dom"),h=n("../config").nls,f=n("./../lib/useragent"),p=function(S){return"suggest-aria-id:".concat(S)},m=f.isSafari?"menu":"listbox",g=f.isSafari?"menuitem":"option",v=f.isSafari?"aria-current":"aria-selected",A=function(S){var x=new o(S);x.$maxLines=4;var w=new s(x);return w.setHighlightActiveLine(!1),w.setShowPrintMargin(!1),w.renderer.setShowGutter(!1),w.renderer.setHighlightGutterLine(!1),w.$mouseHandler.$focusTimeout=0,w.$highlightTagPending=!0,w},y=function(){function S(x){var w=d.createElement("div"),_=A(w);x&&x.appendChild(w),w.style.display="none",_.renderer.content.style.cursor="default",_.renderer.setStyle("ace_autocomplete"),_.renderer.$textLayer.element.setAttribute("role",m),_.renderer.$textLayer.element.setAttribute("aria-roledescription",h("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),_.renderer.$textLayer.element.setAttribute("aria-label",h("autocomplete.popup.aria-label","Autocomplete suggestions")),_.renderer.textarea.setAttribute("aria-hidden","true"),_.setOption("displayIndentGuides",!1),_.setOption("dragDelay",150);var C=function(){};_.focus=C,_.$isFocused=!0,_.renderer.$cursorLayer.restartTimer=C,_.renderer.$cursorLayer.element.style.opacity="0",_.renderer.$maxLines=8,_.renderer.$keepTextAreaAtCursor=!1,_.setHighlightActiveLine(!1),_.session.highlight(""),_.session.$searchHighlight.clazz="ace_highlight-marker",_.on("mousedown",function(b){var T=b.getDocumentPosition();_.selection.moveToPosition(T),P.start.row=P.end.row=T.row,b.stop()});var R,k=new l(-1,0,-1,1/0),P=new l(-1,0,-1,1/0);P.id=_.session.addMarker(P,"ace_active-line","fullLine"),_.setSelectOnHover=function(b){b?k.id&&(_.session.removeMarker(k.id),k.id=null):k.id=_.session.addMarker(k,"ace_line-hover","fullLine")},_.setSelectOnHover(!1),_.on("mousemove",function(b){if(!R){R=b;return}if(!(R.x==b.x&&R.y==b.y)){R=b,R.scrollTop=_.renderer.scrollTop,_.isMouseOver=!0;var T=R.getDocumentPosition().row;k.start.row!=T&&(k.id||_.setRow(T),L(T))}}),_.renderer.on("beforeRender",function(){if(R&&k.start.row!=-1){R.$pos=null;var b=R.getDocumentPosition().row;k.id||_.setRow(b),L(b,!0)}}),_.renderer.on("afterRender",function(){var b=_.getRow(),T=_.renderer.$textLayer,M=T.element.childNodes[b-T.config.firstRow],D=document.activeElement;if(M!==_.selectedNode&&_.selectedNode&&(d.removeCssClass(_.selectedNode,"ace_selected"),D.removeAttribute("aria-activedescendant"),_.selectedNode.removeAttribute(v),_.selectedNode.removeAttribute("id")),_.selectedNode=M,M){d.addCssClass(M,"ace_selected");var B=p(b);M.id=B,T.element.setAttribute("aria-activedescendant",B),D.setAttribute("aria-activedescendant",B),M.setAttribute("role",g),M.setAttribute("aria-roledescription",h("autocomplete.popup.item.aria-roledescription","item")),M.setAttribute("aria-label",_.getData(b).caption||_.getData(b).value),M.setAttribute("aria-setsize",_.data.length),M.setAttribute("aria-posinset",b+1),M.setAttribute("aria-describedby","doc-tooltip"),M.setAttribute(v,"true")}});var N=function(){L(-1)},L=function(b,T){b!==k.start.row&&(k.start.row=k.end.row=b,T||_.session._emit("changeBackMarker"),_._emit("changeHoverMarker"))};_.getHoveredRow=function(){return k.start.row},c.addListener(_.container,"mouseout",function(){_.isMouseOver=!1,N()}),_.on("hide",N),_.on("changeSelection",N),_.session.doc.getLength=function(){return _.data.length},_.session.doc.getLine=function(b){var T=_.data[b];return typeof T=="string"?T:T&&T.value||""};var I=_.session.bgTokenizer;return I.$tokenizeRow=function(b){function T(Q,ee){Q&&D.push({type:(M.className||"")+(ee||""),value:Q})}var M=_.data[b],D=[];if(!M)return D;typeof M=="string"&&(M={value:M});for(var B=M.caption||M.value||M.name,j=B.toLowerCase(),H=(_.filterText||"").toLowerCase(),U=0,$=0,z=0;z<=H.length;z++)if(z!=$&&(M.matchMask&1<<z||z==H.length)){var Z=H.slice($,z);$=z;var K=j.indexOf(Z,U);if(K==-1)continue;T(B.slice(U,K),""),U=K+Z.length,T(B.slice(K,U),"completion-highlight")}return T(B.slice(U,B.length),""),D.push({type:"completion-spacer",value:" "}),M.meta&&D.push({type:"completion-meta",value:M.meta}),M.message&&D.push({type:"completion-message",value:M.message}),D},I.$updateOnChange=C,I.start=C,_.session.$computeWidth=function(){return this.screenWidth=0},_.isOpen=!1,_.isTopdown=!1,_.autoSelect=!0,_.filterText="",_.isMouseOver=!1,_.data=[],_.setData=function(b,T){_.filterText=T||"",_.setValue(u.stringRepeat(`
`,b.length),-1),_.data=b||[],_.setRow(0)},_.getData=function(b){return _.data[b]},_.getRow=function(){return P.start.row},_.setRow=function(b){b=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,b)),P.start.row!=b&&(_.selection.clearSelection(),P.start.row=P.end.row=b||0,_.session._emit("changeBackMarker"),_.moveCursorTo(b||0,0),_.isOpen&&_._signal("select"))},_.on("changeSelection",function(){_.isOpen&&_.setRow(_.selection.lead.row),_.renderer.scrollCursorIntoView()}),_.hide=function(){this.container.style.display="none",_.anchorPos=null,_.anchor=null,_.isOpen&&(_.isOpen=!1,this._signal("hide"))},_.tryShow=function(b,T,M,D){if(!D&&_.isOpen&&_.anchorPos&&_.anchor&&_.anchorPos.top===b.top&&_.anchorPos.left===b.left&&_.anchor===M)return!0;var B=this.container,j=window.innerHeight,H=window.innerWidth,U=this.renderer,$=U.$maxLines*T*1.4,z={top:0,bottom:0,left:0},Z=j-b.top-3*this.$borderSize-T,K=b.top-3*this.$borderSize;M||(K<=Z||Z>=$?M="bottom":M="top"),M==="top"?(z.bottom=b.top-this.$borderSize,z.top=z.bottom-$):M==="bottom"&&(z.top=b.top+T+this.$borderSize,z.bottom=z.top+$);var Q=z.top>=0&&z.bottom<=j;if(!D&&!Q)return!1;Q?U.$maxPixelHeight=null:M==="top"?U.$maxPixelHeight=K:U.$maxPixelHeight=Z,M==="top"?(B.style.top="",B.style.bottom=j-z.bottom+"px",_.isTopdown=!1):(B.style.top=z.top+"px",B.style.bottom="",_.isTopdown=!0),B.style.display="";var ee=b.left;return ee+B.offsetWidth>H&&(ee=H-B.offsetWidth),B.style.left=ee+"px",B.style.right="",_.isOpen||(_.isOpen=!0,this._signal("show"),R=null),_.anchorPos=b,_.anchor=M,!0},_.show=function(b,T,M){this.tryShow(b,T,M?"bottom":void 0,!0)},_.goTo=function(b){var T=this.getRow(),M=this.session.getLength()-1;switch(b){case"up":T=T<=0?M:T-1;break;case"down":T=T>=M?-1:T+1;break;case"start":T=0;break;case"end":T=M}this.setRow(T)},_.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},_.$imageSize=0,_.$borderSize=1,_}return S}();d.importCssString(`
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
    background-color: #CAD6FA;
    z-index: 1;
}
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
    background-color: #3a674e;
}
.ace_editor.ace_autocomplete .ace_line-hover {
    border: 1px solid #abbffe;
    margin-top: -1px;
    background: rgba(233,233,253,0.4);
    position: absolute;
    z-index: 2;
}
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
    border: 1px solid rgba(109, 150, 13, 0.8);
    background: rgba(58, 103, 78, 0.62);
}
.ace_completion-meta {
    opacity: 0.5;
    margin-left: 0.9em;
}
.ace_completion-message {
    margin-left: 0.9em;
    color: blue;
}
.ace_editor.ace_autocomplete .ace_completion-highlight{
    color: #2d69c7;
}
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
    color: #93ca12;
}
.ace_editor.ace_autocomplete {
    width: 300px;
    z-index: 200000;
    border: 1px lightgray solid;
    position: fixed;
    box-shadow: 2px 3px 5px rgba(0,0,0,.2);
    line-height: 1.4;
    background: #fefefe;
    color: #111;
}
.ace_dark.ace_editor.ace_autocomplete {
    border: 1px #484747 solid;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
    line-height: 1.4;
    background: #25282c;
    color: #c1c1c1;
}
.ace_autocomplete .ace_text-layer  {
    width: calc(100% - 8px);
}
.ace_autocomplete .ace_line {
    display: flex;
    align-items: center;
}
.ace_autocomplete .ace_line > * {
    min-width: 0;
    flex: 0 0 auto;
}
.ace_autocomplete .ace_line .ace_ {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ace_autocomplete .ace_completion-spacer {
    flex: 1;
}
.ace_autocomplete.ace_loading:after  {
    content: "";
    position: absolute;
    top: 0px;
    height: 2px;
    width: 8%;
    background: blue;
    z-index: 100;
    animation: ace_progress 3s infinite linear;
    animation-delay: 300ms;
    transform: translateX(-100%) scaleX(1);
}
@keyframes ace_progress {
    0% { transform: translateX(-100%) scaleX(1) }
    50% { transform: translateX(625%) scaleX(2) } 
    100% { transform: translateX(1500%) scaleX(3) } 
}
@media (prefers-reduced-motion) {
    .ace_autocomplete.ace_loading:after {
        transform: translateX(625%) scaleX(2);
        animation: none;
     }
}
`,"autocompletion.css",!1),r.AcePopup=y,r.$singleLineEditor=A,r.getAriaId=p}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(n,r,a){var o=function(){function s(l){this.editor=l,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return s.prototype.setScreenReaderContent=function(l){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var u=this.popup.getRow(),d=this.popup.renderer.$textLayer,h=d.element.childNodes[u-d.config.firstRow];if(h){for(var f="doc-tooltip ",p=0;p<this._lines.length;p++)f+="ace-inline-screenreader-line-".concat(p," ");h.setAttribute("aria-describedby",f)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=l.split(/\r\n|\r|\n/);var c=this.createCodeBlock();this.screenReaderDiv.appendChild(c)},s.prototype.destroy=function(){this.screenReaderDiv.remove()},s.prototype.createCodeBlock=function(){var l=document.createElement("pre");l.setAttribute("id","ace-inline-screenreader");for(var c=0;c<this._lines.length;c++){var u=document.createElement("code");u.setAttribute("id","ace-inline-screenreader-line-".concat(c));var d=document.createTextNode(this._lines[c]);u.appendChild(d),l.appendChild(u)}return l},s}();r.AceInlineScreenReader=o}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(n,r,a){var o=n("../snippets").snippetManager,s=n("./inline_screenreader").AceInlineScreenReader,l=function(){function c(){this.editor=null}return c.prototype.show=function(u,d,h){if(h=h||"",u&&this.editor&&this.editor!==u&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!u||!d)return!1;this.inlineScreenReader||(this.inlineScreenReader=new s(u));var f=d.snippet?o.getDisplayTextForSnippet(u,d.snippet):d.value;return d.hideInlinePreview||!f||!f.startsWith(h)?!1:(this.editor=u,this.inlineScreenReader.setScreenReaderContent(f),f=f.slice(h.length),f===""?u.removeGhostText():u.setGhostText(f),!0)},c.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},c.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},c.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},c}();r.AceInline=l}),ace.define("ace/autocomplete/util",["require","exports","module"],function(n,r,a){r.parForEach=function(s,l,c){var u=0,d=s.length;d===0&&c();for(var h=0;h<d;h++)l(s[h],function(f,p){u++,u===d&&c(f,p)})};var o=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(s,l,c){c=c||o;for(var u=[],d=l-1;d>=0&&c.test(s[d]);d--)u.push(s[d]);return u.reverse().join("")},r.retrieveFollowingIdentifier=function(s,l,c){c=c||o;for(var u=[],d=l;d<s.length&&c.test(s[d]);d++)u.push(s[d]);return u},r.getCompletionPrefix=function(s){var l=s.getCursorPosition(),c=s.session.getLine(l.row),u;return s.completers.forEach((function(d){d.identifierRegexps&&d.identifierRegexps.forEach((function(h){!u&&h&&(u=this.retrievePrecedingIdentifier(c,l.column,h))}).bind(this))}).bind(this)),u||this.retrievePrecedingIdentifier(c,l.column)},r.triggerAutocomplete=function(s,c){var c=c??s.session.getPrecedingCharacter();return s.completers.some(function(u){if(u.triggerCharacters&&Array.isArray(u.triggerCharacters))return u.triggerCharacters.includes(c)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(n,r,a){var o=n("./keyboard/hash_handler").HashHandler,s=n("./autocomplete/popup").AcePopup,l=n("./autocomplete/inline").AceInline,c=n("./autocomplete/popup").getAriaId,u=n("./autocomplete/util"),d=n("./lib/lang"),h=n("./lib/dom"),f=n("./snippets").snippetManager,p=n("./config"),m=n("./lib/event"),g=n("./lib/scroll").preventParentScroll,v=function(x,w){w.completer&&w.completer.destroy()},A=function(){function x(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new o,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=d.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=d.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=d.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=d.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=d.delayedCall((function(){var w=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!w||this.editor.completers.length===0||(this.completions=new S(x.completionsForLoading),this.openPopup(this.editor,w.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(x,"completionsForLoading",{get:function(){return[{caption:p.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),x.prototype.$init=function(){return this.popup=new s(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(w){this.insertMatch(),w.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),m.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},x.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new l,this.inlineRenderer},x.prototype.getPopup=function(){return this.popup||this.$init()},x.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},x.prototype.$seen=function(w){!this.hasSeen.has(w)&&w&&w.completer&&w.completer.onSeen&&typeof w.completer.onSeen=="function"&&(w.completer.onSeen(this.editor,w),this.hasSeen.add(w))},x.prototype.$onPopupChange=function(w){if(this.inlineRenderer&&this.inlineEnabled){var _=w?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(_),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},x.prototype.$updateGhostText=function(w){var _=this.base.row,C=this.base.column,R=this.editor.getCursorPosition().column,k=this.editor.session.getLine(_).slice(C,R);this.inlineRenderer.show(this.editor,w,k)?this.$seen(w):this.inlineRenderer.hide()},x.prototype.$onPopupRender=function(){var w=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var _=this.popup.getFirstVisibleRow();_<=this.popup.getLastVisibleRow();_++){var C=this.popup.getData(_);C&&(!w||C.hideInlinePreview)&&this.$seen(C)}},x.prototype.$onPopupShow=function(w){this.$onPopupChange(w),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},x.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var w=this.editor.container.parentNode,_=[];w;)_.push(w),w.addEventListener("scroll",this.onLayoutChange,{passive:!0}),w=w.parentNode;this.$elements=_}},x.prototype.unObserveLayoutChanges=function(){var w=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(_){_.removeEventListener("scroll",w.onLayoutChange,{passive:!0})}),this.$elements=null},x.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},x.prototype.$updatePopupPosition=function(){var w=this.editor,_=w.renderer,C=_.layerConfig.lineHeight,R=_.$cursorLayer.getPixelPosition(this.base,!0);R.left-=this.popup.getTextLeftOffset();var k=w.container.getBoundingClientRect();R.top+=k.top-_.layerConfig.offset,R.left+=k.left-w.renderer.scrollLeft,R.left+=_.gutterWidth;var P={top:R.top,left:R.left};_.$ghostText&&_.$ghostTextWidget&&this.base.row===_.$ghostText.position.row&&(P.top+=_.$ghostTextWidget.el.offsetHeight);var N=w.container.getBoundingClientRect().bottom-C,L=N<P.top?{top:N,left:P.left}:P;this.popup.tryShow(L,C,"bottom")||this.popup.tryShow(R,C,"top")||this.popup.show(R,C)},x.prototype.openPopup=function(w,_,C){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var R=this.popup.getRow(),k=this.popup.data[R];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:c(this.popup.getRow()),inline:this.inlineEnabled}),w.keyBinding.addKeyboardHandler(this.keyboardHandler);var P;this.stickySelection&&(P=this.popup.data.indexOf(k)),(!P||P===-1)&&(P=0),this.popup.setRow(this.autoSelect?P:-1),P===R&&k!==this.completions.filtered[P]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(P===R&&N){var L=this.popup.getData(this.popup.getRow());this.$updateGhostText(L)}C||(this.popup.setTheme(w.getTheme()),this.popup.setFontSize(w.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},x.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},x.prototype.changeListener=function(w){var _=this.editor.selection.lead;(_.row!=this.base.row||_.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},x.prototype.blurListener=function(w){var _=document.activeElement,C=this.editor.textInput.getElement(),R=w.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(w.relatedTarget),k=this.popup&&this.popup.container;_!=C&&_.parentNode!=k&&!R&&_!=this.tooltipNode&&w.relatedTarget!=C&&this.detach()},x.prototype.mousedownListener=function(w){this.detach()},x.prototype.mousewheelListener=function(w){this.popup&&!this.popup.isMouseOver&&this.detach()},x.prototype.mouseOutListener=function(w){this.popup.isOpen&&this.$updatePopupPosition()},x.prototype.goTo=function(w){this.popup.goTo(w)},x.prototype.insertMatch=function(w,_){if(w||(w=this.popup.getData(this.popup.getRow())),!w)return!1;if(w.value==="")return this.detach();var C=this.completions,R=this.getCompletionProvider().insertMatch(this.editor,w,C.filterText,_);return this.completions==C&&this.detach(),R},x.prototype.showPopup=function(w,_){this.editor&&this.detach(),this.activated=!0,this.editor=w,w.completer!=this&&(w.completer&&w.completer.detach(),w.completer=this),w.on("changeSelection",this.changeListener),w.on("blur",this.blurListener),w.on("mousedown",this.mousedownListener),w.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,_)},x.prototype.getCompletionProvider=function(w){return this.completionProvider||(this.completionProvider=new y(w)),this.completionProvider},x.prototype.gatherCompletions=function(w,_){return this.getCompletionProvider().gatherCompletions(w,_)},x.prototype.updateCompletions=function(w,_){if(w&&this.base&&this.completions){var R=this.editor.getCursorPosition(),k=this.editor.session.getTextRange({start:this.base,end:R});if(k==this.completions.filterText)return;if(this.completions.setFilter(k),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==k&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,k,w);return}if(_&&_.matches){var R=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(R.row,R.column),this.base.$insertRight=!0,this.completions=new S(_.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",w)}var C=this.editor.getSession(),R=this.editor.getCursorPosition(),k=u.getCompletionPrefix(this.editor);this.base=C.doc.createAnchor(R.row,R.column-k.length),this.base.$insertRight=!0;var P={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:k,pos:R}).provideCompletions(this.editor,P,(function(N,L,I){var b=L.filtered,T=u.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),I){if(!b.length){var M=!this.autoShown&&this.emptyMessage;if(typeof M=="function"&&(M=this.emptyMessage(T)),M){var D=[{caption:M,value:""}];this.completions=new S(D),this.openPopup(this.editor,T,w),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(b.length==1&&b[0].value==T&&!b[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&b.length==1)return this.insertMatch(b[0])}this.completions=!I&&this.showLoadingState?new S(x.completionsForLoading.concat(b),L.filterText):L,this.openPopup(this.editor,T,w),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!I)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},x.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},x.prototype.updateDocTooltip=function(){var w=this.popup,_=this.completions.filtered,C=_&&(_[w.getHoveredRow()]||_[w.getRow()]),R=null;if(!C||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var k=this.editor.completers.length,P=0;P<k;P++){var N=this.editor.completers[P];if(N.getDocTooltip&&C.completerId===N.id){R=N.getDocTooltip(C);break}}if(!R&&typeof C!="string"&&(R=C),typeof R=="string"&&(R={docText:R}),!R||!R.docHTML&&!R.docText)return this.hideDocTooltip();this.showDocTooltip(R)},x.prototype.showDocTooltip=function(w){this.tooltipNode||(this.tooltipNode=h.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",g));var _=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(_.isDark?"ace_dark ":"")+(_.cssClass||"");var C=this.tooltipNode;w.docHTML?C.innerHTML=w.docHTML:w.docText&&(C.textContent=w.docText),C.parentNode||this.popup.container.appendChild(this.tooltipNode);var R=this.popup,k=R.container.getBoundingClientRect();C.style.top=R.container.style.top,C.style.bottom=R.container.style.bottom,C.style.display="block",window.innerWidth-k.right<320?k.left<320?R.isTopdown?(C.style.top=k.bottom+"px",C.style.left=k.left+"px",C.style.right="",C.style.bottom=""):(C.style.top=R.container.offsetTop-C.offsetHeight+"px",C.style.left=k.left+"px",C.style.right="",C.style.bottom=""):(C.style.right=window.innerWidth-k.left+"px",C.style.left=""):(C.style.left=k.right+1+"px",C.style.right="")},x.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var w=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==w&&this.editor.focus(),this.tooltipNode=null,w.parentNode&&w.parentNode.removeChild(w)}},x.prototype.onTooltipClick=function(w){for(var _=w.target;_&&_!=this.tooltipNode;){if(_.nodeName=="A"&&_.href){_.rel="noreferrer",_.target="_blank";break}_=_.parentNode}},x.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var w=this.popup.container;w&&w.parentNode&&w.parentNode.removeChild(w)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",v),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},x}();A.prototype.commands={Up:function(x){x.completer.goTo("up")},Down:function(x){x.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(x){x.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(x){x.completer.goTo("end")},Esc:function(x){x.completer.detach()},Return:function(x){return x.completer.insertMatch()},"Shift-Return":function(x){x.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(x){var w=x.completer.insertMatch();if(w||x.tabstopManager)return w;x.completer.goTo("down")},Backspace:function(x){x.execCommand("backspace");var w=u.getCompletionPrefix(x);!w&&x.completer&&x.completer.detach()},PageUp:function(x){x.completer.popup.gotoPageUp()},PageDown:function(x){x.completer.popup.gotoPageDown()}},A.for=function(x){return x.completer instanceof A||(x.completer&&(x.completer.destroy(),x.completer=null),p.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),x.completer=A.$sharedInstance):(x.completer=new A,x.once("destroy",v))),x.completer},A.startCommand={name:"startAutocomplete",exec:function(x,w){var _=A.for(x);_.autoInsert=!1,_.autoSelect=!0,_.autoShown=!1,_.showPopup(x,w),_.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var y=function(){function x(w){this.initialPosition=w,this.active=!0}return x.prototype.insertByIndex=function(w,_,C){return!this.completions||!this.completions.filtered?!1:this.insertMatch(w,this.completions.filtered[_],C)},x.prototype.insertMatch=function(w,_,C){if(!_)return!1;if(w.startOperation({command:{name:"insertMatch"}}),_.completer&&_.completer.insertMatch)_.completer.insertMatch(w,_);else{if(!this.completions)return!1;var R=this.completions.filterText.length,k=0;if(_.range&&_.range.start.row===_.range.end.row&&(R-=this.initialPosition.prefix.length,R+=this.initialPosition.pos.column-_.range.start.column,k+=_.range.end.column-this.initialPosition.pos.column),R||k){var P;w.selection.getAllRanges?P=w.selection.getAllRanges():P=[w.getSelectionRange()];for(var N=0,L;L=P[N];N++)L.start.column-=R,L.end.column+=k,w.session.remove(L)}_.snippet?f.insertSnippet(w,_.snippet):this.$insertString(w,_),_.completer&&_.completer.onInsert&&typeof _.completer.onInsert=="function"&&_.completer.onInsert(w,_),_.command&&_.command==="startAutocomplete"&&w.execCommand(_.command)}return w.endOperation(),!0},x.prototype.$insertString=function(w,_){var C=_.value||_;w.execCommand("insertstring",C)},x.prototype.gatherCompletions=function(w,_){var C=w.getSession(),R=w.getCursorPosition(),k=u.getCompletionPrefix(w),P=[];this.completers=w.completers;var N=w.completers.length;return w.completers.forEach(function(L,I){L.getCompletions(w,C,R,k,function(b,T){L.hideInlinePreview&&(T=T.map(function(M){return Object.assign(M,{hideInlinePreview:L.hideInlinePreview})})),!b&&T&&(P=P.concat(T)),_(null,{prefix:u.getCompletionPrefix(w),matches:P,finished:--N===0})})}),!0},x.prototype.provideCompletions=function(w,_,C){var R=(function(L){var I=L.prefix,b=L.matches;this.completions=new S(b),_.exactMatch&&(this.completions.exactMatch=!0),_.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(I),(L.finished||this.completions.filtered.length)&&C(null,this.completions,L.finished)}).bind(this),k=!0,P=null;if(this.gatherCompletions(w,(function(L,I){if(this.active){L&&(C(L,[],!0),this.detach());var b=I.prefix;if(b.indexOf(I.prefix)===0){if(k){P=I;return}R(I)}}}).bind(this)),k=!1,P){var N=P;P=null,R(N)}},x.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(w){typeof w.cancel=="function"&&w.cancel()})},x}(),S=function(){function x(w,_){this.all=w,this.filtered=w,this.filterText=_||"",this.exactMatch=!1,this.ignoreCaption=!1}return x.prototype.setFilter=function(w){if(w.length>this.filterText&&w.lastIndexOf(this.filterText,0)===0)var _=this.filtered;else var _=this.all;this.filterText=w,_=this.filterCompletions(_,this.filterText),_=_.sort(function(R,k){return k.exactMatch-R.exactMatch||k.$score-R.$score||(R.caption||R.value).localeCompare(k.caption||k.value)});var C=null;_=_.filter(function(R){var k=R.snippet||R.caption||R.value;return k===C?!1:(C=k,!0)}),this.filtered=_},x.prototype.filterCompletions=function(w,_){var C=[],R=_.toUpperCase(),k=_.toLowerCase();e:for(var P=0,N;N=w[P];P++){var L=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(L){var I=-1,b=0,T=0,M,D;if(this.exactMatch){if(_!==L.substr(0,_.length))continue e}else{var B=L.toLowerCase().indexOf(k);if(B>-1)T=B;else for(var j=0;j<_.length;j++){var H=L.indexOf(k[j],I+1),U=L.indexOf(R[j],I+1);if(M=H>=0&&(U<0||H<U)?H:U,M<0)continue e;D=M-I-1,D>0&&(I===-1&&(T+=10),T+=D,b|=1<<j),I=M}}N.matchMask=b,N.exactMatch=T?0:1,N.$score=(N.score||0)-T,C.push(N)}}return C},x}();r.Autocomplete=A,r.CompletionProvider=y,r.FilteredList=S}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(n,r,a){function o(u,d){var h=u.getTextRange(l.fromPoints({row:0,column:0},d));return h.split(c).length-1}function s(u,d){var h=o(u,d),f=u.getValue().split(c),p=Object.create(null),m=f[h];return f.forEach(function(g,v){if(!(!g||g===m)){var A=Math.abs(h-v),y=f.length-A;p[g]?p[g]=Math.max(y,p[g]):p[g]=y}}),p}var l=n("../range").Range,c=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(u,d,h,f,p){var m=s(d,h),g=Object.keys(m);p(null,g.map(function(v){return{caption:v,value:v,score:m[v],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(n,r,a){var o=n("../snippets").snippetManager,s=n("../autocomplete").Autocomplete,l=n("../config"),c=n("../lib/lang"),u=n("../autocomplete/util"),d=n("../autocomplete/text_completer"),h={getCompletions:function(R,k,P,N,L){if(k.$mode.completer)return k.$mode.completer.getCompletions(R,k,P,N,L);var I=R.session.getState(P.row),b=k.$mode.getCompletions(I,k,P,N);b=b.map(function(T){return T.completerId=h.id,T}),L(null,b)},id:"keywordCompleter"},f=function(R){var k={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(P,N,L,I){return k[N]=I||""}).replace(/\$(\d+?)/g,function(P,N){return k[N]})},p={getCompletions:function(R,k,P,N,L){var I=[],b=k.getTokenAt(P.row,P.column);b&&b.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?I.push("html-tag"):I=o.getActiveScopes(R);var T=o.snippetMap,M=[];I.forEach(function(D){for(var B=T[D]||[],j=B.length;j--;){var H=B[j],U=H.name||H.tabTrigger;U&&M.push({caption:U,snippet:H.content,meta:H.tabTrigger&&!H.name?H.tabTrigger+"⇥ ":"snippet",completerId:p.id})}},this),L(null,M)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",c.escapeHTML(R.caption),"</b>","<hr></hr>",c.escapeHTML(f(R.snippet))].join(""))},id:"snippetCompleter"},m=[p,d,h];r.setCompleters=function(R){m.length=0,R&&m.push.apply(m,R)},r.addCompleter=function(R){m.push(R)},r.textCompleter=d,r.keyWordCompleter=h,r.snippetCompleter=p;var g={name:"expandSnippet",exec:function(R){return o.expandWithTab(R)},bindKey:"Tab"},v=function(R,k){A(k.session.$mode)},A=function(R){typeof R=="string"&&(R=l.$modes[R]),R&&(o.files||(o.files={}),y(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(A))},y=function(R,k){!k||!R||o.files[R]||(o.files[R]={},l.loadModule(k,function(P){P&&(o.files[R]=P,!P.snippets&&P.snippetText&&(P.snippets=o.parseSnippetFile(P.snippetText)),o.register(P.snippets||[],P.scope),P.includeScopes&&(o.snippetMap[P.scope].includeScopes=P.includeScopes,P.includeScopes.forEach(function(N){A("ace/mode/"+N)})))}))},S=function(R){var k=R.editor,P=k.completer&&k.completer.activated;if(R.command.name==="backspace")P&&!u.getCompletionPrefix(k)&&k.completer.detach();else if(R.command.name==="insertstring"&&!P){x=R;var N=R.editor.$liveAutocompletionDelay;N?w.delay(N):_(R)}},x,w=c.delayedCall(function(){_(x)},0),_=function(R){var k=R.editor,P=u.getCompletionPrefix(k),N=R.args,L=u.triggerAutocomplete(k,N);if(P&&P.length>=k.$liveAutocompletionThreshold||L){var I=s.for(k);I.autoShown=!0,I.showPopup(k)}},C=n("../editor").Editor;n("../config").defineOptions(C.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:m),this.commands.addCommand(s.startCommand)):this.commands.removeCommand(s.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:m),this.commands.on("afterExec",S)):this.commands.off("afterExec",S)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(g),this.on("changeMode",v),v(null,this)):(this.commands.removeCommand(g),this.off("changeMode",v))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(n){t&&(t.exports=n)})}()})(Kds);const Wds=["AND","AS","ASC","AVG","BY","CASE","COUNT","CREATE","CROSS","DATABASE","DEFAULT","DELETE","DESC","DISTINCT","DROP","ELSE","END","FOREIGN","FROM","GRANT","GROUP","HAVING","IF","INNER","INSERT","JOIN","KEY","LEFT","LIMIT","MAX","MIN","NATURAL","NOT","NULL","OFFSET","ON","OR","ORDER","OUTER","PRIMARY","REFERENCES","RIGHT","SELECT","SUM","TABLE","THEN","TYPE","UNION","UPDATE","WHEN","WHERE"],Qds=["BIGINT","BINARY","BIT","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","MONEY","NUMBER","NUMERIC","REAL","SET","TEXT","TIMESTAMP","VARCHAR"],qds=Wds.concat(Qds),rFe=qds.map(t=>({meta:"sql",name:t,score:100,value:t}));function Yds({keywordsRegex:t,columnWantedKeywords:e,tableWantedKeywords:n,tableRegex:r,schemaTableRegex:a,tablesById:o,tablesBySchema:s,tablesByName:l,initialTableWantedSuggestions:c}){return{getCompletions(d,h,f,p,m){var I;let g="",v="";const A=f.row;for(let b=A;b>=0;b-=1){let T=h.getDocument().getLine(b).toLowerCase();b===A&&(T=T.slice(0,f.column));const M=(I=T.match(t))==null?void 0:I.pop();if(M){e.has(M)&&(g=M,v="COLUMN"),n.has(M)&&(g=M,v="TABLE"),b=0;break}}const S=h.getDocument().getLine(f.row).slice(0,f.column).split(/\s+/).map(b=>b.toLowerCase()),x=S[S.length-1];let w;if(x.indexOf(".")>=0&&(w=x.substring(0,x.length-1)),!w&&v==="")return m(null,rFe);if(v==="")return null;const _=new Set(h.getValue().toLowerCase().match(r)),C=new Set(h.getValue().toLowerCase().match(a)),R=new Set([..._,...C]),k={};R.forEach(b=>{const T=o[b],M=l[b];T&&M&&T.id===M.id?k[T.id]=T:(T&&(k[T.id]=T),M&&(k[M.id]=M))});const P={},N={},L={};if(Object.values(k).forEach(b=>{var T;b.schemaCompletion&&(P[b.schemaCompletion.id]=b.schemaCompletion),(T=b.columnCompletions)==null||T.forEach(M=>{N[M.id]=M}),b.schemaCompletion&&(L[b.schemaCompletion.id]||(L[b.schemaCompletion.id]=[]),L[b.schemaCompletion.id].push(b),L[b.id]||(L[b.id]=[]),b.columnCompletions&&(L[b.id]=b.columnCompletions)),L[b.name]||(L[b.name]=[]),b.columnCompletions&&(L[b.name]=L[b.name].concat(b.columnCompletions))}),w&&v==="TABLE"){const b=w.split(".")[0];return m(null,s[b])}if(w&&v==="COLUMN"){const b=w.split(".")[0];let T=(L[b]||[]).map(M=>({value:M.value,meta:M.meta,score:1}));return g==="select"&&(T=T.concat((s[b]||[]).map(M=>({value:M.value,meta:M.meta,score:0})))),m(null,T)}if(!w&&v==="TABLE")return m(null,rFe.concat(c));if(!w&&v==="COLUMN"){let b=Object.values(P).concat(Object.values(k)).concat(Object.values(N)).map(T=>({value:T.value,meta:T.meta,score:1}));return g==="select"&&(b=b.concat(rFe.concat(c).map(T=>({value:T.value,meta:T.meta,score:0})))),m(null,b)}return m(null,null)}}}function Bht({onChange:t,readOnly:e,value:n,storyTheme:r,setIsRunDisabled:a,selectedSchemaSidebarValue:o,handleComments:s,disabled:l=!1,setParentEditor:c,editor:u}){const{config:d}=tCe();jit();const[h,f]=Y.useState({width:-1,height:150}),{width:p,height:m}=h,g=Iga(),v=Pit(),A=Afn(),y=SV(),S=Y.useRef();Y.useEffect(()=>{const I=new Worker(URL.createObjectURL(new Blob([`(${Vds})()`])));return S.current=I,S!=null&&S.current&&S.current.postMessage({schemas:y}),S.current.onmessage=b=>{const{keywordsRegex:T,columnWantedKeywords:M,tableWantedKeywords:D,tableRegex:B,schemaTableRegex:j,tablesById:H,tablesBySchema:U,tablesByName:$,initialTableWantedSuggestions:z}=b.data,Z=Yds({keywordsRegex:T,columnWantedKeywords:M,tableWantedKeywords:D,tableRegex:B,schemaTableRegex:j,tablesById:H,tablesBySchema:U,tablesByName:$,initialTableWantedSuggestions:z});u.completers=[Z]},()=>{var b;(b=S.current)==null||b.terminate()}},[u]),Y.useEffect(()=>()=>{Cit(!1)},[]),Y.useEffect(()=>{y!=null&&y.length&&S!=null&&S.current&&S.current.postMessage({schemas:y})},[y==null?void 0:y.length]);const x="select|from|where|and|or|as|case|when|then|else|end|type|desc|asc|primary|key|if|foreign|not|references|default|null|database|grant",w="create|table|alter|drop|index|user|analyze|refresh|statistics|column|parameterized|view|materialized",_="distinct|group|by|having|order|limit|offset|union|intersect|minus|expect|left|right|outer|inner|cross|natural|join|on|insert|update|with|merge|delete",C="begin|commit|rollback",R="avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|decode|greatest|least|nullif|ifnull|isnull|nvl|nvl2|casewhen|cast|convert",k="int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer",P="true|false",N=I=>{var D;if(!s)return null;let b="",T=-1,M=!1;return(D=I==null?void 0:I.split(`
`))==null||D.every((B,j)=>{let H="";if((B==null?void 0:B.length)>2){const U=B.indexOf("-");U!==-1&&B[U+1]==="-"&&(H=B.substring(U+2))}if(!H){const U=B.indexOf("/");U!==-1&&B[U+1]==="/"&&(H=B.substring(U+2))}return H=H==null?void 0:H.trim(),H&&(T===-1?(b+=`${H}
`,T=j):j-1===T?(b+=`${H}
`,T=j):T!==-1&&(M=!0)),!M}),s(b),null},L=Y.useMemo(()=>[u,t,d],[u,t,d]);return Y.useEffect(()=>{var I,b,T,M,D,B,j;if(u&&t&&n){let H=!0,U=!0;(T=(b=(I=u==null?void 0:u.session)==null?void 0:I.bgTokenizer)==null?void 0:b.lines)==null||T.every($=>(U&&$&&(U=!1),H?($==null||$.every(z=>{var Z,K;return!(z!=null&&z.type.match("comment"))&&((K=(Z=z==null?void 0:z.value)==null?void 0:Z.trim())==null?void 0:K.length)>0?(H=!1,!1):!0}),!0):!1)),s&&N(n),!U&&((B=(D=(M=u==null?void 0:u.session)==null?void 0:M.bgTokenizer)==null?void 0:D.lines)!=null&&B.length)&&(n!=null&&n.length)&&a&&a(H)}if(u&&t){u.commands.on("afterExec",$=>{$.command.name==="insertstring"&&/^[\w.]$/.test($.args)&&$.args==="."&&u.execCommand("startAutocomplete")});const H=u.session.$mode,U=(j=H==null?void 0:H.$highlightRules)==null?void 0:j.createKeywordMapper({function:R,customddl:w,customdml:_,customtransactions:C,keyword:x,boolean:P,type:k},"identifier",!0);u.session.$mode.$highlightRules.$rules.start.unshift({token:U,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b",onMatch:null}),u.session.$mode.$highlightRules.$rules.start.unshift({token:"templateTag",regex:"{{[^}]*}}",onMatch:null}),u.session.$mode.$tokenizer=null,u.session.bgTokenizer.setTokenizer(u.session.$mode.getTokenizer()),u.session.bgTokenizer.start(0),u.session.setUseWrapMode(!!(d!=null&&d.editorWordWrap))}},L),Y.useEffect(()=>{if(o){const I=o,b=u.getCursorPosition();u.session.insert(b,I)}},[o]),Y.useEffect(()=>{var I;(I=u==null?void 0:u.getSession())==null||I.clearAnnotations()},[t]),E.jsx(JCe,{bounds:!0,onResize:I=>f(I.bounds),children:({measureRef:I})=>E.jsx(Gds,{ref:I,theme:r,isWhite:A,children:E.jsx(eCe,{editorProps:{$blockScrolling:1/0},focus:!1,height:`${m-48}px`,fontSize:14,highlightActiveLine:!1,mode:"sql",name:"query-ace-editor",onChange:t,onLoad:b=>{c&&c(b)},readOnly:l||e,setOptions:{useWorker:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!1,showLineNumbers:!0,tabSize:2},showGutter:!0,showPrintMargin:!1,theme:v,defaultValue:n,width:`${p}px`,placeholder:g?q.NEW_VIZ_EDITOR_PLACEHOLDER:q.BEGIN_WRITING_QUERY,className:l?"editorDisabled":""})})})}Bht.propTypes={onChange:kt.func,readOnly:kt.bool,value:kt.string};Bht.defaultProps={readOnly:!1,value:""};const Jds=ke.memo(Bht);function Zds({isRunning:t=!1,invalidUser:e=!1}){const n=K_e(),r=xV();return E.jsx(Pn,{label:q.FIND_DATA_OBJECTS_SHORTCUT_KEY(n),children:E.jsx(Jt,{variant:"contained",color:"secondary",className:"editorBtn",onClick:Qne,disabled:t||r||e,style:{fontSize:"12px"},children:n?E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"iconLeft",children:E.jsx(smi,{})}),q.HIDE_FIND_DATA]}):E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"iconLeft",children:E.jsx(omi,{})}),q.FIND_DATA]})})})}const Xds=ke.memo(Zds);var Dht={},ehs=As;Object.defineProperty(Dht,"__esModule",{value:!0});var Ztr=Dht.default=void 0,ths=ehs(Ps()),nhs=E;Ztr=Dht.default=(0,ths.default)((0,nhs.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");const rhs=gt.div`
  && {
    position: absolute;
    top: -18px;
    left: ${t=>!t.menuPosition&&"calc(100% + 25px)"};
    right: ${t=>t.menuPosition&&"0"};
    width: 580px;
    z-index: 99;
    .sqlContent {
      background: ${t=>t.theme.custom.boxBg};
      padding: 16px;
      border: 1px solid #675b8c;
      box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
      border-radius: 8px;
      position: relative;
      max-height: calc(100vh - 80px);
      overflow: auto;
      .contentInner {
        padding: 16px;
        border-radius: 8px;
        background: ${t=>t.theme.custom.secondaryBg};
        box-shadow: 4px 4px 24px 0px rgba(7, 1, 26, 0.45);
        overflow: auto;
        .header {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 16px;
          h2 {
            font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
            font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
            color: ${t=>t.theme.custom.white.A11};
            display: flex;
            align-items: center;
            margin-bottom: 0;
            svg {
              margin: -5px 8px 0 0;
            }
            .commonSwitch {
              position: unset;
              margin-left: 16px;
            }
          }
        }
        p {
          color: ${t=>t.theme.custom.greyText.A2};
        }
        .stack {
          display: flex;
          flex-wrap: wrap;
          gap: 8px;
        }
      }
      .templateBlock {
        background: transparent;
        box-shadow: unset;
        &:before {
          display: none;
        }
        + .templateBlock {
          border-top: 1px solid rgba(255, 255, 255, 0.1);
          margin-top: 16px;
          padding-top: 16px;
        }
        .blockHead {
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
          font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
          color: ${t=>t.theme.custom.white.A11};
          margin-bottom: 16px;
          display: flex;
          align-items: center;
          margin: 0;
          padding: 0;
          min-height: unset;
          .MuiAccordionSummary-content {
            align-items: center;
          }
          .MuiAccordionSummary-expandIconWrapper {
            color: ${t=>t.theme.custom.white.A11};
          }
          .MuiAccordionSummary-content,
          .MuiAccordionSummary-content.expanded {
            margin: 0;
          }
        }
        .MuiAccordionDetails-root {
          padding: 12px 0 0;
        }
      }
    }
    ${t=>t.theme.breakpoints.down("md")} {
      top: 30px;
      left: unset;
      right: 0;
      bottom: 60px;
      display: flex;
      align-items: flex-end;
      .sqlContent {
        max-height: 100%;
      }
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      width: 100%;
    }
  }

  .viewProofOfSqlDocsAnchor {
    color: ${t=>t.theme.custom.white.A11};
    font-size: 11px;
    :hover {
      text-decoration: underline;
    }
  }
`,ihs=()=>{ke.useState("panel1");const[t,e]=ke.useState(!1),n=xfn(),r=jit(),a=wfn(),o=Sfn(),{width:s}=Is();Y.useEffect(()=>{s-o<600?e(!0):e(!1)},[o,s]),Y.useEffect(()=>{d1a()},[]);const l=()=>{u1a(!r)};return E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:n?q.PROOF_OF_SQL:`${q.PROOF_OF_SQL} - ${q.COMING_SOON}`,children:E.jsx("span",{className:`proofOfSqlBtn ${r?"active":""}`,children:E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>Ikt(!a),className:a?"open":"",disabled:!n,children:E.jsx(_Et,{})})})}),a&&E.jsx(rhs,{menuPosition:t,children:E.jsx("div",{className:"sqlContent",children:E.jsxs("div",{className:"contentInner",children:[E.jsxs("div",{className:"header",children:[E.jsxs("h2",{children:[E.jsx(_Et,{}),q.PROOF_OF_SQL,E.jsx(d8,{checked:r,handleChange:l,showText:"disabled",hideText:"enabled"})]}),E.jsx(_n,{onClick:()=>Ikt(!1),children:E.jsx(Wl,{})})]}),E.jsx("p",{children:`${q.PROOF_OF_SQL_INFO_1} `}),E.jsxs("p",{children:[q.PROOF_OF_SQL_INFO_2,E.jsx("a",{className:"viewProofOfSqlDocsAnchor",href:"https://docs.spaceandtime.io/docs/running-tamperproof-queries",children:q.VIEW_DOCS_ANCHOR})]}),E.jsxs("p",{children:[q.PROOF_OF_SQL_INFO_3,E.jsx("a",{className:"viewProofOfSqlDocsAnchor",href:"https://docs.spaceandtime.io/docs/building-tamperproof-tables",children:q.VIEW_DOCS_ANCHOR})]})]})})})]})};function ahs({isRunDisabled:t=!1,disabled:e=!1,setQueryText:n,queryComments:r,value:a,abortController:o,toShowRunQueryOptionOnly:s=!1,getSuggestedQuery:l,annotation:c=[]}){const u=ho(),d=Yw(),h=Boe(),f=$oe(),p=dfn(),m=SV(),g=hfn(),v=V_e(h),A=_Aa(),y=BAa(),S=yfn(),x=xV(),w=jit(),_=async C=>{if(C){let R="";if(r){const k=r.replace(/(\r\n|\n|\r)/gm," ").trim();await n(`--${k}`),R+=`--${k}`}else{const k=a.replace(/(\r\n|\n|\r)/gm," ").trim();await n(`--${k}`),R+=`--${k}`}R+=C,R=Yit(R),n(R),Ofn(S+1),S<3?vVe("",o,m,R,y):Kit(!1),m1a.test(y)&&AVe(R),t1e("")}};return Y.useEffect(()=>{y&&_(`
${y.replace(/\n$/,"")}`)},[y]),E.jsxs(E.Fragment,{children:[!s&&E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:q.SAVE_QUERY_SHORTCUT_KEY,children:E.jsx("span",{className:"saveQuery",children:E.jsxs(Jt,{onClick:()=>{if(!u){co(!0);return}zit()},disabled:f||!p||A||!v||d||t||x||e,variant:"contained",color:"secondary",className:"editorBtn",style:{fontSize:"12px"},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(_an,{})}),E.jsx("span",{className:"editorBtnText",children:q.SAVE})]})})}),E.jsx(Pn,{label:q.FORMAT_QUERY_SHORTCUT_KEY,children:E.jsx("span",{children:E.jsxs(Jt,{variant:"contained",color:"secondary",disabled:!v||d||x||t,onClick:()=>{AVe(v)},className:"editorBtn",style:{fontSize:"12px"},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(tmi,{})}),E.jsx("span",{className:"editorBtnText",children:q.FORMAT})]})})})]}),E.jsx(ihs,{}),d||x?E.jsx(Pn,{label:q.ABORT_QUERY,children:E.jsx("span",{className:"runQuery",children:E.jsxs(Jt,{variant:"contained",onClick:()=>{const C=new Date;o!=null&&o.current&&o.current.abort(),_a.queryAborted({query_id:h||"",query_text:v||"",query_aborted_time:C-g,timestamp:Date.now()})},className:"editorBtn",style:{fontSize:"12px",width:"120px"},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(Ztr,{fontSize:"small"})}),E.jsx("span",{className:"editorBtnText",children:q.ABORT_QUERY})]})})}):E.jsx(Pn,{label:q.RUN_QUERY_SHORTCUT_KEY,children:E.jsx("span",{className:"runQuery",children:E.jsxs(Jt,{variant:"contained",onClick:C=>{if(!u){co(!0);return}l(C)},disabled:d||t||x||e||(c==null?void 0:c.length)>0&&w,className:"editorBtn",style:{fontSize:"12px",width:"120px"},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(wan,{})}),E.jsx("span",{className:"editorBtnText",children:q.RUN})]})})})]})}const ohs=ke.memo(ahs),shs=gt.div`
  z-index: 9;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 8px;
  padding: 0 16px;

  .editorBtn {
    padding: 8px 12px 8px 8px;
  }

  .actionButton .MuiButtonBase-root {
    padding: 8px 12px;
  }
  .actionButton {
    display: flex;
    flex-wrap: wrap;
    > span {
      display: inline-block;
      &.proofOfSqlBtn {
        position: relative;
        &.active {
          &:after {
            content: '';
            position: absolute;
            top: -2px;
            right: -2px;
            height: 8px;
            width: 8px;
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.green}};
            border-radius: 50%;
          }
        }
        .MuiButtonBase-root {
          padding: 0 0 4px 0;
          width: 36px;
          height: 36px;
          &.open {
            background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.primaryBg}};
            border-color: transparent;
            box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
          }
          svg {
            width: 24px;
            height: 24px;
          }
        }
      }
      :not(:last-child) {
        margin-right: 12px;
      }
    }
  }
  .copyQueryIdButton {
    margin-right: 8px;
  }

  .chatGptButton {
    position: relative;
  }
  .loading:after {
    content: ' .';
    font-size: 45px;
    animation: dots 1s steps(5, end) infinite;
    position: absolute;
    top: -15%;
    left: 24px;
  }
  @keyframes dots {
    0%,
    20% {
      color: rgba(0, 0, 0, 0);
      text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);
    }
    40% {
      color: white;
      text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);
    }
    60% {
      text-shadow: 0.25em 0 0 white, 0.5em 0 0 rgba(0, 0, 0, 0);
    }
    80%,
    100% {
      text-shadow: 0.25em 0 0 white, 0.5em 0 0 white;
    }
  }
  ${t=>t.theme.breakpoints.down("md")} {
    padding: 0;
    .actionButton {
      display: flex;
      flex-wrap: wrap;
      .editorBtn {
        .iconLeft {
          margin-right: 0;
        }
      }
      > span {
        :not(:last-child) {
          margin-right: 16px;
        }
      }
    }
  }
`,lhs=gt.div`
  position: relative;
  background: ${t=>{var e,n;return(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.editorBg}};
  backdrop-filter: blur(200px);
  border-radius: 8px;
  box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
  padding: 16px 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s;
  -webkit-transition: 0.4s;

  .aiSwitch {
    position: absolute;
    top: 15px;
    right: 55px;
    z-index: 9;
    button {
      box-shadow: 4px 4px 24px 0 rgb(7 1 26 / 45%);
    }
  }
  .bulbIcon {
    position: absolute;
    top: 11px;
    right: 15px;
    z-index: 9;
  }
  .settingDrawerButton {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 9;
  }
  ${t=>t.theme.breakpoints.down("md")} {
    .aiSwitch {
      top: 2px;
      right: 115px;
      button {
        box-shadow: unset;
      }
    }
    .bulbIcon {
      top: 30px;
    }
  }
`;gt.div`
  position: absolute;
  top: 0;
  right: 0;
  width: ${t=>t.showSettingDrawer?"250px":"0px"};
  height: 100%;
  background: ${t=>t.theme.custom.boxBg3};
  z-index: 99;
  box-shadow: 0px 8px 10px -5px rgb(0 0 0 / 20%),
    0px 16px 24px 2px rgb(0 0 0 / 14%), 0px 6px 30px 5px rgb(0 0 0 / 12%);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  overflow: hidden;
  .drawerHead {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid ${t=>t.theme.custom.white.A6};
    h3 {
      margin-bottom: 0;
      color: ${t=>t.theme.custom.white.A1};
    }
  }
  .drawerBody {
    flex: 1;
    padding: 12px;
    overflow: auto;
  }
`;gt.div`
  ul {
    padding: 0;
    list-style: none;
    max-height: 40vh;
    overflow: auto;
    margin-bottom: 0;
  }
  .formContent {
    margin-bottom: 40px;
    .formGroup {
      margin-bottom: 20px;
    }
  }
`;gt.li`
  && {
    cursor: pointer;
    padding: 8px;
    .title {
      color: ${t=>t.theme.custom.greyText.A2};
    }
    .value {
      font-weight: ${t=>t.theme.custom.fontWeight.md};
      margin-top: 3px;
    }
    &:hover {
      background: ${t=>t.theme.custom.white.A6};
    }
    &:not(:first-child) {
      border-top: 1px solid ${t=>t.theme.custom.white.A6};
    }
  }
  // .MuiButtonBase-root {
  //   background: none;
  //   box-shadow: none;
  //   border: 1px solid ${t=>t.theme.custom.greyText.A11};
  //   border-radius: 8px;
  //   color: ${t=>t.theme.custom.white.A11};
  //   font-family: ${t=>t.theme.typography.fontFamily};
  //   font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
  //   font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
  // }
`;var $ht={},chs=As;Object.defineProperty($ht,"__esModule",{value:!0});var FYe=$ht.default=void 0,uhs=chs(Ps()),dhs=E;FYe=$ht.default=(0,uhs.default)((0,dhs.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");const OUt=gt.div`
  && {
    position: absolute;
    top: -18px;
    left: ${t=>!t.menuPosition&&"calc(100% - 15px)"};
    right: ${t=>t.menuPosition&&"50px"};
    width: 580px;
    padding: ${t=>t.menuPosition?"0 16px 0 0":"0 0 0 16px"};
    z-index: 99;
    .arrowLeftIcon {
      position: absolute;
      left: ${t=>!t.menuPosition&&"2px"};
      right: ${t=>t.menuPosition&&"3px"};
      top: ${t=>t.menuPosition?"32px":"40px"};
      color: rgba(97, 97, 97, 0.9);
      transform: rotate(${t=>t.menuPosition?"180deg":"0deg"});
    }
    .templateContent {
      background: ${t=>t.theme.custom.boxBg};
      padding: 16px;
      border: 1px solid #675b8c;
      box-shadow: 4px 4px 32px rgba(7, 1, 26, 0.55);
      border-radius: 8px;
      position: relative;
      width: 100%;
      max-height: calc(100vh - 80px);
      overflow: auto;
      .contentInner {
        padding: 16px;
        border-radius: 8px;
        background: ${t=>t.theme.custom.secondaryBg};
        box-shadow: 4px 4px 24px 0px rgba(7, 1, 26, 0.45);
        overflow: auto;
      }
      .templateBlock {
        background: transparent;
        box-shadow: unset;
        + .templateBlock {
          border-top: 1px solid rgba(255, 255, 255, 0.1);
          margin-top: 16px;
          padding-top: 16px;
        }
        .blockHead {
          font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font14}};
          font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.sm}};
          color: ${t=>t.theme.custom.white.A11};
          margin-bottom: 16px;
          display: flex;
          align-items: center;
          margin: 0;
          padding: 0;
          min-height: unset;
          .MuiAccordionSummary-content {
            align-items: center;
          }
          .MuiAccordionSummary-expandIconWrapper {
            color: ${t=>t.theme.custom.white.A11};
          }
          .MuiAccordionSummary-content,
          .MuiAccordionSummary-content.expanded {
            margin: 0;
          }
        }
        .MuiAccordionDetails-root {
          padding: 12px 0 0;
        }
        .row {
          display: flex;
          flex-wrap: wrap;
          gap: 12px;
          .MuiMenuItem-root {
            flex: 0 0 calc(50% - 6px);
            max-width: calc(50% - 6px);
          }
          &.rowFull {
            .MuiMenuItem-root {
              flex: 0 0 100%;
              max-width: 100%;
            }
          }
        }
      }
      .showMoreBtn {
        text-align: center;
        button:hover {
          text-decoration: underline;
        }
      }
      .MuiMenuItem-root:not(.showMoreBtn) {
        border-radius: 8px;
        box-shadow: 2px 2px 8px 0px rgba(7, 1, 26, 0.45);
        background: ${t=>t.theme.custom.boxBg};
        font-size: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontSize)==null?void 0:r.font12}};
        font-weight: ${t=>{var e,n,r;return(r=(n=(e=t.theme)==null?void 0:e.custom)==null?void 0:n.fontWeight)==null?void 0:r.rg}};
        padding: 9px 12px;
        color: ${t=>t.theme.custom.greyText.A2};
        white-space: normal;
        &:hover {
          color: ${t=>t.theme.custom.white.A11};
        }
      }
    }
    ${t=>t.theme.breakpoints.down("md")} {
      top: 65px;
      left: unset;
      right: 0;
      bottom: 10px;
      z-index: 99;
      display: flex;
      align-items: flex-start;
      padding-left: 0;
      .arrowLeftIcon {
        display: none;
      }
      .templateContent {
        max-height: 100%;
      }
    }
    ${t=>t.theme.breakpoints.down("sm")} {
      width: 100%;
      .templateContent {
        .templateBlock {
          .row {
            .MuiMenuItem-root {
              flex: 0 0 100%;
              max-width: 100%;
              min-height: unset;
            }
          }
        }
      }
    }
    .MuiPopover-paper {
      background: transparent;
      border: 0;
      box-shadow: unset;
      backdrop-filter: unset;
      margin-top: -32px;
      .MuiList-root {
        max-height: unset;
      }
    }
  }
`,Xtr=({handleAddSuggestion:t,isAISearch:e=!1})=>{const[n,r]=ke.useState("panel1"),[a,o]=ke.useState(!1),s=bfn(),l=HAa(),c=ho(),u=Sfn(),{width:d}=Is();Y.useEffect(()=>{d-u<570?o(!0):o(!1)},[u,d]);const h=A=>(y,S)=>{r(S?A:!1)},[f,p]=ke.useState(!1),m=()=>{c?e?tBe(!l):eBe(!s):co(!0)},g=A=>{Ifn(""),t({...A}),eBe(!1)},v=A=>{t({...A}),tBe(!1)};return Y.useEffect(()=>()=>{tBe(!1),eBe(!1)},[]),E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:e?q.AI_QUERY_SUGGESTION_INFO:q.QUERY_SUGGESTION_INFO,tooltipPlacement:"left",children:E.jsxs(Jt,{variant:"contained",color:"secondary",className:"bulbIcon",onClick:m,style:{fontSize:"12px",width:"120px"},children:[E.jsx("span",{style:{marginRight:"5px"},children:E.jsx(Dmi,{})}),E.jsx("span",{children:q.EXAMPLES_LABEL})]})}),e&&l&&E.jsxs(OUt,{menuPosition:a,children:[E.jsx("div",{className:"arrowLeftIcon",children:E.jsx(aze,{})}),E.jsx("div",{className:"templateContent",children:E.jsx("div",{className:"contentInner",children:E.jsxs(mD,{expanded:!0,onChange:h("panel2"),className:"templateBlock",children:[E.jsxs(vD,{className:"blockHead",children:[E.jsx(hOe,{}),q.QUERY_PROMPT_SUGGESTIONS]}),E.jsx(gD,{children:E.jsxs("div",{className:"row rowFull",children:[E.jsx(Dn,{onClick:()=>v({text:"Get number of blocks created on eth over time by week",canRun:!1}),component:"div",children:"Get number of blocks created on eth over time by week"}),E.jsx(Dn,{onClick:()=>v({text:"Show me the last 10 transaction on polygon this week",canRun:!1}),component:"div",children:"Show me the last 10 transaction on polygon this week"}),E.jsx(Dn,{onClick:()=>v({text:"Show me the top users on avax by number of transactions limit 10",canRun:!1}),component:"div",children:"Show me the top users on avax by number of transactions limit 10"}),E.jsx(Dn,{onClick:()=>v({text:"Write a query to show me how many smart contracts where created on Avax in 1 Jan 2023 to 2 Jan 2023",canRun:!1}),component:"div",children:"Write a query to show me how many smart contracts were created on Avax in 1 Jan 2023 to 2 Jan 2023"})]})})]})})})]}),e===!1&&s&&E.jsxs(OUt,{menuPosition:a,children:[E.jsx("div",{className:"arrowLeftIcon",children:E.jsx(aze,{})}),E.jsx("div",{className:"templateContent",children:E.jsxs("div",{className:"contentInner",children:[E.jsxs(mD,{expanded:n==="panel1",onChange:h("panel1"),TransitionProps:{unmountOnExit:!0},className:"templateBlock",children:[E.jsxs(vD,{expandIcon:E.jsx(FYe,{}),className:"blockHead",children:[E.jsx(hOe,{}),q.SQL_STATEMENT_TEMPLATES]}),E.jsx(gD,{children:E.jsx("div",{className:"row",children:nBe==null?void 0:nBe.map(A=>E.jsx(Dn,{onClick:()=>g({text:A==null?void 0:A.sql,comments:A==null?void 0:A.label}),component:"div",children:A==null?void 0:A.key}))})})]}),E.jsxs(mD,{expanded:n==="panel3",onChange:h("panel3"),TransitionProps:{unmountOnExit:!0},className:"templateBlock",children:[E.jsxs(vD,{expandIcon:E.jsx(FYe,{}),className:"blockHead",children:[E.jsx(hOe,{}),`${q.COMING_SOON}: ${q.POPULAR_BUSINESS_TERMS}`]}),E.jsx(gD,{children:E.jsxs("div",{className:"row",children:[E.jsx(Pn,{label:"In the context of the web3 ecosystem and cryptocurrency, LQTY staking refers to the process of locking up LQTY tokens in a designated smart contract to secure, support, and participate in the decentralized governance of the Liquity protocol.",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"lqty staking"})}),E.jsx(Pn,{label:"Uniswap V3 is the third iteration of the popular decentralized exchange protocol built on the Ethereum blockchain, which allows users to trade cryptocurrencies directly with each other using smart contracts and liquidity pools. ",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"uniswap v3"})}),E.jsx(Pn,{label:`In the context of web3 and cryptocurrency, NAV stands for "Net Asset Value." This term is used to represent the value of an entity's assets minus its liabilities, expressed on a per-unit basis. Typically, NAV is found in traditional finance when evaluating investment funds like mutual funds or exchange-traded funds.`,children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"nav"})}),E.jsx(Pn,{label:"Stablecoin, in the context of the web3 ecosystem and cryptocurrency, refers to a type of digital asset or token whose value is pegged to a stable reserve of assets. These reserves can consist of traditional fiat currencies (e.g., USD), precious metals (e.g., Gold)",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"stable coin"})}),E.jsx(Pn,{label:'In the context of Web3 and NFTs, the term "minted" refers to the process of creating and adding a new token, usually a Non-Fungible Token (NFT), to the existing blockchain.',children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"minted"})}),E.jsx(Pn,{label:'In the context of web3 and cryptocurrencies, "cumulative users" refers to the total number of unique individuals who have interacted with a specific decentralized application (dApp), blockchain network, or cryptocurrency platform over a certain period of time, considering all past and present participants.',children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"cumulative users"})}),E.jsx(Pn,{label:"Total trade volume in the context of web3 and cryptocurrency refers to the cumulative value of all digital asset transactions executed on a specific trading platform, or across the entire market, within a defined time frame. This metric is often used as a key performance indicator to assess the health, liquidity, and activity of a particular cryptocurrency,",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"total trade volume"})}),f&&E.jsxs(E.Fragment,{children:[E.jsx(Pn,{label:"A chain ID, in the context of web3 and blockchain technology, refers to the unique identifier associated with a specific blockchain network. It is a numerical value assigned to a particular blockchain to ensure secure and unambiguous transactions within the ecosystem. Chain IDs are critical in distinguishing between different networks and avoiding replay attacks",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"chain id"})}),E.jsx(Pn,{label:"A CryptoPunk NFT (Non-Fungible Token) is a unique digital collectible in the context of web3 and the blockchain ecosystem.",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"cryptopunk nft"})}),E.jsx(Pn,{label:"zkSync is a Layer-2 scaling solution developed for Ethereum, leveraging the concept of Zero-Knowledge Proofs (ZKPs) to enhance the network's scalability, privacy, and security. It aims to provide a more efficient, low-cost, and secure alternative for processing transactions on Ethereum.",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"zksync"})}),E.jsx(Pn,{label:"Looksrare is a community-driven NFT marketplace built on the Ethereum blockchain that focuses on the trading and minting of unique digital art and collectibles.",children:E.jsx(Dn,{onClick:()=>{},component:"div",children:"looksrare"})})]}),E.jsx("div",{className:"showMoreBtn",children:E.jsx(Jt,{onClick:()=>p(A=>!A),children:f?q.SHOW_LESS:q.SHOW_MORE})})]})})]})]})})]})]})};var enr={exports:{}};(function(t){(function(e){var n,r={},a={16:!1,18:!1,17:!1,91:!1},o="all",s={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},l={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},c=function(b){return l[b]||b.toUpperCase().charCodeAt(0)},u=[];for(n=1;n<20;n++)l["f"+n]=111+n;function d(b,T){for(var M=b.length;M--;)if(b[M]===T)return M;return-1}function h(b,T){if(b.length!=T.length)return!1;for(var M=0;M<b.length;M++)if(b[M]!==T[M])return!1;return!0}var f={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function p(b){for(n in a)a[n]=b[f[n]]}function m(b){var T,M,D,B,j,H;if(T=b.keyCode,d(u,T)==-1&&u.push(T),(T==93||T==224)&&(T=91),T in a){a[T]=!0;for(D in s)s[D]==T&&(A[D]=!0);return}if(p(b),!!A.filter.call(this,b)&&T in r){for(H=C(),B=0;B<r[T].length;B++)if(M=r[T][B],M.scope==H||M.scope=="all"){j=M.mods.length>0;for(D in a)(!a[D]&&d(M.mods,+D)>-1||a[D]&&d(M.mods,+D)==-1)&&(j=!1);(M.mods.length==0&&!a[16]&&!a[18]&&!a[17]&&!a[91]||j)&&M.method(b,M)===!1&&(b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation&&b.stopPropagation(),b.cancelBubble&&(b.cancelBubble=!0))}}}function g(b){var T=b.keyCode,M,D=d(u,T);if(D>=0&&u.splice(D,1),(T==93||T==224)&&(T=91),T in a){a[T]=!1;for(M in s)s[M]==T&&(A[M]=!1)}}function v(){for(n in a)a[n]=!1;for(n in s)A[n]=!1}function A(b,T,M){var D,B;D=k(b),M===void 0&&(M=T,T="all");for(var j=0;j<D.length;j++)B=[],b=D[j].split("+"),b.length>1&&(B=P(b),b=[b[b.length-1]]),b=b[0],b=c(b),b in r||(r[b]=[]),r[b].push({shortcut:D[j],scope:T,method:M,key:D[j],mods:B})}function y(b,T){var M,D,B=[],j,H,U;for(M=k(b),H=0;H<M.length;H++){if(D=M[H].split("+"),D.length>1&&(B=P(D),b=D[D.length-1]),b=c(b),T===void 0&&(T=C()),!r[b])return;for(j=0;j<r[b].length;j++)U=r[b][j],U.scope===T&&h(U.mods,B)&&(r[b][j]={})}}function S(b){return typeof b=="string"&&(b=c(b)),d(u,b)!=-1}function x(){return u.slice(0)}function w(b){var T=(b.target||b.srcElement).tagName;return!(T=="INPUT"||T=="SELECT"||T=="TEXTAREA")}for(n in s)A[n]=!1;function _(b){o=b||"all"}function C(){return o||"all"}function R(b){var T,M,D;for(T in r)for(M=r[T],D=0;D<M.length;)M[D].scope===b?M.splice(D,1):D++}function k(b){var T;return b=b.replace(/\s/g,""),T=b.split(","),T[T.length-1]==""&&(T[T.length-2]+=","),T}function P(b){for(var T=b.slice(0,b.length-1),M=0;M<T.length;M++)T[M]=s[T[M]];return T}function N(b,T,M){b.addEventListener?b.addEventListener(T,M,!1):b.attachEvent&&b.attachEvent("on"+T,function(){M(window.event)})}N(document,"keydown",function(b){m(b)}),N(document,"keyup",g),N(window,"focus",v);var L=e.key;function I(){var b=e.key;return e.key=L,b}e.key=A,e.key.setScope=_,e.key.getScope=C,e.key.deleteScope=R,e.key.filter=w,e.key.isPressed=S,e.key.getPressedKeyCodes=x,e.key.noConflict=I,e.key.unbind=y,t.exports=A})(en)})(enr);var hhs=enr.exports;const tR=Li(hhs),fhs=(t,e,n=!1,r=!1,a,o)=>{const s=Oit(),l=SV(),c=Fit(),u=bE(),{settings:d}=u||{},h=kM(d),{isAiEnabled:f}=h||{};Y.useEffect(()=>(tR.filter=()=>!0,tR("ctrl+s, command+s",()=>(t&&!s&&!e&&!r&&!n&&zit(),!1)),tR("ctrl+return, command+return",()=>(t&&!e&&!n&&!r&&(W6(ii.table),Xit(t,c,t,a,l,f,o),Kit(!0)),!1)),tR("shift+return",()=>(!e&&!r&&AVe(t),!1)),tR("ctrl+shift+f, command+shift+f",()=>(!e&&!r&&setTimeout(()=>Qne(),300),!1)),()=>{tR.unbind("ctrl+return, command+return"),tR.unbind("ctrl+s, command+s"),tR.unbind("shift+return"),tR.unbind("ctrl+shift+f, command+shift+f")}),[t,s,e])},phs=({prevQueryText:t,setSelectedSchemaSiderbarValue:e,selectedSchemaSidebarValue:n,addClass:r=!1,refs:a,isRunning:o=!1,disabled:s=!1,invalidUser:l=!1,handleEditorHeight:c,isChainlinkJob:u=!1,abortController:d,isModal:h=!1,queryId:f="",toShowRunQueryOptionOnly:p=!1})=>{var ie;const{search:m}=Zh(),g=new URLSearchParams(m).get("tabID");ho();const v=V_e(parseInt(g,10)),A=Fit(),y=xV(),S=Hit(),x=Efn(),w=bE(),{settings:_}=w||{},C=kM(_),{isAiEnabled:R}=C||{};fhs(v,o,s,y,d,u);const[k,P]=Y.useState(!1),N=Mit(),L=bds(),I=jAa(),b=hAa(),T=SV(),[M,D]=Y.useState(null),B=(ie=M==null?void 0:M.session)==null?void 0:ie.getAnnotations(),[j]=Y.useState(!1),[H,U]=Y.useState(!1),$=xfn(),z=async(he,de)=>{Rhn("table"),he==null||he.preventDefault(),Kit(!0),W6(ii.table),Xit((de==null?void 0:de.trim())||(v==null?void 0:v.trim())||"",A,t,d,T,R,u,b)},Z=()=>{if(M!=null&&M.session){const{session:he}=M,de=he.getLength()-1,ce=he.getLine(de).length;M.gotoLine(de+1,ce)}};L&&M&&setTimeout(()=>{var he;hp(L),(he=M==null?void 0:M.session)==null||he.setValue(L),Z(),Ytr("")},1e3),Y.useEffect(()=>{XF(!1)},[f,g,N==null?void 0:N.query]),Y.useEffect(()=>{var he,de,ce;N!=null&&N.query&&!I&&!v?((he=M==null?void 0:M.session)==null||he.setValue(""),Z(),XF(!0)):g&&!I&&!v?((de=M==null?void 0:M.session)==null||de.setValue(""),Z(),XF(!0)):!I&&v&&M&&y===!1&&((ce=M==null?void 0:M.session)==null||ce.setValue(v),Z(),XF(!0)),!u&&c&&c(v)},[v,N==null?void 0:N.query,I]);const K=()=>{const{currentSchemaTables:he=[],schemaSet:de=[],tableNames:ce=[],allCommon:Ee=!1}=jes({query:v==null?void 0:v.toLowerCase(),schemas:S,previousTableNames:x==null?void 0:x.queryTableNames});Ee||ri(Vl(),{queryERDData:{queryTables:he,querySchemas:de,queryTableNames:ce}})};Y.useEffect(()=>{const he=setTimeout(()=>{K()},500);return()=>clearTimeout(he)},[v,S]);const Q=he=>{!he&&!u&&i1a(),n&&e&&e(""),hp(he)},ee=Ft.debounce(Q,200),X=he=>{const de=he&&`--${he}`;v.trim().length+1===de.length||v.trim().length===de.length?P(!0):P(!1),A!==he&&Ifn(he)},te=he=>{var de;hp(he),(de=M==null?void 0:M.session)==null||de.setValue(he),Z()},J=({text:he="",canRun:de=!1,comments:ce=""})=>{var ze,je,ye;let Ee="";ce&&(Ee=`-- ${ce}`),Ee=Ee?`${Ee.trim()} 
 ${he.trim()}`:he.trim();const Me=Ywe.format(Ee,{language:"transactsql",keywordCase:"upper"}),Be=`${Me.replaceAll(/\[|\]/g," ")}`;hp(Be),(ze=M==null?void 0:M.session)==null||ze.setValue(Be.trim()),Z(),(o||y)&&d&&((ye=(je=d==null?void 0:d.current)==null?void 0:je.abort)==null||ye.call(je)),de&&setTimeout(()=>z(null,Me.trim()),500)},ne=async()=>{f&&await gN(f)&&U(!0)};return E.jsxs(lhs,{ref:a,className:`mobileQueryEditor ${r?"mobileQueryEditorView":""}`,children:[E.jsx(Xtr,{handleAddSuggestion:J}),E.jsx(Jds,{value:v,onChange:ee,selectedSchemaSidebarValue:n,setIsRunDisabled:P,handleComments:X,disabled:s||l,setParentEditor:D,editor:M}),E.jsxs(shs,{children:[!p&&!h&&E.jsx(Xds,{isRunning:o,invalidUser:l}),E.jsxs("div",{className:"actionButton",children:[f&&$&&E.jsx(Pn,{label:H?q.COPIED:q.COPY_QUERY_ID,tooltipPlacement:"bottom",children:E.jsxs(Jt,{variant:"contained",color:"secondary",onClick:ne,className:"copyQueryIdButton",style:{fontSize:"11px",width:"150px"},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(imi,{})}),E.jsx("span",{className:"editorBtnText",children:q.COPY_QUERY_ID_LABEL})]})}),E.jsx(ohs,{getSuggestedQuery:z,isRunDisabled:k||!v,disabled:s||j,setQueryText:te,value:v,queryComments:A,abortController:d,toShowRunQueryOptionOnly:p,annotation:B})]})]})]})},tnr=ke.memo(phs),mhs=gt.div`
  // display: flex;
  // flex-direction: column;
  height: 100%;
  .cofigureBtn {
    text-align: right;
    margin-bottom: 6px;
  }

  .chartsDisplay {
    box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 4px 0px;
    cursor: pointer;
    border-radius: 4px;
    background: ${t=>t.theme.custom.thumbnailBg};
    padding: 12px;
  }
  .chartsDisplay > div:not(.chartCounter) {
    height: 100% !important;
  }
`;function ghs(t){const{queryError:e,chartCustomization:n,isRunning:r,data:a,fields:o,columns:s,chartType:l,configurationHide:c=!1,disabled:u=!1,isQueryBot:d=!1}=t,[h,f]=Y.useState(!0),[p,m]=Y.useState(""),{xField:g,yField:v}=o||{},A=qw(),y=()=>{const S=Ft.map(s,"fieldName");return S.includes(g)?S.includes(v)?(m(""),!0):(m(q.FIELD_MISSING("Y")),!1):(m(q.FIELD_MISSING("X")),!1)};return Y.useEffect(()=>{a&&f(y())},[a]),E.jsxs(mhs,{children:[!a&&E.jsx(Ep,{}),!c&&E.jsx("div",{className:"cofigureBtn",children:E.jsx(_n,{disabled:u,tooltip:q.CONFIGURE_VISUALIZATION,children:E.jsx(x2,{})})}),h?E.jsx(l8,{chartID:"chart-preview",chartFields:Ft.isEmpty(A)?o:A,isRunning:r,chartCustomization:n,queryError:e,chartType:l,columns:s,data:a,isQueryBot:d,isDashboardPreview:!1}):E.jsx("div",{children:p})]})}const LUt=gt.div`
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
`,iFe=gt.div`
  width: 100%;
`;function vhs(){return E.jsx(sf,{title:"You don`t have any result set available.",description:"Please run a valid query to view Erd!"})}const Ahs=({children:t,disabled:e=!1,isQueryBot:n=!1,queryBotResult:r,handleQueryBotTabChange:a,handleViewInQueryBot:o,setQueryBotChartOption:s,isSliderViewCharts:l=!1})=>{const c=n?r.chartOptions:Iit(),u=n?r.view:cfn(),d=n?r.rowCount:ffn(),h=n?r.status:Dit(),f=n?r.toggleVisTable:G_e(),p=n?r.result:m9(),m=n?r.isRunning:Yw(),g=n?!1:xV(),v=n?{}:LAa(),A=n?r.queryError:bV(),y=n?r.columns:mfn(),S=n?!1:PAa(),{width:x}=Is();if(f===ii.table)return E.jsxs(E.Fragment,{children:[E.jsx(EH,{isRunning:m,gptLoading:g,rowCount:d,incomplete:S,status:h,columns:y,data:p,disabled:e,isQueryBot:n,queryBotToogle:f,handleQueryBotTabChange:a,handleViewInQueryBot:o,setQueryBotChartOption:s,queryBotView:u}),t]});const w=()=>E.jsx(iFe,{children:E.jsx(ghs,{chartID:"chart-main",configurationHide:!0,chartCustomization:v,columns:y,data:p,fields:c.chartFields,disabled:e,chartType:c.chartType,isQueryBot:n})}),_=()=>E.jsx(iFe,{children:E.jsx(yqn,{chartID:"chart-main",settings:!0,noChart:!0,disabled:e,isQueryBot:n,queryBotQueryResult:n&&r.queryResult,query:n?r.query:"",handleViewInQueryBot:o,setQueryBotChartOption:s,isSliderViewCharts:l})}),C=()=>E.jsx(iFe,{}),R=()=>{let k=E.jsx(vhs,{});if(A)n||typeof A=="string"||A instanceof String?k=E.jsx(Vc,{title:A,children:A}):typeof A=="object"&&!Ft.isEmpty(A)&&A!==q.QUERY_ABORT&&(k=E.jsx(tut,{queryError:A}));else if(m)k=E.jsx(Ep,{});else if(u)k=w();else if(p&&f===ii.chart)k=_();else if(p&&f===ii.graph)k=C();else if(h==="finished"&&d===0)return null;return k};return x>qt.breakpoints.values.sm?E.jsxs(E.Fragment,{children:[E.jsx(EH,{isRunning:m,gptLoading:g,rowCount:d,incomplete:S,status:h,columns:y,data:p,disabled:e,isQueryBot:n,queryBotToogle:f,handleQueryBotTabChange:a,handleViewInQueryBot:o,queryBotView:u,setQueryBotChartOption:s}),t,E.jsx(LUt,{className:"mobileChartContainer",children:R()})]}):!Ft.isEmpty(p)||m?E.jsxs("div",{className:"mobileResultPane",children:[E.jsx(EH,{isRunning:m,gptLoading:g,rowCount:d,incomplete:S,status:h,columns:y,data:p,disabled:e,isQueryBot:n,queryBotToogle:f,queryBotView:u,handleQueryBotTabChange:a,handleViewInQueryBot:o,setQueryBotChartOption:s}),t,E.jsx(LUt,{className:"mobileChartContainer",children:R()})]}):null},nnr=ke.memo(Ahs),yhs=gt.div`
  position: absolute;
  top: 50px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  .errorBox {
    display: relative;
    height: 100%;
    .timer {
      position: absolute;
      top: -20px;
      right: 0;
      font-size: ${t=>t.theme.custom.fontSize.font10};
      font-weight: ${t=>t.theme.custom.fontWeight.sm};
      color: ${t=>t.theme.custom.greyText.A2};
    }
  }
  .contentLoading {
    text-align: center;
    overflow: auto;
    height: 100%;
    .contentBlock {
      margin: auto 0;
      picture {
        display: block;
      }
    }
    img.errorIcon {
      max-width: 80px;
    }
    .helpText {
      max-width: 100%;
      text-align: left;
      margin-top: 0;
      display: inline-block;
      vertical-align: middle;
      .infoIcon {
        vertical-align: middle;
      }
    }
    .collpaseIcon {
      border: 0;
      box-shadow: unset;
      margin-left: 8px;
      height: 20px;
      width: 20px;
      display: inline-block;
      vertical-align: middle;
      svg {
        height: 12px;
        width: 12px;
      }
      &.open {
        transform: rotate(180deg);
      }
    }
    .collapseText {
      .msg {
        background: ${t=>t.theme.custom.white.A4};
        color: ${t=>t.theme.custom.white.A11};
        border-radius: 8px;
        padding: 8px;
        margin-top: 8px;
        text-align: left;
        border: 1px solid ${t=>t.theme.custom.greyText.A11};
        word-break: break-word;
        margin-right: 6px;
      }
    }
  }
`,bhs=gt.div`
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  margin-top: 20px;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 16px;
  font-size: ${t=>t.theme.custom.fontSize.font12};
`,xhs=gt.div`
  .pos-warning {
    background: ${t=>t.theme.custom.white.A4};
    color: ${t=>t.theme.custom.white.A11};
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
    text-align: left;
    border: 1px solid ${t=>t.theme.custom.greyText.A11};
    word-break: break-word;
    margin-bottom: 10px;
  }
`,Ehs=()=>E.jsx(xhs,{children:E.jsx("div",{className:"pos-warning",children:q.posWarningMessage})});function Shs(){return E.jsxs(bhs,{children:[E.jsx("span",{children:q.WRITE_YOUR_SQL_QUERY}),E.jsx("span",{children:q.THE_RESULT_OF_QUERY})]})}function whs({tableHeight:t,isQueryBot:e,queryBotResult:n}){let r,a,o,s,l,c,u,d;const h=DAa(),f=yfn(),p=pfn(),m=bE(),{settings:g,userId:v}=m||{},A=kM(g),{queryEditorGuide:y}=A,[S,x]=Y.useState(!1),w=SAa();let _=null;const C=p!==void 0?p/1e3:0;_=E.jsxs("span",{children:[C," ",q.SECONDS]});let R;e?(r=n.queryError,a=n.toggleVisTable,o=n.isRunning,s=n.gptLoading,l=n.rowCount,c=n.data,u=n.status,d=n.columns||[]):(r=bV(),a=G_e(),o=Yw(),s=xV(),l=ffn(),c=m9(),u=Dit(),d=mfn()||[],R=$Aa());let k=E.jsx(Shs,{});if(r===q.QUERY_ABORT||r&&(typeof r=="string"||r instanceof String)?k=E.jsx(Vc,{title:r,isQueryEditor:!0,children:r}):typeof r=="object"&&!Ft.isEmpty(r)&&r!==q.QUERY_ABORT&&(k=E.jsxs("div",{className:"errorBox",children:[E.jsx("span",{className:"timer",children:_}),E.jsx(tut,{queryError:r})]})),R)return E.jsx(Vye,{style:{alignItems:"flex-start"},children:R});if(u==="finished"&&l===0)return E.jsxs(Vye,{style:{alignItems:"flex-start"},children:["Query finished",E.jsx("br",{}),"No rows returned"]});const P=f>=1?q.CHAT_GPT_TEXT_NEXT_MSG:q.CHAT_GPT_TEXT;o||s?k=E.jsx("div",{className:"contentLoading",children:E.jsxs("div",{className:"contentBlock",children:[E.jsx(rut,{}),E.jsx(fg,{message:s?P:q.QUERY_RUNNING}),f>=1&&s&&E.jsxs(E.Fragment,{children:[E.jsx(_n,{onClick:()=>t1a(),className:h?"collpaseIcon open":"collpaseIcon",children:E.jsx(Qy,{})}),E.jsx(jo,{in:h,timeout:"auto",unmountOnExit:!0,className:"collapseText",children:E.jsx("div",{className:"msg",children:r==null?void 0:r.detail})})]})]})}):Ft.isEmpty(c)||(!S&&setTimeout(()=>x(!0),500),k=E.jsx(TP,{columns:d,rowCount:l,queryError:r,data:c,tableHeight:t,isQueryBot:e}));const N=L=>{const{status:I,action:b,step:T}=L,{target:M}=T;if(I===os.FINISHED||I===os.SKIPPED){const D={...A,queryEditorGuide:!1},B={...m,settings:JSON.stringify(D)};AO(v,B)}b===Fl.NEXT&&M===".queryVizTab"?W6("chart"):b===Fl.PREV&&M===".queryResultsTab"&&W6("table")};return E.jsxs(E.Fragment,{children:[a===ii.table?E.jsxs(yhs,{className:"mobileResultTable",children:[w&&E.jsx(Ehs,{}),k]}):null,y&&!Ft.isEmpty(c)&&S&&E.jsx(pqn,{steps:Mgi,callback:N})]})}const rnr=ke.memo(whs),_hs=({selectedSchemaSidebarValue:t,disabled:e,invalidUser:n,isModal:r,setSelectedSchemaSiderbarValue:a,isChainlinkJob:o,toShowRunQueryOptionOnly:s,defaultEditorHeight:l})=>{const c=Y.useRef(null),u=Y.useRef(null),d=Y.useRef(null),{queryId:h=""}=QM(),[f,p]=Y.useState(""),m=Dit(),g=Yw(),v=ho(),A=bV(),y=SV(),[S,x]=Y.useState(l||280),[w,_]=Y.useState(0),C=m==="finished"||A,R=()=>{const b=Ft.get(c,"current.pane2.clientHeight",0);w&&_(b-98)},k=b=>{var H;if(C||g)return;const T=((H=b==null?void 0:b.split(`
`))==null?void 0:H.length)||1,M=c.current.pane1.clientHeight,B=c.current.splitPane.clientHeight||0,j=B?B-98:0;if(T<=10){if(S===280)return;x(280),R()}else T>10&&M<=280&&(x(j),R())},P=Ft.debounce(R,300);Y.useEffect(()=>{P()},[]),Y.useEffect(()=>{if(C||g){const b=Ft.get(c,"current.pane2.clientHeight",0),T=Ft.get(c,"current.pane1.clientHeight",0),M=Ft.get(c,"current.splitPane.clientHeight",0),D=M*55/100;T>D?(x(D),_(M-D-98)):_(b-98)}},[C,g]),Y.useEffect(()=>{var b;(b=d.current)==null||b.focus()},[]);const N=b=>{const T=b.target;p(T.value);const M=parseInt(window.getComputedStyle(T).lineHeight,10),D=Math.floor(T.scrollHeight/M);T.style.overflowY=D>4?"scroll":"hidden"},L=b=>{b.text&&p(b.text)},I=()=>{Xit(f,"","",u,y,!0,!1,!1)};return E.jsxs(aC,{split:"horizontal",resizerClassName:"",className:"queryEditorOverFlow",style:{padding:16},minSize:100,maxSize:-100,primary:"first",pane2Style:{marginTop:"12px"},children:[E.jsx(Nre,{className:"AIPane1",children:E.jsx("div",{className:"AIPane1Container",children:E.jsxs("div",{className:"AIFlexContainer",children:[E.jsx("div",{className:"AIButtonFlexContainer",children:E.jsxs("div",{className:"aiButtonWrapper",children:[E.jsx("span",{children:q.AI_LABEL}),E.jsx("div",{className:"pencilIconWrapper",children:E.jsx(emi,{style:{filter:"grayscale(100%) brightness(0.666)"}})})]})}),E.jsx("textarea",{placeholder:q.AI_PROMPT_PLACEHOLDER,ref:d,className:"AITextArea",rows:3,onInput:N,value:f,style:{width:"100%"}}),E.jsxs("div",{className:"AIPromptRightPanel",children:[E.jsx(Xtr,{isAISearch:!0,handleAddSuggestion:L}),E.jsxs(Jt,{variant:"contained",disabled:f.length===0,onClick:()=>{if(!v){co(!0);return}I()},className:"editorBtn",style:{fontSize:"12px"},children:[E.jsx("span",{className:"iconLeft",children:E.jsx(wan,{})}),E.jsx("span",{className:"editorBtnText",children:q.AI_RUN_PROMPT_LABEL})]})]})]})})}),E.jsxs(aC,{split:"horizontal",className:"queryEditorOverFlow",pane2Style:{position:"relative"},onChange:P,minSize:125,maxSize:-150,defaultSize:S,ref:c,children:[E.jsx(tnr,{isRunning:g,prevQueryText:"",selectedSchemaSidebarValue:t,invalidUser:n,handleEditorHeight:k,isModal:r,setSelectedSchemaSiderbarValue:a,abortController:u,isChainlinkJob:o,toShowRunQueryOptionOnly:s,queryId:h}),E.jsx(nnr,{disabled:e,children:E.jsx(rnr,{tableHeight:w})})]})]})},Ths=ke.memo(_hs),Chs=({setSelectedSchemaSiderbarValue:t})=>{const e=K_e();return e?E.jsx(tJn,{visible:e,width:300,onClose:Qne,placement:"left",className:"schemaSidebar",children:E.jsx(sXn,{setSelectedSchemaSiderbarValue:t})}):null},khs=({toShowRunQueryOptionOnly:t,isModal:e,selectedSchemaSidebarValue:n,setSelectedSchemaSiderbarValue:r,responsiveTableHeight:a})=>{const o=Y.useRef(null),s=Y.useRef(null),l=Yw(),c=bV(),u=m9(),d=ho(),h=vfn(),{queryId:f=""}=QM(),p=localStorage.getItem("userId")||"",m=xV(),g=Y.useMemo(()=>!Ft.isEmpty(u)||l||c||m,[Ft.isEmpty(u),l,c,m]),v=!d||!1,A=d&&h&&p!==h||!1;return E.jsxs(E.Fragment,{children:[E.jsx(tnr,{prevQueryText:"",selectedSchemaSidebarValue:n,setSelectedSchemaSiderbarValue:r,addClass:g,disabled:v,invalidUser:A,refs:o,abortController:s,isModal:e,queryId:f,toShowRunQueryOptionOnly:t}),g&&E.jsx(nnr,{disabled:v,children:E.jsx(rnr,{tableHeight:a})})]})},Rhs=ke.memo(khs),Mhs=({setSelectedSchemaSiderbarValue:t,selectedSchemaSidebarValue:e,isModal:n,toShowRunQueryOptionOnly:r,loading:a=!1})=>{const o=Y.useRef(null),s=Yw(),l=bV(),c=m9(),[u,d]=Y.useState(!1),h=ho(),f=Y.useMemo(()=>!Ft.isEmpty(c)||s||l,[Ft.isEmpty(c),s,l]),p=Q_e(),m=W_e(),{subscribedSchemasAndTablesLoading:g}=EV();Y.useLayoutEffect(()=>{!m&&!g&&Wne({}),h&&m&&!p&&!g&&K6({})},[h,m,g]);const v=()=>u&&f?"":u&&!f?"h-50":"",A=Y.useMemo(()=>{var S;return(((S=o==null?void 0:o.current)==null?void 0:S.offsetHeight)||0)/2-146},[o.current]);return E.jsxs("div",{ref:o,className:"mobileEditorView",children:[!a&&E.jsx("div",{className:`mobileErdView ${u&&"h-50"}`,children:u&&E.jsx(Jtr,{})}),E.jsx(Chs,{setSelectedSchemaSiderbarValue:t}),E.jsxs("div",{className:`mobileEditorBottomSection ${v()}`,children:[E.jsx(d8,{checked:u,handleChange:()=>d(y=>!y),showText:q.SHOW_DATA_SETS,hideText:q.HIDE_DATA_SETS,className:"datasetSwitch"}),E.jsx(Rhs,{selectedSchemaSidebarValue:e,setSelectedSchemaSiderbarValue:t,isModal:n,toShowRunQueryOptionOnly:r,responsiveTableHeight:A})]})]})};function Nhs(t){const{isChainlinkJob:e=!1,isModal:n=!1,toShowRunQueryOptionOnly:r=!1,defaultEditorHeight:a}=t,o=localStorage.getItem("userId")||"",s=Oit(),[l,c]=Y.useState(!1),[u,d]=Y.useState(!1),[h,f]=Y.useState(""),p=Y.useRef(null),m=K_e(),{width:g,height:v}=Is(),A=g%2===0?g:g-1,{search:y}=Zh(),S=new URLSearchParams(y).get("queryId"),x=bfn(),w=wfn(),{queryId:_=""}=QM(),C=vfn(),R=ho(),k=!R||!1,P=R&&C&&o!==C||!1;Y.useEffect(()=>{ZAa()},[]),Y.useEffect(()=>{h&&m&&g<qt.breakpoints.values.md&&Qne()},[h]),Y.useEffect(()=>{c(!1),(_||S)&&(XAa(_||S),d(!0),e1a(_||S,R,d).then(({error:T=null,data:M})=>T||!M?(d(!1),c(!0)):(d(!1),!0)))},[_,S]),Y.useEffect(()=>{m&&Qne()},[]);const N=A/2,L=N-180,I=A-30,b=Ft.debounce(()=>{z$o(_),h1a(Ft.get(p,"current.pane1.clientWidth",0)),Bfn(!0)},200);return E.jsxs(Uds,{className:"queryEditor",pageHeight:v,showMenu:x||w,children:[E.jsxs("div",{className:"editorContent",children:[u&&E.jsx(as,{}),g>qt.breakpoints.values.md&&E.jsxs(aC,{split:"vertical",minSize:L,defaultSize:N+38,maxSize:I,onChange:()=>b(),className:"splitPaneView desktopEditorView",ref:p,children:[E.jsx(Tes,{setSelectedSchemaSiderbarValue:f,children:E.jsx(Ths,{selectedSchemaSidebarValue:h,disabled:k,invalidUser:P,isModal:n,setSelectedSchemaSiderbarValue:f,isChainlinkJob:e,toShowRunQueryOptionOnly:r,defaultEditorHeight:a})}),!e&&E.jsx(Jtr,{})]}),g<qt.breakpoints.values.md&&E.jsx(Mhs,{setSelectedSchemaSiderbarValue:f,selectedSchemaSidebarValue:h,isModal:n,toShowRunQueryOptionOnly:r,loading:u})]}),s&&E.jsx(Oes,{invalidUser:P}),E.jsx(kes,{visible:l,queryId:_})]})}var Ihs={exports:{}};(function(t,e){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,a){var o=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},l.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};o.inherits(l,s),l.getTagRule=function(c){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},l.getStartRule=function(c){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:c}},l.getEndRule=function(c){return{token:"comment.doc",regex:"\\*\\/",next:c}},r.JsDocCommentHighlightRules=l}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,a){var o=n("../lib/oop"),s=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,l=n("./text_highlight_rules").TextHighlightRules,c="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",u=function(f){var p={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},m=this.createKeywordMapper(p,"identifier"),g="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",v="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",A="(function)(\\s*)(\\*?)",y={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(p).join("|")+"\\b)"+c+")(\\s*)(\\()"};this.$rules={no_regex:[s.getStartRule("doc-start"),h("no_regex"),y,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+c+")(\\s*)(=)(\\s*)"+A+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+c+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+c+")(\\s*)(:)(\\s*)"+A+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+A+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+g+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:m,regex:c},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:A+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:c},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),h("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[h("function_arguments"),{token:"variable.parameter",regex:c},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:v},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:v},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!f||!f.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(S,x,w){if(this.next=S=="{"?this.nextState:"",S=="{"&&w.length)w.unshift("start",x);else if(S=="}"&&w.length&&(w.shift(),this.next=w.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return S=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:v},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+c+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!f||f.jsx!=!1)&&d.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};o.inherits(u,l);function d(){var f=c.replace("\\d","\\d\\-"),p={onMatch:function(g,v,A){var y=g.charAt(1)=="/"?2:1;return y==1?(v!=this.nextState?A.unshift(this.next,this.nextState,0):A.unshift(this.next),A[2]++):y==2&&v==this.nextState&&(A[1]--,(!A[1]||A[1]<0)&&(A.shift(),A.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:g.slice(0,y)},{type:"meta.tag.tag-name.xml",value:g.substr(y)}]},regex:"</?(?:"+f+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(p);var m={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[m,p,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(g,v,A){return v==A[0]&&A.shift(),g.length==2&&(A[0]==this.nextState&&A[1]--,(!A[1]||A[1]<0)&&A.splice(0,2)),this.next=A[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},m,h("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:f},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function h(f){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:f||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:f||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=u}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,a){var o=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,c){return/^\s+$/.test(l)?/^\s*\}/.test(c):!1},this.autoOutdent=function(l,c){var u=l.getLine(c),d=u.match(/^(\s*\})/);if(!d)return 0;var h=d[1].length,f=l.findMatchingBracket({row:c,column:h});if(!f||f.row==c)return 0;var p=this.$getIndent(l.getLine(f.row));l.replace(new o(c,0,c,h-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,r,a){var o=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator;function c(d,h){return d&&d.type.lastIndexOf(h+".xml")>-1}var u=function(){this.add("string_dquotes","insertion",function(d,h,f,p,m){if(m=='"'||m=="'"){var g=m,v=p.doc.getTextRange(f.getSelectionRange());if(v!==""&&v!=="'"&&v!='"'&&f.getWrapBehavioursEnabled())return{text:g+v+g,selection:!1};var A=f.getCursorPosition(),y=p.doc.getLine(A.row),S=y.substring(A.column,A.column+1),x=new l(p,A.row,A.column),w=x.getCurrentToken();if(S==g&&(c(w,"attribute-value")||c(w,"string")))return{text:"",selection:[1,1]};if(w||(w=x.stepBackward()),!w)return;for(;c(w,"tag-whitespace")||c(w,"whitespace");)w=x.stepBackward();var _=!S||S.match(/\s/);if(c(w,"attribute-equals")&&(_||S==">")||c(w,"decl-attribute-equals")&&(_||S=="?"))return{text:g+g,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(d,h,f,p,m){var g=p.doc.getTextRange(m);if(!m.isMultiLine()&&(g=='"'||g=="'")){var v=p.doc.getLine(m.start.row),A=v.substring(m.start.column+1,m.start.column+2);if(A==g)return m.end.column++,m}}),this.add("autoclosing","insertion",function(d,h,f,p,m){if(m==">"){var g=f.getSelectionRange().start,v=new l(p,g.row,g.column),A=v.getCurrentToken()||v.stepBackward();if(!A||!(c(A,"tag-name")||c(A,"tag-whitespace")||c(A,"attribute-name")||c(A,"attribute-equals")||c(A,"attribute-value"))||c(A,"reference.attribute-value"))return;if(c(A,"attribute-value")){var y=v.getCurrentTokenColumn()+A.value.length;if(g.column<y)return;if(g.column==y){var S=v.stepForward();if(S&&c(S,"attribute-value"))return;v.stepBackward()}}if(/^\s*>/.test(p.getLine(g.row).slice(g.column)))return;for(;!c(A,"tag-name");)if(A=v.stepBackward(),A.value=="<"){A=v.stepForward();break}var x=v.getCurrentTokenRow(),w=v.getCurrentTokenColumn();if(c(v.stepBackward(),"end-tag-open"))return;var _=A.value;return x==g.row&&(_=_.substring(0,g.column-w)),this.voidElements&&this.voidElements.hasOwnProperty(_.toLowerCase())?void 0:{text:"></"+_+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(d,h,f,p,m){if(m==`
`){var g=f.getCursorPosition(),v=p.getLine(g.row),A=new l(p,g.row,g.column),y=A.getCurrentToken();if(c(y,"")&&y.type.indexOf("tag-close")!==-1){if(y.value=="/>")return;for(;y&&y.type.indexOf("tag-name")===-1;)y=A.stepBackward();if(!y)return;var S=y.value,x=A.getCurrentTokenRow();if(y=A.stepBackward(),!y||y.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[S]||!this.voidElements){var w=p.getTokenAt(g.row,g.column+1),v=p.getLine(x),_=this.$getIndent(v),C=_+p.getTabString();return w&&w.value==="</"?{text:`
`+C+`
`+_,selection:[1,C.length,1,C.length]}:{text:`
`+C}}}}})};o.inherits(u,s),r.XmlBehaviour=u}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(n,r,a){var o=n("../../lib/oop"),s=n("../../token_iterator").TokenIterator,l=n("../behaviour/cstyle").CstyleBehaviour,c=n("../behaviour/xml").XmlBehaviour,u=function(){var d=new c({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(d),this.inherit(l),this.add("autoclosing-fragment","insertion",function(h,f,p,m,g){if(g==">"){var v=p.getSelectionRange().start,A=new s(m,v.row,v.column),y=A.getCurrentToken()||A.stepBackward();if(!y)return;if(y.value=="<")return{text:"></>",selection:[1,1]}}})};o.inherits(u,l),r.JavaScriptBehaviour=u}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,a){var o=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,c=r.FoldMode=function(h,f){l.call(this),this.voidElements=h||{},this.optionalEndTags=o.mixin({},this.voidElements),f&&o.mixin(this.optionalEndTags,f)};o.inherits(c,l);var u=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function d(h,f){return h.type.lastIndexOf(f+".xml")>-1}(function(){this.getFoldWidget=function(h,f,p){var m=this._getFirstTagInLine(h,p);return m?m.closing||!m.tagName&&m.selfClosing?f==="markbeginend"?"end":"":!m.tagName||m.selfClosing||this.voidElements.hasOwnProperty(m.tagName.toLowerCase())||this._findEndTagInLine(h,p,m.tagName,m.end.column)?"":"start":this.getCommentFoldWidget(h,p)},this.getCommentFoldWidget=function(h,f){return/comment/.test(h.getState(f))&&/<!-/.test(h.getLine(f))?"start":""},this._getFirstTagInLine=function(h,f){for(var p=h.getTokens(f),m=new u,g=0;g<p.length;g++){var v=p[g];if(d(v,"tag-open")){if(m.end.column=m.start.column+v.value.length,m.closing=d(v,"end-tag-open"),v=p[++g],!v)return null;if(m.tagName=v.value,v.value===""){if(v=p[++g],!v)return null;m.tagName=v.value}for(m.end.column+=v.value.length,g++;g<p.length;g++)if(v=p[g],m.end.column+=v.value.length,d(v,"tag-close")){m.selfClosing=v.value=="/>";break}return m}else if(d(v,"tag-close"))return m.selfClosing=v.value=="/>",m;m.start.column+=v.value.length}return null},this._findEndTagInLine=function(h,f,p,m){for(var g=h.getTokens(f),v=0,A=0;A<g.length;A++){var y=g[A];if(v+=y.value.length,!(v<m-1)&&d(y,"end-tag-open")&&(y=g[A+1],d(y,"tag-name")&&y.value===""&&(y=g[A+2]),y&&y.value==p))return!0}return!1},this.getFoldWidgetRange=function(h,f,p){var m=this._getFirstTagInLine(h,p);if(!m)return this.getCommentFoldWidget(h,p)&&h.getCommentFoldRange(p,h.getLine(p).length);var g=h.getMatchingTags({row:p,column:0});if(g)return new s(g.openTag.end.row,g.openTag.end.column,g.closeTag.start.row,g.closeTag.start.column)}}).call(c.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,a){var o=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,c=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};o.inherits(c,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,d,h){var f=u.getLine(h);if(this.singleLineBlockCommentRe.test(f)&&!this.startRegionRe.test(f)&&!this.tripleStarBlockCommentRe.test(f))return"";var p=this._getFoldWidgetBase(u,d,h);return!p&&this.startRegionRe.test(f)?"start":p},this.getFoldWidgetRange=function(u,d,h,f){var p=u.getLine(h);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,h);var v=p.match(this.foldingStartMarker);if(v){var m=v.index;if(v[1])return this.openingBracketBlock(u,v[1],h,m);var g=u.getCommentFoldRange(h,m+v[0].length,1);return g&&!g.isMultiLine()&&(f?g=this.getSectionRange(u,h):d!="all"&&(g=null)),g}if(d!=="markbegin"){var v=p.match(this.foldingStopMarker);if(v){var m=v.index+v[0].length;return v[1]?this.closingBracketBlock(u,v[1],h,m):u.getCommentFoldRange(h,m,-1)}}},this.getSectionRange=function(u,d){var h=u.getLine(d),f=h.search(/\S/),p=d,m=h.length;d=d+1;for(var g=d,v=u.getLength();++d<v;){h=u.getLine(d);var A=h.search(/\S/);if(A!==-1){if(f>A)break;var y=this.getFoldWidgetRange(u,"all",d);if(y){if(y.start.row<=p)break;if(y.isMultiLine())d=y.end.row;else if(f==A)break}g=d}}return new s(p,m,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,d,h){for(var f=d.search(/\s*$/),p=u.getLength(),m=h,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,v=1;++h<p;){d=u.getLine(h);var A=g.exec(d);if(A&&(A[1]?v--:v++,!v))break}var y=h;if(y>m)return new s(m,f,y,d.length)}}).call(c.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(n,r,a){var o=n("../../lib/oop"),s=n("./xml").FoldMode,l=n("./cstyle").FoldMode,c=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end))),this.xmlFoldMode=new s};o.inherits(c,l),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,d,h){var f=this.getFoldWidgetBase(u,d,h);return f||this.xmlFoldMode.getFoldWidget(u,d,h)},this.getFoldWidgetRange=function(u,d,h,f){var p=this.getFoldWidgetRangeBase(u,d,h,f);return p||this.xmlFoldMode.getFoldWidgetRange(u,d,h)}}).call(c.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(n,r,a){var o=n("../lib/oop"),s=n("./text").Mode,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,c=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,d=n("./behaviour/javascript").JavaScriptBehaviour,h=n("./folding/javascript").FoldMode,f=function(){this.HighlightRules=l,this.$outdent=new c,this.$behaviour=new d,this.foldingRules=new h};o.inherits(f,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(p,m,g){var v=this.$getIndent(m),A=this.getTokenizer().getLineTokens(m,p),y=A.tokens,S=A.state;if(y.length&&y[y.length-1].type=="comment")return v;if(p=="start"||p=="no_regex"){var x=m.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(v+=g)}else if(p=="doc-start"){if(S=="start"||S=="no_regex")return"";var x=m.match(/^\s*(\/?)\*/);x&&(x[1]&&(v+=" "),v+="* ")}return v},this.checkOutdent=function(p,m,g){return this.$outdent.checkOutdent(m,g)},this.autoOutdent=function(p,m,g){this.$outdent.autoOutdent(m,g)},this.createWorker=function(p){var m=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return m.attachToDocument(p.getDocument()),m.on("annotate",function(g){p.setAnnotations(g.data)}),m.on("terminate",function(){p.clearAnnotations()}),m},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(f.prototype),r.Mode=f}),function(){ace.require(["ace/mode/javascript"],function(n){t&&(t.exports=n)})}()})(Ihs);const Phs=t=>{const{label:e,description:n,isDisabled:r,onClick:a}=t;return E.jsxs("div",{className:"sendContractItem",children:[E.jsx(Jt,{variant:"contained",color:"secondary",onClick:a,disabled:r,children:e}),E.jsx("div",{className:"sendContractDescription",children:E.jsx("p",{children:n})})]})},Ohs=t=>{const{code:e,jsCodeHandler:n,solidityCodeHandler:r}=t,[a,o]=Y.useState("solidityCode"),s=(l,c)=>{o(c),c==="solidityCode"?(Vne(!0),r()):(Vne(!1),n())};return E.jsxs("div",{className:"sendDataEditor sendDataCommonBg",children:[E.jsxs("div",{className:"infoMessage",children:["Below you will find auto-generated Solidity and JS code templates to deploy as part of your Space and Time Chainlink Functions smart contract. Please see our template repository"," ",E.jsx("a",{href:"https://github.com/spaceandtimelabs/sxt-clf-template",target:"_blank",rel:"noreferrer",children:"here"})," ","for the rest of the required files to get you started. You’ll want to replace the"," ",E.jsx("a",{href:"https://github.com/spaceandtimelabs/sxt-clf-template/blob/main/contracts/FunctionsConsumer.sol",target:"_blank",rel:"noreferrer",children:"FunctionsConsumer.sol"})," ","file with the generated Solidity file and the"," ",E.jsx("a",{href:"https://github.com/spaceandtimelabs/sxt-clf-template/blob/main/source-code.js",target:"_blank",rel:"noreferrer",children:"source-code.js"})," ","file with the generated JavaScript code. After that, just make sure to configure any API key and biscuit secrets you may require. The"," ",E.jsx("a",{href:"https://github.com/spaceandtimelabs/sxt-clf-template/blob/main/README.md",target:"_blank",rel:"noreferrer",children:"README"})," ","file in the repository contains a comprehensive guide and further deployment considerations."]}),E.jsxs("div",{className:"helptext",children:[E.jsx(cg,{className:"infoIcon"}),E.jsxs("span",{children:["Please see our template repository"," ",E.jsx("a",{href:"https://github.com/spaceandtimelabs/sxt-clf-template",target:"_blank",rel:"noreferrer",children:"here"})," ","for the rest of the required files to get you started."]})]}),E.jsx(Tp,{children:E.jsxs(eA,{value:a,exclusive:!0,onChange:s,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"solidityCode","aria-label":"solidityCode",children:"Solidity Code"}),E.jsx(Xs,{size:"small",className:"tabButton",value:"jsCode","aria-label":"jsCode",children:"JS Code"})]})}),E.jsxs(Nzn,{className:"hereclass",isWhite:!1,children:[E.jsx("div",{className:"buttonRow",children:E.jsx(y9,{textToCopy:e||""})}),E.jsx(eCe,{editorProps:{$blockScrolling:1/0},height:"470px",highlightActiveLine:!1,fontSize:14,defaultValue:e,mode:"javascript",showGutter:!0,showPrintMargin:!1,value:e})]})]})},Lhs=t=>{const{openChainlinkSubscriptionHandler:e}=t,n=V_e(Vl()),r=m9()||[],a=tfn(),o=nfn(),[s,l]=Y.useState(!0),c=Yw(),u=xAa(),d=rfn(),h=Nit(),f=bAa(),{search:p}=Zh(),g=new URLSearchParams(p).get("queryId");Y.useEffect(()=>{c||!r||!a?(l(!0),XAe(""),kkt(""),eee("")):l(!1)},[r,c,a]);const v=async y=>{Vne(!0);const S=y===ER.functions&&a===Lh.string2d?Lh.string:a;AZ(S),kkt(y),NR(!0);const x=await afn(y,S);NR(!1),XAe(typeof x=="string"?x:"")},A=async()=>{Vne(!1),NR(!0);let y={input_value:"",query_type:"",return_type:""};const S=a===Lh.string2d?Lh.string:a;g?y={input_value:g||"",query_type:Rne.savedQuery,return_type:S}:y={input_value:n||"",query_type:Rne.rawQuery,return_type:S};const x=await ofn(y);NR(!1),eee(x)};return E.jsxs(E.Fragment,{children:[u&&E.jsx("div",{className:"fixedLoader",children:E.jsx(as,{})}),h?E.jsxs("div",{className:"chainLinkWrapper sendDataCommonBg sendContractWrapper",children:[E.jsx("div",{className:"chainLinkLeftGroup",children:E.jsx(Jt,{className:`darkButton ${o===ER.functions&&"active"} ${!r&&"btnDisabled"}`,onClick:()=>{v(ER.functions)},disabled:s,children:q.VIA_CHAINLINK_FUNCTIONS})}),o===ER.functions&&h&&E.jsx("div",{className:"chainLinkRightGroup",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:e,children:q.CHAINLINK_SUBSCRIPTIONS})})]}):E.jsxs("div",{className:"sendDataCommonBg sendContractWrapper",children:[E.jsx("h3",{children:q.SEND_TO_CONTRACT}),E.jsx(Er,{container:!0,spacing:2,children:E.jsx(Er,{item:!0,xs:12,sm:12,md:12,lg:12,children:E.jsx(Phs,{label:q.VIA_CHAINLINK_FUNCTIONS,description:q.CHAINLINK_FUNC_DESCRIPTION,onClick:()=>{v(ER.functions)},isDisabled:s})})})]}),h&&E.jsx(Ohs,{code:d?h:f,jsCodeHandler:A,solidityCodeHandler:()=>v(ER.functions)})]})},Bhs=()=>{const t=xo(),[e,n]=Y.useState(!1),r=q.WEB3LOGIN===(localStorage.getItem("loginType")||""),a=async s=>{if(!r){XX(s);return}n(!0);const l=await rbe(s||"");XX(l?s:""),sfn(l),n(!1)};Y.useEffect(()=>{const s=()=>{a(ibe())};r&&(window.ethereum&&typeof window.ethereum.on=="function"&&window.ethereum.on("networkChanged",s),a(ibe()))},[r]);const o=async()=>{if(r)t.push(Qt.chainlinkSubscriptions);else{const s="Sepolia";await rbe(s)&&(XX(s),t.push(Qt.chainlinkSubscriptions))}};return E.jsxs(E.Fragment,{children:[e&&E.jsx("div",{className:"fixedLoader",children:E.jsx(as,{})}),E.jsx(Lhs,{openChainlinkSubscriptionHandler:o})]})},Xvs=gt.div`
  background: ${t=>t.theme.custom.secondaryBg};
  box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(200px);
  border-radius: 4px;
  padding: 20px;
  margin: 16px 0 0;
  height: calc(100% - 16px);
  .cardHead {
    color: ${t=>t.theme.custom.white.A1};
    font-weight: ${t=>t.theme.custom.fontWeight.sm};
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(247 247 249 / 5%);
  }
  .cardBody {
    padding-top: 16px;
    position: relative;
    .downloadAsImage {
      top: 16px;
      display: none;
    }
  }
  .MuiMobileStepper-root {
    margin-top: 0;
    .handleFirstBtn,
    .handleLastBtn {
      display: none;
    }
  }
`,inr=gt.div`
  color: ${t=>t.theme.custom.greyText.A6};
  background: ${t=>t.theme.custom.boxBg};
  font-family: ${t=>t.theme.typographySecondary.fontFamily};
  font-weight: ${t=>t.theme.custom.fontWeight.rg};
  font-size: ${t=>t.theme.custom.fontSize.font12};
  backdrop-filter: blur(30px);
  border-radius: 6px;
  padding: 8px;
  line-height: 20px;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  height: 100%;
  .text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  button.MuiButtonBase-root {
    margin-left: 8px;
    background-color: ${t=>t.theme.custom.secondaryBg};
    border: 0px none;
    height: 25px;
    width: 25px;
    svg {
      width: 12px;
      height: 10px;
    }
  }
`;gt.div`
  display: flex;
  align-items: center;
  .userImage {
    height: 28px;
    width: 28px;
    overflow: hidden;
    border: 2px solid #987ecf;
    border-radius: 8px;
    margin-right: 12px;
  }
  .userImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: top;
  }
`;const e0s=gt.div`
  display: inline-flex;
  align-items: center;
  background: ${t=>t.theme.custom.white.A4};
  backdrop-filter: blur(30px);
  border-radius: 4px;
  overflow: hidden;
  padding-right: 5px;
  height: 42px;
  opacity: 0.5;
  img {
    margin-right: 8px;
  }
  span {
    background: ${t=>t.theme.custom.white.A5};
    border-radius: 4px;
    height: 30px;
    line-height: 30px;
    padding: 0 5px;
  }
`,t0s=gt.div`
  display: inline-block;
  line-height: 1;
  padding: 4px;
  background: ${t=>t.theme.custom.white.A5};
  border-radius: 4px;
  opacity: 0.5;
`,Dhs=({setQueriesView:t,queryParams:e,setQueryParams:n})=>{const r=xo(),a=vds(),{totalPages:o=0,totalElements:s=0}=(a==null?void 0:a.pageable)||{},l=Ads(),c=qtr(),u=yds(),d=S=>{JU({query:(S==null?void 0:S.queryText)||""}),EAa({id:S==null?void 0:S.id,viewName:S==null?void 0:S.viewName}),hp(S==null?void 0:S.queryText),t(sT.editor),r.push(`${Qt.sendData}?queryId=${S==null?void 0:S.id}`)},h=S=>E.jsx(inr,{children:E.jsx("span",{className:"text",children:S.queryText})}),f=S=>S&&E.jsx(Ov,{tags:S==null?void 0:S.tags}),p=()=>E.jsx(sf,{imgPath:xdt,imgPathWebp:Edt,title:!(e!=null&&e.tagValue)&&!(e!=null&&e.searchPattern)?q.EMPTY_SEND_DATA_TABLE_TEXT:q.NO_RESULT_FOUND_ON_SEARCH,className:"emptyBlock",children:!(e!=null&&e.tagValue)&&!(e!=null&&e.searchPattern)&&E.jsx(d1,{to:"/queries/new?tabID=1",children:E.jsx(Jt,{variant:"contained",color:"primary",children:q.CREATE_NEW_QUERY})})}),m=()=>E.jsx(Vc,{title:u,children:u});if(o===0&&!c&&!u)return p();if(u&&!c)return m();const g=S=>{n(x=>({...x,pageNo:S}))},v=S=>{n(x=>({...x,pageNo:S}))},A=S=>{n(x=>({...x,pageSize:S,pageNo:1}))},y=S=>g(S);return E.jsxs("div",{className:"tableContent",children:[E.jsx(tf,{data:l||[],columns:p1a,isChainlinkJob:!0,isAction:!1,rowRender:[{dataKey:"tags",func:f},{dataKey:"queryText",func:h}],loading:c,rowSize:75,bodyHeight:455,tableRowClickHandler:d,isSendDataList:!0}),E.jsx("div",{className:"queryPagePagination",children:E.jsx(EE,{onChange:y,count:o,page:(e==null?void 0:e.pageNo)||0,onPageChange:v,totalElements:s,onPageSizeChange:A,isGotoPage:!0,isPageSize:!0,pageSize:(e==null?void 0:e.pageSize)||0,defaultSize:50})})]})},BUt=()=>{var k;const t=nfn(),e=tfn(),n=Nit(),[r,a]=Y.useState(""),o=m9()||[],[s,l]=Y.useState(""),[c,u]=Y.useState(""),[d,h]=Y.useState(""),[f,p]=Y.useState(Wue.string.message),m=Yw(),g=rfn(),v=V_e(Vl()),{search:A}=Zh(),S=new URLSearchParams(A).get("queryId"),x=()=>{if(o){const P=[o[0]],N=wGo(o),L=_Go(P),I=XYn(P),b=SGo(P);if(u(N||""),a(L?JSON.stringify(L):""),l(I||""),h(b||""),!e){let T="";I?T=Lh.string:b?T=Lh.bytes:N?T=Lh.uint256:L&&(T=Lh.string2d),AZ(T)}}},w=()=>{a(""),l(""),u(""),h(""),AZ(""),XAe(""),eee("")};Y.useEffect(()=>{!m&&(o!=null&&o.length)?x():w()},[o,m]);const _=({type:P})=>{var N;return p(((N=Wue[P])==null?void 0:N.message)||Wue.string.message),P===Lh.string2d?r:P===Lh.string?s:P===Lh.uint256?c:P===Lh.bytes?d:""},C=async P=>{const N=P.target.value||"";if(AZ(N),n&&g){const L=t===ER.functions&&N===Lh.string2d?Lh.string:N;AZ(L),NR(!0);const I=await afn(t,L);NR(!1),XAe(typeof I=="string"?I:"")}else{Vne(!1),NR(!0);let L={input_value:"",query_type:"",return_type:""};const I=N===Lh.string2d?Lh.string:N;S?L={input_value:S||"",query_type:Rne.savedQuery,return_type:I}:L={input_value:v||"",query_type:Rne.rawQuery,return_type:I};try{const b=await ofn(L);NR(!1),eee(b)}catch(b){console.error("An error occurred for fetching JS Code:",b),NR(!1),eee("")}}},R=(P,N,L)=>{const I=()=>P===Lh.uint256?!c:P===Lh.bytes?!d:P===Lh.string?!s:P===Lh.string2d?!r||t===ER.functions:!1;return E.jsx(yYt,{value:P,control:E.jsx(bRr,{}),label:N,disabled:I()},L)};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"optimizeGasHead",children:[E.jsx("h3",{children:ga.OPTIMIZE_GAS_HEADING}),f]}),E.jsxs("div",{className:"optimizeGasInfo",children:[E.jsx("div",{className:"optimizeGasEditor",children:E.jsx("div",{className:"innerGasEditor",children:E.jsx(_,{type:e})})}),E.jsx("div",{className:"optimizeGasButtonGroup",children:E.jsx(eae,{children:E.jsx(_Rr,{"aria-labelledby":"demo-radio-buttons-group-label",defaultValue:e,name:"radio-buttons-group",onChange:C,value:e,children:(k=Object==null?void 0:Object.values(Wue))==null?void 0:k.map((P,N)=>R(P.key,P.label,N))})})})]})]})},$hs=()=>{const t=Mit(),e=fAa(),n=qtr(),r=Yw(),[a,o]=Y.useState(sT.editor),s=FAa(),l=Nit(),{height:c,headerHeight:u}=Is(),d=c-u||500,h=ho(),f=Y.useRef(null),p=xo(),m=Y.useRef(null),g=m9(),[v,A]=Y.useState({scope:uv.private,sortOrder:"DESC",pageSize:50,pageNo:1,searchPattern:""});Y.useEffect(()=>{const _=Co.stringify({...ef(v)},{arrayFormat:"bracket"});p.push(`${Qt.sendData}?${_}`),MUt({params:_,isLoggedIn:h,abortController:f})},[v]),Y.useEffect(()=>{var _,C;t&&(f!=null&&f.current&&((_=f==null?void 0:f.current)==null||_.abort()),t!=null&&t.query&&(typeof t.query=="string"?hp((t==null?void 0:t.query)||""):hp(((C=t==null?void 0:t.query)==null?void 0:C.code)||"")))},[t]),Y.useEffect(()=>{o(n?sT.list:sT.editor)},[t&&t.query]);const y=_=>{if(r&&s!=null&&s.current&&s.current.abort(),o(_),_===sT.list){const C=Co.stringify({...ef(v)},{arrayFormat:"bracket"});MUt({params:C,isLoggedIn:h,abortController:f})}else hp("")},S=_=>{var R,k,P;let C=((P=(k=(R=_==null?void 0:_.target)==null?void 0:R.value)==null?void 0:k.toString())==null?void 0:P.trim())||"";C=J_e(C),A(N=>({...N,pageNo:1,searchPattern:C||""}))},x=()=>{m.current&&(m.current.value=""),A(_=>({..._,pageNo:1,searchPattern:""}))},w=Ft.debounce(S,500);return E.jsx(YYn,{pageHeight:d,children:E.jsx("div",{className:"sendDataWrapper",children:E.jsxs("div",{className:"sendDataContainer",children:[E.jsx(aXn,{description:q.CONFIGURE_ORACLE_JOB_DESCRIPTION}),E.jsxs(Er,{container:!0,spacing:3,children:[E.jsx(Er,{item:!0,xs:12,sm:12,md:6,lg:6,children:E.jsxs("div",{className:"editorOptimizeWrapper",children:[E.jsxs("div",{className:"leftSpacing ",children:[E.jsxs("div",{className:"sendDataCommonBg mySavedQueries",children:[E.jsxs("div",{className:"mySavedQueriesHeader",children:[E.jsx("h2",{children:a===sT.list?ga.MY_QUERIES:ga.QUERY_EDITOR_HEAD_TEXT}),a===sT.list?E.jsxs("div",{className:"headerRight",children:[E.jsxs(eC,{className:"searchField",children:[E.jsx(gr,{placeholder:q.SEARCH_ELIPSIS_CONTEXT(q.QUERIES),onChange:w,defaultValue:(v==null?void 0:v.searchPattern)||"",inputRef:m}),E.jsx("span",{className:"searchIcon",children:(v==null?void 0:v.searchPattern)!==""?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:x}):E.jsx(yv,{})})]}),E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>{y(sT.editor),p.push(Qt.sendData),hp(""),n1e()},children:ga.NEW_QUERY})]}):E.jsx(Jt,{variant:"contained",color:"secondary",onClick:()=>y(sT.list),children:ga.SHOW_MY_QUERIES})]}),a===sT.list?E.jsx("div",{className:"mySavedQueriesTable",children:E.jsx(Dhs,{setQueriesView:o,queryParams:v,setQueryParams:A})}):E.jsx("div",{className:"sendDataQueryEditor",children:E.jsx(Nhs,{isChainlinkJob:!e,toShowRunQueryOptionOnly:!0,defaultEditorHeight:200})})]}),!Ft.isEmpty(g)&&E.jsx(fg,{message:ga.OPTIMIZE_GAS_INFO_TEXT})]}),l&&E.jsx("div",{className:"optimizeGasWrapper",children:E.jsx(BUt,{})})]})}),E.jsx(Er,{item:!0,xs:12,sm:12,md:6,lg:6,children:E.jsx("div",{className:"rightSpacing sendDataRightWrapper",children:E.jsx(Bhs,{})})})]}),!l&&E.jsx("div",{className:"optimizeGasWrapper",children:E.jsx(Er,{container:!0,spacing:5,children:E.jsx(Er,{item:!0,xs:12,sm:12,md:6,lg:6,children:E.jsx(BUt,{})})})})]})})})},Fhs=async t=>{var r,a;const e=AE(),n=Zt.awsAPI();try{const o=new Headers;o.append("Content-Type","application/json"),o.append("Access-Control-Allow-Origin","*");const s=await fetch(n,{method:"POST",headers:o,body:JSON.stringify(t)}),l=await s.json();if(console.log(s,"response"),console.log(l,"json"),s.ok){if((r=Object.keys(l))!=null&&r.length){const{joinCode:c}=l||{};zi("Registered Successfully"),e&&e.push(`${Qt.awsMarketplace}?joinCode=${c||""}`)}}else SP(n,"POST",s.status,l),Kn(l.detail||l.title||l.message||((a=l[0])==null?void 0:a.message)||"Something went wrong",l)}catch(o){SP(n,"POST",0,{title:"Network error",message:(o==null?void 0:o.message)||"Something went wrong"}),Kn((o==null?void 0:o.message)||"Something went wrong"),console.log("An error occured for post details",o)}},jhs=()=>{var w,_,C,R,k,P;const t=xo(),{search:e}=Zh(),r=new URLSearchParams(e).get("joinCode"),[a,o]=Y.useState("registerEmail"),[s,l]=Y.useState(!1),[c,u]=Y.useState({open:!1,userId:"",key:""}),d=localStorage.getItem("walletName")||"",[h,f]=Y.useState(d),p=ho(),[m,g]=Y.useState({userId:"",password:"",joinCode:r||"",isCheckboxTick:!1,userName:"",emailAddr:"",IsEmailValid:!0,isPassswordValid:!0,confirmPassword:""}),v=N=>{o(N.target.value)},A=(N,L)=>{const I=N.target.value||"";L===q.EMAIL_CHECK_KEY&&g(b=>({...b,IsEmailValid:Q6(I)})),L===q.INPUT_TYPE_PASSWORD&&g(b=>({...b,isPassswordValid:ez(I)})),g(b=>({...b,[L]:I}))},y=()=>{g(N=>({...N,userId:"",password:"",joinCode:"",isPassswordValid:!0,confirmPassword:""}))},S=async()=>{l(!0);const N={userId:m==null?void 0:m.userId.trim(),password:m==null?void 0:m.confirmPassword.trim(),joinCode:m==null?void 0:m.joinCode.trim()},L=await z_e(N);L&&l(!1),L===q.RESPONSE_SUCCESS_STATUS&&(y(),t.push(Qt.landingPage))},x=N=>{var L,I;N.key==="Enter"&&(L=m==null?void 0:m.userId)!=null&&L.trim()&&(I=m==null?void 0:m.joinCode)!=null&&I.trim()&&m!=null&&m.isPassswordValid&&m!=null&&m.confirmPassword&&!s&&S()};return Y.useEffect(()=>{localStorage.setItem("walletName",h||"")},[h]),E.jsxs(E.Fragment,{children:[p?E.jsx(Fu,{className:"joinCodeWrapper",children:E.jsxs("div",{className:"wrapperContent",children:[E.jsx("div",{className:"title",children:q.ALREADY_SUBSCRIBED}),E.jsx("p",{className:"infotext",children:q.JOINCODE_INFO_TEXT}),E.jsxs("div",{className:"joinCode",children:[r,E.jsx(y9,{textToCopy:r})]}),E.jsx("div",{className:"goBackBtn",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>t.push(Qt.landingPage),children:q.GO_BACK_TO_HOME})}),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:tM,target:"_blank",rel:"noreferrer",children:[q.NEED_HELP,E.jsx(oC,{})]})})]})}):E.jsxs(E.Fragment,{children:[E.jsx(Tp,{className:"pageToolbar",children:E.jsxs(eA,{value:a,exclusive:!0,onChange:v,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"registerEmail",children:q.REGISTER_WITH_EMAIL}),E.jsx(Xs,{size:"small",className:"tabButton",value:"registerWeb",children:q.REGISTER_WITH_WALLET})]})}),E.jsxs(Fu,{children:[a==="registerWeb"&&E.jsxs("div",{className:"otherLoginOption",children:[E.jsx("div",{className:"formContent",children:E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:N=>A(N,"userId"),value:m==null?void 0:m.userId,required:!0})})}),E.jsx(Yse,{initiallyOpen:((_=(w=m==null?void 0:m.userId)==null?void 0:w.trim())==null?void 0:_.length)>0||!1,disabled:!(((R=(C=m==null?void 0:m.userId)==null?void 0:C.trim())==null?void 0:R.length)>0)||!1,handleCoinbaseLogin:()=>{d2({ethereumWallet:"coinbase",wallet:$o.coinbase,setWalletName:f,setIsJoinCodeRequired:u,setIsSubmit:l,joinCode:m.joinCode,userId:m.userId})},handleMetamaskLogin:()=>{d2({ethereumWallet:"metamask",wallet:$o.metamask,setWalletName:f,setIsJoinCodeRequired:u,setIsSubmit:l,joinCode:m.joinCode,userId:m.userId})}})]}),a==="registerEmail"&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:q.JOINCODE_LABEL,value:m==null?void 0:m.joinCode,readOnly:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:N=>A(N,"userId"),value:m==null?void 0:m.userId,required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.LOGIN_PASSWORD_LABEL,value:m==null?void 0:m.password,onChange:N=>A(N,"password"),onKeyDown:x,errorText:!(m!=null&&m.isPassswordValid)&&(m!=null&&m.password)?q.INVAILD_PASSWORD:""})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.CHANGE_CONFIRM_PASSWORD_LABEL,value:m==null?void 0:m.confirmPassword,onChange:N=>A(N,"confirmPassword"),errorText:m!=null&&m.password&&(m!=null&&m.confirmPassword)&&(m==null?void 0:m.password)!==(m==null?void 0:m.confirmPassword)?q.PASSWORD_NOT_SAME:""})})]}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{variant:"contained",color:"primary",disabled:!((k=m==null?void 0:m.userId)!=null&&k.trim()&&((P=m==null?void 0:m.joinCode)!=null&&P.trim())&&(m!=null&&m.isPassswordValid)&&(m!=null&&m.confirmPassword))||(m==null?void 0:m.password)!==(m==null?void 0:m.confirmPassword)||s,onClick:S,children:q.SIGNUP_BUTTON_TEXT})}),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:tM,target:"_blank",rel:"noreferrer",children:[q.NEED_HELP,E.jsx(oC,{})]})})]})]})]}),E.jsx(MCe,{isJoinCodeRequired:c,onClose:()=>u({open:!1,userId:"",key:""}),handleLogin:N=>qse({inputs:N,setIsJoinCodeRequired:u,key:c.key}),parentJoinCode:r})]})},Hhs=()=>{const{search:t}=Zh(),e=new URLSearchParams(t),n=e.get("joinCode"),r=e.get("product-code"),a=e.get("customer-identifier"),{height:o}=Is(),s=Sga(),[l,c]=Y.useState(!1),{"co-name":u,"co-hq":d,"co-url":h,"usr-name":f,"usr-email":p,isEmailvalidate:m,isUrlvalidate:g,isEmailvalidateOptional:v}=s||{};Eut();const A=(S,x)=>{const w=S.target.value||"",_={...s,[x]:w.trim()||""};que(x==="usr-email"?{..._,isEmailvalidate:Q6(w)}:x==="co-url"?{..._,isUrlvalidate:Dfn(w)}:x==="usr2-email"?{..._,isEmailvalidateOptional:Q6(w)}:_)},y=async()=>{c(!0);const S={company:{name:s["co-name"],website:s["co-url"],headquarters:s["co-hq"]},name:s["usr-name"],email:s["usr-email"],customer_identifier:a,product_code:r};await Fhs(S),setTimeout(()=>{c(!1)},1e3)};return E.jsx(xut,{pageHeight:o,children:E.jsx("div",{className:"providerWrapper",children:E.jsx("div",{className:"wrapperInner",children:E.jsxs(Er,{container:!0,item:!0,children:[E.jsx(Er,{item:!0,xs:12,md:7,className:"leftGrid",children:E.jsx("div",{className:"leftContainer",children:E.jsxs("div",{className:"infoContent",children:[E.jsx("img",{src:GCe,alt:"aws-logo"}),E.jsx("h2",{children:q.WELCOME_MSG}),E.jsx("p",{children:q.THANKYOU_CLOUD_PROVIDER("AWS")}),n&&E.jsxs(E.Fragment,{children:[E.jsxs("h3",{children:[q.YOUR_JOIN_CODE," ",E.jsx("strong",{children:n})," "]}),E.jsxs("p",{children:[q.HERE_IS_LINK,E.jsx("a",{href:q.REDIRECT_URL,className:"docsLink",target:"_blank",rel:"noreferrer",children:q.OUR_DEVELOPER}),q.LINK_DEVELOPER_TEXT]})]})]})})}),E.jsx(Er,{item:!0,xs:12,md:5,className:"rightGrid",children:E.jsx("div",{className:"rightContainer",children:n?E.jsx(jhs,{}):E.jsxs(Fu,{children:[E.jsx("div",{className:"cardHead",children:"Company Information"}),E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{name:"co-name",label:"Company Name",defaultValue:u,warningText:q.MAX_LENGTH_ERROR("company name",Qr),maxValue:Qr,placeholder:"Company Name",onChange:S=>A(S,"co-name"),required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{name:"co-url",label:"Company Website",defaultValue:h,placeholder:"Company Website",onChange:S=>A(S,"co-url"),errorText:!g&&h?q.INVAILD_URL:"",required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:"Company Country",defaultValue:d,placeholder:"Company Country",onChange:S=>A(S,"co-hq"),required:!0})})]}),E.jsx("div",{className:"divider"}),E.jsx("div",{className:"cardHead",children:"Contact Information"}),E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:"Name",name:"usr-name",defaultValue:f,placeholder:"Enter name",onChange:S=>A(S,"usr-name"),warningText:q.MAX_LENGTH_ERROR("name",Qr),hasMax:!0,maxValue:Qr,required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:"Email",name:"usr-email",defaultValue:p,placeholder:"Enter email",onChange:S=>{A(S,"usr-email")},errorText:!m&&p?q.INVAILD_EMAIL:"",required:!0})})]}),E.jsx("div",{className:"divider"}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:y,disabled:!u||!h||!d||!f||!p||!m||!v||!g||l,children:l?E.jsx("img",{src:ws,alt:"loading",height:36}):q.SUBMIT})})]})})})]})})})})},anr="https://www.googleapis.com/robot/v1/metadata/x509/cloud-commerce-partner@system.gserviceaccount.com",Uhs="us-central1-sxt-public.cloudfunctions.net",zhs=async t=>{var n,r;const e=AE();try{const a=new Headers;a.append("Content-Type","application/json");const o=await fetch(zmi,{method:"POST",headers:a,body:JSON.stringify(t)}),s=await o.json();if(console.log(o,"response"),console.log(s,"json"),o.ok){if((n=Object.keys(s))!=null&&n.length){const{subscription:l}=s||{},{joinCode:c}=l;zi("Registered Successfully"),e&&e.push(`${Qt.googleCloud}?joinCode=${c||""}`)}}else Kn(s.detail||s.title||s.message||((r=s[0])==null?void 0:r.message)||"Something went wrong")}catch(a){console.log("An error occured for post details",a,a==null?void 0:a.response)}},Ghs=async()=>{try{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(anr,{method:"GET",headers:t})).json()}catch(t){console.error(t);return}},Fht=crypto,onr=t=>t instanceof CryptoKey,eX=new TextEncoder,vle=new TextDecoder;function Vhs(...t){const e=t.reduce((a,{length:o})=>a+o,0),n=new Uint8Array(e);let r=0;for(const a of t)n.set(a,r),r+=a.length;return n}const Khs=t=>{let e=t;typeof e=="string"&&(e=eX.encode(e));const n=32768,r=[];for(let a=0;a<e.length;a+=n)r.push(String.fromCharCode.apply(null,e.subarray(a,a+n)));return btoa(r.join(""))},snr=t=>{const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n},Yge=t=>{let e=t;e instanceof Uint8Array&&(e=vle.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return snr(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class J9 extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var n;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(n=Error.captureStackTrace)==null||n.call(Error,this,this.constructor)}}class rT extends J9{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,n,r="unspecified",a="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=a,this.payload=n}}class DUt extends J9{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,n,r="unspecified",a="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=a,this.payload=n}}class Whs extends J9{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class xke extends J9{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class Bm extends J9{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class lnr extends J9{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class Qhs extends J9{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function nR(t,e="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${e} must be ${t}`)}function Cpe(t,e){return t.name===e}function aFe(t){return parseInt(t.name.slice(4),10)}function qhs(t){switch(t){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function Yhs(t,e){if(e.length&&!e.some(n=>t.usages.includes(n))){let n="CryptoKey does not support this operation, its usages must include ";if(e.length>2){const r=e.pop();n+=`one of ${e.join(", ")}, or ${r}.`}else e.length===2?n+=`one of ${e[0]} or ${e[1]}.`:n+=`${e[0]}.`;throw new TypeError(n)}}function Jhs(t,e,...n){switch(e){case"HS256":case"HS384":case"HS512":{if(!Cpe(t.algorithm,"HMAC"))throw nR("HMAC");const r=parseInt(e.slice(2),10);if(aFe(t.algorithm.hash)!==r)throw nR(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Cpe(t.algorithm,"RSASSA-PKCS1-v1_5"))throw nR("RSASSA-PKCS1-v1_5");const r=parseInt(e.slice(2),10);if(aFe(t.algorithm.hash)!==r)throw nR(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Cpe(t.algorithm,"RSA-PSS"))throw nR("RSA-PSS");const r=parseInt(e.slice(2),10);if(aFe(t.algorithm.hash)!==r)throw nR(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":{if(t.algorithm.name!=="Ed25519"&&t.algorithm.name!=="Ed448")throw nR("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!Cpe(t.algorithm,"ECDSA"))throw nR("ECDSA");const r=qhs(e);if(t.algorithm.namedCurve!==r)throw nR(r,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}Yhs(t,n)}function cnr(t,e,...n){var r;if(n.length>2){const a=n.pop();t+=`one of type ${n.join(", ")}, or ${a}.`}else n.length===2?t+=`one of type ${n[0]} or ${n[1]}.`:t+=`of type ${n[0]}.`;return e==null?t+=` Received ${e}`:typeof e=="function"&&e.name?t+=` Received function ${e.name}`:typeof e=="object"&&e!=null&&(r=e.constructor)!=null&&r.name&&(t+=` Received an instance of ${e.constructor.name}`),t}const $Ut=(t,...e)=>cnr("Key must be ",t,...e);function unr(t,e,...n){return cnr(`Key for the ${t} algorithm must be `,e,...n)}const dnr=t=>onr(t),NT=["CryptoKey"],Zhs=(...t)=>{const e=t.filter(Boolean);if(e.length===0||e.length===1)return!0;let n;for(const r of e){const a=Object.keys(r);if(!n||n.size===0){n=new Set(a);continue}for(const o of a){if(n.has(o))return!1;n.add(o)}}return!0};function Xhs(t){return typeof t=="object"&&t!==null}function _be(t){if(!Xhs(t)||Object.prototype.toString.call(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}const efs=(t,e)=>{if(t.startsWith("RS")||t.startsWith("PS")){const{modulusLength:n}=e.algorithm;if(typeof n!="number"||n<2048)throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}},tfs=(t,e)=>{const n=(t.match(/.{1,64}/g)||[]).join(`
`);return`-----BEGIN ${e}-----
${n}
-----END ${e}-----`},ZI=(t,e,n=0)=>{n===0&&(e.unshift(e.length),e.unshift(6));const r=t.indexOf(e[0],n);if(r===-1)return!1;const a=t.subarray(r,r+e.length);return a.length!==e.length?!1:a.every((o,s)=>o===e[s])||ZI(t,e,r+1)},FUt=t=>{switch(!0){case ZI(t,[42,134,72,206,61,3,1,7]):return"P-256";case ZI(t,[43,129,4,0,34]):return"P-384";case ZI(t,[43,129,4,0,35]):return"P-521";case ZI(t,[43,101,110]):return"X25519";case ZI(t,[43,101,111]):return"X448";case ZI(t,[43,101,112]):return"Ed25519";case ZI(t,[43,101,113]):return"Ed448";default:throw new xke("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},nfs=async(t,e,n,r,a)=>{let o,s;const l=new Uint8Array(atob(n.replace(t,"")).split("").map(u=>u.charCodeAt(0))),c=e==="spki";switch(r){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${r.slice(-3)}`},s=c?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${r.slice(-3)}`},s=c?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(r.slice(-3),10)||1}`},s=c?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":o={name:"ECDSA",namedCurve:"P-256"},s=c?["verify"]:["sign"];break;case"ES384":o={name:"ECDSA",namedCurve:"P-384"},s=c?["verify"]:["sign"];break;case"ES512":o={name:"ECDSA",namedCurve:"P-521"},s=c?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const u=FUt(l);o=u.startsWith("P-")?{name:"ECDH",namedCurve:u}:{name:u},s=c?[]:["deriveBits"];break}case"EdDSA":o={name:FUt(l)},s=c?["verify"]:["sign"];break;default:throw new xke('Invalid or unsupported "alg" (Algorithm) value')}return Fht.subtle.importKey(e,l,o,(a==null?void 0:a.extractable)??!1,s)},rfs=(t,e,n)=>nfs(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",t,e,n);function jUt(t){const e=[];let n=0;for(;n<t.length;){const r=hnr(t.subarray(n));e.push(r),n+=r.byteLength}return e}function hnr(t){let e=0,n=t[0]&31;if(e++,n===31){for(n=0;t[e]>=128;)n=n*128+t[e]-128,e++;n=n*128+t[e]-128,e++}let r=0;if(t[e]<128)r=t[e],e++;else if(r===128){for(r=0;t[e+r]!==0||t[e+r+1]!==0;){if(r>t.byteLength)throw new TypeError("invalid indefinite form length");r++}const o=e+r+2;return{byteLength:o,contents:t.subarray(e,e+r),raw:t.subarray(0,o)}}else{const o=t[e]&127;e++,r=0;for(let s=0;s<o;s++)r=r*256+t[e],e++}const a=e+r;return{byteLength:a,contents:t.subarray(e,a),raw:t.subarray(0,a)}}function ifs(t){const e=jUt(jUt(hnr(t).contents)[0].contents);return Khs(e[e[0].raw[0]===160?6:5].raw)}function afs(t){const e=t.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""),n=snr(e);return tfs(ifs(n),"PUBLIC KEY")}const ofs=(t,e,n)=>{let r;try{r=afs(t)}catch(a){throw new TypeError("Failed to parse the X.509 certificate",{cause:a})}return rfs(r,e,n)};async function sfs(t,e,n){if(typeof t!="string"||t.indexOf("-----BEGIN CERTIFICATE-----")!==0)throw new TypeError('"x509" must be X.509 formatted string');return ofs(t,e,n)}const lfs=(t,e)=>{if(!(e instanceof Uint8Array)){if(!dnr(e))throw new TypeError(unr(t,e,...NT,"Uint8Array"));if(e.type!=="secret")throw new TypeError(`${NT.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},cfs=(t,e,n)=>{if(!dnr(e))throw new TypeError(unr(t,e,...NT));if(e.type==="secret")throw new TypeError(`${NT.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if(n==="sign"&&e.type==="public")throw new TypeError(`${NT.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if(n==="decrypt"&&e.type==="public")throw new TypeError(`${NT.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(e.algorithm&&n==="verify"&&e.type==="private")throw new TypeError(`${NT.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(e.algorithm&&n==="encrypt"&&e.type==="private")throw new TypeError(`${NT.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},ufs=(t,e,n)=>{t.startsWith("HS")||t==="dir"||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?lfs(t,e):cfs(t,e,n)};function dfs(t,e,n,r,a){if(a.crit!==void 0&&(r==null?void 0:r.crit)===void 0)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||r.crit===void 0)return new Set;if(!Array.isArray(r.crit)||r.crit.length===0||r.crit.some(s=>typeof s!="string"||s.length===0))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let o;n!==void 0?o=new Map([...Object.entries(n),...e.entries()]):o=e;for(const s of r.crit){if(!o.has(s))throw new xke(`Extension Header Parameter "${s}" is not recognized`);if(a[s]===void 0)throw new t(`Extension Header Parameter "${s}" is missing`);if(o.get(s)&&r[s]===void 0)throw new t(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(r.crit)}const hfs=(t,e)=>{if(e!==void 0&&(!Array.isArray(e)||e.some(n=>typeof n!="string")))throw new TypeError(`"${t}" option must be an array of strings`);if(e)return new Set(e)};function ffs(t,e){const n=`SHA-${t.slice(-3)}`;switch(t){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:t.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:e.namedCurve};case"EdDSA":return{name:e.name};default:throw new xke(`alg ${t} is not supported either by JOSE or your javascript runtime`)}}function pfs(t,e,n){if(onr(e))return Jhs(e,t,n),e;if(e instanceof Uint8Array){if(!t.startsWith("HS"))throw new TypeError($Ut(e,...NT));return Fht.subtle.importKey("raw",e,{hash:`SHA-${t.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError($Ut(e,...NT,"Uint8Array"))}const mfs=async(t,e,n,r)=>{const a=await pfs(t,e,"verify");efs(t,a);const o=ffs(t,a.algorithm);try{return await Fht.subtle.verify(o,a,n,r)}catch{return!1}};async function gfs(t,e,n){if(!_be(t))throw new Bm("Flattened JWS must be an object");if(t.protected===void 0&&t.header===void 0)throw new Bm('Flattened JWS must have either of the "protected" or "header" members');if(t.protected!==void 0&&typeof t.protected!="string")throw new Bm("JWS Protected Header incorrect type");if(t.payload===void 0)throw new Bm("JWS Payload missing");if(typeof t.signature!="string")throw new Bm("JWS Signature missing or incorrect type");if(t.header!==void 0&&!_be(t.header))throw new Bm("JWS Unprotected Header incorrect type");let r={};if(t.protected)try{const g=Yge(t.protected);r=JSON.parse(vle.decode(g))}catch{throw new Bm("JWS Protected Header is invalid")}if(!Zhs(r,t.header))throw new Bm("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const a={...r,...t.header},o=dfs(Bm,new Map([["b64",!0]]),n==null?void 0:n.crit,r,a);let s=!0;if(o.has("b64")&&(s=r.b64,typeof s!="boolean"))throw new Bm('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:l}=a;if(typeof l!="string"||!l)throw new Bm('JWS "alg" (Algorithm) Header Parameter missing or invalid');const c=n&&hfs("algorithms",n.algorithms);if(c&&!c.has(l))throw new Whs('"alg" (Algorithm) Header Parameter value not allowed');if(s){if(typeof t.payload!="string")throw new Bm("JWS Payload must be a string")}else if(typeof t.payload!="string"&&!(t.payload instanceof Uint8Array))throw new Bm("JWS Payload must be a string or an Uint8Array instance");let u=!1;typeof e=="function"&&(e=await e(r,t),u=!0),ufs(l,e,"verify");const d=Vhs(eX.encode(t.protected??""),eX.encode("."),typeof t.payload=="string"?eX.encode(t.payload):t.payload);let h;try{h=Yge(t.signature)}catch{throw new Bm("Failed to base64url decode the signature")}if(!await mfs(l,e,h,d))throw new Qhs;let p;if(s)try{p=Yge(t.payload)}catch{throw new Bm("Failed to base64url decode the payload")}else typeof t.payload=="string"?p=eX.encode(t.payload):p=t.payload;const m={payload:p};return t.protected!==void 0&&(m.protectedHeader=r),t.header!==void 0&&(m.unprotectedHeader=t.header),u?{...m,key:e}:m}async function vfs(t,e,n){if(t instanceof Uint8Array&&(t=vle.decode(t)),typeof t!="string")throw new Bm("Compact JWS must be a string or Uint8Array");const{0:r,1:a,2:o,length:s}=t.split(".");if(s!==3)throw new Bm("Invalid Compact JWS");const l=await gfs({payload:a,protected:r,signature:o},e,n),c={payload:l.payload,protectedHeader:l.protectedHeader};return typeof e=="function"?{...c,key:l.key}:c}const Afs=t=>Math.floor(t.getTime()/1e3),fnr=60,pnr=fnr*60,jht=pnr*24,yfs=jht*7,bfs=jht*365.25,xfs=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,HUt=t=>{const e=xfs.exec(t);if(!e||e[4]&&e[1])throw new TypeError("Invalid time period format");const n=parseFloat(e[2]),r=e[3].toLowerCase();let a;switch(r){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(n*fnr);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(n*pnr);break;case"day":case"days":case"d":a=Math.round(n*jht);break;case"week":case"weeks":case"w":a=Math.round(n*yfs);break;default:a=Math.round(n*bfs);break}return e[1]==="-"||e[4]==="ago"?-a:a},UUt=t=>t.toLowerCase().replace(/^application\//,""),Efs=(t,e)=>typeof t=="string"?e.includes(t):Array.isArray(t)?e.some(Set.prototype.has.bind(new Set(t))):!1,Sfs=(t,e,n={})=>{let r;try{r=JSON.parse(vle.decode(e))}catch{}if(!_be(r))throw new lnr("JWT Claims Set must be a top-level JSON object");const{typ:a}=n;if(a&&(typeof t.typ!="string"||UUt(t.typ)!==UUt(a)))throw new rT('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:o=[],issuer:s,subject:l,audience:c,maxTokenAge:u}=n,d=[...o];u!==void 0&&d.push("iat"),c!==void 0&&d.push("aud"),l!==void 0&&d.push("sub"),s!==void 0&&d.push("iss");for(const m of new Set(d.reverse()))if(!(m in r))throw new rT(`missing required "${m}" claim`,r,m,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(r.iss))throw new rT('unexpected "iss" claim value',r,"iss","check_failed");if(l&&r.sub!==l)throw new rT('unexpected "sub" claim value',r,"sub","check_failed");if(c&&!Efs(r.aud,typeof c=="string"?[c]:c))throw new rT('unexpected "aud" claim value',r,"aud","check_failed");let h;switch(typeof n.clockTolerance){case"string":h=HUt(n.clockTolerance);break;case"number":h=n.clockTolerance;break;case"undefined":h=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:f}=n,p=Afs(f||new Date);if((r.iat!==void 0||u)&&typeof r.iat!="number")throw new rT('"iat" claim must be a number',r,"iat","invalid");if(r.nbf!==void 0){if(typeof r.nbf!="number")throw new rT('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>p+h)throw new rT('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(r.exp!==void 0){if(typeof r.exp!="number")throw new rT('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=p-h)throw new DUt('"exp" claim timestamp check failed',r,"exp","check_failed")}if(u){const m=p-r.iat,g=typeof u=="number"?u:HUt(u);if(m-h>g)throw new DUt('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(m<0-h)throw new rT('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};async function wfs(t,e,n){var s;const r=await vfs(t,e,n);if((s=r.protectedHeader.crit)!=null&&s.includes("b64")&&r.protectedHeader.b64===!1)throw new lnr("JWTs MUST NOT use unencoded payload");const o={payload:Sfs(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return typeof e=="function"?{...o,key:r.key}:o}const _fs=Yge;function Tfs(t){let e;if(typeof t=="string"){const n=t.split(".");(n.length===3||n.length===5)&&([e]=n)}else if(typeof t=="object"&&t)if("protected"in t)e=t.protected;else throw new TypeError("Token does not contain a Protected Header");try{if(typeof e!="string"||!e)throw new Error;const n=JSON.parse(vle.decode(_fs(e)));if(!_be(n))throw new Error;return n}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}const Cfs=async t=>{try{if(!t)throw Error("x-gcp-marketplace-token must be defined");const e=Tfs(t),n=await Ghs(),r=e&&(e==null?void 0:e.kid)&&n[e.kid];if(!r)throw Error("Certificate not found");const a=await sfs(r,e.alg),o=await wfs(t,a);if(o.payload.aud!==Uhs)throw Error("aud is incorrect");if(o.payload.iss!==anr)throw Error("iss is incorrect");if(!o.payload.sub)throw Error("sub is undefined");return{result:o.payload,error:null}}catch(e){return Kn("Google Token Invalid"),{result:null,error:e}}},kfs=()=>{const{search:t}=Zh(),n=new URLSearchParams(t).get("x-gcp-marketplace-token"),[r,a]=Y.useState({companyName:"",companyWebsite:"",companyHeadquarters:"",userName:"",userEmail:""}),[o,s]=Y.useState(),[l,c]=Y.useState(!1),[u,d]=Y.useState(!1),[h,f]=Y.useState(!1);Y.useEffect(()=>{Cfs(n).then(({result:m,error:g})=>{!g&&m&&s(m)})},[n]);const p=async()=>{f(!0);const m={company:{name:r.companyName,website:r.companyWebsite,headquarters:r.companyHeadquarters},name:r.userName,email:r.userEmail,org_id:o.sub};await zhs(m),setTimeout(()=>{f(!1)},1e3)};return E.jsxs(Fu,{children:[E.jsx("div",{className:"cardHead",children:"Company Information"}),E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{name:"name",label:"Company Name",warningText:q.MAX_LENGTH_ERROR("company name",Qr),maxValue:Qr,placeholder:"Company Name",onChange:m=>a({...r,companyName:m.target.value.trim()}),required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{name:"website",label:"Company Website",placeholder:"Company Website",onChange:m=>{d(Dfn(m.target.value)),a({...r,companyWebsite:m.target.value.trim()})},errorText:!u&&r.companyWebsite?q.INVAILD_URL:"",required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:"Company Headquarters Country",placeholder:"Company Headquarters Country",onChange:m=>a({...r,companyHeadquarters:m.target.value.trim()}),required:!0})})]}),E.jsx("div",{className:"divider"}),E.jsx("div",{className:"cardHead",children:"Primary Contact Information"}),E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:"Name",name:"name",placeholder:"Enter name",onChange:m=>a({...r,userName:m.target.value.trim()}),warningText:q.MAX_LENGTH_ERROR("name",Qr),hasMax:!0,maxValue:Qr,required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:"Email",name:"email",placeholder:"Enter email",onChange:m=>{c(Q6(m.target.value)),a({...r,userEmail:m.target.value.trim()})},errorText:!l&&r.userEmail?q.INVAILD_EMAIL:"",required:!0})})]}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:p,disabled:!r.companyName||!r.companyWebsite||!r.companyHeadquarters||!r.userName||!r.userEmail||!o||!l||!u||h,children:h?E.jsx("img",{src:ws,alt:"loading",height:36}):q.SUBMIT})})]})},Rfs=()=>{var w,_,C,R,k,P;const t=xo(),{search:e}=Zh(),r=new URLSearchParams(e).get("joinCode"),[a,o]=Y.useState("registerEmail"),[s,l]=Y.useState(!1),[c,u]=Y.useState({open:!1,userId:"",key:""}),d=localStorage.getItem("walletName")||"",[h,f]=Y.useState(d),p=ho(),[m,g]=Y.useState({userId:"",password:"",joinCode:r||"",isCheckboxTick:!1,userName:"",emailAddr:"",IsEmailValid:!0,isPassswordValid:!0,confirmPassword:""}),v=N=>{o(N.target.value)},A=(N,L)=>{const I=N.target.value||"";L===q.EMAIL_CHECK_KEY&&g(b=>({...b,IsEmailValid:Q6(I)})),L===q.INPUT_TYPE_PASSWORD&&g(b=>({...b,isPassswordValid:ez(I)})),g(b=>({...b,[L]:I}))},y=()=>{g(N=>({...N,userId:"",password:"",joinCode:"",confirmPassword:"",isPassswordValid:!0}))},S=async()=>{l(!0);const N={userId:m==null?void 0:m.userId.trim(),password:m==null?void 0:m.confirmPassword.trim(),joinCode:m==null?void 0:m.joinCode.trim()},L=await z_e(N);L&&l(!1),L===q.RESPONSE_SUCCESS_STATUS&&(y(),t.push(Qt.landingPage))},x=N=>{var L,I;N.key==="Enter"&&(L=m==null?void 0:m.userId)!=null&&L.trim()&&(I=m==null?void 0:m.joinCode)!=null&&I.trim()&&m!=null&&m.isPassswordValid&&m!=null&&m.confirmPassword&&!s&&S()};return Y.useEffect(()=>{localStorage.setItem("walletName",h||"")},[h]),E.jsxs(E.Fragment,{children:[p?E.jsx(Fu,{className:"joinCodeWrapper",children:E.jsxs("div",{className:"wrapperContent",children:[E.jsx("div",{className:"title",children:q.ALREADY_SUBSCRIBED}),E.jsx("p",{className:"infotext",children:q.JOINCODE_INFO_TEXT}),E.jsxs("div",{className:"joinCode",children:[r,E.jsx(y9,{textToCopy:r})]}),E.jsx("div",{className:"goBackBtn",children:E.jsx(Jt,{variant:"contained",color:"primary",onClick:()=>t.push(Qt.landingPage),children:q.GO_BACK_TO_HOME})}),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:tM,target:"_blank",rel:"noreferrer",children:[q.NEED_HELP,E.jsx(oC,{})]})})]})}):E.jsxs(E.Fragment,{children:[E.jsx(Tp,{className:"pageToolbar",children:E.jsxs(eA,{value:a,exclusive:!0,onChange:v,children:[E.jsx(Xs,{size:"small",className:"tabButton",value:"registerEmail",children:q.REGISTER_WITH_EMAIL}),E.jsx(Xs,{size:"small",className:"tabButton",value:"registerWeb",children:q.REGISTER_WITH_WALLET})]})}),E.jsxs(Fu,{children:[a==="registerWeb"&&E.jsxs("div",{className:"otherLoginOption",children:[E.jsx("div",{className:"formContent",children:E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:N=>A(N,"userId"),value:m==null?void 0:m.userId,required:!0})})}),E.jsx(Yse,{initiallyOpen:((_=(w=m==null?void 0:m.userId)==null?void 0:w.trim())==null?void 0:_.length)>0||!1,disabled:!(((R=(C=m==null?void 0:m.userId)==null?void 0:C.trim())==null?void 0:R.length)>0)||!1,handleCoinbaseLogin:()=>{d2({ethereumWallet:"coinbase",wallet:$o.coinbase,setWalletName:f,setIsJoinCodeRequired:u,setIsSubmit:l,joinCode:m.joinCode,userId:m.userId})},handleMetamaskLogin:()=>{d2({ethereumWallet:"metamask",wallet:$o.metamask,setWalletName:f,setIsJoinCodeRequired:u,setIsSubmit:l,joinCode:m.joinCode,userId:m.userId})}})]}),a==="registerEmail"&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"formContent",children:[E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:q.JOINCODE_LABEL,value:m==null?void 0:m.joinCode,readOnly:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(gr,{label:`${q.SIGNUP_USER_ID_LABEL}`,placeholder:q.LOGIN_USER_ID_PLACEHOLDER,onChange:N=>A(N,"userId"),value:m==null?void 0:m.userId,required:!0})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.LOGIN_PASSWORD_LABEL,value:m==null?void 0:m.password,onChange:N=>A(N,"password"),onKeyDown:x,errorText:!(m!=null&&m.isPassswordValid)&&(m!=null&&m.password)?q.INVAILD_PASSWORD:""})}),E.jsx("div",{className:"formGroup",children:E.jsx(QA,{label:q.CHANGE_CONFIRM_PASSWORD_LABEL,value:m==null?void 0:m.confirmPassword,onChange:N=>A(N,"confirmPassword"),errorText:m!=null&&m.password&&(m!=null&&m.confirmPassword)&&(m==null?void 0:m.password)!==(m==null?void 0:m.confirmPassword)?q.PASSWORD_NOT_SAME:""})})]}),E.jsx("div",{className:"updateBtnRow",children:E.jsx(Jt,{variant:"contained",color:"primary",disabled:!((k=m==null?void 0:m.userId)!=null&&k.trim()&&((P=m==null?void 0:m.joinCode)!=null&&P.trim())&&(m!=null&&m.isPassswordValid)&&(m!=null&&m.confirmPassword))||(m==null?void 0:m.password)!==(m==null?void 0:m.confirmPassword)||s,onClick:S,children:q.SIGNUP_BUTTON_TEXT})}),E.jsx("div",{className:"needHelpLink",children:E.jsxs("a",{href:tM,target:"_blank",rel:"noreferrer",children:[q.NEED_HELP,E.jsx(oC,{})]})})]})]})]}),E.jsx(MCe,{isJoinCodeRequired:c,onClose:()=>u({open:!1,userId:"",key:""}),handleLogin:N=>qse({inputs:N,setIsJoinCodeRequired:u,key:c.key}),parentJoinCode:r})]})},Mfs=()=>{const{search:t}=Zh(),n=new URLSearchParams(t).get("joinCode"),{height:r}=Is();return Eut(),E.jsx(xut,{pageHeight:r,children:E.jsx("div",{className:"providerWrapper",children:E.jsx("div",{className:"wrapperInner",children:E.jsxs(Er,{container:!0,item:!0,children:[E.jsx(Er,{item:!0,xs:12,md:7,className:"leftGrid",children:E.jsx("div",{className:"leftContainer",children:E.jsxs("div",{className:"infoContent",children:[E.jsx("img",{src:GCe,alt:"aws-logo"}),E.jsx("h2",{children:q.WELCOME_MSG}),E.jsx("p",{children:q.THANKYOU_CLOUD_PROVIDER("GCP")}),n&&E.jsxs(E.Fragment,{children:[E.jsxs("h3",{children:[q.YOUR_JOIN_CODE," ",E.jsx("strong",{children:n})," "]}),E.jsxs("p",{children:[q.HERE_IS_LINK,E.jsx("a",{href:q.REDIRECT_URL,className:"docsLink",target:"_blank",rel:"noreferrer",children:q.OUR_DEVELOPER}),q.LINK_DEVELOPER_TEXT]})]})]})})}),E.jsx(Er,{item:!0,xs:12,md:5,className:"rightGrid",children:E.jsx("div",{className:"rightContainer",children:n?E.jsx(Rfs,{}):E.jsx(kfs,{})})})]})})})})};function Nfs({queryParams:t,viewContent:e,setPageNumber:n,onPageChange:r,onPageSizeChange:a,defaultSize:o,totalElements:s,setSortBy:l}){const{height:c,headerHeight:u}=Is(),{publicSchemasAndTablesLoading:d}=Foe(),[h,f]=Y.useState(!1),[p,m]=Y.useState({}),g="",v=s?Math.ceil(s/t.pageSize):0,A=I=>I==null?void 0:I.schema,y=I=>I==null?void 0:I.view,S=I=>I==null?void 0:I.viewType,x=I=>{m({sqlText:(I==null?void 0:I.viewText)||"",...I}),f(!0)},w=I=>n(I),_=(I,b)=>{l(I,b==="ASC"?"DESC":"ASC")},C=I=>E.jsxs(inr,{onClick:()=>x(I),className:"queryText",children:[E.jsx("span",{className:"text",children:I==null?void 0:I.viewText}),E.jsx(_n,{tooltip:"Preview",children:E.jsx(soe,{})})]}),R=()=>c-u-200||300,k=()=>E.jsx(sf,{imgPath:xdt,imgPathWebp:Edt,title:(e==null?void 0:e.length)===0&&(t!=null&&t.searchPattern)?q.NO_RESULT_FOUND_ON_VIEW_FILTER:q.NO_VIEW_FOUND,className:"emptyBlock",children:!(t!=null&&t.searchPattern)&&E.jsx(d1,{to:"/queries/new?tabID=1",children:E.jsx(Jt,{variant:"contained",color:"primary",size:"large",children:q.CREATE_VIEW})})});if((e==null?void 0:e.length)===0&&!d&&!g)return k();const P=()=>{m({}),f(!1)},N=()=>{p&&Mfn(p)},L=I=>{switch(I==null?void 0:I.scope){case Hm.all:return"All Views (Your Subscription and Public)";case Hm.public:return"Public Views";case Hm.subscription:return"Views (Your Subscription)";default:return"All Views (Your Subscription and Public)"}};return E.jsxs(E.Fragment,{children:[E.jsx(Izn,{open:h,isHistory:!0,text:p==null?void 0:p.viewText,queryPreview:p,onClose:P,isUnsavedQuery:!0,onClickView:N}),E.jsx("h2",{className:"pageTitle",children:L(t)}),E.jsx(tf,{data:e,columns:A1a,isAction:!1,actionColumnName:"Actions",rowRender:[{dataKey:"schema",func:A},{dataKey:"view",func:y},{dataKey:"viewType",func:S},{dataKey:"viewText",func:C}],loading:d,rowSize:75,bodyHeight:R(),onItemsSort:_,sortBy:(t==null?void 0:t.sortBy)||"",sortOrder:(t==null?void 0:t.sortOrder)||""}),(e==null?void 0:e.length)>0&&E.jsx(EE,{onChange:w,count:v,page:t.pageNo,onPageChange:r,totalElements:s,onPageSizeChange:a,isGotoPage:!0,isPageSize:!0,pageSize:t.pageSize,defaultSize:o})]})}const Ifs=()=>{const e=ho(),{height:n,headerHeight:r,width:a}=Is(),[o,s]=Y.useState(null),l=Y.useRef(null),[c,u]=Y.useState({pageNo:1,pageSize:10,scope:Hm.all,activeTab:"view",searchPattern:""}),d=Q_e(),h=W_e(),f=Foe(),p=EV(),m=xo(),{views:g,publicSchemasAndTables:v}=f,{views:A,subscribedSchemasAndTables:y,subscribedSchemasAndTablesLoading:S}=p;Y.useLayoutEffect(()=>{!h&&!S&&Wne({}),e&&h&&!d&&!S&&K6({})},[e,h,S]);const x=j=>{const H=j.target.value;m.push(`/${H}`)},w=Y.useMemo(()=>{var U,$,z,Z;let j={},H={};if((c==null?void 0:c.scope)===Hm.all&&(j={...g,...A}),(c==null?void 0:c.scope)===Hm.subscription&&(j={...A}),(c==null?void 0:c.scope)===Hm.public&&(j={...g}),c!=null&&c.schema&&(j=(U=Object.values(j))==null?void 0:U.filter(K=>K.schema===c.schema)),c!=null&&c.searchPattern){const K={keys:["view","viewText","viewType","schema"],threshold:.2},Q=new FP(Object.values(j),K),ee=($=c==null?void 0:c.searchPattern)!=null&&$.trim()?(z=Q.search(c==null?void 0:c.searchPattern))==null?void 0:z.slice(0,12):[];j=ee==null?void 0:ee.map(X=>X==null?void 0:X.item)}if(c!=null&&c.sortOrder&&(c!=null&&c.sortBy)&&(j=W1a(Object.values(j),c.sortBy,c==null?void 0:c.sortOrder)),H={...j},c!=null&&c.pageNo&&(c!=null&&c.pageSize)){const K=(c.pageNo-1)*c.pageSize,Q=K+c.pageSize;j=Object.values(j).slice(K,Q)}return{result:Object.values(j),totalResult:(Z=Object.values(H))==null?void 0:Z.length}},[g,A,c]),_=Y.useMemo(()=>{var H;let j={};return(c==null?void 0:c.scope)===Hm.all&&(j={...y,...v}),(c==null?void 0:c.scope)===Hm.subscription&&(j={...y}),(c==null?void 0:c.scope)===Hm.public&&(j={...v}),(H=w==null?void 0:w.result)==null||H.forEach(U=>{const{schema:$}=U;$&&!j[$]&&(j[$]={views:[U],schema:$})}),Object.values(j).filter(U=>{var $;return(($=Object.keys(U==null?void 0:U.views))==null?void 0:$.length)>0}).map(U=>({label:U==null?void 0:U.schema,value:U==null?void 0:U.schema}))},[y,v,c,w]),C=n-r||500,R=j=>{var U;const H=(U=j==null?void 0:j.target)==null?void 0:U.value;u($=>({...$,scope:H,schema:"",pageNo:1,pageSize:10})),s(null)},k=async j=>{const H=j==null?void 0:j.value;s(j),u(U=>({...U,schema:H}))},P=j=>{u(H=>({...H,pageNo:j}))},N=j=>{u(H=>({...H,pageNo:j}))},L=j=>{u(H=>({...H,pageSize:j,pageNo:1}))},I=(j,H)=>{j&&H&&u(U=>({...U,pageNo:1,sortOrder:H,sortBy:j}))},b=()=>{l.current&&(l.current.value=""),u(j=>({...j,scope:Hm.all,pageNo:1,pageSize:10,schema:"",searchPattern:""})),s(null)},T=j=>{var U,$,z;let H=((z=($=(U=j==null?void 0:j.target)==null?void 0:U.value)==null?void 0:$.toString())==null?void 0:z.trim())||"";H=J_e(H),u(Z=>({...Z,searchPattern:H||""}))},M=Ft.debounce(T,500),D=()=>{l.current&&(l.current.value=""),u(j=>({...j,searchPattern:""}))},B={options:_,getOptionLabel:j=>j.label};return E.jsx(Y.Suspense,{fallback:as,children:E.jsx(OMo,{height:C,children:E.jsx("main",{className:"mainContent",children:E.jsxs("div",{className:"boxContent",children:[a<qt.breakpoints.values.md?E.jsx(Tp,{className:"pageMobileToolbar",children:E.jsx("div",{className:"pageMobileTopBar viewsListing",children:E.jsxs(nat,{className:"viewsToolbar",children:[E.jsx(Ba,{value:Zj.views,onChange:x,children:ogi.map(j=>E.jsx(oH,{value:j.value,children:j.label},j.value))}),E.jsxs(eC,{className:"searchField autoComplete",children:[E.jsx(gr,{placeholder:q.SEARCH_VIEWS,onChange:M,defaultValue:(c==null?void 0:c.searchPattern)||"",inputRef:l}),E.jsx("span",{className:"searchIcon",children:c!=null&&c.searchPattern?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:D}):E.jsx(yv,{})})]}),E.jsx(l1e,{className:"autoCompleteSearch",children:E.jsx(iHe,{...B,disablePortal:!0,value:o,onChange:(j,H)=>{k(H)},renderInput:j=>E.jsx(lHe,{...j,placeholder:q.FILTER_BY_SCHEMA,variant:"standard"}),popupIcon:E.jsx(Qy,{})})}),E.jsx(pz,{visibility:c==null?void 0:c.scope,onFilterChange:R,filterOption:!0}),((c==null?void 0:c.schema)||(c==null?void 0:c.scope)!==Hm.all)&&E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:b,className:"resetFilterBtn",children:E.jsx(_v,{})})]})})}):E.jsxs(Tp,{className:"pageToolbar viewsListing",children:[E.jsxs(eA,{exclusive:!0,onChange:x,value:Zj.views,children:[e&&E.jsx(Xs,{size:"small",className:"tabButton",value:"myQueries","aria-label":"My Queries",children:q.MY_SAVED_QUERIES}),e&&E.jsx(Xs,{size:"small",className:"tabButton",value:"subscription","aria-label":"My Org Queries",children:q.MY_ORG_QUERIES}),e&&E.jsx(Xs,{size:"small",className:"tabButton",value:"queryHistory","aria-label":"Query history",children:q.QUERY_HISTORY}),e&&E.jsx(Xs,{size:"small",className:"tabButton",value:"views","aria-label":"Views",children:q.VIEWS})]}),E.jsxs("div",{className:"toolbarRight",children:[E.jsxs(eC,{className:"searchField autoComplete",children:[E.jsx(gr,{placeholder:q.SEARCH_VIEWS,onChange:M,defaultValue:(c==null?void 0:c.searchPattern)||"",inputRef:l}),E.jsx("span",{className:"searchIcon",children:c!=null&&c.searchPattern?E.jsx(Wl,{fontSize:"small",className:"clearSearch",onClick:D}):E.jsx(yv,{})})]}),E.jsx(l1e,{className:"autoCompleteSearch",children:E.jsx(iHe,{...B,disablePortal:!0,value:o,onChange:(j,H)=>{k(H)},renderInput:j=>E.jsx(lHe,{...j,placeholder:q.FILTER_BY_SCHEMA,variant:"standard"}),popupIcon:E.jsx(Qy,{})})}),E.jsx(pz,{visibility:c==null?void 0:c.scope,onFilterChange:R,filterOption:!0}),((c==null?void 0:c.schema)||(c==null?void 0:c.scope)!==Hm.all)&&E.jsx(_n,{tooltip:q.RESET_FILTER,onClick:b,className:"resetFilterBtn",children:E.jsx(_v,{})})]})]}),E.jsx(Nfs,{queryParams:c,viewContent:w==null?void 0:w.result,defaultSize:10,totalElements:w==null?void 0:w.totalResult,setSortBy:I,setPageNumber:P,onPageChange:N,onPageSizeChange:L})]})})})})},Pfs=ke.memo(Ifs);IZe.initialize(Umi);const oFe=ke.lazy(()=>hM(()=>import("./QueryEditorWrapper-02a21a4d.js"),[])),Ofs=ke.lazy(()=>hM(()=>import("./ErdWrapper-2cfe85da.js"),[])),sFe=ke.lazy(()=>hM(()=>import("./Queries-e58ae009.js"),[]));ke.lazy(()=>hM(()=>import("./index-102701ba.js"),[]));const Lfs=ke.lazy(()=>hM(()=>import("./index-79f4c74d.js"),["assets/index-79f4c74d.js","assets/GraphQl.style-6e9a8178.js","assets/GraphQl-a1218d6c.css"])),Bfs=ke.lazy(()=>hM(()=>import("./GraphQlEditor-78cfb19b.js").then(t=>t.V),["assets/GraphQlEditor-78cfb19b.js","assets/GraphQl.style-6e9a8178.js","assets/GraphQl-a1218d6c.css"])),{getState:Dfs}=io;vvr.register({request:(t,e)=>{const n={...e};if(t&&t.hostname&&(t!=null&&t.hostname.includes("pulse.walletconnect"))||typeof t=="string"&&(t!=null&&t.includes("infura")||t!=null&&t.includes("cloudflare-eth")))return[t,n];if(t&&typeof t=="string"&&t.includes("coinbase"))return n.headers={"Content-Type":"application/json"},[t,n];if(t!=null&&t.includes&&!(t!=null&&t.includes("/token"))&&!(t!=null&&t.includes("/auth/wallet/code"))&&!(t!=null&&t.includes("/public"))&&!t.includes("walletconnect.com")&&!(t!=null&&t.includes("/cloud-router/gateway/userid"))){const{accessToken:r="",refreshToken:a="",tokenLastUpdatedOn:o="",accessTokenExpires:s=""}=Dfs(),l=localStorage.getItem("accessToken")||"",c=localStorage.getItem("tokenLastUpdatedOn")||"",u=localStorage.getItem("refreshToken")||"",d=localStorage.getItem("accessTokenExpires")||"";n!=null&&n.headers||(n.headers={});const h=Number(c),f=Number(o);!(t!=null&&t.includes("v1/auth/refresh"))&&!(t!=null&&t.includes("/logout"))?n.headers.Authorization=`Bearer ${h>f&&l?l:r}`:n.headers.Authorization=`Bearer ${h>f&&u?u:a}`,h>f&&l&&u&&d?Eit({tokenLastUpdatedOn:c,accessToken:l,refreshToken:u,accessTokenExpires:d}):f>h&&a&&s&&(localStorage.setItem("tokenLastUpdatedOn",o),localStorage.setItem("accessToken",r),localStorage.setItem("refreshToken",a),localStorage.setItem("accessTokenExpires",s))}return[t,n]},requestError:t=>t,response:t=>{var e,n;if(t.status===403&&((e=t==null?void 0:t.url)!=null&&e.includes("v1/auth/refresh"))){C2(),TD();const r=localStorage.getItem("refreshToken");console.log("AUTH FAIL",r,t)}if(t.status===401&&!((n=t==null?void 0:t.url)!=null&&n.includes("refresh"))){if(!localStorage.getItem("refreshToken"))return C2(),TD(),t;try{wit()}catch{return C2(),TD(),t}}return t},responseError:t=>(console.log(t),Promise.reject(t))});function $fs(){var p;const{config:t}=tCe(),{chartBackground:e,useImgColors:n}=_p(),r=ho(),{search:a}=window&&window.location,o=new URLSearchParams(a);Y.useLayoutEffect(()=>{const m=o.get("utm_campaign")||"";Yhn({utmCampaign:m})},[]);const s=localStorage.getItem("userId")||"";if(!t)return null;const l=uga();Y.useEffect(()=>{r?(Loe(),Ooe(),Sit(s),vO(),eAa(),Jhn(),nH(),iAa()):Dhn()},[r]);const c=Y.useCallback(()=>{const m=localStorage.getItem("accessTokenExpires")||"";m&&!yVe(Number(m))?wit():!m&&r&&(C2(),TD())},[l]);Y.useEffect(()=>(window.addEventListener("focus",c),()=>{window.removeEventListener("focus",c)}),[c]),Y.useEffect(()=>{const m=setInterval(()=>{c()},6e4),g=setInterval(()=>{r||W0a()},3e4);return()=>{clearInterval(m),clearInterval(g)}},[r]);const u=xo(),d=n&&vN(((p=u==null?void 0:u.location)==null?void 0:p.pathname)||""),h=Nga(),f=Xrt();return E.jsx(bbr,{theme:qt,children:E.jsxs(jyr,{theme:qt,children:[E.jsx(HGo,{$chartBackground:e,$useImgColors:d}),(f==null?void 0:f.type)==="error"&&(f!=null&&f.title)?E.jsx(KGo,{}):E.jsx(QGo,{}),E.jsx(Xgr,{children:E.jsxs(Pre,{children:[E.jsx(dJo,{}),h&&E.jsx("div",{className:"fixedLoader",children:E.jsx(as,{})}),E.jsxs(Zgr,{children:[E.jsx(NA,{exact:!0,path:Qt.googleCloud,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(Mfs,{})})}),E.jsx(NA,{exact:!0,path:Qt.awsMarketplace,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(Hhs,{})})}),E.jsx(NA,{exact:!0,path:Qt.azureLogin,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(sGo,{})})}),E.jsx(NA,{exact:!0,path:Qt.landingPage,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(vQt,{to:tr.newQuery()})})}),E.jsx(NA,{exact:!0,path:Qt.newQuery,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(oFe,{})})}),E.jsx(NA,{exact:!0,path:Qt.erd,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(Ofs,{})})}),E.jsx(NA,{exact:!0,path:Qt.savedQuery,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(oFe,{})})}),E.jsx(NA,{exact:!0,path:Qt.publicQuerySlug,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(oFe,{})})}),E.jsx(MA,{exact:!0,path:Qt.newChart,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(qDt,{})})}),E.jsx(MA,{exact:!0,path:Qt.updateChart,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(qDt,{})})}),E.jsx(MA,{exact:!0,path:Qt.charts,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(LMo,{})})}),E.jsx(NA,{exact:!0,path:Qt.dashboards,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(jGo,{})})}),U3==="true",E.jsx(MA,{exact:!0,path:Qt.myQueries,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(sFe,{tab:Zj.myQueries})})}),E.jsx(MA,{exact:!0,path:Qt.queryHistory,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(sFe,{tab:Zj.queryHistory})})}),E.jsx(MA,{exact:!0,path:Qt.graphQl,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(Lfs,{})})}),E.jsx(MA,{exact:!0,path:tr.graphqlSchemaName(":schemaName"),children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(Bfs,{})})}),E.jsx(NA,{exact:!0,path:Qt.myOrgQuery,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(sFe,{tab:Zj.myOrgQuery})})}),E.jsx(MA,{exact:!0,path:Qt.newDashboard,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(S8t,{})})}),E.jsx(NA,{exact:!0,path:Qt.viewDashboard,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(w8t,{})})}),E.jsx(NA,{exact:!0,path:Qt.publicDashboard,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(w8t,{isPublic:!0})})}),E.jsx(MA,{exact:!0,path:Qt.updateDashboard,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(S8t,{})})}),AAe==="dev",AAe==="dev",E.jsx(MA,{exact:!0,path:Qt.sendData,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx($hs,{})})}),E.jsx(MA,{exact:!0,path:Qt.getDataFromChain,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(jXo,{})})}),E.jsx(MA,{exact:!0,path:Qt.publishData,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(PGo,{})})}),E.jsx(MA,{exact:!0,path:Qt.chainlinkSubscriptions,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(RGo,{})})}),E.jsx(MA,{exact:!0,path:Qt.views,children:E.jsx(Y.Suspense,{fallback:E.jsx(as,{}),children:E.jsx(Pfs,{})})}),E.jsx(NA,{render:m=>E.jsx(Pre,{...m,children:E.jsx(Ise,{errorPageType:"404"})})})]}),E.jsx(xha,{})]})})]})})}async function Ffs(t){const e=!!t.match("ignite"),{data:n,error:r}=await Bn.get(t,void 0,e);if(r)throw r;return n}yfr({dsn:"https://f017e791c2f86154e24ec1bcd8e60569@o4506820159406080.ingest.us.sentry.io/4506820178935808",integrations:[new txe,new dgr],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracesSampleRate:1});const jfs=ear(`${qmi}`);window.localforage=Tbe;const Hfs=()=>{const t=localStorage.getItem("accessToken")||"",e=localStorage.getItem("refreshToken")||"",n=localStorage.getItem("tokenLastUpdatedOn")||"",r=Number(localStorage.getItem("refreshTokenExpires")||0),a=localStorage.getItem("accessTokenExpires")||"";(localStorage.getItem("userId")||"")&&t&&e&&r&&a&&yVe(r)?yVe(Number(a))?(Uhn(!0),Eit({accessTokenExpires:a,accessToken:t,refreshToken:e,tokenLastUpdatedOn:n})):wit():(localStorage.clear(),C2())};Hfs();JT.render(E.jsx(qGt,{stripe:jfs,children:E.jsx(Ear,{value:{fetcher:Ffs},children:E.jsx($fs,{})})}),document.getElementById("root"));export{U0 as $,H2 as A,$te as B,Wx as C,U2 as D,AHe as E,Wy as F,Fte as G,g0e as H,jte as I,g6 as J,uU as K,eP as L,SHe as M,A6 as N,z2 as O,m0e as P,Ute as Q,yM as R,mU as S,zF as T,lu as U,gM as V,mHe as W,gU as X,zte as Y,vU as Z,y6 as _,sPr as a,Xvs as a$,s1 as a0,y0e as a1,E as a2,Y as a3,as as a4,Nhs as a5,_fn as a6,ho as a7,Q_e as a8,W_e as a9,lHe as aA,Qy as aB,rvs as aC,gr as aD,lvs as aE,Dee as aF,ivs as aG,eae as aH,Ba as aI,Dn as aJ,Jt as aK,nvs as aL,ws as aM,Tp as aN,eA as aO,Xs as aP,ED as aQ,Fd as aR,Z3r as aS,Gvs as aT,Hvs as aU,Uvs as aV,qtr as aW,Vvs as aX,Qvs as aY,Izn as aZ,Er as a_,Is as aa,EV as ab,Wne as ac,K6 as ad,Bvs as ae,Fds as af,Wa as ag,Rv as ah,Uw as ai,i0e as aj,hM as ak,xo as al,tf as am,Mvs as an,Pn as ao,_n as ap,soe as aq,Mmi as ar,q as as,cm as at,Foe as au,lf as av,rCe as aw,Ep as ax,l1e as ay,iHe as az,iU as b,yv as b$,xse as b0,Ese as b1,vqn as b2,Ygs as b3,EE as b4,q6 as b5,tvs as b6,evs as b7,t0s as b8,e0s as b9,Ov as bA,r9 as bB,xdt as bC,Edt as bD,Bn as bE,Co as bF,Awe as bG,zvs as bH,Fvs as bI,jvs as bJ,qlt as bK,qgs as bL,B1a as bM,ke as bN,Zh as bO,S5 as bP,Zj as bQ,Ft as bR,Jvs as bS,OMo as bT,qt as bU,T5 as bV,nat as bW,ogi as bX,oH as bY,eC as bZ,Wl as b_,inr as ba,oN as bb,sf as bc,d1 as bd,Mfn as be,Vc as bf,Ln as bg,Jgs as bh,Zgs as bi,Xgs as bj,Kvs as bk,sr as bl,czn as bm,YH as bn,Qr as bo,Kx as bp,tr as bq,fg as br,Zit as bs,Yvs as bt,Zvs as bu,gN as bv,yds as bw,vds as bx,Ads as by,p1a as bz,kr as c,cee as c$,pz as c0,Px as c1,$P as c2,_v as c3,NK as c4,lE as c5,ywe as c6,ef as c7,uv as c8,xds as c9,Jpi as cA,Kgs as cB,Qgs as cC,hp as cD,zgs as cE,lae as cF,Dy as cG,Li as cH,lFe as cI,JT as cJ,cr as cK,Rtt as cL,xc as cM,xa as cN,nA as cO,wa as cP,YUe as cQ,Uu as cR,_p as cS,gO as cT,$oe as cU,ii as cV,X_e as cW,X2a as cX,XU as cY,TP as cZ,bdn as c_,MUt as ca,Wvs as cb,qvs as cc,J_e as cd,eTe as ce,R0a as cf,yE as cg,Zt as ch,hN as ci,HU as cj,Kn as ck,zi as cl,ga as cm,gt as cn,Ggs as co,Vgs as cp,Xhn as cq,Tkt as cr,L$o as cs,wRa as ct,jYt as cu,Mte as cv,dEe as cw,Mx as cx,mv as cy,uEe as cz,Ote as d,Zg as d0,O0 as d1,zmn as d2,aTe as d3,MTe as d4,am as d5,NTe as d6,ev as d7,_D as d8,SD as d9,q_e as da,Y_e as db,$it as dc,vN as dd,G$o as de,r1e as df,Qwe as dg,qwe as dh,gha as di,fha as dj,uha as dk,pha as dl,S1a as dm,XUe as dn,Q$o as dp,iH as dq,Git as dr,Pfn as ds,R1a as dt,Zpi as du,QM as dv,gHe as e,Lte as f,c0e as g,aU as h,oPr as i,oU as j,u0e as k,Mw as l,d0e as m,sU as n,j2 as o,h0e as p,vM as q,AM as r,TJt as s,Bte as t,lU as u,cU as v,Rw as w,v6 as x,p0e as y,Dte as z};
